summaryrefslogtreecommitdiff
path: root/static/mathjax.js
blob: 5ac06959d0d90205fc7c40bfa371f3fc81d7bca2 (plain)
1
!function(Q){var t={};function T(e){if(t[e])return t[e].exports;var r=t[e]={i:e,l:!1,exports:{}};return Q[e].call(r.exports,r,r.exports,T),r.l=!0,r.exports}T.m=Q,T.c=t,T.d=function(Q,t,e){T.o(Q,t)||Object.defineProperty(Q,t,{enumerable:!0,get:e})},T.r=function(Q){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(Q,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(Q,"__esModule",{value:!0})},T.t=function(Q,t){if(1&t&&(Q=T(Q)),8&t)return Q;if(4&t&&"object"==typeof Q&&Q&&Q.__esModule)return Q;var e=Object.create(null);if(T.r(e),Object.defineProperty(e,"default",{enumerable:!0,value:Q}),2&t&&"string"!=typeof Q)for(var r in Q)T.d(e,r,function(t){return Q[t]}.bind(null,r));return e},T.n=function(Q){var t=Q&&Q.__esModule?function(){return Q.default}:function(){return Q};return T.d(t,"a",t),t},T.o=function(Q,t){return Object.prototype.hasOwnProperty.call(Q,t)},T.p="",T(T.s=224)}([function(Q,t,T){"use strict";var e,r=this&&this.__extends||(e=function(Q,t){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Q,t){Q.__proto__=t}||function(Q,t){for(var T in t)t.hasOwnProperty(T)&&(Q[T]=t[T])})(Q,t)},function(Q,t){function T(){this.constructor=Q}e(Q,t),Q.prototype=null===t?Object.create(t):(T.prototype=t.prototype,new T)}),n=this&&this.__assign||function(){return(n=Object.assign||function(Q){for(var t,T=1,e=arguments.length;T<e;T++)for(var r in t=arguments[T])Object.prototype.hasOwnProperty.call(t,r)&&(Q[r]=t[r]);return Q}).apply(this,arguments)},i=this&&this.__values||function(Q){var t="function"==typeof Symbol&&Symbol.iterator,T=t&&Q[t],e=0;if(T)return T.call(Q);if(Q&&"number"==typeof Q.length)return{next:function(){return Q&&e>=Q.length&&(Q=void 0),{value:Q&&Q[e++],done:!Q}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},o=this&&this.__read||function(Q,t){var T="function"==typeof Symbol&&Q[Symbol.iterator];if(!T)return Q;var e,r,n=T.call(Q),i=[];try{for(;(void 0===t||t-- >0)&&!(e=n.next()).done;)i.push(e.value)}catch(Q){r={error:Q}}finally{try{e&&!e.done&&(T=n.return)&&T.call(n)}finally{if(r)throw r.error}}return i};Object.defineProperty(t,"__esModule",{value:!0}),t.XMLNode=t.TextNode=t.AbstractMmlEmptyNode=t.AbstractMmlBaseNode=t.AbstractMmlLayoutNode=t.AbstractMmlTokenNode=t.AbstractMmlNode=t.indentAttributes=t.TEXCLASSNAMES=t.TEXCLASS=void 0;var a=T(16),s=T(45);t.TEXCLASS={ORD:0,OP:1,BIN:2,REL:3,OPEN:4,CLOSE:5,PUNCT:6,INNER:7,VCENTER:8,NONE:-1},t.TEXCLASSNAMES=["ORD","OP","BIN","REL","OPEN","CLOSE","PUNCT","INNER","VCENTER"];var l=["","thinmathspace","mediummathspace","thickmathspace"],c=[[0,-1,2,3,0,0,0,1],[-1,-1,0,3,0,0,0,1],[2,2,0,0,2,0,0,2],[3,3,0,0,3,0,0,3],[0,0,0,0,0,0,0,0],[0,-1,2,3,0,0,0,1],[1,1,0,1,1,1,1,1],[1,-1,2,3,1,0,1,1]];t.indentAttributes=["indentalign","indentalignfirst","indentshift","indentshiftfirst"];var u=function(Q){function T(t,T,e){void 0===T&&(T={}),void 0===e&&(e=[]);var r=Q.call(this,t)||this;return r.texClass=null,r.prevClass=null,r.prevLevel=null,r.arity<0&&(r.childNodes=[t.create("inferredMrow")],r.childNodes[0].parent=r),r.setChildren(e),r.attributes=new a.Attributes(t.getNodeClass(r.kind).defaults,t.getNodeClass("math").defaults),r.attributes.setList(T),r}return r(T,Q),Object.defineProperty(T.prototype,"isToken",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"isEmbellished",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"isSpacelike",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"linebreakContainer",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"hasNewLine",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"arity",{get:function(){return 1/0},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"isInferred",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"Parent",{get:function(){for(var Q=this.parent;Q&&Q.notParent;)Q=Q.Parent;return Q},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"notParent",{get:function(){return!1},enumerable:!1,configurable:!0}),T.prototype.setChildren=function(t){return this.arity<0?this.childNodes[0].setChildren(t):Q.prototype.setChildren.call(this,t)},T.prototype.appendChild=function(t){return this.arity<0?(this.childNodes[0].appendChild(t),t):Q.prototype.appendChild.call(this,t)},T.prototype.replaceChild=function(t,T){return this.arity<0?(this.childNodes[0].replaceChild(t,T),t):Q.prototype.replaceChild.call(this,t,T)},T.prototype.core=function(){return this},T.prototype.coreMO=function(){return this},T.prototype.coreIndex=function(){return 0},T.prototype.childPosition=function(){for(var Q,t,T=this,e=T.parent;e&&e.notParent;)T=e,e=e.parent;if(e){var r=0;try{for(var n=i(e.childNodes),o=n.next();!o.done;o=n.next()){if(o.value===T)return r;r++}}catch(t){Q={error:t}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(Q)throw Q.error}}}return null},T.prototype.setTeXclass=function(Q){return this.getPrevClass(Q),null!=this.texClass?this:Q},T.prototype.updateTeXclass=function(Q){Q&&(this.prevClass=Q.prevClass,this.prevLevel=Q.prevLevel,Q.prevClass=Q.prevLevel=null,this.texClass=Q.texClass)},T.prototype.getPrevClass=function(Q){Q&&(this.prevClass=Q.texClass,this.prevLevel=Q.attributes.get("scriptlevel"))},T.prototype.texSpacing=function(){var Q=null!=this.prevClass?this.prevClass:t.TEXCLASS.NONE,T=this.texClass||t.TEXCLASS.ORD;if(Q===t.TEXCLASS.NONE||T===t.TEXCLASS.NONE)return"";Q===t.TEXCLASS.VCENTER&&(Q=t.TEXCLASS.ORD),T===t.TEXCLASS.VCENTER&&(T=t.TEXCLASS.ORD);var e=c[Q][T];return(this.prevLevel>0||this.attributes.get("scriptlevel")>0)&&e>=0?"":l[Math.abs(e)]},T.prototype.hasSpacingAttributes=function(){return this.isEmbellished&&this.coreMO().hasSpacingAttributes()},T.prototype.setInheritedAttributes=function(Q,t,e,r){var n,a;void 0===Q&&(Q={}),void 0===t&&(t=!1),void 0===e&&(e=0),void 0===r&&(r=!1);var s=this.attributes.getAllDefaults();try{for(var l=i(Object.keys(Q)),c=l.next();!c.done;c=l.next()){var u=c.value;if(s.hasOwnProperty(u)||T.alwaysInherit.hasOwnProperty(u)){var L=o(Q[u],2),h=L[0],p=L[1];((T.noInherit[h]||{})[this.kind]||{})[u]||this.attributes.setInherited(u,p)}}}catch(Q){n={error:Q}}finally{try{c&&!c.done&&(a=l.return)&&a.call(l)}finally{if(n)throw n.error}}void 0===this.attributes.getExplicit("displaystyle")&&this.attributes.setInherited("displaystyle",t),void 0===this.attributes.getExplicit("scriptlevel")&&this.attributes.setInherited("scriptlevel",e),r&&this.setProperty("texprimestyle",r);var f=this.arity;if(f>=0&&f!==1/0&&(1===f&&0===this.childNodes.length||1!==f&&this.childNodes.length!==f))if(f<this.childNodes.length)this.childNodes=this.childNodes.slice(0,f);else for(;this.childNodes.length<f;)this.appendChild(this.factory.create("mrow"));this.setChildInheritedAttributes(Q,t,e,r)},T.prototype.setChildInheritedAttributes=function(Q,t,T,e){var r,n;try{for(var o=i(this.childNodes),a=o.next();!a.done;a=o.next()){a.value.setInheritedAttributes(Q,t,T,e)}}catch(Q){r={error:Q}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}},T.prototype.addInheritedAttributes=function(Q,t){var T,e,r=n({},Q);try{for(var o=i(Object.keys(t)),a=o.next();!a.done;a=o.next()){var s=a.val