MathJax.Hub.Register.StartupHook("HTML-CSS Jax Ready",function(){var M="2.7.9",r=MathJax.ElementJax.mml,h=MathJax.OutputJax["HTML-CSS"],m=MathJax.Localization;r.mglyph.Augment({toHTML:function(t,a){var e=t,i=this.getValues("src","width","height","valign","alt"),b;if(t=this.HTMLcreateSpan(t),i.src===""){var g=this.Get("index");if(g){a=this.HTMLgetVariant();var l=a.defaultFont;l&&(l.noStyleChar=!0,l.testString=String.fromCharCode(g)+"ABCabc",h.Font.testFont(l)?this.HTMLhandleVariant(t,a,String.fromCharCode(g)):(i.alt===""&&(i.alt=m._(["MathML","BadMglyphFont"],"Bad font: %1",l.family)),b=r.Error(i.alt,{mathsize:"75%"}),this.Append(b),b.toHTML(t),this.data.pop(),t.bbox=b.HTMLspanElement().bbox))}}else{if(this.img||(this.img=r.mglyph.GLYPH[i.src]),!this.img){this.img=r.mglyph.GLYPH[i.src]={img:new Image,status:"pending"};var o=this.img.img;o.onload=MathJax.Callback(["HTMLimgLoaded",this]),o.onerror=MathJax.Callback(["HTMLimgError",this]),o.src=i.src,MathJax.Hub.RestartAfter(o.onload)}if(this.img.status!=="OK")b=r.Error(m._(["MathML","BadMglyph"],"Bad mglyph: %1",i.src),{mathsize:"75%"}),this.Append(b),b.toHTML(t),this.data.pop(),t.bbox=b.HTMLspanElement().bbox;else{var x=this.HTMLgetMu(t),d=this.HTMLgetScale();o=h.addElement(t,"img",{isMathJax:!0,src:i.src,alt:i.alt,title:i.alt}),i.width&&(o.style.width=h.Em(h.length2em(i.width,x,this.img.img.width/h.em)*d)),i.height&&(o.style.height=h.Em(h.length2em(i.height,x,this.img.img.height/h.em)*d)),t.bbox.w=t.bbox.rw=o.offsetWidth/h.em,t.bbox.h=o.offsetHeight/h.em,i.valign&&(t.bbox.d=-h.length2em(i.valign,x,this.img.img.height/h.em)*d,o.style.verticalAlign=h.Em(-t.bbox.d),t.bbox.h-=t.bbox.d)}}return e.bbox?t.bbox&&(e.bbox.w+=t.bbox.w,e.bbox.w>e.bbox.rw&&(e.bbox.rw=e.bbox.w),t.bbox.h>e.bbox.h&&(e.bbox.h=t.bbox.h),t.bbox.d>e.bbox.d&&(e.bbox.d=t.bbox.d)):e.bbox={w:t.bbox.w,h:t.bbox.h,d:t.bbox.d,rw:t.bbox.rw,lw:t.bbox.lw},this.HTMLhandleSpace(t),this.HTMLhandleColor(t),t},HTMLimgLoaded:function(t,a){typeof t=="string"&&(a=t),this.img.status=a||"OK"},HTMLimgError:function(){this.img.img.onload("error")}},{GLYPH:{}}),MathJax.Hub.Startup.signal.Post("HTML-CSS mglyph Ready"),MathJax.Ajax.loadComplete(h.autoloadDir+"/mglyph.js")});
