/* * /MathJax/jax/output/HTML-CSS/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(v,t,e){var k,x=function(){var a=[].slice.call(arguments,0);a[0][0]=["HTML-CSS",a[0][0]];return MathJax.Message.Set.apply(MathJax.Message,a)},A=MathJax.Object.Subclass({timeout:1E3*(t.Browser.isMobile?15:8),FontInfo:{STIX:{family:"STIXSizeOneSym",testString:"() {} []"},TeX:{family:"MathJax_Size1",testString:"() {} []"}},comparisonFont:"sans-serif monospace script Times Courier Arial Helvetica".split(" "),testSize:["40px","50px","60px","30px","20px"],Init:function(){this.div=MathJax.HTML.addElement(document.body,"div",{id:"MathJax_Font_Test",style:{position:"absolute",visibility:"hidden",top:0,left:0,width:"auto",padding:0,border:0,margin:0,whiteSpace:"nowrap",textAlign:"left",textIndent:0,textTransform:"none",lineHeight:"normal",letterSpacing:"normal",wordSpacing:"normal",fontSize:this.testSize[0],fontWeight:"normal",fontStyle:"normal",fontSizeAdjust:"none"}},[""]);this.text=this.div.firstChild},findFont:function(a,b){if(b&&this.testCollection(b))return b;for(var c=0,f=a.length;c=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 c=a.HTMLCSSlast,f=a.HTMLCSSeqn;cb&&this.msieNegativeBBoxBug)b=-a.offsetWidth,c=a.parentNode.offsetHeight;else{if(this.initialSkipBug){var d=a.style.position;a.style.position="absolute";f=this.startMarker;a.insertBefore(f,a.firstChild)}a.appendChild(this.endMarker);b=this.endMarker.offsetLeft-f.offsetLeft;a.removeChild(this.endMarker);this.initialSkipBug&&(a.removeChild(f),a.style.position=d)}null!=c&&(a.parentNode.HH=c/this.em);return b/this.em},Measured:function(a,b){var c=a.bbox;if(null==c.width&&c.w&&!c.isMultiline){var f=this.getW(a);c.rw+=f-c.w;c.w=f;c.exactW=!0}b||(b=a.parentNode);b.bbox||(b.bbox=c);return a},Remeasured:function(a,b){b.bbox=this.Measured(a,b).bbox},MeasureSpans:function(a){var b=[],c,f,d,g,e;f=0;for(d=a.length;fg.w&&this.msieNegativeBBoxBug?b.push([c]):this.initialSkipBug?(g=this.startMarker.cloneNode(!0),e=this.endMarker.cloneNode(!0),c.insertBefore(g,c.firstChild),c.appendChild(e),b.push([c,g,e,c.style.position]),c.style.position="absolute"):(e=this.endMarker.cloneNode(!0),c.appendChild(e),b.push([c,null,e]));f=0;for(d=b.length;fg.w&&this.msieNegativeBBoxBug?(a=-c.offsetWidth,e.HH=e.offsetHeight/this.em):a=b[f][2].offsetLeft-((b[f][1]||{}).offsetLeft||0),a/=this.em,g.rw+=a-g.w,g.w=a,g.exactW=!0,e.bbox||(e.bbox=g);f=0;for(d=b.length;fMath.abs(a)?"0em":a.toFixed(3).replace(/\.?0+$/,"")+"em"},EmRounded:function(a){a=(Math.round(a*e.em)+.05)/e.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,b,c){"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 e.BIGDIMEN;var f=this.FONTDATA.TeX_factor;if(a.match(/mathspace$/))return e.MATHSPACE[a]*f;var d=a.match(/^\s*([-+]?(?:\.\d+|\d+(?:\.\d*)?))?(pt|em|ex|mu|px|pc|in|mm|cm|%)?/);a=parseFloat(d[1]||"1");d=d[2];null==c&&(c=1);null==b&&(b=1);return"em"===d?a*f:"ex"===d?a*e.TeX.x_height*f:"%"===d?a/100*c:"px"===d?a/e.em:"pt"===d?a/10*f:"pc"===d?1.2*a*f:"in"===d?a*this.pxPerInch/e.em:"cm"===d?a*this.pxPerInch/e.em/2.54:"mm"===d?a*this.pxPerInch/e.em/25.4:"mu"===d?a/18*f*b:a*f*c},thickness2em:function(a,b){var c=e.TeX.rule_thickness;return a===k.LINETHICKNESS.MEDIUM?c:a===k.LINETHICKNESS.THIN?.67*c:a===k.LINETHICKNESS.THICK?1.67*c:this.length2em(a,b,c)},getPadding:function(a){var b={top:0,right:0,bottom:0,left:0},c=!1,f;for(f in b)if(b.hasOwnProperty(f)){var d=a.style["padding"+f.charAt(0).toUpperCase()+f.substr(1)];d&&(b[f]=this.length2em(d),c=!0)}return c?b:!1},getBorders:function(a){var b={top:0,right:0,bottom:0,left:0},c={},f=!1,d;for(d in b)if(b.hasOwnProperty(d)){var e="border"+d.charAt(0).toUpperCase()+d.substr(1);a.style[e+"Style"]&&(f=!0,b[d]=this.length2em(a.style[e+"Width"]),c[e]=[a.style[e+"Width"],a.style[e+"Style"],a.style[e+"Color"]].join(" "))}b.css=c;return f?b:!1},setBorders:function(a,b){if(b)for(var c in b.css)b.css.hasOwnProperty(c)&&(a.style[c]=b.css[c])},createStrut:function(a,b,c){b=this.Element("span",{isMathJax:!0,style:{display:"inline-block",overflow:"hidden",height:b+"px",width:"1px",marginRight:"-1px"}});c?a.insertBefore(b,a.firstChild):a.appendChild(b);return b},createBlank:function(a,b,c){b=this.Element("span",{isMathJax:!0,style:{display:"inline-block",overflow:"hidden",height:"1px",width:this.Em(b)}});c?a.insertBefore(b,a.firstChild):a.appendChild(b);return b},createShift:function(a,b,c){b=this.Element("span",{style:{marginLeft:this.Em(b)},isMathJax:!0});c?a.insertBefore(b,a.firstChild):a.appendChild(b);return b},createSpace:function(a,b,c,f,d,g){b<-c&&(c=-b);var h=this.Em(b+c),l=this.Em(-c);this.msieInlineBlockAlignBug&&(l=this.Em(e.getHD(a.parentNode).d-c));a.isBox||g?(g=null==a.scale?1:a.scale,a.bbox={exactW:!0,h:b*g,d:c*g,w:f*g,rw:f*g,lw:0},a.style.height=h,a.style.verticalAlign=l,a.HH=(b+c)*g):a=this.addElement(a,"span",{style:{height:h,verticalAlign:l},isMathJax:!0});0<=f?(a.style.width=this.Em(f),a.style.display="inline-block",a.style.overflow="hidden"):(this.msieNegativeSpaceBug&&(a.style.height=""),a.style.marginLeft=this.Em(f),e.safariNegativeSpaceBug&&a.parentNode.firstChild==a&&this.createBlank(a,0,!0));d&&d!==k.COLOR.TRANSPARENT&&(a.style.backgroundColor=d,a.style.position="relative");return a},createRule:function(a,b,c,f,d){b<-c&&(c=-b);var g=e.TeX.min_rule_thickness,h=1;0g.lw&&(n=g.lw,e.createBlank(a,-n,!0)),g.rw>g.w&&e.createBlank(a,g.rw-g.w+.1)),!this.msieClipRectBug&&!g.noclip&&!f)){f=3/this.em;var m=null==g.H?g.h:g.H,k=l+(null==g.D?g.d:g.D)+f,q=g.lw-3*f,r=1E3;this.initialSkipBug&&0>g.lw&&(q=-3*f);g.isFixed&&(r=g.width-q);a.style.clip="rect("+this.Em(l-m-f)+" "+this.Em(r)+" "+this.Em(k)+" "+this.Em(q)+")"}a.style.top=this.Em(-c-l);a.style.left=this.Em(b+n);g&&h&&(null!=g.H&&(null==h.H||g.H+c>h.H)&&(h.H=g.H+c),null!=g.D&&(null==h.D||g.D-c>h.D)&&(h.D=g.D-c),g.h+c>h.h&&(h.h=g.h+c),g.d-c>h.d&&(h.d=g.d-c),null!=h.H&&h.H<=h.h&&delete h.H,null!=h.D&&h.D<=h.d&&delete h.D,g.w+b>h.w&&(h.w=g.w+b,null==h.width&&(d.style.width=this.Em(h.w))),g.rw+b>h.rw&&(h.rw=g.rw+b),g.lw+b=c-.01||l==n-1&&!h.stretch){h.HW[l][2]&&(f*=h.HW[l][2]);h.HW[l][3]&&(b=h.HW[l][3]);c=this.addElement(a,"span");this.createChar(c,[b,h.HW[l][1]],f,d);a.bbox=c.bbox;a.offset=.65*a.bbox.w;a.scale=f;return}if(h.stretch)this["extendDelimiter"+h.dir](a,e,h.stretch,f,d)}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,c,f,d){var e=this.createStack(a,!0),h=this.createBox(e),l=this.createBox(e);this.createChar(h,c.top||c.ext,f,d);this.createChar(l,c.bot||c.ext,f,d);var n={bbox:{w:0,lw:0,rw:0}},m=n,k,q=h.bbox.h+h.bbox.d+l.bbox.h+l.bbox.d,r=-h.bbox.h;this.placeBox(h,0,r,!0);r-=h.bbox.d;c.mid&&(m=this.createBox(e),this.createChar(m,c.mid,f,d),q+=m.bbox.h+m.bbox.d);c.min&&bq){n=this.Element("span");this.createChar(n,c.ext,f,d);k=n.bbox.h+n.bbox.d;var t=k-.05,u,v,w=c.mid?2:1;v=u=Math.min(Math.ceil((b-q)/(w*t)),this.maxStretchyParts);c.fullExtenders||(t=(b-q)/(w*u));b=u/(u+1)*(k-t);t=k-b;for(r+=b+t-n.bbox.h;0q){p=k.bbox.rw-k.bbox.lw;var t=p-.05,u,v,w=c.mid?2:1;v=u=Math.min(Math.ceil((b-q)/(w*t)),this.maxStretchyParts);c.fillExtenders||(t=(b-q)/(w*u));b=u/(u+1)*(p-t);t=p-b;for(r-=k.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&&(d.firstChild.nodeValue+=this.NBSP)},positionDelimiter:function(a,b){b-=a.bbox.h;a.bbox.d-=b;a.bbox.h+=b;b&&(this.safariVerticalAlignBug||this.konquerorVerticalAlignBug||this.operaVerticalAlignBug&&a.isMultiChar?(""===a.firstChild.style.display&&""!==a.style.top&&(a=a.firstChild,b-=e.unEm(a.style.top)),a.style.position="relative",a.style.top=this.Em(-b)):(a.style.verticalAlign=this.Em(b),e.ffVerticalAlignBug&&e.createRule(a.parentNode,a.bbox.h,0,0)))},handleVariant:function(a,b,c){var e="",d,g,h,l=a,n=!!a.style.fontFamily;if(0!==c.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]);h=b;for(var m=0,p=c.length;md)m++,d=(d-55296<<10)+(c.charCodeAt(m)-56320)+65536,this.FONTDATA.RemapPlane1&&(b=this.FONTDATA.RemapPlane1(d,b),d=b.n,b=b.variant);else{var q,r=this.FONTDATA.RANGES;g=0;for(q=r.length;g=r[g].low&&d<=r[g].high){r[g].remap&&r[g].remap[d]?d=t+r[g].remap[d]:(d=d-r[g].low+t,r[g].add&&(d+=r[g].add));b["variant"+r[g].offset]&&(b=this.FONTDATA.VARIANT[b["variant"+r[g].offset]]);break}}}b.remap&&b.remap[d]&&(b.remap[d]instanceof Array?(b=b.remap[d],d=b[0],b=this.FONTDATA.VARIANT[b[1]]):"string"===typeof b.remap[d]?(c=b.remap[d]+c.substr(m+1),m=0,p=c.length,d=c.charCodeAt(0)):(d=b.remap[d],b.remap.variant&&(b=this.FONTDATA.VARIANT[b.remap.variant])));this.FONTDATA.REMAP[d]&&!b.noRemap&&(d=this.FONTDATA.REMAP[d],d instanceof Array&&(b=this.FONTDATA.VARIANT[d[1]],d=d[0]),"string"===typeof d&&(c=d+c.substr(m+1),m=0,p=c.length,d=d.charCodeAt(0)));g=this.lookupChar(b,d);b=g[d];if(n||!this.checkFont(g,l.style)&&!b[5].img)e.length&&(this.addText(l,e),e=""),q=!!l.style.fontFamily||!!a.style.fontStyle||!!a.style.fontWeight||!g.directory||n,n=!1,l!==a&&(q=!this.checkFont(g,a.style),l=a),q&&(l=this.addElement(a,"span",{isMathJax:!0,subSpan:!0})),this.handleFont(l,g,l!==a);e=this.handleChar(l,g,b,d,e);(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}e.length&&this.addText(l,e);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==c.length&&g.skew&&g.skew[d]&&(a.bbox.skew=g.skew[d])}},checkFont:function(a,b){var c=b.fontWeight||"normal";c.match(/^\d+$/)&&(c=600<=parseInt(c)?"bold":"normal");return a.family.replace(/'/g,"")===b.fontFamily.replace(/'/g,"")&&(a.style||"normal")===(b.fontStyle||"normal")&&(a.weight||"normal")===c},handleFont:function(a,b,c){a.style.fontFamily=b.family;b.directory||(a.style.fontSize=Math.floor(100/e.scale+.5)+"%");if(!e.FontFaceBug||!b.isWebFont){var f=b.style||"normal";b=b.weight||"normal";if("normal"!==f||c)a.style.fontStyle=f;if("normal"!==b||c)a.style.fontWeight=b}},handleChar:function(a,b,c,f,d){var g=c[5];if(g.space)return d.length&&this.addText(a,d),e.createShift(a,c[2]/1E3),"";if(g.img)return this.handleImg(a,b,c,f,d);if(g.isUnknown&&this.FONTDATA.DELIMITERS[f])return d.length&&this.addText(a,d),d=a.scale,e.createDelimiter(a,f,0,1,b),"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=d,c[0]=1E3*a.bbox.h,c[1]=1E3*a.bbox.d,c[2]=1E3*a.bbox.w,c[3]=1E3*a.bbox.lw,c[4]=1E3*a.bbox.rw,"";null==g.c&&(65535>=f?g.c=String.fromCharCode(f):(b=f-65536,g.c=String.fromCharCode((b>>10)+55296)+String.fromCharCode((b&1023)+56320)));if(g.rfix)return this.addText(a,d+g.c),e.createShift(a,g.rfix/1E3),"";if(c[2]||!this.msieAccentBug||d.length)return d+g.c;e.createShift(a,c[3]/1E3);e.createShift(a,(c[4]-c[3])/1E3);this.addText(a,g.c);e.createShift(a,-c[4]/1E3);return""},handleImg:function(a,b,c,e,d){return d},lookupChar:function(a,b){var c,f;if(!a.FONTS){var d=this.FONTDATA.FONTS,g=a.fonts||this.FONTDATA.VARIANT.normal.fonts;g instanceof Array||(g=[g]);a.fonts!=g&&(a.fonts=g);a.FONTS=[];c=0;for(f=g.length;cb.d&&(b.d=f.d);f.h>b.h&&(b.h=f.h);null!=f.D&&f.D>b.D&&(b.D=f.D);null!=f.H&&f.H>b.H&&(b.H=f.H);c.style.paddingLeft&&(b.w+=e.unEm(c.style.paddingLeft)*(c.scale||1));b.w+f.lwb.rw&&(b.rw=b.w+f.rw);b.w+=f.w;c.style.paddingRight&&(b.w+=e.unEm(c.style.paddingRight)*(c.scale||1));f.width&&(b.width=f.width,b.minWidth=f.minWidth);f.ic?b.ic=f.ic:delete b.ic;b.exactW&&!f.exactW&&delete b.exactW}},HTMLemptyBBox:function(a){a.h=a.d=a.H=a.D=a.rw=-e.BIGDIMEN;a.w=0;a.lw=e.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=b.scriptlevel||this.hasValue("lspace")||this.hasValue("rspace")){var c=this.HTMLgetMu(a);b.lspace=Math.max(0,e.length2em(b.lspace,c));b.rspace=Math.max(0,e.length2em(b.rspace,c));for(var c=this,f=this.Parent();f&&f.isEmbellished()&&f.Core()===c;)c=f,f=f.Parent(),a=c.HTMLspanElement();b.lspace&&(a.style.paddingLeft=e.Em(b.lspace));b.rspace&&(a.style.paddingRight=e.Em(b.rspace))}}}else b=this.texSpacing(),""!==b&&(b=e.length2em(b,this.HTMLgetScale())/(a.scale||1),a.style.paddingLeft&&(b+=e.unEm(a.style.paddingLeft)),a.style.paddingLeft=e.Em(b))},HTMLgetScale:function(){var a=1,b=this.getValues("mathsize","scriptlevel","fontsize");if(this.style){var c=this.HTMLspanElement();""!=c.style.fontSize&&(b.fontsize=c.style.fontSize)}b.fontsize&&!this.mathsize&&(b.mathsize=b.fontsize);0!==b.scriptlevel&&(2f.w&&1===c.length&&!b.noIC&&(f.ic=f.rw-f.w,e.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,e=this.data.length;ca.bbox.w&&(a.bbox.ic=a.bbox.rw-a.bbox.w,e.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 b=this.data.join("");if(1e.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 e=this.data[0].toHTML(a);null!=c?this.data[0].HTMLstretchV(a,b,c):null!=b&&this.data[0].HTMLstretchH(a,b);a.bbox=e.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 b=e.createStack(a),c=e.createBox(b),f=e.createBox(b);e.MeasureSpans([this.HTMLboxChild(0,c),this.HTMLboxChild(1,f)]);var d=this.getValues("displaystyle","linethickness","numalign","denomalign","bevelled"),g=this.HTMLgetScale(),h=d.displaystyle,l=e.TeX.axis_height*g;if(d.bevelled){var d=h?.4:.15,k=Math.max(c.bbox.h+c.bbox.d,f.bbox.h+f.bbox.d)+2*d,b=e.createBox(b);e.createDelimiter(b,47,k);e.placeBox(c,0,(c.bbox.d-c.bbox.h)/2+l+d);e.placeBox(b,c.bbox.w-d/2,(b.bbox.d-b.bbox.h)/2+l);e.placeBox(f,c.bbox.w+b.bbox.w-d,(f.bbox.d-f.bbox.h)/2+l-d)}else{var k=Math.max(c.bbox.w,f.bbox.w),m=e.thickness2em(d.linethickness,g),p,q,r=e.TeX.min_rule_thickness/this.em;h?(p=e.TeX.num1,q=e.TeX.denom1):(p=0===m?e.TeX.num3:e.TeX.num2,q=e.TeX.denom2);p*=g;q*=g;0===m?(g=Math.max((h?7:3)*e.TeX.rule_thickness,2*r),h=p-c.bbox.d-(f.bbox.h-q),hk&&(l=(d.bbox.h+d.bbox.d-(k-h))/2);k=e.FONTDATA.DELIMITERS[e.FONTDATA.RULECHAR];!k||mg?e.createRule(f,0,h,m):e.createDelimiter(f,e.FONTDATA.RULECHAR,m,g);k=p.bbox.h+l+h;l=k*e.rfuzz;d.isMultiChar&&(l=e.rfuzz);q=this.HTMLaddRoot(b,d,q,d.bbox.h+d.bbox.d-k,g);e.placeBox(d,q,k-d.bbox.h);e.placeBox(f,q+d.bbox.w,k-f.bbox.h+l);e.placeBox(c,q+d.bbox.w,0);this.HTMLhandleSpace(a);this.HTMLhandleColor(a);return a},HTMLaddRoot:function(a,b,c,e,d){return c}});k.mroot.Augment({toHTML:k.msqrt.prototype.toHTML,HTMLaddRoot:function(a,b,c,f,d){a=e.createBox(a);this.data[1]?(c=this.data[1].toHTML(a),c.style.paddingRight=c.style.paddingLeft="",e.Measured(c,a)):a.bbox=this.HTMLzeroBBox();f=this.HTMLrootHeight(b.bbox.h+b.bbox.d,d,a)-f;d=Math.min(a.bbox.w,a.bbox.rw);c=Math.max(d,b.offset);e.placeBox(a,c-d,f);return c-b.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=h[p].bbox.w),!n[p]&&g>l&&(l=g));null==c&&null!=b?l=b:l==-e.BIGDIMEN&&(l=g);p=g=0;for(q=this.data.length;pg&&(g=m.bbox.w));b=e.TeX.rule_thickness;c=e.FONTDATA.TeX_factor;var n=h[this.base]||{bbox:this.HTMLzeroBBox()},r,t,u,v=0;n.bbox.ic&&(v=1.3*n.bbox.ic+.05);p=0;for(q=this.data.length;pb&&(e.config.styles[".MathJax .MathJax_HitBox"]["background-color"]="white",e.config.styles[".MathJax .MathJax_HitBox"].opacity=0,e.config.styles[".MathJax .MathJax_HitBox"].filter="alpha(opacity\x3d0)");e.Augment({PaddingWidthBug:!0,msieAccentBug:!0,msieColorBug:!0,msieColorPositionBug:!0,msieRelativeWidthBug:d,msieDisappearingBug:8<=b,msieMarginScaleBug:8>b,msiePaddingWidthBug:!0,msieBorderWidthBug:d,msieFrameSizeBug:8>=b,msieInlineBlockAlignBug:!f||d,msiePlaceBoxBug:f&&!d,msieClipRectBug:!f,msieNegativeSpaceBug:d,cloneNodeBug:f&&"8.0"===a.version,initialSkipBug:8>b,msieNegativeBBoxBug:8<=b,msieIE6:!c,msieItalicWidthBug:!0,FontFaceBug:!0,msieFontCSSBug:a.isIE9,allowWebFonts:9<=b?"woff":"eot"})},Firefox:function(a){var b=!1;a.versionAtLeast("3.5")&&(a=String(document.location).replace(/[^\/]*$/,""),"file:"!==document.location.protocol||t.config.root.match(/^https?:\/\//)||(t.config.root+"/").substr(0,a.length)===a)&&(b="otf");e.Augment({ffVerticalAlignBug:!0,AccentBug:!0,allowWebFonts:b})},Safari:function(a){var b=a.versionAtLeast("3.0"),c=a.versionAtLeast("3.1"),f=navigator.appVersion.match(/ Safari\/\d/)&&navigator.appVersion.match(/ Version\/\d/)&&navigator.vendor.match(/Apple/),d=navigator.appVersion.match(/ Android (\d+)\.(\d+)/),d=c&&a.isMobile&&(navigator.platform.match(/iPad|iPod|iPhone/)&&!a.versionAtLeast("5.0")||null!=d&&(2>d[1]||2==d[1]&&2>d[2]));e.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:!c,safariTextNodeBug:!b,forceReflow:!0,allowWebFonts:c&&!d?"otf":!1});f&&e.Augment({webFontDefault:a.isMobile?"sans-serif":"serif"});a.isPC&&e.Augment({adjustAvailableFonts:e.removeSTIXfonts,checkWebFontsTwice:!0});d&&((a=t.config["HTML-CSS"])?(a.availableFonts=[],a.preferredFont=null):t.config["HTML-CSS"]={availableFonts:[],preferredFont:null})},Chrome:function(a){e.Augment({Em:e.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");e.config.styles[".MathJax .merror"]["vertical-align"]=null;e.config.styles[".MathJax span"]["z-index"]=0;e.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:e.removeSTIXfonts})},Konqueror:function(a){e.Augment({konquerorVerticalAlignBug:!0})}})});MathJax.Hub.Register.StartupHook("End Cookie",function(){"None"!==t.config.menuSettings.zoom&&v.Require("[MathJax]/extensions/MathZoom.js")})})(MathJax.Ajax,MathJax.Hub,MathJax.OutputJax["HTML-CSS"]);