e)r++,e=(e-55296<<10)+(d.charCodeAt(r)-56320)+65536,this.FONTDATA.RemapPlane1&&(b=this.FONTDATA.RemapPlane1(e,b),e=b.n,b=b.variant);else{var p,t=this.FONTDATA.RANGES;f=0;for(p=t.length;f=t[f].low&&e<=t[f].high){t[f].remap&&t[f].remap[e]?e=A+t[f].remap[e]:(e=e-t[f].low+A,t[f].add&&(e+=t[f].add));b["variant"+t[f].offset]&&(b=this.FONTDATA.VARIANT[b["variant"+t[f].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(r+1),r=0,n=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(r+1),r=0,n=d.length,e=e.charCodeAt(0)));f=this.lookupChar(b,e);b=f[e];if(m||!this.checkFont(f,l.style)&&!b[5].img)c.length&&(this.addText(l,c),c=""),p=!!l.style.fontFamily||!!a.style.fontStyle||!!a.style.fontWeight||!f.directory||m,m=!1,l!==a&&(p=!this.checkFont(f,a.style),l=a),p&&(l=this.addElement(a,"span",{isMathJax:!0,subSpan:!0})),this.handleFont(l,f,l!==a);c=this.handleChar(l,f,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&&f.skew&&f.skew[e]&&(a.bbox.skew=f.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 g=c.style||"normal";c=c.weight||"normal";if("normal"!==g||d)a.style.fontStyle=g;if("normal"!==c||d)a.style.fontWeight=c}},handleChar:function(a,c,d,g,e){var f=d[5];if(f.space)return e.length&&this.addText(a,e),b.createShift(a,d[2]/1E3),"";if(f.img)return this.handleImg(a,c,d,g,e);if(f.isUnknown&&this.FONTDATA.DELIMITERS[g])return e.length&&this.addText(a,e),e=a.scale,b.createDelimiter(a,g,0,1,c),"V"===this.FONTDATA.DELIMITERS[g].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==f.c&&(65535>=g?f.c=String.fromCharCode(g):(c=g-65536,f.c=String.fromCharCode((c>>10)+55296)+String.fromCharCode((c&1023)+56320)));if(f.rfix)return this.addText(a,e+f.c),b.createShift(a,f.rfix/1E3),"";if(d[2]||!this.msieAccentBug||e.length)return e+f.c;b.createShift(a,d[3]/1E3);b.createShift(a,(d[4]-d[3])/1E3);this.addText(a,f.c);b.createShift(a,-d[4]/1E3);return""},handleImg:function(a,b,d,c,e){return e},lookupChar:function(a,c){var d,g;if(!a.FONTS){var e=this.FONTDATA.FONTS,f=a.fonts||this.FONTDATA.VARIANT.normal.fonts;f instanceof Array||(f=[f]);a.fonts!=f&&(a.fonts=f);a.FONTS=[];d=0;for(g=f.length;dc.d&&(c.d=g.d);g.h>c.h&&(c.h=g.h);null!=g.D&&g.D>c.D&&(c.D=g.D);null!=g.H&&g.H>c.H&&(c.H=g.H);d.style.paddingLeft&&(c.w+=b.unEm(d.style.paddingLeft)*(d.scale||1));c.w+g.lwc.rw&&(c.rw=c.w+g.rw);c.w+=g.w;d.style.paddingRight&&(c.w+=b.unEm(d.style.paddingRight)*(d.scale||1));g.width&&(c.width=g.width,c.minWidth=g.minWidth);g.ic?c.ic=g.ic:delete c.ic;c.exactW&&!g.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,d){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,g=this.Parent();g&&g.isEmbellished()&&g.Core()===d;)d=g,g=g.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&&(2g.w&&1===d.length&&!c.noIC&&(g.ic=g.rw-g.w,b.createBlank(a,g.ic),g.w=g.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,g=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 g=this.data[0].toHTML(a);null!=c?this.data[0].HTMLstretchV(a,b,c):null!=b&&this.data[0].HTMLstretchH(a,b);a.bbox=g.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),g=b.createBox(c);b.MeasureSpans([this.HTMLboxChild(0,d),this.HTMLboxChild(1,g)]);var e=this.getValues("displaystyle","linethickness","numalign","denomalign","bevelled"),f=this.HTMLgetScale(),k=e.displaystyle,l=b.TeX.axis_height*f;if(e.bevelled){var e=k?.4:.15,m=Math.max(d.bbox.h+d.bbox.d,g.bbox.h+g.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(g,d.bbox.w+c.bbox.w-e,(g.bbox.d-g.bbox.h)/2+l-e)}else{var m=Math.max(d.bbox.w,g.bbox.w),r=b.thickness2em(e.linethickness,f),n,p,t=b.TeX.min_rule_thickness/this.em;k?(n=b.TeX.num1,p=b.TeX.denom1):(n=0===r?b.TeX.num3:b.TeX.num2,p=b.TeX.denom2);n*=f;p*=f;0===r?(f=Math.max((k?7:3)*b.TeX.rule_thickness,2*t),k=n-d.bbox.d-(g.bbox.h-p),km&&(l=(e.bbox.h+e.bbox.d-(m-k))/2);m=b.FONTDATA.DELIMITERS[b.FONTDATA.RULECHAR];!m||nf?b.createRule(g,0,k,n):b.createDelimiter(g,b.FONTDATA.RULECHAR,n,f);m=p.bbox.h+l+k;l=m*b.rfuzz;e.isMultiChar&&(l=b.rfuzz);t=this.HTMLaddRoot(c,e,t,e.bbox.h+e.bbox.d-m,f);b.placeBox(e,t,m-e.bbox.h);b.placeBox(g,t+e.bbox.w,m-g.bbox.h+l);b.placeBox(d,t+e.bbox.w,0);this.HTMLhandleSpace(a);this.HTMLhandleColor(a);return a},HTMLaddRoot:function(a,b,c,g,e){return c}});k.mroot.Augment({toHTML:k.msqrt.prototype.toHTML,HTMLaddRoot:function(a,c,d,g,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();g=this.HTMLrootHeight(c.bbox.h+c.bbox.d,e,a)-g;e=Math.min(a.bbox.w,a.bbox.rw);d=Math.max(e,c.offset);b.placeBox(a,d-e,g);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;bf&&(f=l[p].bbox.w),!n[p]&&f>m&&(m=f));null==d&&null!=c?m=c:m==-b.BIGDIMEN&&(m=f);p=f=0;for(t=this.data.length;pf&&(f=r.bbox.w));c=b.TeX.rule_thickness;d=b.FONTDATA.TeX_factor;var n=l[this.base]||{bbox:this.HTMLzeroBBox()},F,A,C,z=0;n.bbox.ic&&(z=1.3*n.bbox.ic+.05);p=0;for(t=this.data.length;pc&&(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:!g||e,msiePlaceBoxBug:g&&!e,msieClipRectBug:!g,msieNegativeSpaceBug:e,cloneNodeBug:g&&"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||g.config.root.match(/^https?:\/\//)||(g.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=g.config["HTML-CSS"])?(a.availableFonts=[],a.preferredFont=null):g.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"!==g.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,g=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"),n=k.width.match(/%$/),l=g.createStack(b),m=this.HTMLgetScale(),t=this.HTMLgetMu(b),p=[],a=[],h=[],d=[],u=[],e,f,q=-1,y,v,r,B,w,F,A=[],C=g.FONTDATA.baselineskip*m*k.useHeight,z,G=g.FONTDATA.lineH*m,N=g.FONTDATA.lineD*m;e=0;for(y=this.data.length;eq&&(q=f),u[f]=g.createStack(g.createBox(l)),h[f]=-g.BIGDIMEN),d[e][f]=g.createBox(u[f]),A.push(B.data[f-r].toHTML(d[e][f]));g.MeasureSpans(A);e=0;for(y=this.data.length;ep[e]&&(p[e]=A*J.h/z),A*J.d/z>a[e]&&(a[e]=A*J.d/z)}else F.HTMLcanStretch("Horizontal")&&(A=g.length2em(A,t,J.w),A>h[f]&&(h[f]=A))}d[e][f].bbox.h>p[e]&&(p[e]=d[e][f].bbox.h);d[e][f].bbox.d>a[e]&&(a[e]=d[e][f].bbox.d);d[e][f].bbox.w>h[f]&&(h[f]=d[e][f].bbox.w)}p[0]+a[0]&&(p[0]=Math.max(p[0],G));p[d.length-1]+a[d.length-1]&&(a[d.length-1]=Math.max(a[d.length-1],N));var I=MathJax.Hub.SplitList,A=I(k.columnspacing),G=I(k.rowspacing);v=I(k.columnalign);var x=I(k.rowalign),J=I(k.columnlines),N=I(k.rowlines),D=I(k.columnwidth),H=[];e=0;for(y=A.length;ef&&(f=d.length+1+f),1>f?f=1:f>d.length&&(f=d.length),I=0,m=-(z+e)+p[0],e=0,y=f-1;eK)for(E=(E-K)/z,e=0,y=r.length;e