(function(b,c){vara;b.Parse=MathJax.Object.Subclass({Init:function(d){this.Parse(d)},Parse:function(f){varg;if(typeoff!=="string"){g=f.parentNode}else{if(f.match(/^<[a-z]+:/i)&&!f.match(/^<[^<>]* xmlns:/)){f=f.replace(/^<([a-z]+)(:math)/i,'<$1$2 xmlns:$1="http://www.w3.org/1998/Math/MathML"')}f=f.replace(/^\s*(?:\/\/)?<!(--)?\[CDATA\[((.|\n)*)(\/\/)?\]\]\1>\s*$/,"$2");f=f.replace(/&([a-z]+);/ig,this.replaceEntity);g=b.ParseXML(f);if(g==null){b.Error("Error parsing MathML")}}vare=g.getElementsByTagName("parsererror")[0];if(e){b.Error("Error parsing MathML: "+e.textContent.replace(/This page.*?errors:|XML Parsing Error: |Below is a rendering of the page.*/g,""))}if(g.childNodes.length!==1){b.Error("MathML must be formed by a single element")}if(g.firstChild.nodeName.toLowerCase()==="html"){vard=g.getElementsByTagName("h1")[0];if(d&&d.textContent==="XML parsing error"&&d.nextSibling){b.Error("Error parsing MathML: "+String(d.nextSibling.nodeValue).replace(/fatal parsing error: /,""))}}if(g.firstChild.nodeName.toLowerCase().replace(/^[a-z]+:/,"")!=="math"){b.Error("MathML must be formed by a <math> element, not <"+g.firstChild.nodeName+">")}this.mml=this.MakeMML(g.firstChild)},MakeMML:function(g){vark=g.nodeName.toLowerCase().replace(/^[a-z]+:/,"");if(!(a[k]&&a[k].isa&&a[k].isa(a.mbase))){returna.merror("Unknown node type: "+k)}vard=a[k](),j,h,l;for(j=0,h=g.attributes.length;j<h;j++){l=g.attributes[j].value;if(l.toLowerCase()==="true"){l=true}else{if(l.toLowerCase()==="false"){l=false}}d[g.attributes[j].name]=l}for(j=0,h=g.childNodes.length;j<h;j++){vare=g.childNodes[j];if(e.nodeName==="#comment"){continue}if(e.nodeName==="#text"){if(d.isToken&&!d.mmlSelfClosing){varn=this.trimSpace(e.nodeValue);if(d.isa(a.mo)&&n.length===1&&this.Remap[n.charAt(0)]){n=this.Remap[n.charAt(0)]}n=n.replace(/&([a-z]+);/ig,this.replaceEntity);d.Append(a.chars(n))}else{if(e.nodeValue.match(/\S/)){b.Error("Unexpected text node: '"+e.nodeValue+"'")}}}else{varf=this.MakeMML(e);d.Append(f);if(f.mmlSelfClosing&&f.data.length){d.Append.apply(d,f.data);f.data=[]}}}if(b.config.useMathMLspacing){d.useMMLspacing=8}returnd},trimSpace:function(d){returnd.replace(/^[ \t\n\r]+/,"").replace(/[ \t\n\r]+$/,"").replace(/[ \t\n\r][ \t\n\r]+/g," ")},replaceEntity:function(f,e){if(e==="lt"||e==="amp"){returnf}if(b.Parse.Entity[e]){returnb.Parse.Entity[e]}varg=e.charAt(0).toLowerCase();vard=e.match(/^[a-zA-Z](fr|scr|opf)$/);if(d){g=d[1]}if(!b.Parse.loaded[g]){b.Parse.loaded[g]=true;MathJax.Hub.RestartAfter(MathJax.Ajax.Require(b.entityDir+"/"+g+".js"))}returnf},Remap:{"\u0027":"\u2032","\u002A":"\u2217","\u002D":"\u2212"}},{loaded:[]});b.Augment({Translate:function(d){vare,g;if(d.firstChild&&d.firstChild.nodeName.toLowerCase().replace(/^[a-z]+:/,"")==="math"){g=this.prefilterMathML(d.firstChild)}else{g=d.innerHTML.replace(/^\s+/,"").replace(/\s+$/,"");if(c.isMSIE){g=g.replace(/( )+$/,"")}else{if(c.isKonqueror){g=g.replace(/</g,"<").replace(/>/g,">").replace(/&/g,"&")}}g=this.prefilterMath(g,d)}try{e=b.Parse(g).mml}catch(f){if(!f.mathmlError){throwf}e=this.formatError(f,g,d)}returna(e)},prefilterMath:function(e,d){returne},prefilterMathML:function(d){returnd},formatError:function(f,e,d){returna.merror(f.message.replace(/\n.*/,""))},Error:function(d){throwMathJax.Hub.Insert(Error(d),{mathmlError:true})},parseDOM:function(d){returnthis.parser.parseFromString(d,"text/xml")},parseMS:function(d){return(this.parser.loadXML(d)?this.parser:null)},parseDIV:function(d){this.div.innerHTML=d.replace(/<([a-z]+)([^>]*)\/>/g,"<$1$2></$1>");returnthis.div},Startup:function(){a=MathJax.ElementJax.mml;a.mspace.Augment({mmlSelfClosing:true});a.none.Augment({mmlSelfClosing:true});a.mprescripts.Augment({mmlSelfClossing:true});if(window.DOMParser){this.parser=newDOMParser();this.ParseXML=this.parseDOM}else{if(window.ActiveXObject){vare=["MSXML2.DOMDocument.6.0","MSXML2.DOMDocument.5.0","MSXML2.DOMDocument.4.0","MSXML2.DOMDocument.3.0","MSXML2.DOMDocument.2.0","Microsoft.XMLDOM"];for(varf=0,d=e.length;f<d&&!this.parser;f++){try{this.parser=newAct