diff options
Diffstat (limited to 'content/resources')
-rwxr-xr-x | content/resources/viz.js/convert.js | 1196 | ||||
-rwxr-xr-x | content/resources/viz.js/download.js | 162 |
2 files changed, 600 insertions, 758 deletions
diff --git a/content/resources/viz.js/convert.js b/content/resources/viz.js/convert.js index 960d8b1..0a4cf1f 100755 --- a/content/resources/viz.js/convert.js +++ b/content/resources/viz.js/convert.js @@ -1,17 +1,17 @@ -// Generated by js_of_ocaml 3.8.0 +// Generated by js_of_ocaml 3.9.1 (function(d){"use strict";var -c$="%Li",da=" : flags Open_text and Open_binary are not compatible",dT="Invalid_argument",dS="@[",bX=1255,dG=", characters ",dr=255,ds=0x800,U=0xffff,bW="jsError",T=0x8000,dR="%ni",dF=12520,dq=256,dE="(Program not linked with -g, cannot print stack backtrace)\n",dp="End_of_file",bT=0.1,dn="Failure",dD="infinity",ad=0xff,aV=1000,c_="Stack_overflow",f="",bZ="^",G="0",aC=0x3f,c9="Not_found",bV=0xf,aX=128,dl=-48,dm=0xdc00,dP="Sys_blocked_io",dQ="fd ",dC="Match_failure",z=248,c8="static/",s="camlinternalFormat.ml",dk="Division_by_zero",be=252,dO=1027,dj="Sys_error",ao=".",aB="+",dB=0xf0,dN="%u",bU="%d",b4=2147483000.,c7=1026,dA="%li",di="buffer.ml",dM="_bigarray",dz=-32,b3=127,aW=1024,dL="@{",aa=" ",Q=0x80,b2="e",c6="Undefined_recursive_module",dg=120,dh=103,dK=" : flags Open_rdonly and Open_wronly are not compatible",dJ="([^/]*)",df=512,ap="-",dy="Lwt.%s",bY="nan",de=0x7ff0,dx="Lwt.",dd="text/plain",dw=0xe0,dI=" : file already exists",dv=0xdfff,ac=0xffffff,bS="compare: functional value",du="Assert_failure",ab="/",dc="0x",c5="%i",dH="Out_of_memory",bd=254,b1="index out of bounds",db=100,dt=250,b0="_bigarr02";function +db="%Li",dc=" : flags Open_text and Open_binary are not compatible",dT="Invalid_argument",dS="@[",bY=1255,dH=", characters ",ds=255,dt=0x800,V=0xffff,bf="jsError",U=0x8000,dR="%ni",dG=12520,dr=256,dF="(Program not linked with -g, cannot print stack backtrace)\n",dq="End_of_file",bV=0.1,dp="Failure",dE="infinity",ad=0xff,aV=1000,da="Stack_overflow",f="",b0="^",G="0",c$=-97,aC=0x3f,c_="Not_found",bX=0xf,aX=128,dm=-48,dn=0xdc00,dP="Sys_blocked_io",dQ="fd ",dD="Match_failure",v=248,c9="static/",s="camlinternalFormat.ml",dl="Division_by_zero",bg=252,dO=1027,dk="Sys_error",ao=".",aB="+",dC=0xf0,dN="%u",bW="%d",b4=2147483000.,c8=1026,dB="%li",dj="buffer.ml",dA=-32,b3=127,aW=1024,dM="@{",aa=" ",Q=0x80,b2="e",c7="Undefined_recursive_module",dh=120,di=103,dL=" : flags Open_rdonly and Open_wronly are not compatible",dK="([^/]*)",dg=512,ap="-",dz="Lwt.%s",bZ="nan",df=0x7ff0,dy="Lwt.",dx=0xe0,dJ=" : file already exists",dw=0xdfff,ac=0xffffff,bU="compare: functional value",dv="Assert_failure",ab="/",de="0x",c6="%i",dI="Out_of_memory",be=254,b1="index out of bounds",dd=100,du=250,bh="_bigarr02";function cf(c,b,a){var d=String.fromCharCode;if(b==0&&a<=4096&&a==c.length)return d.apply(null,c);var e=f;for(;0<a;b+=aW,a-=aW)e+=d.apply(null,c.slice(b,b+Math.min(a,aW)));return e}function -bh(b){if(d.Uint8Array)var +bk(b){if(d.Uint8Array)var c=new(d.Uint8Array)(b.l);else var c=new Array(b.l);var f=b.c,e=f.length,a=0;for(;a<e;a++)c[a]=f.charCodeAt(a);for(e=b.l;a<e;a++)c[a]=0;b.c=c;b.t=4;return c}function ak(d,e,b,f,c){if(c==0)return 0;if(f==0&&(c>=b.l||b.t==2&&c>=b.c.length)){b.c=d.t==4?cf(d.c,e,c):e==0&&d.c.length==c?d.c:d.c.substr(e,c);b.t=b.c.length==b.l?0:2}else -if(b.t==2&&f==b.c.length){b.c+=d.t==4?cf(d.c,e,c):e==0&&d.c.length==c?d.c:d.c.substr(e,c);b.t=b.c.length==b.l?0:2}else{if(b.t!=4)bh(b);var +if(b.t==2&&f==b.c.length){b.c+=d.t==4?cf(d.c,e,c):e==0&&d.c.length==c?d.c:d.c.substr(e,c);b.t=b.c.length==b.l?0:2}else{if(b.t!=4)bk(b);var g=d.c,h=b.c;if(d.t==4)if(f<=e)for(var a=0;a<c;a++)h[f+a]=g[e+a];else for(var @@ -20,23 +20,23 @@ i=Math.min(c,g.length-e);for(var a=0;a<i;a++)h[f+a]=g.charCodeAt(e+a);for(;a<c;a++)h[f+a]=0}}return 0}function ar(a){return a}function aq(a,b,c,d,e){ak(ar(a),b,c,d,e);return 0}function -ij(b,a){throw[0,b,a]}function +ip(b,a){throw[0,b,a]}function aH(b,a){if(b==0)return f;if(a.repeat)return a.repeat(b);var d=f,c=0;for(;;){if(b&1)d+=a;b>>=1;if(b==0)return d;a+=a;c++;if(c==9)a.slice(0,1)}}function -bi(a){if(a.t==2)a.c+=aH(a.l-a.c.length,"\0");else +bl(a){if(a.t==2)a.c+=aH(a.l-a.c.length,"\0");else a.c=cf(a.c,0,a.c.length);a.t=0}function -ei(a){if(a.length<24){for(var +ej(a){if(a.length<24){for(var b=0;b<a.length;b++)if(a.charCodeAt(b)>b3)return false;return true}else return!/[^\x00-\x7f]/.test(a)}function cg(e){for(var k=f,c=f,h,g,i,a,b=0,j=e.length;b<j;b++){g=e.charCodeAt(b);if(g<Q){for(var -d=b+1;d<j&&(g=e.charCodeAt(d))<Q;d++);if(d-b>df){c.substr(0,1);k+=c;c=f;k+=e.slice(b,d)}else -c+=e.slice(b,d);if(d==j)break;b=d}a=1;if(++b<j&&((i=e.charCodeAt(b))&-64)==aX){h=i+(g<<6);if(g<dw){a=h-0x3080;if(a<Q)a=1}else{a=2;if(++b<j&&((i=e.charCodeAt(b))&-64)==aX){h=i+(h<<6);if(g<dB){a=h-0xe2080;if(a<ds||a>=0xd7ff&&a<0xe000)a=2}else{a=3;if(++b<j&&((i=e.charCodeAt(b))&-64)==aX&&g<0xf5){a=i-0x3c82080+(h<<6);if(a<0x10000||a>0x10ffff)a=3}}}}}if(a<4){b-=a;c+="\ufffd"}else -if(a>U)c+=String.fromCharCode(0xd7c0+(a>>10),dm+(a&0x3FF));else +d=b+1;d<j&&(g=e.charCodeAt(d))<Q;d++);if(d-b>dg){c.substr(0,1);k+=c;c=f;k+=e.slice(b,d)}else +c+=e.slice(b,d);if(d==j)break;b=d}a=1;if(++b<j&&((i=e.charCodeAt(b))&-64)==aX){h=i+(g<<6);if(g<dx){a=h-0x3080;if(a<Q)a=1}else{a=2;if(++b<j&&((i=e.charCodeAt(b))&-64)==aX){h=i+(h<<6);if(g<dC){a=h-0xe2080;if(a<dt||a>=0xd7ff&&a<0xe000)a=2}else{a=3;if(++b<j&&((i=e.charCodeAt(b))&-64)==aX&&g<0xf5){a=i-0x3c82080+(h<<6);if(a<0x10000||a>0x10ffff)a=3}}}}}if(a<4){b-=a;c+="\ufffd"}else +if(a>V)c+=String.fromCharCode(0xd7c0+(a>>10),dn+(a&0x3FF));else c+=String.fromCharCode(a);if(c.length>aW){c.substr(0,1);k+=c;c=f}}return k+c}function ae(c,a,b){this.t=c;this.c=a;this.l=b}ae.prototype.toString=function(){switch(this.t){case -9:return this.c;default:bi(this);case -0:if(ei(this.c)){this.t=9;return this.c}this.t=8;case +9:return this.c;default:bl(this);case +0:if(ej(this.c)){this.t=9;return this.c}this.t=8;case 8:return this.c}};ae.prototype.toUtf16=function(){var a=this.toString();if(this.t==9)return a;return cg(a)};ae.prototype.slice=function(){var a=this.t==4?this.c.slice():this.c;return new @@ -44,11 +44,11 @@ ae(this.t,a,this.l)};function d3(a){return new ae(0,a,a.length)}function a(a){return d3(a)}function -ce(c,b){ij(c,a(b))}var +ce(c,b){ip(c,a(b))}var o=[0];function q(a){ce(o.Invalid_argument,a)}function d1(){q(b1)}function -n(a,c,b){b&=ad;if(a.t!=4){if(c==a.c.length){a.c+=String.fromCharCode(b);if(c+1==a.l)a.t=0;return 0}bh(a)}a.c[c]=b;return 0}function +n(a,c,b){b&=ad;if(a.t!=4){if(c==a.c.length){a.c+=String.fromCharCode(b);if(c+1==a.l)a.t=0;return 0}bk(a)}a.c[c]=b;return 0}function as(b,a,c){if(a>>>0>=b.l)d1();return n(b,a,c)}function aY(a,b){switch(a.t&6){default:if(b>=a.c.length)return 0;case 0:return a.c.charCodeAt(b);case @@ -63,21 +63,21 @@ e=arguments.length==0?1:arguments.length,d=new Array(a.length+e);for(var b=0;b<a.length;b++)d[b]=a[b];for(var b=0;b<arguments.length;b++)d[a.length+b]=arguments[b];return N(c,d)}}function -bf(){q(b1)}function -hJ(a,b){if(b>>>0>=a.length-1)bf();return a}function -hK(a){if(isFinite(a)){if(Math.abs(a)>=2.2250738585072014e-308)return 0;if(a!=0)return 1;return 2}return isNaN(a)?4:3}function -ag(a){if((a.t&6)!=0)bi(a);return a.c}var -iw=Math.log2&&Math.log2(1.1235582092889474E+307)==1020;function -iv(a){if(iw)return Math.floor(Math.log2(a));var +bi(){q(b1)}function +hP(a,b){if(b>>>0>=a.length-1)bi();return a}function +hQ(a){if(isFinite(a)){if(Math.abs(a)>=2.2250738585072014e-308)return 0;if(a!=0)return 1;return 2}return isNaN(a)?4:3}function +ag(a){if((a.t&6)!=0)bl(a);return a.c}var +iB=Math.log2&&Math.log2(1.1235582092889474E+307)==1020;function +iA(a){if(iB)return Math.floor(Math.log2(a));var b=0;if(a==0)return-Infinity;if(a>=1)while(a>=2){a/=2;b++}else while(a<1){a*=2;b--}return b}function b9(c){var a=new(d.Float32Array)(1);a[0]=c;var b=new(d.Int32Array)(a.buffer);return b[0]|0}var -d9=Math.pow(2,-24);function -ih(a){throw a}function -ef(){ih(o.Division_by_zero)}function -c(b,c,a){this.lo=b∾this.mi=c∾this.hi=a&U}c.prototype.caml_custom="_j";c.prototype.copy=function(){return new +d_=Math.pow(2,-24);function +im(a){throw a}function +eg(){im(o.Division_by_zero)}function +c(b,c,a){this.lo=b∾this.mi=c∾this.hi=a&V}c.prototype.caml_custom="_j";c.prototype.copy=function(){return new c(this.lo,this.mi,this.hi)};c.prototype.ucompare=function(a){if(this.hi>a.hi)return 1;if(this.hi<a.hi)return-1;if(this.mi>a.mi)return 1;if(this.mi<a.mi)return-1;if(this.lo>a.lo)return 1;if(this.lo<a.lo)return-1;return 0};c.prototype.compare=function(a){var b=this.hi<<16,c=a.hi<<16;if(b>c)return 1;if(b<c)return-1;if(this.mi>a.mi)return 1;if(this.mi<a.mi)return-1;if(this.lo>a.lo)return 1;if(this.lo<a.lo)return-1;return 0};c.prototype.neg=function(){var a=-this.lo,b=-this.mi+(a>>24),d=-this.hi+(b>>24);return new @@ -86,7 +86,7 @@ b=this.lo+a.lo,d=this.mi+a.mi+(b>>24),e=this.hi+a.hi+(d>>24);return new c(b,d,e)};c.prototype.sub=function(a){var b=this.lo-a.lo,d=this.mi-a.mi+(b>>24),e=this.hi-a.hi+(d>>24);return new c(b,d,e)};c.prototype.mul=function(a){var -b=this.lo*a.lo,d=(b*d9|0)+this.mi*a.lo+this.lo*a.mi,e=(d*d9|0)+this.hi*a.lo+this.mi*a.mi+this.lo*a.hi;return new +b=this.lo*a.lo,d=(b*d_|0)+this.mi*a.lo+this.lo*a.mi,e=(d*d_|0)+this.hi*a.lo+this.mi*a.mi+this.lo*a.hi;return new c(b,d,e)};c.prototype.isZero=function(){return(this.lo|this.mi|this.hi)==0};c.prototype.isNeg=function(){return this.hi<<16<0};c.prototype.and=function(a){return new c(this.lo&a.lo,this.mi&a.mi,this.hi&a.hi)};c.prototype.or=function(a){return new c(this.lo|a.lo,this.mi|a.mi,this.hi|a.hi)};c.prototype.xor=function(a){return new @@ -100,27 +100,27 @@ c(this.hi>>a-48,0,0)};c.prototype.shift_right=function(a){a=a&63;if(a==0)return d=this.hi<<16>>16;if(a<24)return new c(this.lo>>a|this.mi<<24-a,this.mi>>a|d<<24-a,this.hi<<16>>a>>>16);var b=this.hi<<16>>31;if(a<48)return new -c(this.mi>>a-24|this.hi<<48-a,this.hi<<16>>a-24>>16,b&U);return new +c(this.mi>>a-24|this.hi<<48-a,this.hi<<16>>a-24>>16,b&V);return new c(this.hi<<16>>a-32,b,b)};c.prototype.lsl1=function(){this.hi=this.hi<<1|this.mi>>23;this.mi=(this.mi<<1|this.lo>>23)∾this.lo=this.lo<<1&ac};c.prototype.lsr1=function(){this.lo=(this.lo>>>1|this.mi<<23)∾this.mi=(this.mi>>>1|this.hi<<23)∾this.hi=this.hi>>>1};c.prototype.udivmod=function(f){var d=0,b=this.copy(),a=f.copy(),e=new c(0,0,0);while(b.ucompare(a)>0){d++;a.lsl1()}while(d>=0){d--;e.lsl1();if(b.ucompare(a)>=0){e.lo++;b=b.sub(a)}a.lsr1()}return{quotient:e,modulus:b}};c.prototype.div=function(a){var -b=this;if(a.isZero())ef();var -d=b.hi^a.hi;if(b.hi&T)b=b.neg();if(a.hi&T)a=a.neg();var -c=b.udivmod(a).quotient;if(d&T)c=c.neg();return c};c.prototype.mod=function(b){var -a=this;if(b.isZero())ef();var -d=a.hi;if(a.hi&T)a=a.neg();if(b.hi&T)b=b.neg();var -c=a.udivmod(b).modulus;if(d&T)c=c.neg();return c};c.prototype.toInt=function(){return this.lo|this.mi<<24};c.prototype.toFloat=function(){return(this.hi<<16)*Math.pow(2,32)+this.mi*Math.pow(2,24)+this.lo};c.prototype.toArray=function(){return[this.hi>>8,this.hi&ad,this.mi>>16,this.mi>>8&ad,this.mi&ad,this.lo>>16,this.lo>>8&ad,this.lo&ad]};c.prototype.lo32=function(){return this.lo|(this.mi&ad)<<24};c.prototype.hi32=function(){return this.mi>>>8&U|this.hi<<16};function -bl(b,d,a){return new +b=this;if(a.isZero())eg();var +d=b.hi^a.hi;if(b.hi&U)b=b.neg();if(a.hi&U)a=a.neg();var +c=b.udivmod(a).quotient;if(d&U)c=c.neg();return c};c.prototype.mod=function(b){var +a=this;if(b.isZero())eg();var +d=a.hi;if(a.hi&U)a=a.neg();if(b.hi&U)b=b.neg();var +c=a.udivmod(b).modulus;if(d&U)c=c.neg();return c};c.prototype.toInt=function(){return this.lo|this.mi<<24};c.prototype.toFloat=function(){return(this.hi<<16)*Math.pow(2,32)+this.mi*Math.pow(2,24)+this.lo};c.prototype.toArray=function(){return[this.hi>>8,this.hi&ad,this.mi>>16,this.mi>>8&ad,this.mi&ad,this.lo>>16,this.lo>>8&ad,this.lo&ad]};c.prototype.lo32=function(){return this.lo|(this.mi&ad)<<24};c.prototype.hi32=function(){return this.mi>>>8&V|this.hi<<16};function +bo(b,d,a){return new c(b,d,a)}function -bk(a){if(!isFinite(a)){if(isNaN(a))return bl(1,0,de);return a>0?bl(0,0,de):bl(0,0,0xfff0)}var -f=a==0&&1/a==-Infinity?T:a>=0?0:T;if(f)a=-a;var -b=iv(a)+1023;if(b<=0){b=0;a/=Math.pow(2,-c7)}else{a/=Math.pow(2,b-dO);if(a<16){a*=2;b-=1}if(b==0)a/=2}var +bn(a){if(!isFinite(a)){if(isNaN(a))return bo(1,0,df);return a>0?bo(0,0,df):bo(0,0,0xfff0)}var +f=a==0&&1/a==-Infinity?U:a>=0?0:U;if(f)a=-a;var +b=iA(a)+1023;if(b<=0){b=0;a/=Math.pow(2,-c8)}else{a/=Math.pow(2,b-dO);if(a<16){a*=2;b-=1}if(b==0)a/=2}var d=Math.pow(2,24),c=a|0;a=(a-c)*d;var e=a|0;a=(a-e)*d;var -g=a|0;c=c&bV|f|b<<4;return bl(g,e,c)}function +g=a|0;c=c&bX|f|b<<4;return bo(g,e,c)}function a1(a){return a.toArray()}function -d0(c,b,g){c.write(32,b.dims.length);c.write(32,b.kind|b.layout<<8);if(b.caml_custom==b0)for(var -a=0;a<b.dims.length;a++)if(b.dims[a]<U)c.write(16,b.dims[a]);else{c.write(16,U);c.write(32,0);c.write(32,b.dims[a])}else +d0(c,b,g){c.write(32,b.dims.length);c.write(32,b.kind|b.layout<<8);if(b.caml_custom==bh)for(var +a=0;a<b.dims.length;a++)if(b.dims[a]<V)c.write(16,b.dims[a]);else{c.write(16,V);c.write(32,0);c.write(32,b.dims[a])}else for(var a=0;a<b.dims.length;a++)c.write(32,b.dims[a]);switch(b.kind){case 2:case @@ -141,7 +141,7 @@ e=a1(b.get(a));for(var d=0;d<8;d++)c.write(8,e[d])}break;case 1:for(var a=0;a<b.data.length;a++){var -e=a1(bk(b.get(a)));for(var +e=a1(bn(b.get(a)));for(var d=0;d<8;d++)c.write(8,e[d])}break;case 0:for(var a=0;a<b.data.length;a++){var @@ -151,15 +151,15 @@ a=0;a<b.data.length/2;a++){var d=b.get(a);c.write(32,b9(d[1]));c.write(32,b9(d[2]))}break;case 11:for(var a=0;a<b.data.length/2;a++){var -f=b.get(a),e=a1(bk(f[1]));for(var +f=b.get(a),e=a1(bn(f[1]));for(var d=0;d<8;d++)c.write(8,e[d]);var -e=a1(bk(f[2]));for(var +e=a1(bn(f[2]));for(var d=0;d<8;d++)c.write(8,e[d])}break}g[0]=(4+b.dims.length)*4;g[1]=(4+b.dims.length)*8}function dY(a){switch(a){case 7:case 10:case 11:return 2;default:return 1}}function -hE(c,f){var +hK(c,f){var b=d,a;switch(c){case 0:a=b.Float32Array;break;case 1:a=b.Float64Array;break;case @@ -182,30 +182,30 @@ b=new(d.Float32Array)(a.buffer);return b[0]}function a0(a){return new c(a[7]<<0|a[6]<<8|a[5]<<16,a[4]<<0|a[3]<<8|a[2]<<16,a[1]<<0|a[0]<<8)}function b$(d){var -f=d.lo,g=d.mi,b=d.hi,c=(b&0x7fff)>>4;if(c==2047)return(f|g|b&bV)==0?b&T?-Infinity:Infinity:NaN;var -e=Math.pow(2,-24),a=(f*e+g)*e+(b&bV);if(c>0){a+=16;a*=Math.pow(2,c-dO)}else -a*=Math.pow(2,-c7);if(b&T)a=-a;return a}function +f=d.lo,g=d.mi,b=d.hi,c=(b&0x7fff)>>4;if(c==2047)return(f|g|b&bX)==0?b&U?-Infinity:Infinity:NaN;var +e=Math.pow(2,-24),a=(f*e+g)*e+(b&bX);if(c>0){a+=16;a*=Math.pow(2,c-dO)}else +a*=Math.pow(2,-c8);if(b&U)a=-a;return a}function b5(b){var d=b.length,c=1;for(var a=0;a<d;a++){if(b[a]<0)q("Bigarray.create: negative dimension");c=c*b[a]}return c}function -hV(b,a){return new -c(b&ac,b>>>24&ad|(a&U)<<8,a>>>16&U)}function +h0(b,a){return new +c(b&ac,b>>>24&ad|(a&V)<<8,a>>>16&V)}function ca(a){return a.hi32()}function cb(a){return a.lo32()}var -hF=dM;function -aj(c,d,b,a){this.kind=c;this.layout=d;this.dims=b;this.data=a}aj.prototype.caml_custom=hF;aj.prototype.offset=function(b){var +hL=bh;function +aj(c,d,b,a){this.kind=c;this.layout=d;this.dims=b;this.data=a}aj.prototype.caml_custom=hL;aj.prototype.offset=function(b){var c=0;if(typeof b==="number")b=[b];if(!(b instanceof Array))q("bigarray.js: invalid offset");if(this.dims.length!=b.length)q("Bigarray.get/set: bad number of dimensions");if(this.layout==0)for(var -a=0;a<this.dims.length;a++){if(b[a]<0||b[a]>=this.dims[a])bf();c=c*this.dims[a]+b[a]}else +a=0;a<this.dims.length;a++){if(b[a]<0||b[a]>=this.dims[a])bi();c=c*this.dims[a]+b[a]}else for(var -a=this.dims.length-1;a>=0;a--){if(b[a]<1||b[a]>this.dims[a])bf();c=c*this.dims[a]+(b[a]-1)}return c};aj.prototype.get=function(a){switch(this.kind){case +a=this.dims.length-1;a>=0;a--){if(b[a]<1||b[a]>this.dims[a])bi();c=c*this.dims[a]+(b[a]-1)}return c};aj.prototype.get=function(a){switch(this.kind){case 7:var -d=this.data[a*2+0],b=this.data[a*2+1];return hV(d,b);case +d=this.data[a*2+0],b=this.data[a*2+1];return h0(d,b);case 10:case 11:var -e=this.data[a*2+0],c=this.data[a*2+1];return[bd,e,c];default:return this.data[a]}};aj.prototype.set=function(a,b){switch(this.kind){case +e=this.data[a*2+0],c=this.data[a*2+1];return[be,e,c];default:return this.data[a]}};aj.prototype.set=function(a,b){switch(this.kind){case 7:this.data[a*2+0]=cb(b);this.data[a*2+1]=ca(b);break;case 10:case 11:this.data[a*2+0]=b[1];this.data[a*2+1]=b[2];break;default:this.data[a]=b;break}return 0};aj.prototype.fill=function(b){switch(this.kind){case @@ -242,7 +242,7 @@ aj();aD.prototype.offset=function(a){if(typeof a!=="number")if(a instanceof Array&&a.length==1)a=a[0];else -q("Ml_Bigarray_c_1_1.offset");if(a<0||a>=this.dims[0])bf();return a};aD.prototype.get=function(a){return this.data[a]};aD.prototype.set=function(a,b){this.data[a]=b;return 0};aD.prototype.fill=function(a){this.data.fill(a);return 0};function +q("Ml_Bigarray_c_1_1.offset");if(a<0||a>=this.dims[0])bi();return a};aD.prototype.get=function(a){return this.data[a]};aD.prototype.set=function(a,b){this.data[a]=b;return 0};aD.prototype.fill=function(a){this.data.fill(a);return 0};function dW(c,d,a,b){var e=dY(c);if(b5(a)*e!=b.length)q("length doesn't match dims");if(d==0&&a.length==1&&e==1)return new aD(c,d,a,b);return new @@ -250,13 +250,13 @@ aj(c,d,a,b)}function aE(a){ce(o.Failure,a)}function dX(b,v,r){var i=b.read32s();if(i<0||i>16)aE("input_value: wrong number of bigarray dimensions");var -p=b.read32s(),j=p&ad,o=p>>8&1,h=[];if(r==b0)for(var +p=b.read32s(),j=p&ad,o=p>>8&1,h=[];if(r==bh)for(var a=0;a<i;a++){var -n=b.read16u();if(n==U){var +n=b.read16u();if(n==V){var t=b.read32u(),u=b.read32u();if(t!=0)aE("input_value: bigarray dimension overflow in 32bit");n=u}h.push(n)}else for(var a=0;a<i;a++)h.push(b.read32u());var -d=b5(h),f=hE(j,d),g=dW(j,o,h,f);switch(j){case +d=b5(h),f=hK(j,d),g=dW(j,o,h,f);switch(j){case 2:for(var a=0;a<d;a++)f[a]=b.read8s();break;case 3:case @@ -289,7 +289,7 @@ a=0;a<d;a++){var k=b_(b.read32s());g.set(a,k)}break;case 10:for(var a=0;a<d;a++){var -m=b_(b.read32s()),l=b_(b.read32s());g.set(a,[bd,m,l])}break;case +m=b_(b.read32s()),l=b_(b.read32s());g.set(a,[be,m,l])}break;case 11:var e=new Array(8);for(var @@ -297,17 +297,17 @@ a=0;a<d;a++){for(var c=0;c<8;c++)e[c]=b.read8u();var m=b$(a0(e));for(var c=0;c<8;c++)e[c]=b.read8u();var -l=b$(a0(e));g.set(a,[bd,m,l])}break}v[0]=(4+i)*4;return dW(j,o,h,f)}function +l=b$(a0(e));g.set(a,[be,m,l])}break}v[0]=(4+i)*4;return dW(j,o,h,f)}function dV(a,b,c){return a.compare(b,c)}function aF(a,b){return Math.imul(a,b)}function af(b,a){a=aF(a,0xcc9e2d51|0);a=a<<15|a>>>32-15;a=aF(a,0x1b873593);b^=a;b=b<<13|b>>>32-13;return(b+(b<<2)|0)+(0xe6546b64|0)|0}function -hR(a,b){a=af(a,cb(b));a=af(a,ca(b));return a}function -d8(a,b){return hR(a,bk(b))}function +hW(a,b){a=af(a,cb(b));a=af(a,ca(b));return a}function +d9(a,b){return hW(a,bn(b))}function dZ(c){var b=b5(c.dims),d=0;switch(c.kind){case 2:case 3:case -12:if(b>dq)b=dq;var +12:if(b>dr)b=dr;var e=0,a=0;for(a=0;a+4<=c.data.length;a+=4){e=c.data[a+0]|c.data[a+1]<<8|c.data[a+2]<<16|c.data[a+3]<<24;d=af(d,e)}e=0;switch(b&3){case 3:e=c.data[a+2]<<16;case 2:e|=c.data[a+1]<<8;case @@ -324,65 +324,65 @@ a=0;a<b;a++)d=af(d,c.data[a]);break;case a=0;a<b;a++)d=af(d,c.data[a]);break;case 10:b*=2;case 0:if(b>64)b=64;for(var -a=0;a<b;a++)d=d8(d,c.data[a]);break;case +a=0;a<b;a++)d=d9(d,c.data[a]);break;case 11:b*=2;case 1:if(b>32)b=32;for(var -a=0;a<b;a++)d=d8(d,c.data[a]);break}return d}function -hT(a,b){b[0]=4;return a.read32s()}function -ie(a,b){switch(a.read8u()){case +a=0;a<b;a++)d=d9(d,c.data[a]);break}return d}function +hY(a,b){b[0]=4;return a.read32s()}function +ik(a,b){switch(a.read8u()){case 1:b[0]=4;return a.read32s();case 2:aE("input_value: native integer value too large");default:aE("input_value: ill-formed native integer")}}function -h4(c,d){var +h9(c,d){var b=new Array(8);for(var a=0;a<8;a++)b[a]=c.read8u();d[0]=8;return a0(b)}function -h0(e,d,b){var +h5(e,d,b){var c=a1(d);for(var a=0;a<8;a++)e.write(8,c[a]);b[0]=8;b[1]=8}function -hU(a,b,c){return a.compare(b)}function -hX(a){return a.lo32()^a.hi32()}var -d7={"_j":{deserialize:h4,serialize:h0,fixed_length:8,compare:hU,hash:hX},"_i":{deserialize:hT,fixed_length:4},"_n":{deserialize:ie,fixed_length:4},"_bigarray":{deserialize:function(a,b){return dX(a,b,dM)},serialize:d0,compare:dV,hash:dZ},"_bigarr02":{deserialize:function(a,b){return dX(a,b,b0)},serialize:d0,compare:dV,hash:dZ}};function +hZ(a,b,c){return a.compare(b)}function +h2(a){return a.lo32()^a.hi32()}var +d7={"_j":{deserialize:h9,serialize:h5,fixed_length:8,compare:hZ,hash:h2},"_i":{deserialize:hY,fixed_length:4},"_n":{deserialize:ik,fixed_length:4},"_bigarray":{deserialize:function(a,b){return dX(a,b,"_bigarray")},serialize:d0,compare:dV,hash:dZ},"_bigarr02":{deserialize:function(a,b){return dX(a,b,bh)},serialize:d0,compare:dV,hash:dZ}};function b6(a){return d7[a.caml_custom]&&d7[a.caml_custom].compare}function d4(f,c,d,e){var b=b6(c);if(b){var a=d>0?b(c,f,e):b(f,c,e);if(e&&a!=a)return d;if(+a!=+a)return+a;if((a|0)!=0)return a|0}return d}function -bm(a){return a +bp(a){return a instanceof ae}function -cc(a){return bm(a)}function +cc(a){return bp(a)}function d5(a){if(typeof a==="number")return aV;else -if(bm(a))return be;else +if(bp(a))return bg;else if(cc(a))return 1252;else if(a instanceof -Array&&a[0]===a[0]>>>0&&a[0]<=dr){var -b=a[0]|0;return b==bd?0:b}else +Array&&a[0]===a[0]>>>0&&a[0]<=ds){var +b=a[0]|0;return b==be?0:b}else if(a instanceof -String)return dF;else +String)return dG;else if(typeof -a=="string")return dF;else +a=="string")return dG;else if(a instanceof Number)return aV;else -if(a&&a.caml_custom)return bX;else +if(a&&a.caml_custom)return bY;else if(a&&a.compare)return 1256;else if(typeof a=="function")return 1247;else if(typeof a=="symbol")return 1251;return 1001}function -h5(a,b){if(a<b)return-1;if(a==b)return 0;return 1}function -d2(a,b){a.t&6&&bi(a);b.t&6&&bi(b);return a.c<b.c?-1:a.c>b.c?1:0}function -iy(a,b){return d2(a,b)}function -bg(a,b,d){var +h_(a,b){if(a<b)return-1;if(a==b)return 0;return 1}function +d2(a,b){a.t&6&&bl(a);b.t&6&&bl(b);return a.c<b.c?-1:a.c>b.c?1:0}function +iD(a,b){return d2(a,b)}function +bj(a,b,d){var e=[];for(;;){if(!(d&&a===b)){var -f=d5(a);if(f==dt){a=a[1];continue}var -g=d5(b);if(g==dt){b=b[1];continue}if(f!==g){if(f==aV){if(g==bX)return d4(a,b,-1,d);return-1}if(g==aV){if(f==bX)return d4(b,a,1,d);return 1}return f<g?-1:1}switch(f){case -247:q(bS);break;case +f=d5(a);if(f==du){a=a[1];continue}var +g=d5(b);if(g==du){b=b[1];continue}if(f!==g){if(f==aV){if(g==bY)return d4(a,b,-1,d);return-1}if(g==aV){if(f==bY)return d4(b,a,1,d);return 1}return f<g?-1:1}switch(f){case +247:q(bU);break;case 248:var -c=h5(a[2],b[2]);if(c!=0)return c|0;break;case -249:q(bS);break;case +c=h_(a[2],b[2]);if(c!=0)return c|0;break;case +249:q(bU);break;case 250:q("equal: got Forward_tag, should not happen");break;case 251:q("equal: abstract value");break;case 252:if(a!==b){var @@ -390,7 +390,7 @@ c=d2(a,b);if(c!=0)return c|0}break;case 253:q("equal: got Double_tag, should not happen");break;case 254:q("equal: got Double_array_tag, should not happen");break;case 255:q("equal: got Custom_tag, should not happen");break;case -1247:q(bS);break;case +1247:q(bU);break;case 1255:var i=b6(a);if(i!=b6(b))return a.caml_custom<b.caml_custom?-1:1;if(!i)q("compare: abstract value");var c=i(a,b,d);if(c!=c)return d?-1:c;if(c!==(c|0))return-1;if(c!=0)return c|0;break;case @@ -406,12 +406,12 @@ a=a.toString(),b=b.toString();if(a!==b){if(a<b)return-1;if(a>b)return 1}break;ca 246:case 254:default:if(a.length!=b.length)return a.length<b.length?-1:1;if(a.length>1)e.push(a,b,1);break}}if(e.length==0)return 0;var h=e.pop();b=e.pop();a=e.pop();if(h+1<a.length)e.push(a,b,h+1);a=a[h];b=b[h]}}function -ix(a,b){return bg(a,b,true)}function -hL(){return[0]}function +iC(a,b){return bj(a,b,true)}function +hR(){return[0]}function t(a){if(a<0)q("Bytes.create");return new ae(a?2:9,f,a)}function -hM(a,b){return+(bg(a,b,false)==0)}function -hN(a,c,b,d){if(b>0)if(c==0&&(b>=a.l||a.t==2&&b>=a.c.length))if(d==0){a.c=f;a.t=2}else{a.c=aH(b,String.fromCharCode(d));a.t=b==a.l?0:2}else{if(a.t!=4)bh(a);for(b+=c;c<b;c++)a.c[c]=d}return 0}function +d8(a,b){return+(bj(a,b,false)==0)}function +hS(a,c,b,d){if(b>0)if(c==0&&(b>=a.l||a.t==2&&b>=a.c.length))if(d==0){a.c=f;a.t=2}else{a.c=aH(b,String.fromCharCode(d));a.t=b==a.l?0:2}else{if(a.t!=4)bk(a);for(b+=c;c<b;c++)a.c[c]=d}return 0}function cd(d){d=ag(d);var e=d.length;if(e>31)q("format_int: format too long");var a={justify:aB,signstyle:ap,filler:aa,alternate:false,base:0,signedconv:false,width:0,uppercase:false,sign:1,prec:-1,conv:"f"};for(var @@ -421,7 +421,7 @@ b7(b,g){if(b.uppercase)g=g.toUpperCase();var e=g.length;if(b.signedconv&&(b.sign<0||b.signstyle!=ap))e++;if(b.alternate){if(b.base==8)e+=1;if(b.base==16)e+=2}var c=f;if(b.justify==aB&&b.filler==aa)for(var d=e;d<b.width;d++)c+=aa;if(b.signedconv)if(b.sign<0)c+=ap;else -if(b.signstyle!=ap)c+=b.signstyle;if(b.alternate&&b.base==8)c+=G;if(b.alternate&&b.base==16)c+=dc;if(b.justify==aB&&b.filler==G)for(var +if(b.signstyle!=ap)c+=b.signstyle;if(b.alternate&&b.base==8)c+=G;if(b.alternate&&b.base==16)c+=de;if(b.justify==aB&&b.filler==G)for(var d=e;d<b.width;d++)c+=G;c+=g;if(b.justify==ap)for(var d=e;d<b.width;d++)c+=aa;return a(c)}function b8(i,c){function @@ -430,7 +430,7 @@ c=parseInt(a.toString().split(aB)[1]);if(c>20){c-=20;a/=Math.pow(10,c);a+=new Array(c+1).join(G);if(b>0)a=a+ao+new Array(b+1).join(G);return a}else return a.toFixed(b)}}var -a,e=cd(i),d=e.prec<0?6:e.prec;if(c<0||c==0&&1/c==-Infinity){e.sign=-1;c=-c}if(isNaN(c)){a=bY;e.filler=aa}else +a,e=cd(i),d=e.prec<0?6:e.prec;if(c<0||c==0&&1/c==-Infinity){e.sign=-1;c=-c}if(isNaN(c)){a=bZ;e.filler=aa}else if(!isFinite(c)){a="inf";e.filler=aa}else switch(e.conv){case"e":var a=c.toExponential(d),b=a.length;if(a.charAt(b-3)==b2)a=a.slice(0,b-1)+G+a.slice(b-1);break;case"f":a=j(c,d);break;case"g":d=d?d:1;a=c.toExponential(d-1);var @@ -439,132 +439,132 @@ b=h-1;while(a.charAt(b)==G)b--;if(a.charAt(b)==ao)b--;a=a.slice(0,b+1)+a.slice(h f=d;if(g<0){f-=g+1;a=c.toFixed(f)}else while(a=c.toFixed(f),a.length>d+1)f--;if(f){var b=a.length-1;while(a.charAt(b)==G)b--;if(a.charAt(b)==ao)b--;a=a.slice(0,b+1)}}break}return b7(e,a)}function -bj(e,c){if(ag(e)==bU)return a(f+c);var +bm(e,c){if(ag(e)==bW)return a(f+c);var b=cd(e);if(c<0)if(b.signedconv){b.sign=-1;c=-c}else c>>>=0;var d=c.toString(b.base);if(b.prec>=0){b.filler=aa;var g=b.prec-d.length;if(g>0)d=aH(g,G)+d}return b7(b,d)}var -ig=0;function -X(){return ig++}function +il=0;function +R(){return il++}function a2(a){return a.toUtf16()}if(d.process&&d.process.cwd)var aZ=d.process.cwd().replace(/\\/g,ab);else var aZ="/static";if(aZ.slice(-1)!==ab)aZ+=ab;function -ia(a){a=a2(a);if(a.charCodeAt(0)!=47)a=aZ+a;var +ig(a){a=a2(a);if(a.charCodeAt(0)!=47)a=aZ+a;var d=a.split(ab),b=[];for(var c=0;c<d.length;c++)switch(d[c]){case"..":if(b.length>1)b.pop();break;case".":break;case"":if(b.length==0)b.push(f);break;default:b.push(d[c]);break}b.orig=a;return b}function -hH(a){return new +hN(a){return new ae(4,a,a.length)}function -ir(e){for(var +iw(e){for(var g=f,b=g,a,i,c=0,h=e.length;c<h;c++){a=e.charCodeAt(c);if(a<Q){for(var -d=c+1;d<h&&(a=e.charCodeAt(d))<Q;d++);if(d-c>df){b.substr(0,1);g+=b;b=f;g+=e.slice(c,d)}else -b+=e.slice(c,d);if(d==h)break;c=d}if(a<ds){b+=String.fromCharCode(0xc0|a>>6);b+=String.fromCharCode(Q|a&aC)}else -if(a<0xd800||a>=dv)b+=String.fromCharCode(dw|a>>12,Q|a>>6&aC,Q|a&aC);else -if(a>=0xdbff||c+1==h||(i=e.charCodeAt(c+1))<dm||i>dv)b+="\xef\xbf\xbd";else{c++;a=(a<<10)+i-0x35fdc00;b+=String.fromCharCode(dB|a>>18,Q|a>>12&aC,Q|a>>6&aC,Q|a&aC)}if(b.length>aW){b.substr(0,1);g+=b;b=f}}return g+b}function -hI(a){var -b=9;if(!ei(a))b=8,a=ir(a);return new +d=c+1;d<h&&(a=e.charCodeAt(d))<Q;d++);if(d-c>dg){b.substr(0,1);g+=b;b=f;g+=e.slice(c,d)}else +b+=e.slice(c,d);if(d==h)break;c=d}if(a<dt){b+=String.fromCharCode(0xc0|a>>6);b+=String.fromCharCode(Q|a&aC)}else +if(a<0xd800||a>=dw)b+=String.fromCharCode(dx|a>>12,Q|a>>6&aC,Q|a&aC);else +if(a>=0xdbff||c+1==h||(i=e.charCodeAt(c+1))<dn||i>dw)b+="\xef\xbf\xbd";else{c++;a=(a<<10)+i-0x35fdc00;b+=String.fromCharCode(dC|a>>18,Q|a>>12&aC,Q|a>>6&aC,Q|a&aC)}if(b.length>aW){b.substr(0,1);g+=b;b=f}}return g+b}function +hO(a){var +b=9;if(!ej(a))b=8,a=iw(a);return new ae(b,a,a.length)}function -at(a){return hI(a)}function +at(a){return hO(a)}function g(a){ce(o.Sys_error,a)}function -ii(a){a=ag(a);g(a+": No such file or directory")}function -hG(b,a){if(a>>>0>=b.l)d1();return aY(b,a)}function +io(a){a=ag(a);g(a+": No such file or directory")}function +hM(b,a){if(a>>>0>=b.l)d1();return aY(b,a)}function L(a){return a.l}function dU(){}function -v(a){this.data=a}v.prototype=new -dU();v.prototype.truncate=function(a){var -b=this.data;this.data=t(a|0);ak(b,0,this.data,0,a)};v.prototype.length=function(){return L(this.data)};v.prototype.write=function(b,d,g,a){var +w(a){this.data=a}w.prototype=new +dU();w.prototype.truncate=function(a){var +b=this.data;this.data=t(a|0);ak(b,0,this.data,0,a)};w.prototype.length=function(){return L(this.data)};w.prototype.write=function(b,d,g,a){var c=this.length();if(b+a>=c){var -e=t(b+a),f=this.data;this.data=e;ak(f,0,this.data,0,c)}aq(d,g,this.data,b,a);return 0};v.prototype.read=function(c,a,d,b){var -e=this.length();ak(this.data,c,a,d,b);return 0};v.prototype.read_one=function(a){return hG(this.data,a)};v.prototype.close=function(){};v.prototype.constructor=v;function +e=t(b+a),f=this.data;this.data=e;ak(f,0,this.data,0,c)}aq(d,g,this.data,b,a);return 0};w.prototype.read=function(c,a,d,b){var +e=this.length();ak(this.data,c,a,d,b);return 0};w.prototype.read_one=function(a){return hM(this.data,a)};w.prototype.close=function(){};w.prototype.constructor=w;function M(b,a){this.content={};this.root=b;this.lookupFun=a}M.prototype.nm=function(a){return this.root+a};M.prototype.lookup=function(b){if(!this.content[b]&&this.lookupFun){var c=this.lookupFun(a(this.root),a(b));if(c!==0)this.content[b]=new -v(ar(c[1]))}};M.prototype.exists=function(a){if(a==f)return 1;var +w(ar(c[1]))}};M.prototype.exists=function(a){if(a==f)return 1;var c=a+ab,d=new -RegExp(bZ+c);for(var +RegExp(b0+c);for(var b in this.content)if(b.match(d))return 1;this.lookup(a);return this.content[a]?1:0};M.prototype.readdir=function(c){var g=c==f?f:c+ab,h=new -RegExp(bZ+g+dJ),d={},b=[];for(var +RegExp(b0+g+dK),d={},b=[];for(var e in this.content){var a=e.match(h);if(a&&!d[a[1]]){d[a[1]]=true;b.push(a[1])}}return b};M.prototype.is_dir=function(a){var d=a==f?f:a+ab,e=new -RegExp(bZ+d+dJ),g=[];for(var +RegExp(b0+d+dK),g=[];for(var c in this.content){var b=c.match(e);if(b)return 1}return 0};M.prototype.unlink=function(a){var b=this.content[a]?true:false;delete -this.content[a];return b};M.prototype.open=function(a,b){if(b.rdonly&&b.wronly)g(this.nm(a)+dK);if(b.text&&b.binary)g(this.nm(a)+da);this.lookup(a);if(this.content[a]){if(this.is_dir(a))g(this.nm(a)+" : is a directory");if(b.create&&b.excl)g(this.nm(a)+dI);var +this.content[a];return b};M.prototype.open=function(a,b){if(b.rdonly&&b.wronly)g(this.nm(a)+dL);if(b.text&&b.binary)g(this.nm(a)+dc);this.lookup(a);if(this.content[a]){if(this.is_dir(a))g(this.nm(a)+" : is a directory");if(b.create&&b.excl)g(this.nm(a)+dJ);var c=this.content[a];if(b.truncate)c.truncate();return c}else if(b.create){this.content[a]=new -v(t(0));return this.content[a]}else -ii(this.nm(a))};M.prototype.register=function(b,a){if(this.content[b])g(this.nm(b)+dI);if(bm(a))this.content[b]=new -v(a);if(cc(a))this.content[b]=new -v(ar(a));else +w(t(0));return this.content[a]}else +io(this.nm(a))};M.prototype.register=function(b,a){if(this.content[b])g(this.nm(b)+dJ);if(bp(a))this.content[b]=new +w(a);if(cc(a))this.content[b]=new +w(ar(a));else if(a instanceof Array)this.content[b]=new -v(hH(a));else +w(hN(a));else if(typeof a==="string")this.content[b]=new -v(d3(a));else +w(d3(a));else if(a.toString){var c=ar(at(a.toString()));this.content[b]=new -v(c)}else +w(c)}else g(this.nm(b)+" : registering file with invalid content type")};M.prototype.constructor=M;function -w(a){return L(a)}function +x(a){return L(a)}function a4(b,a){return aY(b,a)}function -hD(d){var -c=w(d),b=new +hJ(d){var +c=x(d),b=new Array(c),a=0;for(;a<c;a++)b[a]=a4(d,a);return b}function -hC(a){if(a.t!=4)bh(a);return a.c}function -W(a){this.fs=require("fs");this.fd=a}W.prototype=new -dU();W.prototype.truncate=function(a){try{this.fs.ftruncateSync(this.fd,a|0)}catch(a){g(a.toString())}};W.prototype.length=function(){try{return this.fs.fstatSync(this.fd).size}catch(a){g(a.toString())}};W.prototype.write=function(h,b,c,f){var -a=hD(b);if(!(a +hI(a){if(a.t!=4)bk(a);return a.c}function +X(a){this.fs=require("fs");this.fd=a}X.prototype=new +dU();X.prototype.truncate=function(a){try{this.fs.ftruncateSync(this.fd,a|0)}catch(a){g(a.toString())}};X.prototype.length=function(){try{return this.fs.fstatSync(this.fd).size}catch(a){g(a.toString())}};X.prototype.write=function(h,b,c,f){var +a=hJ(b);if(!(a instanceof d.Uint8Array))a=new(d.Uint8Array)(a);var -e=d.Buffer.from(a);try{this.fs.writeSync(this.fd,e,c,f,h)}catch(a){g(a.toString())}return 0};W.prototype.read=function(i,e,c,h){var -a=hC(e);if(!(a +e=d.Buffer.from(a);try{this.fs.writeSync(this.fd,e,c,f,h)}catch(a){g(a.toString())}return 0};X.prototype.read=function(i,e,c,h){var +a=hI(e);if(!(a instanceof d.Uint8Array))a=new(d.Uint8Array)(a);var f=d.Buffer.from(a);try{this.fs.readSync(this.fd,f,c,h,i)}catch(a){g(a.toString())}for(var -b=0;b<h;b++)as(e,c+b,f[c+b]);return 0};W.prototype.read_one=function(c){var -b=new(d.Uint8Array)(1),a=d.Buffer.from(b);try{this.fs.readSync(this.fd,a,0,1,c)}catch(a){g(a.toString())}return a[0]};W.prototype.close=function(){try{this.fs.closeSync(this.fd)}catch(a){g(a.toString())}};W.prototype.constructor=W;function -V(a){this.fs=require("fs");this.root=a}V.prototype.nm=function(a){return this.root+a};V.prototype.exists=function(a){try{return this.fs.existsSync(this.nm(a))?1:0}catch(a){g(a.toString())}};V.prototype.readdir=function(a){try{return this.fs.readdirSync(this.nm(a))}catch(a){g(a.toString())}};V.prototype.is_dir=function(a){try{return this.fs.statSync(this.nm(a)).isDirectory()?1:0}catch(a){g(a.toString())}};V.prototype.unlink=function(a){try{var -b=this.fs.existsSync(this.nm(a))?1:0;this.fs.unlinkSync(this.nm(a))}catch(a){g(a.toString())}return b};V.prototype.open=function(f,c){var +b=0;b<h;b++)as(e,c+b,f[c+b]);return 0};X.prototype.read_one=function(c){var +b=new(d.Uint8Array)(1),a=d.Buffer.from(b);try{this.fs.readSync(this.fd,a,0,1,c)}catch(a){g(a.toString())}return a[0]};X.prototype.close=function(){try{this.fs.closeSync(this.fd)}catch(a){g(a.toString())}};X.prototype.constructor=X;function +W(a){this.fs=require("fs");this.root=a}W.prototype.nm=function(a){return this.root+a};W.prototype.exists=function(a){try{return this.fs.existsSync(this.nm(a))?1:0}catch(a){g(a.toString())}};W.prototype.readdir=function(a){try{return this.fs.readdirSync(this.nm(a))}catch(a){g(a.toString())}};W.prototype.is_dir=function(a){try{return this.fs.statSync(this.nm(a)).isDirectory()?1:0}catch(a){g(a.toString())}};W.prototype.unlink=function(a){try{var +b=this.fs.existsSync(this.nm(a))?1:0;this.fs.unlinkSync(this.nm(a))}catch(a){g(a.toString())}return b};W.prototype.open=function(f,c){var a=require("constants"),b=0;for(var e in c)switch(e){case"rdonly":b|=a.O_RDONLY;break;case"wronly":b|=a.O_WRONLY;break;case"append":b|=a.O_WRONLY|a.O_APPEND;break;case"create":b|=a.O_CREAT;break;case"truncate":b|=a.O_TRUNC;break;case"excl":b|=a.O_EXCL;break;case"binary":b|=a.O_BINARY;break;case"text":b|=a.O_TEXT;break;case"nonblock":b|=a.O_NONBLOCK;break}try{var d=this.fs.openSync(this.nm(f),b);return new -W(d)}catch(a){g(a.toString())}};V.prototype.rename=function(b,a){try{this.fs.renameSync(this.nm(b),this.nm(a))}catch(a){g(a.toString())}};V.prototype.constructor=V;var +X(d)}catch(a){g(a.toString())}};W.prototype.rename=function(b,a){try{this.fs.renameSync(this.nm(b),this.nm(a))}catch(a){g(a.toString())}};W.prototype.constructor=W;var aG=aZ.match(/[^\/]*\//)[0];function -is(){return typeof +ix(){return typeof d.process!=="undefined"&&typeof d.process.versions!=="undefined"&&typeof d.process.versions.node!=="undefined"&&d.process.platform!=="browser"}var -a6=[];if(is())a6.push({path:aG,device:new -V(aG)});else +a6=[];if(ix())a6.push({path:aG,device:new +W(aG)});else a6.push({path:aG,device:new -M(aG)});a6.push({path:aG+c8,device:new -M(aG+c8)});function -ej(b){var -f=ia(b),b=f.join(ab),e=b+ab,c;for(var +M(aG)});a6.push({path:aG+c9,device:new +M(aG+c9)});function +ek(b){var +f=ig(b),b=f.join(ab),e=b+ab,c;for(var d=0;d<a6.length;d++){var a=a6[d];if(e.search(a.path)==0&&(!c||c.path.length<a.path.length))c={path:a.path,device:a.device,rest:b.substring(a.path.length,b.length)}}return c}function d6(c,b){var c=typeof c=="string"?a(c):c,b=typeof -b=="string"?a(b):b,d=ej(c);if(!d.device.register)aE("cannot register file");d.device.register(d.rest,b);return 0}function -hO(){var +b=="string"?a(b):b,d=ek(c);if(!d.device.register)aE("cannot register file");d.device.register(d.rest,b);return 0}function +hT(){var b=d.caml_fs_tmp;if(b)for(var a=0;a<b.length;a++)d6(b[a].name,b[a].content);d.caml_create_file=d6;d.caml_fs_tmp=[];return 0}function -hP(){return[0]}function -hQ(a,b){return+(bg(a,b,false)>=0)}function -hS(a,c,l){if(!isFinite(a)){if(isNaN(a))return at(bY);return at(a>0?dD:"-infinity")}var +hU(){return[0]}function +hV(a,b){return+(bj(a,b,false)>=0)}function +hX(a,c,l){if(!isFinite(a)){if(isNaN(a))return at(bZ);return at(a>0?dE:"-infinity")}var j=a==0&&1/a==-Infinity?1:a>=0?0:1;if(j)a=-a;var d=0;if(a==0);else if(a<1)while(a<1&&d>-1022){a*=2;d--}else @@ -577,59 +577,59 @@ h=Math.pow(2,c*4);a=Math.round(a*h)/h}var b=a.toString(16);if(c>=0){var i=b.indexOf(ao);if(i<0)b+=ao+aH(c,G);else{var g=i+1+c;if(b.length<g)b+=aH(g-b.length,G);else -b=b.substr(0,g)}}return at(e+dc+b+"p"+k+d.toString(10))}function -hZ(a){return+a.isZero()}function -h2(a){return new -c(a&ac,a>>24&ac,a>>31&U)}function -h3(a){return a.toInt()}function -hY(a){return+a.isNeg()}function -h1(a){return a.neg()}function -hW(h,c){var -a=cd(h);if(a.signedconv&&hY(c)){a.sign=-1;c=h1(c)}var -b=f,i=h2(a.base),g="0123456789abcdef";do{var -e=c.udivmod(i);c=e.quotient;b=g.charAt(h3(e.modulus))+b}while(!hZ(c));if(a.prec>=0){a.filler=aa;var +b=b.substr(0,g)}}return at(e+de+b+"p"+k+d.toString(10))}function +h4(a){return+a.isZero()}function +h7(a){return new +c(a&ac,a>>24&ac,a>>31&V)}function +h8(a){return a.toInt()}function +h3(a){return+a.isNeg()}function +h6(a){return a.neg()}function +h1(h,c){var +a=cd(h);if(a.signedconv&&h3(c)){a.sign=-1;c=h6(c)}var +b=f,i=h7(a.base),g="0123456789abcdef";do{var +e=c.udivmod(i);c=e.quotient;b=g.charAt(h8(e.modulus))+b}while(!h4(c));if(a.prec>=0){a.filler=aa;var d=a.prec-b.length;if(d>0)b=aH(d,G)+b}return b7(a,b)}function -h8(a){return a.slice(1)}function -h6(b,c,a){return b.apply(c,h8(a))}function -h7(){return typeof +ib(a){return a.slice(1)}function +h$(b,c,a){return b.apply(c,ib(a))}function +ia(){return typeof module!=="undefined"&&module&&module.exports?module.exports:d}function -d_(a){return!!a}function -h9(){var +d$(a){return!!a}function +ic(){var b=d.console?d.console:{},c=["log","debug","info","warn","error","assert","dir","dirxml","trace","group","groupCollapsed","groupEnd","time","timeEnd"];function e(){}for(var a=0;a<c.length;a++)if(!b[c[a]])b[c[a]]=e;return b}function -d$(d){return function(){var +ea(d){return function(){var b=arguments.length;if(b>0){var c=new Array(b);for(var a=0;a<b;a++)c[a]=arguments[a];return N(d,c)}else return N(d,[undefined])}}function -h_(d){return function(){var +id(d){return function(){var c=arguments.length,b=new Array(c+1);b[0]=this;for(var a=0;a<c;a++)b[a+1]=arguments[a];return N(d,b)}}function -h$(d){return function(){var +ie(d){return function(){var c=arguments.length,b=new Array(c+1);b[0]=this;for(var a=0;a<c;a++)b[a+1]=arguments[a];return d.apply(null,b)}}var Y=new Array();function -bn(c){var +bq(c){var a=Y[c];if(!a.opened)g("Cannot flush a closed channel");if(!a.buffer||a.buffer==f)return 0;if(a.fd&&o.fds[a.fd]&&o.fds[a.fd].output){var b=o.fds[a.fd].output;switch(b.length){case 2:b(c,a.buffer);break;default:b(a.buffer)}}a.buffer=f;return 0}function -eh(e,f){var -b=Y[e],d=a(f),c=w(d);b.file.write(b.offset,d,0,c);b.offset+=c;return 0}function -it(a){var +ei(e,f){var +b=Y[e],d=a(f),c=x(d);b.file.write(b.offset,d,0,c);b.offset+=c;return 0}function +iy(a){var a=cg(a),b=d;if(b.process&&b.process.stdout&&b.process.stdout.write)b.process.stderr.write(a);else{if(a.charCodeAt(a.length-1)==10)a=a.substr(0,a.length-1);var c=b.console;c&&c.error&&c.error(a)}}function -iu(a){var +iz(a){var a=cg(a),b=d;if(b.process&&b.process.stdout&&b.process.stdout.write)b.process.stdout.write(a);else{if(a.charCodeAt(a.length-1)==10)a=a.substr(0,a.length-1);var c=b.console;c&&c.log&&c.log(a)}}function -bp(c,e,d,a){if(o.fds===undefined)o.fds=new +bs(c,e,d,a){if(o.fds===undefined)o.fds=new Array();a=a?a:{};var b={};b.file=d;b.offset=a.append?d.length():0;b.flags=a;b.output=e;o.fds[c]=b;if(!o.fd_last_idx||c>o.fd_last_idx)o.fd_last_idx=c;return c}function -iz(c,b,h){var +iE(c,b,h){var a={};while(b){switch(b[1]){case 0:a.rdonly=1;break;case 1:a.wronly=1;break;case @@ -639,74 +639,74 @@ a={};while(b){switch(b[1]){case 5:a.excl=1;break;case 6:a.binary=1;break;case 7:a.text=1;break;case -8:a.nonblock=1;break}b=b[2]}if(a.rdonly&&a.wronly)g(ag(c)+dK);if(a.text&&a.binary)g(ag(c)+da);var -d=ej(c),e=d.device.open(d.rest,a),f=o.fd_last_idx?o.fd_last_idx:0;return bp(f+1,eh,e,a)}bp(0,eh,new -v(t(0)));bp(1,iu,new -v(t(0)));bp(2,it,new -v(t(0)));function -ib(c){var +8:a.nonblock=1;break}b=b[2]}if(a.rdonly&&a.wronly)g(ag(c)+dL);if(a.text&&a.binary)g(ag(c)+dc);var +d=ek(c),e=d.device.open(d.rest,a),f=o.fd_last_idx?o.fd_last_idx:0;return bs(f+1,ei,e,a)}bs(0,ei,new +w(t(0)));bs(1,iz,new +w(t(0)));bs(2,iy,new +w(t(0)));function +ih(c){var b=o.fds[c];if(b.flags.wronly)g(dQ+c+" is writeonly");var a={file:b.file,offset:b.offset,fd:c,opened:true,out:false,refill:null};Y[a.fd]=a;return a.fd}function -ea(c){var +eb(c){var b=o.fds[c];if(b.flags.rdonly)g(dQ+c+" is readonly");var a={file:b.file,offset:b.offset,fd:c,opened:true,out:true,buffer:f};Y[a.fd]=a;return a.fd}function -ic(){var +ii(){var b=0;for(var a=0;a<Y.length;a++)if(Y[a]&&Y[a].opened&&Y[a].out)b=[0,Y[a].fd,b];return b}function D(a){return a}function -id(h,d,i,f){var +ij(h,d,i,f){var b=Y[h];if(!b.opened)g("Cannot output to a closed channel");var a;if(i==0&&L(d)==f)a=d;else{a=t(f);ak(d,i,a,0,f)}var -j=D(a),c=ag(j),e=c.lastIndexOf("\n");if(e<0)b.buffer+=c;else{b.buffer+=c.substr(0,e+1);bn(h);b.buffer+=c.substr(e+1)}return 0}function -eb(b,a,d,c){return id(b,ar(a),d,c)}function -ec(c,b){var -d=a(String.fromCharCode(b));eb(c,d,0,1);return 0}function -a3(a,b){return+(bg(a,b,false)!=0)}function -bo(a){if(a +j=D(a),c=ag(j),e=c.lastIndexOf("\n");if(e<0)b.buffer+=c;else{b.buffer+=c.substr(0,e+1);bq(h);b.buffer+=c.substr(e+1)}return 0}function +ec(b,a,d,c){return ij(b,ar(a),d,c)}function +ed(c,b){var +d=a(String.fromCharCode(b));ec(c,d,0,1);return 0}function +a3(a,b){return+(bj(a,b,false)!=0)}function +br(a){if(a instanceof Array&&a[0]==a[0]>>>0)return a[0];else -if(bm(a))return be;else -if(cc(a))return be;else +if(bp(a))return bg;else +if(cc(a))return bg;else if(a instanceof Function||typeof a=="function")return 247;else -if(a&&a.caml_custom)return dr;else +if(a&&a.caml_custom)return ds;else return aV}function O(b,c,a){if(a&&d.toplevelReloc)b=d.toplevelReloc(a);o[b+1]=c;if(a)o[a]=c}var -ee={};function -ik(a,b){ee[ag(a)]=b;return 0}function -il(){q(b1)}function -H(b,a){if(a>>>0>=w(b))il();return a4(b,a)}function -im(){return[0,a("js_of_ocaml")]}function -io(){return 0x7FFFFFFF/4|0}function -ip(b){var +ef={};function +iq(a,b){ef[ag(a)]=b;return 0}function +ir(){q(b1)}function +H(b,a){if(a>>>0>=x(b))ir();return a4(b,a)}function +is(){return[0,a("js_of_ocaml")]}function +it(){return 0x7FFFFFFF/4|0}function +iu(b){var a=d;if(a.quit)a.quit(b);if(a.process&&a.process.exit)a.process.exit(b);q("Function 'exit' not implemented")}function a5(a){var b=1;while(a&&a.joo_tramp){a=a.joo_tramp.apply(null,a.joo_args);b++}return a}function j(b,a){return{joo_tramp:b,joo_args:a}}function -iq(c,a){if(typeof +iv(c,a){if(typeof a==="function"){c.fun=a;return 0}if(a.fun){c.fun=a.fun;return 0}var b=a.length;while(b--)c[b]=a[b];return 0}function -eg(a){return a}function -ed(a){return ee[a]}function +eh(a){return a}function +ee(a){return ef[a]}function aI(a){if(a instanceof Array)return a;if(d.RangeError&&a instanceof -d.RangeError&&a.message&&a.message.match(/maximum call stack/i))return eg(o.Stack_overflow);if(d.InternalError&&a +d.RangeError&&a.message&&a.message.match(/maximum call stack/i))return eh(o.Stack_overflow);if(d.InternalError&&a instanceof -d.InternalError&&a.message&&a.message.match(/too much recursion/i))return eg(o.Stack_overflow);if(a +d.InternalError&&a.message&&a.message.match(/too much recursion/i))return eh(o.Stack_overflow);if(a instanceof -d.Error&&ed(bW))return[0,ed(bW),a];return[0,o.Failure,at(String(a))]}function +d.Error&&ee(bf))return[0,ee(bf),a];return[0,o.Failure,at(String(a))]}function b(a,b){return a.length==1?a(b):N(a,[b])}function K(a,b,c){return a.length==2?a(b,c):N(a,[b,c])}function -hB(a,b,c,d){return a.length==3?a(b,c,d):N(a,[b,c,d])}function -c4(a,b,c,d,e){return a.length==4?a(b,c,d,e):N(a,[b,c,d,e])}function -bR(a,b,c,d,e,f){return a.length==5?a(b,c,d,e,f):N(a,[b,c,d,e,f])}function -hA(a,b,c,d,e,f,g){return a.length==6?a(b,c,d,e,f,g):N(a,[b,c,d,e,f,g])}hO();var -ck=[z,a(dH),-1],cm=[z,a(dj),-2],bq=[z,a(dn),-3],ch=[z,a(dT),-4],cj=[z,a(dC),-8],cl=[z,a(c_),-9],m=[z,a(du),-11],cn=[z,a(c6),-12],cA=[0,dh],hz=[4,0,0,0,0],bx=[0,[11,a('File "'),[2,0,[11,a('", line '),[4,0,0,0,[11,a(dG),[4,0,0,0,[12,45,[4,0,0,0,[11,a(": "),[2,0,0]]]]]]]]]],a('File "%s", line %d, characters %d-%d: %s')],cR=a("wakeup");O(11,cn,c6);O(10,m,du);O(9,[z,a(dP),-10],dP);O(8,cl,c_);O(7,cj,dC);O(6,[z,a(c9),-7],c9);O(5,[z,a(dk),-6],dk);O(4,[z,a(dp),-5],dp);O(3,ch,dT);O(2,bq,dn);O(1,cm,dj);O(0,ck,dH);var -eo=a("%.12g"),en=a(ao),el=a("true"),em=a("false"),ep=a("\\\\"),eq=a("\\'"),er=a("\\b"),es=a("\\t"),et=a("\\n"),eu=a("\\r"),ex=a("String.blit / Bytes.blit_string"),ew=a("Bytes.blit"),ev=a("String.sub / Bytes.sub"),ez=a("Stdlib.Queue.Empty"),eD=a("Buffer.add: cannot grow buffer"),eC=[0,a(di),93,2],eB=[0,a(di),94,2],eM=a("%c"),eN=a("%s"),eO=a(c5),eP=a(dA),eQ=a(dR),eR=a(c$),eS=a("%f"),eT=a("%B"),eU=a("%{"),eV=a("%}"),eW=a("%("),eX=a("%)"),eY=a("%a"),eZ=a("%t"),e0=a("%?"),e1=a("%r"),e2=a("%_r"),e3=[0,a(s),850,23],fc=[0,a(s),814,21],e6=[0,a(s),815,21],fd=[0,a(s),818,21],e7=[0,a(s),819,21],fe=[0,a(s),822,19],e8=[0,a(s),823,19],ff=[0,a(s),826,22],e9=[0,a(s),827,22],fg=[0,a(s),831,30],e_=[0,a(s),832,30],fa=[0,a(s),836,26],e4=[0,a(s),837,26],fb=[0,a(s),846,28],e5=[0,a(s),847,28],e$=[0,a(s),851,23],gi=a(dN),gg=[0,a(s),1558,4],gh=a("Printf: bad conversion %["),gj=[0,a(s),1626,39],gk=[0,a(s),1649,31],gl=[0,a(s),1650,31],gm=a("Printf: bad conversion %_"),gn=a(dL),go=a(dS),gp=a(dL),gq=a(dS),ge=a(bY),gc=a("neg_infinity"),gd=a(dD),gb=a(ao),fX=a("%+nd"),fY=a("% nd"),f0=a("%+ni"),f1=a("% ni"),f2=a("%nx"),f3=a("%#nx"),f4=a("%nX"),f5=a("%#nX"),f6=a("%no"),f7=a("%#no"),fW=a("%nd"),fZ=a(dR),f8=a("%nu"),fK=a("%+ld"),fL=a("% ld"),fN=a("%+li"),fO=a("% li"),fP=a("%lx"),fQ=a("%#lx"),fR=a("%lX"),fS=a("%#lX"),fT=a("%lo"),fU=a("%#lo"),fJ=a("%ld"),fM=a(dA),fV=a("%lu"),fx=a("%+Ld"),fy=a("% Ld"),fA=a("%+Li"),fB=a("% Li"),fC=a("%Lx"),fD=a("%#Lx"),fE=a("%LX"),fF=a("%#LX"),fG=a("%Lo"),fH=a("%#Lo"),fw=a("%Ld"),fz=a(c$),fI=a("%Lu"),fk=a("%+d"),fl=a("% d"),fn=a("%+i"),fo=a("% i"),fp=a("%x"),fq=a("%#x"),fr=a("%X"),fs=a("%#X"),ft=a("%o"),fu=a("%#o"),fj=a(bU),fm=a(c5),fv=a(dN),eE=a("@]"),eF=a("@}"),eG=a("@?"),eH=a("@\n"),eI=a("@."),eJ=a("@@"),eK=a("@%"),eL=a("@"),fh=a("CamlinternalFormat.Type_mismatch"),gu=a(f),gv=[0,[11,a(", "),[2,0,[2,0,0]]],a(", %s%s")],gN=[0,[2,0,[12,10,0]],a("%s\n")],gO=[0,[11,a(dE),0],a(dE)],gF=a("Raised at"),gG=a("Re-raised at"),gH=a("Raised by primitive operation at"),gI=a("Called from"),gJ=a(" (inlined)"),gL=a(f),gK=[0,[2,0,[11,a(' file "'),[2,0,[12,34,[2,0,[11,a(", line "),[4,0,0,0,[11,a(dG),[4,0,0,0,[12,45,hz]]]]]]]]]],a('%s file "%s"%s, line %d, characters %d-%d')],gM=[0,[2,0,[11,a(" unknown location"),0]],a("%s unknown location")],gA=a("Out of memory"),gB=a("Stack overflow"),gC=a("Pattern matching failed"),gD=a("Assertion failed"),gE=a("Undefined recursive module"),gw=[0,[12,40,[2,0,[2,0,[12,41,0]]]],a("(%s%s)")],gx=a(f),gy=a(f),gz=[0,[12,40,[2,0,[12,41,0]]],a("(%s)")],gt=[0,[4,0,0,0,0],a(bU)],gr=[0,[3,0,0],a("%S")],gs=a("_"),gR=a("Js_of_ocaml__Js.Error"),g1=a("canvas"),gY=a("img"),gX=[0,[11,a("getElementById_exn: "),[3,0,[11,a(" not found"),0]]],a("getElementById_exn: %S not found")],gZ=a("Js_of_ocaml__Dom_html.Canvas_not_available"),hg=[0,0],hh=[0,1],he=[0,0],hf=[0,1],hc=[0,0],hd=[0,1],ha=[0,0],hb=[0,0],g_=[0,0],g7=[0,[11,a(dx),[2,0,0]],a(dy)],g8=[0,[11,a(dx),[2,0,0]],a(dy)],g9=[0,0],g4=a("Fatal error: exception "),g5=a("Lwt.Resolution_loop.Canceled"),hk=a("Exception during Lwt.async: "),hl=a("Lwt_js_event"),hw=[0,bT],hv=[0,bT],hq=a("image/svg+xml"),hr=a("svg"),hs=a("png_output"),ht=a("dot_output"),hu=a("editor");function +hH(a,b,c,d){return a.length==3?a(b,c,d):N(a,[b,c,d])}function +c5(a,b,c,d,e){return a.length==4?a(b,c,d,e):N(a,[b,c,d,e])}function +bT(a,b,c,d,e,f){return a.length==5?a(b,c,d,e,f):N(a,[b,c,d,e,f])}function +hG(a,b,c,d,e,f,g,h){return a.length==7?a(b,c,d,e,f,g,h):N(a,[b,c,d,e,f,g,h])}hT();var +ck=[v,a(dI),-1],cm=[v,a(dk),-2],bt=[v,a(dp),-3],ch=[v,a(dT),-4],cj=[v,a(dD),-8],cl=[v,a(da),-9],m=[v,a(dv),-11],cn=[v,a(c7),-12],cz=[0,di],hF=[4,0,0,0,[12,45,[4,0,0,0,0]]],bA=[0,[11,a('File "'),[2,0,[11,a('", line '),[4,0,0,0,[11,a(dH),[4,0,0,0,[12,45,[4,0,0,0,[11,a(": "),[2,0,0]]]]]]]]]],a('File "%s", line %d, characters %d-%d: %s')],cR=a("wakeup");O(11,cn,c7);O(10,m,dv);O(9,[v,a(dP),-10],dP);O(8,cl,da);O(7,cj,dD);O(6,[v,a(c_),-7],c_);O(5,[v,a(dl),-6],dl);O(4,[v,a(dq),-5],dq);O(3,ch,dT);O(2,bt,dp);O(1,cm,dk);O(0,ck,dI);var +ep=a("%.12g"),eo=a(ao),em=a("true"),en=a("false"),eq=a("\\\\"),er=a("\\'"),es=a("\\b"),et=a("\\t"),eu=a("\\n"),ev=a("\\r"),ey=a("String.blit / Bytes.blit_string"),ex=a("Bytes.blit"),ew=a("String.sub / Bytes.sub"),eA=a("Stdlib.Queue.Empty"),eE=a("Buffer.add: cannot grow buffer"),eD=[0,a(dj),93,2],eC=[0,a(dj),94,2],eN=a("%c"),eO=a("%s"),eP=a(c6),eQ=a(dB),eR=a(dR),eS=a(db),eT=a("%f"),eU=a("%B"),eV=a("%{"),eW=a("%}"),eX=a("%("),eY=a("%)"),eZ=a("%a"),e0=a("%t"),e1=a("%?"),e2=a("%r"),e3=a("%_r"),e4=[0,a(s),850,23],fd=[0,a(s),814,21],e7=[0,a(s),815,21],fe=[0,a(s),818,21],e8=[0,a(s),819,21],ff=[0,a(s),822,19],e9=[0,a(s),823,19],fg=[0,a(s),826,22],e_=[0,a(s),827,22],fh=[0,a(s),831,30],e$=[0,a(s),832,30],fb=[0,a(s),836,26],e5=[0,a(s),837,26],fc=[0,a(s),846,28],e6=[0,a(s),847,28],fa=[0,a(s),851,23],gj=a(dN),gh=[0,a(s),1558,4],gi=a("Printf: bad conversion %["),gk=[0,a(s),1626,39],gl=[0,a(s),1649,31],gm=[0,a(s),1650,31],gn=a("Printf: bad conversion %_"),go=a(dM),gp=a(dS),gq=a(dM),gr=a(dS),gf=a(bZ),gd=a("neg_infinity"),ge=a(dE),gc=a(ao),fY=a("%+nd"),fZ=a("% nd"),f1=a("%+ni"),f2=a("% ni"),f3=a("%nx"),f4=a("%#nx"),f5=a("%nX"),f6=a("%#nX"),f7=a("%no"),f8=a("%#no"),fX=a("%nd"),f0=a(dR),f9=a("%nu"),fL=a("%+ld"),fM=a("% ld"),fO=a("%+li"),fP=a("% li"),fQ=a("%lx"),fR=a("%#lx"),fS=a("%lX"),fT=a("%#lX"),fU=a("%lo"),fV=a("%#lo"),fK=a("%ld"),fN=a(dB),fW=a("%lu"),fy=a("%+Ld"),fz=a("% Ld"),fB=a("%+Li"),fC=a("% Li"),fD=a("%Lx"),fE=a("%#Lx"),fF=a("%LX"),fG=a("%#LX"),fH=a("%Lo"),fI=a("%#Lo"),fx=a("%Ld"),fA=a(db),fJ=a("%Lu"),fl=a("%+d"),fm=a("% d"),fo=a("%+i"),fp=a("% i"),fq=a("%x"),fr=a("%#x"),fs=a("%X"),ft=a("%#X"),fu=a("%o"),fv=a("%#o"),fk=a(bW),fn=a(c6),fw=a(dN),eF=a("@]"),eG=a("@}"),eH=a("@?"),eI=a("@\n"),eJ=a("@."),eK=a("@@"),eL=a("@%"),eM=a("@"),fi=a("CamlinternalFormat.Type_mismatch"),gv=a(f),gw=[0,[11,a(", "),[2,0,[2,0,0]]],a(", %s%s")],gO=[0,[2,0,[12,10,0]],a("%s\n")],gP=[0,[11,a(dF),0],a(dF)],gG=a("Raised at"),gH=a("Re-raised at"),gI=a("Raised by primitive operation at"),gJ=a("Called from"),gK=a(" (inlined)"),gM=a(f),gL=[0,[2,0,[12,32,[2,0,[11,a(' in file "'),[2,0,[12,34,[2,0,[11,a(", line "),[4,0,0,0,[11,a(dH),hF]]]]]]]]]],a('%s %s in file "%s"%s, line %d, characters %d-%d')],gN=[0,[2,0,[11,a(" unknown location"),0]],a("%s unknown location")],gB=a("Out of memory"),gC=a("Stack overflow"),gD=a("Pattern matching failed"),gE=a("Assertion failed"),gF=a("Undefined recursive module"),gx=[0,[12,40,[2,0,[2,0,[12,41,0]]]],a("(%s%s)")],gy=a(f),gz=a(f),gA=[0,[12,40,[2,0,[12,41,0]]],a("(%s)")],gu=[0,[4,0,0,0,0],a(bW)],gs=[0,[3,0,0],a("%S")],gt=a("_"),gR=a("Js_of_ocaml__Js.Error"),gS=a(bf),g2=a("canvas"),gZ=a("img"),gY=[0,[11,a("getElementById_exn: "),[3,0,[11,a(" not found"),0]]],a("getElementById_exn: %S not found")],g0=a("Js_of_ocaml__Dom_html.Canvas_not_available"),hh=[0,0],hi=[0,1],hf=[0,0],hg=[0,1],hd=[0,0],he=[0,1],hb=[0,0],hc=[0,0],g$=[0,0],g8=[0,[11,a(dy),[2,0,0]],a(dz)],g9=[0,[11,a(dy),[2,0,0]],a(dz)],g_=[0,0],g5=a("Fatal error: exception "),g6=a("Lwt.Resolution_loop.Canceled"),hl=a("Exception during Lwt.async: "),hm=a("Lwt_js_event"),hq=a(bf),hp=a("Jv.Error"),hC=[0,bV],hB=[0,bV],hw=a("image/svg+xml"),hx=a("svg"),hy=a("png_output"),hz=a("dot_output"),hA=a("editor");function l(a){if(typeof a==="number")return 0;else switch(a[0]){case @@ -790,115 +790,115 @@ F=a[1];return[21,F,k(a[2],b)];case 23:var G=a[1];return[23,G,k(a[2],b)];default:var H=a[2],I=a[1];return[24,I,H,k(a[3],b)]}}function -ci(a){throw[0,bq,a]}function -al(a){throw[0,ch,a]}X(0);function -br(a){return 0<=a?a:-a|0}function +ci(a){throw[0,bt,a]}function +al(a){throw[0,ch,a]}R(0);function +bu(a){return 0<=a?a:-a|0}function a7(d,c){var -a=w(d),e=w(c),b=t(a+e|0);aq(d,0,b,0,a);aq(c,0,b,a,e);return D(b)}function -ek(a){return a?el:em}ib(0);ea(1);var -aJ=ea(2);function -aK(b,a){return eb(b,a,0,w(a))}function +a=x(d),e=x(c),b=t(a+e|0);aq(d,0,b,0,a);aq(c,0,b,a,e);return D(b)}function +el(a){return a?em:en}ih(0);eb(1);var +aJ=eb(2);function +aK(b,a){return ec(b,a,0,x(a))}function co(a){return aK(aJ,a)}function cp(b){function a(b){var a=b;for(;;){if(a){var -c=a[2],d=a[1];try{bn(d)}catch(a){a=aI(a);if(a[1]!==cm)throw a;var +c=a[2],d=a[1];try{bq(d)}catch(a){a=aI(a);if(a[1]!==cm)throw a;var e=a}var -a=c;continue}return 0}}return a(ic(0))}var -aL=(4*io(0)|0)-1|0;X(0);typeof -im(0)==="number";function -cq(d,c){var +a=c;continue}return 0}}return a(ii(0))}var +aL=(4*it(0)|0)-1|0;R(0);typeof +is(0)==="number";function +a8(d,c){var a=c;for(;;){if(a){var e=a[2];b(d,a[1]);var a=e;continue}return 0}}function am(a,c){var -b=t(a);hN(b,0,a,c);return b}function -cr(d,b,a){var +b=t(a);hS(b,0,a,c);return b}function +cq(d,b,a){var f=0;if(0<=b&&0<=a&&!((L(d)-a|0)<b)){var c=t(a);ak(d,b,c,0,a);var e=c;f=1}if(!f)var -e=al(ev);return D(e)}function -cs(e,c,d,b,a){if(0<=a&&0<=c&&!((L(e)-a|0)<c)&&0<=b&&!((L(d)-a|0)<b))return ak(e,c,d,b,a);return al(ew)}function -Z(e,c,d,b,a){if(0<=a&&0<=c&&!((w(e)-a|0)<c)&&0<=b&&!((L(d)-a|0)<b))return aq(e,c,d,b,a);return al(ex)}X(0);var -eA=[z,ez,X(0)];function -ct(d,a){var -b=[0,d,0],c=a[3];return c?(a[1]=a[1]+1|0,c[2]=b,a[3]=b,0):(a[1]=1,a[2]=b,a[3]=b,0)}X(0);function -cu(a,c){var +e=al(ew);return D(e)}function +cr(e,c,d,b,a){if(0<=a&&0<=c&&!((L(e)-a|0)<c)&&0<=b&&!((L(d)-a|0)<b))return ak(e,c,d,b,a);return al(ex)}function +Z(e,c,d,b,a){if(0<=a&&0<=c&&!((x(e)-a|0)<c)&&0<=b&&!((L(d)-a|0)<b))return aq(e,c,d,b,a);return al(ey)}R(0);var +eB=[v,eA,R(0)];function +cs(d,a){var +b=[0,d,0],c=a[3];return c?(a[1]=a[1]+1|0,c[2]=b,a[3]=b,0):(a[1]=1,a[2]=b,a[3]=b,0)}R(0);function +ct(a,c){var d=a[2],b=[0,a[3]];for(;;){if(b[1]<(d+c|0)){b[1]=2*b[1]|0;continue}if(aL<b[1])if((d+c|0)<=aL)b[1]=aL;else -ci(eD);var -e=t(b[1]);cs(a[1],0,e,0,a[2]);a[1]=e;a[3]=b[1];if((a[2]+c|0)<=a[3]){if((d+c|0)<=a[3])return 0;throw[0,m,eB]}throw[0,m,eC]}}function +ci(eE);var +e=t(b[1]);cr(a[1],0,e,0,a[2]);a[1]=e;a[3]=b[1];if((a[2]+c|0)<=a[3]){if((d+c|0)<=a[3])return 0;throw[0,m,eC]}throw[0,m,eD]}}function aM(a,c){var -b=w(c),d=a[2]+b|0;if(a[3]<d)cu(a,b);aq(c,0,a[1],a[2],b);a[2]=d;return 0}function -bs(a){return 5===a[2]?12:-6}function -cv(a){return[0,0,t(a)]}function -cw(a,h){var +b=x(c),d=a[2]+b|0;if(a[3]<d)ct(a,b);aq(c,0,a[1],a[2],b);a[2]=d;return 0}function +bv(a){return 5===a[2]?12:-6}function +cu(a){return[0,0,t(a)]}function +cv(a,h){var b=L(a[2]),c=a[1]+h|0,d=b<c?1:0;if(d){var -e=b*2|0,i=hQ(e,c)?e:c,f=t(i);cs(a[2],0,f,0,b);a[2]=f;var +e=b*2|0,i=hV(e,c)?e:c,f=t(i);cr(a[2],0,f,0,b);a[2]=f;var g=0}else var g=d;return g}function -au(a,b){cw(a,1);as(a[2],a[1],b);a[1]=a[1]+1|0;return 0}function -x(a,c){var -b=w(c);cw(a,b);Z(c,0,a[2],a[1],b);a[1]=a[1]+b|0;return 0}function -cx(a){return cr(a[2],0,a[1])}function -cy(a){if(typeof +au(a,b){cv(a,1);as(a[2],a[1],b);a[1]=a[1]+1|0;return 0}function +y(a,c){var +b=x(c);cv(a,b);Z(c,0,a[2],a[1],b);a[1]=a[1]+b|0;return 0}function +cw(a){return cq(a[2],0,a[1])}function +cx(a){if(typeof a==="number")switch(a){case -0:return eE;case -1:return eF;case -2:return eG;case -3:return eH;case -4:return eI;case -5:return eJ;default:return eK}else +0:return eF;case +1:return eG;case +2:return eH;case +3:return eI;case +4:return eJ;case +5:return eK;default:return eL}else switch(a[0]){case 0:return a[1];case -1:return a[1];default:return a7(eL,D(am(1,a[1])))}}function -bt(b,c){var +1:return a[1];default:return a7(eM,D(am(1,a[1])))}}function +bw(b,c){var a=c;for(;;)if(typeof a==="number")return 0;else switch(a[0]){case 0:var -d=a[1];x(b,eM);var +d=a[1];y(b,eN);var a=d;continue;case 1:var -e=a[1];x(b,eN);var +e=a[1];y(b,eO);var a=e;continue;case 2:var -f=a[1];x(b,eO);var +f=a[1];y(b,eP);var a=f;continue;case 3:var -g=a[1];x(b,eP);var +g=a[1];y(b,eQ);var a=g;continue;case 4:var -h=a[1];x(b,eQ);var +h=a[1];y(b,eR);var a=h;continue;case 5:var -i=a[1];x(b,eR);var +i=a[1];y(b,eS);var a=i;continue;case 6:var -j=a[1];x(b,eS);var +j=a[1];y(b,eT);var a=j;continue;case 7:var -k=a[1];x(b,eT);var +k=a[1];y(b,eU);var a=k;continue;case 8:var -l=a[2],m=a[1];x(b,eU);bt(b,m);x(b,eV);var +l=a[2],m=a[1];y(b,eV);bw(b,m);y(b,eW);var a=l;continue;case 9:var -n=a[3],o=a[1];x(b,eW);bt(b,o);x(b,eX);var +n=a[3],o=a[1];y(b,eX);bw(b,o);y(b,eY);var a=n;continue;case 10:var -p=a[1];x(b,eY);var +p=a[1];y(b,eZ);var a=p;continue;case 11:var -q=a[1];x(b,eZ);var +q=a[1];y(b,e0);var a=q;continue;case 12:var -r=a[1];x(b,e0);var +r=a[1];y(b,e1);var a=r;continue;case 13:var -s=a[1];x(b,e1);var +s=a[1];y(b,e2);var a=s;continue;default:var -t=a[1];x(b,e2);var +t=a[1];y(b,e3);var a=t;continue}}function p(a){if(typeof a==="number")return 0;else @@ -919,39 +919,39 @@ c=a[2],d=a[1];return[9,c,d,p(a[3])];case 11:return[11,p(a[1])];case 12:return[12,p(a[1])];case 13:return[13,p(a[1])];default:return[14,p(a[1])]}}function -y(a){if(typeof +z(a){if(typeof a==="number"){var u=function(a){return 0},v=function(a){return 0},w=function(a){return 0};return[0,function(a){return 0},w,v,u]}else switch(a[0]){case 0:var -c=y(a[1]),x=c[4],z=c[3],A=c[2],B=c[1],C=function(a){b(A,0);return 0};return[0,function(a){b(B,0);return 0},C,z,x];case +c=z(a[1]),x=c[4],y=c[3],A=c[2],B=c[1],C=function(a){b(A,0);return 0};return[0,function(a){b(B,0);return 0},C,y,x];case 1:var -d=y(a[1]),D=d[4],E=d[3],F=d[2],G=d[1],H=function(a){b(F,0);return 0};return[0,function(a){b(G,0);return 0},H,E,D];case +d=z(a[1]),D=d[4],E=d[3],F=d[2],G=d[1],H=function(a){b(F,0);return 0};return[0,function(a){b(G,0);return 0},H,E,D];case 2:var -e=y(a[1]),I=e[4],J=e[3],K=e[2],L=e[1],M=function(a){b(K,0);return 0};return[0,function(a){b(L,0);return 0},M,J,I];case +e=z(a[1]),I=e[4],J=e[3],K=e[2],L=e[1],M=function(a){b(K,0);return 0};return[0,function(a){b(L,0);return 0},M,J,I];case 3:var -f=y(a[1]),N=f[4],O=f[3],P=f[2],Q=f[1],R=function(a){b(P,0);return 0};return[0,function(a){b(Q,0);return 0},R,O,N];case +f=z(a[1]),N=f[4],O=f[3],P=f[2],Q=f[1],R=function(a){b(P,0);return 0};return[0,function(a){b(Q,0);return 0},R,O,N];case 4:var -g=y(a[1]),S=g[4],T=g[3],U=g[2],V=g[1],W=function(a){b(U,0);return 0};return[0,function(a){b(V,0);return 0},W,T,S];case +g=z(a[1]),S=g[4],T=g[3],U=g[2],V=g[1],W=function(a){b(U,0);return 0};return[0,function(a){b(V,0);return 0},W,T,S];case 5:var -h=y(a[1]),X=h[4],Y=h[3],Z=h[2],_=h[1],$=function(a){b(Z,0);return 0};return[0,function(a){b(_,0);return 0},$,Y,X];case +h=z(a[1]),X=h[4],Y=h[3],Z=h[2],_=h[1],$=function(a){b(Z,0);return 0};return[0,function(a){b(_,0);return 0},$,Y,X];case 6:var -i=y(a[1]),aa=i[4],ab=i[3],ac=i[2],ad=i[1],ae=function(a){b(ac,0);return 0};return[0,function(a){b(ad,0);return 0},ae,ab,aa];case +i=z(a[1]),aa=i[4],ab=i[3],ac=i[2],ad=i[1],ae=function(a){b(ac,0);return 0};return[0,function(a){b(ad,0);return 0},ae,ab,aa];case 7:var -j=y(a[1]),af=j[4],ag=j[3],ah=j[2],ai=j[1],aj=function(a){b(ah,0);return 0};return[0,function(a){b(ai,0);return 0},aj,ag,af];case +j=z(a[1]),af=j[4],ag=j[3],ah=j[2],ai=j[1],aj=function(a){b(ah,0);return 0};return[0,function(a){b(ai,0);return 0},aj,ag,af];case 8:var -k=y(a[2]),ak=k[4],al=k[3],am=k[2],an=k[1],ao=function(a){b(am,0);return 0};return[0,function(a){b(an,0);return 0},ao,al,ak];case +k=z(a[2]),ak=k[4],al=k[3],am=k[2],an=k[1],ao=function(a){b(am,0);return 0};return[0,function(a){b(an,0);return 0},ao,al,ak];case 9:var -ap=a[2],aq=a[1],l=y(a[3]),ar=l[4],as=l[3],at=l[2],au=l[1],m=y(r(p(aq),ap)),av=m[4],aw=m[3],ax=m[2],ay=m[1],az=function(a){b(av,0);b(ar,0);return 0},aA=function(a){b(as,0);b(aw,0);return 0},aB=function(a){b(ax,0);b(at,0);return 0};return[0,function(a){b(au,0);b(ay,0);return 0},aB,aA,az];case +ap=a[2],aq=a[1],l=z(a[3]),ar=l[4],as=l[3],at=l[2],au=l[1],m=z(r(p(aq),ap)),av=m[4],aw=m[3],ax=m[2],ay=m[1],az=function(a){b(av,0);b(ar,0);return 0},aA=function(a){b(as,0);b(aw,0);return 0},aB=function(a){b(ax,0);b(at,0);return 0};return[0,function(a){b(au,0);b(ay,0);return 0},aB,aA,az];case 10:var -n=y(a[1]),aC=n[4],aD=n[3],aE=n[2],aF=n[1],aG=function(a){b(aE,0);return 0};return[0,function(a){b(aF,0);return 0},aG,aD,aC];case +n=z(a[1]),aC=n[4],aD=n[3],aE=n[2],aF=n[1],aG=function(a){b(aE,0);return 0};return[0,function(a){b(aF,0);return 0},aG,aD,aC];case 11:var -o=y(a[1]),aH=o[4],aI=o[3],aJ=o[2],aK=o[1],aL=function(a){b(aJ,0);return 0};return[0,function(a){b(aK,0);return 0},aL,aI,aH];case +o=z(a[1]),aH=o[4],aI=o[3],aJ=o[2],aK=o[1],aL=function(a){b(aJ,0);return 0};return[0,function(a){b(aK,0);return 0},aL,aI,aH];case 12:var -q=y(a[1]),aM=q[4],aN=q[3],aO=q[2],aP=q[1],aQ=function(a){b(aO,0);return 0};return[0,function(a){b(aP,0);return 0},aQ,aN,aM];case +q=z(a[1]),aM=q[4],aN=q[3],aO=q[2],aP=q[1],aQ=function(a){b(aO,0);return 0};return[0,function(a){b(aP,0);return 0},aQ,aN,aM];case 13:var -s=y(a[1]),aR=s[4],aS=s[3],aT=s[2],aU=s[1],aV=function(a){b(aR,0);return 0},aW=function(a){b(aS,0);return 0},aX=function(a){b(aT,0);return 0};return[0,function(a){b(aU,0);return 0},aX,aW,aV];default:var -t=y(a[1]),aY=t[4],aZ=t[3],a0=t[2],a1=t[1],a2=function(a){b(aY,0);return 0},a3=function(a){b(aZ,0);return 0},a4=function(a){b(a0,0);return 0};return[0,function(a){b(a1,0);return 0},a4,a3,a2]}}function +s=z(a[1]),aR=s[4],aS=s[3],aT=s[2],aU=s[1],aV=function(a){b(aR,0);return 0},aW=function(a){b(aS,0);return 0},aX=function(a){b(aT,0);return 0};return[0,function(a){b(aU,0);return 0},aX,aW,aV];default:var +t=z(a[1]),aY=t[4],aZ=t[3],a0=t[2],a1=t[1],a2=function(a){b(aY,0);return 0},a3=function(a){b(aZ,0);return 0},a4=function(a){b(a0,0);return 0};return[0,function(a){b(a1,0);return 0},a4,a3,a2]}}function r(d,c){var a=0;if(typeof d==="number")if(typeof @@ -963,7 +963,7 @@ switch(c[0]){case 13:a=3;break;case 14:a=4;break;case 8:a=5;break;case -9:a=6;break;default:throw[0,m,e3]}else +9:a=6;break;default:throw[0,m,e4]}else switch(d[0]){case 0:var e=0,w=d[1];if(typeof @@ -988,10 +988,10 @@ c!=="number")switch(c[0]){case 13:a=3;f=1;break;case 14:a=4;f=1;break}if(!f)a=7;break;case 2:var -g=0,z=d[1];if(typeof +g=0,y=d[1];if(typeof c==="number")g=1;else switch(c[0]){case -2:return[2,r(z,c[1])];case +2:return[2,r(y,c[1])];case 8:a=5;break;case 9:a=6;break;case 10:break;case @@ -1069,35 +1069,35 @@ H=c[1],I=r(F,c[2]);return[8,r(G,H),I];case 11:a=1;break;case 12:a=2;break;case 13:a=3;break;case -14:a=4;break;default:n=1}if(n)throw[0,m,fa];break;case +14:a=4;break;default:n=1}if(n)throw[0,m,fb];break;case 9:var o=0,J=d[3],K=d[2],L=d[1];if(typeof c==="number")o=1;else switch(c[0]){case 8:a=5;break;case 9:var -M=c[3],N=c[2],O=c[1],v=y(r(p(K),O)),P=v[4];b(v[2],0);b(P,0);return[9,L,N,r(J,M)];case +M=c[3],N=c[2],O=c[1],v=z(r(p(K),O)),P=v[4];b(v[2],0);b(P,0);return[9,L,N,r(J,M)];case 10:break;case 11:a=1;break;case 12:a=2;break;case 13:a=3;break;case -14:a=4;break;default:o=1}if(o)throw[0,m,fb];break;case +14:a=4;break;default:o=1}if(o)throw[0,m,fc];break;case 10:var Q=d[1];if(typeof -c!=="number"&&10===c[0])return[10,r(Q,c[1])];throw[0,m,fc];case +c!=="number"&&10===c[0])return[10,r(Q,c[1])];throw[0,m,fd];case 11:var q=0,R=d[1];if(typeof c==="number")q=1;else switch(c[0]){case 10:break;case -11:return[11,r(R,c[1])];default:q=1}if(q)throw[0,m,fd];break;case +11:return[11,r(R,c[1])];default:q=1}if(q)throw[0,m,fe];break;case 12:var s=0,S=d[1];if(typeof c==="number")s=1;else switch(c[0]){case 10:break;case 11:a=1;break;case -12:return[12,r(S,c[1])];default:s=1}if(s)throw[0,m,fe];break;case +12:return[12,r(S,c[1])];default:s=1}if(s)throw[0,m,ff];break;case 13:var t=0,T=d[1];if(typeof c==="number")t=1;else @@ -1105,7 +1105,7 @@ switch(c[0]){case 10:break;case 11:a=1;break;case 12:a=2;break;case -13:return[13,r(T,c[1])];default:t=1}if(t)throw[0,m,ff];break;default:var +13:return[13,r(T,c[1])];default:t=1}if(t)throw[0,m,fg];break;default:var u=0,U=d[1];if(typeof c==="number")u=1;else switch(c[0]){case @@ -1113,20 +1113,20 @@ switch(c[0]){case 11:a=1;break;case 12:a=2;break;case 13:a=3;break;case -14:return[14,r(U,c[1])];default:u=1}if(u)throw[0,m,fg]}switch(a){case -0:throw[0,m,e6];case -1:throw[0,m,e7];case -2:throw[0,m,e8];case -3:throw[0,m,e9];case -4:throw[0,m,e_];case -5:throw[0,m,e4];case -6:throw[0,m,e5];default:throw[0,m,e$]}}var -u=[z,fh,X(0)];function -a8(b,a){if(typeof +14:return[14,r(U,c[1])];default:u=1}if(u)throw[0,m,fh]}switch(a){case +0:throw[0,m,e7];case +1:throw[0,m,e8];case +2:throw[0,m,e9];case +3:throw[0,m,e_];case +4:throw[0,m,e$];case +5:throw[0,m,e5];case +6:throw[0,m,e6];default:throw[0,m,fa]}}var +u=[v,fi,R(0)];function +a9(b,a){if(typeof b==="number")return[0,0,a];else{if(0===b[0])return[0,[0,b[1],b[2]],a];if(typeof a!=="number"&&2===a[0])return[0,[1,b[1]],a[1]];throw u}}function aN(e,b,d){var -a=a8(e,d);if(typeof +a=a9(e,d);if(typeof b==="number"){if(b){var c=a[2];if(typeof c!=="number"&&2===c[0])return[0,a[1],1,c[1]];throw u}return[0,a[1],0,a[2]]}return[0,a[1],[0,b[1]],a[2]]}function @@ -1165,14 +1165,14 @@ t=B(E,d,D);return[0,[8,s,t[1]],t[2]]}break;case a!=="number"&&9===a[0]){var e=a[2],f=a[1],F=a[3],G=c[3],H=c[2],I=c[1],J=[0,l(f)];if(a3([0,l(I)],J))throw u;var K=[0,l(e)];if(a3([0,l(H)],K))throw u;var -v=y(r(p(f),e)),L=v[4];b(v[2],0);b(L,0);var +v=z(r(p(f),e)),L=v[4];b(v[2],0);b(L,0);var w=B(l(G),d,F),M=w[2];return[0,[9,f,e,p(w[1])],M]}break;case 10:if(typeof a!=="number"&&10===a[0]){var x=B(c[1],d,a[1]);return[0,[10,x[1]],x[2]]}break;case 11:if(typeof a!=="number"&&11===a[0]){var -z=B(c[1],d,a[1]);return[0,[11,z[1]],z[2]]}break;case +y=B(c[1],d,a[1]);return[0,[11,y[1]],y[2]]}break;case 13:if(typeof a!=="number"&&13===a[0]){var A=B(c[1],d,a[1]);return[0,[13,A[1]],A[2]]}break;case @@ -1189,11 +1189,11 @@ v=i(b[1],a[1]);return[0,[0,v[1]],v[2]]}break;case a!=="number"&&0===a[0]){var w=i(b[1],a[1]);return[0,[1,w[1]],w[2]]}break;case 2:var -af=b[2],x=a8(b[1],a),e=x[2],ag=x[1];if(typeof +af=b[2],x=a9(b[1],a),e=x[2],ag=x[1];if(typeof e!=="number"&&1===e[0]){var y=i(af,e[1]);return[0,[2,ag,y[1]],y[2]]}throw u;case 3:var -ah=b[2],z=a8(b[1],a),f=z[2],ai=z[1];if(typeof +ah=b[2],z=a9(b[1],a),f=z[2],ai=z[1];if(typeof f!=="number"&&1===f[0]){var A=i(ah,f[1]);return[0,[3,ai,A[1]],A[2]]}throw u;case 4:var @@ -1217,7 +1217,7 @@ az=b[4],aA=b[1],q=aN(b[2],b[3],a),r=q[3],aB=q[1];if(typeof r!=="number"&&6===r[0]){var aC=q[2],H=i(az,r[1]);return[0,[8,aA,aB,aC,H[1]],H[2]]}throw u;case 9:var -aD=b[2],I=a8(b[1],a),s=I[2],aE=I[1];if(typeof +aD=b[2],I=a9(b[1],a),s=I[2],aE=I[1];if(typeof s!=="number"&&7===s[0]){var J=i(aD,s[1]);return[0,[9,aE,J[1]],J[2]]}throw u;case 10:var @@ -1279,7 +1279,7 @@ aY=c[1],ad=B(c[2],d,a),ae=ad[2];return[0,[23,[9,aY,ad[1]],ae[1]],ae[2]];case E(d,c,b){var a=i(c,b);return[0,[23,d,a[1]],a[2]]}function F(k,g,a){var -b=w(a),h=0<=g?k:0,d=br(g);if(d<=b)return a;var +b=x(a),h=0<=g?k:0,d=bu(g);if(d<=b)return a;var l=2===h?48:32,c=am(d,l);switch(h){case 0:Z(a,0,c,0,b);break;case 1:Z(a,0,c,d-b|0,b);break;default:var @@ -1287,14 +1287,14 @@ e=0;if(0<b){var i=0;if(43!==H(a,0)&&45!==H(a,0)&&32!==H(a,0)){e=1;i=1}if(!i){as(c,0,H(a,0));Z(a,1,c,(d-b|0)+1|0,b-1|0)}}else e=1;if(e){var f=0;if(1<b&&48===H(a,0)){var -j=0;if(dg!==H(a,1)&&88!==H(a,1)){f=1;j=1}if(!j){as(c,1,H(a,1));Z(a,2,c,(d-b|0)+2|0,b-2|0)}}else +j=0;if(dh!==H(a,1)&&88!==H(a,1)){f=1;j=1}if(!j){as(c,1,H(a,1));Z(a,2,c,(d-b|0)+2|0,b-2|0)}}else f=1;if(f)Z(a,0,c,d-b|0,b)}}return D(c)}function av(k,b){var -c=br(k),a=w(b),d=H(b,0),e=0;if(58<=d){if(71<=d){if(!(5<(d-97|0)>>>0))e=1}else +c=bu(k),a=x(b),d=H(b,0),e=0;if(58<=d){if(71<=d){if(!(5<(d+c$|0)>>>0))e=1}else if(65<=d)e=1}else{var f=0;if(32!==d)if(43<=d)switch(d-43|0){case 5:if(a<(c+2|0)&&1<a){var -j=0;if(dg===H(b,1)||88===H(b,1))j=1;if(j){var +j=0;if(dh===H(b,1)||88===H(b,1))j=1;if(j){var h=am(c+2|0,48);as(h,1,H(b,1));Z(b,2,h,(c-a|0)+4|0,a-2|0);return D(h)}}e=1;f=1;break;case 0:case 2:break;case @@ -1304,10 +1304,10 @@ h=am(c+2|0,48);as(h,1,H(b,1));Z(b,2,h,(c-a|0)+4|0,a-2|0);return D(h)}}e=1;f=1;br f=1;if(!f&&a<(c+1|0)){var g=am(c+1|0,48);as(g,0,d);Z(b,1,g,(c-a|0)+2|0,a-1|0);return D(g)}}if(e&&a<c){var i=am(c,48);Z(b,0,i,c-a|0,a);return D(i)}return b}function -fi(k){var -j=0,G=w(k);for(;;){if(G<=j)var +fj(k){var +j=0,G=x(k);for(;;){if(G<=j)var p=k;else{var -o=a4(k,j)+dz|0,q=0;if(59<o>>>0){if(33<(o-61|0)>>>0)q=1}else +o=a4(k,j)+dA|0,q=0;if(59<o>>>0){if(33<(o-61|0)>>>0)q=1}else if(2===o)q=1;if(!q){var j=j+1|0;continue}var e=ar(k),a=[0,0],v=L(e)-1|0,B=0;if(!(v<0)){var @@ -1327,7 +1327,7 @@ i=F;continue}break}}if(a[1]===L(e)){var s=L(e),u=t(s);ak(e,0,u,0,s);var y=u}else{var b=t(a[1]);a[1]=0;var -x=L(e)-1|0,C=0;if(!(x<0)){var +w=L(e)-1|0,C=0;if(!(w<0)){var h=C;for(;;){var c=aY(e,h),d=0;if(35<=c)if(92===c)d=2;else if(b3<=c)d=1;else @@ -1340,16 +1340,16 @@ switch(c){case 9:n(b,a[1],92);a[1]++;n(b,a[1],116);break;case 10:n(b,a[1],92);a[1]++;n(b,a[1],110);break;case 13:n(b,a[1],92);a[1]++;n(b,a[1],114);break;default:d=1}switch(d){case -1:n(b,a[1],92);a[1]++;n(b,a[1],48+(c/db|0)|0);a[1]++;n(b,a[1],48+((c/10|0)%10|0)|0);a[1]++;n(b,a[1],48+(c%10|0)|0);break;case +1:n(b,a[1],92);a[1]++;n(b,a[1],48+(c/dd|0)|0);a[1]++;n(b,a[1],48+((c/10|0)%10|0)|0);a[1]++;n(b,a[1],48+(c%10|0)|0);break;case 2:n(b,a[1],92);a[1]++;n(b,a[1],c);break;case 3:n(b,a[1],c);break}a[1]++;var -E=h+1|0;if(x!==h){var +E=h+1|0;if(w!==h){var h=E;continue}break}}var y=b}var p=D(y)}var -z=w(p),A=am(z+2|0,34);aq(p,0,A,1,z);return D(A)}}function -cz(d,g){var -h=br(g),e=cA?cA[1]:70;switch(d[2]){case +z=x(p),A=am(z+2|0,34);aq(p,0,A,1,z);return D(A)}}function +cy(d,g){var +h=bu(g),e=cz?cz[1]:70;switch(d[2]){case 0:var b=102;break;case 1:var @@ -1357,7 +1357,7 @@ b=101;break;case 2:var b=69;break;case 3:var -b=dh;break;case +b=di;break;case 4:var b=71;break;case 5:var @@ -1367,161 +1367,159 @@ b=104;break;case 7:var b=72;break;default:var b=70}var -c=cv(16);au(c,37);switch(d[1]){case +c=cu(16);au(c,37);switch(d[1]){case 0:break;case -1:au(c,43);break;default:au(c,32)}if(8<=d[2])au(c,35);au(c,46);x(c,a(f+h));au(c,b);return cx(c)}function -a9(m,a){if(13<=m){var -g=[0,0],h=w(a)-1|0,n=0;if(!(h<0)){var -c=n;for(;;){if(!(9<(a4(a,c)+dl|0)>>>0))g[1]++;var +1:au(c,43);break;default:au(c,32)}if(8<=d[2])au(c,35);au(c,46);y(c,a(f+h));au(c,b);return cw(c)}function +a_(m,a){if(13<=m){var +g=[0,0],h=x(a)-1|0,n=0;if(!(h<0)){var +c=n;for(;;){if(!(9<(a4(a,c)+dm|0)>>>0))g[1]++;var q=c+1|0;if(h!==c){var c=q;continue}break}}var -i=g[1],j=t(w(a)+((i-1|0)/3|0)|0),k=[0,0],d=function(a){as(j,k[1],a);k[1]++;return 0},e=[0,((i-1|0)%3|0)+1|0],l=w(a)-1|0,o=0;if(!(l<0)){var +i=g[1],j=t(x(a)+((i-1|0)/3|0)|0),k=[0,0],d=function(a){as(j,k[1],a);k[1]++;return 0},e=[0,((i-1|0)%3|0)+1|0],l=x(a)-1|0,o=0;if(!(l<0)){var b=o;for(;;){var -f=a4(a,b);if(9<(f+dl|0)>>>0)d(f);else{if(0===e[1]){d(95);e[1]=3}e[1]+=-1;d(f)}var +f=a4(a,b);if(9<(f+dm|0)>>>0)d(f);else{if(0===e[1]){d(95);e[1]=3}e[1]+=-1;d(f)}var p=b+1|0;if(l!==b){var b=p;continue}break}}return D(j)}return a}function -f9(b,c){switch(b){case +f_(b,c){switch(b){case 1:var -a=fk;break;case -2:var a=fl;break;case +2:var +a=fm;break;case 4:var -a=fn;break;case -5:var a=fo;break;case -6:var +5:var a=fp;break;case -7:var +6:var a=fq;break;case -8:var +7:var a=fr;break;case -9:var +8:var a=fs;break;case -10:var +9:var a=ft;break;case -11:var +10:var a=fu;break;case +11:var +a=fv;break;case 0:case 13:var -a=fj;break;case +a=fk;break;case 3:case 14:var -a=fm;break;default:var -a=fv}return a9(b,bj(a,c))}function -f_(b,c){switch(b){case +a=fn;break;default:var +a=fw}return a_(b,bm(a,c))}function +f$(b,c){switch(b){case 1:var -a=fK;break;case -2:var a=fL;break;case +2:var +a=fM;break;case 4:var -a=fN;break;case -5:var a=fO;break;case -6:var +5:var a=fP;break;case -7:var +6:var a=fQ;break;case -8:var +7:var a=fR;break;case -9:var +8:var a=fS;break;case -10:var +9:var a=fT;break;case -11:var +10:var a=fU;break;case +11:var +a=fV;break;case 0:case 13:var -a=fJ;break;case +a=fK;break;case 3:case 14:var -a=fM;break;default:var -a=fV}return a9(b,bj(a,c))}function -f$(b,c){switch(b){case +a=fN;break;default:var +a=fW}return a_(b,bm(a,c))}function +ga(b,c){switch(b){case 1:var -a=fX;break;case -2:var a=fY;break;case +2:var +a=fZ;break;case 4:var -a=f0;break;case -5:var a=f1;break;case -6:var +5:var a=f2;break;case -7:var +6:var a=f3;break;case -8:var +7:var a=f4;break;case -9:var +8:var a=f5;break;case -10:var +9:var a=f6;break;case -11:var +10:var a=f7;break;case +11:var +a=f8;break;case 0:case 13:var -a=fW;break;case +a=fX;break;case 3:case 14:var -a=fZ;break;default:var -a=f8}return a9(b,bj(a,c))}function -ga(b,c){switch(b){case +a=f0;break;default:var +a=f9}return a_(b,bm(a,c))}function +gb(b,c){switch(b){case 1:var -a=fx;break;case -2:var a=fy;break;case +2:var +a=fz;break;case 4:var -a=fA;break;case -5:var a=fB;break;case -6:var +5:var a=fC;break;case -7:var +6:var a=fD;break;case -8:var +7:var a=fE;break;case -9:var +8:var a=fF;break;case -10:var +9:var a=fG;break;case -11:var +10:var a=fH;break;case +11:var +a=fI;break;case 0:case 13:var -a=fw;break;case +a=fx;break;case 3:case 14:var -a=fz;break;default:var -a=fI}return a9(b,hW(a,c))}function -_(d,i,b){function -j(c){switch(d[1]){case +a=fA;break;default:var +a=fJ}return a_(b,h1(a,c))}function +_(c,i,b){function +j(d){switch(c[1]){case 0:var a=45;break;case 1:var a=43;break;default:var -a=32}return hS(b,i,a)}function -s(c){var -a=hK(b);return 3===a?b<0.?gc:gd:4<=a?ge:c}switch(d[2]){case +a=32}return hX(b,i,a)}function +r(c){var +a=hQ(b);return 3===a?b<0.?gd:ge:4<=a?gf:c}switch(c[2]){case 5:var -f=b8(cz(d,i),b),e=0,y=w(f);for(;;){if(e===y)var -r=0;else{var -k=H(f,e)-46|0,l=0;if(23<k>>>0){if(55===k)l=1}else +e=b8(cy(c,i),b),d=0,w=x(e);for(;;){if(d===w)var +q=0;else{var +k=H(e,d)-46|0,l=0;if(23<k>>>0){if(55===k)l=1}else if(21<(k-1|0)>>>0)l=1;if(!l){var -e=e+1|0;continue}var -r=1}var -z=r?f:a7(f,gb);return s(z)}case +d=d+1|0;continue}var +q=1}var +y=q?e:a7(e,gc);return r(y)}case 6:return j(0);case 7:var -h=ar(j(0)),g=L(h);if(0===g)var -q=h;else{var -m=t(g),o=g-1|0,v=0;if(!(o<0)){var -a=v;for(;;){var -c=aY(h,a),u=0;if(97<=c&&!(122<c)){var -p=c+dz|0;u=1}if(!u)var -p=c;n(m,a,p);var -x=a+1|0;if(o!==a){var -a=x;continue}break}}var -q=m}return D(q);case -8:return s(j(0));default:return b8(cz(d,i),b)}}function +h=ar(j(0)),f=L(h);if(0===f)var +p=h;else{var +m=t(f),o=f-1|0,s=0;if(!(o<0)){var +a=s;for(;;){var +g=aY(h,a),u=25<(g+c$|0)>>>0?g:g+dA|0;n(m,a,u);var +v=a+1|0;if(o!==a){var +a=v;continue}break}}var +p=m}return D(p);case +8:return r(j(0));default:return b8(cy(c,i),b)}}function aU(f,M,L,J){var c=M,a=L,d=J;for(;;)if(typeof d==="number")return b(c,a);else @@ -1531,48 +1529,48 @@ N=d[1];return function(b){return e(c,[5,a,b],N)};case 1:var O=d[1];return function(b){var f=0;if(40<=b)if(92===b)var -d=ep;else +d=eq;else if(b3<=b)f=1;else f=2;else if(32<=b)if(39<=b)var -d=eq;else +d=er;else f=2;else if(14<=b)f=1;else switch(b){case 8:var -d=er;break;case -9:var d=es;break;case -10:var +9:var d=et;break;case +10:var +d=eu;break;case 13:var -d=eu;break;default:f=1}switch(f){case +d=ev;break;default:f=1}switch(f){case 1:var -g=t(4);n(g,0,92);n(g,1,48+(b/db|0)|0);n(g,2,48+((b/10|0)%10|0)|0);n(g,3,48+(b%10|0)|0);var +g=t(4);n(g,0,92);n(g,1,48+(b/dd|0)|0);n(g,2,48+((b/10|0)%10|0)|0);n(g,3,48+(b%10|0)|0);var d=D(g);break;case 2:var h=t(1);n(h,0,b);var d=D(h);break}var -i=w(d),j=am(i+2|0,39);aq(d,0,j,1,i);return e(c,[4,a,D(j)],O)};case +i=x(d),j=am(i+2|0,39);aq(d,0,j,1,i);return e(c,[4,a,D(j)],O)};case 2:var -P=d[2],Q=d[1];return bu(c,a,P,Q,function(a){return a});case -3:return bu(c,a,d[2],d[1],fi);case -4:return a_(c,a,d[4],d[2],d[3],f9,d[1]);case -5:return a_(c,a,d[4],d[2],d[3],f_,d[1]);case -6:return a_(c,a,d[4],d[2],d[3],f$,d[1]);case -7:return a_(c,a,d[4],d[2],d[3],ga,d[1]);case +P=d[2],Q=d[1];return bx(c,a,P,Q,function(a){return a});case +3:return bx(c,a,d[2],d[1],fj);case +4:return a$(c,a,d[4],d[2],d[3],f_,d[1]);case +5:return a$(c,a,d[4],d[2],d[3],f$,d[1]);case +6:return a$(c,a,d[4],d[2],d[3],ga,d[1]);case +7:return a$(c,a,d[4],d[2],d[3],gb,d[1]);case 8:var q=d[4],r=d[3],s=d[2],o=d[1];if(typeof s==="number"){if(typeof -r==="number")return r?function(d,b){return e(c,[4,a,_(o,d,b)],q)}:function(b){return e(c,[4,a,_(o,bs(o),b)],q)};var +r==="number")return r?function(d,b){return e(c,[4,a,_(o,d,b)],q)}:function(b){return e(c,[4,a,_(o,bv(o),b)],q)};var ag=r[1];return function(b){return e(c,[4,a,_(o,ag,b)],q)}}else{if(0===s[0]){var y=s[2],z=s[1];if(typeof -r==="number")return r?function(d,b){return e(c,[4,a,F(z,y,_(o,d,b))],q)}:function(b){return e(c,[4,a,F(z,y,_(o,bs(o),b))],q)};var +r==="number")return r?function(d,b){return e(c,[4,a,F(z,y,_(o,d,b))],q)}:function(b){return e(c,[4,a,F(z,y,_(o,bv(o),b))],q)};var ah=r[1];return function(b){return e(c,[4,a,F(z,y,_(o,ah,b))],q)}}var A=s[1];if(typeof -r==="number")return r?function(f,d,b){return e(c,[4,a,F(A,f,_(o,d,b))],q)}:function(d,b){return e(c,[4,a,F(A,d,_(o,bs(o),b))],q)};var +r==="number")return r?function(f,d,b){return e(c,[4,a,F(A,f,_(o,d,b))],q)}:function(d,b){return e(c,[4,a,F(A,d,_(o,bv(o),b))],q)};var ai=r[1];return function(d,b){return e(c,[4,a,F(A,d,_(o,ai,b))],q)}}case -9:return bu(c,a,d[2],d[1],ek);case +9:return bx(c,a,d[2],d[1],el);case 10:var a=[7,a],d=d[1];continue;case 11:var @@ -1580,8 +1578,8 @@ a=[2,a,d[1]],d=d[2];continue;case 12:var a=[3,a,d[1]],d=d[2];continue;case 13:var -R=d[3],S=d[2],B=cv(16);bt(B,S);var -I=cx(B);return function(b){return e(c,[4,a,I],R)};case +R=d[3],S=d[2],B=cu(16);bw(B,S);var +I=cw(B);return function(b){return e(c,[4,a,I],R)};case 14:var T=d[3],U=d[2];return function(d){var f=d[1],b=i(f,l(p(U)));if(typeof @@ -1593,14 +1591,14 @@ W=d[1];return function(b){return e(c,[6,a,b],W)};case 17:var a=[0,a,d[1]],d=d[2];continue;case 18:var -x=d[1];if(0===x[0]){var -X=d[2],Y=x[1][1],Z=0,c=function(b,c,d){return function(a){return e(c,[1,b,[0,a]],d)}}(a,c,X),a=Z,d=Y;continue}var -$=d[2],aa=x[1][1],ab=0,c=function(b,c,d){return function(a){return e(c,[1,b,[1,a]],d)}}(a,c,$),a=ab,d=aa;continue;case -19:throw[0,m,gg];case +w=d[1];if(0===w[0]){var +X=d[2],Y=w[1][1],Z=0,c=function(b,c,d){return function(a){return e(c,[1,b,[0,a]],d)}}(a,c,X),a=Z,d=Y;continue}var +$=d[2],aa=w[1][1],ab=0,c=function(b,c,d){return function(a){return e(c,[1,b,[1,a]],d)}}(a,c,$),a=ab,d=aa;continue;case +19:throw[0,m,gh];case 20:var -ac=d[3],ad=[8,a,gh];return function(a){return e(c,ad,ac)};case +ac=d[3],ad=[8,a,gi];return function(a){return e(c,ad,ac)};case 21:var -ae=d[2];return function(b){return e(c,[4,a,bj(gi,b)],ae)};case +ae=d[2];return function(b){return e(c,[4,a,bm(gj,b)],ae)};case 22:var af=d[1];return function(b){return e(c,[5,a,b],af)};case 23:var @@ -1608,7 +1606,7 @@ g=d[2],v=d[1];if(typeof v==="number")switch(v){case 0:return f<50?h(f+1|0,c,a,g):j(h,[0,c,a,g]);case 1:return f<50?h(f+1|0,c,a,g):j(h,[0,c,a,g]);case -2:throw[0,m,gj];default:return f<50?h(f+1|0,c,a,g):j(h,[0,c,a,g])}else +2:throw[0,m,gk];default:return f<50?h(f+1|0,c,a,g):j(h,[0,c,a,g])}else switch(v[0]){case 0:return f<50?h(f+1|0,c,a,g):j(h,[0,c,a,g]);case 1:return f<50?h(f+1|0,c,a,g):j(h,[0,c,a,g]);case @@ -1620,10 +1618,10 @@ switch(v[0]){case 7:return f<50?h(f+1|0,c,a,g):j(h,[0,c,a,g]);case 8:return f<50?h(f+1|0,c,a,g):j(h,[0,c,a,g]);case 9:var -H=v[2];return f<50?bQ(f+1|0,c,a,H,g):j(bQ,[0,c,a,H,g]);case +H=v[2];return f<50?bS(f+1|0,c,a,H,g):j(bS,[0,c,a,H,g]);case 10:return f<50?h(f+1|0,c,a,g):j(h,[0,c,a,g]);default:return f<50?h(f+1|0,c,a,g):j(h,[0,c,a,g])}default:var -C=d[3],E=d[1],G=b(d[2],0);return f<50?bP(f+1|0,c,a,C,E,G):j(bP,[0,c,a,C,E,G])}}function -bQ(e,d,c,a,b){if(typeof +C=d[3],E=d[1],G=b(d[2],0);return f<50?bR(f+1|0,c,a,C,E,G):j(bR,[0,c,a,C,E,G])}}function +bS(e,d,c,a,b){if(typeof a==="number")return e<50?h(e+1|0,d,c,b):j(h,[0,d,c,b]);else switch(a[0]){case 0:var @@ -1652,20 +1650,20 @@ w=a[1];return function(e,a){return I(d,c,w,b)};case x=a[1];return function(a){return I(d,c,x,b)};case 12:var y=a[1];return function(a){return I(d,c,y,b)};case -13:throw[0,m,gk];default:throw[0,m,gl]}}function +13:throw[0,m,gl];default:throw[0,m,gm]}}function h(d,b,e,a){var -c=[8,e,gm];return d<50?aU(d+1|0,b,c,a):j(aU,[0,b,c,a])}function -bP(h,c,f,a,e,d){if(e){var -i=e[1];return function(e){return gf(c,f,a,i,b(d,e))}}var +c=[8,e,gn];return d<50?aU(d+1|0,b,c,a):j(aU,[0,b,c,a])}function +bR(h,c,f,a,e,d){if(e){var +i=e[1];return function(e){return gg(c,f,a,i,b(d,e))}}var g=[4,f,d];return h<50?aU(h+1|0,c,g,a):j(aU,[0,c,g,a])}function e(a,b,c){return a5(aU(0,a,b,c))}function -I(a,b,c,d){return a5(bQ(0,a,b,c,d))}function -gf(a,b,c,d,e){return a5(bP(0,a,b,c,d,e))}function -bu(g,f,d,a,c){if(typeof +I(a,b,c,d){return a5(bS(0,a,b,c,d))}function +gg(a,b,c,d,e){return a5(bR(0,a,b,c,d,e))}function +bx(g,f,d,a,c){if(typeof a==="number")return function(a){return e(g,[4,f,b(c,a)],d)};else{if(0===a[0]){var h=a[2],i=a[1];return function(a){return e(g,[4,f,F(i,h,b(c,a))],d)}}var j=a[1];return function(h,a){return e(g,[4,f,F(j,h,b(c,a))],d)}}}function -a_(g,f,d,h,c,b,a){if(typeof +a$(g,f,d,h,c,b,a){if(typeof h==="number"){if(typeof c==="number")return c?function(h,c){return e(g,[4,f,av(h,K(b,a,c))],d)}:function(c){return e(g,[4,f,K(b,a,c)],d)};var l=c[1];return function(c){return e(g,[4,f,av(l,K(b,a,c))],d)}}else{if(0===h[0]){var @@ -1680,33 +1678,33 @@ a=f;for(;;)if(typeof a==="number")return 0;else switch(a[0]){case 0:var -g=a[1],h=cy(a[2]);$(c,g);return aK(c,h);case +g=a[1],h=cx(a[2]);$(c,g);return aK(c,h);case 1:var d=a[2],e=a[1];if(0===d[0]){var -i=d[1];$(c,e);aK(c,gn);var +i=d[1];$(c,e);aK(c,go);var a=i;continue}var -j=d[1];$(c,e);aK(c,go);var +j=d[1];$(c,e);aK(c,gp);var a=j;continue;case 6:var m=a[2];$(c,a[1]);return b(m,c);case -7:$(c,a[1]);return bn(c);case +7:$(c,a[1]);return bq(c);case 8:var n=a[2];$(c,a[1]);return al(n);case 2:case 4:var k=a[2];$(c,a[1]);return aK(c,k);default:var -l=a[2];$(c,a[1]);return ec(c,l)}}function +l=a[2];$(c,a[1]);return ed(c,l)}}function ah(c,g){var a=g;for(;;)if(typeof a==="number")return 0;else switch(a[0]){case 0:var -h=a[1],i=cy(a[2]);ah(c,h);return aM(c,i);case +h=a[1],i=cx(a[2]);ah(c,h);return aM(c,i);case 1:var e=a[2],f=a[1];if(0===e[0]){var -j=e[1];ah(c,f);aM(c,gp);var +j=e[1];ah(c,f);aM(c,gq);var a=j;continue}var -k=e[1];ah(c,f);aM(c,gq);var +k=e[1];ah(c,f);aM(c,gr);var a=k;continue;case 6:var o=a[2];ah(c,a[1]);return aM(c,b(o,0));case @@ -1718,107 +1716,109 @@ p=a[2];ah(c,a[1]);return al(p);case 4:var l=a[2];ah(c,a[1]);return aM(c,l);default:var m=a[2];ah(c,a[1]);var -d=c[2];if(c[3]<=d)cu(c,1);n(c[1],d,m);c[2]=d+1|0;return 0}}function -cB(d,c){var +d=c[2];if(c[3]<=d)ct(c,1);n(c[1],d,m);c[2]=d+1|0;return 0}}function +cA(d,c){var a=c[1],b=0;return e(function(a){$(d,a);return 0},b,a)}function -bv(f,a){var +by(f,a){var c=a[1];return e(function(e){var -g=64,c=aL<64?aL:g,d=t(c),a=[0,d,0,c,d];ah(a,e);return b(f,cr(a[1],0,a[2]))},0,c)}function -P(a){return bv(function(a){return a},a)}var -bw=[0,0];function -by(i,h){var +g=64,c=aL<64?aL:g,d=t(c),a=[0,d,0,c,d];ah(a,e);return b(f,cq(a[1],0,a[2]))},0,c)}function +P(a){return by(function(a){return a},a)}var +bz=[0,0];function +bB(i,h){var a=i[1+h];if(1-(typeof -a==="number"?1:0)){if(bo(a)===be)return b(P(gr),a);if(bo(a)===253){var -d=b8(eo,a),c=0,g=w(d);for(;;){if(g<=c)return a7(d,en);var +a==="number"?1:0)){if(br(a)===bg)return b(P(gs),a);if(br(a)===253){var +d=b8(ep,a),c=0,g=x(d);for(;;){if(g<=c)return a7(d,eo);var e=H(d,c),f=0;if(48<=e){if(!(58<=e))f=1}else if(45===e)f=1;if(f){var -c=c+1|0;continue}return d}}return gs}return b(P(gt),a)}function -cC(b,a){if(b.length-1<=a)return gu;var -c=cC(b,a+1|0),d=by(b,a);return K(P(gv),d,c)}function -bz(a){function +c=c+1|0;continue}return d}}return gt}return b(P(gu),a)}function +cB(b,a){if(b.length-1<=a)return gv;var +c=cB(b,a+1|0),d=bB(b,a);return K(P(gw),d,c)}function +bC(a){function p(f){var c=f;for(;;){if(c){var g=c[2],h=c[1];try{var e=0,d=b(h,a);e=1}catch(a){}if(e&&d)return[0,d[1]];var c=g;continue}return 0}}var -h=p(bw[1]);if(h)return h[1];if(a===ck)return gA;if(a===cl)return gB;if(a[1]===cj){var -d=a[2],i=d[3],q=d[2],r=d[1];return bR(P(bx),r,q,i,i+5|0,gC)}if(a[1]===m){var -e=a[2],j=e[3],s=e[2],t=e[1];return bR(P(bx),t,s,j,j+6|0,gD)}if(a[1]===cn){var -f=a[2],k=f[3],u=f[2],v=f[1];return bR(P(bx),v,u,k,k+6|0,gE)}if(0===bo(a)){var +h=p(bz[1]);if(h)return h[1];if(a===ck)return gB;if(a===cl)return gC;if(a[1]===cj){var +d=a[2],i=d[3],q=d[2],r=d[1];return bT(P(bA),r,q,i,i+5|0,gD)}if(a[1]===m){var +e=a[2],j=e[3],s=e[2],t=e[1];return bT(P(bA),t,s,j,j+6|0,gE)}if(a[1]===cn){var +f=a[2],k=f[3],u=f[2],v=f[1];return bT(P(bA),v,u,k,k+6|0,gF)}if(0===br(a)){var g=a.length-1,w=a[1][1];if(2<g>>>0)var -l=cC(a,2),n=by(a,1),c=K(P(gw),n,l);else +l=cB(a,2),n=bB(a,1),c=K(P(gx),n,l);else switch(g){case 0:var -c=gx;break;case +c=gy;break;case 1:var -c=gy;break;default:var -o=by(a,1),c=b(P(gz),o)}return a7(w,c)}return a[1]}function -cD(h){var -e=hL(hP(0));if([0,e]){var -g=e.length-1-1|0,p=0;if(!(g<0)){var -c=p;for(;;){var -a=hJ(e,c)[1+c],f=function(a){return function(b){return b?0===a?gF:gG:0===a?gH:gI}}(c);if(0===a[0])var -i=a[5],j=a[4],k=a[3],l=a[6]?gJ:gL,m=a[2],n=f(a[1]),d=[0,hA(P(gK),n,m,l,k,j,i)];else +c=gz;break;default:var +o=bB(a,1),c=b(P(gA),o)}return a7(w,c)}return a[1]}function +cC(h){var +e=hR(hU(0));if([0,e]){var +g=e.length-1-1|0,q=0;if(!(g<0)){var +c=q;for(;;){var +a=hP(e,c)[1+c],f=function(a){return function(b){return b?0===a?gG:gH:0===a?gI:gJ}}(c);if(0===a[0])var +i=a[5],j=a[4],k=a[3],l=a[6]?gK:gM,m=a[2],n=a[7],o=f(a[1]),d=[0,hG(P(gL),o,n,m,l,k,j,i)];else if(a[1])var d=0;else var -o=f(0),d=[0,b(P(gM),o)];if(d){var -q=d[1];b(cB(h,gN),q)}var -r=c+1|0;if(g!==c){var -c=r;continue}break}}return 0}return cB(h,gO)}function -cE(a){bw[1]=[0,a,bw[1]];return 0}var +p=f(0),d=[0,b(P(gN),p)];if(d){var +r=d[1];b(cA(h,gO),r)}var +s=c+1|0;if(g!==c){var +c=s;continue}break}}return 0}return cA(h,gP)}function +cD(a){bz[1]=[0,a,bz[1]];return 0}function +cE(b,a){var +c=br(a)===v?a:a[1];return iq(b,c)}var C=d,aw=null,cF=undefined;function -bA(a){return 1-(a==aw?1:0)}function +bD(a){return 1-(a==aw?1:0)}function aO(a,d){var c=1-(a==aw?1:0);return c?b(d,a):c}function cG(a,d,c){return a==aw?b(d,0):b(c,a)}var -bB=true,aP=false,gQ=C.Array,cH=[z,gR,X(0)],bC=[0,cH,{}],gP=bo(bC)===z?bC:bC[1];ik(a(bW),gP);(function(a){throw a});cE(function(a){return a[1]===cH?[0,at(a[2].toString())]:0});cE(function(a){return a +bE=true,aP=false,gQ=C.Array,cH=[v,gR,R(0)];cE(gS,[0,cH,{}]);(function(a){throw a});cD(function(a){return a[1]===cH?[0,at(a[2].toString())]:0});cD(function(a){return a instanceof gQ?0:[0,at(a.toString())]});function cI(b,a){b.appendChild(a);return 0}function -ax(d){return function(a){if(bA(a)){var +ax(d){return function(a){if(bD(a)){var e=b(d,a);if(1-(e|0))a.preventDefault();return e}var f=event,c=b(d,f);if(1-(c|0))f.returnValue=c;return c}}function cJ(a,e,k,j,i,d){if(a.addEventListener===cF){var g="on".concat(e),h=function(a){var -b=[0,d,a,[0]];return function(a,c){return h6(b,a,c)}};a.attachEvent(g,h);return function(b){return a.detachEvent(g,h)}}var +b=[0,d,a,[0]];return function(a,c){return h$(b,a,c)}};a.attachEvent(g,h);return function(b){return a.detachEvent(g,h)}}var c={};function f(a,c){return a?b(c,a[1]):0}f(k,function(a){return c.capture=a});f(j,function(a){return c.once=a});f(i,function(a){return c.passive=a});a.addEventListener(e,d,c);return function(b){return a.removeEventListener(e,d,c)}}function -gS(a){return b(a,0)}var -a$=C.document,gT="click",gU="change",gV="input",gW="load";function -ba(a){function +gT(a){return b(a,0)}var +ba=C.document,gU="click",gV="change",gW="input",gX="load";function +bb(a){function c(a){return a}function -d(c){return ci(b(P(gX),a))}return cG(a$.getElementById(a2(a)),d,c)}function +d(c){return ci(b(P(gY),a))}return cG(ba.getElementById(a2(a)),d,c)}function cK(b,a){return b.createElement(a2(a))}var -g0=[z,gZ,X(0)];C.HTMLElement===cF;var -cL=h9(0),g3=C.Worker;X(0);var -g2=b4;function +g1=[v,g0,R(0)];C.HTMLElement===cF;var +cL=ic(0),g4=C.Worker;R(0);var +g3=b4;function cM(b){var -a=[];iq(a,[0,a,a]);return a}var -ey=0;function +a=[];iv(a,[0,a,a]);return a}var +ez=0;function J(a){var c=a[1];switch(c[0]){case 0:return a;case 1:return a;case 2:return a;default:var d=c[1],b=J(d);if(1-(b===d?1:0))a[1]=[3,b];return b}}function -bD(a,b){a[1]=b;return a}var -ai=[0,ey];function +bF(a,b){a[1]=b;return a}var +ai=[0,ez];function cN(b,a){return typeof b==="number"?a:typeof a==="number"?b:[0,b,a]}function -bE(a){if(typeof +bG(a){if(typeof a!=="number")switch(a[0]){case 0:var -b=a[2],c=bE(a[1]);return cN(c,bE(b));case +b=a[2],c=bG(a[1]);return cN(c,bG(b));case 2:if(!a[1][1])return 0;break}return a}function -bb(b,e){var +bc(b,e){var c=[1,e],a=b[1],d=typeof a==="number"?c:[0,c,a];b[1]=d;return 0}var -aQ=[0,function(a){co(g4);co(bz(a));ec(aJ,10);cD(aJ);bn(aJ);cp(0);return ip(2)}];function -bF(c,a){try{var +aQ=[0,function(a){co(g5);co(bC(a));ed(aJ,10);cC(aJ);bq(aJ);cp(0);return iu(2)}];function +bH(c,a){try{var d=b(c,a);return d}catch(a){a=aI(a);return b(aQ[1],a)}}var -aR=[z,g5,X(0)];function +aR=[v,g6,R(0)];function cO(a,f){if(1===f[0])var l=f[1]===aR?1:0,h=l;else var @@ -1830,7 +1830,7 @@ switch(b[0]){case 0:var h=[0,b[2],a],b=b[1],a=h;continue;case 1:var -i=b[2];ai[1]=b[1];bF(i,0);return d<50?e(d+1|0,a):j(e,[0,a]);default:var +i=b[2];ai[1]=b[1];bH(i,0);return d<50?e(d+1|0,a):j(e,[0,a]);default:var c=b[1];if(c[4]){c[4]=0;c[1][2]=c[2];c[2][1]=c[1]}return d<50?e(d+1|0,a):j(e,[0,a])}},e=function(d,a){if(a){var b=a[2],c=a[1];return d<50?g(d+1|0,c,b):j(g,[0,c,b])}return 0};(function(a,b){return a5(g(0,a,b))}(i,0))}var k=a[1];function @@ -1844,109 +1844,109 @@ k=[0,e[2],a],e=e[1],a=k;continue;case g=e[1][1];return g?(b(g[1],f),c<50?d(c+1|0,a):j(d,[0,a])):c<50?d(c+1|0,a):j(d,[0,a])}}function d(e,a){if(a){var b=a[2],d=a[1];return e<50?c(e+1|0,d,b):j(c,[0,d,b])}return 0}return function(a,b){return a5(c(0,a,b))}(k,0)}var -an=[0,0],R=[0,0,0,0],g6=42;function +an=[0,0],S=[0,0,0,0],g7=42;function cP(f){an[1]=an[1]+1|0;var -e=ai[1],g=b(f,0);if(1===an[1])for(;;){if(0!==R[1]){var -a=R[2];if(a){var +e=ai[1],g=b(f,0);if(1===an[1])for(;;){if(0!==S[1]){var +a=S[2];if(a){var c=a[1];if(a[2]){var -d=a[2];R[1]=R[1]-1|0;R[2]=d}else{R[1]=0;R[2]=0;R[3]=0}cO(c[1],c[2]);continue}throw eA}break}an[1]=an[1]-1|0;ai[1]=e;return g}function +d=a[2];S[1]=S[1]-1|0;S[2]=d}else{S[1]=0;S[2]=0;S[3]=0}cO(c[1],c[2]);continue}throw eB}break}an[1]=an[1]-1|0;ai[1]=e;return g}function cQ(d,c,b,a){var -e=d?d[1]:1,f=c?c[1]:g6,g=e?f<=an[1]?1:0:e;return g?ct([0,b,a],R):cP(function(c){return cO(b,a)})}function +e=d?d[1]:1,f=c?c[1]:g7,g=e?f<=an[1]?1:0:e;return g?cs([0,b,a],S):cP(function(c){return cO(b,a)})}function aS(d,c,b,a){var -e=b[1][1],f=bD(b,a);cQ(d,c,e,a);return f}function -bG(d,c,e){var +e=b[1][1],f=bF(b,a);cQ(d,c,e,a);return f}function +bI(d,c,e){var f=d?d[1]:0;if(f)return b(c,0);if(42<=an[1]){var -a=b(e,0),g=a[1];ct([0,[0,[1,a[2]],0,0,0],a[3]],R);return g}return cP(function(a){return b(c,0)})}function -bH(e,d){var +a=b(e,0),g=a[1];cs([0,[0,[1,a[2]],0,0,0],a[3]],S);return g}return cP(function(a){return b(c,0)})}function +bJ(e,d){var a=J(e),c=a[1];switch(c[0]){case -1:return c[1]===aR?0:b(bv(al,g8),cR);case -2:aS(g9,0,a,[0,d]);return 0;default:return b(bv(al,g7),cR)}}function +1:return c[1]===aR?0:b(by(al,g9),cR);case +2:aS(g_,0,a,[0,d]);return 0;default:return b(by(al,g8),cR)}}function ay(a){return[0,[0,a]]}function az(a){return[0,[1,a]]}var -g$=ay(0);function -bI(a){return[0,[2,[0,0,0,a,0]]]}function -bJ(b){var -a=bI(1);return[0,a,a]}function +ha=ay(0);function +bK(a){return[0,[2,[0,0,0,a,0]]]}function +bL(b){var +a=bK(1);return[0,a,a]}function cS(b,m){var c=J(m);if(c===b)return c;var k=c[1];switch(k[0]){case -1:return aS(hb,0,b,c[1]);case +1:return aS(hc,0,b,c[1]);case 2:var d=k[1],a=b[1][1],g=cN(a[1],d[1]),h=a[4]+d[4]|0;if(42<h)var -j=0,i=bE(g);else +j=0,i=bG(g);else var j=h,i=g;var e=d[2],f=a[2],l=typeof f==="number"?e:typeof -e==="number"?f:[0,f,e];a[1]=i;a[2]=l;a[4]=j;a[3]=d[3];bD(c,[3,b]);return b;default:return aS(ha,0,b,c[1])}}function -bc(g,d){var +e==="number"?f:[0,f,e];a[1]=i;a[2]=l;a[4]=j;a[3]=d[3];bF(c,[3,b]);return b;default:return aS(hb,0,b,c[1])}}function +bd(g,d){var c=J(g);function e(e){var -a=bI([0,c]),f=ai[1];return[0,a,function(c){if(1===c[0]){aS(hc,0,J(a),c);return 0}var +a=bK([0,c]),f=ai[1];return[0,a,function(c){if(1===c[0]){aS(hd,0,J(a),c);return 0}var g=c[1];ai[1]=f;try{var h=b(d,g),e=h}catch(a){a=aI(a);var e=az(a)}cS(J(a),e);return 0}]}var a=c[1];switch(a[0]){case 1:return[0,a];case 2:var -j=a[1],f=e(0),k=f[1];bb(j,f[2]);return k;default:var +j=a[1],f=e(0),k=f[1];bc(j,f[2]);return k;default:var h=a[1],i=function(b){var -a=e(0);return[0,a[1],a[2],c[1]]};return bG(hd,function(a){return b(d,h)},i)}}function +a=e(0);return[0,a[1],a[2],c[1]]};return bI(he,function(a){return b(d,h)},i)}}function cT(h,d){try{var m=b(h,0),e=m}catch(a){a=aI(a);var e=az(a)}var a=J(e);function f(e){var -c=bI([0,a]),f=ai[1];return[0,c,function(a){if(1===a[0]){var +c=bK([0,a]),f=ai[1];return[0,c,function(a){if(1===a[0]){var g=a[1];ai[1]=f;try{var h=b(d,g),e=h}catch(a){a=aI(a);var -e=az(a)}cS(J(c),e);return 0}aS(he,0,J(c),a);return 0}]}var +e=az(a)}cS(J(c),e);return 0}aS(hf,0,J(c),a);return 0}]}var c=a[1];switch(c[0]){case 1:var i=c[1],j=function(c){var -b=f(0);return[0,b[1],b[2],a[1]]};return bG(hf,function(a){return b(d,i)},j);case +b=f(0);return[0,b[1],b[2],a[1]]};return bI(hg,function(a){return b(d,i)},j);case 2:var -k=c[1],g=f(0),l=g[1];bb(k,g[2]);return l;default:return a}}function -bK(f,a){var +k=c[1],g=f(0),l=g[1];bc(k,g[2]);return l;default:return a}}function +bM(f,a){var b=J(f)[1];switch(b[0]){case 1:if(b[1]===aR){var -g=function(b){return[0,0,function(b){return bF(a,0)},hg]};return bG(hh,function(b){return bF(a,0)},g)}return 0;case +g=function(b){return[0,0,function(b){return bH(a,0)},hh]};return bI(hi,function(b){return bH(a,0)},g)}return 0;case 2:var c=b[1],d=[1,ai[1],a],e=typeof c[2]==="number"?d:[0,d,c[2]];c[2]=e;return 0;default:return 0}}function -bL(d){try{var +bN(d){try{var f=b(d,0),c=f}catch(a){a=aI(a);var c=az(a)}var a=J(c)[1];switch(a[0]){case 1:return b(aQ[1],a[1]);case 2:var -e=a[1];return bb(e,function(a){return 1===a[0]?b(aQ[1],a[1]):0});default:return 0}}var -hi=[0,function(a){return 0}],S=cM(0),cU=[0,0];function -hj(d){if(S[2]===S){cU[1]=0;return 0}var -a=cM(0);a[1][2]=S[2];S[2][1]=a[1];a[1]=S[1];S[1][2]=a;S[1]=S;S[2]=S;cU[1]=0;var +e=a[1];return bc(e,function(a){return 1===a[0]?b(aQ[1],a[1]):0});default:return 0}}var +hj=[0,function(a){return 0}],T=cM(0),cU=[0,0];function +hk(d){if(T[2]===T){cU[1]=0;return 0}var +a=cM(0);a[1][2]=T[2];T[2][1]=a[1];a[1]=T[1];T[1][2]=a;T[1]=T;T[2]=T;cU[1]=0;var b=a[2];for(;;){var -c=b!==a?1:0;if(c){if(b[4])bH(b[3],0);var +c=b!==a?1:0;if(c){if(b[4])bJ(b[3],0);var b=b[2];continue}return c}}function cV(e){var -b=bJ(0),c=b[1],f=b[2],g=e*1000.,a=[0,0];function -h(a){return bH(f,a)}function +b=bL(0),c=b[1],f=b[2],g=e*1000.,a=[0,0];function +h(a){return bJ(f,a)}function d(b,g){if(b4<b)var -c=b-b4,e=g2;else +c=b-b4,e=g3;else var c=0.,e=b;var -f=c==0.?h:function(a){return d(c,a)};a[1]=[0,C.setTimeout(d$(f),e)];return 0}d(g,0);bK(c,function(d){var +f=c==0.?h:function(a){return d(c,a)};a[1]=[0,C.setTimeout(ea(f),e)];return 0}d(g,0);bM(c,function(d){var b=a[1];if(b){var -c=b[1];a[1]=0;return C.clearTimeout(c)}return 0});return c}hi[1]=function(a){return 1===a?(C.setTimeout(d$(hj),0.),0):0};function -cW(a){return cL.log(a2(a))}aQ[1]=function(a){cW(hk);cW(bz(a));return cD(aJ)};function -cX(a){return bL(function(b){return bc(cV(0.),a)})}function +c=b[1];a[1]=0;return C.clearTimeout(c)}return 0});return c}hj[1]=function(a){return 1===a?(C.setTimeout(ea(hk),0.),0):0};function +cW(a){return cL.log(a2(a))}aQ[1]=function(a){cW(hl);cW(bC(a));return cC(aJ)};function +cX(a){return bN(function(b){return bd(cV(0.),a)})}function cY(c,a){return a?[0,b(c,a[1])]:0}function -bM(h,g,f,e){var -a=[0,aw],b=bJ(0),c=b[1],i=b[2];function -d(b){return aO(a[1],gS)}bK(c,d);var -j=ax(function(a){d(0);bH(i,a);return!!1}),k=cY(d_,f);a[1]=cJ(e,h,cY(d_,g),0,k,j);return c}function +bO(h,g,f,e){var +a=[0,aw],b=bL(0),c=b[1],i=b[2];function +d(b){return aO(a[1],gT)}bM(c,d);var +j=ax(function(a){d(0);bJ(i,a);return!!1}),k=cY(d$,f);a[1]=cJ(e,h,cY(d$,g),0,k,j);return c}function cZ(g,a){var -h=a?a[1]:bT;return function(i,j,k,l){var -b=[0,0],c=[0,0],d=[0,az([0,bq,hl])],a=bJ(0)[1];bK(a,function(g){var +h=a?a[1]:bV;return function(i,j,k,l){var +b=[0,0],c=[0,0],d=[0,az([0,bt,hm])],a=bL(0)[1];bM(a,function(g){var e=[1,aR],b=d[1];function f(a,l){var g=l;for(;;){var @@ -1954,59 +1954,63 @@ h=J(g),i=h[1];switch(i[0]){case 1:return a;case 2:var j=i[1],b=j[3];if(typeof -b==="number")return 0===b?a:(bD(h,e),[0,j,a]);else{if(0===b[0]){var +b==="number")return 0===b?a:(bF(h,e),[0,j,a]);else{if(0===b[0]){var g=b[1];continue}var d=a,c=b[1];for(;;){if(c){var k=c[2],d=f(d,c[1]),c=k;continue}return d}}default:return a}}}var -a=f(0,b);cq(function(a){return cQ(g_,0,a,e)},a);c[1]=1;return 0});function +a=f(0,b);a8(function(a){return cQ(g$,0,a,e)},a);c[1]=1;return 0});function e(m){if(c[1])return ay(0);var -f=hB(g,i,j,k);d[1]=f;return bc(f,function(d){bL(function(e){function -c(a){cL.log(a2(bz(a)));return ay(0)}return cT(function(f){b[1]++;var +f=hH(g,i,j,k);d[1]=f;return bd(f,function(d){bN(function(e){function +c(a){cL.log(a2(bC(a)));return ay(0)}return cT(function(f){b[1]++;var c=b[1];function -e(e){return b[1]===c?K(l,d,a):ay(0)}return bc(cV(h),e)},c)});return e(0)})}bL(function(b){function +e(e){return b[1]===c?K(l,d,a):ay(0)}return bd(cV(h),e)},c)});return e(0)})}bN(function(b){function a(a){return a===aR?ay(0):az(a)}return cT(function(a){return e(b)},a)});return a}}function -hm(c,b,a){return bM(gU,c,b,a)}function -hn(c,b,a){return bM(gV,c,b,a)}var -aA=2*C.devicePixelRatio|0,aT=[0,0],ho=C.XMLSerializer;function -c0(c,b){var +hn(c,b,a){return bO(gV,c,b,a)}var +c0=globalThis;function +ho(c,b,a){return bO(gW,c,b,a)}cE(hq,[0,[v,hp,R(0)],{}]);var +hr="class",hs="href",ht=c0.document;function +c1(e,d){var +b=[0,[0,hs,d],[0,[0,"download",e],0]],f=0,c=[0,b]?b:0,a=ht.createElement("a");a8(function(d){var +b=d[2],c=d[1];return d8(c,hr)?0===b.length?0:(a.classList.add(b),0):(a.setAttribute(c,b),0)},c);a8(function(b){a.appendChild(b);return 0},f);a.click();return 0}var +aA=2*C.devicePixelRatio|0,aT=[0,0],hu=C.XMLSerializer;function +c2(c,b){var a=[0,c,b];aT[1]=[0,a,aT[1]];return a}var -bN="generated_svg";function -c1(b,e){var +bP="generated_svg";function +c3(b,e){var c=b.childNodes,d=c.length,f=0;if(!(d<0)){var a=f;for(;;){var g=function(a){b.removeChild(a);return 0};aO(c.item(a),g);var h=a+1|0;if(d!==a){var a=h;continue}break}}cI(b,e);return 0}function -c2(c,b,a){return download(c,b,a)}function -bO(b,a,d,c){b.postMessage(a.value);return g$}var -hp=new(C.DOMParser)();function -c3(p){var +bQ(b,a,d,c){b.postMessage(a.value);return ha}var +hv=new(C.DOMParser)();function +c4(p){var a=new -g3("/resources/viz.js/worker.js");a.onmessage=ax(function(d){var -a=d.data,e=a[1],f=[0,hp.parseFromString(a[2],hq).documentElement,e],c=aT[1];cq(function(a){var -c=hM([0,bN],[0,a[1]]),d=a[2];return c?b(d,f):c},c);return bB});var -e=ba(hr),l=ba(hs),m=ba(ht),c=ba(hu);c0(bN,function(a){var -c=a[1],b=a[2];c1(e,c);m.onclick=ax(function(a){c2(b,"output.dot",dd);return aP});return l.onclick=ax(function(e){var -a=cK(a$,gY);a.onload=ax(function(g){var -b=cK(a$,g1);if(1-bA(b.getContext))throw g0;var -f=b.getContext("2d"),d=c.width.baseVal.value,e=c.height.baseVal.value;a.width=aF(aA,d|0);a.height=aF(aA,e|0);b.width=aF(aA,d|0);b.height=aF(aA,e|0);f.drawImage(a,0.,0.,aA*d,aA*e);c2(b.toDataURL("image/png"),"output.png",dd);return aP});var +g4("/resources/viz.js/worker.js");a.onmessage=ax(function(d){var +a=d.data,e=a[1],f=[0,hv.parseFromString(a[2],hw).documentElement,e],c=aT[1];a8(function(a){var +c=d8([0,bP],[0,a[1]]),d=a[2];return c?b(d,f):c},c);return bE});var +e=bb(hx),l=bb(hy),m=bb(hz),c=bb(hA);c2(bP,function(a){var +c=a[1],b=a[2];c3(e,c);m.onclick=ax(function(a){c1("output.dot","data:".concat("text/plain",";base64,",c0.btoa(b)));return aP});return l.onclick=ax(function(e){var +a=cK(ba,gZ);a.onload=ax(function(g){var +b=cK(ba,g2);if(1-bD(b.getContext))throw g1;var +f=b.getContext("2d"),d=c.width.baseVal.value,e=c.height.baseVal.value;a.width=aF(aA,d|0);a.height=aF(aA,e|0);b.width=aF(aA,d|0);b.height=aF(aA,e|0);f.drawImage(a,0.,0.,aA*d,aA*e);c1("output.png",b.toDataURL("image/png"));return aP});var d=new -ho().serializeToString(c),b=C.encodeURIComponent(d);a.src="data:image/svg+xml;base64,".concat(C.btoa(C.unescape(b)));return aP})});function +hu().serializeToString(c),b=C.encodeURIComponent(d);a.src="data:image/svg+xml;base64,".concat(C.btoa(C.unescape(b)));return aP})});function n(e){cX(function(d){function -b(b,c){return bO(a,e,b,c)}return c4(cZ(hm,hv),0,0,c,b)});cX(function(d){function -b(b,c){return bO(a,e,b,c)}return c4(cZ(hn,hw),0,0,c,b)});var -d=J(bO(a,e,0,0))[1];switch(d[0]){case +b(b,c){return bQ(a,e,b,c)}return c5(cZ(hn,hB),0,0,c,b)});cX(function(d){function +b(b,c){return bQ(a,e,b,c)}return c5(cZ(ho,hC),0,0,c,b)});var +d=J(bQ(a,e,0,0))[1];switch(d[0]){case 1:throw d[1];case 2:var -f=d[1];return bb(f,function(a){return 1===a[0]?b(aQ[1],a[1]):0});default:return 0}}var +f=d[1];return bc(f,function(a){return 1===a[0]?b(aQ[1],a[1]):0});default:return 0}}var o=c.tagName.toLowerCase()==="textarea"?c:aw;aO(o,n);var -j=a$.getElementById("btn_window");function +j=ba.getElementById("btn_window");function i(a){return[0,a]}var d=cG(j,function(a){return 0},i);if(d){var h=d[1],k=!!0,g=function(c,b){var a=C.open(f,"_image",aw);aO(a,function(b){var -h=c0(bN,function(a){var -c=a[1].cloneNode(bB);c1(b.document.body,c);return 0});b.onunload=ax(function(i){var +h=c2(bP,function(a){var +c=a[1].cloneNode(bE);c3(b.document.body,c);return 0});b.onunload=ax(function(i){var d=0,a=aT[1];for(;;){if(a){var e=a[2],f=a[1];if(f!==h){var d=[0,f,d],a=e;continue}var @@ -2016,10 +2020,10 @@ g=[0,b[1],c],b=b[2],c=g;continue}aT[1]=c;return aP}}});var c=e.childNodes,d=c.length,f=0;if(!(d<0)){var a=f;for(;;){var g=function(a){var -c=a.cloneNode(bB);return cI(b.document.body,c)};aO(c.item(a),g);var +c=a.cloneNode(bE);return cI(b.document.body,c)};aO(c.item(a),g);var i=a+1|0;if(d!==a){var -a=i;continue}break}}return 0});return!!0};cJ(h,gT,[0,k],0,0,h$(function(c,a){if(bA(a)){var +a=i;continue}break}}return 0});return!!0};cJ(h,gU,[0,k],0,0,ie(function(c,a){if(bD(a)){var d=g(c,a);if(1-(d|0))a.preventDefault();return d}var e=event,b=g(c,e);if(1-(b|0))e.returnValue=b;return b}))}return ay(aP)}function -hx(a){return c3(0)}bc(bM(gW,0,0,C),hx);var -hy={"load":h_(function(a){return c3(0)})};h7(0).generator=hy;cp(0);return}(function(){return this}())); +hD(a){return c4(0)}bd(bO(gX,0,0,C),hD);var +hE={"load":id(function(a){return c4(0)})};ia(0).generator=hE;cp(0);return}(function(){return this}())); diff --git a/content/resources/viz.js/download.js b/content/resources/viz.js/download.js deleted file mode 100755 index 934edcc..0000000 --- a/content/resources/viz.js/download.js +++ /dev/null @@ -1,162 +0,0 @@ -//download.js v4.2, by dandavis; 2008-2016. [CCBY2] see http://danml.com/download.html for tests/usage -// v1 landed a FF+Chrome compat way of downloading strings to local un-named files, upgraded to use a hidden frame and optional mime -// v2 added named files via a[download], msSaveBlob, IE (10+) support, and window.URL support for larger+faster saves than dataURLs -// v3 added dataURL and Blob Input, bind-toggle arity, and legacy dataURL fallback was improved with force-download mime and base64 support. 3.1 improved safari handling. -// v4 adds AMD/UMD, commonJS, and plain browser support -// v4.1 adds url download capability via solo URL argument (same domain/CORS only) -// v4.2 adds semantic variable names, long (over 2MB) dataURL support, and hidden by default temp anchors -// https://github.com/rndme/download - -(function (root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define([], factory); - } else if (typeof exports === 'object') { - // Node. Does not work with strict CommonJS, but - // only CommonJS-like environments that support module.exports, - // like Node. - module.exports = factory(); - } else { - // Browser globals (root is window) - root.download = factory(); - } -}(this, function () { - - return function download(data, strFileName, strMimeType) { - - var self = window, // this script is only for browsers anyway... - defaultMime = "application/octet-stream", // this default mime also triggers iframe downloads - mimeType = strMimeType || defaultMime, - payload = data, - url = !strFileName && !strMimeType && payload, - anchor = document.createElement("a"), - toString = function(a){return String(a);}, - myBlob = (self.Blob || self.MozBlob || self.WebKitBlob || toString), - fileName = strFileName || "download", - blob, - reader; - myBlob= myBlob.call ? myBlob.bind(self) : Blob ; - - if(String(this)==="true"){ //reverse arguments, allowing download.bind(true, "text/xml", "export.xml") to act as a callback - payload=[payload, mimeType]; - mimeType=payload[0]; - payload=payload[1]; - } - - - if(url && url.length< 2048){ // if no filename and no mime, assume a url was passed as the only argument - fileName = url.split("/").pop().split("?")[0]; - anchor.href = url; // assign href prop to temp anchor - if(anchor.href.indexOf(url) !== -1){ // if the browser determines that it's a potentially valid url path: - var ajax=new XMLHttpRequest(); - ajax.open( "GET", url, true); - ajax.responseType = 'blob'; - ajax.onload= function(e){ - download(e.target.response, fileName, defaultMime); - }; - setTimeout(function(){ ajax.send();}, 0); // allows setting custom ajax headers using the return: - return ajax; - } // end if valid url? - } // end if url? - - - //go ahead and download dataURLs right away - if(/^data\:[\w+\-]+\/[\w+\-]+[,;]/.test(payload)){ - - if(payload.length > (1024*1024*1.999) && myBlob !== toString ){ - payload=dataUrlToBlob(payload); - mimeType=payload.type || defaultMime; - }else{ - return navigator.msSaveBlob ? // IE10 can't do a[download], only Blobs: - navigator.msSaveBlob(dataUrlToBlob(payload), fileName) : - saver(payload) ; // everyone else can save dataURLs un-processed - } - - }//end if dataURL passed? - - blob = payload instanceof myBlob ? - payload : - new myBlob([payload], {type: mimeType}) ; - - - function dataUrlToBlob(strUrl) { - var parts= strUrl.split(/[:;,]/), - type= parts[1], - decoder= parts[2] == "base64" ? atob : decodeURIComponent, - binData= decoder( parts.pop() ), - mx= binData.length, - i= 0, - uiArr= new Uint8Array(mx); - - for(i;i<mx;++i) uiArr[i]= binData.charCodeAt(i); - - return new myBlob([uiArr], {type: type}); - } - - function saver(url, winMode){ - - if ('download' in anchor) { //html5 A[download] - anchor.href = url; - anchor.setAttribute("download", fileName); - anchor.className = "download-js-link"; - anchor.innerHTML = "downloading..."; - anchor.style.display = "none"; - document.body.appendChild(anchor); - setTimeout(function() { - anchor.click(); - document.body.removeChild(anchor); - if(winMode===true){setTimeout(function(){ self.URL.revokeObjectURL(anchor.href);}, 250 );} - }, 66); - return true; - } - - // handle non-a[download] safari as best we can: - if(/(Version)\/(\d+)\.(\d+)(?:\.(\d+))?.*Safari\//.test(navigator.userAgent)) { - url=url.replace(/^data:([\w\/\-\+]+)/, defaultMime); - if(!window.open(url)){ // popup blocked, offer direct download: - if(confirm("Displaying New Document\n\nUse Save As... to download, then click back to return to this page.")){ location.href=url; } - } - return true; - } - - //do iframe dataURL download (old ch+FF): - var f = document.createElement("iframe"); - document.body.appendChild(f); - - if(!winMode){ // force a mime that will download: - url="data:"+url.replace(/^data:([\w\/\-\+]+)/, defaultMime); - } - f.src=url; - setTimeout(function(){ document.body.removeChild(f); }, 333); - - }//end saver - - - - - if (navigator.msSaveBlob) { // IE10+ : (has Blob, but not a[download] or URL) - return navigator.msSaveBlob(blob, fileName); - } - - if(self.URL){ // simple fast and modern way using Blob and URL: - saver(self.URL.createObjectURL(blob), true); - }else{ - // handle non-Blob()+non-URL browsers: - if(typeof blob === "string" || blob.constructor===toString ){ - try{ - return saver( "data:" + mimeType + ";base64," + self.btoa(blob) ); - }catch(y){ - return saver( "data:" + mimeType + "," + encodeURIComponent(blob) ); - } - } - - // Blob but not URL support: - reader=new FileReader(); - reader.onload=function(e){ - saver(this.result); - }; - reader.readAsDataURL(blob); - } - return true; - }; /* end download() */ -}));
\ No newline at end of file |