!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.katex=e():t.katex=e()}("undefined"!=typeof self?self:this,function(){return function(t){var e={};function r(n){if(e[n])return e[n].exports;var a=e[n]={i:n,l:!1,exports:{}};return t[n].call(a.exports,a,a.exports,r),a.l=!0,a.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var a in t)r.d(n,a,function(e){return t[e]}.bind(null,a));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=3)}([function(t,e,r){"use strict";e.__esModule=!0,e.default=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}},function(t,e,r){},,function(t,e,r){"use strict";r.r(e);r(1);var n=r(0),a=r.n(n),o=function(){function t(e,r,n){a()(this,t),this.lexer=e,this.start=r,this.end=n}return t.range=function(e,r){return r?e&&e.loc&&r.loc&&e.loc.lexer===r.loc.lexer?new t(e.loc.lexer,e.loc.start,r.loc.end):null:e&&e.loc},t}(),i=function(){function t(e,r){a()(this,t),this.text=e,this.loc=r}return t.prototype.range=function(e,r){return new t(r,o.range(this,e))},t}(),s=function t(e,r){a()(this,t);var n="KaTeX parse error: "+e,o=void 0,i=r&&r.loc;if(i&&i.start<=i.end){var s=i.lexer.input;o=i.start;var h=i.end;o===s.length?n+=" at end of input: ":n+=" at position "+(o+1)+": ";var l=s.slice(o,h).replace(/[^]/g,"$&\u0332");n+=(o>15?"\u2026"+s.slice(o-15,o):s.slice(0,o))+l+(h+15":">","<":"<",'"':""","'":"'"},c=/[&><"']/g;var p=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},u=function(t){if(!t)throw new Error("Expected non-null, but got "+String(t));return t},d={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(c,function(t){return m[t]})},hyphenate:function(t){return t.replace(l,"-$1").toLowerCase()},getBaseElem:p,isCharacterBox:function(t){var e=p(t);return"mathord"===e.type||"textord"===e.type||"atom"===e.type}},f=function(){function t(e){a()(this,t),e=e||{},this.displayMode=d.deflt(e.displayMode,!1),this.throwOnError=d.deflt(e.throwOnError,!0),this.errorColor=d.deflt(e.errorColor,"#cc0000"),this.macros=e.macros||{},this.colorIsTextColor=d.deflt(e.colorIsTextColor,!1),this.strict=d.deflt(e.strict,"warn"),this.maxSize=Math.max(0,d.deflt(e.maxSize,1/0)),this.maxExpand=Math.max(0,d.deflt(e.maxExpand,1e3)),this.allowedProtocols=d.deflt(e.allowedProtocols,["http","https","mailto","_relative"])}return t.prototype.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 h("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+"]")}},t.prototype.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)))},t}(),g=function(){function t(e,r,n){a()(this,t),this.id=e,this.size=r,this.cramped=n}return t.prototype.sup=function(){return x[v[this.id]]},t.prototype.sub=function(){return x[y[this.id]]},t.prototype.fracNum=function(){return x[b[this.id]]},t.prototype.fracDen=function(){return x[w[this.id]]},t.prototype.cramp=function(){return x[k[this.id]]},t.prototype.text=function(){return x[S[this.id]]},t.prototype.isTight=function(){return this.size>=2},t}(),x=[new g(0,0,!1),new g(1,0,!0),new g(2,1,!1),new g(3,1,!0),new g(4,2,!1),new g(5,2,!0),new g(6,3,!1),new g(7,3,!0)],v=[4,5,4,5,6,7,6,7],y=[5,5,5,5,7,7,7,7],b=[2,3,4,5,6,7,6,7],w=[3,3,5,5,7,7,7,7],k=[1,1,3,3,5,5,7,7],S=[0,1,2,3,2,3,2,3],M={DISPLAY:x[0],TEXT:x[2],SCRIPT:x[4],SCRIPTSCRIPT:x[6]},z=[{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]]}];var T=[];function A(t){for(var e=0;e=T[e]&&t<=T[e+1])return!0;return!1}z.forEach(function(t){return t.blocks.forEach(function(t){return T.push.apply(T,t)})});var B={path:{sqrtMain:"M95,702c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,\n-10,-9.5,-14c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54c44.2,-33.3,65.8,\n-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10s173,378,173,378c0.7,0,\n35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429c69,-144,104.5,-217.7,106.5,\n-221c5.3,-9.3,12,-14,20,-14H400000v40H845.2724s-225.272,467,-225.272,467\ns-235,486,-235,486c-2.7,4.7,-9,7,-19,7c-6,0,-10,-1,-12,-3s-194,-422,-194,-422\ns-65,47,-65,47z M834 80H400000v40H845z",sqrtSize1:"M263,681c0.7,0,18,39.7,52,119c34,79.3,68.167,\n158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120c340,-704.7,510.7,-1060.3,512,-1067\nc4.7,-7.3,11,-11,19,-11H40000v40H1012.3s-271.3,567,-271.3,567c-38.7,80.7,-84,\n175,-136,283c-52,108,-89.167,185.3,-111.5,232c-22.3,46.7,-33.8,70.3,-34.5,71\nc-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1s-109,-253,-109,-253c-72.7,-168,-109.3,\n-252,-110,-252c-10.7,8,-22,16.7,-34,26c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26\ns76,-59,76,-59s76,-60,76,-60z M1001 80H40000v40H1012z",sqrtSize2:"M1001,80H400000v40H1013.1s-83.4,268,-264.1,840c-180.7,\n572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7s-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,\n-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744c-10,12,-21,25,-33,39s-32,39,-32,39\nc-6,-5.3,-15,-14,-27,-26s25,-30,25,-30c26.7,-32.7,52,-63,76,-91s52,-60,52,-60\ns208,722,208,722c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,\n-658.5c53.7,-170.3,84.5,-266.8,92.5,-289.5c4,-6.7,10,-10,18,-10z\nM1001 80H400000v40H1013z",sqrtSize3:"M424,2478c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,\n-342,-109.8,-513.3,-110.5,-514c0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,\n25c-5.7,9.3,-9.8,16,-12.5,20s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,\n-13s76,-122,76,-122s77,-121,77,-121s209,968,209,968c0,-2,84.7,-361.7,254,-1079\nc169.3,-717.3,254.7,-1077.7,256,-1081c4,-6.7,10,-10,18,-10H400000v40H1014.6\ns-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185c-2,6,-10,9,-24,9\nc-8,0,-12,-0.7,-12,-2z M1001 80H400000v40H1014z",sqrtSize4:"M473,2793c339.3,-1799.3,509.3,-2700,510,-2702\nc3.3,-7.3,9.3,-11,18,-11H400000v40H1017.7s-90.5,478,-276.2,1466c-185.7,988,\n-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9c-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,\n-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200c0,-1.3,-5.3,8.7,-16,30c-10.7,\n21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26s76,-153,76,-153s77,-151,\n77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104,606z\nM1001 80H400000v40H1017z",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 241v40h399900v-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"}},C=function(){function t(e){a()(this,t),this.children=e,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}return t.prototype.hasClass=function(t){return d.contains(this.classes,t)},t.prototype.tryCombine=function(t){return!1},t.prototype.toNode=function(){for(var t=document.createDocumentFragment(),e=0;e"},I=function(){function t(e,r,n,o){a()(this,t),q.call(this,e,n,o),this.children=r||[]}return t.prototype.setAttribute=function(t,e){this.attributes[t]=e},t.prototype.hasClass=function(t){return d.contains(this.classes,t)},t.prototype.tryCombine=function(t){return!1},t.prototype.toNode=function(){return E.call(this,"span")},t.prototype.toMarkup=function(){return O.call(this,"span")},t}(),R=function(){function t(e,r,n,o){a()(this,t),q.call(this,r,o),this.children=n||[],this.setAttribute("href",e)}return t.prototype.setAttribute=function(t,e){this.attributes[t]=e},t.prototype.hasClass=function(t){return d.contains(this.classes,t)},t.prototype.tryCombine=function(t){return!1},t.prototype.toNode=function(){return E.call(this,"a")},t.prototype.toMarkup=function(){return O.call(this,"a")},t}(),L={"\xee":"\u0131\u0302","\xef":"\u0131\u0308","\xed":"\u0131\u0301","\xec":"\u0131\u0300"},H=function(){function t(e,r,n,o,i,s,h,l){a()(this,t),this.text=e,this.height=r||0,this.depth=n||0,this.italic=o||0,this.skew=i||0,this.width=s||0,this.classes=h||[],this.style=l||{},this.maxFontSize=0;var m=function(t){for(var e=0;e=a[0]&&t<=a[1])return r.name}return null}(this.text.charCodeAt(0));m&&this.classes.push(m+"_fallback"),/[\xee\xef\xed\xec]/.test(this.text)&&(this.text=L[this.text])}return t.prototype.hasClass=function(t){return d.contains(this.classes,t)},t.prototype.tryCombine=function(e){if(!e||!(e instanceof t)||this.italic>0||N(this.classes)!==N(e.classes)||this.skew!==e.skew||this.maxFontSize!==e.maxFontSize)return!1;for(var r in this.style)if(this.style.hasOwnProperty(r)&&this.style[r]!==e.style[r])return!1;for(var n in e.style)if(e.style.hasOwnProperty(n)&&this.style[n]!==e.style[n])return!1;return this.text+=e.text,this.height=Math.max(this.height,e.height),this.depth=Math.max(this.depth,e.depth),this.italic=e.italic,!0},t.prototype.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=N(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},t.prototype.toMarkup=function(){var t=!1,e="0&&(r+="margin-right:"+this.italic+"em;"),this.style)this.style.hasOwnProperty(n)&&(r+=d.hyphenate(n)+":"+this.style[n]+";");r&&(t=!0,e+=' style="'+d.escape(r)+'"');var a=d.escape(this.text);return t?(e+=">",e+=a,e+=""):a},t}(),D=function(){function t(e,r){a()(this,t),this.children=e||[],this.attributes=r||{}}return t.prototype.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}(),F=function(){function t(e){a()(this,t),this.attributes=e||{}}return t.prototype.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},t.prototype.toMarkup=function(){var t="",">"),Z("math",K,rt,":",":"),Z("math",K,rt,"\u2248","\\approx",!0),Z("math",K,rt,"\u2245","\\cong",!0),Z("math",K,rt,"\u2265","\\ge"),Z("math",K,rt,"\u2265","\\geq",!0),Z("math",K,rt,"\u2190","\\gets"),Z("math",K,rt,">","\\gt"),Z("math",K,rt,"\u2208","\\in",!0),Z("math",K,rt,"\u0338","\\@not"),Z("math",K,rt,"\u2282","\\subset",!0),Z("math",K,rt,"\u2283","\\supset",!0),Z("math",K,rt,"\u2286","\\subseteq",!0),Z("math",K,rt,"\u2287","\\supseteq",!0),Z("math",J,rt,"\u2288","\\nsubseteq",!0),Z("math",J,rt,"\u2289","\\nsupseteq",!0),Z("math",K,rt,"\u22a8","\\models"),Z("math",K,rt,"\u2190","\\leftarrow",!0),Z("math",K,rt,"\u2264","\\le"),Z("math",K,rt,"\u2264","\\leq",!0),Z("math",K,rt,"<","\\lt"),Z("math",K,rt,"\u2192","\\rightarrow",!0),Z("math",K,rt,"\u2192","\\to"),Z("math",J,rt,"\u2271","\\ngeq",!0),Z("math",J,rt,"\u2270","\\nleq",!0),Z("math",K,nt,"\xa0","\\ "),Z("math",K,nt,"\xa0","~"),Z("math",K,nt,"\xa0","\\space"),Z("math",K,nt,"\xa0","\\nobreakspace"),Z("text",K,nt,"\xa0","\\ "),Z("text",K,nt,"\xa0","~"),Z("text",K,nt,"\xa0","\\space"),Z("text",K,nt,"\xa0","\\nobreakspace"),Z("math",K,nt,null,"\\nobreak"),Z("math",K,nt,null,"\\allowbreak"),Z("math",K,"punct",",",","),Z("math",K,"punct",";",";"),Z("math",J,Q,"\u22bc","\\barwedge",!0),Z("math",J,Q,"\u22bb","\\veebar",!0),Z("math",K,Q,"\u2299","\\odot",!0),Z("math",K,Q,"\u2295","\\oplus",!0),Z("math",K,Q,"\u2297","\\otimes",!0),Z("math",K,"textord","\u2202","\\partial",!0),Z("math",K,Q,"\u2298","\\oslash",!0),Z("math",J,Q,"\u229a","\\circledcirc",!0),Z("math",J,Q,"\u22a1","\\boxdot",!0),Z("math",K,Q,"\u25b3","\\bigtriangleup"),Z("math",K,Q,"\u25bd","\\bigtriangledown"),Z("math",K,Q,"\u2020","\\dagger"),Z("math",K,Q,"\u22c4","\\diamond"),Z("math",K,Q,"\u22c6","\\star"),Z("math",K,Q,"\u25c3","\\triangleleft"),Z("math",K,Q,"\u25b9","\\triangleright"),Z("math",K,"open","{","\\{"),Z("text",K,"textord","{","\\{"),Z("text",K,"textord","{","\\textbraceleft"),Z("math",K,"close","}","\\}"),Z("text",K,"textord","}","\\}"),Z("text",K,"textord","}","\\textbraceright"),Z("math",K,"open","{","\\lbrace"),Z("math",K,"close","}","\\rbrace"),Z("math",K,"open","[","\\lbrack"),Z("text",K,"textord","[","\\lbrack"),Z("math",K,"close","]","\\rbrack"),Z("text",K,"textord","]","\\rbrack"),Z("text",K,"textord","<","\\textless"),Z("text",K,"textord",">","\\textgreater"),Z("math",K,"open","\u230a","\\lfloor",!0),Z("math",K,"close","\u230b","\\rfloor",!0),Z("math",K,"open","\u2308","\\lceil",!0),Z("math",K,"close","\u2309","\\rceil",!0),Z("math",K,"textord","\\","\\backslash"),Z("math",K,"textord","\u2223","|"),Z("math",K,"textord","\u2223","\\vert"),Z("text",K,"textord","|","\\textbar"),Z("math",K,"textord","\u2225","\\|"),Z("math",K,"textord","\u2225","\\Vert"),Z("text",K,"textord","\u2225","\\textbardbl"),Z("text",K,"textord","~","\\textasciitilde"),Z("math",K,rt,"\u2191","\\uparrow",!0),Z("math",K,rt,"\u21d1","\\Uparrow",!0),Z("math",K,rt,"\u2193","\\downarrow",!0),Z("math",K,rt,"\u21d3","\\Downarrow",!0),Z("math",K,rt,"\u2195","\\updownarrow",!0),Z("math",K,rt,"\u21d5","\\Updownarrow",!0),Z("math",K,et,"\u2210","\\coprod"),Z("math",K,et,"\u22c1","\\bigvee"),Z("math",K,et,"\u22c0","\\bigwedge"),Z("math",K,et,"\u2a04","\\biguplus"),Z("math",K,et,"\u22c2","\\bigcap"),Z("math",K,et,"\u22c3","\\bigcup"),Z("math",K,et,"\u222b","\\int"),Z("math",K,et,"\u222b","\\intop"),Z("math",K,et,"\u222c","\\iint"),Z("math",K,et,"\u222d","\\iiint"),Z("math",K,et,"\u220f","\\prod"),Z("math",K,et,"\u2211","\\sum"),Z("math",K,et,"\u2a02","\\bigotimes"),Z("math",K,et,"\u2a01","\\bigoplus"),Z("math",K,et,"\u2a00","\\bigodot"),Z("math",K,et,"\u222e","\\oint"),Z("math",K,et,"\u222f","\\oiint"),Z("math",K,et,"\u2230","\\oiiint"),Z("math",K,et,"\u2a06","\\bigsqcup"),Z("math",K,et,"\u222b","\\smallint"),Z("text",K,"inner","\u2026","\\textellipsis"),Z("math",K,"inner","\u2026","\\mathellipsis"),Z("text",K,"inner","\u2026","\\ldots",!0),Z("math",K,"inner","\u2026","\\ldots",!0),Z("math",K,"inner","\u22ef","\\@cdots",!0),Z("math",K,"inner","\u22f1","\\ddots",!0),Z("math",K,"textord","\u22ee","\\varvdots"),Z("math",K,"accent-token","\u02ca","\\acute"),Z("math",K,"accent-token","\u02cb","\\grave"),Z("math",K,"accent-token","\xa8","\\ddot"),Z("math",K,"accent-token","~","\\tilde"),Z("math",K,"accent-token","\u02c9","\\bar"),Z("math",K,"accent-token","\u02d8","\\breve"),Z("math",K,"accent-token","\u02c7","\\check"),Z("math",K,"accent-token","^","\\hat"),Z("math",K,"accent-token","\u20d7","\\vec"),Z("math",K,"accent-token","\u02d9","\\dot"),Z("math",K,"accent-token","\u02da","\\mathring"),Z("math",K,tt,"\u0131","\\imath",!0),Z("math",K,tt,"\u0237","\\jmath",!0),Z("text",K,"textord","\u0131","\\i",!0),Z("text",K,"textord","\u0237","\\j",!0),Z("text",K,"textord","\xdf","\\ss",!0),Z("text",K,"textord","\xe6","\\ae",!0),Z("text",K,"textord","\xe6","\\ae",!0),Z("text",K,"textord","\u0153","\\oe",!0),Z("text",K,"textord","\xf8","\\o",!0),Z("text",K,"textord","\xc6","\\AE",!0),Z("text",K,"textord","\u0152","\\OE",!0),Z("text",K,"textord","\xd8","\\O",!0),Z("text",K,"accent-token","\u02ca","\\'"),Z("text",K,"accent-token","\u02cb","\\`"),Z("text",K,"accent-token","\u02c6","\\^"),Z("text",K,"accent-token","\u02dc","\\~"),Z("text",K,"accent-token","\u02c9","\\="),Z("text",K,"accent-token","\u02d8","\\u"),Z("text",K,"accent-token","\u02d9","\\."),Z("text",K,"accent-token","\u02da","\\r"),Z("text",K,"accent-token","\u02c7","\\v"),Z("text",K,"accent-token","\xa8",'\\"'),Z("text",K,"accent-token","\u02dd","\\H"),Z("text",K,"accent-token","\u25ef","\\textcircled");var at={"--":!0,"---":!0,"``":!0,"''":!0};Z("text",K,"textord","\u2013","--"),Z("text",K,"textord","\u2013","\\textendash"),Z("text",K,"textord","\u2014","---"),Z("text",K,"textord","\u2014","\\textemdash"),Z("text",K,"textord","\u2018","`"),Z("text",K,"textord","\u2018","\\textquoteleft"),Z("text",K,"textord","\u2019","'"),Z("text",K,"textord","\u2019","\\textquoteright"),Z("text",K,"textord","\u201c","``"),Z("text",K,"textord","\u201c","\\textquotedblleft"),Z("text",K,"textord","\u201d","''"),Z("text",K,"textord","\u201d","\\textquotedblright"),Z("math",K,"textord","\xb0","\\degree",!0),Z("text",K,"textord","\xb0","\\degree"),Z("text",K,"textord","\xb0","\\textdegree",!0),Z("math",K,tt,"\xa3","\\pounds"),Z("math",K,tt,"\xa3","\\mathsterling",!0),Z("text",K,tt,"\xa3","\\pounds"),Z("text",K,tt,"\xa3","\\textsterling",!0),Z("math",J,"textord","\u2720","\\maltese"),Z("text",J,"textord","\u2720","\\maltese"),Z("text",K,nt,"\xa0","\\ "),Z("text",K,nt,"\xa0"," "),Z("text",K,nt,"\xa0","~");for(var ot=0;ot<'0123456789/@."'.length;ot++){var it='0123456789/@."'.charAt(ot);Z("math",K,"textord",it,it)}for(var st=0;st<'0123456789!@*()-=+[]<>|";:?/.,'.length;st++){var ht='0123456789!@*()-=+[]<>|";:?/.,'.charAt(st);Z("text",K,"textord",ht,ht)}for(var lt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",mt=0;mt=5?0:t>=3?1:2]){var r=Y[e]={cssEmPerMu:G.quad[e]/18};for(var n in G)G.hasOwnProperty(n)&&(r[n]=G[n][e])}return Y[e]}(this.size)),this._fontMetrics},t.prototype.getColor=function(){return this.phantom?"transparent":null!=this.color&&t.colorMap.hasOwnProperty(this.color)?t.colorMap[this.color]:this.color},t}();Mt.BASESIZE=6,Mt.colorMap={"katex-blue":"#6495ed","katex-orange":"#ffa500","katex-pink":"#ff00af","katex-red":"#df0030","katex-green":"#28ae7b","katex-gray":"gray","katex-purple":"#9d38bd","katex-blueA":"#ccfaff","katex-blueB":"#80f6ff","katex-blueC":"#63d9ea","katex-blueD":"#11accd","katex-blueE":"#0c7f99","katex-tealA":"#94fff5","katex-tealB":"#26edd5","katex-tealC":"#01d1c1","katex-tealD":"#01a995","katex-tealE":"#208170","katex-greenA":"#b6ffb0","katex-greenB":"#8af281","katex-greenC":"#74cf70","katex-greenD":"#1fab54","katex-greenE":"#0d923f","katex-goldA":"#ffd0a9","katex-goldB":"#ffbb71","katex-goldC":"#ff9c39","katex-goldD":"#e07d10","katex-goldE":"#a75a05","katex-redA":"#fca9a9","katex-redB":"#ff8482","katex-redC":"#f9685d","katex-redD":"#e84d39","katex-redE":"#bc2612","katex-maroonA":"#ffbde0","katex-maroonB":"#ff92c6","katex-maroonC":"#ed5fa6","katex-maroonD":"#ca337c","katex-maroonE":"#9e034e","katex-purpleA":"#ddd7ff","katex-purpleB":"#c6b9fc","katex-purpleC":"#aa87ff","katex-purpleD":"#7854ab","katex-purpleE":"#543b78","katex-mintA":"#f5f9e8","katex-mintB":"#edf2df","katex-mintC":"#e0e5cc","katex-grayA":"#f6f7f7","katex-grayB":"#f0f1f2","katex-grayC":"#e3e5e6","katex-grayD":"#d6d8da","katex-grayE":"#babec2","katex-grayF":"#888d93","katex-grayG":"#626569","katex-grayH":"#3b3e40","katex-grayI":"#21242c","katex-kaBlue":"#314453","katex-kaGreen":"#71B307"};var zt=Mt,Tt={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},At={ex:!0,em:!0,mu:!0},Bt=function(t,e){var r=void 0;if(t.unit in Tt)r=Tt[t.unit]/e.fontMetrics().ptPerEm/e.sizeMultiplier;else if("mu"===t.unit)r=e.fontMetrics().cssEmPerMu;else{var n=void 0;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 h("Invalid unit: '"+t.unit+"'");r=n.fontMetrics().quad}n!==e&&(r*=n.sizeMultiplier/e.sizeMultiplier)}return Math.min(t.number*r,e.maxSize)},Ct=["\\imath","\u0131","\\jmath","\u0237","\\pounds","\\mathsterling","\\textsterling","\xa3"],Nt=function(t,e,r){return $[r][t]&&$[r][t].replace&&(t=$[r][t].replace),{value:t,metrics:X(t,e,r)}},qt=function(t,e,r,n,a){var o=Nt(t,e,r),i=o.metrics;t=o.value;var s=void 0;if(i){var h=i.italic;"text"===r&&(h=0),s=new H(t,i.height,i.depth,h,i.skew,i.width,a)}else"undefined"!=typeof console&&console.warn("No character metrics for '"+t+"' in style '"+e+"'"),s=new H(t,0,0,0,0,0,a);if(n){s.maxFontSize=n.sizeMultiplier,n.style.isTight()&&s.classes.push("mtight");var l=n.getColor();l&&(s.style.color=l)}return s},Et=function(t,e,r,n,a){if("mathord"===a){var o=Ot(t,e,r,n);return qt(t,o.fontName,e,r,n.concat([o.fontClass]))}if("textord"===a){var i=$[e][t]&&$[e][t].font;if("ams"===i){var s=Dt("amsrm",r.fontWeight,r.fontShape);return qt(t,s,e,r,n.concat("amsrm",r.fontWeight,r.fontShape))}if("main"!==i&&i){var h=Dt(i,r.fontWeight,r.fontShape);return qt(t,h,e,r,n.concat(h,r.fontWeight,r.fontShape))}var l=Dt("textrm",r.fontWeight,r.fontShape);return qt(t,l,e,r,n.concat(r.fontWeight,r.fontShape))}throw new Error("unexpected type: "+a+" in mathDefault")},Ot=function(t,e,r,n){return/[0-9]/.test(t.charAt(0))||d.contains(Ct,t)?{fontName:"Main-Italic",fontClass:"mainit"}:{fontName:"Math-Italic",fontClass:"mathit"}},It=function(t){for(var e=0,r=0,n=0,a=0;ae&&(e=o.height),o.depth>r&&(r=o.depth),o.maxFontSize>n&&(n=o.maxFontSize)}t.height=e,t.depth=r,t.maxFontSize=n},Rt=function(t,e,r,n){var a=new I(t,e,r,n);return It(a),a},Lt=function(t,e,r,n){return new I(t,e,r,n)},Ht=function(t){var e=new C(t);return It(e),e},Dt=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")},Pt={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{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"}},Ft={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},Vt={fontMap:Pt,makeSymbol:qt,mathsym:function(t,e,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];return r&&r.font&&"boldsymbol"===r.font&&Nt(t,"Main-Bold",e).metrics?qt(t,"Main-Bold",e,r,n.concat(["mathbf"])):"\\"===t||"main"===$[e][t].font?qt(t,"Main-Regular",e,r,n):qt(t,"AMS-Regular",e,r,n.concat(["amsrm"]))},makeSpan:Rt,makeSvgSpan:Lt,makeLineSpan:function(t,e,r){var n=Rt([t],[],e);return n.height=r||e.fontMetrics().defaultRuleThickness,n.style.borderBottomWidth=n.height+"em",n.maxFontSize=1,n},makeAnchor:function(t,e,r,n){var a=new R(t,e,r,n);return It(a),a},makeFragment:Ht,makeVList:function(t,e){for(var r=function(t){if("individualShift"===t.positionType){for(var e=t.children,r=[e[0]],n=-e[0].shift-e[0].elem.depth,a=n,o=1;o3&&void 0!==arguments[3]?arguments[3]:[null,null],a=[],o=0;o0&&(a.push(de(o,e)),o=[]),a.push(n[i]));o.length>0&&a.push(de(o,e));var h=void 0;r&&((h=de(he(r,e,!0))).classes=["tag"],a.push(h));var l=ne(["katex-html"],a);if(l.setAttribute("aria-hidden","true"),h){var m=h.children[0];m.style.height=l.height+l.depth+"em",m.style.verticalAlign=-l.depth+"em"}return l}function ge(t){return new C(t)}var xe=function(){function t(e,r){a()(this,t),this.type=e,this.attributes={},this.children=r||[]}return t.prototype.setAttribute=function(t,e){this.attributes[t]=e},t.prototype.getAttribute=function(t){return this.attributes[t]},t.prototype.toNode=function(){var t=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);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.prototype.toText=function(){return this.children.map(function(t){return t.toText()}).join("")},t}(),ve=function(){function t(e){var r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];a()(this,t),this.text=e,this.needsEscape=r}return t.prototype.toNode=function(){return document.createTextNode(this.toText())},t.prototype.toMarkup=function(){return this.toText()},t.prototype.toText=function(){return this.needsEscape?d.escape(this.text):this.text},t}(),ye=function(){function t(e){a()(this,t),this.width=e,this.character=e>=.05555&&e<=.05556?" ":e>=.1666&&e<=.1667?" ":e>=.2222&&e<=.2223?" ":e>=.2777&&e<=.2778?"  ":e>=-.05556&&e<=-.05555?"​":e>=-.1667&&e<=-.1666?"​":e>=-.2223&&e<=-.2222?"​":e>=-.2778&&e<=-.2777?"​":null}return t.prototype.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},t.prototype.toMarkup=function(){return this.character?""+this.character+"":''},t.prototype.toText=function(){return this.character?this.character:" "},t}(),be={MathNode:xe,TextNode:ve,SpaceNode:ye,newDocumentFragment:ge},we=function(t,e,r){return!$[e][t]||!$[e][t].replace||55349===t.charCodeAt(0)||at.hasOwnProperty(t)&&r&&(r.fontFamily&&"tt"===r.fontFamily.substr(4,2)||r.font&&"tt"===r.font.substr(4,2))||(t=$[e][t].replace),new be.TextNode(t)},ke=function(t){return 1===t.length?t[0]:new be.MathNode("mrow",t)},Se=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)return null;var n=t.mode;if("mathit"===r)return"italic";if("boldsymbol"===r)return"bold-italic";var a=t.text;return d.contains(["\\imath","\\jmath"],a)?null:($[n][a]&&$[n][a].replace&&(a=$[n][a].replace),X(a,Vt.fontMap[r].fontName,n)?Vt.fontMap[r].variant:null)},Me=function(t,e){for(var r=[],n=void 0,a=0;a5)"widehat"===n||"widecheck"===n?(o=420,r=2364,s=.42,i=n+"4"):(o=312,r=2340,s=.34,i="tilde4");else{var h=[1,1,2,2,3,3][a];"widehat"===n||"widecheck"===n?(r=[0,1062,2364,2364,2364][h],o=[0,239,300,360,420][h],s=[0,.24,.3,.3,.36,.42][h],i=n+h):(r=[0,600,1033,2339,2340][h],o=[0,260,286,306,312][h],s=[0,.26,.286,.3,.306,.34][h],i="tilde"+h)}var l=new P(i),m=new D([l],{width:"100%",height:s+"em",viewBox:"0 0 "+r+" "+o,preserveAspectRatio:"none"});return{span:Vt.makeSvgSpan([],[m],e),minWidth:0,height:s}}var c=[],p=Ne[n],u=p[0],f=p[1],g=p[2],x=g/1e3,v=u.length,y=void 0,b=void 0;if(1===v)y=["hide-tail"],b=[p[3]];else if(2===v)y=["halfarrow-left","halfarrow-right"],b=["xMinYMin","xMaxYMin"];else{if(3!==v)throw new Error("Correct katexImagesData or update code here to support\n "+v+" children.");y=["brace-left","brace-center","brace-right"],b=["xMinYMin","xMidYMin","xMaxYMin"]}for(var w=0;w0&&(n.style.minWidth=a+"em"),n},Re=function(t,e){var r=void 0,n=void 0,a=Ut(t,"supsub"),o=void 0;a?(r=(n=Gt(a.base,"accent")).base,a.base=r,o=function(t){if(t instanceof I)return t;throw new Error("Expected span but got "+String(t)+".")}(ue(a,e)),a.base=n):r=(n=Gt(t,"accent")).base;var i=ue(r,e.havingCrampedStyle()),s=0;if(n.isShifty&&d.isCharacterBox(r)){var h=d.getBaseElem(r);s=function(t){if(t instanceof H)return t;throw new Error("Expected symbolNode but got "+String(t)+".")}(ue(h,e.havingCrampedStyle())).skew}var l=Math.min(i.height,e.fontMetrics().xHeight),m=void 0;if(n.isStretchy)m=Ie(n,e),m=Vt.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:i},{type:"elem",elem:m,wrapperClasses:["svg-align"],wrapperStyle:s>0?{width:"calc(100% - "+2*s+"em)",marginLeft:2*s+"em"}:void 0}]},e);else{var c=void 0,p=void 0;"\\vec"===n.label?(c=Vt.staticSvg("vec",e),p=Vt.svgData.vec[1]):((c=Vt.makeSymbol(n.label,"Main-Regular",n.mode,e)).italic=0,p=c.width),m=Vt.makeSpan(["accent-body"],[c]);var u="\\textcircled"===n.label;u&&(m.classes.push("accent-full"),l=i.height);var f=s;u||(f-=p/2),m.style.left=f+"em","\\textcircled"===n.label&&(m.style.top=".2em"),m=Vt.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:i},{type:"kern",size:-l},{type:"elem",elem:m}]},e)}var g=Vt.makeSpan(["mord","accent"],[m],e);return o?(o.children[0]=g,o.height=Math.max(g.height,o.height),o.classes[0]="mord",o):g},Le=function(t,e){var r=t.isStretchy?Oe(t.label):new be.MathNode("mo",[we(t.label,t.mode)]),n=new be.MathNode("mover",[Te(t.base,e),r]);return n.setAttribute("accent","true"),n},He=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(function(t){return"\\"+t}).join("|"));te({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=!He.test(t.funcName),a=!n||"\\widehat"===t.funcName||"\\widetilde"===t.funcName||"\\widecheck"===t.funcName;return{type:"accent",mode:t.parser.mode,label:t.funcName,isStretchy:n,isShifty:a,base:r}},htmlBuilder:Re,mathmlBuilder:Le}),te({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:Re,mathmlBuilder:Le}),te({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:function(t,e){var r=t.parser,n=t.funcName,a=e[0];return{type:"accentUnder",mode:r.mode,label:n,base:a}},htmlBuilder:function(t,e){var r=ue(t.base,e),n=Ie(t,e),a="\\utilde"===t.label?.12:0,o=Vt.makeVList({positionType:"bottom",positionData:n.height+a,children:[{type:"elem",elem:n,wrapperClasses:["svg-align"]},{type:"kern",size:a},{type:"elem",elem:r}]},e);return Vt.makeSpan(["mord","accentunder"],[o],e)},mathmlBuilder:function(t,e){var r=Oe(t.label),n=new be.MathNode("munder",[Te(t.base,e),r]);return n.setAttribute("accentunder","true"),n}}),te({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,a=t.funcName;return{type:"xArrow",mode:n.mode,label:a,body:e[0],below:r[0]}},htmlBuilder:function(t,e){var r=e.style,n=e.havingStyle(r.sup()),a=ue(t.body,n,e);a.classes.push("x-arrow-pad");var o=void 0;t.below&&(n=e.havingStyle(r.sub()),(o=ue(t.below,n,e)).classes.push("x-arrow-pad"));var i=Ie(t,e),s=-e.fontMetrics().axisHeight+.5*i.height,h=-e.fontMetrics().axisHeight-.5*i.height-.111;(a.depth>.25||"\\xleftequilibrium"===t.label)&&(h-=a.depth);var l=void 0;if(o){var m=-e.fontMetrics().axisHeight+o.height+.5*i.height+.111;l=Vt.makeVList({positionType:"individualShift",children:[{type:"elem",elem:a,shift:h},{type:"elem",elem:i,shift:s},{type:"elem",elem:o,shift:m}]},e)}else l=Vt.makeVList({positionType:"individualShift",children:[{type:"elem",elem:a,shift:h},{type:"elem",elem:i,shift:s}]},e);return l.children[0].children[0].children[1].classes.push("svg-align"),Vt.makeSpan(["mrel","x-arrow"],[l],e)},mathmlBuilder:function(t,e){var r=Oe(t.label),n=void 0,a=void 0;if(t.body){var o=Te(t.body,e);t.below?(a=Te(t.below,e),n=new be.MathNode("munderover",[r,a,o])):n=new be.MathNode("mover",[r,o])}else t.below?(a=Te(t.below,e),n=new be.MathNode("munder",[r,a])):n=new be.MathNode("mover",[r]);return n}}),te({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler:function(t,e){for(var r=t.parser,n=Gt(e[0],"ordgroup").body,a="",o=0;o","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],Ze=[0,1.2,1.8,2.4,3],Ke=[{type:"small",style:M.SCRIPTSCRIPT},{type:"small",style:M.SCRIPT},{type:"small",style:M.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],Je=[{type:"small",style:M.SCRIPTSCRIPT},{type:"small",style:M.SCRIPT},{type:"small",style:M.TEXT},{type:"stack"}],Qe=[{type:"small",style:M.SCRIPTSCRIPT},{type:"small",style:M.SCRIPT},{type:"small",style:M.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],tr=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.")},er=function(t,e,r,n){for(var a=Math.min(2,3-n.style.size);ae)return r[a]}return r[r.length-1]},rr=function(t,e,r,n,a,o){"<"===t||"\\lt"===t||"\u27e8"===t?t="\\langle":">"!==t&&"\\gt"!==t&&"\u27e9"!==t||(t="\\rangle");var i=void 0;i=d.contains($e,t)?Ke:d.contains(We,t)?Qe:Je;var s=er(t,e,i,n);return"small"===s.type?function(t,e,r,n,a,o){var i=Vt.makeSymbol(t,"Main-Regular",a,n),s=Ve(i,e,n,o);return r&&Ge(s,n,e),s}(t,s.style,r,n,a,o):"large"===s.type?Ue(t,s.size,r,n,a,o):Ye(t,e,r,n,a,o)},nr=function(t,e){var r=e.havingBaseSizing(),n=er("\\surd",t*r.sizeMultiplier,Qe,r),a=r.sizeMultiplier,o=void 0,i=0,s=0,h=0,l=void 0;return"small"===n.type?(h=1080,t<1?a=1:t<1.4&&(a=.7),s=1/a,(o=_e("sqrtMain",i=1.08/a,h,e)).style.minWidth="0.853em",l=.833/a):"large"===n.type?(h=1080*Ze[n.size],s=Ze[n.size]/a,i=(Ze[n.size]+.08)/a,(o=_e("sqrtSize"+n.size,i,h,e)).style.minWidth="1.02em",l=1/a):(i=t+.08,s=t,h=Math.floor(1e3*t)+80,(o=_e("sqrtTall",i,h,e)).style.minWidth="0.742em",l=1.056),o.height=s,o.style.height=i+"em",{span:o,advanceWidth:l,ruleWidth:e.fontMetrics().sqrtRuleThickness*a}},ar=function(t,e,r,n,a){if("<"===t||"\\lt"===t||"\u27e8"===t?t="\\langle":">"!==t&&"\\gt"!==t&&"\u27e9"!==t||(t="\\rangle"),d.contains(We,t)||d.contains($e,t))return Ue(t,e,!1,r,n,a);if(d.contains(je,t))return Ye(t,Ze[e],!1,r,n,a);throw new h("Illegal delimiter: '"+t+"'")},or=rr,ir=function(t,e,r,n,a,o){var i=n.fontMetrics().axisHeight*n.sizeMultiplier,s=5/n.fontMetrics().ptPerEm,h=Math.max(e-i,r+i),l=Math.max(h/500*901,2*h-s);return rr(t,l,!0,n,a,o)},sr={"\\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}},hr=["(",")","[","\\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","."];function lr(t,e){var r=Yt(t);if(r&&d.contains(hr,r.text))return r;throw new h("Invalid delimiter: '"+(r?r.text:JSON.stringify(t))+"' after '"+e.funcName+"'",t)}function mr(t){if(!t.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}te({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=lr(e[0],t);return{type:"delimsizing",mode:t.parser.mode,size:sr[t.funcName].size,mclass:sr[t.funcName].mclass,delim:r.text}},htmlBuilder:function(t,e){return"."===t.delim?Vt.makeSpan([t.mclass]):ar(t.delim,t.size,e,t.mode,[t.mclass])},mathmlBuilder:function(t){var e=[];"."!==t.delim&&e.push(we(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}}),te({type:"leftright-right",names:["\\right"],props:{numArgs:1},handler:function(t,e){return{type:"leftright-right",mode:t.parser.mode,delim:lr(e[0],t).text}}}),te({type:"leftright",names:["\\left"],props:{numArgs:1},handler:function(t,e){var r=lr(e[0],t),n=t.parser;++n.leftrightDepth;var a=n.parseExpression(!1);--n.leftrightDepth,n.expect("\\right",!1);var o=n.parseFunction();if(!o)throw new h("failed to parse function after \\right");return{type:"leftright",mode:n.mode,body:a,left:r.text,right:Gt(o,"leftright-right").delim}},htmlBuilder:function(t,e){mr(t);for(var r=he(t.body,e,!0,[null,"mclose"]),n=0,a=0,o=!1,i=0;i0?3*p:7*p,f=e.fontMetrics().denom1):(c>0?(u=e.fontMetrics().num2,d=p):(u=e.fontMetrics().num3,d=3*p),f=e.fontMetrics().denom2);var g=void 0;if(m){var x=e.fontMetrics().axisHeight;u-i.depth-(x+.5*c)0&&(e="."===(e=t)?null:e),e};te({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],a=e[5],o=Ut(e[0],"ordgroup");o=Xt(o?o.body[0]:e[0],"open");var i=Sr(o.text),s=Ut(e[1],"ordgroup");s=Xt(s?s.body[0]:e[1],"close");var h=Sr(s.text),l=Gt(e[2],"size"),m=void 0,c=null;m=!!l.isBlank||(c=l.value).number>0;var p="auto",u=Ut(e[3],"ordgroup");if(u){if(u.body.length>0){var d=Gt(u.body[0],"textord");p=kr[Number(d.text)]}}else u=Gt(e[3],"textord"),p=kr[Number(u.text)];return{type:"genfrac",mode:r.mode,numer:n,denom:a,continued:!1,hasBarLine:m,barSize:c,leftDelim:i,rightDelim:h,size:p}},htmlBuilder:br,mathmlBuilder:wr}),te({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:Gt(e[0],"size").value,token:n}}}),te({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:function(t,e){var r=t.parser,n=(t.funcName,e[0]),a=u(Gt(e[1],"infix").size),o=e[2],i=a.number>0;return{type:"genfrac",mode:r.mode,numer:n,denom:o,continued:!1,hasBarLine:i,barSize:a,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:br,mathmlBuilder:wr});var Mr=function(t,e){var r=e.style,n=void 0,a=void 0,o=Ut(t,"supsub");o?(n=o.sup?ue(o.sup,e.havingStyle(r.sup()),e):ue(o.sub,e.havingStyle(r.sub()),e),a=Gt(o.base,"horizBrace")):a=Gt(t,"horizBrace");var i=ue(a.base,e.havingBaseStyle(M.DISPLAY)),s=Ie(a,e),h=void 0;if(a.isOver?(h=Vt.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:i},{type:"kern",size:.1},{type:"elem",elem:s}]},e)).children[0].children[0].children[1].classes.push("svg-align"):(h=Vt.makeVList({positionType:"bottom",positionData:i.depth+.1+s.height,children:[{type:"elem",elem:s},{type:"kern",size:.1},{type:"elem",elem:i}]},e)).children[0].children[0].children[0].classes.push("svg-align"),n){var l=Vt.makeSpan(["mord",a.isOver?"mover":"munder"],[h],e);h=a.isOver?Vt.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:l},{type:"kern",size:.2},{type:"elem",elem:n}]},e):Vt.makeVList({positionType:"bottom",positionData:l.depth+.2+n.height+n.depth,children:[{type:"elem",elem:n},{type:"kern",size:.2},{type:"elem",elem:l}]},e)}return Vt.makeSpan(["mord",a.isOver?"mover":"munder"],[h],e)};te({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:Mr,mathmlBuilder:function(t,e){var r=Oe(t.label);return new be.MathNode(t.isOver?"mover":"munder",[Te(t.base,e),r])}}),te({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:function(t,e){var r=t.parser,n=e[1],a=Gt(e[0],"url").url;return{type:"href",mode:r.mode,href:a,body:re(n)}},htmlBuilder:function(t,e){var r=he(t.body,e,!1);return Vt.makeAnchor(t.href,[],r,e)},mathmlBuilder:function(t,e){var r=ze(t.body,e);return function(t,e){if(t instanceof e)return t;var r=String(e.name||e),n=String(t.constructor.name||t);throw new Error("Expected "+r+" but got "+n+".")}(r,xe).setAttribute("href",t.href),r}}),te({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:function(t,e){for(var r=t.parser,n=Gt(e[0],"url").url,a=[],o=0;o0){var p=l.italic,u=Vt.staticSvg(c+"Size"+(h?"2":"1"),e);l=Vt.makeVList({positionType:"individualShift",children:[{type:"elem",elem:l,shift:0},{type:"elem",elem:u,shift:h?.08:0}]},e),o.name="\\"+c,l.classes.unshift("mop"),l.italic=p}}else if(o.body){var f=he(o.body,e,!0);1===f.length&&f[0]instanceof H?(l=f[0]).classes[0]="mop":l=Vt.makeSpan(["mop"],f,e)}else{for(var g=[],x=1;x0){for(var r=t.body.map(function(t){var e=t.text;return"string"==typeof e?{type:"textord",mode:t.mode,text:e}:t}),n=he(r,e.withFont("mathrm"),!0),a=0;ar.height+r.depth+o&&(o=(o+c-r.height-r.depth)/2);var p=h.height-r.height-o-l;r.style.paddingLeft=m+"em";var u=Vt.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:r,wrapperClasses:["svg-align"]},{type:"kern",size:-(r.height+p)},{type:"elem",elem:h},{type:"kern",size:l}]},e);if(t.index){var d=e.havingStyle(M.SCRIPTSCRIPT),f=ue(t.index,d,e),g=.6*(u.height-u.depth),x=Vt.makeVList({positionType:"shift",positionData:-g,children:[{type:"elem",elem:f}]},e),v=Vt.makeSpan(["root"],[x]);return Vt.makeSpan(["mord","sqrt"],[v,u],e)}return Vt.makeSpan(["mord","sqrt"],[u],e)},mathmlBuilder:function(t,e){var r=t.body,n=t.index;return n?new be.MathNode("mroot",[Te(r,e),Te(n,e)]):new be.MathNode("msqrt",[Te(r,e)])}});var Or={display:M.DISPLAY,text:M.TEXT,script:M.SCRIPT,scriptscript:M.SCRIPTSCRIPT};te({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0},handler:function(t,e){var r=t.breakOnTokenText,n=t.funcName,a=t.parser;a.consumeSpaces();var o=a.parseExpression(!0,r),i=n.slice(1,n.length-5);return{type:"styling",mode:a.mode,style:i,body:o}},htmlBuilder:function(t,e){var r=Or[t.style],n=e.havingStyle(r).withFont("");return Nr(t.body,n,e)},mathmlBuilder:function(t,e){var r={display:M.DISPLAY,text:M.TEXT,script:M.SCRIPT,scriptscript:M.SCRIPTSCRIPT}[t.style],n=e.havingStyle(r),a=Me(t.body,n),o=new be.MathNode("mstyle",a),i={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]}[t.style];return o.setAttribute("scriptlevel",i[0]),o.setAttribute("displaystyle",i[1]),o}});ee({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===M.DISPLAY.size||r.alwaysHandleSupSub)?Tr:null:"accent"===r.type?d.isCharacterBox(r.base)?Re:null:"horizBrace"===r.type&&!t.sub===r.isOver?Mr:null:null}(t,e);if(r)return r(t,e);var n=t.base,a=t.sup,o=t.sub,i=ue(n,e),s=void 0,h=void 0,l=e.fontMetrics(),m=0,c=0,p=n&&d.isCharacterBox(n);if(a){var u=e.havingStyle(e.style.sup());s=ue(a,u,e),p||(m=i.height-u.fontMetrics().supDrop*u.sizeMultiplier/e.sizeMultiplier)}if(o){var f=e.havingStyle(e.style.sub());h=ue(o,f,e),p||(c=i.depth+f.fontMetrics().subDrop*f.sizeMultiplier/e.sizeMultiplier)}var g=void 0;g=e.style===M.DISPLAY?l.sup1:e.style.cramped?l.sup3:l.sup2;var x=e.sizeMultiplier,v=.5/l.ptPerEm/x+"em",y=null;if(h){var b=t.base&&"op"===t.base.type&&t.base.name&&("\\oiint"===t.base.name||"\\oiiint"===t.base.name);(i instanceof H||b)&&(y=-i.italic+"em")}var w=void 0;if(s&&h){m=Math.max(m,g,s.depth+.25*l.xHeight),c=Math.max(c,l.sub2);var k=4*l.defaultRuleThickness;if(m-s.depth-(h.height-c)0&&(m+=S,c-=S)}var z=[{type:"elem",elem:h,shift:c,marginRight:v,marginLeft:y},{type:"elem",elem:s,shift:-m,marginRight:v}];w=Vt.makeVList({positionType:"individualShift",children:z},e)}else if(h){c=Math.max(c,l.sub1,h.height-.8*l.xHeight);var T=[{type:"elem",elem:h,marginLeft:y,marginRight:v}];w=Vt.makeVList({positionType:"shift",positionData:c,children:T},e)}else{if(!s)throw new Error("supsub must have either sup or sub.");m=Math.max(m,g,s.depth+.25*l.xHeight),w=Vt.makeVList({positionType:"shift",positionData:-m,children:[{type:"elem",elem:s,marginRight:v}]},e)}var A=me(i,"right")||"mord";return Vt.makeSpan([A],[i,Vt.makeSpan(["msupsub"],[w])],e)},mathmlBuilder:function(t,e){var r=!1,n=void 0,a=Ut(t.base,"horizBrace");a&&!!t.sup===a.isOver&&(r=!0,n=a.isOver);var o=[Te(t.base,e)];t.sub&&o.push(Te(t.sub,e)),t.sup&&o.push(Te(t.sup,e));var i=void 0;if(r)i=n?"mover":"munder";else if(t.sub)if(t.sup){var s=t.base;i=s&&"op"===s.type&&s.limits&&e.style===M.DISPLAY?"munderover":"msubsup"}else{var h=t.base;i=h&&"op"===h.type&&h.limits&&e.style===M.DISPLAY?"munder":"msub"}else{var l=t.base;i=l&&"op"===l.type&&l.limits&&e.style===M.DISPLAY?"mover":"msup"}return new be.MathNode(i,o)}}),ee({type:"atom",htmlBuilder:function(t,e){return Vt.mathsym(t.text,t.mode,e,["m"+t.family])},mathmlBuilder:function(t,e){var r=new be.MathNode("mo",[we(t.text,t.mode)]);if("bin"===t.family){var n=Se(t,e);"bold-italic"===n&&r.setAttribute("mathvariant",n)}else"punct"===t.family&&r.setAttribute("separator","true");return r}});var Ir={mi:"italic",mn:"normal",mtext:"normal"};ee({type:"mathord",htmlBuilder:function(t,e){return Vt.makeOrd(t,e,"mathord")},mathmlBuilder:function(t,e){var r=new be.MathNode("mi",[we(t.text,t.mode,e)]),n=Se(t,e)||"italic";return n!==Ir[r.type]&&r.setAttribute("mathvariant",n),r}}),ee({type:"textord",htmlBuilder:function(t,e){return Vt.makeOrd(t,e,"textord")},mathmlBuilder:function(t,e){var r=we(t.text,t.mode,e),n=Se(t,e)||"normal",a=void 0;return a="text"===t.mode?new be.MathNode("mtext",[r]):/[0-9]/.test(t.text)?new be.MathNode("mn",[r]):"\\prime"===t.text?new be.MathNode("mo",[r]):new be.MathNode("mi",[r]),n!==Ir[a.type]&&a.setAttribute("mathvariant",n),a}}),ee({type:"spacing",htmlBuilder:function(t,e){if(Vt.regularSpace.hasOwnProperty(t.text)){var r=Vt.regularSpace[t.text].className||"";if("text"===t.mode){var n=Vt.makeOrd(t,e,"textord");return n.classes.push(r),n}return Vt.makeSpan(["mspace",r],[Vt.mathsym(t.text,t.mode,e)],e)}if(Vt.cssSpace.hasOwnProperty(t.text))return Vt.makeSpan(["mspace",Vt.cssSpace[t.text]],[],e);throw new h('Unknown type of space "'+t.text+'"')},mathmlBuilder:function(t,e){if(!Vt.regularSpace.hasOwnProperty(t.text)){if(Vt.cssSpace.hasOwnProperty(t.text))return new be.MathNode("mspace");throw new h('Unknown type of space "'+t.text+'"')}return new be.MathNode("mtext",[new be.TextNode("\xa0")])}}),ee({type:"tag",mathmlBuilder:function(t,e){var r=new be.MathNode("mtable",[new be.MathNode("mlabeledtr",[new be.MathNode("mtd",[ze(t.tag,e)]),new be.MathNode("mtd",[ze(t.body,e)])])]);return r.setAttribute("side","right"),r}});var Rr={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},Lr={"\\textbf":"textbf"},Hr={"\\textit":"textit"},Dr=function(t,e){var r=t.font;return r?Rr[r]?e.withTextFontFamily(Rr[r]):Lr[r]?e.withTextFontWeight(Lr[r]):e.withTextFontShape(Hr[r]):e};te({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textit"],props:{numArgs:1,argTypes:["text"],greediness:2,allowedInText:!0,consumeMode:"text"},handler:function(t,e){var r=t.parser,n=t.funcName,a=e[0];return{type:"text",mode:r.mode,body:re(a),font:n}},htmlBuilder:function(t,e){var r=Dr(t,e),n=he(t.body,r,!0);return Vt.tryCombineChars(n),Vt.makeSpan(["mord","text"],n,r)},mathmlBuilder:function(t,e){var r=Dr(t,e);return ze(t.body,r)}}),te({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=ue(t.body,e),n=Vt.makeLineSpan("underline-line",e),a=Vt.makeVList({positionType:"top",positionData:r.height,children:[{type:"kern",size:n.height},{type:"elem",elem:n},{type:"kern",size:3*n.height},{type:"elem",elem:r}]},e);return Vt.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",[Te(t.body,e),r]);return n.setAttribute("accentunder","true"),n}}),te({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler:function(t,e,r){throw new h("\\verb ended by end of line instead of matching delimiter")},htmlBuilder:function(t,e){for(var r=Vt.makeVerb(t,e),n=[],a=e.havingStyle(e.style.text()),o=0;o0&&(v+=.25),l.push({pos:v,isDashed:t[e]})}for(y(o[0]),r=0;r0&&(k<(T+=x)&&(k=T),T=0),t.addJot&&(k+=u),S.height=w,S.depth=k,v+=w,S.pos=v,v+=k+T,s[r]=S,y(o[r+1])}var A=v/2+e.fontMetrics().axisHeight,B=t.cols||[],C=[],N=void 0,q=void 0;for(n=0,q=0;n=i)){var L=void 0;(n>0||t.hskipBeforeAndAfter)&&0!==(L=d.deflt(E.pregap,c))&&((N=Vt.makeSpan(["arraycolsep"],[])).style.width=L+"em",C.push(N));var H=[];for(r=0;r0){for(var V=Vt.makeLineSpan("hline",e,.05),G=Vt.makeLineSpan("hdashline",e,.05),U=[{type:"elem",elem:s,shift:0}];l.length>0;){var X=l.pop(),Y=X.pos-A;X.isDashed?U.push({type:"elem",elem:G,shift:Y}):U.push({type:"elem",elem:V,shift:Y})}s=Vt.makeVList({positionType:"individualShift",children:U},e)}return Vt.makeSpan(["mord"],[s],e)},_r=function(t,e){return new be.MathNode("mtable",t.body.map(function(t){return new be.MathNode("mtr",t.map(function(t){return new be.MathNode("mtd",[Te(t,e)])}))}))},Wr=function(t,e){var r=[],n=Ur(t.parser,{cols:r,addJot:!0},"display"),a=void 0,o=0,i={type:"ordgroup",mode:t.mode,body:[]},s=Ut(e[0],"ordgroup");if(s){for(var l="",m=0;m0&&c&&(d=1),r[p]={type:"align",align:u,pregap:d,postgap:0}}return n};Vr({type:"array",names:["array","darray"],props:{numArgs:1},handler:function(t,e){var r={cols:(Yt(e[0])?[e[0]]:Gt(e[0],"ordgroup").body).map(function(t){var e=function(t){var e=Yt(t);if(!e)throw new Error("Expected node of symbol group type, but got "+(t?"node of type "+t.type:String(t)));return e}(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 h("Unknown column alignment: "+e,t)}),hskipBeforeAndAfter:!0};return Ur(t.parser,r,Xr(t.envName))},htmlBuilder:Yr,mathmlBuilder:_r}),Vr({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=Ur(t.parser,{hskipBeforeAndAfter:!1},Xr(t.envName));return e?{type:"leftright",mode:t.mode,body:[r],left:e[0],right:e[1]}:r},htmlBuilder:Yr,mathmlBuilder:_r}),Vr({type:"array",names:["cases","dcases"],props:{numArgs:0},handler:function(t){var e=Ur(t.parser,{arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},Xr(t.envName));return{type:"leftright",mode:t.mode,body:[e],left:"\\{",right:"."}},htmlBuilder:Yr,mathmlBuilder:_r}),Vr({type:"array",names:["aligned"],props:{numArgs:0},handler:Wr,htmlBuilder:Yr,mathmlBuilder:_r}),Vr({type:"array",names:["gathered"],props:{numArgs:0},handler:function(t){return Ur(t.parser,{cols:[{type:"align",align:"c"}],addJot:!0},"display")},htmlBuilder:Yr,mathmlBuilder:_r}),Vr({type:"array",names:["alignedat"],props:{numArgs:1},handler:Wr,htmlBuilder:Yr,mathmlBuilder:_r}),te({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler:function(t,e){throw new h(t.funcName+" valid only within array environment")}});var jr=Fr,$r=new RegExp("^(\\\\[a-zA-Z@]+)[ \r\n\t]*$"),Zr=new RegExp("[\u0300-\u036f]+$"),Kr="(\\\\href|\\\\url)(?:[ \r\n\t]*\\{((?:[^{}\\\\]|\\\\[^]|{[^{}]*})*)\\}|[ \r\n\t]+([^{}])|[ \r\n\t]*([^{}a-zA-Z]))",Jr="([ \r\n\t]+)|(%[^\n]*(?:\n|$)|[!-\\[\\]-\u2027\u202a-\ud7ff\uf900-\uffff][\u0300-\u036f]*|[\ud800-\udbff][\udc00-\udfff][\u0300-\u036f]*|\\\\verb\\*([^]).*?\\3|\\\\verb([^*a-zA-Z]).*?\\4|"+Kr+"|\\\\[a-zA-Z@]+[ \r\n\t]*|\\\\[^\ud800-\udfff])",Qr=(new RegExp("^\\\\[a-zA-Z@]+"),new RegExp("^"+Kr)),tn=function(){function t(e,r){a()(this,t),this.input=e,this.settings=r,this.tokenRegex=new RegExp(Jr,"g")}return t.prototype.lex=function(){var t=this.input,e=this.tokenRegex.lastIndex;if(e===t.length)return new i("EOF",new o(this,e,e));var r=this.tokenRegex.exec(t);if(null===r||r.index!==e)throw new h("Unexpected character: '"+t[e]+"'",new i(t[e],new o(this,e,e+1)));var n=r[2]||" ",a=n.match($r);return a&&(n=a[1]+n.slice(a[0].length)),"%"===n[0]?("\n"!==n[n.length-1]&&this.settings.reportNonstrict("commentAtEnd","% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)"),this.lex()):new i(n,new o(this,e,this.tokenRegex.lastIndex))},t}(),en=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};a()(this,t),this.current=r,this.builtins=e,this.undefStack=[]}return t.prototype.beginGroup=function(){this.undefStack.push({})},t.prototype.endGroup=function(){if(0===this.undefStack.length)throw new h("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var t=this.undefStack.pop();for(var e in t)t.hasOwnProperty(e)&&(void 0===t[e]?delete this.current[e]:this.current[e]=t[e])},t.prototype.has=function(t){return this.current.hasOwnProperty(t)||this.builtins.hasOwnProperty(t)},t.prototype.get=function(t){return this.current.hasOwnProperty(t)?this.current[t]:this.builtins[t]},t.prototype.set=function(t,e){if(arguments.length>2&&void 0!==arguments[2]&&arguments[2]){for(var r=0;r0&&(this.undefStack[this.undefStack.length-1][t]=e)}else{var n=this.undefStack[this.undefStack.length-1];n&&!n.hasOwnProperty(t)&&(n[t]=this.current[t])}this.current[t]=e},t}(),rn={},nn=rn;function an(t,e){rn[t]=e}an("\\@firstoftwo",function(t){return{tokens:t.consumeArgs(2)[0],numArgs:0}}),an("\\@secondoftwo",function(t){return{tokens:t.consumeArgs(2)[1],numArgs:0}}),an("\\@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}}),an("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}"),an("\\TextOrMath",function(t){var e=t.consumeArgs(2);return"text"===t.mode?{tokens:e[0],numArgs:0}:{tokens:e[1],numArgs:0}});var on={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};an("\\char",function(t){var e=t.popToken(),r=void 0,n="";if("'"===e.text)r=8,e=t.popToken();else if('"'===e.text)r=16,e=t.popToken();else if("`"===e.text)if("\\"===(e=t.popToken()).text[0])n=e.text.charCodeAt(1);else{if("EOF"===e.text)throw new h("\\char` missing argument");n=e.text.charCodeAt(0)}else r=10;if(r){if(null==(n=on[e.text])||n>=r)throw new h("Invalid base-"+r+" digit "+e.text);for(var a=void 0;null!=(a=on[t.future().text])&&a":"\\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"};an("\\dots",function(t){var e="\\dotso",r=t.expandAfterFuture().text;return r in ln?e=ln[r]:"\\not"===r.substr(0,4)?e="\\dotsb":r in $.math&&d.contains(["bin","rel"],$.math[r].group)&&(e="\\dotsb"),e});var mn={")":!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};an("\\dotso",function(t){return t.future().text in mn?"\\ldots\\,":"\\ldots"}),an("\\dotsc",function(t){var e=t.future().text;return e in mn&&","!==e?"\\ldots\\,":"\\ldots"}),an("\\cdots",function(t){return t.future().text in mn?"\\@cdots\\,":"\\@cdots"}),an("\\dotsb","\\cdots"),an("\\dotsm","\\cdots"),an("\\dotsi","\\!\\cdots"),an("\\dotsx","\\ldots\\,"),an("\\DOTSI","\\relax"),an("\\DOTSB","\\relax"),an("\\DOTSX","\\relax"),an("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax"),an("\\,","\\tmspace+{3mu}{.1667em}"),an("\\thinspace","\\,"),an("\\:","\\tmspace+{4mu}{.2222em}"),an("\\medspace","\\:"),an("\\;","\\tmspace+{5mu}{.2777em}"),an("\\thickspace","\\;"),an("\\!","\\tmspace-{3mu}{.1667em}"),an("\\negthinspace","\\!"),an("\\negmedspace","\\tmspace-{4mu}{.2222em}"),an("\\negthickspace","\\tmspace-{5mu}{.277em}"),an("\\enspace","\\kern.5em "),an("\\enskip","\\hskip.5em\\relax"),an("\\quad","\\hskip1em\\relax"),an("\\qquad","\\hskip2em\\relax"),an("\\tag","\\@ifstar\\tag@literal\\tag@paren"),an("\\tag@paren","\\tag@literal{({#1})}"),an("\\tag@literal",function(t){if(t.macros.get("\\df@tag"))throw new h("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"}),an("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}"),an("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)"),an("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}"),an("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1"),an("\\pmb","\\html@mathml{\\@binrel{#1}{\\mathrlap{#1}\\mathrlap{\\mkern0.4mu\\raisebox{0.4mu}{$#1$}}{\\mkern0.8mu#1}}}{\\mathbf{#1}}"),an("\\\\","\\newline"),an("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var cn=V["Main-Regular"]["T".charCodeAt(0)][1]-.7*V["Main-Regular"]["A".charCodeAt(0)][1]+"em";an("\\LaTeX","\\textrm{\\html@mathml{L\\kern-.36em\\raisebox{"+cn+"}{\\scriptsize A}\\kern-.15em\\TeX}{LaTeX}}"),an("\\KaTeX","\\textrm{\\html@mathml{K\\kern-.17em\\raisebox{"+cn+"}{\\scriptsize A}\\kern-.15em\\TeX}{KaTeX}}"),an("\\hspace","\\@ifstar\\@hspacer\\@hspace"),an("\\@hspace","\\hskip #1\\relax"),an("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax"),an("\\ordinarycolon",":"),an("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}"),an("\\dblcolon","\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}"),an("\\coloneqq","\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}"),an("\\Coloneqq","\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}"),an("\\coloneq","\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}"),an("\\Coloneq","\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}"),an("\\eqqcolon","\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),an("\\Eqqcolon","\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}"),an("\\eqcolon","\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),an("\\Eqcolon","\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}"),an("\\colonapprox","\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}"),an("\\Colonapprox","\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}"),an("\\colonsim","\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}"),an("\\Colonsim","\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}"),an("\u2254","\\coloneqq"),an("\u2255","\\eqqcolon"),an("\u2a74","\\Coloneqq"),an("\\ratio","\\vcentcolon"),an("\\coloncolon","\\dblcolon"),an("\\colonequals","\\coloneqq"),an("\\coloncolonequals","\\Coloneqq"),an("\\equalscolon","\\eqqcolon"),an("\\equalscoloncolon","\\Eqqcolon"),an("\\colonminus","\\coloneq"),an("\\coloncolonminus","\\Coloneq"),an("\\minuscolon","\\eqcolon"),an("\\minuscoloncolon","\\Eqcolon"),an("\\coloncolonapprox","\\Colonapprox"),an("\\coloncolonsim","\\Colonsim"),an("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),an("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}"),an("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),an("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}"),an("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`\u220c}}"),an("\\limsup","\\DOTSB\\mathop{\\operatorname{lim\\,sup}}\\limits"),an("\\liminf","\\DOTSB\\mathop{\\operatorname{lim\\,inf}}\\limits"),an("\\darr","\\downarrow"),an("\\dArr","\\Downarrow"),an("\\Darr","\\Downarrow"),an("\\lang","\\langle"),an("\\rang","\\rangle"),an("\\uarr","\\uparrow"),an("\\uArr","\\Uparrow"),an("\\Uarr","\\Uparrow"),an("\\N","\\mathbb{N}"),an("\\R","\\mathbb{R}"),an("\\Z","\\mathbb{Z}"),an("\\alef","\\aleph"),an("\\alefsym","\\aleph"),an("\\Alpha","\\mathrm{A}"),an("\\Beta","\\mathrm{B}"),an("\\bull","\\bullet"),an("\\Chi","\\mathrm{X}"),an("\\clubs","\\clubsuit"),an("\\cnums","\\mathbb{C}"),an("\\Complex","\\mathbb{C}"),an("\\Dagger","\\ddagger"),an("\\diamonds","\\diamondsuit"),an("\\empty","\\emptyset"),an("\\Epsilon","\\mathrm{E}"),an("\\Eta","\\mathrm{H}"),an("\\exist","\\exists"),an("\\harr","\\leftrightarrow"),an("\\hArr","\\Leftrightarrow"),an("\\Harr","\\Leftrightarrow"),an("\\hearts","\\heartsuit"),an("\\image","\\Im"),an("\\infin","\\infty"),an("\\Iota","\\mathrm{I}"),an("\\isin","\\in"),an("\\Kappa","\\mathrm{K}"),an("\\larr","\\leftarrow"),an("\\lArr","\\Leftarrow"),an("\\Larr","\\Leftarrow"),an("\\lrarr","\\leftrightarrow"),an("\\lrArr","\\Leftrightarrow"),an("\\Lrarr","\\Leftrightarrow"),an("\\Mu","\\mathrm{M}"),an("\\natnums","\\mathbb{N}"),an("\\Nu","\\mathrm{N}"),an("\\Omicron","\\mathrm{O}"),an("\\plusmn","\\pm"),an("\\rarr","\\rightarrow"),an("\\rArr","\\Rightarrow"),an("\\Rarr","\\Rightarrow"),an("\\real","\\Re"),an("\\reals","\\mathbb{R}"),an("\\Reals","\\mathbb{R}"),an("\\Rho","\\mathrm{R}"),an("\\sdot","\\cdot"),an("\\sect","\\S"),an("\\spades","\\spadesuit"),an("\\sub","\\subset"),an("\\sube","\\subseteq"),an("\\supe","\\supseteq"),an("\\Tau","\\mathrm{T}"),an("\\thetasym","\\vartheta"),an("\\weierp","\\wp"),an("\\Zeta","\\mathrm{Z}");var pn={"\\relax":!0,"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0},un=function(){function t(e,r,n){a()(this,t),this.settings=r,this.expansionCount=0,this.feed(e),this.macros=new en(nn,r.macros),this.mode=n,this.stack=[]}return t.prototype.feed=function(t){this.lexer=new tn(t,this.settings)},t.prototype.switchMode=function(t){this.mode=t},t.prototype.beginGroup=function(){this.macros.beginGroup()},t.prototype.endGroup=function(){this.macros.endGroup()},t.prototype.future=function(){return 0===this.stack.length&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]},t.prototype.popToken=function(){return this.future(),this.stack.pop()},t.prototype.pushToken=function(t){this.stack.push(t)},t.prototype.pushTokens=function(t){var e;(e=this.stack).push.apply(e,t)},t.prototype.consumeSpaces=function(){for(;;){if(" "!==this.future().text)break;this.stack.pop()}},t.prototype.consumeArgs=function(t){for(var e=[],r=0;rthis.settings.maxExpand)throw new h("Too many expansions: infinite loop or need to increase maxExpand setting");var n=r.tokens;if(r.numArgs)for(var a=this.consumeArgs(r.numArgs),o=(n=n.slice()).length-1;o>=0;--o){var i=n[o];if("#"===i.text){if(0===o)throw new h("Incomplete placeholder at end of macro body",i);if("#"===(i=n[--o]).text)n.splice(o+1,1);else{if(!/^[1-9]$/.test(i.text))throw new h("Not a valid argument number",i);var s;(s=n).splice.apply(s,[o,2].concat(a[+i.text-1]))}}}return this.pushTokens(n),n},t.prototype.expandAfterFuture=function(){return this.expandOnce(),this.future()},t.prototype.expandNextToken=function(){for(;;){var t=this.expandOnce();if(t instanceof i){if("\\relax"!==t.text)return this.stack.pop();this.stack.pop()}}throw new Error},t.prototype.expandMacro=function(t){if(this.macros.get(t)){var e=[],r=this.stack.length;for(this.pushToken(new i(t));this.stack.length>r;){this.expandOnce()instanceof i&&e.push(this.stack.pop())}return e}},t.prototype.expandMacroAsText=function(t){var e=this.expandMacro(t);return e?e.map(function(t){return t.text}).join(""):e},t.prototype._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 a=r.replace(/##/g,"");-1!==a.indexOf("#"+(n+1));)++n;for(var o=new tn(r,this.settings),i=[],s=o.lex();"EOF"!==s.text;)i.push(s),s=o.lex();return i.reverse(),{tokens:i,numArgs:n}}return r},t.prototype.isDefined=function(t){return this.macros.has(t)||Pr.hasOwnProperty(t)||$.math.hasOwnProperty(t)||$.text.hasOwnProperty(t)||pn.hasOwnProperty(t)},t}(),dn={"\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"}},fn={"\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"};function gn(t,e){return{type:"arg",result:t,token:e}}var xn=function(){function t(e,r){a()(this,t),this.mode="math",this.gullet=new un(e,r,this.mode),this.settings=r,this.leftrightDepth=0}return t.prototype.expect=function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(this.nextToken.text!==t)throw new h("Expected '"+t+"', got '"+this.nextToken.text+"'",this.nextToken);e&&this.consume()},t.prototype.consume=function(){this.nextToken=this.gullet.expandNextToken()},t.prototype.switchMode=function(t){this.mode=t,this.gullet.switchMode(t)},t.prototype.parse=function(){this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor"),this.consume();var t=this.parseExpression(!1);return this.expect("EOF",!1),this.gullet.endGroup(),t},t.prototype.parseExpression=function(e,r){for(var n=[];;){"math"===this.mode&&this.consumeSpaces();var a=this.nextToken;if(-1!==t.endOfExpression.indexOf(a.text))break;if(r&&a.text===r)break;if(e&&Pr[a.text]&&Pr[a.text].infix)break;var o=this.parseAtom(r);if(!o){if(!this.settings.throwOnError&&"\\"===a.text[0]){var i=this.handleUnsupportedCmd();n.push(i);continue}break}n.push(o)}return"text"===this.mode&&this.formLigatures(n),this.handleInfixNodes(n)},t.prototype.handleInfixNodes=function(t){for(var e=-1,r=void 0,n=0;nt.SUPSUB_GREEDINESS)return this.parseGivenFunction(a);throw new h("Got function '"+a.result+"' with no arguments as "+e,r)}return a.result},t.prototype.handleUnsupportedCmd=function(){for(var t=this.nextToken.text,e=[],r=0;r0&&!l&&this.consumeSpaces(),0!==i||l||"math"!==this.mode||this.consumeSpaces();var m=this.nextToken,c=s?this.parseGroupOfType(s,l):this.parseGroup(l);if(!c){if(l){o.push(null);continue}if(this.settings.throwOnError||"\\"!==this.nextToken.text[0])throw new h("Expected group after '"+t+"'",m);c=gn(this.handleUnsupportedCmd(),m)}var p=void 0;if("fn"===c.type){if(!(Pr[c.result].greediness>n))throw new h("Got function '"+c.result+"' as argument to '"+t+"'",m);p=this.parseGivenFunction(c)}else p=c.result;(l?o:a).push(p)}return{args:a,optArgs:o}},t.prototype.parseGroupOfType=function(t,e){if("original"===t&&(t=this.mode),"color"===t)return this.parseColorGroup(e);if("size"===t)return this.parseSizeGroup(e);if("url"===t)throw new h("Internal bug: 'url' arguments should be handled by Lexer",this.nextToken);return this.parseGroup(e,t)},t.prototype.consumeSpaces=function(){for(;" "===this.nextToken.text;)this.consume()},t.prototype.parseStringGroup=function(t,e){if(e&&"["!==this.nextToken.text)return null;var r=this.mode;this.mode="text",this.expect(e?"[":"{");for(var n="",a=this.nextToken,o=a;this.nextToken.text!==(e?"]":"}");){if("EOF"===this.nextToken.text)throw new h("Unexpected end of input in "+t,a.range(this.nextToken,n));n+=(o=this.nextToken).text,this.consume()}return this.mode=r,this.expect(e?"]":"}"),a.range(o,n)},t.prototype.parseRegexGroup=function(t,e){var r=this.mode;this.mode="text";for(var n=this.nextToken,a=n,o="";"EOF"!==this.nextToken.text&&t.test(o+this.nextToken.text);)o+=(a=this.nextToken).text,this.consume();if(""===o)throw new h("Invalid "+e+": '"+n.text+"'",n);return this.mode=r,n.range(a,o)},t.prototype.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 h("Invalid color: '"+e.text+"'",e);return gn({type:"color-token",mode:this.mode,color:r[0]},e)},t.prototype.parseSizeGroup=function(t){var e=void 0,r=!1;if(!(e=t||"{"===this.nextToken.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 h("Invalid size: '"+e.text+"'",e);var a={number:+(n[1]+n[2]),unit:n[3]};if(!function(t){return"string"!=typeof t&&(t=t.unit),t in Tt||t in At||"ex"===t}(a))throw new h("Invalid unit: '"+a.unit+"'",e);return gn({type:"size",mode:this.mode,value:a,isBlank:r},e)},t.prototype.parseGroup=function(t,e){var r=this.mode,n=this.nextToken;if(this.nextToken.text===(t?"[":"{")){e&&this.switchMode(e),this.gullet.beginGroup(),this.consume();var a=this.parseExpression(!1,t?"]":"}"),i=this.nextToken;return e&&this.switchMode(r),this.gullet.endGroup(),this.expect(t?"]":"}"),gn({type:"ordgroup",mode:this.mode,loc:o.range(n,i),body:a},n.range(i,n.text))}e&&this.switchMode(e);var s=t?null:this.parseSymbol();return e&&this.switchMode(r),s},t.prototype.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 g=$[this.mode][e].group,x=o.range(t),v=void 0;if(_.hasOwnProperty(g)){var y=g;v={type:"atom",mode:this.mode,family:y,loc:x,text:e}}else v={type:g,mode:this.mode,loc:x,text:e};f=v}else{if(!(e.charCodeAt(0)>=128))return null;this.settings.strict&&(A(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)),f={type:"textord",mode:this.mode,loc:o.range(t),text:e}}if(this.consume(),u)for(var b=0;b