!function(){"use strict";vart,e,o,i,r,n,l={589:function(t,e,o){vari,r=this&&this.__extends||(i=function(t,e){returni=Object.setPrototypeOf||{__proto__:[]}instanceofArray&&function(t,e){t.__proto__=e}||function(t,e){for(varoine)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},i(t,e)},function(t,e){if("function"!=typeofe&&null!==e)thrownewTypeError("Class extends value "+String(e)+" is not a constructor or null");functiono(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,newo)}),n=this&&this.__assign||function(){returnn=Object.assign||function(t){for(vare,o=1,i=arguments.length;o<i;o++)for(varrine=arguments[o])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);returnt},n.apply(this,arguments)},l=this&&this.__read||function(t,e){varo="function"==typeofSymbol&&t[Symbol.iterator];if(!o)returnt;vari,r,n=o.call(t),l=[];try{for(;(void0===e||e-->0)&&!(i=n.next()).done;)l.push(i.value)}catch(t){r={error:t}}finally{try{i&&!i.done&&(o=n.return)&&o.call(n)}finally{if(r)throwr.error}}returnl},s=this&&this.__spreadArray||function(t,e,o){if(o||2===arguments.length)for(vari,r=0,n=e.length;r<n;r++)!i&&rine||(i||(i=Array.prototype.slice.call(e,0,r)),i[r]=e[r]);returnt.concat(i||Array.prototype.slice.call(e))},a=this&&this.__values||function(t){vare="function"==typeofSymbol&&Symbol.iterator,o=e&&t[e],i=0;if(o)returno.call(t);if(t&&"number"==typeoft.length)return{next:function(){returnt&&i>=t.length&&(t=void0),{value:t&&t[i++],done:!t}}};thrownewTypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.ComplexityHandler=e.ComplexityMathDocumentMixin=e.ComplexityMathItemMixin=void0;varp=o(769),c=o(511),u=o(175),h=o(77);functiony(t,e){returnfunction(t){functiono(){returnnull!==t&&t.apply(this,arguments)||this}returnr(o,t),o.prototype.complexity=function(t,o){void0===o&&(o=!1),this.state()>=p.STATE.COMPLEXITY||(this.isEscaped||!t.options.enableComplexity&&!o||(this.enrich(t,!0),e(this.root)),this.state(p.STATE.COMPLEXITY))},o}(t)}functiond(t){vare;returne=function(t){functione(){for(vare=[],o=0;o<arguments.length;o++)e[o]=arguments[o];vari=t.apply(this,s([],l(e),!1))||this,r=i.constructor.ProcessBits;r.has("complexity")||r.allocate("complexity");varn=(0,h.selectOptionsFromKeys)(i.options,i.options.ComplexityVisitor.OPTIONS);i.complexityVisitor=newi.options.ComplexityVisitor(i.mmlFactory,n);vara=function(t){returni.complexityVisitor.visitTree(t)};returni.options.MathItem=y(i.options.MathItem,a),i}returnr(e,t),e.prototype.complexity=function(){vart,e;if(!this.processed.isSet("complexity")){if(this.options.enableComplexity)try{for(varo=a(this.math),i=o.next();!i.done;i=o.next()){i.value.complexity(this)}}catch(e){t={error:e}}finally{try{i&&!i.done&&(e=o.return)&&e.call(o)}finally{if(t)throwt.error}}this.processed.set("complexity")}returnthis},e.prototype.state=function(e,o){returnvoid0===o&&(o=!1),t.prototype.state.call(this,e,o),e<p.STATE.COMPLEXITY&&this.processed.clear("complexity"),this},e}(t),e.OPTIONS=n(n(n({},t.OPTIONS),u.ComplexityVisitor.OPTIONS),{enableComplexity:!0,ComplexityVisitor:u.ComplexityVisitor,renderActions:(0,h.expandable)(n(n({},t.OPTIONS.renderActions),{complexity:[p.STATE.COMPLEXITY]}))}),e}(0,p.newState)("COMPLEXITY",40),e.ComplexityMathItemMixin=y,e.ComplexityMathDocumentMixin=d,e.ComplexityHandler=function(t,e){returnvoid0===e&&(e=null),!t.documentClass.prototype.enrich&&e&&(t=(0,c.EnrichHandler)(t,e)),t.documentClass=d(t.documentClass),t}},850:function(t,e){varo=this&&this.__values||function(t){vare="function"==typeofSymbol&&Symbol.iterator,o=e&&t[e],i=0;if(o)returno.call(t);if(t&&"number"==typeoft.length)return{next:function(){returnt&&i>=t.length&&(t=void0),{value:t&&t[i++],done:!t}}};thrownewTypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.Collapse=void0;vari=function(){functiont(e){varo=this;this.cutoff={identifier:3,number:3,text:10,infixop:15,relseq:15,multirel:15,fenced:18,bigop:20,integral:20,fraction:12,sqrt:9,root:12,vector:15,matrix:15,cases:15,superscript:9,subscript:9,subsup:9,punctuated:{endpunct:t.NOCOLLAPSE,startpunct:t.NOCOLLAPSE,value:12}},this.marker={identifier:"x",number:"#",text:"...",appl:{"limit function":"lim",value:"f()"},fraction:"/",sqrt:"\u221a",root:"\u221a",superscript:"\u25fd\u02d9",subscript:"\u25fd.",subsup:"\u25fd:",vector:{binomial:"(:)",determinant:"|:|",value:"\u27e8:\u27e9"},matrix:{squarematrix:"[::]",rowvector:"\u27e8\u22ef\u27e9",columnvector:"\u27e8\u22ee\u27e9",determinant:"|::|",value:"(::)"},cases:"{:",infixop:{addition:"+",subtraction:"\u2212",multiplication:"\u22c5",implicit:"\u22c5",value:"+"},punctuated:{text:"...",value:","}},this.collapse=newMap([["fenced",function(t,e){return(e=o.uncollapseChild(e,t,1))>o.cutoff.fenced&&"leftright"===t.attributes.get("data-semantic-role")&&(e=o.recordCollapse(t,e,o.getText(t.childNodes[0])+o.getText(t.childNodes[t.childNodes.length-1]))),e}],["appl",function(t,e){if(o.canUncollapse(t,2,2)){e=o.complexity.visitNode(t,!1);vari=o.marker.appl,r=i[t.attributes.get("data-semantic-role")]||i.value;e=o.recordCollapse(t,e,r)}returne}],["sqrt",function(t,e){return(e=o.uncollapseChild(e,t,0))>o.cutoff.sqrt&&(e=o.recordCollapse(t,e,o.marker.sqrt)),e}],["root",function(t,e){return(e=o.uncollapseChild(e,t,0,2))>o.cutoff.sqrt&&(e=o.recordCollapse(t,e,o.marker.sqrt)),e}],["enclose",function(t,e){if(1===o.splitAttribute(t,"children").length){vari=o.canUncollapse(t,1);if(i){varr=i.getProperty("collapse-marker");o.unrecordCollapse(i),e=o.recordCollapse(t,o.complexity.visitNode(t,!1),r)}}returne}],["bigop",function(t,e){if(e>o.cutoff.bigop||!t.isKind("mo")){vari=o.splitAttribute(t,"content").pop(),r=o.findChildText(t,i);e=o.recordCollapse(t,e,r)}returne}],["integral",function(t,e){if(e>o.cutoff.integral||!t.isKind("mo")){vari=o.splitAttribute(t,"content").pop(),r=o.findChildText(t,i);e=o.recordCollapse(t,e,r)}returne}],["relseq",function(t,e){if(e>o.cutoff.relseq){vari=o.splitAttribute(t,"content")[0],r=o.findChildText(t,i);e=o.recordCollapse(t,e,r)}returne}],["multirel",function(t,e){if(e>o.cutoff.relseq){vari=o.splitAttribute(t,"content")[0],r=o.findChildText(t,i)+"\u22ef";e=o.recordCollapse(t,e,r)}returne}],["superscript",function(t,e){return(e=o.uncollapseChild(e,t,0,2))>o.cutoff.superscript&&(e=o.recordCollapse(t,e,o.marker.superscript)),e}],["subscript",function(t,e){return(e=o.uncollapseChild(e,t,0,2))>o.cutoff.subscript&&(e=o.recordCollapse(t,e,o.marker.subscript)),e}],["subsup",function(t,e){return(e=o.uncollapseChild(e,t,0,3))>o.cutoff.subsup&&(e=o.recordCollapse(t,e,o.marker.subsup)),e}]]),this.idCount=0,this.complexity=e}returnt.prototype.check=function(t,e){varo=t.attributes.get("data-semantic-type");returnthis.collapse.has(o)?this.collapse.get(o).call(this,t,e):this.cutoff.hasOwnProperty(o)?this.defaultCheck(t,e,o):e},t.prototype.defaultCheck=function(t,e,o){vari=t.attributes.get("data-semantic-role"),r=this.cutoff[o];if(e>("number"==typeofr?r:r[i]||r.value)){varn=this.marker[o]||"??",l="string"==typeofn?n:n[i]||n.value;e=this.recordCollapse(t,e,l)}returne},t.prototype.recordCollapse=function(t,e,o){returno="\u25c2"+o+"\u25b8",t.setProperty("collapse-marker",o),t.setProperty("collapse-complexity",e),o.length*this.complexity.complexity.text},t.prototype.unrecordCollapse=function(t){vare=t.getProperty("collapse-complexity");null!=e&&(t.attributes.set("data-semantic-complexity",e),t.removeProperty("collapse-complexity"),t.removeProperty("collapse-marker"))},t.prototype.canUncollapse=function(t,e,o){if(void0===o&&(o=1),this.splitAttribute(t,"children").length===o){vari=1===t.childNodes.length&&t.childNodes[0].isInferred?t.childNodes[0]:t;if(i&&i.childNodes[e]){varr=i.childNodes[e];if(r.getProperty("collapse-marker"))returnr}}returnnull},t.prototype.uncollapseChild=function(t,e,o,i){void0===i&&(i=1);varr=this.canUncollapse(e,o,i);returnr&&(this.unrecordCollapse(r),r.parent!==e&&r.parent.attributes.set("data-semantic-complexity",void0),t=this.complexity.visitNode(e,!1)),t},t.prototype.splitAttribute=function(t,e){return(t.attributes.get("data-semantic-"+e)||"").split(/,/)},t.prototype.getText=function(t){vare=this;returnt.isToken?t.getText():t.childNodes.map((function(t){returne.getText(t)})).join("")},t.prototype.findChildText=function(t,e){varo=this.findChild(t,e);returnthis.getText(o.coreMO()||o)},t.prototype.findChild=function(t,e){vari,r;if(!t||t.attributes.get("data-semantic-id")===e)returnt;if(!t.isToken)try{for(varn=o(t.childNodes),l=n.next();!l.done;l=n.next()){vars=l.value,a=this.findChild(s,e);if(a)returna}}catch(t){i={error:t}}finally{try{l&&!l.done&&(r=n.return)&&r.call(n)}finally{if(i)throwi.error}}returnnull},t.prototype.makeCollapse=function(t){vare=[];t.walkTree((function(t){t.getProperty("collapse-marker")&&e.push(t)})),this.makeActions(e)},t.prototype.makeActions=function(t){vare,i;try{for(varr=o(t),n=r.next();!n.done;n=r.next()){varl=n.value;this.makeAction(l)}}catch(t){e={error:t}}finally{try{n&&!n.done&&(i=r.return)&&i.call(r)}finally{if(e)throwe.error}}},t.prototype.makeId=function(){return"mjx-collapse-"+this.idCount++},t.prototype.makeAction=function(t){t.isKind("math")&&(t=this.addMrow(t));vare=this.complexity.factory,o=t.getProperty("collapse-marker"),i=t.parent,r=e.create("maction",{actiontype:"toggle",selection:2,"data-collapsible":!0,id:this.makeId(),"data-semantic-complexity":t.attributes.get("data-semantic-complexity")},[e.create("mtext",{mathcolor:"blue"},[e.create("text").setText(o)])]);r.inheritAttributesFrom(t),t.attributes.set("data-semantic-complexity",t.getProperty("collapse-complexity")),t.removeProperty("collapse-marker"),t.removeProperty("collapse-complexity"),i.replaceChild(r,t),r.appendChild(t)},t.prototype.addMrow=function(t){vare,i,r=this.complexity.factory.create("mrow",null,t.childNodes[0].childNodes);t.childNodes[0].setChildren([r]);varn=t.attributes.getAllAttributes();try{for(varl=o(Object.keys(n)),s=l.next();!s.done;s=l.next()){vara=s.value;"data-semantic-"===a.substr(0,14)&&(r.attributes.set(a,n[a]),deleten[a])}}catch(t){e={error:t}}finally{try{s&&!s.done&&(i=l.return)&&i.call(l)}finally{if(e)throwe.error}}returnr.setProperty("collapse-marker",t.getProperty("collapse-marker")),r.setProperty("collapse-complexity",t.getProperty("collapse-complexity")),t.removeProperty("collapse-marker"),t.removeProperty("collapse-complexity"),r},t.NOCOLLAPSE=1e7,t}();e.Collapse=i},175:function(t,e,o){vari,r=this&&this.__extends||(i=function(t,e){returni=Object.setPrototypeOf||{__proto__:[]}instanceofArray&&function(t,e){t.__proto__=e}||function(t,e){for(varoine)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},i(t,e)},function(t,e){if("function"!=typeofe&&null!==e)thrownewTypeError("Class extends value "+String(e)+" is not a constructor or null");functiono(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,newo)}),n=this&&this.__values||function(t){vare="function"==typeofSymbol&&Symbol.iterator,o=e&&t[e],i=0;if(o)returno.call(t);if(t&&"number"==typeoft.length)return{next:function(){returnt&&i>=t.length&&(t=void0),{value:t&&t[i++],done:!t}}};thrownewTypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.ComplexityVisitor=void0;varl=o(176),s=o(850),a=o(77),p=function(t){functione(e,o){vari=t.call(this,e)||this;i.complexity={text:.5,token:.5,child:1,script:.8,sqrt:2,subsup:2,underover:2,fraction:2,enclose:2,action:2,phantom:0,xml:2,glyph:2};varr=i.constructor;returni.options=(0,a.userOptions)((0,a.defaultOptions)({},r.OPTIONS),o),i.collapse=newi.options.Collapse(i),i.factory=e,i}returnr(e,t),e.prototype.visitTree=function(e){t.prototype.visitTree.call(this,e,!0),this.options.makeCollapsible&&this.collapse.makeCollapse(e)},e.prototype.visitNode=function(e,o){if(!e.attributes.get("data-semantic-complexity"))returnt.prototype.visitNode.call(this,e,o)},e.prototype.visitDefault=function(t,e){varo;if(t.isToken){vari=t.getText();o=this.complexity.text*i.length+this.complexity.token}elseo=this.childrenComplexity(t);returnthis.setComplexity(t,o,e)},e.prototype.visitMfracNode=function(t,e){varo=this.childrenComplexity(t)*this.complexity.script+this.complexity.fraction;returnthis.setComplexity(t,o,e)},e.prototype.visitMsqrtNode=function(t,e){varo=this.childrenComplexity(t)+this.complexity.sqrt;returnthis.setComplexity(t,o,e)},e.prototype.visitMrootNode=function(t,e){varo=this.childrenComplexity(t)+this.complexity.sqrt-(1-this.complexity.script)*this.getComplexity(t.childNodes[1]);returnthis.setComplexity(t,o,e)},e.prototype.visitMphantomNode=function(t,e){returnthis.setComplexity(t,this.complexity.phantom,e)},e.prototype.visitMsNode=function(t,e){varo=(t.attributes.get("lquote")+t.getText()+t.attributes.get("rquote")).length*this.complexity.text;returnthis.setComplexity(t,o,e)},e.prototype.visitMsubsupNode=function(e,o){t.prototype.visitDefault.call(this,e,!0);vari=e.childNodes[e.sub],r=e.childNodes[e.sup],n=e.childNodes[e.base],l=Math.max(i?this.getComplexity(i):0,r?this.getComplexity(r):0)*this.complexity.script;returnl+=this.complexity.child*((i?1:0)+(r?1:0)),l+=n?this.getComplexity(n)+this.complexity.child:0,l+=this.complexity.subsup,this.setComplexity(e,l,o)},e.prototype.visitMsubNode=function(t,e){returnthis.visitMsubsupNode(t,e)},e.prototype.visitMsupNode=function(t,e){returnthis.visitMsubsupNode(t,e)},e.prototype.visitMunderoverNode=function(e,o){t.prototype.visitDefault.call(this,e,!0);vari=e.childNodes[e.under],r=e.childNodes[e.over],n=e.childNodes[e.base],l=Math.max(i?this.getComplexity(i):0,r?this.getComplexity(r):0)*this.complexity.script;returnn&&(l=Math.max(this.getComplexity(n),l)),l+=this.complexity.child*((i?1:0)+(r?1:0)+(n?1:0)),l+=this.complexity.underover,this.setComplexity(e,l,o)},e.prototype.visitMunderNode=function(t,e){returnthis.visitMunderoverNode(t,e)},e.prototype.visitMoverNode=function(t,e){returnthis.visitMunderoverNode(t,e)},e.prototype.visitMencloseNode=function(t,e){varo=this.childrenComplexity(t)+this.complexity.enclose;returnthis.setComplexity(t,o,e)},e.prototype.visitMactionNode=function(t,e){this.childrenComplexity(t);varo=this.getComplexity(t.selected);returnthis.setComplexity(t,o,e)},e.prototype.visitMsemanticsNode=function(t,e){varo=t.childNodes[0],i=0;returno&&(this.visitNode(o,!0),i=this.getComplexity(o)),this.setComplexity(t,i,e)},e.prototype.visitAnnotationNode=function(t,e){returnthis.setComplexity(t,this.complexity.xml,e)},e.prototype.visitAnnotation_xmlNode=function(t,e){returnthis.setComplexity(t,this.complexity.xml,e)},e.prototype.visitMglyphNode=function(t,e){returnthis.setComplexity(t,this.complexity.glyph,e)},e.prototype.getComplexity=function(t){vare=t.getProperty("collapsedComplexity");returnnull!=e?e:t.attributes.get("data-semantic-complexity")},e.prototype.setComplexity=function(t,e,o){returno&&(this.options.identifyCollapsible&&(e=this.collapse.check(t,e)),t.attributes.set("data-semantic-complexity",e)),e},e.prototype.childrenComplexity=function(e){varo,i;t.prototype.visitDefault.call(this,e,!0);varr=0;try{for(varl=n(e.childNodes),s=l.next();!s.done;s=l.next()){vara=s.value;r+=this.getComplexity(a)}}catch(t){o={error:t}}finally{try{s&&!s.done&&(i=l.return)&&i.call(l)}finally{if(o)throwo.error}}returne.childNodes.length>1&&(r+=e.childNodes.length*this.complexity.child),r},e.OPTIONS={identifyCollapsible:!0,makeCollapsible:!0,Collapse:s.Collapse},e}(l.MmlVisitor);e.ComplexityVisitor=p},306:function(t,e){e.q=void0,e.q="3.2.2"},511:function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.EnrichedMathItemMixin=MathJax._.a11y["semantic-enrich"].EnrichedMathItemMixin,e.EnrichedMathDocumentMixin=MathJax._.a11y["semantic-enrich"].EnrichedMathDocumentMixin,e.EnrichHandler=MathJax._.a11y["semantic-enrich"].EnrichHandler},723:function(t,e){MathJax._.components.global.isObject,MathJax._.components.global.combineConfig,e.PV=MathJax._.components.global.combineDefaults,e.r8=MathJax._.components.global.combineWithMathJax,MathJax._.components.global.MathJax},769:function(t,e){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},176:function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.MmlVisitor=MathJax._.core.MmlTree.MmlVisitor.MmlVisitor},77:function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.isObject=MathJax._.util.Options.isObject,e.APPEND=MathJax._.util.Options.APPEND,e.REMOVE=MathJax._.util.Options.REMOVE,e.OPTIONS=MathJax._.util.Options.OPTIONS,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,e.lookup=MathJax._.util.Options.lookup}},s={};functiona(t){vare=s[t];if(void0!==e)returne.exports;varo=s[t]={exports:{}};returnl[t].call(o.exports,o,o.exports,a),o.exports}t=a(723),e=a(306),o=a(589),i=a(850),r=a(175),n=a(511),MathJax.loader&&MathJax.loader.checkVersion("a11y/complexity",e.q,"a11y"),(0,t.r8)({_:{a11y:{complexity_ts:o,complexity:{collapse:i,visitor:r},"semantic-enrich":n}}}),MathJax.startup&&(MathJax.startup.extendHandler((function(t){return(0,o.ComplexityHandler)(t)})),(0,t.PV)(MathJax.config,"options",MathJax.config["a11y/complexity"]||{}))}();