/*! For license information please see main.27f65535.chunk.js.LICENSE.txt */ (this.webpackJsonp=this.webpackJsonp||[]).push([["main"],{"+/fp":function(e,t){e.exports=class{strong(e){return e}em(e){return e}codespan(e){return e}del(e){return e}html(e){return e}text(e){return e}link(e,t,n){return""+n}image(e,t,n){return""+n}br(){return""}}},"+JPL":function(e,t,n){e.exports={default:n("+SFK"),__esModule:!0}},"+MfF":function(e,t,n){"use strict";t.__esModule=!0,t.Encoders=t.Decoders=t.encodeNumericObject=t.encodeNumericArray=void 0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e},o=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&l.return&&l.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")};t.encodeDate=c,t.decodeDate=s,t.encodeBoolean=u,t.decodeBoolean=f,t.encodeNumber=h,t.decodeNumber=p,t.encodeString=d,t.decodeString=m,t.encodeJson=v,t.decodeJson=y,t.encodeArray=g,t.decodeArray=b,t.decodeNumericArray=x,t.encodeObject=_,t.decodeObject=k,t.decodeNumericObject=O,t.decode=function(e,t,n){var o=void 0;o="function"==typeof e?e(t,n):"object"===(void 0===e?"undefined":r(e))&&e.decode?e.decode(t,n):void 0===t?n:M[e]?M[e](t):t;return o},t.encode=function(e,t){var n=void 0;n="function"==typeof e?e(t):"object"===(void 0===e?"undefined":r(e))&&e.encode?e.encode(t):T[e]?T[e](t):t;return n};var i,a=n("Lusz"),l=(i=a)&&i.__esModule?i:{default:i};function c(e){if(null==e)return e;var t=e.getFullYear(),n=e.getMonth()+1,r=e.getDate();return t+"-"+(n<10?"0"+n:n)+"-"+(r<10?"0"+r:r)}function s(e){if(null!=e&&e.length){var t=e.split("-");null!=t[1]?t[1]-=1:(t[1]=0,t[2]=1);var n=new(Function.prototype.bind.apply(Date,[null].concat(function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t=_},l=function(){},t.unstable_forceFrameRate=function(e){0>e||125>>1,o=e[r];if(!(void 0!==o&&0E(a,n))void 0!==c&&0>E(c,a)?(e[r]=c,e[l]=n,r=l):(e[r]=a,e[i]=n,r=i);else{if(!(void 0!==c&&0>E(c,n)))break e;e[r]=c,e[l]=n,r=l}}}return t}return null}function E(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var z=[],C=[],P=1,A=null,j=3,L=!1,N=!1,H=!1;function R(e){for(var t=M(C);null!==t;){if(null===t.callback)T(C);else{if(!(t.startTime<=e))break;T(C),t.sortIndex=t.expirationTime,O(z,t)}t=M(C)}}function I(e){if(H=!1,R(e),!N)if(null!==M(z))N=!0,r(V);else{var t=M(C);null!==t&&o(I,t.startTime-e)}}function V(e,n){N=!1,H&&(H=!1,i()),L=!0;var r=j;try{for(R(n),A=M(z);null!==A&&(!(A.expirationTime>n)||e&&!a());){var l=A.callback;if(null!==l){A.callback=null,j=A.priorityLevel;var c=l(A.expirationTime<=n);n=t.unstable_now(),"function"==typeof c?A.callback=c:A===M(z)&&T(z),R(n)}else T(z);A=M(z)}if(null!==A)var s=!0;else{var u=M(C);null!==u&&o(I,u.startTime-n),s=!1}return s}finally{A=null,j=r,L=!1}}function D(e){switch(e){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1e4;default:return 5e3}}var F=l;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){N||L||(N=!0,r(V))},t.unstable_getCurrentPriorityLevel=function(){return j},t.unstable_getFirstCallbackNode=function(){return M(z)},t.unstable_next=function(e){switch(j){case 1:case 2:case 3:var t=3;break;default:t=j}var n=j;j=t;try{return e()}finally{j=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=F,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=j;j=e;try{return t()}finally{j=n}},t.unstable_scheduleCallback=function(e,n,a){var l=t.unstable_now();if("object"==typeof a&&null!==a){var c=a.delay;c="number"==typeof c&&0l?(e.sortIndex=c,O(C,e),null===M(z)&&e===M(C)&&(H?i():H=!0,o(I,c-l))):(e.sortIndex=a,O(z,e),N||L||(N=!0,r(V))),e},t.unstable_shouldYield=function(){var e=t.unstable_now();R(e);var n=M(z);return n!==A&&null!==A&&null!==n&&null!==n.callback&&n.startTime<=e&&n.expirationTimee.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:"store",n=arguments[1],o=n||t+"Subscription",f=function(e){function n(r,o){c(this,n);var i=s(this,e.call(this,r,o));return i[t]=r.store,i}return u(n,e),n.prototype.getChildContext=function(){var e;return(e={})[t]=this[t],e[o]=null,e},n.prototype.render=function(){return r.Children.only(this.props.children)},n}(r.Component);return f.propTypes={store:l.isRequired,children:i.a.element.isRequired},f.childContextTypes=((e={})[t]=l.isRequired,e[o]=a,e),f}var h=f(),p=n("dWyf"),d=n.n(p),m=n("QLaP"),v=n.n(m);var y={notify:function(){}};var g=function(){function e(t,n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.store=t,this.parentSub=n,this.onStateChange=r,this.unsubscribe=null,this.listeners=y}return e.prototype.addNestedSub=function(e){return this.trySubscribe(),this.listeners.subscribe(e)},e.prototype.notifyNestedSubs=function(){this.listeners.notify()},e.prototype.isSubscribed=function(){return Boolean(this.unsubscribe)},e.prototype.trySubscribe=function(){var e,t;this.unsubscribe||(this.unsubscribe=this.parentSub?this.parentSub.addNestedSub(this.onStateChange):this.store.subscribe(this.onStateChange),this.listeners=(e=[],t=[],{clear:function(){t=null,e=null},notify:function(){for(var n=e=t,r=0;r=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}var S=0,O={};function M(){}function T(e,t){var n={run:function(r){try{var o=e(t.getState(),r);(o!==n.props||n.error)&&(n.shouldComponentUpdate=!0,n.props=o,n.error=null)}catch(e){n.shouldComponentUpdate=!0,n.error=e}}};return n}function E(e){var t,n,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=o.getDisplayName,c=void 0===i?function(e){return"ConnectAdvanced("+e+")"}:i,s=o.methodName,u=void 0===s?"connectAdvanced":s,f=o.renderCountProp,h=void 0===f?void 0:f,p=o.shouldHandleStateChanges,m=void 0===p||p,y=o.storeKey,E=void 0===y?"store":y,z=o.withRef,C=void 0!==z&&z,P=k(o,["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef"]),A=E+"Subscription",j=S++,L=((t={})[E]=l,t[A]=a,t),N=((n={})[A]=a,n);return function(t){v()("function"==typeof t,"You must pass a component to the function returned by "+u+". Instead received "+JSON.stringify(t));var n=t.displayName||t.name||"Component",o=c(n),i=b({},P,{getDisplayName:c,methodName:u,renderCountProp:h,shouldHandleStateChanges:m,storeKey:E,withRef:C,displayName:o,wrappedComponentName:n,WrappedComponent:t}),a=function(n){function a(e,t){w(this,a);var r=x(this,n.call(this,e,t));return r.version=j,r.state={},r.renderCount=0,r.store=e[E]||t[E],r.propsMode=Boolean(e[E]),r.setWrappedInstance=r.setWrappedInstance.bind(r),v()(r.store,'Could not find "'+E+'" in either the context or props of "'+o+'". Either wrap the root component in a , or explicitly pass "'+E+'" as a prop to "'+o+'".'),r.initSelector(),r.initSubscription(),r}return _(a,n),a.prototype.getChildContext=function(){var e,t=this.propsMode?null:this.subscription;return(e={})[A]=t||this.context[A],e},a.prototype.componentDidMount=function(){m&&(this.subscription.trySubscribe(),this.selector.run(this.props),this.selector.shouldComponentUpdate&&this.forceUpdate())},a.prototype.componentWillReceiveProps=function(e){this.selector.run(e)},a.prototype.shouldComponentUpdate=function(){return this.selector.shouldComponentUpdate},a.prototype.componentWillUnmount=function(){this.subscription&&this.subscription.tryUnsubscribe(),this.subscription=null,this.notifyNestedSubs=M,this.store=null,this.selector.run=M,this.selector.shouldComponentUpdate=!1},a.prototype.getWrappedInstance=function(){return v()(C,"To access the wrapped instance, you need to specify { withRef: true } in the options argument of the "+u+"() call."),this.wrappedInstance},a.prototype.setWrappedInstance=function(e){this.wrappedInstance=e},a.prototype.initSelector=function(){var t=e(this.store.dispatch,i);this.selector=T(t,this.store),this.selector.run(this.props)},a.prototype.initSubscription=function(){if(m){var e=(this.propsMode?this.props:this.context)[A];this.subscription=new g(this.store,e,this.onStateChange.bind(this)),this.notifyNestedSubs=this.subscription.notifyNestedSubs.bind(this.subscription)}},a.prototype.onStateChange=function(){this.selector.run(this.props),this.selector.shouldComponentUpdate?(this.componentDidUpdate=this.notifyNestedSubsOnComponentDidUpdate,this.setState(O)):this.notifyNestedSubs()},a.prototype.notifyNestedSubsOnComponentDidUpdate=function(){this.componentDidUpdate=void 0,this.notifyNestedSubs()},a.prototype.isSubscribed=function(){return Boolean(this.subscription)&&this.subscription.isSubscribed()},a.prototype.addExtraProps=function(e){if(!(C||h||this.propsMode&&this.subscription))return e;var t=b({},e);return C&&(t.ref=this.setWrappedInstance),h&&(t[h]=this.renderCount++),this.propsMode&&this.subscription&&(t[A]=this.subscription),t},a.prototype.render=function(){var e=this.selector;if(e.shouldComponentUpdate=!1,e.error)throw e.error;return Object(r.createElement)(t,this.addExtraProps(e.props))},a}(r.Component);return a.WrappedComponent=t,a.displayName=o,a.childContextTypes=N,a.contextTypes=L,a.propTypes=L,d()(a,t)}}var z=Object.prototype.hasOwnProperty;function C(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function P(e,t){if(C(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var o=0;o=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(t,["initMapStateToProps","initMapDispatchToProps","initMergeProps"]),a=n(e,i),l=r(e,i),c=o(e,i);return(i.pure?Q:J)(a,l,c,e,i)}var $=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function te(e,t,n){for(var r=t.length-1;r>=0;r--){var o=t[r](e);if(o)return o}return function(t,r){throw new Error("Invalid value of type "+typeof e+" for "+n+" argument when connecting component "+r.wrappedComponentName+".")}}function ne(e,t){return e===t}var re=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.connectHOC,n=void 0===t?E:t,r=e.mapStateToPropsFactories,o=void 0===r?Y:r,i=e.mapDispatchToPropsFactories,a=void 0===i?W:i,l=e.mergePropsFactories,c=void 0===l?X:l,s=e.selectorFactory,u=void 0===s?Z:s;return function(e,t,r){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},l=i.pure,s=void 0===l||l,f=i.areStatesEqual,h=void 0===f?ne:f,p=i.areOwnPropsEqual,d=void 0===p?P:p,m=i.areStatePropsEqual,v=void 0===m?P:m,y=i.areMergedPropsEqual,g=void 0===y?P:y,b=ee(i,["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"]),w=te(e,o,"mapStateToProps"),x=te(t,a,"mapDispatchToProps"),_=te(r,c,"mergeProps");return n(u,$({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:w,initMapDispatchToProps:x,initMergeProps:_,pure:s,areStatesEqual:h,areOwnPropsEqual:d,areStatePropsEqual:v,areMergedPropsEqual:g},b))}}()},"/SS/":function(e,t,n){var r=n("XKFU");r(r.S,"Object",{setPrototypeOf:n("i5dc").set})},"/Vpf":function(e,t,n){n("0Mri"),e.exports=n("g3g5").RegExp.escape},"/dDc":function(e,t,n){"use strict";var r={transitionstart:{transition:"transitionstart",WebkitTransition:"webkitTransitionStart",MozTransition:"mozTransitionStart",OTransition:"oTransitionStart",msTransition:"MSTransitionStart"},animationstart:{animation:"animationstart",WebkitAnimation:"webkitAnimationStart",MozAnimation:"mozAnimationStart",OAnimation:"oAnimationStart",msAnimation:"MSAnimationStart"}},o={transitionend:{transition:"transitionend",WebkitTransition:"webkitTransitionEnd",MozTransition:"mozTransitionEnd",OTransition:"oTransitionEnd",msTransition:"MSTransitionEnd"},animationend:{animation:"animationend",WebkitAnimation:"webkitAnimationEnd",MozAnimation:"mozAnimationEnd",OAnimation:"oAnimationEnd",msAnimation:"MSAnimationEnd"}},i=[],a=[];function l(e,t,n){e.addEventListener(t,n,!1)}function c(e,t,n){e.removeEventListener(t,n,!1)}"undefined"!=typeof window&&"undefined"!=typeof document&&function(){var e=document.createElement("div").style;function t(t,n){for(var r in t)if(t.hasOwnProperty(r)){var o=t[r];for(var i in o)if(i in e){n.push(o[i]);break}}}"AnimationEvent"in window||(delete r.animationstart.animation,delete o.animationend.animation),"TransitionEvent"in window||(delete r.transitionstart.transition,delete o.transitionend.transition),t(r,i),t(o,a)}();var s={startEvents:i,addStartEventListener:function(e,t){0!==i.length?i.forEach((function(n){l(e,n,t)})):window.setTimeout(t,0)},removeStartEventListener:function(e,t){0!==i.length&&i.forEach((function(n){c(e,n,t)}))},endEvents:a,addEndEventListener:function(e,t){0!==a.length?a.forEach((function(n){l(e,n,t)})):window.setTimeout(t,0)},removeEndEventListener:function(e,t){0!==a.length&&a.forEach((function(n){c(e,n,t)}))}};t.a=s},"/e88":function(e,t){e.exports="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff"},"/eQG":function(e,t,n){n("v5Dd");var r=n("WEpk").Object;e.exports=function(e,t){return r.getOwnPropertyDescriptor(e,t)}},"/h46":function(e,t,n){n("cHUd")("Map")},"/uf1":function(e,t,n){"use strict";var r=n("XKFU"),o=n("S/j/"),i=n("2OiF"),a=n("hswa");n("nh4g")&&r(r.P+n("xbSm"),"Object",{__defineSetter__:function(e,t){a.f(o(this),e,{set:i(t),enumerable:!0,configurable:!0})}})},0:function(e,t,n){n("CEcq"),e.exports=n("tjUo")},"0/R4":function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},"04bd":function(e,t,n){"use strict";n.r(t);n("SchZ"),n("/3gg")},"0E+W":function(e,t,n){n("elZq")("Array")},"0LDn":function(e,t,n){"use strict";n("OGtf")("italics",(function(e){return function(){return e(this,"i","","")}}))},"0Mri":function(e,t,n){var r=n("XKFU"),o=n("q9eg")(/[\\^$*+?.()|[\]{}]/g,"\\$&");r(r.S,"RegExp",{escape:function(e){return o(e)}})},"0YWM":function(e,t,n){var r=n("EemH"),o=n("OP3Y"),i=n("aagx"),a=n("XKFU"),l=n("0/R4"),c=n("y3w9");a(a.S,"Reflect",{get:function e(t,n){var a,s,u=arguments.length<3?t:arguments[2];return c(t)===u?t[n]:(a=r.f(t,n))?i(a,"value")?a.value:void 0!==a.get?a.get.call(u):void 0:l(s=o(t))?e(s,n,u):void 0}})},"0cfB":function(e,t,n){"use strict";e.exports=n("7B0+")},"0l/t":function(e,t,n){"use strict";var r=n("XKFU"),o=n("CkkT")(2);r(r.P+r.F*!n("LyE8")([].filter,!0),"Array",{filter:function(e){return o(this,e,arguments[1])}})},"0mN4":function(e,t,n){"use strict";n("OGtf")("fixed",(function(e){return function(){return e(this,"tt","","")}}))},"0r0h":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t){var n=[];return o.default.Children.forEach(t,(function(t){null!=t&&(Array.isArray(t)?n=n.concat(e(t)):(0,i.isFragment)(t)&&t.props?n=n.concat(e(t.props.children)):n.push(t))})),n};var r,o=(r=n("q1tI"))&&r.__esModule?r:{default:r},i=n("TOwV")},"0sh+":function(e,t,n){var r=n("quPj"),o=n("vhPU");e.exports=function(e,t,n){if(r(t))throw TypeError("String#"+n+" doesn't accept regex!");return String(o(e))}},"0tVQ":function(e,t,n){n("FlQf"),n("VJsP"),e.exports=n("WEpk").Array.from},"11IZ":function(e,t,n){var r=n("dyZX").parseFloat,o=n("qncB").trim;e.exports=1/r(n("/e88")+"-0")!=-1/0?function(e){var t=o(String(e),3),n=r(t);return 0===n&&"-"==t.charAt(0)?-0:n}:r},"14Xm":function(e,t,n){e.exports=n("u938")},"16Al":function(e,t,n){"use strict";var r=n("WbBG");function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},"17x9":function(e,t,n){e.exports=n("16Al")()},"1AP1":function(e,t,n){"use strict";var r=n("TqRt");Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=void 0;var o=r(n("pVnL")),i=r(n("lSNA")),a=r(n("QILm")),l=r(n("cWOT")),c=r(n("lwsE")),s=r(n("a1gu")),u=r(n("W8MJ")),f=r(n("7W2i")),h=r(n("PJYZ")),p=r(n("q1tI")),d=r(n("i8i4")),m=(r(n("17x9")),r(n("TSYQ"))),v=n("VCL8"),y=(r(n("PV3f")),r(n("3zPy"))),g=r(n("Ed7I")),b=r(n("61Rg")),w=r(n("Bp9Y")),x=r(n("o43f")),_=r(n("xKqy")),k=r(n("VOza")),S=n("fvma"),O=r(n("d05B")),M=r(n("jvf+")),T=r(n("Nf+j"));function E(e){return!!e.children&&e.children.props.hasOwnProperty("in")}var z=function(e){return{root:{display:"flex",width:"100%",height:"100%",position:"fixed",zIndex:e.zIndex.modal,top:0,left:0},hidden:{visibility:"hidden"}}};t.styles=z;var C=function(e){function t(e,n){var r;return(0,c.default)(this,t),r=(0,s.default)(this,(t.__proto__||(0,l.default)(t)).call(this,e,n)),Object.defineProperty((0,h.default)(r),"dialogElement",{configurable:!0,enumerable:!0,writable:!0,value:null}),Object.defineProperty((0,h.default)(r),"mounted",{configurable:!0,enumerable:!0,writable:!0,value:!1}),Object.defineProperty((0,h.default)(r),"mountNode",{configurable:!0,enumerable:!0,writable:!0,value:null}),Object.defineProperty((0,h.default)(r),"handleRendered",{configurable:!0,enumerable:!0,writable:!0,value:function(){r.autoFocus(),r.props.onRendered&&r.props.onRendered()}}),Object.defineProperty((0,h.default)(r),"handleOpen",{configurable:!0,enumerable:!0,writable:!0,value:function(){var e=(0,x.default)(r.mountNode),t=function(e,t){return e="function"==typeof e?e():e,d.default.findDOMNode(e)||t}(r.props.container,e.body);r.props.manager.add((0,h.default)(r),t),e.addEventListener("keydown",r.handleDocumentKeyDown),e.addEventListener("focus",r.enforceFocus,!0)}}),Object.defineProperty((0,h.default)(r),"handleClose",{configurable:!0,enumerable:!0,writable:!0,value:function(){r.props.manager.remove((0,h.default)(r));var e=(0,x.default)(r.mountNode);e.removeEventListener("keydown",r.handleDocumentKeyDown),e.removeEventListener("focus",r.enforceFocus),r.restoreLastFocus()}}),Object.defineProperty((0,h.default)(r),"handleExited",{configurable:!0,enumerable:!0,writable:!0,value:function(){r.setState({exited:!0}),r.handleClose()}}),Object.defineProperty((0,h.default)(r),"handleBackdropClick",{configurable:!0,enumerable:!0,writable:!0,value:function(e){e.target===e.currentTarget&&(r.props.onBackdropClick&&r.props.onBackdropClick(e),!r.props.disableBackdropClick&&r.props.onClose&&r.props.onClose(e,"backdropClick"))}}),Object.defineProperty((0,h.default)(r),"handleDocumentKeyDown",{configurable:!0,enumerable:!0,writable:!0,value:function(e){r.isTopModal()&&"esc"===(0,y.default)(e)&&(r.props.onEscapeKeyDown&&r.props.onEscapeKeyDown(e),!r.props.disableEscapeKeyDown&&r.props.onClose&&r.props.onClose(e,"escapeKeyDown"))}}),Object.defineProperty((0,h.default)(r),"checkForFocus",{configurable:!0,enumerable:!0,writable:!0,value:function(){w.default&&(r.lastFocus=(0,g.default)())}}),Object.defineProperty((0,h.default)(r),"enforceFocus",{configurable:!0,enumerable:!0,writable:!0,value:function(){if(!r.props.disableEnforceFocus&&r.mounted&&r.isTopModal()){var e=(0,g.default)((0,x.default)(r.mountNode));r.dialogElement&&!(0,b.default)(r.dialogElement,e)&&r.dialogElement.focus()}}}),r.state={exited:!r.props.open},r}return(0,f.default)(t,e),(0,u.default)(t,null,[{key:"getDerivedStateFromProps",value:function(e){return e.open?{exited:!1}:E(e)?null:{exited:!0}}}]),(0,u.default)(t,[{key:"componentDidMount",value:function(){this.mounted=!0,this.props.open&&this.handleOpen()}},{key:"componentDidUpdate",value:function(e){!e.open&&this.props.open&&this.checkForFocus(),!e.open||this.props.open||E(this.props)?!e.open&&this.props.open&&this.handleOpen():this.handleClose()}},{key:"componentWillUnmount",value:function(){this.mounted=!1,(this.props.open||E(this.props)&&!this.state.exited)&&this.handleClose()}},{key:"autoFocus",value:function(){if(!this.props.disableAutoFocus){var e=(0,g.default)((0,x.default)(this.mountNode));this.dialogElement&&!(0,b.default)(this.dialogElement,e)&&(this.lastFocus=e,this.dialogElement.hasAttribute("tabIndex")||this.dialogElement.setAttribute("tabIndex",-1),this.dialogElement.focus())}}},{key:"restoreLastFocus",value:function(){this.props.disableRestoreFocus||this.lastFocus&&(this.lastFocus.focus&&this.lastFocus.focus(),this.lastFocus=null)}},{key:"isTopModal",value:function(){return this.props.manager.isTopModal(this)}},{key:"render",value:function(){var e=this,t=this.props,n=t.BackdropComponent,r=t.BackdropProps,l=t.children,c=t.classes,s=t.className,u=t.container,f=(t.disableAutoFocus,t.disableBackdropClick,t.disableEnforceFocus,t.disableEscapeKeyDown,t.disableRestoreFocus,t.hideBackdrop),h=t.keepMounted,d=(t.onBackdropClick,t.onClose,t.onEscapeKeyDown,t.onRendered,t.open),v=(t.manager,(0,a.default)(t,["BackdropComponent","BackdropProps","children","classes","className","container","disableAutoFocus","disableBackdropClick","disableEnforceFocus","disableEscapeKeyDown","disableRestoreFocus","hideBackdrop","keepMounted","onBackdropClick","onClose","onEscapeKeyDown","onRendered","open","manager"])),y=this.state.exited,g=E(this.props),b={};return h||d||g&&!y?(g&&(b.onExited=(0,S.createChainedFunction)(this.handleExited,l.props.onExited)),void 0===l.props.role&&(b.role=l.props.role||"document"),void 0===l.props.tabIndex&&(b.tabIndex=l.props.tabIndex||"-1"),p.default.createElement(k.default,{ref:function(t){e.mountNode=t?t.getMountNode():t},container:u,onRendered:this.handleRendered},p.default.createElement("div",(0,o.default)({className:(0,m.default)(c.root,s,(0,i.default)({},c.hidden,y))},v),f?null:p.default.createElement(n,(0,o.default)({open:d,onClick:this.handleBackdropClick},r)),p.default.createElement(_.default,{rootRef:function(t){e.dialogElement=t}},p.default.cloneElement(l,b))))):null}}]),t}(p.default.Component);C.propTypes={},C.defaultProps={disableAutoFocus:!1,disableBackdropClick:!1,disableEnforceFocus:!1,disableEscapeKeyDown:!1,disableRestoreFocus:!1,hideBackdrop:!1,keepMounted:!1,manager:new M.default,BackdropComponent:T.default};var P=(0,O.default)(z,{flip:!1,name:"MuiModal"})((0,v.polyfill)(C));t.default=P},"1MBn":function(e,t,n){var r=n("DVgA"),o=n("JiEa"),i=n("UqcF");e.exports=function(e){var t=r(e),n=o.f;if(n)for(var a,l=n(e),c=i.f,s=0;l.length>s;)c.call(e,a=l[s++])&&t.push(a);return t}},"1QMK":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:l,t=arguments[1],n=t.payload,r=void 0===n?{}:n,i=t.type,c=r.subject_info,s=r.other_info,u=void 0===s?[]:s,f=r.total,h=void 0===f?{}:f,p=r.total_count;switch(i){case a.default.GET_STATIC_INFO:return o({},e,{subject_info:c,other_info:u,total:h,total_count:p});case a.default.CHANGE_STATIC_PARAMS:return o({},e,{params:Object.assign({},e.params,r)});case a.default.CHANGE_STATIC_TOTAL:return o({},e,{other_info:[],total:{}});default:return e}}},"1QNo":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["to","children","style","className"]));return l.default.createElement(l.default.Fragment,null,void 0===t?l.default.createElement("a",o({onClick:this.props.onClick},i,{className:"Actionbtn "+f[r||"blue"]+" "+this.props.className}),n):l.default.createElement(c.Link,o({to:t,className:"btn "+f[this.props.style]+" "+this.props.className},i),this.props.children))}}]),t}(a.Component);t.default=h},"1TsA":function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},"1V9r":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){e.renderable=t,e.rules&&t.cssRules&&e.rules.link(t.cssRules)}},"1Vz1":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n("f2ih"),i=(r=o)&&r.__esModule?r:{default:r};t.default=new i.default},"1W/9":function(e,t,n){"use strict";var r=n("q1tI"),o=n.n(r),i=n("i8i4"),a=n.n(i),l=n("17x9"),c=n.n(l),s=n("VCL8"),u=n("PIAm"),f=n("QC+M"),h=n("qx4F");var p=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.element,r=void 0===n?document.body:n,o={},i=Object.keys(e);return i.forEach((function(e){o[e]=r.style[e]})),i.forEach((function(t){r.style[t]=e[t]})),o};var d={},m=function(e){if(document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth||e){var t=new RegExp("".concat("ant-scrolling-effect"),"g"),n=document.body.className;if(e){if(!t.test(n))return;return p(d),d={},void(document.body.className=n.replace(t,"").trim())}var r=Object(h.a)();if(r&&(d=p({position:"relative",width:"calc(100% - ".concat(r,"px)")}),!t.test(n))){var o="".concat(n," ").concat("ant-scrolling-effect");document.body.className=o.trim()}}};function v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function y(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};return n(y({},t,{},l,{ref:e.savePortal}))},getContainer:this.getContainer,forceRender:r},(function(t){var n=t.renderComponent,r=t.removeContainer;return e.renderComponent=n,e.removeContainer=r,null}))}}])&&w(n.prototype,r),i&&w(n,i),l}(o.a.Component);C.propTypes={wrapperClassName:c.a.string,forceRender:c.a.bool,getContainer:c.a.any,children:c.a.func,visible:c.a.bool};t.a=Object(s.polyfill)(C)},"1sa7":function(e,t){e.exports=Math.log1p||function(e){return(e=+e)>-1e-8&&e<1e-8?e-e*e/2:Math.log(1+e)}},"1thW":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=s(n("TeRw")),o=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]&&arguments[0];return function(e){return function(t){function n(e){u(this,n);var t=f(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e));return t.showNotification=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"提示";arguments[2];r.default.open({message:t,description:e,style:{zIndex:99999999}})},t.bytesToSize=function(e){if(0===e)return"0 B";var t=Math.floor(Math.log(e)/Math.log(1024));return(e/Math.pow(1024,t)).toFixed(2)+" "+["B","KB","MB","GB","TB","PB","EB","ZB","YB"][t]},t.configNotification=function(e){e&&r.default.config({placement:e})},t.getNowFormatDates=function(e,t){var n,r=new Date,o=0;n=1===e?r.getMonth()+1:2===e?r.getMonth()+2:r.getMonth()+3;var i=r.getDate();n>=1&&n<=9&&(n="0"+n),i>=0&&i<=9&&(i="0"+i);var a=r.getMinutes();1===e?a>=0&&a<=9&&(a="0"+a):a>=0&&(a="00",o=1);var l=r.getHours()+o;return 1===t?r.getFullYear()+"-"+n+"-"+i+" 00:00":1===e?r.getFullYear()+"-"+n+"-"+i+" "+r.getHours()+":"+a:r.getFullYear()+"-"+n+"-"+i+" "+l+":"+a},t.confirm=function(e){var n=e.title,r=e.content,o=e.subContent,i=e.onOk,a=e.onCancel,l=e.okText;t.onCancel=a,t.onOk=i,t.okText=l||"确定",t.setState({title:n,content:r,subContent:o,dialogOpen:!0})},t.onDialogOkBtnClick=function(){t.onOk&&t.onOk(),t.setState({dialogOpen:!1}),t.onCancel=null,t.onOk=null},t.handleDialogClose=function(){t.onCancel&&t.onCancel(),t.setState({dialogOpen:!1}),t.onCancel=null,t.onOk=null},t.define=function(e){var n=e.title,r=e.content;t.setState({title:n,content:r,defineOpen:!0})},t.onDialogdefineOkBtnClick=function(){t.onCancel&&t.onCancel(),t.setState({defineOpen:!1}),t.onCancel=null,t.onOk=null},r.default.config({duration:3}),t.state={dialogOpen:!1,defineOpen:!1},t}return h(n,t),i(n,[{key:"render",value:function(){var t=this,n=this.state,r=(n.snackbarOpen,n.snackbarText,n.snackbarHorizontal,n.snackbarVertical,n.dialogOpen),i=n.content,a=n.subContent,s=n.defineOpen;return l.default.createElement(l.default.Fragment,null,l.default.createElement(c.default,{className:"confirmModal",modalsType:r,modalsTopval:i,modalsBottomval:a||"",modalCancel:this.handleDialogClose,modalSave:this.onDialogOkBtnClick,okText:this.okText}),l.default.createElement(c.default,{modalsType:s,modalsTopval:i,loadtype:!0,modalsBottomval:"",modalCancel:void 0,modalSave:this.onDialogdefineOkBtnClick}),l.default.createElement(e,o({},this.props,{showNotification:this.showNotification,bytesToSize:this.bytesToSize,getNowFormatDates:function(e,n){return t.getNowFormatDates(e,n)},configNotification:this.configNotification,confirm:this.confirm,define:this.define})))}}]),n}(a.Component)}},n("O+I2");var a=n("q1tI"),l=s(a),c=s(n("QYFm"));function s(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function h(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}},"1v76":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{indent:1},t=this.rules.toString(e);return t&&(t+="\n"),this.key+" {\n"+t+"}"}}]),e}();t.default=c},"1vPl":function(e,t,n){"use strict";n.r(t);n("SchZ"),n("RXDR"),n("L/Qf")},"2/Rp":function(e,t,n){"use strict";n.r(t);var r=n("q1tI"),o=n("17x9"),i=n("TSYQ"),a=n.n(i),l=n("VCL8"),c=n("BGR+"),s=n("CtXQ"),u=n("H84U"),f=n("g0mS"),h=n("CWQg");function p(){return(p=Object.assign||function(e){for(var t=1;t=0||o.indexOf("Bottom")>=0?a.top="".concat(i.height-n.offset[1],"px"):(o.indexOf("Top")>=0||o.indexOf("bottom")>=0)&&(a.top="".concat(-n.offset[1],"px")),o.indexOf("left")>=0||o.indexOf("Right")>=0?a.left="".concat(i.width-n.offset[0],"px"):(o.indexOf("right")>=0||o.indexOf("Left")>=0)&&(a.left="".concat(-n.offset[0],"px")),e.style.transformOrigin="".concat(a.left," ").concat(a.top)}},t.renderTooltip=function(e){var n=e.getPopupContainer,o=e.getPrefixCls,i=V(t),a=i.props,l=i.state,c=a.prefixCls,s=a.openClassName,u=a.getPopupContainer,f=a.getTooltipContainer,h=a.children,p=o("tooltip",c),d=l.visible;!("visible"in a)&&t.isNoTitle()&&(d=!1);var m,v,y,g=q(r.isValidElement(h)?h:r.createElement("span",null,h)),b=g.props,w=T()(b.className,(m={},v=s||"".concat(p,"-open"),y=!0,v in m?Object.defineProperty(m,v,{value:y,enumerable:!0,configurable:!0,writable:!0}):m[v]=y,m));return r.createElement(O,F({},t.props,{prefixCls:p,getTooltipContainer:u||f||n,ref:t.saveTooltip,builtinPlacements:t.getPlacements(),overlay:t.getOverlay(),visible:d,onVisibleChange:t.onVisibleChange,onPopupAlign:t.onPopupAlign}),d?r.cloneElement(g,{className:w}):g)},t.state={visible:!!e.visible||!!e.defaultVisible},t}return t=a,o=[{key:"getDerivedStateFromProps",value:function(e){return"visible"in e?{visible:e.visible}:null}}],(n=[{key:"getPopupDomNode",value:function(){return this.tooltip.getPopupDomNode()}},{key:"getPlacements",value:function(){var e=this.props,t=e.builtinPlacements,n=e.arrowPointAtCenter,r=e.autoAdjustOverflow;return t||function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.arrowWidth,n=void 0===t?5:t,r=e.horizontalArrowShift,o=void 0===r?16:r,i=e.verticalArrowShift,a=void 0===i?12:i,l=e.autoAdjustOverflow,c=void 0===l||l,s={left:{points:["cr","cl"],offset:[-4,0]},right:{points:["cl","cr"],offset:[4,0]},top:{points:["bc","tc"],offset:[0,-4]},bottom:{points:["tc","bc"],offset:[0,4]},topLeft:{points:["bl","tc"],offset:[-(o+n),-4]},leftTop:{points:["tr","cl"],offset:[-4,-(a+n)]},topRight:{points:["br","tc"],offset:[o+n,-4]},rightTop:{points:["tl","cr"],offset:[4,-(a+n)]},bottomRight:{points:["tr","bc"],offset:[o+n,4]},rightBottom:{points:["bl","cr"],offset:[4,a+n]},bottomLeft:{points:["tl","bc"],offset:[-(o+n),4]},leftBottom:{points:["br","cl"],offset:[-4,a+n]}};return Object.keys(s).forEach((function(t){s[t]=e.arrowPointAtCenter?E(E({},s[t]),{overflow:A(c),targetOffset:P}):E(E({},x[t]),{overflow:A(c)}),s[t].ignoreShake=!0})),s}({arrowPointAtCenter:n,verticalArrowShift:8,autoAdjustOverflow:r})}},{key:"isNoTitle",value:function(){var e=this.props,t=e.title,n=e.overlay;return!t&&!n&&0!==t}},{key:"getOverlay",value:function(){var e=this.props,t=e.title,n=e.overlay;return 0===t?t:n||t||""}},{key:"render",value:function(){return r.createElement(j.a,null,this.renderTooltip)}}])&&N(t.prototype,n),o&&N(t,o),a}(r.Component);B.defaultProps={placement:"top",transitionName:"zoom-big-fast",mouseEnterDelay:.1,mouseLeaveDelay:.1,arrowPointAtCenter:!1,autoAdjustOverflow:!0},Object(i.polyfill)(B);t.default=B},"3SYV":function(e,t,n){"use strict";e.exports=function(){}},"3UD+":function(e,t){e.exports=function(e){if(!e.webpackPolyfill){var t=Object.create(e);t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),Object.defineProperty(t,"exports",{enumerable:!0}),t.webpackPolyfill=1}return t}},"3WiY":function(e,t,n){var r=n("Y7ZC");r(r.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},"3YpW":function(e,t,n){n("KOQb")("Set")},"3x3+":function(e,t,n){"use strict";var r=n("61s2");t.a=r.a},"3xty":function(e,t,n){var r=n("XKFU"),o=n("2OiF"),i=n("y3w9"),a=(n("dyZX").Reflect||{}).apply,l=Function.apply;r(r.S+r.F*!n("eeVq")((function(){a((function(){}))})),"Reflect",{apply:function(e,t,n){var r=o(e),c=i(n);return a?a(r,t,c):l.call(r,t,c)}})},"3zPy":function(e,t){function n(e){if(e&&"object"==typeof e){var t=e.which||e.keyCode||e.charCode;t&&(e=t)}if("number"==typeof e)return a[e];var n,i=String(e);return(n=r[i.toLowerCase()])?n:(n=o[i.toLowerCase()])||(1===i.length?i.charCodeAt(0):void 0)}n.isEventKey=function(e,t){if(e&&"object"==typeof e){var n=e.which||e.keyCode||e.charCode;if(null==n)return!1;if("string"==typeof t){var i;if(i=r[t.toLowerCase()])return i===n;if(i=o[t.toLowerCase()])return i===n}else if("number"==typeof t)return t===n;return!1}};var r=(t=e.exports=n).code=t.codes={backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,"pause/break":19,"caps lock":20,esc:27,space:32,"page up":33,"page down":34,end:35,home:36,left:37,up:38,right:39,down:40,insert:45,delete:46,command:91,"left command":91,"right command":93,"numpad *":106,"numpad +":107,"numpad -":109,"numpad .":110,"numpad /":111,"num lock":144,"scroll lock":145,"my computer":182,"my calculator":183,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},o=t.aliases={windows:91,"⇧":16,"⌥":18,"⌃":17,"⌘":91,ctl:17,control:17,option:18,pause:19,break:19,caps:20,return:13,escape:27,spc:32,spacebar:32,pgup:33,pgdn:34,ins:45,del:46,cmd:91};for(i=97;i<123;i++)r[String.fromCharCode(i)]=i-32;for(var i=48;i<58;i++)r[i-48]=i;for(i=1;i<13;i++)r["f"+i]=i+111;for(i=0;i<10;i++)r["numpad "+i]=i+96;var a=t.names=t.title={};for(i in r)a[r[i]]=i;for(var l in o)r[l]=o[l]},"40dm":function(e,t,n){"use strict";var r=n("TqRt");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n("pVnL")),i=r(n("lSNA")),a=r(n("QILm")),l=r(n("cWOT")),c=r(n("lwsE")),s=r(n("W8MJ")),u=r(n("a1gu")),f=r(n("7W2i")),h=r(n("PJYZ")),p=r(n("q1tI")),d=(r(n("17x9")),r(n("TSYQ"))),m=r(n("S3Uj")),v=function(e){function t(){var e,n,r;(0,c.default)(this,t);for(var o=arguments.length,i=new Array(o),a=0;a=r.F1&&t<=r.F12)return!1;switch(t){case r.ALT:case r.CAPS_LOCK:case r.CONTEXT_MENU:case r.CTRL:case r.DOWN:case r.END:case r.ESC:case r.HOME:case r.INSERT:case r.LEFT:case r.MAC_FF_META:case r.META:case r.NUMLOCK:case r.NUM_CENTER:case r.PAGE_DOWN:case r.PAGE_UP:case r.PAUSE:case r.PRINT_SCREEN:case r.RIGHT:case r.SHIFT:case r.UP:case r.WIN_KEY:case r.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=r.ZERO&&e<=r.NINE)return!0;if(e>=r.NUM_ZERO&&e<=r.NUM_MULTIPLY)return!0;if(e>=r.A&&e<=r.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case r.SPACE:case r.QUESTION_MARK:case r.NUM_PLUS:case r.NUM_MINUS:case r.NUM_PERIOD:case r.NUM_DIVISION:case r.SEMICOLON:case r.DASH:case r.EQUALS:case r.COMMA:case r.PERIOD:case r.SLASH:case r.APOSTROPHE:case r.SINGLE_QUOTE:case r.OPEN_SQUARE_BRACKET:case r.BACKSLASH:case r.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};t.a=r},"4LiD":function(e,t,n){"use strict";var r=n("dyZX"),o=n("XKFU"),i=n("KroJ"),a=n("3Lyj"),l=n("Z6vF"),c=n("SlkY"),s=n("9gX7"),u=n("0/R4"),f=n("eeVq"),h=n("XMVh"),p=n("fyDq"),d=n("Xbzi");e.exports=function(e,t,n,m,v,y){var g=r[e],b=g,w=v?"set":"add",x=b&&b.prototype,_={},k=function(e){var t=x[e];i(x,e,"delete"==e||"has"==e?function(e){return!(y&&!u(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return y&&!u(e)?void 0:t.call(this,0===e?0:e)}:"add"==e?function(e){return t.call(this,0===e?0:e),this}:function(e,n){return t.call(this,0===e?0:e,n),this})};if("function"==typeof b&&(y||x.forEach&&!f((function(){(new b).entries().next()})))){var S=new b,O=S[w](y?{}:-0,1)!=S,M=f((function(){S.has(1)})),T=h((function(e){new b(e)})),E=!y&&f((function(){for(var e=new b,t=5;t--;)e[w](t,t);return!e.has(-0)}));T||((b=t((function(t,n){s(t,b,e);var r=d(new g,t,b);return null!=n&&c(n,v,r[w],r),r}))).prototype=x,x.constructor=b),(M||E)&&(k("delete"),k("has"),v&&k("get")),(E||O)&&k(w),y&&x.clear&&delete x.clear}else b=m.getConstructor(t,e,v,w),a(b.prototype,n),l.NEED=!0;return p(b,e),_[e]=b,o(o.G+o.W+o.F*(b!=g),_),y||m.setStrong(b,e,v),b}},"4MG8":function(e,t,n){const r=n("T9Ld"),o=n("66f7"),i=n("T7TJ"),a=n("SbYC"),l=n("+/fp"),c=n("J7Ao"),{merge:s,checkSanitizeDeprecation:u,escape:f}=n("rUJ1"),{getDefaults:h,changeDefaults:p,defaults:d}=n("vbtb");function m(e,t,n){if(null==e)throw new Error("marked(): input parameter is undefined or null");if("string"!=typeof e)throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected");if(n||"function"==typeof t){n||(n=t,t=null),t=s({},m.defaults,t||{}),u(t);const i=t.highlight;let a,l,c=0;try{a=r.lex(e,t)}catch(e){return n(e)}l=a.length;const f=function(e){if(e)return t.highlight=i,n(e);let r;try{r=o.parse(a,t)}catch(t){e=t}return t.highlight=i,e?n(e):n(null,r)};if(!i||i.length<3)return f();if(delete t.highlight,!l)return f();for(;cAn error occurred:

"+f(e.message+"",!0)+"
";throw e}}m.options=m.setOptions=function(e){return s(m.defaults,e),p(m.defaults),m},m.getDefaults=h,m.defaults=d,m.use=function(e){const t=s({},e);if(e.renderer){const n=m.defaults.renderer||new a;for(const t in e.renderer){const r=n[t];n[t]=(...o)=>{let i=e.renderer[t].apply(n,o);return!1===i&&(i=r.apply(n,o)),i}}t.renderer=n}if(e.tokenizer){const n=m.defaults.tokenizer||new i;for(const t in e.tokenizer){const r=n[t];n[t]=(...o)=>{let i=e.tokenizer[t].apply(n,o);return!1===i&&(i=r.apply(n,o)),i}}t.tokenizer=n}m.setOptions(t)},m.Parser=o,m.parser=o.parse,m.Renderer=a,m.TextRenderer=l,m.Lexer=r,m.lexer=r.lex,m.Tokenizer=i,m.Slugger=c,m.parse=m,e.exports=m},"4R4u":function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},"4p7I":function(e,t,n){"use strict";var r=n("2W6z"),o=n.n(r),i=n("QLaP"),a=n.n(i),l=n("q1tI"),c=n.n(l),s=n("17x9"),u=n.n(s),f=n("SsKX"),h=Object.assign||function(e){for(var t=1;t or withRouter() outside a ");var s=t.route,u=(r||s.location).pathname;return Object(f.a)(u,{path:o,strict:i,exact:l,sensitive:c},s.match)},t.prototype.componentWillMount=function(){o()(!(this.props.component&&this.props.render),"You should not use and in the same route; will be ignored"),o()(!(this.props.component&&this.props.children&&!m(this.props.children)),"You should not use and in the same route; will be ignored"),o()(!(this.props.render&&this.props.children&&!m(this.props.children)),"You should not use and in the same route; will be ignored")},t.prototype.componentWillReceiveProps=function(e,t){o()(!(e.location&&!this.props.location),' elements should not change from uncontrolled to controlled (or vice versa). You initially used no "location" prop and then provided one on a subsequent render.'),o()(!(!e.location&&this.props.location),' elements should not change from controlled to uncontrolled (or vice versa). You provided a "location" prop initially but omitted it on a subsequent render.'),this.setState({match:this.computeMatch(e,t.router)})},t.prototype.render=function(){var e=this.state.match,t=this.props,n=t.children,r=t.component,o=t.render,i=this.context.router,a=i.history,l=i.route,s=i.staticContext,u={match:e,location:this.props.location||l.location,history:a,staticContext:s};return r?e?c.a.createElement(r,u):null:o?e?o(u):null:"function"==typeof n?n(u):n&&!m(n)?c.a.Children.only(n):null},t}(c.a.Component);v.propTypes={computedMatch:u.a.object,path:u.a.string,exact:u.a.bool,strict:u.a.bool,sensitive:u.a.bool,component:u.a.func,render:u.a.func,children:u.a.oneOfType([u.a.func,u.a.node]),location:u.a.object},v.contextTypes={router:u.a.shape({history:u.a.object.isRequired,route:u.a.object.isRequired,staticContext:u.a.object})},v.childContextTypes={router:u.a.object.isRequired},t.a=v},"4piT":function(e,t,n){"use strict";var r=n("TqRt");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n("cWOT")),i=r(n("lwsE")),a=r(n("W8MJ")),l=r(n("a1gu")),c=r(n("7W2i")),s=r(n("PJYZ")),u=r(n("q1tI")),f=r(n("i8i4")),h=(r(n("17x9")),r(n("o43f")));r(n("i4o0"));var p=function(e){function t(){var e,n,r;(0,i.default)(this,t);for(var a=arguments.length,c=new Array(a),u=0;u0&&void 0!==arguments[0]?arguments[0]:{},t=e.palette,n=void 0===t?{}:t,r=e.breakpoints,m=void 0===r?{}:r,v=e.mixins,y=void 0===v?{}:v,g=e.typography,b=void 0===g?{}:g,w=e.shadows,x=(0,i.default)(e,["palette","breakpoints","mixins","typography","shadows"]),_=(0,s.default)(n),k=(0,c.default)(m),S=(0,o.default)({breakpoints:k,direction:"ltr",mixins:(0,u.default)(k,d.default,y),overrides:{},palette:_,props:{},shadows:w||f.default,typography:(0,l.default)(_,b)},(0,a.default)({transitions:h.default,spacing:d.default,zIndex:p.default},x));return S};t.default=m},"5Cgt":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Mixcloud=void 0;var r,o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==c(e)&&"function"!=typeof e)return{default:e};var t=l();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n("q1tI")),i=n("tbWI"),a=(r=n("LVMo"))&&r.__esModule?r:{default:r};function l(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return l=function(){return e},e}function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){for(var n=0;nc;)r(l,n=t[c++])&&(~i(s,n)||s.push(n));return s}},"6/1s":function(e,t,n){var r=n("YqAc")("meta"),o=n("93I4"),i=n("B+OT"),a=n("2faE").f,l=0,c=Object.isExtensible||function(){return!0},s=!n("KUxP")((function(){return c(Object.preventExtensions({}))})),u=function(e){a(e,r,{value:{i:"O"+ ++l,w:{}}})},f=e.exports={KEY:r,NEED:!1,fastKey:function(e,t){if(!o(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!i(e,r)){if(!c(e))return"F";if(!t)return"E";u(e)}return e[r].i},getWeak:function(e,t){if(!i(e,r)){if(!c(e))return!0;if(!t)return!1;u(e)}return e[r].w},onFreeze:function(e){return s&&f.NEED&&c(e)&&!i(e,r)&&u(e),e}}},"61Rg":function(e,t,n){"use strict";var r=n("FGEo");t.__esModule=!0,t.default=void 0;var o=r(n("Bp9Y")).default?function(e,t){return e.contains?e.contains(t):e.compareDocumentPosition?e===t||!!(16&e.compareDocumentPosition(t)):i(e,t)}:i;function i(e,t){if(t)do{if(t===e)return!0}while(t=t.parentNode);return!1}t.default=o,e.exports=t.default},"61SU":function(e,t,n){(function(t){for(var r=n("bQgK"),o="undefined"==typeof window?t:window,i=["moz","webkit"],a="AnimationFrame",l=o["request"+a],c=o["cancel"+a]||o["cancelRequest"+a],s=0;!l&&s0&&"text"===y.tokens[0].tokens[0].type&&(y.tokens[0].tokens[0].text=w+" "+y.tokens[0].tokens[0].text)):y.tokens.unshift({type:"text",text:w}):v+=w),v+=this.parse(y.tokens,m),f+=this.renderer.listitem(v,b,g);x+=this.renderer.list(f,p,d);continue;case"html":x+=this.renderer.html(h.text);continue;case"paragraph":x+=this.renderer.paragraph(this.parseInline(h.tokens));continue;case"text":for(f=h.tokens?this.parseInline(h.tokens):h.text;n+1<_&&"text"===e[n+1].type;)h=e[++n],f+="\n"+(h.tokens?this.parseInline(h.tokens):h.text);x+=t?this.renderer.paragraph(f):f;continue;default:{const e='Token with "'+h.type+'" type was not found.';if(this.options.silent)return void console.error(e);throw new Error(e)}}return x}parseInline(e,t){t=t||this.renderer;let n,r,o="";const i=e.length;for(n=0;ne;)o(n,e,arguments[e++]);return n.length=t,n}})},"6CfX":function(e,t,n){"use strict";var r=n("Kwbf");t.a=function(e,t,n){Object(r.a)(e,"[antd: ".concat(t,"] ").concat(n))}},"6FMO":function(e,t,n){var r=n("0/R4"),o=n("EWmC"),i=n("K0xU")("species");e.exports=function(e){var t;return o(e)&&("function"!=typeof(t=e.constructor)||t!==Array&&!o(t.prototype)||(t=void 0),r(t)&&null===(t=t[i])&&(t=void 0)),void 0===t?Array:t}},"6VaU":function(e,t,n){"use strict";var r=n("XKFU"),o=n("xF/b"),i=n("S/j/"),a=n("ne8i"),l=n("2OiF"),c=n("zRwo");r(r.P,"Array",{flatMap:function(e){var t,n,r=i(this);return l(e),t=a(r.length),n=c(r,0),o(n,r,r,t,0,1,e,arguments[1]),n}}),n("nGyu")("flatMap")},"6dIT":function(e,t){e.exports=Math.scale||function(e,t,n,r,o){return 0===arguments.length||e!=e||t!=t||n!=n||r!=r||o!=o?NaN:e===1/0||e===-1/0?e:(e-t)*(o-r)/(n-t)+r}},"6tYh":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"FilePlayer",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(t,"YouTube",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(t,"SoundCloud",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(t,"Vimeo",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(t,"Facebook",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(t,"Streamable",{enumerable:!0,get:function(){return m.default}}),Object.defineProperty(t,"Wistia",{enumerable:!0,get:function(){return v.default}}),Object.defineProperty(t,"Twitch",{enumerable:!0,get:function(){return y.default}}),Object.defineProperty(t,"DailyMotion",{enumerable:!0,get:function(){return g.default}}),Object.defineProperty(t,"Mixcloud",{enumerable:!0,get:function(){return b.default}}),t.default=void 0;var r=_(n("q1tI")),o=n("QXAm"),i=n("tbWI"),a=w(n("zuFh")),l=w(n("q+qS")),c=w(n("fflM")),s=_(n("bq/u")),u=w(n("fn3U")),f=w(n("/6c9")),h=w(n("xkkJ")),p=w(n("LLoX")),d=w(n("f77o")),m=w(n("GdC5")),v=w(n("W4/P")),y=w(n("bA2t")),g=w(n("Rom6")),b=w(n("5Cgt"));function w(e){return e&&e.__esModule?e:{default:e}}function x(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return x=function(){return e},e}function _(e){if(e&&e.__esModule)return e;if(null===e||"object"!==k(e)&&"function"!=typeof e)return{default:e};var t=x();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}return n.default=e,t&&t.set(e,n),n}function k(e){return(k="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function S(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function O(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:"player";return e.player?e.player.getInternalPlayer(t):null})),H(A(e),"seekTo",(function(t,n){if(!e.player)return null;e.player.seekTo(t,n)})),H(A(e),"handleReady",(function(){e.props.onReady(A(e))})),H(A(e),"wrapperRef",(function(t){e.wrapper=t})),H(A(e),"activePlayerRef",(function(t){e.player=t})),e}return n=d,(f=[{key:"componentDidMount",value:function(){this.props.progressFrequency&&console.warn("ReactPlayer: %cprogressFrequency%c is deprecated, please use %cprogressInterval%c instead","font-weight: bold","","font-weight: bold","")}},{key:"shouldComponentUpdate",value:function(e,t){return!(0,i.isEqual)(this.props,e)||!(0,i.isEqual)(this.state,t)}},{key:"componentDidUpdate",value:function(e){var t=this.props.light;this.config=(0,i.getConfig)(this.props,o.defaultProps),!e.light&&t&&this.setState({showPreview:!0}),e.light&&!t&&this.setState({showPreview:!1})}},{key:"getActivePlayer",value:function(e){for(var t=0,n=[].concat(T(I),T(a.default));tn;)o[n]=t[n++];return o},ze=function(e,t,n){F(e,t,{get:function(){return this._d[n]}})},Ce=function(e){var t,n,r,o,i,a,l=_(e),c=arguments.length,u=c>1?arguments[1]:void 0,f=void 0!==u,h=T(l);if(null!=h&&!k(h)){for(a=h.call(l),r=[],t=0;!(i=a.next()).done;t++)r.push(i.value);l=r}for(f&&c>2&&(u=s(u,arguments[2],2)),t=0,n=m(l.length),o=Me(this,n);n>t;t++)o[t]=f?u(l[t],t):l[t];return o},Pe=function(){for(var e=0,t=arguments.length,n=Me(this,t);t>e;)n[e]=arguments[e++];return n},Ae=!!W&&i((function(){pe.call(new W(1))})),je=function(){return pe.apply(Ae?fe.call(Oe(this)):Oe(this),arguments)},Le={copyWithin:function(e,t){return I.call(Oe(this),e,t,arguments.length>2?arguments[2]:void 0)},every:function(e){return Z(Oe(this),e,arguments.length>1?arguments[1]:void 0)},fill:function(e){return R.apply(Oe(this),arguments)},filter:function(e){return Te(this,J(Oe(this),e,arguments.length>1?arguments[1]:void 0))},find:function(e){return $(Oe(this),e,arguments.length>1?arguments[1]:void 0)},findIndex:function(e){return ee(Oe(this),e,arguments.length>1?arguments[1]:void 0)},forEach:function(e){X(Oe(this),e,arguments.length>1?arguments[1]:void 0)},indexOf:function(e){return ne(Oe(this),e,arguments.length>1?arguments[1]:void 0)},includes:function(e){return te(Oe(this),e,arguments.length>1?arguments[1]:void 0)},join:function(e){return se.apply(Oe(this),arguments)},lastIndexOf:function(e){return ae.apply(Oe(this),arguments)},map:function(e){return xe(Oe(this),e,arguments.length>1?arguments[1]:void 0)},reduce:function(e){return le.apply(Oe(this),arguments)},reduceRight:function(e){return ce.apply(Oe(this),arguments)},reverse:function(){for(var e,t=Oe(this).length,n=Math.floor(t/2),r=0;r1?arguments[1]:void 0)},sort:function(e){return ue.call(Oe(this),e)},subarray:function(e,t){var n=Oe(this),r=n.length,o=y(e,r);return new(A(n,n[ye]))(n.buffer,n.byteOffset+o*n.BYTES_PER_ELEMENT,m((void 0===t?r:y(t,r))-o))}},Ne=function(e,t){return Te(this,fe.call(Oe(this),e,t))},He=function(e){Oe(this);var t=Se(arguments[1],1),n=this.length,r=_(e),o=m(r.length),i=0;if(o+t>n)throw B("Wrong length!");for(;i255?255:255&r),o.v[p](n*t+o.o,r,_e)}(this,n,e)},enumerable:!0})};b?(d=n((function(e,n,r,o){u(e,d,s,"_d");var i,a,l,c,f=0,p=0;if(x(n)){if(!(n instanceof G||"ArrayBuffer"==(c=w(n))||"SharedArrayBuffer"==c))return be in n?Ee(d,n):Ce.call(d,n);i=n,p=Se(r,t);var y=n.byteLength;if(void 0===o){if(y%t)throw B("Wrong length!");if((a=y-p)<0)throw B("Wrong length!")}else if((a=m(o)*t)+p>y)throw B("Wrong length!");l=a/t}else l=v(n),i=new G(a=l*t);for(h(e,"_d",{b:i,o:p,l:a,e:l,v:new K(i)});f>1,u=23===t?O(2,-24)-O(2,-77):0,f=0,h=e<0||0===e&&1/e<0?1:0;for((e=S(e))!=e||e===_?(o=e!=e?1:0,r=c):(r=M(T(e)/E),e*(i=O(2,-r))<1&&(r--,i*=2),(e+=r+s>=1?u/i:u*O(2,1-s))*i>=2&&(r++,i/=2),r+s>=c?(o=0,r=c):r+s>=1?(o=(e*i-1)*O(2,t),r+=s):(o=e*O(2,s-1)*O(2,t),r=0));t>=8;a[f++]=255&o,o/=256,t-=8);for(r=r<0;a[f++]=255&r,r/=256,l-=8);return a[--f]|=128*h,a}function j(e,t,n){var r,o=8*n-t-1,i=(1<>1,l=o-7,c=n-1,s=e[c--],u=127&s;for(s>>=7;l>0;u=256*u+e[c],c--,l-=8);for(r=u&(1<<-l)-1,u>>=-l,l+=t;l>0;r=256*r+e[c],c--,l-=8);if(0===u)u=1-a;else{if(u===i)return r?NaN:s?-_:_;r+=O(2,t),u-=a}return(s?-1:1)*r*O(2,u-t)}function L(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]}function N(e){return[255&e]}function H(e){return[255&e,e>>8&255]}function R(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]}function I(e){return A(e,52,8)}function V(e){return A(e,23,4)}function D(e,t,n){m(e.prototype,t,{get:function(){return this[n]}})}function F(e,t,n,r){var o=p(+n);if(o+t>e[C])throw x("Wrong index!");var i=e[z]._b,a=o+e[P],l=i.slice(a,a+t);return r?l:l.reverse()}function q(e,t,n,r,o,i){var a=p(+n);if(a+t>e[C])throw x("Wrong index!");for(var l=e[z]._b,c=a+e[P],s=r(+o),u=0;uY;)(B=W[Y++])in g||l(g,B,k[B]);i||(U.constructor=g)}var G=new b(new g(2)),K=b.prototype.setInt8;G.setInt8(0,2147483648),G.setInt8(1,2147483649),!G.getInt8(0)&&G.getInt8(1)||c(b.prototype,{setInt8:function(e,t){K.call(this,e,t<<24>>24)},setUint8:function(e,t){K.call(this,e,t<<24>>24)}},!0)}else g=function(e){u(this,g,"ArrayBuffer");var t=p(e);this._b=v.call(new Array(t),0),this[C]=t},b=function(e,t,n){u(this,b,"DataView"),u(e,g,"DataView");var r=e[C],o=f(t);if(o<0||o>r)throw x("Wrong offset!");if(o+(n=void 0===n?r-o:h(n))>r)throw x("Wrong length!");this[z]=e,this[P]=o,this[C]=n},o&&(D(g,"byteLength","_l"),D(b,"buffer","_b"),D(b,"byteLength","_l"),D(b,"byteOffset","_o")),c(b.prototype,{getInt8:function(e){return F(this,1,e)[0]<<24>>24},getUint8:function(e){return F(this,1,e)[0]},getInt16:function(e){var t=F(this,2,e,arguments[1]);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=F(this,2,e,arguments[1]);return t[1]<<8|t[0]},getInt32:function(e){return L(F(this,4,e,arguments[1]))},getUint32:function(e){return L(F(this,4,e,arguments[1]))>>>0},getFloat32:function(e){return j(F(this,4,e,arguments[1]),23,4)},getFloat64:function(e){return j(F(this,8,e,arguments[1]),52,8)},setInt8:function(e,t){q(this,1,e,N,t)},setUint8:function(e,t){q(this,1,e,N,t)},setInt16:function(e,t){q(this,2,e,H,t,arguments[2])},setUint16:function(e,t){q(this,2,e,H,t,arguments[2])},setInt32:function(e,t){q(this,4,e,R,t,arguments[2])},setUint32:function(e,t){q(this,4,e,R,t,arguments[2])},setFloat32:function(e,t){q(this,4,e,V,t,arguments[2])},setFloat64:function(e,t){q(this,8,e,I,t,arguments[2])}});y(g,"ArrayBuffer"),y(b,"DataView"),l(b.prototype,a.VIEW,!0),t.ArrayBuffer=g,t.DataView=b},"7TPF":function(e,t,n){n("AUvm"),e.exports=n("WEpk").Object.getOwnPropertySymbols},"7VC1":function(e,t,n){"use strict";var r=n("XKFU"),o=n("Lgjv"),i=n("ol8x"),a=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(i);r(r.P+r.F*a,"String",{padEnd:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0,!1)}})},"7W2i":function(e,t,n){var r=n("r4Cf"),o=n("SksO");e.exports=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=r(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&o(e,t)}},"7X58":function(e,t,n){var r=n("XKFU");r(r.S,"Math",{signbit:function(e){return(e=+e)!=e?e:0==e?1/e==1/0:e>0}})},"7apM":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.requestProxy=function(e){var t=e.url;if(-1!==t.indexOf(".json"))return e;e.withCredentials=!1;var n=t.split("?"),a=n[0],l=void 0,c=void 0;(l=r[a])||o.forEach((function(t,r){var o=a.match(t);if(o){var s=i[r];return l=s&&s(o),c=l+"?"+n[1],e.url=c,e}}));return e};var r={},o=[/\/api\/v1\/games\/(\w*)\/choose_build/i],i=[function(e){return"/tasks/"+e[1]+"/choose_build.json"}]},"7h0T":function(e,t,n){var r=n("XKFU");r(r.S,"Number",{isNaN:function(e){return e!=e}})},"8+KV":function(e,t,n){"use strict";var r=n("XKFU"),o=n("CkkT")(0),i=n("LyE8")([].forEach,!0);r(r.P+r.F*!i,"Array",{forEach:function(e){return o(this,e,arguments[1])}})},"8/o9":function(e,t,n){"use strict";n.r(t);n("SchZ"),n("PYb6")},"84bF":function(e,t,n){"use strict";n("OGtf")("small",(function(e){return function(){return e(this,"small","","")}}))},"86LW":function(e,t,n){(function(t){!function(t){"use strict";var n=Object.prototype,r=n.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag",c="object"==typeof e,s=t.regeneratorRuntime;if(s)c&&(e.exports=s);else{(s=t.regeneratorRuntime=c?e.exports:{}).wrap=m;var u={},f={};f[i]=function(){return this};var h=Object.getPrototypeOf,p=h&&h(h(M([])));p&&p!==n&&r.call(p,i)&&(f=p);var d=b.prototype=y.prototype=Object.create(f);g.prototype=d.constructor=b,b.constructor=g,b[l]=g.displayName="GeneratorFunction",s.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},s.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,l in e||(e[l]="GeneratorFunction")),e.prototype=Object.create(d),e},s.awrap=function(e){return{__await:e}},w(x.prototype),x.prototype[a]=function(){return this},s.AsyncIterator=x,s.async=function(e,t,n,r){var o=new x(m(e,t,n,r));return s.isGeneratorFunction(t)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},w(d),d[l]="Generator",d[i]=function(){return this},d.toString=function(){return"[object Generator]"},s.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},s.values=M,O.prototype={constructor:O,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(S),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var l=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(l&&c){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),S(n),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;S(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:M(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),u}}}function m(e,t,n,r){var o=t&&t.prototype instanceof y?t:y,i=Object.create(o.prototype),a=new O(r||[]);return i._invoke=function(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return T()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var l=_(a,n);if(l){if(l===u)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=v(e,t,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}(e,n,a),i}function v(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}function y(){}function g(){}function b(){}function w(e){["next","throw","return"].forEach((function(t){e[t]=function(e){return this._invoke(t,e)}}))}function x(e){function n(t,o,i,a){var l=v(e[t],e,o);if("throw"!==l.type){var c=l.arg,s=c.value;return s&&"object"==typeof s&&r.call(s,"__await")?Promise.resolve(s.__await).then((function(e){n("next",e,i,a)}),(function(e){n("throw",e,i,a)})):Promise.resolve(s).then((function(e){c.value=e,i(c)}),a)}a(l.arg)}var o;"object"==typeof t.process&&t.process.domain&&(n=t.process.domain.bind(n)),this._invoke=function(e,t){function r(){return new Promise((function(r,o){n(e,t,r,o)}))}return o=o?o.then(r,r):r()}}function _(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var r=v(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,u;var o=r.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function O(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function M(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n0&&void 0!==arguments[0]?arguments[0]:l,t=arguments[1];switch(t.type){case a.default.GET_JUPYTER_DATA_SETS:var n=t.payload,r=n.data_sets,i=n.data_sets_count,c=n.folder_name,s=e.jupyter_data_set;return r.map((function(e,t){s.push(e)})),o({},e,{jupyter_data_set:s,jupyter_data_set_count:i,jupyter_folder_name:c});case a.default.GET_JUPYTER_TPI_URL:var u=t.payload,f=u.url,h=u.status,p=u.port;return o({},e,{jupyter_tpi_url:f,jupyter_tpi_url_state:h,jupyter_tpi_code:p});case a.default.SAVE_JUPYTER_IDENTIFIER:return o({},e,{jupyter_identifier:t.payload});case a.default.SAVE_JUPYTER_INFO:return o({},e,{jupyter_info:t.payload});case a.default.CHANGE_JUPYTER_URL_STATE:return o({},e,{jupyter_tpi_url_state:t.payload});case a.default.CHANGE_JUPYTER_CURRENT_PAGE:return o({},e,{jupyter_pagination:Object.assign({},e.jupyter_pagination,{page:t.payload})});default:return o({},e)}}},"8Lis":function(e,t,n){"use strict";var r=n("TqRt");Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=void 0;var o=r(n("pVnL")),i=r(n("lSNA")),a=r(n("QILm")),l=r(n("MVZn")),c=r(n("q1tI")),s=(r(n("17x9")),r(n("TSYQ"))),u=r(n("d05B")),f=n("JS0+"),h=r(n("tC+R")),p=n("fvma"),d=function(e){return{root:(0,l.default)({},e.typography.button,{lineHeight:"1.4em",boxSizing:"border-box",minWidth:11*e.spacing.unit,minHeight:36,padding:"".concat(e.spacing.unit,"px ").concat(2*e.spacing.unit,"px"),borderRadius:2,color:e.palette.text.primary,transition:e.transitions.create(["background-color","box-shadow"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none",backgroundColor:(0,f.fade)(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"},"&$disabled":{backgroundColor:"transparent"}},"&$disabled":{color:e.palette.action.disabled}}),label:{width:"100%",display:"inherit",alignItems:"inherit",justifyContent:"inherit"},flatPrimary:{color:e.palette.primary.main,"&:hover":{backgroundColor:(0,f.fade)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},flatSecondary:{color:e.palette.secondary.main,"&:hover":{backgroundColor:(0,f.fade)(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},colorInherit:{color:"inherit"},raised:{color:e.palette.getContrastText(e.palette.grey[300]),backgroundColor:e.palette.grey[300],boxShadow:e.shadows[2],"&$focusVisible":{boxShadow:e.shadows[6]},"&:active":{boxShadow:e.shadows[8]},"&$disabled":{color:e.palette.action.disabled,boxShadow:e.shadows[0],backgroundColor:e.palette.action.disabledBackground},"&:hover":{backgroundColor:e.palette.grey.A100,"@media (hover: none)":{backgroundColor:e.palette.grey[300]},"&$disabled":{backgroundColor:e.palette.action.disabledBackground}}},raisedPrimary:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main,"&:hover":{backgroundColor:e.palette.primary.dark,"@media (hover: none)":{backgroundColor:e.palette.primary.main}}},raisedSecondary:{color:e.palette.secondary.contrastText,backgroundColor:e.palette.secondary.main,"&:hover":{backgroundColor:e.palette.secondary.dark,"@media (hover: none)":{backgroundColor:e.palette.secondary.main}}},focusVisible:{},disabled:{},fab:{borderRadius:"50%",padding:0,minWidth:0,width:56,fontSize:24,height:56,boxShadow:e.shadows[6],"&:active":{boxShadow:e.shadows[12]}},mini:{width:40,height:40},sizeSmall:{padding:"".concat(e.spacing.unit-1,"px ").concat(e.spacing.unit,"px"),minWidth:8*e.spacing.unit,minHeight:32,fontSize:e.typography.pxToRem(13)},sizeLarge:{padding:"".concat(e.spacing.unit,"px ").concat(3*e.spacing.unit,"px"),minWidth:14*e.spacing.unit,minHeight:40,fontSize:e.typography.pxToRem(15)},fullWidth:{width:"100%"}}};function m(e){var t,n=e.children,r=e.classes,l=e.className,u=e.color,f=e.disabled,d=e.disableFocusRipple,m=e.fullWidth,v=e.focusVisibleClassName,y=e.mini,g=e.size,b=e.variant,w=(0,a.default)(e,["children","classes","className","color","disabled","disableFocusRipple","fullWidth","focusVisibleClassName","mini","size","variant"]),x="fab"===b,_="raised"===b,k=!_&&!x,S=(0,s.default)(r.root,(t={},(0,i.default)(t,r.raised,_||x),(0,i.default)(t,r.fab,x),(0,i.default)(t,r.mini,x&&y),(0,i.default)(t,r.colorInherit,"inherit"===u),(0,i.default)(t,r.flatPrimary,k&&"primary"===u),(0,i.default)(t,r.flatSecondary,k&&"secondary"===u),(0,i.default)(t,r.raisedPrimary,!k&&"primary"===u),(0,i.default)(t,r.raisedSecondary,!k&&"secondary"===u),(0,i.default)(t,r["size".concat((0,p.capitalize)(g))],"medium"!==g),(0,i.default)(t,r.disabled,f),(0,i.default)(t,r.fullWidth,m),t),l);return c.default.createElement(h.default,(0,o.default)({className:S,disabled:f,focusRipple:!d,focusVisibleClassName:(0,s.default)(r.focusVisible,v)},w),c.default.createElement("span",{className:r.label},n))}t.styles=d,m.propTypes={},m.defaultProps={color:"default",disabled:!1,disableFocusRipple:!1,fullWidth:!1,mini:!1,size:"medium",type:"button",variant:"flat"};var v=(0,u.default)(d,{name:"MuiButton"})(m);t.default=v},"8MEG":function(e,t,n){"use strict";var r=n("2OiF"),o=n("0/R4"),i=n("MfQN"),a=[].slice,l={},c=function(e,t,n){if(!(t in l)){for(var r=[],o=0;o ignores the history prop. To use a custom history, use `import { Router }` instead of `import { MemoryRouter as Router }`.")},t.prototype.render=function(){return a.a.createElement(u.a,{history:this.history,children:this.props.children})},t}(a.a.Component);p.propTypes={initialEntries:c.a.array,initialIndex:c.a.number,getUserConfirmation:c.a.func,keyLength:c.a.number,children:c.a.node},t.a=p},"8Y+z":function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){return e===e.window?e:9===e.nodeType&&(e.defaultView||e.parentWindow)},e.exports=t.default},"8a7r":function(e,t,n){"use strict";var r=n("hswa"),o=n("RjD/");e.exports=function(e,t,n){t in e?r.f(e,t,o(0,n)):e[t]=n}},"8iia":function(e,t,n){var r=n("QMMT"),o=n("RRc/");e.exports=function(e){return function(){if(r(this)!=e)throw TypeError(e+"#toJSON isn't generic");return o(this)}}},"8jD+":function(e,t,n){"use strict";var r=n("TqRt");Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.isNumber=t.isString=t.formatMs=t.duration=t.easing=void 0;r(n("iVxW"));var o=r(n("QILm")),i=r(n("MRPZ")),a=(r(n("PV3f")),{easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"});t.easing=a;var l={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};t.duration=l;var c=function(e){return"".concat(Math.round(e),"ms")};t.formatMs=c;t.isString=function(e){return"string"==typeof e};t.isNumber=function(e){return!(0,i.default)(parseFloat(e))};var s={easing:a,duration:l,create:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(){var n=t.duration,r=void 0===n?l.standard:n,i=t.easing,s=void 0===i?a.easeInOut:i,u=t.delay,f=void 0===u?0:u;(0,o.default)(t,["duration","easing","delay"]);return(Array.isArray(e)?e:[e]).map((function(e){return"".concat(e," ").concat("string"==typeof r?r:c(r)," ").concat(s," ").concat("string"==typeof f?f:c(f))})).join(",")}()},getAutoHeightDuration:function(e){if(!e)return 0;var t=e/36;return Math.round(10*(4+15*Math.pow(t,.25)+t/5))}};t.default=s},"8oxe":function(e,t,n){"use strict";var r=n("TqRt");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n("o43f")),i=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window,n=(0,o.default)(e);return n.defaultView||n.parentView||t};t.default=i},"8tx+":function(e,t,n){"use strict";var r=n("jo6Y"),o=n.n(r),i=n("YEIV"),a=n.n(i),l=n("QbLZ"),c=n.n(l),s=n("iCc5"),u=n.n(s),f=n("V7oC"),h=n.n(f),p=n("FYw3"),d=n.n(p),m=n("mRg0"),v=n.n(m),y=n("q1tI"),g=n.n(y),b=n("17x9"),w=n.n(b),x=n("i8i4"),_=n.n(x),k=n("MFj2"),S=n("2GS6"),O=n("TSYQ"),M=n.n(O),T=function(e){function t(){var e,n,r,o;u()(this,t);for(var i=arguments.length,a=Array(i),l=0;l=n&&(e.updateKey=a[0].updateKey||a[0].key,a.shift()),a.push(e)),{notices:a}}))},r.remove=function(e){r.setState((function(t){return{notices:t.notices.filter((function(t){return t.key!==e}))}}))},o=n,d()(r,o)}return v()(t,e),h()(t,[{key:"getTransitionName",value:function(){var e=this.props,t=e.transitionName;return!t&&e.animation&&(t=e.prefixCls+"-"+e.animation),t}},{key:"render",value:function(){var e,t=this,n=this.props,r=this.state.notices,o=r.map((function(e,o){var i=Boolean(o===r.length-1&&e.updateKey),a=e.updateKey?e.updateKey:e.key,l=Object(S.a)(t.remove.bind(t,e.key),e.onClose);return g.a.createElement(E,c()({prefixCls:n.prefixCls},e,{key:a,update:i,onClose:l,onClick:e.onClick,closeIcon:n.closeIcon}),e.content)})),i=(e={},a()(e,n.prefixCls,1),a()(e,n.className,!!n.className),e);return g.a.createElement("div",{className:M()(i),style:n.style},g.a.createElement(k.a,{transitionName:this.getTransitionName()},o))}}]),t}(y.Component);A.propTypes={prefixCls:w.a.string,transitionName:w.a.string,animation:w.a.oneOfType([w.a.string,w.a.object]),style:w.a.object,maxCount:w.a.number,closeIcon:w.a.node},A.defaultProps={prefixCls:"rc-notification",animation:"fade",style:{top:65,left:"50%"}},A.newInstance=function(e,t){var n=e||{},r=n.getContainer,i=o()(n,["getContainer"]),a=document.createElement("div");r?r().appendChild(a):document.body.appendChild(a);var l=!1;_.a.render(g.a.createElement(A,c()({},i,{ref:function(e){l||(l=!0,t({notice:function(t){e.add(t)},removeNotice:function(t){e.remove(t)},component:e,destroy:function(){_.a.unmountComponentAtNode(a),a.parentNode.removeChild(a)}}))}})),a)};var j=A;t.a=j},"91GP":function(e,t,n){var r=n("XKFU");r(r.S+r.F,"Object",{assign:n("czNK")})},"92dX":function(e,t){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function r(t){return"function"==typeof Symbol&&"symbol"===n(Symbol.iterator)?e.exports=r=function(e){return n(e)}:e.exports=r=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":n(e)},r(t)}e.exports=r},"93I4":function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},"93uN":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=function(){function e(e,t){for(var n=0;n0?arguments[0]:void 0)}}),{get:function(e){var t=r.getEntry(o(this,"Map"),e);return t&&t.v},set:function(e,t){return r.def(o(this,"Map"),0===e?0:e,t)}},r,!0)},"9C/b":function(e,t,n){"use strict";var r=n("q1tI"),o=n.n(r),i=n("17x9"),a=n.n(i),l=n("m1lR"),c=n.n(l),s=n("4p7I"),u=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(t,["wrappedComponentRef"]);return o.a.createElement(s.a,{children:function(t){return o.a.createElement(e,u({},r,t,{ref:n}))}})};return t.displayName="withRouter("+(e.displayName||e.name)+")",t.WrappedComponent=e,t.propTypes={wrappedComponentRef:a.a.func},c()(t,e)}},"9IzE":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bytesToSize=function(e){if(0==e)return"0 Byte";var t=parseInt(Math.floor(Math.log(e)/Math.log(1024)));return parseFloat(e/Math.pow(1024,t),2).toFixed(1)+" "+["Bytes","KB","MB","GB","TB"][t]}},"9P93":function(e,t,n){var r=n("XKFU"),o=Math.imul;r(r.S+r.F*n("eeVq")((function(){return-5!=o(4294967295,5)||2!=o.length})),"Math",{imul:function(e,t){var n=+e,r=+t,o=65535&n,i=65535&r;return 0|o*i+((65535&n>>>16)*i+o*(65535&r>>>16)<<16>>>0)}})},"9SKx":function(e,t,n){"use strict";var r=n("FGEo");t.__esModule=!0,t.default=function(e){return(0,o.default)(e.replace(i,"ms-"))};var o=r(n("DZ0b")),i=/^-ms-/;e.exports=t.default},"9VmF":function(e,t,n){"use strict";var r=n("XKFU"),o=n("ne8i"),i=n("0sh+"),a="".startsWith;r(r.P+r.F*n("UUeW")("startsWith"),"String",{startsWith:function(e){var t=i(this,e,"startsWith"),n=o(Math.min(arguments.length>1?arguments[1]:void 0,t.length)),r=String(e);return a?a.call(t,r,n):t.slice(n,n+r.length)===r}})},"9XZr":function(e,t,n){"use strict";var r=n("XKFU"),o=n("Lgjv"),i=n("ol8x"),a=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(i);r(r.P+r.F*a,"String",{padStart:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0,!0)}})},"9gX7":function(e,t){e.exports=function(e,t,n,r){if(!(e instanceof t)||void 0!==r&&r in e)throw TypeError(n+": incorrect invocation!");return e}},"9oF9":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("ANjH"),o=a(n("sINF")),i=a(n("fhFi"));function a(e){return e&&e.__esModule?e:{default:e}}t.default=function(){return(0,r.createStore)(i.default,(0,r.applyMiddleware)(o.default))}},"9rMk":function(e,t,n){var r=n("XKFU");r(r.S,"Reflect",{has:function(e,t){return t in e}})},"9rSQ":function(e,t,n){"use strict";var r=n("xTJ+");function o(){this.handlers=[]}o.prototype.use=function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},o.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},o.prototype.forEach=function(e){r.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=o},A2zW:function(e,t,n){"use strict";var r=n("XKFU"),o=n("RYi7"),i=n("vvmO"),a=n("l0Rn"),l=1..toFixed,c=Math.floor,s=[0,0,0,0,0,0],u="Number.toFixed: incorrect invocation!",f=function(e,t){for(var n=-1,r=t;++n<6;)r+=e*s[n],s[n]=r%1e7,r=c(r/1e7)},h=function(e){for(var t=6,n=0;--t>=0;)n+=s[t],s[t]=c(n/e),n=n%e*1e7},p=function(){for(var e=6,t="";--e>=0;)if(""!==t||0===e||0!==s[e]){var n=String(s[e]);t=""===t?n:t+a.call("0",7-n.length)+n}return t},d=function(e,t,n){return 0===t?n:t%2==1?d(e,t-1,n*e):d(e*e,t/2,n)};r(r.P+r.F*(!!l&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!n("eeVq")((function(){l.call({})}))),"Number",{toFixed:function(e){var t,n,r,l,c=i(this,u),s=o(e),m="",v="0";if(s<0||s>20)throw RangeError(u);if(c!=c)return"NaN";if(c<=-1e21||c>=1e21)return String(c);if(c<0&&(m="-",c=-c),c>1e-21)if(n=(t=function(e){for(var t=0,n=e;n>=4096;)t+=12,n/=4096;for(;n>=2;)t+=1,n/=2;return t}(c*d(2,69,1))-69)<0?c*d(2,-t,1):c/d(2,t,1),n*=4503599627370496,(t=52-t)>0){for(f(0,n),r=s;r>=7;)f(1e7,0),r-=7;for(f(d(10,r,1),0),r=t-1;r>=23;)h(1<<23),r-=23;h(1<0?m+((l=v.length)<=s?"0."+a.call("0",s-l)+v:v.slice(0,l-s)+"."+v.slice(l-s)):m+v}})},A5AN:function(e,t,n){"use strict";var r=n("AvRE")(!0);e.exports=function(e,t,n){return t+(n?r(e,t).length:1)}},A5Xg:function(e,t,n){var r=n("NsO/"),o=n("ar/p").f,i={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return a&&"[object Window]"==i.call(e)?function(e){try{return o(e)}catch(e){return a.slice()}}(e):o(r(e))}},"AK+3":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#d5d5d5",A200:"#aaaaaa",A400:"#303030",A700:"#616161"};t.default=r},ANhw:function(e,t){var n,r;n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r={rotl:function(e,t){return e<>>32-t},rotr:function(e,t){return e<<32-t|e>>>t},endian:function(e){if(e.constructor==Number)return 16711935&r.rotl(e,8)|4278255360&r.rotl(e,24);for(var t=0;t0;e--)t.push(Math.floor(256*Math.random()));return t},bytesToWords:function(e){for(var t=[],n=0,r=0;n>>5]|=e[n]<<24-r%32;return t},wordsToBytes:function(e){for(var t=[],n=0;n<32*e.length;n+=8)t.push(e[n>>>5]>>>24-n%32&255);return t},bytesToHex:function(e){for(var t=[],n=0;n>>4).toString(16)),t.push((15&e[n]).toString(16));return t.join("")},hexToBytes:function(e){for(var t=[],n=0;n>>6*(3-i)&63)):t.push("=");return t.join("")},base64ToBytes:function(e){e=e.replace(/[^A-Z0-9+\/]/gi,"");for(var t=[],r=0,o=0;r>>6-2*o);return t}},e.exports=r},ANjH:function(e,t,n){"use strict";n.r(t),n.d(t,"__DO_NOT_USE__ActionTypes",(function(){return i})),n.d(t,"applyMiddleware",(function(){return v})),n.d(t,"bindActionCreators",(function(){return f})),n.d(t,"combineReducers",(function(){return s})),n.d(t,"compose",(function(){return m})),n.d(t,"createStore",(function(){return l}));var r=n("bCCX"),o=function(){return Math.random().toString(36).substring(7).split("").join(".")},i={INIT:"@@redux/INIT"+o(),REPLACE:"@@redux/REPLACE"+o(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+o()}};function a(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function l(e,t,n){var o;if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error("It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function.");if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error("Expected the enhancer to be a function.");return n(l)(e,t)}if("function"!=typeof e)throw new Error("Expected the reducer to be a function.");var c=e,s=t,u=[],f=u,h=!1;function p(){f===u&&(f=u.slice())}function d(){if(h)throw new Error("You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return s}function m(e){if("function"!=typeof e)throw new Error("Expected the listener to be a function.");if(h)throw new Error("You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api-reference/store#subscribelistener for more details.");var t=!0;return p(),f.push(e),function(){if(t){if(h)throw new Error("You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api-reference/store#subscribelistener for more details.");t=!1,p();var n=f.indexOf(e);f.splice(n,1),u=null}}}function v(e){if(!a(e))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if(void 0===e.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(h)throw new Error("Reducers may not dispatch actions.");try{h=!0,s=c(s,e)}finally{h=!1}for(var t=u=f,n=0;no;)X(e,n=r[o++],t[n]);return e},Q=function(e){var t=I.call(this,e=_(e,!0));return!(this===q&&o(D,e)&&!o(F,e))&&(!(t||!o(this,e)||!o(D,e)||o(this,H)&&this[H][e])||t)},Z=function(e,t){if(e=x(e),t=_(t,!0),e!==q||!o(D,t)||o(F,t)){var n=C(e,t);return!n||!o(D,t)||o(e,H)&&e[H][t]||(n.enumerable=!0),n}},$=function(e){for(var t,n=A(x(e)),r=[],i=0;n.length>i;)o(D,t=n[i++])||t==H||t==c||r.push(t);return r},ee=function(e){for(var t,n=e===q,r=A(n?F:x(e)),i=[],a=0;r.length>a;)!o(D,t=r[a++])||n&&!o(q,t)||i.push(D[t]);return i};B||(l((j=function(){if(this instanceof j)throw TypeError("Symbol is not a constructor!");var e=h(arguments.length>0?arguments[0]:void 0),t=function(n){this===q&&t.call(F,n),o(this,H)&&o(this[H],e)&&(this[H][e]=!1),Y(this,e,k(1,n))};return i&&W&&Y(q,e,{configurable:!0,set:t}),G(e)}).prototype,"toString",(function(){return this._k})),M.f=Z,E.f=X,n("ar/p").f=O.f=$,n("NV0k").f=Q,T.f=ee,i&&!n("uOPS")&&l(q,"propertyIsEnumerable",Q,!0),d.f=function(e){return G(p(e))}),a(a.G+a.W+a.F*!B,{Symbol:j});for(var te="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ne=0;te.length>ne;)p(te[ne++]);for(var re=z(p.store),oe=0;re.length>oe;)m(re[oe++]);a(a.S+a.F*!B,"Symbol",{for:function(e){return o(V,e+="")?V[e]:V[e]=j(e)},keyFor:function(e){if(!K(e))throw TypeError(e+" is not a symbol!");for(var t in V)if(V[t]===e)return t},useSetter:function(){W=!0},useSimple:function(){W=!1}}),a(a.S+a.F*!B,"Object",{create:function(e,t){return void 0===t?S(e):J(S(e),t)},defineProperty:X,defineProperties:J,getOwnPropertyDescriptor:Z,getOwnPropertyNames:$,getOwnPropertySymbols:ee});var ie=s((function(){T.f(1)}));a(a.S+a.F*ie,"Object",{getOwnPropertySymbols:function(e){return T.f(w(e))}}),L&&a(a.S+a.F*(!B||s((function(){var e=j();return"[null]"!=N([e])||"{}"!=N({a:e})||"{}"!=N(Object(e))}))),"JSON",{stringify:function(e){for(var t,n,r=[e],o=1;arguments.length>o;)r.push(arguments[o++]);if(n=t=r[1],(b(t)||void 0!==e)&&!K(e))return y(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!K(t))return t}),r[1]=t,N.apply(L,r)}}),j.prototype[R]||n("NegM")(j.prototype,R,j.prototype.valueOf),f(j,"Symbol"),f(Math,"Math",!0),f(r.JSON,"JSON",!0)},Afnz:function(e,t,n){"use strict";var r=n("LQAc"),o=n("XKFU"),i=n("KroJ"),a=n("Mukb"),l=n("hPIQ"),c=n("QaDb"),s=n("fyDq"),u=n("OP3Y"),f=n("K0xU")("iterator"),h=!([].keys&&"next"in[].keys()),p=function(){return this};e.exports=function(e,t,n,d,m,v,y){c(n,t,d);var g,b,w,x=function(e){if(!h&&e in O)return O[e];switch(e){case"keys":case"values":return function(){return new n(this,e)}}return function(){return new n(this,e)}},_=t+" Iterator",k="values"==m,S=!1,O=e.prototype,M=O[f]||O["@@iterator"]||m&&O[m],T=M||x(m),E=m?k?x("entries"):T:void 0,z="Array"==t&&O.entries||M;if(z&&(w=u(z.call(new e)))!==Object.prototype&&w.next&&(s(w,_,!0),r||"function"==typeof w[f]||a(w,f,p)),k&&M&&"values"!==M.name&&(S=!0,T=function(){return M.call(this)}),r&&!y||!h&&!S&&O[f]||a(O,f,T),l[t]=T,l[_]=p,m)if(g={values:k?T:x("values"),keys:v?T:x("keys"),entries:E},y)for(b in g)b in O||i(O,b,g[b]);else o(o.P+o.F*(h||S),t,g);return g}},Aosp:function(e,t,n){"use strict";n.r(t);n("SchZ"),n("Dt+G")},ApPD:function(e,t,n){var r=n("JB68"),o=n("U+KD");n("zn7N")("getPrototypeOf",(function(){return function(e){return o(r(e))}}))},AphP:function(e,t,n){"use strict";var r=n("XKFU"),o=n("S/j/"),i=n("apmT");r(r.P+r.F*n("eeVq")((function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})})),"Date",{toJSON:function(e){var t=o(this),n=i(t);return"number"!=typeof n||isFinite(n)?t.toISOString():null}})},AqCL:function(e,t){e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},AvRE:function(e,t,n){var r=n("RYi7"),o=n("vhPU");e.exports=function(e){return function(t,n){var i,a,l=String(o(t)),c=r(n),s=l.length;return c<0||c>=s?e?"":void 0:(i=l.charCodeAt(c))<55296||i>56319||c+1===s||(a=l.charCodeAt(c+1))<56320||a>57343?e?l.charAt(c):i:e?l.slice(c,c+2):a-56320+(i-55296<<10)+65536}}},AyUB:function(e,t,n){e.exports={default:n("3GJH"),__esModule:!0}},Azq0:function(e,t,n){"use strict";var r=n("TqRt");Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createGenerateClassName",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"createMuiTheme",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"jssPreset",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"MuiThemeProvider",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"withStyles",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"withTheme",{enumerable:!0,get:function(){return s.default}});var o=r(n("w5Wy")),i=r(n("4qVG")),a=r(n("FVT5")),l=r(n("Wty2")),c=r(n("d05B")),s=r(n("PfIm"))},"B+OT":function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},BC7C:function(e,t,n){var r=n("XKFU");r(r.S,"Math",{fround:n("kcoS")})},"BGR+":function(e,t,n){"use strict";n.r(t);var r=n("QbLZ"),o=n.n(r);t.default=function(e,t){for(var n=o()({},e),r=0;r15?"…"+a.slice(r-15,r):a.slice(0,r))+c+(l+15":">","<":"<",'"':""","'":"'"},s=/[&><"']/g,u=function e(t){return"ordgroup"===t.type||"color"===t.type?1===t.body.length?e(t.body[0]):t:"font"===t.type?e(t.body):t},f={contains:function(e,t){return-1!==e.indexOf(t)},deflt:function(e,t){return void 0===e?t:e},escape:function(e){return String(e).replace(s,(function(e){return c[e]}))},hyphenate:function(e){return e.replace(l,"-$1").toLowerCase()},getBaseElem:u,isCharacterBox:function(e){var t=u(e);return"mathord"===t.type||"textord"===t.type||"atom"===t.type},protocolFromUrl:function(e){var t=/^\s*([^\\/#]*?)(?::|�*58|�*3a)/i.exec(e);return null!=t?t[1]:"_relative"}},h=function(){function e(e){this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,e=e||{},this.displayMode=f.deflt(e.displayMode,!1),this.output=f.deflt(e.output,"htmlAndMathml"),this.leqno=f.deflt(e.leqno,!1),this.fleqn=f.deflt(e.fleqn,!1),this.throwOnError=f.deflt(e.throwOnError,!0),this.errorColor=f.deflt(e.errorColor,"#cc0000"),this.macros=e.macros||{},this.minRuleThickness=Math.max(0,f.deflt(e.minRuleThickness,0)),this.colorIsTextColor=f.deflt(e.colorIsTextColor,!1),this.strict=f.deflt(e.strict,"warn"),this.trust=f.deflt(e.trust,!1),this.maxSize=Math.max(0,f.deflt(e.maxSize,1/0)),this.maxExpand=Math.max(0,f.deflt(e.maxExpand,1e3))}var t=e.prototype;return t.reportNonstrict=function(e,t,n){var r=this.strict;if("function"==typeof r&&(r=r(e,t,n)),r&&"ignore"!==r){if(!0===r||"error"===r)throw new a("LaTeX-incompatible input and strict mode is set to 'error': "+t+" ["+e+"]",n);"warn"===r?"undefined"!=typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+t+" ["+e+"]"):"undefined"!=typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to unrecognized '"+r+"': "+t+" ["+e+"]")}},t.useStrictBehavior=function(e,t,n){var r=this.strict;if("function"==typeof r)try{r=r(e,t,n)}catch(e){r="error"}return!(!r||"ignore"===r||!0!==r&&"error"!==r&&("warn"===r?("undefined"!=typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+t+" ["+e+"]"),1):("undefined"!=typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to unrecognized '"+r+"': "+t+" ["+e+"]"),1)))},t.isTrusted=function(e){e.url&&!e.protocol&&(e.protocol=f.protocolFromUrl(e.url));var t="function"==typeof this.trust?this.trust(e):this.trust;return Boolean(t)},e}(),p=function(){function e(e,t,n){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=e,this.size=t,this.cramped=n}var t=e.prototype;return t.sup=function(){return d[m[this.id]]},t.sub=function(){return d[v[this.id]]},t.fracNum=function(){return d[y[this.id]]},t.fracDen=function(){return d[g[this.id]]},t.cramp=function(){return d[b[this.id]]},t.text=function(){return d[w[this.id]]},t.isTight=function(){return this.size>=2},e}(),d=[new p(0,0,!1),new p(1,0,!0),new p(2,1,!1),new p(3,1,!0),new p(4,2,!1),new p(5,2,!0),new p(6,3,!1),new p(7,3,!0)],m=[4,5,4,5,6,7,6,7],v=[5,5,5,5,7,7,7,7],y=[2,3,4,5,6,7,6,7],g=[3,3,5,5,7,7,7,7],b=[1,1,3,3,5,5,7,7],w=[0,1,2,3,2,3,2,3],x={DISPLAY:d[0],TEXT:d[2],SCRIPT:d[4],SCRIPTSCRIPT:d[6]},_=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}],k=[];function S(e){for(var t=0;t=k[t]&&e<=k[t+1])return!0;return!1}_.forEach((function(e){return e.blocks.forEach((function(e){return k.push.apply(k,e)}))}));var O={doubleleftarrow:"M262 157\nl10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3\n 0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28\n 14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5\nc2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5\n 157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87\n-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7\n-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z\nm8 0v40h399730v-40zm0 194v40h399730v-40z",doublerightarrow:"M399738 392l\n-10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5\n 14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88\n-33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68\n-17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18\n-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782\nc-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3\n-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z",leftarrow:"M400000 241H110l3-3c68.7-52.7 113.7-120\n 135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8\n-5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247\nc-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208\n 490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3\n 1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202\n l-3-3h399890zM100 241v40h399900v-40z",leftbrace:"M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117\n-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7\n 5-6 9-10 13-.7 1-7.3 1-20 1H6z",leftbraceunder:"M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13\n 35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688\n 0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7\n-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z",leftgroup:"M400000 80\nH435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0\n 435 0h399565z",leftgroupunder:"M400000 262\nH435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219\n 435 219h399565z",leftharpoon:"M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3\n-3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5\n-18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7\n-196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z",leftharpoonplus:"M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5\n 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3\n-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7\n-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z\nm0 0v40h400000v-40z",leftharpoondown:"M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333\n 5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5\n 1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667\n-152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z",leftharpoondownplus:"M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12\n 10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7\n-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0\nv40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z",lefthook:"M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5\n-83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3\n-68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21\n 71.5 23h399859zM103 281v-40h399897v40z",leftlinesegment:"M40 281 V428 H0 V94 H40 V241 H400000 v40z\nM40 281 V428 H0 V94 H40 V241 H400000 v40z",leftmapsto:"M40 281 V448H0V74H40V241H400000v40z\nM40 281 V448H0V74H40V241H400000v40z",leftToFrom:"M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23\n-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8\nc28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3\n 68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z",longequal:"M0 50 h400000 v40H0z m0 194h40000v40H0z\nM0 50 h400000 v40H0z m0 194h40000v40H0z",midbrace:"M200428 334\nc-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14\n-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7\n 311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11\n 12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z",midbraceunder:"M199572 214\nc100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14\n 53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3\n 11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0\n-5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z",oiintSize1:"M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6\n-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z\nm368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8\n60.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z",oiintSize2:"M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8\n-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z\nm502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2\nc0 110 84 276 504 276s502.4-166 502.4-276z",oiiintSize1:"M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6\n-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z\nm525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0\n85.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z",oiiintSize2:"M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8\n-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z\nm770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1\nc0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z",rightarrow:"M0 241v40h399891c-47.3 35.3-84 78-110 128\n-16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20\n 11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7\n 39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85\n-40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5\n-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67\n 151.7 139 205zm0 0v40h399900v-40z",rightbrace:"M400000 542l\n-6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5\ns-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1\nc124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z",rightbraceunder:"M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3\n 28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237\n-174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z",rightgroup:"M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0\n 3-1 3-3v-38c-76-158-257-219-435-219H0z",rightgroupunder:"M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18\n 0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z",rightharpoon:"M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3\n-3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2\n-10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58\n 69.2 92 94.5zm0 0v40h399900v-40z",rightharpoonplus:"M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11\n-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7\n 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z\nm0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z",rightharpoondown:"M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8\n 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5\n-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95\n-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z",rightharpoondownplus:"M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8\n 15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3\n 8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3\n-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z\nm0-194v40h400000v-40zm0 0v40h400000v-40z",righthook:"M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3\n 15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0\n-13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21\n 66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z",rightlinesegment:"M399960 241 V94 h40 V428 h-40 V281 H0 v-40z\nM399960 241 V94 h40 V428 h-40 V281 H0 v-40z",rightToFrom:"M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23\n 1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32\n-52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142\n-167z M100 147v40h399900v-40zM0 341v40h399900v-40z",twoheadleftarrow:"M0 167c68 40\n 115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69\n-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3\n-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19\n-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101\n 10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z",twoheadrightarrow:"M400000 167\nc-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3\n 41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42\n 18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333\n-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70\n 101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z",tilde1:"M200 55.538c-77 0-168 73.953-177 73.953-3 0-7\n-2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0\n 114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 6.525 0\n 4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128\n-68.267.847-113-73.952-191-73.952z",tilde2:"M344 55.266c-142 0-300.638 81.316-311.5 86.418\n-8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9\n 31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114\nc1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751\n 181.476 676 181.476c-149 0-189-126.21-332-126.21z",tilde3:"M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457\n-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0\n 411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697\n 16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696\n -338 0-409-156.573-744-156.573z",tilde4:"M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345\n-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409\n 177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9\n 14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409\n -175.236-744-175.236z",vec:"M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5\n3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11\n10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63\n-1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1\n-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59\nH213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359\nc-16-25.333-24-45-24-59z",widehat1:"M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22\nc-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z",widehat2:"M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10\n-11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z",widehat3:"M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10\n-11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z",widehat4:"M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10\n-11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z",widecheck1:"M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1,\n-5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z",widecheck2:"M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,\n-11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z",widecheck3:"M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,\n-11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z",widecheck4:"M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,\n-11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z",baraboveleftarrow:"M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202\nc4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5\nc-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130\ns-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47\n121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6\ns2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11\nc0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z\nM100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z",rightarrowabovebar:"M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32\n-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0\n13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39\n-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5\n-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5\n-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67\n151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z",baraboveshortleftharpoon:"M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11\nc1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17\nc2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21\nc-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40\nc-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z\nM0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z",rightharpoonaboveshortbar:"M0,241 l0,40c399126,0,399993,0,399993,0\nc4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,\n-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6\nc-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z\nM0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z",shortbaraboveleftharpoon:"M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11\nc1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9,\n1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7,\n-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z\nM93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z",shortrightharpoonabovebar:"M53,241l0,40c398570,0,399437,0,399437,0\nc4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,\n-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6\nc-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z\nM500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z"},M=function(){function e(e){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=e,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}var t=e.prototype;return t.hasClass=function(e){return f.contains(this.classes,e)},t.toNode=function(){for(var e=document.createDocumentFragment(),t=0;t"},P=function(){function e(e,t,n,r){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,E.call(this,e,n,r),this.children=t||[]}var t=e.prototype;return t.setAttribute=function(e,t){this.attributes[e]=t},t.hasClass=function(e){return f.contains(this.classes,e)},t.toNode=function(){return z.call(this,"span")},t.toMarkup=function(){return C.call(this,"span")},e}(),A=function(){function e(e,t,n,r){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,E.call(this,t,r),this.children=n||[],this.setAttribute("href",e)}var t=e.prototype;return t.setAttribute=function(e,t){this.attributes[e]=t},t.hasClass=function(e){return f.contains(this.classes,e)},t.toNode=function(){return z.call(this,"a")},t.toMarkup=function(){return C.call(this,"a")},e}(),j=function(){function e(e,t,n){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=t,this.src=e,this.classes=["mord"],this.style=n}var t=e.prototype;return t.hasClass=function(e){return f.contains(this.classes,e)},t.toNode=function(){var e=document.createElement("img");for(var t in e.src=this.src,e.alt=this.alt,e.className="mord",this.style)this.style.hasOwnProperty(t)&&(e.style[t]=this.style[t]);return e},t.toMarkup=function(){var e=""+this.alt+"=o[0]&&e<=o[1])return n.name}return null}(this.text.charCodeAt(0));c&&this.classes.push(c+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=L[this.text])}var t=e.prototype;return t.hasClass=function(e){return f.contains(this.classes,e)},t.toNode=function(){var e=document.createTextNode(this.text),t=null;for(var n in this.italic>0&&((t=document.createElement("span")).style.marginRight=this.italic+"em"),this.classes.length>0&&((t=t||document.createElement("span")).className=T(this.classes)),this.style)this.style.hasOwnProperty(n)&&((t=t||document.createElement("span")).style[n]=this.style[n]);return t?(t.appendChild(e),t):e},t.toMarkup=function(){var e=!1,t="0&&(n+="margin-right:"+this.italic+"em;"),this.style)this.style.hasOwnProperty(r)&&(n+=f.hyphenate(r)+":"+this.style[r]+";");n&&(e=!0,t+=' style="'+f.escape(n)+'"');var o=f.escape(this.text);return e?(t+=">",t+=o,t+=""):o},e}(),H=function(){function e(e,t){this.children=void 0,this.attributes=void 0,this.children=e||[],this.attributes=t||{}}var t=e.prototype;return t.toNode=function(){var e=document.createElementNS("http://www.w3.org/2000/svg","svg");for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&e.setAttribute(t,this.attributes[t]);for(var n=0;n":""},e}(),I=function(){function e(e){this.attributes=void 0,this.attributes=e||{}}var t=e.prototype;return t.toNode=function(){var e=document.createElementNS("http://www.w3.org/2000/svg","line");for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&e.setAttribute(t,this.attributes[t]);return e},t.toMarkup=function(){var e="",">"),X("math",J,te,":",":"),X("math",J,te,"≈","\\approx",!0),X("math",J,te,"≅","\\cong",!0),X("math",J,te,"≥","\\ge"),X("math",J,te,"≥","\\geq",!0),X("math",J,te,"←","\\gets"),X("math",J,te,">","\\gt"),X("math",J,te,"∈","\\in",!0),X("math",J,te,"","\\@not"),X("math",J,te,"⊂","\\subset",!0),X("math",J,te,"⊃","\\supset",!0),X("math",J,te,"⊆","\\subseteq",!0),X("math",J,te,"⊇","\\supseteq",!0),X("math",Q,te,"⊈","\\nsubseteq",!0),X("math",Q,te,"⊉","\\nsupseteq",!0),X("math",J,te,"⊨","\\models"),X("math",J,te,"←","\\leftarrow",!0),X("math",J,te,"≤","\\le"),X("math",J,te,"≤","\\leq",!0),X("math",J,te,"<","\\lt"),X("math",J,te,"→","\\rightarrow",!0),X("math",J,te,"→","\\to"),X("math",Q,te,"≱","\\ngeq",!0),X("math",Q,te,"≰","\\nleq",!0),X("math",J,"spacing"," ","\\ "),X("math",J,"spacing"," ","~"),X("math",J,"spacing"," ","\\space"),X("math",J,"spacing"," ","\\nobreakspace"),X("text",J,"spacing"," ","\\ "),X("text",J,"spacing"," ","~"),X("text",J,"spacing"," ","\\space"),X("text",J,"spacing"," ","\\nobreakspace"),X("math",J,"spacing",null,"\\nobreak"),X("math",J,"spacing",null,"\\allowbreak"),X("math",J,"punct",",",","),X("math",J,"punct",";",";"),X("math",Q,Z,"⊼","\\barwedge",!0),X("math",Q,Z,"⊻","\\veebar",!0),X("math",J,Z,"⊙","\\odot",!0),X("math",J,Z,"⊕","\\oplus",!0),X("math",J,Z,"⊗","\\otimes",!0),X("math",J,"textord","∂","\\partial",!0),X("math",J,Z,"⊘","\\oslash",!0),X("math",Q,Z,"⊚","\\circledcirc",!0),X("math",Q,Z,"⊡","\\boxdot",!0),X("math",J,Z,"△","\\bigtriangleup"),X("math",J,Z,"▽","\\bigtriangledown"),X("math",J,Z,"†","\\dagger"),X("math",J,Z,"⋄","\\diamond"),X("math",J,Z,"⋆","\\star"),X("math",J,Z,"◃","\\triangleleft"),X("math",J,Z,"▹","\\triangleright"),X("math",J,"open","{","\\{"),X("text",J,"textord","{","\\{"),X("text",J,"textord","{","\\textbraceleft"),X("math",J,"close","}","\\}"),X("text",J,"textord","}","\\}"),X("text",J,"textord","}","\\textbraceright"),X("math",J,"open","{","\\lbrace"),X("math",J,"close","}","\\rbrace"),X("math",J,"open","[","\\lbrack"),X("text",J,"textord","[","\\lbrack"),X("math",J,"close","]","\\rbrack"),X("text",J,"textord","]","\\rbrack"),X("math",J,"open","(","\\lparen"),X("math",J,"close",")","\\rparen"),X("text",J,"textord","<","\\textless"),X("text",J,"textord",">","\\textgreater"),X("math",J,"open","⌊","\\lfloor",!0),X("math",J,"close","⌋","\\rfloor",!0),X("math",J,"open","⌈","\\lceil",!0),X("math",J,"close","⌉","\\rceil",!0),X("math",J,"textord","\\","\\backslash"),X("math",J,"textord","∣","|"),X("math",J,"textord","∣","\\vert"),X("text",J,"textord","|","\\textbar"),X("math",J,"textord","∥","\\|"),X("math",J,"textord","∥","\\Vert"),X("text",J,"textord","∥","\\textbardbl"),X("text",J,"textord","~","\\textasciitilde"),X("text",J,"textord","\\","\\textbackslash"),X("text",J,"textord","^","\\textasciicircum"),X("math",J,te,"↑","\\uparrow",!0),X("math",J,te,"⇑","\\Uparrow",!0),X("math",J,te,"↓","\\downarrow",!0),X("math",J,te,"⇓","\\Downarrow",!0),X("math",J,te,"↕","\\updownarrow",!0),X("math",J,te,"⇕","\\Updownarrow",!0),X("math",J,ee,"∐","\\coprod"),X("math",J,ee,"⋁","\\bigvee"),X("math",J,ee,"⋀","\\bigwedge"),X("math",J,ee,"⨄","\\biguplus"),X("math",J,ee,"⋂","\\bigcap"),X("math",J,ee,"⋃","\\bigcup"),X("math",J,ee,"∫","\\int"),X("math",J,ee,"∫","\\intop"),X("math",J,ee,"∬","\\iint"),X("math",J,ee,"∭","\\iiint"),X("math",J,ee,"∏","\\prod"),X("math",J,ee,"∑","\\sum"),X("math",J,ee,"⨂","\\bigotimes"),X("math",J,ee,"⨁","\\bigoplus"),X("math",J,ee,"⨀","\\bigodot"),X("math",J,ee,"∮","\\oint"),X("math",J,ee,"∯","\\oiint"),X("math",J,ee,"∰","\\oiiint"),X("math",J,ee,"⨆","\\bigsqcup"),X("math",J,ee,"∫","\\smallint"),X("text",J,"inner","…","\\textellipsis"),X("math",J,"inner","…","\\mathellipsis"),X("text",J,"inner","…","\\ldots",!0),X("math",J,"inner","…","\\ldots",!0),X("math",J,"inner","⋯","\\@cdots",!0),X("math",J,"inner","⋱","\\ddots",!0),X("math",J,"textord","⋮","\\varvdots"),X("math",J,"accent-token","ˊ","\\acute"),X("math",J,"accent-token","ˋ","\\grave"),X("math",J,"accent-token","¨","\\ddot"),X("math",J,"accent-token","~","\\tilde"),X("math",J,"accent-token","ˉ","\\bar"),X("math",J,"accent-token","˘","\\breve"),X("math",J,"accent-token","ˇ","\\check"),X("math",J,"accent-token","^","\\hat"),X("math",J,"accent-token","⃗","\\vec"),X("math",J,"accent-token","˙","\\dot"),X("math",J,"accent-token","˚","\\mathring"),X("math",J,$,"ı","\\imath",!0),X("math",J,$,"ȷ","\\jmath",!0),X("text",J,"textord","ı","\\i",!0),X("text",J,"textord","ȷ","\\j",!0),X("text",J,"textord","ß","\\ss",!0),X("text",J,"textord","æ","\\ae",!0),X("text",J,"textord","æ","\\ae",!0),X("text",J,"textord","œ","\\oe",!0),X("text",J,"textord","ø","\\o",!0),X("text",J,"textord","Æ","\\AE",!0),X("text",J,"textord","Œ","\\OE",!0),X("text",J,"textord","Ø","\\O",!0),X("text",J,"accent-token","ˊ","\\'"),X("text",J,"accent-token","ˋ","\\`"),X("text",J,"accent-token","ˆ","\\^"),X("text",J,"accent-token","˜","\\~"),X("text",J,"accent-token","ˉ","\\="),X("text",J,"accent-token","˘","\\u"),X("text",J,"accent-token","˙","\\."),X("text",J,"accent-token","˚","\\r"),X("text",J,"accent-token","ˇ","\\v"),X("text",J,"accent-token","¨",'\\"'),X("text",J,"accent-token","˝","\\H"),X("text",J,"accent-token","◯","\\textcircled");var ne={"--":!0,"---":!0,"``":!0,"''":!0};X("text",J,"textord","–","--"),X("text",J,"textord","–","\\textendash"),X("text",J,"textord","—","---"),X("text",J,"textord","—","\\textemdash"),X("text",J,"textord","‘","`"),X("text",J,"textord","‘","\\textquoteleft"),X("text",J,"textord","’","'"),X("text",J,"textord","’","\\textquoteright"),X("text",J,"textord","“","``"),X("text",J,"textord","“","\\textquotedblleft"),X("text",J,"textord","”","''"),X("text",J,"textord","”","\\textquotedblright"),X("math",J,"textord","°","\\degree",!0),X("text",J,"textord","°","\\degree"),X("text",J,"textord","°","\\textdegree",!0),X("math",J,$,"£","\\pounds"),X("math",J,$,"£","\\mathsterling",!0),X("text",J,$,"£","\\pounds"),X("text",J,$,"£","\\textsterling",!0),X("math",Q,"textord","✠","\\maltese"),X("text",Q,"textord","✠","\\maltese"),X("text",J,"spacing"," ","\\ "),X("text",J,"spacing"," "," "),X("text",J,"spacing"," ","~");for(var re=0;re<'0123456789/@."'.length;re++){var oe='0123456789/@."'.charAt(re);X("math",J,"textord",oe,oe)}for(var ie=0;ie<'0123456789!@*()-=+[]<>|";:?/.,'.length;ie++){var ae='0123456789!@*()-=+[]<>|";:?/.,'.charAt(ie);X("text",J,"textord",ae,ae)}for(var le="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",ce=0;ce=5?0:e>=3?1:2]){var n=U[t]={cssEmPerMu:F.quad[t]/18};for(var r in F)F.hasOwnProperty(r)&&(n[r]=F[r][t])}return U[t]}(this.size)),this._fontMetrics},t.getColor=function(){return this.phantom?"transparent":this.color},e}();_e.BASESIZE=6;var ke=_e,Se={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:1.00375,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:1.00375},Oe={ex:!0,em:!0,mu:!0},Me=function(e){return"string"!=typeof e&&(e=e.unit),e in Se||e in Oe||"ex"===e},Te=function(e,t){var n;if(e.unit in Se)n=Se[e.unit]/t.fontMetrics().ptPerEm/t.sizeMultiplier;else if("mu"===e.unit)n=t.fontMetrics().cssEmPerMu;else{var r;if(r=t.style.isTight()?t.havingStyle(t.style.text()):t,"ex"===e.unit)n=r.fontMetrics().xHeight;else{if("em"!==e.unit)throw new a("Invalid unit: '"+e.unit+"'");n=r.fontMetrics().quad}r!==t&&(n*=r.sizeMultiplier/t.sizeMultiplier)}return Math.min(e.number*n,t.maxSize)},Ee=["\\imath","ı","\\jmath","ȷ","\\pounds","\\mathsterling","\\textsterling","£"],ze=function(e,t,n){return K[n][e]&&K[n][e].replace&&(e=K[n][e].replace),{value:e,metrics:B(e,t,n)}},Ce=function(e,t,n,r,o){var i,a=ze(e,t,n),l=a.metrics;if(e=a.value,l){var c=l.italic;("text"===n||r&&"mathit"===r.font)&&(c=0),i=new N(e,l.height,l.depth,c,l.skew,l.width,o)}else"undefined"!=typeof console&&console.warn("No character metrics for '"+e+"' in style '"+t+"' and mode '"+n+"'"),i=new N(e,0,0,0,0,0,o);if(r){i.maxFontSize=r.sizeMultiplier,r.style.isTight()&&i.classes.push("mtight");var s=r.getColor();s&&(i.style.color=s)}return i},Pe=function(e,t){if(T(e.classes)!==T(t.classes)||e.skew!==t.skew||e.maxFontSize!==t.maxFontSize)return!1;for(var n in e.style)if(e.style.hasOwnProperty(n)&&e.style[n]!==t.style[n])return!1;for(var r in t.style)if(t.style.hasOwnProperty(r)&&e.style[r]!==t.style[r])return!1;return!0},Ae=function(e){for(var t=0,n=0,r=0,o=0;ot&&(t=i.height),i.depth>n&&(n=i.depth),i.maxFontSize>r&&(r=i.maxFontSize)}e.height=t,e.depth=n,e.maxFontSize=r},je=function(e,t,n,r){var o=new P(e,t,n,r);return Ae(o),o},Le=function(e,t,n,r){return new P(e,t,n,r)},Ne=function(e){var t=new M(e);return Ae(t),t},He=function(e,t,n){var r="";switch(e){case"amsrm":r="AMS";break;case"textrm":r="Main";break;case"textsf":r="SansSerif";break;case"texttt":r="Typewriter";break;default:r=e}return r+"-"+("textbf"===t&&"textit"===n?"BoldItalic":"textbf"===t?"Bold":"textit"===t?"Italic":"Regular")},Re={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathit:{variant:"italic",fontName:"Main-Italic"},mathbb:{variant:"double-struck",fontName:"AMS-Regular"},mathcal:{variant:"script",fontName:"Caligraphic-Regular"},mathfrak:{variant:"fraktur",fontName:"Fraktur-Regular"},mathscr:{variant:"script",fontName:"Script-Regular"},mathsf:{variant:"sans-serif",fontName:"SansSerif-Regular"},mathtt:{variant:"monospace",fontName:"Typewriter-Regular"}},Ie={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},Ve={fontMap:Re,makeSymbol:Ce,mathsym:function(e,t,n,r){return void 0===r&&(r=[]),"boldsymbol"===n.font&&ze(e,"Main-Bold",t).metrics?Ce(e,"Main-Bold",t,n,r.concat(["mathbf"])):"\\"===e||"main"===K[t][e].font?Ce(e,"Main-Regular",t,n,r):Ce(e,"AMS-Regular",t,n,r.concat(["amsrm"]))},makeSpan:je,makeSvgSpan:Le,makeLineSpan:function(e,t,n){var r=je([e],[],t);return r.height=Math.max(n||t.fontMetrics().defaultRuleThickness,t.minRuleThickness),r.style.borderBottomWidth=r.height+"em",r.maxFontSize=1,r},makeAnchor:function(e,t,n,r){var o=new A(e,t,n,r);return Ae(o),o},makeFragment:Ne,wrapFragment:function(e,t){return e instanceof M?je([],[e],t):e},makeVList:function(e,t){for(var n=function(e){if("individualShift"===e.positionType){for(var t=e.children,n=[t[0]],r=-t[0].shift-t[0].elem.depth,o=r,i=1;i0&&(i.push(pt(a,t)),a=[]),i.push(o[l]));a.length>0&&i.push(pt(a,t)),n&&((r=pt(lt(n,t,!0))).classes=["tag"],i.push(r));var s=nt(["katex-html"],i);if(s.setAttribute("aria-hidden","true"),r){var u=r.children[0];u.style.height=s.height+s.depth+"em",u.style.verticalAlign=-s.depth+"em"}return s}function mt(e){return new M(e)}var vt=function(){function e(e,t){this.type=void 0,this.attributes=void 0,this.children=void 0,this.type=e,this.attributes={},this.children=t||[]}var t=e.prototype;return t.setAttribute=function(e,t){this.attributes[e]=t},t.getAttribute=function(e){return this.attributes[e]},t.toNode=function(){var e=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&e.setAttribute(t,this.attributes[t]);for(var n=0;n"},t.toText=function(){return this.children.map((function(e){return e.toText()})).join("")},e}(),yt=function(){function e(e){this.text=void 0,this.text=e}var t=e.prototype;return t.toNode=function(){return document.createTextNode(this.text)},t.toMarkup=function(){return f.escape(this.toText())},t.toText=function(){return this.text},e}(),gt={MathNode:vt,TextNode:yt,SpaceNode:function(){function e(e){this.width=void 0,this.character=void 0,this.width=e,this.character=e>=.05555&&e<=.05556?" ":e>=.1666&&e<=.1667?" ":e>=.2222&&e<=.2223?" ":e>=.2777&&e<=.2778?"  ":e>=-.05556&&e<=-.05555?" ⁣":e>=-.1667&&e<=-.1666?" ⁣":e>=-.2223&&e<=-.2222?" ⁣":e>=-.2778&&e<=-.2777?" ⁣":null}var t=e.prototype;return t.toNode=function(){if(this.character)return document.createTextNode(this.character);var e=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return e.setAttribute("width",this.width+"em"),e},t.toMarkup=function(){return this.character?""+this.character+"":''},t.toText=function(){return this.character?this.character:" "},e}(),newDocumentFragment:mt},bt=function(e,t,n){return!K[t][e]||!K[t][e].replace||55349===e.charCodeAt(0)||ne.hasOwnProperty(e)&&n&&(n.fontFamily&&"tt"===n.fontFamily.substr(4,2)||n.font&&"tt"===n.font.substr(4,2))||(e=K[t][e].replace),new gt.TextNode(e)},wt=function(e){return 1===e.length?e[0]:new gt.MathNode("mrow",e)},xt=function(e,t){if("texttt"===t.fontFamily)return"monospace";if("textsf"===t.fontFamily)return"textit"===t.fontShape&&"textbf"===t.fontWeight?"sans-serif-bold-italic":"textit"===t.fontShape?"sans-serif-italic":"textbf"===t.fontWeight?"bold-sans-serif":"sans-serif";if("textit"===t.fontShape&&"textbf"===t.fontWeight)return"bold-italic";if("textit"===t.fontShape)return"italic";if("textbf"===t.fontWeight)return"bold";var n=t.font;if(!n||"mathnormal"===n)return null;var r=e.mode;if("mathit"===n)return"italic";if("boldsymbol"===n)return"bold-italic";if("mathbf"===n)return"bold";if("mathbb"===n)return"double-struck";if("mathfrak"===n)return"fraktur";if("mathscr"===n||"mathcal"===n)return"script";if("mathsf"===n)return"sans-serif";if("mathtt"===n)return"monospace";var o=e.text;return f.contains(["\\imath","\\jmath"],o)?null:(K[r][o]&&K[r][o].replace&&(o=K[r][o].replace),B(o,Ve.fontMap[n].fontName,r)?Ve.fontMap[n].variant:null)},_t=function(e,t,n){if(1===e.length){var r=St(e[0],t);return n&&r instanceof vt&&"mo"===r.type&&(r.setAttribute("lspace","0em"),r.setAttribute("rspace","0em")),[r]}for(var o,i=[],a=0;a0&&(p.text=p.text.slice(0,1)+"̸"+p.text.slice(1),i.pop())}}}i.push(l),o=l}return i},kt=function(e,t,n){return wt(_t(e,t,n))},St=function(e,t){if(!e)return new gt.MathNode("mrow");if(Ze[e.type])return Ze[e.type](e,t);throw new a("Got group of unknown type: '"+e.type+"'")};function Ot(e,t,n,r){var o,i=_t(e,n);o=1===i.length&&i[0]instanceof vt&&f.contains(["mrow","mtable"],i[0].type)?i[0]:new gt.MathNode("mrow",i);var a=new gt.MathNode("annotation",[new gt.TextNode(t)]);a.setAttribute("encoding","application/x-tex");var l=new gt.MathNode("semantics",[o,a]),c=new gt.MathNode("math",[l]);c.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML");var s=r?"katex":"katex-mathml";return Ve.makeSpan([s],[c])}var Mt=function(e){return new ke({style:e.displayMode?x.DISPLAY:x.TEXT,maxSize:e.maxSize,minRuleThickness:e.minRuleThickness})},Tt=function(e,t){if(t.displayMode){var n=["katex-display"];t.leqno&&n.push("leqno"),t.fleqn&&n.push("fleqn"),e=Ve.makeSpan(n,[e])}return e},Et={widehat:"^",widecheck:"ˇ",widetilde:"~",utilde:"~",overleftarrow:"←",underleftarrow:"←",xleftarrow:"←",overrightarrow:"→",underrightarrow:"→",xrightarrow:"→",underbrace:"⏟",overbrace:"⏞",overgroup:"⏠",undergroup:"⏡",overleftrightarrow:"↔",underleftrightarrow:"↔",xleftrightarrow:"↔",Overrightarrow:"⇒",xRightarrow:"⇒",overleftharpoon:"↼",xleftharpoonup:"↼",overrightharpoon:"⇀",xrightharpoonup:"⇀",xLeftarrow:"⇐",xLeftrightarrow:"⇔",xhookleftarrow:"↩",xhookrightarrow:"↪",xmapsto:"↦",xrightharpoondown:"⇁",xleftharpoondown:"↽",xrightleftharpoons:"⇌",xleftrightharpoons:"⇋",xtwoheadleftarrow:"↞",xtwoheadrightarrow:"↠",xlongequal:"=",xtofrom:"⇄",xrightleftarrows:"⇄",xrightequilibrium:"⇌",xleftequilibrium:"⇋"},zt={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},Ct=function(e,t,n,r){var o,i=e.height+e.depth+2*n;if(/fbox|color/.test(t)){if(o=Ve.makeSpan(["stretchy",t],[],r),"fbox"===t){var a=r.color&&r.getColor();a&&(o.style.borderColor=a)}}else{var l=[];/^[bx]cancel$/.test(t)&&l.push(new I({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(t)&&l.push(new I({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var c=new H(l,{width:"100%",height:i+"em"});o=Ve.makeSvgSpan([],[c],r)}return o.height=i,o.style.height=i+"em",o},Pt=function(e){var t=new gt.MathNode("mo",[new gt.TextNode(Et[e.substr(1)])]);return t.setAttribute("stretchy","true"),t},At=function(e,t){var n=function(){var n=4e5,r=e.label.substr(1);if(f.contains(["widehat","widecheck","widetilde","utilde"],r)){var o,i,a,l="ordgroup"===(d=e.base).type?d.body.length:1;if(l>5)"widehat"===r||"widecheck"===r?(o=420,n=2364,a=.42,i=r+"4"):(o=312,n=2340,a=.34,i="tilde4");else{var c=[1,1,2,2,3,3][l];"widehat"===r||"widecheck"===r?(n=[0,1062,2364,2364,2364][c],o=[0,239,300,360,420][c],a=[0,.24,.3,.3,.36,.42][c],i=r+c):(n=[0,600,1033,2339,2340][c],o=[0,260,286,306,312][c],a=[0,.26,.286,.3,.306,.34][c],i="tilde"+c)}var s=new R(i),u=new H([s],{width:"100%",height:a+"em",viewBox:"0 0 "+n+" "+o,preserveAspectRatio:"none"});return{span:Ve.makeSvgSpan([],[u],t),minWidth:0,height:a}}var h,p,d,m=[],v=zt[r],y=v[0],g=v[1],b=v[2],w=b/1e3,x=y.length;if(1===x)h=["hide-tail"],p=[v[3]];else if(2===x)h=["halfarrow-left","halfarrow-right"],p=["xMinYMin","xMaxYMin"];else{if(3!==x)throw new Error("Correct katexImagesData or update code here to support\n "+x+" children.");h=["brace-left","brace-center","brace-right"],p=["xMinYMin","xMidYMin","xMaxYMin"]}for(var _=0;_0&&(r.style.minWidth=o+"em"),r},jt=function(e,t){var n,r,o,i=Fe(e,"supsub");i?(n=(r=De(i.base,"accent")).base,i.base=n,o=function(e){if(e instanceof P)return e;throw new Error("Expected span but got "+String(e)+".")}(ht(i,t)),i.base=r):n=(r=De(e,"accent")).base;var a=ht(n,t.havingCrampedStyle()),l=0;if(r.isShifty&&f.isCharacterBox(n)){var c=f.getBaseElem(n);l=V(ht(c,t.havingCrampedStyle())).skew}var s,u=Math.min(a.height,t.fontMetrics().xHeight);if(r.isStretchy)s=At(r,t),s=Ve.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"elem",elem:s,wrapperClasses:["svg-align"],wrapperStyle:l>0?{width:"calc(100% - "+2*l+"em)",marginLeft:2*l+"em"}:void 0}]},t);else{var h,p;"\\vec"===r.label?(h=Ve.staticSvg("vec",t),p=Ve.svgData.vec[1]):((h=V(h=Ve.makeOrd({mode:r.mode,text:r.label},t,"textord"))).italic=0,p=h.width),s=Ve.makeSpan(["accent-body"],[h]);var d="\\textcircled"===r.label;d&&(s.classes.push("accent-full"),u=a.height);var m=l;d||(m-=p/2),s.style.left=m+"em","\\textcircled"===r.label&&(s.style.top=".2em"),s=Ve.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"kern",size:-u},{type:"elem",elem:s}]},t)}var v=Ve.makeSpan(["mord","accent"],[s],t);return o?(o.children[0]=v,o.height=Math.max(v.height,o.height),o.classes[0]="mord",o):v},Lt=function(e,t){var n=e.isStretchy?Pt(e.label):new gt.MathNode("mo",[bt(e.label,e.mode)]),r=new gt.MathNode("mover",[St(e.base,t),n]);return r.setAttribute("accent","true"),r},Nt=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map((function(e){return"\\"+e})).join("|"));$e({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:function(e,t){var n=t[0],r=!Nt.test(e.funcName),o=!r||"\\widehat"===e.funcName||"\\widetilde"===e.funcName||"\\widecheck"===e.funcName;return{type:"accent",mode:e.parser.mode,label:e.funcName,isStretchy:r,isShifty:o,base:n}},htmlBuilder:jt,mathmlBuilder:Lt}),$e({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!1},handler:function(e,t){var n=t[0];return{type:"accent",mode:e.parser.mode,label:e.funcName,isStretchy:!1,isShifty:!0,base:n}},htmlBuilder:jt,mathmlBuilder:Lt}),$e({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:function(e,t){var n=e.parser,r=e.funcName,o=t[0];return{type:"accentUnder",mode:n.mode,label:r,base:o}},htmlBuilder:function(e,t){var n=ht(e.base,t),r=At(e,t),o="\\utilde"===e.label?.12:0,i=Ve.makeVList({positionType:"bottom",positionData:r.height+o,children:[{type:"elem",elem:r,wrapperClasses:["svg-align"]},{type:"kern",size:o},{type:"elem",elem:n}]},t);return Ve.makeSpan(["mord","accentunder"],[i],t)},mathmlBuilder:function(e,t){var n=Pt(e.label),r=new gt.MathNode("munder",[St(e.base,t),n]);return r.setAttribute("accentunder","true"),r}});var Ht=function(e){var t=new gt.MathNode("mpadded",e?[e]:[]);return t.setAttribute("width","+0.6em"),t.setAttribute("lspace","0.3em"),t};$e({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium"],props:{numArgs:1,numOptionalArgs:1},handler:function(e,t,n){var r=e.parser,o=e.funcName;return{type:"xArrow",mode:r.mode,label:o,body:t[0],below:n[0]}},htmlBuilder:function(e,t){var n,r=t.style,o=t.havingStyle(r.sup()),i=Ve.wrapFragment(ht(e.body,o,t),t);i.classes.push("x-arrow-pad"),e.below&&(o=t.havingStyle(r.sub()),(n=Ve.wrapFragment(ht(e.below,o,t),t)).classes.push("x-arrow-pad"));var a,l=At(e,t),c=-t.fontMetrics().axisHeight+.5*l.height,s=-t.fontMetrics().axisHeight-.5*l.height-.111;if((i.depth>.25||"\\xleftequilibrium"===e.label)&&(s-=i.depth),n){var u=-t.fontMetrics().axisHeight+n.height+.5*l.height+.111;a=Ve.makeVList({positionType:"individualShift",children:[{type:"elem",elem:i,shift:s},{type:"elem",elem:l,shift:c},{type:"elem",elem:n,shift:u}]},t)}else a=Ve.makeVList({positionType:"individualShift",children:[{type:"elem",elem:i,shift:s},{type:"elem",elem:l,shift:c}]},t);return a.children[0].children[0].children[1].classes.push("svg-align"),Ve.makeSpan(["mrel","x-arrow"],[a],t)},mathmlBuilder:function(e,t){var n,r=Pt(e.label);if(e.body){var o=Ht(St(e.body,t));if(e.below){var i=Ht(St(e.below,t));n=new gt.MathNode("munderover",[r,i,o])}else n=new gt.MathNode("mover",[r,o])}else if(e.below){var a=Ht(St(e.below,t));n=new gt.MathNode("munder",[r,a])}else n=Ht(),n=new gt.MathNode("mover",[r,n]);return n}}),$e({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler:function(e,t){for(var n=e.parser,r=De(t[0],"ordgroup").body,o="",i=0;i","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],Jt=[0,1.2,1.8,2.4,3],Qt=[{type:"small",style:x.SCRIPTSCRIPT},{type:"small",style:x.SCRIPT},{type:"small",style:x.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],Zt=[{type:"small",style:x.SCRIPTSCRIPT},{type:"small",style:x.SCRIPT},{type:"small",style:x.TEXT},{type:"stack"}],$t=[{type:"small",style:x.SCRIPTSCRIPT},{type:"small",style:x.SCRIPT},{type:"small",style:x.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],en=function(e){if("small"===e.type)return"Main-Regular";if("large"===e.type)return"Size"+e.size+"-Regular";if("stack"===e.type)return"Size4-Regular";throw new Error("Add support for delim type '"+e.type+"' here.")},tn=function(e,t,n,r){for(var o=Math.min(2,3-r.style.size);ot)return n[o]}return n[n.length-1]},nn=function(e,t,n,r,o,i){var a;"<"===e||"\\lt"===e||"⟨"===e?e="\\langle":">"!==e&&"\\gt"!==e&&"⟩"!==e||(e="\\rangle"),a=f.contains(Xt,e)?Qt:f.contains(Gt,e)?$t:Zt;var l=tn(e,t,a,r);return"small"===l.type?function(e,t,n,r,o,i){var a=Ve.makeSymbol(e,"Main-Regular",o,r),l=Dt(a,t,r,i);return n&&Ft(l,r,t),l}(e,l.style,n,r,o,i):"large"===l.type?qt(e,l.size,n,r,o,i):Wt(e,t,n,r,o,i)},rn=function(e,t){var n,r,o=t.havingBaseSizing(),i=tn("\\surd",e*o.sizeMultiplier,$t,o),a=o.sizeMultiplier,l=Math.max(0,t.minRuleThickness-t.fontMetrics().sqrtRuleThickness),c=0,s=0,u=0;return"small"===i.type?(e<1?a=1:e<1.4&&(a=.7),s=(1+l)/a,(n=Yt("sqrtMain",c=(1+l+.08)/a,u=1e3+1e3*l+80,l,t)).style.minWidth="0.853em",r=.833/a):"large"===i.type?(u=1080*Jt[i.size],s=(Jt[i.size]+l)/a,c=(Jt[i.size]+l+.08)/a,(n=Yt("sqrtSize"+i.size,c,u,l,t)).style.minWidth="1.02em",r=1/a):(c=e+l+.08,s=e+l,u=Math.floor(1e3*e+l)+80,(n=Yt("sqrtTall",c,u,l,t)).style.minWidth="0.742em",r=1.056),n.height=s,n.style.height=c+"em",{span:n,advanceWidth:r,ruleWidth:(t.fontMetrics().sqrtRuleThickness+l)*a}},on=function(e,t,n,r,o){if("<"===e||"\\lt"===e||"⟨"===e?e="\\langle":">"!==e&&"\\gt"!==e&&"⟩"!==e||(e="\\rangle"),f.contains(Gt,e)||f.contains(Xt,e))return qt(e,t,!1,n,r,o);if(f.contains(Kt,e))return Wt(e,Jt[t],!1,n,r,o);throw new a("Illegal delimiter: '"+e+"'")},an=nn,ln=function(e,t,n,r,o,i){var a=r.fontMetrics().axisHeight*r.sizeMultiplier,l=5/r.fontMetrics().ptPerEm,c=Math.max(t-a,n+a),s=Math.max(c/500*901,2*c-l);return nn(e,s,!0,r,o,i)},cn={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}},sn=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","<",">","\\langle","⟨","\\rangle","⟩","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."];function un(e,t){var n=Ue(e);if(n&&f.contains(sn,n.text))return n;throw new a("Invalid delimiter: '"+(n?n.text:JSON.stringify(e))+"' after '"+t.funcName+"'",e)}function fn(e){if(!e.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}$e({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1},handler:function(e,t){var n=un(t[0],e);return{type:"delimsizing",mode:e.parser.mode,size:cn[e.funcName].size,mclass:cn[e.funcName].mclass,delim:n.text}},htmlBuilder:function(e,t){return"."===e.delim?Ve.makeSpan([e.mclass]):on(e.delim,e.size,t,e.mode,[e.mclass])},mathmlBuilder:function(e){var t=[];"."!==e.delim&&t.push(bt(e.delim,e.mode));var n=new gt.MathNode("mo",t);return"mopen"===e.mclass||"mclose"===e.mclass?n.setAttribute("fence","true"):n.setAttribute("fence","false"),n}}),$e({type:"leftright-right",names:["\\right"],props:{numArgs:1},handler:function(e,t){var n=e.parser.gullet.macros.get("\\current@color");if(n&&"string"!=typeof n)throw new a("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:e.parser.mode,delim:un(t[0],e).text,color:n}}}),$e({type:"leftright",names:["\\left"],props:{numArgs:1},handler:function(e,t){var n=un(t[0],e),r=e.parser;++r.leftrightDepth;var o=r.parseExpression(!1);--r.leftrightDepth,r.expect("\\right",!1);var i=De(r.parseFunction(),"leftright-right");return{type:"leftright",mode:r.mode,body:o,left:n.text,right:i.delim,rightColor:i.color}},htmlBuilder:function(e,t){fn(e);for(var n,r,o=lt(e.body,t,!0,["mopen","mclose"]),i=0,a=0,l=!1,c=0;c-1?"mpadded":"menclose",[St(e.body,t)]);switch(e.label){case"\\cancel":r.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":r.setAttribute("notation","downdiagonalstrike");break;case"\\sout":r.setAttribute("notation","horizontalstrike");break;case"\\fbox":r.setAttribute("notation","box");break;case"\\fcolorbox":case"\\colorbox":if(n=t.fontMetrics().fboxsep*t.fontMetrics().ptPerEm,r.setAttribute("width","+"+2*n+"pt"),r.setAttribute("height","+"+2*n+"pt"),r.setAttribute("lspace",n+"pt"),r.setAttribute("voffset",n+"pt"),"\\fcolorbox"===e.label){var o=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness);r.setAttribute("style","border: "+o+"em solid "+String(e.borderColor))}break;case"\\xcancel":r.setAttribute("notation","updiagonalstrike downdiagonalstrike")}return e.backgroundColor&&r.setAttribute("mathbackground",e.backgroundColor),r};$e({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,greediness:3,argTypes:["color","text"]},handler:function(e,t,n){var r=e.parser,o=e.funcName,i=De(t[0],"color-token").color,a=t[1];return{type:"enclose",mode:r.mode,label:o,backgroundColor:i,body:a}},htmlBuilder:hn,mathmlBuilder:pn}),$e({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,greediness:3,argTypes:["color","color","text"]},handler:function(e,t,n){var r=e.parser,o=e.funcName,i=De(t[0],"color-token").color,a=De(t[1],"color-token").color,l=t[2];return{type:"enclose",mode:r.mode,label:o,backgroundColor:a,borderColor:i,body:l}},htmlBuilder:hn,mathmlBuilder:pn}),$e({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler:function(e,t){return{type:"enclose",mode:e.parser.mode,label:"\\fbox",body:t[0]}}}),$e({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout"],props:{numArgs:1},handler:function(e,t,n){var r=e.parser,o=e.funcName,i=t[0];return{type:"enclose",mode:r.mode,label:o,body:i}},htmlBuilder:hn,mathmlBuilder:pn});var dn={};function mn(e){for(var t=e.type,n=e.names,r=e.props,o=e.handler,i=e.htmlBuilder,a=e.mathmlBuilder,l={type:t,numArgs:r.numArgs||0,greediness:1,allowedInText:!1,numOptionalArgs:0,handler:o},c=0;c0&&(b+=.25),s.push({pos:b,isDashed:e[t]})}for(w(i[0]),n=0;n0&&(S<(E+=g)&&(S=E),E=0),e.addJot&&(S+=m),O.height=k,O.depth=S,b+=k,O.pos=b,b+=S+E,c[n]=O,w(i[n+1])}var z,C,P=b/2+t.fontMetrics().axisHeight,A=e.cols||[],j=[];for(r=0,C=0;r=l)){var I=void 0;(r>0||e.hskipBeforeAndAfter)&&0!==(I=f.deflt(L.pregap,p))&&((z=Ve.makeSpan(["arraycolsep"],[])).style.width=I+"em",j.push(z));var V=[];for(n=0;n0){for(var B=Ve.makeLineSpan("hline",t,u),U=Ve.makeLineSpan("hdashline",t,u),W=[{type:"elem",elem:c,shift:0}];s.length>0;){var Y=s.pop(),G=Y.pos-P;Y.isDashed?W.push({type:"elem",elem:U,shift:G}):W.push({type:"elem",elem:B,shift:G})}c=Ve.makeVList({positionType:"individualShift",children:W},t)}return Ve.makeSpan(["mord"],[c],t)},wn={c:"center ",l:"left ",r:"right "},xn=function(e,t){var n=new gt.MathNode("mtable",e.body.map((function(e){return new gt.MathNode("mtr",e.map((function(e){return new gt.MathNode("mtd",[St(e,t)])})))}))),r=.5===e.arraystretch?.1:.16+e.arraystretch-1+(e.addJot?.09:0);n.setAttribute("rowspacing",r+"em");var o="",i="";if(e.cols){var a=e.cols,l="",c=!1,s=0,u=a.length;"separator"===a[0].type&&(o+="top ",s=1),"separator"===a[a.length-1].type&&(o+="bottom ",u-=1);for(var f=s;f0?"left ":"",o+=v[v.length-1].length>0?"right ":"";for(var y=1;y0&&f&&(d=1),r[h]={type:"align",align:p,pregap:d,postgap:0}}return o.colSeparationType=f?"align":"alignat",o};mn({type:"array",names:["array","darray"],props:{numArgs:1},handler:function(e,t){var n={cols:(Ue(t[0])?[t[0]]:De(t[0],"ordgroup").body).map((function(e){var t=Be(e).text;if(-1!=="lcr".indexOf(t))return{type:"align",align:t};if("|"===t)return{type:"separator",separator:"|"};if(":"===t)return{type:"separator",separator:":"};throw new a("Unknown column alignment: "+t,e)})),hskipBeforeAndAfter:!0};return yn(e.parser,n,gn(e.envName))},htmlBuilder:bn,mathmlBuilder:xn}),mn({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix"],props:{numArgs:0},handler:function(e){var t={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[e.envName],n=yn(e.parser,{hskipBeforeAndAfter:!1},gn(e.envName));return t?{type:"leftright",mode:e.mode,body:[n],left:t[0],right:t[1],rightColor:void 0}:n},htmlBuilder:bn,mathmlBuilder:xn}),mn({type:"array",names:["smallmatrix"],props:{numArgs:0},handler:function(e){var t=yn(e.parser,{arraystretch:.5},"script");return t.colSeparationType="small",t},htmlBuilder:bn,mathmlBuilder:xn}),mn({type:"array",names:["subarray"],props:{numArgs:1},handler:function(e,t){var n=(Ue(t[0])?[t[0]]:De(t[0],"ordgroup").body).map((function(e){var t=Be(e).text;if(-1!=="lc".indexOf(t))return{type:"align",align:t};throw new a("Unknown column alignment: "+t,e)}));if(n.length>1)throw new a("{subarray} can contain only one column");var r={cols:n,hskipBeforeAndAfter:!1,arraystretch:.5};if((r=yn(e.parser,r,"script")).body[0].length>1)throw new a("{subarray} can contain only one column");return r},htmlBuilder:bn,mathmlBuilder:xn}),mn({type:"array",names:["cases","dcases"],props:{numArgs:0},handler:function(e){var t=yn(e.parser,{arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},gn(e.envName));return{type:"leftright",mode:e.mode,body:[t],left:"\\{",right:".",rightColor:void 0}},htmlBuilder:bn,mathmlBuilder:xn}),mn({type:"array",names:["aligned"],props:{numArgs:0},handler:_n,htmlBuilder:bn,mathmlBuilder:xn}),mn({type:"array",names:["gathered"],props:{numArgs:0},handler:function(e){return yn(e.parser,{cols:[{type:"align",align:"c"}],addJot:!0},"display")},htmlBuilder:bn,mathmlBuilder:xn}),mn({type:"array",names:["alignedat"],props:{numArgs:1},handler:_n,htmlBuilder:bn,mathmlBuilder:xn}),$e({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler:function(e,t){throw new a(e.funcName+" valid only within array environment")}});var kn=dn;$e({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler:function(e,t){var n=e.parser,r=e.funcName,o=t[0];if("ordgroup"!==o.type)throw new a("Invalid environment name",o);for(var i="",l=0;l=x.SCRIPT.id?n.text():x.DISPLAY:"text"===e&&n.size===x.DISPLAY.size?n=x.TEXT:"script"===e?n=x.SCRIPT:"scriptscript"===e&&(n=x.SCRIPTSCRIPT),n},An=function(e,t){var n,r=Pn(e.size,t.style),o=r.fracNum(),i=r.fracDen();n=t.havingStyle(o);var a=ht(e.numer,n,t);if(e.continued){var l=8.5/t.fontMetrics().ptPerEm,c=3.5/t.fontMetrics().ptPerEm;a.height=a.height0?3*f:7*f,d=t.fontMetrics().denom1):(u>0?(h=t.fontMetrics().num2,p=f):(h=t.fontMetrics().num3,p=3*f),d=t.fontMetrics().denom2),s){var w=t.fontMetrics().axisHeight;h-a.depth-(w+.5*u)0&&(t="."===(t=e)?null:t),t};$e({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,greediness:6,argTypes:["math","math","size","text","math","math"]},handler:function(e,t){var n=e.parser,r=t[4],o=t[5],i=Fe(t[0],"atom");i&&(i=qe(t[0],"open"));var a=i?Nn(i.text):null,l=Fe(t[1],"atom");l&&(l=qe(t[1],"close"));var c,s=l?Nn(l.text):null,u=De(t[2],"size"),f=null;c=!!u.isBlank||(f=u.value).number>0;var h="auto",p=Fe(t[3],"ordgroup");if(p){if(p.body.length>0){var d=De(p.body[0],"textord");h=Ln[Number(d.text)]}}else p=De(t[3],"textord"),h=Ln[Number(p.text)];return{type:"genfrac",mode:n.mode,numer:r,denom:o,continued:!1,hasBarLine:c,barSize:f,leftDelim:a,rightDelim:s,size:h}},htmlBuilder:An,mathmlBuilder:jn}),$e({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler:function(e,t){var n=e.parser,r=(e.funcName,e.token);return{type:"infix",mode:n.mode,replaceWith:"\\\\abovefrac",size:De(t[0],"size").value,token:r}}}),$e({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:function(e,t){var n=e.parser,r=(e.funcName,t[0]),o=function(e){if(!e)throw new Error("Expected non-null, but got "+String(e));return e}(De(t[1],"infix").size),i=t[2],a=o.number>0;return{type:"genfrac",mode:n.mode,numer:r,denom:i,continued:!1,hasBarLine:a,barSize:o,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:An,mathmlBuilder:jn});var Hn=function(e,t){var n,r,o=t.style,i=Fe(e,"supsub");i?(n=i.sup?ht(i.sup,t.havingStyle(o.sup()),t):ht(i.sub,t.havingStyle(o.sub()),t),r=De(i.base,"horizBrace")):r=De(e,"horizBrace");var a,l=ht(r.base,t.havingBaseStyle(x.DISPLAY)),c=At(r,t);if(r.isOver?(a=Ve.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:l},{type:"kern",size:.1},{type:"elem",elem:c}]},t)).children[0].children[0].children[1].classes.push("svg-align"):(a=Ve.makeVList({positionType:"bottom",positionData:l.depth+.1+c.height,children:[{type:"elem",elem:c},{type:"kern",size:.1},{type:"elem",elem:l}]},t)).children[0].children[0].children[0].classes.push("svg-align"),n){var s=Ve.makeSpan(["mord",r.isOver?"mover":"munder"],[a],t);a=r.isOver?Ve.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:s},{type:"kern",size:.2},{type:"elem",elem:n}]},t):Ve.makeVList({positionType:"bottom",positionData:s.depth+.2+n.height+n.depth,children:[{type:"elem",elem:n},{type:"kern",size:.2},{type:"elem",elem:s}]},t)}return Ve.makeSpan(["mord",r.isOver?"mover":"munder"],[a],t)};$e({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler:function(e,t){var n=e.parser,r=e.funcName;return{type:"horizBrace",mode:n.mode,label:r,isOver:/^\\over/.test(r),base:t[0]}},htmlBuilder:Hn,mathmlBuilder:function(e,t){var n=Pt(e.label);return new gt.MathNode(e.isOver?"mover":"munder",[St(e.base,t),n])}}),$e({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:function(e,t){var n=e.parser,r=t[1],o=De(t[0],"url").url;return n.settings.isTrusted({command:"\\href",url:o})?{type:"href",mode:n.mode,href:o,body:tt(r)}:n.formatUnsupportedCmd("\\href")},htmlBuilder:function(e,t){var n=lt(e.body,t,!1);return Ve.makeAnchor(e.href,[],n,t)},mathmlBuilder:function(e,t){var n=kt(e.body,t);return n instanceof vt||(n=new vt("mrow",[n])),n.setAttribute("href",e.href),n}}),$e({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:function(e,t){var n=e.parser,r=De(t[0],"url").url;if(!n.settings.isTrusted({command:"\\url",url:r}))return n.formatUnsupportedCmd("\\url");for(var o=[],i=0;i0&&(r=Te(e.totalheight,t)-n,r=Number(r.toFixed(2)));var o=0;e.width.number>0&&(o=Te(e.width,t));var i={height:n+r+"em"};o>0&&(i.width=o+"em"),r>0&&(i.verticalAlign=-r+"em");var a=new j(e.src,e.alt,i);return a.height=n,a.depth=r,a},mathmlBuilder:function(e,t){var n=new gt.MathNode("mglyph",[]);n.setAttribute("alt",e.alt);var r=Te(e.height,t),o=0;if(e.totalheight.number>0&&(o=(o=Te(e.totalheight,t)-r).toFixed(2),n.setAttribute("valign","-"+o+"em")),n.setAttribute("height",r+o+"em"),e.width.number>0){var i=Te(e.width,t);n.setAttribute("width",i+"em")}return n.setAttribute("src",e.src),n}}),$e({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],allowedInText:!0},handler:function(e,t){var n=e.parser,r=e.funcName,o=De(t[0],"size");if(n.settings.strict){var i="m"===r[1],a="mu"===o.value.unit;i?(a||n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" supports only mu units, not "+o.value.unit+" units"),"math"!==n.mode&&n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" works only in math mode")):a&&n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" doesn't support mu units")}return{type:"kern",mode:n.mode,dimension:o.value}},htmlBuilder:function(e,t){return Ve.makeGlue(e.dimension,t)},mathmlBuilder:function(e,t){var n=Te(e.dimension,t);return new gt.SpaceNode(n)}}),$e({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:function(e,t){var n=e.parser,r=e.funcName,o=t[0];return{type:"lap",mode:n.mode,alignment:r.slice(5),body:o}},htmlBuilder:function(e,t){var n;"clap"===e.alignment?(n=Ve.makeSpan([],[ht(e.body,t)]),n=Ve.makeSpan(["inner"],[n],t)):n=Ve.makeSpan(["inner"],[ht(e.body,t)]);var r=Ve.makeSpan(["fix"],[]),o=Ve.makeSpan([e.alignment],[n,r],t),i=Ve.makeSpan(["strut"]);return i.style.height=o.height+o.depth+"em",i.style.verticalAlign=-o.depth+"em",o.children.unshift(i),o=Ve.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:o}]},t),Ve.makeSpan(["mord"],[o],t)},mathmlBuilder:function(e,t){var n=new gt.MathNode("mpadded",[St(e.body,t)]);if("rlap"!==e.alignment){var r="llap"===e.alignment?"-1":"-0.5";n.setAttribute("lspace",r+"width")}return n.setAttribute("width","0px"),n}}),$e({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler:function(e,t){var n=e.funcName,r=e.parser,o=r.mode;r.switchMode("math");var i="\\("===n?"\\)":"$",a=r.parseExpression(!1,i);return r.expect(i),r.switchMode(o),{type:"styling",mode:r.mode,style:"text",body:a}}}),$e({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler:function(e,t){throw new a("Mismatched "+e.funcName)}});var In=function(e,t){switch(t.style.size){case x.DISPLAY.size:return e.display;case x.TEXT.size:return e.text;case x.SCRIPT.size:return e.script;case x.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}};$e({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4},handler:function(e,t){return{type:"mathchoice",mode:e.parser.mode,display:tt(t[0]),text:tt(t[1]),script:tt(t[2]),scriptscript:tt(t[3])}},htmlBuilder:function(e,t){var n=In(e,t),r=lt(n,t,!1);return Ve.makeFragment(r)},mathmlBuilder:function(e,t){var n=In(e,t);return kt(n,t)}});var Vn=function(e,t,n,r,o,i,a){var l,c,s;if(e=Ve.makeSpan([],[e]),t){var u=ht(t,r.havingStyle(o.sup()),r);c={elem:u,kern:Math.max(r.fontMetrics().bigOpSpacing1,r.fontMetrics().bigOpSpacing3-u.depth)}}if(n){var f=ht(n,r.havingStyle(o.sub()),r);l={elem:f,kern:Math.max(r.fontMetrics().bigOpSpacing2,r.fontMetrics().bigOpSpacing4-f.height)}}if(c&&l){var h=r.fontMetrics().bigOpSpacing5+l.elem.height+l.elem.depth+l.kern+e.depth+a;s=Ve.makeVList({positionType:"bottom",positionData:h,children:[{type:"kern",size:r.fontMetrics().bigOpSpacing5},{type:"elem",elem:l.elem,marginLeft:-i+"em"},{type:"kern",size:l.kern},{type:"elem",elem:e},{type:"kern",size:c.kern},{type:"elem",elem:c.elem,marginLeft:i+"em"},{type:"kern",size:r.fontMetrics().bigOpSpacing5}]},r)}else if(l){var p=e.height-a;s=Ve.makeVList({positionType:"top",positionData:p,children:[{type:"kern",size:r.fontMetrics().bigOpSpacing5},{type:"elem",elem:l.elem,marginLeft:-i+"em"},{type:"kern",size:l.kern},{type:"elem",elem:e}]},r)}else{if(!c)return e;var d=e.depth+a;s=Ve.makeVList({positionType:"bottom",positionData:d,children:[{type:"elem",elem:e},{type:"kern",size:c.kern},{type:"elem",elem:c.elem,marginLeft:i+"em"},{type:"kern",size:r.fontMetrics().bigOpSpacing5}]},r)}return Ve.makeSpan(["mop","op-limits"],[s],r)},Dn=["\\smallint"],Fn=function(e,t){var n,r,o,i=!1,a=Fe(e,"supsub");a?(n=a.sup,r=a.sub,o=De(a.base,"op"),i=!0):o=De(e,"op");var l,c=t.style,s=!1;if(c.size===x.DISPLAY.size&&o.symbol&&!f.contains(Dn,o.name)&&(s=!0),o.symbol){var u=s?"Size2-Regular":"Size1-Regular",h="";if("\\oiint"!==o.name&&"\\oiiint"!==o.name||(h=o.name.substr(1),o.name="oiint"===h?"\\iint":"\\iiint"),l=Ve.makeSymbol(o.name,u,"math",t,["mop","op-symbol",s?"large-op":"small-op"]),h.length>0){var p=l.italic,d=Ve.staticSvg(h+"Size"+(s?"2":"1"),t);l=Ve.makeVList({positionType:"individualShift",children:[{type:"elem",elem:l,shift:0},{type:"elem",elem:d,shift:s?.08:0}]},t),o.name="\\"+h,l.classes.unshift("mop"),l.italic=p}}else if(o.body){var m=lt(o.body,t,!0);1===m.length&&m[0]instanceof N?(l=m[0]).classes[0]="mop":l=Ve.makeSpan(["mop"],Ve.tryCombineChars(m),t)}else{for(var v=[],y=1;y0){for(var c=o.body.map((function(e){var t=e.text;return"string"==typeof t?{type:"textord",mode:e.mode,text:t}:e})),s=lt(c,t.withFont("mathrm"),!0),u=0;u=0?l.setAttribute("height","+"+o+"em"):(l.setAttribute("height",o+"em"),l.setAttribute("depth","+"+-o+"em")),l.setAttribute("voffset",o+"em"),l}});var Gn=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"];$e({type:"sizing",names:Gn,props:{numArgs:0,allowedInText:!0},handler:function(e,t){var n=e.breakOnTokenText,r=e.funcName,o=e.parser,i=o.parseExpression(!1,n);return{type:"sizing",mode:o.mode,size:Gn.indexOf(r)+1,body:i}},htmlBuilder:function(e,t){var n=t.havingSize(e.size);return Yn(e.body,n,t)},mathmlBuilder:function(e,t){var n=t.havingSize(e.size),r=_t(e.body,n),o=new gt.MathNode("mstyle",r);return o.setAttribute("mathsize",n.sizeMultiplier+"em"),o}}),$e({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:function(e,t,n){var r=e.parser,o=!1,i=!1,a=n[0]&&De(n[0],"ordgroup");if(a)for(var l="",c=0;cn.height+n.depth+i&&(i=(i+f-n.height-n.depth)/2);var h=c.height-n.height-i-s;n.style.paddingLeft=u+"em";var p=Ve.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n,wrapperClasses:["svg-align"]},{type:"kern",size:-(n.height+h)},{type:"elem",elem:c},{type:"kern",size:s}]},t);if(e.index){var d=t.havingStyle(x.SCRIPTSCRIPT),m=ht(e.index,d,t),v=.6*(p.height-p.depth),y=Ve.makeVList({positionType:"shift",positionData:-v,children:[{type:"elem",elem:m}]},t),g=Ve.makeSpan(["root"],[y]);return Ve.makeSpan(["mord","sqrt"],[g,p],t)}return Ve.makeSpan(["mord","sqrt"],[p],t)},mathmlBuilder:function(e,t){var n=e.body,r=e.index;return r?new gt.MathNode("mroot",[St(n,t),St(r,t)]):new gt.MathNode("msqrt",[St(n,t)])}});var Kn={display:x.DISPLAY,text:x.TEXT,script:x.SCRIPT,scriptscript:x.SCRIPTSCRIPT};$e({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0},handler:function(e,t){var n=e.breakOnTokenText,r=e.funcName,o=e.parser,i=o.parseExpression(!0,n),a=r.slice(1,r.length-5);return{type:"styling",mode:o.mode,style:a,body:i}},htmlBuilder:function(e,t){var n=Kn[e.style],r=t.havingStyle(n).withFont("");return Yn(e.body,r,t)},mathmlBuilder:function(e,t){var n=Kn[e.style],r=t.havingStyle(n),o=_t(e.body,r),i=new gt.MathNode("mstyle",o),a={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]}[e.style];return i.setAttribute("scriptlevel",a[0]),i.setAttribute("displaystyle",a[1]),i}}),et({type:"supsub",htmlBuilder:function(e,t){var n=function(e,t){var n=e.base;return n?"op"===n.type?n.limits&&(t.style.size===x.DISPLAY.size||n.alwaysHandleSupSub)?Fn:null:"operatorname"===n.type?n.alwaysHandleSupSub&&(t.style.size===x.DISPLAY.size||n.limits)?Wn:null:"accent"===n.type?f.isCharacterBox(n.base)?jt:null:"horizBrace"===n.type&&!e.sub===n.isOver?Hn:null:null}(e,t);if(n)return n(e,t);var r,o,i,a=e.base,l=e.sup,c=e.sub,s=ht(a,t),u=t.fontMetrics(),h=0,p=0,d=a&&f.isCharacterBox(a);if(l){var m=t.havingStyle(t.style.sup());r=ht(l,m,t),d||(h=s.height-m.fontMetrics().supDrop*m.sizeMultiplier/t.sizeMultiplier)}if(c){var v=t.havingStyle(t.style.sub());o=ht(c,v,t),d||(p=s.depth+v.fontMetrics().subDrop*v.sizeMultiplier/t.sizeMultiplier)}i=t.style===x.DISPLAY?u.sup1:t.style.cramped?u.sup3:u.sup2;var y,g=t.sizeMultiplier,b=.5/u.ptPerEm/g+"em",w=null;if(o){var _=e.base&&"op"===e.base.type&&e.base.name&&("\\oiint"===e.base.name||"\\oiiint"===e.base.name);(s instanceof N||_)&&(w=-s.italic+"em")}if(r&&o){h=Math.max(h,i,r.depth+.25*u.xHeight),p=Math.max(p,u.sub2);var k=4*u.defaultRuleThickness;if(h-r.depth-(o.height-p)0&&(h+=S,p-=S)}var O=[{type:"elem",elem:o,shift:p,marginRight:b,marginLeft:w},{type:"elem",elem:r,shift:-h,marginRight:b}];y=Ve.makeVList({positionType:"individualShift",children:O},t)}else if(o){p=Math.max(p,u.sub1,o.height-.8*u.xHeight);var M=[{type:"elem",elem:o,marginLeft:w,marginRight:b}];y=Ve.makeVList({positionType:"shift",positionData:p,children:M},t)}else{if(!r)throw new Error("supsub must have either sup or sub.");h=Math.max(h,i,r.depth+.25*u.xHeight),y=Ve.makeVList({positionType:"shift",positionData:-h,children:[{type:"elem",elem:r,marginRight:b}]},t)}var T=ut(s,"right")||"mord";return Ve.makeSpan([T],[s,Ve.makeSpan(["msupsub"],[y])],t)},mathmlBuilder:function(e,t){var n,r=!1,o=Fe(e.base,"horizBrace");o&&!!e.sup===o.isOver&&(r=!0,n=o.isOver),!e.base||"op"!==e.base.type&&"operatorname"!==e.base.type||(e.base.parentIsSupSub=!0);var i,a=[St(e.base,t)];if(e.sub&&a.push(St(e.sub,t)),e.sup&&a.push(St(e.sup,t)),r)i=n?"mover":"munder";else if(e.sub)if(e.sup){var l=e.base;i=l&&"op"===l.type&&l.limits&&t.style===x.DISPLAY||l&&"operatorname"===l.type&&l.alwaysHandleSupSub&&(t.style===x.DISPLAY||l.limits)?"munderover":"msubsup"}else{var c=e.base;i=c&&"op"===c.type&&c.limits&&(t.style===x.DISPLAY||c.alwaysHandleSupSub)||c&&"operatorname"===c.type&&c.alwaysHandleSupSub&&(c.limits||t.style===x.DISPLAY)?"munder":"msub"}else{var s=e.base;i=s&&"op"===s.type&&s.limits&&(t.style===x.DISPLAY||s.alwaysHandleSupSub)||s&&"operatorname"===s.type&&s.alwaysHandleSupSub&&(s.limits||t.style===x.DISPLAY)?"mover":"msup"}return new gt.MathNode(i,a)}}),et({type:"atom",htmlBuilder:function(e,t){return Ve.mathsym(e.text,e.mode,t,["m"+e.family])},mathmlBuilder:function(e,t){var n=new gt.MathNode("mo",[bt(e.text,e.mode)]);if("bin"===e.family){var r=xt(e,t);"bold-italic"===r&&n.setAttribute("mathvariant",r)}else"punct"===e.family?n.setAttribute("separator","true"):"open"!==e.family&&"close"!==e.family||n.setAttribute("stretchy","false");return n}});var Xn={mi:"italic",mn:"normal",mtext:"normal"};et({type:"mathord",htmlBuilder:function(e,t){return Ve.makeOrd(e,t,"mathord")},mathmlBuilder:function(e,t){var n=new gt.MathNode("mi",[bt(e.text,e.mode,t)]),r=xt(e,t)||"italic";return r!==Xn[n.type]&&n.setAttribute("mathvariant",r),n}}),et({type:"textord",htmlBuilder:function(e,t){return Ve.makeOrd(e,t,"textord")},mathmlBuilder:function(e,t){var n,r=bt(e.text,e.mode,t),o=xt(e,t)||"normal";return n="text"===e.mode?new gt.MathNode("mtext",[r]):/[0-9]/.test(e.text)?new gt.MathNode("mn",[r]):"\\prime"===e.text?new gt.MathNode("mo",[r]):new gt.MathNode("mi",[r]),o!==Xn[n.type]&&n.setAttribute("mathvariant",o),n}});var Jn={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},Qn={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};et({type:"spacing",htmlBuilder:function(e,t){if(Qn.hasOwnProperty(e.text)){var n=Qn[e.text].className||"";if("text"===e.mode){var r=Ve.makeOrd(e,t,"textord");return r.classes.push(n),r}return Ve.makeSpan(["mspace",n],[Ve.mathsym(e.text,e.mode,t)],t)}if(Jn.hasOwnProperty(e.text))return Ve.makeSpan(["mspace",Jn[e.text]],[],t);throw new a('Unknown type of space "'+e.text+'"')},mathmlBuilder:function(e,t){if(!Qn.hasOwnProperty(e.text)){if(Jn.hasOwnProperty(e.text))return new gt.MathNode("mspace");throw new a('Unknown type of space "'+e.text+'"')}return new gt.MathNode("mtext",[new gt.TextNode(" ")])}});var Zn=function(){var e=new gt.MathNode("mtd",[]);return e.setAttribute("width","50%"),e};et({type:"tag",mathmlBuilder:function(e,t){var n=new gt.MathNode("mtable",[new gt.MathNode("mtr",[Zn(),new gt.MathNode("mtd",[kt(e.body,t)]),Zn(),new gt.MathNode("mtd",[kt(e.tag,t)])])]);return n.setAttribute("width","100%"),n}});var $n={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},er={"\\textbf":"textbf","\\textmd":"textmd"},tr={"\\textit":"textit","\\textup":"textup"},nr=function(e,t){var n=e.font;return n?$n[n]?t.withTextFontFamily($n[n]):er[n]?t.withTextFontWeight(er[n]):t.withTextFontShape(tr[n]):t};$e({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup"],props:{numArgs:1,argTypes:["text"],greediness:2,allowedInText:!0},handler:function(e,t){var n=e.parser,r=e.funcName,o=t[0];return{type:"text",mode:n.mode,body:tt(o),font:r}},htmlBuilder:function(e,t){var n=nr(e,t),r=lt(e.body,n,!0);return Ve.makeSpan(["mord","text"],Ve.tryCombineChars(r),n)},mathmlBuilder:function(e,t){var n=nr(e,t);return kt(e.body,n)}}),$e({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler:function(e,t){return{type:"underline",mode:e.parser.mode,body:t[0]}},htmlBuilder:function(e,t){var n=ht(e.body,t),r=Ve.makeLineSpan("underline-line",t),o=t.fontMetrics().defaultRuleThickness,i=Ve.makeVList({positionType:"top",positionData:n.height,children:[{type:"kern",size:o},{type:"elem",elem:r},{type:"kern",size:3*o},{type:"elem",elem:n}]},t);return Ve.makeSpan(["mord","underline"],[i],t)},mathmlBuilder:function(e,t){var n=new gt.MathNode("mo",[new gt.TextNode("‾")]);n.setAttribute("stretchy","true");var r=new gt.MathNode("munder",[St(e.body,t),n]);return r.setAttribute("accentunder","true"),r}}),$e({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler:function(e,t,n){throw new a("\\verb ended by end of line instead of matching delimiter")},htmlBuilder:function(e,t){for(var n=rr(e),r=[],o=t.havingStyle(t.style.text()),i=0;i0&&(this.undefStack[this.undefStack.length-1][e]=t)}else{var o=this.undefStack[this.undefStack.length-1];o&&!o.hasOwnProperty(e)&&(o[e]=this.current[e])}this.current[e]=t},e}(),sr={},ur=sr;function fr(e,t){sr[e]=t}fr("\\@firstoftwo",(function(e){return{tokens:e.consumeArgs(2)[0],numArgs:0}})),fr("\\@secondoftwo",(function(e){return{tokens:e.consumeArgs(2)[1],numArgs:0}})),fr("\\@ifnextchar",(function(e){var t=e.consumeArgs(3),n=e.future();return 1===t[0].length&&t[0][0].text===n.text?{tokens:t[1],numArgs:0}:{tokens:t[2],numArgs:0}})),fr("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}"),fr("\\TextOrMath",(function(e){var t=e.consumeArgs(2);return"text"===e.mode?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}}));var hr={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};fr("\\char",(function(e){var t,n=e.popToken(),r="";if("'"===n.text)t=8,n=e.popToken();else if('"'===n.text)t=16,n=e.popToken();else if("`"===n.text)if("\\"===(n=e.popToken()).text[0])r=n.text.charCodeAt(1);else{if("EOF"===n.text)throw new a("\\char` missing argument");r=n.text.charCodeAt(0)}else t=10;if(t){if(null==(r=hr[n.text])||r>=t)throw new a("Invalid base-"+t+" digit "+n.text);for(var o;null!=(o=hr[e.future().text])&&o":"\\dotsb","-":"\\dotsb","*":"\\dotsb",":":"\\dotsb","\\DOTSB":"\\dotsb","\\coprod":"\\dotsb","\\bigvee":"\\dotsb","\\bigwedge":"\\dotsb","\\biguplus":"\\dotsb","\\bigcap":"\\dotsb","\\bigcup":"\\dotsb","\\prod":"\\dotsb","\\sum":"\\dotsb","\\bigotimes":"\\dotsb","\\bigoplus":"\\dotsb","\\bigodot":"\\dotsb","\\bigsqcup":"\\dotsb","\\And":"\\dotsb","\\longrightarrow":"\\dotsb","\\Longrightarrow":"\\dotsb","\\longleftarrow":"\\dotsb","\\Longleftarrow":"\\dotsb","\\longleftrightarrow":"\\dotsb","\\Longleftrightarrow":"\\dotsb","\\mapsto":"\\dotsb","\\longmapsto":"\\dotsb","\\hookrightarrow":"\\dotsb","\\doteq":"\\dotsb","\\mathbin":"\\dotsb","\\mathrel":"\\dotsb","\\relbar":"\\dotsb","\\Relbar":"\\dotsb","\\xrightarrow":"\\dotsb","\\xleftarrow":"\\dotsb","\\DOTSI":"\\dotsi","\\int":"\\dotsi","\\oint":"\\dotsi","\\iint":"\\dotsi","\\iiint":"\\dotsi","\\iiiint":"\\dotsi","\\idotsint":"\\dotsi","\\DOTSX":"\\dotsx"};fr("\\dots",(function(e){var t="\\dotso",n=e.expandAfterFuture().text;return n in mr?t=mr[n]:("\\not"===n.substr(0,4)||n in K.math&&f.contains(["bin","rel"],K.math[n].group))&&(t="\\dotsb"),t}));var vr={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};fr("\\dotso",(function(e){return e.future().text in vr?"\\ldots\\,":"\\ldots"})),fr("\\dotsc",(function(e){var t=e.future().text;return t in vr&&","!==t?"\\ldots\\,":"\\ldots"})),fr("\\cdots",(function(e){return e.future().text in vr?"\\@cdots\\,":"\\@cdots"})),fr("\\dotsb","\\cdots"),fr("\\dotsm","\\cdots"),fr("\\dotsi","\\!\\cdots"),fr("\\dotsx","\\ldots\\,"),fr("\\DOTSI","\\relax"),fr("\\DOTSB","\\relax"),fr("\\DOTSX","\\relax"),fr("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax"),fr("\\,","\\tmspace+{3mu}{.1667em}"),fr("\\thinspace","\\,"),fr("\\>","\\mskip{4mu}"),fr("\\:","\\tmspace+{4mu}{.2222em}"),fr("\\medspace","\\:"),fr("\\;","\\tmspace+{5mu}{.2777em}"),fr("\\thickspace","\\;"),fr("\\!","\\tmspace-{3mu}{.1667em}"),fr("\\negthinspace","\\!"),fr("\\negmedspace","\\tmspace-{4mu}{.2222em}"),fr("\\negthickspace","\\tmspace-{5mu}{.277em}"),fr("\\enspace","\\kern.5em "),fr("\\enskip","\\hskip.5em\\relax"),fr("\\quad","\\hskip1em\\relax"),fr("\\qquad","\\hskip2em\\relax"),fr("\\tag","\\@ifstar\\tag@literal\\tag@paren"),fr("\\tag@paren","\\tag@literal{({#1})}"),fr("\\tag@literal",(function(e){if(e.macros.get("\\df@tag"))throw new a("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"})),fr("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}"),fr("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)"),fr("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}"),fr("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1"),fr("\\pmb","\\html@mathml{\\@binrel{#1}{\\mathrlap{#1}\\kern0.5px#1}}{\\mathbf{#1}}"),fr("\\\\","\\newline"),fr("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var yr=D["Main-Regular"]["T".charCodeAt(0)][1]-.7*D["Main-Regular"]["A".charCodeAt(0)][1]+"em";fr("\\LaTeX","\\textrm{\\html@mathml{L\\kern-.36em\\raisebox{"+yr+"}{\\scriptstyle A}\\kern-.15em\\TeX}{LaTeX}}"),fr("\\KaTeX","\\textrm{\\html@mathml{K\\kern-.17em\\raisebox{"+yr+"}{\\scriptstyle A}\\kern-.15em\\TeX}{KaTeX}}"),fr("\\hspace","\\@ifstar\\@hspacer\\@hspace"),fr("\\@hspace","\\hskip #1\\relax"),fr("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax"),fr("\\ordinarycolon",":"),fr("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}"),fr("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}'),fr("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}'),fr("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}'),fr("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}'),fr("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}'),fr("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}'),fr("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}'),fr("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}'),fr("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}'),fr("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}'),fr("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}'),fr("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}'),fr("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}'),fr("∷","\\dblcolon"),fr("∹","\\eqcolon"),fr("≔","\\coloneqq"),fr("≕","\\eqqcolon"),fr("⩴","\\Coloneqq"),fr("\\ratio","\\vcentcolon"),fr("\\coloncolon","\\dblcolon"),fr("\\colonequals","\\coloneqq"),fr("\\coloncolonequals","\\Coloneqq"),fr("\\equalscolon","\\eqqcolon"),fr("\\equalscoloncolon","\\Eqqcolon"),fr("\\colonminus","\\coloneq"),fr("\\coloncolonminus","\\Coloneq"),fr("\\minuscolon","\\eqcolon"),fr("\\minuscoloncolon","\\Eqcolon"),fr("\\coloncolonapprox","\\Colonapprox"),fr("\\coloncolonsim","\\Colonsim"),fr("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),fr("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}"),fr("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),fr("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}"),fr("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}"),fr("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}"),fr("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}"),fr("\\gvertneqq","\\html@mathml{\\@gvertneqq}{≩}"),fr("\\lvertneqq","\\html@mathml{\\@lvertneqq}{≨}"),fr("\\ngeqq","\\html@mathml{\\@ngeqq}{≱}"),fr("\\ngeqslant","\\html@mathml{\\@ngeqslant}{≱}"),fr("\\nleqq","\\html@mathml{\\@nleqq}{≰}"),fr("\\nleqslant","\\html@mathml{\\@nleqslant}{≰}"),fr("\\nshortmid","\\html@mathml{\\@nshortmid}{∤}"),fr("\\nshortparallel","\\html@mathml{\\@nshortparallel}{∦}"),fr("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{⊈}"),fr("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{⊉}"),fr("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{⊊}"),fr("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{⫋}"),fr("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{⊋}"),fr("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{⫌}"),fr("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}"),fr("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}"),fr("⟦","\\llbracket"),fr("⟧","\\rrbracket"),fr("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}"),fr("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}"),fr("⦃","\\lBrace"),fr("⦄","\\rBrace"),fr("\\darr","\\downarrow"),fr("\\dArr","\\Downarrow"),fr("\\Darr","\\Downarrow"),fr("\\lang","\\langle"),fr("\\rang","\\rangle"),fr("\\uarr","\\uparrow"),fr("\\uArr","\\Uparrow"),fr("\\Uarr","\\Uparrow"),fr("\\N","\\mathbb{N}"),fr("\\R","\\mathbb{R}"),fr("\\Z","\\mathbb{Z}"),fr("\\alef","\\aleph"),fr("\\alefsym","\\aleph"),fr("\\Alpha","\\mathrm{A}"),fr("\\Beta","\\mathrm{B}"),fr("\\bull","\\bullet"),fr("\\Chi","\\mathrm{X}"),fr("\\clubs","\\clubsuit"),fr("\\cnums","\\mathbb{C}"),fr("\\Complex","\\mathbb{C}"),fr("\\Dagger","\\ddagger"),fr("\\diamonds","\\diamondsuit"),fr("\\empty","\\emptyset"),fr("\\Epsilon","\\mathrm{E}"),fr("\\Eta","\\mathrm{H}"),fr("\\exist","\\exists"),fr("\\harr","\\leftrightarrow"),fr("\\hArr","\\Leftrightarrow"),fr("\\Harr","\\Leftrightarrow"),fr("\\hearts","\\heartsuit"),fr("\\image","\\Im"),fr("\\infin","\\infty"),fr("\\Iota","\\mathrm{I}"),fr("\\isin","\\in"),fr("\\Kappa","\\mathrm{K}"),fr("\\larr","\\leftarrow"),fr("\\lArr","\\Leftarrow"),fr("\\Larr","\\Leftarrow"),fr("\\lrarr","\\leftrightarrow"),fr("\\lrArr","\\Leftrightarrow"),fr("\\Lrarr","\\Leftrightarrow"),fr("\\Mu","\\mathrm{M}"),fr("\\natnums","\\mathbb{N}"),fr("\\Nu","\\mathrm{N}"),fr("\\Omicron","\\mathrm{O}"),fr("\\plusmn","\\pm"),fr("\\rarr","\\rightarrow"),fr("\\rArr","\\Rightarrow"),fr("\\Rarr","\\Rightarrow"),fr("\\real","\\Re"),fr("\\reals","\\mathbb{R}"),fr("\\Reals","\\mathbb{R}"),fr("\\Rho","\\mathrm{P}"),fr("\\sdot","\\cdot"),fr("\\sect","\\S"),fr("\\spades","\\spadesuit"),fr("\\sub","\\subset"),fr("\\sube","\\subseteq"),fr("\\supe","\\supseteq"),fr("\\Tau","\\mathrm{T}"),fr("\\thetasym","\\vartheta"),fr("\\weierp","\\wp"),fr("\\Zeta","\\mathrm{Z}"),fr("\\argmin","\\DOTSB\\operatorname*{arg\\,min}"),fr("\\argmax","\\DOTSB\\operatorname*{arg\\,max}"),fr("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits"),fr("\\blue","\\textcolor{##6495ed}{#1}"),fr("\\orange","\\textcolor{##ffa500}{#1}"),fr("\\pink","\\textcolor{##ff00af}{#1}"),fr("\\red","\\textcolor{##df0030}{#1}"),fr("\\green","\\textcolor{##28ae7b}{#1}"),fr("\\gray","\\textcolor{gray}{#1}"),fr("\\purple","\\textcolor{##9d38bd}{#1}"),fr("\\blueA","\\textcolor{##ccfaff}{#1}"),fr("\\blueB","\\textcolor{##80f6ff}{#1}"),fr("\\blueC","\\textcolor{##63d9ea}{#1}"),fr("\\blueD","\\textcolor{##11accd}{#1}"),fr("\\blueE","\\textcolor{##0c7f99}{#1}"),fr("\\tealA","\\textcolor{##94fff5}{#1}"),fr("\\tealB","\\textcolor{##26edd5}{#1}"),fr("\\tealC","\\textcolor{##01d1c1}{#1}"),fr("\\tealD","\\textcolor{##01a995}{#1}"),fr("\\tealE","\\textcolor{##208170}{#1}"),fr("\\greenA","\\textcolor{##b6ffb0}{#1}"),fr("\\greenB","\\textcolor{##8af281}{#1}"),fr("\\greenC","\\textcolor{##74cf70}{#1}"),fr("\\greenD","\\textcolor{##1fab54}{#1}"),fr("\\greenE","\\textcolor{##0d923f}{#1}"),fr("\\goldA","\\textcolor{##ffd0a9}{#1}"),fr("\\goldB","\\textcolor{##ffbb71}{#1}"),fr("\\goldC","\\textcolor{##ff9c39}{#1}"),fr("\\goldD","\\textcolor{##e07d10}{#1}"),fr("\\goldE","\\textcolor{##a75a05}{#1}"),fr("\\redA","\\textcolor{##fca9a9}{#1}"),fr("\\redB","\\textcolor{##ff8482}{#1}"),fr("\\redC","\\textcolor{##f9685d}{#1}"),fr("\\redD","\\textcolor{##e84d39}{#1}"),fr("\\redE","\\textcolor{##bc2612}{#1}"),fr("\\maroonA","\\textcolor{##ffbde0}{#1}"),fr("\\maroonB","\\textcolor{##ff92c6}{#1}"),fr("\\maroonC","\\textcolor{##ed5fa6}{#1}"),fr("\\maroonD","\\textcolor{##ca337c}{#1}"),fr("\\maroonE","\\textcolor{##9e034e}{#1}"),fr("\\purpleA","\\textcolor{##ddd7ff}{#1}"),fr("\\purpleB","\\textcolor{##c6b9fc}{#1}"),fr("\\purpleC","\\textcolor{##aa87ff}{#1}"),fr("\\purpleD","\\textcolor{##7854ab}{#1}"),fr("\\purpleE","\\textcolor{##543b78}{#1}"),fr("\\mintA","\\textcolor{##f5f9e8}{#1}"),fr("\\mintB","\\textcolor{##edf2df}{#1}"),fr("\\mintC","\\textcolor{##e0e5cc}{#1}"),fr("\\grayA","\\textcolor{##f6f7f7}{#1}"),fr("\\grayB","\\textcolor{##f0f1f2}{#1}"),fr("\\grayC","\\textcolor{##e3e5e6}{#1}"),fr("\\grayD","\\textcolor{##d6d8da}{#1}"),fr("\\grayE","\\textcolor{##babec2}{#1}"),fr("\\grayF","\\textcolor{##888d93}{#1}"),fr("\\grayG","\\textcolor{##626569}{#1}"),fr("\\grayH","\\textcolor{##3b3e40}{#1}"),fr("\\grayI","\\textcolor{##21242c}{#1}"),fr("\\kaBlue","\\textcolor{##314453}{#1}"),fr("\\kaGreen","\\textcolor{##71B307}{#1}");var gr={"\\relax":!0,"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0},br=function(){function e(e,t,n){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=t,this.expansionCount=0,this.feed(e),this.macros=new cr(ur,t.macros),this.mode=n,this.stack=[]}var t=e.prototype;return t.feed=function(e){this.lexer=new lr(e,this.settings)},t.switchMode=function(e){this.mode=e},t.beginGroup=function(){this.macros.beginGroup()},t.endGroup=function(){this.macros.endGroup()},t.future=function(){return 0===this.stack.length&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]},t.popToken=function(){return this.future(),this.stack.pop()},t.pushToken=function(e){this.stack.push(e)},t.pushTokens=function(e){var t;(t=this.stack).push.apply(t,e)},t.consumeSpaces=function(){for(;" "===this.future().text;)this.stack.pop()},t.consumeArgs=function(e){for(var t=[],n=0;nthis.settings.maxExpand)throw new a("Too many expansions: infinite loop or need to increase maxExpand setting");var r=n.tokens;if(n.numArgs)for(var o=this.consumeArgs(n.numArgs),i=(r=r.slice()).length-1;i>=0;--i){var l=r[i];if("#"===l.text){if(0===i)throw new a("Incomplete placeholder at end of macro body",l);if("#"===(l=r[--i]).text)r.splice(i+1,1);else{if(!/^[1-9]$/.test(l.text))throw new a("Not a valid argument number",l);var c;(c=r).splice.apply(c,[i,2].concat(o[+l.text-1]))}}}return this.pushTokens(r),r},t.expandAfterFuture=function(){return this.expandOnce(),this.future()},t.expandNextToken=function(){for(;;){var e=this.expandOnce();if(e instanceof o){if("\\relax"!==e.text)return this.stack.pop();this.stack.pop()}}throw new Error},t.expandMacro=function(e){if(this.macros.get(e)){var t=[],n=this.stack.length;for(this.pushToken(new o(e));this.stack.length>n;)this.expandOnce()instanceof o&&t.push(this.stack.pop());return t}},t.expandMacroAsText=function(e){var t=this.expandMacro(e);return t?t.map((function(e){return e.text})).join(""):t},t._getExpansion=function(e){var t=this.macros.get(e);if(null==t)return t;var n="function"==typeof t?t(this):t;if("string"==typeof n){var r=0;if(-1!==n.indexOf("#"))for(var o=n.replace(/##/g,"");-1!==o.indexOf("#"+(r+1));)++r;for(var i=new lr(n,this.settings),a=[],l=i.lex();"EOF"!==l.text;)a.push(l),l=i.lex();return a.reverse(),{tokens:a,numArgs:r}}return n},t.isDefined=function(e){return this.macros.has(e)||or.hasOwnProperty(e)||K.math.hasOwnProperty(e)||K.text.hasOwnProperty(e)||gr.hasOwnProperty(e)},e}(),wr={"́":{text:"\\'",math:"\\acute"},"̀":{text:"\\`",math:"\\grave"},"̈":{text:'\\"',math:"\\ddot"},"̃":{text:"\\~",math:"\\tilde"},"̄":{text:"\\=",math:"\\bar"},"̆":{text:"\\u",math:"\\breve"},"̌":{text:"\\v",math:"\\check"},"̂":{text:"\\^",math:"\\hat"},"̇":{text:"\\.",math:"\\dot"},"̊":{text:"\\r",math:"\\mathring"},"̋":{text:"\\H"}},xr={á:"á",à:"à",ä:"ä",ǟ:"ǟ",ã:"ã",ā:"ā",ă:"ă",ắ:"ắ",ằ:"ằ",ẵ:"ẵ",ǎ:"ǎ",â:"â",ấ:"ấ",ầ:"ầ",ẫ:"ẫ",ȧ:"ȧ",ǡ:"ǡ",å:"å",ǻ:"ǻ",ḃ:"ḃ",ć:"ć",č:"č",ĉ:"ĉ",ċ:"ċ",ď:"ď",ḋ:"ḋ",é:"é",è:"è",ë:"ë",ẽ:"ẽ",ē:"ē",ḗ:"ḗ",ḕ:"ḕ",ĕ:"ĕ",ě:"ě",ê:"ê",ế:"ế",ề:"ề",ễ:"ễ",ė:"ė",ḟ:"ḟ",ǵ:"ǵ",ḡ:"ḡ",ğ:"ğ",ǧ:"ǧ",ĝ:"ĝ",ġ:"ġ",ḧ:"ḧ",ȟ:"ȟ",ĥ:"ĥ",ḣ:"ḣ",í:"í",ì:"ì",ï:"ï",ḯ:"ḯ",ĩ:"ĩ",ī:"ī",ĭ:"ĭ",ǐ:"ǐ",î:"î",ǰ:"ǰ",ĵ:"ĵ",ḱ:"ḱ",ǩ:"ǩ",ĺ:"ĺ",ľ:"ľ",ḿ:"ḿ",ṁ:"ṁ",ń:"ń",ǹ:"ǹ",ñ:"ñ",ň:"ň",ṅ:"ṅ",ó:"ó",ò:"ò",ö:"ö",ȫ:"ȫ",õ:"õ",ṍ:"ṍ",ṏ:"ṏ",ȭ:"ȭ",ō:"ō",ṓ:"ṓ",ṑ:"ṑ",ŏ:"ŏ",ǒ:"ǒ",ô:"ô",ố:"ố",ồ:"ồ",ỗ:"ỗ",ȯ:"ȯ",ȱ:"ȱ",ő:"ő",ṕ:"ṕ",ṗ:"ṗ",ŕ:"ŕ",ř:"ř",ṙ:"ṙ",ś:"ś",ṥ:"ṥ",š:"š",ṧ:"ṧ",ŝ:"ŝ",ṡ:"ṡ",ẗ:"ẗ",ť:"ť",ṫ:"ṫ",ú:"ú",ù:"ù",ü:"ü",ǘ:"ǘ",ǜ:"ǜ",ǖ:"ǖ",ǚ:"ǚ",ũ:"ũ",ṹ:"ṹ",ū:"ū",ṻ:"ṻ",ŭ:"ŭ",ǔ:"ǔ",û:"û",ů:"ů",ű:"ű",ṽ:"ṽ",ẃ:"ẃ",ẁ:"ẁ",ẅ:"ẅ",ŵ:"ŵ",ẇ:"ẇ",ẘ:"ẘ",ẍ:"ẍ",ẋ:"ẋ",ý:"ý",ỳ:"ỳ",ÿ:"ÿ",ỹ:"ỹ",ȳ:"ȳ",ŷ:"ŷ",ẏ:"ẏ",ẙ:"ẙ",ź:"ź",ž:"ž",ẑ:"ẑ",ż:"ż",Á:"Á",À:"À",Ä:"Ä",Ǟ:"Ǟ",Ã:"Ã",Ā:"Ā",Ă:"Ă",Ắ:"Ắ",Ằ:"Ằ",Ẵ:"Ẵ",Ǎ:"Ǎ",Â:"Â",Ấ:"Ấ",Ầ:"Ầ",Ẫ:"Ẫ",Ȧ:"Ȧ",Ǡ:"Ǡ",Å:"Å",Ǻ:"Ǻ",Ḃ:"Ḃ",Ć:"Ć",Č:"Č",Ĉ:"Ĉ",Ċ:"Ċ",Ď:"Ď",Ḋ:"Ḋ",É:"É",È:"È",Ë:"Ë",Ẽ:"Ẽ",Ē:"Ē",Ḗ:"Ḗ",Ḕ:"Ḕ",Ĕ:"Ĕ",Ě:"Ě",Ê:"Ê",Ế:"Ế",Ề:"Ề",Ễ:"Ễ",Ė:"Ė",Ḟ:"Ḟ",Ǵ:"Ǵ",Ḡ:"Ḡ",Ğ:"Ğ",Ǧ:"Ǧ",Ĝ:"Ĝ",Ġ:"Ġ",Ḧ:"Ḧ",Ȟ:"Ȟ",Ĥ:"Ĥ",Ḣ:"Ḣ",Í:"Í",Ì:"Ì",Ï:"Ï",Ḯ:"Ḯ",Ĩ:"Ĩ",Ī:"Ī",Ĭ:"Ĭ",Ǐ:"Ǐ",Î:"Î",İ:"İ",Ĵ:"Ĵ",Ḱ:"Ḱ",Ǩ:"Ǩ",Ĺ:"Ĺ",Ľ:"Ľ",Ḿ:"Ḿ",Ṁ:"Ṁ",Ń:"Ń",Ǹ:"Ǹ",Ñ:"Ñ",Ň:"Ň",Ṅ:"Ṅ",Ó:"Ó",Ò:"Ò",Ö:"Ö",Ȫ:"Ȫ",Õ:"Õ",Ṍ:"Ṍ",Ṏ:"Ṏ",Ȭ:"Ȭ",Ō:"Ō",Ṓ:"Ṓ",Ṑ:"Ṑ",Ŏ:"Ŏ",Ǒ:"Ǒ",Ô:"Ô",Ố:"Ố",Ồ:"Ồ",Ỗ:"Ỗ",Ȯ:"Ȯ",Ȱ:"Ȱ",Ő:"Ő",Ṕ:"Ṕ",Ṗ:"Ṗ",Ŕ:"Ŕ",Ř:"Ř",Ṙ:"Ṙ",Ś:"Ś",Ṥ:"Ṥ",Š:"Š",Ṧ:"Ṧ",Ŝ:"Ŝ",Ṡ:"Ṡ",Ť:"Ť",Ṫ:"Ṫ",Ú:"Ú",Ù:"Ù",Ü:"Ü",Ǘ:"Ǘ",Ǜ:"Ǜ",Ǖ:"Ǖ",Ǚ:"Ǚ",Ũ:"Ũ",Ṹ:"Ṹ",Ū:"Ū",Ṻ:"Ṻ",Ŭ:"Ŭ",Ǔ:"Ǔ",Û:"Û",Ů:"Ů",Ű:"Ű",Ṽ:"Ṽ",Ẃ:"Ẃ",Ẁ:"Ẁ",Ẅ:"Ẅ",Ŵ:"Ŵ",Ẇ:"Ẇ",Ẍ:"Ẍ",Ẋ:"Ẋ",Ý:"Ý",Ỳ:"Ỳ",Ÿ:"Ÿ",Ỹ:"Ỹ",Ȳ:"Ȳ",Ŷ:"Ŷ",Ẏ:"Ẏ",Ź:"Ź",Ž:"Ž",Ẑ:"Ẑ",Ż:"Ż",ά:"ά",ὰ:"ὰ",ᾱ:"ᾱ",ᾰ:"ᾰ",έ:"έ",ὲ:"ὲ",ή:"ή",ὴ:"ὴ",ί:"ί",ὶ:"ὶ",ϊ:"ϊ",ΐ:"ΐ",ῒ:"ῒ",ῑ:"ῑ",ῐ:"ῐ",ό:"ό",ὸ:"ὸ",ύ:"ύ",ὺ:"ὺ",ϋ:"ϋ",ΰ:"ΰ",ῢ:"ῢ",ῡ:"ῡ",ῠ:"ῠ",ώ:"ώ",ὼ:"ὼ",Ύ:"Ύ",Ὺ:"Ὺ",Ϋ:"Ϋ",Ῡ:"Ῡ",Ῠ:"Ῠ",Ώ:"Ώ",Ὼ:"Ὼ"},_r=function(){function e(e,t){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode="math",this.gullet=new br(e,t,this.mode),this.settings=t,this.leftrightDepth=0}var t=e.prototype;return t.expect=function(e,t){if(void 0===t&&(t=!0),this.fetch().text!==e)throw new a("Expected '"+e+"', got '"+this.fetch().text+"'",this.fetch());t&&this.consume()},t.consume=function(){this.nextToken=null},t.fetch=function(){return null==this.nextToken&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken},t.switchMode=function(e){this.mode=e,this.gullet.switchMode(e)},t.parse=function(){this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");var e=this.parseExpression(!1);return this.expect("EOF"),this.gullet.endGroup(),e},t.parseExpression=function(t,n){for(var r=[];;){"math"===this.mode&&this.consumeSpaces();var o=this.fetch();if(-1!==e.endOfExpression.indexOf(o.text))break;if(n&&o.text===n)break;if(t&&or[o.text]&&or[o.text].infix)break;var i=this.parseAtom(n);if(!i)break;r.push(i)}return"text"===this.mode&&this.formLigatures(r),this.handleInfixNodes(r)},t.handleInfixNodes=function(e){for(var t,n=-1,r=0;r0&&!s||0===l&&!s&&"math"===this.mode,f=this.parseGroupOfType("argument to '"+e+"'",c,s,r,u);if(!f){if(s){i.push(null);continue}throw new a("Expected group after '"+e+"'",this.fetch())}(s?i:o).push(f)}return{args:o,optArgs:i}},t.parseGroupOfType=function(e,t,n,r,o){switch(t){case"color":return o&&this.consumeSpaces(),this.parseColorGroup(n);case"size":return o&&this.consumeSpaces(),this.parseSizeGroup(n);case"url":return this.parseUrlGroup(n,o);case"math":case"text":return this.parseGroup(e,n,r,void 0,t,o);case"hbox":var i=this.parseGroup(e,n,r,void 0,"text",o);return i?{type:"styling",mode:i.mode,body:[i],style:"text"}:i;case"raw":if(o&&this.consumeSpaces(),n&&"{"===this.fetch().text)return null;var l=this.parseStringGroup("raw",n,!0);if(l)return{type:"raw",mode:"text",string:l.text};throw new a("Expected raw group",this.fetch());case"original":case null:case void 0:return this.parseGroup(e,n,r,void 0,void 0,o);default:throw new a("Unknown group type as "+e,this.fetch())}},t.consumeSpaces=function(){for(;" "===this.fetch().text;)this.consume()},t.parseStringGroup=function(e,t,n){var r=t?"[":"{",o=t?"]":"}",i=this.fetch();if(i.text!==r){if(t)return null;if(n&&"EOF"!==i.text&&/[^{}[\]]/.test(i.text))return this.consume(),i}var l=this.mode;this.mode="text",this.expect(r);for(var c,s="",u=this.fetch(),f=0,h=u;(c=this.fetch()).text!==o||n&&f>0;){switch(c.text){case"EOF":throw new a("Unexpected end of input in "+e,u.range(h,s));case r:f++;break;case o:f--}s+=(h=c).text,this.consume()}return this.expect(o),this.mode=l,u.range(h,s)},t.parseRegexGroup=function(e,t){var n=this.mode;this.mode="text";for(var r,o=this.fetch(),i=o,l="";"EOF"!==(r=this.fetch()).text&&e.test(l+r.text);)l+=(i=r).text,this.consume();if(""===l)throw new a("Invalid "+t+": '"+o.text+"'",o);return this.mode=n,o.range(i,l)},t.parseColorGroup=function(e){var t=this.parseStringGroup("color",e);if(!t)return null;var n=/^(#[a-f0-9]{3}|#?[a-f0-9]{6}|[a-z]+)$/i.exec(t.text);if(!n)throw new a("Invalid color: '"+t.text+"'",t);var r=n[0];return/^[0-9a-f]{6}$/i.test(r)&&(r="#"+r),{type:"color-token",mode:this.mode,color:r}},t.parseSizeGroup=function(e){var t,n=!1;if(!(t=e||"{"===this.fetch().text?this.parseStringGroup("size",e):this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,"size")))return null;e||0!==t.text.length||(t.text="0pt",n=!0);var r=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(t.text);if(!r)throw new a("Invalid size: '"+t.text+"'",t);var o={number:+(r[1]+r[2]),unit:r[3]};if(!Me(o))throw new a("Invalid unit: '"+o.unit+"'",t);return{type:"size",mode:this.mode,value:o,isBlank:n}},t.parseUrlGroup=function(e,t){this.gullet.lexer.setCatcode("%",13);var n=this.parseStringGroup("url",e,!0);if(this.gullet.lexer.setCatcode("%",14),!n)return null;var r=n.text.replace(/\\([#$%&~_^{}])/g,"$1");return{type:"url",mode:this.mode,url:r}},t.parseGroup=function(t,n,o,i,l,c){var s=this.mode;l&&this.switchMode(l),c&&this.consumeSpaces();var u,f=this.fetch(),h=f.text;if(n?"["===h:"{"===h||"\\begingroup"===h){this.consume();var p=e.endOfGroup[h];this.gullet.beginGroup();var d=this.parseExpression(!1,p),m=this.fetch();this.expect(p),this.gullet.endGroup(),u={type:"ordgroup",mode:this.mode,loc:r.range(f,m),body:d,semisimple:"\\begingroup"===h||void 0}}else if(n)u=null;else if(null==(u=this.parseFunction(i,t,o)||this.parseSymbol())&&"\\"===h[0]&&!gr.hasOwnProperty(h)){if(this.settings.throwOnError)throw new a("Undefined control sequence: "+h,f);u=this.formatUnsupportedCmd(h),this.consume()}return l&&this.switchMode(s),u},t.formLigatures=function(e){for(var t=e.length-1,n=0;n=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+t[0]+'" used in math mode',e);var c,s=K[this.mode][t].group,u=r.range(e);if(W.hasOwnProperty(s)){var f=s;c={type:"atom",mode:this.mode,family:f,loc:u,text:t}}else c={type:s,mode:this.mode,loc:u,text:t};i=c}else{if(!(t.charCodeAt(0)>=128))return null;this.settings.strict&&(S(t.charCodeAt(0))?"math"===this.mode&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+t[0]+'" used in math mode',e):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+t[0]+'" ('+t.charCodeAt(0)+")",e)),i={type:"textord",mode:"text",loc:r.range(e),text:t}}if(this.consume(),l)for(var h=0;h15?"…"+e.slice(n-15,n):e.slice(0,n),l=t+15":">","<":"<",'"':""","'":"'"},h=/[&><"']/g,p=function e(t){return"ordgroup"===t.type||"color"===t.type?1===t.body.length?e(t.body[0]):t:"font"===t.type?e(t.body):t};var d={contains:function(e,t){return-1!==e.indexOf(t)},deflt:function(e,t){return void 0===e?t:e},escape:function(e){return String(e).replace(h,e=>f[e])},hyphenate:function(e){return e.replace(u,"-$1").toLowerCase()},getBaseElem:p,isCharacterBox:function(e){const t=p(e);return"mathord"===t.type||"textord"===t.type||"atom"===t.type},protocolFromUrl:function(e){const t=/^\s*([^\\/#]*?)(?::|�*58|�*3a)/i.exec(e);return null!=t?t[1]:"_relative"}};class m{constructor(e){this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,e=e||{},this.displayMode=d.deflt(e.displayMode,!1),this.output=d.deflt(e.output,"htmlAndMathml"),this.leqno=d.deflt(e.leqno,!1),this.fleqn=d.deflt(e.fleqn,!1),this.throwOnError=d.deflt(e.throwOnError,!0),this.errorColor=d.deflt(e.errorColor,"#cc0000"),this.macros=e.macros||{},this.minRuleThickness=Math.max(0,d.deflt(e.minRuleThickness,0)),this.colorIsTextColor=d.deflt(e.colorIsTextColor,!1),this.strict=d.deflt(e.strict,"warn"),this.trust=d.deflt(e.trust,!1),this.maxSize=Math.max(0,d.deflt(e.maxSize,1/0)),this.maxExpand=Math.max(0,d.deflt(e.maxExpand,1e3))}reportNonstrict(e,t,n){let r=this.strict;if("function"==typeof r&&(r=r(e,t,n)),r&&"ignore"!==r){if(!0===r||"error"===r)throw new s(`LaTeX-incompatible input and strict mode is set to 'error': ${t} [${e}]`,n);"warn"===r?"undefined"!=typeof console&&console.warn(`LaTeX-incompatible input and strict mode is set to 'warn': ${t} [${e}]`):"undefined"!=typeof console&&console.warn(`LaTeX-incompatible input and strict mode is set to unrecognized '${r}': ${t} [${e}]`)}}useStrictBehavior(e,t,n){let r=this.strict;if("function"==typeof r)try{r=r(e,t,n)}catch(e){r="error"}return!(!r||"ignore"===r||!0!==r&&"error"!==r&&("warn"===r?("undefined"!=typeof console&&console.warn(`LaTeX-incompatible input and strict mode is set to 'warn': ${t} [${e}]`),1):("undefined"!=typeof console&&console.warn(`LaTeX-incompatible input and strict mode is set to unrecognized '${r}': ${t} [${e}]`),1)))}isTrusted(e){e.url&&!e.protocol&&(e.protocol=d.protocolFromUrl(e.url));const t="function"==typeof this.trust?this.trust(e):this.trust;return Boolean(t)}}class v{constructor(e,t,n){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=e,this.size=t,this.cramped=n}sup(){return y[g[this.id]]}sub(){return y[b[this.id]]}fracNum(){return y[w[this.id]]}fracDen(){return y[x[this.id]]}cramp(){return y[_[this.id]]}text(){return y[k[this.id]]}isTight(){return this.size>=2}}const y=[new v(0,0,!1),new v(1,0,!0),new v(2,1,!1),new v(3,1,!0),new v(4,2,!1),new v(5,2,!0),new v(6,3,!1),new v(7,3,!0)],g=[4,5,4,5,6,7,6,7],b=[5,5,5,5,7,7,7,7],w=[2,3,4,5,6,7,6,7],x=[3,3,5,5,7,7,7,7],_=[1,1,3,3,5,5,7,7],k=[0,1,2,3,2,3,2,3];var S={DISPLAY:y[0],TEXT:y[2],SCRIPT:y[4],SCRIPTSCRIPT:y[6]};const O=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}],M=[];function T(e){for(let t=0;t=M[t]&&e<=M[t+1])return!0;return!1}O.forEach(e=>e.blocks.forEach(e=>M.push(...e)));const E={doubleleftarrow:"M262 157\nl10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3\n 0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28\n 14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5\nc2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5\n 157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87\n-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7\n-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z\nm8 0v40h399730v-40zm0 194v40h399730v-40z",doublerightarrow:"M399738 392l\n-10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5\n 14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88\n-33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68\n-17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18\n-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782\nc-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3\n-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z",leftarrow:"M400000 241H110l3-3c68.7-52.7 113.7-120\n 135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8\n-5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247\nc-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208\n 490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3\n 1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202\n l-3-3h399890zM100 241v40h399900v-40z",leftbrace:"M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117\n-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7\n 5-6 9-10 13-.7 1-7.3 1-20 1H6z",leftbraceunder:"M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13\n 35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688\n 0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7\n-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z",leftgroup:"M400000 80\nH435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0\n 435 0h399565z",leftgroupunder:"M400000 262\nH435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219\n 435 219h399565z",leftharpoon:"M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3\n-3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5\n-18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7\n-196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z",leftharpoonplus:"M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5\n 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3\n-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7\n-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z\nm0 0v40h400000v-40z",leftharpoondown:"M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333\n 5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5\n 1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667\n-152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z",leftharpoondownplus:"M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12\n 10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7\n-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0\nv40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z",lefthook:"M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5\n-83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3\n-68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21\n 71.5 23h399859zM103 281v-40h399897v40z",leftlinesegment:"M40 281 V428 H0 V94 H40 V241 H400000 v40z\nM40 281 V428 H0 V94 H40 V241 H400000 v40z",leftmapsto:"M40 281 V448H0V74H40V241H400000v40z\nM40 281 V448H0V74H40V241H400000v40z",leftToFrom:"M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23\n-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8\nc28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3\n 68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z",longequal:"M0 50 h400000 v40H0z m0 194h40000v40H0z\nM0 50 h400000 v40H0z m0 194h40000v40H0z",midbrace:"M200428 334\nc-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14\n-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7\n 311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11\n 12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z",midbraceunder:"M199572 214\nc100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14\n 53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3\n 11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0\n-5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z",oiintSize1:"M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6\n-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z\nm368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8\n60.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z",oiintSize2:"M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8\n-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z\nm502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2\nc0 110 84 276 504 276s502.4-166 502.4-276z",oiiintSize1:"M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6\n-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z\nm525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0\n85.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z",oiiintSize2:"M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8\n-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z\nm770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1\nc0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z",rightarrow:"M0 241v40h399891c-47.3 35.3-84 78-110 128\n-16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20\n 11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7\n 39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85\n-40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5\n-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67\n 151.7 139 205zm0 0v40h399900v-40z",rightbrace:"M400000 542l\n-6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5\ns-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1\nc124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z",rightbraceunder:"M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3\n 28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237\n-174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z",rightgroup:"M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0\n 3-1 3-3v-38c-76-158-257-219-435-219H0z",rightgroupunder:"M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18\n 0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z",rightharpoon:"M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3\n-3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2\n-10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58\n 69.2 92 94.5zm0 0v40h399900v-40z",rightharpoonplus:"M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11\n-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7\n 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z\nm0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z",rightharpoondown:"M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8\n 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5\n-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95\n-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z",rightharpoondownplus:"M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8\n 15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3\n 8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3\n-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z\nm0-194v40h400000v-40zm0 0v40h400000v-40z",righthook:"M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3\n 15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0\n-13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21\n 66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z",rightlinesegment:"M399960 241 V94 h40 V428 h-40 V281 H0 v-40z\nM399960 241 V94 h40 V428 h-40 V281 H0 v-40z",rightToFrom:"M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23\n 1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32\n-52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142\n-167z M100 147v40h399900v-40zM0 341v40h399900v-40z",twoheadleftarrow:"M0 167c68 40\n 115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69\n-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3\n-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19\n-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101\n 10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z",twoheadrightarrow:"M400000 167\nc-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3\n 41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42\n 18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333\n-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70\n 101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z",tilde1:"M200 55.538c-77 0-168 73.953-177 73.953-3 0-7\n-2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0\n 114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 6.525 0\n 4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128\n-68.267.847-113-73.952-191-73.952z",tilde2:"M344 55.266c-142 0-300.638 81.316-311.5 86.418\n-8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9\n 31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114\nc1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751\n 181.476 676 181.476c-149 0-189-126.21-332-126.21z",tilde3:"M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457\n-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0\n 411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697\n 16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696\n -338 0-409-156.573-744-156.573z",tilde4:"M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345\n-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409\n 177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9\n 14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409\n -175.236-744-175.236z",vec:"M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5\n3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11\n10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63\n-1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1\n-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59\nH213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359\nc-16-25.333-24-45-24-59z",widehat1:"M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22\nc-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z",widehat2:"M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10\n-11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z",widehat3:"M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10\n-11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z",widehat4:"M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10\n-11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z",widecheck1:"M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1,\n-5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z",widecheck2:"M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,\n-11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z",widecheck3:"M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,\n-11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z",widecheck4:"M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,\n-11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z",baraboveleftarrow:"M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202\nc4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5\nc-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130\ns-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47\n121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6\ns2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11\nc0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z\nM100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z",rightarrowabovebar:"M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32\n-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0\n13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39\n-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5\n-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5\n-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67\n151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z",baraboveshortleftharpoon:"M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11\nc1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17\nc2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21\nc-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40\nc-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z\nM0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z",rightharpoonaboveshortbar:"M0,241 l0,40c399126,0,399993,0,399993,0\nc4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,\n-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6\nc-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z\nM0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z",shortbaraboveleftharpoon:"M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11\nc1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9,\n1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7,\n-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z\nM93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z",shortrightharpoonabovebar:"M53,241l0,40c398570,0,399437,0,399437,0\nc4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,\n-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6\nc-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z\nM500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z"};class z{constructor(e){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=e,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(e){return d.contains(this.classes,e)}toNode(){const e=document.createDocumentFragment();for(let t=0;te.toText()).join("")}}const C=function(e){return e.filter(e=>e).join(" ")},P=function(e,t,n){if(this.classes=e||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=n||{},t){t.style.isTight()&&this.classes.push("mtight");const e=t.getColor();e&&(this.style.color=e)}},A=function(e){const t=document.createElement(e);t.className=C(this.classes);for(const e in this.style)this.style.hasOwnProperty(e)&&(t.style[e]=this.style[e]);for(const e in this.attributes)this.attributes.hasOwnProperty(e)&&t.setAttribute(e,this.attributes[e]);for(let e=0;e`,t};class L{constructor(e,t,n,r){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,P.call(this,e,n,r),this.children=t||[]}setAttribute(e,t){this.attributes[e]=t}hasClass(e){return d.contains(this.classes,e)}toNode(){return A.call(this,"span")}toMarkup(){return j.call(this,"span")}}class N{constructor(e,t,n,r){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,P.call(this,t,r),this.children=n||[],this.setAttribute("href",e)}setAttribute(e,t){this.attributes[e]=t}hasClass(e){return d.contains(this.classes,e)}toNode(){return A.call(this,"a")}toMarkup(){return j.call(this,"a")}}class H{constructor(e,t,n){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=t,this.src=e,this.classes=["mord"],this.style=n}hasClass(e){return d.contains(this.classes,e)}toNode(){const e=document.createElement("img");e.src=this.src,e.alt=this.alt,e.className="mord";for(const t in this.style)this.style.hasOwnProperty(t)&&(e.style[t]=this.style[t]);return e}toMarkup(){let e=`${this.alt}=r[0]&&e<=r[1])return n.name}}return null}(this.text.charCodeAt(0));c&&this.classes.push(c+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=R[this.text])}hasClass(e){return d.contains(this.classes,e)}toNode(){const e=document.createTextNode(this.text);let t=null;this.italic>0&&(t=document.createElement("span"),t.style.marginRight=this.italic+"em"),this.classes.length>0&&(t=t||document.createElement("span"),t.className=C(this.classes));for(const e in this.style)this.style.hasOwnProperty(e)&&(t=t||document.createElement("span"),t.style[e]=this.style[e]);return t?(t.appendChild(e),t):e}toMarkup(){let e=!1,t="0&&(n+="margin-right:"+this.italic+"em;");for(const e in this.style)this.style.hasOwnProperty(e)&&(n+=d.hyphenate(e)+":"+this.style[e]+";");n&&(e=!0,t+=' style="'+d.escape(n)+'"');const r=d.escape(this.text);return e?(t+=">",t+=r,t+="",t):r}}class V{constructor(e,t){this.children=void 0,this.attributes=void 0,this.children=e||[],this.attributes=t||{}}toNode(){const e=document.createElementNS("http://www.w3.org/2000/svg","svg");for(const t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&e.setAttribute(t,this.attributes[t]);for(let t=0;t`:``}}class F{constructor(e){this.attributes=void 0,this.attributes=e||{}}toNode(){const e=document.createElementNS("http://www.w3.org/2000/svg","line");for(const t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&e.setAttribute(t,this.attributes[t]);return e}toMarkup(){let e="",">"),Q(Z,$,le,":",":"),Q(Z,$,le,"≈","\\approx",!0),Q(Z,$,le,"≅","\\cong",!0),Q(Z,$,le,"≥","\\ge"),Q(Z,$,le,"≥","\\geq",!0),Q(Z,$,le,"←","\\gets"),Q(Z,$,le,">","\\gt"),Q(Z,$,le,"∈","\\in",!0),Q(Z,$,le,"","\\@not"),Q(Z,$,le,"⊂","\\subset",!0),Q(Z,$,le,"⊃","\\supset",!0),Q(Z,$,le,"⊆","\\subseteq",!0),Q(Z,$,le,"⊇","\\supseteq",!0),Q(Z,ee,le,"⊈","\\nsubseteq",!0),Q(Z,ee,le,"⊉","\\nsupseteq",!0),Q(Z,$,le,"⊨","\\models"),Q(Z,$,le,"←","\\leftarrow",!0),Q(Z,$,le,"≤","\\le"),Q(Z,$,le,"≤","\\leq",!0),Q(Z,$,le,"<","\\lt"),Q(Z,$,le,"→","\\rightarrow",!0),Q(Z,$,le,"→","\\to"),Q(Z,ee,le,"≱","\\ngeq",!0),Q(Z,ee,le,"≰","\\nleq",!0),Q(Z,$,ce," ","\\ "),Q(Z,$,ce," ","~"),Q(Z,$,ce," ","\\space"),Q(Z,$,ce," ","\\nobreakspace"),Q("text",$,ce," ","\\ "),Q("text",$,ce," ","~"),Q("text",$,ce," ","\\space"),Q("text",$,ce," ","\\nobreakspace"),Q(Z,$,ce,null,"\\nobreak"),Q(Z,$,ce,null,"\\allowbreak"),Q(Z,$,"punct",",",","),Q(Z,$,"punct",";",";"),Q(Z,ee,ne,"⊼","\\barwedge",!0),Q(Z,ee,ne,"⊻","\\veebar",!0),Q(Z,$,ne,"⊙","\\odot",!0),Q(Z,$,ne,"⊕","\\oplus",!0),Q(Z,$,ne,"⊗","\\otimes",!0),Q(Z,$,se,"∂","\\partial",!0),Q(Z,$,ne,"⊘","\\oslash",!0),Q(Z,ee,ne,"⊚","\\circledcirc",!0),Q(Z,ee,ne,"⊡","\\boxdot",!0),Q(Z,$,ne,"△","\\bigtriangleup"),Q(Z,$,ne,"▽","\\bigtriangledown"),Q(Z,$,ne,"†","\\dagger"),Q(Z,$,ne,"⋄","\\diamond"),Q(Z,$,ne,"⋆","\\star"),Q(Z,$,ne,"◃","\\triangleleft"),Q(Z,$,ne,"▹","\\triangleright"),Q(Z,$,ae,"{","\\{"),Q("text",$,se,"{","\\{"),Q("text",$,se,"{","\\textbraceleft"),Q(Z,$,re,"}","\\}"),Q("text",$,se,"}","\\}"),Q("text",$,se,"}","\\textbraceright"),Q(Z,$,ae,"{","\\lbrace"),Q(Z,$,re,"}","\\rbrace"),Q(Z,$,ae,"[","\\lbrack"),Q("text",$,se,"[","\\lbrack"),Q(Z,$,re,"]","\\rbrack"),Q("text",$,se,"]","\\rbrack"),Q(Z,$,ae,"(","\\lparen"),Q(Z,$,re,")","\\rparen"),Q("text",$,se,"<","\\textless"),Q("text",$,se,">","\\textgreater"),Q(Z,$,ae,"⌊","\\lfloor",!0),Q(Z,$,re,"⌋","\\rfloor",!0),Q(Z,$,ae,"⌈","\\lceil",!0),Q(Z,$,re,"⌉","\\rceil",!0),Q(Z,$,se,"\\","\\backslash"),Q(Z,$,se,"∣","|"),Q(Z,$,se,"∣","\\vert"),Q("text",$,se,"|","\\textbar"),Q(Z,$,se,"∥","\\|"),Q(Z,$,se,"∥","\\Vert"),Q("text",$,se,"∥","\\textbardbl"),Q("text",$,se,"~","\\textasciitilde"),Q("text",$,se,"\\","\\textbackslash"),Q("text",$,se,"^","\\textasciicircum"),Q(Z,$,le,"↑","\\uparrow",!0),Q(Z,$,le,"⇑","\\Uparrow",!0),Q(Z,$,le,"↓","\\downarrow",!0),Q(Z,$,le,"⇓","\\Downarrow",!0),Q(Z,$,le,"↕","\\updownarrow",!0),Q(Z,$,le,"⇕","\\Updownarrow",!0),Q(Z,$,ie,"∐","\\coprod"),Q(Z,$,ie,"⋁","\\bigvee"),Q(Z,$,ie,"⋀","\\bigwedge"),Q(Z,$,ie,"⨄","\\biguplus"),Q(Z,$,ie,"⋂","\\bigcap"),Q(Z,$,ie,"⋃","\\bigcup"),Q(Z,$,ie,"∫","\\int"),Q(Z,$,ie,"∫","\\intop"),Q(Z,$,ie,"∬","\\iint"),Q(Z,$,ie,"∭","\\iiint"),Q(Z,$,ie,"∏","\\prod"),Q(Z,$,ie,"∑","\\sum"),Q(Z,$,ie,"⨂","\\bigotimes"),Q(Z,$,ie,"⨁","\\bigoplus"),Q(Z,$,ie,"⨀","\\bigodot"),Q(Z,$,ie,"∮","\\oint"),Q(Z,$,ie,"∯","\\oiint"),Q(Z,$,ie,"∰","\\oiiint"),Q(Z,$,ie,"⨆","\\bigsqcup"),Q(Z,$,ie,"∫","\\smallint"),Q("text",$,"inner","…","\\textellipsis"),Q(Z,$,"inner","…","\\mathellipsis"),Q("text",$,"inner","…","\\ldots",!0),Q(Z,$,"inner","…","\\ldots",!0),Q(Z,$,"inner","⋯","\\@cdots",!0),Q(Z,$,"inner","⋱","\\ddots",!0),Q(Z,$,se,"⋮","\\varvdots"),Q(Z,$,te,"ˊ","\\acute"),Q(Z,$,te,"ˋ","\\grave"),Q(Z,$,te,"¨","\\ddot"),Q(Z,$,te,"~","\\tilde"),Q(Z,$,te,"ˉ","\\bar"),Q(Z,$,te,"˘","\\breve"),Q(Z,$,te,"ˇ","\\check"),Q(Z,$,te,"^","\\hat"),Q(Z,$,te,"⃗","\\vec"),Q(Z,$,te,"˙","\\dot"),Q(Z,$,te,"˚","\\mathring"),Q(Z,$,oe,"ı","\\imath",!0),Q(Z,$,oe,"ȷ","\\jmath",!0),Q("text",$,se,"ı","\\i",!0),Q("text",$,se,"ȷ","\\j",!0),Q("text",$,se,"ß","\\ss",!0),Q("text",$,se,"æ","\\ae",!0),Q("text",$,se,"æ","\\ae",!0),Q("text",$,se,"œ","\\oe",!0),Q("text",$,se,"ø","\\o",!0),Q("text",$,se,"Æ","\\AE",!0),Q("text",$,se,"Œ","\\OE",!0),Q("text",$,se,"Ø","\\O",!0),Q("text",$,te,"ˊ","\\'"),Q("text",$,te,"ˋ","\\`"),Q("text",$,te,"ˆ","\\^"),Q("text",$,te,"˜","\\~"),Q("text",$,te,"ˉ","\\="),Q("text",$,te,"˘","\\u"),Q("text",$,te,"˙","\\."),Q("text",$,te,"˚","\\r"),Q("text",$,te,"ˇ","\\v"),Q("text",$,te,"¨",'\\"'),Q("text",$,te,"˝","\\H"),Q("text",$,te,"◯","\\textcircled");const ue={"--":!0,"---":!0,"``":!0,"''":!0};Q("text",$,se,"–","--"),Q("text",$,se,"–","\\textendash"),Q("text",$,se,"—","---"),Q("text",$,se,"—","\\textemdash"),Q("text",$,se,"‘","`"),Q("text",$,se,"‘","\\textquoteleft"),Q("text",$,se,"’","'"),Q("text",$,se,"’","\\textquoteright"),Q("text",$,se,"“","``"),Q("text",$,se,"“","\\textquotedblleft"),Q("text",$,se,"”","''"),Q("text",$,se,"”","\\textquotedblright"),Q(Z,$,se,"°","\\degree",!0),Q("text",$,se,"°","\\degree"),Q("text",$,se,"°","\\textdegree",!0),Q(Z,$,oe,"£","\\pounds"),Q(Z,$,oe,"£","\\mathsterling",!0),Q("text",$,oe,"£","\\pounds"),Q("text",$,oe,"£","\\textsterling",!0),Q(Z,ee,se,"✠","\\maltese"),Q("text",ee,se,"✠","\\maltese"),Q("text",$,ce," ","\\ "),Q("text",$,ce," "," "),Q("text",$,ce," ","~");for(let e=0;e<'0123456789/@."'.length;e++){const t='0123456789/@."'.charAt(e);Q(Z,$,se,t,t)}for(let e=0;e<'0123456789!@*()-=+[]<>|";:?/.,'.length;e++){const t='0123456789!@*()-=+[]<>|";:?/.,'.charAt(e);Q("text",$,se,t,t)}const fe="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";for(let e=0;e=5?0:e>=3?1:2,!G[t]){const e=G[t]={cssEmPerMu:U.quad[t]/18};for(const n in U)U.hasOwnProperty(n)&&(e[n]=U[n][t])}return G[t]}(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}}ge.BASESIZE=6;const be={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:1.00375,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:1.00375},we={ex:!0,em:!0,mu:!0},xe=function(e){return"string"!=typeof e&&(e=e.unit),e in be||e in we||"ex"===e},_e=function(e,t){let n;if(e.unit in be)n=be[e.unit]/t.fontMetrics().ptPerEm/t.sizeMultiplier;else if("mu"===e.unit)n=t.fontMetrics().cssEmPerMu;else{let r;if(r=t.style.isTight()?t.havingStyle(t.style.text()):t,"ex"===e.unit)n=r.fontMetrics().xHeight;else{if("em"!==e.unit)throw new s("Invalid unit: '"+e.unit+"'");n=r.fontMetrics().quad}r!==t&&(n*=r.sizeMultiplier/t.sizeMultiplier)}return Math.min(e.number*n,t.maxSize)},ke=["\\imath","ı","\\jmath","ȷ","\\pounds","\\mathsterling","\\textsterling","£"],Se=function(e,t,n){return J[n][e]&&J[n][e].replace&&(e=J[n][e].replace),{value:e,metrics:Y(e,t,n)}},Oe=function(e,t,n,r,o){const i=Se(e,t,n),a=i.metrics;let l;if(e=i.value,a){let t=a.italic;("text"===n||r&&"mathit"===r.font)&&(t=0),l=new I(e,a.height,a.depth,t,a.skew,a.width,o)}else"undefined"!=typeof console&&console.warn(`No character metrics for '${e}' in style '${t}' and mode '${n}'`),l=new I(e,0,0,0,0,0,o);if(r){l.maxFontSize=r.sizeMultiplier,r.style.isTight()&&l.classes.push("mtight");const e=r.getColor();e&&(l.style.color=e)}return l},Me=(e,t)=>{if(C(e.classes)!==C(t.classes)||e.skew!==t.skew||e.maxFontSize!==t.maxFontSize)return!1;for(const n in e.style)if(e.style.hasOwnProperty(n)&&e.style[n]!==t.style[n])return!1;for(const n in t.style)if(t.style.hasOwnProperty(n)&&e.style[n]!==t.style[n])return!1;return!0},Te=function(e){let t=0,n=0,r=0;for(let o=0;ot&&(t=i.height),i.depth>n&&(n=i.depth),i.maxFontSize>r&&(r=i.maxFontSize)}e.height=t,e.depth=n,e.maxFontSize=r},Ee=function(e,t,n,r){const o=new L(e,t,n,r);return Te(o),o},ze=(e,t,n,r)=>new L(e,t,n,r),Ce=function(e){const t=new z(e);return Te(t),t},Pe=function(e,t,n){let r,o="";switch(e){case"amsrm":o="AMS";break;case"textrm":o="Main";break;case"textsf":o="SansSerif";break;case"texttt":o="Typewriter";break;default:o=e}return r="textbf"===t&&"textit"===n?"BoldItalic":"textbf"===t?"Bold":"textit"===t?"Italic":"Regular",`${o}-${r}`},Ae={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathit:{variant:"italic",fontName:"Main-Italic"},mathbb:{variant:"double-struck",fontName:"AMS-Regular"},mathcal:{variant:"script",fontName:"Caligraphic-Regular"},mathfrak:{variant:"fraktur",fontName:"Fraktur-Regular"},mathscr:{variant:"script",fontName:"Script-Regular"},mathsf:{variant:"sans-serif",fontName:"SansSerif-Regular"},mathtt:{variant:"monospace",fontName:"Typewriter-Regular"}},je={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]};var Le={fontMap:Ae,makeSymbol:Oe,mathsym:function(e,t,n,r){return void 0===r&&(r=[]),"boldsymbol"===n.font&&Se(e,"Main-Bold",t).metrics?Oe(e,"Main-Bold",t,n,r.concat(["mathbf"])):"\\"===e||"main"===J[t][e].font?Oe(e,"Main-Regular",t,n,r):Oe(e,"AMS-Regular",t,n,r.concat(["amsrm"]))},makeSpan:Ee,makeSvgSpan:ze,makeLineSpan:function(e,t,n){const r=Ee([e],[],t);return r.height=Math.max(n||t.fontMetrics().defaultRuleThickness,t.minRuleThickness),r.style.borderBottomWidth=r.height+"em",r.maxFontSize=1,r},makeAnchor:function(e,t,n,r){const o=new N(e,t,n,r);return Te(o),o},makeFragment:Ce,wrapFragment:function(e,t){return e instanceof z?Ee([],[e],t):e},makeVList:function(e,t){const n=function(e){if("individualShift"===e.positionType){const t=e.children,n=[t[0]],r=-t[0].shift-t[0].elem.depth;let o=r;for(let e=1;e{const n=Ee(["mspace"],[],t),r=_e(e,t);return n.style.marginRight=r+"em",n},staticSvg:function(e,t){const n=je[e],r=n[0],o=n[1],i=n[2],a=new D(r),l=new V([a],{width:o+"em",height:i+"em",style:"width:"+o+"em",viewBox:"0 0 "+1e3*o+" "+1e3*i,preserveAspectRatio:"xMinYMin"}),c=ze(["overlay"],[l],t);return c.height=i,c.style.height=i+"em",c.style.width=o+"em",c},svgData:je,tryCombineChars:e=>{for(let t=0;t{const n=t.classes[0],r=e.classes[0];"mbin"===n&&d.contains($e,r)?t.classes[0]="mord":"mbin"===r&&d.contains(Ze,n)&&(e.classes[0]="mord")},{node:a},l),rt(o,(e,t)=>{const n=it(t),r=it(e),o=n&&r?e.hasClass("mtight")?Ue[n][r]:Be[n][r]:null;if(o)return Le.makeGlue(o,i)},{node:a},l),o},rt=function e(t,n,r,o){o&&t.push(o);let i=0;for(;in=>{t.splice(e+1,0,n),i++})(i)}o&&t.pop()},ot=function(e){return e instanceof z||e instanceof N?e:null},it=function(e,t){return e?(t&&(e=function e(t,n){const r=ot(t);if(r){const t=r.children;if(t.length){if("right"===n)return e(t[t.length-1],"right");if("left"===n)return e(t[0],"left")}}return t}(e,t)),tt[e.classes[0]]||null):null},at=function(e,t){const n=["nulldelimiter"].concat(e.baseSizingClasses());return Qe(t.concat(n))},lt=function(e,t,n){if(!e)return Qe();if(Ye[e.type]){let r=Ye[e.type](e,t);if(n&&t.size!==n.size){r=Qe(t.sizingClasses(n),[r],t);const e=t.sizeMultiplier/n.sizeMultiplier;r.height*=e,r.depth*=e}return r}throw new s("Got group of unknown type: '"+e.type+"'")};function ct(e,t){const n=Qe(["base"],e,t),r=Qe(["strut"]);return r.style.height=n.height+n.depth+"em",r.style.verticalAlign=-n.depth+"em",n.children.unshift(r),n}function st(e,t){let n=null;1===e.length&&"tag"===e[0].type&&(n=e[0].tag,e=e[0].body);const r=nt(e,t,!0),o=[];let i,a=[];for(let e=0;e0&&(o.push(ct(a,t)),a=[]),o.push(r[e]));a.length>0&&o.push(ct(a,t)),n&&(i=ct(nt(n,t,!0)),i.classes=["tag"],o.push(i));const l=Qe(["katex-html"],o);if(l.setAttribute("aria-hidden","true"),i){const e=i.children[0];e.style.height=l.height+l.depth+"em",e.style.verticalAlign=-l.depth+"em"}return l}function ut(e){return new z(e)}class ft{constructor(e,t){this.type=void 0,this.attributes=void 0,this.children=void 0,this.type=e,this.attributes={},this.children=t||[]}setAttribute(e,t){this.attributes[e]=t}getAttribute(e){return this.attributes[e]}toNode(){const e=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(const t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&e.setAttribute(t,this.attributes[t]);for(let t=0;t",e}toText(){return this.children.map(e=>e.toText()).join("")}}class ht{constructor(e){this.text=void 0,this.text=e}toNode(){return document.createTextNode(this.text)}toMarkup(){return d.escape(this.toText())}toText(){return this.text}}var pt={MathNode:ft,TextNode:ht,SpaceNode:class{constructor(e){this.width=void 0,this.character=void 0,this.width=e,this.character=e>=.05555&&e<=.05556?" ":e>=.1666&&e<=.1667?" ":e>=.2222&&e<=.2223?" ":e>=.2777&&e<=.2778?"  ":e>=-.05556&&e<=-.05555?" ⁣":e>=-.1667&&e<=-.1666?" ⁣":e>=-.2223&&e<=-.2222?" ⁣":e>=-.2778&&e<=-.2777?" ⁣":null}toNode(){if(this.character)return document.createTextNode(this.character);{const e=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return e.setAttribute("width",this.width+"em"),e}}toMarkup(){return this.character?`${this.character}`:``}toText(){return this.character?this.character:" "}},newDocumentFragment:ut};const dt=function(e,t,n){return!J[t][e]||!J[t][e].replace||55349===e.charCodeAt(0)||ue.hasOwnProperty(e)&&n&&(n.fontFamily&&"tt"===n.fontFamily.substr(4,2)||n.font&&"tt"===n.font.substr(4,2))||(e=J[t][e].replace),new pt.TextNode(e)},mt=function(e){return 1===e.length?e[0]:new pt.MathNode("mrow",e)},vt=function(e,t){if("texttt"===t.fontFamily)return"monospace";if("textsf"===t.fontFamily)return"textit"===t.fontShape&&"textbf"===t.fontWeight?"sans-serif-bold-italic":"textit"===t.fontShape?"sans-serif-italic":"textbf"===t.fontWeight?"bold-sans-serif":"sans-serif";if("textit"===t.fontShape&&"textbf"===t.fontWeight)return"bold-italic";if("textit"===t.fontShape)return"italic";if("textbf"===t.fontWeight)return"bold";const n=t.font;if(!n||"mathnormal"===n)return null;const r=e.mode;if("mathit"===n)return"italic";if("boldsymbol"===n)return"bold-italic";if("mathbf"===n)return"bold";if("mathbb"===n)return"double-struck";if("mathfrak"===n)return"fraktur";if("mathscr"===n||"mathcal"===n)return"script";if("mathsf"===n)return"sans-serif";if("mathtt"===n)return"monospace";let o=e.text;return d.contains(["\\imath","\\jmath"],o)?null:(J[r][o]&&J[r][o].replace&&(o=J[r][o].replace),Y(o,Le.fontMap[n].fontName,r)?Le.fontMap[n].variant:null)},yt=function(e,t,n){if(1===e.length){const r=bt(e[0],t);return n&&r instanceof ft&&"mo"===r.type&&(r.setAttribute("lspace","0em"),r.setAttribute("rspace","0em")),[r]}const r=[];let o;for(let n=0;n0&&(e.text=e.text.slice(0,1)+"̸"+e.text.slice(1),r.pop())}}}r.push(i),o=i}return r},gt=function(e,t,n){return mt(yt(e,t,n))},bt=function(e,t){if(!e)return new pt.MathNode("mrow");if(Ge[e.type])return Ge[e.type](e,t);throw new s("Got group of unknown type: '"+e.type+"'")};function wt(e,t,n,r){const o=yt(e,n);let i;i=1===o.length&&o[0]instanceof ft&&d.contains(["mrow","mtable"],o[0].type)?o[0]:new pt.MathNode("mrow",o);const a=new pt.MathNode("annotation",[new pt.TextNode(t)]);a.setAttribute("encoding","application/x-tex");const l=new pt.MathNode("semantics",[i,a]),c=new pt.MathNode("math",[l]);c.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML");const s=r?"katex":"katex-mathml";return Le.makeSpan([s],[c])}const xt=function(e){return new ge({style:e.displayMode?S.DISPLAY:S.TEXT,maxSize:e.maxSize,minRuleThickness:e.minRuleThickness})},_t=function(e,t){if(t.displayMode){const n=["katex-display"];t.leqno&&n.push("leqno"),t.fleqn&&n.push("fleqn"),e=Le.makeSpan(n,[e])}return e},kt={widehat:"^",widecheck:"ˇ",widetilde:"~",utilde:"~",overleftarrow:"←",underleftarrow:"←",xleftarrow:"←",overrightarrow:"→",underrightarrow:"→",xrightarrow:"→",underbrace:"⏟",overbrace:"⏞",overgroup:"⏠",undergroup:"⏡",overleftrightarrow:"↔",underleftrightarrow:"↔",xleftrightarrow:"↔",Overrightarrow:"⇒",xRightarrow:"⇒",overleftharpoon:"↼",xleftharpoonup:"↼",overrightharpoon:"⇀",xrightharpoonup:"⇀",xLeftarrow:"⇐",xLeftrightarrow:"⇔",xhookleftarrow:"↩",xhookrightarrow:"↪",xmapsto:"↦",xrightharpoondown:"⇁",xleftharpoondown:"↽",xrightleftharpoons:"⇌",xleftrightharpoons:"⇋",xtwoheadleftarrow:"↞",xtwoheadrightarrow:"↠",xlongequal:"=",xtofrom:"⇄",xrightleftarrows:"⇄",xrightequilibrium:"⇌",xleftequilibrium:"⇋"},St={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]};var Ot=function(e,t,n,r){let o;const i=e.height+e.depth+2*n;if(/fbox|color/.test(t)){if(o=Le.makeSpan(["stretchy",t],[],r),"fbox"===t){const e=r.color&&r.getColor();e&&(o.style.borderColor=e)}}else{const e=[];/^[bx]cancel$/.test(t)&&e.push(new F({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(t)&&e.push(new F({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));const n=new V(e,{width:"100%",height:i+"em"});o=Le.makeSvgSpan([],[n],r)}return o.height=i,o.style.height=i+"em",o},Mt=function(e){const t=new pt.MathNode("mo",[new pt.TextNode(kt[e.substr(1)])]);return t.setAttribute("stretchy","true"),t},Tt=function(e,t){const n=function(){let n=4e5;const r=e.label.substr(1);if(d.contains(["widehat","widecheck","widetilde","utilde"],r)){const i="ordgroup"===(o=e.base).type?o.body.length:1;let a,l,c;if(i>5)"widehat"===r||"widecheck"===r?(a=420,n=2364,c=.42,l=r+"4"):(a=312,n=2340,c=.34,l="tilde4");else{const e=[1,1,2,2,3,3][i];"widehat"===r||"widecheck"===r?(n=[0,1062,2364,2364,2364][e],a=[0,239,300,360,420][e],c=[0,.24,.3,.3,.36,.42][e],l=r+e):(n=[0,600,1033,2339,2340][e],a=[0,260,286,306,312][e],c=[0,.26,.286,.3,.306,.34][e],l="tilde"+e)}const s=new D(l),u=new V([s],{width:"100%",height:c+"em",viewBox:`0 0 ${n} ${a}`,preserveAspectRatio:"none"});return{span:Le.makeSvgSpan([],[u],t),minWidth:0,height:c}}{const e=[],o=St[r],i=o[0],a=o[1],l=o[2],c=l/1e3,s=i.length;let u,f;if(1===s){const e=o[3];u=["hide-tail"],f=[e]}else if(2===s)u=["halfarrow-left","halfarrow-right"],f=["xMinYMin","xMaxYMin"];else{if(3!==s)throw new Error(`Correct katexImagesData or update code here to support\n ${s} children.`);u=["brace-left","brace-center","brace-right"],f=["xMinYMin","xMidYMin","xMaxYMin"]}for(let r=0;r0&&(r.style.minWidth=o+"em"),r};const Et=(e,t)=>{let n,r;const o=He(e,"supsub");let i;o?(r=Ne(o.base,"accent"),n=r.base,o.base=n,i=function(e){if(e instanceof L)return e;throw new Error(`Expected span but got ${String(e)}.`)}(lt(o,t)),o.base=r):(r=Ne(e,"accent"),n=r.base);const a=lt(n,t.havingCrampedStyle());let l=0;if(r.isShifty&&d.isCharacterBox(n)){const e=d.getBaseElem(n);l=q(lt(e,t.havingCrampedStyle())).skew}let c,s=Math.min(a.height,t.fontMetrics().xHeight);if(r.isStretchy)c=Tt(r,t),c=Le.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"elem",elem:c,wrapperClasses:["svg-align"],wrapperStyle:l>0?{width:`calc(100% - ${2*l}em)`,marginLeft:2*l+"em"}:void 0}]},t);else{let e,n;"\\vec"===r.label?(e=Le.staticSvg("vec",t),n=Le.svgData.vec[1]):(e=Le.makeOrd({mode:r.mode,text:r.label},t,"textord"),e=q(e),e.italic=0,n=e.width),c=Le.makeSpan(["accent-body"],[e]);const o="\\textcircled"===r.label;o&&(c.classes.push("accent-full"),s=a.height);let i=l;o||(i-=n/2),c.style.left=i+"em","\\textcircled"===r.label&&(c.style.top=".2em"),c=Le.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"kern",size:-s},{type:"elem",elem:c}]},t)}const u=Le.makeSpan(["mord","accent"],[c],t);return i?(i.children[0]=u,i.height=Math.max(u.height,i.height),i.classes[0]="mord",i):u},zt=(e,t)=>{const n=e.isStretchy?Mt(e.label):new pt.MathNode("mo",[dt(e.label,e.mode)]),r=new pt.MathNode("mover",[bt(e.base,t),n]);return r.setAttribute("accent","true"),r},Ct=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(e=>"\\"+e).join("|"));Ke({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:(e,t)=>{const n=t[0],r=!Ct.test(e.funcName),o=!r||"\\widehat"===e.funcName||"\\widetilde"===e.funcName||"\\widecheck"===e.funcName;return{type:"accent",mode:e.parser.mode,label:e.funcName,isStretchy:r,isShifty:o,base:n}},htmlBuilder:Et,mathmlBuilder:zt}),Ke({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!1},handler:(e,t)=>{const n=t[0];return{type:"accent",mode:e.parser.mode,label:e.funcName,isStretchy:!1,isShifty:!0,base:n}},htmlBuilder:Et,mathmlBuilder:zt}),Ke({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:(e,t)=>{let n=e.parser,r=e.funcName;const o=t[0];return{type:"accentUnder",mode:n.mode,label:r,base:o}},htmlBuilder:(e,t)=>{const n=lt(e.base,t),r=Tt(e,t),o="\\utilde"===e.label?.12:0,i=Le.makeVList({positionType:"bottom",positionData:r.height+o,children:[{type:"elem",elem:r,wrapperClasses:["svg-align"]},{type:"kern",size:o},{type:"elem",elem:n}]},t);return Le.makeSpan(["mord","accentunder"],[i],t)},mathmlBuilder:(e,t)=>{const n=Mt(e.label),r=new pt.MathNode("munder",[bt(e.base,t),n]);return r.setAttribute("accentunder","true"),r}});const Pt=e=>{const t=new pt.MathNode("mpadded",e?[e]:[]);return t.setAttribute("width","+0.6em"),t.setAttribute("lspace","0.3em"),t};Ke({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,n){let r=e.parser,o=e.funcName;return{type:"xArrow",mode:r.mode,label:o,body:t[0],below:n[0]}},htmlBuilder(e,t){const n=t.style;let r=t.havingStyle(n.sup());const o=Le.wrapFragment(lt(e.body,r,t),t);let i;o.classes.push("x-arrow-pad"),e.below&&(r=t.havingStyle(n.sub()),i=Le.wrapFragment(lt(e.below,r,t),t),i.classes.push("x-arrow-pad"));const a=Tt(e,t),l=-t.fontMetrics().axisHeight+.5*a.height;let c,s=-t.fontMetrics().axisHeight-.5*a.height-.111;if((o.depth>.25||"\\xleftequilibrium"===e.label)&&(s-=o.depth),i){const e=-t.fontMetrics().axisHeight+i.height+.5*a.height+.111;c=Le.makeVList({positionType:"individualShift",children:[{type:"elem",elem:o,shift:s},{type:"elem",elem:a,shift:l},{type:"elem",elem:i,shift:e}]},t)}else c=Le.makeVList({positionType:"individualShift",children:[{type:"elem",elem:o,shift:s},{type:"elem",elem:a,shift:l}]},t);return c.children[0].children[0].children[1].classes.push("svg-align"),Le.makeSpan(["mrel","x-arrow"],[c],t)},mathmlBuilder(e,t){const n=Mt(e.label);let r;if(e.body){const o=Pt(bt(e.body,t));if(e.below){const i=Pt(bt(e.below,t));r=new pt.MathNode("munderover",[n,i,o])}else r=new pt.MathNode("mover",[n,o])}else if(e.below){const o=Pt(bt(e.below,t));r=new pt.MathNode("munder",[n,o])}else r=Pt(),r=new pt.MathNode("mover",[n,r]);return r}}),Ke({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(e,t){let n=e.parser;const r=Ne(t[0],"ordgroup").body;let o="";for(let e=0;e{const n=nt(e.body,t.withColor(e.color),!1);return Le.makeFragment(n)},jt=(e,t)=>{const n=yt(e.body,t.withColor(e.color)),r=new pt.MathNode("mstyle",n);return r.setAttribute("mathcolor",e.color),r};Ke({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,greediness:3,argTypes:["color","original"]},handler(e,t){let n=e.parser;const r=Ne(t[0],"color-token").color,o=t[1];return{type:"color",mode:n.mode,color:r,body:Je(o)}},htmlBuilder:At,mathmlBuilder:jt}),Ke({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,greediness:3,argTypes:["color"]},handler(e,t){let n=e.parser,r=e.breakOnTokenText;const o=Ne(t[0],"color-token").color;n.gullet.macros.set("\\current@color",o);const i=n.parseExpression(!0,r);return{type:"color",mode:n.mode,color:o,body:i}},htmlBuilder:At,mathmlBuilder:jt}),Ke({type:"cr",names:["\\cr","\\newline"],props:{numArgs:0,numOptionalArgs:1,argTypes:["size"],allowedInText:!0},handler(e,t,n){let r=e.parser,o=e.funcName;const i=n[0],a="\\cr"===o;let l=!1;return a||(l=!r.settings.displayMode||!r.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode")),{type:"cr",mode:r.mode,newLine:l,newRow:a,size:i&&Ne(i,"size").value}},htmlBuilder(e,t){if(e.newRow)throw new s("\\cr valid only within a tabular/array environment");const n=Le.makeSpan(["mspace"],[],t);return e.newLine&&(n.classes.push("newline"),e.size&&(n.style.marginTop=_e(e.size,t)+"em")),n},mathmlBuilder(e,t){const n=new pt.MathNode("mspace");return e.newLine&&(n.setAttribute("linebreak","newline"),e.size&&n.setAttribute("height",_e(e.size,t)+"em")),n}});const Lt=function(e,t,n){const r=Y(J.math[e]&&J.math[e].replace||e,t,n);if(!r)throw new Error(`Unsupported symbol ${e} and font size ${t}.`);return r},Nt=function(e,t,n,r){const o=n.havingBaseStyle(t),i=Le.makeSpan(r.concat(o.sizingClasses(n)),[e],n),a=o.sizeMultiplier/n.sizeMultiplier;return i.height*=a,i.depth*=a,i.maxFontSize=o.sizeMultiplier,i},Ht=function(e,t,n){const r=t.havingBaseStyle(n),o=(1-t.sizeMultiplier/r.sizeMultiplier)*t.fontMetrics().axisHeight;e.classes.push("delimcenter"),e.style.top=o+"em",e.height-=o,e.depth+=o},Rt=function(e,t,n,r,o,i){const a=function(e,t,n,r){return Le.makeSymbol(e,"Size"+t+"-Regular",n,r)}(e,t,o,r),l=Nt(Le.makeSpan(["delimsizing","size"+t],[a],r),S.TEXT,r,i);return n&&Ht(l,r,S.TEXT),l},It=function(e,t,n){let r;return r="Size1-Regular"===t?"delim-size1":"delim-size4",{type:"elem",elem:Le.makeSpan(["delimsizinginner",r],[Le.makeSpan([],[Le.makeSymbol(e,t,n)])])}},Vt={type:"kern",size:-.005},Dt=function(e,t,n,r,o,i){let a,l,c,s;a=c=s=e,l=null;let u="Size1-Regular";"\\uparrow"===e?c=s="⏐":"\\Uparrow"===e?c=s="‖":"\\downarrow"===e?a=c="⏐":"\\Downarrow"===e?a=c="‖":"\\updownarrow"===e?(a="\\uparrow",c="⏐",s="\\downarrow"):"\\Updownarrow"===e?(a="\\Uparrow",c="‖",s="\\Downarrow"):"["===e||"\\lbrack"===e?(a="⎡",c="⎢",s="⎣",u="Size4-Regular"):"]"===e||"\\rbrack"===e?(a="⎤",c="⎥",s="⎦",u="Size4-Regular"):"\\lfloor"===e||"⌊"===e?(c=a="⎢",s="⎣",u="Size4-Regular"):"\\lceil"===e||"⌈"===e?(a="⎡",c=s="⎢",u="Size4-Regular"):"\\rfloor"===e||"⌋"===e?(c=a="⎥",s="⎦",u="Size4-Regular"):"\\rceil"===e||"⌉"===e?(a="⎤",c=s="⎥",u="Size4-Regular"):"("===e||"\\lparen"===e?(a="⎛",c="⎜",s="⎝",u="Size4-Regular"):")"===e||"\\rparen"===e?(a="⎞",c="⎟",s="⎠",u="Size4-Regular"):"\\{"===e||"\\lbrace"===e?(a="⎧",l="⎨",s="⎩",c="⎪",u="Size4-Regular"):"\\}"===e||"\\rbrace"===e?(a="⎫",l="⎬",s="⎭",c="⎪",u="Size4-Regular"):"\\lgroup"===e||"⟮"===e?(a="⎧",s="⎩",c="⎪",u="Size4-Regular"):"\\rgroup"===e||"⟯"===e?(a="⎫",s="⎭",c="⎪",u="Size4-Regular"):"\\lmoustache"===e||"⎰"===e?(a="⎧",s="⎭",c="⎪",u="Size4-Regular"):"\\rmoustache"!==e&&"⎱"!==e||(a="⎫",s="⎩",c="⎪",u="Size4-Regular");const f=Lt(a,u,o),h=f.height+f.depth,p=Lt(c,u,o),d=p.height+p.depth,m=Lt(s,u,o),v=m.height+m.depth;let y=0,g=1;if(null!==l){const e=Lt(l,u,o);y=e.height+e.depth,g=2}const b=h+v+y,w=Math.max(0,Math.ceil((t-b)/(g*d))),x=b+w*g*d;let _=r.fontMetrics().axisHeight;n&&(_*=r.sizeMultiplier);const k=x/2-_,O=.005*(w+1)-d,M=[];if(M.push(It(s,u,o)),null===l)for(let e=0;e","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],Wt=[0,1.2,1.8,2.4,3],Yt=[{type:"small",style:S.SCRIPTSCRIPT},{type:"small",style:S.SCRIPT},{type:"small",style:S.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],Gt=[{type:"small",style:S.SCRIPTSCRIPT},{type:"small",style:S.SCRIPT},{type:"small",style:S.TEXT},{type:"stack"}],Kt=[{type:"small",style:S.SCRIPTSCRIPT},{type:"small",style:S.SCRIPT},{type:"small",style:S.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],Xt=function(e){if("small"===e.type)return"Main-Regular";if("large"===e.type)return"Size"+e.size+"-Regular";if("stack"===e.type)return"Size4-Regular";throw new Error(`Add support for delim type '${e.type}' here.`)},Jt=function(e,t,n,r){for(let o=Math.min(2,3-r.style.size);ot)return n[o]}return n[n.length-1]},Qt=function(e,t,n,r,o,i){let a;"<"===e||"\\lt"===e||"⟨"===e?e="\\langle":">"!==e&&"\\gt"!==e&&"⟩"!==e||(e="\\rangle"),a=d.contains(Ut,e)?Yt:d.contains(qt,e)?Kt:Gt;const l=Jt(e,t,a,r);return"small"===l.type?function(e,t,n,r,o,i){const a=Le.makeSymbol(e,"Main-Regular",o,r),l=Nt(a,t,r,i);return n&&Ht(l,r,t),l}(e,l.style,n,r,o,i):"large"===l.type?Rt(e,l.size,n,r,o,i):Dt(e,t,n,r,o,i)};var Zt=function(e,t){const n=t.havingBaseSizing(),r=Jt("\\surd",e*n.sizeMultiplier,Kt,n);let o=n.sizeMultiplier;const i=Math.max(0,t.minRuleThickness-t.fontMetrics().sqrtRuleThickness);let a,l,c=0,s=0,u=0;return"small"===r.type?(u=1e3+1e3*i+80,e<1?o=1:e<1.4&&(o=.7),c=(1+i+.08)/o,s=(1+i)/o,a=Ft("sqrtMain",c,u,i,t),a.style.minWidth="0.853em",l=.833/o):"large"===r.type?(u=1080*Wt[r.size],s=(Wt[r.size]+i)/o,c=(Wt[r.size]+i+.08)/o,a=Ft("sqrtSize"+r.size,c,u,i,t),a.style.minWidth="1.02em",l=1/o):(c=e+i+.08,s=e+i,u=Math.floor(1e3*e+i)+80,a=Ft("sqrtTall",c,u,i,t),a.style.minWidth="0.742em",l=1.056),a.height=s,a.style.height=c+"em",{span:a,advanceWidth:l,ruleWidth:(t.fontMetrics().sqrtRuleThickness+i)*o}},$t=function(e,t,n,r,o){if("<"===e||"\\lt"===e||"⟨"===e?e="\\langle":">"!==e&&"\\gt"!==e&&"⟩"!==e||(e="\\rangle"),d.contains(qt,e)||d.contains(Ut,e))return Rt(e,t,!1,n,r,o);if(d.contains(Bt,e))return Dt(e,Wt[t],!1,n,r,o);throw new s("Illegal delimiter: '"+e+"'")},en=Qt,tn=function(e,t,n,r,o,i){const a=r.fontMetrics().axisHeight*r.sizeMultiplier,l=5/r.fontMetrics().ptPerEm,c=Math.max(t-a,n+a),s=Math.max(c/500*901,2*c-l);return Qt(e,s,!0,r,o,i)};const nn={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}},rn=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","<",">","\\langle","⟨","\\rangle","⟩","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."];function on(e,t){const n=Ve(e);if(n&&d.contains(rn,n.text))return n;throw new s("Invalid delimiter: '"+(n?n.text:JSON.stringify(e))+"' after '"+t.funcName+"'",e)}function an(e){if(!e.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}Ke({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1},handler:(e,t)=>{const n=on(t[0],e);return{type:"delimsizing",mode:e.parser.mode,size:nn[e.funcName].size,mclass:nn[e.funcName].mclass,delim:n.text}},htmlBuilder:(e,t)=>"."===e.delim?Le.makeSpan([e.mclass]):$t(e.delim,e.size,t,e.mode,[e.mclass]),mathmlBuilder:e=>{const t=[];"."!==e.delim&&t.push(dt(e.delim,e.mode));const n=new pt.MathNode("mo",t);return"mopen"===e.mclass||"mclose"===e.mclass?n.setAttribute("fence","true"):n.setAttribute("fence","false"),n}}),Ke({type:"leftright-right",names:["\\right"],props:{numArgs:1},handler:(e,t)=>{const n=e.parser.gullet.macros.get("\\current@color");if(n&&"string"!=typeof n)throw new s("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:e.parser.mode,delim:on(t[0],e).text,color:n}}}),Ke({type:"leftright",names:["\\left"],props:{numArgs:1},handler:(e,t)=>{const n=on(t[0],e),r=e.parser;++r.leftrightDepth;const o=r.parseExpression(!1);--r.leftrightDepth,r.expect("\\right",!1);const i=Ne(r.parseFunction(),"leftright-right");return{type:"leftright",mode:r.mode,body:o,left:n.text,right:i.delim,rightColor:i.color}},htmlBuilder:(e,t)=>{an(e);const n=nt(e.body,t,!0,["mopen","mclose"]);let r,o,i=0,a=0,l=!1;for(let e=0;e{an(e);const n=yt(e.body,t);if("."!==e.left){const t=new pt.MathNode("mo",[dt(e.left,e.mode)]);t.setAttribute("fence","true"),n.unshift(t)}if("."!==e.right){const t=new pt.MathNode("mo",[dt(e.right,e.mode)]);t.setAttribute("fence","true"),e.rightColor&&t.setAttribute("mathcolor",e.rightColor),n.push(t)}return mt(n)}}),Ke({type:"middle",names:["\\middle"],props:{numArgs:1},handler:(e,t)=>{const n=on(t[0],e);if(!e.parser.leftrightDepth)throw new s("\\middle without preceding \\left",n);return{type:"middle",mode:e.parser.mode,delim:n.text}},htmlBuilder:(e,t)=>{let n;if("."===e.delim)n=at(t,[]);else{n=$t(e.delim,1,t,e.mode,[]);const r={delim:e.delim,options:t};n.isMiddle=r}return n},mathmlBuilder:(e,t)=>{const n="\\vert"===e.delim||"|"===e.delim?dt("|","text"):dt(e.delim,e.mode),r=new pt.MathNode("mo",[n]);return r.setAttribute("fence","true"),r.setAttribute("lspace","0.05em"),r.setAttribute("rspace","0.05em"),r}});const ln=(e,t)=>{const n=Le.wrapFragment(lt(e.body,t),t),r=e.label.substr(1),o=t.sizeMultiplier;let i,a=0;const l=d.isCharacterBox(e.body);if("sout"===r)i=Le.makeSpan(["stretchy","sout"]),i.height=t.fontMetrics().defaultRuleThickness/o,a=-.5*t.fontMetrics().xHeight;else{/cancel/.test(r)?l||n.classes.push("cancel-pad"):n.classes.push("boxpad");let o=0,c=0;/box/.test(r)?(c=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness),o=t.fontMetrics().fboxsep+("colorbox"===r?0:c)):o=l?.2:0,i=Ot(n,r,o,t),/fbox|boxed|fcolorbox/.test(r)&&(i.style.borderStyle="solid",i.style.borderWidth=c+"em"),a=n.depth+o,e.backgroundColor&&(i.style.backgroundColor=e.backgroundColor,e.borderColor&&(i.style.borderColor=e.borderColor))}let c;return c=e.backgroundColor?Le.makeVList({positionType:"individualShift",children:[{type:"elem",elem:i,shift:a},{type:"elem",elem:n,shift:0}]},t):Le.makeVList({positionType:"individualShift",children:[{type:"elem",elem:n,shift:0},{type:"elem",elem:i,shift:a,wrapperClasses:/cancel/.test(r)?["svg-align"]:[]}]},t),/cancel/.test(r)&&(c.height=n.height,c.depth=n.depth),/cancel/.test(r)&&!l?Le.makeSpan(["mord","cancel-lap"],[c],t):Le.makeSpan(["mord"],[c],t)},cn=(e,t)=>{let n=0;const r=new pt.MathNode(e.label.indexOf("colorbox")>-1?"mpadded":"menclose",[bt(e.body,t)]);switch(e.label){case"\\cancel":r.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":r.setAttribute("notation","downdiagonalstrike");break;case"\\sout":r.setAttribute("notation","horizontalstrike");break;case"\\fbox":r.setAttribute("notation","box");break;case"\\fcolorbox":case"\\colorbox":if(n=t.fontMetrics().fboxsep*t.fontMetrics().ptPerEm,r.setAttribute("width",`+${2*n}pt`),r.setAttribute("height",`+${2*n}pt`),r.setAttribute("lspace",n+"pt"),r.setAttribute("voffset",n+"pt"),"\\fcolorbox"===e.label){const n=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness);r.setAttribute("style","border: "+n+"em solid "+String(e.borderColor))}break;case"\\xcancel":r.setAttribute("notation","updiagonalstrike downdiagonalstrike")}return e.backgroundColor&&r.setAttribute("mathbackground",e.backgroundColor),r};Ke({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,greediness:3,argTypes:["color","text"]},handler(e,t,n){let r=e.parser,o=e.funcName;const i=Ne(t[0],"color-token").color,a=t[1];return{type:"enclose",mode:r.mode,label:o,backgroundColor:i,body:a}},htmlBuilder:ln,mathmlBuilder:cn}),Ke({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,greediness:3,argTypes:["color","color","text"]},handler(e,t,n){let r=e.parser,o=e.funcName;const i=Ne(t[0],"color-token").color,a=Ne(t[1],"color-token").color,l=t[2];return{type:"enclose",mode:r.mode,label:o,backgroundColor:a,borderColor:i,body:l}},htmlBuilder:ln,mathmlBuilder:cn}),Ke({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler:(e,t)=>({type:"enclose",mode:e.parser.mode,label:"\\fbox",body:t[0]})}),Ke({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout"],props:{numArgs:1},handler(e,t,n){let r=e.parser,o=e.funcName;const i=t[0];return{type:"enclose",mode:r.mode,label:o,body:i}},htmlBuilder:ln,mathmlBuilder:cn});const sn={};function un(e){let t=e.type,n=e.names,r=e.props,o=e.handler,i=e.htmlBuilder,a=e.mathmlBuilder;const l={type:t,numArgs:r.numArgs||0,greediness:1,allowedInText:!1,numOptionalArgs:0,handler:o};for(let e=0;e0&&(b+=.25),c.push({pos:b,isDashed:e[t]})}for(w(i[0]),n=0;n0&&(h+=g,s=a)continue;(r>0||e.hskipBeforeAndAfter)&&(i=d.deflt(c.pregap,h),0!==i&&(O=Le.makeSpan(["arraycolsep"],[]),O.style.width=i+"em",k.push(O)));let p=[];for(n=0;n0){const e=Le.makeLineSpan("hline",t,u),n=Le.makeLineSpan("hdashline",t,u),r=[{type:"elem",elem:l,shift:0}];for(;c.length>0;){const t=c.pop(),o=t.pos-x;t.isDashed?r.push({type:"elem",elem:n,shift:o}):r.push({type:"elem",elem:e,shift:o})}l=Le.makeVList({positionType:"individualShift",children:r},t)}return Le.makeSpan(["mord"],[l],t)},mn={c:"center ",l:"left ",r:"right "},vn=function(e,t){let n=new pt.MathNode("mtable",e.body.map((function(e){return new pt.MathNode("mtr",e.map((function(e){return new pt.MathNode("mtd",[bt(e,t)])})))})));const r=.5===e.arraystretch?.1:.16+e.arraystretch-1+(e.addJot?.09:0);n.setAttribute("rowspacing",r+"em");let o="",i="";if(e.cols){const t=e.cols;let r="",a=!1,l=0,c=t.length;"separator"===t[0].type&&(o+="top ",l=1),"separator"===t[t.length-1].type&&(o+="bottom ",c-=1);for(let e=l;e0?"left ":"",o+=l[l.length-1].length>0?"right ":"";for(let e=1;e0&&c&&(r=1),n[e]={type:"align",align:t,pregap:r,postgap:0}}return r.colSeparationType=c?"align":"alignat",r};un({type:"array",names:["array","darray"],props:{numArgs:1},handler(e,t){const n={cols:(Ve(t[0])?[t[0]]:Ne(t[0],"ordgroup").body).map((function(e){const t=Ie(e).text;if(-1!=="lcr".indexOf(t))return{type:"align",align:t};if("|"===t)return{type:"separator",separator:"|"};if(":"===t)return{type:"separator",separator:":"};throw new s("Unknown column alignment: "+t,e)})),hskipBeforeAndAfter:!0};return hn(e.parser,n,pn(e.envName))},htmlBuilder:dn,mathmlBuilder:vn}),un({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix"],props:{numArgs:0},handler(e){const t={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[e.envName],n=hn(e.parser,{hskipBeforeAndAfter:!1},pn(e.envName));return t?{type:"leftright",mode:e.mode,body:[n],left:t[0],right:t[1],rightColor:void 0}:n},htmlBuilder:dn,mathmlBuilder:vn}),un({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(e){const t=hn(e.parser,{arraystretch:.5},"script");return t.colSeparationType="small",t},htmlBuilder:dn,mathmlBuilder:vn}),un({type:"array",names:["subarray"],props:{numArgs:1},handler(e,t){const n=(Ve(t[0])?[t[0]]:Ne(t[0],"ordgroup").body).map((function(e){const t=Ie(e).text;if(-1!=="lc".indexOf(t))return{type:"align",align:t};throw new s("Unknown column alignment: "+t,e)}));if(n.length>1)throw new s("{subarray} can contain only one column");let r={cols:n,hskipBeforeAndAfter:!1,arraystretch:.5};if(r=hn(e.parser,r,"script"),r.body[0].length>1)throw new s("{subarray} can contain only one column");return r},htmlBuilder:dn,mathmlBuilder:vn}),un({type:"array",names:["cases","dcases"],props:{numArgs:0},handler(e){const t=hn(e.parser,{arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},pn(e.envName));return{type:"leftright",mode:e.mode,body:[t],left:"\\{",right:".",rightColor:void 0}},htmlBuilder:dn,mathmlBuilder:vn}),un({type:"array",names:["aligned"],props:{numArgs:0},handler:yn,htmlBuilder:dn,mathmlBuilder:vn}),un({type:"array",names:["gathered"],props:{numArgs:0},handler:e=>hn(e.parser,{cols:[{type:"align",align:"c"}],addJot:!0},"display"),htmlBuilder:dn,mathmlBuilder:vn}),un({type:"array",names:["alignedat"],props:{numArgs:1},handler:yn,htmlBuilder:dn,mathmlBuilder:vn}),Ke({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(e,t){throw new s(e.funcName+" valid only within array environment")}});const gn=sn;Ke({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler(e,t){let n=e.parser,r=e.funcName;const o=t[0];if("ordgroup"!==o.type)throw new s("Invalid environment name",o);let i="";for(let e=0;e{const t="ordgroup"===e.type&&e.body.length?e.body[0]:e;return"atom"!==t.type||"bin"!==t.family&&"rel"!==t.family?"mord":"m"+t.family};Ke({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler:(e,t)=>({type:"mclass",mode:e.parser.mode,mclass:_n(t[0]),body:[t[1]],isCharacterBox:d.isCharacterBox(t[1])})}),Ke({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(e,t){let n=e.parser,r=e.funcName;const o=t[1],i=t[0];let a;a="\\stackrel"!==r?_n(o):"mrel";const l={type:"op",mode:o.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:"\\stackrel"!==r,body:Je(o)},c={type:"supsub",mode:i.mode,base:l,sup:"\\underset"===r?null:i,sub:"\\underset"===r?i:null};return{type:"mclass",mode:n.mode,mclass:a,body:[c],isCharacterBox:d.isCharacterBox(c)}},htmlBuilder:wn,mathmlBuilder:xn});const kn=(e,t)=>{const n=e.font,r=t.withFont(n);return lt(e.body,r)},Sn=(e,t)=>{const n=e.font,r=t.withFont(n);return bt(e.body,r)},On={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};Ke({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,greediness:2},handler:(e,t)=>{let n=e.parser,r=e.funcName;const o=t[0];let i=r;return i in On&&(i=On[i]),{type:"font",mode:n.mode,font:i.slice(1),body:o}},htmlBuilder:kn,mathmlBuilder:Sn}),Ke({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1,greediness:2},handler:(e,t)=>{let n=e.parser;const r=t[0],o=d.isCharacterBox(r);return{type:"mclass",mode:n.mode,mclass:_n(r),body:[{type:"font",mode:n.mode,font:"boldsymbol",body:r}],isCharacterBox:o}}}),Ke({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it"],props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{let n=e.parser,r=e.funcName,o=e.breakOnTokenText;const i=n.mode,a=n.parseExpression(!0,o);return{type:"font",mode:i,font:"math"+r.slice(1),body:{type:"ordgroup",mode:n.mode,body:a}}},htmlBuilder:kn,mathmlBuilder:Sn});const Mn=(e,t)=>{let n=t;return"display"===e?n=n.id>=S.SCRIPT.id?n.text():S.DISPLAY:"text"===e&&n.size===S.DISPLAY.size?n=S.TEXT:"script"===e?n=S.SCRIPT:"scriptscript"===e&&(n=S.SCRIPTSCRIPT),n},Tn=(e,t)=>{const n=Mn(e.size,t.style),r=n.fracNum(),o=n.fracDen();let i;i=t.havingStyle(r);const a=lt(e.numer,i,t);if(e.continued){const e=8.5/t.fontMetrics().ptPerEm,n=3.5/t.fontMetrics().ptPerEm;a.height=a.height0?3*u:7*u,p=t.fontMetrics().denom1):(s>0?(f=t.fontMetrics().num2,h=u):(f=t.fontMetrics().num3,h=3*u),p=t.fontMetrics().denom2),c){const e=t.fontMetrics().axisHeight;f-a.depth-(e+.5*s){let n=new pt.MathNode("mfrac",[bt(e.numer,t),bt(e.denom,t)]);if(e.hasBarLine){if(e.barSize){const r=_e(e.barSize,t);n.setAttribute("linethickness",r+"em")}}else n.setAttribute("linethickness","0px");const r=Mn(e.size,t.style);if(r.size!==t.style.size){n=new pt.MathNode("mstyle",[n]);const e=r.size===S.DISPLAY.size?"true":"false";n.setAttribute("displaystyle",e),n.setAttribute("scriptlevel","0")}if(null!=e.leftDelim||null!=e.rightDelim){const t=[];if(null!=e.leftDelim){const n=new pt.MathNode("mo",[new pt.TextNode(e.leftDelim.replace("\\",""))]);n.setAttribute("fence","true"),t.push(n)}if(t.push(n),null!=e.rightDelim){const n=new pt.MathNode("mo",[new pt.TextNode(e.rightDelim.replace("\\",""))]);n.setAttribute("fence","true"),t.push(n)}return mt(t)}return n};Ke({type:"genfrac",names:["\\cfrac","\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,greediness:2},handler:(e,t)=>{let n=e.parser,r=e.funcName;const o=t[0],i=t[1];let a,l=null,c=null,s="auto";switch(r){case"\\cfrac":case"\\dfrac":case"\\frac":case"\\tfrac":a=!0;break;case"\\\\atopfrac":a=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":a=!1,l="(",c=")";break;case"\\\\bracefrac":a=!1,l="\\{",c="\\}";break;case"\\\\brackfrac":a=!1,l="[",c="]";break;default:throw new Error("Unrecognized genfrac command")}switch(r){case"\\cfrac":case"\\dfrac":case"\\dbinom":s="display";break;case"\\tfrac":case"\\tbinom":s="text"}return{type:"genfrac",mode:n.mode,continued:"\\cfrac"===r,numer:o,denom:i,hasBarLine:a,leftDelim:l,rightDelim:c,size:s,barSize:null}},htmlBuilder:Tn,mathmlBuilder:En}),Ke({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler(e){let t,n=e.parser,r=e.funcName,o=e.token;switch(r){case"\\over":t="\\frac";break;case"\\choose":t="\\binom";break;case"\\atop":t="\\\\atopfrac";break;case"\\brace":t="\\\\bracefrac";break;case"\\brack":t="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:n.mode,replaceWith:t,token:o}}});const zn=["display","text","script","scriptscript"],Cn=function(e){let t=null;return e.length>0&&(t=e,t="."===t?null:t),t};Ke({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,greediness:6,argTypes:["math","math","size","text","math","math"]},handler(e,t){let n=e.parser;const r=t[4],o=t[5];let i=He(t[0],"atom");i&&(i=Re(t[0],"open"));const a=i?Cn(i.text):null;let l=He(t[1],"atom");l&&(l=Re(t[1],"close"));const c=l?Cn(l.text):null,s=Ne(t[2],"size");let u,f=null;s.isBlank?u=!0:(f=s.value,u=f.number>0);let h="auto",p=He(t[3],"ordgroup");if(p){if(p.body.length>0){const e=Ne(p.body[0],"textord");h=zn[Number(e.text)]}}else p=Ne(t[3],"textord"),h=zn[Number(p.text)];return{type:"genfrac",mode:n.mode,numer:r,denom:o,continued:!1,hasBarLine:u,barSize:f,leftDelim:a,rightDelim:c,size:h}},htmlBuilder:Tn,mathmlBuilder:En}),Ke({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler(e,t){let n=e.parser,r=(e.funcName,e.token);return{type:"infix",mode:n.mode,replaceWith:"\\\\abovefrac",size:Ne(t[0],"size").value,token:r}}}),Ke({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:(e,t)=>{let n=e.parser;e.funcName;const r=t[0],o=function(e){if(!e)throw new Error("Expected non-null, but got "+String(e));return e}(Ne(t[1],"infix").size),i=t[2],a=o.number>0;return{type:"genfrac",mode:n.mode,numer:r,denom:i,continued:!1,hasBarLine:a,barSize:o,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:Tn,mathmlBuilder:En});const Pn=(e,t)=>{const n=t.style;let r,o;const i=He(e,"supsub");i?(r=i.sup?lt(i.sup,t.havingStyle(n.sup()),t):lt(i.sub,t.havingStyle(n.sub()),t),o=Ne(i.base,"horizBrace")):o=Ne(e,"horizBrace");const a=lt(o.base,t.havingBaseStyle(S.DISPLAY)),l=Tt(o,t);let c;if(o.isOver?(c=Le.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"kern",size:.1},{type:"elem",elem:l}]},t),c.children[0].children[0].children[1].classes.push("svg-align")):(c=Le.makeVList({positionType:"bottom",positionData:a.depth+.1+l.height,children:[{type:"elem",elem:l},{type:"kern",size:.1},{type:"elem",elem:a}]},t),c.children[0].children[0].children[0].classes.push("svg-align")),r){const e=Le.makeSpan(["mord",o.isOver?"mover":"munder"],[c],t);c=o.isOver?Le.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:e},{type:"kern",size:.2},{type:"elem",elem:r}]},t):Le.makeVList({positionType:"bottom",positionData:e.depth+.2+r.height+r.depth,children:[{type:"elem",elem:r},{type:"kern",size:.2},{type:"elem",elem:e}]},t)}return Le.makeSpan(["mord",o.isOver?"mover":"munder"],[c],t)};Ke({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler(e,t){let n=e.parser,r=e.funcName;return{type:"horizBrace",mode:n.mode,label:r,isOver:/^\\over/.test(r),base:t[0]}},htmlBuilder:Pn,mathmlBuilder:(e,t)=>{const n=Mt(e.label);return new pt.MathNode(e.isOver?"mover":"munder",[bt(e.base,t),n])}}),Ke({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(e,t)=>{let n=e.parser;const r=t[1],o=Ne(t[0],"url").url;return n.settings.isTrusted({command:"\\href",url:o})?{type:"href",mode:n.mode,href:o,body:Je(r)}:n.formatUnsupportedCmd("\\href")},htmlBuilder:(e,t)=>{const n=nt(e.body,t,!1);return Le.makeAnchor(e.href,[],n,t)},mathmlBuilder:(e,t)=>{let n=gt(e.body,t);return n instanceof ft||(n=new ft("mrow",[n])),n.setAttribute("href",e.href),n}}),Ke({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:(e,t)=>{let n=e.parser;const r=Ne(t[0],"url").url;if(!n.settings.isTrusted({command:"\\url",url:r}))return n.formatUnsupportedCmd("\\url");const o=[];for(let e=0;e({type:"htmlmathml",mode:e.parser.mode,html:Je(t[0]),mathml:Je(t[1])}),htmlBuilder:(e,t)=>{const n=nt(e.html,t,!1);return Le.makeFragment(n)},mathmlBuilder:(e,t)=>gt(e.mathml,t)});const An=function(e){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(e))return{number:+e,unit:"bp"};{const t=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(e);if(!t)throw new s("Invalid size: '"+e+"' in \\includegraphics");const n={number:+(t[1]+t[2]),unit:t[3]};if(!xe(n))throw new s("Invalid unit: '"+n.unit+"' in \\includegraphics.");return n}};Ke({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:(e,t,n)=>{let r=e.parser,o={number:0,unit:"em"},i={number:.9,unit:"em"},a={number:0,unit:"em"},l="";if(n[0]){const e=Ne(n[0],"raw").string.split(",");for(let t=0;t{const n=_e(e.height,t);let r=0;e.totalheight.number>0&&(r=_e(e.totalheight,t)-n,r=Number(r.toFixed(2)));let o=0;e.width.number>0&&(o=_e(e.width,t));const i={height:n+r+"em"};o>0&&(i.width=o+"em"),r>0&&(i.verticalAlign=-r+"em");const a=new H(e.src,e.alt,i);return a.height=n,a.depth=r,a},mathmlBuilder:(e,t)=>{const n=new pt.MathNode("mglyph",[]);n.setAttribute("alt",e.alt);const r=_e(e.height,t);let o=0;if(e.totalheight.number>0&&(o=_e(e.totalheight,t)-r,o=o.toFixed(2),n.setAttribute("valign","-"+o+"em")),n.setAttribute("height",r+o+"em"),e.width.number>0){const r=_e(e.width,t);n.setAttribute("width",r+"em")}return n.setAttribute("src",e.src),n}}),Ke({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],allowedInText:!0},handler(e,t){let n=e.parser,r=e.funcName;const o=Ne(t[0],"size");if(n.settings.strict){const e="m"===r[1],t="mu"===o.value.unit;e?(t||n.settings.reportNonstrict("mathVsTextUnits",`LaTeX's ${r} supports only mu units, not ${o.value.unit} units`),"math"!==n.mode&&n.settings.reportNonstrict("mathVsTextUnits",`LaTeX's ${r} works only in math mode`)):t&&n.settings.reportNonstrict("mathVsTextUnits",`LaTeX's ${r} doesn't support mu units`)}return{type:"kern",mode:n.mode,dimension:o.value}},htmlBuilder:(e,t)=>Le.makeGlue(e.dimension,t),mathmlBuilder(e,t){const n=_e(e.dimension,t);return new pt.SpaceNode(n)}}),Ke({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{let n=e.parser,r=e.funcName;const o=t[0];return{type:"lap",mode:n.mode,alignment:r.slice(5),body:o}},htmlBuilder:(e,t)=>{let n;"clap"===e.alignment?(n=Le.makeSpan([],[lt(e.body,t)]),n=Le.makeSpan(["inner"],[n],t)):n=Le.makeSpan(["inner"],[lt(e.body,t)]);const r=Le.makeSpan(["fix"],[]);let o=Le.makeSpan([e.alignment],[n,r],t);const i=Le.makeSpan(["strut"]);return i.style.height=o.height+o.depth+"em",i.style.verticalAlign=-o.depth+"em",o.children.unshift(i),o=Le.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:o}]},t),Le.makeSpan(["mord"],[o],t)},mathmlBuilder:(e,t)=>{const n=new pt.MathNode("mpadded",[bt(e.body,t)]);if("rlap"!==e.alignment){const t="llap"===e.alignment?"-1":"-0.5";n.setAttribute("lspace",t+"width")}return n.setAttribute("width","0px"),n}}),Ke({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){let n=e.funcName,r=e.parser;const o=r.mode;r.switchMode("math");const i="\\("===n?"\\)":"$",a=r.parseExpression(!1,i);return r.expect(i),r.switchMode(o),{type:"styling",mode:r.mode,style:"text",body:a}}}),Ke({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){throw new s("Mismatched "+e.funcName)}});const jn=(e,t)=>{switch(t.style.size){case S.DISPLAY.size:return e.display;case S.TEXT.size:return e.text;case S.SCRIPT.size:return e.script;case S.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}};Ke({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4},handler:(e,t)=>({type:"mathchoice",mode:e.parser.mode,display:Je(t[0]),text:Je(t[1]),script:Je(t[2]),scriptscript:Je(t[3])}),htmlBuilder:(e,t)=>{const n=jn(e,t),r=nt(n,t,!1);return Le.makeFragment(r)},mathmlBuilder:(e,t)=>{const n=jn(e,t);return gt(n,t)}});const Ln=(e,t,n,r,o,i,a)=>{let l,c,s;if(e=Le.makeSpan([],[e]),t){const e=lt(t,r.havingStyle(o.sup()),r);c={elem:e,kern:Math.max(r.fontMetrics().bigOpSpacing1,r.fontMetrics().bigOpSpacing3-e.depth)}}if(n){const e=lt(n,r.havingStyle(o.sub()),r);l={elem:e,kern:Math.max(r.fontMetrics().bigOpSpacing2,r.fontMetrics().bigOpSpacing4-e.height)}}if(c&&l){const t=r.fontMetrics().bigOpSpacing5+l.elem.height+l.elem.depth+l.kern+e.depth+a;s=Le.makeVList({positionType:"bottom",positionData:t,children:[{type:"kern",size:r.fontMetrics().bigOpSpacing5},{type:"elem",elem:l.elem,marginLeft:-i+"em"},{type:"kern",size:l.kern},{type:"elem",elem:e},{type:"kern",size:c.kern},{type:"elem",elem:c.elem,marginLeft:i+"em"},{type:"kern",size:r.fontMetrics().bigOpSpacing5}]},r)}else if(l){const t=e.height-a;s=Le.makeVList({positionType:"top",positionData:t,children:[{type:"kern",size:r.fontMetrics().bigOpSpacing5},{type:"elem",elem:l.elem,marginLeft:-i+"em"},{type:"kern",size:l.kern},{type:"elem",elem:e}]},r)}else{if(!c)return e;{const t=e.depth+a;s=Le.makeVList({positionType:"bottom",positionData:t,children:[{type:"elem",elem:e},{type:"kern",size:c.kern},{type:"elem",elem:c.elem,marginLeft:i+"em"},{type:"kern",size:r.fontMetrics().bigOpSpacing5}]},r)}}return Le.makeSpan(["mop","op-limits"],[s],r)},Nn=["\\smallint"],Hn=(e,t)=>{let n,r,o,i=!1;const a=He(e,"supsub");a?(n=a.sup,r=a.sub,o=Ne(a.base,"op"),i=!0):o=Ne(e,"op");const l=t.style;let c,s=!1;if(l.size===S.DISPLAY.size&&o.symbol&&!d.contains(Nn,o.name)&&(s=!0),o.symbol){const e=s?"Size2-Regular":"Size1-Regular";let n="";if("\\oiint"!==o.name&&"\\oiiint"!==o.name||(n=o.name.substr(1),o.name="oiint"===n?"\\iint":"\\iiint"),c=Le.makeSymbol(o.name,e,"math",t,["mop","op-symbol",s?"large-op":"small-op"]),n.length>0){const e=c.italic,r=Le.staticSvg(n+"Size"+(s?"2":"1"),t);c=Le.makeVList({positionType:"individualShift",children:[{type:"elem",elem:c,shift:0},{type:"elem",elem:r,shift:s?.08:0}]},t),o.name="\\"+n,c.classes.unshift("mop"),c.italic=e}}else if(o.body){const e=nt(o.body,t,!0);1===e.length&&e[0]instanceof I?(c=e[0],c.classes[0]="mop"):c=Le.makeSpan(["mop"],Le.tryCombineChars(e),t)}else{const e=[];for(let n=1;n{let n;if(e.symbol)n=new ft("mo",[dt(e.name,e.mode)]),d.contains(Nn,e.name)&&n.setAttribute("largeop","false");else if(e.body)n=new ft("mo",yt(e.body,t));else{n=new ft("mi",[new ht(e.name.slice(1))]);const t=new ft("mo",[dt("⁡","text")]);n=e.parentIsSupSub?new ft("mo",[n,t]):ut([n,t])}return n},In={"∏":"\\prod","∐":"\\coprod","∑":"\\sum","⋀":"\\bigwedge","⋁":"\\bigvee","⋂":"\\bigcap","⋃":"\\bigcup","⨀":"\\bigodot","⨁":"\\bigoplus","⨂":"\\bigotimes","⨄":"\\biguplus","⨆":"\\bigsqcup"};Ke({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","∏","∐","∑","⋀","⋁","⋂","⋃","⨀","⨁","⨂","⨄","⨆"],props:{numArgs:0},handler:(e,t)=>{let n=e.parser,r=e.funcName;return 1===r.length&&(r=In[r]),{type:"op",mode:n.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:r}},htmlBuilder:Hn,mathmlBuilder:Rn}),Ke({type:"op",names:["\\mathop"],props:{numArgs:1},handler:(e,t)=>{let n=e.parser;const r=t[0];return{type:"op",mode:n.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:Je(r)}},htmlBuilder:Hn,mathmlBuilder:Rn});const Vn={"∫":"\\int","∬":"\\iint","∭":"\\iiint","∮":"\\oint","∯":"\\oiint","∰":"\\oiiint"};Ke({type:"op",names:["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\tan","\\tanh","\\tg","\\th"],props:{numArgs:0},handler(e){let t=e.parser,n=e.funcName;return{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:n}},htmlBuilder:Hn,mathmlBuilder:Rn}),Ke({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler(e){let t=e.parser,n=e.funcName;return{type:"op",mode:t.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:n}},htmlBuilder:Hn,mathmlBuilder:Rn}),Ke({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","∫","∬","∭","∮","∯","∰"],props:{numArgs:0},handler(e){let t=e.parser,n=e.funcName;return 1===n.length&&(n=Vn[n]),{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:n}},htmlBuilder:Hn,mathmlBuilder:Rn});const Dn=(e,t)=>{let n,r,o,i=!1;const a=He(e,"supsub");let l;if(a?(n=a.sup,r=a.sub,o=Ne(a.base,"operatorname"),i=!0):o=Ne(e,"operatorname"),o.body.length>0){const e=o.body.map(e=>{const t=e.text;return"string"==typeof t?{type:"textord",mode:e.mode,text:t}:e}),n=nt(e,t.withFont("mathrm"),!0);for(let e=0;e{let n=e.parser,r=e.funcName;const o=t[0];return{type:"operatorname",mode:n.mode,body:Je(o),alwaysHandleSupSub:"\\operatorname*"===r,limits:!1,parentIsSupSub:!1}},htmlBuilder:Dn,mathmlBuilder:(e,t)=>{let n=yt(e.body,t.withFont("mathrm")),r=!0;for(let e=0;ee.toText()).join("");n=[new pt.TextNode(e)]}const o=new pt.MathNode("mi",n);o.setAttribute("mathvariant","normal");const i=new pt.MathNode("mo",[dt("⁡","text")]);return e.parentIsSupSub?new pt.MathNode("mo",[o,i]):pt.newDocumentFragment([o,i])}}),Xe({type:"ordgroup",htmlBuilder:(e,t)=>e.semisimple?Le.makeFragment(nt(e.body,t,!1)):Le.makeSpan(["mord"],nt(e.body,t,!0),t),mathmlBuilder:(e,t)=>gt(e.body,t,!0)}),Ke({type:"overline",names:["\\overline"],props:{numArgs:1},handler(e,t){let n=e.parser;const r=t[0];return{type:"overline",mode:n.mode,body:r}},htmlBuilder(e,t){const n=lt(e.body,t.havingCrampedStyle()),r=Le.makeLineSpan("overline-line",t),o=t.fontMetrics().defaultRuleThickness,i=Le.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n},{type:"kern",size:3*o},{type:"elem",elem:r},{type:"kern",size:o}]},t);return Le.makeSpan(["mord","overline"],[i],t)},mathmlBuilder(e,t){const n=new pt.MathNode("mo",[new pt.TextNode("‾")]);n.setAttribute("stretchy","true");const r=new pt.MathNode("mover",[bt(e.body,t),n]);return r.setAttribute("accent","true"),r}}),Ke({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{let n=e.parser;const r=t[0];return{type:"phantom",mode:n.mode,body:Je(r)}},htmlBuilder:(e,t)=>{const n=nt(e.body,t.withPhantom(),!1);return Le.makeFragment(n)},mathmlBuilder:(e,t)=>{const n=yt(e.body,t);return new pt.MathNode("mphantom",n)}}),Ke({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{let n=e.parser;const r=t[0];return{type:"hphantom",mode:n.mode,body:r}},htmlBuilder:(e,t)=>{let n=Le.makeSpan([],[lt(e.body,t.withPhantom())]);if(n.height=0,n.depth=0,n.children)for(let e=0;e{const n=yt(Je(e.body),t),r=new pt.MathNode("mphantom",n),o=new pt.MathNode("mpadded",[r]);return o.setAttribute("height","0px"),o.setAttribute("depth","0px"),o}}),Ke({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{let n=e.parser;const r=t[0];return{type:"vphantom",mode:n.mode,body:r}},htmlBuilder:(e,t)=>{const n=Le.makeSpan(["inner"],[lt(e.body,t.withPhantom())]),r=Le.makeSpan(["fix"],[]);return Le.makeSpan(["mord","rlap"],[n,r],t)},mathmlBuilder:(e,t)=>{const n=yt(Je(e.body),t),r=new pt.MathNode("mphantom",n),o=new pt.MathNode("mpadded",[r]);return o.setAttribute("width","0px"),o}}),Ke({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(e,t){let n=e.parser;const r=Ne(t[0],"size").value,o=t[1];return{type:"raisebox",mode:n.mode,dy:r,body:o}},htmlBuilder(e,t){const n=lt(e.body,t),r=_e(e.dy,t);return Le.makeVList({positionType:"shift",positionData:-r,children:[{type:"elem",elem:n}]},t)},mathmlBuilder(e,t){const n=new pt.MathNode("mpadded",[bt(e.body,t)]),r=e.dy.number+e.dy.unit;return n.setAttribute("voffset",r),n}}),Ke({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,argTypes:["size","size","size"]},handler(e,t,n){let r=e.parser;const o=n[0],i=Ne(t[0],"size"),a=Ne(t[1],"size");return{type:"rule",mode:r.mode,shift:o&&Ne(o,"size").value,width:i.value,height:a.value}},htmlBuilder(e,t){const n=Le.makeSpan(["mord","rule"],[],t),r=_e(e.width,t),o=_e(e.height,t),i=e.shift?_e(e.shift,t):0;return n.style.borderRightWidth=r+"em",n.style.borderTopWidth=o+"em",n.style.bottom=i+"em",n.width=r,n.height=o+i,n.depth=-i,n.maxFontSize=1.125*o*t.sizeMultiplier,n},mathmlBuilder(e,t){const n=_e(e.width,t),r=_e(e.height,t),o=e.shift?_e(e.shift,t):0,i=t.color&&t.getColor()||"black",a=new pt.MathNode("mspace");a.setAttribute("mathbackground",i),a.setAttribute("width",n+"em"),a.setAttribute("height",r+"em");const l=new pt.MathNode("mpadded",[a]);return o>=0?l.setAttribute("height","+"+o+"em"):(l.setAttribute("height",o+"em"),l.setAttribute("depth","+"+-o+"em")),l.setAttribute("voffset",o+"em"),l}});const qn=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"];Ke({type:"sizing",names:qn,props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{let n=e.breakOnTokenText,r=e.funcName,o=e.parser;const i=o.parseExpression(!1,n);return{type:"sizing",mode:o.mode,size:qn.indexOf(r)+1,body:i}},htmlBuilder:(e,t)=>{const n=t.havingSize(e.size);return Fn(e.body,n,t)},mathmlBuilder:(e,t)=>{const n=t.havingSize(e.size),r=yt(e.body,n),o=new pt.MathNode("mstyle",r);return o.setAttribute("mathsize",n.sizeMultiplier+"em"),o}}),Ke({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(e,t,n)=>{let r=e.parser,o=!1,i=!1;const a=n[0]&&Ne(n[0],"ordgroup");if(a){let e="";for(let t=0;t{const n=Le.makeSpan([],[lt(e.body,t)]);if(!e.smashHeight&&!e.smashDepth)return n;if(e.smashHeight&&(n.height=0,n.children))for(let e=0;e{const n=new pt.MathNode("mpadded",[bt(e.body,t)]);return e.smashHeight&&n.setAttribute("height","0px"),e.smashDepth&&n.setAttribute("depth","0px"),n}}),Ke({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,n){let r=e.parser;const o=n[0],i=t[0];return{type:"sqrt",mode:r.mode,body:i,index:o}},htmlBuilder(e,t){let n=lt(e.body,t.havingCrampedStyle());0===n.height&&(n.height=t.fontMetrics().xHeight),n=Le.wrapFragment(n,t);const r=t.fontMetrics().defaultRuleThickness;let o=r;t.style.idn.height+n.depth+i&&(i=(i+f-n.height-n.depth)/2);const h=c.height-n.height-i-s;n.style.paddingLeft=u+"em";const p=Le.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n,wrapperClasses:["svg-align"]},{type:"kern",size:-(n.height+h)},{type:"elem",elem:c},{type:"kern",size:s}]},t);if(e.index){const n=t.havingStyle(S.SCRIPTSCRIPT),r=lt(e.index,n,t),o=.6*(p.height-p.depth),i=Le.makeVList({positionType:"shift",positionData:-o,children:[{type:"elem",elem:r}]},t),a=Le.makeSpan(["root"],[i]);return Le.makeSpan(["mord","sqrt"],[a,p],t)}return Le.makeSpan(["mord","sqrt"],[p],t)},mathmlBuilder(e,t){const n=e.body,r=e.index;return r?new pt.MathNode("mroot",[bt(n,t),bt(r,t)]):new pt.MathNode("msqrt",[bt(n,t)])}});const Bn={display:S.DISPLAY,text:S.TEXT,script:S.SCRIPT,scriptscript:S.SCRIPTSCRIPT};Ke({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0},handler(e,t){let n=e.breakOnTokenText,r=e.funcName,o=e.parser;const i=o.parseExpression(!0,n),a=r.slice(1,r.length-5);return{type:"styling",mode:o.mode,style:a,body:i}},htmlBuilder(e,t){const n=Bn[e.style],r=t.havingStyle(n).withFont("");return Fn(e.body,r,t)},mathmlBuilder(e,t){const n=Bn[e.style],r=t.havingStyle(n),o=yt(e.body,r),i=new pt.MathNode("mstyle",o),a={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]}[e.style];return i.setAttribute("scriptlevel",a[0]),i.setAttribute("displaystyle",a[1]),i}}),Xe({type:"supsub",htmlBuilder(e,t){const n=function(e,t){const n=e.base;return n?"op"===n.type?n.limits&&(t.style.size===S.DISPLAY.size||n.alwaysHandleSupSub)?Hn:null:"operatorname"===n.type?n.alwaysHandleSupSub&&(t.style.size===S.DISPLAY.size||n.limits)?Dn:null:"accent"===n.type?d.isCharacterBox(n.base)?Et:null:"horizBrace"===n.type&&!e.sub===n.isOver?Pn:null:null}(e,t);if(n)return n(e,t);const r=e.base,o=e.sup,i=e.sub,a=lt(r,t);let l,c;const s=t.fontMetrics();let u=0,f=0;const h=r&&d.isCharacterBox(r);if(o){const e=t.havingStyle(t.style.sup());l=lt(o,e,t),h||(u=a.height-e.fontMetrics().supDrop*e.sizeMultiplier/t.sizeMultiplier)}if(i){const e=t.havingStyle(t.style.sub());c=lt(i,e,t),h||(f=a.depth+e.fontMetrics().subDrop*e.sizeMultiplier/t.sizeMultiplier)}let p;p=t.style===S.DISPLAY?s.sup1:t.style.cramped?s.sup3:s.sup2;const m=t.sizeMultiplier,v=.5/s.ptPerEm/m+"em";let y,g=null;if(c){const t=e.base&&"op"===e.base.type&&e.base.name&&("\\oiint"===e.base.name||"\\oiiint"===e.base.name);(a instanceof I||t)&&(g=-a.italic+"em")}if(l&&c){u=Math.max(u,p,l.depth+.25*s.xHeight),f=Math.max(f,s.sub2);const e=4*s.defaultRuleThickness;if(u-l.depth-(c.height-f)0&&(u+=t,f-=t)}const n=[{type:"elem",elem:c,shift:f,marginRight:v,marginLeft:g},{type:"elem",elem:l,shift:-u,marginRight:v}];y=Le.makeVList({positionType:"individualShift",children:n},t)}else if(c){f=Math.max(f,s.sub1,c.height-.8*s.xHeight);const e=[{type:"elem",elem:c,marginLeft:g,marginRight:v}];y=Le.makeVList({positionType:"shift",positionData:f,children:e},t)}else{if(!l)throw new Error("supsub must have either sup or sub.");u=Math.max(u,p,l.depth+.25*s.xHeight),y=Le.makeVList({positionType:"shift",positionData:-u,children:[{type:"elem",elem:l,marginRight:v}]},t)}const b=it(a,"right")||"mord";return Le.makeSpan([b],[a,Le.makeSpan(["msupsub"],[y])],t)},mathmlBuilder(e,t){let n,r,o=!1;const i=He(e.base,"horizBrace");i&&(r=!!e.sup,r===i.isOver&&(o=!0,n=i.isOver)),!e.base||"op"!==e.base.type&&"operatorname"!==e.base.type||(e.base.parentIsSupSub=!0);const a=[bt(e.base,t)];let l;if(e.sub&&a.push(bt(e.sub,t)),e.sup&&a.push(bt(e.sup,t)),o)l=n?"mover":"munder";else if(e.sub)if(e.sup){const n=e.base;l=n&&"op"===n.type&&n.limits&&t.style===S.DISPLAY||n&&"operatorname"===n.type&&n.alwaysHandleSupSub&&(t.style===S.DISPLAY||n.limits)?"munderover":"msubsup"}else{const n=e.base;l=n&&"op"===n.type&&n.limits&&(t.style===S.DISPLAY||n.alwaysHandleSupSub)||n&&"operatorname"===n.type&&n.alwaysHandleSupSub&&(n.limits||t.style===S.DISPLAY)?"munder":"msub"}else{const n=e.base;l=n&&"op"===n.type&&n.limits&&(t.style===S.DISPLAY||n.alwaysHandleSupSub)||n&&"operatorname"===n.type&&n.alwaysHandleSupSub&&(n.limits||t.style===S.DISPLAY)?"mover":"msup"}return new pt.MathNode(l,a)}}),Xe({type:"atom",htmlBuilder:(e,t)=>Le.mathsym(e.text,e.mode,t,["m"+e.family]),mathmlBuilder(e,t){const n=new pt.MathNode("mo",[dt(e.text,e.mode)]);if("bin"===e.family){const r=vt(e,t);"bold-italic"===r&&n.setAttribute("mathvariant",r)}else"punct"===e.family?n.setAttribute("separator","true"):"open"!==e.family&&"close"!==e.family||n.setAttribute("stretchy","false");return n}});const Un={mi:"italic",mn:"normal",mtext:"normal"};Xe({type:"mathord",htmlBuilder:(e,t)=>Le.makeOrd(e,t,"mathord"),mathmlBuilder(e,t){const n=new pt.MathNode("mi",[dt(e.text,e.mode,t)]),r=vt(e,t)||"italic";return r!==Un[n.type]&&n.setAttribute("mathvariant",r),n}}),Xe({type:"textord",htmlBuilder:(e,t)=>Le.makeOrd(e,t,"textord"),mathmlBuilder(e,t){const n=dt(e.text,e.mode,t),r=vt(e,t)||"normal";let o;return o="text"===e.mode?new pt.MathNode("mtext",[n]):/[0-9]/.test(e.text)?new pt.MathNode("mn",[n]):"\\prime"===e.text?new pt.MathNode("mo",[n]):new pt.MathNode("mi",[n]),r!==Un[o.type]&&o.setAttribute("mathvariant",r),o}});const Wn={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},Yn={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};Xe({type:"spacing",htmlBuilder(e,t){if(Yn.hasOwnProperty(e.text)){const n=Yn[e.text].className||"";if("text"===e.mode){const r=Le.makeOrd(e,t,"textord");return r.classes.push(n),r}return Le.makeSpan(["mspace",n],[Le.mathsym(e.text,e.mode,t)],t)}if(Wn.hasOwnProperty(e.text))return Le.makeSpan(["mspace",Wn[e.text]],[],t);throw new s(`Unknown type of space "${e.text}"`)},mathmlBuilder(e,t){let n;if(!Yn.hasOwnProperty(e.text)){if(Wn.hasOwnProperty(e.text))return new pt.MathNode("mspace");throw new s(`Unknown type of space "${e.text}"`)}return n=new pt.MathNode("mtext",[new pt.TextNode(" ")]),n}});const Gn=()=>{const e=new pt.MathNode("mtd",[]);return e.setAttribute("width","50%"),e};Xe({type:"tag",mathmlBuilder(e,t){const n=new pt.MathNode("mtable",[new pt.MathNode("mtr",[Gn(),new pt.MathNode("mtd",[gt(e.body,t)]),Gn(),new pt.MathNode("mtd",[gt(e.tag,t)])])]);return n.setAttribute("width","100%"),n}});const Kn={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},Xn={"\\textbf":"textbf","\\textmd":"textmd"},Jn={"\\textit":"textit","\\textup":"textup"},Qn=(e,t)=>{const n=e.font;return n?Kn[n]?t.withTextFontFamily(Kn[n]):Xn[n]?t.withTextFontWeight(Xn[n]):t.withTextFontShape(Jn[n]):t};Ke({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup"],props:{numArgs:1,argTypes:["text"],greediness:2,allowedInText:!0},handler(e,t){let n=e.parser,r=e.funcName;const o=t[0];return{type:"text",mode:n.mode,body:Je(o),font:r}},htmlBuilder(e,t){const n=Qn(e,t),r=nt(e.body,n,!0);return Le.makeSpan(["mord","text"],Le.tryCombineChars(r),n)},mathmlBuilder(e,t){const n=Qn(e,t);return gt(e.body,n)}}),Ke({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>({type:"underline",mode:e.parser.mode,body:t[0]}),htmlBuilder(e,t){const n=lt(e.body,t),r=Le.makeLineSpan("underline-line",t),o=t.fontMetrics().defaultRuleThickness,i=Le.makeVList({positionType:"top",positionData:n.height,children:[{type:"kern",size:o},{type:"elem",elem:r},{type:"kern",size:3*o},{type:"elem",elem:n}]},t);return Le.makeSpan(["mord","underline"],[i],t)},mathmlBuilder(e,t){const n=new pt.MathNode("mo",[new pt.TextNode("‾")]);n.setAttribute("stretchy","true");const r=new pt.MathNode("munder",[bt(e.body,t),n]);return r.setAttribute("accentunder","true"),r}}),Ke({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(e,t,n){throw new s("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(e,t){const n=Zn(e),r=[],o=t.havingStyle(t.style.text());for(let t=0;te.body.replace(/ /g,e.star?"␣":" "),$n=We,er=new RegExp("^(\\\\[a-zA-Z@]+)[ \r\n\t]*$"),tr=new RegExp("[̀-ͯ]+$");class nr{constructor(e,t){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=e,this.settings=t,this.tokenRegex=new RegExp("([ \r\n\t]+)|([!-\\[\\]-‧‪-퟿豈-￿][̀-ͯ]*|[\ud800-\udbff][\udc00-\udfff][̀-ͯ]*|\\\\verb\\*([^]).*?\\3|\\\\verb([^*a-zA-Z]).*?\\4|\\\\operatorname\\*|\\\\[a-zA-Z@]+[ \r\n\t]*|\\\\[^\ud800-\udfff])","g"),this.catcodes={"%":14}}setCatcode(e,t){this.catcodes[e]=t}lex(){const e=this.input,t=this.tokenRegex.lastIndex;if(t===e.length)return new c("EOF",new l(this,t,t));const n=this.tokenRegex.exec(e);if(null===n||n.index!==t)throw new s(`Unexpected character: '${e[t]}'`,new c(e[t],new l(this,t,t+1)));let r=n[2]||" ";if(14===this.catcodes[r]){const t=e.indexOf("\n",this.tokenRegex.lastIndex);return-1===t?(this.tokenRegex.lastIndex=e.length,this.settings.reportNonstrict("commentAtEnd","% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")):this.tokenRegex.lastIndex=t+1,this.lex()}const o=r.match(er);return o&&(r=o[1]),new c(r,new l(this,t,this.tokenRegex.lastIndex))}}class rr{constructor(e,t){void 0===e&&(e={}),void 0===t&&(t={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=t,this.builtins=e,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(0===this.undefStack.length)throw new s("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");const e=this.undefStack.pop();for(const t in e)e.hasOwnProperty(t)&&(void 0===e[t]?delete this.current[t]:this.current[t]=e[t])}has(e){return this.current.hasOwnProperty(e)||this.builtins.hasOwnProperty(e)}get(e){return this.current.hasOwnProperty(e)?this.current[e]:this.builtins[e]}set(e,t,n){if(void 0===n&&(n=!1),n){for(let t=0;t0&&(this.undefStack[this.undefStack.length-1][e]=t)}else{const t=this.undefStack[this.undefStack.length-1];t&&!t.hasOwnProperty(e)&&(t[e]=this.current[e])}this.current[e]=t}}const or={};function ir(e,t){or[e]=t}ir("\\@firstoftwo",(function(e){return{tokens:e.consumeArgs(2)[0],numArgs:0}})),ir("\\@secondoftwo",(function(e){return{tokens:e.consumeArgs(2)[1],numArgs:0}})),ir("\\@ifnextchar",(function(e){const t=e.consumeArgs(3),n=e.future();return 1===t[0].length&&t[0][0].text===n.text?{tokens:t[1],numArgs:0}:{tokens:t[2],numArgs:0}})),ir("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}"),ir("\\TextOrMath",(function(e){const t=e.consumeArgs(2);return"text"===e.mode?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}}));const ar={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};ir("\\char",(function(e){let t,n=e.popToken(),r="";if("'"===n.text)t=8,n=e.popToken();else if('"'===n.text)t=16,n=e.popToken();else if("`"===n.text)if(n=e.popToken(),"\\"===n.text[0])r=n.text.charCodeAt(1);else{if("EOF"===n.text)throw new s("\\char` missing argument");r=n.text.charCodeAt(0)}else t=10;if(t){if(r=ar[n.text],null==r||r>=t)throw new s(`Invalid base-${t} digit ${n.text}`);let o;for(;null!=(o=ar[e.future().text])&&o{let n=e.consumeArgs(1)[0];if(1!==n.length)throw new s("\\gdef's first argument must be a macro name");const r=n[0].text;let o=0;for(n=e.consumeArgs(1)[0];1===n.length&&"#"===n[0].text;){if(n=e.consumeArgs(1)[0],1!==n.length)throw new s(`Invalid argument number length "${n.length}"`);if(!/^[1-9]$/.test(n[0].text))throw new s(`Invalid argument number "${n[0].text}"`);if(o++,parseInt(n[0].text)!==o)throw new s(`Argument number "${n[0].text}" out of order`);n=e.consumeArgs(1)[0]}return e.macros.set(r,{tokens:n,numArgs:o},t),""};ir("\\gdef",e=>lr(e,!0)),ir("\\def",e=>lr(e,!1)),ir("\\global",e=>{const t=e.consumeArgs(1)[0];if(1!==t.length)throw new s("Invalid command after \\global");const n=t[0].text;if("\\def"===n)return lr(e,!0);throw new s(`Invalid command '${n}' after \\global`)});const cr=(e,t,n)=>{let r=e.consumeArgs(1)[0];if(1!==r.length)throw new s("\\newcommand's first argument must be a macro name");const o=r[0].text,i=e.isDefined(o);if(i&&!t)throw new s(`\\newcommand{${o}} attempting to redefine `+o+"; use \\renewcommand");if(!i&&!n)throw new s(`\\renewcommand{${o}} when command ${o} does not yet exist; use \\newcommand`);let a=0;if(r=e.consumeArgs(1)[0],1===r.length&&"["===r[0].text){let t="",n=e.expandNextToken();for(;"]"!==n.text&&"EOF"!==n.text;)t+=n.text,n=e.expandNextToken();if(!t.match(/^\s*[0-9]+\s*$/))throw new s("Invalid number of arguments: "+t);a=parseInt(t),r=e.consumeArgs(1)[0]}return e.macros.set(o,{tokens:r,numArgs:a}),""};ir("\\newcommand",e=>cr(e,!1,!0)),ir("\\renewcommand",e=>cr(e,!0,!1)),ir("\\providecommand",e=>cr(e,!0,!0)),ir("\\bgroup","{"),ir("\\egroup","}"),ir("\\lq","`"),ir("\\rq","'"),ir("\\aa","\\r a"),ir("\\AA","\\r A"),ir("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`©}"),ir("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}"),ir("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}"),ir("ℬ","\\mathscr{B}"),ir("ℰ","\\mathscr{E}"),ir("ℱ","\\mathscr{F}"),ir("ℋ","\\mathscr{H}"),ir("ℐ","\\mathscr{I}"),ir("ℒ","\\mathscr{L}"),ir("ℳ","\\mathscr{M}"),ir("ℛ","\\mathscr{R}"),ir("ℭ","\\mathfrak{C}"),ir("ℌ","\\mathfrak{H}"),ir("ℨ","\\mathfrak{Z}"),ir("\\Bbbk","\\Bbb{k}"),ir("·","\\cdotp"),ir("\\llap","\\mathllap{\\textrm{#1}}"),ir("\\rlap","\\mathrlap{\\textrm{#1}}"),ir("\\clap","\\mathclap{\\textrm{#1}}"),ir("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}'),ir("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}"),ir("\\ne","\\neq"),ir("≠","\\neq"),ir("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}"),ir("∉","\\notin"),ir("≘","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}"),ir("≙","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}"),ir("≚","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}"),ir("≛","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}"),ir("≝","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}"),ir("≞","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}"),ir("≟","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}"),ir("⟂","\\perp"),ir("‼","\\mathclose{!\\mkern-0.8mu!}"),ir("∌","\\notni"),ir("⌜","\\ulcorner"),ir("⌝","\\urcorner"),ir("⌞","\\llcorner"),ir("⌟","\\lrcorner"),ir("©","\\copyright"),ir("®","\\textregistered"),ir("️","\\textregistered"),ir("\\vdots","\\mathord{\\varvdots\\rule{0pt}{15pt}}"),ir("⋮","\\vdots"),ir("\\varGamma","\\mathit{\\Gamma}"),ir("\\varDelta","\\mathit{\\Delta}"),ir("\\varTheta","\\mathit{\\Theta}"),ir("\\varLambda","\\mathit{\\Lambda}"),ir("\\varXi","\\mathit{\\Xi}"),ir("\\varPi","\\mathit{\\Pi}"),ir("\\varSigma","\\mathit{\\Sigma}"),ir("\\varUpsilon","\\mathit{\\Upsilon}"),ir("\\varPhi","\\mathit{\\Phi}"),ir("\\varPsi","\\mathit{\\Psi}"),ir("\\varOmega","\\mathit{\\Omega}"),ir("\\substack","\\begin{subarray}{c}#1\\end{subarray}"),ir("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu"),ir("\\boxed","\\fbox{$\\displaystyle{#1}$}"),ir("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;"),ir("\\implies","\\DOTSB\\;\\Longrightarrow\\;"),ir("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");const sr={",":"\\dotsc","\\not":"\\dotsb","+":"\\dotsb","=":"\\dotsb","<":"\\dotsb",">":"\\dotsb","-":"\\dotsb","*":"\\dotsb",":":"\\dotsb","\\DOTSB":"\\dotsb","\\coprod":"\\dotsb","\\bigvee":"\\dotsb","\\bigwedge":"\\dotsb","\\biguplus":"\\dotsb","\\bigcap":"\\dotsb","\\bigcup":"\\dotsb","\\prod":"\\dotsb","\\sum":"\\dotsb","\\bigotimes":"\\dotsb","\\bigoplus":"\\dotsb","\\bigodot":"\\dotsb","\\bigsqcup":"\\dotsb","\\And":"\\dotsb","\\longrightarrow":"\\dotsb","\\Longrightarrow":"\\dotsb","\\longleftarrow":"\\dotsb","\\Longleftarrow":"\\dotsb","\\longleftrightarrow":"\\dotsb","\\Longleftrightarrow":"\\dotsb","\\mapsto":"\\dotsb","\\longmapsto":"\\dotsb","\\hookrightarrow":"\\dotsb","\\doteq":"\\dotsb","\\mathbin":"\\dotsb","\\mathrel":"\\dotsb","\\relbar":"\\dotsb","\\Relbar":"\\dotsb","\\xrightarrow":"\\dotsb","\\xleftarrow":"\\dotsb","\\DOTSI":"\\dotsi","\\int":"\\dotsi","\\oint":"\\dotsi","\\iint":"\\dotsi","\\iiint":"\\dotsi","\\iiiint":"\\dotsi","\\idotsint":"\\dotsi","\\DOTSX":"\\dotsx"};ir("\\dots",(function(e){let t="\\dotso";const n=e.expandAfterFuture().text;return n in sr?t=sr[n]:("\\not"===n.substr(0,4)||n in J.math&&d.contains(["bin","rel"],J.math[n].group))&&(t="\\dotsb"),t}));const ur={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};ir("\\dotso",(function(e){return e.future().text in ur?"\\ldots\\,":"\\ldots"})),ir("\\dotsc",(function(e){const t=e.future().text;return t in ur&&","!==t?"\\ldots\\,":"\\ldots"})),ir("\\cdots",(function(e){return e.future().text in ur?"\\@cdots\\,":"\\@cdots"})),ir("\\dotsb","\\cdots"),ir("\\dotsm","\\cdots"),ir("\\dotsi","\\!\\cdots"),ir("\\dotsx","\\ldots\\,"),ir("\\DOTSI","\\relax"),ir("\\DOTSB","\\relax"),ir("\\DOTSX","\\relax"),ir("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax"),ir("\\,","\\tmspace+{3mu}{.1667em}"),ir("\\thinspace","\\,"),ir("\\>","\\mskip{4mu}"),ir("\\:","\\tmspace+{4mu}{.2222em}"),ir("\\medspace","\\:"),ir("\\;","\\tmspace+{5mu}{.2777em}"),ir("\\thickspace","\\;"),ir("\\!","\\tmspace-{3mu}{.1667em}"),ir("\\negthinspace","\\!"),ir("\\negmedspace","\\tmspace-{4mu}{.2222em}"),ir("\\negthickspace","\\tmspace-{5mu}{.277em}"),ir("\\enspace","\\kern.5em "),ir("\\enskip","\\hskip.5em\\relax"),ir("\\quad","\\hskip1em\\relax"),ir("\\qquad","\\hskip2em\\relax"),ir("\\tag","\\@ifstar\\tag@literal\\tag@paren"),ir("\\tag@paren","\\tag@literal{({#1})}"),ir("\\tag@literal",e=>{if(e.macros.get("\\df@tag"))throw new s("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"}),ir("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}"),ir("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)"),ir("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}"),ir("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1"),ir("\\pmb","\\html@mathml{\\@binrel{#1}{\\mathrlap{#1}\\kern0.5px#1}}{\\mathbf{#1}}"),ir("\\\\","\\newline"),ir("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");const fr=B["Main-Regular"]["T".charCodeAt(0)][1]-.7*B["Main-Regular"]["A".charCodeAt(0)][1]+"em";ir("\\LaTeX",`\\textrm{\\html@mathml{L\\kern-.36em\\raisebox{${fr}}{\\scriptstyle A}\\kern-.15em\\TeX}{LaTeX}}`),ir("\\KaTeX",`\\textrm{\\html@mathml{K\\kern-.17em\\raisebox{${fr}}{\\scriptstyle A}\\kern-.15em\\TeX}{KaTeX}}`),ir("\\hspace","\\@ifstar\\@hspacer\\@hspace"),ir("\\@hspace","\\hskip #1\\relax"),ir("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax"),ir("\\ordinarycolon",":"),ir("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}"),ir("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}'),ir("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}'),ir("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}'),ir("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}'),ir("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}'),ir("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}'),ir("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}'),ir("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}'),ir("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}'),ir("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}'),ir("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}'),ir("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}'),ir("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}'),ir("∷","\\dblcolon"),ir("∹","\\eqcolon"),ir("≔","\\coloneqq"),ir("≕","\\eqqcolon"),ir("⩴","\\Coloneqq"),ir("\\ratio","\\vcentcolon"),ir("\\coloncolon","\\dblcolon"),ir("\\colonequals","\\coloneqq"),ir("\\coloncolonequals","\\Coloneqq"),ir("\\equalscolon","\\eqqcolon"),ir("\\equalscoloncolon","\\Eqqcolon"),ir("\\colonminus","\\coloneq"),ir("\\coloncolonminus","\\Coloneq"),ir("\\minuscolon","\\eqcolon"),ir("\\minuscoloncolon","\\Eqcolon"),ir("\\coloncolonapprox","\\Colonapprox"),ir("\\coloncolonsim","\\Colonsim"),ir("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),ir("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}"),ir("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),ir("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}"),ir("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}"),ir("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}"),ir("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}"),ir("\\gvertneqq","\\html@mathml{\\@gvertneqq}{≩}"),ir("\\lvertneqq","\\html@mathml{\\@lvertneqq}{≨}"),ir("\\ngeqq","\\html@mathml{\\@ngeqq}{≱}"),ir("\\ngeqslant","\\html@mathml{\\@ngeqslant}{≱}"),ir("\\nleqq","\\html@mathml{\\@nleqq}{≰}"),ir("\\nleqslant","\\html@mathml{\\@nleqslant}{≰}"),ir("\\nshortmid","\\html@mathml{\\@nshortmid}{∤}"),ir("\\nshortparallel","\\html@mathml{\\@nshortparallel}{∦}"),ir("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{⊈}"),ir("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{⊉}"),ir("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{⊊}"),ir("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{⫋}"),ir("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{⊋}"),ir("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{⫌}"),ir("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}"),ir("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}"),ir("⟦","\\llbracket"),ir("⟧","\\rrbracket"),ir("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}"),ir("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}"),ir("⦃","\\lBrace"),ir("⦄","\\rBrace"),ir("\\darr","\\downarrow"),ir("\\dArr","\\Downarrow"),ir("\\Darr","\\Downarrow"),ir("\\lang","\\langle"),ir("\\rang","\\rangle"),ir("\\uarr","\\uparrow"),ir("\\uArr","\\Uparrow"),ir("\\Uarr","\\Uparrow"),ir("\\N","\\mathbb{N}"),ir("\\R","\\mathbb{R}"),ir("\\Z","\\mathbb{Z}"),ir("\\alef","\\aleph"),ir("\\alefsym","\\aleph"),ir("\\Alpha","\\mathrm{A}"),ir("\\Beta","\\mathrm{B}"),ir("\\bull","\\bullet"),ir("\\Chi","\\mathrm{X}"),ir("\\clubs","\\clubsuit"),ir("\\cnums","\\mathbb{C}"),ir("\\Complex","\\mathbb{C}"),ir("\\Dagger","\\ddagger"),ir("\\diamonds","\\diamondsuit"),ir("\\empty","\\emptyset"),ir("\\Epsilon","\\mathrm{E}"),ir("\\Eta","\\mathrm{H}"),ir("\\exist","\\exists"),ir("\\harr","\\leftrightarrow"),ir("\\hArr","\\Leftrightarrow"),ir("\\Harr","\\Leftrightarrow"),ir("\\hearts","\\heartsuit"),ir("\\image","\\Im"),ir("\\infin","\\infty"),ir("\\Iota","\\mathrm{I}"),ir("\\isin","\\in"),ir("\\Kappa","\\mathrm{K}"),ir("\\larr","\\leftarrow"),ir("\\lArr","\\Leftarrow"),ir("\\Larr","\\Leftarrow"),ir("\\lrarr","\\leftrightarrow"),ir("\\lrArr","\\Leftrightarrow"),ir("\\Lrarr","\\Leftrightarrow"),ir("\\Mu","\\mathrm{M}"),ir("\\natnums","\\mathbb{N}"),ir("\\Nu","\\mathrm{N}"),ir("\\Omicron","\\mathrm{O}"),ir("\\plusmn","\\pm"),ir("\\rarr","\\rightarrow"),ir("\\rArr","\\Rightarrow"),ir("\\Rarr","\\Rightarrow"),ir("\\real","\\Re"),ir("\\reals","\\mathbb{R}"),ir("\\Reals","\\mathbb{R}"),ir("\\Rho","\\mathrm{P}"),ir("\\sdot","\\cdot"),ir("\\sect","\\S"),ir("\\spades","\\spadesuit"),ir("\\sub","\\subset"),ir("\\sube","\\subseteq"),ir("\\supe","\\supseteq"),ir("\\Tau","\\mathrm{T}"),ir("\\thetasym","\\vartheta"),ir("\\weierp","\\wp"),ir("\\Zeta","\\mathrm{Z}"),ir("\\argmin","\\DOTSB\\operatorname*{arg\\,min}"),ir("\\argmax","\\DOTSB\\operatorname*{arg\\,max}"),ir("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits"),ir("\\blue","\\textcolor{##6495ed}{#1}"),ir("\\orange","\\textcolor{##ffa500}{#1}"),ir("\\pink","\\textcolor{##ff00af}{#1}"),ir("\\red","\\textcolor{##df0030}{#1}"),ir("\\green","\\textcolor{##28ae7b}{#1}"),ir("\\gray","\\textcolor{gray}{#1}"),ir("\\purple","\\textcolor{##9d38bd}{#1}"),ir("\\blueA","\\textcolor{##ccfaff}{#1}"),ir("\\blueB","\\textcolor{##80f6ff}{#1}"),ir("\\blueC","\\textcolor{##63d9ea}{#1}"),ir("\\blueD","\\textcolor{##11accd}{#1}"),ir("\\blueE","\\textcolor{##0c7f99}{#1}"),ir("\\tealA","\\textcolor{##94fff5}{#1}"),ir("\\tealB","\\textcolor{##26edd5}{#1}"),ir("\\tealC","\\textcolor{##01d1c1}{#1}"),ir("\\tealD","\\textcolor{##01a995}{#1}"),ir("\\tealE","\\textcolor{##208170}{#1}"),ir("\\greenA","\\textcolor{##b6ffb0}{#1}"),ir("\\greenB","\\textcolor{##8af281}{#1}"),ir("\\greenC","\\textcolor{##74cf70}{#1}"),ir("\\greenD","\\textcolor{##1fab54}{#1}"),ir("\\greenE","\\textcolor{##0d923f}{#1}"),ir("\\goldA","\\textcolor{##ffd0a9}{#1}"),ir("\\goldB","\\textcolor{##ffbb71}{#1}"),ir("\\goldC","\\textcolor{##ff9c39}{#1}"),ir("\\goldD","\\textcolor{##e07d10}{#1}"),ir("\\goldE","\\textcolor{##a75a05}{#1}"),ir("\\redA","\\textcolor{##fca9a9}{#1}"),ir("\\redB","\\textcolor{##ff8482}{#1}"),ir("\\redC","\\textcolor{##f9685d}{#1}"),ir("\\redD","\\textcolor{##e84d39}{#1}"),ir("\\redE","\\textcolor{##bc2612}{#1}"),ir("\\maroonA","\\textcolor{##ffbde0}{#1}"),ir("\\maroonB","\\textcolor{##ff92c6}{#1}"),ir("\\maroonC","\\textcolor{##ed5fa6}{#1}"),ir("\\maroonD","\\textcolor{##ca337c}{#1}"),ir("\\maroonE","\\textcolor{##9e034e}{#1}"),ir("\\purpleA","\\textcolor{##ddd7ff}{#1}"),ir("\\purpleB","\\textcolor{##c6b9fc}{#1}"),ir("\\purpleC","\\textcolor{##aa87ff}{#1}"),ir("\\purpleD","\\textcolor{##7854ab}{#1}"),ir("\\purpleE","\\textcolor{##543b78}{#1}"),ir("\\mintA","\\textcolor{##f5f9e8}{#1}"),ir("\\mintB","\\textcolor{##edf2df}{#1}"),ir("\\mintC","\\textcolor{##e0e5cc}{#1}"),ir("\\grayA","\\textcolor{##f6f7f7}{#1}"),ir("\\grayB","\\textcolor{##f0f1f2}{#1}"),ir("\\grayC","\\textcolor{##e3e5e6}{#1}"),ir("\\grayD","\\textcolor{##d6d8da}{#1}"),ir("\\grayE","\\textcolor{##babec2}{#1}"),ir("\\grayF","\\textcolor{##888d93}{#1}"),ir("\\grayG","\\textcolor{##626569}{#1}"),ir("\\grayH","\\textcolor{##3b3e40}{#1}"),ir("\\grayI","\\textcolor{##21242c}{#1}"),ir("\\kaBlue","\\textcolor{##314453}{#1}"),ir("\\kaGreen","\\textcolor{##71B307}{#1}");const hr={"\\relax":!0,"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0};class pr{constructor(e,t,n){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=t,this.expansionCount=0,this.feed(e),this.macros=new rr(or,t.macros),this.mode=n,this.stack=[]}feed(e){this.lexer=new nr(e,this.settings)}switchMode(e){this.mode=e}beginGroup(){this.macros.beginGroup()}endGroup(){this.macros.endGroup()}future(){return 0===this.stack.length&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]}popToken(){return this.future(),this.stack.pop()}pushToken(e){this.stack.push(e)}pushTokens(e){this.stack.push(...e)}consumeSpaces(){for(;" "===this.future().text;)this.stack.pop()}consumeArgs(e){const t=[];for(let n=0;nthis.settings.maxExpand)throw new s("Too many expansions: infinite loop or need to increase maxExpand setting");let r=n.tokens;if(n.numArgs){const e=this.consumeArgs(n.numArgs);r=r.slice();for(let t=r.length-1;t>=0;--t){let n=r[t];if("#"===n.text){if(0===t)throw new s("Incomplete placeholder at end of macro body",n);if(n=r[--t],"#"===n.text)r.splice(t+1,1);else{if(!/^[1-9]$/.test(n.text))throw new s("Not a valid argument number",n);r.splice(t,2,...e[+n.text-1])}}}}return this.pushTokens(r),r}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;){const e=this.expandOnce();if(e instanceof c){if("\\relax"!==e.text)return this.stack.pop();this.stack.pop()}}throw new Error}expandMacro(e){if(!this.macros.get(e))return;const t=[],n=this.stack.length;for(this.pushToken(new c(e));this.stack.length>n;)this.expandOnce()instanceof c&&t.push(this.stack.pop());return t}expandMacroAsText(e){const t=this.expandMacro(e);return t?t.map(e=>e.text).join(""):t}_getExpansion(e){const t=this.macros.get(e);if(null==t)return t;const n="function"==typeof t?t(this):t;if("string"==typeof n){let e=0;if(-1!==n.indexOf("#")){const t=n.replace(/##/g,"");for(;-1!==t.indexOf("#"+(e+1));)++e}const t=new nr(n,this.settings),r=[];let o=t.lex();for(;"EOF"!==o.text;)r.push(o),o=t.lex();return r.reverse(),{tokens:r,numArgs:e}}return n}isDefined(e){return this.macros.has(e)||$n.hasOwnProperty(e)||J.math.hasOwnProperty(e)||J.text.hasOwnProperty(e)||hr.hasOwnProperty(e)}}var dr={"́":{text:"\\'",math:"\\acute"},"̀":{text:"\\`",math:"\\grave"},"̈":{text:'\\"',math:"\\ddot"},"̃":{text:"\\~",math:"\\tilde"},"̄":{text:"\\=",math:"\\bar"},"̆":{text:"\\u",math:"\\breve"},"̌":{text:"\\v",math:"\\check"},"̂":{text:"\\^",math:"\\hat"},"̇":{text:"\\.",math:"\\dot"},"̊":{text:"\\r",math:"\\mathring"},"̋":{text:"\\H"}},mr={á:"á",à:"à",ä:"ä",ǟ:"ǟ",ã:"ã",ā:"ā",ă:"ă",ắ:"ắ",ằ:"ằ",ẵ:"ẵ",ǎ:"ǎ",â:"â",ấ:"ấ",ầ:"ầ",ẫ:"ẫ",ȧ:"ȧ",ǡ:"ǡ",å:"å",ǻ:"ǻ",ḃ:"ḃ",ć:"ć",č:"č",ĉ:"ĉ",ċ:"ċ",ď:"ď",ḋ:"ḋ",é:"é",è:"è",ë:"ë",ẽ:"ẽ",ē:"ē",ḗ:"ḗ",ḕ:"ḕ",ĕ:"ĕ",ě:"ě",ê:"ê",ế:"ế",ề:"ề",ễ:"ễ",ė:"ė",ḟ:"ḟ",ǵ:"ǵ",ḡ:"ḡ",ğ:"ğ",ǧ:"ǧ",ĝ:"ĝ",ġ:"ġ",ḧ:"ḧ",ȟ:"ȟ",ĥ:"ĥ",ḣ:"ḣ",í:"í",ì:"ì",ï:"ï",ḯ:"ḯ",ĩ:"ĩ",ī:"ī",ĭ:"ĭ",ǐ:"ǐ",î:"î",ǰ:"ǰ",ĵ:"ĵ",ḱ:"ḱ",ǩ:"ǩ",ĺ:"ĺ",ľ:"ľ",ḿ:"ḿ",ṁ:"ṁ",ń:"ń",ǹ:"ǹ",ñ:"ñ",ň:"ň",ṅ:"ṅ",ó:"ó",ò:"ò",ö:"ö",ȫ:"ȫ",õ:"õ",ṍ:"ṍ",ṏ:"ṏ",ȭ:"ȭ",ō:"ō",ṓ:"ṓ",ṑ:"ṑ",ŏ:"ŏ",ǒ:"ǒ",ô:"ô",ố:"ố",ồ:"ồ",ỗ:"ỗ",ȯ:"ȯ",ȱ:"ȱ",ő:"ő",ṕ:"ṕ",ṗ:"ṗ",ŕ:"ŕ",ř:"ř",ṙ:"ṙ",ś:"ś",ṥ:"ṥ",š:"š",ṧ:"ṧ",ŝ:"ŝ",ṡ:"ṡ",ẗ:"ẗ",ť:"ť",ṫ:"ṫ",ú:"ú",ù:"ù",ü:"ü",ǘ:"ǘ",ǜ:"ǜ",ǖ:"ǖ",ǚ:"ǚ",ũ:"ũ",ṹ:"ṹ",ū:"ū",ṻ:"ṻ",ŭ:"ŭ",ǔ:"ǔ",û:"û",ů:"ů",ű:"ű",ṽ:"ṽ",ẃ:"ẃ",ẁ:"ẁ",ẅ:"ẅ",ŵ:"ŵ",ẇ:"ẇ",ẘ:"ẘ",ẍ:"ẍ",ẋ:"ẋ",ý:"ý",ỳ:"ỳ",ÿ:"ÿ",ỹ:"ỹ",ȳ:"ȳ",ŷ:"ŷ",ẏ:"ẏ",ẙ:"ẙ",ź:"ź",ž:"ž",ẑ:"ẑ",ż:"ż",Á:"Á",À:"À",Ä:"Ä",Ǟ:"Ǟ",Ã:"Ã",Ā:"Ā",Ă:"Ă",Ắ:"Ắ",Ằ:"Ằ",Ẵ:"Ẵ",Ǎ:"Ǎ",Â:"Â",Ấ:"Ấ",Ầ:"Ầ",Ẫ:"Ẫ",Ȧ:"Ȧ",Ǡ:"Ǡ",Å:"Å",Ǻ:"Ǻ",Ḃ:"Ḃ",Ć:"Ć",Č:"Č",Ĉ:"Ĉ",Ċ:"Ċ",Ď:"Ď",Ḋ:"Ḋ",É:"É",È:"È",Ë:"Ë",Ẽ:"Ẽ",Ē:"Ē",Ḗ:"Ḗ",Ḕ:"Ḕ",Ĕ:"Ĕ",Ě:"Ě",Ê:"Ê",Ế:"Ế",Ề:"Ề",Ễ:"Ễ",Ė:"Ė",Ḟ:"Ḟ",Ǵ:"Ǵ",Ḡ:"Ḡ",Ğ:"Ğ",Ǧ:"Ǧ",Ĝ:"Ĝ",Ġ:"Ġ",Ḧ:"Ḧ",Ȟ:"Ȟ",Ĥ:"Ĥ",Ḣ:"Ḣ",Í:"Í",Ì:"Ì",Ï:"Ï",Ḯ:"Ḯ",Ĩ:"Ĩ",Ī:"Ī",Ĭ:"Ĭ",Ǐ:"Ǐ",Î:"Î",İ:"İ",Ĵ:"Ĵ",Ḱ:"Ḱ",Ǩ:"Ǩ",Ĺ:"Ĺ",Ľ:"Ľ",Ḿ:"Ḿ",Ṁ:"Ṁ",Ń:"Ń",Ǹ:"Ǹ",Ñ:"Ñ",Ň:"Ň",Ṅ:"Ṅ",Ó:"Ó",Ò:"Ò",Ö:"Ö",Ȫ:"Ȫ",Õ:"Õ",Ṍ:"Ṍ",Ṏ:"Ṏ",Ȭ:"Ȭ",Ō:"Ō",Ṓ:"Ṓ",Ṑ:"Ṑ",Ŏ:"Ŏ",Ǒ:"Ǒ",Ô:"Ô",Ố:"Ố",Ồ:"Ồ",Ỗ:"Ỗ",Ȯ:"Ȯ",Ȱ:"Ȱ",Ő:"Ő",Ṕ:"Ṕ",Ṗ:"Ṗ",Ŕ:"Ŕ",Ř:"Ř",Ṙ:"Ṙ",Ś:"Ś",Ṥ:"Ṥ",Š:"Š",Ṧ:"Ṧ",Ŝ:"Ŝ",Ṡ:"Ṡ",Ť:"Ť",Ṫ:"Ṫ",Ú:"Ú",Ù:"Ù",Ü:"Ü",Ǘ:"Ǘ",Ǜ:"Ǜ",Ǖ:"Ǖ",Ǚ:"Ǚ",Ũ:"Ũ",Ṹ:"Ṹ",Ū:"Ū",Ṻ:"Ṻ",Ŭ:"Ŭ",Ǔ:"Ǔ",Û:"Û",Ů:"Ů",Ű:"Ű",Ṽ:"Ṽ",Ẃ:"Ẃ",Ẁ:"Ẁ",Ẅ:"Ẅ",Ŵ:"Ŵ",Ẇ:"Ẇ",Ẍ:"Ẍ",Ẋ:"Ẋ",Ý:"Ý",Ỳ:"Ỳ",Ÿ:"Ÿ",Ỹ:"Ỹ",Ȳ:"Ȳ",Ŷ:"Ŷ",Ẏ:"Ẏ",Ź:"Ź",Ž:"Ž",Ẑ:"Ẑ",Ż:"Ż",ά:"ά",ὰ:"ὰ",ᾱ:"ᾱ",ᾰ:"ᾰ",έ:"έ",ὲ:"ὲ",ή:"ή",ὴ:"ὴ",ί:"ί",ὶ:"ὶ",ϊ:"ϊ",ΐ:"ΐ",ῒ:"ῒ",ῑ:"ῑ",ῐ:"ῐ",ό:"ό",ὸ:"ὸ",ύ:"ύ",ὺ:"ὺ",ϋ:"ϋ",ΰ:"ΰ",ῢ:"ῢ",ῡ:"ῡ",ῠ:"ῠ",ώ:"ώ",ὼ:"ὼ",Ύ:"Ύ",Ὺ:"Ὺ",Ϋ:"Ϋ",Ῡ:"Ῡ",Ῠ:"Ῠ",Ώ:"Ώ",Ὼ:"Ὼ"};class vr{constructor(e,t){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode="math",this.gullet=new pr(e,t,this.mode),this.settings=t,this.leftrightDepth=0}expect(e,t){if(void 0===t&&(t=!0),this.fetch().text!==e)throw new s(`Expected '${e}', got '${this.fetch().text}'`,this.fetch());t&&this.consume()}consume(){this.nextToken=null}fetch(){return null==this.nextToken&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken}switchMode(e){this.mode=e,this.gullet.switchMode(e)}parse(){this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");const e=this.parseExpression(!1);return this.expect("EOF"),this.gullet.endGroup(),e}parseExpression(e,t){const n=[];for(;;){"math"===this.mode&&this.consumeSpaces();const r=this.fetch();if(-1!==vr.endOfExpression.indexOf(r.text))break;if(t&&r.text===t)break;if(e&&$n[r.text]&&$n[r.text].infix)break;const o=this.parseAtom(t);if(!o)break;n.push(o)}return"text"===this.mode&&this.formLigatures(n),this.handleInfixNodes(n)}handleInfixNodes(e){let t,n=-1;for(let r=0;r0&&!l||0===a&&!l&&"math"===this.mode,u=this.parseGroupOfType(`argument to '${e}'`,n,l,r,c);if(!u){if(l){i.push(null);continue}throw new s(`Expected group after '${e}'`,this.fetch())}(l?i:o).push(u)}return{args:o,optArgs:i}}parseGroupOfType(e,t,n,r,o){switch(t){case"color":return o&&this.consumeSpaces(),this.parseColorGroup(n);case"size":return o&&this.consumeSpaces(),this.parseSizeGroup(n);case"url":return this.parseUrlGroup(n,o);case"math":case"text":return this.parseGroup(e,n,r,void 0,t,o);case"hbox":{const t=this.parseGroup(e,n,r,void 0,"text",o);return t?{type:"styling",mode:t.mode,body:[t],style:"text"}:t}case"raw":{if(o&&this.consumeSpaces(),n&&"{"===this.fetch().text)return null;const e=this.parseStringGroup("raw",n,!0);if(e)return{type:"raw",mode:"text",string:e.text};throw new s("Expected raw group",this.fetch())}case"original":case null:case void 0:return this.parseGroup(e,n,r,void 0,void 0,o);default:throw new s("Unknown group type as "+e,this.fetch())}}consumeSpaces(){for(;" "===this.fetch().text;)this.consume()}parseStringGroup(e,t,n){const r=t?"[":"{",o=t?"]":"}",i=this.fetch();if(i.text!==r){if(t)return null;if(n&&"EOF"!==i.text&&/[^{}[\]]/.test(i.text))return this.consume(),i}const a=this.mode;this.mode="text",this.expect(r);let l="";const c=this.fetch();let u,f=0,h=c;for(;(u=this.fetch()).text!==o||n&&f>0;){switch(u.text){case"EOF":throw new s("Unexpected end of input in "+e,c.range(h,l));case r:f++;break;case o:f--}h=u,l+=h.text,this.consume()}return this.expect(o),this.mode=a,c.range(h,l)}parseRegexGroup(e,t){const n=this.mode;this.mode="text";const r=this.fetch();let o,i=r,a="";for(;"EOF"!==(o=this.fetch()).text&&e.test(a+o.text);)i=o,a+=i.text,this.consume();if(""===a)throw new s("Invalid "+t+": '"+r.text+"'",r);return this.mode=n,r.range(i,a)}parseColorGroup(e){const t=this.parseStringGroup("color",e);if(!t)return null;const n=/^(#[a-f0-9]{3}|#?[a-f0-9]{6}|[a-z]+)$/i.exec(t.text);if(!n)throw new s("Invalid color: '"+t.text+"'",t);let r=n[0];return/^[0-9a-f]{6}$/i.test(r)&&(r="#"+r),{type:"color-token",mode:this.mode,color:r}}parseSizeGroup(e){let t,n=!1;if(t=e||"{"===this.fetch().text?this.parseStringGroup("size",e):this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,"size"),!t)return null;e||0!==t.text.length||(t.text="0pt",n=!0);const r=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(t.text);if(!r)throw new s("Invalid size: '"+t.text+"'",t);const o={number:+(r[1]+r[2]),unit:r[3]};if(!xe(o))throw new s("Invalid unit: '"+o.unit+"'",t);return{type:"size",mode:this.mode,value:o,isBlank:n}}parseUrlGroup(e,t){this.gullet.lexer.setCatcode("%",13);const n=this.parseStringGroup("url",e,!0);if(this.gullet.lexer.setCatcode("%",14),!n)return null;const r=n.text.replace(/\\([#$%&~_^{}])/g,"$1");return{type:"url",mode:this.mode,url:r}}parseGroup(e,t,n,r,o,i){const a=this.mode;o&&this.switchMode(o),i&&this.consumeSpaces();const c=this.fetch(),u=c.text;let f;if(t?"["===u:"{"===u||"\\begingroup"===u){this.consume();const e=vr.endOfGroup[u];this.gullet.beginGroup();const t=this.parseExpression(!1,e),n=this.fetch();this.expect(e),this.gullet.endGroup(),f={type:"ordgroup",mode:this.mode,loc:l.range(c,n),body:t,semisimple:"\\begingroup"===u||void 0}}else if(t)f=null;else if(f=this.parseFunction(r,e,n)||this.parseSymbol(),null==f&&"\\"===u[0]&&!hr.hasOwnProperty(u)){if(this.settings.throwOnError)throw new s("Undefined control sequence: "+u,c);f=this.formatUnsupportedCmd(u),this.consume()}return o&&this.switchMode(a),f}formLigatures(e){let t=e.length-1;for(let n=0;n=0&&this.settings.reportNonstrict("unicodeTextInMathMode",`Latin-1/Unicode text character "${t[0]}" used in math mode`,e);const n=J[this.mode][t].group,o=l.range(e);let i;if(K.hasOwnProperty(n)){const e=n;i={type:"atom",mode:this.mode,family:e,loc:o,text:t}}else i={type:n,mode:this.mode,loc:o,text:t};r=i}else{if(!(t.charCodeAt(0)>=128))return null;this.settings.strict&&(T(t.charCodeAt(0))?"math"===this.mode&&this.settings.reportNonstrict("unicodeTextInMathMode",`Unicode text character "${t[0]}" used in math mode`,e):this.settings.reportNonstrict("unknownSymbol",`Unrecognized Unicode character "${t[0]}" (${t.charCodeAt(0)})`,e)),r={type:"textord",mode:"text",loc:l.range(e),text:t}}if(this.consume(),n)for(let t=0;t-1===t.indexOf(" "+e+" "))&&e(o,n)}}}(e,n)};var Mr,Tr=0,Er=1,zr=2,Cr=3,Pr=4,Ar=5,jr=6,Lr=7,Nr=8,Hr=9,Rr=10,Ir={input:"'",tag:"mtext",output:"mbox",tex:null,tType:Rr},Vr=[{input:"alpha",tag:"mi",output:"α",tex:null,tType:Tr},{input:"beta",tag:"mi",output:"β",tex:null,tType:Tr},{input:"chi",tag:"mi",output:"χ",tex:null,tType:Tr},{input:"delta",tag:"mi",output:"δ",tex:null,tType:Tr},{input:"Delta",tag:"mo",output:"Δ",tex:null,tType:Tr},{input:"epsi",tag:"mi",output:"ε",tex:"epsilon",tType:Tr},{input:"varepsilon",tag:"mi",output:"ɛ",tex:null,tType:Tr},{input:"eta",tag:"mi",output:"η",tex:null,tType:Tr},{input:"gamma",tag:"mi",output:"γ",tex:null,tType:Tr},{input:"Gamma",tag:"mo",output:"Γ",tex:null,tType:Tr},{input:"iota",tag:"mi",output:"ι",tex:null,tType:Tr},{input:"kappa",tag:"mi",output:"κ",tex:null,tType:Tr},{input:"lambda",tag:"mi",output:"λ",tex:null,tType:Tr},{input:"Lambda",tag:"mo",output:"Λ",tex:null,tType:Tr},{input:"lamda",tag:"mi",output:"lambda",tex:null,tType:Nr},{input:"Lamda",tag:"mi",output:"Lambda",tex:null,tType:Nr},{input:"mu",tag:"mi",output:"μ",tex:null,tType:Tr},{input:"nu",tag:"mi",output:"ν",tex:null,tType:Tr},{input:"omega",tag:"mi",output:"ω",tex:null,tType:Tr},{input:"Omega",tag:"mo",output:"Ω",tex:null,tType:Tr},{input:"phi",tag:"mi",output:"φ",tex:null,tType:Tr},{input:"varphi",tag:"mi",output:"ϕ",tex:null,tType:Tr},{input:"Phi",tag:"mo",output:"Φ",tex:null,tType:Tr},{input:"pi",tag:"mi",output:"π",tex:null,tType:Tr},{input:"Pi",tag:"mo",output:"Π",tex:null,tType:Tr},{input:"psi",tag:"mi",output:"ψ",tex:null,tType:Tr},{input:"Psi",tag:"mi",output:"Ψ",tex:null,tType:Tr},{input:"rho",tag:"mi",output:"ρ",tex:null,tType:Tr},{input:"sigma",tag:"mi",output:"σ",tex:null,tType:Tr},{input:"Sigma",tag:"mo",output:"Σ",tex:null,tType:Tr},{input:"tau",tag:"mi",output:"τ",tex:null,tType:Tr},{input:"theta",tag:"mi",output:"θ",tex:null,tType:Tr},{input:"vartheta",tag:"mi",output:"ϑ",tex:null,tType:Tr},{input:"Theta",tag:"mo",output:"Θ",tex:null,tType:Tr},{input:"upsilon",tag:"mi",output:"υ",tex:null,tType:Tr},{input:"xi",tag:"mi",output:"ξ",tex:null,tType:Tr},{input:"Xi",tag:"mo",output:"Ξ",tex:null,tType:Tr},{input:"zeta",tag:"mi",output:"ζ",tex:null,tType:Tr},{input:"*",tag:"mo",output:"⋅",tex:"cdot",tType:Tr},{input:"**",tag:"mo",output:"∗",tex:"ast",tType:Tr},{input:"***",tag:"mo",output:"⋆",tex:"star",tType:Tr},{input:"// ",tag:"mo",output:"/",tex:"/",tType:Tr,val:!0,noTexCopy:!0},{input:"\\\\",tag:"mo",output:"\\",tex:"backslash",tType:Tr},{input:"setminus",tag:"mo",output:"\\",tex:null,tType:Tr},{input:"xx",tag:"mo",output:"×",tex:"times",tType:Tr},{input:"|><",tag:"mo",output:"⋉",tex:"ltimes",tType:Tr},{input:"><|",tag:"mo",output:"⋊",tex:"rtimes",tType:Tr},{input:"|><|",tag:"mo",output:"⋈",tex:"bowtie",tType:Tr},{input:"-:",tag:"mo",output:"÷",tex:"div",tType:Tr},{input:"divide",tag:"mo",output:"-:",tex:null,tType:Nr},{input:"@",tag:"mo",output:"∘",tex:"circ",tType:Tr},{input:"o+",tag:"mo",output:"⊕",tex:"oplus",tType:Tr},{input:"ox",tag:"mo",output:"⊗",tex:"otimes",tType:Tr},{input:"o.",tag:"mo",output:"⊙",tex:"odot",tType:Tr},{input:"sum",tag:"mo",output:"∑",tex:null,tType:Lr},{input:"prod",tag:"mo",output:"∏",tex:null,tType:Lr},{input:"^^",tag:"mo",output:"∧",tex:"wedge",tType:Tr},{input:"^^^",tag:"mo",output:"⋀",tex:"bigwedge",tType:Lr},{input:"vv",tag:"mo",output:"∨",tex:"vee",tType:Tr},{input:"vvv",tag:"mo",output:"⋁",tex:"bigvee",tType:Lr},{input:"nn",tag:"mo",output:"∩",tex:"cap",tType:Tr},{input:"nnn",tag:"mo",output:"⋂",tex:"bigcap",tType:Lr},{input:"uu",tag:"mo",output:"∪",tex:"cup",tType:Tr},{input:"uuu",tag:"mo",output:"⋃",tex:"bigcup",tType:Lr},{input:"overset",tag:"mover",output:"stackrel",tex:null,tType:zr},{input:"underset",tag:"munder",output:"stackrel",tex:null,tType:zr},{input:"!=",tag:"mo",output:"≠",tex:"ne",tType:Tr},{input:":=",tag:"mo",output:":=",tex:null,tType:Tr},{input:"lt",tag:"mo",output:"<",tex:null,tType:Tr},{input:"gt",tag:"mo",output:">",tex:null,tType:Tr},{input:"<=",tag:"mo",output:"≤",tex:"le",tType:Tr},{input:"lt=",tag:"mo",output:"≤",tex:"leq",tType:Tr},{input:"gt=",tag:"mo",output:"≥",tex:"geq",tType:Tr},{input:">=",tag:"mo",output:"≥",tex:"ge",tType:Tr},{input:"-<",tag:"mo",output:"≺",tex:"prec",tType:Tr},{input:"-lt",tag:"mo",output:"≺",tex:null,tType:Tr},{input:">-",tag:"mo",output:"≻",tex:"succ",tType:Tr},{input:"-<=",tag:"mo",output:"⪯",tex:"preceq",tType:Tr},{input:">-=",tag:"mo",output:"⪰",tex:"succeq",tType:Tr},{input:"in",tag:"mo",output:"∈",tex:null,tType:Tr},{input:"!in",tag:"mo",output:"∉",tex:"notin",tType:Tr},{input:"sub",tag:"mo",output:"⊂",tex:"subset",tType:Tr},{input:"sup",tag:"mo",output:"⊃",tex:"supset",tType:Tr},{input:"sube",tag:"mo",output:"⊆",tex:"subseteq",tType:Tr},{input:"supe",tag:"mo",output:"⊇",tex:"supseteq",tType:Tr},{input:"-=",tag:"mo",output:"≡",tex:"equiv",tType:Tr},{input:"~=",tag:"mo",output:"≅",tex:"stackrel{\\sim}{=}",tType:Tr},{input:"cong",tag:"mo",output:"~=",tex:null,tType:Nr},{input:"~~",tag:"mo",output:"≈",tex:"approx",tType:Tr},{input:"prop",tag:"mo",output:"∝",tex:"propto",tType:Tr},{input:"and",tag:"mtext",output:"and",tex:null,tType:jr},{input:"or",tag:"mtext",output:"or",tex:null,tType:jr},{input:"not",tag:"mo",output:"¬",tex:"neg",tType:Tr},{input:"=>",tag:"mo",output:"⇒",tex:"Rightarrow",tType:Tr},{input:"implies",tag:"mo",output:"=>",tex:null,tType:Nr},{input:"if",tag:"mo",output:"if",tex:null,tType:jr},{input:"<=>",tag:"mo",output:"⇔",tex:"Leftrightarrow",tType:Tr},{input:"iff",tag:"mo",output:"<=>",tex:null,tType:Nr},{input:"AA",tag:"mo",output:"∀",tex:"forall",tType:Tr},{input:"EE",tag:"mo",output:"∃",tex:"exists",tType:Tr},{input:"_|_",tag:"mo",output:"⊥",tex:"bot",tType:Tr},{input:"TT",tag:"mo",output:"⊤",tex:"top",tType:Tr},{input:"|--",tag:"mo",output:"⊢",tex:"vdash",tType:Tr},{input:"|==",tag:"mo",output:"⊨",tex:"models",tType:Tr},{input:"(",tag:"mo",output:"(",tex:null,tType:Pr,val:!0},{input:")",tag:"mo",output:")",tex:null,tType:Ar,val:!0},{input:"[",tag:"mo",output:"[",tex:null,tType:Pr,val:!0},{input:"]",tag:"mo",output:"]",tex:null,tType:Ar,val:!0},{input:"{",tag:"mo",output:"{",tex:"lbrace",tType:Pr},{input:"}",tag:"mo",output:"}",tex:"rbrace",tType:Ar},{input:"|",tag:"mo",output:"|",tex:null,tType:Hr,val:!0},{input:"(:",tag:"mo",output:"〈",tex:"langle",tType:Pr},{input:":)",tag:"mo",output:"〉",tex:"rangle",tType:Ar},{input:"<<",tag:"mo",output:"〈",tex:"langle",tType:Pr},{input:">>",tag:"mo",output:"〉",tex:"rangle",tType:Ar},{input:"{:",tag:"mo",output:"{:",tex:null,tType:Pr,invisible:!0},{input:":}",tag:"mo",output:":}",tex:null,tType:Ar,invisible:!0},{input:"int",tag:"mo",output:"∫",tex:null,tType:Tr},{input:"dx",tag:"mi",output:"{:d x:}",tex:null,tType:Nr},{input:"dy",tag:"mi",output:"{:d y:}",tex:null,tType:Nr},{input:"dz",tag:"mi",output:"{:d z:}",tex:null,tType:Nr},{input:"dt",tag:"mi",output:"{:d t:}",tex:null,tType:Nr},{input:"oint",tag:"mo",output:"∮",tex:null,tType:Tr},{input:"del",tag:"mo",output:"∂",tex:"partial",tType:Tr},{input:"grad",tag:"mo",output:"∇",tex:"nabla",tType:Tr},{input:"+-",tag:"mo",output:"±",tex:"pm",tType:Tr},{input:"O/",tag:"mo",output:"∅",tex:"emptyset",tType:Tr},{input:"oo",tag:"mo",output:"∞",tex:"infty",tType:Tr},{input:"aleph",tag:"mo",output:"ℵ",tex:null,tType:Tr},{input:"...",tag:"mo",output:"...",tex:"ldots",tType:Tr},{input:":.",tag:"mo",output:"∴",tex:"therefore",tType:Tr},{input:":'",tag:"mo",output:"∵",tex:"because",tType:Tr},{input:"/_",tag:"mo",output:"∠",tex:"angle",tType:Tr},{input:"/_\\",tag:"mo",output:"△",tex:"triangle",tType:Tr},{input:"\\ ",tag:"mo",output:" ",tex:null,tType:Tr,val:!0},{input:"frown",tag:"mo",output:"⌢",tex:null,tType:Tr},{input:"%",tag:"mo",output:"%",tex:"%",tType:Tr,noTexCopy:!0},{input:"quad",tag:"mo",output:"  ",tex:null,tType:Tr},{input:"qquad",tag:"mo",output:"    ",tex:null,tType:Tr},{input:"cdots",tag:"mo",output:"⋯",tex:null,tType:Tr},{input:"vdots",tag:"mo",output:"⋮",tex:null,tType:Tr},{input:"ddots",tag:"mo",output:"⋱",tex:null,tType:Tr},{input:"diamond",tag:"mo",output:"⋄",tex:null,tType:Tr},{input:"square",tag:"mo",output:"□",tex:"boxempty",tType:Tr},{input:"|__",tag:"mo",output:"⌊",tex:"lfloor",tType:Tr},{input:"__|",tag:"mo",output:"⌋",tex:"rfloor",tType:Tr},{input:"|~",tag:"mo",output:"⌈",tex:"lceil",tType:Tr},{input:"lceiling",tag:"mo",output:"|~",tex:null,tType:Nr},{input:"~|",tag:"mo",output:"⌉",tex:"rceil",tType:Tr},{input:"rceiling",tag:"mo",output:"~|",tex:null,tType:Nr},{input:"CC",tag:"mo",output:"ℂ",tex:"mathbb{C}",tType:Tr,noTexCopy:!0},{input:"NN",tag:"mo",output:"ℕ",tex:"mathbb{N}",tType:Tr,noTexCopy:!0},{input:"QQ",tag:"mo",output:"ℚ",tex:"mathbb{Q}",tType:Tr,noTexCopy:!0},{input:"RR",tag:"mo",output:"ℝ",tex:"mathbb{R}",tType:Tr,noTexCopy:!0},{input:"ZZ",tag:"mo",output:"ℤ",tex:"mathbb{Z}",tType:Tr,noTexCopy:!0},{input:"f",tag:"mi",output:"f",tex:null,tType:Er,func:!0,val:!0},{input:"g",tag:"mi",output:"g",tex:null,tType:Er,func:!0,val:!0},{input:"''",tag:"mo",output:"''",tex:null,val:!0},{input:"'''",tag:"mo",output:"'''",tex:null,val:!0},{input:"''''",tag:"mo",output:"''''",tex:null,val:!0},{input:"lim",tag:"mo",output:"lim",tex:null,tType:Lr},{input:"Lim",tag:"mo",output:"Lim",tex:null,tType:Lr},{input:"sin",tag:"mo",output:"sin",tex:null,tType:Er,func:!0},{input:"cos",tag:"mo",output:"cos",tex:null,tType:Er,func:!0},{input:"tan",tag:"mo",output:"tan",tex:null,tType:Er,func:!0},{input:"arcsin",tag:"mo",output:"arcsin",tex:null,tType:Er,func:!0},{input:"arccos",tag:"mo",output:"arccos",tex:null,tType:Er,func:!0},{input:"arctan",tag:"mo",output:"arctan",tex:null,tType:Er,func:!0},{input:"sinh",tag:"mo",output:"sinh",tex:null,tType:Er,func:!0},{input:"cosh",tag:"mo",output:"cosh",tex:null,tType:Er,func:!0},{input:"tanh",tag:"mo",output:"tanh",tex:null,tType:Er,func:!0},{input:"cot",tag:"mo",output:"cot",tex:null,tType:Er,func:!0},{input:"coth",tag:"mo",output:"coth",tex:null,tType:Er,func:!0},{input:"sech",tag:"mo",output:"sech",tex:null,tType:Er,func:!0},{input:"csch",tag:"mo",output:"csch",tex:null,tType:Er,func:!0},{input:"sec",tag:"mo",output:"sec",tex:null,tType:Er,func:!0},{input:"csc",tag:"mo",output:"csc",tex:null,tType:Er,func:!0},{input:"log",tag:"mo",output:"log",tex:null,tType:Er,func:!0},{input:"ln",tag:"mo",output:"ln",tex:null,tType:Er,func:!0},{input:"abs",tag:"mo",output:"abs",tex:null,tType:Er,noTexCopy:!0,rewriteLeftRight:["|","|"]},{input:"norm",tag:"mo",output:"norm",tex:null,tType:Er,noTexCopy:!0,rewriteLeftRight:["\\|","\\|"]},{input:"floor",tag:"mo",output:"floor",tex:null,tType:Er,noTexCopy:!0,rewriteLeftRight:["\\lfloor","\\rfloor"]},{input:"ceil",tag:"mo",output:"ceil",tex:null,tType:Er,noTexCopy:!0,rewriteLeftRight:["\\lceil","\\rceil"]},{input:"Sin",tag:"mo",output:"sin",tex:null,tType:Er,func:!0},{input:"Cos",tag:"mo",output:"cos",tex:null,tType:Er,func:!0},{input:"Tan",tag:"mo",output:"tan",tex:null,tType:Er,func:!0},{input:"Arcsin",tag:"mo",output:"arcsin",tex:null,tType:Er,func:!0},{input:"Arccos",tag:"mo",output:"arccos",tex:null,tType:Er,func:!0},{input:"Arctan",tag:"mo",output:"arctan",tex:null,tType:Er,func:!0},{input:"Sinh",tag:"mo",output:"sinh",tex:null,tType:Er,func:!0},{input:"Sosh",tag:"mo",output:"cosh",tex:null,tType:Er,func:!0},{input:"Tanh",tag:"mo",output:"tanh",tex:null,tType:Er,func:!0},{input:"Cot",tag:"mo",output:"cot",tex:null,tType:Er,func:!0},{input:"Sec",tag:"mo",output:"sec",tex:null,tType:Er,func:!0},{input:"Csc",tag:"mo",output:"csc",tex:null,tType:Er,func:!0},{input:"Log",tag:"mo",output:"log",tex:null,tType:Er,func:!0},{input:"Ln",tag:"mo",output:"ln",tex:null,tType:Er,func:!0},{input:"Abs",tag:"mo",output:"abs",tex:null,tType:Er,noTexCopy:!0,rewriteLeftRight:["|","|"]},{input:"det",tag:"mo",output:"det",tex:null,tType:Er,func:!0},{input:"exp",tag:"mo",output:"exp",tex:null,tType:Er,func:!0},{input:"dim",tag:"mo",output:"dim",tex:null,tType:Tr},{input:"mod",tag:"mo",output:"mod",tex:"text{mod}",tType:Tr,noTexCopy:!0},{input:"gcd",tag:"mo",output:"gcd",tex:null,tType:Er,func:!0},{input:"lcm",tag:"mo",output:"lcm",tex:"text{lcm}",tType:Er,func:!0,noTexCopy:!0},{input:"lub",tag:"mo",output:"lub",tex:null,tType:Tr},{input:"glb",tag:"mo",output:"glb",tex:null,tType:Tr},{input:"min",tag:"mo",output:"min",tex:null,tType:Lr},{input:"max",tag:"mo",output:"max",tex:null,tType:Lr},{input:"uarr",tag:"mo",output:"↑",tex:"uparrow",tType:Tr},{input:"darr",tag:"mo",output:"↓",tex:"downarrow",tType:Tr},{input:"rarr",tag:"mo",output:"→",tex:"rightarrow",tType:Tr},{input:"->",tag:"mo",output:"→",tex:"to",tType:Tr},{input:">->",tag:"mo",output:"↣",tex:"rightarrowtail",tType:Tr},{input:"->>",tag:"mo",output:"↠",tex:"twoheadrightarrow",tType:Tr},{input:">->>",tag:"mo",output:"⤖",tex:"twoheadrightarrowtail",tType:Tr},{input:"|->",tag:"mo",output:"↦",tex:"mapsto",tType:Tr},{input:"larr",tag:"mo",output:"←",tex:"leftarrow",tType:Tr},{input:"harr",tag:"mo",output:"↔",tex:"leftrightarrow",tType:Tr},{input:"rArr",tag:"mo",output:"⇒",tex:"Rightarrow",tType:Tr},{input:"lArr",tag:"mo",output:"⇐",tex:"Leftarrow",tType:Tr},{input:"hArr",tag:"mo",output:"⇔",tex:"Leftrightarrow",tType:Tr},{input:"sqrt",tag:"msqrt",output:"sqrt",tex:null,tType:Er},{input:"root",tag:"mroot",output:"root",tex:null,tType:zr},{input:"frac",tag:"mfrac",output:"/",tex:null,tType:zr},{input:"/",tag:"mfrac",output:"/",tex:null,tType:Cr},{input:"stackrel",tag:"mover",output:"stackrel",tex:null,tType:zr},{input:"_",tag:"msub",output:"_",tex:null,tType:Cr},{input:"^",tag:"msup",output:"^",tex:null,tType:Cr},{input:"cancel",tag:"menclose",output:"cancel",tex:null,tType:Er},{input:"Sqrt",tag:"msqrt",output:"sqrt",tex:null,tType:Er},{input:"hat",tag:"mover",output:"^",tex:null,tType:Er,acc:!0},{input:"bar",tag:"mover",output:"¯",tex:"overline",tType:Er,acc:!0},{input:"vec",tag:"mover",output:"→",tex:null,tType:Er,acc:!0},{input:"tilde",tag:"mover",output:"~",tex:null,tType:Er,acc:!0},{input:"dot",tag:"mover",output:".",tex:null,tType:Er,acc:!0},{input:"ddot",tag:"mover",output:"..",tex:null,tType:Er,acc:!0},{input:"ul",tag:"munder",output:"̲",tex:"underline",tType:Er,acc:!0},{input:"ubrace",tag:"munder",output:"⏟",tex:"underbrace",tType:Er,acc:!0},{input:"obrace",tag:"mover",output:"⏞",tex:"overbrace",tType:Er,acc:!0},{input:"text",tag:"mtext",output:"text",tex:null,tType:Rr},{input:"mbox",tag:"mtext",output:"mbox",tex:null,tType:Rr},Ir,{input:"color",tag:"mstyle",tType:zr},{input:"bb",tag:"mstyle",atName:"mathvariant",atVal:"bold",output:"bb",tex:"mathbf",tType:Er,noTexCopy:!0},{input:"mathbf",tag:"mstyle",atName:"mathvariant",atVal:"bold",output:"mathbf",tex:null,tType:Er},{input:"sf",tag:"mstyle",atName:"mathvariant",atVal:"sans-serif",output:"sf",tex:"mathsf",tType:Er,noTexCopy:!0},{input:"mathsf",tag:"mstyle",atName:"mathvariant",atVal:"sans-serif",output:"mathsf",tex:null,tType:Er},{input:"bbb",tag:"mstyle",atName:"mathvariant",atVal:"double-struck",output:"bbb",tex:"mathbb",tType:Er,noTexCopy:!0},{input:"mathbb",tag:"mstyle",atName:"mathvariant",atVal:"double-struck",output:"mathbb",tex:null,tType:Er},{input:"cc",tag:"mstyle",atName:"mathvariant",atVal:"script",output:"cc",tex:"mathcal",tType:Er,noTexCopy:!0},{input:"mathcal",tag:"mstyle",atName:"mathvariant",atVal:"script",output:"mathcal",tex:null,tType:Er},{input:"tt",tag:"mstyle",atName:"mathvariant",atVal:"monospace",output:"tt",tex:"mathtt",tType:Er,noTexCopy:!0},{input:"mathtt",tag:"mstyle",atName:"mathvariant",atVal:"monospace",output:"mathtt",tex:null,tType:Er},{input:"fr",tag:"mstyle",atName:"mathvariant",atVal:"fraktur",output:"fr",tex:"mathfrak",tType:Er,noTexCopy:!0},{input:"mathfrak",tag:"mstyle",atName:"mathvariant",atVal:"fraktur",output:"mathfrak",tex:null,tType:Er}],Dr=Vr.filter((function(e){return e.tex&&!0!==e.noTexCopy})).map((function(e){return{input:e.tex,tag:e.tag,output:e.output,tType:e.tType,acc:e.acc||!1}}));function Fr(e,t){var n;n="\\"===e.charAt(t)&&"\\"!==e.charAt(t+1)&&" "!==e.charAt(t+1)?e.slice(t+1):e.slice(t);for(var r=0;r>1;e[o]=Mr[a];if(t=n,""!==l)return n=Vr[r].tType,Vr[r];n=Tr,a=1,o=e.slice(0,1);for(var u=!0;"0"<=o&&o<="9"&&a<=e.length;)o=e.slice(a,a+1),a++;if("."===o&&"0"<=(o=e.slice(a,a+1))&&o<="9")for(u=!1,a++;"0"<=o&&o<="9"&&a<=e.length;)o=e.slice(a,a+1),a++;return u&&a>1||a>2?(o=e.slice(0,a-1),i="mn"):(a=2,i=("A">(o=e.slice(0,1))||o>"Z")&&("a">o||o>"z")?"mo":"mi"),"-"===o&&t===Cr?(n=Cr,{input:o,tag:i,output:o,tType:Er,func:!0,val:!0}):{input:o,tag:i,output:o,tType:Tr,val:!0}}function Ur(e){if("{"===e.charAt(0)&&"}"===e.charAt(e.length-1)){var t=0,n=e.substr(1,5);"\\left"===n?"("===(n=e.charAt(6))||"["===n||"{"===n?t=7:"\\lbrace"===(n=e.substr(6,7))&&(t=13):"("!==(n=e.charAt(1))&&"["!==n||(t=2),t>0&&("\\right)}"===(n=e.substr(e.length-8))||"\\right]}"===n||"\\right.}"===n?e=(e="{"+e.substr(t)).substr(0,e.length-8)+"}":"\\rbrace}"===n&&(e=(e="{"+e.substr(t)).substr(0,e.length-14)+"}"))}return e}function Wr(e){var t="";return t="boolean"==typeof e.val&&e.val?"":"\\",e.tex?t+e.tex:t+e.input}function Yr(e,t){var n=Br(e=Fr(e,0));if(!n||n.tType===Ar&&t>0)return[null,e];switch(n.tType===Nr&&(n=Br(e=n.output+Fr(e,n.input.length))),n.tType){case Lr:case Tr:e=Fr(e,n.input.length);var r=Wr(n);return"\\"===r.charAt(0)||"mo"===n.tag?[r,e]:["{".concat(r,"}"),e];case Pr:t++;var o=Kr(e=Fr(e,n.input.length),!0,t);t--;var i=0;"\\right"===o[0].substr(0,6)&&(")"===(p=o[0].charAt(6))||"]"===p||"}"===p?i=6:"."===p?i=7:"\\rbrace"===(p=o[0].substr(6,7))&&(i=13));var a="";return i>0?(o[0]=o[0].substr(i),a=n.invisible?"{".concat(o[0],"}"):"{".concat(Wr(n)).concat(o[0],"}")):a=n.invisible?"{\\left.".concat(o[0],"}"):"{\\left".concat(Wr(n)).concat(o[0],"}"),[a,o[1]];case Rr:var l;n!==Ir&&(e=Fr(e,n.input.length)),-1===(l="{"===e.charAt(0)?e.indexOf("}"):"("===e.charAt(0)?e.indexOf(")"):"["===e.charAt(0)?e.indexOf("]"):n===Ir?e.slice(1).indexOf("'")+1:0)&&(l=e.length);var c="";return" "===(p=e.slice(1,l)).charAt(0)&&(c="\\ "),c+="\\text{".concat(p,"}")," "===p.charAt(p.length-1)&&(c+="\\ "),[c,e=Fr(e,l+1)];case Er:var s=Yr(e=Fr(e,n.input.length),t);return null===s[0]?["{".concat(Wr(n),"}"),e]:!0===n.func?"^"===(p=e.charAt(0))||"_"===p||"/"===p||"|"===p||","===p||1===n.input.length&&n.input.match(/\w/)&&"("!==p?["{".concat(Wr(n),"}"),e]:["{".concat(Wr(n),"{").concat(s[0],"}}"),s[1]]:(s[0]=Ur(s[0]),"sqrt"===n.input?["\\sqrt{".concat(s[0],"}"),s[1]]:"cancel"===n.input?["\\cancel{".concat(s[0],"}"),s[1]]:void 0!==n.rewriteLeftRight?["{\\left".concat(n.rewriteLeftRight[0]).concat(s[0],"\\right").concat(n.rewriteLeftRight[1],"}"),s[1]]:!0===n.acc?["".concat(Wr(n),"{").concat(s[0],"}"),s[1]]:["{".concat(Wr(n),"{").concat(s[0],"}}"),s[1]]);case zr:var u=Yr(e=Fr(e,n.input.length),t);if(null===u[0])return["{".concat(Wr(n),"}"),e];u[0]=Ur(u[0]);var f=Yr(u[1],t);return null===f[0]?["{".concat(Wr(n),"}"),e]:(f[0]=Ur(f[0]),["color"===n.input?"{\\color{".concat(u[0].replace(/[{}]/g,""),"}").concat(f[0],"}"):"root"===n.input?"{\\sqrt[".concat(u[0],"]{").concat(f[0],"}}"):"{".concat(Wr(n),"{").concat(u[0],"}{").concat(f[0],"}}"),f[1]]);case Cr:return e=Fr(e,n.input.length),[n.output,e];case jr:return e=Fr(e,n.input.length),["{\\quad\\text{".concat(n.input,"}\\quad}"),e];case Hr:t++;var h=Kr(e=Fr(e,n.input.length),!1,t);t--;var p="";return"|"===(p=h[0].charAt(h[0].length-1))?["{\\left|".concat(h[0],"}"),h[1]]:["{\\mid}",e];default:return e=Fr(e,n.input.length),["{".concat(Wr(n),"}"),e]}}function Gr(e,t){var n,r=Br(e=Fr(e,0)),o=Yr(e,t),i=o[0],a=Br(e=o[1]);if(a.tType!==Cr||"/"===a.input)return[i,e];if(null===(o=Yr(e=Fr(e,a.input.length),t))[0]?o[0]="{}":o[0]=Ur(o[0]),e=o[1],"_"===a.input)if("^"===(n=Br(e)).input){var l=Yr(e=Fr(e,n.input.length),t);l[0]=Ur(l[0]),e=l[1],i="{".concat(i),i+="_{".concat(o[0],"}"),i+="^{".concat(l[0],"}"),i+="}"}else i+="_{".concat(o[0],"}");else i="".concat(i,"^{").concat(o[0],"}");return void 0!==r.func&&r.func&&(n=Br(e)).tType!==Cr&&n.tType!==Ar&&(o=Gr(e,t),i="{".concat(i).concat(o[0],"}"),e=o[1]),[i,e]}function Kr(e,t,n){var r,o,i,a,l="",c=!1;do{o=(i=Gr(e=Fr(e,0),n))[0],(r=Br(e=i[1])).tType===Cr&&"/"===r.input?(null===(i=Gr(e=Fr(e,r.input.length),n))[0]?i[0]="{}":i[0]=Ur(i[0]),e=i[1],o=Ur(o),o="".concat("\\frac{").concat(o,"}"),l+=o+="{".concat(i[0],"}"),r=Br(e)):o&&(l+=o)}while((r.tType!==Ar&&(r.tType!==Hr||t)||0===n)&&r&&r.output);if(r.tType===Ar||r.tType===Hr){var s=l.length;if(s>2&&"{"===l.charAt(0)&&l.indexOf(",")>0){var u=l.charAt(s-2);if(")"===u||"]"===u){var f=l.charAt(6);if("("===f&&")"===u&&"}"!==r.output||"["===f&&"]"===u){var h="\\matrix{",p=new Array;p.push(0);var d=!0,m=0,v=[];v[0]=[0];var y=0,g=0;for(a=1;a0&&d)for(a=0;a0&&(h+="\\\\");var w=void 0;if(0===a)if(1===v[p[a]].length)w=[l.substr(p[a]+7,p[a+1]-p[a]-15)];else{for(var x=[l.substring(p[a]+7,v[p[a]][1])],_=2;_0&&w.length!==b?d=!1:-1===b&&(b=w.length),h+=w.join("&")}h+="}",d&&(l=h)}}}e=Fr(e,r.input.length),"boolean"==typeof r.invisible&&r.invisible?(l+="\\right.",c=!0):(l+=o="\\right".concat(Wr(r)),c=!0)}return n>0&&!c&&(l+="\\right."),[l,e]}function Xr(e){return(e=e.replace(/( |\u00a0| )/g,"").replace(/>/g,">").replace(/</g,"<")).match(/\S/)?Kr(e.replace(/^\s+/g,""),!1,0)[0]:""}function Jr(e){var t=e.elements,n=e.config,r=e.isAsciimath;t.length&&t.forEach((function(e){var t=e.textContent,o=r?Xr(t):t,i=a.renderToString(o,n);e.parentNode.outerHTML='').concat(i,"")}))}function Qr(e){return e.replace(/[-[\]/{}()*+?.\\$^|]/g,"\\$&")}Vr.push.apply(Vr,r(Dr)),Vr.sort((function(e,t){return e.input>t.input?1:-1})),Mr=Vr.map((function(e){return e.input}));var Zr=function(e){return function(){var t=new DOMParser,o=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return n({displayMode:!0,throwOnError:!1,errorColor:"#ff0000"},e,{delimiters:(e.delimiters||[]).concat([{left:"$$",right:"$$",display:!1},{left:"~",right:"~",display:!1,asciimath:!0}])})}(e),i=o.delimiters.filter((function(e){return e.asciimath})).map((function(e){var t=e.left,n=e.right;return{test:new RegExp("".concat(Qr(t),"(.*?)").concat(Qr(n)),"g"),replacer:function(e,r){return"".concat(t).concat(Xr(r)).concat(n)}}}));return[{type:"output",filter:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=t.parseFromString(e,"text/html").body;i.length&&n.querySelectorAll(":not(code):not(pre)").forEach((function(e){r(e.childNodes).filter((function(e){return"#text"===e.nodeName&&e.nodeValue.trim()})).forEach((function(e){var t=i.reduce((function(e,t){var n=t.test,r=t.replacer;return e.replace(n,r)}),e.nodeValue);e.nodeValue=t}))}));var a=n.querySelectorAll("code.latex.language-latex"),l=n.querySelectorAll("code.asciimath.language-asciimath");return Jr({elements:a,config:o}),Jr({elements:l,config:o,isAsciimath:!0}),Or(n,o),n.innerHTML}}]}};return e.extension("showdown-katex",Zr()),Zr},e.exports=r(n("M55E"))}).call(this,n("yLpj"))},Blpk:function(e,t,n){"use strict";var r=n("TqRt");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n("pVnL")),i=r(n("MVZn")),a=r(n("QILm")),l=r(n("cWOT")),c=r(n("lwsE")),s=r(n("W8MJ")),u=r(n("a1gu")),f=r(n("7W2i")),h=r(n("PJYZ")),p=r(n("q1tI")),d=(r(n("17x9")),r(n("S3Uj"))),m=n("8jD+"),v=r(n("PfIm")),y=n("foiH"),g={entering:{opacity:1},entered:{opacity:1}},b=function(e){function t(){var e,n,r;(0,c.default)(this,t);for(var o=arguments.length,i=new Array(o),a=0;a>>>>",o),(0,a.fetchStaticList)(e,o).then((function(e){var n=e.data;0===n.status&&t({type:i.default.GET_STATIC_INFO,other_info:n.data.other_info,payload:n.data})}))}},t.changeParams=function(e){return{type:i.default.CHANGE_STATIC_PARAMS,payload:e}},t.initTotal=function(){return{type:i.default.CHANGE_STATIC_TOTAL}}},CEcq:function(e,t,n){"use strict";"undefined"==typeof Promise&&(n("crqt").enable(),window.Promise=n("yiUt")),n("bZMm"),Object.assign=n("MgzW")},CFxG:function(e,t,n){"use strict";var r=n("TqRt");Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=void 0;var o=r(n("pVnL")),i=r(n("QILm")),a=r(n("q1tI")),l=(r(n("17x9")),r(n("TSYQ"))),c=r(n("d05B")),s=n("IeMT");n("ZntQ");var u=function(e){return{root:{display:"flex",alignItems:"center",justifyContent:"flex-end",flex:"0 0 auto",margin:"".concat(e.spacing.unit,"px ").concat(e.spacing.unit/2,"px")},action:{margin:"0 ".concat(e.spacing.unit/2,"px"),minWidth:64}}};function f(e){var t=e.disableActionSpacing,n=e.children,r=e.classes,c=e.className,u=(0,i.default)(e,["disableActionSpacing","children","classes","className"]);return a.default.createElement("div",(0,o.default)({className:(0,l.default)(r.root,c)},u),t?n:(0,s.cloneChildrenWithClassName)(n,r.action))}t.styles=u,f.propTypes={},f.defaultProps={disableActionSpacing:!1};var h=(0,c.default)(u,{name:"MuiDialogActions"})(f);t.default=h},CWQg:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return o}));var r=function(){for(var e=arguments.length,t=new Array(e),n=0;n去注册').show():p("#pass_name_input").next().find("p").html("该邮箱尚未绑定,你可以登录后去绑定").show();else{if(p("#pass_name_input").next().find("p").hide(),6==t)p("#send_code_notice").html(n.msg).show();else{var r=window.gotoEmail(n.link);p("#send_code_notice").html("验证码已经发送到您的邮箱,去查收").show()}!function e(t){if(0==d)return p(t).addClass("btn_orange_bg"),t.removeAttribute("disabled"),t.innerHTML="获取验证码",void(d=60);p(t).removeClass("btn_orange_bg"),t.setAttribute("disabled","disabled"),t.innerHTML=d+"s后重试",d--,setTimeout((function(){e(t)}),1e3)}(e)}}))}}var v=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.enter=function(e){n.setState({login:e,speedy:1,dialogBox:"dialogBox"})},n.register=function(e){n.setState({login:1,speedy:e,dialogBox:"dialogBox2"})},n.inputOnBlur=function(e,t){n.Emailphonenumberverification(e.target.value,1)},n.loginChange=function(e){var t="";e.target.value.length>0?t=e.target.value.replace(/\s*/g,""):t=e.target.value;e.target.value.length,n.setState({loginValue:t,Phonenumberisnotco:void 0})},n.Emailphonenumberverification=function(e,t){c.default.get("/accounts/valid_email_and_phone.json",{params:{login:e,type:1}}).then((function(e){if(e)return-2===e.data.status?void("该手机号码或邮箱已被注册"===e.data.message?n.setState({Phonenumberisnotco:void 0,Phonenumberisnotcobool:!1}):n.setState({Phonenumberisnotco:e.data.message,Phonenumberisnotcobool:!0})):void n.setState({Phonenumberisnotco:void 0,Phonenumberisnotcobool:!1})})).catch((function(e){}))},n.passwordChange=function(){var e=n.refs.passwordText.value,t=e.length;n.setState({disabled:!1}),n.setState({bottonclass:"log-botton mt5 edu-back-blue"}),0==t&&(n.setState({bottonclass:"log-botton mt5"}),n.setState({disabled:!0})),n.setState({passValue:e})},n.handleInputChange=function(e){var t=e.target,r="checkbox"===t.type?t.checked:t.value,o=t.name;n.setState(function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},o,r)),!0===r?n.setState({isGoingValue:1}):n.setState({isGoingValue:0})},n.shortcutIdChange=function(){var e=n.refs.shortcutText.value;if(e.length>0){if(!(/^(\w-*\.*)+@(\w-?)+(\.\w{2,})+$/.test(e)||/^1\d{10}$/.test(e)||/^[a-zA-z]\w{3,14}$/.test(e)))return n.setState({shortcutnum:0}),n.setState({disabledType:!0}),void n.setState({gaincode:"gain-code"});n.setState({gaincode:"gain-code edu-back-blue"}),n.setState({shortcutValue:e}),n.setState({shortcutnum:1}),n.setState({disabledType:!1})}else n.setState({shortcutValue:e})},n.authCodeChange=function(){var e=n.refs.authCodeText.value.length;e>3?(n.setState({authCodeType:!1}),n.setState({authCodeclass:"log-botton mt5 edu-back-blue"})):0==e&&(n.setState({authCodeType:!0}),n.setState({authCodeclass:"log-botton mt5"}))},n.get_login_verification_code=function(){m(p("#get_verification_code")[0])},n.dragWrapper=function(){var e=window.$;e.fn.drag=function(t){var n,r=this,o=!1,i=(t=e.extend({},t),r.find(".handler")),a=r.find(".drag_bg"),l=r.find(".drag_text"),c=100;i.mousedown((function(e){o=!0,n=e.pageX-parseInt(i.css("left"),10),c=r.width()-i.width()-2})),e(document).mousemove((function(t){var r=t.pageX-n;o&&(r>0&&r<=c?(i.css({left:r}),a.css({width:r})):r>c&&(i.removeClass("handler_bg").addClass("handler_ok_bg"),l.removeClass("slidetounlock").text("验证通过").css({color:"#fff"}),i.css({left:c}),a.css({width:c}),i.unbind("mousedown"),e(document).unbind("mousemove"),e(document).unbind("mouseup")))})).mouseup((function(e){o=!1,e.pageX-n0){n=!1;break}return n},n.handleDialogClose=function(){n.setState({isRender:!1}),n.props.Modifyloginvalue()},n.loginEDU=function(){var e=n.state,t=e.loginValue,o=e.passValue,i=e.regular,l=e.isGoingValue;if(1!==i){var s=t.replace(/(^\s*)|(\s*$)/g,""),f=o.replace(/(^\s*)|(\s*$)/g,"");c.default.post("/accounts/login.json",{login:s,password:f,autologin:l}).then((function(e){if(void 0!==e)if(-2===e.data.status)if("登录密码出错已达上限,账号已被锁定, 请10分钟后重新登录或找回密码"===e.data.message){var t=a.default.createElement("div",null,a.default.createElement("p",null,"登录密码出错已达上限,账号已被锁定;"),a.default.createElement("p",{className:"mt10"},"请10分钟后重新登录或",a.default.createElement("a",{href:"/resetPassword",style:{textDecoration:"underline",color:"#4CACFF"}},"找回密码")));n.openNotifications(t)}else r.default.open({message:"提示",description:e.data.message,duration:5});else(0,u.broadcastChannelPostMessage)("refreshPage"),n.setState({isRender:!1}),n.props.Modifyloginvalue(e.data),n.props.gopage?window.location.href=n.props.gopage:window.location.reload()})).catch((function(e){console.log(e)}))}},n.setNotcompleteds=function(){n.setState({Notcompleteds:!0,MyEduCoderModals:!1})},n.setMyEduCoderModals=function(){n.setState({MyEduCoderModals:!0})},n.onKeydowns=function(e){!1===n.state.disabled&&13===e.keyCode&&n.loginEDU()},n.getloginurl=function(e){window.location.href=e},n.openNotifications=function(e){r.default.open({message:"提示",description:e,duration:5,onClick:function(){}})},n.openqqlogin=function(){n.setState({qqlogin:!0}),window.location.href="https://graph.qq.com/oauth2.0/show?which=Login&display=pc&client_id=101508858&redirect_uri=https%3a%2f%2fwww.educoder.net%2fotherloginqq&state=null,"+window.location.host+"&response_type=code"},n.openphoneqqlogin=function(){window.open("https://xui.ptlogin2.qq.com/cgi-bin/xlogin?appid=716027609&pt_3rd_aid=101508858&daid=383&pt_skey_valid=0&style=35&s_url=http%3A%2F%2Fconnect.qq.com&refer_cgi=authorize&which=&client_id=101508858&response_type=code&scope=get_user_info&redirect_uri=https%3a%2f%2fwww.educoder.net%2fotherloginqq&state=null,"+window.location.host+"&response_type=code")},n.getTContainer=function(){return document.body},n.hideweixinlogin=function(){n.setState({weixinlogin:!1,qqlogin:!1})},n.state={open:!0,login:0,speedy:1,regular:0,loginValue:"",passValue:"",isGoing:!0,isGoingValue:1,disabled:!0,bottonclass:"log-botton mt5",dialogBox:"dialogBox",shortcutValue:"",shortcutnum:1,disabledType:!0,gaincode:"gain-code",authCodeType:!0,authCodeclass:"log-botton mt5",isRender:!1,MyEduCoderModals:!1,Phonenumberisnotco:void 0,Phonenumberisnotcobool:!1,weixinlogin:!1,qqlogin:!1,settings:void 0},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"componentWillReceiveProps",value:function(e){this.setState({isRender:e.isRender})}},{key:"componentDidMount",value:function(){var e=this,t=this.IsPC();this.setState({isphone:t,settings:JSON.parse(localStorage.getItem("chromesetting"))}),null!=this.props.isRender&&this.setState({isRender:this.props.isRender}),this.dragWrapper(),c.default.interceptors.response.use((function(t){return null!=t&&t&&401===t.data.status&&(document.title="提示",e.setState({isRender:!0})),t}),(function(e){}))}},{key:"render",value:function(){var e=this,t=this.state,n=t.login,r=t.isGoing,o=t.isGoingValue,i=t.disabled,c=t.Phonenumberisnotco,u=t.dialogBox,h=t.isRender,p=t.weixinlogin,d=this.props.settings;return void 0===h&&(h=!1),a.default.createElement(l.default,{open:!0,id:"DialogID",className:"zindextest",style:{display:!1===h?"none":""},disableEscapeKeyDown:!0,disableBackdropClick:!0,onClose:function(){return e.handleDialogClose()}},a.default.createElement(f.default,{modalsType:this.state.MyEduCoderModals,setNotcompleteds:function(){e.setNotcompleteds()}}),a.default.createElement("style",null,"\n\t\t\t\t\t\t #DialogID .dialogBox {\n\t\t\t\t\t\t\t\t\twidth: 405px !important;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t.dialogBox {\n\t\t\t\t\t\t\t\t\theight: 290px !important;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t"),!0===h?a.default.createElement("div",{className:u},a.default.createElement("div",{id:"closeIcon",className:"logincloseIcon",onClick:function(){e.handleDialogClose()}},a.default.createElement("i",{className:"iconfont icon-shanchudiao"})),a.default.createElement("div",{id:"log_reg_content"},!0===p?"":a.default.createElement("ul",{className:"log_nav clearfix"},a.default.createElement("li",{onClick:function(){e.enter(0)}},"登录")),a.default.createElement("div",{className:"login-panel",id:"login-panel-1",style:{display:0==n?"block":"none"}},a.default.createElement("form",{acceptCharset:"UTF-8",action:"/login",id:"main_login_form",method:"post"},a.default.createElement("div",{style:{display:"inline",padding:"0",margin:"0"}},a.default.createElement("input",{name:"utf8",type:"hidden",value:"✓"}),a.default.createElement("input",{name:"authenticity_token",type:"hidden",value:"NVLiIlHZfhVBQtO9djnWncJqqdikNQIIxEmOvzK9vNM="})),a.default.createElement("input",{name:"back_url",type:"hidden",value:this.back_url}),a.default.createElement("input",{type:"text",className:"input-100-45 mt20",id:"name_loggin_input",ref:"loginPassText",onInput:this.loginChange,onBlur:function(t){return e.inputOnBlur(t,1)},onPressEnter:!1===i?this.loginEDU:function(){},value:this.state.loginValue,name:"username",placeholder:"请输入邮箱地址/用户名"}),a.default.createElement("div",{style:{height:"25px"}},a.default.createElement("p",{className:"color-orange edu-txt-left none",id:"username_error_notice",style:{display:void 0===c?"none":"block"}},c)),a.default.createElement("div",null,a.default.createElement("input",{type:"password",id:"password_loggin_input",name:"password",ref:"passwordText",onInput:this.passwordChange,onKeyDown:this.onKeydowns,className:"input-100-45 mt5",onPressEnter:!1===i?this.loginEDU:function(){},placeholder:"请输入登录密码"}),a.default.createElement("div",{style:{height:"25px"}},a.default.createElement("p",{className:"color-orange edu-txt-left none",id:"password_error_notice"},"请输入密码"))),a.default.createElement("div",{className:!1===i?"bluebutton edu-back-blue":"bluebutton",onClick:!1===i?this.loginEDU:function(){}},"登录"),a.default.createElement("p",{className:"clearfix mt20"},a.default.createElement("span",{className:"fl"},a.default.createElement("input",{type:"checkbox",className:"mr5 magic-checkbox",checked:r,onChange:this.handleInputChange,value:o,name:"isGoing",id:"p_autolog"}),a.default.createElement("label",{htmlFor:"p_autolog",style:{top:"0px"}},"下次自动登录")),a.default.createElement("span",{className:"fr"},a.default.createElement("a",{href:"/resetPassword",className:"mr3 color-grey-9"},"找回密码"),a.default.createElement("em",{className:"vertical-line"}),a.default.createElement("a",{href:"/register",className:"color-grey-9"},"注册"))),d&&d.third_party&&d.third_party.length>0?a.default.createElement("p",{className:"clearfix mt20"},a.default.createElement("span",{className:"startlogin"},"———————— 快速登录 ————————"),a.default.createElement("div",{className:"mt10"},d.third_party.map((function(e,t){return a.default.createElement("a",{href:""+e.url},a.default.createElement("img",{src:"educoder"===e.name?s.default:"",width:"46px",alt:e.name+"登录"}))})))):"")))):"")}}]),t}(i.Component);t.default=v},CX2u:function(e,t,n){"use strict";var r=n("XKFU"),o=n("g3g5"),i=n("dyZX"),a=n("69bn"),l=n("vKrd");r(r.P+r.R,"Promise",{finally:function(e){var t=a(this,o.Promise||i.Promise),n="function"==typeof e;return this.then(n?function(n){return l(t,e()).then((function(){return n}))}:e,n?function(n){return l(t,e()).then((function(){throw n}))}:e)}})},CarK:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return{onProcessRule:function(e){"keyframes"===e.type&&(e.key="@"+r.prefix.css+e.key.substr(1))},onProcessStyle:function(e,t){if("style"!==t.type)return e;for(var n in e){var o=e[n],i=!1,a=r.supportedProperty(n);a&&a!==n&&(i=!0);var l=!1,c=r.supportedValue(a,o);c&&c!==o&&(l=!0),(i||l)&&(i&&delete e[n],e[a||n]=c||o)}return e},onChangeValue:function(e,t){return r.supportedValue(t,e)}}};var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n("YYyC"))},CeCd:function(e,t,n){var r=n("XKFU");r(r.S,"Math",{clamp:function(e,t,n){return Math.min(n,Math.max(t,e))}})},Cfrj:function(e,t,n){var r=n("RYi7"),o=n("ne8i");e.exports=function(e){if(void 0===e)return 0;var t=r(e),n=o(t);if(t!==n)throw RangeError("Wrong length!");return n}},CgaS:function(e,t,n){"use strict";var r=n("xTJ+"),o=n("MLWZ"),i=n("9rSQ"),a=n("UnBK"),l=n("SntB"),c=n("hIuj"),s=c.validators;function u(e){this.defaults=e,this.interceptors={request:new i,response:new i}}u.prototype.request=function(e){"string"==typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=l(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=e.transitional;void 0!==t&&c.assertOptions(t,{silentJSONParsing:s.transitional(s.boolean),forcedJSONParsing:s.transitional(s.boolean),clarifyTimeoutError:s.transitional(s.boolean)},!1);var n=[],r=!0;this.interceptors.request.forEach((function(t){"function"==typeof t.runWhen&&!1===t.runWhen(e)||(r=r&&t.synchronous,n.unshift(t.fulfilled,t.rejected))}));var o,i=[];if(this.interceptors.response.forEach((function(e){i.push(e.fulfilled,e.rejected)})),!r){var u=[a,void 0];for(Array.prototype.unshift.apply(u,n),u=u.concat(i),o=Promise.resolve(e);u.length;)o=o.then(u.shift(),u.shift());return o}for(var f=e;n.length;){var h=n.shift(),p=n.shift();try{f=h(f)}catch(e){p(e);break}}try{o=a(f)}catch(e){return Promise.reject(e)}for(;i.length;)o=o.then(i.shift(),i.shift());return o},u.prototype.getUri=function(e){return e=l(this.defaults,e),o(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],(function(e){u.prototype[e]=function(t,n){return this.request(l(n||{},{method:e,url:t,data:(n||{}).data}))}})),r.forEach(["post","put","patch"],(function(e){u.prototype[e]=function(t,n,r){return this.request(l(r||{},{method:e,url:t,data:n}))}})),e.exports=u},CkkT:function(e,t,n){var r=n("m0Pp"),o=n("Ymqv"),i=n("S/j/"),a=n("ne8i"),l=n("zRwo");e.exports=function(e,t){var n=1==e,c=2==e,s=3==e,u=4==e,f=6==e,h=5==e||f,p=t||l;return function(t,l,d){for(var m,v,y=i(t),g=o(y),b=r(l,d,3),w=a(g.length),x=0,_=n?p(t,w):c?p(t,0):void 0;w>x;x++)if((h||x in g)&&(v=b(m=g[x],x,y),e))if(n)_[x]=v;else if(v)switch(e){case 3:return!0;case 5:return m;case 6:return x;case 2:_.push(m)}else if(u)return!1;return f?-1:s||u?u:_}}},CnBM:function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var l=n("q1tI"),c=n("17x9"),s=[],u=[];function f(e){var t=e(),n={loading:!0,loaded:null,error:null};return n.promise=t.then((function(e){return n.loading=!1,n.loaded=e,e})).catch((function(e){throw n.loading=!1,n.error=e,e})),n}function h(e){var t={loading:!1,loaded:{},error:null},n=[];try{Object.keys(e).forEach((function(r){var o=f(e[r]);o.loading?t.loading=!0:(t.loaded[r]=o.loaded,t.error=o.error),n.push(o.promise),o.promise.then((function(e){t.loaded[r]=e})).catch((function(e){t.error=e}))}))}catch(e){t.error=e}return t.promise=Promise.all(n).then((function(e){return t.loading=!1,e})).catch((function(e){throw t.loading=!1,e})),t}function p(e,t){return l.createElement((n=e)&&n.__esModule?n.default:n,t);var n}function d(e,t){var f,h;if(!t.loading)throw new Error("react-loadable requires a `loading` component");var d=Object.assign({loader:null,loading:null,delay:200,timeout:null,render:p,webpack:null,modules:null},t),m=null;function v(){return m||(m=e(d.loader)),m.promise}return s.push(v),"function"==typeof d.webpack&&u.push((function(){if(e=d.webpack,"object"===r(n.m)&&e().every((function(e){return void 0!==e&&void 0!==n.m[e]})))return v();var e})),h=f=function(t){function n(r){o(this,n);var a=i(this,t.call(this,r));return a.retry=function(){a.setState({error:null,loading:!0,timedOut:!1}),m=e(d.loader),a._loadModule()},v(),a.state={error:m.error,pastDelay:!1,timedOut:!1,loading:m.loading,loaded:m.loaded},a}return a(n,t),n.preload=function(){return v()},n.prototype.componentWillMount=function(){this._mounted=!0,this._loadModule()},n.prototype._loadModule=function(){var e=this;if(this.context.loadable&&Array.isArray(d.modules)&&d.modules.forEach((function(t){e.context.loadable.report(t)})),m.loading){"number"==typeof d.delay&&(0===d.delay?this.setState({pastDelay:!0}):this._delay=setTimeout((function(){e.setState({pastDelay:!0})}),d.delay)),"number"==typeof d.timeout&&(this._timeout=setTimeout((function(){e.setState({timedOut:!0})}),d.timeout));var t=function(){e._mounted&&(e.setState({error:m.error,loaded:m.loaded,loading:m.loading}),e._clearTimeouts())};m.promise.then((function(){t()})).catch((function(e){t()}))}},n.prototype.componentWillUnmount=function(){this._mounted=!1,this._clearTimeouts()},n.prototype._clearTimeouts=function(){clearTimeout(this._delay),clearTimeout(this._timeout)},n.prototype.render=function(){return this.state.loading||this.state.error?l.createElement(d.loading,{isLoading:this.state.loading,pastDelay:this.state.pastDelay,timedOut:this.state.timedOut,error:this.state.error,retry:this.retry}):this.state.loaded?d.render(this.state.loaded,this.props):null},n}(l.Component),f.contextTypes={loadable:c.shape({report:c.func.isRequired})},h}function m(e){return d(f,e)}m.Map=function(e){if("function"!=typeof e.render)throw new Error("LoadableMap requires a `render(loaded, props)` function");return d(h,e)};var v=function(e){function t(){return o(this,t),i(this,e.apply(this,arguments))}return a(t,e),t.prototype.getChildContext=function(){return{loadable:{report:this.props.report}}},t.prototype.render=function(){return l.Children.only(this.props.children)},t}(l.Component);function y(e){for(var t=[];e.length;){var n=e.pop();t.push(n())}return Promise.all(t).then((function(){if(e.length)return y(e)}))}v.propTypes={report:c.func.isRequired},v.childContextTypes={loadable:c.shape({report:c.func.isRequired}).isRequired},m.Capture=v,m.preloadAll=function(){return new Promise((function(e,t){y(s).then(e,t)}))},m.preloadReady=function(){return new Promise((function(e,t){y(u).then(e,e)}))},e.exports=m},CnV9:function(e,t,n){e.exports=n("RU/L")},CrYA:function(e,t,n){var r=n("MFOe").Global;function o(){return r.sessionStorage}function i(e){return o().getItem(e)}e.exports={name:"sessionStorage",read:i,write:function(e,t){return o().setItem(e,t)},each:function(e){for(var t=o().length-1;t>=0;t--){var n=o().key(t);e(i(n),n)}},remove:function(e){return o().removeItem(e)},clearAll:function(){return o().clear()}}},CtXQ:function(e,t,n){"use strict";n.r(t);var r=n("q1tI"),o=n("TSYQ"),i=n.n(o),a=n("Optq"),l=n("FxDB");function c(){return(c=Object.assign||function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:{},t=e.scriptUrl,n=e.extraCommonProps,o=void 0===n?{}:n;if("undefined"!=typeof document&&"undefined"!=typeof window&&"function"==typeof document.createElement&&"string"==typeof t&&t.length&&!u.has(t)){var i=document.createElement("script");i.setAttribute("src",t),i.setAttribute("data-namespace",t),u.add(t),document.body.appendChild(i)}var a=function(e){var t=e.type,n=e.children,i=s(e,["type","children"]),a=null;return e.type&&(a=r.createElement("use",{xlinkHref:"#".concat(t)})),n&&(a=n),r.createElement(M,c({},o,i),a)};return a.displayName="Iconfont",a},O.getTwoToneColor=function(){return l.a.getTwoToneColors().primaryColor},O.setTwoToneColor=y;var M=t.default=O},CyHz:function(e,t,n){var r=n("XKFU");r(r.S,"Math",{sign:n("lvtm")})},D1Df:function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(){return(o=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var n=0;n>6),t+=String.fromCharCode(128|63&r)):r<55296||r>=57344?(t+=String.fromCharCode(224|r>>12),t+=String.fromCharCode(128|r>>6&63),t+=String.fromCharCode(128|63&r)):(n++,r=65536+((1023&r)<<10|1023&e.charCodeAt(n)),t+=String.fromCharCode(240|r>>18),t+=String.fromCharCode(128|r>>12&63),t+=String.fromCharCode(128|r>>6&63),t+=String.fromCharCode(128|63&r))}return t}var x={size:128,level:"L",bgColor:"#FFFFFF",fgColor:"#000000",includeMargin:!1};function _(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=[];return e.forEach((function(e,r){var o=null;e.forEach((function(i,a){if(!i&&null!==o)return n.push("M".concat(o+t," ").concat(r+t,"h").concat(a-o,"v1H").concat(o+t,"z")),void(o=null);if(a!==e.length-1)i&&null===o&&(o=a);else{if(!i)return;null===o?n.push("M".concat(a+t,",").concat(r+t," h1v1H").concat(a+t,"z")):n.push("M".concat(o+t,",").concat(r+t," h").concat(a+1-o,"v1H").concat(o+t,"z"))}}))})),n.join("")}function k(e,t){return e.slice().map((function(e,n){return n=t.y+t.h?e:e.map((function(e,n){return(n=t.x+t.w)&&e}))}))}function S(e,t){var n=e.imageSettings,r=e.size,o=e.includeMargin;if(null==n)return null;var i=o?4:0,a=t.length+2*i,l=Math.floor(.1*r),c=a/r,s=(n.width||l)*c,u=(n.height||l)*c,f=null==n.x?t.length/2-s/2:n.x*c,h=null==n.y?t.length/2-u/2:n.y*c,p=null;if(n.excavate){var d=Math.floor(f),m=Math.floor(h);p={x:d,y:m,w:Math.ceil(s+f-d),h:Math.ceil(u+h-m)}}return{x:f,y:h,h:u,w:s,excavation:p}}var O=function(){try{(new Path2D).addPath(new Path2D)}catch(e){return!1}return!0}(),M=function(e){function t(){var e,n;c(this,t);for(var r=arguments.length,o=new Array(r),i=0;i0;(h||!1===e.isLeaf)&&(u+=" "+r+"-menu-item-expand",e.loading||(f=o.a.createElement("span",{className:r+"-menu-item-expand-icon"},a))),"hover"!==i||!h&&!1!==e.isLeaf||(s={onMouseEnter:this.delayOnSelect.bind(this,c),onMouseLeave:this.delayOnSelect.bind(this),onClick:c}),this.isActiveOption(e,t)&&(u+=" "+r+"-menu-item-active",s.ref=this.saveMenuItem(t)),e.disabled&&(u+=" "+r+"-menu-item-disabled");var p=null;e.loading&&(u+=" "+r+"-menu-item-loading",p=l||null);var d="";return"title"in e?d=e.title:"string"==typeof e[this.getFieldName("label")]&&(d=e[this.getFieldName("label")]),o.a.createElement("li",y({key:e[this.getFieldName("value")],className:u,title:d},s,{role:"menuitem",onMouseDown:function(e){return e.preventDefault()}}),e[this.getFieldName("label")],f,p)}},{key:"getActiveOptions",value:function(e){var t=this,n=e||this.props.activeValue,r=this.props.options;return h()(r,(function(e,r){return e[t.getFieldName("value")]===n[r]}),{childrenKeyName:this.getFieldName("children")})}},{key:"getShowOptions",value:function(){var e=this,t=this.props.options,n=this.getActiveOptions().map((function(t){return t[e.getFieldName("children")]})).filter((function(e){return!!e}));return n.unshift(t),n}},{key:"delayOnSelect",value:function(e){for(var t=this,n=arguments.length,r=Array(n>1?n-1:0),o=1;o=i.length?0:l:(l-=1)<0?i.length-1:l:0,r[o]=i[l][n.getFieldName("value")]}else if(e.keyCode===u.a.LEFT||e.keyCode===u.a.BACKSPACE)e.preventDefault(),r.splice(r.length-1,1);else if(e.keyCode===u.a.RIGHT)e.preventDefault(),i[a]&&i[a][n.getFieldName("children")]&&r.push(i[a][n.getFieldName("children")][0][n.getFieldName("value")]);else if(e.keyCode===u.a.ESC||e.keyCode===u.a.TAB)return void n.setPopupVisible(!1);r&&0!==r.length||n.setPopupVisible(!1);var c=n.getActiveOptions(r),s=c[c.length-1];n.handleMenuSelect(s,c.length-1,e),n.props.onKeyDown&&n.props.onKeyDown(e)}else n.setPopupVisible(!0)}},n.saveTrigger=function(e){n.trigger=e};var r=[];return"value"in e?r=e.value||[]:"defaultValue"in e&&(r=e.defaultValue||[]),s()(!("filedNames"in e),"`filedNames` of Cascader is a typo usage and deprecated, please use `fieldNames` instead."),n.state={popupVisible:e.popupVisible,activeValue:r,value:r,prevProps:e},n.defaultFieldNames={label:"label",value:"value",children:"children"},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),_(t,[{key:"getPopupDOMNode",value:function(){return this.trigger.getPopupDomNode()}},{key:"getFieldName",value:function(e){var t=this.defaultFieldNames,n=this.props,r=n.fieldNames,o=n.filedNames;return"filedNames"in this.props?o[e]||t[e]:r[e]||t[e]}},{key:"getFieldNames",value:function(){var e=this.props,t=e.fieldNames,n=e.filedNames;return"filedNames"in this.props?n:t}},{key:"getCurrentLevelOptions",value:function(){var e=this,t=this.props.options,n=void 0===t?[]:t,r=this.state.activeValue,o=void 0===r?[]:r,i=h()(n,(function(t,n){return t[e.getFieldName("value")]===o[n]}),{childrenKeyName:this.getFieldName("children")});return i[i.length-2]?i[i.length-2][this.getFieldName("children")]:[].concat(k(n)).filter((function(e){return!e.disabled}))}},{key:"getActiveOptions",value:function(e){var t=this;return h()(this.props.options||[],(function(n,r){return n[t.getFieldName("value")]===e[r]}),{childrenKeyName:this.getFieldName("children")})}},{key:"render",value:function(){var e=this.props,t=e.prefixCls,n=e.transitionName,i=e.popupClassName,a=e.options,c=void 0===a?[]:a,s=e.disabled,u=e.builtinPlacements,f=e.popupPlacement,h=e.children,p=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["prefixCls","transitionName","popupClassName","options","disabled","builtinPlacements","popupPlacement","children"]),d=o.a.createElement("div",null),m="";return c&&c.length>0?d=o.a.createElement(w,x({},this.props,{fieldNames:this.getFieldNames(),defaultFieldNames:this.defaultFieldNames,activeValue:this.state.activeValue,onSelect:this.handleMenuSelect,onItemDoubleClick:this.handleItemDoubleClick,visible:this.state.popupVisible})):m=" "+t+"-menus-empty",o.a.createElement(l.a,x({ref:this.saveTrigger},p,{options:c,disabled:s,popupPlacement:f,builtinPlacements:u,popupTransitionName:n,action:s?[]:["click"],popupVisible:!s&&this.state.popupVisible,onPopupVisibleChange:this.handlePopupVisibleChange,prefixCls:t+"-menus",popupClassName:i+m,popup:d}),Object(r.cloneElement)(h,{onKeyDown:this.handleKeyDown,tabIndex:s?void 0:0}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,r=void 0===n?{}:n,o={prevProps:e};return"value"in e&&!d()(r.value,e.value)&&(o.value=e.value||[],"loadData"in e||(o.activeValue=e.value||[])),"popupVisible"in e&&(o.popupVisible=e.popupVisible),o}}]),t}(r.Component);S.defaultProps={onChange:function(){},onPopupVisibleChange:function(){},disabled:!1,transitionName:"",prefixCls:"rc-cascader",popupClassName:"",popupPlacement:"bottomLeft",builtinPlacements:{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:1,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:1,adjustY:1}}},expandTrigger:"click",fieldNames:{label:"label",value:"value",children:"children"},expandIcon:">"},S.propTypes={value:a.a.array,defaultValue:a.a.array,options:a.a.array.isRequired,onChange:a.a.func,onPopupVisibleChange:a.a.func,popupVisible:a.a.bool,disabled:a.a.bool,transitionName:a.a.string,popupClassName:a.a.string,popupPlacement:a.a.string,prefixCls:a.a.string,dropdownMenuColumnStyle:a.a.object,builtinPlacements:a.a.object,loadData:a.a.func,changeOnSelect:a.a.bool,children:a.a.node,onKeyDown:a.a.func,expandTrigger:a.a.string,fieldNames:a.a.object,filedNames:a.a.object,expandIcon:a.a.node,loadingIcon:a.a.node},Object(m.polyfill)(S);var O=S,M=n("TSYQ"),T=n.n(M),E=n("BGR+"),z=n("5rEg"),C=n("CtXQ"),P=n("H84U"),A=n("YMnH"),j=n("6CfX");function L(e){return(L="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function N(){return(N=Object.assign||function(e){for(var t=1;t-1}))}function W(e,t,n,o){return t.map((function(t,i){var a=t[o.label],l=a.indexOf(e)>-1?function(e,t,n){return e.split(t).map((function(e,o){return 0===o?e:[r.createElement("span",{className:"".concat(n,"-menu-item-keyword"),key:"seperator"},t),e]}))}(a,e,n):a;return 0===i?l:[" / ",l]}))}function Y(e,t,n,r){function o(e){return e[r.label].indexOf(n)>-1}return e.findIndex(o)-t.findIndex(o)}function G(e){var t=function(e){var t=e.fieldNames,n=e.filedNames;return"filedNames"in e?n:t}(e)||{};return{children:t.children||"children",label:t.label||"label",value:t.value||"value"}}function K(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=G(t),o=[],i=r.children;return e.forEach((function(e){var r=n.concat(e);!t.changeOnSelect&&e[i]&&e[i].length||o.push(r),e[i]&&(o=o.concat(K(e[i],t,r)))})),o}var X=function(e){return e.join(" / ")};var J=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&I(e,t)}(a,e);var t,n,o,i=V(a);function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=i.call(this,e)).cachedOptions=[],t.setValue=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];"value"in t.props||t.setState({value:e});var r=t.props.onChange;r&&r(e,n)},t.saveInput=function(e){t.input=e},t.handleChange=function(e,n){if(t.setState({inputValue:""}),n[0].__IS_FILTERED_OPTION){var r=e[0],o=n[0].path;t.setValue(r,o)}else t.setValue(e,n)},t.handlePopupVisibleChange=function(e){"popupVisible"in t.props||t.setState((function(t){return{popupVisible:e,inputFocused:e,inputValue:e?t.inputValue:""}}));var n=t.props.onPopupVisibleChange;n&&n(e)},t.handleInputBlur=function(){t.setState({inputFocused:!1})},t.handleInputClick=function(e){var n=t.state,r=n.inputFocused,o=n.popupVisible;(r||o)&&(e.stopPropagation(),e.nativeEvent.stopImmediatePropagation&&e.nativeEvent.stopImmediatePropagation())},t.handleKeyDown=function(e){e.keyCode!==u.a.BACKSPACE&&e.keyCode!==u.a.SPACE||e.stopPropagation()},t.handleInputChange=function(e){var n=e.target.value;t.setState({inputValue:n})},t.clearSelection=function(e){e.preventDefault(),e.stopPropagation(),t.state.inputValue?t.setState({inputValue:""}):(t.setValue([]),t.handlePopupVisibleChange(!1))},t.renderCascader=function(e,n){var o,i,a,l,c,s=e.getPopupContainer,u=e.getPrefixCls,f=e.renderEmpty,h=F(t),p=h.props,d=h.state,m=p.prefixCls,v=p.inputPrefixCls,y=p.children,g=p.placeholder,b=void 0===g?n.placeholder||"Please select":g,w=p.size,x=p.disabled,_=p.className,k=p.style,S=p.allowClear,M=p.showSearch,P=void 0!==M&&M,A=p.suffixIcon,j=p.notFoundContent,L=B(p,["prefixCls","inputPrefixCls","children","placeholder","size","disabled","className","style","allowClear","showSearch","suffixIcon","notFoundContent"]),R=d.value,I=d.inputFocused,V=u("cascader",m),D=u("input",v),q=T()((H(o={},"".concat(D,"-lg"),"large"===w),H(o,"".concat(D,"-sm"),"small"===w),o)),U=S&&!x&&R.length>0||d.inputValue?r.createElement(C.default,{type:"close-circle",theme:"filled",className:"".concat(V,"-picker-clear"),onClick:t.clearSelection}):null,W=T()((H(i={},"".concat(V,"-picker-arrow"),!0),H(i,"".concat(V,"-picker-arrow-expand"),d.popupVisible),i)),Y=T()(_,"".concat(V,"-picker"),(H(a={},"".concat(V,"-picker-with-value"),d.inputValue),H(a,"".concat(V,"-picker-disabled"),x),H(a,"".concat(V,"-picker-").concat(w),!!w),H(a,"".concat(V,"-picker-show-search"),!!P),H(a,"".concat(V,"-picker-focused"),I),a)),K=Object(E.default)(L,["onChange","options","popupPlacement","transitionName","displayRender","onPopupVisibleChange","changeOnSelect","expandTrigger","popupVisible","getPopupContainer","loadData","popupClassName","filterOption","renderFilteredOption","sortFilteredOption","notFoundContent","fieldNames","filedNames"]),X=p.options,J=G(t.props);X&&X.length>0?d.inputValue&&(X=t.generateFilteredOptions(V,f)):X=[(c={},H(c,J.value,"ANT_CASCADER_NOT_FOUND"),H(c,J.label,j||f("Cascader")),H(c,"disabled",!0),H(c,"isEmptyNode",!0),c)];d.popupVisible?t.cachedOptions=X:X=t.cachedOptions;var Q={},Z=1===(X||[]).length&&X[0].isEmptyNode;Z&&(Q.height="auto"),!1!==P.matchInputWidth&&(d.inputValue||Z)&&t.input&&(Q.width=t.input.input.offsetWidth);var $=A&&(r.isValidElement(A)?r.cloneElement(A,{className:T()((l={},H(l,A.props.className,A.props.className),H(l,"".concat(V,"-picker-arrow"),!0),l))}):r.createElement("span",{className:"".concat(V,"-picker-arrow")},A))||r.createElement(C.default,{type:"down",className:W}),ee=y||r.createElement("span",{style:k,className:Y},r.createElement("span",{className:"".concat(V,"-picker-label")},t.getLabel()),r.createElement(z.default,N({},K,{tabIndex:"-1",ref:t.saveInput,prefixCls:D,placeholder:R&&R.length>0?void 0:b,className:"".concat(V,"-input ").concat(q),value:d.inputValue,disabled:x,readOnly:!P,autoComplete:K.autoComplete||"off",onClick:P?t.handleInputClick:void 0,onBlur:P?t.handleInputBlur:void 0,onKeyDown:t.handleKeyDown,onChange:P?t.handleInputChange:void 0})),U,$),te=r.createElement(C.default,{type:"right"}),ne=r.createElement("span",{className:"".concat(V,"-menu-item-loading-icon")},r.createElement(C.default,{type:"redo",spin:!0})),re=p.getPopupContainer||s,oe=Object(E.default)(p,["inputIcon","expandIcon","loadingIcon"]);return r.createElement(O,N({},oe,{prefixCls:V,getPopupContainer:re,options:X,value:R,popupVisible:d.popupVisible,onPopupVisibleChange:t.handlePopupVisibleChange,onChange:t.handleChange,dropdownMenuColumnStyle:Q,expandIcon:te,loadingIcon:ne}),ee)},t.state={value:e.value||e.defaultValue||[],inputValue:"",inputFocused:!1,popupVisible:e.popupVisible,flattenOptions:e.showSearch?K(e.options,e):void 0,prevProps:e},t}return t=a,o=[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,r={prevProps:e};return"value"in e&&(r.value=e.value||[]),"popupVisible"in e&&(r.popupVisible=e.popupVisible),e.showSearch&&n.options!==e.options&&(r.flattenOptions=K(e.options,e)),r}}],(n=[{key:"getLabel",value:function(){var e=this.props,t=e.options,n=e.displayRender,r=void 0===n?X:n,o=G(this.props),i=this.state.value,a=Array.isArray(i[0])?i[0]:i,l=h()(t,(function(e,t){return e[o.value]===a[t]}),{childrenKeyName:o.children});return r(l.map((function(e){return e[o.label]})),l)}},{key:"generateFilteredOptions",value:function(e,t){var n,r,o=this,i=this.props,a=i.showSearch,l=i.notFoundContent,c=G(this.props),s=a.filter,u=void 0===s?U:s,f=a.render,h=void 0===f?W:f,p=a.sort,d=void 0===p?Y:p,m=a.limit,v=void 0===m?50:m,y=this.state,g=y.flattenOptions,b=void 0===g?[]:g,w=y.inputValue;if(v>0){r=[];var x=0;b.some((function(e){return u(o.state.inputValue,e,c)&&(r.push(e),x+=1),x>=v}))}else Object(j.a)("number"!=typeof v,"Cascader","'limit' of showSearch should be positive number or false."),r=b.filter((function(e){return u(o.state.inputValue,e,c)}));return r.sort((function(e,t){return d(e,t,w,c)})),r.length>0?r.map((function(t){var n;return H(n={__IS_FILTERED_OPTION:!0,path:t},c.value,t.map((function(e){return e[c.value]}))),H(n,c.label,h(w,t,e,c)),H(n,"disabled",t.some((function(e){return!!e.disabled}))),H(n,"isEmptyNode",!0),n})):[(n={},H(n,c.value,"ANT_CASCADER_NOT_FOUND"),H(n,c.label,l||t("Cascader")),H(n,"disabled",!0),H(n,"isEmptyNode",!0),n)]}},{key:"focus",value:function(){this.input.focus()}},{key:"blur",value:function(){this.input.blur()}},{key:"render",value:function(){var e=this;return r.createElement(P.a,null,(function(t){return r.createElement(A.a,null,(function(n){return e.renderCascader(t,n)}))}))}}])&&R(t.prototype,n),o&&R(t,o),a}(r.Component);J.defaultProps={transitionName:"slide-up",popupPlacement:"bottomLeft",options:[],disabled:!1,allowClear:!0},Object(m.polyfill)(J);t.default=J},DKAG:function(e,t,n){"use strict";function r(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(t,"__esModule",{value:!0});var o=r(n("ptwB")),i=r(n("wmEG")),a=r(n("lWZf")),l=r(n("kc8Z")),c=r(n("92dX")),s=r(n("e5eY")),u=r(n("NlO1")),f=r(n("q1tI")),h=(r(n("17x9")),r(n("rzV7")));r(n("63PN"));var p,d=(p=null,function(){if(null!==p)return p;var e,t,n,r=!1;try{window.addEventListener("test",null,(e={},t="passive",n={get:function(){r=!0}},Object.defineProperty(e,t,n)))}catch(e){}return p=r,r}()),m={capture:!1,passive:!1};function v(e){return u({},m,e)}function y(e,t,n){var r=[e,t];return r.push(d?n:n.capture),r}function g(e,t,n,r){e.addEventListener.apply(e,y(t,n,r))}function b(e,t,n,r){e.removeEventListener.apply(e,y(t,n,r))}var w=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return l(t,e),i(t,[{key:"componentDidMount",value:function(){this.addListeners()}},{key:"shouldComponentUpdate",value:function(e){return!h(this.props,e)}},{key:"componentWillUpdate",value:function(){this.removeListeners()}},{key:"componentDidUpdate",value:function(){this.addListeners()}},{key:"componentWillUnmount",value:function(){this.removeListeners()}},{key:"addListeners",value:function(){this.applyListeners(g)}},{key:"removeListeners",value:function(){this.applyListeners(b)}},{key:"applyListeners",value:function(e){var t=this.props.target;if(t){var n=t;"string"==typeof t&&(n=window[t]),function(e,t){e.children,e.target;var n=s(e,["children","target"]);Object.keys(n).forEach((function(e){if("on"===e.substring(0,2)){var r=n[e],o=c(r),i="object"===o;if(i||"function"===o){var a="capture"===e.substr(-7).toLowerCase(),l=e.substring(2).toLowerCase();l=a?l.substring(0,l.length-7):l,i?t(l,r.handler,r.options):t(l,r,v({capture:a}))}}}))}(this.props,e.bind(null,n))}}},{key:"render",value:function(){return this.props.children||null}}]),t}(f.Component);w.propTypes={},t.withOptions=function(e,t){return{handler:e,options:v(t)}},t.default=w},DNiP:function(e,t,n){"use strict";var r=n("XKFU"),o=n("eyMr");r(r.P+r.F*!n("LyE8")([].reduce,!0),"Array",{reduce:function(e){return o(this,e,arguments.length,arguments[1],!1)}})},DPHD:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fetchWxCodeGameStatus=t.fetchWxCodeGameBuild=t.fetchRestoreWxCode=t.fetchUpdateWxCode=t.fetchWxCodeTextCase=t.fetchWxCode=void 0;var r,o,i,a,l,c,s=f(n("14Xm")),u=(t.fetchWxCode=(r=h(s.default.mark((function e(t,n){var r;return s.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return p(),r="/tasks/"+t+"/rep_content.json",n=Object.assign({},n,{withCredentials:!0}),e.abrupt("return",u.default.get(r,{params:n}));case 4:case"end":return e.stop()}}),e,this)}))),function(e,t){return r.apply(this,arguments)}),t.fetchWxCodeTextCase=(o=h(s.default.mark((function e(t){var n,r;return s.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return p(),n="/tasks/"+t+".json",r=Object.assign({},{withCredentials:!0}),e.abrupt("return",u.default.get(n,{params:r}));case 4:case"end":return e.stop()}}),e,this)}))),function(e){return o.apply(this,arguments)}),t.fetchUpdateWxCode=(i=h(s.default.mark((function e(t,n){var r;return s.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return p(),r="/myshixuns/"+t+"/update_file.json",n=Object.assign({},n,{withCredentials:!0}),e.abrupt("return",u.default.post(r,n));case 4:case"end":return e.stop()}}),e,this)}))),function(e,t){return i.apply(this,arguments)}),t.fetchRestoreWxCode=(a=h(s.default.mark((function e(t,n){var r;return s.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return p(),r="/tasks/"+t+"/reset_original_code.json",n=Object.assign({},n,{withCredentials:!0}),e.abrupt("return",u.default.get(r,{params:n}));case 4:case"end":return e.stop()}}),e,this)}))),function(e,t){return a.apply(this,arguments)}),t.fetchWxCodeGameBuild=(l=h(s.default.mark((function e(t,n){var r;return s.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return p(),r="/tasks/"+t+"/game_build.json",n=Object.assign({},n,{withCredentials:!0}),e.abrupt("return",u.default.get(r,{params:n}));case 4:case"end":return e.stop()}}),e,this)}))),function(e,t){return l.apply(this,arguments)}),t.fetchWxCodeGameStatus=(c=h(s.default.mark((function e(t,n){var r;return s.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return p(),r="/tasks/"+t+"/game_status.json",n=Object.assign({},n,{withCredentials:!0}),e.abrupt("return",u.default.get(r,{params:n}));case 4:case"end":return e.stop()}}),e,this)}))),function(e,t){return c.apply(this,arguments)}),f(n("vDqi")));f(n("Po8q"));function f(e){return e&&e.__esModule?e:{default:e}}function h(e){return function(){var t=e.apply(this,arguments);return new Promise((function(e,n){return function r(o,i){try{var a=t[o](i),l=a.value}catch(e){return void n(e)}if(!a.done)return Promise.resolve(l).then((function(e){r("next",e)}),(function(e){r("throw",e)}));e(l)}("next")}))}}var p=function(){}},DSV3:function(e,t,n){var r=n("XKFU"),o=n("gHnn")(),i=n("dyZX").process,a="process"==n("LZWt")(i);r(r.G,{asap:function(e){var t=a&&i.domain;o(t?t.bind(e):e)}})},DVgA:function(e,t,n){var r=n("zhAb"),o=n("4R4u");e.exports=Object.keys||function(e){return r(e,o)}},DW2E:function(e,t,n){var r=n("0/R4"),o=n("Z6vF").onFreeze;n("Xtr8")("freeze",(function(e){return function(t){return e&&r(t)?e(o(t)):t}}))},DZ0b:function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){return e.replace(r,(function(e,t){return t.toUpperCase()}))};var r=/-(.)/g;e.exports=t.default},Dew8:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};return e.createGenerateClassName&&(this.options.createGenerateClassName=e.createGenerateClassName,this.generateClassName=e.createGenerateClassName()),null!=e.insertionPoint&&(this.options.insertionPoint=e.insertionPoint),(e.virtual||e.Renderer)&&(this.options.Renderer=e.Renderer||(e.virtual?y.default:v.default)),e.plugins&&this.use.apply(this,e.plugins),this}},{key:"createStyleSheet",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.index;"number"!=typeof n&&(n=0===h.default.index?0:h.default.index+1);var r=new l.default(e,o({},t,{jss:this,generateClassName:t.generateClassName||this.generateClassName,insertionPoint:this.options.insertionPoint,Renderer:this.options.Renderer,index:n}));return this.plugins.onProcessSheet(r),r}},{key:"removeStyleSheet",value:function(e){return e.detach(),h.default.remove(e),this}},{key:"createRule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};"object"===(void 0===e?"undefined":r(e))&&(n=t,t=e,e=void 0);var o=n;o.jss=this,o.Renderer=this.options.Renderer,o.generateClassName||(o.generateClassName=this.generateClassName),o.classes||(o.classes={});var i=(0,m.default)(e,t,o);return!o.selector&&i instanceof p.default&&(i.selector="."+o.generateClassName(i)),this.plugins.onProcessRule(i),i}},{key:"use",value:function(){for(var e=this,t=arguments.length,n=Array(t),r=0;r=0;n--)if(i(t[n])){var r=t[n].split("="),o=unescape(r[0]);e(unescape(r[1]),o)}}function c(e){e&&s(e)&&(a.cookie=escape(e)+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/")}function s(e){return new RegExp("(?:^|;\\s*)"+escape(e).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=").test(a.cookie)}},"Dt+G":function(e,t,n){},"E+au":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.jss="64a55d578f856d258dc345b094a2a2b3",t.sheetsRegistry="d4bd0baacbc52bbd48bbb9eb24344ecd",t.managers="b768b78919504fba9de2c03545c5cd3a",t.sheetOptions="6fc570d6bd61383819d0f9e7407c452d"},E0u0:function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=r(n("QDlc")),i=r(n("MgzW")),a=["altKey","bubbles","cancelable","ctrlKey","currentTarget","eventPhase","metaKey","shiftKey","target","timeStamp","view","type"];function l(e){return null==e}var c=[{reg:/^key/,props:["char","charCode","key","keyCode","which"],fix:function(e,t){l(e.which)&&(e.which=l(t.charCode)?t.keyCode:t.charCode),void 0===e.metaKey&&(e.metaKey=e.ctrlKey)}},{reg:/^touch/,props:["touches","changedTouches","targetTouches"]},{reg:/^hashchange$/,props:["newURL","oldURL"]},{reg:/^gesturechange$/i,props:["rotation","scale"]},{reg:/^(mousewheel|DOMMouseScroll)$/,props:[],fix:function(e,t){var n=void 0,r=void 0,o=void 0,i=t.wheelDelta,a=t.axis,l=t.wheelDeltaY,c=t.wheelDeltaX,s=t.detail;i&&(o=i/120),s&&(o=0-(s%3==0?s/3:s)),void 0!==a&&(a===e.HORIZONTAL_AXIS?(r=0,n=0-o):a===e.VERTICAL_AXIS&&(n=0,r=o)),void 0!==l&&(r=l/120),void 0!==c&&(n=-1*c/120),n||r||(r=o),void 0!==n&&(e.deltaX=n),void 0!==r&&(e.deltaY=r),void 0!==o&&(e.delta=o)}},{reg:/^mouse|contextmenu|click|mspointer|(^DOMMouseScroll$)/i,props:["buttons","clientX","clientY","button","offsetX","relatedTarget","which","fromElement","toElement","offsetY","pageX","pageY","screenX","screenY"],fix:function(e,t){var n=void 0,r=void 0,o=void 0,i=e.target,a=t.button;return i&&l(e.pageX)&&!l(t.clientX)&&(r=(n=i.ownerDocument||document).documentElement,o=n.body,e.pageX=t.clientX+(r&&r.scrollLeft||o&&o.scrollLeft||0)-(r&&r.clientLeft||o&&o.clientLeft||0),e.pageY=t.clientY+(r&&r.scrollTop||o&&o.scrollTop||0)-(r&&r.clientTop||o&&o.clientTop||0)),e.which||void 0===a||(e.which=1&a?1:2&a?3:4&a?2:0),!e.relatedTarget&&e.fromElement&&(e.relatedTarget=e.fromElement===i?e.toElement:e.fromElement),e}}];function s(){return!0}function u(){return!1}function f(e){var t=e.type,n="function"==typeof e.stopPropagation||"boolean"==typeof e.cancelBubble;o.default.call(this),this.nativeEvent=e;var r=u;"defaultPrevented"in e?r=e.defaultPrevented?s:u:"getPreventDefault"in e?r=e.getPreventDefault()?s:u:"returnValue"in e&&(r=!1===e.returnValue?s:u),this.isDefaultPrevented=r;var i=[],l=void 0,f=void 0,h=a.concat();for(c.forEach((function(e){t.match(e.reg)&&(h=h.concat(e.props),e.fix&&i.push(e.fix))})),l=h.length;l;)this[f=h[--l]]=e[f];for(!this.target&&n&&(this.target=e.srcElement||document),this.target&&3===this.target.nodeType&&(this.target=this.target.parentNode),l=i.length;l;)(0,i[--l])(this,e);this.timeStamp=e.timeStamp||Date.now()}var h=o.default.prototype;(0,i.default)(f.prototype,h,{constructor:f,preventDefault:function(){var e=this.nativeEvent;e.preventDefault?e.preventDefault():e.returnValue=!1,h.preventDefault.call(this)},stopPropagation:function(){var e=this.nativeEvent;e.stopPropagation?e.stopPropagation():e.cancelBubble=!0,h.stopPropagation.call(this)}}),t.default=f,e.exports=t.default},ECub:function(e,t,n){"use strict";n.r(t);var r=n("q1tI"),o=n("TSYQ"),i=n.n(o),a=n("H84U"),l=n("YMnH"),c=function(){return r.createElement("svg",{width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},r.createElement("g",{fill:"none",fillRule:"evenodd"},r.createElement("g",{transform:"translate(24 31.67)"},r.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),r.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),r.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),r.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),r.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),r.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),r.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},r.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),r.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},s=function(){return r.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},r.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},r.createElement("ellipse",{fill:"#F5F5F5",cx:"32",cy:"33",rx:"32",ry:"7"}),r.createElement("g",{fillRule:"nonzero",stroke:"#D9D9D9"},r.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),r.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:"#FAFAFA"}))))};function u(){return(u=Object.assign||function(e){for(var t=1;t0?arguments[0]:void 0)}},g={get:function(e){if(u(e)){var t=d(e);return!0===t?v(f(this,"WeakMap")).get(e):t?t[this._i]:void 0}},set:function(e,t){return s.def(f(this,"WeakMap"),e,t)}},b=e.exports=n("4LiD")("WeakMap",y,g,s,!0,!0);h&&p&&(c((r=s.getConstructor(y,"WeakMap")).prototype,g),l.NEED=!0,i(["delete","has","get","set"],(function(e){var t=b.prototype,n=t[e];a(t,e,(function(t,o){if(u(t)&&!m(t)){this._f||(this._f=new r);var i=this._f[e](t,o);return"set"==e?this:i}return n.call(this,t,o)}))})))},ERXd:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;tc;)r.f(e,n=a[c++],t[n]);return e}},FLEz:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t1024){for(var t=0,n=o.length-i;t=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})}))},FlsD:function(e,t,n){var r=n("0/R4");n("Xtr8")("isExtensible",(function(e){return function(t){return!!r(t)&&(!e||e(t))}}))},FpHa:function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},FxDB:function(e,t,n){"use strict";var r=n("YEIV"),o=n.n(r),i=n("QbLZ"),a=n.n(i),l=n("jo6Y"),c=n.n(l),s=n("iCc5"),u=n.n(s),f=n("V7oC"),h=n.n(f),p=n("FYw3"),d=n.n(p),m=n("mRg0"),v=n.n(m),y=n("q1tI"),g=n("bac3"),b={primaryColor:"#333",secondaryColor:"#E6E6E6"},w=function(e){function t(){return u()(this,t),d()(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return v()(t,e),h()(t,[{key:"render",value:function(){var e,n=this.props,r=n.type,i=n.className,l=n.onClick,s=n.style,u=n.primaryColor,f=n.secondaryColor,h=c()(n,["type","className","onClick","style","primaryColor","secondaryColor"]),p=void 0,d=b;if(u&&(d={primaryColor:u,secondaryColor:f||Object(g.c)(u)}),Object(g.d)(r))p=r;else if("string"==typeof r&&!(p=t.get(r,d)))return null;return p?(p&&"function"==typeof p.icon&&(p=a()({},p,{icon:p.icon(d.primaryColor,d.secondaryColor)})),Object(g.b)(p.icon,"svg-"+p.name,a()((e={className:i,onClick:l,style:s},o()(e,"data-icon",p.name),o()(e,"width","1em"),o()(e,"height","1em"),o()(e,"fill","currentColor"),o()(e,"aria-hidden","true"),o()(e,"focusable","false"),e),h))):(Object(g.e)("type should be string or icon definiton, but got "+r),null)}}],[{key:"add",value:function(){for(var e=this,t=arguments.length,n=Array(t),r=0;r1&&void 0!==arguments[1]?arguments[1]:b;if(e){var n=this.definitions.get(e);return n&&"function"==typeof n.icon&&(n=a()({},n,{icon:n.icon(t.primaryColor,t.secondaryColor)})),n}}},{key:"setTwoToneColors",value:function(e){var t=e.primaryColor,n=e.secondaryColor;b.primaryColor=t,b.secondaryColor=n||Object(g.c)(t)}},{key:"getTwoToneColors",value:function(){return a()({},b)}}]),t}(y.Component);w.displayName="IconReact",w.definitions=new g.a,t.a=w},G4OA:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=u(n("TeRw")),o=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]&&arguments[0];return function(e){return function(t){function n(e){f(this,n);var t=h(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e));return t.showNotification=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"提示",n=arguments[2],o={message:t,description:e};n&&(o.icon=n),r.default.open(o)},t.showSnackbar=t.showSnackbar.bind(t),t.handleSnackbarClose=t.handleSnackbarClose.bind(t),t.state={snackbarText:"",snackbarOpen:!1},t}return p(n,t),i(n,[{key:"handleSnackbarClose",value:function(){this.setState({snackbarOpen:!1,snackbarVertical:"",snackbarHorizontal:""})}},{key:"showSnackbar",value:function(e,t,n){this.setState({snackbarOpen:!0,snackbarText:e,snackbarVertical:t,snackbarHorizontal:n})}},{key:"render",value:function(){return l.default.createElement(l.default.Fragment,null,l.default.createElement(c.default,{className:"rootSnackbar",style:{zIndex:3e4},open:this.state.snackbarOpen,autoHideDuration:3e3,anchorOrigin:{vertical:this.state.snackbarVertical||"top",horizontal:this.state.snackbarHorizontal||"center"},onClose:this.handleSnackbarClose,transition:s.default,SnackbarContentProps:d,resumeHideDuration:2e3,message:l.default.createElement("span",{id:"message-id"},this.state.snackbarText)}),l.default.createElement(e,o({},this.props,{showSnackbar:this.showSnackbar,showNotification:this.showNotification})))}}]),n}(a.Component)}},n("O+I2");var a=n("q1tI"),l=u(a),c=u(n("ljwo")),s=u(n("Blpk"));function u(e){return e&&e.__esModule?e:{default:e}}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function p(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var d={"aria-describedby":"message-id"}},G8Mo:function(e,t,n){var r=n("93I4");e.exports=function(e,t){if(!r(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!r(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},GHUu:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=function(){function e(e,t){for(var n=0;n30},a.default.createElement("a",{href:e.url+(0,l.getRandomNumber)(),className:"mr12 fl task-hide",length:"58",target:e.is_pdf&&1==e.is_pdf?"_blank":"_self",style:{maxWidth:"432px"}},e.title)),a.default.createElement("span",{className:"color-grey mt2 color-grey-6 font-12"},e.filesize))})))}}]),t}(i.Component);t.default=c},GMIx:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=function(){function e(e,t){for(var n=0;nn;)t.push(arguments[n++]);return y[++v]=function(){l("function"==typeof e?e:Function(e),t)},r(v),v},p=function(e){delete y[e]},"process"==n("LZWt")(f)?r=function(e){f.nextTick(a(g,e,1))}:m&&m.now?r=function(e){m.now(a(g,e,1))}:d?(i=(o=new d).port2,o.port1.onmessage=b,r=a(i.postMessage,i,1)):u.addEventListener&&"function"==typeof postMessage&&!u.importScripts?(r=function(e){u.postMessage(e+"","*")},u.addEventListener("message",b,!1)):r="onreadystatechange"in s("script")?function(e){c.appendChild(s("script")).onreadystatechange=function(){c.removeChild(this),g.call(e)}}:function(e){setTimeout(a(g,e,1),0)}),e.exports={set:h,clear:p}},GdC5:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Streamable=void 0;var r,o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==c(e)&&"function"!=typeof e)return{default:e};var t=l();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n("q1tI")),i=n("tbWI"),a=(r=n("LVMo"))&&r.__esModule?r:{default:r};function l(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return l=function(){return e},e}function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){for(var n=0;n=7&&this.setupTypeNumber(e),null==this.dataCache&&(this.dataCache=c.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,t)},s.setupPositionProbePattern=function(e,t){for(var n=-1;n<=7;n++)if(!(e+n<=-1||this.moduleCount<=e+n))for(var r=-1;r<=7;r++)t+r<=-1||this.moduleCount<=t+r||(this.modules[e+n][t+r]=0<=n&&n<=6&&(0==r||6==r)||0<=r&&r<=6&&(0==n||6==n)||2<=n&&n<=4&&2<=r&&r<=4)},s.getBestMaskPattern=function(){for(var e=0,t=0,n=0;n<8;n++){this.makeImpl(!0,n);var r=a.getLostPoint(this);(0==n||e>r)&&(e=r,t=n)}return t},s.createMovieClip=function(e,t,n){var r=e.createEmptyMovieClip(t,n);this.make();for(var o=0;o>n&1);this.modules[Math.floor(n/3)][n%3+this.moduleCount-8-3]=r}for(n=0;n<18;n++){r=!e&&1==(t>>n&1);this.modules[n%3+this.moduleCount-8-3][Math.floor(n/3)]=r}},s.setupTypeInfo=function(e,t){for(var n=this.errorCorrectLevel<<3|t,r=a.getBCHTypeInfo(n),o=0;o<15;o++){var i=!e&&1==(r>>o&1);o<6?this.modules[o][8]=i:o<8?this.modules[o+1][8]=i:this.modules[this.moduleCount-15+o][8]=i}for(o=0;o<15;o++){i=!e&&1==(r>>o&1);o<8?this.modules[8][this.moduleCount-o-1]=i:o<9?this.modules[8][15-o-1+1]=i:this.modules[8][15-o-1]=i}this.modules[this.moduleCount-8][8]=!e},s.mapData=function(e,t){for(var n=-1,r=this.moduleCount-1,o=7,i=0,l=this.moduleCount-1;l>0;l-=2)for(6==l&&l--;;){for(var c=0;c<2;c++)if(null==this.modules[r][l-c]){var s=!1;i>>o&1)),a.getMask(t,r,l-c)&&(s=!s),this.modules[r][l-c]=s,-1==--o&&(i++,o=7)}if((r+=n)<0||this.moduleCount<=r){r-=n,n=-n;break}}},c.PAD0=236,c.PAD1=17,c.createData=function(e,t,n){for(var r=o.getRSBlocks(e,t),l=new i,s=0;s8*f)throw new Error("code length overflow. ("+l.getLengthInBits()+">"+8*f+")");for(l.getLengthInBits()+4<=8*f&&l.put(0,4);l.getLengthInBits()%8!=0;)l.putBit(!1);for(;!(l.getLengthInBits()>=8*f||(l.put(c.PAD0,8),l.getLengthInBits()>=8*f));)l.put(c.PAD1,8);return c.createBytes(l,r)},c.createBytes=function(e,t){for(var n=0,r=0,o=0,i=new Array(t.length),c=new Array(t.length),s=0;s=0?d.get(m):0}}var v=0;for(h=0;h0?a-4:a;for(n=0;n>16&255,c[u++]=t>>8&255,c[u++]=255&t;2===l&&(t=o[e.charCodeAt(n)]<<2|o[e.charCodeAt(n+1)]>>4,c[u++]=255&t);1===l&&(t=o[e.charCodeAt(n)]<<10|o[e.charCodeAt(n+1)]<<4|o[e.charCodeAt(n+2)]>>2,c[u++]=t>>8&255,c[u++]=255&t);return c},t.fromByteArray=function(e){for(var t,n=e.length,o=n%3,i=[],a=0,l=n-o;al?l:a+16383));1===o?(t=e[n-1],i.push(r[t>>2]+r[t<<4&63]+"==")):2===o&&(t=(e[n-2]<<8)+e[n-1],i.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"="));return i.join("")};for(var r=[],o=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",l=0,c=a.length;l0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function u(e,t,n){for(var o,i,a=[],l=t;l>18&63]+r[i>>12&63]+r[i>>6&63]+r[63&i]);return a.join("")}o["-".charCodeAt(0)]=62,o["_".charCodeAt(0)]=63},H84U:function(e,t,n){"use strict";n.d(t,"b",(function(){return s})),n.d(t,"a",(function(){return u})),n.d(t,"c",(function(){return f}));var r=n("q1tI"),o=n("foW8"),i=n.n(o),a=n("ECub"),l=function(e){return r.createElement(u,null,(function(t){var n=(0,t.getPrefixCls)("empty");switch(e){case"Table":case"List":return r.createElement(a.default,{image:a.default.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return r.createElement(a.default,{image:a.default.PRESENTED_IMAGE_SIMPLE,className:"".concat(n,"-small")});default:return r.createElement(a.default,null)}}))};function c(){return(c=Object.assign||function(e){for(var t=1;t1?arguments[1]:void 0,v=void 0!==m,y=0,g=u(h);if(v&&(m=r(m,d>2?arguments[2]:void 0,2)),null==g||p==Array&&l(g))for(n=new p(t=c(h.length));t>y;y++)s(n,y,v?m(h[y],y):h[y]);else for(f=g.call(h),n=new p;!(o=f.next()).done;y++)s(n,y,v?a(f,m,[o.value,y],!0):o.value);return n.length=y,n}})},HSsa:function(e,t,n){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;rh+1){clearInterval(d),d=null;var p=null;p=1===a?{error_line:-1,error_msg:"",execute_memory:"",execute_time:h,input:"",output:"",status:2,expected_output:"",isPassed:!1}:i.data.data,e({type:o.default.COMMIT_RECORD_DETAIL,payload:{type:n,data:p}}),n&&"debug"!==n?(e({type:o.default.SUBMIT_LOADING_STATUS,payload:!1}),e({type:o.default.CHANGE_USER_CODE_TAB,payload:"record"}),e(u(t)),e(f(n)),1===l&&!s&&p.isPassed&&(e({type:o.default.UPDATE_HACK_PASSED,payload:!0}),r.default.success({message:"提示",description:"恭喜您获得金币奖励: "+c}))):(e({type:o.default.LOADING_STATUS,payload:!1}),e({type:o.default.TEST_CODE_STATUS,payload:"finish"}))}})).catch((function(t){clearInterval(d),d=null,e(n&&"debug"!==n?{type:o.default.SUBMIT_LOADING_STATUS,payload:!1}:{type:o.default.LOADING_STATUS,payload:!1})}))}(500,i,h++,p)}),500)},s=t.debuggerCode=function(e,t,n){return function(r,i){var l=i().ojForUserReducer.hack;n&&"debug"!==n||r({type:o.default.TEST_CODE_STATUS,payload:"loading"}),(0,a.fetchDebuggerCode)(e,t).then((function(t){if(200===t.status){if(401===t.data.status)return void r({type:o.default.LOADING_STATUS,payload:!1});c(r,e,n,l.time_limit)}})).catch((function(){r({type:o.default.TEST_CODE_STATUS,payload:"error"}),r({type:o.default.LOADING_STATUS,payload:!1}),r({type:o.default.SUBMIT_LOADING_STATUS,payload:!1})}))}},u=t.getUserCommitRecord=function(e){return function(t,n){try{var r=n().ojForUserReducer.pages,i=r.limit,l=r.page;(0,a.fetchUserCommitRecord)(e,{limit:i,page:l}).then((function(e){if(e){var n=e.status,r=e.data;200===n&&t({type:o.default.COMMIT_RECORD,payload:r})}}))}catch(e){console.log(e,"-------")}}},f=(t.getUserCommitRecordDetail=function(e){return function(t){(0,a.fetchUserCommitRecordDetail)(e).then((function(e){var n=e.data;401!==n.status&&(t({type:o.default.GET_COMMIT_RECORD_DETAIL_BY_ID,payload:n}),t({type:o.default.CLICK_OPERATE_TYPE,payload:""}))}))}},t.saveUserInputCode=function(e){return{type:o.default.SAVE_USER_CODE,payload:e}},t.changeUserCodeTab=function(e){return{type:o.default.CHANGE_USER_CODE_TAB,payload:e}},t.submitUserCode=function(e,t,n){return function(t,r){var l=r().ojForUserReducer,s=l.editor_code,u=l.hack;(0,a.fetchUpdateCode)(e,{code:i.Base64.encode(s)}).then((function(r){401!==r.data.status?(t({type:o.default.IS_UPDATE_CODE,flag:!1}),(0,a.fetchUserCodeSubmit)(e).then((function(r){if(200===r.status){if(401===r.data.status)return void t({type:o.default.SUBMIT_LOADING_STATUS,payload:!1});c(t,e,n,u.time_limit,u.status,u.score,u.passed)}})).catch((function(){t({type:o.default.SUBMIT_LOADING_STATUS,payload:!1})}))):t({type:o.default.SUBMIT_LOADING_STATUS,payload:!1})})).catch((function(){t({type:o.default.SUBMIT_LOADING_STATUS,payload:!1})}))}},t.restoreInitialCode=function(e,t){return function(n){(0,a.fetchRestoreInitialCode)(e).then((function(e){if(401!==e.data.status){var i=e.status,a=e.data;200===i&&(n({type:o.default.RESTORE_INITIAL_CODE,payload:a.code}),r.default.success({message:"提示",description:t}),n({type:o.default.SAVE_NOTICE_COUNT,payload:!1}))}}))}},t.saveEditorCodeForDetail=function(e){return{type:o.default.SAVE_EDITOR_CODE,payload:e}},t.saveOpacityType=function(e){return{type:o.default.CLICK_OPERATE_TYPE,payload:e}});t.clearOjForUserReducer=function(){return{type:o.default.CLEAR_OJ_FOR_USER_REDUCER}},t.changeRecordPagination=function(e){return{type:o.default.CHANGE_RECORD_PAGINATION_PAGE,payload:e}},t.addNotes=function(e,t,n){return function(i){(0,a.fetchAddNotes)(e,t).then((function(e){i({type:o.default.LOADING_STATUS,payload:!1}),0===e.data.status&&(n&&n(),r.default.success({message:"提示",description:"添加笔记成功"}),i({type:o.default.UPDATE_NOTE_CONTENT,payload:t.notes}))})).catch((function(){i({type:o.default.LOADING_STATUS,payload:!1})}))}}},Hd6r:function(e,t,n){"use strict";n.r(t);n("C1Nm")},Hfiw:function(e,t,n){var r=n("Y7ZC");r(r.S,"Object",{setPrototypeOf:n("6tYhl").set})},Hsns:function(e,t,n){var r=n("93I4"),o=n("5T2Y").document,i=r(o)&&r(o.createElement);e.exports=function(e){return i?o.createElement(e):{}}},Hxic:function(e,t,n){var r=n("XKFU");r(r.S,"Math",{RAD_PER_DEG:180/Math.PI})},I2u6:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return e.replace(r,o)};var r=/[-\s]+(.)?/g;function o(e,t){return t?t.toUpperCase():""}},I5cv:function(e,t,n){var r=n("XKFU"),o=n("Kuth"),i=n("2OiF"),a=n("y3w9"),l=n("0/R4"),c=n("eeVq"),s=n("8MEG"),u=(n("dyZX").Reflect||{}).construct,f=c((function(){function e(){}return!(u((function(){}),[],e)instanceof e)})),h=!c((function(){u((function(){}))}));r(r.S+r.F*(f||h),"Reflect",{construct:function(e,t){i(e),a(t);var n=arguments.length<3?e:i(arguments[2]);if(h&&!f)return u(e,t,n);if(e==n){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var r=[null];return r.push.apply(r,t),new(s.apply(e,r))}var c=n.prototype,p=o(l(c)?c:Object.prototype),d=Function.apply.call(e,p,t);return l(d)?d:p}})},I74W:function(e,t,n){"use strict";n("qncB")("trimLeft",(function(e){return function(){return e(this,1)}}),"trimStart")},I78e:function(e,t,n){"use strict";var r=n("XKFU"),o=n("+rLv"),i=n("LZWt"),a=n("d/Gc"),l=n("ne8i"),c=[].slice;r(r.P+r.F*n("eeVq")((function(){o&&c.call(o)})),"Array",{slice:function(e,t){var n=l(this.length),r=i(this);if(t=void 0===t?n:t,"Array"==r)return c.call(this,e,t);for(var o=a(e,n),s=a(t,n),u=l(s-o),f=new Array(u),h=0;h1?arguments[1]:void 0)}}),n("nGyu")(i)},IP1Z:function(e,t,n){"use strict";var r=n("2faE"),o=n("rr1i");e.exports=function(e,t,n){t in e?r.f(e,t,o(0,n)):e[t]=n}},"IS4+":function(e,t,n){"use strict";var r=n("TqRt");Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.primary,n=void 0===t?{light:l.default[300],main:l.default[500],dark:l.default[700]}:t,r=e.secondary,v=void 0===r?{light:c.default.A200,main:c.default.A400,dark:c.default.A700}:r,y=e.error,g=void 0===y?{light:u.default[300],main:u.default[500],dark:u.default[700]}:y,b=e.type,w=void 0===b?"light":b,x=e.contrastThreshold,_=void 0===x?3:x,k=e.tonalOffset,S=void 0===k?.2:k,O=(0,i.default)(e,["primary","secondary","error","type","contrastThreshold","tonalOffset"]);function M(e){return(0,h.getContrastRatio)(e,d.text.primary)>=_?d.text.primary:p.text.primary}function T(e,t,n,r){!e.main&&e[t]&&(e.main=e[t]),m(e,"light",n,S),m(e,"dark",r,S),e.contrastText||(e.contrastText=M(e.main))}T(n,500,300,700),T(v,"A400","A200","A700"),T(g,500,300,700);var E={dark:d,light:p};return(0,a.default)((0,o.default)({common:f.default,type:w,primary:n,secondary:v,error:g,grey:s.default,contrastThreshold:_,getContrastText:M,augmentColor:T,tonalOffset:S},E[w]),O,{clone:!1})},t.dark=t.light=void 0;var o=r(n("MVZn")),i=r(n("QILm")),a=(r(n("PV3f")),r(n("WNwX"))),l=r(n("LacO")),c=r(n("sVKJ")),s=r(n("AK+3")),u=r(n("IWIc")),f=r(n("zOe8")),h=n("JS0+"),p={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)",hint:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:f.default.white,default:s.default[50]},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.08)",hoverOpacity:.08,selected:"rgba(0, 0, 0, 0.14)",disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)"}};t.light=p;var d={text:{primary:f.default.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",hint:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:s.default[800],default:"#303030"},action:{active:f.default.white,hover:"rgba(255, 255, 255, 0.1)",hoverOpacity:.1,selected:"rgba(255, 255, 255, 0.2)",disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)"}};function m(e,t,n,r){e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=(0,h.lighten)(e.main,r):"dark"===t&&(e.dark=(0,h.darken)(e.main,1.5*r)))}t.dark=d},"IU+Z":function(e,t,n){"use strict";n("sMXx");var r=n("KroJ"),o=n("Mukb"),i=n("eeVq"),a=n("vhPU"),l=n("K0xU"),c=n("Ugos"),s=l("species"),u=!i((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$")})),f=function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2===n.length&&"a"===n[0]&&"b"===n[1]}();e.exports=function(e,t,n){var h=l(e),p=!i((function(){var t={};return t[h]=function(){return 7},7!=""[e](t)})),d=p?!i((function(){var t=!1,n=/a/;return n.exec=function(){return t=!0,null},"split"===e&&(n.constructor={},n.constructor[s]=function(){return n}),n[h](""),!t})):void 0;if(!p||!d||"replace"===e&&!u||"split"===e&&!f){var m=/./[h],v=n(a,h,""[e],(function(e,t,n,r,o){return t.exec===c?p&&!o?{done:!0,value:m.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}})),y=v[0],g=v[1];r(String.prototype,e,y),o(RegExp.prototype,h,2==t?function(e,t){return g.call(e,this,t)}:function(e){return g.call(e,this)})}}},IWIc:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"};t.default=r},IXt9:function(e,t,n){"use strict";var r=n("0/R4"),o=n("OP3Y"),i=n("K0xU")("hasInstance"),a=Function.prototype;i in a||n("hswa").f(a,i,{value:function(e){if("function"!=typeof this||!r(e))return!1;if(!r(this.prototype))return e instanceof this;for(;e=o(e);)if(this.prototype===e)return!0;return!1}})},IdCh:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["to","href","targets","style2","style","className"]));return l.default.createElement(l.default.Fragment,null,null==t&&null==n?l.default.createElement("a",o({onClick:this.props.onClick,className:"btn "+s[this.props.style]+" "+(this.props.className||""),style:r},i),this.props.children):null!=n?l.default.createElement("a",o({href:t,target:"_blank",className:"btn "+s[this.props.style]+" "+this.props.className,style:r},i),this.props.children):l.default.createElement(c.Link,o({to:t,className:"btn "+s[this.props.style]+" "+(this.props.className||""),style:r},i),this.props.children))}}]),t}(a.Component);t.default=u},IeMT:function(e,t,n){"use strict";var r=n("TqRt");Object.defineProperty(t,"__esModule",{value:!0}),t.cloneElementWithClassName=a,t.cloneChildrenWithClassName=function(e,t){return o.default.Children.map(e,(function(e){return o.default.isValidElement(e)&&a(e,t)}))},t.isMuiElement=function(e,t){return o.default.isValidElement(e)&&-1!==t.indexOf(e.type.muiName)},t.isMuiComponent=function(e,t){return-1!==t.indexOf(e.muiName)};var o=r(n("q1tI")),i=r(n("TSYQ"));function a(e,t){return o.default.cloneElement(e,{className:(0,i.default)(e.props.className,t)})}},Ijbi:function(e,t){e.exports=function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t=0;)t^=d.G15<=0;)t^=d.G18<>>=1;return t},getPatternPosition:function(e){return d.PATTERN_POSITION_TABLE[e-1]},getMask:function(e,t,n){switch(e){case a:return(t+n)%2==0;case l:return t%2==0;case c:return n%3==0;case s:return(t+n)%3==0;case u:return(Math.floor(t/2)+Math.floor(n/3))%2==0;case f:return t*n%2+t*n%3==0;case h:return(t*n%2+t*n%3)%2==0;case p:return(t*n%3+(t+n)%2)%2==0;default:throw new Error("bad maskPattern:"+e)}},getErrorCorrectPolynomial:function(e){for(var t=new o([1],0),n=0;n5&&(n+=3+i-5)}for(r=0;r>>6)+fromCharCode(128|63&t):fromCharCode(224|t>>>12&15)+fromCharCode(128|t>>>6&63)+fromCharCode(128|63&t);var t=65536+1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320);return fromCharCode(240|t>>>18&7)+fromCharCode(128|t>>>12&63)+fromCharCode(128|t>>>6&63)+fromCharCode(128|63&t)},re_utob=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,utob=function(e){return e.replace(re_utob,cb_utob)},cb_encode=function(e){var t=[0,2,1][e.length%3],n=e.charCodeAt(0)<<16|(e.length>1?e.charCodeAt(1):0)<<8|(e.length>2?e.charCodeAt(2):0);return[b64chars.charAt(n>>>18),b64chars.charAt(n>>>12&63),t>=2?"=":b64chars.charAt(n>>>6&63),t>=1?"=":b64chars.charAt(63&n)].join("")},btoa=global.btoa?function(e){return global.btoa(e)}:function(e){return e.replace(/[\s\S]{1,3}/g,cb_encode)},_encode=function(e){return"[object Uint8Array]"===Object.prototype.toString.call(e)?e.toString("base64"):btoa(utob(String(e)))},encode=function(e,t){return t?_encode(String(e)).replace(/[+\/]/g,(function(e){return"+"==e?"-":"_"})).replace(/=/g,""):_encode(e)},encodeURI=function(e){return encode(e,!0)},re_btou=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,cb_btou=function(e){switch(e.length){case 4:var t=((7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3))-65536;return fromCharCode(55296+(t>>>10))+fromCharCode(56320+(1023&t));case 3:return fromCharCode((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return fromCharCode((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},btou=function(e){return e.replace(re_btou,cb_btou)},cb_decode=function(e){var t=e.length,n=t%4,r=(t>0?b64tab[e.charAt(0)]<<18:0)|(t>1?b64tab[e.charAt(1)]<<12:0)|(t>2?b64tab[e.charAt(2)]<<6:0)|(t>3?b64tab[e.charAt(3)]:0),o=[fromCharCode(r>>>16),fromCharCode(r>>>8&255),fromCharCode(255&r)];return o.length-=[0,0,2,1][n],o.join("")},_atob=global.atob?function(e){return global.atob(e)}:function(e){return e.replace(/\S{1,4}/g,cb_decode)},atob=function(e){return _atob(String(e).replace(/[^A-Za-z0-9\+\/]/g,""))},_decode=buffer?buffer.from&&Uint8Array&&buffer.from!==Uint8Array.from?function(e){return(e.constructor===buffer.constructor?e:buffer.from(e,"base64")).toString()}:function(e){return(e.constructor===buffer.constructor?e:new buffer(e,"base64")).toString()}:function(e){return btou(_atob(e))},decode=function(e){return _decode(String(e).replace(/[-_]/g,(function(e){return"-"==e?"+":"/"})).replace(/[^A-Za-z0-9\+\/]/g,""))},noConflict=function(){var e=global.Base64;return global.Base64=_Base64,e};if(global.Base64={VERSION:version,atob:atob,btoa:btoa,fromBase64:decode,toBase64:encode,utob:utob,encode:encode,encodeURI:encodeURI,btou:btou,decode:decode,noConflict:noConflict,__buffer__:buffer},"function"==typeof Object.defineProperty){var noEnum=function(e){return{value:e,enumerable:!1,writable:!0,configurable:!0}};global.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",noEnum((function(){return decode(this)}))),Object.defineProperty(String.prototype,"toBase64",noEnum((function(e){return encode(this,e)}))),Object.defineProperty(String.prototype,"toBase64URI",noEnum((function(){return encode(this,!0)})))}}return global.Meteor&&(Base64=global.Base64),module.exports?module.exports.Base64=global.Base64:(__WEBPACK_AMD_DEFINE_ARRAY__=[],__WEBPACK_AMD_DEFINE_RESULT__=function(){return global.Base64}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__),void 0===__WEBPACK_AMD_DEFINE_RESULT__||(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)),{Base64:global.Base64}}))}).call(this,__webpack_require__("yLpj"))},J6Do:function(e,t,n){"use strict";var r=n("TqRt");Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"DialogActions",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"DialogTitle",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"DialogContent",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"DialogContentText",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"withMobileDialog",{enumerable:!0,get:function(){return s.default}});var o=r(n("cSWV")),i=r(n("CFxG")),a=r(n("viCs")),l=r(n("r+0b")),c=r(n("VDLE")),s=r(n("kM5N"))},J7Ao:function(e,t){e.exports=class{constructor(){this.seen={}}slug(e){let t=e.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-");if(this.seen.hasOwnProperty(t)){const e=t;do{this.seen[e]++,t=e+"-"+this.seen[e]}while(this.seen.hasOwnProperty(t))}return this.seen[t]=0,t}}},J9Du:function(e,t,n){"use strict";n.d(t,"b",(function(){return c}));var r=n("EJiy"),o=n.n(r),i=n("/dDc"),a=n("PFWz"),l=n.n(a),c=0!==i.a.endEvents.length,s=["Webkit","Moz","O","ms"],u=["-webkit-","-moz-","-o-","ms-",""];function f(e,t){for(var n=window.getComputedStyle(e,null),r="",o=0;o=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],(function(e){s.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){s.headers[e]=r.merge(a)})),e.exports=s}).call(this,n("KCCg"))},JEiT:function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){if(!e)return e;for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r1&&void 0!==arguments[1]?arguments[1]:.15;return c(e)>.5?s(e,t):u(e,t)},t.fade=function(e,t){if(!e)return e;e=a(e),t=o(t),("rgb"===e.type||"hsl"===e.type)&&(e.type+="a");return e.values[3]=t,l(e)},t.darken=s,t.lighten=u;r(n("PV3f"));function o(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return en?n:e}function i(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length/3,"}"),"g"),n=e.match(t);return n&&1===n[0].length&&(n=n.map((function(e){return e+e}))),n?"rgb(".concat(n.map((function(e){return parseInt(e,16)})).join(", "),")"):""}function a(e){if("#"===e.charAt(0))return a(i(e));var t=e.indexOf("("),n=e.substring(0,t),r=e.substring(t+1,e.length-1).split(",");return{type:n,values:r=r.map((function(e){return parseFloat(e)}))}}function l(e){var t=e.type,n=e.values;return-1!==t.indexOf("rgb")&&(n=n.map((function(e,t){return t<3?parseInt(e,10):e}))),-1!==t.indexOf("hsl")&&(n[1]="".concat(n[1],"%"),n[2]="".concat(n[2],"%")),"".concat(e.type,"(").concat(n.join(", "),")")}function c(e){var t=a(e);if(-1!==t.type.indexOf("rgb")){var n=t.values.map((function(e){return(e/=255)<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)}));return Number((.2126*n[0]+.7152*n[1]+.0722*n[2]).toFixed(3))}return t.values[2]/100}function s(e,t){if(!e)return e;if(e=a(e),t=o(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]*=1-t;return l(e)}function u(e,t){if(!e)return e;if(e=a(e),t=o(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;return l(e)}},JbBM:function(e,t,n){n("Hfiw"),e.exports=n("WEpk").Object.setPrototypeOf},Jcmo:function(e,t,n){var r=n("XKFU"),o=Math.exp;r(r.S,"Math",{cosh:function(e){return(o(e=+e)+o(-e))/2}})},JduL:function(e,t,n){n("Xtr8")("getOwnPropertyNames",(function(){return n("e7yV").f}))},Jes0:function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},JgYk:function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},"Ji/l":function(e,t,n){var r=n("XKFU");r(r.G+r.W+r.F*!n("D4iV").ABV,{DataView:n("7Qtz").DataView})},JiEa:function(e,t){t.f=Object.getOwnPropertySymbols},Jnur:function(e,t,n){"use strict";var r=n("TqRt");Object.defineProperty(t,"__esModule",{value:!0}),t.setTranslateValue=k,t.default=void 0;var o=r(n("pVnL")),i=r(n("QILm")),a=r(n("MVZn")),l=r(n("cWOT")),c=r(n("lwsE")),s=r(n("W8MJ")),u=r(n("a1gu")),f=r(n("7W2i")),h=r(n("PJYZ")),p=r(n("q1tI")),d=(r(n("17x9")),r(n("i8i4"))),m=r(n("DKAG")),v=r(n("sEfC")),y=r(n("S3Uj")),g=n("VCL8"),b=r(n("8oxe")),w=r(n("PfIm")),x=n("8jD+"),_=n("foiH");function k(e,t){var n=function(e,t){var n,r=e.direction,o=t.getBoundingClientRect();if(t.fakeTransform)n=t.fakeTransform;else{var i=(0,b.default)(t).getComputedStyle(t);n=i.getPropertyValue("-webkit-transform")||i.getPropertyValue("transform")}var a=0,l=0;if(n&&"none"!==n&&"string"==typeof n){var c=n.split("(")[1].split(")")[0].split(",");a=parseInt(c[4],10),l=parseInt(c[5],10)}return"left"===r?"translateX(100vw) translateX(-".concat(o.left-a,"px)"):"right"===r?"translateX(-".concat(o.left+o.width+24-a,"px)"):"up"===r?"translateY(100vh) translateY(-".concat(o.top-l,"px)"):"translateY(-".concat(o.top+o.height+24-l,"px)")}(e,t);n&&(t.style.webkitTransform=n,t.style.transform=n)}var S=function(e){function t(){var e,n,r;(0,c.default)(this,t);for(var o=arguments.length,i=new Array(o),s=0;s1)for(var n=1;n1||"".split(/.?/)[p]?function(e,t){var o=String(this);if(void 0===e&&0===t)return[];if(!r(e))return n.call(o,e,t);for(var i,a,l,c=[],u=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),f=0,d=void 0===t?4294967295:t>>>0,m=new RegExp(e.source,u+"g");(i=s.call(m,o))&&!((a=m.lastIndex)>f&&(c.push(o.slice(f,i.index)),i[p]>1&&i.index=d));)m.lastIndex===i.index&&m.lastIndex++;return f===o[p]?!l&&m.test("")||c.push(""):c.push(o.slice(f)),c[p]>d?c.slice(0,d):c}:"0".split(void 0,0)[p]?function(e,t){return void 0===e&&0===t?[]:n.call(this,e,t)}:n,[function(n,r){var o=e(this),i=null==n?void 0:n[t];return void 0!==i?i.call(n,o,r):m.call(String(o),n,r)},function(e,t){var r=u(m,e,this,t,m!==n);if(r.done)return r.value;var s=o(e),h=String(this),p=i(s,RegExp),v=s.unicode,y=(s.ignoreCase?"i":"")+(s.multiline?"m":"")+(s.unicode?"u":"")+(d?"y":"g"),g=new p(d?s:"^(?:"+s.source+")",y),b=void 0===t?4294967295:t>>>0;if(0===b)return[];if(0===h.length)return null===c(g,h)?[h]:[];for(var w=0,x=0,_=[];x1&&void 0!==arguments[1]?arguments[1]:0;return e.substr(t,e.indexOf("{")-1)},function(e){if(e.type===d)return e.selectorText;if(e.type===m){var t=e.name;if(t)return"@keyframes "+t;var n=e.cssText;return"@"+p(n,n.indexOf("keyframes"))}return p(e.cssText)});function y(e,t){return e.selectorText=t,e.selectorText===t}var g,b,w=s((function(){return document.head||document.getElementsByTagName("head")[0]})),x=(g=void 0,b=!1,function(e){var t={};g||(g=document.createElement("style"));for(var n=0;n0){var n=function(e,t){for(var n=0;nt.index&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e);if(n)return n.renderer.element;if(n=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];if(r.attached&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e))return n.renderer.element.nextElementSibling}var r=e.insertionPoint;if(r&&"string"==typeof r){var a=function(e){for(var t=w(),n=0;ndocument.F=Object<\/script>"),e.close(),c=e.F;r--;)delete c.prototype[i[r]];return c()};e.exports=Object.create||function(e,t){var n;return null!==e?(l.prototype=r(e),n=new l,l.prototype=null,n[a]=e):n=c(),void 0===t?n:o(n,t)}},Kwbf:function(e,t,n){"use strict";var r={};function o(e,t){0}function i(e,t,n){t||r[n]||(e(!1,n),r[n]=!0)}t.a=function(e,t){i(o,e,t)}},Kx9E:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n>>0,i=n>>>0;return(t>>>0)-(r>>>0)-((~o&i|~(o^i)&o-i>>>0)>>>31)|0}})},L9s1:function(e,t,n){"use strict";var r=n("XKFU"),o=n("0sh+");r(r.P+r.F*n("UUeW")("includes"),"String",{includes:function(e){return!!~o(this,e,"includes").indexOf(e,arguments.length>1?arguments[1]:void 0)}})},"LC8+":function(e,t,n){},LFwo:function(e,t,n){"use strict";t.__esModule=!0,t.subqueryOmit=t.subquery=t.urlQueryReducer=t.urlQueryMiddleware=t.urlMultiPushInAction=t.urlMultiReplaceInAction=t.urlPushInAction=t.urlReplaceInAction=t.urlPushAction=t.urlReplaceAction=t.urlAction=t.multiPushInUrlQueryFromAction=t.pushUrlQueryFromAction=t.pushInUrlQueryFromAction=t.multiReplaceInUrlQueryFromAction=t.replaceUrlQueryFromAction=t.replaceInUrlQueryFromAction=t.RouterToUrlQuery=t.addUrlProps=t.UrlUpdateTypes=t.UrlQueryParamTypes=t.urlQueryEncoder=t.urlQueryDecoder=t.multiPushInUrlQuery=t.multiReplaceInUrlQuery=t.pushUrlQuery=t.pushInUrlQuery=t.replaceUrlQuery=t.replaceInUrlQuery=t.decode=t.encode=t.Serialize=t.configureUrlQuery=void 0;var r=n("+MfF");Object.defineProperty(t,"encode",{enumerable:!0,get:function(){return r.encode}}),Object.defineProperty(t,"decode",{enumerable:!0,get:function(){return r.decode}});var o=n("5fYu");Object.defineProperty(t,"replaceInUrlQuery",{enumerable:!0,get:function(){return o.replaceInUrlQuery}}),Object.defineProperty(t,"replaceUrlQuery",{enumerable:!0,get:function(){return o.replaceUrlQuery}}),Object.defineProperty(t,"pushInUrlQuery",{enumerable:!0,get:function(){return o.pushInUrlQuery}}),Object.defineProperty(t,"pushUrlQuery",{enumerable:!0,get:function(){return o.pushUrlQuery}}),Object.defineProperty(t,"multiReplaceInUrlQuery",{enumerable:!0,get:function(){return o.multiReplaceInUrlQuery}}),Object.defineProperty(t,"multiPushInUrlQuery",{enumerable:!0,get:function(){return o.multiPushInUrlQuery}});var i=n("Mos3");Object.defineProperty(t,"replaceInUrlQueryFromAction",{enumerable:!0,get:function(){return i.replaceInUrlQueryFromAction}}),Object.defineProperty(t,"replaceUrlQueryFromAction",{enumerable:!0,get:function(){return i.replaceUrlQueryFromAction}}),Object.defineProperty(t,"multiReplaceInUrlQueryFromAction",{enumerable:!0,get:function(){return i.multiReplaceInUrlQueryFromAction}}),Object.defineProperty(t,"pushInUrlQueryFromAction",{enumerable:!0,get:function(){return i.pushInUrlQueryFromAction}}),Object.defineProperty(t,"pushUrlQueryFromAction",{enumerable:!0,get:function(){return i.pushUrlQueryFromAction}}),Object.defineProperty(t,"multiPushInUrlQueryFromAction",{enumerable:!0,get:function(){return i.multiPushInUrlQueryFromAction}});var a=n("K7Q1");Object.defineProperty(t,"urlReplaceAction",{enumerable:!0,get:function(){return a.urlReplaceAction}}),Object.defineProperty(t,"urlPushAction",{enumerable:!0,get:function(){return a.urlPushAction}}),Object.defineProperty(t,"urlReplaceInAction",{enumerable:!0,get:function(){return a.urlReplaceInAction}}),Object.defineProperty(t,"urlPushInAction",{enumerable:!0,get:function(){return a.urlPushInAction}}),Object.defineProperty(t,"urlMultiReplaceInAction",{enumerable:!0,get:function(){return a.urlMultiReplaceInAction}}),Object.defineProperty(t,"urlMultiPushInAction",{enumerable:!0,get:function(){return a.urlMultiPushInAction}});var l=w(n("q0cm")),c=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(r),s=w(n("qw/J")),u=w(n("a4qL")),f=w(n("tOWm")),h=w(n("pAdL")),p=w(n("pqSw")),d=w(n("KYhp")),m=w(a),v=w(n("QB/3")),y=w(n("rnRR")),g=w(n("JEiT")),b=w(n("Ur2m"));function w(e){return e&&e.__esModule?e:{default:e}}t.configureUrlQuery=l.default,t.Serialize=c,t.urlQueryDecoder=s.default,t.urlQueryEncoder=u.default,t.UrlQueryParamTypes=f.default,t.UrlUpdateTypes=h.default,t.addUrlProps=p.default,t.RouterToUrlQuery=d.default,t.urlAction=m.default,t.urlQueryMiddleware=v.default,t.urlQueryReducer=y.default,t.subquery=g.default,t.subqueryOmit=b.default},LIAx:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n,r){function o(t){var r=new i.default(t);n.call(e,r)}if(e.addEventListener){var a=(l=!1,"object"==typeof r?l=r.capture||!1:"boolean"==typeof r&&(l=r),e.addEventListener(t,o,r||!1),{v:{remove:function(){e.removeEventListener(t,o,l)}}});if("object"==typeof a)return a.v}else if(e.attachEvent)return e.attachEvent("on"+t,o),{remove:function(){e.detachEvent("on"+t,o)}};var l};var r,o=n("E0u0"),i=(r=o)&&r.__esModule?r:{default:r};e.exports=t.default},LK8F:function(e,t,n){var r=n("XKFU");r(r.S,"Array",{isArray:n("EWmC")})},LLoX:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Vimeo=void 0;var r,o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==c(e)&&"function"!=typeof e)return{default:e};var t=l();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n("q1tI")),i=n("tbWI"),a=(r=n("LVMo"))&&r.__esModule?r:{default:r};function l(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return l=function(){return e},e}function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:"player";return e.player?e.player.getInternalPlayer(t):null})),w(v(e),"seekTo",(function(t,n){if(!e.player)return null;e.player.seekTo(t,n)})),w(v(e),"ref",(function(t){e.player=t})),e}return function(e,t,n){t&&d(e.prototype,t);n&&d(e,n)}(c,[{key:"shouldComponentUpdate",value:function(e){return!(0,a.isEqual)(this.props,e)}},{key:"componentDidUpdate",value:function(){this.config=(0,a.getConfig)(this.props,i.defaultProps)}},{key:"render",value:function(){var t=this.config.file,n=t.forceVideo,r=t.forceAudio,c=t.forceHLS,s=t.forceDASH,f=n||r||c||s;if(!e.canPlay(this.props.url)&&!f)return null;var p=this.props,d=p.style,m=p.width,v=p.height,y=p.wrapper,g=(0,a.omit)(this.props,x,i.DEPRECATED_CONFIG_PROPS);return o.default.createElement(y,u({style:h({},d,{width:m,height:v})},g),o.default.createElement(l.default,u({},this.props,{ref:this.ref,activePlayer:e,config:this.config})))}}]),c}(o.Component),w(t,"displayName","".concat(e.displayName,"Player")),w(t,"propTypes",i.propTypes),w(t,"defaultProps",i.defaultProps),w(t,"canPlay",e.canPlay),n};var r,o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==s(e)&&"function"!=typeof e)return{default:e};var t=c();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n("q1tI")),i=n("QXAm"),a=n("tbWI"),l=(r=n("q+qS"))&&r.__esModule?r:{default:r};function c(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return c=function(){return e},e}function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(){return(u=Object.assign||function(e){for(var t=1;t22025.465794806718||n(10)<22025.465794806718||-2e-17!=n(-2e-17)?function(e){return 0==(e=+e)?e:e>-1e-6&&e<1e-6?e+e*e/2:Math.exp(e)-1}:n},LWYa:function(e,t,n){"use strict";var r=n("q1tI"),o=n.n(r),i=n("17x9"),a=n.n(i),l=n("QLaP"),c=n.n(l);function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var f=function(e){function t(){return s(this,t),u(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.enable=function(e){this.unblock&&this.unblock(),this.unblock=this.context.router.history.block(e)},t.prototype.disable=function(){this.unblock&&(this.unblock(),this.unblock=null)},t.prototype.componentWillMount=function(){c()(this.context.router,"You should not use outside a "),this.props.when&&this.enable(this.props.message)},t.prototype.componentWillReceiveProps=function(e){e.when?this.props.when&&this.props.message===e.message||this.enable(e.message):this.disable()},t.prototype.componentWillUnmount=function(){this.disable()},t.prototype.render=function(){return null},t}(o.a.Component);f.propTypes={when:a.a.bool,message:a.a.oneOfType([a.a.func,a.a.string]).isRequired},f.defaultProps={when:!0},f.contextTypes={router:a.a.shape({history:a.a.shape({block:a.a.func.isRequired}).isRequired}).isRequired},t.a=f},LYNF:function(e,t,n){"use strict";var r=n("OH9c");e.exports=function(e,t,n,o,i){var a=new Error(e);return r(a,t,n,o,i)}},LZWt:function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},LacO:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",A100:"#8c9eff",A200:"#536dfe",A400:"#3d5afe",A700:"#304ffe"};t.default=r},Lgjv:function(e,t,n){var r=n("ne8i"),o=n("l0Rn"),i=n("vhPU");e.exports=function(e,t,n,a){var l=String(i(e)),c=l.length,s=void 0===n?" ":String(n),u=r(t);if(u<=c||""==s)return l;var f=u-c,h=o.call(s,Math.ceil(f/s.length));return h.length>f&&(h=h.slice(0,f)),a?h+l:l+h}},LhCv:function(e,t,n){"use strict";function r(){return(r=Object.assign||function(e){for(var t=1;t=0;h--){var p=a[h];"."===p?i(a,h):".."===p?(i(a,h),f++):f&&(i(a,h),f--)}if(!s)for(;f--;f)a.unshift("..");!s||""===a[0]||a[0]&&o(a[0])||a.unshift("");var d=a.join("/");return n&&"/"!==d.substr(-1)&&(d+="/"),d};function l(e){return e.valueOf?e.valueOf():Object.prototype.valueOf.call(e)}var c=function e(t,n){if(t===n)return!0;if(null==t||null==n)return!1;if(Array.isArray(t))return Array.isArray(n)&&t.length===n.length&&t.every((function(t,r){return e(t,n[r])}));if("object"==typeof t||"object"==typeof n){var r=l(t),o=l(n);return r!==t||o!==n?e(r,o):Object.keys(Object.assign({},t,n)).every((function(r){return e(t[r],n[r])}))}return!1};var s=function(e,t){if(!e)throw new Error("Invariant failed")};function u(e){return"/"===e.charAt(0)?e:"/"+e}function f(e){return"/"===e.charAt(0)?e.substr(1):e}function h(e,t){return function(e,t){return 0===e.toLowerCase().indexOf(t.toLowerCase())&&-1!=="/?#".indexOf(e.charAt(t.length))}(e,t)?e.substr(t.length):e}function p(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}function d(e){var t=e||"/",n="",r="",o=t.indexOf("#");-1!==o&&(r=t.substr(o),t=t.substr(0,o));var i=t.indexOf("?");return-1!==i&&(n=t.substr(i),t=t.substr(0,i)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}}function m(e){var t=e.pathname,n=e.search,r=e.hash,o=t||"/";return n&&"?"!==n&&(o+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(o+="#"===r.charAt(0)?r:"#"+r),o}function v(e,t,n,o){var i;"string"==typeof e?(i=d(e)).state=t:(void 0===(i=r({},e)).pathname&&(i.pathname=""),i.search?"?"!==i.search.charAt(0)&&(i.search="?"+i.search):i.search="",i.hash?"#"!==i.hash.charAt(0)&&(i.hash="#"+i.hash):i.hash="",void 0!==t&&void 0===i.state&&(i.state=t));try{i.pathname=decodeURI(i.pathname)}catch(e){throw e instanceof URIError?new URIError('Pathname "'+i.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):e}return n&&(i.key=n),o?i.pathname?"/"!==i.pathname.charAt(0)&&(i.pathname=a(i.pathname,o.pathname)):i.pathname=o.pathname:i.pathname||(i.pathname="/"),i}function y(e,t){return e.pathname===t.pathname&&e.search===t.search&&e.hash===t.hash&&e.key===t.key&&c(e.state,t.state)}function g(){var e=null;var t=[];return{setPrompt:function(t){return e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,r,o){if(null!=e){var i="function"==typeof e?e(t,n):e;"string"==typeof i?"function"==typeof r?r(i,o):o(!0):o(!1!==i)}else o(!0)},appendListener:function(e){var n=!0;function r(){n&&e.apply(void 0,arguments)}return t.push(r),function(){n=!1,t=t.filter((function(e){return e!==r}))}},notifyListeners:function(){for(var e=arguments.length,n=new Array(e),r=0;rt?n.splice(t,n.length-t,r):n.push(r),f({action:"PUSH",location:r,index:t,entries:n})}}))},replace:function(e,t){var r=v(e,t,h(),w.location);u.confirmTransitionTo(r,"REPLACE",n,(function(e){e&&(w.entries[w.index]=r,f({action:"REPLACE",location:r}))}))},go:b,goBack:function(){b(-1)},goForward:function(){b(1)},canGo:function(e){var t=w.index+e;return t>=0&&t (GFM Style)",type:"boolean"},requireSpaceBeforeHeadingText:{defaultValue:!1,description:"Makes adding a space between `#` and the header text mandatory (GFM Style)",type:"boolean"},ghMentions:{defaultValue:!1,description:"Enables github @mentions",type:"boolean"},ghMentionsLink:{defaultValue:"https://github.com/{u}",description:"Changes the link generated by @mentions. Only applies if ghMentions option is enabled.",type:"string"},encodeEmails:{defaultValue:!0,description:"Encode e-mail addresses through the use of Character Entities, transforming ASCII e-mail addresses into its equivalent decimal entities",type:"boolean"},openLinksInNewWindow:{defaultValue:!1,description:"Open all links in new windows",type:"boolean"},backslashEscapesHTMLTags:{defaultValue:!1,description:"Support for HTML Tag escaping. ex:
foo
",type:"boolean"},emoji:{defaultValue:!1,description:"Enable emoji support. Ex: `this is a :smile: emoji`",type:"boolean"},underline:{defaultValue:!1,description:"Enable support for underline. Syntax is double or triple underscores: `__underline word__`. With this option enabled, underscores no longer parses into `` and ``",type:"boolean"},completeHTMLDocument:{defaultValue:!1,description:"Outputs a complete html document, including ``, `` and `` tags",type:"boolean"},metadata:{defaultValue:!1,description:"Enable support for document metadata (defined at the top of the document between `«««` and `»»»` or between `---` and `---`).",type:"boolean"},splitAdjacentBlockquotes:{defaultValue:!1,description:"Split adjacent blockquote blocks",type:"boolean"}};if(!1===e)return JSON.parse(JSON.stringify(t));var n={};for(var r in t)t.hasOwnProperty(r)&&(n[r]=t[r].defaultValue);return n}var i={},a={},l={},c=o(!0),s="vanilla",u={github:{omitExtraWLInCodeBlocks:!0,simplifiedAutoLink:!0,excludeTrailingPunctuationFromURLs:!0,literalMidWordUnderscores:!0,strikethrough:!0,tables:!0,tablesHeaderId:!0,ghCodeBlocks:!0,tasklists:!0,disableForced4SpacesIndentedSublists:!0,simpleLineBreaks:!0,requireSpaceBeforeHeadingText:!0,ghCompatibleHeaderId:!0,ghMentions:!0,backslashEscapesHTMLTags:!0,emoji:!0,splitAdjacentBlockquotes:!0},original:{noHeaderId:!0,ghCodeBlocks:!1},ghost:{omitExtraWLInCodeBlocks:!0,parseImgDimensions:!0,simplifiedAutoLink:!0,excludeTrailingPunctuationFromURLs:!0,literalMidWordUnderscores:!0,strikethrough:!0,tables:!0,tablesHeaderId:!0,ghCodeBlocks:!0,tasklists:!0,smoothLivePreview:!0,simpleLineBreaks:!0,requireSpaceBeforeHeadingText:!0,ghMentions:!1,encodeEmails:!0},vanilla:o(!0),allOn:function(){"use strict";var e=o(!0),t={};for(var n in e)e.hasOwnProperty(n)&&(t[n]=!0);return t}()};function f(e,t){"use strict";var n=t?"Error in "+t+" extension->":"Error in unnamed extension",r={valid:!0,error:""};i.helper.isArray(e)||(e=[e]);for(var o=0;o").replace(/&/g,"&")};var p=function(e,t,n,r){"use strict";var o,i,a,l,c,s=r||"",u=s.indexOf("g")>-1,f=new RegExp(t+"|"+n,"g"+s.replace(/g/g,"")),h=new RegExp(t,s.replace(/g/g,"")),p=[];do{for(o=0;a=f.exec(e);)if(h.test(a[0]))o++||(l=(i=f.lastIndex)-a[0].length);else if(o&&!--o){c=a.index+a[0].length;var d={left:{start:l,end:i},match:{start:i,end:a.index},right:{start:a.index,end:c},wholeMatch:{start:l,end:c}};if(p.push(d),!u)return p}}while(o&&(f.lastIndex=i));return p};i.helper.matchRecursiveRegExp=function(e,t,n,r){"use strict";for(var o=p(e,t,n,r),i=[],a=0;a0){var u=[];0!==l[0].wholeMatch.start&&u.push(e.slice(0,l[0].wholeMatch.start));for(var f=0;f=0?r+(n||0):r},i.helper.splitAtIndex=function(e,t){"use strict";if(!i.helper.isString(e))throw"InvalidArgumentError: first parameter of showdown.helper.regexIndexOf function must be a string";return[e.substring(0,t),e.substring(t)]},i.helper.encodeEmailAddress=function(e){"use strict";var t=[function(e){return"&#"+e.charCodeAt(0)+";"},function(e){return"&#x"+e.charCodeAt(0).toString(16)+";"},function(e){return e}];return e=e.replace(/./g,(function(e){if("@"===e)e=t[Math.floor(2*Math.random())](e);else{var n=Math.random();e=n>.9?t[2](e):n>.45?t[1](e):t[0](e)}return e}))},i.helper.padEnd=function(e,t,n){"use strict";return t>>=0,n=String(n||" "),e.length>t?String(e):((t-=e.length)>n.length&&(n+=n.repeat(t/n.length)),String(e)+n.slice(0,t))},"undefined"==typeof console&&(console={warn:function(e){"use strict";alert(e)},log:function(e){"use strict";alert(e)},error:function(e){"use strict";throw e}}),i.helper.regexes={asteriskDashAndColon:/([*_:~])/g},i.helper.emojis={"+1":"👍","-1":"👎",100:"💯",1234:"🔢","1st_place_medal":"🥇","2nd_place_medal":"🥈","3rd_place_medal":"🥉","8ball":"🎱",a:"🅰️",ab:"🆎",abc:"🔤",abcd:"🔡",accept:"🉑",aerial_tramway:"🚡",airplane:"✈️",alarm_clock:"⏰",alembic:"⚗️",alien:"👽",ambulance:"🚑",amphora:"🏺",anchor:"⚓️",angel:"👼",anger:"💢",angry:"😠",anguished:"😧",ant:"🐜",apple:"🍎",aquarius:"♒️",aries:"♈️",arrow_backward:"◀️",arrow_double_down:"⏬",arrow_double_up:"⏫",arrow_down:"⬇️",arrow_down_small:"🔽",arrow_forward:"▶️",arrow_heading_down:"⤵️",arrow_heading_up:"⤴️",arrow_left:"⬅️",arrow_lower_left:"↙️",arrow_lower_right:"↘️",arrow_right:"➡️",arrow_right_hook:"↪️",arrow_up:"⬆️",arrow_up_down:"↕️",arrow_up_small:"🔼",arrow_upper_left:"↖️",arrow_upper_right:"↗️",arrows_clockwise:"🔃",arrows_counterclockwise:"🔄",art:"🎨",articulated_lorry:"🚛",artificial_satellite:"🛰",astonished:"😲",athletic_shoe:"👟",atm:"🏧",atom_symbol:"⚛️",avocado:"🥑",b:"🅱️",baby:"👶",baby_bottle:"🍼",baby_chick:"🐤",baby_symbol:"🚼",back:"🔙",bacon:"🥓",badminton:"🏸",baggage_claim:"🛄",baguette_bread:"🥖",balance_scale:"⚖️",balloon:"🎈",ballot_box:"🗳",ballot_box_with_check:"☑️",bamboo:"🎍",banana:"🍌",bangbang:"‼️",bank:"🏦",bar_chart:"📊",barber:"💈",baseball:"⚾️",basketball:"🏀",basketball_man:"⛹️",basketball_woman:"⛹️‍♀️",bat:"🦇",bath:"🛀",bathtub:"🛁",battery:"🔋",beach_umbrella:"🏖",bear:"🐻",bed:"🛏",bee:"🐝",beer:"🍺",beers:"🍻",beetle:"🐞",beginner:"🔰",bell:"🔔",bellhop_bell:"🛎",bento:"🍱",biking_man:"🚴",bike:"🚲",biking_woman:"🚴‍♀️",bikini:"👙",biohazard:"☣️",bird:"🐦",birthday:"🎂",black_circle:"⚫️",black_flag:"🏴",black_heart:"🖤",black_joker:"🃏",black_large_square:"⬛️",black_medium_small_square:"◾️",black_medium_square:"◼️",black_nib:"✒️",black_small_square:"▪️",black_square_button:"🔲",blonde_man:"👱",blonde_woman:"👱‍♀️",blossom:"🌼",blowfish:"🐡",blue_book:"📘",blue_car:"🚙",blue_heart:"💙",blush:"😊",boar:"🐗",boat:"⛵️",bomb:"💣",book:"📖",bookmark:"🔖",bookmark_tabs:"📑",books:"📚",boom:"💥",boot:"👢",bouquet:"💐",bowing_man:"🙇",bow_and_arrow:"🏹",bowing_woman:"🙇‍♀️",bowling:"🎳",boxing_glove:"🥊",boy:"👦",bread:"🍞",bride_with_veil:"👰",bridge_at_night:"🌉",briefcase:"💼",broken_heart:"💔",bug:"🐛",building_construction:"🏗",bulb:"💡",bullettrain_front:"🚅",bullettrain_side:"🚄",burrito:"🌯",bus:"🚌",business_suit_levitating:"🕴",busstop:"🚏",bust_in_silhouette:"👤",busts_in_silhouette:"👥",butterfly:"🦋",cactus:"🌵",cake:"🍰",calendar:"📆",call_me_hand:"🤙",calling:"📲",camel:"🐫",camera:"📷",camera_flash:"📸",camping:"🏕",cancer:"♋️",candle:"🕯",candy:"🍬",canoe:"🛶",capital_abcd:"🔠",capricorn:"♑️",car:"🚗",card_file_box:"🗃",card_index:"📇",card_index_dividers:"🗂",carousel_horse:"🎠",carrot:"🥕",cat:"🐱",cat2:"🐈",cd:"💿",chains:"⛓",champagne:"🍾",chart:"💹",chart_with_downwards_trend:"📉",chart_with_upwards_trend:"📈",checkered_flag:"🏁",cheese:"🧀",cherries:"🍒",cherry_blossom:"🌸",chestnut:"🌰",chicken:"🐔",children_crossing:"🚸",chipmunk:"🐿",chocolate_bar:"🍫",christmas_tree:"🎄",church:"⛪️",cinema:"🎦",circus_tent:"🎪",city_sunrise:"🌇",city_sunset:"🌆",cityscape:"🏙",cl:"🆑",clamp:"🗜",clap:"👏",clapper:"🎬",classical_building:"🏛",clinking_glasses:"🥂",clipboard:"📋",clock1:"🕐",clock10:"🕙",clock1030:"🕥",clock11:"🕚",clock1130:"🕦",clock12:"🕛",clock1230:"🕧",clock130:"🕜",clock2:"🕑",clock230:"🕝",clock3:"🕒",clock330:"🕞",clock4:"🕓",clock430:"🕟",clock5:"🕔",clock530:"🕠",clock6:"🕕",clock630:"🕡",clock7:"🕖",clock730:"🕢",clock8:"🕗",clock830:"🕣",clock9:"🕘",clock930:"🕤",closed_book:"📕",closed_lock_with_key:"🔐",closed_umbrella:"🌂",cloud:"☁️",cloud_with_lightning:"🌩",cloud_with_lightning_and_rain:"⛈",cloud_with_rain:"🌧",cloud_with_snow:"🌨",clown_face:"🤡",clubs:"♣️",cocktail:"🍸",coffee:"☕️",coffin:"⚰️",cold_sweat:"😰",comet:"☄️",computer:"💻",computer_mouse:"🖱",confetti_ball:"🎊",confounded:"😖",confused:"😕",congratulations:"㊗️",construction:"🚧",construction_worker_man:"👷",construction_worker_woman:"👷‍♀️",control_knobs:"🎛",convenience_store:"🏪",cookie:"🍪",cool:"🆒",policeman:"👮",copyright:"©️",corn:"🌽",couch_and_lamp:"🛋",couple:"👫",couple_with_heart_woman_man:"💑",couple_with_heart_man_man:"👨‍❤️‍👨",couple_with_heart_woman_woman:"👩‍❤️‍👩",couplekiss_man_man:"👨‍❤️‍💋‍👨",couplekiss_man_woman:"💏",couplekiss_woman_woman:"👩‍❤️‍💋‍👩",cow:"🐮",cow2:"🐄",cowboy_hat_face:"🤠",crab:"🦀",crayon:"🖍",credit_card:"💳",crescent_moon:"🌙",cricket:"🏏",crocodile:"🐊",croissant:"🥐",crossed_fingers:"🤞",crossed_flags:"🎌",crossed_swords:"⚔️",crown:"👑",cry:"😢",crying_cat_face:"😿",crystal_ball:"🔮",cucumber:"🥒",cupid:"💘",curly_loop:"➰",currency_exchange:"💱",curry:"🍛",custard:"🍮",customs:"🛃",cyclone:"🌀",dagger:"🗡",dancer:"💃",dancing_women:"👯",dancing_men:"👯‍♂️",dango:"🍡",dark_sunglasses:"🕶",dart:"🎯",dash:"💨",date:"📅",deciduous_tree:"🌳",deer:"🦌",department_store:"🏬",derelict_house:"🏚",desert:"🏜",desert_island:"🏝",desktop_computer:"🖥",male_detective:"🕵️",diamond_shape_with_a_dot_inside:"💠",diamonds:"♦️",disappointed:"😞",disappointed_relieved:"😥",dizzy:"💫",dizzy_face:"😵",do_not_litter:"🚯",dog:"🐶",dog2:"🐕",dollar:"💵",dolls:"🎎",dolphin:"🐬",door:"🚪",doughnut:"🍩",dove:"🕊",dragon:"🐉",dragon_face:"🐲",dress:"👗",dromedary_camel:"🐪",drooling_face:"🤤",droplet:"💧",drum:"🥁",duck:"🦆",dvd:"📀","e-mail":"📧",eagle:"🦅",ear:"👂",ear_of_rice:"🌾",earth_africa:"🌍",earth_americas:"🌎",earth_asia:"🌏",egg:"🥚",eggplant:"🍆",eight_pointed_black_star:"✴️",eight_spoked_asterisk:"✳️",electric_plug:"🔌",elephant:"🐘",email:"✉️",end:"🔚",envelope_with_arrow:"📩",euro:"💶",european_castle:"🏰",european_post_office:"🏤",evergreen_tree:"🌲",exclamation:"❗️",expressionless:"😑",eye:"👁",eye_speech_bubble:"👁‍🗨",eyeglasses:"👓",eyes:"👀",face_with_head_bandage:"🤕",face_with_thermometer:"🤒",fist_oncoming:"👊",factory:"🏭",fallen_leaf:"🍂",family_man_woman_boy:"👪",family_man_boy:"👨‍👦",family_man_boy_boy:"👨‍👦‍👦",family_man_girl:"👨‍👧",family_man_girl_boy:"👨‍👧‍👦",family_man_girl_girl:"👨‍👧‍👧",family_man_man_boy:"👨‍👨‍👦",family_man_man_boy_boy:"👨‍👨‍👦‍👦",family_man_man_girl:"👨‍👨‍👧",family_man_man_girl_boy:"👨‍👨‍👧‍👦",family_man_man_girl_girl:"👨‍👨‍👧‍👧",family_man_woman_boy_boy:"👨‍👩‍👦‍👦",family_man_woman_girl:"👨‍👩‍👧",family_man_woman_girl_boy:"👨‍👩‍👧‍👦",family_man_woman_girl_girl:"👨‍👩‍👧‍👧",family_woman_boy:"👩‍👦",family_woman_boy_boy:"👩‍👦‍👦",family_woman_girl:"👩‍👧",family_woman_girl_boy:"👩‍👧‍👦",family_woman_girl_girl:"👩‍👧‍👧",family_woman_woman_boy:"👩‍👩‍👦",family_woman_woman_boy_boy:"👩‍👩‍👦‍👦",family_woman_woman_girl:"👩‍👩‍👧",family_woman_woman_girl_boy:"👩‍👩‍👧‍👦",family_woman_woman_girl_girl:"👩‍👩‍👧‍👧",fast_forward:"⏩",fax:"📠",fearful:"😨",feet:"🐾",female_detective:"🕵️‍♀️",ferris_wheel:"🎡",ferry:"⛴",field_hockey:"🏑",file_cabinet:"🗄",file_folder:"📁",film_projector:"📽",film_strip:"🎞",fire:"🔥",fire_engine:"🚒",fireworks:"🎆",first_quarter_moon:"🌓",first_quarter_moon_with_face:"🌛",fish:"🐟",fish_cake:"🍥",fishing_pole_and_fish:"🎣",fist_raised:"✊",fist_left:"🤛",fist_right:"🤜",flags:"🎏",flashlight:"🔦",fleur_de_lis:"⚜️",flight_arrival:"🛬",flight_departure:"🛫",floppy_disk:"💾",flower_playing_cards:"🎴",flushed:"😳",fog:"🌫",foggy:"🌁",football:"🏈",footprints:"👣",fork_and_knife:"🍴",fountain:"⛲️",fountain_pen:"🖋",four_leaf_clover:"🍀",fox_face:"🦊",framed_picture:"🖼",free:"🆓",fried_egg:"🍳",fried_shrimp:"🍤",fries:"🍟",frog:"🐸",frowning:"😦",frowning_face:"☹️",frowning_man:"🙍‍♂️",frowning_woman:"🙍",middle_finger:"🖕",fuelpump:"⛽️",full_moon:"🌕",full_moon_with_face:"🌝",funeral_urn:"⚱️",game_die:"🎲",gear:"⚙️",gem:"💎",gemini:"♊️",ghost:"👻",gift:"🎁",gift_heart:"💝",girl:"👧",globe_with_meridians:"🌐",goal_net:"🥅",goat:"🐐",golf:"⛳️",golfing_man:"🏌️",golfing_woman:"🏌️‍♀️",gorilla:"🦍",grapes:"🍇",green_apple:"🍏",green_book:"📗",green_heart:"💚",green_salad:"🥗",grey_exclamation:"❕",grey_question:"❔",grimacing:"😬",grin:"😁",grinning:"😀",guardsman:"💂",guardswoman:"💂‍♀️",guitar:"🎸",gun:"🔫",haircut_woman:"💇",haircut_man:"💇‍♂️",hamburger:"🍔",hammer:"🔨",hammer_and_pick:"⚒",hammer_and_wrench:"🛠",hamster:"🐹",hand:"✋",handbag:"👜",handshake:"🤝",hankey:"💩",hatched_chick:"🐥",hatching_chick:"🐣",headphones:"🎧",hear_no_evil:"🙉",heart:"❤️",heart_decoration:"💟",heart_eyes:"😍",heart_eyes_cat:"😻",heartbeat:"💓",heartpulse:"💗",hearts:"♥️",heavy_check_mark:"✔️",heavy_division_sign:"➗",heavy_dollar_sign:"💲",heavy_heart_exclamation:"❣️",heavy_minus_sign:"➖",heavy_multiplication_x:"✖️",heavy_plus_sign:"➕",helicopter:"🚁",herb:"🌿",hibiscus:"🌺",high_brightness:"🔆",high_heel:"👠",hocho:"🔪",hole:"🕳",honey_pot:"🍯",horse:"🐴",horse_racing:"🏇",hospital:"🏥",hot_pepper:"🌶",hotdog:"🌭",hotel:"🏨",hotsprings:"♨️",hourglass:"⌛️",hourglass_flowing_sand:"⏳",house:"🏠",house_with_garden:"🏡",houses:"🏘",hugs:"🤗",hushed:"😯",ice_cream:"🍨",ice_hockey:"🏒",ice_skate:"⛸",icecream:"🍦",id:"🆔",ideograph_advantage:"🉐",imp:"👿",inbox_tray:"📥",incoming_envelope:"📨",tipping_hand_woman:"💁",information_source:"ℹ️",innocent:"😇",interrobang:"⁉️",iphone:"📱",izakaya_lantern:"🏮",jack_o_lantern:"🎃",japan:"🗾",japanese_castle:"🏯",japanese_goblin:"👺",japanese_ogre:"👹",jeans:"👖",joy:"😂",joy_cat:"😹",joystick:"🕹",kaaba:"🕋",key:"🔑",keyboard:"⌨️",keycap_ten:"🔟",kick_scooter:"🛴",kimono:"👘",kiss:"💋",kissing:"😗",kissing_cat:"😽",kissing_closed_eyes:"😚",kissing_heart:"😘",kissing_smiling_eyes:"😙",kiwi_fruit:"🥝",koala:"🐨",koko:"🈁",label:"🏷",large_blue_circle:"🔵",large_blue_diamond:"🔷",large_orange_diamond:"🔶",last_quarter_moon:"🌗",last_quarter_moon_with_face:"🌜",latin_cross:"✝️",laughing:"😆",leaves:"🍃",ledger:"📒",left_luggage:"🛅",left_right_arrow:"↔️",leftwards_arrow_with_hook:"↩️",lemon:"🍋",leo:"♌️",leopard:"🐆",level_slider:"🎚",libra:"♎️",light_rail:"🚈",link:"🔗",lion:"🦁",lips:"👄",lipstick:"💄",lizard:"🦎",lock:"🔒",lock_with_ink_pen:"🔏",lollipop:"🍭",loop:"➿",loud_sound:"🔊",loudspeaker:"📢",love_hotel:"🏩",love_letter:"💌",low_brightness:"🔅",lying_face:"🤥",m:"Ⓜ️",mag:"🔍",mag_right:"🔎",mahjong:"🀄️",mailbox:"📫",mailbox_closed:"📪",mailbox_with_mail:"📬",mailbox_with_no_mail:"📭",man:"👨",man_artist:"👨‍🎨",man_astronaut:"👨‍🚀",man_cartwheeling:"🤸‍♂️",man_cook:"👨‍🍳",man_dancing:"🕺",man_facepalming:"🤦‍♂️",man_factory_worker:"👨‍🏭",man_farmer:"👨‍🌾",man_firefighter:"👨‍🚒",man_health_worker:"👨‍⚕️",man_in_tuxedo:"🤵",man_judge:"👨‍⚖️",man_juggling:"🤹‍♂️",man_mechanic:"👨‍🔧",man_office_worker:"👨‍💼",man_pilot:"👨‍✈️",man_playing_handball:"🤾‍♂️",man_playing_water_polo:"🤽‍♂️",man_scientist:"👨‍🔬",man_shrugging:"🤷‍♂️",man_singer:"👨‍🎤",man_student:"👨‍🎓",man_teacher:"👨‍🏫",man_technologist:"👨‍💻",man_with_gua_pi_mao:"👲",man_with_turban:"👳",tangerine:"🍊",mans_shoe:"👞",mantelpiece_clock:"🕰",maple_leaf:"🍁",martial_arts_uniform:"🥋",mask:"😷",massage_woman:"💆",massage_man:"💆‍♂️",meat_on_bone:"🍖",medal_military:"🎖",medal_sports:"🏅",mega:"📣",melon:"🍈",memo:"📝",men_wrestling:"🤼‍♂️",menorah:"🕎",mens:"🚹",metal:"🤘",metro:"🚇",microphone:"🎤",microscope:"🔬",milk_glass:"🥛",milky_way:"🌌",minibus:"🚐",minidisc:"💽",mobile_phone_off:"📴",money_mouth_face:"🤑",money_with_wings:"💸",moneybag:"💰",monkey:"🐒",monkey_face:"🐵",monorail:"🚝",moon:"🌔",mortar_board:"🎓",mosque:"🕌",motor_boat:"🛥",motor_scooter:"🛵",motorcycle:"🏍",motorway:"🛣",mount_fuji:"🗻",mountain:"⛰",mountain_biking_man:"🚵",mountain_biking_woman:"🚵‍♀️",mountain_cableway:"🚠",mountain_railway:"🚞",mountain_snow:"🏔",mouse:"🐭",mouse2:"🐁",movie_camera:"🎥",moyai:"🗿",mrs_claus:"🤶",muscle:"💪",mushroom:"🍄",musical_keyboard:"🎹",musical_note:"🎵",musical_score:"🎼",mute:"🔇",nail_care:"💅",name_badge:"📛",national_park:"🏞",nauseated_face:"🤢",necktie:"👔",negative_squared_cross_mark:"❎",nerd_face:"🤓",neutral_face:"😐",new:"🆕",new_moon:"🌑",new_moon_with_face:"🌚",newspaper:"📰",newspaper_roll:"🗞",next_track_button:"⏭",ng:"🆖",no_good_man:"🙅‍♂️",no_good_woman:"🙅",night_with_stars:"🌃",no_bell:"🔕",no_bicycles:"🚳",no_entry:"⛔️",no_entry_sign:"🚫",no_mobile_phones:"📵",no_mouth:"😶",no_pedestrians:"🚷",no_smoking:"🚭","non-potable_water":"🚱",nose:"👃",notebook:"📓",notebook_with_decorative_cover:"📔",notes:"🎶",nut_and_bolt:"🔩",o:"⭕️",o2:"🅾️",ocean:"🌊",octopus:"🐙",oden:"🍢",office:"🏢",oil_drum:"🛢",ok:"🆗",ok_hand:"👌",ok_man:"🙆‍♂️",ok_woman:"🙆",old_key:"🗝",older_man:"👴",older_woman:"👵",om:"🕉",on:"🔛",oncoming_automobile:"🚘",oncoming_bus:"🚍",oncoming_police_car:"🚔",oncoming_taxi:"🚖",open_file_folder:"📂",open_hands:"👐",open_mouth:"😮",open_umbrella:"☂️",ophiuchus:"⛎",orange_book:"📙",orthodox_cross:"☦️",outbox_tray:"📤",owl:"🦉",ox:"🐂",package:"📦",page_facing_up:"📄",page_with_curl:"📃",pager:"📟",paintbrush:"🖌",palm_tree:"🌴",pancakes:"🥞",panda_face:"🐼",paperclip:"📎",paperclips:"🖇",parasol_on_ground:"⛱",parking:"🅿️",part_alternation_mark:"〽️",partly_sunny:"⛅️",passenger_ship:"🛳",passport_control:"🛂",pause_button:"⏸",peace_symbol:"☮️",peach:"🍑",peanuts:"🥜",pear:"🍐",pen:"🖊",pencil2:"✏️",penguin:"🐧",pensive:"😔",performing_arts:"🎭",persevere:"😣",person_fencing:"🤺",pouting_woman:"🙎",phone:"☎️",pick:"⛏",pig:"🐷",pig2:"🐖",pig_nose:"🐽",pill:"💊",pineapple:"🍍",ping_pong:"🏓",pisces:"♓️",pizza:"🍕",place_of_worship:"🛐",plate_with_cutlery:"🍽",play_or_pause_button:"⏯",point_down:"👇",point_left:"👈",point_right:"👉",point_up:"☝️",point_up_2:"👆",police_car:"🚓",policewoman:"👮‍♀️",poodle:"🐩",popcorn:"🍿",post_office:"🏣",postal_horn:"📯",postbox:"📮",potable_water:"🚰",potato:"🥔",pouch:"👝",poultry_leg:"🍗",pound:"💷",rage:"😡",pouting_cat:"😾",pouting_man:"🙎‍♂️",pray:"🙏",prayer_beads:"📿",pregnant_woman:"🤰",previous_track_button:"⏮",prince:"🤴",princess:"👸",printer:"🖨",purple_heart:"💜",purse:"👛",pushpin:"📌",put_litter_in_its_place:"🚮",question:"❓",rabbit:"🐰",rabbit2:"🐇",racehorse:"🐎",racing_car:"🏎",radio:"📻",radio_button:"🔘",radioactive:"☢️",railway_car:"🚃",railway_track:"🛤",rainbow:"🌈",rainbow_flag:"🏳️‍🌈",raised_back_of_hand:"🤚",raised_hand_with_fingers_splayed:"🖐",raised_hands:"🙌",raising_hand_woman:"🙋",raising_hand_man:"🙋‍♂️",ram:"🐏",ramen:"🍜",rat:"🐀",record_button:"⏺",recycle:"♻️",red_circle:"🔴",registered:"®️",relaxed:"☺️",relieved:"😌",reminder_ribbon:"🎗",repeat:"🔁",repeat_one:"🔂",rescue_worker_helmet:"⛑",restroom:"🚻",revolving_hearts:"💞",rewind:"⏪",rhinoceros:"🦏",ribbon:"🎀",rice:"🍚",rice_ball:"🍙",rice_cracker:"🍘",rice_scene:"🎑",right_anger_bubble:"🗯",ring:"💍",robot:"🤖",rocket:"🚀",rofl:"🤣",roll_eyes:"🙄",roller_coaster:"🎢",rooster:"🐓",rose:"🌹",rosette:"🏵",rotating_light:"🚨",round_pushpin:"📍",rowing_man:"🚣",rowing_woman:"🚣‍♀️",rugby_football:"🏉",running_man:"🏃",running_shirt_with_sash:"🎽",running_woman:"🏃‍♀️",sa:"🈂️",sagittarius:"♐️",sake:"🍶",sandal:"👡",santa:"🎅",satellite:"📡",saxophone:"🎷",school:"🏫",school_satchel:"🎒",scissors:"✂️",scorpion:"🦂",scorpius:"♏️",scream:"😱",scream_cat:"🙀",scroll:"📜",seat:"💺",secret:"㊙️",see_no_evil:"🙈",seedling:"🌱",selfie:"🤳",shallow_pan_of_food:"🥘",shamrock:"☘️",shark:"🦈",shaved_ice:"🍧",sheep:"🐑",shell:"🐚",shield:"🛡",shinto_shrine:"⛩",ship:"🚢",shirt:"👕",shopping:"🛍",shopping_cart:"🛒",shower:"🚿",shrimp:"🦐",signal_strength:"📶",six_pointed_star:"🔯",ski:"🎿",skier:"⛷",skull:"💀",skull_and_crossbones:"☠️",sleeping:"😴",sleeping_bed:"🛌",sleepy:"😪",slightly_frowning_face:"🙁",slightly_smiling_face:"🙂",slot_machine:"🎰",small_airplane:"🛩",small_blue_diamond:"🔹",small_orange_diamond:"🔸",small_red_triangle:"🔺",small_red_triangle_down:"🔻",smile:"😄",smile_cat:"😸",smiley:"😃",smiley_cat:"😺",smiling_imp:"😈",smirk:"😏",smirk_cat:"😼",smoking:"🚬",snail:"🐌",snake:"🐍",sneezing_face:"🤧",snowboarder:"🏂",snowflake:"❄️",snowman:"⛄️",snowman_with_snow:"☃️",sob:"😭",soccer:"⚽️",soon:"🔜",sos:"🆘",sound:"🔉",space_invader:"👾",spades:"♠️",spaghetti:"🍝",sparkle:"❇️",sparkler:"🎇",sparkles:"✨",sparkling_heart:"💖",speak_no_evil:"🙊",speaker:"🔈",speaking_head:"🗣",speech_balloon:"💬",speedboat:"🚤",spider:"🕷",spider_web:"🕸",spiral_calendar:"🗓",spiral_notepad:"🗒",spoon:"🥄",squid:"🦑",stadium:"🏟",star:"⭐️",star2:"🌟",star_and_crescent:"☪️",star_of_david:"✡️",stars:"🌠",station:"🚉",statue_of_liberty:"🗽",steam_locomotive:"🚂",stew:"🍲",stop_button:"⏹",stop_sign:"🛑",stopwatch:"⏱",straight_ruler:"📏",strawberry:"🍓",stuck_out_tongue:"😛",stuck_out_tongue_closed_eyes:"😝",stuck_out_tongue_winking_eye:"😜",studio_microphone:"🎙",stuffed_flatbread:"🥙",sun_behind_large_cloud:"🌥",sun_behind_rain_cloud:"🌦",sun_behind_small_cloud:"🌤",sun_with_face:"🌞",sunflower:"🌻",sunglasses:"😎",sunny:"☀️",sunrise:"🌅",sunrise_over_mountains:"🌄",surfing_man:"🏄",surfing_woman:"🏄‍♀️",sushi:"🍣",suspension_railway:"🚟",sweat:"😓",sweat_drops:"💦",sweat_smile:"😅",sweet_potato:"🍠",swimming_man:"🏊",swimming_woman:"🏊‍♀️",symbols:"🔣",synagogue:"🕍",syringe:"💉",taco:"🌮",tada:"🎉",tanabata_tree:"🎋",taurus:"♉️",taxi:"🚕",tea:"🍵",telephone_receiver:"📞",telescope:"🔭",tennis:"🎾",tent:"⛺️",thermometer:"🌡",thinking:"🤔",thought_balloon:"💭",ticket:"🎫",tickets:"🎟",tiger:"🐯",tiger2:"🐅",timer_clock:"⏲",tipping_hand_man:"💁‍♂️",tired_face:"😫",tm:"™️",toilet:"🚽",tokyo_tower:"🗼",tomato:"🍅",tongue:"👅",top:"🔝",tophat:"🎩",tornado:"🌪",trackball:"🖲",tractor:"🚜",traffic_light:"🚥",train:"🚋",train2:"🚆",tram:"🚊",triangular_flag_on_post:"🚩",triangular_ruler:"📐",trident:"🔱",triumph:"😤",trolleybus:"🚎",trophy:"🏆",tropical_drink:"🍹",tropical_fish:"🐠",truck:"🚚",trumpet:"🎺",tulip:"🌷",tumbler_glass:"🥃",turkey:"🦃",turtle:"🐢",tv:"📺",twisted_rightwards_arrows:"🔀",two_hearts:"💕",two_men_holding_hands:"👬",two_women_holding_hands:"👭",u5272:"🈹",u5408:"🈴",u55b6:"🈺",u6307:"🈯️",u6708:"🈷️",u6709:"🈶",u6e80:"🈵",u7121:"🈚️",u7533:"🈸",u7981:"🈲",u7a7a:"🈳",umbrella:"☔️",unamused:"😒",underage:"🔞",unicorn:"🦄",unlock:"🔓",up:"🆙",upside_down_face:"🙃",v:"✌️",vertical_traffic_light:"🚦",vhs:"📼",vibration_mode:"📳",video_camera:"📹",video_game:"🎮",violin:"🎻",virgo:"♍️",volcano:"🌋",volleyball:"🏐",vs:"🆚",vulcan_salute:"🖖",walking_man:"🚶",walking_woman:"🚶‍♀️",waning_crescent_moon:"🌘",waning_gibbous_moon:"🌖",warning:"⚠️",wastebasket:"🗑",watch:"⌚️",water_buffalo:"🐃",watermelon:"🍉",wave:"👋",wavy_dash:"〰️",waxing_crescent_moon:"🌒",wc:"🚾",weary:"😩",wedding:"💒",weight_lifting_man:"🏋️",weight_lifting_woman:"🏋️‍♀️",whale:"🐳",whale2:"🐋",wheel_of_dharma:"☸️",wheelchair:"♿️",white_check_mark:"✅",white_circle:"⚪️",white_flag:"🏳️",white_flower:"💮",white_large_square:"⬜️",white_medium_small_square:"◽️",white_medium_square:"◻️",white_small_square:"▫️",white_square_button:"🔳",wilted_flower:"🥀",wind_chime:"🎐",wind_face:"🌬",wine_glass:"🍷",wink:"😉",wolf:"🐺",woman:"👩",woman_artist:"👩‍🎨",woman_astronaut:"👩‍🚀",woman_cartwheeling:"🤸‍♀️",woman_cook:"👩‍🍳",woman_facepalming:"🤦‍♀️",woman_factory_worker:"👩‍🏭",woman_farmer:"👩‍🌾",woman_firefighter:"👩‍🚒",woman_health_worker:"👩‍⚕️",woman_judge:"👩‍⚖️",woman_juggling:"🤹‍♀️",woman_mechanic:"👩‍🔧",woman_office_worker:"👩‍💼",woman_pilot:"👩‍✈️",woman_playing_handball:"🤾‍♀️",woman_playing_water_polo:"🤽‍♀️",woman_scientist:"👩‍🔬",woman_shrugging:"🤷‍♀️",woman_singer:"👩‍🎤",woman_student:"👩‍🎓",woman_teacher:"👩‍🏫",woman_technologist:"👩‍💻",woman_with_turban:"👳‍♀️",womans_clothes:"👚",womans_hat:"👒",women_wrestling:"🤼‍♀️",womens:"🚺",world_map:"🗺",worried:"😟",wrench:"🔧",writing_hand:"✍️",x:"❌",yellow_heart:"💛",yen:"💴",yin_yang:"☯️",yum:"😋",zap:"⚡️",zipper_mouth_face:"🤐",zzz:"💤",octocat:':octocat:',showdown:"S"},i.Converter=function(e){"use strict";var t={},n=[],r=[],o={},a=s,h={parsed:{},raw:"",format:""};function p(e,t){if(t=t||null,i.helper.isString(e)){if(t=e=i.helper.stdExtName(e),i.extensions[e])return console.warn("DEPRECATION WARNING: "+e+" is an old extension that uses a deprecated loading method.Please inform the developer that the extension should be updated!"),void function(e,t){"function"==typeof e&&(e=e(new i.Converter));i.helper.isArray(e)||(e=[e]);var o=f(e,t);if(!o.valid)throw Error(o.error);for(var a=0;a[ \t]+¨NBSP;<"),!t){if(!window||!window.document)throw new Error("HTMLParser is undefined. If in a webworker or nodejs environment, you need to provide a WHATWG DOM and HTML such as JSDOM");t=window.document}var n=t.createElement("div");n.innerHTML=e;var r={preList:function(e){for(var t=e.querySelectorAll("pre"),n=[],r=0;r'}else n.push(t[r].innerHTML),t[r].innerHTML="",t[r].setAttribute("prenum",r.toString());return n}(n)};!function e(t){for(var n=0;n? ?(['"].*['"])?\)$/m)>-1)a="";else if(!a){if(o||(o=r.toLowerCase().replace(/ ?\n/g," ")),a="#"+o,i.helper.isUndefined(n.gUrls[o]))return e;a=n.gUrls[o],i.helper.isUndefined(n.gTitles[o])||(s=n.gTitles[o])}var u='
"};return e=(e=(e=(e=(e=n.converter._dispatch("anchors.before",e,t,n)).replace(/\[((?:\[[^\]]*]|[^\[\]])*)] ?(?:\n *)?\[(.*?)]()()()()/g,r)).replace(/\[((?:\[[^\]]*]|[^\[\]])*)]()[ \t]*\([ \t]?<([^>]*)>(?:[ \t]*((["'])([^"]*?)\5))?[ \t]?\)/g,r)).replace(/\[((?:\[[^\]]*]|[^\[\]])*)]()[ \t]*\([ \t]??(?:[ \t]*((["'])([^"]*?)\5))?[ \t]?\)/g,r)).replace(/\[([^\[\]]+)]()()()()()/g,r),t.ghMentions&&(e=e.replace(/(^|\s)(\\)?(@([a-z\d]+(?:[a-z\d.-]+?[a-z\d]+)*))/gim,(function(e,n,r,o,a){if("\\"===r)return n+o;if(!i.helper.isString(t.ghMentionsLink))throw new Error("ghMentionsLink option must be a string");var l=t.ghMentionsLink.replace(/\{u}/g,a),c="";return t.openLinksInNewWindow&&(c=' rel="noopener noreferrer" target="¨E95Eblank"'),n+'"+o+""}))),e=n.converter._dispatch("anchors.after",e,t,n)}));var d=/([*~_]+|\b)(((https?|ftp|dict):\/\/|www\.)[^'">\s]+?\.[^'">\s]+?)()(\1)?(?=\s|$)(?!["<>])/gi,m=/([*~_]+|\b)(((https?|ftp|dict):\/\/|www\.)[^'">\s]+\.[^'">\s]+?)([.!?,()\[\]])?(\1)?(?=\s|$)(?!["<>])/gi,v=/()<(((https?|ftp|dict):\/\/|www\.)[^'">\s]+)()>()/gi,y=/(^|\s)(?:mailto:)?([A-Za-z0-9!#$%&'*+-/=?^_`{|}~.]+@[-a-z0-9]+(\.[-a-z0-9]+)*\.[a-z]+)(?=$|\s)/gim,g=/<()(?:mailto:)?([-.\w]+@[-a-z0-9]+(\.[-a-z0-9]+)*\.[a-z]+)>/gi,b=function(e){"use strict";return function(t,n,r,o,a,l,c){var s=r=r.replace(i.helper.regexes.asteriskDashAndColon,i.helper.escapeCharactersCallback),u="",f="",h=n||"",p=c||"";return/^www\./i.test(r)&&(r=r.replace(/^www\./i,"http://www.")),e.excludeTrailingPunctuationFromURLs&&l&&(u=l),e.openLinksInNewWindow&&(f=' rel="noopener noreferrer" target="¨E95Eblank"'),h+'"+s+""+u+p}},w=function(e,t){"use strict";return function(n,r,o){var a="mailto:";return r=r||"",o=i.subParser("unescapeSpecialChars")(o,e,t),e.encodeEmails?(a=i.helper.encodeEmailAddress(a+o),o=i.helper.encodeEmailAddress(o)):a+=o,r+''+o+""}};i.subParser("autoLinks",(function(e,t,n){"use strict";return e=(e=(e=n.converter._dispatch("autoLinks.before",e,t,n)).replace(v,b(t))).replace(g,w(t,n)),e=n.converter._dispatch("autoLinks.after",e,t,n)})),i.subParser("simplifiedAutoLinks",(function(e,t,n){"use strict";return t.simplifiedAutoLink?(e=n.converter._dispatch("simplifiedAutoLinks.before",e,t,n),e=(e=t.excludeTrailingPunctuationFromURLs?e.replace(m,b(t)):e.replace(d,b(t))).replace(y,w(t,n)),e=n.converter._dispatch("simplifiedAutoLinks.after",e,t,n)):e})),i.subParser("blockGamut",(function(e,t,n){"use strict";return e=n.converter._dispatch("blockGamut.before",e,t,n),e=i.subParser("blockQuotes")(e,t,n),e=i.subParser("headers")(e,t,n),e=i.subParser("horizontalRule")(e,t,n),e=i.subParser("lists")(e,t,n),e=i.subParser("codeBlocks")(e,t,n),e=i.subParser("tables")(e,t,n),e=i.subParser("hashHTMLBlocks")(e,t,n),e=i.subParser("paragraphs")(e,t,n),e=n.converter._dispatch("blockGamut.after",e,t,n)})),i.subParser("blockQuotes",(function(e,t,n){"use strict";e=n.converter._dispatch("blockQuotes.before",e,t,n),e+="\n\n";var r=/(^ {0,3}>[ \t]?.+\n(.+\n)*\n*)+/gm;return t.splitAdjacentBlockquotes&&(r=/^ {0,3}>[\s\S]*?(?:\n\n)/gm),e=e.replace(r,(function(e){return e=(e=(e=e.replace(/^[ \t]*>[ \t]?/gm,"")).replace(/¨0/g,"")).replace(/^[ \t]+$/gm,""),e=i.subParser("githubCodeBlocks")(e,t,n),e=(e=(e=i.subParser("blockGamut")(e,t,n)).replace(/(^|\n)/g,"$1 ")).replace(/(\s*
[^\r]+?<\/pre>)/gm,(function(e,t){var n=t;return n=(n=n.replace(/^  /gm,"¨0")).replace(/¨0/g,"")})),i.subParser("hashBlock")("
\n"+e+"\n
",t,n)})),e=n.converter._dispatch("blockQuotes.after",e,t,n)})),i.subParser("codeBlocks",(function(e,t,n){"use strict";e=n.converter._dispatch("codeBlocks.before",e,t,n);return e=(e=(e+="¨0").replace(/(?:\n\n|^)((?:(?:[ ]{4}|\t).*\n+)+)(\n*[ ]{0,3}[^ \t\n]|(?=¨0))/g,(function(e,r,o){var a=r,l=o,c="\n";return a=i.subParser("outdent")(a,t,n),a=i.subParser("encodeCode")(a,t,n),a=(a=(a=i.subParser("detab")(a,t,n)).replace(/^\n+/g,"")).replace(/\n+$/g,""),t.omitExtraWLInCodeBlocks&&(c=""),a="
"+a+c+"
",i.subParser("hashBlock")(a,t,n)+l}))).replace(/¨0/,""),e=n.converter._dispatch("codeBlocks.after",e,t,n)})),i.subParser("codeSpans",(function(e,t,n){"use strict";return void 0===(e=n.converter._dispatch("codeSpans.before",e,t,n))&&(e=""),e=e.replace(/(^|[^\\])(`+)([^\r]*?[^`])\2(?!`)/gm,(function(e,r,o,a){var l=a;return l=(l=l.replace(/^([ \t]*)/g,"")).replace(/[ \t]*$/g,""),l=r+""+(l=i.subParser("encodeCode")(l,t,n))+"",l=i.subParser("hashHTMLSpans")(l,t,n)})),e=n.converter._dispatch("codeSpans.after",e,t,n)})),i.subParser("completeHTMLDocument",(function(e,t,n){"use strict";if(!t.completeHTMLDocument)return e;e=n.converter._dispatch("completeHTMLDocument.before",e,t,n);var r="html",o="\n",i="",a='\n',l="",c="";for(var s in void 0!==n.metadata.parsed.doctype&&(o="\n","html"!==(r=n.metadata.parsed.doctype.toString().toLowerCase())&&"html5"!==r||(a='')),n.metadata.parsed)if(n.metadata.parsed.hasOwnProperty(s))switch(s.toLowerCase()){case"doctype":break;case"title":i=""+n.metadata.parsed.title+"\n";break;case"charset":a="html"===r||"html5"===r?'\n':'\n';break;case"language":case"lang":l=' lang="'+n.metadata.parsed[s]+'"',c+='\n';break;default:c+='\n'}return e=o+"\n\n"+i+a+c+"\n\n"+e.trim()+"\n\n",e=n.converter._dispatch("completeHTMLDocument.after",e,t,n)})),i.subParser("detab",(function(e,t,n){"use strict";return e=(e=(e=(e=(e=(e=n.converter._dispatch("detab.before",e,t,n)).replace(/\t(?=\t)/g," ")).replace(/\t/g,"¨A¨B")).replace(/¨B(.+?)¨A/g,(function(e,t){for(var n=t,r=4-n.length%4,o=0;o/g,">"),e=n.converter._dispatch("encodeAmpsAndAngles.after",e,t,n)})),i.subParser("encodeBackslashEscapes",(function(e,t,n){"use strict";return e=(e=(e=n.converter._dispatch("encodeBackslashEscapes.before",e,t,n)).replace(/\\(\\)/g,i.helper.escapeCharactersCallback)).replace(/\\([`*_{}\[\]()>#+.!~=|-])/g,i.helper.escapeCharactersCallback),e=n.converter._dispatch("encodeBackslashEscapes.after",e,t,n)})),i.subParser("encodeCode",(function(e,t,n){"use strict";return e=(e=n.converter._dispatch("encodeCode.before",e,t,n)).replace(/&/g,"&").replace(//g,">").replace(/([*_{}\[\]\\=~-])/g,i.helper.escapeCharactersCallback),e=n.converter._dispatch("encodeCode.after",e,t,n)})),i.subParser("escapeSpecialCharsWithinTagAttributes",(function(e,t,n){"use strict";return e=(e=(e=n.converter._dispatch("escapeSpecialCharsWithinTagAttributes.before",e,t,n)).replace(/<\/?[a-z\d_:-]+(?:[\s]+[\s\S]+?)?>/gi,(function(e){return e.replace(/(.)<\/?code>(?=.)/g,"$1`").replace(/([\\`*_~=|])/g,i.helper.escapeCharactersCallback)}))).replace(/-]|-[^>])(?:[^-]|-[^-])*)--)>/gi,(function(e){return e.replace(/([\\`*_~=|])/g,i.helper.escapeCharactersCallback)})),e=n.converter._dispatch("escapeSpecialCharsWithinTagAttributes.after",e,t,n)})),i.subParser("githubCodeBlocks",(function(e,t,n){"use strict";return t.ghCodeBlocks?(e=n.converter._dispatch("githubCodeBlocks.before",e,t,n),e=(e=(e+="¨0").replace(/(?:^|\n)(?: {0,3})(```+|~~~+)(?: *)([^\s`~]*)\n([\s\S]*?)\n(?: {0,3})\1/g,(function(e,r,o,a){var l=t.omitExtraWLInCodeBlocks?"":"\n";return a=i.subParser("encodeCode")(a,t,n),a="
"+(a=(a=(a=i.subParser("detab")(a,t,n)).replace(/^\n+/g,"")).replace(/\n+$/g,""))+l+"
",a=i.subParser("hashBlock")(a,t,n),"\n\n¨G"+(n.ghCodeBlocks.push({text:e,codeblock:a})-1)+"G\n\n"}))).replace(/¨0/,""),n.converter._dispatch("githubCodeBlocks.after",e,t,n)):e})),i.subParser("hashBlock",(function(e,t,n){"use strict";return e=(e=n.converter._dispatch("hashBlock.before",e,t,n)).replace(/(^\n+|\n+$)/g,""),e="\n\n¨K"+(n.gHtmlBlocks.push(e)-1)+"K\n\n",e=n.converter._dispatch("hashBlock.after",e,t,n)})),i.subParser("hashCodeTags",(function(e,t,n){"use strict";e=n.converter._dispatch("hashCodeTags.before",e,t,n);return e=i.helper.replaceRecursiveRegExp(e,(function(e,r,o,a){var l=o+i.subParser("encodeCode")(r,t,n)+a;return"¨C"+(n.gHtmlSpans.push(l)-1)+"C"}),"]*>","","gim"),e=n.converter._dispatch("hashCodeTags.after",e,t,n)})),i.subParser("hashElement",(function(e,t,n){"use strict";return function(e,t){var r=t;return r=(r=(r=r.replace(/\n\n/g,"\n")).replace(/^\n/,"")).replace(/\n+$/g,""),r="\n\n¨K"+(n.gHtmlBlocks.push(r)-1)+"K\n\n"}})),i.subParser("hashHTMLBlocks",(function(e,t,n){"use strict";e=n.converter._dispatch("hashHTMLBlocks.before",e,t,n);var r=["pre","div","h1","h2","h3","h4","h5","h6","blockquote","table","dl","ol","ul","script","noscript","form","fieldset","iframe","math","style","section","header","footer","nav","article","aside","address","audio","canvas","figure","hgroup","output","video","p"],o=function(e,t,r,o){var i=e;return-1!==r.search(/\bmarkdown\b/)&&(i=r+n.converter.makeHtml(t)+o),"\n\n¨K"+(n.gHtmlBlocks.push(i)-1)+"K\n\n"};t.backslashEscapesHTMLTags&&(e=e.replace(/\\<(\/?[^>]+?)>/g,(function(e,t){return"<"+t+">"})));for(var a=0;a]*>)","im"),s="<"+r[a]+"\\b[^>]*>",u="";-1!==(l=i.helper.regexIndexOf(e,c));){var f=i.helper.splitAtIndex(e,l),h=i.helper.replaceRecursiveRegExp(f[1],o,s,u,"im");if(h===f[1])break;e=f[0].concat(h)}return e=e.replace(/(\n {0,3}(<(hr)\b([^<>])*?\/?>)[ \t]*(?=\n{2,}))/g,i.subParser("hashElement")(e,t,n)),e=(e=i.helper.replaceRecursiveRegExp(e,(function(e){return"\n\n¨K"+(n.gHtmlBlocks.push(e)-1)+"K\n\n"}),"^ {0,3}\x3c!--","--\x3e","gm")).replace(/(?:\n\n)( {0,3}(?:<([?%])[^\r]*?\2>)[ \t]*(?=\n{2,}))/g,i.subParser("hashElement")(e,t,n)),e=n.converter._dispatch("hashHTMLBlocks.after",e,t,n)})),i.subParser("hashHTMLSpans",(function(e,t,n){"use strict";function r(e){return"¨C"+(n.gHtmlSpans.push(e)-1)+"C"}return e=(e=(e=(e=(e=n.converter._dispatch("hashHTMLSpans.before",e,t,n)).replace(/<[^>]+?\/>/gi,(function(e){return r(e)}))).replace(/<([^>]+?)>[\s\S]*?<\/\1>/g,(function(e){return r(e)}))).replace(/<([^>]+?)\s[^>]+?>[\s\S]*?<\/\1>/g,(function(e){return r(e)}))).replace(/<[^>]+?>/gi,(function(e){return r(e)})),e=n.converter._dispatch("hashHTMLSpans.after",e,t,n)})),i.subParser("unhashHTMLSpans",(function(e,t,n){"use strict";e=n.converter._dispatch("unhashHTMLSpans.before",e,t,n);for(var r=0;r]*>\\s*]*>","^ {0,3}\\s*
","gim"),e=n.converter._dispatch("hashPreCodeTags.after",e,t,n)})),i.subParser("headers",(function(e,t,n){"use strict";e=n.converter._dispatch("headers.before",e,t,n);var r=isNaN(parseInt(t.headerLevelStart))?1:parseInt(t.headerLevelStart),o=t.smoothLivePreview?/^(.+)[ \t]*\n={2,}[ \t]*\n+/gm:/^(.+)[ \t]*\n=+[ \t]*\n+/gm,a=t.smoothLivePreview?/^(.+)[ \t]*\n-{2,}[ \t]*\n+/gm:/^(.+)[ \t]*\n-+[ \t]*\n+/gm;e=(e=e.replace(o,(function(e,o){var a=i.subParser("spanGamut")(o,t,n),l=t.noHeaderId?"":' id="'+c(o)+'"',s=""+a+"";return i.subParser("hashBlock")(s,t,n)}))).replace(a,(function(e,o){var a=i.subParser("spanGamut")(o,t,n),l=t.noHeaderId?"":' id="'+c(o)+'"',s=r+1,u=""+a+"";return i.subParser("hashBlock")(u,t,n)}));var l=t.requireSpaceBeforeHeadingText?/^(#{1,6})[ \t]+(.+?)[ \t]*#*\n+/gm:/^(#{1,6})[ \t]*(.+?)[ \t]*#*\n+/gm;function c(e){var r,o;if(t.customizedHeaderId){var a=e.match(/\{([^{]+?)}\s*$/);a&&a[1]&&(e=a[1])}return r=e,o=i.helper.isString(t.prefixHeaderId)?t.prefixHeaderId:!0===t.prefixHeaderId?"section-":"",t.rawPrefixHeaderId||(r=o+r),r=t.ghCompatibleHeaderId?r.replace(/ /g,"-").replace(/&/g,"").replace(/¨T/g,"").replace(/¨D/g,"").replace(/[&+$,\/:;=?@"#{}|^¨~\[\]`\\*)(%.!'<>]/g,"").toLowerCase():t.rawHeaderId?r.replace(/ /g,"-").replace(/&/g,"&").replace(/¨T/g,"¨").replace(/¨D/g,"$").replace(/["']/g,"-").toLowerCase():r.replace(/[^\w]/g,"").toLowerCase(),t.rawPrefixHeaderId&&(r=o+r),n.hashLinkCounts[r]?r=r+"-"+n.hashLinkCounts[r]++:n.hashLinkCounts[r]=1,r}return e=e.replace(l,(function(e,o,a){var l=a;t.customizedHeaderId&&(l=a.replace(/\s?\{([^{]+?)}\s*$/,""));var s=i.subParser("spanGamut")(l,t,n),u=t.noHeaderId?"":' id="'+c(a)+'"',f=r-1+o.length,h=""+s+"";return i.subParser("hashBlock")(h,t,n)})),e=n.converter._dispatch("headers.after",e,t,n)})),i.subParser("horizontalRule",(function(e,t,n){"use strict";e=n.converter._dispatch("horizontalRule.before",e,t,n);var r=i.subParser("hashBlock")("
",t,n);return e=(e=(e=e.replace(/^ {0,2}( ?-){3,}[ \t]*$/gm,r)).replace(/^ {0,2}( ?\*){3,}[ \t]*$/gm,r)).replace(/^ {0,2}( ?_){3,}[ \t]*$/gm,r),e=n.converter._dispatch("horizontalRule.after",e,t,n)})),i.subParser("images",(function(e,t,n){"use strict";function r(e,t,r,o,a,l,c,s){var u=n.gUrls,f=n.gTitles,h=n.gDimensions;if(r=r.toLowerCase(),s||(s=""),e.search(/\(? ?(['"].*['"])?\)$/m)>-1)o="";else if(""===o||null===o){if(""!==r&&null!==r||(r=t.toLowerCase().replace(/ ?\n/g," ")),o="#"+r,i.helper.isUndefined(u[r]))return e;o=u[r],i.helper.isUndefined(f[r])||(s=f[r]),i.helper.isUndefined(h[r])||(a=h[r].width,l=h[r].height)}t=t.replace(/"/g,""").replace(i.helper.regexes.asteriskDashAndColon,i.helper.escapeCharactersCallback);var p=''+t+'"}return e=(e=(e=(e=(e=(e=n.converter._dispatch("images.before",e,t,n)).replace(/!\[([^\]]*?)] ?(?:\n *)?\[([\s\S]*?)]()()()()()/g,r)).replace(/!\[([^\]]*?)][ \t]*()\([ \t]??(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*(?:(["'])([^"]*?)\6)?[ \t]?\)/g,(function(e,t,n,o,i,a,l,c){return r(e,t,n,o=o.replace(/\s/g,""),i,a,l,c)}))).replace(/!\[([^\]]*?)][ \t]*()\([ \t]?<([^>]*)>(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*(?:(?:(["'])([^"]*?)\6))?[ \t]?\)/g,r)).replace(/!\[([^\]]*?)][ \t]*()\([ \t]??(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*(?:(["'])([^"]*?)\6)?[ \t]?\)/g,r)).replace(/!\[([^\[\]]+)]()()()()()/g,r),e=n.converter._dispatch("images.after",e,t,n)})),i.subParser("italicsAndBold",(function(e,t,n){"use strict";function r(e,t,n){return t+e+n}return e=n.converter._dispatch("italicsAndBold.before",e,t,n),e=t.literalMidWordUnderscores?(e=(e=e.replace(/\b___(\S[\s\S]*?)___\b/g,(function(e,t){return r(t,"","")}))).replace(/\b__(\S[\s\S]*?)__\b/g,(function(e,t){return r(t,"","")}))).replace(/\b_(\S[\s\S]*?)_\b/g,(function(e,t){return r(t,"","")})):(e=(e=e.replace(/___(\S[\s\S]*?)___/g,(function(e,t){return/\S$/.test(t)?r(t,"",""):e}))).replace(/__(\S[\s\S]*?)__/g,(function(e,t){return/\S$/.test(t)?r(t,"",""):e}))).replace(/_([^\s_][\s\S]*?)_/g,(function(e,t){return/\S$/.test(t)?r(t,"",""):e})),e=t.literalMidWordAsterisks?(e=(e=e.replace(/([^*]|^)\B\*\*\*(\S[\s\S]*?)\*\*\*\B(?!\*)/g,(function(e,t,n){return r(n,t+"","")}))).replace(/([^*]|^)\B\*\*(\S[\s\S]*?)\*\*\B(?!\*)/g,(function(e,t,n){return r(n,t+"","")}))).replace(/([^*]|^)\B\*(\S[\s\S]*?)\*\B(?!\*)/g,(function(e,t,n){return r(n,t+"","")})):(e=(e=e.replace(/\*\*\*(\S[\s\S]*?)\*\*\*/g,(function(e,t){return/\S$/.test(t)?r(t,"",""):e}))).replace(/\*\*(\S[\s\S]*?)\*\*/g,(function(e,t){return/\S$/.test(t)?r(t,"",""):e}))).replace(/\*([^\s*][\s\S]*?)\*/g,(function(e,t){return/\S$/.test(t)?r(t,"",""):e})),e=n.converter._dispatch("italicsAndBold.after",e,t,n)})),i.subParser("lists",(function(e,t,n){"use strict";function r(e,r){n.gListLevel++,e=e.replace(/\n{2,}$/,"\n");var o=/(\n)?(^ {0,3})([*+-]|\d+[.])[ \t]+((\[(x|X| )?])?[ \t]*[^\r]+?(\n{1,2}))(?=\n*(¨0| {0,3}([*+-]|\d+[.])[ \t]+))/gm,a=/\n[ \t]*\n(?!¨0)/.test(e+="¨0");return t.disableForced4SpacesIndentedSublists&&(o=/(\n)?(^ {0,3})([*+-]|\d+[.])[ \t]+((\[(x|X| )?])?[ \t]*[^\r]+?(\n{1,2}))(?=\n*(¨0|\2([*+-]|\d+[.])[ \t]+))/gm),e=(e=e.replace(o,(function(e,r,o,l,c,s,u){u=u&&""!==u.trim();var f=i.subParser("outdent")(c,t,n),h="";return s&&t.tasklists&&(h=' class="task-list-item" style="list-style-type: none;"',f=f.replace(/^[ \t]*\[(x|X| )?]/m,(function(){var e='-1?(f=i.subParser("githubCodeBlocks")(f,t,n),f=i.subParser("blockGamut")(f,t,n)):(f=(f=i.subParser("lists")(f,t,n)).replace(/\n$/,""),f=(f=i.subParser("hashHTMLBlocks")(f,t,n)).replace(/\n\n+/g,"\n\n"),f=a?i.subParser("paragraphs")(f,t,n):i.subParser("spanGamut")(f,t,n)),f=""+(f=f.replace("¨A",""))+"\n"}))).replace(/¨0/g,""),n.gListLevel--,r&&(e=e.replace(/\s+$/,"")),e}function o(e,t){if("ol"===t){var n=e.match(/^ *(\d+)\./);if(n&&"1"!==n[1])return' start="'+n[1]+'"'}return""}function a(e,n,i){var a=t.disableForced4SpacesIndentedSublists?/^ ?\d+\.[ \t]/gm:/^ {0,3}\d+\.[ \t]/gm,l=t.disableForced4SpacesIndentedSublists?/^ ?[*+-][ \t]/gm:/^ {0,3}[*+-][ \t]/gm,c="ul"===n?a:l,s="";if(-1!==e.search(c))!function t(u){var f=u.search(c),h=o(e,n);-1!==f?(s+="\n\n<"+n+h+">\n"+r(u.slice(0,f),!!i)+"\n",c="ul"===(n="ul"===n?"ol":"ul")?a:l,t(u.slice(f))):s+="\n\n<"+n+h+">\n"+r(u,!!i)+"\n"}(e);else{var u=o(e,n);s="\n\n<"+n+u+">\n"+r(e,!!i)+"\n"}return s}return e=n.converter._dispatch("lists.before",e,t,n),e+="¨0",e=(e=n.gListLevel?e.replace(/^(( {0,3}([*+-]|\d+[.])[ \t]+)[^\r]+?(¨0|\n{2,}(?=\S)(?![ \t]*(?:[*+-]|\d+[.])[ \t]+)))/gm,(function(e,t,n){return a(t,n.search(/[*+-]/g)>-1?"ul":"ol",!0)})):e.replace(/(\n\n|^\n?)(( {0,3}([*+-]|\d+[.])[ \t]+)[^\r]+?(¨0|\n{2,}(?=\S)(?![ \t]*(?:[*+-]|\d+[.])[ \t]+)))/gm,(function(e,t,n,r){return a(n,r.search(/[*+-]/g)>-1?"ul":"ol",!1)}))).replace(/¨0/,""),e=n.converter._dispatch("lists.after",e,t,n)})),i.subParser("metadata",(function(e,t,n){"use strict";if(!t.metadata)return e;function r(e){n.metadata.raw=e,(e=(e=e.replace(/&/g,"&").replace(/"/g,""")).replace(/\n {4}/g," ")).replace(/^([\S ]+): +([\s\S]+?)$/gm,(function(e,t,r){return n.metadata.parsed[t]=r,""}))}return e=(e=(e=(e=n.converter._dispatch("metadata.before",e,t,n)).replace(/^\s*«««+(\S*?)\n([\s\S]+?)\n»»»+\n/,(function(e,t,n){return r(n),"¨M"}))).replace(/^\s*---+(\S*?)\n([\s\S]+?)\n---+\n/,(function(e,t,o){return t&&(n.metadata.format=t),r(o),"¨M"}))).replace(/¨M/g,""),e=n.converter._dispatch("metadata.after",e,t,n)})),i.subParser("outdent",(function(e,t,n){"use strict";return e=(e=(e=n.converter._dispatch("outdent.before",e,t,n)).replace(/^(\t|[ ]{1,4})/gm,"¨0")).replace(/¨0/g,""),e=n.converter._dispatch("outdent.after",e,t,n)})),i.subParser("paragraphs",(function(e,t,n){"use strict";for(var r=(e=(e=(e=n.converter._dispatch("paragraphs.before",e,t,n)).replace(/^\n+/g,"")).replace(/\n+$/g,"")).split(/\n{2,}/g),o=[],a=r.length,l=0;l=0?o.push(c):c.search(/\S/)>=0&&(c=(c=i.subParser("spanGamut")(c,t,n)).replace(/^([ \t]*)/g,"

"),c+="

",o.push(c))}for(a=o.length,l=0;l]*>\s*]*>/.test(u)&&(f=!0)}o[l]=u}return e=(e=(e=o.join("\n")).replace(/^\n+/g,"")).replace(/\n+$/g,""),n.converter._dispatch("paragraphs.after",e,t,n)})),i.subParser("runExtension",(function(e,t,n,r){"use strict";if(e.filter)t=e.filter(t,r.converter,n);else if(e.regex){var o=e.regex;o instanceof RegExp||(o=new RegExp(o,"g")),t=t.replace(o,e.replace)}return t})),i.subParser("spanGamut",(function(e,t,n){"use strict";return e=n.converter._dispatch("spanGamut.before",e,t,n),e=i.subParser("codeSpans")(e,t,n),e=i.subParser("escapeSpecialCharsWithinTagAttributes")(e,t,n),e=i.subParser("encodeBackslashEscapes")(e,t,n),e=i.subParser("images")(e,t,n),e=i.subParser("anchors")(e,t,n),e=i.subParser("autoLinks")(e,t,n),e=i.subParser("simplifiedAutoLinks")(e,t,n),e=i.subParser("emoji")(e,t,n),e=i.subParser("underline")(e,t,n),e=i.subParser("italicsAndBold")(e,t,n),e=i.subParser("strikethrough")(e,t,n),e=i.subParser("ellipsis")(e,t,n),e=i.subParser("hashHTMLSpans")(e,t,n),e=i.subParser("encodeAmpsAndAngles")(e,t,n),t.simpleLineBreaks?/\n\n¨K/.test(e)||(e=e.replace(/\n+/g,"
\n")):e=e.replace(/ +\n/g,"
\n"),e=n.converter._dispatch("spanGamut.after",e,t,n)})),i.subParser("strikethrough",(function(e,t,n){"use strict";return t.strikethrough&&(e=(e=n.converter._dispatch("strikethrough.before",e,t,n)).replace(/(?:~){2}([\s\S]+?)(?:~){2}/g,(function(e,r){return function(e){return t.simplifiedAutoLink&&(e=i.subParser("simplifiedAutoLinks")(e,t,n)),""+e+""}(r)})),e=n.converter._dispatch("strikethrough.after",e,t,n)),e})),i.subParser("stripLinkDefinitions",(function(e,t,n){"use strict";var r=function(e,r,o,a,l,c,s){return r=r.toLowerCase(),o.match(/^data:.+?\/.+?;base64,/)?n.gUrls[r]=o.replace(/\s/g,""):n.gUrls[r]=i.subParser("encodeAmpsAndAngles")(o,t,n),c?c+s:(s&&(n.gTitles[r]=s.replace(/"|'/g,""")),t.parseImgDimensions&&a&&l&&(n.gDimensions[r]={width:a,height:l}),"")};return e=(e=(e=(e+="¨0").replace(/^ {0,3}\[(.+)]:[ \t]*\n?[ \t]*?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*\n?[ \t]*(?:(\n*)["|'(](.+?)["|')][ \t]*)?(?:\n\n|(?=¨0)|(?=\n\[))/gm,r)).replace(/^ {0,3}\[(.+)]:[ \t]*\n?[ \t]*\s]+)>?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*\n?[ \t]*(?:(\n*)["|'(](.+?)["|')][ \t]*)?(?:\n+|(?=¨0))/gm,r)).replace(/¨0/,"")})),i.subParser("tables",(function(e,t,n){"use strict";if(!t.tables)return e;function r(e,r){return""+i.subParser("spanGamut")(e,t,n)+"\n"}function o(e){var o,a=e.split("\n");for(o=0;o"+(c=i.subParser("spanGamut")(c,t,n))+"\n"));for(o=0;o\n\n\n",o=0;o\n";for(var i=0;i\n"}return n+="\n\n"}(d,v)}return e=(e=(e=(e=n.converter._dispatch("tables.before",e,t,n)).replace(/\\(\|)/g,i.helper.escapeCharactersCallback)).replace(/^ {0,3}\|?.+\|.+\n {0,3}\|?[ \t]*:?[ \t]*(?:[-=]){2,}[ \t]*:?[ \t]*\|[ \t]*:?[ \t]*(?:[-=]){2,}[\s\S]+?(?:\n\n|¨0)/gm,o)).replace(/^ {0,3}\|.+\|[ \t]*\n {0,3}\|[ \t]*:?[ \t]*(?:[-=]){2,}[ \t]*:?[ \t]*\|[ \t]*\n( {0,3}\|.+\|[ \t]*\n)*(?:\n|¨0)/gm,o),e=n.converter._dispatch("tables.after",e,t,n)})),i.subParser("underline",(function(e,t,n){"use strict";return t.underline?(e=n.converter._dispatch("underline.before",e,t,n),e=(e=t.literalMidWordUnderscores?(e=e.replace(/\b___(\S[\s\S]*?)___\b/g,(function(e,t){return""+t+""}))).replace(/\b__(\S[\s\S]*?)__\b/g,(function(e,t){return""+t+""})):(e=e.replace(/___(\S[\s\S]*?)___/g,(function(e,t){return/\S$/.test(t)?""+t+"":e}))).replace(/__(\S[\s\S]*?)__/g,(function(e,t){return/\S$/.test(t)?""+t+"":e}))).replace(/(_)/g,i.helper.escapeCharactersCallback),e=n.converter._dispatch("underline.after",e,t,n)):e})),i.subParser("unescapeSpecialChars",(function(e,t,n){"use strict";return e=(e=n.converter._dispatch("unescapeSpecialChars.before",e,t,n)).replace(/¨E(\d+)E/g,(function(e,t){var n=parseInt(t);return String.fromCharCode(n)})),e=n.converter._dispatch("unescapeSpecialChars.after",e,t,n)})),i.subParser("makeMarkdown.blockquote",(function(e,t){"use strict";var n="";if(e.hasChildNodes())for(var r=e.childNodes,o=r.length,a=0;a ")})),i.subParser("makeMarkdown.codeBlock",(function(e,t){"use strict";var n=e.getAttribute("language"),r=e.getAttribute("precodenum");return"```"+n+"\n"+t.preList[r]+"\n```"})),i.subParser("makeMarkdown.codeSpan",(function(e){"use strict";return"`"+e.innerHTML+"`"})),i.subParser("makeMarkdown.emphasis",(function(e,t){"use strict";var n="";if(e.hasChildNodes()){n+="*";for(var r=e.childNodes,o=r.length,a=0;a",e.hasAttribute("width")&&e.hasAttribute("height")&&(t+=" ="+e.getAttribute("width")+"x"+e.getAttribute("height")),e.hasAttribute("title")&&(t+=' "'+e.getAttribute("title")+'"'),t+=")"),t})),i.subParser("makeMarkdown.links",(function(e,t){"use strict";var n="";if(e.hasChildNodes()&&e.hasAttribute("href")){var r=e.childNodes,o=r.length;n="[";for(var a=0;a",e.hasAttribute("title")&&(n+=' "'+e.getAttribute("title")+'"'),n+=")"}return n})),i.subParser("makeMarkdown.list",(function(e,t,n){"use strict";var r="";if(!e.hasChildNodes())return"";for(var o=e.childNodes,a=o.length,l=e.getAttribute("start")||1,c=0;c"+t.preList[n]+""})),i.subParser("makeMarkdown.strikethrough",(function(e,t){"use strict";var n="";if(e.hasChildNodes()){n+="~~";for(var r=e.childNodes,o=r.length,a=0;atr>th"),c=e.querySelectorAll("tbody>tr");for(n=0;nd&&(d=m)}for(n=0;n/g,"\\$1>")).replace(/^#/gm,"\\#")).replace(/^(\s*)([-=]{3,})(\s*)$/,"$1\\$2$3")).replace(/^( {0,3}\d+)\./gm,"$1\\.")).replace(/^( {0,3})([+-])/gm,"$1\\$2")).replace(/]([\s]*)\(/g,"\\]$1\\(")).replace(/^ {0,3}\[([\S \t]*?)]:/gm,"\\[$1]:")}));void 0===(r=function(){"use strict";return i}.call(t,n,t,e))||(e.exports=r)}).call(this)},M6Qj:function(e,t,n){var r=n("hPIQ"),o=n("K0xU")("iterator"),i=Array.prototype;e.exports=function(e){return void 0!==e&&(r.Array===e||i[o]===e)}},M8ly:function(e,t,n){"use strict";var r={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i=Object.defineProperty,a=Object.getOwnPropertyNames,l=Object.getOwnPropertySymbols,c=Object.getOwnPropertyDescriptor,s=Object.getPrototypeOf,u=s&&s(Object);e.exports=function e(t,n,f){if("string"!=typeof n){if(u){var h=s(n);h&&h!==u&&e(t,h,f)}var p=a(n);l&&(p=p.concat(l(n)));for(var d=0;d children");r=e}})),r}var k=n("i8i4"),S=n.n(k),O=n("J9Du"),M={isAppearSupported:function(e){return e.transitionName&&e.transitionAppear||e.animation.appear},isEnterSupported:function(e){return e.transitionName&&e.transitionEnter||e.animation.enter},isLeaveSupported:function(e){return e.transitionName&&e.transitionLeave||e.animation.leave},allowAppearCallback:function(e){return e.transitionAppear||e.animation.appear},allowEnterCallback:function(e){return e.transitionEnter||e.animation.enter},allowLeaveCallback:function(e){return e.transitionLeave||e.animation.leave}},T={enter:"transitionEnter",appear:"transitionAppear",leave:"transitionLeave"},E=function(e){function t(){return c()(this,t),h()(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return d()(t,e),u()(t,[{key:"componentWillUnmount",value:function(){this.stop()}},{key:"componentWillEnter",value:function(e){M.isEnterSupported(this.props)?this.transition("enter",e):e()}},{key:"componentWillAppear",value:function(e){M.isAppearSupported(this.props)?this.transition("appear",e):e()}},{key:"componentWillLeave",value:function(e){M.isLeaveSupported(this.props)?this.transition("leave",e):e()}},{key:"transition",value:function(e,t){var n=this,r=S.a.findDOMNode(this),o=this.props,i=o.transitionName,a="object"==typeof i;this.stop();var l=function(){n.stopper=null,t()};if((O.b||!o.animation[e])&&i&&o[T[e]]){var c=a?i[e]:i+"-"+e,s=c+"-active";a&&i[e+"Active"]&&(s=i[e+"Active"]),this.stopper=Object(O.a)(r,{name:c,active:s},l)}else this.stopper=o.animation[e](r,l)}},{key:"stop",value:function(){var e=this.stopper;e&&(this.stopper=null,e.stop())}},{key:"render",value:function(){return this.props.children}}]),t}(v.a.Component);E.propTypes={children:g.a.any,animation:g.a.any,transitionName:g.a.any};var z=E,C="rc_animate_"+Date.now();function P(e){var t=e.children;return v.a.isValidElement(t)&&!t.key?v.a.cloneElement(t,{key:C}):t}function A(){}var j=function(e){function t(e){c()(this,t);var n=h()(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return L.call(n),n.currentlyAnimatingKeys={},n.keysToEnter=[],n.keysToLeave=[],n.state={children:w(P(e))},n.childrenRefs={},n}return d()(t,e),u()(t,[{key:"componentDidMount",value:function(){var e=this,t=this.props.showProp,n=this.state.children;t&&(n=n.filter((function(e){return!!e.props[t]}))),n.forEach((function(t){t&&e.performAppear(t.key)}))}},{key:"componentWillReceiveProps",value:function(e){var t=this;this.nextProps=e;var n=w(P(e)),r=this.props;r.exclusive&&Object.keys(this.currentlyAnimatingKeys).forEach((function(e){t.stop(e)}));var o,i,l,c,s=r.showProp,u=this.currentlyAnimatingKeys,f=r.exclusive?w(P(r)):this.state.children,h=[];s?(f.forEach((function(e){var t=e&&x(n,e.key),r=void 0;(r=t&&t.props[s]||!e.props[s]?t:v.a.cloneElement(t||e,a()({},s,!0)))&&h.push(r)})),n.forEach((function(e){e&&x(f,e.key)||h.push(e)}))):(o=n,i=[],l={},c=[],f.forEach((function(e){e&&x(o,e.key)?c.length&&(l[e.key]=c,c=[]):c.push(e)})),o.forEach((function(e){e&&Object.prototype.hasOwnProperty.call(l,e.key)&&(i=i.concat(l[e.key])),i.push(e)})),h=i=i.concat(c)),this.setState({children:h}),n.forEach((function(e){var n=e&&e.key;if(!e||!u[n]){var r=e&&x(f,n);if(s){var o=e.props[s];if(r)!_(f,n,s)&&o&&t.keysToEnter.push(n);else o&&t.keysToEnter.push(n)}else r||t.keysToEnter.push(n)}})),f.forEach((function(e){var r=e&&e.key;if(!e||!u[r]){var o=e&&x(n,r);if(s){var i=e.props[s];if(o)!_(n,r,s)&&i&&t.keysToLeave.push(r);else i&&t.keysToLeave.push(r)}else o||t.keysToLeave.push(r)}}))}},{key:"componentDidUpdate",value:function(){var e=this.keysToEnter;this.keysToEnter=[],e.forEach(this.performEnter);var t=this.keysToLeave;this.keysToLeave=[],t.forEach(this.performLeave)}},{key:"isValidChildByKey",value:function(e,t){var n=this.props.showProp;return n?_(e,t,n):x(e,t)}},{key:"stop",value:function(e){delete this.currentlyAnimatingKeys[e];var t=this.childrenRefs[e];t&&t.stop()}},{key:"render",value:function(){var e=this,t=this.props;this.nextProps=t;var n=this.state.children,r=null;n&&(r=n.map((function(n){if(null==n)return n;if(!n.key)throw new Error("must set key for children");return v.a.createElement(z,{key:n.key,ref:function(t){e.childrenRefs[n.key]=t},animation:t.animation,transitionName:t.transitionName,transitionEnter:t.transitionEnter,transitionAppear:t.transitionAppear,transitionLeave:t.transitionLeave},n)})));var i=t.component;if(i){var a=t;return"string"==typeof i&&(a=o()({className:t.className,style:t.style},t.componentProps)),v.a.createElement(i,a,r)}return r[0]||null}}]),t}(v.a.Component);j.isAnimate=!0,j.propTypes={className:g.a.string,style:g.a.object,component:g.a.any,componentProps:g.a.object,animation:g.a.object,transitionName:g.a.oneOfType([g.a.string,g.a.object]),transitionEnter:g.a.bool,transitionAppear:g.a.bool,exclusive:g.a.bool,transitionLeave:g.a.bool,onEnd:g.a.func,onEnter:g.a.func,onLeave:g.a.func,onAppear:g.a.func,showProp:g.a.string,children:g.a.node},j.defaultProps={animation:{},component:"span",componentProps:{},transitionEnter:!0,transitionLeave:!0,transitionAppear:!1,onEnd:A,onEnter:A,onLeave:A,onAppear:A};var L=function(){var e=this;this.performEnter=function(t){e.childrenRefs[t]&&(e.currentlyAnimatingKeys[t]=!0,e.childrenRefs[t].componentWillEnter(e.handleDoneAdding.bind(e,t,"enter")))},this.performAppear=function(t){e.childrenRefs[t]&&(e.currentlyAnimatingKeys[t]=!0,e.childrenRefs[t].componentWillAppear(e.handleDoneAdding.bind(e,t,"appear")))},this.handleDoneAdding=function(t,n){var r=e.props;if(delete e.currentlyAnimatingKeys[t],!r.exclusive||r===e.nextProps){var o=w(P(r));e.isValidChildByKey(o,t)?"appear"===n?M.allowAppearCallback(r)&&(r.onAppear(t),r.onEnd(t,!0)):M.allowEnterCallback(r)&&(r.onEnter(t),r.onEnd(t,!0)):e.performLeave(t)}},this.performLeave=function(t){e.childrenRefs[t]&&(e.currentlyAnimatingKeys[t]=!0,e.childrenRefs[t].componentWillLeave(e.handleDoneLeaving.bind(e,t)))},this.handleDoneLeaving=function(t){var n=e.props;if(delete e.currentlyAnimatingKeys[t],!n.exclusive||n===e.nextProps){var r,o,i,a,l=w(P(n));if(e.isValidChildByKey(l,t))e.performEnter(t);else{var c=function(){M.allowLeaveCallback(n)&&(n.onLeave(t),n.onEnd(t,!1))};r=e.state.children,o=l,i=n.showProp,(a=r.length===o.length)&&r.forEach((function(e,t){var n=o[t];e&&n&&(e&&!n||!e&&n||e.key!==n.key||i&&e.props[i]!==n.props[i])&&(a=!1)})),a?c():e.setState({children:l},c)}}}};t.a=Object(b.a)(j)},MLWZ:function(e,t,n){"use strict";var r=n("xTJ+");function o(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var i;if(n)i=n(t);else if(r.isURLSearchParams(t))i=t.toString();else{var a=[];r.forEach(t,(function(e,t){null!=e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,(function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),a.push(o(t)+"="+o(e))})))})),i=a.join("&")}if(i){var l=e.indexOf("#");-1!==l&&(e=e.slice(0,l)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}},MPFp:function(e,t,n){"use strict";var r=n("uOPS"),o=n("Y7ZC"),i=n("kTiW"),a=n("NegM"),l=n("SBuE"),c=n("j2DC"),s=n("RfKB"),u=n("U+KD"),f=n("UWiX")("iterator"),h=!([].keys&&"next"in[].keys()),p=function(){return this};e.exports=function(e,t,n,d,m,v,y){c(n,t,d);var g,b,w,x=function(e){if(!h&&e in O)return O[e];switch(e){case"keys":case"values":return function(){return new n(this,e)}}return function(){return new n(this,e)}},_=t+" Iterator",k="values"==m,S=!1,O=e.prototype,M=O[f]||O["@@iterator"]||m&&O[m],T=M||x(m),E=m?k?x("entries"):T:void 0,z="Array"==t&&O.entries||M;if(z&&(w=u(z.call(new e)))!==Object.prototype&&w.next&&(s(w,_,!0),r||"function"==typeof w[f]||a(w,f,p)),k&&M&&"values"!==M.name&&(S=!0,T=function(){return M.call(this)}),r&&!y||!h&&!S&&O[f]||a(O,f,T),l[t]=T,l[_]=p,m)if(g={values:k?T:x("values"),keys:v?T:x("keys"),entries:E},y)for(b in g)b in O||i(O,b,g[b]);else o(o.P+o.F*(h||S),t,g);return g}},MRPZ:function(e,t,n){e.exports=n("TclB")},MVZn:function(e,t,n){var r=n("j1ok"),o=n("r9tm"),i=n("iVxW"),a=n("lSNA");e.exports=function(e){for(var t=1;t>>=0)?31-Math.floor(Math.log(e+.5)*Math.LOG2E):32}})},MuZe:function(e,t){function n(e,t){e.onload=function(){this.onerror=this.onload=null,t(null,e)},e.onerror=function(){this.onerror=this.onload=null,t(new Error("Failed to load "+this.src),e)}}function r(e,t){e.onreadystatechange=function(){"complete"!=this.readyState&&"loaded"!=this.readyState||(this.onreadystatechange=null,t(null,e))}}e.exports=function(e,t,o){var i=document.head||document.getElementsByTagName("head")[0],a=document.createElement("script");"function"==typeof t&&(o=t,t={}),t=t||{},o=o||function(){},a.type=t.type||"text/javascript",a.charset=t.charset||"utf8",a.async=!("async"in t)||!!t.async,a.src=e,t.attrs&&function(e,t){for(var n in t)e.setAttribute(n,t[n])}(a,t.attrs),t.text&&(a.text=""+t.text),("onload"in a?n:r)(a,o),a.onload||n(a,o),i.appendChild(a)}},Mukb:function(e,t,n){var r=n("hswa"),o=n("RjD/");e.exports=n("nh4g")?function(e,t,n){return r.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},MvwC:function(e,t,n){var r=n("5T2Y").document;e.exports=r&&r.documentElement},Mxsh:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=c(n("3S7+")),o=Object.assign||function(e){for(var t=1;t=0)return t[e].splice(o,1),!0}return!1},publish:function(e){if(!t[e])return!1;var n=Array.prototype.slice.call(arguments,1);return t[e].forEach((function(e){e.apply(null,n)})),this}};return e?Object.assign(e,n):n};t.default=r},NV0k:function(e,t){t.f={}.propertyIsEnumerable},NegM:function(e,t,n){var r=n("2faE"),o=n("rr1i");e.exports=n("jmDH")?function(e,t,n){return r.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},"Nf+j":function(e,t,n){"use strict";var r=n("TqRt");Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=void 0;var o=r(n("pVnL")),i=r(n("lSNA")),a=r(n("QILm")),l=r(n("q1tI")),c=(r(n("17x9")),r(n("TSYQ"))),s=r(n("d05B")),u=r(n("Blpk")),f={root:{zIndex:-1,width:"100%",height:"100%",position:"fixed",top:0,left:0,WebkitTapHighlightColor:"transparent",backgroundColor:"rgba(0, 0, 0, 0.5)"},invisible:{backgroundColor:"transparent"}};function h(e){var t=e.classes,n=e.className,r=e.invisible,s=e.open,f=e.transitionDuration,h=(0,a.default)(e,["classes","className","invisible","open","transitionDuration"]);return l.default.createElement(u.default,(0,o.default)({appear:!0,in:s,timeout:f},h),l.default.createElement("div",{className:(0,c.default)(t.root,(0,i.default)({},t.invisible,r),n),"aria-hidden":"true"}))}t.styles=f,h.propTypes={},h.defaultProps={invisible:!1};var p=(0,s.default)(f,{name:"MuiBackdrop"})(h);t.default=p},NlO1:function(e,t,n){var r=n("RlDP");e.exports=function(e){for(var t=1;t1?arguments[1]:void 0,n),c=a>2?arguments[2]:void 0,s=void 0===c?n:o(c,n);s>l;)t[l++]=e;return t}},"NsO/":function(e,t,n){var r=n("M1xp"),o=n("Jes0");e.exports=function(e){return r(o(e))}},NwJ3:function(e,t,n){var r=n("SBuE"),o=n("UWiX")("iterator"),i=Array.prototype;e.exports=function(e){return void 0!==e&&(r.Array===e||i[o]===e)}},NykK:function(e,t,n){var r=n("nmnc"),o=n("AP2z"),i=n("KfNM"),a=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?o(e):i(e)}},Nz9U:function(e,t,n){"use strict";var r=n("XKFU"),o=n("aCFj"),i=[].join;r(r.P+r.F*(n("Ymqv")!=Object||!n("LyE8")(i)),"Array",{join:function(e){return i.call(o(this),void 0===e?",":e)}})},"O+I2":function(e,t,n){"use strict";n.r(t);n("SchZ"),n("jyVq")},O9o6:function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){return!(!e||!r.test(e))};var r=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;e.exports=t.default},OCCX:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a(n("FLEz")),o=a(n("Rx9b")),i=a(n("RiHD"));function a(e){return e&&e.__esModule?e:{default:e}}var l=Date.now(),c="fnValues"+l,s="fnStyle"+ ++l;t.default={onCreateRule:function(e,t,n){if("function"!=typeof t)return null;var r=(0,i.default)(e,{},n);return r[s]=t,r},onProcessStyle:function(e,t){var n={};for(var r in e){var o=e[r];"function"==typeof o&&(delete e[r],n[r]=o)}return(t=t)[c]=n,e},onUpdate:function(e,t){if(t.rules instanceof r.default)t.rules.update(e);else if(t instanceof o.default){if((t=t)[c])for(var n in t[c])t.prop(n,t[c][n](e));var i=(t=t)[s];if(i){var a=i(e);for(var l in a)t.prop(l,a[l])}}}}},OEbY:function(e,t,n){n("nh4g")&&"g"!=/./g.flags&&n("hswa").f(RegExp.prototype,"flags",{configurable:!0,get:n("C/va")})},OG14:function(e,t,n){"use strict";var r=n("y3w9"),o=n("g6HL"),i=n("Xxuz");n("IU+Z")("search",1,(function(e,t,n,a){return[function(n){var r=e(this),o=null==n?void 0:n[t];return void 0!==o?o.call(n,r):new RegExp(n)[t](String(r))},function(e){var t=a(n,e,this);if(t.done)return t.value;var l=r(e),c=String(this),s=l.lastIndex;o(s,0)||(l.lastIndex=0);var u=i(l,c);return o(l.lastIndex,s)||(l.lastIndex=s),null===u?-1:u.index}]}))},OGtf:function(e,t,n){var r=n("XKFU"),o=n("eeVq"),i=n("vhPU"),a=/"/g,l=function(e,t,n,r){var o=String(i(e)),l="<"+t;return""!==n&&(l+=" "+n+'="'+String(r).replace(a,""")+'"'),l+">"+o+""};e.exports=function(e,t){var n={};n[e]=t(l),r(r.P+r.F*o((function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3})),"String",n)}},OH9c:function(e,t,n){"use strict";e.exports=function(e,t,n,r,o){return e.config=t,n&&(e.code=n),e.request=r,e.response=o,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}},e}},OP3Y:function(e,t,n){var r=n("aagx"),o=n("S/j/"),i=n("YTvA")("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=o(e),r(e,i)?e[i]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},OTTw:function(e,t,n){"use strict";var r=n("xTJ+");e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function o(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=o(window.location.href),function(t){var n=r.isString(t)?o(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}},OcHi:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ariaHidden=i,t.hideSiblings=function(e,t){o(e,t,(function(e){return i(!0,e)}))},t.showSiblings=function(e,t){o(e,t,(function(e){return i(!1,e)}))};var r=["template","script","style"];function o(e,t,n){t=[].concat(t),[].forEach.call(e.children,(function(e){-1===t.indexOf(e)&&function(e){return 1===e.nodeType&&-1===r.indexOf(e.tagName.toLowerCase())}(e)&&n(e)}))}function i(e,t){t&&(e?t.setAttribute("aria-hidden","true"):t.removeAttribute("aria-hidden"))}},Ojgd:function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},OnI7:function(e,t,n){var r=n("dyZX"),o=n("g3g5"),i=n("LQAc"),a=n("N8g3"),l=n("hswa").f;e.exports=function(e){var t=o.Symbol||(o.Symbol=i?{}:r.Symbol||{});"_"==e.charAt(0)||e in t||l(t,e,{value:a.f(e)})}},Optq:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="0 0 1024 1024",o="64 64 896 896",i="fill",a="outline",l="twotone";function c(e){for(var t=[],n=1;n15?"…"+a.slice(r-15,r):a.slice(0,r))+c+(l+15":">","<":"<",'"':""","'":"'"},s=/[&><"']/g,u=function e(t){return"ordgroup"===t.type||"color"===t.type?1===t.body.length?e(t.body[0]):t:"font"===t.type?e(t.body):t},f={contains:function(e,t){return-1!==e.indexOf(t)},deflt:function(e,t){return void 0===e?t:e},escape:function(e){return String(e).replace(s,(function(e){return c[e]}))},hyphenate:function(e){return e.replace(l,"-$1").toLowerCase()},getBaseElem:u,isCharacterBox:function(e){var t=u(e);return"mathord"===t.type||"textord"===t.type||"atom"===t.type},protocolFromUrl:function(e){var t=/^\s*([^\\/#]*?)(?::|�*58|�*3a)/i.exec(e);return null!=t?t[1]:"_relative"}},h=function(){function e(e){this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,e=e||{},this.displayMode=f.deflt(e.displayMode,!1),this.output=f.deflt(e.output,"htmlAndMathml"),this.leqno=f.deflt(e.leqno,!1),this.fleqn=f.deflt(e.fleqn,!1),this.throwOnError=f.deflt(e.throwOnError,!0),this.errorColor=f.deflt(e.errorColor,"#cc0000"),this.macros=e.macros||{},this.minRuleThickness=Math.max(0,f.deflt(e.minRuleThickness,0)),this.colorIsTextColor=f.deflt(e.colorIsTextColor,!1),this.strict=f.deflt(e.strict,"warn"),this.trust=f.deflt(e.trust,!1),this.maxSize=Math.max(0,f.deflt(e.maxSize,1/0)),this.maxExpand=Math.max(0,f.deflt(e.maxExpand,1e3))}var t=e.prototype;return t.reportNonstrict=function(e,t,n){var r=this.strict;if("function"==typeof r&&(r=r(e,t,n)),r&&"ignore"!==r){if(!0===r||"error"===r)throw new a("LaTeX-incompatible input and strict mode is set to 'error': "+t+" ["+e+"]",n);"warn"===r?"undefined"!=typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+t+" ["+e+"]"):"undefined"!=typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to unrecognized '"+r+"': "+t+" ["+e+"]")}},t.useStrictBehavior=function(e,t,n){var r=this.strict;if("function"==typeof r)try{r=r(e,t,n)}catch(e){r="error"}return!(!r||"ignore"===r||!0!==r&&"error"!==r&&("warn"===r?("undefined"!=typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+t+" ["+e+"]"),1):("undefined"!=typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to unrecognized '"+r+"': "+t+" ["+e+"]"),1)))},t.isTrusted=function(e){e.url&&!e.protocol&&(e.protocol=f.protocolFromUrl(e.url));var t="function"==typeof this.trust?this.trust(e):this.trust;return Boolean(t)},e}(),p=function(){function e(e,t,n){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=e,this.size=t,this.cramped=n}var t=e.prototype;return t.sup=function(){return d[m[this.id]]},t.sub=function(){return d[v[this.id]]},t.fracNum=function(){return d[y[this.id]]},t.fracDen=function(){return d[g[this.id]]},t.cramp=function(){return d[b[this.id]]},t.text=function(){return d[w[this.id]]},t.isTight=function(){return this.size>=2},e}(),d=[new p(0,0,!1),new p(1,0,!0),new p(2,1,!1),new p(3,1,!0),new p(4,2,!1),new p(5,2,!0),new p(6,3,!1),new p(7,3,!0)],m=[4,5,4,5,6,7,6,7],v=[5,5,5,5,7,7,7,7],y=[2,3,4,5,6,7,6,7],g=[3,3,5,5,7,7,7,7],b=[1,1,3,3,5,5,7,7],w=[0,1,2,3,2,3,2,3],x={DISPLAY:d[0],TEXT:d[2],SCRIPT:d[4],SCRIPTSCRIPT:d[6]},_=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}],k=[];function S(e){for(var t=0;t=k[t]&&e<=k[t+1])return!0;return!1}_.forEach((function(e){return e.blocks.forEach((function(e){return k.push.apply(k,e)}))}));var O={doubleleftarrow:"M262 157\nl10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3\n 0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28\n 14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5\nc2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5\n 157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87\n-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7\n-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z\nm8 0v40h399730v-40zm0 194v40h399730v-40z",doublerightarrow:"M399738 392l\n-10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5\n 14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88\n-33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68\n-17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18\n-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782\nc-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3\n-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z",leftarrow:"M400000 241H110l3-3c68.7-52.7 113.7-120\n 135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8\n-5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247\nc-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208\n 490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3\n 1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202\n l-3-3h399890zM100 241v40h399900v-40z",leftbrace:"M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117\n-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7\n 5-6 9-10 13-.7 1-7.3 1-20 1H6z",leftbraceunder:"M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13\n 35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688\n 0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7\n-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z",leftgroup:"M400000 80\nH435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0\n 435 0h399565z",leftgroupunder:"M400000 262\nH435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219\n 435 219h399565z",leftharpoon:"M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3\n-3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5\n-18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7\n-196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z",leftharpoonplus:"M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5\n 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3\n-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7\n-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z\nm0 0v40h400000v-40z",leftharpoondown:"M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333\n 5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5\n 1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667\n-152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z",leftharpoondownplus:"M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12\n 10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7\n-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0\nv40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z",lefthook:"M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5\n-83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3\n-68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21\n 71.5 23h399859zM103 281v-40h399897v40z",leftlinesegment:"M40 281 V428 H0 V94 H40 V241 H400000 v40z\nM40 281 V428 H0 V94 H40 V241 H400000 v40z",leftmapsto:"M40 281 V448H0V74H40V241H400000v40z\nM40 281 V448H0V74H40V241H400000v40z",leftToFrom:"M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23\n-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8\nc28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3\n 68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z",longequal:"M0 50 h400000 v40H0z m0 194h40000v40H0z\nM0 50 h400000 v40H0z m0 194h40000v40H0z",midbrace:"M200428 334\nc-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14\n-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7\n 311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11\n 12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z",midbraceunder:"M199572 214\nc100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14\n 53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3\n 11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0\n-5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z",oiintSize1:"M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6\n-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z\nm368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8\n60.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z",oiintSize2:"M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8\n-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z\nm502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2\nc0 110 84 276 504 276s502.4-166 502.4-276z",oiiintSize1:"M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6\n-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z\nm525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0\n85.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z",oiiintSize2:"M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8\n-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z\nm770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1\nc0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z",rightarrow:"M0 241v40h399891c-47.3 35.3-84 78-110 128\n-16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20\n 11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7\n 39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85\n-40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5\n-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67\n 151.7 139 205zm0 0v40h399900v-40z",rightbrace:"M400000 542l\n-6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5\ns-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1\nc124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z",rightbraceunder:"M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3\n 28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237\n-174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z",rightgroup:"M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0\n 3-1 3-3v-38c-76-158-257-219-435-219H0z",rightgroupunder:"M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18\n 0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z",rightharpoon:"M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3\n-3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2\n-10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58\n 69.2 92 94.5zm0 0v40h399900v-40z",rightharpoonplus:"M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11\n-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7\n 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z\nm0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z",rightharpoondown:"M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8\n 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5\n-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95\n-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z",rightharpoondownplus:"M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8\n 15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3\n 8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3\n-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z\nm0-194v40h400000v-40zm0 0v40h400000v-40z",righthook:"M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3\n 15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0\n-13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21\n 66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z",rightlinesegment:"M399960 241 V94 h40 V428 h-40 V281 H0 v-40z\nM399960 241 V94 h40 V428 h-40 V281 H0 v-40z",rightToFrom:"M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23\n 1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32\n-52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142\n-167z M100 147v40h399900v-40zM0 341v40h399900v-40z",twoheadleftarrow:"M0 167c68 40\n 115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69\n-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3\n-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19\n-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101\n 10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z",twoheadrightarrow:"M400000 167\nc-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3\n 41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42\n 18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333\n-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70\n 101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z",tilde1:"M200 55.538c-77 0-168 73.953-177 73.953-3 0-7\n-2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0\n 114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 6.525 0\n 4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128\n-68.267.847-113-73.952-191-73.952z",tilde2:"M344 55.266c-142 0-300.638 81.316-311.5 86.418\n-8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9\n 31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114\nc1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751\n 181.476 676 181.476c-149 0-189-126.21-332-126.21z",tilde3:"M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457\n-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0\n 411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697\n 16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696\n -338 0-409-156.573-744-156.573z",tilde4:"M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345\n-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409\n 177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9\n 14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409\n -175.236-744-175.236z",vec:"M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5\n3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11\n10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63\n-1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1\n-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59\nH213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359\nc-16-25.333-24-45-24-59z",widehat1:"M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22\nc-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z",widehat2:"M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10\n-11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z",widehat3:"M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10\n-11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z",widehat4:"M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10\n-11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z",widecheck1:"M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1,\n-5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z",widecheck2:"M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,\n-11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z",widecheck3:"M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,\n-11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z",widecheck4:"M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,\n-11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z",baraboveleftarrow:"M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202\nc4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5\nc-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130\ns-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47\n121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6\ns2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11\nc0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z\nM100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z",rightarrowabovebar:"M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32\n-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0\n13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39\n-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5\n-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5\n-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67\n151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z",baraboveshortleftharpoon:"M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11\nc1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17\nc2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21\nc-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40\nc-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z\nM0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z",rightharpoonaboveshortbar:"M0,241 l0,40c399126,0,399993,0,399993,0\nc4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,\n-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6\nc-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z\nM0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z",shortbaraboveleftharpoon:"M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11\nc1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9,\n1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7,\n-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z\nM93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z",shortrightharpoonabovebar:"M53,241l0,40c398570,0,399437,0,399437,0\nc4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,\n-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6\nc-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z\nM500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z"},M=function(){function e(e){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=e,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}var t=e.prototype;return t.hasClass=function(e){return f.contains(this.classes,e)},t.toNode=function(){for(var e=document.createDocumentFragment(),t=0;t"},P=function(){function e(e,t,n,r){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,E.call(this,e,n,r),this.children=t||[]}var t=e.prototype;return t.setAttribute=function(e,t){this.attributes[e]=t},t.hasClass=function(e){return f.contains(this.classes,e)},t.toNode=function(){return z.call(this,"span")},t.toMarkup=function(){return C.call(this,"span")},e}(),A=function(){function e(e,t,n,r){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,E.call(this,t,r),this.children=n||[],this.setAttribute("href",e)}var t=e.prototype;return t.setAttribute=function(e,t){this.attributes[e]=t},t.hasClass=function(e){return f.contains(this.classes,e)},t.toNode=function(){return z.call(this,"a")},t.toMarkup=function(){return C.call(this,"a")},e}(),j=function(){function e(e,t,n){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=t,this.src=e,this.classes=["mord"],this.style=n}var t=e.prototype;return t.hasClass=function(e){return f.contains(this.classes,e)},t.toNode=function(){var e=document.createElement("img");for(var t in e.src=this.src,e.alt=this.alt,e.className="mord",this.style)this.style.hasOwnProperty(t)&&(e.style[t]=this.style[t]);return e},t.toMarkup=function(){var e=""+this.alt+"=o[0]&&e<=o[1])return n.name}return null}(this.text.charCodeAt(0));c&&this.classes.push(c+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=L[this.text])}var t=e.prototype;return t.hasClass=function(e){return f.contains(this.classes,e)},t.toNode=function(){var e=document.createTextNode(this.text),t=null;for(var n in this.italic>0&&((t=document.createElement("span")).style.marginRight=this.italic+"em"),this.classes.length>0&&((t=t||document.createElement("span")).className=T(this.classes)),this.style)this.style.hasOwnProperty(n)&&((t=t||document.createElement("span")).style[n]=this.style[n]);return t?(t.appendChild(e),t):e},t.toMarkup=function(){var e=!1,t="0&&(n+="margin-right:"+this.italic+"em;"),this.style)this.style.hasOwnProperty(r)&&(n+=f.hyphenate(r)+":"+this.style[r]+";");n&&(e=!0,t+=' style="'+f.escape(n)+'"');var o=f.escape(this.text);return e?(t+=">",t+=o,t+=""):o},e}(),H=function(){function e(e,t){this.children=void 0,this.attributes=void 0,this.children=e||[],this.attributes=t||{}}var t=e.prototype;return t.toNode=function(){var e=document.createElementNS("http://www.w3.org/2000/svg","svg");for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&e.setAttribute(t,this.attributes[t]);for(var n=0;n":""},e}(),I=function(){function e(e){this.attributes=void 0,this.attributes=e||{}}var t=e.prototype;return t.toNode=function(){var e=document.createElementNS("http://www.w3.org/2000/svg","line");for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&e.setAttribute(t,this.attributes[t]);return e},t.toMarkup=function(){var e="",">"),X("math",J,te,":",":"),X("math",J,te,"≈","\\approx",!0),X("math",J,te,"≅","\\cong",!0),X("math",J,te,"≥","\\ge"),X("math",J,te,"≥","\\geq",!0),X("math",J,te,"←","\\gets"),X("math",J,te,">","\\gt"),X("math",J,te,"∈","\\in",!0),X("math",J,te,"","\\@not"),X("math",J,te,"⊂","\\subset",!0),X("math",J,te,"⊃","\\supset",!0),X("math",J,te,"⊆","\\subseteq",!0),X("math",J,te,"⊇","\\supseteq",!0),X("math",Q,te,"⊈","\\nsubseteq",!0),X("math",Q,te,"⊉","\\nsupseteq",!0),X("math",J,te,"⊨","\\models"),X("math",J,te,"←","\\leftarrow",!0),X("math",J,te,"≤","\\le"),X("math",J,te,"≤","\\leq",!0),X("math",J,te,"<","\\lt"),X("math",J,te,"→","\\rightarrow",!0),X("math",J,te,"→","\\to"),X("math",Q,te,"≱","\\ngeq",!0),X("math",Q,te,"≰","\\nleq",!0),X("math",J,"spacing"," ","\\ "),X("math",J,"spacing"," ","~"),X("math",J,"spacing"," ","\\space"),X("math",J,"spacing"," ","\\nobreakspace"),X("text",J,"spacing"," ","\\ "),X("text",J,"spacing"," ","~"),X("text",J,"spacing"," ","\\space"),X("text",J,"spacing"," ","\\nobreakspace"),X("math",J,"spacing",null,"\\nobreak"),X("math",J,"spacing",null,"\\allowbreak"),X("math",J,"punct",",",","),X("math",J,"punct",";",";"),X("math",Q,Z,"⊼","\\barwedge",!0),X("math",Q,Z,"⊻","\\veebar",!0),X("math",J,Z,"⊙","\\odot",!0),X("math",J,Z,"⊕","\\oplus",!0),X("math",J,Z,"⊗","\\otimes",!0),X("math",J,"textord","∂","\\partial",!0),X("math",J,Z,"⊘","\\oslash",!0),X("math",Q,Z,"⊚","\\circledcirc",!0),X("math",Q,Z,"⊡","\\boxdot",!0),X("math",J,Z,"△","\\bigtriangleup"),X("math",J,Z,"▽","\\bigtriangledown"),X("math",J,Z,"†","\\dagger"),X("math",J,Z,"⋄","\\diamond"),X("math",J,Z,"⋆","\\star"),X("math",J,Z,"◃","\\triangleleft"),X("math",J,Z,"▹","\\triangleright"),X("math",J,"open","{","\\{"),X("text",J,"textord","{","\\{"),X("text",J,"textord","{","\\textbraceleft"),X("math",J,"close","}","\\}"),X("text",J,"textord","}","\\}"),X("text",J,"textord","}","\\textbraceright"),X("math",J,"open","{","\\lbrace"),X("math",J,"close","}","\\rbrace"),X("math",J,"open","[","\\lbrack"),X("text",J,"textord","[","\\lbrack"),X("math",J,"close","]","\\rbrack"),X("text",J,"textord","]","\\rbrack"),X("math",J,"open","(","\\lparen"),X("math",J,"close",")","\\rparen"),X("text",J,"textord","<","\\textless"),X("text",J,"textord",">","\\textgreater"),X("math",J,"open","⌊","\\lfloor",!0),X("math",J,"close","⌋","\\rfloor",!0),X("math",J,"open","⌈","\\lceil",!0),X("math",J,"close","⌉","\\rceil",!0),X("math",J,"textord","\\","\\backslash"),X("math",J,"textord","∣","|"),X("math",J,"textord","∣","\\vert"),X("text",J,"textord","|","\\textbar"),X("math",J,"textord","∥","\\|"),X("math",J,"textord","∥","\\Vert"),X("text",J,"textord","∥","\\textbardbl"),X("text",J,"textord","~","\\textasciitilde"),X("text",J,"textord","\\","\\textbackslash"),X("text",J,"textord","^","\\textasciicircum"),X("math",J,te,"↑","\\uparrow",!0),X("math",J,te,"⇑","\\Uparrow",!0),X("math",J,te,"↓","\\downarrow",!0),X("math",J,te,"⇓","\\Downarrow",!0),X("math",J,te,"↕","\\updownarrow",!0),X("math",J,te,"⇕","\\Updownarrow",!0),X("math",J,ee,"∐","\\coprod"),X("math",J,ee,"⋁","\\bigvee"),X("math",J,ee,"⋀","\\bigwedge"),X("math",J,ee,"⨄","\\biguplus"),X("math",J,ee,"⋂","\\bigcap"),X("math",J,ee,"⋃","\\bigcup"),X("math",J,ee,"∫","\\int"),X("math",J,ee,"∫","\\intop"),X("math",J,ee,"∬","\\iint"),X("math",J,ee,"∭","\\iiint"),X("math",J,ee,"∏","\\prod"),X("math",J,ee,"∑","\\sum"),X("math",J,ee,"⨂","\\bigotimes"),X("math",J,ee,"⨁","\\bigoplus"),X("math",J,ee,"⨀","\\bigodot"),X("math",J,ee,"∮","\\oint"),X("math",J,ee,"∯","\\oiint"),X("math",J,ee,"∰","\\oiiint"),X("math",J,ee,"⨆","\\bigsqcup"),X("math",J,ee,"∫","\\smallint"),X("text",J,"inner","…","\\textellipsis"),X("math",J,"inner","…","\\mathellipsis"),X("text",J,"inner","…","\\ldots",!0),X("math",J,"inner","…","\\ldots",!0),X("math",J,"inner","⋯","\\@cdots",!0),X("math",J,"inner","⋱","\\ddots",!0),X("math",J,"textord","⋮","\\varvdots"),X("math",J,"accent-token","ˊ","\\acute"),X("math",J,"accent-token","ˋ","\\grave"),X("math",J,"accent-token","¨","\\ddot"),X("math",J,"accent-token","~","\\tilde"),X("math",J,"accent-token","ˉ","\\bar"),X("math",J,"accent-token","˘","\\breve"),X("math",J,"accent-token","ˇ","\\check"),X("math",J,"accent-token","^","\\hat"),X("math",J,"accent-token","⃗","\\vec"),X("math",J,"accent-token","˙","\\dot"),X("math",J,"accent-token","˚","\\mathring"),X("math",J,$,"ı","\\imath",!0),X("math",J,$,"ȷ","\\jmath",!0),X("text",J,"textord","ı","\\i",!0),X("text",J,"textord","ȷ","\\j",!0),X("text",J,"textord","ß","\\ss",!0),X("text",J,"textord","æ","\\ae",!0),X("text",J,"textord","æ","\\ae",!0),X("text",J,"textord","œ","\\oe",!0),X("text",J,"textord","ø","\\o",!0),X("text",J,"textord","Æ","\\AE",!0),X("text",J,"textord","Œ","\\OE",!0),X("text",J,"textord","Ø","\\O",!0),X("text",J,"accent-token","ˊ","\\'"),X("text",J,"accent-token","ˋ","\\`"),X("text",J,"accent-token","ˆ","\\^"),X("text",J,"accent-token","˜","\\~"),X("text",J,"accent-token","ˉ","\\="),X("text",J,"accent-token","˘","\\u"),X("text",J,"accent-token","˙","\\."),X("text",J,"accent-token","˚","\\r"),X("text",J,"accent-token","ˇ","\\v"),X("text",J,"accent-token","¨",'\\"'),X("text",J,"accent-token","˝","\\H"),X("text",J,"accent-token","◯","\\textcircled");var ne={"--":!0,"---":!0,"``":!0,"''":!0};X("text",J,"textord","–","--"),X("text",J,"textord","–","\\textendash"),X("text",J,"textord","—","---"),X("text",J,"textord","—","\\textemdash"),X("text",J,"textord","‘","`"),X("text",J,"textord","‘","\\textquoteleft"),X("text",J,"textord","’","'"),X("text",J,"textord","’","\\textquoteright"),X("text",J,"textord","“","``"),X("text",J,"textord","“","\\textquotedblleft"),X("text",J,"textord","”","''"),X("text",J,"textord","”","\\textquotedblright"),X("math",J,"textord","°","\\degree",!0),X("text",J,"textord","°","\\degree"),X("text",J,"textord","°","\\textdegree",!0),X("math",J,$,"£","\\pounds"),X("math",J,$,"£","\\mathsterling",!0),X("text",J,$,"£","\\pounds"),X("text",J,$,"£","\\textsterling",!0),X("math",Q,"textord","✠","\\maltese"),X("text",Q,"textord","✠","\\maltese"),X("text",J,"spacing"," ","\\ "),X("text",J,"spacing"," "," "),X("text",J,"spacing"," ","~");for(var re=0;re<'0123456789/@."'.length;re++){var oe='0123456789/@."'.charAt(re);X("math",J,"textord",oe,oe)}for(var ie=0;ie<'0123456789!@*()-=+[]<>|";:?/.,'.length;ie++){var ae='0123456789!@*()-=+[]<>|";:?/.,'.charAt(ie);X("text",J,"textord",ae,ae)}for(var le="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",ce=0;ce=5?0:e>=3?1:2]){var n=U[t]={cssEmPerMu:F.quad[t]/18};for(var r in F)F.hasOwnProperty(r)&&(n[r]=F[r][t])}return U[t]}(this.size)),this._fontMetrics},t.getColor=function(){return this.phantom?"transparent":this.color},e}();_e.BASESIZE=6;var ke=_e,Se={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:1.00375,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:1.00375},Oe={ex:!0,em:!0,mu:!0},Me=function(e){return"string"!=typeof e&&(e=e.unit),e in Se||e in Oe||"ex"===e},Te=function(e,t){var n;if(e.unit in Se)n=Se[e.unit]/t.fontMetrics().ptPerEm/t.sizeMultiplier;else if("mu"===e.unit)n=t.fontMetrics().cssEmPerMu;else{var r;if(r=t.style.isTight()?t.havingStyle(t.style.text()):t,"ex"===e.unit)n=r.fontMetrics().xHeight;else{if("em"!==e.unit)throw new a("Invalid unit: '"+e.unit+"'");n=r.fontMetrics().quad}r!==t&&(n*=r.sizeMultiplier/t.sizeMultiplier)}return Math.min(e.number*n,t.maxSize)},Ee=["\\imath","ı","\\jmath","ȷ","\\pounds","\\mathsterling","\\textsterling","£"],ze=function(e,t,n){return K[n][e]&&K[n][e].replace&&(e=K[n][e].replace),{value:e,metrics:B(e,t,n)}},Ce=function(e,t,n,r,o){var i,a=ze(e,t,n),l=a.metrics;if(e=a.value,l){var c=l.italic;("text"===n||r&&"mathit"===r.font)&&(c=0),i=new N(e,l.height,l.depth,c,l.skew,l.width,o)}else"undefined"!=typeof console&&console.warn("No character metrics for '"+e+"' in style '"+t+"' and mode '"+n+"'"),i=new N(e,0,0,0,0,0,o);if(r){i.maxFontSize=r.sizeMultiplier,r.style.isTight()&&i.classes.push("mtight");var s=r.getColor();s&&(i.style.color=s)}return i},Pe=function(e,t){if(T(e.classes)!==T(t.classes)||e.skew!==t.skew||e.maxFontSize!==t.maxFontSize)return!1;for(var n in e.style)if(e.style.hasOwnProperty(n)&&e.style[n]!==t.style[n])return!1;for(var r in t.style)if(t.style.hasOwnProperty(r)&&e.style[r]!==t.style[r])return!1;return!0},Ae=function(e){for(var t=0,n=0,r=0,o=0;ot&&(t=i.height),i.depth>n&&(n=i.depth),i.maxFontSize>r&&(r=i.maxFontSize)}e.height=t,e.depth=n,e.maxFontSize=r},je=function(e,t,n,r){var o=new P(e,t,n,r);return Ae(o),o},Le=function(e,t,n,r){return new P(e,t,n,r)},Ne=function(e){var t=new M(e);return Ae(t),t},He=function(e,t,n){var r="";switch(e){case"amsrm":r="AMS";break;case"textrm":r="Main";break;case"textsf":r="SansSerif";break;case"texttt":r="Typewriter";break;default:r=e}return r+"-"+("textbf"===t&&"textit"===n?"BoldItalic":"textbf"===t?"Bold":"textit"===t?"Italic":"Regular")},Re={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathit:{variant:"italic",fontName:"Main-Italic"},mathbb:{variant:"double-struck",fontName:"AMS-Regular"},mathcal:{variant:"script",fontName:"Caligraphic-Regular"},mathfrak:{variant:"fraktur",fontName:"Fraktur-Regular"},mathscr:{variant:"script",fontName:"Script-Regular"},mathsf:{variant:"sans-serif",fontName:"SansSerif-Regular"},mathtt:{variant:"monospace",fontName:"Typewriter-Regular"}},Ie={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},Ve={fontMap:Re,makeSymbol:Ce,mathsym:function(e,t,n,r){return void 0===r&&(r=[]),"boldsymbol"===n.font&&ze(e,"Main-Bold",t).metrics?Ce(e,"Main-Bold",t,n,r.concat(["mathbf"])):"\\"===e||"main"===K[t][e].font?Ce(e,"Main-Regular",t,n,r):Ce(e,"AMS-Regular",t,n,r.concat(["amsrm"]))},makeSpan:je,makeSvgSpan:Le,makeLineSpan:function(e,t,n){var r=je([e],[],t);return r.height=Math.max(n||t.fontMetrics().defaultRuleThickness,t.minRuleThickness),r.style.borderBottomWidth=r.height+"em",r.maxFontSize=1,r},makeAnchor:function(e,t,n,r){var o=new A(e,t,n,r);return Ae(o),o},makeFragment:Ne,wrapFragment:function(e,t){return e instanceof M?je([],[e],t):e},makeVList:function(e,t){for(var n=function(e){if("individualShift"===e.positionType){for(var t=e.children,n=[t[0]],r=-t[0].shift-t[0].elem.depth,o=r,i=1;i0&&(i.push(pt(a,t)),a=[]),i.push(o[l]));a.length>0&&i.push(pt(a,t)),n&&((r=pt(lt(n,t,!0))).classes=["tag"],i.push(r));var s=nt(["katex-html"],i);if(s.setAttribute("aria-hidden","true"),r){var u=r.children[0];u.style.height=s.height+s.depth+"em",u.style.verticalAlign=-s.depth+"em"}return s}function mt(e){return new M(e)}var vt=function(){function e(e,t){this.type=void 0,this.attributes=void 0,this.children=void 0,this.type=e,this.attributes={},this.children=t||[]}var t=e.prototype;return t.setAttribute=function(e,t){this.attributes[e]=t},t.getAttribute=function(e){return this.attributes[e]},t.toNode=function(){var e=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&e.setAttribute(t,this.attributes[t]);for(var n=0;n"},t.toText=function(){return this.children.map((function(e){return e.toText()})).join("")},e}(),yt=function(){function e(e){this.text=void 0,this.text=e}var t=e.prototype;return t.toNode=function(){return document.createTextNode(this.text)},t.toMarkup=function(){return f.escape(this.toText())},t.toText=function(){return this.text},e}(),gt={MathNode:vt,TextNode:yt,SpaceNode:function(){function e(e){this.width=void 0,this.character=void 0,this.width=e,this.character=e>=.05555&&e<=.05556?" ":e>=.1666&&e<=.1667?" ":e>=.2222&&e<=.2223?" ":e>=.2777&&e<=.2778?"  ":e>=-.05556&&e<=-.05555?" ⁣":e>=-.1667&&e<=-.1666?" ⁣":e>=-.2223&&e<=-.2222?" ⁣":e>=-.2778&&e<=-.2777?" ⁣":null}var t=e.prototype;return t.toNode=function(){if(this.character)return document.createTextNode(this.character);var e=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return e.setAttribute("width",this.width+"em"),e},t.toMarkup=function(){return this.character?""+this.character+"":''},t.toText=function(){return this.character?this.character:" "},e}(),newDocumentFragment:mt},bt=function(e,t,n){return!K[t][e]||!K[t][e].replace||55349===e.charCodeAt(0)||ne.hasOwnProperty(e)&&n&&(n.fontFamily&&"tt"===n.fontFamily.substr(4,2)||n.font&&"tt"===n.font.substr(4,2))||(e=K[t][e].replace),new gt.TextNode(e)},wt=function(e){return 1===e.length?e[0]:new gt.MathNode("mrow",e)},xt=function(e,t){if("texttt"===t.fontFamily)return"monospace";if("textsf"===t.fontFamily)return"textit"===t.fontShape&&"textbf"===t.fontWeight?"sans-serif-bold-italic":"textit"===t.fontShape?"sans-serif-italic":"textbf"===t.fontWeight?"bold-sans-serif":"sans-serif";if("textit"===t.fontShape&&"textbf"===t.fontWeight)return"bold-italic";if("textit"===t.fontShape)return"italic";if("textbf"===t.fontWeight)return"bold";var n=t.font;if(!n||"mathnormal"===n)return null;var r=e.mode;if("mathit"===n)return"italic";if("boldsymbol"===n)return"bold-italic";if("mathbf"===n)return"bold";if("mathbb"===n)return"double-struck";if("mathfrak"===n)return"fraktur";if("mathscr"===n||"mathcal"===n)return"script";if("mathsf"===n)return"sans-serif";if("mathtt"===n)return"monospace";var o=e.text;return f.contains(["\\imath","\\jmath"],o)?null:(K[r][o]&&K[r][o].replace&&(o=K[r][o].replace),B(o,Ve.fontMap[n].fontName,r)?Ve.fontMap[n].variant:null)},_t=function(e,t,n){if(1===e.length){var r=St(e[0],t);return n&&r instanceof vt&&"mo"===r.type&&(r.setAttribute("lspace","0em"),r.setAttribute("rspace","0em")),[r]}for(var o,i=[],a=0;a0&&(p.text=p.text.slice(0,1)+"̸"+p.text.slice(1),i.pop())}}}i.push(l),o=l}return i},kt=function(e,t,n){return wt(_t(e,t,n))},St=function(e,t){if(!e)return new gt.MathNode("mrow");if(Ze[e.type])return Ze[e.type](e,t);throw new a("Got group of unknown type: '"+e.type+"'")};function Ot(e,t,n,r){var o,i=_t(e,n);o=1===i.length&&i[0]instanceof vt&&f.contains(["mrow","mtable"],i[0].type)?i[0]:new gt.MathNode("mrow",i);var a=new gt.MathNode("annotation",[new gt.TextNode(t)]);a.setAttribute("encoding","application/x-tex");var l=new gt.MathNode("semantics",[o,a]),c=new gt.MathNode("math",[l]);c.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML");var s=r?"katex":"katex-mathml";return Ve.makeSpan([s],[c])}var Mt=function(e){return new ke({style:e.displayMode?x.DISPLAY:x.TEXT,maxSize:e.maxSize,minRuleThickness:e.minRuleThickness})},Tt=function(e,t){if(t.displayMode){var n=["katex-display"];t.leqno&&n.push("leqno"),t.fleqn&&n.push("fleqn"),e=Ve.makeSpan(n,[e])}return e},Et=function(e,t,n){var r,o=Mt(n);if("mathml"===n.output)return Ot(e,t,o,!0);if("html"===n.output){var i=dt(e,o);r=Ve.makeSpan(["katex"],[i])}else{var a=Ot(e,t,o,!1),l=dt(e,o);r=Ve.makeSpan(["katex"],[a,l])}return Tt(r,n)},zt={widehat:"^",widecheck:"ˇ",widetilde:"~",utilde:"~",overleftarrow:"←",underleftarrow:"←",xleftarrow:"←",overrightarrow:"→",underrightarrow:"→",xrightarrow:"→",underbrace:"⏟",overbrace:"⏞",overgroup:"⏠",undergroup:"⏡",overleftrightarrow:"↔",underleftrightarrow:"↔",xleftrightarrow:"↔",Overrightarrow:"⇒",xRightarrow:"⇒",overleftharpoon:"↼",xleftharpoonup:"↼",overrightharpoon:"⇀",xrightharpoonup:"⇀",xLeftarrow:"⇐",xLeftrightarrow:"⇔",xhookleftarrow:"↩",xhookrightarrow:"↪",xmapsto:"↦",xrightharpoondown:"⇁",xleftharpoondown:"↽",xrightleftharpoons:"⇌",xleftrightharpoons:"⇋",xtwoheadleftarrow:"↞",xtwoheadrightarrow:"↠",xlongequal:"=",xtofrom:"⇄",xrightleftarrows:"⇄",xrightequilibrium:"⇌",xleftequilibrium:"⇋"},Ct={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},Pt=function(e,t,n,r){var o,i=e.height+e.depth+2*n;if(/fbox|color/.test(t)){if(o=Ve.makeSpan(["stretchy",t],[],r),"fbox"===t){var a=r.color&&r.getColor();a&&(o.style.borderColor=a)}}else{var l=[];/^[bx]cancel$/.test(t)&&l.push(new I({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(t)&&l.push(new I({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var c=new H(l,{width:"100%",height:i+"em"});o=Ve.makeSvgSpan([],[c],r)}return o.height=i,o.style.height=i+"em",o},At=function(e){var t=new gt.MathNode("mo",[new gt.TextNode(zt[e.substr(1)])]);return t.setAttribute("stretchy","true"),t},jt=function(e,t){var n=function(){var n=4e5,r=e.label.substr(1);if(f.contains(["widehat","widecheck","widetilde","utilde"],r)){var o,i,a,l="ordgroup"===(d=e.base).type?d.body.length:1;if(l>5)"widehat"===r||"widecheck"===r?(o=420,n=2364,a=.42,i=r+"4"):(o=312,n=2340,a=.34,i="tilde4");else{var c=[1,1,2,2,3,3][l];"widehat"===r||"widecheck"===r?(n=[0,1062,2364,2364,2364][c],o=[0,239,300,360,420][c],a=[0,.24,.3,.3,.36,.42][c],i=r+c):(n=[0,600,1033,2339,2340][c],o=[0,260,286,306,312][c],a=[0,.26,.286,.3,.306,.34][c],i="tilde"+c)}var s=new R(i),u=new H([s],{width:"100%",height:a+"em",viewBox:"0 0 "+n+" "+o,preserveAspectRatio:"none"});return{span:Ve.makeSvgSpan([],[u],t),minWidth:0,height:a}}var h,p,d,m=[],v=Ct[r],y=v[0],g=v[1],b=v[2],w=b/1e3,x=y.length;if(1===x)h=["hide-tail"],p=[v[3]];else if(2===x)h=["halfarrow-left","halfarrow-right"],p=["xMinYMin","xMaxYMin"];else{if(3!==x)throw new Error("Correct katexImagesData or update code here to support\n "+x+" children.");h=["brace-left","brace-center","brace-right"],p=["xMinYMin","xMidYMin","xMaxYMin"]}for(var _=0;_0&&(r.style.minWidth=o+"em"),r},Lt=function(e,t){var n,r,o,i=Fe(e,"supsub");i?(n=(r=De(i.base,"accent")).base,i.base=n,o=function(e){if(e instanceof P)return e;throw new Error("Expected span but got "+String(e)+".")}(ht(i,t)),i.base=r):n=(r=De(e,"accent")).base;var a=ht(n,t.havingCrampedStyle()),l=0;if(r.isShifty&&f.isCharacterBox(n)){var c=f.getBaseElem(n);l=V(ht(c,t.havingCrampedStyle())).skew}var s,u=Math.min(a.height,t.fontMetrics().xHeight);if(r.isStretchy)s=jt(r,t),s=Ve.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"elem",elem:s,wrapperClasses:["svg-align"],wrapperStyle:l>0?{width:"calc(100% - "+2*l+"em)",marginLeft:2*l+"em"}:void 0}]},t);else{var h,p;"\\vec"===r.label?(h=Ve.staticSvg("vec",t),p=Ve.svgData.vec[1]):((h=V(h=Ve.makeOrd({mode:r.mode,text:r.label},t,"textord"))).italic=0,p=h.width),s=Ve.makeSpan(["accent-body"],[h]);var d="\\textcircled"===r.label;d&&(s.classes.push("accent-full"),u=a.height);var m=l;d||(m-=p/2),s.style.left=m+"em","\\textcircled"===r.label&&(s.style.top=".2em"),s=Ve.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"kern",size:-u},{type:"elem",elem:s}]},t)}var v=Ve.makeSpan(["mord","accent"],[s],t);return o?(o.children[0]=v,o.height=Math.max(v.height,o.height),o.classes[0]="mord",o):v},Nt=function(e,t){var n=e.isStretchy?At(e.label):new gt.MathNode("mo",[bt(e.label,e.mode)]),r=new gt.MathNode("mover",[St(e.base,t),n]);return r.setAttribute("accent","true"),r},Ht=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map((function(e){return"\\"+e})).join("|"));$e({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:function(e,t){var n=t[0],r=!Ht.test(e.funcName),o=!r||"\\widehat"===e.funcName||"\\widetilde"===e.funcName||"\\widecheck"===e.funcName;return{type:"accent",mode:e.parser.mode,label:e.funcName,isStretchy:r,isShifty:o,base:n}},htmlBuilder:Lt,mathmlBuilder:Nt}),$e({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!1},handler:function(e,t){var n=t[0];return{type:"accent",mode:e.parser.mode,label:e.funcName,isStretchy:!1,isShifty:!0,base:n}},htmlBuilder:Lt,mathmlBuilder:Nt}),$e({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:function(e,t){var n=e.parser,r=e.funcName,o=t[0];return{type:"accentUnder",mode:n.mode,label:r,base:o}},htmlBuilder:function(e,t){var n=ht(e.base,t),r=jt(e,t),o="\\utilde"===e.label?.12:0,i=Ve.makeVList({positionType:"bottom",positionData:r.height+o,children:[{type:"elem",elem:r,wrapperClasses:["svg-align"]},{type:"kern",size:o},{type:"elem",elem:n}]},t);return Ve.makeSpan(["mord","accentunder"],[i],t)},mathmlBuilder:function(e,t){var n=At(e.label),r=new gt.MathNode("munder",[St(e.base,t),n]);return r.setAttribute("accentunder","true"),r}});var Rt=function(e){var t=new gt.MathNode("mpadded",e?[e]:[]);return t.setAttribute("width","+0.6em"),t.setAttribute("lspace","0.3em"),t};$e({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium"],props:{numArgs:1,numOptionalArgs:1},handler:function(e,t,n){var r=e.parser,o=e.funcName;return{type:"xArrow",mode:r.mode,label:o,body:t[0],below:n[0]}},htmlBuilder:function(e,t){var n,r=t.style,o=t.havingStyle(r.sup()),i=Ve.wrapFragment(ht(e.body,o,t),t);i.classes.push("x-arrow-pad"),e.below&&(o=t.havingStyle(r.sub()),(n=Ve.wrapFragment(ht(e.below,o,t),t)).classes.push("x-arrow-pad"));var a,l=jt(e,t),c=-t.fontMetrics().axisHeight+.5*l.height,s=-t.fontMetrics().axisHeight-.5*l.height-.111;if((i.depth>.25||"\\xleftequilibrium"===e.label)&&(s-=i.depth),n){var u=-t.fontMetrics().axisHeight+n.height+.5*l.height+.111;a=Ve.makeVList({positionType:"individualShift",children:[{type:"elem",elem:i,shift:s},{type:"elem",elem:l,shift:c},{type:"elem",elem:n,shift:u}]},t)}else a=Ve.makeVList({positionType:"individualShift",children:[{type:"elem",elem:i,shift:s},{type:"elem",elem:l,shift:c}]},t);return a.children[0].children[0].children[1].classes.push("svg-align"),Ve.makeSpan(["mrel","x-arrow"],[a],t)},mathmlBuilder:function(e,t){var n,r=At(e.label);if(e.body){var o=Rt(St(e.body,t));if(e.below){var i=Rt(St(e.below,t));n=new gt.MathNode("munderover",[r,i,o])}else n=new gt.MathNode("mover",[r,o])}else if(e.below){var a=Rt(St(e.below,t));n=new gt.MathNode("munder",[r,a])}else n=Rt(),n=new gt.MathNode("mover",[r,n]);return n}}),$e({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler:function(e,t){for(var n=e.parser,r=De(t[0],"ordgroup").body,o="",i=0;i","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],Qt=[0,1.2,1.8,2.4,3],Zt=[{type:"small",style:x.SCRIPTSCRIPT},{type:"small",style:x.SCRIPT},{type:"small",style:x.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],$t=[{type:"small",style:x.SCRIPTSCRIPT},{type:"small",style:x.SCRIPT},{type:"small",style:x.TEXT},{type:"stack"}],en=[{type:"small",style:x.SCRIPTSCRIPT},{type:"small",style:x.SCRIPT},{type:"small",style:x.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],tn=function(e){if("small"===e.type)return"Main-Regular";if("large"===e.type)return"Size"+e.size+"-Regular";if("stack"===e.type)return"Size4-Regular";throw new Error("Add support for delim type '"+e.type+"' here.")},nn=function(e,t,n,r){for(var o=Math.min(2,3-r.style.size);ot)return n[o]}return n[n.length-1]},rn=function(e,t,n,r,o,i){var a;"<"===e||"\\lt"===e||"⟨"===e?e="\\langle":">"!==e&&"\\gt"!==e&&"⟩"!==e||(e="\\rangle"),a=f.contains(Jt,e)?Zt:f.contains(Kt,e)?en:$t;var l=nn(e,t,a,r);return"small"===l.type?function(e,t,n,r,o,i){var a=Ve.makeSymbol(e,"Main-Regular",o,r),l=Ft(a,t,r,i);return n&&qt(l,r,t),l}(e,l.style,n,r,o,i):"large"===l.type?Bt(e,l.size,n,r,o,i):Yt(e,t,n,r,o,i)},on=function(e,t){var n,r,o=t.havingBaseSizing(),i=nn("\\surd",e*o.sizeMultiplier,en,o),a=o.sizeMultiplier,l=Math.max(0,t.minRuleThickness-t.fontMetrics().sqrtRuleThickness),c=0,s=0,u=0;return"small"===i.type?(e<1?a=1:e<1.4&&(a=.7),s=(1+l)/a,(n=Gt("sqrtMain",c=(1+l+.08)/a,u=1e3+1e3*l+80,l,t)).style.minWidth="0.853em",r=.833/a):"large"===i.type?(u=1080*Qt[i.size],s=(Qt[i.size]+l)/a,c=(Qt[i.size]+l+.08)/a,(n=Gt("sqrtSize"+i.size,c,u,l,t)).style.minWidth="1.02em",r=1/a):(c=e+l+.08,s=e+l,u=Math.floor(1e3*e+l)+80,(n=Gt("sqrtTall",c,u,l,t)).style.minWidth="0.742em",r=1.056),n.height=s,n.style.height=c+"em",{span:n,advanceWidth:r,ruleWidth:(t.fontMetrics().sqrtRuleThickness+l)*a}},an=function(e,t,n,r,o){if("<"===e||"\\lt"===e||"⟨"===e?e="\\langle":">"!==e&&"\\gt"!==e&&"⟩"!==e||(e="\\rangle"),f.contains(Kt,e)||f.contains(Jt,e))return Bt(e,t,!1,n,r,o);if(f.contains(Xt,e))return Yt(e,Qt[t],!1,n,r,o);throw new a("Illegal delimiter: '"+e+"'")},ln=rn,cn=function(e,t,n,r,o,i){var a=r.fontMetrics().axisHeight*r.sizeMultiplier,l=5/r.fontMetrics().ptPerEm,c=Math.max(t-a,n+a),s=Math.max(c/500*901,2*c-l);return rn(e,s,!0,r,o,i)},sn={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}},un=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","<",">","\\langle","⟨","\\rangle","⟩","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."];function fn(e,t){var n=Ue(e);if(n&&f.contains(un,n.text))return n;throw new a("Invalid delimiter: '"+(n?n.text:JSON.stringify(e))+"' after '"+t.funcName+"'",e)}function hn(e){if(!e.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}$e({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1},handler:function(e,t){var n=fn(t[0],e);return{type:"delimsizing",mode:e.parser.mode,size:sn[e.funcName].size,mclass:sn[e.funcName].mclass,delim:n.text}},htmlBuilder:function(e,t){return"."===e.delim?Ve.makeSpan([e.mclass]):an(e.delim,e.size,t,e.mode,[e.mclass])},mathmlBuilder:function(e){var t=[];"."!==e.delim&&t.push(bt(e.delim,e.mode));var n=new gt.MathNode("mo",t);return"mopen"===e.mclass||"mclose"===e.mclass?n.setAttribute("fence","true"):n.setAttribute("fence","false"),n}}),$e({type:"leftright-right",names:["\\right"],props:{numArgs:1},handler:function(e,t){var n=e.parser.gullet.macros.get("\\current@color");if(n&&"string"!=typeof n)throw new a("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:e.parser.mode,delim:fn(t[0],e).text,color:n}}}),$e({type:"leftright",names:["\\left"],props:{numArgs:1},handler:function(e,t){var n=fn(t[0],e),r=e.parser;++r.leftrightDepth;var o=r.parseExpression(!1);--r.leftrightDepth,r.expect("\\right",!1);var i=De(r.parseFunction(),"leftright-right");return{type:"leftright",mode:r.mode,body:o,left:n.text,right:i.delim,rightColor:i.color}},htmlBuilder:function(e,t){hn(e);for(var n,r,o=lt(e.body,t,!0,["mopen","mclose"]),i=0,a=0,l=!1,c=0;c-1?"mpadded":"menclose",[St(e.body,t)]);switch(e.label){case"\\cancel":r.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":r.setAttribute("notation","downdiagonalstrike");break;case"\\sout":r.setAttribute("notation","horizontalstrike");break;case"\\fbox":r.setAttribute("notation","box");break;case"\\fcolorbox":case"\\colorbox":if(n=t.fontMetrics().fboxsep*t.fontMetrics().ptPerEm,r.setAttribute("width","+"+2*n+"pt"),r.setAttribute("height","+"+2*n+"pt"),r.setAttribute("lspace",n+"pt"),r.setAttribute("voffset",n+"pt"),"\\fcolorbox"===e.label){var o=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness);r.setAttribute("style","border: "+o+"em solid "+String(e.borderColor))}break;case"\\xcancel":r.setAttribute("notation","updiagonalstrike downdiagonalstrike")}return e.backgroundColor&&r.setAttribute("mathbackground",e.backgroundColor),r};$e({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,greediness:3,argTypes:["color","text"]},handler:function(e,t,n){var r=e.parser,o=e.funcName,i=De(t[0],"color-token").color,a=t[1];return{type:"enclose",mode:r.mode,label:o,backgroundColor:i,body:a}},htmlBuilder:pn,mathmlBuilder:dn}),$e({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,greediness:3,argTypes:["color","color","text"]},handler:function(e,t,n){var r=e.parser,o=e.funcName,i=De(t[0],"color-token").color,a=De(t[1],"color-token").color,l=t[2];return{type:"enclose",mode:r.mode,label:o,backgroundColor:a,borderColor:i,body:l}},htmlBuilder:pn,mathmlBuilder:dn}),$e({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler:function(e,t){return{type:"enclose",mode:e.parser.mode,label:"\\fbox",body:t[0]}}}),$e({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout"],props:{numArgs:1},handler:function(e,t,n){var r=e.parser,o=e.funcName,i=t[0];return{type:"enclose",mode:r.mode,label:o,body:i}},htmlBuilder:pn,mathmlBuilder:dn});var mn={};function vn(e){for(var t=e.type,n=e.names,r=e.props,o=e.handler,i=e.htmlBuilder,a=e.mathmlBuilder,l={type:t,numArgs:r.numArgs||0,greediness:1,allowedInText:!1,numOptionalArgs:0,handler:o},c=0;c0&&(b+=.25),s.push({pos:b,isDashed:e[t]})}for(w(i[0]),n=0;n0&&(S<(E+=g)&&(S=E),E=0),e.addJot&&(S+=m),O.height=k,O.depth=S,b+=k,O.pos=b,b+=S+E,c[n]=O,w(i[n+1])}var z,C,P=b/2+t.fontMetrics().axisHeight,A=e.cols||[],j=[];for(r=0,C=0;r=l)){var I=void 0;(r>0||e.hskipBeforeAndAfter)&&0!==(I=f.deflt(L.pregap,p))&&((z=Ve.makeSpan(["arraycolsep"],[])).style.width=I+"em",j.push(z));var V=[];for(n=0;n0){for(var B=Ve.makeLineSpan("hline",t,u),U=Ve.makeLineSpan("hdashline",t,u),W=[{type:"elem",elem:c,shift:0}];s.length>0;){var Y=s.pop(),G=Y.pos-P;Y.isDashed?W.push({type:"elem",elem:U,shift:G}):W.push({type:"elem",elem:B,shift:G})}c=Ve.makeVList({positionType:"individualShift",children:W},t)}return Ve.makeSpan(["mord"],[c],t)},xn={c:"center ",l:"left ",r:"right "},_n=function(e,t){var n=new gt.MathNode("mtable",e.body.map((function(e){return new gt.MathNode("mtr",e.map((function(e){return new gt.MathNode("mtd",[St(e,t)])})))}))),r=.5===e.arraystretch?.1:.16+e.arraystretch-1+(e.addJot?.09:0);n.setAttribute("rowspacing",r+"em");var o="",i="";if(e.cols){var a=e.cols,l="",c=!1,s=0,u=a.length;"separator"===a[0].type&&(o+="top ",s=1),"separator"===a[a.length-1].type&&(o+="bottom ",u-=1);for(var f=s;f0?"left ":"",o+=v[v.length-1].length>0?"right ":"";for(var y=1;y0&&f&&(d=1),r[h]={type:"align",align:p,pregap:d,postgap:0}}return o.colSeparationType=f?"align":"alignat",o};vn({type:"array",names:["array","darray"],props:{numArgs:1},handler:function(e,t){var n={cols:(Ue(t[0])?[t[0]]:De(t[0],"ordgroup").body).map((function(e){var t=Be(e).text;if(-1!=="lcr".indexOf(t))return{type:"align",align:t};if("|"===t)return{type:"separator",separator:"|"};if(":"===t)return{type:"separator",separator:":"};throw new a("Unknown column alignment: "+t,e)})),hskipBeforeAndAfter:!0};return gn(e.parser,n,bn(e.envName))},htmlBuilder:wn,mathmlBuilder:_n}),vn({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix"],props:{numArgs:0},handler:function(e){var t={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[e.envName],n=gn(e.parser,{hskipBeforeAndAfter:!1},bn(e.envName));return t?{type:"leftright",mode:e.mode,body:[n],left:t[0],right:t[1],rightColor:void 0}:n},htmlBuilder:wn,mathmlBuilder:_n}),vn({type:"array",names:["smallmatrix"],props:{numArgs:0},handler:function(e){var t=gn(e.parser,{arraystretch:.5},"script");return t.colSeparationType="small",t},htmlBuilder:wn,mathmlBuilder:_n}),vn({type:"array",names:["subarray"],props:{numArgs:1},handler:function(e,t){var n=(Ue(t[0])?[t[0]]:De(t[0],"ordgroup").body).map((function(e){var t=Be(e).text;if(-1!=="lc".indexOf(t))return{type:"align",align:t};throw new a("Unknown column alignment: "+t,e)}));if(n.length>1)throw new a("{subarray} can contain only one column");var r={cols:n,hskipBeforeAndAfter:!1,arraystretch:.5};if((r=gn(e.parser,r,"script")).body[0].length>1)throw new a("{subarray} can contain only one column");return r},htmlBuilder:wn,mathmlBuilder:_n}),vn({type:"array",names:["cases","dcases"],props:{numArgs:0},handler:function(e){var t=gn(e.parser,{arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},bn(e.envName));return{type:"leftright",mode:e.mode,body:[t],left:"\\{",right:".",rightColor:void 0}},htmlBuilder:wn,mathmlBuilder:_n}),vn({type:"array",names:["aligned"],props:{numArgs:0},handler:kn,htmlBuilder:wn,mathmlBuilder:_n}),vn({type:"array",names:["gathered"],props:{numArgs:0},handler:function(e){return gn(e.parser,{cols:[{type:"align",align:"c"}],addJot:!0},"display")},htmlBuilder:wn,mathmlBuilder:_n}),vn({type:"array",names:["alignedat"],props:{numArgs:1},handler:kn,htmlBuilder:wn,mathmlBuilder:_n}),$e({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler:function(e,t){throw new a(e.funcName+" valid only within array environment")}});var Sn=mn;$e({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler:function(e,t){var n=e.parser,r=e.funcName,o=t[0];if("ordgroup"!==o.type)throw new a("Invalid environment name",o);for(var i="",l=0;l=x.SCRIPT.id?n.text():x.DISPLAY:"text"===e&&n.size===x.DISPLAY.size?n=x.TEXT:"script"===e?n=x.SCRIPT:"scriptscript"===e&&(n=x.SCRIPTSCRIPT),n},jn=function(e,t){var n,r=An(e.size,t.style),o=r.fracNum(),i=r.fracDen();n=t.havingStyle(o);var a=ht(e.numer,n,t);if(e.continued){var l=8.5/t.fontMetrics().ptPerEm,c=3.5/t.fontMetrics().ptPerEm;a.height=a.height0?3*f:7*f,d=t.fontMetrics().denom1):(u>0?(h=t.fontMetrics().num2,p=f):(h=t.fontMetrics().num3,p=3*f),d=t.fontMetrics().denom2),s){var w=t.fontMetrics().axisHeight;h-a.depth-(w+.5*u)0&&(t="."===(t=e)?null:t),t};$e({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,greediness:6,argTypes:["math","math","size","text","math","math"]},handler:function(e,t){var n=e.parser,r=t[4],o=t[5],i=Fe(t[0],"atom");i&&(i=qe(t[0],"open"));var a=i?Hn(i.text):null,l=Fe(t[1],"atom");l&&(l=qe(t[1],"close"));var c,s=l?Hn(l.text):null,u=De(t[2],"size"),f=null;c=!!u.isBlank||(f=u.value).number>0;var h="auto",p=Fe(t[3],"ordgroup");if(p){if(p.body.length>0){var d=De(p.body[0],"textord");h=Nn[Number(d.text)]}}else p=De(t[3],"textord"),h=Nn[Number(p.text)];return{type:"genfrac",mode:n.mode,numer:r,denom:o,continued:!1,hasBarLine:c,barSize:f,leftDelim:a,rightDelim:s,size:h}},htmlBuilder:jn,mathmlBuilder:Ln}),$e({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler:function(e,t){var n=e.parser,r=(e.funcName,e.token);return{type:"infix",mode:n.mode,replaceWith:"\\\\abovefrac",size:De(t[0],"size").value,token:r}}}),$e({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:function(e,t){var n=e.parser,r=(e.funcName,t[0]),o=function(e){if(!e)throw new Error("Expected non-null, but got "+String(e));return e}(De(t[1],"infix").size),i=t[2],a=o.number>0;return{type:"genfrac",mode:n.mode,numer:r,denom:i,continued:!1,hasBarLine:a,barSize:o,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:jn,mathmlBuilder:Ln});var Rn=function(e,t){var n,r,o=t.style,i=Fe(e,"supsub");i?(n=i.sup?ht(i.sup,t.havingStyle(o.sup()),t):ht(i.sub,t.havingStyle(o.sub()),t),r=De(i.base,"horizBrace")):r=De(e,"horizBrace");var a,l=ht(r.base,t.havingBaseStyle(x.DISPLAY)),c=jt(r,t);if(r.isOver?(a=Ve.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:l},{type:"kern",size:.1},{type:"elem",elem:c}]},t)).children[0].children[0].children[1].classes.push("svg-align"):(a=Ve.makeVList({positionType:"bottom",positionData:l.depth+.1+c.height,children:[{type:"elem",elem:c},{type:"kern",size:.1},{type:"elem",elem:l}]},t)).children[0].children[0].children[0].classes.push("svg-align"),n){var s=Ve.makeSpan(["mord",r.isOver?"mover":"munder"],[a],t);a=r.isOver?Ve.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:s},{type:"kern",size:.2},{type:"elem",elem:n}]},t):Ve.makeVList({positionType:"bottom",positionData:s.depth+.2+n.height+n.depth,children:[{type:"elem",elem:n},{type:"kern",size:.2},{type:"elem",elem:s}]},t)}return Ve.makeSpan(["mord",r.isOver?"mover":"munder"],[a],t)};$e({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler:function(e,t){var n=e.parser,r=e.funcName;return{type:"horizBrace",mode:n.mode,label:r,isOver:/^\\over/.test(r),base:t[0]}},htmlBuilder:Rn,mathmlBuilder:function(e,t){var n=At(e.label);return new gt.MathNode(e.isOver?"mover":"munder",[St(e.base,t),n])}}),$e({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:function(e,t){var n=e.parser,r=t[1],o=De(t[0],"url").url;return n.settings.isTrusted({command:"\\href",url:o})?{type:"href",mode:n.mode,href:o,body:tt(r)}:n.formatUnsupportedCmd("\\href")},htmlBuilder:function(e,t){var n=lt(e.body,t,!1);return Ve.makeAnchor(e.href,[],n,t)},mathmlBuilder:function(e,t){var n=kt(e.body,t);return n instanceof vt||(n=new vt("mrow",[n])),n.setAttribute("href",e.href),n}}),$e({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:function(e,t){var n=e.parser,r=De(t[0],"url").url;if(!n.settings.isTrusted({command:"\\url",url:r}))return n.formatUnsupportedCmd("\\url");for(var o=[],i=0;i0&&(r=Te(e.totalheight,t)-n,r=Number(r.toFixed(2)));var o=0;e.width.number>0&&(o=Te(e.width,t));var i={height:n+r+"em"};o>0&&(i.width=o+"em"),r>0&&(i.verticalAlign=-r+"em");var a=new j(e.src,e.alt,i);return a.height=n,a.depth=r,a},mathmlBuilder:function(e,t){var n=new gt.MathNode("mglyph",[]);n.setAttribute("alt",e.alt);var r=Te(e.height,t),o=0;if(e.totalheight.number>0&&(o=(o=Te(e.totalheight,t)-r).toFixed(2),n.setAttribute("valign","-"+o+"em")),n.setAttribute("height",r+o+"em"),e.width.number>0){var i=Te(e.width,t);n.setAttribute("width",i+"em")}return n.setAttribute("src",e.src),n}}),$e({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],allowedInText:!0},handler:function(e,t){var n=e.parser,r=e.funcName,o=De(t[0],"size");if(n.settings.strict){var i="m"===r[1],a="mu"===o.value.unit;i?(a||n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" supports only mu units, not "+o.value.unit+" units"),"math"!==n.mode&&n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" works only in math mode")):a&&n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" doesn't support mu units")}return{type:"kern",mode:n.mode,dimension:o.value}},htmlBuilder:function(e,t){return Ve.makeGlue(e.dimension,t)},mathmlBuilder:function(e,t){var n=Te(e.dimension,t);return new gt.SpaceNode(n)}}),$e({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:function(e,t){var n=e.parser,r=e.funcName,o=t[0];return{type:"lap",mode:n.mode,alignment:r.slice(5),body:o}},htmlBuilder:function(e,t){var n;"clap"===e.alignment?(n=Ve.makeSpan([],[ht(e.body,t)]),n=Ve.makeSpan(["inner"],[n],t)):n=Ve.makeSpan(["inner"],[ht(e.body,t)]);var r=Ve.makeSpan(["fix"],[]),o=Ve.makeSpan([e.alignment],[n,r],t),i=Ve.makeSpan(["strut"]);return i.style.height=o.height+o.depth+"em",i.style.verticalAlign=-o.depth+"em",o.children.unshift(i),o=Ve.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:o}]},t),Ve.makeSpan(["mord"],[o],t)},mathmlBuilder:function(e,t){var n=new gt.MathNode("mpadded",[St(e.body,t)]);if("rlap"!==e.alignment){var r="llap"===e.alignment?"-1":"-0.5";n.setAttribute("lspace",r+"width")}return n.setAttribute("width","0px"),n}}),$e({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler:function(e,t){var n=e.funcName,r=e.parser,o=r.mode;r.switchMode("math");var i="\\("===n?"\\)":"$",a=r.parseExpression(!1,i);return r.expect(i),r.switchMode(o),{type:"styling",mode:r.mode,style:"text",body:a}}}),$e({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler:function(e,t){throw new a("Mismatched "+e.funcName)}});var Vn=function(e,t){switch(t.style.size){case x.DISPLAY.size:return e.display;case x.TEXT.size:return e.text;case x.SCRIPT.size:return e.script;case x.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}};$e({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4},handler:function(e,t){return{type:"mathchoice",mode:e.parser.mode,display:tt(t[0]),text:tt(t[1]),script:tt(t[2]),scriptscript:tt(t[3])}},htmlBuilder:function(e,t){var n=Vn(e,t),r=lt(n,t,!1);return Ve.makeFragment(r)},mathmlBuilder:function(e,t){var n=Vn(e,t);return kt(n,t)}});var Dn=function(e,t,n,r,o,i,a){var l,c,s;if(e=Ve.makeSpan([],[e]),t){var u=ht(t,r.havingStyle(o.sup()),r);c={elem:u,kern:Math.max(r.fontMetrics().bigOpSpacing1,r.fontMetrics().bigOpSpacing3-u.depth)}}if(n){var f=ht(n,r.havingStyle(o.sub()),r);l={elem:f,kern:Math.max(r.fontMetrics().bigOpSpacing2,r.fontMetrics().bigOpSpacing4-f.height)}}if(c&&l){var h=r.fontMetrics().bigOpSpacing5+l.elem.height+l.elem.depth+l.kern+e.depth+a;s=Ve.makeVList({positionType:"bottom",positionData:h,children:[{type:"kern",size:r.fontMetrics().bigOpSpacing5},{type:"elem",elem:l.elem,marginLeft:-i+"em"},{type:"kern",size:l.kern},{type:"elem",elem:e},{type:"kern",size:c.kern},{type:"elem",elem:c.elem,marginLeft:i+"em"},{type:"kern",size:r.fontMetrics().bigOpSpacing5}]},r)}else if(l){var p=e.height-a;s=Ve.makeVList({positionType:"top",positionData:p,children:[{type:"kern",size:r.fontMetrics().bigOpSpacing5},{type:"elem",elem:l.elem,marginLeft:-i+"em"},{type:"kern",size:l.kern},{type:"elem",elem:e}]},r)}else{if(!c)return e;var d=e.depth+a;s=Ve.makeVList({positionType:"bottom",positionData:d,children:[{type:"elem",elem:e},{type:"kern",size:c.kern},{type:"elem",elem:c.elem,marginLeft:i+"em"},{type:"kern",size:r.fontMetrics().bigOpSpacing5}]},r)}return Ve.makeSpan(["mop","op-limits"],[s],r)},Fn=["\\smallint"],qn=function(e,t){var n,r,o,i=!1,a=Fe(e,"supsub");a?(n=a.sup,r=a.sub,o=De(a.base,"op"),i=!0):o=De(e,"op");var l,c=t.style,s=!1;if(c.size===x.DISPLAY.size&&o.symbol&&!f.contains(Fn,o.name)&&(s=!0),o.symbol){var u=s?"Size2-Regular":"Size1-Regular",h="";if("\\oiint"!==o.name&&"\\oiiint"!==o.name||(h=o.name.substr(1),o.name="oiint"===h?"\\iint":"\\iiint"),l=Ve.makeSymbol(o.name,u,"math",t,["mop","op-symbol",s?"large-op":"small-op"]),h.length>0){var p=l.italic,d=Ve.staticSvg(h+"Size"+(s?"2":"1"),t);l=Ve.makeVList({positionType:"individualShift",children:[{type:"elem",elem:l,shift:0},{type:"elem",elem:d,shift:s?.08:0}]},t),o.name="\\"+h,l.classes.unshift("mop"),l.italic=p}}else if(o.body){var m=lt(o.body,t,!0);1===m.length&&m[0]instanceof N?(l=m[0]).classes[0]="mop":l=Ve.makeSpan(["mop"],Ve.tryCombineChars(m),t)}else{for(var v=[],y=1;y0){for(var c=o.body.map((function(e){var t=e.text;return"string"==typeof t?{type:"textord",mode:e.mode,text:t}:e})),s=lt(c,t.withFont("mathrm"),!0),u=0;u=0?l.setAttribute("height","+"+o+"em"):(l.setAttribute("height",o+"em"),l.setAttribute("depth","+"+-o+"em")),l.setAttribute("voffset",o+"em"),l}});var Kn=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"];$e({type:"sizing",names:Kn,props:{numArgs:0,allowedInText:!0},handler:function(e,t){var n=e.breakOnTokenText,r=e.funcName,o=e.parser,i=o.parseExpression(!1,n);return{type:"sizing",mode:o.mode,size:Kn.indexOf(r)+1,body:i}},htmlBuilder:function(e,t){var n=t.havingSize(e.size);return Gn(e.body,n,t)},mathmlBuilder:function(e,t){var n=t.havingSize(e.size),r=_t(e.body,n),o=new gt.MathNode("mstyle",r);return o.setAttribute("mathsize",n.sizeMultiplier+"em"),o}}),$e({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:function(e,t,n){var r=e.parser,o=!1,i=!1,a=n[0]&&De(n[0],"ordgroup");if(a)for(var l="",c=0;cn.height+n.depth+i&&(i=(i+f-n.height-n.depth)/2);var h=c.height-n.height-i-s;n.style.paddingLeft=u+"em";var p=Ve.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n,wrapperClasses:["svg-align"]},{type:"kern",size:-(n.height+h)},{type:"elem",elem:c},{type:"kern",size:s}]},t);if(e.index){var d=t.havingStyle(x.SCRIPTSCRIPT),m=ht(e.index,d,t),v=.6*(p.height-p.depth),y=Ve.makeVList({positionType:"shift",positionData:-v,children:[{type:"elem",elem:m}]},t),g=Ve.makeSpan(["root"],[y]);return Ve.makeSpan(["mord","sqrt"],[g,p],t)}return Ve.makeSpan(["mord","sqrt"],[p],t)},mathmlBuilder:function(e,t){var n=e.body,r=e.index;return r?new gt.MathNode("mroot",[St(n,t),St(r,t)]):new gt.MathNode("msqrt",[St(n,t)])}});var Xn={display:x.DISPLAY,text:x.TEXT,script:x.SCRIPT,scriptscript:x.SCRIPTSCRIPT};$e({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0},handler:function(e,t){var n=e.breakOnTokenText,r=e.funcName,o=e.parser,i=o.parseExpression(!0,n),a=r.slice(1,r.length-5);return{type:"styling",mode:o.mode,style:a,body:i}},htmlBuilder:function(e,t){var n=Xn[e.style],r=t.havingStyle(n).withFont("");return Gn(e.body,r,t)},mathmlBuilder:function(e,t){var n=Xn[e.style],r=t.havingStyle(n),o=_t(e.body,r),i=new gt.MathNode("mstyle",o),a={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]}[e.style];return i.setAttribute("scriptlevel",a[0]),i.setAttribute("displaystyle",a[1]),i}}),et({type:"supsub",htmlBuilder:function(e,t){var n=function(e,t){var n=e.base;return n?"op"===n.type?n.limits&&(t.style.size===x.DISPLAY.size||n.alwaysHandleSupSub)?qn:null:"operatorname"===n.type?n.alwaysHandleSupSub&&(t.style.size===x.DISPLAY.size||n.limits)?Yn:null:"accent"===n.type?f.isCharacterBox(n.base)?Lt:null:"horizBrace"===n.type&&!e.sub===n.isOver?Rn:null:null}(e,t);if(n)return n(e,t);var r,o,i,a=e.base,l=e.sup,c=e.sub,s=ht(a,t),u=t.fontMetrics(),h=0,p=0,d=a&&f.isCharacterBox(a);if(l){var m=t.havingStyle(t.style.sup());r=ht(l,m,t),d||(h=s.height-m.fontMetrics().supDrop*m.sizeMultiplier/t.sizeMultiplier)}if(c){var v=t.havingStyle(t.style.sub());o=ht(c,v,t),d||(p=s.depth+v.fontMetrics().subDrop*v.sizeMultiplier/t.sizeMultiplier)}i=t.style===x.DISPLAY?u.sup1:t.style.cramped?u.sup3:u.sup2;var y,g=t.sizeMultiplier,b=.5/u.ptPerEm/g+"em",w=null;if(o){var _=e.base&&"op"===e.base.type&&e.base.name&&("\\oiint"===e.base.name||"\\oiiint"===e.base.name);(s instanceof N||_)&&(w=-s.italic+"em")}if(r&&o){h=Math.max(h,i,r.depth+.25*u.xHeight),p=Math.max(p,u.sub2);var k=4*u.defaultRuleThickness;if(h-r.depth-(o.height-p)0&&(h+=S,p-=S)}var O=[{type:"elem",elem:o,shift:p,marginRight:b,marginLeft:w},{type:"elem",elem:r,shift:-h,marginRight:b}];y=Ve.makeVList({positionType:"individualShift",children:O},t)}else if(o){p=Math.max(p,u.sub1,o.height-.8*u.xHeight);var M=[{type:"elem",elem:o,marginLeft:w,marginRight:b}];y=Ve.makeVList({positionType:"shift",positionData:p,children:M},t)}else{if(!r)throw new Error("supsub must have either sup or sub.");h=Math.max(h,i,r.depth+.25*u.xHeight),y=Ve.makeVList({positionType:"shift",positionData:-h,children:[{type:"elem",elem:r,marginRight:b}]},t)}var T=ut(s,"right")||"mord";return Ve.makeSpan([T],[s,Ve.makeSpan(["msupsub"],[y])],t)},mathmlBuilder:function(e,t){var n,r=!1,o=Fe(e.base,"horizBrace");o&&!!e.sup===o.isOver&&(r=!0,n=o.isOver),!e.base||"op"!==e.base.type&&"operatorname"!==e.base.type||(e.base.parentIsSupSub=!0);var i,a=[St(e.base,t)];if(e.sub&&a.push(St(e.sub,t)),e.sup&&a.push(St(e.sup,t)),r)i=n?"mover":"munder";else if(e.sub)if(e.sup){var l=e.base;i=l&&"op"===l.type&&l.limits&&t.style===x.DISPLAY||l&&"operatorname"===l.type&&l.alwaysHandleSupSub&&(t.style===x.DISPLAY||l.limits)?"munderover":"msubsup"}else{var c=e.base;i=c&&"op"===c.type&&c.limits&&(t.style===x.DISPLAY||c.alwaysHandleSupSub)||c&&"operatorname"===c.type&&c.alwaysHandleSupSub&&(c.limits||t.style===x.DISPLAY)?"munder":"msub"}else{var s=e.base;i=s&&"op"===s.type&&s.limits&&(t.style===x.DISPLAY||s.alwaysHandleSupSub)||s&&"operatorname"===s.type&&s.alwaysHandleSupSub&&(s.limits||t.style===x.DISPLAY)?"mover":"msup"}return new gt.MathNode(i,a)}}),et({type:"atom",htmlBuilder:function(e,t){return Ve.mathsym(e.text,e.mode,t,["m"+e.family])},mathmlBuilder:function(e,t){var n=new gt.MathNode("mo",[bt(e.text,e.mode)]);if("bin"===e.family){var r=xt(e,t);"bold-italic"===r&&n.setAttribute("mathvariant",r)}else"punct"===e.family?n.setAttribute("separator","true"):"open"!==e.family&&"close"!==e.family||n.setAttribute("stretchy","false");return n}});var Jn={mi:"italic",mn:"normal",mtext:"normal"};et({type:"mathord",htmlBuilder:function(e,t){return Ve.makeOrd(e,t,"mathord")},mathmlBuilder:function(e,t){var n=new gt.MathNode("mi",[bt(e.text,e.mode,t)]),r=xt(e,t)||"italic";return r!==Jn[n.type]&&n.setAttribute("mathvariant",r),n}}),et({type:"textord",htmlBuilder:function(e,t){return Ve.makeOrd(e,t,"textord")},mathmlBuilder:function(e,t){var n,r=bt(e.text,e.mode,t),o=xt(e,t)||"normal";return n="text"===e.mode?new gt.MathNode("mtext",[r]):/[0-9]/.test(e.text)?new gt.MathNode("mn",[r]):"\\prime"===e.text?new gt.MathNode("mo",[r]):new gt.MathNode("mi",[r]),o!==Jn[n.type]&&n.setAttribute("mathvariant",o),n}});var Qn={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},Zn={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};et({type:"spacing",htmlBuilder:function(e,t){if(Zn.hasOwnProperty(e.text)){var n=Zn[e.text].className||"";if("text"===e.mode){var r=Ve.makeOrd(e,t,"textord");return r.classes.push(n),r}return Ve.makeSpan(["mspace",n],[Ve.mathsym(e.text,e.mode,t)],t)}if(Qn.hasOwnProperty(e.text))return Ve.makeSpan(["mspace",Qn[e.text]],[],t);throw new a('Unknown type of space "'+e.text+'"')},mathmlBuilder:function(e,t){if(!Zn.hasOwnProperty(e.text)){if(Qn.hasOwnProperty(e.text))return new gt.MathNode("mspace");throw new a('Unknown type of space "'+e.text+'"')}return new gt.MathNode("mtext",[new gt.TextNode(" ")])}});var $n=function(){var e=new gt.MathNode("mtd",[]);return e.setAttribute("width","50%"),e};et({type:"tag",mathmlBuilder:function(e,t){var n=new gt.MathNode("mtable",[new gt.MathNode("mtr",[$n(),new gt.MathNode("mtd",[kt(e.body,t)]),$n(),new gt.MathNode("mtd",[kt(e.tag,t)])])]);return n.setAttribute("width","100%"),n}});var er={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},tr={"\\textbf":"textbf","\\textmd":"textmd"},nr={"\\textit":"textit","\\textup":"textup"},rr=function(e,t){var n=e.font;return n?er[n]?t.withTextFontFamily(er[n]):tr[n]?t.withTextFontWeight(tr[n]):t.withTextFontShape(nr[n]):t};$e({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup"],props:{numArgs:1,argTypes:["text"],greediness:2,allowedInText:!0},handler:function(e,t){var n=e.parser,r=e.funcName,o=t[0];return{type:"text",mode:n.mode,body:tt(o),font:r}},htmlBuilder:function(e,t){var n=rr(e,t),r=lt(e.body,n,!0);return Ve.makeSpan(["mord","text"],Ve.tryCombineChars(r),n)},mathmlBuilder:function(e,t){var n=rr(e,t);return kt(e.body,n)}}),$e({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler:function(e,t){return{type:"underline",mode:e.parser.mode,body:t[0]}},htmlBuilder:function(e,t){var n=ht(e.body,t),r=Ve.makeLineSpan("underline-line",t),o=t.fontMetrics().defaultRuleThickness,i=Ve.makeVList({positionType:"top",positionData:n.height,children:[{type:"kern",size:o},{type:"elem",elem:r},{type:"kern",size:3*o},{type:"elem",elem:n}]},t);return Ve.makeSpan(["mord","underline"],[i],t)},mathmlBuilder:function(e,t){var n=new gt.MathNode("mo",[new gt.TextNode("‾")]);n.setAttribute("stretchy","true");var r=new gt.MathNode("munder",[St(e.body,t),n]);return r.setAttribute("accentunder","true"),r}}),$e({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler:function(e,t,n){throw new a("\\verb ended by end of line instead of matching delimiter")},htmlBuilder:function(e,t){for(var n=or(e),r=[],o=t.havingStyle(t.style.text()),i=0;i0&&(this.undefStack[this.undefStack.length-1][e]=t)}else{var o=this.undefStack[this.undefStack.length-1];o&&!o.hasOwnProperty(e)&&(o[e]=this.current[e])}this.current[e]=t},e}(),ur={},fr=ur;function hr(e,t){ur[e]=t}hr("\\@firstoftwo",(function(e){return{tokens:e.consumeArgs(2)[0],numArgs:0}})),hr("\\@secondoftwo",(function(e){return{tokens:e.consumeArgs(2)[1],numArgs:0}})),hr("\\@ifnextchar",(function(e){var t=e.consumeArgs(3),n=e.future();return 1===t[0].length&&t[0][0].text===n.text?{tokens:t[1],numArgs:0}:{tokens:t[2],numArgs:0}})),hr("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}"),hr("\\TextOrMath",(function(e){var t=e.consumeArgs(2);return"text"===e.mode?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}}));var pr={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};hr("\\char",(function(e){var t,n=e.popToken(),r="";if("'"===n.text)t=8,n=e.popToken();else if('"'===n.text)t=16,n=e.popToken();else if("`"===n.text)if("\\"===(n=e.popToken()).text[0])r=n.text.charCodeAt(1);else{if("EOF"===n.text)throw new a("\\char` missing argument");r=n.text.charCodeAt(0)}else t=10;if(t){if(null==(r=pr[n.text])||r>=t)throw new a("Invalid base-"+t+" digit "+n.text);for(var o;null!=(o=pr[e.future().text])&&o":"\\dotsb","-":"\\dotsb","*":"\\dotsb",":":"\\dotsb","\\DOTSB":"\\dotsb","\\coprod":"\\dotsb","\\bigvee":"\\dotsb","\\bigwedge":"\\dotsb","\\biguplus":"\\dotsb","\\bigcap":"\\dotsb","\\bigcup":"\\dotsb","\\prod":"\\dotsb","\\sum":"\\dotsb","\\bigotimes":"\\dotsb","\\bigoplus":"\\dotsb","\\bigodot":"\\dotsb","\\bigsqcup":"\\dotsb","\\And":"\\dotsb","\\longrightarrow":"\\dotsb","\\Longrightarrow":"\\dotsb","\\longleftarrow":"\\dotsb","\\Longleftarrow":"\\dotsb","\\longleftrightarrow":"\\dotsb","\\Longleftrightarrow":"\\dotsb","\\mapsto":"\\dotsb","\\longmapsto":"\\dotsb","\\hookrightarrow":"\\dotsb","\\doteq":"\\dotsb","\\mathbin":"\\dotsb","\\mathrel":"\\dotsb","\\relbar":"\\dotsb","\\Relbar":"\\dotsb","\\xrightarrow":"\\dotsb","\\xleftarrow":"\\dotsb","\\DOTSI":"\\dotsi","\\int":"\\dotsi","\\oint":"\\dotsi","\\iint":"\\dotsi","\\iiint":"\\dotsi","\\iiiint":"\\dotsi","\\idotsint":"\\dotsi","\\DOTSX":"\\dotsx"};hr("\\dots",(function(e){var t="\\dotso",n=e.expandAfterFuture().text;return n in vr?t=vr[n]:("\\not"===n.substr(0,4)||n in K.math&&f.contains(["bin","rel"],K.math[n].group))&&(t="\\dotsb"),t}));var yr={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};hr("\\dotso",(function(e){return e.future().text in yr?"\\ldots\\,":"\\ldots"})),hr("\\dotsc",(function(e){var t=e.future().text;return t in yr&&","!==t?"\\ldots\\,":"\\ldots"})),hr("\\cdots",(function(e){return e.future().text in yr?"\\@cdots\\,":"\\@cdots"})),hr("\\dotsb","\\cdots"),hr("\\dotsm","\\cdots"),hr("\\dotsi","\\!\\cdots"),hr("\\dotsx","\\ldots\\,"),hr("\\DOTSI","\\relax"),hr("\\DOTSB","\\relax"),hr("\\DOTSX","\\relax"),hr("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax"),hr("\\,","\\tmspace+{3mu}{.1667em}"),hr("\\thinspace","\\,"),hr("\\>","\\mskip{4mu}"),hr("\\:","\\tmspace+{4mu}{.2222em}"),hr("\\medspace","\\:"),hr("\\;","\\tmspace+{5mu}{.2777em}"),hr("\\thickspace","\\;"),hr("\\!","\\tmspace-{3mu}{.1667em}"),hr("\\negthinspace","\\!"),hr("\\negmedspace","\\tmspace-{4mu}{.2222em}"),hr("\\negthickspace","\\tmspace-{5mu}{.277em}"),hr("\\enspace","\\kern.5em "),hr("\\enskip","\\hskip.5em\\relax"),hr("\\quad","\\hskip1em\\relax"),hr("\\qquad","\\hskip2em\\relax"),hr("\\tag","\\@ifstar\\tag@literal\\tag@paren"),hr("\\tag@paren","\\tag@literal{({#1})}"),hr("\\tag@literal",(function(e){if(e.macros.get("\\df@tag"))throw new a("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"})),hr("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}"),hr("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)"),hr("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}"),hr("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1"),hr("\\pmb","\\html@mathml{\\@binrel{#1}{\\mathrlap{#1}\\kern0.5px#1}}{\\mathbf{#1}}"),hr("\\\\","\\newline"),hr("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var gr=D["Main-Regular"]["T".charCodeAt(0)][1]-.7*D["Main-Regular"]["A".charCodeAt(0)][1]+"em";hr("\\LaTeX","\\textrm{\\html@mathml{L\\kern-.36em\\raisebox{"+gr+"}{\\scriptstyle A}\\kern-.15em\\TeX}{LaTeX}}"),hr("\\KaTeX","\\textrm{\\html@mathml{K\\kern-.17em\\raisebox{"+gr+"}{\\scriptstyle A}\\kern-.15em\\TeX}{KaTeX}}"),hr("\\hspace","\\@ifstar\\@hspacer\\@hspace"),hr("\\@hspace","\\hskip #1\\relax"),hr("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax"),hr("\\ordinarycolon",":"),hr("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}"),hr("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}'),hr("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}'),hr("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}'),hr("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}'),hr("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}'),hr("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}'),hr("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}'),hr("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}'),hr("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}'),hr("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}'),hr("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}'),hr("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}'),hr("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}'),hr("∷","\\dblcolon"),hr("∹","\\eqcolon"),hr("≔","\\coloneqq"),hr("≕","\\eqqcolon"),hr("⩴","\\Coloneqq"),hr("\\ratio","\\vcentcolon"),hr("\\coloncolon","\\dblcolon"),hr("\\colonequals","\\coloneqq"),hr("\\coloncolonequals","\\Coloneqq"),hr("\\equalscolon","\\eqqcolon"),hr("\\equalscoloncolon","\\Eqqcolon"),hr("\\colonminus","\\coloneq"),hr("\\coloncolonminus","\\Coloneq"),hr("\\minuscolon","\\eqcolon"),hr("\\minuscoloncolon","\\Eqcolon"),hr("\\coloncolonapprox","\\Colonapprox"),hr("\\coloncolonsim","\\Colonsim"),hr("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),hr("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}"),hr("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),hr("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}"),hr("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}"),hr("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}"),hr("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}"),hr("\\gvertneqq","\\html@mathml{\\@gvertneqq}{≩}"),hr("\\lvertneqq","\\html@mathml{\\@lvertneqq}{≨}"),hr("\\ngeqq","\\html@mathml{\\@ngeqq}{≱}"),hr("\\ngeqslant","\\html@mathml{\\@ngeqslant}{≱}"),hr("\\nleqq","\\html@mathml{\\@nleqq}{≰}"),hr("\\nleqslant","\\html@mathml{\\@nleqslant}{≰}"),hr("\\nshortmid","\\html@mathml{\\@nshortmid}{∤}"),hr("\\nshortparallel","\\html@mathml{\\@nshortparallel}{∦}"),hr("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{⊈}"),hr("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{⊉}"),hr("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{⊊}"),hr("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{⫋}"),hr("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{⊋}"),hr("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{⫌}"),hr("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}"),hr("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}"),hr("⟦","\\llbracket"),hr("⟧","\\rrbracket"),hr("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}"),hr("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}"),hr("⦃","\\lBrace"),hr("⦄","\\rBrace"),hr("\\darr","\\downarrow"),hr("\\dArr","\\Downarrow"),hr("\\Darr","\\Downarrow"),hr("\\lang","\\langle"),hr("\\rang","\\rangle"),hr("\\uarr","\\uparrow"),hr("\\uArr","\\Uparrow"),hr("\\Uarr","\\Uparrow"),hr("\\N","\\mathbb{N}"),hr("\\R","\\mathbb{R}"),hr("\\Z","\\mathbb{Z}"),hr("\\alef","\\aleph"),hr("\\alefsym","\\aleph"),hr("\\Alpha","\\mathrm{A}"),hr("\\Beta","\\mathrm{B}"),hr("\\bull","\\bullet"),hr("\\Chi","\\mathrm{X}"),hr("\\clubs","\\clubsuit"),hr("\\cnums","\\mathbb{C}"),hr("\\Complex","\\mathbb{C}"),hr("\\Dagger","\\ddagger"),hr("\\diamonds","\\diamondsuit"),hr("\\empty","\\emptyset"),hr("\\Epsilon","\\mathrm{E}"),hr("\\Eta","\\mathrm{H}"),hr("\\exist","\\exists"),hr("\\harr","\\leftrightarrow"),hr("\\hArr","\\Leftrightarrow"),hr("\\Harr","\\Leftrightarrow"),hr("\\hearts","\\heartsuit"),hr("\\image","\\Im"),hr("\\infin","\\infty"),hr("\\Iota","\\mathrm{I}"),hr("\\isin","\\in"),hr("\\Kappa","\\mathrm{K}"),hr("\\larr","\\leftarrow"),hr("\\lArr","\\Leftarrow"),hr("\\Larr","\\Leftarrow"),hr("\\lrarr","\\leftrightarrow"),hr("\\lrArr","\\Leftrightarrow"),hr("\\Lrarr","\\Leftrightarrow"),hr("\\Mu","\\mathrm{M}"),hr("\\natnums","\\mathbb{N}"),hr("\\Nu","\\mathrm{N}"),hr("\\Omicron","\\mathrm{O}"),hr("\\plusmn","\\pm"),hr("\\rarr","\\rightarrow"),hr("\\rArr","\\Rightarrow"),hr("\\Rarr","\\Rightarrow"),hr("\\real","\\Re"),hr("\\reals","\\mathbb{R}"),hr("\\Reals","\\mathbb{R}"),hr("\\Rho","\\mathrm{P}"),hr("\\sdot","\\cdot"),hr("\\sect","\\S"),hr("\\spades","\\spadesuit"),hr("\\sub","\\subset"),hr("\\sube","\\subseteq"),hr("\\supe","\\supseteq"),hr("\\Tau","\\mathrm{T}"),hr("\\thetasym","\\vartheta"),hr("\\weierp","\\wp"),hr("\\Zeta","\\mathrm{Z}"),hr("\\argmin","\\DOTSB\\operatorname*{arg\\,min}"),hr("\\argmax","\\DOTSB\\operatorname*{arg\\,max}"),hr("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits"),hr("\\blue","\\textcolor{##6495ed}{#1}"),hr("\\orange","\\textcolor{##ffa500}{#1}"),hr("\\pink","\\textcolor{##ff00af}{#1}"),hr("\\red","\\textcolor{##df0030}{#1}"),hr("\\green","\\textcolor{##28ae7b}{#1}"),hr("\\gray","\\textcolor{gray}{#1}"),hr("\\purple","\\textcolor{##9d38bd}{#1}"),hr("\\blueA","\\textcolor{##ccfaff}{#1}"),hr("\\blueB","\\textcolor{##80f6ff}{#1}"),hr("\\blueC","\\textcolor{##63d9ea}{#1}"),hr("\\blueD","\\textcolor{##11accd}{#1}"),hr("\\blueE","\\textcolor{##0c7f99}{#1}"),hr("\\tealA","\\textcolor{##94fff5}{#1}"),hr("\\tealB","\\textcolor{##26edd5}{#1}"),hr("\\tealC","\\textcolor{##01d1c1}{#1}"),hr("\\tealD","\\textcolor{##01a995}{#1}"),hr("\\tealE","\\textcolor{##208170}{#1}"),hr("\\greenA","\\textcolor{##b6ffb0}{#1}"),hr("\\greenB","\\textcolor{##8af281}{#1}"),hr("\\greenC","\\textcolor{##74cf70}{#1}"),hr("\\greenD","\\textcolor{##1fab54}{#1}"),hr("\\greenE","\\textcolor{##0d923f}{#1}"),hr("\\goldA","\\textcolor{##ffd0a9}{#1}"),hr("\\goldB","\\textcolor{##ffbb71}{#1}"),hr("\\goldC","\\textcolor{##ff9c39}{#1}"),hr("\\goldD","\\textcolor{##e07d10}{#1}"),hr("\\goldE","\\textcolor{##a75a05}{#1}"),hr("\\redA","\\textcolor{##fca9a9}{#1}"),hr("\\redB","\\textcolor{##ff8482}{#1}"),hr("\\redC","\\textcolor{##f9685d}{#1}"),hr("\\redD","\\textcolor{##e84d39}{#1}"),hr("\\redE","\\textcolor{##bc2612}{#1}"),hr("\\maroonA","\\textcolor{##ffbde0}{#1}"),hr("\\maroonB","\\textcolor{##ff92c6}{#1}"),hr("\\maroonC","\\textcolor{##ed5fa6}{#1}"),hr("\\maroonD","\\textcolor{##ca337c}{#1}"),hr("\\maroonE","\\textcolor{##9e034e}{#1}"),hr("\\purpleA","\\textcolor{##ddd7ff}{#1}"),hr("\\purpleB","\\textcolor{##c6b9fc}{#1}"),hr("\\purpleC","\\textcolor{##aa87ff}{#1}"),hr("\\purpleD","\\textcolor{##7854ab}{#1}"),hr("\\purpleE","\\textcolor{##543b78}{#1}"),hr("\\mintA","\\textcolor{##f5f9e8}{#1}"),hr("\\mintB","\\textcolor{##edf2df}{#1}"),hr("\\mintC","\\textcolor{##e0e5cc}{#1}"),hr("\\grayA","\\textcolor{##f6f7f7}{#1}"),hr("\\grayB","\\textcolor{##f0f1f2}{#1}"),hr("\\grayC","\\textcolor{##e3e5e6}{#1}"),hr("\\grayD","\\textcolor{##d6d8da}{#1}"),hr("\\grayE","\\textcolor{##babec2}{#1}"),hr("\\grayF","\\textcolor{##888d93}{#1}"),hr("\\grayG","\\textcolor{##626569}{#1}"),hr("\\grayH","\\textcolor{##3b3e40}{#1}"),hr("\\grayI","\\textcolor{##21242c}{#1}"),hr("\\kaBlue","\\textcolor{##314453}{#1}"),hr("\\kaGreen","\\textcolor{##71B307}{#1}");var br={"\\relax":!0,"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0},wr=function(){function e(e,t,n){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=t,this.expansionCount=0,this.feed(e),this.macros=new sr(fr,t.macros),this.mode=n,this.stack=[]}var t=e.prototype;return t.feed=function(e){this.lexer=new cr(e,this.settings)},t.switchMode=function(e){this.mode=e},t.beginGroup=function(){this.macros.beginGroup()},t.endGroup=function(){this.macros.endGroup()},t.future=function(){return 0===this.stack.length&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]},t.popToken=function(){return this.future(),this.stack.pop()},t.pushToken=function(e){this.stack.push(e)},t.pushTokens=function(e){var t;(t=this.stack).push.apply(t,e)},t.consumeSpaces=function(){for(;" "===this.future().text;)this.stack.pop()},t.consumeArgs=function(e){for(var t=[],n=0;nthis.settings.maxExpand)throw new a("Too many expansions: infinite loop or need to increase maxExpand setting");var r=n.tokens;if(n.numArgs)for(var o=this.consumeArgs(n.numArgs),i=(r=r.slice()).length-1;i>=0;--i){var l=r[i];if("#"===l.text){if(0===i)throw new a("Incomplete placeholder at end of macro body",l);if("#"===(l=r[--i]).text)r.splice(i+1,1);else{if(!/^[1-9]$/.test(l.text))throw new a("Not a valid argument number",l);var c;(c=r).splice.apply(c,[i,2].concat(o[+l.text-1]))}}}return this.pushTokens(r),r},t.expandAfterFuture=function(){return this.expandOnce(),this.future()},t.expandNextToken=function(){for(;;){var e=this.expandOnce();if(e instanceof o){if("\\relax"!==e.text)return this.stack.pop();this.stack.pop()}}throw new Error},t.expandMacro=function(e){if(this.macros.get(e)){var t=[],n=this.stack.length;for(this.pushToken(new o(e));this.stack.length>n;)this.expandOnce()instanceof o&&t.push(this.stack.pop());return t}},t.expandMacroAsText=function(e){var t=this.expandMacro(e);return t?t.map((function(e){return e.text})).join(""):t},t._getExpansion=function(e){var t=this.macros.get(e);if(null==t)return t;var n="function"==typeof t?t(this):t;if("string"==typeof n){var r=0;if(-1!==n.indexOf("#"))for(var o=n.replace(/##/g,"");-1!==o.indexOf("#"+(r+1));)++r;for(var i=new cr(n,this.settings),a=[],l=i.lex();"EOF"!==l.text;)a.push(l),l=i.lex();return a.reverse(),{tokens:a,numArgs:r}}return n},t.isDefined=function(e){return this.macros.has(e)||ir.hasOwnProperty(e)||K.math.hasOwnProperty(e)||K.text.hasOwnProperty(e)||br.hasOwnProperty(e)},e}(),xr={"́":{text:"\\'",math:"\\acute"},"̀":{text:"\\`",math:"\\grave"},"̈":{text:'\\"',math:"\\ddot"},"̃":{text:"\\~",math:"\\tilde"},"̄":{text:"\\=",math:"\\bar"},"̆":{text:"\\u",math:"\\breve"},"̌":{text:"\\v",math:"\\check"},"̂":{text:"\\^",math:"\\hat"},"̇":{text:"\\.",math:"\\dot"},"̊":{text:"\\r",math:"\\mathring"},"̋":{text:"\\H"}},_r={á:"á",à:"à",ä:"ä",ǟ:"ǟ",ã:"ã",ā:"ā",ă:"ă",ắ:"ắ",ằ:"ằ",ẵ:"ẵ",ǎ:"ǎ",â:"â",ấ:"ấ",ầ:"ầ",ẫ:"ẫ",ȧ:"ȧ",ǡ:"ǡ",å:"å",ǻ:"ǻ",ḃ:"ḃ",ć:"ć",č:"č",ĉ:"ĉ",ċ:"ċ",ď:"ď",ḋ:"ḋ",é:"é",è:"è",ë:"ë",ẽ:"ẽ",ē:"ē",ḗ:"ḗ",ḕ:"ḕ",ĕ:"ĕ",ě:"ě",ê:"ê",ế:"ế",ề:"ề",ễ:"ễ",ė:"ė",ḟ:"ḟ",ǵ:"ǵ",ḡ:"ḡ",ğ:"ğ",ǧ:"ǧ",ĝ:"ĝ",ġ:"ġ",ḧ:"ḧ",ȟ:"ȟ",ĥ:"ĥ",ḣ:"ḣ",í:"í",ì:"ì",ï:"ï",ḯ:"ḯ",ĩ:"ĩ",ī:"ī",ĭ:"ĭ",ǐ:"ǐ",î:"î",ǰ:"ǰ",ĵ:"ĵ",ḱ:"ḱ",ǩ:"ǩ",ĺ:"ĺ",ľ:"ľ",ḿ:"ḿ",ṁ:"ṁ",ń:"ń",ǹ:"ǹ",ñ:"ñ",ň:"ň",ṅ:"ṅ",ó:"ó",ò:"ò",ö:"ö",ȫ:"ȫ",õ:"õ",ṍ:"ṍ",ṏ:"ṏ",ȭ:"ȭ",ō:"ō",ṓ:"ṓ",ṑ:"ṑ",ŏ:"ŏ",ǒ:"ǒ",ô:"ô",ố:"ố",ồ:"ồ",ỗ:"ỗ",ȯ:"ȯ",ȱ:"ȱ",ő:"ő",ṕ:"ṕ",ṗ:"ṗ",ŕ:"ŕ",ř:"ř",ṙ:"ṙ",ś:"ś",ṥ:"ṥ",š:"š",ṧ:"ṧ",ŝ:"ŝ",ṡ:"ṡ",ẗ:"ẗ",ť:"ť",ṫ:"ṫ",ú:"ú",ù:"ù",ü:"ü",ǘ:"ǘ",ǜ:"ǜ",ǖ:"ǖ",ǚ:"ǚ",ũ:"ũ",ṹ:"ṹ",ū:"ū",ṻ:"ṻ",ŭ:"ŭ",ǔ:"ǔ",û:"û",ů:"ů",ű:"ű",ṽ:"ṽ",ẃ:"ẃ",ẁ:"ẁ",ẅ:"ẅ",ŵ:"ŵ",ẇ:"ẇ",ẘ:"ẘ",ẍ:"ẍ",ẋ:"ẋ",ý:"ý",ỳ:"ỳ",ÿ:"ÿ",ỹ:"ỹ",ȳ:"ȳ",ŷ:"ŷ",ẏ:"ẏ",ẙ:"ẙ",ź:"ź",ž:"ž",ẑ:"ẑ",ż:"ż",Á:"Á",À:"À",Ä:"Ä",Ǟ:"Ǟ",Ã:"Ã",Ā:"Ā",Ă:"Ă",Ắ:"Ắ",Ằ:"Ằ",Ẵ:"Ẵ",Ǎ:"Ǎ",Â:"Â",Ấ:"Ấ",Ầ:"Ầ",Ẫ:"Ẫ",Ȧ:"Ȧ",Ǡ:"Ǡ",Å:"Å",Ǻ:"Ǻ",Ḃ:"Ḃ",Ć:"Ć",Č:"Č",Ĉ:"Ĉ",Ċ:"Ċ",Ď:"Ď",Ḋ:"Ḋ",É:"É",È:"È",Ë:"Ë",Ẽ:"Ẽ",Ē:"Ē",Ḗ:"Ḗ",Ḕ:"Ḕ",Ĕ:"Ĕ",Ě:"Ě",Ê:"Ê",Ế:"Ế",Ề:"Ề",Ễ:"Ễ",Ė:"Ė",Ḟ:"Ḟ",Ǵ:"Ǵ",Ḡ:"Ḡ",Ğ:"Ğ",Ǧ:"Ǧ",Ĝ:"Ĝ",Ġ:"Ġ",Ḧ:"Ḧ",Ȟ:"Ȟ",Ĥ:"Ĥ",Ḣ:"Ḣ",Í:"Í",Ì:"Ì",Ï:"Ï",Ḯ:"Ḯ",Ĩ:"Ĩ",Ī:"Ī",Ĭ:"Ĭ",Ǐ:"Ǐ",Î:"Î",İ:"İ",Ĵ:"Ĵ",Ḱ:"Ḱ",Ǩ:"Ǩ",Ĺ:"Ĺ",Ľ:"Ľ",Ḿ:"Ḿ",Ṁ:"Ṁ",Ń:"Ń",Ǹ:"Ǹ",Ñ:"Ñ",Ň:"Ň",Ṅ:"Ṅ",Ó:"Ó",Ò:"Ò",Ö:"Ö",Ȫ:"Ȫ",Õ:"Õ",Ṍ:"Ṍ",Ṏ:"Ṏ",Ȭ:"Ȭ",Ō:"Ō",Ṓ:"Ṓ",Ṑ:"Ṑ",Ŏ:"Ŏ",Ǒ:"Ǒ",Ô:"Ô",Ố:"Ố",Ồ:"Ồ",Ỗ:"Ỗ",Ȯ:"Ȯ",Ȱ:"Ȱ",Ő:"Ő",Ṕ:"Ṕ",Ṗ:"Ṗ",Ŕ:"Ŕ",Ř:"Ř",Ṙ:"Ṙ",Ś:"Ś",Ṥ:"Ṥ",Š:"Š",Ṧ:"Ṧ",Ŝ:"Ŝ",Ṡ:"Ṡ",Ť:"Ť",Ṫ:"Ṫ",Ú:"Ú",Ù:"Ù",Ü:"Ü",Ǘ:"Ǘ",Ǜ:"Ǜ",Ǖ:"Ǖ",Ǚ:"Ǚ",Ũ:"Ũ",Ṹ:"Ṹ",Ū:"Ū",Ṻ:"Ṻ",Ŭ:"Ŭ",Ǔ:"Ǔ",Û:"Û",Ů:"Ů",Ű:"Ű",Ṽ:"Ṽ",Ẃ:"Ẃ",Ẁ:"Ẁ",Ẅ:"Ẅ",Ŵ:"Ŵ",Ẇ:"Ẇ",Ẍ:"Ẍ",Ẋ:"Ẋ",Ý:"Ý",Ỳ:"Ỳ",Ÿ:"Ÿ",Ỹ:"Ỹ",Ȳ:"Ȳ",Ŷ:"Ŷ",Ẏ:"Ẏ",Ź:"Ź",Ž:"Ž",Ẑ:"Ẑ",Ż:"Ż",ά:"ά",ὰ:"ὰ",ᾱ:"ᾱ",ᾰ:"ᾰ",έ:"έ",ὲ:"ὲ",ή:"ή",ὴ:"ὴ",ί:"ί",ὶ:"ὶ",ϊ:"ϊ",ΐ:"ΐ",ῒ:"ῒ",ῑ:"ῑ",ῐ:"ῐ",ό:"ό",ὸ:"ὸ",ύ:"ύ",ὺ:"ὺ",ϋ:"ϋ",ΰ:"ΰ",ῢ:"ῢ",ῡ:"ῡ",ῠ:"ῠ",ώ:"ώ",ὼ:"ὼ",Ύ:"Ύ",Ὺ:"Ὺ",Ϋ:"Ϋ",Ῡ:"Ῡ",Ῠ:"Ῠ",Ώ:"Ώ",Ὼ:"Ὼ"},kr=function(){function e(e,t){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode="math",this.gullet=new wr(e,t,this.mode),this.settings=t,this.leftrightDepth=0}var t=e.prototype;return t.expect=function(e,t){if(void 0===t&&(t=!0),this.fetch().text!==e)throw new a("Expected '"+e+"', got '"+this.fetch().text+"'",this.fetch());t&&this.consume()},t.consume=function(){this.nextToken=null},t.fetch=function(){return null==this.nextToken&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken},t.switchMode=function(e){this.mode=e,this.gullet.switchMode(e)},t.parse=function(){this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");var e=this.parseExpression(!1);return this.expect("EOF"),this.gullet.endGroup(),e},t.parseExpression=function(t,n){for(var r=[];;){"math"===this.mode&&this.consumeSpaces();var o=this.fetch();if(-1!==e.endOfExpression.indexOf(o.text))break;if(n&&o.text===n)break;if(t&&ir[o.text]&&ir[o.text].infix)break;var i=this.parseAtom(n);if(!i)break;r.push(i)}return"text"===this.mode&&this.formLigatures(r),this.handleInfixNodes(r)},t.handleInfixNodes=function(e){for(var t,n=-1,r=0;r0&&!s||0===l&&!s&&"math"===this.mode,f=this.parseGroupOfType("argument to '"+e+"'",c,s,r,u);if(!f){if(s){i.push(null);continue}throw new a("Expected group after '"+e+"'",this.fetch())}(s?i:o).push(f)}return{args:o,optArgs:i}},t.parseGroupOfType=function(e,t,n,r,o){switch(t){case"color":return o&&this.consumeSpaces(),this.parseColorGroup(n);case"size":return o&&this.consumeSpaces(),this.parseSizeGroup(n);case"url":return this.parseUrlGroup(n,o);case"math":case"text":return this.parseGroup(e,n,r,void 0,t,o);case"hbox":var i=this.parseGroup(e,n,r,void 0,"text",o);return i?{type:"styling",mode:i.mode,body:[i],style:"text"}:i;case"raw":if(o&&this.consumeSpaces(),n&&"{"===this.fetch().text)return null;var l=this.parseStringGroup("raw",n,!0);if(l)return{type:"raw",mode:"text",string:l.text};throw new a("Expected raw group",this.fetch());case"original":case null:case void 0:return this.parseGroup(e,n,r,void 0,void 0,o);default:throw new a("Unknown group type as "+e,this.fetch())}},t.consumeSpaces=function(){for(;" "===this.fetch().text;)this.consume()},t.parseStringGroup=function(e,t,n){var r=t?"[":"{",o=t?"]":"}",i=this.fetch();if(i.text!==r){if(t)return null;if(n&&"EOF"!==i.text&&/[^{}[\]]/.test(i.text))return this.consume(),i}var l=this.mode;this.mode="text",this.expect(r);for(var c,s="",u=this.fetch(),f=0,h=u;(c=this.fetch()).text!==o||n&&f>0;){switch(c.text){case"EOF":throw new a("Unexpected end of input in "+e,u.range(h,s));case r:f++;break;case o:f--}s+=(h=c).text,this.consume()}return this.expect(o),this.mode=l,u.range(h,s)},t.parseRegexGroup=function(e,t){var n=this.mode;this.mode="text";for(var r,o=this.fetch(),i=o,l="";"EOF"!==(r=this.fetch()).text&&e.test(l+r.text);)l+=(i=r).text,this.consume();if(""===l)throw new a("Invalid "+t+": '"+o.text+"'",o);return this.mode=n,o.range(i,l)},t.parseColorGroup=function(e){var t=this.parseStringGroup("color",e);if(!t)return null;var n=/^(#[a-f0-9]{3}|#?[a-f0-9]{6}|[a-z]+)$/i.exec(t.text);if(!n)throw new a("Invalid color: '"+t.text+"'",t);var r=n[0];return/^[0-9a-f]{6}$/i.test(r)&&(r="#"+r),{type:"color-token",mode:this.mode,color:r}},t.parseSizeGroup=function(e){var t,n=!1;if(!(t=e||"{"===this.fetch().text?this.parseStringGroup("size",e):this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,"size")))return null;e||0!==t.text.length||(t.text="0pt",n=!0);var r=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(t.text);if(!r)throw new a("Invalid size: '"+t.text+"'",t);var o={number:+(r[1]+r[2]),unit:r[3]};if(!Me(o))throw new a("Invalid unit: '"+o.unit+"'",t);return{type:"size",mode:this.mode,value:o,isBlank:n}},t.parseUrlGroup=function(e,t){this.gullet.lexer.setCatcode("%",13);var n=this.parseStringGroup("url",e,!0);if(this.gullet.lexer.setCatcode("%",14),!n)return null;var r=n.text.replace(/\\([#$%&~_^{}])/g,"$1");return{type:"url",mode:this.mode,url:r}},t.parseGroup=function(t,n,o,i,l,c){var s=this.mode;l&&this.switchMode(l),c&&this.consumeSpaces();var u,f=this.fetch(),h=f.text;if(n?"["===h:"{"===h||"\\begingroup"===h){this.consume();var p=e.endOfGroup[h];this.gullet.beginGroup();var d=this.parseExpression(!1,p),m=this.fetch();this.expect(p),this.gullet.endGroup(),u={type:"ordgroup",mode:this.mode,loc:r.range(f,m),body:d,semisimple:"\\begingroup"===h||void 0}}else if(n)u=null;else if(null==(u=this.parseFunction(i,t,o)||this.parseSymbol())&&"\\"===h[0]&&!br.hasOwnProperty(h)){if(this.settings.throwOnError)throw new a("Undefined control sequence: "+h,f);u=this.formatUnsupportedCmd(h),this.consume()}return l&&this.switchMode(s),u},t.formLigatures=function(e){for(var t=e.length-1,n=0;n=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+t[0]+'" used in math mode',e);var c,s=K[this.mode][t].group,u=r.range(e);if(W.hasOwnProperty(s)){var f=s;c={type:"atom",mode:this.mode,family:f,loc:u,text:t}}else c={type:s,mode:this.mode,loc:u,text:t};i=c}else{if(!(t.charCodeAt(0)>=128))return null;this.settings.strict&&(S(t.charCodeAt(0))?"math"===this.mode&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+t[0]+'" used in math mode',e):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+t[0]+'" ('+t.charCodeAt(0)+")",e)),i={type:"textord",mode:"text",loc:r.range(e),text:t}}if(this.consume(),l)for(var h=0;hy;)m(v[y++]);f.constructor=s,s.prototype=f,n("KroJ")(r,"RegExp",s)}n("elZq")("RegExp")},Ozcj:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=s(n("2/Rp")),o=s(n("CtXQ")),i=function(){function e(e,t){for(var n=0;n>>0||(a.test(n)?16:10))}:r},PV3f:function(e,t,n){"use strict";e.exports=function(){}},PYb6:function(e,t,n){},PfIm:function(e,t,n){"use strict";var r=n("TqRt");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o,i=r(n("pVnL")),a=r(n("cWOT")),l=r(n("lwsE")),c=r(n("W8MJ")),s=r(n("a1gu")),u=r(n("7W2i")),f=r(n("PJYZ")),h=r(n("q1tI")),p=r(n("M8ly")),d=(r(n("hBwV")),r(n("4qVG"))),m=r(n("R9O/"));var v=function(){return function(e){var t=function(t){function n(e,t){var r;return(0,l.default)(this,n),r=(0,s.default)(this,(n.__proto__||(0,a.default)(n)).call(this,e,t)),Object.defineProperty((0,f.default)(r),"state",{configurable:!0,enumerable:!0,writable:!0,value:{}}),Object.defineProperty((0,f.default)(r),"unsubscribeId",{configurable:!0,enumerable:!0,writable:!0,value:null}),r.state={theme:m.default.initial(t)||o||(o=(0,d.default)())},r}return(0,u.default)(n,t),(0,c.default)(n,[{key:"componentDidMount",value:function(){var e=this;this.unsubscribeId=m.default.subscribe(this.context,(function(t){e.setState({theme:t})}))}},{key:"componentWillUnmount",value:function(){null!==this.unsubscribeId&&m.default.unsubscribe(this.context,this.unsubscribeId)}},{key:"render",value:function(){return h.default.createElement(e,(0,i.default)({theme:this.state.theme},this.props))}}]),n}(h.default.Component);return t.contextTypes=m.default.contextTypes,(0,p.default)(t,e),t}};t.default=v},Po8q:function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.load=f,t.loadAll=h,t.select=p,t.save=d,t.remove=m,t.setRawCookie=v,t.plugToRequest=y;var o=a(n("iVi/")),i=a(n("MgzW"));function a(e){return e&&e.__esModule?e:{default:e}}var l="undefined"==typeof document||void 0!==e&&Object({NODE_ENV:"production",PUBLIC_URL:"/react/build/"})&&!1,c={},s=void 0;function u(){return s&&!s.headersSent}function f(e,t){var n=l?c:o.default.parse(document.cookie),r=n&&n[e];if(void 0===t&&(t=!r||"{"!==r[0]&&"["!==r[0]),!t)try{r=JSON.parse(r)}catch(e){}return r}function h(e){var t=l?c:o.default.parse(document.cookie);if(void 0===e&&(e=!t||"{"!==t[0]&&"["!==t[0]),!e)try{t=JSON.parse(t)}catch(e){}return t}function p(e){var t=l?c:o.default.parse(document.cookie);return t?e?Object.keys(t).reduce((function(n,r){if(!e.test(r))return n;var o={};return o[r]=t[r],(0,i.default)({},n,o)}),{}):t:{}}function d(e,t,n){c[e]=t,"object"===(void 0===t?"undefined":r(t))&&(c[e]=JSON.stringify(t)),l||(document.cookie=o.default.serialize(e,c[e],n)),u()&&s.cookie&&s.cookie(e,t,n)}function m(e,t){delete c[e],t=void 0===t?{}:"string"==typeof t?{path:t}:(0,i.default)({},t),"undefined"!=typeof document&&(t.expires=new Date(1970,1,1,0,0,1),t.maxAge=0,document.cookie=o.default.serialize(e,"",t)),u()&&s.clearCookie&&s.clearCookie(e,t)}function v(e){c=e?o.default.parse(e):{}}function y(e,t){return e.cookie?c=e.cookie:e.cookies?c=e.cookies:e.headers&&e.headers.cookie?v(e.headers.cookie):c={},s=t,function(){s=null,c={}}}t.default={setRawCookie:v,load:f,loadAll:h,select:p,save:d,remove:m,plugToRequest:y}}).call(this,n("KCCg"))},PovZ:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=v(n("14Xm")),o=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&l.return&&l.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")};n("gmff"),n("p1OT"),n("gJae"),n("FOEY"),n("qiVY");var i=n("q1tI"),a=v(i),l=v(n("kzlf")),c=v(n("Oy/b")),s=n("t71B"),u=n("sYIF"),f=v(n("MEIi")),h=v(n("dpDy")),p=v(n("lEn/")),d=v(n("NTv2")),m=n("mN9g");function v(e){return e&&e.__esModule?e:{default:e}}var y=l.default.import("attributors/style/size");y.whitelist=["14px","16px","18px","20px",!1];var g=l.default.import("formats/font");g.whitelist=["Microsoft-YaHei","SimSun","SimHei","KaiTi","FangSong"],window.Quill=l.default,window.katex=c.default,l.default.register(f.default),l.default.register(y),l.default.register(p.default),l.default.register(g,!0),l.default.register(h.default);var b=new RegExp("▁","g");function w(e,t){if(t&&t.hasOwnProperty("ops"))e.setContents(t);else if(t){var n=t;n.endsWith("


")&&(n+="


"),e.clipboard.dangerouslyPasteHTML(n)}}var x={bold:"加粗",strike:"删除线",italic:"斜体",underline:"下划线",ordered:"有序列表",bullet:"无序列表",color:"字体颜色",background:"背景色",sub:"下标",super:"上标",image:"上传图片","code-block":"代码块",formula:"公式",clean:"清除格式",fill:"插入填空项",align:"对齐",header1:"标题一",header2:"标题二",header3:"标题三",header4:"标题四",header5:"标题五",header6:"标题六"};t.default=function(e){var t=e.defaultValue,n=e.placeholder,c=e.readOnly,f=e.autoFocus,h=void 0!==f&&f,p=e.options,v=e.value,y=e.imgAttrs,g=void 0===y?{}:y,_=e.style,k=void 0===_?{}:_,S=e.wrapStyle,O=void 0===S?{}:S,M=e.showUploadImage,T=e.onContentChange,E=e.className,z=e.onAddFill,C=e.onDeleteFill,P=(0,i.useRef)(null),A=(0,i.useState)(null),j=o(A,2),L=j[0],N=j[1],H={backspace:{key:"Backspace",handler:function(e,t){var n=I(e,this.quill),r=o(n,2),i=r[0],a=r[1];return!a||!!window.confirm("确定要删除这个填空吗?")&&(C&&C(i,a.length),!0)}}},R={modules:{toolbar:p||m.defaultQuillOpt,syntax:!1,keyboard:{bindings:H}},readOnly:c,placeholder:n,theme:c?"bubble":"snow"};function I(e,t){var n=e.index,r=e.length,o=0===r?n-1:n,i=t.getText(o,Math.max(1,r));return[(t.getText(0,o).match(b)||[]).length,i.match(b)]}return(0,i.useEffect)((function(){var e,t=new l.default(P.current,R);N(t),t.getModule("toolbar").addHandler("image",(function(e){var n,o,i=document.createElement("input");i.setAttribute("type","file"),i.setAttribute("accept","image/*"),i.click(),i.onchange=(n=r.default.mark((function e(n){var o,a,l,c,f,h,p,d;return r.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=i.files[0],(a=new FormData).append("file",o),l=t.getSelection(!0),c="",e.next=7,(0,s.fetchUploadImage)(a);case 7:(f=e.sent).data&&f.data.id&&(c=(0,u.getImageUrl)("api/attachments/"+f.data.id)),h=g.width,p=g.height,c&&(d={url:c,alt:"图片信息",width:h,height:p},t.insertEmbed(l.index,"image",d));case 11:case"end":return e.stop()}}),e,void 0)})),o=function(){var e=n.apply(this,arguments);return new Promise((function(t,n){return function r(o,i){try{var a=e[o](i),l=a.value}catch(e){return void n(e)}if(!a.done)return Promise.resolve(l).then((function(e){r("next",e)}),(function(e){r("throw",e)}));t(l)}("next")}))},function(e){return o.apply(this,arguments)})})),t.getModule("toolbar").addHandler("fill",(function(e){var n=t.getSelection(!0),r=I(n,t),i=o(r,2),a=i[0];i[1];t.insertEmbed(n.index,"fill",{"data-index":a,text:"▁"}),t.setSelection(t.getLength(),0,"api"),z&&z(a)})),e=t.getModule("toolbar").container.querySelectorAll(".ql-formats > button,.ql-formats>span"),Array.from(e).forEach((function(e){var t,n,r=e.getAttribute("value"),o=e.classList[0].replace("ql-","");if(e.setAttribute("title",x[r||o]||x[""+o+r]),"fill"===o){var i=document.createElement("span");i.setAttribute("class","fill-tip"),i.innerText="点击插入填空项",i.addEventListener("click",(function(){e.click()})),t=i,(n=e).parentNode.insertBefore(t,n.nextSibling)}})),w(t,v),h&&t.focus();var n=d.default.subscribe("on-preview-image",(function(e){M&&M(e)}));return function(){n()}}),[]),(0,i.useEffect)((function(){L&&(!0===c?L.enable(!1):L.enable(!0))}),[L,c]),(0,i.useEffect)((function(){w(L,t)}),[L,t]),(0,i.useEffect)((function(){L&&(L.root.dataset.placeholder=n)}),[L,n]),(0,i.useEffect)((function(){L&&(h?L.focus():L.blur())}),[L,h]),(0,i.useEffect)((function(){if(L&&T){var e=function(e,t,n){var r=P.current.children[0].innerHTML,o=L.getText();"


"===r&&(r=""),T&&T(L.getContents(),r,{quill:L,text:o,delta:e,oldDelta:t,source:n})};return L.on("text-change",e),function(){L.off("text-change",e)}}}),[L,T]),a.default.createElement("div",{className:"quill_editor_for_react_area "+E+" ",style:O},a.default.createElement("div",{ref:P,style:k}))}},PxQ1:function(e,t,n){"use strict";var r={stringify:function(e){var t="";for(var n in e)if(null!=e[n])if(e[n].constructor===Array){var r=!0,o=!1,i=void 0;try{for(var a,l=e[n][Symbol.iterator]();!(r=(a=l.next()).done);r=!0){t=t+n+"[]="+a.value+"&"}}catch(e){o=!0,i=e}finally{try{!r&&l.return&&l.return()}finally{if(o)throw i}}}else t+=n+"="+encodeURIComponent(e[n])+"&";return""==t?"":t=t.substring(0,t.length-1)},parse:function(e){if(!e)return{};if(e.startsWith("?")&&(e=e.substring(1)),!e)return{};var t=e.split("&"),n={};return t.forEach((function(e){var t=e.split("=");n[t[0]]=t[1]})),n}};e.exports=r},Q3ne:function(e,t,n){var r=n("SlkY");e.exports=function(e,t){var n=[];return r(e,!1,n.push,n,t),n}},Q6hy:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.userReducer=void 0;var r,o=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:l,t=arguments[1];switch(t.type){case a.default.SAVE_USER_INFO:return{userInfo:t.payload};default:return o({},e)}};t.default=c,t.userReducer=c},Q8kY:function(e,t,n){},"QB/3":function(e,t,n){"use strict";t.__esModule=!0;var r=i(n("rnRR")),o=i(n("Lusz"));function i(e){return e&&e.__esModule?e:{default:e}}t.default=function(){var e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];return function(t){var n=t.getState;return function(t){return function(i){if(!i.meta||!i.meta.urlQuery)return t(i);var a=e.reducer||o.default.reducer||r.default,l=null==e.readLocationFromStore?o.default.readLocationFromStore:e.readLocationFromStore;l?a(i,l(n())):a(i);return!1===e.shortcircuit?t(i):void 0}}}}},"QC+M":function(e,t,n){"use strict";n.d(t,"a",(function(){return v}));var r=n("q1tI"),o=n.n(r),i=n("i8i4"),a=n.n(i),l=n("17x9"),c=n.n(l);function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){for(var n=0;n=0||(a[n]=e[n]);if(r){var c=r(e);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}},QIyF:function(e,t,n){var r=n("Kz5y");e.exports=function(){return r.Date.now()}},"QKg/":function(e,t,n){},QLaP:function(e,t,n){"use strict";e.exports=function(e,t,n,r,o,i,a,l){if(!e){var c;if(void 0===t)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var s=[n,r,o,i,a,l],u=0;(c=new Error(t.replace(/%s/g,(function(){return s[u++]})))).name="Invariant Violation"}throw c.framesToPop=1,c}}},QMMT:function(e,t,n){var r=n("a0xu"),o=n("UWiX")("toStringTag"),i="Arguments"==r(function(){return arguments}());e.exports=function(e){var t,n,a;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),o))?n:i?r(t):"Object"==(a=r(t))&&"function"==typeof t.callee?"Arguments":a}},QWy2:function(e,t,n){n("KOQb")("Map")},QXAm:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DEPRECATED_CONFIG_PROPS=t.defaultProps=t.propTypes=void 0;var r,o=(r=n("17x9"))&&r.__esModule?r:{default:r};var i=o.default.string,a=o.default.bool,l=o.default.number,c=o.default.array,s=o.default.oneOfType,u=o.default.shape,f=o.default.object,h=o.default.func,p=o.default.node,d={url:s([i,c,f]),playing:a,loop:a,controls:a,volume:l,muted:a,playbackRate:l,width:s([i,l]),height:s([i,l]),style:f,progressInterval:l,playsinline:a,pip:a,light:s([a,i]),playIcon:p,wrapper:s([i,h,u({render:h.isRequired})]),config:u({soundcloud:u({options:f,preload:a}),youtube:u({playerVars:f,embedOptions:f,preload:a}),facebook:u({appId:i,version:i,playerId:i}),dailymotion:u({params:f,preload:a}),vimeo:u({playerOptions:f,preload:a}),file:u({attributes:f,tracks:c,forceVideo:a,forceAudio:a,forceHLS:a,forceDASH:a,hlsOptions:f,hlsVersion:i,dashVersion:i}),wistia:u({options:f}),mixcloud:u({options:f}),twitch:u({options:f,playerId:i})}),onReady:h,onStart:h,onPlay:h,onPause:h,onBuffer:h,onBufferEnd:h,onEnded:h,onError:h,onDuration:h,onSeek:h,onProgress:h,onEnablePIP:h,onDisablePIP:h};t.propTypes=d;t.defaultProps={playing:!1,loop:!1,controls:!1,volume:null,muted:!1,playbackRate:1,width:"640px",height:"360px",style:{},progressInterval:1e3,playsinline:!1,pip:!1,light:!1,wrapper:"div",config:{soundcloud:{options:{visual:!0,buying:!1,liking:!1,download:!1,sharing:!1,show_comments:!1,show_playcount:!1}},youtube:{playerVars:{playsinline:1,showinfo:0,rel:0,iv_load_policy:3,modestbranding:1},embedOptions:{},preload:!1},facebook:{appId:"1309697205772819",version:"v3.3",playerId:null},dailymotion:{params:{api:1,"endscreen-enable":!1},preload:!1},vimeo:{playerOptions:{autopause:!1,byline:!1,portrait:!1,title:!1},preload:!1},file:{attributes:{},tracks:[],forceVideo:!1,forceAudio:!1,forceHLS:!1,forceDASH:!1,hlsOptions:{},hlsVersion:"0.13.1",dashVersion:"2.9.2"},wistia:{options:{}},mixcloud:{options:{hide_cover:1}},twitch:{options:{},playerId:null}},onReady:function(){},onStart:function(){},onPlay:function(){},onPause:function(){},onBuffer:function(){},onBufferEnd:function(){},onEnded:function(){},onError:function(){},onDuration:function(){},onSeek:function(){},onProgress:function(){},onEnablePIP:function(){},onDisablePIP:function(){}};t.DEPRECATED_CONFIG_PROPS=["soundcloudConfig","youtubeConfig","facebookConfig","dailymotionConfig","vimeoConfig","fileConfig","wistiaConfig"]},QYFm:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=s(n("kLXV")),o=s(n("W9HT")),i=s(n("CtXQ")),a=function(){function e(e,t){for(var n=0;ns;)c.call(e,a=l[s++])&&t.push(a);return t}},R5XZ:function(e,t,n){var r=n("dyZX"),o=n("XKFU"),i=n("ol8x"),a=[].slice,l=/MSIE .\./.test(i),c=function(e){return function(t,n){var r=arguments.length>2,o=!!r&&a.call(arguments,2);return e(r?function(){("function"==typeof t?t:Function(t)).apply(this,o)}:t,n)}};o(o.G+o.B+o.F*l,{setTimeout:c(r.setTimeout),setInterval:c(r.setInterval)})},"R9O/":function(e,t,n){"use strict";var r=n("TqRt");Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.CHANNEL=void 0;var o=r(n("lSNA")),i=r(n("17x9")),a="__THEMING__";t.CHANNEL=a;var l={contextTypes:(0,o.default)({},a,i.default.object),initial:function(e){return e[a]?e[a].getState():null},subscribe:function(e,t){return e[a]?e[a].subscribe(t):null},unsubscribe:function(e,t){e[a]&&e[a].unsubscribe(t)}};t.default=l},RELg:function(e,t,n){var r=n("MFOe").Global;e.exports={name:"oldIE-userDataStorage",write:function(e,t){if(a)return;var n=c(e);i((function(e){e.setAttribute(n,t),e.save("storejs")}))},read:function(e){if(a)return;var t=c(e),n=null;return i((function(e){n=e.getAttribute(t)})),n},each:function(e){i((function(t){for(var n=t.XMLDocument.documentElement.attributes,r=n.length-1;r>=0;r--){var o=n[r];e(t.getAttribute(o.name),o.name)}}))},remove:function(e){var t=c(e);i((function(e){e.removeAttribute(t),e.save("storejs")}))},clearAll:function(){i((function(e){var t=e.XMLDocument.documentElement.attributes;e.load("storejs");for(var n=t.length-1;n>=0;n--)e.removeAttribute(t[n].name);e.save("storejs")}))}};var o=r.document,i=function(){if(!o||!o.documentElement||!o.documentElement.addBehavior)return null;var e,t,n;try{(t=new ActiveXObject("htmlfile")).open(),t.write('