writefreely/static/js/mathjax/input/tex.js

1 line
156 KiB
JavaScript

!function(r){var n={};function a(t){if(n[t])return n[t].exports;var e=n[t]={i:t,l:!1,exports:{}};return r[t].call(e.exports,e,e.exports,a),e.l=!0,e.exports}a.m=r,a.c=n,a.d=function(t,e,r){a.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},a.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},a.t=function(e,t){if(1&t&&(e=a(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(a.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)a.d(r,n,function(t){return e[t]}.bind(null,n));return r},a.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return a.d(e,"a",e),e},a.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},a.p="",a(a.s=34)}([function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=(o.processString=function(t,e){for(var r=t.split(o.pattern),n=1,a=r.length;n<a;n+=2){var i=r[n].charAt(0);"0"<=i&&i<="9"?(r[n]=e[parseInt(r[n],10)-1],"number"==typeof r[n]&&(r[n]=r[n].toString())):"{"===i&&("0"<=(i=r[n].substr(1))&&i<="9"?(r[n]=e[parseInt(r[n].substr(1,r[n].length-2),10)-1],"number"==typeof r[n]&&(r[n]=r[n].toString())):r[n].match(/^\{([a-z]+):%(\d+)\|(.*)\}$/)&&(r[n]="%"+r[n])),null==r[n]&&(r[n]="???")}return r.join("")},o.pattern=/%(\d+|\{\d+\}|\{[a-z]+:\%\d+(?:\|(?:%\{\d+\}|%.|[^\}])*)+\}|.)/g,o);function o(t,e){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];this.id=t,this.message=o.processString(e,r)}e.default=n},function(t,e,r){"use strict";var u=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},n=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,a,i=r.call(t),o=[];try{for(;(void 0===e||0<e--)&&!(n=i.next()).done;)o.push(n.value)}catch(t){a={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(a)throw a.error}}return o},a=this&&this.__spread||function(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(n(arguments[e]));return t};Object.defineProperty(e,"__esModule",{value:!0});var i,o,l,s=r(6),c=r(41);function f(t,e){var r,n;try{for(var a=u(Object.keys(e)),i=a.next();!i.done;i=a.next()){var o=i.value,s=e[o];"texClass"===o?(t.texClass=s,t.setProperty(o,s)):"movablelimits"===o?(t.setProperty("movablelimits",s),(t.isKind("mo")||t.isKind("mstyle"))&&t.attributes.set("movablelimits",s)):"inferred"===o||(l.has(o)?t.setProperty(o,s):t.attributes.set(o,s))}}catch(t){r={error:t}}finally{try{i&&!i.done&&(n=a.return)&&n.call(a)}finally{if(r)throw r.error}}}function p(t,e,r){(t.childNodes[e]=r)&&(r.parent=t)}function h(t,e){return t.isKind(e)}o=i=i||{},l=new Map([["autoOP",!0],["fnOP",!0],["movesupsub",!0],["subsupOK",!0],["texprimestyle",!0],["useHeight",!0],["variantForm",!0],["withDelims",!0],["open",!0],["close",!0]]),o.createEntity=function(t){return String.fromCharCode(parseInt(t,16))},o.getChildren=function(t){return t.childNodes},o.getText=function(t){return t.getText()},o.appendChildren=function(t,e){var r,n;try{for(var a=u(e),i=a.next();!i.done;i=a.next()){var o=i.value;t.appendChild(o)}}catch(t){r={error:t}}finally{try{i&&!i.done&&(n=a.return)&&n.call(a)}finally{if(r)throw r.error}}},o.setAttribute=function(t,e,r){t.attributes.set(e,r)},o.setProperty=function(t,e,r){t.setProperty(e,r)},o.setProperties=f,o.getProperty=function(t,e){return t.getProperty(e)},o.getAttribute=function(t,e){return t.attributes.get(e)},o.removeProperties=function(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];t.removeProperty.apply(t,a(e))},o.getChildAt=function(t,e){return t.childNodes[e]},o.setChild=p,o.copyChildren=function(t,e){for(var r=t.childNodes,n=0;n<r.length;n++)p(e,n,r[n])},o.copyAttributes=function(t,e){e.attributes=t.attributes,f(e,t.getAllProperties())},o.isType=h,o.isEmbellished=function(t){return t.isEmbellished},o.getTexClass=function(t){return t.texClass},o.getCoreMO=function(t){return t.coreMO()},o.isNode=function(t){return t instanceof s.AbstractMmlNode||t instanceof s.AbstractMmlEmptyNode},o.isInferred=function(t){return t.isInferred},o.getForm=function(t){var e,r;if(!h(t,"mo"))return null;var n=t,a=n.getForms();try{for(var i=u(a),o=i.next();!o.done;o=i.next()){var s=o.value,l=c.MmlMo.OPTABLE[s][n.getText()];if(l)return l}}catch(t){e={error:t}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(e)throw e.error}}return null},e.default=i},function(t,e,r){"use strict";var u=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,a,i=r.call(t),o=[];try{for(;(void 0===e||0<e--)&&!(n=i.next()).done;)o.push(n.value)}catch(t){a={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(a)throw a.error}}return o},c=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0});var n,a,o,i,s,l,f,p=r(6),h=r(1),d=r(9),m=r(0),g=r(10);function y(t,e){void 0===e&&(e=!1);var r=t.match(e?f:l);return r?[r[1].replace(/,/,"."),r[4],r[0].length]:[null,null,0]}function v(t,e,r){"{"!==e&&"}"!==e||(e="\\"+e);var n="{\\bigg"+r+" "+e+"}",a="{\\big"+r+" "+e+"}";return new d.default("\\mathchoice"+n+a+a+a,{},t).mml()}function b(t,e,r){e=e.replace(/^\s+/,g.entities.nbsp).replace(/\s+$/,g.entities.nbsp);var n=t.create("text",e);return t.create("node","mtext",[],r,n)}function x(t,e,r){if(r.match(/^[a-z]/i)&&e.match(/(^|[^\\])(\\\\)*\\[a-z]+$/i)&&(e+=" "),e.length+r.length>t.configuration.options.maxBuffer)throw new m.default("MaxBufferSize","MathJax internal buffer size exceeded; is there a recursive macro call?");return e+r}function A(t,e){for(;0<e;)t=t.trim().slice(1,-1),e--;return t.trim()}function M(t,e){for(var r=t.length,n=0,a="",i=0,o=0,s=!0,l=!1;i<r;){var u=t[i++];switch(u){case" ":break;case"{":s?o++:(l=!1,n<o&&(o=n)),n++;break;case"}":n&&n--,(s||l)&&(o--,l=!0),s=!1;break;default:if(!n&&-1!==e.indexOf(u))return[l?"true":A(a,o),u,t.slice(i)];l=s=!1}a+=u}if(n)throw new m.default("ExtraOpenMissingClose","Extra open brace or missing close brace");return[l?"true":A(a,o),"",t.slice(i)]}r(21),a=n=n||{},o={em:function(t){return t},ex:function(t){return.43*t},pt:function(t){return t/10},pc:function(t){return 1.2*t},px:function(t){return 7.2*t/72},in:function(t){return 7.2*t},cm:function(t){return 7.2*t/2.54},mm:function(t){return 7.2*t/25.4},mu:function(t){return t/18}},i="([-+]?([.,]\\d+|\\d+([.,]\\d*)?))",s="(pt|em|ex|mu|px|mm|cm|in|pc)",l=RegExp("^\\s*"+i+"\\s*"+s+"\\s*$"),f=RegExp("^\\s*"+i+"\\s*"+s+" ?"),a.matchDimen=y,a.dimen2em=function(t){var e=u(y(t),3),r=e[0],n=e[1],a=(e[2],parseFloat(r||"1")),i=o[n];return i?i(a):0},a.Em=function(t){return Math.abs(t)<6e-4?"0em":t.toFixed(3).replace(/\.?0+$/,"")+"em"},a.fenced=function(t,e,r,n,a){void 0===a&&(a="");var i,o=t.nodeFactory,s=o.create("node","mrow",[],{open:e,close:n,texClass:p.TEXCLASS.INNER});if(a)i=new d.default("\\"+a+"l"+e,t.parser.stack.env,t).mml();else{var l=o.create("text",e);i=o.create("node","mo",[],{fence:!0,stretchy:!0,symmetric:!0,texClass:p.TEXCLASS.OPEN},l)}if(h.default.appendChildren(s,[i]),h.default.isType(r,"mrow")&&h.default.isInferred(r)?h.default.appendChildren(s,h.default.getChildren(r)):h.default.appendChildren(s,[r]),a)i=new d.default("\\"+a+"r"+n,t.parser.stack.env,t).mml();else{var u=o.create("text",n);i=o.create("node","mo",[],{fence:!0,stretchy:!0,symmetric:!0,texClass:p.TEXCLASS.CLOSE},u)}return h.default.appendChildren(s,[i]),s},a.fixedFence=function(t,e,r,n){var a=t.nodeFactory.create("node","mrow",[],{open:e,close:n,texClass:p.TEXCLASS.ORD});return e&&h.default.appendChildren(a,[v(t,e,"l")]),h.default.isType(r,"mrow")?h.default.appendChildren(a,h.default.getChildren(r)):h.default.appendChildren(a,[r]),n&&h.default.appendChildren(a,[v(t,n,"r")]),a},a.mathPalette=v,a.fixInitialMO=function(t,e){for(var r=0,n=e.length;r<n;r++){var a=e[r];if(a&&!h.default.isType(a,"mspace")&&(!h.default.isType(a,"TeXAtom")||h.default.getChildren(a)[0]&&h.default.getChildren(h.default.getChildren(a)[0]).length)){if(h.default.isEmbellished(a)){var i=t.nodeFactory.create("node","mi");e.unshift(i)}break}}},a.mi2mo=function(t,e){var r=t.create("node","mo");return h.default.copyChildren(e,r),h.default.copyAttributes(e,r),h.default.setProperties(r,{lspace:"0",rspace:"0"}),h.default.removeProperties(r,"movesupsub"),r},a.internalMath=function(t,e,r){var n,a,i=t.stack.env.font?{mathvariant:t.stack.env.font}:{},o=[],s=0,l=0,u="",c=0;if(e.match(/\\?[${}\\]|\\\(|\\(eq)?ref\s*\{/)){for(;s<e.length;)if("$"===(n=e.charAt(s++)))"$"===u&&0===c?(a=t.create("node","TeXAtom",[new d.default(e.slice(l,s-1),{},t.configuration).mml()]),o.push(a),u="",l=s):""===u&&(l<s-1&&o.push(b(t,e.slice(l,s-1),i)),u="$",l=s);else if("{"===n&&""!==u)c++;else if("}"===n)if("}"===u&&0===c){var f=new d.default(e.slice(l,s),{},t.configuration).mml();a=t.create("node","TeXAtom",[f],i),o.push(a),u="",l=s}else""!==u&&c&&c--;else if("\\"===n)if(""===u&&e.substr(s).match(/^(eq)?ref\s*\{/)){var p=RegExp["$&"].length;l<s-1&&o.push(b(t,e.slice(l,s-1),i)),u="}",l=s-1,s+=p}else"("===(n=e.charAt(s++))&&""===u?(l<s-2&&o.push(b(t,e.slice(l,s-2),i)),u=")",l=s):")"===n&&")"===u&&0===c?(a=t.create("node","TeXAtom",[new d.default(e.slice(l,s-2),{},t.configuration).mml()]),o.push(a),u="",l=s):n.match(/[${}\\]/)&&""===u&&(s--,e=e.substr(0,s-1)+e.substr(s));if(""!==u)throw new m.default("MathNotTerminated","Math not terminated in text box")}return l<e.length&&o.push(b(t,e.slice(l),i)),null!=r?o=[t.create("node","mstyle",o,{displaystyle:!1,scriptlevel:r})]:1<o.length&&(o=[t.create("node","mrow",o)]),o},a.trimSpaces=function(t){if("string"!=typeof t)return t;var e=t.trim();return e.match(/\\$/)&&t.match(/ $/)&&(e+=" "),e},a.setArrayAlign=function(t,e){return"t"===(e=a.trimSpaces(e||""))?t.arraydef.align="baseline 1":"b"===e?t.arraydef.align="baseline -1":"c"===e?t.arraydef.align="center":e&&(t.arraydef.align=e),t},a.substituteArgs=function(t,e,r){for(var n="",a="",i=0;i<r.length;){var o=r.charAt(i++);if("\\"===o)n+=o+r.charAt(i++);else if("#"===o)if("#"===(o=r.charAt(i++)))n+=o;else{if(!o.match(/[1-9]/)||parseInt(o,10)>e.length)throw new m.default("IllegalMacroParam","Illegal macro parameter reference");a=x(t,x(t,a,n),e[parseInt(o,10)-1]),n=""}else n+=o}return x(t,a,n)},a.addArgs=x,a.checkEqnEnv=function(t){if(t.stack.global.eqnenv)throw new m.default("ErroneousNestingEq","Erroneous nesting of equation structures");t.stack.global.eqnenv=!0},a.MmlFilterAttribute=function(t,e,r){return r},a.getFontDef=function(t){var e=t.stack.env.font;return e?{mathvariant:e}:{}},a.keyvalOptions=function(t,e,r){var n,a;void 0===e&&(e=null),void 0===r&&(r=!1);var i=function(t){for(var e,r,n,a,i,o={},s=t;s;)e=u(M(s,["=",","]),3),a=e[0],n=e[1],s=e[2],"="===n?(r=u(M(s,[","]),3),i=r[0],n=r[1],s=r[2],i="false"===i||"true"===i?JSON.parse(i):i,o[a]=i):a&&(o[a]=!0);return o}(t);if(e)try{for(var o=c(Object.keys(i)),s=o.next();!s.done;s=o.next()){var l=s.value;if(!e.hasOwnProperty(l)){if(r)throw new m.default("InvalidOption","Invalid optional argument: %1",l);delete i[l]}}}catch(t){n={error:t}}finally{try{s&&!s.done&&(a=o.return)&&a.call(o)}finally{if(n)throw n.error}}return i},e.default=n},function(t,e,r){"use strict";var n,a,i,u=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},c=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,a,i=r.call(t),o=[];try{for(;(void 0===e||0<e--)&&!(n=i.next()).done;)o.push(n.value)}catch(t){a={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(a)throw a.error}}return o};Object.defineProperty(e,"__esModule",{value:!0}),a=n=e.MapHandler||(e.MapHandler={}),i=new Map,a.register=function(t){i.set(t.name,t)},a.getMap=function(t){return i.get(t)},e.ExtensionMaps={NEW_MACRO:"new-Macro",NEW_DELIMITER:"new-Delimiter",NEW_COMMAND:"new-Command",NEW_ENVIRONMENT:"new-Environment"};var s=(o.prototype.add=function(t){var e=n.getMap(t);e?this._configuration.push(e):this.warn("Configuration "+t+" not found! Omitted.")},o.prototype.parse=function(t){var e,r;try{for(var n=u(this._configuration),a=n.next();!a.done;a=n.next()){var i=a.value.parse(t);if(i)return i}}catch(t){e={error:t}}finally{try{a&&!a.done&&(r=n.return)&&r.call(n)}finally{if(e)throw e.error}}var o=c(t,2),s=o[0],l=o[1];this._fallback(s,l)},o.prototype.lookup=function(t){var e=this.applicable(t);return e?e.lookup(t):null},o.prototype.contains=function(t){return!!this.applicable(t)},o.prototype.toString=function(){return this._configuration.map(function(t){return t.name}).join(", ")},o.prototype.applicable=function(t){var e,r;try{for(var n=u(this._configuration),a=n.next();!a.done;a=n.next()){var i=a.value;if(i.contains(t))return i}}catch(t){e={error:t}}finally{try{a&&!a.done&&(r=n.return)&&r.call(n)}finally{if(e)throw e.error}}return null},o.prototype.retrieve=function(e){return this._configuration.find(function(t){return t.name===e})},o.prototype.warn=function(t){console.log("TexParser Warning: "+t)},o);function o(t,e){var r,n;this._fallback=e,this._configuration=[];try{for(var a=u(t),i=a.next();!i.done;i=a.next()){var o=i.value;this.add(o)}}catch(t){r={error:t}}finally{try{i&&!i.done&&(n=a.return)&&n.call(a)}finally{if(r)throw r.error}}}e.SubHandler=s;var l=(f.prototype.set=function(t,e){this.map.set(t,e)},f.prototype.get=function(t){return this.map.get(t)},f.prototype.retrieve=function(t){var e,r;try{for(var n=u(this.map.values()),a=n.next();!a.done;a=n.next()){var i=a.value.retrieve(t);if(i)return i}}catch(t){e={error:t}}finally{try{a&&!a.done&&(r=n.return)&&r.call(n)}finally{if(e)throw e.error}}return null},f.prototype.keys=function(){return this.map.keys()},f);function f(t){var e,r;this.map=new Map;try{for(var n=u(Object.keys(t.handler)),a=n.next();!a.done;a=n.next()){var i=a.value,o=new s(t.handler[i]||[],t.fallback[i]);this.set(i,o)}}catch(t){e={error:t}}finally{try{a&&!a.done&&(r=n.return)&&r.call(n)}finally{if(e)throw e.error}}}e.SubHandlers=l},function(t,e,r){"use strict";var n,a=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),d=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,a,i=r.call(t),o=[];try{for(;(void 0===e||0<e--)&&!(n=i.next()).done;)o.push(n.value)}catch(t){a={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(a)throw a.error}}return o},m=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},l=this&&this.__spread||function(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(d(arguments[e]));return t};Object.defineProperty(e,"__esModule",{value:!0});var g=r(11),i=r(3),o=(Object.defineProperty(s.prototype,"name",{get:function(){return this._name},enumerable:!0,configurable:!0}),s.prototype.parserFor=function(t){return this.contains(t)?this.parser:null},s.prototype.parse=function(t){var e=d(t,2),r=e[0],n=e[1],a=this.parserFor(n),i=this.lookup(n);return a&&i?a(r,i)||!0:null},Object.defineProperty(s.prototype,"parser",{get:function(){return this._parser},set:function(t){this._parser=t},enumerable:!0,configurable:!0}),s);function s(t,e){this._name=t,this._parser=e,i.MapHandler.register(this)}e.AbstractSymbolMap=o;var u,c=(a(f,u=o),f.prototype.contains=function(t){return this._regExp.test(t)},f.prototype.lookup=function(t){return this.contains(t)?t:null},f);function f(t,e,r){var n=u.call(this,t,e)||this;return n._regExp=r,n}e.RegExpMap=c;var p,h=(a(y,p=o),y.prototype.lookup=function(t){return this.map.get(t)},y.prototype.contains=function(t){return this.map.has(t)},y.prototype.add=function(t,e){this.map.set(t,e)},y);function y(){var t=null!==p&&p.apply(this,arguments)||this;return t.map=new Map,t}e.AbstractParseMap=h;var v,b=(a(x,v=h),x);function x(t,e,r){var n,a,i=v.call(this,t,e)||this;try{for(var o=m(Object.keys(r)),s=o.next();!s.done;s=o.next()){var l=s.value,u=r[l],c=d("string"==typeof u?[u,null]:u,2),f=c[0],p=c[1],h=new g.Symbol(l,f,p);i.add(l,h)}}catch(t){n={error:t}}finally{try{s&&!s.done&&(a=o.return)&&a.call(o)}finally{if(n)throw n.error}}return i}e.CharacterMap=b;var A,M=(a(w,A=b),w.prototype.parse=function(t){var e=d(t,2),r=e[0],n=e[1];return A.prototype.parse.call(this,[r,"\\"+n])},w);function w(){return null!==A&&A.apply(this,arguments)||this}e.DelimiterMap=M;var T,S=(a(C,T=h),C.prototype.parserFor=function(t){var e=this.lookup(t);return e?e.func:null},C.prototype.parse=function(t){var e=d(t,2),r=e[0],n=e[1],a=this.lookup(n),i=this.parserFor(n);return a&&i?i.apply(void 0,l([r,a.symbol],a.args))||!0:null},C);function C(t,e,r){var n,a,i=T.call(this,t,null)||this;try{for(var o=m(Object.keys(e)),s=o.next();!s.done;s=o.next()){var l=s.value,u=e[l],c=d("string"==typeof u?[u]:u),f=c[0],p=c.slice(1),h=new g.Macro(l,r[f],p);i.add(l,h)}}catch(t){n={error:t}}finally{try{s&&!s.done&&(a=o.return)&&a.call(o)}finally{if(n)throw n.error}}return i}e.MacroMap=S;var P,O=(a(E,P=S),E.prototype.parse=function(t){var e=d(t,2),r=e[0],n=e[1],a=this.lookup(n),i=this.parserFor(n);if(!a||!i)return null;if(["\\"+a.symbol].concat(a.args),!i)return null;var o=r.currentCS;r.currentCS="\\"+n;var s=i.apply(void 0,l([r,"\\"+a.symbol],a.args));return r.currentCS=o,s||!0},E);function E(){return null!==P&&P.apply(this,arguments)||this}e.CommandMap=O;var k,_=(a(I,k=S),I.prototype.parse=function(t){var e=d(t,2),r=e[0],n=e[1],a=this.lookup(n),i=this.parserFor(n);return a&&i?(this.parser(r,a.symbol,i,a.args),!0):null},I);function I(t,e,r,n){var a=k.call(this,t,r,n)||this;return a.parser=e,a}e.EnvironmentMap=_},function(t,e,r){"use strict";var y=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,a,i=r.call(t),o=[];try{for(;(void 0===e||0<e--)&&!(n=i.next()).done;)o.push(n.value)}catch(t){a={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(a)throw a.error}}return o},_=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0});var v,n,a,i=r(14),o=r(3),I=r(7),s=r(4),b=r(3),x=r(43),l=(u.create=function(t,e){return void 0===e&&(e={}),new u(t,e.handler||{},e.fallback||{},e.items||{},e.tags||{},e.options||{},e.nodes||{},e.preprocessors||[],e.postprocessors||[],[e.init,e.priority],[e.config,e.configPriority])},u.empty=function(){return u.create("empty")},u.extension=function(){return new s.MacroMap(o.ExtensionMaps.NEW_MACRO,{},{}),new s.DelimiterMap(o.ExtensionMaps.NEW_DELIMITER,i.default.delimiter,{}),new s.CommandMap(o.ExtensionMaps.NEW_COMMAND,{},{}),new s.EnvironmentMap(o.ExtensionMaps.NEW_ENVIRONMENT,i.default.environment,{},{}),u.create("extension",{handler:{character:[],delimiter:[o.ExtensionMaps.NEW_DELIMITER],macro:[o.ExtensionMaps.NEW_DELIMITER,o.ExtensionMaps.NEW_COMMAND,o.ExtensionMaps.NEW_MACRO],environment:[o.ExtensionMaps.NEW_ENVIRONMENT]}})},u.prototype.init=function(t){this.initMethod.execute(t)},u.prototype.config=function(t,e){var r,n,a,i;this.configMethod.execute(t,e);try{for(var o=_(this.preprocessors),s=o.next();!s.done;s=o.next()){var l=s.value;"function"==typeof l?e.preFilters.add(l):e.preFilters.add(l[0],l[1])}}catch(t){r={error:t}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}try{for(var u=_(this.postprocessors),c=u.next();!c.done;c=u.next()){var f=c.value;"function"==typeof f?e.postFilters.add(f):e.postFilters.add(f[0],f[1])}}catch(t){a={error:t}}finally{try{c&&!c.done&&(i=u.return)&&i.call(u)}finally{if(a)throw a.error}}},u.prototype.append=function(t){var e,r,n,a,i,o,s,l,u,c,f,p,h=Object.keys(t.handler);try{for(var d=_(h),m=d.next();!m.done;m=d.next()){var g=m.value;try{for(var y=(n=void 0,_(t.handler[g])),v=y.next();!v.done;v=y.next()){var b=v.value;this.handler[g].unshift(b)}}catch(t){n={error:t}}finally{try{v&&!v.done&&(a=y.return)&&a.call(y)}finally{if(n)throw n.error}}}}catch(t){e={error:t}}finally{try{m&&!m.done&&(r=d.return)&&r.call(d)}finally{if(e)throw e.error}}Object.assign(this.fallback,t.fallback),Object.assign(this.items,t.items),Object.assign(this.tags,t.tags),I.defaultOptions(this.options,t.options),Object.assign(this.nodes,t.nodes);try{for(var x=_(t.preprocessors),A=x.next();!A.done;A=x.next()){var M=A.value;this.preprocessors.push(M)}}catch(t){i={error:t}}finally{try{A&&!A.done&&(o=x.return)&&o.call(x)}finally{if(i)throw i.error}}try{for(var w=_(t.postprocessors),T=w.next();!T.done;T=w.next()){var S=T.value;this.postprocessors.push(S)}}catch(t){s={error:t}}finally{try{T&&!T.done&&(l=w.return)&&l.call(w)}finally{if(s)throw s.error}}try{for(var C=_(t.initMethod),P=C.next();!P.done;P=C.next()){var O=P.value;this.initMethod.add(O.item,O.priority)}}catch(t){u={error:t}}finally{try{P&&!P.done&&(c=C.return)&&c.call(C)}finally{if(u)throw u.error}}try{for(var E=_(t.configMethod),k=E.next();!k.done;k=E.next())O=k.value,this.configMethod.add(O.item,O.priority)}catch(t){f={error:t}}finally{try{k&&!k.done&&(p=E.return)&&p.call(E)}finally{if(f)throw f.error}}},u.prototype.register=function(t,e,r){var n,a,i,o,s,l;void 0===r&&(r={}),this.append(t),t.init(this);var u=e.parseOptions;u.handlers=new b.SubHandlers(this),u.nodeFactory.setCreators(t.nodes);try{for(var c=_(Object.keys(t.items)),f=c.next();!f.done;f=c.next()){var p=f.value;u.itemFactory.setNodeClass(p,t.items[p])}}catch(t){n={error:t}}finally{try{f&&!f.done&&(a=c.return)&&a.call(c)}finally{if(n)throw n.error}}I.defaultOptions(u.options,t.options),I.userOptions(u.options,r),t.config(this,e);try{for(var h=_(t.preprocessors),d=h.next();!d.done;d=h.next()){var m=d.value;Array.isArray(m)?e.preFilters.add(m[0],m[1]):e.preFilters.add(m)}}catch(t){i={error:t}}finally{try{d&&!d.done&&(o=h.return)&&o.call(h)}finally{if(i)throw i.error}}try{for(var g=_(t.postprocessors),y=g.next();!y.done;y=g.next()){var v=y.value;Array.isArray(v)?e.postFilters.add(v[0],v[1]):e.postFilters.add(v)}}catch(t){s={error:t}}finally{try{y&&!y.done&&(l=g.return)&&l.call(g)}finally{if(s)throw s.error}}},u);function u(t,e,r,n,a,i,o,s,l,u,c){void 0===e&&(e={}),void 0===r&&(r={}),void 0===n&&(n={}),void 0===a&&(a={}),void 0===i&&(i={}),void 0===o&&(o={}),void 0===s&&(s=[]),void 0===l&&(l=[]);var f=y(u,2),p=f[0],h=f[1],d=y(c,2),m=d[0],g=d[1];this.name=t,this.handler=e,this.fallback=r,this.items=n,this.tags=a,this.options=i,this.nodes=o,this.preprocessors=s,this.postprocessors=l,this.initMethod=new x.FunctionList,this.configMethod=new x.FunctionList,p&&this.initMethod.add(p,h||0),m&&this.configMethod.add(m,g||h||0),this.handler=Object.assign({character:[],delimiter:[],macro:[],environment:[]},e),v.set(t,this)}e.Configuration=l,n=v=e.ConfigurationHandler||(e.ConfigurationHandler={}),a=new Map,n.set=function(t,e){a.set(t,e)},n.get=function(t){return a.get(t)},n.keys=function(){return a.keys()}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TEXCLASS=MathJax._.core.MmlTree.MmlNode.TEXCLASS,e.TEXCLASSNAMES=MathJax._.core.MmlTree.MmlNode.TEXCLASSNAMES,e.indentAttributes=MathJax._.core.MmlTree.MmlNode.indentAttributes,e.AbstractMmlNode=MathJax._.core.MmlTree.MmlNode.AbstractMmlNode,e.AbstractMmlTokenNode=MathJax._.core.MmlTree.MmlNode.AbstractMmlTokenNode,e.AbstractMmlLayoutNode=MathJax._.core.MmlTree.MmlNode.AbstractMmlLayoutNode,e.AbstractMmlBaseNode=MathJax._.core.MmlTree.MmlNode.AbstractMmlBaseNode,e.AbstractMmlEmptyNode=MathJax._.core.MmlTree.MmlNode.AbstractMmlEmptyNode,e.TextNode=MathJax._.core.MmlTree.MmlNode.TextNode,e.XMLNode=MathJax._.core.MmlTree.MmlNode.XMLNode},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.APPEND=MathJax._.util.Options.APPEND,e.REMOVE=MathJax._.util.Options.REMOVE,e.Expandable=MathJax._.util.Options.Expandable,e.expandable=MathJax._.util.Options.expandable,e.makeArray=MathJax._.util.Options.makeArray,e.keys=MathJax._.util.Options.keys,e.copy=MathJax._.util.Options.copy,e.insert=MathJax._.util.Options.insert,e.defaultOptions=MathJax._.util.Options.defaultOptions,e.userOptions=MathJax._.util.Options.userOptions,e.selectOptions=MathJax._.util.Options.selectOptions,e.selectOptionsFromKeys=MathJax._.util.Options.selectOptionsFromKeys,e.separateOptions=MathJax._.util.Options.separateOptions},function(t,e,r){"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),(n=e.TexConstant||(e.TexConstant={})).Variant={NORMAL:"normal",BOLD:"bold",ITALIC:"italic",BOLDITALIC:"bold-italic",DOUBLESTRUCK:"double-struck",FRAKTUR:"fraktur",BOLDFRAKTUR:"bold-fraktur",SCRIPT:"script",BOLDSCRIPT:"bold-script",SANSSERIF:"sans-serif",BOLDSANSSERIF:"bold-sans-serif",SANSSERIFITALIC:"sans-serif-italic",SANSSERIFBOLDITALIC:"sans-serif-bold-italic",MONOSPACE:"monospace",INITIAL:"inital",TAILED:"tailed",LOOPED:"looped",STRETCHED:"stretched",CALLIGRAPHIC:"-tex-calligraphic",OLDSTYLE:"-tex-oldstyle"},n.Form={PREFIX:"prefix",INFIX:"infix",POSTFIX:"postfix"},n.LineBreak={AUTO:"auto",NEWLINE:"newline",NOBREAK:"nobreak",GOODBREAK:"goodbreak",BADBREAK:"badbreak"},n.LineBreakStyle={BEFORE:"before",AFTER:"after",DUPLICATE:"duplicate",INFIXLINBREAKSTYLE:"infixlinebreakstyle"},n.IndentAlign={LEFT:"left",CENTER:"center",RIGHT:"right",AUTO:"auto",ID:"id",INDENTALIGN:"indentalign"},n.IndentShift={INDENTSHIFT:"indentshift"},n.LineThickness={THIN:"thin",MEDIUM:"medium",THICK:"thick"},n.Notation={LONGDIV:"longdiv",ACTUARIAL:"actuarial",PHASORANGLE:"phasorangle",RADICAL:"radical",BOX:"box",ROUNDEDBOX:"roundedbox",CIRCLE:"circle",LEFT:"left",RIGHT:"right",TOP:"top",BOTTOM:"bottom",UPDIAGONALSTRIKE:"updiagonalstrike",DOWNDIAGONALSTRIKE:"downdiagonalstrike",VERTICALSTRIKE:"verticalstrike",HORIZONTALSTRIKE:"horizontalstrike",NORTHEASTARROW:"northeastarrow",MADRUWB:"madruwb",UPDIAGONALARROW:"updiagonalarrow"},n.Align={TOP:"top",BOTTOM:"bottom",CENTER:"center",BASELINE:"baseline",AXIS:"axis",LEFT:"left",RIGHT:"right"},n.Lines={NONE:"none",SOLID:"solid",DASHED:"dashed"},n.Side={LEFT:"left",RIGHT:"right",LEFTOVERLAP:"leftoverlap",RIGHTOVERLAP:"rightoverlap"},n.Width={AUTO:"auto",FIT:"fit"},n.Actiontype={TOGGLE:"toggle",STATUSLINE:"statusline",TOOLTIP:"tooltip",INPUT:"input"},n.Length={VERYVERYTHINMATHSPACE:"veryverythinmathspace",VERYTHINMATHSPACE:"verythinmathspace",THINMATHSPACE:"thinmathspace",MEDIUMMATHSPACE:"mediummathspace",THICKMATHSPACE:"thickmathspace",VERYTHICKMATHSPACE:"verythickmathspace",VERYVERYTHICKMATHSPACE:"veryverythickmathspace",NEGATIVEVERYVERYTHINMATHSPACE:"negativeveryverythinmathspace",NEGATIVEVERYTHINMATHSPACE:"negativeverythinmathspace",NEGATIVETHINMATHSPACE:"negativethinmathspace",NEGATIVEMEDIUMMATHSPACE:"negativemediummathspace",NEGATIVETHICKMATHSPACE:"negativethickmathspace",NEGATIVEVERYTHICKMATHSPACE:"negativeverythickmathspace",NEGATIVEVERYVERYTHICKMATHSPACE:"negativeveryverythickmathspace"},n.Overflow={LINBREAK:"linebreak",SCROLL:"scroll",ELIDE:"elide",TRUNCATE:"truncate",SCALE:"scale"},n.Unit={EM:"em",EX:"ex",PX:"px",IN:"in",CM:"cm",MM:"mm",PT:"pt",PC:"pc"}},function(t,e,r){"use strict";var f=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},s=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,a,i=r.call(t),o=[];try{for(;(void 0===e||0<e--)&&!(n=i.next()).done;)o.push(n.value)}catch(t){a={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(a)throw a.error}}return o},a=this&&this.__spread||function(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(s(arguments[e]));return t};Object.defineProperty(e,"__esModule",{value:!0});var l=r(2),p=r(22),u=r(0),n=(Object.defineProperty(i.prototype,"options",{get:function(){return this.configuration.options},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"itemFactory",{get:function(){return this.configuration.itemFactory},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"tags",{get:function(){return this.configuration.tags},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"string",{get:function(){return this._string},set:function(t){this._string=t},enumerable:!0,configurable:!0}),i.prototype.parse=function(t,e){return this.configuration.handlers.get(t).parse(e)},i.prototype.lookup=function(t,e){return this.configuration.handlers.get(t).lookup(e)},i.prototype.contains=function(t,e){return this.configuration.handlers.get(t).contains(e)},i.prototype.toString=function(){var e,t,r="";try{for(var n=f(Array.from(this.configuration.handlers.keys())),a=n.next();!a.done;a=n.next()){var i=a.value;r+=i+": "+this.configuration.handlers.get(i)+"\n"}}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}return r},i.prototype.Parse=function(){for(var t,e;this.i<this.string.length;)55296<=(e=(t=this.string.charAt(this.i++)).charCodeAt(0))&&e<56320&&(t+=this.string.charAt(this.i++)),this.parse("character",[this,t])},i.prototype.Push=function(t){this.stack.Push(t)},i.prototype.PushAll=function(t){var e,r;try{for(var n=f(t),a=n.next();!a.done;a=n.next()){var i=a.value;this.stack.Push(i)}}catch(t){e={error:t}}finally{try{a&&!a.done&&(r=n.return)&&r.call(n)}finally{if(e)throw e.error}}},i.prototype.mml=function(){if(!this.stack.Top().isKind("mml"))return null;var t=this.stack.Top().First;return this.configuration.popParser(),t},i.prototype.convertDelimiter=function(t){var e=this.lookup("delimiter",t);return e?e.char:null},i.prototype.nextIsSpace=function(){return this.string.charAt(this.i).match(/\s/)},i.prototype.GetNext=function(){for(;this.nextIsSpace();)this.i++;return this.string.charAt(this.i)},i.prototype.GetCS=function(){var t=this.string.slice(this.i).match(/^([a-z]+|.) ?/i);return t?(this.i+=t[1].length,t[1]):(this.i++," ")},i.prototype.GetArgument=function(t,e){switch(this.GetNext()){case"":if(!e)throw new u.default("MissingArgFor","Missing argument for %1",this.currentCS);return null;case"}":if(!e)throw new u.default("ExtraCloseMissingOpen","Extra close brace or missing open brace");return null;case"\\":return this.i++,"\\"+this.GetCS();case"{":for(var r=++this.i,n=1;this.i<this.string.length;)switch(this.string.charAt(this.i++)){case"\\":this.i++;break;case"{":n++;break;case"}":if(0==--n)return this.string.slice(r,this.i-1)}throw new u.default("MissingCloseBrace","Missing close brace")}return this.string.charAt(this.i++)},i.prototype.GetBrackets=function(t,e){if("["!==this.GetNext())return e;for(var r=++this.i,n=0;this.i<this.string.length;)switch(this.string.charAt(this.i++)){case"{":n++;break;case"\\":this.i++;break;case"}":if(n--<=0)throw new u.default("ExtraCloseLooking","Extra close brace while looking for %1","']'");break;case"]":if(0===n)return this.string.slice(r,this.i-1)}throw new u.default("MissingCloseBracket","Could not find closing ']' for argument to %1",this.currentCS)},i.prototype.GetDelimiter=function(t,e){for(;this.nextIsSpace();)this.i++;var r=this.string.charAt(this.i);if(this.i++,this.i<=this.string.length&&("\\"===r?r+=this.GetCS():"{"===r&&e&&(this.i--,r=this.GetArgument(t)),this.contains("delimiter",r)))return this.convertDelimiter(r);throw new u.default("MissingOrUnrecognizedDelim","Missing or unrecognized delimiter for %1",this.currentCS)},i.prototype.GetDimen=function(t){if(this.nextIsSpace()&&this.i++,"{"===this.string.charAt(this.i)){var e=this.GetArgument(t),r=s(l.default.matchDimen(e),3),n=r[0],a=r[1];if(r[2],n)return n+a}else{e=this.string.slice(this.i);var i=s(l.default.matchDimen(e,!0),3),o=(n=i[0],a=i[1],i[2]);if(n)return this.i+=o,n+a}throw new u.default("MissingDimOrUnits","Missing dimension or its units for %1",this.currentCS)},i.prototype.GetUpTo=function(t,e){for(;this.nextIsSpace();)this.i++;for(var r=this.i,n=0;this.i<this.string.length;){var a=this.i,i=this.string.charAt(this.i++);switch(i){case"\\":i+=this.GetCS();break;case"{":n++;break;case"}":if(0===n)throw new u.default("ExtraCloseLooking","Extra close brace while looking for %1",e);n--}if(0===n&&i===e)return this.string.slice(r,a)}throw new u.default("TokenNotFoundForCommand","Could not find %1 for %2",e,this.currentCS)},i.prototype.ParseArg=function(t){return new i(this.GetArgument(t),this.stack.env,this.configuration).mml()},i.prototype.ParseUpTo=function(t,e){return new i(this.GetUpTo(t,e),this.stack.env,this.configuration).mml()},i.prototype.GetDelimiterArg=function(t){var e=l.default.trimSpaces(this.GetArgument(t));if(""===e)return null;if(this.contains("delimiter",e))return e;throw new u.default("MissingOrUnrecognizedDelim","Missing or unrecognized delimiter for %1",this.currentCS)},i.prototype.GetStar=function(){var t="*"===this.GetNext();return t&&this.i++,t},i.prototype.create=function(t){for(var e,r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];return(e=this.configuration.nodeFactory).create.apply(e,a([t],r))},i);function i(t,e,r){var n,a;this._string=t,this.configuration=r,this.macroCount=0,this.i=0,this.currentCS="";var i,o=e.hasOwnProperty("isInner"),s=e.isInner;if(delete e.isInner,e){i={};try{for(var l=f(Object.keys(e)),u=l.next();!u.done;u=l.next()){var c=u.value;i[c]=e[c]}}catch(t){n={error:t}}finally{try{u&&!u.done&&(a=l.return)&&a.call(l)}finally{if(n)throw n.error}}}this.configuration.pushParser(this),this.stack=new p.default(this.itemFactory,i,!o||s),this.Parse(),this.Push(this.itemFactory.create("stop"))}e.default=n},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.options=MathJax._.util.Entities.options,e.entities=MathJax._.util.Entities.entities,e.add=MathJax._.util.Entities.add,e.remove=MathJax._.util.Entities.remove,e.translate=MathJax._.util.Entities.translate,e.numeric=MathJax._.util.Entities.numeric},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=(Object.defineProperty(a.prototype,"symbol",{get:function(){return this._symbol},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"char",{get:function(){return this._char},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"attributes",{get:function(){return this._attributes},enumerable:!0,configurable:!0}),a);function a(t,e,r){this._symbol=t,this._char=e,this._attributes=r}e.Symbol=n;var i=(Object.defineProperty(o.prototype,"symbol",{get:function(){return this._symbol},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"func",{get:function(){return this._func},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"args",{get:function(){return this._args},enumerable:!0,configurable:!0}),o);function o(t,e,r){void 0===r&&(r=[]),this._symbol=t,this._func=e,this._args=r}e.Macro=i},function(t,e,r){"use strict";var n,a=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),o=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0});var i=r(9),s=function(t,e){void 0===t&&(t="???"),void 0===e&&(e=""),this.tag=t,this.id=e};e.Label=s;var l=function(t,e,r,n,a,i,o,s){void 0===t&&(t=""),void 0===e&&(e=!1),void 0===r&&(r=!1),void 0===n&&(n=null),void 0===a&&(a=""),void 0===i&&(i=""),void 0===o&&(o=!1),void 0===s&&(s=""),this.env=t,this.taggable=e,this.defaultTags=r,this.tag=n,this.tagId=a,this.tagFormat=i,this.noTag=o,this.labelId=s};e.TagInfo=l;var u=(c.prototype.start=function(t,e,r){this.currentTag&&this.stack.push(this.currentTag),this.currentTag=new l(t,e,r)},Object.defineProperty(c.prototype,"env",{get:function(){return this.currentTag.env},enumerable:!0,configurable:!0}),c.prototype.end=function(){this.history.push(this.currentTag),this.currentTag=this.stack.pop()},c.prototype.tag=function(t,e){this.currentTag.tag=t,this.currentTag.tagFormat=e?t:this.formatTag(t),this.currentTag.noTag=!1},c.prototype.notag=function(){this.tag("",!0),this.currentTag.noTag=!0},Object.defineProperty(c.prototype,"noTag",{get:function(){return this.currentTag.noTag},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"label",{get:function(){return this.currentTag.labelId},set:function(t){this.currentTag.labelId=t},enumerable:!0,configurable:!0}),c.prototype.formatUrl=function(t,e){return e+"#"+encodeURIComponent(t)},c.prototype.formatTag=function(t){return"("+t+")"},c.prototype.formatId=function(t){return"mjx-eqn-"+t.replace(/\s/g,"_")},c.prototype.formatNumber=function(t){return t.toString()},c.prototype.autoTag=function(){null==this.currentTag.tag&&(this.counter++,this.tag(this.formatNumber(this.counter),!1))},c.prototype.clearTag=function(){this.label="",this.tag(null,!0),this.currentTag.tagId=""},c.prototype.getTag=function(t){if(void 0===t&&(t=!1),t)return this.autoTag(),this.makeTag();var e=this.currentTag;return e.taggable&&!e.noTag&&(e.defaultTags&&this.autoTag(),e.tag)?this.makeTag():null},c.prototype.resetTag=function(){this.history=[],this.redo=!1,this.refUpdate=!1,this.clearTag()},c.prototype.reset=function(t){void 0===t&&(t=0),this.resetTag(),this.counter=this.allCounter=t,this.allLabels={},this.allIds={}},c.prototype.startEquation=function(t){this.labels={},this.ids={},this.counter=this.allCounter,this.redo=!1;var e=t.inputData.recompile;e&&(this.refUpdate=!0,this.counter=e.counter)},c.prototype.finishEquation=function(t){this.redo&&(t.inputData.recompile={state:t.state(),counter:this.allCounter}),this.refUpdate||(this.allCounter=this.counter),Object.assign(this.allIds,this.ids),Object.assign(this.allLabels,this.labels)},c.prototype.finalize=function(t,e){if(!e.display||this.currentTag.env||null==this.currentTag.tag)return t;var r=this.makeTag();return this.enTag(t,r)},c.prototype.makeId=function(){this.currentTag.tagId=this.formatId(this.configuration.options.useLabelIds&&this.label||this.currentTag.tag)},c.prototype.makeTag=function(){this.makeId(),this.label&&(this.labels[this.label]=new s(this.currentTag.tag,this.currentTag.tagId));var t=new i.default("\\text{"+this.currentTag.tagFormat+"}",{},this.configuration).mml();return this.configuration.nodeFactory.create("node","mtd",[t],{id:this.currentTag.tagId})},c);function c(){this.counter=0,this.allCounter=0,this.configuration=null,this.ids={},this.allIds={},this.labels={},this.allLabels={},this.redo=!1,this.refUpdate=!1,this.currentTag=new l,this.history=[],this.stack=[],this.enTag=function(t,e){var r=this.configuration.nodeFactory,n=r.create("node","mtd",[t]),a=r.create("node","mlabeledtr",[e,n]);return r.create("node","mtable",[a],{side:this.configuration.options.tagSide,minlabelspacing:this.configuration.options.tagIndent,displaystyle:!0})}}e.AbstractTags=u;var f,p=(a(h,f=u),h.prototype.autoTag=function(){},h.prototype.getTag=function(){return this.currentTag.tag?f.prototype.getTag.call(this):null},h);function h(){return null!==f&&f.apply(this,arguments)||this}e.NoTags=p;var d,m,g,y,v=(a(b,d=u),b.prototype.finalize=function(t,e){if(!e.display||this.history.find(function(t){return t.taggable}))return t;var r=this.getTag(!0);return this.enTag(t,r)},b);function b(){return null!==d&&d.apply(this,arguments)||this}e.AllTags=v,m=e.TagsFactory||(e.TagsFactory={}),g=new Map([["none",p],["all",v]]),y="none",m.OPTIONS={tags:y,tagSide:"right",tagIndent:"0.8em",multlineWidth:"85%",useLabelIds:!0,ignoreDuplicateLabels:!1},m.add=function(t,e){g.set(t,e)},m.addTags=function(t){var e,r;try{for(var n=o(Object.keys(t)),a=n.next();!a.done;a=n.next()){var i=a.value;m.add(i,t[i])}}catch(t){e={error:t}}finally{try{a&&!a.done&&(r=n.return)&&r.call(n)}finally{if(e)throw e.error}}},m.create=function(t){return new(g.get(t)||this.defaultTags)},m.setDefault=function(t){y=t},m.getDefault=function(){return m.create(y)}},function(t,e,r){"use strict";var n,a=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,a,i=r.call(t),o=[];try{for(;(void 0===e||0<e--)&&!(n=i.next()).done;)o.push(n.value)}catch(t){a={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(a)throw a.error}}return o},o=this&&this.__spread||function(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(i(arguments[e]));return t},s=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0});var l=r(0),u=(Object.defineProperty(c.prototype,"nodes",{get:function(){return this._nodes},enumerable:!0,configurable:!0}),c.prototype.Push=function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];(t=this._nodes).push.apply(t,o(e))},c.prototype.Pop=function(){return this._nodes.pop()},Object.defineProperty(c.prototype,"First",{get:function(){return this._nodes[this.Size()-1]},set:function(t){this._nodes[this.Size()-1]=t},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"Last",{get:function(){return this._nodes[0]},set:function(t){this._nodes[0]=t},enumerable:!0,configurable:!0}),c.prototype.Peek=function(t){return null==t&&(t=1),this._nodes.slice(this.Size()-t)},c.prototype.Size=function(){return this._nodes.length},c.prototype.Clear=function(){this._nodes=[]},c.prototype.toMml=function(t,e){return void 0===t&&(t=!0),1!==this._nodes.length||e?this.create("node",t?"inferredMrow":"mrow",this._nodes,{}):this.First},c.prototype.create=function(t){for(var e,r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];return(e=this.factory.configuration.nodeFactory).create.apply(e,o([t],r))},c);function c(t){this._nodes=t}e.MmlStack=u;var f,p=(a(h,f=u),Object.defineProperty(h.prototype,"kind",{get:function(){return"base"},enumerable:!0,configurable:!0}),Object.defineProperty(h.prototype,"env",{get:function(){return this._env},set:function(t){this._env=t},enumerable:!0,configurable:!0}),h.prototype.getProperty=function(t){return this._properties[t]},h.prototype.setProperty=function(t,e){return this._properties[t]=e,this},Object.defineProperty(h.prototype,"isOpen",{get:function(){return!1},enumerable:!0,configurable:!0}),Object.defineProperty(h.prototype,"isClose",{get:function(){return!1},enumerable:!0,configurable:!0}),Object.defineProperty(h.prototype,"isFinal",{get:function(){return!1},enumerable:!0,configurable:!0}),h.prototype.isKind=function(t){return t===this.kind},h.prototype.checkItem=function(t){if(t.isKind("over")&&this.isOpen&&(t.setProperty("num",this.toMml(!1)),this.Clear()),t.isKind("cell")&&this.isOpen){if(t.getProperty("linebreak"))return h.fail;throw new l.default("Misplaced","Misplaced %1",t.getName())}if(t.isClose&&this.getErrors(t.kind)){var e=i(this.getErrors(t.kind),2),r=e[0],n=e[1];throw new l.default(r,n,t.getName())}return t.isFinal?(this.Push(t.First),h.fail):h.success},h.prototype.clearEnv=function(){var e,t;try{for(var r=s(Object.keys(this.env)),n=r.next();!n.done;n=r.next()){var a=n.value;delete this.env[a]}}catch(t){e={error:t}}finally{try{n&&!n.done&&(t=r.return)&&t.call(r)}finally{if(e)throw e.error}}},h.prototype.setProperties=function(t){return Object.assign(this._properties,t),this},h.prototype.getName=function(){return this.getProperty("name")},h.prototype.toString=function(){return this.kind+"["+this.nodes.join("; ")+"]"},h.prototype.getErrors=function(t){return(this.constructor.errors||{})[t]||h.errors[t]},h.fail=[null,!1],h.success=[null,!0],h.errors={end:["MissingBeginExtraEnd","Missing \\begin{%1} or extra \\end{%1}"],close:["ExtraCloseMissingOpen","Extra close brace or missing open brace"],right:["MissingLeftExtraRight","Missing \\left or extra \\right"]},h);function h(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];var n=f.call(this,e)||this;return n.factory=t,n.global={},n._properties={},n.isOpen&&(n._env={}),n}e.BaseItem=p},function(t,e,r){"use strict";var n=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,a,i=r.call(t),o=[];try{for(;(void 0===e||0<e--)&&!(n=i.next()).done;)o.push(n.value)}catch(t){a={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(a)throw a.error}}return o},o=this&&this.__spread||function(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(n(arguments[e]));return t};Object.defineProperty(e,"__esModule",{value:!0});var a,i,s=r(1),l=r(8),u=r(2);(i=a=a||{}).variable=function(t,e){var r=u.default.getFontDef(t),n=t.create("token","mi",r,e);t.Push(n)},i.digit=function(t,e){var r,n=t.configuration.options.digits,a=t.string.slice(t.i-1).match(n),i=u.default.getFontDef(t);a?(r=t.create("token","mn",i,a[0].replace(/[{}]/g,"")),t.i+=a[0].length-1):r=t.create("token","mo",i,e),t.Push(r)},i.controlSequence=function(t,e){var r=t.GetCS();t.parse("macro",[t,r])},i.mathchar0mi=function(t,e){var r=e.attributes||{mathvariant:l.TexConstant.Variant.ITALIC},n=t.create("token","mi",r,e.char);t.Push(n)},i.mathchar0mo=function(t,e){var r=e.attributes||{};r.stretchy=!1;var n=t.create("token","mo",r,e.char);s.default.setProperty(n,"fixStretchy",!0),t.configuration.addNode("fixStretchy",n),t.Push(n)},i.mathchar7=function(t,e){var r=e.attributes||{mathvariant:l.TexConstant.Variant.NORMAL};t.stack.env.font&&(r.mathvariant=t.stack.env.font);var n=t.create("token","mi",r,e.char);t.Push(n)},i.delimiter=function(t,e){var r=e.attributes||{};r=Object.assign({fence:!1,stretchy:!1},r);var n=t.create("token","mo",r,e.char);t.Push(n)},i.environment=function(t,e,r,n){var a=n[0],i=t.itemFactory.create("begin").setProperties({name:e,end:a});i=r.apply(void 0,o([t,i],n.slice(1))),t.Push(i)},e.default=a},function(t,e,r){"use strict";var n,a=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,a,i=r.call(t),o=[];try{for(;(void 0===e||0<e--)&&!(n=i.next()).done;)o.push(n.value)}catch(t){a={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(a)throw a.error}}return o},o=this&&this.__spread||function(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(i(arguments[e]));return t};Object.defineProperty(e,"__esModule",{value:!0});var s,l=r(3),u=r(10),c=r(6),f=r(0),p=r(2),h=r(1),d=r(13),m=(s=d.BaseItem,a(g,s),Object.defineProperty(g.prototype,"kind",{get:function(){return"start"},enumerable:!0,configurable:!0}),Object.defineProperty(g.prototype,"isOpen",{get:function(){return!0},enumerable:!0,configurable:!0}),g.prototype.checkItem=function(t){if(t.isKind("stop")){var e=this.toMml();return this.global.isInner||(e=this.factory.configuration.tags.finalize(e,this.env)),[[this.factory.create("mml",e)],!0]}return s.prototype.checkItem.call(this,t)},g);function g(t,e){var r=s.call(this,t)||this;return r.global=e,r}e.StartItem=m;var y,v=(y=d.BaseItem,a(b,y),Object.defineProperty(b.prototype,"kind",{get:function(){return"stop"},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"isClose",{get:function(){return!0},enumerable:!0,configurable:!0}),b);function b(){return null!==y&&y.apply(this,arguments)||this}e.StopItem=v;var x,A=(x=d.BaseItem,a(M,x),Object.defineProperty(M.prototype,"kind",{get:function(){return"open"},enumerable:!0,configurable:!0}),Object.defineProperty(M.prototype,"isOpen",{get:function(){return!0},enumerable:!0,configurable:!0}),M.prototype.checkItem=function(t){if(t.isKind("close")){var e=this.toMml(),r=this.create("node","TeXAtom",[e]);return[[this.factory.create("mml",r)],!0]}return x.prototype.checkItem.call(this,t)},M.errors=Object.assign(Object.create(d.BaseItem.errors),{stop:["ExtraOpenMissingClose","Extra open brace or missing close brace"]}),M);function M(){return null!==x&&x.apply(this,arguments)||this}e.OpenItem=A;var w,T=(w=d.BaseItem,a(S,w),Object.defineProperty(S.prototype,"kind",{get:function(){return"close"},enumerable:!0,configurable:!0}),Object.defineProperty(S.prototype,"isClose",{get:function(){return!0},enumerable:!0,configurable:!0}),S);function S(){return null!==w&&w.apply(this,arguments)||this}e.CloseItem=T;var C,P=(C=d.BaseItem,a(O,C),Object.defineProperty(O.prototype,"kind",{get:function(){return"prime"},enumerable:!0,configurable:!0}),O.prototype.checkItem=function(t){var e=i(this.Peek(2),2),r=e[0],n=e[1];return!h.default.isType(r,"msubsup")||h.default.isType(r,"msup")?[[this.create("node","msup",[r,n]),t],!0]:(h.default.setChild(r,r.sup,n),[[r,t],!0])},O);function O(){return null!==C&&C.apply(this,arguments)||this}e.PrimeItem=P;var E,k=(E=d.BaseItem,a(_,E),Object.defineProperty(_.prototype,"kind",{get:function(){return"subsup"},enumerable:!0,configurable:!0}),_.prototype.checkItem=function(t){if(t.isKind("open")||t.isKind("left"))return d.BaseItem.success;var e=this.First,r=this.getProperty("position");if(t.isKind("mml")){if(this.getProperty("primes"))if(2!==r)h.default.setChild(e,2,this.getProperty("primes"));else{h.default.setProperty(this.getProperty("primes"),"variantForm",!0);var n=this.create("node","mrow",[this.getProperty("primes"),t.First]);t.First=n}return h.default.setChild(e,r,t.First),null!=this.getProperty("movesupsub")&&h.default.setProperty(e,"movesupsub",this.getProperty("movesupsub")),[[this.factory.create("mml",e)],!0]}if(E.prototype.checkItem.call(this,t)[1]){var a=this.getErrors(["","sub","sup"][r]);throw new(f.default.bind.apply(f.default,o([void 0,a[0],a[1]],a.splice(2))))}},_.errors=Object.assign(Object.create(d.BaseItem.errors),{stop:["MissingScript","Missing superscript or subscript argument"],sup:["MissingOpenForSup","Missing open brace for superscript"],sub:["MissingOpenForSub","Missing open brace for subscript"]}),_);function _(){return null!==E&&E.apply(this,arguments)||this}e.SubsupItem=k;var I,N=(I=d.BaseItem,a(L,I),Object.defineProperty(L.prototype,"kind",{get:function(){return"over"},enumerable:!0,configurable:!0}),Object.defineProperty(L.prototype,"isClose",{get:function(){return!0},enumerable:!0,configurable:!0}),L.prototype.checkItem=function(t){if(t.isKind("over"))throw new f.default("AmbiguousUseOf","Ambiguous use of %1",t.getName());if(t.isClose){var e=this.create("node","mfrac",[this.getProperty("num"),this.toMml(!1)]);return null!=this.getProperty("thickness")&&h.default.setAttribute(e,"linethickness",this.getProperty("thickness")),(this.getProperty("open")||this.getProperty("close"))&&(h.default.setProperty(e,"withDelims",!0),e=p.default.fixedFence(this.factory.configuration,this.getProperty("open"),e,this.getProperty("close"))),[[this.factory.create("mml",e),t],!0]}return I.prototype.checkItem.call(this,t)},L.prototype.toString=function(){return"over["+this.getProperty("num")+" / "+this.nodes.join("; ")+"]"},L);function L(t){var e=I.call(this,t)||this;return e.setProperty("name","\\over"),e}e.OverItem=N;var F,q=(F=d.BaseItem,a(R,F),Object.defineProperty(R.prototype,"kind",{get:function(){return"left"},enumerable:!0,configurable:!0}),Object.defineProperty(R.prototype,"isOpen",{get:function(){return!0},enumerable:!0,configurable:!0}),R.prototype.checkItem=function(t){return t.isKind("right")?[[this.factory.create("mml",p.default.fenced(this.factory.configuration,this.getProperty("delim"),this.toMml(),t.getProperty("delim")))],!0]:F.prototype.checkItem.call(this,t)},R.errors=Object.assign(Object.create(d.BaseItem.errors),{stop:["ExtraLeftMissingRight","Extra \\left or missing \\right"]}),R);function R(t){var e=F.call(this,t)||this;return e.setProperty("delim","("),e}e.LeftItem=q;var j,D=(j=d.BaseItem,a(G,j),Object.defineProperty(G.prototype,"kind",{get:function(){return"right"},enumerable:!0,configurable:!0}),Object.defineProperty(G.prototype,"isClose",{get:function(){return!0},enumerable:!0,configurable:!0}),G);function G(t){var e=j.call(this,t)||this;return e.setProperty("delim",")"),e}e.RightItem=D;var B,X=(B=d.BaseItem,a(H,B),Object.defineProperty(H.prototype,"kind",{get:function(){return"begin"},enumerable:!0,configurable:!0}),Object.defineProperty(H.prototype,"isOpen",{get:function(){return!0},enumerable:!0,configurable:!0}),H.prototype.checkItem=function(t){if(t.isKind("end")){if(t.getName()!==this.getName())throw new f.default("EnvBadEnd","\\begin{%1} ended with \\end{%2}",this.getName(),t.getName());return this.getProperty("end")?d.BaseItem.fail:[[this.factory.create("mml",this.toMml())],!0]}if(t.isKind("stop"))throw new f.default("EnvMissingEnd","Missing \\end{%1}",this.getName());return B.prototype.checkItem.call(this,t)},H);function H(){return null!==B&&B.apply(this,arguments)||this}e.BeginItem=X;var U,V=(U=d.BaseItem,a(J,U),Object.defineProperty(J.prototype,"kind",{get:function(){return"end"},enumerable:!0,configurable:!0}),Object.defineProperty(J.prototype,"isClose",{get:function(){return!0},enumerable:!0,configurable:!0}),J);function J(){return null!==U&&U.apply(this,arguments)||this}e.EndItem=V;var K,z=(K=d.BaseItem,a($,K),Object.defineProperty($.prototype,"kind",{get:function(){return"style"},enumerable:!0,configurable:!0}),$.prototype.checkItem=function(t){if(!t.isClose)return K.prototype.checkItem.call(this,t);var e=this.create("node","mstyle",this.nodes,this.getProperty("styles"));return[[this.factory.create("mml",e),t],!0]},$);function $(){return null!==K&&K.apply(this,arguments)||this}e.StyleItem=z;var W,Y=(W=d.BaseItem,a(Z,W),Object.defineProperty(Z.prototype,"kind",{get:function(){return"position"},enumerable:!0,configurable:!0}),Z.prototype.checkItem=function(t){if(t.isClose)throw new f.default("MissingBoxFor","Missing box for %1",this.getName());if(t.isFinal){var e=t.toMml();switch(this.getProperty("move")){case"vertical":return e=this.create("node","mpadded",[e],{height:this.getProperty("dh"),depth:this.getProperty("dd"),voffset:this.getProperty("dh")}),[[this.factory.create("mml",e)],!0];case"horizontal":return[[this.factory.create("mml",this.getProperty("left")),t,this.factory.create("mml",this.getProperty("right"))],!0]}}return W.prototype.checkItem.call(this,t)},Z);function Z(){return null!==W&&W.apply(this,arguments)||this}e.PositionItem=Y;var Q,tt=(Q=d.BaseItem,a(et,Q),Object.defineProperty(et.prototype,"kind",{get:function(){return"cell"},enumerable:!0,configurable:!0}),Object.defineProperty(et.prototype,"isClose",{get:function(){return!0},enumerable:!0,configurable:!0}),et);function et(){return null!==Q&&Q.apply(this,arguments)||this}e.CellItem=tt;var rt,nt=(rt=d.BaseItem,a(at,rt),Object.defineProperty(at.prototype,"isFinal",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(at.prototype,"kind",{get:function(){return"mml"},enumerable:!0,configurable:!0}),at);function at(){return null!==rt&&rt.apply(this,arguments)||this}e.MmlItem=nt;var it,ot=(it=d.BaseItem,a(st,it),Object.defineProperty(st.prototype,"kind",{get:function(){return"fn"},enumerable:!0,configurable:!0}),st.prototype.checkItem=function(t){var e=this.First;if(e){if(t.isOpen)return d.BaseItem.success;if(!t.isKind("fn")){var r=t.First;if(!t.isKind("mml")||!r)return[[e,t],!0];if(h.default.isType(r,"mstyle")&&r.childNodes.length&&h.default.isType(r.childNodes[0].childNodes[0],"mspace")||h.default.isType(r,"mspace"))return[[e,t],!0];h.default.isEmbellished(r)&&(r=h.default.getCoreMO(r));var n=h.default.getForm(r);if(null!=n&&[0,0,1,1,0,1,1,0,0,0][n[2]])return[[e,t],!0]}return[[e,this.create("token","mo",{texClass:c.TEXCLASS.NONE},u.entities.ApplyFunction),t],!0]}return it.prototype.checkItem.apply(this,arguments)},st);function st(){return null!==it&&it.apply(this,arguments)||this}e.FnItem=ot;var lt,ut=(lt=d.BaseItem,a(ct,lt),Object.defineProperty(ct.prototype,"kind",{get:function(){return"not"},enumerable:!0,configurable:!0}),ct.prototype.checkItem=function(t){var e,r,n;if(t.isKind("open")||t.isKind("left"))return d.BaseItem.success;if(t.isKind("mml")&&(h.default.isType(t.First,"mo")||h.default.isType(t.First,"mi")||h.default.isType(t.First,"mtext"))&&(e=t.First,1===(r=h.default.getText(e)).length&&!h.default.getProperty(e,"movesupsub")&&1===h.default.getChildren(e).length))return this.remap.contains(r)?(n=this.create("text",this.remap.lookup(r).char),h.default.setChild(e,0,n)):(n=this.create("text","\u0338"),h.default.appendChildren(e,[n])),[[t],!0];n=this.create("text","\u29f8");var a=this.create("node","mtext",[],{},n),i=this.create("node","mpadded",[a],{width:0});return[[e=this.create("node","TeXAtom",[i],{texClass:c.TEXCLASS.REL}),t],!0]},ct);function ct(){var t=null!==lt&&lt.apply(this,arguments)||this;return t.remap=l.MapHandler.getMap("not_remap"),t}e.NotItem=ut;var ft,pt=(ft=d.BaseItem,a(ht,ft),Object.defineProperty(ht.prototype,"kind",{get:function(){return"dots"},enumerable:!0,configurable:!0}),ht.prototype.checkItem=function(t){if(t.isKind("open")||t.isKind("left"))return d.BaseItem.success;var e=this.getProperty("ldots"),r=t.First;if(t.isKind("mml")&&h.default.isEmbellished(r)){var n=h.default.getTexClass(h.default.getCoreMO(r));n!==c.TEXCLASS.BIN&&n!==c.TEXCLASS.REL||(e=this.getProperty("cdots"))}return[[e,t],!0]},ht);function ht(){return null!==ft&&ft.apply(this,arguments)||this}e.DotsItem=pt;var dt,mt=(dt=d.BaseItem,a(gt,dt),Object.defineProperty(gt.prototype,"kind",{get:function(){return"array"},enumerable:!0,configurable:!0}),Object.defineProperty(gt.prototype,"isOpen",{get:function(){return!0},enumerable:!0,configurable:!0}),gt.prototype.checkItem=function(t){if(!t.isClose||t.isKind("over"))return dt.prototype.checkItem.call(this,t);if(t.getProperty("isEntry"))return this.EndEntry(),this.clearEnv(),d.BaseItem.fail;if(t.getProperty("isCR"))return this.EndEntry(),this.EndRow(),this.clearEnv(),d.BaseItem.fail;this.EndTable(),this.clearEnv();var e=this.arraydef.scriptlevel;delete this.arraydef.scriptlevel;var r=this.create("node","mtable",this.table,this.arraydef);4===this.frame.length?h.default.setAttribute(r,"frame",this.dashed?"dashed":"solid"):this.frame.length&&(this.arraydef.rowlines&&(this.arraydef.rowlines=this.arraydef.rowlines.replace(/none( none)+$/,"none")),r=this.create("node","menclose",[r],{notation:this.frame.join(" "),isFrame:!0}),"none"===(this.arraydef.columnlines||"none")&&"none"===(this.arraydef.rowlines||"none")||h.default.setAttribute(r,"padding",0)),e&&(r=this.create("node","mstyle",[r],{scriptlevel:e})),(this.getProperty("open")||this.getProperty("close"))&&(r=p.default.fenced(this.factory.configuration,this.getProperty("open"),r,this.getProperty("close")));var n=this.factory.create("mml",r);if(this.getProperty("requireClose")){if(t.isKind("close"))return[[n],!0];throw new f.default("MissingCloseBrace","Missing close brace")}return[[n,t],!0]},gt.prototype.EndEntry=function(){var t=this.create("node","mtd",this.nodes);this.hfill.length&&(0===this.hfill[0]&&h.default.setAttribute(t,"columnalign","right"),this.hfill[this.hfill.length-1]===this.Size()&&h.default.setAttribute(t,"columnalign",h.default.getAttribute(t,"columnalign")?"center":"left")),this.row.push(t),this.Clear(),this.hfill=[]},gt.prototype.EndRow=function(){var t;t=this.getProperty("isNumbered")&&3===this.row.length?(this.row.unshift(this.row.pop()),this.create("node","mlabeledtr",this.row)):this.create("node","mtr",this.row),this.table.push(t),this.row=[]},gt.prototype.EndTable=function(){(this.Size()||this.row.length)&&(this.EndEntry(),this.EndRow()),this.checkLines()},gt.prototype.checkLines=function(){if(this.arraydef.rowlines){var t=this.arraydef.rowlines.split(/ /);t.length===this.table.length?(this.frame.push("bottom"),t.pop(),this.arraydef.rowlines=t.join(" ")):t.length<this.table.length-1&&(this.arraydef.rowlines+=" none")}if(this.getProperty("rowspacing")){for(var e=this.arraydef.rowspacing.split(/ /);e.length<this.table.length;)e.push(this.getProperty("rowspacing")+"em");this.arraydef.rowspacing=e.join(" ")}},gt);function gt(){var t=null!==dt&&dt.apply(this,arguments)||this;return t.table=[],t.row=[],t.frame=[],t.hfill=[],t.arraydef={},t.dashed=!1,t}e.ArrayItem=mt;var yt,vt=(a(bt,yt=mt),Object.defineProperty(bt.prototype,"kind",{get:function(){return"eqnarray"},enumerable:!0,configurable:!0}),bt.prototype.EndEntry=function(){this.row.length&&p.default.fixInitialMO(this.factory.configuration,this.nodes);var t=this.create("node","mtd",this.nodes);this.row.push(t),this.Clear()},bt.prototype.EndRow=function(){var t="mtr",e=this.factory.configuration.tags.getTag();e&&(this.row=[e].concat(this.row),t="mlabeledtr"),this.factory.configuration.tags.clearTag();var r=this.create("node",t,this.row);this.table.push(r),this.row=[]},bt.prototype.EndTable=function(){yt.prototype.EndTable.call(this),this.factory.configuration.tags.end()},bt);function bt(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];var n=yt.call(this,t)||this;return n.factory.configuration.tags.start(e[0],e[2],e[1]),n}e.EqnArrayItem=vt;var xt,At=(xt=d.BaseItem,a(Mt,xt),Object.defineProperty(Mt.prototype,"kind",{get:function(){return"equation"},enumerable:!0,configurable:!0}),Object.defineProperty(Mt.prototype,"isOpen",{get:function(){return!0},enumerable:!0,configurable:!0}),Mt.prototype.checkItem=function(t){if(t.isKind("end")){var e=this.toMml(),r=this.factory.configuration.tags.getTag();return this.factory.configuration.tags.end(),[[r?this.factory.configuration.tags.enTag(e,r):e,t],!0]}if(t.isKind("stop"))throw new f.default("EnvMissingEnd","Missing \\end{%1}",this.getName());return xt.prototype.checkItem.call(this,t)},Mt);function Mt(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];var n=xt.call(this,t)||this;return n.factory.configuration.tags.start("equation",!0,e[0]),n}e.EquationItem=At},function(t,e,r){"use strict";var p=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,a,i=r.call(t),o=[];try{for(;(void 0===e||0<e--)&&!(n=i.next()).done;)o.push(n.value)}catch(t){a={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(a)throw a.error}}return o};Object.defineProperty(e,"__esModule",{value:!0});var h=r(15),f=r(1),d=r(0),u=r(9),m=r(8),g=r(2),y=r(6),s=r(12),i=r(10);r(21),r(45),r(46);var a={},c={fontfamily:1,fontsize:1,fontweight:1,fontstyle:1,color:1,background:1,id:1,class:1,href:1,style:1};function o(t,e){var r=t.stack.env,n=r.inRoot;r.inRoot=!0;var a=new u.default(e,r,t.configuration),i=a.mml(),o=a.stack.global;if(o.leftRoot||o.upRoot){var s={};o.leftRoot&&(s.width=o.leftRoot),o.upRoot&&(s.voffset=o.upRoot,s.height=o.upRoot),i=t.create("node","mpadded",[i],s)}return r.inRoot=n,i}a.Open=function(t,e){t.Push(t.itemFactory.create("open"))},a.Close=function(t,e){t.Push(t.itemFactory.create("close"))},a.Tilde=function(t,e){t.Push(t.create("token","mtext",{},i.entities.nbsp))},a.Space=function(t,e){},a.Superscript=function(t,e){var r,n,a;t.GetNext().match(/\d/)&&(t.string=t.string.substr(0,t.i+1)+" "+t.string.substr(t.i+1));var i=t.stack.Top();i.isKind("prime")?(a=(r=p(i.Peek(2),2))[0],n=r[1],t.stack.Pop()):a=(a=t.stack.Prev())||t.create("token","mi",{},"");var o=f.default.getProperty(a,"movesupsub"),s=f.default.isType(a,"msubsup")?a.sup:a.over;if(f.default.isType(a,"msubsup")&&!f.default.isType(a,"msup")&&f.default.getChildAt(a,a.sup)||f.default.isType(a,"munderover")&&!f.default.isType(a,"mover")&&f.default.getChildAt(a,a.over)&&!f.default.getProperty(a,"subsupOK"))throw new d.default("DoubleExponent","Double exponent: use braces to clarify");f.default.isType(a,"msubsup")&&!f.default.isType(a,"msup")||(s=o?(f.default.isType(a,"munderover")&&!f.default.isType(a,"mover")&&!f.default.getChildAt(a,a.over)||(f.default.getProperty(a,"movablelimits")&&f.default.isType(a,"mi")&&(a=g.default.mi2mo(t,a)),a=t.create("node","munderover",[a],{movesupsub:!0})),a.over):(a=t.create("node","msubsup",[a])).sup),t.Push(t.itemFactory.create("subsup",a).setProperties({position:s,primes:n,movesupsub:o}))},a.Subscript=function(t,e){var r,n,a;t.GetNext().match(/\d/)&&(t.string=t.string.substr(0,t.i+1)+" "+t.string.substr(t.i+1));var i=t.stack.Top();i.isKind("prime")?(a=(r=p(i.Peek(2),2))[0],n=r[1],t.stack.Pop()):a=(a=t.stack.Prev())||t.create("token","mi",{},"");var o=f.default.getProperty(a,"movesupsub"),s=f.default.isType(a,"msubsup")?a.sub:a.under;if(f.default.isType(a,"msubsup")&&!f.default.isType(a,"msup")&&f.default.getChildAt(a,a.sub)||f.default.isType(a,"munderover")&&!f.default.isType(a,"mover")&&f.default.getChildAt(a,a.under)&&!f.default.getProperty(a,"subsupOK"))throw new d.default("DoubleSubscripts","Double subscripts: use braces to clarify");f.default.isType(a,"msubsup")&&!f.default.isType(a,"msup")||(s=o?(f.default.isType(a,"munderover")&&!f.default.isType(a,"mover")&&!f.default.getChildAt(a,a.under)||(f.default.getProperty(a,"movablelimits")&&f.default.isType(a,"mi")&&(a=g.default.mi2mo(t,a)),a=t.create("node","munderover",[a],{movesupsub:!0})),a.under):(a=t.create("node","msubsup",[a])).sub),t.Push(t.itemFactory.create("subsup",a).setProperties({position:s,primes:n,movesupsub:o}))},a.Prime=function(t,e){var r=t.stack.Prev();if(r=r||t.create("node","mi"),f.default.isType(r,"msubsup")&&!f.default.isType(r,"msup")&&f.default.getChildAt(r,r.sup))throw new d.default("DoubleExponentPrime","Prime causes double exponent: use braces to clarify");var n="";for(t.i--;n+=i.entities.prime,t.i++,"'"===(e=t.GetNext())||e===i.entities.rquote;);n=["","\u2032","\u2033","\u2034","\u2057"][n.length]||n;var a=t.create("token","mo",{},n);t.Push(t.itemFactory.create("prime",r,a))},a.Comment=function(t,e){for(;t.i<t.string.length&&"\n"!==t.string.charAt(t.i);)t.i++},a.Hash=function(t,e){throw new d.default("CantUseHash1","You can't use 'macro parameter character #' in math mode")},a.SetFont=function(t,e,r){t.stack.env.font=r},a.SetStyle=function(t,e,r,n,a){t.stack.env.style=r,t.stack.env.level=a,t.Push(t.itemFactory.create("style").setProperty("styles",{displaystyle:n,scriptlevel:a}))},a.SetSize=function(t,e,r){t.stack.env.size=r,t.Push(t.itemFactory.create("style").setProperty("styles",{mathsize:r+"em"}))},a.Spacer=function(t,e,r){var n=t.create("node","mspace",[],{width:r}),a=t.create("node","mstyle",[n],{scriptlevel:0});t.Push(a)},a.LeftRight=function(t,e){var r=e.substr(1);t.Push(t.itemFactory.create(r).setProperty("delim",t.GetDelimiter(e)))},a.Middle=function(t,e){var r=t.GetDelimiter(e),n=t.create("node","TeXAtom",[],{texClass:y.TEXCLASS.CLOSE});if(t.Push(n),!t.stack.Top().isKind("left"))throw new d.default("MisplacedMiddle","%1 must be within \\left and \\right",t.currentCS);n=t.create("token","mo",{stretchy:!0},r),t.Push(n),n=t.create("node","TeXAtom",[],{texClass:y.TEXCLASS.OPEN}),t.Push(n)},a.NamedFn=function(t,e,r){r=r||e.substr(1);var n=t.create("token","mi",{texClass:y.TEXCLASS.OP},r);t.Push(t.itemFactory.create("fn",n))},a.NamedOp=function(t,e,r){r=(r=r||e.substr(1)).replace(/&thinsp;/,"\u2006");var n=t.create("token","mo",{movablelimits:!0,movesupsub:!0,form:m.TexConstant.Form.PREFIX,texClass:y.TEXCLASS.OP},r);t.Push(n)},a.Limits=function(t,e,r){var n=t.stack.Prev(!0);if(!n||f.default.getTexClass(f.default.getCoreMO(n))!==y.TEXCLASS.OP&&null==f.default.getProperty(n,"movesupsub"))throw new d.default("MisplacedLimits","%1 is allowed only on operators",t.currentCS);var a,i=t.stack.Top();f.default.isType(n,"munderover")&&!r?(a=t.create("node","msubsup"),f.default.copyChildren(n,a),n=i.Last=a):f.default.isType(n,"msubsup")&&r&&(a=t.create("node","munderover"),f.default.copyChildren(n,a),n=i.Last=a),f.default.setProperty(n,"movesupsub",!!r),f.default.setProperties(f.default.getCoreMO(n),{movablelimits:!1}),(f.default.getAttribute(n,"movablelimits")||f.default.getProperty(n,"movablelimits"))&&f.default.setProperties(n,{movablelimits:!1})},a.Over=function(t,e,r,n){var a=t.itemFactory.create("over").setProperty("name",t.currentCS);r||n?(a.setProperty("open",r),a.setProperty("close",n)):e.match(/withdelims$/)&&(a.setProperty("open",t.GetDelimiter(e)),a.setProperty("close",t.GetDelimiter(e))),e.match(/^\\above/)?a.setProperty("thickness",t.GetDimen(e)):(e.match(/^\\atop/)||r||n)&&a.setProperty("thickness",0),t.Push(a)},a.Frac=function(t,e){var r=t.ParseArg(e),n=t.ParseArg(e),a=t.create("node","mfrac",[r,n]);t.Push(a)},a.Sqrt=function(t,e){var r=t.GetBrackets(e),n=t.GetArgument(e);"\\frac"===n&&(n+="{"+t.GetArgument(n)+"}{"+t.GetArgument(n)+"}");var a=new u.default(n,t.stack.env,t.configuration).mml();a=r?t.create("node","mroot",[a,o(t,r)]):t.create("node","msqrt",[a]),t.Push(a)},a.Root=function(t,e){var r=t.GetUpTo(e,"\\of"),n=t.ParseArg(e),a=t.create("node","mroot",[n,o(t,r)]);t.Push(a)},a.MoveRoot=function(t,e,r){if(!t.stack.env.inRoot)throw new d.default("MisplacedMoveRoot","%1 can appear only within a root",t.currentCS);if(t.stack.global[r])throw new d.default("MultipleMoveRoot","Multiple use of %1",t.currentCS);var n=t.GetArgument(e);if(!n.match(/-?[0-9]+/))throw new d.default("IntegerArg","The argument to %1 must be an integer",t.currentCS);"-"!==(n=parseInt(n,10)/15+"em").substr(0,1)&&(n="+"+n),t.stack.global[r]=n},a.Accent=function(t,e,r,n){var a=t.ParseArg(e),i=g.default.getFontDef(t);i.accent=!0;var o=f.default.createEntity(r),s=t.create("token","mo",i,o);f.default.setAttribute(s,"stretchy",!!n);var l=f.default.isEmbellished(a)?f.default.getCoreMO(a):a;f.default.isType(l,"mo")&&f.default.setProperties(l,{movablelimits:!1});var u=t.create("node","munderover");f.default.setChild(u,0,a),f.default.setChild(u,1,null),f.default.setChild(u,2,s);var c=t.create("node","TeXAtom",[u]);t.Push(c)},a.UnderOver=function(t,e,r,n,a){var i,o=t.ParseArg(e),s=f.default.getForm(o);(s&&s[3]&&s[3].movablelimits||f.default.getProperty(o,"movablelimits"))&&f.default.setProperties(o,{movablelimits:!1}),f.default.isType(o,"munderover")&&f.default.isEmbellished(o)&&(f.default.setProperties(f.default.getCoreMO(o),{lspace:0,rspace:0}),i=t.create("node","mo",[],{rspace:0}),o=t.create("node","mrow",[i,o]));var l=t.create("node","munderover",[o]),u=f.default.createEntity(r);i=t.create("token","mo",{stretchy:!0,accent:!a},u),f.default.setChild(l,"o"===e.charAt(1)?l.over:l.under,i);var c=l;n&&(c=t.create("node","TeXAtom",[l],{texClass:y.TEXCLASS.OP,movesupsub:!0})),f.default.setProperty(c,"subsupOK",!0),t.Push(c)},a.Overset=function(t,e){var r=t.ParseArg(e),n=t.ParseArg(e);(f.default.getAttribute(n,"movablelimits")||f.default.getProperty(n,"movablelimits"))&&f.default.setProperties(n,{movablelimits:!1});var a=t.create("node","mover",[n,r]);t.Push(a)},a.Underset=function(t,e){var r=t.ParseArg(e),n=t.ParseArg(e);(f.default.getAttribute(n,"movablelimits")||f.default.getProperty(n,"movablelimits"))&&f.default.setProperties(n,{movablelimits:!1});var a=t.create("node","munder",[n,r]);t.Push(a)},a.TeXAtom=function(t,e,r){var n,a,i,o={texClass:r};if(r===y.TEXCLASS.OP){o.movesupsub=o.movablelimits=!0;var s=t.GetArgument(e),l=s.match(/^\s*\\rm\s+([a-zA-Z0-9 ]+)$/);a=l?(o.mathvariant=m.TexConstant.Variant.NORMAL,t.create("token","mi",o,l[1])):(i=new u.default(s,t.stack.env,t.configuration).mml(),t.create("node","TeXAtom",[i],o)),n=t.itemFactory.create("fn",a)}else i=t.ParseArg(e),n=t.create("node","TeXAtom",[i],o);t.Push(n)},a.MmlToken=function(t,e){var r,n=t.GetArgument(e),a=t.GetBrackets(e,"").replace(/^\s+/,""),i=t.GetArgument(e),o={};try{r=t.create("node",n)}catch(t){r=null}if(!r||!r.isToken)throw new d.default("NotMathMLToken","%1 is not a token element",n);for(;""!==a;){var s=a.match(/^([a-z]+)\s*=\s*('[^']*'|"[^"]*"|[^ ,]*)\s*,?\s*/i);if(!s)throw new d.default("InvalidMathMLAttr","Invalid MathML attribute: %1",a);if(!r.attributes.hasDefault(s[1])&&!c[s[1]])throw new d.default("UnknownAttrForElement","%1 is not a recognized attribute for %2",s[1],n);var l=g.default.MmlFilterAttribute(t,s[1],s[2].replace(/^(['"])(.*)\1$/,"$2"));l&&("true"===l.toLowerCase()?l=!0:"false"===l.toLowerCase()&&(l=!1),o[s[1]]=l),a=a.substr(s[0].length)}var u=t.create("text",i);r.appendChild(u),f.default.setProperties(r,o),t.Push(r)},a.Strut=function(t,e){var r=t.create("node","mrow"),n=t.create("node","mpadded",[r],{height:"8.6pt",depth:"3pt",width:0});t.Push(n)},a.Phantom=function(t,e,r,n){var a=t.create("node","mphantom",[t.ParseArg(e)]);(r||n)&&(a=t.create("node","mpadded",[a]),n&&(f.default.setAttribute(a,"height",0),f.default.setAttribute(a,"depth",0)),r&&f.default.setAttribute(a,"width",0));var i=t.create("node","TeXAtom",[a]);t.Push(i)},a.Smash=function(t,e){var r=g.default.trimSpaces(t.GetBrackets(e,"")),n=t.create("node","mpadded",[t.ParseArg(e)]);switch(r){case"b":f.default.setAttribute(n,"depth",0);break;case"t":f.default.setAttribute(n,"height",0);break;default:f.default.setAttribute(n,"height",0),f.default.setAttribute(n,"depth",0)}var a=t.create("node","TeXAtom",[n]);t.Push(a)},a.Lap=function(t,e){var r=t.create("node","mpadded",[t.ParseArg(e)],{width:0});"\\llap"===e&&f.default.setAttribute(r,"lspace","-1width");var n=t.create("node","TeXAtom",[r]);t.Push(n)},a.RaiseLower=function(t,e){var r=t.GetDimen(e),n=t.itemFactory.create("position").setProperties({name:t.currentCS,move:"vertical"});"-"===r.charAt(0)&&(r=r.slice(1),e="raise"===e.substr(1)?"\\lower":"\\raise"),"\\lower"===e?(n.setProperty("dh","-"+r),n.setProperty("dd","+"+r)):(n.setProperty("dh","+"+r),n.setProperty("dd","-"+r)),t.Push(n)},a.MoveLeftRight=function(t,e){var r=t.GetDimen(e),n="-"===r.charAt(0)?r.slice(1):"-"+r;if("\\moveleft"===e){var a=r;r=n,n=a}t.Push(t.itemFactory.create("position").setProperties({name:t.currentCS,move:"horizontal",left:t.create("node","mspace",[],{width:r}),right:t.create("node","mspace",[],{width:n})}))},a.Hskip=function(t,e){var r=t.create("node","mspace",[],{width:t.GetDimen(e)});t.Push(r)},a.Rule=function(t,e,r){var n={width:t.GetDimen(e),height:t.GetDimen(e),depth:t.GetDimen(e)};"blank"!==r&&(n.mathbackground=t.stack.env.color||"black");var a=t.create("node","mspace",[],n);t.Push(a)},a.rule=function(t,e){var r=t.GetBrackets(e),n=t.GetDimen(e),a=t.GetDimen(e),i=t.create("node","mspace",[],{width:n,height:a,mathbackground:t.stack.env.color||"black"});r&&(i=t.create("node","mpadded",[i],{voffset:r}),r.match(/^\-/)?(f.default.setAttribute(i,"height",r),f.default.setAttribute(i,"depth","+"+r.substr(1))):f.default.setAttribute(i,"height","+"+r)),t.Push(i)},a.MakeBig=function(t,e,r,n){var a=String(n*=1.2/.85).replace(/(\.\d\d\d).+/,"$1")+"em",i=t.GetDelimiter(e,!0),o=t.create("token","mo",{minsize:a,maxsize:a,fence:!0,stretchy:!0,symmetric:!0},i),s=t.create("node","TeXAtom",[o],{texClass:r});t.Push(s)},a.BuildRel=function(t,e){var r=t.ParseUpTo(e,"\\over"),n=t.ParseArg(e),a=t.create("node","munderover");f.default.setChild(a,0,n),f.default.setChild(a,1,null),f.default.setChild(a,2,r);var i=t.create("node","TeXAtom",[a],{texClass:y.TEXCLASS.REL});t.Push(i)},a.HBox=function(t,e,r){t.PushAll(g.default.internalMath(t,t.GetArgument(e),r))},a.FBox=function(t,e){var r=g.default.internalMath(t,t.GetArgument(e)),n=t.create("node","menclose",r,{notation:"box"});t.Push(n)},a.Not=function(t,e){t.Push(t.itemFactory.create("not"))},a.Dots=function(t,e){var r=f.default.createEntity("2026"),n=f.default.createEntity("22EF"),a=t.create("token","mo",{stretchy:!1},r),i=t.create("token","mo",{stretchy:!1},n);t.Push(t.itemFactory.create("dots").setProperties({ldots:a,cdots:i}))},a.Matrix=function(t,e,r,n,a,i,o,s,l,u){var c=t.GetNext();if(""===c)throw new d.default("MissingArgFor","Missing argument for %1",t.currentCS);"{"===c?t.i++:(t.string=c+"}"+t.string.slice(t.i+1),t.i=0);var f=t.itemFactory.create("array").setProperty("requireClose",!0);f.arraydef={rowspacing:o||"4pt",columnspacing:i||"1em"},l&&f.setProperty("isCases",!0),u&&(f.setProperty("isNumbered",!0),f.arraydef.side=u),(r||n)&&(f.setProperty("open",r),f.setProperty("close",n)),"D"===s&&(f.arraydef.displaystyle=!0),null!=a&&(f.arraydef.columnalign=a),t.Push(f)},a.Entry=function(t,e){if(t.Push(t.itemFactory.create("cell").setProperties({isEntry:!0,name:e})),t.stack.Top().getProperty("isCases")){for(var r=t.string,n=0,a=-1,i=t.i,o=r.length;i<o;){var s=r.charAt(i);if("{"===s)n++,i++;else if("}"===s)0===n?o=0:(0===--n&&a<0&&(a=i-t.i),i++);else{if("&"===s&&0===n)throw new d.default("ExtraAlignTab","Extra alignment tab in \\cases text");"\\"===s?r.substr(i).match(/^((\\cr)[^a-zA-Z]|\\\\)/)?o=0:i+=2:i++}}var l=r.substr(t.i,i-t.i);if(!l.match(/^\s*\\text[^a-zA-Z]/)||a!==l.replace(/\s+$/,"").length-1){var u=g.default.internalMath(t,l,0);t.PushAll(u),t.i=i}}},a.Cr=function(t,e){t.Push(t.itemFactory.create("cell").setProperties({isCR:!0,name:e}))},a.CrLaTeX=function(t,e){var r;if("["===t.string.charAt(t.i)){var n=t.GetBrackets(e,""),a=p(g.default.matchDimen(n),3),i=a[0],o=a[1];a[2];if(n&&!i)throw new d.default("BracketMustBeDimension","Bracket argument to %1 must be a dimension",t.currentCS);r=i+o}t.Push(t.itemFactory.create("cell").setProperties({isCR:!0,name:e,linebreak:!0}));var s,l=t.stack.Top();if(l instanceof h.ArrayItem){if(r&&l.arraydef.rowspacing){var u=l.arraydef.rowspacing.split(/ /);if(!l.getProperty("rowspacing")){var c=g.default.dimen2em(u[0]);l.setProperty("rowspacing",c)}for(var f=l.getProperty("rowspacing");u.length<l.table.length;)u.push(g.default.Em(f));u[l.table.length-1]=g.default.Em(Math.max(0,f+g.default.dimen2em(r))),l.arraydef.rowspacing=u.join(" ")}}else r&&(s=t.create("node","mspace",[],{depth:r}),t.Push(s)),s=t.create("node","mspace",[],{linebreak:m.TexConstant.LineBreak.NEWLINE}),t.Push(s)},a.HLine=function(t,e,r){null==r&&(r="solid");var n=t.stack.Top();if(!(n instanceof h.ArrayItem)||n.Size())throw new d.default("Misplaced","Misplaced %1",t.currentCS);if(n.table.length){for(var a=n.arraydef.rowlines?n.arraydef.rowlines.split(/ /):[];a.length<n.table.length;)a.push("none");a[n.table.length-1]=r,n.arraydef.rowlines=a.join(" ")}else n.frame.push("top")},a.HFill=function(t,e){var r=t.stack.Top();if(!(r instanceof h.ArrayItem))throw new d.default("UnsupportedHFill","Unsupported use of %1",t.currentCS);r.hfill.push(r.Size())},a.BeginEnd=function(t,e){var r=t.GetArgument(e);if(r.match(/\\/i))throw new d.default("InvalidEnv","Invalid environment name '%1'",r);var n=t.configuration.handlers.get("environment").lookup(r);if(n&&"\\end"===e){if(!n.args[0]){var a=t.itemFactory.create("end").setProperty("name",r);return void t.Push(a)}t.stack.env.closing=r}if(++t.macroCount>t.configuration.options.maxMacros)throw new d.default("MaxMacroSub2","MathJax maximum substitution count exceeded; is there a recursive latex environment?");t.parse("environment",[t,r])},a.Array=function(t,e,r,n,a,i,o,s,l){var u=("c"+(a=a||t.GetArgument("\\begin{"+e.getName()+"}"))).replace(/[^clr|:]/g,"").replace(/[^|:]([|:])+/g,"$1");a=(a=a.replace(/[^clr]/g,"").split("").join(" ")).replace(/l/g,"left").replace(/r/g,"right").replace(/c/g,"center");var c=t.itemFactory.create("array");return c.arraydef={columnalign:a,columnspacing:i||"1em",rowspacing:o||"4pt"},u.match(/[|:]/)&&(u.charAt(0).match(/[|:]/)&&(c.frame.push("left"),c.dashed=":"===u.charAt(0)),u.charAt(u.length-1).match(/[|:]/)&&c.frame.push("right"),u=u.substr(1,u.length-2),c.arraydef.columnlines=u.split("").join(" ").replace(/[^|: ]/g,"none").replace(/\|/g,"solid").replace(/:/g,"dashed")),r&&c.setProperty("open",t.convertDelimiter(r)),n&&c.setProperty("close",t.convertDelimiter(n)),"D"===s?c.arraydef.displaystyle=!0:s&&(c.arraydef.displaystyle=!1),"S"===s&&(c.arraydef.scriptlevel=1),l&&(c.arraydef.useHeight=!1),t.Push(e),c},a.AlignedArray=function(t,e){var r=t.GetBrackets("\\begin{"+e.getName()+"}"),n=a.Array(t,e);return g.default.setArrayAlign(n,r)},a.Equation=function(t,e,r){return t.Push(e),g.default.checkEqnEnv(t),t.itemFactory.create("equation",r).setProperty("name",e.getName())},a.EqnArray=function(t,e,r,n,a,i){t.Push(e),n&&g.default.checkEqnEnv(t),a=(a=a.replace(/[^clr]/g,"").split("").join(" ")).replace(/l/g,"left").replace(/r/g,"right").replace(/c/g,"center");var o=t.itemFactory.create("eqnarray",e.getName(),r,n,t.stack.global);return o.arraydef={displaystyle:!0,columnalign:a,columnspacing:i||"1em",rowspacing:"3pt",side:t.options.tagSide,minlabelspacing:t.options.tagIndent},o},a.HandleNoTag=function(t,e){t.tags.notag()},a.HandleLabel=function(t,e){t.stack.global;var r=t.GetArgument(e);if(""!==r&&!t.tags.refUpdate){if(t.tags.label)throw new d.default("MultipleCommand","Multiple %1",t.currentCS);if(t.tags.label=r,(t.tags.allLabels[r]||t.tags.labels[r])&&!t.options.ignoreDuplicateLabels)throw new d.default("MultipleLabel","Label '%1' multiply defined",r);t.tags.labels[r]=new s.Label}},a.HandleRef=function(t,e,r){var n=t.GetArgument(e),a=t.tags.allLabels[n]||t.tags.labels[n];a||(t.tags.refUpdate||(t.tags.redo=!0),a=new s.Label);var i=a.tag;r&&(i=t.tags.formatTag(i));var o=t.create("node","mrow",g.default.internalMath(t,i),{href:t.tags.formatUrl(a.id,t.options.baseURL),class:"MathJax_ref"});t.Push(o)},a.Macro=function(t,e,r,n,a){if(n){var i=[];if(null!=a){var o=t.GetBrackets(e);i.push(null==o?a:o)}for(var s=i.length;s<n;s++)i.push(t.GetArgument(e));r=g.default.substituteArgs(t,i,r)}if(t.string=g.default.addArgs(t,r,t.string.slice(t.i)),t.i=0,++t.macroCount>t.configuration.options.maxMacros)throw new d.default("MaxMacroSub1","MathJax maximum macro substitution count exceeded; is there a recursive macro call?")},a.MathChoice=function(t,e){var r=t.ParseArg(e),n=t.ParseArg(e),a=t.ParseArg(e),i=t.ParseArg(e);t.Push(t.create("node","mathchoice",[r,n,a,i]))},e.default=a},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var u=r(0),c=r(4),n=r(16),f=r(2),p=r(32),h={NewCommand:function(t,e){var r=f.default.trimSpaces(t.GetArgument(e)),n=t.GetBrackets(e),a=t.GetBrackets(e),i=t.GetArgument(e);if("\\"===r.charAt(0)&&(r=r.substr(1)),!r.match(/^(.|[a-z]+)$/i))throw new u.default("IllegalControlSequenceName","Illegal control sequence name for %1",e);if(n&&!(n=f.default.trimSpaces(n)).match(/^[0-9]+$/))throw new u.default("IllegalParamNumber","Illegal number of parameters specified in %1",e);p.default.addMacro(t,r,h.Macro,[i,n,a])},NewEnvironment:function(t,e){var r=f.default.trimSpaces(t.GetArgument(e)),n=t.GetBrackets(e),a=t.GetBrackets(e),i=t.GetArgument(e),o=t.GetArgument(e);if(n&&!(n=f.default.trimSpaces(n)).match(/^[0-9]+$/))throw new u.default("IllegalParamNumber","Illegal number of parameters specified in %1",e);p.default.addEnvironment(t,r,h.BeginEnv,[!0,i,o,n,a])},MacroDef:function(t,e){var r=p.default.GetCSname(t,e),n=p.default.GetTemplate(t,e,"\\"+r),a=t.GetArgument(e);n instanceof Array?p.default.addMacro(t,r,h.MacroWithTemplate,[a].concat(n)):p.default.addMacro(t,r,h.Macro,[a,n])},Let:function(t,e){var r=p.default.GetCSname(t,e),n=t.GetNext();"="===n&&(t.i++,n=t.GetNext());var a=t.configuration.handlers;if("\\"!==n){t.i++;var i=a.get("delimiter").lookup(n);i?p.default.addDelimiter(t,"\\"+r,i.char,i.attributes):p.default.addMacro(t,r,h.Macro,[n])}else{e=p.default.GetCSname(t,e);var o=a.get("delimiter").lookup("\\"+e);if(o)return void p.default.addDelimiter(t,"\\"+r,o.char,o.attributes);var s=a.get("macro").applicable(e);if(!s)return;if(s instanceof c.MacroMap){var l=s.lookup(e);return void p.default.addMacro(t,r,l.func,l.args,l.symbol)}o=s.lookup(e);var u=p.default.disassembleSymbol(r,o);p.default.addMacro(t,r,function(t,e){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var a=p.default.assembleSymbol(r);return s.parser(t,a)},u)}},MacroWithTemplate:function(t,e,r,n){for(var a=[],i=4;i<arguments.length;i++)a[i-4]=arguments[i];var o=parseInt(n,10);if(o){var s=[];if(t.GetNext(),a[0]&&!p.default.MatchParam(t,a[0]))throw new u.default("MismatchUseDef","Use of %1 doesn't match its definition",e);for(var l=0;l<o;l++)s.push(p.default.GetParameter(t,e,a[l+1]));r=f.default.substituteArgs(t,s,r)}if(t.string=f.default.addArgs(t,r,t.string.slice(t.i)),t.i=0,++t.macroCount>t.configuration.options.maxMacros)throw new u.default("MaxMacroSub1","MathJax maximum macro substitution count exceeded; is here a recursive macro call?")},BeginEnv:function(t,e,r,n,a,i){if(e.getProperty("end")&&t.stack.env.closing===e.getName()){delete t.stack.env.closing;var o=t.string.slice(t.i);return t.string=n,t.i=0,t.Parse(),t.string=o,t.i=0,t.itemFactory.create("end").setProperty("name",e.getName())}if(a){var s=[];if(null!=i){var l=t.GetBrackets("\\begin{"+e.getName()+"}");s.push(null==l?i:l)}for(var u=s.length;u<a;u++)s.push(t.GetArgument("\\begin{"+e.getName()+"}"));r=f.default.substituteArgs(t,s,r),n=f.default.substituteArgs(t,[],n)}return t.string=f.default.addArgs(t,r,t.string.slice(t.i)),t.i=0,t.itemFactory.create("beginEnv").setProperty("name",e.getName())}};h.Macro=n.default.Macro,e.default=h},function(t,e,r){"use strict";var n,a=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var a in e=arguments[r])Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a]);return t}).apply(this,arguments)},u=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,a,i=r.call(t),o=[];try{for(;(void 0===e||0<e--)&&!(n=i.next()).done;)o.push(n.value)}catch(t){a={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(a)throw a.error}}return o},l=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0});var o=r(37),c=r(7),f=r(19),p=r(20),s=r(1),h=r(9),d=r(0),m=r(23),g=r(12),y=r(5);r(26);var v,b=(v=o.AbstractInputJax,a(x,v),x.configure=function(t){var e,r,n=y.Configuration.empty();try{for(var a=l(t),i=a.next();!i.done;i=a.next()){var o=i.value,s=y.ConfigurationHandler.get(o);s&&n.append(s)}}catch(t){e={error:t}}finally{try{i&&!i.done&&(r=a.return)&&r.call(a)}finally{if(e)throw e.error}}return n.init(n),n},x.tags=function(t,e){g.TagsFactory.addTags(e.tags),g.TagsFactory.setDefault(t.options.tags),t.tags=g.TagsFactory.getDefault(),t.tags.configuration=t},x.prototype.setMmlFactory=function(t){v.prototype.setMmlFactory.call(this,t),this._parseOptions.nodeFactory.setMmlFactory(t)},Object.defineProperty(x.prototype,"parseOptions",{get:function(){return this._parseOptions},enumerable:!0,configurable:!0}),x.prototype.compile=function(t,e){this.parseOptions.clear(),this.executeFilters(this.preFilters,t,e,this.parseOptions);var r,n=t.display;this.latex=t.math,this.parseOptions.tags.startEquation(t);try{r=new h.default(this.latex,{display:n,isInner:!1},this.parseOptions).mml()}catch(t){if(!(t instanceof d.default))throw t;this.parseOptions.error=!0,r=this.formatError(t)}return r=this.parseOptions.nodeFactory.create("node","math",[r]),n&&s.default.setAttribute(r,"display","block"),this.parseOptions.tags.finishEquation(t),this.parseOptions.root=r,this.executeFilters(this.postFilters,t,e,this.parseOptions),this.mathNode=this.parseOptions.root,this.mathNode},x.prototype.findMath=function(t){return this.findTeX.findMath(t)},x.prototype.formatError=function(t){var e=t.message.replace(/\n.*/,"");return this.parseOptions.nodeFactory.create("error",e,t.id,this.latex)},x.NAME="TeX",x.OPTIONS=i(i({},o.AbstractInputJax.OPTIONS),{FindTeX:null,packages:["base"],digits:/^(?:[0-9]+(?:\{,\}[0-9]{3})*(?:\.[0-9]*)?|\.[0-9]+)/,maxBuffer:5120}),x);function x(t){void 0===t&&(t={});var e=this,r=u(c.separateOptions(t,x.OPTIONS,f.FindTeX.OPTIONS),3),n=r[0],a=r[1],i=r[2];(e=v.call(this,a)||this).findTeX=e.options.FindTeX||new f.FindTeX(i);var o=e.options.packages,s=e.configuration=x.configure(o),l=e._parseOptions=new m.default(s,[e.options,g.TagsFactory.OPTIONS]);return c.userOptions(l.options,n),s.config(s,e),x.tags(l,s),e.postFilters.add(p.default.cleanSubSup,-5),e.postFilters.add(p.default.setInherited,-4),e.postFilters.add(p.default.cleanStretchy,-3),e.postFilters.add(p.default.cleanAttributes,-2),e.postFilters.add(p.default.combineRelations,-1),e}e.TeX=b},function(t,e,r){"use strict";var n,a=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),f=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,a,i=r.call(t),o=[];try{for(;(void 0===e||0<e--)&&!(n=i.next()).done;)o.push(n.value)}catch(t){a={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(a)throw a.error}}return o};Object.defineProperty(e,"__esModule",{value:!0});var i,o=r(38),s=r(39),p=r(40),l=(i=o.AbstractFindMath,a(u,i),u.prototype.getPatterns=function(){var e=this,t=this.options,r=[],n=[],a=[];this.end={},this.env=this.sub=0;var i=1;t.inlineMath.forEach(function(t){return e.addPattern(r,t,!1)}),t.displayMath.forEach(function(t){return e.addPattern(r,t,!0)}),r.length&&n.push(r.sort(s.sortLength).join("|")),t.processEnvironments&&(n.push("\\\\begin\\{([^}]*)\\}"),this.env=i,i++),t.processEscapes&&a.push("\\\\([\\\\$])"),t.processRefs&&a.push("(\\\\(?:eq)?ref\\{[^}]*\\})"),a.length&&(n.push("("+a.join("|")+")"),this.sub=i),this.start=new RegExp(n.join("|"),"g"),this.hasPatterns=0<n.length},u.prototype.addPattern=function(t,e,r){var n=f(e,2),a=n[0],i=n[1];t.push(s.quotePattern(a)),this.end[a]=[i,r,this.endPattern(i)]},u.prototype.endPattern=function(t){return new RegExp(s.quotePattern(t)+"|\\\\(?:[a-zA-Z]|.)|[{}]","g")},u.prototype.findEnd=function(t,e,r,n){for(var a,i=f(n,3),o=i[0],s=i[1],l=i[2],u=l.lastIndex=r.index+r[0].length,c=0;a=l.exec(t);){if(a[0]===o&&0===c)return p.protoItem(r[0],t.substr(u,a.index-u),a[0],e,r.index,a.index+a[0].length,s);"{"===a[0]?c++:"}"===a[0]&&c&&c--}return null},u.prototype.findMathInString=function(t,e,r){var n,a;for(this.start.lastIndex=0;n=this.start.exec(r);){if(void 0!==n[this.env]&&this.env){var i="\\end{"+n[this.env]+"}";(a=this.findEnd(r,e,n,[i,!0,this.endPattern(i)]))&&(a.math=a.open+a.math+a.close,a.open=a.close="")}else if(void 0!==n[this.sub]&&this.sub){var o=n[this.sub];i=n.index+n[this.sub].length,a=2===o.length?p.protoItem("",o.substr(1),"",e,n.index,i):p.protoItem("",o,"",e,n.index,i,!1)}else a=this.findEnd(r,e,n,this.end[n[0]]);a&&(t.push(a),this.start.lastIndex=a.end.n)}},u.prototype.findMath=function(t){var e=[];if(this.hasPatterns)for(var r=0,n=t.length;r<n;r++)this.findMathInString(e,r,t[r]);return e},u.OPTIONS={inlineMath:[["\\(","\\)"]],displayMath:[["$$","$$"],["\\[","\\]"]],processEscapes:!0,processEnvironments:!0,processRefs:!0},u);function u(t){var e=i.call(this,t)||this;return e.getPatterns(),e}e.FindTeX=l},function(t,e,r){"use strict";var h=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0});var n,d=r(6),m=r(1);!function(t){t.cleanStretchy=function(t){var e,r,n=t.data;try{for(var a=h(n.getList("fixStretchy")),i=a.next();!i.done;i=a.next()){var o=i.value;if(m.default.getProperty(o,"fixStretchy")){var s=m.default.getForm(o);s&&s[3]&&s[3].stretchy&&m.default.setAttribute(o,"stretchy",!1);var l=o.parent;if(!(m.default.getTexClass(o)||s&&s[2])){var u=n.nodeFactory.create("node","TeXAtom",[o]);l.replaceChild(u,o),u.inheritAttributesFrom(o)}m.default.removeProperties(o,"fixStretchy")}}}catch(t){e={error:t}}finally{try{i&&!i.done&&(r=a.return)&&r.call(a)}finally{if(e)throw e.error}}},t.cleanAttributes=function(t){t.data.root.walkTree(function(t,e){var r,n,a=t.attributes;try{for(var i=h(a.getExplicitNames()),o=i.next();!o.done;o=i.next()){var s=o.value;a.attributes[s]===t.attributes.getInherited(s)&&delete a.attributes[s]}}catch(t){r={error:t}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}},{})},t.combineRelations=function(t){var e,r;try{for(var n=h(t.data.getList("mo")),a=n.next();!a.done;a=n.next()){var i=a.value;if(!i.getProperty("relationsCombined")&&i.parent&&(!i.parent||m.default.isType(i.parent,"mrow"))&&m.default.getTexClass(i)===d.TEXCLASS.REL){for(var o=i.parent,s=void 0,l=o.childNodes,u=l.indexOf(i)+1,c=m.default.getProperty(i,"variantForm");u<l.length&&(s=l[u])&&m.default.isType(s,"mo")&&m.default.getTexClass(s)===d.TEXCLASS.REL;){if(c!==m.default.getProperty(s,"variantForm")||!p(i,s)){null==i.attributes.getExplicit("rspace")&&m.default.setAttribute(i,"rspace","0pt"),null==s.attributes.getExplicit("lspace")&&m.default.setAttribute(s,"lspace","0pt");break}m.default.appendChildren(i,m.default.getChildren(s)),f(["stretchy","rspace"],i,s),m.default.setProperties(i,s.getAllProperties()),l.splice(u,1),s.parent=null,s.setProperty("relationsCombined",!0)}i.attributes.setInherited("form",i.getForms()[0])}}}catch(t){e={error:t}}finally{try{a&&!a.done&&(r=n.return)&&r.call(n)}finally{if(e)throw e.error}}};function r(t,e,r){var n,a;try{for(var i=h(t.getList("m"+e+r)),o=i.next();!o.done;o=i.next()){var s=o.value,l=s.childNodes;if(!l[s[e]]||!l[s[r]]){var u=s.parent,c=l[s[e]]?t.nodeFactory.create("node","m"+e,[l[s.base],l[s[e]]]):t.nodeFactory.create("node","m"+r,[l[s.base],l[s[r]]]);m.default.copyAttributes(s,c),u?u.replaceChild(c,s):t.root=c}}}catch(t){n={error:t}}finally{try{o&&!o.done&&(a=i.return)&&a.call(i)}finally{if(n)throw n.error}}}var f=function(t,e,r){var n=e.attributes,a=r.attributes;t.forEach(function(t){var e=a.getExplicit(t);null!=e&&n.set(t,e)})},p=function(t,e){function r(e,r){return e.getExplicitNames().filter(function(t){return t!==r&&("stretchy"!==t||e.getExplicit("stretchy"))})}var n,a,i=t.attributes,o=e.attributes,s=r(i,"lspace"),l=r(o,"rspace");if(s.length!==l.length)return!1;try{for(var u=h(s),c=u.next();!c.done;c=u.next()){var f=c.value;if(i.getExplicit(f)!==o.getExplicit(f))return!1}}catch(t){n={error:t}}finally{try{c&&!c.done&&(a=u.return)&&a.call(u)}finally{if(n)throw n.error}}return!0};t.cleanSubSup=function(t){var e=t.data;e.error||(r(e,"sub","sup"),r(e,"under","over"))},t.setInherited=function(t){t.data.root.setInheritedAttributes({},t.math.display,0,!1)}}(n=n||{}),e.default=n},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),r(10).add({NJcy:"\u040a",Nacute:"\u0143",Ncaron:"\u0147",Ncedil:"\u0145",Ncy:"\u041d",NegativeMediumSpace:"\u200b",NegativeThickSpace:"\u200b",NegativeThinSpace:"\u200b",NegativeVeryThinSpace:"\u200b",NewLine:"\n",NoBreak:"\u2060",NonBreakingSpace:"\xa0",Not:"\u2aec",NotCongruent:"\u2262",NotCupCap:"\u226d",NotEqualTilde:"\u2242\u0338",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226b\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2a7e\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224e\u0338",NotHumpEqual:"\u224f\u0338",NotLeftTriangleBar:"\u29cf\u0338",NotLessGreater:"\u2278",NotLessLess:"\u226a\u0338",NotLessSlantEqual:"\u2a7d\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2aa2\u0338",NotNestedLessLess:"\u2aa1\u0338",NotPrecedesEqual:"\u2aaf\u0338",NotReverseElement:"\u220c",NotRightTriangleBar:"\u29d0\u0338",NotSquareSubset:"\u228f\u0338",NotSquareSubsetEqual:"\u22e2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22e3",NotSubset:"\u2282\u20d2",NotSucceedsEqual:"\u2ab0\u0338",NotSucceedsTilde:"\u227f\u0338",NotSuperset:"\u2283\u20d2",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",Ntilde:"\xd1",Nu:"\u039d",nGg:"\u22d9\u0338",nGt:"\u226b\u20d2",nGtv:"\u226b\u0338",nLl:"\u22d8\u0338",nLt:"\u226a\u20d2",nLtv:"\u226a\u0338",nabla:"\u2207",nacute:"\u0144",nang:"\u2220\u20d2",nap:"\u2249",napE:"\u2a70\u0338",napid:"\u224b\u0338",napos:"\u0149",napprox:"\u2249",natural:"\u266e",naturals:"\u2115",nbsp:"\xa0",nbump:"\u224e\u0338",nbumpe:"\u224f\u0338",ncap:"\u2a43",ncaron:"\u0148",ncedil:"\u0146",ncong:"\u2247",ncongdot:"\u2a6d\u0338",ncup:"\u2a42",ncy:"\u043d",ndash:"\u2013",ne:"\u2260",neArr:"\u21d7",nearhk:"\u2924",nearrow:"\u2197",nedot:"\u2250\u0338",nequiv:"\u2262",nesear:"\u2928",nesim:"\u2242\u0338",nexist:"\u2204",nexists:"\u2204",ngE:"\u2267\u0338",nge:"\u2271",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2a7e\u0338",nges:"\u2a7e\u0338",ngsim:"\u2275",ngt:"\u226f",ngtr:"\u226f",nhArr:"\u21ce",nhpar:"\u2af2",ni:"\u220b",nis:"\u22fc",nisd:"\u22fa",niv:"\u220b",njcy:"\u045a",nlArr:"\u21cd",nlE:"\u2266\u0338",nldr:"\u2025",nle:"\u2270",nleftarrow:"\u219a",nleftrightarrow:"\u21ae",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2a7d\u0338",nles:"\u2a7d\u0338",nless:"\u226e",nlsim:"\u2274",nlt:"\u226e",nltri:"\u22ea",nltrie:"\u22ec",nmid:"\u2224",notin:"\u2209",notinE:"\u22f9\u0338",notindot:"\u22f5\u0338",notinva:"\u2209",notinvb:"\u22f7",notinvc:"\u22f6",notni:"\u220c",notniva:"\u220c",notnivb:"\u22fe",notnivc:"\u22fd",npar:"\u2226",nparallel:"\u2226",nparsl:"\u2afd\u20e5",npart:"\u2202\u0338",npolint:"\u2a14",npr:"\u2280",nprcue:"\u22e0",npre:"\u2aaf\u0338",nprec:"\u2280",npreceq:"\u2aaf\u0338",nrArr:"\u21cf",nrarrc:"\u2933\u0338",nrarrw:"\u219d\u0338",nrightarrow:"\u219b",nrtri:"\u22eb",nrtrie:"\u22ed",nsc:"\u2281",nsccue:"\u22e1",nsce:"\u2ab0\u0338",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22e2",nsqsupe:"\u22e3",nsub:"\u2284",nsubE:"\u2ac5\u0338",nsube:"\u2288",nsubset:"\u2282\u20d2",nsubseteq:"\u2288",nsubseteqq:"\u2ac5\u0338",nsucc:"\u2281",nsucceq:"\u2ab0\u0338",nsup:"\u2285",nsupE:"\u2ac6\u0338",nsupe:"\u2289",nsupset:"\u2283\u20d2",nsupseteq:"\u2289",nsupseteqq:"\u2ac6\u0338",ntgl:"\u2279",ntilde:"\xf1",ntlg:"\u2278",ntriangleleft:"\u22ea",ntrianglelefteq:"\u22ec",ntriangleright:"\u22eb",ntrianglerighteq:"\u22ed",num:"#",numero:"\u2116",numsp:"\u2007",nvHarr:"\u2904",nvap:"\u224d\u20d2",nvge:"\u2265\u20d2",nvgt:">\u20d2",nvinfin:"\u29de",nvlArr:"\u2902",nvle:"\u2264\u20d2",nvlt:"<\u20d2",nvltrie:"\u22b4\u20d2",nvrArr:"\u2903",nvrtrie:"\u22b5\u20d2",nvsim:"\u223c\u20d2",nwArr:"\u21d6",nwarhk:"\u2923",nwarrow:"\u2196",nwnear:"\u2927"},"n")},function(t,e,r){"use strict";var c=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},f=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,a,i=r.call(t),o=[];try{for(;(void 0===e||0<e--)&&!(n=i.next()).done;)o.push(n.value)}catch(t){a={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(a)throw a.error}}return o},p=this&&this.__spread||function(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(f(arguments[e]));return t};Object.defineProperty(e,"__esModule",{value:!0});var h=r(1),n=(Object.defineProperty(a.prototype,"env",{get:function(){return this._env},set:function(t){this._env=t},enumerable:!0,configurable:!0}),a.prototype.Push=function(){for(var e,t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];try{for(var a=c(r),i=a.next();!i.done;i=a.next()){var o=i.value;if(o){var s=h.default.isNode(o)?this._factory.create("mml",o):o;s.global=this.global;var l=f(this.stack.length?this.Top().checkItem(s):[null,!0],2),u=l[0];l[1]&&(u?(this.Pop(),this.Push.apply(this,p(u))):(this.stack.push(s),s.env?(Object.assign(s.env,this.env),this.env=s.env):s.env=this.env))}}}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=a.return)&&t.call(a)}finally{if(e)throw e.error}}},a.prototype.Pop=function(){var t=this.stack.pop();return t.isOpen||delete t.env,this.env=this.stack.length?this.Top().env:{},t},a.prototype.Top=function(t){return void 0===t&&(t=1),this.stack.length<t?null:this.stack[this.stack.length-t]},a.prototype.Prev=function(t){var e=this.Top();return t?e.First:e.Pop()},a.prototype.toString=function(){return"stack[\n "+this.stack.join("\n ")+"\n]"},a);function a(t,e,r){this._factory=t,this._env=e,this.global={},this.stack=[],this.global={isInner:r},this.stack=[this._factory.create("start",this.global)],e&&(this.stack[0].env=e),this.env=this.stack[0].env}e.default=n},function(t,e,r){"use strict";var n=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,a,i=r.call(t),o=[];try{for(;(void 0===e||0<e--)&&!(n=i.next()).done;)o.push(n.value)}catch(t){a={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(a)throw a.error}}return o},a=this&&this.__spread||function(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(n(arguments[e]));return t},l=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0});var i=r(24),o=r(3),s=r(25),u=r(7),c=(f.prototype.pushParser=function(t){this.parsers.unshift(t)},f.prototype.popParser=function(){this.parsers.shift()},Object.defineProperty(f.prototype,"parser",{get:function(){return this.parsers[0]},enumerable:!0,configurable:!0}),f.prototype.clear=function(){this.parsers=[],this.root=null,this.nodeLists={},this.error=!1,this.tags.resetTag()},f.prototype.addNode=function(t,e){var r=this.nodeLists[t];(r=r||(this.nodeLists[t]=[])).push(e)},f.prototype.getList=function(t){var e,r,n=this.nodeLists[t]||[],a=[];try{for(var i=l(n),o=i.next();!o.done;o=i.next()){var s=o.value;this.inTree(s)&&a.push(s)}}catch(t){e={error:t}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(e)throw e.error}}return this.nodeLists[t]=a},f.prototype.inTree=function(t){for(;t&&t!==this.root;)t=t.parent;return!!t},f);function f(t,e){void 0===e&&(e=[]),this.options={},this.parsers=[],this.root=null,this.nodeLists={},this.error=!1,this.handlers=new o.SubHandlers(t),this.nodeFactory=new s.NodeFactory,(this.nodeFactory.configuration=this).nodeFactory.setCreators(t.nodes),this.itemFactory=new i.default(t.items),this.itemFactory.configuration=this,u.defaultOptions.apply(void 0,a([this.options],e)),u.defaultOptions(this.options,t.options)}e.default=c},function(t,e,r){"use strict";var n,a,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0});var o,s=r(13),l=r(42),u=(o=s.BaseItem,i(c,o),c);function c(){return null!==o&&o.apply(this,arguments)||this}var f,p=(f=l.AbstractFactory,i(h,f),h.DefaultStackItems=((a={})[u.prototype.kind]=u,a),h);function h(){var t=null!==f&&f.apply(this,arguments)||this;return t.defaultKind="dummy",t.configuration=null,t}e.default=p},function(t,e,r){"use strict";var n=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,a,i=r.call(t),o=[];try{for(;(void 0===e||0<e--)&&!(n=i.next()).done;)o.push(n.value)}catch(t){a={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(a)throw a.error}}return o},a=this&&this.__spread||function(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(n(arguments[e]));return t};Object.defineProperty(e,"__esModule",{value:!0});var f=r(1),i=(o.prototype.setMmlFactory=function(t){this.mmlFactory=t},o.createNode=function(t,e,r,n,a){void 0===r&&(r=[]),void 0===n&&(n={});var i=t.mmlFactory.create(e),o=i.arity;if(o===1/0||-1===o)1===r.length&&r[0].isInferred?i.setChildren(f.default.getChildren(r[0])):i.setChildren(r);else{for(var s=[],l=0,u=void 0;u=r[l];l++)if(u.isInferred){var c=t.mmlFactory.create("mrow",{},f.default.getChildren(u));f.default.copyAttributes(u,c),s.push(c)}else s.push(u);i.setChildren(s)}return a&&i.appendChild(a),f.default.setProperties(i,n),i},o.createToken=function(t,e,r,n){void 0===r&&(r={}),void 0===n&&(n="");var a=t.create("text",n);return t.create("node",e,[],r,a)},o.createText=function(t,e){return null==e?null:t.mmlFactory.create("text").setText(e)},o.createError=function(t,e){var r=t.create("text",e),n=t.create("node","mtext",[],{},r);return t.create("node","merror",[n])},o.prototype.set=function(t,e){this.factory[t]=e},o.prototype.setCreators=function(t){for(var e in t)this.set(e,t[e])},o.prototype.create=function(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];var n=(this.factory[t]||this.factory.node).apply(void 0,a([this,e[0]],e.slice(1)));return this.configuration.addNode(e[0],n),n},o.prototype.get=function(t){return this.factory[t]},o);function o(){this.mmlFactory=null,this.factory={node:o.createNode,token:o.createToken,text:o.createText,error:o.createError}}e.NodeFactory=i},function(t,e,r){"use strict";var n,a,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0});var o=r(5),s=r(3),l=r(0),u=r(1),c=r(4),f=r(15),p=r(12);function h(t,e){var r=t.stack.env.font?{mathvariant:t.stack.env.font}:{},n=s.MapHandler.getMap("remap").lookup(e),a=t.create("token","mo",r,n?n.char:e);u.default.setProperty(a,"fixStretchy",!0),t.configuration.addNode("fixStretchy",a),t.Push(a)}r(44),new c.CharacterMap("remap",null,{"-":"\u2212","*":"\u2217","`":"\u2018"}),e.Other=h;var d,m=(d=p.AbstractTags,i(g,d),g);function g(){return null!==d&&d.apply(this,arguments)||this}e.BaseTags=m,e.BaseConfiguration=o.Configuration.create("base",{handler:{character:["command","special","letter","digit"],delimiter:["delimiter"],macro:["delimiter","macros","mathchar0mi","mathchar0mo","mathchar7"],environment:["environment"]},fallback:{character:h,macro:function(t,e){throw new l.default("UndefinedControlSequence","Undefined control sequence %1","\\"+e)},environment:function(t,e){throw new l.default("UnknownEnv","Unknown environment '%1'",e)}},items:(a={},a[f.StartItem.prototype.kind]=f.StartItem,a[f.StopItem.prototype.kind]=f.StopItem,a[f.OpenItem.prototype.kind]=f.OpenItem,a[f.CloseItem.prototype.kind]=f.CloseItem,a[f.PrimeItem.prototype.kind]=f.PrimeItem,a[f.SubsupItem.prototype.kind]=f.SubsupItem,a[f.OverItem.prototype.kind]=f.OverItem,a[f.LeftItem.prototype.kind]=f.LeftItem,a[f.RightItem.prototype.kind]=f.RightItem,a[f.BeginItem.prototype.kind]=f.BeginItem,a[f.EndItem.prototype.kind]=f.EndItem,a[f.StyleItem.prototype.kind]=f.StyleItem,a[f.PositionItem.prototype.kind]=f.PositionItem,a[f.CellItem.prototype.kind]=f.CellItem,a[f.MmlItem.prototype.kind]=f.MmlItem,a[f.FnItem.prototype.kind]=f.FnItem,a[f.NotItem.prototype.kind]=f.NotItem,a[f.DotsItem.prototype.kind]=f.DotsItem,a[f.ArrayItem.prototype.kind]=f.ArrayItem,a[f.EqnArrayItem.prototype.kind]=f.EqnArrayItem,a[f.EquationItem.prototype.kind]=f.EquationItem,a),options:{maxMacros:1e3,baseURL:"undefined"==typeof document||0===document.getElementsByTagName("base").length?"":String(document.location).replace(/#.*$/,"")},tags:{base:m}})},function(t,e,r){"use strict";var n,a=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0});var i,o=r(15),s=r(2),l=r(1),u=r(0),c=r(8),f=(i=o.ArrayItem,a(p,i),Object.defineProperty(p.prototype,"kind",{get:function(){return"multline"},enumerable:!0,configurable:!0}),p.prototype.EndEntry=function(){this.table.length&&s.default.fixInitialMO(this.factory.configuration,this.nodes);var t=this.getProperty("shove"),e=this.create("node","mtd",this.nodes,t?{columnalign:t}:{});this.setProperty("shove",null),this.row.push(e),this.Clear()},p.prototype.EndRow=function(){if(1!==this.row.length)throw new u.default("MultlineRowsOneCol","The rows within the %1 environment must have exactly one column","multline");var t=this.create("node","mtr",this.row);this.table.push(t),this.row=[]},p.prototype.EndTable=function(){if(i.prototype.EndTable.call(this),this.table.length){var t=this.table.length-1,e=-1;l.default.getAttribute(l.default.getChildren(this.table[0])[0],"columnalign")||l.default.setAttribute(l.default.getChildren(this.table[0])[0],"columnalign",c.TexConstant.Align.LEFT),l.default.getAttribute(l.default.getChildren(this.table[t])[0],"columnalign")||l.default.setAttribute(l.default.getChildren(this.table[t])[0],"columnalign",c.TexConstant.Align.RIGHT);var r=this.factory.configuration.tags.getTag();if(r){e=this.arraydef.side===c.TexConstant.Align.LEFT?0:this.table.length-1;var n=this.table[e],a=this.create("node","mlabeledtr",[r].concat(l.default.getChildren(n)));l.default.copyAttributes(n,a),this.table[e]=a}}this.factory.configuration.tags.end()},p);function p(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];var n=i.call(this,t)||this;return n.factory.configuration.tags.start("multline",!0,e[0]),n}e.MultlineItem=f},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var p=r(2),h=r(1),u=r(8),d=r(9),m=r(0),i=r(11),o=r(3),c=r(16),g=r(6),y={AmsEqnArray:function(t,e,r,n,a,i,o){var s=t.GetBrackets("\\begin{"+e.getName()+"}"),l=c.default.EqnArray(t,e,r,n,a,i,o);return p.default.setArrayAlign(l,s)},AlignAt:function(t,e,r,n){var a,i,o=e.getName(),s="",l=[];if(n||(i=t.GetBrackets("\\begin{"+o+"}")),(a=t.GetArgument("\\begin{"+o+"}")).match(/[^0-9]/))throw new m.default("PositiveIntegerArg","Argument to %1 must me a positive integer","\\begin{"+o+"}");for(var u=parseInt(a,10);0<u;)s+="rl",l.push("0em 0em"),u--;var c=l.join(" ");if(n)return y.EqnArray(t,e,r,n,s,c);var f=y.EqnArray(t,e,r,n,s,c);return p.default.setArrayAlign(f,i)},Multline:function(t,e,r){t.Push(e),p.default.checkEqnEnv(t);var n=t.itemFactory.create("multline",r,t.stack);return n.arraydef={displaystyle:!0,rowspacing:".5em",columnwidth:"100%",width:t.options.multlineWidth,side:t.options.tagSide,minlabelspacing:t.options.tagIndent},n},HandleDeclareOp:function(t,e){var r=t.GetStar()?"":"\\nolimits\\SkipLimits",n=p.default.trimSpaces(t.GetArgument(e));"\\"===n.charAt(0)&&(n=n.substr(1));var a=t.GetArgument(e);a=a.replace(/\*/g,"\\text{*}").replace(/-/g,"\\text{-}"),t.configuration.handlers.retrieve(o.ExtensionMaps.NEW_COMMAND).add(n,new i.Macro(n,y.Macro,["\\mathop{\\rm "+a+"}"+r]))},HandleOperatorName:function(t,e){var r=t.GetStar()?"":"\\nolimits\\SkipLimits",n=p.default.trimSpaces(t.GetArgument(e));n=n.replace(/\*/g,"\\text{*}").replace(/-/g,"\\text{-}"),t.string="\\mathop{\\rm "+n+"}"+r+" "+t.string.slice(t.i),t.i=0},SkipLimits:function(t,e){var r=t.GetNext(),n=t.i;"\\"===r&&++t.i&&"limits"!==t.GetCS()&&(t.i=n)},MultiIntegral:function(t,e,r){var n=t.GetNext();if("\\"===n){var a=t.i;n=t.GetArgument(e),t.i=a,"\\limits"===n&&(r="\\idotsint"===e?"\\!\\!\\mathop{\\,\\,"+r+"}":"\\!\\!\\!\\mathop{\\,\\,\\,"+r+"}")}t.string=r+" "+t.string.slice(t.i),t.i=0},xArrow:function(t,e,r,n,a){var i={width:"+"+(n+a)+"mu",lspace:n+"mu"},o=t.GetBrackets(e),s=t.ParseArg(e),l=t.create("token","mo",{stretchy:!0,texClass:g.TEXCLASS.REL},String.fromCharCode(r)),u=t.create("node","munderover",[l]),c=t.create("node","mpadded",[s],i);if(h.default.setAttribute(c,"voffset",".15em"),h.default.setChild(u,u.over,c),o){var f=new d.default(o,t.stack.env,t.configuration).mml();c=t.create("node","mpadded",[f],i),h.default.setAttribute(c,"voffset","-.24em"),h.default.setChild(u,u.under,c)}h.default.setProperty(u,"subsupOK",!0),t.Push(u)},HandleShove:function(t,e,r){var n=t.stack.Top();if("multline"!==n.kind)throw new m.default("CommandOnlyAllowedInEnv","%1 only allowed in %2 environment",t.currentCS,"multline");if(n.Size())throw new m.default("CommandAtTheBeginingOfLine","%1 must come at the beginning of the line",t.currentCS);n.setProperty("shove",r)},CFrac:function(t,e){var r=p.default.trimSpaces(t.GetBrackets(e,"")),n=t.GetArgument(e),a=t.GetArgument(e),i={l:u.TexConstant.Align.LEFT,r:u.TexConstant.Align.RIGHT,"":""},o=new d.default("\\strut\\textstyle{"+n+"}",t.stack.env,t.configuration).mml(),s=new d.default("\\strut\\textstyle{"+a+"}",t.stack.env,t.configuration).mml(),l=t.create("node","mfrac",[o,s]);if(null==(r=i[r]))throw new m.default("IllegalAlign","Illegal alignment specified in %1",t.currentCS);r&&h.default.setProperties(l,{numalign:r,denomalign:r}),t.Push(l)},Genfrac:function(t,e,r,n,a,i){null==r&&(r=t.GetDelimiterArg(e)),null==n&&(n=t.GetDelimiterArg(e)),null==a&&(a=t.GetArgument(e)),null==i&&(i=p.default.trimSpaces(t.GetArgument(e)));var o=t.ParseArg(e),s=t.ParseArg(e),l=t.create("node","mfrac",[o,s]);if(""!==a&&h.default.setAttribute(l,"linethickness",a),(r||n)&&(h.default.setProperty(l,"withDelims",!0),l=p.default.fixedFence(t.configuration,r,l,n)),""!==i){var u=parseInt(i,10),c=["D","T","S","SS"][u];if(null==c)throw new m.default("BadMathStyleFor","Bad math style for %1",t.currentCS);l=t.create("node","mstyle",[l]),"D"===c?h.default.setProperties(l,{displaystyle:!0,scriptlevel:0}):h.default.setProperties(l,{displaystyle:!1,scriptlevel:u-1})}t.Push(l)},HandleTag:function(t,e){if(!t.tags.currentTag.taggable&&t.tags.env)throw new m.default("CommandNotAllowedInEnv","%1 not allowed in %2 environment",t.currentCS,t.tags.env);if(t.tags.currentTag.tag)throw new m.default("MultipleCommand","Multiple %1",t.currentCS);var r=t.GetStar(),n=p.default.trimSpaces(t.GetArgument(e));t.tags.tag(n,r)}};y.HandleNoTag=c.default.HandleNoTag,y.HandleRef=c.default.HandleRef,y.Macro=c.default.Macro,y.Accent=c.default.Accent,y.Tilde=c.default.Tilde,y.Array=c.default.Array,y.Spacer=c.default.Spacer,y.NamedOp=c.default.NamedOp,y.EqnArray=c.default.EqnArray,e.default=y},function(t,d,m){"use strict";(function(t){var l=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},r=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,a,i=r.call(t),o=[];try{for(;(void 0===e||0<e--)&&!(n=i.next()).done;)o.push(n.value)}catch(t){a={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(a)throw a.error}}return o},a=this&&this.__spread||function(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(r(arguments[e]));return t};Object.defineProperty(d,"__esModule",{value:!0});var s=m(5),e=m(4),i=m(0),o=m(30),u=m(31),c=m(51),n=m(7),f=t.MathJax&&t.MathJax.config||{};function p(t,e){var r,n=t.parseOptions.options.require,a=e.substr(n.prefix.length);if(n.required.indexOf(a)<0){n.required.push(a),function(t,e){var r,n;void 0===e&&(e=[]);var a=t.parseOptions.options.require.prefix;try{for(var i=l(e),o=i.next();!o.done;o=i.next()){var s=o.value;s.substr(0,a.length)===a&&p(t,s)}}catch(t){r={error:t}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}}(t,u.CONFIG.dependencies[e]);var i=s.ConfigurationHandler.get(a);if(i){var o=f[e]||{};i.options&&1===Object.keys(i.options).length&&i.options[a]&&((r={})[a]=o,o=r),t.configuration.register(i,t,o)}}}function h(t,e){var r=t.options.require,n=r.allow,a=("["===e.substr(0,1)?"":r.prefix)+e;if(!(n.hasOwnProperty(a)?n[a]:n.hasOwnProperty(e)?n[e]:r.defaultAllow))throw new i.default("BadRequire",'Extension "%1" is now allowed to be loaded',a);o.Package.packages.has(a)?p(r.jax,a):c.mathjax.retryAfter(u.Loader.load(a))}d.RequireLoad=h,d.RequireMethods={Require:function(t,e){var r=t.GetArgument(e);if(r.match(/[^_a-zA-Z0-9]/)||""===r)throw new i.default("BadPackageName","Argument for %1 is not a valid package name",e);h(t,r)}},d.options={require:{allow:n.expandable({base:!1,"all-packages":!1}),defaultAllow:!0,prefix:"tex"}},new e.CommandMap("require",{require:"Require"},d.RequireMethods),d.RequireConfiguration=s.Configuration.create("require",{handler:{macro:["require"]},config:function(t,e){var r=e.parseOptions.options.require;r.jax=e,r.required=a(e.options.packages);var n=r.prefix;if(n.match(/[^_a-zA-Z0-9]/))throw Error("Illegal characters used in \\require prefix");u.CONFIG.paths[n]||(u.CONFIG.paths[n]="[mathjax]/input/tex/extensions"),r.prefix="["+n+"]/"},options:d.options})}).call(this,m(50))},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PackageError=MathJax._.components.package.PackageError,e.Package=MathJax._.components.package.Package},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Loader=MathJax._.components.loader.Loader,e.MathJax=MathJax._.components.loader.MathJax,e.CONFIG=MathJax._.components.loader.CONFIG},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,a,i=r(2),l=r(0),o=r(11),s=r(3);function u(t,e){return t.string.substr(t.i,e.length)!==e?0:e.match(/\\[a-z]+$/i)&&t.string.charAt(t.i+e.length).match(/[a-z]/i)?0:(t.i+=e.length,1)}(a=n=n||{}).disassembleSymbol=function(t,e){var r=[t,e.char];if(e.attributes)for(var n in e.attributes)r.push(n),r.push(e.attributes[n]);return r},a.assembleSymbol=function(t){for(var e=t[0],r=t[1],n={},a=2;a<t.length;a+=2)n[t[a]]=t[a+1];return new o.Symbol(e,r,n)},a.GetCSname=function(t,e){if("\\"!==t.GetNext())throw new l.default("MissingCS","%1 must be followed by a control sequence",e);return i.default.trimSpaces(t.GetArgument(e)).substr(1)},a.GetTemplate=function(t,e,r){for(var n=t.GetNext(),a=[],i=0,o=t.i;t.i<t.string.length;){if("#"===(n=t.GetNext())){if(o!==t.i&&(a[i]=t.string.substr(o,t.i-o)),!(n=t.string.charAt(++t.i)).match(/^[1-9]$/))throw new l.default("CantUseHash2","Illegal use of # in template for %1",r);if(parseInt(n)!==++i)throw new l.default("SequentialParam","Parameters for %1 must be numbered sequentially",r);o=t.i+1}else if("{"===n)return o!==t.i&&(a[i]=t.string.substr(o,t.i-o)),0<a.length?[i.toString()].concat(a):i;t.i++}throw new l.default("MissingReplacementString","Missing replacement string for definition of %1",e)},a.GetParameter=function(t,e,r){if(null==r)return t.GetArgument(e);for(var n=t.i,a=0,i=0;t.i<t.string.length;){var o=t.string.charAt(t.i);if("{"===o)t.i===n&&(i=1),t.GetArgument(e),a=t.i-n;else{if(u(t,r))return i&&(n++,a-=2),t.string.substr(n,a);if("\\"===o){t.i++,a++,i=0;var s=t.string.substr(t.i).match(/[a-z]+|./i);s&&(t.i+=s[0].length,a=t.i-n)}else t.i++,a++,i=0}}throw new l.default("RunawayArgument","Runaway argument for %1?",e)},a.MatchParam=u,a.addDelimiter=function(t,e,r,n){t.configuration.handlers.retrieve(s.ExtensionMaps.NEW_DELIMITER).add(e,new o.Symbol(e,r,n))},a.addMacro=function(t,e,r,n,a){void 0===a&&(a=""),t.configuration.handlers.retrieve(s.ExtensionMaps.NEW_COMMAND).add(e,new o.Macro(a||e,r,n))},a.addEnvironment=function(t,e,r,n){t.configuration.handlers.retrieve(s.ExtensionMaps.NEW_ENVIRONMENT).add(e,new o.Macro(e,r,n))},e.default=n},function(t,e,r){"use strict";var n,a=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0});var i,o=r(0),s=r(13),l=(i=s.BaseItem,a(u,i),Object.defineProperty(u.prototype,"kind",{get:function(){return"beginEnv"},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"isOpen",{get:function(){return!0},enumerable:!0,configurable:!0}),u.prototype.checkItem=function(t){if(t.isKind("end")){if(t.getName()!==this.getName())throw new o.default("EnvBadEnd","\\begin{%1} ended with \\end{%2}",this.getName(),t.getName());return[[this.factory.create("mml",this.toMml())],!0]}if(t.isKind("stop"))throw new o.default("EnvMissingEnd","Missing \\end{%1}",this.getName());return i.prototype.checkItem.call(this,t)},u);function u(){return null!==i&&i.apply(this,arguments)||this}e.BeginEnvItem=l},function(t,e,r){"use strict";r(35);var n=r(56);r(31).Loader.preLoad("input/tex-base","[tex]/ams","[tex]/newcommand","[tex]/noundefined","[tex]/require","[tex]/autoload","[tex]/configMacros"),(0,n.registerTeX)(["base","ams","newcommand","noundefined","require","autoload","configMacros"])},function(t,e,r){"use strict";var n=r(36),a=R(r(18)),i=R(r(5)),o=R(r(20)),s=R(r(19)),l=R(r(3)),u=R(r(25)),c=R(r(1)),f=R(r(14)),p=R(r(23)),h=R(r(2)),d=R(r(22)),m=R(r(13)),g=R(r(24)),y=R(r(11)),v=R(r(4)),b=R(r(12)),x=R(r(8)),A=R(r(0)),M=R(r(9)),w=R(r(47)),T=R(r(27)),S=R(r(28)),C=R(r(49)),P=R(r(26)),O=R(r(15)),E=R(r(16)),k=R(r(52)),_=R(r(53)),I=R(r(33)),N=R(r(17)),L=R(r(32)),F=R(r(55)),q=R(r(29));function R(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e}(0,n.combineWithMathJax)({_:{input:{tex_ts:a,tex:{Configuration:i,FilterUtil:o,FindTeX:s,MapHandler:l,NodeFactory:u,NodeUtil:c,ParseMethods:f,ParseOptions:p,ParseUtil:h,Stack:d,StackItem:m,StackItemFactory:g,Symbol:y,SymbolMap:v,Tags:b,TexConstants:x,TexError:A,TexParser:M,ams:{AmsConfiguration:w,AmsItems:T,AmsMethods:S},autoload:{AutoloadConfiguration:C},base:{BaseConfiguration:P,BaseItems:O,BaseMethods:E},config_macros:{ConfigMacrosConfiguration:k},newcommand:{NewcommandConfiguration:_,NewcommandItems:I,NewcommandMethods:N,NewcommandUtil:L},noundefined:{NoUndefinedConfiguration:F},require:{RequireConfiguration:q}}}}})},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.combineConfig=MathJax._.components.global.combineConfig,e.combineDefaults=MathJax._.components.global.combineDefaults,e.combineWithMathJax=MathJax._.components.global.combineWithMathJax,e.MathJax=MathJax._.components.global.MathJax},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AbstractInputJax=MathJax._.core.InputJax.AbstractInputJax},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AbstractFindMath=MathJax._.core.FindMath.AbstractFindMath},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.sortLength=MathJax._.util.string.sortLength,e.quotePattern=MathJax._.util.string.quotePattern,e.unicodeChars=MathJax._.util.string.unicodeChars,e.isPercent=MathJax._.util.string.isPercent,e.split=MathJax._.util.string.split},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.protoItem=MathJax._.core.MathItem.protoItem,e.AbstractMathItem=MathJax._.core.MathItem.AbstractMathItem,e.STATE=MathJax._.core.MathItem.STATE,e.newState=MathJax._.core.MathItem.newState},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MmlMo=MathJax._.core.MmlTree.MmlNodes.mo.MmlMo},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AbstractFactory=MathJax._.core.Tree.Factory.AbstractFactory},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.FunctionList=MathJax._.util.FunctionList.FunctionList},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(4),a=r(8),i=r(16),o=r(14),s=r(6);new n.RegExpMap("letter",o.default.variable,/[a-z]/i),new n.RegExpMap("digit",o.default.digit,/[0-9.,]/),new n.RegExpMap("command",o.default.controlSequence,/^\\/),new n.MacroMap("special",{"{":"Open","}":"Close","~":"Tilde","^":"Superscript",_:"Subscript"," ":"Space","\t":"Space","\r":"Space","\n":"Space","'":"Prime","%":"Comment","&":"Entry","#":"Hash","\xa0":"Space","\u2019":"Prime"},i.default),new n.CharacterMap("mathchar0mi",o.default.mathchar0mi,{alpha:"\u03b1",beta:"\u03b2",gamma:"\u03b3",delta:"\u03b4",epsilon:"\u03f5",zeta:"\u03b6",eta:"\u03b7",theta:"\u03b8",iota:"\u03b9",kappa:"\u03ba",lambda:"\u03bb",mu:"\u03bc",nu:"\u03bd",xi:"\u03be",omicron:"\u03bf",pi:"\u03c0",rho:"\u03c1",sigma:"\u03c3",tau:"\u03c4",upsilon:"\u03c5",phi:"\u03d5",chi:"\u03c7",psi:"\u03c8",omega:"\u03c9",varepsilon:"\u03b5",vartheta:"\u03d1",varpi:"\u03d6",varrho:"\u03f1",varsigma:"\u03c2",varphi:"\u03c6",S:["\xa7",{mathvariant:a.TexConstant.Variant.NORMAL}],aleph:["\u2135",{mathvariant:a.TexConstant.Variant.NORMAL}],hbar:["\u210f",{variantForm:!0}],imath:"\u0131",jmath:"\u0237",ell:"\u2113",wp:["\u2118",{mathvariant:a.TexConstant.Variant.NORMAL}],Re:["\u211c",{mathvariant:a.TexConstant.Variant.NORMAL}],Im:["\u2111",{mathvariant:a.TexConstant.Variant.NORMAL}],partial:["\u2202",{mathvariant:a.TexConstant.Variant.NORMAL}],infty:["\u221e",{mathvariant:a.TexConstant.Variant.NORMAL}],prime:["\u2032",{mathvariant:a.TexConstant.Variant.NORMAL,variantForm:!0}],emptyset:["\u2205",{mathvariant:a.TexConstant.Variant.NORMAL}],nabla:["\u2207",{mathvariant:a.TexConstant.Variant.NORMAL}],top:["\u22a4",{mathvariant:a.TexConstant.Variant.NORMAL}],bot:["\u22a5",{mathvariant:a.TexConstant.Variant.NORMAL}],angle:["\u2220",{mathvariant:a.TexConstant.Variant.NORMAL}],triangle:["\u25b3",{mathvariant:a.TexConstant.Variant.NORMAL}],backslash:["\u2216",{mathvariant:a.TexConstant.Variant.NORMAL,variantForm:!0}],forall:["\u2200",{mathvariant:a.TexConstant.Variant.NORMAL}],exists:["\u2203",{mathvariant:a.TexConstant.Variant.NORMAL}],neg:["\xac",{mathvariant:a.TexConstant.Variant.NORMAL}],lnot:["\xac",{mathvariant:a.TexConstant.Variant.NORMAL}],flat:["\u266d",{mathvariant:a.TexConstant.Variant.NORMAL}],natural:["\u266e",{mathvariant:a.TexConstant.Variant.NORMAL}],sharp:["\u266f",{mathvariant:a.TexConstant.Variant.NORMAL}],clubsuit:["\u2663",{mathvariant:a.TexConstant.Variant.NORMAL}],diamondsuit:["\u2662",{mathvariant:a.TexConstant.Variant.NORMAL}],heartsuit:["\u2661",{mathvariant:a.TexConstant.Variant.NORMAL}],spadesuit:["\u2660",{mathvariant:a.TexConstant.Variant.NORMAL}]}),new n.CharacterMap("mathchar0mo",o.default.mathchar0mo,{surd:"\u221a",coprod:["\u2210",{texClass:s.TEXCLASS.OP,movesupsub:!0}],bigvee:["\u22c1",{texClass:s.TEXCLASS.OP,movesupsub:!0}],bigwedge:["\u22c0",{texClass:s.TEXCLASS.OP,movesupsub:!0}],biguplus:["\u2a04",{texClass:s.TEXCLASS.OP,movesupsub:!0}],bigcap:["\u22c2",{texClass:s.TEXCLASS.OP,movesupsub:!0}],bigcup:["\u22c3",{texClass:s.TEXCLASS.OP,movesupsub:!0}],int:["\u222b",{texClass:s.TEXCLASS.OP}],intop:["\u222b",{texClass:s.TEXCLASS.OP,movesupsub:!0,movablelimits:!0}],iint:["\u222c",{texClass:s.TEXCLASS.OP}],iiint:["\u222d",{texClass:s.TEXCLASS.OP}],prod:["\u220f",{texClass:s.TEXCLASS.OP,movesupsub:!0}],sum:["\u2211",{texClass:s.TEXCLASS.OP,movesupsub:!0}],bigotimes:["\u2a02",{texClass:s.TEXCLASS.OP,movesupsub:!0}],bigoplus:["\u2a01",{texClass:s.TEXCLASS.OP,movesupsub:!0}],bigodot:["\u2a00",{texClass:s.TEXCLASS.OP,movesupsub:!0}],oint:["\u222e",{texClass:s.TEXCLASS.OP}],bigsqcup:["\u2a06",{texClass:s.TEXCLASS.OP,movesupsub:!0}],smallint:["\u222b",{largeop:!1}],triangleleft:"\u25c3",triangleright:"\u25b9",bigtriangleup:"\u25b3",bigtriangledown:"\u25bd",wedge:"\u2227",land:"\u2227",vee:"\u2228",lor:"\u2228",cap:"\u2229",cup:"\u222a",ddagger:"\u2021",dagger:"\u2020",sqcap:"\u2293",sqcup:"\u2294",uplus:"\u228e",amalg:"\u2a3f",diamond:"\u22c4",bullet:"\u2219",wr:"\u2240",div:"\xf7",odot:["\u2299",{largeop:!1}],oslash:["\u2298",{largeop:!1}],otimes:["\u2297",{largeop:!1}],ominus:["\u2296",{largeop:!1}],oplus:["\u2295",{largeop:!1}],mp:"\u2213",pm:"\xb1",circ:"\u2218",bigcirc:"\u25ef",setminus:["\u2216",{variantForm:!0}],cdot:"\u22c5",ast:"\u2217",times:"\xd7",star:"\u22c6",propto:"\u221d",sqsubseteq:"\u2291",sqsupseteq:"\u2292",parallel:"\u2225",mid:"\u2223",dashv:"\u22a3",vdash:"\u22a2",leq:"\u2264",le:"\u2264",geq:"\u2265",ge:"\u2265",lt:"<",gt:">",succ:"\u227b",prec:"\u227a",approx:"\u2248",succeq:"\u2ab0",preceq:"\u2aaf",supset:"\u2283",subset:"\u2282",supseteq:"\u2287",subseteq:"\u2286",in:"\u2208",ni:"\u220b",notin:"\u2209",owns:"\u220b",gg:"\u226b",ll:"\u226a",sim:"\u223c",simeq:"\u2243",perp:"\u22a5",equiv:"\u2261",asymp:"\u224d",smile:"\u2323",frown:"\u2322",ne:"\u2260",neq:"\u2260",cong:"\u2245",doteq:"\u2250",bowtie:"\u22c8",models:"\u22a8",notChar:"\u29f8",Leftrightarrow:"\u21d4",Leftarrow:"\u21d0",Rightarrow:"\u21d2",leftrightarrow:"\u2194",leftarrow:"\u2190",gets:"\u2190",rightarrow:"\u2192",to:"\u2192",mapsto:"\u21a6",leftharpoonup:"\u21bc",leftharpoondown:"\u21bd",rightharpoonup:"\u21c0",rightharpoondown:"\u21c1",nearrow:"\u2197",searrow:"\u2198",nwarrow:"\u2196",swarrow:"\u2199",rightleftharpoons:"\u21cc",hookrightarrow:"\u21aa",hookleftarrow:"\u21a9",longleftarrow:"\u27f5",Longleftarrow:"\u27f8",longrightarrow:"\u27f6",Longrightarrow:"\u27f9",Longleftrightarrow:"\u27fa",longleftrightarrow:"\u27f7",longmapsto:"\u27fc",ldots:"\u2026",cdots:"\u22ef",vdots:"\u22ee",ddots:"\u22f1",dotsc:"\u2026",dotsb:"\u22ef",dotsm:"\u22ef",dotsi:"\u22ef",dotso:"\u2026",ldotp:[".",{texClass:s.TEXCLASS.PUNCT}],cdotp:["\u22c5",{texClass:s.TEXCLASS.PUNCT}],colon:[":",{texClass:s.TEXCLASS.PUNCT}]}),new n.CharacterMap("mathchar7",o.default.mathchar7,{Gamma:"\u0393",Delta:"\u0394",Theta:"\u0398",Lambda:"\u039b",Xi:"\u039e",Pi:"\u03a0",Sigma:"\u03a3",Upsilon:"\u03a5",Phi:"\u03a6",Psi:"\u03a8",Omega:"\u03a9",_:"_","#":"#",$:"$","%":"%","&":"&",And:"&"}),new n.DelimiterMap("delimiter",o.default.delimiter,{"(":"(",")":")","[":"[","]":"]","<":"\u27e8",">":"\u27e9","\\lt":"\u27e8","\\gt":"\u27e9","/":"/","|":["|",{texClass:s.TEXCLASS.ORD}],".":"","\\\\":"\\","\\lmoustache":"\u23b0","\\rmoustache":"\u23b1","\\lgroup":"\u27ee","\\rgroup":"\u27ef","\\arrowvert":"\u23d0","\\Arrowvert":"\u2016","\\bracevert":"\u23aa","\\Vert":["\u2225",{texClass:s.TEXCLASS.ORD}],"\\|":["\u2225",{texClass:s.TEXCLASS.ORD}],"\\vert":["|",{texClass:s.TEXCLASS.ORD}],"\\uparrow":"\u2191","\\downarrow":"\u2193","\\updownarrow":"\u2195","\\Uparrow":"\u21d1","\\Downarrow":"\u21d3","\\Updownarrow":"\u21d5","\\backslash":"\\","\\rangle":"\u27e9","\\langle":"\u27e8","\\rbrace":"}","\\lbrace":"{","\\}":"}","\\{":"{","\\rceil":"\u2309","\\lceil":"\u2308","\\rfloor":"\u230b","\\lfloor":"\u230a","\\lbrack":"[","\\rbrack":"]"}),new n.CommandMap("macros",{displaystyle:["SetStyle","D",!0,0],textstyle:["SetStyle","T",!1,0],scriptstyle:["SetStyle","S",!1,1],scriptscriptstyle:["SetStyle","SS",!1,2],rm:["SetFont",a.TexConstant.Variant.NORMAL],mit:["SetFont",a.TexConstant.Variant.ITALIC],oldstyle:["SetFont",a.TexConstant.Variant.OLDSTYLE],cal:["SetFont",a.TexConstant.Variant.CALLIGRAPHIC],it:["SetFont","-tex-mathit"],bf:["SetFont",a.TexConstant.Variant.BOLD],bbFont:["SetFont",a.TexConstant.Variant.DOUBLESTRUCK],scr:["SetFont",a.TexConstant.Variant.SCRIPT],frak:["SetFont",a.TexConstant.Variant.FRAKTUR],sf:["SetFont",a.TexConstant.Variant.SANSSERIF],tt:["SetFont",a.TexConstant.Variant.MONOSPACE],tiny:["SetSize",.5],Tiny:["SetSize",.6],scriptsize:["SetSize",.7],small:["SetSize",.85],normalsize:["SetSize",1],large:["SetSize",1.2],Large:["SetSize",1.44],LARGE:["SetSize",1.73],huge:["SetSize",2.07],Huge:["SetSize",2.49],arcsin:["NamedFn"],arccos:["NamedFn"],arctan:["NamedFn"],arg:["NamedFn"],cos:["NamedFn"],cosh:["NamedFn"],cot:["NamedFn"],coth:["NamedFn"],csc:["NamedFn"],deg:["NamedFn"],det:"NamedOp",dim:["NamedFn"],exp:["NamedFn"],gcd:"NamedOp",hom:["NamedFn"],inf:"NamedOp",ker:["NamedFn"],lg:["NamedFn"],lim:"NamedOp",liminf:["NamedOp","lim&thinsp;inf"],limsup:["NamedOp","lim&thinsp;sup"],ln:["NamedFn"],log:["NamedFn"],max:"NamedOp",min:"NamedOp",Pr:"NamedOp",sec:["NamedFn"],sin:["NamedFn"],sinh:["NamedFn"],sup:"NamedOp",tan:["NamedFn"],tanh:["NamedFn"],limits:["Limits",1],nolimits:["Limits",0],overline:["UnderOver","00AF",null,1],underline:["UnderOver","005F"],overbrace:["UnderOver","23DE",1],underbrace:["UnderOver","23DF",1],overparen:["UnderOver","23DC"],underparen:["UnderOver","23DD"],overrightarrow:["UnderOver","2192"],underrightarrow:["UnderOver","2192"],overleftarrow:["UnderOver","2190"],underleftarrow:["UnderOver","2190"],overleftrightarrow:["UnderOver","2194"],underleftrightarrow:["UnderOver","2194"],overset:"Overset",underset:"Underset",stackrel:["Macro","\\mathrel{\\mathop{#2}\\limits^{#1}}",2],over:"Over",overwithdelims:"Over",atop:"Over",atopwithdelims:"Over",above:"Over",abovewithdelims:"Over",brace:["Over","{","}"],brack:["Over","[","]"],choose:["Over","(",")"],frac:"Frac",sqrt:"Sqrt",root:"Root",uproot:["MoveRoot","upRoot"],leftroot:["MoveRoot","leftRoot"],left:"LeftRight",right:"LeftRight",middle:"Middle",llap:"Lap",rlap:"Lap",raise:"RaiseLower",lower:"RaiseLower",moveleft:"MoveLeftRight",moveright:"MoveLeftRight",",":["Spacer",a.TexConstant.Length.THINMATHSPACE],":":["Spacer",a.TexConstant.Length.MEDIUMMATHSPACE],">":["Spacer",a.TexConstant.Length.MEDIUMMATHSPACE],";":["Spacer",a.TexConstant.Length.THICKMATHSPACE],"!":["Spacer",a.TexConstant.Length.NEGATIVETHINMATHSPACE],enspace:["Spacer",".5em"],quad:["Spacer","1em"],qquad:["Spacer","2em"],thinspace:["Spacer",a.TexConstant.Length.THINMATHSPACE],negthinspace:["Spacer",a.TexConstant.Length.NEGATIVETHINMATHSPACE],hskip:"Hskip",hspace:"Hskip",kern:"Hskip",mskip:"Hskip",mspace:"Hskip",mkern:"Hskip",rule:"rule",Rule:["Rule"],Space:["Rule","blank"],big:["MakeBig",s.TEXCLASS.ORD,.85],Big:["MakeBig",s.TEXCLASS.ORD,1.15],bigg:["MakeBig",s.TEXCLASS.ORD,1.45],Bigg:["MakeBig",s.TEXCLASS.ORD,1.75],bigl:["MakeBig",s.TEXCLASS.OPEN,.85],Bigl:["MakeBig",s.TEXCLASS.OPEN,1.15],biggl:["MakeBig",s.TEXCLASS.OPEN,1.45],Biggl:["MakeBig",s.TEXCLASS.OPEN,1.75],bigr:["MakeBig",s.TEXCLASS.CLOSE,.85],Bigr:["MakeBig",s.TEXCLASS.CLOSE,1.15],biggr:["MakeBig",s.TEXCLASS.CLOSE,1.45],Biggr:["MakeBig",s.TEXCLASS.CLOSE,1.75],bigm:["MakeBig",s.TEXCLASS.REL,.85],Bigm:["MakeBig",s.TEXCLASS.REL,1.15],biggm:["MakeBig",s.TEXCLASS.REL,1.45],Biggm:["MakeBig",s.TEXCLASS.REL,1.75],mathord:["TeXAtom",s.TEXCLASS.ORD],mathop:["TeXAtom",s.TEXCLASS.OP],mathopen:["TeXAtom",s.TEXCLASS.OPEN],mathclose:["TeXAtom",s.TEXCLASS.CLOSE],mathbin:["TeXAtom",s.TEXCLASS.BIN],mathrel:["TeXAtom",s.TEXCLASS.REL],mathpunct:["TeXAtom",s.TEXCLASS.PUNCT],mathinner:["TeXAtom",s.TEXCLASS.INNER],vcenter:["TeXAtom",s.TEXCLASS.VCENTER],buildrel:"BuildRel",hbox:["HBox",0],text:"HBox",mbox:["HBox",0],fbox:"FBox",strut:"Strut",mathstrut:["Macro","\\vphantom{(}"],phantom:"Phantom",vphantom:["Phantom",1,0],hphantom:["Phantom",0,1],smash:"Smash",acute:["Accent","00B4"],grave:["Accent","0060"],ddot:["Accent","00A8"],tilde:["Accent","007E"],bar:["Accent","00AF"],breve:["Accent","02D8"],check:["Accent","02C7"],hat:["Accent","005E"],vec:["Accent","2192"],dot:["Accent","02D9"],widetilde:["Accent","007E",1],widehat:["Accent","005E",1],matrix:"Matrix",array:"Matrix",pmatrix:["Matrix","(",")"],cases:["Matrix","{","","left left",null,".1em",null,!0],eqalign:["Matrix",null,null,"right left",a.TexConstant.Length.THICKMATHSPACE,".5em","D"],displaylines:["Matrix",null,null,"center",null,".5em","D"],cr:"Cr","\\":"CrLaTeX",newline:"Cr",hline:["HLine","solid"],hdashline:["HLine","dashed"],eqalignno:["Matrix",null,null,"right left",a.TexConstant.Length.THICKMATHSPACE,".5em","D",null,"right"],leqalignno:["Matrix",null,null,"right left",a.TexConstant.Length.THICKMATHSPACE,".5em","D",null,"left"],hfill:"HFill",hfil:"HFill",hfilll:"HFill",bmod:["Macro",'\\mmlToken{mo}[lspace="thickmathspace" rspace="thickmathspace"]{mod}'],pmod:["Macro","\\pod{\\mmlToken{mi}{mod}\\kern 6mu #1}",1],mod:["Macro","\\mathchoice{\\kern18mu}{\\kern12mu}{\\kern12mu}{\\kern12mu}\\mmlToken{mi}{mod}\\,\\,#1",1],pod:["Macro","\\mathchoice{\\kern18mu}{\\kern8mu}{\\kern8mu}{\\kern8mu}(#1)",1],iff:["Macro","\\;\\Longleftrightarrow\\;"],skew:["Macro","{{#2{#3\\mkern#1mu}\\mkern-#1mu}{}}",3],mathcal:["Macro","{\\cal #1}",1],mathscr:["Macro","{\\scr #1}",1],mathrm:["Macro","{\\rm #1}",1],mathbf:["Macro","{\\bf #1}",1],mathbb:["Macro","{\\bbFont #1}",1],Bbb:["Macro","{\\bbFont #1}",1],mathit:["Macro","{\\it #1}",1],mathfrak:["Macro","{\\frak #1}",1],mathsf:["Macro","{\\sf #1}",1],mathtt:["Macro","{\\tt #1}",1],textrm:["Macro","\\mathord{\\rm\\text{#1}}",1],textit:["Macro","\\mathord{\\it\\text{#1}}",1],textbf:["Macro","\\mathord{\\bf\\text{#1}}",1],textsf:["Macro","\\mathord{\\sf\\text{#1}}",1],texttt:["Macro","\\mathord{\\tt\\text{#1}}",1],pmb:["Macro","\\rlap{#1}\\kern1px{#1}",1],TeX:["Macro","T\\kern-.14em\\lower.5ex{E}\\kern-.115em X"],LaTeX:["Macro","L\\kern-.325em\\raise.21em{\\scriptstyle{A}}\\kern-.17em\\TeX"]," ":["Macro","\\text{ }"],not:"Not",dots:"Dots",space:"Tilde","\xa0":"Tilde",begin:"BeginEnd",end:"BeginEnd",label:"HandleLabel",ref:"HandleRef",nonumber:"HandleNoTag",mathchoice:"MathChoice",mmlToken:"MmlToken"},i.default);new n.EnvironmentMap("environment",o.default.environment,{array:["AlignedArray"],equation:["Equation",null,!0],"equation*":["Equation",null,!1],eqnarray:["EqnArray",null,!0,!0,"rcl","0 "+a.TexConstant.Length.THICKMATHSPACE,".5em"]},i.default);new n.CharacterMap("not_remap",null,{"\u2190":"\u219a","\u2192":"\u219b","\u2194":"\u21ae","\u21d0":"\u21cd","\u21d2":"\u21cf","\u21d4":"\u21ce","\u2208":"\u2209","\u220b":"\u220c","\u2223":"\u2224","\u2225":"\u2226","\u223c":"\u2241","~":"\u2241","\u2243":"\u2244","\u2245":"\u2247","\u2248":"\u2249","\u224d":"\u226d","=":"\u2260","\u2261":"\u2262","<":"\u226e",">":"\u226f","\u2264":"\u2270","\u2265":"\u2271","\u2272":"\u2274","\u2273":"\u2275","\u2276":"\u2278","\u2277":"\u2279","\u227a":"\u2280","\u227b":"\u2281","\u2282":"\u2284","\u2283":"\u2285","\u2286":"\u2288","\u2287":"\u2289","\u22a2":"\u22ac","\u22a8":"\u22ad","\u22a9":"\u22ae","\u22ab":"\u22af","\u227c":"\u22e0","\u227d":"\u22e1","\u2291":"\u22e2","\u2292":"\u22e3","\u22b2":"\u22ea","\u22b3":"\u22eb","\u22b4":"\u22ec","\u22b5":"\u22ed","\u2203":"\u2204"})},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),r(10).add({Pcy:"\u041f",Poincareplane:"\u210c",Pr:"\u2abb",Prime:"\u2033",Proportion:"\u2237",par:"\u2225",para:"\xb6",parallel:"\u2225",parsim:"\u2af3",parsl:"\u2afd",part:"\u2202",pcy:"\u043f",percnt:"%",permil:"\u2030",perp:"\u22a5",pertenk:"\u2031",phmmat:"\u2133",phone:"\u260e",pitchfork:"\u22d4",planck:"\u210f",planckh:"\u210e",plankv:"\u210f",plus:"+",plusacir:"\u2a23",plusb:"\u229e",pluscir:"\u2a22",plusdo:"\u2214",plusdu:"\u2a25",pluse:"\u2a72",plusmn:"\xb1",plussim:"\u2a26",plustwo:"\u2a27",pm:"\xb1",pointint:"\u2a15",pound:"\xa3",pr:"\u227a",prE:"\u2ab3",prcue:"\u227c",pre:"\u2aaf",prec:"\u227a",precapprox:"\u2ab7",preccurlyeq:"\u227c",preceq:"\u2aaf",precsim:"\u227e",primes:"\u2119",prnE:"\u2ab5",prnap:"\u2ab9",prnsim:"\u22e8",prod:"\u220f",profalar:"\u232e",profline:"\u2312",profsurf:"\u2313",prop:"\u221d",propto:"\u221d",prsim:"\u227e",prurel:"\u22b0",puncsp:"\u2008"},"p")},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),r(10).add({RBarr:"\u2910",REG:"\xae",Racute:"\u0154",Rang:"\u27eb",Rarrtl:"\u2916",Rcaron:"\u0158",Rcedil:"\u0156",Rcy:"\u0420",ReverseElement:"\u220b",ReverseUpEquilibrium:"\u296f",Rho:"\u03a1",RightArrowBar:"\u21e5",RightDoubleBracket:"\u27e7",RightDownTeeVector:"\u295d",RightDownVectorBar:"\u2955",RightTeeVector:"\u295b",RightTriangleBar:"\u29d0",RightUpDownVector:"\u294f",RightUpTeeVector:"\u295c",RightUpVectorBar:"\u2954",RightVectorBar:"\u2953",RoundImplies:"\u2970",RuleDelayed:"\u29f4",rAarr:"\u21db",rArr:"\u21d2",rAtail:"\u291c",rBarr:"\u290f",rHar:"\u2964",race:"\u223d\u0331",racute:"\u0155",radic:"\u221a",raemptyv:"\u29b3",rang:"\u27e9",rangd:"\u2992",range:"\u29a5",rangle:"\u27e9",raquo:"\xbb",rarr:"\u2192",rarrap:"\u2975",rarrb:"\u21e5",rarrbfs:"\u2920",rarrc:"\u2933",rarrfs:"\u291e",rarrhk:"\u21aa",rarrlp:"\u21ac",rarrpl:"\u2945",rarrsim:"\u2974",rarrw:"\u219d",ratail:"\u291a",ratio:"\u2236",rationals:"\u211a",rbarr:"\u290d",rbbrk:"\u2773",rbrke:"\u298c",rbrksld:"\u298e",rbrkslu:"\u2990",rcaron:"\u0159",rcedil:"\u0157",rceil:"\u2309",rcub:"}",rcy:"\u0440",rdca:"\u2937",rdldhar:"\u2969",rdquo:"\u201d",rdquor:"\u201d",rdsh:"\u21b3",real:"\u211c",realine:"\u211b",realpart:"\u211c",reals:"\u211d",rect:"\u25ad",reg:"\xae",rfisht:"\u297d",rfloor:"\u230b",rhard:"\u21c1",rharu:"\u21c0",rharul:"\u296c",rightarrow:"\u2192",rightarrowtail:"\u21a3",rightharpoondown:"\u21c1",rightharpoonup:"\u21c0",rightleftarrows:"\u21c4",rightleftharpoons:"\u21cc",rightsquigarrow:"\u219d",risingdotseq:"\u2253",rlarr:"\u21c4",rlhar:"\u21cc",rlm:"\u200f",rmoustache:"\u23b1",rnmid:"\u2aee",roang:"\u27ed",roarr:"\u21fe",robrk:"\u27e7",ropar:"\u2986",roplus:"\u2a2e",rotimes:"\u2a35",rpar:")",rpargt:"\u2994",rppolint:"\u2a12",rrarr:"\u21c9",rsaquo:"\u203a",rsh:"\u21b1",rsqb:"]",rsquo:"\u2019",rsquor:"\u2019",rthree:"\u22cc",rtrie:"\u22b5",rtrif:"\u25b8",rtriltri:"\u29ce",ruluhar:"\u2968",rx:"\u211e"},"r")},function(t,e,r){"use strict";var n,a,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0});var o=r(5),s=r(27),l=r(12);r(48);var u,c=(u=l.AbstractTags,i(f,u),f);function f(){return null!==u&&u.apply(this,arguments)||this}e.AmsTags=c;e.AmsConfiguration=o.Configuration.create("ams",{handler:{delimiter:["AMSsymbols-delimiter","AMSmath-delimiter"],macro:["AMSsymbols-mathchar0mi","AMSsymbols-mathchar0m0","AMSsymbols-delimiter","AMSsymbols-macros","AMSmath-mathchar0mo","AMSmath-macros","AMSmath-delimiter"],environment:["AMSmath-environment"]},items:(a={},a[s.MultlineItem.prototype.kind]=s.MultlineItem,a),tags:{ams:c},init:function(t){t.append(o.Configuration.extension())}})},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});function n(t){for(var e=[],r=0,n=t.length;r<n;r++)e[r]=l.default.Em(t[r]);return e.join(" ")}var a=r(28),i=r(4),o=r(8),s=r(14),l=r(2),u=r(6);new i.CharacterMap("AMSmath-mathchar0mo",s.default.mathchar0mo,{iiiint:["\u2a0c",{texClass:u.TEXCLASS.OP}]}),new i.CommandMap("AMSmath-macros",{mathring:["Accent","02DA"],nobreakspace:"Tilde",negmedspace:["Spacer",o.TexConstant.Length.NEGATIVEMEDIUMMATHSPACE],negthickspace:["Spacer",o.TexConstant.Length.NEGATIVETHICKMATHSPACE],idotsint:["MultiIntegral","\\int\\cdots\\int"],dddot:["Accent","20DB"],ddddot:["Accent","20DC"],sideset:["Macro","\\mathop{\\mathop{\\rlap{\\phantom{#3}}}\\nolimits#1\\!\\mathop{#3}\\nolimits#2}",3],boxed:["Macro","\\fbox{$\\displaystyle{#1}$}",1],tag:"HandleTag",notag:"HandleNoTag",eqref:["HandleRef",!0],substack:["Macro","\\begin{subarray}{c}#1\\end{subarray}",1],injlim:["NamedOp","inj&thinsp;lim"],projlim:["NamedOp","proj&thinsp;lim"],varliminf:["Macro","\\mathop{\\underline{\\mmlToken{mi}{lim}}}"],varlimsup:["Macro","\\mathop{\\overline{\\mmlToken{mi}{lim}}}"],varinjlim:["Macro","\\mathop{\\underrightarrow{\\mmlToken{mi}{lim}}}"],varprojlim:["Macro","\\mathop{\\underleftarrow{\\mmlToken{mi}{lim}}}"],DeclareMathOperator:"HandleDeclareOp",operatorname:"HandleOperatorName",SkipLimits:"SkipLimits",genfrac:"Genfrac",frac:["Genfrac","","","",""],tfrac:["Genfrac","","","","1"],dfrac:["Genfrac","","","","0"],binom:["Genfrac","(",")","0",""],tbinom:["Genfrac","(",")","0","1"],dbinom:["Genfrac","(",")","0","0"],cfrac:"CFrac",shoveleft:["HandleShove",o.TexConstant.Align.LEFT],shoveright:["HandleShove",o.TexConstant.Align.RIGHT],xrightarrow:["xArrow",8594,5,6],xleftarrow:["xArrow",8592,7,3]},a.default),new i.EnvironmentMap("AMSmath-environment",s.default.environment,{"eqnarray*":["EqnArray",null,!1,!0,"rcl","0 "+o.TexConstant.Length.THICKMATHSPACE,".5em"],align:["EqnArray",null,!0,!0,"rlrlrlrlrlrl",n([0,2,0,2,0,2,0,2,0,2,0])],"align*":["EqnArray",null,!1,!0,"rlrlrlrlrlrl",n([0,2,0,2,0,2,0,2,0,2,0])],multline:["Multline",null,!0],"multline*":["Multline",null,!1],split:["EqnArray",null,!1,!1,"rl",n([0])],gather:["EqnArray",null,!0,!0,"c"],"gather*":["EqnArray",null,!1,!0,"c"],alignat:["AlignAt",null,!0,!0],"alignat*":["AlignAt",null,!1,!0],alignedat:["AlignAt",null,!1,!1],aligned:["AmsEqnArray",null,null,null,"rlrlrlrlrlrl",n([0,2,0,2,0,2,0,2,0,2,0]),".5em","D"],gathered:["AmsEqnArray",null,null,null,"c",null,".5em","D"],subarray:["Array",null,null,null,null,n([0]),"0.1em","S",1],smallmatrix:["Array",null,null,null,"c",n([1/3]),".2em","S",1],matrix:["Array",null,null,null,"c"],pmatrix:["Array",null,"(",")","c"],bmatrix:["Array",null,"[","]","c"],Bmatrix:["Array",null,"\\{","\\}","c"],vmatrix:["Array",null,"\\vert","\\vert","c"],Vmatrix:["Array",null,"\\Vert","\\Vert","c"],cases:["Array",null,"\\{",".","ll",null,".2em","T"]},a.default),new i.DelimiterMap("AMSmath-delimiter",s.default.delimiter,{"\\lvert":["|",{texClass:u.TEXCLASS.OPEN}],"\\rvert":["|",{texClass:u.TEXCLASS.CLOSE}],"\\lVert":["\u2016",{texClass:u.TEXCLASS.OPEN}],"\\rVert":["\u2016",{texClass:u.TEXCLASS.CLOSE}]}),new i.CharacterMap("AMSsymbols-mathchar0mi",s.default.mathchar0mi,{digamma:"\u03dd",varkappa:"\u03f0",varGamma:["\u0393",{mathvariant:o.TexConstant.Variant.ITALIC}],varDelta:["\u0394",{mathvariant:o.TexConstant.Variant.ITALIC}],varTheta:["\u0398",{mathvariant:o.TexConstant.Variant.ITALIC}],varLambda:["\u039b",{mathvariant:o.TexConstant.Variant.ITALIC}],varXi:["\u039e",{mathvariant:o.TexConstant.Variant.ITALIC}],varPi:["\u03a0",{mathvariant:o.TexConstant.Variant.ITALIC}],varSigma:["\u03a3",{mathvariant:o.TexConstant.Variant.ITALIC}],varUpsilon:["\u03a5",{mathvariant:o.TexConstant.Variant.ITALIC}],varPhi:["\u03a6",{mathvariant:o.TexConstant.Variant.ITALIC}],varPsi:["\u03a8",{mathvariant:o.TexConstant.Variant.ITALIC}],varOmega:["\u03a9",{mathvariant:o.TexConstant.Variant.ITALIC}],beth:"\u2136",gimel:"\u2137",daleth:"\u2138",backprime:["\u2035",{variantForm:!0}],hslash:"\u210f",varnothing:["\u2205",{variantForm:!0}],blacktriangle:"\u25b4",triangledown:["\u25bd",{variantForm:!0}],blacktriangledown:"\u25be",square:"\u25fb",Box:"\u25fb",blacksquare:"\u25fc",lozenge:"\u25ca",Diamond:"\u25ca",blacklozenge:"\u29eb",circledS:["\u24c8",{mathvariant:o.TexConstant.Variant.NORMAL}],bigstar:"\u2605",sphericalangle:"\u2222",measuredangle:"\u2221",nexists:"\u2204",complement:"\u2201",mho:"\u2127",eth:["\xf0",{mathvariant:o.TexConstant.Variant.NORMAL}],Finv:"\u2132",diagup:"\u2571",Game:"\u2141",diagdown:"\u2572",Bbbk:["k",{mathvariant:o.TexConstant.Variant.DOUBLESTRUCK}],yen:"\xa5",circledR:"\xae",checkmark:"\u2713",maltese:"\u2720"}),new i.CharacterMap("AMSsymbols-mathchar0m0",s.default.mathchar0mo,{dotplus:"\u2214",ltimes:"\u22c9",smallsetminus:"\u2216",rtimes:"\u22ca",Cap:"\u22d2",doublecap:"\u22d2",leftthreetimes:"\u22cb",Cup:"\u22d3",doublecup:"\u22d3",rightthreetimes:"\u22cc",barwedge:"\u22bc",curlywedge:"\u22cf",veebar:"\u22bb",curlyvee:"\u22ce",doublebarwedge:"\u2a5e",boxminus:"\u229f",circleddash:"\u229d",boxtimes:"\u22a0",circledast:"\u229b",boxdot:"\u22a1",circledcirc:"\u229a",boxplus:"\u229e",centerdot:["\u22c5",{variantForm:!0}],divideontimes:"\u22c7",intercal:"\u22ba",leqq:"\u2266",geqq:"\u2267",leqslant:"\u2a7d",geqslant:"\u2a7e",eqslantless:"\u2a95",eqslantgtr:"\u2a96",lesssim:"\u2272",gtrsim:"\u2273",lessapprox:"\u2a85",gtrapprox:"\u2a86",approxeq:"\u224a",lessdot:"\u22d6",gtrdot:"\u22d7",lll:"\u22d8",llless:"\u22d8",ggg:"\u22d9",gggtr:"\u22d9",lessgtr:"\u2276",gtrless:"\u2277",lesseqgtr:"\u22da",gtreqless:"\u22db",lesseqqgtr:"\u2a8b",gtreqqless:"\u2a8c",doteqdot:"\u2251",Doteq:"\u2251",eqcirc:"\u2256",risingdotseq:"\u2253",circeq:"\u2257",fallingdotseq:"\u2252",triangleq:"\u225c",backsim:"\u223d",thicksim:["\u223c",{variantForm:!0}],backsimeq:"\u22cd",thickapprox:["\u2248",{variantForm:!0}],subseteqq:"\u2ac5",supseteqq:"\u2ac6",Subset:"\u22d0",Supset:"\u22d1",sqsubset:"\u228f",sqsupset:"\u2290",preccurlyeq:"\u227c",succcurlyeq:"\u227d",curlyeqprec:"\u22de",curlyeqsucc:"\u22df",precsim:"\u227e",succsim:"\u227f",precapprox:"\u2ab7",succapprox:"\u2ab8",vartriangleleft:"\u22b2",lhd:"\u22b2",vartriangleright:"\u22b3",rhd:"\u22b3",trianglelefteq:"\u22b4",unlhd:"\u22b4",trianglerighteq:"\u22b5",unrhd:"\u22b5",vDash:"\u22a8",Vdash:"\u22a9",Vvdash:"\u22aa",smallsmile:["\u2323",{variantForm:!0}],shortmid:["\u2223",{variantForm:!0}],smallfrown:["\u2322",{variantForm:!0}],shortparallel:["\u2225",{variantForm:!0}],bumpeq:"\u224f",between:"\u226c",Bumpeq:"\u224e",pitchfork:"\u22d4",varpropto:"\u221d",backepsilon:"\u220d",blacktriangleleft:"\u25c2",blacktriangleright:"\u25b8",therefore:"\u2234",because:"\u2235",eqsim:"\u2242",vartriangle:["\u25b3",{variantForm:!0}],Join:"\u22c8",nless:"\u226e",ngtr:"\u226f",nleq:"\u2270",ngeq:"\u2271",nleqslant:["\u2a87",{variantForm:!0}],ngeqslant:["\u2a88",{variantForm:!0}],nleqq:["\u2270",{variantForm:!0}],ngeqq:["\u2271",{variantForm:!0}],lneq:"\u2a87",gneq:"\u2a88",lneqq:"\u2268",gneqq:"\u2269",lvertneqq:["\u2268",{variantForm:!0}],gvertneqq:["\u2269",{variantForm:!0}],lnsim:"\u22e6",gnsim:"\u22e7",lnapprox:"\u2a89",gnapprox:"\u2a8a",nprec:"\u2280",nsucc:"\u2281",npreceq:["\u22e0",{variantForm:!0}],nsucceq:["\u22e1",{variantForm:!0}],precneqq:"\u2ab5",succneqq:"\u2ab6",precnsim:"\u22e8",succnsim:"\u22e9",precnapprox:"\u2ab9",succnapprox:"\u2aba",nsim:"\u2241",ncong:"\u2246",nshortmid:["\u2224",{variantForm:!0}],nshortparallel:["\u2226",{variantForm:!0}],nmid:"\u2224",nparallel:"\u2226",nvdash:"\u22ac",nvDash:"\u22ad",nVdash:"\u22ae",nVDash:"\u22af",ntriangleleft:"\u22ea",ntriangleright:"\u22eb",ntrianglelefteq:"\u22ec",ntrianglerighteq:"\u22ed",nsubseteq:"\u2288",nsupseteq:"\u2289",nsubseteqq:["\u2288",{variantForm:!0}],nsupseteqq:["\u2289",{variantForm:!0}],subsetneq:"\u228a",supsetneq:"\u228b",varsubsetneq:["\u228a",{variantForm:!0}],varsupsetneq:["\u228b",{variantForm:!0}],subsetneqq:"\u2acb",supsetneqq:"\u2acc",varsubsetneqq:["\u2acb",{variantForm:!0}],varsupsetneqq:["\u2acc",{variantForm:!0}],leftleftarrows:"\u21c7",rightrightarrows:"\u21c9",leftrightarrows:"\u21c6",rightleftarrows:"\u21c4",Lleftarrow:"\u21da",Rrightarrow:"\u21db",twoheadleftarrow:"\u219e",twoheadrightarrow:"\u21a0",leftarrowtail:"\u21a2",rightarrowtail:"\u21a3",looparrowleft:"\u21ab",looparrowright:"\u21ac",leftrightharpoons:"\u21cb",rightleftharpoons:["\u21cc",{variantForm:!0}],curvearrowleft:"\u21b6",curvearrowright:"\u21b7",circlearrowleft:"\u21ba",circlearrowright:"\u21bb",Lsh:"\u21b0",Rsh:"\u21b1",upuparrows:"\u21c8",downdownarrows:"\u21ca",upharpoonleft:"\u21bf",upharpoonright:"\u21be",downharpoonleft:"\u21c3",restriction:"\u21be",multimap:"\u22b8",downharpoonright:"\u21c2",leftrightsquigarrow:"\u21ad",rightsquigarrow:"\u21dd",leadsto:"\u21dd",dashrightarrow:"\u21e2",dashleftarrow:"\u21e0",nleftarrow:"\u219a",nrightarrow:"\u219b",nLeftarrow:"\u21cd",nRightarrow:"\u21cf",nleftrightarrow:"\u21ae",nLeftrightarrow:"\u21ce"}),new i.DelimiterMap("AMSsymbols-delimiter",s.default.delimiter,{"\\ulcorner":"\u231c","\\urcorner":"\u231d","\\llcorner":"\u231e","\\lrcorner":"\u231f"}),new i.CommandMap("AMSsymbols-macros",{implies:["Macro","\\;\\Longrightarrow\\;"],impliedby:["Macro","\\;\\Longleftarrow\\;"]},a.default)},function(t,e,r){"use strict";var n,a=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),S=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,a,i=r.call(t),o=[];try{for(;(void 0===e||0<e--)&&!(n=i.next()).done;)o.push(n.value)}catch(t){a={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(a)throw a.error}}return o},C=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0});var i,o=r(5),s=r(4),P=r(11),O=r(29),v=r(30),l=r(7),u=(i=s.CommandMap,a(c,i),c.prototype.remove=function(t){this.map.delete(t)},c);function c(){return null!==i&&i.apply(this,arguments)||this}function E(t,e,r,n){var a,i,o,s;if(v.Package.packages.has(t.options.require.prefix+r)){var l=t.options.autoload[r],u=S(2===l.length&&Array.isArray(l[0])?l:[l,[]],2),c=u[0],f=u[1];try{for(var p=C(c),h=p.next();!h.done;h=p.next()){var d=h.value;k.remove(d)}}catch(t){a={error:t}}finally{try{h&&!h.done&&(i=p.return)&&i.call(p)}finally{if(a)throw a.error}}try{for(var m=C(f),g=m.next();!g.done;g=m.next()){var y=g.value;_.remove(y)}}catch(t){o={error:t}}finally{try{g&&!g.done&&(s=m.return)&&s.call(m)}finally{if(o)throw o.error}}t.i-=e.length+(n?0:7)}O.RequireLoad(t,r)}var k=new(e.AutoloadCommandMap=u)("autoload-macros",{},{}),_=new u("autoload-environments",{},{});e.AutoloadConfiguration=o.Configuration.create("autoload",{handler:{macro:["autoload-macros"],environment:["autoload-environments"]},options:{autoload:l.expandable({action:["toggle","mathtip","texttip"],amsCd:[[],["CD"]],bbox:["bbox"],boldsymbol:["boldsymbol"],braket:["bra","ket","braket","set","Bra","Ket","Braket","Set","ketbra","Ketbra"],cancel:["cancel","bcancel","xcancel","cancelto"],color:["color","definecolor","textcolor","colorbox","fcolorbox"],enclose:["enclose"],extpfeil:["xtwoheadrightarrow","xtwoheadleftarrow","xmapsto","xlongequal","xtofrom","Newextarrow"],html:["href","class","style","cssId"],mhchem:["ce","pu"],newcommand:["newcommand","renewcommand","newenvironment","renewenvironment","def","let"],unicode:["unicode"],verb:["verb"]})},config:function(t,e){var r,n,a,i,o,s,l=e.parseOptions,u=l.handlers.get("macro"),c=l.handlers.get("environment"),f=l.options.autoload;try{for(var p=C(Object.keys(f)),h=p.next();!h.done;h=p.next()){var d=h.value,m=f[d],g=S(2===m.length&&Array.isArray(m[0])?m:[m,[]],2),y=g[0],v=g[1];try{for(var b=(a=void 0,C(y)),x=b.next();!x.done;x=b.next()){var A=x.value;u.lookup(A)&&"color"!==A||k.add(A,new P.Macro(A,E,[d,!0]))}}catch(t){a={error:t}}finally{try{x&&!x.done&&(i=b.return)&&i.call(b)}finally{if(a)throw a.error}}try{for(var M=(o=void 0,C(v)),w=M.next();!w.done;w=M.next()){var T=w.value;c.lookup(T)||_.add(T,new P.Macro(T,E,[d,!1]))}}catch(t){o={error:t}}finally{try{w&&!w.done&&(s=M.return)&&s.call(M)}finally{if(o)throw o.error}}}}catch(t){r={error:t}}finally{try{h&&!h.done&&(n=p.return)&&n.call(p)}finally{if(r)throw r.error}}l.options.require.jax||O.RequireConfiguration.config(t,e)},configPriority:10,init:function(t){t.options.require||l.defaultOptions(t.options,O.RequireConfiguration.options)},priority:10})},function(SU,TU){var UU;UU=function(){return this}();try{UU=UU||Function("return this")()||eval("this")}catch(t){"object"==typeof window&&(UU=window)}SU.exports=UU},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.mathjax=MathJax._.mathjax.mathjax},function(t,e,r){"use strict";var c=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0});var n=r(5),a=r(7),i=r(4),f=r(11),p=r(17);var h=new i.CommandMap("configMacros",{},{});e.ConfigMacrosConfiguration=n.Configuration.create("configMacros",{handler:{macro:["configMacros"]},config:function(t,e){var r,n,a=t.options.macros;try{for(var i=c(Object.keys(a)),o=i.next();!o.done;o=i.next()){var s=o.value,l="string"==typeof a[s]?[a[s]]:a[s],u=Array.isArray(l[2])?new f.Macro(s,p.default.MacroWithTemplate,l.slice(0,2).concat(l[2])):new f.Macro(s,p.default.Macro,l);h.add(s,u)}}catch(t){r={error:t}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}},options:{macros:a.expandable({})}})},function(t,e,r){"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0});var a=r(5),i=r(33),o=r(3);r(54);e.NewcommandConfiguration=a.Configuration.create("newcommand",{handler:{macro:["Newcommand-macros"]},items:(n={},n[i.BeginEnvItem.prototype.kind]=i.BeginEnvItem,n),options:{maxMacros:1e3},init:function(t){t.handler.macro.indexOf(o.ExtensionMaps.NEW_COMMAND)<0&&t.append(a.Configuration.extension())}})},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(17);new(r(4).CommandMap)("Newcommand-macros",{newcommand:"NewCommand",renewcommand:"NewCommand",newenvironment:"NewEnvironment",renewenvironment:"NewEnvironment",def:"MacroDef",let:"Let"},n.default)},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(5);e.NoUndefinedConfiguration=n.Configuration.create("noundefined",{fallback:{macro:function(t,e){var r=t.create("text","\\"+e);t.Push(t.create("node","mtext",[],{mathcolor:"red"},r))}}})},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.registerTeX=function(t){if(MathJax.startup){MathJax.startup.registerConstructor("tex",n.TeX),MathJax.startup.useInput("tex"),MathJax.config.tex||(MathJax.config.tex={});var e=MathJax.config.tex.packages;MathJax.config.tex.packages=t,e&&(0,a.insert)(MathJax.config.tex,{packages:e})}};var n=r(18),a=r(7)}]);