12345678910111213 |
- /*
- * /MathJax/jax/output/NativeMML/jax.js
- *
- * Copyright (c) 2009-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
- */(function(g,m,x,t){var f,q=m.Browser.isMSIE,n,v,r,w;m.Register.StartupHook("MathZoom Ready",function(){w=MathJax.Extension.MathZoom});var u=function(b,c){var e=t.Element("span");b="padding"+b;c&&(e.style.cssText=c.getAttribute("style")||"",""===e.style.padding&&""===(e.style[b]||"")&&(e.style[b]="0px",c.setAttribute("style",e.style.cssText)))},y=function(b,c,e){if(b){var a=t.Element("span");a.style.cssText=b.getAttribute("style")||"";if(""===a.style.padding){c={paddingLeft:e,paddingTop:c,paddingRight:"0px",paddingBottom:"0px"};for(var d in c)c.hasOwnProperty(d)&&""===(a.style[d]||"")&&(a.style[d]=c[d])}b.setAttribute("style",a.style.cssText)}};g.Augment({config:{styles:{".MathJax_MathML":{"font-style":"normal","font-weight":"normal","line-height":"normal","font-size":"100%","font-size-adjust":"none","text-indent":0,"text-align":"left","text-transform":"none","letter-spacing":"normal","word-spacing":"normal","word-wrap":"normal","white-space":"nowrap","float":"none",direction:"ltr",border:0,padding:0,margin:0},"span.MathJax_MathML":{display:"inline"},"div.MathJax_MathML":{display:"block"},".MathJax_mmlExBox":{display:"block",overflow:"hidden",height:"1px",width:"60ex",padding:0,border:0,margin:0}}},settings:m.config.menuSettings,ex:1,Config:function(){this.SUPER(arguments).Config.call(this);this.settings.scale&&(this.config.scale=this.settings.scale);if("center"!==m.config.displayAlign){var b=m.config.displayAlign,c={"text-align":b+"!important"};c["margin-"+b]=m.config.displayIndent+"!important";m.Insert(this.config.styles,{"div.MathJax_MathML":c,"div.MathJax_MathML math":{"text-align":b},"div.MathJax_MathContainer \x3e span":{"text-align":b+"!important"}})}this.require||(this.require=[]);this.require.push(MathJax.OutputJax.extensionDir+"/MathEvents.js")},Startup:function(){n=MathJax.Extension.MathEvents.Event;v=MathJax.Extension.MathEvents.Touch;r=MathJax.Extension.MathEvents.Hover;this.ContextMenu=n.ContextMenu;this.Mousedown=n.AltContextMenu;this.Mouseover=r.Mouseover;this.Mouseout=r.Mouseout;this.Mousemove=r.Mousemove;q||(this.EmExSpan=t.Element("span",{style:{position:"absolute","font-size-adjust":"none"}},[["div",{className:"MathJax_mmlExBox"}],["span",{className:"MathJax_MathML"}]]),f.math(f.mspace().With({width:"60ex"})).toNativeMML(this.EmExSpan.lastChild));return x.Styles(this.config.styles)},InitializeMML:function(){this.initialized=!0;if(q)try{if(!m.Browser.mpNamespace){var b=document.createElement("object");b.id="mathplayer";b.classid="clsid:32F66A20-7614-11D4-BD11-00104BD3F987";document.getElementsByTagName("head")[0].appendChild(b);document.namespaces.add("m","http://www.w3.org/1998/Math/MathML");m.Browser.mpNamespace=!0}m.Browser.mpImported||(document.namespaces.m.doImport("#mathplayer"),m.Browser.mpImported=!0)}catch(c){alert(MathJax.Localization._(["MathML","MathPlayer"],"MathJax was not able to set up MathPlayer.\n\nIf MathPlayer is not installed, you need to install it first.\nOtherwise, your security settings may be preventing ActiveX \ncontrols from running. Use the Internet Options item under\nthe Tools menu and select the Security tab, then press the\nCustom Level button. Check that the settings for\n'Run ActiveX Controls', and 'Binary and script behaviors'\nare enabled.\n\nCurrently you will see error messages rather than\ntypeset mathematics."))}else document.body.appendChild(this.EmExSpan),this.defaultEx=this.EmExSpan.firstChild.offsetWidth/60,this.defaultMEx=this.EmExSpan.lastChild.offsetWidth/60,document.body.removeChild(this.EmExSpan)},preTranslate:function(b){b=b.jax[this.id];var c,e=b.length,a,d,h;for(c=0;c<e;c++)if(a=b[c],a.parentNode&&(this.initialized||this.InitializeMML(),(d=a.previousSibling)&&"MathJax_MathML"===d.className&&d.parentNode.removeChild(d),d=a.MathJax.elementJax))h=d.root,d.NativeMML={},h="block"===h.Get("display")?"div":"span",d=t.Element(h,{className:"MathJax_MathML",id:d.inputID+"-Frame"},[["span",{className:"MathJax_MathContainer",isMathJax:!0,jaxID:this.id,style:{position:"relative",display:"inline-block","white-space":"nowrap"}},[["span",{isMathJax:!0,style:{display:"inline-block"}}]]]]),a.parentNode.insertBefore(d,a),q||a.parentNode.insertBefore(this.EmExSpan.cloneNode(!0),a);for(c=0;c<e;c++)if(a=b[c],a.parentNode&&(d=a.MathJax.elementJax)){if(q)h=100;else{h=a.previousSibling;a=h.firstChild.offsetWidth/60;h=h.lastChild.offsetWidth/60;if(0===a||"NaN"===a)a=this.defaultEx,h=this.defaultMEx;h=(1<h?a/h:1)*this.config.scale;h=Math.floor(Math.max(this.config.minScaleAdjust/100,h));d.NativeMML.ex=a}d.NativeMML.fontSize=h+"%"}if(!q)for(c=0;c<e;c++)a=b[c],a.parentNode&&a.MathJax.elementJax&&(h=b[c].previousSibling,h.parentNode.removeChild(h))},Translate:function(b){if(b.parentNode){b=b.MathJax.elementJax;var c=b.root,e=document.getElementById(b.inputID+"-Frame"),a=e.firstChild,d=a.firstChild;e.style.fontSize=b.NativeMML.fontSize;this.ex=b.NativeMML.ex||this.defaultEx;try{c.toNativeMML(d)}catch(l){if(l.restart)for(;d.firstChild;)d.removeChild(d.firstChild);throw l;}if(q)if(a.addEventListener)for(var h in this.MSIE9events)this.MSIE9events.hasOwnProperty(h)&&a.addEventListener(h,this.MSIE9event,!0);else!(null!=this.config.showMathMenuMSIE?this:m).config.showMathMenuMSIE||this.settings.mpContext||this.settings.mpMouse?(a.style.position="",d.firstChild.onmousedown=this.MSIEaltMenu):this.MSIEoverlay(a);else a.oncontextmenu=n.Menu,a.onmouseover=n.Mouseover,a.onmouseout=n.Mouseout,a.onmousedown=n.Mousedown,a.onclick=n.Click,a.ondblclick=n.DblClick,m.Browser.noContextMenu&&(a.ontouchstart=v.start,a.ontouchend=v.end)}},postTranslate:function(b){this.forceReflow&&(b=(document.styleSheets||[])[0]||{},b.disabled=!0,b.disabled=!1)},Remove:function(b){(b=b.SourceElement())&&(b=b.previousSibling)&&b.className.match(/MathJax_MathML/)&&b.parentNode.removeChild(b)},MMLnamespace:"http://www.w3.org/1998/Math/MathML",MSIEoverlay:function(b){var c=b.firstChild;"span"===c.nodeName.toLowerCase()&&(c=c.firstChild);var e=this.getHoverBBox(null,c,{});t.addElement(b,"span",{style:{display:"inline-block",width:0,height:0,position:"relative"}},[["span",{isMathJax:!0,className:"MathJax_MathPlayer_Overlay",style:{display:"inline-block",position:"absolute",left:r.Px(-e.w),top:r.Px(-e.h-(e.y||0)-1),width:r.Px(e.w),height:r.Px(e.h+e.d),cursor:"pointer","background-color":"white",filter:"alpha(opacity\x3d0)"}}]]);m.Insert(b,{msieMath:c,onmousedown:this.MSIEevent,oncontextmenu:this.MSIEevent,onclick:this.MSIEevent,onmouseup:this.MSIEevent,onmousemove:this.MSIEevent,ondblclick:this.MSIEevent,onmouseover:this.MSIEevent,onmouseout:this.MSIEevent})},MSIEevents:{mousedown:"Mousedown",contextmenu:"ContextMenu",click:"Click",mouseup:"Mouseup",mousemove:"Mousemove",dblclick:"DblClick",mouseover:"Mouseover",mouseout:"Mouseout"},MSIEevent:function(){var b=window.event,c=g.MSIEevents[b.type];if(g[c]&&!1===g[c](b,this)||w&&!1===w.HandleEvent(b,c,this))return!1;"MathJax_MathPlayer_Overlay"===b.srcElement.className&&this.msieMath.fireEvent&&("ContextMenu"!==c&&"Mouseover"!==c&&"Mouseout"!==c||this.msieMath.fireEvent("on"+b.type,b));return n.False(b)},MSIEaltMenu:function(){for(var b=this.parentNode.parentNode;!b.jaxID;)b=b.parentNode;n.AltContextMenu(window.event,b)},MSIE9events:{contextmenu:"Menu",click:"Click",dblclick:"DblClick",mouseup:"False",mouseover:"Mouseover",mouseout:"Mouseout"},MSIE9event:function(b){return"contextmenu"===b.type&&g.settings.mpContext||"mouseup"===b.type&&g.settings.mpMouse?!0:"click"===b.type&&g.settings.mpContext?n.AltContextMenu(b,this):n[g.MSIE9events[b.type]].call(this,b)},getJaxFromMath:function(b){b=b.parentNode;do b=b.nextSibling;while(b&&"script"!==b.nodeName.toLowerCase());return m.getJaxFor(b)},getHoverSpan:function(b,c){return c.firstChild},getHoverBBox:function(b,c,e){return n.getBBox(c.parentNode)},Zoom:function(b,c,e,a,d){b.root.toNativeMML(c);this.msieIE8HeightBug&&(c.style.position="absolute");b=e.offsetWidth||e.scrollWidth;e=e.offsetHeight||e.scrollHeight;a=c.offsetWidth;d=c.offsetHeight;if(g.widthBug){var h=c.firstChild.firstChild.scrollWidth;h>a&&(a=h,c.style.width=a+"px")}this.msieIE8HeightBug&&(c.style.position="");return{Y:-n.getBBox(c.parentNode).h,mW:b,mH:e,zW:a,zH:d}},NAMEDSPACE:{negativeveryverythinmathspace:"-.0556em",negativeverythinmathspace:"-.1111em",negativethinmathspace:"-.1667em",negativemediummathspace:"-.2222em",negativethickmathspace:"-.2778em",negativeverythickmathspace:"-.3333em",negativeveryverythickmathspace:"-.3889em"}});m.Register.StartupHook("mml Jax Ready",function(){f=MathJax.ElementJax.mml;f.mbase.Augment({toNativeMML:function(e){var a=this.NativeMMLelement(this.type);this.NativeMMLattributes(a);for(var d=0,b=this.data.length;d<b;d++)this.data[d]?this.data[d].toNativeMML(a):a.appendChild(this.NativeMMLelement("mrow"));e.appendChild(a)},NativeMMLattributes:function(e){var a=this.defaults,d=this.attrNames||f.copyAttributeNames,b=f.skipAttributes;if(!this.attrNames){"mstyle"===this.type&&(a=f.math.prototype.defaults);for(var c in a)!b[c]&&a.hasOwnProperty(c)&&null!=this[c]&&e.setAttribute(c,this.NativeMMLattribute(this[c]))}a=0;for(b=d.length;a<b;a++)c=(this.attr||{})[d[a]],null==c&&(c=this[d[a]]),null!=c&&e.setAttribute(d[a],this.NativeMMLattribute(c));this.NativeMMLclass(e)},NativeMMLclass:function(e){var a=[];this["class"]&&a.push(this["class"]);if(this.isa(f.TeXAtom)){var d="ORD OP BIN REL OPEN CLOSE PUNCT INNER VCENTER".split(" ")[this.texClass];d&&a.push("MJX-TeXAtom-"+d)}this.mathvariant&&this.NativeMMLvariants[this.mathvariant]&&a.push("MJX"+this.mathvariant);this.arrow&&a.push("MJX-arrow");this.variantForm&&a.push("MJX-variant");a.length&&e.setAttribute("class",a.join(" "))},NativeMMLattribute:function(e){e=String(e);g.NAMEDSPACE[e]?e=g.NAMEDSPACE[e]:e.match(/^\s*(([-+])?(\d+(\.\d*)?|\.\d+))\s*mu\s*$/)?e=RegExp.$2+(1/18*RegExp.$3).toFixed(3).replace(/\.?0+$/,"")+"em":this.NativeMMLvariants[e]&&(e=this.NativeMMLvariants[e]);return e},NativeMMLvariants:{"-tex-caligraphic":f.VARIANT.SCRIPT,"-tex-caligraphic-bold":f.VARIANT.BOLDSCRIPT,"-tex-oldstyle":f.VARIANT.NORMAL,"-tex-oldstyle-bold":f.VARIANT.BOLD,"-tex-mathit":f.VARIANT.ITALIC},NativeMMLelement:function(e){e=q?document.createElement("m:"+e):document.createElementNS(g.MMLnamespace,e);e.isMathJax=!0;return e}});f.mrow.Augment({toNativeMML:function(e){var a,d;if(this.inferred&&this.parent.inferRow)for(a=0,d=this.data.length;a<d;a++)this.data[a]?this.data[a].toNativeMML(e):e.appendChild(this.NativeMMLelement("mrow"));else if(g.stretchyMoBug&&(this.open||this.close)){var b=this.NativeMMLelement("mfenced");this.NativeMMLattributes(b);a=0;d=this.data.length;this.open&&(b.setAttribute("open",this.open),a++);this.close&&(b.setAttribute("close",this.close),d--);var c=b;1<d-a+1&&(c=this.NativeMMLelement("mrow"),e.appendChild(b),e=b);for(;a<d;a++)this.data[a]?this.data[a].toNativeMML(c):c.appendChild(this.NativeMMLelement("mrow"));e.appendChild(c)}else this.SUPER(arguments).toNativeMML.call(this,e)}});f.msubsup.Augment({toNativeMML:function(e){var a=this.type;null==this.data[this.sup]&&(a="msub");null==this.data[this.sub]&&(a="msup");a=this.NativeMMLelement(a);this.NativeMMLattributes(a);delete this.data[0].inferred;for(var b=0,c=this.data.length;b<c;b++)this.data[b]&&this.data[b].toNativeMML(a);e.appendChild(a)}});f.munderover.Augment({toNativeMML:function(b){var a=this.type;null==this.data[this.under]&&(a="mover");null==this.data[this.over]&&(a="munder");a=this.NativeMMLelement(a);this.NativeMMLattributes(a);delete this.data[0].inferred;for(var d=0,c=this.data.length;d<c;d++)this.data[d]&&this.data[d].toNativeMML(a);b.appendChild(a)}});if(!q){var b=MathJax.Hub.SplitList;f.mtable.Augment({toNativeMML:function(e){var a,d;if(g.tableSpacingBug){a=this.getValues("rowspacing","columnspacing");this.nMMLtopPadding=b("0px "+a.rowspacing);this.nMMLleftPadding=b("0px "+a.columnspacing);var c=this.nMMLtopPadding,l=c.length;a=0;for(d=this.data.length;a<d;a++)this.data[a]&&(this.data[a].nMMLtopPadding=c[a<l?a:l-1])}if(g.tableLabelBug)for(a=0,d=this.data.length;a<d;a++)if(this.data[a]&&this.data[a].isa(f.mlabeledtr)){var k=m.config.displayAlign.charAt(0),p=this.Get("side").charAt(0);this.nMMLhasLabels=!0;this.nMMLlaMatch=k===p;this.nMMLforceWidth="c"===k||!!(this.width||"").match("%");break}this.width&&this.ffTableWidthBug&&(a=(this.style||"").replace(/;\s*$/,"").split(";"),""===a[0]&&a.shift(),a.push("width:"+this.width),this.style=a.join(";"));this.SUPER(arguments).toNativeMML.call(this,e);if(this.nMMLhasLabels){a=e.firstChild;if(this.nMMLforceWidth||"r"!==p)if(k=("l"!==k?1:0)+("l"===p?1:0)){var p={columnalign:"left",columnwidth:"auto",columnspacing:"0px",columnlines:"none"},n;for(n in p)p.hasOwnProperty(n)&&this[n]&&(d=[p[n],p[n]].slice(2-k).join(" ")+" ",a.setAttribute(n,d+a.getAttribute(n)))}!this.nMMLforceWidth&&this.nMMLlaMatch||a.setAttribute("width","100%")}}});f.mtr.Augment({toNativeMML:function(b){this.SUPER(arguments).toNativeMML.call(this,b);var a=b.lastChild;if(g.tableSpacingBug)for(var d=this.parent.nMMLleftPadding,c=d.length,l=a.firstChild,k=0;l;l=l.nextSibling,k++)y(l,this.nMMLtopPadding,d[k<c?k:c-1]);if(g.tableLabelBug&&(d=this.parent.nMMLforceWidth,c=this.parent.Get("side").charAt(0),l=m.config.displayAlign.charAt(0),this.parent.nMMLhasLabels&&a.firstChild)){if(d||"r"!==c)u("Left",a.firstChild),"l"!==l&&a.insertBefore(this.NativeMMLelement("mtd"),a.firstChild).setAttribute("style","padding:0"),"l"===c&&a.insertBefore(this.NativeMMLelement("mtd"),a.firstChild).setAttribute("style","padding:0");(d||"l"!==c)&&u("Right",a.lastChild)}}});f.mlabeledtr.Augment({toNativeMML:function(b){var a=this.NativeMMLelement("mtr");this.NativeMMLattributes(a);for(var d=1,c=this.data.length;d<c;d++)this.data[d]?this.data[d].toNativeMML(a):a.appendChild(this.NativeMMLelement("mtd"));if(g.tableSpacingBug)for(var c=this.parent.nMMLleftPadding,l=c.length,d=0,k=a.firstChild;k;k=k.nextSibling,d++)y(k,this.nMMLtopPadding,c[d<l?d:l-1]);if(g.tableLabelBug){var d=this.parent.Get("side").charAt(0),c=m.config.displayAlign.charAt(0),p=m.config.displayIndent;this.data[0].toNativeMML(a);k=l=a.lastChild;d===c?(l.setAttribute("style","width:"+p),l.setAttribute("columnalign",m.config.displayAlign)):(k=this.NativeMMLelement("mpadded"),k.setAttribute("style","width:0"),k.setAttribute("width","0px"),k.appendChild(l.firstChild),l.appendChild(k));u("",l);a.removeChild(l);var p=100,f=this.parent.nMMLforceWidth;(this.parent.width||"").match(/%/)&&(p-=parseFloat(this.parent.width));var n=p;if(f||"r"!==d)u("Left",a.firstChild),"l"!==c&&("c"===c&&(n/=2),p-=n,a.insertBefore(this.NativeMMLelement("mtd"),a.firstChild).setAttribute("style","padding:0;width:"+n+"%")),"l"===d&&a.insertBefore(l,a.firstChild);if(f||"l"!==d)u("Right",a.lastChild),"r"!==c&&a.appendChild(this.NativeMMLelement("mtd")).setAttribute("style","padding:0;width:"+p+"%"),"r"===d&&(d!==c&&k.setAttribute("lspace","-1width"),a.appendChild(l))}b.appendChild(a)}});f.mtd.Augment({toNativeMML:function(b){b=b.appendChild(this.NativeMMLelement(this.type));this.NativeMMLattributes(b);g.widthBug&&(b=b.appendChild(this.NativeMMLelement("mrow")));for(var a=0,c=this.data.length;a<c;a++)this.data[a]?this.data[a].toNativeMML(b):b.appendChild(this.NativeMMLelement("mrow"))}});f.mspace.Augment({toNativeMML:function(b){this.SUPER(arguments).toNativeMML.call(this,b);if(g.spaceWidthBug&&this.width){var a=b.lastChild,c=a.getAttribute("width"),h=a.getAttribute("style")||"";""!=h&&(h+=";");a.setAttribute("style",h+"width:"+c)}}});var c=MathJax.Ajax.fileURL(MathJax.OutputJax.fontDir+"/HTML-CSS/TeX/otf");g.Augment({config:{styles:{'[mathvariant\x3d"double-struck"]':{"font-family":"MathJax_AMS, MathJax_AMS-WEB"},'[mathvariant\x3d"script"]':{"font-family":"MathJax_Script, MathJax_Script-WEB"},'[mathvariant\x3d"fraktur"]':{"font-family":"MathJax_Fraktur, MathJax_Fraktur-WEB"},'[mathvariant\x3d"bold-script"]':{"font-family":"MathJax_Script, MathJax_Caligraphic-WEB","font-weight":"bold"},'[mathvariant\x3d"bold-fraktur"]':{"font-family":"MathJax_Fraktur, MathJax_Fraktur-WEB","font-weight":"bold"},'[mathvariant\x3d"monospace"]':{"font-family":"monospace"},'[mathvariant\x3d"sans-serif"]':{"font-family":"sans-serif"},'[mathvariant\x3d"bold-sans-serif"]':{"font-family":"sans-serif","font-weight":"bold"},'[mathvariant\x3d"sans-serif-italic"]':{"font-family":"sans-serif","font-style":"italic"},'[mathvariant\x3d"sans-serif-bold-italic"]':{"font-family":"sans-serif","font-style":"italic","font-weight":"bold"},'[class\x3d"MJX-tex-oldstyle"]':{"font-family":"MathJax_Caligraphic, MathJax_Caligraphic-WEB"},'[class\x3d"MJX-tex-oldstyle-bold"]':{"font-family":"MathJax_Caligraphic, MathJax_Caligraphic-WEB","font-weight":"bold"},'[class\x3d"MJX-tex-caligraphic"]':{"font-family":"MathJax_Caligraphic, MathJax_Caligraphic-WEB"},'[class\x3d"MJX-tex-caligraphic-bold"]':{"font-family":"MathJax_Caligraphic, MathJax_Caligraphic-WEB","font-weight":"bold"},"@font-face /*1*/":{"font-family":"MathJax_AMS-WEB",src:"url('"+c+"/MathJax_AMS-Regular.otf')"},"@font-face /*2*/":{"font-family":"MathJax_Script-WEB",src:"url('"+c+"/MathJax_Script-Regular.otf')"},"@font-face /*3*/":{"font-family":"MathJax_Fraktur-WEB",src:"url('"+c+"/MathJax_Fraktur-Regular.otf')"},"@font-face /*4*/":{"font-family":"MathJax_Caligraphic-WEB",src:"url('"+c+"/MathJax_Caligraphic-Regular.otf')"},"@font-face /*5*/":{"font-family":"MathJax_Fraktur-WEB","font-weight":"bold",src:"url('"+c+"/MathJax_Fraktur-Bold.otf')"},"@font-face /*6*/":{"font-family":"MathJax_Caligraphic-WEB","font-weight":"bold",src:"url('"+c+"/MathJax_Caligraphic-Bold.otf')"}}}})}f.math.Augment({toNativeMML:function(b){var a=this.NativeMMLelement(this.type),c=a;a.setAttribute("xmlns",g.MMLnamespace);this.NativeMMLattributes(a);g.widthBug&&(a=a.appendChild(this.NativeMMLelement("mrow")));for(var h=0,l=this.data.length;h<l;h++)this.data[h]?this.data[h].toNativeMML(a):a.appendChild(this.NativeMMLelement("mrow"));h=(this.data[0]||[]).data[0]||{};if(h.nMMLhasLabels){if(h.nMMLforceWidth||!h.nMMLlaMatch)a.setAttribute("style","width:100%"),b.style.width=b.parentNode.style.width="100%";h.nMMLlaMatch&&"div"===b.parentNode.parentNode.nodeName.toLowerCase()&&b.parentNode.parentNode.style.setProperty("margin-"+m.config.displayAlign,"0px","important")}b.appendChild(c);g.widthBug&&!h.nMMLforceWidth&&h.nMMLlaMatch&&(b.style.width=(c.firstChild.scrollWidth/g.ex).toFixed(3)+"ex")}});f.mfenced.Augment({toNativeMML:function(b){if(g.mfencedBug){var a=m.Browser.isOpera,c,h,l,k=this.getValues("open","close","separators");k.open=k.open.replace(/^\s+/,"").replace(/\s+$/,"");k.close=k.close.replace(/^\s+/,"").replace(/\s+$/,"");k.separators=k.separators.replace(/\s+/g,"").split("");if(0==k.separators.length)k.separators=null;else if(k.separators.length<this.data.length-1)for(h=k.separators[k.separators.length-1],c=this.data.length-1-k.separators.length;0<c;c--)k.separators.push(h);var f=this.NativeMMLelement(a?this.type:"mrow");this.NativeMMLattributes(f);f.removeAttribute("separators");a?(f.setAttribute("open",k.open),f.setAttribute("close",k.close),1<this.data.length&&(b.appendChild(f),b=f,f=this.NativeMMLelement("mrow"))):(f.removeAttribute("open"),f.removeAttribute("close"));a||(l=this.NativeMMLelement("mo"),l.setAttribute("fence","true"),l.textContent=k.open,f.appendChild(l));c=0;for(h=this.data.length;c<h;c++)k.separators&&0<c&&(l=this.NativeMMLelement("mo"),l.setAttribute("separator","true"),l.textContent=k.separators[c-1],f.appendChild(l)),this.data[c]?this.data[c].toNativeMML(f):f.appendChild(this.NativeMMLelement("mrow"));a||(l=this.NativeMMLelement("mo"),l.setAttribute("fence","true"),l.textContent=k.close,f.appendChild(l));b.appendChild(f)}else this.SUPER(arguments).toNativeMML.call(this,b)}});f.TeXAtom.Augment({toNativeMML:function(b){var a=this.NativeMMLelement("mrow");this.NativeMMLattributes(a);this.data[0].toNativeMML(a);b.appendChild(a)}});f.chars.Augment({toNativeMML:function(b){b.appendChild(document.createTextNode(this.toString()))}});f.entity.Augment({toNativeMML:function(b){b.appendChild(document.createTextNode(this.toString()))}});f.xml.Augment({toNativeMML:function(b){for(var a=0,c=this.data.length;a<c;a++)b.appendChild(this.data[a].cloneNode(!0))}});m.Register.StartupHook("TeX mathchoice Ready",function(){f.TeXmathchoice.Augment({toNativeMML:function(b){this.Core().toNativeMML(b)}})});setTimeout(MathJax.Callback(["loadComplete",g,"jax.js"]),0)});m.Browser.Select({MSIE:function(b){g.msieIE8HeightBug=8===(document.documentMode||0)},Opera:function(b){g.operaPositionBug=!0;g.stretchyMoBug=!0;g.tableLabelBug=!0;g.mfencedBug=!0},Firefox:function(b){g.ffTableWidthBug=!b.versionAtLeast("13.0");g.forceReflow=!0;g.widthBug=!0;g.spaceWidthBug=!b.versionAtLeast("20.0");g.tableSpacingBug=!0;g.tableLabelBug=!0;g.mfencedBug=!0},Chrome:function(b){g.tableSpacingBug=!0;g.tableLabelBug=!0;g.mfencedBug=!0},Safari:function(b){g.tableSpacingBug=!0;g.tableLabelBug=!0;g.mfencedBug=!0}});m.Register.StartupHook("End Cookie",function(){"None"!==m.config.menuSettings.zoom&&x.Require("[MathJax]/extensions/MathZoom.js")})})(MathJax.OutputJax.NativeMML,MathJax.Hub,MathJax.Ajax,MathJax.HTML);
|