@zzish/math-rich-input 0.1.49 → 0.1.50

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,2 +1,2 @@
1
1
  /*! For license information please see standalone.js.LICENSE.txt */
2
- var e={56:(e,t,n)=>{e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},72:e=>{var t=[];function n(e){for(var n=-1,r=0;r<t.length;r++)if(t[r].identifier===e){n=r;break}return n}function r(e,r){for(var a={},o=[],s=0;s<e.length;s++){var l=e[s],u=r.base?l[0]+r.base:l[0],c=a[u]||0,d="".concat(u," ").concat(c);a[u]=c+1;var h=n(d),p={css:l[1],media:l[2],sourceMap:l[3],supports:l[4],layer:l[5]};if(-1!==h)t[h].references++,t[h].updater(p);else{var f=i(p,r);r.byIndex=s,t.splice(s,0,{identifier:d,updater:f,references:1})}o.push(d)}return o}function i(e,t){var n=t.domAPI(t);return n.update(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;n.update(e=t)}else n.remove()}}e.exports=function(e,i){var a=r(e=e||[],i=i||{});return function(e){e=e||[];for(var o=0;o<a.length;o++){var s=n(a[o]);t[s].references--}for(var l=r(e,i),u=0;u<a.length;u++){var c=n(a[u]);0===t[c].references&&(t[c].updater(),t.splice(c,1))}a=l}}},113:e=>{e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},138:(e,t,n)=>{e.exports=n(748)},159:e=>{e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},248:(e,t,n)=>{n.d(t,{A:()=>s});var r=n(601),i=n.n(r),a=n(314),o=n.n(a)()(i());o.push([e.id,'*,\n:after,\n:before {\n -webkit-box-sizing: border-box;\n -moz-box-sizing: border-box;\n box-sizing: border-box;\n}\n\n.MathRichInput-Container {\n width: 100%;\n border-radius: 5px;\n}\n\n.MathRichInput-scrollview {\n position: relative;\n display: flex;\n border-radius: 5px;\n}\n\n.MathRichInput p {\n padding: 0px;\n margin: 0px;\n}\n\n.MathRichInput {\n font-size: 18px;\n padding: 10px;\n width: 100%;\n border-radius: 5px;\n background-color: #fff;\n overflow-x: scroll;\n overflow: overlay;\n}\n\n.MathRichInput:empty::before {\n content: attr(data-placeholder);\n color: #acb6c0;\n font-size: 15px;\n}\n.MathRichInput:empty:focus::before {\n content: "";\n}\n\n.MathRichInput:focus {\n outline: 0;\n}\n\n.MathRichInput .katex {\n border: 0px;\n}\n\n.MathRichInput .base {\n /* Combine the katex and base class name to ensure the whole equation is surrounded */\n background-color: #f0f0f0;\n border: 0px;\n border: 1px dotted #d0d0d0;\n border-radius: 5px;\n padding: 2px;\n margin: 0px 2px;\n}\n\n.katex .mathnormal {\n font-family: KaTeX_Math;\n font-style: italic;\n}\n\n.MathRichInput .katex-error {\n background-color: #f0f0f0;\n border: 0px;\n border: 1px dotted #ff8080;\n border-radius: 5px;\n padding: 2px;\n margin: 0px 2px;\n}\n\n.MathRichInput-Container :focus-within {\n background-color: white;\n outline: 0px;\n /* border: 1px solid #663676; */\n }\n\n.MathRichInput-Container.dark :focus-within {\n background: none;\n outline: 0px;\n border: none;\n }\n\n.MathRichInput-Container.dark .MathRichInput {\n color: white;\n\n background: none;\n border: none;\n }\n\n.MathRichInput-Container.dark .MathRichInput .katex,\n .MathRichInput-Container.dark .MathRichInput .base {\n background: none;\n }\n\n.MathRichInput-Container.dark .MathRichInput:focus {\n border: none;\n background: none;\n }\n\n.MathRichInput-Container.question-edit-input .MathRichInput {\n border-radius: 12px;\n font-size: 32px;\n font-weight: 400;\n }\n\n.MathRichInput-Container.question-edit-input .MathRichInput:focus {\n border: none;\n background: rgba(255, 255, 255, 0.1);\n }\n\n.MathRichInput-Container.answer-edit-input .MathRichInput {\n font-weight: 400;\n font-size: 16px;\n }\n\n.MathRichInput-Container.hint-input .MathRichInput, .MathRichInput-Container.explanation-input .MathRichInput {\n font-weight: 400;\n font-size: 16px;\n /* text-decoration: underline dotted; */\n color: #322e33;\n }\n\n.MathRichInput-Container.hint-input .MathRichInput .base, .MathRichInput-Container.explanation-input .MathRichInput .base {\n border: 1px dotted #322e33;\n }\n',""]);const s=o},287:(e,t)=>{var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),p=Symbol.iterator,f={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m=Object.assign,g={};function b(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||f}function v(){}function y(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||f}b.prototype.isReactComponent={},b.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},b.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},v.prototype=b.prototype;var x=y.prototype=new v;x.constructor=y,m(x,b.prototype),x.isPureReactComponent=!0;var w=Array.isArray,k=Object.prototype.hasOwnProperty,S={current:null},C={key:!0,ref:!0,__self:!0,__source:!0};function T(e,t,r){var i,a={},o=null,s=null;if(null!=t)for(i in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(o=""+t.key),t)k.call(t,i)&&!C.hasOwnProperty(i)&&(a[i]=t[i]);var l=arguments.length-2;if(1===l)a.children=r;else if(1<l){for(var u=Array(l),c=0;c<l;c++)u[c]=arguments[c+2];a.children=u}if(e&&e.defaultProps)for(i in l=e.defaultProps)void 0===a[i]&&(a[i]=l[i]);return{$$typeof:n,type:e,key:o,ref:s,props:a,_owner:S.current}}function E(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}var q=/\/+/g;function A(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(e){return t[e]})}(""+e.key):t.toString(36)}function M(e,t,i,a,o){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var l=!1;if(null===e)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case n:case r:l=!0}}if(l)return o=o(l=e),e=""===a?"."+A(l,0):a,w(o)?(i="",null!=e&&(i=e.replace(q,"$&/")+"/"),M(o,t,i,"",function(e){return e})):null!=o&&(E(o)&&(o=function(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(o,i+(!o.key||l&&l.key===o.key?"":(""+o.key).replace(q,"$&/")+"/")+e)),t.push(o)),1;if(l=0,a=""===a?".":a+":",w(e))for(var u=0;u<e.length;u++){var c=a+A(s=e[u],u);l+=M(s,t,i,c,o)}else if(c=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=p&&e[p]||e["@@iterator"])?e:null}(e),"function"==typeof c)for(e=c.call(e),u=0;!(s=e.next()).done;)l+=M(s=s.value,t,i,c=a+A(s,u++),o);else if("object"===s)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return l}function N(e,t,n){if(null==e)return e;var r=[],i=0;return M(e,r,"","",function(e){return t.call(n,e,i++)}),r}function O(e){if(-1===e._status){var t=e._result;(t=t()).then(function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)},function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)}),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var z={current:null},D={transition:null},L={ReactCurrentDispatcher:z,ReactCurrentBatchConfig:D,ReactCurrentOwner:S};function I(){throw Error("act(...) is not supported in production builds of React.")}t.Children={map:N,forEach:function(e,t,n){N(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return N(e,function(){t++}),t},toArray:function(e){return N(e,function(e){return e})||[]},only:function(e){if(!E(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=b,t.Fragment=i,t.Profiler=o,t.PureComponent=y,t.StrictMode=a,t.Suspense=c,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=L,t.act=I,t.cloneElement=function(e,t,r){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var i=m({},e.props),a=e.key,o=e.ref,s=e._owner;if(null!=t){if(void 0!==t.ref&&(o=t.ref,s=S.current),void 0!==t.key&&(a=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(u in t)k.call(t,u)&&!C.hasOwnProperty(u)&&(i[u]=void 0===t[u]&&void 0!==l?l[u]:t[u])}var u=arguments.length-2;if(1===u)i.children=r;else if(1<u){l=Array(u);for(var c=0;c<u;c++)l[c]=arguments[c+2];i.children=l}return{$$typeof:n,type:e.type,key:a,ref:o,props:i,_owner:s}},t.createContext=function(e){return(e={$$typeof:l,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:s,_context:e},e.Consumer=e},t.createElement=T,t.createFactory=function(e){var t=T.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:u,render:e}},t.isValidElement=E,t.lazy=function(e){return{$$typeof:h,_payload:{_status:-1,_result:e},_init:O}},t.memo=function(e,t){return{$$typeof:d,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=D.transition;D.transition={};try{e()}finally{D.transition=t}},t.unstable_act=I,t.useCallback=function(e,t){return z.current.useCallback(e,t)},t.useContext=function(e){return z.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return z.current.useDeferredValue(e)},t.useEffect=function(e,t){return z.current.useEffect(e,t)},t.useId=function(){return z.current.useId()},t.useImperativeHandle=function(e,t,n){return z.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return z.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return z.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return z.current.useMemo(e,t)},t.useReducer=function(e,t,n){return z.current.useReducer(e,t,n)},t.useRef=function(e){return z.current.useRef(e)},t.useState=function(e){return z.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return z.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return z.current.useTransition()},t.version="18.3.1"},314:e=>{e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var n="",r=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),r&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),r&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n}).join("")},t.i=function(e,n,r,i,a){"string"==typeof e&&(e=[[null,e,void 0]]);var o={};if(r)for(var s=0;s<this.length;s++){var l=this[s][0];null!=l&&(o[l]=!0)}for(var u=0;u<e.length;u++){var c=[].concat(e[u]);r&&o[c[0]]||(void 0!==a&&(void 0===c[5]||(c[1]="@layer".concat(c[5].length>0?" ".concat(c[5]):""," {").concat(c[1],"}")),c[5]=a),n&&(c[2]?(c[1]="@media ".concat(c[2]," {").concat(c[1],"}"),c[2]=n):c[2]=n),i&&(c[4]?(c[1]="@supports (".concat(c[4],") {").concat(c[1],"}"),c[4]=i):c[4]="".concat(i)),t.push(c))}},t}},338:(e,t,n)=>{var r=n(961);t.H=r.createRoot,r.hydrateRoot},463:(e,t)=>{function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,i=e[r];if(!(0<a(i,t)))break e;e[r]=t,e[n]=i,n=r}}function r(e){return 0===e.length?null:e[0]}function i(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length,o=i>>>1;r<o;){var s=2*(r+1)-1,l=e[s],u=s+1,c=e[u];if(0>a(l,n))u<i&&0>a(c,l)?(e[r]=c,e[u]=n,r=u):(e[r]=l,e[s]=n,r=s);else{if(!(u<i&&0>a(c,n)))break e;e[r]=c,e[u]=n,r=u}}}return t}function a(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var o=performance;t.unstable_now=function(){return o.now()}}else{var s=Date,l=s.now();t.unstable_now=function(){return s.now()-l}}var u=[],c=[],d=1,h=null,p=3,f=!1,m=!1,g=!1,b="function"==typeof setTimeout?setTimeout:null,v="function"==typeof clearTimeout?clearTimeout:null,y="undefined"!=typeof setImmediate?setImmediate:null;function x(e){for(var t=r(c);null!==t;){if(null===t.callback)i(c);else{if(!(t.startTime<=e))break;i(c),t.sortIndex=t.expirationTime,n(u,t)}t=r(c)}}function w(e){if(g=!1,x(e),!m)if(null!==r(u))m=!0,D(k);else{var t=r(c);null!==t&&L(w,t.startTime-e)}}function k(e,n){m=!1,g&&(g=!1,v(E),E=-1),f=!0;var a=p;try{for(x(n),h=r(u);null!==h&&(!(h.expirationTime>n)||e&&!M());){var o=h.callback;if("function"==typeof o){h.callback=null,p=h.priorityLevel;var s=o(h.expirationTime<=n);n=t.unstable_now(),"function"==typeof s?h.callback=s:h===r(u)&&i(u),x(n)}else i(u);h=r(u)}if(null!==h)var l=!0;else{var d=r(c);null!==d&&L(w,d.startTime-n),l=!1}return l}finally{h=null,p=a,f=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var S,C=!1,T=null,E=-1,q=5,A=-1;function M(){return!(t.unstable_now()-A<q)}function N(){if(null!==T){var e=t.unstable_now();A=e;var n=!0;try{n=T(!0,e)}finally{n?S():(C=!1,T=null)}}else C=!1}if("function"==typeof y)S=function(){y(N)};else if("undefined"!=typeof MessageChannel){var O=new MessageChannel,z=O.port2;O.port1.onmessage=N,S=function(){z.postMessage(null)}}else S=function(){b(N,0)};function D(e){T=e,C||(C=!0,S())}function L(e,n){E=b(function(){e(t.unstable_now())},n)}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(){m||f||(m=!0,D(k))},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):q=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return p},t.unstable_getFirstCallbackNode=function(){return r(u)},t.unstable_next=function(e){switch(p){case 1:case 2:case 3:var t=3;break;default:t=p}var n=p;p=t;try{return e()}finally{p=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=p;p=e;try{return t()}finally{p=n}},t.unstable_scheduleCallback=function(e,i,a){var o=t.unstable_now();switch(a="object"==typeof a&&null!==a&&"number"==typeof(a=a.delay)&&0<a?o+a:o,e){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return e={id:d++,callback:i,priorityLevel:e,startTime:a,expirationTime:s=a+s,sortIndex:-1},a>o?(e.sortIndex=a,n(c,e),null===r(u)&&e===r(c)&&(g?(v(E),E=-1):g=!0,L(w,a-o))):(e.sortIndex=s,n(u,e),m||f||(m=!0,D(k))),e},t.unstable_shouldYield=M,t.unstable_wrapCallback=function(e){var t=p;return function(){var n=p;p=t;try{return e.apply(this,arguments)}finally{p=n}}}},464:(e,t,n)=>{n.d(t,{A:()=>s});var r=n(601),i=n.n(r),a=n(314),o=n.n(a)()(i());o.push([e.id,'.EquationEditorModal-background {\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background: black;\n z-index: 99;\n animation: 0.3s shade;\n animation-fill-mode: forwards;\n}\n\n@keyframes shade {\n 00% {\n opacity: 0;\n }\n 100% {\n opacity: 0.6;\n }\n}\n\n.EquationEditorModal {\n background: white;\n border: 1px solid #808080;\n border-radius: 10px;\n box-shadow: 0px 2px 5px 1px #a0a0a0;\n position: fixed;\n max-width: 500px;\n width: 98%;\n top: 50%;\n left: 50%;\n /* transform: translate(-50%,-50%); */\n z-index: 100;\n animation: 0.3s rise;\n animation-fill-mode: forwards;\n}\n\n@keyframes rise {\n 00% {\n transform: translate(-50%, 100%);\n opacity: 0;\n }\n 100% {\n transform: translate(-50%, -50%);\n opacity: 1;\n }\n}\n\n.EquationEditorModal-mobile {\n background: white;\n border: 1px solid #808080;\n border-radius: 10px;\n box-shadow: 0px 2px 5px 1px #a0a0a0;\n position: fixed;\n max-width: 500px;\n width: 99%;\n top: 0%;\n left: 50%;\n transform: translate(-50%, 1px);\n z-index: 100;\n}\n\n.EquationEditorModal .title {\n display: flex;\n justify-content: space-between;\n font-size: 14px;\n color: #404040;\n text-align: left;\n background: #e0e0e0;\n border: 0px;\n border-radius: 5px 5px 0px 0px;\n padding: 15px;\n margin: 0px;\n}\n\n.EquationEditorModal-mobile .title {\n display: flex;\n justify-content: space-between;\n font-size: 14px;\n color: #404040;\n text-align: left;\n background: #e0e0e0;\n border: 0px;\n border-radius: 5px 5px 0px 0px;\n height: 30px;\n padding: 15px;\n margin: 0px;\n}\n\n.expertModeSwitch {\n display: flex;\n flex-direction: row;\n align-items: center;\n}\n\n.EquationEditorModal .expertModeSwitch .switch {\n margin-left: 10px;\n}\n\n/* The switch - the box around the slider */\n.EquationEditorModal .switch {\n position: relative;\n display: inline-block;\n width: 35px;\n height: 22px;\n margin-bottom: 0;\n padding: 0;\n}\n\n/* Hide default HTML checkbox */\n.EquationEditorModal .switch input {\n opacity: 0;\n width: 0;\n height: 0;\n}\n\n/* The slider */\n.EquationEditorModal .slider {\n position: absolute;\n cursor: pointer;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background-color: #ccc;\n -webkit-transition: 0.4s;\n transition: 0.4s;\n}\n\n.EquationEditorModal .slider:before {\n position: absolute;\n content: "";\n height: 14px;\n width: 14px;\n left: 4px;\n bottom: 4px;\n background-color: white;\n -webkit-transition: 0.4s;\n transition: 0.4s;\n}\n\n.EquationEditorModal input:checked + .slider {\n background-color: #663676;\n}\n\n.EquationEditorModal input:focus + .slider {\n box-shadow: 0 0 1px #2196f3;\n}\n\n.EquationEditorModal input:checked + .slider:before {\n -webkit-transform: translateX(13px);\n -ms-transform: translateX(13px);\n transform: translateX(13px);\n}\n\n/* Rounded sliders */\n.EquationEditorModal .slider.round {\n border-radius: 18px;\n}\n\n.EquationEditorModal .slider.round:before {\n border-radius: 50%;\n}\n',""]);const s=o},539:(e,t,n)=>{n.d(t,{A:()=>s});var r=n(601),i=n.n(r),a=n(314),o=n.n(a)()(i());o.push([e.id,".EquationEditor {\n height: auto;\n text-align: center;\n}\n\n.EquationEditor .editableAndCursorButtonsWrapper {\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n.EquationEditor .editableWrapper {\n overflow: auto;\n width: 100%;\n}\n\n.EquationEditor .cursorButton {\n font-size: 14px;\n font-weight: bold;\n color: #663676;\n background: white;\n text-align: center;\n border: 1px solid #663676;\n border-radius: 5px;\n min-width: 40px;\n width: auto;\n height: 40px;\n padding: 0px;\n margin-top: 10px;\n margin-left: 15px;\n margin-right: 15px;\n /* transition: all .2s ease-in-out; */\n}\n\n.EquationEditor .centerBox {\n display: inline-block;\n text-align: center;\n}\n\n.EquationEditor .editable {\n /* width:auto; */\n text-align: left;\n min-height: 26px;\n min-width: 150px;\n font-size: 20px;\n color: #404040;\n border: 1px solid #b0b0b0;\n border-radius: 5px;\n /* height:36px; */\n padding: 7px 10px 7px 10px;\n margin-top: 6px;\n margin-bottom: 5px;\n}\n\n.EquationEditor .editable-placeholder {\n position: absolute;\n z-index: -1;\n min-height: 26px;\n min-width: 150px;\n font-size: 15px;\n color: grey;\n /* Note the x translation needs to be updatad programatically if the modal width changes */\n transform: translate(-12px, -36px);\n}\n\n.EquationEditor .editable:focus-within {\n border-radius: 5px;\n border: 1px solid #663676 !important;\n box-shadow: 0px 0px 0px white;\n /* box-shadow: inset 1px 1px 5px #a0a0a0; */\n}\n\n.latexInputAreaWrapper {\n width: auto;\n}\n\n.EquationEditor .katexRenderedInput {\n text-align: left;\n min-height: 30px;\n width: 90%;\n font-size: 16px;\n color: #404040;\n border: 0px solid #b0b0b0;\n border-radius: 5px;\n /* height:36px; */\n padding: 7px 10px 4px 10px;\n margin: 5px 15px;\n}\n\n.EquationEditor .latexInput {\n text-align: left;\n height: 88px;\n width: 90%;\n font-size: 16px;\n /* color: #202020; */\n /* background-color: #e0e0e0; */\n /* color: #00ff00;\n background-color: #202020; */\n color: #007000;\n background-color: #fff;\n border: 1px solid #b0b0b0;\n border-radius: 5px;\n padding: 7px 10px 5px 10px;\n margin-top: 10px;\n box-shadow: 0px 0px 0px white;\n}\n\n.EquationEditor .latexInput:focus {\n border: 1px solid #663676 !important;\n outline: 0;\n /* outline: 2px solid #663676!important; */ /* Has square corners */\n /* box-shadow: inset 1px 1px 5px #a0a0a0, 0px 0px 3px #663676; */\n}\n\n.EquationEditor .insertButton {\n font-size: 14px;\n color: white;\n background: #663676;\n text-align: left;\n border: 0px;\n border-radius: 5px;\n height: 36px;\n padding: 0px 30px;\n margin-top: 5px;\n margin-bottom: 5px;\n margin-left: 5px;\n margin-right: 5px;\n}\n\n.EquationEditor .cancelButton {\n font-size: 14px;\n background: white;\n color: #663676;\n text-align: left;\n border: 1px solid #663676;\n border-radius: 5px;\n height: 36px;\n padding: 0px 30px;\n margin-bottom: 10px;\n margin-left: 5px;\n margin-right: 5px;\n}\n\n.EquationEditor .insertButton:hover {\n color: white;\n background: #461656;\n cursor: pointer;\n}\n\n.EquationEditor .recentSymbols-recentText-active {\n font-size: 14px;\n font-weight: bold;\n color: #404040;\n margin-right: 10px;\n}\n\n.EquationEditor .recentSymbols-recentText-not-active {\n font-size: 14px;\n font-weight: bold;\n color: #808080;\n margin-top: 10px;\n margin-bottom: 10px;\n}\n\n.EquationEditor .tabBar {\n background: white;\n text-align: left;\n border: 0px;\n padding: 10px 10px 5px 20px;\n margin: 5px;\n}\n\n@media (max-width: 500px) {\n .EquationEditor .tabBar {\n padding: 5px 0;\n }\n}\n\n.EquationEditor .tab {\n font-size: 14px;\n font-weight: bold;\n color: #404040;\n text-align: left;\n border: 0px;\n height: 30px;\n padding: 5px 10px;\n margin: 5px;\n border-bottom: 6px solid #d0d0d0;\n}\n\n.EquationEditor .tab:hover {\n cursor: pointer;\n}\n.EquationEditor .tab-selected {\n font-size: 14px;\n font-weight: bold;\n color: #404040;\n text-align: left;\n border: 0px;\n height: 30px;\n padding: 5px 10px;\n margin: 5px;\n border-bottom: 6px solid #663676;\n}\n\n.EquationEditor .recentSymbolsButtonArea {\n display: flex;\n justify-content: flex-start;\n width: 486px;\n padding: 2px;\n margin: 5px;\n margin-left: 15px;\n}\n\n.EquationEditor .symbolButtonAreasOuterContainer {\n overflow-x: auto;\n}\n\n.EquationEditor .symbolButtonAreasInnerContainer {\n display: flex;\n width: 2330px;\n}\n\n.EquationEditor .symbolButtonArea {\n display: grid;\n grid-template-columns: repeat(auto-fill, minmax(36px, 1fr));\n grid-auto-rows: minmax(min-content, max-content);\n grid-gap: 1.5px;\n padding: 12px;\n margin: 0px;\n}\n\n.EquationEditor .symbolButtonArea-1 {\n width: 66px;\n}\n\n.EquationEditor .symbolButtonArea-2 {\n width: 108px;\n}\n\n.EquationEditor .symbolButtonArea-3 {\n width: 150px;\n}\n\n.EquationEditor .symbolButtonArea-4 {\n width: 192px;\n}\n\n.EquationEditor .symbolButtonArea-5 {\n width: 234px;\n}\n\n.EquationEditor .symbolButtonArea-6 {\n width: 276px;\n}\n",""]);const s=o},540:(e,t,n)=>{e.exports=n(287)},551:(e,t,n)=>{var r=n(540),i=n(982);function a(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var o=new Set,s={};function l(e,t){u(e,t),u(e+"Capture",t)}function u(e,t){for(s[e]=t,e=0;e<t.length;e++)o.add(t[e])}var c=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),d=Object.prototype.hasOwnProperty,h=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,p={},f={};function m(e,t,n,r,i,a,o){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=o}var g={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){g[e]=new m(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];g[t]=new m(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){g[e]=new m(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){g[e]=new m(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){g[e]=new m(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){g[e]=new m(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){g[e]=new m(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){g[e]=new m(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){g[e]=new m(e,5,!1,e.toLowerCase(),null,!1,!1)});var b=/[\-:]([a-z])/g;function v(e){return e[1].toUpperCase()}function y(e,t,n,r){var i=g.hasOwnProperty(t)?g[t]:null;(null!==i?0!==i.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,i,r)&&(n=null),r||null===i?function(e){return!!d.call(f,e)||!d.call(p,e)&&(h.test(e)?f[e]=!0:(p[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=null===n?3!==i.type&&"":n:(t=i.attributeName,r=i.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(i=i.type)||4===i&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(b,v);g[t]=new m(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(b,v);g[t]=new m(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(b,v);g[t]=new m(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){g[e]=new m(e,1,!1,e.toLowerCase(),null,!1,!1)}),g.xlinkHref=new m("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){g[e]=new m(e,1,!1,e.toLowerCase(),null,!0,!0)});var x=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,w=Symbol.for("react.element"),k=Symbol.for("react.portal"),S=Symbol.for("react.fragment"),C=Symbol.for("react.strict_mode"),T=Symbol.for("react.profiler"),E=Symbol.for("react.provider"),q=Symbol.for("react.context"),A=Symbol.for("react.forward_ref"),M=Symbol.for("react.suspense"),N=Symbol.for("react.suspense_list"),O=Symbol.for("react.memo"),z=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var D=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var L=Symbol.iterator;function I(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=L&&e[L]||e["@@iterator"])?e:null}var _,B=Object.assign;function R(e){if(void 0===_)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);_=t&&t[1]||""}return"\n"+_+e}var P=!1;function j(e,t){if(!e||P)return"";P=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&"string"==typeof t.stack){for(var i=t.stack.split("\n"),a=r.stack.split("\n"),o=i.length-1,s=a.length-1;1<=o&&0<=s&&i[o]!==a[s];)s--;for(;1<=o&&0<=s;o--,s--)if(i[o]!==a[s]){if(1!==o||1!==s)do{if(o--,0>--s||i[o]!==a[s]){var l="\n"+i[o].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}}while(1<=o&&0<=s);break}}}finally{P=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?R(e):""}function H(e){switch(e.tag){case 5:return R(e.type);case 16:return R("Lazy");case 13:return R("Suspense");case 19:return R("SuspenseList");case 0:case 2:case 15:return j(e.type,!1);case 11:return j(e.type.render,!1);case 1:return j(e.type,!0);default:return""}}function F(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case S:return"Fragment";case k:return"Portal";case T:return"Profiler";case C:return"StrictMode";case M:return"Suspense";case N:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case q:return(e.displayName||"Context")+".Consumer";case E:return(e._context.displayName||"Context")+".Provider";case A:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case O:return null!==(t=e.displayName||null)?t:F(e.type)||"Memo";case z:t=e._payload,e=e._init;try{return F(e(t))}catch(e){}}return null}function U(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return F(t);case 8:return t===C?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function Q(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function W(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function V(e){e._valueTracker||(e._valueTracker=function(e){var t=W(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var i=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){r=""+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function $(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=W(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function G(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function K(e,t){var n=t.checked;return B({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function X(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=Q(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function Y(e,t){null!=(t=t.checked)&&y(e,"checked",t,!1)}function Z(e,t){Y(e,t);var n=Q(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ee(e,t.type,n):t.hasOwnProperty("defaultValue")&&ee(e,t.type,Q(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function J(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ee(e,t,n){"number"===t&&G(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var te=Array.isArray;function ne(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Q(n),t=null,i=0;i<e.length;i++){if(e[i].value===n)return e[i].selected=!0,void(r&&(e[i].defaultSelected=!0));null!==t||e[i].disabled||(t=e[i])}null!==t&&(t.selected=!0)}}function re(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(a(91));return B({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ie(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(a(92));if(te(n)){if(1<n.length)throw Error(a(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:Q(n)}}function ae(e,t){var n=Q(t.value),r=Q(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function oe(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function se(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function le(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?se(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ue,ce,de=(ce=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((ue=ue||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ue.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction(function(){return ce(e,t)})}:ce);function he(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var pe={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},fe=["Webkit","ms","Moz","O"];function me(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||pe.hasOwnProperty(e)&&pe[e]?(""+t).trim():t+"px"}function ge(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=me(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}Object.keys(pe).forEach(function(e){fe.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),pe[t]=pe[e]})});var be=B({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ve(e,t){if(t){if(be[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(a(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(a(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(a(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(a(62))}}function ye(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var xe=null;function we(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var ke=null,Se=null,Ce=null;function Te(e){if(e=yi(e)){if("function"!=typeof ke)throw Error(a(280));var t=e.stateNode;t&&(t=wi(t),ke(e.stateNode,e.type,t))}}function Ee(e){Se?Ce?Ce.push(e):Ce=[e]:Se=e}function qe(){if(Se){var e=Se,t=Ce;if(Ce=Se=null,Te(e),t)for(e=0;e<t.length;e++)Te(t[e])}}function Ae(e,t){return e(t)}function Me(){}var Ne=!1;function Oe(e,t,n){if(Ne)return e(t,n);Ne=!0;try{return Ae(e,t,n)}finally{Ne=!1,(null!==Se||null!==Ce)&&(Me(),qe())}}function ze(e,t){var n=e.stateNode;if(null===n)return null;var r=wi(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(a(231,t,typeof n));return n}var De=!1;if(c)try{var Le={};Object.defineProperty(Le,"passive",{get:function(){De=!0}}),window.addEventListener("test",Le,Le),window.removeEventListener("test",Le,Le)}catch(ce){De=!1}function Ie(e,t,n,r,i,a,o,s,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(e){this.onError(e)}}var _e=!1,Be=null,Re=!1,Pe=null,je={onError:function(e){_e=!0,Be=e}};function He(e,t,n,r,i,a,o,s,l){_e=!1,Be=null,Ie.apply(je,arguments)}function Fe(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{!!(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Ue(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&null!==(e=e.alternate)&&(t=e.memoizedState),null!==t)return t.dehydrated}return null}function Qe(e){if(Fe(e)!==e)throw Error(a(188))}function We(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=Fe(e)))throw Error(a(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(null===i)break;var o=i.alternate;if(null===o){if(null!==(r=i.return)){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return Qe(i),e;if(o===r)return Qe(i),t;o=o.sibling}throw Error(a(188))}if(n.return!==r.return)n=i,r=o;else{for(var s=!1,l=i.child;l;){if(l===n){s=!0,n=i,r=o;break}if(l===r){s=!0,r=i,n=o;break}l=l.sibling}if(!s){for(l=o.child;l;){if(l===n){s=!0,n=o,r=i;break}if(l===r){s=!0,r=o,n=i;break}l=l.sibling}if(!s)throw Error(a(189))}}if(n.alternate!==r)throw Error(a(190))}if(3!==n.tag)throw Error(a(188));return n.stateNode.current===n?e:t}(e))?Ve(e):null}function Ve(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=Ve(e);if(null!==t)return t;e=e.sibling}return null}var $e=i.unstable_scheduleCallback,Ge=i.unstable_cancelCallback,Ke=i.unstable_shouldYield,Xe=i.unstable_requestPaint,Ye=i.unstable_now,Ze=i.unstable_getCurrentPriorityLevel,Je=i.unstable_ImmediatePriority,et=i.unstable_UserBlockingPriority,tt=i.unstable_NormalPriority,nt=i.unstable_LowPriority,rt=i.unstable_IdlePriority,it=null,at=null,ot=Math.clz32?Math.clz32:function(e){return 0===(e>>>=0)?32:31-(st(e)/lt|0)|0},st=Math.log,lt=Math.LN2,ut=64,ct=4194304;function dt(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ht(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,i=e.suspendedLanes,a=e.pingedLanes,o=268435455&n;if(0!==o){var s=o&~i;0!==s?r=dt(s):0!==(a&=o)&&(r=dt(a))}else 0!==(o=n&~i)?r=dt(o):0!==a&&(r=dt(a));if(0===r)return 0;if(0!==t&&t!==r&&0===(t&i)&&((i=r&-r)>=(a=t&-t)||16===i&&4194240&a))return t;if(4&r&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)i=1<<(n=31-ot(t)),r|=e[n],t&=~i;return r}function pt(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function ft(e){return 0!=(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function mt(){var e=ut;return!(4194240&(ut<<=1))&&(ut=64),e}function gt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function bt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-ot(t)]=n}function vt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-ot(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var yt=0;function xt(e){return 1<(e&=-e)?4<e?268435455&e?16:536870912:4:1}var wt,kt,St,Ct,Tt,Et=!1,qt=[],At=null,Mt=null,Nt=null,Ot=new Map,zt=new Map,Dt=[],Lt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function It(e,t){switch(e){case"focusin":case"focusout":At=null;break;case"dragenter":case"dragleave":Mt=null;break;case"mouseover":case"mouseout":Nt=null;break;case"pointerover":case"pointerout":Ot.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":zt.delete(t.pointerId)}}function _t(e,t,n,r,i,a){return null===e||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},null!==t&&null!==(t=yi(t))&&kt(t),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==i&&-1===t.indexOf(i)&&t.push(i),e)}function Bt(e){var t=vi(e.target);if(null!==t){var n=Fe(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Ue(n)))return e.blockedOn=t,void Tt(e.priority,function(){St(n)})}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Rt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Kt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=yi(n))&&kt(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);xe=r,n.target.dispatchEvent(r),xe=null,t.shift()}return!0}function Pt(e,t,n){Rt(e)&&n.delete(t)}function jt(){Et=!1,null!==At&&Rt(At)&&(At=null),null!==Mt&&Rt(Mt)&&(Mt=null),null!==Nt&&Rt(Nt)&&(Nt=null),Ot.forEach(Pt),zt.forEach(Pt)}function Ht(e,t){e.blockedOn===t&&(e.blockedOn=null,Et||(Et=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,jt)))}function Ft(e){function t(t){return Ht(t,e)}if(0<qt.length){Ht(qt[0],e);for(var n=1;n<qt.length;n++){var r=qt[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==At&&Ht(At,e),null!==Mt&&Ht(Mt,e),null!==Nt&&Ht(Nt,e),Ot.forEach(t),zt.forEach(t),n=0;n<Dt.length;n++)(r=Dt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Dt.length&&null===(n=Dt[0]).blockedOn;)Bt(n),null===n.blockedOn&&Dt.shift()}var Ut=x.ReactCurrentBatchConfig,Qt=!0;function Wt(e,t,n,r){var i=yt,a=Ut.transition;Ut.transition=null;try{yt=1,$t(e,t,n,r)}finally{yt=i,Ut.transition=a}}function Vt(e,t,n,r){var i=yt,a=Ut.transition;Ut.transition=null;try{yt=4,$t(e,t,n,r)}finally{yt=i,Ut.transition=a}}function $t(e,t,n,r){if(Qt){var i=Kt(e,t,n,r);if(null===i)Qr(e,t,r,Gt,n),It(e,r);else if(function(e,t,n,r,i){switch(t){case"focusin":return At=_t(At,e,t,n,r,i),!0;case"dragenter":return Mt=_t(Mt,e,t,n,r,i),!0;case"mouseover":return Nt=_t(Nt,e,t,n,r,i),!0;case"pointerover":var a=i.pointerId;return Ot.set(a,_t(Ot.get(a)||null,e,t,n,r,i)),!0;case"gotpointercapture":return a=i.pointerId,zt.set(a,_t(zt.get(a)||null,e,t,n,r,i)),!0}return!1}(i,e,t,n,r))r.stopPropagation();else if(It(e,r),4&t&&-1<Lt.indexOf(e)){for(;null!==i;){var a=yi(i);if(null!==a&&wt(a),null===(a=Kt(e,t,n,r))&&Qr(e,t,r,Gt,n),a===i)break;i=a}null!==i&&r.stopPropagation()}else Qr(e,t,r,null,n)}}var Gt=null;function Kt(e,t,n,r){if(Gt=null,null!==(e=vi(e=we(r))))if(null===(t=Fe(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=Ue(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Gt=e,null}function Xt(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Ze()){case Je:return 1;case et:return 4;case tt:case nt:return 16;case rt:return 536870912;default:return 16}default:return 16}}var Yt=null,Zt=null,Jt=null;function en(){if(Jt)return Jt;var e,t,n=Zt,r=n.length,i="value"in Yt?Yt.value:Yt.textContent,a=i.length;for(e=0;e<r&&n[e]===i[e];e++);var o=r-e;for(t=1;t<=o&&n[r-t]===i[a-t];t++);return Jt=i.slice(e,1<t?1-t:void 0)}function tn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function nn(){return!0}function rn(){return!1}function an(e){function t(t,n,r,i,a){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(i):i[o]);return this.isDefaultPrevented=(null!=i.defaultPrevented?i.defaultPrevented:!1===i.returnValue)?nn:rn,this.isPropagationStopped=rn,this}return B(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=nn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nn)},persist:function(){},isPersistent:nn}),t}var on,sn,ln,un={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},cn=an(un),dn=B({},un,{view:0,detail:0}),hn=an(dn),pn=B({},dn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Tn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ln&&(ln&&"mousemove"===e.type?(on=e.screenX-ln.screenX,sn=e.screenY-ln.screenY):sn=on=0,ln=e),on)},movementY:function(e){return"movementY"in e?e.movementY:sn}}),fn=an(pn),mn=an(B({},pn,{dataTransfer:0})),gn=an(B({},dn,{relatedTarget:0})),bn=an(B({},un,{animationName:0,elapsedTime:0,pseudoElement:0})),vn=B({},un,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),yn=an(vn),xn=an(B({},un,{data:0})),wn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},kn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Sn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Cn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Sn[e])&&!!t[e]}function Tn(){return Cn}var En=B({},dn,{key:function(e){if(e.key){var t=wn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?kn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Tn,charCode:function(e){return"keypress"===e.type?tn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),qn=an(En),An=an(B({},pn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Mn=an(B({},dn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Tn})),Nn=an(B({},un,{propertyName:0,elapsedTime:0,pseudoElement:0})),On=B({},pn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),zn=an(On),Dn=[9,13,27,32],Ln=c&&"CompositionEvent"in window,In=null;c&&"documentMode"in document&&(In=document.documentMode);var _n=c&&"TextEvent"in window&&!In,Bn=c&&(!Ln||In&&8<In&&11>=In),Rn=String.fromCharCode(32),Pn=!1;function jn(e,t){switch(e){case"keyup":return-1!==Dn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Hn(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Fn=!1,Un={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Qn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Un[e.type]:"textarea"===t}function Wn(e,t,n,r){Ee(r),0<(t=Vr(t,"onChange")).length&&(n=new cn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Vn=null,$n=null;function Gn(e){Rr(e,0)}function Kn(e){if($(xi(e)))return e}function Xn(e,t){if("change"===e)return t}var Yn=!1;if(c){var Zn;if(c){var Jn="oninput"in document;if(!Jn){var er=document.createElement("div");er.setAttribute("oninput","return;"),Jn="function"==typeof er.oninput}Zn=Jn}else Zn=!1;Yn=Zn&&(!document.documentMode||9<document.documentMode)}function tr(){Vn&&(Vn.detachEvent("onpropertychange",nr),$n=Vn=null)}function nr(e){if("value"===e.propertyName&&Kn($n)){var t=[];Wn(t,$n,e,we(e)),Oe(Gn,t)}}function rr(e,t,n){"focusin"===e?(tr(),$n=n,(Vn=t).attachEvent("onpropertychange",nr)):"focusout"===e&&tr()}function ir(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Kn($n)}function ar(e,t){if("click"===e)return Kn(t)}function or(e,t){if("input"===e||"change"===e)return Kn(t)}var sr="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function lr(e,t){if(sr(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(r=0;r<n.length;r++){var i=n[r];if(!d.call(t,i)||!sr(e[i],t[i]))return!1}return!0}function ur(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function cr(e,t){var n,r=ur(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=ur(r)}}function dr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?dr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function hr(){for(var e=window,t=G();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=G((e=t.contentWindow).document)}return t}function pr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function fr(e){var t=hr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&dr(n.ownerDocument.documentElement,n)){if(null!==r&&pr(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var i=n.textContent.length,a=Math.min(r.start,i);r=void 0===r.end?a:Math.min(r.end,i),!e.extend&&a>r&&(i=r,r=a,a=i),i=cr(n,a);var o=cr(n,r);i&&o&&(1!==e.rangeCount||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&((t=t.createRange()).setStart(i.node,i.offset),e.removeAllRanges(),a>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var mr=c&&"documentMode"in document&&11>=document.documentMode,gr=null,br=null,vr=null,yr=!1;function xr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;yr||null==gr||gr!==G(r)||(r="selectionStart"in(r=gr)&&pr(r)?{start:r.selectionStart,end:r.selectionEnd}:{anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},vr&&lr(vr,r)||(vr=r,0<(r=Vr(br,"onSelect")).length&&(t=new cn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=gr)))}function wr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var kr={animationend:wr("Animation","AnimationEnd"),animationiteration:wr("Animation","AnimationIteration"),animationstart:wr("Animation","AnimationStart"),transitionend:wr("Transition","TransitionEnd")},Sr={},Cr={};function Tr(e){if(Sr[e])return Sr[e];if(!kr[e])return e;var t,n=kr[e];for(t in n)if(n.hasOwnProperty(t)&&t in Cr)return Sr[e]=n[t];return e}c&&(Cr=document.createElement("div").style,"AnimationEvent"in window||(delete kr.animationend.animation,delete kr.animationiteration.animation,delete kr.animationstart.animation),"TransitionEvent"in window||delete kr.transitionend.transition);var Er=Tr("animationend"),qr=Tr("animationiteration"),Ar=Tr("animationstart"),Mr=Tr("transitionend"),Nr=new Map,Or="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function zr(e,t){Nr.set(e,t),l(t,[e])}for(var Dr=0;Dr<Or.length;Dr++){var Lr=Or[Dr];zr(Lr.toLowerCase(),"on"+(Lr[0].toUpperCase()+Lr.slice(1)))}zr(Er,"onAnimationEnd"),zr(qr,"onAnimationIteration"),zr(Ar,"onAnimationStart"),zr("dblclick","onDoubleClick"),zr("focusin","onFocus"),zr("focusout","onBlur"),zr(Mr,"onTransitionEnd"),u("onMouseEnter",["mouseout","mouseover"]),u("onMouseLeave",["mouseout","mouseover"]),u("onPointerEnter",["pointerout","pointerover"]),u("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ir="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),_r=new Set("cancel close invalid load scroll toggle".split(" ").concat(Ir));function Br(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,i,o,s,l,u){if(He.apply(this,arguments),_e){if(!_e)throw Error(a(198));var c=Be;_e=!1,Be=null,Re||(Re=!0,Pe=c)}}(r,t,void 0,e),e.currentTarget=null}function Rr(e,t){t=!!(4&t);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var a=void 0;if(t)for(var o=r.length-1;0<=o;o--){var s=r[o],l=s.instance,u=s.currentTarget;if(s=s.listener,l!==a&&i.isPropagationStopped())break e;Br(i,s,u),a=l}else for(o=0;o<r.length;o++){if(l=(s=r[o]).instance,u=s.currentTarget,s=s.listener,l!==a&&i.isPropagationStopped())break e;Br(i,s,u),a=l}}}if(Re)throw e=Pe,Re=!1,Pe=null,e}function Pr(e,t){var n=t[mi];void 0===n&&(n=t[mi]=new Set);var r=e+"__bubble";n.has(r)||(Ur(t,e,2,!1),n.add(r))}function jr(e,t,n){var r=0;t&&(r|=4),Ur(n,e,r,t)}var Hr="_reactListening"+Math.random().toString(36).slice(2);function Fr(e){if(!e[Hr]){e[Hr]=!0,o.forEach(function(t){"selectionchange"!==t&&(_r.has(t)||jr(t,!1,e),jr(t,!0,e))});var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Hr]||(t[Hr]=!0,jr("selectionchange",!1,t))}}function Ur(e,t,n,r){switch(Xt(t)){case 1:var i=Wt;break;case 4:i=Vt;break;default:i=$t}n=i.bind(null,t,n,e),i=void 0,!De||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(i=!0),r?void 0!==i?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):void 0!==i?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function Qr(e,t,n,r,i){var a=r;if(!(1&t||2&t||null===r))e:for(;;){if(null===r)return;var o=r.tag;if(3===o||4===o){var s=r.stateNode.containerInfo;if(s===i||8===s.nodeType&&s.parentNode===i)break;if(4===o)for(o=r.return;null!==o;){var l=o.tag;if((3===l||4===l)&&((l=o.stateNode.containerInfo)===i||8===l.nodeType&&l.parentNode===i))return;o=o.return}for(;null!==s;){if(null===(o=vi(s)))return;if(5===(l=o.tag)||6===l){r=a=o;continue e}s=s.parentNode}}r=r.return}Oe(function(){var r=a,i=we(n),o=[];e:{var s=Nr.get(e);if(void 0!==s){var l=cn,u=e;switch(e){case"keypress":if(0===tn(n))break e;case"keydown":case"keyup":l=qn;break;case"focusin":u="focus",l=gn;break;case"focusout":u="blur",l=gn;break;case"beforeblur":case"afterblur":l=gn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=fn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=mn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=Mn;break;case Er:case qr:case Ar:l=bn;break;case Mr:l=Nn;break;case"scroll":l=hn;break;case"wheel":l=zn;break;case"copy":case"cut":case"paste":l=yn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=An}var c=!!(4&t),d=!c&&"scroll"===e,h=c?null!==s?s+"Capture":null:s;c=[];for(var p,f=r;null!==f;){var m=(p=f).stateNode;if(5===p.tag&&null!==m&&(p=m,null!==h&&null!=(m=ze(f,h))&&c.push(Wr(f,m,p))),d)break;f=f.return}0<c.length&&(s=new l(s,u,null,n,i),o.push({event:s,listeners:c}))}}if(!(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||n===xe||!(u=n.relatedTarget||n.fromElement)||!vi(u)&&!u[fi])&&(l||s)&&(s=i.window===i?i:(s=i.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=r,null!==(u=(u=n.relatedTarget||n.toElement)?vi(u):null)&&(u!==(d=Fe(u))||5!==u.tag&&6!==u.tag)&&(u=null)):(l=null,u=r),l!==u)){if(c=fn,m="onMouseLeave",h="onMouseEnter",f="mouse","pointerout"!==e&&"pointerover"!==e||(c=An,m="onPointerLeave",h="onPointerEnter",f="pointer"),d=null==l?s:xi(l),p=null==u?s:xi(u),(s=new c(m,f+"leave",l,n,i)).target=d,s.relatedTarget=p,m=null,vi(i)===r&&((c=new c(h,f+"enter",u,n,i)).target=p,c.relatedTarget=d,m=c),d=m,l&&u)e:{for(h=u,f=0,p=c=l;p;p=$r(p))f++;for(p=0,m=h;m;m=$r(m))p++;for(;0<f-p;)c=$r(c),f--;for(;0<p-f;)h=$r(h),p--;for(;f--;){if(c===h||null!==h&&c===h.alternate)break e;c=$r(c),h=$r(h)}c=null}else c=null;null!==l&&Gr(o,s,l,c,!1),null!==u&&null!==d&&Gr(o,d,u,c,!0)}if("select"===(l=(s=r?xi(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var g=Xn;else if(Qn(s))if(Yn)g=or;else{g=ir;var b=rr}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(g=ar);switch(g&&(g=g(e,r))?Wn(o,g,n,i):(b&&b(e,s,r),"focusout"===e&&(b=s._wrapperState)&&b.controlled&&"number"===s.type&&ee(s,"number",s.value)),b=r?xi(r):window,e){case"focusin":(Qn(b)||"true"===b.contentEditable)&&(gr=b,br=r,vr=null);break;case"focusout":vr=br=gr=null;break;case"mousedown":yr=!0;break;case"contextmenu":case"mouseup":case"dragend":yr=!1,xr(o,n,i);break;case"selectionchange":if(mr)break;case"keydown":case"keyup":xr(o,n,i)}var v;if(Ln)e:{switch(e){case"compositionstart":var y="onCompositionStart";break e;case"compositionend":y="onCompositionEnd";break e;case"compositionupdate":y="onCompositionUpdate";break e}y=void 0}else Fn?jn(e,n)&&(y="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(y="onCompositionStart");y&&(Bn&&"ko"!==n.locale&&(Fn||"onCompositionStart"!==y?"onCompositionEnd"===y&&Fn&&(v=en()):(Zt="value"in(Yt=i)?Yt.value:Yt.textContent,Fn=!0)),0<(b=Vr(r,y)).length&&(y=new xn(y,e,null,n,i),o.push({event:y,listeners:b}),(v||null!==(v=Hn(n)))&&(y.data=v))),(v=_n?function(e,t){switch(e){case"compositionend":return Hn(t);case"keypress":return 32!==t.which?null:(Pn=!0,Rn);case"textInput":return(e=t.data)===Rn&&Pn?null:e;default:return null}}(e,n):function(e,t){if(Fn)return"compositionend"===e||!Ln&&jn(e,t)?(e=en(),Jt=Zt=Yt=null,Fn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Bn&&"ko"!==t.locale?null:t.data}}(e,n))&&0<(r=Vr(r,"onBeforeInput")).length&&(i=new xn("onBeforeInput","beforeinput",null,n,i),o.push({event:i,listeners:r}),i.data=v)}Rr(o,t)})}function Wr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Vr(e,t){for(var n=t+"Capture",r=[];null!==e;){var i=e,a=i.stateNode;5===i.tag&&null!==a&&(i=a,null!=(a=ze(e,n))&&r.unshift(Wr(e,a,i)),null!=(a=ze(e,t))&&r.push(Wr(e,a,i))),e=e.return}return r}function $r(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Gr(e,t,n,r,i){for(var a=t._reactName,o=[];null!==n&&n!==r;){var s=n,l=s.alternate,u=s.stateNode;if(null!==l&&l===r)break;5===s.tag&&null!==u&&(s=u,i?null!=(l=ze(n,a))&&o.unshift(Wr(n,l,s)):i||null!=(l=ze(n,a))&&o.push(Wr(n,l,s))),n=n.return}0!==o.length&&e.push({event:t,listeners:o})}var Kr=/\r\n?/g,Xr=/\u0000|\uFFFD/g;function Yr(e){return("string"==typeof e?e:""+e).replace(Kr,"\n").replace(Xr,"")}function Zr(e,t,n){if(t=Yr(t),Yr(e)!==t&&n)throw Error(a(425))}function Jr(){}var ei=null,ti=null;function ni(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var ri="function"==typeof setTimeout?setTimeout:void 0,ii="function"==typeof clearTimeout?clearTimeout:void 0,ai="function"==typeof Promise?Promise:void 0,oi="function"==typeof queueMicrotask?queueMicrotask:void 0!==ai?function(e){return ai.resolve(null).then(e).catch(si)}:ri;function si(e){setTimeout(function(){throw e})}function li(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&8===i.nodeType)if("/$"===(n=i.data)){if(0===r)return e.removeChild(i),void Ft(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=i}while(n);Ft(t)}function ui(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function ci(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var di=Math.random().toString(36).slice(2),hi="__reactFiber$"+di,pi="__reactProps$"+di,fi="__reactContainer$"+di,mi="__reactEvents$"+di,gi="__reactListeners$"+di,bi="__reactHandles$"+di;function vi(e){var t=e[hi];if(t)return t;for(var n=e.parentNode;n;){if(t=n[fi]||n[hi]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=ci(e);null!==e;){if(n=e[hi])return n;e=ci(e)}return t}n=(e=n).parentNode}return null}function yi(e){return!(e=e[hi]||e[fi])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function xi(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(a(33))}function wi(e){return e[pi]||null}var ki=[],Si=-1;function Ci(e){return{current:e}}function Ti(e){0>Si||(e.current=ki[Si],ki[Si]=null,Si--)}function Ei(e,t){Si++,ki[Si]=e.current,e.current=t}var qi={},Ai=Ci(qi),Mi=Ci(!1),Ni=qi;function Oi(e,t){var n=e.type.contextTypes;if(!n)return qi;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,a={};for(i in n)a[i]=t[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function zi(e){return null!=e.childContextTypes}function Di(){Ti(Mi),Ti(Ai)}function Li(e,t,n){if(Ai.current!==qi)throw Error(a(168));Ei(Ai,t),Ei(Mi,n)}function Ii(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var i in r=r.getChildContext())if(!(i in t))throw Error(a(108,U(e)||"Unknown",i));return B({},n,r)}function _i(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||qi,Ni=Ai.current,Ei(Ai,e),Ei(Mi,Mi.current),!0}function Bi(e,t,n){var r=e.stateNode;if(!r)throw Error(a(169));n?(e=Ii(e,t,Ni),r.__reactInternalMemoizedMergedChildContext=e,Ti(Mi),Ti(Ai),Ei(Ai,e)):Ti(Mi),Ei(Mi,n)}var Ri=null,Pi=!1,ji=!1;function Hi(e){null===Ri?Ri=[e]:Ri.push(e)}function Fi(){if(!ji&&null!==Ri){ji=!0;var e=0,t=yt;try{var n=Ri;for(yt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}Ri=null,Pi=!1}catch(t){throw null!==Ri&&(Ri=Ri.slice(e+1)),$e(Je,Fi),t}finally{yt=t,ji=!1}}return null}var Ui=[],Qi=0,Wi=null,Vi=0,$i=[],Gi=0,Ki=null,Xi=1,Yi="";function Zi(e,t){Ui[Qi++]=Vi,Ui[Qi++]=Wi,Wi=e,Vi=t}function Ji(e,t,n){$i[Gi++]=Xi,$i[Gi++]=Yi,$i[Gi++]=Ki,Ki=e;var r=Xi;e=Yi;var i=32-ot(r)-1;r&=~(1<<i),n+=1;var a=32-ot(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,Xi=1<<32-ot(t)+i|n<<i|r,Yi=a+e}else Xi=1<<a|n<<i|r,Yi=e}function ea(e){null!==e.return&&(Zi(e,1),Ji(e,1,0))}function ta(e){for(;e===Wi;)Wi=Ui[--Qi],Ui[Qi]=null,Vi=Ui[--Qi],Ui[Qi]=null;for(;e===Ki;)Ki=$i[--Gi],$i[Gi]=null,Yi=$i[--Gi],$i[Gi]=null,Xi=$i[--Gi],$i[Gi]=null}var na=null,ra=null,ia=!1,aa=null;function oa(e,t){var n=Ou(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function sa(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,na=e,ra=ui(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,na=e,ra=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Ki?{id:Xi,overflow:Yi}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Ou(18,null,null,0)).stateNode=t,n.return=e,e.child=n,na=e,ra=null,!0);default:return!1}}function la(e){return!(!(1&e.mode)||128&e.flags)}function ua(e){if(ia){var t=ra;if(t){var n=t;if(!sa(e,t)){if(la(e))throw Error(a(418));t=ui(n.nextSibling);var r=na;t&&sa(e,t)?oa(r,n):(e.flags=-4097&e.flags|2,ia=!1,na=e)}}else{if(la(e))throw Error(a(418));e.flags=-4097&e.flags|2,ia=!1,na=e}}}function ca(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;na=e}function da(e){if(e!==na)return!1;if(!ia)return ca(e),ia=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!ni(e.type,e.memoizedProps)),t&&(t=ra)){if(la(e))throw ha(),Error(a(418));for(;t;)oa(e,t),t=ui(t.nextSibling)}if(ca(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(a(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){ra=ui(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}ra=null}}else ra=na?ui(e.stateNode.nextSibling):null;return!0}function ha(){for(var e=ra;e;)e=ui(e.nextSibling)}function pa(){ra=na=null,ia=!1}function fa(e){null===aa?aa=[e]:aa.push(e)}var ma=x.ReactCurrentBatchConfig;function ga(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(a(309));var r=n.stateNode}if(!r)throw Error(a(147,e));var i=r,o=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===o?t.ref:(t=function(e){var t=i.refs;null===e?delete t[o]:t[o]=e},t._stringRef=o,t)}if("string"!=typeof e)throw Error(a(284));if(!n._owner)throw Error(a(290,e))}return e}function ba(e,t){throw e=Object.prototype.toString.call(t),Error(a(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function va(e){return(0,e._init)(e._payload)}function ya(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function i(e,t){return(e=Du(e,t)).index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function s(t){return e&&null===t.alternate&&(t.flags|=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=Bu(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function u(e,t,n,r){var a=n.type;return a===S?d(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===a||"object"==typeof a&&null!==a&&a.$$typeof===z&&va(a)===t.type)?((r=i(t,n.props)).ref=ga(e,t,n),r.return=e,r):((r=Lu(n.type,n.key,n.props,null,e.mode,r)).ref=ga(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Ru(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function d(e,t,n,r,a){return null===t||7!==t.tag?((t=Iu(n,e.mode,r,a)).return=e,t):((t=i(t,n)).return=e,t)}function h(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=Bu(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case w:return(n=Lu(t.type,t.key,t.props,null,e.mode,n)).ref=ga(e,null,t),n.return=e,n;case k:return(t=Ru(t,e.mode,n)).return=e,t;case z:return h(e,(0,t._init)(t._payload),n)}if(te(t)||I(t))return(t=Iu(t,e.mode,n,null)).return=e,t;ba(e,t)}return null}function p(e,t,n,r){var i=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==i?null:l(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case w:return n.key===i?u(e,t,n,r):null;case k:return n.key===i?c(e,t,n,r):null;case z:return p(e,t,(i=n._init)(n._payload),r)}if(te(n)||I(n))return null!==i?null:d(e,t,n,r,null);ba(e,n)}return null}function f(e,t,n,r,i){if("string"==typeof r&&""!==r||"number"==typeof r)return l(t,e=e.get(n)||null,""+r,i);if("object"==typeof r&&null!==r){switch(r.$$typeof){case w:return u(t,e=e.get(null===r.key?n:r.key)||null,r,i);case k:return c(t,e=e.get(null===r.key?n:r.key)||null,r,i);case z:return f(e,t,n,(0,r._init)(r._payload),i)}if(te(r)||I(r))return d(t,e=e.get(n)||null,r,i,null);ba(t,r)}return null}function m(i,a,s,l){for(var u=null,c=null,d=a,m=a=0,g=null;null!==d&&m<s.length;m++){d.index>m?(g=d,d=null):g=d.sibling;var b=p(i,d,s[m],l);if(null===b){null===d&&(d=g);break}e&&d&&null===b.alternate&&t(i,d),a=o(b,a,m),null===c?u=b:c.sibling=b,c=b,d=g}if(m===s.length)return n(i,d),ia&&Zi(i,m),u;if(null===d){for(;m<s.length;m++)null!==(d=h(i,s[m],l))&&(a=o(d,a,m),null===c?u=d:c.sibling=d,c=d);return ia&&Zi(i,m),u}for(d=r(i,d);m<s.length;m++)null!==(g=f(d,i,m,s[m],l))&&(e&&null!==g.alternate&&d.delete(null===g.key?m:g.key),a=o(g,a,m),null===c?u=g:c.sibling=g,c=g);return e&&d.forEach(function(e){return t(i,e)}),ia&&Zi(i,m),u}function g(i,s,l,u){var c=I(l);if("function"!=typeof c)throw Error(a(150));if(null==(l=c.call(l)))throw Error(a(151));for(var d=c=null,m=s,g=s=0,b=null,v=l.next();null!==m&&!v.done;g++,v=l.next()){m.index>g?(b=m,m=null):b=m.sibling;var y=p(i,m,v.value,u);if(null===y){null===m&&(m=b);break}e&&m&&null===y.alternate&&t(i,m),s=o(y,s,g),null===d?c=y:d.sibling=y,d=y,m=b}if(v.done)return n(i,m),ia&&Zi(i,g),c;if(null===m){for(;!v.done;g++,v=l.next())null!==(v=h(i,v.value,u))&&(s=o(v,s,g),null===d?c=v:d.sibling=v,d=v);return ia&&Zi(i,g),c}for(m=r(i,m);!v.done;g++,v=l.next())null!==(v=f(m,i,g,v.value,u))&&(e&&null!==v.alternate&&m.delete(null===v.key?g:v.key),s=o(v,s,g),null===d?c=v:d.sibling=v,d=v);return e&&m.forEach(function(e){return t(i,e)}),ia&&Zi(i,g),c}return function e(r,a,o,l){if("object"==typeof o&&null!==o&&o.type===S&&null===o.key&&(o=o.props.children),"object"==typeof o&&null!==o){switch(o.$$typeof){case w:e:{for(var u=o.key,c=a;null!==c;){if(c.key===u){if((u=o.type)===S){if(7===c.tag){n(r,c.sibling),(a=i(c,o.props.children)).return=r,r=a;break e}}else if(c.elementType===u||"object"==typeof u&&null!==u&&u.$$typeof===z&&va(u)===c.type){n(r,c.sibling),(a=i(c,o.props)).ref=ga(r,c,o),a.return=r,r=a;break e}n(r,c);break}t(r,c),c=c.sibling}o.type===S?((a=Iu(o.props.children,r.mode,l,o.key)).return=r,r=a):((l=Lu(o.type,o.key,o.props,null,r.mode,l)).ref=ga(r,a,o),l.return=r,r=l)}return s(r);case k:e:{for(c=o.key;null!==a;){if(a.key===c){if(4===a.tag&&a.stateNode.containerInfo===o.containerInfo&&a.stateNode.implementation===o.implementation){n(r,a.sibling),(a=i(a,o.children||[])).return=r,r=a;break e}n(r,a);break}t(r,a),a=a.sibling}(a=Ru(o,r.mode,l)).return=r,r=a}return s(r);case z:return e(r,a,(c=o._init)(o._payload),l)}if(te(o))return m(r,a,o,l);if(I(o))return g(r,a,o,l);ba(r,o)}return"string"==typeof o&&""!==o||"number"==typeof o?(o=""+o,null!==a&&6===a.tag?(n(r,a.sibling),(a=i(a,o)).return=r,r=a):(n(r,a),(a=Bu(o,r.mode,l)).return=r,r=a),s(r)):n(r,a)}}var xa=ya(!0),wa=ya(!1),ka=Ci(null),Sa=null,Ca=null,Ta=null;function Ea(){Ta=Ca=Sa=null}function qa(e){var t=ka.current;Ti(ka),e._currentValue=t}function Aa(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Ma(e,t){Sa=e,Ta=Ca=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&t)&&(ys=!0),e.firstContext=null)}function Na(e){var t=e._currentValue;if(Ta!==e)if(e={context:e,memoizedValue:t,next:null},null===Ca){if(null===Sa)throw Error(a(308));Ca=e,Sa.dependencies={lanes:0,firstContext:e}}else Ca=Ca.next=e;return t}var Oa=null;function za(e){null===Oa?Oa=[e]:Oa.push(e)}function Da(e,t,n,r){var i=t.interleaved;return null===i?(n.next=n,za(t)):(n.next=i.next,i.next=n),t.interleaved=n,La(e,r)}function La(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var Ia=!1;function _a(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Ba(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Ra(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Pa(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,2&Al){var i=r.pending;return null===i?t.next=t:(t.next=i.next,i.next=t),r.pending=t,La(e,n)}return null===(i=r.interleaved)?(t.next=t,za(r)):(t.next=i.next,i.next=t),r.interleaved=t,La(e,n)}function ja(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,vt(e,n)}}function Ha(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var i=null,a=null;if(null!==(n=n.firstBaseUpdate)){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===a?i=a=o:a=a.next=o,n=n.next}while(null!==n);null===a?i=a=t:a=a.next=t}else i=a=t;return n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Fa(e,t,n,r){var i=e.updateQueue;Ia=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(null!==s){i.shared.pending=null;var l=s,u=l.next;l.next=null,null===o?a=u:o.next=u,o=l;var c=e.alternate;null!==c&&(s=(c=c.updateQueue).lastBaseUpdate)!==o&&(null===s?c.firstBaseUpdate=u:s.next=u,c.lastBaseUpdate=l)}if(null!==a){var d=i.baseState;for(o=0,c=u=l=null,s=a;;){var h=s.lane,p=s.eventTime;if((r&h)===h){null!==c&&(c=c.next={eventTime:p,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var f=e,m=s;switch(h=t,p=n,m.tag){case 1:if("function"==typeof(f=m.payload)){d=f.call(p,d,h);break e}d=f;break e;case 3:f.flags=-65537&f.flags|128;case 0:if(null==(h="function"==typeof(f=m.payload)?f.call(p,d,h):f))break e;d=B({},d,h);break e;case 2:Ia=!0}}null!==s.callback&&0!==s.lane&&(e.flags|=64,null===(h=i.effects)?i.effects=[s]:h.push(s))}else p={eventTime:p,lane:h,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===c?(u=c=p,l=d):c=c.next=p,o|=h;if(null===(s=s.next)){if(null===(s=i.shared.pending))break;s=(h=s).next,h.next=null,i.lastBaseUpdate=h,i.shared.pending=null}}if(null===c&&(l=d),i.baseState=l,i.firstBaseUpdate=u,i.lastBaseUpdate=c,null!==(t=i.shared.interleaved)){i=t;do{o|=i.lane,i=i.next}while(i!==t)}else null===a&&(i.shared.lanes=0);_l|=o,e.lanes=o,e.memoizedState=d}}function Ua(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(null!==i){if(r.callback=null,r=n,"function"!=typeof i)throw Error(a(191,i));i.call(r)}}}var Qa={},Wa=Ci(Qa),Va=Ci(Qa),$a=Ci(Qa);function Ga(e){if(e===Qa)throw Error(a(174));return e}function Ka(e,t){switch(Ei($a,t),Ei(Va,e),Ei(Wa,Qa),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:le(null,"");break;default:t=le(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Ti(Wa),Ei(Wa,t)}function Xa(){Ti(Wa),Ti(Va),Ti($a)}function Ya(e){Ga($a.current);var t=Ga(Wa.current),n=le(t,e.type);t!==n&&(Ei(Va,e),Ei(Wa,n))}function Za(e){Va.current===e&&(Ti(Wa),Ti(Va))}var Ja=Ci(0);function eo(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(128&t.flags)return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var to=[];function no(){for(var e=0;e<to.length;e++)to[e]._workInProgressVersionPrimary=null;to.length=0}var ro=x.ReactCurrentDispatcher,io=x.ReactCurrentBatchConfig,ao=0,oo=null,so=null,lo=null,uo=!1,co=!1,ho=0,po=0;function fo(){throw Error(a(321))}function mo(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!sr(e[n],t[n]))return!1;return!0}function go(e,t,n,r,i,o){if(ao=o,oo=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ro.current=null===e||null===e.memoizedState?Jo:es,e=n(r,i),co){o=0;do{if(co=!1,ho=0,25<=o)throw Error(a(301));o+=1,lo=so=null,t.updateQueue=null,ro.current=ts,e=n(r,i)}while(co)}if(ro.current=Zo,t=null!==so&&null!==so.next,ao=0,lo=so=oo=null,uo=!1,t)throw Error(a(300));return e}function bo(){var e=0!==ho;return ho=0,e}function vo(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===lo?oo.memoizedState=lo=e:lo=lo.next=e,lo}function yo(){if(null===so){var e=oo.alternate;e=null!==e?e.memoizedState:null}else e=so.next;var t=null===lo?oo.memoizedState:lo.next;if(null!==t)lo=t,so=e;else{if(null===e)throw Error(a(310));e={memoizedState:(so=e).memoizedState,baseState:so.baseState,baseQueue:so.baseQueue,queue:so.queue,next:null},null===lo?oo.memoizedState=lo=e:lo=lo.next=e}return lo}function xo(e,t){return"function"==typeof t?t(e):t}function wo(e){var t=yo(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=so,i=r.baseQueue,o=n.pending;if(null!==o){if(null!==i){var s=i.next;i.next=o.next,o.next=s}r.baseQueue=i=o,n.pending=null}if(null!==i){o=i.next,r=r.baseState;var l=s=null,u=null,c=o;do{var d=c.lane;if((ao&d)===d)null!==u&&(u=u.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var h={lane:d,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};null===u?(l=u=h,s=r):u=u.next=h,oo.lanes|=d,_l|=d}c=c.next}while(null!==c&&c!==o);null===u?s=r:u.next=l,sr(r,t.memoizedState)||(ys=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=u,n.lastRenderedState=r}if(null!==(e=n.interleaved)){i=e;do{o=i.lane,oo.lanes|=o,_l|=o,i=i.next}while(i!==e)}else null===i&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function ko(e){var t=yo(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(null!==i){n.pending=null;var s=i=i.next;do{o=e(o,s.action),s=s.next}while(s!==i);sr(o,t.memoizedState)||(ys=!0),t.memoizedState=o,null===t.baseQueue&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function So(){}function Co(e,t){var n=oo,r=yo(),i=t(),o=!sr(r.memoizedState,i);if(o&&(r.memoizedState=i,ys=!0),r=r.queue,_o(qo.bind(null,n,r,e),[e]),r.getSnapshot!==t||o||null!==lo&&1&lo.memoizedState.tag){if(n.flags|=2048,Oo(9,Eo.bind(null,n,r,i,t),void 0,null),null===Ml)throw Error(a(349));30&ao||To(n,t,i)}return i}function To(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=oo.updateQueue)?(t={lastEffect:null,stores:null},oo.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Eo(e,t,n,r){t.value=n,t.getSnapshot=r,Ao(t)&&Mo(e)}function qo(e,t,n){return n(function(){Ao(t)&&Mo(e)})}function Ao(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!sr(e,n)}catch(e){return!0}}function Mo(e){var t=La(e,1);null!==t&&nu(t,e,1,-1)}function No(e){var t=vo();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:xo,lastRenderedState:e},t.queue=e,e=e.dispatch=Go.bind(null,oo,e),[t.memoizedState,e]}function Oo(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=oo.updateQueue)?(t={lastEffect:null,stores:null},oo.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function zo(){return yo().memoizedState}function Do(e,t,n,r){var i=vo();oo.flags|=e,i.memoizedState=Oo(1|t,n,void 0,void 0===r?null:r)}function Lo(e,t,n,r){var i=yo();r=void 0===r?null:r;var a=void 0;if(null!==so){var o=so.memoizedState;if(a=o.destroy,null!==r&&mo(r,o.deps))return void(i.memoizedState=Oo(t,n,a,r))}oo.flags|=e,i.memoizedState=Oo(1|t,n,a,r)}function Io(e,t){return Do(8390656,8,e,t)}function _o(e,t){return Lo(2048,8,e,t)}function Bo(e,t){return Lo(4,2,e,t)}function Ro(e,t){return Lo(4,4,e,t)}function Po(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function jo(e,t,n){return n=null!=n?n.concat([e]):null,Lo(4,4,Po.bind(null,t,e),n)}function Ho(){}function Fo(e,t){var n=yo();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&mo(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Uo(e,t){var n=yo();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&mo(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Qo(e,t,n){return 21&ao?(sr(n,t)||(n=mt(),oo.lanes|=n,_l|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,ys=!0),e.memoizedState=n)}function Wo(e,t){var n=yt;yt=0!==n&&4>n?n:4,e(!0);var r=io.transition;io.transition={};try{e(!1),t()}finally{yt=n,io.transition=r}}function Vo(){return yo().memoizedState}function $o(e,t,n){var r=tu(e);n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Ko(e)?Xo(t,n):null!==(n=Da(e,t,n,r))&&(nu(n,e,r,eu()),Yo(n,t,r))}function Go(e,t,n){var r=tu(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ko(e))Xo(t,i);else{var a=e.alternate;if(0===e.lanes&&(null===a||0===a.lanes)&&null!==(a=t.lastRenderedReducer))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,sr(s,o)){var l=t.interleaved;return null===l?(i.next=i,za(t)):(i.next=l.next,l.next=i),void(t.interleaved=i)}}catch(e){}null!==(n=Da(e,t,i,r))&&(nu(n,e,r,i=eu()),Yo(n,t,r))}}function Ko(e){var t=e.alternate;return e===oo||null!==t&&t===oo}function Xo(e,t){co=uo=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Yo(e,t,n){if(4194240&n){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,vt(e,n)}}var Zo={readContext:Na,useCallback:fo,useContext:fo,useEffect:fo,useImperativeHandle:fo,useInsertionEffect:fo,useLayoutEffect:fo,useMemo:fo,useReducer:fo,useRef:fo,useState:fo,useDebugValue:fo,useDeferredValue:fo,useTransition:fo,useMutableSource:fo,useSyncExternalStore:fo,useId:fo,unstable_isNewReconciler:!1},Jo={readContext:Na,useCallback:function(e,t){return vo().memoizedState=[e,void 0===t?null:t],e},useContext:Na,useEffect:Io,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,Do(4194308,4,Po.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Do(4194308,4,e,t)},useInsertionEffect:function(e,t){return Do(4,2,e,t)},useMemo:function(e,t){var n=vo();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=vo();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=$o.bind(null,oo,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},vo().memoizedState=e},useState:No,useDebugValue:Ho,useDeferredValue:function(e){return vo().memoizedState=e},useTransition:function(){var e=No(!1),t=e[0];return e=Wo.bind(null,e[1]),vo().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=oo,i=vo();if(ia){if(void 0===n)throw Error(a(407));n=n()}else{if(n=t(),null===Ml)throw Error(a(349));30&ao||To(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,Io(qo.bind(null,r,o,e),[e]),r.flags|=2048,Oo(9,Eo.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=vo(),t=Ml.identifierPrefix;if(ia){var n=Yi;t=":"+t+"R"+(n=(Xi&~(1<<32-ot(Xi)-1)).toString(32)+n),0<(n=ho++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=po++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},es={readContext:Na,useCallback:Fo,useContext:Na,useEffect:_o,useImperativeHandle:jo,useInsertionEffect:Bo,useLayoutEffect:Ro,useMemo:Uo,useReducer:wo,useRef:zo,useState:function(){return wo(xo)},useDebugValue:Ho,useDeferredValue:function(e){return Qo(yo(),so.memoizedState,e)},useTransition:function(){return[wo(xo)[0],yo().memoizedState]},useMutableSource:So,useSyncExternalStore:Co,useId:Vo,unstable_isNewReconciler:!1},ts={readContext:Na,useCallback:Fo,useContext:Na,useEffect:_o,useImperativeHandle:jo,useInsertionEffect:Bo,useLayoutEffect:Ro,useMemo:Uo,useReducer:ko,useRef:zo,useState:function(){return ko(xo)},useDebugValue:Ho,useDeferredValue:function(e){var t=yo();return null===so?t.memoizedState=e:Qo(t,so.memoizedState,e)},useTransition:function(){return[ko(xo)[0],yo().memoizedState]},useMutableSource:So,useSyncExternalStore:Co,useId:Vo,unstable_isNewReconciler:!1};function ns(e,t){if(e&&e.defaultProps){for(var n in t=B({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function rs(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:B({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var is={isMounted:function(e){return!!(e=e._reactInternals)&&Fe(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=eu(),i=tu(e),a=Ra(r,i);a.payload=t,null!=n&&(a.callback=n),null!==(t=Pa(e,a,i))&&(nu(t,e,i,r),ja(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=eu(),i=tu(e),a=Ra(r,i);a.tag=1,a.payload=t,null!=n&&(a.callback=n),null!==(t=Pa(e,a,i))&&(nu(t,e,i,r),ja(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=eu(),r=tu(e),i=Ra(n,r);i.tag=2,null!=t&&(i.callback=t),null!==(t=Pa(e,i,r))&&(nu(t,e,r,n),ja(t,e,r))}};function as(e,t,n,r,i,a,o){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,a,o):!(t.prototype&&t.prototype.isPureReactComponent&&lr(n,r)&&lr(i,a))}function os(e,t,n){var r=!1,i=qi,a=t.contextType;return"object"==typeof a&&null!==a?a=Na(a):(i=zi(t)?Ni:Ai.current,a=(r=null!=(r=t.contextTypes))?Oi(e,i):qi),t=new t(n,a),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=is,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=a),t}function ss(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&is.enqueueReplaceState(t,t.state,null)}function ls(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},_a(e);var a=t.contextType;"object"==typeof a&&null!==a?i.context=Na(a):(a=zi(t)?Ni:Ai.current,i.context=Oi(e,a)),i.state=e.memoizedState,"function"==typeof(a=t.getDerivedStateFromProps)&&(rs(e,t,a,n),i.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof i.getSnapshotBeforeUpdate||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||(t=i.state,"function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),t!==i.state&&is.enqueueReplaceState(i,i.state,null),Fa(e,n,i,r),i.state=e.memoizedState),"function"==typeof i.componentDidMount&&(e.flags|=4194308)}function us(e,t){try{var n="",r=t;do{n+=H(r),r=r.return}while(r);var i=n}catch(e){i="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:i,digest:null}}function cs(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function ds(e,t){try{console.error(t.value)}catch(e){setTimeout(function(){throw e})}}var hs="function"==typeof WeakMap?WeakMap:Map;function ps(e,t,n){(n=Ra(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Ql||(Ql=!0,Wl=r),ds(0,t)},n}function fs(e,t,n){(n=Ra(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){ds(0,t)}}var a=e.stateNode;return null!==a&&"function"==typeof a.componentDidCatch&&(n.callback=function(){ds(0,t),"function"!=typeof r&&(null===Vl?Vl=new Set([this]):Vl.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function ms(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new hs;var i=new Set;r.set(t,i)}else void 0===(i=r.get(t))&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=Tu.bind(null,e,t,n),t.then(e,e))}function gs(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function bs(e,t,n,r,i){return 1&e.mode?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=Ra(-1,1)).tag=2,Pa(n,t,1))),n.lanes|=1),e)}var vs=x.ReactCurrentOwner,ys=!1;function xs(e,t,n,r){t.child=null===e?wa(t,null,n,r):xa(t,e.child,n,r)}function ws(e,t,n,r,i){n=n.render;var a=t.ref;return Ma(t,i),r=go(e,t,n,r,a,i),n=bo(),null===e||ys?(ia&&n&&ea(t),t.flags|=1,xs(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Qs(e,t,i))}function ks(e,t,n,r,i){if(null===e){var a=n.type;return"function"!=typeof a||zu(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Lu(n.type,null,r,t,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,Ss(e,t,a,r,i))}if(a=e.child,0===(e.lanes&i)){var o=a.memoizedProps;if((n=null!==(n=n.compare)?n:lr)(o,r)&&e.ref===t.ref)return Qs(e,t,i)}return t.flags|=1,(e=Du(a,r)).ref=t.ref,e.return=t,t.child=e}function Ss(e,t,n,r,i){if(null!==e){var a=e.memoizedProps;if(lr(a,r)&&e.ref===t.ref){if(ys=!1,t.pendingProps=r=a,0===(e.lanes&i))return t.lanes=e.lanes,Qs(e,t,i);131072&e.flags&&(ys=!0)}}return Es(e,t,n,r,i)}function Cs(e,t,n){var r=t.pendingProps,i=r.children,a=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(1&t.mode){if(!(1073741824&n))return e=null!==a?a.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Ei(Dl,zl),zl|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==a?a.baseLanes:n,Ei(Dl,zl),zl|=r}else t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ei(Dl,zl),zl|=n;else null!==a?(r=a.baseLanes|n,t.memoizedState=null):r=n,Ei(Dl,zl),zl|=r;return xs(e,t,i,n),t.child}function Ts(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Es(e,t,n,r,i){var a=zi(n)?Ni:Ai.current;return a=Oi(t,a),Ma(t,i),n=go(e,t,n,r,a,i),r=bo(),null===e||ys?(ia&&r&&ea(t),t.flags|=1,xs(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Qs(e,t,i))}function qs(e,t,n,r,i){if(zi(n)){var a=!0;_i(t)}else a=!1;if(Ma(t,i),null===t.stateNode)Us(e,t),os(t,n,r),ls(t,n,r,i),r=!0;else if(null===e){var o=t.stateNode,s=t.memoizedProps;o.props=s;var l=o.context,u=n.contextType;u="object"==typeof u&&null!==u?Na(u):Oi(t,u=zi(n)?Ni:Ai.current);var c=n.getDerivedStateFromProps,d="function"==typeof c||"function"==typeof o.getSnapshotBeforeUpdate;d||"function"!=typeof o.UNSAFE_componentWillReceiveProps&&"function"!=typeof o.componentWillReceiveProps||(s!==r||l!==u)&&ss(t,o,r,u),Ia=!1;var h=t.memoizedState;o.state=h,Fa(t,r,o,i),l=t.memoizedState,s!==r||h!==l||Mi.current||Ia?("function"==typeof c&&(rs(t,n,c,r),l=t.memoizedState),(s=Ia||as(t,n,s,r,h,l,u))?(d||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||("function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount()),"function"==typeof o.componentDidMount&&(t.flags|=4194308)):("function"==typeof o.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),o.props=r,o.state=l,o.context=u,r=s):("function"==typeof o.componentDidMount&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,Ba(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:ns(t.type,s),o.props=u,d=t.pendingProps,h=o.context,l="object"==typeof(l=n.contextType)&&null!==l?Na(l):Oi(t,l=zi(n)?Ni:Ai.current);var p=n.getDerivedStateFromProps;(c="function"==typeof p||"function"==typeof o.getSnapshotBeforeUpdate)||"function"!=typeof o.UNSAFE_componentWillReceiveProps&&"function"!=typeof o.componentWillReceiveProps||(s!==d||h!==l)&&ss(t,o,r,l),Ia=!1,h=t.memoizedState,o.state=h,Fa(t,r,o,i);var f=t.memoizedState;s!==d||h!==f||Mi.current||Ia?("function"==typeof p&&(rs(t,n,p,r),f=t.memoizedState),(u=Ia||as(t,n,u,r,h,f,l)||!1)?(c||"function"!=typeof o.UNSAFE_componentWillUpdate&&"function"!=typeof o.componentWillUpdate||("function"==typeof o.componentWillUpdate&&o.componentWillUpdate(r,f,l),"function"==typeof o.UNSAFE_componentWillUpdate&&o.UNSAFE_componentWillUpdate(r,f,l)),"function"==typeof o.componentDidUpdate&&(t.flags|=4),"function"==typeof o.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof o.componentDidUpdate||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),"function"!=typeof o.getSnapshotBeforeUpdate||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=f),o.props=r,o.state=f,o.context=l,r=u):("function"!=typeof o.componentDidUpdate||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),"function"!=typeof o.getSnapshotBeforeUpdate||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),r=!1)}return As(e,t,n,r,a,i)}function As(e,t,n,r,i,a){Ts(e,t);var o=!!(128&t.flags);if(!r&&!o)return i&&Bi(t,n,!1),Qs(e,t,a);r=t.stateNode,vs.current=t;var s=o&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&o?(t.child=xa(t,e.child,null,a),t.child=xa(t,null,s,a)):xs(e,t,s,a),t.memoizedState=r.state,i&&Bi(t,n,!0),t.child}function Ms(e){var t=e.stateNode;t.pendingContext?Li(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Li(0,t.context,!1),Ka(e,t.containerInfo)}function Ns(e,t,n,r,i){return pa(),fa(i),t.flags|=256,xs(e,t,n,r),t.child}var Os,zs,Ds,Ls,Is={dehydrated:null,treeContext:null,retryLane:0};function _s(e){return{baseLanes:e,cachePool:null,transitions:null}}function Bs(e,t,n){var r,i=t.pendingProps,o=Ja.current,s=!1,l=!!(128&t.flags);if((r=l)||(r=(null===e||null!==e.memoizedState)&&!!(2&o)),r?(s=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(o|=1),Ei(Ja,1&o),null===e)return ua(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(1&t.mode?"$!"===e.data?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(l=i.children,e=i.fallback,s?(i=t.mode,s=t.child,l={mode:"hidden",children:l},1&i||null===s?s=_u(l,i,0,null):(s.childLanes=0,s.pendingProps=l),e=Iu(e,i,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=_s(n),t.memoizedState=Is,e):Rs(t,l));if(null!==(o=e.memoizedState)&&null!==(r=o.dehydrated))return function(e,t,n,r,i,o,s){if(n)return 256&t.flags?(t.flags&=-257,Ps(e,t,s,r=cs(Error(a(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(o=r.fallback,i=t.mode,r=_u({mode:"visible",children:r.children},i,0,null),(o=Iu(o,i,s,null)).flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,1&t.mode&&xa(t,e.child,null,s),t.child.memoizedState=_s(s),t.memoizedState=Is,o);if(!(1&t.mode))return Ps(e,t,s,null);if("$!"===i.data){if(r=i.nextSibling&&i.nextSibling.dataset)var l=r.dgst;return r=l,Ps(e,t,s,r=cs(o=Error(a(419)),r,void 0))}if(l=0!==(s&e.childLanes),ys||l){if(null!==(r=Ml)){switch(s&-s){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}0!==(i=0!==(i&(r.suspendedLanes|s))?0:i)&&i!==o.retryLane&&(o.retryLane=i,La(e,i),nu(r,e,i,-1))}return mu(),Ps(e,t,s,r=cs(Error(a(421))))}return"$?"===i.data?(t.flags|=128,t.child=e.child,t=qu.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,ra=ui(i.nextSibling),na=t,ia=!0,aa=null,null!==e&&($i[Gi++]=Xi,$i[Gi++]=Yi,$i[Gi++]=Ki,Xi=e.id,Yi=e.overflow,Ki=t),(t=Rs(t,r.children)).flags|=4096,t)}(e,t,l,i,r,o,n);if(s){s=i.fallback,l=t.mode,r=(o=e.child).sibling;var u={mode:"hidden",children:i.children};return 1&l||t.child===o?(i=Du(o,u)).subtreeFlags=14680064&o.subtreeFlags:((i=t.child).childLanes=0,i.pendingProps=u,t.deletions=null),null!==r?s=Du(r,s):(s=Iu(s,l,n,null)).flags|=2,s.return=t,i.return=t,i.sibling=s,t.child=i,i=s,s=t.child,l=null===(l=e.child.memoizedState)?_s(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},s.memoizedState=l,s.childLanes=e.childLanes&~n,t.memoizedState=Is,i}return e=(s=e.child).sibling,i=Du(s,{mode:"visible",children:i.children}),!(1&t.mode)&&(i.lanes=n),i.return=t,i.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=i,t.memoizedState=null,i}function Rs(e,t){return(t=_u({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Ps(e,t,n,r){return null!==r&&fa(r),xa(t,e.child,null,n),(e=Rs(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function js(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Aa(e.return,t,n)}function Hs(e,t,n,r,i){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=i)}function Fs(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;if(xs(e,t,r.children,n),2&(r=Ja.current))r=1&r|2,t.flags|=128;else{if(null!==e&&128&e.flags)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&js(e,n,t);else if(19===e.tag)js(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Ei(Ja,r),1&t.mode)switch(i){case"forwards":for(n=t.child,i=null;null!==n;)null!==(e=n.alternate)&&null===eo(e)&&(i=n),n=n.sibling;null===(n=i)?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Hs(t,!1,i,n,a);break;case"backwards":for(n=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===eo(e)){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Hs(t,!0,n,null,a);break;case"together":Hs(t,!1,null,null,void 0);break;default:t.memoizedState=null}else t.memoizedState=null;return t.child}function Us(e,t){!(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Qs(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),_l|=t.lanes,0===(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(a(153));if(null!==t.child){for(n=Du(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Du(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Ws(e,t){if(!ia)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Vs(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=14680064&i.subtreeFlags,r|=14680064&i.flags,i.return=e,i=i.sibling;else for(i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function $s(e,t,n){var r=t.pendingProps;switch(ta(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Vs(t),null;case 1:case 17:return zi(t.type)&&Di(),Vs(t),null;case 3:return r=t.stateNode,Xa(),Ti(Mi),Ti(Ai),no(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(da(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,null!==aa&&(ou(aa),aa=null))),zs(e,t),Vs(t),null;case 5:Za(t);var i=Ga($a.current);if(n=t.type,null!==e&&null!=t.stateNode)Ds(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(a(166));return Vs(t),null}if(e=Ga(Wa.current),da(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[hi]=t,r[pi]=o,e=!!(1&t.mode),n){case"dialog":Pr("cancel",r),Pr("close",r);break;case"iframe":case"object":case"embed":Pr("load",r);break;case"video":case"audio":for(i=0;i<Ir.length;i++)Pr(Ir[i],r);break;case"source":Pr("error",r);break;case"img":case"image":case"link":Pr("error",r),Pr("load",r);break;case"details":Pr("toggle",r);break;case"input":X(r,o),Pr("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},Pr("invalid",r);break;case"textarea":ie(r,o),Pr("invalid",r)}for(var l in ve(n,o),i=null,o)if(o.hasOwnProperty(l)){var u=o[l];"children"===l?"string"==typeof u?r.textContent!==u&&(!0!==o.suppressHydrationWarning&&Zr(r.textContent,u,e),i=["children",u]):"number"==typeof u&&r.textContent!==""+u&&(!0!==o.suppressHydrationWarning&&Zr(r.textContent,u,e),i=["children",""+u]):s.hasOwnProperty(l)&&null!=u&&"onScroll"===l&&Pr("scroll",r)}switch(n){case"input":V(r),J(r,o,!0);break;case"textarea":V(r),oe(r);break;case"select":case"option":break;default:"function"==typeof o.onClick&&(r.onclick=Jr)}r=i,t.updateQueue=r,null!==r&&(t.flags|=4)}else{l=9===i.nodeType?i:i.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=se(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=l.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),"select"===n&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[hi]=t,e[pi]=r,Os(e,t,!1,!1),t.stateNode=e;e:{switch(l=ye(n,r),n){case"dialog":Pr("cancel",e),Pr("close",e),i=r;break;case"iframe":case"object":case"embed":Pr("load",e),i=r;break;case"video":case"audio":for(i=0;i<Ir.length;i++)Pr(Ir[i],e);i=r;break;case"source":Pr("error",e),i=r;break;case"img":case"image":case"link":Pr("error",e),Pr("load",e),i=r;break;case"details":Pr("toggle",e),i=r;break;case"input":X(e,r),i=K(e,r),Pr("invalid",e);break;case"option":default:i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=B({},r,{value:void 0}),Pr("invalid",e);break;case"textarea":ie(e,r),i=re(e,r),Pr("invalid",e)}for(o in ve(n,i),u=i)if(u.hasOwnProperty(o)){var c=u[o];"style"===o?ge(e,c):"dangerouslySetInnerHTML"===o?null!=(c=c?c.__html:void 0)&&de(e,c):"children"===o?"string"==typeof c?("textarea"!==n||""!==c)&&he(e,c):"number"==typeof c&&he(e,""+c):"suppressContentEditableWarning"!==o&&"suppressHydrationWarning"!==o&&"autoFocus"!==o&&(s.hasOwnProperty(o)?null!=c&&"onScroll"===o&&Pr("scroll",e):null!=c&&y(e,o,c,l))}switch(n){case"input":V(e),J(e,r,!1);break;case"textarea":V(e),oe(e);break;case"option":null!=r.value&&e.setAttribute("value",""+Q(r.value));break;case"select":e.multiple=!!r.multiple,null!=(o=r.value)?ne(e,!!r.multiple,o,!1):null!=r.defaultValue&&ne(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof i.onClick&&(e.onclick=Jr)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Vs(t),null;case 6:if(e&&null!=t.stateNode)Ls(e,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(a(166));if(n=Ga($a.current),Ga(Wa.current),da(t)){if(r=t.stateNode,n=t.memoizedProps,r[hi]=t,(o=r.nodeValue!==n)&&null!==(e=na))switch(e.tag){case 3:Zr(r.nodeValue,n,!!(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Zr(r.nodeValue,n,!!(1&e.mode))}o&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[hi]=t,t.stateNode=r}return Vs(t),null;case 13:if(Ti(Ja),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(ia&&null!==ra&&1&t.mode&&!(128&t.flags))ha(),pa(),t.flags|=98560,o=!1;else if(o=da(t),null!==r&&null!==r.dehydrated){if(null===e){if(!o)throw Error(a(318));if(!(o=null!==(o=t.memoizedState)?o.dehydrated:null))throw Error(a(317));o[hi]=t}else pa(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Vs(t),o=!1}else null!==aa&&(ou(aa),aa=null),o=!0;if(!o)return 65536&t.flags?t:null}return 128&t.flags?(t.lanes=n,t):((r=null!==r)!=(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,1&t.mode&&(null===e||1&Ja.current?0===Ll&&(Ll=3):mu())),null!==t.updateQueue&&(t.flags|=4),Vs(t),null);case 4:return Xa(),zs(e,t),null===e&&Fr(t.stateNode.containerInfo),Vs(t),null;case 10:return qa(t.type._context),Vs(t),null;case 19:if(Ti(Ja),null===(o=t.memoizedState))return Vs(t),null;if(r=!!(128&t.flags),null===(l=o.rendering))if(r)Ws(o,!1);else{if(0!==Ll||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(l=eo(e))){for(t.flags|=128,Ws(o,!1),null!==(r=l.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(o=n).flags&=14680066,null===(l=o.alternate)?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=l.childLanes,o.lanes=l.lanes,o.child=l.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=l.memoizedProps,o.memoizedState=l.memoizedState,o.updateQueue=l.updateQueue,o.type=l.type,e=l.dependencies,o.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Ei(Ja,1&Ja.current|2),t.child}e=e.sibling}null!==o.tail&&Ye()>Fl&&(t.flags|=128,r=!0,Ws(o,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=eo(l))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),Ws(o,!0),null===o.tail&&"hidden"===o.tailMode&&!l.alternate&&!ia)return Vs(t),null}else 2*Ye()-o.renderingStartTime>Fl&&1073741824!==n&&(t.flags|=128,r=!0,Ws(o,!1),t.lanes=4194304);o.isBackwards?(l.sibling=t.child,t.child=l):(null!==(n=o.last)?n.sibling=l:t.child=l,o.last=l)}return null!==o.tail?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=Ye(),t.sibling=null,n=Ja.current,Ei(Ja,r?1&n|2:1&n),t):(Vs(t),null);case 22:case 23:return du(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&1&t.mode?!!(1073741824&zl)&&(Vs(t),6&t.subtreeFlags&&(t.flags|=8192)):Vs(t),null;case 24:case 25:return null}throw Error(a(156,t.tag))}function Gs(e,t){switch(ta(t),t.tag){case 1:return zi(t.type)&&Di(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Xa(),Ti(Mi),Ti(Ai),no(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 5:return Za(t),null;case 13:if(Ti(Ja),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(a(340));pa()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Ti(Ja),null;case 4:return Xa(),null;case 10:return qa(t.type._context),null;case 22:case 23:return du(),null;default:return null}}Os=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},zs=function(){},Ds=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,Ga(Wa.current);var a,o=null;switch(n){case"input":i=K(e,i),r=K(e,r),o=[];break;case"select":i=B({},i,{value:void 0}),r=B({},r,{value:void 0}),o=[];break;case"textarea":i=re(e,i),r=re(e,r),o=[];break;default:"function"!=typeof i.onClick&&"function"==typeof r.onClick&&(e.onclick=Jr)}for(c in ve(n,r),n=null,i)if(!r.hasOwnProperty(c)&&i.hasOwnProperty(c)&&null!=i[c])if("style"===c){var l=i[c];for(a in l)l.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else"dangerouslySetInnerHTML"!==c&&"children"!==c&&"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(s.hasOwnProperty(c)?o||(o=[]):(o=o||[]).push(c,null));for(c in r){var u=r[c];if(l=null!=i?i[c]:void 0,r.hasOwnProperty(c)&&u!==l&&(null!=u||null!=l))if("style"===c)if(l){for(a in l)!l.hasOwnProperty(a)||u&&u.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in u)u.hasOwnProperty(a)&&l[a]!==u[a]&&(n||(n={}),n[a]=u[a])}else n||(o||(o=[]),o.push(c,n)),n=u;else"dangerouslySetInnerHTML"===c?(u=u?u.__html:void 0,l=l?l.__html:void 0,null!=u&&l!==u&&(o=o||[]).push(c,u)):"children"===c?"string"!=typeof u&&"number"!=typeof u||(o=o||[]).push(c,""+u):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&(s.hasOwnProperty(c)?(null!=u&&"onScroll"===c&&Pr("scroll",e),o||l===u||(o=[])):(o=o||[]).push(c,u))}n&&(o=o||[]).push("style",n);var c=o;(t.updateQueue=c)&&(t.flags|=4)}},Ls=function(e,t,n,r){n!==r&&(t.flags|=4)};var Ks=!1,Xs=!1,Ys="function"==typeof WeakSet?WeakSet:Set,Zs=null;function Js(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){Cu(e,t,n)}else n.current=null}function el(e,t,n){try{n()}catch(n){Cu(e,t,n)}}var tl=!1;function nl(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var i=r=r.next;do{if((i.tag&e)===e){var a=i.destroy;i.destroy=void 0,void 0!==a&&el(t,n,a)}i=i.next}while(i!==r)}}function rl(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function il(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"==typeof t?t(e):t.current=e}}function al(e){var t=e.alternate;null!==t&&(e.alternate=null,al(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&null!==(t=e.stateNode)&&(delete t[hi],delete t[pi],delete t[mi],delete t[gi],delete t[bi]),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function ol(e){return 5===e.tag||3===e.tag||4===e.tag}function sl(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||ol(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function ll(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=Jr));else if(4!==r&&null!==(e=e.child))for(ll(e,t,n),e=e.sibling;null!==e;)ll(e,t,n),e=e.sibling}function ul(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(ul(e,t,n),e=e.sibling;null!==e;)ul(e,t,n),e=e.sibling}var cl=null,dl=!1;function hl(e,t,n){for(n=n.child;null!==n;)pl(e,t,n),n=n.sibling}function pl(e,t,n){if(at&&"function"==typeof at.onCommitFiberUnmount)try{at.onCommitFiberUnmount(it,n)}catch(e){}switch(n.tag){case 5:Xs||Js(n,t);case 6:var r=cl,i=dl;cl=null,hl(e,t,n),dl=i,null!==(cl=r)&&(dl?(e=cl,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):cl.removeChild(n.stateNode));break;case 18:null!==cl&&(dl?(e=cl,n=n.stateNode,8===e.nodeType?li(e.parentNode,n):1===e.nodeType&&li(e,n),Ft(e)):li(cl,n.stateNode));break;case 4:r=cl,i=dl,cl=n.stateNode.containerInfo,dl=!0,hl(e,t,n),cl=r,dl=i;break;case 0:case 11:case 14:case 15:if(!Xs&&null!==(r=n.updateQueue)&&null!==(r=r.lastEffect)){i=r=r.next;do{var a=i,o=a.destroy;a=a.tag,void 0!==o&&(2&a||4&a)&&el(n,t,o),i=i.next}while(i!==r)}hl(e,t,n);break;case 1:if(!Xs&&(Js(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){Cu(n,t,e)}hl(e,t,n);break;case 21:hl(e,t,n);break;case 22:1&n.mode?(Xs=(r=Xs)||null!==n.memoizedState,hl(e,t,n),Xs=r):hl(e,t,n);break;default:hl(e,t,n)}}function fl(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Ys),t.forEach(function(t){var r=Au.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))})}}function ml(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var i=n[r];try{var o=e,s=t,l=s;e:for(;null!==l;){switch(l.tag){case 5:cl=l.stateNode,dl=!1;break e;case 3:case 4:cl=l.stateNode.containerInfo,dl=!0;break e}l=l.return}if(null===cl)throw Error(a(160));pl(o,s,i),cl=null,dl=!1;var u=i.alternate;null!==u&&(u.return=null),i.return=null}catch(e){Cu(i,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)gl(t,e),t=t.sibling}function gl(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(ml(t,e),bl(e),4&r){try{nl(3,e,e.return),rl(3,e)}catch(t){Cu(e,e.return,t)}try{nl(5,e,e.return)}catch(t){Cu(e,e.return,t)}}break;case 1:ml(t,e),bl(e),512&r&&null!==n&&Js(n,n.return);break;case 5:if(ml(t,e),bl(e),512&r&&null!==n&&Js(n,n.return),32&e.flags){var i=e.stateNode;try{he(i,"")}catch(t){Cu(e,e.return,t)}}if(4&r&&null!=(i=e.stateNode)){var o=e.memoizedProps,s=null!==n?n.memoizedProps:o,l=e.type,u=e.updateQueue;if(e.updateQueue=null,null!==u)try{"input"===l&&"radio"===o.type&&null!=o.name&&Y(i,o),ye(l,s);var c=ye(l,o);for(s=0;s<u.length;s+=2){var d=u[s],h=u[s+1];"style"===d?ge(i,h):"dangerouslySetInnerHTML"===d?de(i,h):"children"===d?he(i,h):y(i,d,h,c)}switch(l){case"input":Z(i,o);break;case"textarea":ae(i,o);break;case"select":var p=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!o.multiple;var f=o.value;null!=f?ne(i,!!o.multiple,f,!1):p!==!!o.multiple&&(null!=o.defaultValue?ne(i,!!o.multiple,o.defaultValue,!0):ne(i,!!o.multiple,o.multiple?[]:"",!1))}i[pi]=o}catch(t){Cu(e,e.return,t)}}break;case 6:if(ml(t,e),bl(e),4&r){if(null===e.stateNode)throw Error(a(162));i=e.stateNode,o=e.memoizedProps;try{i.nodeValue=o}catch(t){Cu(e,e.return,t)}}break;case 3:if(ml(t,e),bl(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{Ft(t.containerInfo)}catch(t){Cu(e,e.return,t)}break;case 4:default:ml(t,e),bl(e);break;case 13:ml(t,e),bl(e),8192&(i=e.child).flags&&(o=null!==i.memoizedState,i.stateNode.isHidden=o,!o||null!==i.alternate&&null!==i.alternate.memoizedState||(Hl=Ye())),4&r&&fl(e);break;case 22:if(d=null!==n&&null!==n.memoizedState,1&e.mode?(Xs=(c=Xs)||d,ml(t,e),Xs=c):ml(t,e),bl(e),8192&r){if(c=null!==e.memoizedState,(e.stateNode.isHidden=c)&&!d&&1&e.mode)for(Zs=e,d=e.child;null!==d;){for(h=Zs=d;null!==Zs;){switch(f=(p=Zs).child,p.tag){case 0:case 11:case 14:case 15:nl(4,p,p.return);break;case 1:Js(p,p.return);var m=p.stateNode;if("function"==typeof m.componentWillUnmount){r=p,n=p.return;try{t=r,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(e){Cu(r,n,e)}}break;case 5:Js(p,p.return);break;case 22:if(null!==p.memoizedState){wl(h);continue}}null!==f?(f.return=p,Zs=f):wl(h)}d=d.sibling}e:for(d=null,h=e;;){if(5===h.tag){if(null===d){d=h;try{i=h.stateNode,c?"function"==typeof(o=i.style).setProperty?o.setProperty("display","none","important"):o.display="none":(l=h.stateNode,s=null!=(u=h.memoizedProps.style)&&u.hasOwnProperty("display")?u.display:null,l.style.display=me("display",s))}catch(t){Cu(e,e.return,t)}}}else if(6===h.tag){if(null===d)try{h.stateNode.nodeValue=c?"":h.memoizedProps}catch(t){Cu(e,e.return,t)}}else if((22!==h.tag&&23!==h.tag||null===h.memoizedState||h===e)&&null!==h.child){h.child.return=h,h=h.child;continue}if(h===e)break e;for(;null===h.sibling;){if(null===h.return||h.return===e)break e;d===h&&(d=null),h=h.return}d===h&&(d=null),h.sibling.return=h.return,h=h.sibling}}break;case 19:ml(t,e),bl(e),4&r&&fl(e);case 21:}}function bl(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(ol(n)){var r=n;break e}n=n.return}throw Error(a(160))}switch(r.tag){case 5:var i=r.stateNode;32&r.flags&&(he(i,""),r.flags&=-33),ul(e,sl(e),i);break;case 3:case 4:var o=r.stateNode.containerInfo;ll(e,sl(e),o);break;default:throw Error(a(161))}}catch(t){Cu(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function vl(e,t,n){Zs=e,yl(e,t,n)}function yl(e,t,n){for(var r=!!(1&e.mode);null!==Zs;){var i=Zs,a=i.child;if(22===i.tag&&r){var o=null!==i.memoizedState||Ks;if(!o){var s=i.alternate,l=null!==s&&null!==s.memoizedState||Xs;s=Ks;var u=Xs;if(Ks=o,(Xs=l)&&!u)for(Zs=i;null!==Zs;)l=(o=Zs).child,22===o.tag&&null!==o.memoizedState?kl(i):null!==l?(l.return=o,Zs=l):kl(i);for(;null!==a;)Zs=a,yl(a,t,n),a=a.sibling;Zs=i,Ks=s,Xs=u}xl(e)}else 8772&i.subtreeFlags&&null!==a?(a.return=i,Zs=a):xl(e)}}function xl(e){for(;null!==Zs;){var t=Zs;if(8772&t.flags){var n=t.alternate;try{if(8772&t.flags)switch(t.tag){case 0:case 11:case 15:Xs||rl(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!Xs)if(null===n)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:ns(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;null!==o&&Ua(t,o,r);break;case 3:var s=t.updateQueue;if(null!==s){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}Ua(t,s,n)}break;case 5:var l=t.stateNode;if(null===n&&4&t.flags){n=l;var u=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":u.autoFocus&&n.focus();break;case"img":u.src&&(n.src=u.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var c=t.alternate;if(null!==c){var d=c.memoizedState;if(null!==d){var h=d.dehydrated;null!==h&&Ft(h)}}}break;default:throw Error(a(163))}Xs||512&t.flags&&il(t)}catch(e){Cu(t,t.return,e)}}if(t===e){Zs=null;break}if(null!==(n=t.sibling)){n.return=t.return,Zs=n;break}Zs=t.return}}function wl(e){for(;null!==Zs;){var t=Zs;if(t===e){Zs=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Zs=n;break}Zs=t.return}}function kl(e){for(;null!==Zs;){var t=Zs;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{rl(4,t)}catch(e){Cu(t,n,e)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var i=t.return;try{r.componentDidMount()}catch(e){Cu(t,i,e)}}var a=t.return;try{il(t)}catch(e){Cu(t,a,e)}break;case 5:var o=t.return;try{il(t)}catch(e){Cu(t,o,e)}}}catch(e){Cu(t,t.return,e)}if(t===e){Zs=null;break}var s=t.sibling;if(null!==s){s.return=t.return,Zs=s;break}Zs=t.return}}var Sl,Cl=Math.ceil,Tl=x.ReactCurrentDispatcher,El=x.ReactCurrentOwner,ql=x.ReactCurrentBatchConfig,Al=0,Ml=null,Nl=null,Ol=0,zl=0,Dl=Ci(0),Ll=0,Il=null,_l=0,Bl=0,Rl=0,Pl=null,jl=null,Hl=0,Fl=1/0,Ul=null,Ql=!1,Wl=null,Vl=null,$l=!1,Gl=null,Kl=0,Xl=0,Yl=null,Zl=-1,Jl=0;function eu(){return 6&Al?Ye():-1!==Zl?Zl:Zl=Ye()}function tu(e){return 1&e.mode?2&Al&&0!==Ol?Ol&-Ol:null!==ma.transition?(0===Jl&&(Jl=mt()),Jl):0!==(e=yt)?e:e=void 0===(e=window.event)?16:Xt(e.type):1}function nu(e,t,n,r){if(50<Xl)throw Xl=0,Yl=null,Error(a(185));bt(e,n,r),2&Al&&e===Ml||(e===Ml&&(!(2&Al)&&(Bl|=n),4===Ll&&su(e,Ol)),ru(e,r),1===n&&0===Al&&!(1&t.mode)&&(Fl=Ye()+500,Pi&&Fi()))}function ru(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes;0<a;){var o=31-ot(a),s=1<<o,l=i[o];-1===l?0!==(s&n)&&0===(s&r)||(i[o]=pt(s,t)):l<=t&&(e.expiredLanes|=s),a&=~s}}(e,t);var r=ht(e,e===Ml?Ol:0);if(0===r)null!==n&&Ge(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&Ge(n),1===t)0===e.tag?function(e){Pi=!0,Hi(e)}(lu.bind(null,e)):Hi(lu.bind(null,e)),oi(function(){!(6&Al)&&Fi()}),n=null;else{switch(xt(r)){case 1:n=Je;break;case 4:n=et;break;case 16:default:n=tt;break;case 536870912:n=rt}n=Mu(n,iu.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function iu(e,t){if(Zl=-1,Jl=0,6&Al)throw Error(a(327));var n=e.callbackNode;if(ku()&&e.callbackNode!==n)return null;var r=ht(e,e===Ml?Ol:0);if(0===r)return null;if(30&r||0!==(r&e.expiredLanes)||t)t=gu(e,r);else{t=r;var i=Al;Al|=2;var o=fu();for(Ml===e&&Ol===t||(Ul=null,Fl=Ye()+500,hu(e,t));;)try{vu();break}catch(t){pu(e,t)}Ea(),Tl.current=o,Al=i,null!==Nl?t=0:(Ml=null,Ol=0,t=Ll)}if(0!==t){if(2===t&&0!==(i=ft(e))&&(r=i,t=au(e,i)),1===t)throw n=Il,hu(e,0),su(e,r),ru(e,Ye()),n;if(6===t)su(e,r);else{if(i=e.current.alternate,!(30&r||function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var i=n[r],a=i.getSnapshot;i=i.value;try{if(!sr(a(),i))return!1}catch(e){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(i)||(t=gu(e,r),2===t&&(o=ft(e),0!==o&&(r=o,t=au(e,o))),1!==t)))throw n=Il,hu(e,0),su(e,r),ru(e,Ye()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(a(345));case 2:case 5:wu(e,jl,Ul);break;case 3:if(su(e,r),(130023424&r)===r&&10<(t=Hl+500-Ye())){if(0!==ht(e,0))break;if(((i=e.suspendedLanes)&r)!==r){eu(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=ri(wu.bind(null,e,jl,Ul),t);break}wu(e,jl,Ul);break;case 4:if(su(e,r),(4194240&r)===r)break;for(t=e.eventTimes,i=-1;0<r;){var s=31-ot(r);o=1<<s,(s=t[s])>i&&(i=s),r&=~o}if(r=i,10<(r=(120>(r=Ye()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Cl(r/1960))-r)){e.timeoutHandle=ri(wu.bind(null,e,jl,Ul),r);break}wu(e,jl,Ul);break;default:throw Error(a(329))}}}return ru(e,Ye()),e.callbackNode===n?iu.bind(null,e):null}function au(e,t){var n=Pl;return e.current.memoizedState.isDehydrated&&(hu(e,t).flags|=256),2!==(e=gu(e,t))&&(t=jl,jl=n,null!==t&&ou(t)),e}function ou(e){null===jl?jl=e:jl.push.apply(jl,e)}function su(e,t){for(t&=~Rl,t&=~Bl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-ot(t),r=1<<n;e[n]=-1,t&=~r}}function lu(e){if(6&Al)throw Error(a(327));ku();var t=ht(e,0);if(!(1&t))return ru(e,Ye()),null;var n=gu(e,t);if(0!==e.tag&&2===n){var r=ft(e);0!==r&&(t=r,n=au(e,r))}if(1===n)throw n=Il,hu(e,0),su(e,t),ru(e,Ye()),n;if(6===n)throw Error(a(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,wu(e,jl,Ul),ru(e,Ye()),null}function uu(e,t){var n=Al;Al|=1;try{return e(t)}finally{0===(Al=n)&&(Fl=Ye()+500,Pi&&Fi())}}function cu(e){null!==Gl&&0===Gl.tag&&!(6&Al)&&ku();var t=Al;Al|=1;var n=ql.transition,r=yt;try{if(ql.transition=null,yt=1,e)return e()}finally{yt=r,ql.transition=n,!(6&(Al=t))&&Fi()}}function du(){zl=Dl.current,Ti(Dl)}function hu(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,ii(n)),null!==Nl)for(n=Nl.return;null!==n;){var r=n;switch(ta(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&Di();break;case 3:Xa(),Ti(Mi),Ti(Ai),no();break;case 5:Za(r);break;case 4:Xa();break;case 13:case 19:Ti(Ja);break;case 10:qa(r.type._context);break;case 22:case 23:du()}n=n.return}if(Ml=e,Nl=e=Du(e.current,null),Ol=zl=t,Ll=0,Il=null,Rl=Bl=_l=0,jl=Pl=null,null!==Oa){for(t=0;t<Oa.length;t++)if(null!==(r=(n=Oa[t]).interleaved)){n.interleaved=null;var i=r.next,a=n.pending;if(null!==a){var o=a.next;a.next=i,r.next=o}n.pending=r}Oa=null}return e}function pu(e,t){for(;;){var n=Nl;try{if(Ea(),ro.current=Zo,uo){for(var r=oo.memoizedState;null!==r;){var i=r.queue;null!==i&&(i.pending=null),r=r.next}uo=!1}if(ao=0,lo=so=oo=null,co=!1,ho=0,El.current=null,null===n||null===n.return){Ll=1,Il=t,Nl=null;break}e:{var o=e,s=n.return,l=n,u=t;if(t=Ol,l.flags|=32768,null!==u&&"object"==typeof u&&"function"==typeof u.then){var c=u,d=l,h=d.tag;if(!(1&d.mode||0!==h&&11!==h&&15!==h)){var p=d.alternate;p?(d.updateQueue=p.updateQueue,d.memoizedState=p.memoizedState,d.lanes=p.lanes):(d.updateQueue=null,d.memoizedState=null)}var f=gs(s);if(null!==f){f.flags&=-257,bs(f,s,l,0,t),1&f.mode&&ms(o,c,t),u=c;var m=(t=f).updateQueue;if(null===m){var g=new Set;g.add(u),t.updateQueue=g}else m.add(u);break e}if(!(1&t)){ms(o,c,t),mu();break e}u=Error(a(426))}else if(ia&&1&l.mode){var b=gs(s);if(null!==b){!(65536&b.flags)&&(b.flags|=256),bs(b,s,l,0,t),fa(us(u,l));break e}}o=u=us(u,l),4!==Ll&&(Ll=2),null===Pl?Pl=[o]:Pl.push(o),o=s;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t,Ha(o,ps(0,u,t));break e;case 1:l=u;var v=o.type,y=o.stateNode;if(!(128&o.flags||"function"!=typeof v.getDerivedStateFromError&&(null===y||"function"!=typeof y.componentDidCatch||null!==Vl&&Vl.has(y)))){o.flags|=65536,t&=-t,o.lanes|=t,Ha(o,fs(o,l,t));break e}}o=o.return}while(null!==o)}xu(n)}catch(e){t=e,Nl===n&&null!==n&&(Nl=n=n.return);continue}break}}function fu(){var e=Tl.current;return Tl.current=Zo,null===e?Zo:e}function mu(){0!==Ll&&3!==Ll&&2!==Ll||(Ll=4),null===Ml||!(268435455&_l)&&!(268435455&Bl)||su(Ml,Ol)}function gu(e,t){var n=Al;Al|=2;var r=fu();for(Ml===e&&Ol===t||(Ul=null,hu(e,t));;)try{bu();break}catch(t){pu(e,t)}if(Ea(),Al=n,Tl.current=r,null!==Nl)throw Error(a(261));return Ml=null,Ol=0,Ll}function bu(){for(;null!==Nl;)yu(Nl)}function vu(){for(;null!==Nl&&!Ke();)yu(Nl)}function yu(e){var t=Sl(e.alternate,e,zl);e.memoizedProps=e.pendingProps,null===t?xu(e):Nl=t,El.current=null}function xu(e){var t=e;do{var n=t.alternate;if(e=t.return,32768&t.flags){if(null!==(n=Gs(n,t)))return n.flags&=32767,void(Nl=n);if(null===e)return Ll=6,void(Nl=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}else if(null!==(n=$s(n,t,zl)))return void(Nl=n);if(null!==(t=t.sibling))return void(Nl=t);Nl=t=e}while(null!==t);0===Ll&&(Ll=5)}function wu(e,t,n){var r=yt,i=ql.transition;try{ql.transition=null,yt=1,function(e,t,n,r){do{ku()}while(null!==Gl);if(6&Al)throw Error(a(327));n=e.finishedWork;var i=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(a(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-ot(n),a=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~a}}(e,o),e===Ml&&(Nl=Ml=null,Ol=0),!(2064&n.subtreeFlags)&&!(2064&n.flags)||$l||($l=!0,Mu(tt,function(){return ku(),null})),o=!!(15990&n.flags),15990&n.subtreeFlags||o){o=ql.transition,ql.transition=null;var s=yt;yt=1;var l=Al;Al|=4,El.current=null,function(e,t){if(ei=Qt,pr(e=hr())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch(e){n=null;break e}var s=0,l=-1,u=-1,c=0,d=0,h=e,p=null;t:for(;;){for(var f;h!==n||0!==i&&3!==h.nodeType||(l=s+i),h!==o||0!==r&&3!==h.nodeType||(u=s+r),3===h.nodeType&&(s+=h.nodeValue.length),null!==(f=h.firstChild);)p=h,h=f;for(;;){if(h===e)break t;if(p===n&&++c===i&&(l=s),p===o&&++d===r&&(u=s),null!==(f=h.nextSibling))break;p=(h=p).parentNode}h=f}n=-1===l||-1===u?null:{start:l,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(ti={focusedElem:e,selectionRange:n},Qt=!1,Zs=t;null!==Zs;)if(e=(t=Zs).child,1028&t.subtreeFlags&&null!==e)e.return=t,Zs=e;else for(;null!==Zs;){t=Zs;try{var m=t.alternate;if(1024&t.flags)switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==m){var g=m.memoizedProps,b=m.memoizedState,v=t.stateNode,y=v.getSnapshotBeforeUpdate(t.elementType===t.type?g:ns(t.type,g),b);v.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var x=t.stateNode.containerInfo;1===x.nodeType?x.textContent="":9===x.nodeType&&x.documentElement&&x.removeChild(x.documentElement);break;default:throw Error(a(163))}}catch(e){Cu(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,Zs=e;break}Zs=t.return}m=tl,tl=!1}(e,n),gl(n,e),fr(ti),Qt=!!ei,ti=ei=null,e.current=n,vl(n,e,i),Xe(),Al=l,yt=s,ql.transition=o}else e.current=n;if($l&&($l=!1,Gl=e,Kl=i),0===(o=e.pendingLanes)&&(Vl=null),function(e){if(at&&"function"==typeof at.onCommitFiberRoot)try{at.onCommitFiberRoot(it,e,void 0,!(128&~e.current.flags))}catch(e){}}(n.stateNode),ru(e,Ye()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)r((i=t[n]).value,{componentStack:i.stack,digest:i.digest});if(Ql)throw Ql=!1,e=Wl,Wl=null,e;!!(1&Kl)&&0!==e.tag&&ku(),1&(o=e.pendingLanes)?e===Yl?Xl++:(Xl=0,Yl=e):Xl=0,Fi()}(e,t,n,r)}finally{ql.transition=i,yt=r}return null}function ku(){if(null!==Gl){var e=xt(Kl),t=ql.transition,n=yt;try{if(ql.transition=null,yt=16>e?16:e,null===Gl)var r=!1;else{if(e=Gl,Gl=null,Kl=0,6&Al)throw Error(a(331));var i=Al;for(Al|=4,Zs=e.current;null!==Zs;){var o=Zs,s=o.child;if(16&Zs.flags){var l=o.deletions;if(null!==l){for(var u=0;u<l.length;u++){var c=l[u];for(Zs=c;null!==Zs;){var d=Zs;switch(d.tag){case 0:case 11:case 15:nl(8,d,o)}var h=d.child;if(null!==h)h.return=d,Zs=h;else for(;null!==Zs;){var p=(d=Zs).sibling,f=d.return;if(al(d),d===c){Zs=null;break}if(null!==p){p.return=f,Zs=p;break}Zs=f}}}var m=o.alternate;if(null!==m){var g=m.child;if(null!==g){m.child=null;do{var b=g.sibling;g.sibling=null,g=b}while(null!==g)}}Zs=o}}if(2064&o.subtreeFlags&&null!==s)s.return=o,Zs=s;else e:for(;null!==Zs;){if(2048&(o=Zs).flags)switch(o.tag){case 0:case 11:case 15:nl(9,o,o.return)}var v=o.sibling;if(null!==v){v.return=o.return,Zs=v;break e}Zs=o.return}}var y=e.current;for(Zs=y;null!==Zs;){var x=(s=Zs).child;if(2064&s.subtreeFlags&&null!==x)x.return=s,Zs=x;else e:for(s=y;null!==Zs;){if(2048&(l=Zs).flags)try{switch(l.tag){case 0:case 11:case 15:rl(9,l)}}catch(e){Cu(l,l.return,e)}if(l===s){Zs=null;break e}var w=l.sibling;if(null!==w){w.return=l.return,Zs=w;break e}Zs=l.return}}if(Al=i,Fi(),at&&"function"==typeof at.onPostCommitFiberRoot)try{at.onPostCommitFiberRoot(it,e)}catch(e){}r=!0}return r}finally{yt=n,ql.transition=t}}return!1}function Su(e,t,n){e=Pa(e,t=ps(0,t=us(n,t),1),1),t=eu(),null!==e&&(bt(e,1,t),ru(e,t))}function Cu(e,t,n){if(3===e.tag)Su(e,e,n);else for(;null!==t;){if(3===t.tag){Su(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Vl||!Vl.has(r))){t=Pa(t,e=fs(t,e=us(n,e),1),1),e=eu(),null!==t&&(bt(t,1,e),ru(t,e));break}}t=t.return}}function Tu(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=eu(),e.pingedLanes|=e.suspendedLanes&n,Ml===e&&(Ol&n)===n&&(4===Ll||3===Ll&&(130023424&Ol)===Ol&&500>Ye()-Hl?hu(e,0):Rl|=n),ru(e,t)}function Eu(e,t){0===t&&(1&e.mode?(t=ct,!(130023424&(ct<<=1))&&(ct=4194304)):t=1);var n=eu();null!==(e=La(e,t))&&(bt(e,t,n),ru(e,n))}function qu(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Eu(e,n)}function Au(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;null!==i&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(a(314))}null!==r&&r.delete(t),Eu(e,n)}function Mu(e,t){return $e(e,t)}function Nu(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ou(e,t,n,r){return new Nu(e,t,n,r)}function zu(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Du(e,t){var n=e.alternate;return null===n?((n=Ou(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Lu(e,t,n,r,i,o){var s=2;if(r=e,"function"==typeof e)zu(e)&&(s=1);else if("string"==typeof e)s=5;else e:switch(e){case S:return Iu(n.children,i,o,t);case C:s=8,i|=8;break;case T:return(e=Ou(12,n,t,2|i)).elementType=T,e.lanes=o,e;case M:return(e=Ou(13,n,t,i)).elementType=M,e.lanes=o,e;case N:return(e=Ou(19,n,t,i)).elementType=N,e.lanes=o,e;case D:return _u(n,i,o,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case E:s=10;break e;case q:s=9;break e;case A:s=11;break e;case O:s=14;break e;case z:s=16,r=null;break e}throw Error(a(130,null==e?e:typeof e,""))}return(t=Ou(s,n,t,i)).elementType=e,t.type=r,t.lanes=o,t}function Iu(e,t,n,r){return(e=Ou(7,e,r,t)).lanes=n,e}function _u(e,t,n,r){return(e=Ou(22,e,r,t)).elementType=D,e.lanes=n,e.stateNode={isHidden:!1},e}function Bu(e,t,n){return(e=Ou(6,e,null,t)).lanes=n,e}function Ru(e,t,n){return(t=Ou(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Pu(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=gt(0),this.expirationTimes=gt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=gt(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function ju(e,t,n,r,i,a,o,s,l){return e=new Pu(e,t,n,s,l),1===t?(t=1,!0===a&&(t|=8)):t=0,a=Ou(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},_a(a),e}function Hu(e){if(!e)return qi;e:{if(Fe(e=e._reactInternals)!==e||1!==e.tag)throw Error(a(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(zi(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(a(171))}if(1===e.tag){var n=e.type;if(zi(n))return Ii(e,n,t)}return t}function Fu(e,t,n,r,i,a,o,s,l){return(e=ju(n,r,!0,e,0,a,0,s,l)).context=Hu(null),n=e.current,(a=Ra(r=eu(),i=tu(n))).callback=null!=t?t:null,Pa(n,a,i),e.current.lanes=i,bt(e,i,r),ru(e,r),e}function Uu(e,t,n,r){var i=t.current,a=eu(),o=tu(i);return n=Hu(n),null===t.context?t.context=n:t.pendingContext=n,(t=Ra(a,o)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Pa(i,t,o))&&(nu(e,i,o,a),ja(e,i,o)),o}function Qu(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Wu(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Vu(e,t){Wu(e,t),(e=e.alternate)&&Wu(e,t)}Sl=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||Mi.current)ys=!0;else{if(0===(e.lanes&n)&&!(128&t.flags))return ys=!1,function(e,t,n){switch(t.tag){case 3:Ms(t),pa();break;case 5:Ya(t);break;case 1:zi(t.type)&&_i(t);break;case 4:Ka(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;Ei(ka,r._currentValue),r._currentValue=i;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(Ei(Ja,1&Ja.current),t.flags|=128,null):0!==(n&t.child.childLanes)?Bs(e,t,n):(Ei(Ja,1&Ja.current),null!==(e=Qs(e,t,n))?e.sibling:null);Ei(Ja,1&Ja.current);break;case 19:if(r=0!==(n&t.childLanes),128&e.flags){if(r)return Fs(e,t,n);t.flags|=128}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null,i.lastEffect=null),Ei(Ja,Ja.current),r)break;return null;case 22:case 23:return t.lanes=0,Cs(e,t,n)}return Qs(e,t,n)}(e,t,n);ys=!!(131072&e.flags)}else ys=!1,ia&&1048576&t.flags&&Ji(t,Vi,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Us(e,t),e=t.pendingProps;var i=Oi(t,Ai.current);Ma(t,n),i=go(null,t,r,e,i,n);var o=bo();return t.flags|=1,"object"==typeof i&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,zi(r)?(o=!0,_i(t)):o=!1,t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,_a(t),i.updater=is,t.stateNode=i,i._reactInternals=t,ls(t,r,e,n),t=As(null,t,r,!0,o,n)):(t.tag=0,ia&&o&&ea(t),xs(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Us(e,t),e=t.pendingProps,r=(i=r._init)(r._payload),t.type=r,i=t.tag=function(e){if("function"==typeof e)return zu(e)?1:0;if(null!=e){if((e=e.$$typeof)===A)return 11;if(e===O)return 14}return 2}(r),e=ns(r,e),i){case 0:t=Es(null,t,r,e,n);break e;case 1:t=qs(null,t,r,e,n);break e;case 11:t=ws(null,t,r,e,n);break e;case 14:t=ks(null,t,r,ns(r.type,e),n);break e}throw Error(a(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,Es(e,t,r,i=t.elementType===r?i:ns(r,i),n);case 1:return r=t.type,i=t.pendingProps,qs(e,t,r,i=t.elementType===r?i:ns(r,i),n);case 3:e:{if(Ms(t),null===e)throw Error(a(387));r=t.pendingProps,i=(o=t.memoizedState).element,Ba(e,t),Fa(t,r,null,n);var s=t.memoizedState;if(r=s.element,o.isDehydrated){if(o={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=o,t.memoizedState=o,256&t.flags){t=Ns(e,t,r,n,i=us(Error(a(423)),t));break e}if(r!==i){t=Ns(e,t,r,n,i=us(Error(a(424)),t));break e}for(ra=ui(t.stateNode.containerInfo.firstChild),na=t,ia=!0,aa=null,n=wa(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(pa(),r===i){t=Qs(e,t,n);break e}xs(e,t,r,n)}t=t.child}return t;case 5:return Ya(t),null===e&&ua(t),r=t.type,i=t.pendingProps,o=null!==e?e.memoizedProps:null,s=i.children,ni(r,i)?s=null:null!==o&&ni(r,o)&&(t.flags|=32),Ts(e,t),xs(e,t,s,n),t.child;case 6:return null===e&&ua(t),null;case 13:return Bs(e,t,n);case 4:return Ka(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=xa(t,null,r,n):xs(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,ws(e,t,r,i=t.elementType===r?i:ns(r,i),n);case 7:return xs(e,t,t.pendingProps,n),t.child;case 8:case 12:return xs(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,s=i.value,Ei(ka,r._currentValue),r._currentValue=s,null!==o)if(sr(o.value,s)){if(o.children===i.children&&!Mi.current){t=Qs(e,t,n);break e}}else for(null!==(o=t.child)&&(o.return=t);null!==o;){var l=o.dependencies;if(null!==l){s=o.child;for(var u=l.firstContext;null!==u;){if(u.context===r){if(1===o.tag){(u=Ra(-1,n&-n)).tag=2;var c=o.updateQueue;if(null!==c){var d=(c=c.shared).pending;null===d?u.next=u:(u.next=d.next,d.next=u),c.pending=u}}o.lanes|=n,null!==(u=o.alternate)&&(u.lanes|=n),Aa(o.return,n,t),l.lanes|=n;break}u=u.next}}else if(10===o.tag)s=o.type===t.type?null:o.child;else if(18===o.tag){if(null===(s=o.return))throw Error(a(341));s.lanes|=n,null!==(l=s.alternate)&&(l.lanes|=n),Aa(s,n,t),s=o.sibling}else s=o.child;if(null!==s)s.return=o;else for(s=o;null!==s;){if(s===t){s=null;break}if(null!==(o=s.sibling)){o.return=s.return,s=o;break}s=s.return}o=s}xs(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Ma(t,n),r=r(i=Na(i)),t.flags|=1,xs(e,t,r,n),t.child;case 14:return i=ns(r=t.type,t.pendingProps),ks(e,t,r,i=ns(r.type,i),n);case 15:return Ss(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:ns(r,i),Us(e,t),t.tag=1,zi(r)?(e=!0,_i(t)):e=!1,Ma(t,n),os(t,r,i),ls(t,r,i,n),As(null,t,r,!0,e,n);case 19:return Fs(e,t,n);case 22:return Cs(e,t,n)}throw Error(a(156,t.tag))};var $u="function"==typeof reportError?reportError:function(e){console.error(e)};function Gu(e){this._internalRoot=e}function Ku(e){this._internalRoot=e}function Xu(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Yu(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Zu(){}function Ju(e,t,n,r,i){var a=n._reactRootContainer;if(a){var o=a;if("function"==typeof i){var s=i;i=function(){var e=Qu(o);s.call(e)}}Uu(t,o,e,i)}else o=function(e,t,n,r,i){if(i){if("function"==typeof r){var a=r;r=function(){var e=Qu(o);a.call(e)}}var o=Fu(t,r,e,0,null,!1,0,"",Zu);return e._reactRootContainer=o,e[fi]=o.current,Fr(8===e.nodeType?e.parentNode:e),cu(),o}for(;i=e.lastChild;)e.removeChild(i);if("function"==typeof r){var s=r;r=function(){var e=Qu(l);s.call(e)}}var l=ju(e,0,!1,null,0,!1,0,"",Zu);return e._reactRootContainer=l,e[fi]=l.current,Fr(8===e.nodeType?e.parentNode:e),cu(function(){Uu(t,l,n,r)}),l}(n,t,e,i,r);return Qu(o)}Ku.prototype.render=Gu.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(a(409));Uu(e,t,null,null)},Ku.prototype.unmount=Gu.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;cu(function(){Uu(null,e,null,null)}),t[fi]=null}},Ku.prototype.unstable_scheduleHydration=function(e){if(e){var t=Ct();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Dt.length&&0!==t&&t<Dt[n].priority;n++);Dt.splice(n,0,e),0===n&&Bt(e)}},wt=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=dt(t.pendingLanes);0!==n&&(vt(t,1|n),ru(t,Ye()),!(6&Al)&&(Fl=Ye()+500,Fi()))}break;case 13:cu(function(){var t=La(e,1);if(null!==t){var n=eu();nu(t,e,1,n)}}),Vu(e,1)}},kt=function(e){if(13===e.tag){var t=La(e,134217728);null!==t&&nu(t,e,134217728,eu()),Vu(e,134217728)}},St=function(e){if(13===e.tag){var t=tu(e),n=La(e,t);null!==n&&nu(n,e,t,eu()),Vu(e,t)}},Ct=function(){return yt},Tt=function(e,t){var n=yt;try{return yt=e,t()}finally{yt=n}},ke=function(e,t,n){switch(t){case"input":if(Z(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=wi(r);if(!i)throw Error(a(90));$(r),Z(r,i)}}}break;case"textarea":ae(e,n);break;case"select":null!=(t=n.value)&&ne(e,!!n.multiple,t,!1)}},Ae=uu,Me=cu;var ec={usingClientEntryPoint:!1,Events:[yi,xi,wi,Ee,qe,uu]},tc={findFiberByHostInstance:vi,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},nc={bundleType:tc.bundleType,version:tc.version,rendererPackageName:tc.rendererPackageName,rendererConfig:tc.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:x.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=We(e))?null:e.stateNode},findFiberByHostInstance:tc.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var rc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!rc.isDisabled&&rc.supportsFiber)try{it=rc.inject(nc),at=rc}catch(ce){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ec,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Xu(t))throw Error(a(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:k,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},t.createRoot=function(e,t){if(!Xu(e))throw Error(a(299));var n=!1,r="",i=$u;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(i=t.onRecoverableError)),t=ju(e,1,!1,null,0,n,0,r,i),e[fi]=t.current,Fr(8===e.nodeType?e.parentNode:e),new Gu(t)},t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(a(188));throw e=Object.keys(e).join(","),Error(a(268,e))}return null===(e=We(t))?null:e.stateNode},t.flushSync=function(e){return cu(e)},t.hydrate=function(e,t,n){if(!Yu(t))throw Error(a(200));return Ju(null,e,t,!0,n)},t.hydrateRoot=function(e,t,n){if(!Xu(e))throw Error(a(405));var r=null!=n&&n.hydratedSources||null,i=!1,o="",s=$u;if(null!=n&&(!0===n.unstable_strictMode&&(i=!0),void 0!==n.identifierPrefix&&(o=n.identifierPrefix),void 0!==n.onRecoverableError&&(s=n.onRecoverableError)),t=Fu(t,null,e,1,null!=n?n:null,i,0,o,s),e[fi]=t.current,Fr(e),r)for(e=0;e<r.length;e++)i=(i=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new Ku(t)},t.render=function(e,t,n){if(!Yu(t))throw Error(a(200));return Ju(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Yu(e))throw Error(a(40));return!!e._reactRootContainer&&(cu(function(){Ju(null,null,e,!1,function(){e._reactRootContainer=null,e[fi]=null})}),!0)},t.unstable_batchedUpdates=uu,t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Yu(n))throw Error(a(200));if(null==e||void 0===e._reactInternals)throw Error(a(38));return Ju(e,t,n,!1,r)},t.version="18.3.1-next-f1338f8080-20240426"},601:e=>{e.exports=function(e){return e[1]}},659:e=>{var t={};e.exports=function(e,n){var r=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e);if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(n)}},748:(e,t,n)=>{var r;n.g,e.exports=(r=n(540),(()=>{var e={991:(e,t,n)=>{n.d(t,{Z:()=>f});var r=n(156),i=n.n(r),a=n(697),o=n.n(a),s=n(700),l=["latex","onChange","config","mathquillDidMount"];function u(){return u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u.apply(this,arguments)}function c(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 d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach(function(t){h(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var p=function(e){var t=e.latex,n=e.onChange,a=e.config,o=e.mathquillDidMount,c=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,l),h=(0,r.useRef)(2),p=(0,r.useRef)(null),f=(0,r.useRef)(null),m=(0,r.useRef)(n);return(0,r.useEffect)(function(){m.current=n},[n]),(0,r.useEffect)(function(){if(f.current){var e={restrictMismatchedBrackets:!0,handlers:{}};a&&(e=d(d({},e),a));var n=e.handlers.edit;e.handlers.edit=function(e){n&&n(),h.current>0?h.current-=1:m.current&&m.current(e)},p.current=s.Z.MathField(f.current,e),p.current.latex(t||""),o&&o(p.current)}},[f]),(0,r.useEffect)(function(){p.current&&p.current.latex()!==t&&p.current.latex(t)},[t]),i().createElement("span",u({},c,{ref:f}))};p.propTypes={latex:o().string,onChange:o().func,config:o().object,mathquillDidMount:o().func};const f=p},717:(e,t,n)=>{n.d(t,{Z:()=>d});var r=n(156),i=n.n(r),a=n(697),o=n.n(a),s=n(700),l=["mathquillDidMount","children"];function u(){return u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u.apply(this,arguments)}var c=function(e){var t=e.mathquillDidMount,n=e.children,a=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,l),o=(0,r.useRef)(null),c=(0,r.useRef)(null);return(0,r.useLayoutEffect)(function(){o&&(c.current=s.Z.StaticMath(o.current),t&&t(c.current))},[o,n]),i().createElement("span",u({},a,{ref:o}),n)};c.propTypes={children:o().string,mathquillDidMount:o().func};const d=c},700:(e,t,n)=>{n.d(t,{Z:()=>r});const r=n(338).getInterface(2)},527:(e,t,n)=>{n.d(t,{Z:()=>s});var r=n(81),i=n.n(r),a=n(645),o=n.n(a)()(i());o.push([e.id,"/*\n * MathQuill v0.11.0, by Han, Jeanine, and Mary\n * http://mathquill.com | maintainers@mathquill.com\n *\n * This Source Code Form is subject to the terms of the\n * Mozilla Public License, v. 2.0. If a copy of the MPL\n * was not distributed with this file, You can obtain\n * one at http://mozilla.org/MPL/2.0/.\n */\n@font-face {\n /* Heavy fonts have been removed */\n font-family: Symbola;\n}\n.mq-editable-field {\n display: -moz-inline-box;\n display: inline-block;\n}\n.mq-editable-field .mq-cursor {\n border-left: 1px solid black;\n margin-left: -1px;\n position: relative;\n z-index: 1;\n padding: 0;\n display: -moz-inline-box;\n display: inline-block;\n}\n.mq-editable-field .mq-cursor.mq-blink {\n visibility: hidden;\n}\n.mq-editable-field,\n.mq-math-mode .mq-editable-field {\n border: 1px solid gray;\n}\n.mq-editable-field.mq-focused,\n.mq-math-mode .mq-editable-field.mq-focused {\n -webkit-box-shadow: #8bd 0 0 1px 2px, inset #6ae 0 0 2px 0;\n -moz-box-shadow: #8bd 0 0 1px 2px, inset #6ae 0 0 2px 0;\n box-shadow: #8bd 0 0 1px 2px, inset #6ae 0 0 2px 0;\n border-color: #709AC0;\n border-radius: 1px;\n}\n.mq-math-mode .mq-editable-field {\n margin: 1px;\n}\n.mq-editable-field .mq-latex-command-input {\n color: inherit;\n font-family: \"Courier New\", monospace;\n border: 1px solid gray;\n padding-right: 1px;\n margin-right: 1px;\n margin-left: 2px;\n}\n.mq-editable-field .mq-latex-command-input.mq-empty {\n background: transparent;\n}\n.mq-editable-field .mq-latex-command-input.mq-hasCursor {\n border-color: ActiveBorder;\n}\n.mq-editable-field.mq-empty:after,\n.mq-editable-field.mq-text-mode:after,\n.mq-math-mode .mq-empty:after {\n visibility: hidden;\n content: 'c';\n}\n.mq-editable-field .mq-cursor:only-child:after,\n.mq-editable-field .mq-textarea + .mq-cursor:last-child:after {\n visibility: hidden;\n content: 'c';\n}\n.mq-editable-field .mq-text-mode .mq-cursor:only-child:after {\n content: '';\n}\n.mq-editable-field.mq-text-mode {\n overflow-x: auto;\n overflow-y: hidden;\n}\n.mq-root-block,\n.mq-math-mode .mq-root-block {\n display: -moz-inline-box;\n display: inline-block;\n width: 100%;\n padding: 2px;\n -webkit-box-sizing: border-box;\n -moz-box-sizing: border-box;\n box-sizing: border-box;\n white-space: nowrap;\n overflow: hidden;\n vertical-align: middle;\n}\n.mq-math-mode {\n font-variant: normal;\n font-weight: normal;\n font-style: normal;\n font-size: 115%;\n line-height: 1;\n display: -moz-inline-box;\n display: inline-block;\n}\n.mq-math-mode .mq-non-leaf,\n.mq-math-mode .mq-scaled {\n display: -moz-inline-box;\n display: inline-block;\n}\n.mq-math-mode var,\n.mq-math-mode .mq-text-mode,\n.mq-math-mode .mq-nonSymbola {\n font-family: \"Times New Roman\", Symbola, serif;\n line-height: 0.9;\n}\n.mq-math-mode * {\n font-size: inherit;\n line-height: inherit;\n margin: 0;\n padding: 0;\n border-color: black;\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n box-sizing: border-box;\n}\n.mq-math-mode .mq-empty {\n background: #ccc;\n}\n.mq-math-mode .mq-empty.mq-root-block {\n background: transparent;\n}\n.mq-math-mode.mq-empty {\n background: transparent;\n}\n.mq-math-mode .mq-text-mode {\n display: inline-block;\n white-space: pre;\n}\n.mq-math-mode .mq-text-mode.mq-hasCursor {\n box-shadow: inset darkgray 0 0.1em 0.2em;\n padding: 0 0.1em;\n margin: 0 -0.1em;\n min-width: 1ex;\n}\n.mq-math-mode .mq-font {\n font: 1em \"Times New Roman\", Symbola, serif;\n}\n.mq-math-mode .mq-font * {\n font-family: inherit;\n font-style: inherit;\n}\n.mq-math-mode b,\n.mq-math-mode b.mq-font {\n font-weight: bolder;\n}\n.mq-math-mode var,\n.mq-math-mode i,\n.mq-math-mode i.mq-font {\n font-style: italic;\n}\n.mq-math-mode var.mq-f {\n margin-right: 0.2em;\n margin-left: 0.1em;\n}\n.mq-math-mode .mq-roman var.mq-f {\n margin: 0;\n}\n.mq-math-mode big {\n font-size: 200%;\n}\n.mq-math-mode .mq-int > big {\n display: inline-block;\n -webkit-transform: scaleX(0.7);\n -moz-transform: scaleX(0.7);\n -ms-transform: scaleX(0.7);\n -o-transform: scaleX(0.7);\n transform: scaleX(0.7);\n vertical-align: -0.16em;\n}\n.mq-math-mode .mq-int > .mq-supsub {\n font-size: 80%;\n vertical-align: -1.1em;\n padding-right: 0.2em;\n}\n.mq-math-mode .mq-int > .mq-supsub > .mq-sup > .mq-sup-inner {\n vertical-align: 1.3em;\n}\n.mq-math-mode .mq-int > .mq-supsub > .mq-sub {\n margin-left: -0.35em;\n}\n.mq-math-mode .mq-roman {\n font-style: normal;\n}\n.mq-math-mode .mq-sans-serif {\n font-family: sans-serif, Symbola, serif;\n}\n.mq-math-mode .mq-monospace {\n font-family: monospace, Symbola, serif;\n}\n.mq-math-mode .mq-overline {\n border-top: 1px solid black;\n margin-top: 1px;\n}\n.mq-math-mode .mq-underline {\n border-bottom: 1px solid black;\n margin-bottom: 1px;\n}\n.mq-math-mode .mq-binary-operator {\n padding: 0 0.2em;\n display: -moz-inline-box;\n display: inline-block;\n}\n.mq-math-mode .mq-supsub {\n text-align: left;\n font-size: 90%;\n vertical-align: -0.5em;\n}\n.mq-math-mode .mq-supsub.mq-sup-only {\n vertical-align: 0.5em;\n}\n.mq-math-mode .mq-supsub.mq-sup-only .mq-sup {\n display: inline-block;\n vertical-align: text-bottom;\n}\n.mq-math-mode .mq-supsub .mq-sup {\n display: block;\n}\n.mq-math-mode .mq-supsub .mq-sub {\n display: block;\n float: left;\n}\n.mq-math-mode .mq-supsub .mq-binary-operator {\n padding: 0 0.1em;\n}\n.mq-math-mode .mq-supsub .mq-fraction {\n font-size: 70%;\n}\n.mq-math-mode sup.mq-nthroot {\n font-size: 80%;\n vertical-align: 0.8em;\n margin-right: -0.6em;\n margin-left: 0.2em;\n min-width: 0.5em;\n}\n.mq-math-mode .mq-paren {\n padding: 0 0.1em;\n vertical-align: top;\n -webkit-transform-origin: center 0.06em;\n -moz-transform-origin: center 0.06em;\n -ms-transform-origin: center 0.06em;\n -o-transform-origin: center 0.06em;\n transform-origin: center 0.06em;\n}\n.mq-math-mode .mq-paren.mq-ghost {\n color: silver;\n}\n.mq-math-mode .mq-paren + span {\n margin-top: 0.1em;\n margin-bottom: 0.1em;\n}\n.mq-math-mode .mq-array {\n vertical-align: middle;\n text-align: center;\n}\n.mq-math-mode .mq-array > span {\n display: block;\n}\n.mq-math-mode .mq-operator-name {\n font-family: Symbola, \"Times New Roman\", serif;\n line-height: 0.9;\n font-style: normal;\n}\n.mq-math-mode var.mq-operator-name.mq-first {\n padding-left: 0.2em;\n}\n.mq-math-mode var.mq-operator-name.mq-last,\n.mq-math-mode .mq-supsub.mq-after-operator-name {\n padding-right: 0.2em;\n}\n.mq-math-mode .mq-fraction {\n font-size: 90%;\n text-align: center;\n vertical-align: -0.4em;\n padding: 0 0.2em;\n}\n.mq-math-mode .mq-fraction,\n.mq-math-mode .mq-large-operator,\n.mq-math-mode x:-moz-any-link {\n display: -moz-groupbox;\n}\n.mq-math-mode .mq-fraction,\n.mq-math-mode .mq-large-operator,\n.mq-math-mode x:-moz-any-link,\n.mq-math-mode x:default {\n display: inline-block;\n}\n.mq-math-mode .mq-numerator,\n.mq-math-mode .mq-denominator,\n.mq-math-mode .mq-dot-recurring {\n display: block;\n}\n.mq-math-mode .mq-numerator {\n padding: 0 0.1em;\n}\n.mq-math-mode .mq-denominator {\n border-top: 1px solid;\n float: right;\n width: 100%;\n padding: 0.1em;\n}\n.mq-math-mode .mq-dot-recurring {\n text-align: center;\n height: 0.3em;\n}\n.mq-math-mode .mq-sqrt-prefix {\n padding-top: 0;\n position: relative;\n top: 0.1em;\n vertical-align: top;\n -webkit-transform-origin: top;\n -moz-transform-origin: top;\n -ms-transform-origin: top;\n -o-transform-origin: top;\n transform-origin: top;\n}\n.mq-math-mode .mq-sqrt-stem {\n border-top: 1px solid;\n margin-top: 1px;\n padding-left: 0.15em;\n padding-right: 0.2em;\n margin-right: 0.1em;\n padding-top: 1px;\n}\n.mq-math-mode .mq-diacritic-above {\n display: block;\n text-align: center;\n line-height: 0.4em;\n}\n.mq-math-mode .mq-diacritic-stem {\n display: block;\n text-align: center;\n}\n.mq-math-mode .mq-hat-prefix {\n display: block;\n text-align: center;\n line-height: 0.95em;\n margin-bottom: -0.7em;\n transform: scaleX(1.5);\n -moz-transform: scaleX(1.5);\n -o-transform: scaleX(1.5);\n -webkit-transform: scaleX(1.5);\n}\n.mq-math-mode .mq-hat-stem {\n display: block;\n}\n.mq-math-mode .mq-large-operator {\n vertical-align: -0.2em;\n padding: 0.2em;\n text-align: center;\n}\n.mq-math-mode .mq-large-operator .mq-from,\n.mq-math-mode .mq-large-operator big,\n.mq-math-mode .mq-large-operator .mq-to {\n display: block;\n}\n.mq-math-mode .mq-large-operator .mq-from,\n.mq-math-mode .mq-large-operator .mq-to {\n font-size: 80%;\n}\n.mq-math-mode .mq-large-operator .mq-from {\n float: right;\n /* take out of normal flow to manipulate baseline */\n width: 100%;\n}\n.mq-math-mode,\n.mq-math-mode .mq-editable-field {\n cursor: text;\n font-family: Symbola, \"Times New Roman\", serif;\n}\n.mq-math-mode .mq-overarc {\n border-top: 1px solid black;\n -webkit-border-top-right-radius: 50% 0.3em;\n -moz-border-radius-topright: 50% 0.3em;\n border-top-right-radius: 50% 0.3em;\n -webkit-border-top-left-radius: 50% 0.3em;\n -moz-border-radius-topleft: 50% 0.3em;\n border-top-left-radius: 50% 0.3em;\n margin-top: 1px;\n padding-top: 0.15em;\n}\n.mq-math-mode .mq-overarrow {\n min-width: 0.5em;\n border-top: 1px solid black;\n margin-top: 1px;\n padding-top: 0.2em;\n text-align: center;\n}\n.mq-math-mode .mq-overarrow:before {\n display: block;\n position: relative;\n top: -0.34em;\n font-size: 0.5em;\n line-height: 0em;\n content: '\\27A4';\n text-align: right;\n}\n.mq-math-mode .mq-overarrow.mq-arrow-left:before {\n -moz-transform: scaleX(-1);\n -o-transform: scaleX(-1);\n -webkit-transform: scaleX(-1);\n transform: scaleX(-1);\n filter: FlipH;\n -ms-filter: \"FlipH\";\n}\n.mq-math-mode .mq-overarrow.mq-arrow-both {\n vertical-align: text-bottom;\n}\n.mq-math-mode .mq-overarrow.mq-arrow-both.mq-empty {\n min-height: 1.23em;\n}\n.mq-math-mode .mq-overarrow.mq-arrow-both.mq-empty:after {\n top: -0.34em;\n}\n.mq-math-mode .mq-overarrow.mq-arrow-both:before {\n -moz-transform: scaleX(-1);\n -o-transform: scaleX(-1);\n -webkit-transform: scaleX(-1);\n transform: scaleX(-1);\n filter: FlipH;\n -ms-filter: \"FlipH\";\n}\n.mq-math-mode .mq-overarrow.mq-arrow-both:after {\n display: block;\n position: relative;\n top: -2.3em;\n font-size: 0.5em;\n line-height: 0em;\n content: '\\27A4';\n visibility: visible;\n text-align: right;\n}\n.mq-math-mode .mq-selection,\n.mq-editable-field .mq-selection,\n.mq-math-mode .mq-selection .mq-non-leaf,\n.mq-editable-field .mq-selection .mq-non-leaf,\n.mq-math-mode .mq-selection .mq-scaled,\n.mq-editable-field .mq-selection .mq-scaled {\n background: #B4D5FE !important;\n background: Highlight !important;\n color: HighlightText;\n border-color: HighlightText;\n}\n.mq-math-mode .mq-selection .mq-matrixed,\n.mq-editable-field .mq-selection .mq-matrixed {\n background: #39F !important;\n}\n.mq-math-mode .mq-selection .mq-matrixed-container,\n.mq-editable-field .mq-selection .mq-matrixed-container {\n filter: progid:DXImageTransform.Microsoft.Chroma(color='#3399FF') !important;\n}\n.mq-math-mode .mq-selection.mq-blur,\n.mq-editable-field .mq-selection.mq-blur,\n.mq-math-mode .mq-selection.mq-blur .mq-non-leaf,\n.mq-editable-field .mq-selection.mq-blur .mq-non-leaf,\n.mq-math-mode .mq-selection.mq-blur .mq-scaled,\n.mq-editable-field .mq-selection.mq-blur .mq-scaled,\n.mq-math-mode .mq-selection.mq-blur .mq-matrixed,\n.mq-editable-field .mq-selection.mq-blur .mq-matrixed {\n background: #D4D4D4 !important;\n color: black;\n border-color: black;\n}\n.mq-math-mode .mq-selection.mq-blur .mq-matrixed-container,\n.mq-editable-field .mq-selection.mq-blur .mq-matrixed-container {\n filter: progid:DXImageTransform.Microsoft.Chroma(color='#D4D4D4') !important;\n}\n.mq-editable-field .mq-textarea,\n.mq-math-mode .mq-textarea {\n position: relative;\n -webkit-user-select: text;\n -moz-user-select: text;\n user-select: text;\n}\n.mq-editable-field .mq-textarea *,\n.mq-math-mode .mq-textarea *,\n.mq-editable-field .mq-selectable,\n.mq-math-mode .mq-selectable {\n -webkit-user-select: text;\n -moz-user-select: text;\n user-select: text;\n position: absolute;\n clip: rect(1em 1em 1em 1em);\n -webkit-transform: scale(0);\n -moz-transform: scale(0);\n -ms-transform: scale(0);\n -o-transform: scale(0);\n transform: scale(0);\n resize: none;\n width: 1px;\n height: 1px;\n box-sizing: content-box;\n}\n.mq-math-mode .mq-matrixed {\n background: white;\n display: -moz-inline-box;\n display: inline-block;\n}\n.mq-math-mode .mq-matrixed-container {\n filter: progid:DXImageTransform.Microsoft.Chroma(color='white');\n margin-top: -0.1em;\n}\n",""]);const s=o},645:e=>{e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var n="",r=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),r&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),r&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n}).join("")},t.i=function(e,n,r,i,a){"string"==typeof e&&(e=[[null,e,void 0]]);var o={};if(r)for(var s=0;s<this.length;s++){var l=this[s][0];null!=l&&(o[l]=!0)}for(var u=0;u<e.length;u++){var c=[].concat(e[u]);r&&o[c[0]]||(void 0!==a&&(void 0===c[5]||(c[1]="@layer".concat(c[5].length>0?" ".concat(c[5]):""," {").concat(c[1],"}")),c[5]=a),n&&(c[2]?(c[1]="@media ".concat(c[2]," {").concat(c[1],"}"),c[2]=n):c[2]=n),i&&(c[4]?(c[1]="@supports (".concat(c[4],") {").concat(c[1],"}"),c[4]=i):c[4]="".concat(i)),t.push(c))}},t}},81:e=>{e.exports=function(e){return e[1]}},338:(e,t,n)=>{var r=n(755);window.jQuery=r,function(){var e,t=window.jQuery,n="mathquill-command-id",r="mathquill-block-id",i=Math.min,a=Math.max;if(!t)throw"MathQuill requires jQuery 1.5.2+ to be loaded first";function o(){}var s=[].slice;function l(e){var t=e.length-1;return function(){var n=s.call(arguments,0,t),r=s.call(arguments,t);return e.apply(this,n.concat([r]))}}var u=l(function(e,t){return l(function(n,r){if(e in n)return n[e].apply(n,t.concat(r))})});function c(e){return l(function(t,n){return"function"!=typeof t&&(t=u(t)),e.call(this,function(e){return t.apply(e,[e].concat(n))})})}function d(e){var t=s.call(arguments,1);return function(){return e.apply(this,t)}}function h(e,t){if(!t)throw new Error("prayer failed: "+e)}var p=function(e,t){function n(e){return"object"==typeof e}function r(e){return"function"==typeof e}function i(){}return function e(a,o){function s(){var e=new l;return r(e.init)&&e.init.apply(e,arguments),e}function l(){}void 0===o&&(o=a,a=Object),s.Bare=l;var u,c=i.prototype=a.prototype,d=l.prototype=s.prototype=s.p=new i;return d.constructor=s,s.extend=function(t){return e(s,t)},(s.open=function(e){if(u={},r(e)?u=e.call(s,d,c,s,a):n(e)&&(u=e),n(u))for(var i in u)t.call(u,i)&&(d[i]=u[i]);return r(d.init)||(d.init=a),s})(o)}}(0,{}.hasOwnProperty),f=-1;function m(e){h("a direction was passed",e===f||1===e)}var g=p(t,function(e){e.insDirOf=function(e,t){return e===f?this.insertBefore(t.first()):this.insertAfter(t.last())},e.insAtDirEnd=function(e,t){return e===f?this.prependTo(t):this.appendTo(t)}}),b=p(function(e){e.parent=0,e[f]=0,e[1]=0,e.init=function(e,t,n){this.parent=e,this[f]=t,this[1]=n},this.copy=function(e){return b(e.parent,e[f],e[1])}}),v=p(function(e){e[f]=0,e[1]=0,e.parent=0;var t=0;this.byId={},e.init=function(){this.id=t+=1,v.byId[this.id]=this,this.ends={},this.ends[f]=0,this.ends[1]=0},e.dispose=function(){delete v.byId[this.id]},e.toString=function(){return"{{ MathQuill Node #"+this.id+" }}"},e.jQ=g(),e.jQadd=function(e){return this.jQ=this.jQ.add(e)},e.jQize=function(e){function t(e){if(e.getAttribute){var n=e.getAttribute("mathquill-command-id"),r=e.getAttribute("mathquill-block-id");n&&v.byId[n].jQadd(e),r&&v.byId[r].jQadd(e)}for(e=e.firstChild;e;e=e.nextSibling)t(e)}e=g(e||this.html());for(var n=0;n<e.length;n+=1)t(e[n]);return e},e.createDir=function(e,t){m(e);var n=this;return n.jQize(),n.jQ.insDirOf(e,t.jQ),t[e]=n.adopt(t.parent,t[f],t[1]),n},e.createLeftOf=function(e){return this.createDir(f,e)},e.selectChildren=function(e,t){return C(e,t)},e.bubble=c(function(e){for(var t=this;t&&!1!==e(t);t=t.parent);return this}),e.postOrder=c(function(e){return function t(n){n.eachChild(t),e(n)}(this),this}),e.isEmpty=function(){return 0===this.ends[f]&&0===this.ends[1]},e.isStyleBlock=function(){return!1},e.children=function(){return x(this.ends[f],this.ends[1])},e.eachChild=function(){var e=this.children();return e.each.apply(e,arguments),this},e.foldChildren=function(e,t){return this.children().fold(e,t)},e.withDirAdopt=function(e,t,n,r){return x(this,this).withDirAdopt(e,t,n,r),this},e.adopt=function(e,t,n){return x(this,this).adopt(e,t,n),this},e.disown=function(){return x(this,this).disown(),this},e.remove=function(){return this.jQ.remove(),this.postOrder("dispose"),this.disown()}});function y(e,t,n){h("a parent is always present",e),h("leftward is properly set up",t?t[1]===n&&t.parent===e:e.ends[f]===n),h("rightward is properly set up",n?n[f]===t&&n.parent===e:e.ends[1]===t)}var x=p(function(t){t.init=function(t,n,r){if(r===e&&(r=f),m(r),h("no half-empty fragments",!t==!n),this.ends={},t){h("withDir is passed to Fragment",t instanceof v),h("oppDir is passed to Fragment",n instanceof v),h("withDir and oppDir have the same parent",t.parent===n.parent),this.ends[r]=t,this.ends[-r]=n;var i=this.fold([],function(e,t){return e.push.apply(e,t.jQ.get()),e});this.jQ=this.jQ.add(i)}},t.jQ=g(),t.withDirAdopt=function(e,t,n,r){return e===f?this.adopt(t,n,r):this.adopt(t,r,n)},t.adopt=function(e,t,n){y(e,t,n);var r=this;r.disowned=!1;var i=r.ends[f];if(!i)return this;var a=r.ends[1];return t||(e.ends[f]=i),n?n[f]=a:e.ends[1]=a,r.ends[1][1]=n,r.each(function(n){n[f]=t,n.parent=e,t&&(t[1]=n),t=n}),r},t.disown=function(){var e=this,t=e.ends[f];if(!t||e.disowned)return e;e.disowned=!0;var n=e.ends[1],r=t.parent;return y(r,t[f],t),y(r,n,n[1]),t[f]?t[f][1]=n[1]:r.ends[f]=n[1],n[1]?n[1][f]=t[f]:r.ends[1]=t[f],e},t.remove=function(){return this.jQ.remove(),this.each("postOrder","dispose"),this.disown()},t.each=c(function(e){var t=this,n=t.ends[f];if(!n)return t;for(;n!==t.ends[1][1]&&!1!==e(n);n=n[1]);return t}),t.fold=function(e,t){return this.each(function(n){e=t.call(this,e,n)}),e}}),w={},k={},S=p(b,function(t){t.init=function(e,t){this.parent=e,this.options=t;var n=this.jQ=this._jQ=g('<span class="mq-cursor">&#8203;</span>');this.blink=function(){n.toggleClass("mq-blink")},this.upDownCache={}},t.show=function(){return this.jQ=this._jQ.removeClass("mq-blink"),"intervalId"in this?clearInterval(this.intervalId):(this[1]?this.selection&&this.selection.ends[f][f]===this[f]?this.jQ.insertBefore(this.selection.jQ):this.jQ.insertBefore(this[1].jQ.first()):this.jQ.appendTo(this.parent.jQ),this.parent.focus()),this.intervalId=setInterval(this.blink,500),this},t.hide=function(){return"intervalId"in this&&clearInterval(this.intervalId),delete this.intervalId,this.jQ.detach(),this.jQ=g(),this},t.withDirInsertAt=function(e,t,n,r){var i=this.parent;this.parent=t,this[e]=n,this[-e]=r,i!==t&&i.blur&&i.blur(this)},t.insDirOf=function(e,t){return m(e),this.jQ.insDirOf(e,t.jQ),this.withDirInsertAt(e,t.parent,t[e],t),this.parent.jQ.addClass("mq-hasCursor"),this},t.insLeftOf=function(e){return this.insDirOf(f,e)},t.insRightOf=function(e){return this.insDirOf(1,e)},t.insAtDirEnd=function(e,t){return m(e),this.jQ.insAtDirEnd(e,t.jQ),this.withDirInsertAt(e,t,0,t.ends[e]),t.focus(),this},t.insAtLeftEnd=function(e){return this.insAtDirEnd(f,e)},t.insAtRightEnd=function(e){return this.insAtDirEnd(1,e)},t.jumpUpDown=function(e,t){var n=this;n.upDownCache[e.id]=b.copy(n);var r=n.upDownCache[t.id];if(r)r[1]?n.insLeftOf(r[1]):n.insAtRightEnd(r.parent);else{var i=n.offset().left;t.seek(i,n)}},t.offset=function(){var e=this.jQ.removeClass("mq-cursor").offset();return this.jQ.addClass("mq-cursor"),e},t.unwrapGramp=function(){var e=this.parent.parent,t=e.parent,n=e[1],r=e[f];if(e.disown().eachChild(function(i){i.isEmpty()||(i.children().adopt(t,r,n).each(function(t){t.jQ.insertBefore(e.jQ.first())}),r=i.ends[1])}),!this[1])if(this[f])this[1]=this[f][1];else for(;!this[1];){if(this.parent=this.parent[1],!this.parent){this[1]=e[1],this.parent=t;break}this[1]=this.parent.ends[f]}this[1]?this.insLeftOf(this[1]):this.insAtRightEnd(t),e.jQ.remove(),e[f].siblingDeleted&&e[f].siblingDeleted(this.options,1),e[1].siblingDeleted&&e[1].siblingDeleted(this.options,f)},t.startSelection=function(){for(var e=this.anticursor=b.copy(this),t=e.ancestors={},n=e;n.parent;n=n.parent)t[n.parent.id]=n},t.endSelection=function(){delete this.anticursor},t.select=function(){var e=this.anticursor;if(this[f]===e[f]&&this.parent===e.parent)return!1;for(var t=this;t.parent;t=t.parent)if(t.parent.id in e.ancestors){var n=t.parent;break}h("cursor and anticursor in the same tree",n);var r,i,a=e.ancestors[n.id],o=1;if(t[f]!==a)for(var s=t;s;s=s[1])if(s[1]===a[1]){o=f,r=t,i=a;break}return 1===o&&(r=a,i=t),r instanceof b&&(r=r[1]),i instanceof b&&(i=i[f]),this.hide().selection=n.selectChildren(r,i),this.insDirOf(o,this.selection.ends[o]),this.selectionChanged(),!0},t.clearSelection=function(){return this.selection&&(this.selection.clear(),delete this.selection,this.selectionChanged()),this},t.deleteSelection=function(){this.selection&&(this[f]=this.selection.ends[f][f],this[1]=this.selection.ends[1][1],this.selection.remove(),this.selectionChanged(),delete this.selection)},t.replaceSelection=function(){var e=this.selection;return e&&(this[f]=e.ends[f][f],this[1]=e.ends[1][1],delete this.selection),e},t.depth=function(){for(var e=this,t=0;e=e.parent;)t+=e instanceof $?1:0;return t},t.isTooDeep=function(t){if(this.options.maxDepth!==e)return this.depth()+(t||0)>this.options.maxDepth}}),C=p(x,function(e,t){e.init=function(){t.init.apply(this,arguments),this.jQ=this.jQ.wrapAll('<span class="mq-selection"></span>').parent()},e.adopt=function(){return this.jQ.replaceWith(this.jQ=this.jQ.children()),t.adopt.apply(this,arguments)},e.clear=function(){return this.jQ.replaceWith(this.jQ[0].childNodes),this},e.join=function(e){return this.fold("",function(t,n){return t+n[e]()})}}),T=p(function(e){e.init=function(e,t,n){this.id=e.id,this.data={},this.root=e,this.container=t,this.options=n,e.controller=this,this.cursor=e.cursor=S(e,n)},e.handle=function(e,t){var n=this.options.handlers;if(n&&n.fns[e]){var r=n.APIClasses[this.KIND_OF_MQ](this);t===f||1===t?n.fns[e](t,r):n.fns[e](r)}};var t=[];this.onNotify=function(e){t.push(e)},e.notify=function(){for(var e=0;e<t.length;e+=1)t[e].apply(this.cursor,arguments);return this}}),E={},q=p(),A={},M=p(),N={};function O(){window.console&&console.warn('You are using the MathQuill API without specifying an interface version, which will fail in v1.0.0. Easiest fix is to do the following before doing anything else:\n\n MathQuill = MathQuill.getInterface(1);\n // now MathQuill.MathField() works like it used to\n\nSee also the "`dev` branch (2014–2015) → v0.10.0 Migration Guide" at\n https://github.com/mathquill/mathquill/wiki/%60dev%60-branch-(2014%E2%80%932015)-%E2%86%92-v0.10.0-Migration-Guide')}function z(e){return O(),Ie(e)}z.prototype=M.p,z.VERSION="v0.11.0",z.interfaceVersion=function(e){if(1!==e)throw"Only interface version 1 supported. You specified: "+e;return(O=function(){window.console&&console.warn('You called MathQuill.interfaceVersion(1); to specify the interface version, which will fail in v1.0.0. You can fix this easily by doing this before doing anything else:\n\n MathQuill = MathQuill.getInterface(1);\n // now MathQuill.MathField() works like it used to\n\nSee also the "`dev` branch (2014–2015) → v0.10.0 Migration Guide" at\n https://github.com/mathquill/mathquill/wiki/%60dev%60-branch-(2014%E2%80%932015)-%E2%86%92-v0.10.0-Migration-Guide')})(),z},z.getInterface=I;var D=I.MIN=1,L=I.MAX=2;function I(e){if(!(D<=e&&e<=L))throw"Only interface versions between "+D+" and "+L+" supported. You specified: "+e;function n(e){if(!e||!e.nodeType)return null;var t=g(e).children(".mq-root-block").attr(r),n=t&&v.byId[t].controller;return n?i[n.KIND_OF_MQ](n):null}var i={};function a(e,t){for(var n in t&&t.handlers&&(t.handlers={fns:t.handlers,APIClasses:i}),t)if(t.hasOwnProperty(n)){var r=t[n],a=A[n];e[n]=a?a(r):r}}n.L=f,n.R=1,n.saneKeyboardEvents=P,n.config=function(e){return a(q.p,e),this},n.registerEmbed=function(e,t){if(!/^[a-z][a-z0-9]*$/i.test(e))throw"Embed name must start with letter and be only letters and digits";N[e]=t};var s=i.AbstractMathQuill=p(M,function(e){e.init=function(e){this.__controller=e,this.__options=e.options,this.id=e.id,this.data=e.data},e.__mathquillify=function(e){var t=this.__controller,n=t.root,i=t.container;t.createTextarea();var a=i.addClass(e).contents().detach();n.jQ=g('<span class="mq-root-block"/>').attr(r,n.id).appendTo(i),this.latex(a.text()),this.revert=function(){return i.empty().unbind(".mathquill").removeClass("mq-editable-field mq-math-mode mq-text-mode").append(a)}},e.config=function(e){return a(this.__options,e),this},e.el=function(){return this.__controller.container[0]},e.text=function(){return this.__controller.exportText()},e.latex=function(e){return arguments.length>0?(this.__controller.renderLatexMath(e),this.__controller.blurred&&this.__controller.cursor.hide().parent.blur(),this):this.__controller.exportLatex()},e.html=function(){return this.__controller.root.jQ.html().replace(/ mathquill-(?:command|block)-id="?\d+"?/g,"").replace(/<span class="?mq-cursor( mq-blink)?"?>.?<\/span>/i,"").replace(/ mq-hasCursor|mq-hasCursor ?/,"").replace(/ class=(""|(?= |>))/g,"")},e.reflow=function(){return this.__controller.root.postOrder("reflow"),this}});for(var l in n.prototype=s.prototype,i.EditableField=p(s,function(e,n){e.__mathquillify=function(){return n.__mathquillify.apply(this,arguments),this.__controller.editable=!0,this.__controller.delegateMouseEvents(),this.__controller.editablesTextareaEvents(),this},e.focus=function(){return this.__controller.textarea.focus(),this},e.blur=function(){return this.__controller.textarea.blur(),this},e.write=function(e){return this.__controller.writeLatex(e),this.__controller.scrollHoriz(),this.__controller.blurred&&this.__controller.cursor.hide().parent.blur(),this},e.empty=function(){var e=this.__controller.root,t=this.__controller.cursor;return e.eachChild("postOrder","dispose"),e.ends[f]=e.ends[1]=0,e.jQ.empty(),delete t.selection,t.insAtRightEnd(e),this},e.cmd=function(e){var t=this.__controller.notify(),n=t.cursor;if(/^\\[a-z]+$/i.test(e)&&!n.isTooDeep()){e=e.slice(1);var r=w[e];r&&(e=r(e),n.selection&&e.replaces(n.replaceSelection()),e.createLeftOf(n.show()),this.__controller.scrollHoriz())}else n.parent.write(n,e);return t.blurred&&n.hide().parent.blur(),this},e.select=function(){var e=this.__controller;for(e.notify("move").cursor.insAtRightEnd(e.root);e.cursor[f];)e.selectLeft();return this},e.clearSelection=function(){return this.__controller.cursor.clearSelection(),this},e.moveToDirEnd=function(e){return this.__controller.notify("move").cursor.insAtDirEnd(e,this.__controller.root),this},e.moveToLeftEnd=function(){return this.moveToDirEnd(f)},e.moveToRightEnd=function(){return this.moveToDirEnd(1)},e.keystroke=function(e){e=e.replace(/^\s+|\s+$/g,"").split(/\s+/);for(var t=0;t<e.length;t+=1)this.__controller.keystroke(e[t],{preventDefault:o});return this},e.typedText=function(e){for(var t=0;t<e.length;t+=1)this.__controller.typedText(e.charAt(t));return this},e.dropEmbedded=function(e,t,n){var r=e-g(window).scrollLeft(),i=t-g(window).scrollTop(),a=document.elementFromPoint(r,i);this.__controller.seek(g(a),e,t),ye().setOptions(n).createLeftOf(this.__controller.cursor)},e.clickAt=function(e,n,r){r=r||document.elementFromPoint(e,n);var i=this.__controller,a=i.root;return t.contains(a.jQ[0],r)||(r=a.jQ[0]),i.seek(g(r),e+pageXOffset,n+pageYOffset),i.blurred&&this.focus(),this},e.ignoreNextMousedown=function(e){return this.__controller.cursor.options.ignoreNextMousedown=e,this}}),n.EditableField=function(){throw"wtf don't call me, I'm 'abstract'"},n.EditableField.prototype=i.EditableField.prototype,E)!function(t,r){var a=i[t]=r(i);n[t]=function(r,i){var o=n(r);if(o instanceof a||!r||!r.nodeType)return o;var s=T(a.RootBlock(),g(r),q());return s.KIND_OF_MQ=t,a(s).__mathquillify(i,e)},n[t].prototype=a.prototype}(l,E[l]);return n}z.noConflict=function(){return window.MathQuill=_,z};var _=window.MathQuill;function B(e){for(var t="moveOutOf deleteOutOf selectOutOf upOutOf downOutOf".split(" "),n=0;n<t.length;n+=1)!function(t){e[t]=function(e){this.controller.handle(t,e)}}(t[n]);e.reflow=function(){this.controller.handle("reflow"),this.controller.handle("edited"),this.controller.handle("edit")}}window.MathQuill=z;var R,P=(R={8:"Backspace",9:"Tab",10:"Enter",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Esc",32:"Spacebar",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",45:"Insert",46:"Del",144:"NumLock"},function(e,n){var r,i=null,a=null,s=t(e),l=t(n.container||s),u=o;function c(e){u=e,clearTimeout(r),r=setTimeout(e)}function d(e){c(function(t){u=o,clearTimeout(r),e(t)})}l.bind("keydown keypress input keyup focusout paste",function(e){u(e)});var h=!1;function p(){n.keystroke(function(e){var t,n=e.which||e.keyCode,r=R[n],i=[];return e.ctrlKey&&i.push("Ctrl"),e.originalEvent&&e.originalEvent.metaKey&&i.push("Meta"),e.altKey&&i.push("Alt"),e.shiftKey&&i.push("Shift"),t=r||String.fromCharCode(n),i.length||r?(i.push(t),i.join("-")):t}(i),i)}function f(){if(!("selectionStart"in(e=s[0]))||e.selectionStart===e.selectionEnd){var e,t=s.val();1===t.length?(s.val(""),n.typedText(t)):t&&s[0].select&&s[0].select()}}function m(){var e=s.val();s.val(""),e&&n.paste(e)}return l.bind({keydown:function(e){i=e,a=null,h&&d(function(e){e&&"focusout"===e.type||!s[0].select||s[0].select()}),p()},keypress:function(e){i&&a&&p(),a=e,c(f)},keyup:function(e){i&&!a&&c(f)},focusout:function(){i=a=null},cut:function(){d(function(){n.cut()})},copy:function(){d(function(){n.copy()})},paste:function(e){s.focus(),c(m)}}),{select:function(e){u(),u=o,clearTimeout(r),s.val(e),e&&s[0].select&&s[0].select(),h=!!e}}}),j=p(function(e,t,n){function r(e,t){throw"Parse Error: "+t+" at "+(e?"'"+e+"'":"EOF")}e.init=function(e){this._=e},e.parse=function(e){return this.skip(o)._(""+e,function(e,t){return t},r)},e.or=function(e){h("or is passed a parser",e instanceof n);var t=this;return n(function(n,r,i){return t._(n,r,function(t){return e._(n,r,i)})})},e.then=function(e){var t=this;return n(function(r,i,a){return t._(r,function(t,r){var o=e instanceof n?e:e(r);return h("a parser is returned",o instanceof n),o._(t,i,a)},a)})},e.many=function(){var e=this;return n(function(t,n,r){for(var i=[];e._(t,a,o););return n(t,i);function a(e,n){return t=e,i.push(n),!0}function o(){return!1}})},e.times=function(e,t){arguments.length<2&&(t=e);var r=this;return n(function(n,i,a){for(var o,s=[],l=!0,u=0;u<e;u+=1)if(!(l=r._(n,c,d)))return a(n,o);for(;u<t&&l;u+=1)l=r._(n,c,h);return i(n,s);function c(e,t){return s.push(t),n=e,!0}function d(e,t){return o=t,n=e,!1}function h(e,t){return!1}})},e.result=function(e){return this.then(a(e))},e.atMost=function(e){return this.times(0,e)},e.atLeast=function(e){var t=this;return t.times(e).then(function(e){return t.many().map(function(t){return e.concat(t)})})},e.map=function(e){return this.then(function(t){return a(e(t))})},e.skip=function(e){return this.then(function(t){return e.result(t)})},this.string=function(e){var t=e.length,r="expected '"+e+"'";return n(function(n,i,a){var o=n.slice(0,t);return o===e?i(n.slice(t),o):a(n,r)})};var i=this.regex=function(e){h("regexp parser is anchored","^"===e.toString().charAt(1));var t="expected "+e;return n(function(n,r,i){var a=e.exec(n);if(a){var o=a[0];return r(n.slice(o.length),o)}return i(n,t)})},a=n.succeed=function(e){return n(function(t,n){return n(t,e)})},o=(n.fail=function(e){return n(function(t,n,r){return r(t,e)})},n.letter=i(/^[a-z]/i),n.letters=i(/^[a-z]*/i),n.digit=i(/^[0-9]/),n.digits=i(/^[0-9]*/),n.whitespace=i(/^\s+/),n.optWhitespace=i(/^\s*/),n.any=n(function(e,t,n){return e?t(e.slice(1),e.charAt(0)):n(e,"expected any character")}),n.all=n(function(e,t,n){return t("",e)}),n.eof=n(function(e,t,n){return e?n(e,"expected EOF"):t(e,e)}))});T.open(function(e){e.focusBlurEvents=function(){var e,t=this,n=t.root,r=t.cursor;function i(){clearTimeout(e),r.selection&&r.selection.jQ.addClass("mq-blur"),a()}function a(){r.hide().parent.blur(),t.container.removeClass("mq-focused"),g(window).unbind("blur",i)}t.textarea.focus(function(){t.blurred=!1,clearTimeout(e),t.container.addClass("mq-focused"),r.parent||r.insAtRightEnd(n),r.selection?(r.selection.jQ.removeClass("mq-blur"),t.selectionChanged()):r.show()}).blur(function(){t.blurred=!0,e=setTimeout(function(){n.postOrder("intentionalBlur"),r.clearSelection().endSelection(),a()}),g(window).bind("blur",i)}),t.blurred=!0,r.hide().parent.blur()}}),T.open(function(e,t){e.exportText=function(){return this.root.foldChildren("",function(e,t){return e+t.text()})}}),T.open(function(t){q.p.ignoreNextMousedown=o,t.delegateMouseEvents=function(){var t=this.root.jQ;this.container.bind("mousedown.mathquill",function(n){var i,a=g(n.target).closest(".mq-root-block"),s=v.byId[a.attr(r)||t.attr(r)].controller,l=s.cursor,u=l.blink,c=s.textareaSpan,d=s.textarea;function h(e){i=g(e.target)}function p(t){l.anticursor||l.startSelection(),s.seek(i,t.pageX,t.pageY).cursor.select(),i=e}n.preventDefault(),n.target.unselectable=!0,l.options.ignoreNextMousedown(n)||(l.options.ignoreNextMousedown=o,s.blurred&&(s.editable||a.prepend(c),d.focus()),l.blink=o,s.seek(g(n.target),n.pageX,n.pageY).cursor.startSelection(),a.mousemove(h),g(n.target.ownerDocument).mousemove(p).mouseup(function e(t){l.blink=u,l.selection||(s.editable?l.show():c.detach()),a.unbind("mousemove",h),g(t.target.ownerDocument).unbind("mousemove",p).unbind("mouseup",e)}))})}}),T.open(function(e){e.seek=function(e,t,i){var a=this.notify("select").cursor;if(e){var o=e.attr(r)||e.attr(n);if(!o){var s=e.parent();o=s.attr(r)||s.attr(n)}}var l=o?v.byId[o]:this.root;return h("nodeId is the id of some Node that exists",l),a.clearSelection().show(),l.seek(t,a),this.scrollHoriz(),this}}),T.open(function(e){e.keystroke=function(e,t){this.cursor.parent.keystroke(e,t,this)}}),v.open(function(e){e.keystroke=function(e,t,n){var r=n.cursor;switch(e){case"Ctrl-Shift-Backspace":case"Ctrl-Backspace":n.ctrlDeleteDir(f);break;case"Shift-Backspace":case"Backspace":n.backspace();break;case"Esc":case"Tab":return void n.escapeDir(1,e,t);case"Shift-Tab":case"Shift-Esc":return void n.escapeDir(f,e,t);case"End":n.notify("move").cursor.insAtRightEnd(r.parent);break;case"Ctrl-End":n.notify("move").cursor.insAtRightEnd(n.root);break;case"Shift-End":for(;r[1];)n.selectRight();break;case"Ctrl-Shift-End":for(;r[1]||r.parent!==n.root;)n.selectRight();break;case"Home":n.notify("move").cursor.insAtLeftEnd(r.parent);break;case"Ctrl-Home":n.notify("move").cursor.insAtLeftEnd(n.root);break;case"Shift-Home":for(;r[f];)n.selectLeft();break;case"Ctrl-Shift-Home":for(;r[f]||r.parent!==n.root;)n.selectLeft();break;case"Left":n.moveLeft();break;case"Shift-Left":n.selectLeft();break;case"Ctrl-Left":break;case"Right":n.moveRight();break;case"Shift-Right":n.selectRight();break;case"Ctrl-Right":break;case"Up":n.moveUp();break;case"Down":n.moveDown();break;case"Shift-Up":if(r[f])for(;r[f];)n.selectLeft();else n.selectLeft();case"Shift-Down":if(r[1])for(;r[1];)n.selectRight();else n.selectRight();case"Ctrl-Up":case"Ctrl-Down":break;case"Ctrl-Shift-Del":case"Ctrl-Del":n.ctrlDeleteDir(1);break;case"Shift-Del":case"Del":n.deleteForward();break;case"Meta-A":case"Ctrl-A":for(n.notify("move").cursor.insAtRightEnd(n.root);r[f];)n.selectLeft();break;default:return}t.preventDefault(),n.scrollHoriz()},e.moveOutOf=e.moveTowards=e.deleteOutOf=e.deleteTowards=e.unselectInto=e.selectOutOf=e.selectTowards=function(){h("overridden or never called on this node")}}),T.open(function(e){function t(e,t){var n=e.notify("upDown").cursor,r=t+"Into",i=t+"OutOf";return n[1][r]?n.insAtLeftEnd(n[1][r]):n[f][r]?n.insAtRightEnd(n[f][r]):n.parent.bubble(function(e){var t=e[i];if(t&&("function"==typeof t&&(t=e[i](n)),t instanceof v&&n.jumpUpDown(e,t),!0!==t))return!1}),e}this.onNotify(function(e){"move"!==e&&"upDown"!==e||this.show().clearSelection()}),e.escapeDir=function(e,t,n){m(e);var r=this.cursor;if(r.parent!==this.root&&n.preventDefault(),r.parent!==this.root)return r.parent.moveOutOf(e,r),this.notify("move")},A.leftRightIntoCmdGoes=function(e){if(e&&"up"!==e&&"down"!==e)throw'"up" or "down" required for leftRightIntoCmdGoes option, got "'+e+'"';return e},e.moveDir=function(e){m(e);var t=this.cursor,n=t.options.leftRightIntoCmdGoes;return t.selection?t.insDirOf(e,t.selection.ends[e]):t[e]?t[e].moveTowards(e,t,n):t.parent.moveOutOf(e,t,n),this.notify("move")},e.moveLeft=function(){return this.moveDir(f)},e.moveRight=function(){return this.moveDir(1)},e.moveUp=function(){return t(this,"up")},e.moveDown=function(){return t(this,"down")},this.onNotify(function(e){"upDown"!==e&&(this.upDownCache={})}),this.onNotify(function(e){"edit"===e&&this.show().deleteSelection()}),e.deleteDir=function(e){m(e);var t=this.cursor,n=t.selection;return this.notify("edit"),n||(t[e]?t[e].deleteTowards(e,t):t.parent.deleteOutOf(e,t)),t[f].siblingDeleted&&t[f].siblingDeleted(t.options,1),t[1].siblingDeleted&&t[1].siblingDeleted(t.options,f),t.parent.bubble("reflow"),this},e.ctrlDeleteDir=function(e){m(e);var t=this.cursor;return!t[e]||t.selection?this.deleteDir(e):(this.notify("edit"),e===f?x(t.parent.ends[f],t[f]).remove():x(t[1],t.parent.ends[1]).remove(),t.insAtDirEnd(e,t.parent),t[f].siblingDeleted&&t[f].siblingDeleted(t.options,1),t[1].siblingDeleted&&t[1].siblingDeleted(t.options,f),t.parent.bubble("reflow"),this)},e.backspace=function(){return this.deleteDir(f)},e.deleteForward=function(){return this.deleteDir(1)},this.onNotify(function(e){"select"!==e&&this.endSelection()}),e.selectDir=function(e){var t=this.notify("select").cursor,n=t.selection;m(e),t.anticursor||t.startSelection();var r=t[e];r?n&&n.ends[e]===r&&t.anticursor[-e]!==r?r.unselectInto(e,t):r.selectTowards(e,t):t.parent.selectOutOf(e,t),t.clearSelection(),t.select()||t.show()},e.selectLeft=function(){return this.selectDir(f)},e.selectRight=function(){return this.selectDir(1)}}),T.open(function(n){q.p.substituteTextarea=function(){return g("<textarea autocapitalize=off autocomplete=off autocorrect=off spellcheck=false x-palm-disable-ste-all=true />")[0]},n.createTextarea=function(){var e=this.textareaSpan=g('<span class="mq-textarea"></span>'),t=this.options.substituteTextarea();if(!t.nodeType)throw"substituteTextarea() must return a DOM element, got "+t;t=this.textarea=g(t).appendTo(e);var n=this;n.cursor.selectionChanged=function(){n.selectionChanged()}},n.selectionChanged=function(){var t=this;ne(t.container[0]),t.textareaSelectionTimeout===e&&(t.textareaSelectionTimeout=setTimeout(function(){t.setTextareaSelection()}))},n.setTextareaSelection=function(){this.textareaSelectionTimeout=e;var t="";this.cursor.selection&&(t=this.cursor.selection.join("latex"),this.options.statelessClipboard&&(t="$"+t+"$")),this.selectFn(t)},n.staticMathTextareaEvents=function(){var e=this,n=(e.root,e.cursor),r=e.textarea,i=e.textareaSpan;function a(){i.detach(),e.blurred=!0}this.container.prepend(t('<span class="mq-selectable">').text("$"+e.exportLatex()+"$")),e.blurred=!0,r.bind("cut paste",!1).bind("copy",function(){e.setTextareaSelection()}).focus(function(){e.blurred=!1}).blur(function(){n.selection&&n.selection.clear(),setTimeout(a)}),e.selectFn=function(e){r.val(e),e&&r.select()}},q.p.substituteKeyboardEvents=P,n.editablesTextareaEvents=function(){var e=this.textarea,t=this.textareaSpan,n=this.options.substituteKeyboardEvents(e,this);this.selectFn=function(e){n.select(e)},this.container.prepend(t),this.focusBlurEvents()},n.typedText=function(e){if("\n"===e)return this.handle("enter");var t=this.notify().cursor;t.parent.write(t,e),this.scrollHoriz()},n.cut=function(){var e=this,t=e.cursor;t.selection&&setTimeout(function(){e.notify("edit"),t.parent.bubble("reflow")})},n.copy=function(){this.setTextareaSelection()},n.paste=function(e){this.options.statelessClipboard&&(e="$"===e.slice(0,1)&&"$"===e.slice(-1)?e.slice(1,-1):"\\text{"+e+"}"),this.writeLatex(e).cursor.show()}});var H=function(){function e(e){for(var t=e[0]||$(),n=1;n<e.length;n+=1)e[n].children().adopt(t,t.ends[1],0);return t}var t=j.string,n=j.regex,r=j.letter,i=j.any,a=j.optWhitespace,o=j.succeed,s=j.fail,l=r.map(function(e){return ke(e)}),u=n(/^[^${}\\_^]/).map(function(e){return W(e)}),c=n(/^[^\\a-eg-zA-Z]/).or(t("\\").then(n(/^[a-z]+/i).or(n(/^\s+/).result(" ")).or(i))).then(function(e){var t=w[e];return t?t(e).parser():s("unknown command: \\"+e)}).or(l).or(u),d=t("{").then(function(){return p}).skip(t("}")),h=a.then(d.or(c.map(function(e){var t=$();return e.adopt(t,0,0),t}))),p=h.many().map(e).skip(a),f=t("[").then(h.then(function(e){return"]"!==e.join("latex")?o(e):s()}).many().map(e).skip(a)).skip(t("]")),m=p;return m.block=h,m.optBlock=f,m}();T.open(function(t,n){t.exportLatex=function(){return this.root.latex().replace(/(\\[a-z]+) (?![a-z])/gi,"$1")},A.maxDepth=function(t){return"number"==typeof t?t:e},t.writeLatex=function(e){var t=this.notify("edit").cursor,n=j.all,r=j.eof,i=H.skip(r).or(n.result(!1)).parse(e);return i&&!i.isEmpty()&&i.prepareInsertionAt(t)&&(i.children().adopt(t.parent,t[f],t[1]),i.jQize().insertBefore(t.jQ),t[f]=i.ends[1],i.finalizeInsert(t.options,t),i.ends[1][1].siblingCreated&&i.ends[1][1].siblingCreated(t.options,f),i.ends[f][f].siblingCreated&&i.ends[f][f].siblingCreated(t.options,1),t.parent.bubble("reflow")),this},t.renderLatexMath=function(e){var t=this.root,n=this.cursor,r=(n.options,t.jQ),i=j.all,a=j.eof,o=H.skip(a).or(i.result(!1)).parse(e);if(t.eachChild("postOrder","dispose"),t.ends[f]=t.ends[1]=0,o&&o.prepareInsertionAt(n)){o.children().adopt(t,0,0);var s=o.join("html");r.html(s),t.jQize(r.children()),t.finalizeInsert(n.options)}else r.empty();delete n.selection,n.insAtRightEnd(t)},t.renderLatexText=function(e){var t=this.root,n=this.cursor;t.jQ.children().slice(1).remove(),t.eachChild("postOrder","dispose"),t.ends[f]=t.ends[1]=0,delete n.selection,n.show().insAtRightEnd(t);var r=j.regex,i=j.string,a=j.eof,o=j.all,s=i("$").then(H).skip(i("$").or(a)).map(function(e){var t=Z(n);t.createBlocks();var r=t.ends[f];return e.children().adopt(r,0,0),t}),l=i("\\$").result("$").or(r(/^[^$]/)).map(W),u=s.or(l).many().skip(a).or(o.result(!1)).parse(e);if(u){for(var c=0;c<u.length;c+=1)u[c].adopt(t,t.ends[1],0);t.jQize().appendTo(t.jQ),t.finalizeInsert(n.options)}}}),T.open(function(e){e.scrollHoriz=function(){var e=this.cursor,t=e.selection,n=this.root.jQ[0].getBoundingClientRect();if(t){var r=t.jQ[0].getBoundingClientRect(),i=r.left-(n.left+20),a=r.right-(n.right-20);if(t.ends[f]===e[1])if(i<0)s=i;else{if(!(a>0))return;s=r.left-a<n.left+20?i:a}else if(a>0)s=a;else{if(!(i<0))return;s=r.right-i>n.right-20?a:i}}else{var o=e.jQ[0].getBoundingClientRect().left;if(o>n.right-20)var s=o-(n.right-20);else{if(!(o<n.left+20))return;s=o-(n.left+20)}}this.root.jQ.stop().animate({scrollLeft:"+="+s},100)}});var F=p(v,function(t,n){t.finalizeInsert=function(e,t){var n=this;n.postOrder("finalizeTree",e),n.postOrder("contactWeld",t),n.postOrder("blur"),n.postOrder("reflow"),n[1].siblingCreated&&n[1].siblingCreated(e,f),n[f].siblingCreated&&n[f].siblingCreated(e,1),n.bubble("reflow")},t.prepareInsertionAt=function(t){var n=t.options.maxDepth;if(n!==e){var r=t.depth();if(r>n)return!1;this.removeNodesDeeperThan(n-r)}return!0},t.removeNodesDeeperThan=function(e){for(var t,n=0,r=[[this,n]];r.length;)(t=r.shift())[0].children().each(function(i){var a=i instanceof $?1:0;(n=t[1]+a)<=e?r.push([i,n]):(a?i.children():i).remove()})}}),U=p(F,function(e,t){e.init=function(e,n,r){var i=this;t.init.call(i),i.ctrlSeq||(i.ctrlSeq=e),n&&(i.htmlTemplate=n),r&&(i.textTemplate=r)},e.replaces=function(e){e.disown(),this.replacedFragment=e},e.isEmpty=function(){return this.foldChildren(!0,function(e,t){return e&&t.isEmpty()})},e.parser=function(){var e=H.block,t=this;return e.times(t.numBlocks()).map(function(e){t.blocks=e;for(var n=0;n<e.length;n+=1)e[n].adopt(t,t.ends[1],0);return t})},e.createLeftOf=function(e){var n=this,r=n.replacedFragment;n.createBlocks(),t.createLeftOf.call(n,e),r&&(r.adopt(n.ends[f],0,0),r.jQ.appendTo(n.ends[f].jQ),n.placeCursor(e),n.prepareInsertionAt(e)),n.finalizeInsert(e.options),n.placeCursor(e)},e.createBlocks=function(){for(var e=this,t=e.numBlocks(),n=e.blocks=Array(t),r=0;r<t;r+=1)(n[r]=$()).adopt(e,e.ends[1],0)},e.placeCursor=function(e){e.insAtRightEnd(this.foldChildren(this.ends[f],function(e,t){return e.isEmpty()?e:t}))},e.moveTowards=function(e,t,n){var r=n&&this[n+"Into"];t.insAtDirEnd(-e,r||this.ends[-e])},e.deleteTowards=function(e,t){this.isEmpty()?t[e]=this.remove()[e]:this.moveTowards(e,t,null)},e.selectTowards=function(e,t){t[-e]=this,t[e]=this[e]},e.selectChildren=function(){return C(this,this)},e.unselectInto=function(e,t){t.insAtDirEnd(-e,t.anticursor.ancestors[this.id])},e.seek=function(e,t){function n(e){var t={};return t[f]=e.jQ.offset().left,t[1]=t[f]+e.jQ.outerWidth(),t}var r=this,i=n(r);if(e<i[f])return t.insLeftOf(r);if(e>i[1])return t.insRightOf(r);var a=i[f];r.eachChild(function(o){var s=n(o);return e<s[f]?(e-a<s[f]-e?o[f]?t.insAtRightEnd(o[f]):t.insLeftOf(r):t.insAtLeftEnd(o),!1):e>s[1]?void(o[1]?a=s[1]:i[1]-e<e-s[1]?t.insRightOf(r):t.insAtRightEnd(o)):(o.seek(e,t),!1)})},e.numBlocks=function(){var e=this.htmlTemplate.match(/&\d+/g);return e?e.length:0},e.html=function(){var e=this,t=e.blocks,n=" mathquill-command-id="+e.id,r=e.htmlTemplate.match(/<[^<>]+>|[^<>]+/g);h("no unmatched angle brackets",r.join("")===this.htmlTemplate);for(var i=0,a=r[0];a;a=r[i+=1])if("/>"===a.slice(-2))r[i]=a.slice(0,-2)+n+"/>";else if("<"===a.charAt(0)){h("not an unmatched top-level close tag","/"!==a.charAt(1)),r[i]=a.slice(0,-1)+n+">";var o=1;do{h("no missing close tags",a=r[i+=1]),"</"===a.slice(0,2)?o-=1:"<"===a.charAt(0)&&"/>"!==a.slice(-2)&&(o+=1)}while(o>0)}return r.join("").replace(/>&(\d+)/g,function(e,n){return" mathquill-block-id="+t[n].id+">"+t[n].join("html")})},e.latex=function(){return this.foldChildren(this.ctrlSeq,function(e,t){return e+"{"+(t.latex()||" ")+"}"})},e.textTemplate=[""],e.text=function(){var e=this,t=0;return e.foldChildren(e.textTemplate[t],function(n,r){t+=1;var i=r.text();return n&&"("===e.textTemplate[t]&&"("===i[0]&&")"===i.slice(-1)?n+i.slice(1,-1)+e.textTemplate[t]:n+i+(e.textTemplate[t]||"")})}}),Q=p(U,function(e,t){e.init=function(e,n,r){r||(r=e&&e.length>1?e.slice(1):e),t.init.call(this,e,n,[r])},e.parser=function(){return j.succeed(this)},e.numBlocks=function(){return 0},e.replaces=function(e){e.remove()},e.createBlocks=o,e.moveTowards=function(e,t){t.jQ.insDirOf(e,this.jQ),t[-e]=this,t[e]=this[e]},e.deleteTowards=function(e,t){t[e]=this.remove()[e]},e.seek=function(e,t){e-this.jQ.offset().left<this.jQ.outerWidth()/2?t.insLeftOf(this):t.insRightOf(this)},e.latex=function(){return this.ctrlSeq},e.text=function(){return this.textTemplate},e.placeCursor=o,e.isEmpty=function(){return!0}}),W=p(Q,function(e,t){e.init=function(e,n){t.init.call(this,e,"<span>"+(n||e)+"</span>")}}),V=p(Q,function(e,t){e.init=function(e,n,r){t.init.call(this,e,'<span class="mq-binary-operator">'+n+"</span>",r)}}),$=p(F,function(e,t){e.join=function(e){return this.foldChildren("",function(t,n){return t+n[e]()})},e.html=function(){return this.join("html")},e.latex=function(){return this.join("latex")},e.text=function(){return this.ends[f]===this.ends[1]&&0!==this.ends[f]?this.ends[f].text():this.join("text")},e.keystroke=function(e,n,r){return!r.options.spaceBehavesLikeTab||"Spacebar"!==e&&"Shift-Spacebar"!==e?t.keystroke.apply(this,arguments):(n.preventDefault(),void r.escapeDir("Shift-Spacebar"===e?f:1,e,n))},e.moveOutOf=function(e,t,n){n&&this.parent[n+"Into"]||!this[e]?t.insDirOf(e,this.parent):t.insAtDirEnd(-e,this[e])},e.selectOutOf=function(e,t){t.insDirOf(e,this.parent)},e.deleteOutOf=function(e,t){t.unwrapGramp()},e.seek=function(e,t){var n=this.ends[1];if(!n||n.jQ.offset().left+n.jQ.outerWidth()<e)return t.insAtRightEnd(this);if(e<this.ends[f].jQ.offset().left)return t.insAtLeftEnd(this);for(;e<n.jQ.offset().left;)n=n[f];return n.seek(e,t)},e.chToCmd=function(e,t){var n;return e.match(/^[a-eg-zA-Z]$/)?ke(e):/^\d$/.test(e)?xe(e):t&&t.typingSlashWritesDivisionSymbol&&"/"===e?w["÷"](e):t&&t.typingAsteriskWritesTimesSymbol&&"*"===e?w["×"](e):(n=k[e]||w[e])?n(e):W(e)},e.write=function(e,t){var n=this.chToCmd(t,e.options);e.selection&&n.replaces(e.replaceSelection()),e.isTooDeep()||n.createLeftOf(e.show())},e.focus=function(){return this.jQ.addClass("mq-hasCursor"),this.jQ.removeClass("mq-empty"),this},e.blur=function(){return this.jQ.removeClass("mq-hasCursor"),this.isEmpty()&&this.jQ.addClass("mq-empty"),this}});q.p.mouseEvents=!0,E.StaticMath=function(e){return p(e.AbstractMathQuill,function(t,n){this.RootBlock=$,t.__mathquillify=function(e,t){return this.config(e),n.__mathquillify.call(this,"mq-math-mode"),this.__options.mouseEvents&&(this.__controller.delegateMouseEvents(),this.__controller.staticMathTextareaEvents()),this},t.init=function(){n.init.apply(this,arguments),this.__controller.root.postOrder("registerInnerField",this.innerFields=[],e.MathField)},t.latex=function(){var t=n.latex.apply(this,arguments);return arguments.length>0&&this.__controller.root.postOrder("registerInnerField",this.innerFields=[],e.MathField),t}})};var G=p($,B);E.MathField=function(e){return p(e.EditableField,function(e,t){this.RootBlock=G,e.__mathquillify=function(e,n){return this.config(e),n>1&&(this.__controller.root.reflow=o),t.__mathquillify.call(this,"mq-editable-field mq-math-mode"),delete this.__controller.root.reflow,this}})};var K=p(v,function(e,t){function n(e){e.jQ[0].normalize();var t=e.jQ[0].firstChild;if(t){h("only node in TextBlock span is Text node",3===t.nodeType);var n=X(t.data);return n.jQadd(t),e.children().disown(),n.adopt(e,0,0)}}e.ctrlSeq="\\text",e.replaces=function(e){e instanceof x?this.replacedText=e.remove().jQ.text():"string"==typeof e&&(this.replacedText=e)},e.jQadd=function(e){t.jQadd.call(this,e),this.ends[f]&&this.ends[f].jQadd(this.jQ[0].firstChild)},e.createLeftOf=function(e){var n=this;if(t.createLeftOf.call(this,e),n[1].siblingCreated&&n[1].siblingCreated(e.options,f),n[f].siblingCreated&&n[f].siblingCreated(e.options,1),n.bubble("reflow"),e.insAtRightEnd(n),n.replacedText)for(var r=0;r<n.replacedText.length;r+=1)n.write(e,n.replacedText.charAt(r))},e.parser=function(){var e=this,t=j.string,n=j.regex;return j.optWhitespace.then(t("{")).then(n(/^[^}]*/)).skip(t("}")).map(function(t){return 0===t.length?x():(X(t).adopt(e,0,0),e)})},e.textContents=function(){return this.foldChildren("",function(e,t){return e+t.text})},e.text=function(){return'"'+this.textContents()+'"'},e.latex=function(){var e=this.textContents();return 0===e.length?"":"\\text{"+e.replace(/\\/g,"\\backslash ").replace(/[{}]/g,"\\$&")+"}"},e.html=function(){return'<span class="mq-text-mode" mathquill-command-id='+this.id+">"+this.textContents()+"</span>"},e.moveTowards=function(e,t){t.insAtDirEnd(-e,this)},e.moveOutOf=function(e,t){t.insDirOf(e,this)},e.unselectInto=e.moveTowards,e.selectTowards=U.prototype.selectTowards,e.deleteTowards=U.prototype.deleteTowards,e.selectOutOf=function(e,t){t.insDirOf(e,this)},e.deleteOutOf=function(e,t){this.isEmpty()&&t.insRightOf(this)},e.write=function(e,n){if(e.show().deleteSelection(),"$"!==n)e[f]?e[f].appendText(n):X(n).createLeftOf(e);else if(this.isEmpty())e.insRightOf(this),W("\\$","$").createLeftOf(e);else if(e[1])if(e[f]){var r=K(),i=this.ends[f];i.disown().jQ.detach(),i.adopt(r,0,0),e.insLeftOf(this),t.createLeftOf.call(r,e)}else e.insLeftOf(this);else e.insRightOf(this)},e.seek=function(e,t){t.hide();var r=n(this),i=this.jQ.width()/this.text.length,a=Math.round((e-this.jQ.offset().left)/i);a<=0?t.insAtLeftEnd(this):a>=r.text.length?t.insAtRightEnd(this):t.insLeftOf(r.splitRight(a));for(var o=e-t.show().offset().left,s=o&&o<0?f:1,l=s;t[s]&&o*l>0;)t[s].moveTowards(s,t),l=o,o=e-t.offset().left;if(s*o<-s*l&&t[-s].moveTowards(-s,t),t.anticursor){if(t.anticursor.parent===this){var u=t[f]&&t[f].text.length;if(this.anticursorPosition===u)t.anticursor=b.copy(t);else{if(this.anticursorPosition<u){var c=t[f].splitRight(this.anticursorPosition);t[f]=c}else c=t[1].splitRight(this.anticursorPosition-u);t.anticursor=b(this,c[f],c)}}}else this.anticursorPosition=t[f]&&t[f].text.length},e.blur=function(e){$.prototype.blur.call(this),e&&(""===this.textContents()?(this.remove(),e[f]===this?e[f]=this[f]:e[1]===this&&(e[1]=this[1])):n(this))},e.focus=$.prototype.focus}),X=p(v,function(e,t){function n(e,t){return t.charAt(e===f?0:-1+t.length)}e.init=function(e){t.init.call(this),this.text=e},e.jQadd=function(e){this.dom=e,this.jQ=g(e)},e.jQize=function(){return this.jQadd(document.createTextNode(this.text))},e.appendText=function(e){this.text+=e,this.dom.appendData(e)},e.prependText=function(e){this.text=e+this.text,this.dom.insertData(0,e)},e.insTextAtDirEnd=function(e,t){m(t),1===t?this.appendText(e):this.prependText(e)},e.splitRight=function(e){var t=X(this.text.slice(e)).adopt(this.parent,this,this[1]);return t.jQadd(this.dom.splitText(e)),this.text=this.text.slice(0,e),t},e.moveTowards=function(e,t){m(e);var r=n(-e,this.text),i=this[-e];return i?i.insTextAtDirEnd(r,e):X(r).createDir(-e,t),this.deleteTowards(e,t)},e.latex=function(){return this.text},e.deleteTowards=function(e,t){this.text.length>1?1===e?(this.dom.deleteData(0,1),this.text=this.text.slice(1)):(this.dom.deleteData(-1+this.text.length,1),this.text=this.text.slice(0,-1)):(this.remove(),this.jQ.remove(),t[e]=this[e])},e.selectTowards=function(e,t){m(e);var r=t.anticursor,i=n(-e,this.text);if(r[e]===this){var a=X(i).createDir(e,t);r[e]=a,t.insDirOf(e,a)}else{var o=this[-e];o?o.insTextAtDirEnd(i,e):(a=X(i).createDir(-e,t)).jQ.insDirOf(-e,t.selection.jQ),1===this.text.length&&r[-e]===this&&(r[-e]=this[-e])}return this.deleteTowards(e,t)}});function Y(e,t,n){return p(K,{ctrlSeq:e,htmlTemplate:"<"+t+" "+n+">&0</"+t+">"})}w.text=w.textnormal=w.textrm=w.textup=w.textmd=K,w.em=w.italic=w.italics=w.emph=w.textit=w.textsl=Y("\\textit","i",'class="mq-text-mode"'),w.strong=w.bold=w.textbf=Y("\\textbf","b",'class="mq-text-mode"'),w.sf=w.textsf=Y("\\textsf","span",'class="mq-sans-serif mq-text-mode"'),w.tt=w.texttt=Y("\\texttt","span",'class="mq-monospace mq-text-mode"'),w.textsc=Y("\\textsc","span",'style="font-variant:small-caps" class="mq-text-mode"'),w.uppercase=Y("\\uppercase","span",'style="text-transform:uppercase" class="mq-text-mode"'),w.lowercase=Y("\\lowercase","span",'style="text-transform:lowercase" class="mq-text-mode"');var Z=p(U,function(e,t){e.init=function(e){t.init.call(this,"$"),this.cursor=e},e.htmlTemplate='<span class="mq-math-mode">&0</span>',e.createBlocks=function(){t.createBlocks.call(this),this.ends[f].cursor=this.cursor,this.ends[f].write=function(e,t){"$"!==t?$.prototype.write.call(this,e,t):this.isEmpty()?(e.insRightOf(this.parent),this.parent.deleteTowards(dir,e),W("\\$","$").createLeftOf(e.show())):e[1]?e[f]?$.prototype.write.call(this,e,t):e.insLeftOf(this.parent):e.insRightOf(this.parent)}},e.latex=function(){return"$"+this.ends[f].latex()+"$"}}),J=p(G,function(e,t){e.keystroke=function(e){if("Spacebar"!==e&&"Shift-Spacebar"!==e)return t.keystroke.apply(this,arguments)},e.write=function(e,t){var n;e.show().deleteSelection(),"$"===t?Z(e).createLeftOf(e):("<"===t?n="&lt;":">"===t&&(n="&gt;"),W(t,n).createLeftOf(e))}});E.TextField=function(e){return p(e.EditableField,function(e,t){this.RootBlock=J,e.__mathquillify=function(){return t.__mathquillify.call(this,"mq-editable-field mq-text-mode")},e.latex=function(e){return arguments.length>0?(this.__controller.renderLatexText(e),this.__controller.blurred&&this.__controller.cursor.hide().parent.blur(),this):this.__controller.exportLatex()}})},k["\\"]=p(U,function(e,t){e.ctrlSeq="\\",e.replaces=function(e){this._replacedFragment=e.disown(),this.isEmpty=function(){return!1}},e.htmlTemplate='<span class="mq-latex-command-input mq-non-leaf">\\<span>&0</span></span>',e.textTemplate=["\\"],e.createBlocks=function(){t.createBlocks.call(this),this.ends[f].focus=function(){return this.parent.jQ.addClass("mq-hasCursor"),this.isEmpty()&&this.parent.jQ.removeClass("mq-empty"),this},this.ends[f].blur=function(){return this.parent.jQ.removeClass("mq-hasCursor"),this.isEmpty()&&this.parent.jQ.addClass("mq-empty"),this},this.ends[f].write=function(e,t){e.show().deleteSelection(),t.match(/[a-z]/i)?W(t).createLeftOf(e):(this.parent.renderCommand(e),"\\"===t&&this.isEmpty()||e.parent.write(e,t))},this.ends[f].keystroke=function(e,n,r){return"Tab"===e||"Enter"===e||"Spacebar"===e?(this.parent.renderCommand(r.cursor),void n.preventDefault()):t.keystroke.apply(this,arguments)}},e.createLeftOf=function(e){if(t.createLeftOf.call(this,e),this._replacedFragment){var n=this.jQ[0];this.jQ=this._replacedFragment.jQ.addClass("mq-blur").bind("mousedown mousemove",function(e){return g(e.target=n).trigger(e),!1}).insertBefore(this.jQ).add(this.jQ)}},e.latex=function(){return"\\"+this.ends[f].latex()+" "},e.renderCommand=function(e){this.jQ=this.jQ.last(),this.remove(),this[1]?e.insLeftOf(this[1]):e.insAtRightEnd(this.parent);var t=this.ends[f].latex();t||(t=" ");var n=w[t];n?(n=n(t),this._replacedFragment&&n.replaces(this._replacedFragment),n.createLeftOf(e)):((n=K()).replaces(t),n.createLeftOf(e),e.insRightOf(n),this._replacedFragment&&this._replacedFragment.remove())}});var ee,te,ne=o,re=document.createElement("div").style;for(var ie in{transform:1,WebkitTransform:1,MozTransform:1,OTransform:1,msTransform:1})if(ie in re){te=ie;break}te?ee=function(e,t,n){e.css(te,"scale("+t+","+n+")")}:"filter"in re?(ne=function(e){e.className=e.className},ee=function(e,t,n){t/=1+(n-1)/2,e.css("fontSize",n+"em"),e.hasClass("mq-matrixed-container")||e.addClass("mq-matrixed-container").wrapInner('<span class="mq-matrixed"></span>');var r=e.children().css("filter","progid:DXImageTransform.Microsoft.Matrix(M11="+t+",SizingMethod='auto expand')");function i(){e.css("marginRight",(r.width()-1)*(t-1)/t+"px")}i();var a=setInterval(i);g(window).load(function(){clearTimeout(a),i()})}):ee=function(e,t,n){e.css("fontSize",n+"em")};var ae=p(U,function(e,t){e.init=function(e,n,r){t.init.call(this,e,"<"+n+" "+r+">&0</"+n+">")}});w.mathrm=d(ae,"\\mathrm","span",'class="mq-roman mq-font"'),w.mathit=d(ae,"\\mathit","i",'class="mq-font"'),w.mathbf=d(ae,"\\mathbf","b",'class="mq-font"'),w.mathsf=d(ae,"\\mathsf","span",'class="mq-sans-serif mq-font"'),w.mathtt=d(ae,"\\mathtt","span",'class="mq-monospace mq-font"'),w.underline=d(ae,"\\underline","span",'class="mq-non-leaf mq-underline"'),w.overline=w.bar=d(ae,"\\overline","span",'class="mq-non-leaf mq-overline"'),w.overrightarrow=d(ae,"\\overrightarrow","span",'class="mq-non-leaf mq-overarrow mq-arrow-right"'),w.overleftarrow=d(ae,"\\overleftarrow","span",'class="mq-non-leaf mq-overarrow mq-arrow-left"'),w.overleftrightarrow=d(ae,"\\overleftrightarrow","span",'class="mq-non-leaf mq-overarrow mq-arrow-both"'),w.overarc=d(ae,"\\overarc","span",'class="mq-non-leaf mq-overarc"'),w.dot=p(U,function(e,t){e.init=function(){t.init.call(this,"\\dot",'<span class="mq-non-leaf"><span class="mq-dot-recurring-inner"><span class="mq-dot-recurring">&#x2d9;</span><span class="mq-empty-box">&0</span></span></span>')}}),w.textcolor=p(U,function(e,t){e.setColor=function(e){this.color=e,this.htmlTemplate='<span class="mq-textcolor" style="color:'+e+'">&0</span>'},e.latex=function(){return"\\textcolor{"+this.color+"}{"+this.blocks[0].latex()+"}"},e.parser=function(){var e=this,n=j.optWhitespace,r=j.string,i=j.regex;return n.then(r("{")).then(i(/^[#\w\s.,()%-]*/)).skip(r("}")).then(function(n){return e.setColor(n),t.parser.call(e)})},e.isStyleBlock=function(){return!0}}),w.class=p(U,function(e,t){e.parser=function(){var e=this,n=j.string,r=j.regex;return j.optWhitespace.then(n("{")).then(r(/^[-\w\s\\\xA0-\xFF]*/)).skip(n("}")).then(function(n){return e.cls=n||"",e.htmlTemplate='<span class="mq-class '+n+'">&0</span>',t.parser.call(e)})},e.latex=function(){return"\\class{"+this.cls+"}{"+this.blocks[0].latex()+"}"},e.isStyleBlock=function(){return!0}});var oe=p(U,function(e,t){e.ctrlSeq="_{...}^{...}",e.createLeftOf=function(e){if(this.replacedFragment||e[f]||!e.options.supSubsRequireOperand)return t.createLeftOf.apply(this,arguments)},e.contactWeld=function(e){for(var t=f;t;t=t===f&&1)if(this[t]instanceof oe){for(var n="sub";n;n="sub"===n&&"sup"){var r=this[n],i=this[t][n];if(r){if(i)if(r.isEmpty())o=b(i,0,i.ends[f]);else{r.jQ.children().insAtDirEnd(-t,i.jQ);var a=r.children().disown(),o=b(i,a.ends[1],i.ends[f]);t===f?a.adopt(i,i.ends[1],0):a.adopt(i,0,i.ends[f])}else this[t].addBlock(r.disown());this.placeCursor=function(e,n){return function(r){r.insAtDirEnd(-t,e||n)}}(i,r)}}this.remove(),e&&e[f]===this&&(1===t&&o?o[f]?e.insRightOf(o[f]):e.insAtLeftEnd(o.parent):e.insRightOf(this[t]));break}},q.p.charsThatBreakOutOfSupSub="",e.finalizeTree=function(){this.ends[f].write=function(e,t){if(e.options.autoSubscriptNumerals&&this===this.parent.sub){if("_"===t)return;var n=this.chToCmd(t,e.options);return n instanceof Q?e.deleteSelection():e.clearSelection().insRightOf(this.parent),n.createLeftOf(e.show())}e[f]&&!e[1]&&!e.selection&&e.options.charsThatBreakOutOfSupSub.indexOf(t)>-1&&e.insRightOf(this.parent),$.p.write.apply(this,arguments)}},e.moveTowards=function(e,n,r){n.options.autoSubscriptNumerals&&!this.sup?n.insDirOf(e,this):t.moveTowards.apply(this,arguments)},e.deleteTowards=function(e,n){if(n.options.autoSubscriptNumerals&&this.sub){var r=this.sub.ends[-e];r instanceof Q?r.remove():r&&r.deleteTowards(e,n.insAtDirEnd(-e,this.sub)),this.sub.isEmpty()&&(this.sub.deleteOutOf(f,n.insAtLeftEnd(this.sub)),this.sup&&n.insDirOf(-e,this))}else t.deleteTowards.apply(this,arguments)},e.latex=function(){function e(e,t){var n=t&&t.latex();return t?e+(1===n.length?n:"{"+(n||" ")+"}"):""}return e("_",this.sub)+e("^",this.sup)},e.addBlock=function(e){"sub"===this.supsub?(this.sup=this.upInto=this.sub.upOutOf=e,e.adopt(this,this.sub,0).downOutOf=this.sub,e.jQ=g('<span class="mq-sup"/>').append(e.jQ.children()).attr(r,e.id).prependTo(this.jQ)):(this.sub=this.downInto=this.sup.downOutOf=e,e.adopt(this,0,this.sup).upOutOf=this.sup,e.jQ=g('<span class="mq-sub"></span>').append(e.jQ.children()).attr(r,e.id).appendTo(this.jQ.removeClass("mq-sup-only")),this.jQ.append('<span style="display:inline-block;width:0">&#8203;</span>'));for(var t=0;t<2;t+=1)!function(e,t,n,r){e[t].deleteOutOf=function(i,a){if(a.insDirOf(this[i]?-i:i,this.parent),!this.isEmpty()){var o=this.ends[i];this.children().disown().withDirAdopt(i,a.parent,a[i],a[-i]).jQ.insDirOf(-i,a.jQ),a[-i]=o}e.supsub=n,delete e[t],delete e[r+"Into"],e[n][r+"OutOf"]=se,delete e[n].deleteOutOf,"sub"===t&&g(e.jQ.addClass("mq-sup-only")[0].lastChild).remove(),this.remove()}}(this,"sub sup".split(" ")[t],"sup sub".split(" ")[t],"down up".split(" ")[t])},e.reflow=function(){var e=this.jQ,t=e.prev();if(t.length){var n=e.children(".mq-sup");if(n.length){var r=parseInt(n.css("font-size")),i=n.offset().top+n.height()-t.offset().top-.7*r,a=parseInt(n.css("margin-bottom"));n.css("margin-bottom",a+i)}}}});function se(e){var t=this.parent,n=e;do{if(n[1])return e.insLeftOf(t);n=n.parent.parent}while(n!==t);e.insRightOf(t)}w.subscript=w._=p(oe,function(e,t){e.supsub="sub",e.htmlTemplate='<span class="mq-supsub mq-non-leaf"><span class="mq-sub">&0</span><span style="display:inline-block;width:0">&#8203;</span></span>',e.textTemplate=["_"],e.finalizeTree=function(){this.downInto=this.sub=this.ends[f],this.sub.upOutOf=se,t.finalizeTree.call(this)}}),w.superscript=w.supscript=w["^"]=p(oe,function(e,t){e.supsub="sup",e.htmlTemplate='<span class="mq-supsub mq-non-leaf mq-sup-only"><span class="mq-sup">&0</span></span>',e.textTemplate=["^"],e.finalizeTree=function(){this.upInto=this.sup=this.ends[1],this.sup.downOutOf=se,t.finalizeTree.call(this)}});var le=p(U,function(e,t){e.init=function(e,t){var n='<span class="mq-large-operator mq-non-leaf"><span class="mq-to"><span>&1</span></span><big>'+t+'</big><span class="mq-from"><span>&0</span></span></span>';Q.prototype.init.call(this,e,n)},e.createLeftOf=function(e){t.createLeftOf.apply(this,arguments),e.options.sumStartsWithNEquals&&(ke("n").createLeftOf(e),Le().createLeftOf(e))},e.latex=function(){function e(e){return 1===e.length?e:"{"+(e||" ")+"}"}return this.ctrlSeq+"_"+e(this.ends[f].latex())+"^"+e(this.ends[1].latex())},e.parser=function(){for(var e=j.string,t=j.optWhitespace,n=j.succeed,r=H.block,i=this,a=i.blocks=[$(),$()],o=0;o<a.length;o+=1)a[o].adopt(i,i.ends[1],0);return t.then(e("_").or(e("^"))).then(function(e){var t=a["_"===e?0:1];return r.then(function(e){return e.children().adopt(t,t.ends[1],0),n(i)})}).many().result(i)},e.finalizeTree=function(){this.downInto=this.ends[f],this.upInto=this.ends[1],this.ends[f].upOutOf=this.ends[1],this.ends[1].downOutOf=this.ends[f]}});w["∑"]=w.sum=w.summation=d(le,"\\sum ","&sum;"),w["∏"]=w.prod=w.product=d(le,"\\prod ","&prod;"),w.coprod=w.coproduct=d(le,"\\coprod ","&#8720;"),w["∫"]=w.int=w.integral=p(le,function(e,t){e.init=function(){Q.prototype.init.call(this,"\\int ",'<span class="mq-int mq-non-leaf"><big>&int;</big><span class="mq-supsub mq-non-leaf"><span class="mq-sup"><span class="mq-sup-inner">&1</span></span><span class="mq-sub">&0</span><span style="display:inline-block;width:0">&#8203</span></span></span>')},e.createLeftOf=U.p.createLeftOf});var ue=w.frac=w.dfrac=w.cfrac=w.fraction=p(U,function(e,t){e.ctrlSeq="\\frac",e.htmlTemplate='<span class="mq-fraction mq-non-leaf"><span class="mq-numerator">&0</span><span class="mq-denominator">&1</span><span style="display:inline-block;width:0">&#8203;</span></span>',e.textTemplate=["(",")/(",")"],e.finalizeTree=function(){this.upInto=this.ends[1].upOutOf=this.ends[f],this.downInto=this.ends[f].downOutOf=this.ends[1]}}),ce=w.over=k["/"]=p(ue,function(e,t){e.createLeftOf=function(e){if(!this.replacedFragment){for(var n=e[f];n&&!(n instanceof V||n instanceof(w.text||o)||n instanceof le||"\\ "===n.ctrlSeq||/^[,;:]$/.test(n.ctrlSeq));)n=n[f];n instanceof le&&n[1]instanceof oe&&(n=n[1])[1]instanceof oe&&n[1].ctrlSeq!=n.ctrlSeq&&(n=n[1]),n===e[f]||e.isTooDeep(1)||(this.replaces(x(n[1]||e.parent.ends[f],e[f])),e[f]=n)}t.createLeftOf.call(this,e)}}),de=w.sqrt=w["√"]=p(U,function(e,t){e.ctrlSeq="\\sqrt",e.htmlTemplate='<span class="mq-non-leaf"><span class="mq-scaled mq-sqrt-prefix">&radic;</span><span class="mq-non-leaf mq-sqrt-stem">&0</span></span>',e.textTemplate=["sqrt(",")"],e.parser=function(){return H.optBlock.then(function(e){return H.block.map(function(t){var n=he();return n.blocks=[e,t],e.adopt(n,0,0),t.adopt(n,e,0),n})}).or(t.parser.call(this))},e.reflow=function(){var e=this.ends[1].jQ;ee(e.prev(),1,e.innerHeight()/+e.css("fontSize").slice(0,-2)-.1)}}),he=(w.hat=p(U,function(e,t){e.ctrlSeq="\\hat",e.htmlTemplate='<span class="mq-non-leaf"><span class="mq-hat-prefix">^</span><span class="mq-hat-stem">&0</span></span>',e.textTemplate=["hat(",")"]}),w.nthroot=p(de,function(e,t){e.htmlTemplate='<sup class="mq-nthroot mq-non-leaf">&0</sup><span class="mq-scaled"><span class="mq-sqrt-prefix mq-scaled">&radic;</span><span class="mq-sqrt-stem mq-non-leaf">&1</span></span>',e.textTemplate=["sqrt[","](",")"],e.latex=function(){return"\\sqrt["+this.ends[f].latex()+"]{"+this.ends[1].latex()+"}"}})),pe=p(U,function(e,t){e.init=function(e,n,r){var i='<span class="mq-non-leaf"><span class="mq-diacritic-above">'+n+'</span><span class="mq-diacritic-stem">&0</span></span>';t.init.call(this,e,i,r)}});function fe(e,t){e.jQadd=function(){t.jQadd.apply(this,arguments),this.delimjQs=this.jQ.children(":first").add(this.jQ.children(":last")),this.contentjQ=this.jQ.children(":eq(1)")},e.reflow=function(){var e=this.contentjQ.outerHeight()/parseFloat(this.contentjQ.css("fontSize"));ee(this.delimjQs,i(1+.2*(e-1),1.2),1.2*e)}}w.vec=d(pe,"\\vec","&rarr;",["vec(",")"]),w.tilde=d(pe,"\\tilde","~",["tilde(",")"]);var me=p(p(U,fe),function(t,n){t.init=function(t,r,i,a,o){n.init.call(this,"\\left"+a,e,[r,i]),this.side=t,this.sides={},this.sides[f]={ch:r,ctrlSeq:a},this.sides[1]={ch:i,ctrlSeq:o}},t.numBlocks=function(){return 1},t.html=function(){return this.htmlTemplate='<span class="mq-non-leaf"><span class="mq-scaled mq-paren'+(1===this.side?" mq-ghost":"")+'">'+this.sides[f].ch+'</span><span class="mq-non-leaf">&0</span><span class="mq-scaled mq-paren'+(this.side===f?" mq-ghost":"")+'">'+this.sides[1].ch+"</span></span>",n.html.call(this)},t.latex=function(){return"\\left"+this.sides[f].ctrlSeq+this.ends[f].latex()+"\\right"+this.sides[1].ctrlSeq},t.matchBrack=function(e,t,n){return n instanceof me&&n.side&&n.side!==-t&&(!e.restrictMismatchedBrackets||ge[this.sides[this.side].ch]===n.sides[n.side].ch||{"(":"]","[":")"}[this.sides[f].ch]===n.sides[1].ch)&&n},t.closeOpposing=function(e){e.side=0,e.sides[this.side]=this.sides[this.side],e.delimjQs.eq(this.side===f?0:1).removeClass("mq-ghost").html(this.sides[this.side].ch)},t.createLeftOf=function(e){if(!this.replacedFragment){var t=e.options;if("|"===this.sides[f].ch)var r=this.matchBrack(t,1,e[1])||this.matchBrack(t,f,e[f])||this.matchBrack(t,0,e.parent.parent);else r=this.matchBrack(t,-this.side,e[-this.side])||this.matchBrack(t,-this.side,e.parent.parent)}if(r){var i=this.side=-r.side;this.closeOpposing(r),r===e.parent.parent&&e[i]&&x(e[i],e.parent.ends[i],-i).disown().withDirAdopt(-i,r.parent,r,r[i]).jQ.insDirOf(i,r.jQ),r.bubble("reflow")}else i=(r=this).side,r.replacedFragment?r.side=0:e[-i]&&(r.replaces(x(e[-i],e.parent.ends[-i],i)),e[-i]=0),n.createLeftOf.call(r,e);i===f?e.insAtLeftEnd(r.ends[f]):e.insRightOf(r)},t.placeCursor=o,t.unwrap=function(){this.ends[f].children().disown().adopt(this.parent,this,this[1]).jQ.insertAfter(this.jQ),this.remove()},t.deleteSide=function(e,t,n){var r=this.parent,i=this[e],a=r.ends[e];if(e===this.side)return this.unwrap(),void(i?n.insDirOf(-e,i):n.insAtDirEnd(e,r));var o=n.options,s=!this.side;if(this.side=-e,this.matchBrack(o,e,this.ends[f].ends[this.side])){this.closeOpposing(this.ends[f].ends[this.side]);var l=this.ends[f].ends[e];this.unwrap(),l.siblingCreated&&l.siblingCreated(n.options,e),i?n.insDirOf(-e,i):n.insAtDirEnd(e,r)}else{if(this.matchBrack(o,e,this.parent.parent))this.parent.parent.closeOpposing(this),this.parent.parent.unwrap();else{if(t&&s)return this.unwrap(),void(i?n.insDirOf(-e,i):n.insAtDirEnd(e,r));this.sides[e]={ch:ge[this.sides[this.side].ch],ctrlSeq:ge[this.sides[this.side].ctrlSeq]},this.delimjQs.removeClass("mq-ghost").eq(e===f?0:1).addClass("mq-ghost").html(this.sides[e].ch)}i?(l=this.ends[f].ends[e],x(i,a,-e).disown().withDirAdopt(-e,this.ends[f],l,0).jQ.insAtDirEnd(e,this.ends[f].jQ.removeClass("mq-empty")),l.siblingCreated&&l.siblingCreated(n.options,e),n.insDirOf(-e,i)):t?n.insDirOf(e,this):n.insAtDirEnd(e,this.ends[f])}},t.deleteTowards=function(e,t){this.deleteSide(-e,!1,t)},t.finalizeTree=function(){this.ends[f].deleteOutOf=function(e,t){this.parent.deleteSide(e,!0,t)},this.finalizeTree=this.intentionalBlur=function(){this.delimjQs.eq(this.side===f?1:0).removeClass("mq-ghost"),this.side=0}},t.siblingCreated=function(e,t){t===-this.side&&this.finalizeTree()}}),ge={"(":")",")":"(","[":"]","]":"[","{":"}","}":"{","\\{":"\\}","\\}":"\\{","&lang;":"&rang;","&rang;":"&lang;","\\langle ":"\\rangle ","\\rangle ":"\\langle ","|":"|","\\lVert ":"\\rVert ","\\rVert ":"\\lVert "};function be(e,t){t=t||e;var n=ge[e],r=ge[t];k[e]=d(me,f,e,n,t,r),k[n]=d(me,1,e,n,t,r)}be("("),be("["),be("{","\\{"),w.langle=d(me,f,"&lang;","&rang;","\\langle ","\\rangle "),w.rangle=d(me,1,"&lang;","&rang;","\\langle ","\\rangle "),k["|"]=d(me,f,"|","|","|","|"),w.lVert=d(me,f,"&#8741;","&#8741;","\\lVert ","\\rVert "),w.rVert=d(me,1,"&#8741;","&#8741;","\\lVert ","\\rVert "),w.left=p(U,function(e){e.parser=function(){var e=j.regex,t=j.string,n=(j.succeed,j.optWhitespace);return n.then(e(/^(?:[([|]|\\\{|\\langle(?![a-zA-Z])|\\lVert(?![a-zA-Z]))/)).then(function(r){var i="\\"===r.charAt(0)?r.slice(1):r;return"\\langle"==r&&(i="&lang;",r+=" "),"\\lVert"==r&&(i="&#8741;",r+=" "),H.then(function(a){return t("\\right").skip(n).then(e(/^(?:[\])|]|\\\}|\\rangle(?![a-zA-Z])|\\rVert(?![a-zA-Z]))/)).map(function(e){var t="\\"===e.charAt(0)?e.slice(1):e;"\\rangle"==e&&(t="&rang;",e+=" "),"\\rVert"==e&&(t="&#8741;",e+=" ");var n=me(0,i,t,r,e);return n.blocks=[a],a.adopt(n,0,0),n})})})}}),w.right=p(U,function(e){e.parser=function(){return j.fail("unmatched \\right")}});var ve=w.binom=w.binomial=p(p(U,fe),function(e,t){e.ctrlSeq="\\binom",e.htmlTemplate='<span class="mq-non-leaf"><span class="mq-paren mq-scaled">(</span><span class="mq-non-leaf"><span class="mq-array mq-non-leaf"><span>&0</span><span>&1</span></span></span><span class="mq-paren mq-scaled">)</span></span>',e.textTemplate=["choose(",",",")"]});w.choose=p(ve,function(e){e.createLeftOf=ce.prototype.createLeftOf}),w.editable=w.MathQuillMathField=p(U,function(e,t){e.ctrlSeq="\\MathQuillMathField",e.htmlTemplate='<span class="mq-editable-field"><span class="mq-root-block">&0</span></span>',e.parser=function(){var e=this,n=j.string,r=j.regex,i=j.succeed;return n("[").then(r(/^[a-z][a-z0-9]*/i)).skip(n("]")).map(function(t){e.name=t}).or(i()).then(t.parser.call(e))},e.finalizeTree=function(e){var t=T(this.ends[f],this.jQ,e);t.KIND_OF_MQ="MathField",t.editable=!0,t.createTextarea(),t.editablesTextareaEvents(),t.cursor.insAtRightEnd(t.root),B(t.root)},e.registerInnerField=function(e,t){e.push(e[this.name]=t(this.ends[f].controller))},e.latex=function(){return this.ends[f].latex()},e.text=function(){return this.ends[f].text()}});var ye=w.embed=p(Q,function(e,t){e.setOptions=function(e){function t(){return""}return this.text=e.text||t,this.htmlTemplate=e.htmlString||"",this.latex=e.latex||t,this},e.parser=function(){var e=this,t=j.string,n=j.regex,r=j.succeed;return t("{").then(n(/^[a-z][a-z0-9]*/i)).skip(t("}")).then(function(i){return t("[").then(n(/^[-\w\s]*/)).skip(t("]")).or(r()).map(function(t){return e.setOptions(N[i](t))})})}});w.notin=w.cong=w.equiv=w.oplus=w.otimes=p(V,function(e,t){e.init=function(e){t.init.call(this,"\\"+e+" ","&"+e+";")}}),w["≠"]=w.ne=w.neq=d(V,"\\ne ","&ne;"),w["∗"]=w.ast=w.star=w.loast=w.lowast=d(V,"\\ast ","&lowast;"),w.therefor=w.therefore=d(V,"\\therefore ","&there4;"),w.cuz=w.because=d(V,"\\because ","&#8757;"),w.prop=w.propto=d(V,"\\propto ","&prop;"),w["≈"]=w.asymp=w.approx=d(V,"\\approx ","&asymp;"),w.isin=w.in=d(V,"\\in ","&isin;"),w.ni=w.contains=d(V,"\\ni ","&ni;"),w.notni=w.niton=w.notcontains=w.doesnotcontain=d(V,"\\not\\ni ","&#8716;"),w.sub=w.subset=d(V,"\\subset ","&sub;"),w.sup=w.supset=w.superset=d(V,"\\supset ","&sup;"),w.nsub=w.notsub=w.nsubset=w.notsubset=d(V,"\\not\\subset ","&#8836;"),w.nsup=w.notsup=w.nsupset=w.notsupset=w.nsuperset=w.notsuperset=d(V,"\\not\\supset ","&#8837;"),w.sube=w.subeq=w.subsete=w.subseteq=d(V,"\\subseteq ","&sube;"),w.supe=w.supeq=w.supsete=w.supseteq=w.supersete=w.superseteq=d(V,"\\supseteq ","&supe;"),w.nsube=w.nsubeq=w.notsube=w.notsubeq=w.nsubsete=w.nsubseteq=w.notsubsete=w.notsubseteq=d(V,"\\not\\subseteq ","&#8840;"),w.nsupe=w.nsupeq=w.notsupe=w.notsupeq=w.nsupsete=w.nsupseteq=w.notsupsete=w.notsupseteq=w.nsupersete=w.nsuperseteq=w.notsupersete=w.notsuperseteq=d(V,"\\not\\supseteq ","&#8841;"),w.N=w.naturals=w.Naturals=d(W,"\\mathbb{N}","&#8469;"),w.P=w.primes=w.Primes=w.projective=w.Projective=w.probability=w.Probability=d(W,"\\mathbb{P}","&#8473;"),w.Z=w.integers=w.Integers=d(W,"\\mathbb{Z}","&#8484;"),w.Q=w.rationals=w.Rationals=d(W,"\\mathbb{Q}","&#8474;"),w.R=w.reals=w.Reals=d(W,"\\mathbb{R}","&#8477;"),w.C=w.complex=w.Complex=w.complexes=w.Complexes=w.complexplane=w.Complexplane=w.ComplexPlane=d(W,"\\mathbb{C}","&#8450;"),w.H=w.Hamiltonian=w.quaternions=w.Quaternions=d(W,"\\mathbb{H}","&#8461;"),w.quad=w.emsp=d(W,"\\quad "," "),w.qquad=d(W,"\\qquad "," "),w.diamond=d(W,"\\diamond ","&#9671;"),w.bigtriangleup=d(W,"\\bigtriangleup ","&#9651;"),w.ominus=d(W,"\\ominus ","&#8854;"),w.uplus=d(W,"\\uplus ","&#8846;"),w.bigtriangledown=d(W,"\\bigtriangledown ","&#9661;"),w.sqcap=d(W,"\\sqcap ","&#8851;"),w.triangleleft=d(W,"\\triangleleft ","&#8882;"),w.sqcup=d(W,"\\sqcup ","&#8852;"),w.triangleright=d(W,"\\triangleright ","&#8883;"),w.odot=w.circledot=d(W,"\\odot ","&#8857;"),w.bigcirc=d(W,"\\bigcirc ","&#9711;"),w.dagger=d(W,"\\dagger ","&#0134;"),w.ddagger=d(W,"\\ddagger ","&#135;"),w.wr=d(W,"\\wr ","&#8768;"),w.amalg=d(W,"\\amalg ","&#8720;"),w.models=d(W,"\\models ","&#8872;"),w.prec=d(W,"\\prec ","&#8826;"),w.succ=d(W,"\\succ ","&#8827;"),w.preceq=d(W,"\\preceq ","&#8828;"),w.succeq=d(W,"\\succeq ","&#8829;"),w.simeq=d(W,"\\simeq ","&#8771;"),w.mid=d(W,"\\mid ","&#8739;"),w.ll=d(W,"\\ll ","&#8810;"),w.gg=d(W,"\\gg ","&#8811;"),w.parallel=d(W,"\\parallel ","&#8741;"),w.nparallel=d(W,"\\nparallel ","&#8742;"),w.bowtie=d(W,"\\bowtie ","&#8904;"),w.sqsubset=d(W,"\\sqsubset ","&#8847;"),w.sqsupset=d(W,"\\sqsupset ","&#8848;"),w.smile=d(W,"\\smile ","&#8995;"),w.sqsubseteq=d(W,"\\sqsubseteq ","&#8849;"),w.sqsupseteq=d(W,"\\sqsupseteq ","&#8850;"),w.doteq=d(W,"\\doteq ","&#8784;"),w.frown=d(W,"\\frown ","&#8994;"),w.vdash=d(W,"\\vdash ","&#8870;"),w.dashv=d(W,"\\dashv ","&#8867;"),w.nless=d(W,"\\nless ","&#8814;"),w.ngtr=d(W,"\\ngtr ","&#8815;"),w.longleftarrow=d(W,"\\longleftarrow ","&#8592;"),w.longrightarrow=d(W,"\\longrightarrow ","&#8594;"),w.Longleftarrow=d(W,"\\Longleftarrow ","&#8656;"),w.Longrightarrow=d(W,"\\Longrightarrow ","&#8658;"),w.longleftrightarrow=d(W,"\\longleftrightarrow ","&#8596;"),w.updownarrow=d(W,"\\updownarrow ","&#8597;"),w.Longleftrightarrow=d(W,"\\Longleftrightarrow ","&#8660;"),w.Updownarrow=d(W,"\\Updownarrow ","&#8661;"),w.mapsto=d(W,"\\mapsto ","&#8614;"),w.nearrow=d(W,"\\nearrow ","&#8599;"),w.hookleftarrow=d(W,"\\hookleftarrow ","&#8617;"),w.hookrightarrow=d(W,"\\hookrightarrow ","&#8618;"),w.searrow=d(W,"\\searrow ","&#8600;"),w.leftharpoonup=d(W,"\\leftharpoonup ","&#8636;"),w.rightharpoonup=d(W,"\\rightharpoonup ","&#8640;"),w.swarrow=d(W,"\\swarrow ","&#8601;"),w.leftharpoondown=d(W,"\\leftharpoondown ","&#8637;"),w.rightharpoondown=d(W,"\\rightharpoondown ","&#8641;"),w.nwarrow=d(W,"\\nwarrow ","&#8598;"),w.ldots=d(W,"\\ldots ","&#8230;"),w.cdots=d(W,"\\cdots ","&#8943;"),w.vdots=d(W,"\\vdots ","&#8942;"),w.ddots=d(W,"\\ddots ","&#8945;"),w.surd=d(W,"\\surd ","&#8730;"),w.triangle=d(W,"\\triangle ","&#9651;"),w.ell=d(W,"\\ell ","&#8467;"),w.top=d(W,"\\top ","&#8868;"),w.flat=d(W,"\\flat ","&#9837;"),w.natural=d(W,"\\natural ","&#9838;"),w.sharp=d(W,"\\sharp ","&#9839;"),w.wp=d(W,"\\wp ","&#8472;"),w.bot=d(W,"\\bot ","&#8869;"),w.clubsuit=d(W,"\\clubsuit ","&#9827;"),w.diamondsuit=d(W,"\\diamondsuit ","&#9826;"),w.heartsuit=d(W,"\\heartsuit ","&#9825;"),w.spadesuit=d(W,"\\spadesuit ","&#9824;"),w.parallelogram=d(W,"\\parallelogram ","&#9649;"),w.square=d(W,"\\square ","&#11036;"),w.oint=d(W,"\\oint ","&#8750;"),w.bigcap=d(W,"\\bigcap ","&#8745;"),w.bigcup=d(W,"\\bigcup ","&#8746;"),w.bigsqcup=d(W,"\\bigsqcup ","&#8852;"),w.bigvee=d(W,"\\bigvee ","&#8744;"),w.bigwedge=d(W,"\\bigwedge ","&#8743;"),w.bigodot=d(W,"\\bigodot ","&#8857;"),w.bigotimes=d(W,"\\bigotimes ","&#8855;"),w.bigoplus=d(W,"\\bigoplus ","&#8853;"),w.biguplus=d(W,"\\biguplus ","&#8846;"),w.lfloor=d(W,"\\lfloor ","&#8970;"),w.rfloor=d(W,"\\rfloor ","&#8971;"),w.lceil=d(W,"\\lceil ","&#8968;"),w.rceil=d(W,"\\rceil ","&#8969;"),w.opencurlybrace=w.lbrace=d(W,"\\lbrace ","{"),w.closecurlybrace=w.rbrace=d(W,"\\rbrace ","}"),w.lbrack=d(W,"["),w.rbrack=d(W,"]"),w.slash=d(W,"/"),w.vert=d(W,"|"),w.perp=w.perpendicular=d(W,"\\perp ","&perp;"),w.nabla=w.del=d(W,"\\nabla ","&nabla;"),w.hbar=d(W,"\\hbar ","&#8463;"),w.AA=w.Angstrom=w.angstrom=d(W,"\\text\\AA ","&#8491;"),w.ring=w.circ=w.circle=d(W,"\\circ ","&#8728;"),w.bull=w.bullet=d(W,"\\bullet ","&bull;"),w.setminus=w.smallsetminus=d(W,"\\setminus ","&#8726;"),w.not=w["¬"]=w.neg=d(W,"\\neg ","&not;"),w["…"]=w.dots=w.ellip=w.hellip=w.ellipsis=w.hellipsis=d(W,"\\dots ","&hellip;"),w.converges=w.darr=w.dnarr=w.dnarrow=w.downarrow=d(W,"\\downarrow ","&darr;"),w.dArr=w.dnArr=w.dnArrow=w.Downarrow=d(W,"\\Downarrow ","&dArr;"),w.diverges=w.uarr=w.uparrow=d(W,"\\uparrow ","&uarr;"),w.uArr=w.Uparrow=d(W,"\\Uparrow ","&uArr;"),w.to=d(V,"\\to ","&rarr;"),w.rarr=w.rightarrow=d(W,"\\rightarrow ","&rarr;"),w.implies=d(V,"\\Rightarrow ","&rArr;"),w.rArr=w.Rightarrow=d(W,"\\Rightarrow ","&rArr;"),w.gets=d(V,"\\gets ","&larr;"),w.larr=w.leftarrow=d(W,"\\leftarrow ","&larr;"),w.impliedby=d(V,"\\Leftarrow ","&lArr;"),w.lArr=w.Leftarrow=d(W,"\\Leftarrow ","&lArr;"),w.harr=w.lrarr=w.leftrightarrow=d(W,"\\leftrightarrow ","&harr;"),w.iff=d(V,"\\Leftrightarrow ","&hArr;"),w.hArr=w.lrArr=w.Leftrightarrow=d(W,"\\Leftrightarrow ","&hArr;"),w.Re=w.Real=w.real=d(W,"\\Re ","&real;"),w.Im=w.imag=w.image=w.imagin=w.imaginary=w.Imaginary=d(W,"\\Im ","&image;"),w.part=w.partial=d(W,"\\partial ","&part;"),w.infty=w.infin=w.infinity=d(W,"\\infty ","&infin;"),w.pounds=d(W,"\\pounds ","&pound;"),w.alef=w.alefsym=w.aleph=w.alephsym=d(W,"\\aleph ","&alefsym;"),w.xist=w.xists=w.exist=w.exists=d(W,"\\exists ","&exist;"),w.nexists=w.nexist=d(W,"\\nexists ","&#8708;"),w.and=w.land=w.wedge=d(V,"\\wedge ","&and;"),w.or=w.lor=w.vee=d(V,"\\vee ","&or;"),w.o=w.O=w.empty=w.emptyset=w.oslash=w.Oslash=w.nothing=w.varnothing=d(V,"\\varnothing ","&empty;"),w.cup=w.union=d(V,"\\cup ","&cup;"),w.cap=w.intersect=w.intersection=d(V,"\\cap ","&cap;"),w.deg=w.degree=d(W,"\\degree ","&deg;"),w.ang=w.angle=d(W,"\\angle ","&ang;"),w.measuredangle=d(W,"\\measuredangle ","&#8737;");var xe=p(W,function(e,t){e.createLeftOf=function(e){e.options.autoSubscriptNumerals&&e.parent!==e.parent.parent.sub&&(e[f]instanceof we&&!1!==e[f].isItalic||e[f]instanceof oe&&e[f][f]instanceof we&&!1!==e[f][f].isItalic)?(w._().createLeftOf(e),t.createLeftOf.call(this,e),e.insRightOf(e.parent.parent)):t.createLeftOf.call(this,e)}}),we=p(Q,function(e,t){e.init=function(e,n){t.init.call(this,e,"<var>"+(n||e)+"</var>")},e.text=function(){var e=this.ctrlSeq;return this.isPartOfOperator?"\\"==e[0]?e=e.slice(1,e.length):" "==e[e.length-1]&&(e=e.slice(0,-1)):(!this[f]||this[f]instanceof we||this[f]instanceof V||"\\ "===this[f].ctrlSeq||(e="*"+e),!this[1]||this[1]instanceof V||this[1]instanceof oe||(e+="*")),e}});q.p.autoCommands={_maxLength:0},A.autoCommands=function(e){if(!/^[a-z]+(?: [a-z]+)*$/i.test(e))throw'"'+e+'" not a space-delimited list of only letters';for(var t=e.split(" "),n={},r=0,i=0;i<t.length;i+=1){var o=t[i];if(o.length<2)throw'autocommand "'+o+'" not minimum length of 2';if(w[o]===Ee)throw'"'+o+'" is a built-in operator name';n[o]=1,r=a(r,o.length)}return n._maxLength=r,n};var ke=p(we,function(e,t){function n(e){return!e||e instanceof V||e instanceof le}e.init=function(e){return t.init.call(this,this.letter=e)},e.createLeftOf=function(e){t.createLeftOf.apply(this,arguments);var n=e.options.autoCommands,r=n._maxLength;if(r>0){for(var i="",a=this,o=0;a instanceof ke&&a.ctrlSeq===a.letter&&o<r;)i=a.letter+i,a=a[f],o+=1;for(;i.length;){if(n.hasOwnProperty(i)){for(o=1,a=this;o<i.length;o+=1,a=a[f]);return x(a,this).remove(),e[f]=a[f],w[i](i).createLeftOf(e)}i=i.slice(1)}}},e.italicize=function(e){return this.isItalic=e,this.isPartOfOperator=!e,this.jQ.toggleClass("mq-operator-name",!e),this},e.finalizeTree=e.siblingDeleted=e.siblingCreated=function(e,t){t!==f&&this[1]instanceof ke||this.autoUnItalicize(e)},e.autoUnItalicize=function(e){var t=e.autoOperatorNames;if(0!==t._maxLength){for(var r=this.letter,a=this[f];a instanceof ke;a=a[f])r=a.letter+r;for(var o=this[1];o instanceof ke;o=o[1])r+=o.letter;x(a[1]||this.parent.ends[f],o[f]||this.parent.ends[1]).each(function(e){e.italicize(!0).jQ.removeClass("mq-first mq-last mq-followed-by-supsub"),e.ctrlSeq=e.letter});e:for(var s=0,l=a[1]||this.parent.ends[f];s<r.length;s+=1,l=l[1])for(var u=i(t._maxLength,r.length-s);u>0;u-=1){var c=r.slice(s,s+u);if(t.hasOwnProperty(c)){for(var d=0,h=l;d<u;d+=1,h=h[1]){h.italicize(!1);var p=h}var m=Se.hasOwnProperty(c);if(l.ctrlSeq=(m?"\\":"\\operatorname{")+l.ctrlSeq,p.ctrlSeq+=m?" ":"}",Te.hasOwnProperty(c)&&p[f][f][f].jQ.addClass("mq-last"),n(l[f])||l.jQ.addClass("mq-first"),!n(p[1]))if(p[1]instanceof oe){var g=p[1];(g.siblingCreated=g.siblingDeleted=function(){g.jQ.toggleClass("mq-after-operator-name",!(g[1]instanceof me))})()}else p.jQ.toggleClass("mq-last",!(p[1]instanceof me));s+=u-1,l=p;continue e}}}}}),Se={},Ce=q.p.autoOperatorNames={_maxLength:9},Te={limsup:1,liminf:1,projlim:1,injlim:1};!function(){for(var e="arg deg det dim exp gcd hom inf ker lg lim ln log max min sup limsup liminf injlim projlim Pr".split(" "),t=0;t<e.length;t+=1)Se[e[t]]=Ce[e[t]]=1;var n="sin cos tan arcsin arccos arctan sinh cosh tanh sec csc cot coth".split(" ");for(t=0;t<n.length;t+=1)Se[n[t]]=1;var r="sin cos tan sec cosec csc cotan cot ctg".split(" ");for(t=0;t<r.length;t+=1)Ce[r[t]]=Ce["arc"+r[t]]=Ce[r[t]+"h"]=Ce["ar"+r[t]+"h"]=Ce["arc"+r[t]+"h"]=1;var i="gcf hcf lcm proj span".split(" ");for(t=0;t<i.length;t+=1)Ce[i[t]]=1}(),A.autoOperatorNames=function(e){if(!/^[a-z]+(?: [a-z]+)*$/i.test(e))throw'"'+e+'" not a space-delimited list of only letters';for(var t=e.split(" "),n={},r=0,i=0;i<t.length;i+=1){var o=t[i];if(o.length<2)throw'"'+o+'" not minimum length of 2';n[o]=1,r=a(r,o.length)}return n._maxLength=r,n};var Ee=p(Q,function(e,t){e.init=function(e){this.ctrlSeq=e},e.createLeftOf=function(e){for(var t=this.ctrlSeq,n=0;n<t.length;n+=1)ke(t.charAt(n)).createLeftOf(e)},e.parser=function(){for(var e=this.ctrlSeq,t=$(),n=0;n<e.length;n+=1)ke(e.charAt(n)).adopt(t,t.ends[1],0);return j.succeed(t.children())}});for(var qe in Ce)Ce.hasOwnProperty(qe)&&(w[qe]=Ee);w.operatorname=p(U,function(e){e.createLeftOf=o,e.numBlocks=function(){return 1},e.parser=function(){return H.block.map(function(e){return e.children()})}}),w.f=p(ke,function(e,t){e.init=function(){Q.p.init.call(this,this.letter="f",'<var class="mq-f">f</var>')},e.italicize=function(e){return this.jQ.html("f").toggleClass("mq-f",e),t.italicize.apply(this,arguments)}}),w[" "]=w.space=d(W,"\\ ","&nbsp;"),w["'"]=w.prime=d(W,"'","&prime;"),w["″"]=w.dprime=d(W,"″","&Prime;"),w.backslash=d(W,"\\backslash ","\\"),k["\\"]||(k["\\"]=w.backslash),w.$=d(W,"\\$","$");var Ae=p(Q,function(e,t){e.init=function(e,n){t.init.call(this,e,'<span class="mq-nonSymbola">'+(n||e)+"</span>")}});w["@"]=Ae,w["&"]=d(Ae,"\\&","&amp;"),w["%"]=d(Ae,"\\%","%"),w.alpha=w.beta=w.gamma=w.delta=w.zeta=w.eta=w.theta=w.iota=w.kappa=w.mu=w.nu=w.xi=w.rho=w.sigma=w.tau=w.chi=w.psi=w.omega=p(we,function(e,t){e.init=function(e){t.init.call(this,"\\"+e+" ","&"+e+";")}}),w.phi=d(we,"\\phi ","&#981;"),w.phiv=w.varphi=d(we,"\\varphi ","&phi;"),w.epsilon=d(we,"\\epsilon ","&#1013;"),w.epsiv=w.varepsilon=d(we,"\\varepsilon ","&epsilon;"),w.piv=w.varpi=d(we,"\\varpi ","&piv;"),w.sigmaf=w.sigmav=w.varsigma=d(we,"\\varsigma ","&sigmaf;"),w.thetav=w.vartheta=w.thetasym=d(we,"\\vartheta ","&thetasym;"),w.upsilon=w.upsi=d(we,"\\upsilon ","&upsilon;"),w.gammad=w.Gammad=w.digamma=d(we,"\\digamma ","&#989;"),w.kappav=w.varkappa=d(we,"\\varkappa ","&#1008;"),w.rhov=w.varrho=d(we,"\\varrho ","&#1009;"),w.pi=w["π"]=d(Ae,"\\pi ","&pi;"),w.lambda=d(Ae,"\\lambda ","&lambda;"),w.Upsilon=w.Upsi=w.upsih=w.Upsih=d(Q,"\\Upsilon ",'<var style="font-family: serif">&upsih;</var>'),w.Gamma=w.Delta=w.Theta=w.Lambda=w.Xi=w.Pi=w.Sigma=w.Phi=w.Psi=w.Omega=w.forall=p(W,function(e,t){e.init=function(e){t.init.call(this,"\\"+e+" ","&"+e+";")}});var Me=p(U,function(e){e.init=function(e){this.latex=e},e.createLeftOf=function(e){var t=H.parse(this.latex);t.children().adopt(e.parent,e[f],e[1]),e[f]=t.ends[1],t.jQize().insertBefore(e.jQ),t.finalizeInsert(e.options,e),t.ends[1][1].siblingCreated&&t.ends[1][1].siblingCreated(e.options,f),t.ends[f][f].siblingCreated&&t.ends[f][f].siblingCreated(e.options,1),e.parent.bubble("reflow")},e.parser=function(){var e=H.parse(this.latex).children();return j.succeed(e)}});w["¹"]=d(Me,"^1"),w["²"]=d(Me,"^2"),w["³"]=d(Me,"^3"),w["¼"]=d(Me,"\\frac14"),w["½"]=d(Me,"\\frac12"),w["¾"]=d(Me,"\\frac34");var Ne=p(V,function(e){e.init=W.prototype.init,e.contactWeld=e.siblingCreated=e.siblingDeleted=function(e,t){if(1!==t)return this.jQ[0].className=function e(t){return t[f]?t[f]instanceof V||/^[,;:\(\[]$/.test(t[f].ctrlSeq)?"":"mq-binary-operator":t.parent&&t.parent.parent&&t.parent.parent.isStyleBlock()?e(t.parent.parent):""}(this),this}});w["+"]=d(Ne,"+","+"),w["–"]=w["-"]=d(Ne,"-","&minus;"),w["±"]=w.pm=w.plusmn=w.plusminus=d(Ne,"\\pm ","&plusmn;"),w.mp=w.mnplus=w.minusplus=d(Ne,"\\mp ","&#8723;"),k["*"]=w.sdot=w.cdot=d(V,"\\cdot ","&middot;","*");var Oe=p(V,function(e,t){e.init=function(e,n){this.data=e,this.strict=n;var r=n?"Strict":"";t.init.call(this,e["ctrlSeq"+r],e["html"+r],e["text"+r])},e.swap=function(e){this.strict=e;var t=e?"Strict":"";this.ctrlSeq=this.data["ctrlSeq"+t],this.jQ.html(this.data["html"+t]),this.textTemplate=[this.data["text"+t]]},e.deleteTowards=function(e,n){if(e===f&&!this.strict)return this.swap(!0),void this.bubble("reflow");t.deleteTowards.apply(this,arguments)}}),ze={ctrlSeq:"\\le ",html:"&le;",text:"≤",ctrlSeqStrict:"<",htmlStrict:"&lt;",textStrict:"<"},De={ctrlSeq:"\\ge ",html:"&ge;",text:"≥",ctrlSeqStrict:">",htmlStrict:"&gt;",textStrict:">"};w["<"]=w.lt=d(Oe,ze,!0),w[">"]=w.gt=d(Oe,De,!0),w["≤"]=w.le=w.leq=d(Oe,ze,!1),w["≥"]=w.ge=w.geq=d(Oe,De,!1);var Le=p(V,function(e,t){e.init=function(){t.init.call(this,"=","=")},e.createLeftOf=function(e){if(e[f]instanceof Oe&&e[f].strict)return e[f].swap(!1),void e[f].bubble("reflow");t.createLeftOf.apply(this,arguments)}});w["="]=Le,w["×"]=w.times=d(V,"\\times ","&times;","[x]"),w["÷"]=w.div=w.divide=w.divides=d(V,"\\div ","&divide;","[/]"),k["~"]=w.sim=d(V,"\\sim ","~","~");var Ie=I(1);for(var _e in Ie)!function(e,t){"function"==typeof t?(z[e]=function(){return O(),t.apply(this,arguments)},z[e].prototype=t.prototype):z[e]=t}(_e,Ie[_e])}(),e.exports=window.MathQuill},755:function(e,t){var n;!function(t,n){"object"==typeof e.exports?e.exports=t.document?n(t,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return n(e)}:n(t)}("undefined"!=typeof window?window:this,function(r,i){var a=[],o=Object.getPrototypeOf,s=a.slice,l=a.flat?function(e){return a.flat.call(e)}:function(e){return a.concat.apply([],e)},u=a.push,c=a.indexOf,d={},h=d.toString,p=d.hasOwnProperty,f=p.toString,m=f.call(Object),g={},b=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType&&"function"!=typeof e.item},v=function(e){return null!=e&&e===e.window},y=r.document,x={type:!0,src:!0,nonce:!0,noModule:!0};function w(e,t,n){var r,i,a=(n=n||y).createElement("script");if(a.text=e,t)for(r in x)(i=t[r]||t.getAttribute&&t.getAttribute(r))&&a.setAttribute(r,i);n.head.appendChild(a).parentNode.removeChild(a)}function k(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?d[h.call(e)]||"object":typeof e}var S="3.6.0",C=function(e,t){return new C.fn.init(e,t)};function T(e){var t=!!e&&"length"in e&&e.length,n=k(e);return!b(e)&&!v(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}C.fn=C.prototype={jquery:S,constructor:C,length:0,toArray:function(){return s.call(this)},get:function(e){return null==e?s.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=C.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return C.each(this,e)},map:function(e){return this.pushStack(C.map(this,function(t,n){return e.call(t,n,t)}))},slice:function(){return this.pushStack(s.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(C.grep(this,function(e,t){return(t+1)%2}))},odd:function(){return this.pushStack(C.grep(this,function(e,t){return t%2}))},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:u,sort:a.sort,splice:a.splice},C.extend=C.fn.extend=function(){var e,t,n,r,i,a,o=arguments[0]||{},s=1,l=arguments.length,u=!1;for("boolean"==typeof o&&(u=o,o=arguments[s]||{},s++),"object"==typeof o||b(o)||(o={}),s===l&&(o=this,s--);s<l;s++)if(null!=(e=arguments[s]))for(t in e)r=e[t],"__proto__"!==t&&o!==r&&(u&&r&&(C.isPlainObject(r)||(i=Array.isArray(r)))?(n=o[t],a=i&&!Array.isArray(n)?[]:i||C.isPlainObject(n)?n:{},i=!1,o[t]=C.extend(u,a,r)):void 0!==r&&(o[t]=r));return o},C.extend({expando:"jQuery"+(S+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==h.call(e)||(t=o(e))&&("function"!=typeof(n=p.call(t,"constructor")&&t.constructor)||f.call(n)!==m))},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t,n){w(e,{nonce:t&&t.nonce},n)},each:function(e,t){var n,r=0;if(T(e))for(n=e.length;r<n&&!1!==t.call(e[r],r,e[r]);r++);else for(r in e)if(!1===t.call(e[r],r,e[r]))break;return e},makeArray:function(e,t){var n=t||[];return null!=e&&(T(Object(e))?C.merge(n,"string"==typeof e?[e]:e):u.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:c.call(t,e,n)},merge:function(e,t){for(var n=+t.length,r=0,i=e.length;r<n;r++)e[i++]=t[r];return e.length=i,e},grep:function(e,t,n){for(var r=[],i=0,a=e.length,o=!n;i<a;i++)!t(e[i],i)!==o&&r.push(e[i]);return r},map:function(e,t,n){var r,i,a=0,o=[];if(T(e))for(r=e.length;a<r;a++)null!=(i=t(e[a],a,n))&&o.push(i);else for(a in e)null!=(i=t(e[a],a,n))&&o.push(i);return l(o)},guid:1,support:g}),"function"==typeof Symbol&&(C.fn[Symbol.iterator]=a[Symbol.iterator]),C.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){d["[object "+t+"]"]=t.toLowerCase()});var E=function(e){var t,n,r,i,a,o,s,l,u,c,d,h,p,f,m,g,b,v,y,x="sizzle"+1*new Date,w=e.document,k=0,S=0,C=le(),T=le(),E=le(),q=le(),A=function(e,t){return e===t&&(d=!0),0},M={}.hasOwnProperty,N=[],O=N.pop,z=N.push,D=N.push,L=N.slice,I=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},_="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",B="[\\x20\\t\\r\\n\\f]",R="(?:\\\\[\\da-fA-F]{1,6}[\\x20\\t\\r\\n\\f]?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",P="\\[[\\x20\\t\\r\\n\\f]*("+R+")(?:"+B+"*([*^$|!~]?=)"+B+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+R+"))|)"+B+"*\\]",j=":("+R+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+P+")*)|.*)\\)|)",H=new RegExp(B+"+","g"),F=new RegExp("^[\\x20\\t\\r\\n\\f]+|((?:^|[^\\\\])(?:\\\\.)*)[\\x20\\t\\r\\n\\f]+$","g"),U=new RegExp("^[\\x20\\t\\r\\n\\f]*,[\\x20\\t\\r\\n\\f]*"),Q=new RegExp("^[\\x20\\t\\r\\n\\f]*([>+~]|[\\x20\\t\\r\\n\\f])[\\x20\\t\\r\\n\\f]*"),W=new RegExp(B+"|>"),V=new RegExp(j),$=new RegExp("^"+R+"$"),G={ID:new RegExp("^#("+R+")"),CLASS:new RegExp("^\\.("+R+")"),TAG:new RegExp("^("+R+"|[*])"),ATTR:new RegExp("^"+P),PSEUDO:new RegExp("^"+j),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\([\\x20\\t\\r\\n\\f]*(even|odd|(([+-]|)(\\d*)n|)[\\x20\\t\\r\\n\\f]*(?:([+-]|)[\\x20\\t\\r\\n\\f]*(\\d+)|))[\\x20\\t\\r\\n\\f]*\\)|)","i"),bool:new RegExp("^(?:"+_+")$","i"),needsContext:new RegExp("^[\\x20\\t\\r\\n\\f]*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\([\\x20\\t\\r\\n\\f]*((?:-\\d)?\\d*)[\\x20\\t\\r\\n\\f]*\\)|)(?=[^-]|$)","i")},K=/HTML$/i,X=/^(?:input|select|textarea|button)$/i,Y=/^h\d$/i,Z=/^[^{]+\{\s*\[native \w/,J=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=new RegExp("\\\\[\\da-fA-F]{1,6}[\\x20\\t\\r\\n\\f]?|\\\\([^\\r\\n\\f])","g"),ne=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},re=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ie=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},ae=function(){h()},oe=xe(function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{D.apply(N=L.call(w.childNodes),w.childNodes),N[w.childNodes.length].nodeType}catch(e){D={apply:N.length?function(e,t){z.apply(e,L.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}function se(e,t,r,i){var a,s,u,c,d,f,b,v=t&&t.ownerDocument,w=t?t.nodeType:9;if(r=r||[],"string"!=typeof e||!e||1!==w&&9!==w&&11!==w)return r;if(!i&&(h(t),t=t||p,m)){if(11!==w&&(d=J.exec(e)))if(a=d[1]){if(9===w){if(!(u=t.getElementById(a)))return r;if(u.id===a)return r.push(u),r}else if(v&&(u=v.getElementById(a))&&y(t,u)&&u.id===a)return r.push(u),r}else{if(d[2])return D.apply(r,t.getElementsByTagName(e)),r;if((a=d[3])&&n.getElementsByClassName&&t.getElementsByClassName)return D.apply(r,t.getElementsByClassName(a)),r}if(n.qsa&&!q[e+" "]&&(!g||!g.test(e))&&(1!==w||"object"!==t.nodeName.toLowerCase())){if(b=e,v=t,1===w&&(W.test(e)||Q.test(e))){for((v=ee.test(e)&&be(t.parentNode)||t)===t&&n.scope||((c=t.getAttribute("id"))?c=c.replace(re,ie):t.setAttribute("id",c=x)),s=(f=o(e)).length;s--;)f[s]=(c?"#"+c:":scope")+" "+ye(f[s]);b=f.join(",")}try{return D.apply(r,v.querySelectorAll(b)),r}catch(t){q(e,!0)}finally{c===x&&t.removeAttribute("id")}}}return l(e.replace(F,"$1"),t,r,i)}function le(){var e=[];return function t(n,i){return e.push(n+" ")>r.cacheLength&&delete t[e.shift()],t[n+" "]=i}}function ue(e){return e[x]=!0,e}function ce(e){var t=p.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function de(e,t){for(var n=e.split("|"),i=n.length;i--;)r.attrHandle[n[i]]=t}function he(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function pe(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function fe(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function me(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&oe(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function ge(e){return ue(function(t){return t=+t,ue(function(n,r){for(var i,a=e([],n.length,t),o=a.length;o--;)n[i=a[o]]&&(n[i]=!(r[i]=n[i]))})})}function be(e){return e&&void 0!==e.getElementsByTagName&&e}for(t in n=se.support={},a=se.isXML=function(e){var t=e&&e.namespaceURI,n=e&&(e.ownerDocument||e).documentElement;return!K.test(t||n&&n.nodeName||"HTML")},h=se.setDocument=function(e){var t,i,o=e?e.ownerDocument||e:w;return o!=p&&9===o.nodeType&&o.documentElement?(f=(p=o).documentElement,m=!a(p),w!=p&&(i=p.defaultView)&&i.top!==i&&(i.addEventListener?i.addEventListener("unload",ae,!1):i.attachEvent&&i.attachEvent("onunload",ae)),n.scope=ce(function(e){return f.appendChild(e).appendChild(p.createElement("div")),void 0!==e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length}),n.attributes=ce(function(e){return e.className="i",!e.getAttribute("className")}),n.getElementsByTagName=ce(function(e){return e.appendChild(p.createComment("")),!e.getElementsByTagName("*").length}),n.getElementsByClassName=Z.test(p.getElementsByClassName),n.getById=ce(function(e){return f.appendChild(e).id=x,!p.getElementsByName||!p.getElementsByName(x).length}),n.getById?(r.filter.ID=function(e){var t=e.replace(te,ne);return function(e){return e.getAttribute("id")===t}},r.find.ID=function(e,t){if(void 0!==t.getElementById&&m){var n=t.getElementById(e);return n?[n]:[]}}):(r.filter.ID=function(e){var t=e.replace(te,ne);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},r.find.ID=function(e,t){if(void 0!==t.getElementById&&m){var n,r,i,a=t.getElementById(e);if(a){if((n=a.getAttributeNode("id"))&&n.value===e)return[a];for(i=t.getElementsByName(e),r=0;a=i[r++];)if((n=a.getAttributeNode("id"))&&n.value===e)return[a]}return[]}}),r.find.TAG=n.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):n.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,a=t.getElementsByTagName(e);if("*"===e){for(;n=a[i++];)1===n.nodeType&&r.push(n);return r}return a},r.find.CLASS=n.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&m)return t.getElementsByClassName(e)},b=[],g=[],(n.qsa=Z.test(p.querySelectorAll))&&(ce(function(e){var t;f.appendChild(e).innerHTML="<a id='"+x+"'></a><select id='"+x+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&g.push("[*^$]=[\\x20\\t\\r\\n\\f]*(?:''|\"\")"),e.querySelectorAll("[selected]").length||g.push("\\[[\\x20\\t\\r\\n\\f]*(?:value|"+_+")"),e.querySelectorAll("[id~="+x+"-]").length||g.push("~="),(t=p.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||g.push("\\[[\\x20\\t\\r\\n\\f]*name[\\x20\\t\\r\\n\\f]*=[\\x20\\t\\r\\n\\f]*(?:''|\"\")"),e.querySelectorAll(":checked").length||g.push(":checked"),e.querySelectorAll("a#"+x+"+*").length||g.push(".#.+[+~]"),e.querySelectorAll("\\\f"),g.push("[\\r\\n\\f]")}),ce(function(e){e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=p.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&g.push("name[\\x20\\t\\r\\n\\f]*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&g.push(":enabled",":disabled"),f.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&g.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),g.push(",.*:")})),(n.matchesSelector=Z.test(v=f.matches||f.webkitMatchesSelector||f.mozMatchesSelector||f.oMatchesSelector||f.msMatchesSelector))&&ce(function(e){n.disconnectedMatch=v.call(e,"*"),v.call(e,"[s!='']:x"),b.push("!=",j)}),g=g.length&&new RegExp(g.join("|")),b=b.length&&new RegExp(b.join("|")),t=Z.test(f.compareDocumentPosition),y=t||Z.test(f.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},A=t?function(e,t){if(e===t)return d=!0,0;var r=!e.compareDocumentPosition-!t.compareDocumentPosition;return r||(1&(r=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!n.sortDetached&&t.compareDocumentPosition(e)===r?e==p||e.ownerDocument==w&&y(w,e)?-1:t==p||t.ownerDocument==w&&y(w,t)?1:c?I(c,e)-I(c,t):0:4&r?-1:1)}:function(e,t){if(e===t)return d=!0,0;var n,r=0,i=e.parentNode,a=t.parentNode,o=[e],s=[t];if(!i||!a)return e==p?-1:t==p?1:i?-1:a?1:c?I(c,e)-I(c,t):0;if(i===a)return he(e,t);for(n=e;n=n.parentNode;)o.unshift(n);for(n=t;n=n.parentNode;)s.unshift(n);for(;o[r]===s[r];)r++;return r?he(o[r],s[r]):o[r]==w?-1:s[r]==w?1:0},p):p},se.matches=function(e,t){return se(e,null,null,t)},se.matchesSelector=function(e,t){if(h(e),n.matchesSelector&&m&&!q[t+" "]&&(!b||!b.test(t))&&(!g||!g.test(t)))try{var r=v.call(e,t);if(r||n.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(e){q(t,!0)}return se(t,p,null,[e]).length>0},se.contains=function(e,t){return(e.ownerDocument||e)!=p&&h(e),y(e,t)},se.attr=function(e,t){(e.ownerDocument||e)!=p&&h(e);var i=r.attrHandle[t.toLowerCase()],a=i&&M.call(r.attrHandle,t.toLowerCase())?i(e,t,!m):void 0;return void 0!==a?a:n.attributes||!m?e.getAttribute(t):(a=e.getAttributeNode(t))&&a.specified?a.value:null},se.escape=function(e){return(e+"").replace(re,ie)},se.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},se.uniqueSort=function(e){var t,r=[],i=0,a=0;if(d=!n.detectDuplicates,c=!n.sortStable&&e.slice(0),e.sort(A),d){for(;t=e[a++];)t===e[a]&&(i=r.push(a));for(;i--;)e.splice(r[i],1)}return c=null,e},i=se.getText=function(e){var t,n="",r=0,a=e.nodeType;if(a){if(1===a||9===a||11===a){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=i(e)}else if(3===a||4===a)return e.nodeValue}else for(;t=e[r++];)n+=i(t);return n},r=se.selectors={cacheLength:50,createPseudo:ue,match:G,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(te,ne),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ne),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||se.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&se.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return G.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&V.test(n)&&(t=o(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(te,ne).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=C[e+" "];return t||(t=new RegExp("(^|[\\x20\\t\\r\\n\\f])"+e+"("+B+"|$)"))&&C(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(e,t,n){return function(r){var i=se.attr(r,e);return null==i?"!="===t:!t||(i+="","="===t?i===n:"!="===t?i!==n:"^="===t?n&&0===i.indexOf(n):"*="===t?n&&i.indexOf(n)>-1:"$="===t?n&&i.slice(-n.length)===n:"~="===t?(" "+i.replace(H," ")+" ").indexOf(n)>-1:"|="===t&&(i===n||i.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,r,i){var a="nth"!==e.slice(0,3),o="last"!==e.slice(-4),s="of-type"===t;return 1===r&&0===i?function(e){return!!e.parentNode}:function(t,n,l){var u,c,d,h,p,f,m=a!==o?"nextSibling":"previousSibling",g=t.parentNode,b=s&&t.nodeName.toLowerCase(),v=!l&&!s,y=!1;if(g){if(a){for(;m;){for(h=t;h=h[m];)if(s?h.nodeName.toLowerCase()===b:1===h.nodeType)return!1;f=m="only"===e&&!f&&"nextSibling"}return!0}if(f=[o?g.firstChild:g.lastChild],o&&v){for(y=(p=(u=(c=(d=(h=g)[x]||(h[x]={}))[h.uniqueID]||(d[h.uniqueID]={}))[e]||[])[0]===k&&u[1])&&u[2],h=p&&g.childNodes[p];h=++p&&h&&h[m]||(y=p=0)||f.pop();)if(1===h.nodeType&&++y&&h===t){c[e]=[k,p,y];break}}else if(v&&(y=p=(u=(c=(d=(h=t)[x]||(h[x]={}))[h.uniqueID]||(d[h.uniqueID]={}))[e]||[])[0]===k&&u[1]),!1===y)for(;(h=++p&&h&&h[m]||(y=p=0)||f.pop())&&((s?h.nodeName.toLowerCase()!==b:1!==h.nodeType)||!++y||(v&&((c=(d=h[x]||(h[x]={}))[h.uniqueID]||(d[h.uniqueID]={}))[e]=[k,y]),h!==t)););return(y-=i)===r||y%r==0&&y/r>=0}}},PSEUDO:function(e,t){var n,i=r.pseudos[e]||r.setFilters[e.toLowerCase()]||se.error("unsupported pseudo: "+e);return i[x]?i(t):i.length>1?(n=[e,e,"",t],r.setFilters.hasOwnProperty(e.toLowerCase())?ue(function(e,n){for(var r,a=i(e,t),o=a.length;o--;)e[r=I(e,a[o])]=!(n[r]=a[o])}):function(e){return i(e,0,n)}):i}},pseudos:{not:ue(function(e){var t=[],n=[],r=s(e.replace(F,"$1"));return r[x]?ue(function(e,t,n,i){for(var a,o=r(e,null,i,[]),s=e.length;s--;)(a=o[s])&&(e[s]=!(t[s]=a))}):function(e,i,a){return t[0]=e,r(t,null,a,n),t[0]=null,!n.pop()}}),has:ue(function(e){return function(t){return se(e,t).length>0}}),contains:ue(function(e){return e=e.replace(te,ne),function(t){return(t.textContent||i(t)).indexOf(e)>-1}}),lang:ue(function(e){return $.test(e||"")||se.error("unsupported lang: "+e),e=e.replace(te,ne).toLowerCase(),function(t){var n;do{if(n=m?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===f},focus:function(e){return e===p.activeElement&&(!p.hasFocus||p.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:me(!1),disabled:me(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!r.pseudos.empty(e)},header:function(e){return Y.test(e.nodeName)},input:function(e){return X.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:ge(function(){return[0]}),last:ge(function(e,t){return[t-1]}),eq:ge(function(e,t,n){return[n<0?n+t:n]}),even:ge(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:ge(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:ge(function(e,t,n){for(var r=n<0?n+t:n>t?t:n;--r>=0;)e.push(r);return e}),gt:ge(function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e})}},r.pseudos.nth=r.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})r.pseudos[t]=pe(t);for(t in{submit:!0,reset:!0})r.pseudos[t]=fe(t);function ve(){}function ye(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function xe(e,t,n){var r=t.dir,i=t.next,a=i||r,o=n&&"parentNode"===a,s=S++;return t.first?function(t,n,i){for(;t=t[r];)if(1===t.nodeType||o)return e(t,n,i);return!1}:function(t,n,l){var u,c,d,h=[k,s];if(l){for(;t=t[r];)if((1===t.nodeType||o)&&e(t,n,l))return!0}else for(;t=t[r];)if(1===t.nodeType||o)if(c=(d=t[x]||(t[x]={}))[t.uniqueID]||(d[t.uniqueID]={}),i&&i===t.nodeName.toLowerCase())t=t[r]||t;else{if((u=c[a])&&u[0]===k&&u[1]===s)return h[2]=u[2];if(c[a]=h,h[2]=e(t,n,l))return!0}return!1}}function we(e){return e.length>1?function(t,n,r){for(var i=e.length;i--;)if(!e[i](t,n,r))return!1;return!0}:e[0]}function ke(e,t,n,r,i){for(var a,o=[],s=0,l=e.length,u=null!=t;s<l;s++)(a=e[s])&&(n&&!n(a,r,i)||(o.push(a),u&&t.push(s)));return o}function Se(e,t,n,r,i,a){return r&&!r[x]&&(r=Se(r)),i&&!i[x]&&(i=Se(i,a)),ue(function(a,o,s,l){var u,c,d,h=[],p=[],f=o.length,m=a||function(e,t,n){for(var r=0,i=t.length;r<i;r++)se(e,t[r],n);return n}(t||"*",s.nodeType?[s]:s,[]),g=!e||!a&&t?m:ke(m,h,e,s,l),b=n?i||(a?e:f||r)?[]:o:g;if(n&&n(g,b,s,l),r)for(u=ke(b,p),r(u,[],s,l),c=u.length;c--;)(d=u[c])&&(b[p[c]]=!(g[p[c]]=d));if(a){if(i||e){if(i){for(u=[],c=b.length;c--;)(d=b[c])&&u.push(g[c]=d);i(null,b=[],u,l)}for(c=b.length;c--;)(d=b[c])&&(u=i?I(a,d):h[c])>-1&&(a[u]=!(o[u]=d))}}else b=ke(b===o?b.splice(f,b.length):b),i?i(null,o,b,l):D.apply(o,b)})}function Ce(e){for(var t,n,i,a=e.length,o=r.relative[e[0].type],s=o||r.relative[" "],l=o?1:0,c=xe(function(e){return e===t},s,!0),d=xe(function(e){return I(t,e)>-1},s,!0),h=[function(e,n,r){var i=!o&&(r||n!==u)||((t=n).nodeType?c(e,n,r):d(e,n,r));return t=null,i}];l<a;l++)if(n=r.relative[e[l].type])h=[xe(we(h),n)];else{if((n=r.filter[e[l].type].apply(null,e[l].matches))[x]){for(i=++l;i<a&&!r.relative[e[i].type];i++);return Se(l>1&&we(h),l>1&&ye(e.slice(0,l-1).concat({value:" "===e[l-2].type?"*":""})).replace(F,"$1"),n,l<i&&Ce(e.slice(l,i)),i<a&&Ce(e=e.slice(i)),i<a&&ye(e))}h.push(n)}return we(h)}return ve.prototype=r.filters=r.pseudos,r.setFilters=new ve,o=se.tokenize=function(e,t){var n,i,a,o,s,l,u,c=T[e+" "];if(c)return t?0:c.slice(0);for(s=e,l=[],u=r.preFilter;s;){for(o in n&&!(i=U.exec(s))||(i&&(s=s.slice(i[0].length)||s),l.push(a=[])),n=!1,(i=Q.exec(s))&&(n=i.shift(),a.push({value:n,type:i[0].replace(F," ")}),s=s.slice(n.length)),r.filter)!(i=G[o].exec(s))||u[o]&&!(i=u[o](i))||(n=i.shift(),a.push({value:n,type:o,matches:i}),s=s.slice(n.length));if(!n)break}return t?s.length:s?se.error(e):T(e,l).slice(0)},s=se.compile=function(e,t){var n,i=[],a=[],s=E[e+" "];if(!s){for(t||(t=o(e)),n=t.length;n--;)(s=Ce(t[n]))[x]?i.push(s):a.push(s);s=E(e,function(e,t){var n=t.length>0,i=e.length>0,a=function(a,o,s,l,c){var d,f,g,b=0,v="0",y=a&&[],x=[],w=u,S=a||i&&r.find.TAG("*",c),C=k+=null==w?1:Math.random()||.1,T=S.length;for(c&&(u=o==p||o||c);v!==T&&null!=(d=S[v]);v++){if(i&&d){for(f=0,o||d.ownerDocument==p||(h(d),s=!m);g=e[f++];)if(g(d,o||p,s)){l.push(d);break}c&&(k=C)}n&&((d=!g&&d)&&b--,a&&y.push(d))}if(b+=v,n&&v!==b){for(f=0;g=t[f++];)g(y,x,o,s);if(a){if(b>0)for(;v--;)y[v]||x[v]||(x[v]=O.call(l));x=ke(x)}D.apply(l,x),c&&!a&&x.length>0&&b+t.length>1&&se.uniqueSort(l)}return c&&(k=C,u=w),y};return n?ue(a):a}(a,i)),s.selector=e}return s},l=se.select=function(e,t,n,i){var a,l,u,c,d,h="function"==typeof e&&e,p=!i&&o(e=h.selector||e);if(n=n||[],1===p.length){if((l=p[0]=p[0].slice(0)).length>2&&"ID"===(u=l[0]).type&&9===t.nodeType&&m&&r.relative[l[1].type]){if(!(t=(r.find.ID(u.matches[0].replace(te,ne),t)||[])[0]))return n;h&&(t=t.parentNode),e=e.slice(l.shift().value.length)}for(a=G.needsContext.test(e)?0:l.length;a--&&(u=l[a],!r.relative[c=u.type]);)if((d=r.find[c])&&(i=d(u.matches[0].replace(te,ne),ee.test(l[0].type)&&be(t.parentNode)||t))){if(l.splice(a,1),!(e=i.length&&ye(l)))return D.apply(n,i),n;break}}return(h||s(e,p))(i,t,!m,n,!t||ee.test(e)&&be(t.parentNode)||t),n},n.sortStable=x.split("").sort(A).join("")===x,n.detectDuplicates=!!d,h(),n.sortDetached=ce(function(e){return 1&e.compareDocumentPosition(p.createElement("fieldset"))}),ce(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||de("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),n.attributes&&ce(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||de("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),ce(function(e){return null==e.getAttribute("disabled")})||de(_,function(e,t,n){var r;if(!n)return!0===e[t]?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null}),se}(r);C.find=E,C.expr=E.selectors,C.expr[":"]=C.expr.pseudos,C.uniqueSort=C.unique=E.uniqueSort,C.text=E.getText,C.isXMLDoc=E.isXML,C.contains=E.contains,C.escapeSelector=E.escape;var q=function(e,t,n){for(var r=[],i=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(i&&C(e).is(n))break;r.push(e)}return r},A=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},M=C.expr.match.needsContext;function N(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var O=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function z(e,t,n){return b(t)?C.grep(e,function(e,r){return!!t.call(e,r,e)!==n}):t.nodeType?C.grep(e,function(e){return e===t!==n}):"string"!=typeof t?C.grep(e,function(e){return c.call(t,e)>-1!==n}):C.filter(t,e,n)}C.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?C.find.matchesSelector(r,e)?[r]:[]:C.find.matches(e,C.grep(t,function(e){return 1===e.nodeType}))},C.fn.extend({find:function(e){var t,n,r=this.length,i=this;if("string"!=typeof e)return this.pushStack(C(e).filter(function(){for(t=0;t<r;t++)if(C.contains(i[t],this))return!0}));for(n=this.pushStack([]),t=0;t<r;t++)C.find(e,i[t],n);return r>1?C.uniqueSort(n):n},filter:function(e){return this.pushStack(z(this,e||[],!1))},not:function(e){return this.pushStack(z(this,e||[],!0))},is:function(e){return!!z(this,"string"==typeof e&&M.test(e)?C(e):e||[],!1).length}});var D,L=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(C.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||D,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:L.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof C?t[0]:t,C.merge(this,C.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:y,!0)),O.test(r[1])&&C.isPlainObject(t))for(r in t)b(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(i=y.getElementById(r[2]))&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):b(e)?void 0!==n.ready?n.ready(e):e(C):C.makeArray(e,this)}).prototype=C.fn,D=C(y);var I=/^(?:parents|prev(?:Until|All))/,_={children:!0,contents:!0,next:!0,prev:!0};function B(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}C.fn.extend({has:function(e){var t=C(e,this),n=t.length;return this.filter(function(){for(var e=0;e<n;e++)if(C.contains(this,t[e]))return!0})},closest:function(e,t){var n,r=0,i=this.length,a=[],o="string"!=typeof e&&C(e);if(!M.test(e))for(;r<i;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(o?o.index(n)>-1:1===n.nodeType&&C.find.matchesSelector(n,e))){a.push(n);break}return this.pushStack(a.length>1?C.uniqueSort(a):a)},index:function(e){return e?"string"==typeof e?c.call(C(e),this[0]):c.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(C.uniqueSort(C.merge(this.get(),C(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),C.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return q(e,"parentNode")},parentsUntil:function(e,t,n){return q(e,"parentNode",n)},next:function(e){return B(e,"nextSibling")},prev:function(e){return B(e,"previousSibling")},nextAll:function(e){return q(e,"nextSibling")},prevAll:function(e){return q(e,"previousSibling")},nextUntil:function(e,t,n){return q(e,"nextSibling",n)},prevUntil:function(e,t,n){return q(e,"previousSibling",n)},siblings:function(e){return A((e.parentNode||{}).firstChild,e)},children:function(e){return A(e.firstChild)},contents:function(e){return null!=e.contentDocument&&o(e.contentDocument)?e.contentDocument:(N(e,"template")&&(e=e.content||e),C.merge([],e.childNodes))}},function(e,t){C.fn[e]=function(n,r){var i=C.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=C.filter(r,i)),this.length>1&&(_[e]||C.uniqueSort(i),I.test(e)&&i.reverse()),this.pushStack(i)}});var R=/[^\x20\t\r\n\f]+/g;function P(e){return e}function j(e){throw e}function H(e,t,n,r){var i;try{e&&b(i=e.promise)?i.call(e).done(t).fail(n):e&&b(i=e.then)?i.call(e,t,n):t.apply(void 0,[e].slice(r))}catch(e){n.apply(void 0,[e])}}C.Callbacks=function(e){e="string"==typeof e?function(e){var t={};return C.each(e.match(R)||[],function(e,n){t[n]=!0}),t}(e):C.extend({},e);var t,n,r,i,a=[],o=[],s=-1,l=function(){for(i=i||e.once,r=t=!0;o.length;s=-1)for(n=o.shift();++s<a.length;)!1===a[s].apply(n[0],n[1])&&e.stopOnFalse&&(s=a.length,n=!1);e.memory||(n=!1),t=!1,i&&(a=n?[]:"")},u={add:function(){return a&&(n&&!t&&(s=a.length-1,o.push(n)),function t(n){C.each(n,function(n,r){b(r)?e.unique&&u.has(r)||a.push(r):r&&r.length&&"string"!==k(r)&&t(r)})}(arguments),n&&!t&&l()),this},remove:function(){return C.each(arguments,function(e,t){for(var n;(n=C.inArray(t,a,n))>-1;)a.splice(n,1),n<=s&&s--}),this},has:function(e){return e?C.inArray(e,a)>-1:a.length>0},empty:function(){return a&&(a=[]),this},disable:function(){return i=o=[],a=n="",this},disabled:function(){return!a},lock:function(){return i=o=[],n||t||(a=n=""),this},locked:function(){return!!i},fireWith:function(e,n){return i||(n=[e,(n=n||[]).slice?n.slice():n],o.push(n),t||l()),this},fire:function(){return u.fireWith(this,arguments),this},fired:function(){return!!r}};return u},C.extend({Deferred:function(e){var t=[["notify","progress",C.Callbacks("memory"),C.Callbacks("memory"),2],["resolve","done",C.Callbacks("once memory"),C.Callbacks("once memory"),0,"resolved"],["reject","fail",C.Callbacks("once memory"),C.Callbacks("once memory"),1,"rejected"]],n="pending",i={state:function(){return n},always:function(){return a.done(arguments).fail(arguments),this},catch:function(e){return i.then(null,e)},pipe:function(){var e=arguments;return C.Deferred(function(n){C.each(t,function(t,r){var i=b(e[r[4]])&&e[r[4]];a[r[1]](function(){var e=i&&i.apply(this,arguments);e&&b(e.promise)?e.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[r[0]+"With"](this,i?[e]:arguments)})}),e=null}).promise()},then:function(e,n,i){var a=0;function o(e,t,n,i){return function(){var s=this,l=arguments,u=function(){var r,u;if(!(e<a)){if((r=n.apply(s,l))===t.promise())throw new TypeError("Thenable self-resolution");u=r&&("object"==typeof r||"function"==typeof r)&&r.then,b(u)?i?u.call(r,o(a,t,P,i),o(a,t,j,i)):(a++,u.call(r,o(a,t,P,i),o(a,t,j,i),o(a,t,P,t.notifyWith))):(n!==P&&(s=void 0,l=[r]),(i||t.resolveWith)(s,l))}},c=i?u:function(){try{u()}catch(r){C.Deferred.exceptionHook&&C.Deferred.exceptionHook(r,c.stackTrace),e+1>=a&&(n!==j&&(s=void 0,l=[r]),t.rejectWith(s,l))}};e?c():(C.Deferred.getStackHook&&(c.stackTrace=C.Deferred.getStackHook()),r.setTimeout(c))}}return C.Deferred(function(r){t[0][3].add(o(0,r,b(i)?i:P,r.notifyWith)),t[1][3].add(o(0,r,b(e)?e:P)),t[2][3].add(o(0,r,b(n)?n:j))}).promise()},promise:function(e){return null!=e?C.extend(e,i):i}},a={};return C.each(t,function(e,r){var o=r[2],s=r[5];i[r[1]]=o.add,s&&o.add(function(){n=s},t[3-e][2].disable,t[3-e][3].disable,t[0][2].lock,t[0][3].lock),o.add(r[3].fire),a[r[0]]=function(){return a[r[0]+"With"](this===a?void 0:this,arguments),this},a[r[0]+"With"]=o.fireWith}),i.promise(a),e&&e.call(a,a),a},when:function(e){var t=arguments.length,n=t,r=Array(n),i=s.call(arguments),a=C.Deferred(),o=function(e){return function(n){r[e]=this,i[e]=arguments.length>1?s.call(arguments):n,--t||a.resolveWith(r,i)}};if(t<=1&&(H(e,a.done(o(n)).resolve,a.reject,!t),"pending"===a.state()||b(i[n]&&i[n].then)))return a.then();for(;n--;)H(i[n],o(n),a.reject);return a.promise()}});var F=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;C.Deferred.exceptionHook=function(e,t){r.console&&r.console.warn&&e&&F.test(e.name)&&r.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},C.readyException=function(e){r.setTimeout(function(){throw e})};var U=C.Deferred();function Q(){y.removeEventListener("DOMContentLoaded",Q),r.removeEventListener("load",Q),C.ready()}C.fn.ready=function(e){return U.then(e).catch(function(e){C.readyException(e)}),this},C.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--C.readyWait:C.isReady)||(C.isReady=!0,!0!==e&&--C.readyWait>0||U.resolveWith(y,[C]))}}),C.ready.then=U.then,"complete"===y.readyState||"loading"!==y.readyState&&!y.documentElement.doScroll?r.setTimeout(C.ready):(y.addEventListener("DOMContentLoaded",Q),r.addEventListener("load",Q));var W=function(e,t,n,r,i,a,o){var s=0,l=e.length,u=null==n;if("object"===k(n))for(s in i=!0,n)W(e,t,s,n[s],!0,a,o);else if(void 0!==r&&(i=!0,b(r)||(o=!0),u&&(o?(t.call(e,r),t=null):(u=t,t=function(e,t,n){return u.call(C(e),n)})),t))for(;s<l;s++)t(e[s],n,o?r:r.call(e[s],s,t(e[s],n)));return i?e:u?t.call(e):l?t(e[0],n):a},V=/^-ms-/,$=/-([a-z])/g;function G(e,t){return t.toUpperCase()}function K(e){return e.replace(V,"ms-").replace($,G)}var X=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function Y(){this.expando=C.expando+Y.uid++}Y.uid=1,Y.prototype={cache:function(e){var t=e[this.expando];return t||(t={},X(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var r,i=this.cache(e);if("string"==typeof t)i[K(t)]=n;else for(r in t)i[K(r)]=t[r];return i},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][K(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,r=e[this.expando];if(void 0!==r){if(void 0!==t){n=(t=Array.isArray(t)?t.map(K):(t=K(t))in r?[t]:t.match(R)||[]).length;for(;n--;)delete r[t[n]]}(void 0===t||C.isEmptyObject(r))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!C.isEmptyObject(t)}};var Z=new Y,J=new Y,ee=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,te=/[A-Z]/g;function ne(e,t,n){var r;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(te,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(r))){try{n=function(e){return"true"===e||"false"!==e&&("null"===e?null:e===+e+""?+e:ee.test(e)?JSON.parse(e):e)}(n)}catch(e){}J.set(e,t,n)}else n=void 0;return n}C.extend({hasData:function(e){return J.hasData(e)||Z.hasData(e)},data:function(e,t,n){return J.access(e,t,n)},removeData:function(e,t){J.remove(e,t)},_data:function(e,t,n){return Z.access(e,t,n)},_removeData:function(e,t){Z.remove(e,t)}}),C.fn.extend({data:function(e,t){var n,r,i,a=this[0],o=a&&a.attributes;if(void 0===e){if(this.length&&(i=J.get(a),1===a.nodeType&&!Z.get(a,"hasDataAttrs"))){for(n=o.length;n--;)o[n]&&0===(r=o[n].name).indexOf("data-")&&(r=K(r.slice(5)),ne(a,r,i[r]));Z.set(a,"hasDataAttrs",!0)}return i}return"object"==typeof e?this.each(function(){J.set(this,e)}):W(this,function(t){var n;if(a&&void 0===t)return void 0!==(n=J.get(a,e))||void 0!==(n=ne(a,e))?n:void 0;this.each(function(){J.set(this,e,t)})},null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each(function(){J.remove(this,e)})}}),C.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=Z.get(e,t),n&&(!r||Array.isArray(n)?r=Z.access(e,t,C.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=C.queue(e,t),r=n.length,i=n.shift(),a=C._queueHooks(e,t);"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete a.stop,i.call(e,function(){C.dequeue(e,t)},a)),!r&&a&&a.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return Z.get(e,n)||Z.access(e,n,{empty:C.Callbacks("once memory").add(function(){Z.remove(e,[t+"queue",n])})})}}),C.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?C.queue(this[0],e):void 0===t?this:this.each(function(){var n=C.queue(this,e,t);C._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&C.dequeue(this,e)})},dequeue:function(e){return this.each(function(){C.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,i=C.Deferred(),a=this,o=this.length,s=function(){--r||i.resolveWith(a,[a])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";o--;)(n=Z.get(a[o],e+"queueHooks"))&&n.empty&&(r++,n.empty.add(s));return s(),i.promise(t)}});var re=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,ie=new RegExp("^(?:([+-])=|)("+re+")([a-z%]*)$","i"),ae=["Top","Right","Bottom","Left"],oe=y.documentElement,se=function(e){return C.contains(e.ownerDocument,e)},le={composed:!0};oe.getRootNode&&(se=function(e){return C.contains(e.ownerDocument,e)||e.getRootNode(le)===e.ownerDocument});var ue=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&se(e)&&"none"===C.css(e,"display")};function ce(e,t,n,r){var i,a,o=20,s=r?function(){return r.cur()}:function(){return C.css(e,t,"")},l=s(),u=n&&n[3]||(C.cssNumber[t]?"":"px"),c=e.nodeType&&(C.cssNumber[t]||"px"!==u&&+l)&&ie.exec(C.css(e,t));if(c&&c[3]!==u){for(l/=2,u=u||c[3],c=+l||1;o--;)C.style(e,t,c+u),(1-a)*(1-(a=s()/l||.5))<=0&&(o=0),c/=a;c*=2,C.style(e,t,c+u),n=n||[]}return n&&(c=+c||+l||0,i=n[1]?c+(n[1]+1)*n[2]:+n[2],r&&(r.unit=u,r.start=c,r.end=i)),i}var de={};function he(e){var t,n=e.ownerDocument,r=e.nodeName,i=de[r];return i||(t=n.body.appendChild(n.createElement(r)),i=C.css(t,"display"),t.parentNode.removeChild(t),"none"===i&&(i="block"),de[r]=i,i)}function pe(e,t){for(var n,r,i=[],a=0,o=e.length;a<o;a++)(r=e[a]).style&&(n=r.style.display,t?("none"===n&&(i[a]=Z.get(r,"display")||null,i[a]||(r.style.display="")),""===r.style.display&&ue(r)&&(i[a]=he(r))):"none"!==n&&(i[a]="none",Z.set(r,"display",n)));for(a=0;a<o;a++)null!=i[a]&&(e[a].style.display=i[a]);return e}C.fn.extend({show:function(){return pe(this,!0)},hide:function(){return pe(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){ue(this)?C(this).show():C(this).hide()})}});var fe,me,ge=/^(?:checkbox|radio)$/i,be=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,ve=/^$|^module$|\/(?:java|ecma)script/i;fe=y.createDocumentFragment().appendChild(y.createElement("div")),(me=y.createElement("input")).setAttribute("type","radio"),me.setAttribute("checked","checked"),me.setAttribute("name","t"),fe.appendChild(me),g.checkClone=fe.cloneNode(!0).cloneNode(!0).lastChild.checked,fe.innerHTML="<textarea>x</textarea>",g.noCloneChecked=!!fe.cloneNode(!0).lastChild.defaultValue,fe.innerHTML="<option></option>",g.option=!!fe.lastChild;var ye={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function xe(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&N(e,t)?C.merge([e],n):n}function we(e,t){for(var n=0,r=e.length;n<r;n++)Z.set(e[n],"globalEval",!t||Z.get(t[n],"globalEval"))}ye.tbody=ye.tfoot=ye.colgroup=ye.caption=ye.thead,ye.th=ye.td,g.option||(ye.optgroup=ye.option=[1,"<select multiple='multiple'>","</select>"]);var ke=/<|&#?\w+;/;function Se(e,t,n,r,i){for(var a,o,s,l,u,c,d=t.createDocumentFragment(),h=[],p=0,f=e.length;p<f;p++)if((a=e[p])||0===a)if("object"===k(a))C.merge(h,a.nodeType?[a]:a);else if(ke.test(a)){for(o=o||d.appendChild(t.createElement("div")),s=(be.exec(a)||["",""])[1].toLowerCase(),l=ye[s]||ye._default,o.innerHTML=l[1]+C.htmlPrefilter(a)+l[2],c=l[0];c--;)o=o.lastChild;C.merge(h,o.childNodes),(o=d.firstChild).textContent=""}else h.push(t.createTextNode(a));for(d.textContent="",p=0;a=h[p++];)if(r&&C.inArray(a,r)>-1)i&&i.push(a);else if(u=se(a),o=xe(d.appendChild(a),"script"),u&&we(o),n)for(c=0;a=o[c++];)ve.test(a.type||"")&&n.push(a);return d}var Ce=/^([^.]*)(?:\.(.+)|)/;function Te(){return!0}function Ee(){return!1}function qe(e,t){return e===function(){try{return y.activeElement}catch(e){}}()==("focus"===t)}function Ae(e,t,n,r,i,a){var o,s;if("object"==typeof t){for(s in"string"!=typeof n&&(r=r||n,n=void 0),t)Ae(e,s,n,r,t[s],a);return e}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),!1===i)i=Ee;else if(!i)return e;return 1===a&&(o=i,i=function(e){return C().off(e),o.apply(this,arguments)},i.guid=o.guid||(o.guid=C.guid++)),e.each(function(){C.event.add(this,t,i,r,n)})}function Me(e,t,n){n?(Z.set(e,t,!1),C.event.add(e,t,{namespace:!1,handler:function(e){var r,i,a=Z.get(this,t);if(1&e.isTrigger&&this[t]){if(a.length)(C.event.special[t]||{}).delegateType&&e.stopPropagation();else if(a=s.call(arguments),Z.set(this,t,a),r=n(this,t),this[t](),a!==(i=Z.get(this,t))||r?Z.set(this,t,!1):i={},a!==i)return e.stopImmediatePropagation(),e.preventDefault(),i&&i.value}else a.length&&(Z.set(this,t,{value:C.event.trigger(C.extend(a[0],C.Event.prototype),a.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===Z.get(e,t)&&C.event.add(e,t,Te)}C.event={global:{},add:function(e,t,n,r,i){var a,o,s,l,u,c,d,h,p,f,m,g=Z.get(e);if(X(e))for(n.handler&&(n=(a=n).handler,i=a.selector),i&&C.find.matchesSelector(oe,i),n.guid||(n.guid=C.guid++),(l=g.events)||(l=g.events=Object.create(null)),(o=g.handle)||(o=g.handle=function(t){return void 0!==C&&C.event.triggered!==t.type?C.event.dispatch.apply(e,arguments):void 0}),u=(t=(t||"").match(R)||[""]).length;u--;)p=m=(s=Ce.exec(t[u])||[])[1],f=(s[2]||"").split(".").sort(),p&&(d=C.event.special[p]||{},p=(i?d.delegateType:d.bindType)||p,d=C.event.special[p]||{},c=C.extend({type:p,origType:m,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&C.expr.match.needsContext.test(i),namespace:f.join(".")},a),(h=l[p])||((h=l[p]=[]).delegateCount=0,d.setup&&!1!==d.setup.call(e,r,f,o)||e.addEventListener&&e.addEventListener(p,o)),d.add&&(d.add.call(e,c),c.handler.guid||(c.handler.guid=n.guid)),i?h.splice(h.delegateCount++,0,c):h.push(c),C.event.global[p]=!0)},remove:function(e,t,n,r,i){var a,o,s,l,u,c,d,h,p,f,m,g=Z.hasData(e)&&Z.get(e);if(g&&(l=g.events)){for(u=(t=(t||"").match(R)||[""]).length;u--;)if(p=m=(s=Ce.exec(t[u])||[])[1],f=(s[2]||"").split(".").sort(),p){for(d=C.event.special[p]||{},h=l[p=(r?d.delegateType:d.bindType)||p]||[],s=s[2]&&new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),o=a=h.length;a--;)c=h[a],!i&&m!==c.origType||n&&n.guid!==c.guid||s&&!s.test(c.namespace)||r&&r!==c.selector&&("**"!==r||!c.selector)||(h.splice(a,1),c.selector&&h.delegateCount--,d.remove&&d.remove.call(e,c));o&&!h.length&&(d.teardown&&!1!==d.teardown.call(e,f,g.handle)||C.removeEvent(e,p,g.handle),delete l[p])}else for(p in l)C.event.remove(e,p+t[u],n,r,!0);C.isEmptyObject(l)&&Z.remove(e,"handle events")}},dispatch:function(e){var t,n,r,i,a,o,s=new Array(arguments.length),l=C.event.fix(e),u=(Z.get(this,"events")||Object.create(null))[l.type]||[],c=C.event.special[l.type]||{};for(s[0]=l,t=1;t<arguments.length;t++)s[t]=arguments[t];if(l.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,l)){for(o=C.event.handlers.call(this,l,u),t=0;(i=o[t++])&&!l.isPropagationStopped();)for(l.currentTarget=i.elem,n=0;(a=i.handlers[n++])&&!l.isImmediatePropagationStopped();)l.rnamespace&&!1!==a.namespace&&!l.rnamespace.test(a.namespace)||(l.handleObj=a,l.data=a.data,void 0!==(r=((C.event.special[a.origType]||{}).handle||a.handler).apply(i.elem,s))&&!1===(l.result=r)&&(l.preventDefault(),l.stopPropagation()));return c.postDispatch&&c.postDispatch.call(this,l),l.result}},handlers:function(e,t){var n,r,i,a,o,s=[],l=t.delegateCount,u=e.target;if(l&&u.nodeType&&!("click"===e.type&&e.button>=1))for(;u!==this;u=u.parentNode||this)if(1===u.nodeType&&("click"!==e.type||!0!==u.disabled)){for(a=[],o={},n=0;n<l;n++)void 0===o[i=(r=t[n]).selector+" "]&&(o[i]=r.needsContext?C(i,this).index(u)>-1:C.find(i,this,null,[u]).length),o[i]&&a.push(r);a.length&&s.push({elem:u,handlers:a})}return u=this,l<t.length&&s.push({elem:u,handlers:t.slice(l)}),s},addProp:function(e,t){Object.defineProperty(C.Event.prototype,e,{enumerable:!0,configurable:!0,get:b(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(e){return e[C.expando]?e:new C.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return ge.test(t.type)&&t.click&&N(t,"input")&&Me(t,"click",Te),!1},trigger:function(e){var t=this||e;return ge.test(t.type)&&t.click&&N(t,"input")&&Me(t,"click"),!0},_default:function(e){var t=e.target;return ge.test(t.type)&&t.click&&N(t,"input")&&Z.get(t,"click")||N(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},C.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},C.Event=function(e,t){if(!(this instanceof C.Event))return new C.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?Te:Ee,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&C.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[C.expando]=!0},C.Event.prototype={constructor:C.Event,isDefaultPrevented:Ee,isPropagationStopped:Ee,isImmediatePropagationStopped:Ee,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=Te,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=Te,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=Te,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},C.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},C.event.addProp),C.each({focus:"focusin",blur:"focusout"},function(e,t){C.event.special[e]={setup:function(){return Me(this,e,qe),!1},trigger:function(){return Me(this,e),!0},_default:function(){return!0},delegateType:t}}),C.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,t){C.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=e.relatedTarget,i=e.handleObj;return r&&(r===this||C.contains(this,r))||(e.type=i.origType,n=i.handler.apply(this,arguments),e.type=t),n}}}),C.fn.extend({on:function(e,t,n,r){return Ae(this,e,t,n,r)},one:function(e,t,n,r){return Ae(this,e,t,n,r,1)},off:function(e,t,n){var r,i;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,C(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof e){for(i in e)this.off(i,t,e[i]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=Ee),this.each(function(){C.event.remove(this,e,n,t)})}});var Ne=/<script|<style|<link/i,Oe=/checked\s*(?:[^=]|=\s*.checked.)/i,ze=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function De(e,t){return N(e,"table")&&N(11!==t.nodeType?t:t.firstChild,"tr")&&C(e).children("tbody")[0]||e}function Le(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Ie(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function _e(e,t){var n,r,i,a,o,s;if(1===t.nodeType){if(Z.hasData(e)&&(s=Z.get(e).events))for(i in Z.remove(t,"handle events"),s)for(n=0,r=s[i].length;n<r;n++)C.event.add(t,i,s[i][n]);J.hasData(e)&&(a=J.access(e),o=C.extend({},a),J.set(t,o))}}function Be(e,t){var n=t.nodeName.toLowerCase();"input"===n&&ge.test(e.type)?t.checked=e.checked:"input"!==n&&"textarea"!==n||(t.defaultValue=e.defaultValue)}function Re(e,t,n,r){t=l(t);var i,a,o,s,u,c,d=0,h=e.length,p=h-1,f=t[0],m=b(f);if(m||h>1&&"string"==typeof f&&!g.checkClone&&Oe.test(f))return e.each(function(i){var a=e.eq(i);m&&(t[0]=f.call(this,i,a.html())),Re(a,t,n,r)});if(h&&(a=(i=Se(t,e[0].ownerDocument,!1,e,r)).firstChild,1===i.childNodes.length&&(i=a),a||r)){for(s=(o=C.map(xe(i,"script"),Le)).length;d<h;d++)u=i,d!==p&&(u=C.clone(u,!0,!0),s&&C.merge(o,xe(u,"script"))),n.call(e[d],u,d);if(s)for(c=o[o.length-1].ownerDocument,C.map(o,Ie),d=0;d<s;d++)u=o[d],ve.test(u.type||"")&&!Z.access(u,"globalEval")&&C.contains(c,u)&&(u.src&&"module"!==(u.type||"").toLowerCase()?C._evalUrl&&!u.noModule&&C._evalUrl(u.src,{nonce:u.nonce||u.getAttribute("nonce")},c):w(u.textContent.replace(ze,""),u,c))}return e}function Pe(e,t,n){for(var r,i=t?C.filter(t,e):e,a=0;null!=(r=i[a]);a++)n||1!==r.nodeType||C.cleanData(xe(r)),r.parentNode&&(n&&se(r)&&we(xe(r,"script")),r.parentNode.removeChild(r));return e}C.extend({htmlPrefilter:function(e){return e},clone:function(e,t,n){var r,i,a,o,s=e.cloneNode(!0),l=se(e);if(!(g.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||C.isXMLDoc(e)))for(o=xe(s),r=0,i=(a=xe(e)).length;r<i;r++)Be(a[r],o[r]);if(t)if(n)for(a=a||xe(e),o=o||xe(s),r=0,i=a.length;r<i;r++)_e(a[r],o[r]);else _e(e,s);return(o=xe(s,"script")).length>0&&we(o,!l&&xe(e,"script")),s},cleanData:function(e){for(var t,n,r,i=C.event.special,a=0;void 0!==(n=e[a]);a++)if(X(n)){if(t=n[Z.expando]){if(t.events)for(r in t.events)i[r]?C.event.remove(n,r):C.removeEvent(n,r,t.handle);n[Z.expando]=void 0}n[J.expando]&&(n[J.expando]=void 0)}}}),C.fn.extend({detach:function(e){return Pe(this,e,!0)},remove:function(e){return Pe(this,e)},text:function(e){return W(this,function(e){return void 0===e?C.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return Re(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||De(this,e).appendChild(e)})},prepend:function(){return Re(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=De(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return Re(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return Re(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(C.cleanData(xe(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return C.clone(this,e,t)})},html:function(e){return W(this,function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Ne.test(e)&&!ye[(be.exec(e)||["",""])[1].toLowerCase()]){e=C.htmlPrefilter(e);try{for(;n<r;n++)1===(t=this[n]||{}).nodeType&&(C.cleanData(xe(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=[];return Re(this,arguments,function(t){var n=this.parentNode;C.inArray(this,e)<0&&(C.cleanData(xe(this)),n&&n.replaceChild(t,this))},e)}}),C.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){C.fn[e]=function(e){for(var n,r=[],i=C(e),a=i.length-1,o=0;o<=a;o++)n=o===a?this:this.clone(!0),C(i[o])[t](n),u.apply(r,n.get());return this.pushStack(r)}});var je=new RegExp("^("+re+")(?!px)[a-z%]+$","i"),He=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=r),t.getComputedStyle(e)},Fe=function(e,t,n){var r,i,a={};for(i in t)a[i]=e.style[i],e.style[i]=t[i];for(i in r=n.call(e),t)e.style[i]=a[i];return r},Ue=new RegExp(ae.join("|"),"i");function Qe(e,t,n){var r,i,a,o,s=e.style;return(n=n||He(e))&&(""!==(o=n.getPropertyValue(t)||n[t])||se(e)||(o=C.style(e,t)),!g.pixelBoxStyles()&&je.test(o)&&Ue.test(t)&&(r=s.width,i=s.minWidth,a=s.maxWidth,s.minWidth=s.maxWidth=s.width=o,o=n.width,s.width=r,s.minWidth=i,s.maxWidth=a)),void 0!==o?o+"":o}function We(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){function e(){if(c){u.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",c.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",oe.appendChild(u).appendChild(c);var e=r.getComputedStyle(c);n="1%"!==e.top,l=12===t(e.marginLeft),c.style.right="60%",o=36===t(e.right),i=36===t(e.width),c.style.position="absolute",a=12===t(c.offsetWidth/3),oe.removeChild(u),c=null}}function t(e){return Math.round(parseFloat(e))}var n,i,a,o,s,l,u=y.createElement("div"),c=y.createElement("div");c.style&&(c.style.backgroundClip="content-box",c.cloneNode(!0).style.backgroundClip="",g.clearCloneStyle="content-box"===c.style.backgroundClip,C.extend(g,{boxSizingReliable:function(){return e(),i},pixelBoxStyles:function(){return e(),o},pixelPosition:function(){return e(),n},reliableMarginLeft:function(){return e(),l},scrollboxSize:function(){return e(),a},reliableTrDimensions:function(){var e,t,n,i;return null==s&&(e=y.createElement("table"),t=y.createElement("tr"),n=y.createElement("div"),e.style.cssText="position:absolute;left:-11111px;border-collapse:separate",t.style.cssText="border:1px solid",t.style.height="1px",n.style.height="9px",n.style.display="block",oe.appendChild(e).appendChild(t).appendChild(n),i=r.getComputedStyle(t),s=parseInt(i.height,10)+parseInt(i.borderTopWidth,10)+parseInt(i.borderBottomWidth,10)===t.offsetHeight,oe.removeChild(e)),s}}))}();var Ve=["Webkit","Moz","ms"],$e=y.createElement("div").style,Ge={};function Ke(e){return C.cssProps[e]||Ge[e]||(e in $e?e:Ge[e]=function(e){for(var t=e[0].toUpperCase()+e.slice(1),n=Ve.length;n--;)if((e=Ve[n]+t)in $e)return e}(e)||e)}var Xe=/^(none|table(?!-c[ea]).+)/,Ye=/^--/,Ze={position:"absolute",visibility:"hidden",display:"block"},Je={letterSpacing:"0",fontWeight:"400"};function et(e,t,n){var r=ie.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function tt(e,t,n,r,i,a){var o="width"===t?1:0,s=0,l=0;if(n===(r?"border":"content"))return 0;for(;o<4;o+=2)"margin"===n&&(l+=C.css(e,n+ae[o],!0,i)),r?("content"===n&&(l-=C.css(e,"padding"+ae[o],!0,i)),"margin"!==n&&(l-=C.css(e,"border"+ae[o]+"Width",!0,i))):(l+=C.css(e,"padding"+ae[o],!0,i),"padding"!==n?l+=C.css(e,"border"+ae[o]+"Width",!0,i):s+=C.css(e,"border"+ae[o]+"Width",!0,i));return!r&&a>=0&&(l+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-a-l-s-.5))||0),l}function nt(e,t,n){var r=He(e),i=(!g.boxSizingReliable()||n)&&"border-box"===C.css(e,"boxSizing",!1,r),a=i,o=Qe(e,t,r),s="offset"+t[0].toUpperCase()+t.slice(1);if(je.test(o)){if(!n)return o;o="auto"}return(!g.boxSizingReliable()&&i||!g.reliableTrDimensions()&&N(e,"tr")||"auto"===o||!parseFloat(o)&&"inline"===C.css(e,"display",!1,r))&&e.getClientRects().length&&(i="border-box"===C.css(e,"boxSizing",!1,r),(a=s in e)&&(o=e[s])),(o=parseFloat(o)||0)+tt(e,t,n||(i?"border":"content"),a,r,o)+"px"}function rt(e,t,n,r,i){return new rt.prototype.init(e,t,n,r,i)}C.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Qe(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,a,o,s=K(t),l=Ye.test(t),u=e.style;if(l||(t=Ke(s)),o=C.cssHooks[t]||C.cssHooks[s],void 0===n)return o&&"get"in o&&void 0!==(i=o.get(e,!1,r))?i:u[t];"string"==(a=typeof n)&&(i=ie.exec(n))&&i[1]&&(n=ce(e,t,i),a="number"),null!=n&&n==n&&("number"!==a||l||(n+=i&&i[3]||(C.cssNumber[s]?"":"px")),g.clearCloneStyle||""!==n||0!==t.indexOf("background")||(u[t]="inherit"),o&&"set"in o&&void 0===(n=o.set(e,n,r))||(l?u.setProperty(t,n):u[t]=n))}},css:function(e,t,n,r){var i,a,o,s=K(t);return Ye.test(t)||(t=Ke(s)),(o=C.cssHooks[t]||C.cssHooks[s])&&"get"in o&&(i=o.get(e,!0,n)),void 0===i&&(i=Qe(e,t,r)),"normal"===i&&t in Je&&(i=Je[t]),""===n||n?(a=parseFloat(i),!0===n||isFinite(a)?a||0:i):i}}),C.each(["height","width"],function(e,t){C.cssHooks[t]={get:function(e,n,r){if(n)return!Xe.test(C.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?nt(e,t,r):Fe(e,Ze,function(){return nt(e,t,r)})},set:function(e,n,r){var i,a=He(e),o=!g.scrollboxSize()&&"absolute"===a.position,s=(o||r)&&"border-box"===C.css(e,"boxSizing",!1,a),l=r?tt(e,t,r,s,a):0;return s&&o&&(l-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(a[t])-tt(e,t,"border",!1,a)-.5)),l&&(i=ie.exec(n))&&"px"!==(i[3]||"px")&&(e.style[t]=n,n=C.css(e,t)),et(0,n,l)}}}),C.cssHooks.marginLeft=We(g.reliableMarginLeft,function(e,t){if(t)return(parseFloat(Qe(e,"marginLeft"))||e.getBoundingClientRect().left-Fe(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),C.each({margin:"",padding:"",border:"Width"},function(e,t){C.cssHooks[e+t]={expand:function(n){for(var r=0,i={},a="string"==typeof n?n.split(" "):[n];r<4;r++)i[e+ae[r]+t]=a[r]||a[r-2]||a[0];return i}},"margin"!==e&&(C.cssHooks[e+t].set=et)}),C.fn.extend({css:function(e,t){return W(this,function(e,t,n){var r,i,a={},o=0;if(Array.isArray(t)){for(r=He(e),i=t.length;o<i;o++)a[t[o]]=C.css(e,t[o],!1,r);return a}return void 0!==n?C.style(e,t,n):C.css(e,t)},e,t,arguments.length>1)}}),C.Tween=rt,rt.prototype={constructor:rt,init:function(e,t,n,r,i,a){this.elem=e,this.prop=n,this.easing=i||C.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=a||(C.cssNumber[n]?"":"px")},cur:function(){var e=rt.propHooks[this.prop];return e&&e.get?e.get(this):rt.propHooks._default.get(this)},run:function(e){var t,n=rt.propHooks[this.prop];return this.options.duration?this.pos=t=C.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):rt.propHooks._default.set(this),this}},rt.prototype.init.prototype=rt.prototype,rt.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=C.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){C.fx.step[e.prop]?C.fx.step[e.prop](e):1!==e.elem.nodeType||!C.cssHooks[e.prop]&&null==e.elem.style[Ke(e.prop)]?e.elem[e.prop]=e.now:C.style(e.elem,e.prop,e.now+e.unit)}}},rt.propHooks.scrollTop=rt.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},C.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},C.fx=rt.prototype.init,C.fx.step={};var it,at,ot=/^(?:toggle|show|hide)$/,st=/queueHooks$/;function lt(){at&&(!1===y.hidden&&r.requestAnimationFrame?r.requestAnimationFrame(lt):r.setTimeout(lt,C.fx.interval),C.fx.tick())}function ut(){return r.setTimeout(function(){it=void 0}),it=Date.now()}function ct(e,t){var n,r=0,i={height:e};for(t=t?1:0;r<4;r+=2-t)i["margin"+(n=ae[r])]=i["padding"+n]=e;return t&&(i.opacity=i.width=e),i}function dt(e,t,n){for(var r,i=(ht.tweeners[t]||[]).concat(ht.tweeners["*"]),a=0,o=i.length;a<o;a++)if(r=i[a].call(n,t,e))return r}function ht(e,t,n){var r,i,a=0,o=ht.prefilters.length,s=C.Deferred().always(function(){delete l.elem}),l=function(){if(i)return!1;for(var t=it||ut(),n=Math.max(0,u.startTime+u.duration-t),r=1-(n/u.duration||0),a=0,o=u.tweens.length;a<o;a++)u.tweens[a].run(r);return s.notifyWith(e,[u,r,n]),r<1&&o?n:(o||s.notifyWith(e,[u,1,0]),s.resolveWith(e,[u]),!1)},u=s.promise({elem:e,props:C.extend({},t),opts:C.extend(!0,{specialEasing:{},easing:C.easing._default},n),originalProperties:t,originalOptions:n,startTime:it||ut(),duration:n.duration,tweens:[],createTween:function(t,n){var r=C.Tween(e,u.opts,t,n,u.opts.specialEasing[t]||u.opts.easing);return u.tweens.push(r),r},stop:function(t){var n=0,r=t?u.tweens.length:0;if(i)return this;for(i=!0;n<r;n++)u.tweens[n].run(1);return t?(s.notifyWith(e,[u,1,0]),s.resolveWith(e,[u,t])):s.rejectWith(e,[u,t]),this}}),c=u.props;for(function(e,t){var n,r,i,a,o;for(n in e)if(i=t[r=K(n)],a=e[n],Array.isArray(a)&&(i=a[1],a=e[n]=a[0]),n!==r&&(e[r]=a,delete e[n]),(o=C.cssHooks[r])&&"expand"in o)for(n in a=o.expand(a),delete e[r],a)n in e||(e[n]=a[n],t[n]=i);else t[r]=i}(c,u.opts.specialEasing);a<o;a++)if(r=ht.prefilters[a].call(u,e,c,u.opts))return b(r.stop)&&(C._queueHooks(u.elem,u.opts.queue).stop=r.stop.bind(r)),r;return C.map(c,dt,u),b(u.opts.start)&&u.opts.start.call(e,u),u.progress(u.opts.progress).done(u.opts.done,u.opts.complete).fail(u.opts.fail).always(u.opts.always),C.fx.timer(C.extend(l,{elem:e,anim:u,queue:u.opts.queue})),u}C.Animation=C.extend(ht,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return ce(n.elem,e,ie.exec(t),n),n}]},tweener:function(e,t){b(e)?(t=e,e=["*"]):e=e.match(R);for(var n,r=0,i=e.length;r<i;r++)n=e[r],ht.tweeners[n]=ht.tweeners[n]||[],ht.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var r,i,a,o,s,l,u,c,d="width"in t||"height"in t,h=this,p={},f=e.style,m=e.nodeType&&ue(e),g=Z.get(e,"fxshow");for(r in n.queue||(null==(o=C._queueHooks(e,"fx")).unqueued&&(o.unqueued=0,s=o.empty.fire,o.empty.fire=function(){o.unqueued||s()}),o.unqueued++,h.always(function(){h.always(function(){o.unqueued--,C.queue(e,"fx").length||o.empty.fire()})})),t)if(i=t[r],ot.test(i)){if(delete t[r],a=a||"toggle"===i,i===(m?"hide":"show")){if("show"!==i||!g||void 0===g[r])continue;m=!0}p[r]=g&&g[r]||C.style(e,r)}if((l=!C.isEmptyObject(t))||!C.isEmptyObject(p))for(r in d&&1===e.nodeType&&(n.overflow=[f.overflow,f.overflowX,f.overflowY],null==(u=g&&g.display)&&(u=Z.get(e,"display")),"none"===(c=C.css(e,"display"))&&(u?c=u:(pe([e],!0),u=e.style.display||u,c=C.css(e,"display"),pe([e]))),("inline"===c||"inline-block"===c&&null!=u)&&"none"===C.css(e,"float")&&(l||(h.done(function(){f.display=u}),null==u&&(c=f.display,u="none"===c?"":c)),f.display="inline-block")),n.overflow&&(f.overflow="hidden",h.always(function(){f.overflow=n.overflow[0],f.overflowX=n.overflow[1],f.overflowY=n.overflow[2]})),l=!1,p)l||(g?"hidden"in g&&(m=g.hidden):g=Z.access(e,"fxshow",{display:u}),a&&(g.hidden=!m),m&&pe([e],!0),h.done(function(){for(r in m||pe([e]),Z.remove(e,"fxshow"),p)C.style(e,r,p[r])})),l=dt(m?g[r]:0,r,h),r in g||(g[r]=l.start,m&&(l.end=l.start,l.start=0))}],prefilter:function(e,t){t?ht.prefilters.unshift(e):ht.prefilters.push(e)}}),C.speed=function(e,t,n){var r=e&&"object"==typeof e?C.extend({},e):{complete:n||!n&&t||b(e)&&e,duration:e,easing:n&&t||t&&!b(t)&&t};return C.fx.off?r.duration=0:"number"!=typeof r.duration&&(r.duration in C.fx.speeds?r.duration=C.fx.speeds[r.duration]:r.duration=C.fx.speeds._default),null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){b(r.old)&&r.old.call(this),r.queue&&C.dequeue(this,r.queue)},r},C.fn.extend({fadeTo:function(e,t,n,r){return this.filter(ue).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var i=C.isEmptyObject(e),a=C.speed(t,n,r),o=function(){var t=ht(this,C.extend({},e),a);(i||Z.get(this,"finish"))&&t.stop(!0)};return o.finish=o,i||!1===a.queue?this.each(o):this.queue(a.queue,o)},stop:function(e,t,n){var r=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&this.queue(e||"fx",[]),this.each(function(){var t=!0,i=null!=e&&e+"queueHooks",a=C.timers,o=Z.get(this);if(i)o[i]&&o[i].stop&&r(o[i]);else for(i in o)o[i]&&o[i].stop&&st.test(i)&&r(o[i]);for(i=a.length;i--;)a[i].elem!==this||null!=e&&a[i].queue!==e||(a[i].anim.stop(n),t=!1,a.splice(i,1));!t&&n||C.dequeue(this,e)})},finish:function(e){return!1!==e&&(e=e||"fx"),this.each(function(){var t,n=Z.get(this),r=n[e+"queue"],i=n[e+"queueHooks"],a=C.timers,o=r?r.length:0;for(n.finish=!0,C.queue(this,e,[]),i&&i.stop&&i.stop.call(this,!0),t=a.length;t--;)a[t].elem===this&&a[t].queue===e&&(a[t].anim.stop(!0),a.splice(t,1));for(t=0;t<o;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete n.finish})}}),C.each(["toggle","show","hide"],function(e,t){var n=C.fn[t];C.fn[t]=function(e,r,i){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(ct(t,!0),e,r,i)}}),C.each({slideDown:ct("show"),slideUp:ct("hide"),slideToggle:ct("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){C.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}}),C.timers=[],C.fx.tick=function(){var e,t=0,n=C.timers;for(it=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||C.fx.stop(),it=void 0},C.fx.timer=function(e){C.timers.push(e),C.fx.start()},C.fx.interval=13,C.fx.start=function(){at||(at=!0,lt())},C.fx.stop=function(){at=null},C.fx.speeds={slow:600,fast:200,_default:400},C.fn.delay=function(e,t){return e=C.fx&&C.fx.speeds[e]||e,t=t||"fx",this.queue(t,function(t,n){var i=r.setTimeout(t,e);n.stop=function(){r.clearTimeout(i)}})},function(){var e=y.createElement("input"),t=y.createElement("select").appendChild(y.createElement("option"));e.type="checkbox",g.checkOn=""!==e.value,g.optSelected=t.selected,(e=y.createElement("input")).value="t",e.type="radio",g.radioValue="t"===e.value}();var pt,ft=C.expr.attrHandle;C.fn.extend({attr:function(e,t){return W(this,C.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){C.removeAttr(this,e)})}}),C.extend({attr:function(e,t,n){var r,i,a=e.nodeType;if(3!==a&&8!==a&&2!==a)return void 0===e.getAttribute?C.prop(e,t,n):(1===a&&C.isXMLDoc(e)||(i=C.attrHooks[t.toLowerCase()]||(C.expr.match.bool.test(t)?pt:void 0)),void 0!==n?null===n?void C.removeAttr(e,t):i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:(e.setAttribute(t,n+""),n):i&&"get"in i&&null!==(r=i.get(e,t))?r:null==(r=C.find.attr(e,t))?void 0:r)},attrHooks:{type:{set:function(e,t){if(!g.radioValue&&"radio"===t&&N(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r=0,i=t&&t.match(R);if(i&&1===e.nodeType)for(;n=i[r++];)e.removeAttribute(n)}}),pt={set:function(e,t,n){return!1===t?C.removeAttr(e,n):e.setAttribute(n,n),n}},C.each(C.expr.match.bool.source.match(/\w+/g),function(e,t){var n=ft[t]||C.find.attr;ft[t]=function(e,t,r){var i,a,o=t.toLowerCase();return r||(a=ft[o],ft[o]=i,i=null!=n(e,t,r)?o:null,ft[o]=a),i}});var mt=/^(?:input|select|textarea|button)$/i,gt=/^(?:a|area)$/i;function bt(e){return(e.match(R)||[]).join(" ")}function vt(e){return e.getAttribute&&e.getAttribute("class")||""}function yt(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(R)||[]}C.fn.extend({prop:function(e,t){return W(this,C.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each(function(){delete this[C.propFix[e]||e]})}}),C.extend({prop:function(e,t,n){var r,i,a=e.nodeType;if(3!==a&&8!==a&&2!==a)return 1===a&&C.isXMLDoc(e)||(t=C.propFix[t]||t,i=C.propHooks[t]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:e[t]=n:i&&"get"in i&&null!==(r=i.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=C.find.attr(e,"tabindex");return t?parseInt(t,10):mt.test(e.nodeName)||gt.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),g.optSelected||(C.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),C.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){C.propFix[this.toLowerCase()]=this}),C.fn.extend({addClass:function(e){var t,n,r,i,a,o,s,l=0;if(b(e))return this.each(function(t){C(this).addClass(e.call(this,t,vt(this)))});if((t=yt(e)).length)for(;n=this[l++];)if(i=vt(n),r=1===n.nodeType&&" "+bt(i)+" "){for(o=0;a=t[o++];)r.indexOf(" "+a+" ")<0&&(r+=a+" ");i!==(s=bt(r))&&n.setAttribute("class",s)}return this},removeClass:function(e){var t,n,r,i,a,o,s,l=0;if(b(e))return this.each(function(t){C(this).removeClass(e.call(this,t,vt(this)))});if(!arguments.length)return this.attr("class","");if((t=yt(e)).length)for(;n=this[l++];)if(i=vt(n),r=1===n.nodeType&&" "+bt(i)+" "){for(o=0;a=t[o++];)for(;r.indexOf(" "+a+" ")>-1;)r=r.replace(" "+a+" "," ");i!==(s=bt(r))&&n.setAttribute("class",s)}return this},toggleClass:function(e,t){var n=typeof e,r="string"===n||Array.isArray(e);return"boolean"==typeof t&&r?t?this.addClass(e):this.removeClass(e):b(e)?this.each(function(n){C(this).toggleClass(e.call(this,n,vt(this),t),t)}):this.each(function(){var t,i,a,o;if(r)for(i=0,a=C(this),o=yt(e);t=o[i++];)a.hasClass(t)?a.removeClass(t):a.addClass(t);else void 0!==e&&"boolean"!==n||((t=vt(this))&&Z.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||!1===e?"":Z.get(this,"__className__")||""))})},hasClass:function(e){var t,n,r=0;for(t=" "+e+" ";n=this[r++];)if(1===n.nodeType&&(" "+bt(vt(n))+" ").indexOf(t)>-1)return!0;return!1}});var xt=/\r/g;C.fn.extend({val:function(e){var t,n,r,i=this[0];return arguments.length?(r=b(e),this.each(function(n){var i;1===this.nodeType&&(null==(i=r?e.call(this,n,C(this).val()):e)?i="":"number"==typeof i?i+="":Array.isArray(i)&&(i=C.map(i,function(e){return null==e?"":e+""})),(t=C.valHooks[this.type]||C.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,i,"value")||(this.value=i))})):i?(t=C.valHooks[i.type]||C.valHooks[i.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(i,"value"))?n:"string"==typeof(n=i.value)?n.replace(xt,""):null==n?"":n:void 0}}),C.extend({valHooks:{option:{get:function(e){var t=C.find.attr(e,"value");return null!=t?t:bt(C.text(e))}},select:{get:function(e){var t,n,r,i=e.options,a=e.selectedIndex,o="select-one"===e.type,s=o?null:[],l=o?a+1:i.length;for(r=a<0?l:o?a:0;r<l;r++)if(((n=i[r]).selected||r===a)&&!n.disabled&&(!n.parentNode.disabled||!N(n.parentNode,"optgroup"))){if(t=C(n).val(),o)return t;s.push(t)}return s},set:function(e,t){for(var n,r,i=e.options,a=C.makeArray(t),o=i.length;o--;)((r=i[o]).selected=C.inArray(C.valHooks.option.get(r),a)>-1)&&(n=!0);return n||(e.selectedIndex=-1),a}}}}),C.each(["radio","checkbox"],function(){C.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=C.inArray(C(e).val(),t)>-1}},g.checkOn||(C.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}),g.focusin="onfocusin"in r;var wt=/^(?:focusinfocus|focusoutblur)$/,kt=function(e){e.stopPropagation()};C.extend(C.event,{trigger:function(e,t,n,i){var a,o,s,l,u,c,d,h,f=[n||y],m=p.call(e,"type")?e.type:e,g=p.call(e,"namespace")?e.namespace.split("."):[];if(o=h=s=n=n||y,3!==n.nodeType&&8!==n.nodeType&&!wt.test(m+C.event.triggered)&&(m.indexOf(".")>-1&&(g=m.split("."),m=g.shift(),g.sort()),u=m.indexOf(":")<0&&"on"+m,(e=e[C.expando]?e:new C.Event(m,"object"==typeof e&&e)).isTrigger=i?2:3,e.namespace=g.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+g.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=n),t=null==t?[e]:C.makeArray(t,[e]),d=C.event.special[m]||{},i||!d.trigger||!1!==d.trigger.apply(n,t))){if(!i&&!d.noBubble&&!v(n)){for(l=d.delegateType||m,wt.test(l+m)||(o=o.parentNode);o;o=o.parentNode)f.push(o),s=o;s===(n.ownerDocument||y)&&f.push(s.defaultView||s.parentWindow||r)}for(a=0;(o=f[a++])&&!e.isPropagationStopped();)h=o,e.type=a>1?l:d.bindType||m,(c=(Z.get(o,"events")||Object.create(null))[e.type]&&Z.get(o,"handle"))&&c.apply(o,t),(c=u&&o[u])&&c.apply&&X(o)&&(e.result=c.apply(o,t),!1===e.result&&e.preventDefault());return e.type=m,i||e.isDefaultPrevented()||d._default&&!1!==d._default.apply(f.pop(),t)||!X(n)||u&&b(n[m])&&!v(n)&&((s=n[u])&&(n[u]=null),C.event.triggered=m,e.isPropagationStopped()&&h.addEventListener(m,kt),n[m](),e.isPropagationStopped()&&h.removeEventListener(m,kt),C.event.triggered=void 0,s&&(n[u]=s)),e.result}},simulate:function(e,t,n){var r=C.extend(new C.Event,n,{type:e,isSimulated:!0});C.event.trigger(r,null,t)}}),C.fn.extend({trigger:function(e,t){return this.each(function(){C.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return C.event.trigger(e,t,n,!0)}}),g.focusin||C.each({focus:"focusin",blur:"focusout"},function(e,t){var n=function(e){C.event.simulate(t,e.target,C.event.fix(e))};C.event.special[t]={setup:function(){var r=this.ownerDocument||this.document||this,i=Z.access(r,t);i||r.addEventListener(e,n,!0),Z.access(r,t,(i||0)+1)},teardown:function(){var r=this.ownerDocument||this.document||this,i=Z.access(r,t)-1;i?Z.access(r,t,i):(r.removeEventListener(e,n,!0),Z.remove(r,t))}}});var St=r.location,Ct={guid:Date.now()},Tt=/\?/;C.parseXML=function(e){var t,n;if(!e||"string"!=typeof e)return null;try{t=(new r.DOMParser).parseFromString(e,"text/xml")}catch(e){}return n=t&&t.getElementsByTagName("parsererror")[0],t&&!n||C.error("Invalid XML: "+(n?C.map(n.childNodes,function(e){return e.textContent}).join("\n"):e)),t};var Et=/\[\]$/,qt=/\r?\n/g,At=/^(?:submit|button|image|reset|file)$/i,Mt=/^(?:input|select|textarea|keygen)/i;function Nt(e,t,n,r){var i;if(Array.isArray(t))C.each(t,function(t,i){n||Et.test(e)?r(e,i):Nt(e+"["+("object"==typeof i&&null!=i?t:"")+"]",i,n,r)});else if(n||"object"!==k(t))r(e,t);else for(i in t)Nt(e+"["+i+"]",t[i],n,r)}C.param=function(e,t){var n,r=[],i=function(e,t){var n=b(t)?t():t;r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!C.isPlainObject(e))C.each(e,function(){i(this.name,this.value)});else for(n in e)Nt(n,e[n],t,i);return r.join("&")},C.fn.extend({serialize:function(){return C.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=C.prop(this,"elements");return e?C.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!C(this).is(":disabled")&&Mt.test(this.nodeName)&&!At.test(e)&&(this.checked||!ge.test(e))}).map(function(e,t){var n=C(this).val();return null==n?null:Array.isArray(n)?C.map(n,function(e){return{name:t.name,value:e.replace(qt,"\r\n")}}):{name:t.name,value:n.replace(qt,"\r\n")}}).get()}});var Ot=/%20/g,zt=/#.*$/,Dt=/([?&])_=[^&]*/,Lt=/^(.*?):[ \t]*([^\r\n]*)$/gm,It=/^(?:GET|HEAD)$/,_t=/^\/\//,Bt={},Rt={},Pt="*/".concat("*"),jt=y.createElement("a");function Ht(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var r,i=0,a=t.toLowerCase().match(R)||[];if(b(n))for(;r=a[i++];)"+"===r[0]?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function Ft(e,t,n,r){var i={},a=e===Rt;function o(s){var l;return i[s]=!0,C.each(e[s]||[],function(e,s){var u=s(t,n,r);return"string"!=typeof u||a||i[u]?a?!(l=u):void 0:(t.dataTypes.unshift(u),o(u),!1)}),l}return o(t.dataTypes[0])||!i["*"]&&o("*")}function Ut(e,t){var n,r,i=C.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((i[n]?e:r||(r={}))[n]=t[n]);return r&&C.extend(!0,e,r),e}jt.href=St.href,C.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:St.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(St.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Pt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":C.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Ut(Ut(e,C.ajaxSettings),t):Ut(C.ajaxSettings,e)},ajaxPrefilter:Ht(Bt),ajaxTransport:Ht(Rt),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var n,i,a,o,s,l,u,c,d,h,p=C.ajaxSetup({},t),f=p.context||p,m=p.context&&(f.nodeType||f.jquery)?C(f):C.event,g=C.Deferred(),b=C.Callbacks("once memory"),v=p.statusCode||{},x={},w={},k="canceled",S={readyState:0,getResponseHeader:function(e){var t;if(u){if(!o)for(o={};t=Lt.exec(a);)o[t[1].toLowerCase()+" "]=(o[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=o[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return u?a:null},setRequestHeader:function(e,t){return null==u&&(e=w[e.toLowerCase()]=w[e.toLowerCase()]||e,x[e]=t),this},overrideMimeType:function(e){return null==u&&(p.mimeType=e),this},statusCode:function(e){var t;if(e)if(u)S.always(e[S.status]);else for(t in e)v[t]=[v[t],e[t]];return this},abort:function(e){var t=e||k;return n&&n.abort(t),T(0,t),this}};if(g.promise(S),p.url=((e||p.url||St.href)+"").replace(_t,St.protocol+"//"),p.type=t.method||t.type||p.method||p.type,p.dataTypes=(p.dataType||"*").toLowerCase().match(R)||[""],null==p.crossDomain){l=y.createElement("a");try{l.href=p.url,l.href=l.href,p.crossDomain=jt.protocol+"//"+jt.host!=l.protocol+"//"+l.host}catch(e){p.crossDomain=!0}}if(p.data&&p.processData&&"string"!=typeof p.data&&(p.data=C.param(p.data,p.traditional)),Ft(Bt,p,t,S),u)return S;for(d in(c=C.event&&p.global)&&0==C.active++&&C.event.trigger("ajaxStart"),p.type=p.type.toUpperCase(),p.hasContent=!It.test(p.type),i=p.url.replace(zt,""),p.hasContent?p.data&&p.processData&&0===(p.contentType||"").indexOf("application/x-www-form-urlencoded")&&(p.data=p.data.replace(Ot,"+")):(h=p.url.slice(i.length),p.data&&(p.processData||"string"==typeof p.data)&&(i+=(Tt.test(i)?"&":"?")+p.data,delete p.data),!1===p.cache&&(i=i.replace(Dt,"$1"),h=(Tt.test(i)?"&":"?")+"_="+Ct.guid+++h),p.url=i+h),p.ifModified&&(C.lastModified[i]&&S.setRequestHeader("If-Modified-Since",C.lastModified[i]),C.etag[i]&&S.setRequestHeader("If-None-Match",C.etag[i])),(p.data&&p.hasContent&&!1!==p.contentType||t.contentType)&&S.setRequestHeader("Content-Type",p.contentType),S.setRequestHeader("Accept",p.dataTypes[0]&&p.accepts[p.dataTypes[0]]?p.accepts[p.dataTypes[0]]+("*"!==p.dataTypes[0]?", "+Pt+"; q=0.01":""):p.accepts["*"]),p.headers)S.setRequestHeader(d,p.headers[d]);if(p.beforeSend&&(!1===p.beforeSend.call(f,S,p)||u))return S.abort();if(k="abort",b.add(p.complete),S.done(p.success),S.fail(p.error),n=Ft(Rt,p,t,S)){if(S.readyState=1,c&&m.trigger("ajaxSend",[S,p]),u)return S;p.async&&p.timeout>0&&(s=r.setTimeout(function(){S.abort("timeout")},p.timeout));try{u=!1,n.send(x,T)}catch(e){if(u)throw e;T(-1,e)}}else T(-1,"No Transport");function T(e,t,o,l){var d,h,y,x,w,k=t;u||(u=!0,s&&r.clearTimeout(s),n=void 0,a=l||"",S.readyState=e>0?4:0,d=e>=200&&e<300||304===e,o&&(x=function(e,t,n){for(var r,i,a,o,s=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(i in s)if(s[i]&&s[i].test(r)){l.unshift(i);break}if(l[0]in n)a=l[0];else{for(i in n){if(!l[0]||e.converters[i+" "+l[0]]){a=i;break}o||(o=i)}a=a||o}if(a)return a!==l[0]&&l.unshift(a),n[a]}(p,S,o)),!d&&C.inArray("script",p.dataTypes)>-1&&C.inArray("json",p.dataTypes)<0&&(p.converters["text script"]=function(){}),x=function(e,t,n,r){var i,a,o,s,l,u={},c=e.dataTypes.slice();if(c[1])for(o in e.converters)u[o.toLowerCase()]=e.converters[o];for(a=c.shift();a;)if(e.responseFields[a]&&(n[e.responseFields[a]]=t),!l&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=a,a=c.shift())if("*"===a)a=l;else if("*"!==l&&l!==a){if(!(o=u[l+" "+a]||u["* "+a]))for(i in u)if((s=i.split(" "))[1]===a&&(o=u[l+" "+s[0]]||u["* "+s[0]])){!0===o?o=u[i]:!0!==u[i]&&(a=s[0],c.unshift(s[1]));break}if(!0!==o)if(o&&e.throws)t=o(t);else try{t=o(t)}catch(e){return{state:"parsererror",error:o?e:"No conversion from "+l+" to "+a}}}return{state:"success",data:t}}(p,x,S,d),d?(p.ifModified&&((w=S.getResponseHeader("Last-Modified"))&&(C.lastModified[i]=w),(w=S.getResponseHeader("etag"))&&(C.etag[i]=w)),204===e||"HEAD"===p.type?k="nocontent":304===e?k="notmodified":(k=x.state,h=x.data,d=!(y=x.error))):(y=k,!e&&k||(k="error",e<0&&(e=0))),S.status=e,S.statusText=(t||k)+"",d?g.resolveWith(f,[h,k,S]):g.rejectWith(f,[S,k,y]),S.statusCode(v),v=void 0,c&&m.trigger(d?"ajaxSuccess":"ajaxError",[S,p,d?h:y]),b.fireWith(f,[S,k]),c&&(m.trigger("ajaxComplete",[S,p]),--C.active||C.event.trigger("ajaxStop")))}return S},getJSON:function(e,t,n){return C.get(e,t,n,"json")},getScript:function(e,t){return C.get(e,void 0,t,"script")}}),C.each(["get","post"],function(e,t){C[t]=function(e,n,r,i){return b(n)&&(i=i||r,r=n,n=void 0),C.ajax(C.extend({url:e,type:t,dataType:i,data:n,success:r},C.isPlainObject(e)&&e))}}),C.ajaxPrefilter(function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")}),C._evalUrl=function(e,t,n){return C.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){C.globalEval(e,t,n)}})},C.fn.extend({wrapAll:function(e){var t;return this[0]&&(b(e)&&(e=e.call(this[0])),t=C(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e}).append(this)),this},wrapInner:function(e){return b(e)?this.each(function(t){C(this).wrapInner(e.call(this,t))}):this.each(function(){var t=C(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=b(e);return this.each(function(n){C(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(e){return this.parent(e).not("body").each(function(){C(this).replaceWith(this.childNodes)}),this}}),C.expr.pseudos.hidden=function(e){return!C.expr.pseudos.visible(e)},C.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},C.ajaxSettings.xhr=function(){try{return new r.XMLHttpRequest}catch(e){}};var Qt={0:200,1223:204},Wt=C.ajaxSettings.xhr();g.cors=!!Wt&&"withCredentials"in Wt,g.ajax=Wt=!!Wt,C.ajaxTransport(function(e){var t,n;if(g.cors||Wt&&!e.crossDomain)return{send:function(i,a){var o,s=e.xhr();if(s.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(o in e.xhrFields)s[o]=e.xhrFields[o];for(o in e.mimeType&&s.overrideMimeType&&s.overrideMimeType(e.mimeType),e.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest"),i)s.setRequestHeader(o,i[o]);t=function(e){return function(){t&&(t=n=s.onload=s.onerror=s.onabort=s.ontimeout=s.onreadystatechange=null,"abort"===e?s.abort():"error"===e?"number"!=typeof s.status?a(0,"error"):a(s.status,s.statusText):a(Qt[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!=typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=t(),n=s.onerror=s.ontimeout=t("error"),void 0!==s.onabort?s.onabort=n:s.onreadystatechange=function(){4===s.readyState&&r.setTimeout(function(){t&&n()})},t=t("abort");try{s.send(e.hasContent&&e.data||null)}catch(e){if(t)throw e}},abort:function(){t&&t()}}}),C.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),C.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return C.globalEval(e),e}}}),C.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),C.ajaxTransport("script",function(e){var t,n;if(e.crossDomain||e.scriptAttrs)return{send:function(r,i){t=C("<script>").attr(e.scriptAttrs||{}).prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&i("error"===e.type?404:200,e.type)}),y.head.appendChild(t[0])},abort:function(){n&&n()}}});var Vt,$t=[],Gt=/(=)\?(?=&|$)|\?\?/;C.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=$t.pop()||C.expando+"_"+Ct.guid++;return this[e]=!0,e}}),C.ajaxPrefilter("json jsonp",function(e,t,n){var i,a,o,s=!1!==e.jsonp&&(Gt.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Gt.test(e.data)&&"data");if(s||"jsonp"===e.dataTypes[0])return i=e.jsonpCallback=b(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,s?e[s]=e[s].replace(Gt,"$1"+i):!1!==e.jsonp&&(e.url+=(Tt.test(e.url)?"&":"?")+e.jsonp+"="+i),e.converters["script json"]=function(){return o||C.error(i+" was not called"),o[0]},e.dataTypes[0]="json",a=r[i],r[i]=function(){o=arguments},n.always(function(){void 0===a?C(r).removeProp(i):r[i]=a,e[i]&&(e.jsonpCallback=t.jsonpCallback,$t.push(i)),o&&b(a)&&a(o[0]),o=a=void 0}),"script"}),g.createHTMLDocument=((Vt=y.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===Vt.childNodes.length),C.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(g.createHTMLDocument?((r=(t=y.implementation.createHTMLDocument("")).createElement("base")).href=y.location.href,t.head.appendChild(r)):t=y),a=!n&&[],(i=O.exec(e))?[t.createElement(i[1])]:(i=Se([e],t,a),a&&a.length&&C(a).remove(),C.merge([],i.childNodes)));var r,i,a},C.fn.load=function(e,t,n){var r,i,a,o=this,s=e.indexOf(" ");return s>-1&&(r=bt(e.slice(s)),e=e.slice(0,s)),b(t)?(n=t,t=void 0):t&&"object"==typeof t&&(i="POST"),o.length>0&&C.ajax({url:e,type:i||"GET",dataType:"html",data:t}).done(function(e){a=arguments,o.html(r?C("<div>").append(C.parseHTML(e)).find(r):e)}).always(n&&function(e,t){o.each(function(){n.apply(this,a||[e.responseText,t,e])})}),this},C.expr.pseudos.animated=function(e){return C.grep(C.timers,function(t){return e===t.elem}).length},C.offset={setOffset:function(e,t,n){var r,i,a,o,s,l,u=C.css(e,"position"),c=C(e),d={};"static"===u&&(e.style.position="relative"),s=c.offset(),a=C.css(e,"top"),l=C.css(e,"left"),("absolute"===u||"fixed"===u)&&(a+l).indexOf("auto")>-1?(o=(r=c.position()).top,i=r.left):(o=parseFloat(a)||0,i=parseFloat(l)||0),b(t)&&(t=t.call(e,n,C.extend({},s))),null!=t.top&&(d.top=t.top-s.top+o),null!=t.left&&(d.left=t.left-s.left+i),"using"in t?t.using.call(e,d):c.css(d)}},C.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){C.offset.setOffset(this,e,t)});var t,n,r=this[0];return r?r.getClientRects().length?(t=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:t.top+n.pageYOffset,left:t.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],i={top:0,left:0};if("fixed"===C.css(r,"position"))t=r.getBoundingClientRect();else{for(t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;e&&(e===n.body||e===n.documentElement)&&"static"===C.css(e,"position");)e=e.parentNode;e&&e!==r&&1===e.nodeType&&((i=C(e).offset()).top+=C.css(e,"borderTopWidth",!0),i.left+=C.css(e,"borderLeftWidth",!0))}return{top:t.top-i.top-C.css(r,"marginTop",!0),left:t.left-i.left-C.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===C.css(e,"position");)e=e.offsetParent;return e||oe})}}),C.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,t){var n="pageYOffset"===t;C.fn[e]=function(r){return W(this,function(e,r,i){var a;if(v(e)?a=e:9===e.nodeType&&(a=e.defaultView),void 0===i)return a?a[t]:e[r];a?a.scrollTo(n?a.pageXOffset:i,n?i:a.pageYOffset):e[r]=i},e,r,arguments.length)}}),C.each(["top","left"],function(e,t){C.cssHooks[t]=We(g.pixelPosition,function(e,n){if(n)return n=Qe(e,t),je.test(n)?C(e).position()[t]+"px":n})}),C.each({Height:"height",Width:"width"},function(e,t){C.each({padding:"inner"+e,content:t,"":"outer"+e},function(n,r){C.fn[r]=function(i,a){var o=arguments.length&&(n||"boolean"!=typeof i),s=n||(!0===i||!0===a?"margin":"border");return W(this,function(t,n,i){var a;return v(t)?0===r.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(a=t.documentElement,Math.max(t.body["scroll"+e],a["scroll"+e],t.body["offset"+e],a["offset"+e],a["client"+e])):void 0===i?C.css(t,n,s):C.style(t,n,i,s)},t,o?i:void 0,o)}})}),C.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){C.fn[t]=function(e){return this.on(t,e)}}),C.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),C.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,t){C.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}});var Kt=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;C.proxy=function(e,t){var n,r,i;if("string"==typeof t&&(n=e[t],t=e,e=n),b(e))return r=s.call(arguments,2),i=function(){return e.apply(t||this,r.concat(s.call(arguments)))},i.guid=e.guid=e.guid||C.guid++,i},C.holdReady=function(e){e?C.readyWait++:C.ready(!0)},C.isArray=Array.isArray,C.parseJSON=JSON.parse,C.nodeName=N,C.isFunction=b,C.isWindow=v,C.camelCase=K,C.type=k,C.now=Date.now,C.isNumeric=function(e){var t=C.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},C.trim=function(e){return null==e?"":(e+"").replace(Kt,"")},void 0===(n=function(){return C}.apply(t,[]))||(e.exports=n);var Xt=r.jQuery,Yt=r.$;return C.noConflict=function(e){return r.$===C&&(r.$=Yt),e&&r.jQuery===C&&(r.jQuery=Xt),C},void 0===i&&(r.jQuery=r.$=C),C})},703:(e,t,n)=>{var r=n(414);function i(){}function a(){}a.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,a,o){if(o!==r){var s=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 s.name="Invariant Violation",s}}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:a,resetWarningCache:i};return n.PropTypes=n,n}},697:(e,t,n)=>{e.exports=n(703)()},414:e=>{e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},156:e=>{e.exports=r}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var a=t[r]={id:r,exports:{}};return e[r].call(a.exports,a,a.exports,n),a.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return(()=>{n.r(i),n.d(i,{addStyles:()=>t,EditableMathField:()=>r,StaticMathField:()=>a,default:()=>o});var e=n(527);function t(){if(null==document.getElementById("react-mathquill-styles")){var t=document.createElement("style");t.setAttribute("id","react-mathquill-styles"),t.innerHTML=e.Z[0][1],document.getElementsByTagName("head")[0].appendChild(t)}}var r=n(991).Z,a=n(717).Z;const o=r})(),i})())},825:e=>{e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var r="";n.supports&&(r+="@supports (".concat(n.supports,") {")),n.media&&(r+="@media ".concat(n.media," {"));var i=void 0!==n.layer;i&&(r+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),r+=n.css,i&&(r+="}"),n.media&&(r+="}"),n.supports&&(r+="}");var a=n.sourceMap;a&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(a))))," */")),t.styleTagTransform(r,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},841:(e,t,n)=>{n.d(t,{A:()=>s});var r=n(601),i=n.n(r),a=n(314),o=n.n(a)()(i());o.push([e.id,"/* Note that the top left position of the accent bar is set programatically in componentDidMount */\n\n.AccentBar {\n position: absolute;\n z-index: 1;\n width: 360px;\n background-color: #fff;\n border: 1px solid #d0d0d0;\n border-radius: 5px;\n box-shadow: 1px 1px 5px #a0a0a0;\n padding: 8px;\n animation: 0.4s fadeIn1;\n animation-fill-mode: forwards;\n color: black;\n}\n\n.AccentBar-compact {\n display: flex;\n position: absolute;\n z-index: 1;\n background-color: white;\n border: 1px solid #d0d0d0;\n border-radius: 5px;\n box-shadow: 1px 1px 5px #a0a0a0;\n padding: 5px;\n animation: 0.4s fadeIn1;\n animation-fill-mode: forwards;\n color: black;\n}\n\n.AccentBar-outerContainer {\n overflow-y: scroll;\n border-radius: 5px;\n}\n\n.AccentBar-innerContainer {\n height: 350px;\n}\n\n@keyframes fadeIn1 {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n}\n\n.AccentBar .symbols-grid {\n display: grid;\n grid-template-columns: repeat(auto-fill, minmax(36px, 1fr));\n grid-auto-rows: minmax(min-content, max-content);\n grid-gap: 3px;\n}\n\n.AccentBar .insert-grid {\n padding: 5px;\n}\n\n.AccentBar .type-a-letter {\n grid-column: 1/-1;\n color: #a0a0a0;\n font-family: sans-serif;\n font-size: 14px;\n font-weight: bold;\n height: 36px;\n padding-top: 12px;\n padding-left: 20px;\n}\n\n.AccentBar-button {\n font-family: sans-serif;\n font-size: 17px;\n width: 40px;\n height: 36px;\n background: #f4f4f4;\n border-radius: 5px;\n border: 0px;\n padding: 1px;\n}\n\n.AB-compact {\n margin: 0px;\n background: white;\n}\n\n.AB-narrow {\n width: 36px;\n}\n\n.AccentBar-button:hover {\n color: white;\n background: #663676;\n cursor: pointer;\n box-shadow: 1px 1px 3px #808080;\n animation: 2s grow;\n animation-fill-mode: forwards;\n}\n\n@keyframes grow {\n 00% {\n transform: scale(1);\n box-shadow: 0px 0px 0px #808080;\n }\n 10% {\n transform: scale(1.3);\n box-shadow: 1px 1px 3px #808080;\n }\n 90% {\n transform: scale(1.3);\n box-shadow: 1px 1px 3px #808080;\n }\n 100% {\n transform: scale(1.8);\n box-shadow: 1px 1px 3px #808080;\n }\n}\n\n.AccentBar-button:active {\n background: #808080;\n color: white;\n cursor: pointer;\n}\n\n.AccentBar .tabBar {\n background: white;\n text-align: left;\n border: 0px;\n padding: 10px 0;\n}\n\n.AccentBar .tab {\n font-size: 14px;\n font-weight: bold;\n color: #404040;\n text-align: left;\n border: 0px;\n height: 30px;\n padding: 2px 5px 2px 5px;\n margin: 2px;\n border-bottom: 4px solid #d0d0d0;\n}\n\n.AccentBar .tab:hover {\n cursor: pointer;\n}\n\n.AccentBar .tab-selected {\n font-size: 14px;\n font-weight: bold;\n color: #404040;\n text-align: left;\n border: 0px;\n height: 30px;\n padding: 2px 5px 2px 5px;\n margin: 2px;\n border-bottom: 4px solid #663676;\n}\n\n.AccentBar .section-label {\n grid-column: 1/-1;\n font-size: 13px;\n font-weight: bold;\n color: #663676;\n margin-top: 8px;\n margin-left: 8px;\n margin-bottom: 4px;\n}\n\n.AccentBar .replace-section {\n min-height: 70px;\n}\n\n.AccentBar .tabArea {\n animation: 0.4s fadeIn1;\n animation-fill-mode: forwards;\n}\n",""]);const s=o},845:(e,t,n)=>{n.d(t,{A:()=>s});var r=n(601),i=n.n(r),a=n(314),o=n.n(a)()(i());o.push([e.id,"/* Note that the top left position of the toolbar is set programatically in componentDidMount */\n\n.Toolbar {\n position: absolute;\n z-index: 10;\n display: flex;\n height: 42px;\n background-color: white;\n border: 1px solid #d0d0d0;\n border-radius: 5px;\n box-shadow: 1px 1px 5px #a0a0a0;\n animation: 0.5s fadeIn1;\n animation-fill-mode: forwards;\n color: black;\n}\n\n@keyframes fadeIn1 {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n}\n\n.Toolbar-button {\n font-family: sans-serif;\n font-size: 16px;\n width: 40px;\n height: 36px;\n background-color: white;\n border-radius: 5px;\n border: 0px;\n padding: 1px;\n margin: 2px;\n}\n\n.Toolbar-button:hover {\n color: white;\n background: #663676;\n cursor: pointer;\n}\n\n.Toolbar-button:active {\n background: #808080;\n color: white;\n cursor: pointer;\n}\n\n.TB-narrow {\n width: 30px;\n}\n\n.TB-wide {\n width: 46px;\n}\n\n.TB-selected {\n background: #d0d0d0;\n color: black;\n cursor: pointer;\n animation: 0.2s TB-fadeIn;\n animation-fill-mode: forwards;\n}\n\n.TB-selected:hover {\n color: white;\n background: #663676;\n cursor: pointer;\n}\n\n@keyframes TB-fadeIn {\n 00% {\n background: white;\n }\n 100% {\n background: #d0d0d0;\n }\n}\n\n/* Tooltip text */\n.Toolbar-button .tooltiptext {\n font-weight: normal;\n visibility: hidden;\n width: 100px;\n background-color: #222;\n color: #fff;\n /*font-weight: bold;*/\n font-size: 12px;\n text-align: center;\n padding: 4px 10px;\n border-radius: 6px;\n\n /* Position the tooltip text - see examples below! */\n position: absolute;\n z-index: 11;\n top: -90%; /* Must leave a small gap between tooltip and button */\n left: 50px;\n\n /* transform: translate (50%,0%); */\n}\n\n/* Show the tooltip text when you mouse over the tooltip container */\n.Toolbar-button:hover .tooltiptext {\n animation: 0.8s fadeIn2;\n animation-fill-mode: forwards;\n visibility: visible;\n /* width: 100px; */\n /* top: -90%; */ /* Must leave a small gap between tooltip and button */\n /* left: 20%; */\n /* margin-left: -50px; */\n}\n\n@keyframes fadeIn2 {\n 00% {\n opacity: 0;\n }\n 70% {\n opacity: 0;\n }\n 100% {\n visibility: visible;\n opacity: 0.9;\n }\n}\n\n/* .tooltip {\n position: relative;\n display: inline-block;\n border-bottom: 1px dotted black; /* If you want dots under the hoverable text \n} */\n",""]);const s=o},890:function(e){var t;"undefined"!=typeof self&&self,t=function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=1)}([function(e,t,n){},function(e,t,n){n.r(t),n(0);var r=function(){function e(e,t,n){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=e,this.start=t,this.end=n}return e.range=function(t,n){return n?t&&t.loc&&n.loc&&t.loc.lexer===n.loc.lexer?new e(t.loc.lexer,t.loc.start,n.loc.end):null:t&&t.loc},e}(),i=function(){function e(e,t){this.text=void 0,this.loc=void 0,this.noexpand=void 0,this.treatAsRelax=void 0,this.text=e,this.loc=t}return e.prototype.range=function(t,n){return new e(n,r.range(this,t))},e}(),a=function e(t,n){this.position=void 0;var r,i="KaTeX parse error: "+t,a=n&&n.loc;if(a&&a.start<=a.end){var o=a.lexer.input;r=a.start;var s=a.end;r===o.length?i+=" at end of input: ":i+=" at position "+(r+1)+": ";var l=o.slice(r,s).replace(/[^]/g,"$&̲");i+=(r>15?"…"+o.slice(r-15,r):o.slice(0,r))+l+(s+15<o.length?o.slice(s,s+15)+"…":o.slice(s))}var u=new Error(i);return u.name="ParseError",u.__proto__=e.prototype,u.position=r,u};a.prototype.__proto__=Error.prototype;var o=a,s=/([A-Z])/g,l={"&":"&amp;",">":"&gt;","<":"&lt;",'"':"&quot;","'":"&#x27;"},u=/[&><"']/g,c=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},d=function(e,t){return-1!==e.indexOf(t)},h=function(e,t){return void 0===e?t:e},p=function(e){return String(e).replace(u,function(e){return l[e]})},f=function(e){return e.replace(s,"-$1").toLowerCase()},m=c,g=function(e){var t=c(e);return"mathord"===t.type||"textord"===t.type||"atom"===t.type},b=function(e){var t=/^\s*([^\\/#]*?)(?::|&#0*58|&#x0*3a)/i.exec(e);return null!=t?t[1]:"_relative"},v=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,this.globalGroup=void 0,e=e||{},this.displayMode=h(e.displayMode,!1),this.output=h(e.output,"htmlAndMathml"),this.leqno=h(e.leqno,!1),this.fleqn=h(e.fleqn,!1),this.throwOnError=h(e.throwOnError,!0),this.errorColor=h(e.errorColor,"#cc0000"),this.macros=e.macros||{},this.minRuleThickness=Math.max(0,h(e.minRuleThickness,0)),this.colorIsTextColor=h(e.colorIsTextColor,!1),this.strict=h(e.strict,"warn"),this.trust=h(e.trust,!1),this.maxSize=Math.max(0,h(e.maxSize,1/0)),this.maxExpand=Math.max(0,h(e.maxExpand,1e3)),this.globalGroup=h(e.globalGroup,!1)}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 o("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=b(e.url));var t="function"==typeof this.trust?this.trust(e):this.trust;return Boolean(t)},e}(),y=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 x[w[this.id]]},t.sub=function(){return x[k[this.id]]},t.fracNum=function(){return x[S[this.id]]},t.fracDen=function(){return x[C[this.id]]},t.cramp=function(){return x[T[this.id]]},t.text=function(){return x[E[this.id]]},t.isTight=function(){return this.size>=2},e}(),x=[new y(0,0,!1),new y(1,0,!0),new y(2,1,!1),new y(3,1,!0),new y(4,2,!1),new y(5,2,!0),new y(6,3,!1),new y(7,3,!0)],w=[4,5,4,5,6,7,6,7],k=[5,5,5,5,7,7,7,7],S=[2,3,4,5,6,7,6,7],C=[3,3,5,5,7,7,7,7],T=[1,1,3,3,5,5,7,7],E=[0,1,2,3,2,3,2,3],q={DISPLAY:x[0],TEXT:x[2],SCRIPT:x[4],SCRIPTSCRIPT:x[6]},A=[{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 N(e){for(var t=0;t<M.length;t+=2)if(e>=M[t]&&e<=M[t+1])return!0;return!1}A.forEach(function(e){return e.blocks.forEach(function(e){return M.push.apply(M,e)})});var O={leftParenInner:"M291 0 H417 V300 H291 z",rightParenInner:"M457 0 H583 V300 H457 z",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"},z=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 d(this.classes,e)},t.toNode=function(){for(var e=document.createDocumentFragment(),t=0;t<this.children.length;t++)e.appendChild(this.children[t].toNode());return e},t.toMarkup=function(){for(var e="",t=0;t<this.children.length;t++)e+=this.children[t].toMarkup();return e},t.toText=function(){return this.children.map(function(e){return e.toText()}).join("")},e}(),D=function(e){return e.filter(function(e){return e}).join(" ")},L=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");var r=t.getColor();r&&(this.style.color=r)}},I=function(e){var t=document.createElement(e);for(var n in t.className=D(this.classes),this.style)this.style.hasOwnProperty(n)&&(t.style[n]=this.style[n]);for(var r in this.attributes)this.attributes.hasOwnProperty(r)&&t.setAttribute(r,this.attributes[r]);for(var i=0;i<this.children.length;i++)t.appendChild(this.children[i].toNode());return t},_=function(e){var t="<"+e;this.classes.length&&(t+=' class="'+p(D(this.classes))+'"');var n="";for(var r in this.style)this.style.hasOwnProperty(r)&&(n+=f(r)+":"+this.style[r]+";");for(var i in n&&(t+=' style="'+p(n)+'"'),this.attributes)this.attributes.hasOwnProperty(i)&&(t+=" "+i+'="'+p(this.attributes[i])+'"');t+=">";for(var a=0;a<this.children.length;a++)t+=this.children[a].toMarkup();return t+"</"+e+">"},B=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,L.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 d(this.classes,e)},t.toNode=function(){return I.call(this,"span")},t.toMarkup=function(){return _.call(this,"span")},e}(),R=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,L.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 d(this.classes,e)},t.toNode=function(){return I.call(this,"a")},t.toMarkup=function(){return _.call(this,"a")},e}(),P=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 d(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="<img src='"+this.src+" 'alt='"+this.alt+"' ",t="";for(var n in this.style)this.style.hasOwnProperty(n)&&(t+=f(n)+":"+this.style[n]+";");return t&&(e+=' style="'+p(t)+'"'),e+"'/>"},e}(),j={î:"ı̂",ï:"ı̈",í:"ı́",ì:"ı̀"},H=function(){function e(e,t,n,r,i,a,o,s){this.text=void 0,this.height=void 0,this.depth=void 0,this.italic=void 0,this.skew=void 0,this.width=void 0,this.maxFontSize=void 0,this.classes=void 0,this.style=void 0,this.text=e,this.height=t||0,this.depth=n||0,this.italic=r||0,this.skew=i||0,this.width=a||0,this.classes=o||[],this.style=s||{},this.maxFontSize=0;var l=function(e){for(var t=0;t<A.length;t++)for(var n=A[t],r=0;r<n.blocks.length;r++){var i=n.blocks[r];if(e>=i[0]&&e<=i[1])return n.name}return null}(this.text.charCodeAt(0));l&&this.classes.push(l+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=j[this.text])}var t=e.prototype;return t.hasClass=function(e){return d(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=D(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="<span";this.classes.length&&(e=!0,t+=' class="',t+=p(D(this.classes)),t+='"');var n="";for(var r in this.italic>0&&(n+="margin-right:"+this.italic+"em;"),this.style)this.style.hasOwnProperty(r)&&(n+=f(r)+":"+this.style[r]+";");n&&(e=!0,t+=' style="'+p(n)+'"');var i=p(this.text);return e?(t+=">",t+=i,t+="</span>"):i},e}(),F=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<this.children.length;n++)e.appendChild(this.children[n].toNode());return e},t.toMarkup=function(){var e="<svg";for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&(e+=" "+t+"='"+this.attributes[t]+"'");e+=">";for(var n=0;n<this.children.length;n++)e+=this.children[n].toMarkup();return e+"</svg>"},e}(),U=function(){function e(e,t){this.pathName=void 0,this.alternate=void 0,this.pathName=e,this.alternate=t}var t=e.prototype;return t.toNode=function(){var e=document.createElementNS("http://www.w3.org/2000/svg","path");return this.alternate?e.setAttribute("d",this.alternate):e.setAttribute("d",O[this.pathName]),e},t.toMarkup=function(){return this.alternate?"<path d='"+this.alternate+"'/>":"<path d='"+O[this.pathName]+"'/>"},e}(),Q=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="<line";for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&(e+=" "+t+"='"+this.attributes[t]+"'");return e+"/>"},e}();function W(e){if(e instanceof H)return e;throw new Error("Expected symbolNode but got "+String(e)+".")}var V={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{32:[0,0,0,0,.25],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473],160:[0,0,0,0,.25]},"Fraktur-Regular":{32:[0,0,0,0,.25],33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],160:[0,0,0,0,.25],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],160:[0,0,0,0,.25],163:[0,.69444,0,0,.86853],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444],57376:[.19444,.69444,0,0,0]},"Main-BoldItalic":{32:[0,0,0,0,.25],33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],160:[0,0,0,0,.25],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],160:[0,0,0,0,.25],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,.25],163:[0,.69444,0,0,.76909],167:[.19444,.69444,0,0,.44445],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],182:[.19444,.69444,0,0,.61111],184:[.17014,0,0,0,.44445],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.12,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,1],8617:[.011,.511,0,0,1.126],8618:[.011,.511,0,0,1.126],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,1],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,1],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.67,0,0,.778],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,.867],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,.9],8942:[.03,.9,0,0,.278],8943:[-.19,.31,0,0,1.172],8945:[-.1,.82,0,0,1.282],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,.412],9137:[.244,.744,0,0,.412],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,.412],10223:[.244,.744,0,0,.412],10229:[.011,.511,0,0,1.609],10230:[.011,.511,0,0,1.638],10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:[.011,.511,0,0,1.638],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778],57376:[.19444,.69444,0,0,0]},"Math-BoldItalic":{32:[0,0,0,0,.25],48:[0,.44444,0,0,.575],49:[0,.44444,0,0,.575],50:[0,.44444,0,0,.575],51:[.19444,.44444,0,0,.575],52:[.19444,.44444,0,0,.575],53:[.19444,.44444,0,0,.575],54:[0,.64444,0,0,.575],55:[.19444,.44444,0,0,.575],56:[0,.64444,0,0,.575],57:[.19444,.44444,0,0,.575],65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],160:[0,0,0,0,.25],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:[0,0,0,0,.25],48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],160:[0,0,0,0,.25],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],160:[0,0,0,0,.25],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],160:[0,0,0,0,.25],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],184:[.17014,0,0,0,.44445],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],160:[0,0,0,0,.25],168:[0,.67937,0,0,.5],176:[0,.69444,0,0,.66667],184:[.17014,0,0,0,.44445],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],732:[0,.67659,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{32:[0,0,0,0,.25],65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212],160:[0,0,0,0,.25]},"Size1-Regular":{32:[0,0,0,0,.25],40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],160:[0,0,0,0,.25],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{32:[0,0,0,0,.25],40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],160:[0,0,0,0,.25],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{32:[0,0,0,0,.25],40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],160:[0,0,0,0,.25],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{32:[0,0,0,0,.25],40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],160:[0,0,0,0,.25],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{32:[0,0,0,0,.525],33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],160:[0,0,0,0,.525],176:[0,.61111,0,0,.525],184:[.19445,0,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}},$={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},G={Å:"A",Ç:"C",Ð:"D",Þ:"o",å:"a",ç:"c",ð:"d",þ:"o",А:"A",Б:"B",В:"B",Г:"F",Д:"A",Е:"E",Ж:"K",З:"3",И:"N",Й:"N",К:"K",Л:"N",М:"M",Н:"H",О:"O",П:"N",Р:"P",С:"C",Т:"T",У:"y",Ф:"O",Х:"X",Ц:"U",Ч:"h",Ш:"W",Щ:"W",Ъ:"B",Ы:"X",Ь:"B",Э:"3",Ю:"X",Я:"R",а:"a",б:"b",в:"a",г:"r",д:"y",е:"e",ж:"m",з:"e",и:"n",й:"n",к:"n",л:"n",м:"m",н:"n",о:"o",п:"n",р:"p",с:"c",т:"o",у:"y",ф:"b",х:"x",ц:"n",ч:"n",ш:"w",щ:"w",ъ:"a",ы:"m",ь:"a",э:"e",ю:"m",я:"r"};function K(e,t,n){if(!V[t])throw new Error("Font metrics not found for font: "+t+".");var r=e.charCodeAt(0),i=V[t][r];if(!i&&e[0]in G&&(r=G[e[0]].charCodeAt(0),i=V[t][r]),i||"text"!==n||N(r)&&(i=V[t][77]),i)return{depth:i[0],height:i[1],italic:i[2],skew:i[3],width:i[4]}}var X={},Y={bin:1,close:1,inner:1,open:1,punct:1,rel:1},Z={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},J={math:{},text:{}},ee=J;function te(e,t,n,r,i,a){J[e][i]={font:t,group:n,replace:r},a&&r&&(J[e][r]=J[e][i])}var ne="math",re="text",ie="main",ae="ams",oe="accent-token",se="bin",le="close",ue="inner",ce="mathord",de="op-token",he="open",pe="punct",fe="rel",me="spacing",ge="textord";te(ne,ie,fe,"≡","\\equiv",!0),te(ne,ie,fe,"≺","\\prec",!0),te(ne,ie,fe,"≻","\\succ",!0),te(ne,ie,fe,"∼","\\sim",!0),te(ne,ie,fe,"⊥","\\perp"),te(ne,ie,fe,"⪯","\\preceq",!0),te(ne,ie,fe,"⪰","\\succeq",!0),te(ne,ie,fe,"≃","\\simeq",!0),te(ne,ie,fe,"∣","\\mid",!0),te(ne,ie,fe,"≪","\\ll",!0),te(ne,ie,fe,"≫","\\gg",!0),te(ne,ie,fe,"≍","\\asymp",!0),te(ne,ie,fe,"∥","\\parallel"),te(ne,ie,fe,"⋈","\\bowtie",!0),te(ne,ie,fe,"⌣","\\smile",!0),te(ne,ie,fe,"⊑","\\sqsubseteq",!0),te(ne,ie,fe,"⊒","\\sqsupseteq",!0),te(ne,ie,fe,"≐","\\doteq",!0),te(ne,ie,fe,"⌢","\\frown",!0),te(ne,ie,fe,"∋","\\ni",!0),te(ne,ie,fe,"∝","\\propto",!0),te(ne,ie,fe,"⊢","\\vdash",!0),te(ne,ie,fe,"⊣","\\dashv",!0),te(ne,ie,fe,"∋","\\owns"),te(ne,ie,pe,".","\\ldotp"),te(ne,ie,pe,"⋅","\\cdotp"),te(ne,ie,ge,"#","\\#"),te(re,ie,ge,"#","\\#"),te(ne,ie,ge,"&","\\&"),te(re,ie,ge,"&","\\&"),te(ne,ie,ge,"ℵ","\\aleph",!0),te(ne,ie,ge,"∀","\\forall",!0),te(ne,ie,ge,"ℏ","\\hbar",!0),te(ne,ie,ge,"∃","\\exists",!0),te(ne,ie,ge,"∇","\\nabla",!0),te(ne,ie,ge,"♭","\\flat",!0),te(ne,ie,ge,"ℓ","\\ell",!0),te(ne,ie,ge,"♮","\\natural",!0),te(ne,ie,ge,"♣","\\clubsuit",!0),te(ne,ie,ge,"℘","\\wp",!0),te(ne,ie,ge,"♯","\\sharp",!0),te(ne,ie,ge,"♢","\\diamondsuit",!0),te(ne,ie,ge,"ℜ","\\Re",!0),te(ne,ie,ge,"♡","\\heartsuit",!0),te(ne,ie,ge,"ℑ","\\Im",!0),te(ne,ie,ge,"♠","\\spadesuit",!0),te(re,ie,ge,"§","\\S",!0),te(re,ie,ge,"¶","\\P",!0),te(ne,ie,ge,"†","\\dag"),te(re,ie,ge,"†","\\dag"),te(re,ie,ge,"†","\\textdagger"),te(ne,ie,ge,"‡","\\ddag"),te(re,ie,ge,"‡","\\ddag"),te(re,ie,ge,"‡","\\textdaggerdbl"),te(ne,ie,le,"⎱","\\rmoustache",!0),te(ne,ie,he,"⎰","\\lmoustache",!0),te(ne,ie,le,"⟯","\\rgroup",!0),te(ne,ie,he,"⟮","\\lgroup",!0),te(ne,ie,se,"∓","\\mp",!0),te(ne,ie,se,"⊖","\\ominus",!0),te(ne,ie,se,"⊎","\\uplus",!0),te(ne,ie,se,"⊓","\\sqcap",!0),te(ne,ie,se,"∗","\\ast"),te(ne,ie,se,"⊔","\\sqcup",!0),te(ne,ie,se,"◯","\\bigcirc"),te(ne,ie,se,"∙","\\bullet"),te(ne,ie,se,"‡","\\ddagger"),te(ne,ie,se,"≀","\\wr",!0),te(ne,ie,se,"⨿","\\amalg"),te(ne,ie,se,"&","\\And"),te(ne,ie,fe,"⟵","\\longleftarrow",!0),te(ne,ie,fe,"⇐","\\Leftarrow",!0),te(ne,ie,fe,"⟸","\\Longleftarrow",!0),te(ne,ie,fe,"⟶","\\longrightarrow",!0),te(ne,ie,fe,"⇒","\\Rightarrow",!0),te(ne,ie,fe,"⟹","\\Longrightarrow",!0),te(ne,ie,fe,"↔","\\leftrightarrow",!0),te(ne,ie,fe,"⟷","\\longleftrightarrow",!0),te(ne,ie,fe,"⇔","\\Leftrightarrow",!0),te(ne,ie,fe,"⟺","\\Longleftrightarrow",!0),te(ne,ie,fe,"↦","\\mapsto",!0),te(ne,ie,fe,"⟼","\\longmapsto",!0),te(ne,ie,fe,"↗","\\nearrow",!0),te(ne,ie,fe,"↩","\\hookleftarrow",!0),te(ne,ie,fe,"↪","\\hookrightarrow",!0),te(ne,ie,fe,"↘","\\searrow",!0),te(ne,ie,fe,"↼","\\leftharpoonup",!0),te(ne,ie,fe,"⇀","\\rightharpoonup",!0),te(ne,ie,fe,"↙","\\swarrow",!0),te(ne,ie,fe,"↽","\\leftharpoondown",!0),te(ne,ie,fe,"⇁","\\rightharpoondown",!0),te(ne,ie,fe,"↖","\\nwarrow",!0),te(ne,ie,fe,"⇌","\\rightleftharpoons",!0),te(ne,ae,fe,"≮","\\nless",!0),te(ne,ae,fe,"","\\@nleqslant"),te(ne,ae,fe,"","\\@nleqq"),te(ne,ae,fe,"⪇","\\lneq",!0),te(ne,ae,fe,"≨","\\lneqq",!0),te(ne,ae,fe,"","\\@lvertneqq"),te(ne,ae,fe,"⋦","\\lnsim",!0),te(ne,ae,fe,"⪉","\\lnapprox",!0),te(ne,ae,fe,"⊀","\\nprec",!0),te(ne,ae,fe,"⋠","\\npreceq",!0),te(ne,ae,fe,"⋨","\\precnsim",!0),te(ne,ae,fe,"⪹","\\precnapprox",!0),te(ne,ae,fe,"≁","\\nsim",!0),te(ne,ae,fe,"","\\@nshortmid"),te(ne,ae,fe,"∤","\\nmid",!0),te(ne,ae,fe,"⊬","\\nvdash",!0),te(ne,ae,fe,"⊭","\\nvDash",!0),te(ne,ae,fe,"⋪","\\ntriangleleft"),te(ne,ae,fe,"⋬","\\ntrianglelefteq",!0),te(ne,ae,fe,"⊊","\\subsetneq",!0),te(ne,ae,fe,"","\\@varsubsetneq"),te(ne,ae,fe,"⫋","\\subsetneqq",!0),te(ne,ae,fe,"","\\@varsubsetneqq"),te(ne,ae,fe,"≯","\\ngtr",!0),te(ne,ae,fe,"","\\@ngeqslant"),te(ne,ae,fe,"","\\@ngeqq"),te(ne,ae,fe,"⪈","\\gneq",!0),te(ne,ae,fe,"≩","\\gneqq",!0),te(ne,ae,fe,"","\\@gvertneqq"),te(ne,ae,fe,"⋧","\\gnsim",!0),te(ne,ae,fe,"⪊","\\gnapprox",!0),te(ne,ae,fe,"⊁","\\nsucc",!0),te(ne,ae,fe,"⋡","\\nsucceq",!0),te(ne,ae,fe,"⋩","\\succnsim",!0),te(ne,ae,fe,"⪺","\\succnapprox",!0),te(ne,ae,fe,"≆","\\ncong",!0),te(ne,ae,fe,"","\\@nshortparallel"),te(ne,ae,fe,"∦","\\nparallel",!0),te(ne,ae,fe,"⊯","\\nVDash",!0),te(ne,ae,fe,"⋫","\\ntriangleright"),te(ne,ae,fe,"⋭","\\ntrianglerighteq",!0),te(ne,ae,fe,"","\\@nsupseteqq"),te(ne,ae,fe,"⊋","\\supsetneq",!0),te(ne,ae,fe,"","\\@varsupsetneq"),te(ne,ae,fe,"⫌","\\supsetneqq",!0),te(ne,ae,fe,"","\\@varsupsetneqq"),te(ne,ae,fe,"⊮","\\nVdash",!0),te(ne,ae,fe,"⪵","\\precneqq",!0),te(ne,ae,fe,"⪶","\\succneqq",!0),te(ne,ae,fe,"","\\@nsubseteqq"),te(ne,ae,se,"⊴","\\unlhd"),te(ne,ae,se,"⊵","\\unrhd"),te(ne,ae,fe,"↚","\\nleftarrow",!0),te(ne,ae,fe,"↛","\\nrightarrow",!0),te(ne,ae,fe,"⇍","\\nLeftarrow",!0),te(ne,ae,fe,"⇏","\\nRightarrow",!0),te(ne,ae,fe,"↮","\\nleftrightarrow",!0),te(ne,ae,fe,"⇎","\\nLeftrightarrow",!0),te(ne,ae,fe,"△","\\vartriangle"),te(ne,ae,ge,"ℏ","\\hslash"),te(ne,ae,ge,"▽","\\triangledown"),te(ne,ae,ge,"◊","\\lozenge"),te(ne,ae,ge,"Ⓢ","\\circledS"),te(ne,ae,ge,"®","\\circledR"),te(re,ae,ge,"®","\\circledR"),te(ne,ae,ge,"∡","\\measuredangle",!0),te(ne,ae,ge,"∄","\\nexists"),te(ne,ae,ge,"℧","\\mho"),te(ne,ae,ge,"Ⅎ","\\Finv",!0),te(ne,ae,ge,"⅁","\\Game",!0),te(ne,ae,ge,"‵","\\backprime"),te(ne,ae,ge,"▲","\\blacktriangle"),te(ne,ae,ge,"▼","\\blacktriangledown"),te(ne,ae,ge,"■","\\blacksquare"),te(ne,ae,ge,"⧫","\\blacklozenge"),te(ne,ae,ge,"★","\\bigstar"),te(ne,ae,ge,"∢","\\sphericalangle",!0),te(ne,ae,ge,"∁","\\complement",!0),te(ne,ae,ge,"ð","\\eth",!0),te(re,ie,ge,"ð","ð"),te(ne,ae,ge,"╱","\\diagup"),te(ne,ae,ge,"╲","\\diagdown"),te(ne,ae,ge,"□","\\square"),te(ne,ae,ge,"□","\\Box"),te(ne,ae,ge,"◊","\\Diamond"),te(ne,ae,ge,"¥","\\yen",!0),te(re,ae,ge,"¥","\\yen",!0),te(ne,ae,ge,"✓","\\checkmark",!0),te(re,ae,ge,"✓","\\checkmark"),te(ne,ae,ge,"ℶ","\\beth",!0),te(ne,ae,ge,"ℸ","\\daleth",!0),te(ne,ae,ge,"ℷ","\\gimel",!0),te(ne,ae,ge,"ϝ","\\digamma",!0),te(ne,ae,ge,"ϰ","\\varkappa"),te(ne,ae,he,"┌","\\@ulcorner",!0),te(ne,ae,le,"┐","\\@urcorner",!0),te(ne,ae,he,"└","\\@llcorner",!0),te(ne,ae,le,"┘","\\@lrcorner",!0),te(ne,ae,fe,"≦","\\leqq",!0),te(ne,ae,fe,"⩽","\\leqslant",!0),te(ne,ae,fe,"⪕","\\eqslantless",!0),te(ne,ae,fe,"≲","\\lesssim",!0),te(ne,ae,fe,"⪅","\\lessapprox",!0),te(ne,ae,fe,"≊","\\approxeq",!0),te(ne,ae,se,"⋖","\\lessdot"),te(ne,ae,fe,"⋘","\\lll",!0),te(ne,ae,fe,"≶","\\lessgtr",!0),te(ne,ae,fe,"⋚","\\lesseqgtr",!0),te(ne,ae,fe,"⪋","\\lesseqqgtr",!0),te(ne,ae,fe,"≑","\\doteqdot"),te(ne,ae,fe,"≓","\\risingdotseq",!0),te(ne,ae,fe,"≒","\\fallingdotseq",!0),te(ne,ae,fe,"∽","\\backsim",!0),te(ne,ae,fe,"⋍","\\backsimeq",!0),te(ne,ae,fe,"⫅","\\subseteqq",!0),te(ne,ae,fe,"⋐","\\Subset",!0),te(ne,ae,fe,"⊏","\\sqsubset",!0),te(ne,ae,fe,"≼","\\preccurlyeq",!0),te(ne,ae,fe,"⋞","\\curlyeqprec",!0),te(ne,ae,fe,"≾","\\precsim",!0),te(ne,ae,fe,"⪷","\\precapprox",!0),te(ne,ae,fe,"⊲","\\vartriangleleft"),te(ne,ae,fe,"⊴","\\trianglelefteq"),te(ne,ae,fe,"⊨","\\vDash",!0),te(ne,ae,fe,"⊪","\\Vvdash",!0),te(ne,ae,fe,"⌣","\\smallsmile"),te(ne,ae,fe,"⌢","\\smallfrown"),te(ne,ae,fe,"≏","\\bumpeq",!0),te(ne,ae,fe,"≎","\\Bumpeq",!0),te(ne,ae,fe,"≧","\\geqq",!0),te(ne,ae,fe,"⩾","\\geqslant",!0),te(ne,ae,fe,"⪖","\\eqslantgtr",!0),te(ne,ae,fe,"≳","\\gtrsim",!0),te(ne,ae,fe,"⪆","\\gtrapprox",!0),te(ne,ae,se,"⋗","\\gtrdot"),te(ne,ae,fe,"⋙","\\ggg",!0),te(ne,ae,fe,"≷","\\gtrless",!0),te(ne,ae,fe,"⋛","\\gtreqless",!0),te(ne,ae,fe,"⪌","\\gtreqqless",!0),te(ne,ae,fe,"≖","\\eqcirc",!0),te(ne,ae,fe,"≗","\\circeq",!0),te(ne,ae,fe,"≜","\\triangleq",!0),te(ne,ae,fe,"∼","\\thicksim"),te(ne,ae,fe,"≈","\\thickapprox"),te(ne,ae,fe,"⫆","\\supseteqq",!0),te(ne,ae,fe,"⋑","\\Supset",!0),te(ne,ae,fe,"⊐","\\sqsupset",!0),te(ne,ae,fe,"≽","\\succcurlyeq",!0),te(ne,ae,fe,"⋟","\\curlyeqsucc",!0),te(ne,ae,fe,"≿","\\succsim",!0),te(ne,ae,fe,"⪸","\\succapprox",!0),te(ne,ae,fe,"⊳","\\vartriangleright"),te(ne,ae,fe,"⊵","\\trianglerighteq"),te(ne,ae,fe,"⊩","\\Vdash",!0),te(ne,ae,fe,"∣","\\shortmid"),te(ne,ae,fe,"∥","\\shortparallel"),te(ne,ae,fe,"≬","\\between",!0),te(ne,ae,fe,"⋔","\\pitchfork",!0),te(ne,ae,fe,"∝","\\varpropto"),te(ne,ae,fe,"◀","\\blacktriangleleft"),te(ne,ae,fe,"∴","\\therefore",!0),te(ne,ae,fe,"∍","\\backepsilon"),te(ne,ae,fe,"▶","\\blacktriangleright"),te(ne,ae,fe,"∵","\\because",!0),te(ne,ae,fe,"⋘","\\llless"),te(ne,ae,fe,"⋙","\\gggtr"),te(ne,ae,se,"⊲","\\lhd"),te(ne,ae,se,"⊳","\\rhd"),te(ne,ae,fe,"≂","\\eqsim",!0),te(ne,ie,fe,"⋈","\\Join"),te(ne,ae,fe,"≑","\\Doteq",!0),te(ne,ae,se,"∔","\\dotplus",!0),te(ne,ae,se,"∖","\\smallsetminus"),te(ne,ae,se,"⋒","\\Cap",!0),te(ne,ae,se,"⋓","\\Cup",!0),te(ne,ae,se,"⩞","\\doublebarwedge",!0),te(ne,ae,se,"⊟","\\boxminus",!0),te(ne,ae,se,"⊞","\\boxplus",!0),te(ne,ae,se,"⋇","\\divideontimes",!0),te(ne,ae,se,"⋉","\\ltimes",!0),te(ne,ae,se,"⋊","\\rtimes",!0),te(ne,ae,se,"⋋","\\leftthreetimes",!0),te(ne,ae,se,"⋌","\\rightthreetimes",!0),te(ne,ae,se,"⋏","\\curlywedge",!0),te(ne,ae,se,"⋎","\\curlyvee",!0),te(ne,ae,se,"⊝","\\circleddash",!0),te(ne,ae,se,"⊛","\\circledast",!0),te(ne,ae,se,"⋅","\\centerdot"),te(ne,ae,se,"⊺","\\intercal",!0),te(ne,ae,se,"⋒","\\doublecap"),te(ne,ae,se,"⋓","\\doublecup"),te(ne,ae,se,"⊠","\\boxtimes",!0),te(ne,ae,fe,"⇢","\\dashrightarrow",!0),te(ne,ae,fe,"⇠","\\dashleftarrow",!0),te(ne,ae,fe,"⇇","\\leftleftarrows",!0),te(ne,ae,fe,"⇆","\\leftrightarrows",!0),te(ne,ae,fe,"⇚","\\Lleftarrow",!0),te(ne,ae,fe,"↞","\\twoheadleftarrow",!0),te(ne,ae,fe,"↢","\\leftarrowtail",!0),te(ne,ae,fe,"↫","\\looparrowleft",!0),te(ne,ae,fe,"⇋","\\leftrightharpoons",!0),te(ne,ae,fe,"↶","\\curvearrowleft",!0),te(ne,ae,fe,"↺","\\circlearrowleft",!0),te(ne,ae,fe,"↰","\\Lsh",!0),te(ne,ae,fe,"⇈","\\upuparrows",!0),te(ne,ae,fe,"↿","\\upharpoonleft",!0),te(ne,ae,fe,"⇃","\\downharpoonleft",!0),te(ne,ae,fe,"⊸","\\multimap",!0),te(ne,ae,fe,"↭","\\leftrightsquigarrow",!0),te(ne,ae,fe,"⇉","\\rightrightarrows",!0),te(ne,ae,fe,"⇄","\\rightleftarrows",!0),te(ne,ae,fe,"↠","\\twoheadrightarrow",!0),te(ne,ae,fe,"↣","\\rightarrowtail",!0),te(ne,ae,fe,"↬","\\looparrowright",!0),te(ne,ae,fe,"↷","\\curvearrowright",!0),te(ne,ae,fe,"↻","\\circlearrowright",!0),te(ne,ae,fe,"↱","\\Rsh",!0),te(ne,ae,fe,"⇊","\\downdownarrows",!0),te(ne,ae,fe,"↾","\\upharpoonright",!0),te(ne,ae,fe,"⇂","\\downharpoonright",!0),te(ne,ae,fe,"⇝","\\rightsquigarrow",!0),te(ne,ae,fe,"⇝","\\leadsto"),te(ne,ae,fe,"⇛","\\Rrightarrow",!0),te(ne,ae,fe,"↾","\\restriction"),te(ne,ie,ge,"‘","`"),te(ne,ie,ge,"$","\\$"),te(re,ie,ge,"$","\\$"),te(re,ie,ge,"$","\\textdollar"),te(ne,ie,ge,"%","\\%"),te(re,ie,ge,"%","\\%"),te(ne,ie,ge,"_","\\_"),te(re,ie,ge,"_","\\_"),te(re,ie,ge,"_","\\textunderscore"),te(ne,ie,ge,"∠","\\angle",!0),te(ne,ie,ge,"∞","\\infty",!0),te(ne,ie,ge,"′","\\prime"),te(ne,ie,ge,"△","\\triangle"),te(ne,ie,ge,"Γ","\\Gamma",!0),te(ne,ie,ge,"Δ","\\Delta",!0),te(ne,ie,ge,"Θ","\\Theta",!0),te(ne,ie,ge,"Λ","\\Lambda",!0),te(ne,ie,ge,"Ξ","\\Xi",!0),te(ne,ie,ge,"Π","\\Pi",!0),te(ne,ie,ge,"Σ","\\Sigma",!0),te(ne,ie,ge,"Υ","\\Upsilon",!0),te(ne,ie,ge,"Φ","\\Phi",!0),te(ne,ie,ge,"Ψ","\\Psi",!0),te(ne,ie,ge,"Ω","\\Omega",!0),te(ne,ie,ge,"A","Α"),te(ne,ie,ge,"B","Β"),te(ne,ie,ge,"E","Ε"),te(ne,ie,ge,"Z","Ζ"),te(ne,ie,ge,"H","Η"),te(ne,ie,ge,"I","Ι"),te(ne,ie,ge,"K","Κ"),te(ne,ie,ge,"M","Μ"),te(ne,ie,ge,"N","Ν"),te(ne,ie,ge,"O","Ο"),te(ne,ie,ge,"P","Ρ"),te(ne,ie,ge,"T","Τ"),te(ne,ie,ge,"X","Χ"),te(ne,ie,ge,"¬","\\neg",!0),te(ne,ie,ge,"¬","\\lnot"),te(ne,ie,ge,"⊤","\\top"),te(ne,ie,ge,"⊥","\\bot"),te(ne,ie,ge,"∅","\\emptyset"),te(ne,ae,ge,"∅","\\varnothing"),te(ne,ie,ce,"α","\\alpha",!0),te(ne,ie,ce,"β","\\beta",!0),te(ne,ie,ce,"γ","\\gamma",!0),te(ne,ie,ce,"δ","\\delta",!0),te(ne,ie,ce,"ϵ","\\epsilon",!0),te(ne,ie,ce,"ζ","\\zeta",!0),te(ne,ie,ce,"η","\\eta",!0),te(ne,ie,ce,"θ","\\theta",!0),te(ne,ie,ce,"ι","\\iota",!0),te(ne,ie,ce,"κ","\\kappa",!0),te(ne,ie,ce,"λ","\\lambda",!0),te(ne,ie,ce,"μ","\\mu",!0),te(ne,ie,ce,"ν","\\nu",!0),te(ne,ie,ce,"ξ","\\xi",!0),te(ne,ie,ce,"ο","\\omicron",!0),te(ne,ie,ce,"π","\\pi",!0),te(ne,ie,ce,"ρ","\\rho",!0),te(ne,ie,ce,"σ","\\sigma",!0),te(ne,ie,ce,"τ","\\tau",!0),te(ne,ie,ce,"υ","\\upsilon",!0),te(ne,ie,ce,"ϕ","\\phi",!0),te(ne,ie,ce,"χ","\\chi",!0),te(ne,ie,ce,"ψ","\\psi",!0),te(ne,ie,ce,"ω","\\omega",!0),te(ne,ie,ce,"ε","\\varepsilon",!0),te(ne,ie,ce,"ϑ","\\vartheta",!0),te(ne,ie,ce,"ϖ","\\varpi",!0),te(ne,ie,ce,"ϱ","\\varrho",!0),te(ne,ie,ce,"ς","\\varsigma",!0),te(ne,ie,ce,"φ","\\varphi",!0),te(ne,ie,se,"∗","*"),te(ne,ie,se,"+","+"),te(ne,ie,se,"−","-"),te(ne,ie,se,"⋅","\\cdot",!0),te(ne,ie,se,"∘","\\circ"),te(ne,ie,se,"÷","\\div",!0),te(ne,ie,se,"±","\\pm",!0),te(ne,ie,se,"×","\\times",!0),te(ne,ie,se,"∩","\\cap",!0),te(ne,ie,se,"∪","\\cup",!0),te(ne,ie,se,"∖","\\setminus"),te(ne,ie,se,"∧","\\land"),te(ne,ie,se,"∨","\\lor"),te(ne,ie,se,"∧","\\wedge",!0),te(ne,ie,se,"∨","\\vee",!0),te(ne,ie,ge,"√","\\surd"),te(ne,ie,he,"⟨","\\langle",!0),te(ne,ie,he,"∣","\\lvert"),te(ne,ie,he,"∥","\\lVert"),te(ne,ie,le,"?","?"),te(ne,ie,le,"!","!"),te(ne,ie,le,"⟩","\\rangle",!0),te(ne,ie,le,"∣","\\rvert"),te(ne,ie,le,"∥","\\rVert"),te(ne,ie,fe,"=","="),te(ne,ie,fe,":",":"),te(ne,ie,fe,"≈","\\approx",!0),te(ne,ie,fe,"≅","\\cong",!0),te(ne,ie,fe,"≥","\\ge"),te(ne,ie,fe,"≥","\\geq",!0),te(ne,ie,fe,"←","\\gets"),te(ne,ie,fe,">","\\gt",!0),te(ne,ie,fe,"∈","\\in",!0),te(ne,ie,fe,"","\\@not"),te(ne,ie,fe,"⊂","\\subset",!0),te(ne,ie,fe,"⊃","\\supset",!0),te(ne,ie,fe,"⊆","\\subseteq",!0),te(ne,ie,fe,"⊇","\\supseteq",!0),te(ne,ae,fe,"⊈","\\nsubseteq",!0),te(ne,ae,fe,"⊉","\\nsupseteq",!0),te(ne,ie,fe,"⊨","\\models"),te(ne,ie,fe,"←","\\leftarrow",!0),te(ne,ie,fe,"≤","\\le"),te(ne,ie,fe,"≤","\\leq",!0),te(ne,ie,fe,"<","\\lt",!0),te(ne,ie,fe,"→","\\rightarrow",!0),te(ne,ie,fe,"→","\\to"),te(ne,ae,fe,"≱","\\ngeq",!0),te(ne,ae,fe,"≰","\\nleq",!0),te(ne,ie,me," ","\\ "),te(ne,ie,me," ","~"),te(ne,ie,me," ","\\space"),te(ne,ie,me," ","\\nobreakspace"),te(re,ie,me," ","\\ "),te(re,ie,me," "," "),te(re,ie,me," ","~"),te(re,ie,me," ","\\space"),te(re,ie,me," ","\\nobreakspace"),te(ne,ie,me,null,"\\nobreak"),te(ne,ie,me,null,"\\allowbreak"),te(ne,ie,pe,",",","),te(ne,ie,pe,";",";"),te(ne,ae,se,"⊼","\\barwedge",!0),te(ne,ae,se,"⊻","\\veebar",!0),te(ne,ie,se,"⊙","\\odot",!0),te(ne,ie,se,"⊕","\\oplus",!0),te(ne,ie,se,"⊗","\\otimes",!0),te(ne,ie,ge,"∂","\\partial",!0),te(ne,ie,se,"⊘","\\oslash",!0),te(ne,ae,se,"⊚","\\circledcirc",!0),te(ne,ae,se,"⊡","\\boxdot",!0),te(ne,ie,se,"△","\\bigtriangleup"),te(ne,ie,se,"▽","\\bigtriangledown"),te(ne,ie,se,"†","\\dagger"),te(ne,ie,se,"⋄","\\diamond"),te(ne,ie,se,"⋆","\\star"),te(ne,ie,se,"◃","\\triangleleft"),te(ne,ie,se,"▹","\\triangleright"),te(ne,ie,he,"{","\\{"),te(re,ie,ge,"{","\\{"),te(re,ie,ge,"{","\\textbraceleft"),te(ne,ie,le,"}","\\}"),te(re,ie,ge,"}","\\}"),te(re,ie,ge,"}","\\textbraceright"),te(ne,ie,he,"{","\\lbrace"),te(ne,ie,le,"}","\\rbrace"),te(ne,ie,he,"[","\\lbrack",!0),te(re,ie,ge,"[","\\lbrack",!0),te(ne,ie,le,"]","\\rbrack",!0),te(re,ie,ge,"]","\\rbrack",!0),te(ne,ie,he,"(","\\lparen",!0),te(ne,ie,le,")","\\rparen",!0),te(re,ie,ge,"<","\\textless",!0),te(re,ie,ge,">","\\textgreater",!0),te(ne,ie,he,"⌊","\\lfloor",!0),te(ne,ie,le,"⌋","\\rfloor",!0),te(ne,ie,he,"⌈","\\lceil",!0),te(ne,ie,le,"⌉","\\rceil",!0),te(ne,ie,ge,"\\","\\backslash"),te(ne,ie,ge,"∣","|"),te(ne,ie,ge,"∣","\\vert"),te(re,ie,ge,"|","\\textbar",!0),te(ne,ie,ge,"∥","\\|"),te(ne,ie,ge,"∥","\\Vert"),te(re,ie,ge,"∥","\\textbardbl"),te(re,ie,ge,"~","\\textasciitilde"),te(re,ie,ge,"\\","\\textbackslash"),te(re,ie,ge,"^","\\textasciicircum"),te(ne,ie,fe,"↑","\\uparrow",!0),te(ne,ie,fe,"⇑","\\Uparrow",!0),te(ne,ie,fe,"↓","\\downarrow",!0),te(ne,ie,fe,"⇓","\\Downarrow",!0),te(ne,ie,fe,"↕","\\updownarrow",!0),te(ne,ie,fe,"⇕","\\Updownarrow",!0),te(ne,ie,de,"∐","\\coprod"),te(ne,ie,de,"⋁","\\bigvee"),te(ne,ie,de,"⋀","\\bigwedge"),te(ne,ie,de,"⨄","\\biguplus"),te(ne,ie,de,"⋂","\\bigcap"),te(ne,ie,de,"⋃","\\bigcup"),te(ne,ie,de,"∫","\\int"),te(ne,ie,de,"∫","\\intop"),te(ne,ie,de,"∬","\\iint"),te(ne,ie,de,"∭","\\iiint"),te(ne,ie,de,"∏","\\prod"),te(ne,ie,de,"∑","\\sum"),te(ne,ie,de,"⨂","\\bigotimes"),te(ne,ie,de,"⨁","\\bigoplus"),te(ne,ie,de,"⨀","\\bigodot"),te(ne,ie,de,"∮","\\oint"),te(ne,ie,de,"⨆","\\bigsqcup"),te(ne,ie,de,"∫","\\smallint"),te(re,ie,ue,"…","\\textellipsis"),te(ne,ie,ue,"…","\\mathellipsis"),te(re,ie,ue,"…","\\ldots",!0),te(ne,ie,ue,"…","\\ldots",!0),te(ne,ie,ue,"⋯","\\@cdots",!0),te(ne,ie,ue,"⋱","\\ddots",!0),te(ne,ie,ge,"⋮","\\varvdots"),te(ne,ie,oe,"ˊ","\\acute"),te(ne,ie,oe,"ˋ","\\grave"),te(ne,ie,oe,"¨","\\ddot"),te(ne,ie,oe,"~","\\tilde"),te(ne,ie,oe,"ˉ","\\bar"),te(ne,ie,oe,"˘","\\breve"),te(ne,ie,oe,"ˇ","\\check"),te(ne,ie,oe,"^","\\hat"),te(ne,ie,oe,"⃗","\\vec"),te(ne,ie,oe,"˙","\\dot"),te(ne,ie,oe,"˚","\\mathring"),te(ne,ie,ce,"","\\@imath"),te(ne,ie,ce,"","\\@jmath"),te(ne,ie,ge,"ı","ı"),te(ne,ie,ge,"ȷ","ȷ"),te(re,ie,ge,"ı","\\i",!0),te(re,ie,ge,"ȷ","\\j",!0),te(re,ie,ge,"ß","\\ss",!0),te(re,ie,ge,"æ","\\ae",!0),te(re,ie,ge,"œ","\\oe",!0),te(re,ie,ge,"ø","\\o",!0),te(re,ie,ge,"Æ","\\AE",!0),te(re,ie,ge,"Œ","\\OE",!0),te(re,ie,ge,"Ø","\\O",!0),te(re,ie,oe,"ˊ","\\'"),te(re,ie,oe,"ˋ","\\`"),te(re,ie,oe,"ˆ","\\^"),te(re,ie,oe,"˜","\\~"),te(re,ie,oe,"ˉ","\\="),te(re,ie,oe,"˘","\\u"),te(re,ie,oe,"˙","\\."),te(re,ie,oe,"˚","\\r"),te(re,ie,oe,"ˇ","\\v"),te(re,ie,oe,"¨",'\\"'),te(re,ie,oe,"˝","\\H"),te(re,ie,oe,"◯","\\textcircled");var be={"--":!0,"---":!0,"``":!0,"''":!0};te(re,ie,ge,"–","--",!0),te(re,ie,ge,"–","\\textendash"),te(re,ie,ge,"—","---",!0),te(re,ie,ge,"—","\\textemdash"),te(re,ie,ge,"‘","`",!0),te(re,ie,ge,"‘","\\textquoteleft"),te(re,ie,ge,"’","'",!0),te(re,ie,ge,"’","\\textquoteright"),te(re,ie,ge,"“","``",!0),te(re,ie,ge,"“","\\textquotedblleft"),te(re,ie,ge,"”","''",!0),te(re,ie,ge,"”","\\textquotedblright"),te(ne,ie,ge,"°","\\degree",!0),te(re,ie,ge,"°","\\degree"),te(re,ie,ge,"°","\\textdegree",!0),te(ne,ie,ge,"£","\\pounds"),te(ne,ie,ge,"£","\\mathsterling",!0),te(re,ie,ge,"£","\\pounds"),te(re,ie,ge,"£","\\textsterling",!0),te(ne,ae,ge,"✠","\\maltese"),te(re,ae,ge,"✠","\\maltese");for(var ve=0;ve<14;ve++){var ye='0123456789/@."'.charAt(ve);te(ne,ie,ge,ye,ye)}for(var xe=0;xe<25;xe++){var we='0123456789!@*()-=+";:?/.,'.charAt(xe);te(re,ie,ge,we,we)}for(var ke="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",Se=0;Se<52;Se++){var Ce=ke.charAt(Se);te(ne,ie,ce,Ce,Ce),te(re,ie,ge,Ce,Ce)}te(ne,ae,ge,"C","ℂ"),te(re,ae,ge,"C","ℂ"),te(ne,ae,ge,"H","ℍ"),te(re,ae,ge,"H","ℍ"),te(ne,ae,ge,"N","ℕ"),te(re,ae,ge,"N","ℕ"),te(ne,ae,ge,"P","ℙ"),te(re,ae,ge,"P","ℙ"),te(ne,ae,ge,"Q","ℚ"),te(re,ae,ge,"Q","ℚ"),te(ne,ae,ge,"R","ℝ"),te(re,ae,ge,"R","ℝ"),te(ne,ae,ge,"Z","ℤ"),te(re,ae,ge,"Z","ℤ"),te(ne,ie,ce,"h","ℎ"),te(re,ie,ce,"h","ℎ");for(var Te="",Ee=0;Ee<52;Ee++){var qe=ke.charAt(Ee);te(ne,ie,ce,qe,Te=String.fromCharCode(55349,56320+Ee)),te(re,ie,ge,qe,Te),te(ne,ie,ce,qe,Te=String.fromCharCode(55349,56372+Ee)),te(re,ie,ge,qe,Te),te(ne,ie,ce,qe,Te=String.fromCharCode(55349,56424+Ee)),te(re,ie,ge,qe,Te),te(ne,ie,ce,qe,Te=String.fromCharCode(55349,56580+Ee)),te(re,ie,ge,qe,Te),te(ne,ie,ce,qe,Te=String.fromCharCode(55349,56736+Ee)),te(re,ie,ge,qe,Te),te(ne,ie,ce,qe,Te=String.fromCharCode(55349,56788+Ee)),te(re,ie,ge,qe,Te),te(ne,ie,ce,qe,Te=String.fromCharCode(55349,56840+Ee)),te(re,ie,ge,qe,Te),te(ne,ie,ce,qe,Te=String.fromCharCode(55349,56944+Ee)),te(re,ie,ge,qe,Te),Ee<26&&(te(ne,ie,ce,qe,Te=String.fromCharCode(55349,56632+Ee)),te(re,ie,ge,qe,Te),te(ne,ie,ce,qe,Te=String.fromCharCode(55349,56476+Ee)),te(re,ie,ge,qe,Te))}te(ne,ie,ce,"k",Te=String.fromCharCode(55349,56668)),te(re,ie,ge,"k",Te);for(var Ae=0;Ae<10;Ae++){var Me=Ae.toString();te(ne,ie,ce,Me,Te=String.fromCharCode(55349,57294+Ae)),te(re,ie,ge,Me,Te),te(ne,ie,ce,Me,Te=String.fromCharCode(55349,57314+Ae)),te(re,ie,ge,Me,Te),te(ne,ie,ce,Me,Te=String.fromCharCode(55349,57324+Ae)),te(re,ie,ge,Me,Te),te(ne,ie,ce,Me,Te=String.fromCharCode(55349,57334+Ae)),te(re,ie,ge,Me,Te)}for(var Ne="ÇÐÞçþ",Oe=0;Oe<5;Oe++){var ze=Ne.charAt(Oe);te(ne,ie,ce,ze,ze),te(re,ie,ge,ze,ze)}var De=[["mathbf","textbf","Main-Bold"],["mathbf","textbf","Main-Bold"],["mathnormal","textit","Math-Italic"],["mathnormal","textit","Math-Italic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["mathscr","textscr","Script-Regular"],["","",""],["","",""],["","",""],["mathfrak","textfrak","Fraktur-Regular"],["mathfrak","textfrak","Fraktur-Regular"],["mathbb","textbb","AMS-Regular"],["mathbb","textbb","AMS-Regular"],["","",""],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathitsf","textitsf","SansSerif-Italic"],["mathitsf","textitsf","SansSerif-Italic"],["","",""],["","",""],["mathtt","texttt","Typewriter-Regular"],["mathtt","texttt","Typewriter-Regular"]],Le=[["mathbf","textbf","Main-Bold"],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathtt","texttt","Typewriter-Regular"]],Ie=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],_e=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],Be=function(e,t){return t.size<2?e:Ie[e-1][t.size-1]},Re=function(){function e(t){this.style=void 0,this.color=void 0,this.size=void 0,this.textSize=void 0,this.phantom=void 0,this.font=void 0,this.fontFamily=void 0,this.fontWeight=void 0,this.fontShape=void 0,this.sizeMultiplier=void 0,this.maxSize=void 0,this.minRuleThickness=void 0,this._fontMetrics=void 0,this.style=t.style,this.color=t.color,this.size=t.size||e.BASESIZE,this.textSize=t.textSize||this.size,this.phantom=!!t.phantom,this.font=t.font||"",this.fontFamily=t.fontFamily||"",this.fontWeight=t.fontWeight||"",this.fontShape=t.fontShape||"",this.sizeMultiplier=_e[this.size-1],this.maxSize=t.maxSize,this.minRuleThickness=t.minRuleThickness,this._fontMetrics=void 0}var t=e.prototype;return t.extend=function(t){var n={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};for(var r in t)t.hasOwnProperty(r)&&(n[r]=t[r]);return new e(n)},t.havingStyle=function(e){return this.style===e?this:this.extend({style:e,size:Be(this.textSize,e)})},t.havingCrampedStyle=function(){return this.havingStyle(this.style.cramp())},t.havingSize=function(e){return this.size===e&&this.textSize===e?this:this.extend({style:this.style.text(),size:e,textSize:e,sizeMultiplier:_e[e-1]})},t.havingBaseStyle=function(t){t=t||this.style.text();var n=Be(e.BASESIZE,t);return this.size===n&&this.textSize===e.BASESIZE&&this.style===t?this:this.extend({style:t,size:n})},t.havingBaseSizing=function(){var e;switch(this.style.id){case 4:case 5:e=3;break;case 6:case 7:e=1;break;default:e=6}return this.extend({style:this.style.text(),size:e})},t.withColor=function(e){return this.extend({color:e})},t.withPhantom=function(){return this.extend({phantom:!0})},t.withFont=function(e){return this.extend({font:e})},t.withTextFontFamily=function(e){return this.extend({fontFamily:e,font:""})},t.withTextFontWeight=function(e){return this.extend({fontWeight:e,font:""})},t.withTextFontShape=function(e){return this.extend({fontShape:e,font:""})},t.sizingClasses=function(e){return e.size!==this.size?["sizing","reset-size"+e.size,"size"+this.size]:[]},t.baseSizingClasses=function(){return this.size!==e.BASESIZE?["sizing","reset-size"+this.size,"size"+e.BASESIZE]:[]},t.fontMetrics=function(){return this._fontMetrics||(this._fontMetrics=function(e){var t;if(!X[t=e>=5?0:e>=3?1:2]){var n=X[t]={cssEmPerMu:$.quad[t]/18};for(var r in $)$.hasOwnProperty(r)&&(n[r]=$[r][t])}return X[t]}(this.size)),this._fontMetrics},t.getColor=function(){return this.phantom?"transparent":this.color},e}();Re.BASESIZE=6;var Pe=Re,je={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},He={ex:!0,em:!0,mu:!0},Fe=function(e){return"string"!=typeof e&&(e=e.unit),e in je||e in He||"ex"===e},Ue=function(e,t){var n;if(e.unit in je)n=je[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 o("Invalid unit: '"+e.unit+"'");n=r.fontMetrics().quad}r!==t&&(n*=r.sizeMultiplier/t.sizeMultiplier)}return Math.min(e.number*n,t.maxSize)},Qe=function(e,t,n){return ee[n][e]&&ee[n][e].replace&&(e=ee[n][e].replace),{value:e,metrics:K(e,t,n)}},We=function(e,t,n,r,i){var a,o=Qe(e,t,n),s=o.metrics;if(e=o.value,s){var l=s.italic;("text"===n||r&&"mathit"===r.font)&&(l=0),a=new H(e,s.height,s.depth,l,s.skew,s.width,i)}else"undefined"!=typeof console&&console.warn("No character metrics for '"+e+"' in style '"+t+"' and mode '"+n+"'"),a=new H(e,0,0,0,0,0,i);if(r){a.maxFontSize=r.sizeMultiplier,r.style.isTight()&&a.classes.push("mtight");var u=r.getColor();u&&(a.style.color=u)}return a},Ve=function(e,t){if(D(e.classes)!==D(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},$e=function(e){for(var t=0,n=0,r=0,i=0;i<e.children.length;i++){var a=e.children[i];a.height>t&&(t=a.height),a.depth>n&&(n=a.depth),a.maxFontSize>r&&(r=a.maxFontSize)}e.height=t,e.depth=n,e.maxFontSize=r},Ge=function(e,t,n,r){var i=new B(e,t,n,r);return $e(i),i},Ke=function(e,t,n,r){return new B(e,t,n,r)},Xe=function(e){var t=new z(e);return $e(t),t},Ye=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")},Ze={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathit:{variant:"italic",fontName:"Main-Italic"},mathnormal:{variant:"italic",fontName:"Math-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],leftParenInner:["leftParenInner",.875,.3],rightParenInner:["rightParenInner",.875,.3]},et={fontMap:Ze,makeSymbol:We,mathsym:function(e,t,n,r){return void 0===r&&(r=[]),"boldsymbol"===n.font&&Qe(e,"Main-Bold",t).metrics?We(e,"Main-Bold",t,n,r.concat(["mathbf"])):"\\"===e||"main"===ee[t][e].font?We(e,"Main-Regular",t,n,r):We(e,"AMS-Regular",t,n,r.concat(["amsrm"]))},makeSpan:Ge,makeSvgSpan:Ke,makeLineSpan:function(e,t,n){var r=Ge([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 i=new R(e,t,n,r);return $e(i),i},makeFragment:Xe,wrapFragment:function(e,t){return e instanceof z?Ge([],[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,i=r,a=1;a<t.length;a++){var o=-t[a].shift-i-t[a].elem.depth,s=o-(t[a-1].elem.height+t[a-1].elem.depth);i+=o,n.push({type:"kern",size:s}),n.push(t[a])}return{children:n,depth:r}}var l;if("top"===e.positionType){for(var u=e.positionData,c=0;c<e.children.length;c++){var d=e.children[c];u-="kern"===d.type?d.size:d.elem.height+d.elem.depth}l=u}else if("bottom"===e.positionType)l=-e.positionData;else{var h=e.children[0];if("elem"!==h.type)throw new Error('First child must have type "elem".');if("shift"===e.positionType)l=-h.elem.depth-e.positionData;else{if("firstBaseline"!==e.positionType)throw new Error("Invalid positionType "+e.positionType+".");l=-h.elem.depth}}return{children:e.children,depth:l}}(e),r=n.children,i=n.depth,a=0,o=0;o<r.length;o++){var s=r[o];if("elem"===s.type){var l=s.elem;a=Math.max(a,l.maxFontSize,l.height)}}a+=2;var u=Ge(["pstrut"],[]);u.style.height=a+"em";for(var c=[],d=i,h=i,p=i,f=0;f<r.length;f++){var m=r[f];if("kern"===m.type)p+=m.size;else{var g=m.elem,b=m.wrapperClasses||[],v=m.wrapperStyle||{},y=Ge(b,[u,g],void 0,v);y.style.top=-a-p-g.depth+"em",m.marginLeft&&(y.style.marginLeft=m.marginLeft),m.marginRight&&(y.style.marginRight=m.marginRight),c.push(y),p+=g.height+g.depth}d=Math.min(d,p),h=Math.max(h,p)}var x,w=Ge(["vlist"],c);if(w.style.height=h+"em",d<0){var k=Ge([],[]),S=Ge(["vlist"],[k]);S.style.height=-d+"em";var C=Ge(["vlist-s"],[new H("​")]);x=[Ge(["vlist-r"],[w,C]),Ge(["vlist-r"],[S])]}else x=[Ge(["vlist-r"],[w])];var T=Ge(["vlist-t"],x);return 2===x.length&&T.classes.push("vlist-t2"),T.height=h,T.depth=-d,T},makeOrd:function(e,t,n){var r=e.mode,i=e.text,a=["mord"],s="math"===r||"text"===r&&t.font,l=s?t.font:t.fontFamily;if(55349===i.charCodeAt(0)){var u=function(e,t){var n=1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536,r="math"===t?0:1;if(119808<=n&&n<120484){var i=Math.floor((n-119808)/26);return[De[i][2],De[i][r]]}if(120782<=n&&n<=120831){var a=Math.floor((n-120782)/10);return[Le[a][2],Le[a][r]]}if(120485===n||120486===n)return[De[0][2],De[0][r]];if(120486<n&&n<120782)return["",""];throw new o("Unsupported character: "+e)}(i,r),c=u[0],d=u[1];return We(i,c,r,t,a.concat(d))}if(l){var h,p;if("boldsymbol"===l){var f=function(e,t,n,r,i){return"textord"!==i&&Qe(e,"Math-BoldItalic",t).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}}(i,r,0,0,n);h=f.fontName,p=[f.fontClass]}else s?(h=Ze[l].fontName,p=[l]):(h=Ye(l,t.fontWeight,t.fontShape),p=[l,t.fontWeight,t.fontShape]);if(Qe(i,h,r).metrics)return We(i,h,r,t,a.concat(p));if(be.hasOwnProperty(i)&&"Typewriter"===h.substr(0,10)){for(var m=[],g=0;g<i.length;g++)m.push(We(i[g],h,r,t,a.concat(p)));return Xe(m)}}if("mathord"===n)return We(i,"Math-Italic",r,t,a.concat(["mathnormal"]));if("textord"===n){var b=ee[r][i]&&ee[r][i].font;if("ams"===b){var v=Ye("amsrm",t.fontWeight,t.fontShape);return We(i,v,r,t,a.concat("amsrm",t.fontWeight,t.fontShape))}if("main"!==b&&b){var y=Ye(b,t.fontWeight,t.fontShape);return We(i,y,r,t,a.concat(y,t.fontWeight,t.fontShape))}var x=Ye("textrm",t.fontWeight,t.fontShape);return We(i,x,r,t,a.concat(t.fontWeight,t.fontShape))}throw new Error("unexpected type: "+n+" in makeOrd")},makeGlue:function(e,t){var n=Ge(["mspace"],[],t),r=Ue(e,t);return n.style.marginRight=r+"em",n},staticSvg:function(e,t){var n=Je[e],r=n[0],i=n[1],a=n[2],o=new U(r),s=new F([o],{width:i+"em",height:a+"em",style:"width:"+i+"em",viewBox:"0 0 "+1e3*i+" "+1e3*a,preserveAspectRatio:"xMinYMin"}),l=Ke(["overlay"],[s],t);return l.height=a,l.style.height=a+"em",l.style.width=i+"em",l},svgData:Je,tryCombineChars:function(e){for(var t=0;t<e.length-1;t++){var n=e[t],r=e[t+1];n instanceof H&&r instanceof H&&Ve(n,r)&&(n.text+=r.text,n.height=Math.max(n.height,r.height),n.depth=Math.max(n.depth,r.depth),n.italic=r.italic,e.splice(t+1,1),t--)}return e}},tt={number:3,unit:"mu"},nt={number:4,unit:"mu"},rt={number:5,unit:"mu"},it={mord:{mop:tt,mbin:nt,mrel:rt,minner:tt},mop:{mord:tt,mop:tt,mrel:rt,minner:tt},mbin:{mord:nt,mop:nt,mopen:nt,minner:nt},mrel:{mord:rt,mop:rt,mopen:rt,minner:rt},mopen:{},mclose:{mop:tt,mbin:nt,mrel:rt,minner:tt},mpunct:{mord:tt,mop:tt,mrel:rt,mopen:tt,mclose:tt,mpunct:tt,minner:tt},minner:{mord:tt,mop:tt,mbin:nt,mrel:rt,mopen:tt,mpunct:tt,minner:tt}},at={mord:{mop:tt},mop:{mord:tt,mop:tt},mbin:{},mrel:{},mopen:{},mclose:{mop:tt},mpunct:{},minner:{mop:tt}},ot={},st={},lt={};function ut(e){for(var t=e.type,n=e.names,r=e.props,i=e.handler,a=e.htmlBuilder,o=e.mathmlBuilder,s={type:t,numArgs:r.numArgs,argTypes:r.argTypes,greediness:void 0===r.greediness?1:r.greediness,allowedInText:!!r.allowedInText,allowedInMath:void 0===r.allowedInMath||r.allowedInMath,numOptionalArgs:r.numOptionalArgs||0,infix:!!r.infix,handler:i},l=0;l<n.length;++l)ot[n[l]]=s;t&&(a&&(st[t]=a),o&&(lt[t]=o))}function ct(e){ut({type:e.type,names:[],props:{numArgs:0},handler:function(){throw new Error("Should never be called.")},htmlBuilder:e.htmlBuilder,mathmlBuilder:e.mathmlBuilder})}var dt=function(e){return"ordgroup"===e.type?e.body:[e]},ht=et.makeSpan,pt=["leftmost","mbin","mopen","mrel","mop","mpunct"],ft=["rightmost","mrel","mclose","mpunct"],mt={display:q.DISPLAY,text:q.TEXT,script:q.SCRIPT,scriptscript:q.SCRIPTSCRIPT},gt={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},bt=function(e,t,n,r){void 0===r&&(r=[null,null]);for(var i=[],a=0;a<e.length;a++){var o=St(e[a],t);if(o instanceof z){var s=o.children;i.push.apply(i,s)}else i.push(o)}if(!n)return i;var l=t;if(1===e.length){var u=e[0];"sizing"===u.type?l=t.havingSize(u.size):"styling"===u.type&&(l=t.havingStyle(mt[u.style]))}var c=ht([r[0]||"leftmost"],[],t),h=ht([r[1]||"rightmost"],[],t),p="root"===n;return vt(i,function(e,t){var n=t.classes[0],r=e.classes[0];"mbin"===n&&d(ft,r)?t.classes[0]="mord":"mbin"===r&&d(pt,n)&&(e.classes[0]="mord")},{node:c},h,p),vt(i,function(e,t){var n=wt(t),r=wt(e),i=n&&r?e.hasClass("mtight")?at[n][r]:it[n][r]:null;if(i)return et.makeGlue(i,l)},{node:c},h,p),i},vt=function e(t,n,r,i,a){i&&t.push(i);for(var o=0;o<t.length;o++){var s=t[o],l=yt(s);if(l)e(l.children,n,r,null,a);else{var u=!s.hasClass("mspace");if(u){var c=n(s,r.node);c&&(r.insertAfter?r.insertAfter(c):(t.unshift(c),o++))}u?r.node=s:a&&s.hasClass("newline")&&(r.node=ht(["leftmost"])),r.insertAfter=function(e){return function(n){t.splice(e+1,0,n),o++}}(o)}}i&&t.pop()},yt=function(e){return e instanceof z||e instanceof R||e instanceof B&&e.hasClass("enclosing")?e:null},xt=function e(t,n){var r=yt(t);if(r){var i=r.children;if(i.length){if("right"===n)return e(i[i.length-1],"right");if("left"===n)return e(i[0],"left")}}return t},wt=function(e,t){return e?(t&&(e=xt(e,t)),gt[e.classes[0]]||null):null},kt=function(e,t){var n=["nulldelimiter"].concat(e.baseSizingClasses());return ht(t.concat(n))},St=function(e,t,n){if(!e)return ht();if(st[e.type]){var r=st[e.type](e,t);if(n&&t.size!==n.size){r=ht(t.sizingClasses(n),[r],t);var i=t.sizeMultiplier/n.sizeMultiplier;r.height*=i,r.depth*=i}return r}throw new o("Got group of unknown type: '"+e.type+"'")};function Ct(e,t){var n=ht(["base"],e,t),r=ht(["strut"]);return r.style.height=n.height+n.depth+"em",r.style.verticalAlign=-n.depth+"em",n.children.unshift(r),n}function Tt(e,t){var n=null;1===e.length&&"tag"===e[0].type&&(n=e[0].tag,e=e[0].body);for(var r,i=bt(e,t,"root"),a=[],o=[],s=0;s<i.length;s++)if(o.push(i[s]),i[s].hasClass("mbin")||i[s].hasClass("mrel")||i[s].hasClass("allowbreak")){for(var l=!1;s<i.length-1&&i[s+1].hasClass("mspace")&&!i[s+1].hasClass("newline");)s++,o.push(i[s]),i[s].hasClass("nobreak")&&(l=!0);l||(a.push(Ct(o,t)),o=[])}else i[s].hasClass("newline")&&(o.pop(),o.length>0&&(a.push(Ct(o,t)),o=[]),a.push(i[s]));o.length>0&&a.push(Ct(o,t)),n&&((r=Ct(bt(n,t,!0))).classes=["tag"],a.push(r));var u=ht(["katex-html"],a);if(u.setAttribute("aria-hidden","true"),r){var c=r.children[0];c.style.height=u.height+u.depth+"em",c.style.verticalAlign=-u.depth+"em"}return u}function Et(e){return new z(e)}var qt=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<this.children.length;n++)e.appendChild(this.children[n].toNode());return e},t.toMarkup=function(){var e="<"+this.type;for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&(e+=" "+t+'="',e+=p(this.attributes[t]),e+='"');e+=">";for(var n=0;n<this.children.length;n++)e+=this.children[n].toMarkup();return e+"</"+this.type+">"},t.toText=function(){return this.children.map(function(e){return e.toText()}).join("")},e}(),At=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 p(this.toText())},t.toText=function(){return this.text},e}(),Mt={MathNode:qt,TextNode:At,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?"<mtext>"+this.character+"</mtext>":'<mspace width="'+this.width+'em"/>'},t.toText=function(){return this.character?this.character:" "},e}(),newDocumentFragment:Et},Nt=function(e,t,n){return!ee[t][e]||!ee[t][e].replace||55349===e.charCodeAt(0)||be.hasOwnProperty(e)&&n&&(n.fontFamily&&"tt"===n.fontFamily.substr(4,2)||n.font&&"tt"===n.font.substr(4,2))||(e=ee[t][e].replace),new Mt.TextNode(e)},Ot=function(e){return 1===e.length?e[0]:new Mt.MathNode("mrow",e)},zt=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"textord"===e.type?"bold":"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 i=e.text;return d(["\\imath","\\jmath"],i)?null:(ee[r][i]&&ee[r][i].replace&&(i=ee[r][i].replace),K(i,et.fontMap[n].fontName,r)?et.fontMap[n].variant:null)},Dt=function(e,t,n){if(1===e.length){var r=It(e[0],t);return n&&r instanceof qt&&"mo"===r.type&&(r.setAttribute("lspace","0em"),r.setAttribute("rspace","0em")),[r]}for(var i,a=[],o=0;o<e.length;o++){var s=It(e[o],t);if(s instanceof qt&&i instanceof qt){if("mtext"===s.type&&"mtext"===i.type&&s.getAttribute("mathvariant")===i.getAttribute("mathvariant")){var l;(l=i.children).push.apply(l,s.children);continue}if("mn"===s.type&&"mn"===i.type){var u;(u=i.children).push.apply(u,s.children);continue}if("mi"===s.type&&1===s.children.length&&"mn"===i.type){var c=s.children[0];if(c instanceof At&&"."===c.text){var d;(d=i.children).push.apply(d,s.children);continue}}else if("mi"===i.type&&1===i.children.length){var h=i.children[0];if(h instanceof At&&"̸"===h.text&&("mo"===s.type||"mi"===s.type||"mn"===s.type)){var p=s.children[0];p instanceof At&&p.text.length>0&&(p.text=p.text.slice(0,1)+"̸"+p.text.slice(1),a.pop())}}}a.push(s),i=s}return a},Lt=function(e,t,n){return Ot(Dt(e,t,n))},It=function(e,t){if(!e)return new Mt.MathNode("mrow");if(lt[e.type])return lt[e.type](e,t);throw new o("Got group of unknown type: '"+e.type+"'")};function _t(e,t,n,r,i){var a,o=Dt(e,n);a=1===o.length&&o[0]instanceof qt&&d(["mrow","mtable"],o[0].type)?o[0]:new Mt.MathNode("mrow",o);var s=new Mt.MathNode("annotation",[new Mt.TextNode(t)]);s.setAttribute("encoding","application/x-tex");var l=new Mt.MathNode("semantics",[a,s]),u=new Mt.MathNode("math",[l]);return u.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),r&&u.setAttribute("display","block"),et.makeSpan([i?"katex":"katex-mathml"],[u])}var Bt=function(e){return new Pe({style:e.displayMode?q.DISPLAY:q.TEXT,maxSize:e.maxSize,minRuleThickness:e.minRuleThickness})},Rt=function(e,t){if(t.displayMode){var n=["katex-display"];t.leqno&&n.push("leqno"),t.fleqn&&n.push("fleqn"),e=et.makeSpan(n,[e])}return e},Pt={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:"⇋"},jt={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]},Ht=function(e){var t=new Mt.MathNode("mo",[new Mt.TextNode(Pt[e.substr(1)])]);return t.setAttribute("stretchy","true"),t},Ft=function(e,t){var n=function(){var n=4e5,r=e.label.substr(1);if(d(["widehat","widecheck","widetilde","utilde"],r)){var i,a,o,s="ordgroup"===(f=e.base).type?f.body.length:1;if(s>5)"widehat"===r||"widecheck"===r?(i=420,n=2364,o=.42,a=r+"4"):(i=312,n=2340,o=.34,a="tilde4");else{var l=[1,1,2,2,3,3][s];"widehat"===r||"widecheck"===r?(n=[0,1062,2364,2364,2364][l],i=[0,239,300,360,420][l],o=[0,.24,.3,.3,.36,.42][l],a=r+l):(n=[0,600,1033,2339,2340][l],i=[0,260,286,306,312][l],o=[0,.26,.286,.3,.306,.34][l],a="tilde"+l)}var u=new U(a),c=new F([u],{width:"100%",height:o+"em",viewBox:"0 0 "+n+" "+i,preserveAspectRatio:"none"});return{span:et.makeSvgSpan([],[c],t),minWidth:0,height:o}}var h,p,f,m=[],g=jt[r],b=g[0],v=g[1],y=g[2],x=y/1e3,w=b.length;if(1===w)h=["hide-tail"],p=[g[3]];else if(2===w)h=["halfarrow-left","halfarrow-right"],p=["xMinYMin","xMaxYMin"];else{if(3!==w)throw new Error("Correct katexImagesData or update code here to support\n "+w+" children.");h=["brace-left","brace-center","brace-right"],p=["xMinYMin","xMidYMin","xMaxYMin"]}for(var k=0;k<w;k++){var S=new U(b[k]),C=new F([S],{width:"400em",height:x+"em",viewBox:"0 0 "+n+" "+y,preserveAspectRatio:p[k]+" slice"}),T=et.makeSvgSpan([h[k]],[C],t);if(1===w)return{span:T,minWidth:v,height:x};T.style.height=x+"em",m.push(T)}return{span:et.makeSpan(["stretchy"],m,t),minWidth:v,height:x}}(),r=n.span,i=n.minWidth,a=n.height;return r.height=a,r.style.height=a+"em",i>0&&(r.style.minWidth=i+"em"),r};function Ut(e,t){if(!e||e.type!==t)throw new Error("Expected node of type "+t+", but got "+(e?"node of type "+e.type:String(e)));return e}function Qt(e){var t=Wt(e);if(!t)throw new Error("Expected node of symbol group type, but got "+(e?"node of type "+e.type:String(e)));return t}function Wt(e){return e&&("atom"===e.type||Z.hasOwnProperty(e.type))?e:null}var Vt=function(e,t){var n,r,i;e&&"supsub"===e.type?(n=(r=Ut(e.base,"accent")).base,e.base=n,i=function(e){if(e instanceof B)return e;throw new Error("Expected span<HtmlDomNode> but got "+String(e)+".")}(St(e,t)),e.base=r):n=(r=Ut(e,"accent")).base;var a=St(n,t.havingCrampedStyle()),o=0;if(r.isShifty&&g(n)){var s=m(n);o=W(St(s,t.havingCrampedStyle())).skew}var l,u=Math.min(a.height,t.fontMetrics().xHeight);if(r.isStretchy)l=Ft(r,t),l=et.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"elem",elem:l,wrapperClasses:["svg-align"],wrapperStyle:o>0?{width:"calc(100% - "+2*o+"em)",marginLeft:2*o+"em"}:void 0}]},t);else{var c,d;"\\vec"===r.label?(c=et.staticSvg("vec",t),d=et.svgData.vec[1]):((c=W(c=et.makeOrd({mode:r.mode,text:r.label},t,"textord"))).italic=0,d=c.width),l=et.makeSpan(["accent-body"],[c]);var h="\\textcircled"===r.label;h&&(l.classes.push("accent-full"),u=a.height);var p=o;h||(p-=d/2),l.style.left=p+"em","\\textcircled"===r.label&&(l.style.top=".2em"),l=et.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"kern",size:-u},{type:"elem",elem:l}]},t)}var f=et.makeSpan(["mord","accent"],[l],t);return i?(i.children[0]=f,i.height=Math.max(f.height,i.height),i.classes[0]="mord",i):f},$t=function(e,t){var n=e.isStretchy?Ht(e.label):new Mt.MathNode("mo",[Nt(e.label,e.mode)]),r=new Mt.MathNode("mover",[It(e.base,t),n]);return r.setAttribute("accent","true"),r},Gt=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(function(e){return"\\"+e}).join("|"));ut({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=!Gt.test(e.funcName),i=!r||"\\widehat"===e.funcName||"\\widetilde"===e.funcName||"\\widecheck"===e.funcName;return{type:"accent",mode:e.parser.mode,label:e.funcName,isStretchy:r,isShifty:i,base:n}},htmlBuilder:Vt,mathmlBuilder:$t}),ut({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:Vt,mathmlBuilder:$t}),ut({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:function(e,t){var n=e.parser,r=e.funcName,i=t[0];return{type:"accentUnder",mode:n.mode,label:r,base:i}},htmlBuilder:function(e,t){var n=St(e.base,t),r=Ft(e,t),i="\\utilde"===e.label?.12:0,a=et.makeVList({positionType:"top",positionData:n.height,children:[{type:"elem",elem:r,wrapperClasses:["svg-align"]},{type:"kern",size:i},{type:"elem",elem:n}]},t);return et.makeSpan(["mord","accentunder"],[a],t)},mathmlBuilder:function(e,t){var n=Ht(e.label),r=new Mt.MathNode("munder",[It(e.base,t),n]);return r.setAttribute("accentunder","true"),r}});var Kt=function(e){var t=new Mt.MathNode("mpadded",e?[e]:[]);return t.setAttribute("width","+0.6em"),t.setAttribute("lspace","0.3em"),t};ut({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,i=e.funcName;return{type:"xArrow",mode:r.mode,label:i,body:t[0],below:n[0]}},htmlBuilder:function(e,t){var n,r=t.style,i=t.havingStyle(r.sup()),a=et.wrapFragment(St(e.body,i,t),t);a.classes.push("x-arrow-pad"),e.below&&(i=t.havingStyle(r.sub()),(n=et.wrapFragment(St(e.below,i,t),t)).classes.push("x-arrow-pad"));var o,s=Ft(e,t),l=-t.fontMetrics().axisHeight+.5*s.height,u=-t.fontMetrics().axisHeight-.5*s.height-.111;if((a.depth>.25||"\\xleftequilibrium"===e.label)&&(u-=a.depth),n){var c=-t.fontMetrics().axisHeight+n.height+.5*s.height+.111;o=et.makeVList({positionType:"individualShift",children:[{type:"elem",elem:a,shift:u},{type:"elem",elem:s,shift:l},{type:"elem",elem:n,shift:c}]},t)}else o=et.makeVList({positionType:"individualShift",children:[{type:"elem",elem:a,shift:u},{type:"elem",elem:s,shift:l}]},t);return o.children[0].children[0].children[1].classes.push("svg-align"),et.makeSpan(["mrel","x-arrow"],[o],t)},mathmlBuilder:function(e,t){var n,r=Ht(e.label);if(e.body){var i=Kt(It(e.body,t));if(e.below){var a=Kt(It(e.below,t));n=new Mt.MathNode("munderover",[r,a,i])}else n=new Mt.MathNode("mover",[r,i])}else if(e.below){var o=Kt(It(e.below,t));n=new Mt.MathNode("munder",[r,o])}else n=Kt(),n=new Mt.MathNode("mover",[r,n]);return n}}),ut({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler:function(e,t){for(var n=e.parser,r=Ut(t[0],"ordgroup").body,i="",a=0;a<r.length;a++)i+=Ut(r[a],"textord").text;var s=parseInt(i);if(isNaN(s))throw new o("\\@char has non-numeric argument "+i);return{type:"textord",mode:n.mode,text:String.fromCharCode(s)}}});var Xt=function(e,t){var n=bt(e.body,t.withColor(e.color),!1);return et.makeFragment(n)},Yt=function(e,t){var n=Dt(e.body,t.withColor(e.color)),r=new Mt.MathNode("mstyle",n);return r.setAttribute("mathcolor",e.color),r};ut({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,greediness:3,argTypes:["color","original"]},handler:function(e,t){var n=e.parser,r=Ut(t[0],"color-token").color,i=t[1];return{type:"color",mode:n.mode,color:r,body:dt(i)}},htmlBuilder:Xt,mathmlBuilder:Yt}),ut({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,greediness:3,argTypes:["color"]},handler:function(e,t){var n=e.parser,r=e.breakOnTokenText,i=Ut(t[0],"color-token").color;n.gullet.macros.set("\\current@color",i);var a=n.parseExpression(!0,r);return{type:"color",mode:n.mode,color:i,body:a}},htmlBuilder:Xt,mathmlBuilder:Yt}),ut({type:"cr",names:["\\cr","\\newline"],props:{numArgs:0,numOptionalArgs:1,argTypes:["size"],allowedInText:!0},handler:function(e,t,n){var r=e.parser,i=e.funcName,a=n[0],o="\\cr"===i,s=!1;return o||(s=!r.settings.displayMode||!r.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode")),{type:"cr",mode:r.mode,newLine:s,newRow:o,size:a&&Ut(a,"size").value}},htmlBuilder:function(e,t){if(e.newRow)throw new o("\\cr valid only within a tabular/array environment");var n=et.makeSpan(["mspace"],[],t);return e.newLine&&(n.classes.push("newline"),e.size&&(n.style.marginTop=Ue(e.size,t)+"em")),n},mathmlBuilder:function(e,t){var n=new Mt.MathNode("mspace");return e.newLine&&(n.setAttribute("linebreak","newline"),e.size&&n.setAttribute("height",Ue(e.size,t)+"em")),n}});var Zt={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},Jt=function(e){var t=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new o("Expected a control sequence",e);return t},en=function(e,t,n,r){var i=e.gullet.macros.get(n.text);null==i&&(n.noexpand=!0,i={tokens:[n],numArgs:0,unexpandable:!e.gullet.isExpandable(n.text)}),e.gullet.macros.set(t,i,r)};ut({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler:function(e){var t=e.parser,n=e.funcName;t.consumeSpaces();var r=t.fetch();if(Zt[r.text])return"\\global"!==n&&"\\\\globallong"!==n||(r.text=Zt[r.text]),Ut(t.parseFunction(),"internal");throw new o("Invalid token after macro prefix",r)}}),ut({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0},handler:function(e){var t=e.parser,n=e.funcName,r=t.gullet.consumeArgs(1)[0];if(1!==r.length)throw new o("\\gdef's first argument must be a macro name");var i=r[0].text,a=0;for(r=t.gullet.consumeArgs(1)[0];1===r.length&&"#"===r[0].text;){if(1!==(r=t.gullet.consumeArgs(1)[0]).length)throw new o('Invalid argument number length "'+r.length+'"');if(!/^[1-9]$/.test(r[0].text))throw new o('Invalid argument number "'+r[0].text+'"');if(a++,parseInt(r[0].text)!==a)throw new o('Argument number "'+r[0].text+'" out of order');r=t.gullet.consumeArgs(1)[0]}return"\\edef"!==n&&"\\xdef"!==n||(r=t.gullet.expandTokens(r)).reverse(),t.gullet.macros.set(i,{tokens:r,numArgs:a},n===Zt[n]),{type:"internal",mode:t.mode}}}),ut({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0},handler:function(e){var t=e.parser,n=e.funcName,r=Jt(t.gullet.popToken());t.gullet.consumeSpaces();var i=function(e){var t=e.gullet.popToken();return"="===t.text&&" "===(t=e.gullet.popToken()).text&&(t=e.gullet.popToken()),t}(t);return en(t,r,i,"\\\\globallet"===n),{type:"internal",mode:t.mode}}}),ut({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0},handler:function(e){var t=e.parser,n=e.funcName,r=Jt(t.gullet.popToken()),i=t.gullet.popToken(),a=t.gullet.popToken();return en(t,r,a,"\\\\globalfuture"===n),t.gullet.pushToken(a),t.gullet.pushToken(i),{type:"internal",mode:t.mode}}});var tn=function(e,t,n){var r=K(ee.math[e]&&ee.math[e].replace||e,t,n);if(!r)throw new Error("Unsupported symbol "+e+" and font size "+t+".");return r},nn=function(e,t,n,r){var i=n.havingBaseStyle(t),a=et.makeSpan(r.concat(i.sizingClasses(n)),[e],n),o=i.sizeMultiplier/n.sizeMultiplier;return a.height*=o,a.depth*=o,a.maxFontSize=i.sizeMultiplier,a},rn=function(e,t,n){var r=t.havingBaseStyle(n),i=(1-t.sizeMultiplier/r.sizeMultiplier)*t.fontMetrics().axisHeight;e.classes.push("delimcenter"),e.style.top=i+"em",e.height-=i,e.depth+=i},an=function(e,t,n,r,i,a){var o=function(e,t,n,r){return et.makeSymbol(e,"Size"+t+"-Regular",n,r)}(e,t,i,r),s=nn(et.makeSpan(["delimsizing","size"+t],[o],r),q.TEXT,r,a);return n&&rn(s,r,q.TEXT),s},on=function(e,t,n){return{type:"elem",elem:et.makeSpan(["delimsizinginner","Size1-Regular"===t?"delim-size1":"delim-size4"],[et.makeSpan([],[et.makeSymbol(e,t,n)])])}},sn={type:"kern",size:-.005},ln=function(e,t,n,r,i,a){var o,s,l,u;o=l=u=e,s=null;var c="Size1-Regular";"\\uparrow"===e?l=u="⏐":"\\Uparrow"===e?l=u="‖":"\\downarrow"===e?o=l="⏐":"\\Downarrow"===e?o=l="‖":"\\updownarrow"===e?(o="\\uparrow",l="⏐",u="\\downarrow"):"\\Updownarrow"===e?(o="\\Uparrow",l="‖",u="\\Downarrow"):"["===e||"\\lbrack"===e?(o="⎡",l="⎢",u="⎣",c="Size4-Regular"):"]"===e||"\\rbrack"===e?(o="⎤",l="⎥",u="⎦",c="Size4-Regular"):"\\lfloor"===e||"⌊"===e?(l=o="⎢",u="⎣",c="Size4-Regular"):"\\lceil"===e||"⌈"===e?(o="⎡",l=u="⎢",c="Size4-Regular"):"\\rfloor"===e||"⌋"===e?(l=o="⎥",u="⎦",c="Size4-Regular"):"\\rceil"===e||"⌉"===e?(o="⎤",l=u="⎥",c="Size4-Regular"):"("===e||"\\lparen"===e?(o="⎛",l="⎜",u="⎝",c="Size4-Regular"):")"===e||"\\rparen"===e?(o="⎞",l="⎟",u="⎠",c="Size4-Regular"):"\\{"===e||"\\lbrace"===e?(o="⎧",s="⎨",u="⎩",l="⎪",c="Size4-Regular"):"\\}"===e||"\\rbrace"===e?(o="⎫",s="⎬",u="⎭",l="⎪",c="Size4-Regular"):"\\lgroup"===e||"⟮"===e?(o="⎧",u="⎩",l="⎪",c="Size4-Regular"):"\\rgroup"===e||"⟯"===e?(o="⎫",u="⎭",l="⎪",c="Size4-Regular"):"\\lmoustache"===e||"⎰"===e?(o="⎧",u="⎭",l="⎪",c="Size4-Regular"):"\\rmoustache"!==e&&"⎱"!==e||(o="⎫",u="⎩",l="⎪",c="Size4-Regular");var d=tn(o,c,i),h=d.height+d.depth,p=tn(l,c,i),f=p.height+p.depth,m=tn(u,c,i),g=m.height+m.depth,b=0,v=1;if(null!==s){var y=tn(s,c,i);b=y.height+y.depth,v=2}var x=h+g+b,w=Math.max(0,Math.ceil((t-x)/(v*f))),k=x+w*v*f,S=r.fontMetrics().axisHeight;n&&(S*=r.sizeMultiplier);var C=k/2-S,T=.005*(w+1)-f,E=[];if(E.push(on(u,c,i)),null===s)for(var A=0;A<w;A++)E.push(sn),E.push(on(l,c,i));else{for(var M=0;M<w;M++)E.push(sn),E.push(on(l,c,i));E.push({type:"kern",size:T}),E.push(on(l,c,i)),E.push(sn),E.push(on(s,c,i));for(var N=0;N<w;N++)E.push(sn),E.push(on(l,c,i))}if("⎜"!==l&&"⎟"!==l||0!==w)E.push({type:"kern",size:T}),E.push(on(l,c,i)),E.push(sn);else{var O=et.svgData.leftParenInner[2]/2;E.push({type:"kern",size:-O});var z=et.staticSvg("⎜"===l?"leftParenInner":"rightParenInner",r);E.push({type:"elem",elem:z}),E.push({type:"kern",size:-O})}E.push(on(o,c,i));var D=r.havingBaseStyle(q.TEXT),L=et.makeVList({positionType:"bottom",positionData:C,children:E},D);return nn(et.makeSpan(["delimsizing","mult"],[L],D),q.TEXT,r,a)},un=.08,cn=function(e,t,n,r,i){var a=function(e,t,n){t*=1e3;var r="";switch(e){case"sqrtMain":r=function(e){return"M95,"+(622+e+80)+"\nc-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14\nc0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54\nc44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10\ns173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429\nc69,-144,104.5,-217.7,106.5,-221\nl"+e/2.075+" -"+e+"\nc5.3,-9.3,12,-14,20,-14\nH400000v"+(40+e)+"H845.2724\ns-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7\nc-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z\nM"+(834+e)+" 80h400000v"+(40+e)+"h-400000z"}(t);break;case"sqrtSize1":r=function(e){return"M263,"+(601+e+80)+"c0.7,0,18,39.7,52,119\nc34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120\nc340,-704.7,510.7,-1060.3,512,-1067\nl"+e/2.084+" -"+e+"\nc4.7,-7.3,11,-11,19,-11\nH40000v"+(40+e)+"H1012.3\ns-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232\nc-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1\ns-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26\nc-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z\nM"+(1001+e)+" 80h400000v"+(40+e)+"h-400000z"}(t);break;case"sqrtSize2":r=function(e){return"M983 "+(10+e+80)+"\nl"+e/3.13+" -"+e+"\nc4,-6.7,10,-10,18,-10 H400000v"+(40+e)+"\nH1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7\ns-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744\nc-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30\nc26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722\nc56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5\nc53.7,-170.3,84.5,-266.8,92.5,-289.5z\nM"+(1001+e)+" 80h400000v"+(40+e)+"h-400000z"}(t);break;case"sqrtSize3":r=function(e){return"M424,"+(2398+e+80)+"\nc-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514\nc0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20\ns-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121\ns209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081\nl"+e/4.223+" -"+e+"c4,-6.7,10,-10,18,-10 H400000\nv"+(40+e)+"H1014.6\ns-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185\nc-2,6,-10,9,-24,9\nc-8,0,-12,-0.7,-12,-2z M"+(1001+e)+" 80\nh400000v"+(40+e)+"h-400000z"}(t);break;case"sqrtSize4":r=function(e){return"M473,"+(2713+e+80)+"\nc339.3,-1799.3,509.3,-2700,510,-2702 l"+e/5.298+" -"+e+"\nc3.3,-7.3,9.3,-11,18,-11 H400000v"+(40+e)+"H1017.7\ns-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9\nc-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200\nc0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26\ns76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104,\n606zM"+(1001+e)+" 80h400000v"+(40+e)+"H1017.7z"}(t);break;case"sqrtTall":r=function(e,t,n){return"M702 "+(e+80)+"H400000"+(40+e)+"\nH742v"+(n-54-80-e)+"l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1\nh-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170\nc-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667\n219 661 l218 661zM702 80H400000v"+(40+e)+"H742z"}(t,0,n)}return r}(e,r,n),o=new U(e,a),s=new F([o],{width:"400em",height:t+"em",viewBox:"0 0 400000 "+n,preserveAspectRatio:"xMinYMin slice"});return et.makeSvgSpan(["hide-tail"],[s],i)},dn=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"],hn=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"],pn=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],fn=[0,1.2,1.8,2.4,3],mn=[{type:"small",style:q.SCRIPTSCRIPT},{type:"small",style:q.SCRIPT},{type:"small",style:q.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],gn=[{type:"small",style:q.SCRIPTSCRIPT},{type:"small",style:q.SCRIPT},{type:"small",style:q.TEXT},{type:"stack"}],bn=[{type:"small",style:q.SCRIPTSCRIPT},{type:"small",style:q.SCRIPT},{type:"small",style:q.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],vn=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.")},yn=function(e,t,n,r){for(var i=Math.min(2,3-r.style.size);i<n.length&&"stack"!==n[i].type;i++){var a=tn(e,vn(n[i]),"math"),o=a.height+a.depth;if("small"===n[i].type&&(o*=r.havingBaseStyle(n[i].style).sizeMultiplier),o>t)return n[i]}return n[n.length-1]},xn=function(e,t,n,r,i,a){var o;"<"===e||"\\lt"===e||"⟨"===e?e="\\langle":">"!==e&&"\\gt"!==e&&"⟩"!==e||(e="\\rangle"),o=d(pn,e)?mn:d(dn,e)?bn:gn;var s=yn(e,t,o,r);return"small"===s.type?function(e,t,n,r,i,a){var o=et.makeSymbol(e,"Main-Regular",i,r),s=nn(o,t,r,a);return n&&rn(s,r,t),s}(e,s.style,n,r,i,a):"large"===s.type?an(e,s.size,n,r,i,a):ln(e,t,n,r,i,a)},wn=function(e,t,n,r,i){if("<"===e||"\\lt"===e||"⟨"===e?e="\\langle":">"!==e&&"\\gt"!==e&&"⟩"!==e||(e="\\rangle"),d(dn,e)||d(pn,e))return an(e,t,!1,n,r,i);if(d(hn,e))return ln(e,fn[t],!1,n,r,i);throw new o("Illegal delimiter: '"+e+"'")},kn=xn,Sn=function(e,t,n,r,i,a){var o=r.fontMetrics().axisHeight*r.sizeMultiplier,s=5/r.fontMetrics().ptPerEm,l=Math.max(t-o,n+o),u=Math.max(l/500*901,2*l-s);return xn(e,u,!0,r,i,a)},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}},Tn=["(","\\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 En(e,t){var n=Wt(e);if(n&&d(Tn,n.text))return n;throw new o(n?"Invalid delimiter '"+n.text+"' after '"+t.funcName+"'":"Invalid delimiter type '"+e.type+"'",e)}function qn(e){if(!e.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}ut({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=En(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?et.makeSpan([e.mclass]):wn(e.delim,e.size,t,e.mode,[e.mclass])},mathmlBuilder:function(e){var t=[];"."!==e.delim&&t.push(Nt(e.delim,e.mode));var n=new Mt.MathNode("mo",t);return"mopen"===e.mclass||"mclose"===e.mclass?n.setAttribute("fence","true"):n.setAttribute("fence","false"),n}}),ut({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 o("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:e.parser.mode,delim:En(t[0],e).text,color:n}}}),ut({type:"leftright",names:["\\left"],props:{numArgs:1},handler:function(e,t){var n=En(t[0],e),r=e.parser;++r.leftrightDepth;var i=r.parseExpression(!1);--r.leftrightDepth,r.expect("\\right",!1);var a=Ut(r.parseFunction(),"leftright-right");return{type:"leftright",mode:r.mode,body:i,left:n.text,right:a.delim,rightColor:a.color}},htmlBuilder:function(e,t){qn(e);for(var n,r,i=bt(e.body,t,!0,["mopen","mclose"]),a=0,o=0,s=!1,l=0;l<i.length;l++)i[l].isMiddle?s=!0:(a=Math.max(i[l].height,a),o=Math.max(i[l].depth,o));if(a*=t.sizeMultiplier,o*=t.sizeMultiplier,n="."===e.left?kt(t,["mopen"]):Sn(e.left,a,o,t,e.mode,["mopen"]),i.unshift(n),s)for(var u=1;u<i.length;u++){var c=i[u].isMiddle;c&&(i[u]=Sn(c.delim,a,o,c.options,e.mode,[]))}if("."===e.right)r=kt(t,["mclose"]);else{var d=e.rightColor?t.withColor(e.rightColor):t;r=Sn(e.right,a,o,d,e.mode,["mclose"])}return i.push(r),et.makeSpan(["minner"],i,t)},mathmlBuilder:function(e,t){qn(e);var n=Dt(e.body,t);if("."!==e.left){var r=new Mt.MathNode("mo",[Nt(e.left,e.mode)]);r.setAttribute("fence","true"),n.unshift(r)}if("."!==e.right){var i=new Mt.MathNode("mo",[Nt(e.right,e.mode)]);i.setAttribute("fence","true"),e.rightColor&&i.setAttribute("mathcolor",e.rightColor),n.push(i)}return Ot(n)}}),ut({type:"middle",names:["\\middle"],props:{numArgs:1},handler:function(e,t){var n=En(t[0],e);if(!e.parser.leftrightDepth)throw new o("\\middle without preceding \\left",n);return{type:"middle",mode:e.parser.mode,delim:n.text}},htmlBuilder:function(e,t){var n;if("."===e.delim)n=kt(t,[]);else{n=wn(e.delim,1,t,e.mode,[]);var r={delim:e.delim,options:t};n.isMiddle=r}return n},mathmlBuilder:function(e,t){var n="\\vert"===e.delim||"|"===e.delim?Nt("|","text"):Nt(e.delim,e.mode),r=new Mt.MathNode("mo",[n]);return r.setAttribute("fence","true"),r.setAttribute("lspace","0.05em"),r.setAttribute("rspace","0.05em"),r}});var An=function(e,t){var n,r,i=et.wrapFragment(St(e.body,t),t),a=e.label.substr(1),o=t.sizeMultiplier,s=0,l=g(e.body);if("sout"===a)(n=et.makeSpan(["stretchy","sout"])).height=t.fontMetrics().defaultRuleThickness/o,s=-.5*t.fontMetrics().xHeight;else{/cancel/.test(a)?l||i.classes.push("cancel-pad"):i.classes.push("boxpad");var u=0,c=0;/box/.test(a)?(c=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness),u=t.fontMetrics().fboxsep+("colorbox"===a?0:c)):u=l?.2:0,n=function(e,t,n,r){var i,a=e.height+e.depth+2*n;if(/fbox|color/.test(t)){if(i=et.makeSpan(["stretchy",t],[],r),"fbox"===t){var o=r.color&&r.getColor();o&&(i.style.borderColor=o)}}else{var s=[];/^[bx]cancel$/.test(t)&&s.push(new Q({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(t)&&s.push(new Q({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var l=new F(s,{width:"100%",height:a+"em"});i=et.makeSvgSpan([],[l],r)}return i.height=a,i.style.height=a+"em",i}(i,a,u,t),/fbox|boxed|fcolorbox/.test(a)&&(n.style.borderStyle="solid",n.style.borderWidth=c+"em"),s=i.depth+u,e.backgroundColor&&(n.style.backgroundColor=e.backgroundColor,e.borderColor&&(n.style.borderColor=e.borderColor))}return r=e.backgroundColor?et.makeVList({positionType:"individualShift",children:[{type:"elem",elem:n,shift:s},{type:"elem",elem:i,shift:0}]},t):et.makeVList({positionType:"individualShift",children:[{type:"elem",elem:i,shift:0},{type:"elem",elem:n,shift:s,wrapperClasses:/cancel/.test(a)?["svg-align"]:[]}]},t),/cancel/.test(a)&&(r.height=i.height,r.depth=i.depth),/cancel/.test(a)&&!l?et.makeSpan(["mord","cancel-lap"],[r],t):et.makeSpan(["mord"],[r],t)},Mn=function(e,t){var n=0,r=new Mt.MathNode(e.label.indexOf("colorbox")>-1?"mpadded":"menclose",[It(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 i=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness);r.setAttribute("style","border: "+i+"em solid "+String(e.borderColor))}break;case"\\xcancel":r.setAttribute("notation","updiagonalstrike downdiagonalstrike")}return e.backgroundColor&&r.setAttribute("mathbackground",e.backgroundColor),r};ut({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,greediness:3,argTypes:["color","text"]},handler:function(e,t,n){var r=e.parser,i=e.funcName,a=Ut(t[0],"color-token").color,o=t[1];return{type:"enclose",mode:r.mode,label:i,backgroundColor:a,body:o}},htmlBuilder:An,mathmlBuilder:Mn}),ut({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,greediness:3,argTypes:["color","color","text"]},handler:function(e,t,n){var r=e.parser,i=e.funcName,a=Ut(t[0],"color-token").color,o=Ut(t[1],"color-token").color,s=t[2];return{type:"enclose",mode:r.mode,label:i,backgroundColor:o,borderColor:a,body:s}},htmlBuilder:An,mathmlBuilder:Mn}),ut({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]}}}),ut({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout"],props:{numArgs:1},handler:function(e,t,n){var r=e.parser,i=e.funcName,a=t[0];return{type:"enclose",mode:r.mode,label:i,body:a}},htmlBuilder:An,mathmlBuilder:Mn});var Nn={};function On(e){for(var t=e.type,n=e.names,r=e.props,i=e.handler,a=e.htmlBuilder,o=e.mathmlBuilder,s={type:t,numArgs:r.numArgs||0,greediness:1,allowedInText:!1,numOptionalArgs:0,handler:i},l=0;l<n.length;++l)Nn[n[l]]=s;a&&(st[t]=a),o&&(lt[t]=o)}function zn(e){var t=[];e.consumeSpaces();for(var n=e.fetch().text;"\\hline"===n||"\\hdashline"===n;)e.consume(),t.push("\\hdashline"===n),e.consumeSpaces(),n=e.fetch().text;return t}function Dn(e,t,n){var r=t.hskipBeforeAndAfter,i=t.addJot,a=t.cols,s=t.arraystretch,l=t.colSeparationType;if(e.gullet.beginGroup(),e.gullet.macros.set("\\\\","\\cr"),!s){var u=e.gullet.expandMacroAsText("\\arraystretch");if(null==u)s=1;else if(!(s=parseFloat(u))||s<0)throw new o("Invalid \\arraystretch: "+u)}e.gullet.beginGroup();var c=[],d=[c],h=[],p=[];for(p.push(zn(e));;){var f=e.parseExpression(!1,"\\cr");e.gullet.endGroup(),e.gullet.beginGroup(),f={type:"ordgroup",mode:e.mode,body:f},n&&(f={type:"styling",mode:e.mode,style:n,body:[f]}),c.push(f);var m=e.fetch().text;if("&"===m)e.consume();else{if("\\end"===m){1===c.length&&"styling"===f.type&&0===f.body[0].body.length&&d.pop(),p.length<d.length+1&&p.push([]);break}if("\\cr"!==m)throw new o("Expected & or \\\\ or \\cr or \\end",e.nextToken);var g=Ut(e.parseFunction(),"cr");h.push(g.size),p.push(zn(e)),c=[],d.push(c)}}return e.gullet.endGroup(),e.gullet.endGroup(),{type:"array",mode:e.mode,addJot:i,arraystretch:s,body:d,cols:a,rowGaps:h,hskipBeforeAndAfter:r,hLinesBeforeRow:p,colSeparationType:l}}function Ln(e){return"d"===e.substr(0,1)?"display":"text"}var In=function(e,t){var n,r,i=e.body.length,a=e.hLinesBeforeRow,s=0,l=new Array(i),u=[],c=Math.max(t.fontMetrics().arrayRuleWidth,t.minRuleThickness),d=1/t.fontMetrics().ptPerEm,p=5*d;e.colSeparationType&&"small"===e.colSeparationType&&(p=t.havingStyle(q.SCRIPT).sizeMultiplier/t.sizeMultiplier*.2778);var f=12*d,m=3*d,g=e.arraystretch*f,b=.7*g,v=.3*g,y=0;function x(e){for(var t=0;t<e.length;++t)t>0&&(y+=.25),u.push({pos:y,isDashed:e[t]})}for(x(a[0]),n=0;n<e.body.length;++n){var w=e.body[n],k=b,S=v;s<w.length&&(s=w.length);var C=new Array(w.length);for(r=0;r<w.length;++r){var T=St(w[r],t);S<T.depth&&(S=T.depth),k<T.height&&(k=T.height),C[r]=T}var E=e.rowGaps[n],A=0;E&&(A=Ue(E,t))>0&&(S<(A+=v)&&(S=A),A=0),e.addJot&&(S+=m),C.height=k,C.depth=S,y+=k,C.pos=y,y+=S+A,l[n]=C,x(a[n+1])}var M,N,O=y/2+t.fontMetrics().axisHeight,z=e.cols||[],D=[];for(r=0,N=0;r<s||N<z.length;++r,++N){for(var L=z[N]||{},I=!0;"separator"===L.type;){if(I||((M=et.makeSpan(["arraycolsep"],[])).style.width=t.fontMetrics().doubleRuleSep+"em",D.push(M)),"|"!==L.separator&&":"!==L.separator)throw new o("Invalid separator type: "+L.separator);var _="|"===L.separator?"solid":"dashed",B=et.makeSpan(["vertical-separator"],[],t);B.style.height=y+"em",B.style.borderRightWidth=c+"em",B.style.borderRightStyle=_,B.style.margin="0 -"+c/2+"em",B.style.verticalAlign=-(y-O)+"em",D.push(B),L=z[++N]||{},I=!1}if(!(r>=s)){var R=void 0;(r>0||e.hskipBeforeAndAfter)&&0!==(R=h(L.pregap,p))&&((M=et.makeSpan(["arraycolsep"],[])).style.width=R+"em",D.push(M));var P=[];for(n=0;n<i;++n){var j=l[n],H=j[r];if(H){var F=j.pos-O;H.depth=j.depth,H.height=j.height,P.push({type:"elem",elem:H,shift:F})}}P=et.makeVList({positionType:"individualShift",children:P},t),P=et.makeSpan(["col-align-"+(L.align||"c")],[P]),D.push(P),(r<s-1||e.hskipBeforeAndAfter)&&0!==(R=h(L.postgap,p))&&((M=et.makeSpan(["arraycolsep"],[])).style.width=R+"em",D.push(M))}}if(l=et.makeSpan(["mtable"],D),u.length>0){for(var U=et.makeLineSpan("hline",t,c),Q=et.makeLineSpan("hdashline",t,c),W=[{type:"elem",elem:l,shift:0}];u.length>0;){var V=u.pop(),$=V.pos-O;V.isDashed?W.push({type:"elem",elem:Q,shift:$}):W.push({type:"elem",elem:U,shift:$})}l=et.makeVList({positionType:"individualShift",children:W},t)}return et.makeSpan(["mord"],[l],t)},_n={c:"center ",l:"left ",r:"right "},Bn=function(e,t){var n=new Mt.MathNode("mtable",e.body.map(function(e){return new Mt.MathNode("mtr",e.map(function(e){return new Mt.MathNode("mtd",[It(e,t)])}))})),r=.5===e.arraystretch?.1:.16+e.arraystretch-1+(e.addJot?.09:0);n.setAttribute("rowspacing",r+"em");var i="",a="";if(e.cols&&e.cols.length>0){var o=e.cols,s="",l=!1,u=0,c=o.length;"separator"===o[0].type&&(i+="top ",u=1),"separator"===o[o.length-1].type&&(i+="bottom ",c-=1);for(var d=u;d<c;d++)"align"===o[d].type?(a+=_n[o[d].align],l&&(s+="none "),l=!0):"separator"===o[d].type&&l&&(s+="|"===o[d].separator?"solid ":"dashed ",l=!1);n.setAttribute("columnalign",a.trim()),/[sd]/.test(s)&&n.setAttribute("columnlines",s.trim())}if("align"===e.colSeparationType){for(var h=e.cols||[],p="",f=1;f<h.length;f++)p+=f%2?"0em ":"1em ";n.setAttribute("columnspacing",p.trim())}else"alignat"===e.colSeparationType?n.setAttribute("columnspacing","0em"):"small"===e.colSeparationType?n.setAttribute("columnspacing","0.2778em"):n.setAttribute("columnspacing","1em");var m="",g=e.hLinesBeforeRow;i+=g[0].length>0?"left ":"",i+=g[g.length-1].length>0?"right ":"";for(var b=1;b<g.length-1;b++)m+=0===g[b].length?"none ":g[b][0]?"dashed ":"solid ";return/[sd]/.test(m)&&n.setAttribute("rowlines",m.trim()),""!==i&&(n=new Mt.MathNode("menclose",[n])).setAttribute("notation",i.trim()),e.arraystretch&&e.arraystretch<1&&(n=new Mt.MathNode("mstyle",[n])).setAttribute("scriptlevel","1"),n},Rn=function(e,t){var n,r=[],i=Dn(e.parser,{cols:r,addJot:!0},"display"),a=0,s={type:"ordgroup",mode:e.mode,body:[]};if(t[0]&&"ordgroup"===t[0].type){for(var l="",u=0;u<t[0].body.length;u++)l+=Ut(t[0].body[u],"textord").text;n=Number(l),a=2*n}var c=!a;i.body.forEach(function(e){for(var t=1;t<e.length;t+=2){var r=Ut(e[t],"styling");Ut(r.body[0],"ordgroup").body.unshift(s)}if(c)a<e.length&&(a=e.length);else{var i=e.length/2;if(n<i)throw new o("Too many math in a row: expected "+n+", but got "+i,e[0])}});for(var d=0;d<a;++d){var h="r",p=0;d%2==1?h="l":d>0&&c&&(p=1),r[d]={type:"align",align:h,pregap:p,postgap:0}}return i.colSeparationType=c?"align":"alignat",i};On({type:"array",names:["array","darray"],props:{numArgs:1},handler:function(e,t){var n={cols:(Wt(t[0])?[t[0]]:Ut(t[0],"ordgroup").body).map(function(e){var t=Qt(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 o("Unknown column alignment: "+t,e)}),hskipBeforeAndAfter:!0};return Dn(e.parser,n,Ln(e.envName))},htmlBuilder:In,mathmlBuilder:Bn}),On({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=Dn(e.parser,{hskipBeforeAndAfter:!1},Ln(e.envName));return t?{type:"leftright",mode:e.mode,body:[n],left:t[0],right:t[1],rightColor:void 0}:n},htmlBuilder:In,mathmlBuilder:Bn}),On({type:"array",names:["smallmatrix"],props:{numArgs:0},handler:function(e){var t=Dn(e.parser,{arraystretch:.5},"script");return t.colSeparationType="small",t},htmlBuilder:In,mathmlBuilder:Bn}),On({type:"array",names:["subarray"],props:{numArgs:1},handler:function(e,t){var n=(Wt(t[0])?[t[0]]:Ut(t[0],"ordgroup").body).map(function(e){var t=Qt(e).text;if(-1!=="lc".indexOf(t))return{type:"align",align:t};throw new o("Unknown column alignment: "+t,e)});if(n.length>1)throw new o("{subarray} can contain only one column");var r={cols:n,hskipBeforeAndAfter:!1,arraystretch:.5};if((r=Dn(e.parser,r,"script")).body.length>0&&r.body[0].length>1)throw new o("{subarray} can contain only one column");return r},htmlBuilder:In,mathmlBuilder:Bn}),On({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler:function(e){var t=Dn(e.parser,{arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},Ln(e.envName));return{type:"leftright",mode:e.mode,body:[t],left:e.envName.indexOf("r")>-1?".":"\\{",right:e.envName.indexOf("r")>-1?"\\}":".",rightColor:void 0}},htmlBuilder:In,mathmlBuilder:Bn}),On({type:"array",names:["aligned"],props:{numArgs:0},handler:Rn,htmlBuilder:In,mathmlBuilder:Bn}),On({type:"array",names:["gathered"],props:{numArgs:0},handler:function(e){return Dn(e.parser,{cols:[{type:"align",align:"c"}],addJot:!0},"display")},htmlBuilder:In,mathmlBuilder:Bn}),On({type:"array",names:["alignedat"],props:{numArgs:1},handler:Rn,htmlBuilder:In,mathmlBuilder:Bn}),ut({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler:function(e,t){throw new o(e.funcName+" valid only within array environment")}});var Pn=Nn;ut({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler:function(e,t){var n=e.parser,r=e.funcName,i=t[0];if("ordgroup"!==i.type)throw new o("Invalid environment name",i);for(var a="",s=0;s<i.body.length;++s)a+=Ut(i.body[s],"textord").text;if("\\begin"===r){if(!Pn.hasOwnProperty(a))throw new o("No such environment: "+a,i);var l=Pn[a],u=n.parseArguments("\\begin{"+a+"}",l),c=u.args,d=u.optArgs,h={mode:n.mode,envName:a,parser:n},p=l.handler(h,c,d);n.expect("\\end",!1);var f=n.nextToken,m=Ut(n.parseFunction(),"environment");if(m.name!==a)throw new o("Mismatch: \\begin{"+a+"} matched by \\end{"+m.name+"}",f);return p}return{type:"environment",mode:n.mode,name:a,nameGroup:i}}});var jn=et.makeSpan;function Hn(e,t){var n=bt(e.body,t,!0);return jn([e.mclass],n,t)}function Fn(e,t){var n,r=Dt(e.body,t);return"minner"===e.mclass?Mt.newDocumentFragment(r):("mord"===e.mclass?e.isCharacterBox?(n=r[0]).type="mi":n=new Mt.MathNode("mi",r):(e.isCharacterBox?(n=r[0]).type="mo":n=new Mt.MathNode("mo",r),"mbin"===e.mclass?(n.attributes.lspace="0.22em",n.attributes.rspace="0.22em"):"mpunct"===e.mclass?(n.attributes.lspace="0em",n.attributes.rspace="0.17em"):"mopen"!==e.mclass&&"mclose"!==e.mclass||(n.attributes.lspace="0em",n.attributes.rspace="0em")),n)}ut({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1},handler:function(e,t){var n=e.parser,r=e.funcName,i=t[0];return{type:"mclass",mode:n.mode,mclass:"m"+r.substr(5),body:dt(i),isCharacterBox:g(i)}},htmlBuilder:Hn,mathmlBuilder:Fn});var Un=function(e){var 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};ut({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler:function(e,t){return{type:"mclass",mode:e.parser.mode,mclass:Un(t[0]),body:[t[1]],isCharacterBox:g(t[1])}}}),ut({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler:function(e,t){var n,r=e.parser,i=e.funcName,a=t[1],o=t[0];n="\\stackrel"!==i?Un(a):"mrel";var s={type:"op",mode:a.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:"\\stackrel"!==i,body:dt(a)},l={type:"supsub",mode:o.mode,base:s,sup:"\\underset"===i?null:o,sub:"\\underset"===i?o:null};return{type:"mclass",mode:r.mode,mclass:n,body:[l],isCharacterBox:g(l)}},htmlBuilder:Hn,mathmlBuilder:Fn});var Qn=function(e,t){var n=e.font,r=t.withFont(n);return St(e.body,r)},Wn=function(e,t){var n=e.font,r=t.withFont(n);return It(e.body,r)},Vn={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};ut({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,greediness:2},handler:function(e,t){var n=e.parser,r=e.funcName,i=t[0],a=r;return a in Vn&&(a=Vn[a]),{type:"font",mode:n.mode,font:a.slice(1),body:i}},htmlBuilder:Qn,mathmlBuilder:Wn}),ut({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1,greediness:2},handler:function(e,t){var n=e.parser,r=t[0],i=g(r);return{type:"mclass",mode:n.mode,mclass:Un(r),body:[{type:"font",mode:n.mode,font:"boldsymbol",body:r}],isCharacterBox:i}}}),ut({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:function(e,t){var n=e.parser,r=e.funcName,i=e.breakOnTokenText,a=n.mode,o=n.parseExpression(!0,i);return{type:"font",mode:a,font:"math"+r.slice(1),body:{type:"ordgroup",mode:n.mode,body:o}}},htmlBuilder:Qn,mathmlBuilder:Wn});var $n=function(e,t){var n=t;return"display"===e?n=n.id>=q.SCRIPT.id?n.text():q.DISPLAY:"text"===e&&n.size===q.DISPLAY.size?n=q.TEXT:"script"===e?n=q.SCRIPT:"scriptscript"===e&&(n=q.SCRIPTSCRIPT),n},Gn=function(e,t){var n,r=$n(e.size,t.style),i=r.fracNum(),a=r.fracDen();n=t.havingStyle(i);var o=St(e.numer,n,t);if(e.continued){var s=8.5/t.fontMetrics().ptPerEm,l=3.5/t.fontMetrics().ptPerEm;o.height=o.height<s?s:o.height,o.depth=o.depth<l?l:o.depth}n=t.havingStyle(a);var u,c,d,h,p,f,m,g,b,v,y=St(e.denom,n,t);if(e.hasBarLine?(e.barSize?(c=Ue(e.barSize,t),u=et.makeLineSpan("frac-line",t,c)):u=et.makeLineSpan("frac-line",t),c=u.height,d=u.height):(u=null,c=0,d=t.fontMetrics().defaultRuleThickness),r.size===q.DISPLAY.size||"display"===e.size?(h=t.fontMetrics().num1,p=c>0?3*d:7*d,f=t.fontMetrics().denom1):(c>0?(h=t.fontMetrics().num2,p=d):(h=t.fontMetrics().num3,p=3*d),f=t.fontMetrics().denom2),u){var x=t.fontMetrics().axisHeight;h-o.depth-(x+.5*c)<p&&(h+=p-(h-o.depth-(x+.5*c))),x-.5*c-(y.height-f)<p&&(f+=p-(x-.5*c-(y.height-f))),m=et.makeVList({positionType:"individualShift",children:[{type:"elem",elem:y,shift:f},{type:"elem",elem:u,shift:-(x-.5*c)},{type:"elem",elem:o,shift:-h}]},t)}else{var w=h-o.depth-(y.height-f);w<p&&(h+=.5*(p-w),f+=.5*(p-w)),m=et.makeVList({positionType:"individualShift",children:[{type:"elem",elem:y,shift:f},{type:"elem",elem:o,shift:-h}]},t)}return n=t.havingStyle(r),m.height*=n.sizeMultiplier/t.sizeMultiplier,m.depth*=n.sizeMultiplier/t.sizeMultiplier,g=r.size===q.DISPLAY.size?t.fontMetrics().delim1:t.fontMetrics().delim2,b=null==e.leftDelim?kt(t,["mopen"]):kn(e.leftDelim,g,!0,t.havingStyle(r),e.mode,["mopen"]),v=e.continued?et.makeSpan([]):null==e.rightDelim?kt(t,["mclose"]):kn(e.rightDelim,g,!0,t.havingStyle(r),e.mode,["mclose"]),et.makeSpan(["mord"].concat(n.sizingClasses(t)),[b,et.makeSpan(["mfrac"],[m]),v],t)},Kn=function(e,t){var n=new Mt.MathNode("mfrac",[It(e.numer,t),It(e.denom,t)]);if(e.hasBarLine){if(e.barSize){var r=Ue(e.barSize,t);n.setAttribute("linethickness",r+"em")}}else n.setAttribute("linethickness","0px");var i=$n(e.size,t.style);if(i.size!==t.style.size){n=new Mt.MathNode("mstyle",[n]);var a=i.size===q.DISPLAY.size?"true":"false";n.setAttribute("displaystyle",a),n.setAttribute("scriptlevel","0")}if(null!=e.leftDelim||null!=e.rightDelim){var o=[];if(null!=e.leftDelim){var s=new Mt.MathNode("mo",[new Mt.TextNode(e.leftDelim.replace("\\",""))]);s.setAttribute("fence","true"),o.push(s)}if(o.push(n),null!=e.rightDelim){var l=new Mt.MathNode("mo",[new Mt.TextNode(e.rightDelim.replace("\\",""))]);l.setAttribute("fence","true"),o.push(l)}return Ot(o)}return n};ut({type:"genfrac",names:["\\cfrac","\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,greediness:2},handler:function(e,t){var n,r=e.parser,i=e.funcName,a=t[0],o=t[1],s=null,l=null,u="auto";switch(i){case"\\cfrac":case"\\dfrac":case"\\frac":case"\\tfrac":n=!0;break;case"\\\\atopfrac":n=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":n=!1,s="(",l=")";break;case"\\\\bracefrac":n=!1,s="\\{",l="\\}";break;case"\\\\brackfrac":n=!1,s="[",l="]";break;default:throw new Error("Unrecognized genfrac command")}switch(i){case"\\cfrac":case"\\dfrac":case"\\dbinom":u="display";break;case"\\tfrac":case"\\tbinom":u="text"}return{type:"genfrac",mode:r.mode,continued:"\\cfrac"===i,numer:a,denom:o,hasBarLine:n,leftDelim:s,rightDelim:l,size:u,barSize:null}},htmlBuilder:Gn,mathmlBuilder:Kn}),ut({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler:function(e){var t,n=e.parser,r=e.funcName,i=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:i}}});var Xn=["display","text","script","scriptscript"],Yn=function(e){var t=null;return e.length>0&&(t="."===(t=e)?null:t),t};ut({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,greediness:6,argTypes:["math","math","size","text","math","math"]},handler:function(e,t){var n,r=e.parser,i=t[4],a=t[5],o="atom"===t[0].type&&"open"===t[0].family?Yn(t[0].text):null,s="atom"===t[1].type&&"close"===t[1].family?Yn(t[1].text):null,l=Ut(t[2],"size"),u=null;n=!!l.isBlank||(u=l.value).number>0;var c="auto",d=t[3];if("ordgroup"===d.type){if(d.body.length>0){var h=Ut(d.body[0],"textord");c=Xn[Number(h.text)]}}else d=Ut(d,"textord"),c=Xn[Number(d.text)];return{type:"genfrac",mode:r.mode,numer:i,denom:a,continued:!1,hasBarLine:n,barSize:u,leftDelim:o,rightDelim:s,size:c}},htmlBuilder:Gn,mathmlBuilder:Kn}),ut({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:Ut(t[0],"size").value,token:r}}}),ut({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:function(e,t){var n=e.parser,r=(e.funcName,t[0]),i=function(e){if(!e)throw new Error("Expected non-null, but got "+String(e));return e}(Ut(t[1],"infix").size),a=t[2],o=i.number>0;return{type:"genfrac",mode:n.mode,numer:r,denom:a,continued:!1,hasBarLine:o,barSize:i,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:Gn,mathmlBuilder:Kn});var Zn=function(e,t){var n,r,i=t.style;"supsub"===e.type?(n=e.sup?St(e.sup,t.havingStyle(i.sup()),t):St(e.sub,t.havingStyle(i.sub()),t),r=Ut(e.base,"horizBrace")):r=Ut(e,"horizBrace");var a,o=St(r.base,t.havingBaseStyle(q.DISPLAY)),s=Ft(r,t);if(r.isOver?(a=et.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:o},{type:"kern",size:.1},{type:"elem",elem:s}]},t)).children[0].children[0].children[1].classes.push("svg-align"):(a=et.makeVList({positionType:"bottom",positionData:o.depth+.1+s.height,children:[{type:"elem",elem:s},{type:"kern",size:.1},{type:"elem",elem:o}]},t)).children[0].children[0].children[0].classes.push("svg-align"),n){var l=et.makeSpan(["mord",r.isOver?"mover":"munder"],[a],t);a=r.isOver?et.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:l},{type:"kern",size:.2},{type:"elem",elem:n}]},t):et.makeVList({positionType:"bottom",positionData:l.depth+.2+n.height+n.depth,children:[{type:"elem",elem:n},{type:"kern",size:.2},{type:"elem",elem:l}]},t)}return et.makeSpan(["mord",r.isOver?"mover":"munder"],[a],t)};ut({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:Zn,mathmlBuilder:function(e,t){var n=Ht(e.label);return new Mt.MathNode(e.isOver?"mover":"munder",[It(e.base,t),n])}}),ut({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:function(e,t){var n=e.parser,r=t[1],i=Ut(t[0],"url").url;return n.settings.isTrusted({command:"\\href",url:i})?{type:"href",mode:n.mode,href:i,body:dt(r)}:n.formatUnsupportedCmd("\\href")},htmlBuilder:function(e,t){var n=bt(e.body,t,!1);return et.makeAnchor(e.href,[],n,t)},mathmlBuilder:function(e,t){var n=Lt(e.body,t);return n instanceof qt||(n=new qt("mrow",[n])),n.setAttribute("href",e.href),n}}),ut({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:function(e,t){var n=e.parser,r=Ut(t[0],"url").url;if(!n.settings.isTrusted({command:"\\url",url:r}))return n.formatUnsupportedCmd("\\url");for(var i=[],a=0;a<r.length;a++){var o=r[a];"~"===o&&(o="\\textasciitilde"),i.push({type:"textord",mode:"text",text:o})}var s={type:"text",mode:n.mode,font:"\\texttt",body:i};return{type:"href",mode:n.mode,href:r,body:dt(s)}}}),ut({type:"html",names:["\\htmlClass","\\htmlId","\\htmlStyle","\\htmlData"],props:{numArgs:2,argTypes:["raw","original"],allowedInText:!0},handler:function(e,t){var n,r=e.parser,i=e.funcName,a=(e.token,Ut(t[0],"raw").string),s=t[1];r.settings.strict&&r.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var l={};switch(i){case"\\htmlClass":l.class=a,n={command:"\\htmlClass",class:a};break;case"\\htmlId":l.id=a,n={command:"\\htmlId",id:a};break;case"\\htmlStyle":l.style=a,n={command:"\\htmlStyle",style:a};break;case"\\htmlData":for(var u=a.split(","),c=0;c<u.length;c++){var d=u[c].split("=");if(2!==d.length)throw new o("Error parsing key-value for \\htmlData");l["data-"+d[0].trim()]=d[1].trim()}n={command:"\\htmlData",attributes:l};break;default:throw new Error("Unrecognized html command")}return r.settings.isTrusted(n)?{type:"html",mode:r.mode,attributes:l,body:dt(s)}:r.formatUnsupportedCmd(i)},htmlBuilder:function(e,t){var n=bt(e.body,t,!1),r=["enclosing"];e.attributes.class&&r.push.apply(r,e.attributes.class.trim().split(/\s+/));var i=et.makeSpan(r,n,t);for(var a in e.attributes)"class"!==a&&e.attributes.hasOwnProperty(a)&&i.setAttribute(a,e.attributes[a]);return i},mathmlBuilder:function(e,t){return Lt(e.body,t)}}),ut({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInText:!0},handler:function(e,t){return{type:"htmlmathml",mode:e.parser.mode,html:dt(t[0]),mathml:dt(t[1])}},htmlBuilder:function(e,t){var n=bt(e.html,t,!1);return et.makeFragment(n)},mathmlBuilder:function(e,t){return Lt(e.mathml,t)}});var Jn=function(e){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(e))return{number:+e,unit:"bp"};var t=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(e);if(!t)throw new o("Invalid size: '"+e+"' in \\includegraphics");var n={number:+(t[1]+t[2]),unit:t[3]};if(!Fe(n))throw new o("Invalid unit: '"+n.unit+"' in \\includegraphics.");return n};ut({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:function(e,t,n){var r=e.parser,i={number:0,unit:"em"},a={number:.9,unit:"em"},s={number:0,unit:"em"},l="";if(n[0])for(var u=Ut(n[0],"raw").string.split(","),c=0;c<u.length;c++){var d=u[c].split("=");if(2===d.length){var h=d[1].trim();switch(d[0].trim()){case"alt":l=h;break;case"width":i=Jn(h);break;case"height":a=Jn(h);break;case"totalheight":s=Jn(h);break;default:throw new o("Invalid key: '"+d[0]+"' in \\includegraphics.")}}}var p=Ut(t[0],"url").url;return""===l&&(l=(l=(l=p).replace(/^.*[\\/]/,"")).substring(0,l.lastIndexOf("."))),r.settings.isTrusted({command:"\\includegraphics",url:p})?{type:"includegraphics",mode:r.mode,alt:l,width:i,height:a,totalheight:s,src:p}:r.formatUnsupportedCmd("\\includegraphics")},htmlBuilder:function(e,t){var n=Ue(e.height,t),r=0;e.totalheight.number>0&&(r=Ue(e.totalheight,t)-n,r=Number(r.toFixed(2)));var i=0;e.width.number>0&&(i=Ue(e.width,t));var a={height:n+r+"em"};i>0&&(a.width=i+"em"),r>0&&(a.verticalAlign=-r+"em");var o=new P(e.src,e.alt,a);return o.height=n,o.depth=r,o},mathmlBuilder:function(e,t){var n=new Mt.MathNode("mglyph",[]);n.setAttribute("alt",e.alt);var r=Ue(e.height,t),i=0;if(e.totalheight.number>0&&(i=(i=Ue(e.totalheight,t)-r).toFixed(2),n.setAttribute("valign","-"+i+"em")),n.setAttribute("height",r+i+"em"),e.width.number>0){var a=Ue(e.width,t);n.setAttribute("width",a+"em")}return n.setAttribute("src",e.src),n}}),ut({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,i=Ut(t[0],"size");if(n.settings.strict){var a="m"===r[1],o="mu"===i.value.unit;a?(o||n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" supports only mu units, not "+i.value.unit+" units"),"math"!==n.mode&&n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" works only in math mode")):o&&n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" doesn't support mu units")}return{type:"kern",mode:n.mode,dimension:i.value}},htmlBuilder:function(e,t){return et.makeGlue(e.dimension,t)},mathmlBuilder:function(e,t){var n=Ue(e.dimension,t);return new Mt.SpaceNode(n)}}),ut({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:function(e,t){var n=e.parser,r=e.funcName,i=t[0];return{type:"lap",mode:n.mode,alignment:r.slice(5),body:i}},htmlBuilder:function(e,t){var n;"clap"===e.alignment?(n=et.makeSpan([],[St(e.body,t)]),n=et.makeSpan(["inner"],[n],t)):n=et.makeSpan(["inner"],[St(e.body,t)]);var r=et.makeSpan(["fix"],[]),i=et.makeSpan([e.alignment],[n,r],t),a=et.makeSpan(["strut"]);return a.style.height=i.height+i.depth+"em",a.style.verticalAlign=-i.depth+"em",i.children.unshift(a),i=et.makeSpan(["thinbox"],[i],t),et.makeSpan(["mord","vbox"],[i],t)},mathmlBuilder:function(e,t){var n=new Mt.MathNode("mpadded",[It(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}}),ut({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler:function(e,t){var n=e.funcName,r=e.parser,i=r.mode;r.switchMode("math");var a="\\("===n?"\\)":"$",o=r.parseExpression(!1,a);return r.expect(a),r.switchMode(i),{type:"styling",mode:r.mode,style:"text",body:o}}}),ut({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler:function(e,t){throw new o("Mismatched "+e.funcName)}});var er=function(e,t){switch(t.style.size){case q.DISPLAY.size:return e.display;case q.TEXT.size:return e.text;case q.SCRIPT.size:return e.script;case q.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}};ut({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4},handler:function(e,t){return{type:"mathchoice",mode:e.parser.mode,display:dt(t[0]),text:dt(t[1]),script:dt(t[2]),scriptscript:dt(t[3])}},htmlBuilder:function(e,t){var n=er(e,t),r=bt(n,t,!1);return et.makeFragment(r)},mathmlBuilder:function(e,t){var n=er(e,t);return Lt(n,t)}});var tr=function(e,t,n,r,i,a,o){var s,l,u;if(e=et.makeSpan([],[e]),t){var c=St(t,r.havingStyle(i.sup()),r);l={elem:c,kern:Math.max(r.fontMetrics().bigOpSpacing1,r.fontMetrics().bigOpSpacing3-c.depth)}}if(n){var d=St(n,r.havingStyle(i.sub()),r);s={elem:d,kern:Math.max(r.fontMetrics().bigOpSpacing2,r.fontMetrics().bigOpSpacing4-d.height)}}if(l&&s){var h=r.fontMetrics().bigOpSpacing5+s.elem.height+s.elem.depth+s.kern+e.depth+o;u=et.makeVList({positionType:"bottom",positionData:h,children:[{type:"kern",size:r.fontMetrics().bigOpSpacing5},{type:"elem",elem:s.elem,marginLeft:-a+"em"},{type:"kern",size:s.kern},{type:"elem",elem:e},{type:"kern",size:l.kern},{type:"elem",elem:l.elem,marginLeft:a+"em"},{type:"kern",size:r.fontMetrics().bigOpSpacing5}]},r)}else if(s){var p=e.height-o;u=et.makeVList({positionType:"top",positionData:p,children:[{type:"kern",size:r.fontMetrics().bigOpSpacing5},{type:"elem",elem:s.elem,marginLeft:-a+"em"},{type:"kern",size:s.kern},{type:"elem",elem:e}]},r)}else{if(!l)return e;var f=e.depth+o;u=et.makeVList({positionType:"bottom",positionData:f,children:[{type:"elem",elem:e},{type:"kern",size:l.kern},{type:"elem",elem:l.elem,marginLeft:a+"em"},{type:"kern",size:r.fontMetrics().bigOpSpacing5}]},r)}return et.makeSpan(["mop","op-limits"],[u],r)},nr=["\\smallint"],rr=function(e,t){var n,r,i,a=!1;"supsub"===e.type?(n=e.sup,r=e.sub,i=Ut(e.base,"op"),a=!0):i=Ut(e,"op");var o,s=t.style,l=!1;if(s.size===q.DISPLAY.size&&i.symbol&&!d(nr,i.name)&&(l=!0),i.symbol){var u=l?"Size2-Regular":"Size1-Regular",c="";if("\\oiint"!==i.name&&"\\oiiint"!==i.name||(c=i.name.substr(1),i.name="oiint"===c?"\\iint":"\\iiint"),o=et.makeSymbol(i.name,u,"math",t,["mop","op-symbol",l?"large-op":"small-op"]),c.length>0){var h=o.italic,p=et.staticSvg(c+"Size"+(l?"2":"1"),t);o=et.makeVList({positionType:"individualShift",children:[{type:"elem",elem:o,shift:0},{type:"elem",elem:p,shift:l?.08:0}]},t),i.name="\\"+c,o.classes.unshift("mop"),o.italic=h}}else if(i.body){var f=bt(i.body,t,!0);1===f.length&&f[0]instanceof H?(o=f[0]).classes[0]="mop":o=et.makeSpan(["mop"],et.tryCombineChars(f),t)}else{for(var m=[],g=1;g<i.name.length;g++)m.push(et.mathsym(i.name[g],i.mode,t));o=et.makeSpan(["mop"],m,t)}var b=0,v=0;return(o instanceof H||"\\oiint"===i.name||"\\oiiint"===i.name)&&!i.suppressBaseShift&&(b=(o.height-o.depth)/2-t.fontMetrics().axisHeight,v=o.italic),a?tr(o,n,r,t,s,v,b):(b&&(o.style.position="relative",o.style.top=b+"em"),o)},ir=function(e,t){var n;if(e.symbol)n=new qt("mo",[Nt(e.name,e.mode)]),d(nr,e.name)&&n.setAttribute("largeop","false");else if(e.body)n=new qt("mo",Dt(e.body,t));else{n=new qt("mi",[new At(e.name.slice(1))]);var r=new qt("mo",[Nt("⁡","text")]);n=e.parentIsSupSub?new qt("mo",[n,r]):Et([n,r])}return n},ar={"∏":"\\prod","∐":"\\coprod","∑":"\\sum","⋀":"\\bigwedge","⋁":"\\bigvee","⋂":"\\bigcap","⋃":"\\bigcup","⨀":"\\bigodot","⨁":"\\bigoplus","⨂":"\\bigotimes","⨄":"\\biguplus","⨆":"\\bigsqcup"};ut({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","∏","∐","∑","⋀","⋁","⋂","⋃","⨀","⨁","⨂","⨄","⨆"],props:{numArgs:0},handler:function(e,t){var n=e.parser,r=e.funcName;return 1===r.length&&(r=ar[r]),{type:"op",mode:n.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:r}},htmlBuilder:rr,mathmlBuilder:ir}),ut({type:"op",names:["\\mathop"],props:{numArgs:1},handler:function(e,t){var n=e.parser,r=t[0];return{type:"op",mode:n.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:dt(r)}},htmlBuilder:rr,mathmlBuilder:ir});var or={"∫":"\\int","∬":"\\iint","∭":"\\iiint","∮":"\\oint","∯":"\\oiint","∰":"\\oiiint"};ut({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:function(e){var t=e.parser,n=e.funcName;return{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:n}},htmlBuilder:rr,mathmlBuilder:ir}),ut({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler:function(e){var t=e.parser,n=e.funcName;return{type:"op",mode:t.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:n}},htmlBuilder:rr,mathmlBuilder:ir}),ut({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","∫","∬","∭","∮","∯","∰"],props:{numArgs:0},handler:function(e){var t=e.parser,n=e.funcName;return 1===n.length&&(n=or[n]),{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:n}},htmlBuilder:rr,mathmlBuilder:ir});var sr=function(e,t){var n,r,i,a,o=!1;if("supsub"===e.type?(n=e.sup,r=e.sub,i=Ut(e.base,"operatorname"),o=!0):i=Ut(e,"operatorname"),i.body.length>0){for(var s=i.body.map(function(e){var t=e.text;return"string"==typeof t?{type:"textord",mode:e.mode,text:t}:e}),l=bt(s,t.withFont("mathrm"),!0),u=0;u<l.length;u++){var c=l[u];c instanceof H&&(c.text=c.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}a=et.makeSpan(["mop"],l,t)}else a=et.makeSpan(["mop"],[],t);return o?tr(a,n,r,t,t.style,0,0):a};function lr(e,t,n){for(var r=bt(e,t,!1),i=t.sizeMultiplier/n.sizeMultiplier,a=0;a<r.length;a++){var o=r[a].classes.indexOf("sizing");o<0?Array.prototype.push.apply(r[a].classes,t.sizingClasses(n)):r[a].classes[o+1]==="reset-size"+t.size&&(r[a].classes[o+1]="reset-size"+n.size),r[a].height*=i,r[a].depth*=i}return et.makeFragment(r)}ut({type:"operatorname",names:["\\operatorname","\\operatorname*"],props:{numArgs:1},handler:function(e,t){var n=e.parser,r=e.funcName,i=t[0];return{type:"operatorname",mode:n.mode,body:dt(i),alwaysHandleSupSub:"\\operatorname*"===r,limits:!1,parentIsSupSub:!1}},htmlBuilder:sr,mathmlBuilder:function(e,t){for(var n=Dt(e.body,t.withFont("mathrm")),r=!0,i=0;i<n.length;i++){var a=n[i];if(a instanceof Mt.SpaceNode);else if(a instanceof Mt.MathNode)switch(a.type){case"mi":case"mn":case"ms":case"mspace":case"mtext":break;case"mo":var o=a.children[0];1===a.children.length&&o instanceof Mt.TextNode?o.text=o.text.replace(/\u2212/,"-").replace(/\u2217/,"*"):r=!1;break;default:r=!1}else r=!1}if(r){var s=n.map(function(e){return e.toText()}).join("");n=[new Mt.TextNode(s)]}var l=new Mt.MathNode("mi",n);l.setAttribute("mathvariant","normal");var u=new Mt.MathNode("mo",[Nt("⁡","text")]);return e.parentIsSupSub?new Mt.MathNode("mo",[l,u]):Mt.newDocumentFragment([l,u])}}),ct({type:"ordgroup",htmlBuilder:function(e,t){return e.semisimple?et.makeFragment(bt(e.body,t,!1)):et.makeSpan(["mord"],bt(e.body,t,!0),t)},mathmlBuilder:function(e,t){return Lt(e.body,t,!0)}}),ut({type:"overline",names:["\\overline"],props:{numArgs:1},handler:function(e,t){var n=e.parser,r=t[0];return{type:"overline",mode:n.mode,body:r}},htmlBuilder:function(e,t){var n=St(e.body,t.havingCrampedStyle()),r=et.makeLineSpan("overline-line",t),i=t.fontMetrics().defaultRuleThickness,a=et.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n},{type:"kern",size:3*i},{type:"elem",elem:r},{type:"kern",size:i}]},t);return et.makeSpan(["mord","overline"],[a],t)},mathmlBuilder:function(e,t){var n=new Mt.MathNode("mo",[new Mt.TextNode("‾")]);n.setAttribute("stretchy","true");var r=new Mt.MathNode("mover",[It(e.body,t),n]);return r.setAttribute("accent","true"),r}}),ut({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:function(e,t){var n=e.parser,r=t[0];return{type:"phantom",mode:n.mode,body:dt(r)}},htmlBuilder:function(e,t){var n=bt(e.body,t.withPhantom(),!1);return et.makeFragment(n)},mathmlBuilder:function(e,t){var n=Dt(e.body,t);return new Mt.MathNode("mphantom",n)}}),ut({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:!0},handler:function(e,t){var n=e.parser,r=t[0];return{type:"hphantom",mode:n.mode,body:r}},htmlBuilder:function(e,t){var n=et.makeSpan([],[St(e.body,t.withPhantom())]);if(n.height=0,n.depth=0,n.children)for(var r=0;r<n.children.length;r++)n.children[r].height=0,n.children[r].depth=0;return n=et.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n}]},t),et.makeSpan(["mord"],[n],t)},mathmlBuilder:function(e,t){var n=Dt(dt(e.body),t),r=new Mt.MathNode("mphantom",n),i=new Mt.MathNode("mpadded",[r]);return i.setAttribute("height","0px"),i.setAttribute("depth","0px"),i}}),ut({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:function(e,t){var n=e.parser,r=t[0];return{type:"vphantom",mode:n.mode,body:r}},htmlBuilder:function(e,t){var n=et.makeSpan(["inner"],[St(e.body,t.withPhantom())]),r=et.makeSpan(["fix"],[]);return et.makeSpan(["mord","rlap"],[n,r],t)},mathmlBuilder:function(e,t){var n=Dt(dt(e.body),t),r=new Mt.MathNode("mphantom",n),i=new Mt.MathNode("mpadded",[r]);return i.setAttribute("width","0px"),i}}),ut({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler:function(e,t){var n=e.parser,r=Ut(t[0],"size").value,i=t[1];return{type:"raisebox",mode:n.mode,dy:r,body:i}},htmlBuilder:function(e,t){var n=St(e.body,t),r=Ue(e.dy,t);return et.makeVList({positionType:"shift",positionData:-r,children:[{type:"elem",elem:n}]},t)},mathmlBuilder:function(e,t){var n=new Mt.MathNode("mpadded",[It(e.body,t)]),r=e.dy.number+e.dy.unit;return n.setAttribute("voffset",r),n}}),ut({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,argTypes:["size","size","size"]},handler:function(e,t,n){var r=e.parser,i=n[0],a=Ut(t[0],"size"),o=Ut(t[1],"size");return{type:"rule",mode:r.mode,shift:i&&Ut(i,"size").value,width:a.value,height:o.value}},htmlBuilder:function(e,t){var n=et.makeSpan(["mord","rule"],[],t),r=Ue(e.width,t),i=Ue(e.height,t),a=e.shift?Ue(e.shift,t):0;return n.style.borderRightWidth=r+"em",n.style.borderTopWidth=i+"em",n.style.bottom=a+"em",n.width=r,n.height=i+a,n.depth=-a,n.maxFontSize=1.125*i*t.sizeMultiplier,n},mathmlBuilder:function(e,t){var n=Ue(e.width,t),r=Ue(e.height,t),i=e.shift?Ue(e.shift,t):0,a=t.color&&t.getColor()||"black",o=new Mt.MathNode("mspace");o.setAttribute("mathbackground",a),o.setAttribute("width",n+"em"),o.setAttribute("height",r+"em");var s=new Mt.MathNode("mpadded",[o]);return i>=0?s.setAttribute("height","+"+i+"em"):(s.setAttribute("height",i+"em"),s.setAttribute("depth","+"+-i+"em")),s.setAttribute("voffset",i+"em"),s}});var ur=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"];ut({type:"sizing",names:ur,props:{numArgs:0,allowedInText:!0},handler:function(e,t){var n=e.breakOnTokenText,r=e.funcName,i=e.parser,a=i.parseExpression(!1,n);return{type:"sizing",mode:i.mode,size:ur.indexOf(r)+1,body:a}},htmlBuilder:function(e,t){var n=t.havingSize(e.size);return lr(e.body,n,t)},mathmlBuilder:function(e,t){var n=t.havingSize(e.size),r=Dt(e.body,n),i=new Mt.MathNode("mstyle",r);return i.setAttribute("mathsize",n.sizeMultiplier+"em"),i}}),ut({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:function(e,t,n){var r=e.parser,i=!1,a=!1,o=n[0]&&Ut(n[0],"ordgroup");if(o)for(var s="",l=0;l<o.body.length;++l)if("t"===(s=o.body[l].text))i=!0;else{if("b"!==s){i=!1,a=!1;break}a=!0}else i=!0,a=!0;var u=t[0];return{type:"smash",mode:r.mode,body:u,smashHeight:i,smashDepth:a}},htmlBuilder:function(e,t){var n=et.makeSpan([],[St(e.body,t)]);if(!e.smashHeight&&!e.smashDepth)return n;if(e.smashHeight&&(n.height=0,n.children))for(var r=0;r<n.children.length;r++)n.children[r].height=0;if(e.smashDepth&&(n.depth=0,n.children))for(var i=0;i<n.children.length;i++)n.children[i].depth=0;var a=et.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n}]},t);return et.makeSpan(["mord"],[a],t)},mathmlBuilder:function(e,t){var n=new Mt.MathNode("mpadded",[It(e.body,t)]);return e.smashHeight&&n.setAttribute("height","0px"),e.smashDepth&&n.setAttribute("depth","0px"),n}}),ut({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler:function(e,t,n){var r=e.parser,i=n[0],a=t[0];return{type:"sqrt",mode:r.mode,body:a,index:i}},htmlBuilder:function(e,t){var n=St(e.body,t.havingCrampedStyle());0===n.height&&(n.height=t.fontMetrics().xHeight),n=et.wrapFragment(n,t);var r=t.fontMetrics().defaultRuleThickness,i=r;t.style.id<q.TEXT.id&&(i=t.fontMetrics().xHeight);var a=r+i/4,o=function(e,t){var n,r,i=t.havingBaseSizing(),a=yn("\\surd",e*i.sizeMultiplier,bn,i),o=i.sizeMultiplier,s=Math.max(0,t.minRuleThickness-t.fontMetrics().sqrtRuleThickness),l=0,u=0,c=0;return"small"===a.type?(e<1?o=1:e<1.4&&(o=.7),u=(1+s)/o,(n=cn("sqrtMain",l=(1+s+un)/o,c=1e3+1e3*s+80,s,t)).style.minWidth="0.853em",r=.833/o):"large"===a.type?(c=1080*fn[a.size],u=(fn[a.size]+s)/o,l=(fn[a.size]+s+un)/o,(n=cn("sqrtSize"+a.size,l,c,s,t)).style.minWidth="1.02em",r=1/o):(l=e+s+un,u=e+s,c=Math.floor(1e3*e+s)+80,(n=cn("sqrtTall",l,c,s,t)).style.minWidth="0.742em",r=1.056),n.height=u,n.style.height=l+"em",{span:n,advanceWidth:r,ruleWidth:(t.fontMetrics().sqrtRuleThickness+s)*o}}(n.height+n.depth+a+r,t),s=o.span,l=o.ruleWidth,u=o.advanceWidth,c=s.height-l;c>n.height+n.depth+a&&(a=(a+c-n.height-n.depth)/2);var d=s.height-n.height-a-l;n.style.paddingLeft=u+"em";var h=et.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n,wrapperClasses:["svg-align"]},{type:"kern",size:-(n.height+d)},{type:"elem",elem:s},{type:"kern",size:l}]},t);if(e.index){var p=t.havingStyle(q.SCRIPTSCRIPT),f=St(e.index,p,t),m=.6*(h.height-h.depth),g=et.makeVList({positionType:"shift",positionData:-m,children:[{type:"elem",elem:f}]},t),b=et.makeSpan(["root"],[g]);return et.makeSpan(["mord","sqrt"],[b,h],t)}return et.makeSpan(["mord","sqrt"],[h],t)},mathmlBuilder:function(e,t){var n=e.body,r=e.index;return r?new Mt.MathNode("mroot",[It(n,t),It(r,t)]):new Mt.MathNode("msqrt",[It(n,t)])}});var cr={display:q.DISPLAY,text:q.TEXT,script:q.SCRIPT,scriptscript:q.SCRIPTSCRIPT};ut({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0},handler:function(e,t){var n=e.breakOnTokenText,r=e.funcName,i=e.parser,a=i.parseExpression(!0,n),o=r.slice(1,r.length-5);return{type:"styling",mode:i.mode,style:o,body:a}},htmlBuilder:function(e,t){var n=cr[e.style],r=t.havingStyle(n).withFont("");return lr(e.body,r,t)},mathmlBuilder:function(e,t){var n=cr[e.style],r=t.havingStyle(n),i=Dt(e.body,r),a=new Mt.MathNode("mstyle",i),o={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]}[e.style];return a.setAttribute("scriptlevel",o[0]),a.setAttribute("displaystyle",o[1]),a}}),ct({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===q.DISPLAY.size||n.alwaysHandleSupSub)?rr:null:"operatorname"===n.type?n.alwaysHandleSupSub&&(t.style.size===q.DISPLAY.size||n.limits)?sr:null:"accent"===n.type?g(n.base)?Vt:null:"horizBrace"===n.type&&!e.sub===n.isOver?Zn:null:null}(e,t);if(n)return n(e,t);var r,i,a,o=e.base,s=e.sup,l=e.sub,u=St(o,t),c=t.fontMetrics(),d=0,h=0,p=o&&g(o);if(s){var f=t.havingStyle(t.style.sup());r=St(s,f,t),p||(d=u.height-f.fontMetrics().supDrop*f.sizeMultiplier/t.sizeMultiplier)}if(l){var m=t.havingStyle(t.style.sub());i=St(l,m,t),p||(h=u.depth+m.fontMetrics().subDrop*m.sizeMultiplier/t.sizeMultiplier)}a=t.style===q.DISPLAY?c.sup1:t.style.cramped?c.sup3:c.sup2;var b,v=t.sizeMultiplier,y=.5/c.ptPerEm/v+"em",x=null;if(i){var w=e.base&&"op"===e.base.type&&e.base.name&&("\\oiint"===e.base.name||"\\oiiint"===e.base.name);(u instanceof H||w)&&(x=-u.italic+"em")}if(r&&i){d=Math.max(d,a,r.depth+.25*c.xHeight),h=Math.max(h,c.sub2);var k=4*c.defaultRuleThickness;if(d-r.depth-(i.height-h)<k){h=k-(d-r.depth)+i.height;var S=.8*c.xHeight-(d-r.depth);S>0&&(d+=S,h-=S)}b=et.makeVList({positionType:"individualShift",children:[{type:"elem",elem:i,shift:h,marginRight:y,marginLeft:x},{type:"elem",elem:r,shift:-d,marginRight:y}]},t)}else if(i){h=Math.max(h,c.sub1,i.height-.8*c.xHeight),b=et.makeVList({positionType:"shift",positionData:h,children:[{type:"elem",elem:i,marginLeft:x,marginRight:y}]},t)}else{if(!r)throw new Error("supsub must have either sup or sub.");d=Math.max(d,a,r.depth+.25*c.xHeight),b=et.makeVList({positionType:"shift",positionData:-d,children:[{type:"elem",elem:r,marginRight:y}]},t)}var C=wt(u,"right")||"mord";return et.makeSpan([C],[u,et.makeSpan(["msupsub"],[b])],t)},mathmlBuilder:function(e,t){var n,r=!1;e.base&&"horizBrace"===e.base.type&&!!e.sup===e.base.isOver&&(r=!0,n=e.base.isOver),!e.base||"op"!==e.base.type&&"operatorname"!==e.base.type||(e.base.parentIsSupSub=!0);var i,a=[It(e.base,t)];if(e.sub&&a.push(It(e.sub,t)),e.sup&&a.push(It(e.sup,t)),r)i=n?"mover":"munder";else if(e.sub)if(e.sup){var o=e.base;i=o&&"op"===o.type&&o.limits&&t.style===q.DISPLAY||o&&"operatorname"===o.type&&o.alwaysHandleSupSub&&(t.style===q.DISPLAY||o.limits)?"munderover":"msubsup"}else{var s=e.base;i=s&&"op"===s.type&&s.limits&&(t.style===q.DISPLAY||s.alwaysHandleSupSub)||s&&"operatorname"===s.type&&s.alwaysHandleSupSub&&(s.limits||t.style===q.DISPLAY)?"munder":"msub"}else{var l=e.base;i=l&&"op"===l.type&&l.limits&&(t.style===q.DISPLAY||l.alwaysHandleSupSub)||l&&"operatorname"===l.type&&l.alwaysHandleSupSub&&(l.limits||t.style===q.DISPLAY)?"mover":"msup"}return new Mt.MathNode(i,a)}}),ct({type:"atom",htmlBuilder:function(e,t){return et.mathsym(e.text,e.mode,t,["m"+e.family])},mathmlBuilder:function(e,t){var n=new Mt.MathNode("mo",[Nt(e.text,e.mode)]);if("bin"===e.family){var r=zt(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 dr={mi:"italic",mn:"normal",mtext:"normal"};ct({type:"mathord",htmlBuilder:function(e,t){return et.makeOrd(e,t,"mathord")},mathmlBuilder:function(e,t){var n=new Mt.MathNode("mi",[Nt(e.text,e.mode,t)]),r=zt(e,t)||"italic";return r!==dr[n.type]&&n.setAttribute("mathvariant",r),n}}),ct({type:"textord",htmlBuilder:function(e,t){return et.makeOrd(e,t,"textord")},mathmlBuilder:function(e,t){var n,r=Nt(e.text,e.mode,t),i=zt(e,t)||"normal";return n="text"===e.mode?new Mt.MathNode("mtext",[r]):/[0-9]/.test(e.text)?new Mt.MathNode("mn",[r]):"\\prime"===e.text?new Mt.MathNode("mo",[r]):new Mt.MathNode("mi",[r]),i!==dr[n.type]&&n.setAttribute("mathvariant",i),n}});var hr={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},pr={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};ct({type:"spacing",htmlBuilder:function(e,t){if(pr.hasOwnProperty(e.text)){var n=pr[e.text].className||"";if("text"===e.mode){var r=et.makeOrd(e,t,"textord");return r.classes.push(n),r}return et.makeSpan(["mspace",n],[et.mathsym(e.text,e.mode,t)],t)}if(hr.hasOwnProperty(e.text))return et.makeSpan(["mspace",hr[e.text]],[],t);throw new o('Unknown type of space "'+e.text+'"')},mathmlBuilder:function(e,t){if(!pr.hasOwnProperty(e.text)){if(hr.hasOwnProperty(e.text))return new Mt.MathNode("mspace");throw new o('Unknown type of space "'+e.text+'"')}return new Mt.MathNode("mtext",[new Mt.TextNode(" ")])}});var fr=function(){var e=new Mt.MathNode("mtd",[]);return e.setAttribute("width","50%"),e};ct({type:"tag",mathmlBuilder:function(e,t){var n=new Mt.MathNode("mtable",[new Mt.MathNode("mtr",[fr(),new Mt.MathNode("mtd",[Lt(e.body,t)]),fr(),new Mt.MathNode("mtd",[Lt(e.tag,t)])])]);return n.setAttribute("width","100%"),n}});var mr={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},gr={"\\textbf":"textbf","\\textmd":"textmd"},br={"\\textit":"textit","\\textup":"textup"},vr=function(e,t){var n=e.font;return n?mr[n]?t.withTextFontFamily(mr[n]):gr[n]?t.withTextFontWeight(gr[n]):t.withTextFontShape(br[n]):t};ut({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,i=t[0];return{type:"text",mode:n.mode,body:dt(i),font:r}},htmlBuilder:function(e,t){var n=vr(e,t),r=bt(e.body,n,!0);return et.makeSpan(["mord","text"],et.tryCombineChars(r),n)},mathmlBuilder:function(e,t){var n=vr(e,t);return Lt(e.body,n)}}),ut({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=St(e.body,t),r=et.makeLineSpan("underline-line",t),i=t.fontMetrics().defaultRuleThickness,a=et.makeVList({positionType:"top",positionData:n.height,children:[{type:"kern",size:i},{type:"elem",elem:r},{type:"kern",size:3*i},{type:"elem",elem:n}]},t);return et.makeSpan(["mord","underline"],[a],t)},mathmlBuilder:function(e,t){var n=new Mt.MathNode("mo",[new Mt.TextNode("‾")]);n.setAttribute("stretchy","true");var r=new Mt.MathNode("munder",[It(e.body,t),n]);return r.setAttribute("accentunder","true"),r}}),ut({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler:function(e,t,n){throw new o("\\verb ended by end of line instead of matching delimiter")},htmlBuilder:function(e,t){for(var n=yr(e),r=[],i=t.havingStyle(t.style.text()),a=0;a<n.length;a++){var o=n[a];"~"===o&&(o="\\textasciitilde"),r.push(et.makeSymbol(o,"Typewriter-Regular",e.mode,i,["mord","texttt"]))}return et.makeSpan(["mord","text"].concat(i.sizingClasses(t)),et.tryCombineChars(r),i)},mathmlBuilder:function(e,t){var n=new Mt.TextNode(yr(e)),r=new Mt.MathNode("mtext",[n]);return r.setAttribute("mathvariant","monospace"),r}});var yr=function(e){return e.body.replace(/ /g,e.star?"␣":" ")},xr=ot,wr="[ \r\n\t]",kr="\\\\[a-zA-Z@]+",Sr=""+kr+wr+"*",Cr=new RegExp("^("+kr+")"+wr+"*$"),Tr="[̀-ͯ]",Er=new RegExp(Tr+"+$"),qr="("+wr+"+)|([!-\\[\\]-‧‪-퟿豈-￿]"+Tr+"*|[\ud800-\udbff][\udc00-\udfff]"+Tr+"*|\\\\verb\\*([^]).*?\\3|\\\\verb([^*a-zA-Z]).*?\\4|\\\\operatorname\\*|"+Sr+"|\\\\[^\ud800-\udfff])",Ar=function(){function e(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(qr,"g"),this.catcodes={"%":14}}var t=e.prototype;return t.setCatcode=function(e,t){this.catcodes[e]=t},t.lex=function(){var e=this.input,t=this.tokenRegex.lastIndex;if(t===e.length)return new i("EOF",new r(this,t,t));var n=this.tokenRegex.exec(e);if(null===n||n.index!==t)throw new o("Unexpected character: '"+e[t]+"'",new i(e[t],new r(this,t,t+1)));var a=n[2]||" ";if(14===this.catcodes[a]){var s=e.indexOf("\n",this.tokenRegex.lastIndex);return-1===s?(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=s+1,this.lex()}var l=a.match(Cr);return l&&(a=l[1]),new i(a,new r(this,t,this.tokenRegex.lastIndex))},e}(),Mr=function(){function e(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=[]}var t=e.prototype;return t.beginGroup=function(){this.undefStack.push({})},t.endGroup=function(){if(0===this.undefStack.length)throw new o("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var e=this.undefStack.pop();for(var t in e)e.hasOwnProperty(t)&&(void 0===e[t]?delete this.current[t]:this.current[t]=e[t])},t.has=function(e){return this.current.hasOwnProperty(e)||this.builtins.hasOwnProperty(e)},t.get=function(e){return this.current.hasOwnProperty(e)?this.current[e]:this.builtins[e]},t.set=function(e,t,n){if(void 0===n&&(n=!1),n){for(var r=0;r<this.undefStack.length;r++)delete this.undefStack[r][e];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][e]=t)}else{var i=this.undefStack[this.undefStack.length-1];i&&!i.hasOwnProperty(e)&&(i[e]=this.current[e])}this.current[e]=t},e}(),Nr={},Or=Nr;function zr(e,t){Nr[e]=t}zr("\\noexpand",function(e){var t=e.popToken();return e.isExpandable(t.text)&&(t.noexpand=!0,t.treatAsRelax=!0),{tokens:[t],numArgs:0}}),zr("\\expandafter",function(e){var t=e.popToken();return e.expandOnce(!0),{tokens:[t],numArgs:0}}),zr("\\@firstoftwo",function(e){return{tokens:e.consumeArgs(2)[0],numArgs:0}}),zr("\\@secondoftwo",function(e){return{tokens:e.consumeArgs(2)[1],numArgs:0}}),zr("\\@ifnextchar",function(e){var t=e.consumeArgs(3);e.consumeSpaces();var n=e.future();return 1===t[0].length&&t[0][0].text===n.text?{tokens:t[1],numArgs:0}:{tokens:t[2],numArgs:0}}),zr("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}"),zr("\\TextOrMath",function(e){var t=e.consumeArgs(2);return"text"===e.mode?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}});var Dr={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};zr("\\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 o("\\char` missing argument");r=n.text.charCodeAt(0)}else t=10;if(t){if(null==(r=Dr[n.text])||r>=t)throw new o("Invalid base-"+t+" digit "+n.text);for(var i;null!=(i=Dr[e.future().text])&&i<t;)r*=t,r+=i,e.popToken()}return"\\@char{"+r+"}"});var Lr=function(e,t,n){var r=e.consumeArgs(1)[0];if(1!==r.length)throw new o("\\newcommand's first argument must be a macro name");var i=r[0].text,a=e.isDefined(i);if(a&&!t)throw new o("\\newcommand{"+i+"} attempting to redefine "+i+"; use \\renewcommand");if(!a&&!n)throw new o("\\renewcommand{"+i+"} when command "+i+" does not yet exist; use \\newcommand");var s=0;if(1===(r=e.consumeArgs(1)[0]).length&&"["===r[0].text){for(var l="",u=e.expandNextToken();"]"!==u.text&&"EOF"!==u.text;)l+=u.text,u=e.expandNextToken();if(!l.match(/^\s*[0-9]+\s*$/))throw new o("Invalid number of arguments: "+l);s=parseInt(l),r=e.consumeArgs(1)[0]}return e.macros.set(i,{tokens:r,numArgs:s}),""};zr("\\newcommand",function(e){return Lr(e,!1,!0)}),zr("\\renewcommand",function(e){return Lr(e,!0,!1)}),zr("\\providecommand",function(e){return Lr(e,!0,!0)}),zr("\\message",function(e){var t=e.consumeArgs(1)[0];return console.log(t.reverse().map(function(e){return e.text}).join("")),""}),zr("\\errmessage",function(e){var t=e.consumeArgs(1)[0];return console.error(t.reverse().map(function(e){return e.text}).join("")),""}),zr("\\show",function(e){var t=e.popToken(),n=t.text;return console.log(t,e.macros.get(n),xr[n],ee.math[n],ee.text[n]),""}),zr("\\bgroup","{"),zr("\\egroup","}"),zr("\\lq","`"),zr("\\rq","'"),zr("\\aa","\\r a"),zr("\\AA","\\r A"),zr("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`©}"),zr("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}"),zr("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}"),zr("ℬ","\\mathscr{B}"),zr("ℰ","\\mathscr{E}"),zr("ℱ","\\mathscr{F}"),zr("ℋ","\\mathscr{H}"),zr("ℐ","\\mathscr{I}"),zr("ℒ","\\mathscr{L}"),zr("ℳ","\\mathscr{M}"),zr("ℛ","\\mathscr{R}"),zr("ℭ","\\mathfrak{C}"),zr("ℌ","\\mathfrak{H}"),zr("ℨ","\\mathfrak{Z}"),zr("\\Bbbk","\\Bbb{k}"),zr("·","\\cdotp"),zr("\\llap","\\mathllap{\\textrm{#1}}"),zr("\\rlap","\\mathrlap{\\textrm{#1}}"),zr("\\clap","\\mathclap{\\textrm{#1}}"),zr("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}'),zr("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}"),zr("\\ne","\\neq"),zr("≠","\\neq"),zr("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}"),zr("∉","\\notin"),zr("≘","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}"),zr("≙","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}"),zr("≚","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}"),zr("≛","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}"),zr("≝","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}"),zr("≞","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}"),zr("≟","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}"),zr("⟂","\\perp"),zr("‼","\\mathclose{!\\mkern-0.8mu!}"),zr("∌","\\notni"),zr("⌜","\\ulcorner"),zr("⌝","\\urcorner"),zr("⌞","\\llcorner"),zr("⌟","\\lrcorner"),zr("©","\\copyright"),zr("®","\\textregistered"),zr("️","\\textregistered"),zr("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}'),zr("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}'),zr("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}'),zr("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}'),zr("\\vdots","\\mathord{\\varvdots\\rule{0pt}{15pt}}"),zr("⋮","\\vdots"),zr("\\varGamma","\\mathit{\\Gamma}"),zr("\\varDelta","\\mathit{\\Delta}"),zr("\\varTheta","\\mathit{\\Theta}"),zr("\\varLambda","\\mathit{\\Lambda}"),zr("\\varXi","\\mathit{\\Xi}"),zr("\\varPi","\\mathit{\\Pi}"),zr("\\varSigma","\\mathit{\\Sigma}"),zr("\\varUpsilon","\\mathit{\\Upsilon}"),zr("\\varPhi","\\mathit{\\Phi}"),zr("\\varPsi","\\mathit{\\Psi}"),zr("\\varOmega","\\mathit{\\Omega}"),zr("\\substack","\\begin{subarray}{c}#1\\end{subarray}"),zr("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu"),zr("\\boxed","\\fbox{$\\displaystyle{#1}$}"),zr("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;"),zr("\\implies","\\DOTSB\\;\\Longrightarrow\\;"),zr("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");var Ir={",":"\\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"};zr("\\dots",function(e){var t="\\dotso",n=e.expandAfterFuture().text;return n in Ir?t=Ir[n]:("\\not"===n.substr(0,4)||n in ee.math&&d(["bin","rel"],ee.math[n].group))&&(t="\\dotsb"),t});var _r={")":!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};zr("\\dotso",function(e){return e.future().text in _r?"\\ldots\\,":"\\ldots"}),zr("\\dotsc",function(e){var t=e.future().text;return t in _r&&","!==t?"\\ldots\\,":"\\ldots"}),zr("\\cdots",function(e){return e.future().text in _r?"\\@cdots\\,":"\\@cdots"}),zr("\\dotsb","\\cdots"),zr("\\dotsm","\\cdots"),zr("\\dotsi","\\!\\cdots"),zr("\\dotsx","\\ldots\\,"),zr("\\DOTSI","\\relax"),zr("\\DOTSB","\\relax"),zr("\\DOTSX","\\relax"),zr("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax"),zr("\\,","\\tmspace+{3mu}{.1667em}"),zr("\\thinspace","\\,"),zr("\\>","\\mskip{4mu}"),zr("\\:","\\tmspace+{4mu}{.2222em}"),zr("\\medspace","\\:"),zr("\\;","\\tmspace+{5mu}{.2777em}"),zr("\\thickspace","\\;"),zr("\\!","\\tmspace-{3mu}{.1667em}"),zr("\\negthinspace","\\!"),zr("\\negmedspace","\\tmspace-{4mu}{.2222em}"),zr("\\negthickspace","\\tmspace-{5mu}{.277em}"),zr("\\enspace","\\kern.5em "),zr("\\enskip","\\hskip.5em\\relax"),zr("\\quad","\\hskip1em\\relax"),zr("\\qquad","\\hskip2em\\relax"),zr("\\tag","\\@ifstar\\tag@literal\\tag@paren"),zr("\\tag@paren","\\tag@literal{({#1})}"),zr("\\tag@literal",function(e){if(e.macros.get("\\df@tag"))throw new o("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"}),zr("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}"),zr("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)"),zr("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}"),zr("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1"),zr("\\pmb","\\html@mathml{\\@binrel{#1}{\\mathrlap{#1}\\kern0.5px#1}}{\\mathbf{#1}}"),zr("\\\\","\\newline"),zr("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var Br=V["Main-Regular"]["T".charCodeAt(0)][1]-.7*V["Main-Regular"]["A".charCodeAt(0)][1]+"em";zr("\\LaTeX","\\textrm{\\html@mathml{L\\kern-.36em\\raisebox{"+Br+"}{\\scriptstyle A}\\kern-.15em\\TeX}{LaTeX}}"),zr("\\KaTeX","\\textrm{\\html@mathml{K\\kern-.17em\\raisebox{"+Br+"}{\\scriptstyle A}\\kern-.15em\\TeX}{KaTeX}}"),zr("\\hspace","\\@ifstar\\@hspacer\\@hspace"),zr("\\@hspace","\\hskip #1\\relax"),zr("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax"),zr("\\ordinarycolon",":"),zr("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}"),zr("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}'),zr("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}'),zr("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}'),zr("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}'),zr("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}'),zr("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}'),zr("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}'),zr("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}'),zr("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}'),zr("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}'),zr("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}'),zr("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}'),zr("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}'),zr("∷","\\dblcolon"),zr("∹","\\eqcolon"),zr("≔","\\coloneqq"),zr("≕","\\eqqcolon"),zr("⩴","\\Coloneqq"),zr("\\ratio","\\vcentcolon"),zr("\\coloncolon","\\dblcolon"),zr("\\colonequals","\\coloneqq"),zr("\\coloncolonequals","\\Coloneqq"),zr("\\equalscolon","\\eqqcolon"),zr("\\equalscoloncolon","\\Eqqcolon"),zr("\\colonminus","\\coloneq"),zr("\\coloncolonminus","\\Coloneq"),zr("\\minuscolon","\\eqcolon"),zr("\\minuscoloncolon","\\Eqcolon"),zr("\\coloncolonapprox","\\Colonapprox"),zr("\\coloncolonsim","\\Colonsim"),zr("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),zr("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}"),zr("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),zr("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}"),zr("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}"),zr("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}"),zr("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}"),zr("\\gvertneqq","\\html@mathml{\\@gvertneqq}{≩}"),zr("\\lvertneqq","\\html@mathml{\\@lvertneqq}{≨}"),zr("\\ngeqq","\\html@mathml{\\@ngeqq}{≱}"),zr("\\ngeqslant","\\html@mathml{\\@ngeqslant}{≱}"),zr("\\nleqq","\\html@mathml{\\@nleqq}{≰}"),zr("\\nleqslant","\\html@mathml{\\@nleqslant}{≰}"),zr("\\nshortmid","\\html@mathml{\\@nshortmid}{∤}"),zr("\\nshortparallel","\\html@mathml{\\@nshortparallel}{∦}"),zr("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{⊈}"),zr("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{⊉}"),zr("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{⊊}"),zr("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{⫋}"),zr("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{⊋}"),zr("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{⫌}"),zr("\\imath","\\html@mathml{\\@imath}{ı}"),zr("\\jmath","\\html@mathml{\\@jmath}{ȷ}"),zr("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}"),zr("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}"),zr("⟦","\\llbracket"),zr("⟧","\\rrbracket"),zr("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}"),zr("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}"),zr("⦃","\\lBrace"),zr("⦄","\\rBrace"),zr("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}"),zr("⦵","\\minuso"),zr("\\darr","\\downarrow"),zr("\\dArr","\\Downarrow"),zr("\\Darr","\\Downarrow"),zr("\\lang","\\langle"),zr("\\rang","\\rangle"),zr("\\uarr","\\uparrow"),zr("\\uArr","\\Uparrow"),zr("\\Uarr","\\Uparrow"),zr("\\N","\\mathbb{N}"),zr("\\R","\\mathbb{R}"),zr("\\Z","\\mathbb{Z}"),zr("\\alef","\\aleph"),zr("\\alefsym","\\aleph"),zr("\\Alpha","\\mathrm{A}"),zr("\\Beta","\\mathrm{B}"),zr("\\bull","\\bullet"),zr("\\Chi","\\mathrm{X}"),zr("\\clubs","\\clubsuit"),zr("\\cnums","\\mathbb{C}"),zr("\\Complex","\\mathbb{C}"),zr("\\Dagger","\\ddagger"),zr("\\diamonds","\\diamondsuit"),zr("\\empty","\\emptyset"),zr("\\Epsilon","\\mathrm{E}"),zr("\\Eta","\\mathrm{H}"),zr("\\exist","\\exists"),zr("\\harr","\\leftrightarrow"),zr("\\hArr","\\Leftrightarrow"),zr("\\Harr","\\Leftrightarrow"),zr("\\hearts","\\heartsuit"),zr("\\image","\\Im"),zr("\\infin","\\infty"),zr("\\Iota","\\mathrm{I}"),zr("\\isin","\\in"),zr("\\Kappa","\\mathrm{K}"),zr("\\larr","\\leftarrow"),zr("\\lArr","\\Leftarrow"),zr("\\Larr","\\Leftarrow"),zr("\\lrarr","\\leftrightarrow"),zr("\\lrArr","\\Leftrightarrow"),zr("\\Lrarr","\\Leftrightarrow"),zr("\\Mu","\\mathrm{M}"),zr("\\natnums","\\mathbb{N}"),zr("\\Nu","\\mathrm{N}"),zr("\\Omicron","\\mathrm{O}"),zr("\\plusmn","\\pm"),zr("\\rarr","\\rightarrow"),zr("\\rArr","\\Rightarrow"),zr("\\Rarr","\\Rightarrow"),zr("\\real","\\Re"),zr("\\reals","\\mathbb{R}"),zr("\\Reals","\\mathbb{R}"),zr("\\Rho","\\mathrm{P}"),zr("\\sdot","\\cdot"),zr("\\sect","\\S"),zr("\\spades","\\spadesuit"),zr("\\sub","\\subset"),zr("\\sube","\\subseteq"),zr("\\supe","\\supseteq"),zr("\\Tau","\\mathrm{T}"),zr("\\thetasym","\\vartheta"),zr("\\weierp","\\wp"),zr("\\Zeta","\\mathrm{Z}"),zr("\\argmin","\\DOTSB\\operatorname*{arg\\,min}"),zr("\\argmax","\\DOTSB\\operatorname*{arg\\,max}"),zr("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits"),zr("\\bra","\\mathinner{\\langle{#1}|}"),zr("\\ket","\\mathinner{|{#1}\\rangle}"),zr("\\braket","\\mathinner{\\langle{#1}\\rangle}"),zr("\\Bra","\\left\\langle#1\\right|"),zr("\\Ket","\\left|#1\\right\\rangle"),zr("\\blue","\\textcolor{##6495ed}{#1}"),zr("\\orange","\\textcolor{##ffa500}{#1}"),zr("\\pink","\\textcolor{##ff00af}{#1}"),zr("\\red","\\textcolor{##df0030}{#1}"),zr("\\green","\\textcolor{##28ae7b}{#1}"),zr("\\gray","\\textcolor{gray}{#1}"),zr("\\purple","\\textcolor{##9d38bd}{#1}"),zr("\\blueA","\\textcolor{##ccfaff}{#1}"),zr("\\blueB","\\textcolor{##80f6ff}{#1}"),zr("\\blueC","\\textcolor{##63d9ea}{#1}"),zr("\\blueD","\\textcolor{##11accd}{#1}"),zr("\\blueE","\\textcolor{##0c7f99}{#1}"),zr("\\tealA","\\textcolor{##94fff5}{#1}"),zr("\\tealB","\\textcolor{##26edd5}{#1}"),zr("\\tealC","\\textcolor{##01d1c1}{#1}"),zr("\\tealD","\\textcolor{##01a995}{#1}"),zr("\\tealE","\\textcolor{##208170}{#1}"),zr("\\greenA","\\textcolor{##b6ffb0}{#1}"),zr("\\greenB","\\textcolor{##8af281}{#1}"),zr("\\greenC","\\textcolor{##74cf70}{#1}"),zr("\\greenD","\\textcolor{##1fab54}{#1}"),zr("\\greenE","\\textcolor{##0d923f}{#1}"),zr("\\goldA","\\textcolor{##ffd0a9}{#1}"),zr("\\goldB","\\textcolor{##ffbb71}{#1}"),zr("\\goldC","\\textcolor{##ff9c39}{#1}"),zr("\\goldD","\\textcolor{##e07d10}{#1}"),zr("\\goldE","\\textcolor{##a75a05}{#1}"),zr("\\redA","\\textcolor{##fca9a9}{#1}"),zr("\\redB","\\textcolor{##ff8482}{#1}"),zr("\\redC","\\textcolor{##f9685d}{#1}"),zr("\\redD","\\textcolor{##e84d39}{#1}"),zr("\\redE","\\textcolor{##bc2612}{#1}"),zr("\\maroonA","\\textcolor{##ffbde0}{#1}"),zr("\\maroonB","\\textcolor{##ff92c6}{#1}"),zr("\\maroonC","\\textcolor{##ed5fa6}{#1}"),zr("\\maroonD","\\textcolor{##ca337c}{#1}"),zr("\\maroonE","\\textcolor{##9e034e}{#1}"),zr("\\purpleA","\\textcolor{##ddd7ff}{#1}"),zr("\\purpleB","\\textcolor{##c6b9fc}{#1}"),zr("\\purpleC","\\textcolor{##aa87ff}{#1}"),zr("\\purpleD","\\textcolor{##7854ab}{#1}"),zr("\\purpleE","\\textcolor{##543b78}{#1}"),zr("\\mintA","\\textcolor{##f5f9e8}{#1}"),zr("\\mintB","\\textcolor{##edf2df}{#1}"),zr("\\mintC","\\textcolor{##e0e5cc}{#1}"),zr("\\grayA","\\textcolor{##f6f7f7}{#1}"),zr("\\grayB","\\textcolor{##f0f1f2}{#1}"),zr("\\grayC","\\textcolor{##e3e5e6}{#1}"),zr("\\grayD","\\textcolor{##d6d8da}{#1}"),zr("\\grayE","\\textcolor{##babec2}{#1}"),zr("\\grayF","\\textcolor{##888d93}{#1}"),zr("\\grayG","\\textcolor{##626569}{#1}"),zr("\\grayH","\\textcolor{##3b3e40}{#1}"),zr("\\grayI","\\textcolor{##21242c}{#1}"),zr("\\kaBlue","\\textcolor{##314453}{#1}"),zr("\\kaGreen","\\textcolor{##71B307}{#1}");var Rr={"\\relax":!0,"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0},Pr=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 Mr(Or,t.macros),this.mode=n,this.stack=[]}var t=e.prototype;return t.feed=function(e){this.lexer=new Ar(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;n<e;++n){this.consumeSpaces();var r=this.popToken();if("{"===r.text){for(var i=[],a=1;0!==a;){var s=this.popToken();if(i.push(s),"{"===s.text)++a;else if("}"===s.text)--a;else if("EOF"===s.text)throw new o("End of input in macro argument",r)}i.pop(),i.reverse(),t[n]=i}else{if("EOF"===r.text)throw new o("End of input expecting macro argument");t[n]=[r]}}return t},t.expandOnce=function(e){var t=this.popToken(),n=t.text,r=t.noexpand?null:this._getExpansion(n);if(null==r||e&&r.unexpandable){if(e&&null==r&&"\\"===n[0]&&!this.isDefined(n))throw new o("Undefined control sequence: "+n);return this.pushToken(t),t}if(this.expansionCount++,this.expansionCount>this.settings.maxExpand)throw new o("Too many expansions: infinite loop or need to increase maxExpand setting");var i=r.tokens;if(r.numArgs)for(var a=this.consumeArgs(r.numArgs),s=(i=i.slice()).length-1;s>=0;--s){var l=i[s];if("#"===l.text){if(0===s)throw new o("Incomplete placeholder at end of macro body",l);if("#"===(l=i[--s]).text)i.splice(s+1,1);else{if(!/^[1-9]$/.test(l.text))throw new o("Not a valid argument number",l);var u;(u=i).splice.apply(u,[s,2].concat(a[+l.text-1]))}}}return this.pushTokens(i),i},t.expandAfterFuture=function(){return this.expandOnce(),this.future()},t.expandNextToken=function(){for(;;){var e=this.expandOnce();if(e instanceof i){if("\\relax"!==e.text&&!e.treatAsRelax)return this.stack.pop();this.stack.pop()}}throw new Error},t.expandMacro=function(e){return this.macros.has(e)?this.expandTokens([new i(e)]):void 0},t.expandTokens=function(e){var t=[],n=this.stack.length;for(this.pushTokens(e);this.stack.length>n;){var r=this.expandOnce(!0);r instanceof i&&(r.treatAsRelax&&(r.noexpand=!1,r.treatAsRelax=!1),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 i=n.replace(/##/g,"");-1!==i.indexOf("#"+(r+1));)++r;for(var a=new Ar(n,this.settings),o=[],s=a.lex();"EOF"!==s.text;)o.push(s),s=a.lex();return o.reverse(),{tokens:o,numArgs:r}}return n},t.isDefined=function(e){return this.macros.has(e)||xr.hasOwnProperty(e)||ee.math.hasOwnProperty(e)||ee.text.hasOwnProperty(e)||Rr.hasOwnProperty(e)},t.isExpandable=function(e){var t=this.macros.get(e);return null!=t?"string"==typeof t||"function"==typeof t||!t.unexpandable:xr.hasOwnProperty(e)},e}(),jr={"́":{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"}},Hr={á:"á",à:"à",ä:"ä",ǟ:"ǟ",ã:"ã",ā:"ā",ă:"ă",ắ:"ắ",ằ:"ằ",ẵ:"ẵ",ǎ:"ǎ",â:"â",ấ:"ấ",ầ:"ầ",ẫ:"ẫ",ȧ:"ȧ",ǡ:"ǡ",å:"å",ǻ:"ǻ",ḃ:"ḃ",ć:"ć",č:"č",ĉ:"ĉ",ċ:"ċ",ď:"ď",ḋ:"ḋ",é:"é",è:"è",ë:"ë",ẽ:"ẽ",ē:"ē",ḗ:"ḗ",ḕ:"ḕ",ĕ:"ĕ",ě:"ě",ê:"ê",ế:"ế",ề:"ề",ễ:"ễ",ė:"ė",ḟ:"ḟ",ǵ:"ǵ",ḡ:"ḡ",ğ:"ğ",ǧ:"ǧ",ĝ:"ĝ",ġ:"ġ",ḧ:"ḧ",ȟ:"ȟ",ĥ:"ĥ",ḣ:"ḣ",í:"í",ì:"ì",ï:"ï",ḯ:"ḯ",ĩ:"ĩ",ī:"ī",ĭ:"ĭ",ǐ:"ǐ",î:"î",ǰ:"ǰ",ĵ:"ĵ",ḱ:"ḱ",ǩ:"ǩ",ĺ:"ĺ",ľ:"ľ",ḿ:"ḿ",ṁ:"ṁ",ń:"ń",ǹ:"ǹ",ñ:"ñ",ň:"ň",ṅ:"ṅ",ó:"ó",ò:"ò",ö:"ö",ȫ:"ȫ",õ:"õ",ṍ:"ṍ",ṏ:"ṏ",ȭ:"ȭ",ō:"ō",ṓ:"ṓ",ṑ:"ṑ",ŏ:"ŏ",ǒ:"ǒ",ô:"ô",ố:"ố",ồ:"ồ",ỗ:"ỗ",ȯ:"ȯ",ȱ:"ȱ",ő:"ő",ṕ:"ṕ",ṗ:"ṗ",ŕ:"ŕ",ř:"ř",ṙ:"ṙ",ś:"ś",ṥ:"ṥ",š:"š",ṧ:"ṧ",ŝ:"ŝ",ṡ:"ṡ",ẗ:"ẗ",ť:"ť",ṫ:"ṫ",ú:"ú",ù:"ù",ü:"ü",ǘ:"ǘ",ǜ:"ǜ",ǖ:"ǖ",ǚ:"ǚ",ũ:"ũ",ṹ:"ṹ",ū:"ū",ṻ:"ṻ",ŭ:"ŭ",ǔ:"ǔ",û:"û",ů:"ů",ű:"ű",ṽ:"ṽ",ẃ:"ẃ",ẁ:"ẁ",ẅ:"ẅ",ŵ:"ŵ",ẇ:"ẇ",ẘ:"ẘ",ẍ:"ẍ",ẋ:"ẋ",ý:"ý",ỳ:"ỳ",ÿ:"ÿ",ỹ:"ỹ",ȳ:"ȳ",ŷ:"ŷ",ẏ:"ẏ",ẙ:"ẙ",ź:"ź",ž:"ž",ẑ:"ẑ",ż:"ż",Á:"Á",À:"À",Ä:"Ä",Ǟ:"Ǟ",Ã:"Ã",Ā:"Ā",Ă:"Ă",Ắ:"Ắ",Ằ:"Ằ",Ẵ:"Ẵ",Ǎ:"Ǎ",Â:"Â",Ấ:"Ấ",Ầ:"Ầ",Ẫ:"Ẫ",Ȧ:"Ȧ",Ǡ:"Ǡ",Å:"Å",Ǻ:"Ǻ",Ḃ:"Ḃ",Ć:"Ć",Č:"Č",Ĉ:"Ĉ",Ċ:"Ċ",Ď:"Ď",Ḋ:"Ḋ",É:"É",È:"È",Ë:"Ë",Ẽ:"Ẽ",Ē:"Ē",Ḗ:"Ḗ",Ḕ:"Ḕ",Ĕ:"Ĕ",Ě:"Ě",Ê:"Ê",Ế:"Ế",Ề:"Ề",Ễ:"Ễ",Ė:"Ė",Ḟ:"Ḟ",Ǵ:"Ǵ",Ḡ:"Ḡ",Ğ:"Ğ",Ǧ:"Ǧ",Ĝ:"Ĝ",Ġ:"Ġ",Ḧ:"Ḧ",Ȟ:"Ȟ",Ĥ:"Ĥ",Ḣ:"Ḣ",Í:"Í",Ì:"Ì",Ï:"Ï",Ḯ:"Ḯ",Ĩ:"Ĩ",Ī:"Ī",Ĭ:"Ĭ",Ǐ:"Ǐ",Î:"Î",İ:"İ",Ĵ:"Ĵ",Ḱ:"Ḱ",Ǩ:"Ǩ",Ĺ:"Ĺ",Ľ:"Ľ",Ḿ:"Ḿ",Ṁ:"Ṁ",Ń:"Ń",Ǹ:"Ǹ",Ñ:"Ñ",Ň:"Ň",Ṅ:"Ṅ",Ó:"Ó",Ò:"Ò",Ö:"Ö",Ȫ:"Ȫ",Õ:"Õ",Ṍ:"Ṍ",Ṏ:"Ṏ",Ȭ:"Ȭ",Ō:"Ō",Ṓ:"Ṓ",Ṑ:"Ṑ",Ŏ:"Ŏ",Ǒ:"Ǒ",Ô:"Ô",Ố:"Ố",Ồ:"Ồ",Ỗ:"Ỗ",Ȯ:"Ȯ",Ȱ:"Ȱ",Ő:"Ő",Ṕ:"Ṕ",Ṗ:"Ṗ",Ŕ:"Ŕ",Ř:"Ř",Ṙ:"Ṙ",Ś:"Ś",Ṥ:"Ṥ",Š:"Š",Ṧ:"Ṧ",Ŝ:"Ŝ",Ṡ:"Ṡ",Ť:"Ť",Ṫ:"Ṫ",Ú:"Ú",Ù:"Ù",Ü:"Ü",Ǘ:"Ǘ",Ǜ:"Ǜ",Ǖ:"Ǖ",Ǚ:"Ǚ",Ũ:"Ũ",Ṹ:"Ṹ",Ū:"Ū",Ṻ:"Ṻ",Ŭ:"Ŭ",Ǔ:"Ǔ",Û:"Û",Ů:"Ů",Ű:"Ű",Ṽ:"Ṽ",Ẃ:"Ẃ",Ẁ:"Ẁ",Ẅ:"Ẅ",Ŵ:"Ŵ",Ẇ:"Ẇ",Ẍ:"Ẍ",Ẋ:"Ẋ",Ý:"Ý",Ỳ:"Ỳ",Ÿ:"Ÿ",Ỹ:"Ỹ",Ȳ:"Ȳ",Ŷ:"Ŷ",Ẏ:"Ẏ",Ź:"Ź",Ž:"Ž",Ẑ:"Ẑ",Ż:"Ż",ά:"ά",ὰ:"ὰ",ᾱ:"ᾱ",ᾰ:"ᾰ",έ:"έ",ὲ:"ὲ",ή:"ή",ὴ:"ὴ",ί:"ί",ὶ:"ὶ",ϊ:"ϊ",ΐ:"ΐ",ῒ:"ῒ",ῑ:"ῑ",ῐ:"ῐ",ό:"ό",ὸ:"ὸ",ύ:"ύ",ὺ:"ὺ",ϋ:"ϋ",ΰ:"ΰ",ῢ:"ῢ",ῡ:"ῡ",ῠ:"ῠ",ώ:"ώ",ὼ:"ὼ",Ύ:"Ύ",Ὺ:"Ὺ",Ϋ:"Ϋ",Ῡ:"Ῡ",Ῠ:"Ῠ",Ώ:"Ώ",Ὼ:"Ὼ"},Fr=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 Pr(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 o("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.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");var e=this.parseExpression(!1);return this.expect("EOF"),this.settings.globalGroup||this.gullet.endGroup(),e},t.parseExpression=function(t,n){for(var r=[];;){"math"===this.mode&&this.consumeSpaces();var i=this.fetch();if(-1!==e.endOfExpression.indexOf(i.text))break;if(n&&i.text===n)break;if(t&&xr[i.text]&&xr[i.text].infix)break;var a=this.parseAtom(n);if(!a)break;"internal"!==a.type&&r.push(a)}return"text"===this.mode&&this.formLigatures(r),this.handleInfixNodes(r)},t.handleInfixNodes=function(e){for(var t,n=-1,r=0;r<e.length;r++)if("infix"===e[r].type){if(-1!==n)throw new o("only one infix operator per group",e[r].token);n=r,t=e[r].replaceWith}if(-1!==n&&t){var i,a,s=e.slice(0,n),l=e.slice(n+1);return i=1===s.length&&"ordgroup"===s[0].type?s[0]:{type:"ordgroup",mode:this.mode,body:s},a=1===l.length&&"ordgroup"===l[0].type?l[0]:{type:"ordgroup",mode:this.mode,body:l},["\\\\abovefrac"===t?this.callFunction(t,[i,e[n],a],[]):this.callFunction(t,[i,a],[])]}return e},t.handleSupSubscript=function(t){var n=this.fetch(),r=n.text;this.consume();var i=this.parseGroup(t,!1,e.SUPSUB_GREEDINESS,void 0,void 0,!0);if(!i)throw new o("Expected group after '"+r+"'",n);return i},t.formatUnsupportedCmd=function(e){for(var t=[],n=0;n<e.length;n++)t.push({type:"textord",mode:"text",text:e[n]});var r={type:"text",mode:this.mode,body:t};return{type:"color",mode:this.mode,color:this.settings.errorColor,body:[r]}},t.parseAtom=function(e){var t,n,r=this.parseGroup("atom",!1,null,e);if("text"===this.mode)return r;for(;;){this.consumeSpaces();var i=this.fetch();if("\\limits"===i.text||"\\nolimits"===i.text){if(r&&"op"===r.type){var a="\\limits"===i.text;r.limits=a,r.alwaysHandleSupSub=!0}else{if(!r||"operatorname"!==r.type||!r.alwaysHandleSupSub)throw new o("Limit controls must follow a math operator",i);var s="\\limits"===i.text;r.limits=s}this.consume()}else if("^"===i.text){if(t)throw new o("Double superscript",i);t=this.handleSupSubscript("superscript")}else if("_"===i.text){if(n)throw new o("Double subscript",i);n=this.handleSupSubscript("subscript")}else{if("'"!==i.text)break;if(t)throw new o("Double superscript",i);var l={type:"textord",mode:this.mode,text:"\\prime"},u=[l];for(this.consume();"'"===this.fetch().text;)u.push(l),this.consume();"^"===this.fetch().text&&u.push(this.handleSupSubscript("superscript")),t={type:"ordgroup",mode:this.mode,body:u}}}return t||n?{type:"supsub",mode:this.mode,base:r,sup:t,sub:n}:r},t.parseFunction=function(e,t,n){var r=this.fetch(),i=r.text,a=xr[i];if(!a)return null;if(this.consume(),null!=n&&a.greediness<=n)throw new o("Got function '"+i+"' with no arguments"+(t?" as "+t:""),r);if("text"===this.mode&&!a.allowedInText)throw new o("Can't use function '"+i+"' in text mode",r);if("math"===this.mode&&!1===a.allowedInMath)throw new o("Can't use function '"+i+"' in math mode",r);var s=this.parseArguments(i,a),l=s.args,u=s.optArgs;return this.callFunction(i,l,u,r,e)},t.callFunction=function(e,t,n,r,i){var a={funcName:e,parser:this,token:r,breakOnTokenText:i},s=xr[e];if(s&&s.handler)return s.handler(a,t,n);throw new o("No function handler for "+e)},t.parseArguments=function(e,t){var n=t.numArgs+t.numOptionalArgs;if(0===n)return{args:[],optArgs:[]};for(var r=t.greediness,i=[],a=[],s=0;s<n;s++){var l=t.argTypes&&t.argTypes[s],u=s<t.numOptionalArgs,c=s>0&&!u||0===s&&!u&&"math"===this.mode,d=this.parseGroupOfType("argument to '"+e+"'",l,u,r,c);if(!d){if(u){a.push(null);continue}throw new o("Expected group after '"+e+"'",this.fetch())}(u?a:i).push(d)}return{args:i,optArgs:a}},t.parseGroupOfType=function(e,t,n,r,i){switch(t){case"color":return i&&this.consumeSpaces(),this.parseColorGroup(n);case"size":return i&&this.consumeSpaces(),this.parseSizeGroup(n);case"url":return this.parseUrlGroup(n,i);case"math":case"text":return this.parseGroup(e,n,r,void 0,t,i);case"hbox":var a=this.parseGroup(e,n,r,void 0,"text",i);return a?{type:"styling",mode:a.mode,body:[a],style:"text"}:a;case"raw":if(i&&this.consumeSpaces(),n&&"{"===this.fetch().text)return null;var s=this.parseStringGroup("raw",n,!0);if(s)return{type:"raw",mode:"text",string:s.text};throw new o("Expected raw group",this.fetch());case"original":case null:case void 0:return this.parseGroup(e,n,r,void 0,void 0,i);default:throw new o("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?"[":"{",i=t?"]":"}",a=this.fetch();if(a.text!==r){if(t)return null;if(n&&"EOF"!==a.text&&/[^{}[\]]/.test(a.text))return this.consume(),a}var s=this.mode;this.mode="text",this.expect(r);for(var l,u="",c=this.fetch(),d=0,h=c;(l=this.fetch()).text!==i||n&&d>0;){switch(l.text){case"EOF":throw new o("Unexpected end of input in "+e,c.range(h,u));case r:d++;break;case i:d--}u+=(h=l).text,this.consume()}return this.expect(i),this.mode=s,c.range(h,u)},t.parseRegexGroup=function(e,t){var n=this.mode;this.mode="text";for(var r,i=this.fetch(),a=i,s="";"EOF"!==(r=this.fetch()).text&&e.test(s+r.text);)s+=(a=r).text,this.consume();if(""===s)throw new o("Invalid "+t+": '"+i.text+"'",i);return this.mode=n,i.range(a,s)},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 o("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 o("Invalid size: '"+t.text+"'",t);var i={number:+(r[1]+r[2]),unit:r[3]};if(!Fe(i))throw new o("Invalid unit: '"+i.unit+"'",t);return{type:"size",mode:this.mode,value:i,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,i,a,s,l){var u=this.mode;s&&this.switchMode(s),l&&this.consumeSpaces();var c,d=this.fetch(),h=d.text;if(n?"["===h:"{"===h||"\\begingroup"===h){this.consume();var p=e.endOfGroup[h];this.gullet.beginGroup();var f=this.parseExpression(!1,p),m=this.fetch();this.expect(p),this.gullet.endGroup(),c={type:"ordgroup",mode:this.mode,loc:r.range(d,m),body:f,semisimple:"\\begingroup"===h||void 0}}else if(n)c=null;else if(null==(c=this.parseFunction(a,t,i)||this.parseSymbol())&&"\\"===h[0]&&!Rr.hasOwnProperty(h)){if(this.settings.throwOnError)throw new o("Undefined control sequence: "+h,d);c=this.formatUnsupportedCmd(h),this.consume()}return s&&this.switchMode(u),c},t.formLigatures=function(e){for(var t=e.length-1,n=0;n<t;++n){var i=e[n],a=i.text;"-"===a&&"-"===e[n+1].text&&(n+1<t&&"-"===e[n+2].text?(e.splice(n,3,{type:"textord",mode:"text",loc:r.range(i,e[n+2]),text:"---"}),t-=2):(e.splice(n,2,{type:"textord",mode:"text",loc:r.range(i,e[n+1]),text:"--"}),t-=1)),"'"!==a&&"`"!==a||e[n+1].text!==a||(e.splice(n,2,{type:"textord",mode:"text",loc:r.range(i,e[n+1]),text:a+a}),t-=1)}},t.parseSymbol=function(){var e=this.fetch(),t=e.text;if(/^\\verb[^a-zA-Z]/.test(t)){this.consume();var n=t.slice(5),i="*"===n.charAt(0);if(i&&(n=n.slice(1)),n.length<2||n.charAt(0)!==n.slice(-1))throw new o("\\verb assertion failed --\n please report what input caused this bug");return{type:"verb",mode:"text",body:n=n.slice(1,-1),star:i}}Hr.hasOwnProperty(t[0])&&!ee[this.mode][t[0]]&&(this.settings.strict&&"math"===this.mode&&this.settings.reportNonstrict("unicodeTextInMathMode",'Accented Unicode text character "'+t[0]+'" used in math mode',e),t=Hr[t[0]]+t.substr(1));var a,s=Er.exec(t);if(s&&("i"===(t=t.substring(0,s.index))?t="ı":"j"===t&&(t="ȷ")),ee[this.mode][t]){this.settings.strict&&"math"===this.mode&&Ne.indexOf(t)>=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+t[0]+'" used in math mode',e);var l,u=ee[this.mode][t].group,c=r.range(e);if(Y.hasOwnProperty(u)){var d=u;l={type:"atom",mode:this.mode,family:d,loc:c,text:t}}else l={type:u,mode:this.mode,loc:c,text:t};a=l}else{if(!(t.charCodeAt(0)>=128))return null;this.settings.strict&&(N(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)),a={type:"textord",mode:"text",loc:r.range(e),text:t}}if(this.consume(),s)for(var h=0;h<s[0].length;h++){var p=s[0][h];if(!jr[p])throw new o("Unknown accent ' "+p+"'",e);var f=jr[p][this.mode];if(!f)throw new o("Accent "+p+" unsupported in "+this.mode+" mode",e);a={type:"accent",mode:this.mode,loc:r.range(e),label:f,isStretchy:!1,isShifty:!0,base:a}}return a},e}();Fr.endOfExpression=["}","\\endgroup","\\end","\\right","&"],Fr.endOfGroup={"[":"]","{":"}","\\begingroup":"\\endgroup"},Fr.SUPSUB_GREEDINESS=1;var Ur=function(e,t){if(!("string"==typeof e||e instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var n=new Fr(e,t);delete n.gullet.macros.current["\\df@tag"];var r=n.parse();if(n.gullet.macros.get("\\df@tag")){if(!t.displayMode)throw new o("\\tag works only in display equations");n.gullet.feed("\\df@tag"),r=[{type:"tag",mode:"text",body:r,tag:n.parse()}]}return r},Qr=function(e,t,n){t.textContent="";var r=Vr(e,n).toNode();t.appendChild(r)};"undefined"!=typeof document&&"CSS1Compat"!==document.compatMode&&("undefined"!=typeof console&&console.warn("Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype."),Qr=function(){throw new o("KaTeX doesn't work in quirks mode.")});var Wr=function(e,t,n){if(n.throwOnError||!(e instanceof o))throw e;var r=et.makeSpan(["katex-error"],[new H(t)]);return r.setAttribute("title",e.toString()),r.setAttribute("style","color:"+n.errorColor),r},Vr=function(e,t){var n=new v(t);try{return function(e,t,n){var r,i=Bt(n);if("mathml"===n.output)return _t(e,t,i,n.displayMode,!0);if("html"===n.output){var a=Tt(e,i);r=et.makeSpan(["katex"],[a])}else{var o=_t(e,t,i,n.displayMode,!1),s=Tt(e,i);r=et.makeSpan(["katex"],[o,s])}return Rt(r,n)}(Ur(e,n),e,n)}catch(t){return Wr(t,e,n)}},$r={version:"0.12.0",render:Qr,renderToString:function(e,t){return Vr(e,t).toMarkup()},ParseError:o,__parse:function(e,t){var n=new v(t);return Ur(e,n)},__renderToDomTree:Vr,__renderToHTMLTree:function(e,t){var n=new v(t);try{return function(e,t,n){var r=Tt(e,Bt(n)),i=et.makeSpan(["katex"],[r]);return Rt(i,n)}(Ur(e,n),0,n)}catch(t){return Wr(t,e,n)}},__setFontMetrics:function(e,t){V[e]=t},__defineSymbol:te,__defineMacro:zr,__domTree:{Span:B,Anchor:R,SymbolNode:H,SvgNode:F,PathNode:U,LineNode:Q}};t.default=$r}]).default},e.exports=t()},930:(e,t,n)=>{n.d(t,{A:()=>s});var r=n(601),i=n.n(r),a=n(314),o=n.n(a)()(i());o.push([e.id,"/* Fixes is a katex bug where horizontal lines are not rendering */\n/* .frac-line {\n background-color: #404040;\n height:0.03em;\n}\n.overline-line {\n background-color: #404040;\n height:0.03em;\n} */\n\n.SymbolButton {\n display: inline-block;\n overflow: hidden; /* Important to fix a bug where katex renders parts of the equation outside the box */\n font-size: 14px;\n font-weight: bold;\n color: #202020;\n background: #e0e0e0;\n text-align: center;\n border: 0px;\n border-radius: 5px;\n width: 36px;\n height: 36px;\n padding: 1px;\n margin: 3px;\n margin-bottom: auto;\n /* transition: all .2s ease-in-out; */\n}\n\n.SymbolButton:hover {\n filter: saturate(2);\n color: black;\n /* transform: scale(1.3); */\n cursor: pointer;\n box-shadow: 1px 1px 3px #808080;\n animation: 2s grow;\n animation-fill-mode: forwards;\n}\n\n@keyframes grow {\n 00% {\n transform: scale(1);\n box-shadow: 0px 0px 0px #808080;\n }\n 10% {\n transform: scale(1.3);\n box-shadow: 1px 1px 3px #808080;\n }\n 90% {\n transform: scale(1.3);\n box-shadow: 1px 1px 3px #808080;\n }\n 100% {\n transform: scale(1.8);\n box-shadow: 1px 1px 3px #808080;\n }\n}\n\n.SymbolButton:active {\n background: #808080;\n color: white;\n transform: scale(1.3);\n cursor: pointer;\n}\n\n.SymbolButton-fadeIn {\n opacity: 1;\n width: 100px;\n height: 100px;\n transition: width 0.5s, height 0.5s, opacity 0.5s 0.5s;\n}\n\n.highlight-0 {\n background: #ebc9eb;\n /* background: #80e0e0; */\n}\n/*\n.highlight-1{\n background: #c0e0e0;\n}\n/* .highlight-2{\n background: #c0e0e0;\n} */\n\n.highlight-operators {\n background: #f8e8d8;\n}\n\n.highlight-angles {\n background: #cceded;\n}\n\n.highlight-greeklower {\n background: #f8e8d8;\n}\n\n.highlight-greekupper {\n background: #cceded;\n}\n\n.highlight-misc {\n background: #f8e8d8;\n}\n\n.highlight-sets {\n background: #cceded;\n}\n\n.highlight-chemistry {\n background: #f8e8d8;\n}\n\n.highlight-elements {\n background: #cceded;\n}\n\n.highlight-physics2 {\n background: #f8e8d8;\n}\n\n.highlight-physics3 {\n background: #cceded;\n}\n\n.highlight-expert {\n background: #f4d6f5;\n}\n\n.highlight-matrices {\n background: #f4d6f5;\n}\n",""]);const s=o},961:(e,t,n)=>{!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(551)},982:(e,t,n)=>{e.exports=n(463)}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var a=t[r]={id:r,exports:{}};return e[r].call(a.exports,a,a.exports,n),a.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.nc=void 0;var r=n(540),i=n(338),a=n(890),o=n.n(a);var s=n(138),l=n(72),u=n.n(l),c=n(825),d=n.n(c),h=n(659),p=n.n(h),f=n(56),m=n.n(f),g=n(159),b=n.n(g),v=n(113),y=n.n(v),x=n(930),w={};w.styleTagTransform=y(),w.setAttributes=m(),w.insert=p().bind(null,"head"),w.domAPI=d(),w.insertStyleElement=b(),u()(x.A,w),x.A&&x.A.locals&&x.A.locals;const k=[{name:"Squared",latex:"^2",buttonLatex:"\\square^2",tooltip:"Squared (type \\^2)",typedText:!0,moveCursor:1},{name:"Power",latex:"^",buttonLatex:"\\square^x",tooltip:"Power (type \\^x)",typedText:!0},{name:"Subscript",latex:"_",buttonLatex:"\\square_x",tooltip:"Subscript (type \\_x)",typedText:!0},{name:"Root",latex:"\\sqrt{#}",buttonLatex:"\\sqrt{x}",tooltip:"Square root",moveCursor:-1},{name:"Cube root",latex:"\\sqrt[3]{#}",buttonLatex:"\\sqrt[3]{x}",tooltip:"Cube root",moveCursor:-1},{name:"Nth root",latex:"\\sqrt[#]{#}",buttonLatex:"\\sqrt[n]{x}",tooltip:"Nth root",moveCursor:-2},{name:"Surd",latex:"\\surd{#}",buttonLatex:"\\surd{x}",tooltip:"Surd"},{name:"Over",mathQuill:"/",latex:"\\frac{##}{#}",buttonLatex:"\\frac{\\square}{x}",tooltip:"Fraction",typedText:!0},{name:"Over root",latex:"/\\sqrt ",buttonLatex:"\\frac{a}{\\sqrt{x}}",tooltip:"Over square root",moveCursor:-1,typedText:!0},{name:"Hat",latex:"\\hat{#}",buttonLatex:"\\hat{x}",tooltip:"Hat",moveCursor:-1},{name:"Vector",latex:"\\vec{#}",buttonLatex:"\\vec{x}",tooltip:"Vector",moveCursor:-1},{name:"Line segment",latex:"\\overline{\\mathrm{AB#}}",buttonLatex:"\\overline{\\mathrm{AB}}",tooltip:"Overline",moveCursor:-2,scale:80},{name:"Ray",latex:"\\overrightarrow{\\mathrm{AB#}}",buttonLatex:"\\overrightarrow{\\mathrm{AB}}",tooltip:"Over left arrow",moveCursor:-2,scale:80},{name:"Over left arrow",latex:"\\overleftarrow{\\mathrm{AB#}}",buttonLatex:"\\overleftarrow{\\mathrm{AB}}",tooltip:"Over left arrow",moveCursor:-2,scale:80},{name:"Line",latex:"\\overleftrightarrow{\\mathrm{AB#}}",buttonLatex:"\\overleftrightarrow{\\mathrm{AB}}",tooltip:"Over left arrow",moveCursor:-2,scale:80},{name:"Dot",latex:"\\dot{#}",buttonLatex:"\\dot{x}",tooltip:"Dot",moveCursor:-1},{name:"Double dot",latex:"\\ddot{#}",buttonLatex:"\\ddot{x}",tooltip:"Double dot",moveCursor:-1},{name:"dxdy",latex:"\\frac{dx}{dy}",scale:90},{name:"Partial dxdy",latex:"\\frac{\\partial x}{\\partial y}",buttonLatex:"\\frac{\\partial x}{\\partial y}",tooltip:"Partial dxdy",scale:90},{name:"Integral",latex:"\\int_{#}^{#}",buttonLatex:"\\int",tooltip:"Integral",moveCursor:-2,scale:90},{name:"Double integral",latex:"\\iint_{#}^{#}",buttonLatex:"\\iint",tooltip:"Double integral",moveCursor:-2},{name:"Triple integral",latex:"\\iiint_{#}^{#}",buttonLatex:"\\iiint",tooltip:"Double integral",moveCursor:-2},{name:"Contour integral",latex:"\\oint_{#}^{#}",buttonLatex:"\\oint",tooltip:"Contour integral",moveCursor:-2},{name:"Surface integral",latex:"\\oiint_{#}^{#}",buttonLatex:"\\oiint",tooltip:"Surface integral",moveCursor:-2},{name:"Volume integral",latex:"\\oiiint_{#}^{#}",buttonLatex:"\\oiiint",tooltip:"Volume integral",moveCursor:-2},{name:"Integral a b",latex:"\\int_{#}^{#}",buttonLatex:"\\int_{a}^{b}",tooltip:"Integral",moveCursor:-2,scale:90},{name:"Double integral a b",latex:"\\iint_{#}^{#}",buttonLatex:"\\iint_{a}^{b}",tooltip:"Double integral",moveCursor:-2},{name:"Triple integral a b",latex:"\\iiint_{#}^{#}",buttonLatex:"\\iiint_{a}^{b}",tooltip:"Double integral",moveCursor:-2},{name:"Contour integral a b",latex:"\\oint_{#}^{#}",buttonLatex:"\\oint_{a}^{b}",tooltip:"Contour integral",moveCursor:-2},{name:"Sum a b",mathQuill:"\\sum ",latex:"\\sum\\limits_{#}^{#}",buttonLatex:"\\sum\\limits_a^b",scale:75,moveCursor:-1,typedText:!0},{name:"Product a b",mathQuill:"\\prod ",latex:"\\prod\\limits_{#}^{#}",buttonLatex:"\\prod\\limits_a^b",scale:75,tooltip:"Product",moveCursor:-1,typedText:!0},{name:"Infinity",latex:"\\infty"},{name:"Right arrow",latex:"\\rightarrow"},{name:"Box",latex:"\\square",buttonLatex:"\\square",tooltip:"Box"},{name:"Plus",latex:"+",buttonLatex:"+",tooltip:"Plus"},{name:"Minus",latex:"-",buttonLatex:"-",tooltip:"Mius"},{name:"Plus or minus",latex:"\\pm",buttonLatex:"\\pm",tooltip:"Plus or minus"},{name:"Minus or plus",latex:"\\mp",buttonLatex:"\\mp",tooltip:"Minus or plus"},{name:"Times",latex:"\\times",buttonLatex:"\\times",tooltip:"Times"},{name:"Divide",latex:"\\div",buttonLatex:"\\div",tooltip:"Divide"},{name:"Center dot",latex:"\\cdot",buttonLatex:"\\cdot",tooltip:"Center dot"},{name:"Equals",latex:"=",buttonLatex:"=",tooltip:"Equals"},{name:"Less than",latex:"<",buttonLatex:"<",tooltip:"Less than (type <)"},{name:"Greater than",latex:">",buttonLatex:">",tooltip:"Greater than (type >=)"},{name:"Not equal",latex:"\\ne",buttonLatex:"\\ne",tooltip:"Not equal"},{name:"Less than or equal",latex:"\\le",buttonLatex:"\\le",tooltip:"Less than or equal"},{name:"Greater than or equal",latex:"\\ge",buttonLatex:"\\ge",tooltip:"Greater than or equal"},{name:"Equivalent",latex:"\\equiv",buttonLatex:"\\equiv",tooltip:"Equivalent"},{name:"Similar",latex:"\\sim",buttonLatex:"\\sim",tooltip:"Similar"},{name:"Approximately",latex:"\\approx",buttonLatex:"\\approx",tooltip:"Approximately"},{name:"Congruent",latex:"\\cong",buttonLatex:"\\cong",tooltip:"Cong"},{name:"Implies",latex:"\\Rightarrow",buttonLatex:"\\Rightarrow",tooltip:"Implies"},{name:"Limit x to infinity",mathQuill:"\\lim_{x\\to \\infty}",latex:"\\lim\\limits_{x\\to \\infty}",scale:90},{name:"Measured angle",latex:"\\measuredangle"},{name:"Spherical angle",latex:"\\sphericalangle"},{name:"Proportionate",latex:"\\propto"},{name:"Parallel",latex:"\\parallel"},{name:"Perpendicular",latex:"\\perp"},{name:"nsubset",latex:"\\nsubset",buttonLatex:"\\not\\subset"},{name:"Algebraic numbers",latex:"\\A",buttonLatex:"\\mathbb A"},{name:"Complex numbers",latex:"\\C",buttonLatex:"\\mathbb C"},{name:"Natural numbers",latex:"\\N",buttonLatex:"\\mathbb N"},{name:"Rational numbers",latex:"\\Q",buttonLatex:"\\mathbb Q"},{name:"Real numbers",latex:"\\R",buttonLatex:"\\mathbb R"},{name:"Integers",latex:"\\Z",buttonLatex:"\\mathbb Z"},{name:"Subscript2",latex:"_2",buttonLatex:"\\square_2",tooltip:"Subscript (type \\_2)"},{name:"SubscriptN",latex:"_",buttonLatex:"\\square_n",tooltip:"Subscript (type \\_n)",typedText:!0},{name:"SuperscriptN",latex:"^",buttonLatex:"\\square^n",tooltip:"Superscript (type \\^n)",typedText:!0},{name:"Chemistry arrow",latex:" \\longrightarrow ",buttonLatex:"\\longrightarrow",tooltip:"Chemistry arrow",typedText:!0},{name:"_e",latex:"\\mathrm{e^-}",buttonLatex:"\\mathrm{e^-}"},{name:"_n",latex:"_{0}^{1}\\mathrm{n}",buttonLatex:"_{0}^{1}\\mathrm{n}"},{name:"_p",latex:"_{1}^{1}\\mathrm{p}",buttonLatex:"_{1}^{1}\\mathrm{p}"},{name:"_a",latex:"_{2}^{2}\\alpha",buttonLatex:"_{2}^{2}\\alpha"},{name:"_em",latex:"_{-1}^{0}\\mathrm{e}",buttonLatex:"_{-1}^{0}\\mathrm{e}"},{name:"_bm",latex:"_{-1}^{0}\\beta",buttonLatex:"_{-1}^{0}\\beta"},{name:"_ep",latex:"_{1}^{0}\\mathrm{e}",buttonLatex:"_{1}^{0}\\mathrm{e}"},{name:"_bp",latex:"_{1}^{0}\\beta",buttonLatex:"_{1}^{0}\\beta"},{name:"_ga",latex:"_{0}^{0}\\gamma",buttonLatex:"_{0}^{0}\\gamma"},{name:"_s",latex:"_{(s)}",buttonLatex:"\\square_{(s)}"},{name:"_g",latex:"_{(g)}",buttonLatex:"\\square_{(g)}"},{name:"_l",latex:"_{(l)}",buttonLatex:"\\square_{(l)}"},{name:"_aq",latex:"_{(aq)}",buttonLatex:"\\square_{(aq)}"},{name:"Type in Roman text",latex:"\\mathrm ",buttonLatex:"\\mathrm{[text]}",scale:70,typedText:!0},{name:"Uranium symbol",latex:"_{92}^{235}\\mathrm U",buttonLatex:"_{92}^{235}\\mathrm U"},{name:"Half",latex:"\\frac{1}{2}",buttonLatex:"\\frac{1}{2}"},{name:"Third",latex:"\\frac{1}{3}",buttonLatex:"\\frac{1}{3}"},{name:"Over root 2",latex:"\\frac{#}{\\surd{2}}",buttonLatex:"\\frac{x}{\\surd{2}}",moveCursor:-4},{name:"Over root 3",latex:"\\frac{#}{\\surd{3}}",buttonLatex:"\\frac{x}{\\surd{3}}",moveCursor:-4},{name:"Subscript zero",latex:"_0",buttonLatex:"\\square_0"},{name:"Subscript max",latex:"_{\\max}",buttonLatex:"\\square_{\\max}",scale:80},{name:"Subscript min",latex:"_{\\min}",buttonLatex:"\\square_{\\min}",scale:80},{name:"Subscript rms",latex:"_\\mathrm{rms}",buttonLatex:"\\square_\\mathrm{rms}",scale:80},{name:"Root a over b",latex:"\\sqrt{\\frac{#}{#}}",buttonLatex:"\\sqrt{\\frac{a}{b}}",moveCursor:-3},{name:"Capacitor discharge",latex:"e^{\\frac{-t}{RC}}",scale:80},{name:"Radioactive decay",latex:"e^{-\\lambda t}",scale:80},{name:"Attenuation of rays",latex:"e^{-\\mu x}",scale:80},{name:"Delta x over delta t",latex:"\\frac{\\Delta{#}}{\\Delta{t}}",buttonLatex:"\\frac{\\Delta{x}}{\\Delta{t}}",moveCursor:-4},{name:"dxdt",latex:"\\frac{d}{d{t}}",buttonLatex:"\\frac{dx}{dt}",moveCursor:-4},{name:"Widehat",latex:"\\widehat{#}",buttonLatex:"\\widehat{x}"},{name:"Double dot",latex:"\\ddot{#}",buttonLatex:"\\ddot{x}"},{name:"Mathring",latex:"\\mathring{#}",buttonLatex:"\\mathring{x}"},{name:"Tilde",latex:"\\tilde{#}",buttonLatex:"\\tilde{x}"},{name:"Check",latex:"\\check{#}",buttonLatex:"\\check{x}"},{name:"Right arrow with text",latex:"\\xrightarrow[#]{#}",buttonLatex:"\\xrightarrow[text]{text}",scale:90},{name:"Vector OA",latex:"\\overrightarrow{\\rm OA}",scale:80,buttonLatex:"\\overrightarrow{\\rm OA}"},{name:"Vector OB",latex:"\\overrightarrow{\\rm OB}",scale:80,buttonLatex:"\\overrightarrow{\\rm OB}"},{name:"Vector PQ",latex:"\\overrightarrow{\\rm PQ}",scale:80,buttonLatex:"\\overrightarrow{\\rm PQ}"},{name:"1-vector",latex:"\\begin{bmatrix} a# \\end{bmatrix}",scale:70,buttonLatex:"\\begin{bmatrix} a \\end{bmatrix}"},{name:"1x2 matrix",latex:"\\begin{bmatrix} a# & b \\end{bmatrix}",scale:60,buttonLatex:"\\begin{bmatrix} a & b \\end{bmatrix}"},{name:"1x3 matrix",latex:"\\begin{bmatrix} a# & b & c \\end{bmatrix}",scale:38,buttonLatex:"\\begin{bmatrix} a & b & c \\end{bmatrix}"},{name:"2-vector",latex:"\\begin{bmatrix}\ra# \\\\\rb\r\\end{bmatrix}",scale:60,buttonLatex:"\\begin{bmatrix}\ra \\\\\rb\r\\end{bmatrix}"},{name:"2x2 matrix",latex:"\\begin{bmatrix}\ra# & b \\\\\rc & d\r\\end{bmatrix}",scale:60,buttonLatex:"\\begin{bmatrix}\ra & b \\\\\rc & d\r\\end{bmatrix}"},{name:"2x3 matrix",latex:"\\begin{bmatrix}\ra# & b & c \\\\\rd & e & f\r\\end{bmatrix}",scale:38,buttonLatex:"\\begin{bmatrix}\ra & b & c \\\\\rd & e & f\r\\end{bmatrix}"},{name:"3-vector",latex:"\\begin{bmatrix}\ra# \\\\\rb \\\\\rc\r\\end{bmatrix}",scale:40,buttonLatex:"\\begin{bmatrix}\ra \\\\\rb \\\\\rc\r\\end{bmatrix}"},{name:"3x2 matrix",latex:"\\begin{bmatrix}\ra# & b \\\\\rc & d \\\\\re & f\r\\end{bmatrix}",scale:40,buttonLatex:"\\begin{bmatrix}\ra & b \\\\\rc & d \\\\\re & f\r\\end{bmatrix}"},{name:"3x3 matrix",latex:"\\begin{bmatrix}\ra# & b & c \\\\\rd & e & f \\\\\rg & h & i\r\\end{bmatrix}",scale:38,buttonLatex:"\\begin{bmatrix}\r a & b & c \\\\\rd & e & f \\\\\rg & h & i\r\\end{bmatrix}"},{name:"1-vector round brackets",latex:"\\begin{pmatrix} a# \\end{pmatrix}",scale:70,buttonLatex:"\\begin{pmatrix} a \\end{pmatrix}"},{name:"2x2 matrix round brackets",latex:"\\begin{pmatrix}\ra# & b \\\\\rc & d\r\\end{pmatrix}",scale:55,buttonLatex:"\\begin{pmatrix}\ra & b \\\\\rc & d\r\\end{pmatrix}"},{name:"2x2 matrix curly brackets",latex:"\\begin{Bmatrix}\ra# & b \\\\\rc & d\r\\end{Bmatrix}",scale:55,buttonLatex:"\\begin{Bmatrix}\ra & b \\\\\rc & d\r\\end{Bmatrix}"}],S=[{name:"pounds",latex:"£",scale:100,buttonLatex:"£"},{name:"cents",latex:"¢",scale:100,buttonLatex:"¢"}],C={Common:["Squared","Power","Subscript","Over","Surd","Root","Nth root","Hat","Line","Ray","Line segment","Dot","dxdy","Partial dxdy","Integral a b","Sum a b","Product a b","Right arrow","Infinity","Limit x to infinity"],Operators:["Plus","Minus","Center dot","Times","Divide","Equals","Less than","Greater than","Not equal","Less than or equal","Greater than or equal","Plus or minus","Proportionate","Approximately","Implies"],Angles:["degree","theta","phi","pi","alpha","beta","gamma","delta","epsilon","Delta","angle","Parallel","Perpendicular","Similar","Congruent"],GreekLower:["alpha","beta","gamma","delta","epsilon","zeta","eta","theta","iota","kappa","lambda","mu","nu","xi","omicron","pi","rho","sigma","tau","upsilon","phi","varphi","chi","psi","omega"],GreekUpper:["Gamma","Delta","Theta","Lambda","Xi","Pi","Sigma","Phi","Psi","Omega","nabla"],Sets:["cup","cap","in","notin","emptyset","forall","exists","nexists","subset","subseteq","supset","supseteq","nsubset","nsubseteq","neg","Complex numbers","Natural numbers","Rational numbers","Real numbers","Integers"],Misc:["because","therefore","dots","cdots","ll","gg","leftarrow","leftrightarrow","Leftrightarrow","mapsto","bullet","circ","Box","bigcirc","bigtriangleup","bigtriangledown","heartsuit","diamondsuit","clubsuit","spadesuit"],Chemistry:["SubscriptN","SuperscriptN","Plus","Minus","_s","_g","_l","_aq","_e","_n","_p","_a","_em","_ep","_bm","_bp","gamma","_ga","Uranium symbol","Chemistry arrow"],Elements:["Type in Roman text","_Al","_Ar","_Be","_B","_C","_Ca","_Cl","_Co","_Cr","_Cu","_F","_Fe","_H","_He","_K","_Li","_Mg","_Mn","_N","_Na","_Ne","_Ni","_O","_P","_S","_Sc","_Si","_Ti","_Zn"],Physics1:["Squared","Power","Subscript","Over","Root","Nth root","Surd","Root a over b","Half","Third","Over root 2","Over root 3","sum","delta","Delta","Capacitor discharge","Radioactive decay","Attenuation of rays","Delta x over delta t","dxdt"],Physics2:["Plus","Minus","Plus or minus","Times","Equals","Approximately","Proportionate"],Physics3:["alpha","varepsilon","eta","gamma","lambda","omega","mu","nu","pi","rho","sigma","phi","Phi","theta","overline{v_e}","overline{v_\\mu}","Subscript zero","Subscript max","Subscript min","Subscript rms"],Expert:["langle","rangle","Double integral","Triple integral","Contour integral","Surface integral","Volume integral","Double dot","Widehat","Check","Tilde","Mathring","Right arrow with text","rightleftharpoons","Minus or plus"],Matrices:["1-vector","1x2 matrix","1x3 matrix","2-vector","2x2 matrix","2x3 matrix","3-vector","3x2 matrix","3x3 matrix","cdots","vdots","ddots","vec{a}","2x2 matrix round brackets","2x2 matrix curly brackets"]};function T(e){var t,n={name:e.name,latex:(t=e.latex,t.replace(/#/g,"")),latexWithMarks:e.latex},r=e.mathQuill;n.mathQuillLatex=null!=r?r:n.latex;var i=e.buttonLatex;n.buttonLatex=null!=i?i:n.latex;var a=e.scale;n.scale=null!=a?a:100;var o=e.moveCursor;n.moveCursor=null!=o?o:0;var s=e.typedText;n.typedText=null!=s&&s;var l=e.tooltip;if(null!=l){if(-1!==navigator.userAgent.indexOf("Mac OS X"))var u=String.fromCharCode(8997);else u="ALT";l=l.replace(/#/g,u),n.tooltip=l}else{var c=e.name,d=c.charAt(0);d=d.toUpperCase(),n.tooltip=d+c.substr(1)}return n}function E(e){for(var t={},n=0;n<e.length;n++){var r=T(e[n]);t[e[n].name]=r}return t}let q=null,A=null;function M(e){if(null===q&&(q=E(k),A=E(S)),e in q)return q[e];if(e in A)return A[e];if("_"===e.charAt(0)){if(e.charAt(1)>="A"&&e.charAt(1)<="Z")var t="\\mathrm{"+e.substring(1)+"}";return T({name:e,latex:t})}return T({name:e,latex:"\\"+e})}function N(e){return C[e]}function O(e){var t=M(e);return t?{latexWithMarks:t.latexWithMarks,mathQuillLatex:t.mathQuillLatex,moveCursor:t.moveCursor,typedText:t.typedText}:null}class z extends r.Component{shouldComponentUpdate(){return!!this.props.shouldUpdate&&this.props.shouldUpdate}constructor(e){super(e),this.suppliedClickHandler=null}static getButtonForDescendent(e){for(;e&&"button"!==e.tagName.toLowerCase();)e=e.parentNode;return e}static getSymbolName(e){var t=z.getButtonForDescendent(e);return t?t.getAttribute("name"):null}handleSymbolButtonMouseDown=e=>{e.preventDefault()};handleSymbolButtonClick=e=>{this.suppliedClickHandler(e),e.preventDefault()};render(){const{symbol:e,handleClick:t}=this.props;this.suppliedClickHandler=t;var n,i={fontSize:14*((n=M(e))?n.scale:null)/100+"px"};let a=function(e){var t=M(e);return t?t.html:null}(e);if(null==a){let t=function(e){var t=M(e);return t?t.buttonLatex:null}(e);a=o().renderToString(t);let n=a.indexOf('<span class="katex-mathml">'),r=-1;n>0&&(r=a.indexOf("</math></span>",n+30)),r>0&&(a=a.substring(0,n)+a.substring(r+14)),function(e,t){var n=M(e);if(!n)return!1;n.html=t}(e,a)}let s="SymbolButton";return this.props.highlight&&(s=s+" highlight-"+this.props.highlight),r.createElement("button",{name:e,className:s,style:i,onMouseDown:this.handleSymbolButtonMouseDown,onClick:this.handleSymbolButtonClick,ref:e=>{this.button=e}},r.createElement("div",{name:e,dangerouslySetInnerHTML:{__html:a}}))}}var D=n(539),L={};L.styleTagTransform=y(),L.setAttributes=m(),L.insert=p().bind(null,"head"),L.domAPI=d(),L.insertStyleElement=b(),u()(D.A,L),D.A&&D.A.locals&&D.A.locals;const I="_M_A_R_K_";(0,s.addStyles)();let _=[],B=["","",""];const R=["Common","More","Greek","Chemistry","Physics"],P=["Common","Operators","Angles","Misc","Sets","GreekLower","GreekUpper","Chemistry","Elements","Physics1","Physics2","Physics3"],j=["Common","More","Greek","Expert"],H=["Common","Operators","Angles","Misc","Sets","GreekLower","GreekUpper","Expert","Matrices"],F={Common:"Common",More:"Misc",Greek:"GreekLower",Chemistry:"Chemistry",Physics:"Physics1",Expert:"Expert"};let U=R[0];class Q extends r.Component{constructor(e){super(e),this.state={latex:e.latex,pretty:!1,selectedTab:U,recentSymbolsCount:0},this.mathQuill=null,this.handleInsertCallback=e.handleInsert,this.handleCancelCallback=e.handleCancel}handleInsert=()=>{this.handleInsertCallback(this.state.latex)};handleCancel=()=>{this.handleCancelCallback()};prettifyLatex(e){return e}handleChange=e=>{this.setState({latex:e.latex(),pretty:!1})};handleKeyDown=e=>{try{this.props.useExpertMode||"Enter"!==e.key||(this.handleInsertCallback(this.state.latex),e.preventDefault())}catch(e){console.error(e)}};updateRecentSymbols(e){let t=_,n=-1,r=-1,i=999999;for(let a=0;a<t.length;a++)t[a].name===e&&(n=a),t[a].count>0&&(t[a].count=.95*t[a].count),t[a].count<=i&&(i=t[a].count,r=a);n>=0?t[n].count=t[n].count+15:(t.length>=11&&t.splice(r,1),t.push({name:e,count:15})),_=t,B.pop(),B.unshift(e),this.setState({recentSymbolsCount:this.state.recentSymbolsCount+1})}handleInsertSymbol=e=>{this.props.useExpertMode?this.handleInsertSymbolKatex(e):this.handleInsertSymbolMathQuill(e)};isLetter=e=>"a"<=e&&e<="z"||"A"<=e&&e<="Z";movePosIfInsideTag(e,t){if(0===t||t===e.length)return t;let n=e.charAt(t);if(!this.isLetter(n))return t;let r=e.charAt(t-1);return this.isLetter(r)||"\\"===r?1===t?0:t===e.length-1?e.length:"\\"===e.charAt(t-1)?t-1:this.isLetter(e.charAt(t+1))?"\\"===e.charAt(t-2)?t-2:this.isLetter(e.charAt(t+2))?-1:t+2:t+1:t-1}handleInsertSymbolKatex=e=>{let t=null,n=-1,r=-1;try{if(this.updateRecentSymbols(e),t=this.latexInput.value,n=this.latexInput.selectionStart,r=this.latexInput.selectionEnd,n=this.movePosIfInsideTag(t,n),r=this.movePosIfInsideTag(t,r),-1===n||-1===r)return void console.log("Can't insert as cursor position or start or end of selection is inside a tag");this.latexInput.focus();let i=O(e).latexWithMarks,a=i.indexOf("##");a>=0&&(n!==r?(i=i.replace("##",t.substring(n,r)),t=t.substring(0,n)+t.substring(r),r=n):n>0?(i=i.replace("##",t.charAt(n-1)),t=t.substring(0,n-1)+t.substring(n),n-=1,r=n):i=i.replace("##","#")),n!==r&&(a=i.indexOf("#"),a>=0&&(i=i.replace("#",t.substring(n,r))),t=t.substring(0,n)+t.substring(r),r=n),i=i.replace("#",I),i=i.replaceAll("#",""),i=i.replace(I,"#");let o=t.substring(0,n)+i+I+t.substring(n),s=o.indexOf(I);o=o.substring(0,s)+o.substring(s+9),a=i.indexOf("#"),a>0&&(s=o.lastIndexOf("#",s),o=o.substring(0,s)+o.substring(s+1)),this.setState({latex:o},()=>{this.latexInput.selectionStart=s,this.latexInput.selectionEnd=s,this.latexInput.focus()})}catch(e){console.error(e)}};handleInsertSymbolMathQuill=e=>{try{this.updateRecentSymbols(e);let t=O(e);if(null==t)return console.err("Could not get latex insertion parameters for symbol: "+e),void this.mathQuill.focus();t.typedText?this.mathQuill.typedText(t.mathQuillLatex):this.mathQuill.write(t.mathQuillLatex),this.mathQuill.focus();for(let e=0;e<t.moveCursor;e++)this.mathQuill.keystroke("Right");for(let e=0;e>t.moveCursor;e--)this.mathQuill.keystroke("Left")}catch(t){console.error(t),console.log("Symbol: "+e)}};handleSelectTab=e=>{this.props.useExpertMode?this.latexInput.focus():this.mathQuill.focus(),U=e,this.setState({selectedTab:e},()=>{let t=this.symbolButtonAreasInnerContainer.childNodes;for(let n=0;n<t.length;n++)t[n].id===F[e]&&t[n].scrollIntoView({behavior:"smooth",inline:"start"})})};mathquillDidMount(e){this.mathQuill=e}componentDidMount(){this.equationEditorDiv.addEventListener("keydown",this.handleKeyDown);let e=this.symbolButtonAreasInnerContainer.childNodes;for(let t=0;t<e.length;t++)e[t].id===F[U]&&e[t].scrollIntoView({behavior:"auto",inline:"start"})}componentWillUnmount(){this.equationEditorDiv.removeEventListener("keydown",this.handleKeyDown)}isMobile(){return window.innerHeight>window.innerWidth&&window.innerHeight<820||window.innerHeight<500}isTouchDevice(){return"ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0}handleCursorLeft=()=>{this.mathQuill.keystroke("Left"),this.mathQuill.focus()};handleCursorRight=()=>{this.mathQuill.keystroke("Right"),this.mathQuill.focus()};handleLatexInputChange=e=>{this.setState({latex:e.target.value,pretty:!0})};renderLatexString=e=>{const t={children:"",displayMode:!1,output:"htmlAndMathml",leqno:!1,fleqn:!1,throwOnError:!1,errorColor:"#cc0000",macros:{},minRuleThickness:0,colorIsTextColor:!1,strict:"warn",trust:!1};try{return o().renderToString(e,t)}catch(t){return console.error("Could not convert latex string to html: ",e),"Error: Unable to render latex"}};render(){let e=null,t=null;this.props.useExpertMode&&(e=this.renderLatexString(this.state.latex),t=this.state.pretty?this.state.latex:this.prettifyLatex(this.state.latex));let n=R,i=P,a=null;this.props.useExpertMode&&(n=j,i=H,a=null);const o=_.slice(0,11).map((e,t)=>r.createElement(z,{className:"SymbolButton",key:"recent=symbol-"+t,symbol:e.name,shouldUpdate:!0,highlight:e.name===B[0]?"0":e.name===B[1]?"1":e.name===B[2]?"2":"none",handleClick:t=>this.handleInsertSymbol(e.name)}));if(null===a){let e=[];for(let t=0;t<i.length;t++)e[t]=Math.ceil(N(i[t]).length/5);a=e}const l=i.map((e,t)=>N(e).map((t,n)=>r.createElement(z,{className:"SymbolButton",key:e+"-symbol-"+n,highlight:e.toLowerCase(),symbol:t,handleClick:()=>this.handleInsertSymbol(t)})));return r.createElement("div",{className:"EquationEditor",ref:e=>this.equationEditorDiv=e},!this.props.useExpertMode&&r.createElement("div",{className:"editableAndCursorButtonsWrapper"},this.isTouchDevice()&&r.createElement("button",{className:"cursorButton",onClick:e=>this.handleCursorLeft()},"◁"),r.createElement("div",{ref:e=>this.editableWrapper=e,className:"editableWrapper"},r.createElement("div",{className:"centerBox"},r.createElement(s.EditableMathField,{className:"editable",latex:this.state.latex,placeholder:"Type equation ..",config:{autoOperatorNames:"sin cos tan sec cosec cot log ln lim min max"},mathquillDidMount:e=>this.mathquillDidMount(e),onChange:e=>this.handleChange(e)}),0===this.state.latex.length&&r.createElement("div",{className:"editable-placeholder"},"Type equation"))),this.isTouchDevice()&&r.createElement("button",{className:"cursorButton",onClick:e=>this.handleCursorRight()},"▷")),this.props.useExpertMode&&r.createElement("div",{className:"latexInputAreaWrapper"},r.createElement("textarea",{className:"latexInput",autoFocus:!0,placeholder:"Type latex",spellCheck:"false",ref:e=>this.latexInput=e,onChange:this.handleLatexInputChange,value:t}),r.createElement("div",{className:"katexRenderedInput",dangerouslySetInnerHTML:{__html:e}})),this.isMobile()&&r.createElement("button",{className:"cancelButton",type:"button",onClick:this.handleCancel},"Cancel"),r.createElement("button",{className:"insertButton",type:"button",onClick:this.handleInsert},"Insert"),!this.isMobile()&&r.createElement("div",{className:"recentSymbolsButtonArea"},_.length>0&&_.length<6&&r.createElement("span",{className:"recentSymbols-recentText-active"},"Recent:"),0===_.length&&r.createElement("span",{className:"recentSymbols-recentText-not-active"},"Recent:"),o),r.createElement("div",null,r.createElement("div",{className:"tabBar"},n.map((e,t)=>r.createElement("span",{key:"tabBar-"+e},this.state.selectedTab===e?r.createElement("span",{className:"tab-selected",selected:!0},e):r.createElement("span",{className:"tab",onClick:t=>this.handleSelectTab(e)},e)," "))),r.createElement("div",{className:"symbolButtonAreasOuterContainer"},r.createElement("div",{className:"symbolButtonAreasInnerContainer",ref:e=>this.symbolButtonAreasInnerContainer=e},l.map((e,t)=>r.createElement("div",{id:i[t],key:i[t],className:"symbolButtonArea symbolButtonArea-"+a[t]},e))))))}}var W=n(464),V={};V.styleTagTransform=y(),V.setAttributes=m(),V.insert=p().bind(null,"head"),V.domAPI=d(),V.insertStyleElement=b(),u()(W.A,V),W.A&&W.A.locals&&W.A.locals;let $=!1;class G extends r.Component{constructor(e){super(e),this.state={useExpertMode:$},this.handleCloseCallback=e.handleClose,this.handleInsertCallback=e.handleInsert}handleInsert=e=>{this.handleInsertCallback(e)};handleClose=()=>{this.handleCloseCallback()};componentDidMount(){setTimeout(()=>{this.focusEquationEditor()},100)}componentDidUpdate(e,t){t.useExpertMode!==this.state.useExpertMode&&setTimeout(()=>{this.focusEquationEditor()},100)}focusEquationEditor=()=>{console.log("🔍 Focusing equation editor..."),this.equationEditor?(console.log("🔍 EquationEditor ref found"),this.state.useExpertMode?(console.log("🔍 Expert mode - focusing latexInput"),this.equationEditor.latexInput?(this.equationEditor.latexInput.focus(),console.log("✅ LatexInput focused")):console.log("❌ LatexInput not found")):(console.log("🔍 Normal mode - focusing mathQuill"),this.equationEditor.mathQuill?(this.equationEditor.mathQuill.focus(),console.log("✅ MathQuill focused")):console.log("❌ MathQuill not found"))):console.log("❌ EquationEditor ref not found")};isMobile(){return window.innerHeight>window.innerWidth&&window.innerHeight<820||window.innerHeight<500}handleExpertModeSwitchChange(e){$=this.expertModeSwitch.checked,this.setState({useExpertMode:this.expertModeSwitch.checked})}render(){let e="EquationEditorModal";return this.isMobile()&&(e="EquationEditorModal-mobile"),r.createElement(r.Fragment,null,r.createElement("div",{className:"EquationEditorModal-background",onClick:this.handleClose}),r.createElement("div",{className:e,ref:e=>this.modalDiv=e},!this.isMobile()&&r.createElement("div",{className:"title"},"Equation Editor",r.createElement("div",{className:"expertModeSwitch"},"Expert mode",r.createElement("label",{className:"switch"},r.createElement("input",{type:"checkbox",ref:e=>this.expertModeSwitch=e,onChange:e=>this.handleExpertModeSwitchChange(e),checked:this.state.useExpertMode}),r.createElement("span",{className:"slider round"})))),r.createElement(Q,{ref:e=>this.equationEditor=e,latex:this.props.latex,useExpertMode:this.state.useExpertMode,handleInsert:this.handleInsert,handleCancel:this.handleClose})))}}var K=n(841),X={};X.styleTagTransform=y(),X.setAttributes=m(),X.insert=p().bind(null,"head"),X.domAPI=d(),X.insertStyleElement=b(),u()(K.A,X),K.A&&K.A.locals&&K.A.locals;const Y={a:["à","á","â","ä","æ","ã","å","ā"],c:["ç","ć","č"],e:["è","é","ê","ë","ē","ė","ę"],i:["î","ï","í","ī","į","ì"],l:["ł"],n:["ñ","ń"],o:["ô","ö","ò","ó","œ","ø","ō","õ"],s:["ß","ś","š"],u:["û","ü","ù","ú","ū"],y:["ÿ"],"?":["¿"],"!":["¡"],A:["À","Á","Â","Ä","Æ","Ã","Å","Ā"],C:["ç","ć","č"],E:["È","É","Ê","Ë","Ē","Ė","Ę"],I:["Î","Ï","Í","Ī","Į","Ì"],L:["Ł"],N:["Ñ","Ń"],O:["Ô","Ö","Ò","Ó","Œ","Ø","Ō","Õ"],S:["Ś","Š"],U:["Û","Ü","Ù","Ú","Ū"],Y:["Ÿ"]};let Z=[];function J(e,t){for(let n=0;n<t.length;n++)e.push(t.charAt(n));return e}function ee(e,t,n){for(let r=t;r<=n;r++)e.push(String.fromCharCode(r));return e}const te=function(){let e=[];return J(e,"ΓΔΘΛΞΠΣΦΨψΩ∇"),e}(),ne=function(){let e=[];return ee(e,945,969),e}(),re=function(){let e=[];return e.push("+","-","×","÷","=","▢","±","⋅","≠","≈","→","<",">","≤","≥","√","∛","∜","²","³","⁴","∞","π","°","∠"),e.push("〈","〉","⌈","⌉","⌊","⌋"),e}(),ie=function(){let e=[];return J(e,"ℑℜℂℕℙℚℝℤ"),e}(),ae=function(){let e=[];return e.push("½","⅓","⅔","¼","¾","⅕","⅖","⅗","⅘","⅙","⅚","⅐","⅛","⅜","⅝","⅞","⅑","⅒"),e}(),oe=function(){let e=[];return ee(e,8704,8959),e}(),se=function(){let e=[];return ee(e,8592,8703),e}(),le=function(){let e=[];return J(e,"$¢£€¥₹₤฿₴₭₺₪₦₱₽₩"),e}(),ue=function(){let e=[];return J(e,"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"),e}(),ce=function(){let e=[];return J(e,"0123456789⃝⃞"),e}(),de=function(){let e=[];return J(e,"!@#%^&*|"),e}(),he=function(){let e=[];return e.push("😀","😀","😁","😆","😅","😂","🤣","😊","😇","🙂","🙃","😉","😍","🥰","😘","😜","🤪","🤨","🤓","😎","🤩","🥳","🙁","🥺","😢","😭","😤","🤯","😳","🥶","😱","🤗","🤔","🤫","🤥","😶","😐","😴","🤐","🥴","🤠","😈","👹","👺","🤡","💩","👻","💀","☠️","👽","👾","🤖","🎃","😺","😸","😹","😻","😼","😽","🙀","😿","😾"),e}(),pe=function(){let e=[];return e.push("✍️","👏","🤝","👍","👎","🤞","👆","👇","✋","💪","🙏"),e.push("👂","👃","🧠","👁","👶","👧","👦","👩","👨","👳‍♂️","🧕","🙋‍♀️","🙋‍♂️","🙎‍♀️","🙎‍♂️","👩‍🎓","👨‍🎓","👩‍💻","👨‍💻","👩‍🏫","👨‍🏫"),e}(),fe=function(){let e=[];return e.push("🐶","🐱","🐭","🐹","🐰","🦊","🐻","🐼","🐨","🐯","🦁","🐮","🐷","🐽","🐸","🐵","🙈","🙉","🙊","🐔","🐧","🐦","🐤","🐣","🐥","🦆","🦅","🦉","🦇","🐺","🐗","🐴","🦄","🐝","🐛","🦋","🐌","🐞","🐜","🦟","🦗","🕷","🕸","🦂","🐢","🐍","🦎","🦖","🦕","🐙","🦑","🦐","🦞","🦀","🐡","🐠","🐟","🐬","🐳","🐋","🦈","🐊","🦍","🐘","🐅","🐆","🦓","🦛","🦏","🐪","🦒","🦘"),e}(),me=function(){let e=[];return e.push("🍄","🌹","🌸","🌼","🌻","🌞","🌙","🌎","⭐️","🌟","✨","🍏","🍎","🍐","🍊","🍋","🍌","🍉","🍇","🍓","🍈","🍒","🍑","🥭","🍍","🥥","🥝","🍅","🥚","🧀","🥖","🥐","🍔","🍟","🍕","🥪","🍦","🥧","🧁","🍰","🍭","🍬","🍫","🍿","🍩","🍪","🥤","🥛"),e}(),ge=function(){let e=[];return e.push("⚽️","🏀","🏈","⚾️","🥎","🎾","🏐","🏉","🥏","🎱","🏏","🏆","🥇","🥈","🥉","🏅","🎖","🎲","🎨","🎬","🎤","🎹","🎷"),e}(),be=function(){let e=[];return e.push("🚗","🚕","🚙","🚌","🏎","🚓","🚑","🚒","🚐","🚚","🚜","🛴","🚲","🛵","🏍","🚂","🚋","✈️","🛸","🚁","🛶","⛵️","🚤"),e}(),ve=function(){let e=[];return e.push("💰","💎","💣","🧨","⚗️","🔭","🔬","💉","🧬","🦠","🧫","🧪","🌡","🔑","🗝","🎁","🎈","📒","📗","📘","📙","📚","📖","📊","📈","🧮","❤️","🧡","💛","💚","💙","💜","🖤","⚪️","⚫️","🔴","🔵","🔺","🔻","🔸","🔹","🔶","🔷","♠️","♣️","♥️","♦️"),e}(),ye=["Accents","Greek","Math","Emoticons","More"];let xe=ye[0];class we extends r.Component{constructor(e){if(super(e),this.state={selectedTab:xe,top:-1,right:-1,shouldHorizontiallyAlign:!1},this.suppliedClickHandler=null,this.handleButtonClick=this.handleButtonClick.bind(this),this.letterForAccents=null,this.shouldUpdatePosition=!0,this.shouldUpdateReplaceCharacters=!0,this.isFullyMounted=!1,0===Z.length)for(let e in Y)Z.push(...Y[e])}handleButtonClick=(e,t,n=!1)=>{n?this.suppliedClickHandler(e,null,t):this.suppliedClickHandler(e,this.letterForAccents,t)};isInViewport=e=>{const t=e.getBoundingClientRect();return t.top>=0&&t.left>=0&&t.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&t.right<=(window.innerWidth||document.documentElement.clientWidth)};componentDidMount(){if(this.shouldUpdatePosition){let e=this.accentBar,t=e.parentNode;for(;null!==t&&!t.classList.contains("MathRichInput-Container");)t=t.parentNode;if(null===t)return void console.error("Could not find ancestor MathRichInput-Container find parent");const n=e.parentNode.getBoundingClientRect(),r=t.getBoundingClientRect(),i=e.getBoundingClientRect();this.shouldUpdatePosition=!1;let a=r.height+n.height+5;this.props.compactMode&&(a=r.height);let o=0,s=!1;i.width>r.width&&(s=!0,this.isInViewport(e)&&(o-=(i.width-r.width)/2)),this.setState({right:o,top:a,shouldHorizontiallyAlign:s})}else this.shouldUpdatePosition=!0}handleSelectTab=e=>{xe=e,this.setState({selectedTab:e})};componentDidUpdate=e=>{let t=this.props.keyPressed;if("Backspace"===t||"ArrowLeft"===t||"ArrowRight"===t)if(this.shouldUpdateReplaceCharacters){this.shouldUpdateReplaceCharacters=!1;let e=this.state;setTimeout(()=>{this.setState(e)},100)}else this.shouldUpdateReplaceCharacters=!0};render(){this.suppliedClickHandler=this.props.onButtonClick;let e=!1;null!==this.props.compactMode&&void 0!==this.props.compactMode&&(e=this.props.compactMode);let t=Z,n=this.props.keyPressed;this.isFullyMounted&&("Backspace"!==n&&"ArrowLeft"!==n&&"ArrowRight"!==n||this.shouldUpdateReplaceCharacters)||(n=this.props.fetchAccentLetter());let i=Y[n];this.letterForAccents=n,null==i&&(i=[]);let a=e?"AccentBar-compact":"AccentBar";this.props.className&&(a=a+" "+this.props.className);let o={...this.props.style};return-1===this.state.right&&-1===this.state.top||(this.props.compactMode&&!this.state.shouldHorizontiallyAlign||(o.right=this.state.right+"px"),o.top=this.state.top+"px"),r.createElement("div",{className:a,style:o,ref:e=>this.accentBar=e,onMouseDown:e=>e.preventDefault(),onMouseUp:e=>e.preventDefault(),onClick:e=>e.preventDefault()},e&&r.createElement(r.Fragment,null,i.map((e,t)=>r.createElement("button",{className:"AccentBar-button AB-narrow AB-compact",key:"accent-button-"+t,onMouseDown:e=>e.preventDefault(),onMouseUp:t=>this.handleButtonClick(t,e),onClick:e=>e.preventDefault()},e))),!e&&r.createElement("div",null,r.createElement("div",{className:"tabBar"},ye.map((e,t)=>r.createElement("span",{key:"tabBar-"+e},this.state.selectedTab===e?r.createElement("span",{className:"tab-selected",selected:!0},e):r.createElement("span",{className:"tab",onMouseDown:e=>e.preventDefault(),onMouseUp:e=>e.preventDefault(),onClick:t=>this.handleSelectTab(e)},e)," "))),r.createElement("div",{className:"AccentBar-outerContainer"},r.createElement("div",{className:"AccentBar-innerContainer"},"Accents"===this.state.selectedTab&&r.createElement("div",{className:"tabArea"},i.length>-1&&r.createElement("div",{className:"replace-section symbols-grid"},r.createElement("div",{className:"section-label"},"Replace"),0===i.length&&r.createElement("div",{className:"type-a-letter"},"Type a vowel to show replacements"),i.map((e,t)=>r.createElement("button",{className:"AccentBar-button AB-narrow",key:"accent-button-"+t,onMouseDown:e=>e.preventDefault(),onMouseUp:t=>this.handleButtonClick(t,e),onClick:e=>e.preventDefault()},e))),r.createElement("div",{className:"section-label"},"Insert"),r.createElement("div",{className:"symbols-grid insert-grid"},t.map((e,t)=>r.createElement("button",{className:"AccentBar-button AB-narrow",key:"accent-button-"+t,onMouseDown:e=>e.preventDefault(),onMouseUp:t=>this.handleButtonClick(t,e,!0),onClick:e=>e.preventDefault()},e)))),"Greek"===this.state.selectedTab&&r.createElement("div",{className:"tabArea"},r.createElement("div",{className:"section-label"},"Lower case"),r.createElement("div",{className:"symbols-grid insert-grid"},ne.map((e,t)=>r.createElement("button",{className:"AccentBar-button AB-narrow",key:"accent-button-"+t,onMouseDown:e=>e.preventDefault(),onMouseUp:t=>this.handleButtonClick(t,e,!0),onClick:e=>e.preventDefault()},e))),r.createElement("div",{className:"section-label"},"Capitals"),r.createElement("div",{className:"symbols-grid insert-grid"},te.map((e,t)=>r.createElement("button",{className:"AccentBar-button AB-narrow",key:"accent-button-"+t,onMouseDown:e=>e.preventDefault(),onMouseUp:t=>this.handleButtonClick(t,e,!0),onClick:e=>e.preventDefault()},e)))),"Math"===this.state.selectedTab&&r.createElement("div",{className:"tabArea"},r.createElement("div",{className:"section-label"},"Common"),r.createElement("div",{className:"symbols-grid insert-grid"},re.map((e,t)=>r.createElement("button",{className:"AccentBar-button AB-narrow",key:"accent-button-"+t,onMouseDown:e=>e.preventDefault(),onMouseUp:t=>this.handleButtonClick(t,e,!0),onClick:e=>e.preventDefault()},e))),r.createElement("div",{className:"section-label"},"Fractions"),r.createElement("div",{className:"symbols-grid insert-grid"},ae.map((e,t)=>r.createElement("button",{className:"AccentBar-button AB-narrow",key:"accent-button-"+t,onMouseDown:e=>e.preventDefault(),onMouseUp:t=>this.handleButtonClick(t,e,!0),onClick:e=>e.preventDefault()},e))),r.createElement("div",{className:"section-label"},"Letters"),r.createElement("div",{className:"symbols-grid insert-grid"},ie.map((e,t)=>r.createElement("button",{className:"AccentBar-button AB-narrow",key:"accent-button-"+t,onMouseDown:e=>e.preventDefault(),onMouseUp:t=>this.handleButtonClick(t,e,!0),onClick:e=>e.preventDefault()},e))),r.createElement("div",{className:"section-label"},"Advanced"),r.createElement("div",{className:"symbols-grid insert-grid"},oe.map((e,t)=>r.createElement("button",{className:"AccentBar-button AB-narrow",key:"accent-button-"+t,onMouseDown:e=>e.preventDefault(),onMouseUp:t=>this.handleButtonClick(t,e,!0),onClick:e=>e.preventDefault()},e))),r.createElement("div",{className:"section-label"},"Arrows"),r.createElement("div",{className:"symbols-grid insert-grid"},se.map((e,t)=>r.createElement("button",{className:"AccentBar-button AB-narrow",key:"accent-button-"+t,onMouseDown:e=>e.preventDefault(),onMouseUp:t=>this.handleButtonClick(t,e,!0),onClick:e=>e.preventDefault()},e)))),"Emoticons"===this.state.selectedTab&&r.createElement("div",{className:"tabArea"},r.createElement("div",{className:"section-label"},"Smileys"),r.createElement("div",{className:"symbols-grid insert-grid"},he.map((e,t)=>r.createElement("button",{className:"AccentBar-button AB-narrow",key:"accent-button-"+t,onMouseDown:e=>e.preventDefault(),onMouseUp:t=>this.handleButtonClick(t,e,!0),onClick:e=>e.preventDefault()},e))),r.createElement("div",{className:"section-label"},"People"),r.createElement("div",{className:"symbols-grid insert-grid"},pe.map((e,t)=>r.createElement("button",{className:"AccentBar-button AB-narrow",key:"accent-button-"+t,onMouseDown:e=>e.preventDefault(),onMouseUp:t=>this.handleButtonClick(t,e,!0),onClick:e=>e.preventDefault()},e))),r.createElement("div",{className:"section-label"},"Animals"),r.createElement("div",{className:"symbols-grid insert-grid"},fe.map((e,t)=>r.createElement("button",{className:"AccentBar-button AB-narrow",key:"accent-button-"+t,onMouseDown:e=>e.preventDefault(),onMouseUp:t=>this.handleButtonClick(t,e,!0),onClick:e=>e.preventDefault()},e))),r.createElement("div",{className:"section-label"},"Flowers and food"),r.createElement("div",{className:"symbols-grid insert-grid"},me.map((e,t)=>r.createElement("button",{className:"AccentBar-button AB-narrow",key:"accent-button-"+t,onMouseDown:e=>e.preventDefault(),onMouseUp:t=>this.handleButtonClick(t,e,!0),onClick:e=>e.preventDefault()},e))),r.createElement("div",{className:"section-label"},"Fun"),r.createElement("div",{className:"symbols-grid insert-grid"},ge.map((e,t)=>r.createElement("button",{className:"AccentBar-button AB-narrow",key:"accent-button-"+t,onMouseDown:e=>e.preventDefault(),onMouseUp:t=>this.handleButtonClick(t,e,!0),onClick:e=>e.preventDefault()},e))),r.createElement("div",{className:"section-label"},"Transport"),r.createElement("div",{className:"symbols-grid insert-grid"},be.map((e,t)=>r.createElement("button",{className:"AccentBar-button AB-narrow",key:"accent-button-"+t,onMouseDown:e=>e.preventDefault(),onMouseUp:t=>this.handleButtonClick(t,e,!0),onClick:e=>e.preventDefault()},e))),r.createElement("div",{className:"section-label"},"Miscellaneous"),r.createElement("div",{className:"symbols-grid insert-grid"},ve.map((e,t)=>r.createElement("button",{className:"AccentBar-button AB-narrow",key:"accent-button-"+t,onMouseDown:e=>e.preventDefault(),onMouseUp:t=>this.handleButtonClick(t,e,!0),onClick:e=>e.preventDefault()},e)))),"More"===this.state.selectedTab&&r.createElement("div",{className:"tabArea"},r.createElement("div",{className:"section-label"},"Symbols"),r.createElement("div",{className:"symbols-grid insert-grid"},de.map((e,t)=>r.createElement("button",{className:"AccentBar-button AB-narrow",key:"accent-button-"+t,onMouseDown:e=>e.preventDefault(),onMouseUp:t=>this.handleButtonClick(t,e,!0),onClick:e=>e.preventDefault()},e))),r.createElement("div",{className:"section-label"},"Currency"),r.createElement("div",{className:"symbols-grid insert-grid"},le.map((e,t)=>r.createElement("button",{className:"AccentBar-button AB-narrow",key:"accent-button-"+t,onMouseDown:e=>e.preventDefault(),onMouseUp:t=>this.handleButtonClick(t,e,!0),onClick:e=>e.preventDefault()},e))),r.createElement("div",{className:"section-label"},"Numbers"),r.createElement("div",{className:"symbols-grid insert-grid"},ce.map((e,t)=>r.createElement("button",{className:"AccentBar-button AB-narrow",key:"accent-button-"+t,onMouseDown:e=>e.preventDefault(),onMouseUp:t=>this.handleButtonClick(t,e,!0),onClick:e=>e.preventDefault()},e))),r.createElement("div",{className:"section-label"},"Letters"),r.createElement("div",{className:"symbols-grid insert-grid"},ue.map((e,t)=>r.createElement("button",{className:"AccentBar-button AB-narrow",key:"accent-button-"+t,onMouseDown:e=>e.preventDefault(),onMouseUp:t=>this.handleButtonClick(t,e,!0),onClick:e=>e.preventDefault()},e))))))))}}var ke=n(845),Se={};Se.styleTagTransform=y(),Se.setAttributes=m(),Se.insert=p().bind(null,"head"),Se.domAPI=d(),Se.insertStyleElement=b(),u()(ke.A,Se),ke.A&&ke.A.locals&&ke.A.locals;const Ce=/(Mac)/i.test(window.navigator.platform)?"⌘":"CTRL+";class Te extends r.Component{constructor(e){super(e),this.state={showAccents:!1,top:0,right:0,shouldHorizontiallyAlign:!1},this.handleButtonClick=this.handleButtonClick.bind(this),this.suppliedClickHandler=null,this.suppliedAccentLetterFetcher=null,this.suppliedAccentLetterReplacer=null,this.accentLetter=null,this.shouldUpdatePosition=!0}handleButtonClick=(e,t)=>{this.suppliedClickHandler(e,t)};showAccentBar=e=>{this.state.showAccents||(this.accentLetter=this.suppliedAccentLetterFetcher()),this.setState({showAccents:!0}),e.preventDefault()};hideAccentBar=e=>{this.setState({showAccents:!1})};showOrHideAccentBar=e=>{this.state.showAccents||(this.accentLetter=this.suppliedAccentLetterFetcher()),this.setState({showAccents:!this.state.showAccents})};handleButtonClick=(e,t)=>{this.suppliedClickHandler(e,t)};handleAccentButtonClick=(e,t,n)=>{this.suppliedAccentLetterInserter(e,t,n)};isInViewport=e=>{const t=e.getBoundingClientRect();return t.top>=0&&t.left>=0&&t.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&t.right<=(window.innerWidth||document.documentElement.clientWidth)};componentDidMount(){if(this.shouldUpdatePosition){let e=this.toolbar,t=e.parentNode;for(;null!==t&&!t.classList.contains("MathRichInput-Container");)t=t.parentNode;if(null===t)return void console.error("Could not find ancestor MathRichInput-Container find parent");let n=t.getBoundingClientRect(),r=e.getBoundingClientRect();this.shouldUpdatePosition=!1;let i=-1*(r.height+5+this.props.extraMargin),a=0,o=!1;r.width>n.width&&(o=!0,this.isInViewport(e)&&(a-=(r.width-n.width)/2)),this.setState({right:a,top:i,shouldHorizontiallyAlign:o})}else this.shouldUpdatePosition=!0}render(){this.suppliedClickHandler=this.props.onButtonClick,this.suppliedAccentLetterFetcher=this.props.fetchAccentLetter,this.suppliedAccentLetterInserter=this.props.insertAccentLetter;let e=this.props.enableFontStyling??!0,t=this.props.enableMath??!0,n=o().renderToString("f(x)"),i=n.indexOf('<span class="katex-mathml">'),a=-1;i>0&&(a=n.indexOf("</math></span>",i+30)),a>0&&(n=n.substring(0,i)+n.substring(a+14));let s={...this.props.style};return 0===this.state.right&&0===this.state.top||(this.props.compactMode&&!this.state.shouldHorizontiallyAlign||(s.right=this.state.right+"px"),s.top=this.state.top+"px"),r.createElement("div",{className:"Toolbar",style:s,ref:e=>this.toolbar=e},e&&r.createElement(r.Fragment,null,r.createElement("button",{name:"Bold",className:"Toolbar-button TB-narrow"+(this.props.activeButtons.bold?" TB-selected":""),onClick:e=>e.preventDefault(),onMouseDown:e=>e.preventDefault(),onMouseUp:e=>this.handleButtonClick(e,"Bold")},r.createElement("b",null,"B")),r.createElement("button",{name:"Italic",className:"Toolbar-button TB-narrow"+(this.props.activeButtons.italic?" TB-selected":""),onClick:e=>e.preventDefault(),onMouseDown:e=>e.preventDefault(),onMouseUp:e=>this.handleButtonClick(e,"Italic")},r.createElement("i",null,"I")),r.createElement("button",{name:"Underline",className:"Toolbar-button TB-narrow"+(this.props.activeButtons.underline?" TB-selected":""),onClick:e=>e.preventDefault(),onMouseDown:e=>e.preventDefault(),onMouseUp:e=>this.handleButtonClick(e,"Underline")},r.createElement("u",null,"U")),r.createElement("button",{name:"Superscript",className:"Toolbar-button TB-narrow"+(this.props.activeButtons.superscript?" TB-selected":""),onClick:e=>e.preventDefault(),onMouseDown:e=>e.preventDefault(),onMouseUp:e=>this.handleButtonClick(e,"Superscript")},"a",r.createElement("sup",null,"x")),r.createElement("button",{name:"Subscript",className:"Toolbar-button TB-narrow"+(this.props.activeButtons.subscript?" TB-selected":""),onClick:e=>e.preventDefault(),onMouseDown:e=>e.preventDefault(),onMouseUp:e=>this.handleButtonClick(e,"Subscript")},"a",r.createElement("sub",null,"x"))),r.createElement("button",{name:"Accents",className:"Toolbar-button TB-narrow"+(this.state.showAccents?" TB-selected":""),onMouseDown:e=>e.preventDefault(),onClick:e=>e.preventDefault(),onMouseUp:e=>this.showOrHideAccentBar(e)},"á"),t&&r.createElement("button",{name:"Equation",className:"Toolbar-button TB-wide",onMouseDown:e=>this.handleButtonClick(e,"Equation")},r.createElement("div",{dangerouslySetInnerHTML:{__html:n}}),r.createElement("span",{className:"tooltiptext"},"Insert equation [",Ce,"Enter]")),this.state.showAccents&&r.createElement(we,{accentLetter:this.accentLetter,keyPressed:this.props.keyPressed,fetchAccentLetter:this.props.fetchAccentLetter,onButtonClick:(e,t,n)=>this.handleAccentButtonClick(e,t,n)}))}}const Ee=/\$\$[\s\S]+?\$\$|\\\[[\s\S]+?\\\]|\\\([\s\S]+?\\\)|\$[^$\\]*(?:\\.[^$\\]*)*\$/g,qe=/\$\$[\s\S]+?\$\$|\\\[[\s\S]+?\\\]/g,Ae=/\\[a-zA-Z]/g,Me=/&(#36|quot|apos|lt|gt|amp|#44|#58|#124);/,Ne=/<(br|basefont|hr|input|source|frame|param|area|meta|!--|col|link|option|base|img|wbr|!DOCTYPE).*?>|<(a|abbr|acronym|address|applet|article|aside|audio|b|bdi|bdo|big|blockquote|body|button|canvas|caption|center|cite|code|colgroup|command|datalist|dd|del|details|dfn|dialog|dir|div|dl|dt|em|embed|fieldset|figcaption|figure|font|footer|form|frameset|head|header|hgroup|h1|h2|h3|h4|h5|h6|html|i|iframe|ins|kbd|keygen|label|legend|li|map|mark|menu|meter|nav|noframes|noscript|object|ol|optgroup|output|p|pre|progress|q|rp|rt|ruby|s|samp|script|section|select|small|span|strike|strong|style|sub|summary|sup|table|tbody|td|textarea|tfoot|th|thead|time|title|tr|track|tt|u|ul|var|video).*?<\/\2>/i,Oe=/<math>/i,ze=/^[a-zA-Z]*[,."';:?!]*$/i;function De(e){return"$"===e[0]&&"$"!==e[1]?e.slice(1,-1):e.slice(2,-2)}const Le="<math>",Ie="</math>",_e=/\$\$[\s\S]+?\$\$|\\\[[\s\S]+?\\\]|\\\([\s\S]+?\\\)|\$[^$\\]*(?:\\.[^$\\]*)*\$/g,Be=/\$\$[\s\S]+?\$\$|\\\[[\s\S]+?\\\]/g,Re=/<math>[\s\S]*?<\/math>/gi,Pe='<span class="base">',je=String.fromCharCode(0),He=new RegExp(je,"g"),Fe=String.fromCharCode(1),Ue=new RegExp(Fe,"g"),Qe=/\\\$/g,We=8203,Ve=String.fromCharCode(We),$e=new RegExp(Ve,"g"),Ge=new RegExp("<[p|P]>","g"),Ke="<p>"+Ve,Xe="text/plain";function Ye(e){return"katex"===e.className||"katex-error"===e.className}function Ze(e){return 3===e.nodeType}function Je(e){if(1!==e.nodeType)return!1;const t=e.tagName.toLowerCase();return"span"===t?!Ye(e):"b"===t||"strong"===t||"i"===t||"em"===t||"u"===t||"sup"===t||"sub"===t||"p"===t}function et(e){return void 0!==e.tagName&&"br"===e.tagName.toLowerCase()}function tt(e){return 3===e.nodeType&&e.nodeValue.length>=1&&e.nodeValue.charCodeAt(0)===We}function nt(e){return 3===e.nodeType&&1===e.nodeValue.length&&e.nodeValue.charCodeAt(0)===We}function rt(e,t=null){if(null===t&&(t={math:0,html:0,text:0}),null==e||void 0===e)return console.error("Node: "+e),t;if(Ye(e)?t.math++:Je(e)?t.html++:Ze(e)&&t.text++,Ye(e))return t;if(null===e.childNodes||void 0===e.childNodes)return t;for(let n=0;n<e.childNodes.length;n++)rt(e.childNodes[n],t);return t}function it(e){let t=function(e){return 3===e.nodeType?e.nodeValue:1===e.nodeType?(e=Nt(e)).nodeValue:(console.error("Trying to get length of node that is not text or BUI: "),console.log(e),null)}(e);return null==t?-1:t.length}function at(e){return e.replace(He,"")}function ot(e,t){let n=e.indexOf(je);return n<0?(console.warn("Can't replace character before mark. Start: "+n),e):e.substring(0,n)+t+e.substring(n)}function st(e,t){if(e.tagName===t)return e;if(null!==e.childNodes&&void 0!==e.childNodes)for(let n=0;n<e.childNodes.length;n++){let r=st(e.childNodes[n],t);if(null!==r)return r}return null}function lt(e){try{let t=st(e,"annotation");return t?t.childNodes&&0!==t.childNodes.length?t.childNodes[0]&&t.childNodes[0].nodeValue?t.childNodes[0].nodeValue:(console.warn("KaTeX annotation missing text content"),"error"):(console.warn("KaTeX annotation element has no child nodes"),"error"):(console.warn("KaTeX node missing annotation element"),"error")}catch(t){return console.error("Error extracting LaTeX from KaTeX node:",t),console.log("Problematic node:",e),"error"}}function ut(e){return(e=(e=(e=(e=(e=(e=(e=(e=e.replace(/&/g,"&amp;")).replace(/>/g,"&gt;")).replace(/</g,"&lt;")).replace(/'/g,"&apos;")).replace(/"/g,"&quot;")).replace(/\$/g,"&#36;")).replace(/,/g,"&#44;")).replace(/:/g,"&#58;")).replace(/\|/g,"&#124;")}var ct,dt,ht,pt=(ct=/&(#36|quot|apos|lt|gt|amp|#44|#58|#124);/g,dt={"#36":"$",quot:'"',apos:"'",lt:"<",gt:">",amp:"&","#44":",","#58":":","#124":"|"},ht=function(e,t){return dt[t]},function(e){return e.replace(ct,ht)});function ft(e){return e.replace(/\$/g,"\\$")}function mt(e){return e.replace(/\\\$/g,"$")}function gt(e,t,n){return t!==Xe?e:n?pt(e):mt(e)}function bt(e,t,n,r,i=!0){if(0===r)n&&(e.push(je),e.push(je)),e.push(t);else if(i){let i=pt(t);e.push(ut(i.substring(0,r))),n&&(e.push(je),e.push(je)),e.push(ut(i.substring(r)))}else{let i=mt(t);e.push(ft(i.substring(0,r))),n&&(e.push(je),e.push(je)),e.push(ft(i.substring(r)))}}function vt(e,t,n=null,r=0,i=!0){let a=!1;e===n&&(a=!0);try{if(Ze(e))bt(t,i?ut(e.nodeValue):ft(e.nodeValue),a,r,i);else if(Je(e)){i&&t.push("<"+e.nodeName+">");for(let a=0;a<e.childNodes.length;a++)vt(e.childNodes[a],t,n,r,i);i&&t.push("</"+e.nodeName+">")}else Ye(e)?(a&&t.push(je),t.push(i?Le:"\\["),t.push(lt(e)),t.push(i?Ie:"\\]"),a&&t.push(je)):et(e)?(a&&t.push(je),t.push("\n"),a&&t.push(je)):(console.error("Can't render node in editable div: Unknown node type"),console.log(e),console.log("Node.type:"+e.type),console.log("Node.tagName:"+e.tagName))}catch(t){console.error(t),console.log("Node: "),console.log(e),console.log("Node.type:"+e.type),console.log("Node.tagName:"+e.tagName)}}function yt(e,t=null,n=0,r=!0){if("<p><br></p>"===e.innerHTML||"<br>"===e.innerHTML||""===e.innerHTML)return"";let i=e.childNodes,a=[];if(null!=i&&0!==i.length||null===t)for(let e=0;e<i.length;e++)vt(i[e],a,t,n,r);else bt(a,"",!0,0);let o=a.join("");return o=o.replace($e,""),o}function xt(e,t,n=!0){let r=e.indexOf(je),i=e.indexOf(je,r+je.length);return e.substring(0,r)+(n?Le:"\\[")+t+(n?Ie:"\\]")+e.substring(i+je.length)}function wt(e){return"$"===e[0]&&"$"!==e[1]?e.slice(1,-1):e.slice(2,-2)}function kt(e){let t=e.indexOf(">"),n=e.lastIndexOf("<");return t<=0||n<=0?(console.error("Could not strip tag from string: "+e),e):e.substring(t+1,n)}function St(e){return e.match(Be)?"block":"inline"}function Ct(e,t,n){let r,i={children:"",displayMode:!1,output:"htmlAndMathml",leqno:!1,fleqn:!1,throwOnError:!1,errorColor:"#cc0000",macros:{},minRuleThickness:0,colorIsTextColor:!1,strict:"warn",trust:!1};try{r=e.renderToString(t,"block"===n?Object.assign({displayMode:!0},i):i)}catch(e){return console.error("couldn`t convert string",t),t}try{let e=r,t=e.indexOf(Pe);do{if(t=e.indexOf(Pe,t+19),t<0)break;let n=e.lastIndexOf("</span>",t);e=e.substring(0,n)+e.substring(t+19)}while(t>0);r=e}catch(e){console.log(e)}return r}function Tt(e,t,n){if(""===t)return"<p>"+Ve+"</p>";if(null!=n&&""!==n||(n=function(e){return Oe.test(e)}(r=t)?"application/x-zzish-html-math":function(e){return e=e.replace(/[\r\n]+/g," "),!!Me.test(e)||!(e.indexOf("<")<0)&&Ne.test(e)}(r)?"text/html":function(e){let t=e.indexOf("$");if(t<0)return!1;if(e.indexOf("\\$")>=0)return!0;if(t=e.indexOf("$",t+1),t<0)return!1;let n=e.match(qe);if(null==n&&(n=e.match(Ee)),null==n||0===n.length)return!1;for(let e=0;e<n.length;e++)n[e]=De(n[e]);t=e.indexOf("$");let r=!1;for(;t>=0;){if(t===e.length-1){r=!0;break}let n=e.charAt(t+1);if(n<"0"||n>"9"){r=!0;break}t=e.indexOf("$",t+1)}if(r){let e=!0;for(let t=0;t<n.length;t++)""!==n[t]&&(e=!1);if(e)return!1;for(let e=0;e<n.length;e++){let t=n[e].split(" ");if(t.length>=2){let e=!0,n=!1;for(let r=0;r<t.length;r++){if(t[r].length>0&&!1===ze.test(t[r])){e=!1;break}t[r].length>=3&&(n=!0)}if(e&&n)return!1}}return!0}for(let e=0;e<n.length;e++)if(null!==n[e].match(Ae))return!0;return!1}(r)?"application/x-tex":"text/plain"),n===Xe)return ut(t);var r;let i;"application/x-tex"===n||"application/x-latex"===n?i=!0:"text/html"===n||"application/x-zzish-html-math"===n?i=!1:(i=!1,console.error("Unknown mime type: "+n)),i&&(t=t.replace(Qe,Fe));const a=t.split(i?_e:Re);if(i)for(let e=0;e<a.length;e++)a[e]=a[e].replace(Ue,"$"),a[e]=ut(a[e]);else for(let e=0;e<a.length;e++)a[e]=a[e].replace(Ge,Ke);if(""===a[0]&&(a[0]="&#"+Ve.charCodeAt(0)),1===a.length)return a[0];const o=t.match(i?_e:Re),s=[];for(let t=0;t<a.length;t++)if(s.push(a[t]),o[t]){let n,r=o[t];i?(n=St(r),r=wt(r),r=r.replace(Ue,"\\$")):(n="inline",r=kt(r));let a=Ct(e,r,n);a=a+"&#"+Ve.charCodeAt(0),s.push(a)}return s.join("")}function Et(e,t,n=null){if(null===n){if(e===t)return 0;n={count:0}}else{if(Ye(e))return e===t||e.contains(t)?n.count:(n.count++,-1);if(et(e)){if(e===t)return n.count;{const t=e.nextSibling;return null!=t&&et(t)?(n.count++,-1):-1}}if(Ze(e)){if(e===t)return n.count;n.count++}}const r=e.childNodes;if(null==r)return-1;for(let e=0;e<r.length;e++){let i=Et(r[e],t,n);if(i>=0)return i}return-1}function qt(e,t,n=null){if(null===n){if(0===t&&function(e){return null===e.childNodes||void 0===e.childNodes||0===e.childNodes.length}(e))return e;n={count:0}}else{if(Ye(e))return t===n.count?e:(n.count++,null);if(et(e)){if(t===n.count)return e;{const t=e.nextSibling;return null!=t&&et(t)?(n.count++,null):null}}if(Ze(e)){if(t===n.count)return e;n.count++}}const r=e.childNodes;if(null==r)return null;for(let e=0;e<r.length;e++){let i=qt(r[e],t,n);if(null!==i)return i}return null}function At(e,t,n,r=null){if(null==r)throw error;if(e===t)return r.offset=r.offset+n,Ze(e)&&tt(e)&&n>0&&(r.offset=r.offset-1),!0;if(Ye(e))return!(e!==t&&!e.contains(t)&&(r.offset++,1));if(Ze(e))return r.offset+=e.nodeValue.length,tt(e)&&(r.offset-=1),!1;const i=e.childNodes;if(null==i)return!1;for(let e=0;e<i.length;e++)if(At(i[e],t,n,r))return!0;return 1===e.nodeType&&"P"===e.tagName&&r.offset++,!1}function Mt(e,t,n=null){if(Ye(e))return n.node=null,n.offset++,!1;if(Ze(e))return n.node=e,n.lastTextNode=e,n.offset+=e.nodeValue.length,tt(e)&&(n.offset-=1),!1;const r=e.childNodes;if(null==r)return!1;for(let e=0;e<r.length;e++){if(Mt(r[e],t,n))return!0;if(null!==n.node&&void 0!==n.node&&n.offset>=t)return n.offset=t-(n.offset-n.node.nodeValue.length),!0}return 1===e.nodeType&&"P"===e.tagName&&(n.node=null,n.offset++),!1}function Nt(e){if(Ze(e))return e;const t=e.childNodes;for(let e=0;e<t.length;e++){let n=Nt(t[e]);if(null!==n)return n}return null}function Ot(e,t){let n={offset:0};return Mt(e,t,n),null===n.node&&(t>0&&null!==n.lastTextNode?(n.node=n.lastTextNode,n.offset=n.lastTextNode.nodeValue.length):(console.warn("Unable to find node and offset for global offset: "+t),console.log(e.innerHTML),console.log(n),n.node=Nt(e),n.offset=0)),0===n.offset&&n.node.nodeValue.length>0&&tt(n.node)&&(n.offset=1),n.offset>n.node.nodeValue.length&&(console.warn("Unexpected offset when converting global offset to node and offset"),console.log("Global offset: "+t),console.log("Result:"),console.log(n),console.log("result.offset > result.node.nodeValue.length"),console.log("Node value: '"+n.node.nodeValue+"'"),console.log("Node value length: "+n.node.nodeValue.length),console.log("Calculated offset: "+n.offset),n.offset=n.node.nodeValue.length),n}function zt(e){if(Ze(e))return document.createTextNode(e.nodeValue);if(Ye(e))return e.cloneNode(!0);if(1===e.nodeType&&"math"===e.tagName.toLowerCase())return e.cloneNode(!0);if("HEAD"===e.tagName||"STYLE"===e.tagName||"LINK"===e.tagName)return null;let t=null;if(t=Je(e)?document.createElement(e.tagName):1!==e.nodeType||"LI"!==e.tagName&&"DT"!==e.tagName&&"DD"!==e.tagName&&"THEAD"!==e.tagName&&"TR"!==e.tagName&&"H1"!==e.tagName&&"H2"!==e.tagName&&"H3"!==e.tagName&&"H4"!==e.tagName&&"H5"!==e.tagName&&"H6"!==e.tagName?document.createElement("span"):document.createElement("p"),e.hasChildNodes())for(let n=0;n<e.childNodes.length;n++){let r=zt(e.childNodes[n]);null!==r&&t.appendChild(r),"TH"!==e.childNodes[n].tagName&&"TD"!==e.childNodes[n].tagName||t.appendChild(document.createTextNode(" "))}return t}const Dt=new RegExp("<span>|</span>","g"),Lt='<span class="katex"';function It(e){e=e.replace(/<br[\s\S]*?>/gm,"");var t=document.createElement("div");t.innerHTML=e;let n=zt(t).innerHTML,r=0,i=0,a=0,o=[];do{if(a++,i=n.indexOf(Lt,r),i<0){let e=n.substring(r,n.length);e=e.replace(Dt,""),o.push(e);break}let e=n.substring(r,i);e=e.replace(Dt,""),o.push(e);let t=n.indexOf("</span></span></span></span>",i)+28;t<0&&(console.warn("Unable to find closing katex tag"),t=n.length),o.push(n.substring(i,t)),r=t}while(i>0&&a<20);n=o.join(""),n=n.replace(/(\r\n|\r|\n)/gm,""),n=n.replace(/\s{2,}/gm," "),r=0,i=0,a=0,o=[];do{if(a++,i=n.indexOf("</p>",r),i<0){o.push(n.substring(r,n.length));break}if(i+=4,o.push(n.substring(r,i)),i===n.length)break;if(i+3>n.length){o.push("<p>"),o.push(n.substring(i,n.length)),o.push("</p>");break}let e=n.substring(i,i+3);if("<p>"===e){r=i;continue}if(i+19<n.length&&(e=n.substring(i,i+19),e===Lt)){r=i;continue}o.push("<p>");let t=n.indexOf("<p>",i);t<0&&(t=n.length),o.push(n.substring(i,t)),o.push("</p>"),r=t}while(i>0&&a<20);return n=o.join(""),n}function _t(e){return!e||/[\s\.,;:!?\-\(\)\[\]{}'"]/g.test(e)}function Bt(e,t,n){let r=t,i=e.length;if(1===n){for(;r<i&&!_t(e[r]);)r++;for(;r<i&&_t(e[r]);)r++}else{for(r>0&&r--;r>0&&_t(e[r]);)r--;for(;r>0&&!_t(e[r-1]);)r--}return Math.max(0,Math.min(r,i))}function Rt(e,t,n){let r=t,i=e.length;if(1===n)for(;r<i&&"\n"!==e[r];)r++;else for(;r>0&&"\n"!==e[r-1];)r--;return Math.max(0,Math.min(r,i))}function Pt(e){let t=yt(e,null,0,!1);return t=at(t),t=t.replace(/<[^>]*>/g,""),t=t.replace(/&nbsp;/g," "),t=t.replace(/&amp;/g,"&"),t=t.replace(/&lt;/g,"<"),t=t.replace(/&gt;/g,">"),t=t.replace(/&quot;/g,'"'),t=t.replace(/&#39;/g,"'"),t}function jt(e,t){let n=Pt(e);return Math.min(t,n.length)}function Ht(e,t){let n=Pt(e);return Math.min(t,n.length)}var Ft=n(248),Ut={};Ut.styleTagTransform=y(),Ut.setAttributes=m(),Ut.insert=p().bind(null,"head"),Ut.domAPI=d(),Ut.insertStyleElement=b(),u()(Ft.A,Ut),Ft.A&&Ft.A.locals&&Ft.A.locals;const Qt="text/plain",Wt=String.fromCharCode(8203),Vt=Wt.length,$t=je,Gt=(new RegExp($t,"g"),{useExpertMode:!1,selectedTab:null}),Kt={a:"á",e:"é",i:"í",n:"ń",o:"ó",u:"ú",y:"ý",A:"Á",E:"É",I:"Í",N:"Ń",O:"Ó",U:"Ú",Y:"Ý"},Xt={a:"â",e:"ê",i:"î",o:"ô",u:"û",A:"Â",E:"Ê",I:"Î",O:"Ô",U:"Û"},Yt={a:"å",A:"Å"},Zt={a:"æ",o:"œ",s:"ß",A:"Æ",O:"Œ",S:"ß"},Jt={"?":"¿","!":"¡","/":"¿",1:"¡"},en={"`":{a:"à",e:"è",i:"ì",o:"ò",u:"ù",d:"ð",A:"À",E:"È",I:"Ì",O:"Ò",U:"Ù",D:"Ð"},"'":Kt,'"':Kt,"^":Xt,6:Xt,"~":{a:"ã",n:"ñ",o:"õ",A:"Ã",N:"Ñ",O:"Õ"},":":{a:"ä",e:"ë",i:"ï",o:"ö",u:"ü",y:"ÿ",A:"Ä",E:"Ë",I:"Ï",O:"Ö",U:"Ü",Y:"Ÿ"},"@":Yt,2:Yt,"&":Zt,7:Zt,",":{c:"ç",C:"Ç"},"/":{o:"ø",O:"Ø"},"-":{a:"ā",e:"ē",i:"ī",o:"ō",u:"ū",A:"Ā",E:"Ē",I:"Ī",O:"Ō",U:"Ū"}};class tn extends r.Component{constructor(e){super(e),this.state={showEquationEditor:!1,equationEditorLatex:"",showAccentBar:!1,activeButtons:{bold:!1,italic:!1,underline:!1,subscript:!1,superscript:!1},keyPressed:""},this.keyPressed=null,this.keyPressStartTime=-1,this.translateToolbar="",this.isHtml=!1,this.hasMath=!1,this.markedRawText=null,this.oldRangeParams={startNodeIndex:0,startOffset:0,endNodeIndex:0,endOffset:0},this.moveCursorOnInsert=!1,this.afterComponentUpdateData=null,this.lastSetRangeParmas=null,this.lastSetActiveButtons=null,this.onChangeCallback=this.props.onChange,this.initialHistoryState=null,this.undoHistory=[],this.redoHistory=[],this.accent="",this.isComposing=!1,this.selectionAnchor=null}enableFontStyling(){return null===this.props.enableFontStyling||void 0===this.props.enableFontStyling||this.props.enableFontStyling}enableMultiline(){return null===this.props.enableMultiline||void 0===this.props.enableMultiline||this.props.enableMultiline}enableHtml(){return!this.props.outputTex}enableMath(){return null===this.props.enableMath||void 0===this.props.enableMath||this.props.enableMath}getMimeType(e,t){let n=this.props.outputTex??!1,r=this.props.outputPlainText??!1;return n?!n||!t&&r?Qt:"application/x-tex":t?"application/x-zzish-html-math":e||!r?"text/html":Qt}_countNodeTypes=()=>rt(this.editableDiv);applyChangesToComponent=(e,t,n,r,i)=>{null===n&&(n=this.lastSetRangeParams),this.afterComponentUpdateData={rangeParams:n,value:e};let a=this.props.options||Gt;null===r&&(r=a.isExpertMode),null===i&&(i=a.selectedTab),this.undoHistory.push({value:e,mimeType:t,rangeParams:n}),this.undoHistory.length>100&&this.undoHistory.shift(),this.onChangeCallback({value:e,mimeType:t},{isExpertMode:r,selectedTab:i})};initialiseHistory=()=>{null==this.initialHistoryState&&(this.initialHistoryState={value:this.props.value,mimeType:this.props.mimeType,rangeParams:this._getRangeParams()})};resetHistoryRedo=()=>{this.redoHistory=[]};deepEqual=(e,t)=>{if(e===t)return!0;if(null==e||null==t||"object"!=typeof e||"object"!=typeof t)return!1;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let i of n)if(!r.includes(i)||!this.deepEqual(e[i],t[i]))return!1;return!0};undo=()=>{const e=this.undoHistory.pop();let t=this.undoHistory.pop();if(null==t&&(t=this.initialHistoryState),this.redoHistory.length>0){let t=this.redoHistory[this.redoHistory.length-1];this.deepEqual(t,e)||this.redoHistory.push(e)}else this.redoHistory.push(e);this.applyChangesToComponent(t.value,t.mimeType,t.rangeParams)};redo=()=>{const e=this.redoHistory.pop();null!==e&void 0!==e&&this.applyChangesToComponent(e.value,e.mimeType,e.rangeParams)};setOldRangeParams(e){this.oldRangeParams=e}getOldRangeParams(){return null===this.oldRangeParams||void 0===this.oldRangeParams?null:{...this.oldRangeParams}}_getRangeParams(e=null){null===e&&(e=this.editableDiv);let t=function(e){if(void 0===window.getSelection)return console.error("Can't get range params, browser does not support window.getSelection"),null;const t=window.getSelection();if(0===t.rangeCount)return console.error("Can't get range params, window.getSelection did not return any ranges"),null;const n=t.getRangeAt(0);if(3!==n.startContainer.nodeType){let e=Nt(n.startContainer);if(null===e)return console.log("getRangeParams: Empty content detected, using default range params. Node type: "+n.startContainer.nodeName),{startNodeIndex:0,startOffset:0,endNodeIndex:0,endOffset:0,startGlobalOffset:0,endGlobalOffset:0};console.warn("Adjusting start pos in getRangeParams as container was of type: "+n.startContainer.nodeName),n.setStart(e,0)}if(3!==n.endContainer.nodeType){let e=Nt(n.endContainer);if(null===e)return console.log("getRangeParams: Empty content detected, using default range params. Node type: "+n.endContainer.nodeName),{startNodeIndex:0,startOffset:0,endNodeIndex:0,endOffset:0,startGlobalOffset:0,endGlobalOffset:0};console.warn("Adjusting end pos in getRangeParams as container was of type: "+n.endContainer.nodeName),n.setEnd(e,0)}let r=Et(e,n.startContainer),i=Et(e,n.endContainer),a={offset:0};At(e,n.startContainer,n.startOffset,a);let o={offset:0};return At(e,n.endContainer,n.endOffset,o),{startNodeIndex:r,startOffset:n.startOffset,endNodeIndex:i,endOffset:n.endOffset,startGlobalOffset:a.offset,endGlobalOffset:o.offset}}(e);return t}_setRangeParams=e=>{try{(function(e,t){let n=null;try{if(null==t)return void console.error("Can't set range params: params === "+t);if(null!==t.startGlobalOffset&&void 0!==t.startGlobalOffset)return void function(e,t){let n=null;try{if(null==t)throw new Error("Can't set range params: params === "+t);let r=Ot(e,t.startGlobalOffset),i=Ot(e,t.endGlobalOffset);if(null===r.node)return void console.warn("Can't set range, null start node returned");n=document.createRange(),n.setStart(r.node,r.offset),n.setEnd(i.node,i.offset);const a=window.getSelection();a.removeAllRanges(),a.addRange(n)}catch(t){console.error(t),console.log("Trying to set range:"),console.log(n),console.log(e.childNodes)}}(e,t);if(null===t.startNodeIndex||void 0===t.startNodeIndex)return void console.error("Can't set range params: params.startNodeIndex === "+t.startNodeIndex);if(t.startNodeIndex<0)return void console.error("Can't set range params: params.startNodeIndex < 0");let r=e.childNodes;if(0===t.startNodeIndex&&0===t.startOffset&&0===r.length)return;let i=t.startOffset,a=t.endOffset;0===t.startNodeIndex&&1===t.startOffset&&nt(r[0])&&(i=0),0===t.endNodeIndex&&1===t.endOffset&&nt(r[0])&&(a=0);let o=qt(e,t.startNodeIndex),s=qt(e,t.endNodeIndex);null===o&&(console.warn("Could not set range to start node with index "+t.startNodeIndex),o=Nt(e),i=0),Ze(o)||(console.warn("Start node found for range start is not a text a node"),console.log(e.childNodes),console.log(t),console.log(o)),null===s&&(console.warn("Could not set range to end node with index "+t.endNodeIndex),s=Nt(e),a=0),Ze(s)||(console.warn("End node found for range start is not a text a node"),console.log(e.childNodes),console.log(t),console.log(o)),n=document.createRange(),i>o.nodeValue.length&&(console.warn("endOffset > endNode.nodeValue.length when setting range: "+i+" > "+o.nodeValue.length+" - "+stateNode.nodeType+" - "+o.nodeValue),i=o.nodeValue.length),n.setStart(o,i),a>s.nodeValue.length&&(console.warn("endOffset > endNode.nodeValue.length when setting range: "+a+" > "+s.nodeValue.length+" - "+s.nodeType+" - "+s.nodeValue),a=s.nodeValue.length),n.setEnd(s,a);const l=window.getSelection();l.removeAllRanges(),l.addRange(n)}catch(t){console.error(t),console.log("Trying to set range:"),console.log(n),console.log(e.childNodes)}})(this.editableDiv,e),this.setOldRangeParams(e),this.lastSetRangeParmas=e}catch(e){console.error(e)}};_findNodeWithIndex(e){return qt(this.editableDiv,e)}_findIndexOfNode(e){return Et(this.editableDiv,e)}_findFirstTextNode(){return Nt(this.editableDiv)}handleKeyDownBackspace=e=>{let t=this._getRangeParams(),n=t.startNodeIndex,r=t.endNodeIndex,i=t.startOffset,a=t.endOffset;if(n<0)return;let o=this._findNodeWithIndex(n),s=this._findNodeWithIndex(r);(Ye(o)||Ye(s))&&(console.error("Backspace inside latex node. This shouln't happen."),e.preventDefault());let l=!1;if(0===n&&1===i&&0===r&&1===a&&(Ye(o)||1!==it(o)||(l=!0)),0===n&&0===i&&0!==r&&it(s)===a&&null===this._findNodeWithIndex(r+1)&&(l=!0),l){let t={startNodeIndex:0,startOffset:1,endNodeIndex:0,endOffset:1,startGlobalOffset:0,endGlobalOffset:0};return this.applyChangesToComponent("",this.getMimeType(!1,!1),t,this.props.useExpertMode,this.props.selectedTab),void e.preventDefault()}if(i>1)return;if(n<=0)return;if(n!==t.endNodeIndex||i!==t.endOffset)return;let u=this._findNodeWithIndex(n-1);if(!Ye(u))return void(this.nodeStartsWithSmallSpace(o)&&(this.removeNewLine(),e.preventDefault()));let c=u,d=0,h=0;if(2===n)this.inputStartsWithSmallSpace()?(d=0,h=0):(d=0,h=it(this._findFirstTextNode()));else{d=n-2;let e=this._findNodeWithIndex(d);Ye(e)&&(console.error("Two adjacent latex nodes. This should not happen!"),d=0,h=0),e=this._findNodeWithIndex(d),h=it(e),h<0&&(h=0)}let p={startNodeIndex:d,startOffset:h,endNodeIndex:d,endOffset:h};c.parentNode.removeChild(c);let f=yt(this.editableDiv,null,0,this.enableHtml()),m=this._countNodeTypes(),g=this.getMimeType(m.html>0,m.math>0);f=gt(f,g,this.enableHtml()),this.applyChangesToComponent(f,g,p,this.props.useExpertMode,this.props.selectedTab),e.preventDefault()};nodeStartsWithSmallSpace(e){return null!==e.nodeValue&&void 0!==e.nodeValue&&e.nodeValue.length>0&&e.nodeValue.charAt(0)===Wt}inputStartsWithSmallSpace=()=>nt(Nt(this.editableDiv));getPlatformModifiers=()=>({isMac:/(Mac)/i.test(window.navigator.platform),isWindows:/(Win)/i.test(window.navigator.platform)});isWordModifier=e=>{const{isMac:t}=this.getPlatformModifiers();return t?e.altKey:e.ctrlKey};isLineModifier=e=>{const{isMac:t}=this.getPlatformModifiers();return t?e.metaKey:e.ctrlKey};handleKeyDownArrowLeft=e=>{let t=this._getRangeParams(),n=t.startGlobalOffset!==t.endGlobalOffset;if(!e.shiftKey&&n){this.selectionAnchor=null;let n={startGlobalOffset:t.startGlobalOffset,endGlobalOffset:t.startGlobalOffset};return e.preventDefault(),void this._setRangeParams(n)}let r=n?t.startGlobalOffset:t.endGlobalOffset,i=r;if(this.isLineModifier(e)){let e=Rt(Pt(this.editableDiv),jt(this.editableDiv,r),-1);i=Ht(this.editableDiv,e)}else if(this.isWordModifier(e)){let e=Bt(Pt(this.editableDiv),jt(this.editableDiv,r),-1);i=Ht(this.editableDiv,e)}else i=Math.max(0,r-1);let a=null;e.shiftKey?(null===this.selectionAnchor&&(this.selectionAnchor=n?t.endGlobalOffset:r),a={startGlobalOffset:Math.min(this.selectionAnchor,i),endGlobalOffset:Math.max(this.selectionAnchor,i)}):(this.selectionAnchor=null,a={startGlobalOffset:i,endGlobalOffset:i}),e.preventDefault(),this._setRangeParams(a)};handleKeyDownArrowRight=e=>{let t=this._getRangeParams(),n=t.startGlobalOffset!==t.endGlobalOffset;if(!e.shiftKey&&n){this.selectionAnchor=null;let n={startGlobalOffset:t.endGlobalOffset,endGlobalOffset:t.endGlobalOffset};return e.preventDefault(),void this._setRangeParams(n)}let r=t.endGlobalOffset,i=r;if(this.isLineModifier(e)){let e=Rt(Pt(this.editableDiv),jt(this.editableDiv,r),1);i=Ht(this.editableDiv,e)}else if(this.isWordModifier(e)){let e=Bt(Pt(this.editableDiv),jt(this.editableDiv,r),1);i=Ht(this.editableDiv,e)}else i=r+1;let a=null;e.shiftKey?(null===this.selectionAnchor&&(this.selectionAnchor=n?t.startGlobalOffset:r),a={startGlobalOffset:Math.min(this.selectionAnchor,i),endGlobalOffset:Math.max(this.selectionAnchor,i)}):(this.selectionAnchor=null,a={startGlobalOffset:i,endGlobalOffset:i}),e.preventDefault(),this._setRangeParams(a)};handleKeyDownArrowUp=e=>{let t=this._getRangeParams(),n=t.startGlobalOffset!==t.endGlobalOffset;if(!e.shiftKey&&n){this.selectionAnchor=null;let n={startGlobalOffset:t.startGlobalOffset,endGlobalOffset:t.startGlobalOffset};return e.preventDefault(),void this._setRangeParams(n)}let r=n?t.startGlobalOffset:t.endGlobalOffset,i=r;if(this.isLineModifier(e))i=0;else{let e=Pt(this.editableDiv),t=jt(this.editableDiv,r),n=Rt(e,t,-1);if(0===n)i=0;else{let r=t-n,a=n-1,o=Rt(e,a,-1),s=a-o,l=Math.min(r,s);i=Ht(this.editableDiv,o+l)}}let a=null;e.shiftKey?(null===this.selectionAnchor&&(this.selectionAnchor=n?t.endGlobalOffset:r),a={startGlobalOffset:Math.min(this.selectionAnchor,i),endGlobalOffset:Math.max(this.selectionAnchor,i)}):(this.selectionAnchor=null,a={startGlobalOffset:i,endGlobalOffset:i}),e.preventDefault(),this._setRangeParams(a)};handleKeyDownArrowDown=e=>{let t=this._getRangeParams(),n=t.startGlobalOffset!==t.endGlobalOffset;if(!e.shiftKey&&n){this.selectionAnchor=null;let n={startGlobalOffset:t.endGlobalOffset,endGlobalOffset:t.endGlobalOffset};return e.preventDefault(),void this._setRangeParams(n)}let r=t.endGlobalOffset,i=r;if(this.isLineModifier(e)){let e=Pt(this.editableDiv);i=Ht(this.editableDiv,e.length)}else{let e=Pt(this.editableDiv),t=jt(this.editableDiv,r),n=Rt(e,t,-1),a=Rt(e,t,1);if(a>=e.length)i=Ht(this.editableDiv,e.length);else{let r=t-n,o=a+1,s=Rt(e,o,1)-o,l=Math.min(r,s);i=Ht(this.editableDiv,o+l)}}let a=null;e.shiftKey?(null===this.selectionAnchor&&(this.selectionAnchor=n?t.startGlobalOffset:r),a={startGlobalOffset:Math.min(this.selectionAnchor,i),endGlobalOffset:Math.max(this.selectionAnchor,i)}):(this.selectionAnchor=null,a={startGlobalOffset:i,endGlobalOffset:i}),e.preventDefault(),this._setRangeParams(a)};editableDivIsPlainText=()=>null===this.editableDiv.childNodes||0===this.editableDiv.childNodes.length;handleKeyDownDollar=e=>{try{let t=this._getRangeParams(),n=this._findNodeWithIndex(t.startNodeIndex);if(3!==n.nodeType)return;let r=n.nodeValue,i=r.indexOf("$");if(i<0)return;if(i>=t.startOffset)return;let a=t.startOffset,o=r.charAt(a-1),s=!1;if((o>="a"&&o<="z"||o>="A"&&o<="Z"||o>="0"&&o<="9"||")"===o||"}"===o)&&(s=!0),!s)return;let l=n.nodeValue.substring(i+1,a);n.nodeValue=n.nodeValue.substring(0,i)+$t+l+$t+n.nodeValue.substring(a);let u=yt(e.target,null,0,this.enableHtml());u=xt(u,l,this.enableHtml());let c={startNodeIndex:t.startNodeIndex+2,startOffset:Vt,endNodeIndex:t.startNodeIndex+2,endOffset:Vt},d=this._countNodeTypes(),h=this.getMimeType(d.html>0,!0);u=gt(u,h,this.enableHtml()),this.applyChangesToComponent(u,h,c,this.props.useExpertMode,this.props.selectedTab)}catch(e){console.error(e)}e.preventDefault()};showEquationEditorOnKeyDown=e=>{this.showEquationEditor(!0),e.preventDefault()};handleKeyDownEnter=e=>{try{this.enableMultiline()&&this.insertNewLine(e)}catch(e){console.error(e)}e.preventDefault()};handleKeyDownAccentHelper=e=>{let t="",n="";if(e.ctrlKey)e.shiftKey&&e.altKey?(console.log(e.key),Jt.hasOwnProperty(e.key)&&(n=Jt[e.key])):e.shiftKey&&"`"===e.key?t="~":en.hasOwnProperty(e.key)&&(t=e.key);else if(""!==this.accent){if("Shift"===e.key)return!1;if("CapsLock"===e.key)return!1;let t=en[this.accent];t.hasOwnProperty(e.key)&&(n=t[e.key])}return""!==t?(e.preventDefault(),this.accent=t,!0):(this.accent="",""!==n?(e.preventDefault(),this.insertRawText(n,!1),!0):void 0)};handleKeyDown=e=>{try{if(this.initialiseHistory(),("z"===e.key||"Z"===e.key)&&(e.ctrlKey||e.metaKey))return e.shiftKey?this.redo():this.undo(),void e.preventDefault();if(e.ctrlKey||e.metaKey||this.resetHistoryRedo(),(e.metaKey||e.ctrlKey)&&("b"===e.key||"i"===e.key||"u"===e.key||"6"===e.key||"^"===e.key||"-"===e.key||"_"===e.key||"+"===e.key||"="===e.key)&&this.enableFontStyling()&&("b"===e.key&&this.styleText(e,"Bold"),"i"===e.key&&this.styleText(e,"Italic"),"u"===e.key&&this.styleText(e,"Underline"),!/(Win)/i.test(window.navigator.platform)||!e.ctrlKey||"6"!==e.key&&"^"!==e.key))return"6"!==e.key&&"^"!==e.key&&"+"!==e.key&&"="!==e.key||this.styleText(e,"Superscript"),"-"!==e.key&&"_"!==e.key||this.styleText(e,"Subscript"),void e.preventDefault();if((e.metaKey||e.ctrlKey)&&"v"===e.key)return void document.execCommand("paste");if((e.metaKey||e.ctrlKey)&&"c"===e.key)return void document.execCommand("copy");if((e.metaKey||e.ctrlKey)&&"x"===e.key)return void document.execCommand("cut");if(/(Win)/i.test(window.navigator.platform)&&e.key===this.keyPressed&&this.keyPressStartTime>0&&1===e.key.length&&("a"<=e.key&&e.key<="z"||"A"<=e.key&&e.key<="Z"||"!"===e.key||"?"===e.key))return void e.preventDefault();if(e.altKey&&"Alt"===e.key){let t=this.fetchAccentLetter();return"a"===t||"e"===t||"i"===t||"o"===t||"u"===t||"c"===t||"l"===t||"n"===t||"s"===t||"?"===t||"!"===t?this.setState({showAccentBar:!this.state.showAccentBar}):this.setState({showAccentBar:!1}),void e.preventDefault()}if(this.keyPressed=e.key,this.setState({keyPressed:e.key}),this.keyPressStartTime<0&&(this.keyPressStartTime=Date.now(),this.state.showAccentBar&&this.setState({showAccentBar:!1})),"Backspace"===e.key)return void this.handleKeyDownBackspace(e);if("ArrowLeft"===e.key)return void this.handleKeyDownArrowLeft(e);if("ArrowRight"===e.key)return void this.handleKeyDownArrowRight(e);if("ArrowUp"===e.key)return void this.handleKeyDownArrowUp(e);if("ArrowDown"===e.key)return void this.handleKeyDownArrowDown(e);if("$"===e.key)return void this.handleKeyDownDollar(e);if((e.ctrlKey||e.metaKey)&&"Enter"===e.key)return void this.showEquationEditorOnKeyDown(e);if(/(Mac)/i.test(window.navigator.platform)){if(e.ctrlKey&&"="===e.key)return void this.showEquationEditorOnKeyDown(e)}else if(/(Win)/i.test(window.navigator.platform)&&e.altKey&&"="===e.key)return void this.showEquationEditorOnKeyDown(e);if("Enter"===e.key)return void this.handleKeyDownEnter(e);if(/(Win)/i.test(window.navigator.platform)){let t=e.key.toLowerCase();if("a"===t||"e"===t||"i"===t||"o"===t||"u"===t||"c"===t||"l"===t||"n"===t||"s"===t||"?"===t||"!"===t){let e=this;setTimeout(function(){e.keyPressStartTime>0&&Date.now()-e.keyPressStartTime>450&&e.setState({showAccentBar:!0})},500)}}let t=this._getRangeParams(),n=this._findNodeWithIndex(t.startNodeIndex),r=this._findNodeWithIndex(t.endNodeIndex);if(!this.editableDivIsPlainText()){if(-1===t.startNodeIndex)return void console.error("Couldn't get range params");if(Ye(n)||Ye(r))return console.error("User trying to edit inside latex node"),void e.preventDefault()}if(this.handleKeyDownAccentHelper(e))return;if(1===e.key.length&&0===t.startOffset&&this.nodeStartsWithSmallSpace(n))return this.insertAfterSmallSpace(e.key,t),void e.preventDefault()}catch(e){console.error(e)}};handleKeyUp=e=>{try{if(this.keyPressed=e.key,this.keyPressStartTime=-1,"ArrowRight"===e.key){let e=this._getRangeParams().startNodeIndex;if(e>=0&&Ye(this._findNodeWithIndex(e))){let t=0,n=0;null===this._findNodeWithIndex(e+1)?(t=e+1,n=Vt):(t=e-1,n=it(this._findNodeWithIndex(t)),n<0&&(console.error("Failed to get node text length"),n=0));let r={startNodeIndex:t,startOffset:n,endNodeIndex:t,endOffset:n};this._setRangeParams(r)}}if("ArrowLeft"===e.key){let e=this._getRangeParams().startNodeIndex;if(e>=0&&Ye(this._findNodeWithIndex(e))){let t=0,n=0;e-1>=0?(t=e-1,n=it(this._findNodeWithIndex(t)),n<0&&(console.error("Failed to get node text length"),n=0)):(t=e+1,n=Vt);let r={startNodeIndex:t,startOffset:n,endNodeIndex:t,endOffset:n};this._setRangeParams(r)}}this.updateActiveButtons()}catch(e){console.error(e)}};handleInput=e=>{try{if(this.isComposing)return;let e=yt(this.editableDiv,null,0,this.enableHtml());const t=this._getRangeParams();if(null==t){const e={startNodeIndex:0,startOffset:0,endNodeIndex:0,endOffset:0,startGlobalOffset:0,endGlobalOffset:0};let t=this._countNodeTypes(),n=this.getMimeType(t.html>0,t.math>0),r=yt(this.editableDiv,null,0,this.enableHtml());return r=gt(r,n,this.enableHtml()),void this.applyChangesToComponent(r,n,e,this.props.useExpertMode,this.props.selectedTab)}null===t.startNodeIndex||t.startNodeIndex;const n=/<math>/i.test(e);let r=this._countNodeTypes();const i=r.html>0||/<[^>]+>/i.test(e),a=n||r.math>0;let o=this.getMimeType(i,a);e=gt(e,o,this.enableHtml());const s=t||{startNodeIndex:0,startOffset:0,endNodeIndex:0,endOffset:0,startGlobalOffset:0,endGlobalOffset:0};this.applyChangesToComponent(e,o,s,this.props.useExpertMode,this.props.selectedTab)}catch(e){console.error(e)}};updateActiveButtons=()=>{try{let t=this._getRangeParams();if(null==t){let e={bold:!1,italic:!1,underline:!1,subscript:!1,superscript:!1};return this.lastSetActiveButtons=e,void this.setState({activeButtons:e})}if(t.startNodeIndex<0){let e={bold:!1,italic:!1,underline:!1,subscript:!1,superscript:!1};return this.lastSetActiveButtons=e,void this.setState({activeButtons:e})}let n=this._findNodeWithIndex(t.startNodeIndex),r=!1,i=!1,a=!1,o=!1,s=!1;do{if(1===n.nodeType){let e=n.nodeName.toLowerCase();"b"===e||"strong"===e?r=!0:"i"===e||"em"===e?i=!0:"u"===e?a=!0:"sub"===e?s=!0:"sup"===e&&(o=!0)}else if(null!==n.classList&&void 0!==n.classList&&n.classList.contains("MathRichInput"))break;n=n.parentNode}while(null!==n);let l={bold:r,italic:i,underline:a,subscript:s,superscript:o},u=!0;if(null!==this.lastSetActiveButtons)for(var e in u=!1,l)if(l[e]!==this.lastSetActiveButtons[e]){u=!0;break}u&&(this.lastSetActiveButtons=l,this.setState({activeButtons:l}))}catch(e){console.error(e)}};handleCopy=e=>{try{const t=window.getSelection();if(0===t.rangeCount)return;const n=t.getRangeAt(0),r=document.createElement("div");r.appendChild(n.cloneContents()),r.querySelectorAll(".katex").forEach(e=>{try{const t=lt(e);if(t&&"error"!==t){const n=document.createElement("span");n.setAttribute("data-latex",t),n.textContent=`<math>${t}</math>`,e.parentNode.replaceChild(n,e)}}catch(e){console.warn("Failed to extract LaTeX during copy:",e)}});const i=r.innerHTML,a=r.textContent;e.clipboardData&&(e.clipboardData.setData("text/html",i),e.clipboardData.setData("text/plain",a),e.preventDefault())}catch(e){console.error("Error during copy operation:",e)}};handlePaste=e=>{try{let t=e.clipboardData||window.clipboardData;if(!t)return;e.preventDefault();let n=t.getData("text/html"),r=t.getData("text/plain");const i=this._getRangeParams();if(!i)return void console.warn("Could not get range params for paste");this.setOldRangeParams(i);const a=window.getSelection();a.rangeCount>0&&a.deleteFromDocument();let o="",s=this.props.mimeType||"text/html",l=!1;if(n&&n.length>0){let e=n;e=e.replace(/<meta[^>]*>/gi,""),e=e.replace(/<style[^>]*>.*?<\/style>/gis,""),e=e.replace(/<script[^>]*>.*?<\/script>/gis,""),e=e.replace(/<!--.*?-->/gs,""),e=e.replace(/<span[^>]*data-latex="([^"]*)"[^>]*>.*?<\/span>/gi,"<math>$1</math>"),e=e.replace(/<span[^>]*class="katex"[^>]*>.*?<annotation[^>]*encoding="application\/x-tex"[^>]*>([^<]*)<\/annotation>.*?<\/span>/gi,"<math>$1</math>");let t=e;t=t.replace(/<(?!\/?(math)>)[^>]*>/gi,""),t=It(t);const r=/<math>/i.test(t),i=this.detectLatexPatterns(t);(r||i)&&this.enableMath()?(o=!r&&i?`<math>${t}</math>`:t,s="application/x-zzish-html-math",l=!0):(o=t,s="text/html")}else{if(!(r&&r.length>0))return;{const e=r.replace(/\n{3,}/g,"\n").trim();this.detectLatexPatterns(e)&&this.enableMath()?(o=`<math>${e}</math>`,s="application/x-zzish-html-math",l=!0):(o=e,s="text/plain")}}if(o){const e=this._findNodeWithIndex(i.startNodeIndex);let t=at(ot(yt(this.editableDiv,e,i.startOffset,this.enableHtml()),o));this.enableMath()&&(t=t.replace(/\\\[([^\]]*?)\\\]/g,"<math>$1</math>"));let n=null;if(l){const e=this.getOldRangeParams(),t=(o.match(/<math>/gi)||[]).length;n=""===this.props.value?{startNodeIndex:2*t,startOffset:Vt,endNodeIndex:2*t,endOffset:Vt}:{startNodeIndex:e.startNodeIndex+2*t,startOffset:Vt,endNodeIndex:e.startNodeIndex+2*t,endOffset:Vt}}else{const e=i.startGlobalOffset+o.length;n={startGlobalOffset:e,endGlobalOffset:e}}let r=s;r=/<math>/i.test(t)?"application/x-zzish-html-math":this.enableHtml()&&(/<[^>]+>/i.test(t)||"text/html"===r)?"text/html":"text/plain";const a=gt(t,r,this.enableHtml());this.applyChangesToComponent(a,r,n,this.props.useExpertMode,this.props.selectedTab)}}catch(e){return console.error("Error in paste handler:",e),!0}};componentDidMount(){try{(()=>{let e=document.getElementsByTagName("link");for(let t=0;t<e.length;t++)if("katex-css"===e[t].id)return;let t=document.createElement("link");t.id="katex-css",t.rel="stylesheet",t.href="https://cdn.jsdelivr.net/npm/katex@0.11.1/dist/katex.min.css",t.crossorigin="anonymous",document.head.appendChild(t),console.log("Added katex css to document head")})(),this.editableDiv.addEventListener("keydown",this.handleKeyDown),this.editableDiv.addEventListener("keyup",this.handleKeyUp),this.editableDiv.addEventListener("paste",this.handlePaste),this.editableDiv.addEventListener("copy",this.handleCopy),!0===this.props.autofocus&&this.editableDiv.focus()}catch(e){console.error(e)}}componentWillUnmount(){try{this.editableDiv.removeEventListener("keydown",this.handleKeyDown),this.editableDiv.removeEventListener("keyup",this.handleKeyUp),this.editableDiv.removeEventListener("paste",this.handlePaste),this.editableDiv.removeEventListener("copy",this.handleCopy)}catch(e){console.error(e)}}componentDidUpdate(){try{null!==this.afterComponentUpdateData&&void 0!==this.afterComponentUpdateData&&this.afterComponentUpdateData.value===this.props.value&&(this._setRangeParams(this.afterComponentUpdateData.rangeParams),this.afterComponentUpdateData=null,this.updateActiveButtons())}catch(e){console.error(e)}}showEquationEditor=(e=!1,t=null)=>{try{let n=this._getRangeParams();if(n.startNodeIndex<0)return console.error("Could not find position of cursor in node list"),this.setOldRangeParams({startNodeIndex:2,startOffset:1,endNodeIndex:2,endOffset:1}),this.markedRawText=$t+" "+$t,this.moveCursorOnInsert=e,void this.setState({showEquationEditor:!0,equationEditorLatex:""});let r="",i=0;null===t&&(t=this._findNodeWithIndex(n.startNodeIndex)),null==t&&(console.error("Could not find node with index: "+n.startNodeIndex),t=this._findFirstTextNode(),i=0),Ye(t)?(r=lt(t),i=0,this.editingExistingEquation=!0,this.editingNode=t):(r="",i=n.startOffset,this.editingExistingEquation=!1,this.editingNode=null),this.markedRawText=yt(this.editableDiv,t,i,this.enableHtml()),this.moveCursorOnInsert=e,this.setState({showEquationEditor:!0,equationEditorLatex:r})}catch(e){console.error(e)}};handleMouseDown=e=>{this.showEquationEditorOnMouseUp=!1;let t=null;try{t=e.target;let n=!1;do{if(Ye(t)){n=!0;break}t=t.parentNode}while(t!==this.editableDiv&&null!==t);if(!n)return;this.showEquationEditorOnMouseUp=!0,this.setOldRangeParams(this._getRangeParams())}catch(e){console.error(e),console.log(t)}};handleMouseUp=e=>{try{this.initialiseHistory(),this.selectionAnchor=null;let t=this._getRangeParams(),n=this._findNodeWithIndex(t.startNodeIndex),r=this._findNodeWithIndex(t.endNodeIndex);if(null===n||null===r)return void console.warn("Start or end node was null");if(t.startNodeIndex===t.endNodeIndex&&t.startOffset===t.endOffset&&this.showEquationEditorOnMouseUp)return this.editableDiv.focus(),void this.showEquationEditor(!1,n);let i=null;if(Ye(n))if(null===i&&(i={...t}),t.startNodeIndex===t.endNodeIndex&&t.startOffset===t.endOffset)i.startNodeIndex=t.startNodeIndex+1,i.startOffset=Vt;else{i.startNodeIndex=t.startNodeIndex-1;let e=this._findNodeWithIndex(t.startNodeIndex-1);i.startOffset=it(e)}if(Ye(r)&&(null===i&&(i={...t}),i.endNodeIndex=t.endNodeIndex+1,i.endOffset=Vt),null!==i)return this._setRangeParams(i),void e.preventDefault();this.updateActiveButtons()}catch(e){console.error(e)}};handleEquationEditorClose=()=>{try{this.setState({showEquationEditor:!1},()=>{this.editableDiv.focus()})}catch(e){console.error(e)}};handleEquationEditorInsert=e=>{try{let t=this.markedRawText.indexOf($t),n=this.markedRawText.indexOf($t,t+$t.length),r=this.getOldRangeParams();if(""===e){let e=this.markedRawText.substring(0,t)+this.markedRawText.substring(n+$t.length),i=-1,a=-1;if(this.editingExistingEquation){let e=this._findIndexOfNode(this.editingNode);r.startNodeIndex===e+1?(i=r.startNodeIndex-2,a=it(this._findNodeWithIndex(i))):r.startNodeIndex>e+1?(i=r.startNodeIndex-2,a=r.startOffset):(i=r.startNodeIndex,a=r.startOffset)}let o={startNodeIndex:i,startOffset:a,endNodeIndex:i,endOffset:a};this.setOldRangeParams(o);let s=this._countNodeTypes(),l=null;return l=this.editingExistingEquation?this.getMimeType(s.html>0,s.math>1):this.getMimeType(s.html>0,s.math>0),e=gt(e,l,this.enableHtml()),this.applyChangesToComponent(e,l,o,this.props.useExpertMode,this.props.selectedTab),void this.setState({showEquationEditor:!1})}let i=xt(this.markedRawText,e,this.enableHtml()),a=this.getOldRangeParams();if(this.moveCursorOnInsert)if(""===this.props.value)a={startNodeIndex:2,startOffset:Vt,endNodeIndex:2,endOffset:Vt};else{const e=[...i.matchAll(/<math>[^<]*<\/math>/gi)];if(e.length>0){const t=e[e.length-1],n=t.index+t[0].length;a={startGlobalOffset:n,endGlobalOffset:n}}}this.setOldRangeParams(a);let o=this._countNodeTypes(),s=this.getMimeType(o.html>0,!0);i=gt(i,s,this.enableHtml()),this.applyChangesToComponent(i,s,a,this.props.useExpertMode,this.props.selectedTab),this.setState({showEquationEditor:!1})}catch(e){console.error(e)}};styleText=(e,t)=>{try{t=t.toLowerCase();let e=!1;if("subscript"===t&&this.state.activeButtons.subscript||"superscript"===t&&this.state.activeButtons.superscript){const t=document.getSelection();let n=t.getRangeAt(0);n.endContainer===n.startContainer&&n.endOffset===n.startOffset&&(e=document.execCommand("insertText",!1," "),n.setEnd(n.endContainer,n.endOffset+1),t.removeAllRanges(),t.addRange(n)),e=document.execCommand("removeFormat",!1,null),this.state.activeButtons.bold&&(e=document.execCommand("bold",!1,null)),this.state.activeButtons.italic&&(e=document.execCommand("italic",!1,null)),this.state.activeButtons.underline&&(e=document.execCommand("underline",!1,null))}else{const n=document.getSelection();if(n&&n.rangeCount>0)if(n.getRangeAt(0).collapsed)if(this.state.activeButtons[t])e=document.execCommand(t,!1,null);else{let n;switch(t){case"bold":n="strong";break;case"italic":n="em";break;case"underline":n="u";break;case"subscript":n="sub";break;case"superscript":n="sup";break;default:n="span"}const r=`<${n}>​</${n}>`;e=document.execCommand("insertHTML",!1,r),setTimeout(()=>{const e=document.getSelection();if(e&&e.rangeCount>0){const t=e.getRangeAt(0),r=t.startContainer.parentElement;r&&r.tagName.toLowerCase()===n&&(t.setStart(r,0),t.setEnd(r,0),e.removeAllRanges(),e.addRange(t))}},0)}else e=document.execCommand(t,!1,null)}let n=this.state.activeButtons[t];if(null==n)return e;n=!n;let r={...this.state.activeButtons};return r[t]=n,this.setState({activeButtons:r}),e}catch(e){console.error(e)}};handleToolbarButtonClick=(e,t)=>{try{"Equation"===t&&this.showEquationEditor(!0);let n=t;this.styleText(e,n)||console.warn("execCommand returned false: "+n)}catch(e){console.error(e)}};fetchAccentLetter=e=>{try{let e=this._getRangeParams();if(null===e)return console.error("Cound not get range params"),null;let t=this._findNodeWithIndex(e.endNodeIndex),n=e.endOffset;return function(e){let t=e.indexOf(je);return t<1?(console.warn("Can't get character before mark. Start: "+t),null):e.charAt(t-1)}(yt(this.editableDiv,t,n,this.enableHtml()))}catch(e){console.error(e)}};insertRawText=(e,t=!1)=>{try{let n=this._getRangeParams(),r=this._findNodeWithIndex(n.endNodeIndex),i=n.endOffset,a=yt(this.editableDiv,r,i,this.enableHtml()),o=null,s={...n};o=at(ot(a,e)),t?(s.startNodeIndex=n.endNodeIndex,s.startOffset=n.endOffset,s.endNodeIndex=n.endNodeIndex,s.endOffset=n.endOffset+e.length,s.startGlobalOffset=n.endGlobalOffset,s.endGlobalOffset=n.endGlobalOffset+e.length):(s.startNodeIndex=n.endNodeIndex,s.startOffset=n.endOffset+e.length,s.endNodeIndex=n.endNodeIndex,s.endOffset=n.endOffset+e.length,s.startGlobalOffset=n.endGlobalOffset+e.length,s.endGlobalOffset=n.endGlobalOffset+e.length),o=gt(o,this.props.mimeType,this.enableHtml()),this.applyChangesToComponent(o,this.props.mimeType,s,this.props.useExpertMode,this.props.selectedTab)}catch(e){console.error(e)}};pasteHtmlAtCaret=(e,t)=>{var n,r;if(window.getSelection){if((n=window.getSelection()).getRangeAt&&n.rangeCount){(r=n.getRangeAt(0)).deleteContents();var i=document.createElement("div");i.innerHTML=e;for(var a,o,s=document.createDocumentFragment();a=i.firstChild;)o=s.appendChild(a);var l=s.firstChild;r.insertNode(s),o&&(r=r.cloneRange(),t?(r.setStartBefore(l),r.setEndAfter(o)):(r.setStartAfter(o),r.collapse(!0)),n.removeAllRanges(),n.addRange(r))}}else if((n=document.selection)&&"Control"!=n.type){var u=n.createRange();u.collapse(!0),n.createRange().pasteHTML(e),t&&((r=n.createRange()).setEndPoint("StartToStart",u),r.select())}};insertHtml=(e,t=!1)=>{try{this.pasteHtmlAtCaret(e,t);let n=null;try{n=this._getRangeParams()}catch(e){console.error(e)}(n.startNodeIndex<0||n.endNodeIndex<0)&&console.warn("Selection range params were not fetched correctly. Unable to set highlight inserted text."),n={startNodeIndex:0,startOffset:0,endNodeIndex:0,endOffset:0};let r=yt(this.editableDiv,null,-1,this.enableHtml()),i=this._countNodeTypes(),a=this.getMimeType(i.html>0,i.math>0);r=gt(r,a,this.enableHtml());try{let e=-1;do{if(e=r.indexOf("<P>",e+1),e>=0){let t=r.indexOf("<P>",e+1),n=r.indexOf("</P>",e+1);t>=0&&(n<0||n>t)&&(r=r.substring(0,t)+r.substring(t+3,r.length),e=-1)}}while(e>=0&&e<r.length-4);e=-1;do{if(e=r.indexOf("</P>",e+1),e>=0){let t=r.indexOf("</P>",e+1),n=r.indexOf("<P>",e+1);t>=0&&(n<0||n>t)&&(r=r.substring(0,e)+r.substring(e+4,r.length),e=-1)}}while(e>=0&&e<r.length-4)}catch(e){console.error(e)}this.applyChangesToComponent(r,a,n,this.props.useExpertMode,this.props.selectedTab)}catch(e){console.error(e)}};removeNewLine=()=>{try{let e=this._getRangeParams(),t=this._findNodeWithIndex(e.endNodeIndex),n=this._findNodeWithIndex(e.endNodeIndex-1),r=e.endOffset,i=yt(this.editableDiv,t,r,this.enableHtml()),a=null;a=at(function(e){let t=e.indexOf(je);return t<1?(console.warn("Can't replace character before mark. Start: "+t),e):e.substring(0,t-7)+""+e.substring(t)}(i));let o={...e},s=it(n);o.startNodeIndex=e.startNodeIndex-1,o.startOffset=s,o.endNodeIndex=e.endNodeIndex-1,o.endOffset=s,o.srartGlobalOffset--,o.endGlobalOffset--,a=gt(a,this.props.mimeType,this.enableHtml()),this.applyChangesToComponent(a,this.props.mimeType,o,this.props.useExpertMode,this.props.selectedTab)}catch(e){console.error(e)}};insertNewLine=()=>{try{let e=this._getRangeParams(),t=this._findNodeWithIndex(e.endNodeIndex),n=e.endOffset,r=yt(this.editableDiv,t,n,this.enableHtml()),i=null,a={...e};this.enableHtml()?(i=at(ot(r,"</p><p>")),"<p>"!==i.substring(0,3).toLowerCase()&&(i="<p>"+i+"</p>"),a.startNodeIndex=e.startNodeIndex+1,a.startOffset=0,a.endNodeIndex=e.endNodeIndex+1,a.endOffset=0,a.startGlobalOffset&&(a.startGlobalOffset++,a.endGlobalOffset++)):(i=at(ot(r,"\n")),a.startOffset++,a.endOffset++),i=gt(i,this.props.mimeType,this.enableHtml()),this.applyChangesToComponent(i,this.props.mimeType,a,this.props.useExpertMode,this.props.selectedTab)}catch(e){console.error(e)}};insertAfterSmallSpace(e,t){try{null==t&&(t=this._getRangeParams()),0!==t.startOffset&&console.warn("Unexpected startOffset "+t.startOffset+" in insertAfterSmallSpace");let n=this._findNodeWithIndex(t.startNodeIndex),r=at(ot(yt(this.editableDiv,n,1,this.enableHtml()),e)),i={startNodeIndex:t.startNodeIndex,startNodeOffset:1+e.length,endNodeIndex:t.startNodeIndex,endNodeOffset:1+e.length,startGlobalOffset:t.startGlobalOffset+e.length,endGlobalOffset:t.endGlobalOffset+e.length};r=gt(r,this.props.mimeType,this.enableHtml()),this.applyChangesToComponent(r,this.props.mimeType,i,this.props.useExpertMode,this.props.selectedTab)}catch(e){console.error(e)}}insertAccentLetter=(e,t,n)=>{try{let e=this._getRangeParams(),r=this._findNodeWithIndex(e.startNodeIndex),i=e.startOffset,a=yt(this.editableDiv,r,i,this.enableHtml()),o=null,s=null;null===t?(o=at(ot(a,n)),s={startNodeIndex:e.startNodeIndex,startOffset:e.startOffset+n.length,endNodeIndex:e.startNodeIndex,endOffset:e.startOffset+n.length,startGlobalOffset:e.startGlobalOffset+n.length,endGlobalOffset:e.startGlobalOffset+n.length}):(o=at(function(e,t){let n=e.indexOf(je);return n<1?(console.warn("Can't replace character before mark. Start: "+n),e):e.substring(0,n-1)+t+e.substring(n)}(a,n)),s={...e}),o=gt(o,this.props.mimeType,this.enableHtml()),this.applyChangesToComponent(o,this.props.mimeType,s,this.props.useExpertMode,this.props.selectedTab)}catch(e){console.error(e)}};handleAccentButtonClick=(e,t,n)=>{try{this.insertAccentLetter(e,t,n),this.setState({showAccentBar:!1})}catch(e){console.error(e)}};cleanupCorruptedKatexNodes=()=>{try{this.editableDiv.querySelectorAll(".katex, .katex-error").forEach(e=>{const t=e.querySelector('annotation[encoding="application/x-tex"]');if(!t||!t.textContent){console.warn("Removing corrupted KaTeX node:",e);const t=document.createTextNode("[Math Error]");e.parentNode.replaceChild(t,e)}})}catch(e){console.error("Error cleaning up corrupted KaTeX nodes:",e)}};focus=()=>{this.editableDiv.focus()};handleFocus=e=>{const{onFocus:t}=this.props;null!=t&&t();try{this._setRangeParams(this.getOldRangeParams()),this.setState({hasFocus:!0})}catch(e){console.error(e)}};handleBlur=e=>{const{onBlur:t}=this.props;null!=t&&t();try{this.setState({hasFocus:!1,showAccentBar:!1})}catch(e){console.error(e)}};handleCompositionStart=e=>{this.isComposing=!0};handleCompositionEnd=e=>{this.isComposing=!1};detectLatexPatterns=e=>{if(!this.enableMath()||!e||"string"!=typeof e)return!1;const t=[/\\begin\s*\{\s*(matrix|pmatrix|bmatrix|Bmatrix|vmatrix|Vmatrix|array)\s*\}[\s\S]*?\\end\s*\{\s*\1\s*\}/,/\\begin\s*\{\s*(cases|aligned|align|gather|split)\s*\}[\s\S]*?\\end\s*\{\s*\1\s*\}/,/\\frac\s*\{[^{}]*(?:\{[^{}]*\}[^{}]*)*\}\s*\{[^{}]*(?:\{[^{}]*\}[^{}]*)*\}/,/\\sqrt\s*(?:\[[^\]]*\])?\s*\{[^{}]*(?:\{[^{}]*\}[^{}]*)*\}/,/\\(text|textrm|textit|textbf|textsf|texttt|mathrm|mathit|mathbf|mathsf|mathtt|mathcal|mathscr|mathfrak|mathbb)\s*\{[^{}]*\}/,/\\(hat|check|breve|acute|grave|tilde|bar|vec|dot|ddot|widehat|widetilde|overline|underline|overbrace|underbrace)\s*\{[^{}]*\}/,/\\(mathbb|mathbf)\s*\{[NZQRCH]\}/,/\\(left|right|big|Big|bigg|Bigg)\s*[\(\)\[\]\\{\\}|\\.]/,/\\[lr](paren|brace|brack|vert|Vert|angle|langle|rangle|floor|ceil)/,/\\(alpha|beta|gamma|delta|epsilon|varepsilon|zeta|eta|theta|vartheta|iota|kappa|lambda|mu|nu|xi|omicron|pi|varpi|rho|varrho|sigma|varsigma|tau|upsilon|phi|varphi|chi|psi|omega|Gamma|Delta|Theta|Lambda|Xi|Pi|Sigma|Upsilon|Phi|Psi|Omega)\b/,/\\(sin|cos|tan|sec|csc|cot|sinh|cosh|tanh|sech|csch|coth|arcsin|arccos|arctan|arcsec|arccsc|arccot|log|ln|lg|exp|lim|limsup|liminf|sup|inf|max|min|arg|ker|deg|gcd|det|hom|dim)\b/,/\\(pm|mp|times|div|cdot|ast|star|circ|bullet|cap|cup|uplus|sqcap|sqcup|vee|wedge|setminus|wr|diamond|bigtriangleup|bigtriangledown|triangleleft|triangleright|lhd|rhd|unlhd|unrhd|oplus|ominus|otimes|oslash|odot|bigcirc|dagger|ddagger|amalg)\b/,/\\(leq|geq|equiv|models|prec|succ|sim|perp|preceq|succeq|simeq|mid|ll|gg|asymp|parallel|subset|supset|approx|bowtie|subseteq|supseteq|cong|smile|sqsubset|sqsupset|doteq|frown|sqsubseteq|sqsupseteq|propto|vdash|dashv|in|ni|notin)\b/,/\\(not|neq|ne|notin|nmid|nparallel|nleq|ngeq|nless|ngtr|nprec|nsucc|lneq|gneq|npreceq|nsucceq|precneqq|succneqq|lneqq|gneqq)\b/,/\\(leftarrow|gets|rightarrow|to|leftrightarrow|uparrow|downarrow|updownarrow|Leftarrow|Rightarrow|Leftrightarrow|Uparrow|Downarrow|Updownarrow|mapsto|longmapsto|hookleftarrow|hookrightarrow|leftharpoonup|leftharpoondown|rightharpoonup|rightharpoondown|rightleftharpoons|iff)\b/,/\\(int|iint|iiint|oint|sum|prod|coprod|bigcup|bigcap|bigsqcup|bigvee|bigwedge|bigodot|bigotimes|bigoplus|biguplus)\b/,/\\(quad|qquad|,|:|;|!|thinspace|medspace|thickspace|enspace|negspace)\b/,/\\(infty|partial|nabla|pm|mp|emptyset|varnothing|complement|forall|exists|nexists|in|notin|ni|Re|Im|wp|angle|measuredangle|sphericalangle|top|bot|vdash|models|vDash|Vdash|Vvdash|nvdash|nvDash|nVdash|nVDash)\b/,/\\(N|Z|Q|R|C|H)\b/,/\d+\\surd\d+/,/\\surd/,/\d+\^\d+/,/[a-zA-Z]\^\d+/,/[a-zA-Z]\^[\{\d+\}]/,/\d+_\d+/,/[a-zA-Z]_\d+/,/[a-zA-Z]_[\{\d+\}]/,/\d+\/\d+\s*[+\-*/]\s*\d+\/\d+/,/[xy]\^2\s*[+\-]\s*\d+[xy]\s*[+\-]\s*\d+/];for(let n=0;n<t.length;n++)if(t[n].test(e))return!0;return!1};render(){null==this.props.value&&(console.error('MathRichInput must have prop called "value"'),console.log(this.props));const e=Tt(o(),this.props.value||"",this.props.mimeType);let t="MathRichInput-Container";this.props.className&&(t=this.props.className+" "+t);let n=null;this.state.showAccentBar&&(n=this.fetchAccentLetter(null));let i=0;return this.props.className.includes("answer-edit-input")&&(i=20),r.createElement(r.Fragment,null,r.createElement("div",{className:t},r.createElement("div",{className:"MathRichInput-scrollview"},this.state.hasFocus&&r.createElement(Te,{className:"Toolbar",enableMath:this.enableMath(),enableFontStyling:this.enableFontStyling(),style:this.translateToolbar,keyPressed:this.state.keyPressed,activeButtons:this.state.activeButtons,onButtonClick:this.handleToolbarButtonClick,fetchAccentLetter:this.fetchAccentLetter,insertAccentLetter:this.insertAccentLetter,extraMargin:i}),this.state.showAccentBar&&r.createElement(we,{compactMode:!0,accentLetter:n,keyPressed:this.state.keyPressed,fetchAccentLetter:this.fetchAccentLetter,onButtonClick:(e,t,n)=>this.handleAccentButtonClick(e,t,n)}),r.createElement("span",{className:"MathRichInput",contentEditable:"true",ref:e=>this.editableDiv=e,onInput:this.handleInput,onMouseDown:this.handleMouseDown,onMouseUp:this.handleMouseUp,onFocus:this.handleFocus,onBlur:this.handleBlur,onCompositionStart:this.handleCompositionStart,onCompositionEnd:this.handleCompositionEnd,dangerouslySetInnerHTML:{__html:e},"data-placeholder":this.props.placeholder||""}))),this.state.showEquationEditor&&r.createElement(G,{ref:e=>this.equationEditorModal=e,handleClose:this.handleEquationEditorClose,handleInsert:this.handleEquationEditorInsert,latex:this.state.equationEditorLatex}))}}r.Component;class nn extends HTMLElement{constructor(){super(),this.root=null}connectedCallback(){this.render()}disconnectedCallback(){this.root&&this.root.unmount()}static get observedAttributes(){return["value","placeholder","readonly","disabled","mimetype","outputtex"]}attributeChangedCallback(e,t,n){t!==n&&this.render()}render(){const e=this.getAttribute("value")||"",t=this.getAttribute("placeholder")||"",n=this.hasAttribute("readonly"),a=this.hasAttribute("disabled"),o=this.getAttribute("mimetype")||"",s="false"!==this.getAttribute("outputtex")&&this.hasAttribute("outputtex");if(!this.querySelector(".math-rich-input-container")){const e=document.createElement("div");e.className="math-rich-input-container",this.appendChild(e)}const l=this.querySelector(".math-rich-input-container");this.root||(this.root=(0,i.H)(l)),this.root.render(r.createElement(tn,{value:e,placeholder:t,readOnly:n,disabled:a,mimeType:o,outputTex:s,className:this.className||"",onChange:(e,t)=>{const{value:n,mimeType:r}=e,i=this.getAttribute("value")||"",a=this.getAttribute("mimetype")||"";n!==i&&this.setAttribute("value",n),r!==a&&this.setAttribute("mimetype",r),this.dispatchEvent(new CustomEvent("change",{detail:{value:n,mimeType:r}}))}}))}}customElements.define("math-rich-input",nn);const rn=nn;export{rn as default};
2
+ var e={56:(e,t,n)=>{e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},72:e=>{var t=[];function n(e){for(var n=-1,r=0;r<t.length;r++)if(t[r].identifier===e){n=r;break}return n}function r(e,r){for(var a={},o=[],s=0;s<e.length;s++){var l=e[s],u=r.base?l[0]+r.base:l[0],c=a[u]||0,d="".concat(u," ").concat(c);a[u]=c+1;var h=n(d),p={css:l[1],media:l[2],sourceMap:l[3],supports:l[4],layer:l[5]};if(-1!==h)t[h].references++,t[h].updater(p);else{var f=i(p,r);r.byIndex=s,t.splice(s,0,{identifier:d,updater:f,references:1})}o.push(d)}return o}function i(e,t){var n=t.domAPI(t);return n.update(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;n.update(e=t)}else n.remove()}}e.exports=function(e,i){var a=r(e=e||[],i=i||{});return function(e){e=e||[];for(var o=0;o<a.length;o++){var s=n(a[o]);t[s].references--}for(var l=r(e,i),u=0;u<a.length;u++){var c=n(a[u]);0===t[c].references&&(t[c].updater(),t.splice(c,1))}a=l}}},113:e=>{e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},138:(e,t,n)=>{e.exports=n(748)},159:e=>{e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},248:(e,t,n)=>{n.d(t,{A:()=>s});var r=n(601),i=n.n(r),a=n(314),o=n.n(a)()(i());o.push([e.id,'*,\n:after,\n:before {\n -webkit-box-sizing: border-box;\n -moz-box-sizing: border-box;\n box-sizing: border-box;\n}\n\n.MathRichInput-Container {\n width: 100%;\n border-radius: 5px;\n}\n\n.MathRichInput-scrollview {\n position: relative;\n display: flex;\n border-radius: 5px;\n}\n\n.MathRichInput p {\n padding: 0px;\n margin: 0px;\n}\n\n.MathRichInput {\n font-size: 18px;\n padding: 10px;\n width: 100%;\n border-radius: 5px;\n background-color: #fff;\n overflow-x: scroll;\n overflow: overlay;\n}\n\n.MathRichInput:empty::before {\n content: attr(data-placeholder);\n color: #acb6c0;\n font-size: 15px;\n}\n.MathRichInput:empty:focus::before {\n content: "";\n}\n\n.MathRichInput:focus {\n outline: 0;\n}\n\n.MathRichInput .katex {\n border: 0px;\n}\n\n.MathRichInput .base {\n /* Combine the katex and base class name to ensure the whole equation is surrounded */\n background-color: #f0f0f0;\n border: 0px;\n border: 1px dotted #d0d0d0;\n border-radius: 5px;\n padding: 2px;\n margin: 0px 2px;\n}\n\n.katex .mathnormal {\n font-family: KaTeX_Math;\n font-style: italic;\n}\n\n.MathRichInput .katex-error {\n background-color: #f0f0f0;\n border: 0px;\n border: 1px dotted #ff8080;\n border-radius: 5px;\n padding: 2px;\n margin: 0px 2px;\n}\n\n.MathRichInput-Container :focus-within {\n background-color: white;\n outline: 0px;\n /* border: 1px solid #663676; */\n }\n\n.MathRichInput-Container.dark :focus-within {\n background: none;\n outline: 0px;\n border: none;\n }\n\n.MathRichInput-Container.dark .MathRichInput {\n color: white;\n\n background: none;\n border: none;\n }\n\n.MathRichInput-Container.dark .MathRichInput .katex,\n .MathRichInput-Container.dark .MathRichInput .base {\n background: none;\n }\n\n.MathRichInput-Container.dark .MathRichInput:focus {\n border: none;\n background: none;\n }\n\n.MathRichInput-Container.question-edit-input .MathRichInput {\n border-radius: 12px;\n font-size: 32px;\n font-weight: 400;\n }\n\n.MathRichInput-Container.question-edit-input .MathRichInput:focus {\n border: none;\n background: rgba(255, 255, 255, 0.1);\n }\n\n.MathRichInput-Container.answer-edit-input .MathRichInput {\n font-weight: 400;\n font-size: 16px;\n }\n\n.MathRichInput-Container.hint-input .MathRichInput, .MathRichInput-Container.explanation-input .MathRichInput {\n font-weight: 400;\n font-size: 16px;\n /* text-decoration: underline dotted; */\n color: #322e33;\n }\n\n.MathRichInput-Container.hint-input .MathRichInput .base, .MathRichInput-Container.explanation-input .MathRichInput .base {\n border: 1px dotted #322e33;\n }\n',""]);const s=o},287:(e,t)=>{var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),p=Symbol.iterator,f={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m=Object.assign,g={};function b(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||f}function v(){}function y(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||f}b.prototype.isReactComponent={},b.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},b.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},v.prototype=b.prototype;var x=y.prototype=new v;x.constructor=y,m(x,b.prototype),x.isPureReactComponent=!0;var w=Array.isArray,k=Object.prototype.hasOwnProperty,S={current:null},C={key:!0,ref:!0,__self:!0,__source:!0};function T(e,t,r){var i,a={},o=null,s=null;if(null!=t)for(i in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(o=""+t.key),t)k.call(t,i)&&!C.hasOwnProperty(i)&&(a[i]=t[i]);var l=arguments.length-2;if(1===l)a.children=r;else if(1<l){for(var u=Array(l),c=0;c<l;c++)u[c]=arguments[c+2];a.children=u}if(e&&e.defaultProps)for(i in l=e.defaultProps)void 0===a[i]&&(a[i]=l[i]);return{$$typeof:n,type:e,key:o,ref:s,props:a,_owner:S.current}}function E(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}var q=/\/+/g;function M(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(e){return t[e]})}(""+e.key):t.toString(36)}function A(e,t,i,a,o){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var l=!1;if(null===e)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case n:case r:l=!0}}if(l)return o=o(l=e),e=""===a?"."+M(l,0):a,w(o)?(i="",null!=e&&(i=e.replace(q,"$&/")+"/"),A(o,t,i,"",function(e){return e})):null!=o&&(E(o)&&(o=function(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(o,i+(!o.key||l&&l.key===o.key?"":(""+o.key).replace(q,"$&/")+"/")+e)),t.push(o)),1;if(l=0,a=""===a?".":a+":",w(e))for(var u=0;u<e.length;u++){var c=a+M(s=e[u],u);l+=A(s,t,i,c,o)}else if(c=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=p&&e[p]||e["@@iterator"])?e:null}(e),"function"==typeof c)for(e=c.call(e),u=0;!(s=e.next()).done;)l+=A(s=s.value,t,i,c=a+M(s,u++),o);else if("object"===s)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return l}function N(e,t,n){if(null==e)return e;var r=[],i=0;return A(e,r,"","",function(e){return t.call(n,e,i++)}),r}function O(e){if(-1===e._status){var t=e._result;(t=t()).then(function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)},function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)}),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var D={current:null},z={transition:null},L={ReactCurrentDispatcher:D,ReactCurrentBatchConfig:z,ReactCurrentOwner:S};function I(){throw Error("act(...) is not supported in production builds of React.")}t.Children={map:N,forEach:function(e,t,n){N(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return N(e,function(){t++}),t},toArray:function(e){return N(e,function(e){return e})||[]},only:function(e){if(!E(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=b,t.Fragment=i,t.Profiler=o,t.PureComponent=y,t.StrictMode=a,t.Suspense=c,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=L,t.act=I,t.cloneElement=function(e,t,r){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var i=m({},e.props),a=e.key,o=e.ref,s=e._owner;if(null!=t){if(void 0!==t.ref&&(o=t.ref,s=S.current),void 0!==t.key&&(a=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(u in t)k.call(t,u)&&!C.hasOwnProperty(u)&&(i[u]=void 0===t[u]&&void 0!==l?l[u]:t[u])}var u=arguments.length-2;if(1===u)i.children=r;else if(1<u){l=Array(u);for(var c=0;c<u;c++)l[c]=arguments[c+2];i.children=l}return{$$typeof:n,type:e.type,key:a,ref:o,props:i,_owner:s}},t.createContext=function(e){return(e={$$typeof:l,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:s,_context:e},e.Consumer=e},t.createElement=T,t.createFactory=function(e){var t=T.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:u,render:e}},t.isValidElement=E,t.lazy=function(e){return{$$typeof:h,_payload:{_status:-1,_result:e},_init:O}},t.memo=function(e,t){return{$$typeof:d,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=z.transition;z.transition={};try{e()}finally{z.transition=t}},t.unstable_act=I,t.useCallback=function(e,t){return D.current.useCallback(e,t)},t.useContext=function(e){return D.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return D.current.useDeferredValue(e)},t.useEffect=function(e,t){return D.current.useEffect(e,t)},t.useId=function(){return D.current.useId()},t.useImperativeHandle=function(e,t,n){return D.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return D.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return D.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return D.current.useMemo(e,t)},t.useReducer=function(e,t,n){return D.current.useReducer(e,t,n)},t.useRef=function(e){return D.current.useRef(e)},t.useState=function(e){return D.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return D.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return D.current.useTransition()},t.version="18.3.1"},314:e=>{e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var n="",r=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),r&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),r&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n}).join("")},t.i=function(e,n,r,i,a){"string"==typeof e&&(e=[[null,e,void 0]]);var o={};if(r)for(var s=0;s<this.length;s++){var l=this[s][0];null!=l&&(o[l]=!0)}for(var u=0;u<e.length;u++){var c=[].concat(e[u]);r&&o[c[0]]||(void 0!==a&&(void 0===c[5]||(c[1]="@layer".concat(c[5].length>0?" ".concat(c[5]):""," {").concat(c[1],"}")),c[5]=a),n&&(c[2]?(c[1]="@media ".concat(c[2]," {").concat(c[1],"}"),c[2]=n):c[2]=n),i&&(c[4]?(c[1]="@supports (".concat(c[4],") {").concat(c[1],"}"),c[4]=i):c[4]="".concat(i)),t.push(c))}},t}},338:(e,t,n)=>{var r=n(961);t.H=r.createRoot,r.hydrateRoot},463:(e,t)=>{function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,i=e[r];if(!(0<a(i,t)))break e;e[r]=t,e[n]=i,n=r}}function r(e){return 0===e.length?null:e[0]}function i(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length,o=i>>>1;r<o;){var s=2*(r+1)-1,l=e[s],u=s+1,c=e[u];if(0>a(l,n))u<i&&0>a(c,l)?(e[r]=c,e[u]=n,r=u):(e[r]=l,e[s]=n,r=s);else{if(!(u<i&&0>a(c,n)))break e;e[r]=c,e[u]=n,r=u}}}return t}function a(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var o=performance;t.unstable_now=function(){return o.now()}}else{var s=Date,l=s.now();t.unstable_now=function(){return s.now()-l}}var u=[],c=[],d=1,h=null,p=3,f=!1,m=!1,g=!1,b="function"==typeof setTimeout?setTimeout:null,v="function"==typeof clearTimeout?clearTimeout:null,y="undefined"!=typeof setImmediate?setImmediate:null;function x(e){for(var t=r(c);null!==t;){if(null===t.callback)i(c);else{if(!(t.startTime<=e))break;i(c),t.sortIndex=t.expirationTime,n(u,t)}t=r(c)}}function w(e){if(g=!1,x(e),!m)if(null!==r(u))m=!0,z(k);else{var t=r(c);null!==t&&L(w,t.startTime-e)}}function k(e,n){m=!1,g&&(g=!1,v(E),E=-1),f=!0;var a=p;try{for(x(n),h=r(u);null!==h&&(!(h.expirationTime>n)||e&&!A());){var o=h.callback;if("function"==typeof o){h.callback=null,p=h.priorityLevel;var s=o(h.expirationTime<=n);n=t.unstable_now(),"function"==typeof s?h.callback=s:h===r(u)&&i(u),x(n)}else i(u);h=r(u)}if(null!==h)var l=!0;else{var d=r(c);null!==d&&L(w,d.startTime-n),l=!1}return l}finally{h=null,p=a,f=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var S,C=!1,T=null,E=-1,q=5,M=-1;function A(){return!(t.unstable_now()-M<q)}function N(){if(null!==T){var e=t.unstable_now();M=e;var n=!0;try{n=T(!0,e)}finally{n?S():(C=!1,T=null)}}else C=!1}if("function"==typeof y)S=function(){y(N)};else if("undefined"!=typeof MessageChannel){var O=new MessageChannel,D=O.port2;O.port1.onmessage=N,S=function(){D.postMessage(null)}}else S=function(){b(N,0)};function z(e){T=e,C||(C=!0,S())}function L(e,n){E=b(function(){e(t.unstable_now())},n)}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(){m||f||(m=!0,z(k))},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):q=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return p},t.unstable_getFirstCallbackNode=function(){return r(u)},t.unstable_next=function(e){switch(p){case 1:case 2:case 3:var t=3;break;default:t=p}var n=p;p=t;try{return e()}finally{p=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=p;p=e;try{return t()}finally{p=n}},t.unstable_scheduleCallback=function(e,i,a){var o=t.unstable_now();switch(a="object"==typeof a&&null!==a&&"number"==typeof(a=a.delay)&&0<a?o+a:o,e){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return e={id:d++,callback:i,priorityLevel:e,startTime:a,expirationTime:s=a+s,sortIndex:-1},a>o?(e.sortIndex=a,n(c,e),null===r(u)&&e===r(c)&&(g?(v(E),E=-1):g=!0,L(w,a-o))):(e.sortIndex=s,n(u,e),m||f||(m=!0,z(k))),e},t.unstable_shouldYield=A,t.unstable_wrapCallback=function(e){var t=p;return function(){var n=p;p=t;try{return e.apply(this,arguments)}finally{p=n}}}},464:(e,t,n)=>{n.d(t,{A:()=>s});var r=n(601),i=n.n(r),a=n(314),o=n.n(a)()(i());o.push([e.id,'.EquationEditorModal-background {\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background: black;\n z-index: 99;\n animation: 0.3s shade;\n animation-fill-mode: forwards;\n}\n\n@keyframes shade {\n 00% {\n opacity: 0;\n }\n 100% {\n opacity: 0.6;\n }\n}\n\n.EquationEditorModal {\n background: white;\n border: 1px solid #808080;\n border-radius: 10px;\n box-shadow: 0px 2px 5px 1px #a0a0a0;\n position: fixed;\n max-width: 500px;\n width: 98%;\n top: 50%;\n left: 50%;\n /* transform: translate(-50%,-50%); */\n z-index: 100;\n animation: 0.3s rise;\n animation-fill-mode: forwards;\n}\n\n@keyframes rise {\n 00% {\n transform: translate(-50%, 100%);\n opacity: 0;\n }\n 100% {\n transform: translate(-50%, -50%);\n opacity: 1;\n }\n}\n\n.EquationEditorModal-mobile {\n background: white;\n border: 1px solid #808080;\n border-radius: 10px;\n box-shadow: 0px 2px 5px 1px #a0a0a0;\n position: fixed;\n max-width: 500px;\n width: 99%;\n top: 0%;\n left: 50%;\n transform: translate(-50%, 1px);\n z-index: 100;\n}\n\n.EquationEditorModal .title {\n display: flex;\n justify-content: space-between;\n font-size: 14px;\n color: #404040;\n text-align: left;\n background: #e0e0e0;\n border: 0px;\n border-radius: 5px 5px 0px 0px;\n padding: 15px;\n margin: 0px;\n}\n\n.EquationEditorModal-mobile .title {\n display: flex;\n justify-content: space-between;\n font-size: 14px;\n color: #404040;\n text-align: left;\n background: #e0e0e0;\n border: 0px;\n border-radius: 5px 5px 0px 0px;\n height: 30px;\n padding: 15px;\n margin: 0px;\n}\n\n.expertModeSwitch {\n display: flex;\n flex-direction: row;\n align-items: center;\n}\n\n.EquationEditorModal .expertModeSwitch .switch {\n margin-left: 10px;\n}\n\n/* The switch - the box around the slider */\n.EquationEditorModal .switch {\n position: relative;\n display: inline-block;\n width: 35px;\n height: 22px;\n margin-bottom: 0;\n padding: 0;\n}\n\n/* Hide default HTML checkbox */\n.EquationEditorModal .switch input {\n opacity: 0;\n width: 0;\n height: 0;\n}\n\n/* The slider */\n.EquationEditorModal .slider {\n position: absolute;\n cursor: pointer;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background-color: #ccc;\n -webkit-transition: 0.4s;\n transition: 0.4s;\n}\n\n.EquationEditorModal .slider:before {\n position: absolute;\n content: "";\n height: 14px;\n width: 14px;\n left: 4px;\n bottom: 4px;\n background-color: white;\n -webkit-transition: 0.4s;\n transition: 0.4s;\n}\n\n.EquationEditorModal input:checked + .slider {\n background-color: #663676;\n}\n\n.EquationEditorModal input:focus + .slider {\n box-shadow: 0 0 1px #2196f3;\n}\n\n.EquationEditorModal input:checked + .slider:before {\n -webkit-transform: translateX(13px);\n -ms-transform: translateX(13px);\n transform: translateX(13px);\n}\n\n/* Rounded sliders */\n.EquationEditorModal .slider.round {\n border-radius: 18px;\n}\n\n.EquationEditorModal .slider.round:before {\n border-radius: 50%;\n}\n',""]);const s=o},539:(e,t,n)=>{n.d(t,{A:()=>s});var r=n(601),i=n.n(r),a=n(314),o=n.n(a)()(i());o.push([e.id,".EquationEditor {\n height: auto;\n text-align: center;\n}\n\n.EquationEditor .editableAndCursorButtonsWrapper {\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n.EquationEditor .editableWrapper {\n overflow: auto;\n width: 100%;\n}\n\n.EquationEditor .cursorButton {\n font-size: 14px;\n font-weight: bold;\n color: #663676;\n background: white;\n text-align: center;\n border: 1px solid #663676;\n border-radius: 5px;\n min-width: 40px;\n width: auto;\n height: 40px;\n padding: 0px;\n margin-top: 10px;\n margin-left: 15px;\n margin-right: 15px;\n /* transition: all .2s ease-in-out; */\n}\n\n.EquationEditor .centerBox {\n display: inline-block;\n text-align: center;\n}\n\n.EquationEditor .editable {\n /* width:auto; */\n text-align: left;\n min-height: 26px;\n min-width: 150px;\n font-size: 20px;\n color: #404040;\n border: 1px solid #b0b0b0;\n border-radius: 5px;\n /* height:36px; */\n padding: 7px 10px 7px 10px;\n margin-top: 6px;\n margin-bottom: 5px;\n}\n\n.EquationEditor .editable-placeholder {\n position: absolute;\n z-index: -1;\n min-height: 26px;\n min-width: 150px;\n font-size: 15px;\n color: grey;\n /* Note the x translation needs to be updatad programatically if the modal width changes */\n transform: translate(-12px, -36px);\n}\n\n.EquationEditor .editable:focus-within {\n border-radius: 5px;\n border: 1px solid #663676 !important;\n box-shadow: 0px 0px 0px white;\n /* box-shadow: inset 1px 1px 5px #a0a0a0; */\n}\n\n.latexInputAreaWrapper {\n width: auto;\n}\n\n.EquationEditor .katexRenderedInput {\n text-align: left;\n min-height: 30px;\n width: 90%;\n font-size: 16px;\n color: #404040;\n border: 0px solid #b0b0b0;\n border-radius: 5px;\n /* height:36px; */\n padding: 7px 10px 4px 10px;\n margin: 5px 15px;\n}\n\n.EquationEditor .latexInput {\n text-align: left;\n height: 88px;\n width: 90%;\n font-size: 16px;\n /* color: #202020; */\n /* background-color: #e0e0e0; */\n /* color: #00ff00;\n background-color: #202020; */\n color: #007000;\n background-color: #fff;\n border: 1px solid #b0b0b0;\n border-radius: 5px;\n padding: 7px 10px 5px 10px;\n margin-top: 10px;\n box-shadow: 0px 0px 0px white;\n}\n\n.EquationEditor .latexInput:focus {\n border: 1px solid #663676 !important;\n outline: 0;\n /* outline: 2px solid #663676!important; */ /* Has square corners */\n /* box-shadow: inset 1px 1px 5px #a0a0a0, 0px 0px 3px #663676; */\n}\n\n.EquationEditor .insertButton {\n font-size: 14px;\n color: white;\n background: #663676;\n text-align: left;\n border: 0px;\n border-radius: 5px;\n height: 36px;\n padding: 0px 30px;\n margin-top: 5px;\n margin-bottom: 5px;\n margin-left: 5px;\n margin-right: 5px;\n}\n\n.EquationEditor .cancelButton {\n font-size: 14px;\n background: white;\n color: #663676;\n text-align: left;\n border: 1px solid #663676;\n border-radius: 5px;\n height: 36px;\n padding: 0px 30px;\n margin-bottom: 10px;\n margin-left: 5px;\n margin-right: 5px;\n}\n\n.EquationEditor .insertButton:hover {\n color: white;\n background: #461656;\n cursor: pointer;\n}\n\n.EquationEditor .recentSymbols-recentText-active {\n font-size: 14px;\n font-weight: bold;\n color: #404040;\n margin-right: 10px;\n}\n\n.EquationEditor .recentSymbols-recentText-not-active {\n font-size: 14px;\n font-weight: bold;\n color: #808080;\n margin-top: 10px;\n margin-bottom: 10px;\n}\n\n.EquationEditor .tabBar {\n background: white;\n text-align: left;\n border: 0px;\n padding: 10px 10px 5px 20px;\n margin: 5px;\n}\n\n@media (max-width: 500px) {\n .EquationEditor .tabBar {\n padding: 5px 0;\n }\n}\n\n.EquationEditor .tab {\n font-size: 14px;\n font-weight: bold;\n color: #404040;\n text-align: left;\n border: 0px;\n height: 30px;\n padding: 5px 10px;\n margin: 5px;\n border-bottom: 6px solid #d0d0d0;\n}\n\n.EquationEditor .tab:hover {\n cursor: pointer;\n}\n.EquationEditor .tab-selected {\n font-size: 14px;\n font-weight: bold;\n color: #404040;\n text-align: left;\n border: 0px;\n height: 30px;\n padding: 5px 10px;\n margin: 5px;\n border-bottom: 6px solid #663676;\n}\n\n.EquationEditor .recentSymbolsButtonArea {\n display: flex;\n justify-content: flex-start;\n width: 486px;\n padding: 2px;\n margin: 5px;\n margin-left: 15px;\n}\n\n.EquationEditor .symbolButtonAreasOuterContainer {\n overflow-x: auto;\n}\n\n.EquationEditor .symbolButtonAreasInnerContainer {\n display: flex;\n width: 2330px;\n}\n\n.EquationEditor .symbolButtonArea {\n display: grid;\n grid-template-columns: repeat(auto-fill, minmax(36px, 1fr));\n grid-auto-rows: minmax(min-content, max-content);\n grid-gap: 1.5px;\n padding: 12px;\n margin: 0px;\n}\n\n.EquationEditor .symbolButtonArea-1 {\n width: 66px;\n}\n\n.EquationEditor .symbolButtonArea-2 {\n width: 108px;\n}\n\n.EquationEditor .symbolButtonArea-3 {\n width: 150px;\n}\n\n.EquationEditor .symbolButtonArea-4 {\n width: 192px;\n}\n\n.EquationEditor .symbolButtonArea-5 {\n width: 234px;\n}\n\n.EquationEditor .symbolButtonArea-6 {\n width: 276px;\n}\n",""]);const s=o},540:(e,t,n)=>{e.exports=n(287)},551:(e,t,n)=>{var r=n(540),i=n(982);function a(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var o=new Set,s={};function l(e,t){u(e,t),u(e+"Capture",t)}function u(e,t){for(s[e]=t,e=0;e<t.length;e++)o.add(t[e])}var c=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),d=Object.prototype.hasOwnProperty,h=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,p={},f={};function m(e,t,n,r,i,a,o){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=o}var g={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){g[e]=new m(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];g[t]=new m(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){g[e]=new m(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){g[e]=new m(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){g[e]=new m(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){g[e]=new m(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){g[e]=new m(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){g[e]=new m(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){g[e]=new m(e,5,!1,e.toLowerCase(),null,!1,!1)});var b=/[\-:]([a-z])/g;function v(e){return e[1].toUpperCase()}function y(e,t,n,r){var i=g.hasOwnProperty(t)?g[t]:null;(null!==i?0!==i.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,i,r)&&(n=null),r||null===i?function(e){return!!d.call(f,e)||!d.call(p,e)&&(h.test(e)?f[e]=!0:(p[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=null===n?3!==i.type&&"":n:(t=i.attributeName,r=i.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(i=i.type)||4===i&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(b,v);g[t]=new m(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(b,v);g[t]=new m(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(b,v);g[t]=new m(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){g[e]=new m(e,1,!1,e.toLowerCase(),null,!1,!1)}),g.xlinkHref=new m("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){g[e]=new m(e,1,!1,e.toLowerCase(),null,!0,!0)});var x=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,w=Symbol.for("react.element"),k=Symbol.for("react.portal"),S=Symbol.for("react.fragment"),C=Symbol.for("react.strict_mode"),T=Symbol.for("react.profiler"),E=Symbol.for("react.provider"),q=Symbol.for("react.context"),M=Symbol.for("react.forward_ref"),A=Symbol.for("react.suspense"),N=Symbol.for("react.suspense_list"),O=Symbol.for("react.memo"),D=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var z=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var L=Symbol.iterator;function I(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=L&&e[L]||e["@@iterator"])?e:null}var _,R=Object.assign;function B(e){if(void 0===_)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);_=t&&t[1]||""}return"\n"+_+e}var P=!1;function j(e,t){if(!e||P)return"";P=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&"string"==typeof t.stack){for(var i=t.stack.split("\n"),a=r.stack.split("\n"),o=i.length-1,s=a.length-1;1<=o&&0<=s&&i[o]!==a[s];)s--;for(;1<=o&&0<=s;o--,s--)if(i[o]!==a[s]){if(1!==o||1!==s)do{if(o--,0>--s||i[o]!==a[s]){var l="\n"+i[o].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}}while(1<=o&&0<=s);break}}}finally{P=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?B(e):""}function H(e){switch(e.tag){case 5:return B(e.type);case 16:return B("Lazy");case 13:return B("Suspense");case 19:return B("SuspenseList");case 0:case 2:case 15:return j(e.type,!1);case 11:return j(e.type.render,!1);case 1:return j(e.type,!0);default:return""}}function F(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case S:return"Fragment";case k:return"Portal";case T:return"Profiler";case C:return"StrictMode";case A:return"Suspense";case N:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case q:return(e.displayName||"Context")+".Consumer";case E:return(e._context.displayName||"Context")+".Provider";case M:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case O:return null!==(t=e.displayName||null)?t:F(e.type)||"Memo";case D:t=e._payload,e=e._init;try{return F(e(t))}catch(e){}}return null}function U(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return F(t);case 8:return t===C?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function Q(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function W(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function V(e){e._valueTracker||(e._valueTracker=function(e){var t=W(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var i=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){r=""+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function $(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=W(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function G(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function K(e,t){var n=t.checked;return R({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function X(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=Q(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function Y(e,t){null!=(t=t.checked)&&y(e,"checked",t,!1)}function Z(e,t){Y(e,t);var n=Q(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ee(e,t.type,n):t.hasOwnProperty("defaultValue")&&ee(e,t.type,Q(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function J(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ee(e,t,n){"number"===t&&G(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var te=Array.isArray;function ne(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Q(n),t=null,i=0;i<e.length;i++){if(e[i].value===n)return e[i].selected=!0,void(r&&(e[i].defaultSelected=!0));null!==t||e[i].disabled||(t=e[i])}null!==t&&(t.selected=!0)}}function re(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(a(91));return R({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ie(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(a(92));if(te(n)){if(1<n.length)throw Error(a(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:Q(n)}}function ae(e,t){var n=Q(t.value),r=Q(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function oe(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function se(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function le(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?se(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ue,ce,de=(ce=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((ue=ue||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ue.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction(function(){return ce(e,t)})}:ce);function he(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var pe={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},fe=["Webkit","ms","Moz","O"];function me(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||pe.hasOwnProperty(e)&&pe[e]?(""+t).trim():t+"px"}function ge(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=me(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}Object.keys(pe).forEach(function(e){fe.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),pe[t]=pe[e]})});var be=R({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ve(e,t){if(t){if(be[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(a(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(a(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(a(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(a(62))}}function ye(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var xe=null;function we(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var ke=null,Se=null,Ce=null;function Te(e){if(e=yi(e)){if("function"!=typeof ke)throw Error(a(280));var t=e.stateNode;t&&(t=wi(t),ke(e.stateNode,e.type,t))}}function Ee(e){Se?Ce?Ce.push(e):Ce=[e]:Se=e}function qe(){if(Se){var e=Se,t=Ce;if(Ce=Se=null,Te(e),t)for(e=0;e<t.length;e++)Te(t[e])}}function Me(e,t){return e(t)}function Ae(){}var Ne=!1;function Oe(e,t,n){if(Ne)return e(t,n);Ne=!0;try{return Me(e,t,n)}finally{Ne=!1,(null!==Se||null!==Ce)&&(Ae(),qe())}}function De(e,t){var n=e.stateNode;if(null===n)return null;var r=wi(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(a(231,t,typeof n));return n}var ze=!1;if(c)try{var Le={};Object.defineProperty(Le,"passive",{get:function(){ze=!0}}),window.addEventListener("test",Le,Le),window.removeEventListener("test",Le,Le)}catch(ce){ze=!1}function Ie(e,t,n,r,i,a,o,s,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(e){this.onError(e)}}var _e=!1,Re=null,Be=!1,Pe=null,je={onError:function(e){_e=!0,Re=e}};function He(e,t,n,r,i,a,o,s,l){_e=!1,Re=null,Ie.apply(je,arguments)}function Fe(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{!!(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Ue(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&null!==(e=e.alternate)&&(t=e.memoizedState),null!==t)return t.dehydrated}return null}function Qe(e){if(Fe(e)!==e)throw Error(a(188))}function We(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=Fe(e)))throw Error(a(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(null===i)break;var o=i.alternate;if(null===o){if(null!==(r=i.return)){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return Qe(i),e;if(o===r)return Qe(i),t;o=o.sibling}throw Error(a(188))}if(n.return!==r.return)n=i,r=o;else{for(var s=!1,l=i.child;l;){if(l===n){s=!0,n=i,r=o;break}if(l===r){s=!0,r=i,n=o;break}l=l.sibling}if(!s){for(l=o.child;l;){if(l===n){s=!0,n=o,r=i;break}if(l===r){s=!0,r=o,n=i;break}l=l.sibling}if(!s)throw Error(a(189))}}if(n.alternate!==r)throw Error(a(190))}if(3!==n.tag)throw Error(a(188));return n.stateNode.current===n?e:t}(e))?Ve(e):null}function Ve(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=Ve(e);if(null!==t)return t;e=e.sibling}return null}var $e=i.unstable_scheduleCallback,Ge=i.unstable_cancelCallback,Ke=i.unstable_shouldYield,Xe=i.unstable_requestPaint,Ye=i.unstable_now,Ze=i.unstable_getCurrentPriorityLevel,Je=i.unstable_ImmediatePriority,et=i.unstable_UserBlockingPriority,tt=i.unstable_NormalPriority,nt=i.unstable_LowPriority,rt=i.unstable_IdlePriority,it=null,at=null,ot=Math.clz32?Math.clz32:function(e){return 0===(e>>>=0)?32:31-(st(e)/lt|0)|0},st=Math.log,lt=Math.LN2,ut=64,ct=4194304;function dt(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ht(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,i=e.suspendedLanes,a=e.pingedLanes,o=268435455&n;if(0!==o){var s=o&~i;0!==s?r=dt(s):0!==(a&=o)&&(r=dt(a))}else 0!==(o=n&~i)?r=dt(o):0!==a&&(r=dt(a));if(0===r)return 0;if(0!==t&&t!==r&&0===(t&i)&&((i=r&-r)>=(a=t&-t)||16===i&&4194240&a))return t;if(4&r&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)i=1<<(n=31-ot(t)),r|=e[n],t&=~i;return r}function pt(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function ft(e){return 0!=(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function mt(){var e=ut;return!(4194240&(ut<<=1))&&(ut=64),e}function gt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function bt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-ot(t)]=n}function vt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-ot(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var yt=0;function xt(e){return 1<(e&=-e)?4<e?268435455&e?16:536870912:4:1}var wt,kt,St,Ct,Tt,Et=!1,qt=[],Mt=null,At=null,Nt=null,Ot=new Map,Dt=new Map,zt=[],Lt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function It(e,t){switch(e){case"focusin":case"focusout":Mt=null;break;case"dragenter":case"dragleave":At=null;break;case"mouseover":case"mouseout":Nt=null;break;case"pointerover":case"pointerout":Ot.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Dt.delete(t.pointerId)}}function _t(e,t,n,r,i,a){return null===e||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},null!==t&&null!==(t=yi(t))&&kt(t),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==i&&-1===t.indexOf(i)&&t.push(i),e)}function Rt(e){var t=vi(e.target);if(null!==t){var n=Fe(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Ue(n)))return e.blockedOn=t,void Tt(e.priority,function(){St(n)})}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Bt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Kt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=yi(n))&&kt(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);xe=r,n.target.dispatchEvent(r),xe=null,t.shift()}return!0}function Pt(e,t,n){Bt(e)&&n.delete(t)}function jt(){Et=!1,null!==Mt&&Bt(Mt)&&(Mt=null),null!==At&&Bt(At)&&(At=null),null!==Nt&&Bt(Nt)&&(Nt=null),Ot.forEach(Pt),Dt.forEach(Pt)}function Ht(e,t){e.blockedOn===t&&(e.blockedOn=null,Et||(Et=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,jt)))}function Ft(e){function t(t){return Ht(t,e)}if(0<qt.length){Ht(qt[0],e);for(var n=1;n<qt.length;n++){var r=qt[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==Mt&&Ht(Mt,e),null!==At&&Ht(At,e),null!==Nt&&Ht(Nt,e),Ot.forEach(t),Dt.forEach(t),n=0;n<zt.length;n++)(r=zt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<zt.length&&null===(n=zt[0]).blockedOn;)Rt(n),null===n.blockedOn&&zt.shift()}var Ut=x.ReactCurrentBatchConfig,Qt=!0;function Wt(e,t,n,r){var i=yt,a=Ut.transition;Ut.transition=null;try{yt=1,$t(e,t,n,r)}finally{yt=i,Ut.transition=a}}function Vt(e,t,n,r){var i=yt,a=Ut.transition;Ut.transition=null;try{yt=4,$t(e,t,n,r)}finally{yt=i,Ut.transition=a}}function $t(e,t,n,r){if(Qt){var i=Kt(e,t,n,r);if(null===i)Qr(e,t,r,Gt,n),It(e,r);else if(function(e,t,n,r,i){switch(t){case"focusin":return Mt=_t(Mt,e,t,n,r,i),!0;case"dragenter":return At=_t(At,e,t,n,r,i),!0;case"mouseover":return Nt=_t(Nt,e,t,n,r,i),!0;case"pointerover":var a=i.pointerId;return Ot.set(a,_t(Ot.get(a)||null,e,t,n,r,i)),!0;case"gotpointercapture":return a=i.pointerId,Dt.set(a,_t(Dt.get(a)||null,e,t,n,r,i)),!0}return!1}(i,e,t,n,r))r.stopPropagation();else if(It(e,r),4&t&&-1<Lt.indexOf(e)){for(;null!==i;){var a=yi(i);if(null!==a&&wt(a),null===(a=Kt(e,t,n,r))&&Qr(e,t,r,Gt,n),a===i)break;i=a}null!==i&&r.stopPropagation()}else Qr(e,t,r,null,n)}}var Gt=null;function Kt(e,t,n,r){if(Gt=null,null!==(e=vi(e=we(r))))if(null===(t=Fe(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=Ue(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Gt=e,null}function Xt(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Ze()){case Je:return 1;case et:return 4;case tt:case nt:return 16;case rt:return 536870912;default:return 16}default:return 16}}var Yt=null,Zt=null,Jt=null;function en(){if(Jt)return Jt;var e,t,n=Zt,r=n.length,i="value"in Yt?Yt.value:Yt.textContent,a=i.length;for(e=0;e<r&&n[e]===i[e];e++);var o=r-e;for(t=1;t<=o&&n[r-t]===i[a-t];t++);return Jt=i.slice(e,1<t?1-t:void 0)}function tn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function nn(){return!0}function rn(){return!1}function an(e){function t(t,n,r,i,a){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(i):i[o]);return this.isDefaultPrevented=(null!=i.defaultPrevented?i.defaultPrevented:!1===i.returnValue)?nn:rn,this.isPropagationStopped=rn,this}return R(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=nn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nn)},persist:function(){},isPersistent:nn}),t}var on,sn,ln,un={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},cn=an(un),dn=R({},un,{view:0,detail:0}),hn=an(dn),pn=R({},dn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Tn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ln&&(ln&&"mousemove"===e.type?(on=e.screenX-ln.screenX,sn=e.screenY-ln.screenY):sn=on=0,ln=e),on)},movementY:function(e){return"movementY"in e?e.movementY:sn}}),fn=an(pn),mn=an(R({},pn,{dataTransfer:0})),gn=an(R({},dn,{relatedTarget:0})),bn=an(R({},un,{animationName:0,elapsedTime:0,pseudoElement:0})),vn=R({},un,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),yn=an(vn),xn=an(R({},un,{data:0})),wn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},kn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Sn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Cn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Sn[e])&&!!t[e]}function Tn(){return Cn}var En=R({},dn,{key:function(e){if(e.key){var t=wn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?kn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Tn,charCode:function(e){return"keypress"===e.type?tn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),qn=an(En),Mn=an(R({},pn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),An=an(R({},dn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Tn})),Nn=an(R({},un,{propertyName:0,elapsedTime:0,pseudoElement:0})),On=R({},pn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Dn=an(On),zn=[9,13,27,32],Ln=c&&"CompositionEvent"in window,In=null;c&&"documentMode"in document&&(In=document.documentMode);var _n=c&&"TextEvent"in window&&!In,Rn=c&&(!Ln||In&&8<In&&11>=In),Bn=String.fromCharCode(32),Pn=!1;function jn(e,t){switch(e){case"keyup":return-1!==zn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Hn(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Fn=!1,Un={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Qn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Un[e.type]:"textarea"===t}function Wn(e,t,n,r){Ee(r),0<(t=Vr(t,"onChange")).length&&(n=new cn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Vn=null,$n=null;function Gn(e){Br(e,0)}function Kn(e){if($(xi(e)))return e}function Xn(e,t){if("change"===e)return t}var Yn=!1;if(c){var Zn;if(c){var Jn="oninput"in document;if(!Jn){var er=document.createElement("div");er.setAttribute("oninput","return;"),Jn="function"==typeof er.oninput}Zn=Jn}else Zn=!1;Yn=Zn&&(!document.documentMode||9<document.documentMode)}function tr(){Vn&&(Vn.detachEvent("onpropertychange",nr),$n=Vn=null)}function nr(e){if("value"===e.propertyName&&Kn($n)){var t=[];Wn(t,$n,e,we(e)),Oe(Gn,t)}}function rr(e,t,n){"focusin"===e?(tr(),$n=n,(Vn=t).attachEvent("onpropertychange",nr)):"focusout"===e&&tr()}function ir(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Kn($n)}function ar(e,t){if("click"===e)return Kn(t)}function or(e,t){if("input"===e||"change"===e)return Kn(t)}var sr="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function lr(e,t){if(sr(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(r=0;r<n.length;r++){var i=n[r];if(!d.call(t,i)||!sr(e[i],t[i]))return!1}return!0}function ur(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function cr(e,t){var n,r=ur(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=ur(r)}}function dr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?dr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function hr(){for(var e=window,t=G();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=G((e=t.contentWindow).document)}return t}function pr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function fr(e){var t=hr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&dr(n.ownerDocument.documentElement,n)){if(null!==r&&pr(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var i=n.textContent.length,a=Math.min(r.start,i);r=void 0===r.end?a:Math.min(r.end,i),!e.extend&&a>r&&(i=r,r=a,a=i),i=cr(n,a);var o=cr(n,r);i&&o&&(1!==e.rangeCount||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&((t=t.createRange()).setStart(i.node,i.offset),e.removeAllRanges(),a>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var mr=c&&"documentMode"in document&&11>=document.documentMode,gr=null,br=null,vr=null,yr=!1;function xr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;yr||null==gr||gr!==G(r)||(r="selectionStart"in(r=gr)&&pr(r)?{start:r.selectionStart,end:r.selectionEnd}:{anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},vr&&lr(vr,r)||(vr=r,0<(r=Vr(br,"onSelect")).length&&(t=new cn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=gr)))}function wr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var kr={animationend:wr("Animation","AnimationEnd"),animationiteration:wr("Animation","AnimationIteration"),animationstart:wr("Animation","AnimationStart"),transitionend:wr("Transition","TransitionEnd")},Sr={},Cr={};function Tr(e){if(Sr[e])return Sr[e];if(!kr[e])return e;var t,n=kr[e];for(t in n)if(n.hasOwnProperty(t)&&t in Cr)return Sr[e]=n[t];return e}c&&(Cr=document.createElement("div").style,"AnimationEvent"in window||(delete kr.animationend.animation,delete kr.animationiteration.animation,delete kr.animationstart.animation),"TransitionEvent"in window||delete kr.transitionend.transition);var Er=Tr("animationend"),qr=Tr("animationiteration"),Mr=Tr("animationstart"),Ar=Tr("transitionend"),Nr=new Map,Or="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Dr(e,t){Nr.set(e,t),l(t,[e])}for(var zr=0;zr<Or.length;zr++){var Lr=Or[zr];Dr(Lr.toLowerCase(),"on"+(Lr[0].toUpperCase()+Lr.slice(1)))}Dr(Er,"onAnimationEnd"),Dr(qr,"onAnimationIteration"),Dr(Mr,"onAnimationStart"),Dr("dblclick","onDoubleClick"),Dr("focusin","onFocus"),Dr("focusout","onBlur"),Dr(Ar,"onTransitionEnd"),u("onMouseEnter",["mouseout","mouseover"]),u("onMouseLeave",["mouseout","mouseover"]),u("onPointerEnter",["pointerout","pointerover"]),u("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ir="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),_r=new Set("cancel close invalid load scroll toggle".split(" ").concat(Ir));function Rr(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,i,o,s,l,u){if(He.apply(this,arguments),_e){if(!_e)throw Error(a(198));var c=Re;_e=!1,Re=null,Be||(Be=!0,Pe=c)}}(r,t,void 0,e),e.currentTarget=null}function Br(e,t){t=!!(4&t);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var a=void 0;if(t)for(var o=r.length-1;0<=o;o--){var s=r[o],l=s.instance,u=s.currentTarget;if(s=s.listener,l!==a&&i.isPropagationStopped())break e;Rr(i,s,u),a=l}else for(o=0;o<r.length;o++){if(l=(s=r[o]).instance,u=s.currentTarget,s=s.listener,l!==a&&i.isPropagationStopped())break e;Rr(i,s,u),a=l}}}if(Be)throw e=Pe,Be=!1,Pe=null,e}function Pr(e,t){var n=t[mi];void 0===n&&(n=t[mi]=new Set);var r=e+"__bubble";n.has(r)||(Ur(t,e,2,!1),n.add(r))}function jr(e,t,n){var r=0;t&&(r|=4),Ur(n,e,r,t)}var Hr="_reactListening"+Math.random().toString(36).slice(2);function Fr(e){if(!e[Hr]){e[Hr]=!0,o.forEach(function(t){"selectionchange"!==t&&(_r.has(t)||jr(t,!1,e),jr(t,!0,e))});var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Hr]||(t[Hr]=!0,jr("selectionchange",!1,t))}}function Ur(e,t,n,r){switch(Xt(t)){case 1:var i=Wt;break;case 4:i=Vt;break;default:i=$t}n=i.bind(null,t,n,e),i=void 0,!ze||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(i=!0),r?void 0!==i?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):void 0!==i?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function Qr(e,t,n,r,i){var a=r;if(!(1&t||2&t||null===r))e:for(;;){if(null===r)return;var o=r.tag;if(3===o||4===o){var s=r.stateNode.containerInfo;if(s===i||8===s.nodeType&&s.parentNode===i)break;if(4===o)for(o=r.return;null!==o;){var l=o.tag;if((3===l||4===l)&&((l=o.stateNode.containerInfo)===i||8===l.nodeType&&l.parentNode===i))return;o=o.return}for(;null!==s;){if(null===(o=vi(s)))return;if(5===(l=o.tag)||6===l){r=a=o;continue e}s=s.parentNode}}r=r.return}Oe(function(){var r=a,i=we(n),o=[];e:{var s=Nr.get(e);if(void 0!==s){var l=cn,u=e;switch(e){case"keypress":if(0===tn(n))break e;case"keydown":case"keyup":l=qn;break;case"focusin":u="focus",l=gn;break;case"focusout":u="blur",l=gn;break;case"beforeblur":case"afterblur":l=gn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=fn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=mn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=An;break;case Er:case qr:case Mr:l=bn;break;case Ar:l=Nn;break;case"scroll":l=hn;break;case"wheel":l=Dn;break;case"copy":case"cut":case"paste":l=yn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=Mn}var c=!!(4&t),d=!c&&"scroll"===e,h=c?null!==s?s+"Capture":null:s;c=[];for(var p,f=r;null!==f;){var m=(p=f).stateNode;if(5===p.tag&&null!==m&&(p=m,null!==h&&null!=(m=De(f,h))&&c.push(Wr(f,m,p))),d)break;f=f.return}0<c.length&&(s=new l(s,u,null,n,i),o.push({event:s,listeners:c}))}}if(!(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||n===xe||!(u=n.relatedTarget||n.fromElement)||!vi(u)&&!u[fi])&&(l||s)&&(s=i.window===i?i:(s=i.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=r,null!==(u=(u=n.relatedTarget||n.toElement)?vi(u):null)&&(u!==(d=Fe(u))||5!==u.tag&&6!==u.tag)&&(u=null)):(l=null,u=r),l!==u)){if(c=fn,m="onMouseLeave",h="onMouseEnter",f="mouse","pointerout"!==e&&"pointerover"!==e||(c=Mn,m="onPointerLeave",h="onPointerEnter",f="pointer"),d=null==l?s:xi(l),p=null==u?s:xi(u),(s=new c(m,f+"leave",l,n,i)).target=d,s.relatedTarget=p,m=null,vi(i)===r&&((c=new c(h,f+"enter",u,n,i)).target=p,c.relatedTarget=d,m=c),d=m,l&&u)e:{for(h=u,f=0,p=c=l;p;p=$r(p))f++;for(p=0,m=h;m;m=$r(m))p++;for(;0<f-p;)c=$r(c),f--;for(;0<p-f;)h=$r(h),p--;for(;f--;){if(c===h||null!==h&&c===h.alternate)break e;c=$r(c),h=$r(h)}c=null}else c=null;null!==l&&Gr(o,s,l,c,!1),null!==u&&null!==d&&Gr(o,d,u,c,!0)}if("select"===(l=(s=r?xi(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var g=Xn;else if(Qn(s))if(Yn)g=or;else{g=ir;var b=rr}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(g=ar);switch(g&&(g=g(e,r))?Wn(o,g,n,i):(b&&b(e,s,r),"focusout"===e&&(b=s._wrapperState)&&b.controlled&&"number"===s.type&&ee(s,"number",s.value)),b=r?xi(r):window,e){case"focusin":(Qn(b)||"true"===b.contentEditable)&&(gr=b,br=r,vr=null);break;case"focusout":vr=br=gr=null;break;case"mousedown":yr=!0;break;case"contextmenu":case"mouseup":case"dragend":yr=!1,xr(o,n,i);break;case"selectionchange":if(mr)break;case"keydown":case"keyup":xr(o,n,i)}var v;if(Ln)e:{switch(e){case"compositionstart":var y="onCompositionStart";break e;case"compositionend":y="onCompositionEnd";break e;case"compositionupdate":y="onCompositionUpdate";break e}y=void 0}else Fn?jn(e,n)&&(y="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(y="onCompositionStart");y&&(Rn&&"ko"!==n.locale&&(Fn||"onCompositionStart"!==y?"onCompositionEnd"===y&&Fn&&(v=en()):(Zt="value"in(Yt=i)?Yt.value:Yt.textContent,Fn=!0)),0<(b=Vr(r,y)).length&&(y=new xn(y,e,null,n,i),o.push({event:y,listeners:b}),(v||null!==(v=Hn(n)))&&(y.data=v))),(v=_n?function(e,t){switch(e){case"compositionend":return Hn(t);case"keypress":return 32!==t.which?null:(Pn=!0,Bn);case"textInput":return(e=t.data)===Bn&&Pn?null:e;default:return null}}(e,n):function(e,t){if(Fn)return"compositionend"===e||!Ln&&jn(e,t)?(e=en(),Jt=Zt=Yt=null,Fn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Rn&&"ko"!==t.locale?null:t.data}}(e,n))&&0<(r=Vr(r,"onBeforeInput")).length&&(i=new xn("onBeforeInput","beforeinput",null,n,i),o.push({event:i,listeners:r}),i.data=v)}Br(o,t)})}function Wr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Vr(e,t){for(var n=t+"Capture",r=[];null!==e;){var i=e,a=i.stateNode;5===i.tag&&null!==a&&(i=a,null!=(a=De(e,n))&&r.unshift(Wr(e,a,i)),null!=(a=De(e,t))&&r.push(Wr(e,a,i))),e=e.return}return r}function $r(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Gr(e,t,n,r,i){for(var a=t._reactName,o=[];null!==n&&n!==r;){var s=n,l=s.alternate,u=s.stateNode;if(null!==l&&l===r)break;5===s.tag&&null!==u&&(s=u,i?null!=(l=De(n,a))&&o.unshift(Wr(n,l,s)):i||null!=(l=De(n,a))&&o.push(Wr(n,l,s))),n=n.return}0!==o.length&&e.push({event:t,listeners:o})}var Kr=/\r\n?/g,Xr=/\u0000|\uFFFD/g;function Yr(e){return("string"==typeof e?e:""+e).replace(Kr,"\n").replace(Xr,"")}function Zr(e,t,n){if(t=Yr(t),Yr(e)!==t&&n)throw Error(a(425))}function Jr(){}var ei=null,ti=null;function ni(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var ri="function"==typeof setTimeout?setTimeout:void 0,ii="function"==typeof clearTimeout?clearTimeout:void 0,ai="function"==typeof Promise?Promise:void 0,oi="function"==typeof queueMicrotask?queueMicrotask:void 0!==ai?function(e){return ai.resolve(null).then(e).catch(si)}:ri;function si(e){setTimeout(function(){throw e})}function li(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&8===i.nodeType)if("/$"===(n=i.data)){if(0===r)return e.removeChild(i),void Ft(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=i}while(n);Ft(t)}function ui(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function ci(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var di=Math.random().toString(36).slice(2),hi="__reactFiber$"+di,pi="__reactProps$"+di,fi="__reactContainer$"+di,mi="__reactEvents$"+di,gi="__reactListeners$"+di,bi="__reactHandles$"+di;function vi(e){var t=e[hi];if(t)return t;for(var n=e.parentNode;n;){if(t=n[fi]||n[hi]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=ci(e);null!==e;){if(n=e[hi])return n;e=ci(e)}return t}n=(e=n).parentNode}return null}function yi(e){return!(e=e[hi]||e[fi])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function xi(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(a(33))}function wi(e){return e[pi]||null}var ki=[],Si=-1;function Ci(e){return{current:e}}function Ti(e){0>Si||(e.current=ki[Si],ki[Si]=null,Si--)}function Ei(e,t){Si++,ki[Si]=e.current,e.current=t}var qi={},Mi=Ci(qi),Ai=Ci(!1),Ni=qi;function Oi(e,t){var n=e.type.contextTypes;if(!n)return qi;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,a={};for(i in n)a[i]=t[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function Di(e){return null!=e.childContextTypes}function zi(){Ti(Ai),Ti(Mi)}function Li(e,t,n){if(Mi.current!==qi)throw Error(a(168));Ei(Mi,t),Ei(Ai,n)}function Ii(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var i in r=r.getChildContext())if(!(i in t))throw Error(a(108,U(e)||"Unknown",i));return R({},n,r)}function _i(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||qi,Ni=Mi.current,Ei(Mi,e),Ei(Ai,Ai.current),!0}function Ri(e,t,n){var r=e.stateNode;if(!r)throw Error(a(169));n?(e=Ii(e,t,Ni),r.__reactInternalMemoizedMergedChildContext=e,Ti(Ai),Ti(Mi),Ei(Mi,e)):Ti(Ai),Ei(Ai,n)}var Bi=null,Pi=!1,ji=!1;function Hi(e){null===Bi?Bi=[e]:Bi.push(e)}function Fi(){if(!ji&&null!==Bi){ji=!0;var e=0,t=yt;try{var n=Bi;for(yt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}Bi=null,Pi=!1}catch(t){throw null!==Bi&&(Bi=Bi.slice(e+1)),$e(Je,Fi),t}finally{yt=t,ji=!1}}return null}var Ui=[],Qi=0,Wi=null,Vi=0,$i=[],Gi=0,Ki=null,Xi=1,Yi="";function Zi(e,t){Ui[Qi++]=Vi,Ui[Qi++]=Wi,Wi=e,Vi=t}function Ji(e,t,n){$i[Gi++]=Xi,$i[Gi++]=Yi,$i[Gi++]=Ki,Ki=e;var r=Xi;e=Yi;var i=32-ot(r)-1;r&=~(1<<i),n+=1;var a=32-ot(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,Xi=1<<32-ot(t)+i|n<<i|r,Yi=a+e}else Xi=1<<a|n<<i|r,Yi=e}function ea(e){null!==e.return&&(Zi(e,1),Ji(e,1,0))}function ta(e){for(;e===Wi;)Wi=Ui[--Qi],Ui[Qi]=null,Vi=Ui[--Qi],Ui[Qi]=null;for(;e===Ki;)Ki=$i[--Gi],$i[Gi]=null,Yi=$i[--Gi],$i[Gi]=null,Xi=$i[--Gi],$i[Gi]=null}var na=null,ra=null,ia=!1,aa=null;function oa(e,t){var n=Ou(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function sa(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,na=e,ra=ui(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,na=e,ra=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Ki?{id:Xi,overflow:Yi}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Ou(18,null,null,0)).stateNode=t,n.return=e,e.child=n,na=e,ra=null,!0);default:return!1}}function la(e){return!(!(1&e.mode)||128&e.flags)}function ua(e){if(ia){var t=ra;if(t){var n=t;if(!sa(e,t)){if(la(e))throw Error(a(418));t=ui(n.nextSibling);var r=na;t&&sa(e,t)?oa(r,n):(e.flags=-4097&e.flags|2,ia=!1,na=e)}}else{if(la(e))throw Error(a(418));e.flags=-4097&e.flags|2,ia=!1,na=e}}}function ca(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;na=e}function da(e){if(e!==na)return!1;if(!ia)return ca(e),ia=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!ni(e.type,e.memoizedProps)),t&&(t=ra)){if(la(e))throw ha(),Error(a(418));for(;t;)oa(e,t),t=ui(t.nextSibling)}if(ca(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(a(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){ra=ui(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}ra=null}}else ra=na?ui(e.stateNode.nextSibling):null;return!0}function ha(){for(var e=ra;e;)e=ui(e.nextSibling)}function pa(){ra=na=null,ia=!1}function fa(e){null===aa?aa=[e]:aa.push(e)}var ma=x.ReactCurrentBatchConfig;function ga(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(a(309));var r=n.stateNode}if(!r)throw Error(a(147,e));var i=r,o=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===o?t.ref:(t=function(e){var t=i.refs;null===e?delete t[o]:t[o]=e},t._stringRef=o,t)}if("string"!=typeof e)throw Error(a(284));if(!n._owner)throw Error(a(290,e))}return e}function ba(e,t){throw e=Object.prototype.toString.call(t),Error(a(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function va(e){return(0,e._init)(e._payload)}function ya(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function i(e,t){return(e=zu(e,t)).index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function s(t){return e&&null===t.alternate&&(t.flags|=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=Ru(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function u(e,t,n,r){var a=n.type;return a===S?d(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===a||"object"==typeof a&&null!==a&&a.$$typeof===D&&va(a)===t.type)?((r=i(t,n.props)).ref=ga(e,t,n),r.return=e,r):((r=Lu(n.type,n.key,n.props,null,e.mode,r)).ref=ga(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Bu(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function d(e,t,n,r,a){return null===t||7!==t.tag?((t=Iu(n,e.mode,r,a)).return=e,t):((t=i(t,n)).return=e,t)}function h(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=Ru(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case w:return(n=Lu(t.type,t.key,t.props,null,e.mode,n)).ref=ga(e,null,t),n.return=e,n;case k:return(t=Bu(t,e.mode,n)).return=e,t;case D:return h(e,(0,t._init)(t._payload),n)}if(te(t)||I(t))return(t=Iu(t,e.mode,n,null)).return=e,t;ba(e,t)}return null}function p(e,t,n,r){var i=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==i?null:l(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case w:return n.key===i?u(e,t,n,r):null;case k:return n.key===i?c(e,t,n,r):null;case D:return p(e,t,(i=n._init)(n._payload),r)}if(te(n)||I(n))return null!==i?null:d(e,t,n,r,null);ba(e,n)}return null}function f(e,t,n,r,i){if("string"==typeof r&&""!==r||"number"==typeof r)return l(t,e=e.get(n)||null,""+r,i);if("object"==typeof r&&null!==r){switch(r.$$typeof){case w:return u(t,e=e.get(null===r.key?n:r.key)||null,r,i);case k:return c(t,e=e.get(null===r.key?n:r.key)||null,r,i);case D:return f(e,t,n,(0,r._init)(r._payload),i)}if(te(r)||I(r))return d(t,e=e.get(n)||null,r,i,null);ba(t,r)}return null}function m(i,a,s,l){for(var u=null,c=null,d=a,m=a=0,g=null;null!==d&&m<s.length;m++){d.index>m?(g=d,d=null):g=d.sibling;var b=p(i,d,s[m],l);if(null===b){null===d&&(d=g);break}e&&d&&null===b.alternate&&t(i,d),a=o(b,a,m),null===c?u=b:c.sibling=b,c=b,d=g}if(m===s.length)return n(i,d),ia&&Zi(i,m),u;if(null===d){for(;m<s.length;m++)null!==(d=h(i,s[m],l))&&(a=o(d,a,m),null===c?u=d:c.sibling=d,c=d);return ia&&Zi(i,m),u}for(d=r(i,d);m<s.length;m++)null!==(g=f(d,i,m,s[m],l))&&(e&&null!==g.alternate&&d.delete(null===g.key?m:g.key),a=o(g,a,m),null===c?u=g:c.sibling=g,c=g);return e&&d.forEach(function(e){return t(i,e)}),ia&&Zi(i,m),u}function g(i,s,l,u){var c=I(l);if("function"!=typeof c)throw Error(a(150));if(null==(l=c.call(l)))throw Error(a(151));for(var d=c=null,m=s,g=s=0,b=null,v=l.next();null!==m&&!v.done;g++,v=l.next()){m.index>g?(b=m,m=null):b=m.sibling;var y=p(i,m,v.value,u);if(null===y){null===m&&(m=b);break}e&&m&&null===y.alternate&&t(i,m),s=o(y,s,g),null===d?c=y:d.sibling=y,d=y,m=b}if(v.done)return n(i,m),ia&&Zi(i,g),c;if(null===m){for(;!v.done;g++,v=l.next())null!==(v=h(i,v.value,u))&&(s=o(v,s,g),null===d?c=v:d.sibling=v,d=v);return ia&&Zi(i,g),c}for(m=r(i,m);!v.done;g++,v=l.next())null!==(v=f(m,i,g,v.value,u))&&(e&&null!==v.alternate&&m.delete(null===v.key?g:v.key),s=o(v,s,g),null===d?c=v:d.sibling=v,d=v);return e&&m.forEach(function(e){return t(i,e)}),ia&&Zi(i,g),c}return function e(r,a,o,l){if("object"==typeof o&&null!==o&&o.type===S&&null===o.key&&(o=o.props.children),"object"==typeof o&&null!==o){switch(o.$$typeof){case w:e:{for(var u=o.key,c=a;null!==c;){if(c.key===u){if((u=o.type)===S){if(7===c.tag){n(r,c.sibling),(a=i(c,o.props.children)).return=r,r=a;break e}}else if(c.elementType===u||"object"==typeof u&&null!==u&&u.$$typeof===D&&va(u)===c.type){n(r,c.sibling),(a=i(c,o.props)).ref=ga(r,c,o),a.return=r,r=a;break e}n(r,c);break}t(r,c),c=c.sibling}o.type===S?((a=Iu(o.props.children,r.mode,l,o.key)).return=r,r=a):((l=Lu(o.type,o.key,o.props,null,r.mode,l)).ref=ga(r,a,o),l.return=r,r=l)}return s(r);case k:e:{for(c=o.key;null!==a;){if(a.key===c){if(4===a.tag&&a.stateNode.containerInfo===o.containerInfo&&a.stateNode.implementation===o.implementation){n(r,a.sibling),(a=i(a,o.children||[])).return=r,r=a;break e}n(r,a);break}t(r,a),a=a.sibling}(a=Bu(o,r.mode,l)).return=r,r=a}return s(r);case D:return e(r,a,(c=o._init)(o._payload),l)}if(te(o))return m(r,a,o,l);if(I(o))return g(r,a,o,l);ba(r,o)}return"string"==typeof o&&""!==o||"number"==typeof o?(o=""+o,null!==a&&6===a.tag?(n(r,a.sibling),(a=i(a,o)).return=r,r=a):(n(r,a),(a=Ru(o,r.mode,l)).return=r,r=a),s(r)):n(r,a)}}var xa=ya(!0),wa=ya(!1),ka=Ci(null),Sa=null,Ca=null,Ta=null;function Ea(){Ta=Ca=Sa=null}function qa(e){var t=ka.current;Ti(ka),e._currentValue=t}function Ma(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Aa(e,t){Sa=e,Ta=Ca=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&t)&&(ys=!0),e.firstContext=null)}function Na(e){var t=e._currentValue;if(Ta!==e)if(e={context:e,memoizedValue:t,next:null},null===Ca){if(null===Sa)throw Error(a(308));Ca=e,Sa.dependencies={lanes:0,firstContext:e}}else Ca=Ca.next=e;return t}var Oa=null;function Da(e){null===Oa?Oa=[e]:Oa.push(e)}function za(e,t,n,r){var i=t.interleaved;return null===i?(n.next=n,Da(t)):(n.next=i.next,i.next=n),t.interleaved=n,La(e,r)}function La(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var Ia=!1;function _a(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Ra(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Ba(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Pa(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,2&Ml){var i=r.pending;return null===i?t.next=t:(t.next=i.next,i.next=t),r.pending=t,La(e,n)}return null===(i=r.interleaved)?(t.next=t,Da(r)):(t.next=i.next,i.next=t),r.interleaved=t,La(e,n)}function ja(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,vt(e,n)}}function Ha(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var i=null,a=null;if(null!==(n=n.firstBaseUpdate)){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===a?i=a=o:a=a.next=o,n=n.next}while(null!==n);null===a?i=a=t:a=a.next=t}else i=a=t;return n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Fa(e,t,n,r){var i=e.updateQueue;Ia=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(null!==s){i.shared.pending=null;var l=s,u=l.next;l.next=null,null===o?a=u:o.next=u,o=l;var c=e.alternate;null!==c&&(s=(c=c.updateQueue).lastBaseUpdate)!==o&&(null===s?c.firstBaseUpdate=u:s.next=u,c.lastBaseUpdate=l)}if(null!==a){var d=i.baseState;for(o=0,c=u=l=null,s=a;;){var h=s.lane,p=s.eventTime;if((r&h)===h){null!==c&&(c=c.next={eventTime:p,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var f=e,m=s;switch(h=t,p=n,m.tag){case 1:if("function"==typeof(f=m.payload)){d=f.call(p,d,h);break e}d=f;break e;case 3:f.flags=-65537&f.flags|128;case 0:if(null==(h="function"==typeof(f=m.payload)?f.call(p,d,h):f))break e;d=R({},d,h);break e;case 2:Ia=!0}}null!==s.callback&&0!==s.lane&&(e.flags|=64,null===(h=i.effects)?i.effects=[s]:h.push(s))}else p={eventTime:p,lane:h,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===c?(u=c=p,l=d):c=c.next=p,o|=h;if(null===(s=s.next)){if(null===(s=i.shared.pending))break;s=(h=s).next,h.next=null,i.lastBaseUpdate=h,i.shared.pending=null}}if(null===c&&(l=d),i.baseState=l,i.firstBaseUpdate=u,i.lastBaseUpdate=c,null!==(t=i.shared.interleaved)){i=t;do{o|=i.lane,i=i.next}while(i!==t)}else null===a&&(i.shared.lanes=0);_l|=o,e.lanes=o,e.memoizedState=d}}function Ua(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(null!==i){if(r.callback=null,r=n,"function"!=typeof i)throw Error(a(191,i));i.call(r)}}}var Qa={},Wa=Ci(Qa),Va=Ci(Qa),$a=Ci(Qa);function Ga(e){if(e===Qa)throw Error(a(174));return e}function Ka(e,t){switch(Ei($a,t),Ei(Va,e),Ei(Wa,Qa),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:le(null,"");break;default:t=le(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Ti(Wa),Ei(Wa,t)}function Xa(){Ti(Wa),Ti(Va),Ti($a)}function Ya(e){Ga($a.current);var t=Ga(Wa.current),n=le(t,e.type);t!==n&&(Ei(Va,e),Ei(Wa,n))}function Za(e){Va.current===e&&(Ti(Wa),Ti(Va))}var Ja=Ci(0);function eo(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(128&t.flags)return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var to=[];function no(){for(var e=0;e<to.length;e++)to[e]._workInProgressVersionPrimary=null;to.length=0}var ro=x.ReactCurrentDispatcher,io=x.ReactCurrentBatchConfig,ao=0,oo=null,so=null,lo=null,uo=!1,co=!1,ho=0,po=0;function fo(){throw Error(a(321))}function mo(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!sr(e[n],t[n]))return!1;return!0}function go(e,t,n,r,i,o){if(ao=o,oo=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ro.current=null===e||null===e.memoizedState?Jo:es,e=n(r,i),co){o=0;do{if(co=!1,ho=0,25<=o)throw Error(a(301));o+=1,lo=so=null,t.updateQueue=null,ro.current=ts,e=n(r,i)}while(co)}if(ro.current=Zo,t=null!==so&&null!==so.next,ao=0,lo=so=oo=null,uo=!1,t)throw Error(a(300));return e}function bo(){var e=0!==ho;return ho=0,e}function vo(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===lo?oo.memoizedState=lo=e:lo=lo.next=e,lo}function yo(){if(null===so){var e=oo.alternate;e=null!==e?e.memoizedState:null}else e=so.next;var t=null===lo?oo.memoizedState:lo.next;if(null!==t)lo=t,so=e;else{if(null===e)throw Error(a(310));e={memoizedState:(so=e).memoizedState,baseState:so.baseState,baseQueue:so.baseQueue,queue:so.queue,next:null},null===lo?oo.memoizedState=lo=e:lo=lo.next=e}return lo}function xo(e,t){return"function"==typeof t?t(e):t}function wo(e){var t=yo(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=so,i=r.baseQueue,o=n.pending;if(null!==o){if(null!==i){var s=i.next;i.next=o.next,o.next=s}r.baseQueue=i=o,n.pending=null}if(null!==i){o=i.next,r=r.baseState;var l=s=null,u=null,c=o;do{var d=c.lane;if((ao&d)===d)null!==u&&(u=u.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var h={lane:d,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};null===u?(l=u=h,s=r):u=u.next=h,oo.lanes|=d,_l|=d}c=c.next}while(null!==c&&c!==o);null===u?s=r:u.next=l,sr(r,t.memoizedState)||(ys=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=u,n.lastRenderedState=r}if(null!==(e=n.interleaved)){i=e;do{o=i.lane,oo.lanes|=o,_l|=o,i=i.next}while(i!==e)}else null===i&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function ko(e){var t=yo(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(null!==i){n.pending=null;var s=i=i.next;do{o=e(o,s.action),s=s.next}while(s!==i);sr(o,t.memoizedState)||(ys=!0),t.memoizedState=o,null===t.baseQueue&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function So(){}function Co(e,t){var n=oo,r=yo(),i=t(),o=!sr(r.memoizedState,i);if(o&&(r.memoizedState=i,ys=!0),r=r.queue,_o(qo.bind(null,n,r,e),[e]),r.getSnapshot!==t||o||null!==lo&&1&lo.memoizedState.tag){if(n.flags|=2048,Oo(9,Eo.bind(null,n,r,i,t),void 0,null),null===Al)throw Error(a(349));30&ao||To(n,t,i)}return i}function To(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=oo.updateQueue)?(t={lastEffect:null,stores:null},oo.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Eo(e,t,n,r){t.value=n,t.getSnapshot=r,Mo(t)&&Ao(e)}function qo(e,t,n){return n(function(){Mo(t)&&Ao(e)})}function Mo(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!sr(e,n)}catch(e){return!0}}function Ao(e){var t=La(e,1);null!==t&&nu(t,e,1,-1)}function No(e){var t=vo();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:xo,lastRenderedState:e},t.queue=e,e=e.dispatch=Go.bind(null,oo,e),[t.memoizedState,e]}function Oo(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=oo.updateQueue)?(t={lastEffect:null,stores:null},oo.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Do(){return yo().memoizedState}function zo(e,t,n,r){var i=vo();oo.flags|=e,i.memoizedState=Oo(1|t,n,void 0,void 0===r?null:r)}function Lo(e,t,n,r){var i=yo();r=void 0===r?null:r;var a=void 0;if(null!==so){var o=so.memoizedState;if(a=o.destroy,null!==r&&mo(r,o.deps))return void(i.memoizedState=Oo(t,n,a,r))}oo.flags|=e,i.memoizedState=Oo(1|t,n,a,r)}function Io(e,t){return zo(8390656,8,e,t)}function _o(e,t){return Lo(2048,8,e,t)}function Ro(e,t){return Lo(4,2,e,t)}function Bo(e,t){return Lo(4,4,e,t)}function Po(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function jo(e,t,n){return n=null!=n?n.concat([e]):null,Lo(4,4,Po.bind(null,t,e),n)}function Ho(){}function Fo(e,t){var n=yo();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&mo(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Uo(e,t){var n=yo();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&mo(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Qo(e,t,n){return 21&ao?(sr(n,t)||(n=mt(),oo.lanes|=n,_l|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,ys=!0),e.memoizedState=n)}function Wo(e,t){var n=yt;yt=0!==n&&4>n?n:4,e(!0);var r=io.transition;io.transition={};try{e(!1),t()}finally{yt=n,io.transition=r}}function Vo(){return yo().memoizedState}function $o(e,t,n){var r=tu(e);n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Ko(e)?Xo(t,n):null!==(n=za(e,t,n,r))&&(nu(n,e,r,eu()),Yo(n,t,r))}function Go(e,t,n){var r=tu(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ko(e))Xo(t,i);else{var a=e.alternate;if(0===e.lanes&&(null===a||0===a.lanes)&&null!==(a=t.lastRenderedReducer))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,sr(s,o)){var l=t.interleaved;return null===l?(i.next=i,Da(t)):(i.next=l.next,l.next=i),void(t.interleaved=i)}}catch(e){}null!==(n=za(e,t,i,r))&&(nu(n,e,r,i=eu()),Yo(n,t,r))}}function Ko(e){var t=e.alternate;return e===oo||null!==t&&t===oo}function Xo(e,t){co=uo=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Yo(e,t,n){if(4194240&n){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,vt(e,n)}}var Zo={readContext:Na,useCallback:fo,useContext:fo,useEffect:fo,useImperativeHandle:fo,useInsertionEffect:fo,useLayoutEffect:fo,useMemo:fo,useReducer:fo,useRef:fo,useState:fo,useDebugValue:fo,useDeferredValue:fo,useTransition:fo,useMutableSource:fo,useSyncExternalStore:fo,useId:fo,unstable_isNewReconciler:!1},Jo={readContext:Na,useCallback:function(e,t){return vo().memoizedState=[e,void 0===t?null:t],e},useContext:Na,useEffect:Io,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,zo(4194308,4,Po.bind(null,t,e),n)},useLayoutEffect:function(e,t){return zo(4194308,4,e,t)},useInsertionEffect:function(e,t){return zo(4,2,e,t)},useMemo:function(e,t){var n=vo();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=vo();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=$o.bind(null,oo,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},vo().memoizedState=e},useState:No,useDebugValue:Ho,useDeferredValue:function(e){return vo().memoizedState=e},useTransition:function(){var e=No(!1),t=e[0];return e=Wo.bind(null,e[1]),vo().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=oo,i=vo();if(ia){if(void 0===n)throw Error(a(407));n=n()}else{if(n=t(),null===Al)throw Error(a(349));30&ao||To(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,Io(qo.bind(null,r,o,e),[e]),r.flags|=2048,Oo(9,Eo.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=vo(),t=Al.identifierPrefix;if(ia){var n=Yi;t=":"+t+"R"+(n=(Xi&~(1<<32-ot(Xi)-1)).toString(32)+n),0<(n=ho++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=po++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},es={readContext:Na,useCallback:Fo,useContext:Na,useEffect:_o,useImperativeHandle:jo,useInsertionEffect:Ro,useLayoutEffect:Bo,useMemo:Uo,useReducer:wo,useRef:Do,useState:function(){return wo(xo)},useDebugValue:Ho,useDeferredValue:function(e){return Qo(yo(),so.memoizedState,e)},useTransition:function(){return[wo(xo)[0],yo().memoizedState]},useMutableSource:So,useSyncExternalStore:Co,useId:Vo,unstable_isNewReconciler:!1},ts={readContext:Na,useCallback:Fo,useContext:Na,useEffect:_o,useImperativeHandle:jo,useInsertionEffect:Ro,useLayoutEffect:Bo,useMemo:Uo,useReducer:ko,useRef:Do,useState:function(){return ko(xo)},useDebugValue:Ho,useDeferredValue:function(e){var t=yo();return null===so?t.memoizedState=e:Qo(t,so.memoizedState,e)},useTransition:function(){return[ko(xo)[0],yo().memoizedState]},useMutableSource:So,useSyncExternalStore:Co,useId:Vo,unstable_isNewReconciler:!1};function ns(e,t){if(e&&e.defaultProps){for(var n in t=R({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function rs(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:R({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var is={isMounted:function(e){return!!(e=e._reactInternals)&&Fe(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=eu(),i=tu(e),a=Ba(r,i);a.payload=t,null!=n&&(a.callback=n),null!==(t=Pa(e,a,i))&&(nu(t,e,i,r),ja(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=eu(),i=tu(e),a=Ba(r,i);a.tag=1,a.payload=t,null!=n&&(a.callback=n),null!==(t=Pa(e,a,i))&&(nu(t,e,i,r),ja(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=eu(),r=tu(e),i=Ba(n,r);i.tag=2,null!=t&&(i.callback=t),null!==(t=Pa(e,i,r))&&(nu(t,e,r,n),ja(t,e,r))}};function as(e,t,n,r,i,a,o){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,a,o):!(t.prototype&&t.prototype.isPureReactComponent&&lr(n,r)&&lr(i,a))}function os(e,t,n){var r=!1,i=qi,a=t.contextType;return"object"==typeof a&&null!==a?a=Na(a):(i=Di(t)?Ni:Mi.current,a=(r=null!=(r=t.contextTypes))?Oi(e,i):qi),t=new t(n,a),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=is,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=a),t}function ss(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&is.enqueueReplaceState(t,t.state,null)}function ls(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},_a(e);var a=t.contextType;"object"==typeof a&&null!==a?i.context=Na(a):(a=Di(t)?Ni:Mi.current,i.context=Oi(e,a)),i.state=e.memoizedState,"function"==typeof(a=t.getDerivedStateFromProps)&&(rs(e,t,a,n),i.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof i.getSnapshotBeforeUpdate||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||(t=i.state,"function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),t!==i.state&&is.enqueueReplaceState(i,i.state,null),Fa(e,n,i,r),i.state=e.memoizedState),"function"==typeof i.componentDidMount&&(e.flags|=4194308)}function us(e,t){try{var n="",r=t;do{n+=H(r),r=r.return}while(r);var i=n}catch(e){i="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:i,digest:null}}function cs(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function ds(e,t){try{console.error(t.value)}catch(e){setTimeout(function(){throw e})}}var hs="function"==typeof WeakMap?WeakMap:Map;function ps(e,t,n){(n=Ba(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Ql||(Ql=!0,Wl=r),ds(0,t)},n}function fs(e,t,n){(n=Ba(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){ds(0,t)}}var a=e.stateNode;return null!==a&&"function"==typeof a.componentDidCatch&&(n.callback=function(){ds(0,t),"function"!=typeof r&&(null===Vl?Vl=new Set([this]):Vl.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function ms(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new hs;var i=new Set;r.set(t,i)}else void 0===(i=r.get(t))&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=Tu.bind(null,e,t,n),t.then(e,e))}function gs(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function bs(e,t,n,r,i){return 1&e.mode?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=Ba(-1,1)).tag=2,Pa(n,t,1))),n.lanes|=1),e)}var vs=x.ReactCurrentOwner,ys=!1;function xs(e,t,n,r){t.child=null===e?wa(t,null,n,r):xa(t,e.child,n,r)}function ws(e,t,n,r,i){n=n.render;var a=t.ref;return Aa(t,i),r=go(e,t,n,r,a,i),n=bo(),null===e||ys?(ia&&n&&ea(t),t.flags|=1,xs(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Qs(e,t,i))}function ks(e,t,n,r,i){if(null===e){var a=n.type;return"function"!=typeof a||Du(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Lu(n.type,null,r,t,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,Ss(e,t,a,r,i))}if(a=e.child,0===(e.lanes&i)){var o=a.memoizedProps;if((n=null!==(n=n.compare)?n:lr)(o,r)&&e.ref===t.ref)return Qs(e,t,i)}return t.flags|=1,(e=zu(a,r)).ref=t.ref,e.return=t,t.child=e}function Ss(e,t,n,r,i){if(null!==e){var a=e.memoizedProps;if(lr(a,r)&&e.ref===t.ref){if(ys=!1,t.pendingProps=r=a,0===(e.lanes&i))return t.lanes=e.lanes,Qs(e,t,i);131072&e.flags&&(ys=!0)}}return Es(e,t,n,r,i)}function Cs(e,t,n){var r=t.pendingProps,i=r.children,a=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(1&t.mode){if(!(1073741824&n))return e=null!==a?a.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Ei(zl,Dl),Dl|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==a?a.baseLanes:n,Ei(zl,Dl),Dl|=r}else t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ei(zl,Dl),Dl|=n;else null!==a?(r=a.baseLanes|n,t.memoizedState=null):r=n,Ei(zl,Dl),Dl|=r;return xs(e,t,i,n),t.child}function Ts(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Es(e,t,n,r,i){var a=Di(n)?Ni:Mi.current;return a=Oi(t,a),Aa(t,i),n=go(e,t,n,r,a,i),r=bo(),null===e||ys?(ia&&r&&ea(t),t.flags|=1,xs(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Qs(e,t,i))}function qs(e,t,n,r,i){if(Di(n)){var a=!0;_i(t)}else a=!1;if(Aa(t,i),null===t.stateNode)Us(e,t),os(t,n,r),ls(t,n,r,i),r=!0;else if(null===e){var o=t.stateNode,s=t.memoizedProps;o.props=s;var l=o.context,u=n.contextType;u="object"==typeof u&&null!==u?Na(u):Oi(t,u=Di(n)?Ni:Mi.current);var c=n.getDerivedStateFromProps,d="function"==typeof c||"function"==typeof o.getSnapshotBeforeUpdate;d||"function"!=typeof o.UNSAFE_componentWillReceiveProps&&"function"!=typeof o.componentWillReceiveProps||(s!==r||l!==u)&&ss(t,o,r,u),Ia=!1;var h=t.memoizedState;o.state=h,Fa(t,r,o,i),l=t.memoizedState,s!==r||h!==l||Ai.current||Ia?("function"==typeof c&&(rs(t,n,c,r),l=t.memoizedState),(s=Ia||as(t,n,s,r,h,l,u))?(d||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||("function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount()),"function"==typeof o.componentDidMount&&(t.flags|=4194308)):("function"==typeof o.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),o.props=r,o.state=l,o.context=u,r=s):("function"==typeof o.componentDidMount&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,Ra(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:ns(t.type,s),o.props=u,d=t.pendingProps,h=o.context,l="object"==typeof(l=n.contextType)&&null!==l?Na(l):Oi(t,l=Di(n)?Ni:Mi.current);var p=n.getDerivedStateFromProps;(c="function"==typeof p||"function"==typeof o.getSnapshotBeforeUpdate)||"function"!=typeof o.UNSAFE_componentWillReceiveProps&&"function"!=typeof o.componentWillReceiveProps||(s!==d||h!==l)&&ss(t,o,r,l),Ia=!1,h=t.memoizedState,o.state=h,Fa(t,r,o,i);var f=t.memoizedState;s!==d||h!==f||Ai.current||Ia?("function"==typeof p&&(rs(t,n,p,r),f=t.memoizedState),(u=Ia||as(t,n,u,r,h,f,l)||!1)?(c||"function"!=typeof o.UNSAFE_componentWillUpdate&&"function"!=typeof o.componentWillUpdate||("function"==typeof o.componentWillUpdate&&o.componentWillUpdate(r,f,l),"function"==typeof o.UNSAFE_componentWillUpdate&&o.UNSAFE_componentWillUpdate(r,f,l)),"function"==typeof o.componentDidUpdate&&(t.flags|=4),"function"==typeof o.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof o.componentDidUpdate||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),"function"!=typeof o.getSnapshotBeforeUpdate||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=f),o.props=r,o.state=f,o.context=l,r=u):("function"!=typeof o.componentDidUpdate||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),"function"!=typeof o.getSnapshotBeforeUpdate||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),r=!1)}return Ms(e,t,n,r,a,i)}function Ms(e,t,n,r,i,a){Ts(e,t);var o=!!(128&t.flags);if(!r&&!o)return i&&Ri(t,n,!1),Qs(e,t,a);r=t.stateNode,vs.current=t;var s=o&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&o?(t.child=xa(t,e.child,null,a),t.child=xa(t,null,s,a)):xs(e,t,s,a),t.memoizedState=r.state,i&&Ri(t,n,!0),t.child}function As(e){var t=e.stateNode;t.pendingContext?Li(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Li(0,t.context,!1),Ka(e,t.containerInfo)}function Ns(e,t,n,r,i){return pa(),fa(i),t.flags|=256,xs(e,t,n,r),t.child}var Os,Ds,zs,Ls,Is={dehydrated:null,treeContext:null,retryLane:0};function _s(e){return{baseLanes:e,cachePool:null,transitions:null}}function Rs(e,t,n){var r,i=t.pendingProps,o=Ja.current,s=!1,l=!!(128&t.flags);if((r=l)||(r=(null===e||null!==e.memoizedState)&&!!(2&o)),r?(s=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(o|=1),Ei(Ja,1&o),null===e)return ua(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(1&t.mode?"$!"===e.data?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(l=i.children,e=i.fallback,s?(i=t.mode,s=t.child,l={mode:"hidden",children:l},1&i||null===s?s=_u(l,i,0,null):(s.childLanes=0,s.pendingProps=l),e=Iu(e,i,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=_s(n),t.memoizedState=Is,e):Bs(t,l));if(null!==(o=e.memoizedState)&&null!==(r=o.dehydrated))return function(e,t,n,r,i,o,s){if(n)return 256&t.flags?(t.flags&=-257,Ps(e,t,s,r=cs(Error(a(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(o=r.fallback,i=t.mode,r=_u({mode:"visible",children:r.children},i,0,null),(o=Iu(o,i,s,null)).flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,1&t.mode&&xa(t,e.child,null,s),t.child.memoizedState=_s(s),t.memoizedState=Is,o);if(!(1&t.mode))return Ps(e,t,s,null);if("$!"===i.data){if(r=i.nextSibling&&i.nextSibling.dataset)var l=r.dgst;return r=l,Ps(e,t,s,r=cs(o=Error(a(419)),r,void 0))}if(l=0!==(s&e.childLanes),ys||l){if(null!==(r=Al)){switch(s&-s){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}0!==(i=0!==(i&(r.suspendedLanes|s))?0:i)&&i!==o.retryLane&&(o.retryLane=i,La(e,i),nu(r,e,i,-1))}return mu(),Ps(e,t,s,r=cs(Error(a(421))))}return"$?"===i.data?(t.flags|=128,t.child=e.child,t=qu.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,ra=ui(i.nextSibling),na=t,ia=!0,aa=null,null!==e&&($i[Gi++]=Xi,$i[Gi++]=Yi,$i[Gi++]=Ki,Xi=e.id,Yi=e.overflow,Ki=t),(t=Bs(t,r.children)).flags|=4096,t)}(e,t,l,i,r,o,n);if(s){s=i.fallback,l=t.mode,r=(o=e.child).sibling;var u={mode:"hidden",children:i.children};return 1&l||t.child===o?(i=zu(o,u)).subtreeFlags=14680064&o.subtreeFlags:((i=t.child).childLanes=0,i.pendingProps=u,t.deletions=null),null!==r?s=zu(r,s):(s=Iu(s,l,n,null)).flags|=2,s.return=t,i.return=t,i.sibling=s,t.child=i,i=s,s=t.child,l=null===(l=e.child.memoizedState)?_s(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},s.memoizedState=l,s.childLanes=e.childLanes&~n,t.memoizedState=Is,i}return e=(s=e.child).sibling,i=zu(s,{mode:"visible",children:i.children}),!(1&t.mode)&&(i.lanes=n),i.return=t,i.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=i,t.memoizedState=null,i}function Bs(e,t){return(t=_u({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Ps(e,t,n,r){return null!==r&&fa(r),xa(t,e.child,null,n),(e=Bs(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function js(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Ma(e.return,t,n)}function Hs(e,t,n,r,i){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=i)}function Fs(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;if(xs(e,t,r.children,n),2&(r=Ja.current))r=1&r|2,t.flags|=128;else{if(null!==e&&128&e.flags)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&js(e,n,t);else if(19===e.tag)js(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Ei(Ja,r),1&t.mode)switch(i){case"forwards":for(n=t.child,i=null;null!==n;)null!==(e=n.alternate)&&null===eo(e)&&(i=n),n=n.sibling;null===(n=i)?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Hs(t,!1,i,n,a);break;case"backwards":for(n=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===eo(e)){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Hs(t,!0,n,null,a);break;case"together":Hs(t,!1,null,null,void 0);break;default:t.memoizedState=null}else t.memoizedState=null;return t.child}function Us(e,t){!(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Qs(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),_l|=t.lanes,0===(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(a(153));if(null!==t.child){for(n=zu(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=zu(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Ws(e,t){if(!ia)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Vs(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=14680064&i.subtreeFlags,r|=14680064&i.flags,i.return=e,i=i.sibling;else for(i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function $s(e,t,n){var r=t.pendingProps;switch(ta(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Vs(t),null;case 1:case 17:return Di(t.type)&&zi(),Vs(t),null;case 3:return r=t.stateNode,Xa(),Ti(Ai),Ti(Mi),no(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(da(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,null!==aa&&(ou(aa),aa=null))),Ds(e,t),Vs(t),null;case 5:Za(t);var i=Ga($a.current);if(n=t.type,null!==e&&null!=t.stateNode)zs(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(a(166));return Vs(t),null}if(e=Ga(Wa.current),da(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[hi]=t,r[pi]=o,e=!!(1&t.mode),n){case"dialog":Pr("cancel",r),Pr("close",r);break;case"iframe":case"object":case"embed":Pr("load",r);break;case"video":case"audio":for(i=0;i<Ir.length;i++)Pr(Ir[i],r);break;case"source":Pr("error",r);break;case"img":case"image":case"link":Pr("error",r),Pr("load",r);break;case"details":Pr("toggle",r);break;case"input":X(r,o),Pr("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},Pr("invalid",r);break;case"textarea":ie(r,o),Pr("invalid",r)}for(var l in ve(n,o),i=null,o)if(o.hasOwnProperty(l)){var u=o[l];"children"===l?"string"==typeof u?r.textContent!==u&&(!0!==o.suppressHydrationWarning&&Zr(r.textContent,u,e),i=["children",u]):"number"==typeof u&&r.textContent!==""+u&&(!0!==o.suppressHydrationWarning&&Zr(r.textContent,u,e),i=["children",""+u]):s.hasOwnProperty(l)&&null!=u&&"onScroll"===l&&Pr("scroll",r)}switch(n){case"input":V(r),J(r,o,!0);break;case"textarea":V(r),oe(r);break;case"select":case"option":break;default:"function"==typeof o.onClick&&(r.onclick=Jr)}r=i,t.updateQueue=r,null!==r&&(t.flags|=4)}else{l=9===i.nodeType?i:i.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=se(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=l.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),"select"===n&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[hi]=t,e[pi]=r,Os(e,t,!1,!1),t.stateNode=e;e:{switch(l=ye(n,r),n){case"dialog":Pr("cancel",e),Pr("close",e),i=r;break;case"iframe":case"object":case"embed":Pr("load",e),i=r;break;case"video":case"audio":for(i=0;i<Ir.length;i++)Pr(Ir[i],e);i=r;break;case"source":Pr("error",e),i=r;break;case"img":case"image":case"link":Pr("error",e),Pr("load",e),i=r;break;case"details":Pr("toggle",e),i=r;break;case"input":X(e,r),i=K(e,r),Pr("invalid",e);break;case"option":default:i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=R({},r,{value:void 0}),Pr("invalid",e);break;case"textarea":ie(e,r),i=re(e,r),Pr("invalid",e)}for(o in ve(n,i),u=i)if(u.hasOwnProperty(o)){var c=u[o];"style"===o?ge(e,c):"dangerouslySetInnerHTML"===o?null!=(c=c?c.__html:void 0)&&de(e,c):"children"===o?"string"==typeof c?("textarea"!==n||""!==c)&&he(e,c):"number"==typeof c&&he(e,""+c):"suppressContentEditableWarning"!==o&&"suppressHydrationWarning"!==o&&"autoFocus"!==o&&(s.hasOwnProperty(o)?null!=c&&"onScroll"===o&&Pr("scroll",e):null!=c&&y(e,o,c,l))}switch(n){case"input":V(e),J(e,r,!1);break;case"textarea":V(e),oe(e);break;case"option":null!=r.value&&e.setAttribute("value",""+Q(r.value));break;case"select":e.multiple=!!r.multiple,null!=(o=r.value)?ne(e,!!r.multiple,o,!1):null!=r.defaultValue&&ne(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof i.onClick&&(e.onclick=Jr)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Vs(t),null;case 6:if(e&&null!=t.stateNode)Ls(e,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(a(166));if(n=Ga($a.current),Ga(Wa.current),da(t)){if(r=t.stateNode,n=t.memoizedProps,r[hi]=t,(o=r.nodeValue!==n)&&null!==(e=na))switch(e.tag){case 3:Zr(r.nodeValue,n,!!(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Zr(r.nodeValue,n,!!(1&e.mode))}o&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[hi]=t,t.stateNode=r}return Vs(t),null;case 13:if(Ti(Ja),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(ia&&null!==ra&&1&t.mode&&!(128&t.flags))ha(),pa(),t.flags|=98560,o=!1;else if(o=da(t),null!==r&&null!==r.dehydrated){if(null===e){if(!o)throw Error(a(318));if(!(o=null!==(o=t.memoizedState)?o.dehydrated:null))throw Error(a(317));o[hi]=t}else pa(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Vs(t),o=!1}else null!==aa&&(ou(aa),aa=null),o=!0;if(!o)return 65536&t.flags?t:null}return 128&t.flags?(t.lanes=n,t):((r=null!==r)!=(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,1&t.mode&&(null===e||1&Ja.current?0===Ll&&(Ll=3):mu())),null!==t.updateQueue&&(t.flags|=4),Vs(t),null);case 4:return Xa(),Ds(e,t),null===e&&Fr(t.stateNode.containerInfo),Vs(t),null;case 10:return qa(t.type._context),Vs(t),null;case 19:if(Ti(Ja),null===(o=t.memoizedState))return Vs(t),null;if(r=!!(128&t.flags),null===(l=o.rendering))if(r)Ws(o,!1);else{if(0!==Ll||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(l=eo(e))){for(t.flags|=128,Ws(o,!1),null!==(r=l.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(o=n).flags&=14680066,null===(l=o.alternate)?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=l.childLanes,o.lanes=l.lanes,o.child=l.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=l.memoizedProps,o.memoizedState=l.memoizedState,o.updateQueue=l.updateQueue,o.type=l.type,e=l.dependencies,o.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Ei(Ja,1&Ja.current|2),t.child}e=e.sibling}null!==o.tail&&Ye()>Fl&&(t.flags|=128,r=!0,Ws(o,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=eo(l))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),Ws(o,!0),null===o.tail&&"hidden"===o.tailMode&&!l.alternate&&!ia)return Vs(t),null}else 2*Ye()-o.renderingStartTime>Fl&&1073741824!==n&&(t.flags|=128,r=!0,Ws(o,!1),t.lanes=4194304);o.isBackwards?(l.sibling=t.child,t.child=l):(null!==(n=o.last)?n.sibling=l:t.child=l,o.last=l)}return null!==o.tail?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=Ye(),t.sibling=null,n=Ja.current,Ei(Ja,r?1&n|2:1&n),t):(Vs(t),null);case 22:case 23:return du(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&1&t.mode?!!(1073741824&Dl)&&(Vs(t),6&t.subtreeFlags&&(t.flags|=8192)):Vs(t),null;case 24:case 25:return null}throw Error(a(156,t.tag))}function Gs(e,t){switch(ta(t),t.tag){case 1:return Di(t.type)&&zi(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Xa(),Ti(Ai),Ti(Mi),no(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 5:return Za(t),null;case 13:if(Ti(Ja),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(a(340));pa()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Ti(Ja),null;case 4:return Xa(),null;case 10:return qa(t.type._context),null;case 22:case 23:return du(),null;default:return null}}Os=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Ds=function(){},zs=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,Ga(Wa.current);var a,o=null;switch(n){case"input":i=K(e,i),r=K(e,r),o=[];break;case"select":i=R({},i,{value:void 0}),r=R({},r,{value:void 0}),o=[];break;case"textarea":i=re(e,i),r=re(e,r),o=[];break;default:"function"!=typeof i.onClick&&"function"==typeof r.onClick&&(e.onclick=Jr)}for(c in ve(n,r),n=null,i)if(!r.hasOwnProperty(c)&&i.hasOwnProperty(c)&&null!=i[c])if("style"===c){var l=i[c];for(a in l)l.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else"dangerouslySetInnerHTML"!==c&&"children"!==c&&"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(s.hasOwnProperty(c)?o||(o=[]):(o=o||[]).push(c,null));for(c in r){var u=r[c];if(l=null!=i?i[c]:void 0,r.hasOwnProperty(c)&&u!==l&&(null!=u||null!=l))if("style"===c)if(l){for(a in l)!l.hasOwnProperty(a)||u&&u.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in u)u.hasOwnProperty(a)&&l[a]!==u[a]&&(n||(n={}),n[a]=u[a])}else n||(o||(o=[]),o.push(c,n)),n=u;else"dangerouslySetInnerHTML"===c?(u=u?u.__html:void 0,l=l?l.__html:void 0,null!=u&&l!==u&&(o=o||[]).push(c,u)):"children"===c?"string"!=typeof u&&"number"!=typeof u||(o=o||[]).push(c,""+u):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&(s.hasOwnProperty(c)?(null!=u&&"onScroll"===c&&Pr("scroll",e),o||l===u||(o=[])):(o=o||[]).push(c,u))}n&&(o=o||[]).push("style",n);var c=o;(t.updateQueue=c)&&(t.flags|=4)}},Ls=function(e,t,n,r){n!==r&&(t.flags|=4)};var Ks=!1,Xs=!1,Ys="function"==typeof WeakSet?WeakSet:Set,Zs=null;function Js(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){Cu(e,t,n)}else n.current=null}function el(e,t,n){try{n()}catch(n){Cu(e,t,n)}}var tl=!1;function nl(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var i=r=r.next;do{if((i.tag&e)===e){var a=i.destroy;i.destroy=void 0,void 0!==a&&el(t,n,a)}i=i.next}while(i!==r)}}function rl(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function il(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"==typeof t?t(e):t.current=e}}function al(e){var t=e.alternate;null!==t&&(e.alternate=null,al(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&null!==(t=e.stateNode)&&(delete t[hi],delete t[pi],delete t[mi],delete t[gi],delete t[bi]),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function ol(e){return 5===e.tag||3===e.tag||4===e.tag}function sl(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||ol(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function ll(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=Jr));else if(4!==r&&null!==(e=e.child))for(ll(e,t,n),e=e.sibling;null!==e;)ll(e,t,n),e=e.sibling}function ul(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(ul(e,t,n),e=e.sibling;null!==e;)ul(e,t,n),e=e.sibling}var cl=null,dl=!1;function hl(e,t,n){for(n=n.child;null!==n;)pl(e,t,n),n=n.sibling}function pl(e,t,n){if(at&&"function"==typeof at.onCommitFiberUnmount)try{at.onCommitFiberUnmount(it,n)}catch(e){}switch(n.tag){case 5:Xs||Js(n,t);case 6:var r=cl,i=dl;cl=null,hl(e,t,n),dl=i,null!==(cl=r)&&(dl?(e=cl,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):cl.removeChild(n.stateNode));break;case 18:null!==cl&&(dl?(e=cl,n=n.stateNode,8===e.nodeType?li(e.parentNode,n):1===e.nodeType&&li(e,n),Ft(e)):li(cl,n.stateNode));break;case 4:r=cl,i=dl,cl=n.stateNode.containerInfo,dl=!0,hl(e,t,n),cl=r,dl=i;break;case 0:case 11:case 14:case 15:if(!Xs&&null!==(r=n.updateQueue)&&null!==(r=r.lastEffect)){i=r=r.next;do{var a=i,o=a.destroy;a=a.tag,void 0!==o&&(2&a||4&a)&&el(n,t,o),i=i.next}while(i!==r)}hl(e,t,n);break;case 1:if(!Xs&&(Js(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){Cu(n,t,e)}hl(e,t,n);break;case 21:hl(e,t,n);break;case 22:1&n.mode?(Xs=(r=Xs)||null!==n.memoizedState,hl(e,t,n),Xs=r):hl(e,t,n);break;default:hl(e,t,n)}}function fl(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Ys),t.forEach(function(t){var r=Mu.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))})}}function ml(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var i=n[r];try{var o=e,s=t,l=s;e:for(;null!==l;){switch(l.tag){case 5:cl=l.stateNode,dl=!1;break e;case 3:case 4:cl=l.stateNode.containerInfo,dl=!0;break e}l=l.return}if(null===cl)throw Error(a(160));pl(o,s,i),cl=null,dl=!1;var u=i.alternate;null!==u&&(u.return=null),i.return=null}catch(e){Cu(i,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)gl(t,e),t=t.sibling}function gl(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(ml(t,e),bl(e),4&r){try{nl(3,e,e.return),rl(3,e)}catch(t){Cu(e,e.return,t)}try{nl(5,e,e.return)}catch(t){Cu(e,e.return,t)}}break;case 1:ml(t,e),bl(e),512&r&&null!==n&&Js(n,n.return);break;case 5:if(ml(t,e),bl(e),512&r&&null!==n&&Js(n,n.return),32&e.flags){var i=e.stateNode;try{he(i,"")}catch(t){Cu(e,e.return,t)}}if(4&r&&null!=(i=e.stateNode)){var o=e.memoizedProps,s=null!==n?n.memoizedProps:o,l=e.type,u=e.updateQueue;if(e.updateQueue=null,null!==u)try{"input"===l&&"radio"===o.type&&null!=o.name&&Y(i,o),ye(l,s);var c=ye(l,o);for(s=0;s<u.length;s+=2){var d=u[s],h=u[s+1];"style"===d?ge(i,h):"dangerouslySetInnerHTML"===d?de(i,h):"children"===d?he(i,h):y(i,d,h,c)}switch(l){case"input":Z(i,o);break;case"textarea":ae(i,o);break;case"select":var p=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!o.multiple;var f=o.value;null!=f?ne(i,!!o.multiple,f,!1):p!==!!o.multiple&&(null!=o.defaultValue?ne(i,!!o.multiple,o.defaultValue,!0):ne(i,!!o.multiple,o.multiple?[]:"",!1))}i[pi]=o}catch(t){Cu(e,e.return,t)}}break;case 6:if(ml(t,e),bl(e),4&r){if(null===e.stateNode)throw Error(a(162));i=e.stateNode,o=e.memoizedProps;try{i.nodeValue=o}catch(t){Cu(e,e.return,t)}}break;case 3:if(ml(t,e),bl(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{Ft(t.containerInfo)}catch(t){Cu(e,e.return,t)}break;case 4:default:ml(t,e),bl(e);break;case 13:ml(t,e),bl(e),8192&(i=e.child).flags&&(o=null!==i.memoizedState,i.stateNode.isHidden=o,!o||null!==i.alternate&&null!==i.alternate.memoizedState||(Hl=Ye())),4&r&&fl(e);break;case 22:if(d=null!==n&&null!==n.memoizedState,1&e.mode?(Xs=(c=Xs)||d,ml(t,e),Xs=c):ml(t,e),bl(e),8192&r){if(c=null!==e.memoizedState,(e.stateNode.isHidden=c)&&!d&&1&e.mode)for(Zs=e,d=e.child;null!==d;){for(h=Zs=d;null!==Zs;){switch(f=(p=Zs).child,p.tag){case 0:case 11:case 14:case 15:nl(4,p,p.return);break;case 1:Js(p,p.return);var m=p.stateNode;if("function"==typeof m.componentWillUnmount){r=p,n=p.return;try{t=r,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(e){Cu(r,n,e)}}break;case 5:Js(p,p.return);break;case 22:if(null!==p.memoizedState){wl(h);continue}}null!==f?(f.return=p,Zs=f):wl(h)}d=d.sibling}e:for(d=null,h=e;;){if(5===h.tag){if(null===d){d=h;try{i=h.stateNode,c?"function"==typeof(o=i.style).setProperty?o.setProperty("display","none","important"):o.display="none":(l=h.stateNode,s=null!=(u=h.memoizedProps.style)&&u.hasOwnProperty("display")?u.display:null,l.style.display=me("display",s))}catch(t){Cu(e,e.return,t)}}}else if(6===h.tag){if(null===d)try{h.stateNode.nodeValue=c?"":h.memoizedProps}catch(t){Cu(e,e.return,t)}}else if((22!==h.tag&&23!==h.tag||null===h.memoizedState||h===e)&&null!==h.child){h.child.return=h,h=h.child;continue}if(h===e)break e;for(;null===h.sibling;){if(null===h.return||h.return===e)break e;d===h&&(d=null),h=h.return}d===h&&(d=null),h.sibling.return=h.return,h=h.sibling}}break;case 19:ml(t,e),bl(e),4&r&&fl(e);case 21:}}function bl(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(ol(n)){var r=n;break e}n=n.return}throw Error(a(160))}switch(r.tag){case 5:var i=r.stateNode;32&r.flags&&(he(i,""),r.flags&=-33),ul(e,sl(e),i);break;case 3:case 4:var o=r.stateNode.containerInfo;ll(e,sl(e),o);break;default:throw Error(a(161))}}catch(t){Cu(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function vl(e,t,n){Zs=e,yl(e,t,n)}function yl(e,t,n){for(var r=!!(1&e.mode);null!==Zs;){var i=Zs,a=i.child;if(22===i.tag&&r){var o=null!==i.memoizedState||Ks;if(!o){var s=i.alternate,l=null!==s&&null!==s.memoizedState||Xs;s=Ks;var u=Xs;if(Ks=o,(Xs=l)&&!u)for(Zs=i;null!==Zs;)l=(o=Zs).child,22===o.tag&&null!==o.memoizedState?kl(i):null!==l?(l.return=o,Zs=l):kl(i);for(;null!==a;)Zs=a,yl(a,t,n),a=a.sibling;Zs=i,Ks=s,Xs=u}xl(e)}else 8772&i.subtreeFlags&&null!==a?(a.return=i,Zs=a):xl(e)}}function xl(e){for(;null!==Zs;){var t=Zs;if(8772&t.flags){var n=t.alternate;try{if(8772&t.flags)switch(t.tag){case 0:case 11:case 15:Xs||rl(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!Xs)if(null===n)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:ns(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;null!==o&&Ua(t,o,r);break;case 3:var s=t.updateQueue;if(null!==s){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}Ua(t,s,n)}break;case 5:var l=t.stateNode;if(null===n&&4&t.flags){n=l;var u=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":u.autoFocus&&n.focus();break;case"img":u.src&&(n.src=u.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var c=t.alternate;if(null!==c){var d=c.memoizedState;if(null!==d){var h=d.dehydrated;null!==h&&Ft(h)}}}break;default:throw Error(a(163))}Xs||512&t.flags&&il(t)}catch(e){Cu(t,t.return,e)}}if(t===e){Zs=null;break}if(null!==(n=t.sibling)){n.return=t.return,Zs=n;break}Zs=t.return}}function wl(e){for(;null!==Zs;){var t=Zs;if(t===e){Zs=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Zs=n;break}Zs=t.return}}function kl(e){for(;null!==Zs;){var t=Zs;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{rl(4,t)}catch(e){Cu(t,n,e)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var i=t.return;try{r.componentDidMount()}catch(e){Cu(t,i,e)}}var a=t.return;try{il(t)}catch(e){Cu(t,a,e)}break;case 5:var o=t.return;try{il(t)}catch(e){Cu(t,o,e)}}}catch(e){Cu(t,t.return,e)}if(t===e){Zs=null;break}var s=t.sibling;if(null!==s){s.return=t.return,Zs=s;break}Zs=t.return}}var Sl,Cl=Math.ceil,Tl=x.ReactCurrentDispatcher,El=x.ReactCurrentOwner,ql=x.ReactCurrentBatchConfig,Ml=0,Al=null,Nl=null,Ol=0,Dl=0,zl=Ci(0),Ll=0,Il=null,_l=0,Rl=0,Bl=0,Pl=null,jl=null,Hl=0,Fl=1/0,Ul=null,Ql=!1,Wl=null,Vl=null,$l=!1,Gl=null,Kl=0,Xl=0,Yl=null,Zl=-1,Jl=0;function eu(){return 6&Ml?Ye():-1!==Zl?Zl:Zl=Ye()}function tu(e){return 1&e.mode?2&Ml&&0!==Ol?Ol&-Ol:null!==ma.transition?(0===Jl&&(Jl=mt()),Jl):0!==(e=yt)?e:e=void 0===(e=window.event)?16:Xt(e.type):1}function nu(e,t,n,r){if(50<Xl)throw Xl=0,Yl=null,Error(a(185));bt(e,n,r),2&Ml&&e===Al||(e===Al&&(!(2&Ml)&&(Rl|=n),4===Ll&&su(e,Ol)),ru(e,r),1===n&&0===Ml&&!(1&t.mode)&&(Fl=Ye()+500,Pi&&Fi()))}function ru(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes;0<a;){var o=31-ot(a),s=1<<o,l=i[o];-1===l?0!==(s&n)&&0===(s&r)||(i[o]=pt(s,t)):l<=t&&(e.expiredLanes|=s),a&=~s}}(e,t);var r=ht(e,e===Al?Ol:0);if(0===r)null!==n&&Ge(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&Ge(n),1===t)0===e.tag?function(e){Pi=!0,Hi(e)}(lu.bind(null,e)):Hi(lu.bind(null,e)),oi(function(){!(6&Ml)&&Fi()}),n=null;else{switch(xt(r)){case 1:n=Je;break;case 4:n=et;break;case 16:default:n=tt;break;case 536870912:n=rt}n=Au(n,iu.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function iu(e,t){if(Zl=-1,Jl=0,6&Ml)throw Error(a(327));var n=e.callbackNode;if(ku()&&e.callbackNode!==n)return null;var r=ht(e,e===Al?Ol:0);if(0===r)return null;if(30&r||0!==(r&e.expiredLanes)||t)t=gu(e,r);else{t=r;var i=Ml;Ml|=2;var o=fu();for(Al===e&&Ol===t||(Ul=null,Fl=Ye()+500,hu(e,t));;)try{vu();break}catch(t){pu(e,t)}Ea(),Tl.current=o,Ml=i,null!==Nl?t=0:(Al=null,Ol=0,t=Ll)}if(0!==t){if(2===t&&0!==(i=ft(e))&&(r=i,t=au(e,i)),1===t)throw n=Il,hu(e,0),su(e,r),ru(e,Ye()),n;if(6===t)su(e,r);else{if(i=e.current.alternate,!(30&r||function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var i=n[r],a=i.getSnapshot;i=i.value;try{if(!sr(a(),i))return!1}catch(e){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(i)||(t=gu(e,r),2===t&&(o=ft(e),0!==o&&(r=o,t=au(e,o))),1!==t)))throw n=Il,hu(e,0),su(e,r),ru(e,Ye()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(a(345));case 2:case 5:wu(e,jl,Ul);break;case 3:if(su(e,r),(130023424&r)===r&&10<(t=Hl+500-Ye())){if(0!==ht(e,0))break;if(((i=e.suspendedLanes)&r)!==r){eu(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=ri(wu.bind(null,e,jl,Ul),t);break}wu(e,jl,Ul);break;case 4:if(su(e,r),(4194240&r)===r)break;for(t=e.eventTimes,i=-1;0<r;){var s=31-ot(r);o=1<<s,(s=t[s])>i&&(i=s),r&=~o}if(r=i,10<(r=(120>(r=Ye()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Cl(r/1960))-r)){e.timeoutHandle=ri(wu.bind(null,e,jl,Ul),r);break}wu(e,jl,Ul);break;default:throw Error(a(329))}}}return ru(e,Ye()),e.callbackNode===n?iu.bind(null,e):null}function au(e,t){var n=Pl;return e.current.memoizedState.isDehydrated&&(hu(e,t).flags|=256),2!==(e=gu(e,t))&&(t=jl,jl=n,null!==t&&ou(t)),e}function ou(e){null===jl?jl=e:jl.push.apply(jl,e)}function su(e,t){for(t&=~Bl,t&=~Rl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-ot(t),r=1<<n;e[n]=-1,t&=~r}}function lu(e){if(6&Ml)throw Error(a(327));ku();var t=ht(e,0);if(!(1&t))return ru(e,Ye()),null;var n=gu(e,t);if(0!==e.tag&&2===n){var r=ft(e);0!==r&&(t=r,n=au(e,r))}if(1===n)throw n=Il,hu(e,0),su(e,t),ru(e,Ye()),n;if(6===n)throw Error(a(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,wu(e,jl,Ul),ru(e,Ye()),null}function uu(e,t){var n=Ml;Ml|=1;try{return e(t)}finally{0===(Ml=n)&&(Fl=Ye()+500,Pi&&Fi())}}function cu(e){null!==Gl&&0===Gl.tag&&!(6&Ml)&&ku();var t=Ml;Ml|=1;var n=ql.transition,r=yt;try{if(ql.transition=null,yt=1,e)return e()}finally{yt=r,ql.transition=n,!(6&(Ml=t))&&Fi()}}function du(){Dl=zl.current,Ti(zl)}function hu(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,ii(n)),null!==Nl)for(n=Nl.return;null!==n;){var r=n;switch(ta(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&zi();break;case 3:Xa(),Ti(Ai),Ti(Mi),no();break;case 5:Za(r);break;case 4:Xa();break;case 13:case 19:Ti(Ja);break;case 10:qa(r.type._context);break;case 22:case 23:du()}n=n.return}if(Al=e,Nl=e=zu(e.current,null),Ol=Dl=t,Ll=0,Il=null,Bl=Rl=_l=0,jl=Pl=null,null!==Oa){for(t=0;t<Oa.length;t++)if(null!==(r=(n=Oa[t]).interleaved)){n.interleaved=null;var i=r.next,a=n.pending;if(null!==a){var o=a.next;a.next=i,r.next=o}n.pending=r}Oa=null}return e}function pu(e,t){for(;;){var n=Nl;try{if(Ea(),ro.current=Zo,uo){for(var r=oo.memoizedState;null!==r;){var i=r.queue;null!==i&&(i.pending=null),r=r.next}uo=!1}if(ao=0,lo=so=oo=null,co=!1,ho=0,El.current=null,null===n||null===n.return){Ll=1,Il=t,Nl=null;break}e:{var o=e,s=n.return,l=n,u=t;if(t=Ol,l.flags|=32768,null!==u&&"object"==typeof u&&"function"==typeof u.then){var c=u,d=l,h=d.tag;if(!(1&d.mode||0!==h&&11!==h&&15!==h)){var p=d.alternate;p?(d.updateQueue=p.updateQueue,d.memoizedState=p.memoizedState,d.lanes=p.lanes):(d.updateQueue=null,d.memoizedState=null)}var f=gs(s);if(null!==f){f.flags&=-257,bs(f,s,l,0,t),1&f.mode&&ms(o,c,t),u=c;var m=(t=f).updateQueue;if(null===m){var g=new Set;g.add(u),t.updateQueue=g}else m.add(u);break e}if(!(1&t)){ms(o,c,t),mu();break e}u=Error(a(426))}else if(ia&&1&l.mode){var b=gs(s);if(null!==b){!(65536&b.flags)&&(b.flags|=256),bs(b,s,l,0,t),fa(us(u,l));break e}}o=u=us(u,l),4!==Ll&&(Ll=2),null===Pl?Pl=[o]:Pl.push(o),o=s;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t,Ha(o,ps(0,u,t));break e;case 1:l=u;var v=o.type,y=o.stateNode;if(!(128&o.flags||"function"!=typeof v.getDerivedStateFromError&&(null===y||"function"!=typeof y.componentDidCatch||null!==Vl&&Vl.has(y)))){o.flags|=65536,t&=-t,o.lanes|=t,Ha(o,fs(o,l,t));break e}}o=o.return}while(null!==o)}xu(n)}catch(e){t=e,Nl===n&&null!==n&&(Nl=n=n.return);continue}break}}function fu(){var e=Tl.current;return Tl.current=Zo,null===e?Zo:e}function mu(){0!==Ll&&3!==Ll&&2!==Ll||(Ll=4),null===Al||!(268435455&_l)&&!(268435455&Rl)||su(Al,Ol)}function gu(e,t){var n=Ml;Ml|=2;var r=fu();for(Al===e&&Ol===t||(Ul=null,hu(e,t));;)try{bu();break}catch(t){pu(e,t)}if(Ea(),Ml=n,Tl.current=r,null!==Nl)throw Error(a(261));return Al=null,Ol=0,Ll}function bu(){for(;null!==Nl;)yu(Nl)}function vu(){for(;null!==Nl&&!Ke();)yu(Nl)}function yu(e){var t=Sl(e.alternate,e,Dl);e.memoizedProps=e.pendingProps,null===t?xu(e):Nl=t,El.current=null}function xu(e){var t=e;do{var n=t.alternate;if(e=t.return,32768&t.flags){if(null!==(n=Gs(n,t)))return n.flags&=32767,void(Nl=n);if(null===e)return Ll=6,void(Nl=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}else if(null!==(n=$s(n,t,Dl)))return void(Nl=n);if(null!==(t=t.sibling))return void(Nl=t);Nl=t=e}while(null!==t);0===Ll&&(Ll=5)}function wu(e,t,n){var r=yt,i=ql.transition;try{ql.transition=null,yt=1,function(e,t,n,r){do{ku()}while(null!==Gl);if(6&Ml)throw Error(a(327));n=e.finishedWork;var i=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(a(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-ot(n),a=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~a}}(e,o),e===Al&&(Nl=Al=null,Ol=0),!(2064&n.subtreeFlags)&&!(2064&n.flags)||$l||($l=!0,Au(tt,function(){return ku(),null})),o=!!(15990&n.flags),15990&n.subtreeFlags||o){o=ql.transition,ql.transition=null;var s=yt;yt=1;var l=Ml;Ml|=4,El.current=null,function(e,t){if(ei=Qt,pr(e=hr())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch(e){n=null;break e}var s=0,l=-1,u=-1,c=0,d=0,h=e,p=null;t:for(;;){for(var f;h!==n||0!==i&&3!==h.nodeType||(l=s+i),h!==o||0!==r&&3!==h.nodeType||(u=s+r),3===h.nodeType&&(s+=h.nodeValue.length),null!==(f=h.firstChild);)p=h,h=f;for(;;){if(h===e)break t;if(p===n&&++c===i&&(l=s),p===o&&++d===r&&(u=s),null!==(f=h.nextSibling))break;p=(h=p).parentNode}h=f}n=-1===l||-1===u?null:{start:l,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(ti={focusedElem:e,selectionRange:n},Qt=!1,Zs=t;null!==Zs;)if(e=(t=Zs).child,1028&t.subtreeFlags&&null!==e)e.return=t,Zs=e;else for(;null!==Zs;){t=Zs;try{var m=t.alternate;if(1024&t.flags)switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==m){var g=m.memoizedProps,b=m.memoizedState,v=t.stateNode,y=v.getSnapshotBeforeUpdate(t.elementType===t.type?g:ns(t.type,g),b);v.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var x=t.stateNode.containerInfo;1===x.nodeType?x.textContent="":9===x.nodeType&&x.documentElement&&x.removeChild(x.documentElement);break;default:throw Error(a(163))}}catch(e){Cu(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,Zs=e;break}Zs=t.return}m=tl,tl=!1}(e,n),gl(n,e),fr(ti),Qt=!!ei,ti=ei=null,e.current=n,vl(n,e,i),Xe(),Ml=l,yt=s,ql.transition=o}else e.current=n;if($l&&($l=!1,Gl=e,Kl=i),0===(o=e.pendingLanes)&&(Vl=null),function(e){if(at&&"function"==typeof at.onCommitFiberRoot)try{at.onCommitFiberRoot(it,e,void 0,!(128&~e.current.flags))}catch(e){}}(n.stateNode),ru(e,Ye()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)r((i=t[n]).value,{componentStack:i.stack,digest:i.digest});if(Ql)throw Ql=!1,e=Wl,Wl=null,e;!!(1&Kl)&&0!==e.tag&&ku(),1&(o=e.pendingLanes)?e===Yl?Xl++:(Xl=0,Yl=e):Xl=0,Fi()}(e,t,n,r)}finally{ql.transition=i,yt=r}return null}function ku(){if(null!==Gl){var e=xt(Kl),t=ql.transition,n=yt;try{if(ql.transition=null,yt=16>e?16:e,null===Gl)var r=!1;else{if(e=Gl,Gl=null,Kl=0,6&Ml)throw Error(a(331));var i=Ml;for(Ml|=4,Zs=e.current;null!==Zs;){var o=Zs,s=o.child;if(16&Zs.flags){var l=o.deletions;if(null!==l){for(var u=0;u<l.length;u++){var c=l[u];for(Zs=c;null!==Zs;){var d=Zs;switch(d.tag){case 0:case 11:case 15:nl(8,d,o)}var h=d.child;if(null!==h)h.return=d,Zs=h;else for(;null!==Zs;){var p=(d=Zs).sibling,f=d.return;if(al(d),d===c){Zs=null;break}if(null!==p){p.return=f,Zs=p;break}Zs=f}}}var m=o.alternate;if(null!==m){var g=m.child;if(null!==g){m.child=null;do{var b=g.sibling;g.sibling=null,g=b}while(null!==g)}}Zs=o}}if(2064&o.subtreeFlags&&null!==s)s.return=o,Zs=s;else e:for(;null!==Zs;){if(2048&(o=Zs).flags)switch(o.tag){case 0:case 11:case 15:nl(9,o,o.return)}var v=o.sibling;if(null!==v){v.return=o.return,Zs=v;break e}Zs=o.return}}var y=e.current;for(Zs=y;null!==Zs;){var x=(s=Zs).child;if(2064&s.subtreeFlags&&null!==x)x.return=s,Zs=x;else e:for(s=y;null!==Zs;){if(2048&(l=Zs).flags)try{switch(l.tag){case 0:case 11:case 15:rl(9,l)}}catch(e){Cu(l,l.return,e)}if(l===s){Zs=null;break e}var w=l.sibling;if(null!==w){w.return=l.return,Zs=w;break e}Zs=l.return}}if(Ml=i,Fi(),at&&"function"==typeof at.onPostCommitFiberRoot)try{at.onPostCommitFiberRoot(it,e)}catch(e){}r=!0}return r}finally{yt=n,ql.transition=t}}return!1}function Su(e,t,n){e=Pa(e,t=ps(0,t=us(n,t),1),1),t=eu(),null!==e&&(bt(e,1,t),ru(e,t))}function Cu(e,t,n){if(3===e.tag)Su(e,e,n);else for(;null!==t;){if(3===t.tag){Su(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Vl||!Vl.has(r))){t=Pa(t,e=fs(t,e=us(n,e),1),1),e=eu(),null!==t&&(bt(t,1,e),ru(t,e));break}}t=t.return}}function Tu(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=eu(),e.pingedLanes|=e.suspendedLanes&n,Al===e&&(Ol&n)===n&&(4===Ll||3===Ll&&(130023424&Ol)===Ol&&500>Ye()-Hl?hu(e,0):Bl|=n),ru(e,t)}function Eu(e,t){0===t&&(1&e.mode?(t=ct,!(130023424&(ct<<=1))&&(ct=4194304)):t=1);var n=eu();null!==(e=La(e,t))&&(bt(e,t,n),ru(e,n))}function qu(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Eu(e,n)}function Mu(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;null!==i&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(a(314))}null!==r&&r.delete(t),Eu(e,n)}function Au(e,t){return $e(e,t)}function Nu(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ou(e,t,n,r){return new Nu(e,t,n,r)}function Du(e){return!(!(e=e.prototype)||!e.isReactComponent)}function zu(e,t){var n=e.alternate;return null===n?((n=Ou(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Lu(e,t,n,r,i,o){var s=2;if(r=e,"function"==typeof e)Du(e)&&(s=1);else if("string"==typeof e)s=5;else e:switch(e){case S:return Iu(n.children,i,o,t);case C:s=8,i|=8;break;case T:return(e=Ou(12,n,t,2|i)).elementType=T,e.lanes=o,e;case A:return(e=Ou(13,n,t,i)).elementType=A,e.lanes=o,e;case N:return(e=Ou(19,n,t,i)).elementType=N,e.lanes=o,e;case z:return _u(n,i,o,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case E:s=10;break e;case q:s=9;break e;case M:s=11;break e;case O:s=14;break e;case D:s=16,r=null;break e}throw Error(a(130,null==e?e:typeof e,""))}return(t=Ou(s,n,t,i)).elementType=e,t.type=r,t.lanes=o,t}function Iu(e,t,n,r){return(e=Ou(7,e,r,t)).lanes=n,e}function _u(e,t,n,r){return(e=Ou(22,e,r,t)).elementType=z,e.lanes=n,e.stateNode={isHidden:!1},e}function Ru(e,t,n){return(e=Ou(6,e,null,t)).lanes=n,e}function Bu(e,t,n){return(t=Ou(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Pu(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=gt(0),this.expirationTimes=gt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=gt(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function ju(e,t,n,r,i,a,o,s,l){return e=new Pu(e,t,n,s,l),1===t?(t=1,!0===a&&(t|=8)):t=0,a=Ou(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},_a(a),e}function Hu(e){if(!e)return qi;e:{if(Fe(e=e._reactInternals)!==e||1!==e.tag)throw Error(a(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Di(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(a(171))}if(1===e.tag){var n=e.type;if(Di(n))return Ii(e,n,t)}return t}function Fu(e,t,n,r,i,a,o,s,l){return(e=ju(n,r,!0,e,0,a,0,s,l)).context=Hu(null),n=e.current,(a=Ba(r=eu(),i=tu(n))).callback=null!=t?t:null,Pa(n,a,i),e.current.lanes=i,bt(e,i,r),ru(e,r),e}function Uu(e,t,n,r){var i=t.current,a=eu(),o=tu(i);return n=Hu(n),null===t.context?t.context=n:t.pendingContext=n,(t=Ba(a,o)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Pa(i,t,o))&&(nu(e,i,o,a),ja(e,i,o)),o}function Qu(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Wu(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Vu(e,t){Wu(e,t),(e=e.alternate)&&Wu(e,t)}Sl=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||Ai.current)ys=!0;else{if(0===(e.lanes&n)&&!(128&t.flags))return ys=!1,function(e,t,n){switch(t.tag){case 3:As(t),pa();break;case 5:Ya(t);break;case 1:Di(t.type)&&_i(t);break;case 4:Ka(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;Ei(ka,r._currentValue),r._currentValue=i;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(Ei(Ja,1&Ja.current),t.flags|=128,null):0!==(n&t.child.childLanes)?Rs(e,t,n):(Ei(Ja,1&Ja.current),null!==(e=Qs(e,t,n))?e.sibling:null);Ei(Ja,1&Ja.current);break;case 19:if(r=0!==(n&t.childLanes),128&e.flags){if(r)return Fs(e,t,n);t.flags|=128}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null,i.lastEffect=null),Ei(Ja,Ja.current),r)break;return null;case 22:case 23:return t.lanes=0,Cs(e,t,n)}return Qs(e,t,n)}(e,t,n);ys=!!(131072&e.flags)}else ys=!1,ia&&1048576&t.flags&&Ji(t,Vi,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Us(e,t),e=t.pendingProps;var i=Oi(t,Mi.current);Aa(t,n),i=go(null,t,r,e,i,n);var o=bo();return t.flags|=1,"object"==typeof i&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Di(r)?(o=!0,_i(t)):o=!1,t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,_a(t),i.updater=is,t.stateNode=i,i._reactInternals=t,ls(t,r,e,n),t=Ms(null,t,r,!0,o,n)):(t.tag=0,ia&&o&&ea(t),xs(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Us(e,t),e=t.pendingProps,r=(i=r._init)(r._payload),t.type=r,i=t.tag=function(e){if("function"==typeof e)return Du(e)?1:0;if(null!=e){if((e=e.$$typeof)===M)return 11;if(e===O)return 14}return 2}(r),e=ns(r,e),i){case 0:t=Es(null,t,r,e,n);break e;case 1:t=qs(null,t,r,e,n);break e;case 11:t=ws(null,t,r,e,n);break e;case 14:t=ks(null,t,r,ns(r.type,e),n);break e}throw Error(a(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,Es(e,t,r,i=t.elementType===r?i:ns(r,i),n);case 1:return r=t.type,i=t.pendingProps,qs(e,t,r,i=t.elementType===r?i:ns(r,i),n);case 3:e:{if(As(t),null===e)throw Error(a(387));r=t.pendingProps,i=(o=t.memoizedState).element,Ra(e,t),Fa(t,r,null,n);var s=t.memoizedState;if(r=s.element,o.isDehydrated){if(o={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=o,t.memoizedState=o,256&t.flags){t=Ns(e,t,r,n,i=us(Error(a(423)),t));break e}if(r!==i){t=Ns(e,t,r,n,i=us(Error(a(424)),t));break e}for(ra=ui(t.stateNode.containerInfo.firstChild),na=t,ia=!0,aa=null,n=wa(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(pa(),r===i){t=Qs(e,t,n);break e}xs(e,t,r,n)}t=t.child}return t;case 5:return Ya(t),null===e&&ua(t),r=t.type,i=t.pendingProps,o=null!==e?e.memoizedProps:null,s=i.children,ni(r,i)?s=null:null!==o&&ni(r,o)&&(t.flags|=32),Ts(e,t),xs(e,t,s,n),t.child;case 6:return null===e&&ua(t),null;case 13:return Rs(e,t,n);case 4:return Ka(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=xa(t,null,r,n):xs(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,ws(e,t,r,i=t.elementType===r?i:ns(r,i),n);case 7:return xs(e,t,t.pendingProps,n),t.child;case 8:case 12:return xs(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,s=i.value,Ei(ka,r._currentValue),r._currentValue=s,null!==o)if(sr(o.value,s)){if(o.children===i.children&&!Ai.current){t=Qs(e,t,n);break e}}else for(null!==(o=t.child)&&(o.return=t);null!==o;){var l=o.dependencies;if(null!==l){s=o.child;for(var u=l.firstContext;null!==u;){if(u.context===r){if(1===o.tag){(u=Ba(-1,n&-n)).tag=2;var c=o.updateQueue;if(null!==c){var d=(c=c.shared).pending;null===d?u.next=u:(u.next=d.next,d.next=u),c.pending=u}}o.lanes|=n,null!==(u=o.alternate)&&(u.lanes|=n),Ma(o.return,n,t),l.lanes|=n;break}u=u.next}}else if(10===o.tag)s=o.type===t.type?null:o.child;else if(18===o.tag){if(null===(s=o.return))throw Error(a(341));s.lanes|=n,null!==(l=s.alternate)&&(l.lanes|=n),Ma(s,n,t),s=o.sibling}else s=o.child;if(null!==s)s.return=o;else for(s=o;null!==s;){if(s===t){s=null;break}if(null!==(o=s.sibling)){o.return=s.return,s=o;break}s=s.return}o=s}xs(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Aa(t,n),r=r(i=Na(i)),t.flags|=1,xs(e,t,r,n),t.child;case 14:return i=ns(r=t.type,t.pendingProps),ks(e,t,r,i=ns(r.type,i),n);case 15:return Ss(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:ns(r,i),Us(e,t),t.tag=1,Di(r)?(e=!0,_i(t)):e=!1,Aa(t,n),os(t,r,i),ls(t,r,i,n),Ms(null,t,r,!0,e,n);case 19:return Fs(e,t,n);case 22:return Cs(e,t,n)}throw Error(a(156,t.tag))};var $u="function"==typeof reportError?reportError:function(e){console.error(e)};function Gu(e){this._internalRoot=e}function Ku(e){this._internalRoot=e}function Xu(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Yu(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Zu(){}function Ju(e,t,n,r,i){var a=n._reactRootContainer;if(a){var o=a;if("function"==typeof i){var s=i;i=function(){var e=Qu(o);s.call(e)}}Uu(t,o,e,i)}else o=function(e,t,n,r,i){if(i){if("function"==typeof r){var a=r;r=function(){var e=Qu(o);a.call(e)}}var o=Fu(t,r,e,0,null,!1,0,"",Zu);return e._reactRootContainer=o,e[fi]=o.current,Fr(8===e.nodeType?e.parentNode:e),cu(),o}for(;i=e.lastChild;)e.removeChild(i);if("function"==typeof r){var s=r;r=function(){var e=Qu(l);s.call(e)}}var l=ju(e,0,!1,null,0,!1,0,"",Zu);return e._reactRootContainer=l,e[fi]=l.current,Fr(8===e.nodeType?e.parentNode:e),cu(function(){Uu(t,l,n,r)}),l}(n,t,e,i,r);return Qu(o)}Ku.prototype.render=Gu.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(a(409));Uu(e,t,null,null)},Ku.prototype.unmount=Gu.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;cu(function(){Uu(null,e,null,null)}),t[fi]=null}},Ku.prototype.unstable_scheduleHydration=function(e){if(e){var t=Ct();e={blockedOn:null,target:e,priority:t};for(var n=0;n<zt.length&&0!==t&&t<zt[n].priority;n++);zt.splice(n,0,e),0===n&&Rt(e)}},wt=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=dt(t.pendingLanes);0!==n&&(vt(t,1|n),ru(t,Ye()),!(6&Ml)&&(Fl=Ye()+500,Fi()))}break;case 13:cu(function(){var t=La(e,1);if(null!==t){var n=eu();nu(t,e,1,n)}}),Vu(e,1)}},kt=function(e){if(13===e.tag){var t=La(e,134217728);null!==t&&nu(t,e,134217728,eu()),Vu(e,134217728)}},St=function(e){if(13===e.tag){var t=tu(e),n=La(e,t);null!==n&&nu(n,e,t,eu()),Vu(e,t)}},Ct=function(){return yt},Tt=function(e,t){var n=yt;try{return yt=e,t()}finally{yt=n}},ke=function(e,t,n){switch(t){case"input":if(Z(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=wi(r);if(!i)throw Error(a(90));$(r),Z(r,i)}}}break;case"textarea":ae(e,n);break;case"select":null!=(t=n.value)&&ne(e,!!n.multiple,t,!1)}},Me=uu,Ae=cu;var ec={usingClientEntryPoint:!1,Events:[yi,xi,wi,Ee,qe,uu]},tc={findFiberByHostInstance:vi,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},nc={bundleType:tc.bundleType,version:tc.version,rendererPackageName:tc.rendererPackageName,rendererConfig:tc.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:x.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=We(e))?null:e.stateNode},findFiberByHostInstance:tc.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var rc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!rc.isDisabled&&rc.supportsFiber)try{it=rc.inject(nc),at=rc}catch(ce){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ec,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Xu(t))throw Error(a(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:k,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},t.createRoot=function(e,t){if(!Xu(e))throw Error(a(299));var n=!1,r="",i=$u;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(i=t.onRecoverableError)),t=ju(e,1,!1,null,0,n,0,r,i),e[fi]=t.current,Fr(8===e.nodeType?e.parentNode:e),new Gu(t)},t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(a(188));throw e=Object.keys(e).join(","),Error(a(268,e))}return null===(e=We(t))?null:e.stateNode},t.flushSync=function(e){return cu(e)},t.hydrate=function(e,t,n){if(!Yu(t))throw Error(a(200));return Ju(null,e,t,!0,n)},t.hydrateRoot=function(e,t,n){if(!Xu(e))throw Error(a(405));var r=null!=n&&n.hydratedSources||null,i=!1,o="",s=$u;if(null!=n&&(!0===n.unstable_strictMode&&(i=!0),void 0!==n.identifierPrefix&&(o=n.identifierPrefix),void 0!==n.onRecoverableError&&(s=n.onRecoverableError)),t=Fu(t,null,e,1,null!=n?n:null,i,0,o,s),e[fi]=t.current,Fr(e),r)for(e=0;e<r.length;e++)i=(i=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new Ku(t)},t.render=function(e,t,n){if(!Yu(t))throw Error(a(200));return Ju(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Yu(e))throw Error(a(40));return!!e._reactRootContainer&&(cu(function(){Ju(null,null,e,!1,function(){e._reactRootContainer=null,e[fi]=null})}),!0)},t.unstable_batchedUpdates=uu,t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Yu(n))throw Error(a(200));if(null==e||void 0===e._reactInternals)throw Error(a(38));return Ju(e,t,n,!1,r)},t.version="18.3.1-next-f1338f8080-20240426"},601:e=>{e.exports=function(e){return e[1]}},659:e=>{var t={};e.exports=function(e,n){var r=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e);if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(n)}},748:(e,t,n)=>{var r;n.g,e.exports=(r=n(540),(()=>{var e={991:(e,t,n)=>{n.d(t,{Z:()=>f});var r=n(156),i=n.n(r),a=n(697),o=n.n(a),s=n(700),l=["latex","onChange","config","mathquillDidMount"];function u(){return u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u.apply(this,arguments)}function c(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 d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach(function(t){h(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var p=function(e){var t=e.latex,n=e.onChange,a=e.config,o=e.mathquillDidMount,c=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,l),h=(0,r.useRef)(2),p=(0,r.useRef)(null),f=(0,r.useRef)(null),m=(0,r.useRef)(n);return(0,r.useEffect)(function(){m.current=n},[n]),(0,r.useEffect)(function(){if(f.current){var e={restrictMismatchedBrackets:!0,handlers:{}};a&&(e=d(d({},e),a));var n=e.handlers.edit;e.handlers.edit=function(e){n&&n(),h.current>0?h.current-=1:m.current&&m.current(e)},p.current=s.Z.MathField(f.current,e),p.current.latex(t||""),o&&o(p.current)}},[f]),(0,r.useEffect)(function(){p.current&&p.current.latex()!==t&&p.current.latex(t)},[t]),i().createElement("span",u({},c,{ref:f}))};p.propTypes={latex:o().string,onChange:o().func,config:o().object,mathquillDidMount:o().func};const f=p},717:(e,t,n)=>{n.d(t,{Z:()=>d});var r=n(156),i=n.n(r),a=n(697),o=n.n(a),s=n(700),l=["mathquillDidMount","children"];function u(){return u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u.apply(this,arguments)}var c=function(e){var t=e.mathquillDidMount,n=e.children,a=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,l),o=(0,r.useRef)(null),c=(0,r.useRef)(null);return(0,r.useLayoutEffect)(function(){o&&(c.current=s.Z.StaticMath(o.current),t&&t(c.current))},[o,n]),i().createElement("span",u({},a,{ref:o}),n)};c.propTypes={children:o().string,mathquillDidMount:o().func};const d=c},700:(e,t,n)=>{n.d(t,{Z:()=>r});const r=n(338).getInterface(2)},527:(e,t,n)=>{n.d(t,{Z:()=>s});var r=n(81),i=n.n(r),a=n(645),o=n.n(a)()(i());o.push([e.id,"/*\n * MathQuill v0.11.0, by Han, Jeanine, and Mary\n * http://mathquill.com | maintainers@mathquill.com\n *\n * This Source Code Form is subject to the terms of the\n * Mozilla Public License, v. 2.0. If a copy of the MPL\n * was not distributed with this file, You can obtain\n * one at http://mozilla.org/MPL/2.0/.\n */\n@font-face {\n /* Heavy fonts have been removed */\n font-family: Symbola;\n}\n.mq-editable-field {\n display: -moz-inline-box;\n display: inline-block;\n}\n.mq-editable-field .mq-cursor {\n border-left: 1px solid black;\n margin-left: -1px;\n position: relative;\n z-index: 1;\n padding: 0;\n display: -moz-inline-box;\n display: inline-block;\n}\n.mq-editable-field .mq-cursor.mq-blink {\n visibility: hidden;\n}\n.mq-editable-field,\n.mq-math-mode .mq-editable-field {\n border: 1px solid gray;\n}\n.mq-editable-field.mq-focused,\n.mq-math-mode .mq-editable-field.mq-focused {\n -webkit-box-shadow: #8bd 0 0 1px 2px, inset #6ae 0 0 2px 0;\n -moz-box-shadow: #8bd 0 0 1px 2px, inset #6ae 0 0 2px 0;\n box-shadow: #8bd 0 0 1px 2px, inset #6ae 0 0 2px 0;\n border-color: #709AC0;\n border-radius: 1px;\n}\n.mq-math-mode .mq-editable-field {\n margin: 1px;\n}\n.mq-editable-field .mq-latex-command-input {\n color: inherit;\n font-family: \"Courier New\", monospace;\n border: 1px solid gray;\n padding-right: 1px;\n margin-right: 1px;\n margin-left: 2px;\n}\n.mq-editable-field .mq-latex-command-input.mq-empty {\n background: transparent;\n}\n.mq-editable-field .mq-latex-command-input.mq-hasCursor {\n border-color: ActiveBorder;\n}\n.mq-editable-field.mq-empty:after,\n.mq-editable-field.mq-text-mode:after,\n.mq-math-mode .mq-empty:after {\n visibility: hidden;\n content: 'c';\n}\n.mq-editable-field .mq-cursor:only-child:after,\n.mq-editable-field .mq-textarea + .mq-cursor:last-child:after {\n visibility: hidden;\n content: 'c';\n}\n.mq-editable-field .mq-text-mode .mq-cursor:only-child:after {\n content: '';\n}\n.mq-editable-field.mq-text-mode {\n overflow-x: auto;\n overflow-y: hidden;\n}\n.mq-root-block,\n.mq-math-mode .mq-root-block {\n display: -moz-inline-box;\n display: inline-block;\n width: 100%;\n padding: 2px;\n -webkit-box-sizing: border-box;\n -moz-box-sizing: border-box;\n box-sizing: border-box;\n white-space: nowrap;\n overflow: hidden;\n vertical-align: middle;\n}\n.mq-math-mode {\n font-variant: normal;\n font-weight: normal;\n font-style: normal;\n font-size: 115%;\n line-height: 1;\n display: -moz-inline-box;\n display: inline-block;\n}\n.mq-math-mode .mq-non-leaf,\n.mq-math-mode .mq-scaled {\n display: -moz-inline-box;\n display: inline-block;\n}\n.mq-math-mode var,\n.mq-math-mode .mq-text-mode,\n.mq-math-mode .mq-nonSymbola {\n font-family: \"Times New Roman\", Symbola, serif;\n line-height: 0.9;\n}\n.mq-math-mode * {\n font-size: inherit;\n line-height: inherit;\n margin: 0;\n padding: 0;\n border-color: black;\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n box-sizing: border-box;\n}\n.mq-math-mode .mq-empty {\n background: #ccc;\n}\n.mq-math-mode .mq-empty.mq-root-block {\n background: transparent;\n}\n.mq-math-mode.mq-empty {\n background: transparent;\n}\n.mq-math-mode .mq-text-mode {\n display: inline-block;\n white-space: pre;\n}\n.mq-math-mode .mq-text-mode.mq-hasCursor {\n box-shadow: inset darkgray 0 0.1em 0.2em;\n padding: 0 0.1em;\n margin: 0 -0.1em;\n min-width: 1ex;\n}\n.mq-math-mode .mq-font {\n font: 1em \"Times New Roman\", Symbola, serif;\n}\n.mq-math-mode .mq-font * {\n font-family: inherit;\n font-style: inherit;\n}\n.mq-math-mode b,\n.mq-math-mode b.mq-font {\n font-weight: bolder;\n}\n.mq-math-mode var,\n.mq-math-mode i,\n.mq-math-mode i.mq-font {\n font-style: italic;\n}\n.mq-math-mode var.mq-f {\n margin-right: 0.2em;\n margin-left: 0.1em;\n}\n.mq-math-mode .mq-roman var.mq-f {\n margin: 0;\n}\n.mq-math-mode big {\n font-size: 200%;\n}\n.mq-math-mode .mq-int > big {\n display: inline-block;\n -webkit-transform: scaleX(0.7);\n -moz-transform: scaleX(0.7);\n -ms-transform: scaleX(0.7);\n -o-transform: scaleX(0.7);\n transform: scaleX(0.7);\n vertical-align: -0.16em;\n}\n.mq-math-mode .mq-int > .mq-supsub {\n font-size: 80%;\n vertical-align: -1.1em;\n padding-right: 0.2em;\n}\n.mq-math-mode .mq-int > .mq-supsub > .mq-sup > .mq-sup-inner {\n vertical-align: 1.3em;\n}\n.mq-math-mode .mq-int > .mq-supsub > .mq-sub {\n margin-left: -0.35em;\n}\n.mq-math-mode .mq-roman {\n font-style: normal;\n}\n.mq-math-mode .mq-sans-serif {\n font-family: sans-serif, Symbola, serif;\n}\n.mq-math-mode .mq-monospace {\n font-family: monospace, Symbola, serif;\n}\n.mq-math-mode .mq-overline {\n border-top: 1px solid black;\n margin-top: 1px;\n}\n.mq-math-mode .mq-underline {\n border-bottom: 1px solid black;\n margin-bottom: 1px;\n}\n.mq-math-mode .mq-binary-operator {\n padding: 0 0.2em;\n display: -moz-inline-box;\n display: inline-block;\n}\n.mq-math-mode .mq-supsub {\n text-align: left;\n font-size: 90%;\n vertical-align: -0.5em;\n}\n.mq-math-mode .mq-supsub.mq-sup-only {\n vertical-align: 0.5em;\n}\n.mq-math-mode .mq-supsub.mq-sup-only .mq-sup {\n display: inline-block;\n vertical-align: text-bottom;\n}\n.mq-math-mode .mq-supsub .mq-sup {\n display: block;\n}\n.mq-math-mode .mq-supsub .mq-sub {\n display: block;\n float: left;\n}\n.mq-math-mode .mq-supsub .mq-binary-operator {\n padding: 0 0.1em;\n}\n.mq-math-mode .mq-supsub .mq-fraction {\n font-size: 70%;\n}\n.mq-math-mode sup.mq-nthroot {\n font-size: 80%;\n vertical-align: 0.8em;\n margin-right: -0.6em;\n margin-left: 0.2em;\n min-width: 0.5em;\n}\n.mq-math-mode .mq-paren {\n padding: 0 0.1em;\n vertical-align: top;\n -webkit-transform-origin: center 0.06em;\n -moz-transform-origin: center 0.06em;\n -ms-transform-origin: center 0.06em;\n -o-transform-origin: center 0.06em;\n transform-origin: center 0.06em;\n}\n.mq-math-mode .mq-paren.mq-ghost {\n color: silver;\n}\n.mq-math-mode .mq-paren + span {\n margin-top: 0.1em;\n margin-bottom: 0.1em;\n}\n.mq-math-mode .mq-array {\n vertical-align: middle;\n text-align: center;\n}\n.mq-math-mode .mq-array > span {\n display: block;\n}\n.mq-math-mode .mq-operator-name {\n font-family: Symbola, \"Times New Roman\", serif;\n line-height: 0.9;\n font-style: normal;\n}\n.mq-math-mode var.mq-operator-name.mq-first {\n padding-left: 0.2em;\n}\n.mq-math-mode var.mq-operator-name.mq-last,\n.mq-math-mode .mq-supsub.mq-after-operator-name {\n padding-right: 0.2em;\n}\n.mq-math-mode .mq-fraction {\n font-size: 90%;\n text-align: center;\n vertical-align: -0.4em;\n padding: 0 0.2em;\n}\n.mq-math-mode .mq-fraction,\n.mq-math-mode .mq-large-operator,\n.mq-math-mode x:-moz-any-link {\n display: -moz-groupbox;\n}\n.mq-math-mode .mq-fraction,\n.mq-math-mode .mq-large-operator,\n.mq-math-mode x:-moz-any-link,\n.mq-math-mode x:default {\n display: inline-block;\n}\n.mq-math-mode .mq-numerator,\n.mq-math-mode .mq-denominator,\n.mq-math-mode .mq-dot-recurring {\n display: block;\n}\n.mq-math-mode .mq-numerator {\n padding: 0 0.1em;\n}\n.mq-math-mode .mq-denominator {\n border-top: 1px solid;\n float: right;\n width: 100%;\n padding: 0.1em;\n}\n.mq-math-mode .mq-dot-recurring {\n text-align: center;\n height: 0.3em;\n}\n.mq-math-mode .mq-sqrt-prefix {\n padding-top: 0;\n position: relative;\n top: 0.1em;\n vertical-align: top;\n -webkit-transform-origin: top;\n -moz-transform-origin: top;\n -ms-transform-origin: top;\n -o-transform-origin: top;\n transform-origin: top;\n}\n.mq-math-mode .mq-sqrt-stem {\n border-top: 1px solid;\n margin-top: 1px;\n padding-left: 0.15em;\n padding-right: 0.2em;\n margin-right: 0.1em;\n padding-top: 1px;\n}\n.mq-math-mode .mq-diacritic-above {\n display: block;\n text-align: center;\n line-height: 0.4em;\n}\n.mq-math-mode .mq-diacritic-stem {\n display: block;\n text-align: center;\n}\n.mq-math-mode .mq-hat-prefix {\n display: block;\n text-align: center;\n line-height: 0.95em;\n margin-bottom: -0.7em;\n transform: scaleX(1.5);\n -moz-transform: scaleX(1.5);\n -o-transform: scaleX(1.5);\n -webkit-transform: scaleX(1.5);\n}\n.mq-math-mode .mq-hat-stem {\n display: block;\n}\n.mq-math-mode .mq-large-operator {\n vertical-align: -0.2em;\n padding: 0.2em;\n text-align: center;\n}\n.mq-math-mode .mq-large-operator .mq-from,\n.mq-math-mode .mq-large-operator big,\n.mq-math-mode .mq-large-operator .mq-to {\n display: block;\n}\n.mq-math-mode .mq-large-operator .mq-from,\n.mq-math-mode .mq-large-operator .mq-to {\n font-size: 80%;\n}\n.mq-math-mode .mq-large-operator .mq-from {\n float: right;\n /* take out of normal flow to manipulate baseline */\n width: 100%;\n}\n.mq-math-mode,\n.mq-math-mode .mq-editable-field {\n cursor: text;\n font-family: Symbola, \"Times New Roman\", serif;\n}\n.mq-math-mode .mq-overarc {\n border-top: 1px solid black;\n -webkit-border-top-right-radius: 50% 0.3em;\n -moz-border-radius-topright: 50% 0.3em;\n border-top-right-radius: 50% 0.3em;\n -webkit-border-top-left-radius: 50% 0.3em;\n -moz-border-radius-topleft: 50% 0.3em;\n border-top-left-radius: 50% 0.3em;\n margin-top: 1px;\n padding-top: 0.15em;\n}\n.mq-math-mode .mq-overarrow {\n min-width: 0.5em;\n border-top: 1px solid black;\n margin-top: 1px;\n padding-top: 0.2em;\n text-align: center;\n}\n.mq-math-mode .mq-overarrow:before {\n display: block;\n position: relative;\n top: -0.34em;\n font-size: 0.5em;\n line-height: 0em;\n content: '\\27A4';\n text-align: right;\n}\n.mq-math-mode .mq-overarrow.mq-arrow-left:before {\n -moz-transform: scaleX(-1);\n -o-transform: scaleX(-1);\n -webkit-transform: scaleX(-1);\n transform: scaleX(-1);\n filter: FlipH;\n -ms-filter: \"FlipH\";\n}\n.mq-math-mode .mq-overarrow.mq-arrow-both {\n vertical-align: text-bottom;\n}\n.mq-math-mode .mq-overarrow.mq-arrow-both.mq-empty {\n min-height: 1.23em;\n}\n.mq-math-mode .mq-overarrow.mq-arrow-both.mq-empty:after {\n top: -0.34em;\n}\n.mq-math-mode .mq-overarrow.mq-arrow-both:before {\n -moz-transform: scaleX(-1);\n -o-transform: scaleX(-1);\n -webkit-transform: scaleX(-1);\n transform: scaleX(-1);\n filter: FlipH;\n -ms-filter: \"FlipH\";\n}\n.mq-math-mode .mq-overarrow.mq-arrow-both:after {\n display: block;\n position: relative;\n top: -2.3em;\n font-size: 0.5em;\n line-height: 0em;\n content: '\\27A4';\n visibility: visible;\n text-align: right;\n}\n.mq-math-mode .mq-selection,\n.mq-editable-field .mq-selection,\n.mq-math-mode .mq-selection .mq-non-leaf,\n.mq-editable-field .mq-selection .mq-non-leaf,\n.mq-math-mode .mq-selection .mq-scaled,\n.mq-editable-field .mq-selection .mq-scaled {\n background: #B4D5FE !important;\n background: Highlight !important;\n color: HighlightText;\n border-color: HighlightText;\n}\n.mq-math-mode .mq-selection .mq-matrixed,\n.mq-editable-field .mq-selection .mq-matrixed {\n background: #39F !important;\n}\n.mq-math-mode .mq-selection .mq-matrixed-container,\n.mq-editable-field .mq-selection .mq-matrixed-container {\n filter: progid:DXImageTransform.Microsoft.Chroma(color='#3399FF') !important;\n}\n.mq-math-mode .mq-selection.mq-blur,\n.mq-editable-field .mq-selection.mq-blur,\n.mq-math-mode .mq-selection.mq-blur .mq-non-leaf,\n.mq-editable-field .mq-selection.mq-blur .mq-non-leaf,\n.mq-math-mode .mq-selection.mq-blur .mq-scaled,\n.mq-editable-field .mq-selection.mq-blur .mq-scaled,\n.mq-math-mode .mq-selection.mq-blur .mq-matrixed,\n.mq-editable-field .mq-selection.mq-blur .mq-matrixed {\n background: #D4D4D4 !important;\n color: black;\n border-color: black;\n}\n.mq-math-mode .mq-selection.mq-blur .mq-matrixed-container,\n.mq-editable-field .mq-selection.mq-blur .mq-matrixed-container {\n filter: progid:DXImageTransform.Microsoft.Chroma(color='#D4D4D4') !important;\n}\n.mq-editable-field .mq-textarea,\n.mq-math-mode .mq-textarea {\n position: relative;\n -webkit-user-select: text;\n -moz-user-select: text;\n user-select: text;\n}\n.mq-editable-field .mq-textarea *,\n.mq-math-mode .mq-textarea *,\n.mq-editable-field .mq-selectable,\n.mq-math-mode .mq-selectable {\n -webkit-user-select: text;\n -moz-user-select: text;\n user-select: text;\n position: absolute;\n clip: rect(1em 1em 1em 1em);\n -webkit-transform: scale(0);\n -moz-transform: scale(0);\n -ms-transform: scale(0);\n -o-transform: scale(0);\n transform: scale(0);\n resize: none;\n width: 1px;\n height: 1px;\n box-sizing: content-box;\n}\n.mq-math-mode .mq-matrixed {\n background: white;\n display: -moz-inline-box;\n display: inline-block;\n}\n.mq-math-mode .mq-matrixed-container {\n filter: progid:DXImageTransform.Microsoft.Chroma(color='white');\n margin-top: -0.1em;\n}\n",""]);const s=o},645:e=>{e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var n="",r=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),r&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),r&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n}).join("")},t.i=function(e,n,r,i,a){"string"==typeof e&&(e=[[null,e,void 0]]);var o={};if(r)for(var s=0;s<this.length;s++){var l=this[s][0];null!=l&&(o[l]=!0)}for(var u=0;u<e.length;u++){var c=[].concat(e[u]);r&&o[c[0]]||(void 0!==a&&(void 0===c[5]||(c[1]="@layer".concat(c[5].length>0?" ".concat(c[5]):""," {").concat(c[1],"}")),c[5]=a),n&&(c[2]?(c[1]="@media ".concat(c[2]," {").concat(c[1],"}"),c[2]=n):c[2]=n),i&&(c[4]?(c[1]="@supports (".concat(c[4],") {").concat(c[1],"}"),c[4]=i):c[4]="".concat(i)),t.push(c))}},t}},81:e=>{e.exports=function(e){return e[1]}},338:(e,t,n)=>{var r=n(755);window.jQuery=r,function(){var e,t=window.jQuery,n="mathquill-command-id",r="mathquill-block-id",i=Math.min,a=Math.max;if(!t)throw"MathQuill requires jQuery 1.5.2+ to be loaded first";function o(){}var s=[].slice;function l(e){var t=e.length-1;return function(){var n=s.call(arguments,0,t),r=s.call(arguments,t);return e.apply(this,n.concat([r]))}}var u=l(function(e,t){return l(function(n,r){if(e in n)return n[e].apply(n,t.concat(r))})});function c(e){return l(function(t,n){return"function"!=typeof t&&(t=u(t)),e.call(this,function(e){return t.apply(e,[e].concat(n))})})}function d(e){var t=s.call(arguments,1);return function(){return e.apply(this,t)}}function h(e,t){if(!t)throw new Error("prayer failed: "+e)}var p=function(e,t){function n(e){return"object"==typeof e}function r(e){return"function"==typeof e}function i(){}return function e(a,o){function s(){var e=new l;return r(e.init)&&e.init.apply(e,arguments),e}function l(){}void 0===o&&(o=a,a=Object),s.Bare=l;var u,c=i.prototype=a.prototype,d=l.prototype=s.prototype=s.p=new i;return d.constructor=s,s.extend=function(t){return e(s,t)},(s.open=function(e){if(u={},r(e)?u=e.call(s,d,c,s,a):n(e)&&(u=e),n(u))for(var i in u)t.call(u,i)&&(d[i]=u[i]);return r(d.init)||(d.init=a),s})(o)}}(0,{}.hasOwnProperty),f=-1;function m(e){h("a direction was passed",e===f||1===e)}var g=p(t,function(e){e.insDirOf=function(e,t){return e===f?this.insertBefore(t.first()):this.insertAfter(t.last())},e.insAtDirEnd=function(e,t){return e===f?this.prependTo(t):this.appendTo(t)}}),b=p(function(e){e.parent=0,e[f]=0,e[1]=0,e.init=function(e,t,n){this.parent=e,this[f]=t,this[1]=n},this.copy=function(e){return b(e.parent,e[f],e[1])}}),v=p(function(e){e[f]=0,e[1]=0,e.parent=0;var t=0;this.byId={},e.init=function(){this.id=t+=1,v.byId[this.id]=this,this.ends={},this.ends[f]=0,this.ends[1]=0},e.dispose=function(){delete v.byId[this.id]},e.toString=function(){return"{{ MathQuill Node #"+this.id+" }}"},e.jQ=g(),e.jQadd=function(e){return this.jQ=this.jQ.add(e)},e.jQize=function(e){function t(e){if(e.getAttribute){var n=e.getAttribute("mathquill-command-id"),r=e.getAttribute("mathquill-block-id");n&&v.byId[n].jQadd(e),r&&v.byId[r].jQadd(e)}for(e=e.firstChild;e;e=e.nextSibling)t(e)}e=g(e||this.html());for(var n=0;n<e.length;n+=1)t(e[n]);return e},e.createDir=function(e,t){m(e);var n=this;return n.jQize(),n.jQ.insDirOf(e,t.jQ),t[e]=n.adopt(t.parent,t[f],t[1]),n},e.createLeftOf=function(e){return this.createDir(f,e)},e.selectChildren=function(e,t){return C(e,t)},e.bubble=c(function(e){for(var t=this;t&&!1!==e(t);t=t.parent);return this}),e.postOrder=c(function(e){return function t(n){n.eachChild(t),e(n)}(this),this}),e.isEmpty=function(){return 0===this.ends[f]&&0===this.ends[1]},e.isStyleBlock=function(){return!1},e.children=function(){return x(this.ends[f],this.ends[1])},e.eachChild=function(){var e=this.children();return e.each.apply(e,arguments),this},e.foldChildren=function(e,t){return this.children().fold(e,t)},e.withDirAdopt=function(e,t,n,r){return x(this,this).withDirAdopt(e,t,n,r),this},e.adopt=function(e,t,n){return x(this,this).adopt(e,t,n),this},e.disown=function(){return x(this,this).disown(),this},e.remove=function(){return this.jQ.remove(),this.postOrder("dispose"),this.disown()}});function y(e,t,n){h("a parent is always present",e),h("leftward is properly set up",t?t[1]===n&&t.parent===e:e.ends[f]===n),h("rightward is properly set up",n?n[f]===t&&n.parent===e:e.ends[1]===t)}var x=p(function(t){t.init=function(t,n,r){if(r===e&&(r=f),m(r),h("no half-empty fragments",!t==!n),this.ends={},t){h("withDir is passed to Fragment",t instanceof v),h("oppDir is passed to Fragment",n instanceof v),h("withDir and oppDir have the same parent",t.parent===n.parent),this.ends[r]=t,this.ends[-r]=n;var i=this.fold([],function(e,t){return e.push.apply(e,t.jQ.get()),e});this.jQ=this.jQ.add(i)}},t.jQ=g(),t.withDirAdopt=function(e,t,n,r){return e===f?this.adopt(t,n,r):this.adopt(t,r,n)},t.adopt=function(e,t,n){y(e,t,n);var r=this;r.disowned=!1;var i=r.ends[f];if(!i)return this;var a=r.ends[1];return t||(e.ends[f]=i),n?n[f]=a:e.ends[1]=a,r.ends[1][1]=n,r.each(function(n){n[f]=t,n.parent=e,t&&(t[1]=n),t=n}),r},t.disown=function(){var e=this,t=e.ends[f];if(!t||e.disowned)return e;e.disowned=!0;var n=e.ends[1],r=t.parent;return y(r,t[f],t),y(r,n,n[1]),t[f]?t[f][1]=n[1]:r.ends[f]=n[1],n[1]?n[1][f]=t[f]:r.ends[1]=t[f],e},t.remove=function(){return this.jQ.remove(),this.each("postOrder","dispose"),this.disown()},t.each=c(function(e){var t=this,n=t.ends[f];if(!n)return t;for(;n!==t.ends[1][1]&&!1!==e(n);n=n[1]);return t}),t.fold=function(e,t){return this.each(function(n){e=t.call(this,e,n)}),e}}),w={},k={},S=p(b,function(t){t.init=function(e,t){this.parent=e,this.options=t;var n=this.jQ=this._jQ=g('<span class="mq-cursor">&#8203;</span>');this.blink=function(){n.toggleClass("mq-blink")},this.upDownCache={}},t.show=function(){return this.jQ=this._jQ.removeClass("mq-blink"),"intervalId"in this?clearInterval(this.intervalId):(this[1]?this.selection&&this.selection.ends[f][f]===this[f]?this.jQ.insertBefore(this.selection.jQ):this.jQ.insertBefore(this[1].jQ.first()):this.jQ.appendTo(this.parent.jQ),this.parent.focus()),this.intervalId=setInterval(this.blink,500),this},t.hide=function(){return"intervalId"in this&&clearInterval(this.intervalId),delete this.intervalId,this.jQ.detach(),this.jQ=g(),this},t.withDirInsertAt=function(e,t,n,r){var i=this.parent;this.parent=t,this[e]=n,this[-e]=r,i!==t&&i.blur&&i.blur(this)},t.insDirOf=function(e,t){return m(e),this.jQ.insDirOf(e,t.jQ),this.withDirInsertAt(e,t.parent,t[e],t),this.parent.jQ.addClass("mq-hasCursor"),this},t.insLeftOf=function(e){return this.insDirOf(f,e)},t.insRightOf=function(e){return this.insDirOf(1,e)},t.insAtDirEnd=function(e,t){return m(e),this.jQ.insAtDirEnd(e,t.jQ),this.withDirInsertAt(e,t,0,t.ends[e]),t.focus(),this},t.insAtLeftEnd=function(e){return this.insAtDirEnd(f,e)},t.insAtRightEnd=function(e){return this.insAtDirEnd(1,e)},t.jumpUpDown=function(e,t){var n=this;n.upDownCache[e.id]=b.copy(n);var r=n.upDownCache[t.id];if(r)r[1]?n.insLeftOf(r[1]):n.insAtRightEnd(r.parent);else{var i=n.offset().left;t.seek(i,n)}},t.offset=function(){var e=this.jQ.removeClass("mq-cursor").offset();return this.jQ.addClass("mq-cursor"),e},t.unwrapGramp=function(){var e=this.parent.parent,t=e.parent,n=e[1],r=e[f];if(e.disown().eachChild(function(i){i.isEmpty()||(i.children().adopt(t,r,n).each(function(t){t.jQ.insertBefore(e.jQ.first())}),r=i.ends[1])}),!this[1])if(this[f])this[1]=this[f][1];else for(;!this[1];){if(this.parent=this.parent[1],!this.parent){this[1]=e[1],this.parent=t;break}this[1]=this.parent.ends[f]}this[1]?this.insLeftOf(this[1]):this.insAtRightEnd(t),e.jQ.remove(),e[f].siblingDeleted&&e[f].siblingDeleted(this.options,1),e[1].siblingDeleted&&e[1].siblingDeleted(this.options,f)},t.startSelection=function(){for(var e=this.anticursor=b.copy(this),t=e.ancestors={},n=e;n.parent;n=n.parent)t[n.parent.id]=n},t.endSelection=function(){delete this.anticursor},t.select=function(){var e=this.anticursor;if(this[f]===e[f]&&this.parent===e.parent)return!1;for(var t=this;t.parent;t=t.parent)if(t.parent.id in e.ancestors){var n=t.parent;break}h("cursor and anticursor in the same tree",n);var r,i,a=e.ancestors[n.id],o=1;if(t[f]!==a)for(var s=t;s;s=s[1])if(s[1]===a[1]){o=f,r=t,i=a;break}return 1===o&&(r=a,i=t),r instanceof b&&(r=r[1]),i instanceof b&&(i=i[f]),this.hide().selection=n.selectChildren(r,i),this.insDirOf(o,this.selection.ends[o]),this.selectionChanged(),!0},t.clearSelection=function(){return this.selection&&(this.selection.clear(),delete this.selection,this.selectionChanged()),this},t.deleteSelection=function(){this.selection&&(this[f]=this.selection.ends[f][f],this[1]=this.selection.ends[1][1],this.selection.remove(),this.selectionChanged(),delete this.selection)},t.replaceSelection=function(){var e=this.selection;return e&&(this[f]=e.ends[f][f],this[1]=e.ends[1][1],delete this.selection),e},t.depth=function(){for(var e=this,t=0;e=e.parent;)t+=e instanceof $?1:0;return t},t.isTooDeep=function(t){if(this.options.maxDepth!==e)return this.depth()+(t||0)>this.options.maxDepth}}),C=p(x,function(e,t){e.init=function(){t.init.apply(this,arguments),this.jQ=this.jQ.wrapAll('<span class="mq-selection"></span>').parent()},e.adopt=function(){return this.jQ.replaceWith(this.jQ=this.jQ.children()),t.adopt.apply(this,arguments)},e.clear=function(){return this.jQ.replaceWith(this.jQ[0].childNodes),this},e.join=function(e){return this.fold("",function(t,n){return t+n[e]()})}}),T=p(function(e){e.init=function(e,t,n){this.id=e.id,this.data={},this.root=e,this.container=t,this.options=n,e.controller=this,this.cursor=e.cursor=S(e,n)},e.handle=function(e,t){var n=this.options.handlers;if(n&&n.fns[e]){var r=n.APIClasses[this.KIND_OF_MQ](this);t===f||1===t?n.fns[e](t,r):n.fns[e](r)}};var t=[];this.onNotify=function(e){t.push(e)},e.notify=function(){for(var e=0;e<t.length;e+=1)t[e].apply(this.cursor,arguments);return this}}),E={},q=p(),M={},A=p(),N={};function O(){window.console&&console.warn('You are using the MathQuill API without specifying an interface version, which will fail in v1.0.0. Easiest fix is to do the following before doing anything else:\n\n MathQuill = MathQuill.getInterface(1);\n // now MathQuill.MathField() works like it used to\n\nSee also the "`dev` branch (2014–2015) → v0.10.0 Migration Guide" at\n https://github.com/mathquill/mathquill/wiki/%60dev%60-branch-(2014%E2%80%932015)-%E2%86%92-v0.10.0-Migration-Guide')}function D(e){return O(),Ie(e)}D.prototype=A.p,D.VERSION="v0.11.0",D.interfaceVersion=function(e){if(1!==e)throw"Only interface version 1 supported. You specified: "+e;return(O=function(){window.console&&console.warn('You called MathQuill.interfaceVersion(1); to specify the interface version, which will fail in v1.0.0. You can fix this easily by doing this before doing anything else:\n\n MathQuill = MathQuill.getInterface(1);\n // now MathQuill.MathField() works like it used to\n\nSee also the "`dev` branch (2014–2015) → v0.10.0 Migration Guide" at\n https://github.com/mathquill/mathquill/wiki/%60dev%60-branch-(2014%E2%80%932015)-%E2%86%92-v0.10.0-Migration-Guide')})(),D},D.getInterface=I;var z=I.MIN=1,L=I.MAX=2;function I(e){if(!(z<=e&&e<=L))throw"Only interface versions between "+z+" and "+L+" supported. You specified: "+e;function n(e){if(!e||!e.nodeType)return null;var t=g(e).children(".mq-root-block").attr(r),n=t&&v.byId[t].controller;return n?i[n.KIND_OF_MQ](n):null}var i={};function a(e,t){for(var n in t&&t.handlers&&(t.handlers={fns:t.handlers,APIClasses:i}),t)if(t.hasOwnProperty(n)){var r=t[n],a=M[n];e[n]=a?a(r):r}}n.L=f,n.R=1,n.saneKeyboardEvents=P,n.config=function(e){return a(q.p,e),this},n.registerEmbed=function(e,t){if(!/^[a-z][a-z0-9]*$/i.test(e))throw"Embed name must start with letter and be only letters and digits";N[e]=t};var s=i.AbstractMathQuill=p(A,function(e){e.init=function(e){this.__controller=e,this.__options=e.options,this.id=e.id,this.data=e.data},e.__mathquillify=function(e){var t=this.__controller,n=t.root,i=t.container;t.createTextarea();var a=i.addClass(e).contents().detach();n.jQ=g('<span class="mq-root-block"/>').attr(r,n.id).appendTo(i),this.latex(a.text()),this.revert=function(){return i.empty().unbind(".mathquill").removeClass("mq-editable-field mq-math-mode mq-text-mode").append(a)}},e.config=function(e){return a(this.__options,e),this},e.el=function(){return this.__controller.container[0]},e.text=function(){return this.__controller.exportText()},e.latex=function(e){return arguments.length>0?(this.__controller.renderLatexMath(e),this.__controller.blurred&&this.__controller.cursor.hide().parent.blur(),this):this.__controller.exportLatex()},e.html=function(){return this.__controller.root.jQ.html().replace(/ mathquill-(?:command|block)-id="?\d+"?/g,"").replace(/<span class="?mq-cursor( mq-blink)?"?>.?<\/span>/i,"").replace(/ mq-hasCursor|mq-hasCursor ?/,"").replace(/ class=(""|(?= |>))/g,"")},e.reflow=function(){return this.__controller.root.postOrder("reflow"),this}});for(var l in n.prototype=s.prototype,i.EditableField=p(s,function(e,n){e.__mathquillify=function(){return n.__mathquillify.apply(this,arguments),this.__controller.editable=!0,this.__controller.delegateMouseEvents(),this.__controller.editablesTextareaEvents(),this},e.focus=function(){return this.__controller.textarea.focus(),this},e.blur=function(){return this.__controller.textarea.blur(),this},e.write=function(e){return this.__controller.writeLatex(e),this.__controller.scrollHoriz(),this.__controller.blurred&&this.__controller.cursor.hide().parent.blur(),this},e.empty=function(){var e=this.__controller.root,t=this.__controller.cursor;return e.eachChild("postOrder","dispose"),e.ends[f]=e.ends[1]=0,e.jQ.empty(),delete t.selection,t.insAtRightEnd(e),this},e.cmd=function(e){var t=this.__controller.notify(),n=t.cursor;if(/^\\[a-z]+$/i.test(e)&&!n.isTooDeep()){e=e.slice(1);var r=w[e];r&&(e=r(e),n.selection&&e.replaces(n.replaceSelection()),e.createLeftOf(n.show()),this.__controller.scrollHoriz())}else n.parent.write(n,e);return t.blurred&&n.hide().parent.blur(),this},e.select=function(){var e=this.__controller;for(e.notify("move").cursor.insAtRightEnd(e.root);e.cursor[f];)e.selectLeft();return this},e.clearSelection=function(){return this.__controller.cursor.clearSelection(),this},e.moveToDirEnd=function(e){return this.__controller.notify("move").cursor.insAtDirEnd(e,this.__controller.root),this},e.moveToLeftEnd=function(){return this.moveToDirEnd(f)},e.moveToRightEnd=function(){return this.moveToDirEnd(1)},e.keystroke=function(e){e=e.replace(/^\s+|\s+$/g,"").split(/\s+/);for(var t=0;t<e.length;t+=1)this.__controller.keystroke(e[t],{preventDefault:o});return this},e.typedText=function(e){for(var t=0;t<e.length;t+=1)this.__controller.typedText(e.charAt(t));return this},e.dropEmbedded=function(e,t,n){var r=e-g(window).scrollLeft(),i=t-g(window).scrollTop(),a=document.elementFromPoint(r,i);this.__controller.seek(g(a),e,t),ye().setOptions(n).createLeftOf(this.__controller.cursor)},e.clickAt=function(e,n,r){r=r||document.elementFromPoint(e,n);var i=this.__controller,a=i.root;return t.contains(a.jQ[0],r)||(r=a.jQ[0]),i.seek(g(r),e+pageXOffset,n+pageYOffset),i.blurred&&this.focus(),this},e.ignoreNextMousedown=function(e){return this.__controller.cursor.options.ignoreNextMousedown=e,this}}),n.EditableField=function(){throw"wtf don't call me, I'm 'abstract'"},n.EditableField.prototype=i.EditableField.prototype,E)!function(t,r){var a=i[t]=r(i);n[t]=function(r,i){var o=n(r);if(o instanceof a||!r||!r.nodeType)return o;var s=T(a.RootBlock(),g(r),q());return s.KIND_OF_MQ=t,a(s).__mathquillify(i,e)},n[t].prototype=a.prototype}(l,E[l]);return n}D.noConflict=function(){return window.MathQuill=_,D};var _=window.MathQuill;function R(e){for(var t="moveOutOf deleteOutOf selectOutOf upOutOf downOutOf".split(" "),n=0;n<t.length;n+=1)!function(t){e[t]=function(e){this.controller.handle(t,e)}}(t[n]);e.reflow=function(){this.controller.handle("reflow"),this.controller.handle("edited"),this.controller.handle("edit")}}window.MathQuill=D;var B,P=(B={8:"Backspace",9:"Tab",10:"Enter",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Esc",32:"Spacebar",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",45:"Insert",46:"Del",144:"NumLock"},function(e,n){var r,i=null,a=null,s=t(e),l=t(n.container||s),u=o;function c(e){u=e,clearTimeout(r),r=setTimeout(e)}function d(e){c(function(t){u=o,clearTimeout(r),e(t)})}l.bind("keydown keypress input keyup focusout paste",function(e){u(e)});var h=!1;function p(){n.keystroke(function(e){var t,n=e.which||e.keyCode,r=B[n],i=[];return e.ctrlKey&&i.push("Ctrl"),e.originalEvent&&e.originalEvent.metaKey&&i.push("Meta"),e.altKey&&i.push("Alt"),e.shiftKey&&i.push("Shift"),t=r||String.fromCharCode(n),i.length||r?(i.push(t),i.join("-")):t}(i),i)}function f(){if(!("selectionStart"in(e=s[0]))||e.selectionStart===e.selectionEnd){var e,t=s.val();1===t.length?(s.val(""),n.typedText(t)):t&&s[0].select&&s[0].select()}}function m(){var e=s.val();s.val(""),e&&n.paste(e)}return l.bind({keydown:function(e){i=e,a=null,h&&d(function(e){e&&"focusout"===e.type||!s[0].select||s[0].select()}),p()},keypress:function(e){i&&a&&p(),a=e,c(f)},keyup:function(e){i&&!a&&c(f)},focusout:function(){i=a=null},cut:function(){d(function(){n.cut()})},copy:function(){d(function(){n.copy()})},paste:function(e){s.focus(),c(m)}}),{select:function(e){u(),u=o,clearTimeout(r),s.val(e),e&&s[0].select&&s[0].select(),h=!!e}}}),j=p(function(e,t,n){function r(e,t){throw"Parse Error: "+t+" at "+(e?"'"+e+"'":"EOF")}e.init=function(e){this._=e},e.parse=function(e){return this.skip(o)._(""+e,function(e,t){return t},r)},e.or=function(e){h("or is passed a parser",e instanceof n);var t=this;return n(function(n,r,i){return t._(n,r,function(t){return e._(n,r,i)})})},e.then=function(e){var t=this;return n(function(r,i,a){return t._(r,function(t,r){var o=e instanceof n?e:e(r);return h("a parser is returned",o instanceof n),o._(t,i,a)},a)})},e.many=function(){var e=this;return n(function(t,n,r){for(var i=[];e._(t,a,o););return n(t,i);function a(e,n){return t=e,i.push(n),!0}function o(){return!1}})},e.times=function(e,t){arguments.length<2&&(t=e);var r=this;return n(function(n,i,a){for(var o,s=[],l=!0,u=0;u<e;u+=1)if(!(l=r._(n,c,d)))return a(n,o);for(;u<t&&l;u+=1)l=r._(n,c,h);return i(n,s);function c(e,t){return s.push(t),n=e,!0}function d(e,t){return o=t,n=e,!1}function h(e,t){return!1}})},e.result=function(e){return this.then(a(e))},e.atMost=function(e){return this.times(0,e)},e.atLeast=function(e){var t=this;return t.times(e).then(function(e){return t.many().map(function(t){return e.concat(t)})})},e.map=function(e){return this.then(function(t){return a(e(t))})},e.skip=function(e){return this.then(function(t){return e.result(t)})},this.string=function(e){var t=e.length,r="expected '"+e+"'";return n(function(n,i,a){var o=n.slice(0,t);return o===e?i(n.slice(t),o):a(n,r)})};var i=this.regex=function(e){h("regexp parser is anchored","^"===e.toString().charAt(1));var t="expected "+e;return n(function(n,r,i){var a=e.exec(n);if(a){var o=a[0];return r(n.slice(o.length),o)}return i(n,t)})},a=n.succeed=function(e){return n(function(t,n){return n(t,e)})},o=(n.fail=function(e){return n(function(t,n,r){return r(t,e)})},n.letter=i(/^[a-z]/i),n.letters=i(/^[a-z]*/i),n.digit=i(/^[0-9]/),n.digits=i(/^[0-9]*/),n.whitespace=i(/^\s+/),n.optWhitespace=i(/^\s*/),n.any=n(function(e,t,n){return e?t(e.slice(1),e.charAt(0)):n(e,"expected any character")}),n.all=n(function(e,t,n){return t("",e)}),n.eof=n(function(e,t,n){return e?n(e,"expected EOF"):t(e,e)}))});T.open(function(e){e.focusBlurEvents=function(){var e,t=this,n=t.root,r=t.cursor;function i(){clearTimeout(e),r.selection&&r.selection.jQ.addClass("mq-blur"),a()}function a(){r.hide().parent.blur(),t.container.removeClass("mq-focused"),g(window).unbind("blur",i)}t.textarea.focus(function(){t.blurred=!1,clearTimeout(e),t.container.addClass("mq-focused"),r.parent||r.insAtRightEnd(n),r.selection?(r.selection.jQ.removeClass("mq-blur"),t.selectionChanged()):r.show()}).blur(function(){t.blurred=!0,e=setTimeout(function(){n.postOrder("intentionalBlur"),r.clearSelection().endSelection(),a()}),g(window).bind("blur",i)}),t.blurred=!0,r.hide().parent.blur()}}),T.open(function(e,t){e.exportText=function(){return this.root.foldChildren("",function(e,t){return e+t.text()})}}),T.open(function(t){q.p.ignoreNextMousedown=o,t.delegateMouseEvents=function(){var t=this.root.jQ;this.container.bind("mousedown.mathquill",function(n){var i,a=g(n.target).closest(".mq-root-block"),s=v.byId[a.attr(r)||t.attr(r)].controller,l=s.cursor,u=l.blink,c=s.textareaSpan,d=s.textarea;function h(e){i=g(e.target)}function p(t){l.anticursor||l.startSelection(),s.seek(i,t.pageX,t.pageY).cursor.select(),i=e}n.preventDefault(),n.target.unselectable=!0,l.options.ignoreNextMousedown(n)||(l.options.ignoreNextMousedown=o,s.blurred&&(s.editable||a.prepend(c),d.focus()),l.blink=o,s.seek(g(n.target),n.pageX,n.pageY).cursor.startSelection(),a.mousemove(h),g(n.target.ownerDocument).mousemove(p).mouseup(function e(t){l.blink=u,l.selection||(s.editable?l.show():c.detach()),a.unbind("mousemove",h),g(t.target.ownerDocument).unbind("mousemove",p).unbind("mouseup",e)}))})}}),T.open(function(e){e.seek=function(e,t,i){var a=this.notify("select").cursor;if(e){var o=e.attr(r)||e.attr(n);if(!o){var s=e.parent();o=s.attr(r)||s.attr(n)}}var l=o?v.byId[o]:this.root;return h("nodeId is the id of some Node that exists",l),a.clearSelection().show(),l.seek(t,a),this.scrollHoriz(),this}}),T.open(function(e){e.keystroke=function(e,t){this.cursor.parent.keystroke(e,t,this)}}),v.open(function(e){e.keystroke=function(e,t,n){var r=n.cursor;switch(e){case"Ctrl-Shift-Backspace":case"Ctrl-Backspace":n.ctrlDeleteDir(f);break;case"Shift-Backspace":case"Backspace":n.backspace();break;case"Esc":case"Tab":return void n.escapeDir(1,e,t);case"Shift-Tab":case"Shift-Esc":return void n.escapeDir(f,e,t);case"End":n.notify("move").cursor.insAtRightEnd(r.parent);break;case"Ctrl-End":n.notify("move").cursor.insAtRightEnd(n.root);break;case"Shift-End":for(;r[1];)n.selectRight();break;case"Ctrl-Shift-End":for(;r[1]||r.parent!==n.root;)n.selectRight();break;case"Home":n.notify("move").cursor.insAtLeftEnd(r.parent);break;case"Ctrl-Home":n.notify("move").cursor.insAtLeftEnd(n.root);break;case"Shift-Home":for(;r[f];)n.selectLeft();break;case"Ctrl-Shift-Home":for(;r[f]||r.parent!==n.root;)n.selectLeft();break;case"Left":n.moveLeft();break;case"Shift-Left":n.selectLeft();break;case"Ctrl-Left":break;case"Right":n.moveRight();break;case"Shift-Right":n.selectRight();break;case"Ctrl-Right":break;case"Up":n.moveUp();break;case"Down":n.moveDown();break;case"Shift-Up":if(r[f])for(;r[f];)n.selectLeft();else n.selectLeft();case"Shift-Down":if(r[1])for(;r[1];)n.selectRight();else n.selectRight();case"Ctrl-Up":case"Ctrl-Down":break;case"Ctrl-Shift-Del":case"Ctrl-Del":n.ctrlDeleteDir(1);break;case"Shift-Del":case"Del":n.deleteForward();break;case"Meta-A":case"Ctrl-A":for(n.notify("move").cursor.insAtRightEnd(n.root);r[f];)n.selectLeft();break;default:return}t.preventDefault(),n.scrollHoriz()},e.moveOutOf=e.moveTowards=e.deleteOutOf=e.deleteTowards=e.unselectInto=e.selectOutOf=e.selectTowards=function(){h("overridden or never called on this node")}}),T.open(function(e){function t(e,t){var n=e.notify("upDown").cursor,r=t+"Into",i=t+"OutOf";return n[1][r]?n.insAtLeftEnd(n[1][r]):n[f][r]?n.insAtRightEnd(n[f][r]):n.parent.bubble(function(e){var t=e[i];if(t&&("function"==typeof t&&(t=e[i](n)),t instanceof v&&n.jumpUpDown(e,t),!0!==t))return!1}),e}this.onNotify(function(e){"move"!==e&&"upDown"!==e||this.show().clearSelection()}),e.escapeDir=function(e,t,n){m(e);var r=this.cursor;if(r.parent!==this.root&&n.preventDefault(),r.parent!==this.root)return r.parent.moveOutOf(e,r),this.notify("move")},M.leftRightIntoCmdGoes=function(e){if(e&&"up"!==e&&"down"!==e)throw'"up" or "down" required for leftRightIntoCmdGoes option, got "'+e+'"';return e},e.moveDir=function(e){m(e);var t=this.cursor,n=t.options.leftRightIntoCmdGoes;return t.selection?t.insDirOf(e,t.selection.ends[e]):t[e]?t[e].moveTowards(e,t,n):t.parent.moveOutOf(e,t,n),this.notify("move")},e.moveLeft=function(){return this.moveDir(f)},e.moveRight=function(){return this.moveDir(1)},e.moveUp=function(){return t(this,"up")},e.moveDown=function(){return t(this,"down")},this.onNotify(function(e){"upDown"!==e&&(this.upDownCache={})}),this.onNotify(function(e){"edit"===e&&this.show().deleteSelection()}),e.deleteDir=function(e){m(e);var t=this.cursor,n=t.selection;return this.notify("edit"),n||(t[e]?t[e].deleteTowards(e,t):t.parent.deleteOutOf(e,t)),t[f].siblingDeleted&&t[f].siblingDeleted(t.options,1),t[1].siblingDeleted&&t[1].siblingDeleted(t.options,f),t.parent.bubble("reflow"),this},e.ctrlDeleteDir=function(e){m(e);var t=this.cursor;return!t[e]||t.selection?this.deleteDir(e):(this.notify("edit"),e===f?x(t.parent.ends[f],t[f]).remove():x(t[1],t.parent.ends[1]).remove(),t.insAtDirEnd(e,t.parent),t[f].siblingDeleted&&t[f].siblingDeleted(t.options,1),t[1].siblingDeleted&&t[1].siblingDeleted(t.options,f),t.parent.bubble("reflow"),this)},e.backspace=function(){return this.deleteDir(f)},e.deleteForward=function(){return this.deleteDir(1)},this.onNotify(function(e){"select"!==e&&this.endSelection()}),e.selectDir=function(e){var t=this.notify("select").cursor,n=t.selection;m(e),t.anticursor||t.startSelection();var r=t[e];r?n&&n.ends[e]===r&&t.anticursor[-e]!==r?r.unselectInto(e,t):r.selectTowards(e,t):t.parent.selectOutOf(e,t),t.clearSelection(),t.select()||t.show()},e.selectLeft=function(){return this.selectDir(f)},e.selectRight=function(){return this.selectDir(1)}}),T.open(function(n){q.p.substituteTextarea=function(){return g("<textarea autocapitalize=off autocomplete=off autocorrect=off spellcheck=false x-palm-disable-ste-all=true />")[0]},n.createTextarea=function(){var e=this.textareaSpan=g('<span class="mq-textarea"></span>'),t=this.options.substituteTextarea();if(!t.nodeType)throw"substituteTextarea() must return a DOM element, got "+t;t=this.textarea=g(t).appendTo(e);var n=this;n.cursor.selectionChanged=function(){n.selectionChanged()}},n.selectionChanged=function(){var t=this;ne(t.container[0]),t.textareaSelectionTimeout===e&&(t.textareaSelectionTimeout=setTimeout(function(){t.setTextareaSelection()}))},n.setTextareaSelection=function(){this.textareaSelectionTimeout=e;var t="";this.cursor.selection&&(t=this.cursor.selection.join("latex"),this.options.statelessClipboard&&(t="$"+t+"$")),this.selectFn(t)},n.staticMathTextareaEvents=function(){var e=this,n=(e.root,e.cursor),r=e.textarea,i=e.textareaSpan;function a(){i.detach(),e.blurred=!0}this.container.prepend(t('<span class="mq-selectable">').text("$"+e.exportLatex()+"$")),e.blurred=!0,r.bind("cut paste",!1).bind("copy",function(){e.setTextareaSelection()}).focus(function(){e.blurred=!1}).blur(function(){n.selection&&n.selection.clear(),setTimeout(a)}),e.selectFn=function(e){r.val(e),e&&r.select()}},q.p.substituteKeyboardEvents=P,n.editablesTextareaEvents=function(){var e=this.textarea,t=this.textareaSpan,n=this.options.substituteKeyboardEvents(e,this);this.selectFn=function(e){n.select(e)},this.container.prepend(t),this.focusBlurEvents()},n.typedText=function(e){if("\n"===e)return this.handle("enter");var t=this.notify().cursor;t.parent.write(t,e),this.scrollHoriz()},n.cut=function(){var e=this,t=e.cursor;t.selection&&setTimeout(function(){e.notify("edit"),t.parent.bubble("reflow")})},n.copy=function(){this.setTextareaSelection()},n.paste=function(e){this.options.statelessClipboard&&(e="$"===e.slice(0,1)&&"$"===e.slice(-1)?e.slice(1,-1):"\\text{"+e+"}"),this.writeLatex(e).cursor.show()}});var H=function(){function e(e){for(var t=e[0]||$(),n=1;n<e.length;n+=1)e[n].children().adopt(t,t.ends[1],0);return t}var t=j.string,n=j.regex,r=j.letter,i=j.any,a=j.optWhitespace,o=j.succeed,s=j.fail,l=r.map(function(e){return ke(e)}),u=n(/^[^${}\\_^]/).map(function(e){return W(e)}),c=n(/^[^\\a-eg-zA-Z]/).or(t("\\").then(n(/^[a-z]+/i).or(n(/^\s+/).result(" ")).or(i))).then(function(e){var t=w[e];return t?t(e).parser():s("unknown command: \\"+e)}).or(l).or(u),d=t("{").then(function(){return p}).skip(t("}")),h=a.then(d.or(c.map(function(e){var t=$();return e.adopt(t,0,0),t}))),p=h.many().map(e).skip(a),f=t("[").then(h.then(function(e){return"]"!==e.join("latex")?o(e):s()}).many().map(e).skip(a)).skip(t("]")),m=p;return m.block=h,m.optBlock=f,m}();T.open(function(t,n){t.exportLatex=function(){return this.root.latex().replace(/(\\[a-z]+) (?![a-z])/gi,"$1")},M.maxDepth=function(t){return"number"==typeof t?t:e},t.writeLatex=function(e){var t=this.notify("edit").cursor,n=j.all,r=j.eof,i=H.skip(r).or(n.result(!1)).parse(e);return i&&!i.isEmpty()&&i.prepareInsertionAt(t)&&(i.children().adopt(t.parent,t[f],t[1]),i.jQize().insertBefore(t.jQ),t[f]=i.ends[1],i.finalizeInsert(t.options,t),i.ends[1][1].siblingCreated&&i.ends[1][1].siblingCreated(t.options,f),i.ends[f][f].siblingCreated&&i.ends[f][f].siblingCreated(t.options,1),t.parent.bubble("reflow")),this},t.renderLatexMath=function(e){var t=this.root,n=this.cursor,r=(n.options,t.jQ),i=j.all,a=j.eof,o=H.skip(a).or(i.result(!1)).parse(e);if(t.eachChild("postOrder","dispose"),t.ends[f]=t.ends[1]=0,o&&o.prepareInsertionAt(n)){o.children().adopt(t,0,0);var s=o.join("html");r.html(s),t.jQize(r.children()),t.finalizeInsert(n.options)}else r.empty();delete n.selection,n.insAtRightEnd(t)},t.renderLatexText=function(e){var t=this.root,n=this.cursor;t.jQ.children().slice(1).remove(),t.eachChild("postOrder","dispose"),t.ends[f]=t.ends[1]=0,delete n.selection,n.show().insAtRightEnd(t);var r=j.regex,i=j.string,a=j.eof,o=j.all,s=i("$").then(H).skip(i("$").or(a)).map(function(e){var t=Z(n);t.createBlocks();var r=t.ends[f];return e.children().adopt(r,0,0),t}),l=i("\\$").result("$").or(r(/^[^$]/)).map(W),u=s.or(l).many().skip(a).or(o.result(!1)).parse(e);if(u){for(var c=0;c<u.length;c+=1)u[c].adopt(t,t.ends[1],0);t.jQize().appendTo(t.jQ),t.finalizeInsert(n.options)}}}),T.open(function(e){e.scrollHoriz=function(){var e=this.cursor,t=e.selection,n=this.root.jQ[0].getBoundingClientRect();if(t){var r=t.jQ[0].getBoundingClientRect(),i=r.left-(n.left+20),a=r.right-(n.right-20);if(t.ends[f]===e[1])if(i<0)s=i;else{if(!(a>0))return;s=r.left-a<n.left+20?i:a}else if(a>0)s=a;else{if(!(i<0))return;s=r.right-i>n.right-20?a:i}}else{var o=e.jQ[0].getBoundingClientRect().left;if(o>n.right-20)var s=o-(n.right-20);else{if(!(o<n.left+20))return;s=o-(n.left+20)}}this.root.jQ.stop().animate({scrollLeft:"+="+s},100)}});var F=p(v,function(t,n){t.finalizeInsert=function(e,t){var n=this;n.postOrder("finalizeTree",e),n.postOrder("contactWeld",t),n.postOrder("blur"),n.postOrder("reflow"),n[1].siblingCreated&&n[1].siblingCreated(e,f),n[f].siblingCreated&&n[f].siblingCreated(e,1),n.bubble("reflow")},t.prepareInsertionAt=function(t){var n=t.options.maxDepth;if(n!==e){var r=t.depth();if(r>n)return!1;this.removeNodesDeeperThan(n-r)}return!0},t.removeNodesDeeperThan=function(e){for(var t,n=0,r=[[this,n]];r.length;)(t=r.shift())[0].children().each(function(i){var a=i instanceof $?1:0;(n=t[1]+a)<=e?r.push([i,n]):(a?i.children():i).remove()})}}),U=p(F,function(e,t){e.init=function(e,n,r){var i=this;t.init.call(i),i.ctrlSeq||(i.ctrlSeq=e),n&&(i.htmlTemplate=n),r&&(i.textTemplate=r)},e.replaces=function(e){e.disown(),this.replacedFragment=e},e.isEmpty=function(){return this.foldChildren(!0,function(e,t){return e&&t.isEmpty()})},e.parser=function(){var e=H.block,t=this;return e.times(t.numBlocks()).map(function(e){t.blocks=e;for(var n=0;n<e.length;n+=1)e[n].adopt(t,t.ends[1],0);return t})},e.createLeftOf=function(e){var n=this,r=n.replacedFragment;n.createBlocks(),t.createLeftOf.call(n,e),r&&(r.adopt(n.ends[f],0,0),r.jQ.appendTo(n.ends[f].jQ),n.placeCursor(e),n.prepareInsertionAt(e)),n.finalizeInsert(e.options),n.placeCursor(e)},e.createBlocks=function(){for(var e=this,t=e.numBlocks(),n=e.blocks=Array(t),r=0;r<t;r+=1)(n[r]=$()).adopt(e,e.ends[1],0)},e.placeCursor=function(e){e.insAtRightEnd(this.foldChildren(this.ends[f],function(e,t){return e.isEmpty()?e:t}))},e.moveTowards=function(e,t,n){var r=n&&this[n+"Into"];t.insAtDirEnd(-e,r||this.ends[-e])},e.deleteTowards=function(e,t){this.isEmpty()?t[e]=this.remove()[e]:this.moveTowards(e,t,null)},e.selectTowards=function(e,t){t[-e]=this,t[e]=this[e]},e.selectChildren=function(){return C(this,this)},e.unselectInto=function(e,t){t.insAtDirEnd(-e,t.anticursor.ancestors[this.id])},e.seek=function(e,t){function n(e){var t={};return t[f]=e.jQ.offset().left,t[1]=t[f]+e.jQ.outerWidth(),t}var r=this,i=n(r);if(e<i[f])return t.insLeftOf(r);if(e>i[1])return t.insRightOf(r);var a=i[f];r.eachChild(function(o){var s=n(o);return e<s[f]?(e-a<s[f]-e?o[f]?t.insAtRightEnd(o[f]):t.insLeftOf(r):t.insAtLeftEnd(o),!1):e>s[1]?void(o[1]?a=s[1]:i[1]-e<e-s[1]?t.insRightOf(r):t.insAtRightEnd(o)):(o.seek(e,t),!1)})},e.numBlocks=function(){var e=this.htmlTemplate.match(/&\d+/g);return e?e.length:0},e.html=function(){var e=this,t=e.blocks,n=" mathquill-command-id="+e.id,r=e.htmlTemplate.match(/<[^<>]+>|[^<>]+/g);h("no unmatched angle brackets",r.join("")===this.htmlTemplate);for(var i=0,a=r[0];a;a=r[i+=1])if("/>"===a.slice(-2))r[i]=a.slice(0,-2)+n+"/>";else if("<"===a.charAt(0)){h("not an unmatched top-level close tag","/"!==a.charAt(1)),r[i]=a.slice(0,-1)+n+">";var o=1;do{h("no missing close tags",a=r[i+=1]),"</"===a.slice(0,2)?o-=1:"<"===a.charAt(0)&&"/>"!==a.slice(-2)&&(o+=1)}while(o>0)}return r.join("").replace(/>&(\d+)/g,function(e,n){return" mathquill-block-id="+t[n].id+">"+t[n].join("html")})},e.latex=function(){return this.foldChildren(this.ctrlSeq,function(e,t){return e+"{"+(t.latex()||" ")+"}"})},e.textTemplate=[""],e.text=function(){var e=this,t=0;return e.foldChildren(e.textTemplate[t],function(n,r){t+=1;var i=r.text();return n&&"("===e.textTemplate[t]&&"("===i[0]&&")"===i.slice(-1)?n+i.slice(1,-1)+e.textTemplate[t]:n+i+(e.textTemplate[t]||"")})}}),Q=p(U,function(e,t){e.init=function(e,n,r){r||(r=e&&e.length>1?e.slice(1):e),t.init.call(this,e,n,[r])},e.parser=function(){return j.succeed(this)},e.numBlocks=function(){return 0},e.replaces=function(e){e.remove()},e.createBlocks=o,e.moveTowards=function(e,t){t.jQ.insDirOf(e,this.jQ),t[-e]=this,t[e]=this[e]},e.deleteTowards=function(e,t){t[e]=this.remove()[e]},e.seek=function(e,t){e-this.jQ.offset().left<this.jQ.outerWidth()/2?t.insLeftOf(this):t.insRightOf(this)},e.latex=function(){return this.ctrlSeq},e.text=function(){return this.textTemplate},e.placeCursor=o,e.isEmpty=function(){return!0}}),W=p(Q,function(e,t){e.init=function(e,n){t.init.call(this,e,"<span>"+(n||e)+"</span>")}}),V=p(Q,function(e,t){e.init=function(e,n,r){t.init.call(this,e,'<span class="mq-binary-operator">'+n+"</span>",r)}}),$=p(F,function(e,t){e.join=function(e){return this.foldChildren("",function(t,n){return t+n[e]()})},e.html=function(){return this.join("html")},e.latex=function(){return this.join("latex")},e.text=function(){return this.ends[f]===this.ends[1]&&0!==this.ends[f]?this.ends[f].text():this.join("text")},e.keystroke=function(e,n,r){return!r.options.spaceBehavesLikeTab||"Spacebar"!==e&&"Shift-Spacebar"!==e?t.keystroke.apply(this,arguments):(n.preventDefault(),void r.escapeDir("Shift-Spacebar"===e?f:1,e,n))},e.moveOutOf=function(e,t,n){n&&this.parent[n+"Into"]||!this[e]?t.insDirOf(e,this.parent):t.insAtDirEnd(-e,this[e])},e.selectOutOf=function(e,t){t.insDirOf(e,this.parent)},e.deleteOutOf=function(e,t){t.unwrapGramp()},e.seek=function(e,t){var n=this.ends[1];if(!n||n.jQ.offset().left+n.jQ.outerWidth()<e)return t.insAtRightEnd(this);if(e<this.ends[f].jQ.offset().left)return t.insAtLeftEnd(this);for(;e<n.jQ.offset().left;)n=n[f];return n.seek(e,t)},e.chToCmd=function(e,t){var n;return e.match(/^[a-eg-zA-Z]$/)?ke(e):/^\d$/.test(e)?xe(e):t&&t.typingSlashWritesDivisionSymbol&&"/"===e?w["÷"](e):t&&t.typingAsteriskWritesTimesSymbol&&"*"===e?w["×"](e):(n=k[e]||w[e])?n(e):W(e)},e.write=function(e,t){var n=this.chToCmd(t,e.options);e.selection&&n.replaces(e.replaceSelection()),e.isTooDeep()||n.createLeftOf(e.show())},e.focus=function(){return this.jQ.addClass("mq-hasCursor"),this.jQ.removeClass("mq-empty"),this},e.blur=function(){return this.jQ.removeClass("mq-hasCursor"),this.isEmpty()&&this.jQ.addClass("mq-empty"),this}});q.p.mouseEvents=!0,E.StaticMath=function(e){return p(e.AbstractMathQuill,function(t,n){this.RootBlock=$,t.__mathquillify=function(e,t){return this.config(e),n.__mathquillify.call(this,"mq-math-mode"),this.__options.mouseEvents&&(this.__controller.delegateMouseEvents(),this.__controller.staticMathTextareaEvents()),this},t.init=function(){n.init.apply(this,arguments),this.__controller.root.postOrder("registerInnerField",this.innerFields=[],e.MathField)},t.latex=function(){var t=n.latex.apply(this,arguments);return arguments.length>0&&this.__controller.root.postOrder("registerInnerField",this.innerFields=[],e.MathField),t}})};var G=p($,R);E.MathField=function(e){return p(e.EditableField,function(e,t){this.RootBlock=G,e.__mathquillify=function(e,n){return this.config(e),n>1&&(this.__controller.root.reflow=o),t.__mathquillify.call(this,"mq-editable-field mq-math-mode"),delete this.__controller.root.reflow,this}})};var K=p(v,function(e,t){function n(e){e.jQ[0].normalize();var t=e.jQ[0].firstChild;if(t){h("only node in TextBlock span is Text node",3===t.nodeType);var n=X(t.data);return n.jQadd(t),e.children().disown(),n.adopt(e,0,0)}}e.ctrlSeq="\\text",e.replaces=function(e){e instanceof x?this.replacedText=e.remove().jQ.text():"string"==typeof e&&(this.replacedText=e)},e.jQadd=function(e){t.jQadd.call(this,e),this.ends[f]&&this.ends[f].jQadd(this.jQ[0].firstChild)},e.createLeftOf=function(e){var n=this;if(t.createLeftOf.call(this,e),n[1].siblingCreated&&n[1].siblingCreated(e.options,f),n[f].siblingCreated&&n[f].siblingCreated(e.options,1),n.bubble("reflow"),e.insAtRightEnd(n),n.replacedText)for(var r=0;r<n.replacedText.length;r+=1)n.write(e,n.replacedText.charAt(r))},e.parser=function(){var e=this,t=j.string,n=j.regex;return j.optWhitespace.then(t("{")).then(n(/^[^}]*/)).skip(t("}")).map(function(t){return 0===t.length?x():(X(t).adopt(e,0,0),e)})},e.textContents=function(){return this.foldChildren("",function(e,t){return e+t.text})},e.text=function(){return'"'+this.textContents()+'"'},e.latex=function(){var e=this.textContents();return 0===e.length?"":"\\text{"+e.replace(/\\/g,"\\backslash ").replace(/[{}]/g,"\\$&")+"}"},e.html=function(){return'<span class="mq-text-mode" mathquill-command-id='+this.id+">"+this.textContents()+"</span>"},e.moveTowards=function(e,t){t.insAtDirEnd(-e,this)},e.moveOutOf=function(e,t){t.insDirOf(e,this)},e.unselectInto=e.moveTowards,e.selectTowards=U.prototype.selectTowards,e.deleteTowards=U.prototype.deleteTowards,e.selectOutOf=function(e,t){t.insDirOf(e,this)},e.deleteOutOf=function(e,t){this.isEmpty()&&t.insRightOf(this)},e.write=function(e,n){if(e.show().deleteSelection(),"$"!==n)e[f]?e[f].appendText(n):X(n).createLeftOf(e);else if(this.isEmpty())e.insRightOf(this),W("\\$","$").createLeftOf(e);else if(e[1])if(e[f]){var r=K(),i=this.ends[f];i.disown().jQ.detach(),i.adopt(r,0,0),e.insLeftOf(this),t.createLeftOf.call(r,e)}else e.insLeftOf(this);else e.insRightOf(this)},e.seek=function(e,t){t.hide();var r=n(this),i=this.jQ.width()/this.text.length,a=Math.round((e-this.jQ.offset().left)/i);a<=0?t.insAtLeftEnd(this):a>=r.text.length?t.insAtRightEnd(this):t.insLeftOf(r.splitRight(a));for(var o=e-t.show().offset().left,s=o&&o<0?f:1,l=s;t[s]&&o*l>0;)t[s].moveTowards(s,t),l=o,o=e-t.offset().left;if(s*o<-s*l&&t[-s].moveTowards(-s,t),t.anticursor){if(t.anticursor.parent===this){var u=t[f]&&t[f].text.length;if(this.anticursorPosition===u)t.anticursor=b.copy(t);else{if(this.anticursorPosition<u){var c=t[f].splitRight(this.anticursorPosition);t[f]=c}else c=t[1].splitRight(this.anticursorPosition-u);t.anticursor=b(this,c[f],c)}}}else this.anticursorPosition=t[f]&&t[f].text.length},e.blur=function(e){$.prototype.blur.call(this),e&&(""===this.textContents()?(this.remove(),e[f]===this?e[f]=this[f]:e[1]===this&&(e[1]=this[1])):n(this))},e.focus=$.prototype.focus}),X=p(v,function(e,t){function n(e,t){return t.charAt(e===f?0:-1+t.length)}e.init=function(e){t.init.call(this),this.text=e},e.jQadd=function(e){this.dom=e,this.jQ=g(e)},e.jQize=function(){return this.jQadd(document.createTextNode(this.text))},e.appendText=function(e){this.text+=e,this.dom.appendData(e)},e.prependText=function(e){this.text=e+this.text,this.dom.insertData(0,e)},e.insTextAtDirEnd=function(e,t){m(t),1===t?this.appendText(e):this.prependText(e)},e.splitRight=function(e){var t=X(this.text.slice(e)).adopt(this.parent,this,this[1]);return t.jQadd(this.dom.splitText(e)),this.text=this.text.slice(0,e),t},e.moveTowards=function(e,t){m(e);var r=n(-e,this.text),i=this[-e];return i?i.insTextAtDirEnd(r,e):X(r).createDir(-e,t),this.deleteTowards(e,t)},e.latex=function(){return this.text},e.deleteTowards=function(e,t){this.text.length>1?1===e?(this.dom.deleteData(0,1),this.text=this.text.slice(1)):(this.dom.deleteData(-1+this.text.length,1),this.text=this.text.slice(0,-1)):(this.remove(),this.jQ.remove(),t[e]=this[e])},e.selectTowards=function(e,t){m(e);var r=t.anticursor,i=n(-e,this.text);if(r[e]===this){var a=X(i).createDir(e,t);r[e]=a,t.insDirOf(e,a)}else{var o=this[-e];o?o.insTextAtDirEnd(i,e):(a=X(i).createDir(-e,t)).jQ.insDirOf(-e,t.selection.jQ),1===this.text.length&&r[-e]===this&&(r[-e]=this[-e])}return this.deleteTowards(e,t)}});function Y(e,t,n){return p(K,{ctrlSeq:e,htmlTemplate:"<"+t+" "+n+">&0</"+t+">"})}w.text=w.textnormal=w.textrm=w.textup=w.textmd=K,w.em=w.italic=w.italics=w.emph=w.textit=w.textsl=Y("\\textit","i",'class="mq-text-mode"'),w.strong=w.bold=w.textbf=Y("\\textbf","b",'class="mq-text-mode"'),w.sf=w.textsf=Y("\\textsf","span",'class="mq-sans-serif mq-text-mode"'),w.tt=w.texttt=Y("\\texttt","span",'class="mq-monospace mq-text-mode"'),w.textsc=Y("\\textsc","span",'style="font-variant:small-caps" class="mq-text-mode"'),w.uppercase=Y("\\uppercase","span",'style="text-transform:uppercase" class="mq-text-mode"'),w.lowercase=Y("\\lowercase","span",'style="text-transform:lowercase" class="mq-text-mode"');var Z=p(U,function(e,t){e.init=function(e){t.init.call(this,"$"),this.cursor=e},e.htmlTemplate='<span class="mq-math-mode">&0</span>',e.createBlocks=function(){t.createBlocks.call(this),this.ends[f].cursor=this.cursor,this.ends[f].write=function(e,t){"$"!==t?$.prototype.write.call(this,e,t):this.isEmpty()?(e.insRightOf(this.parent),this.parent.deleteTowards(dir,e),W("\\$","$").createLeftOf(e.show())):e[1]?e[f]?$.prototype.write.call(this,e,t):e.insLeftOf(this.parent):e.insRightOf(this.parent)}},e.latex=function(){return"$"+this.ends[f].latex()+"$"}}),J=p(G,function(e,t){e.keystroke=function(e){if("Spacebar"!==e&&"Shift-Spacebar"!==e)return t.keystroke.apply(this,arguments)},e.write=function(e,t){var n;e.show().deleteSelection(),"$"===t?Z(e).createLeftOf(e):("<"===t?n="&lt;":">"===t&&(n="&gt;"),W(t,n).createLeftOf(e))}});E.TextField=function(e){return p(e.EditableField,function(e,t){this.RootBlock=J,e.__mathquillify=function(){return t.__mathquillify.call(this,"mq-editable-field mq-text-mode")},e.latex=function(e){return arguments.length>0?(this.__controller.renderLatexText(e),this.__controller.blurred&&this.__controller.cursor.hide().parent.blur(),this):this.__controller.exportLatex()}})},k["\\"]=p(U,function(e,t){e.ctrlSeq="\\",e.replaces=function(e){this._replacedFragment=e.disown(),this.isEmpty=function(){return!1}},e.htmlTemplate='<span class="mq-latex-command-input mq-non-leaf">\\<span>&0</span></span>',e.textTemplate=["\\"],e.createBlocks=function(){t.createBlocks.call(this),this.ends[f].focus=function(){return this.parent.jQ.addClass("mq-hasCursor"),this.isEmpty()&&this.parent.jQ.removeClass("mq-empty"),this},this.ends[f].blur=function(){return this.parent.jQ.removeClass("mq-hasCursor"),this.isEmpty()&&this.parent.jQ.addClass("mq-empty"),this},this.ends[f].write=function(e,t){e.show().deleteSelection(),t.match(/[a-z]/i)?W(t).createLeftOf(e):(this.parent.renderCommand(e),"\\"===t&&this.isEmpty()||e.parent.write(e,t))},this.ends[f].keystroke=function(e,n,r){return"Tab"===e||"Enter"===e||"Spacebar"===e?(this.parent.renderCommand(r.cursor),void n.preventDefault()):t.keystroke.apply(this,arguments)}},e.createLeftOf=function(e){if(t.createLeftOf.call(this,e),this._replacedFragment){var n=this.jQ[0];this.jQ=this._replacedFragment.jQ.addClass("mq-blur").bind("mousedown mousemove",function(e){return g(e.target=n).trigger(e),!1}).insertBefore(this.jQ).add(this.jQ)}},e.latex=function(){return"\\"+this.ends[f].latex()+" "},e.renderCommand=function(e){this.jQ=this.jQ.last(),this.remove(),this[1]?e.insLeftOf(this[1]):e.insAtRightEnd(this.parent);var t=this.ends[f].latex();t||(t=" ");var n=w[t];n?(n=n(t),this._replacedFragment&&n.replaces(this._replacedFragment),n.createLeftOf(e)):((n=K()).replaces(t),n.createLeftOf(e),e.insRightOf(n),this._replacedFragment&&this._replacedFragment.remove())}});var ee,te,ne=o,re=document.createElement("div").style;for(var ie in{transform:1,WebkitTransform:1,MozTransform:1,OTransform:1,msTransform:1})if(ie in re){te=ie;break}te?ee=function(e,t,n){e.css(te,"scale("+t+","+n+")")}:"filter"in re?(ne=function(e){e.className=e.className},ee=function(e,t,n){t/=1+(n-1)/2,e.css("fontSize",n+"em"),e.hasClass("mq-matrixed-container")||e.addClass("mq-matrixed-container").wrapInner('<span class="mq-matrixed"></span>');var r=e.children().css("filter","progid:DXImageTransform.Microsoft.Matrix(M11="+t+",SizingMethod='auto expand')");function i(){e.css("marginRight",(r.width()-1)*(t-1)/t+"px")}i();var a=setInterval(i);g(window).load(function(){clearTimeout(a),i()})}):ee=function(e,t,n){e.css("fontSize",n+"em")};var ae=p(U,function(e,t){e.init=function(e,n,r){t.init.call(this,e,"<"+n+" "+r+">&0</"+n+">")}});w.mathrm=d(ae,"\\mathrm","span",'class="mq-roman mq-font"'),w.mathit=d(ae,"\\mathit","i",'class="mq-font"'),w.mathbf=d(ae,"\\mathbf","b",'class="mq-font"'),w.mathsf=d(ae,"\\mathsf","span",'class="mq-sans-serif mq-font"'),w.mathtt=d(ae,"\\mathtt","span",'class="mq-monospace mq-font"'),w.underline=d(ae,"\\underline","span",'class="mq-non-leaf mq-underline"'),w.overline=w.bar=d(ae,"\\overline","span",'class="mq-non-leaf mq-overline"'),w.overrightarrow=d(ae,"\\overrightarrow","span",'class="mq-non-leaf mq-overarrow mq-arrow-right"'),w.overleftarrow=d(ae,"\\overleftarrow","span",'class="mq-non-leaf mq-overarrow mq-arrow-left"'),w.overleftrightarrow=d(ae,"\\overleftrightarrow","span",'class="mq-non-leaf mq-overarrow mq-arrow-both"'),w.overarc=d(ae,"\\overarc","span",'class="mq-non-leaf mq-overarc"'),w.dot=p(U,function(e,t){e.init=function(){t.init.call(this,"\\dot",'<span class="mq-non-leaf"><span class="mq-dot-recurring-inner"><span class="mq-dot-recurring">&#x2d9;</span><span class="mq-empty-box">&0</span></span></span>')}}),w.textcolor=p(U,function(e,t){e.setColor=function(e){this.color=e,this.htmlTemplate='<span class="mq-textcolor" style="color:'+e+'">&0</span>'},e.latex=function(){return"\\textcolor{"+this.color+"}{"+this.blocks[0].latex()+"}"},e.parser=function(){var e=this,n=j.optWhitespace,r=j.string,i=j.regex;return n.then(r("{")).then(i(/^[#\w\s.,()%-]*/)).skip(r("}")).then(function(n){return e.setColor(n),t.parser.call(e)})},e.isStyleBlock=function(){return!0}}),w.class=p(U,function(e,t){e.parser=function(){var e=this,n=j.string,r=j.regex;return j.optWhitespace.then(n("{")).then(r(/^[-\w\s\\\xA0-\xFF]*/)).skip(n("}")).then(function(n){return e.cls=n||"",e.htmlTemplate='<span class="mq-class '+n+'">&0</span>',t.parser.call(e)})},e.latex=function(){return"\\class{"+this.cls+"}{"+this.blocks[0].latex()+"}"},e.isStyleBlock=function(){return!0}});var oe=p(U,function(e,t){e.ctrlSeq="_{...}^{...}",e.createLeftOf=function(e){if(this.replacedFragment||e[f]||!e.options.supSubsRequireOperand)return t.createLeftOf.apply(this,arguments)},e.contactWeld=function(e){for(var t=f;t;t=t===f&&1)if(this[t]instanceof oe){for(var n="sub";n;n="sub"===n&&"sup"){var r=this[n],i=this[t][n];if(r){if(i)if(r.isEmpty())o=b(i,0,i.ends[f]);else{r.jQ.children().insAtDirEnd(-t,i.jQ);var a=r.children().disown(),o=b(i,a.ends[1],i.ends[f]);t===f?a.adopt(i,i.ends[1],0):a.adopt(i,0,i.ends[f])}else this[t].addBlock(r.disown());this.placeCursor=function(e,n){return function(r){r.insAtDirEnd(-t,e||n)}}(i,r)}}this.remove(),e&&e[f]===this&&(1===t&&o?o[f]?e.insRightOf(o[f]):e.insAtLeftEnd(o.parent):e.insRightOf(this[t]));break}},q.p.charsThatBreakOutOfSupSub="",e.finalizeTree=function(){this.ends[f].write=function(e,t){if(e.options.autoSubscriptNumerals&&this===this.parent.sub){if("_"===t)return;var n=this.chToCmd(t,e.options);return n instanceof Q?e.deleteSelection():e.clearSelection().insRightOf(this.parent),n.createLeftOf(e.show())}e[f]&&!e[1]&&!e.selection&&e.options.charsThatBreakOutOfSupSub.indexOf(t)>-1&&e.insRightOf(this.parent),$.p.write.apply(this,arguments)}},e.moveTowards=function(e,n,r){n.options.autoSubscriptNumerals&&!this.sup?n.insDirOf(e,this):t.moveTowards.apply(this,arguments)},e.deleteTowards=function(e,n){if(n.options.autoSubscriptNumerals&&this.sub){var r=this.sub.ends[-e];r instanceof Q?r.remove():r&&r.deleteTowards(e,n.insAtDirEnd(-e,this.sub)),this.sub.isEmpty()&&(this.sub.deleteOutOf(f,n.insAtLeftEnd(this.sub)),this.sup&&n.insDirOf(-e,this))}else t.deleteTowards.apply(this,arguments)},e.latex=function(){function e(e,t){var n=t&&t.latex();return t?e+(1===n.length?n:"{"+(n||" ")+"}"):""}return e("_",this.sub)+e("^",this.sup)},e.addBlock=function(e){"sub"===this.supsub?(this.sup=this.upInto=this.sub.upOutOf=e,e.adopt(this,this.sub,0).downOutOf=this.sub,e.jQ=g('<span class="mq-sup"/>').append(e.jQ.children()).attr(r,e.id).prependTo(this.jQ)):(this.sub=this.downInto=this.sup.downOutOf=e,e.adopt(this,0,this.sup).upOutOf=this.sup,e.jQ=g('<span class="mq-sub"></span>').append(e.jQ.children()).attr(r,e.id).appendTo(this.jQ.removeClass("mq-sup-only")),this.jQ.append('<span style="display:inline-block;width:0">&#8203;</span>'));for(var t=0;t<2;t+=1)!function(e,t,n,r){e[t].deleteOutOf=function(i,a){if(a.insDirOf(this[i]?-i:i,this.parent),!this.isEmpty()){var o=this.ends[i];this.children().disown().withDirAdopt(i,a.parent,a[i],a[-i]).jQ.insDirOf(-i,a.jQ),a[-i]=o}e.supsub=n,delete e[t],delete e[r+"Into"],e[n][r+"OutOf"]=se,delete e[n].deleteOutOf,"sub"===t&&g(e.jQ.addClass("mq-sup-only")[0].lastChild).remove(),this.remove()}}(this,"sub sup".split(" ")[t],"sup sub".split(" ")[t],"down up".split(" ")[t])},e.reflow=function(){var e=this.jQ,t=e.prev();if(t.length){var n=e.children(".mq-sup");if(n.length){var r=parseInt(n.css("font-size")),i=n.offset().top+n.height()-t.offset().top-.7*r,a=parseInt(n.css("margin-bottom"));n.css("margin-bottom",a+i)}}}});function se(e){var t=this.parent,n=e;do{if(n[1])return e.insLeftOf(t);n=n.parent.parent}while(n!==t);e.insRightOf(t)}w.subscript=w._=p(oe,function(e,t){e.supsub="sub",e.htmlTemplate='<span class="mq-supsub mq-non-leaf"><span class="mq-sub">&0</span><span style="display:inline-block;width:0">&#8203;</span></span>',e.textTemplate=["_"],e.finalizeTree=function(){this.downInto=this.sub=this.ends[f],this.sub.upOutOf=se,t.finalizeTree.call(this)}}),w.superscript=w.supscript=w["^"]=p(oe,function(e,t){e.supsub="sup",e.htmlTemplate='<span class="mq-supsub mq-non-leaf mq-sup-only"><span class="mq-sup">&0</span></span>',e.textTemplate=["^"],e.finalizeTree=function(){this.upInto=this.sup=this.ends[1],this.sup.downOutOf=se,t.finalizeTree.call(this)}});var le=p(U,function(e,t){e.init=function(e,t){var n='<span class="mq-large-operator mq-non-leaf"><span class="mq-to"><span>&1</span></span><big>'+t+'</big><span class="mq-from"><span>&0</span></span></span>';Q.prototype.init.call(this,e,n)},e.createLeftOf=function(e){t.createLeftOf.apply(this,arguments),e.options.sumStartsWithNEquals&&(ke("n").createLeftOf(e),Le().createLeftOf(e))},e.latex=function(){function e(e){return 1===e.length?e:"{"+(e||" ")+"}"}return this.ctrlSeq+"_"+e(this.ends[f].latex())+"^"+e(this.ends[1].latex())},e.parser=function(){for(var e=j.string,t=j.optWhitespace,n=j.succeed,r=H.block,i=this,a=i.blocks=[$(),$()],o=0;o<a.length;o+=1)a[o].adopt(i,i.ends[1],0);return t.then(e("_").or(e("^"))).then(function(e){var t=a["_"===e?0:1];return r.then(function(e){return e.children().adopt(t,t.ends[1],0),n(i)})}).many().result(i)},e.finalizeTree=function(){this.downInto=this.ends[f],this.upInto=this.ends[1],this.ends[f].upOutOf=this.ends[1],this.ends[1].downOutOf=this.ends[f]}});w["∑"]=w.sum=w.summation=d(le,"\\sum ","&sum;"),w["∏"]=w.prod=w.product=d(le,"\\prod ","&prod;"),w.coprod=w.coproduct=d(le,"\\coprod ","&#8720;"),w["∫"]=w.int=w.integral=p(le,function(e,t){e.init=function(){Q.prototype.init.call(this,"\\int ",'<span class="mq-int mq-non-leaf"><big>&int;</big><span class="mq-supsub mq-non-leaf"><span class="mq-sup"><span class="mq-sup-inner">&1</span></span><span class="mq-sub">&0</span><span style="display:inline-block;width:0">&#8203</span></span></span>')},e.createLeftOf=U.p.createLeftOf});var ue=w.frac=w.dfrac=w.cfrac=w.fraction=p(U,function(e,t){e.ctrlSeq="\\frac",e.htmlTemplate='<span class="mq-fraction mq-non-leaf"><span class="mq-numerator">&0</span><span class="mq-denominator">&1</span><span style="display:inline-block;width:0">&#8203;</span></span>',e.textTemplate=["(",")/(",")"],e.finalizeTree=function(){this.upInto=this.ends[1].upOutOf=this.ends[f],this.downInto=this.ends[f].downOutOf=this.ends[1]}}),ce=w.over=k["/"]=p(ue,function(e,t){e.createLeftOf=function(e){if(!this.replacedFragment){for(var n=e[f];n&&!(n instanceof V||n instanceof(w.text||o)||n instanceof le||"\\ "===n.ctrlSeq||/^[,;:]$/.test(n.ctrlSeq));)n=n[f];n instanceof le&&n[1]instanceof oe&&(n=n[1])[1]instanceof oe&&n[1].ctrlSeq!=n.ctrlSeq&&(n=n[1]),n===e[f]||e.isTooDeep(1)||(this.replaces(x(n[1]||e.parent.ends[f],e[f])),e[f]=n)}t.createLeftOf.call(this,e)}}),de=w.sqrt=w["√"]=p(U,function(e,t){e.ctrlSeq="\\sqrt",e.htmlTemplate='<span class="mq-non-leaf"><span class="mq-scaled mq-sqrt-prefix">&radic;</span><span class="mq-non-leaf mq-sqrt-stem">&0</span></span>',e.textTemplate=["sqrt(",")"],e.parser=function(){return H.optBlock.then(function(e){return H.block.map(function(t){var n=he();return n.blocks=[e,t],e.adopt(n,0,0),t.adopt(n,e,0),n})}).or(t.parser.call(this))},e.reflow=function(){var e=this.ends[1].jQ;ee(e.prev(),1,e.innerHeight()/+e.css("fontSize").slice(0,-2)-.1)}}),he=(w.hat=p(U,function(e,t){e.ctrlSeq="\\hat",e.htmlTemplate='<span class="mq-non-leaf"><span class="mq-hat-prefix">^</span><span class="mq-hat-stem">&0</span></span>',e.textTemplate=["hat(",")"]}),w.nthroot=p(de,function(e,t){e.htmlTemplate='<sup class="mq-nthroot mq-non-leaf">&0</sup><span class="mq-scaled"><span class="mq-sqrt-prefix mq-scaled">&radic;</span><span class="mq-sqrt-stem mq-non-leaf">&1</span></span>',e.textTemplate=["sqrt[","](",")"],e.latex=function(){return"\\sqrt["+this.ends[f].latex()+"]{"+this.ends[1].latex()+"}"}})),pe=p(U,function(e,t){e.init=function(e,n,r){var i='<span class="mq-non-leaf"><span class="mq-diacritic-above">'+n+'</span><span class="mq-diacritic-stem">&0</span></span>';t.init.call(this,e,i,r)}});function fe(e,t){e.jQadd=function(){t.jQadd.apply(this,arguments),this.delimjQs=this.jQ.children(":first").add(this.jQ.children(":last")),this.contentjQ=this.jQ.children(":eq(1)")},e.reflow=function(){var e=this.contentjQ.outerHeight()/parseFloat(this.contentjQ.css("fontSize"));ee(this.delimjQs,i(1+.2*(e-1),1.2),1.2*e)}}w.vec=d(pe,"\\vec","&rarr;",["vec(",")"]),w.tilde=d(pe,"\\tilde","~",["tilde(",")"]);var me=p(p(U,fe),function(t,n){t.init=function(t,r,i,a,o){n.init.call(this,"\\left"+a,e,[r,i]),this.side=t,this.sides={},this.sides[f]={ch:r,ctrlSeq:a},this.sides[1]={ch:i,ctrlSeq:o}},t.numBlocks=function(){return 1},t.html=function(){return this.htmlTemplate='<span class="mq-non-leaf"><span class="mq-scaled mq-paren'+(1===this.side?" mq-ghost":"")+'">'+this.sides[f].ch+'</span><span class="mq-non-leaf">&0</span><span class="mq-scaled mq-paren'+(this.side===f?" mq-ghost":"")+'">'+this.sides[1].ch+"</span></span>",n.html.call(this)},t.latex=function(){return"\\left"+this.sides[f].ctrlSeq+this.ends[f].latex()+"\\right"+this.sides[1].ctrlSeq},t.matchBrack=function(e,t,n){return n instanceof me&&n.side&&n.side!==-t&&(!e.restrictMismatchedBrackets||ge[this.sides[this.side].ch]===n.sides[n.side].ch||{"(":"]","[":")"}[this.sides[f].ch]===n.sides[1].ch)&&n},t.closeOpposing=function(e){e.side=0,e.sides[this.side]=this.sides[this.side],e.delimjQs.eq(this.side===f?0:1).removeClass("mq-ghost").html(this.sides[this.side].ch)},t.createLeftOf=function(e){if(!this.replacedFragment){var t=e.options;if("|"===this.sides[f].ch)var r=this.matchBrack(t,1,e[1])||this.matchBrack(t,f,e[f])||this.matchBrack(t,0,e.parent.parent);else r=this.matchBrack(t,-this.side,e[-this.side])||this.matchBrack(t,-this.side,e.parent.parent)}if(r){var i=this.side=-r.side;this.closeOpposing(r),r===e.parent.parent&&e[i]&&x(e[i],e.parent.ends[i],-i).disown().withDirAdopt(-i,r.parent,r,r[i]).jQ.insDirOf(i,r.jQ),r.bubble("reflow")}else i=(r=this).side,r.replacedFragment?r.side=0:e[-i]&&(r.replaces(x(e[-i],e.parent.ends[-i],i)),e[-i]=0),n.createLeftOf.call(r,e);i===f?e.insAtLeftEnd(r.ends[f]):e.insRightOf(r)},t.placeCursor=o,t.unwrap=function(){this.ends[f].children().disown().adopt(this.parent,this,this[1]).jQ.insertAfter(this.jQ),this.remove()},t.deleteSide=function(e,t,n){var r=this.parent,i=this[e],a=r.ends[e];if(e===this.side)return this.unwrap(),void(i?n.insDirOf(-e,i):n.insAtDirEnd(e,r));var o=n.options,s=!this.side;if(this.side=-e,this.matchBrack(o,e,this.ends[f].ends[this.side])){this.closeOpposing(this.ends[f].ends[this.side]);var l=this.ends[f].ends[e];this.unwrap(),l.siblingCreated&&l.siblingCreated(n.options,e),i?n.insDirOf(-e,i):n.insAtDirEnd(e,r)}else{if(this.matchBrack(o,e,this.parent.parent))this.parent.parent.closeOpposing(this),this.parent.parent.unwrap();else{if(t&&s)return this.unwrap(),void(i?n.insDirOf(-e,i):n.insAtDirEnd(e,r));this.sides[e]={ch:ge[this.sides[this.side].ch],ctrlSeq:ge[this.sides[this.side].ctrlSeq]},this.delimjQs.removeClass("mq-ghost").eq(e===f?0:1).addClass("mq-ghost").html(this.sides[e].ch)}i?(l=this.ends[f].ends[e],x(i,a,-e).disown().withDirAdopt(-e,this.ends[f],l,0).jQ.insAtDirEnd(e,this.ends[f].jQ.removeClass("mq-empty")),l.siblingCreated&&l.siblingCreated(n.options,e),n.insDirOf(-e,i)):t?n.insDirOf(e,this):n.insAtDirEnd(e,this.ends[f])}},t.deleteTowards=function(e,t){this.deleteSide(-e,!1,t)},t.finalizeTree=function(){this.ends[f].deleteOutOf=function(e,t){this.parent.deleteSide(e,!0,t)},this.finalizeTree=this.intentionalBlur=function(){this.delimjQs.eq(this.side===f?1:0).removeClass("mq-ghost"),this.side=0}},t.siblingCreated=function(e,t){t===-this.side&&this.finalizeTree()}}),ge={"(":")",")":"(","[":"]","]":"[","{":"}","}":"{","\\{":"\\}","\\}":"\\{","&lang;":"&rang;","&rang;":"&lang;","\\langle ":"\\rangle ","\\rangle ":"\\langle ","|":"|","\\lVert ":"\\rVert ","\\rVert ":"\\lVert "};function be(e,t){t=t||e;var n=ge[e],r=ge[t];k[e]=d(me,f,e,n,t,r),k[n]=d(me,1,e,n,t,r)}be("("),be("["),be("{","\\{"),w.langle=d(me,f,"&lang;","&rang;","\\langle ","\\rangle "),w.rangle=d(me,1,"&lang;","&rang;","\\langle ","\\rangle "),k["|"]=d(me,f,"|","|","|","|"),w.lVert=d(me,f,"&#8741;","&#8741;","\\lVert ","\\rVert "),w.rVert=d(me,1,"&#8741;","&#8741;","\\lVert ","\\rVert "),w.left=p(U,function(e){e.parser=function(){var e=j.regex,t=j.string,n=(j.succeed,j.optWhitespace);return n.then(e(/^(?:[([|]|\\\{|\\langle(?![a-zA-Z])|\\lVert(?![a-zA-Z]))/)).then(function(r){var i="\\"===r.charAt(0)?r.slice(1):r;return"\\langle"==r&&(i="&lang;",r+=" "),"\\lVert"==r&&(i="&#8741;",r+=" "),H.then(function(a){return t("\\right").skip(n).then(e(/^(?:[\])|]|\\\}|\\rangle(?![a-zA-Z])|\\rVert(?![a-zA-Z]))/)).map(function(e){var t="\\"===e.charAt(0)?e.slice(1):e;"\\rangle"==e&&(t="&rang;",e+=" "),"\\rVert"==e&&(t="&#8741;",e+=" ");var n=me(0,i,t,r,e);return n.blocks=[a],a.adopt(n,0,0),n})})})}}),w.right=p(U,function(e){e.parser=function(){return j.fail("unmatched \\right")}});var ve=w.binom=w.binomial=p(p(U,fe),function(e,t){e.ctrlSeq="\\binom",e.htmlTemplate='<span class="mq-non-leaf"><span class="mq-paren mq-scaled">(</span><span class="mq-non-leaf"><span class="mq-array mq-non-leaf"><span>&0</span><span>&1</span></span></span><span class="mq-paren mq-scaled">)</span></span>',e.textTemplate=["choose(",",",")"]});w.choose=p(ve,function(e){e.createLeftOf=ce.prototype.createLeftOf}),w.editable=w.MathQuillMathField=p(U,function(e,t){e.ctrlSeq="\\MathQuillMathField",e.htmlTemplate='<span class="mq-editable-field"><span class="mq-root-block">&0</span></span>',e.parser=function(){var e=this,n=j.string,r=j.regex,i=j.succeed;return n("[").then(r(/^[a-z][a-z0-9]*/i)).skip(n("]")).map(function(t){e.name=t}).or(i()).then(t.parser.call(e))},e.finalizeTree=function(e){var t=T(this.ends[f],this.jQ,e);t.KIND_OF_MQ="MathField",t.editable=!0,t.createTextarea(),t.editablesTextareaEvents(),t.cursor.insAtRightEnd(t.root),R(t.root)},e.registerInnerField=function(e,t){e.push(e[this.name]=t(this.ends[f].controller))},e.latex=function(){return this.ends[f].latex()},e.text=function(){return this.ends[f].text()}});var ye=w.embed=p(Q,function(e,t){e.setOptions=function(e){function t(){return""}return this.text=e.text||t,this.htmlTemplate=e.htmlString||"",this.latex=e.latex||t,this},e.parser=function(){var e=this,t=j.string,n=j.regex,r=j.succeed;return t("{").then(n(/^[a-z][a-z0-9]*/i)).skip(t("}")).then(function(i){return t("[").then(n(/^[-\w\s]*/)).skip(t("]")).or(r()).map(function(t){return e.setOptions(N[i](t))})})}});w.notin=w.cong=w.equiv=w.oplus=w.otimes=p(V,function(e,t){e.init=function(e){t.init.call(this,"\\"+e+" ","&"+e+";")}}),w["≠"]=w.ne=w.neq=d(V,"\\ne ","&ne;"),w["∗"]=w.ast=w.star=w.loast=w.lowast=d(V,"\\ast ","&lowast;"),w.therefor=w.therefore=d(V,"\\therefore ","&there4;"),w.cuz=w.because=d(V,"\\because ","&#8757;"),w.prop=w.propto=d(V,"\\propto ","&prop;"),w["≈"]=w.asymp=w.approx=d(V,"\\approx ","&asymp;"),w.isin=w.in=d(V,"\\in ","&isin;"),w.ni=w.contains=d(V,"\\ni ","&ni;"),w.notni=w.niton=w.notcontains=w.doesnotcontain=d(V,"\\not\\ni ","&#8716;"),w.sub=w.subset=d(V,"\\subset ","&sub;"),w.sup=w.supset=w.superset=d(V,"\\supset ","&sup;"),w.nsub=w.notsub=w.nsubset=w.notsubset=d(V,"\\not\\subset ","&#8836;"),w.nsup=w.notsup=w.nsupset=w.notsupset=w.nsuperset=w.notsuperset=d(V,"\\not\\supset ","&#8837;"),w.sube=w.subeq=w.subsete=w.subseteq=d(V,"\\subseteq ","&sube;"),w.supe=w.supeq=w.supsete=w.supseteq=w.supersete=w.superseteq=d(V,"\\supseteq ","&supe;"),w.nsube=w.nsubeq=w.notsube=w.notsubeq=w.nsubsete=w.nsubseteq=w.notsubsete=w.notsubseteq=d(V,"\\not\\subseteq ","&#8840;"),w.nsupe=w.nsupeq=w.notsupe=w.notsupeq=w.nsupsete=w.nsupseteq=w.notsupsete=w.notsupseteq=w.nsupersete=w.nsuperseteq=w.notsupersete=w.notsuperseteq=d(V,"\\not\\supseteq ","&#8841;"),w.N=w.naturals=w.Naturals=d(W,"\\mathbb{N}","&#8469;"),w.P=w.primes=w.Primes=w.projective=w.Projective=w.probability=w.Probability=d(W,"\\mathbb{P}","&#8473;"),w.Z=w.integers=w.Integers=d(W,"\\mathbb{Z}","&#8484;"),w.Q=w.rationals=w.Rationals=d(W,"\\mathbb{Q}","&#8474;"),w.R=w.reals=w.Reals=d(W,"\\mathbb{R}","&#8477;"),w.C=w.complex=w.Complex=w.complexes=w.Complexes=w.complexplane=w.Complexplane=w.ComplexPlane=d(W,"\\mathbb{C}","&#8450;"),w.H=w.Hamiltonian=w.quaternions=w.Quaternions=d(W,"\\mathbb{H}","&#8461;"),w.quad=w.emsp=d(W,"\\quad "," "),w.qquad=d(W,"\\qquad "," "),w.diamond=d(W,"\\diamond ","&#9671;"),w.bigtriangleup=d(W,"\\bigtriangleup ","&#9651;"),w.ominus=d(W,"\\ominus ","&#8854;"),w.uplus=d(W,"\\uplus ","&#8846;"),w.bigtriangledown=d(W,"\\bigtriangledown ","&#9661;"),w.sqcap=d(W,"\\sqcap ","&#8851;"),w.triangleleft=d(W,"\\triangleleft ","&#8882;"),w.sqcup=d(W,"\\sqcup ","&#8852;"),w.triangleright=d(W,"\\triangleright ","&#8883;"),w.odot=w.circledot=d(W,"\\odot ","&#8857;"),w.bigcirc=d(W,"\\bigcirc ","&#9711;"),w.dagger=d(W,"\\dagger ","&#0134;"),w.ddagger=d(W,"\\ddagger ","&#135;"),w.wr=d(W,"\\wr ","&#8768;"),w.amalg=d(W,"\\amalg ","&#8720;"),w.models=d(W,"\\models ","&#8872;"),w.prec=d(W,"\\prec ","&#8826;"),w.succ=d(W,"\\succ ","&#8827;"),w.preceq=d(W,"\\preceq ","&#8828;"),w.succeq=d(W,"\\succeq ","&#8829;"),w.simeq=d(W,"\\simeq ","&#8771;"),w.mid=d(W,"\\mid ","&#8739;"),w.ll=d(W,"\\ll ","&#8810;"),w.gg=d(W,"\\gg ","&#8811;"),w.parallel=d(W,"\\parallel ","&#8741;"),w.nparallel=d(W,"\\nparallel ","&#8742;"),w.bowtie=d(W,"\\bowtie ","&#8904;"),w.sqsubset=d(W,"\\sqsubset ","&#8847;"),w.sqsupset=d(W,"\\sqsupset ","&#8848;"),w.smile=d(W,"\\smile ","&#8995;"),w.sqsubseteq=d(W,"\\sqsubseteq ","&#8849;"),w.sqsupseteq=d(W,"\\sqsupseteq ","&#8850;"),w.doteq=d(W,"\\doteq ","&#8784;"),w.frown=d(W,"\\frown ","&#8994;"),w.vdash=d(W,"\\vdash ","&#8870;"),w.dashv=d(W,"\\dashv ","&#8867;"),w.nless=d(W,"\\nless ","&#8814;"),w.ngtr=d(W,"\\ngtr ","&#8815;"),w.longleftarrow=d(W,"\\longleftarrow ","&#8592;"),w.longrightarrow=d(W,"\\longrightarrow ","&#8594;"),w.Longleftarrow=d(W,"\\Longleftarrow ","&#8656;"),w.Longrightarrow=d(W,"\\Longrightarrow ","&#8658;"),w.longleftrightarrow=d(W,"\\longleftrightarrow ","&#8596;"),w.updownarrow=d(W,"\\updownarrow ","&#8597;"),w.Longleftrightarrow=d(W,"\\Longleftrightarrow ","&#8660;"),w.Updownarrow=d(W,"\\Updownarrow ","&#8661;"),w.mapsto=d(W,"\\mapsto ","&#8614;"),w.nearrow=d(W,"\\nearrow ","&#8599;"),w.hookleftarrow=d(W,"\\hookleftarrow ","&#8617;"),w.hookrightarrow=d(W,"\\hookrightarrow ","&#8618;"),w.searrow=d(W,"\\searrow ","&#8600;"),w.leftharpoonup=d(W,"\\leftharpoonup ","&#8636;"),w.rightharpoonup=d(W,"\\rightharpoonup ","&#8640;"),w.swarrow=d(W,"\\swarrow ","&#8601;"),w.leftharpoondown=d(W,"\\leftharpoondown ","&#8637;"),w.rightharpoondown=d(W,"\\rightharpoondown ","&#8641;"),w.nwarrow=d(W,"\\nwarrow ","&#8598;"),w.ldots=d(W,"\\ldots ","&#8230;"),w.cdots=d(W,"\\cdots ","&#8943;"),w.vdots=d(W,"\\vdots ","&#8942;"),w.ddots=d(W,"\\ddots ","&#8945;"),w.surd=d(W,"\\surd ","&#8730;"),w.triangle=d(W,"\\triangle ","&#9651;"),w.ell=d(W,"\\ell ","&#8467;"),w.top=d(W,"\\top ","&#8868;"),w.flat=d(W,"\\flat ","&#9837;"),w.natural=d(W,"\\natural ","&#9838;"),w.sharp=d(W,"\\sharp ","&#9839;"),w.wp=d(W,"\\wp ","&#8472;"),w.bot=d(W,"\\bot ","&#8869;"),w.clubsuit=d(W,"\\clubsuit ","&#9827;"),w.diamondsuit=d(W,"\\diamondsuit ","&#9826;"),w.heartsuit=d(W,"\\heartsuit ","&#9825;"),w.spadesuit=d(W,"\\spadesuit ","&#9824;"),w.parallelogram=d(W,"\\parallelogram ","&#9649;"),w.square=d(W,"\\square ","&#11036;"),w.oint=d(W,"\\oint ","&#8750;"),w.bigcap=d(W,"\\bigcap ","&#8745;"),w.bigcup=d(W,"\\bigcup ","&#8746;"),w.bigsqcup=d(W,"\\bigsqcup ","&#8852;"),w.bigvee=d(W,"\\bigvee ","&#8744;"),w.bigwedge=d(W,"\\bigwedge ","&#8743;"),w.bigodot=d(W,"\\bigodot ","&#8857;"),w.bigotimes=d(W,"\\bigotimes ","&#8855;"),w.bigoplus=d(W,"\\bigoplus ","&#8853;"),w.biguplus=d(W,"\\biguplus ","&#8846;"),w.lfloor=d(W,"\\lfloor ","&#8970;"),w.rfloor=d(W,"\\rfloor ","&#8971;"),w.lceil=d(W,"\\lceil ","&#8968;"),w.rceil=d(W,"\\rceil ","&#8969;"),w.opencurlybrace=w.lbrace=d(W,"\\lbrace ","{"),w.closecurlybrace=w.rbrace=d(W,"\\rbrace ","}"),w.lbrack=d(W,"["),w.rbrack=d(W,"]"),w.slash=d(W,"/"),w.vert=d(W,"|"),w.perp=w.perpendicular=d(W,"\\perp ","&perp;"),w.nabla=w.del=d(W,"\\nabla ","&nabla;"),w.hbar=d(W,"\\hbar ","&#8463;"),w.AA=w.Angstrom=w.angstrom=d(W,"\\text\\AA ","&#8491;"),w.ring=w.circ=w.circle=d(W,"\\circ ","&#8728;"),w.bull=w.bullet=d(W,"\\bullet ","&bull;"),w.setminus=w.smallsetminus=d(W,"\\setminus ","&#8726;"),w.not=w["¬"]=w.neg=d(W,"\\neg ","&not;"),w["…"]=w.dots=w.ellip=w.hellip=w.ellipsis=w.hellipsis=d(W,"\\dots ","&hellip;"),w.converges=w.darr=w.dnarr=w.dnarrow=w.downarrow=d(W,"\\downarrow ","&darr;"),w.dArr=w.dnArr=w.dnArrow=w.Downarrow=d(W,"\\Downarrow ","&dArr;"),w.diverges=w.uarr=w.uparrow=d(W,"\\uparrow ","&uarr;"),w.uArr=w.Uparrow=d(W,"\\Uparrow ","&uArr;"),w.to=d(V,"\\to ","&rarr;"),w.rarr=w.rightarrow=d(W,"\\rightarrow ","&rarr;"),w.implies=d(V,"\\Rightarrow ","&rArr;"),w.rArr=w.Rightarrow=d(W,"\\Rightarrow ","&rArr;"),w.gets=d(V,"\\gets ","&larr;"),w.larr=w.leftarrow=d(W,"\\leftarrow ","&larr;"),w.impliedby=d(V,"\\Leftarrow ","&lArr;"),w.lArr=w.Leftarrow=d(W,"\\Leftarrow ","&lArr;"),w.harr=w.lrarr=w.leftrightarrow=d(W,"\\leftrightarrow ","&harr;"),w.iff=d(V,"\\Leftrightarrow ","&hArr;"),w.hArr=w.lrArr=w.Leftrightarrow=d(W,"\\Leftrightarrow ","&hArr;"),w.Re=w.Real=w.real=d(W,"\\Re ","&real;"),w.Im=w.imag=w.image=w.imagin=w.imaginary=w.Imaginary=d(W,"\\Im ","&image;"),w.part=w.partial=d(W,"\\partial ","&part;"),w.infty=w.infin=w.infinity=d(W,"\\infty ","&infin;"),w.pounds=d(W,"\\pounds ","&pound;"),w.alef=w.alefsym=w.aleph=w.alephsym=d(W,"\\aleph ","&alefsym;"),w.xist=w.xists=w.exist=w.exists=d(W,"\\exists ","&exist;"),w.nexists=w.nexist=d(W,"\\nexists ","&#8708;"),w.and=w.land=w.wedge=d(V,"\\wedge ","&and;"),w.or=w.lor=w.vee=d(V,"\\vee ","&or;"),w.o=w.O=w.empty=w.emptyset=w.oslash=w.Oslash=w.nothing=w.varnothing=d(V,"\\varnothing ","&empty;"),w.cup=w.union=d(V,"\\cup ","&cup;"),w.cap=w.intersect=w.intersection=d(V,"\\cap ","&cap;"),w.deg=w.degree=d(W,"\\degree ","&deg;"),w.ang=w.angle=d(W,"\\angle ","&ang;"),w.measuredangle=d(W,"\\measuredangle ","&#8737;");var xe=p(W,function(e,t){e.createLeftOf=function(e){e.options.autoSubscriptNumerals&&e.parent!==e.parent.parent.sub&&(e[f]instanceof we&&!1!==e[f].isItalic||e[f]instanceof oe&&e[f][f]instanceof we&&!1!==e[f][f].isItalic)?(w._().createLeftOf(e),t.createLeftOf.call(this,e),e.insRightOf(e.parent.parent)):t.createLeftOf.call(this,e)}}),we=p(Q,function(e,t){e.init=function(e,n){t.init.call(this,e,"<var>"+(n||e)+"</var>")},e.text=function(){var e=this.ctrlSeq;return this.isPartOfOperator?"\\"==e[0]?e=e.slice(1,e.length):" "==e[e.length-1]&&(e=e.slice(0,-1)):(!this[f]||this[f]instanceof we||this[f]instanceof V||"\\ "===this[f].ctrlSeq||(e="*"+e),!this[1]||this[1]instanceof V||this[1]instanceof oe||(e+="*")),e}});q.p.autoCommands={_maxLength:0},M.autoCommands=function(e){if(!/^[a-z]+(?: [a-z]+)*$/i.test(e))throw'"'+e+'" not a space-delimited list of only letters';for(var t=e.split(" "),n={},r=0,i=0;i<t.length;i+=1){var o=t[i];if(o.length<2)throw'autocommand "'+o+'" not minimum length of 2';if(w[o]===Ee)throw'"'+o+'" is a built-in operator name';n[o]=1,r=a(r,o.length)}return n._maxLength=r,n};var ke=p(we,function(e,t){function n(e){return!e||e instanceof V||e instanceof le}e.init=function(e){return t.init.call(this,this.letter=e)},e.createLeftOf=function(e){t.createLeftOf.apply(this,arguments);var n=e.options.autoCommands,r=n._maxLength;if(r>0){for(var i="",a=this,o=0;a instanceof ke&&a.ctrlSeq===a.letter&&o<r;)i=a.letter+i,a=a[f],o+=1;for(;i.length;){if(n.hasOwnProperty(i)){for(o=1,a=this;o<i.length;o+=1,a=a[f]);return x(a,this).remove(),e[f]=a[f],w[i](i).createLeftOf(e)}i=i.slice(1)}}},e.italicize=function(e){return this.isItalic=e,this.isPartOfOperator=!e,this.jQ.toggleClass("mq-operator-name",!e),this},e.finalizeTree=e.siblingDeleted=e.siblingCreated=function(e,t){t!==f&&this[1]instanceof ke||this.autoUnItalicize(e)},e.autoUnItalicize=function(e){var t=e.autoOperatorNames;if(0!==t._maxLength){for(var r=this.letter,a=this[f];a instanceof ke;a=a[f])r=a.letter+r;for(var o=this[1];o instanceof ke;o=o[1])r+=o.letter;x(a[1]||this.parent.ends[f],o[f]||this.parent.ends[1]).each(function(e){e.italicize(!0).jQ.removeClass("mq-first mq-last mq-followed-by-supsub"),e.ctrlSeq=e.letter});e:for(var s=0,l=a[1]||this.parent.ends[f];s<r.length;s+=1,l=l[1])for(var u=i(t._maxLength,r.length-s);u>0;u-=1){var c=r.slice(s,s+u);if(t.hasOwnProperty(c)){for(var d=0,h=l;d<u;d+=1,h=h[1]){h.italicize(!1);var p=h}var m=Se.hasOwnProperty(c);if(l.ctrlSeq=(m?"\\":"\\operatorname{")+l.ctrlSeq,p.ctrlSeq+=m?" ":"}",Te.hasOwnProperty(c)&&p[f][f][f].jQ.addClass("mq-last"),n(l[f])||l.jQ.addClass("mq-first"),!n(p[1]))if(p[1]instanceof oe){var g=p[1];(g.siblingCreated=g.siblingDeleted=function(){g.jQ.toggleClass("mq-after-operator-name",!(g[1]instanceof me))})()}else p.jQ.toggleClass("mq-last",!(p[1]instanceof me));s+=u-1,l=p;continue e}}}}}),Se={},Ce=q.p.autoOperatorNames={_maxLength:9},Te={limsup:1,liminf:1,projlim:1,injlim:1};!function(){for(var e="arg deg det dim exp gcd hom inf ker lg lim ln log max min sup limsup liminf injlim projlim Pr".split(" "),t=0;t<e.length;t+=1)Se[e[t]]=Ce[e[t]]=1;var n="sin cos tan arcsin arccos arctan sinh cosh tanh sec csc cot coth".split(" ");for(t=0;t<n.length;t+=1)Se[n[t]]=1;var r="sin cos tan sec cosec csc cotan cot ctg".split(" ");for(t=0;t<r.length;t+=1)Ce[r[t]]=Ce["arc"+r[t]]=Ce[r[t]+"h"]=Ce["ar"+r[t]+"h"]=Ce["arc"+r[t]+"h"]=1;var i="gcf hcf lcm proj span".split(" ");for(t=0;t<i.length;t+=1)Ce[i[t]]=1}(),M.autoOperatorNames=function(e){if(!/^[a-z]+(?: [a-z]+)*$/i.test(e))throw'"'+e+'" not a space-delimited list of only letters';for(var t=e.split(" "),n={},r=0,i=0;i<t.length;i+=1){var o=t[i];if(o.length<2)throw'"'+o+'" not minimum length of 2';n[o]=1,r=a(r,o.length)}return n._maxLength=r,n};var Ee=p(Q,function(e,t){e.init=function(e){this.ctrlSeq=e},e.createLeftOf=function(e){for(var t=this.ctrlSeq,n=0;n<t.length;n+=1)ke(t.charAt(n)).createLeftOf(e)},e.parser=function(){for(var e=this.ctrlSeq,t=$(),n=0;n<e.length;n+=1)ke(e.charAt(n)).adopt(t,t.ends[1],0);return j.succeed(t.children())}});for(var qe in Ce)Ce.hasOwnProperty(qe)&&(w[qe]=Ee);w.operatorname=p(U,function(e){e.createLeftOf=o,e.numBlocks=function(){return 1},e.parser=function(){return H.block.map(function(e){return e.children()})}}),w.f=p(ke,function(e,t){e.init=function(){Q.p.init.call(this,this.letter="f",'<var class="mq-f">f</var>')},e.italicize=function(e){return this.jQ.html("f").toggleClass("mq-f",e),t.italicize.apply(this,arguments)}}),w[" "]=w.space=d(W,"\\ ","&nbsp;"),w["'"]=w.prime=d(W,"'","&prime;"),w["″"]=w.dprime=d(W,"″","&Prime;"),w.backslash=d(W,"\\backslash ","\\"),k["\\"]||(k["\\"]=w.backslash),w.$=d(W,"\\$","$");var Me=p(Q,function(e,t){e.init=function(e,n){t.init.call(this,e,'<span class="mq-nonSymbola">'+(n||e)+"</span>")}});w["@"]=Me,w["&"]=d(Me,"\\&","&amp;"),w["%"]=d(Me,"\\%","%"),w.alpha=w.beta=w.gamma=w.delta=w.zeta=w.eta=w.theta=w.iota=w.kappa=w.mu=w.nu=w.xi=w.rho=w.sigma=w.tau=w.chi=w.psi=w.omega=p(we,function(e,t){e.init=function(e){t.init.call(this,"\\"+e+" ","&"+e+";")}}),w.phi=d(we,"\\phi ","&#981;"),w.phiv=w.varphi=d(we,"\\varphi ","&phi;"),w.epsilon=d(we,"\\epsilon ","&#1013;"),w.epsiv=w.varepsilon=d(we,"\\varepsilon ","&epsilon;"),w.piv=w.varpi=d(we,"\\varpi ","&piv;"),w.sigmaf=w.sigmav=w.varsigma=d(we,"\\varsigma ","&sigmaf;"),w.thetav=w.vartheta=w.thetasym=d(we,"\\vartheta ","&thetasym;"),w.upsilon=w.upsi=d(we,"\\upsilon ","&upsilon;"),w.gammad=w.Gammad=w.digamma=d(we,"\\digamma ","&#989;"),w.kappav=w.varkappa=d(we,"\\varkappa ","&#1008;"),w.rhov=w.varrho=d(we,"\\varrho ","&#1009;"),w.pi=w["π"]=d(Me,"\\pi ","&pi;"),w.lambda=d(Me,"\\lambda ","&lambda;"),w.Upsilon=w.Upsi=w.upsih=w.Upsih=d(Q,"\\Upsilon ",'<var style="font-family: serif">&upsih;</var>'),w.Gamma=w.Delta=w.Theta=w.Lambda=w.Xi=w.Pi=w.Sigma=w.Phi=w.Psi=w.Omega=w.forall=p(W,function(e,t){e.init=function(e){t.init.call(this,"\\"+e+" ","&"+e+";")}});var Ae=p(U,function(e){e.init=function(e){this.latex=e},e.createLeftOf=function(e){var t=H.parse(this.latex);t.children().adopt(e.parent,e[f],e[1]),e[f]=t.ends[1],t.jQize().insertBefore(e.jQ),t.finalizeInsert(e.options,e),t.ends[1][1].siblingCreated&&t.ends[1][1].siblingCreated(e.options,f),t.ends[f][f].siblingCreated&&t.ends[f][f].siblingCreated(e.options,1),e.parent.bubble("reflow")},e.parser=function(){var e=H.parse(this.latex).children();return j.succeed(e)}});w["¹"]=d(Ae,"^1"),w["²"]=d(Ae,"^2"),w["³"]=d(Ae,"^3"),w["¼"]=d(Ae,"\\frac14"),w["½"]=d(Ae,"\\frac12"),w["¾"]=d(Ae,"\\frac34");var Ne=p(V,function(e){e.init=W.prototype.init,e.contactWeld=e.siblingCreated=e.siblingDeleted=function(e,t){if(1!==t)return this.jQ[0].className=function e(t){return t[f]?t[f]instanceof V||/^[,;:\(\[]$/.test(t[f].ctrlSeq)?"":"mq-binary-operator":t.parent&&t.parent.parent&&t.parent.parent.isStyleBlock()?e(t.parent.parent):""}(this),this}});w["+"]=d(Ne,"+","+"),w["–"]=w["-"]=d(Ne,"-","&minus;"),w["±"]=w.pm=w.plusmn=w.plusminus=d(Ne,"\\pm ","&plusmn;"),w.mp=w.mnplus=w.minusplus=d(Ne,"\\mp ","&#8723;"),k["*"]=w.sdot=w.cdot=d(V,"\\cdot ","&middot;","*");var Oe=p(V,function(e,t){e.init=function(e,n){this.data=e,this.strict=n;var r=n?"Strict":"";t.init.call(this,e["ctrlSeq"+r],e["html"+r],e["text"+r])},e.swap=function(e){this.strict=e;var t=e?"Strict":"";this.ctrlSeq=this.data["ctrlSeq"+t],this.jQ.html(this.data["html"+t]),this.textTemplate=[this.data["text"+t]]},e.deleteTowards=function(e,n){if(e===f&&!this.strict)return this.swap(!0),void this.bubble("reflow");t.deleteTowards.apply(this,arguments)}}),De={ctrlSeq:"\\le ",html:"&le;",text:"≤",ctrlSeqStrict:"<",htmlStrict:"&lt;",textStrict:"<"},ze={ctrlSeq:"\\ge ",html:"&ge;",text:"≥",ctrlSeqStrict:">",htmlStrict:"&gt;",textStrict:">"};w["<"]=w.lt=d(Oe,De,!0),w[">"]=w.gt=d(Oe,ze,!0),w["≤"]=w.le=w.leq=d(Oe,De,!1),w["≥"]=w.ge=w.geq=d(Oe,ze,!1);var Le=p(V,function(e,t){e.init=function(){t.init.call(this,"=","=")},e.createLeftOf=function(e){if(e[f]instanceof Oe&&e[f].strict)return e[f].swap(!1),void e[f].bubble("reflow");t.createLeftOf.apply(this,arguments)}});w["="]=Le,w["×"]=w.times=d(V,"\\times ","&times;","[x]"),w["÷"]=w.div=w.divide=w.divides=d(V,"\\div ","&divide;","[/]"),k["~"]=w.sim=d(V,"\\sim ","~","~");var Ie=I(1);for(var _e in Ie)!function(e,t){"function"==typeof t?(D[e]=function(){return O(),t.apply(this,arguments)},D[e].prototype=t.prototype):D[e]=t}(_e,Ie[_e])}(),e.exports=window.MathQuill},755:function(e,t){var n;!function(t,n){"object"==typeof e.exports?e.exports=t.document?n(t,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return n(e)}:n(t)}("undefined"!=typeof window?window:this,function(r,i){var a=[],o=Object.getPrototypeOf,s=a.slice,l=a.flat?function(e){return a.flat.call(e)}:function(e){return a.concat.apply([],e)},u=a.push,c=a.indexOf,d={},h=d.toString,p=d.hasOwnProperty,f=p.toString,m=f.call(Object),g={},b=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType&&"function"!=typeof e.item},v=function(e){return null!=e&&e===e.window},y=r.document,x={type:!0,src:!0,nonce:!0,noModule:!0};function w(e,t,n){var r,i,a=(n=n||y).createElement("script");if(a.text=e,t)for(r in x)(i=t[r]||t.getAttribute&&t.getAttribute(r))&&a.setAttribute(r,i);n.head.appendChild(a).parentNode.removeChild(a)}function k(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?d[h.call(e)]||"object":typeof e}var S="3.6.0",C=function(e,t){return new C.fn.init(e,t)};function T(e){var t=!!e&&"length"in e&&e.length,n=k(e);return!b(e)&&!v(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}C.fn=C.prototype={jquery:S,constructor:C,length:0,toArray:function(){return s.call(this)},get:function(e){return null==e?s.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=C.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return C.each(this,e)},map:function(e){return this.pushStack(C.map(this,function(t,n){return e.call(t,n,t)}))},slice:function(){return this.pushStack(s.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(C.grep(this,function(e,t){return(t+1)%2}))},odd:function(){return this.pushStack(C.grep(this,function(e,t){return t%2}))},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:u,sort:a.sort,splice:a.splice},C.extend=C.fn.extend=function(){var e,t,n,r,i,a,o=arguments[0]||{},s=1,l=arguments.length,u=!1;for("boolean"==typeof o&&(u=o,o=arguments[s]||{},s++),"object"==typeof o||b(o)||(o={}),s===l&&(o=this,s--);s<l;s++)if(null!=(e=arguments[s]))for(t in e)r=e[t],"__proto__"!==t&&o!==r&&(u&&r&&(C.isPlainObject(r)||(i=Array.isArray(r)))?(n=o[t],a=i&&!Array.isArray(n)?[]:i||C.isPlainObject(n)?n:{},i=!1,o[t]=C.extend(u,a,r)):void 0!==r&&(o[t]=r));return o},C.extend({expando:"jQuery"+(S+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==h.call(e)||(t=o(e))&&("function"!=typeof(n=p.call(t,"constructor")&&t.constructor)||f.call(n)!==m))},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t,n){w(e,{nonce:t&&t.nonce},n)},each:function(e,t){var n,r=0;if(T(e))for(n=e.length;r<n&&!1!==t.call(e[r],r,e[r]);r++);else for(r in e)if(!1===t.call(e[r],r,e[r]))break;return e},makeArray:function(e,t){var n=t||[];return null!=e&&(T(Object(e))?C.merge(n,"string"==typeof e?[e]:e):u.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:c.call(t,e,n)},merge:function(e,t){for(var n=+t.length,r=0,i=e.length;r<n;r++)e[i++]=t[r];return e.length=i,e},grep:function(e,t,n){for(var r=[],i=0,a=e.length,o=!n;i<a;i++)!t(e[i],i)!==o&&r.push(e[i]);return r},map:function(e,t,n){var r,i,a=0,o=[];if(T(e))for(r=e.length;a<r;a++)null!=(i=t(e[a],a,n))&&o.push(i);else for(a in e)null!=(i=t(e[a],a,n))&&o.push(i);return l(o)},guid:1,support:g}),"function"==typeof Symbol&&(C.fn[Symbol.iterator]=a[Symbol.iterator]),C.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){d["[object "+t+"]"]=t.toLowerCase()});var E=function(e){var t,n,r,i,a,o,s,l,u,c,d,h,p,f,m,g,b,v,y,x="sizzle"+1*new Date,w=e.document,k=0,S=0,C=le(),T=le(),E=le(),q=le(),M=function(e,t){return e===t&&(d=!0),0},A={}.hasOwnProperty,N=[],O=N.pop,D=N.push,z=N.push,L=N.slice,I=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},_="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",R="[\\x20\\t\\r\\n\\f]",B="(?:\\\\[\\da-fA-F]{1,6}[\\x20\\t\\r\\n\\f]?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",P="\\[[\\x20\\t\\r\\n\\f]*("+B+")(?:"+R+"*([*^$|!~]?=)"+R+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+B+"))|)"+R+"*\\]",j=":("+B+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+P+")*)|.*)\\)|)",H=new RegExp(R+"+","g"),F=new RegExp("^[\\x20\\t\\r\\n\\f]+|((?:^|[^\\\\])(?:\\\\.)*)[\\x20\\t\\r\\n\\f]+$","g"),U=new RegExp("^[\\x20\\t\\r\\n\\f]*,[\\x20\\t\\r\\n\\f]*"),Q=new RegExp("^[\\x20\\t\\r\\n\\f]*([>+~]|[\\x20\\t\\r\\n\\f])[\\x20\\t\\r\\n\\f]*"),W=new RegExp(R+"|>"),V=new RegExp(j),$=new RegExp("^"+B+"$"),G={ID:new RegExp("^#("+B+")"),CLASS:new RegExp("^\\.("+B+")"),TAG:new RegExp("^("+B+"|[*])"),ATTR:new RegExp("^"+P),PSEUDO:new RegExp("^"+j),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\([\\x20\\t\\r\\n\\f]*(even|odd|(([+-]|)(\\d*)n|)[\\x20\\t\\r\\n\\f]*(?:([+-]|)[\\x20\\t\\r\\n\\f]*(\\d+)|))[\\x20\\t\\r\\n\\f]*\\)|)","i"),bool:new RegExp("^(?:"+_+")$","i"),needsContext:new RegExp("^[\\x20\\t\\r\\n\\f]*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\([\\x20\\t\\r\\n\\f]*((?:-\\d)?\\d*)[\\x20\\t\\r\\n\\f]*\\)|)(?=[^-]|$)","i")},K=/HTML$/i,X=/^(?:input|select|textarea|button)$/i,Y=/^h\d$/i,Z=/^[^{]+\{\s*\[native \w/,J=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=new RegExp("\\\\[\\da-fA-F]{1,6}[\\x20\\t\\r\\n\\f]?|\\\\([^\\r\\n\\f])","g"),ne=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},re=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ie=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},ae=function(){h()},oe=xe(function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{z.apply(N=L.call(w.childNodes),w.childNodes),N[w.childNodes.length].nodeType}catch(e){z={apply:N.length?function(e,t){D.apply(e,L.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}function se(e,t,r,i){var a,s,u,c,d,f,b,v=t&&t.ownerDocument,w=t?t.nodeType:9;if(r=r||[],"string"!=typeof e||!e||1!==w&&9!==w&&11!==w)return r;if(!i&&(h(t),t=t||p,m)){if(11!==w&&(d=J.exec(e)))if(a=d[1]){if(9===w){if(!(u=t.getElementById(a)))return r;if(u.id===a)return r.push(u),r}else if(v&&(u=v.getElementById(a))&&y(t,u)&&u.id===a)return r.push(u),r}else{if(d[2])return z.apply(r,t.getElementsByTagName(e)),r;if((a=d[3])&&n.getElementsByClassName&&t.getElementsByClassName)return z.apply(r,t.getElementsByClassName(a)),r}if(n.qsa&&!q[e+" "]&&(!g||!g.test(e))&&(1!==w||"object"!==t.nodeName.toLowerCase())){if(b=e,v=t,1===w&&(W.test(e)||Q.test(e))){for((v=ee.test(e)&&be(t.parentNode)||t)===t&&n.scope||((c=t.getAttribute("id"))?c=c.replace(re,ie):t.setAttribute("id",c=x)),s=(f=o(e)).length;s--;)f[s]=(c?"#"+c:":scope")+" "+ye(f[s]);b=f.join(",")}try{return z.apply(r,v.querySelectorAll(b)),r}catch(t){q(e,!0)}finally{c===x&&t.removeAttribute("id")}}}return l(e.replace(F,"$1"),t,r,i)}function le(){var e=[];return function t(n,i){return e.push(n+" ")>r.cacheLength&&delete t[e.shift()],t[n+" "]=i}}function ue(e){return e[x]=!0,e}function ce(e){var t=p.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function de(e,t){for(var n=e.split("|"),i=n.length;i--;)r.attrHandle[n[i]]=t}function he(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function pe(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function fe(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function me(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&oe(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function ge(e){return ue(function(t){return t=+t,ue(function(n,r){for(var i,a=e([],n.length,t),o=a.length;o--;)n[i=a[o]]&&(n[i]=!(r[i]=n[i]))})})}function be(e){return e&&void 0!==e.getElementsByTagName&&e}for(t in n=se.support={},a=se.isXML=function(e){var t=e&&e.namespaceURI,n=e&&(e.ownerDocument||e).documentElement;return!K.test(t||n&&n.nodeName||"HTML")},h=se.setDocument=function(e){var t,i,o=e?e.ownerDocument||e:w;return o!=p&&9===o.nodeType&&o.documentElement?(f=(p=o).documentElement,m=!a(p),w!=p&&(i=p.defaultView)&&i.top!==i&&(i.addEventListener?i.addEventListener("unload",ae,!1):i.attachEvent&&i.attachEvent("onunload",ae)),n.scope=ce(function(e){return f.appendChild(e).appendChild(p.createElement("div")),void 0!==e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length}),n.attributes=ce(function(e){return e.className="i",!e.getAttribute("className")}),n.getElementsByTagName=ce(function(e){return e.appendChild(p.createComment("")),!e.getElementsByTagName("*").length}),n.getElementsByClassName=Z.test(p.getElementsByClassName),n.getById=ce(function(e){return f.appendChild(e).id=x,!p.getElementsByName||!p.getElementsByName(x).length}),n.getById?(r.filter.ID=function(e){var t=e.replace(te,ne);return function(e){return e.getAttribute("id")===t}},r.find.ID=function(e,t){if(void 0!==t.getElementById&&m){var n=t.getElementById(e);return n?[n]:[]}}):(r.filter.ID=function(e){var t=e.replace(te,ne);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},r.find.ID=function(e,t){if(void 0!==t.getElementById&&m){var n,r,i,a=t.getElementById(e);if(a){if((n=a.getAttributeNode("id"))&&n.value===e)return[a];for(i=t.getElementsByName(e),r=0;a=i[r++];)if((n=a.getAttributeNode("id"))&&n.value===e)return[a]}return[]}}),r.find.TAG=n.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):n.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,a=t.getElementsByTagName(e);if("*"===e){for(;n=a[i++];)1===n.nodeType&&r.push(n);return r}return a},r.find.CLASS=n.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&m)return t.getElementsByClassName(e)},b=[],g=[],(n.qsa=Z.test(p.querySelectorAll))&&(ce(function(e){var t;f.appendChild(e).innerHTML="<a id='"+x+"'></a><select id='"+x+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&g.push("[*^$]=[\\x20\\t\\r\\n\\f]*(?:''|\"\")"),e.querySelectorAll("[selected]").length||g.push("\\[[\\x20\\t\\r\\n\\f]*(?:value|"+_+")"),e.querySelectorAll("[id~="+x+"-]").length||g.push("~="),(t=p.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||g.push("\\[[\\x20\\t\\r\\n\\f]*name[\\x20\\t\\r\\n\\f]*=[\\x20\\t\\r\\n\\f]*(?:''|\"\")"),e.querySelectorAll(":checked").length||g.push(":checked"),e.querySelectorAll("a#"+x+"+*").length||g.push(".#.+[+~]"),e.querySelectorAll("\\\f"),g.push("[\\r\\n\\f]")}),ce(function(e){e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=p.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&g.push("name[\\x20\\t\\r\\n\\f]*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&g.push(":enabled",":disabled"),f.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&g.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),g.push(",.*:")})),(n.matchesSelector=Z.test(v=f.matches||f.webkitMatchesSelector||f.mozMatchesSelector||f.oMatchesSelector||f.msMatchesSelector))&&ce(function(e){n.disconnectedMatch=v.call(e,"*"),v.call(e,"[s!='']:x"),b.push("!=",j)}),g=g.length&&new RegExp(g.join("|")),b=b.length&&new RegExp(b.join("|")),t=Z.test(f.compareDocumentPosition),y=t||Z.test(f.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},M=t?function(e,t){if(e===t)return d=!0,0;var r=!e.compareDocumentPosition-!t.compareDocumentPosition;return r||(1&(r=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!n.sortDetached&&t.compareDocumentPosition(e)===r?e==p||e.ownerDocument==w&&y(w,e)?-1:t==p||t.ownerDocument==w&&y(w,t)?1:c?I(c,e)-I(c,t):0:4&r?-1:1)}:function(e,t){if(e===t)return d=!0,0;var n,r=0,i=e.parentNode,a=t.parentNode,o=[e],s=[t];if(!i||!a)return e==p?-1:t==p?1:i?-1:a?1:c?I(c,e)-I(c,t):0;if(i===a)return he(e,t);for(n=e;n=n.parentNode;)o.unshift(n);for(n=t;n=n.parentNode;)s.unshift(n);for(;o[r]===s[r];)r++;return r?he(o[r],s[r]):o[r]==w?-1:s[r]==w?1:0},p):p},se.matches=function(e,t){return se(e,null,null,t)},se.matchesSelector=function(e,t){if(h(e),n.matchesSelector&&m&&!q[t+" "]&&(!b||!b.test(t))&&(!g||!g.test(t)))try{var r=v.call(e,t);if(r||n.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(e){q(t,!0)}return se(t,p,null,[e]).length>0},se.contains=function(e,t){return(e.ownerDocument||e)!=p&&h(e),y(e,t)},se.attr=function(e,t){(e.ownerDocument||e)!=p&&h(e);var i=r.attrHandle[t.toLowerCase()],a=i&&A.call(r.attrHandle,t.toLowerCase())?i(e,t,!m):void 0;return void 0!==a?a:n.attributes||!m?e.getAttribute(t):(a=e.getAttributeNode(t))&&a.specified?a.value:null},se.escape=function(e){return(e+"").replace(re,ie)},se.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},se.uniqueSort=function(e){var t,r=[],i=0,a=0;if(d=!n.detectDuplicates,c=!n.sortStable&&e.slice(0),e.sort(M),d){for(;t=e[a++];)t===e[a]&&(i=r.push(a));for(;i--;)e.splice(r[i],1)}return c=null,e},i=se.getText=function(e){var t,n="",r=0,a=e.nodeType;if(a){if(1===a||9===a||11===a){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=i(e)}else if(3===a||4===a)return e.nodeValue}else for(;t=e[r++];)n+=i(t);return n},r=se.selectors={cacheLength:50,createPseudo:ue,match:G,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(te,ne),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ne),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||se.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&se.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return G.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&V.test(n)&&(t=o(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(te,ne).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=C[e+" "];return t||(t=new RegExp("(^|[\\x20\\t\\r\\n\\f])"+e+"("+R+"|$)"))&&C(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(e,t,n){return function(r){var i=se.attr(r,e);return null==i?"!="===t:!t||(i+="","="===t?i===n:"!="===t?i!==n:"^="===t?n&&0===i.indexOf(n):"*="===t?n&&i.indexOf(n)>-1:"$="===t?n&&i.slice(-n.length)===n:"~="===t?(" "+i.replace(H," ")+" ").indexOf(n)>-1:"|="===t&&(i===n||i.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,r,i){var a="nth"!==e.slice(0,3),o="last"!==e.slice(-4),s="of-type"===t;return 1===r&&0===i?function(e){return!!e.parentNode}:function(t,n,l){var u,c,d,h,p,f,m=a!==o?"nextSibling":"previousSibling",g=t.parentNode,b=s&&t.nodeName.toLowerCase(),v=!l&&!s,y=!1;if(g){if(a){for(;m;){for(h=t;h=h[m];)if(s?h.nodeName.toLowerCase()===b:1===h.nodeType)return!1;f=m="only"===e&&!f&&"nextSibling"}return!0}if(f=[o?g.firstChild:g.lastChild],o&&v){for(y=(p=(u=(c=(d=(h=g)[x]||(h[x]={}))[h.uniqueID]||(d[h.uniqueID]={}))[e]||[])[0]===k&&u[1])&&u[2],h=p&&g.childNodes[p];h=++p&&h&&h[m]||(y=p=0)||f.pop();)if(1===h.nodeType&&++y&&h===t){c[e]=[k,p,y];break}}else if(v&&(y=p=(u=(c=(d=(h=t)[x]||(h[x]={}))[h.uniqueID]||(d[h.uniqueID]={}))[e]||[])[0]===k&&u[1]),!1===y)for(;(h=++p&&h&&h[m]||(y=p=0)||f.pop())&&((s?h.nodeName.toLowerCase()!==b:1!==h.nodeType)||!++y||(v&&((c=(d=h[x]||(h[x]={}))[h.uniqueID]||(d[h.uniqueID]={}))[e]=[k,y]),h!==t)););return(y-=i)===r||y%r==0&&y/r>=0}}},PSEUDO:function(e,t){var n,i=r.pseudos[e]||r.setFilters[e.toLowerCase()]||se.error("unsupported pseudo: "+e);return i[x]?i(t):i.length>1?(n=[e,e,"",t],r.setFilters.hasOwnProperty(e.toLowerCase())?ue(function(e,n){for(var r,a=i(e,t),o=a.length;o--;)e[r=I(e,a[o])]=!(n[r]=a[o])}):function(e){return i(e,0,n)}):i}},pseudos:{not:ue(function(e){var t=[],n=[],r=s(e.replace(F,"$1"));return r[x]?ue(function(e,t,n,i){for(var a,o=r(e,null,i,[]),s=e.length;s--;)(a=o[s])&&(e[s]=!(t[s]=a))}):function(e,i,a){return t[0]=e,r(t,null,a,n),t[0]=null,!n.pop()}}),has:ue(function(e){return function(t){return se(e,t).length>0}}),contains:ue(function(e){return e=e.replace(te,ne),function(t){return(t.textContent||i(t)).indexOf(e)>-1}}),lang:ue(function(e){return $.test(e||"")||se.error("unsupported lang: "+e),e=e.replace(te,ne).toLowerCase(),function(t){var n;do{if(n=m?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===f},focus:function(e){return e===p.activeElement&&(!p.hasFocus||p.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:me(!1),disabled:me(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!r.pseudos.empty(e)},header:function(e){return Y.test(e.nodeName)},input:function(e){return X.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:ge(function(){return[0]}),last:ge(function(e,t){return[t-1]}),eq:ge(function(e,t,n){return[n<0?n+t:n]}),even:ge(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:ge(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:ge(function(e,t,n){for(var r=n<0?n+t:n>t?t:n;--r>=0;)e.push(r);return e}),gt:ge(function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e})}},r.pseudos.nth=r.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})r.pseudos[t]=pe(t);for(t in{submit:!0,reset:!0})r.pseudos[t]=fe(t);function ve(){}function ye(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function xe(e,t,n){var r=t.dir,i=t.next,a=i||r,o=n&&"parentNode"===a,s=S++;return t.first?function(t,n,i){for(;t=t[r];)if(1===t.nodeType||o)return e(t,n,i);return!1}:function(t,n,l){var u,c,d,h=[k,s];if(l){for(;t=t[r];)if((1===t.nodeType||o)&&e(t,n,l))return!0}else for(;t=t[r];)if(1===t.nodeType||o)if(c=(d=t[x]||(t[x]={}))[t.uniqueID]||(d[t.uniqueID]={}),i&&i===t.nodeName.toLowerCase())t=t[r]||t;else{if((u=c[a])&&u[0]===k&&u[1]===s)return h[2]=u[2];if(c[a]=h,h[2]=e(t,n,l))return!0}return!1}}function we(e){return e.length>1?function(t,n,r){for(var i=e.length;i--;)if(!e[i](t,n,r))return!1;return!0}:e[0]}function ke(e,t,n,r,i){for(var a,o=[],s=0,l=e.length,u=null!=t;s<l;s++)(a=e[s])&&(n&&!n(a,r,i)||(o.push(a),u&&t.push(s)));return o}function Se(e,t,n,r,i,a){return r&&!r[x]&&(r=Se(r)),i&&!i[x]&&(i=Se(i,a)),ue(function(a,o,s,l){var u,c,d,h=[],p=[],f=o.length,m=a||function(e,t,n){for(var r=0,i=t.length;r<i;r++)se(e,t[r],n);return n}(t||"*",s.nodeType?[s]:s,[]),g=!e||!a&&t?m:ke(m,h,e,s,l),b=n?i||(a?e:f||r)?[]:o:g;if(n&&n(g,b,s,l),r)for(u=ke(b,p),r(u,[],s,l),c=u.length;c--;)(d=u[c])&&(b[p[c]]=!(g[p[c]]=d));if(a){if(i||e){if(i){for(u=[],c=b.length;c--;)(d=b[c])&&u.push(g[c]=d);i(null,b=[],u,l)}for(c=b.length;c--;)(d=b[c])&&(u=i?I(a,d):h[c])>-1&&(a[u]=!(o[u]=d))}}else b=ke(b===o?b.splice(f,b.length):b),i?i(null,o,b,l):z.apply(o,b)})}function Ce(e){for(var t,n,i,a=e.length,o=r.relative[e[0].type],s=o||r.relative[" "],l=o?1:0,c=xe(function(e){return e===t},s,!0),d=xe(function(e){return I(t,e)>-1},s,!0),h=[function(e,n,r){var i=!o&&(r||n!==u)||((t=n).nodeType?c(e,n,r):d(e,n,r));return t=null,i}];l<a;l++)if(n=r.relative[e[l].type])h=[xe(we(h),n)];else{if((n=r.filter[e[l].type].apply(null,e[l].matches))[x]){for(i=++l;i<a&&!r.relative[e[i].type];i++);return Se(l>1&&we(h),l>1&&ye(e.slice(0,l-1).concat({value:" "===e[l-2].type?"*":""})).replace(F,"$1"),n,l<i&&Ce(e.slice(l,i)),i<a&&Ce(e=e.slice(i)),i<a&&ye(e))}h.push(n)}return we(h)}return ve.prototype=r.filters=r.pseudos,r.setFilters=new ve,o=se.tokenize=function(e,t){var n,i,a,o,s,l,u,c=T[e+" "];if(c)return t?0:c.slice(0);for(s=e,l=[],u=r.preFilter;s;){for(o in n&&!(i=U.exec(s))||(i&&(s=s.slice(i[0].length)||s),l.push(a=[])),n=!1,(i=Q.exec(s))&&(n=i.shift(),a.push({value:n,type:i[0].replace(F," ")}),s=s.slice(n.length)),r.filter)!(i=G[o].exec(s))||u[o]&&!(i=u[o](i))||(n=i.shift(),a.push({value:n,type:o,matches:i}),s=s.slice(n.length));if(!n)break}return t?s.length:s?se.error(e):T(e,l).slice(0)},s=se.compile=function(e,t){var n,i=[],a=[],s=E[e+" "];if(!s){for(t||(t=o(e)),n=t.length;n--;)(s=Ce(t[n]))[x]?i.push(s):a.push(s);s=E(e,function(e,t){var n=t.length>0,i=e.length>0,a=function(a,o,s,l,c){var d,f,g,b=0,v="0",y=a&&[],x=[],w=u,S=a||i&&r.find.TAG("*",c),C=k+=null==w?1:Math.random()||.1,T=S.length;for(c&&(u=o==p||o||c);v!==T&&null!=(d=S[v]);v++){if(i&&d){for(f=0,o||d.ownerDocument==p||(h(d),s=!m);g=e[f++];)if(g(d,o||p,s)){l.push(d);break}c&&(k=C)}n&&((d=!g&&d)&&b--,a&&y.push(d))}if(b+=v,n&&v!==b){for(f=0;g=t[f++];)g(y,x,o,s);if(a){if(b>0)for(;v--;)y[v]||x[v]||(x[v]=O.call(l));x=ke(x)}z.apply(l,x),c&&!a&&x.length>0&&b+t.length>1&&se.uniqueSort(l)}return c&&(k=C,u=w),y};return n?ue(a):a}(a,i)),s.selector=e}return s},l=se.select=function(e,t,n,i){var a,l,u,c,d,h="function"==typeof e&&e,p=!i&&o(e=h.selector||e);if(n=n||[],1===p.length){if((l=p[0]=p[0].slice(0)).length>2&&"ID"===(u=l[0]).type&&9===t.nodeType&&m&&r.relative[l[1].type]){if(!(t=(r.find.ID(u.matches[0].replace(te,ne),t)||[])[0]))return n;h&&(t=t.parentNode),e=e.slice(l.shift().value.length)}for(a=G.needsContext.test(e)?0:l.length;a--&&(u=l[a],!r.relative[c=u.type]);)if((d=r.find[c])&&(i=d(u.matches[0].replace(te,ne),ee.test(l[0].type)&&be(t.parentNode)||t))){if(l.splice(a,1),!(e=i.length&&ye(l)))return z.apply(n,i),n;break}}return(h||s(e,p))(i,t,!m,n,!t||ee.test(e)&&be(t.parentNode)||t),n},n.sortStable=x.split("").sort(M).join("")===x,n.detectDuplicates=!!d,h(),n.sortDetached=ce(function(e){return 1&e.compareDocumentPosition(p.createElement("fieldset"))}),ce(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||de("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),n.attributes&&ce(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||de("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),ce(function(e){return null==e.getAttribute("disabled")})||de(_,function(e,t,n){var r;if(!n)return!0===e[t]?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null}),se}(r);C.find=E,C.expr=E.selectors,C.expr[":"]=C.expr.pseudos,C.uniqueSort=C.unique=E.uniqueSort,C.text=E.getText,C.isXMLDoc=E.isXML,C.contains=E.contains,C.escapeSelector=E.escape;var q=function(e,t,n){for(var r=[],i=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(i&&C(e).is(n))break;r.push(e)}return r},M=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},A=C.expr.match.needsContext;function N(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var O=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function D(e,t,n){return b(t)?C.grep(e,function(e,r){return!!t.call(e,r,e)!==n}):t.nodeType?C.grep(e,function(e){return e===t!==n}):"string"!=typeof t?C.grep(e,function(e){return c.call(t,e)>-1!==n}):C.filter(t,e,n)}C.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?C.find.matchesSelector(r,e)?[r]:[]:C.find.matches(e,C.grep(t,function(e){return 1===e.nodeType}))},C.fn.extend({find:function(e){var t,n,r=this.length,i=this;if("string"!=typeof e)return this.pushStack(C(e).filter(function(){for(t=0;t<r;t++)if(C.contains(i[t],this))return!0}));for(n=this.pushStack([]),t=0;t<r;t++)C.find(e,i[t],n);return r>1?C.uniqueSort(n):n},filter:function(e){return this.pushStack(D(this,e||[],!1))},not:function(e){return this.pushStack(D(this,e||[],!0))},is:function(e){return!!D(this,"string"==typeof e&&A.test(e)?C(e):e||[],!1).length}});var z,L=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(C.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||z,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:L.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof C?t[0]:t,C.merge(this,C.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:y,!0)),O.test(r[1])&&C.isPlainObject(t))for(r in t)b(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(i=y.getElementById(r[2]))&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):b(e)?void 0!==n.ready?n.ready(e):e(C):C.makeArray(e,this)}).prototype=C.fn,z=C(y);var I=/^(?:parents|prev(?:Until|All))/,_={children:!0,contents:!0,next:!0,prev:!0};function R(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}C.fn.extend({has:function(e){var t=C(e,this),n=t.length;return this.filter(function(){for(var e=0;e<n;e++)if(C.contains(this,t[e]))return!0})},closest:function(e,t){var n,r=0,i=this.length,a=[],o="string"!=typeof e&&C(e);if(!A.test(e))for(;r<i;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(o?o.index(n)>-1:1===n.nodeType&&C.find.matchesSelector(n,e))){a.push(n);break}return this.pushStack(a.length>1?C.uniqueSort(a):a)},index:function(e){return e?"string"==typeof e?c.call(C(e),this[0]):c.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(C.uniqueSort(C.merge(this.get(),C(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),C.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return q(e,"parentNode")},parentsUntil:function(e,t,n){return q(e,"parentNode",n)},next:function(e){return R(e,"nextSibling")},prev:function(e){return R(e,"previousSibling")},nextAll:function(e){return q(e,"nextSibling")},prevAll:function(e){return q(e,"previousSibling")},nextUntil:function(e,t,n){return q(e,"nextSibling",n)},prevUntil:function(e,t,n){return q(e,"previousSibling",n)},siblings:function(e){return M((e.parentNode||{}).firstChild,e)},children:function(e){return M(e.firstChild)},contents:function(e){return null!=e.contentDocument&&o(e.contentDocument)?e.contentDocument:(N(e,"template")&&(e=e.content||e),C.merge([],e.childNodes))}},function(e,t){C.fn[e]=function(n,r){var i=C.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=C.filter(r,i)),this.length>1&&(_[e]||C.uniqueSort(i),I.test(e)&&i.reverse()),this.pushStack(i)}});var B=/[^\x20\t\r\n\f]+/g;function P(e){return e}function j(e){throw e}function H(e,t,n,r){var i;try{e&&b(i=e.promise)?i.call(e).done(t).fail(n):e&&b(i=e.then)?i.call(e,t,n):t.apply(void 0,[e].slice(r))}catch(e){n.apply(void 0,[e])}}C.Callbacks=function(e){e="string"==typeof e?function(e){var t={};return C.each(e.match(B)||[],function(e,n){t[n]=!0}),t}(e):C.extend({},e);var t,n,r,i,a=[],o=[],s=-1,l=function(){for(i=i||e.once,r=t=!0;o.length;s=-1)for(n=o.shift();++s<a.length;)!1===a[s].apply(n[0],n[1])&&e.stopOnFalse&&(s=a.length,n=!1);e.memory||(n=!1),t=!1,i&&(a=n?[]:"")},u={add:function(){return a&&(n&&!t&&(s=a.length-1,o.push(n)),function t(n){C.each(n,function(n,r){b(r)?e.unique&&u.has(r)||a.push(r):r&&r.length&&"string"!==k(r)&&t(r)})}(arguments),n&&!t&&l()),this},remove:function(){return C.each(arguments,function(e,t){for(var n;(n=C.inArray(t,a,n))>-1;)a.splice(n,1),n<=s&&s--}),this},has:function(e){return e?C.inArray(e,a)>-1:a.length>0},empty:function(){return a&&(a=[]),this},disable:function(){return i=o=[],a=n="",this},disabled:function(){return!a},lock:function(){return i=o=[],n||t||(a=n=""),this},locked:function(){return!!i},fireWith:function(e,n){return i||(n=[e,(n=n||[]).slice?n.slice():n],o.push(n),t||l()),this},fire:function(){return u.fireWith(this,arguments),this},fired:function(){return!!r}};return u},C.extend({Deferred:function(e){var t=[["notify","progress",C.Callbacks("memory"),C.Callbacks("memory"),2],["resolve","done",C.Callbacks("once memory"),C.Callbacks("once memory"),0,"resolved"],["reject","fail",C.Callbacks("once memory"),C.Callbacks("once memory"),1,"rejected"]],n="pending",i={state:function(){return n},always:function(){return a.done(arguments).fail(arguments),this},catch:function(e){return i.then(null,e)},pipe:function(){var e=arguments;return C.Deferred(function(n){C.each(t,function(t,r){var i=b(e[r[4]])&&e[r[4]];a[r[1]](function(){var e=i&&i.apply(this,arguments);e&&b(e.promise)?e.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[r[0]+"With"](this,i?[e]:arguments)})}),e=null}).promise()},then:function(e,n,i){var a=0;function o(e,t,n,i){return function(){var s=this,l=arguments,u=function(){var r,u;if(!(e<a)){if((r=n.apply(s,l))===t.promise())throw new TypeError("Thenable self-resolution");u=r&&("object"==typeof r||"function"==typeof r)&&r.then,b(u)?i?u.call(r,o(a,t,P,i),o(a,t,j,i)):(a++,u.call(r,o(a,t,P,i),o(a,t,j,i),o(a,t,P,t.notifyWith))):(n!==P&&(s=void 0,l=[r]),(i||t.resolveWith)(s,l))}},c=i?u:function(){try{u()}catch(r){C.Deferred.exceptionHook&&C.Deferred.exceptionHook(r,c.stackTrace),e+1>=a&&(n!==j&&(s=void 0,l=[r]),t.rejectWith(s,l))}};e?c():(C.Deferred.getStackHook&&(c.stackTrace=C.Deferred.getStackHook()),r.setTimeout(c))}}return C.Deferred(function(r){t[0][3].add(o(0,r,b(i)?i:P,r.notifyWith)),t[1][3].add(o(0,r,b(e)?e:P)),t[2][3].add(o(0,r,b(n)?n:j))}).promise()},promise:function(e){return null!=e?C.extend(e,i):i}},a={};return C.each(t,function(e,r){var o=r[2],s=r[5];i[r[1]]=o.add,s&&o.add(function(){n=s},t[3-e][2].disable,t[3-e][3].disable,t[0][2].lock,t[0][3].lock),o.add(r[3].fire),a[r[0]]=function(){return a[r[0]+"With"](this===a?void 0:this,arguments),this},a[r[0]+"With"]=o.fireWith}),i.promise(a),e&&e.call(a,a),a},when:function(e){var t=arguments.length,n=t,r=Array(n),i=s.call(arguments),a=C.Deferred(),o=function(e){return function(n){r[e]=this,i[e]=arguments.length>1?s.call(arguments):n,--t||a.resolveWith(r,i)}};if(t<=1&&(H(e,a.done(o(n)).resolve,a.reject,!t),"pending"===a.state()||b(i[n]&&i[n].then)))return a.then();for(;n--;)H(i[n],o(n),a.reject);return a.promise()}});var F=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;C.Deferred.exceptionHook=function(e,t){r.console&&r.console.warn&&e&&F.test(e.name)&&r.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},C.readyException=function(e){r.setTimeout(function(){throw e})};var U=C.Deferred();function Q(){y.removeEventListener("DOMContentLoaded",Q),r.removeEventListener("load",Q),C.ready()}C.fn.ready=function(e){return U.then(e).catch(function(e){C.readyException(e)}),this},C.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--C.readyWait:C.isReady)||(C.isReady=!0,!0!==e&&--C.readyWait>0||U.resolveWith(y,[C]))}}),C.ready.then=U.then,"complete"===y.readyState||"loading"!==y.readyState&&!y.documentElement.doScroll?r.setTimeout(C.ready):(y.addEventListener("DOMContentLoaded",Q),r.addEventListener("load",Q));var W=function(e,t,n,r,i,a,o){var s=0,l=e.length,u=null==n;if("object"===k(n))for(s in i=!0,n)W(e,t,s,n[s],!0,a,o);else if(void 0!==r&&(i=!0,b(r)||(o=!0),u&&(o?(t.call(e,r),t=null):(u=t,t=function(e,t,n){return u.call(C(e),n)})),t))for(;s<l;s++)t(e[s],n,o?r:r.call(e[s],s,t(e[s],n)));return i?e:u?t.call(e):l?t(e[0],n):a},V=/^-ms-/,$=/-([a-z])/g;function G(e,t){return t.toUpperCase()}function K(e){return e.replace(V,"ms-").replace($,G)}var X=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function Y(){this.expando=C.expando+Y.uid++}Y.uid=1,Y.prototype={cache:function(e){var t=e[this.expando];return t||(t={},X(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var r,i=this.cache(e);if("string"==typeof t)i[K(t)]=n;else for(r in t)i[K(r)]=t[r];return i},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][K(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,r=e[this.expando];if(void 0!==r){if(void 0!==t){n=(t=Array.isArray(t)?t.map(K):(t=K(t))in r?[t]:t.match(B)||[]).length;for(;n--;)delete r[t[n]]}(void 0===t||C.isEmptyObject(r))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!C.isEmptyObject(t)}};var Z=new Y,J=new Y,ee=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,te=/[A-Z]/g;function ne(e,t,n){var r;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(te,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(r))){try{n=function(e){return"true"===e||"false"!==e&&("null"===e?null:e===+e+""?+e:ee.test(e)?JSON.parse(e):e)}(n)}catch(e){}J.set(e,t,n)}else n=void 0;return n}C.extend({hasData:function(e){return J.hasData(e)||Z.hasData(e)},data:function(e,t,n){return J.access(e,t,n)},removeData:function(e,t){J.remove(e,t)},_data:function(e,t,n){return Z.access(e,t,n)},_removeData:function(e,t){Z.remove(e,t)}}),C.fn.extend({data:function(e,t){var n,r,i,a=this[0],o=a&&a.attributes;if(void 0===e){if(this.length&&(i=J.get(a),1===a.nodeType&&!Z.get(a,"hasDataAttrs"))){for(n=o.length;n--;)o[n]&&0===(r=o[n].name).indexOf("data-")&&(r=K(r.slice(5)),ne(a,r,i[r]));Z.set(a,"hasDataAttrs",!0)}return i}return"object"==typeof e?this.each(function(){J.set(this,e)}):W(this,function(t){var n;if(a&&void 0===t)return void 0!==(n=J.get(a,e))||void 0!==(n=ne(a,e))?n:void 0;this.each(function(){J.set(this,e,t)})},null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each(function(){J.remove(this,e)})}}),C.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=Z.get(e,t),n&&(!r||Array.isArray(n)?r=Z.access(e,t,C.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=C.queue(e,t),r=n.length,i=n.shift(),a=C._queueHooks(e,t);"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete a.stop,i.call(e,function(){C.dequeue(e,t)},a)),!r&&a&&a.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return Z.get(e,n)||Z.access(e,n,{empty:C.Callbacks("once memory").add(function(){Z.remove(e,[t+"queue",n])})})}}),C.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?C.queue(this[0],e):void 0===t?this:this.each(function(){var n=C.queue(this,e,t);C._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&C.dequeue(this,e)})},dequeue:function(e){return this.each(function(){C.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,i=C.Deferred(),a=this,o=this.length,s=function(){--r||i.resolveWith(a,[a])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";o--;)(n=Z.get(a[o],e+"queueHooks"))&&n.empty&&(r++,n.empty.add(s));return s(),i.promise(t)}});var re=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,ie=new RegExp("^(?:([+-])=|)("+re+")([a-z%]*)$","i"),ae=["Top","Right","Bottom","Left"],oe=y.documentElement,se=function(e){return C.contains(e.ownerDocument,e)},le={composed:!0};oe.getRootNode&&(se=function(e){return C.contains(e.ownerDocument,e)||e.getRootNode(le)===e.ownerDocument});var ue=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&se(e)&&"none"===C.css(e,"display")};function ce(e,t,n,r){var i,a,o=20,s=r?function(){return r.cur()}:function(){return C.css(e,t,"")},l=s(),u=n&&n[3]||(C.cssNumber[t]?"":"px"),c=e.nodeType&&(C.cssNumber[t]||"px"!==u&&+l)&&ie.exec(C.css(e,t));if(c&&c[3]!==u){for(l/=2,u=u||c[3],c=+l||1;o--;)C.style(e,t,c+u),(1-a)*(1-(a=s()/l||.5))<=0&&(o=0),c/=a;c*=2,C.style(e,t,c+u),n=n||[]}return n&&(c=+c||+l||0,i=n[1]?c+(n[1]+1)*n[2]:+n[2],r&&(r.unit=u,r.start=c,r.end=i)),i}var de={};function he(e){var t,n=e.ownerDocument,r=e.nodeName,i=de[r];return i||(t=n.body.appendChild(n.createElement(r)),i=C.css(t,"display"),t.parentNode.removeChild(t),"none"===i&&(i="block"),de[r]=i,i)}function pe(e,t){for(var n,r,i=[],a=0,o=e.length;a<o;a++)(r=e[a]).style&&(n=r.style.display,t?("none"===n&&(i[a]=Z.get(r,"display")||null,i[a]||(r.style.display="")),""===r.style.display&&ue(r)&&(i[a]=he(r))):"none"!==n&&(i[a]="none",Z.set(r,"display",n)));for(a=0;a<o;a++)null!=i[a]&&(e[a].style.display=i[a]);return e}C.fn.extend({show:function(){return pe(this,!0)},hide:function(){return pe(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){ue(this)?C(this).show():C(this).hide()})}});var fe,me,ge=/^(?:checkbox|radio)$/i,be=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,ve=/^$|^module$|\/(?:java|ecma)script/i;fe=y.createDocumentFragment().appendChild(y.createElement("div")),(me=y.createElement("input")).setAttribute("type","radio"),me.setAttribute("checked","checked"),me.setAttribute("name","t"),fe.appendChild(me),g.checkClone=fe.cloneNode(!0).cloneNode(!0).lastChild.checked,fe.innerHTML="<textarea>x</textarea>",g.noCloneChecked=!!fe.cloneNode(!0).lastChild.defaultValue,fe.innerHTML="<option></option>",g.option=!!fe.lastChild;var ye={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function xe(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&N(e,t)?C.merge([e],n):n}function we(e,t){for(var n=0,r=e.length;n<r;n++)Z.set(e[n],"globalEval",!t||Z.get(t[n],"globalEval"))}ye.tbody=ye.tfoot=ye.colgroup=ye.caption=ye.thead,ye.th=ye.td,g.option||(ye.optgroup=ye.option=[1,"<select multiple='multiple'>","</select>"]);var ke=/<|&#?\w+;/;function Se(e,t,n,r,i){for(var a,o,s,l,u,c,d=t.createDocumentFragment(),h=[],p=0,f=e.length;p<f;p++)if((a=e[p])||0===a)if("object"===k(a))C.merge(h,a.nodeType?[a]:a);else if(ke.test(a)){for(o=o||d.appendChild(t.createElement("div")),s=(be.exec(a)||["",""])[1].toLowerCase(),l=ye[s]||ye._default,o.innerHTML=l[1]+C.htmlPrefilter(a)+l[2],c=l[0];c--;)o=o.lastChild;C.merge(h,o.childNodes),(o=d.firstChild).textContent=""}else h.push(t.createTextNode(a));for(d.textContent="",p=0;a=h[p++];)if(r&&C.inArray(a,r)>-1)i&&i.push(a);else if(u=se(a),o=xe(d.appendChild(a),"script"),u&&we(o),n)for(c=0;a=o[c++];)ve.test(a.type||"")&&n.push(a);return d}var Ce=/^([^.]*)(?:\.(.+)|)/;function Te(){return!0}function Ee(){return!1}function qe(e,t){return e===function(){try{return y.activeElement}catch(e){}}()==("focus"===t)}function Me(e,t,n,r,i,a){var o,s;if("object"==typeof t){for(s in"string"!=typeof n&&(r=r||n,n=void 0),t)Me(e,s,n,r,t[s],a);return e}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),!1===i)i=Ee;else if(!i)return e;return 1===a&&(o=i,i=function(e){return C().off(e),o.apply(this,arguments)},i.guid=o.guid||(o.guid=C.guid++)),e.each(function(){C.event.add(this,t,i,r,n)})}function Ae(e,t,n){n?(Z.set(e,t,!1),C.event.add(e,t,{namespace:!1,handler:function(e){var r,i,a=Z.get(this,t);if(1&e.isTrigger&&this[t]){if(a.length)(C.event.special[t]||{}).delegateType&&e.stopPropagation();else if(a=s.call(arguments),Z.set(this,t,a),r=n(this,t),this[t](),a!==(i=Z.get(this,t))||r?Z.set(this,t,!1):i={},a!==i)return e.stopImmediatePropagation(),e.preventDefault(),i&&i.value}else a.length&&(Z.set(this,t,{value:C.event.trigger(C.extend(a[0],C.Event.prototype),a.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===Z.get(e,t)&&C.event.add(e,t,Te)}C.event={global:{},add:function(e,t,n,r,i){var a,o,s,l,u,c,d,h,p,f,m,g=Z.get(e);if(X(e))for(n.handler&&(n=(a=n).handler,i=a.selector),i&&C.find.matchesSelector(oe,i),n.guid||(n.guid=C.guid++),(l=g.events)||(l=g.events=Object.create(null)),(o=g.handle)||(o=g.handle=function(t){return void 0!==C&&C.event.triggered!==t.type?C.event.dispatch.apply(e,arguments):void 0}),u=(t=(t||"").match(B)||[""]).length;u--;)p=m=(s=Ce.exec(t[u])||[])[1],f=(s[2]||"").split(".").sort(),p&&(d=C.event.special[p]||{},p=(i?d.delegateType:d.bindType)||p,d=C.event.special[p]||{},c=C.extend({type:p,origType:m,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&C.expr.match.needsContext.test(i),namespace:f.join(".")},a),(h=l[p])||((h=l[p]=[]).delegateCount=0,d.setup&&!1!==d.setup.call(e,r,f,o)||e.addEventListener&&e.addEventListener(p,o)),d.add&&(d.add.call(e,c),c.handler.guid||(c.handler.guid=n.guid)),i?h.splice(h.delegateCount++,0,c):h.push(c),C.event.global[p]=!0)},remove:function(e,t,n,r,i){var a,o,s,l,u,c,d,h,p,f,m,g=Z.hasData(e)&&Z.get(e);if(g&&(l=g.events)){for(u=(t=(t||"").match(B)||[""]).length;u--;)if(p=m=(s=Ce.exec(t[u])||[])[1],f=(s[2]||"").split(".").sort(),p){for(d=C.event.special[p]||{},h=l[p=(r?d.delegateType:d.bindType)||p]||[],s=s[2]&&new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),o=a=h.length;a--;)c=h[a],!i&&m!==c.origType||n&&n.guid!==c.guid||s&&!s.test(c.namespace)||r&&r!==c.selector&&("**"!==r||!c.selector)||(h.splice(a,1),c.selector&&h.delegateCount--,d.remove&&d.remove.call(e,c));o&&!h.length&&(d.teardown&&!1!==d.teardown.call(e,f,g.handle)||C.removeEvent(e,p,g.handle),delete l[p])}else for(p in l)C.event.remove(e,p+t[u],n,r,!0);C.isEmptyObject(l)&&Z.remove(e,"handle events")}},dispatch:function(e){var t,n,r,i,a,o,s=new Array(arguments.length),l=C.event.fix(e),u=(Z.get(this,"events")||Object.create(null))[l.type]||[],c=C.event.special[l.type]||{};for(s[0]=l,t=1;t<arguments.length;t++)s[t]=arguments[t];if(l.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,l)){for(o=C.event.handlers.call(this,l,u),t=0;(i=o[t++])&&!l.isPropagationStopped();)for(l.currentTarget=i.elem,n=0;(a=i.handlers[n++])&&!l.isImmediatePropagationStopped();)l.rnamespace&&!1!==a.namespace&&!l.rnamespace.test(a.namespace)||(l.handleObj=a,l.data=a.data,void 0!==(r=((C.event.special[a.origType]||{}).handle||a.handler).apply(i.elem,s))&&!1===(l.result=r)&&(l.preventDefault(),l.stopPropagation()));return c.postDispatch&&c.postDispatch.call(this,l),l.result}},handlers:function(e,t){var n,r,i,a,o,s=[],l=t.delegateCount,u=e.target;if(l&&u.nodeType&&!("click"===e.type&&e.button>=1))for(;u!==this;u=u.parentNode||this)if(1===u.nodeType&&("click"!==e.type||!0!==u.disabled)){for(a=[],o={},n=0;n<l;n++)void 0===o[i=(r=t[n]).selector+" "]&&(o[i]=r.needsContext?C(i,this).index(u)>-1:C.find(i,this,null,[u]).length),o[i]&&a.push(r);a.length&&s.push({elem:u,handlers:a})}return u=this,l<t.length&&s.push({elem:u,handlers:t.slice(l)}),s},addProp:function(e,t){Object.defineProperty(C.Event.prototype,e,{enumerable:!0,configurable:!0,get:b(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(e){return e[C.expando]?e:new C.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return ge.test(t.type)&&t.click&&N(t,"input")&&Ae(t,"click",Te),!1},trigger:function(e){var t=this||e;return ge.test(t.type)&&t.click&&N(t,"input")&&Ae(t,"click"),!0},_default:function(e){var t=e.target;return ge.test(t.type)&&t.click&&N(t,"input")&&Z.get(t,"click")||N(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},C.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},C.Event=function(e,t){if(!(this instanceof C.Event))return new C.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?Te:Ee,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&C.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[C.expando]=!0},C.Event.prototype={constructor:C.Event,isDefaultPrevented:Ee,isPropagationStopped:Ee,isImmediatePropagationStopped:Ee,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=Te,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=Te,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=Te,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},C.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},C.event.addProp),C.each({focus:"focusin",blur:"focusout"},function(e,t){C.event.special[e]={setup:function(){return Ae(this,e,qe),!1},trigger:function(){return Ae(this,e),!0},_default:function(){return!0},delegateType:t}}),C.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,t){C.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=e.relatedTarget,i=e.handleObj;return r&&(r===this||C.contains(this,r))||(e.type=i.origType,n=i.handler.apply(this,arguments),e.type=t),n}}}),C.fn.extend({on:function(e,t,n,r){return Me(this,e,t,n,r)},one:function(e,t,n,r){return Me(this,e,t,n,r,1)},off:function(e,t,n){var r,i;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,C(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof e){for(i in e)this.off(i,t,e[i]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=Ee),this.each(function(){C.event.remove(this,e,n,t)})}});var Ne=/<script|<style|<link/i,Oe=/checked\s*(?:[^=]|=\s*.checked.)/i,De=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function ze(e,t){return N(e,"table")&&N(11!==t.nodeType?t:t.firstChild,"tr")&&C(e).children("tbody")[0]||e}function Le(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Ie(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function _e(e,t){var n,r,i,a,o,s;if(1===t.nodeType){if(Z.hasData(e)&&(s=Z.get(e).events))for(i in Z.remove(t,"handle events"),s)for(n=0,r=s[i].length;n<r;n++)C.event.add(t,i,s[i][n]);J.hasData(e)&&(a=J.access(e),o=C.extend({},a),J.set(t,o))}}function Re(e,t){var n=t.nodeName.toLowerCase();"input"===n&&ge.test(e.type)?t.checked=e.checked:"input"!==n&&"textarea"!==n||(t.defaultValue=e.defaultValue)}function Be(e,t,n,r){t=l(t);var i,a,o,s,u,c,d=0,h=e.length,p=h-1,f=t[0],m=b(f);if(m||h>1&&"string"==typeof f&&!g.checkClone&&Oe.test(f))return e.each(function(i){var a=e.eq(i);m&&(t[0]=f.call(this,i,a.html())),Be(a,t,n,r)});if(h&&(a=(i=Se(t,e[0].ownerDocument,!1,e,r)).firstChild,1===i.childNodes.length&&(i=a),a||r)){for(s=(o=C.map(xe(i,"script"),Le)).length;d<h;d++)u=i,d!==p&&(u=C.clone(u,!0,!0),s&&C.merge(o,xe(u,"script"))),n.call(e[d],u,d);if(s)for(c=o[o.length-1].ownerDocument,C.map(o,Ie),d=0;d<s;d++)u=o[d],ve.test(u.type||"")&&!Z.access(u,"globalEval")&&C.contains(c,u)&&(u.src&&"module"!==(u.type||"").toLowerCase()?C._evalUrl&&!u.noModule&&C._evalUrl(u.src,{nonce:u.nonce||u.getAttribute("nonce")},c):w(u.textContent.replace(De,""),u,c))}return e}function Pe(e,t,n){for(var r,i=t?C.filter(t,e):e,a=0;null!=(r=i[a]);a++)n||1!==r.nodeType||C.cleanData(xe(r)),r.parentNode&&(n&&se(r)&&we(xe(r,"script")),r.parentNode.removeChild(r));return e}C.extend({htmlPrefilter:function(e){return e},clone:function(e,t,n){var r,i,a,o,s=e.cloneNode(!0),l=se(e);if(!(g.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||C.isXMLDoc(e)))for(o=xe(s),r=0,i=(a=xe(e)).length;r<i;r++)Re(a[r],o[r]);if(t)if(n)for(a=a||xe(e),o=o||xe(s),r=0,i=a.length;r<i;r++)_e(a[r],o[r]);else _e(e,s);return(o=xe(s,"script")).length>0&&we(o,!l&&xe(e,"script")),s},cleanData:function(e){for(var t,n,r,i=C.event.special,a=0;void 0!==(n=e[a]);a++)if(X(n)){if(t=n[Z.expando]){if(t.events)for(r in t.events)i[r]?C.event.remove(n,r):C.removeEvent(n,r,t.handle);n[Z.expando]=void 0}n[J.expando]&&(n[J.expando]=void 0)}}}),C.fn.extend({detach:function(e){return Pe(this,e,!0)},remove:function(e){return Pe(this,e)},text:function(e){return W(this,function(e){return void 0===e?C.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return Be(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||ze(this,e).appendChild(e)})},prepend:function(){return Be(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=ze(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return Be(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return Be(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(C.cleanData(xe(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return C.clone(this,e,t)})},html:function(e){return W(this,function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Ne.test(e)&&!ye[(be.exec(e)||["",""])[1].toLowerCase()]){e=C.htmlPrefilter(e);try{for(;n<r;n++)1===(t=this[n]||{}).nodeType&&(C.cleanData(xe(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=[];return Be(this,arguments,function(t){var n=this.parentNode;C.inArray(this,e)<0&&(C.cleanData(xe(this)),n&&n.replaceChild(t,this))},e)}}),C.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){C.fn[e]=function(e){for(var n,r=[],i=C(e),a=i.length-1,o=0;o<=a;o++)n=o===a?this:this.clone(!0),C(i[o])[t](n),u.apply(r,n.get());return this.pushStack(r)}});var je=new RegExp("^("+re+")(?!px)[a-z%]+$","i"),He=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=r),t.getComputedStyle(e)},Fe=function(e,t,n){var r,i,a={};for(i in t)a[i]=e.style[i],e.style[i]=t[i];for(i in r=n.call(e),t)e.style[i]=a[i];return r},Ue=new RegExp(ae.join("|"),"i");function Qe(e,t,n){var r,i,a,o,s=e.style;return(n=n||He(e))&&(""!==(o=n.getPropertyValue(t)||n[t])||se(e)||(o=C.style(e,t)),!g.pixelBoxStyles()&&je.test(o)&&Ue.test(t)&&(r=s.width,i=s.minWidth,a=s.maxWidth,s.minWidth=s.maxWidth=s.width=o,o=n.width,s.width=r,s.minWidth=i,s.maxWidth=a)),void 0!==o?o+"":o}function We(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){function e(){if(c){u.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",c.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",oe.appendChild(u).appendChild(c);var e=r.getComputedStyle(c);n="1%"!==e.top,l=12===t(e.marginLeft),c.style.right="60%",o=36===t(e.right),i=36===t(e.width),c.style.position="absolute",a=12===t(c.offsetWidth/3),oe.removeChild(u),c=null}}function t(e){return Math.round(parseFloat(e))}var n,i,a,o,s,l,u=y.createElement("div"),c=y.createElement("div");c.style&&(c.style.backgroundClip="content-box",c.cloneNode(!0).style.backgroundClip="",g.clearCloneStyle="content-box"===c.style.backgroundClip,C.extend(g,{boxSizingReliable:function(){return e(),i},pixelBoxStyles:function(){return e(),o},pixelPosition:function(){return e(),n},reliableMarginLeft:function(){return e(),l},scrollboxSize:function(){return e(),a},reliableTrDimensions:function(){var e,t,n,i;return null==s&&(e=y.createElement("table"),t=y.createElement("tr"),n=y.createElement("div"),e.style.cssText="position:absolute;left:-11111px;border-collapse:separate",t.style.cssText="border:1px solid",t.style.height="1px",n.style.height="9px",n.style.display="block",oe.appendChild(e).appendChild(t).appendChild(n),i=r.getComputedStyle(t),s=parseInt(i.height,10)+parseInt(i.borderTopWidth,10)+parseInt(i.borderBottomWidth,10)===t.offsetHeight,oe.removeChild(e)),s}}))}();var Ve=["Webkit","Moz","ms"],$e=y.createElement("div").style,Ge={};function Ke(e){return C.cssProps[e]||Ge[e]||(e in $e?e:Ge[e]=function(e){for(var t=e[0].toUpperCase()+e.slice(1),n=Ve.length;n--;)if((e=Ve[n]+t)in $e)return e}(e)||e)}var Xe=/^(none|table(?!-c[ea]).+)/,Ye=/^--/,Ze={position:"absolute",visibility:"hidden",display:"block"},Je={letterSpacing:"0",fontWeight:"400"};function et(e,t,n){var r=ie.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function tt(e,t,n,r,i,a){var o="width"===t?1:0,s=0,l=0;if(n===(r?"border":"content"))return 0;for(;o<4;o+=2)"margin"===n&&(l+=C.css(e,n+ae[o],!0,i)),r?("content"===n&&(l-=C.css(e,"padding"+ae[o],!0,i)),"margin"!==n&&(l-=C.css(e,"border"+ae[o]+"Width",!0,i))):(l+=C.css(e,"padding"+ae[o],!0,i),"padding"!==n?l+=C.css(e,"border"+ae[o]+"Width",!0,i):s+=C.css(e,"border"+ae[o]+"Width",!0,i));return!r&&a>=0&&(l+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-a-l-s-.5))||0),l}function nt(e,t,n){var r=He(e),i=(!g.boxSizingReliable()||n)&&"border-box"===C.css(e,"boxSizing",!1,r),a=i,o=Qe(e,t,r),s="offset"+t[0].toUpperCase()+t.slice(1);if(je.test(o)){if(!n)return o;o="auto"}return(!g.boxSizingReliable()&&i||!g.reliableTrDimensions()&&N(e,"tr")||"auto"===o||!parseFloat(o)&&"inline"===C.css(e,"display",!1,r))&&e.getClientRects().length&&(i="border-box"===C.css(e,"boxSizing",!1,r),(a=s in e)&&(o=e[s])),(o=parseFloat(o)||0)+tt(e,t,n||(i?"border":"content"),a,r,o)+"px"}function rt(e,t,n,r,i){return new rt.prototype.init(e,t,n,r,i)}C.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Qe(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,a,o,s=K(t),l=Ye.test(t),u=e.style;if(l||(t=Ke(s)),o=C.cssHooks[t]||C.cssHooks[s],void 0===n)return o&&"get"in o&&void 0!==(i=o.get(e,!1,r))?i:u[t];"string"==(a=typeof n)&&(i=ie.exec(n))&&i[1]&&(n=ce(e,t,i),a="number"),null!=n&&n==n&&("number"!==a||l||(n+=i&&i[3]||(C.cssNumber[s]?"":"px")),g.clearCloneStyle||""!==n||0!==t.indexOf("background")||(u[t]="inherit"),o&&"set"in o&&void 0===(n=o.set(e,n,r))||(l?u.setProperty(t,n):u[t]=n))}},css:function(e,t,n,r){var i,a,o,s=K(t);return Ye.test(t)||(t=Ke(s)),(o=C.cssHooks[t]||C.cssHooks[s])&&"get"in o&&(i=o.get(e,!0,n)),void 0===i&&(i=Qe(e,t,r)),"normal"===i&&t in Je&&(i=Je[t]),""===n||n?(a=parseFloat(i),!0===n||isFinite(a)?a||0:i):i}}),C.each(["height","width"],function(e,t){C.cssHooks[t]={get:function(e,n,r){if(n)return!Xe.test(C.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?nt(e,t,r):Fe(e,Ze,function(){return nt(e,t,r)})},set:function(e,n,r){var i,a=He(e),o=!g.scrollboxSize()&&"absolute"===a.position,s=(o||r)&&"border-box"===C.css(e,"boxSizing",!1,a),l=r?tt(e,t,r,s,a):0;return s&&o&&(l-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(a[t])-tt(e,t,"border",!1,a)-.5)),l&&(i=ie.exec(n))&&"px"!==(i[3]||"px")&&(e.style[t]=n,n=C.css(e,t)),et(0,n,l)}}}),C.cssHooks.marginLeft=We(g.reliableMarginLeft,function(e,t){if(t)return(parseFloat(Qe(e,"marginLeft"))||e.getBoundingClientRect().left-Fe(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),C.each({margin:"",padding:"",border:"Width"},function(e,t){C.cssHooks[e+t]={expand:function(n){for(var r=0,i={},a="string"==typeof n?n.split(" "):[n];r<4;r++)i[e+ae[r]+t]=a[r]||a[r-2]||a[0];return i}},"margin"!==e&&(C.cssHooks[e+t].set=et)}),C.fn.extend({css:function(e,t){return W(this,function(e,t,n){var r,i,a={},o=0;if(Array.isArray(t)){for(r=He(e),i=t.length;o<i;o++)a[t[o]]=C.css(e,t[o],!1,r);return a}return void 0!==n?C.style(e,t,n):C.css(e,t)},e,t,arguments.length>1)}}),C.Tween=rt,rt.prototype={constructor:rt,init:function(e,t,n,r,i,a){this.elem=e,this.prop=n,this.easing=i||C.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=a||(C.cssNumber[n]?"":"px")},cur:function(){var e=rt.propHooks[this.prop];return e&&e.get?e.get(this):rt.propHooks._default.get(this)},run:function(e){var t,n=rt.propHooks[this.prop];return this.options.duration?this.pos=t=C.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):rt.propHooks._default.set(this),this}},rt.prototype.init.prototype=rt.prototype,rt.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=C.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){C.fx.step[e.prop]?C.fx.step[e.prop](e):1!==e.elem.nodeType||!C.cssHooks[e.prop]&&null==e.elem.style[Ke(e.prop)]?e.elem[e.prop]=e.now:C.style(e.elem,e.prop,e.now+e.unit)}}},rt.propHooks.scrollTop=rt.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},C.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},C.fx=rt.prototype.init,C.fx.step={};var it,at,ot=/^(?:toggle|show|hide)$/,st=/queueHooks$/;function lt(){at&&(!1===y.hidden&&r.requestAnimationFrame?r.requestAnimationFrame(lt):r.setTimeout(lt,C.fx.interval),C.fx.tick())}function ut(){return r.setTimeout(function(){it=void 0}),it=Date.now()}function ct(e,t){var n,r=0,i={height:e};for(t=t?1:0;r<4;r+=2-t)i["margin"+(n=ae[r])]=i["padding"+n]=e;return t&&(i.opacity=i.width=e),i}function dt(e,t,n){for(var r,i=(ht.tweeners[t]||[]).concat(ht.tweeners["*"]),a=0,o=i.length;a<o;a++)if(r=i[a].call(n,t,e))return r}function ht(e,t,n){var r,i,a=0,o=ht.prefilters.length,s=C.Deferred().always(function(){delete l.elem}),l=function(){if(i)return!1;for(var t=it||ut(),n=Math.max(0,u.startTime+u.duration-t),r=1-(n/u.duration||0),a=0,o=u.tweens.length;a<o;a++)u.tweens[a].run(r);return s.notifyWith(e,[u,r,n]),r<1&&o?n:(o||s.notifyWith(e,[u,1,0]),s.resolveWith(e,[u]),!1)},u=s.promise({elem:e,props:C.extend({},t),opts:C.extend(!0,{specialEasing:{},easing:C.easing._default},n),originalProperties:t,originalOptions:n,startTime:it||ut(),duration:n.duration,tweens:[],createTween:function(t,n){var r=C.Tween(e,u.opts,t,n,u.opts.specialEasing[t]||u.opts.easing);return u.tweens.push(r),r},stop:function(t){var n=0,r=t?u.tweens.length:0;if(i)return this;for(i=!0;n<r;n++)u.tweens[n].run(1);return t?(s.notifyWith(e,[u,1,0]),s.resolveWith(e,[u,t])):s.rejectWith(e,[u,t]),this}}),c=u.props;for(function(e,t){var n,r,i,a,o;for(n in e)if(i=t[r=K(n)],a=e[n],Array.isArray(a)&&(i=a[1],a=e[n]=a[0]),n!==r&&(e[r]=a,delete e[n]),(o=C.cssHooks[r])&&"expand"in o)for(n in a=o.expand(a),delete e[r],a)n in e||(e[n]=a[n],t[n]=i);else t[r]=i}(c,u.opts.specialEasing);a<o;a++)if(r=ht.prefilters[a].call(u,e,c,u.opts))return b(r.stop)&&(C._queueHooks(u.elem,u.opts.queue).stop=r.stop.bind(r)),r;return C.map(c,dt,u),b(u.opts.start)&&u.opts.start.call(e,u),u.progress(u.opts.progress).done(u.opts.done,u.opts.complete).fail(u.opts.fail).always(u.opts.always),C.fx.timer(C.extend(l,{elem:e,anim:u,queue:u.opts.queue})),u}C.Animation=C.extend(ht,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return ce(n.elem,e,ie.exec(t),n),n}]},tweener:function(e,t){b(e)?(t=e,e=["*"]):e=e.match(B);for(var n,r=0,i=e.length;r<i;r++)n=e[r],ht.tweeners[n]=ht.tweeners[n]||[],ht.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var r,i,a,o,s,l,u,c,d="width"in t||"height"in t,h=this,p={},f=e.style,m=e.nodeType&&ue(e),g=Z.get(e,"fxshow");for(r in n.queue||(null==(o=C._queueHooks(e,"fx")).unqueued&&(o.unqueued=0,s=o.empty.fire,o.empty.fire=function(){o.unqueued||s()}),o.unqueued++,h.always(function(){h.always(function(){o.unqueued--,C.queue(e,"fx").length||o.empty.fire()})})),t)if(i=t[r],ot.test(i)){if(delete t[r],a=a||"toggle"===i,i===(m?"hide":"show")){if("show"!==i||!g||void 0===g[r])continue;m=!0}p[r]=g&&g[r]||C.style(e,r)}if((l=!C.isEmptyObject(t))||!C.isEmptyObject(p))for(r in d&&1===e.nodeType&&(n.overflow=[f.overflow,f.overflowX,f.overflowY],null==(u=g&&g.display)&&(u=Z.get(e,"display")),"none"===(c=C.css(e,"display"))&&(u?c=u:(pe([e],!0),u=e.style.display||u,c=C.css(e,"display"),pe([e]))),("inline"===c||"inline-block"===c&&null!=u)&&"none"===C.css(e,"float")&&(l||(h.done(function(){f.display=u}),null==u&&(c=f.display,u="none"===c?"":c)),f.display="inline-block")),n.overflow&&(f.overflow="hidden",h.always(function(){f.overflow=n.overflow[0],f.overflowX=n.overflow[1],f.overflowY=n.overflow[2]})),l=!1,p)l||(g?"hidden"in g&&(m=g.hidden):g=Z.access(e,"fxshow",{display:u}),a&&(g.hidden=!m),m&&pe([e],!0),h.done(function(){for(r in m||pe([e]),Z.remove(e,"fxshow"),p)C.style(e,r,p[r])})),l=dt(m?g[r]:0,r,h),r in g||(g[r]=l.start,m&&(l.end=l.start,l.start=0))}],prefilter:function(e,t){t?ht.prefilters.unshift(e):ht.prefilters.push(e)}}),C.speed=function(e,t,n){var r=e&&"object"==typeof e?C.extend({},e):{complete:n||!n&&t||b(e)&&e,duration:e,easing:n&&t||t&&!b(t)&&t};return C.fx.off?r.duration=0:"number"!=typeof r.duration&&(r.duration in C.fx.speeds?r.duration=C.fx.speeds[r.duration]:r.duration=C.fx.speeds._default),null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){b(r.old)&&r.old.call(this),r.queue&&C.dequeue(this,r.queue)},r},C.fn.extend({fadeTo:function(e,t,n,r){return this.filter(ue).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var i=C.isEmptyObject(e),a=C.speed(t,n,r),o=function(){var t=ht(this,C.extend({},e),a);(i||Z.get(this,"finish"))&&t.stop(!0)};return o.finish=o,i||!1===a.queue?this.each(o):this.queue(a.queue,o)},stop:function(e,t,n){var r=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&this.queue(e||"fx",[]),this.each(function(){var t=!0,i=null!=e&&e+"queueHooks",a=C.timers,o=Z.get(this);if(i)o[i]&&o[i].stop&&r(o[i]);else for(i in o)o[i]&&o[i].stop&&st.test(i)&&r(o[i]);for(i=a.length;i--;)a[i].elem!==this||null!=e&&a[i].queue!==e||(a[i].anim.stop(n),t=!1,a.splice(i,1));!t&&n||C.dequeue(this,e)})},finish:function(e){return!1!==e&&(e=e||"fx"),this.each(function(){var t,n=Z.get(this),r=n[e+"queue"],i=n[e+"queueHooks"],a=C.timers,o=r?r.length:0;for(n.finish=!0,C.queue(this,e,[]),i&&i.stop&&i.stop.call(this,!0),t=a.length;t--;)a[t].elem===this&&a[t].queue===e&&(a[t].anim.stop(!0),a.splice(t,1));for(t=0;t<o;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete n.finish})}}),C.each(["toggle","show","hide"],function(e,t){var n=C.fn[t];C.fn[t]=function(e,r,i){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(ct(t,!0),e,r,i)}}),C.each({slideDown:ct("show"),slideUp:ct("hide"),slideToggle:ct("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){C.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}}),C.timers=[],C.fx.tick=function(){var e,t=0,n=C.timers;for(it=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||C.fx.stop(),it=void 0},C.fx.timer=function(e){C.timers.push(e),C.fx.start()},C.fx.interval=13,C.fx.start=function(){at||(at=!0,lt())},C.fx.stop=function(){at=null},C.fx.speeds={slow:600,fast:200,_default:400},C.fn.delay=function(e,t){return e=C.fx&&C.fx.speeds[e]||e,t=t||"fx",this.queue(t,function(t,n){var i=r.setTimeout(t,e);n.stop=function(){r.clearTimeout(i)}})},function(){var e=y.createElement("input"),t=y.createElement("select").appendChild(y.createElement("option"));e.type="checkbox",g.checkOn=""!==e.value,g.optSelected=t.selected,(e=y.createElement("input")).value="t",e.type="radio",g.radioValue="t"===e.value}();var pt,ft=C.expr.attrHandle;C.fn.extend({attr:function(e,t){return W(this,C.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){C.removeAttr(this,e)})}}),C.extend({attr:function(e,t,n){var r,i,a=e.nodeType;if(3!==a&&8!==a&&2!==a)return void 0===e.getAttribute?C.prop(e,t,n):(1===a&&C.isXMLDoc(e)||(i=C.attrHooks[t.toLowerCase()]||(C.expr.match.bool.test(t)?pt:void 0)),void 0!==n?null===n?void C.removeAttr(e,t):i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:(e.setAttribute(t,n+""),n):i&&"get"in i&&null!==(r=i.get(e,t))?r:null==(r=C.find.attr(e,t))?void 0:r)},attrHooks:{type:{set:function(e,t){if(!g.radioValue&&"radio"===t&&N(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r=0,i=t&&t.match(B);if(i&&1===e.nodeType)for(;n=i[r++];)e.removeAttribute(n)}}),pt={set:function(e,t,n){return!1===t?C.removeAttr(e,n):e.setAttribute(n,n),n}},C.each(C.expr.match.bool.source.match(/\w+/g),function(e,t){var n=ft[t]||C.find.attr;ft[t]=function(e,t,r){var i,a,o=t.toLowerCase();return r||(a=ft[o],ft[o]=i,i=null!=n(e,t,r)?o:null,ft[o]=a),i}});var mt=/^(?:input|select|textarea|button)$/i,gt=/^(?:a|area)$/i;function bt(e){return(e.match(B)||[]).join(" ")}function vt(e){return e.getAttribute&&e.getAttribute("class")||""}function yt(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(B)||[]}C.fn.extend({prop:function(e,t){return W(this,C.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each(function(){delete this[C.propFix[e]||e]})}}),C.extend({prop:function(e,t,n){var r,i,a=e.nodeType;if(3!==a&&8!==a&&2!==a)return 1===a&&C.isXMLDoc(e)||(t=C.propFix[t]||t,i=C.propHooks[t]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:e[t]=n:i&&"get"in i&&null!==(r=i.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=C.find.attr(e,"tabindex");return t?parseInt(t,10):mt.test(e.nodeName)||gt.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),g.optSelected||(C.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),C.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){C.propFix[this.toLowerCase()]=this}),C.fn.extend({addClass:function(e){var t,n,r,i,a,o,s,l=0;if(b(e))return this.each(function(t){C(this).addClass(e.call(this,t,vt(this)))});if((t=yt(e)).length)for(;n=this[l++];)if(i=vt(n),r=1===n.nodeType&&" "+bt(i)+" "){for(o=0;a=t[o++];)r.indexOf(" "+a+" ")<0&&(r+=a+" ");i!==(s=bt(r))&&n.setAttribute("class",s)}return this},removeClass:function(e){var t,n,r,i,a,o,s,l=0;if(b(e))return this.each(function(t){C(this).removeClass(e.call(this,t,vt(this)))});if(!arguments.length)return this.attr("class","");if((t=yt(e)).length)for(;n=this[l++];)if(i=vt(n),r=1===n.nodeType&&" "+bt(i)+" "){for(o=0;a=t[o++];)for(;r.indexOf(" "+a+" ")>-1;)r=r.replace(" "+a+" "," ");i!==(s=bt(r))&&n.setAttribute("class",s)}return this},toggleClass:function(e,t){var n=typeof e,r="string"===n||Array.isArray(e);return"boolean"==typeof t&&r?t?this.addClass(e):this.removeClass(e):b(e)?this.each(function(n){C(this).toggleClass(e.call(this,n,vt(this),t),t)}):this.each(function(){var t,i,a,o;if(r)for(i=0,a=C(this),o=yt(e);t=o[i++];)a.hasClass(t)?a.removeClass(t):a.addClass(t);else void 0!==e&&"boolean"!==n||((t=vt(this))&&Z.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||!1===e?"":Z.get(this,"__className__")||""))})},hasClass:function(e){var t,n,r=0;for(t=" "+e+" ";n=this[r++];)if(1===n.nodeType&&(" "+bt(vt(n))+" ").indexOf(t)>-1)return!0;return!1}});var xt=/\r/g;C.fn.extend({val:function(e){var t,n,r,i=this[0];return arguments.length?(r=b(e),this.each(function(n){var i;1===this.nodeType&&(null==(i=r?e.call(this,n,C(this).val()):e)?i="":"number"==typeof i?i+="":Array.isArray(i)&&(i=C.map(i,function(e){return null==e?"":e+""})),(t=C.valHooks[this.type]||C.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,i,"value")||(this.value=i))})):i?(t=C.valHooks[i.type]||C.valHooks[i.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(i,"value"))?n:"string"==typeof(n=i.value)?n.replace(xt,""):null==n?"":n:void 0}}),C.extend({valHooks:{option:{get:function(e){var t=C.find.attr(e,"value");return null!=t?t:bt(C.text(e))}},select:{get:function(e){var t,n,r,i=e.options,a=e.selectedIndex,o="select-one"===e.type,s=o?null:[],l=o?a+1:i.length;for(r=a<0?l:o?a:0;r<l;r++)if(((n=i[r]).selected||r===a)&&!n.disabled&&(!n.parentNode.disabled||!N(n.parentNode,"optgroup"))){if(t=C(n).val(),o)return t;s.push(t)}return s},set:function(e,t){for(var n,r,i=e.options,a=C.makeArray(t),o=i.length;o--;)((r=i[o]).selected=C.inArray(C.valHooks.option.get(r),a)>-1)&&(n=!0);return n||(e.selectedIndex=-1),a}}}}),C.each(["radio","checkbox"],function(){C.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=C.inArray(C(e).val(),t)>-1}},g.checkOn||(C.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}),g.focusin="onfocusin"in r;var wt=/^(?:focusinfocus|focusoutblur)$/,kt=function(e){e.stopPropagation()};C.extend(C.event,{trigger:function(e,t,n,i){var a,o,s,l,u,c,d,h,f=[n||y],m=p.call(e,"type")?e.type:e,g=p.call(e,"namespace")?e.namespace.split("."):[];if(o=h=s=n=n||y,3!==n.nodeType&&8!==n.nodeType&&!wt.test(m+C.event.triggered)&&(m.indexOf(".")>-1&&(g=m.split("."),m=g.shift(),g.sort()),u=m.indexOf(":")<0&&"on"+m,(e=e[C.expando]?e:new C.Event(m,"object"==typeof e&&e)).isTrigger=i?2:3,e.namespace=g.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+g.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=n),t=null==t?[e]:C.makeArray(t,[e]),d=C.event.special[m]||{},i||!d.trigger||!1!==d.trigger.apply(n,t))){if(!i&&!d.noBubble&&!v(n)){for(l=d.delegateType||m,wt.test(l+m)||(o=o.parentNode);o;o=o.parentNode)f.push(o),s=o;s===(n.ownerDocument||y)&&f.push(s.defaultView||s.parentWindow||r)}for(a=0;(o=f[a++])&&!e.isPropagationStopped();)h=o,e.type=a>1?l:d.bindType||m,(c=(Z.get(o,"events")||Object.create(null))[e.type]&&Z.get(o,"handle"))&&c.apply(o,t),(c=u&&o[u])&&c.apply&&X(o)&&(e.result=c.apply(o,t),!1===e.result&&e.preventDefault());return e.type=m,i||e.isDefaultPrevented()||d._default&&!1!==d._default.apply(f.pop(),t)||!X(n)||u&&b(n[m])&&!v(n)&&((s=n[u])&&(n[u]=null),C.event.triggered=m,e.isPropagationStopped()&&h.addEventListener(m,kt),n[m](),e.isPropagationStopped()&&h.removeEventListener(m,kt),C.event.triggered=void 0,s&&(n[u]=s)),e.result}},simulate:function(e,t,n){var r=C.extend(new C.Event,n,{type:e,isSimulated:!0});C.event.trigger(r,null,t)}}),C.fn.extend({trigger:function(e,t){return this.each(function(){C.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return C.event.trigger(e,t,n,!0)}}),g.focusin||C.each({focus:"focusin",blur:"focusout"},function(e,t){var n=function(e){C.event.simulate(t,e.target,C.event.fix(e))};C.event.special[t]={setup:function(){var r=this.ownerDocument||this.document||this,i=Z.access(r,t);i||r.addEventListener(e,n,!0),Z.access(r,t,(i||0)+1)},teardown:function(){var r=this.ownerDocument||this.document||this,i=Z.access(r,t)-1;i?Z.access(r,t,i):(r.removeEventListener(e,n,!0),Z.remove(r,t))}}});var St=r.location,Ct={guid:Date.now()},Tt=/\?/;C.parseXML=function(e){var t,n;if(!e||"string"!=typeof e)return null;try{t=(new r.DOMParser).parseFromString(e,"text/xml")}catch(e){}return n=t&&t.getElementsByTagName("parsererror")[0],t&&!n||C.error("Invalid XML: "+(n?C.map(n.childNodes,function(e){return e.textContent}).join("\n"):e)),t};var Et=/\[\]$/,qt=/\r?\n/g,Mt=/^(?:submit|button|image|reset|file)$/i,At=/^(?:input|select|textarea|keygen)/i;function Nt(e,t,n,r){var i;if(Array.isArray(t))C.each(t,function(t,i){n||Et.test(e)?r(e,i):Nt(e+"["+("object"==typeof i&&null!=i?t:"")+"]",i,n,r)});else if(n||"object"!==k(t))r(e,t);else for(i in t)Nt(e+"["+i+"]",t[i],n,r)}C.param=function(e,t){var n,r=[],i=function(e,t){var n=b(t)?t():t;r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!C.isPlainObject(e))C.each(e,function(){i(this.name,this.value)});else for(n in e)Nt(n,e[n],t,i);return r.join("&")},C.fn.extend({serialize:function(){return C.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=C.prop(this,"elements");return e?C.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!C(this).is(":disabled")&&At.test(this.nodeName)&&!Mt.test(e)&&(this.checked||!ge.test(e))}).map(function(e,t){var n=C(this).val();return null==n?null:Array.isArray(n)?C.map(n,function(e){return{name:t.name,value:e.replace(qt,"\r\n")}}):{name:t.name,value:n.replace(qt,"\r\n")}}).get()}});var Ot=/%20/g,Dt=/#.*$/,zt=/([?&])_=[^&]*/,Lt=/^(.*?):[ \t]*([^\r\n]*)$/gm,It=/^(?:GET|HEAD)$/,_t=/^\/\//,Rt={},Bt={},Pt="*/".concat("*"),jt=y.createElement("a");function Ht(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var r,i=0,a=t.toLowerCase().match(B)||[];if(b(n))for(;r=a[i++];)"+"===r[0]?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function Ft(e,t,n,r){var i={},a=e===Bt;function o(s){var l;return i[s]=!0,C.each(e[s]||[],function(e,s){var u=s(t,n,r);return"string"!=typeof u||a||i[u]?a?!(l=u):void 0:(t.dataTypes.unshift(u),o(u),!1)}),l}return o(t.dataTypes[0])||!i["*"]&&o("*")}function Ut(e,t){var n,r,i=C.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((i[n]?e:r||(r={}))[n]=t[n]);return r&&C.extend(!0,e,r),e}jt.href=St.href,C.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:St.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(St.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Pt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":C.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Ut(Ut(e,C.ajaxSettings),t):Ut(C.ajaxSettings,e)},ajaxPrefilter:Ht(Rt),ajaxTransport:Ht(Bt),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var n,i,a,o,s,l,u,c,d,h,p=C.ajaxSetup({},t),f=p.context||p,m=p.context&&(f.nodeType||f.jquery)?C(f):C.event,g=C.Deferred(),b=C.Callbacks("once memory"),v=p.statusCode||{},x={},w={},k="canceled",S={readyState:0,getResponseHeader:function(e){var t;if(u){if(!o)for(o={};t=Lt.exec(a);)o[t[1].toLowerCase()+" "]=(o[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=o[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return u?a:null},setRequestHeader:function(e,t){return null==u&&(e=w[e.toLowerCase()]=w[e.toLowerCase()]||e,x[e]=t),this},overrideMimeType:function(e){return null==u&&(p.mimeType=e),this},statusCode:function(e){var t;if(e)if(u)S.always(e[S.status]);else for(t in e)v[t]=[v[t],e[t]];return this},abort:function(e){var t=e||k;return n&&n.abort(t),T(0,t),this}};if(g.promise(S),p.url=((e||p.url||St.href)+"").replace(_t,St.protocol+"//"),p.type=t.method||t.type||p.method||p.type,p.dataTypes=(p.dataType||"*").toLowerCase().match(B)||[""],null==p.crossDomain){l=y.createElement("a");try{l.href=p.url,l.href=l.href,p.crossDomain=jt.protocol+"//"+jt.host!=l.protocol+"//"+l.host}catch(e){p.crossDomain=!0}}if(p.data&&p.processData&&"string"!=typeof p.data&&(p.data=C.param(p.data,p.traditional)),Ft(Rt,p,t,S),u)return S;for(d in(c=C.event&&p.global)&&0==C.active++&&C.event.trigger("ajaxStart"),p.type=p.type.toUpperCase(),p.hasContent=!It.test(p.type),i=p.url.replace(Dt,""),p.hasContent?p.data&&p.processData&&0===(p.contentType||"").indexOf("application/x-www-form-urlencoded")&&(p.data=p.data.replace(Ot,"+")):(h=p.url.slice(i.length),p.data&&(p.processData||"string"==typeof p.data)&&(i+=(Tt.test(i)?"&":"?")+p.data,delete p.data),!1===p.cache&&(i=i.replace(zt,"$1"),h=(Tt.test(i)?"&":"?")+"_="+Ct.guid+++h),p.url=i+h),p.ifModified&&(C.lastModified[i]&&S.setRequestHeader("If-Modified-Since",C.lastModified[i]),C.etag[i]&&S.setRequestHeader("If-None-Match",C.etag[i])),(p.data&&p.hasContent&&!1!==p.contentType||t.contentType)&&S.setRequestHeader("Content-Type",p.contentType),S.setRequestHeader("Accept",p.dataTypes[0]&&p.accepts[p.dataTypes[0]]?p.accepts[p.dataTypes[0]]+("*"!==p.dataTypes[0]?", "+Pt+"; q=0.01":""):p.accepts["*"]),p.headers)S.setRequestHeader(d,p.headers[d]);if(p.beforeSend&&(!1===p.beforeSend.call(f,S,p)||u))return S.abort();if(k="abort",b.add(p.complete),S.done(p.success),S.fail(p.error),n=Ft(Bt,p,t,S)){if(S.readyState=1,c&&m.trigger("ajaxSend",[S,p]),u)return S;p.async&&p.timeout>0&&(s=r.setTimeout(function(){S.abort("timeout")},p.timeout));try{u=!1,n.send(x,T)}catch(e){if(u)throw e;T(-1,e)}}else T(-1,"No Transport");function T(e,t,o,l){var d,h,y,x,w,k=t;u||(u=!0,s&&r.clearTimeout(s),n=void 0,a=l||"",S.readyState=e>0?4:0,d=e>=200&&e<300||304===e,o&&(x=function(e,t,n){for(var r,i,a,o,s=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(i in s)if(s[i]&&s[i].test(r)){l.unshift(i);break}if(l[0]in n)a=l[0];else{for(i in n){if(!l[0]||e.converters[i+" "+l[0]]){a=i;break}o||(o=i)}a=a||o}if(a)return a!==l[0]&&l.unshift(a),n[a]}(p,S,o)),!d&&C.inArray("script",p.dataTypes)>-1&&C.inArray("json",p.dataTypes)<0&&(p.converters["text script"]=function(){}),x=function(e,t,n,r){var i,a,o,s,l,u={},c=e.dataTypes.slice();if(c[1])for(o in e.converters)u[o.toLowerCase()]=e.converters[o];for(a=c.shift();a;)if(e.responseFields[a]&&(n[e.responseFields[a]]=t),!l&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=a,a=c.shift())if("*"===a)a=l;else if("*"!==l&&l!==a){if(!(o=u[l+" "+a]||u["* "+a]))for(i in u)if((s=i.split(" "))[1]===a&&(o=u[l+" "+s[0]]||u["* "+s[0]])){!0===o?o=u[i]:!0!==u[i]&&(a=s[0],c.unshift(s[1]));break}if(!0!==o)if(o&&e.throws)t=o(t);else try{t=o(t)}catch(e){return{state:"parsererror",error:o?e:"No conversion from "+l+" to "+a}}}return{state:"success",data:t}}(p,x,S,d),d?(p.ifModified&&((w=S.getResponseHeader("Last-Modified"))&&(C.lastModified[i]=w),(w=S.getResponseHeader("etag"))&&(C.etag[i]=w)),204===e||"HEAD"===p.type?k="nocontent":304===e?k="notmodified":(k=x.state,h=x.data,d=!(y=x.error))):(y=k,!e&&k||(k="error",e<0&&(e=0))),S.status=e,S.statusText=(t||k)+"",d?g.resolveWith(f,[h,k,S]):g.rejectWith(f,[S,k,y]),S.statusCode(v),v=void 0,c&&m.trigger(d?"ajaxSuccess":"ajaxError",[S,p,d?h:y]),b.fireWith(f,[S,k]),c&&(m.trigger("ajaxComplete",[S,p]),--C.active||C.event.trigger("ajaxStop")))}return S},getJSON:function(e,t,n){return C.get(e,t,n,"json")},getScript:function(e,t){return C.get(e,void 0,t,"script")}}),C.each(["get","post"],function(e,t){C[t]=function(e,n,r,i){return b(n)&&(i=i||r,r=n,n=void 0),C.ajax(C.extend({url:e,type:t,dataType:i,data:n,success:r},C.isPlainObject(e)&&e))}}),C.ajaxPrefilter(function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")}),C._evalUrl=function(e,t,n){return C.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){C.globalEval(e,t,n)}})},C.fn.extend({wrapAll:function(e){var t;return this[0]&&(b(e)&&(e=e.call(this[0])),t=C(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e}).append(this)),this},wrapInner:function(e){return b(e)?this.each(function(t){C(this).wrapInner(e.call(this,t))}):this.each(function(){var t=C(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=b(e);return this.each(function(n){C(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(e){return this.parent(e).not("body").each(function(){C(this).replaceWith(this.childNodes)}),this}}),C.expr.pseudos.hidden=function(e){return!C.expr.pseudos.visible(e)},C.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},C.ajaxSettings.xhr=function(){try{return new r.XMLHttpRequest}catch(e){}};var Qt={0:200,1223:204},Wt=C.ajaxSettings.xhr();g.cors=!!Wt&&"withCredentials"in Wt,g.ajax=Wt=!!Wt,C.ajaxTransport(function(e){var t,n;if(g.cors||Wt&&!e.crossDomain)return{send:function(i,a){var o,s=e.xhr();if(s.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(o in e.xhrFields)s[o]=e.xhrFields[o];for(o in e.mimeType&&s.overrideMimeType&&s.overrideMimeType(e.mimeType),e.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest"),i)s.setRequestHeader(o,i[o]);t=function(e){return function(){t&&(t=n=s.onload=s.onerror=s.onabort=s.ontimeout=s.onreadystatechange=null,"abort"===e?s.abort():"error"===e?"number"!=typeof s.status?a(0,"error"):a(s.status,s.statusText):a(Qt[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!=typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=t(),n=s.onerror=s.ontimeout=t("error"),void 0!==s.onabort?s.onabort=n:s.onreadystatechange=function(){4===s.readyState&&r.setTimeout(function(){t&&n()})},t=t("abort");try{s.send(e.hasContent&&e.data||null)}catch(e){if(t)throw e}},abort:function(){t&&t()}}}),C.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),C.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return C.globalEval(e),e}}}),C.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),C.ajaxTransport("script",function(e){var t,n;if(e.crossDomain||e.scriptAttrs)return{send:function(r,i){t=C("<script>").attr(e.scriptAttrs||{}).prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&i("error"===e.type?404:200,e.type)}),y.head.appendChild(t[0])},abort:function(){n&&n()}}});var Vt,$t=[],Gt=/(=)\?(?=&|$)|\?\?/;C.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=$t.pop()||C.expando+"_"+Ct.guid++;return this[e]=!0,e}}),C.ajaxPrefilter("json jsonp",function(e,t,n){var i,a,o,s=!1!==e.jsonp&&(Gt.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Gt.test(e.data)&&"data");if(s||"jsonp"===e.dataTypes[0])return i=e.jsonpCallback=b(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,s?e[s]=e[s].replace(Gt,"$1"+i):!1!==e.jsonp&&(e.url+=(Tt.test(e.url)?"&":"?")+e.jsonp+"="+i),e.converters["script json"]=function(){return o||C.error(i+" was not called"),o[0]},e.dataTypes[0]="json",a=r[i],r[i]=function(){o=arguments},n.always(function(){void 0===a?C(r).removeProp(i):r[i]=a,e[i]&&(e.jsonpCallback=t.jsonpCallback,$t.push(i)),o&&b(a)&&a(o[0]),o=a=void 0}),"script"}),g.createHTMLDocument=((Vt=y.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===Vt.childNodes.length),C.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(g.createHTMLDocument?((r=(t=y.implementation.createHTMLDocument("")).createElement("base")).href=y.location.href,t.head.appendChild(r)):t=y),a=!n&&[],(i=O.exec(e))?[t.createElement(i[1])]:(i=Se([e],t,a),a&&a.length&&C(a).remove(),C.merge([],i.childNodes)));var r,i,a},C.fn.load=function(e,t,n){var r,i,a,o=this,s=e.indexOf(" ");return s>-1&&(r=bt(e.slice(s)),e=e.slice(0,s)),b(t)?(n=t,t=void 0):t&&"object"==typeof t&&(i="POST"),o.length>0&&C.ajax({url:e,type:i||"GET",dataType:"html",data:t}).done(function(e){a=arguments,o.html(r?C("<div>").append(C.parseHTML(e)).find(r):e)}).always(n&&function(e,t){o.each(function(){n.apply(this,a||[e.responseText,t,e])})}),this},C.expr.pseudos.animated=function(e){return C.grep(C.timers,function(t){return e===t.elem}).length},C.offset={setOffset:function(e,t,n){var r,i,a,o,s,l,u=C.css(e,"position"),c=C(e),d={};"static"===u&&(e.style.position="relative"),s=c.offset(),a=C.css(e,"top"),l=C.css(e,"left"),("absolute"===u||"fixed"===u)&&(a+l).indexOf("auto")>-1?(o=(r=c.position()).top,i=r.left):(o=parseFloat(a)||0,i=parseFloat(l)||0),b(t)&&(t=t.call(e,n,C.extend({},s))),null!=t.top&&(d.top=t.top-s.top+o),null!=t.left&&(d.left=t.left-s.left+i),"using"in t?t.using.call(e,d):c.css(d)}},C.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){C.offset.setOffset(this,e,t)});var t,n,r=this[0];return r?r.getClientRects().length?(t=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:t.top+n.pageYOffset,left:t.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],i={top:0,left:0};if("fixed"===C.css(r,"position"))t=r.getBoundingClientRect();else{for(t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;e&&(e===n.body||e===n.documentElement)&&"static"===C.css(e,"position");)e=e.parentNode;e&&e!==r&&1===e.nodeType&&((i=C(e).offset()).top+=C.css(e,"borderTopWidth",!0),i.left+=C.css(e,"borderLeftWidth",!0))}return{top:t.top-i.top-C.css(r,"marginTop",!0),left:t.left-i.left-C.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===C.css(e,"position");)e=e.offsetParent;return e||oe})}}),C.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,t){var n="pageYOffset"===t;C.fn[e]=function(r){return W(this,function(e,r,i){var a;if(v(e)?a=e:9===e.nodeType&&(a=e.defaultView),void 0===i)return a?a[t]:e[r];a?a.scrollTo(n?a.pageXOffset:i,n?i:a.pageYOffset):e[r]=i},e,r,arguments.length)}}),C.each(["top","left"],function(e,t){C.cssHooks[t]=We(g.pixelPosition,function(e,n){if(n)return n=Qe(e,t),je.test(n)?C(e).position()[t]+"px":n})}),C.each({Height:"height",Width:"width"},function(e,t){C.each({padding:"inner"+e,content:t,"":"outer"+e},function(n,r){C.fn[r]=function(i,a){var o=arguments.length&&(n||"boolean"!=typeof i),s=n||(!0===i||!0===a?"margin":"border");return W(this,function(t,n,i){var a;return v(t)?0===r.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(a=t.documentElement,Math.max(t.body["scroll"+e],a["scroll"+e],t.body["offset"+e],a["offset"+e],a["client"+e])):void 0===i?C.css(t,n,s):C.style(t,n,i,s)},t,o?i:void 0,o)}})}),C.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){C.fn[t]=function(e){return this.on(t,e)}}),C.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),C.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,t){C.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}});var Kt=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;C.proxy=function(e,t){var n,r,i;if("string"==typeof t&&(n=e[t],t=e,e=n),b(e))return r=s.call(arguments,2),i=function(){return e.apply(t||this,r.concat(s.call(arguments)))},i.guid=e.guid=e.guid||C.guid++,i},C.holdReady=function(e){e?C.readyWait++:C.ready(!0)},C.isArray=Array.isArray,C.parseJSON=JSON.parse,C.nodeName=N,C.isFunction=b,C.isWindow=v,C.camelCase=K,C.type=k,C.now=Date.now,C.isNumeric=function(e){var t=C.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},C.trim=function(e){return null==e?"":(e+"").replace(Kt,"")},void 0===(n=function(){return C}.apply(t,[]))||(e.exports=n);var Xt=r.jQuery,Yt=r.$;return C.noConflict=function(e){return r.$===C&&(r.$=Yt),e&&r.jQuery===C&&(r.jQuery=Xt),C},void 0===i&&(r.jQuery=r.$=C),C})},703:(e,t,n)=>{var r=n(414);function i(){}function a(){}a.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,a,o){if(o!==r){var s=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 s.name="Invariant Violation",s}}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:a,resetWarningCache:i};return n.PropTypes=n,n}},697:(e,t,n)=>{e.exports=n(703)()},414:e=>{e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},156:e=>{e.exports=r}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var a=t[r]={id:r,exports:{}};return e[r].call(a.exports,a,a.exports,n),a.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return(()=>{n.r(i),n.d(i,{addStyles:()=>t,EditableMathField:()=>r,StaticMathField:()=>a,default:()=>o});var e=n(527);function t(){if(null==document.getElementById("react-mathquill-styles")){var t=document.createElement("style");t.setAttribute("id","react-mathquill-styles"),t.innerHTML=e.Z[0][1],document.getElementsByTagName("head")[0].appendChild(t)}}var r=n(991).Z,a=n(717).Z;const o=r})(),i})())},825:e=>{e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var r="";n.supports&&(r+="@supports (".concat(n.supports,") {")),n.media&&(r+="@media ".concat(n.media," {"));var i=void 0!==n.layer;i&&(r+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),r+=n.css,i&&(r+="}"),n.media&&(r+="}"),n.supports&&(r+="}");var a=n.sourceMap;a&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(a))))," */")),t.styleTagTransform(r,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},841:(e,t,n)=>{n.d(t,{A:()=>s});var r=n(601),i=n.n(r),a=n(314),o=n.n(a)()(i());o.push([e.id,"/* Note that the top left position of the accent bar is set programatically in componentDidMount */\n\n.AccentBar {\n position: absolute;\n z-index: 1;\n width: 360px;\n background-color: #fff;\n border: 1px solid #d0d0d0;\n border-radius: 5px;\n box-shadow: 1px 1px 5px #a0a0a0;\n padding: 8px;\n animation: 0.4s fadeIn1;\n animation-fill-mode: forwards;\n color: black;\n}\n\n.AccentBar-compact {\n display: flex;\n position: absolute;\n z-index: 1;\n background-color: white;\n border: 1px solid #d0d0d0;\n border-radius: 5px;\n box-shadow: 1px 1px 5px #a0a0a0;\n padding: 5px;\n animation: 0.4s fadeIn1;\n animation-fill-mode: forwards;\n color: black;\n}\n\n.AccentBar-outerContainer {\n overflow-y: scroll;\n border-radius: 5px;\n}\n\n.AccentBar-innerContainer {\n height: 350px;\n}\n\n@keyframes fadeIn1 {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n}\n\n.AccentBar .symbols-grid {\n display: grid;\n grid-template-columns: repeat(auto-fill, minmax(36px, 1fr));\n grid-auto-rows: minmax(min-content, max-content);\n grid-gap: 3px;\n}\n\n.AccentBar .insert-grid {\n padding: 5px;\n}\n\n.AccentBar .type-a-letter {\n grid-column: 1/-1;\n color: #a0a0a0;\n font-family: sans-serif;\n font-size: 14px;\n font-weight: bold;\n height: 36px;\n padding-top: 12px;\n padding-left: 20px;\n}\n\n.AccentBar-button {\n font-family: sans-serif;\n font-size: 17px;\n width: 40px;\n height: 36px;\n background: #f4f4f4;\n border-radius: 5px;\n border: 0px;\n padding: 1px;\n}\n\n.AB-compact {\n margin: 0px;\n background: white;\n}\n\n.AB-narrow {\n width: 36px;\n}\n\n.AccentBar-button:hover {\n color: white;\n background: #663676;\n cursor: pointer;\n box-shadow: 1px 1px 3px #808080;\n animation: 2s grow;\n animation-fill-mode: forwards;\n}\n\n@keyframes grow {\n 00% {\n transform: scale(1);\n box-shadow: 0px 0px 0px #808080;\n }\n 10% {\n transform: scale(1.3);\n box-shadow: 1px 1px 3px #808080;\n }\n 90% {\n transform: scale(1.3);\n box-shadow: 1px 1px 3px #808080;\n }\n 100% {\n transform: scale(1.8);\n box-shadow: 1px 1px 3px #808080;\n }\n}\n\n.AccentBar-button:active {\n background: #808080;\n color: white;\n cursor: pointer;\n}\n\n.AccentBar .tabBar {\n background: white;\n text-align: left;\n border: 0px;\n padding: 10px 0;\n}\n\n.AccentBar .tab {\n font-size: 14px;\n font-weight: bold;\n color: #404040;\n text-align: left;\n border: 0px;\n height: 30px;\n padding: 2px 5px 2px 5px;\n margin: 2px;\n border-bottom: 4px solid #d0d0d0;\n}\n\n.AccentBar .tab:hover {\n cursor: pointer;\n}\n\n.AccentBar .tab-selected {\n font-size: 14px;\n font-weight: bold;\n color: #404040;\n text-align: left;\n border: 0px;\n height: 30px;\n padding: 2px 5px 2px 5px;\n margin: 2px;\n border-bottom: 4px solid #663676;\n}\n\n.AccentBar .section-label {\n grid-column: 1/-1;\n font-size: 13px;\n font-weight: bold;\n color: #663676;\n margin-top: 8px;\n margin-left: 8px;\n margin-bottom: 4px;\n}\n\n.AccentBar .replace-section {\n min-height: 70px;\n}\n\n.AccentBar .tabArea {\n animation: 0.4s fadeIn1;\n animation-fill-mode: forwards;\n}\n",""]);const s=o},845:(e,t,n)=>{n.d(t,{A:()=>s});var r=n(601),i=n.n(r),a=n(314),o=n.n(a)()(i());o.push([e.id,"/* Note that the top left position of the toolbar is set programatically in componentDidMount */\n\n.Toolbar {\n position: absolute;\n z-index: 10;\n display: flex;\n height: 42px;\n background-color: white;\n border: 1px solid #d0d0d0;\n border-radius: 5px;\n box-shadow: 1px 1px 5px #a0a0a0;\n animation: 0.5s fadeIn1;\n animation-fill-mode: forwards;\n color: black;\n}\n\n@keyframes fadeIn1 {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n}\n\n.Toolbar-button {\n font-family: sans-serif;\n font-size: 16px;\n width: 40px;\n height: 36px;\n background-color: white;\n border-radius: 5px;\n border: 0px;\n padding: 1px;\n margin: 2px;\n}\n\n.Toolbar-button:hover {\n color: white;\n background: #663676;\n cursor: pointer;\n}\n\n.Toolbar-button:active {\n background: #808080;\n color: white;\n cursor: pointer;\n}\n\n.TB-narrow {\n width: 30px;\n}\n\n.TB-wide {\n width: 46px;\n}\n\n.TB-selected {\n background: #d0d0d0;\n color: black;\n cursor: pointer;\n animation: 0.2s TB-fadeIn;\n animation-fill-mode: forwards;\n}\n\n.TB-selected:hover {\n color: white;\n background: #663676;\n cursor: pointer;\n}\n\n@keyframes TB-fadeIn {\n 00% {\n background: white;\n }\n 100% {\n background: #d0d0d0;\n }\n}\n\n/* Tooltip text */\n.Toolbar-button .tooltiptext {\n font-weight: normal;\n visibility: hidden;\n width: 100px;\n background-color: #222;\n color: #fff;\n /*font-weight: bold;*/\n font-size: 12px;\n text-align: center;\n padding: 4px 10px;\n border-radius: 6px;\n\n /* Position the tooltip text - see examples below! */\n position: absolute;\n z-index: 11;\n top: -90%; /* Must leave a small gap between tooltip and button */\n left: 50px;\n\n /* transform: translate (50%,0%); */\n}\n\n/* Show the tooltip text when you mouse over the tooltip container */\n.Toolbar-button:hover .tooltiptext {\n animation: 0.8s fadeIn2;\n animation-fill-mode: forwards;\n visibility: visible;\n /* width: 100px; */\n /* top: -90%; */ /* Must leave a small gap between tooltip and button */\n /* left: 20%; */\n /* margin-left: -50px; */\n}\n\n@keyframes fadeIn2 {\n 00% {\n opacity: 0;\n }\n 70% {\n opacity: 0;\n }\n 100% {\n visibility: visible;\n opacity: 0.9;\n }\n}\n\n/* .tooltip {\n position: relative;\n display: inline-block;\n border-bottom: 1px dotted black; /* If you want dots under the hoverable text \n} */\n",""]);const s=o},890:function(e){var t;"undefined"!=typeof self&&self,t=function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=1)}([function(e,t,n){},function(e,t,n){n.r(t),n(0);var r=function(){function e(e,t,n){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=e,this.start=t,this.end=n}return e.range=function(t,n){return n?t&&t.loc&&n.loc&&t.loc.lexer===n.loc.lexer?new e(t.loc.lexer,t.loc.start,n.loc.end):null:t&&t.loc},e}(),i=function(){function e(e,t){this.text=void 0,this.loc=void 0,this.noexpand=void 0,this.treatAsRelax=void 0,this.text=e,this.loc=t}return e.prototype.range=function(t,n){return new e(n,r.range(this,t))},e}(),a=function e(t,n){this.position=void 0;var r,i="KaTeX parse error: "+t,a=n&&n.loc;if(a&&a.start<=a.end){var o=a.lexer.input;r=a.start;var s=a.end;r===o.length?i+=" at end of input: ":i+=" at position "+(r+1)+": ";var l=o.slice(r,s).replace(/[^]/g,"$&̲");i+=(r>15?"…"+o.slice(r-15,r):o.slice(0,r))+l+(s+15<o.length?o.slice(s,s+15)+"…":o.slice(s))}var u=new Error(i);return u.name="ParseError",u.__proto__=e.prototype,u.position=r,u};a.prototype.__proto__=Error.prototype;var o=a,s=/([A-Z])/g,l={"&":"&amp;",">":"&gt;","<":"&lt;",'"':"&quot;","'":"&#x27;"},u=/[&><"']/g,c=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},d=function(e,t){return-1!==e.indexOf(t)},h=function(e,t){return void 0===e?t:e},p=function(e){return String(e).replace(u,function(e){return l[e]})},f=function(e){return e.replace(s,"-$1").toLowerCase()},m=c,g=function(e){var t=c(e);return"mathord"===t.type||"textord"===t.type||"atom"===t.type},b=function(e){var t=/^\s*([^\\/#]*?)(?::|&#0*58|&#x0*3a)/i.exec(e);return null!=t?t[1]:"_relative"},v=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,this.globalGroup=void 0,e=e||{},this.displayMode=h(e.displayMode,!1),this.output=h(e.output,"htmlAndMathml"),this.leqno=h(e.leqno,!1),this.fleqn=h(e.fleqn,!1),this.throwOnError=h(e.throwOnError,!0),this.errorColor=h(e.errorColor,"#cc0000"),this.macros=e.macros||{},this.minRuleThickness=Math.max(0,h(e.minRuleThickness,0)),this.colorIsTextColor=h(e.colorIsTextColor,!1),this.strict=h(e.strict,"warn"),this.trust=h(e.trust,!1),this.maxSize=Math.max(0,h(e.maxSize,1/0)),this.maxExpand=Math.max(0,h(e.maxExpand,1e3)),this.globalGroup=h(e.globalGroup,!1)}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 o("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=b(e.url));var t="function"==typeof this.trust?this.trust(e):this.trust;return Boolean(t)},e}(),y=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 x[w[this.id]]},t.sub=function(){return x[k[this.id]]},t.fracNum=function(){return x[S[this.id]]},t.fracDen=function(){return x[C[this.id]]},t.cramp=function(){return x[T[this.id]]},t.text=function(){return x[E[this.id]]},t.isTight=function(){return this.size>=2},e}(),x=[new y(0,0,!1),new y(1,0,!0),new y(2,1,!1),new y(3,1,!0),new y(4,2,!1),new y(5,2,!0),new y(6,3,!1),new y(7,3,!0)],w=[4,5,4,5,6,7,6,7],k=[5,5,5,5,7,7,7,7],S=[2,3,4,5,6,7,6,7],C=[3,3,5,5,7,7,7,7],T=[1,1,3,3,5,5,7,7],E=[0,1,2,3,2,3,2,3],q={DISPLAY:x[0],TEXT:x[2],SCRIPT:x[4],SCRIPTSCRIPT:x[6]},M=[{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]]}],A=[];function N(e){for(var t=0;t<A.length;t+=2)if(e>=A[t]&&e<=A[t+1])return!0;return!1}M.forEach(function(e){return e.blocks.forEach(function(e){return A.push.apply(A,e)})});var O={leftParenInner:"M291 0 H417 V300 H291 z",rightParenInner:"M457 0 H583 V300 H457 z",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"},D=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 d(this.classes,e)},t.toNode=function(){for(var e=document.createDocumentFragment(),t=0;t<this.children.length;t++)e.appendChild(this.children[t].toNode());return e},t.toMarkup=function(){for(var e="",t=0;t<this.children.length;t++)e+=this.children[t].toMarkup();return e},t.toText=function(){return this.children.map(function(e){return e.toText()}).join("")},e}(),z=function(e){return e.filter(function(e){return e}).join(" ")},L=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");var r=t.getColor();r&&(this.style.color=r)}},I=function(e){var t=document.createElement(e);for(var n in t.className=z(this.classes),this.style)this.style.hasOwnProperty(n)&&(t.style[n]=this.style[n]);for(var r in this.attributes)this.attributes.hasOwnProperty(r)&&t.setAttribute(r,this.attributes[r]);for(var i=0;i<this.children.length;i++)t.appendChild(this.children[i].toNode());return t},_=function(e){var t="<"+e;this.classes.length&&(t+=' class="'+p(z(this.classes))+'"');var n="";for(var r in this.style)this.style.hasOwnProperty(r)&&(n+=f(r)+":"+this.style[r]+";");for(var i in n&&(t+=' style="'+p(n)+'"'),this.attributes)this.attributes.hasOwnProperty(i)&&(t+=" "+i+'="'+p(this.attributes[i])+'"');t+=">";for(var a=0;a<this.children.length;a++)t+=this.children[a].toMarkup();return t+"</"+e+">"},R=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,L.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 d(this.classes,e)},t.toNode=function(){return I.call(this,"span")},t.toMarkup=function(){return _.call(this,"span")},e}(),B=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,L.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 d(this.classes,e)},t.toNode=function(){return I.call(this,"a")},t.toMarkup=function(){return _.call(this,"a")},e}(),P=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 d(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="<img src='"+this.src+" 'alt='"+this.alt+"' ",t="";for(var n in this.style)this.style.hasOwnProperty(n)&&(t+=f(n)+":"+this.style[n]+";");return t&&(e+=' style="'+p(t)+'"'),e+"'/>"},e}(),j={î:"ı̂",ï:"ı̈",í:"ı́",ì:"ı̀"},H=function(){function e(e,t,n,r,i,a,o,s){this.text=void 0,this.height=void 0,this.depth=void 0,this.italic=void 0,this.skew=void 0,this.width=void 0,this.maxFontSize=void 0,this.classes=void 0,this.style=void 0,this.text=e,this.height=t||0,this.depth=n||0,this.italic=r||0,this.skew=i||0,this.width=a||0,this.classes=o||[],this.style=s||{},this.maxFontSize=0;var l=function(e){for(var t=0;t<M.length;t++)for(var n=M[t],r=0;r<n.blocks.length;r++){var i=n.blocks[r];if(e>=i[0]&&e<=i[1])return n.name}return null}(this.text.charCodeAt(0));l&&this.classes.push(l+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=j[this.text])}var t=e.prototype;return t.hasClass=function(e){return d(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=z(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="<span";this.classes.length&&(e=!0,t+=' class="',t+=p(z(this.classes)),t+='"');var n="";for(var r in this.italic>0&&(n+="margin-right:"+this.italic+"em;"),this.style)this.style.hasOwnProperty(r)&&(n+=f(r)+":"+this.style[r]+";");n&&(e=!0,t+=' style="'+p(n)+'"');var i=p(this.text);return e?(t+=">",t+=i,t+="</span>"):i},e}(),F=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<this.children.length;n++)e.appendChild(this.children[n].toNode());return e},t.toMarkup=function(){var e="<svg";for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&(e+=" "+t+"='"+this.attributes[t]+"'");e+=">";for(var n=0;n<this.children.length;n++)e+=this.children[n].toMarkup();return e+"</svg>"},e}(),U=function(){function e(e,t){this.pathName=void 0,this.alternate=void 0,this.pathName=e,this.alternate=t}var t=e.prototype;return t.toNode=function(){var e=document.createElementNS("http://www.w3.org/2000/svg","path");return this.alternate?e.setAttribute("d",this.alternate):e.setAttribute("d",O[this.pathName]),e},t.toMarkup=function(){return this.alternate?"<path d='"+this.alternate+"'/>":"<path d='"+O[this.pathName]+"'/>"},e}(),Q=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="<line";for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&(e+=" "+t+"='"+this.attributes[t]+"'");return e+"/>"},e}();function W(e){if(e instanceof H)return e;throw new Error("Expected symbolNode but got "+String(e)+".")}var V={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{32:[0,0,0,0,.25],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473],160:[0,0,0,0,.25]},"Fraktur-Regular":{32:[0,0,0,0,.25],33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],160:[0,0,0,0,.25],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],160:[0,0,0,0,.25],163:[0,.69444,0,0,.86853],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444],57376:[.19444,.69444,0,0,0]},"Main-BoldItalic":{32:[0,0,0,0,.25],33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],160:[0,0,0,0,.25],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],160:[0,0,0,0,.25],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,.25],163:[0,.69444,0,0,.76909],167:[.19444,.69444,0,0,.44445],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],182:[.19444,.69444,0,0,.61111],184:[.17014,0,0,0,.44445],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.12,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,1],8617:[.011,.511,0,0,1.126],8618:[.011,.511,0,0,1.126],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,1],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,1],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.67,0,0,.778],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,.867],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,.9],8942:[.03,.9,0,0,.278],8943:[-.19,.31,0,0,1.172],8945:[-.1,.82,0,0,1.282],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,.412],9137:[.244,.744,0,0,.412],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,.412],10223:[.244,.744,0,0,.412],10229:[.011,.511,0,0,1.609],10230:[.011,.511,0,0,1.638],10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:[.011,.511,0,0,1.638],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778],57376:[.19444,.69444,0,0,0]},"Math-BoldItalic":{32:[0,0,0,0,.25],48:[0,.44444,0,0,.575],49:[0,.44444,0,0,.575],50:[0,.44444,0,0,.575],51:[.19444,.44444,0,0,.575],52:[.19444,.44444,0,0,.575],53:[.19444,.44444,0,0,.575],54:[0,.64444,0,0,.575],55:[.19444,.44444,0,0,.575],56:[0,.64444,0,0,.575],57:[.19444,.44444,0,0,.575],65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],160:[0,0,0,0,.25],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:[0,0,0,0,.25],48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],160:[0,0,0,0,.25],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],160:[0,0,0,0,.25],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],160:[0,0,0,0,.25],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],184:[.17014,0,0,0,.44445],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],160:[0,0,0,0,.25],168:[0,.67937,0,0,.5],176:[0,.69444,0,0,.66667],184:[.17014,0,0,0,.44445],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],732:[0,.67659,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{32:[0,0,0,0,.25],65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212],160:[0,0,0,0,.25]},"Size1-Regular":{32:[0,0,0,0,.25],40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],160:[0,0,0,0,.25],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{32:[0,0,0,0,.25],40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],160:[0,0,0,0,.25],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{32:[0,0,0,0,.25],40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],160:[0,0,0,0,.25],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{32:[0,0,0,0,.25],40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],160:[0,0,0,0,.25],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{32:[0,0,0,0,.525],33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],160:[0,0,0,0,.525],176:[0,.61111,0,0,.525],184:[.19445,0,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}},$={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},G={Å:"A",Ç:"C",Ð:"D",Þ:"o",å:"a",ç:"c",ð:"d",þ:"o",А:"A",Б:"B",В:"B",Г:"F",Д:"A",Е:"E",Ж:"K",З:"3",И:"N",Й:"N",К:"K",Л:"N",М:"M",Н:"H",О:"O",П:"N",Р:"P",С:"C",Т:"T",У:"y",Ф:"O",Х:"X",Ц:"U",Ч:"h",Ш:"W",Щ:"W",Ъ:"B",Ы:"X",Ь:"B",Э:"3",Ю:"X",Я:"R",а:"a",б:"b",в:"a",г:"r",д:"y",е:"e",ж:"m",з:"e",и:"n",й:"n",к:"n",л:"n",м:"m",н:"n",о:"o",п:"n",р:"p",с:"c",т:"o",у:"y",ф:"b",х:"x",ц:"n",ч:"n",ш:"w",щ:"w",ъ:"a",ы:"m",ь:"a",э:"e",ю:"m",я:"r"};function K(e,t,n){if(!V[t])throw new Error("Font metrics not found for font: "+t+".");var r=e.charCodeAt(0),i=V[t][r];if(!i&&e[0]in G&&(r=G[e[0]].charCodeAt(0),i=V[t][r]),i||"text"!==n||N(r)&&(i=V[t][77]),i)return{depth:i[0],height:i[1],italic:i[2],skew:i[3],width:i[4]}}var X={},Y={bin:1,close:1,inner:1,open:1,punct:1,rel:1},Z={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},J={math:{},text:{}},ee=J;function te(e,t,n,r,i,a){J[e][i]={font:t,group:n,replace:r},a&&r&&(J[e][r]=J[e][i])}var ne="math",re="text",ie="main",ae="ams",oe="accent-token",se="bin",le="close",ue="inner",ce="mathord",de="op-token",he="open",pe="punct",fe="rel",me="spacing",ge="textord";te(ne,ie,fe,"≡","\\equiv",!0),te(ne,ie,fe,"≺","\\prec",!0),te(ne,ie,fe,"≻","\\succ",!0),te(ne,ie,fe,"∼","\\sim",!0),te(ne,ie,fe,"⊥","\\perp"),te(ne,ie,fe,"⪯","\\preceq",!0),te(ne,ie,fe,"⪰","\\succeq",!0),te(ne,ie,fe,"≃","\\simeq",!0),te(ne,ie,fe,"∣","\\mid",!0),te(ne,ie,fe,"≪","\\ll",!0),te(ne,ie,fe,"≫","\\gg",!0),te(ne,ie,fe,"≍","\\asymp",!0),te(ne,ie,fe,"∥","\\parallel"),te(ne,ie,fe,"⋈","\\bowtie",!0),te(ne,ie,fe,"⌣","\\smile",!0),te(ne,ie,fe,"⊑","\\sqsubseteq",!0),te(ne,ie,fe,"⊒","\\sqsupseteq",!0),te(ne,ie,fe,"≐","\\doteq",!0),te(ne,ie,fe,"⌢","\\frown",!0),te(ne,ie,fe,"∋","\\ni",!0),te(ne,ie,fe,"∝","\\propto",!0),te(ne,ie,fe,"⊢","\\vdash",!0),te(ne,ie,fe,"⊣","\\dashv",!0),te(ne,ie,fe,"∋","\\owns"),te(ne,ie,pe,".","\\ldotp"),te(ne,ie,pe,"⋅","\\cdotp"),te(ne,ie,ge,"#","\\#"),te(re,ie,ge,"#","\\#"),te(ne,ie,ge,"&","\\&"),te(re,ie,ge,"&","\\&"),te(ne,ie,ge,"ℵ","\\aleph",!0),te(ne,ie,ge,"∀","\\forall",!0),te(ne,ie,ge,"ℏ","\\hbar",!0),te(ne,ie,ge,"∃","\\exists",!0),te(ne,ie,ge,"∇","\\nabla",!0),te(ne,ie,ge,"♭","\\flat",!0),te(ne,ie,ge,"ℓ","\\ell",!0),te(ne,ie,ge,"♮","\\natural",!0),te(ne,ie,ge,"♣","\\clubsuit",!0),te(ne,ie,ge,"℘","\\wp",!0),te(ne,ie,ge,"♯","\\sharp",!0),te(ne,ie,ge,"♢","\\diamondsuit",!0),te(ne,ie,ge,"ℜ","\\Re",!0),te(ne,ie,ge,"♡","\\heartsuit",!0),te(ne,ie,ge,"ℑ","\\Im",!0),te(ne,ie,ge,"♠","\\spadesuit",!0),te(re,ie,ge,"§","\\S",!0),te(re,ie,ge,"¶","\\P",!0),te(ne,ie,ge,"†","\\dag"),te(re,ie,ge,"†","\\dag"),te(re,ie,ge,"†","\\textdagger"),te(ne,ie,ge,"‡","\\ddag"),te(re,ie,ge,"‡","\\ddag"),te(re,ie,ge,"‡","\\textdaggerdbl"),te(ne,ie,le,"⎱","\\rmoustache",!0),te(ne,ie,he,"⎰","\\lmoustache",!0),te(ne,ie,le,"⟯","\\rgroup",!0),te(ne,ie,he,"⟮","\\lgroup",!0),te(ne,ie,se,"∓","\\mp",!0),te(ne,ie,se,"⊖","\\ominus",!0),te(ne,ie,se,"⊎","\\uplus",!0),te(ne,ie,se,"⊓","\\sqcap",!0),te(ne,ie,se,"∗","\\ast"),te(ne,ie,se,"⊔","\\sqcup",!0),te(ne,ie,se,"◯","\\bigcirc"),te(ne,ie,se,"∙","\\bullet"),te(ne,ie,se,"‡","\\ddagger"),te(ne,ie,se,"≀","\\wr",!0),te(ne,ie,se,"⨿","\\amalg"),te(ne,ie,se,"&","\\And"),te(ne,ie,fe,"⟵","\\longleftarrow",!0),te(ne,ie,fe,"⇐","\\Leftarrow",!0),te(ne,ie,fe,"⟸","\\Longleftarrow",!0),te(ne,ie,fe,"⟶","\\longrightarrow",!0),te(ne,ie,fe,"⇒","\\Rightarrow",!0),te(ne,ie,fe,"⟹","\\Longrightarrow",!0),te(ne,ie,fe,"↔","\\leftrightarrow",!0),te(ne,ie,fe,"⟷","\\longleftrightarrow",!0),te(ne,ie,fe,"⇔","\\Leftrightarrow",!0),te(ne,ie,fe,"⟺","\\Longleftrightarrow",!0),te(ne,ie,fe,"↦","\\mapsto",!0),te(ne,ie,fe,"⟼","\\longmapsto",!0),te(ne,ie,fe,"↗","\\nearrow",!0),te(ne,ie,fe,"↩","\\hookleftarrow",!0),te(ne,ie,fe,"↪","\\hookrightarrow",!0),te(ne,ie,fe,"↘","\\searrow",!0),te(ne,ie,fe,"↼","\\leftharpoonup",!0),te(ne,ie,fe,"⇀","\\rightharpoonup",!0),te(ne,ie,fe,"↙","\\swarrow",!0),te(ne,ie,fe,"↽","\\leftharpoondown",!0),te(ne,ie,fe,"⇁","\\rightharpoondown",!0),te(ne,ie,fe,"↖","\\nwarrow",!0),te(ne,ie,fe,"⇌","\\rightleftharpoons",!0),te(ne,ae,fe,"≮","\\nless",!0),te(ne,ae,fe,"","\\@nleqslant"),te(ne,ae,fe,"","\\@nleqq"),te(ne,ae,fe,"⪇","\\lneq",!0),te(ne,ae,fe,"≨","\\lneqq",!0),te(ne,ae,fe,"","\\@lvertneqq"),te(ne,ae,fe,"⋦","\\lnsim",!0),te(ne,ae,fe,"⪉","\\lnapprox",!0),te(ne,ae,fe,"⊀","\\nprec",!0),te(ne,ae,fe,"⋠","\\npreceq",!0),te(ne,ae,fe,"⋨","\\precnsim",!0),te(ne,ae,fe,"⪹","\\precnapprox",!0),te(ne,ae,fe,"≁","\\nsim",!0),te(ne,ae,fe,"","\\@nshortmid"),te(ne,ae,fe,"∤","\\nmid",!0),te(ne,ae,fe,"⊬","\\nvdash",!0),te(ne,ae,fe,"⊭","\\nvDash",!0),te(ne,ae,fe,"⋪","\\ntriangleleft"),te(ne,ae,fe,"⋬","\\ntrianglelefteq",!0),te(ne,ae,fe,"⊊","\\subsetneq",!0),te(ne,ae,fe,"","\\@varsubsetneq"),te(ne,ae,fe,"⫋","\\subsetneqq",!0),te(ne,ae,fe,"","\\@varsubsetneqq"),te(ne,ae,fe,"≯","\\ngtr",!0),te(ne,ae,fe,"","\\@ngeqslant"),te(ne,ae,fe,"","\\@ngeqq"),te(ne,ae,fe,"⪈","\\gneq",!0),te(ne,ae,fe,"≩","\\gneqq",!0),te(ne,ae,fe,"","\\@gvertneqq"),te(ne,ae,fe,"⋧","\\gnsim",!0),te(ne,ae,fe,"⪊","\\gnapprox",!0),te(ne,ae,fe,"⊁","\\nsucc",!0),te(ne,ae,fe,"⋡","\\nsucceq",!0),te(ne,ae,fe,"⋩","\\succnsim",!0),te(ne,ae,fe,"⪺","\\succnapprox",!0),te(ne,ae,fe,"≆","\\ncong",!0),te(ne,ae,fe,"","\\@nshortparallel"),te(ne,ae,fe,"∦","\\nparallel",!0),te(ne,ae,fe,"⊯","\\nVDash",!0),te(ne,ae,fe,"⋫","\\ntriangleright"),te(ne,ae,fe,"⋭","\\ntrianglerighteq",!0),te(ne,ae,fe,"","\\@nsupseteqq"),te(ne,ae,fe,"⊋","\\supsetneq",!0),te(ne,ae,fe,"","\\@varsupsetneq"),te(ne,ae,fe,"⫌","\\supsetneqq",!0),te(ne,ae,fe,"","\\@varsupsetneqq"),te(ne,ae,fe,"⊮","\\nVdash",!0),te(ne,ae,fe,"⪵","\\precneqq",!0),te(ne,ae,fe,"⪶","\\succneqq",!0),te(ne,ae,fe,"","\\@nsubseteqq"),te(ne,ae,se,"⊴","\\unlhd"),te(ne,ae,se,"⊵","\\unrhd"),te(ne,ae,fe,"↚","\\nleftarrow",!0),te(ne,ae,fe,"↛","\\nrightarrow",!0),te(ne,ae,fe,"⇍","\\nLeftarrow",!0),te(ne,ae,fe,"⇏","\\nRightarrow",!0),te(ne,ae,fe,"↮","\\nleftrightarrow",!0),te(ne,ae,fe,"⇎","\\nLeftrightarrow",!0),te(ne,ae,fe,"△","\\vartriangle"),te(ne,ae,ge,"ℏ","\\hslash"),te(ne,ae,ge,"▽","\\triangledown"),te(ne,ae,ge,"◊","\\lozenge"),te(ne,ae,ge,"Ⓢ","\\circledS"),te(ne,ae,ge,"®","\\circledR"),te(re,ae,ge,"®","\\circledR"),te(ne,ae,ge,"∡","\\measuredangle",!0),te(ne,ae,ge,"∄","\\nexists"),te(ne,ae,ge,"℧","\\mho"),te(ne,ae,ge,"Ⅎ","\\Finv",!0),te(ne,ae,ge,"⅁","\\Game",!0),te(ne,ae,ge,"‵","\\backprime"),te(ne,ae,ge,"▲","\\blacktriangle"),te(ne,ae,ge,"▼","\\blacktriangledown"),te(ne,ae,ge,"■","\\blacksquare"),te(ne,ae,ge,"⧫","\\blacklozenge"),te(ne,ae,ge,"★","\\bigstar"),te(ne,ae,ge,"∢","\\sphericalangle",!0),te(ne,ae,ge,"∁","\\complement",!0),te(ne,ae,ge,"ð","\\eth",!0),te(re,ie,ge,"ð","ð"),te(ne,ae,ge,"╱","\\diagup"),te(ne,ae,ge,"╲","\\diagdown"),te(ne,ae,ge,"□","\\square"),te(ne,ae,ge,"□","\\Box"),te(ne,ae,ge,"◊","\\Diamond"),te(ne,ae,ge,"¥","\\yen",!0),te(re,ae,ge,"¥","\\yen",!0),te(ne,ae,ge,"✓","\\checkmark",!0),te(re,ae,ge,"✓","\\checkmark"),te(ne,ae,ge,"ℶ","\\beth",!0),te(ne,ae,ge,"ℸ","\\daleth",!0),te(ne,ae,ge,"ℷ","\\gimel",!0),te(ne,ae,ge,"ϝ","\\digamma",!0),te(ne,ae,ge,"ϰ","\\varkappa"),te(ne,ae,he,"┌","\\@ulcorner",!0),te(ne,ae,le,"┐","\\@urcorner",!0),te(ne,ae,he,"└","\\@llcorner",!0),te(ne,ae,le,"┘","\\@lrcorner",!0),te(ne,ae,fe,"≦","\\leqq",!0),te(ne,ae,fe,"⩽","\\leqslant",!0),te(ne,ae,fe,"⪕","\\eqslantless",!0),te(ne,ae,fe,"≲","\\lesssim",!0),te(ne,ae,fe,"⪅","\\lessapprox",!0),te(ne,ae,fe,"≊","\\approxeq",!0),te(ne,ae,se,"⋖","\\lessdot"),te(ne,ae,fe,"⋘","\\lll",!0),te(ne,ae,fe,"≶","\\lessgtr",!0),te(ne,ae,fe,"⋚","\\lesseqgtr",!0),te(ne,ae,fe,"⪋","\\lesseqqgtr",!0),te(ne,ae,fe,"≑","\\doteqdot"),te(ne,ae,fe,"≓","\\risingdotseq",!0),te(ne,ae,fe,"≒","\\fallingdotseq",!0),te(ne,ae,fe,"∽","\\backsim",!0),te(ne,ae,fe,"⋍","\\backsimeq",!0),te(ne,ae,fe,"⫅","\\subseteqq",!0),te(ne,ae,fe,"⋐","\\Subset",!0),te(ne,ae,fe,"⊏","\\sqsubset",!0),te(ne,ae,fe,"≼","\\preccurlyeq",!0),te(ne,ae,fe,"⋞","\\curlyeqprec",!0),te(ne,ae,fe,"≾","\\precsim",!0),te(ne,ae,fe,"⪷","\\precapprox",!0),te(ne,ae,fe,"⊲","\\vartriangleleft"),te(ne,ae,fe,"⊴","\\trianglelefteq"),te(ne,ae,fe,"⊨","\\vDash",!0),te(ne,ae,fe,"⊪","\\Vvdash",!0),te(ne,ae,fe,"⌣","\\smallsmile"),te(ne,ae,fe,"⌢","\\smallfrown"),te(ne,ae,fe,"≏","\\bumpeq",!0),te(ne,ae,fe,"≎","\\Bumpeq",!0),te(ne,ae,fe,"≧","\\geqq",!0),te(ne,ae,fe,"⩾","\\geqslant",!0),te(ne,ae,fe,"⪖","\\eqslantgtr",!0),te(ne,ae,fe,"≳","\\gtrsim",!0),te(ne,ae,fe,"⪆","\\gtrapprox",!0),te(ne,ae,se,"⋗","\\gtrdot"),te(ne,ae,fe,"⋙","\\ggg",!0),te(ne,ae,fe,"≷","\\gtrless",!0),te(ne,ae,fe,"⋛","\\gtreqless",!0),te(ne,ae,fe,"⪌","\\gtreqqless",!0),te(ne,ae,fe,"≖","\\eqcirc",!0),te(ne,ae,fe,"≗","\\circeq",!0),te(ne,ae,fe,"≜","\\triangleq",!0),te(ne,ae,fe,"∼","\\thicksim"),te(ne,ae,fe,"≈","\\thickapprox"),te(ne,ae,fe,"⫆","\\supseteqq",!0),te(ne,ae,fe,"⋑","\\Supset",!0),te(ne,ae,fe,"⊐","\\sqsupset",!0),te(ne,ae,fe,"≽","\\succcurlyeq",!0),te(ne,ae,fe,"⋟","\\curlyeqsucc",!0),te(ne,ae,fe,"≿","\\succsim",!0),te(ne,ae,fe,"⪸","\\succapprox",!0),te(ne,ae,fe,"⊳","\\vartriangleright"),te(ne,ae,fe,"⊵","\\trianglerighteq"),te(ne,ae,fe,"⊩","\\Vdash",!0),te(ne,ae,fe,"∣","\\shortmid"),te(ne,ae,fe,"∥","\\shortparallel"),te(ne,ae,fe,"≬","\\between",!0),te(ne,ae,fe,"⋔","\\pitchfork",!0),te(ne,ae,fe,"∝","\\varpropto"),te(ne,ae,fe,"◀","\\blacktriangleleft"),te(ne,ae,fe,"∴","\\therefore",!0),te(ne,ae,fe,"∍","\\backepsilon"),te(ne,ae,fe,"▶","\\blacktriangleright"),te(ne,ae,fe,"∵","\\because",!0),te(ne,ae,fe,"⋘","\\llless"),te(ne,ae,fe,"⋙","\\gggtr"),te(ne,ae,se,"⊲","\\lhd"),te(ne,ae,se,"⊳","\\rhd"),te(ne,ae,fe,"≂","\\eqsim",!0),te(ne,ie,fe,"⋈","\\Join"),te(ne,ae,fe,"≑","\\Doteq",!0),te(ne,ae,se,"∔","\\dotplus",!0),te(ne,ae,se,"∖","\\smallsetminus"),te(ne,ae,se,"⋒","\\Cap",!0),te(ne,ae,se,"⋓","\\Cup",!0),te(ne,ae,se,"⩞","\\doublebarwedge",!0),te(ne,ae,se,"⊟","\\boxminus",!0),te(ne,ae,se,"⊞","\\boxplus",!0),te(ne,ae,se,"⋇","\\divideontimes",!0),te(ne,ae,se,"⋉","\\ltimes",!0),te(ne,ae,se,"⋊","\\rtimes",!0),te(ne,ae,se,"⋋","\\leftthreetimes",!0),te(ne,ae,se,"⋌","\\rightthreetimes",!0),te(ne,ae,se,"⋏","\\curlywedge",!0),te(ne,ae,se,"⋎","\\curlyvee",!0),te(ne,ae,se,"⊝","\\circleddash",!0),te(ne,ae,se,"⊛","\\circledast",!0),te(ne,ae,se,"⋅","\\centerdot"),te(ne,ae,se,"⊺","\\intercal",!0),te(ne,ae,se,"⋒","\\doublecap"),te(ne,ae,se,"⋓","\\doublecup"),te(ne,ae,se,"⊠","\\boxtimes",!0),te(ne,ae,fe,"⇢","\\dashrightarrow",!0),te(ne,ae,fe,"⇠","\\dashleftarrow",!0),te(ne,ae,fe,"⇇","\\leftleftarrows",!0),te(ne,ae,fe,"⇆","\\leftrightarrows",!0),te(ne,ae,fe,"⇚","\\Lleftarrow",!0),te(ne,ae,fe,"↞","\\twoheadleftarrow",!0),te(ne,ae,fe,"↢","\\leftarrowtail",!0),te(ne,ae,fe,"↫","\\looparrowleft",!0),te(ne,ae,fe,"⇋","\\leftrightharpoons",!0),te(ne,ae,fe,"↶","\\curvearrowleft",!0),te(ne,ae,fe,"↺","\\circlearrowleft",!0),te(ne,ae,fe,"↰","\\Lsh",!0),te(ne,ae,fe,"⇈","\\upuparrows",!0),te(ne,ae,fe,"↿","\\upharpoonleft",!0),te(ne,ae,fe,"⇃","\\downharpoonleft",!0),te(ne,ae,fe,"⊸","\\multimap",!0),te(ne,ae,fe,"↭","\\leftrightsquigarrow",!0),te(ne,ae,fe,"⇉","\\rightrightarrows",!0),te(ne,ae,fe,"⇄","\\rightleftarrows",!0),te(ne,ae,fe,"↠","\\twoheadrightarrow",!0),te(ne,ae,fe,"↣","\\rightarrowtail",!0),te(ne,ae,fe,"↬","\\looparrowright",!0),te(ne,ae,fe,"↷","\\curvearrowright",!0),te(ne,ae,fe,"↻","\\circlearrowright",!0),te(ne,ae,fe,"↱","\\Rsh",!0),te(ne,ae,fe,"⇊","\\downdownarrows",!0),te(ne,ae,fe,"↾","\\upharpoonright",!0),te(ne,ae,fe,"⇂","\\downharpoonright",!0),te(ne,ae,fe,"⇝","\\rightsquigarrow",!0),te(ne,ae,fe,"⇝","\\leadsto"),te(ne,ae,fe,"⇛","\\Rrightarrow",!0),te(ne,ae,fe,"↾","\\restriction"),te(ne,ie,ge,"‘","`"),te(ne,ie,ge,"$","\\$"),te(re,ie,ge,"$","\\$"),te(re,ie,ge,"$","\\textdollar"),te(ne,ie,ge,"%","\\%"),te(re,ie,ge,"%","\\%"),te(ne,ie,ge,"_","\\_"),te(re,ie,ge,"_","\\_"),te(re,ie,ge,"_","\\textunderscore"),te(ne,ie,ge,"∠","\\angle",!0),te(ne,ie,ge,"∞","\\infty",!0),te(ne,ie,ge,"′","\\prime"),te(ne,ie,ge,"△","\\triangle"),te(ne,ie,ge,"Γ","\\Gamma",!0),te(ne,ie,ge,"Δ","\\Delta",!0),te(ne,ie,ge,"Θ","\\Theta",!0),te(ne,ie,ge,"Λ","\\Lambda",!0),te(ne,ie,ge,"Ξ","\\Xi",!0),te(ne,ie,ge,"Π","\\Pi",!0),te(ne,ie,ge,"Σ","\\Sigma",!0),te(ne,ie,ge,"Υ","\\Upsilon",!0),te(ne,ie,ge,"Φ","\\Phi",!0),te(ne,ie,ge,"Ψ","\\Psi",!0),te(ne,ie,ge,"Ω","\\Omega",!0),te(ne,ie,ge,"A","Α"),te(ne,ie,ge,"B","Β"),te(ne,ie,ge,"E","Ε"),te(ne,ie,ge,"Z","Ζ"),te(ne,ie,ge,"H","Η"),te(ne,ie,ge,"I","Ι"),te(ne,ie,ge,"K","Κ"),te(ne,ie,ge,"M","Μ"),te(ne,ie,ge,"N","Ν"),te(ne,ie,ge,"O","Ο"),te(ne,ie,ge,"P","Ρ"),te(ne,ie,ge,"T","Τ"),te(ne,ie,ge,"X","Χ"),te(ne,ie,ge,"¬","\\neg",!0),te(ne,ie,ge,"¬","\\lnot"),te(ne,ie,ge,"⊤","\\top"),te(ne,ie,ge,"⊥","\\bot"),te(ne,ie,ge,"∅","\\emptyset"),te(ne,ae,ge,"∅","\\varnothing"),te(ne,ie,ce,"α","\\alpha",!0),te(ne,ie,ce,"β","\\beta",!0),te(ne,ie,ce,"γ","\\gamma",!0),te(ne,ie,ce,"δ","\\delta",!0),te(ne,ie,ce,"ϵ","\\epsilon",!0),te(ne,ie,ce,"ζ","\\zeta",!0),te(ne,ie,ce,"η","\\eta",!0),te(ne,ie,ce,"θ","\\theta",!0),te(ne,ie,ce,"ι","\\iota",!0),te(ne,ie,ce,"κ","\\kappa",!0),te(ne,ie,ce,"λ","\\lambda",!0),te(ne,ie,ce,"μ","\\mu",!0),te(ne,ie,ce,"ν","\\nu",!0),te(ne,ie,ce,"ξ","\\xi",!0),te(ne,ie,ce,"ο","\\omicron",!0),te(ne,ie,ce,"π","\\pi",!0),te(ne,ie,ce,"ρ","\\rho",!0),te(ne,ie,ce,"σ","\\sigma",!0),te(ne,ie,ce,"τ","\\tau",!0),te(ne,ie,ce,"υ","\\upsilon",!0),te(ne,ie,ce,"ϕ","\\phi",!0),te(ne,ie,ce,"χ","\\chi",!0),te(ne,ie,ce,"ψ","\\psi",!0),te(ne,ie,ce,"ω","\\omega",!0),te(ne,ie,ce,"ε","\\varepsilon",!0),te(ne,ie,ce,"ϑ","\\vartheta",!0),te(ne,ie,ce,"ϖ","\\varpi",!0),te(ne,ie,ce,"ϱ","\\varrho",!0),te(ne,ie,ce,"ς","\\varsigma",!0),te(ne,ie,ce,"φ","\\varphi",!0),te(ne,ie,se,"∗","*"),te(ne,ie,se,"+","+"),te(ne,ie,se,"−","-"),te(ne,ie,se,"⋅","\\cdot",!0),te(ne,ie,se,"∘","\\circ"),te(ne,ie,se,"÷","\\div",!0),te(ne,ie,se,"±","\\pm",!0),te(ne,ie,se,"×","\\times",!0),te(ne,ie,se,"∩","\\cap",!0),te(ne,ie,se,"∪","\\cup",!0),te(ne,ie,se,"∖","\\setminus"),te(ne,ie,se,"∧","\\land"),te(ne,ie,se,"∨","\\lor"),te(ne,ie,se,"∧","\\wedge",!0),te(ne,ie,se,"∨","\\vee",!0),te(ne,ie,ge,"√","\\surd"),te(ne,ie,he,"⟨","\\langle",!0),te(ne,ie,he,"∣","\\lvert"),te(ne,ie,he,"∥","\\lVert"),te(ne,ie,le,"?","?"),te(ne,ie,le,"!","!"),te(ne,ie,le,"⟩","\\rangle",!0),te(ne,ie,le,"∣","\\rvert"),te(ne,ie,le,"∥","\\rVert"),te(ne,ie,fe,"=","="),te(ne,ie,fe,":",":"),te(ne,ie,fe,"≈","\\approx",!0),te(ne,ie,fe,"≅","\\cong",!0),te(ne,ie,fe,"≥","\\ge"),te(ne,ie,fe,"≥","\\geq",!0),te(ne,ie,fe,"←","\\gets"),te(ne,ie,fe,">","\\gt",!0),te(ne,ie,fe,"∈","\\in",!0),te(ne,ie,fe,"","\\@not"),te(ne,ie,fe,"⊂","\\subset",!0),te(ne,ie,fe,"⊃","\\supset",!0),te(ne,ie,fe,"⊆","\\subseteq",!0),te(ne,ie,fe,"⊇","\\supseteq",!0),te(ne,ae,fe,"⊈","\\nsubseteq",!0),te(ne,ae,fe,"⊉","\\nsupseteq",!0),te(ne,ie,fe,"⊨","\\models"),te(ne,ie,fe,"←","\\leftarrow",!0),te(ne,ie,fe,"≤","\\le"),te(ne,ie,fe,"≤","\\leq",!0),te(ne,ie,fe,"<","\\lt",!0),te(ne,ie,fe,"→","\\rightarrow",!0),te(ne,ie,fe,"→","\\to"),te(ne,ae,fe,"≱","\\ngeq",!0),te(ne,ae,fe,"≰","\\nleq",!0),te(ne,ie,me," ","\\ "),te(ne,ie,me," ","~"),te(ne,ie,me," ","\\space"),te(ne,ie,me," ","\\nobreakspace"),te(re,ie,me," ","\\ "),te(re,ie,me," "," "),te(re,ie,me," ","~"),te(re,ie,me," ","\\space"),te(re,ie,me," ","\\nobreakspace"),te(ne,ie,me,null,"\\nobreak"),te(ne,ie,me,null,"\\allowbreak"),te(ne,ie,pe,",",","),te(ne,ie,pe,";",";"),te(ne,ae,se,"⊼","\\barwedge",!0),te(ne,ae,se,"⊻","\\veebar",!0),te(ne,ie,se,"⊙","\\odot",!0),te(ne,ie,se,"⊕","\\oplus",!0),te(ne,ie,se,"⊗","\\otimes",!0),te(ne,ie,ge,"∂","\\partial",!0),te(ne,ie,se,"⊘","\\oslash",!0),te(ne,ae,se,"⊚","\\circledcirc",!0),te(ne,ae,se,"⊡","\\boxdot",!0),te(ne,ie,se,"△","\\bigtriangleup"),te(ne,ie,se,"▽","\\bigtriangledown"),te(ne,ie,se,"†","\\dagger"),te(ne,ie,se,"⋄","\\diamond"),te(ne,ie,se,"⋆","\\star"),te(ne,ie,se,"◃","\\triangleleft"),te(ne,ie,se,"▹","\\triangleright"),te(ne,ie,he,"{","\\{"),te(re,ie,ge,"{","\\{"),te(re,ie,ge,"{","\\textbraceleft"),te(ne,ie,le,"}","\\}"),te(re,ie,ge,"}","\\}"),te(re,ie,ge,"}","\\textbraceright"),te(ne,ie,he,"{","\\lbrace"),te(ne,ie,le,"}","\\rbrace"),te(ne,ie,he,"[","\\lbrack",!0),te(re,ie,ge,"[","\\lbrack",!0),te(ne,ie,le,"]","\\rbrack",!0),te(re,ie,ge,"]","\\rbrack",!0),te(ne,ie,he,"(","\\lparen",!0),te(ne,ie,le,")","\\rparen",!0),te(re,ie,ge,"<","\\textless",!0),te(re,ie,ge,">","\\textgreater",!0),te(ne,ie,he,"⌊","\\lfloor",!0),te(ne,ie,le,"⌋","\\rfloor",!0),te(ne,ie,he,"⌈","\\lceil",!0),te(ne,ie,le,"⌉","\\rceil",!0),te(ne,ie,ge,"\\","\\backslash"),te(ne,ie,ge,"∣","|"),te(ne,ie,ge,"∣","\\vert"),te(re,ie,ge,"|","\\textbar",!0),te(ne,ie,ge,"∥","\\|"),te(ne,ie,ge,"∥","\\Vert"),te(re,ie,ge,"∥","\\textbardbl"),te(re,ie,ge,"~","\\textasciitilde"),te(re,ie,ge,"\\","\\textbackslash"),te(re,ie,ge,"^","\\textasciicircum"),te(ne,ie,fe,"↑","\\uparrow",!0),te(ne,ie,fe,"⇑","\\Uparrow",!0),te(ne,ie,fe,"↓","\\downarrow",!0),te(ne,ie,fe,"⇓","\\Downarrow",!0),te(ne,ie,fe,"↕","\\updownarrow",!0),te(ne,ie,fe,"⇕","\\Updownarrow",!0),te(ne,ie,de,"∐","\\coprod"),te(ne,ie,de,"⋁","\\bigvee"),te(ne,ie,de,"⋀","\\bigwedge"),te(ne,ie,de,"⨄","\\biguplus"),te(ne,ie,de,"⋂","\\bigcap"),te(ne,ie,de,"⋃","\\bigcup"),te(ne,ie,de,"∫","\\int"),te(ne,ie,de,"∫","\\intop"),te(ne,ie,de,"∬","\\iint"),te(ne,ie,de,"∭","\\iiint"),te(ne,ie,de,"∏","\\prod"),te(ne,ie,de,"∑","\\sum"),te(ne,ie,de,"⨂","\\bigotimes"),te(ne,ie,de,"⨁","\\bigoplus"),te(ne,ie,de,"⨀","\\bigodot"),te(ne,ie,de,"∮","\\oint"),te(ne,ie,de,"⨆","\\bigsqcup"),te(ne,ie,de,"∫","\\smallint"),te(re,ie,ue,"…","\\textellipsis"),te(ne,ie,ue,"…","\\mathellipsis"),te(re,ie,ue,"…","\\ldots",!0),te(ne,ie,ue,"…","\\ldots",!0),te(ne,ie,ue,"⋯","\\@cdots",!0),te(ne,ie,ue,"⋱","\\ddots",!0),te(ne,ie,ge,"⋮","\\varvdots"),te(ne,ie,oe,"ˊ","\\acute"),te(ne,ie,oe,"ˋ","\\grave"),te(ne,ie,oe,"¨","\\ddot"),te(ne,ie,oe,"~","\\tilde"),te(ne,ie,oe,"ˉ","\\bar"),te(ne,ie,oe,"˘","\\breve"),te(ne,ie,oe,"ˇ","\\check"),te(ne,ie,oe,"^","\\hat"),te(ne,ie,oe,"⃗","\\vec"),te(ne,ie,oe,"˙","\\dot"),te(ne,ie,oe,"˚","\\mathring"),te(ne,ie,ce,"","\\@imath"),te(ne,ie,ce,"","\\@jmath"),te(ne,ie,ge,"ı","ı"),te(ne,ie,ge,"ȷ","ȷ"),te(re,ie,ge,"ı","\\i",!0),te(re,ie,ge,"ȷ","\\j",!0),te(re,ie,ge,"ß","\\ss",!0),te(re,ie,ge,"æ","\\ae",!0),te(re,ie,ge,"œ","\\oe",!0),te(re,ie,ge,"ø","\\o",!0),te(re,ie,ge,"Æ","\\AE",!0),te(re,ie,ge,"Œ","\\OE",!0),te(re,ie,ge,"Ø","\\O",!0),te(re,ie,oe,"ˊ","\\'"),te(re,ie,oe,"ˋ","\\`"),te(re,ie,oe,"ˆ","\\^"),te(re,ie,oe,"˜","\\~"),te(re,ie,oe,"ˉ","\\="),te(re,ie,oe,"˘","\\u"),te(re,ie,oe,"˙","\\."),te(re,ie,oe,"˚","\\r"),te(re,ie,oe,"ˇ","\\v"),te(re,ie,oe,"¨",'\\"'),te(re,ie,oe,"˝","\\H"),te(re,ie,oe,"◯","\\textcircled");var be={"--":!0,"---":!0,"``":!0,"''":!0};te(re,ie,ge,"–","--",!0),te(re,ie,ge,"–","\\textendash"),te(re,ie,ge,"—","---",!0),te(re,ie,ge,"—","\\textemdash"),te(re,ie,ge,"‘","`",!0),te(re,ie,ge,"‘","\\textquoteleft"),te(re,ie,ge,"’","'",!0),te(re,ie,ge,"’","\\textquoteright"),te(re,ie,ge,"“","``",!0),te(re,ie,ge,"“","\\textquotedblleft"),te(re,ie,ge,"”","''",!0),te(re,ie,ge,"”","\\textquotedblright"),te(ne,ie,ge,"°","\\degree",!0),te(re,ie,ge,"°","\\degree"),te(re,ie,ge,"°","\\textdegree",!0),te(ne,ie,ge,"£","\\pounds"),te(ne,ie,ge,"£","\\mathsterling",!0),te(re,ie,ge,"£","\\pounds"),te(re,ie,ge,"£","\\textsterling",!0),te(ne,ae,ge,"✠","\\maltese"),te(re,ae,ge,"✠","\\maltese");for(var ve=0;ve<14;ve++){var ye='0123456789/@."'.charAt(ve);te(ne,ie,ge,ye,ye)}for(var xe=0;xe<25;xe++){var we='0123456789!@*()-=+";:?/.,'.charAt(xe);te(re,ie,ge,we,we)}for(var ke="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",Se=0;Se<52;Se++){var Ce=ke.charAt(Se);te(ne,ie,ce,Ce,Ce),te(re,ie,ge,Ce,Ce)}te(ne,ae,ge,"C","ℂ"),te(re,ae,ge,"C","ℂ"),te(ne,ae,ge,"H","ℍ"),te(re,ae,ge,"H","ℍ"),te(ne,ae,ge,"N","ℕ"),te(re,ae,ge,"N","ℕ"),te(ne,ae,ge,"P","ℙ"),te(re,ae,ge,"P","ℙ"),te(ne,ae,ge,"Q","ℚ"),te(re,ae,ge,"Q","ℚ"),te(ne,ae,ge,"R","ℝ"),te(re,ae,ge,"R","ℝ"),te(ne,ae,ge,"Z","ℤ"),te(re,ae,ge,"Z","ℤ"),te(ne,ie,ce,"h","ℎ"),te(re,ie,ce,"h","ℎ");for(var Te="",Ee=0;Ee<52;Ee++){var qe=ke.charAt(Ee);te(ne,ie,ce,qe,Te=String.fromCharCode(55349,56320+Ee)),te(re,ie,ge,qe,Te),te(ne,ie,ce,qe,Te=String.fromCharCode(55349,56372+Ee)),te(re,ie,ge,qe,Te),te(ne,ie,ce,qe,Te=String.fromCharCode(55349,56424+Ee)),te(re,ie,ge,qe,Te),te(ne,ie,ce,qe,Te=String.fromCharCode(55349,56580+Ee)),te(re,ie,ge,qe,Te),te(ne,ie,ce,qe,Te=String.fromCharCode(55349,56736+Ee)),te(re,ie,ge,qe,Te),te(ne,ie,ce,qe,Te=String.fromCharCode(55349,56788+Ee)),te(re,ie,ge,qe,Te),te(ne,ie,ce,qe,Te=String.fromCharCode(55349,56840+Ee)),te(re,ie,ge,qe,Te),te(ne,ie,ce,qe,Te=String.fromCharCode(55349,56944+Ee)),te(re,ie,ge,qe,Te),Ee<26&&(te(ne,ie,ce,qe,Te=String.fromCharCode(55349,56632+Ee)),te(re,ie,ge,qe,Te),te(ne,ie,ce,qe,Te=String.fromCharCode(55349,56476+Ee)),te(re,ie,ge,qe,Te))}te(ne,ie,ce,"k",Te=String.fromCharCode(55349,56668)),te(re,ie,ge,"k",Te);for(var Me=0;Me<10;Me++){var Ae=Me.toString();te(ne,ie,ce,Ae,Te=String.fromCharCode(55349,57294+Me)),te(re,ie,ge,Ae,Te),te(ne,ie,ce,Ae,Te=String.fromCharCode(55349,57314+Me)),te(re,ie,ge,Ae,Te),te(ne,ie,ce,Ae,Te=String.fromCharCode(55349,57324+Me)),te(re,ie,ge,Ae,Te),te(ne,ie,ce,Ae,Te=String.fromCharCode(55349,57334+Me)),te(re,ie,ge,Ae,Te)}for(var Ne="ÇÐÞçþ",Oe=0;Oe<5;Oe++){var De=Ne.charAt(Oe);te(ne,ie,ce,De,De),te(re,ie,ge,De,De)}var ze=[["mathbf","textbf","Main-Bold"],["mathbf","textbf","Main-Bold"],["mathnormal","textit","Math-Italic"],["mathnormal","textit","Math-Italic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["mathscr","textscr","Script-Regular"],["","",""],["","",""],["","",""],["mathfrak","textfrak","Fraktur-Regular"],["mathfrak","textfrak","Fraktur-Regular"],["mathbb","textbb","AMS-Regular"],["mathbb","textbb","AMS-Regular"],["","",""],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathitsf","textitsf","SansSerif-Italic"],["mathitsf","textitsf","SansSerif-Italic"],["","",""],["","",""],["mathtt","texttt","Typewriter-Regular"],["mathtt","texttt","Typewriter-Regular"]],Le=[["mathbf","textbf","Main-Bold"],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathtt","texttt","Typewriter-Regular"]],Ie=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],_e=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],Re=function(e,t){return t.size<2?e:Ie[e-1][t.size-1]},Be=function(){function e(t){this.style=void 0,this.color=void 0,this.size=void 0,this.textSize=void 0,this.phantom=void 0,this.font=void 0,this.fontFamily=void 0,this.fontWeight=void 0,this.fontShape=void 0,this.sizeMultiplier=void 0,this.maxSize=void 0,this.minRuleThickness=void 0,this._fontMetrics=void 0,this.style=t.style,this.color=t.color,this.size=t.size||e.BASESIZE,this.textSize=t.textSize||this.size,this.phantom=!!t.phantom,this.font=t.font||"",this.fontFamily=t.fontFamily||"",this.fontWeight=t.fontWeight||"",this.fontShape=t.fontShape||"",this.sizeMultiplier=_e[this.size-1],this.maxSize=t.maxSize,this.minRuleThickness=t.minRuleThickness,this._fontMetrics=void 0}var t=e.prototype;return t.extend=function(t){var n={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};for(var r in t)t.hasOwnProperty(r)&&(n[r]=t[r]);return new e(n)},t.havingStyle=function(e){return this.style===e?this:this.extend({style:e,size:Re(this.textSize,e)})},t.havingCrampedStyle=function(){return this.havingStyle(this.style.cramp())},t.havingSize=function(e){return this.size===e&&this.textSize===e?this:this.extend({style:this.style.text(),size:e,textSize:e,sizeMultiplier:_e[e-1]})},t.havingBaseStyle=function(t){t=t||this.style.text();var n=Re(e.BASESIZE,t);return this.size===n&&this.textSize===e.BASESIZE&&this.style===t?this:this.extend({style:t,size:n})},t.havingBaseSizing=function(){var e;switch(this.style.id){case 4:case 5:e=3;break;case 6:case 7:e=1;break;default:e=6}return this.extend({style:this.style.text(),size:e})},t.withColor=function(e){return this.extend({color:e})},t.withPhantom=function(){return this.extend({phantom:!0})},t.withFont=function(e){return this.extend({font:e})},t.withTextFontFamily=function(e){return this.extend({fontFamily:e,font:""})},t.withTextFontWeight=function(e){return this.extend({fontWeight:e,font:""})},t.withTextFontShape=function(e){return this.extend({fontShape:e,font:""})},t.sizingClasses=function(e){return e.size!==this.size?["sizing","reset-size"+e.size,"size"+this.size]:[]},t.baseSizingClasses=function(){return this.size!==e.BASESIZE?["sizing","reset-size"+this.size,"size"+e.BASESIZE]:[]},t.fontMetrics=function(){return this._fontMetrics||(this._fontMetrics=function(e){var t;if(!X[t=e>=5?0:e>=3?1:2]){var n=X[t]={cssEmPerMu:$.quad[t]/18};for(var r in $)$.hasOwnProperty(r)&&(n[r]=$[r][t])}return X[t]}(this.size)),this._fontMetrics},t.getColor=function(){return this.phantom?"transparent":this.color},e}();Be.BASESIZE=6;var Pe=Be,je={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},He={ex:!0,em:!0,mu:!0},Fe=function(e){return"string"!=typeof e&&(e=e.unit),e in je||e in He||"ex"===e},Ue=function(e,t){var n;if(e.unit in je)n=je[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 o("Invalid unit: '"+e.unit+"'");n=r.fontMetrics().quad}r!==t&&(n*=r.sizeMultiplier/t.sizeMultiplier)}return Math.min(e.number*n,t.maxSize)},Qe=function(e,t,n){return ee[n][e]&&ee[n][e].replace&&(e=ee[n][e].replace),{value:e,metrics:K(e,t,n)}},We=function(e,t,n,r,i){var a,o=Qe(e,t,n),s=o.metrics;if(e=o.value,s){var l=s.italic;("text"===n||r&&"mathit"===r.font)&&(l=0),a=new H(e,s.height,s.depth,l,s.skew,s.width,i)}else"undefined"!=typeof console&&console.warn("No character metrics for '"+e+"' in style '"+t+"' and mode '"+n+"'"),a=new H(e,0,0,0,0,0,i);if(r){a.maxFontSize=r.sizeMultiplier,r.style.isTight()&&a.classes.push("mtight");var u=r.getColor();u&&(a.style.color=u)}return a},Ve=function(e,t){if(z(e.classes)!==z(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},$e=function(e){for(var t=0,n=0,r=0,i=0;i<e.children.length;i++){var a=e.children[i];a.height>t&&(t=a.height),a.depth>n&&(n=a.depth),a.maxFontSize>r&&(r=a.maxFontSize)}e.height=t,e.depth=n,e.maxFontSize=r},Ge=function(e,t,n,r){var i=new R(e,t,n,r);return $e(i),i},Ke=function(e,t,n,r){return new R(e,t,n,r)},Xe=function(e){var t=new D(e);return $e(t),t},Ye=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")},Ze={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathit:{variant:"italic",fontName:"Main-Italic"},mathnormal:{variant:"italic",fontName:"Math-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],leftParenInner:["leftParenInner",.875,.3],rightParenInner:["rightParenInner",.875,.3]},et={fontMap:Ze,makeSymbol:We,mathsym:function(e,t,n,r){return void 0===r&&(r=[]),"boldsymbol"===n.font&&Qe(e,"Main-Bold",t).metrics?We(e,"Main-Bold",t,n,r.concat(["mathbf"])):"\\"===e||"main"===ee[t][e].font?We(e,"Main-Regular",t,n,r):We(e,"AMS-Regular",t,n,r.concat(["amsrm"]))},makeSpan:Ge,makeSvgSpan:Ke,makeLineSpan:function(e,t,n){var r=Ge([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 i=new B(e,t,n,r);return $e(i),i},makeFragment:Xe,wrapFragment:function(e,t){return e instanceof D?Ge([],[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,i=r,a=1;a<t.length;a++){var o=-t[a].shift-i-t[a].elem.depth,s=o-(t[a-1].elem.height+t[a-1].elem.depth);i+=o,n.push({type:"kern",size:s}),n.push(t[a])}return{children:n,depth:r}}var l;if("top"===e.positionType){for(var u=e.positionData,c=0;c<e.children.length;c++){var d=e.children[c];u-="kern"===d.type?d.size:d.elem.height+d.elem.depth}l=u}else if("bottom"===e.positionType)l=-e.positionData;else{var h=e.children[0];if("elem"!==h.type)throw new Error('First child must have type "elem".');if("shift"===e.positionType)l=-h.elem.depth-e.positionData;else{if("firstBaseline"!==e.positionType)throw new Error("Invalid positionType "+e.positionType+".");l=-h.elem.depth}}return{children:e.children,depth:l}}(e),r=n.children,i=n.depth,a=0,o=0;o<r.length;o++){var s=r[o];if("elem"===s.type){var l=s.elem;a=Math.max(a,l.maxFontSize,l.height)}}a+=2;var u=Ge(["pstrut"],[]);u.style.height=a+"em";for(var c=[],d=i,h=i,p=i,f=0;f<r.length;f++){var m=r[f];if("kern"===m.type)p+=m.size;else{var g=m.elem,b=m.wrapperClasses||[],v=m.wrapperStyle||{},y=Ge(b,[u,g],void 0,v);y.style.top=-a-p-g.depth+"em",m.marginLeft&&(y.style.marginLeft=m.marginLeft),m.marginRight&&(y.style.marginRight=m.marginRight),c.push(y),p+=g.height+g.depth}d=Math.min(d,p),h=Math.max(h,p)}var x,w=Ge(["vlist"],c);if(w.style.height=h+"em",d<0){var k=Ge([],[]),S=Ge(["vlist"],[k]);S.style.height=-d+"em";var C=Ge(["vlist-s"],[new H("​")]);x=[Ge(["vlist-r"],[w,C]),Ge(["vlist-r"],[S])]}else x=[Ge(["vlist-r"],[w])];var T=Ge(["vlist-t"],x);return 2===x.length&&T.classes.push("vlist-t2"),T.height=h,T.depth=-d,T},makeOrd:function(e,t,n){var r=e.mode,i=e.text,a=["mord"],s="math"===r||"text"===r&&t.font,l=s?t.font:t.fontFamily;if(55349===i.charCodeAt(0)){var u=function(e,t){var n=1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536,r="math"===t?0:1;if(119808<=n&&n<120484){var i=Math.floor((n-119808)/26);return[ze[i][2],ze[i][r]]}if(120782<=n&&n<=120831){var a=Math.floor((n-120782)/10);return[Le[a][2],Le[a][r]]}if(120485===n||120486===n)return[ze[0][2],ze[0][r]];if(120486<n&&n<120782)return["",""];throw new o("Unsupported character: "+e)}(i,r),c=u[0],d=u[1];return We(i,c,r,t,a.concat(d))}if(l){var h,p;if("boldsymbol"===l){var f=function(e,t,n,r,i){return"textord"!==i&&Qe(e,"Math-BoldItalic",t).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}}(i,r,0,0,n);h=f.fontName,p=[f.fontClass]}else s?(h=Ze[l].fontName,p=[l]):(h=Ye(l,t.fontWeight,t.fontShape),p=[l,t.fontWeight,t.fontShape]);if(Qe(i,h,r).metrics)return We(i,h,r,t,a.concat(p));if(be.hasOwnProperty(i)&&"Typewriter"===h.substr(0,10)){for(var m=[],g=0;g<i.length;g++)m.push(We(i[g],h,r,t,a.concat(p)));return Xe(m)}}if("mathord"===n)return We(i,"Math-Italic",r,t,a.concat(["mathnormal"]));if("textord"===n){var b=ee[r][i]&&ee[r][i].font;if("ams"===b){var v=Ye("amsrm",t.fontWeight,t.fontShape);return We(i,v,r,t,a.concat("amsrm",t.fontWeight,t.fontShape))}if("main"!==b&&b){var y=Ye(b,t.fontWeight,t.fontShape);return We(i,y,r,t,a.concat(y,t.fontWeight,t.fontShape))}var x=Ye("textrm",t.fontWeight,t.fontShape);return We(i,x,r,t,a.concat(t.fontWeight,t.fontShape))}throw new Error("unexpected type: "+n+" in makeOrd")},makeGlue:function(e,t){var n=Ge(["mspace"],[],t),r=Ue(e,t);return n.style.marginRight=r+"em",n},staticSvg:function(e,t){var n=Je[e],r=n[0],i=n[1],a=n[2],o=new U(r),s=new F([o],{width:i+"em",height:a+"em",style:"width:"+i+"em",viewBox:"0 0 "+1e3*i+" "+1e3*a,preserveAspectRatio:"xMinYMin"}),l=Ke(["overlay"],[s],t);return l.height=a,l.style.height=a+"em",l.style.width=i+"em",l},svgData:Je,tryCombineChars:function(e){for(var t=0;t<e.length-1;t++){var n=e[t],r=e[t+1];n instanceof H&&r instanceof H&&Ve(n,r)&&(n.text+=r.text,n.height=Math.max(n.height,r.height),n.depth=Math.max(n.depth,r.depth),n.italic=r.italic,e.splice(t+1,1),t--)}return e}},tt={number:3,unit:"mu"},nt={number:4,unit:"mu"},rt={number:5,unit:"mu"},it={mord:{mop:tt,mbin:nt,mrel:rt,minner:tt},mop:{mord:tt,mop:tt,mrel:rt,minner:tt},mbin:{mord:nt,mop:nt,mopen:nt,minner:nt},mrel:{mord:rt,mop:rt,mopen:rt,minner:rt},mopen:{},mclose:{mop:tt,mbin:nt,mrel:rt,minner:tt},mpunct:{mord:tt,mop:tt,mrel:rt,mopen:tt,mclose:tt,mpunct:tt,minner:tt},minner:{mord:tt,mop:tt,mbin:nt,mrel:rt,mopen:tt,mpunct:tt,minner:tt}},at={mord:{mop:tt},mop:{mord:tt,mop:tt},mbin:{},mrel:{},mopen:{},mclose:{mop:tt},mpunct:{},minner:{mop:tt}},ot={},st={},lt={};function ut(e){for(var t=e.type,n=e.names,r=e.props,i=e.handler,a=e.htmlBuilder,o=e.mathmlBuilder,s={type:t,numArgs:r.numArgs,argTypes:r.argTypes,greediness:void 0===r.greediness?1:r.greediness,allowedInText:!!r.allowedInText,allowedInMath:void 0===r.allowedInMath||r.allowedInMath,numOptionalArgs:r.numOptionalArgs||0,infix:!!r.infix,handler:i},l=0;l<n.length;++l)ot[n[l]]=s;t&&(a&&(st[t]=a),o&&(lt[t]=o))}function ct(e){ut({type:e.type,names:[],props:{numArgs:0},handler:function(){throw new Error("Should never be called.")},htmlBuilder:e.htmlBuilder,mathmlBuilder:e.mathmlBuilder})}var dt=function(e){return"ordgroup"===e.type?e.body:[e]},ht=et.makeSpan,pt=["leftmost","mbin","mopen","mrel","mop","mpunct"],ft=["rightmost","mrel","mclose","mpunct"],mt={display:q.DISPLAY,text:q.TEXT,script:q.SCRIPT,scriptscript:q.SCRIPTSCRIPT},gt={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},bt=function(e,t,n,r){void 0===r&&(r=[null,null]);for(var i=[],a=0;a<e.length;a++){var o=St(e[a],t);if(o instanceof D){var s=o.children;i.push.apply(i,s)}else i.push(o)}if(!n)return i;var l=t;if(1===e.length){var u=e[0];"sizing"===u.type?l=t.havingSize(u.size):"styling"===u.type&&(l=t.havingStyle(mt[u.style]))}var c=ht([r[0]||"leftmost"],[],t),h=ht([r[1]||"rightmost"],[],t),p="root"===n;return vt(i,function(e,t){var n=t.classes[0],r=e.classes[0];"mbin"===n&&d(ft,r)?t.classes[0]="mord":"mbin"===r&&d(pt,n)&&(e.classes[0]="mord")},{node:c},h,p),vt(i,function(e,t){var n=wt(t),r=wt(e),i=n&&r?e.hasClass("mtight")?at[n][r]:it[n][r]:null;if(i)return et.makeGlue(i,l)},{node:c},h,p),i},vt=function e(t,n,r,i,a){i&&t.push(i);for(var o=0;o<t.length;o++){var s=t[o],l=yt(s);if(l)e(l.children,n,r,null,a);else{var u=!s.hasClass("mspace");if(u){var c=n(s,r.node);c&&(r.insertAfter?r.insertAfter(c):(t.unshift(c),o++))}u?r.node=s:a&&s.hasClass("newline")&&(r.node=ht(["leftmost"])),r.insertAfter=function(e){return function(n){t.splice(e+1,0,n),o++}}(o)}}i&&t.pop()},yt=function(e){return e instanceof D||e instanceof B||e instanceof R&&e.hasClass("enclosing")?e:null},xt=function e(t,n){var r=yt(t);if(r){var i=r.children;if(i.length){if("right"===n)return e(i[i.length-1],"right");if("left"===n)return e(i[0],"left")}}return t},wt=function(e,t){return e?(t&&(e=xt(e,t)),gt[e.classes[0]]||null):null},kt=function(e,t){var n=["nulldelimiter"].concat(e.baseSizingClasses());return ht(t.concat(n))},St=function(e,t,n){if(!e)return ht();if(st[e.type]){var r=st[e.type](e,t);if(n&&t.size!==n.size){r=ht(t.sizingClasses(n),[r],t);var i=t.sizeMultiplier/n.sizeMultiplier;r.height*=i,r.depth*=i}return r}throw new o("Got group of unknown type: '"+e.type+"'")};function Ct(e,t){var n=ht(["base"],e,t),r=ht(["strut"]);return r.style.height=n.height+n.depth+"em",r.style.verticalAlign=-n.depth+"em",n.children.unshift(r),n}function Tt(e,t){var n=null;1===e.length&&"tag"===e[0].type&&(n=e[0].tag,e=e[0].body);for(var r,i=bt(e,t,"root"),a=[],o=[],s=0;s<i.length;s++)if(o.push(i[s]),i[s].hasClass("mbin")||i[s].hasClass("mrel")||i[s].hasClass("allowbreak")){for(var l=!1;s<i.length-1&&i[s+1].hasClass("mspace")&&!i[s+1].hasClass("newline");)s++,o.push(i[s]),i[s].hasClass("nobreak")&&(l=!0);l||(a.push(Ct(o,t)),o=[])}else i[s].hasClass("newline")&&(o.pop(),o.length>0&&(a.push(Ct(o,t)),o=[]),a.push(i[s]));o.length>0&&a.push(Ct(o,t)),n&&((r=Ct(bt(n,t,!0))).classes=["tag"],a.push(r));var u=ht(["katex-html"],a);if(u.setAttribute("aria-hidden","true"),r){var c=r.children[0];c.style.height=u.height+u.depth+"em",c.style.verticalAlign=-u.depth+"em"}return u}function Et(e){return new D(e)}var qt=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<this.children.length;n++)e.appendChild(this.children[n].toNode());return e},t.toMarkup=function(){var e="<"+this.type;for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&(e+=" "+t+'="',e+=p(this.attributes[t]),e+='"');e+=">";for(var n=0;n<this.children.length;n++)e+=this.children[n].toMarkup();return e+"</"+this.type+">"},t.toText=function(){return this.children.map(function(e){return e.toText()}).join("")},e}(),Mt=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 p(this.toText())},t.toText=function(){return this.text},e}(),At={MathNode:qt,TextNode:Mt,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?"<mtext>"+this.character+"</mtext>":'<mspace width="'+this.width+'em"/>'},t.toText=function(){return this.character?this.character:" "},e}(),newDocumentFragment:Et},Nt=function(e,t,n){return!ee[t][e]||!ee[t][e].replace||55349===e.charCodeAt(0)||be.hasOwnProperty(e)&&n&&(n.fontFamily&&"tt"===n.fontFamily.substr(4,2)||n.font&&"tt"===n.font.substr(4,2))||(e=ee[t][e].replace),new At.TextNode(e)},Ot=function(e){return 1===e.length?e[0]:new At.MathNode("mrow",e)},Dt=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"textord"===e.type?"bold":"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 i=e.text;return d(["\\imath","\\jmath"],i)?null:(ee[r][i]&&ee[r][i].replace&&(i=ee[r][i].replace),K(i,et.fontMap[n].fontName,r)?et.fontMap[n].variant:null)},zt=function(e,t,n){if(1===e.length){var r=It(e[0],t);return n&&r instanceof qt&&"mo"===r.type&&(r.setAttribute("lspace","0em"),r.setAttribute("rspace","0em")),[r]}for(var i,a=[],o=0;o<e.length;o++){var s=It(e[o],t);if(s instanceof qt&&i instanceof qt){if("mtext"===s.type&&"mtext"===i.type&&s.getAttribute("mathvariant")===i.getAttribute("mathvariant")){var l;(l=i.children).push.apply(l,s.children);continue}if("mn"===s.type&&"mn"===i.type){var u;(u=i.children).push.apply(u,s.children);continue}if("mi"===s.type&&1===s.children.length&&"mn"===i.type){var c=s.children[0];if(c instanceof Mt&&"."===c.text){var d;(d=i.children).push.apply(d,s.children);continue}}else if("mi"===i.type&&1===i.children.length){var h=i.children[0];if(h instanceof Mt&&"̸"===h.text&&("mo"===s.type||"mi"===s.type||"mn"===s.type)){var p=s.children[0];p instanceof Mt&&p.text.length>0&&(p.text=p.text.slice(0,1)+"̸"+p.text.slice(1),a.pop())}}}a.push(s),i=s}return a},Lt=function(e,t,n){return Ot(zt(e,t,n))},It=function(e,t){if(!e)return new At.MathNode("mrow");if(lt[e.type])return lt[e.type](e,t);throw new o("Got group of unknown type: '"+e.type+"'")};function _t(e,t,n,r,i){var a,o=zt(e,n);a=1===o.length&&o[0]instanceof qt&&d(["mrow","mtable"],o[0].type)?o[0]:new At.MathNode("mrow",o);var s=new At.MathNode("annotation",[new At.TextNode(t)]);s.setAttribute("encoding","application/x-tex");var l=new At.MathNode("semantics",[a,s]),u=new At.MathNode("math",[l]);return u.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),r&&u.setAttribute("display","block"),et.makeSpan([i?"katex":"katex-mathml"],[u])}var Rt=function(e){return new Pe({style:e.displayMode?q.DISPLAY:q.TEXT,maxSize:e.maxSize,minRuleThickness:e.minRuleThickness})},Bt=function(e,t){if(t.displayMode){var n=["katex-display"];t.leqno&&n.push("leqno"),t.fleqn&&n.push("fleqn"),e=et.makeSpan(n,[e])}return e},Pt={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:"⇋"},jt={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]},Ht=function(e){var t=new At.MathNode("mo",[new At.TextNode(Pt[e.substr(1)])]);return t.setAttribute("stretchy","true"),t},Ft=function(e,t){var n=function(){var n=4e5,r=e.label.substr(1);if(d(["widehat","widecheck","widetilde","utilde"],r)){var i,a,o,s="ordgroup"===(f=e.base).type?f.body.length:1;if(s>5)"widehat"===r||"widecheck"===r?(i=420,n=2364,o=.42,a=r+"4"):(i=312,n=2340,o=.34,a="tilde4");else{var l=[1,1,2,2,3,3][s];"widehat"===r||"widecheck"===r?(n=[0,1062,2364,2364,2364][l],i=[0,239,300,360,420][l],o=[0,.24,.3,.3,.36,.42][l],a=r+l):(n=[0,600,1033,2339,2340][l],i=[0,260,286,306,312][l],o=[0,.26,.286,.3,.306,.34][l],a="tilde"+l)}var u=new U(a),c=new F([u],{width:"100%",height:o+"em",viewBox:"0 0 "+n+" "+i,preserveAspectRatio:"none"});return{span:et.makeSvgSpan([],[c],t),minWidth:0,height:o}}var h,p,f,m=[],g=jt[r],b=g[0],v=g[1],y=g[2],x=y/1e3,w=b.length;if(1===w)h=["hide-tail"],p=[g[3]];else if(2===w)h=["halfarrow-left","halfarrow-right"],p=["xMinYMin","xMaxYMin"];else{if(3!==w)throw new Error("Correct katexImagesData or update code here to support\n "+w+" children.");h=["brace-left","brace-center","brace-right"],p=["xMinYMin","xMidYMin","xMaxYMin"]}for(var k=0;k<w;k++){var S=new U(b[k]),C=new F([S],{width:"400em",height:x+"em",viewBox:"0 0 "+n+" "+y,preserveAspectRatio:p[k]+" slice"}),T=et.makeSvgSpan([h[k]],[C],t);if(1===w)return{span:T,minWidth:v,height:x};T.style.height=x+"em",m.push(T)}return{span:et.makeSpan(["stretchy"],m,t),minWidth:v,height:x}}(),r=n.span,i=n.minWidth,a=n.height;return r.height=a,r.style.height=a+"em",i>0&&(r.style.minWidth=i+"em"),r};function Ut(e,t){if(!e||e.type!==t)throw new Error("Expected node of type "+t+", but got "+(e?"node of type "+e.type:String(e)));return e}function Qt(e){var t=Wt(e);if(!t)throw new Error("Expected node of symbol group type, but got "+(e?"node of type "+e.type:String(e)));return t}function Wt(e){return e&&("atom"===e.type||Z.hasOwnProperty(e.type))?e:null}var Vt=function(e,t){var n,r,i;e&&"supsub"===e.type?(n=(r=Ut(e.base,"accent")).base,e.base=n,i=function(e){if(e instanceof R)return e;throw new Error("Expected span<HtmlDomNode> but got "+String(e)+".")}(St(e,t)),e.base=r):n=(r=Ut(e,"accent")).base;var a=St(n,t.havingCrampedStyle()),o=0;if(r.isShifty&&g(n)){var s=m(n);o=W(St(s,t.havingCrampedStyle())).skew}var l,u=Math.min(a.height,t.fontMetrics().xHeight);if(r.isStretchy)l=Ft(r,t),l=et.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"elem",elem:l,wrapperClasses:["svg-align"],wrapperStyle:o>0?{width:"calc(100% - "+2*o+"em)",marginLeft:2*o+"em"}:void 0}]},t);else{var c,d;"\\vec"===r.label?(c=et.staticSvg("vec",t),d=et.svgData.vec[1]):((c=W(c=et.makeOrd({mode:r.mode,text:r.label},t,"textord"))).italic=0,d=c.width),l=et.makeSpan(["accent-body"],[c]);var h="\\textcircled"===r.label;h&&(l.classes.push("accent-full"),u=a.height);var p=o;h||(p-=d/2),l.style.left=p+"em","\\textcircled"===r.label&&(l.style.top=".2em"),l=et.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"kern",size:-u},{type:"elem",elem:l}]},t)}var f=et.makeSpan(["mord","accent"],[l],t);return i?(i.children[0]=f,i.height=Math.max(f.height,i.height),i.classes[0]="mord",i):f},$t=function(e,t){var n=e.isStretchy?Ht(e.label):new At.MathNode("mo",[Nt(e.label,e.mode)]),r=new At.MathNode("mover",[It(e.base,t),n]);return r.setAttribute("accent","true"),r},Gt=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(function(e){return"\\"+e}).join("|"));ut({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=!Gt.test(e.funcName),i=!r||"\\widehat"===e.funcName||"\\widetilde"===e.funcName||"\\widecheck"===e.funcName;return{type:"accent",mode:e.parser.mode,label:e.funcName,isStretchy:r,isShifty:i,base:n}},htmlBuilder:Vt,mathmlBuilder:$t}),ut({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:Vt,mathmlBuilder:$t}),ut({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:function(e,t){var n=e.parser,r=e.funcName,i=t[0];return{type:"accentUnder",mode:n.mode,label:r,base:i}},htmlBuilder:function(e,t){var n=St(e.base,t),r=Ft(e,t),i="\\utilde"===e.label?.12:0,a=et.makeVList({positionType:"top",positionData:n.height,children:[{type:"elem",elem:r,wrapperClasses:["svg-align"]},{type:"kern",size:i},{type:"elem",elem:n}]},t);return et.makeSpan(["mord","accentunder"],[a],t)},mathmlBuilder:function(e,t){var n=Ht(e.label),r=new At.MathNode("munder",[It(e.base,t),n]);return r.setAttribute("accentunder","true"),r}});var Kt=function(e){var t=new At.MathNode("mpadded",e?[e]:[]);return t.setAttribute("width","+0.6em"),t.setAttribute("lspace","0.3em"),t};ut({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,i=e.funcName;return{type:"xArrow",mode:r.mode,label:i,body:t[0],below:n[0]}},htmlBuilder:function(e,t){var n,r=t.style,i=t.havingStyle(r.sup()),a=et.wrapFragment(St(e.body,i,t),t);a.classes.push("x-arrow-pad"),e.below&&(i=t.havingStyle(r.sub()),(n=et.wrapFragment(St(e.below,i,t),t)).classes.push("x-arrow-pad"));var o,s=Ft(e,t),l=-t.fontMetrics().axisHeight+.5*s.height,u=-t.fontMetrics().axisHeight-.5*s.height-.111;if((a.depth>.25||"\\xleftequilibrium"===e.label)&&(u-=a.depth),n){var c=-t.fontMetrics().axisHeight+n.height+.5*s.height+.111;o=et.makeVList({positionType:"individualShift",children:[{type:"elem",elem:a,shift:u},{type:"elem",elem:s,shift:l},{type:"elem",elem:n,shift:c}]},t)}else o=et.makeVList({positionType:"individualShift",children:[{type:"elem",elem:a,shift:u},{type:"elem",elem:s,shift:l}]},t);return o.children[0].children[0].children[1].classes.push("svg-align"),et.makeSpan(["mrel","x-arrow"],[o],t)},mathmlBuilder:function(e,t){var n,r=Ht(e.label);if(e.body){var i=Kt(It(e.body,t));if(e.below){var a=Kt(It(e.below,t));n=new At.MathNode("munderover",[r,a,i])}else n=new At.MathNode("mover",[r,i])}else if(e.below){var o=Kt(It(e.below,t));n=new At.MathNode("munder",[r,o])}else n=Kt(),n=new At.MathNode("mover",[r,n]);return n}}),ut({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler:function(e,t){for(var n=e.parser,r=Ut(t[0],"ordgroup").body,i="",a=0;a<r.length;a++)i+=Ut(r[a],"textord").text;var s=parseInt(i);if(isNaN(s))throw new o("\\@char has non-numeric argument "+i);return{type:"textord",mode:n.mode,text:String.fromCharCode(s)}}});var Xt=function(e,t){var n=bt(e.body,t.withColor(e.color),!1);return et.makeFragment(n)},Yt=function(e,t){var n=zt(e.body,t.withColor(e.color)),r=new At.MathNode("mstyle",n);return r.setAttribute("mathcolor",e.color),r};ut({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,greediness:3,argTypes:["color","original"]},handler:function(e,t){var n=e.parser,r=Ut(t[0],"color-token").color,i=t[1];return{type:"color",mode:n.mode,color:r,body:dt(i)}},htmlBuilder:Xt,mathmlBuilder:Yt}),ut({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,greediness:3,argTypes:["color"]},handler:function(e,t){var n=e.parser,r=e.breakOnTokenText,i=Ut(t[0],"color-token").color;n.gullet.macros.set("\\current@color",i);var a=n.parseExpression(!0,r);return{type:"color",mode:n.mode,color:i,body:a}},htmlBuilder:Xt,mathmlBuilder:Yt}),ut({type:"cr",names:["\\cr","\\newline"],props:{numArgs:0,numOptionalArgs:1,argTypes:["size"],allowedInText:!0},handler:function(e,t,n){var r=e.parser,i=e.funcName,a=n[0],o="\\cr"===i,s=!1;return o||(s=!r.settings.displayMode||!r.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode")),{type:"cr",mode:r.mode,newLine:s,newRow:o,size:a&&Ut(a,"size").value}},htmlBuilder:function(e,t){if(e.newRow)throw new o("\\cr valid only within a tabular/array environment");var n=et.makeSpan(["mspace"],[],t);return e.newLine&&(n.classes.push("newline"),e.size&&(n.style.marginTop=Ue(e.size,t)+"em")),n},mathmlBuilder:function(e,t){var n=new At.MathNode("mspace");return e.newLine&&(n.setAttribute("linebreak","newline"),e.size&&n.setAttribute("height",Ue(e.size,t)+"em")),n}});var Zt={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},Jt=function(e){var t=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new o("Expected a control sequence",e);return t},en=function(e,t,n,r){var i=e.gullet.macros.get(n.text);null==i&&(n.noexpand=!0,i={tokens:[n],numArgs:0,unexpandable:!e.gullet.isExpandable(n.text)}),e.gullet.macros.set(t,i,r)};ut({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler:function(e){var t=e.parser,n=e.funcName;t.consumeSpaces();var r=t.fetch();if(Zt[r.text])return"\\global"!==n&&"\\\\globallong"!==n||(r.text=Zt[r.text]),Ut(t.parseFunction(),"internal");throw new o("Invalid token after macro prefix",r)}}),ut({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0},handler:function(e){var t=e.parser,n=e.funcName,r=t.gullet.consumeArgs(1)[0];if(1!==r.length)throw new o("\\gdef's first argument must be a macro name");var i=r[0].text,a=0;for(r=t.gullet.consumeArgs(1)[0];1===r.length&&"#"===r[0].text;){if(1!==(r=t.gullet.consumeArgs(1)[0]).length)throw new o('Invalid argument number length "'+r.length+'"');if(!/^[1-9]$/.test(r[0].text))throw new o('Invalid argument number "'+r[0].text+'"');if(a++,parseInt(r[0].text)!==a)throw new o('Argument number "'+r[0].text+'" out of order');r=t.gullet.consumeArgs(1)[0]}return"\\edef"!==n&&"\\xdef"!==n||(r=t.gullet.expandTokens(r)).reverse(),t.gullet.macros.set(i,{tokens:r,numArgs:a},n===Zt[n]),{type:"internal",mode:t.mode}}}),ut({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0},handler:function(e){var t=e.parser,n=e.funcName,r=Jt(t.gullet.popToken());t.gullet.consumeSpaces();var i=function(e){var t=e.gullet.popToken();return"="===t.text&&" "===(t=e.gullet.popToken()).text&&(t=e.gullet.popToken()),t}(t);return en(t,r,i,"\\\\globallet"===n),{type:"internal",mode:t.mode}}}),ut({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0},handler:function(e){var t=e.parser,n=e.funcName,r=Jt(t.gullet.popToken()),i=t.gullet.popToken(),a=t.gullet.popToken();return en(t,r,a,"\\\\globalfuture"===n),t.gullet.pushToken(a),t.gullet.pushToken(i),{type:"internal",mode:t.mode}}});var tn=function(e,t,n){var r=K(ee.math[e]&&ee.math[e].replace||e,t,n);if(!r)throw new Error("Unsupported symbol "+e+" and font size "+t+".");return r},nn=function(e,t,n,r){var i=n.havingBaseStyle(t),a=et.makeSpan(r.concat(i.sizingClasses(n)),[e],n),o=i.sizeMultiplier/n.sizeMultiplier;return a.height*=o,a.depth*=o,a.maxFontSize=i.sizeMultiplier,a},rn=function(e,t,n){var r=t.havingBaseStyle(n),i=(1-t.sizeMultiplier/r.sizeMultiplier)*t.fontMetrics().axisHeight;e.classes.push("delimcenter"),e.style.top=i+"em",e.height-=i,e.depth+=i},an=function(e,t,n,r,i,a){var o=function(e,t,n,r){return et.makeSymbol(e,"Size"+t+"-Regular",n,r)}(e,t,i,r),s=nn(et.makeSpan(["delimsizing","size"+t],[o],r),q.TEXT,r,a);return n&&rn(s,r,q.TEXT),s},on=function(e,t,n){return{type:"elem",elem:et.makeSpan(["delimsizinginner","Size1-Regular"===t?"delim-size1":"delim-size4"],[et.makeSpan([],[et.makeSymbol(e,t,n)])])}},sn={type:"kern",size:-.005},ln=function(e,t,n,r,i,a){var o,s,l,u;o=l=u=e,s=null;var c="Size1-Regular";"\\uparrow"===e?l=u="⏐":"\\Uparrow"===e?l=u="‖":"\\downarrow"===e?o=l="⏐":"\\Downarrow"===e?o=l="‖":"\\updownarrow"===e?(o="\\uparrow",l="⏐",u="\\downarrow"):"\\Updownarrow"===e?(o="\\Uparrow",l="‖",u="\\Downarrow"):"["===e||"\\lbrack"===e?(o="⎡",l="⎢",u="⎣",c="Size4-Regular"):"]"===e||"\\rbrack"===e?(o="⎤",l="⎥",u="⎦",c="Size4-Regular"):"\\lfloor"===e||"⌊"===e?(l=o="⎢",u="⎣",c="Size4-Regular"):"\\lceil"===e||"⌈"===e?(o="⎡",l=u="⎢",c="Size4-Regular"):"\\rfloor"===e||"⌋"===e?(l=o="⎥",u="⎦",c="Size4-Regular"):"\\rceil"===e||"⌉"===e?(o="⎤",l=u="⎥",c="Size4-Regular"):"("===e||"\\lparen"===e?(o="⎛",l="⎜",u="⎝",c="Size4-Regular"):")"===e||"\\rparen"===e?(o="⎞",l="⎟",u="⎠",c="Size4-Regular"):"\\{"===e||"\\lbrace"===e?(o="⎧",s="⎨",u="⎩",l="⎪",c="Size4-Regular"):"\\}"===e||"\\rbrace"===e?(o="⎫",s="⎬",u="⎭",l="⎪",c="Size4-Regular"):"\\lgroup"===e||"⟮"===e?(o="⎧",u="⎩",l="⎪",c="Size4-Regular"):"\\rgroup"===e||"⟯"===e?(o="⎫",u="⎭",l="⎪",c="Size4-Regular"):"\\lmoustache"===e||"⎰"===e?(o="⎧",u="⎭",l="⎪",c="Size4-Regular"):"\\rmoustache"!==e&&"⎱"!==e||(o="⎫",u="⎩",l="⎪",c="Size4-Regular");var d=tn(o,c,i),h=d.height+d.depth,p=tn(l,c,i),f=p.height+p.depth,m=tn(u,c,i),g=m.height+m.depth,b=0,v=1;if(null!==s){var y=tn(s,c,i);b=y.height+y.depth,v=2}var x=h+g+b,w=Math.max(0,Math.ceil((t-x)/(v*f))),k=x+w*v*f,S=r.fontMetrics().axisHeight;n&&(S*=r.sizeMultiplier);var C=k/2-S,T=.005*(w+1)-f,E=[];if(E.push(on(u,c,i)),null===s)for(var M=0;M<w;M++)E.push(sn),E.push(on(l,c,i));else{for(var A=0;A<w;A++)E.push(sn),E.push(on(l,c,i));E.push({type:"kern",size:T}),E.push(on(l,c,i)),E.push(sn),E.push(on(s,c,i));for(var N=0;N<w;N++)E.push(sn),E.push(on(l,c,i))}if("⎜"!==l&&"⎟"!==l||0!==w)E.push({type:"kern",size:T}),E.push(on(l,c,i)),E.push(sn);else{var O=et.svgData.leftParenInner[2]/2;E.push({type:"kern",size:-O});var D=et.staticSvg("⎜"===l?"leftParenInner":"rightParenInner",r);E.push({type:"elem",elem:D}),E.push({type:"kern",size:-O})}E.push(on(o,c,i));var z=r.havingBaseStyle(q.TEXT),L=et.makeVList({positionType:"bottom",positionData:C,children:E},z);return nn(et.makeSpan(["delimsizing","mult"],[L],z),q.TEXT,r,a)},un=.08,cn=function(e,t,n,r,i){var a=function(e,t,n){t*=1e3;var r="";switch(e){case"sqrtMain":r=function(e){return"M95,"+(622+e+80)+"\nc-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14\nc0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54\nc44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10\ns173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429\nc69,-144,104.5,-217.7,106.5,-221\nl"+e/2.075+" -"+e+"\nc5.3,-9.3,12,-14,20,-14\nH400000v"+(40+e)+"H845.2724\ns-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7\nc-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z\nM"+(834+e)+" 80h400000v"+(40+e)+"h-400000z"}(t);break;case"sqrtSize1":r=function(e){return"M263,"+(601+e+80)+"c0.7,0,18,39.7,52,119\nc34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120\nc340,-704.7,510.7,-1060.3,512,-1067\nl"+e/2.084+" -"+e+"\nc4.7,-7.3,11,-11,19,-11\nH40000v"+(40+e)+"H1012.3\ns-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232\nc-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1\ns-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26\nc-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z\nM"+(1001+e)+" 80h400000v"+(40+e)+"h-400000z"}(t);break;case"sqrtSize2":r=function(e){return"M983 "+(10+e+80)+"\nl"+e/3.13+" -"+e+"\nc4,-6.7,10,-10,18,-10 H400000v"+(40+e)+"\nH1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7\ns-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744\nc-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30\nc26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722\nc56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5\nc53.7,-170.3,84.5,-266.8,92.5,-289.5z\nM"+(1001+e)+" 80h400000v"+(40+e)+"h-400000z"}(t);break;case"sqrtSize3":r=function(e){return"M424,"+(2398+e+80)+"\nc-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514\nc0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20\ns-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121\ns209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081\nl"+e/4.223+" -"+e+"c4,-6.7,10,-10,18,-10 H400000\nv"+(40+e)+"H1014.6\ns-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185\nc-2,6,-10,9,-24,9\nc-8,0,-12,-0.7,-12,-2z M"+(1001+e)+" 80\nh400000v"+(40+e)+"h-400000z"}(t);break;case"sqrtSize4":r=function(e){return"M473,"+(2713+e+80)+"\nc339.3,-1799.3,509.3,-2700,510,-2702 l"+e/5.298+" -"+e+"\nc3.3,-7.3,9.3,-11,18,-11 H400000v"+(40+e)+"H1017.7\ns-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9\nc-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200\nc0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26\ns76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104,\n606zM"+(1001+e)+" 80h400000v"+(40+e)+"H1017.7z"}(t);break;case"sqrtTall":r=function(e,t,n){return"M702 "+(e+80)+"H400000"+(40+e)+"\nH742v"+(n-54-80-e)+"l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1\nh-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170\nc-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667\n219 661 l218 661zM702 80H400000v"+(40+e)+"H742z"}(t,0,n)}return r}(e,r,n),o=new U(e,a),s=new F([o],{width:"400em",height:t+"em",viewBox:"0 0 400000 "+n,preserveAspectRatio:"xMinYMin slice"});return et.makeSvgSpan(["hide-tail"],[s],i)},dn=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"],hn=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"],pn=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],fn=[0,1.2,1.8,2.4,3],mn=[{type:"small",style:q.SCRIPTSCRIPT},{type:"small",style:q.SCRIPT},{type:"small",style:q.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],gn=[{type:"small",style:q.SCRIPTSCRIPT},{type:"small",style:q.SCRIPT},{type:"small",style:q.TEXT},{type:"stack"}],bn=[{type:"small",style:q.SCRIPTSCRIPT},{type:"small",style:q.SCRIPT},{type:"small",style:q.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],vn=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.")},yn=function(e,t,n,r){for(var i=Math.min(2,3-r.style.size);i<n.length&&"stack"!==n[i].type;i++){var a=tn(e,vn(n[i]),"math"),o=a.height+a.depth;if("small"===n[i].type&&(o*=r.havingBaseStyle(n[i].style).sizeMultiplier),o>t)return n[i]}return n[n.length-1]},xn=function(e,t,n,r,i,a){var o;"<"===e||"\\lt"===e||"⟨"===e?e="\\langle":">"!==e&&"\\gt"!==e&&"⟩"!==e||(e="\\rangle"),o=d(pn,e)?mn:d(dn,e)?bn:gn;var s=yn(e,t,o,r);return"small"===s.type?function(e,t,n,r,i,a){var o=et.makeSymbol(e,"Main-Regular",i,r),s=nn(o,t,r,a);return n&&rn(s,r,t),s}(e,s.style,n,r,i,a):"large"===s.type?an(e,s.size,n,r,i,a):ln(e,t,n,r,i,a)},wn=function(e,t,n,r,i){if("<"===e||"\\lt"===e||"⟨"===e?e="\\langle":">"!==e&&"\\gt"!==e&&"⟩"!==e||(e="\\rangle"),d(dn,e)||d(pn,e))return an(e,t,!1,n,r,i);if(d(hn,e))return ln(e,fn[t],!1,n,r,i);throw new o("Illegal delimiter: '"+e+"'")},kn=xn,Sn=function(e,t,n,r,i,a){var o=r.fontMetrics().axisHeight*r.sizeMultiplier,s=5/r.fontMetrics().ptPerEm,l=Math.max(t-o,n+o),u=Math.max(l/500*901,2*l-s);return xn(e,u,!0,r,i,a)},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}},Tn=["(","\\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 En(e,t){var n=Wt(e);if(n&&d(Tn,n.text))return n;throw new o(n?"Invalid delimiter '"+n.text+"' after '"+t.funcName+"'":"Invalid delimiter type '"+e.type+"'",e)}function qn(e){if(!e.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}ut({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=En(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?et.makeSpan([e.mclass]):wn(e.delim,e.size,t,e.mode,[e.mclass])},mathmlBuilder:function(e){var t=[];"."!==e.delim&&t.push(Nt(e.delim,e.mode));var n=new At.MathNode("mo",t);return"mopen"===e.mclass||"mclose"===e.mclass?n.setAttribute("fence","true"):n.setAttribute("fence","false"),n}}),ut({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 o("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:e.parser.mode,delim:En(t[0],e).text,color:n}}}),ut({type:"leftright",names:["\\left"],props:{numArgs:1},handler:function(e,t){var n=En(t[0],e),r=e.parser;++r.leftrightDepth;var i=r.parseExpression(!1);--r.leftrightDepth,r.expect("\\right",!1);var a=Ut(r.parseFunction(),"leftright-right");return{type:"leftright",mode:r.mode,body:i,left:n.text,right:a.delim,rightColor:a.color}},htmlBuilder:function(e,t){qn(e);for(var n,r,i=bt(e.body,t,!0,["mopen","mclose"]),a=0,o=0,s=!1,l=0;l<i.length;l++)i[l].isMiddle?s=!0:(a=Math.max(i[l].height,a),o=Math.max(i[l].depth,o));if(a*=t.sizeMultiplier,o*=t.sizeMultiplier,n="."===e.left?kt(t,["mopen"]):Sn(e.left,a,o,t,e.mode,["mopen"]),i.unshift(n),s)for(var u=1;u<i.length;u++){var c=i[u].isMiddle;c&&(i[u]=Sn(c.delim,a,o,c.options,e.mode,[]))}if("."===e.right)r=kt(t,["mclose"]);else{var d=e.rightColor?t.withColor(e.rightColor):t;r=Sn(e.right,a,o,d,e.mode,["mclose"])}return i.push(r),et.makeSpan(["minner"],i,t)},mathmlBuilder:function(e,t){qn(e);var n=zt(e.body,t);if("."!==e.left){var r=new At.MathNode("mo",[Nt(e.left,e.mode)]);r.setAttribute("fence","true"),n.unshift(r)}if("."!==e.right){var i=new At.MathNode("mo",[Nt(e.right,e.mode)]);i.setAttribute("fence","true"),e.rightColor&&i.setAttribute("mathcolor",e.rightColor),n.push(i)}return Ot(n)}}),ut({type:"middle",names:["\\middle"],props:{numArgs:1},handler:function(e,t){var n=En(t[0],e);if(!e.parser.leftrightDepth)throw new o("\\middle without preceding \\left",n);return{type:"middle",mode:e.parser.mode,delim:n.text}},htmlBuilder:function(e,t){var n;if("."===e.delim)n=kt(t,[]);else{n=wn(e.delim,1,t,e.mode,[]);var r={delim:e.delim,options:t};n.isMiddle=r}return n},mathmlBuilder:function(e,t){var n="\\vert"===e.delim||"|"===e.delim?Nt("|","text"):Nt(e.delim,e.mode),r=new At.MathNode("mo",[n]);return r.setAttribute("fence","true"),r.setAttribute("lspace","0.05em"),r.setAttribute("rspace","0.05em"),r}});var Mn=function(e,t){var n,r,i=et.wrapFragment(St(e.body,t),t),a=e.label.substr(1),o=t.sizeMultiplier,s=0,l=g(e.body);if("sout"===a)(n=et.makeSpan(["stretchy","sout"])).height=t.fontMetrics().defaultRuleThickness/o,s=-.5*t.fontMetrics().xHeight;else{/cancel/.test(a)?l||i.classes.push("cancel-pad"):i.classes.push("boxpad");var u=0,c=0;/box/.test(a)?(c=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness),u=t.fontMetrics().fboxsep+("colorbox"===a?0:c)):u=l?.2:0,n=function(e,t,n,r){var i,a=e.height+e.depth+2*n;if(/fbox|color/.test(t)){if(i=et.makeSpan(["stretchy",t],[],r),"fbox"===t){var o=r.color&&r.getColor();o&&(i.style.borderColor=o)}}else{var s=[];/^[bx]cancel$/.test(t)&&s.push(new Q({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(t)&&s.push(new Q({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var l=new F(s,{width:"100%",height:a+"em"});i=et.makeSvgSpan([],[l],r)}return i.height=a,i.style.height=a+"em",i}(i,a,u,t),/fbox|boxed|fcolorbox/.test(a)&&(n.style.borderStyle="solid",n.style.borderWidth=c+"em"),s=i.depth+u,e.backgroundColor&&(n.style.backgroundColor=e.backgroundColor,e.borderColor&&(n.style.borderColor=e.borderColor))}return r=e.backgroundColor?et.makeVList({positionType:"individualShift",children:[{type:"elem",elem:n,shift:s},{type:"elem",elem:i,shift:0}]},t):et.makeVList({positionType:"individualShift",children:[{type:"elem",elem:i,shift:0},{type:"elem",elem:n,shift:s,wrapperClasses:/cancel/.test(a)?["svg-align"]:[]}]},t),/cancel/.test(a)&&(r.height=i.height,r.depth=i.depth),/cancel/.test(a)&&!l?et.makeSpan(["mord","cancel-lap"],[r],t):et.makeSpan(["mord"],[r],t)},An=function(e,t){var n=0,r=new At.MathNode(e.label.indexOf("colorbox")>-1?"mpadded":"menclose",[It(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 i=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness);r.setAttribute("style","border: "+i+"em solid "+String(e.borderColor))}break;case"\\xcancel":r.setAttribute("notation","updiagonalstrike downdiagonalstrike")}return e.backgroundColor&&r.setAttribute("mathbackground",e.backgroundColor),r};ut({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,greediness:3,argTypes:["color","text"]},handler:function(e,t,n){var r=e.parser,i=e.funcName,a=Ut(t[0],"color-token").color,o=t[1];return{type:"enclose",mode:r.mode,label:i,backgroundColor:a,body:o}},htmlBuilder:Mn,mathmlBuilder:An}),ut({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,greediness:3,argTypes:["color","color","text"]},handler:function(e,t,n){var r=e.parser,i=e.funcName,a=Ut(t[0],"color-token").color,o=Ut(t[1],"color-token").color,s=t[2];return{type:"enclose",mode:r.mode,label:i,backgroundColor:o,borderColor:a,body:s}},htmlBuilder:Mn,mathmlBuilder:An}),ut({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]}}}),ut({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout"],props:{numArgs:1},handler:function(e,t,n){var r=e.parser,i=e.funcName,a=t[0];return{type:"enclose",mode:r.mode,label:i,body:a}},htmlBuilder:Mn,mathmlBuilder:An});var Nn={};function On(e){for(var t=e.type,n=e.names,r=e.props,i=e.handler,a=e.htmlBuilder,o=e.mathmlBuilder,s={type:t,numArgs:r.numArgs||0,greediness:1,allowedInText:!1,numOptionalArgs:0,handler:i},l=0;l<n.length;++l)Nn[n[l]]=s;a&&(st[t]=a),o&&(lt[t]=o)}function Dn(e){var t=[];e.consumeSpaces();for(var n=e.fetch().text;"\\hline"===n||"\\hdashline"===n;)e.consume(),t.push("\\hdashline"===n),e.consumeSpaces(),n=e.fetch().text;return t}function zn(e,t,n){var r=t.hskipBeforeAndAfter,i=t.addJot,a=t.cols,s=t.arraystretch,l=t.colSeparationType;if(e.gullet.beginGroup(),e.gullet.macros.set("\\\\","\\cr"),!s){var u=e.gullet.expandMacroAsText("\\arraystretch");if(null==u)s=1;else if(!(s=parseFloat(u))||s<0)throw new o("Invalid \\arraystretch: "+u)}e.gullet.beginGroup();var c=[],d=[c],h=[],p=[];for(p.push(Dn(e));;){var f=e.parseExpression(!1,"\\cr");e.gullet.endGroup(),e.gullet.beginGroup(),f={type:"ordgroup",mode:e.mode,body:f},n&&(f={type:"styling",mode:e.mode,style:n,body:[f]}),c.push(f);var m=e.fetch().text;if("&"===m)e.consume();else{if("\\end"===m){1===c.length&&"styling"===f.type&&0===f.body[0].body.length&&d.pop(),p.length<d.length+1&&p.push([]);break}if("\\cr"!==m)throw new o("Expected & or \\\\ or \\cr or \\end",e.nextToken);var g=Ut(e.parseFunction(),"cr");h.push(g.size),p.push(Dn(e)),c=[],d.push(c)}}return e.gullet.endGroup(),e.gullet.endGroup(),{type:"array",mode:e.mode,addJot:i,arraystretch:s,body:d,cols:a,rowGaps:h,hskipBeforeAndAfter:r,hLinesBeforeRow:p,colSeparationType:l}}function Ln(e){return"d"===e.substr(0,1)?"display":"text"}var In=function(e,t){var n,r,i=e.body.length,a=e.hLinesBeforeRow,s=0,l=new Array(i),u=[],c=Math.max(t.fontMetrics().arrayRuleWidth,t.minRuleThickness),d=1/t.fontMetrics().ptPerEm,p=5*d;e.colSeparationType&&"small"===e.colSeparationType&&(p=t.havingStyle(q.SCRIPT).sizeMultiplier/t.sizeMultiplier*.2778);var f=12*d,m=3*d,g=e.arraystretch*f,b=.7*g,v=.3*g,y=0;function x(e){for(var t=0;t<e.length;++t)t>0&&(y+=.25),u.push({pos:y,isDashed:e[t]})}for(x(a[0]),n=0;n<e.body.length;++n){var w=e.body[n],k=b,S=v;s<w.length&&(s=w.length);var C=new Array(w.length);for(r=0;r<w.length;++r){var T=St(w[r],t);S<T.depth&&(S=T.depth),k<T.height&&(k=T.height),C[r]=T}var E=e.rowGaps[n],M=0;E&&(M=Ue(E,t))>0&&(S<(M+=v)&&(S=M),M=0),e.addJot&&(S+=m),C.height=k,C.depth=S,y+=k,C.pos=y,y+=S+M,l[n]=C,x(a[n+1])}var A,N,O=y/2+t.fontMetrics().axisHeight,D=e.cols||[],z=[];for(r=0,N=0;r<s||N<D.length;++r,++N){for(var L=D[N]||{},I=!0;"separator"===L.type;){if(I||((A=et.makeSpan(["arraycolsep"],[])).style.width=t.fontMetrics().doubleRuleSep+"em",z.push(A)),"|"!==L.separator&&":"!==L.separator)throw new o("Invalid separator type: "+L.separator);var _="|"===L.separator?"solid":"dashed",R=et.makeSpan(["vertical-separator"],[],t);R.style.height=y+"em",R.style.borderRightWidth=c+"em",R.style.borderRightStyle=_,R.style.margin="0 -"+c/2+"em",R.style.verticalAlign=-(y-O)+"em",z.push(R),L=D[++N]||{},I=!1}if(!(r>=s)){var B=void 0;(r>0||e.hskipBeforeAndAfter)&&0!==(B=h(L.pregap,p))&&((A=et.makeSpan(["arraycolsep"],[])).style.width=B+"em",z.push(A));var P=[];for(n=0;n<i;++n){var j=l[n],H=j[r];if(H){var F=j.pos-O;H.depth=j.depth,H.height=j.height,P.push({type:"elem",elem:H,shift:F})}}P=et.makeVList({positionType:"individualShift",children:P},t),P=et.makeSpan(["col-align-"+(L.align||"c")],[P]),z.push(P),(r<s-1||e.hskipBeforeAndAfter)&&0!==(B=h(L.postgap,p))&&((A=et.makeSpan(["arraycolsep"],[])).style.width=B+"em",z.push(A))}}if(l=et.makeSpan(["mtable"],z),u.length>0){for(var U=et.makeLineSpan("hline",t,c),Q=et.makeLineSpan("hdashline",t,c),W=[{type:"elem",elem:l,shift:0}];u.length>0;){var V=u.pop(),$=V.pos-O;V.isDashed?W.push({type:"elem",elem:Q,shift:$}):W.push({type:"elem",elem:U,shift:$})}l=et.makeVList({positionType:"individualShift",children:W},t)}return et.makeSpan(["mord"],[l],t)},_n={c:"center ",l:"left ",r:"right "},Rn=function(e,t){var n=new At.MathNode("mtable",e.body.map(function(e){return new At.MathNode("mtr",e.map(function(e){return new At.MathNode("mtd",[It(e,t)])}))})),r=.5===e.arraystretch?.1:.16+e.arraystretch-1+(e.addJot?.09:0);n.setAttribute("rowspacing",r+"em");var i="",a="";if(e.cols&&e.cols.length>0){var o=e.cols,s="",l=!1,u=0,c=o.length;"separator"===o[0].type&&(i+="top ",u=1),"separator"===o[o.length-1].type&&(i+="bottom ",c-=1);for(var d=u;d<c;d++)"align"===o[d].type?(a+=_n[o[d].align],l&&(s+="none "),l=!0):"separator"===o[d].type&&l&&(s+="|"===o[d].separator?"solid ":"dashed ",l=!1);n.setAttribute("columnalign",a.trim()),/[sd]/.test(s)&&n.setAttribute("columnlines",s.trim())}if("align"===e.colSeparationType){for(var h=e.cols||[],p="",f=1;f<h.length;f++)p+=f%2?"0em ":"1em ";n.setAttribute("columnspacing",p.trim())}else"alignat"===e.colSeparationType?n.setAttribute("columnspacing","0em"):"small"===e.colSeparationType?n.setAttribute("columnspacing","0.2778em"):n.setAttribute("columnspacing","1em");var m="",g=e.hLinesBeforeRow;i+=g[0].length>0?"left ":"",i+=g[g.length-1].length>0?"right ":"";for(var b=1;b<g.length-1;b++)m+=0===g[b].length?"none ":g[b][0]?"dashed ":"solid ";return/[sd]/.test(m)&&n.setAttribute("rowlines",m.trim()),""!==i&&(n=new At.MathNode("menclose",[n])).setAttribute("notation",i.trim()),e.arraystretch&&e.arraystretch<1&&(n=new At.MathNode("mstyle",[n])).setAttribute("scriptlevel","1"),n},Bn=function(e,t){var n,r=[],i=zn(e.parser,{cols:r,addJot:!0},"display"),a=0,s={type:"ordgroup",mode:e.mode,body:[]};if(t[0]&&"ordgroup"===t[0].type){for(var l="",u=0;u<t[0].body.length;u++)l+=Ut(t[0].body[u],"textord").text;n=Number(l),a=2*n}var c=!a;i.body.forEach(function(e){for(var t=1;t<e.length;t+=2){var r=Ut(e[t],"styling");Ut(r.body[0],"ordgroup").body.unshift(s)}if(c)a<e.length&&(a=e.length);else{var i=e.length/2;if(n<i)throw new o("Too many math in a row: expected "+n+", but got "+i,e[0])}});for(var d=0;d<a;++d){var h="r",p=0;d%2==1?h="l":d>0&&c&&(p=1),r[d]={type:"align",align:h,pregap:p,postgap:0}}return i.colSeparationType=c?"align":"alignat",i};On({type:"array",names:["array","darray"],props:{numArgs:1},handler:function(e,t){var n={cols:(Wt(t[0])?[t[0]]:Ut(t[0],"ordgroup").body).map(function(e){var t=Qt(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 o("Unknown column alignment: "+t,e)}),hskipBeforeAndAfter:!0};return zn(e.parser,n,Ln(e.envName))},htmlBuilder:In,mathmlBuilder:Rn}),On({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=zn(e.parser,{hskipBeforeAndAfter:!1},Ln(e.envName));return t?{type:"leftright",mode:e.mode,body:[n],left:t[0],right:t[1],rightColor:void 0}:n},htmlBuilder:In,mathmlBuilder:Rn}),On({type:"array",names:["smallmatrix"],props:{numArgs:0},handler:function(e){var t=zn(e.parser,{arraystretch:.5},"script");return t.colSeparationType="small",t},htmlBuilder:In,mathmlBuilder:Rn}),On({type:"array",names:["subarray"],props:{numArgs:1},handler:function(e,t){var n=(Wt(t[0])?[t[0]]:Ut(t[0],"ordgroup").body).map(function(e){var t=Qt(e).text;if(-1!=="lc".indexOf(t))return{type:"align",align:t};throw new o("Unknown column alignment: "+t,e)});if(n.length>1)throw new o("{subarray} can contain only one column");var r={cols:n,hskipBeforeAndAfter:!1,arraystretch:.5};if((r=zn(e.parser,r,"script")).body.length>0&&r.body[0].length>1)throw new o("{subarray} can contain only one column");return r},htmlBuilder:In,mathmlBuilder:Rn}),On({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler:function(e){var t=zn(e.parser,{arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},Ln(e.envName));return{type:"leftright",mode:e.mode,body:[t],left:e.envName.indexOf("r")>-1?".":"\\{",right:e.envName.indexOf("r")>-1?"\\}":".",rightColor:void 0}},htmlBuilder:In,mathmlBuilder:Rn}),On({type:"array",names:["aligned"],props:{numArgs:0},handler:Bn,htmlBuilder:In,mathmlBuilder:Rn}),On({type:"array",names:["gathered"],props:{numArgs:0},handler:function(e){return zn(e.parser,{cols:[{type:"align",align:"c"}],addJot:!0},"display")},htmlBuilder:In,mathmlBuilder:Rn}),On({type:"array",names:["alignedat"],props:{numArgs:1},handler:Bn,htmlBuilder:In,mathmlBuilder:Rn}),ut({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler:function(e,t){throw new o(e.funcName+" valid only within array environment")}});var Pn=Nn;ut({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler:function(e,t){var n=e.parser,r=e.funcName,i=t[0];if("ordgroup"!==i.type)throw new o("Invalid environment name",i);for(var a="",s=0;s<i.body.length;++s)a+=Ut(i.body[s],"textord").text;if("\\begin"===r){if(!Pn.hasOwnProperty(a))throw new o("No such environment: "+a,i);var l=Pn[a],u=n.parseArguments("\\begin{"+a+"}",l),c=u.args,d=u.optArgs,h={mode:n.mode,envName:a,parser:n},p=l.handler(h,c,d);n.expect("\\end",!1);var f=n.nextToken,m=Ut(n.parseFunction(),"environment");if(m.name!==a)throw new o("Mismatch: \\begin{"+a+"} matched by \\end{"+m.name+"}",f);return p}return{type:"environment",mode:n.mode,name:a,nameGroup:i}}});var jn=et.makeSpan;function Hn(e,t){var n=bt(e.body,t,!0);return jn([e.mclass],n,t)}function Fn(e,t){var n,r=zt(e.body,t);return"minner"===e.mclass?At.newDocumentFragment(r):("mord"===e.mclass?e.isCharacterBox?(n=r[0]).type="mi":n=new At.MathNode("mi",r):(e.isCharacterBox?(n=r[0]).type="mo":n=new At.MathNode("mo",r),"mbin"===e.mclass?(n.attributes.lspace="0.22em",n.attributes.rspace="0.22em"):"mpunct"===e.mclass?(n.attributes.lspace="0em",n.attributes.rspace="0.17em"):"mopen"!==e.mclass&&"mclose"!==e.mclass||(n.attributes.lspace="0em",n.attributes.rspace="0em")),n)}ut({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1},handler:function(e,t){var n=e.parser,r=e.funcName,i=t[0];return{type:"mclass",mode:n.mode,mclass:"m"+r.substr(5),body:dt(i),isCharacterBox:g(i)}},htmlBuilder:Hn,mathmlBuilder:Fn});var Un=function(e){var 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};ut({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler:function(e,t){return{type:"mclass",mode:e.parser.mode,mclass:Un(t[0]),body:[t[1]],isCharacterBox:g(t[1])}}}),ut({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler:function(e,t){var n,r=e.parser,i=e.funcName,a=t[1],o=t[0];n="\\stackrel"!==i?Un(a):"mrel";var s={type:"op",mode:a.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:"\\stackrel"!==i,body:dt(a)},l={type:"supsub",mode:o.mode,base:s,sup:"\\underset"===i?null:o,sub:"\\underset"===i?o:null};return{type:"mclass",mode:r.mode,mclass:n,body:[l],isCharacterBox:g(l)}},htmlBuilder:Hn,mathmlBuilder:Fn});var Qn=function(e,t){var n=e.font,r=t.withFont(n);return St(e.body,r)},Wn=function(e,t){var n=e.font,r=t.withFont(n);return It(e.body,r)},Vn={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};ut({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,greediness:2},handler:function(e,t){var n=e.parser,r=e.funcName,i=t[0],a=r;return a in Vn&&(a=Vn[a]),{type:"font",mode:n.mode,font:a.slice(1),body:i}},htmlBuilder:Qn,mathmlBuilder:Wn}),ut({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1,greediness:2},handler:function(e,t){var n=e.parser,r=t[0],i=g(r);return{type:"mclass",mode:n.mode,mclass:Un(r),body:[{type:"font",mode:n.mode,font:"boldsymbol",body:r}],isCharacterBox:i}}}),ut({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:function(e,t){var n=e.parser,r=e.funcName,i=e.breakOnTokenText,a=n.mode,o=n.parseExpression(!0,i);return{type:"font",mode:a,font:"math"+r.slice(1),body:{type:"ordgroup",mode:n.mode,body:o}}},htmlBuilder:Qn,mathmlBuilder:Wn});var $n=function(e,t){var n=t;return"display"===e?n=n.id>=q.SCRIPT.id?n.text():q.DISPLAY:"text"===e&&n.size===q.DISPLAY.size?n=q.TEXT:"script"===e?n=q.SCRIPT:"scriptscript"===e&&(n=q.SCRIPTSCRIPT),n},Gn=function(e,t){var n,r=$n(e.size,t.style),i=r.fracNum(),a=r.fracDen();n=t.havingStyle(i);var o=St(e.numer,n,t);if(e.continued){var s=8.5/t.fontMetrics().ptPerEm,l=3.5/t.fontMetrics().ptPerEm;o.height=o.height<s?s:o.height,o.depth=o.depth<l?l:o.depth}n=t.havingStyle(a);var u,c,d,h,p,f,m,g,b,v,y=St(e.denom,n,t);if(e.hasBarLine?(e.barSize?(c=Ue(e.barSize,t),u=et.makeLineSpan("frac-line",t,c)):u=et.makeLineSpan("frac-line",t),c=u.height,d=u.height):(u=null,c=0,d=t.fontMetrics().defaultRuleThickness),r.size===q.DISPLAY.size||"display"===e.size?(h=t.fontMetrics().num1,p=c>0?3*d:7*d,f=t.fontMetrics().denom1):(c>0?(h=t.fontMetrics().num2,p=d):(h=t.fontMetrics().num3,p=3*d),f=t.fontMetrics().denom2),u){var x=t.fontMetrics().axisHeight;h-o.depth-(x+.5*c)<p&&(h+=p-(h-o.depth-(x+.5*c))),x-.5*c-(y.height-f)<p&&(f+=p-(x-.5*c-(y.height-f))),m=et.makeVList({positionType:"individualShift",children:[{type:"elem",elem:y,shift:f},{type:"elem",elem:u,shift:-(x-.5*c)},{type:"elem",elem:o,shift:-h}]},t)}else{var w=h-o.depth-(y.height-f);w<p&&(h+=.5*(p-w),f+=.5*(p-w)),m=et.makeVList({positionType:"individualShift",children:[{type:"elem",elem:y,shift:f},{type:"elem",elem:o,shift:-h}]},t)}return n=t.havingStyle(r),m.height*=n.sizeMultiplier/t.sizeMultiplier,m.depth*=n.sizeMultiplier/t.sizeMultiplier,g=r.size===q.DISPLAY.size?t.fontMetrics().delim1:t.fontMetrics().delim2,b=null==e.leftDelim?kt(t,["mopen"]):kn(e.leftDelim,g,!0,t.havingStyle(r),e.mode,["mopen"]),v=e.continued?et.makeSpan([]):null==e.rightDelim?kt(t,["mclose"]):kn(e.rightDelim,g,!0,t.havingStyle(r),e.mode,["mclose"]),et.makeSpan(["mord"].concat(n.sizingClasses(t)),[b,et.makeSpan(["mfrac"],[m]),v],t)},Kn=function(e,t){var n=new At.MathNode("mfrac",[It(e.numer,t),It(e.denom,t)]);if(e.hasBarLine){if(e.barSize){var r=Ue(e.barSize,t);n.setAttribute("linethickness",r+"em")}}else n.setAttribute("linethickness","0px");var i=$n(e.size,t.style);if(i.size!==t.style.size){n=new At.MathNode("mstyle",[n]);var a=i.size===q.DISPLAY.size?"true":"false";n.setAttribute("displaystyle",a),n.setAttribute("scriptlevel","0")}if(null!=e.leftDelim||null!=e.rightDelim){var o=[];if(null!=e.leftDelim){var s=new At.MathNode("mo",[new At.TextNode(e.leftDelim.replace("\\",""))]);s.setAttribute("fence","true"),o.push(s)}if(o.push(n),null!=e.rightDelim){var l=new At.MathNode("mo",[new At.TextNode(e.rightDelim.replace("\\",""))]);l.setAttribute("fence","true"),o.push(l)}return Ot(o)}return n};ut({type:"genfrac",names:["\\cfrac","\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,greediness:2},handler:function(e,t){var n,r=e.parser,i=e.funcName,a=t[0],o=t[1],s=null,l=null,u="auto";switch(i){case"\\cfrac":case"\\dfrac":case"\\frac":case"\\tfrac":n=!0;break;case"\\\\atopfrac":n=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":n=!1,s="(",l=")";break;case"\\\\bracefrac":n=!1,s="\\{",l="\\}";break;case"\\\\brackfrac":n=!1,s="[",l="]";break;default:throw new Error("Unrecognized genfrac command")}switch(i){case"\\cfrac":case"\\dfrac":case"\\dbinom":u="display";break;case"\\tfrac":case"\\tbinom":u="text"}return{type:"genfrac",mode:r.mode,continued:"\\cfrac"===i,numer:a,denom:o,hasBarLine:n,leftDelim:s,rightDelim:l,size:u,barSize:null}},htmlBuilder:Gn,mathmlBuilder:Kn}),ut({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler:function(e){var t,n=e.parser,r=e.funcName,i=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:i}}});var Xn=["display","text","script","scriptscript"],Yn=function(e){var t=null;return e.length>0&&(t="."===(t=e)?null:t),t};ut({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,greediness:6,argTypes:["math","math","size","text","math","math"]},handler:function(e,t){var n,r=e.parser,i=t[4],a=t[5],o="atom"===t[0].type&&"open"===t[0].family?Yn(t[0].text):null,s="atom"===t[1].type&&"close"===t[1].family?Yn(t[1].text):null,l=Ut(t[2],"size"),u=null;n=!!l.isBlank||(u=l.value).number>0;var c="auto",d=t[3];if("ordgroup"===d.type){if(d.body.length>0){var h=Ut(d.body[0],"textord");c=Xn[Number(h.text)]}}else d=Ut(d,"textord"),c=Xn[Number(d.text)];return{type:"genfrac",mode:r.mode,numer:i,denom:a,continued:!1,hasBarLine:n,barSize:u,leftDelim:o,rightDelim:s,size:c}},htmlBuilder:Gn,mathmlBuilder:Kn}),ut({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:Ut(t[0],"size").value,token:r}}}),ut({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:function(e,t){var n=e.parser,r=(e.funcName,t[0]),i=function(e){if(!e)throw new Error("Expected non-null, but got "+String(e));return e}(Ut(t[1],"infix").size),a=t[2],o=i.number>0;return{type:"genfrac",mode:n.mode,numer:r,denom:a,continued:!1,hasBarLine:o,barSize:i,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:Gn,mathmlBuilder:Kn});var Zn=function(e,t){var n,r,i=t.style;"supsub"===e.type?(n=e.sup?St(e.sup,t.havingStyle(i.sup()),t):St(e.sub,t.havingStyle(i.sub()),t),r=Ut(e.base,"horizBrace")):r=Ut(e,"horizBrace");var a,o=St(r.base,t.havingBaseStyle(q.DISPLAY)),s=Ft(r,t);if(r.isOver?(a=et.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:o},{type:"kern",size:.1},{type:"elem",elem:s}]},t)).children[0].children[0].children[1].classes.push("svg-align"):(a=et.makeVList({positionType:"bottom",positionData:o.depth+.1+s.height,children:[{type:"elem",elem:s},{type:"kern",size:.1},{type:"elem",elem:o}]},t)).children[0].children[0].children[0].classes.push("svg-align"),n){var l=et.makeSpan(["mord",r.isOver?"mover":"munder"],[a],t);a=r.isOver?et.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:l},{type:"kern",size:.2},{type:"elem",elem:n}]},t):et.makeVList({positionType:"bottom",positionData:l.depth+.2+n.height+n.depth,children:[{type:"elem",elem:n},{type:"kern",size:.2},{type:"elem",elem:l}]},t)}return et.makeSpan(["mord",r.isOver?"mover":"munder"],[a],t)};ut({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:Zn,mathmlBuilder:function(e,t){var n=Ht(e.label);return new At.MathNode(e.isOver?"mover":"munder",[It(e.base,t),n])}}),ut({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:function(e,t){var n=e.parser,r=t[1],i=Ut(t[0],"url").url;return n.settings.isTrusted({command:"\\href",url:i})?{type:"href",mode:n.mode,href:i,body:dt(r)}:n.formatUnsupportedCmd("\\href")},htmlBuilder:function(e,t){var n=bt(e.body,t,!1);return et.makeAnchor(e.href,[],n,t)},mathmlBuilder:function(e,t){var n=Lt(e.body,t);return n instanceof qt||(n=new qt("mrow",[n])),n.setAttribute("href",e.href),n}}),ut({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:function(e,t){var n=e.parser,r=Ut(t[0],"url").url;if(!n.settings.isTrusted({command:"\\url",url:r}))return n.formatUnsupportedCmd("\\url");for(var i=[],a=0;a<r.length;a++){var o=r[a];"~"===o&&(o="\\textasciitilde"),i.push({type:"textord",mode:"text",text:o})}var s={type:"text",mode:n.mode,font:"\\texttt",body:i};return{type:"href",mode:n.mode,href:r,body:dt(s)}}}),ut({type:"html",names:["\\htmlClass","\\htmlId","\\htmlStyle","\\htmlData"],props:{numArgs:2,argTypes:["raw","original"],allowedInText:!0},handler:function(e,t){var n,r=e.parser,i=e.funcName,a=(e.token,Ut(t[0],"raw").string),s=t[1];r.settings.strict&&r.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var l={};switch(i){case"\\htmlClass":l.class=a,n={command:"\\htmlClass",class:a};break;case"\\htmlId":l.id=a,n={command:"\\htmlId",id:a};break;case"\\htmlStyle":l.style=a,n={command:"\\htmlStyle",style:a};break;case"\\htmlData":for(var u=a.split(","),c=0;c<u.length;c++){var d=u[c].split("=");if(2!==d.length)throw new o("Error parsing key-value for \\htmlData");l["data-"+d[0].trim()]=d[1].trim()}n={command:"\\htmlData",attributes:l};break;default:throw new Error("Unrecognized html command")}return r.settings.isTrusted(n)?{type:"html",mode:r.mode,attributes:l,body:dt(s)}:r.formatUnsupportedCmd(i)},htmlBuilder:function(e,t){var n=bt(e.body,t,!1),r=["enclosing"];e.attributes.class&&r.push.apply(r,e.attributes.class.trim().split(/\s+/));var i=et.makeSpan(r,n,t);for(var a in e.attributes)"class"!==a&&e.attributes.hasOwnProperty(a)&&i.setAttribute(a,e.attributes[a]);return i},mathmlBuilder:function(e,t){return Lt(e.body,t)}}),ut({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInText:!0},handler:function(e,t){return{type:"htmlmathml",mode:e.parser.mode,html:dt(t[0]),mathml:dt(t[1])}},htmlBuilder:function(e,t){var n=bt(e.html,t,!1);return et.makeFragment(n)},mathmlBuilder:function(e,t){return Lt(e.mathml,t)}});var Jn=function(e){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(e))return{number:+e,unit:"bp"};var t=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(e);if(!t)throw new o("Invalid size: '"+e+"' in \\includegraphics");var n={number:+(t[1]+t[2]),unit:t[3]};if(!Fe(n))throw new o("Invalid unit: '"+n.unit+"' in \\includegraphics.");return n};ut({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:function(e,t,n){var r=e.parser,i={number:0,unit:"em"},a={number:.9,unit:"em"},s={number:0,unit:"em"},l="";if(n[0])for(var u=Ut(n[0],"raw").string.split(","),c=0;c<u.length;c++){var d=u[c].split("=");if(2===d.length){var h=d[1].trim();switch(d[0].trim()){case"alt":l=h;break;case"width":i=Jn(h);break;case"height":a=Jn(h);break;case"totalheight":s=Jn(h);break;default:throw new o("Invalid key: '"+d[0]+"' in \\includegraphics.")}}}var p=Ut(t[0],"url").url;return""===l&&(l=(l=(l=p).replace(/^.*[\\/]/,"")).substring(0,l.lastIndexOf("."))),r.settings.isTrusted({command:"\\includegraphics",url:p})?{type:"includegraphics",mode:r.mode,alt:l,width:i,height:a,totalheight:s,src:p}:r.formatUnsupportedCmd("\\includegraphics")},htmlBuilder:function(e,t){var n=Ue(e.height,t),r=0;e.totalheight.number>0&&(r=Ue(e.totalheight,t)-n,r=Number(r.toFixed(2)));var i=0;e.width.number>0&&(i=Ue(e.width,t));var a={height:n+r+"em"};i>0&&(a.width=i+"em"),r>0&&(a.verticalAlign=-r+"em");var o=new P(e.src,e.alt,a);return o.height=n,o.depth=r,o},mathmlBuilder:function(e,t){var n=new At.MathNode("mglyph",[]);n.setAttribute("alt",e.alt);var r=Ue(e.height,t),i=0;if(e.totalheight.number>0&&(i=(i=Ue(e.totalheight,t)-r).toFixed(2),n.setAttribute("valign","-"+i+"em")),n.setAttribute("height",r+i+"em"),e.width.number>0){var a=Ue(e.width,t);n.setAttribute("width",a+"em")}return n.setAttribute("src",e.src),n}}),ut({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,i=Ut(t[0],"size");if(n.settings.strict){var a="m"===r[1],o="mu"===i.value.unit;a?(o||n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" supports only mu units, not "+i.value.unit+" units"),"math"!==n.mode&&n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" works only in math mode")):o&&n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" doesn't support mu units")}return{type:"kern",mode:n.mode,dimension:i.value}},htmlBuilder:function(e,t){return et.makeGlue(e.dimension,t)},mathmlBuilder:function(e,t){var n=Ue(e.dimension,t);return new At.SpaceNode(n)}}),ut({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:function(e,t){var n=e.parser,r=e.funcName,i=t[0];return{type:"lap",mode:n.mode,alignment:r.slice(5),body:i}},htmlBuilder:function(e,t){var n;"clap"===e.alignment?(n=et.makeSpan([],[St(e.body,t)]),n=et.makeSpan(["inner"],[n],t)):n=et.makeSpan(["inner"],[St(e.body,t)]);var r=et.makeSpan(["fix"],[]),i=et.makeSpan([e.alignment],[n,r],t),a=et.makeSpan(["strut"]);return a.style.height=i.height+i.depth+"em",a.style.verticalAlign=-i.depth+"em",i.children.unshift(a),i=et.makeSpan(["thinbox"],[i],t),et.makeSpan(["mord","vbox"],[i],t)},mathmlBuilder:function(e,t){var n=new At.MathNode("mpadded",[It(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}}),ut({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler:function(e,t){var n=e.funcName,r=e.parser,i=r.mode;r.switchMode("math");var a="\\("===n?"\\)":"$",o=r.parseExpression(!1,a);return r.expect(a),r.switchMode(i),{type:"styling",mode:r.mode,style:"text",body:o}}}),ut({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler:function(e,t){throw new o("Mismatched "+e.funcName)}});var er=function(e,t){switch(t.style.size){case q.DISPLAY.size:return e.display;case q.TEXT.size:return e.text;case q.SCRIPT.size:return e.script;case q.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}};ut({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4},handler:function(e,t){return{type:"mathchoice",mode:e.parser.mode,display:dt(t[0]),text:dt(t[1]),script:dt(t[2]),scriptscript:dt(t[3])}},htmlBuilder:function(e,t){var n=er(e,t),r=bt(n,t,!1);return et.makeFragment(r)},mathmlBuilder:function(e,t){var n=er(e,t);return Lt(n,t)}});var tr=function(e,t,n,r,i,a,o){var s,l,u;if(e=et.makeSpan([],[e]),t){var c=St(t,r.havingStyle(i.sup()),r);l={elem:c,kern:Math.max(r.fontMetrics().bigOpSpacing1,r.fontMetrics().bigOpSpacing3-c.depth)}}if(n){var d=St(n,r.havingStyle(i.sub()),r);s={elem:d,kern:Math.max(r.fontMetrics().bigOpSpacing2,r.fontMetrics().bigOpSpacing4-d.height)}}if(l&&s){var h=r.fontMetrics().bigOpSpacing5+s.elem.height+s.elem.depth+s.kern+e.depth+o;u=et.makeVList({positionType:"bottom",positionData:h,children:[{type:"kern",size:r.fontMetrics().bigOpSpacing5},{type:"elem",elem:s.elem,marginLeft:-a+"em"},{type:"kern",size:s.kern},{type:"elem",elem:e},{type:"kern",size:l.kern},{type:"elem",elem:l.elem,marginLeft:a+"em"},{type:"kern",size:r.fontMetrics().bigOpSpacing5}]},r)}else if(s){var p=e.height-o;u=et.makeVList({positionType:"top",positionData:p,children:[{type:"kern",size:r.fontMetrics().bigOpSpacing5},{type:"elem",elem:s.elem,marginLeft:-a+"em"},{type:"kern",size:s.kern},{type:"elem",elem:e}]},r)}else{if(!l)return e;var f=e.depth+o;u=et.makeVList({positionType:"bottom",positionData:f,children:[{type:"elem",elem:e},{type:"kern",size:l.kern},{type:"elem",elem:l.elem,marginLeft:a+"em"},{type:"kern",size:r.fontMetrics().bigOpSpacing5}]},r)}return et.makeSpan(["mop","op-limits"],[u],r)},nr=["\\smallint"],rr=function(e,t){var n,r,i,a=!1;"supsub"===e.type?(n=e.sup,r=e.sub,i=Ut(e.base,"op"),a=!0):i=Ut(e,"op");var o,s=t.style,l=!1;if(s.size===q.DISPLAY.size&&i.symbol&&!d(nr,i.name)&&(l=!0),i.symbol){var u=l?"Size2-Regular":"Size1-Regular",c="";if("\\oiint"!==i.name&&"\\oiiint"!==i.name||(c=i.name.substr(1),i.name="oiint"===c?"\\iint":"\\iiint"),o=et.makeSymbol(i.name,u,"math",t,["mop","op-symbol",l?"large-op":"small-op"]),c.length>0){var h=o.italic,p=et.staticSvg(c+"Size"+(l?"2":"1"),t);o=et.makeVList({positionType:"individualShift",children:[{type:"elem",elem:o,shift:0},{type:"elem",elem:p,shift:l?.08:0}]},t),i.name="\\"+c,o.classes.unshift("mop"),o.italic=h}}else if(i.body){var f=bt(i.body,t,!0);1===f.length&&f[0]instanceof H?(o=f[0]).classes[0]="mop":o=et.makeSpan(["mop"],et.tryCombineChars(f),t)}else{for(var m=[],g=1;g<i.name.length;g++)m.push(et.mathsym(i.name[g],i.mode,t));o=et.makeSpan(["mop"],m,t)}var b=0,v=0;return(o instanceof H||"\\oiint"===i.name||"\\oiiint"===i.name)&&!i.suppressBaseShift&&(b=(o.height-o.depth)/2-t.fontMetrics().axisHeight,v=o.italic),a?tr(o,n,r,t,s,v,b):(b&&(o.style.position="relative",o.style.top=b+"em"),o)},ir=function(e,t){var n;if(e.symbol)n=new qt("mo",[Nt(e.name,e.mode)]),d(nr,e.name)&&n.setAttribute("largeop","false");else if(e.body)n=new qt("mo",zt(e.body,t));else{n=new qt("mi",[new Mt(e.name.slice(1))]);var r=new qt("mo",[Nt("⁡","text")]);n=e.parentIsSupSub?new qt("mo",[n,r]):Et([n,r])}return n},ar={"∏":"\\prod","∐":"\\coprod","∑":"\\sum","⋀":"\\bigwedge","⋁":"\\bigvee","⋂":"\\bigcap","⋃":"\\bigcup","⨀":"\\bigodot","⨁":"\\bigoplus","⨂":"\\bigotimes","⨄":"\\biguplus","⨆":"\\bigsqcup"};ut({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","∏","∐","∑","⋀","⋁","⋂","⋃","⨀","⨁","⨂","⨄","⨆"],props:{numArgs:0},handler:function(e,t){var n=e.parser,r=e.funcName;return 1===r.length&&(r=ar[r]),{type:"op",mode:n.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:r}},htmlBuilder:rr,mathmlBuilder:ir}),ut({type:"op",names:["\\mathop"],props:{numArgs:1},handler:function(e,t){var n=e.parser,r=t[0];return{type:"op",mode:n.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:dt(r)}},htmlBuilder:rr,mathmlBuilder:ir});var or={"∫":"\\int","∬":"\\iint","∭":"\\iiint","∮":"\\oint","∯":"\\oiint","∰":"\\oiiint"};ut({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:function(e){var t=e.parser,n=e.funcName;return{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:n}},htmlBuilder:rr,mathmlBuilder:ir}),ut({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler:function(e){var t=e.parser,n=e.funcName;return{type:"op",mode:t.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:n}},htmlBuilder:rr,mathmlBuilder:ir}),ut({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","∫","∬","∭","∮","∯","∰"],props:{numArgs:0},handler:function(e){var t=e.parser,n=e.funcName;return 1===n.length&&(n=or[n]),{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:n}},htmlBuilder:rr,mathmlBuilder:ir});var sr=function(e,t){var n,r,i,a,o=!1;if("supsub"===e.type?(n=e.sup,r=e.sub,i=Ut(e.base,"operatorname"),o=!0):i=Ut(e,"operatorname"),i.body.length>0){for(var s=i.body.map(function(e){var t=e.text;return"string"==typeof t?{type:"textord",mode:e.mode,text:t}:e}),l=bt(s,t.withFont("mathrm"),!0),u=0;u<l.length;u++){var c=l[u];c instanceof H&&(c.text=c.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}a=et.makeSpan(["mop"],l,t)}else a=et.makeSpan(["mop"],[],t);return o?tr(a,n,r,t,t.style,0,0):a};function lr(e,t,n){for(var r=bt(e,t,!1),i=t.sizeMultiplier/n.sizeMultiplier,a=0;a<r.length;a++){var o=r[a].classes.indexOf("sizing");o<0?Array.prototype.push.apply(r[a].classes,t.sizingClasses(n)):r[a].classes[o+1]==="reset-size"+t.size&&(r[a].classes[o+1]="reset-size"+n.size),r[a].height*=i,r[a].depth*=i}return et.makeFragment(r)}ut({type:"operatorname",names:["\\operatorname","\\operatorname*"],props:{numArgs:1},handler:function(e,t){var n=e.parser,r=e.funcName,i=t[0];return{type:"operatorname",mode:n.mode,body:dt(i),alwaysHandleSupSub:"\\operatorname*"===r,limits:!1,parentIsSupSub:!1}},htmlBuilder:sr,mathmlBuilder:function(e,t){for(var n=zt(e.body,t.withFont("mathrm")),r=!0,i=0;i<n.length;i++){var a=n[i];if(a instanceof At.SpaceNode);else if(a instanceof At.MathNode)switch(a.type){case"mi":case"mn":case"ms":case"mspace":case"mtext":break;case"mo":var o=a.children[0];1===a.children.length&&o instanceof At.TextNode?o.text=o.text.replace(/\u2212/,"-").replace(/\u2217/,"*"):r=!1;break;default:r=!1}else r=!1}if(r){var s=n.map(function(e){return e.toText()}).join("");n=[new At.TextNode(s)]}var l=new At.MathNode("mi",n);l.setAttribute("mathvariant","normal");var u=new At.MathNode("mo",[Nt("⁡","text")]);return e.parentIsSupSub?new At.MathNode("mo",[l,u]):At.newDocumentFragment([l,u])}}),ct({type:"ordgroup",htmlBuilder:function(e,t){return e.semisimple?et.makeFragment(bt(e.body,t,!1)):et.makeSpan(["mord"],bt(e.body,t,!0),t)},mathmlBuilder:function(e,t){return Lt(e.body,t,!0)}}),ut({type:"overline",names:["\\overline"],props:{numArgs:1},handler:function(e,t){var n=e.parser,r=t[0];return{type:"overline",mode:n.mode,body:r}},htmlBuilder:function(e,t){var n=St(e.body,t.havingCrampedStyle()),r=et.makeLineSpan("overline-line",t),i=t.fontMetrics().defaultRuleThickness,a=et.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n},{type:"kern",size:3*i},{type:"elem",elem:r},{type:"kern",size:i}]},t);return et.makeSpan(["mord","overline"],[a],t)},mathmlBuilder:function(e,t){var n=new At.MathNode("mo",[new At.TextNode("‾")]);n.setAttribute("stretchy","true");var r=new At.MathNode("mover",[It(e.body,t),n]);return r.setAttribute("accent","true"),r}}),ut({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:function(e,t){var n=e.parser,r=t[0];return{type:"phantom",mode:n.mode,body:dt(r)}},htmlBuilder:function(e,t){var n=bt(e.body,t.withPhantom(),!1);return et.makeFragment(n)},mathmlBuilder:function(e,t){var n=zt(e.body,t);return new At.MathNode("mphantom",n)}}),ut({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:!0},handler:function(e,t){var n=e.parser,r=t[0];return{type:"hphantom",mode:n.mode,body:r}},htmlBuilder:function(e,t){var n=et.makeSpan([],[St(e.body,t.withPhantom())]);if(n.height=0,n.depth=0,n.children)for(var r=0;r<n.children.length;r++)n.children[r].height=0,n.children[r].depth=0;return n=et.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n}]},t),et.makeSpan(["mord"],[n],t)},mathmlBuilder:function(e,t){var n=zt(dt(e.body),t),r=new At.MathNode("mphantom",n),i=new At.MathNode("mpadded",[r]);return i.setAttribute("height","0px"),i.setAttribute("depth","0px"),i}}),ut({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:function(e,t){var n=e.parser,r=t[0];return{type:"vphantom",mode:n.mode,body:r}},htmlBuilder:function(e,t){var n=et.makeSpan(["inner"],[St(e.body,t.withPhantom())]),r=et.makeSpan(["fix"],[]);return et.makeSpan(["mord","rlap"],[n,r],t)},mathmlBuilder:function(e,t){var n=zt(dt(e.body),t),r=new At.MathNode("mphantom",n),i=new At.MathNode("mpadded",[r]);return i.setAttribute("width","0px"),i}}),ut({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler:function(e,t){var n=e.parser,r=Ut(t[0],"size").value,i=t[1];return{type:"raisebox",mode:n.mode,dy:r,body:i}},htmlBuilder:function(e,t){var n=St(e.body,t),r=Ue(e.dy,t);return et.makeVList({positionType:"shift",positionData:-r,children:[{type:"elem",elem:n}]},t)},mathmlBuilder:function(e,t){var n=new At.MathNode("mpadded",[It(e.body,t)]),r=e.dy.number+e.dy.unit;return n.setAttribute("voffset",r),n}}),ut({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,argTypes:["size","size","size"]},handler:function(e,t,n){var r=e.parser,i=n[0],a=Ut(t[0],"size"),o=Ut(t[1],"size");return{type:"rule",mode:r.mode,shift:i&&Ut(i,"size").value,width:a.value,height:o.value}},htmlBuilder:function(e,t){var n=et.makeSpan(["mord","rule"],[],t),r=Ue(e.width,t),i=Ue(e.height,t),a=e.shift?Ue(e.shift,t):0;return n.style.borderRightWidth=r+"em",n.style.borderTopWidth=i+"em",n.style.bottom=a+"em",n.width=r,n.height=i+a,n.depth=-a,n.maxFontSize=1.125*i*t.sizeMultiplier,n},mathmlBuilder:function(e,t){var n=Ue(e.width,t),r=Ue(e.height,t),i=e.shift?Ue(e.shift,t):0,a=t.color&&t.getColor()||"black",o=new At.MathNode("mspace");o.setAttribute("mathbackground",a),o.setAttribute("width",n+"em"),o.setAttribute("height",r+"em");var s=new At.MathNode("mpadded",[o]);return i>=0?s.setAttribute("height","+"+i+"em"):(s.setAttribute("height",i+"em"),s.setAttribute("depth","+"+-i+"em")),s.setAttribute("voffset",i+"em"),s}});var ur=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"];ut({type:"sizing",names:ur,props:{numArgs:0,allowedInText:!0},handler:function(e,t){var n=e.breakOnTokenText,r=e.funcName,i=e.parser,a=i.parseExpression(!1,n);return{type:"sizing",mode:i.mode,size:ur.indexOf(r)+1,body:a}},htmlBuilder:function(e,t){var n=t.havingSize(e.size);return lr(e.body,n,t)},mathmlBuilder:function(e,t){var n=t.havingSize(e.size),r=zt(e.body,n),i=new At.MathNode("mstyle",r);return i.setAttribute("mathsize",n.sizeMultiplier+"em"),i}}),ut({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:function(e,t,n){var r=e.parser,i=!1,a=!1,o=n[0]&&Ut(n[0],"ordgroup");if(o)for(var s="",l=0;l<o.body.length;++l)if("t"===(s=o.body[l].text))i=!0;else{if("b"!==s){i=!1,a=!1;break}a=!0}else i=!0,a=!0;var u=t[0];return{type:"smash",mode:r.mode,body:u,smashHeight:i,smashDepth:a}},htmlBuilder:function(e,t){var n=et.makeSpan([],[St(e.body,t)]);if(!e.smashHeight&&!e.smashDepth)return n;if(e.smashHeight&&(n.height=0,n.children))for(var r=0;r<n.children.length;r++)n.children[r].height=0;if(e.smashDepth&&(n.depth=0,n.children))for(var i=0;i<n.children.length;i++)n.children[i].depth=0;var a=et.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n}]},t);return et.makeSpan(["mord"],[a],t)},mathmlBuilder:function(e,t){var n=new At.MathNode("mpadded",[It(e.body,t)]);return e.smashHeight&&n.setAttribute("height","0px"),e.smashDepth&&n.setAttribute("depth","0px"),n}}),ut({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler:function(e,t,n){var r=e.parser,i=n[0],a=t[0];return{type:"sqrt",mode:r.mode,body:a,index:i}},htmlBuilder:function(e,t){var n=St(e.body,t.havingCrampedStyle());0===n.height&&(n.height=t.fontMetrics().xHeight),n=et.wrapFragment(n,t);var r=t.fontMetrics().defaultRuleThickness,i=r;t.style.id<q.TEXT.id&&(i=t.fontMetrics().xHeight);var a=r+i/4,o=function(e,t){var n,r,i=t.havingBaseSizing(),a=yn("\\surd",e*i.sizeMultiplier,bn,i),o=i.sizeMultiplier,s=Math.max(0,t.minRuleThickness-t.fontMetrics().sqrtRuleThickness),l=0,u=0,c=0;return"small"===a.type?(e<1?o=1:e<1.4&&(o=.7),u=(1+s)/o,(n=cn("sqrtMain",l=(1+s+un)/o,c=1e3+1e3*s+80,s,t)).style.minWidth="0.853em",r=.833/o):"large"===a.type?(c=1080*fn[a.size],u=(fn[a.size]+s)/o,l=(fn[a.size]+s+un)/o,(n=cn("sqrtSize"+a.size,l,c,s,t)).style.minWidth="1.02em",r=1/o):(l=e+s+un,u=e+s,c=Math.floor(1e3*e+s)+80,(n=cn("sqrtTall",l,c,s,t)).style.minWidth="0.742em",r=1.056),n.height=u,n.style.height=l+"em",{span:n,advanceWidth:r,ruleWidth:(t.fontMetrics().sqrtRuleThickness+s)*o}}(n.height+n.depth+a+r,t),s=o.span,l=o.ruleWidth,u=o.advanceWidth,c=s.height-l;c>n.height+n.depth+a&&(a=(a+c-n.height-n.depth)/2);var d=s.height-n.height-a-l;n.style.paddingLeft=u+"em";var h=et.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n,wrapperClasses:["svg-align"]},{type:"kern",size:-(n.height+d)},{type:"elem",elem:s},{type:"kern",size:l}]},t);if(e.index){var p=t.havingStyle(q.SCRIPTSCRIPT),f=St(e.index,p,t),m=.6*(h.height-h.depth),g=et.makeVList({positionType:"shift",positionData:-m,children:[{type:"elem",elem:f}]},t),b=et.makeSpan(["root"],[g]);return et.makeSpan(["mord","sqrt"],[b,h],t)}return et.makeSpan(["mord","sqrt"],[h],t)},mathmlBuilder:function(e,t){var n=e.body,r=e.index;return r?new At.MathNode("mroot",[It(n,t),It(r,t)]):new At.MathNode("msqrt",[It(n,t)])}});var cr={display:q.DISPLAY,text:q.TEXT,script:q.SCRIPT,scriptscript:q.SCRIPTSCRIPT};ut({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0},handler:function(e,t){var n=e.breakOnTokenText,r=e.funcName,i=e.parser,a=i.parseExpression(!0,n),o=r.slice(1,r.length-5);return{type:"styling",mode:i.mode,style:o,body:a}},htmlBuilder:function(e,t){var n=cr[e.style],r=t.havingStyle(n).withFont("");return lr(e.body,r,t)},mathmlBuilder:function(e,t){var n=cr[e.style],r=t.havingStyle(n),i=zt(e.body,r),a=new At.MathNode("mstyle",i),o={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]}[e.style];return a.setAttribute("scriptlevel",o[0]),a.setAttribute("displaystyle",o[1]),a}}),ct({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===q.DISPLAY.size||n.alwaysHandleSupSub)?rr:null:"operatorname"===n.type?n.alwaysHandleSupSub&&(t.style.size===q.DISPLAY.size||n.limits)?sr:null:"accent"===n.type?g(n.base)?Vt:null:"horizBrace"===n.type&&!e.sub===n.isOver?Zn:null:null}(e,t);if(n)return n(e,t);var r,i,a,o=e.base,s=e.sup,l=e.sub,u=St(o,t),c=t.fontMetrics(),d=0,h=0,p=o&&g(o);if(s){var f=t.havingStyle(t.style.sup());r=St(s,f,t),p||(d=u.height-f.fontMetrics().supDrop*f.sizeMultiplier/t.sizeMultiplier)}if(l){var m=t.havingStyle(t.style.sub());i=St(l,m,t),p||(h=u.depth+m.fontMetrics().subDrop*m.sizeMultiplier/t.sizeMultiplier)}a=t.style===q.DISPLAY?c.sup1:t.style.cramped?c.sup3:c.sup2;var b,v=t.sizeMultiplier,y=.5/c.ptPerEm/v+"em",x=null;if(i){var w=e.base&&"op"===e.base.type&&e.base.name&&("\\oiint"===e.base.name||"\\oiiint"===e.base.name);(u instanceof H||w)&&(x=-u.italic+"em")}if(r&&i){d=Math.max(d,a,r.depth+.25*c.xHeight),h=Math.max(h,c.sub2);var k=4*c.defaultRuleThickness;if(d-r.depth-(i.height-h)<k){h=k-(d-r.depth)+i.height;var S=.8*c.xHeight-(d-r.depth);S>0&&(d+=S,h-=S)}b=et.makeVList({positionType:"individualShift",children:[{type:"elem",elem:i,shift:h,marginRight:y,marginLeft:x},{type:"elem",elem:r,shift:-d,marginRight:y}]},t)}else if(i){h=Math.max(h,c.sub1,i.height-.8*c.xHeight),b=et.makeVList({positionType:"shift",positionData:h,children:[{type:"elem",elem:i,marginLeft:x,marginRight:y}]},t)}else{if(!r)throw new Error("supsub must have either sup or sub.");d=Math.max(d,a,r.depth+.25*c.xHeight),b=et.makeVList({positionType:"shift",positionData:-d,children:[{type:"elem",elem:r,marginRight:y}]},t)}var C=wt(u,"right")||"mord";return et.makeSpan([C],[u,et.makeSpan(["msupsub"],[b])],t)},mathmlBuilder:function(e,t){var n,r=!1;e.base&&"horizBrace"===e.base.type&&!!e.sup===e.base.isOver&&(r=!0,n=e.base.isOver),!e.base||"op"!==e.base.type&&"operatorname"!==e.base.type||(e.base.parentIsSupSub=!0);var i,a=[It(e.base,t)];if(e.sub&&a.push(It(e.sub,t)),e.sup&&a.push(It(e.sup,t)),r)i=n?"mover":"munder";else if(e.sub)if(e.sup){var o=e.base;i=o&&"op"===o.type&&o.limits&&t.style===q.DISPLAY||o&&"operatorname"===o.type&&o.alwaysHandleSupSub&&(t.style===q.DISPLAY||o.limits)?"munderover":"msubsup"}else{var s=e.base;i=s&&"op"===s.type&&s.limits&&(t.style===q.DISPLAY||s.alwaysHandleSupSub)||s&&"operatorname"===s.type&&s.alwaysHandleSupSub&&(s.limits||t.style===q.DISPLAY)?"munder":"msub"}else{var l=e.base;i=l&&"op"===l.type&&l.limits&&(t.style===q.DISPLAY||l.alwaysHandleSupSub)||l&&"operatorname"===l.type&&l.alwaysHandleSupSub&&(l.limits||t.style===q.DISPLAY)?"mover":"msup"}return new At.MathNode(i,a)}}),ct({type:"atom",htmlBuilder:function(e,t){return et.mathsym(e.text,e.mode,t,["m"+e.family])},mathmlBuilder:function(e,t){var n=new At.MathNode("mo",[Nt(e.text,e.mode)]);if("bin"===e.family){var r=Dt(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 dr={mi:"italic",mn:"normal",mtext:"normal"};ct({type:"mathord",htmlBuilder:function(e,t){return et.makeOrd(e,t,"mathord")},mathmlBuilder:function(e,t){var n=new At.MathNode("mi",[Nt(e.text,e.mode,t)]),r=Dt(e,t)||"italic";return r!==dr[n.type]&&n.setAttribute("mathvariant",r),n}}),ct({type:"textord",htmlBuilder:function(e,t){return et.makeOrd(e,t,"textord")},mathmlBuilder:function(e,t){var n,r=Nt(e.text,e.mode,t),i=Dt(e,t)||"normal";return n="text"===e.mode?new At.MathNode("mtext",[r]):/[0-9]/.test(e.text)?new At.MathNode("mn",[r]):"\\prime"===e.text?new At.MathNode("mo",[r]):new At.MathNode("mi",[r]),i!==dr[n.type]&&n.setAttribute("mathvariant",i),n}});var hr={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},pr={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};ct({type:"spacing",htmlBuilder:function(e,t){if(pr.hasOwnProperty(e.text)){var n=pr[e.text].className||"";if("text"===e.mode){var r=et.makeOrd(e,t,"textord");return r.classes.push(n),r}return et.makeSpan(["mspace",n],[et.mathsym(e.text,e.mode,t)],t)}if(hr.hasOwnProperty(e.text))return et.makeSpan(["mspace",hr[e.text]],[],t);throw new o('Unknown type of space "'+e.text+'"')},mathmlBuilder:function(e,t){if(!pr.hasOwnProperty(e.text)){if(hr.hasOwnProperty(e.text))return new At.MathNode("mspace");throw new o('Unknown type of space "'+e.text+'"')}return new At.MathNode("mtext",[new At.TextNode(" ")])}});var fr=function(){var e=new At.MathNode("mtd",[]);return e.setAttribute("width","50%"),e};ct({type:"tag",mathmlBuilder:function(e,t){var n=new At.MathNode("mtable",[new At.MathNode("mtr",[fr(),new At.MathNode("mtd",[Lt(e.body,t)]),fr(),new At.MathNode("mtd",[Lt(e.tag,t)])])]);return n.setAttribute("width","100%"),n}});var mr={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},gr={"\\textbf":"textbf","\\textmd":"textmd"},br={"\\textit":"textit","\\textup":"textup"},vr=function(e,t){var n=e.font;return n?mr[n]?t.withTextFontFamily(mr[n]):gr[n]?t.withTextFontWeight(gr[n]):t.withTextFontShape(br[n]):t};ut({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,i=t[0];return{type:"text",mode:n.mode,body:dt(i),font:r}},htmlBuilder:function(e,t){var n=vr(e,t),r=bt(e.body,n,!0);return et.makeSpan(["mord","text"],et.tryCombineChars(r),n)},mathmlBuilder:function(e,t){var n=vr(e,t);return Lt(e.body,n)}}),ut({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=St(e.body,t),r=et.makeLineSpan("underline-line",t),i=t.fontMetrics().defaultRuleThickness,a=et.makeVList({positionType:"top",positionData:n.height,children:[{type:"kern",size:i},{type:"elem",elem:r},{type:"kern",size:3*i},{type:"elem",elem:n}]},t);return et.makeSpan(["mord","underline"],[a],t)},mathmlBuilder:function(e,t){var n=new At.MathNode("mo",[new At.TextNode("‾")]);n.setAttribute("stretchy","true");var r=new At.MathNode("munder",[It(e.body,t),n]);return r.setAttribute("accentunder","true"),r}}),ut({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler:function(e,t,n){throw new o("\\verb ended by end of line instead of matching delimiter")},htmlBuilder:function(e,t){for(var n=yr(e),r=[],i=t.havingStyle(t.style.text()),a=0;a<n.length;a++){var o=n[a];"~"===o&&(o="\\textasciitilde"),r.push(et.makeSymbol(o,"Typewriter-Regular",e.mode,i,["mord","texttt"]))}return et.makeSpan(["mord","text"].concat(i.sizingClasses(t)),et.tryCombineChars(r),i)},mathmlBuilder:function(e,t){var n=new At.TextNode(yr(e)),r=new At.MathNode("mtext",[n]);return r.setAttribute("mathvariant","monospace"),r}});var yr=function(e){return e.body.replace(/ /g,e.star?"␣":" ")},xr=ot,wr="[ \r\n\t]",kr="\\\\[a-zA-Z@]+",Sr=""+kr+wr+"*",Cr=new RegExp("^("+kr+")"+wr+"*$"),Tr="[̀-ͯ]",Er=new RegExp(Tr+"+$"),qr="("+wr+"+)|([!-\\[\\]-‧‪-퟿豈-￿]"+Tr+"*|[\ud800-\udbff][\udc00-\udfff]"+Tr+"*|\\\\verb\\*([^]).*?\\3|\\\\verb([^*a-zA-Z]).*?\\4|\\\\operatorname\\*|"+Sr+"|\\\\[^\ud800-\udfff])",Mr=function(){function e(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(qr,"g"),this.catcodes={"%":14}}var t=e.prototype;return t.setCatcode=function(e,t){this.catcodes[e]=t},t.lex=function(){var e=this.input,t=this.tokenRegex.lastIndex;if(t===e.length)return new i("EOF",new r(this,t,t));var n=this.tokenRegex.exec(e);if(null===n||n.index!==t)throw new o("Unexpected character: '"+e[t]+"'",new i(e[t],new r(this,t,t+1)));var a=n[2]||" ";if(14===this.catcodes[a]){var s=e.indexOf("\n",this.tokenRegex.lastIndex);return-1===s?(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=s+1,this.lex()}var l=a.match(Cr);return l&&(a=l[1]),new i(a,new r(this,t,this.tokenRegex.lastIndex))},e}(),Ar=function(){function e(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=[]}var t=e.prototype;return t.beginGroup=function(){this.undefStack.push({})},t.endGroup=function(){if(0===this.undefStack.length)throw new o("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var e=this.undefStack.pop();for(var t in e)e.hasOwnProperty(t)&&(void 0===e[t]?delete this.current[t]:this.current[t]=e[t])},t.has=function(e){return this.current.hasOwnProperty(e)||this.builtins.hasOwnProperty(e)},t.get=function(e){return this.current.hasOwnProperty(e)?this.current[e]:this.builtins[e]},t.set=function(e,t,n){if(void 0===n&&(n=!1),n){for(var r=0;r<this.undefStack.length;r++)delete this.undefStack[r][e];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][e]=t)}else{var i=this.undefStack[this.undefStack.length-1];i&&!i.hasOwnProperty(e)&&(i[e]=this.current[e])}this.current[e]=t},e}(),Nr={},Or=Nr;function Dr(e,t){Nr[e]=t}Dr("\\noexpand",function(e){var t=e.popToken();return e.isExpandable(t.text)&&(t.noexpand=!0,t.treatAsRelax=!0),{tokens:[t],numArgs:0}}),Dr("\\expandafter",function(e){var t=e.popToken();return e.expandOnce(!0),{tokens:[t],numArgs:0}}),Dr("\\@firstoftwo",function(e){return{tokens:e.consumeArgs(2)[0],numArgs:0}}),Dr("\\@secondoftwo",function(e){return{tokens:e.consumeArgs(2)[1],numArgs:0}}),Dr("\\@ifnextchar",function(e){var t=e.consumeArgs(3);e.consumeSpaces();var n=e.future();return 1===t[0].length&&t[0][0].text===n.text?{tokens:t[1],numArgs:0}:{tokens:t[2],numArgs:0}}),Dr("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}"),Dr("\\TextOrMath",function(e){var t=e.consumeArgs(2);return"text"===e.mode?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}});var zr={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};Dr("\\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 o("\\char` missing argument");r=n.text.charCodeAt(0)}else t=10;if(t){if(null==(r=zr[n.text])||r>=t)throw new o("Invalid base-"+t+" digit "+n.text);for(var i;null!=(i=zr[e.future().text])&&i<t;)r*=t,r+=i,e.popToken()}return"\\@char{"+r+"}"});var Lr=function(e,t,n){var r=e.consumeArgs(1)[0];if(1!==r.length)throw new o("\\newcommand's first argument must be a macro name");var i=r[0].text,a=e.isDefined(i);if(a&&!t)throw new o("\\newcommand{"+i+"} attempting to redefine "+i+"; use \\renewcommand");if(!a&&!n)throw new o("\\renewcommand{"+i+"} when command "+i+" does not yet exist; use \\newcommand");var s=0;if(1===(r=e.consumeArgs(1)[0]).length&&"["===r[0].text){for(var l="",u=e.expandNextToken();"]"!==u.text&&"EOF"!==u.text;)l+=u.text,u=e.expandNextToken();if(!l.match(/^\s*[0-9]+\s*$/))throw new o("Invalid number of arguments: "+l);s=parseInt(l),r=e.consumeArgs(1)[0]}return e.macros.set(i,{tokens:r,numArgs:s}),""};Dr("\\newcommand",function(e){return Lr(e,!1,!0)}),Dr("\\renewcommand",function(e){return Lr(e,!0,!1)}),Dr("\\providecommand",function(e){return Lr(e,!0,!0)}),Dr("\\message",function(e){var t=e.consumeArgs(1)[0];return console.log(t.reverse().map(function(e){return e.text}).join("")),""}),Dr("\\errmessage",function(e){var t=e.consumeArgs(1)[0];return console.error(t.reverse().map(function(e){return e.text}).join("")),""}),Dr("\\show",function(e){var t=e.popToken(),n=t.text;return console.log(t,e.macros.get(n),xr[n],ee.math[n],ee.text[n]),""}),Dr("\\bgroup","{"),Dr("\\egroup","}"),Dr("\\lq","`"),Dr("\\rq","'"),Dr("\\aa","\\r a"),Dr("\\AA","\\r A"),Dr("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`©}"),Dr("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}"),Dr("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}"),Dr("ℬ","\\mathscr{B}"),Dr("ℰ","\\mathscr{E}"),Dr("ℱ","\\mathscr{F}"),Dr("ℋ","\\mathscr{H}"),Dr("ℐ","\\mathscr{I}"),Dr("ℒ","\\mathscr{L}"),Dr("ℳ","\\mathscr{M}"),Dr("ℛ","\\mathscr{R}"),Dr("ℭ","\\mathfrak{C}"),Dr("ℌ","\\mathfrak{H}"),Dr("ℨ","\\mathfrak{Z}"),Dr("\\Bbbk","\\Bbb{k}"),Dr("·","\\cdotp"),Dr("\\llap","\\mathllap{\\textrm{#1}}"),Dr("\\rlap","\\mathrlap{\\textrm{#1}}"),Dr("\\clap","\\mathclap{\\textrm{#1}}"),Dr("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}'),Dr("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}"),Dr("\\ne","\\neq"),Dr("≠","\\neq"),Dr("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}"),Dr("∉","\\notin"),Dr("≘","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}"),Dr("≙","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}"),Dr("≚","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}"),Dr("≛","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}"),Dr("≝","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}"),Dr("≞","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}"),Dr("≟","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}"),Dr("⟂","\\perp"),Dr("‼","\\mathclose{!\\mkern-0.8mu!}"),Dr("∌","\\notni"),Dr("⌜","\\ulcorner"),Dr("⌝","\\urcorner"),Dr("⌞","\\llcorner"),Dr("⌟","\\lrcorner"),Dr("©","\\copyright"),Dr("®","\\textregistered"),Dr("️","\\textregistered"),Dr("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}'),Dr("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}'),Dr("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}'),Dr("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}'),Dr("\\vdots","\\mathord{\\varvdots\\rule{0pt}{15pt}}"),Dr("⋮","\\vdots"),Dr("\\varGamma","\\mathit{\\Gamma}"),Dr("\\varDelta","\\mathit{\\Delta}"),Dr("\\varTheta","\\mathit{\\Theta}"),Dr("\\varLambda","\\mathit{\\Lambda}"),Dr("\\varXi","\\mathit{\\Xi}"),Dr("\\varPi","\\mathit{\\Pi}"),Dr("\\varSigma","\\mathit{\\Sigma}"),Dr("\\varUpsilon","\\mathit{\\Upsilon}"),Dr("\\varPhi","\\mathit{\\Phi}"),Dr("\\varPsi","\\mathit{\\Psi}"),Dr("\\varOmega","\\mathit{\\Omega}"),Dr("\\substack","\\begin{subarray}{c}#1\\end{subarray}"),Dr("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu"),Dr("\\boxed","\\fbox{$\\displaystyle{#1}$}"),Dr("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;"),Dr("\\implies","\\DOTSB\\;\\Longrightarrow\\;"),Dr("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");var Ir={",":"\\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"};Dr("\\dots",function(e){var t="\\dotso",n=e.expandAfterFuture().text;return n in Ir?t=Ir[n]:("\\not"===n.substr(0,4)||n in ee.math&&d(["bin","rel"],ee.math[n].group))&&(t="\\dotsb"),t});var _r={")":!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};Dr("\\dotso",function(e){return e.future().text in _r?"\\ldots\\,":"\\ldots"}),Dr("\\dotsc",function(e){var t=e.future().text;return t in _r&&","!==t?"\\ldots\\,":"\\ldots"}),Dr("\\cdots",function(e){return e.future().text in _r?"\\@cdots\\,":"\\@cdots"}),Dr("\\dotsb","\\cdots"),Dr("\\dotsm","\\cdots"),Dr("\\dotsi","\\!\\cdots"),Dr("\\dotsx","\\ldots\\,"),Dr("\\DOTSI","\\relax"),Dr("\\DOTSB","\\relax"),Dr("\\DOTSX","\\relax"),Dr("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax"),Dr("\\,","\\tmspace+{3mu}{.1667em}"),Dr("\\thinspace","\\,"),Dr("\\>","\\mskip{4mu}"),Dr("\\:","\\tmspace+{4mu}{.2222em}"),Dr("\\medspace","\\:"),Dr("\\;","\\tmspace+{5mu}{.2777em}"),Dr("\\thickspace","\\;"),Dr("\\!","\\tmspace-{3mu}{.1667em}"),Dr("\\negthinspace","\\!"),Dr("\\negmedspace","\\tmspace-{4mu}{.2222em}"),Dr("\\negthickspace","\\tmspace-{5mu}{.277em}"),Dr("\\enspace","\\kern.5em "),Dr("\\enskip","\\hskip.5em\\relax"),Dr("\\quad","\\hskip1em\\relax"),Dr("\\qquad","\\hskip2em\\relax"),Dr("\\tag","\\@ifstar\\tag@literal\\tag@paren"),Dr("\\tag@paren","\\tag@literal{({#1})}"),Dr("\\tag@literal",function(e){if(e.macros.get("\\df@tag"))throw new o("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"}),Dr("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}"),Dr("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)"),Dr("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}"),Dr("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1"),Dr("\\pmb","\\html@mathml{\\@binrel{#1}{\\mathrlap{#1}\\kern0.5px#1}}{\\mathbf{#1}}"),Dr("\\\\","\\newline"),Dr("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var Rr=V["Main-Regular"]["T".charCodeAt(0)][1]-.7*V["Main-Regular"]["A".charCodeAt(0)][1]+"em";Dr("\\LaTeX","\\textrm{\\html@mathml{L\\kern-.36em\\raisebox{"+Rr+"}{\\scriptstyle A}\\kern-.15em\\TeX}{LaTeX}}"),Dr("\\KaTeX","\\textrm{\\html@mathml{K\\kern-.17em\\raisebox{"+Rr+"}{\\scriptstyle A}\\kern-.15em\\TeX}{KaTeX}}"),Dr("\\hspace","\\@ifstar\\@hspacer\\@hspace"),Dr("\\@hspace","\\hskip #1\\relax"),Dr("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax"),Dr("\\ordinarycolon",":"),Dr("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}"),Dr("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}'),Dr("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}'),Dr("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}'),Dr("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}'),Dr("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}'),Dr("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}'),Dr("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}'),Dr("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}'),Dr("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}'),Dr("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}'),Dr("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}'),Dr("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}'),Dr("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}'),Dr("∷","\\dblcolon"),Dr("∹","\\eqcolon"),Dr("≔","\\coloneqq"),Dr("≕","\\eqqcolon"),Dr("⩴","\\Coloneqq"),Dr("\\ratio","\\vcentcolon"),Dr("\\coloncolon","\\dblcolon"),Dr("\\colonequals","\\coloneqq"),Dr("\\coloncolonequals","\\Coloneqq"),Dr("\\equalscolon","\\eqqcolon"),Dr("\\equalscoloncolon","\\Eqqcolon"),Dr("\\colonminus","\\coloneq"),Dr("\\coloncolonminus","\\Coloneq"),Dr("\\minuscolon","\\eqcolon"),Dr("\\minuscoloncolon","\\Eqcolon"),Dr("\\coloncolonapprox","\\Colonapprox"),Dr("\\coloncolonsim","\\Colonsim"),Dr("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),Dr("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}"),Dr("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),Dr("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}"),Dr("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}"),Dr("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}"),Dr("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}"),Dr("\\gvertneqq","\\html@mathml{\\@gvertneqq}{≩}"),Dr("\\lvertneqq","\\html@mathml{\\@lvertneqq}{≨}"),Dr("\\ngeqq","\\html@mathml{\\@ngeqq}{≱}"),Dr("\\ngeqslant","\\html@mathml{\\@ngeqslant}{≱}"),Dr("\\nleqq","\\html@mathml{\\@nleqq}{≰}"),Dr("\\nleqslant","\\html@mathml{\\@nleqslant}{≰}"),Dr("\\nshortmid","\\html@mathml{\\@nshortmid}{∤}"),Dr("\\nshortparallel","\\html@mathml{\\@nshortparallel}{∦}"),Dr("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{⊈}"),Dr("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{⊉}"),Dr("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{⊊}"),Dr("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{⫋}"),Dr("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{⊋}"),Dr("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{⫌}"),Dr("\\imath","\\html@mathml{\\@imath}{ı}"),Dr("\\jmath","\\html@mathml{\\@jmath}{ȷ}"),Dr("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}"),Dr("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}"),Dr("⟦","\\llbracket"),Dr("⟧","\\rrbracket"),Dr("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}"),Dr("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}"),Dr("⦃","\\lBrace"),Dr("⦄","\\rBrace"),Dr("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}"),Dr("⦵","\\minuso"),Dr("\\darr","\\downarrow"),Dr("\\dArr","\\Downarrow"),Dr("\\Darr","\\Downarrow"),Dr("\\lang","\\langle"),Dr("\\rang","\\rangle"),Dr("\\uarr","\\uparrow"),Dr("\\uArr","\\Uparrow"),Dr("\\Uarr","\\Uparrow"),Dr("\\N","\\mathbb{N}"),Dr("\\R","\\mathbb{R}"),Dr("\\Z","\\mathbb{Z}"),Dr("\\alef","\\aleph"),Dr("\\alefsym","\\aleph"),Dr("\\Alpha","\\mathrm{A}"),Dr("\\Beta","\\mathrm{B}"),Dr("\\bull","\\bullet"),Dr("\\Chi","\\mathrm{X}"),Dr("\\clubs","\\clubsuit"),Dr("\\cnums","\\mathbb{C}"),Dr("\\Complex","\\mathbb{C}"),Dr("\\Dagger","\\ddagger"),Dr("\\diamonds","\\diamondsuit"),Dr("\\empty","\\emptyset"),Dr("\\Epsilon","\\mathrm{E}"),Dr("\\Eta","\\mathrm{H}"),Dr("\\exist","\\exists"),Dr("\\harr","\\leftrightarrow"),Dr("\\hArr","\\Leftrightarrow"),Dr("\\Harr","\\Leftrightarrow"),Dr("\\hearts","\\heartsuit"),Dr("\\image","\\Im"),Dr("\\infin","\\infty"),Dr("\\Iota","\\mathrm{I}"),Dr("\\isin","\\in"),Dr("\\Kappa","\\mathrm{K}"),Dr("\\larr","\\leftarrow"),Dr("\\lArr","\\Leftarrow"),Dr("\\Larr","\\Leftarrow"),Dr("\\lrarr","\\leftrightarrow"),Dr("\\lrArr","\\Leftrightarrow"),Dr("\\Lrarr","\\Leftrightarrow"),Dr("\\Mu","\\mathrm{M}"),Dr("\\natnums","\\mathbb{N}"),Dr("\\Nu","\\mathrm{N}"),Dr("\\Omicron","\\mathrm{O}"),Dr("\\plusmn","\\pm"),Dr("\\rarr","\\rightarrow"),Dr("\\rArr","\\Rightarrow"),Dr("\\Rarr","\\Rightarrow"),Dr("\\real","\\Re"),Dr("\\reals","\\mathbb{R}"),Dr("\\Reals","\\mathbb{R}"),Dr("\\Rho","\\mathrm{P}"),Dr("\\sdot","\\cdot"),Dr("\\sect","\\S"),Dr("\\spades","\\spadesuit"),Dr("\\sub","\\subset"),Dr("\\sube","\\subseteq"),Dr("\\supe","\\supseteq"),Dr("\\Tau","\\mathrm{T}"),Dr("\\thetasym","\\vartheta"),Dr("\\weierp","\\wp"),Dr("\\Zeta","\\mathrm{Z}"),Dr("\\argmin","\\DOTSB\\operatorname*{arg\\,min}"),Dr("\\argmax","\\DOTSB\\operatorname*{arg\\,max}"),Dr("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits"),Dr("\\bra","\\mathinner{\\langle{#1}|}"),Dr("\\ket","\\mathinner{|{#1}\\rangle}"),Dr("\\braket","\\mathinner{\\langle{#1}\\rangle}"),Dr("\\Bra","\\left\\langle#1\\right|"),Dr("\\Ket","\\left|#1\\right\\rangle"),Dr("\\blue","\\textcolor{##6495ed}{#1}"),Dr("\\orange","\\textcolor{##ffa500}{#1}"),Dr("\\pink","\\textcolor{##ff00af}{#1}"),Dr("\\red","\\textcolor{##df0030}{#1}"),Dr("\\green","\\textcolor{##28ae7b}{#1}"),Dr("\\gray","\\textcolor{gray}{#1}"),Dr("\\purple","\\textcolor{##9d38bd}{#1}"),Dr("\\blueA","\\textcolor{##ccfaff}{#1}"),Dr("\\blueB","\\textcolor{##80f6ff}{#1}"),Dr("\\blueC","\\textcolor{##63d9ea}{#1}"),Dr("\\blueD","\\textcolor{##11accd}{#1}"),Dr("\\blueE","\\textcolor{##0c7f99}{#1}"),Dr("\\tealA","\\textcolor{##94fff5}{#1}"),Dr("\\tealB","\\textcolor{##26edd5}{#1}"),Dr("\\tealC","\\textcolor{##01d1c1}{#1}"),Dr("\\tealD","\\textcolor{##01a995}{#1}"),Dr("\\tealE","\\textcolor{##208170}{#1}"),Dr("\\greenA","\\textcolor{##b6ffb0}{#1}"),Dr("\\greenB","\\textcolor{##8af281}{#1}"),Dr("\\greenC","\\textcolor{##74cf70}{#1}"),Dr("\\greenD","\\textcolor{##1fab54}{#1}"),Dr("\\greenE","\\textcolor{##0d923f}{#1}"),Dr("\\goldA","\\textcolor{##ffd0a9}{#1}"),Dr("\\goldB","\\textcolor{##ffbb71}{#1}"),Dr("\\goldC","\\textcolor{##ff9c39}{#1}"),Dr("\\goldD","\\textcolor{##e07d10}{#1}"),Dr("\\goldE","\\textcolor{##a75a05}{#1}"),Dr("\\redA","\\textcolor{##fca9a9}{#1}"),Dr("\\redB","\\textcolor{##ff8482}{#1}"),Dr("\\redC","\\textcolor{##f9685d}{#1}"),Dr("\\redD","\\textcolor{##e84d39}{#1}"),Dr("\\redE","\\textcolor{##bc2612}{#1}"),Dr("\\maroonA","\\textcolor{##ffbde0}{#1}"),Dr("\\maroonB","\\textcolor{##ff92c6}{#1}"),Dr("\\maroonC","\\textcolor{##ed5fa6}{#1}"),Dr("\\maroonD","\\textcolor{##ca337c}{#1}"),Dr("\\maroonE","\\textcolor{##9e034e}{#1}"),Dr("\\purpleA","\\textcolor{##ddd7ff}{#1}"),Dr("\\purpleB","\\textcolor{##c6b9fc}{#1}"),Dr("\\purpleC","\\textcolor{##aa87ff}{#1}"),Dr("\\purpleD","\\textcolor{##7854ab}{#1}"),Dr("\\purpleE","\\textcolor{##543b78}{#1}"),Dr("\\mintA","\\textcolor{##f5f9e8}{#1}"),Dr("\\mintB","\\textcolor{##edf2df}{#1}"),Dr("\\mintC","\\textcolor{##e0e5cc}{#1}"),Dr("\\grayA","\\textcolor{##f6f7f7}{#1}"),Dr("\\grayB","\\textcolor{##f0f1f2}{#1}"),Dr("\\grayC","\\textcolor{##e3e5e6}{#1}"),Dr("\\grayD","\\textcolor{##d6d8da}{#1}"),Dr("\\grayE","\\textcolor{##babec2}{#1}"),Dr("\\grayF","\\textcolor{##888d93}{#1}"),Dr("\\grayG","\\textcolor{##626569}{#1}"),Dr("\\grayH","\\textcolor{##3b3e40}{#1}"),Dr("\\grayI","\\textcolor{##21242c}{#1}"),Dr("\\kaBlue","\\textcolor{##314453}{#1}"),Dr("\\kaGreen","\\textcolor{##71B307}{#1}");var Br={"\\relax":!0,"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0},Pr=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 Ar(Or,t.macros),this.mode=n,this.stack=[]}var t=e.prototype;return t.feed=function(e){this.lexer=new Mr(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;n<e;++n){this.consumeSpaces();var r=this.popToken();if("{"===r.text){for(var i=[],a=1;0!==a;){var s=this.popToken();if(i.push(s),"{"===s.text)++a;else if("}"===s.text)--a;else if("EOF"===s.text)throw new o("End of input in macro argument",r)}i.pop(),i.reverse(),t[n]=i}else{if("EOF"===r.text)throw new o("End of input expecting macro argument");t[n]=[r]}}return t},t.expandOnce=function(e){var t=this.popToken(),n=t.text,r=t.noexpand?null:this._getExpansion(n);if(null==r||e&&r.unexpandable){if(e&&null==r&&"\\"===n[0]&&!this.isDefined(n))throw new o("Undefined control sequence: "+n);return this.pushToken(t),t}if(this.expansionCount++,this.expansionCount>this.settings.maxExpand)throw new o("Too many expansions: infinite loop or need to increase maxExpand setting");var i=r.tokens;if(r.numArgs)for(var a=this.consumeArgs(r.numArgs),s=(i=i.slice()).length-1;s>=0;--s){var l=i[s];if("#"===l.text){if(0===s)throw new o("Incomplete placeholder at end of macro body",l);if("#"===(l=i[--s]).text)i.splice(s+1,1);else{if(!/^[1-9]$/.test(l.text))throw new o("Not a valid argument number",l);var u;(u=i).splice.apply(u,[s,2].concat(a[+l.text-1]))}}}return this.pushTokens(i),i},t.expandAfterFuture=function(){return this.expandOnce(),this.future()},t.expandNextToken=function(){for(;;){var e=this.expandOnce();if(e instanceof i){if("\\relax"!==e.text&&!e.treatAsRelax)return this.stack.pop();this.stack.pop()}}throw new Error},t.expandMacro=function(e){return this.macros.has(e)?this.expandTokens([new i(e)]):void 0},t.expandTokens=function(e){var t=[],n=this.stack.length;for(this.pushTokens(e);this.stack.length>n;){var r=this.expandOnce(!0);r instanceof i&&(r.treatAsRelax&&(r.noexpand=!1,r.treatAsRelax=!1),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 i=n.replace(/##/g,"");-1!==i.indexOf("#"+(r+1));)++r;for(var a=new Mr(n,this.settings),o=[],s=a.lex();"EOF"!==s.text;)o.push(s),s=a.lex();return o.reverse(),{tokens:o,numArgs:r}}return n},t.isDefined=function(e){return this.macros.has(e)||xr.hasOwnProperty(e)||ee.math.hasOwnProperty(e)||ee.text.hasOwnProperty(e)||Br.hasOwnProperty(e)},t.isExpandable=function(e){var t=this.macros.get(e);return null!=t?"string"==typeof t||"function"==typeof t||!t.unexpandable:xr.hasOwnProperty(e)},e}(),jr={"́":{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"}},Hr={á:"á",à:"à",ä:"ä",ǟ:"ǟ",ã:"ã",ā:"ā",ă:"ă",ắ:"ắ",ằ:"ằ",ẵ:"ẵ",ǎ:"ǎ",â:"â",ấ:"ấ",ầ:"ầ",ẫ:"ẫ",ȧ:"ȧ",ǡ:"ǡ",å:"å",ǻ:"ǻ",ḃ:"ḃ",ć:"ć",č:"č",ĉ:"ĉ",ċ:"ċ",ď:"ď",ḋ:"ḋ",é:"é",è:"è",ë:"ë",ẽ:"ẽ",ē:"ē",ḗ:"ḗ",ḕ:"ḕ",ĕ:"ĕ",ě:"ě",ê:"ê",ế:"ế",ề:"ề",ễ:"ễ",ė:"ė",ḟ:"ḟ",ǵ:"ǵ",ḡ:"ḡ",ğ:"ğ",ǧ:"ǧ",ĝ:"ĝ",ġ:"ġ",ḧ:"ḧ",ȟ:"ȟ",ĥ:"ĥ",ḣ:"ḣ",í:"í",ì:"ì",ï:"ï",ḯ:"ḯ",ĩ:"ĩ",ī:"ī",ĭ:"ĭ",ǐ:"ǐ",î:"î",ǰ:"ǰ",ĵ:"ĵ",ḱ:"ḱ",ǩ:"ǩ",ĺ:"ĺ",ľ:"ľ",ḿ:"ḿ",ṁ:"ṁ",ń:"ń",ǹ:"ǹ",ñ:"ñ",ň:"ň",ṅ:"ṅ",ó:"ó",ò:"ò",ö:"ö",ȫ:"ȫ",õ:"õ",ṍ:"ṍ",ṏ:"ṏ",ȭ:"ȭ",ō:"ō",ṓ:"ṓ",ṑ:"ṑ",ŏ:"ŏ",ǒ:"ǒ",ô:"ô",ố:"ố",ồ:"ồ",ỗ:"ỗ",ȯ:"ȯ",ȱ:"ȱ",ő:"ő",ṕ:"ṕ",ṗ:"ṗ",ŕ:"ŕ",ř:"ř",ṙ:"ṙ",ś:"ś",ṥ:"ṥ",š:"š",ṧ:"ṧ",ŝ:"ŝ",ṡ:"ṡ",ẗ:"ẗ",ť:"ť",ṫ:"ṫ",ú:"ú",ù:"ù",ü:"ü",ǘ:"ǘ",ǜ:"ǜ",ǖ:"ǖ",ǚ:"ǚ",ũ:"ũ",ṹ:"ṹ",ū:"ū",ṻ:"ṻ",ŭ:"ŭ",ǔ:"ǔ",û:"û",ů:"ů",ű:"ű",ṽ:"ṽ",ẃ:"ẃ",ẁ:"ẁ",ẅ:"ẅ",ŵ:"ŵ",ẇ:"ẇ",ẘ:"ẘ",ẍ:"ẍ",ẋ:"ẋ",ý:"ý",ỳ:"ỳ",ÿ:"ÿ",ỹ:"ỹ",ȳ:"ȳ",ŷ:"ŷ",ẏ:"ẏ",ẙ:"ẙ",ź:"ź",ž:"ž",ẑ:"ẑ",ż:"ż",Á:"Á",À:"À",Ä:"Ä",Ǟ:"Ǟ",Ã:"Ã",Ā:"Ā",Ă:"Ă",Ắ:"Ắ",Ằ:"Ằ",Ẵ:"Ẵ",Ǎ:"Ǎ",Â:"Â",Ấ:"Ấ",Ầ:"Ầ",Ẫ:"Ẫ",Ȧ:"Ȧ",Ǡ:"Ǡ",Å:"Å",Ǻ:"Ǻ",Ḃ:"Ḃ",Ć:"Ć",Č:"Č",Ĉ:"Ĉ",Ċ:"Ċ",Ď:"Ď",Ḋ:"Ḋ",É:"É",È:"È",Ë:"Ë",Ẽ:"Ẽ",Ē:"Ē",Ḗ:"Ḗ",Ḕ:"Ḕ",Ĕ:"Ĕ",Ě:"Ě",Ê:"Ê",Ế:"Ế",Ề:"Ề",Ễ:"Ễ",Ė:"Ė",Ḟ:"Ḟ",Ǵ:"Ǵ",Ḡ:"Ḡ",Ğ:"Ğ",Ǧ:"Ǧ",Ĝ:"Ĝ",Ġ:"Ġ",Ḧ:"Ḧ",Ȟ:"Ȟ",Ĥ:"Ĥ",Ḣ:"Ḣ",Í:"Í",Ì:"Ì",Ï:"Ï",Ḯ:"Ḯ",Ĩ:"Ĩ",Ī:"Ī",Ĭ:"Ĭ",Ǐ:"Ǐ",Î:"Î",İ:"İ",Ĵ:"Ĵ",Ḱ:"Ḱ",Ǩ:"Ǩ",Ĺ:"Ĺ",Ľ:"Ľ",Ḿ:"Ḿ",Ṁ:"Ṁ",Ń:"Ń",Ǹ:"Ǹ",Ñ:"Ñ",Ň:"Ň",Ṅ:"Ṅ",Ó:"Ó",Ò:"Ò",Ö:"Ö",Ȫ:"Ȫ",Õ:"Õ",Ṍ:"Ṍ",Ṏ:"Ṏ",Ȭ:"Ȭ",Ō:"Ō",Ṓ:"Ṓ",Ṑ:"Ṑ",Ŏ:"Ŏ",Ǒ:"Ǒ",Ô:"Ô",Ố:"Ố",Ồ:"Ồ",Ỗ:"Ỗ",Ȯ:"Ȯ",Ȱ:"Ȱ",Ő:"Ő",Ṕ:"Ṕ",Ṗ:"Ṗ",Ŕ:"Ŕ",Ř:"Ř",Ṙ:"Ṙ",Ś:"Ś",Ṥ:"Ṥ",Š:"Š",Ṧ:"Ṧ",Ŝ:"Ŝ",Ṡ:"Ṡ",Ť:"Ť",Ṫ:"Ṫ",Ú:"Ú",Ù:"Ù",Ü:"Ü",Ǘ:"Ǘ",Ǜ:"Ǜ",Ǖ:"Ǖ",Ǚ:"Ǚ",Ũ:"Ũ",Ṹ:"Ṹ",Ū:"Ū",Ṻ:"Ṻ",Ŭ:"Ŭ",Ǔ:"Ǔ",Û:"Û",Ů:"Ů",Ű:"Ű",Ṽ:"Ṽ",Ẃ:"Ẃ",Ẁ:"Ẁ",Ẅ:"Ẅ",Ŵ:"Ŵ",Ẇ:"Ẇ",Ẍ:"Ẍ",Ẋ:"Ẋ",Ý:"Ý",Ỳ:"Ỳ",Ÿ:"Ÿ",Ỹ:"Ỹ",Ȳ:"Ȳ",Ŷ:"Ŷ",Ẏ:"Ẏ",Ź:"Ź",Ž:"Ž",Ẑ:"Ẑ",Ż:"Ż",ά:"ά",ὰ:"ὰ",ᾱ:"ᾱ",ᾰ:"ᾰ",έ:"έ",ὲ:"ὲ",ή:"ή",ὴ:"ὴ",ί:"ί",ὶ:"ὶ",ϊ:"ϊ",ΐ:"ΐ",ῒ:"ῒ",ῑ:"ῑ",ῐ:"ῐ",ό:"ό",ὸ:"ὸ",ύ:"ύ",ὺ:"ὺ",ϋ:"ϋ",ΰ:"ΰ",ῢ:"ῢ",ῡ:"ῡ",ῠ:"ῠ",ώ:"ώ",ὼ:"ὼ",Ύ:"Ύ",Ὺ:"Ὺ",Ϋ:"Ϋ",Ῡ:"Ῡ",Ῠ:"Ῠ",Ώ:"Ώ",Ὼ:"Ὼ"},Fr=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 Pr(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 o("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.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");var e=this.parseExpression(!1);return this.expect("EOF"),this.settings.globalGroup||this.gullet.endGroup(),e},t.parseExpression=function(t,n){for(var r=[];;){"math"===this.mode&&this.consumeSpaces();var i=this.fetch();if(-1!==e.endOfExpression.indexOf(i.text))break;if(n&&i.text===n)break;if(t&&xr[i.text]&&xr[i.text].infix)break;var a=this.parseAtom(n);if(!a)break;"internal"!==a.type&&r.push(a)}return"text"===this.mode&&this.formLigatures(r),this.handleInfixNodes(r)},t.handleInfixNodes=function(e){for(var t,n=-1,r=0;r<e.length;r++)if("infix"===e[r].type){if(-1!==n)throw new o("only one infix operator per group",e[r].token);n=r,t=e[r].replaceWith}if(-1!==n&&t){var i,a,s=e.slice(0,n),l=e.slice(n+1);return i=1===s.length&&"ordgroup"===s[0].type?s[0]:{type:"ordgroup",mode:this.mode,body:s},a=1===l.length&&"ordgroup"===l[0].type?l[0]:{type:"ordgroup",mode:this.mode,body:l},["\\\\abovefrac"===t?this.callFunction(t,[i,e[n],a],[]):this.callFunction(t,[i,a],[])]}return e},t.handleSupSubscript=function(t){var n=this.fetch(),r=n.text;this.consume();var i=this.parseGroup(t,!1,e.SUPSUB_GREEDINESS,void 0,void 0,!0);if(!i)throw new o("Expected group after '"+r+"'",n);return i},t.formatUnsupportedCmd=function(e){for(var t=[],n=0;n<e.length;n++)t.push({type:"textord",mode:"text",text:e[n]});var r={type:"text",mode:this.mode,body:t};return{type:"color",mode:this.mode,color:this.settings.errorColor,body:[r]}},t.parseAtom=function(e){var t,n,r=this.parseGroup("atom",!1,null,e);if("text"===this.mode)return r;for(;;){this.consumeSpaces();var i=this.fetch();if("\\limits"===i.text||"\\nolimits"===i.text){if(r&&"op"===r.type){var a="\\limits"===i.text;r.limits=a,r.alwaysHandleSupSub=!0}else{if(!r||"operatorname"!==r.type||!r.alwaysHandleSupSub)throw new o("Limit controls must follow a math operator",i);var s="\\limits"===i.text;r.limits=s}this.consume()}else if("^"===i.text){if(t)throw new o("Double superscript",i);t=this.handleSupSubscript("superscript")}else if("_"===i.text){if(n)throw new o("Double subscript",i);n=this.handleSupSubscript("subscript")}else{if("'"!==i.text)break;if(t)throw new o("Double superscript",i);var l={type:"textord",mode:this.mode,text:"\\prime"},u=[l];for(this.consume();"'"===this.fetch().text;)u.push(l),this.consume();"^"===this.fetch().text&&u.push(this.handleSupSubscript("superscript")),t={type:"ordgroup",mode:this.mode,body:u}}}return t||n?{type:"supsub",mode:this.mode,base:r,sup:t,sub:n}:r},t.parseFunction=function(e,t,n){var r=this.fetch(),i=r.text,a=xr[i];if(!a)return null;if(this.consume(),null!=n&&a.greediness<=n)throw new o("Got function '"+i+"' with no arguments"+(t?" as "+t:""),r);if("text"===this.mode&&!a.allowedInText)throw new o("Can't use function '"+i+"' in text mode",r);if("math"===this.mode&&!1===a.allowedInMath)throw new o("Can't use function '"+i+"' in math mode",r);var s=this.parseArguments(i,a),l=s.args,u=s.optArgs;return this.callFunction(i,l,u,r,e)},t.callFunction=function(e,t,n,r,i){var a={funcName:e,parser:this,token:r,breakOnTokenText:i},s=xr[e];if(s&&s.handler)return s.handler(a,t,n);throw new o("No function handler for "+e)},t.parseArguments=function(e,t){var n=t.numArgs+t.numOptionalArgs;if(0===n)return{args:[],optArgs:[]};for(var r=t.greediness,i=[],a=[],s=0;s<n;s++){var l=t.argTypes&&t.argTypes[s],u=s<t.numOptionalArgs,c=s>0&&!u||0===s&&!u&&"math"===this.mode,d=this.parseGroupOfType("argument to '"+e+"'",l,u,r,c);if(!d){if(u){a.push(null);continue}throw new o("Expected group after '"+e+"'",this.fetch())}(u?a:i).push(d)}return{args:i,optArgs:a}},t.parseGroupOfType=function(e,t,n,r,i){switch(t){case"color":return i&&this.consumeSpaces(),this.parseColorGroup(n);case"size":return i&&this.consumeSpaces(),this.parseSizeGroup(n);case"url":return this.parseUrlGroup(n,i);case"math":case"text":return this.parseGroup(e,n,r,void 0,t,i);case"hbox":var a=this.parseGroup(e,n,r,void 0,"text",i);return a?{type:"styling",mode:a.mode,body:[a],style:"text"}:a;case"raw":if(i&&this.consumeSpaces(),n&&"{"===this.fetch().text)return null;var s=this.parseStringGroup("raw",n,!0);if(s)return{type:"raw",mode:"text",string:s.text};throw new o("Expected raw group",this.fetch());case"original":case null:case void 0:return this.parseGroup(e,n,r,void 0,void 0,i);default:throw new o("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?"[":"{",i=t?"]":"}",a=this.fetch();if(a.text!==r){if(t)return null;if(n&&"EOF"!==a.text&&/[^{}[\]]/.test(a.text))return this.consume(),a}var s=this.mode;this.mode="text",this.expect(r);for(var l,u="",c=this.fetch(),d=0,h=c;(l=this.fetch()).text!==i||n&&d>0;){switch(l.text){case"EOF":throw new o("Unexpected end of input in "+e,c.range(h,u));case r:d++;break;case i:d--}u+=(h=l).text,this.consume()}return this.expect(i),this.mode=s,c.range(h,u)},t.parseRegexGroup=function(e,t){var n=this.mode;this.mode="text";for(var r,i=this.fetch(),a=i,s="";"EOF"!==(r=this.fetch()).text&&e.test(s+r.text);)s+=(a=r).text,this.consume();if(""===s)throw new o("Invalid "+t+": '"+i.text+"'",i);return this.mode=n,i.range(a,s)},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 o("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 o("Invalid size: '"+t.text+"'",t);var i={number:+(r[1]+r[2]),unit:r[3]};if(!Fe(i))throw new o("Invalid unit: '"+i.unit+"'",t);return{type:"size",mode:this.mode,value:i,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,i,a,s,l){var u=this.mode;s&&this.switchMode(s),l&&this.consumeSpaces();var c,d=this.fetch(),h=d.text;if(n?"["===h:"{"===h||"\\begingroup"===h){this.consume();var p=e.endOfGroup[h];this.gullet.beginGroup();var f=this.parseExpression(!1,p),m=this.fetch();this.expect(p),this.gullet.endGroup(),c={type:"ordgroup",mode:this.mode,loc:r.range(d,m),body:f,semisimple:"\\begingroup"===h||void 0}}else if(n)c=null;else if(null==(c=this.parseFunction(a,t,i)||this.parseSymbol())&&"\\"===h[0]&&!Br.hasOwnProperty(h)){if(this.settings.throwOnError)throw new o("Undefined control sequence: "+h,d);c=this.formatUnsupportedCmd(h),this.consume()}return s&&this.switchMode(u),c},t.formLigatures=function(e){for(var t=e.length-1,n=0;n<t;++n){var i=e[n],a=i.text;"-"===a&&"-"===e[n+1].text&&(n+1<t&&"-"===e[n+2].text?(e.splice(n,3,{type:"textord",mode:"text",loc:r.range(i,e[n+2]),text:"---"}),t-=2):(e.splice(n,2,{type:"textord",mode:"text",loc:r.range(i,e[n+1]),text:"--"}),t-=1)),"'"!==a&&"`"!==a||e[n+1].text!==a||(e.splice(n,2,{type:"textord",mode:"text",loc:r.range(i,e[n+1]),text:a+a}),t-=1)}},t.parseSymbol=function(){var e=this.fetch(),t=e.text;if(/^\\verb[^a-zA-Z]/.test(t)){this.consume();var n=t.slice(5),i="*"===n.charAt(0);if(i&&(n=n.slice(1)),n.length<2||n.charAt(0)!==n.slice(-1))throw new o("\\verb assertion failed --\n please report what input caused this bug");return{type:"verb",mode:"text",body:n=n.slice(1,-1),star:i}}Hr.hasOwnProperty(t[0])&&!ee[this.mode][t[0]]&&(this.settings.strict&&"math"===this.mode&&this.settings.reportNonstrict("unicodeTextInMathMode",'Accented Unicode text character "'+t[0]+'" used in math mode',e),t=Hr[t[0]]+t.substr(1));var a,s=Er.exec(t);if(s&&("i"===(t=t.substring(0,s.index))?t="ı":"j"===t&&(t="ȷ")),ee[this.mode][t]){this.settings.strict&&"math"===this.mode&&Ne.indexOf(t)>=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+t[0]+'" used in math mode',e);var l,u=ee[this.mode][t].group,c=r.range(e);if(Y.hasOwnProperty(u)){var d=u;l={type:"atom",mode:this.mode,family:d,loc:c,text:t}}else l={type:u,mode:this.mode,loc:c,text:t};a=l}else{if(!(t.charCodeAt(0)>=128))return null;this.settings.strict&&(N(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)),a={type:"textord",mode:"text",loc:r.range(e),text:t}}if(this.consume(),s)for(var h=0;h<s[0].length;h++){var p=s[0][h];if(!jr[p])throw new o("Unknown accent ' "+p+"'",e);var f=jr[p][this.mode];if(!f)throw new o("Accent "+p+" unsupported in "+this.mode+" mode",e);a={type:"accent",mode:this.mode,loc:r.range(e),label:f,isStretchy:!1,isShifty:!0,base:a}}return a},e}();Fr.endOfExpression=["}","\\endgroup","\\end","\\right","&"],Fr.endOfGroup={"[":"]","{":"}","\\begingroup":"\\endgroup"},Fr.SUPSUB_GREEDINESS=1;var Ur=function(e,t){if(!("string"==typeof e||e instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var n=new Fr(e,t);delete n.gullet.macros.current["\\df@tag"];var r=n.parse();if(n.gullet.macros.get("\\df@tag")){if(!t.displayMode)throw new o("\\tag works only in display equations");n.gullet.feed("\\df@tag"),r=[{type:"tag",mode:"text",body:r,tag:n.parse()}]}return r},Qr=function(e,t,n){t.textContent="";var r=Vr(e,n).toNode();t.appendChild(r)};"undefined"!=typeof document&&"CSS1Compat"!==document.compatMode&&("undefined"!=typeof console&&console.warn("Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype."),Qr=function(){throw new o("KaTeX doesn't work in quirks mode.")});var Wr=function(e,t,n){if(n.throwOnError||!(e instanceof o))throw e;var r=et.makeSpan(["katex-error"],[new H(t)]);return r.setAttribute("title",e.toString()),r.setAttribute("style","color:"+n.errorColor),r},Vr=function(e,t){var n=new v(t);try{return function(e,t,n){var r,i=Rt(n);if("mathml"===n.output)return _t(e,t,i,n.displayMode,!0);if("html"===n.output){var a=Tt(e,i);r=et.makeSpan(["katex"],[a])}else{var o=_t(e,t,i,n.displayMode,!1),s=Tt(e,i);r=et.makeSpan(["katex"],[o,s])}return Bt(r,n)}(Ur(e,n),e,n)}catch(t){return Wr(t,e,n)}},$r={version:"0.12.0",render:Qr,renderToString:function(e,t){return Vr(e,t).toMarkup()},ParseError:o,__parse:function(e,t){var n=new v(t);return Ur(e,n)},__renderToDomTree:Vr,__renderToHTMLTree:function(e,t){var n=new v(t);try{return function(e,t,n){var r=Tt(e,Rt(n)),i=et.makeSpan(["katex"],[r]);return Bt(i,n)}(Ur(e,n),0,n)}catch(t){return Wr(t,e,n)}},__setFontMetrics:function(e,t){V[e]=t},__defineSymbol:te,__defineMacro:Dr,__domTree:{Span:R,Anchor:B,SymbolNode:H,SvgNode:F,PathNode:U,LineNode:Q}};t.default=$r}]).default},e.exports=t()},930:(e,t,n)=>{n.d(t,{A:()=>s});var r=n(601),i=n.n(r),a=n(314),o=n.n(a)()(i());o.push([e.id,"/* Fixes is a katex bug where horizontal lines are not rendering */\n/* .frac-line {\n background-color: #404040;\n height:0.03em;\n}\n.overline-line {\n background-color: #404040;\n height:0.03em;\n} */\n\n.SymbolButton {\n display: inline-block;\n overflow: hidden; /* Important to fix a bug where katex renders parts of the equation outside the box */\n font-size: 14px;\n font-weight: bold;\n color: #202020;\n background: #e0e0e0;\n text-align: center;\n border: 0px;\n border-radius: 5px;\n width: 36px;\n height: 36px;\n padding: 1px;\n margin: 3px;\n margin-bottom: auto;\n /* transition: all .2s ease-in-out; */\n}\n\n.SymbolButton:hover {\n filter: saturate(2);\n color: black;\n /* transform: scale(1.3); */\n cursor: pointer;\n box-shadow: 1px 1px 3px #808080;\n animation: 2s grow;\n animation-fill-mode: forwards;\n}\n\n@keyframes grow {\n 00% {\n transform: scale(1);\n box-shadow: 0px 0px 0px #808080;\n }\n 10% {\n transform: scale(1.3);\n box-shadow: 1px 1px 3px #808080;\n }\n 90% {\n transform: scale(1.3);\n box-shadow: 1px 1px 3px #808080;\n }\n 100% {\n transform: scale(1.8);\n box-shadow: 1px 1px 3px #808080;\n }\n}\n\n.SymbolButton:active {\n background: #808080;\n color: white;\n transform: scale(1.3);\n cursor: pointer;\n}\n\n.SymbolButton-fadeIn {\n opacity: 1;\n width: 100px;\n height: 100px;\n transition: width 0.5s, height 0.5s, opacity 0.5s 0.5s;\n}\n\n.highlight-0 {\n background: #ebc9eb;\n /* background: #80e0e0; */\n}\n/*\n.highlight-1{\n background: #c0e0e0;\n}\n/* .highlight-2{\n background: #c0e0e0;\n} */\n\n.highlight-operators {\n background: #f8e8d8;\n}\n\n.highlight-angles {\n background: #cceded;\n}\n\n.highlight-greeklower {\n background: #f8e8d8;\n}\n\n.highlight-greekupper {\n background: #cceded;\n}\n\n.highlight-misc {\n background: #f8e8d8;\n}\n\n.highlight-sets {\n background: #cceded;\n}\n\n.highlight-chemistry {\n background: #f8e8d8;\n}\n\n.highlight-elements {\n background: #cceded;\n}\n\n.highlight-physics2 {\n background: #f8e8d8;\n}\n\n.highlight-physics3 {\n background: #cceded;\n}\n\n.highlight-expert {\n background: #f4d6f5;\n}\n\n.highlight-matrices {\n background: #f4d6f5;\n}\n",""]);const s=o},961:(e,t,n)=>{!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(551)},982:(e,t,n)=>{e.exports=n(463)}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var a=t[r]={id:r,exports:{}};return e[r].call(a.exports,a,a.exports,n),a.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.nc=void 0;var r=n(540),i=n(338),a=n(890),o=n.n(a);var s=n(138),l=n(72),u=n.n(l),c=n(825),d=n.n(c),h=n(659),p=n.n(h),f=n(56),m=n.n(f),g=n(159),b=n.n(g),v=n(113),y=n.n(v),x=n(930),w={};w.styleTagTransform=y(),w.setAttributes=m(),w.insert=p().bind(null,"head"),w.domAPI=d(),w.insertStyleElement=b(),u()(x.A,w),x.A&&x.A.locals&&x.A.locals;const k=[{name:"Squared",latex:"^2",buttonLatex:"\\square^2",tooltip:"Squared (type \\^2)",typedText:!0,moveCursor:1},{name:"Power",latex:"^",buttonLatex:"\\square^x",tooltip:"Power (type \\^x)",typedText:!0},{name:"Subscript",latex:"_",buttonLatex:"\\square_x",tooltip:"Subscript (type \\_x)",typedText:!0},{name:"Root",latex:"\\sqrt{#}",buttonLatex:"\\sqrt{x}",tooltip:"Square root",moveCursor:-1},{name:"Cube root",latex:"\\sqrt[3]{#}",buttonLatex:"\\sqrt[3]{x}",tooltip:"Cube root",moveCursor:-1},{name:"Nth root",latex:"\\sqrt[#]{#}",buttonLatex:"\\sqrt[n]{x}",tooltip:"Nth root",moveCursor:-2},{name:"Surd",latex:"\\surd{#}",buttonLatex:"\\surd{x}",tooltip:"Surd"},{name:"Over",mathQuill:"/",latex:"\\frac{##}{#}",buttonLatex:"\\frac{\\square}{x}",tooltip:"Fraction",typedText:!0},{name:"Over root",latex:"/\\sqrt ",buttonLatex:"\\frac{a}{\\sqrt{x}}",tooltip:"Over square root",moveCursor:-1,typedText:!0},{name:"Hat",latex:"\\hat{#}",buttonLatex:"\\hat{x}",tooltip:"Hat",moveCursor:-1},{name:"Vector",latex:"\\vec{#}",buttonLatex:"\\vec{x}",tooltip:"Vector",moveCursor:-1},{name:"Line segment",latex:"\\overline{\\mathrm{AB#}}",buttonLatex:"\\overline{\\mathrm{AB}}",tooltip:"Overline",moveCursor:-2,scale:80},{name:"Ray",latex:"\\overrightarrow{\\mathrm{AB#}}",buttonLatex:"\\overrightarrow{\\mathrm{AB}}",tooltip:"Over left arrow",moveCursor:-2,scale:80},{name:"Over left arrow",latex:"\\overleftarrow{\\mathrm{AB#}}",buttonLatex:"\\overleftarrow{\\mathrm{AB}}",tooltip:"Over left arrow",moveCursor:-2,scale:80},{name:"Line",latex:"\\overleftrightarrow{\\mathrm{AB#}}",buttonLatex:"\\overleftrightarrow{\\mathrm{AB}}",tooltip:"Over left arrow",moveCursor:-2,scale:80},{name:"Dot",latex:"\\dot{#}",buttonLatex:"\\dot{x}",tooltip:"Dot",moveCursor:-1},{name:"Double dot",latex:"\\ddot{#}",buttonLatex:"\\ddot{x}",tooltip:"Double dot",moveCursor:-1},{name:"dxdy",latex:"\\frac{dx}{dy}",scale:90},{name:"Partial dxdy",latex:"\\frac{\\partial x}{\\partial y}",buttonLatex:"\\frac{\\partial x}{\\partial y}",tooltip:"Partial dxdy",scale:90},{name:"Integral",latex:"\\int_{#}^{#}",buttonLatex:"\\int",tooltip:"Integral",moveCursor:-2,scale:90},{name:"Double integral",latex:"\\iint_{#}^{#}",buttonLatex:"\\iint",tooltip:"Double integral",moveCursor:-2},{name:"Triple integral",latex:"\\iiint_{#}^{#}",buttonLatex:"\\iiint",tooltip:"Double integral",moveCursor:-2},{name:"Contour integral",latex:"\\oint_{#}^{#}",buttonLatex:"\\oint",tooltip:"Contour integral",moveCursor:-2},{name:"Surface integral",latex:"\\oiint_{#}^{#}",buttonLatex:"\\oiint",tooltip:"Surface integral",moveCursor:-2},{name:"Volume integral",latex:"\\oiiint_{#}^{#}",buttonLatex:"\\oiiint",tooltip:"Volume integral",moveCursor:-2},{name:"Integral a b",latex:"\\int_{#}^{#}",buttonLatex:"\\int_{a}^{b}",tooltip:"Integral",moveCursor:-2,scale:90},{name:"Double integral a b",latex:"\\iint_{#}^{#}",buttonLatex:"\\iint_{a}^{b}",tooltip:"Double integral",moveCursor:-2},{name:"Triple integral a b",latex:"\\iiint_{#}^{#}",buttonLatex:"\\iiint_{a}^{b}",tooltip:"Double integral",moveCursor:-2},{name:"Contour integral a b",latex:"\\oint_{#}^{#}",buttonLatex:"\\oint_{a}^{b}",tooltip:"Contour integral",moveCursor:-2},{name:"Sum a b",mathQuill:"\\sum ",latex:"\\sum\\limits_{#}^{#}",buttonLatex:"\\sum\\limits_a^b",scale:75,moveCursor:-1,typedText:!0},{name:"Product a b",mathQuill:"\\prod ",latex:"\\prod\\limits_{#}^{#}",buttonLatex:"\\prod\\limits_a^b",scale:75,tooltip:"Product",moveCursor:-1,typedText:!0},{name:"Infinity",latex:"\\infty"},{name:"Right arrow",latex:"\\rightarrow"},{name:"Box",latex:"\\square",buttonLatex:"\\square",tooltip:"Box"},{name:"Plus",latex:"+",buttonLatex:"+",tooltip:"Plus"},{name:"Minus",latex:"-",buttonLatex:"-",tooltip:"Mius"},{name:"Plus or minus",latex:"\\pm",buttonLatex:"\\pm",tooltip:"Plus or minus"},{name:"Minus or plus",latex:"\\mp",buttonLatex:"\\mp",tooltip:"Minus or plus"},{name:"Times",latex:"\\times",buttonLatex:"\\times",tooltip:"Times"},{name:"Divide",latex:"\\div",buttonLatex:"\\div",tooltip:"Divide"},{name:"Center dot",latex:"\\cdot",buttonLatex:"\\cdot",tooltip:"Center dot"},{name:"Equals",latex:"=",buttonLatex:"=",tooltip:"Equals"},{name:"Less than",latex:"<",buttonLatex:"<",tooltip:"Less than (type <)"},{name:"Greater than",latex:">",buttonLatex:">",tooltip:"Greater than (type >=)"},{name:"Not equal",latex:"\\ne",buttonLatex:"\\ne",tooltip:"Not equal"},{name:"Less than or equal",latex:"\\le",buttonLatex:"\\le",tooltip:"Less than or equal"},{name:"Greater than or equal",latex:"\\ge",buttonLatex:"\\ge",tooltip:"Greater than or equal"},{name:"Equivalent",latex:"\\equiv",buttonLatex:"\\equiv",tooltip:"Equivalent"},{name:"Similar",latex:"\\sim",buttonLatex:"\\sim",tooltip:"Similar"},{name:"Approximately",latex:"\\approx",buttonLatex:"\\approx",tooltip:"Approximately"},{name:"Congruent",latex:"\\cong",buttonLatex:"\\cong",tooltip:"Cong"},{name:"Implies",latex:"\\Rightarrow",buttonLatex:"\\Rightarrow",tooltip:"Implies"},{name:"Limit x to infinity",mathQuill:"\\lim_{x\\to \\infty}",latex:"\\lim\\limits_{x\\to \\infty}",scale:90},{name:"Measured angle",latex:"\\measuredangle"},{name:"Spherical angle",latex:"\\sphericalangle"},{name:"Proportionate",latex:"\\propto"},{name:"Parallel",latex:"\\parallel"},{name:"Perpendicular",latex:"\\perp"},{name:"nsubset",latex:"\\nsubset",buttonLatex:"\\not\\subset"},{name:"Algebraic numbers",latex:"\\A",buttonLatex:"\\mathbb A"},{name:"Complex numbers",latex:"\\C",buttonLatex:"\\mathbb C"},{name:"Natural numbers",latex:"\\N",buttonLatex:"\\mathbb N"},{name:"Rational numbers",latex:"\\Q",buttonLatex:"\\mathbb Q"},{name:"Real numbers",latex:"\\R",buttonLatex:"\\mathbb R"},{name:"Integers",latex:"\\Z",buttonLatex:"\\mathbb Z"},{name:"Subscript2",latex:"_2",buttonLatex:"\\square_2",tooltip:"Subscript (type \\_2)"},{name:"SubscriptN",latex:"_",buttonLatex:"\\square_n",tooltip:"Subscript (type \\_n)",typedText:!0},{name:"SuperscriptN",latex:"^",buttonLatex:"\\square^n",tooltip:"Superscript (type \\^n)",typedText:!0},{name:"Chemistry arrow",latex:" \\longrightarrow ",buttonLatex:"\\longrightarrow",tooltip:"Chemistry arrow",typedText:!0},{name:"_e",latex:"\\mathrm{e^-}",buttonLatex:"\\mathrm{e^-}"},{name:"_n",latex:"_{0}^{1}\\mathrm{n}",buttonLatex:"_{0}^{1}\\mathrm{n}"},{name:"_p",latex:"_{1}^{1}\\mathrm{p}",buttonLatex:"_{1}^{1}\\mathrm{p}"},{name:"_a",latex:"_{2}^{2}\\alpha",buttonLatex:"_{2}^{2}\\alpha"},{name:"_em",latex:"_{-1}^{0}\\mathrm{e}",buttonLatex:"_{-1}^{0}\\mathrm{e}"},{name:"_bm",latex:"_{-1}^{0}\\beta",buttonLatex:"_{-1}^{0}\\beta"},{name:"_ep",latex:"_{1}^{0}\\mathrm{e}",buttonLatex:"_{1}^{0}\\mathrm{e}"},{name:"_bp",latex:"_{1}^{0}\\beta",buttonLatex:"_{1}^{0}\\beta"},{name:"_ga",latex:"_{0}^{0}\\gamma",buttonLatex:"_{0}^{0}\\gamma"},{name:"_s",latex:"_{(s)}",buttonLatex:"\\square_{(s)}"},{name:"_g",latex:"_{(g)}",buttonLatex:"\\square_{(g)}"},{name:"_l",latex:"_{(l)}",buttonLatex:"\\square_{(l)}"},{name:"_aq",latex:"_{(aq)}",buttonLatex:"\\square_{(aq)}"},{name:"Type in Roman text",latex:"\\mathrm ",buttonLatex:"\\mathrm{[text]}",scale:70,typedText:!0},{name:"Uranium symbol",latex:"_{92}^{235}\\mathrm U",buttonLatex:"_{92}^{235}\\mathrm U"},{name:"Half",latex:"\\frac{1}{2}",buttonLatex:"\\frac{1}{2}"},{name:"Third",latex:"\\frac{1}{3}",buttonLatex:"\\frac{1}{3}"},{name:"Over root 2",latex:"\\frac{#}{\\surd{2}}",buttonLatex:"\\frac{x}{\\surd{2}}",moveCursor:-4},{name:"Over root 3",latex:"\\frac{#}{\\surd{3}}",buttonLatex:"\\frac{x}{\\surd{3}}",moveCursor:-4},{name:"Subscript zero",latex:"_0",buttonLatex:"\\square_0"},{name:"Subscript max",latex:"_{\\max}",buttonLatex:"\\square_{\\max}",scale:80},{name:"Subscript min",latex:"_{\\min}",buttonLatex:"\\square_{\\min}",scale:80},{name:"Subscript rms",latex:"_\\mathrm{rms}",buttonLatex:"\\square_\\mathrm{rms}",scale:80},{name:"Root a over b",latex:"\\sqrt{\\frac{#}{#}}",buttonLatex:"\\sqrt{\\frac{a}{b}}",moveCursor:-3},{name:"Capacitor discharge",latex:"e^{\\frac{-t}{RC}}",scale:80},{name:"Radioactive decay",latex:"e^{-\\lambda t}",scale:80},{name:"Attenuation of rays",latex:"e^{-\\mu x}",scale:80},{name:"Delta x over delta t",latex:"\\frac{\\Delta{#}}{\\Delta{t}}",buttonLatex:"\\frac{\\Delta{x}}{\\Delta{t}}",moveCursor:-4},{name:"dxdt",latex:"\\frac{d}{d{t}}",buttonLatex:"\\frac{dx}{dt}",moveCursor:-4},{name:"Widehat",latex:"\\widehat{#}",buttonLatex:"\\widehat{x}"},{name:"Double dot",latex:"\\ddot{#}",buttonLatex:"\\ddot{x}"},{name:"Mathring",latex:"\\mathring{#}",buttonLatex:"\\mathring{x}"},{name:"Tilde",latex:"\\tilde{#}",buttonLatex:"\\tilde{x}"},{name:"Check",latex:"\\check{#}",buttonLatex:"\\check{x}"},{name:"Right arrow with text",latex:"\\xrightarrow[#]{#}",buttonLatex:"\\xrightarrow[text]{text}",scale:90},{name:"Vector OA",latex:"\\overrightarrow{\\rm OA}",scale:80,buttonLatex:"\\overrightarrow{\\rm OA}"},{name:"Vector OB",latex:"\\overrightarrow{\\rm OB}",scale:80,buttonLatex:"\\overrightarrow{\\rm OB}"},{name:"Vector PQ",latex:"\\overrightarrow{\\rm PQ}",scale:80,buttonLatex:"\\overrightarrow{\\rm PQ}"},{name:"1-vector",latex:"\\begin{bmatrix} a# \\end{bmatrix}",scale:70,buttonLatex:"\\begin{bmatrix} a \\end{bmatrix}"},{name:"1x2 matrix",latex:"\\begin{bmatrix} a# & b \\end{bmatrix}",scale:60,buttonLatex:"\\begin{bmatrix} a & b \\end{bmatrix}"},{name:"1x3 matrix",latex:"\\begin{bmatrix} a# & b & c \\end{bmatrix}",scale:38,buttonLatex:"\\begin{bmatrix} a & b & c \\end{bmatrix}"},{name:"2-vector",latex:"\\begin{bmatrix}\ra# \\\\\rb\r\\end{bmatrix}",scale:60,buttonLatex:"\\begin{bmatrix}\ra \\\\\rb\r\\end{bmatrix}"},{name:"2x2 matrix",latex:"\\begin{bmatrix}\ra# & b \\\\\rc & d\r\\end{bmatrix}",scale:60,buttonLatex:"\\begin{bmatrix}\ra & b \\\\\rc & d\r\\end{bmatrix}"},{name:"2x3 matrix",latex:"\\begin{bmatrix}\ra# & b & c \\\\\rd & e & f\r\\end{bmatrix}",scale:38,buttonLatex:"\\begin{bmatrix}\ra & b & c \\\\\rd & e & f\r\\end{bmatrix}"},{name:"3-vector",latex:"\\begin{bmatrix}\ra# \\\\\rb \\\\\rc\r\\end{bmatrix}",scale:40,buttonLatex:"\\begin{bmatrix}\ra \\\\\rb \\\\\rc\r\\end{bmatrix}"},{name:"3x2 matrix",latex:"\\begin{bmatrix}\ra# & b \\\\\rc & d \\\\\re & f\r\\end{bmatrix}",scale:40,buttonLatex:"\\begin{bmatrix}\ra & b \\\\\rc & d \\\\\re & f\r\\end{bmatrix}"},{name:"3x3 matrix",latex:"\\begin{bmatrix}\ra# & b & c \\\\\rd & e & f \\\\\rg & h & i\r\\end{bmatrix}",scale:38,buttonLatex:"\\begin{bmatrix}\r a & b & c \\\\\rd & e & f \\\\\rg & h & i\r\\end{bmatrix}"},{name:"1-vector round brackets",latex:"\\begin{pmatrix} a# \\end{pmatrix}",scale:70,buttonLatex:"\\begin{pmatrix} a \\end{pmatrix}"},{name:"2x2 matrix round brackets",latex:"\\begin{pmatrix}\ra# & b \\\\\rc & d\r\\end{pmatrix}",scale:55,buttonLatex:"\\begin{pmatrix}\ra & b \\\\\rc & d\r\\end{pmatrix}"},{name:"2x2 matrix curly brackets",latex:"\\begin{Bmatrix}\ra# & b \\\\\rc & d\r\\end{Bmatrix}",scale:55,buttonLatex:"\\begin{Bmatrix}\ra & b \\\\\rc & d\r\\end{Bmatrix}"}],S=[{name:"pounds",latex:"£",scale:100,buttonLatex:"£"},{name:"cents",latex:"¢",scale:100,buttonLatex:"¢"}],C={Common:["Squared","Power","Subscript","Over","Surd","Root","Nth root","Hat","Line","Ray","Line segment","Dot","dxdy","Partial dxdy","Integral a b","Sum a b","Product a b","Right arrow","Infinity","Limit x to infinity"],Operators:["Plus","Minus","Center dot","Times","Divide","Equals","Less than","Greater than","Not equal","Less than or equal","Greater than or equal","Plus or minus","Proportionate","Approximately","Implies"],Angles:["degree","theta","phi","pi","alpha","beta","gamma","delta","epsilon","Delta","angle","Parallel","Perpendicular","Similar","Congruent"],GreekLower:["alpha","beta","gamma","delta","epsilon","zeta","eta","theta","iota","kappa","lambda","mu","nu","xi","omicron","pi","rho","sigma","tau","upsilon","phi","varphi","chi","psi","omega"],GreekUpper:["Gamma","Delta","Theta","Lambda","Xi","Pi","Sigma","Phi","Psi","Omega","nabla"],Sets:["cup","cap","in","notin","emptyset","forall","exists","nexists","subset","subseteq","supset","supseteq","nsubset","nsubseteq","neg","Complex numbers","Natural numbers","Rational numbers","Real numbers","Integers"],Misc:["because","therefore","dots","cdots","ll","gg","leftarrow","leftrightarrow","Leftrightarrow","mapsto","bullet","circ","Box","bigcirc","bigtriangleup","bigtriangledown","heartsuit","diamondsuit","clubsuit","spadesuit"],Chemistry:["SubscriptN","SuperscriptN","Plus","Minus","_s","_g","_l","_aq","_e","_n","_p","_a","_em","_ep","_bm","_bp","gamma","_ga","Uranium symbol","Chemistry arrow"],Elements:["Type in Roman text","_Al","_Ar","_Be","_B","_C","_Ca","_Cl","_Co","_Cr","_Cu","_F","_Fe","_H","_He","_K","_Li","_Mg","_Mn","_N","_Na","_Ne","_Ni","_O","_P","_S","_Sc","_Si","_Ti","_Zn"],Physics1:["Squared","Power","Subscript","Over","Root","Nth root","Surd","Root a over b","Half","Third","Over root 2","Over root 3","sum","delta","Delta","Capacitor discharge","Radioactive decay","Attenuation of rays","Delta x over delta t","dxdt"],Physics2:["Plus","Minus","Plus or minus","Times","Equals","Approximately","Proportionate"],Physics3:["alpha","varepsilon","eta","gamma","lambda","omega","mu","nu","pi","rho","sigma","phi","Phi","theta","overline{v_e}","overline{v_\\mu}","Subscript zero","Subscript max","Subscript min","Subscript rms"],Expert:["langle","rangle","Double integral","Triple integral","Contour integral","Surface integral","Volume integral","Double dot","Widehat","Check","Tilde","Mathring","Right arrow with text","rightleftharpoons","Minus or plus"],Matrices:["1-vector","1x2 matrix","1x3 matrix","2-vector","2x2 matrix","2x3 matrix","3-vector","3x2 matrix","3x3 matrix","cdots","vdots","ddots","vec{a}","2x2 matrix round brackets","2x2 matrix curly brackets"]};function T(e){var t,n={name:e.name,latex:(t=e.latex,t.replace(/#/g,"")),latexWithMarks:e.latex},r=e.mathQuill;n.mathQuillLatex=null!=r?r:n.latex;var i=e.buttonLatex;n.buttonLatex=null!=i?i:n.latex;var a=e.scale;n.scale=null!=a?a:100;var o=e.moveCursor;n.moveCursor=null!=o?o:0;var s=e.typedText;n.typedText=null!=s&&s;var l=e.tooltip;if(null!=l){if(-1!==navigator.userAgent.indexOf("Mac OS X"))var u=String.fromCharCode(8997);else u="ALT";l=l.replace(/#/g,u),n.tooltip=l}else{var c=e.name,d=c.charAt(0);d=d.toUpperCase(),n.tooltip=d+c.substr(1)}return n}function E(e){for(var t={},n=0;n<e.length;n++){var r=T(e[n]);t[e[n].name]=r}return t}let q=null,M=null;function A(e){if(null===q&&(q=E(k),M=E(S)),e in q)return q[e];if(e in M)return M[e];if("_"===e.charAt(0)){if(e.charAt(1)>="A"&&e.charAt(1)<="Z")var t="\\mathrm{"+e.substring(1)+"}";return T({name:e,latex:t})}return T({name:e,latex:"\\"+e})}function N(e){return C[e]}function O(e){var t=A(e);return t?{latexWithMarks:t.latexWithMarks,mathQuillLatex:t.mathQuillLatex,moveCursor:t.moveCursor,typedText:t.typedText}:null}class D extends r.Component{shouldComponentUpdate(){return!!this.props.shouldUpdate&&this.props.shouldUpdate}constructor(e){super(e),this.suppliedClickHandler=null}static getButtonForDescendent(e){for(;e&&"button"!==e.tagName.toLowerCase();)e=e.parentNode;return e}static getSymbolName(e){var t=D.getButtonForDescendent(e);return t?t.getAttribute("name"):null}handleSymbolButtonMouseDown=e=>{e.preventDefault()};handleSymbolButtonClick=e=>{this.suppliedClickHandler(e),e.preventDefault()};render(){const{symbol:e,handleClick:t}=this.props;this.suppliedClickHandler=t;var n,i={fontSize:14*((n=A(e))?n.scale:null)/100+"px"};let a=function(e){var t=A(e);return t?t.html:null}(e);if(null==a){let t=function(e){var t=A(e);return t?t.buttonLatex:null}(e);a=o().renderToString(t);let n=a.indexOf('<span class="katex-mathml">'),r=-1;n>0&&(r=a.indexOf("</math></span>",n+30)),r>0&&(a=a.substring(0,n)+a.substring(r+14)),function(e,t){var n=A(e);if(!n)return!1;n.html=t}(e,a)}let s="SymbolButton";return this.props.highlight&&(s=s+" highlight-"+this.props.highlight),r.createElement("button",{name:e,className:s,style:i,onMouseDown:this.handleSymbolButtonMouseDown,onClick:this.handleSymbolButtonClick,ref:e=>{this.button=e}},r.createElement("div",{name:e,dangerouslySetInnerHTML:{__html:a}}))}}var z=n(539),L={};L.styleTagTransform=y(),L.setAttributes=m(),L.insert=p().bind(null,"head"),L.domAPI=d(),L.insertStyleElement=b(),u()(z.A,L),z.A&&z.A.locals&&z.A.locals;const I="_M_A_R_K_";(0,s.addStyles)();let _=[],R=["","",""];const B=["Common","More","Greek","Chemistry","Physics"],P=["Common","Operators","Angles","Misc","Sets","GreekLower","GreekUpper","Chemistry","Elements","Physics1","Physics2","Physics3"],j=["Common","More","Greek","Expert"],H=["Common","Operators","Angles","Misc","Sets","GreekLower","GreekUpper","Expert","Matrices"],F={Common:"Common",More:"Misc",Greek:"GreekLower",Chemistry:"Chemistry",Physics:"Physics1",Expert:"Expert"};let U=B[0];class Q extends r.Component{constructor(e){super(e),this.state={latex:e.latex,pretty:!1,selectedTab:U,recentSymbolsCount:0},this.mathQuill=null,this.handleInsertCallback=e.handleInsert,this.handleCancelCallback=e.handleCancel}handleInsert=()=>{this.handleInsertCallback(this.state.latex)};handleCancel=()=>{this.handleCancelCallback()};prettifyLatex(e){return e}handleChange=e=>{this.setState({latex:e.latex(),pretty:!1})};handleKeyDown=e=>{try{this.props.useExpertMode||"Enter"!==e.key||(this.handleInsertCallback(this.state.latex),e.preventDefault())}catch(e){console.error(e)}};updateRecentSymbols(e){let t=_,n=-1,r=-1,i=999999;for(let a=0;a<t.length;a++)t[a].name===e&&(n=a),t[a].count>0&&(t[a].count=.95*t[a].count),t[a].count<=i&&(i=t[a].count,r=a);n>=0?t[n].count=t[n].count+15:(t.length>=11&&t.splice(r,1),t.push({name:e,count:15})),_=t,R.pop(),R.unshift(e),this.setState({recentSymbolsCount:this.state.recentSymbolsCount+1})}handleInsertSymbol=e=>{this.props.useExpertMode?this.handleInsertSymbolKatex(e):this.handleInsertSymbolMathQuill(e)};isLetter=e=>"a"<=e&&e<="z"||"A"<=e&&e<="Z";movePosIfInsideTag(e,t){if(0===t||t===e.length)return t;let n=e.charAt(t);if(!this.isLetter(n))return t;let r=e.charAt(t-1);return this.isLetter(r)||"\\"===r?1===t?0:t===e.length-1?e.length:"\\"===e.charAt(t-1)?t-1:this.isLetter(e.charAt(t+1))?"\\"===e.charAt(t-2)?t-2:this.isLetter(e.charAt(t+2))?-1:t+2:t+1:t-1}handleInsertSymbolKatex=e=>{let t=null,n=-1,r=-1;try{if(this.updateRecentSymbols(e),t=this.latexInput.value,n=this.latexInput.selectionStart,r=this.latexInput.selectionEnd,n=this.movePosIfInsideTag(t,n),r=this.movePosIfInsideTag(t,r),-1===n||-1===r)return void console.log("Can't insert as cursor position or start or end of selection is inside a tag");this.latexInput.focus();let i=O(e).latexWithMarks,a=i.indexOf("##");a>=0&&(n!==r?(i=i.replace("##",t.substring(n,r)),t=t.substring(0,n)+t.substring(r),r=n):n>0?(i=i.replace("##",t.charAt(n-1)),t=t.substring(0,n-1)+t.substring(n),n-=1,r=n):i=i.replace("##","#")),n!==r&&(a=i.indexOf("#"),a>=0&&(i=i.replace("#",t.substring(n,r))),t=t.substring(0,n)+t.substring(r),r=n),i=i.replace("#",I),i=i.replaceAll("#",""),i=i.replace(I,"#");let o=t.substring(0,n)+i+I+t.substring(n),s=o.indexOf(I);o=o.substring(0,s)+o.substring(s+9),a=i.indexOf("#"),a>0&&(s=o.lastIndexOf("#",s),o=o.substring(0,s)+o.substring(s+1)),this.setState({latex:o},()=>{this.latexInput.selectionStart=s,this.latexInput.selectionEnd=s,this.latexInput.focus()})}catch(e){console.error(e)}};handleInsertSymbolMathQuill=e=>{try{this.updateRecentSymbols(e);let t=O(e);if(null==t)return console.err("Could not get latex insertion parameters for symbol: "+e),void this.mathQuill.focus();t.typedText?this.mathQuill.typedText(t.mathQuillLatex):this.mathQuill.write(t.mathQuillLatex),this.mathQuill.focus();for(let e=0;e<t.moveCursor;e++)this.mathQuill.keystroke("Right");for(let e=0;e>t.moveCursor;e--)this.mathQuill.keystroke("Left")}catch(t){console.error(t),console.log("Symbol: "+e)}};handleSelectTab=e=>{this.props.useExpertMode?this.latexInput.focus():this.mathQuill.focus(),U=e,this.setState({selectedTab:e},()=>{let t=this.symbolButtonAreasInnerContainer.childNodes;for(let n=0;n<t.length;n++)t[n].id===F[e]&&t[n].scrollIntoView({behavior:"smooth",inline:"start"})})};mathquillDidMount(e){this.mathQuill=e}componentDidMount(){this.equationEditorDiv.addEventListener("keydown",this.handleKeyDown);let e=this.symbolButtonAreasInnerContainer.childNodes;for(let t=0;t<e.length;t++)e[t].id===F[U]&&e[t].scrollIntoView({behavior:"auto",inline:"start"})}componentWillUnmount(){this.equationEditorDiv.removeEventListener("keydown",this.handleKeyDown)}isMobile(){return window.innerHeight>window.innerWidth&&window.innerHeight<820||window.innerHeight<500}isTouchDevice(){return"ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0}handleCursorLeft=()=>{this.mathQuill.keystroke("Left"),this.mathQuill.focus()};handleCursorRight=()=>{this.mathQuill.keystroke("Right"),this.mathQuill.focus()};handleLatexInputChange=e=>{this.setState({latex:e.target.value,pretty:!0})};renderLatexString=e=>{const t={children:"",displayMode:!1,output:"htmlAndMathml",leqno:!1,fleqn:!1,throwOnError:!1,errorColor:"#cc0000",macros:{},minRuleThickness:0,colorIsTextColor:!1,strict:"warn",trust:!1};try{return o().renderToString(e,t)}catch(t){return console.error("Could not convert latex string to html: ",e),"Error: Unable to render latex"}};render(){let e=null,t=null;this.props.useExpertMode&&(e=this.renderLatexString(this.state.latex),t=this.state.pretty?this.state.latex:this.prettifyLatex(this.state.latex));let n=B,i=P,a=null;this.props.useExpertMode&&(n=j,i=H,a=null);const o=_.slice(0,11).map((e,t)=>r.createElement(D,{className:"SymbolButton",key:"recent=symbol-"+t,symbol:e.name,shouldUpdate:!0,highlight:e.name===R[0]?"0":e.name===R[1]?"1":e.name===R[2]?"2":"none",handleClick:t=>this.handleInsertSymbol(e.name)}));if(null===a){let e=[];for(let t=0;t<i.length;t++)e[t]=Math.ceil(N(i[t]).length/5);a=e}const l=i.map((e,t)=>N(e).map((t,n)=>r.createElement(D,{className:"SymbolButton",key:e+"-symbol-"+n,highlight:e.toLowerCase(),symbol:t,handleClick:()=>this.handleInsertSymbol(t)})));return r.createElement("div",{className:"EquationEditor",ref:e=>this.equationEditorDiv=e},!this.props.useExpertMode&&r.createElement("div",{className:"editableAndCursorButtonsWrapper"},this.isTouchDevice()&&r.createElement("button",{className:"cursorButton",onClick:e=>this.handleCursorLeft()},"◁"),r.createElement("div",{ref:e=>this.editableWrapper=e,className:"editableWrapper"},r.createElement("div",{className:"centerBox"},r.createElement(s.EditableMathField,{className:"editable",latex:this.state.latex,placeholder:"Type equation ..",config:{autoOperatorNames:"sin cos tan sec cosec cot log ln lim min max"},mathquillDidMount:e=>this.mathquillDidMount(e),onChange:e=>this.handleChange(e)}),0===this.state.latex.length&&r.createElement("div",{className:"editable-placeholder"},"Type equation"))),this.isTouchDevice()&&r.createElement("button",{className:"cursorButton",onClick:e=>this.handleCursorRight()},"▷")),this.props.useExpertMode&&r.createElement("div",{className:"latexInputAreaWrapper"},r.createElement("textarea",{className:"latexInput",autoFocus:!0,placeholder:"Type latex",spellCheck:"false",ref:e=>this.latexInput=e,onChange:this.handleLatexInputChange,value:t}),r.createElement("div",{className:"katexRenderedInput",dangerouslySetInnerHTML:{__html:e}})),this.isMobile()&&r.createElement("button",{className:"cancelButton",type:"button",onClick:this.handleCancel},"Cancel"),r.createElement("button",{className:"insertButton",type:"button",onClick:this.handleInsert},"Insert"),!this.isMobile()&&r.createElement("div",{className:"recentSymbolsButtonArea"},_.length>0&&_.length<6&&r.createElement("span",{className:"recentSymbols-recentText-active"},"Recent:"),0===_.length&&r.createElement("span",{className:"recentSymbols-recentText-not-active"},"Recent:"),o),r.createElement("div",null,r.createElement("div",{className:"tabBar"},n.map((e,t)=>r.createElement("span",{key:"tabBar-"+e},this.state.selectedTab===e?r.createElement("span",{className:"tab-selected",selected:!0},e):r.createElement("span",{className:"tab",onClick:t=>this.handleSelectTab(e)},e)," "))),r.createElement("div",{className:"symbolButtonAreasOuterContainer"},r.createElement("div",{className:"symbolButtonAreasInnerContainer",ref:e=>this.symbolButtonAreasInnerContainer=e},l.map((e,t)=>r.createElement("div",{id:i[t],key:i[t],className:"symbolButtonArea symbolButtonArea-"+a[t]},e))))))}}var W=n(464),V={};V.styleTagTransform=y(),V.setAttributes=m(),V.insert=p().bind(null,"head"),V.domAPI=d(),V.insertStyleElement=b(),u()(W.A,V),W.A&&W.A.locals&&W.A.locals;let $=!1;class G extends r.Component{constructor(e){super(e),this.state={useExpertMode:$},this.handleCloseCallback=e.handleClose,this.handleInsertCallback=e.handleInsert}handleInsert=e=>{this.handleInsertCallback(e)};handleClose=()=>{this.handleCloseCallback()};componentDidMount(){setTimeout(()=>{this.focusEquationEditor()},100)}componentDidUpdate(e,t){t.useExpertMode!==this.state.useExpertMode&&setTimeout(()=>{this.focusEquationEditor()},100)}focusEquationEditor=()=>{console.log("🔍 Focusing equation editor..."),this.equationEditor?(console.log("🔍 EquationEditor ref found"),this.state.useExpertMode?(console.log("🔍 Expert mode - focusing latexInput"),this.equationEditor.latexInput?(this.equationEditor.latexInput.focus(),console.log("✅ LatexInput focused")):console.log("❌ LatexInput not found")):(console.log("🔍 Normal mode - focusing mathQuill"),this.equationEditor.mathQuill?(this.equationEditor.mathQuill.focus(),console.log("✅ MathQuill focused")):console.log("❌ MathQuill not found"))):console.log("❌ EquationEditor ref not found")};isMobile(){return window.innerHeight>window.innerWidth&&window.innerHeight<820||window.innerHeight<500}handleExpertModeSwitchChange(e){$=this.expertModeSwitch.checked,this.setState({useExpertMode:this.expertModeSwitch.checked})}render(){let e="EquationEditorModal";return this.isMobile()&&(e="EquationEditorModal-mobile"),r.createElement(r.Fragment,null,r.createElement("div",{className:"EquationEditorModal-background",onClick:this.handleClose}),r.createElement("div",{className:e,ref:e=>this.modalDiv=e},!this.isMobile()&&r.createElement("div",{className:"title"},"Equation Editor",r.createElement("div",{className:"expertModeSwitch"},"Expert mode",r.createElement("label",{className:"switch"},r.createElement("input",{type:"checkbox",ref:e=>this.expertModeSwitch=e,onChange:e=>this.handleExpertModeSwitchChange(e),checked:this.state.useExpertMode}),r.createElement("span",{className:"slider round"})))),r.createElement(Q,{ref:e=>this.equationEditor=e,latex:this.props.latex,useExpertMode:this.state.useExpertMode,handleInsert:this.handleInsert,handleCancel:this.handleClose})))}}var K=n(841),X={};X.styleTagTransform=y(),X.setAttributes=m(),X.insert=p().bind(null,"head"),X.domAPI=d(),X.insertStyleElement=b(),u()(K.A,X),K.A&&K.A.locals&&K.A.locals;const Y={a:["à","á","â","ä","æ","ã","å","ā"],c:["ç","ć","č"],e:["è","é","ê","ë","ē","ė","ę"],i:["î","ï","í","ī","į","ì"],l:["ł"],n:["ñ","ń"],o:["ô","ö","ò","ó","œ","ø","ō","õ"],s:["ß","ś","š"],u:["û","ü","ù","ú","ū"],y:["ÿ"],"?":["¿"],"!":["¡"],A:["À","Á","Â","Ä","Æ","Ã","Å","Ā"],C:["ç","ć","č"],E:["È","É","Ê","Ë","Ē","Ė","Ę"],I:["Î","Ï","Í","Ī","Į","Ì"],L:["Ł"],N:["Ñ","Ń"],O:["Ô","Ö","Ò","Ó","Œ","Ø","Ō","Õ"],S:["Ś","Š"],U:["Û","Ü","Ù","Ú","Ū"],Y:["Ÿ"]};let Z=[];function J(e,t){for(let n=0;n<t.length;n++)e.push(t.charAt(n));return e}function ee(e,t,n){for(let r=t;r<=n;r++)e.push(String.fromCharCode(r));return e}const te=function(){let e=[];return J(e,"ΓΔΘΛΞΠΣΦΨψΩ∇"),e}(),ne=function(){let e=[];return ee(e,945,969),e}(),re=function(){let e=[];return e.push("+","-","×","÷","=","▢","±","⋅","≠","≈","→","<",">","≤","≥","√","∛","∜","²","³","⁴","∞","π","°","∠"),e.push("〈","〉","⌈","⌉","⌊","⌋"),e}(),ie=function(){let e=[];return J(e,"ℑℜℂℕℙℚℝℤ"),e}(),ae=function(){let e=[];return e.push("½","⅓","⅔","¼","¾","⅕","⅖","⅗","⅘","⅙","⅚","⅐","⅛","⅜","⅝","⅞","⅑","⅒"),e}(),oe=function(){let e=[];return ee(e,8704,8959),e}(),se=function(){let e=[];return ee(e,8592,8703),e}(),le=function(){let e=[];return J(e,"$¢£€¥₹₤฿₴₭₺₪₦₱₽₩"),e}(),ue=function(){let e=[];return J(e,"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"),e}(),ce=function(){let e=[];return J(e,"0123456789⃝⃞"),e}(),de=function(){let e=[];return J(e,"!@#%^&*|"),e}(),he=function(){let e=[];return e.push("😀","😀","😁","😆","😅","😂","🤣","😊","😇","🙂","🙃","😉","😍","🥰","😘","😜","🤪","🤨","🤓","😎","🤩","🥳","🙁","🥺","😢","😭","😤","🤯","😳","🥶","😱","🤗","🤔","🤫","🤥","😶","😐","😴","🤐","🥴","🤠","😈","👹","👺","🤡","💩","👻","💀","☠️","👽","👾","🤖","🎃","😺","😸","😹","😻","😼","😽","🙀","😿","😾"),e}(),pe=function(){let e=[];return e.push("✍️","👏","🤝","👍","👎","🤞","👆","👇","✋","💪","🙏"),e.push("👂","👃","🧠","👁","👶","👧","👦","👩","👨","👳‍♂️","🧕","🙋‍♀️","🙋‍♂️","🙎‍♀️","🙎‍♂️","👩‍🎓","👨‍🎓","👩‍💻","👨‍💻","👩‍🏫","👨‍🏫"),e}(),fe=function(){let e=[];return e.push("🐶","🐱","🐭","🐹","🐰","🦊","🐻","🐼","🐨","🐯","🦁","🐮","🐷","🐽","🐸","🐵","🙈","🙉","🙊","🐔","🐧","🐦","🐤","🐣","🐥","🦆","🦅","🦉","🦇","🐺","🐗","🐴","🦄","🐝","🐛","🦋","🐌","🐞","🐜","🦟","🦗","🕷","🕸","🦂","🐢","🐍","🦎","🦖","🦕","🐙","🦑","🦐","🦞","🦀","🐡","🐠","🐟","🐬","🐳","🐋","🦈","🐊","🦍","🐘","🐅","🐆","🦓","🦛","🦏","🐪","🦒","🦘"),e}(),me=function(){let e=[];return e.push("🍄","🌹","🌸","🌼","🌻","🌞","🌙","🌎","⭐️","🌟","✨","🍏","🍎","🍐","🍊","🍋","🍌","🍉","🍇","🍓","🍈","🍒","🍑","🥭","🍍","🥥","🥝","🍅","🥚","🧀","🥖","🥐","🍔","🍟","🍕","🥪","🍦","🥧","🧁","🍰","🍭","🍬","🍫","🍿","🍩","🍪","🥤","🥛"),e}(),ge=function(){let e=[];return e.push("⚽️","🏀","🏈","⚾️","🥎","🎾","🏐","🏉","🥏","🎱","🏏","🏆","🥇","🥈","🥉","🏅","🎖","🎲","🎨","🎬","🎤","🎹","🎷"),e}(),be=function(){let e=[];return e.push("🚗","🚕","🚙","🚌","🏎","🚓","🚑","🚒","🚐","🚚","🚜","🛴","🚲","🛵","🏍","🚂","🚋","✈️","🛸","🚁","🛶","⛵️","🚤"),e}(),ve=function(){let e=[];return e.push("💰","💎","💣","🧨","⚗️","🔭","🔬","💉","🧬","🦠","🧫","🧪","🌡","🔑","🗝","🎁","🎈","📒","📗","📘","📙","📚","📖","📊","📈","🧮","❤️","🧡","💛","💚","💙","💜","🖤","⚪️","⚫️","🔴","🔵","🔺","🔻","🔸","🔹","🔶","🔷","♠️","♣️","♥️","♦️"),e}(),ye=["Accents","Greek","Math","Emoticons","More"];let xe=ye[0];class we extends r.Component{constructor(e){if(super(e),this.state={selectedTab:xe,top:-1,right:-1,shouldHorizontiallyAlign:!1},this.suppliedClickHandler=null,this.handleButtonClick=this.handleButtonClick.bind(this),this.letterForAccents=null,this.shouldUpdatePosition=!0,this.shouldUpdateReplaceCharacters=!0,this.isFullyMounted=!1,0===Z.length)for(let e in Y)Z.push(...Y[e])}handleButtonClick=(e,t,n=!1)=>{n?this.suppliedClickHandler(e,null,t):this.suppliedClickHandler(e,this.letterForAccents,t)};isInViewport=e=>{const t=e.getBoundingClientRect();return t.top>=0&&t.left>=0&&t.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&t.right<=(window.innerWidth||document.documentElement.clientWidth)};componentDidMount(){if(this.shouldUpdatePosition){let e=this.accentBar,t=e.parentNode;for(;null!==t&&!t.classList.contains("MathRichInput-Container");)t=t.parentNode;if(null===t)return void console.error("Could not find ancestor MathRichInput-Container find parent");const n=e.parentNode.getBoundingClientRect(),r=t.getBoundingClientRect(),i=e.getBoundingClientRect();this.shouldUpdatePosition=!1;let a=r.height+n.height+5;this.props.compactMode&&(a=r.height);let o=0,s=!1;i.width>r.width&&(s=!0,this.isInViewport(e)&&(o-=(i.width-r.width)/2)),this.setState({right:o,top:a,shouldHorizontiallyAlign:s})}else this.shouldUpdatePosition=!0}handleSelectTab=e=>{xe=e,this.setState({selectedTab:e})};componentDidUpdate=e=>{let t=this.props.keyPressed;if("Backspace"===t||"ArrowLeft"===t||"ArrowRight"===t)if(this.shouldUpdateReplaceCharacters){this.shouldUpdateReplaceCharacters=!1;let e=this.state;setTimeout(()=>{this.setState(e)},100)}else this.shouldUpdateReplaceCharacters=!0};render(){this.suppliedClickHandler=this.props.onButtonClick;let e=!1;null!==this.props.compactMode&&void 0!==this.props.compactMode&&(e=this.props.compactMode);let t=Z,n=this.props.keyPressed;this.isFullyMounted&&("Backspace"!==n&&"ArrowLeft"!==n&&"ArrowRight"!==n||this.shouldUpdateReplaceCharacters)||(n=this.props.fetchAccentLetter());let i=Y[n];this.letterForAccents=n,null==i&&(i=[]);let a=e?"AccentBar-compact":"AccentBar";this.props.className&&(a=a+" "+this.props.className);let o={...this.props.style};return-1===this.state.right&&-1===this.state.top||(this.props.compactMode&&!this.state.shouldHorizontiallyAlign||(o.right=this.state.right+"px"),o.top=this.state.top+"px"),r.createElement("div",{className:a,style:o,ref:e=>this.accentBar=e,onMouseDown:e=>e.preventDefault(),onMouseUp:e=>e.preventDefault(),onClick:e=>e.preventDefault()},e&&r.createElement(r.Fragment,null,i.map((e,t)=>r.createElement("button",{className:"AccentBar-button AB-narrow AB-compact",key:"accent-button-"+t,onMouseDown:e=>e.preventDefault(),onMouseUp:t=>this.handleButtonClick(t,e),onClick:e=>e.preventDefault()},e))),!e&&r.createElement("div",null,r.createElement("div",{className:"tabBar"},ye.map((e,t)=>r.createElement("span",{key:"tabBar-"+e},this.state.selectedTab===e?r.createElement("span",{className:"tab-selected",selected:!0},e):r.createElement("span",{className:"tab",onMouseDown:e=>e.preventDefault(),onMouseUp:e=>e.preventDefault(),onClick:t=>this.handleSelectTab(e)},e)," "))),r.createElement("div",{className:"AccentBar-outerContainer"},r.createElement("div",{className:"AccentBar-innerContainer"},"Accents"===this.state.selectedTab&&r.createElement("div",{className:"tabArea"},i.length>-1&&r.createElement("div",{className:"replace-section symbols-grid"},r.createElement("div",{className:"section-label"},"Replace"),0===i.length&&r.createElement("div",{className:"type-a-letter"},"Type a vowel to show replacements"),i.map((e,t)=>r.createElement("button",{className:"AccentBar-button AB-narrow",key:"accent-button-"+t,onMouseDown:e=>e.preventDefault(),onMouseUp:t=>this.handleButtonClick(t,e),onClick:e=>e.preventDefault()},e))),r.createElement("div",{className:"section-label"},"Insert"),r.createElement("div",{className:"symbols-grid insert-grid"},t.map((e,t)=>r.createElement("button",{className:"AccentBar-button AB-narrow",key:"accent-button-"+t,onMouseDown:e=>e.preventDefault(),onMouseUp:t=>this.handleButtonClick(t,e,!0),onClick:e=>e.preventDefault()},e)))),"Greek"===this.state.selectedTab&&r.createElement("div",{className:"tabArea"},r.createElement("div",{className:"section-label"},"Lower case"),r.createElement("div",{className:"symbols-grid insert-grid"},ne.map((e,t)=>r.createElement("button",{className:"AccentBar-button AB-narrow",key:"accent-button-"+t,onMouseDown:e=>e.preventDefault(),onMouseUp:t=>this.handleButtonClick(t,e,!0),onClick:e=>e.preventDefault()},e))),r.createElement("div",{className:"section-label"},"Capitals"),r.createElement("div",{className:"symbols-grid insert-grid"},te.map((e,t)=>r.createElement("button",{className:"AccentBar-button AB-narrow",key:"accent-button-"+t,onMouseDown:e=>e.preventDefault(),onMouseUp:t=>this.handleButtonClick(t,e,!0),onClick:e=>e.preventDefault()},e)))),"Math"===this.state.selectedTab&&r.createElement("div",{className:"tabArea"},r.createElement("div",{className:"section-label"},"Common"),r.createElement("div",{className:"symbols-grid insert-grid"},re.map((e,t)=>r.createElement("button",{className:"AccentBar-button AB-narrow",key:"accent-button-"+t,onMouseDown:e=>e.preventDefault(),onMouseUp:t=>this.handleButtonClick(t,e,!0),onClick:e=>e.preventDefault()},e))),r.createElement("div",{className:"section-label"},"Fractions"),r.createElement("div",{className:"symbols-grid insert-grid"},ae.map((e,t)=>r.createElement("button",{className:"AccentBar-button AB-narrow",key:"accent-button-"+t,onMouseDown:e=>e.preventDefault(),onMouseUp:t=>this.handleButtonClick(t,e,!0),onClick:e=>e.preventDefault()},e))),r.createElement("div",{className:"section-label"},"Letters"),r.createElement("div",{className:"symbols-grid insert-grid"},ie.map((e,t)=>r.createElement("button",{className:"AccentBar-button AB-narrow",key:"accent-button-"+t,onMouseDown:e=>e.preventDefault(),onMouseUp:t=>this.handleButtonClick(t,e,!0),onClick:e=>e.preventDefault()},e))),r.createElement("div",{className:"section-label"},"Advanced"),r.createElement("div",{className:"symbols-grid insert-grid"},oe.map((e,t)=>r.createElement("button",{className:"AccentBar-button AB-narrow",key:"accent-button-"+t,onMouseDown:e=>e.preventDefault(),onMouseUp:t=>this.handleButtonClick(t,e,!0),onClick:e=>e.preventDefault()},e))),r.createElement("div",{className:"section-label"},"Arrows"),r.createElement("div",{className:"symbols-grid insert-grid"},se.map((e,t)=>r.createElement("button",{className:"AccentBar-button AB-narrow",key:"accent-button-"+t,onMouseDown:e=>e.preventDefault(),onMouseUp:t=>this.handleButtonClick(t,e,!0),onClick:e=>e.preventDefault()},e)))),"Emoticons"===this.state.selectedTab&&r.createElement("div",{className:"tabArea"},r.createElement("div",{className:"section-label"},"Smileys"),r.createElement("div",{className:"symbols-grid insert-grid"},he.map((e,t)=>r.createElement("button",{className:"AccentBar-button AB-narrow",key:"accent-button-"+t,onMouseDown:e=>e.preventDefault(),onMouseUp:t=>this.handleButtonClick(t,e,!0),onClick:e=>e.preventDefault()},e))),r.createElement("div",{className:"section-label"},"People"),r.createElement("div",{className:"symbols-grid insert-grid"},pe.map((e,t)=>r.createElement("button",{className:"AccentBar-button AB-narrow",key:"accent-button-"+t,onMouseDown:e=>e.preventDefault(),onMouseUp:t=>this.handleButtonClick(t,e,!0),onClick:e=>e.preventDefault()},e))),r.createElement("div",{className:"section-label"},"Animals"),r.createElement("div",{className:"symbols-grid insert-grid"},fe.map((e,t)=>r.createElement("button",{className:"AccentBar-button AB-narrow",key:"accent-button-"+t,onMouseDown:e=>e.preventDefault(),onMouseUp:t=>this.handleButtonClick(t,e,!0),onClick:e=>e.preventDefault()},e))),r.createElement("div",{className:"section-label"},"Flowers and food"),r.createElement("div",{className:"symbols-grid insert-grid"},me.map((e,t)=>r.createElement("button",{className:"AccentBar-button AB-narrow",key:"accent-button-"+t,onMouseDown:e=>e.preventDefault(),onMouseUp:t=>this.handleButtonClick(t,e,!0),onClick:e=>e.preventDefault()},e))),r.createElement("div",{className:"section-label"},"Fun"),r.createElement("div",{className:"symbols-grid insert-grid"},ge.map((e,t)=>r.createElement("button",{className:"AccentBar-button AB-narrow",key:"accent-button-"+t,onMouseDown:e=>e.preventDefault(),onMouseUp:t=>this.handleButtonClick(t,e,!0),onClick:e=>e.preventDefault()},e))),r.createElement("div",{className:"section-label"},"Transport"),r.createElement("div",{className:"symbols-grid insert-grid"},be.map((e,t)=>r.createElement("button",{className:"AccentBar-button AB-narrow",key:"accent-button-"+t,onMouseDown:e=>e.preventDefault(),onMouseUp:t=>this.handleButtonClick(t,e,!0),onClick:e=>e.preventDefault()},e))),r.createElement("div",{className:"section-label"},"Miscellaneous"),r.createElement("div",{className:"symbols-grid insert-grid"},ve.map((e,t)=>r.createElement("button",{className:"AccentBar-button AB-narrow",key:"accent-button-"+t,onMouseDown:e=>e.preventDefault(),onMouseUp:t=>this.handleButtonClick(t,e,!0),onClick:e=>e.preventDefault()},e)))),"More"===this.state.selectedTab&&r.createElement("div",{className:"tabArea"},r.createElement("div",{className:"section-label"},"Symbols"),r.createElement("div",{className:"symbols-grid insert-grid"},de.map((e,t)=>r.createElement("button",{className:"AccentBar-button AB-narrow",key:"accent-button-"+t,onMouseDown:e=>e.preventDefault(),onMouseUp:t=>this.handleButtonClick(t,e,!0),onClick:e=>e.preventDefault()},e))),r.createElement("div",{className:"section-label"},"Currency"),r.createElement("div",{className:"symbols-grid insert-grid"},le.map((e,t)=>r.createElement("button",{className:"AccentBar-button AB-narrow",key:"accent-button-"+t,onMouseDown:e=>e.preventDefault(),onMouseUp:t=>this.handleButtonClick(t,e,!0),onClick:e=>e.preventDefault()},e))),r.createElement("div",{className:"section-label"},"Numbers"),r.createElement("div",{className:"symbols-grid insert-grid"},ce.map((e,t)=>r.createElement("button",{className:"AccentBar-button AB-narrow",key:"accent-button-"+t,onMouseDown:e=>e.preventDefault(),onMouseUp:t=>this.handleButtonClick(t,e,!0),onClick:e=>e.preventDefault()},e))),r.createElement("div",{className:"section-label"},"Letters"),r.createElement("div",{className:"symbols-grid insert-grid"},ue.map((e,t)=>r.createElement("button",{className:"AccentBar-button AB-narrow",key:"accent-button-"+t,onMouseDown:e=>e.preventDefault(),onMouseUp:t=>this.handleButtonClick(t,e,!0),onClick:e=>e.preventDefault()},e))))))))}}var ke=n(845),Se={};Se.styleTagTransform=y(),Se.setAttributes=m(),Se.insert=p().bind(null,"head"),Se.domAPI=d(),Se.insertStyleElement=b(),u()(ke.A,Se),ke.A&&ke.A.locals&&ke.A.locals;const Ce=/(Mac)/i.test(window.navigator.platform)?"⌘":"CTRL+";class Te extends r.Component{constructor(e){super(e),this.state={showAccents:!1,top:0,right:0,shouldHorizontiallyAlign:!1},this.handleButtonClick=this.handleButtonClick.bind(this),this.suppliedClickHandler=null,this.suppliedAccentLetterFetcher=null,this.suppliedAccentLetterReplacer=null,this.accentLetter=null,this.shouldUpdatePosition=!0}handleButtonClick=(e,t)=>{this.suppliedClickHandler(e,t)};showAccentBar=e=>{this.state.showAccents||(this.accentLetter=this.suppliedAccentLetterFetcher()),this.setState({showAccents:!0}),e.preventDefault()};hideAccentBar=e=>{this.setState({showAccents:!1})};showOrHideAccentBar=e=>{this.state.showAccents||(this.accentLetter=this.suppliedAccentLetterFetcher()),this.setState({showAccents:!this.state.showAccents})};handleButtonClick=(e,t)=>{this.suppliedClickHandler(e,t)};handleAccentButtonClick=(e,t,n)=>{this.suppliedAccentLetterInserter(e,t,n)};isInViewport=e=>{const t=e.getBoundingClientRect();return t.top>=0&&t.left>=0&&t.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&t.right<=(window.innerWidth||document.documentElement.clientWidth)};componentDidMount(){if(this.shouldUpdatePosition){let e=this.toolbar,t=e.parentNode;for(;null!==t&&!t.classList.contains("MathRichInput-Container");)t=t.parentNode;if(null===t)return void console.error("Could not find ancestor MathRichInput-Container find parent");let n=t.getBoundingClientRect(),r=e.getBoundingClientRect();this.shouldUpdatePosition=!1;let i=-1*(r.height+5+this.props.extraMargin),a=0,o=!1;r.width>n.width&&(o=!0,this.isInViewport(e)&&(a-=(r.width-n.width)/2)),this.setState({right:a,top:i,shouldHorizontiallyAlign:o})}else this.shouldUpdatePosition=!0}render(){this.suppliedClickHandler=this.props.onButtonClick,this.suppliedAccentLetterFetcher=this.props.fetchAccentLetter,this.suppliedAccentLetterInserter=this.props.insertAccentLetter;let e=this.props.enableFontStyling??!0,t=this.props.enableMath??!0,n=o().renderToString("f(x)"),i=n.indexOf('<span class="katex-mathml">'),a=-1;i>0&&(a=n.indexOf("</math></span>",i+30)),a>0&&(n=n.substring(0,i)+n.substring(a+14));let s={...this.props.style};return 0===this.state.right&&0===this.state.top||(this.props.compactMode&&!this.state.shouldHorizontiallyAlign||(s.right=this.state.right+"px"),s.top=this.state.top+"px"),r.createElement("div",{className:"Toolbar",style:s,ref:e=>this.toolbar=e},e&&r.createElement(r.Fragment,null,r.createElement("button",{name:"Bold",className:"Toolbar-button TB-narrow"+(this.props.activeButtons.bold?" TB-selected":""),onClick:e=>e.preventDefault(),onMouseDown:e=>e.preventDefault(),onMouseUp:e=>this.handleButtonClick(e,"Bold")},r.createElement("b",null,"B")),r.createElement("button",{name:"Italic",className:"Toolbar-button TB-narrow"+(this.props.activeButtons.italic?" TB-selected":""),onClick:e=>e.preventDefault(),onMouseDown:e=>e.preventDefault(),onMouseUp:e=>this.handleButtonClick(e,"Italic")},r.createElement("i",null,"I")),r.createElement("button",{name:"Underline",className:"Toolbar-button TB-narrow"+(this.props.activeButtons.underline?" TB-selected":""),onClick:e=>e.preventDefault(),onMouseDown:e=>e.preventDefault(),onMouseUp:e=>this.handleButtonClick(e,"Underline")},r.createElement("u",null,"U")),r.createElement("button",{name:"Superscript",className:"Toolbar-button TB-narrow"+(this.props.activeButtons.superscript?" TB-selected":""),onClick:e=>e.preventDefault(),onMouseDown:e=>e.preventDefault(),onMouseUp:e=>this.handleButtonClick(e,"Superscript")},"a",r.createElement("sup",null,"x")),r.createElement("button",{name:"Subscript",className:"Toolbar-button TB-narrow"+(this.props.activeButtons.subscript?" TB-selected":""),onClick:e=>e.preventDefault(),onMouseDown:e=>e.preventDefault(),onMouseUp:e=>this.handleButtonClick(e,"Subscript")},"a",r.createElement("sub",null,"x"))),r.createElement("button",{name:"Accents",className:"Toolbar-button TB-narrow"+(this.state.showAccents?" TB-selected":""),onMouseDown:e=>e.preventDefault(),onClick:e=>e.preventDefault(),onMouseUp:e=>this.showOrHideAccentBar(e)},"á"),t&&r.createElement("button",{name:"Equation",className:"Toolbar-button TB-wide",onMouseDown:e=>this.handleButtonClick(e,"Equation")},r.createElement("div",{dangerouslySetInnerHTML:{__html:n}}),r.createElement("span",{className:"tooltiptext"},"Insert equation [",Ce,"Enter]")),this.state.showAccents&&r.createElement(we,{accentLetter:this.accentLetter,keyPressed:this.props.keyPressed,fetchAccentLetter:this.props.fetchAccentLetter,onButtonClick:(e,t,n)=>this.handleAccentButtonClick(e,t,n)}))}}const Ee=/\$\$[\s\S]+?\$\$|\\\[[\s\S]+?\\\]|\\\([\s\S]+?\\\)|\$[^$\\]*(?:\\.[^$\\]*)*\$/g,qe=/\$\$[\s\S]+?\$\$|\\\[[\s\S]+?\\\]/g,Me=/\\[a-zA-Z]/g,Ae=/&(#36|quot|apos|lt|gt|amp|#44|#58|#124);/,Ne=/<(br|basefont|hr|input|source|frame|param|area|meta|!--|col|link|option|base|img|wbr|!DOCTYPE).*?>|<(a|abbr|acronym|address|applet|article|aside|audio|b|bdi|bdo|big|blockquote|body|button|canvas|caption|center|cite|code|colgroup|command|datalist|dd|del|details|dfn|dialog|dir|div|dl|dt|em|embed|fieldset|figcaption|figure|font|footer|form|frameset|head|header|hgroup|h1|h2|h3|h4|h5|h6|html|i|iframe|ins|kbd|keygen|label|legend|li|map|mark|menu|meter|nav|noframes|noscript|object|ol|optgroup|output|p|pre|progress|q|rp|rt|ruby|s|samp|script|section|select|small|span|strike|strong|style|sub|summary|sup|table|tbody|td|textarea|tfoot|th|thead|time|title|tr|track|tt|u|ul|var|video).*?<\/\2>/i,Oe=/<math>/i,De=/^[a-zA-Z]*[,."';:?!]*$/i;function ze(e){return"$"===e[0]&&"$"!==e[1]?e.slice(1,-1):e.slice(2,-2)}const Le="<math>",Ie="</math>",_e=/\$\$[\s\S]+?\$\$|\\\[[\s\S]+?\\\]|\\\([\s\S]+?\\\)|\$[^$\\]*(?:\\.[^$\\]*)*\$/g,Re=/\$\$[\s\S]+?\$\$|\\\[[\s\S]+?\\\]/g,Be=/<math>[\s\S]*?<\/math>/gi,Pe='<span class="base">',je=String.fromCharCode(0),He=new RegExp(je,"g"),Fe=String.fromCharCode(1),Ue=new RegExp(Fe,"g"),Qe=/\\\$/g,We=8203,Ve=String.fromCharCode(We),$e=new RegExp(Ve,"g"),Ge=new RegExp("<[p|P]>","g"),Ke="<p>"+Ve,Xe="text/plain";function Ye(e){return"katex"===e.className||"katex-error"===e.className}function Ze(e){return 3===e.nodeType}function Je(e){if(1!==e.nodeType)return!1;const t=e.tagName.toLowerCase();return"span"===t?!Ye(e):"b"===t||"strong"===t||"i"===t||"em"===t||"u"===t||"sup"===t||"sub"===t||"p"===t}function et(e){return void 0!==e.tagName&&"br"===e.tagName.toLowerCase()}function tt(e){return 3===e.nodeType&&e.nodeValue.length>=1&&e.nodeValue.charCodeAt(0)===We}function nt(e){return 3===e.nodeType&&1===e.nodeValue.length&&e.nodeValue.charCodeAt(0)===We}function rt(e,t=null){if(null===t&&(t={math:0,html:0,text:0}),null==e||void 0===e)return console.error("Node: "+e),t;if(Ye(e)?t.math++:Je(e)?t.html++:Ze(e)&&t.text++,Ye(e))return t;if(null===e.childNodes||void 0===e.childNodes)return t;for(let n=0;n<e.childNodes.length;n++)rt(e.childNodes[n],t);return t}function it(e){let t=function(e){return 3===e.nodeType?e.nodeValue:1===e.nodeType?(e=Nt(e)).nodeValue:(console.error("Trying to get length of node that is not text or BUI: "),console.log(e),null)}(e);return null==t?-1:t.length}function at(e){return e.replace(He,"")}function ot(e,t){let n=e.indexOf(je);return n<0?(console.warn("Can't replace character before mark. Start: "+n),e):e.substring(0,n)+t+e.substring(n)}function st(e,t){if(e.tagName===t)return e;if(null!==e.childNodes&&void 0!==e.childNodes)for(let n=0;n<e.childNodes.length;n++){let r=st(e.childNodes[n],t);if(null!==r)return r}return null}function lt(e){try{let t=st(e,"annotation");return t?t.childNodes&&0!==t.childNodes.length?t.childNodes[0]&&t.childNodes[0].nodeValue?t.childNodes[0].nodeValue:(console.warn("KaTeX annotation missing text content"),"error"):(console.warn("KaTeX annotation element has no child nodes"),"error"):(console.warn("KaTeX node missing annotation element"),"error")}catch(t){return console.error("Error extracting LaTeX from KaTeX node:",t),console.log("Problematic node:",e),"error"}}function ut(e){return(e=(e=(e=(e=(e=(e=(e=(e=e.replace(/&/g,"&amp;")).replace(/>/g,"&gt;")).replace(/</g,"&lt;")).replace(/'/g,"&apos;")).replace(/"/g,"&quot;")).replace(/\$/g,"&#36;")).replace(/,/g,"&#44;")).replace(/:/g,"&#58;")).replace(/\|/g,"&#124;")}var ct,dt,ht,pt=(ct=/&(#36|quot|apos|lt|gt|amp|#44|#58|#124);/g,dt={"#36":"$",quot:'"',apos:"'",lt:"<",gt:">",amp:"&","#44":",","#58":":","#124":"|"},ht=function(e,t){return dt[t]},function(e){return e.replace(ct,ht)});function ft(e){return e.replace(/\$/g,"\\$")}function mt(e){return e.replace(/\\\$/g,"$")}function gt(e,t,n){return t!==Xe?e:n?pt(e):mt(e)}function bt(e,t,n,r,i=!0){if(0===r)n&&(e.push(je),e.push(je)),e.push(t);else if(i){let i=pt(t);e.push(ut(i.substring(0,r))),n&&(e.push(je),e.push(je)),e.push(ut(i.substring(r)))}else{let i=mt(t);e.push(ft(i.substring(0,r))),n&&(e.push(je),e.push(je)),e.push(ft(i.substring(r)))}}function vt(e,t,n=null,r=0,i=!0){let a=!1;e===n&&(a=!0);try{if(Ze(e))bt(t,i?ut(e.nodeValue):ft(e.nodeValue),a,r,i);else if(Je(e)){i&&t.push("<"+e.nodeName+">");for(let a=0;a<e.childNodes.length;a++)vt(e.childNodes[a],t,n,r,i);i&&t.push("</"+e.nodeName+">")}else Ye(e)?(a&&t.push(je),t.push(i?Le:"\\["),t.push(lt(e)),t.push(i?Ie:"\\]"),a&&t.push(je)):et(e)?(a&&t.push(je),t.push("\n"),a&&t.push(je)):(console.error("Can't render node in editable div: Unknown node type"),console.log(e),console.log("Node.type:"+e.type),console.log("Node.tagName:"+e.tagName))}catch(t){console.error(t),console.log("Node: "),console.log(e),console.log("Node.type:"+e.type),console.log("Node.tagName:"+e.tagName)}}function yt(e,t=null,n=0,r=!0){if("<p><br></p>"===e.innerHTML||"<br>"===e.innerHTML||""===e.innerHTML)return"";let i=e.childNodes,a=[];if(null!=i&&0!==i.length||null===t)for(let e=0;e<i.length;e++)vt(i[e],a,t,n,r);else bt(a,"",!0,0);let o=a.join("");return o=o.replace($e,""),o}function xt(e,t,n=!0){let r=e.indexOf(je),i=e.indexOf(je,r+je.length);return e.substring(0,r)+(n?Le:"\\[")+t+(n?Ie:"\\]")+e.substring(i+je.length)}function wt(e){return"$"===e[0]&&"$"!==e[1]?e.slice(1,-1):e.slice(2,-2)}function kt(e){let t=e.indexOf(">"),n=e.lastIndexOf("<");return t<=0||n<=0?(console.error("Could not strip tag from string: "+e),e):e.substring(t+1,n)}function St(e){return e.match(Re)?"block":"inline"}function Ct(e,t,n){let r,i={children:"",displayMode:!1,output:"htmlAndMathml",leqno:!1,fleqn:!1,throwOnError:!1,errorColor:"#cc0000",macros:{},minRuleThickness:0,colorIsTextColor:!1,strict:"warn",trust:!1};try{r=e.renderToString(t,"block"===n?Object.assign({displayMode:!0},i):i)}catch(e){return console.error("couldn`t convert string",t),t}try{let e=r,t=e.indexOf(Pe);do{if(t=e.indexOf(Pe,t+19),t<0)break;let n=e.lastIndexOf("</span>",t);e=e.substring(0,n)+e.substring(t+19)}while(t>0);r=e}catch(e){console.log(e)}return r}function Tt(e,t,n){if(""===t)return"<p>"+Ve+"</p>";if(null!=n&&""!==n||(n=function(e){return Oe.test(e)}(r=t)?"application/x-zzish-html-math":function(e){return e=e.replace(/[\r\n]+/g," "),!!Ae.test(e)||!(e.indexOf("<")<0)&&Ne.test(e)}(r)?"text/html":function(e){let t=e.indexOf("$");if(t<0)return!1;if(e.indexOf("\\$")>=0)return!0;if(t=e.indexOf("$",t+1),t<0)return!1;let n=e.match(qe);if(null==n&&(n=e.match(Ee)),null==n||0===n.length)return!1;for(let e=0;e<n.length;e++)n[e]=ze(n[e]);t=e.indexOf("$");let r=!1;for(;t>=0;){if(t===e.length-1){r=!0;break}let n=e.charAt(t+1);if(n<"0"||n>"9"){r=!0;break}t=e.indexOf("$",t+1)}if(r){let e=!0;for(let t=0;t<n.length;t++)""!==n[t]&&(e=!1);if(e)return!1;for(let e=0;e<n.length;e++){let t=n[e].split(" ");if(t.length>=2){let e=!0,n=!1;for(let r=0;r<t.length;r++){if(t[r].length>0&&!1===De.test(t[r])){e=!1;break}t[r].length>=3&&(n=!0)}if(e&&n)return!1}}return!0}for(let e=0;e<n.length;e++)if(null!==n[e].match(Me))return!0;return!1}(r)?"application/x-tex":"text/plain"),n===Xe)return ut(t);var r;let i;"application/x-tex"===n||"application/x-latex"===n?i=!0:"text/html"===n||"application/x-zzish-html-math"===n?i=!1:(i=!1,console.error("Unknown mime type: "+n)),i&&(t=t.replace(Qe,Fe));const a=t.split(i?_e:Be);if(i)for(let e=0;e<a.length;e++)a[e]=a[e].replace(Ue,"$"),a[e]=ut(a[e]);else for(let e=0;e<a.length;e++)a[e]=a[e].replace(Ge,Ke);if(""===a[0]&&(a[0]="&#"+Ve.charCodeAt(0)),1===a.length)return a[0];const o=t.match(i?_e:Be),s=[];for(let t=0;t<a.length;t++)if(s.push(a[t]),o[t]){let n,r=o[t];i?(n=St(r),r=wt(r),r=r.replace(Ue,"\\$")):(n="inline",r=kt(r));let a=Ct(e,r,n);a=a+"&#"+Ve.charCodeAt(0),s.push(a)}return s.join("")}function Et(e,t,n=null){if(null===n){if(e===t)return 0;n={count:0}}else{if(Ye(e))return e===t||e.contains(t)?n.count:(n.count++,-1);if(et(e)){if(e===t)return n.count;{const t=e.nextSibling;return null!=t&&et(t)?(n.count++,-1):-1}}if(Ze(e)){if(e===t)return n.count;n.count++}}const r=e.childNodes;if(null==r)return-1;for(let e=0;e<r.length;e++){let i=Et(r[e],t,n);if(i>=0)return i}return-1}function qt(e,t,n=null){if(null===n){if(0===t&&function(e){return null===e.childNodes||void 0===e.childNodes||0===e.childNodes.length}(e))return e;n={count:0}}else{if(Ye(e))return t===n.count?e:(n.count++,null);if(et(e)){if(t===n.count)return e;{const t=e.nextSibling;return null!=t&&et(t)?(n.count++,null):null}}if(Ze(e)){if(t===n.count)return e;n.count++}}const r=e.childNodes;if(null==r)return null;for(let e=0;e<r.length;e++){let i=qt(r[e],t,n);if(null!==i)return i}return null}function Mt(e,t,n,r=null){if(null==r)throw error;if(e===t)return r.offset=r.offset+n,Ze(e)&&tt(e)&&n>0&&(r.offset=r.offset-1),!0;if(Ye(e))return!(e!==t&&!e.contains(t)&&(r.offset++,1));if(Ze(e))return r.offset+=e.nodeValue.length,tt(e)&&(r.offset-=1),!1;const i=e.childNodes;if(null==i)return!1;for(let e=0;e<i.length;e++)if(Mt(i[e],t,n,r))return!0;return 1===e.nodeType&&"P"===e.tagName&&r.offset++,!1}function At(e,t,n=null){if(Ye(e))return n.node=null,n.offset++,!1;if(Ze(e))return n.node=e,n.lastTextNode=e,n.offset+=e.nodeValue.length,tt(e)&&(n.offset-=1),!1;const r=e.childNodes;if(null==r)return!1;for(let e=0;e<r.length;e++){if(At(r[e],t,n))return!0;if(null!==n.node&&void 0!==n.node&&n.offset>=t)return n.offset=t-(n.offset-n.node.nodeValue.length),!0}return 1===e.nodeType&&"P"===e.tagName&&(n.node=null,n.offset++),!1}function Nt(e){if(Ze(e))return e;const t=e.childNodes;for(let e=0;e<t.length;e++){let n=Nt(t[e]);if(null!==n)return n}return null}function Ot(e,t){let n={offset:0};return At(e,t,n),null===n.node&&(t>0&&null!==n.lastTextNode?(n.node=n.lastTextNode,n.offset=n.lastTextNode.nodeValue.length):(console.warn("Unable to find node and offset for global offset: "+t),console.log(e.innerHTML),console.log(n),n.node=Nt(e),n.offset=0)),0===n.offset&&n.node.nodeValue.length>0&&tt(n.node)&&(n.offset=1),n.offset>n.node.nodeValue.length&&(console.warn("Unexpected offset when converting global offset to node and offset"),console.log("Global offset: "+t),console.log("Result:"),console.log(n),console.log("result.offset > result.node.nodeValue.length"),console.log("Node value: '"+n.node.nodeValue+"'"),console.log("Node value length: "+n.node.nodeValue.length),console.log("Calculated offset: "+n.offset),n.offset=n.node.nodeValue.length),n}function Dt(e){if(Ze(e))return document.createTextNode(e.nodeValue);if(Ye(e))return e.cloneNode(!0);if(1===e.nodeType&&"math"===e.tagName.toLowerCase())return e.cloneNode(!0);if("HEAD"===e.tagName||"STYLE"===e.tagName||"LINK"===e.tagName)return null;let t=null;if(t=Je(e)?document.createElement(e.tagName):1!==e.nodeType||"LI"!==e.tagName&&"DT"!==e.tagName&&"DD"!==e.tagName&&"THEAD"!==e.tagName&&"TR"!==e.tagName&&"H1"!==e.tagName&&"H2"!==e.tagName&&"H3"!==e.tagName&&"H4"!==e.tagName&&"H5"!==e.tagName&&"H6"!==e.tagName?document.createElement("span"):document.createElement("p"),e.hasChildNodes())for(let n=0;n<e.childNodes.length;n++){let r=Dt(e.childNodes[n]);null!==r&&t.appendChild(r),"TH"!==e.childNodes[n].tagName&&"TD"!==e.childNodes[n].tagName||t.appendChild(document.createTextNode(" "))}return t}const zt=new RegExp("<span>|</span>","g"),Lt='<span class="katex"';function It(e){e=e.replace(/<br[\s\S]*?>/gm,"");var t=document.createElement("div");t.innerHTML=e;let n=Dt(t).innerHTML,r=0,i=0,a=0,o=[];do{if(a++,i=n.indexOf(Lt,r),i<0){let e=n.substring(r,n.length);e=e.replace(zt,""),o.push(e);break}let e=n.substring(r,i);e=e.replace(zt,""),o.push(e);let t=n.indexOf("</span></span></span></span>",i)+28;t<0&&(console.warn("Unable to find closing katex tag"),t=n.length),o.push(n.substring(i,t)),r=t}while(i>0&&a<20);n=o.join(""),n=n.replace(/(\r\n|\r|\n)/gm,""),n=n.replace(/\s{2,}/gm," "),r=0,i=0,a=0,o=[];do{if(a++,i=n.indexOf("</p>",r),i<0){o.push(n.substring(r,n.length));break}if(i+=4,o.push(n.substring(r,i)),i===n.length)break;if(i+3>n.length){o.push("<p>"),o.push(n.substring(i,n.length)),o.push("</p>");break}let e=n.substring(i,i+3);if("<p>"===e){r=i;continue}if(i+19<n.length&&(e=n.substring(i,i+19),e===Lt)){r=i;continue}o.push("<p>");let t=n.indexOf("<p>",i);t<0&&(t=n.length),o.push(n.substring(i,t)),o.push("</p>"),r=t}while(i>0&&a<20);return n=o.join(""),n}function _t(e){return!e||/[\s\.,;:!?\-\(\)\[\]{}'"]/g.test(e)}function Rt(e,t,n){let r=t,i=e.length;if(1===n){for(;r<i&&!_t(e[r]);)r++;for(;r<i&&_t(e[r]);)r++}else{for(r>0&&r--;r>0&&_t(e[r]);)r--;for(;r>0&&!_t(e[r-1]);)r--}return Math.max(0,Math.min(r,i))}function Bt(e,t,n){let r=t,i=e.length;if(1===n)for(;r<i&&"\n"!==e[r];)r++;else for(;r>0&&"\n"!==e[r-1];)r--;return Math.max(0,Math.min(r,i))}function Pt(e){let t=yt(e,null,0,!1);return t=at(t),t=t.replace(/<[^>]*>/g,""),t=t.replace(/&nbsp;/g," "),t=t.replace(/&amp;/g,"&"),t=t.replace(/&lt;/g,"<"),t=t.replace(/&gt;/g,">"),t=t.replace(/&quot;/g,'"'),t=t.replace(/&#39;/g,"'"),t}function jt(e,t){let n=Pt(e);return Math.min(t,n.length)}function Ht(e,t){let n=Pt(e);return Math.min(t,n.length)}var Ft=n(248),Ut={};Ut.styleTagTransform=y(),Ut.setAttributes=m(),Ut.insert=p().bind(null,"head"),Ut.domAPI=d(),Ut.insertStyleElement=b(),u()(Ft.A,Ut),Ft.A&&Ft.A.locals&&Ft.A.locals;const Qt="text/plain",Wt=String.fromCharCode(8203),Vt=Wt.length,$t=je,Gt=(new RegExp($t,"g"),{useExpertMode:!1,selectedTab:null}),Kt={a:"á",e:"é",i:"í",n:"ń",o:"ó",u:"ú",y:"ý",A:"Á",E:"É",I:"Í",N:"Ń",O:"Ó",U:"Ú",Y:"Ý"},Xt={a:"â",e:"ê",i:"î",o:"ô",u:"û",A:"Â",E:"Ê",I:"Î",O:"Ô",U:"Û"},Yt={a:"å",A:"Å"},Zt={a:"æ",o:"œ",s:"ß",A:"Æ",O:"Œ",S:"ß"},Jt={"?":"¿","!":"¡","/":"¿",1:"¡"},en={"`":{a:"à",e:"è",i:"ì",o:"ò",u:"ù",d:"ð",A:"À",E:"È",I:"Ì",O:"Ò",U:"Ù",D:"Ð"},"'":Kt,'"':Kt,"^":Xt,6:Xt,"~":{a:"ã",n:"ñ",o:"õ",A:"Ã",N:"Ñ",O:"Õ"},":":{a:"ä",e:"ë",i:"ï",o:"ö",u:"ü",y:"ÿ",A:"Ä",E:"Ë",I:"Ï",O:"Ö",U:"Ü",Y:"Ÿ"},"@":Yt,2:Yt,"&":Zt,7:Zt,",":{c:"ç",C:"Ç"},"/":{o:"ø",O:"Ø"},"-":{a:"ā",e:"ē",i:"ī",o:"ō",u:"ū",A:"Ā",E:"Ē",I:"Ī",O:"Ō",U:"Ū"}};class tn extends r.Component{constructor(e){super(e),this.state={showEquationEditor:!1,equationEditorLatex:"",showAccentBar:!1,activeButtons:{bold:!1,italic:!1,underline:!1,subscript:!1,superscript:!1},keyPressed:""},this.keyPressed=null,this.keyPressStartTime=-1,this.translateToolbar="",this.isHtml=!1,this.hasMath=!1,this.markedRawText=null,this.oldRangeParams={startNodeIndex:0,startOffset:0,endNodeIndex:0,endOffset:0},this.moveCursorOnInsert=!1,this.afterComponentUpdateData=null,this.lastSetRangeParmas=null,this.lastSetActiveButtons=null,this.onChangeCallback=this.props.onChange,this.initialHistoryState=null,this.undoHistory=[],this.redoHistory=[],this.accent="",this.isComposing=!1,this.selectionAnchor=null}enableFontStyling(){return null===this.props.enableFontStyling||void 0===this.props.enableFontStyling||this.props.enableFontStyling}enableMultiline(){return null===this.props.enableMultiline||void 0===this.props.enableMultiline||this.props.enableMultiline}enableHtml(){return!this.props.outputTex}enableMath(){return null===this.props.enableMath||void 0===this.props.enableMath||this.props.enableMath}getMimeType(e,t){let n=this.props.outputTex??!1,r=this.props.outputPlainText??!1;return n?!n||!t&&r?Qt:"application/x-tex":t?"application/x-zzish-html-math":e||!r?"text/html":Qt}_countNodeTypes=()=>rt(this.editableDiv);applyChangesToComponent=(e,t,n,r,i)=>{null===n&&(n=this.lastSetRangeParams),this.afterComponentUpdateData={rangeParams:n,value:e};let a=this.props.options||Gt;null===r&&(r=a.isExpertMode),null===i&&(i=a.selectedTab),this.undoHistory.push({value:e,mimeType:t,rangeParams:n}),this.undoHistory.length>100&&this.undoHistory.shift(),this.onChangeCallback({value:e,mimeType:t},{isExpertMode:r,selectedTab:i})};initialiseHistory=()=>{null==this.initialHistoryState&&(this.initialHistoryState={value:this.props.value,mimeType:this.props.mimeType,rangeParams:this._getRangeParams()})};resetHistoryRedo=()=>{this.redoHistory=[]};deepEqual=(e,t)=>{if(e===t)return!0;if(null==e||null==t||"object"!=typeof e||"object"!=typeof t)return!1;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let i of n)if(!r.includes(i)||!this.deepEqual(e[i],t[i]))return!1;return!0};undo=()=>{const e=this.undoHistory.pop();let t=this.undoHistory.pop();if(null==t&&(t=this.initialHistoryState),this.redoHistory.length>0){let t=this.redoHistory[this.redoHistory.length-1];this.deepEqual(t,e)||this.redoHistory.push(e)}else this.redoHistory.push(e);this.applyChangesToComponent(t.value,t.mimeType,t.rangeParams)};redo=()=>{const e=this.redoHistory.pop();null!==e&void 0!==e&&this.applyChangesToComponent(e.value,e.mimeType,e.rangeParams)};setOldRangeParams(e){this.oldRangeParams=e}getOldRangeParams(){return null===this.oldRangeParams||void 0===this.oldRangeParams?null:{...this.oldRangeParams}}_getRangeParams(e=null){null===e&&(e=this.editableDiv);let t=function(e){if(void 0===window.getSelection)return console.error("Can't get range params, browser does not support window.getSelection"),null;const t=window.getSelection();if(0===t.rangeCount)return console.error("Can't get range params, window.getSelection did not return any ranges"),null;const n=t.getRangeAt(0);if(3!==n.startContainer.nodeType){let e=Nt(n.startContainer);if(null===e)return console.log("getRangeParams: Empty content detected, using default range params. Node type: "+n.startContainer.nodeName),{startNodeIndex:0,startOffset:0,endNodeIndex:0,endOffset:0,startGlobalOffset:0,endGlobalOffset:0};console.warn("Adjusting start pos in getRangeParams as container was of type: "+n.startContainer.nodeName),n.setStart(e,0)}if(3!==n.endContainer.nodeType){let e=Nt(n.endContainer);if(null===e)return console.log("getRangeParams: Empty content detected, using default range params. Node type: "+n.endContainer.nodeName),{startNodeIndex:0,startOffset:0,endNodeIndex:0,endOffset:0,startGlobalOffset:0,endGlobalOffset:0};console.warn("Adjusting end pos in getRangeParams as container was of type: "+n.endContainer.nodeName),n.setEnd(e,0)}let r=Et(e,n.startContainer),i=Et(e,n.endContainer),a={offset:0};Mt(e,n.startContainer,n.startOffset,a);let o={offset:0};return Mt(e,n.endContainer,n.endOffset,o),{startNodeIndex:r,startOffset:n.startOffset,endNodeIndex:i,endOffset:n.endOffset,startGlobalOffset:a.offset,endGlobalOffset:o.offset}}(e);return t}_setRangeParams=e=>{try{(function(e,t){let n=null;try{if(null==t)return void console.error("Can't set range params: params === "+t);if(null!==t.startGlobalOffset&&void 0!==t.startGlobalOffset)return void function(e,t){let n=null;try{if(null==t)throw new Error("Can't set range params: params === "+t);let r=Ot(e,t.startGlobalOffset),i=Ot(e,t.endGlobalOffset);if(null===r.node)return void console.warn("Can't set range, null start node returned");n=document.createRange(),n.setStart(r.node,r.offset),n.setEnd(i.node,i.offset);const a=window.getSelection();a.removeAllRanges(),a.addRange(n)}catch(t){console.error(t),console.log("Trying to set range:"),console.log(n),console.log(e.childNodes)}}(e,t);if(null===t.startNodeIndex||void 0===t.startNodeIndex)return void console.error("Can't set range params: params.startNodeIndex === "+t.startNodeIndex);if(t.startNodeIndex<0)return void console.error("Can't set range params: params.startNodeIndex < 0");let r=e.childNodes;if(0===t.startNodeIndex&&0===t.startOffset&&0===r.length)return;let i=t.startOffset,a=t.endOffset;0===t.startNodeIndex&&1===t.startOffset&&nt(r[0])&&(i=0),0===t.endNodeIndex&&1===t.endOffset&&nt(r[0])&&(a=0);let o=qt(e,t.startNodeIndex),s=qt(e,t.endNodeIndex);null===o&&(console.warn("Could not set range to start node with index "+t.startNodeIndex),o=Nt(e),i=0),Ze(o)||(console.warn("Start node found for range start is not a text a node"),console.log(e.childNodes),console.log(t),console.log(o)),null===s&&(console.warn("Could not set range to end node with index "+t.endNodeIndex),s=Nt(e),a=0),Ze(s)||(console.warn("End node found for range start is not a text a node"),console.log(e.childNodes),console.log(t),console.log(o)),n=document.createRange(),i>o.nodeValue.length&&(console.warn("endOffset > endNode.nodeValue.length when setting range: "+i+" > "+o.nodeValue.length+" - "+stateNode.nodeType+" - "+o.nodeValue),i=o.nodeValue.length),n.setStart(o,i),a>s.nodeValue.length&&(console.warn("endOffset > endNode.nodeValue.length when setting range: "+a+" > "+s.nodeValue.length+" - "+s.nodeType+" - "+s.nodeValue),a=s.nodeValue.length),n.setEnd(s,a);const l=window.getSelection();l.removeAllRanges(),l.addRange(n)}catch(t){console.error(t),console.log("Trying to set range:"),console.log(n),console.log(e.childNodes)}})(this.editableDiv,e),this.setOldRangeParams(e),this.lastSetRangeParmas=e}catch(e){console.error(e)}};_findNodeWithIndex(e){return qt(this.editableDiv,e)}_findIndexOfNode(e){return Et(this.editableDiv,e)}_findFirstTextNode(){return Nt(this.editableDiv)}handleKeyDownBackspace=e=>{let t=this._getRangeParams(),n=t.startNodeIndex,r=t.endNodeIndex,i=t.startOffset,a=t.endOffset;if(n<0)return;let o=this._findNodeWithIndex(n),s=this._findNodeWithIndex(r);(Ye(o)||Ye(s))&&(console.error("Backspace inside latex node. This shouln't happen."),e.preventDefault());let l=!1;if(0===n&&1===i&&0===r&&1===a&&(Ye(o)||1!==it(o)||(l=!0)),0===n&&0===i&&0!==r&&it(s)===a&&null===this._findNodeWithIndex(r+1)&&(l=!0),l){let t={startNodeIndex:0,startOffset:1,endNodeIndex:0,endOffset:1,startGlobalOffset:0,endGlobalOffset:0};return this.applyChangesToComponent("",this.getMimeType(!1,!1),t,this.props.useExpertMode,this.props.selectedTab),void e.preventDefault()}if(i>1)return;if(n<=0)return;if(n!==t.endNodeIndex||i!==t.endOffset)return;let u=this._findNodeWithIndex(n-1);if(!Ye(u))return void(this.nodeStartsWithSmallSpace(o)&&(this.removeNewLine(),e.preventDefault()));let c=u,d=0,h=0;if(2===n)this.inputStartsWithSmallSpace()?(d=0,h=0):(d=0,h=it(this._findFirstTextNode()));else{d=n-2;let e=this._findNodeWithIndex(d);Ye(e)&&(console.error("Two adjacent latex nodes. This should not happen!"),d=0,h=0),e=this._findNodeWithIndex(d),h=it(e),h<0&&(h=0)}let p={startNodeIndex:d,startOffset:h,endNodeIndex:d,endOffset:h};c.parentNode.removeChild(c);let f=yt(this.editableDiv,null,0,this.enableHtml()),m=this._countNodeTypes(),g=this.getMimeType(m.html>0,m.math>0);f=gt(f,g,this.enableHtml()),this.applyChangesToComponent(f,g,p,this.props.useExpertMode,this.props.selectedTab),e.preventDefault()};nodeStartsWithSmallSpace(e){return null!==e.nodeValue&&void 0!==e.nodeValue&&e.nodeValue.length>0&&e.nodeValue.charAt(0)===Wt}inputStartsWithSmallSpace=()=>nt(Nt(this.editableDiv));getPlatformModifiers=()=>({isMac:/(Mac)/i.test(window.navigator.platform),isWindows:/(Win)/i.test(window.navigator.platform)});isWordModifier=e=>{const{isMac:t}=this.getPlatformModifiers();return t?e.altKey:e.ctrlKey};isLineModifier=e=>{const{isMac:t}=this.getPlatformModifiers();return t?e.metaKey:e.ctrlKey};handleKeyDownArrowLeft=e=>{let t=this._getRangeParams(),n=t.startGlobalOffset!==t.endGlobalOffset;if(!e.shiftKey&&n){this.selectionAnchor=null;let n={startGlobalOffset:t.startGlobalOffset,endGlobalOffset:t.startGlobalOffset};return e.preventDefault(),void this._setRangeParams(n)}let r=n?t.startGlobalOffset:t.endGlobalOffset,i=r;if(this.isLineModifier(e)){let e=Bt(Pt(this.editableDiv),jt(this.editableDiv,r),-1);i=Ht(this.editableDiv,e)}else if(this.isWordModifier(e)){let e=Rt(Pt(this.editableDiv),jt(this.editableDiv,r),-1);i=Ht(this.editableDiv,e)}else i=Math.max(0,r-1);let a=null;e.shiftKey?(null===this.selectionAnchor&&(this.selectionAnchor=n?t.endGlobalOffset:r),a={startGlobalOffset:Math.min(this.selectionAnchor,i),endGlobalOffset:Math.max(this.selectionAnchor,i)}):(this.selectionAnchor=null,a={startGlobalOffset:i,endGlobalOffset:i}),e.preventDefault(),this._setRangeParams(a)};handleKeyDownArrowRight=e=>{let t=this._getRangeParams(),n=t.startGlobalOffset!==t.endGlobalOffset;if(!e.shiftKey&&n){this.selectionAnchor=null;let n={startGlobalOffset:t.endGlobalOffset,endGlobalOffset:t.endGlobalOffset};return e.preventDefault(),void this._setRangeParams(n)}let r=t.endGlobalOffset,i=r;if(this.isLineModifier(e)){let e=Bt(Pt(this.editableDiv),jt(this.editableDiv,r),1);i=Ht(this.editableDiv,e)}else if(this.isWordModifier(e)){let e=Rt(Pt(this.editableDiv),jt(this.editableDiv,r),1);i=Ht(this.editableDiv,e)}else i=r+1;let a=null;e.shiftKey?(null===this.selectionAnchor&&(this.selectionAnchor=n?t.startGlobalOffset:r),a={startGlobalOffset:Math.min(this.selectionAnchor,i),endGlobalOffset:Math.max(this.selectionAnchor,i)}):(this.selectionAnchor=null,a={startGlobalOffset:i,endGlobalOffset:i}),e.preventDefault(),this._setRangeParams(a)};handleKeyDownArrowUp=e=>{let t=this._getRangeParams(),n=t.startGlobalOffset!==t.endGlobalOffset;if(!e.shiftKey&&n){this.selectionAnchor=null;let n={startGlobalOffset:t.startGlobalOffset,endGlobalOffset:t.startGlobalOffset};return e.preventDefault(),void this._setRangeParams(n)}let r=n?t.startGlobalOffset:t.endGlobalOffset,i=r;if(this.isLineModifier(e))i=0;else{let e=Pt(this.editableDiv),t=jt(this.editableDiv,r),n=Bt(e,t,-1);if(0===n)i=0;else{let r=t-n,a=n-1,o=Bt(e,a,-1),s=a-o,l=Math.min(r,s);i=Ht(this.editableDiv,o+l)}}let a=null;e.shiftKey?(null===this.selectionAnchor&&(this.selectionAnchor=n?t.endGlobalOffset:r),a={startGlobalOffset:Math.min(this.selectionAnchor,i),endGlobalOffset:Math.max(this.selectionAnchor,i)}):(this.selectionAnchor=null,a={startGlobalOffset:i,endGlobalOffset:i}),e.preventDefault(),this._setRangeParams(a)};handleKeyDownArrowDown=e=>{let t=this._getRangeParams(),n=t.startGlobalOffset!==t.endGlobalOffset;if(!e.shiftKey&&n){this.selectionAnchor=null;let n={startGlobalOffset:t.endGlobalOffset,endGlobalOffset:t.endGlobalOffset};return e.preventDefault(),void this._setRangeParams(n)}let r=t.endGlobalOffset,i=r;if(this.isLineModifier(e)){let e=Pt(this.editableDiv);i=Ht(this.editableDiv,e.length)}else{let e=Pt(this.editableDiv),t=jt(this.editableDiv,r),n=Bt(e,t,-1),a=Bt(e,t,1);if(a>=e.length)i=Ht(this.editableDiv,e.length);else{let r=t-n,o=a+1,s=Bt(e,o,1)-o,l=Math.min(r,s);i=Ht(this.editableDiv,o+l)}}let a=null;e.shiftKey?(null===this.selectionAnchor&&(this.selectionAnchor=n?t.startGlobalOffset:r),a={startGlobalOffset:Math.min(this.selectionAnchor,i),endGlobalOffset:Math.max(this.selectionAnchor,i)}):(this.selectionAnchor=null,a={startGlobalOffset:i,endGlobalOffset:i}),e.preventDefault(),this._setRangeParams(a)};editableDivIsPlainText=()=>null===this.editableDiv.childNodes||0===this.editableDiv.childNodes.length;handleKeyDownDollar=e=>{try{let t=this._getRangeParams(),n=this._findNodeWithIndex(t.startNodeIndex);if(3!==n.nodeType)return;let r=n.nodeValue,i=r.indexOf("$");if(i<0)return;if(i>=t.startOffset)return;let a=t.startOffset,o=r.charAt(a-1),s=!1;if((o>="a"&&o<="z"||o>="A"&&o<="Z"||o>="0"&&o<="9"||")"===o||"}"===o)&&(s=!0),!s)return;let l=n.nodeValue.substring(i+1,a);n.nodeValue=n.nodeValue.substring(0,i)+$t+l+$t+n.nodeValue.substring(a);let u=yt(e.target,null,0,this.enableHtml());u=xt(u,l,this.enableHtml());let c={startNodeIndex:t.startNodeIndex+2,startOffset:Vt,endNodeIndex:t.startNodeIndex+2,endOffset:Vt},d=this._countNodeTypes(),h=this.getMimeType(d.html>0,!0);u=gt(u,h,this.enableHtml()),this.applyChangesToComponent(u,h,c,this.props.useExpertMode,this.props.selectedTab)}catch(e){console.error(e)}e.preventDefault()};showEquationEditorOnKeyDown=e=>{this.showEquationEditor(!0),e.preventDefault()};handleKeyDownEnter=e=>{try{this.enableMultiline()&&this.insertNewLine(e)}catch(e){console.error(e)}e.preventDefault()};handleKeyDownAccentHelper=e=>{let t="",n="";if(e.ctrlKey)e.shiftKey&&e.altKey?(console.log(e.key),Jt.hasOwnProperty(e.key)&&(n=Jt[e.key])):e.shiftKey&&"`"===e.key?t="~":en.hasOwnProperty(e.key)&&(t=e.key);else if(""!==this.accent){if("Shift"===e.key)return!1;if("CapsLock"===e.key)return!1;let t=en[this.accent];t.hasOwnProperty(e.key)&&(n=t[e.key])}return""!==t?(e.preventDefault(),this.accent=t,!0):(this.accent="",""!==n?(e.preventDefault(),this.insertRawText(n,!1),!0):void 0)};handleKeyDown=e=>{try{if(this.initialiseHistory(),("z"===e.key||"Z"===e.key)&&(e.ctrlKey||e.metaKey))return e.shiftKey?this.redo():this.undo(),void e.preventDefault();if(e.ctrlKey||e.metaKey||this.resetHistoryRedo(),(e.metaKey||e.ctrlKey)&&("b"===e.key||"i"===e.key||"u"===e.key||"6"===e.key||"^"===e.key||"-"===e.key||"_"===e.key||"+"===e.key||"="===e.key)&&this.enableFontStyling()&&("b"===e.key&&this.styleText(e,"Bold"),"i"===e.key&&this.styleText(e,"Italic"),"u"===e.key&&this.styleText(e,"Underline"),!/(Win)/i.test(window.navigator.platform)||!e.ctrlKey||"6"!==e.key&&"^"!==e.key))return"6"!==e.key&&"^"!==e.key&&"+"!==e.key&&"="!==e.key||this.styleText(e,"Superscript"),"-"!==e.key&&"_"!==e.key||this.styleText(e,"Subscript"),void e.preventDefault();if((e.metaKey||e.ctrlKey)&&"v"===e.key)return void document.execCommand("paste");if((e.metaKey||e.ctrlKey)&&"c"===e.key)return void document.execCommand("copy");if((e.metaKey||e.ctrlKey)&&"x"===e.key)return void document.execCommand("cut");if(/(Win)/i.test(window.navigator.platform)&&e.key===this.keyPressed&&this.keyPressStartTime>0&&1===e.key.length&&("a"<=e.key&&e.key<="z"||"A"<=e.key&&e.key<="Z"||"!"===e.key||"?"===e.key))return void e.preventDefault();if(e.altKey&&"Alt"===e.key){let t=this.fetchAccentLetter();return"a"===t||"e"===t||"i"===t||"o"===t||"u"===t||"c"===t||"l"===t||"n"===t||"s"===t||"?"===t||"!"===t?this.setState({showAccentBar:!this.state.showAccentBar}):this.setState({showAccentBar:!1}),void e.preventDefault()}if(this.keyPressed=e.key,this.setState({keyPressed:e.key}),this.keyPressStartTime<0&&(this.keyPressStartTime=Date.now(),this.state.showAccentBar&&this.setState({showAccentBar:!1})),"Backspace"===e.key)return void this.handleKeyDownBackspace(e);if("ArrowLeft"===e.key)return void this.handleKeyDownArrowLeft(e);if("ArrowRight"===e.key)return void this.handleKeyDownArrowRight(e);if("ArrowUp"===e.key)return void this.handleKeyDownArrowUp(e);if("ArrowDown"===e.key)return void this.handleKeyDownArrowDown(e);if("$"===e.key)return void this.handleKeyDownDollar(e);if((e.ctrlKey||e.metaKey)&&"Enter"===e.key)return void this.showEquationEditorOnKeyDown(e);if(/(Mac)/i.test(window.navigator.platform)){if(e.ctrlKey&&"="===e.key)return void this.showEquationEditorOnKeyDown(e)}else if(/(Win)/i.test(window.navigator.platform)&&e.altKey&&"="===e.key)return void this.showEquationEditorOnKeyDown(e);if("Enter"===e.key)return void this.handleKeyDownEnter(e);if(/(Win)/i.test(window.navigator.platform)){let t=e.key.toLowerCase();if("a"===t||"e"===t||"i"===t||"o"===t||"u"===t||"c"===t||"l"===t||"n"===t||"s"===t||"?"===t||"!"===t){let e=this;setTimeout(function(){e.keyPressStartTime>0&&Date.now()-e.keyPressStartTime>450&&e.setState({showAccentBar:!0})},500)}}let t=this._getRangeParams(),n=this._findNodeWithIndex(t.startNodeIndex),r=this._findNodeWithIndex(t.endNodeIndex);if(!this.editableDivIsPlainText()){if(-1===t.startNodeIndex)return void console.error("Couldn't get range params");if(Ye(n)||Ye(r))return console.error("User trying to edit inside latex node"),void e.preventDefault()}if(this.handleKeyDownAccentHelper(e))return;if(1===e.key.length&&0===t.startOffset&&this.nodeStartsWithSmallSpace(n))return this.insertAfterSmallSpace(e.key,t),void e.preventDefault()}catch(e){console.error(e)}};handleKeyUp=e=>{try{if(this.keyPressed=e.key,this.keyPressStartTime=-1,"ArrowRight"===e.key){let e=this._getRangeParams().startNodeIndex;if(e>=0&&Ye(this._findNodeWithIndex(e))){let t=0,n=0;null===this._findNodeWithIndex(e+1)?(t=e+1,n=Vt):(t=e-1,n=it(this._findNodeWithIndex(t)),n<0&&(console.error("Failed to get node text length"),n=0));let r={startNodeIndex:t,startOffset:n,endNodeIndex:t,endOffset:n};this._setRangeParams(r)}}if("ArrowLeft"===e.key){let e=this._getRangeParams().startNodeIndex;if(e>=0&&Ye(this._findNodeWithIndex(e))){let t=0,n=0;e-1>=0?(t=e-1,n=it(this._findNodeWithIndex(t)),n<0&&(console.error("Failed to get node text length"),n=0)):(t=e+1,n=Vt);let r={startNodeIndex:t,startOffset:n,endNodeIndex:t,endOffset:n};this._setRangeParams(r)}}this.updateActiveButtons()}catch(e){console.error(e)}};handleInput=e=>{try{if(this.isComposing)return;let e=yt(this.editableDiv,null,0,this.enableHtml());const t=this._getRangeParams();if(null==t){const e={startNodeIndex:0,startOffset:0,endNodeIndex:0,endOffset:0,startGlobalOffset:0,endGlobalOffset:0};let t=this._countNodeTypes(),n=this.getMimeType(t.html>0,t.math>0),r=yt(this.editableDiv,null,0,this.enableHtml());return r=gt(r,n,this.enableHtml()),void this.applyChangesToComponent(r,n,e,this.props.useExpertMode,this.props.selectedTab)}null===t.startNodeIndex||t.startNodeIndex;const n=/<math>/i.test(e);let r=this._countNodeTypes();const i=r.html>0||/<[^>]+>/i.test(e),a=n||r.math>0;let o=this.getMimeType(i,a);e=gt(e,o,this.enableHtml());const s=t||{startNodeIndex:0,startOffset:0,endNodeIndex:0,endOffset:0,startGlobalOffset:0,endGlobalOffset:0};this.applyChangesToComponent(e,o,s,this.props.useExpertMode,this.props.selectedTab)}catch(e){console.error(e)}};updateActiveButtons=()=>{try{let t=this._getRangeParams();if(null==t){let e={bold:!1,italic:!1,underline:!1,subscript:!1,superscript:!1};return this.lastSetActiveButtons=e,void this.setState({activeButtons:e})}if(t.startNodeIndex<0){let e={bold:!1,italic:!1,underline:!1,subscript:!1,superscript:!1};return this.lastSetActiveButtons=e,void this.setState({activeButtons:e})}let n=this._findNodeWithIndex(t.startNodeIndex),r=!1,i=!1,a=!1,o=!1,s=!1;do{if(1===n.nodeType){let e=n.nodeName.toLowerCase();"b"===e||"strong"===e?r=!0:"i"===e||"em"===e?i=!0:"u"===e?a=!0:"sub"===e?s=!0:"sup"===e&&(o=!0)}else if(null!==n.classList&&void 0!==n.classList&&n.classList.contains("MathRichInput"))break;n=n.parentNode}while(null!==n);let l={bold:r,italic:i,underline:a,subscript:s,superscript:o},u=!0;if(null!==this.lastSetActiveButtons)for(var e in u=!1,l)if(l[e]!==this.lastSetActiveButtons[e]){u=!0;break}u&&(this.lastSetActiveButtons=l,this.setState({activeButtons:l}))}catch(e){console.error(e)}};handleCopy=e=>{try{const t=window.getSelection();if(0===t.rangeCount)return;const n=t.getRangeAt(0),r=document.createElement("div");r.appendChild(n.cloneContents()),r.querySelectorAll(".katex").forEach(e=>{try{const t=lt(e);if(t&&"error"!==t){const n=document.createElement("span");n.setAttribute("data-latex",t),n.textContent=`<math>${t}</math>`,e.parentNode.replaceChild(n,e)}}catch(e){console.warn("Failed to extract LaTeX during copy:",e)}});const i=r.innerHTML,a=r.textContent;e.clipboardData&&(e.clipboardData.setData("text/html",i),e.clipboardData.setData("text/plain",a),e.preventDefault())}catch(e){console.error("Error during copy operation:",e)}};handlePaste=e=>{try{let t=e.clipboardData||window.clipboardData;if(!t)return;e.preventDefault();let n=t.getData("text/html"),r=t.getData("text/plain");const i=this._getRangeParams();if(!i)return void console.warn("Could not get range params for paste");this.setOldRangeParams(i);const a=window.getSelection();a.rangeCount>0&&a.deleteFromDocument();let o="",s=this.props.mimeType||"text/html",l=!1;if(n&&n.length>0){let e=n;e=e.replace(/<meta[^>]*>/gi,""),e=e.replace(/<style[^>]*>.*?<\/style>/gis,""),e=e.replace(/<script[^>]*>.*?<\/script>/gis,""),e=e.replace(/<!--.*?-->/gs,""),e=e.replace(/<span[^>]*data-latex="([^"]*)"[^>]*>.*?<\/span>/gi,"<math>$1</math>"),e=e.replace(/<span[^>]*class="katex"[^>]*>.*?<annotation[^>]*encoding="application\/x-tex"[^>]*>([^<]*)<\/annotation>.*?<\/span>/gi,"<math>$1</math>");let t=e;t=t.replace(/<(?!\/?(math)>)[^>]*>/gi,""),t=It(t);const r=/<math>/i.test(t),i=this.detectLatexPatterns(t);(r||i)&&this.enableMath()?(o=!r&&i?`<math>${t}</math>`:t,s="application/x-zzish-html-math",l=!0):(o=t,s="text/html")}else{if(!(r&&r.length>0))return;{const e=r.replace(/\n{3,}/g,"\n").trim();this.detectLatexPatterns(e)&&this.enableMath()?(o=`<math>${e}</math>`,s="application/x-zzish-html-math",l=!0):(o=e,s="text/plain")}}if(o){const e=this._findNodeWithIndex(i.startNodeIndex);let t=at(ot(yt(this.editableDiv,e,i.startOffset,this.enableHtml()),o));this.enableMath()&&(t=t.replace(/\\\[([^\]]*?)\\\]/g,"<math>$1</math>"));let n=null;if(l){const e=this.getOldRangeParams(),t=(o.match(/<math>/gi)||[]).length;n=""===this.props.value?{startNodeIndex:2*t,startOffset:Vt,endNodeIndex:2*t,endOffset:Vt}:{startNodeIndex:e.startNodeIndex+2*t,startOffset:Vt,endNodeIndex:e.startNodeIndex+2*t,endOffset:Vt}}else{const e=i.startGlobalOffset+o.length;n={startGlobalOffset:e,endGlobalOffset:e}}let r=s;r=/<math>/i.test(t)?"application/x-zzish-html-math":this.enableHtml()&&(/<[^>]+>/i.test(t)||"text/html"===r)?"text/html":"text/plain";const a=gt(t,r,this.enableHtml());this.applyChangesToComponent(a,r,n,this.props.useExpertMode,this.props.selectedTab)}}catch(e){return console.error("Error in paste handler:",e),!0}};componentDidMount(){try{(()=>{let e=document.getElementsByTagName("link");for(let t=0;t<e.length;t++)if("katex-css"===e[t].id)return;let t=document.createElement("link");t.id="katex-css",t.rel="stylesheet",t.href="https://cdn.jsdelivr.net/npm/katex@0.11.1/dist/katex.min.css",t.crossorigin="anonymous",document.head.appendChild(t),console.log("Added katex css to document head")})(),this.editableDiv.addEventListener("keydown",this.handleKeyDown),this.editableDiv.addEventListener("keyup",this.handleKeyUp),this.editableDiv.addEventListener("paste",this.handlePaste),this.editableDiv.addEventListener("copy",this.handleCopy),!0===this.props.autofocus&&this.editableDiv.focus()}catch(e){console.error(e)}}componentWillUnmount(){try{this.editableDiv.removeEventListener("keydown",this.handleKeyDown),this.editableDiv.removeEventListener("keyup",this.handleKeyUp),this.editableDiv.removeEventListener("paste",this.handlePaste),this.editableDiv.removeEventListener("copy",this.handleCopy)}catch(e){console.error(e)}}componentDidUpdate(){try{null!==this.afterComponentUpdateData&&void 0!==this.afterComponentUpdateData&&this.afterComponentUpdateData.value===this.props.value&&(this._setRangeParams(this.afterComponentUpdateData.rangeParams),this.afterComponentUpdateData=null,this.updateActiveButtons())}catch(e){console.error(e)}}showEquationEditor=(e=!1,t=null)=>{try{let n=this._getRangeParams();if(n.startNodeIndex<0)return console.error("Could not find position of cursor in node list"),this.setOldRangeParams({startNodeIndex:2,startOffset:1,endNodeIndex:2,endOffset:1}),this.markedRawText=$t+" "+$t,this.moveCursorOnInsert=e,void this.setState({showEquationEditor:!0,equationEditorLatex:""});let r="",i=0;null===t&&(t=this._findNodeWithIndex(n.startNodeIndex)),null==t&&(console.error("Could not find node with index: "+n.startNodeIndex),t=this._findFirstTextNode(),i=0),Ye(t)?(r=lt(t),i=0,this.editingExistingEquation=!0,this.editingNode=t):(r="",i=n.startOffset,this.editingExistingEquation=!1,this.editingNode=null),this.markedRawText=yt(this.editableDiv,t,i,this.enableHtml()),this.moveCursorOnInsert=e,this.setState({showEquationEditor:!0,equationEditorLatex:r})}catch(e){console.error(e)}};handleMouseDown=e=>{this.showEquationEditorOnMouseUp=!1;let t=null;try{t=e.target;let n=!1;do{if(Ye(t)){n=!0;break}t=t.parentNode}while(t!==this.editableDiv&&null!==t);if(!n)return;this.showEquationEditorOnMouseUp=!0,this.setOldRangeParams(this._getRangeParams())}catch(e){console.error(e),console.log(t)}};handleMouseUp=e=>{try{this.initialiseHistory(),this.selectionAnchor=null;let t=this._getRangeParams(),n=this._findNodeWithIndex(t.startNodeIndex),r=this._findNodeWithIndex(t.endNodeIndex);if(null===n||null===r)return void console.warn("Start or end node was null");if(t.startNodeIndex===t.endNodeIndex&&t.startOffset===t.endOffset&&this.showEquationEditorOnMouseUp)return this.editableDiv.focus(),void this.showEquationEditor(!1,n);let i=null;if(Ye(n))if(null===i&&(i={...t}),t.startNodeIndex===t.endNodeIndex&&t.startOffset===t.endOffset)i.startNodeIndex=t.startNodeIndex+1,i.startOffset=Vt;else{i.startNodeIndex=t.startNodeIndex-1;let e=this._findNodeWithIndex(t.startNodeIndex-1);i.startOffset=it(e)}if(Ye(r)&&(null===i&&(i={...t}),i.endNodeIndex=t.endNodeIndex+1,i.endOffset=Vt),null!==i)return this._setRangeParams(i),void e.preventDefault();this.updateActiveButtons()}catch(e){console.error(e)}};handleEquationEditorClose=()=>{try{this.setState({showEquationEditor:!1},()=>{this.editableDiv.focus()})}catch(e){console.error(e)}};handleEquationEditorInsert=e=>{try{let t=this.markedRawText.indexOf($t),n=this.markedRawText.indexOf($t,t+$t.length),r=this.getOldRangeParams();if(""===e){let e=this.markedRawText.substring(0,t)+this.markedRawText.substring(n+$t.length),i=-1,a=-1;if(this.editingExistingEquation){let e=this._findIndexOfNode(this.editingNode);r.startNodeIndex===e+1?(i=r.startNodeIndex-2,a=it(this._findNodeWithIndex(i))):r.startNodeIndex>e+1?(i=r.startNodeIndex-2,a=r.startOffset):(i=r.startNodeIndex,a=r.startOffset)}let o={startNodeIndex:i,startOffset:a,endNodeIndex:i,endOffset:a};this.setOldRangeParams(o);let s=this._countNodeTypes(),l=null;return l=this.editingExistingEquation?this.getMimeType(s.html>0,s.math>1):this.getMimeType(s.html>0,s.math>0),e=gt(e,l,this.enableHtml()),this.applyChangesToComponent(e,l,o,this.props.useExpertMode,this.props.selectedTab),void this.setState({showEquationEditor:!1})}let i=xt(this.markedRawText,e,this.enableHtml()),a=this.getOldRangeParams();if(this.moveCursorOnInsert)if(""===this.props.value)a={startNodeIndex:2,startOffset:Vt,endNodeIndex:2,endOffset:Vt};else{const e=[...i.matchAll(/<math>[^<]*<\/math>/gi)];if(e.length>0){const t=e[e.length-1],n=t.index+t[0].length;a={startGlobalOffset:n,endGlobalOffset:n}}}this.setOldRangeParams(a);let o=this._countNodeTypes(),s=this.getMimeType(o.html>0,!0);i=gt(i,s,this.enableHtml()),this.applyChangesToComponent(i,s,a,this.props.useExpertMode,this.props.selectedTab),this.setState({showEquationEditor:!1})}catch(e){console.error(e)}};styleText=(e,t)=>{try{t=t.toLowerCase();let e=!1;if("subscript"===t&&this.state.activeButtons.subscript||"superscript"===t&&this.state.activeButtons.superscript){const t=document.getSelection();let n=t.getRangeAt(0);n.endContainer===n.startContainer&&n.endOffset===n.startOffset&&(e=document.execCommand("insertText",!1," "),n.setEnd(n.endContainer,n.endOffset+1),t.removeAllRanges(),t.addRange(n)),e=document.execCommand("removeFormat",!1,null),this.state.activeButtons.bold&&(e=document.execCommand("bold",!1,null)),this.state.activeButtons.italic&&(e=document.execCommand("italic",!1,null)),this.state.activeButtons.underline&&(e=document.execCommand("underline",!1,null))}else{const n=document.getSelection();if(n&&n.rangeCount>0)if(n.getRangeAt(0).collapsed)if(this.state.activeButtons[t])e=document.execCommand(t,!1,null);else{let n;switch(t){case"bold":n="strong";break;case"italic":n="em";break;case"underline":n="u";break;case"subscript":n="sub";break;case"superscript":n="sup";break;default:n="span"}const r=`<${n}>​</${n}>`;e=document.execCommand("insertHTML",!1,r),setTimeout(()=>{const e=document.getSelection();if(e&&e.rangeCount>0){const t=e.getRangeAt(0),r=t.startContainer.parentElement;r&&r.tagName.toLowerCase()===n&&(t.setStart(r,0),t.setEnd(r,0),e.removeAllRanges(),e.addRange(t))}},0)}else e=document.execCommand(t,!1,null)}let n=this.state.activeButtons[t];if(null==n)return e;n=!n;let r={...this.state.activeButtons};return r[t]=n,this.setState({activeButtons:r}),e}catch(e){console.error(e)}};handleToolbarButtonClick=(e,t)=>{try{"Equation"===t&&this.showEquationEditor(!0);let n=t;this.styleText(e,n)||console.warn("execCommand returned false: "+n)}catch(e){console.error(e)}};fetchAccentLetter=e=>{try{let e=this._getRangeParams();if(null===e)return console.error("Cound not get range params"),null;let t=this._findNodeWithIndex(e.endNodeIndex),n=e.endOffset;return function(e){let t=e.indexOf(je);return t<1?(console.warn("Can't get character before mark. Start: "+t),null):e.charAt(t-1)}(yt(this.editableDiv,t,n,this.enableHtml()))}catch(e){console.error(e)}};insertRawText=(e,t=!1)=>{try{let n=this._getRangeParams(),r=this._findNodeWithIndex(n.endNodeIndex),i=n.endOffset,a=yt(this.editableDiv,r,i,this.enableHtml()),o=null,s={...n};o=at(ot(a,e)),t?(s.startNodeIndex=n.endNodeIndex,s.startOffset=n.endOffset,s.endNodeIndex=n.endNodeIndex,s.endOffset=n.endOffset+e.length,s.startGlobalOffset=n.endGlobalOffset,s.endGlobalOffset=n.endGlobalOffset+e.length):(s.startNodeIndex=n.endNodeIndex,s.startOffset=n.endOffset+e.length,s.endNodeIndex=n.endNodeIndex,s.endOffset=n.endOffset+e.length,s.startGlobalOffset=n.endGlobalOffset+e.length,s.endGlobalOffset=n.endGlobalOffset+e.length),o=gt(o,this.props.mimeType,this.enableHtml()),this.applyChangesToComponent(o,this.props.mimeType,s,this.props.useExpertMode,this.props.selectedTab)}catch(e){console.error(e)}};pasteHtmlAtCaret=(e,t)=>{var n,r;if(window.getSelection){if((n=window.getSelection()).getRangeAt&&n.rangeCount){(r=n.getRangeAt(0)).deleteContents();var i=document.createElement("div");i.innerHTML=e;for(var a,o,s=document.createDocumentFragment();a=i.firstChild;)o=s.appendChild(a);var l=s.firstChild;r.insertNode(s),o&&(r=r.cloneRange(),t?(r.setStartBefore(l),r.setEndAfter(o)):(r.setStartAfter(o),r.collapse(!0)),n.removeAllRanges(),n.addRange(r))}}else if((n=document.selection)&&"Control"!=n.type){var u=n.createRange();u.collapse(!0),n.createRange().pasteHTML(e),t&&((r=n.createRange()).setEndPoint("StartToStart",u),r.select())}};insertHtml=(e,t=!1)=>{try{this.pasteHtmlAtCaret(e,t);let n=null;try{n=this._getRangeParams()}catch(e){console.error(e)}(n.startNodeIndex<0||n.endNodeIndex<0)&&console.warn("Selection range params were not fetched correctly. Unable to set highlight inserted text."),n={startNodeIndex:0,startOffset:0,endNodeIndex:0,endOffset:0};let r=yt(this.editableDiv,null,-1,this.enableHtml()),i=this._countNodeTypes(),a=this.getMimeType(i.html>0,i.math>0);r=gt(r,a,this.enableHtml());try{let e=-1;do{if(e=r.indexOf("<P>",e+1),e>=0){let t=r.indexOf("<P>",e+1),n=r.indexOf("</P>",e+1);t>=0&&(n<0||n>t)&&(r=r.substring(0,t)+r.substring(t+3,r.length),e=-1)}}while(e>=0&&e<r.length-4);e=-1;do{if(e=r.indexOf("</P>",e+1),e>=0){let t=r.indexOf("</P>",e+1),n=r.indexOf("<P>",e+1);t>=0&&(n<0||n>t)&&(r=r.substring(0,e)+r.substring(e+4,r.length),e=-1)}}while(e>=0&&e<r.length-4)}catch(e){console.error(e)}this.applyChangesToComponent(r,a,n,this.props.useExpertMode,this.props.selectedTab)}catch(e){console.error(e)}};removeNewLine=()=>{try{let e=this._getRangeParams(),t=this._findNodeWithIndex(e.endNodeIndex),n=this._findNodeWithIndex(e.endNodeIndex-1),r=e.endOffset,i=yt(this.editableDiv,t,r,this.enableHtml()),a=null;a=at(function(e){let t=e.indexOf(je);return t<1?(console.warn("Can't replace character before mark. Start: "+t),e):e.substring(0,t-7)+""+e.substring(t)}(i));let o={...e},s=it(n);o.startNodeIndex=e.startNodeIndex-1,o.startOffset=s,o.endNodeIndex=e.endNodeIndex-1,o.endOffset=s,o.srartGlobalOffset--,o.endGlobalOffset--,a=gt(a,this.props.mimeType,this.enableHtml()),this.applyChangesToComponent(a,this.props.mimeType,o,this.props.useExpertMode,this.props.selectedTab)}catch(e){console.error(e)}};insertNewLine=()=>{try{let e=this._getRangeParams(),t=this._findNodeWithIndex(e.endNodeIndex),n=e.endOffset,r=yt(this.editableDiv,t,n,this.enableHtml()),i=null,a={...e};this.enableHtml()?(i=at(ot(r,"</p><p>")),"<p>"!==i.substring(0,3).toLowerCase()&&(i="<p>"+i+"</p>"),a.startNodeIndex=e.startNodeIndex+1,a.startOffset=0,a.endNodeIndex=e.endNodeIndex+1,a.endOffset=0,a.startGlobalOffset&&(a.startGlobalOffset++,a.endGlobalOffset++)):(i=at(ot(r,"\n")),a.startOffset++,a.endOffset++),i=gt(i,this.props.mimeType,this.enableHtml()),this.applyChangesToComponent(i,this.props.mimeType,a,this.props.useExpertMode,this.props.selectedTab)}catch(e){console.error(e)}};insertAfterSmallSpace(e,t){try{null==t&&(t=this._getRangeParams()),0!==t.startOffset&&console.warn("Unexpected startOffset "+t.startOffset+" in insertAfterSmallSpace");let n=this._findNodeWithIndex(t.startNodeIndex),r=at(ot(yt(this.editableDiv,n,1,this.enableHtml()),e)),i={startNodeIndex:t.startNodeIndex,startNodeOffset:1+e.length,endNodeIndex:t.startNodeIndex,endNodeOffset:1+e.length,startGlobalOffset:t.startGlobalOffset+e.length,endGlobalOffset:t.endGlobalOffset+e.length};r=gt(r,this.props.mimeType,this.enableHtml()),this.applyChangesToComponent(r,this.props.mimeType,i,this.props.useExpertMode,this.props.selectedTab)}catch(e){console.error(e)}}insertAccentLetter=(e,t,n)=>{try{let e=this._getRangeParams(),r=this._findNodeWithIndex(e.startNodeIndex),i=e.startOffset,a=yt(this.editableDiv,r,i,this.enableHtml()),o=null,s=null;null===t?(o=at(ot(a,n)),s={startNodeIndex:e.startNodeIndex,startOffset:e.startOffset+n.length,endNodeIndex:e.startNodeIndex,endOffset:e.startOffset+n.length,startGlobalOffset:e.startGlobalOffset+n.length,endGlobalOffset:e.startGlobalOffset+n.length}):(o=at(function(e,t){let n=e.indexOf(je);return n<1?(console.warn("Can't replace character before mark. Start: "+n),e):e.substring(0,n-1)+t+e.substring(n)}(a,n)),s={...e}),o=gt(o,this.props.mimeType,this.enableHtml()),this.applyChangesToComponent(o,this.props.mimeType,s,this.props.useExpertMode,this.props.selectedTab)}catch(e){console.error(e)}};handleAccentButtonClick=(e,t,n)=>{try{this.insertAccentLetter(e,t,n),this.setState({showAccentBar:!1})}catch(e){console.error(e)}};cleanupCorruptedKatexNodes=()=>{try{this.editableDiv.querySelectorAll(".katex, .katex-error").forEach(e=>{const t=e.querySelector('annotation[encoding="application/x-tex"]');if(!t||!t.textContent){console.warn("Removing corrupted KaTeX node:",e);const t=document.createTextNode("[Math Error]");e.parentNode.replaceChild(t,e)}})}catch(e){console.error("Error cleaning up corrupted KaTeX nodes:",e)}};focus=()=>{this.editableDiv.focus()};handleFocus=e=>{const{onFocus:t}=this.props;null!=t&&t();try{this._setRangeParams(this.getOldRangeParams()),this.setState({hasFocus:!0})}catch(e){console.error(e)}};handleBlur=e=>{const{onBlur:t}=this.props;null!=t&&t();try{this.setState({hasFocus:!1,showAccentBar:!1})}catch(e){console.error(e)}};handleCompositionStart=e=>{this.isComposing=!0};handleCompositionEnd=e=>{this.isComposing=!1};detectLatexPatterns=e=>{if(!this.enableMath()||!e||"string"!=typeof e)return!1;const t=[/\\begin\s*\{\s*(matrix|pmatrix|bmatrix|Bmatrix|vmatrix|Vmatrix|array)\s*\}[\s\S]*?\\end\s*\{\s*\1\s*\}/,/\\begin\s*\{\s*(cases|aligned|align|gather|split)\s*\}[\s\S]*?\\end\s*\{\s*\1\s*\}/,/\\frac\s*\{[^{}]*(?:\{[^{}]*\}[^{}]*)*\}\s*\{[^{}]*(?:\{[^{}]*\}[^{}]*)*\}/,/\\sqrt\s*(?:\[[^\]]*\])?\s*\{[^{}]*(?:\{[^{}]*\}[^{}]*)*\}/,/\\(text|textrm|textit|textbf|textsf|texttt|mathrm|mathit|mathbf|mathsf|mathtt|mathcal|mathscr|mathfrak|mathbb)\s*\{[^{}]*\}/,/\\(hat|check|breve|acute|grave|tilde|bar|vec|dot|ddot|widehat|widetilde|overline|underline|overbrace|underbrace)\s*\{[^{}]*\}/,/\\(mathbb|mathbf)\s*\{[NZQRCH]\}/,/\\(left|right|big|Big|bigg|Bigg)\s*[\(\)\[\]\\{\\}|\\.]/,/\\[lr](paren|brace|brack|vert|Vert|angle|langle|rangle|floor|ceil)/,/\\(alpha|beta|gamma|delta|epsilon|varepsilon|zeta|eta|theta|vartheta|iota|kappa|lambda|mu|nu|xi|omicron|pi|varpi|rho|varrho|sigma|varsigma|tau|upsilon|phi|varphi|chi|psi|omega|Gamma|Delta|Theta|Lambda|Xi|Pi|Sigma|Upsilon|Phi|Psi|Omega)\b/,/\\(sin|cos|tan|sec|csc|cot|sinh|cosh|tanh|sech|csch|coth|arcsin|arccos|arctan|arcsec|arccsc|arccot|log|ln|lg|exp|lim|limsup|liminf|sup|inf|max|min|arg|ker|deg|gcd|det|hom|dim)\b/,/\\(pm|mp|times|div|cdot|ast|star|circ|bullet|cap|cup|uplus|sqcap|sqcup|vee|wedge|setminus|wr|diamond|bigtriangleup|bigtriangledown|triangleleft|triangleright|lhd|rhd|unlhd|unrhd|oplus|ominus|otimes|oslash|odot|bigcirc|dagger|ddagger|amalg)\b/,/\\(leq|geq|equiv|models|prec|succ|sim|perp|preceq|succeq|simeq|mid|ll|gg|asymp|parallel|subset|supset|approx|bowtie|subseteq|supseteq|cong|smile|sqsubset|sqsupset|doteq|frown|sqsubseteq|sqsupseteq|propto|vdash|dashv|in|ni|notin)\b/,/\\(not|neq|ne|notin|nmid|nparallel|nleq|ngeq|nless|ngtr|nprec|nsucc|lneq|gneq|npreceq|nsucceq|precneqq|succneqq|lneqq|gneqq)\b/,/\\(leftarrow|gets|rightarrow|to|leftrightarrow|uparrow|downarrow|updownarrow|Leftarrow|Rightarrow|Leftrightarrow|Uparrow|Downarrow|Updownarrow|mapsto|longmapsto|hookleftarrow|hookrightarrow|leftharpoonup|leftharpoondown|rightharpoonup|rightharpoondown|rightleftharpoons|iff)\b/,/\\(int|iint|iiint|oint|sum|prod|coprod|bigcup|bigcap|bigsqcup|bigvee|bigwedge|bigodot|bigotimes|bigoplus|biguplus)\b/,/\\(quad|qquad|,|:|;|!|thinspace|medspace|thickspace|enspace|negspace)\b/,/\\(infty|partial|nabla|pm|mp|emptyset|varnothing|complement|forall|exists|nexists|in|notin|ni|Re|Im|wp|angle|measuredangle|sphericalangle|top|bot|vdash|models|vDash|Vdash|Vvdash|nvdash|nvDash|nVdash|nVDash)\b/,/\\(N|Z|Q|R|C|H)\b/,/\d+\\surd\d+/,/\\surd/,/\d+\^\d+/,/[a-zA-Z]\^\d+/,/[a-zA-Z]\^[\{\d+\}]/,/\d+_\d+/,/[a-zA-Z]_\d+/,/[a-zA-Z]_[\{\d+\}]/,/\d+\/\d+\s*[+\-*/]\s*\d+\/\d+/,/[xy]\^2\s*[+\-]\s*\d+[xy]\s*[+\-]\s*\d+/];for(let n=0;n<t.length;n++)if(t[n].test(e))return!0;return!1};render(){null==this.props.value&&(console.error('MathRichInput must have prop called "value"'),console.log(this.props));const e=Tt(o(),this.props.value||"",this.props.mimeType);let t="MathRichInput-Container";this.props.className&&(t=this.props.className+" "+t);let n=null;this.state.showAccentBar&&(n=this.fetchAccentLetter(null));let i=0;return this.props.className.includes("answer-edit-input")&&(i=20),r.createElement(r.Fragment,null,r.createElement("div",{className:t},r.createElement("div",{className:"MathRichInput-scrollview"},this.state.hasFocus&&r.createElement(Te,{className:"Toolbar",enableMath:this.enableMath(),enableFontStyling:this.enableFontStyling(),style:this.translateToolbar,keyPressed:this.state.keyPressed,activeButtons:this.state.activeButtons,onButtonClick:this.handleToolbarButtonClick,fetchAccentLetter:this.fetchAccentLetter,insertAccentLetter:this.insertAccentLetter,extraMargin:i}),this.state.showAccentBar&&r.createElement(we,{compactMode:!0,accentLetter:n,keyPressed:this.state.keyPressed,fetchAccentLetter:this.fetchAccentLetter,onButtonClick:(e,t,n)=>this.handleAccentButtonClick(e,t,n)}),r.createElement("span",{className:"MathRichInput",contentEditable:"true",ref:e=>this.editableDiv=e,onInput:this.handleInput,onMouseDown:this.handleMouseDown,onMouseUp:this.handleMouseUp,onFocus:this.handleFocus,onBlur:this.handleBlur,onCompositionStart:this.handleCompositionStart,onCompositionEnd:this.handleCompositionEnd,dangerouslySetInnerHTML:{__html:e},"data-placeholder":this.props.placeholder||""}))),this.state.showEquationEditor&&r.createElement(G,{ref:e=>this.equationEditorModal=e,handleClose:this.handleEquationEditorClose,handleInsert:this.handleEquationEditorInsert,latex:this.state.equationEditorLatex}))}}r.Component;let nn={isDragging:!1,activeElement:null,timeoutId:null,dragStartTime:0,maxDragDuration:2e3,disconnectedElements:new Set,reconnectionTimeouts:new Map,forceRenderQueue:new Set};class rn extends HTMLElement{constructor(){super(),this.root=null,this.renderTimeout=null,this.isRendering=!1,this.lastRenderTime=0,this.renderThrottleMs=16,this.isDuringDrag=!1,this.setupDragListeners()}connectedCallback(){this.handleReconnection(),this.detectDragOperation(),this.safeRender()}disconnectedCallback(){if(nn.disconnectedElements.add(this),this.renderTimeout&&(clearTimeout(this.renderTimeout),this.renderTimeout=null),this.isRendering=!1,this.isDuringDrag=!1,this.root)try{this.root.unmount()}catch(e){console.error("❌ MathRichInput: Error unmounting React root:",e)}finally{this.root=null}}static get observedAttributes(){return["value","placeholder","readonly","disabled","mimetype","outputtex"]}attributeChangedCallback(e,t,n){t!==n&&this.safeRender()}setupDragListeners(){nn.listenersSetup||(nn.listenersSetup=!0,document.addEventListener("sortableStart",()=>{nn.isDragging=!0,nn.dragStartTime=Date.now()}),document.addEventListener("sortableEnd",()=>{nn.isDragging=!1,nn.dragStartTime=0,setTimeout(()=>{rn.forceResetDragState()},1)}),new MutationObserver(e=>{e.forEach(e=>{if("attributes"===e.type&&"class"===e.attributeName){const t=e.target,n=t.classList.contains("sortable-ghost"),r=t.classList.contains("sortable-chosen");(n||r)&&(nn.isDragging||(nn.isDragging=!0,nn.dragStartTime=Date.now(),nn.activeElement=t))}})}).observe(document.body,{attributes:!0,subtree:!0,attributeFilter:["class"]}),setInterval(()=>{nn.isDragging&&nn.dragStartTime>0&&Date.now()-nn.dragStartTime>nn.maxDragDuration&&rn.forceResetDragState()},1e3))}static forceResetDragState(){nn.isDragging=!1,nn.dragStartTime=0,nn.activeElement=null,nn.timeoutId&&(clearTimeout(nn.timeoutId),nn.timeoutId=null),document.querySelectorAll("math-rich-input").forEach(e=>{e.isConnected&&(nn.forceRenderQueue.add(e),setTimeout(()=>{e.forceRender(),nn.forceRenderQueue.delete(e)},10))}),nn.disconnectedElements.clear(),nn.reconnectionTimeouts.forEach(e=>clearTimeout(e)),nn.reconnectionTimeouts.clear(),nn.forceRenderQueue.clear()}handleReconnection(){nn.disconnectedElements.delete(this),nn.reconnectionTimeouts.has(this)&&(clearTimeout(nn.reconnectionTimeouts.get(this)),nn.reconnectionTimeouts.delete(this)),nn.forceRenderQueue.add(this),setTimeout(()=>{this.isConnected&&(this.forceRender(),nn.forceRenderQueue.delete(this))},5)}detectDragOperation(){if(nn.isDragging)return void(this.isDuringDrag=!0);const e=this.classList.contains("sortable-ghost")||this.classList.contains("sortable-chosen")||this.classList.contains("sortable-drag"),t=this.parentElement&&(this.parentElement.classList.contains("sortable-ghost")||this.parentElement.classList.contains("sortable-chosen")||this.parentElement.classList.contains("sortable-drag"));this.isDuringDrag=e||t,this.isDuringDrag&&nn.isDragging}forceRender(){this.isRendering=!1,this.isDuringDrag=!1,this.renderTimeout&&(clearTimeout(this.renderTimeout),this.renderTimeout=null);try{this.render()}catch(e){console.error("❌ MathRichInput: Force render failed:",e),setTimeout(()=>{if(this.isConnected)try{this.render()}catch(e){console.error("❌ MathRichInput: Force render retry failed:",e)}},50)}}safeRender(){if(nn.forceRenderQueue.has(this))return void this.forceRender();if(this.isDuringDrag)return;const e=Date.now();if(e-this.lastRenderTime<this.renderThrottleMs)return this.renderTimeout&&clearTimeout(this.renderTimeout),void(this.renderTimeout=setTimeout(()=>{this.safeRender()},this.renderThrottleMs));if(!this.isRendering){this.lastRenderTime=e,this.isRendering=!0;try{this.render()}catch(e){console.error("❌ MathRichInput: Render error caught:",e),setTimeout(()=>{this.isDuringDrag||this.render()},100)}finally{this.isRendering=!1}}}render(){if(!nn.forceRenderQueue.has(this)){if(!this.isConnected)return;if(this.detectDragOperation(),this.isDuringDrag)return}try{const e=this.getAttribute("value")||"",t=this.getAttribute("placeholder")||"",n=this.hasAttribute("readonly"),a=this.hasAttribute("disabled"),o=this.getAttribute("mimetype")||"",s="false"!==this.getAttribute("outputtex")&&this.hasAttribute("outputtex");if(!this.querySelector(".math-rich-input-container")){const e=document.createElement("div");e.className="math-rich-input-container",this.appendChild(e)}const l=this.querySelector(".math-rich-input-container");if(!l)return void console.error("❌ MathRichInput: Container not found after creation");if(!this.root)try{this.root=(0,i.H)(l)}catch(e){return void console.error("❌ MathRichInput: Failed to create React root:",e)}if(!this.root)return void console.error("❌ MathRichInput: React root not available");this.root.render(r.createElement(tn,{value:e,placeholder:t,readOnly:n,disabled:a,mimeType:o,outputTex:s,className:this.className||"",onChange:(e,t)=>{try{const{value:t,mimeType:n}=e,r=this.getAttribute("value")||"",i=this.getAttribute("mimetype")||"";t!==r&&this.setAttribute("value",t),n!==i&&this.setAttribute("mimetype",n),this.dispatchEvent(new CustomEvent("change",{detail:{value:t,mimeType:n}}))}catch(e){console.error("❌ MathRichInput: onChange error:",e)}}}))}catch(e){throw console.error("❌ MathRichInput: Render failed:",e),e.message&&e.message.includes("409")&&setTimeout(()=>{!this.isDuringDrag&&this.isConnected&&this.render()},200),e}}}customElements.define("math-rich-input",rn);const an=rn;export{an as default};