/* * /MathJax/config/AM_HTMLorMML.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/AsciiMath/config.js","[MathJax]/jax/output/HTML-CSS/config.js","[MathJax]/jax/output/NativeMML/config.js","[MathJax]/config/MMLorHTML.js","[MathJax]/extensions/asciimath2jax.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/AsciiMath/jax.js");MathJax.Hub.Config({"v1.0-compatible":!1});MathJax.InputJax.AsciiMath=MathJax.InputJax({id:"AsciiMath",version:"2.2",directory:MathJax.InputJax.directory+"/AsciiMath",extensionDir:MathJax.InputJax.extensionDir+"/AsciiMath",config:{displaystyle:!0,decimalsign:"."}});MathJax.InputJax.AsciiMath.Register("math/asciimath");MathJax.InputJax.AsciiMath.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(a,c){var b=a.Insert({minBrowserVersion:{Firefox:3,Opera:9.52,MSIE:6,Chrome:.3,Safari:2,Konqueror:4},inlineMathDelimiters:["$","$"],displayMathDelimiters:["$$","$$"],multilineDisplay:!0,minBrowserTranslate:function(d){var c=a.getJaxFor(d),f=["[Math]"],k=document.createElement("span",{className:"MathJax_Preview"});"TeX"===c.inputJax&&(c.root.Get("displaystyle")?(f=b.displayMathDelimiters,f=[f[0]+c.originalText+f[1]],b.multilineDisplay&&(f=f[0].split(/\n/))):(f=b.inlineMathDelimiters,f=[f[0]+c.originalText.replace(/^\s+/,"").replace(/\s+$/,"")+f[1]]));for(var c=0,p=f.length;c(document.documentMode||0)};MathJax.Hub.Register.PreProcessor(["PreProcess",MathJax.Extension.asciimath2jax]);MathJax.Ajax.loadComplete("[MathJax]/extensions/asciimath2jax.js");(function(a,c,b,d,g,f,k){var p=MathJax.Extension,t=p.MathEvents={version:"2.2"},n=a.config.menuSettings,q={hover:500,frame:{x:3.5,y:5,bwidth:1,bcolor:"#A6D",hwidth:"15px",hcolor:"#83A"},button:{x:-4,y:-3,wx:-2,src:b.fileURL(f.imageDir+"/MenuArrow-15.png")},fadeinInc:.2,fadeoutInc:.05,fadeDelay:50,fadeoutStart:400,fadeoutDelay:15E3,styles:{".MathJax_Hover_Frame":{"border-radius":".25em","-webkit-border-radius":".25em","-moz-border-radius":".25em","-khtml-border-radius":".25em","box-shadow":"0px 0px 15px #83A","-webkit-box-shadow":"0px 0px 15px #83A","-moz-box-shadow":"0px 0px 15px #83A","-khtml-box-shadow":"0px 0px 15px #83A",border:"1px solid #A6D ! important",display:"inline-block",position:"absolute"},".MathJax_Hover_Arrow":{position:"absolute",width:"15px",height:"11px",cursor:"pointer"}}},h=t.Event={LEFTBUTTON:0,RIGHTBUTTON:2,MENUKEY:"altKey",Mousedown:function(a){return h.Handler(a,"Mousedown",this)},Mouseup:function(a){return h.Handler(a,"Mouseup",this)},Mousemove:function(a){return h.Handler(a,"Mousemove",this)},Mouseover:function(a){return h.Handler(a,"Mouseover",this)},Mouseout:function(a){return h.Handler(a,"Mouseout",this)},Click:function(a){return h.Handler(a,"Click",this)},DblClick:function(a){return h.Handler(a,"DblClick",this)},Menu:function(a){return h.Handler(a,"ContextMenu",this)},Handler:function(a,d,m){if(b.loadingMathMenu)return h.False(a);var c=f[m.jaxID];a||(a=window.event);a.isContextMenu="ContextMenu"===d;if(c[d])return c[d](a,m);if(p.MathZoom)return p.MathZoom.HandleEvent(a,d,m)},False:function(a){a||(a=window.event);a&&(a.preventDefault&&a.preventDefault(),a.stopPropagation&&a.stopPropagation(),a.cancelBubble=!0,a.returnValue=!1);return!1},ContextMenu:function(c,x,m){var e=f[x.jaxID],w=e.getJaxFromMath(x);if((null!=e.config.showMathMenu?e:a).config.showMathMenu&&("MathJax"===n.context||m)){t.msieEventBug&&(c=window.event||c);h.ClearSelection();r.ClearHoverTimer();w.hover&&(w.hover.remove&&(clearTimeout(w.hover.remove),delete w.hover.remove),w.hover.nofade=!0);var q=MathJax.Menu;if(q){if(q.loadingDomain)return h.False(c);e=g.loadDomain("MathMenu");if(!e)return q.jax=w,x=q.menu.Find("Show Math As").menu,x.items[0].name=w.sourceMenuTitle,x.items[0].format=w.sourceMenuFormat||"MathML",x.items[1].name=k[w.inputJax].sourceMenuTitle,q.menu.Find("Math Settings","MathPlayer").hidden=!("NativeMML"===w.outputJax&&a.Browser.hasMathPlayer),q.menu.Post(c);q.loadingDomain=!0;w=function(){delete q.loadingDomain}}else{if(b.loadingMathMenu)return h.False(c);b.loadingMathMenu=!0;e=b.Require("[MathJax]/extensions/MathMenu.js");w=function(){delete b.loadingMathMenu;MathJax.Menu||(MathJax.Menu={})}}d.Queue(e,w,["ContextMenu",h,{pageX:c.pageX,pageY:c.pageY,clientX:c.clientX,clientY:c.clientY},x,m]);return h.False(c)}},AltContextMenu:function(d,b){var m=f[b.jaxID],c=(null!=m.config.showMathMenu?m:a).config.showMathMenu;if(c){c=(null!=m.config.showMathMenuMSIE?m:a).config.showMathMenuMSIE;if("MathJax"===n.context&&!n.mpContext&&c){if(!t.noContextMenuBug||d.button!==h.RIGHTBUTTON)return}else if(!d[h.MENUKEY]||d.button!==h.LEFTBUTTON)return;return m.ContextMenu(d,b,!0)}},ClearSelection:function(){t.safariContextMenuBug&&setTimeout("window.getSelection().empty()",0);document.selection&&setTimeout("document.selection.empty()",0)},getBBox:function(a){a.appendChild(t.topImg);var d=t.topImg.offsetTop,b=a.offsetHeight-d,c=a.offsetWidth;a.removeChild(t.topImg);return{w:c,h:d,d:b}}},r=t.Hover={Mouseover:function(d,b){if(n.discoverable||"Hover"===n.zoom){var m=d.fromElement||d.relatedTarget,c=d.toElement||d.target;if(m&&c&&(m.isMathJax!=c.isMathJax||a.getJaxFor(m)!==a.getJaxFor(c)))return m=this.getJaxFromMath(b),m.hover?r.ReHover(m):r.HoverTimer(m,b),h.False(d)}},Mouseout:function(d,b){if(n.discoverable||"Hover"===n.zoom){var m=d.fromElement||d.relatedTarget,c=d.toElement||d.target;if(m&&c&&(m.isMathJax!=c.isMathJax||a.getJaxFor(m)!==a.getJaxFor(c)))return m=this.getJaxFromMath(b),m.hover?r.UnHover(m):r.ClearHoverTimer(),h.False(d)}},Mousemove:function(a,d){if(n.discoverable||"Hover"===n.zoom){var b=this.getJaxFromMath(d);if(!b.hover&&(r.lastX!=a.clientX||r.lastY!=a.clientY))return r.lastX=a.clientX,r.lastY=a.clientY,r.HoverTimer(b,d),h.False(a)}},HoverTimer:function(a,b){this.ClearHoverTimer();this.hoverTimer=setTimeout(d(["Hover",this,a,b]),q.hover)},ClearHoverTimer:function(){this.hoverTimer&&(clearTimeout(this.hoverTimer),delete this.hoverTimer)},Hover:function(d,b){if(!p.MathZoom||!p.MathZoom.Hover({},b)){var m=f[d.outputJax],e=m.getHoverSpan(d,b),g=m.getHoverBBox(d,e,b),h=(null!=m.config.showMathMenu?m:a).config.showMathMenu,k=q.frame.x,r=q.frame.y,n=q.frame.bwidth;t.msieBorderWidthBug&&(n=0);d.hover={opacity:0,id:d.inputID+"-Hover"};var v=c.Element("span",{id:d.hover.id,isMathJax:!0,style:{display:"inline-block",width:0,height:0,position:"relative"}},[["span",{className:"MathJax_Hover_Frame",isMathJax:!0,style:{display:"inline-block",position:"absolute",top:this.Px(-g.h-r-n-(g.y||0)),left:this.Px(-k-n+(g.x||0)),width:this.Px(g.w+2*k),height:this.Px(g.h+g.d+2*r),opacity:0,filter:"alpha(opacity\x3d0)"}}]]),m=c.Element("span",{isMathJax:!0,id:d.hover.id+"Menu",style:{display:"inline-block","z-index":1,width:0,height:0,position:"relative"}},[["img",{className:"MathJax_Hover_Arrow",isMathJax:!0,math:b,src:q.button.src,onclick:this.HoverMenu,jax:m.id,style:{left:this.Px(g.w+k+n+(g.x||0)+q.button.x),top:this.Px(-g.h-r-n-(g.y||0)-q.button.y),opacity:0,filter:"alpha(opacity\x3d0)"}}]]);g.width&&(v.style.width=m.style.width=g.width,v.style.marginRight=m.style.marginRight="-"+g.width,v.firstChild.style.width=g.width,m.firstChild.style.left="",m.firstChild.style.right=this.Px(q.button.wx));e.parentNode.insertBefore(v,e);h&&e.parentNode.insertBefore(m,e);e.style&&(e.style.position="relative");this.ReHover(d)}},ReHover:function(a){a.hover.remove&&clearTimeout(a.hover.remove);a.hover.remove=setTimeout(d(["UnHover",this,a]),q.fadeoutDelay);this.HoverFadeTimer(a,q.fadeinInc)},UnHover:function(a){a.hover.nofade||this.HoverFadeTimer(a,-q.fadeoutInc,q.fadeoutStart)},HoverFade:function(a){delete a.hover.timer;a.hover.opacity=Math.max(0,Math.min(1,a.hover.opacity+a.hover.inc));a.hover.opacity=Math.floor(1E3*a.hover.opacity)/1E3;var d=document.getElementById(a.hover.id),b=document.getElementById(a.hover.id+"Menu");d.firstChild.style.opacity=a.hover.opacity;d.firstChild.style.filter="alpha(opacity\x3d"+Math.floor(100*a.hover.opacity)+")";b&&(b.firstChild.style.opacity=a.hover.opacity,b.firstChild.style.filter=d.style.filter);1!==a.hover.opacity&&(0Math.abs(a)?"0px":a.toFixed(2).replace(/\.?0+$/,"")+"px"},getImages:function(){(new Image).src=q.button.src}},v=t.Touch={last:0,delay:500,start:function(a){var d=(new Date).getTime(),b=d-v.lastd;9>d&&(h.LEFTBUTTON=1)},Safari:function(a){t.safariContextMenuBug=!0},Opera:function(a){t.operaPositionBug=!0},Konqueror:function(a){t.noContextMenuBug=!0}});t.topImg=t.msieAlignBug?c.Element("img",{style:{width:0,height:0,position:"relative"},src:"about:blank"}):c.Element("span",{style:{width:0,height:0,display:"inline-block"}});t.operaPositionBug&&(t.topImg.style.border="1px solid");t.config=q=a.CombineConfig("MathEvents",q);d.Queue(a.Register.StartupHook("End Config",{}),[function(){var a=q.styles[".MathJax_Hover_Frame"];a.border=q.frame.bwidth+"px solid "+q.frame.bcolor+" ! important";a["box-shadow"]=a["-webkit-box-shadow"]=a["-moz-box-shadow"]=a["-khtml-box-shadow"]="0px 0px "+q.frame.hwidth+" "+q.frame.hcolor}],["getImages",r],["Styles",b,q.styles],["Post",a.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(a,c,b,d,g){var f=a.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)"}}}),k,p,t;MathJax.Hub.Register.StartupHook("MathEvents Ready",function(){t=MathJax.Extension.MathEvents.Event;k=MathJax.Extension.MathEvents.Event.False;p=MathJax.Extension.MathEvents.Hover});var n=MathJax.Extension.MathZoom={version:"2.2",settings:a.config.menuSettings,scrollSize:18,HandleEvent:function(a,d,b){return n.settings.CTRL&&!a.ctrlKey||n.settings.ALT&&!a.altKey||n.settings.CMD&&!a.metaKey||n.settings.Shift&&!a.shiftKey||!n[d]?!0:n[d](a,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(d,b){this.Remove();p.ClearHoverTimer();t.ClearSelection();var g=MathJax.OutputJax[b.jaxID],n=g.getJaxFromMath(b);n.hover&&p.UnHover(n);var e=Math.floor(.85*document.body.clientWidth),l=Math.floor(.85*Math.max(document.body.clientHeight,document.documentElement.clientHeight)),x=c.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":e+"px","max-height":l+"px"}},[["span",{style:{display:"inline-block","white-space":"nowrap"}}]]]]),m=x.lastChild,A=m.firstChild,w=x.firstChild;b.parentNode.insertBefore(x,b);b.parentNode.insertBefore(b,x);A.addEventListener&&A.addEventListener("mousedown",this.Remove,!0);if(this.msieTrapEventBug){var y=c.Element("span",{id:"MathJax_ZoomEventTrap",onmousedown:this.Remove});x.insertBefore(y,m)}this.msieZIndexBug&&(c.addElement(document.body,"img",{src:"about:blank",id:"MathJax_ZoomTracker",width:0,height:0,style:{width:0,height:0,position:"relative"}}),x.style.position="relative",x.style.zIndex=f.styles["#MathJax_ZoomOverlay"]["z-index"]);g=g.Zoom(n,A,b,e,l);this.msiePositionBug&&(this.msieSizeBug&&(m.style.height=g.zH+"px",m.style.width=g.zW+"px"),m.offsetHeight>l&&(m.style.height=l+"px",m.style.width=g.zW+this.scrollSize+"px"),m.offsetWidth>e&&(m.style.width=e+"px",m.style.height=g.zH+this.scrollSize+"px"));this.operaPositionBug&&(m.style.width=Math.min(e,g.zW)+"px");m.offsetWidth&&m.offsetWidth=d;n.msieInlineBlockAlignBug=7>=d;n.msieTrapEventBug=!window.addEventListener;"BackCompat"===document.compatMode&&(n.scrollSize=52);b&&delete f.styles["#MathJax_Zoom"].filter},Opera:function(a){n.operaPositionBug=!0;n.operaRefreshBug=!0}});n.topImg=n.msieInlineBlockAlignBug?c.Element("img",{style:{width:0,height:0,position:"relative"},src:"about:blank"}):c.Element("span",{style:{width:0,height:0,display:"inline-block"}});if(n.operaPositionBug||n.msieTopBug)n.topImg.style.border="1px solid";MathJax.Callback.Queue(["StartupHook",MathJax.Hub.Register,"Begin Styles",{}],["Styles",b,f.styles],["Post",a.Startup.signal,"MathZoom Ready"],["loadComplete",b,"[MathJax]/extensions/MathZoom.js"])})(MathJax.Hub,MathJax.HTML,MathJax.Ajax,MathJax.OutputJax["HTML-CSS"],MathJax.OutputJax.NativeMML);(function(a,c,b,d,g){var f=MathJax.Callback.Signal("menu");MathJax.Extension.MathMenu={version:"2.2",signal:f};var k=function(a){return MathJax.Localization._.apply(MathJax.Localization,[["MathMenu",a]].concat([].slice.call(arguments,1)))},p=a.Browser.isPC,t=a.Browser.isMSIE,n=8<(document.documentMode||0),q=p?null:"5px",h=a.CombineConfig("MathMenu",{delay:150,closeImg:b.fileURL(g.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:p?"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":q,"-webkit-border-radius":q,"-moz-border-radius":q,"-khtml-border-radius":q,"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:p?"2px 2em":"1px 2em",background:"transparent"},".MathJax_MenuArrow":{position:"absolute",right:".5em",color:"#666666","font-family":t?"'Arial unicode MS'":null},".MathJax_MenuActive .MathJax_MenuArrow":{color:"white"},".MathJax_MenuCheck":{position:"absolute",left:".7em","font-family":t?"'Arial unicode MS'":null},".MathJax_MenuRadioCheck":{position:"absolute",left:p?"1em":".7em"},".MathJax_MenuLabel":{padding:p?"2px 2em 4px 1.33em":"1px 2em 3px 1.33em","font-style":"italic"},".MathJax_MenuRule":{"border-top":p?"1px solid #CCCCCC":"1px solid #DDDDDD",margin:p?"4px 1px 0px":"4px 3px"},".MathJax_MenuDisabled":{color:"GrayText"},".MathJax_MenuActive":{"background-color":p?"Highlight":"#606872",color:p?"HighlightText":"white"},".MathJax_Menu_Close":{position:"absolute",width:"31px",height:"31px",top:"-15px",left:"-15px"}}}),r,v;a.Register.StartupHook("MathEvents Ready",function(){r=MathJax.Extension.MathEvents.Event.False;v=MathJax.Extension.MathEvents.Hover});var e=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(d){d&&a.Insert(this,d);return this},Post:function(a,d){a||(a=window.event);var b=document.getElementById("MathJax_MenuFrame");b||(b=e.Background(this),delete l.lastItem,delete l.lastMenu,delete e.skipUp,f.Post(["post",e.jax]));var g=c.addElement(b,"div",{onmouseup:e.Mouseup,ondblclick:r,ondragstart:r,onselectstart:r,oncontextmenu:r,menuItem:this,className:"MathJax_Menu"});MathJax.Localization.setCSS(g);for(var k=0,n=this.items.length;kdocument.body.offsetWidth-this.margin&&!e.isMobile&&(q="right",k=Math.max(this.margin,k-t-g.offsetWidth+6));p||(g.style["borderRadiusTop"+q]=0,g.style["WebkitBorderRadiusTop"+q]=0,g.style["MozBorderRadiusTop"+q]=0,g.style["KhtmlBorderRadiusTop"+q]=0)}else k+g.offsetWidth>document.body.offsetWidth-this.margin&&(k=document.body.offsetWidth-g.offsetWidth-this.margin),e.isMobile&&(k=Math.max(5,k-Math.floor(g.offsetWidth/2)),n-=20),e.skipUp=a.isContextMenu;g.style.left=k+"px";g.style.top=n+"px";document.selection&&document.selection.empty&&document.selection.empty();return r(a)},Remove:function(a,d){f.Post(["unpost",e.jax]);var b=document.getElementById("MathJax_MenuFrame");b&&(b.parentNode.removeChild(b),this.msieFixedPositionBug&&detachEvent("onresize",e.Resize));e.jax.hover&&(delete e.jax.hover.nofade,v.UnHover(e.jax));return r(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,d,b){for(var c=0,g=this.items.length;c/g,"\x26gt;");var c=k("EqSource","MathJax Equation Source");if(e.isMobile)b.document.open(),b.document.write("\x3chtml\x3e\x3chead\x3e\x3cmeta name\x3d'viewport' content\x3d'width\x3ddevice-width, initial-scale\x3d1.0' /\x3e\x3ctitle\x3e"+c+"\x3c/title\x3e\x3c/head\x3e\x3cbody style\x3d'font-size:85%'\x3e"),b.document.write("\x3cpre\x3e"+a+"\x3c/pre\x3e"),b.document.write("\x3chr\x3e\x3cinput type\x3d'button' value\x3d'"+k("Close","Close")+"' onclick\x3d'window.close()' /\x3e"),b.document.write("\x3c/body\x3e\x3c/html\x3e"),b.document.close();else{b.document.open();b.document.write("\x3chtml\x3e\x3chead\x3e\x3ctitle\x3e"+c+"\x3c/title\x3e\x3c/head\x3e\x3cbody style\x3d'font-size:85%'\x3e");b.document.write("\x3ctable\x3e\x3ctr\x3e\x3ctd\x3e\x3cpre\x3e"+a+"\x3c/pre\x3e\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e");b.document.write("\x3c/body\x3e\x3c/html\x3e");b.document.close();var g=b.document.body.firstChild;setTimeout(function(){var a=b.outerHeight-b.innerHeight||30,c=b.outerWidth-b.innerWidth||30,c=Math.max(100,Math.min(Math.floor(.5*screen.width),g.offsetWidth+c+25)),a=Math.max(40,Math.min(Math.floor(.5*screen.height),g.offsetHeight+a+25));b.resizeTo(c,a);d&&null!=d.screenX&&(c=Math.max(0,Math.min(d.screenX-Math.floor(c/2),screen.width-c-20)),a=Math.max(0,Math.min(d.screenY-Math.floor(a/2),screen.height-a-20)),b.moveTo(c,a))},50)}};e.Scale=function(){var d=g["HTML-CSS"],b=g.NativeMML,c=g.SVG,f=(d||b||c||{config:{scale:100}}).config.scale,h=prompt(k("ScaleMath","Scale all mathematics (compared to surrounding text) by"),f+"%");h&&(h.match(/^\s*\d+(\.\d*)?\s*%?\s*$/)?(h=parseFloat(h))?h!==f&&(d&&(d.config.scale=h),b&&(b.config.scale=h),c&&(c.config.scale=h),e.cookie.scale=h,e.saveCookie(),a.Reprocess()):alert(k("NonZeroScale","The scale should not be zero")):alert(k("PercentScale","The scale should be a percentage (e.g., 120%%)")))};e.Zoom=function(){MathJax.Extension.MathZoom||b.Require("[MathJax]/extensions/MathZoom.js")};e.Renderer=function(){var d=a.outputJax["jax/mml"];if(d[0]!==h.settings.renderer){var b=a.Browser,g,f=e.Renderer.Messages,l;switch(h.settings.renderer){case "NativeMML":h.settings.warnedMML||(b.isChrome&&"24."!==b.version.substr(0,3)?g=f.MML.WebKit:b.isSafari&&!b.versionAtLeast("5.0")?g=f.MML.WebKit:b.isMSIE?b.hasMathPlayer||(g=f.MML.MSIE):g=f.MML[b],l="warnedMML");break;case "SVG":h.settings.warnedSVG||!b.isMSIE||n||(g=f.SVG.MSIE)}if(g){g=k(g[0],g[1]);g=g+"\n\n"+k("SwitchAnyway","Switch the renderer anyway?\n\n(Press OK to switch, CANCEL to continue with the current renderer)");e.cookie.renderer=d[0].id;e.saveCookie();if(!confirm(g)){e.cookie.renderer=h.settings.renderer=c.Cookie.Get("menu").renderer;e.saveCookie();return}l&&(e.cookie.warned=h.settings.warned=!0);e.cookie.renderer=h.settings.renderer;e.saveCookie()}a.Queue(["setRenderer",a,h.settings.renderer,"jax/mml"],["Rerender",a])}};e.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."]}};e.Font=function(){g["HTML-CSS"]&&document.location.reload()};e.Locale=function(){MathJax.Localization.setLocale(h.settings.locale);MathJax.Hub.Queue(["Reprocess",MathJax.Hub])};e.LoadLocale=function(){var a=prompt(k("LoadURL","Load translation data from this URL:"));a&&(a.match(/\.js$/)||alert(k("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(d){d!=b.STATUS.OK&&alert(k("BadData","Failed to load translation data from %1",a))}))};e.MPEvents=function(a){var d=h.settings.discoverable,b=e.MPEvents.Messages;n?!d&&"Menu Events"===a.name[1]&&h.settings.mpContext&&alert(k.apply(k,b.IE9warning)):h.settings.mpMouse&&!confirm(k.apply(k,b.IE8warning))?(delete e.cookie.mpContext,delete h.settings.mpContext,delete e.cookie.mpMouse,delete h.settings.mpMouse,e.saveCookie()):(h.settings.mpContext=h.settings.mpMouse,e.cookie.mpContext=e.cookie.mpMouse=h.settings.mpMouse,e.saveCookie(),MathJax.Hub.Queue(["Rerender",MathJax.Hub]))};e.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."]};a.Browser.Select({MSIE:function(a){var d="BackCompat"===document.compatMode;a=a.versionAtLeast("8.0")&&7document.documentMode,msieFixedPositionBug:d||!a,msieAboutBug:d});n&&(delete h.styles["#MathJax_About"].filter,delete h.styles[".MathJax_Menu"].filter)},Firefox:function(a){e.skipMouseover=a.isMobile&&a.versionAtLeast("6.0");e.skipMousedown=a.isMobile}});e.isMobile=a.Browser.isMobile;e.noContextMenu=a.Browser.noContextMenu;e.CreateLocaleMenu=function(){if(e.menu){var a=e.menu.Find("Language").menu,d=a.items,b=[],c=MathJax.Localization.strings,g;for(g in c)c.hasOwnProperty(g)&&b.push(g);b=b.sort();a.items=[];g=0;for(var f=b.length;gb.charCodeAt(0)?a.VARIANT.ITALIC:a.VARIANT.NORMAL):""},setTeXclass:function(b){this.getPrevClass(b);b=this.data.join("");1c&&(c=(c-55296<<10)+(b.charCodeAt(1)-56320)+65536);for(var f=0,k=this.RANGES.length;f=a)return String.fromCharCode(a);a-=65536;return String.fromCharCode((a>>10)+55296)+String.fromCharCode((a&1023)+56320)}});a.xml=a.mbase.Subclass({type:"xml",Init:function(){this.div=document.createElement("div");return this.SUPER(arguments).Init.apply(this,arguments)},Append:function(){for(var a=0,b=arguments.length;a=g||57344<=g)32>g||126b.input?1:-1}function d(){var a=[],c;for(c=0;c=c.charCodeAt(d);d+=1);return c.slice(d)}function p(a,b,c){if(0==c){var d,e;c=-1;for(d=a.length;c+1>1,a[e]=z[b];I=D;if(""!=e)return D=u[c].ttype,u[c];D=0;b=1;d=a.slice(0,1);for(c=!0;"0"<=d&&"9">=d&&b<=a.length;)d=a.slice(b,b+1),b++;if(d==H&&(d=a.slice(b,b+1),"0"<=d&&"9">=d))for(c=!1,b++;"0"<=d&&"9">=d&&b<=a.length;)d=a.slice(b,b+1),b++;c&&1d||"Z"d||"z"h.charCodeAt(l)?a+String.fromCharCode(b.codes[h.charCodeAt(l)-65]):a+h.charAt(l);"mi"==d[0].nodeName?d[0]=g("mo").appendChild(m.createTextNode(a)):d[0].replaceChild(g("mo").appendChild(m.createTextNode(a)),d[0].childNodes[e])}c=f(b.tag,d[0]);c.setAttribute(b.atname,b.atval)}return[c,d[1]];case 2:a=k(a,b.input.length);d=q(a);if(null==d[0])return[f("mo",m.createTextNode(b.input)),a];n(d[0]);e=q(d[1]);if(null==e[0])return[f("mo",m.createTextNode(b.input)),a];n(e[0]);"root"!=b.input&&"stackrel"!=b.input||l.appendChild(e[0]);l.appendChild(d[0]);"frac"==b.input&&l.appendChild(e[0]);return[f(b.tag,l),e[1]];case 3:return a=k(a,b.input.length),[f("mo",m.createTextNode(b.output)),a];case 6:return a=k(a,b.input.length),c=g("mspace"),c.setAttribute("width","1ex"),l.appendChild(c),l.appendChild(f(b.tag,m.createTextNode(b.output))),c=g("mspace"),c.setAttribute("width","1ex"),l.appendChild(c),[f("mrow",l),a];case 9:B++;a=k(a,b.input.length);d=r(a,!1);B--;h="";null!=d[0].lastChild&&(h=d[0].lastChild.firstChild.nodeValue);if("|"==h)return c=f("mo",m.createTextNode(b.output)),c=f("mrow",c),c.appendChild(d[0]),[c,d[1]];c=f("mo",m.createTextNode(b.output));c=f("mrow",c);return[c,a];default:return a=k(a,b.input.length),[f(b.tag,m.createTextNode(b.output)),a]}}function h(a){var b,c,d,e;a=k(a,0);c=t(a);e=q(a);d=e[0];a=e[1];b=t(a);3==b.ttype&&"/"!=b.input&&(a=k(a,b.input.length),e=q(a),null==e[0]?e[0]=f("mo",m.createTextNode("\u25a1")):n(e[0]),a=e[1],"_"==b.input?(b=t(a),c=7==c.ttype,"^"==b.input?(a=k(a,b.input.length),b=q(a),n(b[0]),a=b[1],d=f(c?"munderover":"msubsup",d),d.appendChild(e[0]),d.appendChild(b[0]),d=f("mrow",d)):(d=f(c?"munder":"msub",d),d.appendChild(e[0]))):(d=f(b.tag,d),d.appendChild(e[0])));return[d,a]}function r(a,b){var c,d,e,g=m.createDocumentFragment();do a=k(a,0),e=h(a),d=e[0],a=e[1],c=t(a),3==c.ttype&&"/"==c.input?(a=k(a,c.input.length),e=h(a),null==e[0]?e[0]=f("mo",m.createTextNode("\u25a1")):n(e[0]),a=e[1],n(d),d=f(c.tag,d),d.appendChild(e[0]),g.appendChild(d),c=t(a)):void 0!=d&&g.appendChild(d);while((5!=c.ttype&&(9!=c.ttype||b)||0==B)&&null!=c&&""!=c.output);if(5==c.ttype||9==c.ttype){d=g.childNodes.length;if(0=d-1&&(this.lastChild=a);this.childNodes[c]=a;a.nextSibling=b.nextSibling;b.nextSibling=b.parent=null;return b},toString:function(){return"{"+this.childNodes.join("")+"}"}}),x=function(){e=MathJax.ElementJax.mml;var a=e.mbase.prototype.Init;e.mbase.Augment({firstChild:null,lastChild:null,nodeValue:"",nextSibling:null,Init:function(){var b=a.apply(this,arguments)||this;b.childNodes=b.data;b.nodeName=b.type;return b},appendChild:function(a){a.parent&&a.parent.removeChild(a);var b=arguments;a.isa(l)&&(b=a.childNodes,a.data=a.childNodes=[],a.firstChild=a.lastChild=null);for(var c=0,d=b.length;c=d-1&&(this.lastChild=a);this.SetData(c,a);a.nextSibling=b.nextSibling;this.nodeValue="";c=0;for(d=this.childNodes.length;c