(function(e){if(typeofexports==="object"&&typeofmodule!=="undefined"){module.exports=e()}elseif(typeofdefine==="function"&&define.amd){define([],e)}else{vart;if(typeofwindow!=="undefined"){t=window}elseif(typeofglobal!=="undefined"){t=global}elseif(typeofself!=="undefined"){t=self}else{t=this}t.katex=e()}})(function(){vare,t,i;returnfunctionh(e,t,i){functiona(l,s){if(!t[l]){if(!e[l]){varp=typeofrequire=="function"&&require;if(!s&&p)returnp(l,!0);if(r)returnr(l,!0);varc=newError("Cannot find module '"+l+"'");throwc.code="MODULE_NOT_FOUND",c}varn=t[l]={exports:{}};e[l][0].call(n.exports,function(t){vari=e[l][1][t];returna(i?i:t)},n,n.exports,h,e,t,i)}returnt[l].exports}varr=typeofrequire=="function"&&require;for(varl=0;l<i.length;l++)a(i[l]);returna}({1:[function(e,t,i){varh=e("./src/ParseError");vara=e("./src/Settings");varr=e("./src/buildTree");varl=e("./src/parseTree");vars=e("./src/utils");varp=function(e,t,i){s.clearNode(t);varh=newa(i);varp=l(e,h);varc=r(p,e,h).toNode();t.appendChild(c)};if(typeofdocument!=="undefined"){if(document.compatMode!=="CSS1Compat"){typeofconsole!=="undefined"&&console.warn("Warning: KaTeX doesn't work in quirks mode. Make sure your "+"website has a suitable doctype.");p=function(){thrownewh("KaTeX doesn't work in quirks mode.")}}}varc=function(e,t){vari=newa(t);varh=l(e,i);returnr(h,e,i).toMarkup()};varn=function(e,t){vari=newa(t);returnl(e,i)};t.exports={render:p,renderToString:c,__parse:n,ParseError:h}},{"./src/ParseError":5,"./src/Settings":7,"./src/buildTree":12,"./src/parseTree":21,"./src/utils":23}],2:[function(e,t,i){"use strict";functionh(e){if(!e.__matchAtRelocatable){vart=e.source+"|()";vari="g"+(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"");e.__matchAtRelocatable=newRegExp(t,i)}returne.__matchAtRelocatable}functiona(e,t,i){if(e.global||e.sticky){thrownewError("matchAt(...): Only non-global regexes are supported")}vara=h(e);a.lastIndex=i;varr=a.exec(t);if(r[r.length-1]==null){r.length=r.length-1;returnr}else{returnnull}}t.exports=a},{}],3:[function(e,t,i){varh=e("match-at");vara=e("./ParseError");functionr(e){this._input=e}functionl(e,t,i){this.text=e;this.data=t;this.position=i}vars=[/[/|@.""`0-9a-zA-Z]/,/[*+-]/,/[=<>:]/,/[,;]/,/['\^_{}]/,/[(\[]/,/[)\]?!]/,/~/,/&/,/\\\\/];varp=[/[a-zA-Z0-9`!@*()-=+\[\]'";:?\/.,]/,/[{}]/,/~/,/&/,/\\\\/];varc=/\s*/;varn=/ +|\\ +/;varo=/\\(?:[a-zA-Z]+|.)/;r.prototype._innerLex=function(e,t,i){varr=this._input;vars;if(i){s=h(c,r,e)[0];e+=s.length}else{s=h(n,r,e);if(s!==null){returnnewl(" ",null,e+s[0].length)}}if(e===r.length){returnnewl("EOF",null,e)}varp;if(p=h(o,r,e)){returnnewl(p[0],null,e+p[0].length)}else{for(varg=0;g<t.length;g++){vard=t[g];if(p=h(d,r,e)){returnnewl(p[0],null,e+p[0].length)}}}thrownewa("Unexpected character: '"+r[e]+"'",this,e)};varg=/#[a-z0-9]+|[a-z]+/i;r.prototype._innerLexColor=function(e){vart=this._input;vari=h(c,t,e)[0];e+=i.length;varr;if(r=h(g,t,e)){returnnewl(r[0],null,e+r[0].length)}else{thrownewa("Invalid color",this,e)}};vard=/(-?)\s*(\d+(?:\.\d*)?|\.\d+)\s*([a-z]{2})/;r.prototype._innerLexSize=function(e){vart=this._input;vari=h(c,t,e)[0];e+=i.length;varr;if(r=h(d,t,e)){vars=r[3];if(s!=="em"&&s!=="ex"){thrownewa("Invalid unit: '"+s+"'",this,e)}returnnewl(r[0],{number:+(r[1]+r[2]),unit:s},e+r[0].length)}thrownewa("Invalid size",this,e)};r.prototype._innerLexWhitespace=function(e){vart=this._input;vari=h(c,t,e)[0];e+=i.length;returnnewl(i[0],null,e)};r.prototype.lex=function(e,t){if(t==="math"){returnthis._innerLex(e,s,true)}elseif(t==="text"){returnthis._innerLex(e,p,false)}elseif(t==="color"){returnthis._innerLexColor(e)}elseif(t==="size"){returnthis._innerLexSize(e)}elseif(t==="whitespace"){returnthis._innerLexWhitespace(e)}};t.exports=r},{"./ParseError":5,"match-at":2}],4:[function(e,t,i){functionh(e){this.style=e.style;this.color=e.color;this.size=e.size;this.phantom=e.phantom;this.font=e.font;if(e.parentStyle===undefined){this.parentStyle=e.style}else{this.parentStyle=e.pare
returna},styling:function(e,t,i){varh={display:a.DISPLAY,text:a.TEXT,script:a.SCRIPT,scriptscript:a.SCRIPTSCRIPT};varr=h[e.value.style];varl=o(e.value.value,t.withStyle(r),i);returnn([t.style.reset(),r.cls()],l)},font:function(e,t,i){varh=e.value.font;returnv(e.value.body,t.withFont(h),i)},delimsizing:function(e,t,i){varh=e.value.value;if(h==="."){returnn([g[e.value.delimType]])}returnn([g[e.value.delimType]],[l.sizedDelim(h,e.value.size,t,e.mode)])},leftright:function(e,t,i){varh=o(e.value.body,t.reset());vara=0;varr=0;for(vars=0;s<h.length;s++){a=Math.max(h[s].height,a);r=Math.max(h[s].depth,r)}a*=t.style.sizeMultiplier;r*=t.style.sizeMultiplier;varp;if(e.value.left==="."){p=m(t)}else{p=l.leftRightDelim(e.value.left,a,r,t,e.mode)}h.unshift(p);varc;if(e.value.right==="."){c=m(t)}else{c=l.leftRightDelim(e.value.right,a,r,t,e.mode)}h.push(c);returnn(["minner",t.style.cls()],h,t.getColor())},rule:function(e,t,i){varh=n(["mord","rule"],[],t.getColor());vara=0;if(e.value.shift){a=e.value.shift.number;if(e.value.shift.unit==="ex"){a*=p.metrics.xHeight}}varr=e.value.width.number;if(e.value.width.unit==="ex"){r*=p.metrics.xHeight}varl=e.value.height.number;if(e.value.height.unit==="ex"){l*=p.metrics.xHeight}a/=t.style.sizeMultiplier;r/=t.style.sizeMultiplier;l/=t.style.sizeMultiplier;h.style.borderRightWidth=r+"em";h.style.borderTopWidth=l+"em";h.style.bottom=a+"em";h.width=r;h.height=l+a;h.depth=-a;returnh},accent:function(e,t,i){varh=e.value.base;vara;if(e.type==="supsub"){varl=e;e=l.value.base;h=e.value.base;l.value.base=h;a=v(l,t.reset(),i)}vars=v(h,t.withStyle(t.style.cramp()));varc;if(k(h)){varo=u(h);varg=v(o,t.withStyle(t.style.cramp()));c=g.skew}else{c=0}vard=Math.min(s.height,p.metrics.xHeight);varw=r.makeSymbol(e.value.accent,"Main-Regular","math",t.getColor());w.italic=0;varm=e.value.accent==="\\vec"?"accent-vec":null;varf=n(["accent-body",m],[n([],[w])]);f=r.makeVList([{type:"elem",elem:s},{type:"kern",size:-d},{type:"elem",elem:f}],"firstBaseline",null,t);f.children[1].style.marginLeft=2*c+"em";vary=n(["mord","accent"],[f]);if(a){a.children[0]=y;a.height=Math.max(y.height,a.height);a.classes[0]="mord";returna}else{returny}},phantom:function(e,t,i){varh=o(e.value.value,t.withPhantom(),i);returnnewr.makeFragment(h)}};varv=function(e,t,i){if(!e){returnn()}if(f[e.type]){vara=f[e.type](e,t,i);varl;if(t.style!==t.parentStyle){l=t.style.sizeMultiplier/t.parentStyle.sizeMultiplier;a.height*=l;a.depth*=l}if(t.size!==t.parentSize){l=r.sizingMultiplier[t.size]/r.sizingMultiplier[t.parentSize];a.height*=l;a.depth*=l}returna}else{thrownewh("Got group of unknown type: '"+e.type+"'")}};vary=function(e,t){e=JSON.parse(JSON.stringify(e));vari=o(e,t);varh=n(["base",t.style.cls()],i);vara=n(["strut"]);varr=n(["strut","bottom"]);a.style.height=h.height+"em";r.style.height=h.height+h.depth+"em";r.style.verticalAlign=-h.depth+"em";varl=n(["katex-html"],[a,r,h]);l.setAttribute("aria-hidden","true");returnl};t.exports=y},{"./ParseError":5,"./Style":8,"./buildCommon":9,"./delimiter":13,"./domTree":14,"./fontMetrics":16,"./utils":23}],11:[function(e,t,i){varh=e("./buildCommon");vara=e("./fontMetrics");varr=e("./mathMLTree");varl=e("./ParseError");vars=e("./symbols");varp=e("./utils");varc=h.makeSpan;varn=h.fontMap;varo=function(e,t){if(s[t][e]&&s[t][e].replace){e=s[t][e].replace}returnnewr.TextNode(e)};varg=function(e,t){vari=t.font;if(!i){returnnull}varh=e.mode;if(i==="mathit"){return"italic"}varr=e.value;if(p.contains(["\\imath","\\jmath"],r)){returnnull}if(s[h][r]&&s[h][r].replace){r=s[h][r].replace}varl=n[i].fontName;if(a.getCharacterMetrics(r,l)){returnn[t.font].variant}returnnull};vard={mathord:function(e,t){vari=newr.MathNode("mi",[o(e.value,e.mode)]);varh=g(e,t);if(h){i.setAttribute("mathvariant",h)}returni},textord:function(e,t){vari=o(e.value,e.mode);varh=g(e,t)||"normal";vara;if(/[0-9]/.test(e.value)){a=newr.MathNode("mn",[i]);if(t.font){a.setAttribute("mathvariant",h)}}else{a=newr.MathNode("mi",[i]);a.setAttribute("mathvariant",h)}returna},bin:f