(function(){
"use strict";var m;function aa(a,b,c,d,e){this.Ua=a||"transparent";this.left=b||0;this.top=c||0;this.right=d||0;this.bottom=e||0;this.$=1;this.insertBefore=null}aa.prototype.Ma=function(){this.ga.remove()};
aa.prototype.show=function(a){this.ga=p("
");this.ga.da("position","fixed");this.ga.da("background",this.Ua);this.ga.da("opacity","0.25");this.ga.da("left",""+this.left+"px");this.ga.da("top",""+this.top+"px");this.ga.da("right",""+this.right+"px");this.ga.da("bottom",""+this.bottom+"px");this.ga.da("display","none");this.ga.click(function(b){a(b)});this.insertBefore?(this.ga.da("z-index",""+this.$),ba(p(this.ga),this.insertBefore)):(this.ga.da("z-index",""+this.$),p("body").append(this.ga));
ca(this.ga)};var da={},ea={};function fa(a){for(var b=["base64"],c=0;c
>2,c=(c&3)<<4|d>>4,g=(d&15)<<2|e>>6,h=e&63,isNaN(d)?g=h=64:isNaN(e)&&(h=64),b=b+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(f)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(c)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(g)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(h);
return b};
ea.base64=function(a){var b="",c,d,e,f,g,h=0,k={A:0,B:1,C:2,D:3,E:4,F:5,G:6,H:7,I:8,J:9,K:10,L:11,M:12,N:13,O:14,P:15,Q:16,R:17,S:18,T:19,U:20,V:21,W:22,X:23,Y:24,Z:25,a:26,b:27,c:28,d:29,e:30,f:31,g:32,h:33,i:34,j:35,k:36,l:37,m:38,n:39,o:40,p:41,q:42,r:43,s:44,t:45,u:46,v:47,w:48,x:49,y:50,z:51,0:52,1:53,2:54,3:55,4:56,5:57,6:58,7:59,8:60,9:61,"+":62,"/":63,"=":64};for(a=a.replace(/[^A-Za-z0-9\-_\=\+\/]/g,"");h>4,d=(d&15)<<4|f>>2,e=(f&3)<<6|g,b+=String.fromCharCode(c),64!==f&&(b+=String.fromCharCode(d)),64!==g&&(b+=String.fromCharCode(e));return b};
da.ascii85=function(a){for(var b="",c,d,e,f,g,h,k,l,n=0;n>>0,c=(g/52200625|0)%85+33,h=(g/614125|0)%85+33,k=(g/7225|0)%85+33,l=(g/85|0)%85+33,g=g%85+33,(118c||33>h||33>k||33>l||33>g)&&console.log(c,h,k,l,g),b+=String.fromCharCode(c)+String.fromCharCode(h),isNaN(d)||(b+=String.fromCharCode(k),isNaN(e)||(b+=String.fromCharCode(l),
isNaN(f)||(b+=String.fromCharCode(g))));return b+"~>"};da.utf8=function(a){for(var b="",c=0;cd?b+=String.fromCharCode(d):(127d?b+=String.fromCharCode(d>>6|192):(b+=String.fromCharCode(d>>12|224),b+=String.fromCharCode(d>>6&63|128)),b+=String.fromCharCode(d&63|128))}return b};
ea.utf8=function(a){for(var b="",c=0;c=d?b+=String.fromCharCode(d):2047>=a?(b+=String.fromCharCode(192|a>>6),b+=String.fromCharCode(128|a&63)):65535>=a?(b+=String.fromCharCode(224|a>>12),b+=String.fromCharCode(128|a>>6&63),b+=String.fromCharCode(128|a&63)):1114111>=a?(b+=String.fromCharCode(240|a>>18),b+=String.fromCharCode(128|a>>12&63),b+=String.fromCharCode(128|a>>6&63),b+=String.fromCharCode(128|a&63)):b+=String.fromCharCode(63)}return b};
ea.utf8=function(a){for(var b="",c=0;cd?b+=String.fromCharCode(d):(127d?b+=String.fromCharCode(d>>6|192):(b+=String.fromCharCode(d>>12|224),b+=String.fromCharCode(d>>6&63|128)),b+=String.fromCharCode(d&63|128))}return b};da.hex=function(a){for(var b=[],c=0;cd&&b.push("0");b.push(d.toString(16))}return b.join("")};
da.sha1=function(a){var b=[1518500249,1859775393,2400959708,3395469782];a+=String.fromCharCode(128);for(var c=Math.ceil((a.length/4+2)/16),d=Array(c),e=0;ef;f++)d[e][f]=a.charCodeAt(64*e+4*f)<<24|a.charCodeAt(64*e+4*f+1)<<16|a.charCodeAt(64*e+4*f+2)<<8|a.charCodeAt(64*e+4*f+3)}d[c-1][14]=8*(a.length-1)/Math.pow(2,32);d[c-1][14]=Math.floor(d[c-1][14]);d[c-1][15]=8*(a.length-1)&4294967295;a=1732584193;for(var f=4023233417,g=2562383102,h=271733878,k=3285377520,l=
Array(80),n,q,r,u,w,e=0;ev;v++)l[v]=d[e][v];for(v=16;80>v;v++)n=l[v-3]^l[v-8]^l[v-14]^l[v-16],l[v]=n<<1|n>>>31;n=a;q=f;r=g;u=h;w=k;for(v=0;80>v;v++){var z=Math.floor(v/20),B;a:{switch(z){case 0:B=q&r^~q&u;break a;case 1:B=q^r^u;break a;case 2:B=q&r^q&u^r&u;break a;case 3:B=q^r^u;break a}B=void 0}z=(n<<5|n>>>27)+B+w+b[z]+l[v]&4294967295;w=u;u=r;r=q<<30|q>>>2;q=n;n=z}a=a+n&4294967295;f=f+q&4294967295;g=g+r&4294967295;h=h+u&4294967295;k=k+w&4294967295}return String.fromCharCode(a>>
24&255)+String.fromCharCode(a>>16&255)+String.fromCharCode(a>>8&255)+String.fromCharCode(a>>0&255)+String.fromCharCode(f>>24&255)+String.fromCharCode(f>>16&255)+String.fromCharCode(f>>8&255)+String.fromCharCode(f>>0&255)+String.fromCharCode(g>>24&255)+String.fromCharCode(g>>16&255)+String.fromCharCode(g>>8&255)+String.fromCharCode(g>>0&255)+String.fromCharCode(h>>24&255)+String.fromCharCode(h>>16&255)+String.fromCharCode(h>>8&255)+String.fromCharCode(h>>0&255)+String.fromCharCode(k>>24&255)+String.fromCharCode(k>>
16&255)+String.fromCharCode(k>>8&255)+String.fromCharCode(k>>0&255)};function t(a,b){if(!a)throw b||"Assertion failed";}function ga(a){t("number"===typeof a,"Expected a number")}function ha(a){return"object"===typeof a&&"[object Array]"===Object.prototype.toString.apply(a)}function ia(a){return"string"===typeof a}function x(a){return"number"===typeof a};function y(a){this.keys={};1===arguments.length&&this.add(arguments[0]);1===arguments.length&&"object"===typeof arguments[0]&&this.add(arguments[0])}
y.prototype={contains:function(a){return a in this.keys},add:function(a){var b,c;if("string"===typeof a||"number"===typeof a)this.keys[a]=!0;else if("object"===typeof a)if("[object Array]"===Object.prototype.toString.apply(a))for(c=0;c=d.length-1?e.push(""):"string"===typeof d[f]||"number"===typeof d[f]?e.push(d[f]):void 0===d[f]?e.push("(undefined)"):null===d[f]?e.push("(null)"):d[f]instanceof Object&&d[f].toString instanceof Function?e.push(d[f].toString()):e.push(JSON.stringify(d[f])),e.push(g[f]);d=e.join("");for(f=0;f$/,e=/^([A-Za-z]+)$/,f=new qa,g;try{g=("object"===typeof HTMLElement?a instanceof HTMLElement:"object"===typeof a&&1===a.nodeType&&"string"===typeof a.nodeName||3===a.nodeType)||a===window||a===document||a===document.body||a instanceof Element}catch(h){g=!1}if(g)f[0]=a,f.length=1;else{if(a instanceof qa)return a;if(null!==(b=b.exec(a)))a=document.getElementById(b[1]),null!==a&&(f[0]=a,f.length=1);else if(null!==(b=d.exec(a)))f[0]=
document.createElement(b[1]),f.length=1;else if(null!==(b=c.exec(a))){a=document.$(b[1]);for(c=0;c").La("type","button");a[0].value="OK";return a}function Ha(a,b){if(b&&"string"===typeof b)for(var c=(b||"").split(sa),d=0,e=a.length;dg.indexOf(" "+c[k]+" ")&&(h+=" "+c[k]);f.className=ra.ba(h)}else f.className=b}return a}
function Ia(a){for(var b=0;ba)throw"Bad data written to byte buffer";this.data+=String.fromCharCode(a)},flush:function(){},toString:function(){return this.data},Bb:function(){for(var a=[],b=0;bb;b++)a.Wa("~>".charCodeAt(b));this.$.flush()}};
function Pa(a){var b,c,d,e,f,g,h,k;b=a.aa[0];c=a.aa[1];d=a.aa[2];e=a.aa[3];f=(b<<24|c<<16|d<<8|e)>>>0;b=(f/52200625|0)%85+33;g=(f/614125|0)%85+33;h=(f/7225|0)%85+33;k=(f/85|0)%85+33;f=f%85+33;(118b||33>g||33>h||33>k||33>f)&&console.log(b,g,h,k,f);a.$.Wa(b);a.$.Wa(g);isNaN(c)||(a.$.Wa(h),isNaN(d)||(a.$.Wa(k),isNaN(e)||a.$.Wa(f)));a.aa.length=0}Oa.prototype=p.$({},Ka.prototype,Oa.prototype);Ma.Ascii85Encoder=Oa;function Qa(a){this.$=a;this.aa=this.ba=0;this.ha=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8193]}Qa.prototype={log:A("BITWRITER"),Wa:function(a){Ra(this,a,8)},flush:function(){this.aa&&(this.$.Wa(this.ba<<8-this.aa),this.ba=this.aa=0);this.$.flush()}};function Ra(a,b,c){a.ba=a.ba<>>a.aa-8&255),a.aa-=8,a.ba&=a.ha[a.aa]}Ma.BitWriter=Qa;Qa.prototype=p.$({},Ka.prototype,Qa.prototype);function Sa(a){this.$=new Qa(a);this.ha=258;this.aa=0;this.oa=!0;this.ka=[];this.Da=[];this.va=[];this.ba=9;Ta(this)}
Sa.prototype={log:A("LZWEncoder"),Wa:function(a){var b;if(this.oa)this.aa=a,this.oa=!1;else{a:{b=this.aa;var c,d;c=a<<4^b;for(d=0===c?1:18041-c;;){if(void 0===this.ka[c]||this.Da[c]===b&&this.va[c]===a){b=c;break a}c-=d;0>c&&(c+=18041)}}void 0!==this.ka[b]?this.aa=this.ka[b]:(Ra(this.$,this.aa,this.ba),this.ka[b]=this.ha,this.Da[b]=this.aa,this.aa=this.va[b]=a,4095>this.ha?(this.ha+=1,this.ba=Math.ceil(Math.log(this.ha)/Math.log(2))):Ta(this))}},flush:function(){this.oa||(Ra(this.$,this.aa,this.ba),
Ra(this.$,257,this.ba))}};function Ta(a){Ra(a.$,256,a.ba);a.ha=258;a.ba=9;a.ka.length=0;a.Da.length=0;a.va.length=0}Ma.LZWEncoder=Sa;Sa.prototype=p.$({},Ka.prototype,Sa.prototype);(function(a){this.algorithm=a.algorithm||"wrap";this.$=a.gravity||"down";this.aa=!1!==a.resize;"down"===this.$?(this.offsetWidth="offsetWidth",this.offsetHeight="offsetHeight",this.width="width",this.height="height",this.top="top",this.left="left",this.clientWidth="clientWidth",this.clientHeight="clientHeight"):"up"===this.$?(this.offsetWidth="offsetWidth",this.offsetHeight="offsetHeight",this.width="width",this.height="height",this.top="bottom",this.left="left",this.clientWidth="clientWidth",this.clientHeight=
"clientHeight"):(this.offsetWidth="offsetHeight",this.offsetHeight="offsetWidth",this.width="height",this.height="width",this.top="left",this.left="top",this.clientWidth="clientHeight",this.clientHeight="clientWidth")}).prototype={log:A("Layout")};function Ua(a){this.$="en";"string"===typeof a&&(a=Va(this,a,{}));this.data=a}Ua.prototype={log:A("LANGUAGE"),ac:function(){var a=this;return function(b,c){return Wa(a,arguments)}},get:function(a,b){return Wa(this,arguments)}};function Wa(a,b){var c=b[0],d="";a.$ in a.data&&c in a.data[a.$]&&(d=a.data[a.$][c]);for(c=1;cnb(a);bb.Tc&&(d-=Math.PI);var e=b.Tc-b.nc;0>e&&(e+=2*Math.PI);a.fillText(""+Math.round(e/Math.PI*180)+"\u00b0",b.x+this.Rb*Math.cos(d),b.y+this.Rb*Math.sin(d))}}};
function qb(a,b,c,d,e){var f;b=K(c.x,c.y,b.x,b.y);f=K(c.x,c.y,d.x,d.y);d=Math.atan2(b.y,b.x);b=Math.atan2(f.y,f.x);e&&(e=d,d=b,b=e);a.$.push({x:c.x,y:c.y,nc:b,Tc:d})};var L=[],tb=null,ub=A("ImageLoader");function vb(){var a=[];ub("Timeout running... %s images remaining",L.length);for(var b=0;bL[b].cd?(L[b].cd+=250,a.push(L[b])):L[b].ac(L[b],L[b].Kc);L=a;L.length?setTimeout(vb,250):(ub("Timeout Stopped"),tb=!1)}
function wb(a,b){function c(){ub("LoadFn called. complete=%s",d.complete);if(d.complete)for(var a=0;a"),b);e.da("position","absolute");e.da("z-index","10000");e.da("background","#cccccc");e.da("display","block");p(document.body).append(e);d.Push(["Typeset",window.MathJax.Hub,e[0]]);d.Push(function(){var b,d,h,k,l,n,q,r,u,w,v,z,B;d=e.find("svg");if(0===d.length)a.log("Failed to render MJax -- no SVG found"),e.da("display","none"),c&&c(null);else{k=d[0].getBoundingClientRect();u=2*k.width;k=2*k.height;r=d.find("use");z=0;for(B=r.length;z<
B;z++)b=r[z],b=p(b),l=b.La("href"),w=b.La("x")||0,v=b.La("y")||0,h=b.La("transform")||"",a.log("USE HREF=%s x=%s y=%s... cloning",l,w,v),l=Ia(p(l).clone()),h=""!==h?h+(",translate("+w+","+v+")"):"translate("+w+","+v+")",l.La("transform",h),b.length&&b[0].parentNode.replaceChild(l[0],b[0]);h=document.createElement("svg");v=d[0].childNodes;r=0;for(w=v.length;r";d+=h.innerHTML;d+="";e.remove();d="data:image/svg+xml,"+encodeURIComponent(d);q=new Image;q.src=d;q=p(q);q.da("position","absolute");q.da("z-index","10000");q.da("top","100px");q.da("width",""+u+"px");q.da("height",""+k+"px");q.da("visibility","hidden");p(document.body).append(q);a.log("img loaded: %s",q[0].complete);n=setInterval(function(){a.log("img loaded: %s",q[0].complete);if(q[0].complete&&(clearInterval(n),c))return c(q[0])},100)}})}
function zb(a,b){var c,d;d=p("