!function(t){function e(t,e,r,n,i){this._listener=e,this._isOnce=r,this.context=n,this._signal=t,this._priority=i||0}function r(t,e){if("function"!=typeof t)throw new Error("listener is a required param of {fn}() and should be a Function.".replace("{fn}",e))}function n(){this._bindings=[],this._prevParams=null;var t=this;this.dispatch=function(){n.prototype.dispatch.apply(t,arguments)}}e.prototype={active:!0,params:null,execute:function(t){var e,r;return this.active&&this._listener&&(r=this.params?this.params.concat(t):t,e=this._listener.apply(this.context,r),this._isOnce&&this.detach()),e},detach:function(){return this.isBound()?this._signal.remove(this._listener,this.context):null},isBound:function(){return!!this._signal&&!!this._listener},isOnce:function(){return this._isOnce},getListener:function(){return this._listener},getSignal:function(){return this._signal},_destroy:function(){delete this._signal,delete this._listener,delete this.context},toString:function(){return"[SignalBinding isOnce:"+this._isOnce+", isBound:"+this.isBound()+", active:"+this.active+"]"}},n.prototype={VERSION:"1.0.0",memorize:!1,_shouldPropagate:!0,active:!0,_registerListener:function(t,r,n,i){var a,o=this._indexOfListener(t,n);if(o!==-1){if(a=this._bindings[o],a.isOnce()!==r)throw new Error("You cannot add"+(r?"":"Once")+"() then add"+(r?"Once":"")+"() the same listener without removing the relationship first.")}else a=new e(this,t,r,n,i),this._addBinding(a);return this.memorize&&this._prevParams&&a.execute(this._prevParams),a},_addBinding:function(t){var e=this._bindings.length;do--e;while(this._bindings[e]&&t._priority<=this._bindings[e]._priority);this._bindings.splice(e+1,0,t)},_indexOfListener:function(t,e){for(var r,n=this._bindings.length;n--;)if(r=this._bindings[n],r._listener===t&&r.context===e)return n;return-1},has:function(t,e){return this._indexOfListener(t,e)!==-1},add:function(t,e,n){return r(t,"add"),this._registerListener(t,!1,e,n)},addOnce:function(t,e,n){return r(t,"addOnce"),this._registerListener(t,!0,e,n)},remove:function(t,e){r(t,"remove");var n=this._indexOfListener(t,e);return n!==-1&&(this._bindings[n]._destroy(),this._bindings.splice(n,1)),t},removeAll:function(){for(var t=this._bindings.length;t--;)this._bindings[t]._destroy();this._bindings.length=0},getNumListeners:function(){return this._bindings.length},halt:function(){this._shouldPropagate=!1},dispatch:function(){if(this.active){var t,e=Array.prototype.slice.call(arguments),r=this._bindings.length;if(this.memorize&&(this._prevParams=e),r){t=this._bindings.slice(),this._shouldPropagate=!0;do r--;while(t[r]&&this._shouldPropagate&&t[r].execute(e)!==!1)}}},forget:function(){this._prevParams=null},dispose:function(){this.removeAll(),delete this._bindings,delete this._prevParams},toString:function(){return"[Signal active:"+this.active+" numListeners:"+this.getNumListeners()+"]"}};var i=n;i.Signal=n,"function"==typeof define&&define.amd?define(function(){return i}):"undefined"!=typeof module&&module.exports?module.exports=i:t.signals=i}(this),function(t,e,r){function n(t,e){return typeof t===e}function i(){var t,e,r,i,a,o,s;for(var l in w)if(w.hasOwnProperty(l)){if(t=[],e=w[l],e.name&&(t.push(e.name.toLowerCase()),e.options&&e.options.aliases&&e.options.aliases.length))for(r=0;r=X[e]&&t<=X[e+1])return!0;return!1}function i(t){if(t instanceof at)return t;throw new Error("Expected symbolNode but got "+String(t)+".")}function a(t,e,r){if(!ht[e])throw new Error("Font metrics not found for font: "+e+".");var i=t.charCodeAt(0),a=ht[e][i];if(!a&&t[0]in mt&&(i=mt[t[0]].charCodeAt(0),a=ht[e][i]),a||"text"!==r||n(i)&&(a=ht[e][77]),a)return{depth:a[0],height:a[1],italic:a[2],skew:a[3],width:a[4]}}function o(t,e,r,n,i,a){ft[t][i]={font:e,group:r,replace:n},a&&n&&(ft[t][n]=ft[t][i])}function s(t,e){var r=l(t,e);if(!r)throw new Error("Expected node of type "+e+", but got "+(t?"node of type "+t.type:String(t)));return r}function l(t,e){return t&&t.type===e?t:null}function h(t,e){var r=function(t,e){return t&&"atom"===t.type&&t.family===e?t:null}(t,e);if(!r)throw new Error('Expected node of type "atom" and family "'+e+'", but got '+(t?"atom"===t.type?"atom of family "+t.family:"node of type "+t.type:String(t)));return r}function c(t){var e=m(t);if(!e)throw new Error("Expected node of symbol group type, but got "+(t?"node of type "+t.type:String(t)));return e}function m(t){return t&&("atom"===t.type||pt.hasOwnProperty(t.type))?t:null}function u(t){for(var e=t.type,r=t.names,n=t.props,i=t.handler,a=t.htmlBuilder,o=t.mathmlBuilder,s={type:e,numArgs:n.numArgs,argTypes:n.argTypes,greediness:void 0===n.greediness?1:n.greediness,allowedInText:!!n.allowedInText,allowedInMath:void 0===n.allowedInMath||n.allowedInMath,numOptionalArgs:n.numOptionalArgs||0,infix:!!n.infix,handler:i},l=0;l0&&(a.push(p(o,e)),o=[]),a.push(i[s]));o.length>0&&a.push(p(o,e)),r&&((n=p(we(r,e,!0))).classes=["tag"],a.push(n));var h=ge(["katex-html"],a);if(h.setAttribute("aria-hidden","true"),n){var c=n.children[0];c.style.height=h.height+h.depth+"em",c.style.verticalAlign=-h.depth+"em"}return h}function g(t){return new K(t)}function v(t,e,r,n){var i,a=Oe(t,r);i=1===a.length&&a[0]instanceof Te&&R.contains(["mrow","mtable"],a[0].type)?a[0]:new Be.MathNode("mrow",a);var o=new Be.MathNode("annotation",[new Be.TextNode(e)]);o.setAttribute("encoding","application/x-tex");var s=new Be.MathNode("semantics",[i,o]),l=new Be.MathNode("math",[s]);l.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML");var h=n?"katex":"katex-mathml";return oe.makeSpan([h],[l])}function y(t,e){var r=m(t);if(r&&R.contains(br,r.text))return r;throw new N("Invalid delimiter: '"+(r?r.text:JSON.stringify(t))+"' after '"+e.funcName+"'",t)}function x(t){if(!t.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}function b(t){for(var e=t.type,r=t.names,n=t.props,i=t.handler,a=t.htmlBuilder,o=t.mathmlBuilder,s={type:e,numArgs:n.numArgs||0,greediness:1,allowedInText:!1,numOptionalArgs:0,handler:i},l=0;l15?"\u2026"+o.slice(n-15,n):o.slice(0,n))+l+(s+15":">","<":"<",'"':""","'":"'"},q=/[&><"']/g,I=function t(e){return"ordgroup"===e.type?1===e.body.length?t(e.body[0]):e:"color"===e.type?1===e.body.length?t(e.body[0]):e:"font"===e.type?t(e.body):e},R={contains:function(t,e){return-1!==t.indexOf(e)},deflt:function(t,e){return void 0===t?e:t},escape:function(t){return String(t).replace(q,function(t){return O[t]})},hyphenate:function(t){return t.replace(E,"-$1").toLowerCase()},getBaseElem:I,isCharacterBox:function(t){var e=I(t);return"mathord"===e.type||"textord"===e.type||"atom"===e.type},protocolFromUrl:function(t){var e=/^\s*([^\\\/#]*?)(?::|�*58|�*3a)/i.exec(t);return null!=e?e[1]:"_relative"}},_=function(){function t(t){this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,t=t||{},this.displayMode=R.deflt(t.displayMode,!1),this.output=R.deflt(t.output,"htmlAndMathml"),this.leqno=R.deflt(t.leqno,!1),this.fleqn=R.deflt(t.fleqn,!1),this.throwOnError=R.deflt(t.throwOnError,!0),this.errorColor=R.deflt(t.errorColor,"#cc0000"),this.macros=t.macros||{},this.minRuleThickness=Math.max(0,R.deflt(t.minRuleThickness,0)),this.colorIsTextColor=R.deflt(t.colorIsTextColor,!1),this.strict=R.deflt(t.strict,"warn"),this.trust=R.deflt(t.trust,!1),this.maxSize=Math.max(0,R.deflt(t.maxSize,1/0)),this.maxExpand=Math.max(0,R.deflt(t.maxExpand,1e3))}var e=t.prototype;return e.reportNonstrict=function(t,e,r){var n=this.strict;if("function"==typeof n&&(n=n(t,e,r)),n&&"ignore"!==n){if(!0===n||"error"===n)throw new N("LaTeX-incompatible input and strict mode is set to 'error': "+e+" ["+t+"]",r);"warn"===n?"undefined"!=typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+e+" ["+t+"]"):"undefined"!=typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to unrecognized '"+n+"': "+e+" ["+t+"]")}},e.useStrictBehavior=function(t,e,r){var n=this.strict;if("function"==typeof n)try{n=n(t,e,r)}catch(t){n="error"}return!(!n||"ignore"===n||!0!==n&&"error"!==n&&("warn"===n?("undefined"!=typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+e+" ["+t+"]"),1):("undefined"!=typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to unrecognized '"+n+"': "+e+" ["+t+"]"),1)))},e.isTrusted=function(t){t.url&&!t.protocol&&(t.protocol=R.protocolFromUrl(t.url));var e="function"==typeof this.trust?this.trust(t):this.trust;return Boolean(e)},t}(),P=function(){function t(t,e,r){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=t,this.size=e,this.cramped=r}var e=t.prototype;return e.sup=function(){return F[D[this.id]]},e.sub=function(){return F[H[this.id]]},e.fracNum=function(){return F[j[this.id]]},e.fracDen=function(){return F[U[this.id]]},e.cramp=function(){return F[V[this.id]]},e.text=function(){return F[G[this.id]]},e.isTight=function(){return this.size>=2},t}(),F=[new P(0,0,!1),new P(1,0,!0),new P(2,1,!1),new P(3,1,!0),new P(4,2,!1),new P(5,2,!0),new P(6,3,!1),new P(7,3,!0)],D=[4,5,4,5,6,7,6,7],H=[5,5,5,5,7,7,7,7],j=[2,3,4,5,6,7,6,7],U=[3,3,5,5,7,7,7,7],V=[1,1,3,3,5,5,7,7],G=[0,1,2,3,2,3,2,3],W={DISPLAY:F[0],TEXT:F[2],SCRIPT:F[4],SCRIPTSCRIPT:F[6]},Y=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}],X=[];Y.forEach(function(t){return t.blocks.forEach(function(t){return X.push.apply(X,t)})});var $={doubleleftarrow:"M262 157\nl10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3\n 0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28\n 14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5\nc2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5\n 157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87\n-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7\n-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z\nm8 0v40h399730v-40zm0 194v40h399730v-40z",doublerightarrow:"M399738 392l\n-10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5\n 14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88\n-33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68\n-17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18\n-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782\nc-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3\n-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z",leftarrow:"M400000 241H110l3-3c68.7-52.7 113.7-120\n 135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8\n-5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247\nc-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208\n 490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3\n 1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202\n l-3-3h399890zM100 241v40h399900v-40z",leftbrace:"M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117\n-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7\n 5-6 9-10 13-.7 1-7.3 1-20 1H6z",leftbraceunder:"M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13\n 35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688\n 0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7\n-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z",leftgroup:"M400000 80\nH435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0\n 435 0h399565z",leftgroupunder:"M400000 262\nH435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219\n 435 219h399565z",leftharpoon:"M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3\n-3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5\n-18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7\n-196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z",leftharpoonplus:"M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5\n 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3\n-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7\n-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z\nm0 0v40h400000v-40z",leftharpoondown:"M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333\n 5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5\n 1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667\n-152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z",leftharpoondownplus:"M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12\n 10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7\n-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0\nv40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z",lefthook:"M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5\n-83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3\n-68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21\n 71.5 23h399859zM103 281v-40h399897v40z",leftlinesegment:"M40 281 V428 H0 V94 H40 V241 H400000 v40z\nM40 281 V428 H0 V94 H40 V241 H400000 v40z",leftmapsto:"M40 281 V448H0V74H40V241H400000v40z\nM40 281 V448H0V74H40V241H400000v40z",leftToFrom:"M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23\n-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8\nc28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3\n 68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z",longequal:"M0 50 h400000 v40H0z m0 194h40000v40H0z\nM0 50 h400000 v40H0z m0 194h40000v40H0z",midbrace:"M200428 334\nc-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14\n-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7\n 311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11\n 12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z",midbraceunder:"M199572 214\nc100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14\n 53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3\n 11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0\n-5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z",oiintSize1:"M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6\n-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z\nm368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8\n60.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z",oiintSize2:"M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8\n-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z\nm502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2\nc0 110 84 276 504 276s502.4-166 502.4-276z",oiiintSize1:"M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6\n-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z\nm525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0\n85.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z",oiiintSize2:"M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8\n-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z\nm770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1\nc0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z",rightarrow:"M0 241v40h399891c-47.3 35.3-84 78-110 128\n-16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20\n 11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7\n 39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85\n-40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5\n-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67\n 151.7 139 205zm0 0v40h399900v-40z",rightbrace:"M400000 542l\n-6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5\ns-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1\nc124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z",rightbraceunder:"M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3\n 28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237\n-174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z",rightgroup:"M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0\n 3-1 3-3v-38c-76-158-257-219-435-219H0z",rightgroupunder:"M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18\n 0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z",rightharpoon:"M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3\n-3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2\n-10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58\n 69.2 92 94.5zm0 0v40h399900v-40z",rightharpoonplus:"M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11\n-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7\n 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z\nm0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z",rightharpoondown:"M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8\n 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5\n-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95\n-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z",rightharpoondownplus:"M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8\n 15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3\n 8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3\n-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z\nm0-194v40h400000v-40zm0 0v40h400000v-40z",righthook:"M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3\n 15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0\n-13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21\n 66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z",rightlinesegment:"M399960 241 V94 h40 V428 h-40 V281 H0 v-40z\nM399960 241 V94 h40 V428 h-40 V281 H0 v-40z",rightToFrom:"M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23\n 1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32\n-52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142\n-167z M100 147v40h399900v-40zM0 341v40h399900v-40z",twoheadleftarrow:"M0 167c68 40\n 115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69\n-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3\n-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19\n-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101\n 10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z",twoheadrightarrow:"M400000 167\nc-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3\n 41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42\n 18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333\n-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70\n 101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z",tilde1:"M200 55.538c-77 0-168 73.953-177 73.953-3 0-7\n-2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0\n 114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 6.525 0\n 4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128\n-68.267.847-113-73.952-191-73.952z", tilde2:"M344 55.266c-142 0-300.638 81.316-311.5 86.418\n-8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9\n 31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114\nc1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751\n 181.476 676 181.476c-149 0-189-126.21-332-126.21z",tilde3:"M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457\n-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0\n 411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697\n 16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696\n -338 0-409-156.573-744-156.573z",tilde4:"M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345\n-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409\n 177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9\n 14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409\n -175.236-744-175.236z",vec:"M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5\n3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11\n10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63\n-1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1\n-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59\nH213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359\nc-16-25.333-24-45-24-59z",widehat1:"M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22\nc-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z",widehat2:"M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10\n-11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z",widehat3:"M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10\n-11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z",widehat4:"M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10\n-11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z",widecheck1:"M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1,\n-5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z",widecheck2:"M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,\n-11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z",widecheck3:"M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,\n-11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z",widecheck4:"M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,\n-11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z",baraboveleftarrow:"M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202\nc4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5\nc-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130\ns-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47\n121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6\ns2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11\nc0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z\nM100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z",rightarrowabovebar:"M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32\n-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0\n13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39\n-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5\n-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5\n-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67\n151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z",baraboveshortleftharpoon:"M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11\nc1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17\nc2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21\nc-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40\nc-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z\nM0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z",rightharpoonaboveshortbar:"M0,241 l0,40c399126,0,399993,0,399993,0\nc4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,\n-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6\nc-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z\nM0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z",shortbaraboveleftharpoon:"M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11\nc1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9,\n1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7,\n-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z\nM93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z",shortrightharpoonabovebar:"M53,241l0,40c398570,0,399437,0,399437,0\nc4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,\n-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6\nc-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z\nM500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z"},K=function(){function t(t){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=t,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}var e=t.prototype;return e.hasClass=function(t){return R.contains(this.classes,t)},e.toNode=function(){for(var t=document.createDocumentFragment(),e=0;e"},et=function(){function t(t,e,r,n){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,J.call(this,t,r,n),this.children=e||[]}var e=t.prototype;return e.setAttribute=function(t,e){this.attributes[t]=e},e.hasClass=function(t){return R.contains(this.classes,t)},e.toNode=function(){return Q.call(this,"span")},e.toMarkup=function(){return tt.call(this,"span")},t}(),rt=function(){function t(t,e,r,n){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,J.call(this,e,n),this.children=r||[],this.setAttribute("href",t)}var e=t.prototype;return e.setAttribute=function(t,e){this.attributes[t]=e},e.hasClass=function(t){return R.contains(this.classes,t)},e.toNode=function(){return Q.call(this,"a")},e.toMarkup=function(){return tt.call(this,"a")},t}(),nt=function(){function t(t,e,r){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=e,this.src=t,this.classes=["mord"],this.style=r}var e=t.prototype;return e.hasClass=function(t){return R.contains(this.classes,t)},e.toNode=function(){var t=document.createElement("img");for(var e in t.src=this.src,t.alt=this.alt,t.className="mord",this.style)this.style.hasOwnProperty(e)&&(t.style[e]=this.style[e]);return t},e.toMarkup=function(){var t=""+this.alt+"=i[0]&&t<=i[1])return r.name}return null}(this.text.charCodeAt(0));l&&this.classes.push(l+"_fallback"),/[\xee\xef\xed\xec]/.test(this.text)&&(this.text=it[this.text])}var e=t.prototype;return e.hasClass=function(t){return R.contains(this.classes,t)},e.toNode=function(){var t=document.createTextNode(this.text),e=null;for(var r in this.italic>0&&((e=document.createElement("span")).style.marginRight=this.italic+"em"),this.classes.length>0&&((e=e||document.createElement("span")).className=Z(this.classes)),this.style)this.style.hasOwnProperty(r)&&((e=e||document.createElement("span")).style[r]=this.style[r]);return e?(e.appendChild(t),e):t},e.toMarkup=function(){var t=!1,e="0&&(r+="margin-right:"+this.italic+"em;"),this.style)this.style.hasOwnProperty(n)&&(r+=R.hyphenate(n)+":"+this.style[n]+";");r&&(t=!0,e+=' style="'+R.escape(r)+'"');var i=R.escape(this.text);return t?(e+=">",e+=i,e+=""):i},t}(),ot=function(){function t(t,e){this.children=void 0,this.attributes=void 0,this.children=t||[],this.attributes=e||{}}var e=t.prototype;return e.toNode=function(){var t=document.createElementNS("http://www.w3.org/2000/svg","svg");for(var e in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,e)&&t.setAttribute(e,this.attributes[e]);for(var r=0;r":""},t}(),lt=function(){function t(t){this.attributes=void 0,this.attributes=t||{}}var e=t.prototype;return e.toNode=function(){var t=document.createElementNS("http://www.w3.org/2000/svg","line");for(var e in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,e)&&t.setAttribute(e,this.attributes[e]);return t},e.toMarkup=function(){var t="",">"),o("math",vt,kt,":",":"),o("math",vt,kt,"\u2248","\\approx",!0),o("math",vt,kt,"\u2245","\\cong",!0),o("math",vt,kt,"\u2265","\\ge"),o("math",vt,kt,"\u2265","\\geq",!0),o("math",vt,kt,"\u2190","\\gets"),o("math",vt,kt,">","\\gt"),o("math",vt,kt,"\u2208","\\in",!0),o("math",vt,kt,"\ue020","\\@not"),o("math",vt,kt,"\u2282","\\subset",!0),o("math",vt,kt,"\u2283","\\supset",!0),o("math",vt,kt,"\u2286","\\subseteq",!0),o("math",vt,kt,"\u2287","\\supseteq",!0),o("math",yt,kt,"\u2288","\\nsubseteq",!0),o("math",yt,kt,"\u2289","\\nsupseteq",!0),o("math",vt,kt,"\u22a8","\\models"),o("math",vt,kt,"\u2190","\\leftarrow",!0),o("math",vt,kt,"\u2264","\\le"),o("math",vt,kt,"\u2264","\\leq",!0),o("math",vt,kt,"<","\\lt"),o("math",vt,kt,"\u2192","\\rightarrow",!0),o("math",vt,kt,"\u2192","\\to"),o("math",yt,kt,"\u2271","\\ngeq",!0),o("math",yt,kt,"\u2270","\\nleq",!0),o("math",vt,"spacing","\xa0","\\ "),o("math",vt,"spacing","\xa0","~"),o("math",vt,"spacing","\xa0","\\space"),o("math",vt,"spacing","\xa0","\\nobreakspace"),o("text",vt,"spacing","\xa0","\\ "),o("text",vt,"spacing","\xa0","~"),o("text",vt,"spacing","\xa0","\\space"),o("text",vt,"spacing","\xa0","\\nobreakspace"),o("math",vt,"spacing",null,"\\nobreak"),o("math",vt,"spacing",null,"\\allowbreak"),o("math",vt,"punct",",",","),o("math",vt,"punct",";",";"),o("math",yt,xt,"\u22bc","\\barwedge",!0),o("math",yt,xt,"\u22bb","\\veebar",!0),o("math",vt,xt,"\u2299","\\odot",!0),o("math",vt,xt,"\u2295","\\oplus",!0),o("math",vt,xt,"\u2297","\\otimes",!0),o("math",vt,"textord","\u2202","\\partial",!0),o("math",vt,xt,"\u2298","\\oslash",!0),o("math",yt,xt,"\u229a","\\circledcirc",!0),o("math",yt,xt,"\u22a1","\\boxdot",!0),o("math",vt,xt,"\u25b3","\\bigtriangleup"),o("math",vt,xt,"\u25bd","\\bigtriangledown"),o("math",vt,xt,"\u2020","\\dagger"),o("math",vt,xt,"\u22c4","\\diamond"),o("math",vt,xt,"\u22c6","\\star"),o("math",vt,xt,"\u25c3","\\triangleleft"),o("math",vt,xt,"\u25b9","\\triangleright"),o("math",vt,"open","{","\\{"),o("text",vt,"textord","{","\\{"),o("text",vt,"textord","{","\\textbraceleft"),o("math",vt,"close","}","\\}"),o("text",vt,"textord","}","\\}"),o("text",vt,"textord","}","\\textbraceright"),o("math",vt,"open","{","\\lbrace"),o("math",vt,"close","}","\\rbrace"),o("math",vt,"open","[","\\lbrack"),o("text",vt,"textord","[","\\lbrack"),o("math",vt,"close","]","\\rbrack"),o("text",vt,"textord","]","\\rbrack"),o("math",vt,"open","(","\\lparen"),o("math",vt,"close",")","\\rparen"),o("text",vt,"textord","<","\\textless"),o("text",vt,"textord",">","\\textgreater"),o("math",vt,"open","\u230a","\\lfloor",!0),o("math",vt,"close","\u230b","\\rfloor",!0),o("math",vt,"open","\u2308","\\lceil",!0),o("math",vt,"close","\u2309","\\rceil",!0),o("math",vt,"textord","\\","\\backslash"),o("math",vt,"textord","\u2223","|"),o("math",vt,"textord","\u2223","\\vert"),o("text",vt,"textord","|","\\textbar"),o("math",vt,"textord","\u2225","\\|"),o("math",vt,"textord","\u2225","\\Vert"),o("text",vt,"textord","\u2225","\\textbardbl"),o("text",vt,"textord","~","\\textasciitilde"),o("text",vt,"textord","\\","\\textbackslash"),o("text",vt,"textord","^","\\textasciicircum"),o("math",vt,kt,"\u2191","\\uparrow",!0),o("math",vt,kt,"\u21d1","\\Uparrow",!0),o("math",vt,kt,"\u2193","\\downarrow",!0),o("math",vt,kt,"\u21d3","\\Downarrow",!0),o("math",vt,kt,"\u2195","\\updownarrow",!0),o("math",vt,kt,"\u21d5","\\Updownarrow",!0),o("math",vt,wt,"\u2210","\\coprod"),o("math",vt,wt,"\u22c1","\\bigvee"),o("math",vt,wt,"\u22c0","\\bigwedge"),o("math",vt,wt,"\u2a04","\\biguplus"),o("math",vt,wt,"\u22c2","\\bigcap"),o("math",vt,wt,"\u22c3","\\bigcup"),o("math",vt,wt,"\u222b","\\int"),o("math",vt,wt,"\u222b","\\intop"),o("math",vt,wt,"\u222c","\\iint"),o("math",vt,wt,"\u222d","\\iiint"),o("math",vt,wt,"\u220f","\\prod"),o("math",vt,wt,"\u2211","\\sum"),o("math",vt,wt,"\u2a02","\\bigotimes"),o("math",vt,wt,"\u2a01","\\bigoplus"),o("math",vt,wt,"\u2a00","\\bigodot"),o("math",vt,wt,"\u222e","\\oint"),o("math",vt,wt,"\u222f","\\oiint"),o("math",vt,wt,"\u2230","\\oiiint"),o("math",vt,wt,"\u2a06","\\bigsqcup"),o("math",vt,wt,"\u222b","\\smallint"),o("text",vt,"inner","\u2026","\\textellipsis"),o("math",vt,"inner","\u2026","\\mathellipsis"),o("text",vt,"inner","\u2026","\\ldots",!0),o("math",vt,"inner","\u2026","\\ldots",!0),o("math",vt,"inner","\u22ef","\\@cdots",!0),o("math",vt,"inner","\u22f1","\\ddots",!0),o("math",vt,"textord","\u22ee","\\varvdots"),o("math",vt,"accent-token","\u02ca","\\acute"),o("math",vt,"accent-token","\u02cb","\\grave"),o("math",vt,"accent-token","\xa8","\\ddot"),o("math",vt,"accent-token","~","\\tilde"),o("math",vt,"accent-token","\u02c9","\\bar"),o("math",vt,"accent-token","\u02d8","\\breve"),o("math",vt,"accent-token","\u02c7","\\check"),o("math",vt,"accent-token","^","\\hat"),o("math",vt,"accent-token","\u20d7","\\vec"),o("math",vt,"accent-token","\u02d9","\\dot"),o("math",vt,"accent-token","\u02da","\\mathring"),o("math",vt,bt,"\u0131","\\imath",!0),o("math",vt,bt,"\u0237","\\jmath",!0),o("text",vt,"textord","\u0131","\\i",!0),o("text",vt,"textord","\u0237","\\j",!0),o("text",vt,"textord","\xdf","\\ss",!0),o("text",vt,"textord","\xe6","\\ae",!0),o("text",vt,"textord","\xe6","\\ae",!0),o("text",vt,"textord","\u0153","\\oe",!0),o("text",vt,"textord","\xf8","\\o",!0),o("text",vt,"textord","\xc6","\\AE",!0),o("text",vt,"textord","\u0152","\\OE",!0),o("text",vt,"textord","\xd8","\\O",!0),o("text",vt,"accent-token","\u02ca","\\'"),o("text",vt,"accent-token","\u02cb","\\`"),o("text",vt,"accent-token","\u02c6","\\^"),o("text",vt,"accent-token","\u02dc","\\~"),o("text",vt,"accent-token","\u02c9","\\="),o("text",vt,"accent-token","\u02d8","\\u"),o("text",vt,"accent-token","\u02d9","\\."),o("text",vt,"accent-token","\u02da","\\r"),o("text",vt,"accent-token","\u02c7","\\v"),o("text",vt,"accent-token","\xa8",'\\"'),o("text",vt,"accent-token","\u02dd","\\H"),o("text",vt,"accent-token","\u25ef","\\textcircled");var St={"--":!0,"---":!0,"``":!0,"''":!0};o("text",vt,"textord","\u2013","--"),o("text",vt,"textord","\u2013","\\textendash"),o("text",vt,"textord","\u2014","---"),o("text",vt,"textord","\u2014","\\textemdash"),o("text",vt,"textord","\u2018","`"),o("text",vt,"textord","\u2018","\\textquoteleft"),o("text",vt,"textord","\u2019","'"),o("text",vt,"textord","\u2019","\\textquoteright"),o("text",vt,"textord","\u201c","``"),o("text",vt,"textord","\u201c","\\textquotedblleft"),o("text",vt,"textord","\u201d","''"),o("text",vt,"textord","\u201d","\\textquotedblright"),o("math",vt,"textord","\xb0","\\degree",!0),o("text",vt,"textord","\xb0","\\degree"),o("text",vt,"textord","\xb0","\\textdegree",!0),o("math",vt,bt,"\xa3","\\pounds"),o("math",vt,bt,"\xa3","\\mathsterling",!0),o("text",vt,bt,"\xa3","\\pounds"),o("text",vt,bt,"\xa3","\\textsterling",!0),o("math",yt,"textord","\u2720","\\maltese"),o("text",yt,"textord","\u2720","\\maltese"),o("text",vt,"spacing","\xa0","\\ "),o("text",vt,"spacing","\xa0"," "),o("text",vt,"spacing","\xa0","~");for(var At=0;At<'0123456789/@."'.length;At++){var Mt='0123456789/@."'.charAt(At);o("math",vt,"textord",Mt,Mt)}for(var zt=0;zt<'0123456789!@*()-=+[]<>|";:?/.,'.length;zt++){var Tt='0123456789!@*()-=+[]<>|";:?/.,'.charAt(zt);o("text",vt,"textord",Tt,Tt)}for(var Ct="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",Bt=0;Bt=5?0:t>=3?1:2]){var r=ut[e]={cssEmPerMu:ct.quad[e]/18};for(var n in ct)ct.hasOwnProperty(n)&&(r[n]=ct[n][e])}return ut[e]}(this.size)),this._fontMetrics},e.getColor=function(){return this.phantom?"transparent":this.color},t}();Ut.BASESIZE=6;var Vt=Ut,Gt={pt:1,mm:7227/2540,cm:7227/254,"in":72.27,bp:1.00375,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:1.00375},Wt={ex:!0,em:!0,mu:!0},Yt=function(t){return"string"!=typeof t&&(t=t.unit),t in Gt||t in Wt||"ex"===t},Xt=function(t,e){var r;if(t.unit in Gt)r=Gt[t.unit]/e.fontMetrics().ptPerEm/e.sizeMultiplier;else if("mu"===t.unit)r=e.fontMetrics().cssEmPerMu;else{var n;if(n=e.style.isTight()?e.havingStyle(e.style.text()):e,"ex"===t.unit)r=n.fontMetrics().xHeight;else{if("em"!==t.unit)throw new N("Invalid unit: '"+t.unit+"'");r=n.fontMetrics().quad}n!==e&&(r*=n.sizeMultiplier/e.sizeMultiplier)}return Math.min(t.number*r,e.maxSize)},$t=["\\imath","\u0131","\\jmath","\u0237","\\pounds","\\mathsterling","\\textsterling","\xa3"],Kt=function(t,e,r){return gt[r][t]&>[r][t].replace&&(t=gt[r][t].replace),{value:t,metrics:a(t,e,r)}},Zt=function(t,e,r,n,i){var a,o=Kt(t,e,r),s=o.metrics;if(t=o.value,s){var l=s.italic;("text"===r||n&&"mathit"===n.font)&&(l=0),a=new at(t,s.height,s.depth,l,s.skew,s.width,i)}else"undefined"!=typeof console&&console.warn("No character metrics for '"+t+"' in style '"+e+"' and mode '"+r+"'"),a=new at(t,0,0,0,0,0,i);if(n){a.maxFontSize=n.sizeMultiplier,n.style.isTight()&&a.classes.push("mtight");var h=n.getColor();h&&(a.style.color=h)}return a},Jt=function(t,e){if(Z(t.classes)!==Z(e.classes)||t.skew!==e.skew||t.maxFontSize!==e.maxFontSize)return!1;for(var r in t.style)if(t.style.hasOwnProperty(r)&&t.style[r]!==e.style[r])return!1;for(var n in e.style)if(e.style.hasOwnProperty(n)&&t.style[n]!==e.style[n])return!1;return!0},Qt=function(t){for(var e=0,r=0,n=0,i=0;ie&&(e=a.height),a.depth>r&&(r=a.depth),a.maxFontSize>n&&(n=a.maxFontSize)}t.height=e,t.depth=r,t.maxFontSize=n},te=function(t,e,r,n){var i=new et(t,e,r,n);return Qt(i),i},ee=function(t,e,r,n){return new et(t,e,r,n)},re=function(t){var e=new K(t);return Qt(e),e},ne=function(t,e,r){var n="";switch(t){case"amsrm":n="AMS";break;case"textrm":n="Main";break;case"textsf":n="SansSerif";break;case"texttt":n="Typewriter";break;default:n=t}return n+"-"+("textbf"===e&&"textit"===r?"BoldItalic":"textbf"===e?"Bold":"textit"===e?"Italic":"Regular")},ie={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathit:{variant:"italic",fontName:"Main-Italic"},mathbb:{variant:"double-struck",fontName:"AMS-Regular"},mathcal:{variant:"script",fontName:"Caligraphic-Regular"},mathfrak:{variant:"fraktur",fontName:"Fraktur-Regular"},mathscr:{variant:"script",fontName:"Script-Regular"},mathsf:{variant:"sans-serif",fontName:"SansSerif-Regular"},mathtt:{variant:"monospace",fontName:"Typewriter-Regular"}},ae={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},oe={fontMap:ie,makeSymbol:Zt,mathsym:function(t,e,r,n){return void 0===n&&(n=[]),"boldsymbol"===r.font&&Kt(t,"Main-Bold",e).metrics?Zt(t,"Main-Bold",e,r,n.concat(["mathbf"])):"\\"===t||"main"===gt[e][t].font?Zt(t,"Main-Regular",e,r,n):Zt(t,"AMS-Regular",e,r,n.concat(["amsrm"]))},makeSpan:te,makeSvgSpan:ee,makeLineSpan:function(t,e,r){var n=te([t],[],e);return n.height=Math.max(r||e.fontMetrics().defaultRuleThickness,e.minRuleThickness),n.style.borderBottomWidth=n.height+"em",n.maxFontSize=1,n},makeAnchor:function(t,e,r,n){var i=new rt(t,e,r,n);return Qt(i),i},makeFragment:re,wrapFragment:function(t,e){return t instanceof K?te([],[t],e):t},makeVList:function(t){for(var e=function(t){if("individualShift"===t.positionType){for(var e=t.children,r=[e[0]],n=-e[0].shift-e[0].elem.depth,i=n,a=1;a"},e.toText=function(){return this.children.map(function(t){return t.toText()}).join("")},t}(),Ce=function(){function t(t){this.text=void 0,this.text=t}var e=t.prototype;return e.toNode=function(){return document.createTextNode(this.text)},e.toMarkup=function(){return R.escape(this.toText())},e.toText=function(){return this.text},t}(),Be={MathNode:Te,TextNode:Ce,SpaceNode:function(){function t(t){this.width=void 0,this.character=void 0,this.width=t,this.character=t>=.05555&&t<=.05556?"\u200a":t>=.1666&&t<=.1667?"\u2009":t>=.2222&&t<=.2223?"\u2005":t>=.2777&&t<=.2778?"\u2005\u200a":t>=-.05556&&t<=-.05555?"\u200a\u2063":t>=-.1667&&t<=-.1666?"\u2009\u2063":t>=-.2223&&t<=-.2222?"\u205f\u2063":t>=-.2778&&t<=-.2777?"\u2005\u2063":null}var e=t.prototype;return e.toNode=function(){if(this.character)return document.createTextNode(this.character);var t=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return t.setAttribute("width",this.width+"em"),t},e.toMarkup=function(){return this.character?""+this.character+"":''},e.toText=function(){return this.character?this.character:" "},t}(),newDocumentFragment:g},Le=function(t,e,r){return!gt[e][t]||!gt[e][t].replace||55349===t.charCodeAt(0)||St.hasOwnProperty(t)&&r&&(r.fontFamily&&"tt"===r.fontFamily.substr(4,2)||r.font&&"tt"===r.font.substr(4,2))||(t=gt[e][t].replace),new Be.TextNode(t)},Ne=function(t){return 1===t.length?t[0]:new Be.MathNode("mrow",t)},Ee=function(t,e){if("texttt"===e.fontFamily)return"monospace";if("textsf"===e.fontFamily)return"textit"===e.fontShape&&"textbf"===e.fontWeight?"sans-serif-bold-italic":"textit"===e.fontShape?"sans-serif-italic":"textbf"===e.fontWeight?"bold-sans-serif":"sans-serif";if("textit"===e.fontShape&&"textbf"===e.fontWeight)return"bold-italic";if("textit"===e.fontShape)return"italic";if("textbf"===e.fontWeight)return"bold";var r=e.font;if(!r||"mathnormal"===r)return null;var n=t.mode;if("mathit"===r)return"italic";if("boldsymbol"===r)return"bold-italic";if("mathbf"===r)return"bold";if("mathbb"===r)return"double-struck";if("mathfrak"===r)return"fraktur";if("mathscr"===r||"mathcal"===r)return"script";if("mathsf"===r)return"sans-serif";if("mathtt"===r)return"monospace";var i=t.text;return R.contains(["\\imath","\\jmath"],i)?null:(gt[n][i]&>[n][i].replace&&(i=gt[n][i].replace),a(i,oe.fontMap[r].fontName,n)?oe.fontMap[r].variant:null)},Oe=function(t,e,r){if(1===t.length){var n=Ie(t[0],e);return r&&n instanceof Te&&"mo"===n.type&&(n.setAttribute("lspace","0em"),n.setAttribute("rspace","0em")),[n]}for(var i,a=[],o=0;o0&&(d.text=d.text.slice(0,1)+"\u0338"+d.text.slice(1),a.pop())}}}a.push(s),i=s}return a},qe=function(t,e,r){return Ne(Oe(t,e,r))},Ie=function(t,e){if(!t)return new Be.MathNode("mrow");if(pe[t.type])return pe[t.type](t,e);throw new N("Got group of unknown type: '"+t.type+"'")},Re=function(t){return new Vt({style:t.displayMode?W.DISPLAY:W.TEXT,maxSize:t.maxSize,minRuleThickness:t.minRuleThickness})},_e=function(t,e){if(e.displayMode){var r=["katex-display"];e.leqno&&r.push("leqno"),e.fleqn&&r.push("fleqn"),t=oe.makeSpan(r,[t])}return t},Pe=function(t,e,r){var n,i=Re(r);if("mathml"===r.output)return v(t,e,i,!0);if("html"===r.output){var a=f(t,i);n=oe.makeSpan(["katex"],[a])}else{var o=v(t,e,i,!1),s=f(t,i);n=oe.makeSpan(["katex"],[o,s])}return _e(n,r)},Fe={widehat:"^",widecheck:"\u02c7",widetilde:"~",utilde:"~",overleftarrow:"\u2190",underleftarrow:"\u2190",xleftarrow:"\u2190",overrightarrow:"\u2192",underrightarrow:"\u2192",xrightarrow:"\u2192",underbrace:"\u23df",overbrace:"\u23de",overgroup:"\u23e0",undergroup:"\u23e1",overleftrightarrow:"\u2194",underleftrightarrow:"\u2194",xleftrightarrow:"\u2194",Overrightarrow:"\u21d2",xRightarrow:"\u21d2",overleftharpoon:"\u21bc",xleftharpoonup:"\u21bc",overrightharpoon:"\u21c0",xrightharpoonup:"\u21c0",xLeftarrow:"\u21d0",xLeftrightarrow:"\u21d4",xhookleftarrow:"\u21a9",xhookrightarrow:"\u21aa",xmapsto:"\u21a6",xrightharpoondown:"\u21c1",xleftharpoondown:"\u21bd",xrightleftharpoons:"\u21cc",xleftrightharpoons:"\u21cb",xtwoheadleftarrow:"\u219e",xtwoheadrightarrow:"\u21a0",xlongequal:"=",xtofrom:"\u21c4",xrightleftarrows:"\u21c4",xrightequilibrium:"\u21cc",xleftequilibrium:"\u21cb"},De={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},He=function(t){return"ordgroup"===t.type?t.body.length:1},je=function(t,e,r,n){var i,a=t.height+t.depth+2*r;if(/fbox|color/.test(e)){if(i=oe.makeSpan(["stretchy",e],[],n),"fbox"===e){var o=n.color&&n.getColor();o&&(i.style.borderColor=o)}}else{var s=[];/^[bx]cancel$/.test(e)&&s.push(new lt({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(e)&&s.push(new lt({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var l=new ot(s,{width:"100%",height:a+"em"});i=oe.makeSvgSpan([],[l],n)}return i.height=a,i.style.height=a+"em",i},Ue=function(t){var e=new Be.MathNode("mo",[new Be.TextNode(Fe[t.substr(1)])]);return e.setAttribute("stretchy","true"),e},Ve=function(t,e){var r=function(){var r=4e5,n=t.label.substr(1);if(R.contains(["widehat","widecheck","widetilde","utilde"],n)){var i,a,o,s=He(t.base);if(s>5)"widehat"===n||"widecheck"===n?(i=420,r=2364,o=.42,a=n+"4"):(i=312,r=2340,o=.34,a="tilde4");else{var l=[1,1,2,2,3,3][s];"widehat"===n||"widecheck"===n?(r=[0,1062,2364,2364,2364][l],i=[0,239,300,360,420][l],o=[0,.24,.3,.3,.36,.42][l],a=n+l):(r=[0,600,1033,2339,2340][l],i=[0,260,286,306,312][l],o=[0,.26,.286,.3,.306,.34][l],a="tilde"+l)}var h=new st(a),c=new ot([h],{width:"100%",height:o+"em",viewBox:"0 0 "+r+" "+i,preserveAspectRatio:"none"});return{span:oe.makeSvgSpan([],[c],e),minWidth:0,height:o}}var m,u,d=[],p=De[n],f=p[0],g=p[1],v=p[2],y=v/1e3,x=f.length;if(1===x)m=["hide-tail"],u=[p[3]];else if(2===x)m=["halfarrow-left","halfarrow-right"],u=["xMinYMin","xMaxYMin"];else{if(3!==x)throw new Error("Correct katexImagesData or update code here to support\n "+x+" children.");m=["brace-left","brace-center","brace-right"],u=["xMinYMin","xMidYMin","xMaxYMin"]}for(var b=0;b0&&(n.style.minWidth=i+"em"),n},Ge=function(t,e){var r,n,a,o=l(t,"supsub");o?(r=(n=s(o.base,"accent")).base,o.base=r,a=function(t){if(t instanceof et)return t;throw new Error("Expected span but got "+String(t)+".")}(ze(o,e)),o.base=n):r=(n=s(t,"accent")).base;var h=ze(r,e.havingCrampedStyle()),c=0;if(n.isShifty&&R.isCharacterBox(r)){var m=R.getBaseElem(r);c=i(ze(m,e.havingCrampedStyle())).skew}var u,d=Math.min(h.height,e.fontMetrics().xHeight);if(n.isStretchy)u=Ve(n,e),u=oe.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:h},{type:"elem",elem:u,wrapperClasses:["svg-align"],wrapperStyle:c>0?{width:"calc(100% - "+2*c+"em)",marginLeft:2*c+"em"}:void 0}]},e);else{var p,f;"\\vec"===n.label?(p=oe.staticSvg("vec",e),f=oe.svgData.vec[1]):((p=i(p=oe.makeOrd({mode:n.mode,text:n.label},e,"textord"))).italic=0,f=p.width),u=oe.makeSpan(["accent-body"],[p]);var g="\\textcircled"===n.label;g&&(u.classes.push("accent-full"),d=h.height);var v=c;g||(v-=f/2),u.style.left=v+"em","\\textcircled"===n.label&&(u.style.top=".2em"),u=oe.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:h},{type:"kern",size:-d},{type:"elem",elem:u}]},e)}var y=oe.makeSpan(["mord","accent"],[u],e);return a?(a.children[0]=y,a.height=Math.max(y.height,a.height),a.classes[0]="mord",a):y},We=function(t,e){var r=t.isStretchy?Ue(t.label):new Be.MathNode("mo",[Le(t.label,t.mode)]),n=new Be.MathNode("mover",[Ie(t.base,e),r]);return n.setAttribute("accent","true"),n},Ye=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(function(t){return"\\"+t}).join("|"));u({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:function(t,e){var r=e[0],n=!Ye.test(t.funcName),i=!n||"\\widehat"===t.funcName||"\\widetilde"===t.funcName||"\\widecheck"===t.funcName;return{type:"accent",mode:t.parser.mode,label:t.funcName,isStretchy:n,isShifty:i,base:r}},htmlBuilder:Ge,mathmlBuilder:We}),u({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!1},handler:function(t,e){var r=e[0];return{type:"accent",mode:t.parser.mode,label:t.funcName,isStretchy:!1,isShifty:!0,base:r}},htmlBuilder:Ge,mathmlBuilder:We}),u({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:function(t,e){var r=t.parser,n=t.funcName,i=e[0];return{type:"accentUnder",mode:r.mode,label:n,base:i}},htmlBuilder:function(t,e){var r=ze(t.base,e),n=Ve(t,e),i="\\utilde"===t.label?.12:0,a=oe.makeVList({positionType:"bottom",positionData:n.height+i,children:[{type:"elem",elem:n,wrapperClasses:["svg-align"]},{type:"kern",size:i},{type:"elem",elem:r}]},e);return oe.makeSpan(["mord","accentunder"],[a],e)},mathmlBuilder:function(t,e){var r=Ue(t.label),n=new Be.MathNode("munder",[Ie(t.base,e),r]);return n.setAttribute("accentunder","true"),n}});var Xe=function(t){var e=new Be.MathNode("mpadded",t?[t]:[]);return e.setAttribute("width","+0.6em"),e.setAttribute("lspace","0.3em"),e};u({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium"],props:{numArgs:1,numOptionalArgs:1},handler:function(t,e,r){var n=t.parser,i=t.funcName;return{type:"xArrow",mode:n.mode,label:i,body:e[0],below:r[0]}},htmlBuilder:function(t,e){var r,n=e.style,i=e.havingStyle(n.sup()),a=oe.wrapFragment(ze(t.body,i,e),e);a.classes.push("x-arrow-pad"),t.below&&(i=e.havingStyle(n.sub()),(r=oe.wrapFragment(ze(t.below,i,e),e)).classes.push("x-arrow-pad"));var o,s=Ve(t,e),l=-e.fontMetrics().axisHeight+.5*s.height,h=-e.fontMetrics().axisHeight-.5*s.height-.111;if((a.depth>.25||"\\xleftequilibrium"===t.label)&&(h-=a.depth),r){var c=-e.fontMetrics().axisHeight+r.height+.5*s.height+.111;o=oe.makeVList({positionType:"individualShift",children:[{type:"elem",elem:a,shift:h},{type:"elem",elem:s,shift:l},{type:"elem",elem:r,shift:c}]},e)}else o=oe.makeVList({positionType:"individualShift",children:[{type:"elem",elem:a,shift:h},{type:"elem",elem:s,shift:l}]},e);return o.children[0].children[0].children[1].classes.push("svg-align"),oe.makeSpan(["mrel","x-arrow"],[o],e)},mathmlBuilder:function(t,e){var r,n=Ue(t.label);if(t.body){var i=Xe(Ie(t.body,e));if(t.below){var a=Xe(Ie(t.below,e));r=new Be.MathNode("munderover",[n,a,i])}else r=new Be.MathNode("mover",[n,i])}else if(t.below){var o=Xe(Ie(t.below,e));r=new Be.MathNode("munder",[n,o])}else r=Xe(),r=new Be.MathNode("mover",[n,r]);return r}}),u({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler:function(t,e){for(var r=t.parser,n=s(e[0],"ordgroup").body,i="",a=0;a","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],lr=[0,1.2,1.8,2.4,3],hr=[{type:"small",style:W.SCRIPTSCRIPT},{type:"small",style:W.SCRIPT},{type:"small",style:W.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],cr=[{type:"small",style:W.SCRIPTSCRIPT},{type:"small",style:W.SCRIPT},{type:"small",style:W.TEXT},{type:"stack"}],mr=[{type:"small",style:W.SCRIPTSCRIPT},{type:"small",style:W.SCRIPT},{type:"small",style:W.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],ur=function(t){if("small"===t.type)return"Main-Regular";if("large"===t.type)return"Size"+t.size+"-Regular";if("stack"===t.type)return"Size4-Regular";throw new Error("Add support for delim type '"+t.type+"' here.")},dr=function(t,e,r,n){for(var i=Math.min(2,3-n.style.size);ie)return r[i]}return r[r.length-1]},pr=function(t,e,r,n,i,a){var o;"<"===t||"\\lt"===t||"\u27e8"===t?t="\\langle":">"!==t&&"\\gt"!==t&&"\u27e9"!==t||(t="\\rangle"),o=R.contains(sr,t)?hr:R.contains(ar,t)?mr:cr;var s=dr(t,e,o,n);return"small"===s.type?function(t,e,r,n,i,a){var o=oe.makeSymbol(t,"Main-Regular",i,n),s=Je(o,e,n,a);return r&&Qe(s,n,e),s}(t,s.style,r,n,i,a):"large"===s.type?tr(t,s.size,r,n,i,a):nr(t,e,r,n,i,a)},fr=function(t,e){var r,n,i=e.havingBaseSizing(),a=dr("\\surd",t*i.sizeMultiplier,mr,i),o=i.sizeMultiplier,s=Math.max(0,e.minRuleThickness-e.fontMetrics().sqrtRuleThickness),l=0,h=0,c=0;return"small"===a.type?(t<1?o=1:t<1.4&&(o=.7),h=(1+s)/o,(r=ir("sqrtMain",l=(1+s+.08)/o,c=1e3+1e3*s+80,s,e)).style.minWidth="0.853em",n=.833/o):"large"===a.type?(c=1080*lr[a.size],h=(lr[a.size]+s)/o,l=(lr[a.size]+s+.08)/o,(r=ir("sqrtSize"+a.size,l,c,s,e)).style.minWidth="1.02em",n=1/o):(l=t+s+.08,h=t+s,c=Math.floor(1e3*t+s)+80,(r=ir("sqrtTall",l,c,s,e)).style.minWidth="0.742em",n=1.056),r.height=h,r.style.height=l+"em",{span:r,advanceWidth:n,ruleWidth:(e.fontMetrics().sqrtRuleThickness+s)*o}},gr=function(t,e,r,n,i){if("<"===t||"\\lt"===t||"\u27e8"===t?t="\\langle":">"!==t&&"\\gt"!==t&&"\u27e9"!==t||(t="\\rangle"),R.contains(ar,t)||R.contains(sr,t))return tr(t,e,!1,r,n,i);if(R.contains(or,t))return nr(t,lr[e],!1,r,n,i);throw new N("Illegal delimiter: '"+t+"'")},vr=pr,yr=function(t,e,r,n,i,a){var o=n.fontMetrics().axisHeight*n.sizeMultiplier,s=5/n.fontMetrics().ptPerEm,l=Math.max(e-o,r+o),h=Math.max(l/500*901,2*l-s);return pr(t,h,!0,n,i,a)},xr={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}},br=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","\u230a","\u230b","\\lceil","\\rceil","\u2308","\u2309","<",">","\\langle","\u27e8","\\rangle","\u27e9","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","\u27ee","\u27ef","\\lmoustache","\\rmoustache","\u23b0","\u23b1","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."];u({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1},handler:function(t,e){var r=y(e[0],t);return{type:"delimsizing",mode:t.parser.mode,size:xr[t.funcName].size,mclass:xr[t.funcName].mclass,delim:r.text}},htmlBuilder:function(t,e){return"."===t.delim?oe.makeSpan([t.mclass]):gr(t.delim,t.size,e,t.mode,[t.mclass])},mathmlBuilder:function(t){var e=[];"."!==t.delim&&e.push(Le(t.delim,t.mode));var r=new Be.MathNode("mo",e);return"mopen"===t.mclass||"mclose"===t.mclass?r.setAttribute("fence","true"):r.setAttribute("fence","false"),r}}),u({type:"leftright-right",names:["\\right"],props:{numArgs:1},handler:function(t,e){var r=t.parser.gullet.macros.get("\\current@color");if(r&&"string"!=typeof r)throw new N("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:t.parser.mode,delim:y(e[0],t).text,color:r}}}),u({type:"leftright",names:["\\left"],props:{numArgs:1},handler:function(t,e){var r=y(e[0],t),n=t.parser;++n.leftrightDepth;var i=n.parseExpression(!1);--n.leftrightDepth,n.expect("\\right",!1);var a=s(n.parseFunction(),"leftright-right");return{type:"leftright",mode:n.mode,body:i,left:r.text,right:a.delim,rightColor:a.color}},htmlBuilder:function(t,e){x(t);for(var r,n,i=we(t.body,e,!0,["mopen","mclose"]),a=0,o=0,s=!1,l=0;l-1?"mpadded":"menclose",[Ie(t.body,e)]);switch(t.label){case"\\cancel":n.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":n.setAttribute("notation","downdiagonalstrike");break;case"\\sout":n.setAttribute("notation","horizontalstrike");break;case"\\fbox":n.setAttribute("notation","box");break;case"\\fcolorbox":case"\\colorbox":if(r=e.fontMetrics().fboxsep*e.fontMetrics().ptPerEm,n.setAttribute("width","+"+2*r+"pt"),n.setAttribute("height","+"+2*r+"pt"),n.setAttribute("lspace",r+"pt"),n.setAttribute("voffset",r+"pt"),"\\fcolorbox"===t.label){var i=Math.max(e.fontMetrics().fboxrule,e.minRuleThickness);n.setAttribute("style","border: "+i+"em solid "+String(t.borderColor))}break;case"\\xcancel":n.setAttribute("notation","updiagonalstrike downdiagonalstrike")}return t.backgroundColor&&n.setAttribute("mathbackground",t.backgroundColor),n};u({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,greediness:3,argTypes:["color","text"]},handler:function(t,e){var r=t.parser,n=t.funcName,i=s(e[0],"color-token").color,a=e[1];return{type:"enclose",mode:r.mode,label:n,backgroundColor:i,body:a}},htmlBuilder:wr,mathmlBuilder:kr}),u({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,greediness:3,argTypes:["color","color","text"]},handler:function(t,e){var r=t.parser,n=t.funcName,i=s(e[0],"color-token").color,a=s(e[1],"color-token").color,o=e[2];return{type:"enclose",mode:r.mode,label:n,backgroundColor:a,borderColor:i,body:o}},htmlBuilder:wr,mathmlBuilder:kr}),u({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler:function(t,e){return{type:"enclose",mode:t.parser.mode,label:"\\fbox",body:e[0]}}}),u({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout"],props:{numArgs:1},handler:function(t,e){var r=t.parser,n=t.funcName,i=e[0];return{type:"enclose",mode:r.mode,label:n,body:i}},htmlBuilder:wr,mathmlBuilder:kr});var Sr={},Ar=function(t,e){function r(t){for(var e=0;e0&&(y+=.25),h.push({pos:y,isDashed:t[e]})}var n,i,a=t.body.length,o=t.hLinesBeforeRow,s=0,l=new Array(a),h=[],c=Math.max(e.fontMetrics().arrayRuleWidth,e.minRuleThickness),m=1/e.fontMetrics().ptPerEm,u=5*m;t.colSeparationType&&"small"===t.colSeparationType&&(u=e.havingStyle(W.SCRIPT).sizeMultiplier/e.sizeMultiplier*.2778);var d=12*m,p=3*m,f=t.arraystretch*d,g=.7*f,v=.3*f,y=0;for(r(o[0]),n=0;n0&&(w<(M+=v)&&(w=M),M=0),t.addJot&&(w+=p),k.height=b,k.depth=w,y+=b,k.pos=y,y+=w+M,l[n]=k,r(o[n+1])}var z,T,C=y/2+e.fontMetrics().axisHeight,B=t.cols||[],L=[];for(i=0,T=0;i=s)){var _=void 0;(i>0||t.hskipBeforeAndAfter)&&0!==(_=R.deflt(E.pregap,u))&&((z=oe.makeSpan(["arraycolsep"],[])).style.width=_+"em",L.push(z));var P=[];for(n=0;n0){for(var j=oe.makeLineSpan("hline",e,c),U=oe.makeLineSpan("hdashline",e,c),V=[{type:"elem",elem:l,shift:0}];h.length>0;){var G=h.pop(),Y=G.pos-C;G.isDashed?V.push({type:"elem",elem:U,shift:Y}):V.push({type:"elem",elem:j,shift:Y})}l=oe.makeVList({positionType:"individualShift",children:V},e)}return oe.makeSpan(["mord"],[l],e)},Mr={c:"center ",l:"left ",r:"right "},zr=function(t,e){var r=new Be.MathNode("mtable",t.body.map(function(t){return new Be.MathNode("mtr",t.map(function(t){return new Be.MathNode("mtd",[Ie(t,e)])}))})),n=.5===t.arraystretch?.1:.16+t.arraystretch-1+(t.addJot?.09:0);r.setAttribute("rowspacing",n+"em");var i="",a="";if(t.cols){var o=t.cols,s="",l=!1,h=0,c=o.length;"separator"===o[0].type&&(i+="top ",h=1),"separator"===o[o.length-1].type&&(i+="bottom ",c-=1);for(var m=h;m0?"left ":"",i+=g[g.length-1].length>0?"right ":"";for(var v=1;v0&&u&&(f=1),n[d]={type:"align",align:p,pregap:f,postgap:0}}return i.colSeparationType=u?"align":"alignat",i};b({type:"array",names:["array","darray"],props:{numArgs:1},handler:function(t,e){var r={cols:(m(e[0])?[e[0]]:s(e[0],"ordgroup").body).map(function(t){var e=c(t).text;if(-1!=="lcr".indexOf(e))return{type:"align",align:e};if("|"===e)return{type:"separator",separator:"|"};if(":"===e)return{type:"separator",separator:":"};throw new N("Unknown column alignment: "+e,t)}),hskipBeforeAndAfter:!0};return k(t.parser,r,S(t.envName))},htmlBuilder:Ar,mathmlBuilder:zr}),b({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix"],props:{numArgs:0},handler:function(t){var e={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[t.envName],r=k(t.parser,{hskipBeforeAndAfter:!1},S(t.envName));return e?{type:"leftright",mode:t.mode,body:[r],left:e[0],right:e[1],rightColor:void 0}:r},htmlBuilder:Ar,mathmlBuilder:zr}),b({type:"array",names:["smallmatrix"],props:{numArgs:0},handler:function(t){var e=k(t.parser,{arraystretch:.5},"script");return e.colSeparationType="small",e},htmlBuilder:Ar,mathmlBuilder:zr}),b({type:"array",names:["subarray"],props:{numArgs:1},handler:function(t,e){var r=(m(e[0])?[e[0]]:s(e[0],"ordgroup").body).map(function(t){var e=c(t).text;if(-1!=="lc".indexOf(e))return{type:"align",align:e};throw new N("Unknown column alignment: "+e,t)});if(r.length>1)throw new N("{subarray} can contain only one column");var n={cols:r,hskipBeforeAndAfter:!1,arraystretch:.5};if((n=k(t.parser,n,"script")).body[0].length>1)throw new N("{subarray} can contain only one column");return n},htmlBuilder:Ar,mathmlBuilder:zr}),b({type:"array",names:["cases","dcases"],props:{numArgs:0},handler:function(t){var e=k(t.parser,{arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},S(t.envName));return{type:"leftright",mode:t.mode,body:[e],left:"\\{",right:".",rightColor:void 0}},htmlBuilder:Ar,mathmlBuilder:zr}),b({type:"array",names:["aligned"],props:{numArgs:0},handler:Tr,htmlBuilder:Ar,mathmlBuilder:zr}),b({type:"array",names:["gathered"],props:{numArgs:0},handler:function(t){return k(t.parser,{cols:[{type:"align",align:"c"}],addJot:!0},"display")},htmlBuilder:Ar,mathmlBuilder:zr}),b({type:"array",names:["alignedat"],props:{numArgs:1},handler:Tr,htmlBuilder:Ar,mathmlBuilder:zr}),u({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler:function(t){throw new N(t.funcName+" valid only within array environment")}});var Cr=Sr;u({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler:function(t,e){var r=t.parser,n=t.funcName,i=e[0];if("ordgroup"!==i.type)throw new N("Invalid environment name",i);for(var a="",o=0;o=W.SCRIPT.id?r.text():W.DISPLAY:"text"===t&&r.size===W.DISPLAY.size?r=W.TEXT:"script"===t?r=W.SCRIPT:"scriptscript"===t&&(r=W.SCRIPTSCRIPT),r},Ir=function(t,e){var r,n=qr(t.size,e.style),i=n.fracNum(),a=n.fracDen();r=e.havingStyle(i);var o=ze(t.numer,r,e);if(t.continued){var s=8.5/e.fontMetrics().ptPerEm,l=3.5/e.fontMetrics().ptPerEm;o.height=o.height0?3*m:7*m,p=e.fontMetrics().denom1):(c>0?(u=e.fontMetrics().num2,d=m):(u=e.fontMetrics().num3,d=3*m),p=e.fontMetrics().denom2),h){var b=e.fontMetrics().axisHeight;u-o.depth-(b+.5*c)0&&(e="."===(e=t)?null:e),e};u({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,greediness:6,argTypes:["math","math","size","text","math","math"]},handler:function(t,e){var r=t.parser,n=e[4],i=e[5],a=l(e[0],"atom");a&&(a=h(e[0],"open"));var o=a?Pr(a.text):null,c=l(e[1],"atom");c&&(c=h(e[1],"close"));var m,u=c?Pr(c.text):null,d=s(e[2],"size"),p=null;m=!!d.isBlank||(p=d.value).number>0;var f="auto",g=l(e[3],"ordgroup");if(g){if(g.body.length>0){var v=s(g.body[0],"textord");f=_r[Number(v.text)]}}else g=s(e[3],"textord"),f=_r[Number(g.text)];return{type:"genfrac",mode:r.mode,numer:n,denom:i, continued:!1,hasBarLine:m,barSize:p,leftDelim:o,rightDelim:u,size:f}},htmlBuilder:Ir,mathmlBuilder:Rr}),u({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler:function(t,e){var r=t.parser,n=(t.funcName,t.token);return{type:"infix",mode:r.mode,replaceWith:"\\\\abovefrac",size:s(e[0],"size").value,token:n}}}),u({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:function(t,e){var r=t.parser,n=(t.funcName,e[0]),i=function(t){if(!t)throw new Error("Expected non-null, but got "+String(t));return t}(s(e[1],"infix").size),a=e[2],o=i.number>0;return{type:"genfrac",mode:r.mode,numer:n,denom:a,continued:!1,hasBarLine:o,barSize:i,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:Ir,mathmlBuilder:Rr});var Fr=function(t,e){var r,n,i=e.style,a=l(t,"supsub");a?(r=a.sup?ze(a.sup,e.havingStyle(i.sup()),e):ze(a.sub,e.havingStyle(i.sub()),e),n=s(a.base,"horizBrace")):n=s(t,"horizBrace");var o,h=ze(n.base,e.havingBaseStyle(W.DISPLAY)),c=Ve(n,e);if(n.isOver?(o=oe.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:h},{type:"kern",size:.1},{type:"elem",elem:c}]},e)).children[0].children[0].children[1].classes.push("svg-align"):(o=oe.makeVList({positionType:"bottom",positionData:h.depth+.1+c.height,children:[{type:"elem",elem:c},{type:"kern",size:.1},{type:"elem",elem:h}]},e)).children[0].children[0].children[0].classes.push("svg-align"),r){var m=oe.makeSpan(["mord",n.isOver?"mover":"munder"],[o],e);o=n.isOver?oe.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:m},{type:"kern",size:.2},{type:"elem",elem:r}]},e):oe.makeVList({positionType:"bottom",positionData:m.depth+.2+r.height+r.depth,children:[{type:"elem",elem:r},{type:"kern",size:.2},{type:"elem",elem:m}]},e)}return oe.makeSpan(["mord",n.isOver?"mover":"munder"],[o],e)};u({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler:function(t,e){var r=t.parser,n=t.funcName;return{type:"horizBrace",mode:r.mode,label:n,isOver:/^\\over/.test(n),base:e[0]}},htmlBuilder:Fr,mathmlBuilder:function(t,e){var r=Ue(t.label);return new Be.MathNode(t.isOver?"mover":"munder",[Ie(t.base,e),r])}}),u({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:function(t,e){var r=t.parser,n=e[1],i=s(e[0],"url").url;return r.settings.isTrusted({command:"\\href",url:i})?{type:"href",mode:r.mode,href:i,body:fe(n)}:r.formatUnsupportedCmd("\\href")},htmlBuilder:function(t,e){var r=we(t.body,e,!1);return oe.makeAnchor(t.href,[],r,e)},mathmlBuilder:function(t,e){var r=qe(t.body,e);return r instanceof Te||(r=new Te("mrow",[r])),r.setAttribute("href",t.href),r}}),u({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:function(t,e){var r=t.parser,n=s(e[0],"url").url;if(!r.settings.isTrusted({command:"\\url",url:n}))return r.formatUnsupportedCmd("\\url");for(var i=[],a=0;a0&&(n=Xt(t.totalheight,e)-r,n=Number(n.toFixed(2)));var i=0;t.width.number>0&&(i=Xt(t.width,e));var a={height:r+n+"em"};i>0&&(a.width=i+"em"),n>0&&(a.verticalAlign=-n+"em");var o=new nt(t.src,t.alt,a);return o.height=r,o.depth=n,o},mathmlBuilder:function(t,e){var r=new Be.MathNode("mglyph",[]);r.setAttribute("alt",t.alt);var n=Xt(t.height,e),i=0;if(t.totalheight.number>0&&(i=(i=Xt(t.totalheight,e)-n).toFixed(2),r.setAttribute("valign","-"+i+"em")),r.setAttribute("height",n+i+"em"),t.width.number>0){var a=Xt(t.width,e);r.setAttribute("width",a+"em")}return r.setAttribute("src",t.src),r}}),u({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],allowedInText:!0},handler:function(t,e){var r=t.parser,n=t.funcName,i=s(e[0],"size");if(r.settings.strict){var a="m"===n[1],o="mu"===i.value.unit;a?(o||r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" supports only mu units, not "+i.value.unit+" units"),"math"!==r.mode&&r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" works only in math mode")):o&&r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" doesn't support mu units")}return{type:"kern",mode:r.mode,dimension:i.value}},htmlBuilder:function(t,e){return oe.makeGlue(t.dimension,e)},mathmlBuilder:function(t,e){var r=Xt(t.dimension,e);return new Be.SpaceNode(r)}}),u({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:function(t,e){var r=t.parser,n=t.funcName,i=e[0];return{type:"lap",mode:r.mode,alignment:n.slice(5),body:i}},htmlBuilder:function(t,e){var r;"clap"===t.alignment?(r=oe.makeSpan([],[ze(t.body,e)]),r=oe.makeSpan(["inner"],[r],e)):r=oe.makeSpan(["inner"],[ze(t.body,e)]);var n=oe.makeSpan(["fix"],[]),i=oe.makeSpan([t.alignment],[r,n],e),a=oe.makeSpan(["strut"]);return a.style.height=i.height+i.depth+"em",a.style.verticalAlign=-i.depth+"em",i.children.unshift(a),i=oe.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:i}]},e),oe.makeSpan(["mord"],[i],e)},mathmlBuilder:function(t,e){var r=new Be.MathNode("mpadded",[Ie(t.body,e)]);if("rlap"!==t.alignment){var n="llap"===t.alignment?"-1":"-0.5";r.setAttribute("lspace",n+"width")}return r.setAttribute("width","0px"),r}}),u({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler:function(t){var e=t.funcName,r=t.parser,n=r.mode;r.switchMode("math");var i="\\("===e?"\\)":"$",a=r.parseExpression(!1,i);return r.expect(i),r.switchMode(n),{type:"styling",mode:r.mode,style:"text",body:a}}}),u({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler:function(t){throw new N("Mismatched "+t.funcName)}});var Hr=function(t,e){switch(e.style.size){case W.DISPLAY.size:return t.display;case W.TEXT.size:return t.text;case W.SCRIPT.size:return t.script;case W.SCRIPTSCRIPT.size:return t.scriptscript;default:return t.text}};u({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4},handler:function(t,e){return{type:"mathchoice",mode:t.parser.mode,display:fe(e[0]),text:fe(e[1]),script:fe(e[2]),scriptscript:fe(e[3])}},htmlBuilder:function(t,e){var r=Hr(t,e),n=we(r,e,!1);return oe.makeFragment(n)},mathmlBuilder:function(t,e){var r=Hr(t,e);return qe(r,e)}});var jr=function(t,e,r,n,i,a,o){var s,l,h;if(t=oe.makeSpan([],[t]),e){var c=ze(e,n.havingStyle(i.sup()),n);l={elem:c,kern:Math.max(n.fontMetrics().bigOpSpacing1,n.fontMetrics().bigOpSpacing3-c.depth)}}if(r){var m=ze(r,n.havingStyle(i.sub()),n);s={elem:m,kern:Math.max(n.fontMetrics().bigOpSpacing2,n.fontMetrics().bigOpSpacing4-m.height)}}if(l&&s){var u=n.fontMetrics().bigOpSpacing5+s.elem.height+s.elem.depth+s.kern+t.depth+o;h=oe.makeVList({positionType:"bottom",positionData:u,children:[{type:"kern",size:n.fontMetrics().bigOpSpacing5},{type:"elem",elem:s.elem,marginLeft:-a+"em"},{type:"kern",size:s.kern},{type:"elem",elem:t},{type:"kern",size:l.kern},{type:"elem",elem:l.elem,marginLeft:a+"em"},{type:"kern",size:n.fontMetrics().bigOpSpacing5}]},n)}else if(s){var d=t.height-o;h=oe.makeVList({positionType:"top",positionData:d,children:[{type:"kern",size:n.fontMetrics().bigOpSpacing5},{type:"elem",elem:s.elem,marginLeft:-a+"em"},{type:"kern",size:s.kern},{type:"elem",elem:t}]},n)}else{if(!l)return t;var p=t.depth+o;h=oe.makeVList({positionType:"bottom",positionData:p,children:[{type:"elem",elem:t},{type:"kern",size:l.kern},{type:"elem",elem:l.elem,marginLeft:a+"em"},{type:"kern",size:n.fontMetrics().bigOpSpacing5}]},n)}return oe.makeSpan(["mop","op-limits"],[h],n)},Ur=["\\smallint"],Vr=function(t,e){var r,n,i,a=!1,o=l(t,"supsub");o?(r=o.sup,n=o.sub,i=s(o.base,"op"),a=!0):i=s(t,"op");var h,c=e.style,m=!1;if(c.size===W.DISPLAY.size&&i.symbol&&!R.contains(Ur,i.name)&&(m=!0),i.symbol){var u=m?"Size2-Regular":"Size1-Regular",d="";if("\\oiint"!==i.name&&"\\oiiint"!==i.name||(d=i.name.substr(1),i.name="oiint"===d?"\\iint":"\\iiint"),h=oe.makeSymbol(i.name,u,"math",e,["mop","op-symbol",m?"large-op":"small-op"]),d.length>0){var p=h.italic,f=oe.staticSvg(d+"Size"+(m?"2":"1"),e);h=oe.makeVList({positionType:"individualShift",children:[{type:"elem",elem:h,shift:0},{type:"elem",elem:f,shift:m?.08:0}]},e),i.name="\\"+d,h.classes.unshift("mop"),h.italic=p}}else if(i.body){var g=we(i.body,e,!0);1===g.length&&g[0]instanceof at?(h=g[0]).classes[0]="mop":h=oe.makeSpan(["mop"],oe.tryCombineChars(g),e)}else{for(var v=[],y=1;y0){for(var c=i.body.map(function(t){var e=t.text;return"string"==typeof e?{type:"textord",mode:t.mode,text:e}:t}),m=we(c,e.withFont("mathrm"),!0),u=0;u=0?s.setAttribute("height","+"+i+"em"):(s.setAttribute("height",i+"em"),s.setAttribute("depth","+"+-i+"em")),s.setAttribute("voffset",i+"em"),s}});var $r=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"];u({type:"sizing",names:$r,props:{numArgs:0,allowedInText:!0},handler:function(t){var e=t.breakOnTokenText,r=t.funcName,n=t.parser,i=n.parseExpression(!1,e);return{type:"sizing",mode:n.mode,size:$r.indexOf(r)+1,body:i}},htmlBuilder:function(t,e){var r=e.havingSize(t.size);return z(t.body,r,e)},mathmlBuilder:function(t,e){var r=e.havingSize(t.size),n=Oe(t.body,r),i=new Be.MathNode("mstyle",n);return i.setAttribute("mathsize",r.sizeMultiplier+"em"),i}}),u({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:function(t,e,r){var n=t.parser,i=!1,a=!1,o=r[0]&&s(r[0],"ordgroup");if(o)for(var l="",h=0;hr.height+r.depth+a&&(a=(a+m-r.height-r.depth)/2);var u=l.height-r.height-a-h;r.style.paddingLeft=c+"em";var d=oe.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:r,wrapperClasses:["svg-align"]},{type:"kern",size:-(r.height+u)},{type:"elem",elem:l},{type:"kern",size:h}]},e);if(t.index){var p=e.havingStyle(W.SCRIPTSCRIPT),f=ze(t.index,p,e),g=.6*(d.height-d.depth),v=oe.makeVList({positionType:"shift",positionData:-g,children:[{type:"elem",elem:f}]},e),y=oe.makeSpan(["root"],[v]);return oe.makeSpan(["mord","sqrt"],[y,d],e)}return oe.makeSpan(["mord","sqrt"],[d],e)},mathmlBuilder:function(t,e){var r=t.body,n=t.index;return n?new Be.MathNode("mroot",[Ie(r,e),Ie(n,e)]):new Be.MathNode("msqrt",[Ie(r,e)])}});var Kr={display:W.DISPLAY,text:W.TEXT,script:W.SCRIPT,scriptscript:W.SCRIPTSCRIPT};u({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0},handler:function(t){var e=t.breakOnTokenText,r=t.funcName,n=t.parser,i=n.parseExpression(!0,e),a=r.slice(1,r.length-5);return{type:"styling",mode:n.mode,style:a,body:i}},htmlBuilder:function(t,e){var r=Kr[t.style],n=e.havingStyle(r).withFont("");return z(t.body,n,e)},mathmlBuilder:function(t,e){var r=Kr[t.style],n=e.havingStyle(r),i=Oe(t.body,n),a=new Be.MathNode("mstyle",i),o={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]}[t.style];return a.setAttribute("scriptlevel",o[0]),a.setAttribute("displaystyle",o[1]),a}}),d({type:"supsub",htmlBuilder:function(t,e){var r=function(t,e){var r=t.base;return r?"op"===r.type?r.limits&&(e.style.size===W.DISPLAY.size||r.alwaysHandleSupSub)?Vr:null:"operatorname"===r.type?r.alwaysHandleSupSub&&(e.style.size===W.DISPLAY.size||r.limits)?Xr:null:"accent"===r.type?R.isCharacterBox(r.base)?Ge:null:"horizBrace"===r.type&&!t.sub===r.isOver?Fr:null:null}(t,e);if(r)return r(t,e);var n,i,a,o=t.base,s=t.sup,l=t.sub,h=ze(o,e),c=e.fontMetrics(),m=0,u=0,d=o&&R.isCharacterBox(o);if(s){var p=e.havingStyle(e.style.sup());n=ze(s,p,e),d||(m=h.height-p.fontMetrics().supDrop*p.sizeMultiplier/e.sizeMultiplier)}if(l){var f=e.havingStyle(e.style.sub());i=ze(l,f,e),d||(u=h.depth+f.fontMetrics().subDrop*f.sizeMultiplier/e.sizeMultiplier)}a=e.style===W.DISPLAY?c.sup1:e.style.cramped?c.sup3:c.sup2;var g,v=e.sizeMultiplier,y=.5/c.ptPerEm/v+"em",x=null;if(i){var b=t.base&&"op"===t.base.type&&t.base.name&&("\\oiint"===t.base.name||"\\oiiint"===t.base.name);(h instanceof at||b)&&(x=-h.italic+"em")}if(n&&i){m=Math.max(m,a,n.depth+.25*c.xHeight),u=Math.max(u,c.sub2);var w=4*c.defaultRuleThickness;if(m-n.depth-(i.height-u)0&&(m+=k,u-=k)}var S=[{type:"elem",elem:i,shift:u,marginRight:y,marginLeft:x},{type:"elem",elem:n,shift:-m,marginRight:y}];g=oe.makeVList({positionType:"individualShift",children:S},e)}else if(i){u=Math.max(u,c.sub1,i.height-.8*c.xHeight);var A=[{type:"elem",elem:i,marginLeft:x,marginRight:y}];g=oe.makeVList({positionType:"shift",positionData:u,children:A},e)}else{if(!n)throw new Error("supsub must have either sup or sub.");m=Math.max(m,a,n.depth+.25*c.xHeight),g=oe.makeVList({positionType:"shift",positionData:-m,children:[{type:"elem",elem:n,marginRight:y}]},e)}var M=Ae(h,"right")||"mord";return oe.makeSpan([M],[h,oe.makeSpan(["msupsub"],[g])],e)},mathmlBuilder:function(t,e){var r,n=!1,i=l(t.base,"horizBrace");i&&!!t.sup===i.isOver&&(n=!0,r=i.isOver),!t.base||"op"!==t.base.type&&"operatorname"!==t.base.type||(t.base.parentIsSupSub=!0);var a,o=[Ie(t.base,e)];if(t.sub&&o.push(Ie(t.sub,e)),t.sup&&o.push(Ie(t.sup,e)),n)a=r?"mover":"munder";else if(t.sub)if(t.sup){var s=t.base;a=s&&"op"===s.type&&s.limits&&e.style===W.DISPLAY?"munderover":s&&"operatorname"===s.type&&s.alwaysHandleSupSub&&(e.style===W.DISPLAY||s.limits)?"munderover":"msubsup"}else{var h=t.base;a=h&&"op"===h.type&&h.limits&&(e.style===W.DISPLAY||h.alwaysHandleSupSub)?"munder":h&&"operatorname"===h.type&&h.alwaysHandleSupSub&&(h.limits||e.style===W.DISPLAY)?"munder":"msub"}else{var c=t.base;a=c&&"op"===c.type&&c.limits&&(e.style===W.DISPLAY||c.alwaysHandleSupSub)?"mover":c&&"operatorname"===c.type&&c.alwaysHandleSupSub&&(c.limits||e.style===W.DISPLAY)?"mover":"msup"}return new Be.MathNode(a,o)}}),d({type:"atom",htmlBuilder:function(t,e){return oe.mathsym(t.text,t.mode,e,["m"+t.family])},mathmlBuilder:function(t,e){var r=new Be.MathNode("mo",[Le(t.text,t.mode)]);if("bin"===t.family){var n=Ee(t,e);"bold-italic"===n&&r.setAttribute("mathvariant",n)}else"punct"===t.family?r.setAttribute("separator","true"):"open"!==t.family&&"close"!==t.family||r.setAttribute("stretchy","false");return r}});var Zr={mi:"italic",mn:"normal",mtext:"normal"};d({type:"mathord",htmlBuilder:function(t,e){return oe.makeOrd(t,e,"mathord")},mathmlBuilder:function(t,e){var r=new Be.MathNode("mi",[Le(t.text,t.mode,e)]),n=Ee(t,e)||"italic";return n!==Zr[r.type]&&r.setAttribute("mathvariant",n),r}}),d({type:"textord",htmlBuilder:function(t,e){return oe.makeOrd(t,e,"textord")},mathmlBuilder:function(t,e){var r,n=Le(t.text,t.mode,e),i=Ee(t,e)||"normal";return r="text"===t.mode?new Be.MathNode("mtext",[n]):/[0-9]/.test(t.text)?new Be.MathNode("mn",[n]):"\\prime"===t.text?new Be.MathNode("mo",[n]):new Be.MathNode("mi",[n]),i!==Zr[r.type]&&r.setAttribute("mathvariant",i),r}});var Jr={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},Qr={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};d({type:"spacing",htmlBuilder:function(t,e){if(Qr.hasOwnProperty(t.text)){var r=Qr[t.text].className||"";if("text"===t.mode){var n=oe.makeOrd(t,e,"textord");return n.classes.push(r),n}return oe.makeSpan(["mspace",r],[oe.mathsym(t.text,t.mode,e)],e)}if(Jr.hasOwnProperty(t.text))return oe.makeSpan(["mspace",Jr[t.text]],[],e);throw new N('Unknown type of space "'+t.text+'"')},mathmlBuilder:function(t){if(!Qr.hasOwnProperty(t.text)){if(Jr.hasOwnProperty(t.text))return new Be.MathNode("mspace");throw new N('Unknown type of space "'+t.text+'"')}return new Be.MathNode("mtext",[new Be.TextNode("\xa0")])}});var tn=function(){var t=new Be.MathNode("mtd",[]);return t.setAttribute("width","50%"),t};d({type:"tag",mathmlBuilder:function(t,e){var r=new Be.MathNode("mtable",[new Be.MathNode("mtr",[tn(),new Be.MathNode("mtd",[qe(t.body,e)]),tn(),new Be.MathNode("mtd",[qe(t.tag,e)])])]);return r.setAttribute("width","100%"),r}});var en={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},rn={"\\textbf":"textbf","\\textmd":"textmd"},nn={"\\textit":"textit","\\textup":"textup"},an=function(t,e){var r=t.font;return r?en[r]?e.withTextFontFamily(en[r]):rn[r]?e.withTextFontWeight(rn[r]):e.withTextFontShape(nn[r]):e};u({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup"],props:{numArgs:1,argTypes:["text"],greediness:2,allowedInText:!0},handler:function(t,e){var r=t.parser,n=t.funcName,i=e[0];return{type:"text",mode:r.mode,body:fe(i),font:n}},htmlBuilder:function(t,e){var r=an(t,e),n=we(t.body,r,!0);return oe.makeSpan(["mord","text"],oe.tryCombineChars(n),r)},mathmlBuilder:function(t,e){var r=an(t,e);return qe(t.body,r)}}),u({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler:function(t,e){return{type:"underline",mode:t.parser.mode,body:e[0]}},htmlBuilder:function(t,e){var r=ze(t.body,e),n=oe.makeLineSpan("underline-line",e),i=e.fontMetrics().defaultRuleThickness,a=oe.makeVList({positionType:"top",positionData:r.height,children:[{type:"kern",size:i},{type:"elem",elem:n},{type:"kern",size:3*i},{type:"elem",elem:r}]},e);return oe.makeSpan(["mord","underline"],[a],e)},mathmlBuilder:function(t,e){var r=new Be.MathNode("mo",[new Be.TextNode("\u203e")]);r.setAttribute("stretchy","true");var n=new Be.MathNode("munder",[Ie(t.body,e),r]);return n.setAttribute("accentunder","true"),n}}),u({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler:function(){throw new N("\\verb ended by end of line instead of matching delimiter")},htmlBuilder:function(t,e){for(var r=on(t),n=[],i=e.havingStyle(e.style.text()),a=0;a0&&(this.undefStack[this.undefStack.length-1][t]=e)}else{var i=this.undefStack[this.undefStack.length-1];i&&!i.hasOwnProperty(t)&&(i[t]=this.current[t])}this.current[t]=e},t}(),dn={},pn=dn;T("\\@firstoftwo",function(t){return{tokens:t.consumeArgs(2)[0],numArgs:0}}),T("\\@secondoftwo",function(t){return{tokens:t.consumeArgs(2)[1],numArgs:0}}),T("\\@ifnextchar",function(t){var e=t.consumeArgs(3),r=t.future();return 1===e[0].length&&e[0][0].text===r.text?{tokens:e[1],numArgs:0}:{tokens:e[2],numArgs:0}}),T("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}"),T("\\TextOrMath",function(t){var e=t.consumeArgs(2);return"text"===t.mode?{tokens:e[0],numArgs:0}:{tokens:e[1],numArgs:0}});var fn={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};T("\\char",function(t){var e,r=t.popToken(),n="";if("'"===r.text)e=8,r=t.popToken();else if('"'===r.text)e=16,r=t.popToken();else if("`"===r.text)if("\\"===(r=t.popToken()).text[0])n=r.text.charCodeAt(1);else{if("EOF"===r.text)throw new N("\\char` missing argument");n=r.text.charCodeAt(0)}else e=10;if(e){if(null==(n=fn[r.text])||n>=e)throw new N("Invalid base-"+e+" digit "+r.text);for(var i;null!=(i=fn[t.future().text])&&i":"\\dotsb","-":"\\dotsb","*":"\\dotsb",":":"\\dotsb","\\DOTSB":"\\dotsb","\\coprod":"\\dotsb","\\bigvee":"\\dotsb","\\bigwedge":"\\dotsb","\\biguplus":"\\dotsb","\\bigcap":"\\dotsb","\\bigcup":"\\dotsb","\\prod":"\\dotsb","\\sum":"\\dotsb","\\bigotimes":"\\dotsb","\\bigoplus":"\\dotsb","\\bigodot":"\\dotsb","\\bigsqcup":"\\dotsb","\\And":"\\dotsb","\\longrightarrow":"\\dotsb","\\Longrightarrow":"\\dotsb","\\longleftarrow":"\\dotsb","\\Longleftarrow":"\\dotsb","\\longleftrightarrow":"\\dotsb","\\Longleftrightarrow":"\\dotsb","\\mapsto":"\\dotsb","\\longmapsto":"\\dotsb","\\hookrightarrow":"\\dotsb","\\doteq":"\\dotsb","\\mathbin":"\\dotsb","\\mathrel":"\\dotsb","\\relbar":"\\dotsb","\\Relbar":"\\dotsb","\\xrightarrow":"\\dotsb","\\xleftarrow":"\\dotsb","\\DOTSI":"\\dotsi","\\int":"\\dotsi","\\oint":"\\dotsi","\\iint":"\\dotsi","\\iiint":"\\dotsi","\\iiiint":"\\dotsi","\\idotsint":"\\dotsi","\\DOTSX":"\\dotsx"};T("\\dots",function(t){var e="\\dotso",r=t.expandAfterFuture().text;return r in yn?e=yn[r]:"\\not"===r.substr(0,4)?e="\\dotsb":r in gt.math&&R.contains(["bin","rel"],gt.math[r].group)&&(e="\\dotsb"),e});var xn={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};T("\\dotso",function(t){return t.future().text in xn?"\\ldots\\,":"\\ldots"}),T("\\dotsc",function(t){var e=t.future().text;return e in xn&&","!==e?"\\ldots\\,":"\\ldots"}),T("\\cdots",function(t){return t.future().text in xn?"\\@cdots\\,":"\\@cdots"}),T("\\dotsb","\\cdots"),T("\\dotsm","\\cdots"),T("\\dotsi","\\!\\cdots"),T("\\dotsx","\\ldots\\,"),T("\\DOTSI","\\relax"),T("\\DOTSB","\\relax"),T("\\DOTSX","\\relax"),T("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax"),T("\\,","\\tmspace+{3mu}{.1667em}"),T("\\thinspace","\\,"),T("\\>","\\mskip{4mu}"),T("\\:","\\tmspace+{4mu}{.2222em}"),T("\\medspace","\\:"),T("\\;","\\tmspace+{5mu}{.2777em}"),T("\\thickspace","\\;"),T("\\!","\\tmspace-{3mu}{.1667em}"),T("\\negthinspace","\\!"),T("\\negmedspace","\\tmspace-{4mu}{.2222em}"),T("\\negthickspace","\\tmspace-{5mu}{.277em}"),T("\\enspace","\\kern.5em "),T("\\enskip","\\hskip.5em\\relax"),T("\\quad","\\hskip1em\\relax"),T("\\qquad","\\hskip2em\\relax"),T("\\tag","\\@ifstar\\tag@literal\\tag@paren"),T("\\tag@paren","\\tag@literal{({#1})}"),T("\\tag@literal",function(t){if(t.macros.get("\\df@tag"))throw new N("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"}),T("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}"),T("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)"),T("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}"),T("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1"),T("\\pmb","\\html@mathml{\\@binrel{#1}{\\mathrlap{#1}\\kern0.5px#1}}{\\mathbf{#1}}"),T("\\\\","\\newline"),T("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var bn=ht["Main-Regular"]["T".charCodeAt(0)][1]-.7*ht["Main-Regular"]["A".charCodeAt(0)][1]+"em";T("\\LaTeX","\\textrm{\\html@mathml{L\\kern-.36em\\raisebox{"+bn+"}{\\scriptstyle A}\\kern-.15em\\TeX}{LaTeX}}"),T("\\KaTeX","\\textrm{\\html@mathml{K\\kern-.17em\\raisebox{"+bn+"}{\\scriptstyle A}\\kern-.15em\\TeX}{KaTeX}}"),T("\\hspace","\\@ifstar\\@hspacer\\@hspace"),T("\\@hspace","\\hskip #1\\relax"),T("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax"),T("\\ordinarycolon",":"),T("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}"),T("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}'),T("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}'),T("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}'),T("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}'),T("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}'),T("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}'),T("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}'),T("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}'),T("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}'),T("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}'),T("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}'),T("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}'),T("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}'),T("\u2237","\\dblcolon"),T("\u2239","\\eqcolon"),T("\u2254","\\coloneqq"),T("\u2255","\\eqqcolon"),T("\u2a74","\\Coloneqq"),T("\\ratio","\\vcentcolon"),T("\\coloncolon","\\dblcolon"),T("\\colonequals","\\coloneqq"),T("\\coloncolonequals","\\Coloneqq"),T("\\equalscolon","\\eqqcolon"),T("\\equalscoloncolon","\\Eqqcolon"),T("\\colonminus","\\coloneq"),T("\\coloncolonminus","\\Coloneq"),T("\\minuscolon","\\eqcolon"),T("\\minuscoloncolon","\\Eqcolon"),T("\\coloncolonapprox","\\Colonapprox"),T("\\coloncolonsim","\\Colonsim"),T("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),T("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}"),T("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),T("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}"),T("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`\u220c}}"),T("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}"),T("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}"),T("\\gvertneqq","\\html@mathml{\\@gvertneqq}{\u2269}"),T("\\lvertneqq","\\html@mathml{\\@lvertneqq}{\u2268}"),T("\\ngeqq","\\html@mathml{\\@ngeqq}{\u2271}"),T("\\ngeqslant","\\html@mathml{\\@ngeqslant}{\u2271}"),T("\\nleqq","\\html@mathml{\\@nleqq}{\u2270}"),T("\\nleqslant","\\html@mathml{\\@nleqslant}{\u2270}"),T("\\nshortmid","\\html@mathml{\\@nshortmid}{\u2224}"),T("\\nshortparallel","\\html@mathml{\\@nshortparallel}{\u2226}"),T("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{\u2288}"),T("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{\u2289}"),T("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{\u228a}"),T("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{\u2acb}"),T("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{\u228b}"),T("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{\u2acc}"),T("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`\u27e6}}"),T("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`\u27e7}}"),T("\u27e6","\\llbracket"),T("\u27e7","\\rrbracket"),T("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`\u2983}}"),T("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`\u2984}}"),T("\u2983","\\lBrace"),T("\u2984","\\rBrace"),T("\\darr","\\downarrow"),T("\\dArr","\\Downarrow"),T("\\Darr","\\Downarrow"),T("\\lang","\\langle"),T("\\rang","\\rangle"),T("\\uarr","\\uparrow"),T("\\uArr","\\Uparrow"),T("\\Uarr","\\Uparrow"),T("\\N","\\mathbb{N}"),T("\\R","\\mathbb{R}"),T("\\Z","\\mathbb{Z}"),T("\\alef","\\aleph"),T("\\alefsym","\\aleph"),T("\\Alpha","\\mathrm{A}"),T("\\Beta","\\mathrm{B}"),T("\\bull","\\bullet"),T("\\Chi","\\mathrm{X}"),T("\\clubs","\\clubsuit"),T("\\cnums","\\mathbb{C}"),T("\\Complex","\\mathbb{C}"),T("\\Dagger","\\ddagger"),T("\\diamonds","\\diamondsuit"),T("\\empty","\\emptyset"),T("\\Epsilon","\\mathrm{E}"),T("\\Eta","\\mathrm{H}"),T("\\exist","\\exists"),T("\\harr","\\leftrightarrow"),T("\\hArr","\\Leftrightarrow"),T("\\Harr","\\Leftrightarrow"),T("\\hearts","\\heartsuit"),T("\\image","\\Im"),T("\\infin","\\infty"),T("\\Iota","\\mathrm{I}"),T("\\isin","\\in"),T("\\Kappa","\\mathrm{K}"),T("\\larr","\\leftarrow"),T("\\lArr","\\Leftarrow"),T("\\Larr","\\Leftarrow"),T("\\lrarr","\\leftrightarrow"),T("\\lrArr","\\Leftrightarrow"),T("\\Lrarr","\\Leftrightarrow"),T("\\Mu","\\mathrm{M}"),T("\\natnums","\\mathbb{N}"),T("\\Nu","\\mathrm{N}"),T("\\Omicron","\\mathrm{O}"),T("\\plusmn","\\pm"),T("\\rarr","\\rightarrow"),T("\\rArr","\\Rightarrow"),T("\\Rarr","\\Rightarrow"),T("\\real","\\Re"),T("\\reals","\\mathbb{R}"),T("\\Reals","\\mathbb{R}"),T("\\Rho","\\mathrm{P}"),T("\\sdot","\\cdot"),T("\\sect","\\S"),T("\\spades","\\spadesuit"),T("\\sub","\\subset"),T("\\sube","\\subseteq"),T("\\supe","\\supseteq"),T("\\Tau","\\mathrm{T}"),T("\\thetasym","\\vartheta"),T("\\weierp","\\wp"),T("\\Zeta","\\mathrm{Z}"),T("\\argmin","\\DOTSB\\operatorname*{arg\\,min}"),T("\\argmax","\\DOTSB\\operatorname*{arg\\,max}"),T("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits"),T("\\blue","\\textcolor{##6495ed}{#1}"),T("\\orange","\\textcolor{##ffa500}{#1}"),T("\\pink","\\textcolor{##ff00af}{#1}"),T("\\red","\\textcolor{##df0030}{#1}"),T("\\green","\\textcolor{##28ae7b}{#1}"),T("\\gray","\\textcolor{gray}{#1}"),T("\\purple","\\textcolor{##9d38bd}{#1}"),T("\\blueA","\\textcolor{##ccfaff}{#1}"),T("\\blueB","\\textcolor{##80f6ff}{#1}"),T("\\blueC","\\textcolor{##63d9ea}{#1}"),T("\\blueD","\\textcolor{##11accd}{#1}"),T("\\blueE","\\textcolor{##0c7f99}{#1}"),T("\\tealA","\\textcolor{##94fff5}{#1}"),T("\\tealB","\\textcolor{##26edd5}{#1}"),T("\\tealC","\\textcolor{##01d1c1}{#1}"),T("\\tealD","\\textcolor{##01a995}{#1}"),T("\\tealE","\\textcolor{##208170}{#1}"),T("\\greenA","\\textcolor{##b6ffb0}{#1}"),T("\\greenB","\\textcolor{##8af281}{#1}"),T("\\greenC","\\textcolor{##74cf70}{#1}"),T("\\greenD","\\textcolor{##1fab54}{#1}"),T("\\greenE","\\textcolor{##0d923f}{#1}"),T("\\goldA","\\textcolor{##ffd0a9}{#1}"),T("\\goldB","\\textcolor{##ffbb71}{#1}"),T("\\goldC","\\textcolor{##ff9c39}{#1}"),T("\\goldD","\\textcolor{##e07d10}{#1}"),T("\\goldE","\\textcolor{##a75a05}{#1}"),T("\\redA","\\textcolor{##fca9a9}{#1}"),T("\\redB","\\textcolor{##ff8482}{#1}"),T("\\redC","\\textcolor{##f9685d}{#1}"),T("\\redD","\\textcolor{##e84d39}{#1}"),T("\\redE","\\textcolor{##bc2612}{#1}"),T("\\maroonA","\\textcolor{##ffbde0}{#1}"),T("\\maroonB","\\textcolor{##ff92c6}{#1}"),T("\\maroonC","\\textcolor{##ed5fa6}{#1}"),T("\\maroonD","\\textcolor{##ca337c}{#1}"),T("\\maroonE","\\textcolor{##9e034e}{#1}"),T("\\purpleA","\\textcolor{##ddd7ff}{#1}"),T("\\purpleB","\\textcolor{##c6b9fc}{#1}"),T("\\purpleC","\\textcolor{##aa87ff}{#1}"),T("\\purpleD","\\textcolor{##7854ab}{#1}"),T("\\purpleE","\\textcolor{##543b78}{#1}"),T("\\mintA","\\textcolor{##f5f9e8}{#1}"),T("\\mintB","\\textcolor{##edf2df}{#1}"),T("\\mintC","\\textcolor{##e0e5cc}{#1}"),T("\\grayA","\\textcolor{##f6f7f7}{#1}"),T("\\grayB","\\textcolor{##f0f1f2}{#1}"),T("\\grayC","\\textcolor{##e3e5e6}{#1}"),T("\\grayD","\\textcolor{##d6d8da}{#1}"),T("\\grayE","\\textcolor{##babec2}{#1}"),T("\\grayF","\\textcolor{##888d93}{#1}"),T("\\grayG","\\textcolor{##626569}{#1}"),T("\\grayH","\\textcolor{##3b3e40}{#1}"),T("\\grayI","\\textcolor{##21242c}{#1}"),T("\\kaBlue","\\textcolor{##314453}{#1}"),T("\\kaGreen","\\textcolor{##71B307}{#1}");var wn={"\\relax":!0,"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0},kn=function(){function t(t,e,r){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=e,this.expansionCount=0,this.feed(t),this.macros=new un(pn,e.macros),this.mode=r,this.stack=[]}var e=t.prototype;return e.feed=function(t){this.lexer=new mn(t,this.settings)},e.switchMode=function(t){this.mode=t},e.beginGroup=function(){this.macros.beginGroup()},e.endGroup=function(){this.macros.endGroup()},e.future=function(){return 0===this.stack.length&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]},e.popToken=function(){return this.future(),this.stack.pop()},e.pushToken=function(t){this.stack.push(t)},e.pushTokens=function(t){var e;(e=this.stack).push.apply(e,t)},e.consumeSpaces=function(){for(;" "===this.future().text;)this.stack.pop()},e.consumeArgs=function(t){for(var e=[],r=0;rthis.settings.maxExpand)throw new N("Too many expansions: infinite loop or need to increase maxExpand setting");var n=r.tokens;if(r.numArgs)for(var i=this.consumeArgs(r.numArgs),a=(n=n.slice()).length-1;a>=0;--a){var o=n[a];if("#"===o.text){if(0===a)throw new N("Incomplete placeholder at end of macro body",o);if("#"===(o=n[--a]).text)n.splice(a+1,1);else{if(!/^[1-9]$/.test(o.text))throw new N("Not a valid argument number",o);var s;(s=n).splice.apply(s,[a,2].concat(i[+o.text-1]))}}}return this.pushTokens(n),n},e.expandAfterFuture=function(){return this.expandOnce(),this.future()},e.expandNextToken=function(){for(;;){var t=this.expandOnce();if(t instanceof B){if("\\relax"!==t.text)return this.stack.pop();this.stack.pop()}}throw new Error},e.expandMacro=function(t){if(this.macros.get(t)){var e=[],r=this.stack.length;for(this.pushToken(new B(t));this.stack.length>r;)this.expandOnce()instanceof B&&e.push(this.stack.pop());return e}},e.expandMacroAsText=function(t){var e=this.expandMacro(t);return e?e.map(function(t){return t.text}).join(""):e},e._getExpansion=function(t){var e=this.macros.get(t);if(null==e)return e;var r="function"==typeof e?e(this):e;if("string"==typeof r){var n=0;if(-1!==r.indexOf("#"))for(var i=r.replace(/##/g,"");-1!==i.indexOf("#"+(n+1));)++n;for(var a=new mn(r,this.settings),o=[],s=a.lex();"EOF"!==s.text;)o.push(s),s=a.lex();return o.reverse(),{tokens:o,numArgs:n}}return r},e.isDefined=function(t){return this.macros.has(t)||sn.hasOwnProperty(t)||gt.math.hasOwnProperty(t)||gt.text.hasOwnProperty(t)||wn.hasOwnProperty(t)},t}(),Sn={"\u0301":{text:"\\'",math:"\\acute"},"\u0300":{text:"\\`",math:"\\grave"},"\u0308":{text:'\\"',math:"\\ddot"},"\u0303":{text:"\\~",math:"\\tilde"},"\u0304":{text:"\\=",math:"\\bar"},"\u0306":{text:"\\u",math:"\\breve"},"\u030c":{text:"\\v",math:"\\check"},"\u0302":{text:"\\^",math:"\\hat"},"\u0307":{text:"\\.",math:"\\dot"},"\u030a":{text:"\\r",math:"\\mathring"},"\u030b":{text:"\\H"}},An={"\xe1":"a\u0301","\xe0":"a\u0300","\xe4":"a\u0308","\u01df":"a\u0308\u0304","\xe3":"a\u0303","\u0101":"a\u0304","\u0103":"a\u0306","\u1eaf":"a\u0306\u0301","\u1eb1":"a\u0306\u0300","\u1eb5":"a\u0306\u0303","\u01ce":"a\u030c","\xe2":"a\u0302","\u1ea5":"a\u0302\u0301","\u1ea7":"a\u0302\u0300","\u1eab":"a\u0302\u0303","\u0227":"a\u0307","\u01e1":"a\u0307\u0304","\xe5":"a\u030a","\u01fb":"a\u030a\u0301","\u1e03":"b\u0307","\u0107":"c\u0301","\u010d":"c\u030c","\u0109":"c\u0302","\u010b":"c\u0307","\u010f":"d\u030c","\u1e0b":"d\u0307","\xe9":"e\u0301","\xe8":"e\u0300","\xeb":"e\u0308","\u1ebd":"e\u0303","\u0113":"e\u0304","\u1e17":"e\u0304\u0301","\u1e15":"e\u0304\u0300","\u0115":"e\u0306","\u011b":"e\u030c","\xea":"e\u0302","\u1ebf":"e\u0302\u0301","\u1ec1":"e\u0302\u0300","\u1ec5":"e\u0302\u0303","\u0117":"e\u0307","\u1e1f":"f\u0307","\u01f5":"g\u0301","\u1e21":"g\u0304","\u011f":"g\u0306","\u01e7":"g\u030c","\u011d":"g\u0302","\u0121":"g\u0307","\u1e27":"h\u0308","\u021f":"h\u030c","\u0125":"h\u0302","\u1e23":"h\u0307","\xed":"i\u0301","\xec":"i\u0300","\xef":"i\u0308","\u1e2f":"i\u0308\u0301","\u0129":"i\u0303","\u012b":"i\u0304","\u012d":"i\u0306","\u01d0":"i\u030c","\xee":"i\u0302","\u01f0":"j\u030c","\u0135":"j\u0302","\u1e31":"k\u0301","\u01e9":"k\u030c","\u013a":"l\u0301","\u013e":"l\u030c","\u1e3f":"m\u0301","\u1e41":"m\u0307","\u0144":"n\u0301","\u01f9":"n\u0300","\xf1":"n\u0303","\u0148":"n\u030c","\u1e45":"n\u0307","\xf3":"o\u0301","\xf2":"o\u0300","\xf6":"o\u0308","\u022b":"o\u0308\u0304","\xf5":"o\u0303","\u1e4d":"o\u0303\u0301","\u1e4f":"o\u0303\u0308","\u022d":"o\u0303\u0304","\u014d":"o\u0304","\u1e53":"o\u0304\u0301","\u1e51":"o\u0304\u0300","\u014f":"o\u0306","\u01d2":"o\u030c","\xf4":"o\u0302","\u1ed1":"o\u0302\u0301","\u1ed3":"o\u0302\u0300","\u1ed7":"o\u0302\u0303","\u022f":"o\u0307","\u0231":"o\u0307\u0304","\u0151":"o\u030b","\u1e55":"p\u0301","\u1e57":"p\u0307","\u0155":"r\u0301","\u0159":"r\u030c","\u1e59":"r\u0307","\u015b":"s\u0301","\u1e65":"s\u0301\u0307","\u0161":"s\u030c","\u1e67":"s\u030c\u0307","\u015d":"s\u0302","\u1e61":"s\u0307","\u1e97":"t\u0308","\u0165":"t\u030c","\u1e6b":"t\u0307","\xfa":"u\u0301","\xf9":"u\u0300","\xfc":"u\u0308","\u01d8":"u\u0308\u0301","\u01dc":"u\u0308\u0300","\u01d6":"u\u0308\u0304","\u01da":"u\u0308\u030c","\u0169":"u\u0303","\u1e79":"u\u0303\u0301","\u016b":"u\u0304","\u1e7b":"u\u0304\u0308","\u016d":"u\u0306","\u01d4":"u\u030c","\xfb":"u\u0302","\u016f":"u\u030a","\u0171":"u\u030b","\u1e7d":"v\u0303","\u1e83":"w\u0301","\u1e81":"w\u0300","\u1e85":"w\u0308","\u0175":"w\u0302","\u1e87":"w\u0307","\u1e98":"w\u030a","\u1e8d":"x\u0308","\u1e8b":"x\u0307","\xfd":"y\u0301","\u1ef3":"y\u0300","\xff":"y\u0308","\u1ef9":"y\u0303","\u0233":"y\u0304","\u0177":"y\u0302","\u1e8f":"y\u0307","\u1e99":"y\u030a","\u017a":"z\u0301","\u017e":"z\u030c","\u1e91":"z\u0302","\u017c":"z\u0307","\xc1":"A\u0301","\xc0":"A\u0300","\xc4":"A\u0308","\u01de":"A\u0308\u0304","\xc3":"A\u0303","\u0100":"A\u0304","\u0102":"A\u0306","\u1eae":"A\u0306\u0301","\u1eb0":"A\u0306\u0300","\u1eb4":"A\u0306\u0303","\u01cd":"A\u030c","\xc2":"A\u0302","\u1ea4":"A\u0302\u0301","\u1ea6":"A\u0302\u0300","\u1eaa":"A\u0302\u0303","\u0226":"A\u0307","\u01e0":"A\u0307\u0304","\xc5":"A\u030a","\u01fa":"A\u030a\u0301","\u1e02":"B\u0307","\u0106":"C\u0301","\u010c":"C\u030c","\u0108":"C\u0302","\u010a":"C\u0307","\u010e":"D\u030c","\u1e0a":"D\u0307","\xc9":"E\u0301","\xc8":"E\u0300","\xcb":"E\u0308","\u1ebc":"E\u0303","\u0112":"E\u0304","\u1e16":"E\u0304\u0301","\u1e14":"E\u0304\u0300","\u0114":"E\u0306","\u011a":"E\u030c","\xca":"E\u0302","\u1ebe":"E\u0302\u0301","\u1ec0":"E\u0302\u0300","\u1ec4":"E\u0302\u0303","\u0116":"E\u0307","\u1e1e":"F\u0307","\u01f4":"G\u0301","\u1e20":"G\u0304","\u011e":"G\u0306","\u01e6":"G\u030c","\u011c":"G\u0302","\u0120":"G\u0307","\u1e26":"H\u0308","\u021e":"H\u030c","\u0124":"H\u0302","\u1e22":"H\u0307","\xcd":"I\u0301","\xcc":"I\u0300","\xcf":"I\u0308","\u1e2e":"I\u0308\u0301","\u0128":"I\u0303","\u012a":"I\u0304","\u012c":"I\u0306","\u01cf":"I\u030c","\xce":"I\u0302","\u0130":"I\u0307","\u0134":"J\u0302","\u1e30":"K\u0301","\u01e8":"K\u030c","\u0139":"L\u0301","\u013d":"L\u030c","\u1e3e":"M\u0301","\u1e40":"M\u0307","\u0143":"N\u0301","\u01f8":"N\u0300","\xd1":"N\u0303","\u0147":"N\u030c","\u1e44":"N\u0307","\xd3":"O\u0301","\xd2":"O\u0300","\xd6":"O\u0308","\u022a":"O\u0308\u0304","\xd5":"O\u0303","\u1e4c":"O\u0303\u0301","\u1e4e":"O\u0303\u0308","\u022c":"O\u0303\u0304","\u014c":"O\u0304","\u1e52":"O\u0304\u0301","\u1e50":"O\u0304\u0300","\u014e":"O\u0306","\u01d1":"O\u030c","\xd4":"O\u0302","\u1ed0":"O\u0302\u0301","\u1ed2":"O\u0302\u0300","\u1ed6":"O\u0302\u0303","\u022e":"O\u0307","\u0230":"O\u0307\u0304","\u0150":"O\u030b","\u1e54":"P\u0301","\u1e56":"P\u0307","\u0154":"R\u0301","\u0158":"R\u030c","\u1e58":"R\u0307","\u015a":"S\u0301","\u1e64":"S\u0301\u0307","\u0160":"S\u030c","\u1e66":"S\u030c\u0307","\u015c":"S\u0302","\u1e60":"S\u0307","\u0164":"T\u030c","\u1e6a":"T\u0307","\xda":"U\u0301","\xd9":"U\u0300","\xdc":"U\u0308","\u01d7":"U\u0308\u0301","\u01db":"U\u0308\u0300","\u01d5":"U\u0308\u0304","\u01d9":"U\u0308\u030c","\u0168":"U\u0303","\u1e78":"U\u0303\u0301","\u016a":"U\u0304","\u1e7a":"U\u0304\u0308","\u016c":"U\u0306","\u01d3":"U\u030c","\xdb":"U\u0302","\u016e":"U\u030a","\u0170":"U\u030b","\u1e7c":"V\u0303","\u1e82":"W\u0301","\u1e80":"W\u0300","\u1e84":"W\u0308","\u0174":"W\u0302","\u1e86":"W\u0307","\u1e8c":"X\u0308","\u1e8a":"X\u0307","\xdd":"Y\u0301","\u1ef2":"Y\u0300","\u0178":"Y\u0308","\u1ef8":"Y\u0303","\u0232":"Y\u0304","\u0176":"Y\u0302","\u1e8e":"Y\u0307","\u0179":"Z\u0301","\u017d":"Z\u030c","\u1e90":"Z\u0302","\u017b":"Z\u0307","\u03ac":"\u03b1\u0301","\u1f70":"\u03b1\u0300","\u1fb1":"\u03b1\u0304","\u1fb0":"\u03b1\u0306","\u03ad":"\u03b5\u0301","\u1f72":"\u03b5\u0300","\u03ae":"\u03b7\u0301","\u1f74":"\u03b7\u0300","\u03af":"\u03b9\u0301","\u1f76":"\u03b9\u0300","\u03ca":"\u03b9\u0308","\u0390":"\u03b9\u0308\u0301","\u1fd2":"\u03b9\u0308\u0300","\u1fd1":"\u03b9\u0304","\u1fd0":"\u03b9\u0306","\u03cc":"\u03bf\u0301","\u1f78":"\u03bf\u0300","\u03cd":"\u03c5\u0301","\u1f7a":"\u03c5\u0300","\u03cb":"\u03c5\u0308","\u03b0":"\u03c5\u0308\u0301","\u1fe2":"\u03c5\u0308\u0300","\u1fe1":"\u03c5\u0304","\u1fe0":"\u03c5\u0306","\u03ce":"\u03c9\u0301","\u1f7c":"\u03c9\u0300","\u038e":"\u03a5\u0301","\u1fea":"\u03a5\u0300","\u03ab":"\u03a5\u0308","\u1fe9":"\u03a5\u0304","\u1fe8":"\u03a5\u0306","\u038f":"\u03a9\u0301","\u1ffa":"\u03a9\u0300"},Mn=function(){function t(t,e){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode="math",this.gullet=new kn(t,e,this.mode),this.settings=e,this.leftrightDepth=0}var e=t.prototype;return e.expect=function(t,e){if(void 0===e&&(e=!0),this.fetch().text!==t)throw new N("Expected '"+t+"', got '"+this.fetch().text+"'",this.fetch());e&&this.consume()},e.consume=function(){this.nextToken=null},e.fetch=function(){return null==this.nextToken&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken},e.switchMode=function(t){this.mode=t,this.gullet.switchMode(t)},e.parse=function(){this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");var t=this.parseExpression(!1);return this.expect("EOF"),this.gullet.endGroup(),t},e.parseExpression=function(e,r){for(var n=[];;){"math"===this.mode&&this.consumeSpaces();var i=this.fetch();if(-1!==t.endOfExpression.indexOf(i.text))break;if(r&&i.text===r)break;if(e&&sn[i.text]&&sn[i.text].infix)break;var a=this.parseAtom(r);if(!a)break;n.push(a)}return"text"===this.mode&&this.formLigatures(n),this.handleInfixNodes(n)},e.handleInfixNodes=function(t){for(var e,r=-1,n=0;n0&&!l||0===o&&!l&&"math"===this.mode,c=this.parseGroupOfType("argument to '"+t+"'",s,l,n,h);if(!c){if(l){a.push(null);continue}throw new N("Expected group after '"+t+"'",this.fetch())}(l?a:i).push(c)}return{args:i,optArgs:a}},e.parseGroupOfType=function(t,e,r,n,i){switch(e){case"color":return i&&this.consumeSpaces(),this.parseColorGroup(r);case"size":return i&&this.consumeSpaces(),this.parseSizeGroup(r);case"url":return this.parseUrlGroup(r,i);case"math":case"text":return this.parseGroup(t,r,n,void 0,e,i);case"hbox":var a=this.parseGroup(t,r,n,void 0,"text",i);return a?{type:"styling",mode:a.mode,body:[a],style:"text"}:a;case"raw":if(i&&this.consumeSpaces(),r&&"{"===this.fetch().text)return null;var o=this.parseStringGroup("raw",r,!0);if(o)return{type:"raw",mode:"text",string:o.text};throw new N("Expected raw group",this.fetch());case"original":case null:case void 0:return this.parseGroup(t,r,n,void 0,void 0,i);default:throw new N("Unknown group type as "+t,this.fetch())}},e.consumeSpaces=function(){for(;" "===this.fetch().text;)this.consume()},e.parseStringGroup=function(t,e,r){var n=e?"[":"{",i=e?"]":"}",a=this.fetch();if(a.text!==n){if(e)return null;if(r&&"EOF"!==a.text&&/[^{}[\]]/.test(a.text))return this.consume(),a}var o=this.mode;this.mode="text",this.expect(n);for(var s,l="",h=this.fetch(),c=0,m=h;(s=this.fetch()).text!==i||r&&c>0;){switch(s.text){case"EOF":throw new N("Unexpected end of input in "+t,h.range(m,l));case n:c++;break;case i:c--}l+=(m=s).text,this.consume()}return this.expect(i),this.mode=o,h.range(m,l)},e.parseRegexGroup=function(t,e){var r=this.mode;this.mode="text";for(var n,i=this.fetch(),a=i,o="";"EOF"!==(n=this.fetch()).text&&t.test(o+n.text);)o+=(a=n).text,this.consume();if(""===o)throw new N("Invalid "+e+": '"+i.text+"'",i);return this.mode=r,i.range(a,o)},e.parseColorGroup=function(t){var e=this.parseStringGroup("color",t);if(!e)return null;var r=/^(#[a-f0-9]{3}|#?[a-f0-9]{6}|[a-z]+)$/i.exec(e.text);if(!r)throw new N("Invalid color: '"+e.text+"'",e);var n=r[0];return/^[0-9a-f]{6}$/i.test(n)&&(n="#"+n),{type:"color-token",mode:this.mode,color:n}},e.parseSizeGroup=function(t){var e,r=!1;if(!(e=t||"{"===this.fetch().text?this.parseStringGroup("size",t):this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,"size")))return null;t||0!==e.text.length||(e.text="0pt",r=!0);var n=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(e.text);if(!n)throw new N("Invalid size: '"+e.text+"'",e);var i={number:+(n[1]+n[2]),unit:n[3]};if(!Yt(i))throw new N("Invalid unit: '"+i.unit+"'",e);return{type:"size",mode:this.mode,value:i,isBlank:r}},e.parseUrlGroup=function(t){this.gullet.lexer.setCatcode("%",13);var e=this.parseStringGroup("url",t,!0);if(this.gullet.lexer.setCatcode("%",14),!e)return null;var r=e.text.replace(/\\([#$%&~_^{}])/g,"$1");return{type:"url",mode:this.mode,url:r}},e.parseGroup=function(e,r,n,i,a,o){var s=this.mode;a&&this.switchMode(a),o&&this.consumeSpaces();var l,h=this.fetch(),c=h.text;if(r?"["===c:"{"===c||"\\begingroup"===c){this.consume();var m=t.endOfGroup[c];this.gullet.beginGroup();var u=this.parseExpression(!1,m),d=this.fetch();this.expect(m),this.gullet.endGroup(),l={type:"ordgroup",mode:this.mode, loc:C.range(h,d),body:u,semisimple:"\\begingroup"===c||void 0}}else if(r)l=null;else if(null==(l=this.parseFunction(i,e,n)||this.parseSymbol())&&"\\"===c[0]&&!wn.hasOwnProperty(c)){if(this.settings.throwOnError)throw new N("Undefined control sequence: "+c,h);l=this.formatUnsupportedCmd(c),this.consume()}return a&&this.switchMode(s),l},e.formLigatures=function(t){for(var e=t.length-1,r=0;r=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+e[0]+'" used in math mode',t);var s,l=gt[this.mode][e].group,h=C.range(t);if(dt.hasOwnProperty(l)){var c=l;s={type:"atom",mode:this.mode,family:c,loc:h,text:e}}else s={type:l,mode:this.mode,loc:h,text:e};a=s}else{if(!(e.charCodeAt(0)>=128))return null;this.settings.strict&&(n(e.charCodeAt(0))?"math"===this.mode&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+e[0]+'" used in math mode',t):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+e[0]+'" ('+e.charCodeAt(0)+")",t)),a={type:"textord",mode:"text",loc:C.range(t),text:e}}if(this.consume(),o)for(var m=0;m0&&t(r,l))}catch(t){a.call(new s(l),t)}}}function a(e){var n=this;n.triggered||(n.triggered=!0,n.def&&(n=n.def),n.msg=e,n.state=2,n.chain.length>0&&t(r,n))}function o(t,e,r,n){for(var i=0;in.c||536==n.c&&11>n.g))}function w(t,e,r){return(t=t.match(e))&&t[r]?t[r]:""}function k(t){this.la=t||"-"}function S(t,e){this.M=t,this.Y=4,this.N="n";var r=(e||"n4").match(/^([nio])([1-9])$/i);r&&(this.N=r[1],this.Y=parseInt(r[2],10))}function A(t){return t.N+t.Y}function M(t){var e=4,r="n",n=null;return t&&((n=t.match(/(normal|oblique|italic)/i))&&n[1]&&(r=n[1].substr(0,1).toLowerCase()),(n=t.match(/([1-9]00|normal|bold)/i))&&n[1]&&(/bold/i.test(n[1])?e=7:/[1-9]00/.test(n[1])&&(e=parseInt(n[1].substr(0,1),10)))),r+e}function z(t,e){this.d=t,this.p=t.t.document.documentElement,this.P=e,this.j="wf",this.h=new k("-"),this.ga=!1!==e.events,this.B=!1!==e.classes}function T(t){if(t.B){var e=h(t.p,t.h.e(t.j,"active")),r=[],n=[t.h.e(t.j,"loading")];e||r.push(t.h.e(t.j,"inactive")),l(t.p,r,n)}C(t,"inactive")}function C(t,e,r){t.ga&&t.P[e]&&(r?t.P[e](r.getName(),A(r)):t.P[e]())}function B(){this.w={}}function L(t,e){this.d=t,this.G=e,this.m=this.d.createElement("span",{"aria-hidden":"true"},this.G)}function N(t){o(t.d,"body",t.m)}function E(t){var e;e=[];for(var r=t.M.split(/,\s*/),n=0;n=t.W?t.k.fa&&q(t,e,r)&&(null===t.ba||t.ba.hasOwnProperty(t.s.getName()))?_(t,t.Z):_(t,t.ja):R(t):_(t,t.Z)}function R(t){setTimeout(i(function(){I(this)},t),25)}function _(t,e){t.D.remove(),t.F.remove(),e(t.s)}function P(t,e,r,n){this.d=e,this.u=r,this.R=0,this.da=this.aa=!1,this.W=n,this.k=t.k}function F(t,e,r,n,a){if(r=r||{},0===e.length&&a)T(t.u);else for(t.R+=e.length,a&&(t.aa=a),a=0;at.c||this.c===t.c&&this.g>t.g||this.c===t.c&&this.g===t.g&&this.A>t.A?1:this.c0})},unload:function(t){t.forEach(function(t){var e=SL.fonts.FAMILIES[t];e&&(e.loaded=!1,[].slice.call(document.querySelectorAll('link[href="'+SL.fonts.FONTS_URL+e.path+'"]')).forEach(function(t){t.parentNode.removeChild(t)}))})},finishLoading:function(){clearTimeout(this.initTimeout),document.documentElement.classList.add("fonts-are-ready"),this._isReady===!1&&(this._isReady=!0,this.ready.dispatch()),this.loaded.dispatch()},getPackageIDs:function(){return Object.keys(SL.fonts.PACKAGES)},getFamilyByName:function(t){for(var e in SL.fonts.FAMILIES){var r=SL.fonts.FAMILIES[e];if(t===r.name)return r}},isPackageLoaded:function(t){var e=SL.fonts.PACKAGES[t];return!e||(0===e.length||e.every(function(t){var e=SL.fonts.FAMILIES[t];return e.active||e.inactive; }))},isReady:function(){return this._isReady},onFontActive:function(t){var e=SL.fonts.getFamilyByName(t);e&&(e.active=!0),this.fontactive.dispatch(e)},onFontInactive:function(t){var e=SL.fonts.getFamilyByName(t);e&&(e.inactive=!0),this.fontinactive.dispatch(e)},onInitialFontsActive:function(){this.finishLoading()},onInitialFontsInactive:function(){this.finishLoading()}},SL("views.decks").Export=Class.extend({init:function(){SL.deck.util.injectNotes(),SL.deck.util.renderMath(),SL.deck.util.injectCodeCopyButtons(),window.Reveal&&Reveal.isReady()&&(Reveal.sync(),Reveal.layout())}}),SL("deck").Animation={init:function(){this.animationListeners=[],this.animationsEnabled=!0,this.run=this.run.bind(this),this.reset=this.reset.bind(this),this.toggle=this.toggle.bind(this),this.onSlideChanged=this.onSlideChanged.bind(this),Reveal.addEventListener("slidechanged",this.onSlideChanged),this.revealElement=document.querySelector(".reveal"),this.interactiveAnimationChanged=new signals.Signal},sync:function(){this.animationsEnabled?this.enableAnimations():this.disableAnimations()},enableAnimations:function(){this.animationsEnabled=!0,this.revealElement.classList.remove("block-animations-disabled"),this.reset(this.revealElement);var t=Reveal.getCurrentSlide();this.fastForwardAnimation(t,function(){this.run(t),this.bind(t)}.bind(this))},disableAnimations:function(){this.animationsEnabled=!1,this.revealElement.classList.add("block-animations-disabled"),this.unbind(),this.fastForwardAnimation(this.revealElement)},getAnimationTargets:function(t){return t instanceof Array?t:t.hasAttribute("data-animation-type")?[t]:[].slice.call(t.querySelectorAll("[data-animation-type]"))},getInteractiveAnimationTargets:function(t,e){var r=e?".animate":"";return[].slice.call(t.querySelectorAll(['[data-animation-trigger="click"]','[data-animation-trigger="hover"]'].join(r+",")+r))},run:function(t,e){this.getAnimationTargets(t).forEach(function(t){!e&&this.hasInteractiveAnimationTrigger(t)||t.classList.add("animate")}.bind(this))},toggle:function(t,e){this.getAnimationTargets(t).forEach(function(t){!e&&this.hasInteractiveAnimationTrigger(t)||t.classList.toggle("animate")}.bind(this))},reset:function(t){this.getAnimationTargets(t).forEach(function(t){t.classList.remove("animate")}.bind(this))},preview:function(t){this.animationsEnabled===!1&&this.revealElement.classList.remove("block-animations-disabled"),this.getAnimationTargets(t).forEach(function(t){t.classList.remove("animate"),this.fastForwardAnimation(t,function(){t.classList.add("animate"),this.animationsEnabled===!1&&this.revealElement.classList.add("block-animations-disabled")}.bind(this))}.bind(this))},bind:function(t){this.unbind(),this.getAnimationTargets(t).forEach(function(e){if(this.hasInteractiveAnimationTrigger(e)){var r=e.getAttribute("data-animation-trigger-id"),n="self"===r?e:t.querySelector('.sl-block[data-block-id="'+r+'"] .sl-block-content');if(n){var i=e.getAttribute("data-animation-trigger");"click"===i?(this.addAnimationEventListener(n,"touchstart",this.onTriggerTouchStart.bind(this,e)),this.addAnimationEventListener(n,"click",this.onTriggerClick.bind(this,e))):"hover"===i&&(this.addAnimationEventListener(n,"mouseover",this.onTriggerMouseOver.bind(this,e)),this.addAnimationEventListener(n,"mouseout",this.onTriggerMouseOut.bind(this,e)))}}}.bind(this))},addAnimationEventListener:function(t,e,r){t.addEventListener(e,r),/click|touchstart/gi.test(e)&&t.classList.add("animation-trigger"),this.animationListeners.push([t,e,r])},unbind:function(){this.animationListeners.forEach(function(t){var e=t[0],r=t[1],n=t[2];/click|touchstart/gi.test(r)&&e.classList.remove("animation-trigger"),e.removeEventListener(r,n)}),this.animationListeners.length=0},hasInteractiveAnimationTrigger:function(t){return/click|hover/gi.test(t.getAttribute("data-animation-trigger"))},fastForwardAnimation:function(t,e){t.classList.add("no-transition"),setTimeout(function(){t.classList.remove("no-transition"),"function"==typeof e&&e()},1)},getSerializedInteractiveState:function(){return this.getInteractiveAnimationTargets(Reveal.getCurrentSlide(),!0).map(function(t){var e=this.getParentBlock(t);return e?e.getAttribute("data-block-id"):null},this).filter(function(t){return"string"==typeof t}).join(",")},setSerializedInteractiveState:function(t){var e=this.getInteractiveAnimationTargets(Reveal.getCurrentSlide());if(e.length&&"string"==typeof t){t=t.split(",");var r=[],n=[];e.forEach(function(e){var i=this.getParentBlock(e),a=i?i.getAttribute("data-block-id"):null;"string"==typeof a&&t.indexOf(a)!==-1?n.push(e):r.push(e)},this),this.reset(r),this.run(n,!0)}},getParentBlock:function(t){for(var e=t.parentNode;e&&!e.hasAttribute("data-block-id");)e=e.parentNode;return e},onSlideChanged:function(t){this.animationsEnabled&&(t.previousSlide&&(this.reset(t.previousSlide),this.unbind()),t.currentSlide&&(this.run(t.currentSlide),this.bind(t.currentSlide)))},onTriggerTouchStart:function(t,e){e.preventDefault(),this.toggle(t,!0),this.interactiveAnimationChanged.dispatch()},onTriggerClick:function(t){Reveal.isAutoSliding()&&Reveal.getConfig().autoSlideStoppable&&Reveal.toggleAutoSlide(!1),this.toggle(t,!0),this.interactiveAnimationChanged.dispatch()},onTriggerMouseOver:function(t){this.run(t,!0),this.interactiveAnimationChanged.dispatch()},onTriggerMouseOut:function(t){this.reset(t),this.interactiveAnimationChanged.dispatch()}},SL("deck").AutoAnimate={ANIMATABLE_BLOCK_CONTENT_STYLES:["color","background-color","padding","font-size","line-height","letter-spacing","border-width","border-color","border-radius"],init:function(){this.onAutoAnimate=this.onAutoAnimate.bind(this),Reveal.addEventListener("autoanimate",this.onAutoAnimate)},matcher:function(t,e){var r=[];return SL.deck.AutoAnimate.findMatchingElements(r,t,e,".sl-block[data-name]",function(t){return t.nodeName+":::"+t.getAttribute("data-name")}),SL.deck.AutoAnimate.findMatchingElements(r,t,e,'.sl-block[data-block-type="text"], .sl-block[data-block-type="snippet"], .sl-block[data-block-type="table"]',function(t){return t.getAttribute("data-block-type")+":::"+t.innerText}),SL.deck.AutoAnimate.findMatchingElements(r,t,e,'.sl-block[data-block-type="image"], .sl-block[data-block-type="video"]',function(t){var e=t.querySelector("img[src], video[src]");return e?e.getAttribute("src"):null}),SL.deck.AutoAnimate.findMatchingElements(r,t,e,'.sl-block[data-block-type="iframe"]',function(t){var e=t.querySelector("iframe[src], iframe[data-src]");return e?e.getAttribute("src")||e.getAttribute("data-src"):null}),SL.deck.AutoAnimate.findMatchingElements(r,t,e,'.sl-block[data-block-type="code"]',function(t){return t.querySelector(":not(.editing-ui) pre code").textContent}),SL.deck.AutoAnimate.findMatchingElements(r,t,e,'.sl-block[data-block-type="math"]',function(t){return t.querySelector(".math-input").textContent}),SL.deck.AutoAnimate.expandBlockPairs(r)},findMatchingElements:function(t,e,r,n,i,a){var o={},s={};[].slice.call(e.querySelectorAll(n)).forEach(function(t){var e=i(t);"string"==typeof e&&e.length&&(o[e]=o[e]||[],o[e].push(t))}),[].slice.call(r.querySelectorAll(n)).forEach(function(e){var r=i(e);s[r]=s[r]||[],s[r].push(e);var n;if(o[r]){var l=s[r].length-1,h=o[r].length-1;o[r][l]?(n=o[r][l],o[r][l]=null):o[r][h]&&(n=o[r][h],o[r][h]=null)}n&&t.push({from:n,to:e,options:a||{styles:[]}})})},expandBlockPairs:function(t){return t.forEach(function(e){var r=e.from,n=e.to,i=r.querySelector(".sl-block-content"),a=n.querySelector(".sl-block-content");i&&a&&SL.deck.AutoAnimate.expandBlockPair(t,e,r,n,i,a)}),t},expandBlockPair:function(t,e,r,n,i,a){var o=r.querySelector(".sl-block-style"),s=n.querySelector(".sl-block-style");o&&o.closest(".sl-block")!==r&&(o=null),s&&s.closest(".sl-block")!==n&&(s=null);var l=r.getAttribute("data-block-type"),h={},c={};return n.dataset.autoAnimateDelay&&(e.options.delay=parseFloat(n.dataset.autoAnimateDelay)),n.dataset.autoAnimateDuration&&(e.options.duration=parseFloat(n.dataset.autoAnimateDuration)),n.dataset.autoAnimateEasing&&(e.options.easing=n.dataset.autoAnimateEasing),h["z-index"]={property:"z-index",from:a.style.zIndex,to:a.style.zIndex},/text|snippet|table/i.test(l)?h.width={property:"width"}:/code|math/i.test(l)&&(h.width={property:"width"},h.height={property:"height"}),o&&s?(h.opacity={property:"opacity",from:o.style.opacity||"1",to:s.style.opacity||"1"},(o.style.transform||s.style.transform)&&(h.width={property:"width"},h.height={property:"height"},t.push({from:o,to:s,options:{translate:!1,scale:!1,styles:[{property:"transform"}]}}))):o?(h.opacity={property:"opacity",from:o.style.opacity||"1",to:"1"},o.style.transform&&(h.width={property:"width"},h.height={property:"height"},c.transform={property:"transform",from:o.style.transform,to:"none"})):s&&(h.opacity={property:"opacity",from:"1",to:s.style.opacity||"1"},s.style.transform&&(h.width={property:"width"},h.height={property:"height"},t.push({from:document.createElement("div"),to:s,options:{translate:!1,scale:!1,styles:[{property:"transform",from:"none"}]}}))),t.push({from:i,to:a,options:{translate:!1,scale:!1,styles:SL.deck.AutoAnimate.ANIMATABLE_BLOCK_CONTENT_STYLES.concat(Object.keys(c).map(function(t){return c[t]}))}}),/text/i.test(l)&&this.expandTextBlock(t,e,r,n),/code/i.test(l)&&this.expandCodeBlock(t,e,r,n),/shape/i.test(l)&&this.expandShapeBlock(t,e,r,n),/line/i.test(l)&&this.expandLineBlock(t,e,r,n),e.options.styles=e.options.styles.concat(Object.keys(h).map(function(t){return h[t]})),(h.width||h.height)&&(e.options.scale=!1),t},expandTextBlock:function(t,e,r,n){SL.deck.AutoAnimate.findMatchingElements(t,r,n,"ul li, ol li",function(t){return Array.prototype.map.call(t.childNodes,function(t){return/li|ul|ol/i.test(t.nodeName)?"":t.textContent.trim()}).join("")},{scale:!1,measure:SL.deck.AutoAnimate.getLocalBlockMeasurements}),SL.deck.AutoAnimate.findMatchingElements(t,r,n,'span[style*="font-size"]',function(t){return t.textContent.trim()},{scale:!1,translate:!1,styles:[{property:"font-size"}]})},expandCodeBlock:function(t,e,r,n){var i=n.querySelector("code.current-fragment");i&&(n=i),SL.deck.AutoAnimate.findMatchingElements(t,r,n,".hljs-ln-code",function(t){return t.textContent},{scale:!1,styles:[],measure:SL.deck.AutoAnimate.getLocalBlockMeasurements}),SL.deck.AutoAnimate.findMatchingElements(t,r,n,".hljs-ln-line[data-line-number]",function(t){return t.getAttribute("data-line-number")},{scale:!1,styles:["width"],measure:SL.deck.AutoAnimate.getLocalBlockMeasurements})},expandShapeBlock:function(t,e,r,n){var i=r.querySelector(".shape-element"),a=n.querySelector(".shape-element"),o=[{property:"fill"},{property:"stroke"}];/rect/i.test(a.nodeName)&&o.push({property:"rx"},{property:"ry"}),i&&a&&t.push({from:i,to:a,options:{translate:!1,scale:!1,styles:o}})},expandLineBlock:function(t,e,r,n){var i=r.querySelector(".line-element"),a=n.querySelector(".line-element");i&&a&&t.push({from:i,to:a,options:{translate:!1,scale:!1,styles:[{property:"stroke"},{property:"stroke-width"}]}})},getLocalBlockMeasurements:function(t){var e=Reveal.getScale();return{x:Math.round(t.offsetLeft*e*100)/100,y:Math.round(t.offsetTop*e*100)/100,width:Math.round(t.offsetWidth*e*100)/100,height:Math.round(t.offsetHeight*e*100)/100}},onAutoAnimate:function(t){var e=[];Array.prototype.forEach.call(t.toSlide.querySelectorAll('.sl-block[data-auto-animate-target^="unmatched"]'),function(t){var r=t.getAttribute("data-block-id"),n=t.querySelector(".sl-block-content");n&&e.push('.reveal [data-auto-animate-target="unmatched"][data-block-id="'+r+'"] { z-index: '+n.style.zIndex+"; }")}),e.length&&(t.sheet.innerHTML+=e.join(""))}},SL("deck").Controller={MODE_VIEWING:"viewing",MODE_EDITING:"editing",MODE_PRINTING:"printing",init:function(t){this.options=t||{},this.mode=null,Reveal.isReady()?this.setup():Reveal.addEventListener("ready",this.setup.bind(this))},setup:function(){SL.deck.Animation.init(),SL.deck.AutoAnimate.init(),this.setMode(this.options.mode||SL.deck.Controller.MODE_VIEWING)},setMode:function(t){this.mode=t,this.mode===SL.deck.Controller.MODE_EDITING||this.mode===SL.deck.Controller.MODE_PRINTING?SL.deck.Animation.disableAnimations():SL.deck.Animation.enableAnimations()}},SL("deck").util={extend:function(t){return Array.prototype.forEach.call(arguments,function(e){for(var r in e)t[r]=e[r]},t),t},renderMath:function(t){SL.deck.util.renderMathBlocks(t),SL.deck.util.renderInlineMath(t)},renderMathBlocks:function(t){t||(t=document.querySelector(".reveal .slides")),window.katex&&"function"==typeof window.katex.render&&[].slice.call(t.querySelectorAll('.sl-block[data-block-type="math"]')).forEach(function(t){var e=t.querySelector(".math-input"),r=t.querySelector(".math-output");e&&!r&&(r=document.createElement("div"),r.className="math-output",e.parentNode.insertBefore(r,e)),e&&r&&katex.render(e.innerText,r)})},renderInlineMath:function(t){t||(t=document.querySelector(".reveal .slides")),"function"==typeof window.renderMathInElement&&SL.deck.util.containsInlineMath(t)&&renderMathInElement(t,{delimiters:[{left:"$$",right:"$$",display:!0},{left:"\\[",right:"\\]",display:!0},{left:"\\(",right:"\\)",display:!1}]})},containsInlineMath:function(t){return!!t&&/\$\$.+\$\$|\\\[.+\\\]|\\\(.+\\\)/g.test(t.innerHTML)},injectCodeCopyButtons:function(){var t=[].slice.call(document.querySelectorAll('.sl-block[data-block-type="code"] .sl-block-content:not(.has-copy-button)'));t.length&&(this.copyButton=document.createElement("button"),this.copyButton.className="copy-code-to-clipboard",this.copyButton.textContent="Copy",this.copyButton.addEventListener("click",function(){this.copyButton.hasAttribute("data-code-to-copy")&&(this.copyButton.textContent="Copied!",this.copyButton.classList.add("bounce"),SL.deck.util.copyToClipboard(this.copyButton.getAttribute("data-code-to-copy")),setTimeout(function(){this.copyButton.textContent="Copy",this.copyButton.classList.remove("bounce")}.bind(this),1500))}.bind(this)),t.forEach(function(t){var e,r=t.querySelector("pre code");r&&(e=r.textContent),e&&t.addEventListener("mouseenter",function(t){this.copyButton.setAttribute("data-code-to-copy",e),t.currentTarget.classList.add("has-copy-button"),t.currentTarget.appendChild(this.copyButton)}.bind(this))},this))},hasNotes:function(){if(SLConfig.deck&&SLConfig.deck.notes)for(var t in SLConfig.deck.notes)return!0;return document.querySelectorAll(".reveal .slides section[data-notes]").length>0},injectNotes:function(){SLConfig.deck&&SLConfig.deck.notes&&[].forEach.call(document.querySelectorAll(".reveal .slides section"),function(t){var e=SLConfig.deck.notes[t.getAttribute("data-id")];e&&"string"==typeof e&&t.setAttribute("data-notes",e)})},injectTranslationRules:function(){[].slice.call(document.querySelectorAll(".sl-block .katex")).forEach(function(t){t.classList.add("notranslate")})},copyToClipboard:function(t){var e=document.createElement("textarea");e.value=t,document.body.appendChild(e),e.select();var r=document.execCommand("copy");return document.body.removeChild(e),r}};