/* * /MathJax/config/MML_HTMLorMML-full.js * * Copyright (c) 2010-2013 The MathJax Consortium * * Part of the MathJax library. * See http://www.mathjax.org for details. * * Licensed under the Apache License, Version 2.0; * you may not use this file except in compliance with the License. * * http://www.apache.org/licenses/LICENSE-2.0 */MathJax.Hub.Config({delayJaxRegistration:!0});MathJax.Ajax.Preloading("[MathJax]/jax/input/MathML/config.js","[MathJax]/jax/output/HTML-CSS/config.js","[MathJax]/jax/output/NativeMML/config.js","[MathJax]/config/MMLorHTML.js","[MathJax]/extensions/mml2jax.js","[MathJax]/extensions/MathEvents.js","[MathJax]/extensions/MathZoom.js","[MathJax]/extensions/MathMenu.js","[MathJax]/jax/element/mml/jax.js","[MathJax]/extensions/toMathML.js","[MathJax]/jax/input/MathML/jax.js","[MathJax]/jax/output/NativeMML/jax.js","[MathJax]/jax/output/HTML-CSS/jax.js","[MathJax]/jax/output/HTML-CSS/autoload/mtable.js");MathJax.Hub.Config({"v1.0-compatible":!1});MathJax.InputJax.MathML=MathJax.InputJax({id:"MathML",version:"2.2",directory:MathJax.InputJax.directory+"/MathML",extensionDir:MathJax.InputJax.extensionDir+"/MathML",entityDir:MathJax.InputJax.directory+"/MathML/entities",config:{useMathMLspacing:!1}});MathJax.InputJax.MathML.Register("math/mml");MathJax.InputJax.MathML.loadComplete("config.js");MathJax.OutputJax["HTML-CSS"]=MathJax.OutputJax({id:"HTML-CSS",version:"2.2",directory:MathJax.OutputJax.directory+"/HTML-CSS",extensionDir:MathJax.OutputJax.extensionDir+"/HTML-CSS",autoloadDir:MathJax.OutputJax.directory+"/HTML-CSS/autoload",fontDir:MathJax.OutputJax.directory+"/HTML-CSS/fonts",webfontDir:MathJax.OutputJax.fontDir+"/HTML-CSS",config:{scale:100,minScaleAdjust:50,availableFonts:["STIX","TeX"],preferredFont:"TeX",webFont:"TeX",imageFont:"TeX",undefinedFamily:"STIXGeneral,'Arial Unicode MS',serif",mtextFontInherit:!1,EqnChunk:MathJax.Hub.Browser.isMobile?10:50,EqnChunkFactor:1.5,EqnChunkDelay:100,linebreaks:{automatic:!1,width:"container"},styles:{".MathJax_Display":{"text-align":"center",margin:"1em 0em"},".MathJax .merror":{"background-color":"#FFFF88",color:"#CC0000",border:"1px solid #CC0000",padding:"1px 3px","font-style":"normal","font-size":"90%"},"#MathJax_Tooltip":{"background-color":"InfoBackground",color:"InfoText",border:"1px solid black","box-shadow":"2px 2px 5px #AAAAAA","-webkit-box-shadow":"2px 2px 5px #AAAAAA","-moz-box-shadow":"2px 2px 5px #AAAAAA","-khtml-box-shadow":"2px 2px 5px #AAAAAA",filter:"progid:DXImageTransform.Microsoft.dropshadow(OffX\x3d2, OffY\x3d2, Color\x3d'gray', Positive\x3d'true')",padding:"3px 4px","z-index":401}}}});MathJax.Hub.Browser.isMSIE&&9<=document.documentMode&&delete MathJax.OutputJax["HTML-CSS"].config.styles["#MathJax_Tooltip"].filter;MathJax.Hub.config.delayJaxRegistration||MathJax.OutputJax["HTML-CSS"].Register("jax/mml");MathJax.Hub.Register.StartupHook("End Config",[function(c,f){var b=c.Insert({minBrowserVersion:{Firefox:3,Opera:9.52,MSIE:6,Chrome:.3,Safari:2,Konqueror:4},inlineMathDelimiters:["$","$"],displayMathDelimiters:["$$","$$"],multilineDisplay:!0,minBrowserTranslate:function(k){var p=c.getJaxFor(k),f=["[Math]"],m=document.createElement("span",{className:"MathJax_Preview"});"TeX"===p.inputJax&&(p.root.Get("displaystyle")?(f=b.displayMathDelimiters,f=[f[0]+p.originalText+f[1]],b.multilineDisplay&&(f=f[0].split(/\n/))):(f=b.inlineMathDelimiters,f=[f[0]+p.originalText.replace(/^\s+/,"").replace(/\s+$/,"")+f[1]]));for(var p=0,q=f.length;p/i,"").replace(/<\?xml:namespace .*?\/>/i,""),k=k.replace(/ /g,"\x26#xA0;"));MathJax.HTML.setScript(b,k);f.removeChild(c)}else f=MathJax.HTML.Element("span"),f.appendChild(c),MathJax.HTML.setScript(b,f.innerHTML);"none"!==this.config.preview&&this.createPreview(c,b)},ProcessMathFlattened:function(c){var f=c.parentNode,b=document.createElement("script");b.type="math/mml";f.insertBefore(b,c);for(var f="",k,p=c;c&&"/MATH"!==c.nodeName;)k=c,c=c.nextSibling,f+=this.NodeHTML(k),k.parentNode.removeChild(k);c&&"/MATH"===c.nodeName&&c.parentNode.removeChild(c);b.text=f+"\x3c/math\x3e";"none"!==this.config.preview&&this.createPreview(p,b)},NodeHTML:function(c){var f,b,k;if("#text"===c.nodeName)f=this.quoteHTML(c.nodeValue);else if("#comment"===c.nodeName)f="\x3c!--"+c.nodeValue+"--\x3e";else{f="\x3c"+c.nodeName.toLowerCase();b=0;for(k=c.attributes.length;b|\/>)$/)){b=0;for(k=c.childNodes.length;b/g,"\x26gt;").replace(/\"/g,"\x26quot;")},createPreview:function(c,f){var b=this.config.preview;"none"!==b&&("alttext"===b&&(b=c.getAttribute("alttext"),b=null!=b?[this.filterPreview(b)]:null),b&&(b=MathJax.HTML.Element("span",{className:MathJax.Hub.config.preRemoveClass},b),f.parentNode.insertBefore(b,f)))},filterPreview:function(c){return c},InitBrowser:function(){var c=MathJax.HTML.Element("span",{id:"\x3c",className:"mathjax",innerHTML:"\x3cmath\x3e\x3cmi\x3ex\x3c/mi\x3e\x3cmspace /\x3e\x3c/math\x3e"}),f=c.outerHTML||"";this.AttributeBug=""!==f&&!(f.match(/id="<"/)&&f.match(/class="mathjax"/)&&f.match(/<\/math>/));this.MathTagBug=1Math.abs(a)?"0px":a.toFixed(2).replace(/\.?0+$/,"")+"px"},getImages:function(){(new Image).src=h.button.src}},e=n.Touch={last:0,delay:500,start:function(a){var h=(new Date).getTime(),d=h-e.lasth;9>h&&(d.LEFTBUTTON=1)},Safari:function(a){n.safariContextMenuBug=!0},Opera:function(a){n.operaPositionBug=!0},Konqueror:function(a){n.noContextMenuBug=!0}});n.topImg=n.msieAlignBug?f.Element("img",{style:{width:0,height:0,position:"relative"},src:"about:blank"}):f.Element("span",{style:{width:0,height:0,display:"inline-block"}});n.operaPositionBug&&(n.topImg.style.border="1px solid");n.config=h=c.CombineConfig("MathEvents",h);k.Queue(c.Register.StartupHook("End Config",{}),[function(){var a=h.styles[".MathJax_Hover_Frame"];a.border=h.frame.bwidth+"px solid "+h.frame.bcolor+" ! important";a["box-shadow"]=a["-webkit-box-shadow"]=a["-moz-box-shadow"]=a["-khtml-box-shadow"]="0px 0px "+h.frame.hwidth+" "+h.frame.hcolor}],["getImages",u],["Styles",b,h.styles],["Post",c.Startup.signal,"MathEvents Ready"],["loadComplete",b,"[MathJax]/extensions/MathEvents.js"])})(MathJax.Hub,MathJax.HTML,MathJax.Ajax,MathJax.Callback,MathJax.Localization,MathJax.OutputJax,MathJax.InputJax);(function(c,f,b,k,p){var l=c.CombineConfig("MathZoom",{styles:{"#MathJax_Zoom":{position:"absolute","background-color":"#F0F0F0",overflow:"auto",display:"block","z-index":301,padding:".5em",border:"1px solid black",margin:0,"font-weight":"normal","font-style":"normal","text-align":"left","text-indent":0,"text-transform":"none","line-height":"normal","letter-spacing":"normal","word-spacing":"normal","word-wrap":"normal","white-space":"nowrap","float":"none","box-shadow":"5px 5px 15px #AAAAAA","-webkit-box-shadow":"5px 5px 15px #AAAAAA","-moz-box-shadow":"5px 5px 15px #AAAAAA","-khtml-box-shadow":"5px 5px 15px #AAAAAA",filter:"progid:DXImageTransform.Microsoft.dropshadow(OffX\x3d2, OffY\x3d2, Color\x3d'gray', Positive\x3d'true')"},"#MathJax_ZoomOverlay":{position:"absolute",left:0,top:0,"z-index":300,display:"inline-block",width:"100%",height:"100%",border:0,padding:0,margin:0,"background-color":"white",opacity:0,filter:"alpha(opacity\x3d0)"},"#MathJax_ZoomFrame":{position:"relative",display:"inline-block",height:0,width:0},"#MathJax_ZoomEventTrap":{position:"absolute",left:0,top:0,"z-index":302,display:"inline-block",border:0,padding:0,margin:0,"background-color":"white",opacity:0,filter:"alpha(opacity\x3d0)"}}}),m,q,n;MathJax.Hub.Register.StartupHook("MathEvents Ready",function(){n=MathJax.Extension.MathEvents.Event;m=MathJax.Extension.MathEvents.Event.False;q=MathJax.Extension.MathEvents.Hover});var a=MathJax.Extension.MathZoom={version:"2.2",settings:c.config.menuSettings,scrollSize:18,HandleEvent:function(h,d,b){return a.settings.CTRL&&!h.ctrlKey||a.settings.ALT&&!h.altKey||a.settings.CMD&&!h.metaKey||a.settings.Shift&&!h.shiftKey||!a[d]?!0:a[d](h,b)},Click:function(a,d){if("Click"===this.settings.zoom)return this.Zoom(a,d)},DblClick:function(a,d){if("Double-Click"===this.settings.zoom)return this.Zoom(a,d)},Hover:function(a,d){return"Hover"===this.settings.zoom?(this.Zoom(a,d),!0):!1},Zoom:function(a,d){this.Remove();q.ClearHoverTimer();n.ClearSelection();var b=MathJax.OutputJax[d.jaxID],e=b.getJaxFromMath(d);e.hover&&q.UnHover(e);var g=Math.floor(.85*document.body.clientWidth),t=Math.floor(.85*Math.max(document.body.clientHeight,document.documentElement.clientHeight)),v=f.Element("span",{id:"MathJax_ZoomFrame"},[["span",{id:"MathJax_ZoomOverlay",onmousedown:this.Remove}],["span",{id:"MathJax_Zoom",onclick:this.Remove,style:{visibility:"hidden",fontSize:this.settings.zscale,"max-width":g+"px","max-height":t+"px"}},[["span",{style:{display:"inline-block","white-space":"nowrap"}}]]]]),k=v.lastChild,p=k.firstChild,r=v.firstChild;d.parentNode.insertBefore(v,d);d.parentNode.insertBefore(d,v);p.addEventListener&&p.addEventListener("mousedown",this.Remove,!0);if(this.msieTrapEventBug){var B=f.Element("span",{id:"MathJax_ZoomEventTrap",onmousedown:this.Remove});v.insertBefore(B,k)}this.msieZIndexBug&&(f.addElement(document.body,"img",{src:"about:blank",id:"MathJax_ZoomTracker",width:0,height:0,style:{width:0,height:0,position:"relative"}}),v.style.position="relative",v.style.zIndex=l.styles["#MathJax_ZoomOverlay"]["z-index"]);b=b.Zoom(e,p,d,g,t);this.msiePositionBug&&(this.msieSizeBug&&(k.style.height=b.zH+"px",k.style.width=b.zW+"px"),k.offsetHeight>t&&(k.style.height=t+"px",k.style.width=b.zW+this.scrollSize+"px"),k.offsetWidth>g&&(k.style.width=g+"px",k.style.height=b.zH+this.scrollSize+"px"));this.operaPositionBug&&(k.style.width=Math.min(g,b.zW)+"px");k.offsetWidth&&k.offsetWidth=d;a.msieInlineBlockAlignBug=7>=d;a.msieTrapEventBug=!window.addEventListener;"BackCompat"===document.compatMode&&(a.scrollSize=52);b&&delete l.styles["#MathJax_Zoom"].filter},Opera:function(h){a.operaPositionBug=!0;a.operaRefreshBug=!0}});a.topImg=a.msieInlineBlockAlignBug?f.Element("img",{style:{width:0,height:0,position:"relative"},src:"about:blank"}):f.Element("span",{style:{width:0,height:0,display:"inline-block"}});if(a.operaPositionBug||a.msieTopBug)a.topImg.style.border="1px solid";MathJax.Callback.Queue(["StartupHook",MathJax.Hub.Register,"Begin Styles",{}],["Styles",b,l.styles],["Post",c.Startup.signal,"MathZoom Ready"],["loadComplete",b,"[MathJax]/extensions/MathZoom.js"])})(MathJax.Hub,MathJax.HTML,MathJax.Ajax,MathJax.OutputJax["HTML-CSS"],MathJax.OutputJax.NativeMML);(function(c,f,b,k,p){var l=MathJax.Callback.Signal("menu");MathJax.Extension.MathMenu={version:"2.2",signal:l};var m=function(a){return MathJax.Localization._.apply(MathJax.Localization,[["MathMenu",a]].concat([].slice.call(arguments,1)))},q=c.Browser.isPC,n=c.Browser.isMSIE,a=8<(document.documentMode||0),h=q?null:"5px",d=c.CombineConfig("MathMenu",{delay:150,closeImg:b.fileURL(p.imageDir+"/CloseX-31.png"),showRenderer:!0,showMathPlayer:!0,showFontMenu:!1,showContext:!1,showDiscoverable:!1,showLocale:!0,showLocaleURL:!1,windowSettings:{status:"no",toolbar:"no",locationbar:"no",menubar:"no",directories:"no",personalbar:"no",resizable:"yes",scrollbars:"yes",width:400,height:300,left:Math.round((screen.width-400)/2),top:Math.round((screen.height-300)/3)},styles:{"#MathJax_About":{position:"fixed",left:"50%",width:"auto","text-align":"center",border:"3px outset",padding:"1em 2em","background-color":"#DDDDDD",color:"black",cursor:"default","font-family":"message-box","font-size":"120%","font-style":"normal","text-indent":0,"text-transform":"none","line-height":"normal","letter-spacing":"normal","word-spacing":"normal","word-wrap":"normal","white-space":"nowrap","float":"none","z-index":201,"border-radius":"15px","-webkit-border-radius":"15px","-moz-border-radius":"15px","-khtml-border-radius":"15px","box-shadow":"0px 10px 20px #808080","-webkit-box-shadow":"0px 10px 20px #808080","-moz-box-shadow":"0px 10px 20px #808080","-khtml-box-shadow":"0px 10px 20px #808080",filter:"progid:DXImageTransform.Microsoft.dropshadow(OffX\x3d2, OffY\x3d2, Color\x3d'gray', Positive\x3d'true')"},".MathJax_Menu":{position:"absolute","background-color":"white",color:"black",width:"auto",padding:q?"2px":"5px 0px",border:"1px solid #CCCCCC",margin:0,cursor:"default",font:"menu","text-align":"left","text-indent":0,"text-transform":"none","line-height":"normal","letter-spacing":"normal","word-spacing":"normal","word-wrap":"normal","white-space":"nowrap","float":"none","z-index":201,"border-radius":h,"-webkit-border-radius":h,"-moz-border-radius":h,"-khtml-border-radius":h,"box-shadow":"0px 10px 20px #808080","-webkit-box-shadow":"0px 10px 20px #808080","-moz-box-shadow":"0px 10px 20px #808080","-khtml-box-shadow":"0px 10px 20px #808080",filter:"progid:DXImageTransform.Microsoft.dropshadow(OffX\x3d2, OffY\x3d2, Color\x3d'gray', Positive\x3d'true')"},".MathJax_MenuItem":{padding:q?"2px 2em":"1px 2em",background:"transparent"},".MathJax_MenuArrow":{position:"absolute",right:".5em",color:"#666666","font-family":n?"'Arial unicode MS'":null},".MathJax_MenuActive .MathJax_MenuArrow":{color:"white"},".MathJax_MenuCheck":{position:"absolute",left:".7em","font-family":n?"'Arial unicode MS'":null},".MathJax_MenuRadioCheck":{position:"absolute",left:q?"1em":".7em"},".MathJax_MenuLabel":{padding:q?"2px 2em 4px 1.33em":"1px 2em 3px 1.33em","font-style":"italic"},".MathJax_MenuRule":{"border-top":q?"1px solid #CCCCCC":"1px solid #DDDDDD",margin:q?"4px 1px 0px":"4px 3px"},".MathJax_MenuDisabled":{color:"GrayText"},".MathJax_MenuActive":{"background-color":q?"Highlight":"#606872",color:q?"HighlightText":"white"},".MathJax_Menu_Close":{position:"absolute",width:"31px",height:"31px",top:"-15px",left:"-15px"}}}),u,e;c.Register.StartupHook("MathEvents Ready",function(){u=MathJax.Extension.MathEvents.Event.False;e=MathJax.Extension.MathEvents.Hover});var g=MathJax.Menu=MathJax.Object.Subclass({version:"2.2",items:[],posted:!1,title:null,margin:5,Init:function(a){this.items=[].slice.call(arguments,0)},With:function(a){a&&c.Insert(this,a);return this},Post:function(a,h){a||(a=window.event);var b=document.getElementById("MathJax_MenuFrame");b||(b=g.Background(this),delete t.lastItem,delete t.lastMenu,delete g.skipUp,l.Post(["post",g.jax]));var e=f.addElement(b,"div",{onmouseup:g.Mouseup,ondblclick:u,ondragstart:u,onselectstart:u,oncontextmenu:u,menuItem:this,className:"MathJax_Menu"});MathJax.Localization.setCSS(e);for(var c=0,k=this.items.length;cdocument.body.offsetWidth-this.margin&&!g.isMobile&&(p="right",c=Math.max(this.margin,c-m-e.offsetWidth+6));q||(e.style["borderRadiusTop"+p]=0,e.style["WebkitBorderRadiusTop"+p]=0,e.style["MozBorderRadiusTop"+p]=0,e.style["KhtmlBorderRadiusTop"+p]=0)}else c+e.offsetWidth>document.body.offsetWidth-this.margin&&(c=document.body.offsetWidth-e.offsetWidth-this.margin),g.isMobile&&(c=Math.max(5,c-Math.floor(e.offsetWidth/2)),k-=20),g.skipUp=a.isContextMenu;e.style.left=c+"px";e.style.top=k+"px";document.selection&&document.selection.empty&&document.selection.empty();return u(a)},Remove:function(a,h){l.Post(["unpost",g.jax]);var d=document.getElementById("MathJax_MenuFrame");d&&(d.parentNode.removeChild(d),this.msieFixedPositionBug&&detachEvent("onresize",g.Resize));g.jax.hover&&(delete g.jax.hover.nofade,e.UnHover(g.jax));return u(a)},Find:function(a){return this.FindN(1,a,[].slice.call(arguments,1))},FindId:function(a){return this.FindN(0,a,[].slice.call(arguments,1))},FindN:function(a,h,d){for(var g=0,b=this.items.length;g/g,"\x26gt;");var b=m("EqSource","MathJax Equation Source");if(g.isMobile)d.document.open(),d.document.write("\x3chtml\x3e\x3chead\x3e\x3cmeta name\x3d'viewport' content\x3d'width\x3ddevice-width, initial-scale\x3d1.0' /\x3e\x3ctitle\x3e"+b+"\x3c/title\x3e\x3c/head\x3e\x3cbody style\x3d'font-size:85%'\x3e"),d.document.write("\x3cpre\x3e"+a+"\x3c/pre\x3e"),d.document.write("\x3chr\x3e\x3cinput type\x3d'button' value\x3d'"+m("Close","Close")+"' onclick\x3d'window.close()' /\x3e"),d.document.write("\x3c/body\x3e\x3c/html\x3e"),d.document.close();else{d.document.open();d.document.write("\x3chtml\x3e\x3chead\x3e\x3ctitle\x3e"+b+"\x3c/title\x3e\x3c/head\x3e\x3cbody style\x3d'font-size:85%'\x3e");d.document.write("\x3ctable\x3e\x3ctr\x3e\x3ctd\x3e\x3cpre\x3e"+a+"\x3c/pre\x3e\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e");d.document.write("\x3c/body\x3e\x3c/html\x3e");d.document.close();var e=d.document.body.firstChild;setTimeout(function(){var a=d.outerHeight-d.innerHeight||30,b=d.outerWidth-d.innerWidth||30,b=Math.max(100,Math.min(Math.floor(.5*screen.width),e.offsetWidth+b+25)),a=Math.max(40,Math.min(Math.floor(.5*screen.height),e.offsetHeight+a+25));d.resizeTo(b,a);h&&null!=h.screenX&&(b=Math.max(0,Math.min(h.screenX-Math.floor(b/2),screen.width-b-20)),a=Math.max(0,Math.min(h.screenY-Math.floor(a/2),screen.height-a-20)),d.moveTo(b,a))},50)}};g.Scale=function(){var a=p["HTML-CSS"],h=p.NativeMML,d=p.SVG,b=(a||h||d||{config:{scale:100}}).config.scale,e=prompt(m("ScaleMath","Scale all mathematics (compared to surrounding text) by"),b+"%");e&&(e.match(/^\s*\d+(\.\d*)?\s*%?\s*$/)?(e=parseFloat(e))?e!==b&&(a&&(a.config.scale=e),h&&(h.config.scale=e),d&&(d.config.scale=e),g.cookie.scale=e,g.saveCookie(),c.Reprocess()):alert(m("NonZeroScale","The scale should not be zero")):alert(m("PercentScale","The scale should be a percentage (e.g., 120%%)")))};g.Zoom=function(){MathJax.Extension.MathZoom||b.Require("[MathJax]/extensions/MathZoom.js")};g.Renderer=function(){var h=c.outputJax["jax/mml"];if(h[0]!==d.settings.renderer){var b=c.Browser,e,k=g.Renderer.Messages,u;switch(d.settings.renderer){case "NativeMML":d.settings.warnedMML||(b.isChrome&&"24."!==b.version.substr(0,3)?e=k.MML.WebKit:b.isSafari&&!b.versionAtLeast("5.0")?e=k.MML.WebKit:b.isMSIE?b.hasMathPlayer||(e=k.MML.MSIE):e=k.MML[b],u="warnedMML");break;case "SVG":d.settings.warnedSVG||!b.isMSIE||a||(e=k.SVG.MSIE)}if(e){e=m(e[0],e[1]);e=e+"\n\n"+m("SwitchAnyway","Switch the renderer anyway?\n\n(Press OK to switch, CANCEL to continue with the current renderer)");g.cookie.renderer=h[0].id;g.saveCookie();if(!confirm(e)){g.cookie.renderer=d.settings.renderer=f.Cookie.Get("menu").renderer;g.saveCookie();return}u&&(g.cookie.warned=d.settings.warned=!0);g.cookie.renderer=d.settings.renderer;g.saveCookie()}c.Queue(["setRenderer",c,d.settings.renderer,"jax/mml"],["Rerender",c])}};g.Renderer.Messages={MML:{WebKit:["WebkitNativeMMLWarning","Your browser doesn't seem to support MathML natively, so switching to MathML output may cause the mathematics on the page to become unreadable."],MSIE:["MSIENativeMMLWarning","Internet Explorer requires the MathPlayer plugin in order to process MathML output."],Opera:["OperaNativeMMLWarning","Opera's support for MathML is limited, so switching to MathML output may cause some expressions to render poorly."],Safari:["SafariNativeMMLWarning","Your browser's native MathML does not implement all the features used by MathJax, so some expressions may not render properly."],Firefox:["FirefoxNativeMMLWarning","Your browser's native MathML does not implement all the features used by MathJax, so some expressions may not render properly."]},SVG:{MSIE:["MSIESVGWarning","SVG is not implemented in Internet Explorer prior to IE9 or when it is emulating IE8 or below. Switching to SVG output will cause the mathematics to not display properly."]}};g.Font=function(){p["HTML-CSS"]&&document.location.reload()};g.Locale=function(){MathJax.Localization.setLocale(d.settings.locale);MathJax.Hub.Queue(["Reprocess",MathJax.Hub])};g.LoadLocale=function(){var a=prompt(m("LoadURL","Load translation data from this URL:"));a&&(a.match(/\.js$/)||alert(m("BadURL","The URL should be for a javascript file that defines MathJax translation data. Javascript file names should end with '.js'")),b.Require(a,function(h){h!=b.STATUS.OK&&alert(m("BadData","Failed to load translation data from %1",a))}))};g.MPEvents=function(h){var b=d.settings.discoverable,e=g.MPEvents.Messages;a?!b&&"Menu Events"===h.name[1]&&d.settings.mpContext&&alert(m.apply(m,e.IE9warning)):d.settings.mpMouse&&!confirm(m.apply(m,e.IE8warning))?(delete g.cookie.mpContext,delete d.settings.mpContext,delete g.cookie.mpMouse,delete d.settings.mpMouse,g.saveCookie()):(d.settings.mpContext=d.settings.mpMouse,g.cookie.mpContext=g.cookie.mpMouse=d.settings.mpMouse,g.saveCookie(),MathJax.Hub.Queue(["Rerender",MathJax.Hub]))};g.MPEvents.Messages={IE8warning:["IE8warning","This will disable the MathJax menu and zoom features, but you can Alt-Click on an expression to obtain the MathJax menu instead.\n\nReally change the MathPlayer settings?"],IE9warning:["IE9warning","The MathJax contextual menu will be disabled, but you can Alt-Click on an expression to obtain the MathJax menu instead."]};c.Browser.Select({MSIE:function(h){var b="BackCompat"===document.compatMode;h=h.versionAtLeast("8.0")&&7document.documentMode,msieFixedPositionBug:b||!h,msieAboutBug:b});a&&(delete d.styles["#MathJax_About"].filter,delete d.styles[".MathJax_Menu"].filter)},Firefox:function(a){g.skipMouseover=a.isMobile&&a.versionAtLeast("6.0");g.skipMousedown=a.isMobile}});g.isMobile=c.Browser.isMobile;g.noContextMenu=c.Browser.noContextMenu;g.CreateLocaleMenu=function(){if(g.menu){var a=g.menu.Find("Language").menu,h=a.items,d=[],b=MathJax.Localization.strings,e;for(e in b)b.hasOwnProperty(e)&&d.push(e);d=d.sort();a.items=[];e=0;for(var c=d.length;eb.charCodeAt(0)?c.VARIANT.ITALIC:c.VARIANT.NORMAL):""},setTeXclass:function(b){this.getPrevClass(b);b=this.data.join("");1f&&(f=(f-55296<<10)+(b.charCodeAt(1)-56320)+65536);for(var l=0,m=this.RANGES.length;l=b)return String.fromCharCode(b);b-=65536;return String.fromCharCode((b>>10)+55296)+String.fromCharCode((b&1023)+56320)}});c.xml=c.mbase.Subclass({type:"xml",Init:function(){this.div=document.createElement("div");return this.SUPER(arguments).Init.apply(this,arguments)},Append:function(){for(var b=0,c=arguments.length;b=p||57344<=p)32>p||126]* xmlns:/)&&(b=b.replace(/^<([a-z]+)(:math)/i,'\x3c$1$2 xmlns:$1\x3d"http://www.w3.org/1998/Math/MathML"'));var c=b.match(/^(])+)>)/i);c&&c[2].match(/ (?!xmlns=)[a-z]+=\"http:/i)&&(b=c[1].replace(/ (?!xmlns=)([a-z]+=(['"])http:.*?\2)/ig," xmlns:$1 $1")+b.substr(c[0].length));b.match(/^]* xmlns=/)&&(b=b.replace(/^<(math)/i,'\x3cmath xmlns\x3d"http://www.w3.org/1998/Math/MathML"'));b=b.replace(/^\s*(?:\/\/)?\s*$/,"$2");return b.replace(/&([a-z][a-z0-9]*);/ig,this.replaceEntity)},trimSpace:function(b){return b.replace(/[\t\n\r]/g," ").replace(/^ +/,"").replace(/ +$/,"").replace(/ +/g," ")},replaceEntity:function(b,f){if(f.match(/^(lt|amp|quot)$/))return b;if(c.Parse.Entity[f])return c.Parse.Entity[f];var k=f.charAt(0).toLowerCase(),q=f.match(/^[a-zA-Z](fr|scr|opf)$/);q&&(k=q[1]);c.Parse.loaded[k]||(c.Parse.loaded[k]=!0,MathJax.Hub.RestartAfter(MathJax.Ajax.Require(c.entityDir+"/"+k+".js")));return b}},{loaded:[]});c.Augment({sourceMenuTitle:["OriginalMathML","Original MathML"],prefilterHooks:MathJax.Callback.Hooks(!0),postfilterHooks:MathJax.Callback.Hooks(!0),Translate:function(k){this.ParseXML||(this.ParseXML=this.createParser());var l,m,q={script:k};k.firstChild&&"math"===k.firstChild.nodeName.toLowerCase().replace(/^[a-z]+:/,"")?q.math=k.firstChild:(m=MathJax.HTML.getScript(k),f.isMSIE&&(m=m.replace(/( )+$/,"")),q.math=m);this.prefilterHooks.Execute(q);m=q.math;try{l=c.Parse(m).mml}catch(n){if(!n.mathmlError)throw n;l=this.formatError(n,m,k)}q.math=b(l);this.postfilterHooks.Execute(q);return q.math},prefilterMath:function(b,c){return b},prefilterMathML:function(b,c){return b},formatError:function(c,f,k){c=c.message.replace(/\n.*/,"");MathJax.Hub.signal.Post(["MathML Jax - parse error",c,f,k]);return b.merror(c)},Error:function(b){b instanceof Array&&(b=k.apply(k,b));throw MathJax.Hub.Insert(Error(b),{mathmlError:!0});},parseDOM:function(b){return this.parser.parseFromString(b,"text/xml")},parseMS:function(b){return this.parser.loadXML(b)?this.parser:null},parseDIV:function(b){this.div.innerHTML=b.replace(/<([a-z]+)([^>]*)\/>/g,"\x3c$1$2\x3e\x3c/$1\x3e");return this.div},parseError:function(b){return null},createMSParser:function(){for(var b=null,c="MSXML2.DOMDocument.6.0 MSXML2.DOMDocument.5.0 MSXML2.DOMDocument.4.0 MSXML2.DOMDocument.3.0 MSXML2.DOMDocument.2.0 Microsoft.XMLDOM".split(" "),f=0,k=c.length;fd&&(d=k,b.style.width=d+"px")}this.msieIE8HeightBug&&(b.style.position="");return{Y:-m.getBBox(b.parentNode).h,mW:a,mH:h,zW:d,zH:f}},NAMEDSPACE:{negativeveryverythinmathspace:"-.0556em",negativeverythinmathspace:"-.1111em",negativethinmathspace:"-.1667em",negativemediummathspace:"-.2222em",negativethickmathspace:"-.2778em",negativeverythickmathspace:"-.3333em",negativeveryverythickmathspace:"-.3889em"}});f.Register.StartupHook("mml Jax Ready",function(){p=MathJax.ElementJax.mml;p.mbase.Augment({toNativeMML:function(a){var b=this.NativeMMLelement(this.type);this.NativeMMLattributes(b);for(var h=0,d=this.data.length;h=b.HTMLCSSlast+b.HTMLCSSchunk&&(this.postTranslate(b),b.HTMLCSSchunk=Math.floor(b.HTMLCSSchunk*this.config.EqnChunkFactor),b.HTMLCSSdelay=!0))}},postTranslate:function(a){var b=a.jax[this.id];if(this.hideProcessedMath){for(var d=a.HTMLCSSlast,c=a.HTMLCSSeqn;db&&this.msieNegativeBBoxBug)b=-a.offsetWidth,d=a.parentNode.offsetHeight;else{if(this.initialSkipBug){var e=a.style.position;a.style.position="absolute";c=this.startMarker;a.insertBefore(c,a.firstChild)}a.appendChild(this.endMarker);b=this.endMarker.offsetLeft-c.offsetLeft;a.removeChild(this.endMarker);this.initialSkipBug&&(a.removeChild(c),a.style.position=e)}null!=d&&(a.parentNode.HH=d/this.em);return b/this.em},Measured:function(a,b){var d=a.bbox;if(null==d.width&&d.w&&!d.isMultiline){var c=this.getW(a);d.rw+=c-d.w;d.w=c;d.exactW=!0}b||(b=a.parentNode);b.bbox||(b.bbox=d);return a},Remeasured:function(a,b){b.bbox=this.Measured(a,b).bbox},MeasureSpans:function(a){var b=[],d,c,e,g,f;c=0;for(e=a.length;cg.w&&this.msieNegativeBBoxBug?b.push([d]):this.initialSkipBug?(g=this.startMarker.cloneNode(!0),f=this.endMarker.cloneNode(!0),d.insertBefore(g,d.firstChild),d.appendChild(f),b.push([d,g,f,d.style.position]),d.style.position="absolute"):(f=this.endMarker.cloneNode(!0),d.appendChild(f),b.push([d,null,f]));c=0;for(e=b.length;cg.w&&this.msieNegativeBBoxBug?(a=-d.offsetWidth,f.HH=f.offsetHeight/this.em):a=b[c][2].offsetLeft-((b[c][1]||{}).offsetLeft||0),a/=this.em,g.rw+=a-g.w,g.w=a,g.exactW=!0,f.bbox||(f.bbox=g);c=0;for(e=b.length;cMath.abs(a)?"0em":a.toFixed(3).replace(/\.?0+$/,"")+"em"},EmRounded:function(a){a=(Math.round(a*b.em)+.05)/b.em;return 6E-4>Math.abs(a)?"0em":a.toFixed(3).replace(/\.?0+$/,"")+"em"},unEm:function(a){return parseFloat(a)},Px:function(a){a*=this.em;return(0>a?"-":"")+Math.abs(a).toFixed(1).replace(/\.?0+$/,"")+"px"},unPx:function(a){return parseFloat(a)/this.em},Percent:function(a){return(100*a).toFixed(1).replace(/\.?0+$/,"")+"%"},length2em:function(a,h,d){"string"!==typeof a&&(a=a.toString());if(""===a)return"";if(a===k.SIZE.NORMAL)return 1;if(a===k.SIZE.BIG)return 2;if(a===k.SIZE.SMALL)return.71;if("infinity"===a)return b.BIGDIMEN;var c=this.FONTDATA.TeX_factor;if(a.match(/mathspace$/))return b.MATHSPACE[a]*c;var e=a.match(/^\s*([-+]?(?:\.\d+|\d+(?:\.\d*)?))?(pt|em|ex|mu|px|pc|in|mm|cm|%)?/);a=parseFloat(e[1]||"1");e=e[2];null==d&&(d=1);null==h&&(h=1);return"em"===e?a*c:"ex"===e?a*b.TeX.x_height*c:"%"===e?a/100*d:"px"===e?a/b.em:"pt"===e?a/10*c:"pc"===e?1.2*a*c:"in"===e?a*this.pxPerInch/b.em:"cm"===e?a*this.pxPerInch/b.em/2.54:"mm"===e?a*this.pxPerInch/b.em/25.4:"mu"===e?a/18*c*h:a*c*d},thickness2em:function(a,h){var d=b.TeX.rule_thickness;return a===k.LINETHICKNESS.MEDIUM?d:a===k.LINETHICKNESS.THIN?.67*d:a===k.LINETHICKNESS.THICK?1.67*d:this.length2em(a,h,d)},getPadding:function(a){var b={top:0,right:0,bottom:0,left:0},d=!1,c;for(c in b)if(b.hasOwnProperty(c)){var e=a.style["padding"+c.charAt(0).toUpperCase()+c.substr(1)];e&&(b[c]=this.length2em(e),d=!0)}return d?b:!1},getBorders:function(a){var b={top:0,right:0,bottom:0,left:0},d={},c=!1,e;for(e in b)if(b.hasOwnProperty(e)){var g="border"+e.charAt(0).toUpperCase()+e.substr(1);a.style[g+"Style"]&&(c=!0,b[e]=this.length2em(a.style[g+"Width"]),d[g]=[a.style[g+"Width"],a.style[g+"Style"],a.style[g+"Color"]].join(" "))}b.css=d;return c?b:!1},setBorders:function(a,b){if(b)for(var d in b.css)b.css.hasOwnProperty(d)&&(a.style[d]=b.css[d])},createStrut:function(a,b,d){b=this.Element("span",{isMathJax:!0,style:{display:"inline-block",overflow:"hidden",height:b+"px",width:"1px",marginRight:"-1px"}});d?a.insertBefore(b,a.firstChild):a.appendChild(b);return b},createBlank:function(a,b,d){b=this.Element("span",{isMathJax:!0,style:{display:"inline-block",overflow:"hidden",height:"1px",width:this.Em(b)}});d?a.insertBefore(b,a.firstChild):a.appendChild(b);return b},createShift:function(a,b,d){b=this.Element("span",{style:{marginLeft:this.Em(b)},isMathJax:!0});d?a.insertBefore(b,a.firstChild):a.appendChild(b);return b},createSpace:function(a,h,d,c,e,g){h<-d&&(d=-h);var f=this.Em(h+d),v=this.Em(-d);this.msieInlineBlockAlignBug&&(v=this.Em(b.getHD(a.parentNode).d-d));a.isBox||g?(g=null==a.scale?1:a.scale,a.bbox={exactW:!0,h:h*g,d:d*g,w:c*g,rw:c*g,lw:0},a.style.height=f,a.style.verticalAlign=v,a.HH=(h+d)*g):a=this.addElement(a,"span",{style:{height:f,verticalAlign:v},isMathJax:!0});0<=c?(a.style.width=this.Em(c),a.style.display="inline-block",a.style.overflow="hidden"):(this.msieNegativeSpaceBug&&(a.style.height=""),a.style.marginLeft=this.Em(c),b.safariNegativeSpaceBug&&a.parentNode.firstChild==a&&this.createBlank(a,0,!0));e&&e!==k.COLOR.TRANSPARENT&&(a.style.backgroundColor=e,a.style.position="relative");return a},createRule:function(a,h,d,c,e){h<-d&&(d=-h);var g=b.TeX.min_rule_thickness,f=1;0g.lw&&(l=g.lw,b.createBlank(a,-l,!0)),g.rw>g.w&&b.createBlank(a,g.rw-g.w+.1)),!this.msieClipRectBug&&!g.noclip&&!c)){c=3/this.em;var m=null==g.H?g.h:g.H,r=k+(null==g.D?g.d:g.D)+c,p=g.lw-3*c,n=1E3;this.initialSkipBug&&0>g.lw&&(p=-3*c);g.isFixed&&(n=g.width-p);a.style.clip="rect("+this.Em(k-m-c)+" "+this.Em(n)+" "+this.Em(r)+" "+this.Em(p)+")"}a.style.top=this.Em(-d-k);a.style.left=this.Em(h+l);g&&f&&(null!=g.H&&(null==f.H||g.H+d>f.H)&&(f.H=g.H+d),null!=g.D&&(null==f.D||g.D-d>f.D)&&(f.D=g.D-d),g.h+d>f.h&&(f.h=g.h+d),g.d-d>f.d&&(f.d=g.d-d),null!=f.H&&f.H<=f.h&&delete f.H,null!=f.D&&f.D<=f.d&&delete f.D,g.w+h>f.w&&(f.w=g.w+h,null==f.width&&(e.style.width=this.Em(f.w))),g.rw+h>f.rw&&(f.rw=g.rw+h),g.lw+h=d-.01||l==m-1&&!t.stretch){t.HW[l][2]&&(u*=t.HW[l][2]);t.HW[l][3]&&(b=t.HW[l][3]);d=this.addElement(a,"span");this.createChar(d,[b,t.HW[l][1]],u,e);a.bbox=d.bbox;a.offset=.65*a.bbox.w;a.scale=u;return}if(t.stretch)this["extendDelimiter"+t.dir](a,g,t.stretch,u,e)}else a.bbox={h:0,d:0,w:this.TeX.nulldelimiterspace,lw:0},a.bbox.rw=a.bbox.w,this.createSpace(a,a.bbox.h,a.bbox.d,a.bbox.w)},extendDelimiterV:function(a,b,d,c,e){var g=this.createStack(a,!0),f=this.createBox(g),k=this.createBox(g);this.createChar(f,d.top||d.ext,c,e);this.createChar(k,d.bot||d.ext,c,e);var l={bbox:{w:0,lw:0,rw:0}},m=l,r,p=f.bbox.h+f.bbox.d+k.bbox.h+k.bbox.d,n=-f.bbox.h;this.placeBox(f,0,n,!0);n-=f.bbox.d;d.mid&&(m=this.createBox(g),this.createChar(m,d.mid,c,e),p+=m.bbox.h+m.bbox.d);d.min&&bp){l=this.Element("span");this.createChar(l,d.ext,c,e);r=l.bbox.h+l.bbox.d;var q=r-.05,z,y,D=d.mid?2:1;y=z=Math.min(Math.ceil((b-p)/(D*q)),this.maxStretchyParts);d.fullExtenders||(q=(b-p)/(D*z));b=z/(z+1)*(r-q);q=r-b;for(n+=b+q-l.bbox.h;0p){r=l.bbox.rw-l.bbox.lw;var q=r-.05,z,y,D=d.mid?2:1;y=z=Math.min(Math.ceil((b-p)/(D*q)),this.maxStretchyParts);d.fillExtenders||(q=(b-p)/(D*z));b=z/(z+1)*(r-q);q=r-b;for(n-=l.bbox.lw+b;0a.bbox.h&&(a.bbox.h=0));b[5]&&(a.bbox.h+=b[5]);b[6]&&(a.bbox.d+=b[6]);this.AccentBug&&0===a.bbox.w&&(e.firstChild.nodeValue+=this.NBSP)},positionDelimiter:function(a,c){c-=a.bbox.h;a.bbox.d-=c;a.bbox.h+=c;c&&(this.safariVerticalAlignBug||this.konquerorVerticalAlignBug||this.operaVerticalAlignBug&&a.isMultiChar?(""===a.firstChild.style.display&&""!==a.style.top&&(a=a.firstChild,c-=b.unEm(a.style.top)),a.style.position="relative",a.style.top=this.Em(-c)):(a.style.verticalAlign=this.Em(c),b.ffVerticalAlignBug&&b.createRule(a.parentNode,a.bbox.h,0,0)))},handleVariant:function(a,b,d){var c="",e,g,f,l=a,m=!!a.style.fontFamily;if(0!==d.length){a.bbox||(a.bbox={w:0,h:-this.BIGDIMEN,d:-this.BIGDIMEN,rw:-this.BIGDIMEN,lw:this.BIGDIMEN});b||(b=this.FONTDATA.VARIANT[k.VARIANT.NORMAL]);f=b;for(var p=0,r=d.length;pe)p++,e=(e-55296<<10)+(d.charCodeAt(p)-56320)+65536,this.FONTDATA.RemapPlane1&&(b=this.FONTDATA.RemapPlane1(e,b),e=b.n,b=b.variant);else{var n,q=this.FONTDATA.RANGES;g=0;for(n=q.length;g=q[g].low&&e<=q[g].high){q[g].remap&&q[g].remap[e]?e=w+q[g].remap[e]:(e=e-q[g].low+w,q[g].add&&(e+=q[g].add));b["variant"+q[g].offset]&&(b=this.FONTDATA.VARIANT[b["variant"+q[g].offset]]);break}}}b.remap&&b.remap[e]&&(b.remap[e]instanceof Array?(b=b.remap[e],e=b[0],b=this.FONTDATA.VARIANT[b[1]]):"string"===typeof b.remap[e]?(d=b.remap[e]+d.substr(p+1),p=0,r=d.length,e=d.charCodeAt(0)):(e=b.remap[e],b.remap.variant&&(b=this.FONTDATA.VARIANT[b.remap.variant])));this.FONTDATA.REMAP[e]&&!b.noRemap&&(e=this.FONTDATA.REMAP[e],e instanceof Array&&(b=this.FONTDATA.VARIANT[e[1]],e=e[0]),"string"===typeof e&&(d=e+d.substr(p+1),p=0,r=d.length,e=e.charCodeAt(0)));g=this.lookupChar(b,e);b=g[e];if(m||!this.checkFont(g,l.style)&&!b[5].img)c.length&&(this.addText(l,c),c=""),n=!!l.style.fontFamily||!!a.style.fontStyle||!!a.style.fontWeight||!g.directory||m,m=!1,l!==a&&(n=!this.checkFont(g,a.style),l=a),n&&(l=this.addElement(a,"span",{isMathJax:!0,subSpan:!0})),this.handleFont(l,g,l!==a);c=this.handleChar(l,g,b,e,c);(b[5]||{}).space||(b[0]/1E3>a.bbox.h&&(a.bbox.h=b[0]/1E3),b[1]/1E3>a.bbox.d&&(a.bbox.d=b[1]/1E3));a.bbox.w+b[3]/1E3a.bbox.rw&&(a.bbox.rw=a.bbox.w+b[4]/1E3);a.bbox.w+=b[2]/1E3}c.length&&this.addText(l,c);a.scale&&1!==a.scale&&(a.bbox.h*=a.scale,a.bbox.d*=a.scale,a.bbox.w*=a.scale,a.bbox.lw*=a.scale,a.bbox.rw*=a.scale);1==d.length&&g.skew&&g.skew[e]&&(a.bbox.skew=g.skew[e])}},checkFont:function(a,b){var d=b.fontWeight||"normal";d.match(/^\d+$/)&&(d=600<=parseInt(d)?"bold":"normal");return a.family.replace(/'/g,"")===b.fontFamily.replace(/'/g,"")&&(a.style||"normal")===(b.fontStyle||"normal")&&(a.weight||"normal")===d},handleFont:function(a,c,d){a.style.fontFamily=c.family;c.directory||(a.style.fontSize=Math.floor(100/b.scale+.5)+"%");if(!b.FontFaceBug||!c.isWebFont){var f=c.style||"normal";c=c.weight||"normal";if("normal"!==f||d)a.style.fontStyle=f;if("normal"!==c||d)a.style.fontWeight=c}},handleChar:function(a,c,d,f,e){var g=d[5];if(g.space)return e.length&&this.addText(a,e),b.createShift(a,d[2]/1E3),"";if(g.img)return this.handleImg(a,c,d,f,e);if(g.isUnknown&&this.FONTDATA.DELIMITERS[f])return e.length&&this.addText(a,e),e=a.scale,b.createDelimiter(a,f,0,1,c),"V"===this.FONTDATA.DELIMITERS[f].dir&&(a.style.verticalAlign=this.Em(a.bbox.d),a.bbox.h+=a.bbox.d,a.bbox.d=0),a.scale=e,d[0]=1E3*a.bbox.h,d[1]=1E3*a.bbox.d,d[2]=1E3*a.bbox.w,d[3]=1E3*a.bbox.lw,d[4]=1E3*a.bbox.rw,"";null==g.c&&(65535>=f?g.c=String.fromCharCode(f):(c=f-65536,g.c=String.fromCharCode((c>>10)+55296)+String.fromCharCode((c&1023)+56320)));if(g.rfix)return this.addText(a,e+g.c),b.createShift(a,g.rfix/1E3),"";if(d[2]||!this.msieAccentBug||e.length)return e+g.c;b.createShift(a,d[3]/1E3);b.createShift(a,(d[4]-d[3])/1E3);this.addText(a,g.c);b.createShift(a,-d[4]/1E3);return""},handleImg:function(a,b,c,f,e){return e},lookupChar:function(a,c){var d,f;if(!a.FONTS){var e=this.FONTDATA.FONTS,g=a.fonts||this.FONTDATA.VARIANT.normal.fonts;g instanceof Array||(g=[g]);a.fonts!=g&&(a.fonts=g);a.FONTS=[];d=0;for(f=g.length;dc.d&&(c.d=f.d);f.h>c.h&&(c.h=f.h);null!=f.D&&f.D>c.D&&(c.D=f.D);null!=f.H&&f.H>c.H&&(c.H=f.H);d.style.paddingLeft&&(c.w+=b.unEm(d.style.paddingLeft)*(d.scale||1));c.w+f.lwc.rw&&(c.rw=c.w+f.rw);c.w+=f.w;d.style.paddingRight&&(c.w+=b.unEm(d.style.paddingRight)*(d.scale||1));f.width&&(c.width=f.width,c.minWidth=f.minWidth);f.ic?c.ic=f.ic:delete c.ic;c.exactW&&!f.exactW&&delete c.exactW}},HTMLemptyBBox:function(a){a.h=a.d=a.H=a.D=a.rw=-b.BIGDIMEN;a.w=0;a.lw=b.BIGDIMEN;return a},HTMLcleanBBox:function(a){a.h===this.BIGDIMEN&&(a.h=a.d=a.H=a.D=a.w=a.rw=a.lw=0);a.D<=a.d&&delete a.D;a.H<=a.h&&delete a.H},HTMLzeroBBox:function(){return{h:0,d:0,w:0,lw:0,rw:0}},HTMLcanStretch:function(a){if(this.isEmbellished()){var b=this.Core();if(b&&b!==this)return b.HTMLcanStretch(a)}return!1},HTMLstretchH:function(a,b){return this.HTMLspanElement()},HTMLstretchV:function(a,b,c){return this.HTMLspanElement()},HTMLnotEmpty:function(a){for(;a;){if("mrow"!==a.type&&"texatom"!==a.type||1=c.scriptlevel||this.hasValue("lspace")||this.hasValue("rspace")){var d=this.HTMLgetMu(a);c.lspace=Math.max(0,b.length2em(c.lspace,d));c.rspace=Math.max(0,b.length2em(c.rspace,d));for(var d=this,f=this.Parent();f&&f.isEmbellished()&&f.Core()===d;)d=f,f=f.Parent(),a=d.HTMLspanElement();c.lspace&&(a.style.paddingLeft=b.Em(c.lspace));c.rspace&&(a.style.paddingRight=b.Em(c.rspace))}}}else c=this.texSpacing(),""!==c&&(c=b.length2em(c,this.HTMLgetScale())/(a.scale||1),a.style.paddingLeft&&(c+=b.unEm(a.style.paddingLeft)),a.style.paddingLeft=b.Em(c))},HTMLgetScale:function(){var a=1,c=this.getValues("mathsize","scriptlevel","fontsize");if(this.style){var d=this.HTMLspanElement();""!=d.style.fontSize&&(c.fontsize=d.style.fontSize)}c.fontsize&&!this.mathsize&&(c.mathsize=c.fontsize);0!==c.scriptlevel&&(2f.w&&1===d.length&&!c.noIC&&(f.ic=f.rw-f.w,b.createBlank(a,f.ic),f.w=f.rw);this.HTMLhandleSpace(a);this.HTMLhandleColor(a);return a}});k.mn.Augment({toHTML:function(a){a=this.HTMLhandleSize(this.HTMLcreateSpan(a));a.bbox=null;for(var b=this.HTMLgetVariant(),c=0,f=this.data.length;ca.bbox.w&&(a.bbox.ic=a.bbox.rw-a.bbox.w,b.createBlank(a,a.bbox.ic),a.bbox.w=a.bbox.rw));this.HTMLhandleSpace(a);this.HTMLhandleColor(a);return a},CoreParent:function(){for(var a=this;a&&a.isEmbellished()&&a.CoreMO()===this&&!a.isa(k.math);)a=a.Parent();return a},CoreText:function(a){if(!a)return"";if(a.isEmbellished())return a.CoreMO().data.join("");for(;(a.isa(k.mrow)||a.isa(k.TeXAtom)||a.isa(k.mstyle)||a.isa(k.mphantom))&&1===a.data.length&&a.data[0];)a=a.data[0];return a.isToken?a.data.join(""):""},HTMLremapChars:{"*":"\u2217",'"':"\u2033","\u00b0":"\u2218","\u00b2":"2","\u00b3":"3","\u00b4":"\u2032","\u00b9":"1"},HTMLremap:function(a,b){a=a.replace(/-/g,"\u2212");b&&(a=a.replace(/'/g,"\u2032").replace(/`/g,"\u2035"),1===a.length&&(a=b[a]||a));return a},HTMLcanStretch:function(a){if(!this.Get("stretchy"))return!1;var c=this.data.join("");if(1b.linebreakWidth||this.hasNewline():!1},HTMLstretchH:function(a,b){this.HTMLremoveColor();var c=this.HTMLspanElement();this.data[this.core].HTMLstretchH(c,b);this.HTMLcomputeBBox(c,!0);this.HTMLhandleColor(c);return c},HTMLstretchV:function(a,b,c){this.HTMLremoveColor();a=this.HTMLspanElement();this.data[this.core].HTMLstretchV(a,b,c);this.HTMLcomputeBBox(a,!0);this.HTMLhandleColor(a);return a}});k.mstyle.Augment({toHTML:function(a,b,c){a=this.HTMLcreateSpan(a);if(null!=this.data[0]){var f=this.data[0].toHTML(a);null!=c?this.data[0].HTMLstretchV(a,b,c):null!=b&&this.data[0].HTMLstretchH(a,b);a.bbox=f.bbox}this.HTMLhandleSpace(a);this.HTMLhandleColor(a);return a},HTMLstretchH:k.mbase.HTMLstretchH,HTMLstretchV:k.mbase.HTMLstretchV});k.mfrac.Augment({toHTML:function(a){a=this.HTMLcreateSpan(a);var c=b.createStack(a),d=b.createBox(c),f=b.createBox(c);b.MeasureSpans([this.HTMLboxChild(0,d),this.HTMLboxChild(1,f)]);var e=this.getValues("displaystyle","linethickness","numalign","denomalign","bevelled"),g=this.HTMLgetScale(),k=e.displaystyle,l=b.TeX.axis_height*g;if(e.bevelled){var e=k?.4:.15,m=Math.max(d.bbox.h+d.bbox.d,f.bbox.h+f.bbox.d)+2*e,c=b.createBox(c);b.createDelimiter(c,47,m);b.placeBox(d,0,(d.bbox.d-d.bbox.h)/2+l+e);b.placeBox(c,d.bbox.w-e/2,(c.bbox.d-c.bbox.h)/2+l);b.placeBox(f,d.bbox.w+c.bbox.w-e,(f.bbox.d-f.bbox.h)/2+l-e)}else{var m=Math.max(d.bbox.w,f.bbox.w),p=b.thickness2em(e.linethickness,g),n,q,C=b.TeX.min_rule_thickness/this.em;k?(n=b.TeX.num1,q=b.TeX.denom1):(n=0===p?b.TeX.num3:b.TeX.num2,q=b.TeX.denom2);n*=g;q*=g;0===p?(g=Math.max((k?7:3)*b.TeX.rule_thickness,2*C),k=n-d.bbox.d-(f.bbox.h-q),km&&(l=(e.bbox.h+e.bbox.d-(m-k))/2);m=b.FONTDATA.DELIMITERS[b.FONTDATA.RULECHAR];!m||pg?b.createRule(f,0,k,p):b.createDelimiter(f,b.FONTDATA.RULECHAR,p,g);m=n.bbox.h+l+k;l=m*b.rfuzz;e.isMultiChar&&(l=b.rfuzz);q=this.HTMLaddRoot(c,e,q,e.bbox.h+e.bbox.d-m,g);b.placeBox(e,q,m-e.bbox.h);b.placeBox(f,q+e.bbox.w,m-f.bbox.h+l);b.placeBox(d,q+e.bbox.w,0);this.HTMLhandleSpace(a);this.HTMLhandleColor(a);return a},HTMLaddRoot:function(a,b,c,f,e){return c}});k.mroot.Augment({toHTML:k.msqrt.prototype.toHTML,HTMLaddRoot:function(a,c,d,f,e){a=b.createBox(a);this.data[1]?(d=this.data[1].toHTML(a),d.style.paddingRight=d.style.paddingLeft="",b.Measured(d,a)):a.bbox=this.HTMLzeroBBox();f=this.HTMLrootHeight(c.bbox.h+c.bbox.d,e,a)-f;e=Math.min(a.bbox.w,a.bbox.rw);d=Math.max(e,c.offset);b.placeBox(a,d-e,f);return d-c.offset},HTMLrootHeight:function(a,b,c){return.45*(a-.9*b)+.6*b+Math.max(0,c.bbox.d-.075)}});k.mfenced.Augment({toHTML:function(a){a=this.HTMLcreateSpan(a);this.data.open&&this.data.open.toHTML(a);null!=this.data[0]&&this.data[0].toHTML(a);for(var b=1,c=this.data.length;bg&&(g=l[r].bbox.w),!p[r]&&g>m&&(m=g));null==d&&null!=c?m=c:m==-b.BIGDIMEN&&(m=g);r=g=0;for(q=this.data.length;rg&&(g=n.bbox.w));c=b.TeX.rule_thickness;d=b.FONTDATA.TeX_factor;var p=l[this.base]||{bbox:this.HTMLzeroBBox()},C,w,z,y=0;p.bbox.ic&&(y=1.3*p.bbox.ic+.05);r=0;for(q=this.data.length;rc&&(b.config.styles[".MathJax .MathJax_HitBox"]["background-color"]="white",b.config.styles[".MathJax .MathJax_HitBox"].opacity=0,b.config.styles[".MathJax .MathJax_HitBox"].filter="alpha(opacity\x3d0)");b.Augment({PaddingWidthBug:!0,msieAccentBug:!0,msieColorBug:!0,msieColorPositionBug:!0,msieRelativeWidthBug:e,msieDisappearingBug:8<=c,msieMarginScaleBug:8>c,msiePaddingWidthBug:!0,msieBorderWidthBug:e,msieFrameSizeBug:8>=c,msieInlineBlockAlignBug:!f||e,msiePlaceBoxBug:f&&!e,msieClipRectBug:!f,msieNegativeSpaceBug:e,cloneNodeBug:f&&"8.0"===a.version,initialSkipBug:8>c,msieNegativeBBoxBug:8<=c,msieIE6:!d,msieItalicWidthBug:!0,FontFaceBug:!0,msieFontCSSBug:a.isIE9,allowWebFonts:9<=c?"woff":"eot"})},Firefox:function(a){var c=!1;a.versionAtLeast("3.5")&&(a=String(document.location).replace(/[^\/]*$/,""),"file:"!==document.location.protocol||f.config.root.match(/^https?:\/\//)||(f.config.root+"/").substr(0,a.length)===a)&&(c="otf");b.Augment({ffVerticalAlignBug:!0,AccentBug:!0,allowWebFonts:c})},Safari:function(a){var c=a.versionAtLeast("3.0"),d=a.versionAtLeast("3.1"),k=navigator.appVersion.match(/ Safari\/\d/)&&navigator.appVersion.match(/ Version\/\d/)&&navigator.vendor.match(/Apple/),e=navigator.appVersion.match(/ Android (\d+)\.(\d+)/),e=d&&a.isMobile&&(navigator.platform.match(/iPad|iPod|iPhone/)&&!a.versionAtLeast("5.0")||null!=e&&(2>e[1]||2==e[1]&&2>e[2]));b.Augment({config:{styles:{".MathJax img, .MathJax nobr, .MathJax a":{"max-width":"5000em","max-height":"5000em"}}},rfuzz:.011,AccentBug:!0,AdjustSurd:!0,negativeBBoxes:!0,safariNegativeSpaceBug:!0,safariVerticalAlignBug:!d,safariTextNodeBug:!c,forceReflow:!0,allowWebFonts:d&&!e?"otf":!1});k&&b.Augment({webFontDefault:a.isMobile?"sans-serif":"serif"});a.isPC&&b.Augment({adjustAvailableFonts:b.removeSTIXfonts,checkWebFontsTwice:!0});e&&((a=f.config["HTML-CSS"])?(a.availableFonts=[],a.preferredFont=null):f.config["HTML-CSS"]={availableFonts:[],preferredFont:null})},Chrome:function(a){b.Augment({Em:b.EmRounded,cloneNodeBug:!0,rfuzz:.011,AccentBug:!0,AdjustSurd:!0,negativeBBoxes:!0,safariNegativeSpaceBug:!0,safariWebFontSerif:[""],forceReflow:!0,allowWebFonts:a.versionAtLeast("4.0")?"otf":"svg"})},Opera:function(a){a.isMini=null!=navigator.appVersion.match("Opera Mini");b.config.styles[".MathJax .merror"]["vertical-align"]=null;b.config.styles[".MathJax span"]["z-index"]=0;b.Augment({operaHeightBug:!0,operaVerticalAlignBug:!0,operaFontSizeBug:a.versionAtLeast("10.61"),initialSkipBug:!0,FontFaceBug:!0,PaddingWidthBug:!0,allowWebFonts:a.versionAtLeast("10.0")&&!a.isMini?"otf":!1,adjustAvailableFonts:b.removeSTIXfonts})},Konqueror:function(a){b.Augment({konquerorVerticalAlignBug:!0})}})});MathJax.Hub.Register.StartupHook("End Cookie",function(){"None"!==f.config.menuSettings.zoom&&c.Require("[MathJax]/extensions/MathZoom.js")})})(MathJax.Ajax,MathJax.Hub,MathJax.OutputJax["HTML-CSS"]);MathJax.Hub.Register.StartupHook("HTML-CSS Jax Ready",function(){var c=MathJax.ElementJax.mml,f=MathJax.OutputJax["HTML-CSS"];c.mtable.Augment({toHTML:function(b){b=this.HTMLcreateSpan(b);if(0===this.data.length)return b;var k=this.getValues("columnalign","rowalign","columnspacing","rowspacing","columnwidth","equalcolumns","equalrows","columnlines","rowlines","frame","framespacing","align","useHeight","width","side","minlabelspacing"),p=k.width.match(/%$/),l=f.createStack(b),m=this.HTMLgetScale(),q=this.HTMLgetMu(b),n=[],a=[],h=[],d=[],u=[],e,g,t=-1,v,H,A,r,B,C,w=[],z=f.FONTDATA.baselineskip*m*k.useHeight,y,D=f.FONTDATA.lineH*m,N=f.FONTDATA.lineD*m;e=0;for(v=this.data.length;et&&(t=g),u[g]=f.createStack(f.createBox(l)),h[g]=-f.BIGDIMEN),d[e][g]=f.createBox(u[g]),w.push(r.data[g-A].toHTML(d[e][g]));f.MeasureSpans(w);e=0;for(v=this.data.length;en[e]&&(n[e]=w*I.h/y),w*I.d/y>a[e]&&(a[e]=w*I.d/y)}else C.HTMLcanStretch("Horizontal")&&(w=f.length2em(w,q,I.w),w>h[g]&&(h[g]=w))}d[e][g].bbox.h>n[e]&&(n[e]=d[e][g].bbox.h);d[e][g].bbox.d>a[e]&&(a[e]=d[e][g].bbox.d);d[e][g].bbox.w>h[g]&&(h[g]=d[e][g].bbox.w)}n[0]+a[0]&&(n[0]=Math.max(n[0],D));n[d.length-1]+a[d.length-1]&&(a[d.length-1]=Math.max(a[d.length-1],N));var J=MathJax.Hub.SplitList,w=J(k.columnspacing),D=J(k.rowspacing);H=J(k.columnalign);var x=J(k.rowalign),I=J(k.columnlines),N=J(k.rowlines),F=J(k.columnwidth),L=[];e=0;for(v=w.length;eg&&(g=d.length+1+g),1>g?g=1:g>d.length&&(g=d.length),J=0,m=-(y+e)+n[0],e=0,v=g-1;eG)for(E=(E-G)/y,e=0,v=A.length;e