import{bq as Ql}from"./index-2efe4620.js";var $u={exports:{}},El;function Zo(){return El||(El=1,function(i,l){(function(x,w){i.exports=w()})(typeof self<"u"?self:Ql,function(){return function(){var h={};(function(){h.d=function(d,r){for(var t in r)h.o(r,t)&&!h.o(d,t)&&Object.defineProperty(d,t,{enumerable:!0,get:r[t]})}})(),function(){h.o=function(d,r){return Object.prototype.hasOwnProperty.call(d,r)}}();var x={};h.d(x,{default:function(){return Lu}});var w=function d(r,t){this.name=void 0,this.position=void 0,this.length=void 0,this.rawMessage=void 0;var n="KaTeX parse error: "+r,u,s,m=t&&t.loc;if(m&&m.start<=m.end){var b=m.lexer.input;u=m.start,s=m.end,u===b.length?n+=" at end of input: ":n+=" at position "+(u+1)+": ";var C=b.slice(u,s).replace(/[^]/g,"$&̲"),E;u>15?E="…"+b.slice(u-15,u):E=b.slice(0,u);var F;s+15":">","<":"<",'"':""","'":"'"},X=/[&><"']/g;function re(d){return String(d).replace(X,function(r){return O[r]})}var W=function d(r){return r.type==="ordgroup"||r.type==="color"?r.body.length===1?d(r.body[0]):r:r.type==="font"?d(r.body):r},Se=function(r){var t=W(r);return t.type==="mathord"||t.type==="textord"||t.type==="atom"},ye=function(r){if(!r)throw new Error("Expected non-null, but got "+String(r));return r},_e=function(r){var t=/^\s*([^\\/#]*?)(?::|�*58|�*3a)/i.exec(r);return t!=null?t[1]:"_relative"},K={contains:M,deflt:T,escape:re,hyphenate:L,getBaseElem:W,isCharacterBox:Se,protocolFromUrl:_e},Ae={displayMode:{type:"boolean",description:"Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.",cli:"-d, --display-mode"},output:{type:{enum:["htmlAndMathml","html","mathml"]},description:"Determines the markup language of the output.",cli:"-F, --format "},leqno:{type:"boolean",description:"Render display math in leqno style (left-justified tags)."},fleqn:{type:"boolean",description:"Render display math flush left."},throwOnError:{type:"boolean",default:!0,cli:"-t, --no-throw-on-error",cliDescription:"Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error."},errorColor:{type:"string",default:"#cc0000",cli:"-c, --error-color ",cliDescription:"A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.",cliProcessor:function(r){return"#"+r}},macros:{type:"object",cli:"-m, --macro ",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:function(r,t){return t.push(r),t}},minRuleThickness:{type:"number",description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:function(r){return Math.max(0,r)},cli:"--min-rule-thickness ",cliProcessor:parseFloat},colorIsTextColor:{type:"boolean",description:"Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.",cli:"-b, --color-is-text-color"},strict:{type:[{enum:["warn","ignore","error"]},"boolean","function"],description:"Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.",cli:"-S, --strict",cliDefault:!1},trust:{type:["boolean","function"],description:"Trust the input, enabling all HTML features such as \\url.",cli:"-T, --trust"},maxSize:{type:"number",default:1/0,description:"If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large",processor:function(r){return Math.max(0,r)},cli:"-s, --max-size ",cliProcessor:parseInt},maxExpand:{type:"number",default:1e3,description:"Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.",processor:function(r){return Math.max(0,r)},cli:"-e, --max-expand ",cliProcessor:function(r){return r==="Infinity"?1/0:parseInt(r)}},globalGroup:{type:"boolean",cli:!1}};function Re(d){if(d.default)return d.default;var r=d.type,t=Array.isArray(r)?r[0]:r;if(typeof t!="string")return t.enum[0];switch(t){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{}}}var Ge=function(){function d(t){this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,t=t||{};for(var n in Ae)if(Ae.hasOwnProperty(n)){var u=Ae[n];this[n]=t[n]!==void 0?u.processor?u.processor(t[n]):t[n]:Re(u)}}var r=d.prototype;return r.reportNonstrict=function(n,u,s){var m=this.strict;if(typeof m=="function"&&(m=m(n,u,s)),!(!m||m==="ignore")){if(m===!0||m==="error")throw new k("LaTeX-incompatible input and strict mode is set to 'error': "+(u+" ["+n+"]"),s);m==="warn"?typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(u+" ["+n+"]")):typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+m+"': "+u+" ["+n+"]"))}},r.useStrictBehavior=function(n,u,s){var m=this.strict;if(typeof m=="function")try{m=m(n,u,s)}catch{m="error"}return!m||m==="ignore"?!1:m===!0||m==="error"?!0:m==="warn"?(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(u+" ["+n+"]")),!1):(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+m+"': "+u+" ["+n+"]")),!1)},r.isTrusted=function(n){n.url&&!n.protocol&&(n.protocol=K.protocolFromUrl(n.url));var u=typeof this.trust=="function"?this.trust(n):this.trust;return!!u},d}(),Oe=function(){function d(t,n,u){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=t,this.size=n,this.cramped=u}var r=d.prototype;return r.sup=function(){return P[ce[this.id]]},r.sub=function(){return P[ee[this.id]]},r.fracNum=function(){return P[be[this.id]]},r.fracDen=function(){return P[ke[this.id]]},r.cramp=function(){return P[Te[this.id]]},r.text=function(){return P[De[this.id]]},r.isTight=function(){return this.size>=2},d}(),ir=0,ar=1,ur=2,or=3,Br=4,sr=5,qr=6,G=7,P=[new Oe(ir,0,!1),new Oe(ar,0,!0),new Oe(ur,1,!1),new Oe(or,1,!0),new Oe(Br,2,!1),new Oe(sr,2,!0),new Oe(qr,3,!1),new Oe(G,3,!0)],ce=[Br,sr,Br,sr,qr,G,qr,G],ee=[sr,sr,sr,sr,G,G,G,G],be=[ur,or,Br,sr,qr,G,qr,G],ke=[or,or,sr,sr,G,G,G,G],Te=[ar,ar,or,or,sr,sr,G,G],De=[ir,ar,ur,or,ur,or,ur,or],ue={DISPLAY:P[ir],TEXT:P[ur],SCRIPT:P[Br],SCRIPTSCRIPT:P[qr]},Le=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"armenian",blocks:[[1328,1423]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}];function Mr(d){for(var r=0;r=u[0]&&d<=u[1])return t.name}return null}var $e=[];Le.forEach(function(d){return d.blocks.forEach(function(r){return $e.push.apply($e,r)})});function mr(d){for(var r=0;r<$e.length;r+=2)if(d>=$e[r]&&d<=$e[r+1])return!0;return!1}var We=80,wr=function(r,t){return"M95,"+(622+r+t)+` c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14 c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54 c44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10 s173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429 c69,-144,104.5,-217.7,106.5,-221 l`+r/2.075+" -"+r+` c5.3,-9.3,12,-14,20,-14 H400000v`+(40+r)+`H845.2724 s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7 c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z M`+(834+r)+" "+t+"h400000v"+(40+r)+"h-400000z"},Ir=function(r,t){return"M263,"+(601+r+t)+`c0.7,0,18,39.7,52,119 c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120 c340,-704.7,510.7,-1060.3,512,-1067 l`+r/2.084+" -"+r+` c4.7,-7.3,11,-11,19,-11 H40000v`+(40+r)+`H1012.3 s-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232 c-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1 s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26 c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z M`+(1001+r)+" "+t+"h400000v"+(40+r)+"h-400000z"},G0=function(r,t){return"M983 "+(10+r+t)+` l`+r/3.13+" -"+r+` c4,-6.7,10,-10,18,-10 H400000v`+(40+r)+` H1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7 s-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744 c-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30 c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722 c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5 c53.7,-170.3,84.5,-266.8,92.5,-289.5z M`+(1001+r)+" "+t+"h400000v"+(40+r)+"h-400000z"},Ua=function(r,t){return"M424,"+(2398+r+t)+` c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514 c0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20 s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121 s209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081 l`+r/4.223+" -"+r+`c4,-6.7,10,-10,18,-10 H400000 v`+(40+r)+`H1014.6 s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185 c-2,6,-10,9,-24,9 c-8,0,-12,-0.7,-12,-2z M`+(1001+r)+" "+t+` h400000v`+(40+r)+"h-400000z"},vr=function(r,t){return"M473,"+(2713+r+t)+` c339.3,-1799.3,509.3,-2700,510,-2702 l`+r/5.298+" -"+r+` c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+r)+`H1017.7 s-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9 c-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200 c0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26 s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104, 606zM`+(1001+r)+" "+t+"h400000v"+(40+r)+"H1017.7z"},pe=function(r){var t=r/2;return"M400000 "+r+" H0 L"+t+" 0 l65 45 L145 "+(r-80)+" H400000z"},Jn=function(r,t,n){var u=n-54-t-r;return"M702 "+(r+t)+"H400000"+(40+r)+` H742v`+u+`l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1 h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170 c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667 219 661 l218 661zM702 `+t+"H400000v"+(40+r)+"H742z"},g0=function(r,t,n){t=1e3*t;var u="";switch(r){case"sqrtMain":u=wr(t,We);break;case"sqrtSize1":u=Ir(t,We);break;case"sqrtSize2":u=G0(t,We);break;case"sqrtSize3":u=Ua(t,We);break;case"sqrtSize4":u=vr(t,We);break;case"sqrtTall":u=Jn(t,We,n)}return u},nn=function(r,t){switch(r){case"⎜":return"M291 0 H417 V"+t+" H291z M291 0 H417 V"+t+" H291z";case"∣":return"M145 0 H188 V"+t+" H145z M145 0 H188 V"+t+" H145z";case"∥":return"M145 0 H188 V"+t+" H145z M145 0 H188 V"+t+" H145z"+("M367 0 H410 V"+t+" H367z M367 0 H410 V"+t+" H367z");case"⎟":return"M457 0 H583 V"+t+" H457z M457 0 H583 V"+t+" H457z";case"⎢":return"M319 0 H403 V"+t+" H319z M319 0 H403 V"+t+" H319z";case"⎥":return"M263 0 H347 V"+t+" H263z M263 0 H347 V"+t+" H263z";case"⎪":return"M384 0 H504 V"+t+" H384z M384 0 H504 V"+t+" H384z";case"⏐":return"M312 0 H355 V"+t+" H312z M312 0 H355 V"+t+" H312z";case"‖":return"M257 0 H300 V"+t+" H257z M257 0 H300 V"+t+" H257z"+("M478 0 H521 V"+t+" H478z M478 0 H521 V"+t+" H478z");default:return""}},gr={doubleleftarrow:`M262 157 l10-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 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 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 c2 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 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 -86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7 -2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z m8 0v40h399730v-40zm0 194v40h399730v-40z`,doublerightarrow:`M399738 392l -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 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 -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 -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 -13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782 c-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 -107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z`,leftarrow:`M400000 241H110l3-3c68.7-52.7 113.7-120 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 -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 c-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 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 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 l-3-3h399890zM100 241v40h399900v-40z`,leftbrace:`M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117 -45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7 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 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 0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7 -331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z`,leftgroup:`M400000 80 H435C64 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 435 0h399565z`,leftgroupunder:`M400000 262 H435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219 435 219h399565z`,leftharpoon:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3 -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 -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 -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 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 -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 -10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z m0 0v40h400000v-40z`,leftharpoondown:`M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333 5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5 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 -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 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 -2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0 v40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z`,lefthook:`M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5 -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 -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 71.5 23h399859zM103 281v-40h399897v40z`,leftlinesegment:`M40 281 V428 H0 V94 H40 V241 H400000 v40z M40 281 V428 H0 V94 H40 V241 H400000 v40z`,leftmapsto:`M40 281 V448H0V74H40V241H400000v40z M40 281 V448H0V74H40V241H400000v40z`,leftToFrom:`M0 147h400000v40H0zm0 214c68 40 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-70-101l-7-8h399905v-40H95l7-8 c28.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 68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z`,longequal:`M0 50 h400000 v40H0z m0 194h40000v40H0z M0 50 h400000 v40H0z m0 194h40000v40H0z`,midbrace:`M200428 334 c-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 -53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7 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 12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z`,midbraceunder:`M199572 214 c100.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 53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3 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 -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 -320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z m368.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 60.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 -451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z m502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2 c0 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 -480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z m525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0 85.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 -707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z m770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1 c0 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 -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 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 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 -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 -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 151.7 139 205zm0 0v40h399900v-40z`,rightbrace:`M400000 542l -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 s-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1 c124.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 28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237 -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 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 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 -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 -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 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 -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 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 m0 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 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 -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 -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 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 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 -64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z m0-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 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 -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 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 M399960 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 1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32 -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 -167z M100 147v40h399900v-40zM0 341v40h399900v-40z`,twoheadleftarrow:`M0 167c68 40 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 -70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3 -40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19 -37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101 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 c-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 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 18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333 -19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70 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 -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 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 4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128 -68.267.847-113-73.952-191-73.952z`,tilde2:`M344 55.266c-142 0-300.638 81.316-311.5 86.418 -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 31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114 c1 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 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 -11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0 411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697 16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696 -338 0-409-156.573-744-156.573z`,tilde4:`M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345 -11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409 177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9 14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409 -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 3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11 10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63 -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 -7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59 H213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359 c-16-25.333-24-45-24-59z`,widehat1:`M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22 c-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 -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 -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 -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, -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, -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, -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, -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 c4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5 c-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 s-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 121.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 s2.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 c0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z M100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z`,rightarrowabovebar:`M0 241v40h399891c-47.3 35.3-84 78-110 128-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 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 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-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 -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 151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z`,baraboveshortleftharpoon:`M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11 c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17 c2,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 c-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40 c-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z M0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z`,rightharpoonaboveshortbar:`M0,241 l0,40c399126,0,399993,0,399993,0 c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199, -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 c-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 M0 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 c1.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, 1c0,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, -152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z M93 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 c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199, -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 c-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 M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},Va=function(r,t){switch(r){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+t+` v1759 h347 v-84 H403z M403 1759 V0 H319 V1759 v`+t+" v1759 h84z";case"rbrack":return"M347 1759 V0 H0 V84 H263 V1759 v"+t+` v1759 H0 v84 H347z M347 1759 V0 H263 V1759 v`+t+" v1759 h84z";case"vert":return"M145 15 v585 v"+t+` v585 c2.667,10,9.667,15,21,15 c10,0,16.667,-5,20,-15 v-585 v`+-t+` v-585 c-2.667,-10,-9.667,-15,-21,-15 c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+t+" v585 h43z";case"doublevert":return"M145 15 v585 v"+t+` v585 c2.667,10,9.667,15,21,15 c10,0,16.667,-5,20,-15 v-585 v`+-t+` v-585 c-2.667,-10,-9.667,-15,-21,-15 c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+t+` v585 h43z M367 15 v585 v`+t+` v585 c2.667,10,9.667,15,21,15 c10,0,16.667,-5,20,-15 v-585 v`+-t+` v-585 c-2.667,-10,-9.667,-15,-21,-15 c-10,0,-16.667,5,-20,15z M410 15 H367 v585 v`+t+" v585 h43z";case"lfloor":return"M319 602 V0 H403 V602 v"+t+` v1715 h263 v84 H319z MM319 602 V0 H403 V602 v`+t+" v1715 H319z";case"rfloor":return"M319 602 V0 H403 V602 v"+t+` v1799 H0 v-84 H319z MM319 602 V0 H403 V602 v`+t+" v1715 H319z";case"lceil":return"M403 1759 V84 H666 V0 H319 V1759 v"+t+` v602 h84z M403 1759 V0 H319 V1759 v`+t+" v602 h84z";case"rceil":return"M347 1759 V0 H0 V84 H263 V1759 v"+t+` v602 h84z M347 1759 V0 h-84 V1759 v`+t+" v602 h84z";case"lparen":return`M863,9c0,-2,-2,-5,-6,-9c0,0,-17,0,-17,0c-12.7,0,-19.3,0.3,-20,1 c-5.3,5.3,-10.3,11,-15,17c-242.7,294.7,-395.3,682,-458,1162c-21.3,163.3,-33.3,349, -36,557 l0,`+(t+84)+`c0.2,6,0,26,0,60c2,159.3,10,310.7,24,454c53.3,528,210, 949.7,470,1265c4.7,6,9.7,11.7,15,17c0.7,0.7,7,1,19,1c0,0,18,0,18,0c4,-4,6,-7,6,-9 c0,-2.7,-3.3,-8.7,-10,-18c-135.3,-192.7,-235.5,-414.3,-300.5,-665c-65,-250.7,-102.5, -544.7,-112.5,-882c-2,-104,-3,-167,-3,-189 l0,-`+(t+92)+`c0,-162.7,5.7,-314,17,-454c20.7,-272,63.7,-513,129,-723c65.3, -210,155.3,-396.3,270,-559c6.7,-9.3,10,-15.3,10,-18z`;case"rparen":return`M76,0c-16.7,0,-25,3,-25,9c0,2,2,6.3,6,13c21.3,28.7,42.3,60.3, 63,95c96.7,156.7,172.8,332.5,228.5,527.5c55.7,195,92.8,416.5,111.5,664.5 c11.3,139.3,17,290.7,17,454c0,28,1.7,43,3.3,45l0,`+(t+9)+` c-3,4,-3.3,16.7,-3.3,38c0,162,-5.7,313.7,-17,455c-18.7,248,-55.8,469.3,-111.5,664 c-55.7,194.7,-131.8,370.3,-228.5,527c-20.7,34.7,-41.7,66.3,-63,95c-2,3.3,-4,7,-6,11 c0,7.3,5.7,11,17,11c0,0,11,0,11,0c9.3,0,14.3,-0.3,15,-1c5.3,-5.3,10.3,-11,15,-17 c242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558 l0,-`+(t+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7, -470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z`;default:throw new Error("Unknown stretchy delimiter.")}},Rr=function(){function d(t){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=t,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}var r=d.prototype;return r.hasClass=function(n){return K.contains(this.classes,n)},r.toNode=function(){for(var n=document.createDocumentFragment(),u=0;u=5?r=0:d>=3?r=1:r=2,!vt[r]){var t=vt[r]={cssEmPerMu:dt.quad[r]/18};for(var n in dt)dt.hasOwnProperty(n)&&(t[n]=dt[n][r])}return vt[r]}var Ga=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],ri=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],ti=function(r,t){return t.size<2?r:Ga[r-1][t.size-1]},ni=function(){function d(t){this.style=void 0,this.color=void 0,this.size=void 0,this.textSize=void 0,this.phantom=void 0,this.font=void 0,this.fontFamily=void 0,this.fontWeight=void 0,this.fontShape=void 0,this.sizeMultiplier=void 0,this.maxSize=void 0,this.minRuleThickness=void 0,this._fontMetrics=void 0,this.style=t.style,this.color=t.color,this.size=t.size||d.BASESIZE,this.textSize=t.textSize||this.size,this.phantom=!!t.phantom,this.font=t.font||"",this.fontFamily=t.fontFamily||"",this.fontWeight=t.fontWeight||"",this.fontShape=t.fontShape||"",this.sizeMultiplier=ri[this.size-1],this.maxSize=t.maxSize,this.minRuleThickness=t.minRuleThickness,this._fontMetrics=void 0}var r=d.prototype;return r.extend=function(n){var u={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};for(var s in n)n.hasOwnProperty(s)&&(u[s]=n[s]);return new d(u)},r.havingStyle=function(n){return this.style===n?this:this.extend({style:n,size:ti(this.textSize,n)})},r.havingCrampedStyle=function(){return this.havingStyle(this.style.cramp())},r.havingSize=function(n){return this.size===n&&this.textSize===n?this:this.extend({style:this.style.text(),size:n,textSize:n,sizeMultiplier:ri[n-1]})},r.havingBaseStyle=function(n){n=n||this.style.text();var u=ti(d.BASESIZE,n);return this.size===u&&this.textSize===d.BASESIZE&&this.style===n?this:this.extend({style:n,size:u})},r.havingBaseSizing=function(){var n;switch(this.style.id){case 4:case 5:n=3;break;case 6:case 7:n=1;break;default:n=6}return this.extend({style:this.style.text(),size:n})},r.withColor=function(n){return this.extend({color:n})},r.withPhantom=function(){return this.extend({phantom:!0})},r.withFont=function(n){return this.extend({font:n})},r.withTextFontFamily=function(n){return this.extend({fontFamily:n,font:""})},r.withTextFontWeight=function(n){return this.extend({fontWeight:n,font:""})},r.withTextFontShape=function(n){return this.extend({fontShape:n,font:""})},r.sizingClasses=function(n){return n.size!==this.size?["sizing","reset-size"+n.size,"size"+this.size]:[]},r.baseSizingClasses=function(){return this.size!==d.BASESIZE?["sizing","reset-size"+this.size,"size"+d.BASESIZE]:[]},r.fontMetrics=function(){return this._fontMetrics||(this._fontMetrics=ei(this.size)),this._fontMetrics},r.getColor=function(){return this.phantom?"transparent":this.color},d}();ni.BASESIZE=6;var ii=ni,$0={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:803/800,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:803/800},$a={ex:!0,em:!0,mu:!0},ai=function(r){return typeof r!="string"&&(r=r.unit),r in $0||r in $a||r==="ex"},Ye=function(r,t){var n;if(r.unit in $0)n=$0[r.unit]/t.fontMetrics().ptPerEm/t.sizeMultiplier;else if(r.unit==="mu")n=t.fontMetrics().cssEmPerMu;else{var u;if(t.style.isTight()?u=t.havingStyle(t.style.text()):u=t,r.unit==="ex")n=u.fontMetrics().xHeight;else if(r.unit==="em")n=u.fontMetrics().quad;else throw new k("Invalid unit: '"+r.unit+"'");u!==t&&(n*=u.sizeMultiplier/t.sizeMultiplier)}return Math.min(r.number*n,t.maxSize)},ae=function(r){return+r.toFixed(4)+"em"},t0=function(r){return r.filter(function(t){return t}).join(" ")},ui=function(r,t,n){if(this.classes=r||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=n||{},t){t.style.isTight()&&this.classes.push("mtight");var u=t.getColor();u&&(this.style.color=u)}},li=function(r){var t=document.createElement(r);t.className=t0(this.classes);for(var n in this.style)this.style.hasOwnProperty(n)&&(t.style[n]=this.style[n]);for(var u in this.attributes)this.attributes.hasOwnProperty(u)&&t.setAttribute(u,this.attributes[u]);for(var s=0;s",t},Y0=function(){function d(t,n,u,s){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,ui.call(this,t,u,s),this.children=n||[]}var r=d.prototype;return r.setAttribute=function(n,u){this.attributes[n]=u},r.hasClass=function(n){return K.contains(this.classes,n)},r.toNode=function(){return li.call(this,"span")},r.toMarkup=function(){return un.call(this,"span")},d}(),gt=function(){function d(t,n,u,s){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,ui.call(this,n,s),this.children=u||[],this.setAttribute("href",t)}var r=d.prototype;return r.setAttribute=function(n,u){this.attributes[n]=u},r.hasClass=function(n){return K.contains(this.classes,n)},r.toNode=function(){return li.call(this,"a")},r.toMarkup=function(){return un.call(this,"a")},d}(),oi=function(){function d(t,n,u){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=n,this.src=t,this.classes=["mord"],this.style=u}var r=d.prototype;return r.hasClass=function(n){return K.contains(this.classes,n)},r.toNode=function(){var n=document.createElement("img");n.src=this.src,n.alt=this.alt,n.className="mord";for(var u in this.style)this.style.hasOwnProperty(u)&&(n.style[u]=this.style[u]);return n},r.toMarkup=function(){var n=""+this.alt+"0&&(u=document.createElement("span"),u.style.marginRight=ae(this.italic)),this.classes.length>0&&(u=u||document.createElement("span"),u.className=t0(this.classes));for(var s in this.style)this.style.hasOwnProperty(s)&&(u=u||document.createElement("span"),u.style[s]=this.style[s]);return u?(u.appendChild(n),u):n},r.toMarkup=function(){var n=!1,u="0&&(s+="margin-right:"+this.italic+"em;");for(var m in this.style)this.style.hasOwnProperty(m)&&(s+=K.hyphenate(m)+":"+this.style[m]+";");s&&(n=!0,u+=' style="'+K.escape(s)+'"');var b=K.escape(this.text);return n?(u+=">",u+=b,u+="",u):b},d}(),Or=function(){function d(t,n){this.children=void 0,this.attributes=void 0,this.children=t||[],this.attributes=n||{}}var r=d.prototype;return r.toNode=function(){var n="http://www.w3.org/2000/svg",u=document.createElementNS(n,"svg");for(var s in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,s)&&u.setAttribute(s,this.attributes[s]);for(var m=0;m":""},d}(),Kr=function(){function d(t){this.attributes=void 0,this.attributes=t||{}}var r=d.prototype;return r.toNode=function(){var n="http://www.w3.org/2000/svg",u=document.createElementNS(n,"line");for(var s in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,s)&&u.setAttribute(s,this.attributes[s]);return u},r.toMarkup=function(){var n=" but got "+String(d)+".")}var Xa={bin:1,close:1,inner:1,open:1,punct:1,rel:1},ja={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},X0={math:{},text:{}},Ve=X0;function p(d,r,t,n,u,s){X0[d][u]={font:r,group:t,replace:n},s&&n&&(X0[d][n]=X0[d][u])}var v="math",Q="text",S="main",_="ams",Ue="accent-token",he="bin",cr="close",M0="inner",ge="mathord",Ke="op-token",Ar="open",x0="punct",z="rel",Zr="spacing",R="textord";p(v,S,z,"≡","\\equiv",!0),p(v,S,z,"≺","\\prec",!0),p(v,S,z,"≻","\\succ",!0),p(v,S,z,"∼","\\sim",!0),p(v,S,z,"⊥","\\perp"),p(v,S,z,"⪯","\\preceq",!0),p(v,S,z,"⪰","\\succeq",!0),p(v,S,z,"≃","\\simeq",!0),p(v,S,z,"∣","\\mid",!0),p(v,S,z,"≪","\\ll",!0),p(v,S,z,"≫","\\gg",!0),p(v,S,z,"≍","\\asymp",!0),p(v,S,z,"∥","\\parallel"),p(v,S,z,"⋈","\\bowtie",!0),p(v,S,z,"⌣","\\smile",!0),p(v,S,z,"⊑","\\sqsubseteq",!0),p(v,S,z,"⊒","\\sqsupseteq",!0),p(v,S,z,"≐","\\doteq",!0),p(v,S,z,"⌢","\\frown",!0),p(v,S,z,"∋","\\ni",!0),p(v,S,z,"∝","\\propto",!0),p(v,S,z,"⊢","\\vdash",!0),p(v,S,z,"⊣","\\dashv",!0),p(v,S,z,"∋","\\owns"),p(v,S,x0,".","\\ldotp"),p(v,S,x0,"⋅","\\cdotp"),p(v,S,R,"#","\\#"),p(Q,S,R,"#","\\#"),p(v,S,R,"&","\\&"),p(Q,S,R,"&","\\&"),p(v,S,R,"ℵ","\\aleph",!0),p(v,S,R,"∀","\\forall",!0),p(v,S,R,"ℏ","\\hbar",!0),p(v,S,R,"∃","\\exists",!0),p(v,S,R,"∇","\\nabla",!0),p(v,S,R,"♭","\\flat",!0),p(v,S,R,"ℓ","\\ell",!0),p(v,S,R,"♮","\\natural",!0),p(v,S,R,"♣","\\clubsuit",!0),p(v,S,R,"℘","\\wp",!0),p(v,S,R,"♯","\\sharp",!0),p(v,S,R,"♢","\\diamondsuit",!0),p(v,S,R,"ℜ","\\Re",!0),p(v,S,R,"♡","\\heartsuit",!0),p(v,S,R,"ℑ","\\Im",!0),p(v,S,R,"♠","\\spadesuit",!0),p(v,S,R,"§","\\S",!0),p(Q,S,R,"§","\\S"),p(v,S,R,"¶","\\P",!0),p(Q,S,R,"¶","\\P"),p(v,S,R,"†","\\dag"),p(Q,S,R,"†","\\dag"),p(Q,S,R,"†","\\textdagger"),p(v,S,R,"‡","\\ddag"),p(Q,S,R,"‡","\\ddag"),p(Q,S,R,"‡","\\textdaggerdbl"),p(v,S,cr,"⎱","\\rmoustache",!0),p(v,S,Ar,"⎰","\\lmoustache",!0),p(v,S,cr,"⟯","\\rgroup",!0),p(v,S,Ar,"⟮","\\lgroup",!0),p(v,S,he,"∓","\\mp",!0),p(v,S,he,"⊖","\\ominus",!0),p(v,S,he,"⊎","\\uplus",!0),p(v,S,he,"⊓","\\sqcap",!0),p(v,S,he,"∗","\\ast"),p(v,S,he,"⊔","\\sqcup",!0),p(v,S,he,"◯","\\bigcirc",!0),p(v,S,he,"∙","\\bullet",!0),p(v,S,he,"‡","\\ddagger"),p(v,S,he,"≀","\\wr",!0),p(v,S,he,"⨿","\\amalg"),p(v,S,he,"&","\\And"),p(v,S,z,"⟵","\\longleftarrow",!0),p(v,S,z,"⇐","\\Leftarrow",!0),p(v,S,z,"⟸","\\Longleftarrow",!0),p(v,S,z,"⟶","\\longrightarrow",!0),p(v,S,z,"⇒","\\Rightarrow",!0),p(v,S,z,"⟹","\\Longrightarrow",!0),p(v,S,z,"↔","\\leftrightarrow",!0),p(v,S,z,"⟷","\\longleftrightarrow",!0),p(v,S,z,"⇔","\\Leftrightarrow",!0),p(v,S,z,"⟺","\\Longleftrightarrow",!0),p(v,S,z,"↦","\\mapsto",!0),p(v,S,z,"⟼","\\longmapsto",!0),p(v,S,z,"↗","\\nearrow",!0),p(v,S,z,"↩","\\hookleftarrow",!0),p(v,S,z,"↪","\\hookrightarrow",!0),p(v,S,z,"↘","\\searrow",!0),p(v,S,z,"↼","\\leftharpoonup",!0),p(v,S,z,"⇀","\\rightharpoonup",!0),p(v,S,z,"↙","\\swarrow",!0),p(v,S,z,"↽","\\leftharpoondown",!0),p(v,S,z,"⇁","\\rightharpoondown",!0),p(v,S,z,"↖","\\nwarrow",!0),p(v,S,z,"⇌","\\rightleftharpoons",!0),p(v,_,z,"≮","\\nless",!0),p(v,_,z,"","\\@nleqslant"),p(v,_,z,"","\\@nleqq"),p(v,_,z,"⪇","\\lneq",!0),p(v,_,z,"≨","\\lneqq",!0),p(v,_,z,"","\\@lvertneqq"),p(v,_,z,"⋦","\\lnsim",!0),p(v,_,z,"⪉","\\lnapprox",!0),p(v,_,z,"⊀","\\nprec",!0),p(v,_,z,"⋠","\\npreceq",!0),p(v,_,z,"⋨","\\precnsim",!0),p(v,_,z,"⪹","\\precnapprox",!0),p(v,_,z,"≁","\\nsim",!0),p(v,_,z,"","\\@nshortmid"),p(v,_,z,"∤","\\nmid",!0),p(v,_,z,"⊬","\\nvdash",!0),p(v,_,z,"⊭","\\nvDash",!0),p(v,_,z,"⋪","\\ntriangleleft"),p(v,_,z,"⋬","\\ntrianglelefteq",!0),p(v,_,z,"⊊","\\subsetneq",!0),p(v,_,z,"","\\@varsubsetneq"),p(v,_,z,"⫋","\\subsetneqq",!0),p(v,_,z,"","\\@varsubsetneqq"),p(v,_,z,"≯","\\ngtr",!0),p(v,_,z,"","\\@ngeqslant"),p(v,_,z,"","\\@ngeqq"),p(v,_,z,"⪈","\\gneq",!0),p(v,_,z,"≩","\\gneqq",!0),p(v,_,z,"","\\@gvertneqq"),p(v,_,z,"⋧","\\gnsim",!0),p(v,_,z,"⪊","\\gnapprox",!0),p(v,_,z,"⊁","\\nsucc",!0),p(v,_,z,"⋡","\\nsucceq",!0),p(v,_,z,"⋩","\\succnsim",!0),p(v,_,z,"⪺","\\succnapprox",!0),p(v,_,z,"≆","\\ncong",!0),p(v,_,z,"","\\@nshortparallel"),p(v,_,z,"∦","\\nparallel",!0),p(v,_,z,"⊯","\\nVDash",!0),p(v,_,z,"⋫","\\ntriangleright"),p(v,_,z,"⋭","\\ntrianglerighteq",!0),p(v,_,z,"","\\@nsupseteqq"),p(v,_,z,"⊋","\\supsetneq",!0),p(v,_,z,"","\\@varsupsetneq"),p(v,_,z,"⫌","\\supsetneqq",!0),p(v,_,z,"","\\@varsupsetneqq"),p(v,_,z,"⊮","\\nVdash",!0),p(v,_,z,"⪵","\\precneqq",!0),p(v,_,z,"⪶","\\succneqq",!0),p(v,_,z,"","\\@nsubseteqq"),p(v,_,he,"⊴","\\unlhd"),p(v,_,he,"⊵","\\unrhd"),p(v,_,z,"↚","\\nleftarrow",!0),p(v,_,z,"↛","\\nrightarrow",!0),p(v,_,z,"⇍","\\nLeftarrow",!0),p(v,_,z,"⇏","\\nRightarrow",!0),p(v,_,z,"↮","\\nleftrightarrow",!0),p(v,_,z,"⇎","\\nLeftrightarrow",!0),p(v,_,z,"△","\\vartriangle"),p(v,_,R,"ℏ","\\hslash"),p(v,_,R,"▽","\\triangledown"),p(v,_,R,"◊","\\lozenge"),p(v,_,R,"Ⓢ","\\circledS"),p(v,_,R,"®","\\circledR"),p(Q,_,R,"®","\\circledR"),p(v,_,R,"∡","\\measuredangle",!0),p(v,_,R,"∄","\\nexists"),p(v,_,R,"℧","\\mho"),p(v,_,R,"Ⅎ","\\Finv",!0),p(v,_,R,"⅁","\\Game",!0),p(v,_,R,"‵","\\backprime"),p(v,_,R,"▲","\\blacktriangle"),p(v,_,R,"▼","\\blacktriangledown"),p(v,_,R,"■","\\blacksquare"),p(v,_,R,"⧫","\\blacklozenge"),p(v,_,R,"★","\\bigstar"),p(v,_,R,"∢","\\sphericalangle",!0),p(v,_,R,"∁","\\complement",!0),p(v,_,R,"ð","\\eth",!0),p(Q,S,R,"ð","ð"),p(v,_,R,"╱","\\diagup"),p(v,_,R,"╲","\\diagdown"),p(v,_,R,"□","\\square"),p(v,_,R,"□","\\Box"),p(v,_,R,"◊","\\Diamond"),p(v,_,R,"¥","\\yen",!0),p(Q,_,R,"¥","\\yen",!0),p(v,_,R,"✓","\\checkmark",!0),p(Q,_,R,"✓","\\checkmark"),p(v,_,R,"ℶ","\\beth",!0),p(v,_,R,"ℸ","\\daleth",!0),p(v,_,R,"ℷ","\\gimel",!0),p(v,_,R,"ϝ","\\digamma",!0),p(v,_,R,"ϰ","\\varkappa"),p(v,_,Ar,"┌","\\@ulcorner",!0),p(v,_,cr,"┐","\\@urcorner",!0),p(v,_,Ar,"└","\\@llcorner",!0),p(v,_,cr,"┘","\\@lrcorner",!0),p(v,_,z,"≦","\\leqq",!0),p(v,_,z,"⩽","\\leqslant",!0),p(v,_,z,"⪕","\\eqslantless",!0),p(v,_,z,"≲","\\lesssim",!0),p(v,_,z,"⪅","\\lessapprox",!0),p(v,_,z,"≊","\\approxeq",!0),p(v,_,he,"⋖","\\lessdot"),p(v,_,z,"⋘","\\lll",!0),p(v,_,z,"≶","\\lessgtr",!0),p(v,_,z,"⋚","\\lesseqgtr",!0),p(v,_,z,"⪋","\\lesseqqgtr",!0),p(v,_,z,"≑","\\doteqdot"),p(v,_,z,"≓","\\risingdotseq",!0),p(v,_,z,"≒","\\fallingdotseq",!0),p(v,_,z,"∽","\\backsim",!0),p(v,_,z,"⋍","\\backsimeq",!0),p(v,_,z,"⫅","\\subseteqq",!0),p(v,_,z,"⋐","\\Subset",!0),p(v,_,z,"⊏","\\sqsubset",!0),p(v,_,z,"≼","\\preccurlyeq",!0),p(v,_,z,"⋞","\\curlyeqprec",!0),p(v,_,z,"≾","\\precsim",!0),p(v,_,z,"⪷","\\precapprox",!0),p(v,_,z,"⊲","\\vartriangleleft"),p(v,_,z,"⊴","\\trianglelefteq"),p(v,_,z,"⊨","\\vDash",!0),p(v,_,z,"⊪","\\Vvdash",!0),p(v,_,z,"⌣","\\smallsmile"),p(v,_,z,"⌢","\\smallfrown"),p(v,_,z,"≏","\\bumpeq",!0),p(v,_,z,"≎","\\Bumpeq",!0),p(v,_,z,"≧","\\geqq",!0),p(v,_,z,"⩾","\\geqslant",!0),p(v,_,z,"⪖","\\eqslantgtr",!0),p(v,_,z,"≳","\\gtrsim",!0),p(v,_,z,"⪆","\\gtrapprox",!0),p(v,_,he,"⋗","\\gtrdot"),p(v,_,z,"⋙","\\ggg",!0),p(v,_,z,"≷","\\gtrless",!0),p(v,_,z,"⋛","\\gtreqless",!0),p(v,_,z,"⪌","\\gtreqqless",!0),p(v,_,z,"≖","\\eqcirc",!0),p(v,_,z,"≗","\\circeq",!0),p(v,_,z,"≜","\\triangleq",!0),p(v,_,z,"∼","\\thicksim"),p(v,_,z,"≈","\\thickapprox"),p(v,_,z,"⫆","\\supseteqq",!0),p(v,_,z,"⋑","\\Supset",!0),p(v,_,z,"⊐","\\sqsupset",!0),p(v,_,z,"≽","\\succcurlyeq",!0),p(v,_,z,"⋟","\\curlyeqsucc",!0),p(v,_,z,"≿","\\succsim",!0),p(v,_,z,"⪸","\\succapprox",!0),p(v,_,z,"⊳","\\vartriangleright"),p(v,_,z,"⊵","\\trianglerighteq"),p(v,_,z,"⊩","\\Vdash",!0),p(v,_,z,"∣","\\shortmid"),p(v,_,z,"∥","\\shortparallel"),p(v,_,z,"≬","\\between",!0),p(v,_,z,"⋔","\\pitchfork",!0),p(v,_,z,"∝","\\varpropto"),p(v,_,z,"◀","\\blacktriangleleft"),p(v,_,z,"∴","\\therefore",!0),p(v,_,z,"∍","\\backepsilon"),p(v,_,z,"▶","\\blacktriangleright"),p(v,_,z,"∵","\\because",!0),p(v,_,z,"⋘","\\llless"),p(v,_,z,"⋙","\\gggtr"),p(v,_,he,"⊲","\\lhd"),p(v,_,he,"⊳","\\rhd"),p(v,_,z,"≂","\\eqsim",!0),p(v,S,z,"⋈","\\Join"),p(v,_,z,"≑","\\Doteq",!0),p(v,_,he,"∔","\\dotplus",!0),p(v,_,he,"∖","\\smallsetminus"),p(v,_,he,"⋒","\\Cap",!0),p(v,_,he,"⋓","\\Cup",!0),p(v,_,he,"⩞","\\doublebarwedge",!0),p(v,_,he,"⊟","\\boxminus",!0),p(v,_,he,"⊞","\\boxplus",!0),p(v,_,he,"⋇","\\divideontimes",!0),p(v,_,he,"⋉","\\ltimes",!0),p(v,_,he,"⋊","\\rtimes",!0),p(v,_,he,"⋋","\\leftthreetimes",!0),p(v,_,he,"⋌","\\rightthreetimes",!0),p(v,_,he,"⋏","\\curlywedge",!0),p(v,_,he,"⋎","\\curlyvee",!0),p(v,_,he,"⊝","\\circleddash",!0),p(v,_,he,"⊛","\\circledast",!0),p(v,_,he,"⋅","\\centerdot"),p(v,_,he,"⊺","\\intercal",!0),p(v,_,he,"⋒","\\doublecap"),p(v,_,he,"⋓","\\doublecup"),p(v,_,he,"⊠","\\boxtimes",!0),p(v,_,z,"⇢","\\dashrightarrow",!0),p(v,_,z,"⇠","\\dashleftarrow",!0),p(v,_,z,"⇇","\\leftleftarrows",!0),p(v,_,z,"⇆","\\leftrightarrows",!0),p(v,_,z,"⇚","\\Lleftarrow",!0),p(v,_,z,"↞","\\twoheadleftarrow",!0),p(v,_,z,"↢","\\leftarrowtail",!0),p(v,_,z,"↫","\\looparrowleft",!0),p(v,_,z,"⇋","\\leftrightharpoons",!0),p(v,_,z,"↶","\\curvearrowleft",!0),p(v,_,z,"↺","\\circlearrowleft",!0),p(v,_,z,"↰","\\Lsh",!0),p(v,_,z,"⇈","\\upuparrows",!0),p(v,_,z,"↿","\\upharpoonleft",!0),p(v,_,z,"⇃","\\downharpoonleft",!0),p(v,S,z,"⊶","\\origof",!0),p(v,S,z,"⊷","\\imageof",!0),p(v,_,z,"⊸","\\multimap",!0),p(v,_,z,"↭","\\leftrightsquigarrow",!0),p(v,_,z,"⇉","\\rightrightarrows",!0),p(v,_,z,"⇄","\\rightleftarrows",!0),p(v,_,z,"↠","\\twoheadrightarrow",!0),p(v,_,z,"↣","\\rightarrowtail",!0),p(v,_,z,"↬","\\looparrowright",!0),p(v,_,z,"↷","\\curvearrowright",!0),p(v,_,z,"↻","\\circlearrowright",!0),p(v,_,z,"↱","\\Rsh",!0),p(v,_,z,"⇊","\\downdownarrows",!0),p(v,_,z,"↾","\\upharpoonright",!0),p(v,_,z,"⇂","\\downharpoonright",!0),p(v,_,z,"⇝","\\rightsquigarrow",!0),p(v,_,z,"⇝","\\leadsto"),p(v,_,z,"⇛","\\Rrightarrow",!0),p(v,_,z,"↾","\\restriction"),p(v,S,R,"‘","`"),p(v,S,R,"$","\\$"),p(Q,S,R,"$","\\$"),p(Q,S,R,"$","\\textdollar"),p(v,S,R,"%","\\%"),p(Q,S,R,"%","\\%"),p(v,S,R,"_","\\_"),p(Q,S,R,"_","\\_"),p(Q,S,R,"_","\\textunderscore"),p(v,S,R,"∠","\\angle",!0),p(v,S,R,"∞","\\infty",!0),p(v,S,R,"′","\\prime"),p(v,S,R,"△","\\triangle"),p(v,S,R,"Γ","\\Gamma",!0),p(v,S,R,"Δ","\\Delta",!0),p(v,S,R,"Θ","\\Theta",!0),p(v,S,R,"Λ","\\Lambda",!0),p(v,S,R,"Ξ","\\Xi",!0),p(v,S,R,"Π","\\Pi",!0),p(v,S,R,"Σ","\\Sigma",!0),p(v,S,R,"Υ","\\Upsilon",!0),p(v,S,R,"Φ","\\Phi",!0),p(v,S,R,"Ψ","\\Psi",!0),p(v,S,R,"Ω","\\Omega",!0),p(v,S,R,"A","Α"),p(v,S,R,"B","Β"),p(v,S,R,"E","Ε"),p(v,S,R,"Z","Ζ"),p(v,S,R,"H","Η"),p(v,S,R,"I","Ι"),p(v,S,R,"K","Κ"),p(v,S,R,"M","Μ"),p(v,S,R,"N","Ν"),p(v,S,R,"O","Ο"),p(v,S,R,"P","Ρ"),p(v,S,R,"T","Τ"),p(v,S,R,"X","Χ"),p(v,S,R,"¬","\\neg",!0),p(v,S,R,"¬","\\lnot"),p(v,S,R,"⊤","\\top"),p(v,S,R,"⊥","\\bot"),p(v,S,R,"∅","\\emptyset"),p(v,_,R,"∅","\\varnothing"),p(v,S,ge,"α","\\alpha",!0),p(v,S,ge,"β","\\beta",!0),p(v,S,ge,"γ","\\gamma",!0),p(v,S,ge,"δ","\\delta",!0),p(v,S,ge,"ϵ","\\epsilon",!0),p(v,S,ge,"ζ","\\zeta",!0),p(v,S,ge,"η","\\eta",!0),p(v,S,ge,"θ","\\theta",!0),p(v,S,ge,"ι","\\iota",!0),p(v,S,ge,"κ","\\kappa",!0),p(v,S,ge,"λ","\\lambda",!0),p(v,S,ge,"μ","\\mu",!0),p(v,S,ge,"ν","\\nu",!0),p(v,S,ge,"ξ","\\xi",!0),p(v,S,ge,"ο","\\omicron",!0),p(v,S,ge,"π","\\pi",!0),p(v,S,ge,"ρ","\\rho",!0),p(v,S,ge,"σ","\\sigma",!0),p(v,S,ge,"τ","\\tau",!0),p(v,S,ge,"υ","\\upsilon",!0),p(v,S,ge,"ϕ","\\phi",!0),p(v,S,ge,"χ","\\chi",!0),p(v,S,ge,"ψ","\\psi",!0),p(v,S,ge,"ω","\\omega",!0),p(v,S,ge,"ε","\\varepsilon",!0),p(v,S,ge,"ϑ","\\vartheta",!0),p(v,S,ge,"ϖ","\\varpi",!0),p(v,S,ge,"ϱ","\\varrho",!0),p(v,S,ge,"ς","\\varsigma",!0),p(v,S,ge,"φ","\\varphi",!0),p(v,S,he,"∗","*",!0),p(v,S,he,"+","+"),p(v,S,he,"−","-",!0),p(v,S,he,"⋅","\\cdot",!0),p(v,S,he,"∘","\\circ",!0),p(v,S,he,"÷","\\div",!0),p(v,S,he,"±","\\pm",!0),p(v,S,he,"×","\\times",!0),p(v,S,he,"∩","\\cap",!0),p(v,S,he,"∪","\\cup",!0),p(v,S,he,"∖","\\setminus",!0),p(v,S,he,"∧","\\land"),p(v,S,he,"∨","\\lor"),p(v,S,he,"∧","\\wedge",!0),p(v,S,he,"∨","\\vee",!0),p(v,S,R,"√","\\surd"),p(v,S,Ar,"⟨","\\langle",!0),p(v,S,Ar,"∣","\\lvert"),p(v,S,Ar,"∥","\\lVert"),p(v,S,cr,"?","?"),p(v,S,cr,"!","!"),p(v,S,cr,"⟩","\\rangle",!0),p(v,S,cr,"∣","\\rvert"),p(v,S,cr,"∥","\\rVert"),p(v,S,z,"=","="),p(v,S,z,":",":"),p(v,S,z,"≈","\\approx",!0),p(v,S,z,"≅","\\cong",!0),p(v,S,z,"≥","\\ge"),p(v,S,z,"≥","\\geq",!0),p(v,S,z,"←","\\gets"),p(v,S,z,">","\\gt",!0),p(v,S,z,"∈","\\in",!0),p(v,S,z,"","\\@not"),p(v,S,z,"⊂","\\subset",!0),p(v,S,z,"⊃","\\supset",!0),p(v,S,z,"⊆","\\subseteq",!0),p(v,S,z,"⊇","\\supseteq",!0),p(v,_,z,"⊈","\\nsubseteq",!0),p(v,_,z,"⊉","\\nsupseteq",!0),p(v,S,z,"⊨","\\models"),p(v,S,z,"←","\\leftarrow",!0),p(v,S,z,"≤","\\le"),p(v,S,z,"≤","\\leq",!0),p(v,S,z,"<","\\lt",!0),p(v,S,z,"→","\\rightarrow",!0),p(v,S,z,"→","\\to"),p(v,_,z,"≱","\\ngeq",!0),p(v,_,z,"≰","\\nleq",!0),p(v,S,Zr," ","\\ "),p(v,S,Zr," ","\\space"),p(v,S,Zr," ","\\nobreakspace"),p(Q,S,Zr," ","\\ "),p(Q,S,Zr," "," "),p(Q,S,Zr," ","\\space"),p(Q,S,Zr," ","\\nobreakspace"),p(v,S,Zr,null,"\\nobreak"),p(v,S,Zr,null,"\\allowbreak"),p(v,S,x0,",",","),p(v,S,x0,";",";"),p(v,_,he,"⊼","\\barwedge",!0),p(v,_,he,"⊻","\\veebar",!0),p(v,S,he,"⊙","\\odot",!0),p(v,S,he,"⊕","\\oplus",!0),p(v,S,he,"⊗","\\otimes",!0),p(v,S,R,"∂","\\partial",!0),p(v,S,he,"⊘","\\oslash",!0),p(v,_,he,"⊚","\\circledcirc",!0),p(v,_,he,"⊡","\\boxdot",!0),p(v,S,he,"△","\\bigtriangleup"),p(v,S,he,"▽","\\bigtriangledown"),p(v,S,he,"†","\\dagger"),p(v,S,he,"⋄","\\diamond"),p(v,S,he,"⋆","\\star"),p(v,S,he,"◃","\\triangleleft"),p(v,S,he,"▹","\\triangleright"),p(v,S,Ar,"{","\\{"),p(Q,S,R,"{","\\{"),p(Q,S,R,"{","\\textbraceleft"),p(v,S,cr,"}","\\}"),p(Q,S,R,"}","\\}"),p(Q,S,R,"}","\\textbraceright"),p(v,S,Ar,"{","\\lbrace"),p(v,S,cr,"}","\\rbrace"),p(v,S,Ar,"[","\\lbrack",!0),p(Q,S,R,"[","\\lbrack",!0),p(v,S,cr,"]","\\rbrack",!0),p(Q,S,R,"]","\\rbrack",!0),p(v,S,Ar,"(","\\lparen",!0),p(v,S,cr,")","\\rparen",!0),p(Q,S,R,"<","\\textless",!0),p(Q,S,R,">","\\textgreater",!0),p(v,S,Ar,"⌊","\\lfloor",!0),p(v,S,cr,"⌋","\\rfloor",!0),p(v,S,Ar,"⌈","\\lceil",!0),p(v,S,cr,"⌉","\\rceil",!0),p(v,S,R,"\\","\\backslash"),p(v,S,R,"∣","|"),p(v,S,R,"∣","\\vert"),p(Q,S,R,"|","\\textbar",!0),p(v,S,R,"∥","\\|"),p(v,S,R,"∥","\\Vert"),p(Q,S,R,"∥","\\textbardbl"),p(Q,S,R,"~","\\textasciitilde"),p(Q,S,R,"\\","\\textbackslash"),p(Q,S,R,"^","\\textasciicircum"),p(v,S,z,"↑","\\uparrow",!0),p(v,S,z,"⇑","\\Uparrow",!0),p(v,S,z,"↓","\\downarrow",!0),p(v,S,z,"⇓","\\Downarrow",!0),p(v,S,z,"↕","\\updownarrow",!0),p(v,S,z,"⇕","\\Updownarrow",!0),p(v,S,Ke,"∐","\\coprod"),p(v,S,Ke,"⋁","\\bigvee"),p(v,S,Ke,"⋀","\\bigwedge"),p(v,S,Ke,"⨄","\\biguplus"),p(v,S,Ke,"⋂","\\bigcap"),p(v,S,Ke,"⋃","\\bigcup"),p(v,S,Ke,"∫","\\int"),p(v,S,Ke,"∫","\\intop"),p(v,S,Ke,"∬","\\iint"),p(v,S,Ke,"∭","\\iiint"),p(v,S,Ke,"∏","\\prod"),p(v,S,Ke,"∑","\\sum"),p(v,S,Ke,"⨂","\\bigotimes"),p(v,S,Ke,"⨁","\\bigoplus"),p(v,S,Ke,"⨀","\\bigodot"),p(v,S,Ke,"∮","\\oint"),p(v,S,Ke,"∯","\\oiint"),p(v,S,Ke,"∰","\\oiiint"),p(v,S,Ke,"⨆","\\bigsqcup"),p(v,S,Ke,"∫","\\smallint"),p(Q,S,M0,"…","\\textellipsis"),p(v,S,M0,"…","\\mathellipsis"),p(Q,S,M0,"…","\\ldots",!0),p(v,S,M0,"…","\\ldots",!0),p(v,S,M0,"⋯","\\@cdots",!0),p(v,S,M0,"⋱","\\ddots",!0),p(v,S,R,"⋮","\\varvdots"),p(v,S,Ue,"ˊ","\\acute"),p(v,S,Ue,"ˋ","\\grave"),p(v,S,Ue,"¨","\\ddot"),p(v,S,Ue,"~","\\tilde"),p(v,S,Ue,"ˉ","\\bar"),p(v,S,Ue,"˘","\\breve"),p(v,S,Ue,"ˇ","\\check"),p(v,S,Ue,"^","\\hat"),p(v,S,Ue,"⃗","\\vec"),p(v,S,Ue,"˙","\\dot"),p(v,S,Ue,"˚","\\mathring"),p(v,S,ge,"","\\@imath"),p(v,S,ge,"","\\@jmath"),p(v,S,R,"ı","ı"),p(v,S,R,"ȷ","ȷ"),p(Q,S,R,"ı","\\i",!0),p(Q,S,R,"ȷ","\\j",!0),p(Q,S,R,"ß","\\ss",!0),p(Q,S,R,"æ","\\ae",!0),p(Q,S,R,"œ","\\oe",!0),p(Q,S,R,"ø","\\o",!0),p(Q,S,R,"Æ","\\AE",!0),p(Q,S,R,"Œ","\\OE",!0),p(Q,S,R,"Ø","\\O",!0),p(Q,S,Ue,"ˊ","\\'"),p(Q,S,Ue,"ˋ","\\`"),p(Q,S,Ue,"ˆ","\\^"),p(Q,S,Ue,"˜","\\~"),p(Q,S,Ue,"ˉ","\\="),p(Q,S,Ue,"˘","\\u"),p(Q,S,Ue,"˙","\\."),p(Q,S,Ue,"¸","\\c"),p(Q,S,Ue,"˚","\\r"),p(Q,S,Ue,"ˇ","\\v"),p(Q,S,Ue,"¨",'\\"'),p(Q,S,Ue,"˝","\\H"),p(Q,S,Ue,"◯","\\textcircled");var j0={"--":!0,"---":!0,"``":!0,"''":!0};p(Q,S,R,"–","--",!0),p(Q,S,R,"–","\\textendash"),p(Q,S,R,"—","---",!0),p(Q,S,R,"—","\\textemdash"),p(Q,S,R,"‘","`",!0),p(Q,S,R,"‘","\\textquoteleft"),p(Q,S,R,"’","'",!0),p(Q,S,R,"’","\\textquoteright"),p(Q,S,R,"“","``",!0),p(Q,S,R,"“","\\textquotedblleft"),p(Q,S,R,"”","''",!0),p(Q,S,R,"”","\\textquotedblright"),p(v,S,R,"°","\\degree",!0),p(Q,S,R,"°","\\degree"),p(Q,S,R,"°","\\textdegree",!0),p(v,S,R,"£","\\pounds"),p(v,S,R,"£","\\mathsterling",!0),p(Q,S,R,"£","\\pounds"),p(Q,S,R,"£","\\textsterling",!0),p(v,_,R,"✠","\\maltese"),p(Q,_,R,"✠","\\maltese");for(var xt='0123456789/@."',ln=0;ln0)return Lr(s,E,u,t,m.concat(F));if(C){var $,Y;if(C==="boldsymbol"){var j=Za(s,u,t,m,n);$=j.fontName,Y=[j.fontClass]}else b?($=vi[C].fontName,Y=[C]):($=Ct(C,t.fontWeight,t.fontShape),Y=[C,t.fontWeight,t.fontShape]);if(St(s,$,u).metrics)return Lr(s,$,u,t,m.concat(Y));if(j0.hasOwnProperty(s)&&$.slice(0,10)==="Typewriter"){for(var ie=[],le=0;let&&(t=m.height),m.depth>n&&(n=m.depth),m.maxFontSize>u&&(u=m.maxFontSize)}r.height=t,r.depth=n,r.maxFontSize=u},lr=function(r,t,n,u){var s=new Y0(r,t,n,u);return sn(s),s},di=function(r,t,n,u){return new Y0(r,t,n,u)},ru=function(r,t,n){var u=lr([r],[],t);return u.height=Math.max(n||t.fontMetrics().defaultRuleThickness,t.minRuleThickness),u.style.borderBottomWidth=ae(u.height),u.maxFontSize=1,u},tu=function(r,t,n,u){var s=new gt(r,t,n,u);return sn(s),s},mi=function(r){var t=new Rr(r);return sn(t),t},nu=function(r,t){return r instanceof Rr?lr([],[r],t):r},iu=function(r){if(r.positionType==="individualShift"){for(var t=r.children,n=[t[0]],u=-t[0].shift-t[0].elem.depth,s=u,m=1;m0&&(s.push(Mt(m,r)),m=[]),s.push(n[b]));m.length>0&&s.push(Mt(m,r));var E;t?(E=Mt(rr(t,r,!0)),E.classes=["tag"],s.push(E)):u&&s.push(u);var F=$r(["katex-html"],s);if(F.setAttribute("aria-hidden","true"),E){var U=E.children[0];U.style.height=ae(F.height+F.depth),F.depth&&(U.style.verticalAlign=ae(-F.depth))}return F}function Tt(d){return new Rr(d)}var _r=function(){function d(t,n,u){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=t,this.attributes={},this.children=n||[],this.classes=u||[]}var r=d.prototype;return r.setAttribute=function(n,u){this.attributes[n]=u},r.getAttribute=function(n){return this.attributes[n]},r.toNode=function(){var n=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var u in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,u)&&n.setAttribute(u,this.attributes[u]);this.classes.length>0&&(n.className=t0(this.classes));for(var s=0;s0&&(n+=' class ="'+K.escape(t0(this.classes))+'"'),n+=">";for(var s=0;s",n},r.toText=function(){return this.children.map(function(n){return n.toText()}).join("")},d}(),rt=function(){function d(t){this.text=void 0,this.text=t}var r=d.prototype;return r.toNode=function(){return document.createTextNode(this.text)},r.toMarkup=function(){return K.escape(this.toText())},r.toText=function(){return this.text},d}(),bi=function(){function d(t){this.width=void 0,this.character=void 0,this.width=t,t>=.05555&&t<=.05556?this.character=" ":t>=.1666&&t<=.1667?this.character=" ":t>=.2222&&t<=.2223?this.character=" ":t>=.2777&&t<=.2778?this.character="  ":t>=-.05556&&t<=-.05555?this.character=" ⁣":t>=-.1667&&t<=-.1666?this.character=" ⁣":t>=-.2223&&t<=-.2222?this.character=" ⁣":t>=-.2778&&t<=-.2777?this.character=" ⁣":this.character=null}var r=d.prototype;return r.toNode=function(){if(this.character)return document.createTextNode(this.character);var n=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return n.setAttribute("width",ae(this.width)),n},r.toMarkup=function(){return this.character?""+this.character+"":''},r.toText=function(){return this.character?this.character:" "},d}(),te={MathNode:_r,TextNode:rt,SpaceNode:bi,newDocumentFragment:Tt},kr=function(r,t,n){return Ve[t][r]&&Ve[t][r].replace&&r.charCodeAt(0)!==55349&&!(j0.hasOwnProperty(r)&&n&&(n.fontFamily&&n.fontFamily.slice(4,6)==="tt"||n.font&&n.font.slice(4,6)==="tt"))&&(r=Ve[t][r].replace),new te.TextNode(r)},cn=function(r){return r.length===1?r[0]:new te.MathNode("mrow",r)},hn=function(r,t){if(t.fontFamily==="texttt")return"monospace";if(t.fontFamily==="textsf")return t.fontShape==="textit"&&t.fontWeight==="textbf"?"sans-serif-bold-italic":t.fontShape==="textit"?"sans-serif-italic":t.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(t.fontShape==="textit"&&t.fontWeight==="textbf")return"bold-italic";if(t.fontShape==="textit")return"italic";if(t.fontWeight==="textbf")return"bold";var n=t.font;if(!n||n==="mathnormal")return null;var u=r.mode;if(n==="mathit")return"italic";if(n==="boldsymbol")return r.type==="textord"?"bold":"bold-italic";if(n==="mathbf")return"bold";if(n==="mathbb")return"double-struck";if(n==="mathfrak")return"fraktur";if(n==="mathscr"||n==="mathcal")return"script";if(n==="mathsf")return"sans-serif";if(n==="mathtt")return"monospace";var s=r.text;if(K.contains(["\\imath","\\jmath"],s))return null;Ve[u][s]&&Ve[u][s].replace&&(s=Ve[u][s].replace);var m=V.fontMap[n].fontName;return mt(s,m,u)?V.fontMap[n].variant:null},yr=function(r,t,n){if(r.length===1){var u=Pe(r[0],t);return n&&u instanceof _r&&u.type==="mo"&&(u.setAttribute("lspace","0em"),u.setAttribute("rspace","0em")),[u]}for(var s=[],m,b=0;b0&&(j.text=j.text.slice(0,1)+"̸"+j.text.slice(1),s.pop())}}}s.push(C),m=C}return s},a0=function(r,t,n){return cn(yr(r,t,n))},Pe=function(r,t){if(!r)return new te.MathNode("mrow");if(Et[r.type]){var n=Et[r.type](r,t);return n}else throw new k("Got group of unknown type: '"+r.type+"'")};function wi(d,r,t,n,u){var s=yr(d,t),m;s.length===1&&s[0]instanceof _r&&K.contains(["mrow","mtable"],s[0].type)?m=s[0]:m=new te.MathNode("mrow",s);var b=new te.MathNode("annotation",[new te.TextNode(r)]);b.setAttribute("encoding","application/x-tex");var C=new te.MathNode("semantics",[m,b]),E=new te.MathNode("math",[C]);E.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),n&&E.setAttribute("display","block");var F=u?"katex":"katex-mathml";return V.makeSpan([F],[E])}var Ai=function(r){return new ii({style:r.displayMode?ue.DISPLAY:ue.TEXT,maxSize:r.maxSize,minRuleThickness:r.minRuleThickness})},ki=function(r,t){if(t.displayMode){var n=["katex-display"];t.leqno&&n.push("leqno"),t.fleqn&&n.push("fleqn"),r=V.makeSpan(n,[r])}return r},hu=function(r,t,n){var u=Ai(n),s;if(n.output==="mathml")return wi(r,t,u,n.displayMode,!0);if(n.output==="html"){var m=et(r,u);s=V.makeSpan(["katex"],[m])}else{var b=wi(r,t,u,n.displayMode,!1),C=et(r,u);s=V.makeSpan(["katex"],[b,C])}return ki(s,n)},fu=function(r,t,n){var u=Ai(n),s=et(r,u),m=V.makeSpan(["katex"],[s]);return ki(m,n)},pu={widehat:"^",widecheck:"ˇ",widetilde:"~",utilde:"~",overleftarrow:"←",underleftarrow:"←",xleftarrow:"←",overrightarrow:"→",underrightarrow:"→",xrightarrow:"→",underbrace:"⏟",overbrace:"⏞",overgroup:"⏠",undergroup:"⏡",overleftrightarrow:"↔",underleftrightarrow:"↔",xleftrightarrow:"↔",Overrightarrow:"⇒",xRightarrow:"⇒",overleftharpoon:"↼",xleftharpoonup:"↼",overrightharpoon:"⇀",xrightharpoonup:"⇀",xLeftarrow:"⇐",xLeftrightarrow:"⇔",xhookleftarrow:"↩",xhookrightarrow:"↪",xmapsto:"↦",xrightharpoondown:"⇁",xleftharpoondown:"↽",xrightleftharpoons:"⇌",xleftrightharpoons:"⇋",xtwoheadleftarrow:"↞",xtwoheadrightarrow:"↠",xlongequal:"=",xtofrom:"⇄",xrightleftarrows:"⇄",xrightequilibrium:"⇌",xleftequilibrium:"⇋","\\cdrightarrow":"→","\\cdleftarrow":"←","\\cdlongequal":"="},nr=function(r){var t=new te.MathNode("mo",[new te.TextNode(pu[r.replace(/^\\/,"")])]);return t.setAttribute("stretchy","true"),t},Si={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],"\\cdrightarrow":[["rightarrow"],3,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],"\\cdleftarrow":[["leftarrow"],3,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],"\\cdlongequal":[["longequal"],3,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},tt=function(r){return r.type==="ordgroup"?r.body.length:1},fr=function(r,t){function n(){var C=4e5,E=r.label.slice(1);if(K.contains(["widehat","widecheck","widetilde","utilde"],E)){var F=r,U=tt(F.base),$,Y,j;if(U>5)E==="widehat"||E==="widecheck"?($=420,C=2364,j=.42,Y=E+"4"):($=312,C=2340,j=.34,Y="tilde4");else{var ie=[1,1,2,2,3,3][U];E==="widehat"||E==="widecheck"?(C=[0,1062,2364,2364,2364][ie],$=[0,239,300,360,420][ie],j=[0,.24,.3,.3,.36,.42][ie],Y=E+ie):(C=[0,600,1033,2339,2340][ie],$=[0,260,286,306,312][ie],j=[0,.26,.286,.3,.306,.34][ie],Y="tilde"+ie)}var le=new Wr(Y),fe=new Or([le],{width:"100%",height:ae(j),viewBox:"0 0 "+C+" "+$,preserveAspectRatio:"none"});return{span:V.makeSvgSpan([],[fe],t),minWidth:0,height:j}}else{var de=[],ve=Si[E],ze=ve[0],Ce=ve[1],qe=ve[2],Ne=qe/1e3,Ie=ze.length,He,Qe;if(Ie===1){var Sr=ve[3];He=["hide-tail"],Qe=[Sr]}else if(Ie===2)He=["halfarrow-left","halfarrow-right"],Qe=["xMinYMin","xMaxYMin"];else if(Ie===3)He=["brace-left","brace-center","brace-right"],Qe=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support `+Ie+" children.");for(var je=0;je0&&(s.style.minWidth=ae(m)),s},fn=function(r,t,n,u,s){var m,b=r.height+r.depth+n+u;if(/fbox|color|angl/.test(t)){if(m=V.makeSpan(["stretchy",t],[],s),t==="fbox"){var C=s.color&&s.getColor();C&&(m.style.borderColor=C)}}else{var E=[];/^[bx]cancel$/.test(t)&&E.push(new Kr({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(t)&&E.push(new Kr({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var F=new Or(E,{width:"100%",height:ae(b)});m=V.makeSvgSpan([],[F],s)}return m.height=b,m.style.height=ae(b),m},Pr={encloseSpan:fn,mathMLnode:nr,svgSpan:fr};function Ee(d,r){if(!d||d.type!==r)throw new Error("Expected node of type "+r+", but got "+(d?"node of type "+d.type:String(d)));return d}function pn(d){var r=_t(d);if(!r)throw new Error("Expected node of symbol group type, but got "+(d?"node of type "+d.type:String(d)));return r}function _t(d){return d&&(d.type==="atom"||ja.hasOwnProperty(d.type))?d:null}var dn=function(r,t){var n,u,s;r&&r.type==="supsub"?(u=Ee(r.base,"accent"),n=u.base,r.base=n,s=Ya(Fe(r,t)),r.base=u):(u=Ee(r,"accent"),n=u.base);var m=Fe(n,t.havingCrampedStyle()),b=u.isShifty&&K.isCharacterBox(n),C=0;if(b){var E=K.getBaseElem(n),F=Fe(E,t.havingCrampedStyle());C=si(F).skew}var U=u.label==="\\c",$=U?m.height+m.depth:Math.min(m.height,t.fontMetrics().xHeight),Y;if(u.isStretchy)Y=Pr.svgSpan(u,t),Y=V.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:m},{type:"elem",elem:Y,wrapperClasses:["svg-align"],wrapperStyle:C>0?{width:"calc(100% - "+ae(2*C)+")",marginLeft:ae(2*C)}:void 0}]},t);else{var j,ie;u.label==="\\vec"?(j=V.staticSvg("vec",t),ie=V.svgData.vec[1]):(j=V.makeOrd({mode:u.mode,text:u.label},t,"textord"),j=si(j),j.italic=0,ie=j.width,U&&($+=j.depth)),Y=V.makeSpan(["accent-body"],[j]);var le=u.label==="\\textcircled";le&&(Y.classes.push("accent-full"),$=m.height);var fe=C;le||(fe-=ie/2),Y.style.left=ae(fe),u.label==="\\textcircled"&&(Y.style.top=".2em"),Y=V.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:m},{type:"kern",size:-$},{type:"elem",elem:Y}]},t)}var de=V.makeSpan(["mord","accent"],[Y],t);return s?(s.children[0]=de,s.height=Math.max(de.height,s.height),s.classes[0]="mord",s):de},Ci=function(r,t){var n=r.isStretchy?Pr.mathMLnode(r.label):new te.MathNode("mo",[kr(r.label,r.mode)]),u=new te.MathNode("mover",[Pe(r.base,t),n]);return u.setAttribute("accent","true"),u},du=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(function(d){return"\\"+d}).join("|"));oe({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(r,t){var n=Bt(t[0]),u=!du.test(r.funcName),s=!u||r.funcName==="\\widehat"||r.funcName==="\\widetilde"||r.funcName==="\\widecheck";return{type:"accent",mode:r.parser.mode,label:r.funcName,isStretchy:u,isShifty:s,base:n}},htmlBuilder:dn,mathmlBuilder:Ci}),oe({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:function(r,t){var n=t[0],u=r.parser.mode;return u==="math"&&(r.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+r.funcName+" works only in text mode"),u="text"),{type:"accent",mode:u,label:r.funcName,isStretchy:!1,isShifty:!0,base:n}},htmlBuilder:dn,mathmlBuilder:Ci}),oe({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:function(r,t){var n=r.parser,u=r.funcName,s=t[0];return{type:"accentUnder",mode:n.mode,label:u,base:s}},htmlBuilder:function(r,t){var n=Fe(r.base,t),u=Pr.svgSpan(r,t),s=r.label==="\\utilde"?.12:0,m=V.makeVList({positionType:"top",positionData:n.height,children:[{type:"elem",elem:u,wrapperClasses:["svg-align"]},{type:"kern",size:s},{type:"elem",elem:n}]},t);return V.makeSpan(["mord","accentunder"],[m],t)},mathmlBuilder:function(r,t){var n=Pr.mathMLnode(r.label),u=new te.MathNode("munder",[Pe(r.base,t),n]);return u.setAttribute("accentunder","true"),u}});var tr=function(r){var t=new te.MathNode("mpadded",r?[r]:[]);return t.setAttribute("width","+0.6em"),t.setAttribute("lspace","0.3em"),t};oe({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","\\\\cdrightarrow","\\\\cdleftarrow","\\\\cdlongequal"],props:{numArgs:1,numOptionalArgs:1},handler:function(r,t,n){var u=r.parser,s=r.funcName;return{type:"xArrow",mode:u.mode,label:s,body:t[0],below:n[0]}},htmlBuilder:function(r,t){var n=t.style,u=t.havingStyle(n.sup()),s=V.wrapFragment(Fe(r.body,u,t),t),m=r.label.slice(0,2)==="\\x"?"x":"cd";s.classes.push(m+"-arrow-pad");var b;r.below&&(u=t.havingStyle(n.sub()),b=V.wrapFragment(Fe(r.below,u,t),t),b.classes.push(m+"-arrow-pad"));var C=Pr.svgSpan(r,t),E=-t.fontMetrics().axisHeight+.5*C.height,F=-t.fontMetrics().axisHeight-.5*C.height-.111;(s.depth>.25||r.label==="\\xleftequilibrium")&&(F-=s.depth);var U;if(b){var $=-t.fontMetrics().axisHeight+b.height+.5*C.height+.111;U=V.makeVList({positionType:"individualShift",children:[{type:"elem",elem:s,shift:F},{type:"elem",elem:C,shift:E},{type:"elem",elem:b,shift:$}]},t)}else U=V.makeVList({positionType:"individualShift",children:[{type:"elem",elem:s,shift:F},{type:"elem",elem:C,shift:E}]},t);return U.children[0].children[0].children[1].classes.push("svg-align"),V.makeSpan(["mrel","x-arrow"],[U],t)},mathmlBuilder:function(r,t){var n=Pr.mathMLnode(r.label);n.setAttribute("minsize",r.label.charAt(0)==="x"?"1.75em":"3.0em");var u;if(r.body){var s=tr(Pe(r.body,t));if(r.below){var m=tr(Pe(r.below,t));u=new te.MathNode("munderover",[n,m,s])}else u=new te.MathNode("mover",[n,s])}else if(r.below){var b=tr(Pe(r.below,t));u=new te.MathNode("munder",[n,b])}else u=tr(),u=new te.MathNode("mover",[n,u]);return u}});var Di=V.makeSpan;function Ei(d,r){var t=rr(d.body,r,!0);return Di([d.mclass],t,r)}function zt(d,r){var t,n=yr(d.body,r);return d.mclass==="minner"?t=new te.MathNode("mpadded",n):d.mclass==="mord"?d.isCharacterBox?(t=n[0],t.type="mi"):t=new te.MathNode("mi",n):(d.isCharacterBox?(t=n[0],t.type="mo"):t=new te.MathNode("mo",n),d.mclass==="mbin"?(t.attributes.lspace="0.22em",t.attributes.rspace="0.22em"):d.mclass==="mpunct"?(t.attributes.lspace="0em",t.attributes.rspace="0.17em"):d.mclass==="mopen"||d.mclass==="mclose"?(t.attributes.lspace="0em",t.attributes.rspace="0em"):d.mclass==="minner"&&(t.attributes.lspace="0.0556em",t.attributes.width="+0.1111em")),t}oe({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler:function(r,t){var n=r.parser,u=r.funcName,s=t[0];return{type:"mclass",mode:n.mode,mclass:"m"+u.slice(5),body:er(s),isCharacterBox:K.isCharacterBox(s)}},htmlBuilder:Ei,mathmlBuilder:zt});var nt=function(r){var t=r.type==="ordgroup"&&r.body.length?r.body[0]:r;return t.type==="atom"&&(t.family==="bin"||t.family==="rel")?"m"+t.family:"mord"};oe({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler:function(r,t){var n=r.parser;return{type:"mclass",mode:n.mode,mclass:nt(t[0]),body:er(t[1]),isCharacterBox:K.isCharacterBox(t[1])}}}),oe({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler:function(r,t){var n=r.parser,u=r.funcName,s=t[1],m=t[0],b;u!=="\\stackrel"?b=nt(s):b="mrel";var C={type:"op",mode:s.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:u!=="\\stackrel",body:er(s)},E={type:"supsub",mode:m.mode,base:C,sup:u==="\\underset"?null:m,sub:u==="\\underset"?m:null};return{type:"mclass",mode:n.mode,mclass:b,body:[E],isCharacterBox:K.isCharacterBox(E)}},htmlBuilder:Ei,mathmlBuilder:zt}),oe({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler:function(r,t){var n=r.parser;return{type:"pmb",mode:n.mode,mclass:nt(t[0]),body:er(t[0])}},htmlBuilder:function(r,t){var n=rr(r.body,t,!0),u=V.makeSpan([r.mclass],n,t);return u.style.textShadow="0.02em 0.01em 0.04px",u},mathmlBuilder:function(r,t){var n=yr(r.body,t),u=new te.MathNode("mstyle",n);return u.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),u}});var Bi={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},mn=function(){return{type:"styling",body:[],mode:"math",style:"display"}},vn=function(r){return r.type==="textord"&&r.text==="@"},Mi=function(r,t){return(r.type==="mathord"||r.type==="atom")&&r.text===t};function mu(d,r,t){var n=Bi[d];switch(n){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return t.callFunction(n,[r[0]],[r[1]]);case"\\uparrow":case"\\downarrow":{var u=t.callFunction("\\\\cdleft",[r[0]],[]),s={type:"atom",text:n,mode:"math",family:"rel"},m=t.callFunction("\\Big",[s],[]),b=t.callFunction("\\\\cdright",[r[1]],[]),C={type:"ordgroup",mode:"math",body:[u,m,b]};return t.callFunction("\\\\cdparent",[C],[])}case"\\\\cdlongequal":return t.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":{var E={type:"textord",text:"\\Vert",mode:"math"};return t.callFunction("\\Big",[E],[])}default:return{type:"textord",text:" ",mode:"math"}}}function vu(d){var r=[];for(d.gullet.beginGroup(),d.gullet.macros.set("\\cr","\\\\\\relax"),d.gullet.beginGroup();;){r.push(d.parseExpression(!1,"\\\\")),d.gullet.endGroup(),d.gullet.beginGroup();var t=d.fetch().text;if(t==="&"||t==="\\\\")d.consume();else if(t==="\\end"){r[r.length-1].length===0&&r.pop();break}else throw new k("Expected \\\\ or \\cr or \\end",d.nextToken)}for(var n=[],u=[n],s=0;s-1))if("<>AV".indexOf(E)>-1)for(var U=0;U<2;U++){for(var $=!0,Y=C+1;YAV=|." after @',m[C]);var j=mu(E,F,d),ie={type:"styling",body:[j],mode:"math",style:"display"};n.push(ie),b=mn()}s%2===0?n.push(b):n.shift(),n=[],u.push(n)}d.gullet.endGroup(),d.gullet.endGroup();var le=new Array(u[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25});return{type:"array",mode:"math",body:u,arraystretch:1,addJot:!0,rowGaps:[null],cols:le,colSeparationType:"CD",hLinesBeforeRow:new Array(u.length+1).fill([])}}oe({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler:function(r,t){var n=r.parser,u=r.funcName;return{type:"cdlabel",mode:n.mode,side:u.slice(4),label:t[0]}},htmlBuilder:function(r,t){var n=t.havingStyle(t.style.sup()),u=V.wrapFragment(Fe(r.label,n,t),t);return u.classes.push("cd-label-"+r.side),u.style.bottom=ae(.8-u.depth),u.height=0,u.depth=0,u},mathmlBuilder:function(r,t){var n=new te.MathNode("mrow",[Pe(r.label,t)]);return n=new te.MathNode("mpadded",[n]),n.setAttribute("width","0"),r.side==="left"&&n.setAttribute("lspace","-1width"),n.setAttribute("voffset","0.7em"),n=new te.MathNode("mstyle",[n]),n.setAttribute("displaystyle","false"),n.setAttribute("scriptlevel","1"),n}}),oe({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler:function(r,t){var n=r.parser;return{type:"cdlabelparent",mode:n.mode,fragment:t[0]}},htmlBuilder:function(r,t){var n=V.wrapFragment(Fe(r.fragment,t),t);return n.classes.push("cd-vert-arrow"),n},mathmlBuilder:function(r,t){return new te.MathNode("mrow",[Pe(r.fragment,t)])}}),oe({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler:function(r,t){for(var n=r.parser,u=Ee(t[0],"ordgroup"),s=u.body,m="",b=0;b=1114111)throw new k("\\@char with invalid code point "+m);return E<=65535?F=String.fromCharCode(E):(E-=65536,F=String.fromCharCode((E>>10)+55296,(E&1023)+56320)),{type:"textord",mode:n.mode,text:F}}});var Ti=function(r,t){var n=rr(r.body,t.withColor(r.color),!1);return V.makeFragment(n)},gn=function(r,t){var n=yr(r.body,t.withColor(r.color)),u=new te.MathNode("mstyle",n);return u.setAttribute("mathcolor",r.color),u};oe({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler:function(r,t){var n=r.parser,u=Ee(t[0],"color-token").color,s=t[1];return{type:"color",mode:n.mode,color:u,body:er(s)}},htmlBuilder:Ti,mathmlBuilder:gn}),oe({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler:function(r,t){var n=r.parser,u=r.breakOnTokenText,s=Ee(t[0],"color-token").color;n.gullet.macros.set("\\current@color",s);var m=n.parseExpression(!0,u);return{type:"color",mode:n.mode,color:s,body:m}},htmlBuilder:Ti,mathmlBuilder:gn}),oe({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler:function(r,t,n){var u=r.parser,s=u.gullet.future().text==="["?u.parseSizeGroup(!0):null,m=!u.settings.displayMode||!u.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:u.mode,newLine:m,size:s&&Ee(s,"size").value}},htmlBuilder:function(r,t){var n=V.makeSpan(["mspace"],[],t);return r.newLine&&(n.classes.push("newline"),r.size&&(n.style.marginTop=ae(Ye(r.size,t)))),n},mathmlBuilder:function(r,t){var n=new te.MathNode("mspace");return r.newLine&&(n.setAttribute("linebreak","newline"),r.size&&n.setAttribute("height",ae(Ye(r.size,t)))),n}});var xn={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},_i=function(r){var t=r.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new k("Expected a control sequence",r);return t},gu=function(r){var t=r.gullet.popToken();return t.text==="="&&(t=r.gullet.popToken(),t.text===" "&&(t=r.gullet.popToken())),t},yn=function(r,t,n,u){var s=r.gullet.macros.get(n.text);s==null&&(n.noexpand=!0,s={tokens:[n],numArgs:0,unexpandable:!r.gullet.isExpandable(n.text)}),r.gullet.macros.set(t,s,u)};oe({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler:function(r){var t=r.parser,n=r.funcName;t.consumeSpaces();var u=t.fetch();if(xn[u.text])return(n==="\\global"||n==="\\\\globallong")&&(u.text=xn[u.text]),Ee(t.parseFunction(),"internal");throw new k("Invalid token after macro prefix",u)}}),oe({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler:function(r){var t=r.parser,n=r.funcName,u=t.gullet.popToken(),s=u.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(s))throw new k("Expected a control sequence",u);for(var m=0,b,C=[[]];t.gullet.future().text!=="{";)if(u=t.gullet.popToken(),u.text==="#"){if(t.gullet.future().text==="{"){b=t.gullet.future(),C[m].push("{");break}if(u=t.gullet.popToken(),!/^[1-9]$/.test(u.text))throw new k('Invalid argument number "'+u.text+'"');if(parseInt(u.text)!==m+1)throw new k('Argument number "'+u.text+'" out of order');m++,C.push([])}else{if(u.text==="EOF")throw new k("Expected a macro definition");C[m].push(u.text)}var E=t.gullet.consumeArg(),F=E.tokens;return b&&F.unshift(b),(n==="\\edef"||n==="\\xdef")&&(F=t.gullet.expandTokens(F),F.reverse()),t.gullet.macros.set(s,{tokens:F,numArgs:m,delimiters:C},n===xn[n]),{type:"internal",mode:t.mode}}}),oe({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler:function(r){var t=r.parser,n=r.funcName,u=_i(t.gullet.popToken());t.gullet.consumeSpaces();var s=gu(t);return yn(t,u,s,n==="\\\\globallet"),{type:"internal",mode:t.mode}}}),oe({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler:function(r){var t=r.parser,n=r.funcName,u=_i(t.gullet.popToken()),s=t.gullet.popToken(),m=t.gullet.popToken();return yn(t,u,m,n==="\\\\globalfuture"),t.gullet.pushToken(m),t.gullet.pushToken(s),{type:"internal",mode:t.mode}}});var it=function(r,t,n){var u=Ve.math[r]&&Ve.math[r].replace,s=mt(u||r,t,n);if(!s)throw new Error("Unsupported symbol "+r+" and font size "+t+".");return s},bn=function(r,t,n,u){var s=n.havingBaseStyle(t),m=V.makeSpan(u.concat(s.sizingClasses(n)),[r],n),b=s.sizeMultiplier/n.sizeMultiplier;return m.height*=b,m.depth*=b,m.maxFontSize=s.sizeMultiplier,m},zi=function(r,t,n){var u=t.havingBaseStyle(n),s=(1-t.sizeMultiplier/u.sizeMultiplier)*t.fontMetrics().axisHeight;r.classes.push("delimcenter"),r.style.top=ae(s),r.height-=s,r.depth+=s},xu=function(r,t,n,u,s,m){var b=V.makeSymbol(r,"Main-Regular",s,u),C=bn(b,t,u,m);return n&&zi(C,u,t),C},yu=function(r,t,n,u){return V.makeSymbol(r,"Size"+t+"-Regular",n,u)},Fi=function(r,t,n,u,s,m){var b=yu(r,t,s,u),C=bn(V.makeSpan(["delimsizing","size"+t],[b],u),ue.TEXT,u,m);return n&&zi(C,u,ue.TEXT),C},Ft=function(r,t,n){var u;t==="Size1-Regular"?u="delim-size1":u="delim-size4";var s=V.makeSpan(["delimsizinginner",u],[V.makeSpan([],[V.makeSymbol(r,t,n)])]);return{type:"elem",elem:s}},wn=function(r,t,n){var u=xr["Size4-Regular"][r.charCodeAt(0)]?xr["Size4-Regular"][r.charCodeAt(0)][4]:xr["Size1-Regular"][r.charCodeAt(0)][4],s=new Wr("inner",nn(r,Math.round(1e3*t))),m=new Or([s],{width:ae(u),height:ae(t),style:"width:"+ae(u),viewBox:"0 0 "+1e3*u+" "+Math.round(1e3*t),preserveAspectRatio:"xMinYMin"}),b=V.makeSvgSpan([],[m],n);return b.height=t,b.style.height=ae(t),b.style.width=ae(u),{type:"elem",elem:b}},An=.008,Nt={type:"kern",size:-1*An},bu=["|","\\lvert","\\rvert","\\vert"],wu=["\\|","\\lVert","\\rVert","\\Vert"],Ni=function(r,t,n,u,s,m){var b,C,E,F,U="",$=0;b=E=F=r,C=null;var Y="Size1-Regular";r==="\\uparrow"?E=F="⏐":r==="\\Uparrow"?E=F="‖":r==="\\downarrow"?b=E="⏐":r==="\\Downarrow"?b=E="‖":r==="\\updownarrow"?(b="\\uparrow",E="⏐",F="\\downarrow"):r==="\\Updownarrow"?(b="\\Uparrow",E="‖",F="\\Downarrow"):K.contains(bu,r)?(E="∣",U="vert",$=333):K.contains(wu,r)?(E="∥",U="doublevert",$=556):r==="["||r==="\\lbrack"?(b="⎡",E="⎢",F="⎣",Y="Size4-Regular",U="lbrack",$=667):r==="]"||r==="\\rbrack"?(b="⎤",E="⎥",F="⎦",Y="Size4-Regular",U="rbrack",$=667):r==="\\lfloor"||r==="⌊"?(E=b="⎢",F="⎣",Y="Size4-Regular",U="lfloor",$=667):r==="\\lceil"||r==="⌈"?(b="⎡",E=F="⎢",Y="Size4-Regular",U="lceil",$=667):r==="\\rfloor"||r==="⌋"?(E=b="⎥",F="⎦",Y="Size4-Regular",U="rfloor",$=667):r==="\\rceil"||r==="⌉"?(b="⎤",E=F="⎥",Y="Size4-Regular",U="rceil",$=667):r==="("||r==="\\lparen"?(b="⎛",E="⎜",F="⎝",Y="Size4-Regular",U="lparen",$=875):r===")"||r==="\\rparen"?(b="⎞",E="⎟",F="⎠",Y="Size4-Regular",U="rparen",$=875):r==="\\{"||r==="\\lbrace"?(b="⎧",C="⎨",F="⎩",E="⎪",Y="Size4-Regular"):r==="\\}"||r==="\\rbrace"?(b="⎫",C="⎬",F="⎭",E="⎪",Y="Size4-Regular"):r==="\\lgroup"||r==="⟮"?(b="⎧",F="⎩",E="⎪",Y="Size4-Regular"):r==="\\rgroup"||r==="⟯"?(b="⎫",F="⎭",E="⎪",Y="Size4-Regular"):r==="\\lmoustache"||r==="⎰"?(b="⎧",F="⎭",E="⎪",Y="Size4-Regular"):(r==="\\rmoustache"||r==="⎱")&&(b="⎫",F="⎩",E="⎪",Y="Size4-Regular");var j=it(b,Y,s),ie=j.height+j.depth,le=it(E,Y,s),fe=le.height+le.depth,de=it(F,Y,s),ve=de.height+de.depth,ze=0,Ce=1;if(C!==null){var qe=it(C,Y,s);ze=qe.height+qe.depth,Ce=2}var Ne=ie+ve+ze,Ie=Math.max(0,Math.ceil((t-Ne)/(Ce*fe))),He=Ne+Ie*Ce*fe,Qe=u.fontMetrics().axisHeight;n&&(Qe*=u.sizeMultiplier);var Sr=He/2-Qe,je=[];if(U.length>0){var c0=He-ie-ve,Cr=Math.round(He*1e3),dr=Va(U,Math.round(c0*1e3)),Qr=new Wr(U,dr),I0=($/1e3).toFixed(3)+"em",R0=(Cr/1e3).toFixed(3)+"em",Wt=new Or([Qr],{width:I0,height:R0,viewBox:"0 0 "+$+" "+Cr}),h0=V.makeSvgSpan([],[Wt],u);h0.height=Cr/1e3,h0.style.width=I0,h0.style.height=R0,je.push({type:"elem",elem:h0})}else{if(je.push(Ft(F,Y,s)),je.push(Nt),C===null){var f0=He-ie-ve+2*An;je.push(wn(E,f0,u))}else{var Dr=(He-ie-ve-ze)/2+2*An;je.push(wn(E,Dr,u)),je.push(Nt),je.push(Ft(C,Y,s)),je.push(Nt),je.push(wn(E,Dr,u))}je.push(Nt),je.push(Ft(b,Y,s))}var Er=u.havingBaseStyle(ue.TEXT),On=V.makeVList({positionType:"bottom",positionData:Sr,children:je},Er);return bn(V.makeSpan(["delimsizing","mult"],[On],Er),ue.TEXT,u,m)},qt=80,It=.08,Rt=function(r,t,n,u,s){var m=g0(r,u,n),b=new Wr(r,m),C=new Or([b],{width:"400em",height:ae(t),viewBox:"0 0 400000 "+n,preserveAspectRatio:"xMinYMin slice"});return V.makeSvgSpan(["hide-tail"],[C],s)},qi=function(r,t){var n=t.havingBaseSizing(),u=Li("\\surd",r*n.sizeMultiplier,Ot,n),s=n.sizeMultiplier,m=Math.max(0,t.minRuleThickness-t.fontMetrics().sqrtRuleThickness),b,C=0,E=0,F=0,U;return u.type==="small"?(F=1e3+1e3*m+qt,r<1?s=1:r<1.4&&(s=.7),C=(1+m+It)/s,E=(1+m)/s,b=Rt("sqrtMain",C,F,m,t),b.style.minWidth="0.853em",U=.833/s):u.type==="large"?(F=(1e3+qt)*at[u.size],E=(at[u.size]+m)/s,C=(at[u.size]+m+It)/s,b=Rt("sqrtSize"+u.size,C,F,m,t),b.style.minWidth="1.02em",U=1/s):(C=r+m+It,E=r+m,F=Math.floor(1e3*r+m)+qt,b=Rt("sqrtTall",C,F,m,t),b.style.minWidth="0.742em",U=1.056),b.height=E,b.style.height=ae(C),{span:b,advanceWidth:U,ruleWidth:(t.fontMetrics().sqrtRuleThickness+m)*s}},kn=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"],Au=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"],Ii=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],at=[0,1.2,1.8,2.4,3],Ri=function(r,t,n,u,s){if(r==="<"||r==="\\lt"||r==="⟨"?r="\\langle":(r===">"||r==="\\gt"||r==="⟩")&&(r="\\rangle"),K.contains(kn,r)||K.contains(Ii,r))return Fi(r,t,!1,n,u,s);if(K.contains(Au,r))return Ni(r,at[t],!1,n,u,s);throw new k("Illegal delimiter: '"+r+"'")},ku=[{type:"small",style:ue.SCRIPTSCRIPT},{type:"small",style:ue.SCRIPT},{type:"small",style:ue.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],Oi=[{type:"small",style:ue.SCRIPTSCRIPT},{type:"small",style:ue.SCRIPT},{type:"small",style:ue.TEXT},{type:"stack"}],Ot=[{type:"small",style:ue.SCRIPTSCRIPT},{type:"small",style:ue.SCRIPT},{type:"small",style:ue.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],Su=function(r){if(r.type==="small")return"Main-Regular";if(r.type==="large")return"Size"+r.size+"-Regular";if(r.type==="stack")return"Size4-Regular";throw new Error("Add support for delim type '"+r.type+"' here.")},Li=function(r,t,n,u){for(var s=Math.min(2,3-u.style.size),m=s;mt)return n[m]}return n[n.length-1]},Pi=function(r,t,n,u,s,m){r==="<"||r==="\\lt"||r==="⟨"?r="\\langle":(r===">"||r==="\\gt"||r==="⟩")&&(r="\\rangle");var b;K.contains(Ii,r)?b=ku:K.contains(kn,r)?b=Ot:b=Oi;var C=Li(r,t,b,u);return C.type==="small"?xu(r,C.style,n,u,s,m):C.type==="large"?Fi(r,C.size,n,u,s,m):Ni(r,t,n,u,s,m)},Cu=function(r,t,n,u,s,m){var b=u.fontMetrics().axisHeight*u.sizeMultiplier,C=901,E=5/u.fontMetrics().ptPerEm,F=Math.max(t-b,n+b),U=Math.max(F/500*C,2*F-E);return Pi(r,U,!0,u,s,m)},Yr={sqrtImage:qi,sizedDelim:Ri,sizeToMaxHeight:at,customSizedDelim:Pi,leftRightDelim:Cu},Hi={"\\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}},Du=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","<",">","\\langle","⟨","\\rangle","⟩","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."];function Lt(d,r){var t=_t(d);if(t&&K.contains(Du,t.text))return t;throw t?new k("Invalid delimiter '"+t.text+"' after '"+r.funcName+"'",d):new k("Invalid delimiter type '"+d.type+"'",d)}oe({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1,argTypes:["primitive"]},handler:function(r,t){var n=Lt(t[0],r);return{type:"delimsizing",mode:r.parser.mode,size:Hi[r.funcName].size,mclass:Hi[r.funcName].mclass,delim:n.text}},htmlBuilder:function(r,t){return r.delim==="."?V.makeSpan([r.mclass]):Yr.sizedDelim(r.delim,r.size,t,r.mode,[r.mclass])},mathmlBuilder:function(r){var t=[];r.delim!=="."&&t.push(kr(r.delim,r.mode));var n=new te.MathNode("mo",t);r.mclass==="mopen"||r.mclass==="mclose"?n.setAttribute("fence","true"):n.setAttribute("fence","false"),n.setAttribute("stretchy","true");var u=ae(Yr.sizeToMaxHeight[r.size]);return n.setAttribute("minsize",u),n.setAttribute("maxsize",u),n}});function Ui(d){if(!d.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}oe({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:!0},handler:function(r,t){var n=r.parser.gullet.macros.get("\\current@color");if(n&&typeof n!="string")throw new k("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:r.parser.mode,delim:Lt(t[0],r).text,color:n}}}),oe({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:function(r,t){var n=Lt(t[0],r),u=r.parser;++u.leftrightDepth;var s=u.parseExpression(!1);--u.leftrightDepth,u.expect("\\right",!1);var m=Ee(u.parseFunction(),"leftright-right");return{type:"leftright",mode:u.mode,body:s,left:n.text,right:m.delim,rightColor:m.color}},htmlBuilder:function(r,t){Ui(r);for(var n=rr(r.body,t,!0,["mopen","mclose"]),u=0,s=0,m=!1,b=0;b-1?"mpadded":"menclose",[Pe(r.body,t)]);switch(r.label){case"\\cancel":u.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":u.setAttribute("notation","downdiagonalstrike");break;case"\\phase":u.setAttribute("notation","phasorangle");break;case"\\sout":u.setAttribute("notation","horizontalstrike");break;case"\\fbox":u.setAttribute("notation","box");break;case"\\angl":u.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(n=t.fontMetrics().fboxsep*t.fontMetrics().ptPerEm,u.setAttribute("width","+"+2*n+"pt"),u.setAttribute("height","+"+2*n+"pt"),u.setAttribute("lspace",n+"pt"),u.setAttribute("voffset",n+"pt"),r.label==="\\fcolorbox"){var s=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness);u.setAttribute("style","border: "+s+"em solid "+String(r.borderColor))}break;case"\\xcancel":u.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return r.backgroundColor&&u.setAttribute("mathbackground",r.backgroundColor),u};oe({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","text"]},handler:function(r,t,n){var u=r.parser,s=r.funcName,m=Ee(t[0],"color-token").color,b=t[1];return{type:"enclose",mode:u.mode,label:s,backgroundColor:m,body:b}},htmlBuilder:Pt,mathmlBuilder:Sn}),oe({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","text"]},handler:function(r,t,n){var u=r.parser,s=r.funcName,m=Ee(t[0],"color-token").color,b=Ee(t[1],"color-token").color,C=t[2];return{type:"enclose",mode:u.mode,label:s,backgroundColor:b,borderColor:m,body:C}},htmlBuilder:Pt,mathmlBuilder:Sn}),oe({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler:function(r,t){var n=r.parser;return{type:"enclose",mode:n.mode,label:"\\fbox",body:t[0]}}}),oe({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout","\\phase"],props:{numArgs:1},handler:function(r,t){var n=r.parser,u=r.funcName,s=t[0];return{type:"enclose",mode:n.mode,label:u,body:s}},htmlBuilder:Pt,mathmlBuilder:Sn}),oe({type:"enclose",names:["\\angl"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!1},handler:function(r,t){var n=r.parser;return{type:"enclose",mode:n.mode,label:"\\angl",body:t[0]}}});var Vi={};function Xr(d){for(var r=d.type,t=d.names,n=d.props,u=d.handler,s=d.htmlBuilder,m=d.mathmlBuilder,b={type:r,numArgs:n.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:u},C=0;C1||!F)&&ie.pop(),fe.length0&&(ve+=.25),E.push({pos:ve,isDashed:Zt[Jt]})}for(ze(m[0]),n=0;n0&&(Sr+=de,Ne=b)){var O0=void 0;(u>0||r.hskipBeforeAndAfter)&&(O0=K.deflt(Dr.pregap,$),O0!==0&&(dr=V.makeSpan(["arraycolsep"],[]),dr.style.width=ae(O0),Cr.push(dr)));var L0=[];for(n=0;n0){for(var Hu=V.makeLineSpan("hline",t,F),Uu=V.makeLineSpan("hdashline",t,F),Ln=[{type:"elem",elem:C,shift:0}];E.length>0;){var ga=E.pop(),xa=ga.pos-je;ga.isDashed?Ln.push({type:"elem",elem:Uu,shift:xa}):Ln.push({type:"elem",elem:Hu,shift:xa})}C=V.makeVList({positionType:"individualShift",children:Ln},t)}if(I0.length===0)return V.makeSpan(["mord"],[C],t);var Pn=V.makeVList({positionType:"individualShift",children:I0},t);return Pn=V.makeSpan(["tag"],[Pn],t),V.makeFragment([C,Pn])},Ut={c:"center ",l:"left ",r:"right "},zr=function(r,t){for(var n=[],u=new te.MathNode("mtd",[],["mtr-glue"]),s=new te.MathNode("mtd",[],["mml-eqn-num"]),m=0;m0){var j=r.cols,ie="",le=!1,fe=0,de=j.length;j[0].type==="separator"&&($+="top ",fe=1),j[j.length-1].type==="separator"&&($+="bottom ",de-=1);for(var ve=fe;ve0?"left ":"",$+=Ie[Ie.length-1].length>0?"right ":"";for(var He=1;He-1?"alignat":"align",s=r.envName==="split",m=Ur(r.parser,{cols:n,addJot:!0,autoTag:s?void 0:jr(r.envName),emptySingleRow:!0,colSeparationType:u,maxNumCols:s?2:void 0,leqno:r.parser.settings.leqno},"display"),b,C=0,E={type:"ordgroup",mode:r.mode,body:[]};if(t[0]&&t[0].type==="ordgroup"){for(var F="",U=0;U0&&Y&&(le=1),n[j]={type:"align",align:ie,pregap:le,postgap:0}}return m.colSeparationType=Y?"align":"alignat",m};Xr({type:"array",names:["array","darray"],props:{numArgs:1},handler:function(r,t){var n=_t(t[0]),u=n?[t[0]]:Ee(t[0],"ordgroup").body,s=u.map(function(b){var C=pn(b),E=C.text;if("lcr".indexOf(E)!==-1)return{type:"align",align:E};if(E==="|")return{type:"separator",separator:"|"};if(E===":")return{type:"separator",separator:":"};throw new k("Unknown column alignment: "+E,b)}),m={cols:s,hskipBeforeAndAfter:!0,maxNumCols:s.length};return Ur(r.parser,m,Ht(r.envName))},htmlBuilder:Vr,mathmlBuilder:zr}),Xr({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler:function(r){var t={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[r.envName.replace("*","")],n="c",u={hskipBeforeAndAfter:!1,cols:[{type:"align",align:n}]};if(r.envName.charAt(r.envName.length-1)==="*"){var s=r.parser;if(s.consumeSpaces(),s.fetch().text==="["){if(s.consume(),s.consumeSpaces(),n=s.fetch().text,"lcr".indexOf(n)===-1)throw new k("Expected l or c or r",s.nextToken);s.consume(),s.consumeSpaces(),s.expect("]"),s.consume(),u.cols=[{type:"align",align:n}]}}var m=Ur(r.parser,u,Ht(r.envName)),b=Math.max.apply(Math,[0].concat(m.body.map(function(C){return C.length})));return m.cols=new Array(b).fill({type:"align",align:n}),t?{type:"leftright",mode:r.mode,body:[m],left:t[0],right:t[1],rightColor:void 0}:m},htmlBuilder:Vr,mathmlBuilder:zr}),Xr({type:"array",names:["smallmatrix"],props:{numArgs:0},handler:function(r){var t={arraystretch:.5},n=Ur(r.parser,t,"script");return n.colSeparationType="small",n},htmlBuilder:Vr,mathmlBuilder:zr}),Xr({type:"array",names:["subarray"],props:{numArgs:1},handler:function(r,t){var n=_t(t[0]),u=n?[t[0]]:Ee(t[0],"ordgroup").body,s=u.map(function(b){var C=pn(b),E=C.text;if("lc".indexOf(E)!==-1)return{type:"align",align:E};throw new k("Unknown column alignment: "+E,b)});if(s.length>1)throw new k("{subarray} can contain only one column");var m={cols:s,hskipBeforeAndAfter:!1,arraystretch:.5};if(m=Ur(r.parser,m,"script"),m.body.length>0&&m.body[0].length>1)throw new k("{subarray} can contain only one column");return m},htmlBuilder:Vr,mathmlBuilder:zr}),Xr({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler:function(r){var t={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},n=Ur(r.parser,t,Ht(r.envName));return{type:"leftright",mode:r.mode,body:[n],left:r.envName.indexOf("r")>-1?".":"\\{",right:r.envName.indexOf("r")>-1?"\\}":".",rightColor:void 0}},htmlBuilder:Vr,mathmlBuilder:zr}),Xr({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:Gi,htmlBuilder:Vr,mathmlBuilder:zr}),Xr({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler:function(r){K.contains(["gather","gather*"],r.envName)&&T0(r);var t={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:jr(r.envName),emptySingleRow:!0,leqno:r.parser.settings.leqno};return Ur(r.parser,t,"display")},htmlBuilder:Vr,mathmlBuilder:zr}),Xr({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:Gi,htmlBuilder:Vr,mathmlBuilder:zr}),Xr({type:"array",names:["equation","equation*"],props:{numArgs:0},handler:function(r){T0(r);var t={autoTag:jr(r.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:r.parser.settings.leqno};return Ur(r.parser,t,"display")},htmlBuilder:Vr,mathmlBuilder:zr}),Xr({type:"array",names:["CD"],props:{numArgs:0},handler:function(r){return T0(r),vu(r.parser)},htmlBuilder:Vr,mathmlBuilder:zr}),D("\\nonumber","\\gdef\\@eqnsw{0}"),D("\\notag","\\nonumber"),oe({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler:function(r,t){throw new k(r.funcName+" valid only within array environment")}});var $i=Vi,Yi=$i;oe({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler:function(r,t){var n=r.parser,u=r.funcName,s=t[0];if(s.type!=="ordgroup")throw new k("Invalid environment name",s);for(var m="",b=0;b=ue.SCRIPT.id?n.text():ue.DISPLAY:r==="text"&&n.size===ue.DISPLAY.size?n=ue.TEXT:r==="script"?n=ue.SCRIPT:r==="scriptscript"&&(n=ue.SCRIPTSCRIPT),n},Vt=function(r,t){var n=Bn(r.size,t.style),u=n.fracNum(),s=n.fracDen(),m;m=t.havingStyle(u);var b=Fe(r.numer,m,t);if(r.continued){var C=8.5/t.fontMetrics().ptPerEm,E=3.5/t.fontMetrics().ptPerEm;b.height=b.height0?ie=3*Y:ie=7*Y,le=t.fontMetrics().denom1):($>0?(j=t.fontMetrics().num2,ie=Y):(j=t.fontMetrics().num3,ie=3*Y),le=t.fontMetrics().denom2);var fe;if(U){var ve=t.fontMetrics().axisHeight;j-b.depth-(ve+.5*$)0&&(t=r,t=t==="."?null:t),t};oe({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler:function(r,t){var n=r.parser,u=t[4],s=t[5],m=Bt(t[0]),b=m.type==="atom"&&m.family==="open"?pr(m.text):null,C=Bt(t[1]),E=C.type==="atom"&&C.family==="close"?pr(C.text):null,F=Ee(t[2],"size"),U,$=null;F.isBlank?U=!0:($=F.value,U=$.number>0);var Y="auto",j=t[3];if(j.type==="ordgroup"){if(j.body.length>0){var ie=Ee(j.body[0],"textord");Y=l0[Number(ie.text)]}}else j=Ee(j,"textord"),Y=l0[Number(j.text)];return{type:"genfrac",mode:n.mode,numer:u,denom:s,continued:!1,hasBarLine:U,barSize:$,leftDelim:b,rightDelim:E,size:Y}},htmlBuilder:Vt,mathmlBuilder:Fr}),oe({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler:function(r,t){var n=r.parser;r.funcName;var u=r.token;return{type:"infix",mode:n.mode,replaceWith:"\\\\abovefrac",size:Ee(t[0],"size").value,token:u}}}),oe({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:function(r,t){var n=r.parser;r.funcName;var u=t[0],s=ye(Ee(t[1],"infix").size),m=t[2],b=s.number>0;return{type:"genfrac",mode:n.mode,numer:u,denom:m,continued:!1,hasBarLine:b,barSize:s,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:Vt,mathmlBuilder:Fr});var k0=function(r,t){var n=t.style,u,s;r.type==="supsub"?(u=r.sup?Fe(r.sup,t.havingStyle(n.sup()),t):Fe(r.sub,t.havingStyle(n.sub()),t),s=Ee(r.base,"horizBrace")):s=Ee(r,"horizBrace");var m=Fe(s.base,t.havingBaseStyle(ue.DISPLAY)),b=Pr.svgSpan(s,t),C;if(s.isOver?(C=V.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:m},{type:"kern",size:.1},{type:"elem",elem:b}]},t),C.children[0].children[0].children[1].classes.push("svg-align")):(C=V.makeVList({positionType:"bottom",positionData:m.depth+.1+b.height,children:[{type:"elem",elem:b},{type:"kern",size:.1},{type:"elem",elem:m}]},t),C.children[0].children[0].children[0].classes.push("svg-align")),u){var E=V.makeSpan(["mord",s.isOver?"mover":"munder"],[C],t);s.isOver?C=V.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:E},{type:"kern",size:.2},{type:"elem",elem:u}]},t):C=V.makeVList({positionType:"bottom",positionData:E.depth+.2+u.height+u.depth,children:[{type:"elem",elem:u},{type:"kern",size:.2},{type:"elem",elem:E}]},t)}return V.makeSpan(["mord",s.isOver?"mover":"munder"],[C],t)},Eu=function(r,t){var n=Pr.mathMLnode(r.label);return new te.MathNode(r.isOver?"mover":"munder",[Pe(r.base,t),n])};oe({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler:function(r,t){var n=r.parser,u=r.funcName;return{type:"horizBrace",mode:n.mode,label:u,isOver:/^\\over/.test(u),base:t[0]}},htmlBuilder:k0,mathmlBuilder:Eu}),oe({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:function(r,t){var n=r.parser,u=t[1],s=Ee(t[0],"url").url;return n.settings.isTrusted({command:"\\href",url:s})?{type:"href",mode:n.mode,href:s,body:er(u)}:n.formatUnsupportedCmd("\\href")},htmlBuilder:function(r,t){var n=rr(r.body,t,!1);return V.makeAnchor(r.href,[],n,t)},mathmlBuilder:function(r,t){var n=a0(r.body,t);return n instanceof _r||(n=new _r("mrow",[n])),n.setAttribute("href",r.href),n}}),oe({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:function(r,t){var n=r.parser,u=Ee(t[0],"url").url;if(!n.settings.isTrusted({command:"\\url",url:u}))return n.formatUnsupportedCmd("\\url");for(var s=[],m=0;m0&&(u=Ye(r.totalheight,t)-n);var s=0;r.width.number>0&&(s=Ye(r.width,t));var m={height:ae(n+u)};s>0&&(m.width=ae(s)),u>0&&(m.verticalAlign=ae(-u));var b=new oi(r.src,r.alt,m);return b.height=n,b.depth=u,b},mathmlBuilder:function(r,t){var n=new te.MathNode("mglyph",[]);n.setAttribute("alt",r.alt);var u=Ye(r.height,t),s=0;if(r.totalheight.number>0&&(s=Ye(r.totalheight,t)-u,n.setAttribute("valign",ae(-s))),n.setAttribute("height",ae(u+s)),r.width.number>0){var m=Ye(r.width,t);n.setAttribute("width",ae(m))}return n.setAttribute("src",r.src),n}}),oe({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler:function(r,t){var n=r.parser,u=r.funcName,s=Ee(t[0],"size");if(n.settings.strict){var m=u[1]==="m",b=s.value.unit==="mu";m?(b||n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+u+" supports only mu units, "+("not "+s.value.unit+" units")),n.mode!=="math"&&n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+u+" works only in math mode")):b&&n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+u+" doesn't support mu units")}return{type:"kern",mode:n.mode,dimension:s.value}},htmlBuilder:function(r,t){return V.makeGlue(r.dimension,t)},mathmlBuilder:function(r,t){var n=Ye(r.dimension,t);return new te.SpaceNode(n)}}),oe({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:function(r,t){var n=r.parser,u=r.funcName,s=t[0];return{type:"lap",mode:n.mode,alignment:u.slice(5),body:s}},htmlBuilder:function(r,t){var n;r.alignment==="clap"?(n=V.makeSpan([],[Fe(r.body,t)]),n=V.makeSpan(["inner"],[n],t)):n=V.makeSpan(["inner"],[Fe(r.body,t)]);var u=V.makeSpan(["fix"],[]),s=V.makeSpan([r.alignment],[n,u],t),m=V.makeSpan(["strut"]);return m.style.height=ae(s.height+s.depth),s.depth&&(m.style.verticalAlign=ae(-s.depth)),s.children.unshift(m),s=V.makeSpan(["thinbox"],[s],t),V.makeSpan(["mord","vbox"],[s],t)},mathmlBuilder:function(r,t){var n=new te.MathNode("mpadded",[Pe(r.body,t)]);if(r.alignment!=="rlap"){var u=r.alignment==="llap"?"-1":"-0.5";n.setAttribute("lspace",u+"width")}return n.setAttribute("width","0px"),n}}),oe({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler:function(r,t){var n=r.funcName,u=r.parser,s=u.mode;u.switchMode("math");var m=n==="\\("?"\\)":"$",b=u.parseExpression(!1,m);return u.expect(m),u.switchMode(s),{type:"styling",mode:u.mode,style:"text",body:b}}}),oe({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler:function(r,t){throw new k("Mismatched "+r.funcName)}});var Wi=function(r,t){switch(t.style.size){case ue.DISPLAY.size:return r.display;case ue.TEXT.size:return r.text;case ue.SCRIPT.size:return r.script;case ue.SCRIPTSCRIPT.size:return r.scriptscript;default:return r.text}};oe({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:function(r,t){var n=r.parser;return{type:"mathchoice",mode:n.mode,display:er(t[0]),text:er(t[1]),script:er(t[2]),scriptscript:er(t[3])}},htmlBuilder:function(r,t){var n=Wi(r,t),u=rr(n,t,!1);return V.makeFragment(u)},mathmlBuilder:function(r,t){var n=Wi(r,t);return a0(n,t)}});var Tn=function(r,t,n,u,s,m,b){r=V.makeSpan([],[r]);var C=n&&K.isCharacterBox(n),E,F;if(t){var U=Fe(t,u.havingStyle(s.sup()),u);F={elem:U,kern:Math.max(u.fontMetrics().bigOpSpacing1,u.fontMetrics().bigOpSpacing3-U.depth)}}if(n){var $=Fe(n,u.havingStyle(s.sub()),u);E={elem:$,kern:Math.max(u.fontMetrics().bigOpSpacing2,u.fontMetrics().bigOpSpacing4-$.height)}}var Y;if(F&&E){var j=u.fontMetrics().bigOpSpacing5+E.elem.height+E.elem.depth+E.kern+r.depth+b;Y=V.makeVList({positionType:"bottom",positionData:j,children:[{type:"kern",size:u.fontMetrics().bigOpSpacing5},{type:"elem",elem:E.elem,marginLeft:ae(-m)},{type:"kern",size:E.kern},{type:"elem",elem:r},{type:"kern",size:F.kern},{type:"elem",elem:F.elem,marginLeft:ae(m)},{type:"kern",size:u.fontMetrics().bigOpSpacing5}]},u)}else if(E){var ie=r.height-b;Y=V.makeVList({positionType:"top",positionData:ie,children:[{type:"kern",size:u.fontMetrics().bigOpSpacing5},{type:"elem",elem:E.elem,marginLeft:ae(-m)},{type:"kern",size:E.kern},{type:"elem",elem:r}]},u)}else if(F){var le=r.depth+b;Y=V.makeVList({positionType:"bottom",positionData:le,children:[{type:"elem",elem:r},{type:"kern",size:F.kern},{type:"elem",elem:F.elem,marginLeft:ae(m)},{type:"kern",size:u.fontMetrics().bigOpSpacing5}]},u)}else return r;var fe=[Y];if(E&&m!==0&&!C){var de=V.makeSpan(["mspace"],[],u);de.style.marginRight=ae(m),fe.unshift(de)}return V.makeSpan(["mop","op-limits"],fe,u)},Ki=["\\smallint"],S0=function(r,t){var n,u,s=!1,m;r.type==="supsub"?(n=r.sup,u=r.sub,m=Ee(r.base,"op"),s=!0):m=Ee(r,"op");var b=t.style,C=!1;b.size===ue.DISPLAY.size&&m.symbol&&!K.contains(Ki,m.name)&&(C=!0);var E;if(m.symbol){var F=C?"Size2-Regular":"Size1-Regular",U="";if((m.name==="\\oiint"||m.name==="\\oiiint")&&(U=m.name.slice(1),m.name=U==="oiint"?"\\iint":"\\iiint"),E=V.makeSymbol(m.name,F,"math",t,["mop","op-symbol",C?"large-op":"small-op"]),U.length>0){var $=E.italic,Y=V.staticSvg(U+"Size"+(C?"2":"1"),t);E=V.makeVList({positionType:"individualShift",children:[{type:"elem",elem:E,shift:0},{type:"elem",elem:Y,shift:C?.08:0}]},t),m.name="\\"+U,E.classes.unshift("mop"),E.italic=$}}else if(m.body){var j=rr(m.body,t,!0);j.length===1&&j[0]instanceof Tr?(E=j[0],E.classes[0]="mop"):E=V.makeSpan(["mop"],j,t)}else{for(var ie=[],le=1;le0){for(var C=m.body.map(function($){var Y=$.text;return typeof Y=="string"?{type:"textord",mode:$.mode,text:Y}:$}),E=rr(C,t.withFont("mathrm"),!0),F=0;F=0?C.setAttribute("height",ae(s)):(C.setAttribute("height",ae(s)),C.setAttribute("depth",ae(-s))),C.setAttribute("voffset",ae(s)),C}});function ut(d,r,t){for(var n=rr(d,r,!1),u=r.sizeMultiplier/t.sizeMultiplier,s=0;sn.height+n.depth+b&&(b=(b+Y-n.height-n.depth)/2);var j=F.height-n.height-b-U;n.style.paddingLeft=ae($);var ie=V.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n,wrapperClasses:["svg-align"]},{type:"kern",size:-(n.height+j)},{type:"elem",elem:F},{type:"kern",size:U}]},t);if(r.index){var le=t.havingStyle(ue.SCRIPTSCRIPT),fe=Fe(r.index,le,t),de=.6*(ie.height-ie.depth),ve=V.makeVList({positionType:"shift",positionData:-de,children:[{type:"elem",elem:fe}]},t),ze=V.makeSpan(["root"],[ve]);return V.makeSpan(["mord","sqrt"],[ze,ie],t)}else return V.makeSpan(["mord","sqrt"],[ie],t)},mathmlBuilder:function(r,t){var n=r.body,u=r.index;return u?new te.MathNode("mroot",[Pe(n,t),Pe(u,t)]):new te.MathNode("msqrt",[Pe(n,t)])}});var Fn={display:ue.DISPLAY,text:ue.TEXT,script:ue.SCRIPT,scriptscript:ue.SCRIPTSCRIPT};oe({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler:function(r,t){var n=r.breakOnTokenText,u=r.funcName,s=r.parser,m=s.parseExpression(!0,n),b=u.slice(1,u.length-5);return{type:"styling",mode:s.mode,style:b,body:m}},htmlBuilder:function(r,t){var n=Fn[r.style],u=t.havingStyle(n).withFont("");return ut(r.body,u,t)},mathmlBuilder:function(r,t){var n=Fn[r.style],u=t.havingStyle(n),s=yr(r.body,u),m=new te.MathNode("mstyle",s),b={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},C=b[r.style];return m.setAttribute("scriptlevel",C[0]),m.setAttribute("displaystyle",C[1]),m}});var F0=function(r,t){var n=r.base;if(n)if(n.type==="op"){var u=n.limits&&(t.style.size===ue.DISPLAY.size||n.alwaysHandleSupSub);return u?S0:null}else if(n.type==="operatorname"){var s=n.alwaysHandleSupSub&&(t.style.size===ue.DISPLAY.size||n.limits);return s?_n:null}else{if(n.type==="accent")return K.isCharacterBox(n.base)?dn:null;if(n.type==="horizBrace"){var m=!r.sub;return m===n.isOver?k0:null}else return null}else return null};A0({type:"supsub",htmlBuilder:function(r,t){var n=F0(r,t);if(n)return n(r,t);var u=r.base,s=r.sup,m=r.sub,b=Fe(u,t),C,E,F=t.fontMetrics(),U=0,$=0,Y=u&&K.isCharacterBox(u);if(s){var j=t.havingStyle(t.style.sup());C=Fe(s,j,t),Y||(U=b.height-j.fontMetrics().supDrop*j.sizeMultiplier/t.sizeMultiplier)}if(m){var ie=t.havingStyle(t.style.sub());E=Fe(m,ie,t),Y||($=b.depth+ie.fontMetrics().subDrop*ie.sizeMultiplier/t.sizeMultiplier)}var le;t.style===ue.DISPLAY?le=F.sup1:t.style.cramped?le=F.sup3:le=F.sup2;var fe=t.sizeMultiplier,de=ae(.5/F.ptPerEm/fe),ve=null;if(E){var ze=r.base&&r.base.type==="op"&&r.base.name&&(r.base.name==="\\oiint"||r.base.name==="\\oiiint");(b instanceof Tr||ze)&&(ve=ae(-b.italic))}var Ce;if(C&&E){U=Math.max(U,le,C.depth+.25*F.xHeight),$=Math.max($,F.sub2);var qe=F.defaultRuleThickness,Ne=4*qe;if(U-C.depth-(E.height-$)0&&(U+=Ie,$-=Ie)}var He=[{type:"elem",elem:E,shift:$,marginRight:de,marginLeft:ve},{type:"elem",elem:C,shift:-U,marginRight:de}];Ce=V.makeVList({positionType:"individualShift",children:He},t)}else if(E){$=Math.max($,F.sub1,E.height-.8*F.xHeight);var Qe=[{type:"elem",elem:E,marginLeft:ve,marginRight:de}];Ce=V.makeVList({positionType:"shift",positionData:$,children:Qe},t)}else if(C)U=Math.max(U,le,C.depth+.25*F.xHeight),Ce=V.makeVList({positionType:"shift",positionData:-U,children:[{type:"elem",elem:C,marginRight:de}]},t);else throw new Error("supsub must have either sup or sub.");var Sr=J0(b,"right")||"mord";return V.makeSpan([Sr],[b,V.makeSpan(["msupsub"],[Ce])],t)},mathmlBuilder:function(r,t){var n=!1,u,s;r.base&&r.base.type==="horizBrace"&&(s=!!r.sup,s===r.base.isOver&&(n=!0,u=r.base.isOver)),r.base&&(r.base.type==="op"||r.base.type==="operatorname")&&(r.base.parentIsSupSub=!0);var m=[Pe(r.base,t)];r.sub&&m.push(Pe(r.sub,t)),r.sup&&m.push(Pe(r.sup,t));var b;if(n)b=u?"mover":"munder";else if(r.sub)if(r.sup){var F=r.base;F&&F.type==="op"&&F.limits&&t.style===ue.DISPLAY||F&&F.type==="operatorname"&&F.alwaysHandleSupSub&&(t.style===ue.DISPLAY||F.limits)?b="munderover":b="msubsup"}else{var E=r.base;E&&E.type==="op"&&E.limits&&(t.style===ue.DISPLAY||E.alwaysHandleSupSub)||E&&E.type==="operatorname"&&E.alwaysHandleSupSub&&(E.limits||t.style===ue.DISPLAY)?b="munder":b="msub"}else{var C=r.base;C&&C.type==="op"&&C.limits&&(t.style===ue.DISPLAY||C.alwaysHandleSupSub)||C&&C.type==="operatorname"&&C.alwaysHandleSupSub&&(C.limits||t.style===ue.DISPLAY)?b="mover":b="msup"}return new te.MathNode(b,m)}}),A0({type:"atom",htmlBuilder:function(r,t){return V.mathsym(r.text,r.mode,t,["m"+r.family])},mathmlBuilder:function(r,t){var n=new te.MathNode("mo",[kr(r.text,r.mode)]);if(r.family==="bin"){var u=hn(r,t);u==="bold-italic"&&n.setAttribute("mathvariant",u)}else r.family==="punct"?n.setAttribute("separator","true"):(r.family==="open"||r.family==="close")&&n.setAttribute("stretchy","false");return n}});var Gt={mi:"italic",mn:"normal",mtext:"normal"};A0({type:"mathord",htmlBuilder:function(r,t){return V.makeOrd(r,t,"mathord")},mathmlBuilder:function(r,t){var n=new te.MathNode("mi",[kr(r.text,r.mode,t)]),u=hn(r,t)||"italic";return u!==Gt[n.type]&&n.setAttribute("mathvariant",u),n}}),A0({type:"textord",htmlBuilder:function(r,t){return V.makeOrd(r,t,"textord")},mathmlBuilder:function(r,t){var n=kr(r.text,r.mode,t),u=hn(r,t)||"normal",s;return r.mode==="text"?s=new te.MathNode("mtext",[n]):/[0-9]/.test(r.text)?s=new te.MathNode("mn",[n]):r.text==="\\prime"?s=new te.MathNode("mo",[n]):s=new te.MathNode("mi",[n]),u!==Gt[s.type]&&s.setAttribute("mathvariant",u),s}});var Je={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},N0={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};A0({type:"spacing",htmlBuilder:function(r,t){if(N0.hasOwnProperty(r.text)){var n=N0[r.text].className||"";if(r.mode==="text"){var u=V.makeOrd(r,t,"textord");return u.classes.push(n),u}else return V.makeSpan(["mspace",n],[V.mathsym(r.text,r.mode,t)],t)}else{if(Je.hasOwnProperty(r.text))return V.makeSpan(["mspace",Je[r.text]],[],t);throw new k('Unknown type of space "'+r.text+'"')}},mathmlBuilder:function(r,t){var n;if(N0.hasOwnProperty(r.text))n=new te.MathNode("mtext",[new te.TextNode(" ")]);else{if(Je.hasOwnProperty(r.text))return new te.MathNode("mspace");throw new k('Unknown type of space "'+r.text+'"')}return n}});var $t=function(){var r=new te.MathNode("mtd",[]);return r.setAttribute("width","50%"),r};A0({type:"tag",mathmlBuilder:function(r,t){var n=new te.MathNode("mtable",[new te.MathNode("mtr",[$t(),new te.MathNode("mtd",[a0(r.body,t)]),$t(),new te.MathNode("mtd",[a0(r.tag,t)])])]);return n.setAttribute("width","100%"),n}});var Zi={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},Ji={"\\textbf":"textbf","\\textmd":"textmd"},Mu={"\\textit":"textit","\\textup":"textup"},Qi=function(r,t){var n=r.font;return n?Zi[n]?t.withTextFontFamily(Zi[n]):Ji[n]?t.withTextFontWeight(Ji[n]):t.withTextFontShape(Mu[n]):t};oe({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler:function(r,t){var n=r.parser,u=r.funcName,s=t[0];return{type:"text",mode:n.mode,body:er(s),font:u}},htmlBuilder:function(r,t){var n=Qi(r,t),u=rr(r.body,n,!0);return V.makeSpan(["mord","text"],u,n)},mathmlBuilder:function(r,t){var n=Qi(r,t);return a0(r.body,n)}}),oe({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler:function(r,t){var n=r.parser;return{type:"underline",mode:n.mode,body:t[0]}},htmlBuilder:function(r,t){var n=Fe(r.body,t),u=V.makeLineSpan("underline-line",t),s=t.fontMetrics().defaultRuleThickness,m=V.makeVList({positionType:"top",positionData:n.height,children:[{type:"kern",size:s},{type:"elem",elem:u},{type:"kern",size:3*s},{type:"elem",elem:n}]},t);return V.makeSpan(["mord","underline"],[m],t)},mathmlBuilder:function(r,t){var n=new te.MathNode("mo",[new te.TextNode("‾")]);n.setAttribute("stretchy","true");var u=new te.MathNode("munder",[Pe(r.body,t),n]);return u.setAttribute("accentunder","true"),u}}),oe({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler:function(r,t){var n=r.parser;return{type:"vcenter",mode:n.mode,body:t[0]}},htmlBuilder:function(r,t){var n=Fe(r.body,t),u=t.fontMetrics().axisHeight,s=.5*(n.height-u-(n.depth+u));return V.makeVList({positionType:"shift",positionData:s,children:[{type:"elem",elem:n}]},t)},mathmlBuilder:function(r,t){return new te.MathNode("mpadded",[Pe(r.body,t)],["vcenter"])}}),oe({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler:function(r,t,n){throw new k("\\verb ended by end of line instead of matching delimiter")},htmlBuilder:function(r,t){for(var n=ea(r),u=[],s=t.havingStyle(t.style.text()),m=0;m0;)this.endGroup()},r.has=function(n){return this.current.hasOwnProperty(n)||this.builtins.hasOwnProperty(n)},r.get=function(n){return this.current.hasOwnProperty(n)?this.current[n]:this.builtins[n]},r.set=function(n,u,s){if(s===void 0&&(s=!1),s){for(var m=0;m0&&(this.undefStack[this.undefStack.length-1][n]=u)}else{var b=this.undefStack[this.undefStack.length-1];b&&!b.hasOwnProperty(n)&&(b[n]=this.current[n])}u==null?delete this.current[n]:this.current[n]=u},d}(),ia=Cn,aa=ia;D("\\noexpand",function(d){var r=d.popToken();return d.isExpandable(r.text)&&(r.noexpand=!0,r.treatAsRelax=!0),{tokens:[r],numArgs:0}}),D("\\expandafter",function(d){var r=d.popToken();return d.expandOnce(!0),{tokens:[r],numArgs:0}}),D("\\@firstoftwo",function(d){var r=d.consumeArgs(2);return{tokens:r[0],numArgs:0}}),D("\\@secondoftwo",function(d){var r=d.consumeArgs(2);return{tokens:r[1],numArgs:0}}),D("\\@ifnextchar",function(d){var r=d.consumeArgs(3);d.consumeSpaces();var t=d.future();return r[0].length===1&&r[0][0].text===t.text?{tokens:r[1],numArgs:0}:{tokens:r[2],numArgs:0}}),D("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}"),D("\\TextOrMath",function(d){var r=d.consumeArgs(2);return d.mode==="text"?{tokens:r[0],numArgs:0}:{tokens:r[1],numArgs:0}});var Nn={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};D("\\char",function(d){var r=d.popToken(),t,n="";if(r.text==="'")t=8,r=d.popToken();else if(r.text==='"')t=16,r=d.popToken();else if(r.text==="`")if(r=d.popToken(),r.text[0]==="\\")n=r.text.charCodeAt(1);else{if(r.text==="EOF")throw new k("\\char` missing argument");n=r.text.charCodeAt(0)}else t=10;if(t){if(n=Nn[r.text],n==null||n>=t)throw new k("Invalid base-"+t+" digit "+r.text);for(var u;(u=Nn[d.future().text])!=null&&u":"\\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"};D("\\dots",function(d){var r="\\dotso",t=d.expandAfterFuture().text;return t in ua?r=ua[t]:(t.slice(0,4)==="\\not"||t in Ve.math&&K.contains(["bin","rel"],Ve.math[t].group))&&(r="\\dotsb"),r});var C0={")":!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};D("\\dotso",function(d){var r=d.future().text;return r in C0?"\\ldots\\,":"\\ldots"}),D("\\dotsc",function(d){var r=d.future().text;return r in C0&&r!==","?"\\ldots\\,":"\\ldots"}),D("\\cdots",function(d){var r=d.future().text;return r in C0?"\\@cdots\\,":"\\@cdots"}),D("\\dotsb","\\cdots"),D("\\dotsm","\\cdots"),D("\\dotsi","\\!\\cdots"),D("\\dotsx","\\ldots\\,"),D("\\DOTSI","\\relax"),D("\\DOTSB","\\relax"),D("\\DOTSX","\\relax"),D("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax"),D("\\,","\\tmspace+{3mu}{.1667em}"),D("\\thinspace","\\,"),D("\\>","\\mskip{4mu}"),D("\\:","\\tmspace+{4mu}{.2222em}"),D("\\medspace","\\:"),D("\\;","\\tmspace+{5mu}{.2777em}"),D("\\thickspace","\\;"),D("\\!","\\tmspace-{3mu}{.1667em}"),D("\\negthinspace","\\!"),D("\\negmedspace","\\tmspace-{4mu}{.2222em}"),D("\\negthickspace","\\tmspace-{5mu}{.277em}"),D("\\enspace","\\kern.5em "),D("\\enskip","\\hskip.5em\\relax"),D("\\quad","\\hskip1em\\relax"),D("\\qquad","\\hskip2em\\relax"),D("\\tag","\\@ifstar\\tag@literal\\tag@paren"),D("\\tag@paren","\\tag@literal{({#1})}"),D("\\tag@literal",function(d){if(d.macros.get("\\df@tag"))throw new k("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"}),D("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}"),D("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)"),D("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}"),D("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1"),D("\\newline","\\\\\\relax"),D("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var la=ae(xr["Main-Regular"]["T".charCodeAt(0)][1]-.7*xr["Main-Regular"]["A".charCodeAt(0)][1]);D("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+la+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}"),D("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+la+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}"),D("\\hspace","\\@ifstar\\@hspacer\\@hspace"),D("\\@hspace","\\hskip #1\\relax"),D("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax"),D("\\ordinarycolon",":"),D("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}"),D("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}'),D("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}'),D("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}'),D("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}'),D("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}'),D("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}'),D("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}'),D("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}'),D("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}'),D("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}'),D("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}'),D("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}'),D("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}'),D("∷","\\dblcolon"),D("∹","\\eqcolon"),D("≔","\\coloneqq"),D("≕","\\eqqcolon"),D("⩴","\\Coloneqq"),D("\\ratio","\\vcentcolon"),D("\\coloncolon","\\dblcolon"),D("\\colonequals","\\coloneqq"),D("\\coloncolonequals","\\Coloneqq"),D("\\equalscolon","\\eqqcolon"),D("\\equalscoloncolon","\\Eqqcolon"),D("\\colonminus","\\coloneq"),D("\\coloncolonminus","\\Coloneq"),D("\\minuscolon","\\eqcolon"),D("\\minuscoloncolon","\\Eqcolon"),D("\\coloncolonapprox","\\Colonapprox"),D("\\coloncolonsim","\\Colonsim"),D("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),D("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}"),D("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),D("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}"),D("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}"),D("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}"),D("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}"),D("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}"),D("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}"),D("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}"),D("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}"),D("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}"),D("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}"),D("\\gvertneqq","\\html@mathml{\\@gvertneqq}{≩}"),D("\\lvertneqq","\\html@mathml{\\@lvertneqq}{≨}"),D("\\ngeqq","\\html@mathml{\\@ngeqq}{≱}"),D("\\ngeqslant","\\html@mathml{\\@ngeqslant}{≱}"),D("\\nleqq","\\html@mathml{\\@nleqq}{≰}"),D("\\nleqslant","\\html@mathml{\\@nleqslant}{≰}"),D("\\nshortmid","\\html@mathml{\\@nshortmid}{∤}"),D("\\nshortparallel","\\html@mathml{\\@nshortparallel}{∦}"),D("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{⊈}"),D("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{⊉}"),D("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{⊊}"),D("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{⫋}"),D("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{⊋}"),D("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{⫌}"),D("\\imath","\\html@mathml{\\@imath}{ı}"),D("\\jmath","\\html@mathml{\\@jmath}{ȷ}"),D("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}"),D("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}"),D("⟦","\\llbracket"),D("⟧","\\rrbracket"),D("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}"),D("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}"),D("⦃","\\lBrace"),D("⦄","\\rBrace"),D("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}"),D("⦵","\\minuso"),D("\\darr","\\downarrow"),D("\\dArr","\\Downarrow"),D("\\Darr","\\Downarrow"),D("\\lang","\\langle"),D("\\rang","\\rangle"),D("\\uarr","\\uparrow"),D("\\uArr","\\Uparrow"),D("\\Uarr","\\Uparrow"),D("\\N","\\mathbb{N}"),D("\\R","\\mathbb{R}"),D("\\Z","\\mathbb{Z}"),D("\\alef","\\aleph"),D("\\alefsym","\\aleph"),D("\\Alpha","\\mathrm{A}"),D("\\Beta","\\mathrm{B}"),D("\\bull","\\bullet"),D("\\Chi","\\mathrm{X}"),D("\\clubs","\\clubsuit"),D("\\cnums","\\mathbb{C}"),D("\\Complex","\\mathbb{C}"),D("\\Dagger","\\ddagger"),D("\\diamonds","\\diamondsuit"),D("\\empty","\\emptyset"),D("\\Epsilon","\\mathrm{E}"),D("\\Eta","\\mathrm{H}"),D("\\exist","\\exists"),D("\\harr","\\leftrightarrow"),D("\\hArr","\\Leftrightarrow"),D("\\Harr","\\Leftrightarrow"),D("\\hearts","\\heartsuit"),D("\\image","\\Im"),D("\\infin","\\infty"),D("\\Iota","\\mathrm{I}"),D("\\isin","\\in"),D("\\Kappa","\\mathrm{K}"),D("\\larr","\\leftarrow"),D("\\lArr","\\Leftarrow"),D("\\Larr","\\Leftarrow"),D("\\lrarr","\\leftrightarrow"),D("\\lrArr","\\Leftrightarrow"),D("\\Lrarr","\\Leftrightarrow"),D("\\Mu","\\mathrm{M}"),D("\\natnums","\\mathbb{N}"),D("\\Nu","\\mathrm{N}"),D("\\Omicron","\\mathrm{O}"),D("\\plusmn","\\pm"),D("\\rarr","\\rightarrow"),D("\\rArr","\\Rightarrow"),D("\\Rarr","\\Rightarrow"),D("\\real","\\Re"),D("\\reals","\\mathbb{R}"),D("\\Reals","\\mathbb{R}"),D("\\Rho","\\mathrm{P}"),D("\\sdot","\\cdot"),D("\\sect","\\S"),D("\\spades","\\spadesuit"),D("\\sub","\\subset"),D("\\sube","\\subseteq"),D("\\supe","\\supseteq"),D("\\Tau","\\mathrm{T}"),D("\\thetasym","\\vartheta"),D("\\weierp","\\wp"),D("\\Zeta","\\mathrm{Z}"),D("\\argmin","\\DOTSB\\operatorname*{arg\\,min}"),D("\\argmax","\\DOTSB\\operatorname*{arg\\,max}"),D("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits"),D("\\bra","\\mathinner{\\langle{#1}|}"),D("\\ket","\\mathinner{|{#1}\\rangle}"),D("\\braket","\\mathinner{\\langle{#1}\\rangle}"),D("\\Bra","\\left\\langle#1\\right|"),D("\\Ket","\\left|#1\\right\\rangle");var oa=function(r){return function(t){var n=t.consumeArg().tokens,u=t.consumeArg().tokens,s=t.consumeArg().tokens,m=t.consumeArg().tokens,b=t.macros.get("|"),C=t.macros.get("\\|");t.macros.beginGroup();var E=function(Y){return function(j){r&&(j.macros.set("|",b),s.length&&j.macros.set("\\|",C));var ie=Y;if(!Y&&s.length){var le=j.future();le.text==="|"&&(j.popToken(),ie=!0)}return{tokens:ie?s:u,numArgs:0}}};t.macros.set("|",E(!1)),s.length&&t.macros.set("\\|",E(!0));var F=t.consumeArg().tokens,U=t.expandTokens([].concat(m,F,n));return t.macros.endGroup(),{tokens:U.reverse(),numArgs:0}}};D("\\bra@ket",oa(!1)),D("\\bra@set",oa(!0)),D("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}"),D("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}"),D("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}"),D("\\angln","{\\angl n}"),D("\\blue","\\textcolor{##6495ed}{#1}"),D("\\orange","\\textcolor{##ffa500}{#1}"),D("\\pink","\\textcolor{##ff00af}{#1}"),D("\\red","\\textcolor{##df0030}{#1}"),D("\\green","\\textcolor{##28ae7b}{#1}"),D("\\gray","\\textcolor{gray}{#1}"),D("\\purple","\\textcolor{##9d38bd}{#1}"),D("\\blueA","\\textcolor{##ccfaff}{#1}"),D("\\blueB","\\textcolor{##80f6ff}{#1}"),D("\\blueC","\\textcolor{##63d9ea}{#1}"),D("\\blueD","\\textcolor{##11accd}{#1}"),D("\\blueE","\\textcolor{##0c7f99}{#1}"),D("\\tealA","\\textcolor{##94fff5}{#1}"),D("\\tealB","\\textcolor{##26edd5}{#1}"),D("\\tealC","\\textcolor{##01d1c1}{#1}"),D("\\tealD","\\textcolor{##01a995}{#1}"),D("\\tealE","\\textcolor{##208170}{#1}"),D("\\greenA","\\textcolor{##b6ffb0}{#1}"),D("\\greenB","\\textcolor{##8af281}{#1}"),D("\\greenC","\\textcolor{##74cf70}{#1}"),D("\\greenD","\\textcolor{##1fab54}{#1}"),D("\\greenE","\\textcolor{##0d923f}{#1}"),D("\\goldA","\\textcolor{##ffd0a9}{#1}"),D("\\goldB","\\textcolor{##ffbb71}{#1}"),D("\\goldC","\\textcolor{##ff9c39}{#1}"),D("\\goldD","\\textcolor{##e07d10}{#1}"),D("\\goldE","\\textcolor{##a75a05}{#1}"),D("\\redA","\\textcolor{##fca9a9}{#1}"),D("\\redB","\\textcolor{##ff8482}{#1}"),D("\\redC","\\textcolor{##f9685d}{#1}"),D("\\redD","\\textcolor{##e84d39}{#1}"),D("\\redE","\\textcolor{##bc2612}{#1}"),D("\\maroonA","\\textcolor{##ffbde0}{#1}"),D("\\maroonB","\\textcolor{##ff92c6}{#1}"),D("\\maroonC","\\textcolor{##ed5fa6}{#1}"),D("\\maroonD","\\textcolor{##ca337c}{#1}"),D("\\maroonE","\\textcolor{##9e034e}{#1}"),D("\\purpleA","\\textcolor{##ddd7ff}{#1}"),D("\\purpleB","\\textcolor{##c6b9fc}{#1}"),D("\\purpleC","\\textcolor{##aa87ff}{#1}"),D("\\purpleD","\\textcolor{##7854ab}{#1}"),D("\\purpleE","\\textcolor{##543b78}{#1}"),D("\\mintA","\\textcolor{##f5f9e8}{#1}"),D("\\mintB","\\textcolor{##edf2df}{#1}"),D("\\mintC","\\textcolor{##e0e5cc}{#1}"),D("\\grayA","\\textcolor{##f6f7f7}{#1}"),D("\\grayB","\\textcolor{##f0f1f2}{#1}"),D("\\grayC","\\textcolor{##e3e5e6}{#1}"),D("\\grayD","\\textcolor{##d6d8da}{#1}"),D("\\grayE","\\textcolor{##babec2}{#1}"),D("\\grayF","\\textcolor{##888d93}{#1}"),D("\\grayG","\\textcolor{##626569}{#1}"),D("\\grayH","\\textcolor{##3b3e40}{#1}"),D("\\grayI","\\textcolor{##21242c}{#1}"),D("\\kaBlue","\\textcolor{##314453}{#1}"),D("\\kaGreen","\\textcolor{##71B307}{#1}");var sa={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0},Iu=function(){function d(t,n,u){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=n,this.expansionCount=0,this.feed(t),this.macros=new qu(aa,n.macros),this.mode=u,this.stack=[]}var r=d.prototype;return r.feed=function(n){this.lexer=new na(n,this.settings)},r.switchMode=function(n){this.mode=n},r.beginGroup=function(){this.macros.beginGroup()},r.endGroup=function(){this.macros.endGroup()},r.endGroups=function(){this.macros.endGroups()},r.future=function(){return this.stack.length===0&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]},r.popToken=function(){return this.future(),this.stack.pop()},r.pushToken=function(n){this.stack.push(n)},r.pushTokens=function(n){var u;(u=this.stack).push.apply(u,n)},r.scanArgument=function(n){var u,s,m;if(n){if(this.consumeSpaces(),this.future().text!=="[")return null;u=this.popToken();var b=this.consumeArg(["]"]);m=b.tokens,s=b.end}else{var C=this.consumeArg();m=C.tokens,u=C.start,s=C.end}return this.pushToken(new u0("EOF",s.loc)),this.pushTokens(m),u.range(s,"")},r.consumeSpaces=function(){for(;;){var n=this.future();if(n.text===" ")this.stack.pop();else break}},r.consumeArg=function(n){var u=[],s=n&&n.length>0;s||this.consumeSpaces();var m=this.future(),b,C=0,E=0;do{if(b=this.popToken(),u.push(b),b.text==="{")++C;else if(b.text==="}"){if(--C,C===-1)throw new k("Extra }",b)}else if(b.text==="EOF")throw new k("Unexpected end of input in a macro argument, expected '"+(n&&s?n[E]:"}")+"'",b);if(n&&s)if((C===0||C===1&&n[E]==="{")&&b.text===n[E]){if(++E,E===n.length){u.splice(-E,E);break}}else E=0}while(C!==0||s);return m.text==="{"&&u[u.length-1].text==="}"&&(u.pop(),u.shift()),u.reverse(),{tokens:u,start:m,end:b}},r.consumeArgs=function(n,u){if(u){if(u.length!==n+1)throw new k("The length of delimiters doesn't match the number of args!");for(var s=u[0],m=0;mthis.settings.maxExpand)throw new k("Too many expansions: infinite loop or need to increase maxExpand setting");var b=m.tokens,C=this.consumeArgs(m.numArgs,m.delimiters);if(m.numArgs){b=b.slice();for(var E=b.length-1;E>=0;--E){var F=b[E];if(F.text==="#"){if(E===0)throw new k("Incomplete placeholder at end of macro body",F);if(F=b[--E],F.text==="#")b.splice(E+1,1);else if(/^[1-9]$/.test(F.text)){var U;(U=b).splice.apply(U,[E,2].concat(C[+F.text-1]))}else throw new k("Not a valid argument number",F)}}}return this.pushTokens(b),b.length},r.expandAfterFuture=function(){return this.expandOnce(),this.future()},r.expandNextToken=function(){for(;;)if(this.expandOnce()===!1){var n=this.stack.pop();return n.treatAsRelax&&(n.text="\\relax"),n}throw new Error},r.expandMacro=function(n){return this.macros.has(n)?this.expandTokens([new u0(n)]):void 0},r.expandTokens=function(n){var u=[],s=this.stack.length;for(this.pushTokens(n);this.stack.length>s;)if(this.expandOnce(!0)===!1){var m=this.stack.pop();m.treatAsRelax&&(m.noexpand=!1,m.treatAsRelax=!1),u.push(m)}return u},r.expandMacroAsText=function(n){var u=this.expandMacro(n);return u&&u.map(function(s){return s.text}).join("")},r._getExpansion=function(n){var u=this.macros.get(n);if(u==null)return u;if(n.length===1){var s=this.lexer.catcodes[n];if(s!=null&&s!==13)return}var m=typeof u=="function"?u(this):u;if(typeof m=="string"){var b=0;if(m.indexOf("#")!==-1)for(var C=m.replace(/##/g,"");C.indexOf("#"+(b+1))!==-1;)++b;for(var E=new na(m,this.settings),F=[],U=E.lex();U.text!=="EOF";)F.push(U),U=E.lex();F.reverse();var $={tokens:F,numArgs:b};return $}return m},r.isDefined=function(n){return this.macros.has(n)||s0.hasOwnProperty(n)||Ve.math.hasOwnProperty(n)||Ve.text.hasOwnProperty(n)||sa.hasOwnProperty(n)},r.isExpandable=function(n){var u=this.macros.get(n);return u!=null?typeof u=="string"||typeof u=="function"||!u.unexpandable:s0.hasOwnProperty(n)&&!s0[n].primitive},d}(),Xt=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,jt=Object.freeze({"₊":"+","₋":"-","₌":"=","₍":"(","₎":")","₀":"0","₁":"1","₂":"2","₃":"3","₄":"4","₅":"5","₆":"6","₇":"7","₈":"8","₉":"9","ₐ":"a","ₑ":"e","ₕ":"h","ᵢ":"i","ⱼ":"j","ₖ":"k","ₗ":"l","ₘ":"m","ₙ":"n","ₒ":"o","ₚ":"p","ᵣ":"r","ₛ":"s","ₜ":"t","ᵤ":"u","ᵥ":"v","ₓ":"x","ᵦ":"β","ᵧ":"γ","ᵨ":"ρ","ᵩ":"ϕ","ᵪ":"χ","⁺":"+","⁻":"-","⁼":"=","⁽":"(","⁾":")","⁰":"0","¹":"1","²":"2","³":"3","⁴":"4","⁵":"5","⁶":"6","⁷":"7","⁸":"8","⁹":"9","ᴬ":"A","ᴮ":"B","ᴰ":"D","ᴱ":"E","ᴳ":"G","ᴴ":"H","ᴵ":"I","ᴶ":"J","ᴷ":"K","ᴸ":"L","ᴹ":"M","ᴺ":"N","ᴼ":"O","ᴾ":"P","ᴿ":"R","ᵀ":"T","ᵁ":"U","ⱽ":"V","ᵂ":"W","ᵃ":"a","ᵇ":"b","ᶜ":"c","ᵈ":"d","ᵉ":"e","ᶠ":"f","ᵍ":"g",ʰ:"h","ⁱ":"i",ʲ:"j","ᵏ":"k",ˡ:"l","ᵐ":"m",ⁿ:"n","ᵒ":"o","ᵖ":"p",ʳ:"r",ˢ:"s","ᵗ":"t","ᵘ":"u","ᵛ":"v",ʷ:"w",ˣ:"x",ʸ:"y","ᶻ":"z","ᵝ":"β","ᵞ":"γ","ᵟ":"δ","ᵠ":"ϕ","ᵡ":"χ","ᶿ":"θ"}),qn={"́":{text:"\\'",math:"\\acute"},"̀":{text:"\\`",math:"\\grave"},"̈":{text:'\\"',math:"\\ddot"},"̃":{text:"\\~",math:"\\tilde"},"̄":{text:"\\=",math:"\\bar"},"̆":{text:"\\u",math:"\\breve"},"̌":{text:"\\v",math:"\\check"},"̂":{text:"\\^",math:"\\hat"},"̇":{text:"\\.",math:"\\dot"},"̊":{text:"\\r",math:"\\mathring"},"̋":{text:"\\H"},"̧":{text:"\\c"}},ca={á:"á",à:"à",ä:"ä",ǟ:"ǟ",ã:"ã",ā:"ā",ă:"ă",ắ:"ắ",ằ:"ằ",ẵ:"ẵ",ǎ:"ǎ",â:"â",ấ:"ấ",ầ:"ầ",ẫ:"ẫ",ȧ:"ȧ",ǡ:"ǡ",å:"å",ǻ:"ǻ",ḃ:"ḃ",ć:"ć",ḉ:"ḉ",č:"č",ĉ:"ĉ",ċ:"ċ",ç:"ç",ď:"ď",ḋ:"ḋ",ḑ:"ḑ",é:"é",è:"è",ë:"ë",ẽ:"ẽ",ē:"ē",ḗ:"ḗ",ḕ:"ḕ",ĕ:"ĕ",ḝ:"ḝ",ě:"ě",ê:"ê",ế:"ế",ề:"ề",ễ:"ễ",ė:"ė",ȩ:"ȩ",ḟ:"ḟ",ǵ:"ǵ",ḡ:"ḡ",ğ:"ğ",ǧ:"ǧ",ĝ:"ĝ",ġ:"ġ",ģ:"ģ",ḧ:"ḧ",ȟ:"ȟ",ĥ:"ĥ",ḣ:"ḣ",ḩ:"ḩ",í:"í",ì:"ì",ï:"ï",ḯ:"ḯ",ĩ:"ĩ",ī:"ī",ĭ:"ĭ",ǐ:"ǐ",î:"î",ǰ:"ǰ",ĵ:"ĵ",ḱ:"ḱ",ǩ:"ǩ",ķ:"ķ",ĺ:"ĺ",ľ:"ľ",ļ:"ļ",ḿ:"ḿ",ṁ:"ṁ",ń:"ń",ǹ:"ǹ",ñ:"ñ",ň:"ň",ṅ:"ṅ",ņ:"ņ",ó:"ó",ò:"ò",ö:"ö",ȫ:"ȫ",õ:"õ",ṍ:"ṍ",ṏ:"ṏ",ȭ:"ȭ",ō:"ō",ṓ:"ṓ",ṑ:"ṑ",ŏ:"ŏ",ǒ:"ǒ",ô:"ô",ố:"ố",ồ:"ồ",ỗ:"ỗ",ȯ:"ȯ",ȱ:"ȱ",ő:"ő",ṕ:"ṕ",ṗ:"ṗ",ŕ:"ŕ",ř:"ř",ṙ:"ṙ",ŗ:"ŗ",ś:"ś",ṥ:"ṥ",š:"š",ṧ:"ṧ",ŝ:"ŝ",ṡ:"ṡ",ş:"ş",ẗ:"ẗ",ť:"ť",ṫ:"ṫ",ţ:"ţ",ú:"ú",ù:"ù",ü:"ü",ǘ:"ǘ",ǜ:"ǜ",ǖ:"ǖ",ǚ:"ǚ",ũ:"ũ",ṹ:"ṹ",ū:"ū",ṻ:"ṻ",ŭ:"ŭ",ǔ:"ǔ",û:"û",ů:"ů",ű:"ű",ṽ:"ṽ",ẃ:"ẃ",ẁ:"ẁ",ẅ:"ẅ",ŵ:"ŵ",ẇ:"ẇ",ẘ:"ẘ",ẍ:"ẍ",ẋ:"ẋ",ý:"ý",ỳ:"ỳ",ÿ:"ÿ",ỹ:"ỹ",ȳ:"ȳ",ŷ:"ŷ",ẏ:"ẏ",ẙ:"ẙ",ź:"ź",ž:"ž",ẑ:"ẑ",ż:"ż",Á:"Á",À:"À",Ä:"Ä",Ǟ:"Ǟ",Ã:"Ã",Ā:"Ā",Ă:"Ă",Ắ:"Ắ",Ằ:"Ằ",Ẵ:"Ẵ",Ǎ:"Ǎ",Â:"Â",Ấ:"Ấ",Ầ:"Ầ",Ẫ:"Ẫ",Ȧ:"Ȧ",Ǡ:"Ǡ",Å:"Å",Ǻ:"Ǻ",Ḃ:"Ḃ",Ć:"Ć",Ḉ:"Ḉ",Č:"Č",Ĉ:"Ĉ",Ċ:"Ċ",Ç:"Ç",Ď:"Ď",Ḋ:"Ḋ",Ḑ:"Ḑ",É:"É",È:"È",Ë:"Ë",Ẽ:"Ẽ",Ē:"Ē",Ḗ:"Ḗ",Ḕ:"Ḕ",Ĕ:"Ĕ",Ḝ:"Ḝ",Ě:"Ě",Ê:"Ê",Ế:"Ế",Ề:"Ề",Ễ:"Ễ",Ė:"Ė",Ȩ:"Ȩ",Ḟ:"Ḟ",Ǵ:"Ǵ",Ḡ:"Ḡ",Ğ:"Ğ",Ǧ:"Ǧ",Ĝ:"Ĝ",Ġ:"Ġ",Ģ:"Ģ",Ḧ:"Ḧ",Ȟ:"Ȟ",Ĥ:"Ĥ",Ḣ:"Ḣ",Ḩ:"Ḩ",Í:"Í",Ì:"Ì",Ï:"Ï",Ḯ:"Ḯ",Ĩ:"Ĩ",Ī:"Ī",Ĭ:"Ĭ",Ǐ:"Ǐ",Î:"Î",İ:"İ",Ĵ:"Ĵ",Ḱ:"Ḱ",Ǩ:"Ǩ",Ķ:"Ķ",Ĺ:"Ĺ",Ľ:"Ľ",Ļ:"Ļ",Ḿ:"Ḿ",Ṁ:"Ṁ",Ń:"Ń",Ǹ:"Ǹ",Ñ:"Ñ",Ň:"Ň",Ṅ:"Ṅ",Ņ:"Ņ",Ó:"Ó",Ò:"Ò",Ö:"Ö",Ȫ:"Ȫ",Õ:"Õ",Ṍ:"Ṍ",Ṏ:"Ṏ",Ȭ:"Ȭ",Ō:"Ō",Ṓ:"Ṓ",Ṑ:"Ṑ",Ŏ:"Ŏ",Ǒ:"Ǒ",Ô:"Ô",Ố:"Ố",Ồ:"Ồ",Ỗ:"Ỗ",Ȯ:"Ȯ",Ȱ:"Ȱ",Ő:"Ő",Ṕ:"Ṕ",Ṗ:"Ṗ",Ŕ:"Ŕ",Ř:"Ř",Ṙ:"Ṙ",Ŗ:"Ŗ",Ś:"Ś",Ṥ:"Ṥ",Š:"Š",Ṧ:"Ṧ",Ŝ:"Ŝ",Ṡ:"Ṡ",Ş:"Ş",Ť:"Ť",Ṫ:"Ṫ",Ţ:"Ţ",Ú:"Ú",Ù:"Ù",Ü:"Ü",Ǘ:"Ǘ",Ǜ:"Ǜ",Ǖ:"Ǖ",Ǚ:"Ǚ",Ũ:"Ũ",Ṹ:"Ṹ",Ū:"Ū",Ṻ:"Ṻ",Ŭ:"Ŭ",Ǔ:"Ǔ",Û:"Û",Ů:"Ů",Ű:"Ű",Ṽ:"Ṽ",Ẃ:"Ẃ",Ẁ:"Ẁ",Ẅ:"Ẅ",Ŵ:"Ŵ",Ẇ:"Ẇ",Ẍ:"Ẍ",Ẋ:"Ẋ",Ý:"Ý",Ỳ:"Ỳ",Ÿ:"Ÿ",Ỹ:"Ỹ",Ȳ:"Ȳ",Ŷ:"Ŷ",Ẏ:"Ẏ",Ź:"Ź",Ž:"Ž",Ẑ:"Ẑ",Ż:"Ż",ά:"ά",ὰ:"ὰ",ᾱ:"ᾱ",ᾰ:"ᾰ",έ:"έ",ὲ:"ὲ",ή:"ή",ὴ:"ὴ",ί:"ί",ὶ:"ὶ",ϊ:"ϊ",ΐ:"ΐ",ῒ:"ῒ",ῑ:"ῑ",ῐ:"ῐ",ό:"ό",ὸ:"ὸ",ύ:"ύ",ὺ:"ὺ",ϋ:"ϋ",ΰ:"ΰ",ῢ:"ῢ",ῡ:"ῡ",ῠ:"ῠ",ώ:"ώ",ὼ:"ὼ",Ύ:"Ύ",Ὺ:"Ὺ",Ϋ:"Ϋ",Ῡ:"Ῡ",Ῠ:"Ῠ",Ώ:"Ώ",Ὼ:"Ὼ"},ha=function(){function d(t,n){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode="math",this.gullet=new Iu(t,n,this.mode),this.settings=n,this.leftrightDepth=0}var r=d.prototype;return r.expect=function(n,u){if(u===void 0&&(u=!0),this.fetch().text!==n)throw new k("Expected '"+n+"', got '"+this.fetch().text+"'",this.fetch());u&&this.consume()},r.consume=function(){this.nextToken=null},r.fetch=function(){return this.nextToken==null&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken},r.switchMode=function(n){this.mode=n,this.gullet.switchMode(n)},r.parse=function(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");try{var n=this.parseExpression(!1);return this.expect("EOF"),this.settings.globalGroup||this.gullet.endGroup(),n}finally{this.gullet.endGroups()}},r.subparse=function(n){var u=this.nextToken;this.consume(),this.gullet.pushToken(new u0("}")),this.gullet.pushTokens(n);var s=this.parseExpression(!1);return this.expect("}"),this.nextToken=u,s},r.parseExpression=function(n,u){for(var s=[];;){this.mode==="math"&&this.consumeSpaces();var m=this.fetch();if(d.endOfExpression.indexOf(m.text)!==-1||u&&m.text===u||n&&s0[m.text]&&s0[m.text].infix)break;var b=this.parseAtom(u);if(b){if(b.type==="internal")continue}else break;s.push(b)}return this.mode==="text"&&this.formLigatures(s),this.handleInfixNodes(s)},r.handleInfixNodes=function(n){for(var u=-1,s,m=0;m=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+u[0]+'" used in math mode',n);var E=Ve[this.mode][u].group,F=Hr.range(n),U;if(Xa.hasOwnProperty(E)){var $=E;U={type:"atom",mode:this.mode,family:$,loc:F,text:u}}else U={type:E,mode:this.mode,loc:F,text:u};C=U}else if(u.charCodeAt(0)>=128)this.settings.strict&&(mr(u.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+u[0]+'" used in math mode',n):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+u[0]+'"'+(" ("+u.charCodeAt(0)+")"),n)),C={type:"textord",mode:"text",loc:Hr.range(n),text:u};else return null;if(this.consume(),b)for(var Y=0;Ythis.revoke(a)}revoke(a){const o=this.listeners.indexOf(a);o>=0&&this.listeners.splice(o,1)}revokeAll(){this.listeners.splice(0)}call(...a){for(const o of this.listeners)o(...a)}}function q(){return q=Object.assign||function(e){for(var a=1;a=0)&&(o[c]=e[c]);return o}const O=["textContent"];function X(e){return e.replace(/[&<"]/g,a=>({"&":"&","<":"<",'"':"""})[a])}function re(e){return e.replace(/<(\/script>)/g,"\\x3c$2")}function W(e,a){const o=a?Object.entries(a).map(([f,c])=>{if(!(c==null||c===!1))return f=` ${X(f)}`,c===!0?f:`${f}="${X(c)}"`}).filter(Boolean).join(""):"";return`<${e}${o}>`}function Se(e){return``}function ye(e,a,o){return a==null?W(e,o):W(e,o)+(a||"")+Se(e)}function _e(e,a){const o=a.map(f=>typeof f=="function"?f.toString():JSON.stringify(f??null)).join(",");return`(${e.toString()})(${o})`}function K(e,a){return e.map(o=>{if(o.type==="script"){const f=o.data,{textContent:c}=f,g=L(f,O);return ye("script",c||"",g)}if(o.type==="iife"){const{fn:f,getParams:c}=o.data;return ye("script",re(_e(f,(c==null?void 0:c(a))||[])))}return""})}function Ae(e){return e.map(a=>a.type==="stylesheet"?ye("link",null,q({rel:"stylesheet"},a.data)):ye("style",a.data))}Math.random().toString(36).slice(2,8);function Re(e,{before:a,after:o}){return function(...c){const g={args:c,thisObj:this};try{a&&a(g)}catch{}g.result=e.apply(g.thisObj,g.args);try{o&&o(g)}catch{}return g.result}}function Ge(e){const a={};return function(...f){const c=`${f[0]}`;let g=a[c];return g||(g={value:e(...f)},a[c]=g),g.value}}function Oe(e,a,o){const f=document.createElement(e);return a&&Object.entries(a).forEach(([c,g])=>{f[c]=g}),o&&Object.entries(o).forEach(([c,g])=>{f.setAttribute(c,g)}),f}const ir=Ge(e=>{document.head.append(Oe("link",{rel:"preload",as:"script",href:e}))});async function ar(e,a){if(!e.loaded&&(e.type==="script"&&(e.loaded=new Promise((o,f)=>{var c;document.head.append(Oe("script",q({},e.data,{onload:o,onerror:f}))),(c=e.data)!=null&&c.src||o(void 0)}).then(()=>{e.loaded=!0})),e.type==="iife")){const{fn:o,getParams:f}=e.data;o(...(f==null?void 0:f(a))||[]),e.loaded=!0}await e.loaded}async function ur(e,a){const o=e.filter(f=>{var c;return f.type==="script"&&((c=f.data)==null?void 0:c.src)});o.length>1&&o.forEach(f=>ir(f.data.src)),a=q({getMarkmap:()=>window.markmap},a);for(const f of e)await ar(f,a)}const or=` Markmap `,Br=["https://cdn.jsdelivr.net/npm/d3@6.7.0","https://cdn.jsdelivr.net/npm/markmap-view@0.14.4"].map(e=>({type:"script",data:{src:e}}));function sr(e,a,o){o=M({baseJs:Br},o);const{scripts:f,styles:c}=a,g=[...c?Ae(c):[]],y={getMarkmap:()=>window.markmap,getOptions:o.getOptions,jsonOptions:o.jsonOptions,root:e},A=[...K([...o.baseJs,...f||[],{type:"iife",data:{fn:(I,N,H,Z)=>{const J=I();window.mm=J.Markmap.create("svg#mindmap",(N||J.deriveOptions)(Z),H)},getParams:({getMarkmap:I,getOptions:N,root:H,jsonOptions:Z})=>[I,N,H,Z]}}],y)];return or.replace("",()=>g.join("")).replace("",()=>A.join(""))}var qr={Aacute:"Á",aacute:"á",Abreve:"Ă",abreve:"ă",ac:"∾",acd:"∿",acE:"∾̳",Acirc:"Â",acirc:"â",acute:"´",Acy:"А",acy:"а",AElig:"Æ",aelig:"æ",af:"⁡",Afr:"𝔄",afr:"𝔞",Agrave:"À",agrave:"à",alefsym:"ℵ",aleph:"ℵ",Alpha:"Α",alpha:"α",Amacr:"Ā",amacr:"ā",amalg:"⨿",AMP:"&",amp:"&",And:"⩓",and:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",Aogon:"Ą",aogon:"ą",Aopf:"𝔸",aopf:"𝕒",ap:"≈",apacir:"⩯",apE:"⩰",ape:"≊",apid:"≋",apos:"'",ApplyFunction:"⁡",approx:"≈",approxeq:"≊",Aring:"Å",aring:"å",Ascr:"𝒜",ascr:"𝒶",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",Barwed:"⌆",barwed:"⌅",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",Bcy:"Б",bcy:"б",bdquo:"„",becaus:"∵",Because:"∵",because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",Beta:"Β",beta:"β",beth:"ℶ",between:"≬",Bfr:"𝔅",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bNot:"⫭",bnot:"⌐",Bopf:"𝔹",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxDL:"╗",boxDl:"╖",boxdL:"╕",boxdl:"┐",boxDR:"╔",boxDr:"╓",boxdR:"╒",boxdr:"┌",boxH:"═",boxh:"─",boxHD:"╦",boxHd:"╤",boxhD:"╥",boxhd:"┬",boxHU:"╩",boxHu:"╧",boxhU:"╨",boxhu:"┴",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxUL:"╝",boxUl:"╜",boxuL:"╛",boxul:"┘",boxUR:"╚",boxUr:"╙",boxuR:"╘",boxur:"└",boxV:"║",boxv:"│",boxVH:"╬",boxVh:"╫",boxvH:"╪",boxvh:"┼",boxVL:"╣",boxVl:"╢",boxvL:"╡",boxvl:"┤",boxVR:"╠",boxVr:"╟",boxvR:"╞",boxvr:"├",bprime:"‵",Breve:"˘",breve:"˘",brvbar:"¦",Bscr:"ℬ",bscr:"𝒷",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",Bumpeq:"≎",bumpeq:"≏",Cacute:"Ć",cacute:"ć",Cap:"⋒",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",Ccaron:"Č",ccaron:"č",Ccedil:"Ç",ccedil:"ç",Ccirc:"Ĉ",ccirc:"ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",Cdot:"Ċ",cdot:"ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",CenterDot:"·",centerdot:"·",Cfr:"ℭ",cfr:"𝔠",CHcy:"Ч",chcy:"ч",check:"✓",checkmark:"✓",Chi:"Χ",chi:"χ",cir:"○",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cirE:"⧃",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",Colon:"∷",colon:":",Colone:"⩴",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",Conint:"∯",conint:"∮",ContourIntegral:"∮",Copf:"ℂ",copf:"𝕔",coprod:"∐",Coproduct:"∐",COPY:"©",copy:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",Cross:"⨯",cross:"✗",Cscr:"𝒞",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",Cup:"⋓",cup:"∪",cupbrcap:"⩈",CupCap:"≍",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",Dagger:"‡",dagger:"†",daleth:"ℸ",Darr:"↡",dArr:"⇓",darr:"↓",dash:"‐",Dashv:"⫤",dashv:"⊣",dbkarow:"⤏",dblac:"˝",Dcaron:"Ď",dcaron:"ď",Dcy:"Д",dcy:"д",DD:"ⅅ",dd:"ⅆ",ddagger:"‡",ddarr:"⇊",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",Delta:"Δ",delta:"δ",demptyv:"⦱",dfisht:"⥿",Dfr:"𝔇",dfr:"𝔡",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",Diamond:"⋄",diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",DJcy:"Ђ",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",Dopf:"𝔻",dopf:"𝕕",Dot:"¨",dot:"˙",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrow:"↓",Downarrow:"⇓",downarrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",Dscr:"𝒟",dscr:"𝒹",DScy:"Ѕ",dscy:"ѕ",dsol:"⧶",Dstrok:"Đ",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",DZcy:"Џ",dzcy:"џ",dzigrarr:"⟿",Eacute:"É",eacute:"é",easter:"⩮",Ecaron:"Ě",ecaron:"ě",ecir:"≖",Ecirc:"Ê",ecirc:"ê",ecolon:"≕",Ecy:"Э",ecy:"э",eDDot:"⩷",Edot:"Ė",eDot:"≑",edot:"ė",ee:"ⅇ",efDot:"≒",Efr:"𝔈",efr:"𝔢",eg:"⪚",Egrave:"È",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",Emacr:"Ē",emacr:"ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp:" ",emsp13:" ",emsp14:" ",ENG:"Ŋ",eng:"ŋ",ensp:" ",Eogon:"Ę",eogon:"ę",Eopf:"𝔼",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",Epsilon:"Ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",Escr:"ℰ",escr:"ℯ",esdot:"≐",Esim:"⩳",esim:"≂",Eta:"Η",eta:"η",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",ExponentialE:"ⅇ",exponentiale:"ⅇ",fallingdotseq:"≒",Fcy:"Ф",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",Ffr:"𝔉",ffr:"𝔣",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",Fopf:"𝔽",fopf:"𝕗",ForAll:"∀",forall:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",Fscr:"ℱ",fscr:"𝒻",gacute:"ǵ",Gamma:"Γ",gamma:"γ",Gammad:"Ϝ",gammad:"ϝ",gap:"⪆",Gbreve:"Ğ",gbreve:"ğ",Gcedil:"Ģ",Gcirc:"Ĝ",gcirc:"ĝ",Gcy:"Г",gcy:"г",Gdot:"Ġ",gdot:"ġ",gE:"≧",ge:"≥",gEl:"⪌",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",Gfr:"𝔊",gfr:"𝔤",Gg:"⋙",gg:"≫",ggg:"⋙",gimel:"ℷ",GJcy:"Ѓ",gjcy:"ѓ",gl:"≷",gla:"⪥",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gnE:"≩",gne:"⪈",gneq:"⪈",gneqq:"≩",gnsim:"⋧",Gopf:"𝔾",gopf:"𝕘",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",GT:">",Gt:"≫",gt:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",HARDcy:"Ъ",hardcy:"ъ",hArr:"⇔",harr:"↔",harrcir:"⥈",harrw:"↭",Hat:"^",hbar:"ℏ",Hcirc:"Ĥ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",Hfr:"ℌ",hfr:"𝔥",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",Hopf:"ℍ",hopf:"𝕙",horbar:"―",HorizontalLine:"─",Hscr:"ℋ",hscr:"𝒽",hslash:"ℏ",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",Iacute:"Í",iacute:"í",ic:"⁣",Icirc:"Î",icirc:"î",Icy:"И",icy:"и",Idot:"İ",IEcy:"Е",iecy:"е",iexcl:"¡",iff:"⇔",Ifr:"ℑ",ifr:"𝔦",Igrave:"Ì",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",IJlig:"IJ",ijlig:"ij",Im:"ℑ",Imacr:"Ī",imacr:"ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",Implies:"⇒",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",Int:"∬",int:"∫",intcal:"⊺",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"⁣",InvisibleTimes:"⁢",IOcy:"Ё",iocy:"ё",Iogon:"Į",iogon:"į",Iopf:"𝕀",iopf:"𝕚",Iota:"Ι",iota:"ι",iprod:"⨼",iquest:"¿",Iscr:"ℐ",iscr:"𝒾",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"⁢",Itilde:"Ĩ",itilde:"ĩ",Iukcy:"І",iukcy:"і",Iuml:"Ï",iuml:"ï",Jcirc:"Ĵ",jcirc:"ĵ",Jcy:"Й",jcy:"й",Jfr:"𝔍",jfr:"𝔧",jmath:"ȷ",Jopf:"𝕁",jopf:"𝕛",Jscr:"𝒥",jscr:"𝒿",Jsercy:"Ј",jsercy:"ј",Jukcy:"Є",jukcy:"є",Kappa:"Κ",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"ķ",Kcy:"К",kcy:"к",Kfr:"𝔎",kfr:"𝔨",kgreen:"ĸ",KHcy:"Х",khcy:"х",KJcy:"Ќ",kjcy:"ќ",Kopf:"𝕂",kopf:"𝕜",Kscr:"𝒦",kscr:"𝓀",lAarr:"⇚",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",Lambda:"Λ",lambda:"λ",Lang:"⟪",lang:"⟨",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",Larr:"↞",lArr:"⇐",larr:"←",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",lAtail:"⤛",latail:"⤙",late:"⪭",lates:"⪭︀",lBarr:"⤎",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ļ",lcedil:"ļ",lceil:"⌈",lcub:"{",Lcy:"Л",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",lE:"≦",le:"≤",LeftAngleBracket:"⟨",LeftArrow:"←",Leftarrow:"⇐",leftarrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",LeftRightArrow:"↔",Leftrightarrow:"⇔",leftrightarrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",lEg:"⪋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",Lfr:"𝔏",lfr:"𝔩",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",LJcy:"Љ",ljcy:"љ",Ll:"⋘",ll:"≪",llarr:"⇇",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",Lmidot:"Ŀ",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnap:"⪉",lnapprox:"⪉",lnE:"≨",lne:"⪇",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",LongLeftArrow:"⟵",Longleftarrow:"⟸",longleftarrow:"⟵",LongLeftRightArrow:"⟷",Longleftrightarrow:"⟺",longleftrightarrow:"⟷",longmapsto:"⟼",LongRightArrow:"⟶",Longrightarrow:"⟹",longrightarrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",Lopf:"𝕃",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"‎",lrtri:"⊿",lsaquo:"‹",Lscr:"ℒ",lscr:"𝓁",Lsh:"↰",lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",Lstrok:"Ł",lstrok:"ł",LT:"<",Lt:"≪",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",Map:"⤅",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",Mcy:"М",mcy:"м",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",mfr:"𝔪",mho:"℧",micro:"µ",mid:"∣",midast:"*",midcir:"⫰",middot:"·",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",Mopf:"𝕄",mopf:"𝕞",mp:"∓",Mscr:"ℳ",mscr:"𝓂",mstpos:"∾",Mu:"Μ",mu:"μ",multimap:"⊸",mumap:"⊸",nabla:"∇",Nacute:"Ń",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",Ncaron:"Ň",ncaron:"ň",Ncedil:"Ņ",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",Ncy:"Н",ncy:"н",ndash:"–",ne:"≠",nearhk:"⤤",neArr:"⇗",nearr:"↗",nearrow:"↗",nedot:"≐̸",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:` `,nexist:"∄",nexists:"∄",Nfr:"𝔑",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",nGt:"≫⃒",ngt:"≯",ngtr:"≯",nGtv:"≫̸",nhArr:"⇎",nharr:"↮",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",NJcy:"Њ",njcy:"њ",nlArr:"⇍",nlarr:"↚",nldr:"‥",nlE:"≦̸",nle:"≰",nLeftarrow:"⇍",nleftarrow:"↚",nLeftrightarrow:"⇎",nleftrightarrow:"↮",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nLt:"≪⃒",nlt:"≮",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"⁠",NonBreakingSpace:" ",Nopf:"ℕ",nopf:"𝕟",Not:"⫬",not:"¬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrArr:"⇏",nrarr:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nRightarrow:"⇏",nrightarrow:"↛",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",Nscr:"𝒩",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",Ntilde:"Ñ",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",Nu:"Ν",nu:"ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nVDash:"⊯",nVdash:"⊮",nvDash:"⊭",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwArr:"⇖",nwarr:"↖",nwarrow:"↖",nwnear:"⤧",Oacute:"Ó",oacute:"ó",oast:"⊛",ocir:"⊚",Ocirc:"Ô",ocirc:"ô",Ocy:"О",ocy:"о",odash:"⊝",Odblac:"Ő",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",OElig:"Œ",oelig:"œ",ofcir:"⦿",Ofr:"𝔒",ofr:"𝔬",ogon:"˛",Ograve:"Ò",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",Omacr:"Ō",omacr:"ō",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",omid:"⦶",ominus:"⊖",Oopf:"𝕆",oopf:"𝕠",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",Or:"⩔",or:"∨",orarr:"↻",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",Oscr:"𝒪",oscr:"ℴ",Oslash:"Ø",oslash:"ø",osol:"⊘",Otilde:"Õ",otilde:"õ",Otimes:"⨷",otimes:"⊗",otimesas:"⨶",Ouml:"Ö",ouml:"ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",par:"∥",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",Pcy:"П",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",Pfr:"𝔓",pfr:"𝔭",Phi:"Φ",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",Pi:"Π",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",Popf:"ℙ",popf:"𝕡",pound:"£",Pr:"⪻",pr:"≺",prap:"⪷",prcue:"≼",prE:"⪳",pre:"⪯",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",Prime:"″",prime:"′",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportion:"∷",Proportional:"∝",propto:"∝",prsim:"≾",prurel:"⊰",Pscr:"𝒫",pscr:"𝓅",Psi:"Ψ",psi:"ψ",puncsp:" ",Qfr:"𝔔",qfr:"𝔮",qint:"⨌",Qopf:"ℚ",qopf:"𝕢",qprime:"⁗",Qscr:"𝒬",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",QUOT:'"',quot:'"',rAarr:"⇛",race:"∽̱",Racute:"Ŕ",racute:"ŕ",radic:"√",raemptyv:"⦳",Rang:"⟫",rang:"⟩",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",Rarr:"↠",rArr:"⇒",rarr:"→",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",Rarrtl:"⤖",rarrtl:"↣",rarrw:"↝",rAtail:"⤜",ratail:"⤚",ratio:"∶",rationals:"ℚ",RBarr:"⤐",rBarr:"⤏",rbarr:"⤍",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",Rcaron:"Ř",rcaron:"ř",Rcedil:"Ŗ",rcedil:"ŗ",rceil:"⌉",rcub:"}",Rcy:"Р",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",Re:"ℜ",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",REG:"®",reg:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",Rfr:"ℜ",rfr:"𝔯",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",Rho:"Ρ",rho:"ρ",rhov:"ϱ",RightAngleBracket:"⟩",RightArrow:"→",Rightarrow:"⇒",rightarrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"‏",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",Ropf:"ℝ",ropf:"𝕣",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",Rscr:"ℛ",rscr:"𝓇",Rsh:"↱",rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",Sacute:"Ś",sacute:"ś",sbquo:"‚",Sc:"⪼",sc:"≻",scap:"⪸",Scaron:"Š",scaron:"š",sccue:"≽",scE:"⪴",sce:"⪰",Scedil:"Ş",scedil:"ş",Scirc:"Ŝ",scirc:"ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",Scy:"С",scy:"с",sdot:"⋅",sdotb:"⊡",sdote:"⩦",searhk:"⤥",seArr:"⇘",searr:"↘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",Sfr:"𝔖",sfr:"𝔰",sfrown:"⌢",sharp:"♯",SHCHcy:"Щ",shchcy:"щ",SHcy:"Ш",shcy:"ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"­",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",SOFTcy:"Ь",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",Sopf:"𝕊",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",Square:"□",square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squf:"▪",srarr:"→",Sscr:"𝒮",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",Star:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",Sub:"⋐",sub:"⊂",subdot:"⪽",subE:"⫅",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",Subset:"⋐",subset:"⊂",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",Sum:"∑",sum:"∑",sung:"♪",Sup:"⋑",sup:"⊃",sup1:"¹",sup2:"²",sup3:"³",supdot:"⪾",supdsub:"⫘",supE:"⫆",supe:"⊇",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",Supset:"⋑",supset:"⊃",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swArr:"⇙",swarr:"↙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:" ",target:"⌖",Tau:"Τ",tau:"τ",tbrk:"⎴",Tcaron:"Ť",tcaron:"ť",Tcedil:"Ţ",tcedil:"ţ",Tcy:"Т",tcy:"т",tdot:"⃛",telrec:"⌕",Tfr:"𝔗",tfr:"𝔱",there4:"∴",Therefore:"∴",therefore:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:"  ",thinsp:" ",ThinSpace:" ",thkap:"≈",thksim:"∼",THORN:"Þ",thorn:"þ",Tilde:"∼",tilde:"˜",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",times:"×",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",Topf:"𝕋",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",TRADE:"™",trade:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",Tscr:"𝒯",tscr:"𝓉",TScy:"Ц",tscy:"ц",TSHcy:"Ћ",tshcy:"ћ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",Uacute:"Ú",uacute:"ú",Uarr:"↟",uArr:"⇑",uarr:"↑",Uarrocir:"⥉",Ubrcy:"Ў",ubrcy:"ў",Ubreve:"Ŭ",ubreve:"ŭ",Ucirc:"Û",ucirc:"û",Ucy:"У",ucy:"у",udarr:"⇅",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"𝔘",ufr:"𝔲",Ugrave:"Ù",ugrave:"ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",Umacr:"Ū",umacr:"ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",uogon:"ų",Uopf:"𝕌",uopf:"𝕦",UpArrow:"↑",Uparrow:"⇑",uparrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",UpDownArrow:"↕",Updownarrow:"⇕",updownarrow:"↕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",Upsi:"ϒ",upsi:"υ",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",UpTee:"⊥",UpTeeArrow:"↥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",Uring:"Ů",uring:"ů",urtri:"◹",Uscr:"𝒰",uscr:"𝓊",utdot:"⋰",Utilde:"Ũ",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",Uuml:"Ü",uuml:"ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",vArr:"⇕",varr:"↕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",Vbar:"⫫",vBar:"⫨",vBarv:"⫩",Vcy:"В",vcy:"в",VDash:"⊫",Vdash:"⊩",vDash:"⊨",vdash:"⊢",Vdashl:"⫦",Vee:"⋁",vee:"∨",veebar:"⊻",veeeq:"≚",vellip:"⋮",Verbar:"‖",verbar:"|",Vert:"‖",vert:"|",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",Vopf:"𝕍",vopf:"𝕧",vprop:"∝",vrtri:"⊳",Vscr:"𝒱",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",Vvdash:"⊪",vzigzag:"⦚",Wcirc:"Ŵ",wcirc:"ŵ",wedbar:"⩟",Wedge:"⋀",wedge:"∧",wedgeq:"≙",weierp:"℘",Wfr:"𝔚",wfr:"𝔴",Wopf:"𝕎",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",Wscr:"𝒲",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",Xfr:"𝔛",xfr:"𝔵",xhArr:"⟺",xharr:"⟷",Xi:"Ξ",xi:"ξ",xlArr:"⟸",xlarr:"⟵",xmap:"⟼",xnis:"⋻",xodot:"⨀",Xopf:"𝕏",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrArr:"⟹",xrarr:"⟶",Xscr:"𝒳",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",Yacute:"Ý",yacute:"ý",YAcy:"Я",yacy:"я",Ycirc:"Ŷ",ycirc:"ŷ",Ycy:"Ы",ycy:"ы",yen:"¥",Yfr:"𝔜",yfr:"𝔶",YIcy:"Ї",yicy:"ї",Yopf:"𝕐",yopf:"𝕪",Yscr:"𝒴",yscr:"𝓎",YUcy:"Ю",yucy:"ю",Yuml:"Ÿ",yuml:"ÿ",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"З",zcy:"з",Zdot:"Ż",zdot:"ż",zeetrf:"ℨ",ZeroWidthSpace:"​",Zeta:"Ζ",zeta:"ζ",Zfr:"ℨ",zfr:"𝔷",ZHcy:"Ж",zhcy:"ж",zigrarr:"⇝",Zopf:"ℤ",zopf:"𝕫",Zscr:"𝒵",zscr:"𝓏",zwj:"‍",zwnj:"‌"},G=Object.prototype.hasOwnProperty;function P(e,a){return e?G.call(e,a):!1}function ce(e){return P(qr,e)?qr[e]:e}var ee=Object.prototype.hasOwnProperty;function be(e,a){return e?ee.call(e,a):!1}function ke(e){var a=[].slice.call(arguments,1);return a.forEach(function(o){if(o){if(typeof o!="object")throw new TypeError(o+"must be object");Object.keys(o).forEach(function(f){e[f]=o[f]})}}),e}var Te=/\\([\\!"#$%&'()*+,.\/:;<=>?@[\]^_`{|}~-])/g;function De(e){return e.indexOf("\\")<0?e:e.replace(Te,"$1")}function ue(e){return!(e>=55296&&e<=57343||e>=64976&&e<=65007||(e&65535)===65535||(e&65535)===65534||e>=0&&e<=8||e===11||e>=14&&e<=31||e>=127&&e<=159||e>1114111)}function Le(e){if(e>65535){e-=65536;var a=55296+(e>>10),o=56320+(e&1023);return String.fromCharCode(a,o)}return String.fromCharCode(e)}var Mr=/&([a-z#][a-z0-9]{1,31});/gi,$e=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i;function mr(e,a){var o=0,f=ce(a);return a!==f?f:a.charCodeAt(0)===35&&$e.test(a)&&(o=a[1].toLowerCase()==="x"?parseInt(a.slice(2),16):parseInt(a.slice(1),10),ue(o))?Le(o):e}function We(e){return e.indexOf("&")<0?e:e.replace(Mr,mr)}var wr=/[&<>"]/,Ir=/[&<>"]/g,G0={"&":"&","<":"<",">":">",'"':"""};function Ua(e){return G0[e]}function vr(e){return wr.test(e)?e.replace(Ir,Ua):e}var pe={};pe.blockquote_open=function(){return`
`},pe.blockquote_close=function(e,a){return"
"+g0(e,a)},pe.code=function(e,a){return e[a].block?"
"+vr(e[a].content)+"
"+g0(e,a):""+vr(e[a].content)+""},pe.fence=function(e,a,o,f,c){var g=e[a],y="",A=o.langPrefix,B="",I,N,H;if(g.params){if(I=g.params.split(/\s+/g),N=I.join(" "),be(c.rules.fence_custom,I[0]))return c.rules.fence_custom[I[0]](e,a,o,f,c);B=vr(We(De(N))),y=' class="'+A+B+'"'}return o.highlight?H=o.highlight.apply(o.highlight,[g.content].concat(I))||vr(g.content):H=vr(g.content),"
"+H+"
"+g0(e,a)},pe.fence_custom={},pe.heading_open=function(e,a){return""},pe.heading_close=function(e,a){return" `},pe.hr=function(e,a,o){return(o.xhtmlOut?"
":"
")+g0(e,a)},pe.bullet_list_open=function(){return`
    `},pe.bullet_list_close=function(e,a){return"
"+g0(e,a)},pe.list_item_open=function(){return"
  • "},pe.list_item_close=function(){return`
  • `},pe.ordered_list_open=function(e,a){var o=e[a],f=o.order>1?' start="'+o.order+'"':"";return" `},pe.ordered_list_close=function(e,a){return""+g0(e,a)},pe.paragraph_open=function(e,a){return e[a].tight?"":"

    "},pe.paragraph_close=function(e,a){var o=!(e[a].tight&&a&&e[a-1].type==="inline"&&!e[a-1].content);return(e[a].tight?"":"

    ")+(o?g0(e,a):"")},pe.link_open=function(e,a,o){var f=e[a].title?' title="'+vr(We(e[a].title))+'"':"",c=o.linkTarget?' target="'+o.linkTarget+'"':"";return'"},pe.link_close=function(){return""},pe.image=function(e,a,o){var f=' src="'+vr(e[a].src)+'"',c=e[a].title?' title="'+vr(We(e[a].title))+'"':"",g=' alt="'+(e[a].alt?vr(We(De(e[a].alt))):"")+'"',y=o.xhtmlOut?" /":"";return""},pe.table_open=function(){return` `},pe.table_close=function(){return`
    `},pe.thead_open=function(){return` `},pe.thead_close=function(){return` `},pe.tbody_open=function(){return` `},pe.tbody_close=function(){return` `},pe.tr_open=function(){return""},pe.tr_close=function(){return` `},pe.th_open=function(e,a){var o=e[a];return""},pe.th_close=function(){return""},pe.td_open=function(e,a){var o=e[a];return""},pe.td_close=function(){return""},pe.strong_open=function(){return""},pe.strong_close=function(){return""},pe.em_open=function(){return""},pe.em_close=function(){return""},pe.del_open=function(){return""},pe.del_close=function(){return""},pe.ins_open=function(){return""},pe.ins_close=function(){return""},pe.mark_open=function(){return""},pe.mark_close=function(){return""},pe.sub=function(e,a){return""+vr(e[a].content)+""},pe.sup=function(e,a){return""+vr(e[a].content)+""},pe.hardbreak=function(e,a,o){return o.xhtmlOut?`
    `:`
    `},pe.softbreak=function(e,a,o){return o.breaks?o.xhtmlOut?`
    `:`
    `:` `},pe.text=function(e,a){return vr(e[a].content)},pe.htmlblock=function(e,a){return e[a].content},pe.htmltag=function(e,a){return e[a].content},pe.abbr_open=function(e,a){return''},pe.abbr_close=function(){return""},pe.footnote_ref=function(e,a){var o=Number(e[a].id+1).toString(),f="fnref"+o;return e[a].subId>0&&(f+=":"+e[a].subId),'['+o+"]"},pe.footnote_block_open=function(e,a,o){var f=o.xhtmlOut?`
    `:`
    `;return f+`
      `},pe.footnote_block_close=function(){return`
    `},pe.footnote_open=function(e,a){var o=Number(e[a].id+1).toString();return'
  • '},pe.footnote_close=function(){return`
  • `},pe.footnote_anchor=function(e,a){var o=Number(e[a].id+1).toString(),f="fnref"+o;return e[a].subId>0&&(f+=":"+e[a].subId),' '},pe.dl_open=function(){return`
    `},pe.dt_open=function(){return"
    "},pe.dd_open=function(){return"
    "},pe.dl_close=function(){return`
    `},pe.dt_close=function(){return` `},pe.dd_close=function(){return` `};function Jn(e,a){return++a>=e.length-2?a:e[a].type==="paragraph_open"&&e[a].tight&&e[a+1].type==="inline"&&e[a+1].content.length===0&&e[a+2].type==="paragraph_close"&&e[a+2].tight?Jn(e,a+2):a}var g0=pe.getBreak=function(a,o){return o=Jn(a,o),o"u"&&(f.abbreviations[":"+B]=I),y)}function Qn(e){var a=e.tokens,o,f,c,g;if(!e.inlineMode){for(o=1,f=a.length-1;o1)||o===41&&(f--,f<0))break;a++}return g===a||(c=De(e.src.slice(g,a)),!e.parser.validateLink(c))?!1:(e.linkContent=c,e.pos=a,!0)}function vt(e,a){var o,f=a,c=e.posMax,g=e.src.charCodeAt(a);if(g!==34&&g!==39&&g!==40)return!1;for(a++,g===40&&(g=41);a"u"&&(f.references[Z]={title:H,href:N}),y)}function ri(e){var a=e.tokens,o,f,c,g;if(e.env.references=e.env.references||{},!e.inlineMode){for(o=1,f=a.length-1;o0?y[a].count:1,f=0;f=0;a--)if(g=c[a],g.type==="text"){for(B=0,y=g.content,N.lastIndex=0,I=g.level,A=[];H=N.exec(y);)N.lastIndex>B&&A.push({type:"text",content:y.slice(B,H.index+H[1].length),level:I}),A.push({type:"abbr_open",title:e.env.abbreviations[":"+H[2]],level:I++}),A.push({type:"text",content:H[2],level:I}),A.push({type:"abbr_close",level:--I}),B=N.lastIndex-H[3].length;A.length&&(B=0;g--)if(e.tokens[g].type==="inline")for(c=e.tokens[g].children,a=c.length-1;a>=0;a--)o=c[a],o.type==="text"&&(f=o.content,f=t0(f),ai.test(f)&&(f=f.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---([^-]|$)/mg,"$1—$2").replace(/(^|\s)--(\s|$)/mg,"$1–$2").replace(/(^|[^-\s])--([^-\s]|$)/mg,"$1–$2")),o.content=f)}}var li=/['"]/,un=/['"]/g,Y0=/[-\s()\[\]]/,gt="’";function oi(e,a){return a<0||a>=e.length?!1:!Y0.test(e[a])}function B0(e,a,o){return e.substr(0,a)+o+e.substr(a+1)}function Tr(e){var a,o,f,c,g,y,A,B,I,N,H,Z,J,ne,se,xe,Be;if(e.options.typographer){for(Be=[],se=e.tokens.length-1;se>=0;se--)if(e.tokens[se].type==="inline"){for(xe=e.tokens[se].children,Be.length=0,a=0;a=0&&!(Be[J].level<=A);J--);Be.length=J+1,f=o.content,g=0,y=f.length;e:for(;g=0&&(N=Be[J],!(Be[J].level=this.eMarks[a]},Kr.prototype.skipEmptyLines=function(a){for(var o=this.lineMax;af;)if(o!==this.src.charCodeAt(--a))return a+1;return a},Kr.prototype.getLines=function(a,o,f,c){var g,y,A,B,I,N=a;if(a>=o)return"";if(N+1===o)return y=this.bMarks[N]+Math.min(this.tShift[N],f),A=c?this.eMarks[N]+1:this.eMarks[N],this.src.slice(y,A);for(B=new Array(o-a),g=0;Nf&&(I=f),I<0&&(I=0),y=this.bMarks[N]+I,N+1=4){f++,c=f;continue}break}return e.line=f,e.tokens.push({type:"code",content:e.getLines(a,c,4+e.blkIndent,!0),block:!0,lines:[a,e.line],level:e.level}),!0}function Ya(e,a,o,f){var c,g,y,A,B,I=!1,N=e.bMarks[a]+e.tShift[a],H=e.eMarks[a];if(N+3>H||(c=e.src.charCodeAt(N),c!==126&&c!==96)||(B=N,N=e.skipChars(N,c),g=N-B,g<3)||(y=e.src.slice(N,H).trim(),y.indexOf("`")>=0))return!1;if(f)return!0;for(A=a;A++,!(A>=o||(N=B=e.bMarks[A]+e.tShift[A],H=e.eMarks[A],N=4)&&(N=e.skipChars(N,c),!(N-Bxe||e.src.charCodeAt(se++)!==62||e.level>=e.options.maxNesting)return!1;if(f)return!0;for(e.src.charCodeAt(se)===32&&se++,B=e.blkIndent,e.blkIndent=0,A=[e.bMarks[a]],e.bMarks[a]=se,se=se=xe,y=[e.tShift[a]],e.tShift[a]=se-e.bMarks[a],H=e.parser.ruler.getRules("blockquote"),c=a+1;c=xe));c++){if(e.src.charCodeAt(se++)===62){e.src.charCodeAt(se)===32&&se++,A.push(e.bMarks[c]),e.bMarks[c]=se,se=se=xe,y.push(e.tShift[c]),e.tShift[c]=se-e.bMarks[c];continue}if(g)break;for(ne=!1,Z=0,J=H.length;ZB||(c=e.src.charCodeAt(A++),c!==42&&c!==45&&c!==95))return!1;for(g=1;A=c||(o=e.src.charCodeAt(f++),o!==42&&o!==45&&o!==43)||f=c||(o=e.src.charCodeAt(f++),o<48||o>57))return-1;for(;;){if(f>=c)return-1;if(o=e.src.charCodeAt(f++),!(o>=48&&o<=57)){if(o===41||o===46)break;return-1}}return f=0)xe=!0;else if((H=X0(e,a))>=0)xe=!1;else return!1;if(e.level>=e.options.maxNesting)return!1;if(se=e.src.charCodeAt(H-1),f)return!0;for(Me=e.tokens.length,xe?(N=e.bMarks[a]+e.tShift[a],ne=Number(e.src.substr(N,H-N-1)),e.tokens.push({type:"ordered_list_open",order:ne,lines:e0=[a,0],level:e.level++})):e.tokens.push({type:"bullet_list_open",lines:e0=[a,0],level:e.level++}),c=a,br=!1,Vu=e.parser.ruler.getRules("list");c=Z?J=1:J=Be-H,J>4&&(J=1),J<1&&(J=1),g=H-e.bMarks[c]+J,e.tokens.push({type:"list_item_open",lines:ya=[a,0],level:e.level++}),A=e.blkIndent,B=e.tight,y=e.tShift[a],I=e.parentType,e.tShift[a]=Be-e.bMarks[a],e.blkIndent=g,e.tight=!0,e.parentType="list",e.parser.tokenize(e,a,o,!0),(!e.tight||br)&&(Cl=!1),br=e.line-a>1&&e.isEmpty(e.line-1),e.blkIndent=A,e.tShift[a]=y,e.tight=B,e.parentType=I,e.tokens.push({type:"list_item_close",level:--e.level}),c=a=e.line,ya[1]=c,Be=e.bMarks[a],!(c>=o||e.isEmpty(c)||e.tShift[c]N||e.src.charCodeAt(I)!==91||e.src.charCodeAt(I+1)!==94||e.level>=e.options.maxNesting)return!1;for(A=I+2;A=N||e.src.charCodeAt(++A)!==58?!1:(f||(A++,e.env.footnotes||(e.env.footnotes={}),e.env.footnotes.refs||(e.env.footnotes.refs={}),B=e.src.slice(I+2,A-2),e.env.footnotes.refs[":"+B]=-1,e.tokens.push({type:"footnote_reference_open",label:B,level:e.level++}),c=e.bMarks[a],g=e.tShift[a],y=e.parentType,e.tShift[a]=e.skipSpaces(A)-A,e.bMarks[a]=A,e.blkIndent+=4,e.parentType="footnote",e.tShift[a]=B||(c=e.src.charCodeAt(A),c!==35||A>=B))return!1;for(g=1,c=e.src.charCodeAt(++A);c===35&&A6||AA&&e.src.charCodeAt(y-1)===32&&(B=y),e.line=a+1,e.tokens.push({type:"heading_open",hLevel:g,lines:[a,e.line],level:e.level}),A=o||e.tShift[y]3||(c=e.bMarks[y]+e.tShift[y],g=e.eMarks[y],c>=g)||(f=e.src.charCodeAt(c),f!==45&&f!==61)||(c=e.skipChars(c,f),c=e.skipSpaces(c),c]/,cr=/^<\/([a-zA-Z]{1,15})[\s>]/;function M0(e){var a=e|32;return a>=97&&a<=122}function ge(e,a,o,f){var c,g,y,A=e.bMarks[a],B=e.eMarks[a],I=e.tShift[a];if(A+=I,!e.options.html||I>3||A+2>=B||e.src.charCodeAt(A)!==60)return!1;if(c=e.src.charCodeAt(A+1),c===33||c===63){if(f)return!0}else if(c===47||M0(c)){if(c===47){if(g=e.src.slice(A,B).match(cr),!g)return!1}else if(g=e.src.slice(A,B).match(he),!g)return!1;if(Ue[g[1].toLowerCase()]!==!0)return!1;if(f)return!0}else return!1;for(y=a+1;yo||(B=a+1,e.tShift[B]=e.eMarks[B])||(c=e.src.charCodeAt(y),c!==124&&c!==45&&c!==58)||(g=Ke(e,a+1),!/^[-:| ]+$/.test(g))||(I=g.split("|"),I<=2))return!1;for(H=[],A=0;A=g||(f=e.src.charCodeAt(c++),f!==126&&f!==58)||(o=e.skipSpaces(c),c===o)||o>=g?-1:o}function z(e,a){var o,f,c=e.level+2;for(o=a+2,f=e.tokens.length-2;o=0;if(N=a+1,e.isEmpty(N)&&++N>o||e.tShift[N]=e.options.maxNesting)return!1;I=e.tokens.length,e.tokens.push({type:"dl_open",lines:B=[a,0],level:e.level++}),y=a,g=N;e:for(;;){for(Be=!0,xe=!1,e.tokens.push({type:"dt_open",lines:[y,y],level:e.level++}),e.tokens.push({type:"inline",content:e.getLines(y,y+1,e.blkIndent,!1).trim(),level:e.level+1,lines:[y,y],children:[]}),e.tokens.push({type:"dt_close",level:--e.level});;){if(e.tokens.push({type:"dd_open",lines:A=[N,0],level:e.level++}),se=e.tight,Z=e.ddIndent,H=e.blkIndent,ne=e.tShift[g],J=e.parentType,e.blkIndent=e.ddIndent=e.tShift[g]+2,e.tShift[g]=c-e.bMarks[g],e.tight=!0,e.parentType="deflist",e.parser.tokenize(e,g,o,!0),(!e.tight||xe)&&(Be=!1),xe=e.line-g>1&&e.isEmpty(e.line-1),e.tShift[g]=ne,e.tight=se,e.parentType=J,e.blkIndent=H,e.ddIndent=Z,e.tokens.push({type:"dd_close",level:--e.level}),A[1]=N=e.line,N>=o||e.tShift[N]=o||(y=N,e.isEmpty(y))||e.tShift[y]=o)||(e.isEmpty(g)&&g++,g>=o)||e.tShift[g]3)){for(c=!1,g=0,y=B.length;g=o||e.tShift[g]=0&&(e=e.replace(ln,function(A,B){var I;return e.charCodeAt(B)===10?(g=B+1,y=0,A):(I=" ".slice((B-g-y)%4),y=B-g+1,I)})),c=new Kr(e,this,a,o,f),this.tokenize(c,c.line,c.lineMax)};function on(e){switch(e){case 10:case 92:case 96:case 42:case 95:case 94:case 91:case 93:case 33:case 38:case 60:case 62:case 123:case 125:case 36:case 37:case 64:case 126:case 43:case 61:case 58:return!0;default:return!1}}function fi(e,a){for(var o=e.pos;o=0&&e.pending.charCodeAt(o)===32)if(o>=1&&e.pending.charCodeAt(o-1)===32){for(var g=o-2;g>=0;g--)if(e.pending.charCodeAt(g)!==32){e.pending=e.pending.substring(0,g+1);break}e.push({type:"hardbreak",level:e.level})}else e.pending=e.pending.slice(0,-1),e.push({type:"softbreak",level:e.level});else e.push({type:"softbreak",level:e.level});for(c++;c?@[]^_`{|}~-".split("").forEach(function(e){W0[e.charCodeAt(0)]=1});function we(e,a){var o,f=e.pos,c=e.posMax;if(e.src.charCodeAt(f)!==92)return!1;if(f++,f=g||e.src.charCodeAt(y+1)!==126||e.level>=e.options.maxNesting||(A=y>0?e.src.charCodeAt(y-1):-1,B=e.src.charCodeAt(y+2),A===126)||B===126||B===32||B===10)return!1;for(f=y+2;fy+3)return e.pos+=f-y,a||(e.pending+=e.src.slice(y,f)),!0;for(e.pos=y+2,c=1;e.pos+1=g||e.src.charCodeAt(y+1)!==43||e.level>=e.options.maxNesting||(A=y>0?e.src.charCodeAt(y-1):-1,B=e.src.charCodeAt(y+2),A===43)||B===43||B===32||B===10)return!1;for(f=y+2;f=g||e.src.charCodeAt(y+1)!==61||e.level>=e.options.maxNesting||(A=y>0?e.src.charCodeAt(y-1):-1,B=e.src.charCodeAt(y+2),A===61)||B===61||B===32||B===10)return!1;for(f=y+2;f=48&&e<=57||e>=65&&e<=90||e>=97&&e<=122}function wt(e,a){var o=a,f,c,g,y=!0,A=!0,B=e.posMax,I=e.src.charCodeAt(a);for(f=a>0?e.src.charCodeAt(a-1):-1;o=B&&(y=!1),g=o-a,g>=4?y=A=!1:(c=o=e.options.maxNesting)return!1;for(e.pos=N+o,A=[o];e.pos?@[\]^_`{|}~-])/g;function pi(e,a){var o,f,c=e.posMax,g=e.pos;if(e.src.charCodeAt(g)!==126||a||g+2>=c||e.level>=e.options.maxNesting)return!1;for(e.pos=g+1;e.pos?@[\]^_`{|}~-])/g;function St(e,a){var o,f,c=e.posMax,g=e.pos;if(e.src.charCodeAt(g)!==94||a||g+2>=c||e.level>=e.options.maxNesting)return!1;for(e.pos=g+1;e.pos=e.options.maxNesting||(o=J+1,f=xr(e,J),f<0))return!1;if(A=f+1,A=Z)return!1;for(J=A,mt(e,A)?(g=e.linkContent,A=e.pos):g="",J=A;A=Z||e.src.charCodeAt(A)!==41)return e.pos=H,!1;A++}else{if(e.linkLevel>0)return!1;for(;A=0?c=e.src.slice(J,A++):A=J-1),c||(typeof c>"u"&&(A=f+1),c=e.src.slice(o,f)),B=e.env.references[ei(c)],!B)return e.pos=H,!1;g=B.href,y=B.title}return a||(e.pos=o,e.posMax=f,N?e.push({type:"image",src:g,title:y,alt:e.src.substr(o,f-o),level:e.level}):(e.push({type:"link_open",href:g,title:y,level:e.level++}),e.linkLevel++,e.parser.tokenize(e),e.linkLevel--,e.push({type:"link_close",level:--e.level}))),e.pos=A,e.posMax=Z,!0}function Ka(e,a){var o,f,c,g,y=e.posMax,A=e.pos;return A+2>=y||e.src.charCodeAt(A)!==94||e.src.charCodeAt(A+1)!==91||e.level>=e.options.maxNesting||(o=A+2,f=xr(e,A+1),f<0)?!1:(a||(e.env.footnotes||(e.env.footnotes={}),e.env.footnotes.list||(e.env.footnotes.list=[]),c=e.env.footnotes.list.length,e.pos=o,e.posMax=f,e.push({type:"footnote_ref",id:c,level:e.level}),e.linkLevel++,g=e.tokens.length,e.parser.tokenize(e),e.env.footnotes.list[c]={tokens:e.tokens.splice(g)},e.linkLevel--),e.pos=f+1,e.posMax=y,!0)}function Za(e,a){var o,f,c,g,y=e.posMax,A=e.pos;if(A+3>y||!e.env.footnotes||!e.env.footnotes.refs||e.src.charCodeAt(A)!==91||e.src.charCodeAt(A+1)!==94||e.level>=e.options.maxNesting)return!1;for(f=A+2;f=y||(f++,o=e.src.slice(A+2,f-1),typeof e.env.footnotes.refs[":"+o]>"u")?!1:(a||(e.env.footnotes.list||(e.env.footnotes.list=[]),e.env.footnotes.refs[":"+o]<0?(c=e.env.footnotes.list.length,e.env.footnotes.list[c]={label:o,count:0},e.env.footnotes.refs[":"+o]=c):c=e.env.footnotes.refs[":"+o],g=e.env.footnotes.list[c].count,e.env.footnotes.list[c].count++,e.push({type:"footnote_ref",id:c,subId:g,level:e.level})),e.pos=f,e.posMax=y,!0)}var Ja=["coap","doi","javascript","aaa","aaas","about","acap","cap","cid","crid","data","dav","dict","dns","file","ftp","geo","go","gopher","h323","http","https","iax","icap","im","imap","info","ipp","iris","iris.beep","iris.xpc","iris.xpcs","iris.lwz","ldap","mailto","mid","msrp","msrps","mtqp","mupdate","news","nfs","ni","nih","nntp","opaquelocktoken","pop","pres","rtsp","service","session","shttp","sieve","sip","sips","sms","snmp","soap.beep","soap.beeps","tag","tel","telnet","tftp","thismessage","tn3270","tip","tv","urn","vemmi","ws","wss","xcon","xcon-userid","xmlrpc.beep","xmlrpc.beeps","xmpp","z39.50r","z39.50s","adiumxtra","afp","afs","aim","apt","attachment","aw","beshare","bitcoin","bolo","callto","chrome","chrome-extension","com-eventbrite-attendee","content","cvs","dlna-playsingle","dlna-playcontainer","dtn","dvb","ed2k","facetime","feed","finger","fish","gg","git","gizmoproject","gtalk","hcp","icon","ipn","irc","irc6","ircs","itms","jar","jms","keyparc","lastfm","ldaps","magnet","maps","market","message","mms","ms-help","msnim","mumble","mvn","notes","oid","palm","paparazzi","platform","proxy","psyc","query","res","resource","rmi","rsync","rtmp","secondlife","sftp","sgn","skype","smb","soldat","spotify","ssh","steam","svn","teamspeak","things","udp","unreal","ut2004","ventrilo","view-source","webcal","wtai","wyciwyg","xfire","xri","ymsgr"],Qa=/^<([a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)>/,eu=/^<([a-zA-Z.\-]{1,25}):([^<>\x00-\x20]*)>/;function sn(e,a){var o,f,c,g,y,A=e.pos;return e.src.charCodeAt(A)!==60||(o=e.src.slice(A),o.indexOf(">")<0)?!1:(f=o.match(eu),f?Ja.indexOf(f[1].toLowerCase())<0||(g=f[0].slice(1,-1),y=an(g),!e.parser.validateLink(g))?!1:(a||(e.push({type:"link_open",href:y,level:e.level}),e.push({type:"text",content:g,level:e.level+1}),e.push({type:"link_close",level:e.level})),e.pos+=f[0].length,!0):(c=o.match(Qa),c?(g=c[0].slice(1,-1),y=an("mailto:"+g),e.parser.validateLink(y)?(a||(e.push({type:"link_open",href:y,level:e.level}),e.push({type:"text",content:g,level:e.level+1}),e.push({type:"link_close",level:e.level})),e.pos+=c[0].length,!0):!1):!1))}function lr(e,a){return e=e.source,a=a||"",function o(f,c){return f?(c=c.source||c,e=e.replace(f,c),o):new RegExp(e,a)}}var di=/[a-zA-Z_:][a-zA-Z0-9:._-]*/,ru=/[^"'=<>`\x00-\x20]+/,tu=/'[^']*'/,mi=/"[^"]*"/,nu=lr(/(?:unquoted|single_quoted|double_quoted)/)("unquoted",ru)("single_quoted",tu)("double_quoted",mi)(),iu=lr(/(?:\s+attr_name(?:\s*=\s*attr_value)?)/)("attr_name",di)("attr_value",nu)(),au=lr(/<[A-Za-z][A-Za-z0-9]*attribute*\s*\/?>/)("attribute",iu)(),uu=/<\/[A-Za-z][A-Za-z0-9]*\s*>/,Ct=/|/,vi=/<[?].*?[?]>/,gi=/]*>/,lu=//,V=lr(/^(?:open_tag|close_tag|comment|processing|declaration|cdata)/)("open_tag",au)("close_tag",uu)("comment",Ct)("processing",vi)("declaration",gi)("cdata",lu)();function Xe(e){var a=e|32;return a>=97&&a<=122}function b0(e,a){var o,f,c,g=e.pos;return!e.options.html||(c=e.posMax,e.src.charCodeAt(g)!==60||g+2>=c)||(o=e.src.charCodeAt(g+1),o!==33&&o!==63&&o!==47&&!Xe(o))||(f=e.src.slice(g).match(V),!f)?!1:(a||e.push({type:"htmltag",content:e.src.slice(g,g+f[0].length),level:e.level}),e.pos+=f[0].length,!0)}var Jr=/^&#((?:x[a-f0-9]{1,8}|[0-9]{1,8}));/i,ou=/^&([a-z][a-z0-9]{1,31});/i;function su(e,a){var o,f,c,g=e.pos,y=e.posMax;if(e.src.charCodeAt(g)!==38)return!1;if(g+10){e.pos=g;return}for(c=0;c=f)break;continue}e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()},w0.prototype.parse=function(e,a,o,f){var c=new Rr(e,this,a,o,f);this.tokenize(c)};function Et(e){var a=["vbscript","javascript","file","data"],o=e.trim().toLowerCase();return o=We(o),!(o.indexOf(":")!==-1&&a.indexOf(o.split(":")[0])!==-1)}var oe={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkTarget:"",typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["block","inline","references","replacements","smartquotes","references","abbr2","footnote_tail"]},block:{rules:["blockquote","code","fences","footnote","heading","hr","htmlblock","lheading","list","paragraph","table"]},inline:{rules:["autolink","backticks","del","emphasis","entity","escape","footnote_ref","htmltag","links","newline","text"]}}},A0={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkTarget:"",typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{},block:{},inline:{}}},Bt={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkTarget:"",typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["block","inline","references","abbr2"]},block:{rules:["blockquote","code","fences","heading","hr","htmlblock","lheading","list","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","htmltag","links","newline","text"]}}},er={default:oe,full:A0,commonmark:Bt};function $r(e,a,o){this.src=a,this.env=o,this.options=e.options,this.tokens=[],this.inlineMode=!1,this.inline=e.inline,this.block=e.block,this.renderer=e.renderer,this.typographer=e.typographer}function i0(e,a){typeof e!="string"&&(a=e,e="default"),a&&a.linkify!=null&&console.warn(`linkify option is removed. Use linkify plugin instead: import Remarkable from 'remarkable'; import linkify from 'remarkable/linkify'; new Remarkable().use(linkify) `),this.inline=new w0,this.block=new xt,this.core=new Wr,this.renderer=new nn,this.ruler=new gr,this.options={},this.configure(er[e]),this.set(a||{})}i0.prototype.set=function(e){ke(this.options,e)},i0.prototype.configure=function(e){var a=this;if(!e)throw new Error("Wrong `remarkable` preset, check name/content");e.options&&a.set(e.options),e.components&&Object.keys(e.components).forEach(function(o){e.components[o].rules&&a[o].ruler.enable(e.components[o].rules,!0)})},i0.prototype.use=function(e,a){return e(this,a),this},i0.prototype.parse=function(e,a){var o=new $r(this,e,a);return this.core.process(o),o.tokens},i0.prototype.render=function(e,a){return a=a||{},this.renderer.render(this.parse(e,a),this.options,a)},i0.prototype.parseInline=function(e,a){var o=new $r(this,e,a);return o.inlineMode=!0,this.core.process(o),o.tokens},i0.prototype.renderInline=function(e,a){return a=a||{},this.renderer.render(this.parseInline(e,a),this.options,a)};var cu=(e,a)=>{const o="\\",f="$",g=(a||{}).delimiter||f;if(g.length!==1)throw new Error("invalid delimiter");const y=k,A=(N,H)=>y.renderToString(N,{displayMode:H,throwOnError:!1}),B=(N,H,Z)=>{let J=!1,ne=N.bMarks[H]+N.tShift[H],se=N.eMarks[H];if(ne+1>se)return!1;const xe=N.src.charAt(ne);if(xe!==g)return!1;let Be=ne;ne=N.skipChars(ne,xe);let Me=ne-Be;if(Me!==2)return!1;let br=H;for(;++br,!(br>=Z||(ne=Be=N.bMarks[br]+N.tShift[br],se=N.eMarks[br],ne=4)&&(ne=N.skipChars(ne,xe),!(ne-Be{const Z=N.pos,J=N.posMax;let ne=Z;if(N.src.charAt(ne)!==g)return!1;for(++ne;ne2)return!1;const xe=ne;let Be=0;for(;ne1,level:N.level})}return N.pos=e0,!0}}ne+=1}return H||(N.pending+=se),N.pos+=se.length,!0};e.inline.ruler.push("katex",I,a),e.block.ruler.push("katex",B,a),e.renderer.rules.katex=(N,H)=>A(N[H].content,N[H].block),e.renderer.rules.katex.delimiter=g},Z0={versions:{katex:"0.16.0",webfontloader:"1.6.28"},preloadScripts:[{type:"script",data:{src:"https://cdn.jsdelivr.net/npm/katex@0.16.0/dist/katex.min.js"}}],scripts:[{type:"iife",data:{fn:e=>{window.WebFontConfig={custom:{families:["KaTeX_AMS","KaTeX_Caligraphic:n4,n7","KaTeX_Fraktur:n4,n7","KaTeX_Main:n4,n7,i4,i7","KaTeX_Math:i4,i7","KaTeX_Script","KaTeX_SansSerif:n4,n7,i4","KaTeX_Size1","KaTeX_Size2","KaTeX_Size3","KaTeX_Size4","KaTeX_Typewriter"]},active:()=>{e().refreshHook.call()}}},getParams({getMarkmap:e}){return[e]}}},{type:"script",data:{src:"https://cdn.jsdelivr.net/npm/webfontloader@1.6.28/webfontloader.js",defer:!0}}],styles:[{type:"stylesheet",data:{href:"https://cdn.jsdelivr.net/npm/katex@0.16.0/dist/katex.min.css"}}]};const rr="https://cdn.jsdelivr.net/npm/";function xi(e,a,o){return e.map(f=>(typeof f=="string"&&(f.startsWith(`${a}/`)?f=`${rr}${a}@${o}${f.slice(a.length)}`:f.startsWith(`${a}@`)&&(f=`${rr}${f}`)),f))}function yi(){return{parser:new T,beforeParse:new T,afterParse:new T,htmltag:new T,retransform:new T}}function wl(e){return e}let J0;const Q0=()=>(J0||(J0=ur(Z0.preloadScripts)),J0),Fe="katex";var Mt={name:Fe,config:Z0,transform(e){const a=(f,c)=>{const{katex:g}=window;return g?g.renderToString(f,{displayMode:c,throwOnError:!1}):(Q0().then(()=>{e.retransform.call()}),f)};let o=()=>{};return e.parser.tap(f=>{f.use(cu),f.renderer.rules.katex=(c,g)=>(o(),a(c[g].content,c[g].block))}),e.beforeParse.tap((f,c)=>{o=()=>{c.features[Fe]=!0}}),e.afterParse.tap((f,c)=>{const{frontmatter:g}=c;g!=null&&g.markmap&&["extraJs","extraCss"].forEach(y=>{g.markmap[y]&&(g.markmap[y]=xi(g.markmap[y],Fe,Z0.versions.katex))})}),{styles:Z0.styles,scripts:Z0.scripts}}},et={versions:{prismjs:"1.28.0"},preloadScripts:[{type:"script",data:{src:"https://cdn.jsdelivr.net/npm/prismjs@1.28.0/components/prism-core.min.js"}},{type:"script",data:{src:"https://cdn.jsdelivr.net/npm/prismjs@1.28.0/plugins/autoloader/prism-autoloader.min.js"}}],styles:[{type:"stylesheet",data:{href:"https://cdn.jsdelivr.net/npm/prismjs@1.28.0/themes/prism.css"}}]};let Tt;const _r=()=>(Tt||(Tt=ur(et.preloadScripts)),Tt);function rt(e,a){_r().then(()=>{window.Prism.plugins.autoloader.loadLanguages([e],()=>{a.retransform.call()})})}const bi="prism";var te={name:bi,config:et,transform(e){let a=()=>{};return e.parser.tap(o=>{o.set({highlight:(f,c)=>{var g;a();const{Prism:y}=window,A=y==null||(g=y.languages)==null?void 0:g[c];return A?y.highlight(f,A,c):(rt(c,e),"")}})}),e.beforeParse.tap((o,f)=>{a=()=>{f.features[bi]=!0}}),{styles:et.styles}}};/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */function kr(e){return typeof e>"u"||e===null}function cn(e){return typeof e=="object"&&e!==null}function hn(e){return Array.isArray(e)?e:kr(e)?[]:[e]}function yr(e,a){var o,f,c,g;if(a)for(g=Object.keys(a),o=0,f=g.length;oA&&(g=" ... ",a=f-A+g.length),o-f>A&&(y=" ...",o=f+A-y.length),{str:g+e.slice(a,o).replace(/\t/g,"→")+y,pos:f-a+g.length}}function Pr(e,a){return nr.repeat(" ",a-e.length)+e}function Ee(e,a){if(a=Object.create(a||null),!e.buffer)return null;a.maxLength||(a.maxLength=79),typeof a.indent!="number"&&(a.indent=1),typeof a.linesBefore!="number"&&(a.linesBefore=3),typeof a.linesAfter!="number"&&(a.linesAfter=2);for(var o=/\r?\n|\r|\0/g,f=[0],c=[],g,y=-1;g=o.exec(e.buffer);)c.push(g.index),f.push(g.index+g[0].length),e.position<=g.index&&y<0&&(y=f.length-2);y<0&&(y=f.length-1);var A="",B,I,N=Math.min(e.line+a.linesAfter,c.length).toString().length,H=a.maxLength-(a.indent+N+3);for(B=1;B<=a.linesBefore&&!(y-B<0);B++)I=fn(e.buffer,f[y-B],c[y-B],e.position-(f[y]-f[y-B]),H),A=nr.repeat(" ",a.indent)+Pr((e.line-B+1).toString(),N)+" | "+I.str+` `+A;for(I=fn(e.buffer,f[y],c[y],e.position,H),A+=nr.repeat(" ",a.indent)+Pr((e.line+1).toString(),N)+" | "+I.str+` `,A+=nr.repeat("-",a.indent+N+3+I.pos)+`^ `,B=1;B<=a.linesAfter&&!(y+B>=c.length);B++)I=fn(e.buffer,f[y+B],c[y+B],e.position-(f[y]-f[y+B]),H),A+=nr.repeat(" ",a.indent)+Pr((e.line+B+1).toString(),N)+" | "+I.str+` `;return A.replace(/\n$/,"")}var pn=Ee,_t=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],dn=["scalar","sequence","mapping"];function Ci(e){var a={};return e!==null&&Object.keys(e).forEach(function(o){e[o].forEach(function(f){a[String(f)]=o})}),a}function du(e,a){if(a=a||{},Object.keys(a).forEach(function(o){if(_t.indexOf(o)===-1)throw new fr('Unknown option "'+o+'" is met in definition of "'+e+'" YAML type.')}),this.options=a,this.tag=e,this.kind=a.kind||null,this.resolve=a.resolve||function(){return!0},this.construct=a.construct||function(o){return o},this.instanceOf=a.instanceOf||null,this.predicate=a.predicate||null,this.represent=a.represent||null,this.representName=a.representName||null,this.defaultStyle=a.defaultStyle||null,this.multi=a.multi||!1,this.styleAliases=Ci(a.styleAliases||null),dn.indexOf(this.kind)===-1)throw new fr('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}var tr=du;function Di(e,a){var o=[];return e[a].forEach(function(f){var c=o.length;o.forEach(function(g,y){g.tag===f.tag&&g.kind===f.kind&&g.multi===f.multi&&(c=y)}),o[c]=f}),o}function Ei(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},a,o;function f(c){c.multi?(e.multi[c.kind].push(c),e.multi.fallback.push(c)):e[c.kind][c.tag]=e.fallback[c.tag]=c}for(a=0,o=arguments.length;a=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),wn=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function An(e){return!(e===null||!wn.test(e)||e[e.length-1]==="_")}function Nt(e){var a,o;return a=e.replace(/_/g,"").toLowerCase(),o=a[0]==="-"?-1:1,"+-".indexOf(a[0])>=0&&(a=a.slice(1)),a===".inf"?o===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:a===".nan"?NaN:o*parseFloat(a,10)}var bu=/^[-+]?[0-9]+e/;function wu(e,a){var o;if(isNaN(e))switch(a){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(a){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(a){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(nr.isNegativeZero(e))return"-0.0";return o=e.toString(10),bu.test(o)?o.replace("e",".e"):o}function Ni(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||nr.isNegativeZero(e))}var qt=new tr("tag:yaml.org,2002:float",{kind:"scalar",resolve:An,construct:Nt,predicate:Ni,represent:wu,defaultStyle:"lowercase"}),It=Mi.extend({implicit:[gn,yn,Ft,qt]}),Rt=It,qi=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),kn=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function Au(e){return e===null?!1:qi.exec(e)!==null||kn.exec(e)!==null}function Ii(e){var a,o,f,c,g,y,A,B=0,I=null,N,H,Z;if(a=qi.exec(e),a===null&&(a=kn.exec(e)),a===null)throw new Error("Date resolve error");if(o=+a[1],f=+a[2]-1,c=+a[3],!a[4])return new Date(Date.UTC(o,f,c));if(g=+a[4],y=+a[5],A=+a[6],a[7]){for(B=a[7].slice(0,3);B.length<3;)B+="0";B=+B}return a[9]&&(N=+a[10],H=+(a[11]||0),I=(N*60+H)*6e4,a[9]==="-"&&(I=-I)),Z=new Date(Date.UTC(o,f,c,g,y,A,B)),I&&Z.setTime(Z.getTime()-I),Z}function at(e){return e.toISOString()}var Ri=new tr("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:Au,construct:Ii,instanceOf:Date,represent:at});function ku(e){return e==="<<"||e===null}var Oi=new tr("tag:yaml.org,2002:merge",{kind:"scalar",resolve:ku}),Ot=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/= \r`;function Su(e){if(e===null)return!1;var a,o,f=0,c=e.length,g=Ot;for(o=0;o64)){if(a<0)return!1;f+=6}return f%8===0}function Li(e){var a,o,f=e.replace(/[\r\n=]/g,""),c=f.length,g=Ot,y=0,A=[];for(a=0;a>16&255),A.push(y>>8&255),A.push(y&255)),y=y<<6|g.indexOf(f.charAt(a));return o=c%4*6,o===0?(A.push(y>>16&255),A.push(y>>8&255),A.push(y&255)):o===18?(A.push(y>>10&255),A.push(y>>2&255)):o===12&&A.push(y>>4&255),new Uint8Array(A)}function Pi(e){var a="",o=0,f,c,g=e.length,y=Ot;for(f=0;f>18&63],a+=y[o>>12&63],a+=y[o>>6&63],a+=y[o&63]),o=(o<<8)+e[f];return c=g%3,c===0?(a+=y[o>>18&63],a+=y[o>>12&63],a+=y[o>>6&63],a+=y[o&63]):c===2?(a+=y[o>>10&63],a+=y[o>>4&63],a+=y[o<<2&63],a+=y[64]):c===1&&(a+=y[o>>2&63],a+=y[o<<4&63],a+=y[64],a+=y[64]),a}function Cu(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}var Yr=new tr("tag:yaml.org,2002:binary",{kind:"scalar",resolve:Su,construct:Li,predicate:Cu,represent:Pi}),Hi=Object.prototype.hasOwnProperty,Du=Object.prototype.toString;function Lt(e){if(e===null)return!0;var a=[],o,f,c,g,y,A=e;for(o=0,f=A.length;o>10)+55296,(e-65536&1023)+56320)}for(var S0=new Array(256),_0=new Array(256),z0=0;z0<256;z0++)S0[z0]=Tn(z0)?1:0,_0[z0]=Tn(z0);function Bu(e,a){this.input=e,this.filename=a.filename||null,this.schema=a.schema||T0,this.onWarning=a.onWarning||null,this.legacy=a.legacy||!1,this.json=a.json||!1,this.listener=a.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function _n(e,a){var o={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return o.snippet=pn(o),new fr(a,o)}function me(e,a){throw _n(e,a)}function ut(e,a){e.onWarning&&e.onWarning.call(null,_n(e,a))}var zn={YAML:function(a,o,f){var c,g,y;a.version!==null&&me(a,"duplication of %YAML directive"),f.length!==1&&me(a,"YAML directive accepts exactly one argument"),c=/^([0-9]+)\.([0-9]+)$/.exec(f[0]),c===null&&me(a,"ill-formed argument of the YAML directive"),g=parseInt(c[1],10),y=parseInt(c[2],10),g!==1&&me(a,"unacceptable YAML version of the document"),a.version=f[0],a.checkLineBreaks=y<2,y!==1&&y!==2&&ut(a,"unsupported YAML version of the document")},TAG:function(a,o,f){var c,g;f.length!==2&&me(a,"TAG directive accepts exactly two arguments"),c=f[0],g=f[1],En.test(c)||me(a,"ill-formed tag handle (first argument) of the TAG directive"),jr.call(a.tagMap,c)&&me(a,'there is a previously declared suffix for "'+c+'" tag handle'),Bn.test(g)||me(a,"ill-formed tag prefix (second argument) of the TAG directive");try{g=decodeURIComponent(g)}catch{me(a,"tag prefix is malformed: "+g)}a.tagMap[c]=g}};function o0(e,a,o,f){var c,g,y,A;if(a1&&(e.result+=nr.repeat(` `,a-1))}function Zi(e,a,o){var f,c,g,y,A,B,I,N,H=e.kind,Z=e.result,J;if(J=e.input.charCodeAt(e.position),pr(J)||k0(J)||J===35||J===38||J===42||J===33||J===124||J===62||J===39||J===34||J===37||J===64||J===96||(J===63||J===45)&&(c=e.input.charCodeAt(e.position+1),pr(c)||o&&k0(c)))return!1;for(e.kind="scalar",e.result="",g=y=e.position,A=!1;J!==0;){if(J===58){if(c=e.input.charCodeAt(e.position+1),pr(c)||o&&k0(c))break}else if(J===35){if(f=e.input.charCodeAt(e.position-1),pr(f))break}else{if(e.position===e.lineStart&&N0(e)||o&&k0(J))break;if(Fr(J))if(B=e.line,I=e.lineStart,N=e.lineIndent,Je(e,!1,-1),e.lineIndent>=a){A=!0,J=e.input.charCodeAt(e.position);continue}else{e.position=y,e.line=B,e.lineStart=I,e.lineIndent=N;break}}A&&(o0(e,g,y,!1),$t(e,e.line-B),g=y=e.position,A=!1),l0(J)||(y=e.position+1),J=e.input.charCodeAt(++e.position)}return o0(e,g,y,!1),e.result?!0:(e.kind=H,e.result=Z,!1)}function Ji(e,a){var o,f,c;if(o=e.input.charCodeAt(e.position),o!==39)return!1;for(e.kind="scalar",e.result="",e.position++,f=c=e.position;(o=e.input.charCodeAt(e.position))!==0;)if(o===39)if(o0(e,f,e.position,!0),o=e.input.charCodeAt(++e.position),o===39)f=e.position,e.position++,c=e.position;else return!0;else Fr(o)?(o0(e,f,c,!0),$t(e,Je(e,!1,a)),f=c=e.position):e.position===e.lineStart&&N0(e)?me(e,"unexpected end of the document within a single quoted scalar"):(e.position++,c=e.position);me(e,"unexpected end of the stream within a single quoted scalar")}function Mu(e,a){var o,f,c,g,y,A;if(A=e.input.charCodeAt(e.position),A!==34)return!1;for(e.kind="scalar",e.result="",e.position++,o=f=e.position;(A=e.input.charCodeAt(e.position))!==0;){if(A===34)return o0(e,o,e.position,!0),e.position++,!0;if(A===92){if(o0(e,o,e.position,!0),A=e.input.charCodeAt(++e.position),Fr(A))Je(e,!1,a);else if(A<256&&S0[A])e.result+=_0[A],e.position++;else if((y=Mn(A))>0){for(c=y,g=0;c>0;c--)A=e.input.charCodeAt(++e.position),(y=Eu(A))>=0?g=(g<<4)+y:me(e,"expected hexadecimal character");e.result+=Ki(g),e.position++}else me(e,"unknown escape sequence");o=f=e.position}else Fr(A)?(o0(e,o,f,!0),$t(e,Je(e,!1,a)),o=f=e.position):e.position===e.lineStart&&N0(e)?me(e,"unexpected end of the document within a double quoted scalar"):(e.position++,f=e.position)}me(e,"unexpected end of the stream within a double quoted scalar")}function Qi(e,a){var o=!0,f,c,g,y=e.tag,A,B=e.anchor,I,N,H,Z,J,ne=Object.create(null),se,xe,Be,Me;if(Me=e.input.charCodeAt(e.position),Me===91)N=93,J=!1,A=[];else if(Me===123)N=125,J=!0,A={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=A),Me=e.input.charCodeAt(++e.position);Me!==0;){if(Je(e,!0,a),Me=e.input.charCodeAt(e.position),Me===N)return e.position++,e.tag=y,e.anchor=B,e.kind=J?"mapping":"sequence",e.result=A,!0;o?Me===44&&me(e,"expected the node content, but found ','"):me(e,"missed comma between flow collection entries"),xe=se=Be=null,H=Z=!1,Me===63&&(I=e.input.charCodeAt(e.position+1),pr(I)&&(H=Z=!0,e.position++,Je(e,!0,a))),f=e.line,c=e.lineStart,g=e.position,q0(e,a,Ur,!1,!0),xe=e.tag,se=e.result,Je(e,!0,a),Me=e.input.charCodeAt(e.position),(Z||e.line===f)&&Me===58&&(H=!0,Me=e.input.charCodeAt(++e.position),Je(e,!0,a),q0(e,a,Ur,!1,!0),Be=e.result),J?F0(e,A,ne,xe,se,Be,f,c,g):H?A.push(F0(e,null,ne,xe,se,Be,f,c,g)):A.push(se),Je(e,!0,a),Me=e.input.charCodeAt(e.position),Me===44?(o=!0,Me=e.input.charCodeAt(++e.position)):o=!1}me(e,"unexpected end of the stream within a flow collection")}function ea(e,a){var o,f,c=zr,g=!1,y=!1,A=a,B=0,I=!1,N,H;if(H=e.input.charCodeAt(e.position),H===124)f=!1;else if(H===62)f=!0;else return!1;for(e.kind="scalar",e.result="";H!==0;)if(H=e.input.charCodeAt(++e.position),H===43||H===45)zr===c?c=H===43?$i:Gi:me(e,"repeat of a chomping mode identifier");else if((N=Wi(H))>=0)N===0?me(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):y?me(e,"repeat of an indentation width identifier"):(A=a+N-1,y=!0);else break;if(l0(H)){do H=e.input.charCodeAt(++e.position);while(l0(H));if(H===35)do H=e.input.charCodeAt(++e.position);while(!Fr(H)&&H!==0)}for(;H!==0;){for(Gt(e),e.lineIndent=0,H=e.input.charCodeAt(e.position);(!y||e.lineIndentA&&(A=e.lineIndent),Fr(H)){B++;continue}if(e.lineIndenta)&&B!==0)me(e,"bad indentation of a sequence entry");else if(e.lineIndenta)&&(xe&&(y=e.line,A=e.lineStart,B=e.position),q0(e,a,Ut,!0,c)&&(xe?ne=e.result:se=e.result),xe||(F0(e,H,Z,J,ne,se,y,A,B),J=ne=se=null),Je(e,!0,-1),Me=e.input.charCodeAt(e.position)),(e.line===g||e.lineIndent>a)&&Me!==0)me(e,"bad indentation of a mapping entry");else if(e.lineIndenta?B=1:e.lineIndent===a?B=0:e.lineIndenta?B=1:e.lineIndent===a?B=0:e.lineIndent tag; it should be "scalar", not "'+e.kind+'"'),H=0,Z=e.implicitTypes.length;H"),e.result!==null&&ne.kind!==e.kind&&me(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+ne.kind+'", not "'+e.kind+'"'),ne.resolve(e.result,e.tag)?(e.result=ne.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):me(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||N}function zu(e){var a=e.position,o,f,c,g=!1,y;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(y=e.input.charCodeAt(e.position))!==0&&(Je(e,!0,-1),y=e.input.charCodeAt(e.position),!(e.lineIndent>0||y!==37));){for(g=!0,y=e.input.charCodeAt(++e.position),o=e.position;y!==0&&!pr(y);)y=e.input.charCodeAt(++e.position);for(f=e.input.slice(o,e.position),c=[],f.length<1&&me(e,"directive name must not be less than one character in length");y!==0;){for(;l0(y);)y=e.input.charCodeAt(++e.position);if(y===35){do y=e.input.charCodeAt(++e.position);while(y!==0&&!Fr(y));break}if(Fr(y))break;for(o=e.position;y!==0&&!pr(y);)y=e.input.charCodeAt(++e.position);c.push(e.input.slice(o,e.position))}y!==0&&Gt(e),jr.call(zn,f)?zn[f](e,f,c):ut(e,'unknown document directive "'+f+'"')}if(Je(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,Je(e,!0,-1)):g&&me(e,"directives end mark is expected"),q0(e,e.lineIndent-1,Ut,!1,!0),Je(e,!0,-1),e.checkLineBreaks&&Xi.test(e.input.slice(a,e.position))&&ut(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&N0(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,Je(e,!0,-1));return}if(e.position"u"&&(o=a,a=null);var f=Yt(e,o);if(typeof a!="function")return f;for(var c=0,g=f.length;c=55296&&o<=56319&&a+1=56320&&f<=57343)?(o-55296)*1024+f-56320+65536:o}function Ce(e){var a=/^\n* /;return a.test(e)}var qe=1,Ne=2,Ie=3,He=4,Qe=5;function Sr(e,a,o,f,c,g,y,A){var B,I=0,N=null,H=!1,Z=!1,J=f!==-1,ne=-1,se=de(ze(e,0))&&ve(ze(e,e.length-1));if(a||y)for(B=0;B=65536?B+=2:B++){if(I=ze(e,B),!ie(I))return Qe;se=se&&fe(I,N,A),N=I}else{for(B=0;B=65536?B+=2:B++){if(I=ze(e,B),I===C0)H=!0,J&&(Z=Z||B-ne-1>f&&e[ne+1]!==" ",ne=B);else if(!ie(I))return Qe;se=se&&fe(I,N,A),N=I}Z=Z||J&&B-ne-1>f&&e[ne+1]!==" "}return!H&&!Z?se&&!y&&!c(e)?qe:g===E?Qe:Ne:o>9&&Ce(e)?Qe:y?g===E?Qe:Ne:Z?He:Ie}function je(e,a,o,f,c){e.dump=function(){if(a.length===0)return e.quotingType===E?'""':"''";if(!e.noCompatMode&&(u.indexOf(a)!==-1||s.test(a)))return e.quotingType===E?'"'+a+'"':"'"+a+"'";var g=e.indent*Math.max(1,o),y=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-g),A=f||e.flowLevel>-1&&o>=e.flowLevel;function B(I){return Y(e,I)}switch(Sr(a,A,e.indent,y,B,e.quotingType,e.forceQuotes&&!f,c)){case qe:return a;case Ne:return"'"+a.replace(/'/g,"''")+"'";case Ie:return"|"+c0(a,e.indent)+Cr(U(a,g));case He:return">"+c0(a,e.indent)+Cr(U(dr(a,y),g));case Qe:return'"'+I0(a)+'"';default:throw new fr("impossible error: invalid scalar style")}}()}function c0(e,a){var o=Ce(e)?String(a):"",f=e[e.length-1]===` `,c=f&&(e[e.length-2]===` `||e===` `),g=c?"+":f?"":"-";return o+g+` `}function Cr(e){return e[e.length-1]===` `?e.slice(0,-1):e}function dr(e,a){for(var o=/(\n+)([^\n]*)/g,f=function(){var I=e.indexOf(` `);return I=I!==-1?I:e.length,o.lastIndex=I,Qr(e.slice(0,I),a)}(),c=e[0]===` `||e[0]===" ",g,y;y=o.exec(e);){var A=y[1],B=y[2];g=B[0]===" ",f+=A+(!c&&!g&&B!==""?` `:"")+Qr(B,a),c=g}return f}function Qr(e,a){if(e===""||e[0]===" ")return e;for(var o=/ [^ ]/g,f,c=0,g,y=0,A=0,B="";f=o.exec(e);)A=f.index,A-c>a&&(g=y>c?y:A,B+=` `+e.slice(c,g),c=g+1),y=A;return B+=` `,e.length-c>a&&y>c?B+=e.slice(c,y)+` `+e.slice(y+1):B+=e.slice(c),B.slice(1)}function I0(e){for(var a="",o=0,f,c=0;c=65536?c+=2:c++)o=ze(e,c),f=n[o],!f&&ie(o)?(a+=e[c],o>=65536&&(a+=e[c+1])):a+=f||b(o);return a}function R0(e,a,o){var f="",c=e.tag,g,y,A;for(g=0,y=o.length;g"u"&&Er(e,a,null,!1,!1))&&(f!==""&&(f+=","+(e.condenseFlow?"":" ")),f+=e.dump);e.tag=c,e.dump="["+f+"]"}function Wt(e,a,o,f){var c="",g=e.tag,y,A,B;for(y=0,A=o.length;y"u"&&Er(e,a+1,null,!0,!0,!1,!0))&&((!f||c!=="")&&(c+=$(e,a)),e.dump&&C0===e.dump.charCodeAt(0)?c+="-":c+="- ",c+=e.dump);e.tag=g,e.dump=c||"[]"}function h0(e,a,o){var f="",c=e.tag,g=Object.keys(o),y,A,B,I,N;for(y=0,A=g.length;y1024&&(N+="? "),N+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),Er(e,a,I,!1,!1)&&(N+=e.dump,f+=N));e.tag=c,e.dump="{"+f+"}"}function f0(e,a,o,f){var c="",g=e.tag,y=Object.keys(o),A,B,I,N,H,Z;if(e.sortKeys===!0)y.sort();else if(typeof e.sortKeys=="function")y.sort(e.sortKeys);else if(e.sortKeys)throw new fr("sortKeys must be a boolean or a function");for(A=0,B=y.length;A1024,H&&(e.dump&&C0===e.dump.charCodeAt(0)?Z+="?":Z+="? "),Z+=e.dump,H&&(Z+=$(e,a)),Er(e,a+1,N,!0,H)&&(e.dump&&C0===e.dump.charCodeAt(0)?Z+=":":Z+=": ",Z+=e.dump,c+=Z));e.tag=g,e.dump=c||"{}"}function Dr(e,a,o){var f,c,g,y,A,B;for(c=o?e.explicitTypes:e.implicitTypes,g=0,y=c.length;g tag resolver accepts not "'+B+'" style');e.dump=f}return!0}return!1}function Er(e,a,o,f,c,g,y){e.tag=null,e.dump=o,Dr(e,o,!1)||Dr(e,o,!0);var A=aa.call(e.dump),B=f,I;f&&(f=e.flowLevel<0||e.flowLevel>a);var N=A==="[object Object]"||A==="[object Array]",H,Z;if(N&&(H=e.duplicates.indexOf(o),Z=H!==-1),(e.tag!==null&&e.tag!=="?"||Z||e.indent!==2&&a>0)&&(c=!1),Z&&e.usedDuplicates[H])e.dump="*ref_"+H;else{if(N&&Z&&!e.usedDuplicates[H]&&(e.usedDuplicates[H]=!0),A==="[object Object]")f&&Object.keys(e.dump).length!==0?(f0(e,a,e.dump,c),Z&&(e.dump="&ref_"+H+e.dump)):(h0(e,a,e.dump),Z&&(e.dump="&ref_"+H+" "+e.dump));else if(A==="[object Array]")f&&e.dump.length!==0?(e.noArrayIndent&&!y&&a>0?Wt(e,a-1,e.dump,c):Wt(e,a,e.dump,c),Z&&(e.dump="&ref_"+H+e.dump)):(R0(e,a,e.dump),Z&&(e.dump="&ref_"+H+" "+e.dump));else if(A==="[object String]")e.tag!=="?"&&je(e,e.dump,a,g,B);else{if(A==="[object Undefined]")return!1;if(e.skipInvalid)return!1;throw new fr("unacceptable kind of an object to dump "+A)}e.tag!==null&&e.tag!=="?"&&(I=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21"),e.tag[0]==="!"?I="!"+I:I.slice(0,18)==="tag:yaml.org,2002:"?I="!!"+I.slice(18):I="!<"+I+">",e.dump=I+" "+e.dump)}return!0}function On(e,a){var o=[],f=[],c,g;for(p0(e,o,f),c=0,g=f.length;c{const f=a.parse;a.parse=Re(f,{before(c){const[g]=c.args;if(!g.startsWith(`--- `))return;const y=g.indexOf(` --- `);if(y<0)return;const A=g.slice(4,y);let B;try{var I;B=Go.load(A),(I=B)!=null&&I.markmap&&(B.markmap=Yo(B.markmap))}catch{return}o.frontmatter=B;const N=y+5;c.args[0]=g.slice(N)},after(){a.parse=f}})}),{}}};function Yo(e){if(e)return["color","extraJs","extraCss"].forEach(a=>{e[a]!=null&&(e[a]=Xo(e[a]))}),["duration","maxWidth","initialExpandLevel"].forEach(a=>{e[a]!=null&&(e[a]=jo(e[a]))}),e}function Xo(e){var a;let o;return typeof e=="string"?o=[e]:Array.isArray(e)&&(o=e.filter(f=>f&&typeof f=="string")),(a=o)!=null&&a.length?o:void 0}function jo(e){if(!isNaN(+e))return+e}const Al=[$o,Mt,te];function kl(e){if(e.type==="heading")e.children=e.children.filter(c=>c.type!=="paragraph");else if(e.type==="list_item"){var a;e.children=e.children.filter(c=>["paragraph","fence"].includes(c.type)?(e.content||(e.content=c.content,e.payload=M({},e.payload,c.payload)),!1):!0),((a=e.payload)==null?void 0:a.index)!=null&&(e.content=`${e.payload.index}. ${e.content}`)}else if(e.type==="ordered_list"){var o,f;let c=(o=(f=e.payload)==null?void 0:f.startIndex)!=null?o:1;e.children.forEach(g=>{g.type==="list_item"&&(g.payload=M({},g.payload,{index:c}),c+=1)})}e.children.length===0?delete e.children:(e.children.forEach(c=>kl(c)),e.children.length===1&&!e.children[0].content&&(e.children=e.children[0].children))}function Sl(e,a=0){var o;e.depth=a,(o=e.children)==null||o.forEach(f=>{Sl(f,a+1)})}class Wo{constructor(a=Al){this.assetsMap={},this.plugins=a,this.hooks=yi();const o={};for(const{name:c,transform:g}of a)o[c]=g(this.hooks);this.assetsMap=o;const f=new i0("full",{html:!0,breaks:!0,maxNesting:1/0});f.renderer.rules.htmltag=Re(f.renderer.rules.htmltag,{after:c=>{this.hooks.htmltag.call(c)}}),this.md=f,this.hooks.parser.call(f)}buildTree(a){const{md:o}=this,f={type:"root",depth:0,content:"",children:[],payload:{}},c=[f];let g=0;for(const B of a){let I=c[c.length-1];if(B.type.endsWith("_open")){const N=B.type.slice(0,-5),H={};if(B.lines&&(H.lines=B.lines),N==="heading")for(g=B.hLevel;((y=I)==null?void 0:y.depth)>=g;){var y;c.pop(),I=c[c.length-1]}else{var A;g=Math.max(g,((A=I)==null?void 0:A.depth)||0)+1,N==="ordered_list"&&(H.startIndex=B.order)}const Z={type:N,depth:g,payload:H,content:"",children:[]};I.children.push(Z),c.push(Z)}else if(I){if(B.type===`${I.type}_close`)I.type==="heading"?g=I.depth:(c.pop(),g=0);else if(B.type==="inline"){const N=this.hooks.htmltag.tap(Z=>{const J=Z.result.match(/^$/),ne=J==null?void 0:J[1].trim().split(" ");ne[0]==="fold"&&(I.payload.fold=["all","recursively"].includes(ne[1])?2:1,Z.result="")}),H=o.renderer.render([B],o.options,{});N(),I.content=`${I.content||""}${H}`}else if(B.type==="fence"){let N=o.renderer.render([B],o.options,{});const H=N.match(//);H&&(N=N.replace("
    ",``)),I.children.push({type:B.type,depth:g+1,content:N,children:[]})}}else continue}return f}transform(a){var o;const f={features:{}};this.hooks.beforeParse.call(this.md,f);const c=this.md.parse(a,{});this.hooks.afterParse.call(this.md,f);let g=this.buildTree(c);return kl(g),((o=g.children)==null?void 0:o.length)===1&&(g=g.children[0]),Sl(g),M({},f,{root:g})}getAssets(a){var o;const f=[],c=[];(o=a)!=null||(a=this.plugins.map(g=>g.name));for(const g of a.map(y=>this.assetsMap[y]))g&&(g.styles&&f.push(...g.styles),g.scripts&&c.push(...g.scripts));return{styles:f,scripts:c}}getUsedAssets(a){const o=this.plugins.map(f=>f.name).filter(f=>a[f]);return this.getAssets(o)}}const Ko={"markmap-lib":"0.14.4",d3:"6.7.0"};h.Transformer=Wo,h.builtInPlugins=Al,h.fillTemplate=sr,h.transformerVersions=Ko})})(Ju,Ju.exports);var Yh=Ju.exports;/*! markmap-common v0.14.2 | MIT License */class eo{constructor(){this.listeners=[]}tap(l){return this.listeners.push(l),()=>this.revoke(l)}revoke(l){const h=this.listeners.indexOf(l);h>=0&&this.listeners.splice(h,1)}revokeAll(){this.listeners.splice(0)}call(...l){for(const h of this.listeners)h(...l)}}const Jo=Math.random().toString(36).slice(2,8);let Bl=0;function Qo(){return Bl+=1,`mm-${Jo}-${Bl}`}function Yu(){}function Qu(i,l,h="children"){const x=(w,k)=>l(w,()=>{var M;(M=w[h])==null||M.forEach(T=>{x(T,w)})},k);x(i)}function ro(i){if(Array.from)return Array.from(i);const l=[];for(let h=0;h{x&&h.indexOf(x)<0&&h.push(x)}),h.join(" ")}function Qt(i){if(typeof i=="string"){const h=i;i=x=>x.tagName===h}const l=i;return function(){let x=ro(this.childNodes);return l&&(x=x.filter(w=>l(w))),x}}function Ml(i,l){let h;if(l===void 0)for(const x of i)x!=null&&(h=x)&&(h=x);else{let x=-1;for(let w of i)(w=l(w,++x,i))!=null&&(h=w)&&(h=w)}return h}function Tl(i,l){let h;if(l===void 0)for(const x of i)x!=null&&(h>x||h===void 0&&x>=x)&&(h=x);else{let x=-1;for(let w of i)(w=l(w,++x,i))!=null&&(h>w||h===void 0&&w>=w)&&(h=w)}return h}function rs(i,l){let h,x=-1,w=-1;if(l===void 0)for(const k of i)++w,k!=null&&(h>k||h===void 0&&k>=k)&&(h=k,x=w);else for(let k of i)(k=l(k,++w,i))!=null&&(h>k||h===void 0&&k>=k)&&(h=k,x=w);return x}var ts={value:()=>{}};function fl(){for(var i=0,l=arguments.length,h={},x;i=0&&(x=h.slice(w+1),h=h.slice(0,w)),h&&!l.hasOwnProperty(h))throw new Error("unknown type: "+h);return{type:h,name:x}})}Ca.prototype=fl.prototype={constructor:Ca,on:function(i,l){var h=this._,x=ns(i+"",h),w,k=-1,M=x.length;if(arguments.length<2){for(;++k0)for(var h=new Array(w),x=0,w,k;x=0&&(l=i.slice(0,h))!=="xmlns"&&(i=i.slice(h+1)),zl.hasOwnProperty(l)?{space:zl[l],local:i}:i}function as(i){return function(){var l=this.ownerDocument,h=this.namespaceURI;return h===el&&l.documentElement.namespaceURI===el?l.createElement(i):l.createElementNS(h,i)}}function us(i){return function(){return this.ownerDocument.createElementNS(i.space,i.local)}}function to(i){var l=Oa(i);return(l.local?us:as)(l)}function ls(){}function pl(i){return i==null?ls:function(){return this.querySelector(i)}}function os(i){typeof i!="function"&&(i=pl(i));for(var l=this._groups,h=l.length,x=new Array(h),w=0;w=Re&&(Re=Ae+1);!(Oe=_e[Re])&&++Re=0;)(M=x[w])&&(k&&M.compareDocumentPosition(k)^4&&k.parentNode.insertBefore(M,k),k=M);return this}function _s(i){i||(i=zs);function l(X,re){return X&&re?i(X.__data__,re.__data__):!X-!re}for(var h=this._groups,x=h.length,w=new Array(x),k=0;kl?1:i>=l?0:NaN}function Fs(){var i=arguments[0];return arguments[0]=this,i.apply(null,arguments),this}function Ns(){return Array.from(this)}function qs(){for(var i=this._groups,l=0,h=i.length;l1?this.each((l==null?Ys:typeof l=="function"?js:Xs)(i,l,h??"")):rn(this.node(),i)}function rn(i,l){return i.style.getPropertyValue(l)||oo(i).getComputedStyle(i,null).getPropertyValue(l)}function Ks(i){return function(){delete this[i]}}function Zs(i,l){return function(){this[i]=l}}function Js(i,l){return function(){var h=l.apply(this,arguments);h==null?delete this[i]:this[i]=h}}function Qs(i,l){return arguments.length>1?this.each((l==null?Ks:typeof l=="function"?Js:Zs)(i,l)):this.node()[i]}function so(i){return i.trim().split(/^|\s+/)}function dl(i){return i.classList||new co(i)}function co(i){this._node=i,this._names=so(i.getAttribute("class")||"")}co.prototype={add:function(i){var l=this._names.indexOf(i);l<0&&(this._names.push(i),this._node.setAttribute("class",this._names.join(" ")))},remove:function(i){var l=this._names.indexOf(i);l>=0&&(this._names.splice(l,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(i){return this._names.indexOf(i)>=0}};function ho(i,l){for(var h=dl(i),x=-1,w=l.length;++x=0&&(h=l.slice(x+1),l=l.slice(0,x)),{type:l,name:h}})}function E1(i){return function(){var l=this.__on;if(l){for(var h=0,x=-1,w=l.length,k;h>8&15|l>>4&240,l>>4&15|l&240,(l&15)<<4|l&15,1):h===8?wa(l>>24&255,l>>16&255,l>>8&255,(l&255)/255):h===4?wa(l>>12&15|l>>8&240,l>>8&15|l>>4&240,l>>4&15|l&240,((l&15)<<4|l&15)/255):null):(l=L1.exec(i))?new Gr(l[1],l[2],l[3],1):(l=P1.exec(i))?new Gr(l[1]*255/100,l[2]*255/100,l[3]*255/100,1):(l=H1.exec(i))?wa(l[1],l[2],l[3],l[4]):(l=U1.exec(i))?wa(l[1]*255/100,l[2]*255/100,l[3]*255/100,l[4]):(l=V1.exec(i))?Ll(l[1],l[2]/100,l[3]/100,1):(l=G1.exec(i))?Ll(l[1],l[2]/100,l[3]/100,l[4]):Fl.hasOwnProperty(i)?Il(Fl[i]):i==="transparent"?new Gr(NaN,NaN,NaN,0):null}function Il(i){return new Gr(i>>16&255,i>>8&255,i&255,1)}function wa(i,l,h,x){return x<=0&&(i=l=h=NaN),new Gr(i,l,h,x)}function Y1(i){return i instanceof Zn||(i=jn(i)),i?(i=i.rgb(),new Gr(i.r,i.g,i.b,i.opacity)):new Gr}function tl(i,l,h,x){return arguments.length===1?Y1(i):new Gr(i,l,h,x??1)}function Gr(i,l,h,x){this.r=+i,this.g=+l,this.b=+h,this.opacity=+x}ml(Gr,tl,vo(Zn,{brighter:function(i){return i=i==null?za:Math.pow(za,i),new Gr(this.r*i,this.g*i,this.b*i,this.opacity)},darker:function(i){return i=i==null?Yn:Math.pow(Yn,i),new Gr(this.r*i,this.g*i,this.b*i,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Rl,formatHex:Rl,formatRgb:Ol,toString:Ol}));function Rl(){return"#"+Xu(this.r)+Xu(this.g)+Xu(this.b)}function Ol(){var i=this.opacity;return i=isNaN(i)?1:Math.max(0,Math.min(1,i)),(i===1?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(i===1?")":", "+i+")")}function Xu(i){return i=Math.max(0,Math.min(255,Math.round(i)||0)),(i<16?"0":"")+i.toString(16)}function Ll(i,l,h,x){return x<=0?i=l=h=NaN:h<=0||h>=1?i=l=NaN:l<=0&&(i=NaN),new d0(i,l,h,x)}function go(i){if(i instanceof d0)return new d0(i.h,i.s,i.l,i.opacity);if(i instanceof Zn||(i=jn(i)),!i)return new d0;if(i instanceof d0)return i;i=i.rgb();var l=i.r/255,h=i.g/255,x=i.b/255,w=Math.min(l,h,x),k=Math.max(l,h,x),M=NaN,T=k-w,q=(k+w)/2;return T?(l===k?M=(h-x)/T+(h0&&q<1?0:M,new d0(M,T,q,i.opacity)}function X1(i,l,h,x){return arguments.length===1?go(i):new d0(i,l,h,x??1)}function d0(i,l,h,x){this.h=+i,this.s=+l,this.l=+h,this.opacity=+x}ml(d0,X1,vo(Zn,{brighter:function(i){return i=i==null?za:Math.pow(za,i),new d0(this.h,this.s,this.l*i,this.opacity)},darker:function(i){return i=i==null?Yn:Math.pow(Yn,i),new d0(this.h,this.s,this.l*i,this.opacity)},rgb:function(){var i=this.h%360+(this.h<0)*360,l=isNaN(i)||isNaN(this.s)?0:this.s,h=this.l,x=h+(h<.5?h:1-h)*l,w=2*h-x;return new Gr(ju(i>=240?i-240:i+120,w,x),ju(i,w,x),ju(i<120?i+240:i-120,w,x),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var i=this.opacity;return i=isNaN(i)?1:Math.max(0,Math.min(1,i)),(i===1?"hsl(":"hsla(")+(this.h||0)+", "+(this.s||0)*100+"%, "+(this.l||0)*100+"%"+(i===1?")":", "+i+")")}}));function ju(i,l,h){return(i<60?l+(h-l)*i/60:i<180?h:i<240?l+(h-l)*(240-i)/60:l)*255}const xo=i=>()=>i;function j1(i,l){return function(h){return i+h*l}}function W1(i,l,h){return i=Math.pow(i,h),l=Math.pow(l,h)-i,h=1/h,function(x){return Math.pow(i+x*l,h)}}function K1(i){return(i=+i)==1?yo:function(l,h){return h-l?W1(l,h,i):xo(isNaN(l)?h:l)}}function yo(i,l){var h=l-i;return h?j1(i,h):xo(isNaN(i)?l:i)}const Pl=function i(l){var h=K1(l);function x(w,k){var M=h((w=tl(w)).r,(k=tl(k)).r),T=h(w.g,k.g),q=h(w.b,k.b),L=yo(w.opacity,k.opacity);return function(O){return w.r=M(O),w.g=T(O),w.b=q(O),w.opacity=L(O),w+""}}return x.gamma=i,x}(1);function H0(i,l){return i=+i,l=+l,function(h){return i*(1-h)+l*h}}var nl=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Wu=new RegExp(nl.source,"g");function Z1(i){return function(){return i}}function J1(i){return function(l){return i(l)+""}}function Q1(i,l){var h=nl.lastIndex=Wu.lastIndex=0,x,w,k,M=-1,T=[],q=[];for(i=i+"",l=l+"";(x=nl.exec(i))&&(w=Wu.exec(l));)(k=w.index)>h&&(k=l.slice(h,k),T[M]?T[M]+=k:T[++M]=k),(x=x[0])===(w=w[0])?T[M]?T[M]+=w:T[++M]=w:(T[++M]=null,q.push({i:M,x:H0(x,w)})),h=Wu.lastIndex;return h180?O+=360:O-L>180&&(L+=360),re.push({i:X.push(w(X)+"rotate(",null,x)-2,x:H0(L,O)})):O&&X.push(w(X)+"rotate("+O+x)}function T(L,O,X,re){L!==O?re.push({i:X.push(w(X)+"skewX(",null,x)-2,x:H0(L,O)}):O&&X.push(w(X)+"skewX("+O+x)}function q(L,O,X,re,W,Se){if(L!==X||O!==re){var ye=W.push(w(W)+"scale(",null,",",null,")");Se.push({i:ye-4,x:H0(L,X)},{i:ye-2,x:H0(O,re)})}else(X!==1||re!==1)&&W.push(w(W)+"scale("+X+","+re+")")}return function(L,O){var X=[],re=[];return L=i(L),O=i(O),k(L.translateX,L.translateY,O.translateX,O.translateY,X,re),M(L.rotate,O.rotate,X,re),T(L.skewX,O.skewX,X,re),q(L.scaleX,L.scaleY,O.scaleX,O.scaleY,X,re),L=O=null,function(W){for(var Se=-1,ye=re.length,_e;++Se=0&&i._call.call(null,l),i=i._next;--tn}function Vl(){pt=(Na=Wn.now())+La,tn=Vn=0;try{sc()}finally{tn=0,hc(),pt=0}}function cc(){var i=Wn.now(),l=i-Na;l>Ao&&(La-=l,Na=i)}function hc(){for(var i,l=Fa,h,x=1/0;l;)l._call?(x>l._time&&(x=l._time),i=l,l=l._next):(h=l._next,l._next=null,l=i?i._next=h:Fa=h);Gn=i,al(x)}function al(i){if(!tn){Vn&&(Vn=clearTimeout(Vn));var l=i-pt;l>24?(i<1/0&&(Vn=setTimeout(Vl,i-Wn.now()-La)),Hn&&(Hn=clearInterval(Hn))):(Hn||(Na=Wn.now(),Hn=setInterval(cc,Ao)),tn=1,ko(Vl))}}function Gl(i,l,h){var x=new qa;return l=l==null?0:+l,x.restart(w=>{x.stop(),i(w+l)},l,h),x}var fc=fl("start","end","cancel","interrupt"),pc=[],Co=0,$l=1,ul=2,Da=3,Yl=4,ll=5,Ea=6;function Pa(i,l,h,x,w,k){var M=i.__transition;if(!M)i.__transition={};else if(h in M)return;dc(i,h,{name:l,index:x,group:w,on:fc,tween:pc,time:k.time,delay:k.delay,duration:k.duration,ease:k.ease,timer:null,state:Co})}function gl(i,l){var h=r0(i,l);if(h.state>Co)throw new Error("too late; already scheduled");return h}function v0(i,l){var h=r0(i,l);if(h.state>Da)throw new Error("too late; already running");return h}function r0(i,l){var h=i.__transition;if(!h||!(h=h[l]))throw new Error("transition not found");return h}function dc(i,l,h){var x=i.__transition,w;x[l]=h,h.timer=So(k,0,h.time);function k(L){h.state=$l,h.timer.restart(M,h.delay,h.time),h.delay<=L&&M(L-h.delay)}function M(L){var O,X,re,W;if(h.state!==$l)return q();for(O in x)if(W=x[O],W.name===h.name){if(W.state===Da)return Gl(M);W.state===Yl?(W.state=Ea,W.timer.stop(),W.on.call("interrupt",i,i.__data__,W.index,W.group),delete x[O]):+Oul&&x.state=0&&(l=l.slice(0,h)),!l||l==="start"})}function Gc(i,l,h){var x,w,k=Vc(l)?gl:v0;return function(){var M=k(this,i),T=M.on;T!==x&&(w=(x=T).copy()).on(l,h),M.on=w}}function $c(i,l){var h=this._id;return arguments.length<2?r0(this.node(),h).on.on(i):this.each(Gc(h,i,l))}function Yc(i){return function(){var l=this.parentNode;for(var h in this.__transition)if(+h!==i)return;l&&l.removeChild(this)}}function Xc(){return this.on("end.remove",Yc(this._id))}function jc(i){var l=this._name,h=this._id;typeof i!="function"&&(i=pl(i));for(var x=this._groups,w=x.length,k=new Array(w),M=0;Mht)if(!(Math.abs(O*T-q*L)>ht)||!w)this._+="L"+(this._x1=i)+","+(this._y1=l);else{var re=h-k,W=x-M,Se=T*T+q*q,ye=re*re+W*W,_e=Math.sqrt(Se),K=Math.sqrt(X),Ae=w*Math.tan((ol-Math.acos((Se+X-ye)/(2*_e*K)))/2),Re=Ae/K,Ge=Ae/_e;Math.abs(Re-1)>ht&&(this._+="L"+(i+Re*L)+","+(l+Re*O)),this._+="A"+w+","+w+",0,0,"+ +(O*re>L*W)+","+(this._x1=i+Ge*T)+","+(this._y1=l+Ge*q)}},arc:function(i,l,h,x,w,k){i=+i,l=+l,h=+h,k=!!k;var M=h*Math.cos(x),T=h*Math.sin(x),q=i+M,L=l+T,O=1^k,X=k?x-w:w-x;if(h<0)throw new Error("negative radius: "+h);this._x1===null?this._+="M"+q+","+L:(Math.abs(this._x1-q)>ht||Math.abs(this._y1-L)>ht)&&(this._+="L"+q+","+L),h&&(X<0&&(X=X%sl+sl),X>y2?this._+="A"+h+","+h+",0,1,"+O+","+(i-M)+","+(l-T)+"A"+h+","+h+",0,1,"+O+","+(this._x1=q)+","+(this._y1=L):X>ht&&(this._+="A"+h+","+h+",0,"+ +(X>=ol)+","+O+","+(this._x1=i+h*Math.cos(w))+","+(this._y1=l+h*Math.sin(w))))},rect:function(i,l,h,x){this._+="M"+(this._x0=this._x1=+i)+","+(this._y0=this._y1=+l)+"h"+ +h+"v"+ +x+"h"+-h+"Z"},toString:function(){return this._}};function b2(i,l){switch(arguments.length){case 0:break;case 1:this.range(i);break;default:this.range(l).domain(i);break}return this}const Xl=Symbol("implicit");function To(){var i=new Map,l=[],h=[],x=Xl;function w(k){var M=k+"",T=i.get(M);if(!T){if(x!==Xl)return x;i.set(M,T=l.push(k))}return h[(T-1)%h.length]}return w.domain=function(k){if(!arguments.length)return l.slice();l=[],i=new Map;for(const M of k){const T=M+"";i.has(T)||i.set(T,l.push(M))}return w},w.range=function(k){return arguments.length?(h=Array.from(k),w):h.slice()},w.unknown=function(k){return arguments.length?(x=k,w):x},w.copy=function(){return To(l,h).unknown(x)},b2.apply(w,arguments),w}function w2(i){for(var l=i.length/6|0,h=new Array(l),x=0;x()=>i;function _2(i,{sourceEvent:l,target:h,transform:x,dispatch:w}){Object.defineProperties(this,{type:{value:i,enumerable:!0,configurable:!0},sourceEvent:{value:l,enumerable:!0,configurable:!0},target:{value:h,enumerable:!0,configurable:!0},transform:{value:x,enumerable:!0,configurable:!0},_:{value:w}})}function D0(i,l,h){this.k=i,this.x=l,this.y=h}D0.prototype={constructor:D0,scale:function(i){return i===1?this:new D0(this.k*i,this.x,this.y)},translate:function(i,l){return i===0&l===0?this:new D0(this.k,this.x+this.k*i,this.y+this.k*l)},apply:function(i){return[i[0]*this.k+this.x,i[1]*this.k+this.y]},applyX:function(i){return i*this.k+this.x},applyY:function(i){return i*this.k+this.y},invert:function(i){return[(i[0]-this.x)/this.k,(i[1]-this.y)/this.k]},invertX:function(i){return(i-this.x)/this.k},invertY:function(i){return(i-this.y)/this.k},rescaleX:function(i){return i.copy().domain(i.range().map(this.invertX,this).map(i.invert,i))},rescaleY:function(i){return i.copy().domain(i.range().map(this.invertY,this).map(i.invert,i))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var Ha=new D0(1,0,0);Ma.prototype=D0.prototype;function Ma(i){for(;!i.__zoom;)if(!(i=i.parentNode))return Ha;return i.__zoom}function Ku(i){i.stopImmediatePropagation()}function Un(i){i.preventDefault(),i.stopImmediatePropagation()}function z2(i){return(!i.ctrlKey||i.type==="wheel")&&!i.button}function F2(){var i=this;return i instanceof SVGElement?(i=i.ownerSVGElement||i,i.hasAttribute("viewBox")?(i=i.viewBox.baseVal,[[i.x,i.y],[i.x+i.width,i.y+i.height]]):[[0,0],[i.width.baseVal.value,i.height.baseVal.value]]):[[0,0],[i.clientWidth,i.clientHeight]]}function Wl(){return this.__zoom||Ha}function N2(i){return-i.deltaY*(i.deltaMode===1?.05:i.deltaMode?1:.002)*(i.ctrlKey?10:1)}function q2(){return navigator.maxTouchPoints||"ontouchstart"in this}function I2(i,l,h){var x=i.invertX(l[0][0])-h[0][0],w=i.invertX(l[1][0])-h[1][0],k=i.invertY(l[0][1])-h[0][1],M=i.invertY(l[1][1])-h[1][1];return i.translate(w>x?(x+w)/2:Math.min(0,x)||Math.max(0,w),M>k?(k+M)/2:Math.min(0,k)||Math.max(0,M))}function R2(){var i=z2,l=F2,h=I2,x=N2,w=q2,k=[0,1/0],M=[[-1/0,-1/0],[1/0,1/0]],T=250,q=lc,L=fl("start","zoom","end"),O,X,re,W=500,Se=150,ye=0,_e=10;function K(P){P.property("__zoom",Wl).on("wheel.zoom",ur).on("mousedown.zoom",or).on("dblclick.zoom",Br).filter(w).on("touchstart.zoom",sr).on("touchmove.zoom",qr).on("touchend.zoom touchcancel.zoom",G).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}K.transform=function(P,ce,ee,be){var ke=P.selection?P.selection():P;ke.property("__zoom",Wl),P!==ke?Oe(P,ce,ee,be):ke.interrupt().each(function(){ir(this,arguments).event(be).start().zoom(null,typeof ce=="function"?ce.apply(this,arguments):ce).end()})},K.scaleBy=function(P,ce,ee,be){K.scaleTo(P,function(){var ke=this.__zoom.k,Te=typeof ce=="function"?ce.apply(this,arguments):ce;return ke*Te},ee,be)},K.scaleTo=function(P,ce,ee,be){K.transform(P,function(){var ke=l.apply(this,arguments),Te=this.__zoom,De=ee==null?Ge(ke):typeof ee=="function"?ee.apply(this,arguments):ee,ue=Te.invert(De),Le=typeof ce=="function"?ce.apply(this,arguments):ce;return h(Re(Ae(Te,Le),De,ue),ke,M)},ee,be)},K.translateBy=function(P,ce,ee,be){K.transform(P,function(){return h(this.__zoom.translate(typeof ce=="function"?ce.apply(this,arguments):ce,typeof ee=="function"?ee.apply(this,arguments):ee),l.apply(this,arguments),M)},null,be)},K.translateTo=function(P,ce,ee,be,ke){K.transform(P,function(){var Te=l.apply(this,arguments),De=this.__zoom,ue=be==null?Ge(Te):typeof be=="function"?be.apply(this,arguments):be;return h(Ha.translate(ue[0],ue[1]).scale(De.k).translate(typeof ce=="function"?-ce.apply(this,arguments):-ce,typeof ee=="function"?-ee.apply(this,arguments):-ee),Te,M)},be,ke)};function Ae(P,ce){return ce=Math.max(k[0],Math.min(k[1],ce)),ce===P.k?P:new D0(ce,P.x,P.y)}function Re(P,ce,ee){var be=ce[0]-ee[0]*P.k,ke=ce[1]-ee[1]*P.k;return be===P.x&&ke===P.y?P:new D0(P.k,be,ke)}function Ge(P){return[(+P[0][0]+ +P[1][0])/2,(+P[0][1]+ +P[1][1])/2]}function Oe(P,ce,ee,be){P.on("start.zoom",function(){ir(this,arguments).event(be).start()}).on("interrupt.zoom end.zoom",function(){ir(this,arguments).event(be).end()}).tween("zoom",function(){var ke=this,Te=arguments,De=ir(ke,Te).event(be),ue=l.apply(ke,Te),Le=ee==null?Ge(ue):typeof ee=="function"?ee.apply(ke,Te):ee,Mr=Math.max(ue[1][0]-ue[0][0],ue[1][1]-ue[0][1]),$e=ke.__zoom,mr=typeof ce=="function"?ce.apply(ke,Te):ce,We=q($e.invert(Le).concat(Mr/$e.k),mr.invert(Le).concat(Mr/mr.k));return function(wr){if(wr===1)wr=mr;else{var Ir=We(wr),G0=Mr/Ir[2];wr=new D0(G0,Le[0]-Ir[0]*G0,Le[1]-Ir[1]*G0)}De.zoom(null,wr)}})}function ir(P,ce,ee){return!ee&&P.__zooming||new ar(P,ce)}function ar(P,ce){this.that=P,this.args=ce,this.active=0,this.sourceEvent=null,this.extent=l.apply(P,ce),this.taps=0}ar.prototype={event:function(P){return P&&(this.sourceEvent=P),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(P,ce){return this.mouse&&P!=="mouse"&&(this.mouse[1]=ce.invert(this.mouse[0])),this.touch0&&P!=="touch"&&(this.touch0[1]=ce.invert(this.touch0[0])),this.touch1&&P!=="touch"&&(this.touch1[1]=ce.invert(this.touch1[0])),this.that.__zoom=ce,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(P){var ce=V0(this.that).datum();L.call(P,this.that,new _2(P,{sourceEvent:this.sourceEvent,target:K,type:P,transform:this.that.__zoom,dispatch:L}),ce)}};function ur(P,...ce){if(!i.apply(this,arguments))return;var ee=ir(this,ce).event(P),be=this.__zoom,ke=Math.max(k[0],Math.min(k[1],be.k*Math.pow(2,x.apply(this,arguments)))),Te=st(P);if(ee.wheel)(ee.mouse[0][0]!==Te[0]||ee.mouse[0][1]!==Te[1])&&(ee.mouse[1]=be.invert(ee.mouse[0]=Te)),clearTimeout(ee.wheel);else{if(be.k===ke)return;ee.mouse=[Te,be.invert(Te)],Ba(this),ee.start()}Un(P),ee.wheel=setTimeout(De,Se),ee.zoom("mouse",h(Re(Ae(be,ke),ee.mouse[0],ee.mouse[1]),ee.extent,M));function De(){ee.wheel=null,ee.end()}}function or(P,...ce){if(re||!i.apply(this,arguments))return;var ee=ir(this,ce,!0).event(P),be=V0(P.view).on("mousemove.zoom",Le,!0).on("mouseup.zoom",Mr,!0),ke=st(P,Te),Te=P.currentTarget,De=P.clientX,ue=P.clientY;I1(P.view),Ku(P),ee.mouse=[ke,this.__zoom.invert(ke)],Ba(this),ee.start();function Le($e){if(Un($e),!ee.moved){var mr=$e.clientX-De,We=$e.clientY-ue;ee.moved=mr*mr+We*We>ye}ee.event($e).zoom("mouse",h(Re(ee.that.__zoom,ee.mouse[0]=st($e,Te),ee.mouse[1]),ee.extent,M))}function Mr($e){be.on("mousemove.zoom mouseup.zoom",null),R1($e.view,ee.moved),Un($e),ee.event($e).end()}}function Br(P,...ce){if(i.apply(this,arguments)){var ee=this.__zoom,be=st(P.changedTouches?P.changedTouches[0]:P,this),ke=ee.invert(be),Te=ee.k*(P.shiftKey?.5:2),De=h(Re(Ae(ee,Te),be,ke),l.apply(this,ce),M);Un(P),T>0?V0(this).transition().duration(T).call(Oe,De,be,P):V0(this).call(K.transform,De,be,P)}}function sr(P,...ce){if(i.apply(this,arguments)){var ee=P.touches,be=ee.length,ke=ir(this,ce,P.changedTouches.length===be).event(P),Te,De,ue,Le;for(Ku(P),De=0;De=0;)l+=h[x].value;i.value=l}function L2(){return this.eachAfter(O2)}function P2(i){var l=this,h,x=[l],w,k,M;do for(h=x.reverse(),x=[];l=h.pop();)if(i(l),w=l.children,w)for(k=0,M=w.length;k=0;--w)h.push(x[w]);return this}function U2(i){for(var l=this,h=[l],x=[],w,k,M;l=h.pop();)if(x.push(l),w=l.children,w)for(k=0,M=w.length;k=0;)h+=x[w].value;l.value=h})}function G2(i){return this.eachBefore(function(l){l.children&&l.children.sort(i)})}function $2(i){for(var l=this,h=Y2(l,i),x=[l];l!==h;)l=l.parent,x.push(l);for(var w=x.length;i!==h;)x.splice(w,0,i),i=i.parent;return x}function Y2(i,l){if(i===l)return i;var h=i.ancestors(),x=l.ancestors(),w=null;for(i=h.pop(),l=x.pop();i===l;)w=i,i=h.pop(),l=x.pop();return w}function X2(){for(var i=this,l=[i];i=i.parent;)l.push(i);return l}function j2(){var i=[];return this.each(function(l){i.push(l)}),i}function W2(){var i=[];return this.eachBefore(function(l){l.children||i.push(l)}),i}function K2(){var i=this,l=[];return i.each(function(h){h!==i&&l.push({source:h.parent,target:h})}),l}function yl(i,l){var h=new Ia(i),x=+i.value&&(h.value=i.value),w,k=[h],M,T,q,L;for(l==null&&(l=J2);w=k.pop();)if(x&&(w.value=+w.data.value),(T=l(w.data))&&(L=T.length))for(w.children=new Array(L),q=L-1;q>=0;--q)k.push(M=w.children[q]=new Ia(T[q])),M.parent=w,M.depth=w.depth+1;return h.eachBefore(eh)}function Z2(){return yl(this).eachBefore(Q2)}function J2(i){return i.children}function Q2(i){i.data=i.data.data}function eh(i){var l=0;do i.height=l;while((i=i.parent)&&i.height<++l)}function Ia(i){this.data=i,this.depth=this.height=0,this.parent=null}Ia.prototype=yl.prototype={constructor:Ia,count:L2,each:P2,eachAfter:U2,eachBefore:H2,sum:V2,sort:G2,path:$2,ancestors:X2,descendants:j2,leaves:W2,links:K2,copy:Z2};var rh="d3-flextree",th="2.1.2",nh="build/d3-flextree.js",ih="index",ah={name:"Chris Maloney",url:"http://chrismaloney.org"},uh="Flexible tree layout algorithm that allows for variable node sizes.",lh=["d3","d3-module","layout","tree","hierarchy","d3-hierarchy","plugin","d3-plugin","infovis","visualization","2d"],oh="https://github.com/klortho/d3-flextree",sh="WTFPL",ch={type:"git",url:"https://github.com/klortho/d3-flextree.git"},hh={clean:"rm -rf build demo test","build:demo":"rollup -c --environment BUILD:demo","build:dev":"rollup -c --environment BUILD:dev","build:prod":"rollup -c --environment BUILD:prod","build:test":"rollup -c --environment BUILD:test",build:"rollup -c",lint:"eslint index.js src","test:main":"node test/bundle.js","test:browser":"node test/browser-tests.js",test:"npm-run-all test:*",prepare:"npm-run-all clean build lint test"},fh={"d3-hierarchy":"^1.1.5"},ph={"babel-plugin-external-helpers":"^6.22.0","babel-preset-es2015-rollup":"^3.0.0",d3:"^4.13.0","d3-selection-multi":"^1.0.1",eslint:"^4.19.1",jsdom:"^11.6.2","npm-run-all":"^4.1.2",rollup:"^0.55.3","rollup-plugin-babel":"^2.7.1","rollup-plugin-commonjs":"^8.0.2","rollup-plugin-copy":"^0.2.3","rollup-plugin-json":"^2.3.0","rollup-plugin-node-resolve":"^3.0.2","rollup-plugin-uglify":"^3.0.0","uglify-es":"^3.3.9"},dh={name:rh,version:th,main:nh,module:ih,"jsnext:main":"index",author:ah,description:uh,keywords:lh,homepage:oh,license:sh,repository:ch,scripts:hh,dependencies:fh,devDependencies:ph};const{version:mh}=dh,vh=Object.freeze({children:i=>i.children,nodeSize:i=>i.data.size,spacing:0});function zo(i){const l=Object.assign({},vh,i);function h(T){const q=l[T];return typeof q=="function"?q:()=>q}function x(T){const q=M(k(),T,L=>L.children);return q.update(),q.data}function w(){const T=h("nodeSize"),q=h("spacing");return class _o extends yl.prototype.constructor{constructor(O){super(O)}copy(){const O=M(this.constructor,this,X=>X.children);return O.each(X=>X.data=X.data.data),O}get size(){return T(this)}spacing(O){return q(this,O)}get nodes(){return this.descendants()}get xSize(){return this.size[0]}get ySize(){return this.size[1]}get top(){return this.y}get bottom(){return this.y+this.ySize}get left(){return this.x-this.xSize/2}get right(){return this.x+this.xSize/2}get root(){const O=this.ancestors();return O[O.length-1]}get numChildren(){return this.hasChildren?this.children.length:0}get hasChildren(){return!this.noChildren}get noChildren(){return this.children===null}get firstChild(){return this.hasChildren?this.children[0]:null}get lastChild(){return this.hasChildren?this.children[this.numChildren-1]:null}get extents(){return(this.children||[]).reduce((O,X)=>_o.maxExtents(O,X.extents),this.nodeExtents)}get nodeExtents(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}}static maxExtents(O,X){return{top:Math.min(O.top,X.top),bottom:Math.max(O.bottom,X.bottom),left:Math.min(O.left,X.left),right:Math.max(O.right,X.right)}}}}function k(){const T=w(),q=h("nodeSize"),L=h("spacing");return class extends T{constructor(O){super(O),Object.assign(this,{x:0,y:0,relX:0,prelim:0,shift:0,change:0,lExt:this,lExtRelX:0,lThr:null,rExt:this,rExtRelX:0,rThr:null})}get size(){return q(this.data)}spacing(O){return L(this.data,O.data)}get x(){return this.data.x}set x(O){this.data.x=O}get y(){return this.data.y}set y(O){this.data.y=O}update(){return Fo(this),No(this),this}}}function M(T,q,L){const O=(X,re)=>{const W=new T(X);Object.assign(W,{parent:re,depth:re===null?0:re.depth+1,height:0,length:1});const Se=L(X)||[];return W.children=Se.length===0?null:Se.map(ye=>O(ye,W)),W.children&&Object.assign(W,W.children.reduce((ye,_e)=>({height:Math.max(ye.height,_e.height+1),length:ye.length+_e.length}),W)),W};return O(q,null)}return Object.assign(x,{nodeSize(T){return arguments.length?(l.nodeSize=T,x):l.nodeSize},spacing(T){return arguments.length?(l.spacing=T,x):l.spacing},children(T){return arguments.length?(l.children=T,x):l.children},hierarchy(T,q){const L=typeof q>"u"?l.children:q;return M(w(),T,L)},dump(T){const q=h("nodeSize"),L=O=>X=>{const re=O+"  ",W=O+"    ",{x:Se,y:ye}=X,_e=q(X),K=X.children||[],Ae=K.length===0?" ":`,${re}children: [${W}${K.map(L(W)).join(W)}${re}],${O}`;return`{ size: [${_e.join(", ")}],${re}x: ${Se}, y: ${ye}${Ae}},`};return L(`
    `)(T)}}),x}zo.version=mh;const Fo=(i,l=0)=>(i.y=l,(i.children||[]).reduce((h,x)=>{const[w,k]=h;Fo(x,i.y+i.ySize);const M=(w===0?x.lExt:x.rExt).bottom;w!==0&&xh(i,w,k);const T=Dh(M,w,k);return[w+1,T]},[0,null]),gh(i),Ch(i),i),No=(i,l,h)=>{typeof l>"u"&&(l=-i.relX-i.prelim,h=0);const x=l+i.relX;return i.relX=x+i.prelim-h,i.prelim=0,i.x=h+i.relX,(i.children||[]).forEach(w=>No(w,x,i.x)),i},gh=i=>{(i.children||[]).reduce((l,h)=>{const[x,w]=l,k=x+h.shift,M=w+k+h.change;return h.relX+=M,[k,M]},[0,0])},xh=(i,l,h)=>{const x=i.children[l-1],w=i.children[l];let k=x,M=x.relX,T=w,q=w.relX,L=!0;for(;k&&T;){k.bottom>h.lowY&&(h=h.next);const O=M+k.prelim-(q+T.prelim)+k.xSize/2+T.xSize/2+k.spacing(T);(O>0||O<0&&L)&&(q+=O,yh(w,O),bh(i,l,h.index,O)),L=!1;const X=k.bottom,re=T.bottom;X<=re&&(k=Ah(k),k&&(M+=k.relX)),X>=re&&(T=wh(T),T&&(q+=T.relX))}!k&&T?kh(i,l,T,q):k&&!T&&Sh(i,l,k,M)},yh=(i,l)=>{i.relX+=l,i.lExtRelX+=l,i.rExtRelX+=l},bh=(i,l,h,x)=>{const w=i.children[l],k=l-h;if(k>1){const M=x/k;i.children[h+1].shift+=M,w.shift-=M,w.change-=x-M}},wh=i=>i.hasChildren?i.firstChild:i.lThr,Ah=i=>i.hasChildren?i.lastChild:i.rThr,kh=(i,l,h,x)=>{const w=i.firstChild,k=w.lExt,M=i.children[l];k.lThr=h;const T=x-h.relX-w.lExtRelX;k.relX+=T,k.prelim-=T,w.lExt=M.lExt,w.lExtRelX=M.lExtRelX},Sh=(i,l,h,x)=>{const w=i.children[l],k=w.rExt,M=i.children[l-1];k.rThr=h;const T=x-h.relX-w.rExtRelX;k.relX+=T,k.prelim-=T,w.rExt=M.rExt,w.rExtRelX=M.rExtRelX},Ch=i=>{if(i.hasChildren){const l=i.firstChild,h=i.lastChild,x=(l.prelim+l.relX-l.xSize/2+h.relX+h.prelim+h.xSize/2)/2;Object.assign(i,{prelim:x,lExt:l.lExt,lExtRelX:l.lExtRelX,rExt:h.rExt,rExtRelX:h.rExtRelX})}},Dh=(i,l,h)=>{for(;h!==null&&i>=h.lowY;)h=h.next;return{lowY:i,index:l,next:h}};/*! @gera2ld/jsx-dom v2.1.1 | ISC License */var qo=1,Io=2,ft=1,Ro=4,Eh="http://www.w3.org/2000/svg",Zu="http://www.w3.org/1999/xlink",Bh={show:Zu,actuate:Zu,href:Zu},Mh=function(l){return typeof l=="string"||typeof l=="number"},Th=function(l){return(l==null?void 0:l.vtype)===qo},_h=function(l){return(l==null?void 0:l.vtype)===Io};function Sa(i,l){var h;if(typeof i=="string")h=qo;else if(typeof i=="function")h=Io;else throw new Error("Invalid VNode type");return{vtype:h,type:i,props:l}}function zh(i){return i.children}var Fh={isSvg:!1};function hl(i,l){if(l.type===ft)l.node!=null&&i.append(l.node);else if(l.type===Ro)l.children.forEach(function(h){hl(i,h)});else throw new Error("Unkown ref type "+JSON.stringify(l))}function Nh(i,l,h){for(var x in l)x==="key"||x==="children"||x==="ref"||(x==="dangerouslySetInnerHTML"?i.innerHTML=l[x].__html:x==="innerHTML"||x==="textContent"||x==="innerText"?i[x]=l[x]:x.startsWith("on")?i[x.toLowerCase()]=l[x]:Ih(i,x,l[x],h.isSvg))}var qh={className:"class",labelFor:"for"};function Ih(i,l,h,x){if(l=qh[l]||l,h===!0)i.setAttribute(l,"");else if(h===!1)i.removeAttribute(l);else{var w=x?Bh[l]:void 0;w!==void 0?i.setAttributeNS(w,l,h):i.setAttribute(l,h)}}function $n(i,l){if(l===void 0&&(l=Fh),i==null||typeof i=="boolean")return{type:ft,node:null};if(i instanceof Node)return{type:ft,node:i};if(_h(i)){var h=i,x=h.type,w=h.props;if(x===zh){var k=document.createDocumentFragment();if(w.children){var M=$n(w.children,l);hl(k,M)}return{type:ft,node:k}}var T=x(w);return $n(T,l)}if(Mh(i))return{type:ft,node:document.createTextNode(""+i)};if(Th(i)){var q,L=i,O=L.type,X=L.props;!l.isSvg&&O==="svg"&&(l=Object.assign({},l,{isSvg:!0})),l.isSvg?q=document.createElementNS(Eh,O):q=document.createElement(O),Nh(q,X,l);var re;if(X.children){var W=l;l.isSvg&&O==="foreignObject"&&(W=Object.assign({},W,{isSvg:!1})),re=$n(X.children,W)}re!=null&&hl(q,re);var Se=X.ref;return typeof Se=="function"&&Se(q),{type:ft,node:q}}if(Array.isArray(i))return{type:Ro,children:i.map(function(ye){return $n(ye,l)})};throw new Error("mount: Invalid Vnode!")}function Oo(i){for(var l=[],h=0;h{h.ySizeInner=h.ySize-l,h.y+=l,x()},"children")}function Zl(i,l){const h=rs(i,l);return i[h]}function Jl(i){i.stopPropagation()}function Ph(){return{transformHtml:new eo}}const Hh=new eo,Uh=To(A2),Vh=typeof navigator<"u"&&navigator.userAgent.includes("Macintosh");class Ra{constructor(l,h){this.revokers=[],["handleZoom","handleClick","handlePan"].forEach(x=>{this[x]=this[x].bind(this)}),this.viewHooks=Ph(),this.svg=l.datum?l:V0(l),this.styleNode=this.svg.append("style"),this.zoom=R2().filter(x=>this.options.scrollForPan&&x.type==="wheel"?x.ctrlKey&&!x.button:(!x.ctrlKey||x.type==="wheel")&&!x.button).on("zoom",this.handleZoom),this.setOptions(h),this.state={id:this.options.id||this.svg.attr("id")||Qo()},this.g=this.svg.append("g"),this.revokers.push(Hh.tap(()=>{this.setData()}))}getStyleContent(){const{style:l}=this.options,{id:h}=this.state,x=typeof l=="function"?l(h):"";return[this.options.embedGlobalCSS&&Rh,x].filter(Boolean).join(`
    `)}updateStyle(){this.svg.attr("class",es(this.svg.attr("class"),"markmap",this.state.id));const l=this.getStyleContent();this.styleNode.text(l)}handleZoom(l){const{transform:h}=l;this.g.attr("transform",h)}handlePan(l){l.preventDefault();const h=Ma(this.svg.node()),x=h.translate(-l.deltaX/h.k,-l.deltaY/h.k);this.svg.call(this.zoom.transform,x)}handleClick(l,h){var x;const{data:w}=h;w.payload=U0({},w.payload,{fold:(x=w.payload)!=null&&x.fold?0:1}),this.renderData(h.data)}initializeData(l){let h=0;const{color:x,nodeMinHeight:w,maxWidth:k,initialExpandLevel:M}=this.options,{id:T}=this.state,q=Ta(Sa("div",{className:`markmap-container markmap ${T}-g`})),L=Ta(Sa("style",{children:[this.getStyleContent(),Oh].join(`
    `)}));document.body.append(q,L);const O=k?`max-width: ${k}px`:"";let X=0;Qu(l,(W,Se,ye)=>{var _e,K,Ae;W.children=(_e=W.children)==null?void 0:_e.map(Oe=>U0({},Oe)),h+=1;const Re=Ta(Sa("div",{className:"markmap-foreign",style:O,children:Sa("div",{dangerouslySetInnerHTML:{__html:W.content}})}));q.append(Re),W.state=U0({},W.state,{id:h,el:Re.firstChild}),W.state.path=[ye==null||(K=ye.state)==null?void 0:K.path,W.state.id].filter(Boolean).join("."),x(W);const Ge=((Ae=W.payload)==null?void 0:Ae.fold)===2;Ge?X+=1:(X||M>=0&&W.depth>=M)&&(W.payload=U0({},W.payload,{fold:1})),Se(),Ge&&(X-=1)});const re=ro(q.childNodes).map(W=>W.firstChild);this.viewHooks.transformHtml.call(this,re),re.forEach(W=>{W.parentNode.append(W.cloneNode(!0))}),Qu(l,(W,Se,ye)=>{var _e;const K=W.state.el.getBoundingClientRect();W.content=W.state.el.innerHTML,W.state.size=[Math.ceil(K.width)+1,Math.max(Math.ceil(K.height),w)],W.state.key=[ye==null||(_e=ye.state)==null?void 0:_e.id,W.state.id].filter(Boolean).join(".")+W.content,Se()}),q.remove(),L.remove()}setOptions(l){this.options=U0({},Ra.defaultOptions,l),this.options.zoom?this.svg.call(this.zoom):this.svg.on(".zoom",null),this.svg.on("wheel",this.options.pan?this.handlePan:null)}setData(l,h){l&&(this.state.data=l),h&&this.setOptions(h),this.initializeData(this.state.data),this.updateStyle(),this.renderData()}renderData(l){var h,x;if(!this.state.data)return;const{spacingHorizontal:w,paddingX:k,spacingVertical:M,autoFit:T,color:q}=this.options,L=zo().children(G=>{var P;return!((P=G.payload)!=null&&P.fold)&&G.children}).nodeSize(G=>{const[P,ce]=G.data.state.size;return[ce,P+(P?k*2:0)+w]}).spacing((G,P)=>G.parent===P.parent?M:M*2),O=L.hierarchy(this.state.data);L(O),Lh(O,w);const X=O.descendants().reverse(),re=O.links(),W=T2(),Se=Tl(X,G=>G.x-G.xSize/2),ye=Ml(X,G=>G.x+G.xSize/2),_e=Tl(X,G=>G.y),K=Ml(X,G=>G.y+G.ySizeInner);Object.assign(this.state,{minX:Se,maxX:ye,minY:_e,maxY:K}),T&&this.fit();const Ae=l&&X.find(G=>G.data===l)||O,Re=(h=Ae.data.state.x0)!=null?h:Ae.x,Ge=(x=Ae.data.state.y0)!=null?x:Ae.y,Oe=this.g.selectAll(Qt("g")).data(X,G=>G.data.state.key),ir=Oe.enter().append("g").attr("data-depth",G=>G.data.depth).attr("data-path",G=>G.data.state.path).attr("transform",G=>`translate(${Ge+Ae.ySizeInner-G.ySizeInner},${Re+Ae.xSize/2-G.xSize})`),ar=this.transition(Oe.exit());ar.select("line").attr("x1",G=>G.ySizeInner).attr("x2",G=>G.ySizeInner),ar.select("foreignObject").style("opacity",0),ar.attr("transform",G=>`translate(${Ae.y+Ae.ySizeInner-G.ySizeInner},${Ae.x+Ae.xSize/2-G.xSize})`).remove();const ur=Oe.merge(ir).attr("class",G=>{var P;return["markmap-node",((P=G.data.payload)==null?void 0:P.fold)&&"markmap-fold"].filter(Boolean).join(" ")});this.transition(ur).attr("transform",G=>`translate(${G.y},${G.x-G.xSize/2})`);const or=ur.selectAll(Qt("line")).data(G=>[G],G=>G.data.state.key).join(G=>G.append("line").attr("x1",P=>P.ySizeInner).attr("x2",P=>P.ySizeInner),G=>G,G=>G.remove());this.transition(or).attr("x1",-1).attr("x2",G=>G.ySizeInner+2).attr("y1",G=>G.xSize).attr("y2",G=>G.xSize).attr("stroke",G=>q(G.data)).attr("stroke-width",Kl);const Br=ur.selectAll(Qt("circle")).data(G=>G.data.children?[G]:[],G=>G.data.state.key).join(G=>G.append("circle").attr("stroke-width","1.5").attr("cx",P=>P.ySizeInner).attr("cy",P=>P.xSize).attr("r",0).on("click",(P,ce)=>this.handleClick(P,ce)),G=>G,G=>G.remove());this.transition(Br).attr("r",6).attr("cx",G=>G.ySizeInner).attr("cy",G=>G.xSize).attr("stroke",G=>q(G.data)).attr("fill",G=>{var P;return(P=G.data.payload)!=null&&P.fold&&G.data.children?q(G.data):"#fff"});const sr=ur.selectAll(Qt("foreignObject")).data(G=>[G],G=>G.data.state.key).join(G=>{const P=G.append("foreignObject").attr("class","markmap-foreign").attr("x",k).attr("y",0).style("opacity",0).on("mousedown",Jl).on("dblclick",Jl);return P.append("xhtml:div").select(function(ee){const be=ee.data.state.el.cloneNode(!0);return this.replaceWith(be),be}).attr("xmlns","http://www.w3.org/1999/xhtml"),P},G=>G,G=>G.remove()).attr("width",G=>Math.max(0,G.ySizeInner-k*2)).attr("height",G=>G.xSize);this.transition(sr).style("opacity",1);const qr=this.g.selectAll(Qt("path")).data(re,G=>G.target.data.state.key).join(G=>{const P=[Ge+Ae.ySizeInner,Re+Ae.xSize/2];return G.insert("path","g").attr("class","markmap-link").attr("data-depth",ce=>ce.target.data.depth).attr("data-path",ce=>ce.target.data.state.path).attr("d",W({source:P,target:P}))},G=>G,G=>{const P=[Ae.y+Ae.ySizeInner,Ae.x+Ae.xSize/2];return this.transition(G).attr("d",W({source:P,target:P})).remove()});this.transition(qr).attr("stroke",G=>q(G.target.data)).attr("stroke-width",G=>Kl(G.target)).attr("d",G=>{const P=[G.source.y+G.source.ySizeInner,G.source.x+G.source.xSize/2],ce=[G.target.y,G.target.x+G.target.xSize/2];return W({source:P,target:ce})}),X.forEach(G=>{G.data.state.x0=G.x,G.data.state.y0=G.y})}transition(l){const{duration:h}=this.options;return l.transition().duration(h)}async fit(){const l=this.svg.node(),{width:h,height:x}=l.getBoundingClientRect(),{fitRatio:w}=this.options,{minX:k,maxX:M,minY:T,maxY:q}=this.state,L=q-T,O=M-k,X=Math.min(h/L*w,x/O*w,2),re=Ha.translate((h-L*X)/2-T*X,(x-O*X)/2-k*X).scale(X);return this.transition(this.svg).call(this.zoom.transform,re).end().catch(Yu)}async ensureView(l,h){let x,w;if(this.g.selectAll(Qt("g")).each(function(Ae){Ae.data===l&&(x=this,w=Ae)}),!x||!w)return;const k=this.svg.node(),M=k.getBoundingClientRect(),T=Ma(k),[q,L]=[w.y,w.y+w.ySizeInner+2].map(K=>K*T.k+T.x),[O,X]=[w.x-w.xSize/2,w.x+w.xSize/2].map(K=>K*T.k+T.y),re=U0({left:0,right:0,top:0,bottom:0},h),W=[re.left-q,M.width-re.right-L],Se=[re.top-O,M.height-re.bottom-X],ye=W[0]*W[1]>0?Zl(W,Math.abs)/T.k:0,_e=Se[0]*Se[1]>0?Zl(Se,Math.abs)/T.k:0;if(ye||_e){const K=T.translate(ye,_e);return this.transition(this.svg).call(this.zoom.transform,K).end().catch(Yu)}}async rescale(l){const h=this.svg.node(),{width:x,height:w}=h.getBoundingClientRect(),k=x/2,M=w/2,T=Ma(h),q=T.translate((k-T.x)*(1-l)/T.k,(M-T.y)*(1-l)/T.k).scale(l);return this.transition(this.svg).call(this.zoom.transform,q).end().catch(Yu)}destroy(){this.svg.on(".zoom",null),this.svg.html(null),this.revokers.forEach(l=>{l()})}static create(l,h,x){const w=new Ra(l,h);return x&&(w.setData(x),w.fit()),w}}Ra.defaultOptions={autoFit:!1,color:i=>Uh(`${i.state.path}`),duration:500,embedGlobalCSS:!0,fitRatio:.95,maxWidth:0,nodeMinHeight:16,paddingX:8,scrollForPan:Vh,spacingHorizontal:80,spacingVertical:5,initialExpandLevel:-1,zoom:!0,pan:!0};export{Ra as M,Yh as b,Zo as r};