!function(o){var i={};function r(t){if(i[t])return i[t].exports;var e=i[t]={i:t,l:!1,exports:{}};return o[t].call(e.exports,e,e.exports,r),e.l=!0,e.exports}r.m=o,r.c=i,r.d=function(t,e,o){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(r.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(o,i,function(t){return e[t]}.bind(null,i));return o},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=9)}([function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isObject=MathJax._.components.global.isObject,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,o){"use strict";var i,r=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),s=this&&this.__assign||function(){return(s=Object.assign||function(t){for(var e,o=1,i=arguments.length;o=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0});var c=o(7),p=o(2),u=o(3),h=o(5);function d(t,e){return r(o,i=t),o.prototype.complexity=function(t){this.state()=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0});var a,n=o(8),s=o(4),c=o(5),p=(a=n.MmlVisitor,r(u,a),u.prototype.visitTree=function(t){a.prototype.visitTree.call(this,t,!0),this.options.makeCollapsible&&this.collapse.makeCollapse(t)},u.prototype.visitNode=function(t,e){if(!t.attributes.get("data-semantic-complexity"))return a.prototype.visitNode.call(this,t,e)},u.prototype.visitDefault=function(t,e){var o;if(t.isToken){var i=t.getText();o=this.complexity.text*i.length+this.complexity.token}else o=this.childrenComplexity(t);return this.setComplexity(t,o,e)},u.prototype.visitMfracNode=function(t,e){var o=this.childrenComplexity(t)*this.complexity.script+this.complexity.fraction;return this.setComplexity(t,o,e)},u.prototype.visitMsqrtNode=function(t,e){var o=this.childrenComplexity(t)+this.complexity.sqrt;return this.setComplexity(t,o,e)},u.prototype.visitMrootNode=function(t,e){var o=this.childrenComplexity(t)+this.complexity.sqrt-(1-this.complexity.script)*this.getComplexity(t.childNodes[1]);return this.setComplexity(t,o,e)},u.prototype.visitMphantomNode=function(t,e){return this.setComplexity(t,this.complexity.phantom,e)},u.prototype.visitMsNode=function(t,e){var o=(t.attributes.get("lquote")+t.getText()+t.attributes.get("rquote")).length*this.complexity.text;return this.setComplexity(t,o,e)},u.prototype.visitMsubsupNode=function(t,e){a.prototype.visitDefault.call(this,t,!0);var o=t.childNodes[t.sub],i=t.childNodes[t.sup],r=t.childNodes[t.base],n=Math.max(o?this.getComplexity(o):0,i?this.getComplexity(i):0)*this.complexity.script;return n+=this.complexity.child*((o?1:0)+(i?1:0)),n+=r?this.getComplexity(r)+this.complexity.child:0,n+=this.complexity.subsup,this.setComplexity(t,n,e)},u.prototype.visitMsubNode=function(t,e){return this.visitMsubsupNode(t,e)},u.prototype.visitMsupNode=function(t,e){return this.visitMsubsupNode(t,e)},u.prototype.visitMunderoverNode=function(t,e){a.prototype.visitDefault.call(this,t,!0);var o=t.childNodes[t.under],i=t.childNodes[t.over],r=t.childNodes[t.base],n=Math.max(o?this.getComplexity(o):0,i?this.getComplexity(i):0)*this.complexity.script;return r&&(n=Math.max(this.getComplexity(r),n)),n+=this.complexity.child*((o?1:0)+(i?1:0)+(r?1:0)),n+=this.complexity.underover,this.setComplexity(t,n,e)},u.prototype.visitMunderNode=function(t,e){return this.visitMunderoverNode(t,e)},u.prototype.visitMoverNode=function(t,e){return this.visitMunderoverNode(t,e)},u.prototype.visitMencloseNode=function(t,e){var o=this.childrenComplexity(t)+this.complexity.enclose;return this.setComplexity(t,o,e)},u.prototype.visitMactionNode=function(t,e){this.childrenComplexity(t);var o=this.getComplexity(t.selected);return this.setComplexity(t,o,e)},u.prototype.visitMsemanticsNode=function(t,e){var o=t.childNodes[0],i=0;return o&&(this.visitNode(o,!0),i=this.getComplexity(o)),this.setComplexity(t,i,e)},u.prototype.visitAnnotationNode=function(t,e){return this.setComplexity(t,this.complexity.xml,e)},u.prototype.visitAnnotation_xmlNode=function(t,e){return this.setComplexity(t,this.complexity.xml,e)},u.prototype.visitMglyphNode=function(t,e){return this.setComplexity(t,this.complexity.glyph,e)},u.prototype.getComplexity=function(t){var e=t.getProperty("collapsedComplexity");return null!=e?e:t.attributes.get("data-semantic-complexity")},u.prototype.setComplexity=function(t,e,o){return o&&(this.options.identifyCollapsible&&(e=this.collapse.check(t,e)),t.attributes.set("data-semantic-complexity",e)),e},u.prototype.childrenComplexity=function(t){var e,o;a.prototype.visitDefault.call(this,t,!0);var i=0;try{for(var r=l(t.childNodes),n=r.next();!n.done;n=r.next()){var s=n.value;i+=this.getComplexity(s)}}catch(t){e={error:t}}finally{try{n&&!n.done&&(o=r.return)&&o.call(r)}finally{if(e)throw e.error}}return 1=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0});var i=(n.prototype.check=function(t,e){var o=t.attributes.get("data-semantic-type");return this.collapse.has(o)?this.collapse.get(o).call(this,t,e):this.cutoff.hasOwnProperty(o)?this.defaultCheck(t,e,o):e},n.prototype.defaultCheck=function(t,e,o){var i=t.attributes.get("data-semantic-role"),r=this.cutoff[o];if(("number"==typeof r?r:r[i]||r.value)r.cutoff.fenced&&"leftright"===t.attributes.get("data-semantic-role")&&(e=r.recordCollapse(t,e,r.getText(t.childNodes[0])+r.getText(t.childNodes[t.childNodes.length-1]))),e}],["appl",function(t,e){if(r.canUncollapse(t,2,2)){e=r.complexity.visitNode(t,!1);var o=r.marker.appl,i=o[t.attributes.get("data-semantic-role")]||o.value;e=r.recordCollapse(t,e,i)}return e}],["sqrt",function(t,e){return(e=r.uncollapseChild(e,t,0))>r.cutoff.sqrt&&(e=r.recordCollapse(t,e,r.marker.sqrt)),e}],["root",function(t,e){return(e=r.uncollapseChild(e,t,0,2))>r.cutoff.sqrt&&(e=r.recordCollapse(t,e,r.marker.sqrt)),e}],["enclose",function(t,e){if(1===r.splitAttribute(t,"children").length){var o=r.canUncollapse(t,1);if(o){var i=o.getProperty("collapse-marker");r.unrecordCollapse(o),e=r.recordCollapse(t,r.complexity.visitNode(t,!1),i)}}return e}],["bigop",function(t,e){if(e>r.cutoff.bigop||!t.isKind("mo")){var o=r.splitAttribute(t,"content").pop(),i=r.findChildText(t,o);e=r.recordCollapse(t,e,i)}return e}],["integral",function(t,e){if(e>r.cutoff.integral||!t.isKind("mo")){var o=r.splitAttribute(t,"content").pop(),i=r.findChildText(t,o);e=r.recordCollapse(t,e,i)}return e}],["relseq",function(t,e){if(e>r.cutoff.relseq){var o=r.splitAttribute(t,"content")[0],i=r.findChildText(t,o);e=r.recordCollapse(t,e,i)}return e}],["multirel",function(t,e){if(e>r.cutoff.relseq){var o=r.splitAttribute(t,"content")[0],i=r.findChildText(t,o)+"\u22ef";e=r.recordCollapse(t,e,i)}return e}],["superscript",function(t,e){return(e=r.uncollapseChild(e,t,0,2))>r.cutoff.superscript&&(e=r.recordCollapse(t,e,r.marker.superscript)),e}],["subscript",function(t,e){return(e=r.uncollapseChild(e,t,0,2))>r.cutoff.subscript&&(e=r.recordCollapse(t,e,r.marker.subscript)),e}],["subsup",function(t,e){return(e=r.uncollapseChild(e,t,0,3))>r.cutoff.subsup&&(e=r.recordCollapse(t,e,r.marker.subsup)),e}]]),this.idCount=0,this.complexity=t}e.Collapse=i},function(t,e,o){"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,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.sreReady=MathJax._.a11y.sre.sreReady},function(t,e,o){"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,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MmlVisitor=MathJax._.core.MmlTree.MmlVisitor.MmlVisitor},function(t,e,o){"use strict";o.r(e);var i=o(0),r=o(1),n=o(4),s=o(3),l=o(2),a=o(6);Object(i.combineWithMathJax)({_:{a11y:{complexity_ts:r,complexity:{collapse:n,visitor:s},"semantic-enrich":l,sre:a}}}),MathJax.startup&&(MathJax.startup.extendHandler(function(t){return Object(r.ComplexityHandler)(t)}),Object(i.combineDefaults)(MathJax.config,"options",MathJax.config["a11y/complexity"]||{}))}]);