>2]=q;n=f;o=c[n+4>>2]|0;t=b;c[t>>2]=c[n>>2];c[t+4>>2]=o;t=1;i=e;return t|0}else if((a|0)==17){i=e;return f|0}return 0}function Vf(a){a=a|0;return a|0}function Wf(a,b){a=a|0;b=b|0;var d=0,e=0;e=b;d=c[e+4>>2]|0;b=a;c[b>>2]=c[e>>2];c[b+4>>2]=d;return}function Xf(a){a=a|0;return a+8|0}function Yf(a,b){a=a|0;b=b|0;var d=0,e=0;e=b;d=c[e+4>>2]|0;b=a+8|0;c[b>>2]=c[e>>2];c[b+4>>2]=d;return}function Zf(a){a=a|0;var b=0;b=i;if(a)OB(a);i=b;return}function _f(){var d=0,e=0;d=i;e=NB(28)|0;a:do if(!e){while(1){e=c[4582]|0;c[4582]=e+0;if(!e)break;qb[e&63]();e=NB(28)|0;if(e)break a}e=cb(4)|0;c[e>>2]=18168;_a(e|0,18216,116)}while(0);b[e+22>>1]=1;b[e+24>>1]=-1;b[e+26>>1]=0;c[e>>2]=0;c[e+4>>2]=0;g[e+8>>2]=.20000000298023224;g[e+12>>2]=0.0;g[e+16>>2]=0.0;a[e+20>>0]=0;i=d;return e|0}function $f(a){a=a|0;return c[a>>2]|0}function ag(a,b){a=a|0;b=b|0;c[a>>2]=b;return}function bg(a){a=a|0;return c[a+4>>2]|0}function cg(a,b){a=a|0;b=b|0;c[a+4>>2]=b;return}function dg(a){a=a|0;return+(+g[a+8>>2])}function eg(a,b){a=a|0;b=+b;g[a+8>>2]=b;return}function fg(a){a=a|0;return+(+g[a+12>>2])}function gg(a,b){a=a|0;b=+b;g[a+12>>2]=b;return}function hg(a){a=a|0;return+(+g[a+16>>2])}function ig(a,b){a=a|0;b=+b;g[a+16>>2]=b;return}function jg(b){b=b|0;return(a[b+20>>0]|0)!=0|0}function kg(b,c){b=b|0;c=c|0;a[b+20>>0]=c&1;return}function lg(a){a=a|0;return a+22|0}function mg(a,c){a=a|0;c=c|0;var d=0;d=i;a=a+22|0;b[a+0>>1]=b[c+0>>1]|0;b[a+2>>1]=b[c+2>>1]|0;b[a+4>>1]=b[c+4>>1]|0;i=d;return}function ng(a){a=a|0;var b=0;b=i;if(a)OB(a);i=b;return}function og(){var b=0,d=0,e=0;b=i;d=NB(44)|0;a:do if(!d){while(1){d=c[4582]|0;c[4582]=d+0;if(!d)break;qb[d&63]();d=NB(44)|0;if(d)break a}d=cb(4)|0;c[d>>2]=18168;_a(d|0,18216,116)}while(0);c[d+0>>2]=0;c[d+4>>2]=0;c[d+8>>2]=0;c[d+12>>2]=0;a[d+16>>0]=0;c[d>>2]=9;e=d+20|0;c[e+0>>2]=0;c[e+4>>2]=0;c[e+8>>2]=0;c[e+12>>2]=0;c[e+16>>2]=0;c[e+20>>2]=0;i=b;return d|0}function pg(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,h=0.0,j=0.0,k=0.0,l=0.0,m=0.0,n=0;f=i;c[a+8>>2]=b;c[a+12>>2]=d;m=+g[e>>2]- +g[b+12>>2];n=e+4|0;h=+g[n>>2]- +g[b+16>>2];j=+g[b+24>>2];k=+g[b+20>>2];l=+(m*j+h*k);k=+(j*h-m*k);b=a+20|0;g[b>>2]=l;g[b+4>>2]=k;k=+g[e>>2]- +g[d+12>>2];l=+g[n>>2]- +g[d+16>>2];m=+g[d+24>>2];h=+g[d+20>>2];j=+(k*m+l*h);h=+(m*l-k*h);b=a+28|0;g[b>>2]=j;g[b+4>>2]=h;i=f;return}function qg(a){a=a|0;return a+20|0}function rg(a,b){a=a|0;b=b|0;var d=0,e=0;e=b;d=c[e+4>>2]|0;b=a+20|0;c[b>>2]=c[e>>2];c[b+4>>2]=d;return}function sg(a){a=a|0;return a+28|0}function tg(a,b){a=a|0;b=b|0;var d=0,e=0;e=b;d=c[e+4>>2]|0;b=a+28|0;c[b>>2]=c[e>>2];c[b+4>>2]=d;return}function ug(a){a=a|0;return+(+g[a+36>>2])}function vg(a,b){a=a|0;b=+b;g[a+36>>2]=b;return}function wg(a){a=a|0;return+(+g[a+40>>2])}function xg(a,b){a=a|0;b=+b;g[a+40>>2]=b;return}function yg(a){a=a|0;return c[a>>2]|0}function zg(a,b){a=a|0;b=b|0;c[a>>2]=b;return}function Ag(a){a=a|0;return c[a+4>>2]|0}function Bg(a,b){a=a|0;b=b|0;c[a+4>>2]=b;return}function Cg(a){a=a|0;return c[a+8>>2]|0}function Dg(a,b){a=a|0;b=b|0;c[a+8>>2]=b;return}function Eg(a){a=a|0;return c[a+12>>2]|0}function Fg(a,b){a=a|0;b=b|0;c[a+12>>2]=b;return}function Gg(b){b=b|0;return(a[b+16>>0]|0)!=0|0}function Hg(b,c){b=b|0;c=c|0;a[b+16>>0]=c&1;return}function Ig(a){a=a|0;var b=0;b=i;if(a)OB(a);i=b;return}function Jg(){var a=0,b=0,d=0,e=0;a=i;e=NB(64)|0;a:do if(!e){while(1){b=c[4582]|0;c[4582]=b+0;if(!b)break;qb[b&63]();e=NB(64)|0;if(e)break a}e=cb(4)|0;c[e>>2]=18168;_a(e|0,18216,116)}while(0);d=e+0|0;b=d+64|0;do{c[d>>2]=0;d=d+4|0}while((d|0)<(b|0));i=a;return e|0}function Kg(a){a=a|0;return a+40|0}function Lg(a,b){a=a|0;b=b|0;var d=0,e=0;e=b;d=c[e+4>>2]|0;b=a+40|0;c[b>>2]=c[e>>2];c[b+4>>2]=d;return}function Mg(a){a=a|0;return a+48|0}function Ng(a,b){a=a|0;b=b|0;var d=0,e=0;e=b;d=c[e+4>>2]|0;b=a+48|0;c[b>>2]=c[e>>2];c[b+4>>2]=d;return}function Og(a){a=a|0;return c[a+56>>2]|0}function Pg(a,b){a=a|0;b=b|0;c[a+56>>2]=b;return}function Qg(a){a=a|0;return c[a+60>>2]|0}function Rg(a,b){a=a|0;b=b|0;c[a+60>>2]=b;return}function Sg(a){a=a|0;var b=0;b=i;if(a)OB(a);i=b;return}function Tg(){var b=0,d=0,e=0,f=0;b=i;d=NB(72)|0;a:do if(!d){while(1){d=c[4582]|0;c[4582]=d+0;if(!d)break;qb[d&63]();d=NB(72)|0;if(d)break a}d=cb(4)|0;c[d>>2]=18168;_a(d|0,18216,116)}while(0);c[d+0>>2]=0;c[d+4>>2]=0;c[d+8>>2]=0;c[d+12>>2]=0;a[d+16>>0]=0;c[d>>2]=2;f=d+20|0;e=d+36|0;c[f+0>>2]=0;c[f+4>>2]=0;c[f+8>>2]=0;c[f+12>>2]=0;g[e>>2]=1.0;g[d+40>>2]=0.0;g[d+44>>2]=0.0;a[d+48>>0]=0;g[d+52>>2]=0.0;g[d+56>>2]=0.0;a[d+60>>0]=0;g[d+64>>2]=0.0;g[d+68>>2]=0.0;i=b;return d|0}function Ug(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var h=0,j=0.0,k=0.0,l=0.0,m=0.0,n=0.0,o=0,p=0,q=0,r=0;h=i;c[a+8>>2]=b;c[a+12>>2]=d;k=+g[e>>2]- +g[b+12>>2];q=e+4|0;n=+g[q>>2]- +g[b+16>>2];p=b+24|0;l=+g[p>>2];o=b+20|0;j=+g[o>>2];m=+(k*l+n*j);j=+(l*n-k*j);r=a+20|0;g[r>>2]=m;g[r+4>>2]=j;j=+g[e>>2]- +g[d+12>>2];m=+g[q>>2]- +g[d+16>>2];k=+g[d+24>>2];n=+g[d+20>>2];l=+(j*k+m*n);n=+(k*m-j*n);e=a+28|0;g[e>>2]=l;g[e+4>>2]=n;n=+g[p>>2];l=+g[f>>2];j=+g[o>>2];m=+g[f+4>>2];k=+(n*l+j*m);j=+(n*m-l*j);e=a+36|0;g[e>>2]=k;g[e+4>>2]=j;g[a+44>>2]=+g[d+56>>2]- +g[b+56>>2];i=h;return}function Vg(a){a=a|0;return a+20|0}function Wg(a,b){a=a|0;b=b|0;var d=0,e=0;e=b;d=c[e+4>>2]|0;b=a+20|0;c[b>>2]=c[e>>2];c[b+4>>2]=d;return}function Xg(a){a=a|0;return a+28|0}function Yg(a,b){a=a|0;b=b|0;var d=0,e=0;e=b;d=c[e+4>>2]|0;b=a+28|0;c[b>>2]=c[e>>2];c[b+4>>2]=d;return}function Zg(a){a=a|0;return a+36|0}function _g(a,b){a=a|0;b=b|0;var d=0,e=0;e=b;d=c[e+4>>2]|0;b=a+36|0;c[b>>2]=c[e>>2];c[b+4>>2]=d;return}function $g(a){a=a|0;return+(+g[a+44>>2])}function ah(a,b){a=a|0;b=+b;g[a+44>>2]=b;return}function bh(b){b=b|0;return(a[b+48>>0]|0)!=0|0}function ch(b,c){b=b|0;c=c|0;a[b+48>>0]=c&1;return}function dh(a){a=a|0;return+(+g[a+52>>2])}function eh(a,b){a=a|0;b=+b;g[a+52>>2]=b;return}function fh(a){a=a|0;return+(+g[a+56>>2])}function gh(a,b){a=a|0;b=+b;g[a+56>>2]=b;return}function hh(b){b=b|0;return(a[b+60>>0]|0)!=0|0}function ih(b,c){b=b|0;c=c|0;a[b+60>>0]=c&1;return}function jh(a){a=a|0;return+(+g[a+64>>2])}function kh(a,b){a=a|0;b=+b;g[a+64>>2]=b;return}function lh(a){a=a|0;return+(+g[a+68>>2])}function mh(a,b){a=a|0;b=+b;g[a+68>>2]=b;return}function nh(a){a=a|0;return c[a>>2]|0}function oh(a,b){a=a|0;b=b|0;c[a>>2]=b;return}function ph(a){a=a|0;return c[a+4>>2]|0}function qh(a,b){a=a|0;b=b|0;c[a+4>>2]=b;return}function rh(a){a=a|0;return c[a+8>>2]|0}function sh(a,b){a=a|0;b=b|0;c[a+8>>2]=b;return}function th(a){a=a|0;return c[a+12>>2]|0}function uh(a,b){a=a|0;b=b|0;c[a+12>>2]=b;return}function vh(b){b=b|0;return(a[b+16>>0]|0)!=0|0}function wh(b,c){b=b|0;c=c|0;a[b+16>>0]=c&1;return}function xh(a){a=a|0;var b=0;b=i;if(a)OB(a);i=b;return}function yh(b){b=b|0;var d=0,e=0,f=0,h=0,j=0,k=0;d=i;e=NB(103028)|0;a:do if(!e){while(1){e=c[4582]|0;c[4582]=e+0;if(!e)break;qb[e&63]();e=NB(103028)|0;if(e)break a}k=cb(4)|0;c[k>>2]=18168;_a(k|0,18216,116)}while(0);h=e+8|0;c[h>>2]=128;c[e+4>>2]=0;f=NB(1024)|0;c[e>>2]=f;QB(f|0,0,c[h>>2]<<3|0)|0;h=e+12|0;f=h+56|0;do{c[h>>2]=0;h=h+4|0}while((h|0)<(f|0));do if(!(a[8176]|0)){f=1;h=0;while(1){if((h|0)>=14){f=7;break}if((f|0)>(c[7472+(h<<2)>>2]|0)){h=h+1|0;a[7528+f>>0]=h}else a[7528+f>>0]=h;f=f+1|0;if((f|0)>=641){f=12;break}}if((f|0)==7)Aa(8184,8208,71,8256);else if((f|0)==12){a[8176]=1;break}}while(0);c[e+102468>>2]=0;c[e+102472>>2]=0;c[e+102476>>2]=0;c[e+102864>>2]=0;c[e+102872>>2]=-1;f=e+102884|0;c[f>>2]=16;c[e+102880>>2]=0;j=NB(576)|0;h=e+102876|0;c[h>>2]=j;QB(j|0,0,(c[f>>2]|0)*36|0)|0;j=(c[f>>2]|0)+ -1|0;h=c[h>>2]|0;if((j|0)>0){k=0;do{j=k;k=k+1|0;c[h+(j*36|0)+20>>2]=k;c[h+(j*36|0)+32>>2]=-1;j=(c[f>>2]|0)+ -1|0}while((k|0)<(j|0))}c[h+(j*36|0)+20>>2]=-1;c[h+(((c[f>>2]|0)+ -1|0)*36|0)+32>>2]=-1;j=e+102888|0;k=e+102920|0;c[j+0>>2]=0;c[j+4>>2]=0;c[j+8>>2]=0;c[j+12>>2]=0;c[k>>2]=16;c[e+102924>>2]=0;c[e+102916>>2]=NB(128)|0;c[e+102908>>2]=16;c[e+102912>>2]=0;c[e+102904>>2]=NB(64)|0;c[e+102932>>2]=0;c[e+102936>>2]=0;c[e+102940>>2]=9648;c[e+102944>>2]=9656;k=e+102948|0;j=e+102968|0;c[e+102980>>2]=0;c[e+102984>>2]=0;f=e+102992|0;c[k+0>>2]=0;c[k+4>>2]=0;c[k+8>>2]=0;c[k+12>>2]=0;c[k+16>>2]=0;a[f>>0]=1;a[e+102993>>0]=1;a[e+102994>>0]=0;a[e+102995>>0]=1;a[e+102976>>0]=1;f=b;h=c[f+4>>2]|0;c[j>>2]=c[f>>2];c[j+4>>2]=h;c[e+102868>>2]=4;g[e+102988>>2]=0.0;c[k>>2]=e;k=e+102996|0;c[k+0>>2]=0;c[k+4>>2]=0;c[k+8>>2]=0;c[k+12>>2]=0;c[k+16>>2]=0;c[k+20>>2]=0;c[k+24>>2]=0;c[k+28>>2]=0;i=d;return e|0}function zh(a,b){a=a|0;b=b|0;c[a+102980>>2]=b;return}function Ah(a,b){a=a|0;b=b|0;c[a+102940>>2]=b;return}function Bh(a,b){a=a|0;b=b|0;c[a+102944>>2]=b;return}function Ch(a,b){a=a|0;b=b|0;c[a+102984>>2]=b;return}function Dh(d,e){d=d|0;e=e|0;var f=0,h=0,j=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0.0;f=i;if(c[d+102868>>2]&2)Aa(11064,11088,109,11128);h=Hx(d,152)|0;if(!h)h=0;else{l=e+4|0;if(((g[k>>2]=+g[l>>2],c[k>>2]|0)&2139095040|0)==2139095040)Aa(8600,8624,27,8664);if(((g[k>>2]=+g[e+8>>2],c[k>>2]|0)&2139095040|0)==2139095040)Aa(8600,8624,27,8664);o=e+16|0;if(((g[k>>2]=+g[o>>2],c[k>>2]|0)&2139095040|0)==2139095040)Aa(8672,8624,28,8664);if(((g[k>>2]=+g[e+20>>2],c[k>>2]|0)&2139095040|0)==2139095040)Aa(8672,8624,28,8664);p=e+12|0;if(((g[k>>2]=+g[p>>2],c[k>>2]|0)&2139095040|0)==2139095040)Aa(8704,8624,29,8664);q=e+24|0;if(((g[k>>2]=+g[q>>2],c[k>>2]|0)&2139095040|0)==2139095040)Aa(8728,8624,30,8664);n=e+32|0;s=+g[n>>2];if(((g[k>>2]=s,c[k>>2]|0)&2139095040|0)==2139095040|!(s>=0.0))Aa(8760,8624,31,8664);m=e+28|0;s=+g[m>>2];if(((g[k>>2]=s,c[k>>2]|0)&2139095040|0)==2139095040|!(s>=0.0))Aa(8824,8624,32,8664);j=h+4|0;r=(a[e+39>>0]|0)==0?0:8;b[j>>1]=r;if(a[e+38>>0]|0){r=(r&65535|16)&65535;b[j>>1]=r}if(a[e+36>>0]|0){r=(r&65535|4)&65535;b[j>>1]=r}if(a[e+37>>0]|0){r=(r&65535|2)&65535;b[j>>1]=r}if(a[e+40>>0]|0)b[j>>1]=r&65535|32;c[h+88>>2]=d;r=l;l=c[r>>2]|0;r=c[r+4>>2]|0;j=h+12|0;c[j>>2]=l;c[j+4>>2]=r;s=+g[p>>2];g[h+20>>2]=+R(+s);g[h+24>>2]=+Q(+s);g[h+28>>2]=0.0;g[h+32>>2]=0.0;j=h+36|0;c[j>>2]=l;c[j+4>>2]=r;j=h+44|0;c[j>>2]=l;c[j+4>>2]=r;g[h+52>>2]=+g[p>>2];g[h+56>>2]=+g[p>>2];g[h+60>>2]=0.0;c[h+108>>2]=0;c[h+112>>2]=0;c[h+92>>2]=0;c[h+96>>2]=0;p=o;j=c[p+4>>2]|0;r=h+64|0;c[r>>2]=c[p>>2];c[r+4>>2]=j;g[h+72>>2]=+g[q>>2];g[h+132>>2]=+g[m>>2];g[h+136>>2]=+g[n>>2];g[h+140>>2]=+g[e+48>>2];g[h+76>>2]=0.0;g[h+80>>2]=0.0;g[h+84>>2]=0.0;g[h+144>>2]=0.0;r=c[e>>2]|0;c[h>>2]=r;j=h+116|0;if((r|0)==2){g[j>>2]=1.0;g[h+120>>2]=1.0}else{g[j>>2]=0.0;g[h+120>>2]=0.0}g[h+124>>2]=0.0;g[h+128>>2]=0.0;c[h+148>>2]=c[e+44>>2];c[h+100>>2]=0;c[h+104>>2]=0}c[h+92>>2]=0;j=d+102952|0;c[h+96>>2]=c[j>>2];e=c[j>>2]|0;if(!e){c[j>>2]=h;r=d+102960|0;q=c[r>>2]|0;q=q+1|0;c[r>>2]=q;i=f;return h|0}c[e+92>>2]=h;c[j>>2]=h;r=d+102960|0;q=c[r>>2]|0;q=q+1|0;c[r>>2]=q;i=f;return h|0}function Eh(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0;e=i;f=b+102960|0;if((c[f>>2]|0)<=0)Aa(11144,11088,133,11160);if(c[b+102868>>2]&2)Aa(11064,11088,134,11160);j=d+108|0;k=c[j>>2]|0;if(k){h=b+102980|0;do{m=k;k=c[k+12>>2]|0;l=c[h>>2]|0;if(!l)l=m+4|0;else{o=m+4|0;lb[c[(c[l>>2]|0)+8>>2]&127](l,c[o>>2]|0);l=o}ry(b,c[l>>2]|0);c[j>>2]=k}while((k|0)!=0)}c[j>>2]=0;h=d+112|0;k=c[h>>2]|0;if(k){j=b+102872|0;do{o=k;k=c[k+12>>2]|0;Xx(j,c[o+4>>2]|0)}while((k|0)!=0)}c[h>>2]=0;h=d+100|0;m=c[h>>2]|0;a:do if(!m)g=d+104|0;else{l=b+102980|0;j=b+102872|0;k=d+104|0;while(1){n=m;m=c[m+4>>2]|0;o=c[l>>2]|0;if(o)lb[c[(c[o>>2]|0)+12>>2]&127](o,n);ly(n,j);jy(n,b);o=a[7572]|0;if((o&255)>=14)break;o=b+((o&255)<<2)+12|0;c[n>>2]=c[o>>2];c[o>>2]=n;c[h>>2]=m;c[k>>2]=(c[k>>2]|0)+ -1;if(!m){g=k;break a}}Aa(8296,8208,171,8568)}while(0);c[h>>2]=0;c[g>>2]=0;h=d+92|0;j=c[h>>2]|0;g=d+96|0;if(j)c[j+96>>2]=c[g>>2];j=c[g>>2]|0;if(j)c[j+92>>2]=c[h>>2];h=b+102952|0;if((c[h>>2]|0)==(d|0))c[h>>2]=c[g>>2];c[f>>2]=(c[f>>2]|0)+ -1;f=a[7680]|0;if((f&255)<14){o=b+((f&255)<<2)+12|0;c[d>>2]=c[o>>2];c[o>>2]=d;i=e;return}else Aa(8296,8208,171,8568)}function Fh(b,d){b=b|0;d=d|0;var e=0,f=0,h=0,j=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0.0,y=0.0,z=0.0,A=0.0,B=0,C=0.0,D=0.0,E=0.0,F=0.0,G=0.0,H=0.0,I=0.0,J=0.0,K=0,L=0.0;e=i;if(c[b+102868>>2]&2)Aa(11064,11088,214,11176);do switch(c[d>>2]|0){case 7:{h=Hx(b,224)|0;do if(h){c[h>>2]=15304;f=d+8|0;j=d+12|0;if((c[f>>2]|0)==(c[j>>2]|0))Aa(15352,15232,185,15384);else{c[h+4>>2]=c[d>>2];c[h+8>>2]=0;c[h+12>>2]=0;c[h+48>>2]=c[f>>2];c[h+52>>2]=c[j>>2];c[h+56>>2]=0;a[h+61>>0]=a[d+16>>0]|0;a[h+60>>0]=0;c[h+64>>2]=c[d+4>>2];w=h+16|0;c[w+0>>2]=0;c[w+4>>2]=0;c[w+8>>2]=0;c[w+12>>2]=0;c[w+16>>2]=0;c[w+20>>2]=0;c[w+24>>2]=0;c[w+28>>2]=0;c[h>>2]=17248;w=d+20|0;B=c[w+4>>2]|0;q=h+76|0;c[q>>2]=c[w>>2];c[q+4>>2]=B;q=d+28|0;B=c[q+4>>2]|0;w=h+84|0;c[w>>2]=c[q>>2];c[w+4>>2]=B;w=d+36|0;B=c[w>>2]|0;w=c[w+4>>2]|0;q=h+92|0;c[q>>2]=B;c[q+4>>2]=w;q=h+100|0;g[q>>2]=-(c[k>>2]=w,+g[k>>2]);c[q+4>>2]=B;g[h+204>>2]=0.0;g[h+108>>2]=0.0;g[h+208>>2]=0.0;g[h+112>>2]=0.0;g[h+212>>2]=0.0;g[h+116>>2]=0.0;g[h+120>>2]=+g[d+48>>2];g[h+124>>2]=+g[d+52>>2];a[h+128>>0]=a[d+44>>0]|0;g[h+68>>2]=+g[d+56>>2];g[h+72>>2]=+g[d+60>>2];g[h+216>>2]=0.0;g[h+220>>2]=0.0;q=h+172|0;c[q+0>>2]=0;c[q+4>>2]=0;c[q+8>>2]=0;c[q+12>>2]=0;q=h;break}}else q=0;while(0);f=q;break};case 2:{f=Hx(b,256)|0;if(!f)f=0;else{c[f>>2]=15304;h=d+8|0;j=d+12|0;if((c[h>>2]|0)==(c[j>>2]|0))Aa(15352,15232,185,15384);c[f+4>>2]=c[d>>2];c[f+8>>2]=0;c[f+12>>2]=0;c[f+48>>2]=c[h>>2];c[f+52>>2]=c[j>>2];c[f+56>>2]=0;a[f+61>>0]=a[d+16>>0]|0;a[f+60>>0]=0;c[f+64>>2]=c[d+4>>2];h=f+16|0;c[h+0>>2]=0;c[h+4>>2]=0;c[h+8>>2]=0;c[h+12>>2]=0;c[h+16>>2]=0;c[h+20>>2]=0;c[h+24>>2]=0;c[h+28>>2]=0;c[f>>2]=15912;h=f+84|0;B=d+20|0;w=c[B+4>>2]|0;v=f+68|0;c[v>>2]=c[B>>2];c[v+4>>2]=w;v=d+28|0;w=c[v+4>>2]|0;B=f+76|0;c[B>>2]=c[v>>2];c[B+4>>2]=w;B=d+36|0;w=c[B>>2]|0;B=c[B+4>>2]|0;v=h;c[v>>2]=w;c[v+4>>2]=B;x=(c[k>>2]=w,+g[k>>2]);y=(c[k>>2]=B,+g[k>>2]);z=+O(+(x*x+y*y));if(!(z<1.1920928955078125e-7)){C=1.0/z;x=x*C;g[h>>2]=x;y=y*C;g[f+88>>2]=y}A=+-y;C=+x;w=f+92|0;g[w>>2]=A;g[w+4>>2]=C;g[f+100>>2]=+g[d+44>>2];w=f+104|0;g[f+252>>2]=0.0;B=d+52|0;c[w+0>>2]=0;c[w+4>>2]=0;c[w+8>>2]=0;c[w+12>>2]=0;g[f+120>>2]=+g[B>>2];g[f+124>>2]=+g[d+56>>2];g[f+128>>2]=+g[d+64>>2];g[f+132>>2]=+g[d+68>>2];a[f+136>>0]=a[d+48>>0]|0;a[f+137>>0]=a[d+60>>0]|0;c[f+140>>2]=0;B=f+184|0;c[B+0>>2]=0;c[B+4>>2]=0;c[B+8>>2]=0;c[B+12>>2]=0}break};case 9:{f=Hx(b,180)|0;do if(f){c[f>>2]=15304;j=d+8|0;h=d+12|0;if((c[j>>2]|0)==(c[h>>2]|0))Aa(15352,15232,185,15384);else{c[f+4>>2]=c[d>>2];c[f+8>>2]=0;c[f+12>>2]=0;c[f+48>>2]=c[j>>2];c[f+52>>2]=c[h>>2];c[f+56>>2]=0;a[f+61>>0]=a[d+16>>0]|0;a[f+60>>0]=0;c[f+64>>2]=c[d+4>>2];p=f+16|0;c[p+0>>2]=0;c[p+4>>2]=0;c[p+8>>2]=0;c[p+12>>2]=0;c[p+16>>2]=0;c[p+20>>2]=0;c[p+24>>2]=0;c[p+28>>2]=0;c[f>>2]=14456;p=d+20|0;B=c[p+4>>2]|0;w=f+68|0;c[w>>2]=c[p>>2];c[w+4>>2]=B;w=d+28|0;B=c[w+4>>2]|0;p=f+76|0;c[p>>2]=c[w>>2];c[p+4>>2]=B;g[f+84>>2]=0.0;g[f+88>>2]=0.0;g[f+92>>2]=0.0;g[f+96>>2]=+g[d+36>>2];g[f+100>>2]=+g[d+40>>2];p=f;break}}else p=0;while(0);f=p;break};case 8:{j=Hx(b,208)|0;do if(j){c[j>>2]=15304;h=d+8|0;f=d+12|0;if((c[h>>2]|0)==(c[f>>2]|0))Aa(15352,15232,185,15384);else{c[j+4>>2]=c[d>>2];c[j+8>>2]=0;c[j+12>>2]=0;c[j+48>>2]=c[h>>2];c[j+52>>2]=c[f>>2];c[j+56>>2]=0;a[j+61>>0]=a[d+16>>0]|0;a[j+60>>0]=0;c[j+64>>2]=c[d+4>>2];l=j+16|0;c[l+0>>2]=0;c[l+4>>2]=0;c[l+8>>2]=0;c[l+12>>2]=0;c[l+16>>2]=0;c[l+20>>2]=0;c[l+24>>2]=0;c[l+28>>2]=0;c[j>>2]=17104;l=d+20|0;B=c[l+4>>2]|0;w=j+80|0;c[w>>2]=c[l>>2];c[w+4>>2]=B;w=d+28|0;B=c[w+4>>2]|0;l=j+88|0;c[l>>2]=c[w>>2];c[l+4>>2]=B;g[j+96>>2]=+g[d+36>>2];g[j+68>>2]=+g[d+40>>2];g[j+72>>2]=+g[d+44>>2];g[j+104>>2]=0.0;g[j+108>>2]=0.0;g[j+112>>2]=0.0;l=j;break}}else l=0;while(0);f=l;break};case 1:{f=Hx(b,228)|0;do if(f){c[f>>2]=15304;j=d+8|0;h=d+12|0;if((c[j>>2]|0)==(c[h>>2]|0))Aa(15352,15232,185,15384);else{c[f+4>>2]=c[d>>2];c[f+8>>2]=0;c[f+12>>2]=0;c[f+48>>2]=c[j>>2];c[f+52>>2]=c[h>>2];c[f+56>>2]=0;a[f+61>>0]=a[d+16>>0]|0;a[f+60>>0]=0;c[f+64>>2]=c[d+4>>2];B=f+16|0;c[B+0>>2]=0;c[B+4>>2]=0;c[B+8>>2]=0;c[B+12>>2]=0;c[B+16>>2]=0;c[B+20>>2]=0;c[B+24>>2]=0;c[B+28>>2]=0;c[f>>2]=16648;B=d+20|0;m=c[B+4>>2]|0;w=f+68|0;c[w>>2]=c[B>>2];c[w+4>>2]=m;w=d+28|0;m=c[w+4>>2]|0;B=f+76|0;c[B>>2]=c[w>>2];c[B+4>>2]=m;g[f+116>>2]=+g[d+36>>2];B=f+84|0;m=d+44|0;c[B+0>>2]=0;c[B+4>>2]=0;c[B+8>>2]=0;c[B+12>>2]=0;g[f+120>>2]=+g[m>>2];g[f+124>>2]=+g[d+48>>2];g[f+104>>2]=+g[d+60>>2];g[f+108>>2]=+g[d+56>>2];a[f+112>>0]=a[d+40>>0]|0;a[f+100>>0]=a[d+52>>0]|0;c[f+224>>2]=0;m=f;break}}else m=0;while(0);f=m;break};case 6:{f=Hx(b,276)|0;if(!f)f=0;else{c[f>>2]=15304;j=d+8|0;h=d+12|0;if((c[j>>2]|0)==(c[h>>2]|0))Aa(15352,15232,185,15384);c[f+4>>2]=c[d>>2];c[f+8>>2]=0;c[f+12>>2]=0;B=f+48|0;c[B>>2]=c[j>>2];o=f+52|0;c[o>>2]=c[h>>2];c[f+56>>2]=0;a[f+61>>0]=a[d+16>>0]|0;a[f+60>>0]=0;c[f+64>>2]=c[d+4>>2];u=f+16|0;c[u+0>>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>2])*(z*D+A*x-E);x=y+(c[k>>2]=B,+g[k>>2])*(z*x-A*D-C)}q=c[p+48>>2]|0;c[f+88>>2]=q;p=c[p+52>>2]|0;c[o>>2]=p;A=+g[p+20>>2];y=+g[p+24>>2];C=+g[q+20>>2];z=+g[q+24>>2];n=c[n>>2]|0;if((h|0)==1){I=+g[p+56>>2];J=+g[q+56>>2];K=n+68|0;B=c[K+4>>2]|0;w=m;c[w>>2]=c[K>>2];c[w+4>>2]=B;w=n+76|0;B=c[w+4>>2]|0;K=l;c[K>>2]=c[w>>2];c[K+4>>2]=B;y=+g[n+116>>2];g[f+144>>2]=y;g[j>>2]=0.0;g[f+136>>2]=0.0;y=I-J-y}else{E=+g[q+16>>2];I=+g[q+12>>2];D=+g[p+16>>2];L=+g[p+12>>2];u=n+68|0;t=c[u>>2]|0;u=c[u+4>>2]|0;w=m;c[w>>2]=t;c[w+4>>2]=u;w=n+76|0;v=c[w>>2]|0;w=c[w+4>>2]|0;K=l;c[K>>2]=v;c[K+4>>2]=w;g[f+144>>2]=+g[n+100>>2];K=n+84|0;B=c[K>>2]|0;K=c[K+4>>2]|0;s=j;c[s>>2]=B;c[s+4>>2]=K;H=(c[k>>2]=t,+g[k>>2]);J=(c[k>>2]=u,+g[k>>2]);F=(c[k>>2]=v,+g[k>>2]);G=(c[k>>2]=w,+g[k>>2]);I=L-I+(y*F-A*G);y=D-E+(A*F+y*G);H=(c[k>>2]=B,+g[k>>2])*(z*I+C*y-H);y=H+(c[k>>2]=K,+g[k>>2])*(z*y-C*I-J)}L=+g[d+28>>2];g[f+152>>2]=L;g[f+148>>2]=x+y*L;g[f+156>>2]=0.0}break};case 4:{f=Hx(b,196)|0;do if(f){c[f>>2]=15304;h=d+8|0;l=d+12|0;if((c[h>>2]|0)==(c[l>>2]|0))Aa(15352,15232,185,15384);c[f+4>>2]=c[d>>2];c[f+8>>2]=0;c[f+12>>2]=0;c[f+48>>2]=c[h>>2];c[f+52>>2]=c[l>>2];c[f+56>>2]=0;a[f+61>>0]=a[d+16>>0]|0;a[f+60>>0]=0;c[f+64>>2]=c[d+4>>2];l=f+16|0;c[l+0>>2]=0;c[l+4>>2]=0;c[l+8>>2]=0;c[l+12>>2]=0;c[l+16>>2]=0;c[l+20>>2]=0;c[l+24>>2]=0;c[l+28>>2]=0;c[f>>2]=16312;l=d+20|0;h=c[l+4>>2]|0;K=f+68|0;c[K>>2]=c[l>>2];c[K+4>>2]=h;K=d+28|0;h=c[K+4>>2]|0;l=f+76|0;c[l>>2]=c[K>>2];c[l+4>>2]=h;l=d+36|0;h=c[l+4>>2]|0;K=f+92|0;c[K>>2]=c[l>>2];c[K+4>>2]=h;K=d+44|0;h=c[K+4>>2]|0;l=f+100|0;c[l>>2]=c[K>>2];c[l+4>>2]=h;l=d+52|0;g[f+84>>2]=+g[l>>2];h=d+56|0;g[f+88>>2]=+g[h>>2];x=+g[d+60>>2];if(x!=0.0){g[f+112>>2]=x;g[f+108>>2]=+g[l>>2]+x*+g[h>>2];g[f+116>>2]=0.0;j=f;break}else Aa(16360,16232,65,16384)}else j=0;while(0);f=j;break};case 3:{f=Hx(b,176)|0;do if(f){c[f>>2]=15304;j=d+8|0;h=d+12|0;if((c[j>>2]|0)==(c[h>>2]|0))Aa(15352,15232,185,15384);else{c[f+4>>2]=c[d>>2];c[f+8>>2]=0;c[f+12>>2]=0;c[f+48>>2]=c[j>>2];c[f+52>>2]=c[h>>2];c[f+56>>2]=0;a[f+61>>0]=a[d+16>>0]|0;a[f+60>>0]=0;c[f+64>>2]=c[d+4>>2];n=f+16|0;c[n+0>>2]=0;c[n+4>>2]=0;c[n+8>>2]=0;c[n+12>>2]=0;c[n+16>>2]=0;c[n+20>>2]=0;c[n+24>>2]=0;c[n+28>>2]=0;c[f>>2]=14304;n=d+20|0;K=c[n+4>>2]|0;B=f+80|0;c[B>>2]=c[n>>2];c[B+4>>2]=K;B=d+28|0;K=c[B+4>>2]|0;n=f+88|0;c[n>>2]=c[B>>2];c[n+4>>2]=K;g[f+104>>2]=+g[d+36>>2];g[f+68>>2]=+g[d+40>>2];g[f+72>>2]=+g[d+44>>2];g[f+100>>2]=0.0;g[f+96>>2]=0.0;g[f+76>>2]=0.0;n=f;break}}else n=0;while(0);f=n;break};case 5:{f=Hx(b,168)|0;do if(f){c[f>>2]=15304;j=d+8|0;l=d+12|0;if((c[j>>2]|0)==(c[l>>2]|0))Aa(15352,15232,185,15384);c[f+4>>2]=c[d>>2];c[f+8>>2]=0;c[f+12>>2]=0;c[f+48>>2]=c[j>>2];n=c[l>>2]|0;c[f+52>>2]=n;c[f+56>>2]=0;a[f+61>>0]=a[d+16>>0]|0;a[f+60>>0]=0;c[f+64>>2]=c[d+4>>2];o=f+16|0;c[o+0>>2]=0;c[o+4>>2]=0;c[o+8>>2]=0;c[o+12>>2]=0;c[o+16>>2]=0;c[o+20>>2]=0;c[o+24>>2]=0;c[o+28>>2]=0;c[f>>2]=15448;o=d+20|0;if(((g[k>>2]=+g[o>>2],c[k>>2]|0)&2139095040|0)==2139095040)Aa(15496,15520,34,15576);if(((g[k>>2]=+g[d+24>>2],c[k>>2]|0)&2139095040|0)==2139095040)Aa(15496,15520,34,15576);m=d+28|0;L=+g[m>>2];if(((g[k>>2]=L,c[k>>2]|0)&2139095040|0)==2139095040|!(L>=0.0))Aa(15592,15520,35,15576);l=d+32|0;L=+g[l>>2];if(((g[k>>2]=L,c[k>>2]|0)&2139095040|0)==2139095040|!(L>=0.0))Aa(15648,15520,36,15576);j=d+36|0;L=+g[j>>2];if(((g[k>>2]=L,c[k>>2]|0)&2139095040|0)==2139095040|!(L>=0.0))Aa(15704,15520,37,15576);else{h=o;K=c[h>>2]|0;h=c[h+4>>2]|0;B=f+76|0;c[B>>2]=K;c[B+4>>2]=h;I=(c[k>>2]=K,+g[k>>2])- +g[n+12>>2];H=(c[k>>2]=h,+g[k>>2])- +g[n+16>>2];G=+g[n+24>>2];L=+g[n+20>>2];J=+(I*G+H*L);L=+(G*H-I*L);h=f+68|0;g[h>>2]=J;g[h+4>>2]=L;g[f+104>>2]=+g[m>>2];g[f+96>>2]=0.0;g[f+100>>2]=0.0;g[f+84>>2]=+g[l>>2];g[f+88>>2]=+g[j>>2];g[f+92>>2]=0.0;g[f+108>>2]=0.0;h=f;break}}else h=0;while(0);f=h;break};case 10:{f=Hx(b,168)|0;do if(f){c[f>>2]=15304;j=d+8|0;h=d+12|0;if((c[j>>2]|0)==(c[h>>2]|0))Aa(15352,15232,185,15384);else{c[f+4>>2]=c[d>>2];c[f+8>>2]=0;c[f+12>>2]=0;c[f+48>>2]=c[j>>2];c[f+52>>2]=c[h>>2];c[f+56>>2]=0;a[f+61>>0]=a[d+16>>0]|0;a[f+60>>0]=0;c[f+64>>2]=c[d+4>>2];r=f+16|0;c[r+0>>2]=0;c[r+4>>2]=0;c[r+8>>2]=0;c[r+12>>2]=0;c[r+16>>2]=0;c[r+20>>2]=0;c[r+24>>2]=0;c[r+28>>2]=0;c[f>>2]=16960;r=d+20|0;K=c[r+4>>2]|0;B=f+68|0;c[B>>2]=c[r>>2];c[B+4>>2]=K;B=d+28|0;K=c[B+4>>2]|0;r=f+76|0;c[r>>2]=c[B>>2];c[r+4>>2]=K;g[f+84>>2]=+g[d+36>>2];g[f+160>>2]=0.0;g[f+92>>2]=0.0;c[f+164>>2]=0;g[f+88>>2]=0.0;r=f;break}}else r=0;while(0);f=r;break};case 11:{f=Hx(b,192)|0;do if(f){c[f>>2]=15304;j=d+8|0;h=d+12|0;if((c[j>>2]|0)==(c[h>>2]|0))Aa(15352,15232,185,15384);else{c[f+4>>2]=c[d>>2];c[f+8>>2]=0;c[f+12>>2]=0;c[f+48>>2]=c[j>>2];c[f+52>>2]=c[h>>2];c[f+56>>2]=0;a[f+61>>0]=a[d+16>>0]|0;a[f+60>>0]=0;c[f+64>>2]=c[d+4>>2];B=f+16|0;c[B+0>>2]=0;c[B+4>>2]=0;c[B+8>>2]=0;c[B+12>>2]=0;c[B+16>>2]=0;c[B+20>>2]=0;c[B+24>>2]=0;c[B+28>>2]=0;c[f>>2]=4792;B=d+20|0;K=c[B+4>>2]|0;o=f+68|0;c[o>>2]=c[B>>2];c[o+4>>2]=K;g[f+76>>2]=+g[d+28>>2];g[f+80>>2]=0.0;g[f+84>>2]=0.0;g[f+88>>2]=0.0;g[f+92>>2]=+g[d+32>>2];g[f+96>>2]=+g[d+36>>2];g[f+100>>2]=+g[d+40>>2];o=f;break}}else o=0;while(0);f=o;break};default:Aa(15224,15232,121,15280)}while(0);c[f+8>>2]=0;j=b+102956|0;c[f+12>>2]=c[j>>2];h=c[j>>2]|0;if(h)c[h+8>>2]=f;c[j>>2]=f;j=b+102964|0;c[j>>2]=(c[j>>2]|0)+1;j=f+16|0;c[f+20>>2]=f;b=f+52|0;c[j>>2]=c[b>>2];c[f+24>>2]=0;h=f+48|0;m=c[h>>2]|0;l=m+108|0;c[f+28>>2]=c[l>>2];l=c[l>>2]|0;if(l){c[l+8>>2]=j;m=c[h>>2]|0}c[m+108>>2]=j;j=f+32|0;c[f+36>>2]=f;c[j>>2]=c[h>>2];c[f+40>>2]=0;l=c[b>>2]|0;h=l+108|0;c[f+44>>2]=c[h>>2];h=c[h>>2]|0;if(h){c[h+8>>2]=j;l=c[b>>2]|0}c[l+108>>2]=j;b=c[d+8>>2]|0;if(a[d+16>>0]|0){i=e;return f|0}d=c[(c[d+12>>2]|0)+112>>2]|0;if(!d){i=e;return f|0}do{if((c[d>>2]|0)==(b|0)){K=(c[d+4>>2]|0)+4|0;c[K>>2]=c[K>>2]|8}d=c[d+12>>2]|0}while((d|0)!=0);i=e;return f|0}function Gh(a,b){a=a|0;b=b|0;var c=0;c=i;ry(a,b);i=c;return}function Hh(a,b,c,d){a=a|0;b=+b;c=c|0;d=d|0;var e=0;e=i;uy(a,b,c,d);i=e;return}function Ih(a){a=a|0;var b=0;b=i;a=c[a+102952>>2]|0;if(!a){i=b;return}do{g[a+76>>2]=0.0;g[a+80>>2]=0.0;g[a+84>>2]=0.0;a=c[a+96>>2]|0}while((a|0)!=0);i=b;return}function Jh(a){a=a|0;var d=0,e=0,f=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0.0,W=0.0,X=0.0,Y=0.0;d=i;i=i+208|0;o=d+40|0;n=d+24|0;r=d+80|0;t=d+104|0;q=d+48|0;p=d+32|0;s=d;x=d+160|0;w=d+64|0;v=d+176|0;y=d+192|0;z=d+88|0;h=d+144|0;l=d+112|0;f=d+8|0;e=a+102984|0;j=c[e>>2]|0;if(!j){i=d;return}j=c[j+4>>2]|0;if((j&1|0)!=0?(P=c[a+102952>>2]|0,(P|0)!=0):0){O=x+4|0;A=x+8|0;B=x+12|0;F=y+4|0;G=y+8|0;H=y+12|0;I=z+4|0;J=z+8|0;K=z+12|0;L=w+4|0;M=w+8|0;N=w+12|0;C=v+4|0;D=v+8|0;E=v+12|0;do{Q=P+12|0;S=c[P+100>>2]|0;if(S){R=P+4|0;do{T=b[R>>1]|0;do if(T&32){U=c[P>>2]|0;if((U|0)==1){g[v>>2]=.5;g[C>>2]=.5;g[D>>2]=.8999999761581421;g[E>>2]=1.0;vy(a,c[S+12>>2]|0,Q,v);break}else if(U)if(!(T&2)){g[y>>2]=.6000000238418579;g[F>>2]=.6000000238418579;g[G>>2]=.6000000238418579;g[H>>2]=1.0;vy(a,c[S+12>>2]|0,Q,y);break}else{g[z>>2]=.8999999761581421;g[I>>2]=.699999988079071;g[J>>2]=.699999988079071;g[K>>2]=1.0;vy(a,c[S+12>>2]|0,Q,z);break}else{g[w>>2]=.5;g[L>>2]=.8999999761581421;g[M>>2]=.5;g[N>>2]=1.0;vy(a,c[S+12>>2]|0,Q,w);break}}else{g[x>>2]=.5;g[O>>2]=.5;g[A>>2]=.30000001192092896;g[B>>2]=1.0;vy(a,c[S+12>>2]|0,Q,x)}while(0);S=c[S+4>>2]|0}while((S|0)!=0)}P=c[P+96>>2]|0}while((P|0)!=0)}if((j&2|0)!=0?(u=c[a+102956>>2]|0,(u|0)!=0):0){v=q+4|0;w=q+8|0;x=q+12|0;do{T=(c[u+52>>2]|0)+12|0;S=(c[u+48>>2]|0)+12|0;y=c[S+4>>2]|0;U=o;c[U>>2]=c[S>>2];c[U+4>>2]=y;U=c[T+4>>2]|0;y=n;c[y>>2]=c[T>>2];c[y+4>>2]=U;lb[c[c[u>>2]>>2]&127](r,u);lb[c[(c[u>>2]|0)+4>>2]&127](t,u);g[q>>2]=.5;g[v>>2]=.800000011920929;g[w>>2]=.800000011920929;g[x>>2]=1.0;y=c[u+4>>2]|0;if((y|0)==3){U=c[e>>2]|0;vb[c[(c[U>>2]|0)+24>>2]&63](U,r,t,q)}else if((y|0)==4){U=u+68|0;T=c[U+4>>2]|0;S=p;c[S>>2]=c[U>>2];c[S+4>>2]=T;S=u+76|0;T=c[S+4>>2]|0;U=s;c[U>>2]=c[S>>2];c[U+4>>2]=T;U=c[e>>2]|0;vb[c[(c[U>>2]|0)+24>>2]&63](U,p,r,q);U=c[e>>2]|0;vb[c[(c[U>>2]|0)+24>>2]&63](U,s,t,q);U=c[e>>2]|0;vb[c[(c[U>>2]|0)+24>>2]&63](U,p,s,q)}else if((y|0)!=5){U=c[e>>2]|0;vb[c[(c[U>>2]|0)+24>>2]&63](U,o,r,q);U=c[e>>2]|0;vb[c[(c[U>>2]|0)+24>>2]&63](U,r,t,q);U=c[e>>2]|0;vb[c[(c[U>>2]|0)+24>>2]&63](U,n,t,q)}u=c[u+12>>2]|0}while((u|0)!=0)}if(j&8){n=a+102932|0;while(1){n=c[n>>2]|0;if(!n)break;else n=n+12|0}}a:do if((j&4|0)!=0?(g[h>>2]=.8999999761581421,g[h+4>>2]=.30000001192092896,g[h+8>>2]=.8999999761581421,g[h+12>>2]=1.0,m=c[a+102952>>2]|0,(m|0)!=0):0){o=a+102884|0;v=a+102876|0;n=l+4|0;u=l+8|0;t=l+12|0;s=l+16|0;r=l+20|0;q=l+24|0;p=l+28|0;b:while(1){if((b[m+4>>1]&32)!=0?(k=c[m+100>>2]|0,(k|0)!=0):0){A=k;do{z=A+28|0;if((c[z>>2]|0)>0){y=A+24|0;x=0;do{w=c[(c[y>>2]|0)+(x*28|0)+24>>2]|0;if((w|0)<=-1){h=37;break b}if((c[o>>2]|0)<=(w|0)){h=37;break b}U=c[v>>2]|0;W=+g[U+(w*36|0)>>2];Y=+g[U+(w*36|0)+4>>2];X=+g[U+(w*36|0)+8>>2];V=+g[U+(w*36|0)+12>>2];g[l>>2]=W;g[n>>2]=Y;g[u>>2]=X;g[t>>2]=Y;g[s>>2]=X;g[r>>2]=V;g[q>>2]=W;g[p>>2]=V;U=c[e>>2]|0;vb[c[(c[U>>2]|0)+8>>2]&63](U,l,4,h);x=x+1|0}while((x|0)<(c[z>>2]|0))}A=c[A+4>>2]|0}while((A|0)!=0)}m=c[m+96>>2]|0;if(!m)break a}if((h|0)==37)Aa(11792,11736,164,11856)}while(0);if(!(j&16)){i=d;return}a=c[a+102952>>2]|0;if(!a){i=d;return}do{S=a+12|0;c[f+0>>2]=c[S+0>>2];c[f+4>>2]=c[S+4>>2];c[f+8>>2]=c[S+8>>2];c[f+12>>2]=c[S+12>>2];S=a+44|0;T=c[S+4>>2]|0;U=f;c[U>>2]=c[S>>2];c[U+4>>2]=T;U=c[e>>2]|0;lb[c[(c[U>>2]|0)+28>>2]&127](U,f);a=c[a+96>>2]|0}while((a|0)!=0);i=d;return}function Kh(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0;j=i;i=i+1040|0;f=j;h=f+4|0;c[f>>2]=h;k=f+1028|0;c[k>>2]=0;l=f+1032|0;c[l>>2]=256;n=c[f>>2]|0;c[n+(c[k>>2]<<2)>>2]=c[a+102872>>2];u=c[k>>2]|0;s=u+1|0;c[k>>2]=s;do if((u|0)>-1){q=a+102876|0;p=d+4|0;o=d+8|0;n=d+12|0;a=a+102884|0;a:while(1){if((s|0)<=0){k=4;break}s=s+ -1|0;c[k>>2]=s;u=c[f>>2]|0;r=c[u+(s<<2)>>2]|0;do if((r|0)!=-1?(m=c[q>>2]|0,!((+g[d>>2]- +g[m+(r*36|0)+8>>2]>0.0?1:+g[p>>2]- +g[m+(r*36|0)+12>>2]>0.0)|+g[m+(r*36|0)>>2]- +g[o>>2]>0.0|+g[m+(r*36|0)+4>>2]- +g[n>>2]>0.0)):0){t=m+(r*36|0)+24|0;if((c[t>>2]|0)==-1){if((r|0)<=-1){k=11;break a}if((c[a>>2]|0)<=(r|0)){k=11;break a}if(!(tb[c[(c[b>>2]|0)+8>>2]&63](b,c[(c[m+(r*36|0)+16>>2]|0)+16>>2]|0)|0)){k=21;break a}s=c[k>>2]|0;break}if((s|0)==(c[l>>2]|0)?(c[l>>2]=s<<1,s=NB(s<<3)|0,c[f>>2]=s,SB(s|0,u|0,c[k>>2]<<2|0)|0,(u|0)!=(h|0)):0)OB(u);s=c[f>>2]|0;c[s+(c[k>>2]<<2)>>2]=c[t>>2];t=(c[k>>2]|0)+1|0;c[k>>2]=t;r=m+(r*36|0)+28|0;if((t|0)==(c[l>>2]|0)?(c[l>>2]=t<<1,u=NB(t<<3)|0,c[f>>2]=u,SB(u|0,s|0,c[k>>2]<<2|0)|0,(s|0)!=(h|0)):0)OB(s);c[(c[f>>2]|0)+(c[k>>2]<<2)>>2]=c[r>>2];s=(c[k>>2]|0)+1|0;c[k>>2]=s}while(0);if((s|0)<=0){k=21;break}}if((k|0)==4)Aa(9664,9680,67,9728);else if((k|0)==11)Aa(11792,11736,158,11840);else if((k|0)==21){e=c[f>>2]|0;break}}else e=n;while(0);if((e|0)==(h|0)){i=j;return}OB(e);c[f>>2]=0;i=j;return}function Lh(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,h=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*(m-r)*.5)>0.0)){W=p+(T*36|0)+24|0;if((c[W>>2]|0)!=-1){if((V|0)==(c[C>>2]|0)?(c[C>>2]=V<<1,V=NB(V<<3)|0,c[h>>2]=V,SB(V|0,U|0,c[D>>2]<<2|0)|0,(U|0)!=(y|0)):0)OB(U);U=c[h>>2]|0;c[U+(c[D>>2]<<2)>>2]=c[W>>2];V=(c[D>>2]|0)+1|0;c[D>>2]=V;T=p+(T*36|0)+28|0;if((V|0)==(c[C>>2]|0)?(c[C>>2]=V<<1,W=NB(V<<3)|0,c[h>>2]=W,SB(W|0,U|0,c[D>>2]<<2|0)|0,(U|0)!=(y|0)):0)OB(U);c[(c[h>>2]|0)+(c[D>>2]<<2)>>2]=c[T>>2];V=(c[D>>2]|0)+1|0;c[D>>2]=V;break}W=o;c[W>>2]=s;c[W+4>>2]=d;W=F;c[W>>2]=e;c[W+4>>2]=x;g[H>>2]=S;if((T|0)<=-1){j=21;break b}if((c[I>>2]|0)<=(T|0)){j=21;break b}W=c[p+(T*36|0)+16>>2]|0;T=c[W+16>>2]|0;V=c[T+12>>2]|0;if(ub[c[(c[V>>2]|0)+20>>2]&63](V,l,o,(c[T+8>>2]|0)+12|0,c[W+20>>2]|0)|0){X=+g[J>>2];Z=1.0-X;Y=Z*+g[K>>2]+X*+g[a>>2];g[j>>2]=+g[o>>2]*Z+X*+g[M>>2];g[N>>2]=Y;X=+kb[c[(c[b>>2]|0)+8>>2]&63](b,T,j,l,X)}else X=+g[H>>2];if(X==0.0)break a;if(X>0.0)break c;V=c[D>>2]|0}}while(0);if((V|0)<=0)break a}Q=w+u*X;R=t+v*X;V=c[D>>2]|0;if((V|0)<=0)break a;else{L=w R?t:R;Q=w>Q?w:Q;R=t>2]|0;if((j|0)==(y|0)){i=f;return}OB(j);c[h>>2]=0;i=f;return}function Mh(a){a=a|0;return c[a+102952>>2]|0}function Nh(a){a=a|0;return c[a+102956>>2]|0}function Oh(a){a=a|0;return c[a+102932>>2]|0}function Ph(f,h){f=f|0;h=h|0;var j=0,k=0;j=i;k=f+102976|0;if((h&1|0)==(d[k>>0]|0|0)){i=j;return}a[k>>0]=h&1;if(h){i=j;return}f=c[f+102952>>2]|0;if(!f){i=j;return}do{k=f+4|0;h=e[k>>1]|0;if(!(h&2)){b[k>>1]=h|2;g[f+144>>2]=0.0}f=c[f+96>>2]|0}while((f|0)!=0);i=j;return}function Qh(b){b=b|0;return(a[b+102976>>0]|0)!=0|0}function Rh(b,c){b=b|0;c=c|0;a[b+102992>>0]=c&1;return}function Sh(b){b=b|0;return(a[b+102992>>0]|0)!=0|0}function Th(b,c){b=b|0;c=c|0;a[b+102993>>0]=c&1;return}function Uh(b){b=b|0;return(a[b+102993>>0]|0)!=0|0}function Vh(b,c){b=b|0;c=c|0;a[b+102994>>0]=c&1;return}function Wh(b){b=b|0;return(a[b+102994>>0]|0)!=0|0}function Xh(a){a=a|0;return c[a+102900>>2]|0}function Yh(a){a=a|0;return c[a+102960>>2]|0}function Zh(a){a=a|0;return c[a+102964>>2]|0}function _h(a){a=a|0;return c[a+102936>>2]|0}function $h(a){a=a|0;var b=0,d=0;b=i;d=c[a+102872>>2]|0;if((d|0)==-1){d=0;i=b;return d|0}d=c[(c[a+102876>>2]|0)+(d*36|0)+32>>2]|0;i=b;return d|0}function ai(a){a=a|0;var b=0,d=0,e=0,f=0,g=0;b=i;d=c[a+102884>>2]|0;if((d|0)<=0){g=0;i=b;return g|0}a=c[a+102876>>2]|0;e=0;f=0;while(1){if((c[a+(e*36|0)+32>>2]|0)>=2){g=c[a+(e*36|0)+24>>2]|0;if((g|0)==-1){d=5;break}g=(c[a+((c[a+(e*36|0)+28>>2]|0)*36|0)+32>>2]|0)-(c[a+(g*36|0)+32>>2]|0)|0;g=(g|0)>0?g:0-g|0;f=(f|0)>(g|0)?f:g}e=e+1|0;if((e|0)>=(d|0)){d=8;break}}if((d|0)==5)Aa(6152,5624,683,6176);else if((d|0)==8){i=b;return f|0}return 0}function bi(a){a=a|0;var b=0,d=0.0,e=0,f=0,h=0.0;b=i;f=c[a+102872>>2]|0;if((f|0)==-1){h=0.0;i=b;return+h}e=c[a+102876>>2]|0;d=(+g[e+(f*36|0)+8>>2]- +g[e+(f*36|0)>>2]+(+g[e+(f*36|0)+12>>2]- +g[e+(f*36|0)+4>>2]))*2.0;a=c[a+102884>>2]|0;if((a|0)>0){f=0;h=0.0;do{if((c[e+(f*36|0)+32>>2]|0)>=0)h=h+(+g[e+(f*36|0)+8>>2]- +g[e+(f*36|0)>>2]+(+g[e+(f*36|0)+12>>2]- +g[e+(f*36|0)+4>>2]))*2.0;f=f+1|0}while((f|0)<(a|0))}else h=0.0;h=h/d;i=b;return+h}function ci(a,b){a=a|0;b=b|0;var d=0,e=0;e=b;d=c[e+4>>2]|0;b=a+102968|0;c[b>>2]=c[e>>2];c[b+4>>2]=d;return}function di(b){b=b|0;var d=0,e=0,f=0;d=i;if((a[280]|0)==0?(wa(280)|0)!=0:0)Da(280);f=b+102968|0;e=c[f+4>>2]|0;b=272;c[b>>2]=c[f>>2];c[b+4>>2]=e;i=d;return 272}function ei(a){a=a|0;return(c[a+102868>>2]&2|0)!=0|0}function fi(a,b){a=a|0;b=b|0;var d=0;a=a+102868|0;d=c[a>>2]|0;c[a>>2]=b?d|4:d&-5;return}function gi(a){a=a|0;return(c[a+102868>>2]&4|0)!=0|0}function hi(a){a=a|0;return a+102996|0}function ii(a){a=a|0;var b=0,d=0,e=0,f=0,j=0.0;d=i;i=i+16|0;b=d;if(c[a+102868>>2]&2){i=d;return}j=+g[a+102972>>2];h[k>>3]=+g[a+102968>>2];c[b>>2]=c[k>>2];c[b+4>>2]=c[k+4>>2];e=b+8|0;h[k>>3]=j;c[e>>2]=c[k>>2];c[e+4>>2]=c[k+4>>2];Nx(11416,b);Nx(11448,b);c[b>>2]=c[a+102960>>2];Nx(11480,b);c[b>>2]=c[a+102964>>2];Nx(11544,b);e=c[a+102952>>2]|0;if(e){f=0;while(1){c[e+8>>2]=f;Ux(e);e=c[e+96>>2]|0;if(!e)break;else f=f+1|0}}a=a+102956|0;f=c[a>>2]|0;if(f){e=0;while(1){c[f+56>>2]=e;f=c[f+12>>2]|0;if(!f)break;else e=e+1|0}e=c[a>>2]|0;if(e){do{if((c[e+4>>2]|0)!=6){Nx(11608,b);jb[c[(c[e>>2]|0)+16>>2]&127](e);Nx(11616,b)}e=c[e+12>>2]|0}while((e|0)!=0);a=c[a>>2]|0;if(a)do{if((c[a+4>>2]|0)==6){Nx(11608,b);jb[c[(c[a>>2]|0)+16>>2]&127](a);Nx(11616,b)}a=c[a+12>>2]|0}while((a|0)!=0)}}Nx(11624,b);Nx(11648,b);Nx(11672,b);Nx(11688,b);i=d;return}function ji(a){a=a|0;var b=0,d=0,e=0,f=0;b=i;if(!a){i=b;return}d=c[a+102952>>2]|0;if(d)do{e=d;d=c[d+96>>2]|0;e=c[e+100>>2]|0;while(1){if(!e)break;f=c[e+4>>2]|0;c[e+28>>2]=0;jy(e,a);e=f}}while((d|0)!=0);OB(c[a+102904>>2]|0);OB(c[a+102916>>2]|0);OB(c[a+102876>>2]|0);if(c[a+102468>>2]|0)Aa(8376,8392,32,8440);if(c[a+102864>>2]|0)Aa(8464,8392,33,8440);d=a+4|0;f=c[a>>2]|0;if((c[d>>2]|0)>0){e=0;do{OB(c[f+(e<<3)+4>>2]|0);e=e+1|0;f=c[a>>2]|0}while((e|0)<(c[d>>2]|0))}OB(f);OB(a);i=b;return}function ki(a){a=a|0;return a+68|0}function li(a){a=a|0;return a+76|0}function mi(a){a=a|0;return a+84|0}function ni(a){a=a|0;return+(+g[a+100>>2])}function oi(a){a=a|0;var b=0.0,d=0.0,e=0.0,f=0.0,h=0,i=0.0,j=0.0,k=0,l=0.0,m=0.0,n=0.0,o=0.0;h=c[a+48>>2]|0;d=+g[h+24>>2];j=+g[a+68>>2];f=+g[h+20>>2];i=+g[a+72>>2];k=c[a+52>>2]|0;m=+g[k+24>>2];o=+g[a+76>>2];n=+g[k+20>>2];l=+g[a+80>>2];e=+g[a+84>>2];b=+g[a+88>>2];return+((+g[k+12>>2]+(m*o-n*l)-(+g[h+12>>2]+(d*j-f*i)))*(d*e-f*b)+(o*n+m*l+ +g[k+16>>2]-(j*f+d*i+ +g[h+16>>2]))*(f*e+d*b))}function pi(a){a=a|0;var b=0.0,d=0,e=0.0,f=0.0,h=0.0,j=0.0,k=0.0,l=0.0,m=0.0,n=0.0,o=0.0,p=0.0,q=0,r=0;d=i;q=c[a+48>>2]|0;r=c[a+52>>2]|0;o=+g[a+68>>2]- +g[q+28>>2];f=+g[a+72>>2]- +g[q+32>>2];l=+g[q+24>>2];n=+g[q+20>>2];e=o*l-f*n;o=l*f+o*n;f=+g[a+76>>2]- +g[r+28>>2];k=+g[a+80>>2]- +g[r+32>>2];p=+g[r+24>>2];m=+g[r+20>>2];j=f*p-k*m;m=p*k+f*m;f=+g[a+84>>2];k=+g[a+88>>2];p=l*f-n*k;k=n*f+l*k;a=q+64|0;l=+g[a>>2];f=+g[a+4>>2];a=r+64|0;n=+g[a>>2];b=+g[q+72>>2];h=+g[r+72>>2];b=(m+ +g[r+48>>2]-(o+ +g[q+48>>2]))*p*b-(j+ +g[r+44>>2]-(e+ +g[q+44>>2]))*k*b+(p*(o*b+(n-m*h-l))+k*(+g[a+4>>2]+j*h-f-e*b));i=d;return+b}function qi(b){b=b|0;return(a[b+136>>0]|0)!=0|0}function ri(f,h){f=f|0;h=h|0;var j=0,k=0,l=0,m=0,n=0;j=i;k=f+136|0;if((h&1|0)==(d[k>>0]|0|0)){i=j;return}l=c[f+48>>2]|0;m=l+4|0;n=e[m>>1]|0;if(!(n&2)){b[m>>1]=n|2;g[l+144>>2]=0.0}l=c[f+52>>2]|0;m=l+4|0;n=e[m>>1]|0;if(!(n&2)){b[m>>1]=n|2;g[l+144>>2]=0.0}a[k>>0]=h&1;g[f+112>>2]=0.0;i=j;return}function si(a){a=a|0;return+(+g[a+120>>2])}function ti(a){a=a|0;return+(+g[a+124>>2])}function ui(a,d,f){a=a|0;d=+d;f=+f;var h=0,j=0,k=0,l=0,m=0;j=i;if(!(d<=f))Aa(16696,15960,567,16768);h=a+120|0;if(!(+g[h>>2]!=d)?!(+g[a+124>>2]!=f):0){i=j;return}m=c[a+48>>2]|0;k=m+4|0;l=e[k>>1]|0;if(!(l&2)){b[k>>1]=l|2;g[m+144>>2]=0.0}l=c[a+52>>2]|0;m=l+4|0;k=e[m>>1]|0;if(!(k&2)){b[m>>1]=k|2;g[l+144>>2]=0.0}g[h>>2]=d;g[a+124>>2]=f;g[a+112>>2]=0.0;i=j;return}function vi(b){b=b|0;return(a[b+137>>0]|0)!=0|0}function wi(d,f){d=d|0;f=f|0;var h=0,j=0,k=0,l=0;h=i;j=c[d+48>>2]|0;k=j+4|0;l=e[k>>1]|0;if(!(l&2)){b[k>>1]=l|2;g[j+144>>2]=0.0}l=c[d+52>>2]|0;k=l+4|0;j=e[k>>1]|0;if(j&2){l=d+137|0;k=f&1;a[l>>0]=k;i=h;return}b[k>>1]=j|2;g[l+144>>2]=0.0;l=d+137|0;k=f&1;a[l>>0]=k;i=h;return}function xi(a,d){a=a|0;d=+d;var f=0,h=0,j=0,k=0;f=i;h=c[a+48>>2]|0;j=h+4|0;k=e[j>>1]|0;if(!(k&2)){b[j>>1]=k|2;g[h+144>>2]=0.0}k=c[a+52>>2]|0;j=k+4|0;h=e[j>>1]|0;if(h&2){k=a+132|0;g[k>>2]=d;i=f;return}b[j>>1]=h|2;g[k+144>>2]=0.0;k=a+132|0;g[k>>2]=d;i=f;return}function yi(a){a=a|0;return+(+g[a+132>>2])}function zi(a,d){a=a|0;d=+d;var f=0,h=0,j=0,k=0;f=i;h=c[a+48>>2]|0;j=h+4|0;k=e[j>>1]|0;if(!(k&2)){b[j>>1]=k|2;g[h+144>>2]=0.0}k=c[a+52>>2]|0;j=k+4|0;h=e[j>>1]|0;if(h&2){k=a+128|0;g[k>>2]=d;i=f;return}b[j>>1]=h|2;g[k+144>>2]=0.0;k=a+128|0;g[k>>2]=d;i=f;return}function Ai(a){a=a|0;return+(+g[a+128>>2])}function Bi(a,b){a=a|0;b=+b;return+(+g[a+116>>2]*b)}function Ci(a){a=a|0;return c[a+4>>2]|0}function Di(a){a=a|0;return c[a+48>>2]|0}function Ei(a){a=a|0;return c[a+52>>2]|0}function Fi(b){b=b|0;var d=0,e=0,f=0;e=i;i=i+16|0;d=e;if((a[296]|0)==0?(wa(296)|0)!=0:0)Da(296);lb[c[c[b>>2]>>2]&127](d,b);f=d;b=c[f+4>>2]|0;d=288;c[d>>2]=c[f>>2];c[d+4>>2]=b;i=e;return 288}function Gi(b){b=b|0;var d=0,e=0,f=0;e=i;i=i+16|0;d=e;if((a[312]|0)==0?(wa(312)|0)!=0:0)Da(312);lb[c[(c[b>>2]|0)+4>>2]&127](d,b);f=d;b=c[f+4>>2]|0;d=304;c[d>>2]=c[f>>2];c[d+4>>2]=b;i=e;return 304}function Hi(b,d){b=b|0;d=+d;var e=0,f=0,g=0;f=i;i=i+16|0;e=f;if((a[328]|0)==0?(wa(328)|0)!=0:0)Da(328);rb[c[(c[b>>2]|0)+8>>2]&63](e,b,d);g=e;b=c[g+4>>2]|0;e=320;c[e>>2]=c[g>>2];c[e+4>>2]=b;i=f;return 320}function Ii(a,b){a=a|0;b=+b;var d=0;d=i;b=+ib[c[(c[a>>2]|0)+12>>2]&63](a,b);i=d;return+b}function Ji(a){a=a|0;return c[a+12>>2]|0}function Ki(a){a=a|0;return c[a+64>>2]|0}function Li(a,b){a=a|0;b=b|0;c[a+64>>2]=b;return}function Mi(a){a=a|0;var d=0;d=i;if(!(b[(c[a+48>>2]|0)+4>>1]&32)){a=0;i=d;return a|0}a=(b[(c[a+52>>2]|0)+4>>1]&32)!=0;i=d;return a|0}function Ni(b){b=b|0;return(a[b+61>>0]|0)!=0|0}function Oi(a){a=a|0;var b=0;b=i;if(!a){i=b;return}jb[c[(c[a>>2]|0)+28>>2]&127](a);i=b;return}function Pi(a){a=a|0;return a|0}function Qi(a,b){a=a|0;b=b|0;var d=0,e=0;e=b;d=c[e+4>>2]|0;b=a;c[b>>2]=c[e>>2];c[b+4>>2]=d;return}function Ri(a){a=a|0;return+(+g[a+8>>2])}function Si(a,b){a=a|0;b=+b;g[a+8>>2]=b;return}function Ti(a){a=a|0;var b=0;b=i;if(a)OB(a);i=b;return}function Ui(a){a=a|0;return a|0}function Vi(b,c){b=b|0;c=c|0;c=d[c>>0]|d[c+1>>0]<<8|d[c+2>>0]<<16|d[c+3>>0]<<24;a[b>>0]=c;a[b+1>>0]=c>>8;a[b+2>>0]=c>>16;a[b+3>>0]=c>>24;return}function Wi(a){a=a|0;return c[a>>2]|0}function Xi(a,b){a=a|0;b=b|0;c[a>>2]=b;return}function Yi(a){a=a|0;var b=0;b=i;if(a)OB(a);i=b;return}function Zi(a){a=a|0;var b=0;b=i;if(!a){i=b;return}jb[c[(c[a>>2]|0)+4>>2]&127](a);i=b;return}function _i(){var a=0,b=0,d=0;a=i;b=NB(4)|0;if(b){d=b;c[d>>2]=2688;i=a;return d|0}while(1){b=c[4582]|0;c[4582]=b+0;if(!b){b=4;break}qb[b&63]();d=NB(4)|0;if(d){b=5;break}}if((b|0)==4){d=cb(4)|0;c[d>>2]=18168;_a(d|0,18216,116)}else if((b|0)==5){c[d>>2]=2688;i=a;return d|0}return 0}function $i(a,b){a=a|0;b=b|0;var d=0;d=i;lb[c[(c[a>>2]|0)+8>>2]&127](a,b);i=d;return}function aj(a,b){a=a|0;b=b|0;var d=0;d=i;lb[c[(c[a>>2]|0)+12>>2]&127](a,b);i=d;return}function bj(a){a=a|0;var b=0;b=i;if(!a){i=b;return}jb[c[(c[a>>2]|0)+4>>2]&127](a);i=b;return}function cj(){var a=0,b=0,d=0;a=i;b=NB(16)|0;if(b){d=b;i=a;return d|0}while(1){b=c[4582]|0;c[4582]=b+0;if(!b){b=4;break}qb[b&63]();d=NB(16)|0;if(d){b=5;break}}if((b|0)==4){d=cb(4)|0;c[d>>2]=18168;_a(d|0,18216,116)}else if((b|0)==5){i=a;return d|0}return 0}function dj(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;d=i;e=NB(16)|0;a:do if(!e){while(1){e=c[4582]|0;c[4582]=e+0;if(!e)break;qb[e&63]();e=NB(16)|0;if(e)break a}e=cb(4)|0;c[e>>2]=18168;_a(e|0,18216,116)}while(0);g=a;a=c[g+4>>2]|0;f=e;c[f>>2]=c[g>>2];c[f+4>>2]=a;f=b;a=c[f+4>>2]|0;b=e+8|0;c[b>>2]=c[f>>2];c[b+4>>2]=a;i=d;return e|0}function ej(a,b,d,e){a=+a;b=+b;d=+d;e=+e;var f=0,h=0;f=i;h=NB(16)|0;a:do if(!h){while(1){h=c[4582]|0;c[4582]=h+0;if(!h)break;qb[h&63]();h=NB(16)|0;if(h)break a}h=cb(4)|0;c[h>>2]=18168;_a(h|0,18216,116)}while(0);g[h>>2]=a;g[h+4>>2]=d;g[h+8>>2]=b;g[h+12>>2]=e;i=f;return h|0}function fj(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;f=b;b=c[f+4>>2]|0;e=a;c[e>>2]=c[f>>2];c[e+4>>2]=b;e=d;d=c[e+4>>2]|0;b=a+8|0;c[b>>2]=c[e>>2];c[b+4>>2]=d;return}function gj(a){a=a|0;g[a>>2]=1.0;g[a+8>>2]=0.0;g[a+4>>2]=0.0;g[a+12>>2]=1.0;return}function hj(a){a=a|0;var b=0;b=i;c[a+0>>2]=0;c[a+4>>2]=0;c[a+8>>2]=0;c[a+12>>2]=0;i=b;return}function ij(b){b=b|0;var c=0,d=0.0,e=0.0,f=0.0,h=0.0,j=0.0,k=0.0;c=i;if((a[352]|0)==0?(wa(352)|0)!=0:0)Da(352);d=+g[b>>2];e=+g[b+8>>2];f=+g[b+4>>2];h=+g[b+12>>2];j=d*h-e*f;if(j!=0.0)j=1.0/j;k=-j;g[84]=h*j;g[85]=f*k;g[86]=e*k;g[87]=d*j;i=c;return 336}function jj(b,c){b=b|0;c=c|0;var d=0,e=0.0,f=0.0,h=0.0,j=0.0,k=0.0,l=0.0,m=0.0;d=i;if((a[368]|0)==0?(wa(368)|0)!=0:0)Da(368);f=+g[b>>2];h=+g[b+8>>2];e=+g[b+4>>2];j=+g[b+12>>2];k=f*j-h*e;if(k!=0.0)k=1.0/k;l=+g[c>>2];m=+g[c+4>>2];j=+(k*(j*l-h*m));k=+(k*(f*m-e*l));b=360;g[b>>2]=j;g[b+4>>2]=k;i=d;return 360}function kj(a){a=a|0;return a|0}function lj(a,b){a=a|0;b=b|0;var d=0,e=0;e=b;d=c[e+4>>2]|0;b=a;c[b>>2]=c[e>>2];c[b+4>>2]=d;return}function mj(a){a=a|0;return a+8|0}function nj(a,b){a=a|0;b=b|0;var d=0,e=0;e=b;d=c[e+4>>2]|0;b=a+8|0;c[b>>2]=c[e>>2];c[b+4>>2]=d;return}function oj(a){a=a|0;var b=0;b=i;if(a)OB(a);i=b;return}function pj(){var b=0,d=0,e=0,f=0;b=i;d=NB(64)|0;a:do if(!d){while(1){d=c[4582]|0;c[4582]=d+0;if(!d)break;qb[d&63]();d=NB(64)|0;if(d)break a}d=cb(4)|0;c[d>>2]=18168;_a(d|0,18216,116)}while(0);c[d+0>>2]=0;c[d+4>>2]=0;c[d+8>>2]=0;c[d+12>>2]=0;a[d+16>>0]=0;c[d>>2]=7;f=d+20|0;e=d+36|0;c[f+0>>2]=0;c[f+4>>2]=0;c[f+8>>2]=0;c[f+12>>2]=0;g[e>>2]=1.0;g[d+40>>2]=0.0;a[d+44>>0]=0;g[d+48>>2]=0.0;g[d+52>>2]=0.0;g[d+56>>2]=2.0;g[d+60>>2]=.699999988079071;i=b;return d|0}function qj(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var h=0,j=0.0,k=0.0,l=0.0,m=0.0,n=0.0,o=0,p=0,q=0;h=i;c[a+8>>2]=b;c[a+12>>2]=d;k=+g[e>>2]- +g[b+12>>2];p=e+4|0;n=+g[p>>2]- +g[b+16>>2];o=b+24|0;l=+g[o>>2];b=b+20|0;j=+g[b>>2];m=+(k*l+n*j);j=+(l*n-k*j);q=a+20|0;g[q>>2]=m;g[q+4>>2]=j;j=+g[e>>2]- +g[d+12>>2];m=+g[p>>2]- +g[d+16>>2];k=+g[d+24>>2];n=+g[d+20>>2];l=+(j*k+m*n);n=+(k*m-j*n);e=a+28|0;g[e>>2]=l;g[e+4>>2]=n;n=+g[o>>2];l=+g[f>>2];j=+g[b>>2];m=+g[f+4>>2];k=+(n*l+j*m);j=+(n*m-l*j);b=a+36|0;g[b>>2]=k;g[b+4>>2]=j;i=h;return}function rj(a){a=a|0;return a+20|0}function sj(a,b){a=a|0;b=b|0;var d=0,e=0;e=b;d=c[e+4>>2]|0;b=a+20|0;c[b>>2]=c[e>>2];c[b+4>>2]=d;return}function tj(a){a=a|0;return a+28|0}function uj(a,b){a=a|0;b=b|0;var d=0,e=0;e=b;d=c[e+4>>2]|0;b=a+28|0;c[b>>2]=c[e>>2];c[b+4>>2]=d;return}function vj(a){a=a|0;return a+36|0}function wj(a,b){a=a|0;b=b|0;var d=0,e=0;e=b;d=c[e+4>>2]|0;b=a+36|0;c[b>>2]=c[e>>2];c[b+4>>2]=d;return}function xj(b){b=b|0;return(a[b+44>>0]|0)!=0|0}function yj(b,c){b=b|0;c=c|0;a[b+44>>0]=c&1;return}function zj(a){a=a|0;return+(+g[a+48>>2])}function Aj(a,b){a=a|0;b=+b;g[a+48>>2]=b;return}function Bj(a){a=a|0;return+(+g[a+52>>2])}function Cj(a,b){a=a|0;b=+b;g[a+52>>2]=b;return}function Dj(a){a=a|0;return+(+g[a+56>>2])}function Ej(a,b){a=a|0;b=+b;g[a+56>>2]=b;return}function Fj(a){a=a|0;return+(+g[a+60>>2])}function Gj(a,b){a=a|0;b=+b;g[a+60>>2]=b;return}function Hj(a){a=a|0;return c[a>>2]|0}function Ij(a,b){a=a|0;b=b|0;c[a>>2]=b;return}function Jj(a){a=a|0;return c[a+4>>2]|0}function Kj(a,b){a=a|0;b=b|0;c[a+4>>2]=b;return}function Lj(a){a=a|0;return c[a+8>>2]|0}function Mj(a,b){a=a|0;b=b|0;c[a+8>>2]=b;return}function Nj(a){a=a|0;return c[a+12>>2]|0}function Oj(a,b){a=a|0;b=b|0;c[a+12>>2]=b;return}function Pj(b){b=b|0;return(a[b+16>>0]|0)!=0|0}function Qj(b,c){b=b|0;c=c|0;a[b+16>>0]=c&1;return}function Rj(a){a=a|0;var b=0;b=i;if(a)OB(a);i=b;return}function Sj(){var a=0,b=0,d=0;a=i;b=NB(20)|0;a:do if(!b){while(1){b=c[4582]|0;c[4582]=b+0;if(!b)break;qb[b&63]();b=NB(20)|0;if(b)break a}b=cb(4)|0;c[b>>2]=18168;_a(b|0,18216,116)}while(0);c[b>>2]=6936;d=b+4|0;c[d+0>>2]=0;c[d+4>>2]=0;c[d+8>>2]=0;c[d+12>>2]=0;i=a;return b|0}function Tj(a){a=a|0;return c[a+4>>2]|0}function Uj(a){a=a|0;var b=0;b=i;a=nb[c[(c[a>>2]|0)+12>>2]&63](a)|0;i=b;return a|0}function Vj(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;e=i;a=gb[c[(c[a>>2]|0)+16>>2]&63](a,b,d)|0;i=e;return a|0}function Wj(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0;g=i;a=ub[c[(c[a>>2]|0)+20>>2]&63](a,b,d,e,f)|0;i=g;return a|0}function Xj(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0;f=i;vb[c[(c[a>>2]|0)+24>>2]&63](a,b,d,e);i=f;return}function Yj(a,b,d){a=a|0;b=b|0;d=+d;var e=0;e=i;rb[c[(c[a>>2]|0)+28>>2]&63](a,b,d);i=e;return}function Zj(a){a=a|0;return a+12|0}function _j(a,b){a=a|0;b=b|0;var d=0,e=0;e=b;d=c[e+4>>2]|0;b=a+12|0;c[b>>2]=c[e>>2];c[b+4>>2]=d;return}function $j(a){a=a|0;return c[a+4>>2]|0}function ak(a,b){a=a|0;b=b|0;c[a+4>>2]=b;return}function bk(a){a=a|0;return+(+g[a+8>>2])}function ck(a,b){a=a|0;b=+b;g[a+8>>2]=b;return}function dk(a){a=a|0;var b=0;b=i;if(!a){i=b;return}jb[c[(c[a>>2]|0)+4>>2]&127](a);i=b;return}function ek(){var b=0,d=0,e=0;b=i;d=NB(48)|0;a:do if(!d){while(1){d=c[4582]|0;c[4582]=d+0;if(!d)break;qb[d&63]();d=NB(48)|0;if(d)break a}d=cb(4)|0;c[d>>2]=18168;_a(d|0,18216,116)}while(0);c[d+0>>2]=0;c[d+4>>2]=0;c[d+8>>2]=0;c[d+12>>2]=0;a[d+16>>0]=0;c[d>>2]=8;e=d+20|0;c[e+0>>2]=0;c[e+4>>2]=0;c[e+8>>2]=0;c[e+12>>2]=0;c[e+16>>2]=0;c[e+20>>2]=0;c[e+24>>2]=0;i=b;return d|0}function fk(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,h=0.0,j=0.0,k=0.0,l=0.0,m=0.0,n=0,o=0;f=i;c[a+8>>2]=b;c[a+12>>2]=d;m=+g[e>>2]- +g[b+12>>2];n=e+4|0;h=+g[n>>2]- +g[b+16>>2];j=+g[b+24>>2];k=+g[b+20>>2];l=+(m*j+h*k);k=+(j*h-m*k);o=a+20|0;g[o>>2]=l;g[o+4>>2]=k;k=+g[e>>2]- +g[d+12>>2];l=+g[n>>2]- +g[d+16>>2];m=+g[d+24>>2];h=+g[d+20>>2];j=+(k*m+l*h);h=+(m*l-k*h);e=a+28|0;g[e>>2]=j;g[e+4>>2]=h;g[a+36>>2]=+g[d+56>>2]- +g[b+56>>2];i=f;return}function gk(a){a=a|0;return a+20|0}function hk(a,b){a=a|0;b=b|0;var d=0,e=0;e=b;d=c[e+4>>2]|0;b=a+20|0;c[b>>2]=c[e>>2];c[b+4>>2]=d;return}function ik(a){a=a|0;return a+28|0}function jk(a,b){a=a|0;b=b|0;var d=0,e=0;e=b;d=c[e+4>>2]|0;b=a+28|0;c[b>>2]=c[e>>2];c[b+4>>2]=d;return}function kk(a){a=a|0;return+(+g[a+36>>2])}function lk(a,b){a=a|0;b=+b;g[a+36>>2]=b;return}function mk(a){a=a|0;return+(+g[a+40>>2])}function nk(a,b){a=a|0;b=+b;g[a+40>>2]=b;return}function ok(a){a=a|0;return+(+g[a+44>>2])}function pk(a,b){a=a|0;b=+b;g[a+44>>2]=b;return}function qk(a){a=a|0;return c[a>>2]|0}function rk(a,b){a=a|0;b=b|0;c[a>>2]=b;return}function sk(a){a=a|0;return c[a+4>>2]|0}function tk(a,b){a=a|0;b=b|0;c[a+4>>2]=b;return}function uk(a){a=a|0;return c[a+8>>2]|0}function vk(a,b){a=a|0;b=b|0;c[a+8>>2]=b;return}function wk(a){a=a|0;return c[a+12>>2]|0}function xk(a,b){a=a|0;b=b|0;c[a+12>>2]=b;return}function yk(b){b=b|0;return(a[b+16>>0]|0)!=0|0}function zk(b,c){b=b|0;c=c|0;a[b+16>>0]=c&1;return}function Ak(a){a=a|0;var b=0;b=i;if(a)OB(a);i=b;return}function Bk(a,b){a=a|0;b=b|0;c[a+4>>2]=b;return}function Ck(a){a=a|0;return c[a+4>>2]|0}function Dk(a,b){a=a|0;b=b|0;a=a+4|0;c[a>>2]=c[a>>2]|b;return}function Ek(a,b){a=a|0;b=b|0;a=a+4|0;c[a>>2]=c[a>>2]&~b;return}function Fk(a){a=a|0;var b=0;b=i;if(!a){i=b;return}jb[c[(c[a>>2]|0)+4>>2]&127](a);i=b;return}function Gk(){var a=0,b=0;a=i;b=NB(16)|0;a:do if(!b){while(1){b=c[4582]|0;c[4582]=b+0;if(!b)break;qb[b&63]();b=NB(16)|0;if(b)break a}b=cb(4)|0;c[b>>2]=18168;_a(b|0,18216,116)}while(0);c[b+0>>2]=0;c[b+4>>2]=0;c[b+8>>2]=0;c[b+12>>2]=0;i=a;return b|0}function Hk(a){a=a|0;return+(+g[a>>2])}function Ik(a,b){a=a|0;b=+b;g[a>>2]=b;return}function Jk(a){a=a|0;return a+4|0}function Kk(a,b){a=a|0;b=b|0;var d=0,e=0;e=b;d=c[e+4>>2]|0;b=a+4|0;c[b>>2]=c[e>>2];c[b+4>>2]=d;return}function Lk(a){a=a|0;return+(+g[a+12>>2])}function Mk(a,b){a=a|0;b=+b;g[a+12>>2]=b;return}function Nk(a){a=a|0;var b=0;b=i;if(a)OB(a);i=b;return}function Ok(a){a=a|0;return c[a+4>>2]|0}function Pk(a){a=a|0;return c[a+48>>2]|0}function Qk(a){a=a|0;return c[a+52>>2]|0}function Rk(b){b=b|0;var d=0,e=0,f=0;e=i;i=i+16|0;d=e;if((a[384]|0)==0?(wa(384)|0)!=0:0)Da(384);lb[c[c[b>>2]>>2]&127](d,b);f=d;b=c[f+4>>2]|0;d=376;c[d>>2]=c[f>>2];c[d+4>>2]=b;i=e;return 376}function Sk(b){b=b|0;var d=0,e=0,f=0;e=i;i=i+16|0;d=e;if((a[400]|0)==0?(wa(400)|0)!=0:0)Da(400);lb[c[(c[b>>2]|0)+4>>2]&127](d,b);f=d;b=c[f+4>>2]|0;d=392;c[d>>2]=c[f>>2];c[d+4>>2]=b;i=e;return 392}function Tk(b,d){b=b|0;d=+d;var e=0,f=0,g=0;f=i;i=i+16|0;e=f;if((a[416]|0)==0?(wa(416)|0)!=0:0)Da(416);rb[c[(c[b>>2]|0)+8>>2]&63](e,b,d);g=e;b=c[g+4>>2]|0;e=408;c[e>>2]=c[g>>2];c[e+4>>2]=b;i=f;return 408}function Uk(a,b){a=a|0;b=+b;var d=0;d=i;b=+ib[c[(c[a>>2]|0)+12>>2]&63](a,b);i=d;return+b}function Vk(a){a=a|0;return c[a+12>>2]|0}function Wk(a){a=a|0;return c[a+64>>2]|0}function Xk(a,b){a=a|0;b=b|0;c[a+64>>2]=b;return}function Yk(a){a=a|0;var d=0;d=i;if(!(b[(c[a+48>>2]|0)+4>>1]&32)){a=0;i=d;return a|0}a=(b[(c[a+52>>2]|0)+4>>1]&32)!=0;i=d;return a|0}function Zk(b){b=b|0;return(a[b+61>>0]|0)!=0|0}function _k(a){a=a|0;var b=0;b=i;jb[c[(c[a>>2]|0)+16>>2]&127](a);i=b;return}function $k(a){a=a|0;return c[a+68>>2]|0}function al(a){a=a|0;return c[a+72>>2]|0}function bl(a,b){a=a|0;b=+b;var d=0;d=i;if(((g[k>>2]=b,c[k>>2]|0)&2139095040|0)==2139095040)Aa(15064,14928,394,15088);else{g[a+152>>2]=b;i=d;return}}function cl(a){a=a|0;return+(+g[a+152>>2])}function dl(a){a=a|0;return c[a+4>>2]|0}function el(a){a=a|0;return c[a+48>>2]|0}function fl(a){a=a|0;return c[a+52>>2]|0}function gl(b){b=b|0;var d=0,e=0,f=0;e=i;i=i+16|0;d=e;if((a[432]|0)==0?(wa(432)|0)!=0:0)Da(432);lb[c[c[b>>2]>>2]&127](d,b);f=d;b=c[f+4>>2]|0;d=424;c[d>>2]=c[f>>2];c[d+4>>2]=b;i=e;return 424}function hl(b){b=b|0;var d=0,e=0,f=0;e=i;i=i+16|0;d=e;if((a[448]|0)==0?(wa(448)|0)!=0:0)Da(448);lb[c[(c[b>>2]|0)+4>>2]&127](d,b);f=d;b=c[f+4>>2]|0;d=440;c[d>>2]=c[f>>2];c[d+4>>2]=b;i=e;return 440}function il(b,d){b=b|0;d=+d;var e=0,f=0,g=0;f=i;i=i+16|0;e=f;if((a[464]|0)==0?(wa(464)|0)!=0:0)Da(464);rb[c[(c[b>>2]|0)+8>>2]&63](e,b,d);g=e;b=c[g+4>>2]|0;e=456;c[e>>2]=c[g>>2];c[e+4>>2]=b;i=f;return 456}function jl(a,b){a=a|0;b=+b;var d=0;d=i;b=+ib[c[(c[a>>2]|0)+12>>2]&63](a,b);i=d;return+b}function kl(a){a=a|0;return c[a+12>>2]|0}function ll(a){a=a|0;return c[a+64>>2]|0}function ml(a,b){a=a|0;b=b|0;c[a+64>>2]=b;return}function nl(a){a=a|0;var d=0;d=i;if(!(b[(c[a+48>>2]|0)+4>>1]&32)){a=0;i=d;return a|0}a=(b[(c[a+52>>2]|0)+4>>1]&32)!=0;i=d;return a|0}function ol(b){b=b|0;return(a[b+61>>0]|0)!=0|0}function pl(a){a=a|0;var b=0;b=i;if(!a){i=b;return}jb[c[(c[a>>2]|0)+28>>2]&127](a);i=b;return}function ql(a){a=a|0;var b=0;b=i;if(!a){i=b;return}jb[c[(c[a>>2]|0)+4>>2]&127](a);i=b;return}function rl(a){a=a|0;return a+80|0}function sl(a){a=a|0;return a+88|0}function tl(a,b){a=a|0;b=+b;g[a+68>>2]=b;return}function ul(a){a=a|0;return+(+g[a+68>>2])}function vl(a,b){a=a|0;b=+b;g[a+72>>2]=b;return}function wl(a){a=a|0;return+(+g[a+72>>2])}function xl(a){a=a|0;var b=0;b=i;jb[c[(c[a>>2]|0)+16>>2]&127](a);i=b;return}function yl(a){a=a|0;return c[a+4>>2]|0}function zl(a){a=a|0;return c[a+48>>2]|0}function Al(a){a=a|0;return c[a+52>>2]|0}function Bl(b){b=b|0;var d=0,e=0,f=0;e=i;i=i+16|0;d=e;if((a[480]|0)==0?(wa(480)|0)!=0:0)Da(480);lb[c[c[b>>2]>>2]&127](d,b);f=d;b=c[f+4>>2]|0;d=472;c[d>>2]=c[f>>2];c[d+4>>2]=b;i=e;return 472}function Cl(b){b=b|0;var d=0,e=0,f=0;e=i;i=i+16|0;d=e;if((a[496]|0)==0?(wa(496)|0)!=0:0)Da(496);lb[c[(c[b>>2]|0)+4>>2]&127](d,b);f=d;b=c[f+4>>2]|0;d=488;c[d>>2]=c[f>>2];c[d+4>>2]=b;i=e;return 488}function Dl(b,d){b=b|0;d=+d;var e=0,f=0,g=0;f=i;i=i+16|0;e=f;if((a[512]|0)==0?(wa(512)|0)!=0:0)Da(512);rb[c[(c[b>>2]|0)+8>>2]&63](e,b,d);g=e;b=c[g+4>>2]|0;e=504;c[e>>2]=c[g>>2];c[e+4>>2]=b;i=f;return 504}function El(a,b){a=a|0;b=+b;var d=0;d=i;b=+ib[c[(c[a>>2]|0)+12>>2]&63](a,b);i=d;return+b}function Fl(a){a=a|0;return c[a+12>>2]|0}function Gl(a){a=a|0;return c[a+64>>2]|0}function Hl(a,b){a=a|0;b=b|0;c[a+64>>2]=b;return}function Il(a){a=a|0;var d=0;d=i;if(!(b[(c[a+48>>2]|0)+4>>1]&32)){a=0;i=d;return a|0}a=(b[(c[a+52>>2]|0)+4>>1]&32)!=0;i=d;return a|0}function Jl(b){b=b|0;return(a[b+61>>0]|0)!=0|0}function Kl(a){a=a|0;var b=0;b=i;if(!a){i=b;return}jb[c[(c[a>>2]|0)+28>>2]&127](a);i=b;return}function Ll(){var a=0,b=0;a=i;b=NB(16)|0;a:do if(!b){while(1){b=c[4582]|0;c[4582]=b+0;if(!b)break;qb[b&63]();b=NB(16)|0;if(b)break a}b=cb(4)|0;c[b>>2]=18168;_a(b|0,18216,116)}while(0);c[b+0>>2]=0;c[b+4>>2]=0;c[b+8>>2]=0;c[b+12>>2]=0;i=a;return b|0}function Ml(a){a=a|0;return c[a>>2]|0}function Nl(a,b){a=a|0;b=b|0;c[a>>2]=b;return}function Ol(a){a=a|0;return c[a+4>>2]|0}function Pl(a,b){a=a|0;b=b|0;c[a+4>>2]=b;return}function Ql(a){a=a|0;return c[a+8>>2]|0}function Rl(a,b){a=a|0;b=b|0;c[a+8>>2]=b;return}function Sl(a){a=a|0;return c[a+12>>2]|0}function Tl(a,b){a=a|0;b=b|0;c[a+12>>2]=b;return}function Ul(a){a=a|0;var b=0;b=i;if(a)OB(a);i=b;return}function Vl(){var b=0,d=0;b=i;d=NB(64)|0;a:do if(!d){while(1){d=c[4582]|0;c[4582]=d+0;if(!d)break;qb[d&63]();d=NB(64)|0;if(d)break a}d=cb(4)|0;c[d>>2]=18168;_a(d|0,18216,116)}while(0);c[d+0>>2]=0;c[d+4>>2]=0;c[d+8>>2]=0;c[d+12>>2]=0;c[d>>2]=4;g[d+20>>2]=-1.0;g[d+24>>2]=1.0;g[d+28>>2]=1.0;g[d+32>>2]=1.0;g[d+36>>2]=-1.0;g[d+40>>2]=0.0;g[d+44>>2]=1.0;g[d+48>>2]=0.0;g[d+52>>2]=0.0;g[d+56>>2]=0.0;g[d+60>>2]=1.0;a[d+16>>0]=1;i=b;return d|0}function Wl(a,b,d,e,f,h,j,k){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;h=h|0;j=j|0;k=+k;var l=0,m=0.0,n=0.0,o=0,p=0.0,q=0.0,r=0.0,s=0,t=0;l=i;c[a+8>>2]=b;c[a+12>>2]=d;o=e;s=c[o+4>>2]|0;t=a+20|0;c[t>>2]=c[o>>2];c[t+4>>2]=s;t=f;s=c[t+4>>2]|0;o=a+28|0;c[o>>2]=c[t>>2];c[o+4>>2]=s;r=+g[h>>2]- +g[b+12>>2];o=h+4|0;m=+g[o>>2]- +g[b+16>>2];n=+g[b+24>>2];p=+g[b+20>>2];q=+(r*n+m*p);p=+(n*m-r*p);b=a+36|0;g[b>>2]=q;g[b+4>>2]=p;p=+g[j>>2]- +g[d+12>>2];b=j+4|0;q=+g[b>>2]- +g[d+16>>2];r=+g[d+24>>2];m=+g[d+20>>2];n=+(p*r+q*m);m=+(r*q-p*m);d=a+44|0;g[d>>2]=n;g[d+4>>2]=m;m=+g[h>>2]- +g[e>>2];n=+g[o>>2]- +g[e+4>>2];g[a+52>>2]=+O(+(m*m+n*n));n=+g[j>>2]- +g[f>>2];m=+g[b>>2]- +g[f+4>>2];g[a+56>>2]=+O(+(n*n+m*m));g[a+60>>2]=k;if(k>1.1920928955078125e-7){i=l;return}else Aa(16200,16232,51,16288)}function Xl(a){a=a|0;return a+20|0}function Yl(a,b){a=a|0;b=b|0;var d=0,e=0;e=b;d=c[e+4>>2]|0;b=a+20|0;c[b>>2]=c[e>>2];c[b+4>>2]=d;return}function Zl(a){a=a|0;return a+28|0}function _l(a,b){a=a|0;b=b|0;var d=0,e=0;e=b;d=c[e+4>>2]|0;b=a+28|0;c[b>>2]=c[e>>2];c[b+4>>2]=d;return}function $l(a){a=a|0;return a+36|0}function am(a,b){a=a|0;b=b|0;var d=0,e=0;e=b;d=c[e+4>>2]|0;b=a+36|0;c[b>>2]=c[e>>2];c[b+4>>2]=d;return}function bm(a){a=a|0;return a+44|0}function cm(a,b){a=a|0;b=b|0;var d=0,e=0;e=b;d=c[e+4>>2]|0;b=a+44|0;c[b>>2]=c[e>>2];c[b+4>>2]=d;return}function dm(a){a=a|0;return+(+g[a+52>>2])}function em(a,b){a=a|0;b=+b;g[a+52>>2]=b;return}function fm(a){a=a|0;return+(+g[a+56>>2])}function gm(a,b){a=a|0;b=+b;g[a+56>>2]=b;return}function hm(a){a=a|0;return+(+g[a+60>>2])}function im(a,b){a=a|0;b=+b;g[a+60>>2]=b;return}function jm(a){a=a|0;return c[a>>2]|0}function km(a,b){a=a|0;b=b|0;c[a>>2]=b;return}function lm(a){a=a|0;return c[a+4>>2]|0}function mm(a,b){a=a|0;b=b|0;c[a+4>>2]=b;return}function nm(a){a=a|0;return c[a+8>>2]|0}function om(a,b){a=a|0;b=b|0;c[a+8>>2]=b;return}function pm(a){a=a|0;return c[a+12>>2]|0}function qm(a,b){a=a|0;b=b|0;c[a+12>>2]=b;return}function rm(b){b=b|0;return(a[b+16>>0]|0)!=0|0}function sm(b,c){b=b|0;c=c|0;a[b+16>>0]=c&1;return}function tm(a){a=a|0;var b=0;b=i;if(a)OB(a);i=b;return}function um(a){a=a|0;var b=0;b=i;if(!a){i=b;return}jb[c[(c[a>>2]|0)+4>>2]&127](a);i=b;return}function vm(){var a=0,b=0;a=i;b=NB(20)|0;a:do if(!b){while(1){b=c[4582]|0;c[4582]=b+0;if(!b)break;qb[b&63]();b=NB(20)|0;if(b)break a}b=cb(4)|0;c[b>>2]=18168;_a(b|0,18216,116)}while(0);c[b+0>>2]=0;c[b+4>>2]=0;c[b+8>>2]=0;c[b+12>>2]=0;c[b+16>>2]=0;i=a;return b|0}function wm(a){a=a|0;return a|0}function xm(a,b){a=a|0;b=b|0;var d=0,e=0;e=b;d=c[e+4>>2]|0;b=a;c[b>>2]=c[e>>2];c[b+4>>2]=d;return}function ym(a){a=a|0;return+(+g[a+8>>2])}function zm(a,b){a=a|0;b=+b;g[a+8>>2]=b;return}function Am(a){a=a|0;return+(+g[a+12>>2])}function Bm(a,b){a=a|0;b=+b;g[a+12>>2]=b;return}function Cm(a){a=a|0;return a+16|0}function Dm(a,b){a=a|0;b=b|0;c[a+16>>2]=c[b>>2];return}function Em(a){a=a|0;var b=0;b=i;if(a)OB(a);i=b;return}function Fm(a){a=a|0;var b=0;b=i;if(!a){i=b;return}jb[c[(c[a>>2]|0)+4>>2]&127](a);i=b;return}function Gm(){var b=0,d=0;b=i;d=NB(20)|0;a:do if(!d){while(1){d=c[4582]|0;c[4582]=d+0;if(!d)break;qb[d&63]();d=NB(20)|0;if(d)break a}d=cb(4)|0;c[d>>2]=18168;_a(d|0,18216,116)}while(0);c[d+0>>2]=0;c[d+4>>2]=0;c[d+8>>2]=0;c[d+12>>2]=0;a[d+16>>0]=0;i=b;return d|0}function Hm(a){a=a|0;return c[a>>2]|0}function Im(a,b){a=a|0;b=b|0;c[a>>2]=b;return}function Jm(a){a=a|0;return c[a+4>>2]|0}function Km(a,b){a=a|0;b=b|0;c[a+4>>2]=b;return}function Lm(a){a=a|0;return c[a+8>>2]|0}function Mm(a,b){a=a|0;b=b|0;c[a+8>>2]=b;return}function Nm(a){a=a|0;return c[a+12>>2]|0}function Om(a,b){a=a|0;b=b|0;c[a+12>>2]=b;return}function Pm(b){b=b|0;return(a[b+16>>0]|0)!=0|0}function Qm(b,c){b=b|0;c=c|0;a[b+16>>0]=c&1;return}function Rm(a){a=a|0;var b=0;b=i;if(a)OB(a);i=b;return}function Sm(){var a=0,b=0,d=0;a=i;b=NB(16)|0;if(b){d=b;i=a;return d|0}while(1){b=c[4582]|0;c[4582]=b+0;if(!b){b=4;break}qb[b&63]();d=NB(16)|0;if(d){b=5;break}}if((b|0)==4){d=cb(4)|0;c[d>>2]=18168;_a(d|0,18216,116)}else if((b|0)==5){i=a;return d|0}return 0}function Tm(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;d=i;e=NB(16)|0;a:do if(!e){while(1){e=c[4582]|0;c[4582]=e+0;if(!e)break;qb[e&63]();e=NB(16)|0;if(e)break a}e=cb(4)|0;c[e>>2]=18168;_a(e|0,18216,116)}while(0);g=a;a=c[g+4>>2]|0;f=e;c[f>>2]=c[g>>2];c[f+4>>2]=a;f=b;a=c[f+4>>2]|0;b=e+8|0;c[b>>2]=c[f>>2];c[b+4>>2]=a;i=d;return e|0}function Um(a){a=a|0;g[a>>2]=0.0;g[a+4>>2]=0.0;g[a+8>>2]=0.0;g[a+12>>2]=1.0;return}function Vm(a,b,d){a=a|0;b=b|0;d=+d;var e=0,f=0;f=b;e=c[f+4>>2]|0;b=a;c[b>>2]=c[f>>2];c[b+4>>2]=e;g[a+8>>2]=+R(+d);g[a+12>>2]=+Q(+d);return}function Wm(a){a=a|0;return a|0}function Xm(a,b){a=a|0;b=b|0;var d=0,e=0;e=b;d=c[e+4>>2]|0;b=a;c[b>>2]=c[e>>2];c[b+4>>2]=d;return}function Ym(a){a=a|0;return a+8|0}function Zm(a,b){a=a|0;b=b|0;var d=0,e=0;e=b;d=c[e+4>>2]|0;b=a+8|0;c[b>>2]=c[e>>2];c[b+4>>2]=d;return}function _m(a){a=a|0;var b=0;b=i;if(a)OB(a);i=b;return}function $m(){var b=0,d=0;b=i;d=NB(40)|0;a:do if(!d){while(1){d=c[4582]|0;c[4582]=d+0;if(!d)break;qb[d&63]();d=NB(40)|0;if(d)break a}d=cb(4)|0;c[d>>2]=18168;_a(d|0,18216,116)}while(0);c[d>>2]=6488;c[d+4>>2]=3;g[d+8>>2]=.009999999776482582;c[d+12>>2]=0;c[d+16>>2]=0;a[d+36>>0]=0;a[d+37>>0]=0;i=b;return d|0}function an(a){a=a|0;var b=0,d=0;b=i;d=a+12|0;OB(c[d>>2]|0);c[d>>2]=0;c[a+16>>2]=0;i=b;return}function bn(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,h=0,j=0,l=0,m=0,n=0,o=0.0,p=0.0,q=0.0,r=0;h=i;f=b+12|0;if(c[f>>2]|0)Aa(6520,6560,38,6616);j=b+16|0;if(c[j>>2]|0)Aa(6520,6560,38,6616);if((e|0)<=2)Aa(7440,6560,39,6616);m=d;n=c[m>>2]|0;m=c[m+4>>2]|0;l=1;while(1){q=(c[k>>2]=n,+g[k>>2]);o=(c[k>>2]=m,+g[k>>2]);r=d+(l<<3)|0;n=c[r>>2]|0;m=c[r+4>>2]|0;p=(c[k>>2]=n,+g[k>>2]);p=q-p;o=o-(c[k>>2]=m,+g[k>>2]);l=l+1|0;if(!(p*p+o*o>2499999936844688.0e-20)){l=9;break}if((l|0)>=(e|0)){l=10;break}}if((l|0)==9)Aa(6632,6560,45,6616);else if((l|0)==10){m=e+1|0;c[j>>2]=m;m=NB(m<<3)|0;c[f>>2]=m;SB(m|0,d|0,e<<3|0)|0;m=c[f>>2]|0;r=m;l=c[r+4>>2]|0;m=m+(e<<3)|0;c[m>>2]=c[r>>2];c[m+4>>2]=l;m=c[f>>2]|0;l=m+((c[j>>2]|0)+ -2<<3)|0;r=c[l+4>>2]|0;n=b+20|0;c[n>>2]=c[l>>2];c[n+4>>2]=r;m=m+8|0;n=c[m+4>>2]|0;r=b+28|0;c[r>>2]=c[m>>2];c[r+4>>2]=n;a[b+36>>0]=1;a[b+37>>0]=1;i=h;return}}function cn(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=i;hx(a,b,c);i=d;return}function dn(b,d){b=b|0;d=d|0;var e=0,f=0;f=d;e=c[f+4>>2]|0;d=b+20|0;c[d>>2]=c[f>>2];c[d+4>>2]=e;a[b+36>>0]=1;return}function en(b,d){b=b|0;d=d|0;var e=0,f=0;f=d;e=c[f+4>>2]|0;d=b+28|0;c[d>>2]=c[f>>2];c[d+4>>2]=e;a[b+37>>0]=1;return}function fn(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=i;kx(a,b,c);i=d;return}function gn(a){a=a|0;return c[a+4>>2]|0}function hn(a){a=a|0;var b=0;b=i;a=nb[c[(c[a>>2]|0)+12>>2]&63](a)|0;i=b;return a|0}function jn(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;e=i;a=gb[c[(c[a>>2]|0)+16>>2]&63](a,b,d)|0;i=e;return a|0}function kn(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0;g=i;a=ub[c[(c[a>>2]|0)+20>>2]&63](a,b,d,e,f)|0;i=g;return a|0}function ln(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0;f=i;vb[c[(c[a>>2]|0)+24>>2]&63](a,b,d,e);i=f;return}function mn(a,b,d){a=a|0;b=b|0;d=+d;var e=0;e=i;rb[c[(c[a>>2]|0)+28>>2]&63](a,b,d);i=e;return}function nn(a){a=a|0;return c[a+12>>2]|0}function on(a,b){a=a|0;b=b|0;c[a+12>>2]=b;return}function pn(a){a=a|0;return c[a+16>>2]|0}function qn(a,b){a=a|0;b=b|0;c[a+16>>2]=b;return}function rn(a){a=a|0;return a+20|0}function sn(a,b){a=a|0;b=b|0;var d=0,e=0;e=b;d=c[e+4>>2]|0;b=a+20|0;c[b>>2]=c[e>>2];c[b+4>>2]=d;return}function tn(a){a=a|0;return a+28|0}function un(a,b){a=a|0;b=b|0;var d=0,e=0;e=b;d=c[e+4>>2]|0;b=a+28|0;c[b>>2]=c[e>>2];c[b+4>>2]=d;return}function vn(b){b=b|0;return(a[b+36>>0]|0)!=0|0}function wn(b,c){b=b|0;c=c|0;a[b+36>>0]=c&1;return}function xn(b){b=b|0;return(a[b+37>>0]|0)!=0|0}function yn(b,c){b=b|0;c=c|0;a[b+37>>0]=c&1;return}function zn(a){a=a|0;return c[a+4>>2]|0}function An(a,b){a=a|0;b=b|0;c[a+4>>2]=b;return}function Bn(a){a=a|0;return+(+g[a+8>>2])}function Cn(a,b){a=a|0;b=+b;g[a+8>>2]=b;return}function Dn(a){a=a|0;var b=0;b=i;if(!a){i=b;return}jb[c[(c[a>>2]|0)+4>>2]&127](a);i=b;return}function En(){var a=0,b=0,d=0;a=i;b=NB(16)|0;if(b){d=b;i=a;return d|0}while(1){b=c[4582]|0;c[4582]=b+0;if(!b){b=4;break}qb[b&63]();d=NB(16)|0;if(d){b=5;break}}if((b|0)==4){d=cb(4)|0;c[d>>2]=18168;_a(d|0,18216,116)}else if((b|0)==5){i=a;return d|0}return 0}function Fn(a,b,d){a=+a;b=+b;d=+d;var e=0,f=0;e=i;f=NB(16)|0;a:do if(!f){while(1){f=c[4582]|0;c[4582]=f+0;if(!f)break;qb[f&63]();f=NB(16)|0;if(f)break a}f=cb(4)|0;c[f>>2]=18168;_a(f|0,18216,116)}while(0);g[f>>2]=a;g[f+4>>2]=b;g[f+8>>2]=d;g[f+12>>2]=1.0;i=e;return f|0}function Gn(a,b,c,d){a=a|0;b=+b;c=+c;d=+d;g[a>>2]=b;g[a+4>>2]=c;g[a+8>>2]=d;g[a+12>>2]=1.0;return}function Hn(a){a=a|0;return+(+g[a>>2])}function In(a,b){a=a|0;b=+b;g[a>>2]=b;return}function Jn(a){a=a|0;return+(+g[a+4>>2])}function Kn(a,b){a=a|0;b=+b;g[a+4>>2]=b;return}function Ln(a){a=a|0;return+(+g[a+8>>2])}function Mn(a,b){a=a|0;b=+b;g[a+8>>2]=b;return}function Nn(a){a=a|0;var b=0;b=i;if(a)OB(a);i=b;return}function On(a){a=a|0;return a+68|0}function Pn(a){a=a|0;return a+76|0}function Qn(a,b){a=a|0;b=+b;g[a+84>>2]=b;return}function Rn(a){a=a|0;return+(+g[a+84>>2])}function Sn(a){a=a|0;return c[a+164>>2]|0}function Tn(a){a=a|0;return c[a+4>>2]|0}function Un(a){a=a|0;return c[a+48>>2]|0}function Vn(a){a=a|0;return c[a+52>>2]|0}function Wn(b){b=b|0;var d=0,e=0,f=0;e=i;i=i+16|0;d=e;if((a[528]|0)==0?(wa(528)|0)!=0:0)Da(528);lb[c[c[b>>2]>>2]&127](d,b);f=d;b=c[f+4>>2]|0;d=520;c[d>>2]=c[f>>2];c[d+4>>2]=b;i=e;return 520}function Xn(b){b=b|0;var d=0,e=0,f=0;e=i;i=i+16|0;d=e;if((a[544]|0)==0?(wa(544)|0)!=0:0)Da(544);lb[c[(c[b>>2]|0)+4>>2]&127](d,b);f=d;b=c[f+4>>2]|0;d=536;c[d>>2]=c[f>>2];c[d+4>>2]=b;i=e;return 536}function Yn(b,d){b=b|0;d=+d;var e=0,f=0,g=0;f=i;i=i+16|0;e=f;if((a[560]|0)==0?(wa(560)|0)!=0:0)Da(560);rb[c[(c[b>>2]|0)+8>>2]&63](e,b,d);g=e;b=c[g+4>>2]|0;e=552;c[e>>2]=c[g>>2];c[e+4>>2]=b;i=f;return 552}function Zn(a,b){a=a|0;b=+b;var d=0;d=i;b=+ib[c[(c[a>>2]|0)+12>>2]&63](a,b);i=d;return+b}function _n(a){a=a|0;return c[a+12>>2]|0}function $n(a){a=a|0;return c[a+64>>2]|0}function ao(a,b){a=a|0;b=b|0;c[a+64>>2]=b;return}function bo(a){a=a|0;var d=0;d=i;if(!(b[(c[a+48>>2]|0)+4>>1]&32)){a=0;i=d;return a|0}a=(b[(c[a+52>>2]|0)+4>>1]&32)!=0;i=d;return a|0}function co(b){b=b|0;return(a[b+61>>0]|0)!=0|0}function eo(a){a=a|0;var b=0;b=i;if(!a){i=b;return}jb[c[(c[a>>2]|0)+28>>2]&127](a);i=b;return}function fo(a){a=a|0;return a|0}function go(a,b){a=a|0;b=b|0;var d=0,e=0;e=b;d=c[e+4>>2]|0;b=a;c[b>>2]=c[e>>2];c[b+4>>2]=d;return}function ho(a){a=a|0;return a+8|0}function io(a,b){a=a|0;b=b|0;var d=0,e=0;e=b;d=c[e+4>>2]|0;b=a+8|0;c[b>>2]=c[e>>2];c[b+4>>2]=d;return}function jo(a){a=a|0;return+(+g[a+16>>2])}function ko(a,b){a=a|0;b=+b;g[a+16>>2]=b;return}function lo(a){a=a|0;var b=0;b=i;if(a)OB(a);i=b;return}function mo(){var a=0,b=0;a=i;b=NB(280)|0;a:do if(!b){while(1){b=c[4582]|0;c[4582]=b+0;if(!b)break;qb[b&63]();b=NB(280)|0;if(b)break a}b=cb(4)|0;c[b>>2]=18168;_a(b|0,18216,116)}while(0);c[b>>2]=7368;c[b+4>>2]=2;g[b+8>>2]=.009999999776482582;c[b+276>>2]=0;g[b+12>>2]=0.0;g[b+16>>2]=0.0;i=a;return b|0}function no(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0.0,h=0.0,j=0.0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0.0,x=0.0,y=0.0,z=0.0,A=0.0;e=i;i=i+192|0;o=e+64|0;n=e;if((d+ -3|0)>>>0>=14)Aa(7072,7104,122,7160);v=~d;v=(v|0)>-17?v:-17;p=~v;SB(o|0,b|0,-8-(v<<3)|0)|0;if((v|0)>-4)Aa(15224,7104,159,7160);q=0;b=1;w=+g[o>>2];do{x=+g[o+(b<<3)>>2];if(!(x>w)){if(x==w?+g[o+(b<<3)+4>>2]<+g[o+(q<<3)+4>>2]:0)l=9}else l=9;if((l|0)==9){l=0;q=b;w=x}b=b+1|0}while((b|0)!=(p|0));r=q;s=1;b=0;while(1){c[n+(b<<2)>>2]=r;u=o+(r<<3)|0;d=o+(r<<3)+4|0;v=0;t=1;do{if((v|0)!=(r|0)){z=+g[u>>2];x=+g[o+(v<<3)>>2]-z;w=+g[d>>2];y=+g[o+(v<<3)+4>>2]-w;z=+g[o+(t<<3)>>2]-z;w=+g[o+(t<<3)+4>>2]-w;A=x*w-y*z;v=A<0.0?t:v;if(A==0.0?z*z+w*w>x*x+y*y:0)v=t}else v=t;t=t+1|0}while((t|0)!=(p|0));d=b+1|0;if((v|0)==(q|0))break;else{r=v;s=s+1|0;b=d}}if((d|0)<3)Aa(15224,7104,224,7160);c[a+276>>2]=d;if((b|0)>-1)m=0;else Aa(7440,7104,76,7456);do{t=o+(c[n+(m<<2)>>2]<<3)|0;u=c[t+4>>2]|0;v=a+(m<<3)+20|0;c[v>>2]=c[t>>2];c[v+4>>2]=u;m=m+1|0}while((m|0)!=(s|0));o=0;do{p=o;o=o+1|0;n=(o|0)<(d|0);v=n?o:0;y=+g[a+(v<<3)+20>>2]- +g[a+(p<<3)+20>>2];w=+g[a+(v<<3)+24>>2]- +g[a+(p<<3)+24>>2];x=w*w;if(!(y*y+x>1.4210854715202004e-14)){l=24;break}m=a+(p<<3)+148|0;A=+w;y=+-y;v=m;g[v>>2]=A;g[v+4>>2]=y;p=a+(p<<3)+152|0;y=+g[p>>2];x=+O(+(x+y*y));if(!(x<1.1920928955078125e-7)){A=1.0/x;g[m>>2]=w*A;g[p>>2]=y*A}}while(n);if((l|0)==24)Aa(7168,7104,243,7160);l=a+12|0;m=a+20|0;if((b|0)>1){h=0.0;j=0.0;f=0.0;k=0}else Aa(7440,7104,76,7456);do{v=a+(k<<3)+20|0;w=+g[v>>2];x=+g[v+4>>2];k=k+1|0;if((k|0)<(d|0))b=a+(k<<3)+20|0;else b=m;v=b;y=+g[v>>2];z=+g[v+4>>2];A=(w*z-x*y)*.5;f=f+A;A=A*.3333333432674408;h=h+(w+0.0+y)*A;j=j+(x+0.0+z)*A}while((k|0)!=(d|0));if(f>1.1920928955078125e-7){A=1.0/f;z=+(h*A);A=+(j*A);v=l;g[v>>2]=z;g[v+4>>2]=A;i=e;return}else Aa(7328,7104,115,7456)}function oo(a,b,d){a=a|0;b=+b;d=+d;var e=0.0,f=0.0;c[a+276>>2]=4;e=-b;f=-d;g[a+20>>2]=e;g[a+24>>2]=f;g[a+28>>2]=b;g[a+32>>2]=f;g[a+36>>2]=b;g[a+40>>2]=d;g[a+44>>2]=e;g[a+48>>2]=d;g[a+148>>2]=0.0;g[a+152>>2]=-1.0;g[a+156>>2]=1.0;g[a+160>>2]=0.0;g[a+164>>2]=0.0;g[a+168>>2]=1.0;g[a+172>>2]=-1.0;g[a+176>>2]=0.0;g[a+12>>2]=0.0;g[a+16>>2]=0.0;return}function po(a,b,d,e,f){a=a|0;b=+b;d=+d;e=e|0;f=+f;var h=0,j=0,k=0.0,l=0.0,m=0.0,n=0,o=0,p=0,q=0.0,r=0.0;j=i;h=a+276|0;c[h>>2]=4;k=-b;m=-d;g[a+20>>2]=k;g[a+24>>2]=m;g[a+28>>2]=b;g[a+32>>2]=m;g[a+36>>2]=b;g[a+40>>2]=d;g[a+44>>2]=k;g[a+48>>2]=d;g[a+148>>2]=0.0;g[a+152>>2]=-1.0;g[a+156>>2]=1.0;g[a+160>>2]=0.0;g[a+164>>2]=0.0;g[a+168>>2]=1.0;g[a+172>>2]=-1.0;g[a+176>>2]=0.0;p=e;o=c[p+4>>2]|0;n=a+12|0;c[n>>2]=c[p>>2];c[n+4>>2]=o;d=+g[e>>2];k=+g[e+4>>2];b=+R(+f);f=+Q(+f);l=-1.0;e=0;while(1){p=a+(e<<3)+20|0;r=+g[p>>2];q=+(d+(f*r-b*m));m=+(k+(b*r+f*m));g[p>>2]=q;g[p+4>>2]=m;p=a+(e<<3)+148|0;m=+g[p>>2];q=+(f*m-b*l);m=+(b*m+f*l);g[p>>2]=q;g[p+4>>2]=m;e=e+1|0;if((e|0)>=(c[h>>2]|0))break;m=+g[a+(e<<3)+24>>2];l=+g[a+(e<<3)+152>>2]}i=j;return}function qo(a){a=a|0;return c[a+276>>2]|0}function ro(a,b){a=a|0;b=b|0;var d=0;d=i;if((b|0)>-1?(c[a+276>>2]|0)>(b|0):0){i=d;return a+(b<<3)+20|0}Aa(6336,2624,97,6416);return 0}function so(a){a=a|0;return c[a+4>>2]|0}function to(a){a=a|0;var b=0;b=i;a=nb[c[(c[a>>2]|0)+12>>2]&63](a)|0;i=b;return a|0}function uo(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;e=i;a=gb[c[(c[a>>2]|0)+16>>2]&63](a,b,d)|0;i=e;return a|0}function vo(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0;g=i;a=ub[c[(c[a>>2]|0)+20>>2]&63](a,b,d,e,f)|0;i=g;return a|0}function wo(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0;f=i;vb[c[(c[a>>2]|0)+24>>2]&63](a,b,d,e);i=f;return}function xo(a,b,d){a=a|0;b=b|0;d=+d;var e=0;e=i;rb[c[(c[a>>2]|0)+28>>2]&63](a,b,d);i=e;return}function yo(a){a=a|0;return a+12|0}function zo(a,b){a=a|0;b=b|0;var d=0,e=0;e=b;d=c[e+4>>2]|0;b=a+12|0;c[b>>2]=c[e>>2];c[b+4>>2]=d;return}function Ao(a){a=a|0;return c[a+276>>2]|0}function Bo(a,b){a=a|0;b=b|0;c[a+276>>2]=b;return}function Co(a){a=a|0;return c[a+4>>2]|0}function Do(a,b){a=a|0;b=b|0;c[a+4>>2]=b;return}function Eo(a){a=a|0;return+(+g[a+8>>2])}function Fo(a,b){a=a|0;b=+b;g[a+8>>2]=b;return}function Go(a){a=a|0;var b=0;b=i;if(!a){i=b;return}jb[c[(c[a>>2]|0)+4>>2]&127](a);i=b;return}function Ho(){var a=0,d=0,e=0;a=i;d=NB(48)|0;a:do if(!d){while(1){d=c[4582]|0;c[4582]=d+0;if(!d)break;qb[d&63]();d=NB(48)|0;if(d)break a}d=cb(4)|0;c[d>>2]=18168;_a(d|0,18216,116)}while(0);c[d>>2]=7008;c[d+4>>2]=1;g[d+8>>2]=.009999999776482582;e=d+28|0;c[e+0>>2]=0;c[e+4>>2]=0;c[e+8>>2]=0;c[e+12>>2]=0;b[e+16>>1]=0;i=a;return d|0}function Io(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0;g=d;d=c[g+4>>2]|0;f=b+12|0;c[f>>2]=c[g>>2];c[f+4>>2]=d;f=e;e=c[f+4>>2]|0;d=b+20|0;c[d>>2]=c[f>>2];c[d+4>>2]=e;a[b+44>>0]=0;a[b+45>>0]=0;return}function Jo(a){a=a|0;return c[a+4>>2]|0}function Ko(a){a=a|0;var b=0;b=i;a=nb[c[(c[a>>2]|0)+12>>2]&63](a)|0;i=b;return a|0}function Lo(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;e=i;a=gb[c[(c[a>>2]|0)+16>>2]&63](a,b,d)|0;i=e;return a|0}function Mo(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0;g=i;a=ub[c[(c[a>>2]|0)+20>>2]&63](a,b,d,e,f)|0;i=g;return a|0}function No(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0;f=i;vb[c[(c[a>>2]|0)+24>>2]&63](a,b,d,e);i=f;return}function Oo(a,b,d){a=a|0;b=b|0;d=+d;var e=0;e=i;rb[c[(c[a>>2]|0)+28>>2]&63](a,b,d);i=e;return}function Po(a){a=a|0;return a+12|0}function Qo(a,b){a=a|0;b=b|0;var d=0,e=0;e=b;d=c[e+4>>2]|0;b=a+12|0;c[b>>2]=c[e>>2];c[b+4>>2]=d;return}function Ro(a){a=a|0;return a+20|0}function So(a,b){a=a|0;b=b|0;var d=0,e=0;e=b;d=c[e+4>>2]|0;b=a+20|0;c[b>>2]=c[e>>2];c[b+4>>2]=d;return}function To(a){a=a|0;return a+28|0}function Uo(a,b){a=a|0;b=b|0;var d=0,e=0;e=b;d=c[e+4>>2]|0;b=a+28|0;c[b>>2]=c[e>>2];c[b+4>>2]=d;return}function Vo(a){a=a|0;return a+36|0}function Wo(a,b){a=a|0;b=b|0;var d=0,e=0;e=b;d=c[e+4>>2]|0;b=a+36|0;c[b>>2]=c[e>>2];c[b+4>>2]=d;return}function Xo(b){b=b|0;return(a[b+44>>0]|0)!=0|0}function Yo(b,c){b=b|0;c=c|0;a[b+44>>0]=c&1;return}function Zo(b){b=b|0;return(a[b+45>>0]|0)!=0|0}function _o(b,c){b=b|0;c=c|0;a[b+45>>0]=c&1;return}function $o(a){a=a|0;return c[a+4>>2]|0}function ap(a,b){a=a|0;b=b|0;c[a+4>>2]=b;return}function bp(a){a=a|0;return+(+g[a+8>>2])}function cp(a,b){a=a|0;b=+b;g[a+8>>2]=b;return}function dp(a){a=a|0;var b=0;b=i;if(!a){i=b;return}jb[c[(c[a>>2]|0)+4>>2]&127](a);i=b;return}function ep(){var a=0,b=0,d=0;a=i;b=NB(4)|0;if(b){d=b;c[d>>2]=2320;i=a;return d|0}while(1){b=c[4582]|0;c[4582]=b+0;if(!b){b=4;break}qb[b&63]();d=NB(4)|0;if(d){b=5;break}}if((b|0)==4){d=cb(4)|0;c[d>>2]=18168;_a(d|0,18216,116)}else if((b|0)==5){c[d>>2]=2320;i=a;return d|0}return 0}function fp(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;e=i;a=gb[c[(c[a>>2]|0)+8>>2]&63](a,b,d)|0;i=e;return a|0}function gp(a){a=a|0;var b=0;b=i;if(!a){i=b;return}jb[c[(c[a>>2]|0)+4>>2]&127](a);i=b;return}function hp(){var b=0,d=0,e=0;b=i;d=NB(64)|0;a:do if(!d){while(1){d=c[4582]|0;c[4582]=d+0;if(!d)break;qb[d&63]();d=NB(64)|0;if(d)break a}d=cb(4)|0;c[d>>2]=18168;_a(d|0,18216,116)}while(0);c[d+0>>2]=0;c[d+4>>2]=0;c[d+8>>2]=0;c[d+12>>2]=0;a[d+16>>0]=0;c[d>>2]=1;e=d+20|0;g[d+44>>2]=0.0;g[d+48>>2]=0.0;g[d+60>>2]=0.0;g[d+56>>2]=0.0;a[d+52>>0]=0;c[e+0>>2]=0;c[e+4>>2]=0;c[e+8>>2]=0;c[e+12>>2]=0;c[e+16>>2]=0;a[e+20>>0]=0;i=b;return d|0}function ip(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,h=0.0,j=0.0,k=0.0,l=0.0,m=0.0,n=0,o=0;f=i;c[a+8>>2]=b;c[a+12>>2]=d;m=+g[e>>2]- +g[b+12>>2];n=e+4|0;h=+g[n>>2]- +g[b+16>>2];j=+g[b+24>>2];k=+g[b+20>>2];l=+(m*j+h*k);k=+(j*h-m*k);o=a+20|0;g[o>>2]=l;g[o+4>>2]=k;k=+g[e>>2]- +g[d+12>>2];l=+g[n>>2]- +g[d+16>>2];m=+g[d+24>>2];h=+g[d+20>>2];j=+(k*m+l*h);h=+(m*l-k*h);e=a+28|0;g[e>>2]=j;g[e+4>>2]=h;g[a+36>>2]=+g[d+56>>2]- +g[b+56>>2];i=f;return}function jp(a){a=a|0;return a+20|0}function kp(a,b){a=a|0;b=b|0;var d=0,e=0;e=b;d=c[e+4>>2]|0;b=a+20|0;c[b>>2]=c[e>>2];c[b+4>>2]=d;return}function lp(a){a=a|0;return a+28|0}function mp(a,b){a=a|0;b=b|0;var d=0,e=0;e=b;d=c[e+4>>2]|0;b=a+28|0;c[b>>2]=c[e>>2];c[b+4>>2]=d;return}function np(a){a=a|0;return+(+g[a+36>>2])}function op(a,b){a=a|0;b=+b;g[a+36>>2]=b;return}function pp(b){b=b|0;return(a[b+40>>0]|0)!=0|0}function qp(b,c){b=b|0;c=c|0;a[b+40>>0]=c&1;return}function rp(a){a=a|0;return+(+g[a+44>>2])}function sp(a,b){a=a|0;b=+b;g[a+44>>2]=b;return}function tp(a){a=a|0;return+(+g[a+48>>2])}function up(a,b){a=a|0;b=+b;g[a+48>>2]=b;return}function vp(b){b=b|0;return(a[b+52>>0]|0)!=0|0}function wp(b,c){b=b|0;c=c|0;a[b+52>>0]=c&1;return}function xp(a){a=a|0;return+(+g[a+56>>2])}function yp(a,b){a=a|0;b=+b;g[a+56>>2]=b;return}function zp(a){a=a|0;return+(+g[a+60>>2])}function Ap(a,b){a=a|0;b=+b;g[a+60>>2]=b;return}function Bp(a){a=a|0;return c[a>>2]|0}function Cp(a,b){a=a|0;b=b|0;c[a>>2]=b;return}function Dp(a){a=a|0;return c[a+4>>2]|0}function Ep(a,b){a=a|0;b=b|0;c[a+4>>2]=b;return}function Fp(a){a=a|0;return c[a+8>>2]|0}function Gp(a,b){a=a|0;b=b|0;c[a+8>>2]=b;return}function Hp(a){a=a|0;return c[a+12>>2]|0}function Ip(a,b){a=a|0;b=b|0;c[a+12>>2]=b;return}function Jp(b){b=b|0;return(a[b+16>>0]|0)!=0|0}function Kp(b,c){b=b|0;c=c|0;a[b+16>>0]=c&1;return}function Lp(a){a=a|0;var b=0;b=i;if(a)OB(a);i=b;return}function Mp(){var a=0,b=0,d=0;a=i;b=NB(8)|0;a:do if(!b){while(1){b=c[4582]|0;c[4582]=b+0;if(!b)break;qb[b&63]();b=NB(8)|0;if(b)break a}b=cb(4)|0;c[b>>2]=18168;_a(b|0,18216,116)}while(0);d=b;c[d>>2]=0;c[d+4>>2]=0;c[b+4>>2]=0;c[b>>2]=912;i=a;return b|0}function Np(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0;f=i;vb[c[(c[a>>2]|0)+8>>2]&63](a,b,d,e);i=f;return}function Op(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0;f=i;vb[c[(c[a>>2]|0)+12>>2]&63](a,b,d,e);i=f;return}function Pp(a,b,d,e){a=a|0;b=b|0;d=+d;e=e|0;var f=0;f=i;ob[c[(c[a>>2]|0)+16>>2]&63](a,b,d,e);i=f;return}function Qp(a,b,d,e,f){a=a|0;b=b|0;d=+d;e=e|0;f=f|0;var g=0;g=i;mb[c[(c[a>>2]|0)+20>>2]&63](a,b,d,e,f);i=g;return}function Rp(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0;f=i;vb[c[(c[a>>2]|0)+24>>2]&63](a,b,d,e);i=f;return}function Sp(a,b){a=a|0;b=b|0;var d=0;d=i;lb[c[(c[a>>2]|0)+28>>2]&127](a,b);i=d;return}function Tp(a){a=a|0;var b=0;b=i;if(!a){i=b;return}jb[c[(c[a>>2]|0)+4>>2]&127](a);i=b;return}function Up(a){a=a|0;return a+76|0}function Vp(a){a=a|0;return a+84|0}function Wp(a){a=a|0;return a+92|0}function Xp(a){a=a|0;var b=0.0,d=0.0,e=0.0,f=0.0,h=0,i=0.0,j=0.0,k=0,l=0.0,m=0.0,n=0.0,o=0.0;h=c[a+48>>2]|0;k=c[a+52>>2]|0;d=+g[h+24>>2];j=+g[a+76>>2];f=+g[h+20>>2];i=+g[a+80>>2];m=+g[k+24>>2];o=+g[a+84>>2];n=+g[k+20>>2];l=+g[a+88>>2];e=+g[a+92>>2];b=+g[a+96>>2];return+((+g[k+12>>2]+(m*o-n*l)-(+g[h+12>>2]+(d*j-f*i)))*(d*e-f*b)+(o*n+m*l+ +g[k+16>>2]-(j*f+d*i+ +g[h+16>>2]))*(f*e+d*b))}function Yp(a){a=a|0;return+(+g[(c[a+52>>2]|0)+72>>2]- +g[(c[a+48>>2]|0)+72>>2])}function Zp(b){b=b|0;return(a[b+128>>0]|0)!=0|0}function _p(d,f){d=d|0;f=f|0;var h=0,j=0,k=0,l=0;h=i;j=c[d+48>>2]|0;k=j+4|0;l=e[k>>1]|0;if(!(l&2)){b[k>>1]=l|2;g[j+144>>2]=0.0}l=c[d+52>>2]|0;k=l+4|0;j=e[k>>1]|0;if(j&2){l=d+128|0;k=f&1;a[l>>0]=k;i=h;return}b[k>>1]=j|2;g[l+144>>2]=0.0;l=d+128|0;k=f&1;a[l>>0]=k;i=h;return}function $p(a,d){a=a|0;d=+d;var f=0,h=0,j=0,k=0;f=i;h=c[a+48>>2]|0;j=h+4|0;k=e[j>>1]|0;if(!(k&2)){b[j>>1]=k|2;g[h+144>>2]=0.0}k=c[a+52>>2]|0;j=k+4|0;h=e[j>>1]|0;if(h&2){k=a+124|0;g[k>>2]=d;i=f;return}b[j>>1]=h|2;g[k+144>>2]=0.0;k=a+124|0;g[k>>2]=d;i=f;return}function aq(a){a=a|0;return+(+g[a+124>>2])}function bq(a,d){a=a|0;d=+d;var f=0,h=0,j=0,k=0;f=i;h=c[a+48>>2]|0;j=h+4|0;k=e[j>>1]|0;if(!(k&2)){b[j>>1]=k|2;g[h+144>>2]=0.0}k=c[a+52>>2]|0;j=k+4|0;h=e[j>>1]|0;if(h&2){k=a+120|0;g[k>>2]=d;i=f;return}b[j>>1]=h|2;g[k+144>>2]=0.0;k=a+120|0;g[k>>2]=d;i=f;return}function cq(a){a=a|0;return+(+g[a+120>>2])}function dq(a,b){a=a|0;b=+b;return+(+g[a+112>>2]*b)}function eq(a,b){a=a|0;b=+b;g[a+68>>2]=b;return}function fq(a){a=a|0;return+(+g[a+68>>2])}function gq(a,b){a=a|0;b=+b;g[a+72>>2]=b;return}function hq(a){a=a|0;return+(+g[a+72>>2])}function iq(a){a=a|0;return c[a+4>>2]|0}function jq(a){a=a|0;return c[a+48>>2]|0}function kq(a){a=a|0;return c[a+52>>2]|0}function lq(b){b=b|0;var d=0,e=0,f=0;e=i;i=i+16|0;d=e;if((a[576]|0)==0?(wa(576)|0)!=0:0)Da(576);lb[c[c[b>>2]>>2]&127](d,b);f=d;b=c[f+4>>2]|0;d=568;c[d>>2]=c[f>>2];c[d+4>>2]=b;i=e;return 568}function mq(b){b=b|0;var d=0,e=0,f=0;e=i;i=i+16|0;d=e;if((a[592]|0)==0?(wa(592)|0)!=0:0)Da(592);lb[c[(c[b>>2]|0)+4>>2]&127](d,b);f=d;b=c[f+4>>2]|0;d=584;c[d>>2]=c[f>>2];c[d+4>>2]=b;i=e;return 584}function nq(b,d){b=b|0;d=+d;var e=0,f=0,g=0;f=i;i=i+16|0;e=f;if((a[608]|0)==0?(wa(608)|0)!=0:0)Da(608);rb[c[(c[b>>2]|0)+8>>2]&63](e,b,d);g=e;b=c[g+4>>2]|0;e=600;c[e>>2]=c[g>>2];c[e+4>>2]=b;i=f;return 600}function oq(a,b){a=a|0;b=+b;var d=0;d=i;b=+ib[c[(c[a>>2]|0)+12>>2]&63](a,b);i=d;return+b}function pq(a){a=a|0;return c[a+12>>2]|0}function qq(a){a=a|0;return c[a+64>>2]|0}function rq(a,b){a=a|0;b=b|0;c[a+64>>2]=b;return}function sq(a){a=a|0;var d=0;d=i;if(!(b[(c[a+48>>2]|0)+4>>1]&32)){a=0;i=d;return a|0}a=(b[(c[a+52>>2]|0)+4>>1]&32)!=0;i=d;return a|0}function tq(b){b=b|0;return(a[b+61>>0]|0)!=0|0}function uq(a){a=a|0;var b=0;b=i;if(!a){i=b;return}jb[c[(c[a>>2]|0)+28>>2]&127](a);i=b;return}function vq(b){b=b|0;var d=0,e=0,f=0;d=i;if((a[624]|0)==0?(wa(624)|0)!=0:0)Da(624);f=b+68|0;e=c[f+4>>2]|0;b=616;c[b>>2]=c[f>>2];c[b+4>>2]=e;i=d;return 616}function wq(b){b=b|0;var d=0,e=0,f=0;d=i;if((a[640]|0)==0?(wa(640)|0)!=0:0)Da(640);f=b+76|0;e=c[f+4>>2]|0;b=632;c[b>>2]=c[f>>2];c[b+4>>2]=e;i=d;return 632}function xq(a){a=a|0;return+(+g[a+84>>2])}function yq(a){a=a|0;return+(+g[a+88>>2])}function zq(a){a=a|0;return+(+g[a+112>>2])}function Aq(a){a=a|0;var b=0.0,d=0,e=0.0,f=0,h=0.0,j=0.0,k=0.0;d=i;f=c[a+48>>2]|0;h=+g[f+24>>2];k=+g[a+92>>2];j=+g[f+20>>2];b=+g[a+96>>2];a=a+68|0;e=+g[a>>2];e=+g[f+12>>2]+(h*k-j*b)-e;b=k*j+h*b+ +g[f+16>>2]- +g[a+4>>2];b=+O(+(e*e+b*b));i=d;return+b}function Bq(a){a=a|0;var b=0.0,d=0,e=0.0,f=0,h=0.0,j=0.0,k=0.0;d=i;f=c[a+52>>2]|0;h=+g[f+24>>2];k=+g[a+100>>2];j=+g[f+20>>2];b=+g[a+104>>2];a=a+76|0;e=+g[a>>2];e=+g[f+12>>2]+(h*k-j*b)-e;b=k*j+h*b+ +g[f+16>>2]- +g[a+4>>2];b=+O(+(e*e+b*b));i=d;return+b}function Cq(a){a=a|0;return c[a+4>>2]|0}function Dq(a){a=a|0;return c[a+48>>2]|0}function Eq(a){a=a|0;return c[a+52>>2]|0}function Fq(b){b=b|0;var d=0,e=0,f=0;e=i;i=i+16|0;d=e;if((a[656]|0)==0?(wa(656)|0)!=0:0)Da(656);lb[c[c[b>>2]>>2]&127](d,b);f=d;b=c[f+4>>2]|0;d=648;c[d>>2]=c[f>>2];c[d+4>>2]=b;i=e;return 648}function Gq(b){b=b|0;var d=0,e=0,f=0;e=i;i=i+16|0;d=e;if((a[672]|0)==0?(wa(672)|0)!=0:0)Da(672);lb[c[(c[b>>2]|0)+4>>2]&127](d,b);f=d;b=c[f+4>>2]|0;d=664;c[d>>2]=c[f>>2];c[d+4>>2]=b;i=e;return 664}function Hq(b,d){b=b|0;d=+d;var e=0,f=0,g=0;f=i;i=i+16|0;e=f;if((a[688]|0)==0?(wa(688)|0)!=0:0)Da(688);rb[c[(c[b>>2]|0)+8>>2]&63](e,b,d);g=e;b=c[g+4>>2]|0;e=680;c[e>>2]=c[g>>2];c[e+4>>2]=b;i=f;return 680}function Iq(a,b){a=a|0;b=+b;var d=0;d=i;b=+ib[c[(c[a>>2]|0)+12>>2]&63](a,b);i=d;return+b}function Jq(a){a=a|0;return c[a+12>>2]|0}function Kq(a){a=a|0;return c[a+64>>2]|0}function Lq(a,b){a=a|0;b=b|0;c[a+64>>2]=b;return}function Mq(a){a=a|0;var d=0;d=i;if(!(b[(c[a+48>>2]|0)+4>>1]&32)){a=0;i=d;return a|0}a=(b[(c[a+52>>2]|0)+4>>1]&32)!=0;i=d;return a|0}function Nq(b){b=b|0;return(a[b+61>>0]|0)!=0|0}function Oq(a){a=a|0;var b=0;b=i;if(!a){i=b;return}jb[c[(c[a>>2]|0)+28>>2]&127](a);i=b;return}function Pq(){var b=0,d=0;b=i;d=NB(40)|0;a:do if(!d){while(1){d=c[4582]|0;c[4582]=d+0;if(!d)break;qb[d&63]();d=NB(40)|0;if(d)break a}d=cb(4)|0;c[d>>2]=18168;_a(d|0,18216,116)}while(0);c[d+0>>2]=0;c[d+4>>2]=0;c[d+8>>2]=0;c[d+12>>2]=0;a[d+16>>0]=0;c[d>>2]=5;g[d+20>>2]=0.0;g[d+24>>2]=0.0;g[d+28>>2]=0.0;g[d+32>>2]=5.0;g[d+36>>2]=.699999988079071;i=b;return d|0}function Qq(a){a=a|0;return a+20|0}function Rq(a,b){a=a|0;b=b|0;var d=0,e=0;e=b;d=c[e+4>>2]|0;b=a+20|0;c[b>>2]=c[e>>2];c[b+4>>2]=d;return}function Sq(a){a=a|0;return+(+g[a+28>>2])}function Tq(a,b){a=a|0;b=+b;g[a+28>>2]=b;return}function Uq(a){a=a|0;return+(+g[a+32>>2])}function Vq(a,b){a=a|0;b=+b;g[a+32>>2]=b;return}function Wq(a){a=a|0;return+(+g[a+36>>2])}function Xq(a,b){a=a|0;b=+b;g[a+36>>2]=b;return}function Yq(a){a=a|0;return c[a>>2]|0}function Zq(a,b){a=a|0;b=b|0;c[a>>2]=b;return}function _q(a){a=a|0;return c[a+4>>2]|0}function $q(a,b){a=a|0;b=b|0;c[a+4>>2]=b;return}function ar(a){a=a|0;return c[a+8>>2]|0}function br(a,b){a=a|0;b=b|0;c[a+8>>2]=b;return}function cr(a){a=a|0;return c[a+12>>2]|0}function dr(a,b){a=a|0;b=b|0;c[a+12>>2]=b;return}function er(b){b=b|0;return(a[b+16>>0]|0)!=0|0}function fr(b,c){b=b|0;c=c|0;a[b+16>>0]=c&1;return}function gr(a){a=a|0;var b=0;b=i;if(a)OB(a);i=b;return}function hr(a){a=a|0;return a+64|0}function ir(a){a=a|0;return(c[a+4>>2]&2|0)!=0|0}function jr(a,b){a=a|0;b=b|0;var d=0;a=a+4|0;d=c[a>>2]|0;c[a>>2]=b?d|4:d&-5;return}function kr(a){a=a|0;return(c[a+4>>2]&4|0)!=0|0}function lr(a){a=a|0;return c[a+12>>2]|0}function mr(a){a=a|0;return c[a+48>>2]|0}function nr(a){a=a|0;return c[a+56>>2]|0}function or(a){a=a|0;return c[a+52>>2]|0}function pr(a){a=a|0;return c[a+60>>2]|0}function qr(a,b){a=a|0;b=+b;g[a+136>>2]=b;return}function rr(a){a=a|0;return+(+g[a+136>>2])}function sr(a){a=a|0;g[a+136>>2]=+O(+(+g[(c[a+48>>2]|0)+16>>2]*+g[(c[a+52>>2]|0)+16>>2]));return}function tr(a,b){a=a|0;b=+b;g[a+140>>2]=b;return}function ur(a){a=a|0;return+(+g[a+140>>2])}function vr(a){a=a|0;var b=0.0,d=0.0;d=+g[(c[a+48>>2]|0)+20>>2];b=+g[(c[a+52>>2]|0)+20>>2];g[a+140>>2]=d>b?d:b;return}function wr(a,b){a=a|0;b=+b;g[a+144>>2]=b;return}function xr(a){a=a|0;return+(+g[a+144>>2])}function yr(a){a=a|0;return c[a+4>>2]|0}function zr(a){a=a|0;var b=0;b=i;a=nb[c[(c[a>>2]|0)+12>>2]&63](a)|0;i=b;return a|0}function Ar(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;e=i;a=gb[c[(c[a>>2]|0)+16>>2]&63](a,b,d)|0;i=e;return a|0}function Br(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0;g=i;a=ub[c[(c[a>>2]|0)+20>>2]&63](a,b,d,e,f)|0;i=g;return a|0}function Cr(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0;f=i;vb[c[(c[a>>2]|0)+24>>2]&63](a,b,d,e);i=f;return}function Dr(a,b,d){a=a|0;b=b|0;d=+d;var e=0;e=i;rb[c[(c[a>>2]|0)+28>>2]&63](a,b,d);i=e;return}function Er(a){a=a|0;return c[a+4>>2]|0}function Fr(a,b){a=a|0;b=b|0;c[a+4>>2]=b;return}function Gr(a){a=a|0;return+(+g[a+8>>2])}function Hr(a,b){a=a|0;b=+b;g[a+8>>2]=b;return}function Ir(a){a=a|0;var b=0;b=i;if(!a){i=b;return}jb[c[(c[a>>2]|0)+4>>2]&127](a);i=b;return}function Jr(){var b=0,d=0,e=0,f=0;b=i;d=NB(48)|0;a:do if(!d){while(1){d=c[4582]|0;c[4582]=d+0;if(!d)break;qb[d&63]();d=NB(48)|0;if(d)break a}d=cb(4)|0;c[d>>2]=18168;_a(d|0,18216,116)}while(0);c[d+0>>2]=0;c[d+4>>2]=0;c[d+8>>2]=0;c[d+12>>2]=0;a[d+16>>0]=0;c[d>>2]=3;f=d+20|0;e=d+36|0;c[f+0>>2]=0;c[f+4>>2]=0;c[f+8>>2]=0;c[f+12>>2]=0;g[e>>2]=1.0;g[d+40>>2]=0.0;g[d+44>>2]=0.0;i=b;return d|0}function Kr(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var h=0,j=0.0,k=0.0,l=0,m=0.0,n=0.0,o=0.0;h=i;c[a+8>>2]=b;c[a+12>>2]=d;o=+g[e>>2]- +g[b+12>>2];l=e+4|0;k=+g[l>>2]- +g[b+16>>2];j=+g[b+24>>2];m=+g[b+20>>2];n=+(o*j+k*m);m=+(j*k-o*m);b=a+20|0;g[b>>2]=n;g[b+4>>2]=m;m=+g[f>>2]- +g[d+12>>2];b=f+4|0;n=+g[b>>2]- +g[d+16>>2];o=+g[d+24>>2];k=+g[d+20>>2];j=+(m*o+n*k);k=+(o*n-m*k);d=a+28|0;g[d>>2]=j;g[d+4>>2]=k;k=+g[f>>2]- +g[e>>2];j=+g[b>>2]- +g[l>>2];g[a+36>>2]=+O(+(k*k+j*j));i=h;return}function Lr(a){a=a|0;return a+20|0}function Mr(a,b){a=a|0;b=b|0;var d=0,e=0;e=b;d=c[e+4>>2]|0;b=a+20|0;c[b>>2]=c[e>>2];c[b+4>>2]=d;return}function Nr(a){a=a|0;return a+28|0}function Or(a,b){a=a|0;b=b|0;var d=0,e=0;e=b;d=c[e+4>>2]|0;b=a+28|0;c[b>>2]=c[e>>2];c[b+4>>2]=d;return}function Pr(a){a=a|0;return+(+g[a+36>>2])}function Qr(a,b){a=a|0;b=+b;g[a+36>>2]=b;return}function Rr(a){a=a|0;return+(+g[a+40>>2])}function Sr(a,b){a=a|0;b=+b;g[a+40>>2]=b;return}function Tr(a){a=a|0;return+(+g[a+44>>2])}function Ur(a,b){a=a|0;b=+b;g[a+44>>2]=b;return}function Vr(a){a=a|0;return c[a>>2]|0}function Wr(a,b){a=a|0;b=b|0;c[a>>2]=b;return}function Xr(a){a=a|0;return c[a+4>>2]|0}function Yr(a,b){a=a|0;b=b|0;c[a+4>>2]=b;return}function Zr(a){a=a|0;return c[a+8>>2]|0}function _r(a,b){a=a|0;b=b|0;c[a+8>>2]=b;return}function $r(a){a=a|0;return c[a+12>>2]|0}function as(a,b){a=a|0;b=b|0;c[a+12>>2]=b;return}function bs(b){b=b|0;return(a[b+16>>0]|0)!=0|0}function cs(b,c){b=b|0;c=c|0;a[b+16>>0]=c&1;return}function ds(a){a=a|0;var b=0;b=i;if(a)OB(a);i=b;return}function es(a,b){a=a|0;b=b|0;var c=0;c=i;a=Sx(a,b)|0;i=c;return a|0}function fs(d,e,f){d=d|0;e=e|0;f=+f;var h=0,j=0;h=i;i=i+32|0;j=h;b[j+22>>1]=1;b[j+24>>1]=-1;b[j+26>>1]=0;c[j+4>>2]=0;g[j+8>>2]=.20000000298023224;g[j+12>>2]=0.0;a[j+20>>0]=0;c[j>>2]=e;g[j+16>>2]=f;e=Sx(d,j)|0;i=h;return e|0}function gs(d,e){d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0;f=i;j=d+88|0;if(c[(c[j>>2]|0)+102868>>2]&2)Aa(8888,8624,216,8944);h=e+8|0;if((c[h>>2]|0)!=(d|0))Aa(8960,8624,222,8944);g=d+104|0;if((c[g>>2]|0)<=0)Aa(8984,8624,225,8944);o=d+100|0;n=c[o>>2]|0;if(!n)Aa(9008,8624,241,8944);else{m=n;k=o}while(1){n=m+4|0;if((m|0)==(e|0))break;m=c[n>>2]|0;if(!m){l=11;break}else k=n}if((l|0)==11)Aa(9008,8624,241,8944);l=e+4|0;c[k>>2]=c[l>>2];k=c[d+112>>2]|0;if(k)do{m=c[k+4>>2]|0;k=c[k+12>>2]|0;if((c[m+48>>2]|0)==(e|0)?1:(c[m+52>>2]|0)==(e|0))Xx((c[j>>2]|0)+102872|0,m)}while((k|0)!=0);j=c[j>>2]|0;if(b[d+4>>1]&32)ly(e,j+102872|0);jy(e,j);c[h>>2]=0;c[l>>2]=0;h=a[7572]|0;if((h&255)<14){o=j+((h&255)<<2)+12|0;c[e>>2]=c[o>>2];c[o>>2]=e;c[g>>2]=(c[g>>2]|0)+ -1;Qx(d);i=f;return}else Aa(8296,8208,171,8568)}function hs(a,b,d){a=a|0;b=b|0;d=+d;var e=0,f=0,h=0,j=0.0,l=0.0,m=0.0,n=0.0,o=0.0,p=0,q=0;e=i;h=c[a+88>>2]|0;if(c[h+102868>>2]&2)Aa(8888,8624,419,9096);f=a+12|0;n=+R(+d);g[a+20>>2]=n;m=+Q(+d);g[a+24>>2]=m;p=c[b>>2]|0;b=c[b+4>>2]|0;q=f;c[q>>2]=p;c[q+4>>2]=b;o=+g[a+28>>2];j=+g[a+32>>2];l=(c[k>>2]=p,+g[k>>2])+(m*o-n*j);j=o*n+m*j+(c[k>>2]=b,+g[k>>2]);l=+l;j=+j;b=a+44|0;g[b>>2]=l;g[b+4>>2]=j;g[a+56>>2]=d;b=a+36|0;g[b>>2]=l;g[b+4>>2]=j;g[a+52>>2]=d;h=h+102872|0;a=c[a+100>>2]|0;if(!a){i=e;return}do{my(a,h,f,f);a=c[a+4>>2]|0}while((a|0)!=0);i=e;return}function is(a){a=a|0;return a+12|0}function js(a){a=a|0;return a+12|0}function ks(a){a=a|0;return+(+g[a+56>>2])}function ls(a){a=a|0;return a+44|0}function ms(a){a=a|0;return a+28|0}function ns(a,d){a=a|0;d=d|0;var f=0,h=0,j=0,k=0.0,l=0.0;f=i;if(!(c[a>>2]|0)){i=f;return}l=+g[d>>2];k=+g[d+4>>2];if(l*l+k*k>0.0?(j=a+4|0,h=e[j>>1]|0,(h&2|0)==0):0){b[j>>1]=h|2;g[a+144>>2]=0.0}h=d;j=c[h+4>>2]|0;d=a+64|0;c[d>>2]=c[h>>2];c[d+4>>2]=j;i=f;return}function os(b){b=b|0;var d=0,e=0,f=0;d=i;if((a[704]|0)==0?(wa(704)|0)!=0:0)Da(704);f=b+64|0;e=c[f+4>>2]|0;b=696;c[b>>2]=c[f>>2];c[b+4>>2]=e;i=d;return 696}function ps(a,d){a=a|0;d=+d;var f=0,h=0,j=0;f=i;if(!(c[a>>2]|0)){i=f;return}if(d*d>0.0?(j=a+4|0,h=e[j>>1]|0,(h&2|0)==0):0){b[j>>1]=h|2;g[a+144>>2]=0.0}g[a+72>>2]=d;i=f;return}function qs(a){a=a|0;return+(+g[a+72>>2])}function rs(a,d,e,f){a=a|0;d=d|0;e=e|0;f=f|0;var h=0,j=0,k=0,l=0;h=i;if((c[a>>2]|0)!=2){i=h;return}k=a+4|0;l=b[k>>1]|0;if((f?(l&2)==0:0)?(j=l&65535,(j&2|0)==0):0){l=(j|2)&65535;b[k>>1]=l;g[a+144>>2]=0.0}if(!(l&2)){i=h;return}k=a+76|0;g[k>>2]=+g[d>>2]+ +g[k>>2];k=d+4|0;l=a+80|0;g[l>>2]=+g[k>>2]+ +g[l>>2];l=a+84|0;g[l>>2]=+g[l>>2]+((+g[e>>2]- +g[a+44>>2])*+g[k>>2]-(+g[e+4>>2]- +g[a+48>>2])*+g[d>>2]);i=h;return}function ss(a,d,e){a=a|0;d=d|0;e=e|0;var f=0,h=0,j=0,k=0;f=i;if((c[a>>2]|0)!=2){i=f;return}j=a+4|0;k=b[j>>1]|0;if((e?(k&2)==0:0)?(h=k&65535,(h&2|0)==0):0){k=(h|2)&65535;b[j>>1]=k;g[a+144>>2]=0.0}if(!(k&2)){i=f;return}k=a+76|0;g[k>>2]=+g[d>>2]+ +g[k>>2];k=a+80|0;g[k>>2]=+g[d+4>>2]+ +g[k>>2];i=f;return}function ts(a,d,e){a=a|0;d=+d;e=e|0;var f=0,h=0,j=0,k=0;f=i;if((c[a>>2]|0)!=2){i=f;return}j=a+4|0;k=b[j>>1]|0;if((e?(k&2)==0:0)?(h=k&65535,(h&2|0)==0):0){k=(h|2)&65535;b[j>>1]=k;g[a+144>>2]=0.0}if(!(k&2)){i=f;return}k=a+84|0;g[k>>2]=+g[k>>2]+d;i=f;return}function us(a,d,e,f){a=a|0;d=d|0;e=e|0;f=f|0;var h=0,j=0,k=0,l=0,m=0.0,n=0.0;h=i;if((c[a>>2]|0)!=2){i=h;return}k=a+4|0;l=b[k>>1]|0;if((f?(l&2)==0:0)?(j=l&65535,(j&2|0)==0):0){l=(j|2)&65535;b[k>>1]=l;g[a+144>>2]=0.0}if(!(l&2)){i=h;return}n=+g[a+120>>2];k=d+4|0;m=n*+g[k>>2];l=a+64|0;g[l>>2]=n*+g[d>>2]+ +g[l>>2];l=a+68|0;g[l>>2]=m+ +g[l>>2];l=a+72|0;g[l>>2]=+g[l>>2]+ +g[a+128>>2]*((+g[e>>2]- +g[a+44>>2])*+g[k>>2]-(+g[e+4>>2]- +g[a+48>>2])*+g[d>>2]);i=h;return}function vs(a,d,e){a=a|0;d=+d;e=e|0;var f=0,h=0,j=0,k=0;f=i;if((c[a>>2]|0)!=2){i=f;return}j=a+4|0;k=b[j>>1]|0;if((e?(k&2)==0:0)?(h=k&65535,(h&2|0)==0):0){k=(h|2)&65535;b[j>>1]=k;g[a+144>>2]=0.0}if(!(k&2)){i=f;return}k=a+72|0;g[k>>2]=+g[k>>2]+ +g[a+128>>2]*d;i=f;return}function ws(a){a=a|0;return+(+g[a+116>>2])}function xs(a){a=a|0;var b=0.0,c=0.0;c=+g[a+28>>2];b=+g[a+32>>2];return+(+g[a+124>>2]+ +g[a+116>>2]*(c*c+b*b))}function ys(a,b){a=a|0;b=b|0;var d=0,e=0,f=0.0,h=0.0;d=a+116|0;g[b>>2]=+g[d>>2];e=a+28|0;h=+g[e>>2];f=+g[a+32>>2];g[b+12>>2]=+g[a+124>>2]+ +g[d>>2]*(h*h+f*f);d=c[e+4>>2]|0;a=b+4|0;c[a>>2]=c[e>>2];c[a+4>>2]=d;return}function zs(a,d){a=a|0;d=d|0;var e=0,f=0,h=0,j=0.0,l=0.0,m=0,n=0.0,o=0.0,p=0.0,q=0.0,r=0.0;e=i;if(c[(c[a+88>>2]|0)+102868>>2]&2)Aa(8888,8624,355,9080);if((c[a>>2]|0)!=2){i=e;return}m=a+120|0;g[m>>2]=0.0;h=a+124|0;g[h>>2]=0.0;f=a+128|0;g[f>>2]=0.0;j=+g[d>>2];j=!(j<=0.0)?j:1.0;g[a+116>>2]=j;g[m>>2]=1.0/j;l=+g[d+12>>2];do if(l>0.0?(b[a+4>>1]&16)==0:0){o=+g[d+4>>2];n=+g[d+8>>2];j=l-j*(o*o+n*n);g[h>>2]=j;if(j>0.0){g[f>>2]=1.0/j;break}else Aa(9064,8624,381,9080)}while(0);m=a+44|0;h=m;o=+g[h>>2];j=+g[h+4>>2];h=d+4|0;f=c[h>>2]|0;h=c[h+4>>2]|0;d=a+28|0;c[d>>2]=f;c[d+4>>2]=h;q=+g[a+24>>2];r=(c[k>>2]=f,+g[k>>2]);l=+g[a+20>>2];p=(c[k>>2]=h,+g[k>>2]);n=+g[a+12>>2]+(q*r-l*p);p=r*l+q*p+ +g[a+16>>2];q=+n;l=+p;g[m>>2]=q;g[m+4>>2]=l;m=a+36|0;g[m>>2]=q;g[m+4>>2]=l;l=+g[a+72>>2];m=a+64|0;g[m>>2]=+g[m>>2]-l*(p-j);m=a+68|0;g[m>>2]=l*(n-o)+ +g[m>>2];i=e;return}function As(a){a=a|0;var b=0;b=i;Qx(a);i=b;return}function Bs(b,c){b=b|0;c=c|0;var d=0,e=0.0,f=0.0,h=0.0,j=0.0,k=0.0;d=i;if((a[720]|0)==0?(wa(720)|0)!=0:0)Da(720);h=+g[b+24>>2];k=+g[c>>2];j=+g[b+20>>2];e=+g[c+4>>2];f=+(+g[b+12>>2]+(h*k-j*e));e=+(k*j+h*e+ +g[b+16>>2]);c=712;g[c>>2]=f;g[c+4>>2]=e;i=d;return 712}function Cs(b,c){b=b|0;c=c|0;var d=0,e=0.0,f=0.0,h=0.0,j=0.0,k=0.0;d=i;if((a[736]|0)==0?(wa(736)|0)!=0:0)Da(736);h=+g[b+24>>2];k=+g[c>>2];j=+g[b+20>>2];e=+g[c+4>>2];f=+(h*k-j*e);e=+(k*j+h*e);c=728;g[c>>2]=f;g[c+4>>2]=e;i=d;return 728}function Ds(b,c){b=b|0;c=c|0;var d=0,e=0.0,f=0.0,h=0.0,j=0.0,k=0.0;d=i;if((a[752]|0)==0?(wa(752)|0)!=0:0)Da(752);h=+g[c>>2]- +g[b+12>>2];j=+g[c+4>>2]- +g[b+16>>2];k=+g[b+24>>2];e=+g[b+20>>2];f=+(h*k+j*e);e=+(k*j-h*e);b=744;g[b>>2]=f;g[b+4>>2]=e;i=d;return 744}function Es(b,c){b=b|0;c=c|0;var d=0,e=0.0,f=0.0,h=0.0,j=0.0,k=0.0;d=i;if((a[768]|0)==0?(wa(768)|0)!=0:0)Da(768);k=+g[b+24>>2];h=+g[c>>2];e=+g[b+20>>2];j=+g[c+4>>2];f=+(k*h+e*j);e=+(k*j-h*e);c=760;g[c>>2]=f;g[c+4>>2]=e;i=d;return 760}function Fs(b,c){b=b|0;c=c|0;var d=0,e=0.0,f=0.0;d=i;if((a[784]|0)==0?(wa(784)|0)!=0:0)Da(784);e=+g[b+72>>2];f=+(+g[b+64>>2]-e*(+g[c+4>>2]- +g[b+48>>2]));e=+(e*(+g[c>>2]- +g[b+44>>2])+ +g[b+68>>2]);c=776;g[c>>2]=f;g[c+4>>2]=e;i=d;return 776}function Gs(b,c){b=b|0;c=c|0;var d=0,e=0.0,f=0.0,h=0.0,j=0.0,k=0.0,l=0.0;d=i;if((a[800]|0)==0?(wa(800)|0)!=0:0)Da(800);k=+g[b+24>>2];j=+g[c>>2];h=+g[b+20>>2];e=+g[c+4>>2];l=+g[b+72>>2];f=+(+g[b+64>>2]-l*(j*h+k*e+ +g[b+16>>2]- +g[b+48>>2]));e=+(l*(+g[b+12>>2]+(k*j-h*e)- +g[b+44>>2])+ +g[b+68>>2]);c=792;g[c>>2]=f;g[c+4>>2]=e;i=d;return 792}function Hs(a){a=a|0;return+(+g[a+132>>2])}function Is(a,b){a=a|0;b=+b;g[a+132>>2]=b;return}function Js(a){a=a|0;return+(+g[a+136>>2])}function Ks(a,b){a=a|0;b=+b;g[a+136>>2]=b;return}function Ls(a){a=a|0;return+(+g[a+140>>2])}function Ms(a,b){a=a|0;b=+b;g[a+140>>2]=b;return}function Ns(a,d){a=a|0;d=d|0;var f=0,h=0,j=0,l=0,m=0,n=0,o=0,p=0,q=0.0,r=0.0,s=0.0,t=0.0,u=0.0,v=0;f=i;i=i+16|0;l=f;h=a+88|0;if(c[(c[h>>2]|0)+102868>>2]&2)Aa(8888,8624,115,8920);if((c[a>>2]|0)==(d|0)){i=f;return}c[a>>2]=d;Qx(a);if((c[a>>2]|0)==0?(g[a+64>>2]=0.0,g[a+68>>2]=0.0,g[a+72>>2]=0.0,s=+g[a+56>>2],g[a+52>>2]=s,j=a+44|0,m=c[j>>2]|0,j=c[j+4>>2]|0,p=a+36|0,c[p>>2]=m,c[p+4>>2]=j,t=+R(+s),g[l+8>>2]=t,s=+Q(+s),g[l+12>>2]=s,u=+g[a+28>>2],q=+g[a+32>>2],r=(c[k>>2]=m,+g[k>>2])-(s*u-t*q),q=(c[k>>2]=j,+g[k>>2])-(u*t+s*q),r=+r,q=+q,j=l,g[j>>2]=r,g[j+4>>2]=q,j=(c[h>>2]|0)+102872|0,m=c[a+100>>2]|0,(m|0)!=0):0){d=a+12|0;do{my(m,j,l,d);m=c[m+4>>2]|0}while((m|0)!=0)}l=a+4|0;j=e[l>>1]|0;if(!(j&2)){b[l>>1]=j|2;g[a+144>>2]=0.0}g[a+76>>2]=0.0;g[a+80>>2]=0.0;g[a+84>>2]=0.0;j=a+112|0;l=c[j>>2]|0;if(l)do{p=l;l=c[l+12>>2]|0;Xx((c[h>>2]|0)+102872|0,c[p+4>>2]|0)}while((l|0)!=0);c[j>>2]=0;j=c[h>>2]|0;n=c[a+100>>2]|0;if(!n){i=f;return}h=j+102912|0;a=j+102908|0;j=j+102904|0;do{o=c[n+28>>2]|0;if((o|0)>0){d=n+24|0;p=c[h>>2]|0;l=0;do{m=c[(c[d>>2]|0)+(l*28|0)+24>>2]|0;if((p|0)==(c[a>>2]|0)){v=c[j>>2]|0;c[a>>2]=p<<1;p=NB(p<<3)|0;c[j>>2]=p;SB(p|0,v|0,c[h>>2]<<2|0)|0;OB(v);p=c[h>>2]|0}c[(c[j>>2]|0)+(p<<2)>>2]=m;p=(c[h>>2]|0)+1|0;c[h>>2]=p;l=l+1|0}while((l|0)!=(o|0))}n=c[n+4>>2]|0}while((n|0)!=0);i=f;return}function Os(a){a=a|0;return c[a>>2]|0}function Ps(a,c){a=a|0;c=c|0;var d=0;a=a+4|0;d=e[a>>1]|0;b[a>>1]=c?d|8:d&65527;return}function Qs(a){a=a|0;return(b[a+4>>1]&8)!=0|0}function Rs(a,c){a=a|0;c=c|0;var d=0,f=0,h=0;d=i;f=a+4|0;h=e[f>>1]|0;if(c){b[f>>1]=h|4;i=d;return}c=h&65531;b[f>>1]=c;if(h&2){i=d;return}b[f>>1]=c|2;g[a+144>>2]=0.0;i=d;return}function Ss(a){a=a|0;return(b[a+4>>1]&4)!=0|0}function Ts(a,d){a=a|0;d=d|0;var f=0,h=0,j=0;f=i;h=a+4|0;j=e[h>>1]|0;if(!d){b[h>>1]=j&65533;g[a+144>>2]=0.0;d=a+64|0;c[d+0>>2]=0;c[d+4>>2]=0;c[d+8>>2]=0;c[d+12>>2]=0;c[d+16>>2]=0;c[d+20>>2]=0;i=f;return}if(j&2){i=f;return}b[h>>1]=j|2;g[a+144>>2]=0.0;i=f;return}function Us(a){a=a|0;return(b[a+4>>1]&2)!=0|0} function uy(f,h,j,l){f=f|0;h=+h;j=j|0;l=l|0;var m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0.0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,N=0,P=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ba=0,ca=0,da=0,ea=0,fa=0,ga=0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n>>2]=C}c[n>>2]=C|2;C=h>0.0;if(C)D=1.0/h;else D=0.0;G=f+102988|0;Kb=+g[G>>2]*h;K=a[f+102992>>0]|0;E=f+102872|0;F=f+102932|0;S=c[F>>2]|0;a:do if(S){H=f+102884|0;L=f+102876|0;P=f+102944|0;N=f+102940|0;b:while(1){W=c[S+48>>2]|0;U=c[S+52>>2]|0;V=c[S+56>>2]|0;T=c[S+60>>2]|0;Z=c[W+8>>2]|0;X=c[U+8>>2]|0;Y=S+4|0;$=c[Y>>2]|0;c:do if(!($&8))B=16;else{if(!(Tx(X,Z)|0)){Sc=c[S+12>>2]|0;Xx(E,S);S=Sc;break}_=c[N>>2]|0;do if(_)if(gb[c[(c[_>>2]|0)+8>>2]&63](_,W,U)|0){$=c[Y>>2]|0;break}else{Sc=c[S+12>>2]|0;Xx(E,S);S=Sc;break c}while(0);c[Y>>2]=$&-9;B=16}while(0);do if((B|0)==16){B=0;if(!(b[Z+4>>1]&2))Y=0;else Y=(c[Z>>2]|0)!=0;if(!(b[X+4>>1]&2))X=0;else X=(c[X>>2]|0)!=0;if(!(Y|X)){S=c[S+12>>2]|0;break}V=c[(c[W+24>>2]|0)+(V*28|0)+24>>2]|0;U=c[(c[U+24>>2]|0)+(T*28|0)+24>>2]|0;if((V|0)<=-1){B=24;break b}W=c[H>>2]|0;if((W|0)<=(V|0)){B=24;break b}T=c[L>>2]|0;if(!((U|0)>-1&(W|0)>(U|0))){B=26;break b}if((+g[T+(U*36|0)>>2]- +g[T+(V*36|0)+8>>2]>0.0?1:+g[T+(U*36|0)+4>>2]- +g[T+(V*36|0)+12>>2]>0.0)|+g[T+(V*36|0)>>2]- +g[T+(U*36|0)+8>>2]>0.0|+g[T+(V*36|0)+4>>2]- +g[T+(U*36|0)+12>>2]>0.0){Sc=c[S+12>>2]|0;Xx(E,S);S=Sc;break}else{My(S,c[P>>2]|0);S=c[S+12>>2]|0;break}}while(0);if(!S)break a}if((B|0)==24)Aa(11792,11736,164,11856);else if((B|0)==26)Aa(11792,11736,164,11856)}while(0);g[f+103e3>>2]=0.0;H=f+102995|0;if(!((a[H>>0]|0)==0|C^1)){L=f+103008|0;g[L>>2]=0.0;N=f+103012|0;g[N>>2]=0.0;P=f+103016|0;g[P>>2]=0.0;U=f+102960|0;S=f+68|0;oy(z,c[U>>2]|0,c[f+102936>>2]|0,c[f+102964>>2]|0,S,c[f+102944>>2]|0);T=f+102952|0;V=c[T>>2]|0;if(V)do{Sc=V+4|0;b[Sc>>1]=e[Sc>>1]&65534;V=c[V+96>>2]|0}while((V|0)!=0);V=c[F>>2]|0;if(V)do{Sc=V+4|0;c[Sc>>2]=c[Sc>>2]&-2;V=c[V+12>>2]|0}while((V|0)!=0);V=c[f+102956>>2]|0;if(V)do{a[V+60>>0]=0;V=c[V+12>>2]|0}while((V|0)!=0);Oa=c[U>>2]|0;Na=Ox(S,Oa<<2)|0;Qa=c[T>>2]|0;d:do if(Qa){Ka=z+28|0;Y=z+36|0;Ja=z+32|0;La=f+102976|0;Ga=z+8|0;Ha=z+48|0;Ia=z+16|0;ca=f+102968|0;da=f+102972|0;wa=z+20|0;Fa=z+24|0;ta=x+4|0;qa=x+8|0;na=x+12|0;ma=x+16|0;la=x+20|0;ka=x+21|0;ja=x+24|0;ea=x+28|0;ua=y+4|0;ga=y+8|0;Da=y+12|0;Ea=y+16|0;Ma=y+20|0;V=y+21|0;W=z+12|0;X=y+24|0;Z=y+28|0;_=y+32|0;$=y+36|0;aa=y+40|0;ba=K<<24>>24==0;ia=(j|0)>0;Pa=o+48|0;ha=o+40|0;oa=o+44|0;pa=(l|0)>0;sa=o+36|0;ra=o+24|0;U=p+8|0;va=p+12|0;xa=q+8|0;ya=q+12|0;za=r+8|0;Ba=r+16|0;Ca=o+32|0;fa=o+28|0;e:while(1){Ra=Qa+4|0;Sa=b[Ra>>1]|0;do if((Sa&35)==34?(c[Qa>>2]|0)!=0:0){c[Ka>>2]=0;c[Y>>2]=0;c[Ja>>2]=0;c[Na>>2]=Qa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2]|0;Ta=0;do{Ua=c[Sa+(Ta<<2)>>2]|0;if(!(c[Ua>>2]|0)){Sc=Ua+4|0;b[Sc>>1]=e[Sc>>1]&65534}Ta=Ta+1|0}while((Ta|0)<(Ra|0))}while(0);Qa=c[Qa+96>>2]|0;if(!Qa)break d}if((B|0)==43)Aa(11232,11088,445,11256);else if((B|0)==54)Aa(11264,11088,495,11256);else if((B|0)==61)Aa(11920,11952,68,11992);else if((B|0)==64)Aa(11264,11088,524,11256)}while(0);Px(S,Na);I=c[T>>2]|0;if(I)do{if((b[I+4>>1]&1)!=0?(c[I>>2]|0)!=0:0)Rx(I);I=c[I+96>>2]|0}while((I|0)!=0);Yx(E);g[f+103020>>2]=0.0;py(z);g[f+103004>>2]=0.0}if(a[f+102993>>0]|0){if(C){I=f+102944|0;oy(z,64,32,0,f+68|0,c[I>>2]|0);if(a[H>>0]|0){J=c[f+102952>>2]|0;if(J)do{Sc=J+4|0;b[Sc>>1]=e[Sc>>1]&65534;g[J+60>>2]=0.0;J=c[J+96>>2]|0}while((J|0)!=0);J=c[F>>2]|0;if(J)do{Sc=J+4|0;c[Sc>>2]=c[Sc>>2]&-34;c[J+128>>2]=0;g[J+132>>2]=1.0;J=c[J+12>>2]|0}while((J|0)!=0)}qa=z+28|0;pa=z+36|0;oa=z+32|0;na=s+4|0;ma=z+40|0;la=z+44|0;K=f+102994|0;ka=z+8|0;va=x+16|0;Ea=x+20|0;kb=x+24|0;Ba=x+44|0;Ca=x+48|0;jb=x+52|0;hb=x+28|0;ra=x+56|0;Gb=x+92|0;Fb=x+128|0;Eb=x+56|0;Db=x+60|0;Cb=x+64|0;Bb=x+68|0;Ab=x+72|0;zb=x+76|0;yb=x+80|0;nb=x+84|0;xb=x+88|0;wb=x+92|0;vb=x+96|0;ub=x+100|0;sb=x+104|0;rb=x+108|0;qb=x+112|0;pb=x+116|0;mb=x+120|0;ob=x+124|0;ib=p+4|0;fb=q+28|0;eb=q+88|0;db=q+56|0;cb=q+64|0;bb=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/6.2831854820251465))*6.2831854820251465;Ub=Ub-Xb;Xb=+g[mb>>2]-Xb;cc=+g[kb>>2]+ +g[jb>>2]+-.014999999664723873;cc=cc<.004999999888241291?.004999999888241291:cc;if(!(cc>.0012499999720603228)){B=172;break h}b[ib>>1]=0;c[q+0>>2]=c[x+0>>2];c[q+4>>2]=c[x+4>>2];c[q+8>>2]=c[x+8>>2];c[q+12>>2]=c[x+12>>2];c[q+16>>2]=c[x+16>>2];c[q+20>>2]=c[x+20>>2];c[q+24>>2]=c[x+24>>2];c[fb+0>>2]=c[hb+0>>2];c[fb+4>>2]=c[hb+4>>2];c[fb+8>>2]=c[hb+8>>2];c[fb+12>>2]=c[hb+12>>2];c[fb+16>>2]=c[hb+16>>2];c[fb+20>>2]=c[hb+20>>2];c[fb+24>>2]=c[hb+24>>2];a[eb>>0]=0;Vb=cc+.0012499999720603228;Wb=cc+-.0012499999720603228;Ob=0;Nb=0.0;i:while(1){mc=1.0-Nb;kc=mc*ec+Nb*bc;jc=+R(+kc);kc=+Q(+kc);pc=mc*Zb+Nb*hc-(kc*Sb-jc*Rb);lc=mc*_b+Nb*gc-(jc*Sb+kc*Rb);oc=mc*Ub+Nb*Xb;nc=+R(+oc);oc=+Q(+oc);qc=mc*Qb+Nb*fc-(oc*Yb-nc*$b);mc=mc*dc+Nb*Tb-(nc*Yb+oc*$b);rc=+pc;Mc=+lc;Sc=db;g[Sc>>2]=rc;g[Sc+4>>2]=Mc;g[cb>>2]=jc;g[bb>>2]=kc;Mc=+qc;rc=+mc;Sc=ab;g[Sc>>2]=Mc;g[Sc+4>>2]=rc;g[$a>>2]=nc;g[_a>>2]=oc;Yw(r,p,q);rc=+g[Za>>2];if(rc<=0.0){ic=2;Nb=0.0;break}if(rc >2]=x;c[Ya>>2]=hb;sc=c[ib>>2]|0;uc=sc&65535;ic=sc>>>16;vc=ic&255;sc=sc>>>24;tc=sc&255;if(!(uc<<16>>16!=0&(uc&65535)<3)){B=177;break h}g[Xa>>2]=Sb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=232;break h}if(pc>Vb){ic=4;Nb=1.0;B=246;break i}if(pc>Wb){Nb=jc;break}mc=+ex(o,uc,zc,Nb);if(mc 0.0))qc=-qc;if(qc<.0012499999720603228){jc=oc;break}tc=nc>cc;if((sc|0)==50)break;else{kc=tc?oc:kc;lc=tc?lc:oc;mc=tc?nc:mc;pc=tc?pc:nc}}Sc=c[1556]|0;c[1556]=(Sc|0)>(sc|0)?Sc:sc;if((ic|0)==16)break;Mc=+g[Va>>2];nc=+g[Ua>>2];mc=+g[Ta>>2];Lc=+g[Sa>>2];lc=+g[Ra>>2];kc=+g[Qa>>2];Jc=+g[Xa>>2];Ic=+g[Wa>>2];Fc=+g[Ma>>2];Dc=+g[La>>2];qc=+g[Ka>>2];Ec=+g[Ja>>2];oc=+g[Ia>>2];pc=+g[Ha>>2];Cc=+g[Oa>>2];rc=+g[Na>>2];sc=c[Fa>>2]|0;ic=ic+1|0}Ob=Ob+1|0;c[1550]=(c[1550]|0)+1;if((Ob|0)==20){Ob=20;ic=1;break}}if((B|0)==246){B=0;c[1550]=(c[1550]|0)+1;Ob=Ob+1|0}Sc=c[1552]|0;c[1552]=(Sc|0)>(Ob|0)?Sc:Ob;if((ic|0)==3){Mb=Mb+(1.0-Mb)*Nb;Mb=Mb<1.0?Mb:1.0}else Mb=1.0;g[Ib+132>>2]=Mb;c[Lb>>2]=c[Lb>>2]|32}else Mb=+g[Ib+132>>2];if(Mb >2]|0}while((Ib|0)!=0);if((Jb|0)==0|Kb>.9999988079071045){B=255;break}Lb=c[(c[Jb+48>>2]|0)+8>>2]|0;Ib=c[(c[Jb+52>>2]|0)+8>>2]|0;uc=Lb+28|0;Ob=t+0|0;ic=uc+0|0;sc=Ob+36|0;do{c[Ob>>2]=c[ic>>2];Ob=Ob+4|0;ic=ic+4|0}while((Ob|0)<(sc|0));tc=Ib+28|0;Ob=u+0|0;ic=tc+0|0;sc=Ob+36|0;do{c[Ob>>2]=c[ic>>2];Ob=Ob+4|0;ic=ic+4|0}while((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088,641,11344);break};case 163:{Aa(11360,11872,704,11912);break};case 167:{Aa(11360,11872,704,11912);break};case 170:{Aa(11360,11088,676,11344);break};case 172:{Aa(6232,6256,279,6304);break};case 177:{Aa(6456,6256,52,16288);break};case 180:{Aa(6336,6368,103,6416);break};case 182:{Aa(6336,6368,103,6416);break};case 187:{Aa(6336,6368,103,6416);break};case 189:{Aa(6336,6368,103,6416);break};case 193:{Aa(6336,6368,103,6416);break};case 197:{Aa(6336,6368,103,6416);break};case 199:{Aa(6336,6368,103,6416);break};case 203:{Aa(6336,6368,103,6416);break};case 214:{Aa(6336,6368,103,6416);break};case 216:{Aa(6336,6368,103,6416);break};case 223:{Aa(6336,6368,103,6416);break};case 230:{Aa(6336,6368,103,6416);break};case 232:{Aa(15224,6256,186,6432);break};case 255:{a[H>>0]=1;break};case 257:{Aa(11360,11872,704,11912);break};case 259:{Aa(11360,11872,704,11912);break};case 280:{Aa(11360,11872,704,11912);break};case 295:{Aa(10968,10992,386,11344);break};case 300:{Aa(11040,10992,387,11344);break};case 332:{a[H>>0]=0;break}}py(z);g[f+103024>>2]=0.0;B=334}}else B=334;if((B|0)==334?C:0)g[G>>2]=D;o=c[n>>2]|0;if(!(o&4)){Sc=o&-3;c[n>>2]=Sc;Sc=f+102996|0;g[Sc>>2]=0.0;i=m;return}p=c[f+102952>>2]|0;if(!p){Sc=o&-3;c[n>>2]=Sc;Sc=f+102996|0;g[Sc>>2]=0.0;i=m;return}do{g[p+76>>2]=0.0;g[p+80>>2]=0.0;g[p+84>>2]=0.0;p=c[p+96>>2]|0}while((p|0)!=0);Sc=o&-3;c[n>>2]=Sc;Sc=f+102996|0;g[Sc>>2]=0.0;i=m;return}function vy(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0.0,q=0.0,r=0.0,s=0.0,t=0,u=0.0,v=0.0,w=0,x=0,y=0,z=0.0;f=i;i=i+176|0;m=f+16|0;l=f+152|0;o=f+160|0;n=f+168|0;h=f+8|0;j=f;k=f+24|0;t=c[b+4>>2]|0;if((t|0)==3){k=c[b+16>>2]|0;m=c[b+12>>2]|0;b=d+12|0;p=+g[b>>2];v=+g[m>>2];o=d+8|0;q=+g[o>>2];u=+g[m+4>>2];s=+g[d>>2];n=d+4|0;r=+g[n>>2];g[h>>2]=s+(p*v-q*u);g[h+4>>2]=v*q+p*u+r;if((k|0)<=1){i=f;return}l=j+4|0;a=a+102984|0;t=1;while(1){u=+g[m+(t<<3)>>2];v=+g[m+(t<<3)+4>>2];g[j>>2]=s+(p*u-q*v);g[l>>2]=u*q+p*v+r;y=c[a>>2]|0;vb[c[(c[y>>2]|0)+24>>2]&63](y,h,j,e);y=c[a>>2]|0;ob[c[(c[y>>2]|0)+16>>2]&63](y,h,.05000000074505806,e);y=j;x=c[y+4>>2]|0;w=h;c[w>>2]=c[y>>2];c[w+4>>2]=x;t=t+1|0;if((t|0)==(k|0))break;p=+g[b>>2];q=+g[o>>2];s=+g[d>>2];r=+g[n>>2]}i=f;return}else if((t|0)==2){h=c[b+276>>2]|0;if((h|0)>=17)Aa(11376,11088,1077,11400);if((h|0)>0){j=b+20|0;q=+g[d+12>>2];r=+g[d+8>>2];p=+g[d>>2];s=+g[d+4>>2];d=0;do{z=+g[j+(d<<3)>>2];v=+g[j+(d<<3)+4>>2];u=+(p+(q*z-r*v));v=+(z*r+q*v+s);y=k+(d<<3)|0;g[y>>2]=u;g[y+4>>2]=v;d=d+1|0}while((d|0)!=(h|0))}y=c[a+102984>>2]|0;vb[c[(c[y>>2]|0)+12>>2]&63](y,k,h,e);i=f;return}else if((t|0)==1){u=+g[d+12>>2];v=+g[b+12>>2];s=+g[d+8>>2];r=+g[b+16>>2];q=+g[d>>2];z=+g[d+4>>2];g[o>>2]=q+(u*v-s*r);g[o+4>>2]=v*s+u*r+z;y=b+20|0;r=+g[y>>2];v=+g[y+4>>2];g[n>>2]=q+(u*r-s*v);g[n+4>>2]=r*s+u*v+z;y=c[a+102984>>2]|0;vb[c[(c[y>>2]|0)+24>>2]&63](y,o,n,e);i=f;return}else if(!t){v=+g[d+12>>2];r=+g[b+12>>2];u=+g[d+8>>2];s=+g[b+16>>2];z=r*u+v*s+ +g[d+4>>2];g[m>>2]=+g[d>>2]+(v*r-u*s);g[m+4>>2]=z;z=+g[b+8>>2];g[l>>2]=v-u*0.0;g[l+4>>2]=u+v*0.0;y=c[a+102984>>2]|0;mb[c[(c[y>>2]|0)+20>>2]&63](y,m,z,l,e);i=f;return}else{i=f;return}}function wy(a,c,d){a=a|0;c=c|0;d=d|0;var e=0;a=i;e=b[c+36>>1]|0;if(!(e<<16>>16==0?1:e<<16>>16!=(b[d+36>>1]|0))){e=e<<16>>16>0;i=a;return e|0}if(!((b[d+32>>1]&b[c+34>>1])<<16>>16)){e=0;i=a;return e|0}e=(b[d+34>>1]&b[c+32>>1])<<16>>16!=0;i=a;return e|0}function xy(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var h=0,j=0,k=0.0,l=0.0;h=i;f=Hx(f,148)|0;if(!f){j=0;i=h;return j|0}c[f+4>>2]=4;c[f+48>>2]=a;c[f+52>>2]=d;c[f+56>>2]=b;c[f+60>>2]=e;c[f+124>>2]=0;c[f+128>>2]=0;e=a+16|0;j=f+8|0;b=j+40|0;do{c[j>>2]=0;j=j+4|0}while((j|0)<(b|0));g[f+136>>2]=+O(+(+g[e>>2]*+g[d+16>>2]));l=+g[a+20>>2];k=+g[d+20>>2];g[f+140>>2]=l>k?l:k;g[f+144>>2]=0.0;c[f>>2]=12136;if((c[(c[a+12>>2]|0)+4>>2]|0)!=3)Aa(12344,12152,42,12224);if(!(c[(c[d+12>>2]|0)+4>>2]|0)){j=f;i=h;return j|0}else Aa(13952,12152,43,12224);return 0}function yy(a,b){a=a|0;b=b|0;var d=0;d=i;jb[c[(c[a>>2]|0)+4>>2]&127](a);Ix(b,a,148);i=d;return}function zy(a,d,e,f){a=a|0;d=d|0;e=e|0;f=f|0;var h=0,j=0,k=0,l=0;h=i;i=i+48|0;j=h;k=c[(c[a+48>>2]|0)+12>>2]|0;c[j>>2]=7008;c[j+4>>2]=1;g[j+8>>2]=.009999999776482582;l=j+28|0;c[l+0>>2]=0;c[l+4>>2]=0;c[l+8>>2]=0;c[l+12>>2]=0;b[l+16>>1]=0;kx(k,j,c[a+56>>2]|0);Tw(d,j,e,c[(c[a+52>>2]|0)+12>>2]|0,f);i=h;return}function Ay(a){a=a|0;return}function By(a){a=a|0;var b=0;b=i;OB(a);i=b;return}function Cy(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var h=0,j=0,k=0.0,l=0.0;h=i;f=Hx(f,148)|0;if(!f){j=0;i=h;return j|0}c[f+4>>2]=4;c[f+48>>2]=a;c[f+52>>2]=d;c[f+56>>2]=b;c[f+60>>2]=e;c[f+124>>2]=0;c[f+128>>2]=0;e=a+16|0;j=f+8|0;b=j+40|0;do{c[j>>2]=0;j=j+4|0}while((j|0)<(b|0));g[f+136>>2]=+O(+(+g[e>>2]*+g[d+16>>2]));l=+g[a+20>>2];k=+g[d+20>>2];g[f+140>>2]=l>k?l:k;g[f+144>>2]=0.0;c[f>>2]=12328;if((c[(c[a+12>>2]|0)+4>>2]|0)!=3)Aa(12344,12392,42,12464);if((c[(c[d+12>>2]|0)+4>>2]|0)==2){j=f;i=h;return j|0}else Aa(14208,12392,43,12464);return 0}function Dy(a,b){a=a|0;b=b|0;var d=0;d=i;jb[c[(c[a>>2]|0)+4>>2]&127](a);Ix(b,a,148);i=d;return}function Ey(a,d,e,f){a=a|0;d=d|0;e=e|0;f=f|0;var h=0,j=0,k=0,l=0;h=i;i=i+48|0;j=h;k=c[(c[a+48>>2]|0)+12>>2]|0;c[j>>2]=7008;c[j+4>>2]=1;g[j+8>>2]=.009999999776482582;l=j+28|0;c[l+0>>2]=0;c[l+4>>2]=0;c[l+8>>2]=0;c[l+12>>2]=0;b[l+16>>1]=0;kx(k,j,c[a+56>>2]|0);Uw(d,j,e,c[(c[a+52>>2]|0)+12>>2]|0,f);i=h;return}function Fy(a){a=a|0;return}function Gy(a){a=a|0;var b=0;b=i;OB(a);i=b;return}function Hy(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var h=0,j=0,k=0.0,l=0.0;b=i;f=Hx(f,148)|0;if(!f){j=0;i=b;return j|0}c[f+4>>2]=4;c[f+48>>2]=a;c[f+52>>2]=d;c[f+56>>2]=0;c[f+60>>2]=0;c[f+124>>2]=0;c[f+128>>2]=0;h=a+16|0;j=f+8|0;e=j+40|0;do{c[j>>2]=0;j=j+4|0}while((j|0)<(e|0));g[f+136>>2]=+O(+(+g[h>>2]*+g[d+16>>2]));l=+g[a+20>>2];k=+g[d+20>>2];g[f+140>>2]=l>k?l:k;g[f+144>>2]=0.0;c[f>>2]=12552;if(c[(c[a+12>>2]|0)+4>>2]|0)Aa(12568,12616,43,12680);if(!(c[(c[d+12>>2]|0)+4>>2]|0)){j=f;i=b;return j|0}else Aa(13952,12616,44,12680);return 0}function Iy(a,b){a=a|0;b=b|0;var d=0;d=i;jb[c[(c[a>>2]|0)+4>>2]&127](a);Ix(b,a,148);i=d;return}function Jy(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,h=0,j=0,k=0.0,l=0.0,m=0.0,n=0,o=0,p=0.0,q=0.0,r=0.0,s=0.0,t=0.0,u=0.0;f=i;o=c[(c[a+48>>2]|0)+12>>2]|0;n=c[(c[a+52>>2]|0)+12>>2]|0;h=b+60|0;c[h>>2]=0;a=o+12|0;k=+g[d+12>>2];q=+g[a>>2];p=+g[d+8>>2];l=+g[o+16>>2];j=n+12|0;s=+g[e+12>>2];u=+g[j>>2];t=+g[e+8>>2];r=+g[n+16>>2];m=+g[e>>2]+(s*u-t*r)-(+g[d>>2]+(k*q-p*l));l=u*t+s*r+ +g[e+4>>2]-(q*p+k*l+ +g[d+4>>2]);k=+g[o+8>>2]+ +g[n+8>>2];if(m*m+l*l>k*k){i=f;return}c[b+56>>2]=0;o=c[a+4>>2]|0;n=b+48|0;c[n>>2]=c[a>>2];c[n+4>>2]=o;g[b+40>>2]=0.0;g[b+44>>2]=0.0;c[h>>2]=1;n=c[j+4>>2]|0;o=b;c[o>>2]=c[j>>2];c[o+4>>2]=n;c[b+16>>2]=0;i=f;return}function Ky(a){a=a|0;return}function Ly(a){a=a|0;var b=0;b=i;OB(a);i=b;return}function My(d,f){d=d|0;f=f|0;var h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0;j=i;i=i+192|0;q=j+100|0;s=j+88|0;p=j+64|0;h=j;r=d+64|0;k=h+0|0;m=r+0|0;l=k+64|0;do{c[k>>2]=c[m>>2];k=k+4|0;m=m+4|0}while((k|0)<(l|0));l=d+4|0;o=c[l>>2]|0;c[l>>2]=o|4;o=o>>>1;t=c[d+48>>2]|0;u=c[d+52>>2]|0;k=(a[u+38>>0]|a[t+38>>0])<<24>>24!=0;n=c[t+8>>2]|0;m=c[u+8>>2]|0;v=n+12|0;w=m+12|0;if(!k){vb[c[c[d>>2]>>2]&63](d,r,v,w);u=d+124|0;p=(c[u>>2]|0)>0;if(p){w=c[h+60>>2]|0;x=(w|0)>0;t=0;do{s=d+(t*20|0)+72|0;g[s>>2]=0.0;r=d+(t*20|0)+76|0;g[r>>2]=0.0;q=c[d+(t*20|0)+80>>2]|0;a:do if(x){y=0;while(1){v=y+1|0;if((c[h+(y*20|0)+16>>2]|0)==(q|0))break;if((v|0)<(w|0))y=v;else break a}g[s>>2]=+g[h+(y*20|0)+8>>2];g[r>>2]=+g[h+(y*20|0)+12>>2]}while(0);t=t+1|0}while((t|0)<(c[u>>2]|0))}o=o&1;if(p^(o|0)!=0){r=n+4|0;q=e[r>>1]|0;if(!(q&2)){b[r>>1]=q|2;g[n+144>>2]=0.0}q=m+4|0;n=e[q>>1]|0;if(!(n&2)){b[q>>1]=n|2;g[m+144>>2]=0.0}}}else{t=c[t+12>>2]|0;x=c[u+12>>2]|0;u=c[d+56>>2]|0;y=c[d+60>>2]|0;c[q+16>>2]=0;c[q+20>>2]=0;g[q+24>>2]=0.0;c[q+44>>2]=0;c[q+48>>2]=0;g[q+52>>2]=0.0;Xw(q,t,u);Xw(q+28|0,x,y);y=q+56|0;c[y+0>>2]=c[v+0>>2];c[y+4>>2]=c[v+4>>2];c[y+8>>2]=c[v+8>>2];c[y+12>>2]=c[v+12>>2];y=q+72|0;c[y+0>>2]=c[w+0>>2];c[y+4>>2]=c[w+4>>2];c[y+8>>2]=c[w+8>>2];c[y+12>>2]=c[w+12>>2];a[q+88>>0]=1;b[s+4>>1]=0;Yw(p,s,q);p=+g[p+16>>2]<11920928955078125.0e-22;c[d+124>>2]=0;o=o&1}m=c[l>>2]|0;c[l>>2]=p?m|2:m&-3;l=(o|0)==0;m=p^1;n=(f|0)==0;if(!(l^1|m|n))lb[c[(c[f>>2]|0)+8>>2]&127](f,d);if(!(l|p|n))lb[c[(c[f>>2]|0)+12>>2]&127](f,d);if(k|m|n){i=j;return}pb[c[(c[f>>2]|0)+16>>2]&63](f,d,h);i=j;return}function Ny(b,d){b=b|0;d=d|0;var e=0,f=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0.0,t=0.0,u=0,v=0,w=0,x=0,y=0,z=0;e=i;c[b+0>>2]=c[d+0>>2];c[b+4>>2]=c[d+4>>2];c[b+8>>2]=c[d+8>>2];c[b+12>>2]=c[d+12>>2];c[b+16>>2]=c[d+16>>2];c[b+20>>2]=c[d+20>>2];r=c[d+40>>2]|0;m=b+32|0;c[m>>2]=r;f=c[d+28>>2]|0;j=b+48|0;c[j>>2]=f;h=b+36|0;c[h>>2]=Ox(r,f*88|0)|0;f=b+40|0;c[f>>2]=Ox(c[m>>2]|0,(c[j>>2]|0)*156|0)|0;c[b+24>>2]=c[d+32>>2];c[b+28>>2]=c[d+36>>2];m=c[d+24>>2]|0;d=b+44|0;c[d>>2]=m;if((c[j>>2]|0)<=0){i=e;return}k=b+20|0;b=b+8|0;l=0;while(1){n=c[m+(l<<2)>>2]|0;o=c[n+48>>2]|0;p=c[n+52>>2]|0;r=c[o+8>>2]|0;q=c[p+8>>2]|0;m=c[n+124>>2]|0;if((m|0)<=0){f=4;break}s=+g[(c[p+12>>2]|0)+8>>2];t=+g[(c[o+12>>2]|0)+8>>2];p=c[f>>2]|0;g[p+(l*156|0)+136>>2]=+g[n+136>>2];g[p+(l*156|0)+140>>2]=+g[n+140>>2];g[p+(l*156|0)+144>>2]=+g[n+144>>2];z=r+8|0;c[p+(l*156|0)+112>>2]=c[z>>2];y=q+8|0;c[p+(l*156|0)+116>>2]=c[y>>2];w=r+120|0;g[p+(l*156|0)+120>>2]=+g[w>>2];x=q+120|0;g[p+(l*156|0)+124>>2]=+g[x>>2];v=r+128|0;g[p+(l*156|0)+128>>2]=+g[v>>2];u=q+128|0;g[p+(l*156|0)+132>>2]=+g[u>>2];c[p+(l*156|0)+152>>2]=l;c[p+(l*156|0)+148>>2]=m;o=p+(l*156|0)+80|0;c[o+0>>2]=0;c[o+4>>2]=0;c[o+8>>2]=0;c[o+12>>2]=0;c[o+16>>2]=0;c[o+20>>2]=0;c[o+24>>2]=0;c[o+28>>2]=0;o=c[h>>2]|0;c[o+(l*88|0)+32>>2]=c[z>>2];c[o+(l*88|0)+36>>2]=c[y>>2];g[o+(l*88|0)+40>>2]=+g[w>>2];g[o+(l*88|0)+44>>2]=+g[x>>2];x=r+28|0;r=c[x+4>>2]|0;w=o+(l*88|0)+48|0;c[w>>2]=c[x>>2];c[w+4>>2]=r;w=q+28|0;r=c[w+4>>2]|0;q=o+(l*88|0)+56|0;c[q>>2]=c[w>>2];c[q+4>>2]=r;g[o+(l*88|0)+64>>2]=+g[v>>2];g[o+(l*88|0)+68>>2]=+g[u>>2];q=n+104|0;r=c[q+4>>2]|0;u=o+(l*88|0)+16|0;c[u>>2]=c[q>>2];c[u+4>>2]=r;u=n+112|0;r=c[u+4>>2]|0;q=o+(l*88|0)+24|0;c[q>>2]=c[u>>2];c[q+4>>2]=r;c[o+(l*88|0)+84>>2]=m;g[o+(l*88|0)+76>>2]=t;g[o+(l*88|0)+80>>2]=s;c[o+(l*88|0)+72>>2]=c[n+120>>2];q=0;do{r=n+(q*20|0)+64|0;if(!(a[k>>0]|0)){g[p+(l*156|0)+(q*36|0)+16>>2]=0.0;g[p+(l*156|0)+(q*36|0)+20>>2]=0.0}else{g[p+(l*156|0)+(q*36|0)+16>>2]=+g[b>>2]*+g[n+(q*20|0)+72>>2];g[p+(l*156|0)+(q*36|0)+20>>2]=+g[b>>2]*+g[n+(q*20|0)+76>>2]}x=p+(l*156|0)+(q*36|0)|0;g[p+(l*156|0)+(q*36|0)+24>>2]=0.0;g[p+(l*156|0)+(q*36|0)+28>>2]=0.0;g[p+(l*156|0)+(q*36|0)+32>>2]=0.0;z=o+(l*88|0)+(q<<3)|0;c[x+0>>2]=0;c[x+4>>2]=0;c[x+8>>2]=0;c[x+12>>2]=0;x=r;y=c[x+4>>2]|0;c[z>>2]=c[x>>2];c[z+4>>2]=y;q=q+1|0}while((q|0)!=(m|0));l=l+1|0;if((l|0)>=(c[j>>2]|0)){f=12;break}m=c[d>>2]|0}if((f|0)==4)Aa(13160,13176,73,13240);else if((f|0)==12){i=e;return}}function Oy(a){a=a|0;var b=0,d=0,e=0,f=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0.0,r=0.0,s=0.0,t=0.0,u=0.0,v=0.0,w=0.0,x=0.0,y=0.0,z=0.0,A=0.0,B=0.0,C=0.0,D=0.0,E=0.0,F=0.0,G=0,H=0,I=0.0,J=0.0,K=0.0,L=0.0,M=0.0,N=0.0,P=0.0,S=0.0,T=0.0,U=0,V=0,W=0,X=0,Y=0,Z=0.0,_=0.0,$=0.0,aa=0.0,ba=0.0;b=i;i=i+32|0;e=b;d=a+48|0;if((c[d>>2]|0)<=0){i=b;return}j=a+40|0;h=a+36|0;k=a+44|0;f=a+24|0;n=a+28|0;p=e+4|0;m=e+8|0;a=e+24|0;l=0;while(1){o=c[j>>2]|0;U=c[h>>2]|0;G=c[(c[k>>2]|0)+(c[o+(l*156|0)+152>>2]<<2)>>2]|0;W=c[o+(l*156|0)+112>>2]|0;H=c[o+(l*156|0)+116>>2]|0;D=+g[o+(l*156|0)+120>>2];C=+g[o+(l*156|0)+124>>2];q=+g[o+(l*156|0)+128>>2];r=+g[o+(l*156|0)+132>>2];X=U+(l*88|0)+48|0;N=+g[X>>2];P=+g[X+4>>2];X=U+(l*88|0)+56|0;M=+g[X>>2];T=+g[X+4>>2];X=c[f>>2]|0;Y=X+(W*12|0)|0;x=+g[Y>>2];y=+g[Y+4>>2];I=+g[X+(W*12|0)+8>>2];Y=c[n>>2]|0;V=Y+(W*12|0)|0;t=+g[V>>2];w=+g[V+4>>2];u=+g[Y+(W*12|0)+8>>2];W=X+(H*12|0)|0;z=+g[W>>2];A=+g[W+4>>2];J=+g[X+(H*12|0)+8>>2];X=Y+(H*12|0)|0;B=+g[X>>2];v=+g[X+4>>2];s=+g[Y+(H*12|0)+8>>2];H=c[G+124>>2]|0;if((H|0)<=0){d=4;break}E=+g[U+(l*88|0)+80>>2];F=+g[U+(l*88|0)+76>>2];K=+R(+I);L=+Q(+I);I=+R(+J);J=+Q(+J);S=x-(N*L-P*K);P=y-(P*L+N*K);N=z-(M*J-T*I);M=A-(T*J+M*I);U=c[G+120>>2]|0;a:do if((U|0)==2){_=+g[G+104>>2];T=+g[G+108>>2];Z=J*_-I*T;T=_*I+J*T;_=+Z;$=+T;U=e;g[U>>2]=_;g[U+4>>2]=$;$=+g[G+112>>2];_=+g[G+116>>2];N=N+(J*$-I*_);J=$*I+J*_+M;M=Z;I=T;U=0;do{$=+g[G+(U*20|0)+64>>2];_=+g[G+(U*20|0)+68>>2];T=S+(L*$-K*_);_=$*K+L*_+P;$=E-(M*(T-N)+(_-J)*I);Z=T+M*$;$=_+I*$;T=T-M*F;_=_-I*F;ba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=+g[e>>2]*(_-$)+ +g[p>>2]*(aa-ba);U=U+1|0;if((U|0)>=(H|0))break a;L=+g[e>>2];P=+g[p>>2]}}while(0);V=o+(l*156|0)+72|0;Y=e;H=c[Y+4>>2]|0;G=V;c[G>>2]=c[Y>>2];c[G+4>>2]=H;G=o+(l*156|0)+148|0;H=c[G>>2]|0;do if((H|0)>0){U=o+(l*156|0)+76|0;C=D+C;W=o+(l*156|0)+140|0;X=0;do{F=+g[e+(X<<3)+8>>2];D=F-x;aa=+g[e+(X<<3)+12>>2];J=+D;I=+(aa-y);Y=o+(l*156|0)+(X*36|0)|0;g[Y>>2]=J;g[Y+4>>2]=I;F=F-z;I=+F;aa=+(aa-A);Y=o+(l*156|0)+(X*36|0)+8|0;g[Y>>2]=I;g[Y+4>>2]=aa;aa=+g[U>>2];I=+g[o+(l*156|0)+(X*36|0)+4>>2];J=+g[V>>2];ba=D*aa-I*J;E=+g[o+(l*156|0)+(X*36|0)+12>>2];J=aa*F-J*E;J=C+ba*q*ba+J*r*J;if(J>0.0)J=1.0/J;else J=0.0;g[o+(l*156|0)+(X*36|0)+24>>2]=J;J=+g[U>>2];aa=-+g[V>>2];ba=D*aa-J*I;J=F*aa-J*E;J=C+ba*q*ba+J*r*J;if(J>0.0)J=1.0/J;else J=0.0;g[o+(l*156|0)+(X*36|0)+28>>2]=J;Y=o+(l*156|0)+(X*36|0)+32|0;g[Y>>2]=0.0;D=+g[V>>2]*(B-s*E-t+u*I)+ +g[U>>2]*(v+s*F-w-u*D);if(D<-1.0)g[Y>>2]=-(D*+g[W>>2]);X=X+1|0}while((X|0)!=(H|0));if((c[G>>2]|0)==2){$=+g[U>>2];t=+g[V>>2];_=+g[o+(l*156|0)>>2]*$- +g[o+(l*156|0)+4>>2]*t;s=$*+g[o+(l*156|0)+8>>2]-t*+g[o+(l*156|0)+12>>2];aa=$*+g[o+(l*156|0)+36>>2]-t*+g[o+(l*156|0)+40>>2];t=$*+g[o+(l*156|0)+44>>2]-t*+g[o+(l*156|0)+48>>2];$=q*_;ba=r*s;s=C+_*$+s*ba;q=C+aa*q*aa+t*r*t;r=C+$*aa+ba*t;t=s*q-r*r;if(!(s*s >2]=1;break}g[o+(l*156|0)+96>>2]=s;g[o+(l*156|0)+100>>2]=r;g[o+(l*156|0)+104>>2]=r;g[o+(l*156|0)+108>>2]=q;if(t!=0.0)t=1.0/t;ba=-(t*r);g[o+(l*156|0)+80>>2]=q*t;g[o+(l*156|0)+84>>2]=ba;g[o+(l*156|0)+88>>2]=ba;g[o+(l*156|0)+92>>2]=s*t}}while(0);l=l+1|0;if((l|0)>=(c[d>>2]|0)){d=32;break}}if((d|0)==4)Aa(13256,13176,171,13288);else if((d|0)==32){i=b;return}}function Py(a){a=a|0;var b=0,d=0,e=0,f=0,h=0,j=0,k=0,l=0.0,m=0.0,n=0.0,o=0.0,p=0.0,q=0.0,r=0,s=0.0,t=0.0,u=0.0,v=0.0,w=0.0,x=0.0,y=0.0,z=0.0,A=0.0,B=0.0,C=0.0,D=0.0,E=0.0,F=0.0,G=0.0,H=0,I=0.0,J=0.0,K=0,L=0.0,M=0.0,N=0.0,O=0.0,P=0.0,Q=0,R=0,S=0,T=0.0,U=0.0;b=i;e=a+48|0;if((c[e>>2]|0)<=0){i=b;return}d=a+40|0;h=a+28|0;H=c[h>>2]|0;j=0;a:while(1){r=c[d>>2]|0;a=c[r+(j*156|0)+112>>2]|0;f=c[r+(j*156|0)+116>>2]|0;o=+g[r+(j*156|0)+120>>2];m=+g[r+(j*156|0)+128>>2];n=+g[r+(j*156|0)+124>>2];l=+g[r+(j*156|0)+132>>2];K=c[r+(j*156|0)+148>>2]|0;k=H+(a*12|0)|0;S=k;R=H+(f*12|0)|0;Q=r+(j*156|0)+72|0;q=+g[Q>>2];p=+g[Q+4>>2];y=-q;z=+g[r+(j*156|0)+136>>2];Q=(K|0)==1;if((K+ -1|0)>>>0>=2){d=5;break}u=+g[R+4>>2];w=+g[R>>2];v=+g[S+4>>2];R=r+(j*156|0)+144|0;x=+g[S>>2];S=0;t=+g[H+(a*12|0)+8>>2];s=+g[H+(f*12|0)+8>>2];do{O=+g[r+(j*156|0)+(S*36|0)+12>>2];M=+g[r+(j*156|0)+(S*36|0)+8>>2];L=+g[r+(j*156|0)+(S*36|0)+4>>2];J=+g[r+(j*156|0)+(S*36|0)>>2];P=z*+g[r+(j*156|0)+(S*36|0)+16>>2];H=r+(j*156|0)+(S*36|0)+20|0;N=+g[H>>2];G=N- +g[r+(j*156|0)+(S*36|0)+28>>2]*(p*(w-s*O-x+t*L)+(u+s*M-v-t*J)*y- +g[R>>2]);I=-P;P=G >2]=P;P=p*N;N=N*y;x=x-o*P;v=v-o*N;t=t-m*(J*N-L*P);w=w+n*P;u=u+n*N;s=s+l*(M*N-O*P);S=S+1|0}while((S|0)!=(K|0));do if(!Q){K=r+(j*156|0)+16|0;M=+g[K>>2];H=r+(j*156|0)+52|0;L=+g[H>>2];if(!(M>=0.0)|!(L>=0.0)){d=10;break a}A=+g[r+(j*156|0)+12>>2];z=+g[r+(j*156|0)+8>>2];C=+g[r+(j*156|0)+4>>2];F=+g[r+(j*156|0)>>2];y=+g[r+(j*156|0)+48>>2];B=+g[r+(j*156|0)+44>>2];E=+g[r+(j*156|0)+40>>2];D=+g[r+(j*156|0)+36>>2];J=+g[r+(j*156|0)+104>>2];N=+g[r+(j*156|0)+100>>2];G=q*(w-s*A-x+t*C)+p*(u+s*z-v-t*F)- +g[r+(j*156|0)+32>>2]-(M*+g[r+(j*156|0)+96>>2]+L*J);I=q*(w-s*y-x+t*E)+p*(u+s*B-v-t*D)- +g[r+(j*156|0)+68>>2]-(M*N+L*+g[r+(j*156|0)+108>>2]);U=+g[r+(j*156|0)+80>>2]*G+ +g[r+(j*156|0)+88>>2]*I;T=G*+g[r+(j*156|0)+84>>2]+I*+g[r+(j*156|0)+92>>2];O=-U;P=-T;if(!(!(U<=-0.0)|!(T<=-0.0))){M=O-M;T=P-L;N=q*M;M=p*M;U=q*T;T=p*T;J=N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*U;u=u+n*P;s=s+l*(O*P-T*U);if(!H)break;else H=H+1|0}}while(0);U=+x;T=+v;H=k;g[H>>2]=U;g[H+4>>2]=T;H=c[h>>2]|0;g[H+(a*12|0)+8>>2]=t;T=+w;U=+u;H=H+(f*12|0)|0;g[H>>2]=T;g[H+4>>2]=U;H=c[h>>2]|0;g[H+(f*12|0)+8>>2]=s;j=j+1|0;if((j|0)>=(c[e>>2]|0)){d=22;break}}if((d|0)==5)Aa(13320,13176,314,13360);else if((d|0)==10)Aa(13392,13176,412,13360);else if((d|0)==22){i=b;return}}function Qy(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var h=0,j=0.0,k=0.0,l=0.0,m=0.0,n=0.0,o=0.0,p=0.0,q=0.0,r=0,s=0.0,t=0.0,u=0.0,v=0,w=0;h=i;if((c[b+84>>2]|0)<=0)Aa(13424,13176,623,16288);r=c[b+72>>2]|0;if((r|0)==2){v=e+12|0;j=+g[v>>2];k=+g[b+16>>2];r=e+8|0;l=+g[r>>2];q=+g[b+20>>2];p=j*k-l*q;q=k*l+j*q;j=+p;l=+q;w=a;g[w>>2]=j;g[w+4>>2]=l;l=+g[v>>2];j=+g[b+24>>2];k=+g[r>>2];m=+g[b+28>>2];s=+g[d+12>>2];u=+g[b+(f<<3)>>2];t=+g[d+8>>2];o=+g[b+(f<<3)+4>>2];n=+g[d>>2]+(s*u-t*o);o=u*t+s*o+ +g[d+4>>2];g[a+16>>2]=p*(n-(+g[e>>2]+(l*j-k*m)))+(o-(j*k+l*m+ +g[e+4>>2]))*q- +g[b+76>>2]- +g[b+80>>2];n=+n;o=+o;f=a+8|0;g[f>>2]=n;g[f+4>>2]=o;p=+-p;q=+-q;f=a;g[f>>2]=p;g[f+4>>2]=q;i=h;return}else if(!r){m=+g[d+12>>2];n=+g[b+24>>2];u=+g[d+8>>2];l=+g[b+28>>2];j=+g[d>>2]+(m*n-u*l);l=n*u+m*l+ +g[d+4>>2];m=+g[e+12>>2];u=+g[b>>2];n=+g[e+8>>2];o=+g[b+4>>2];k=+g[e>>2]+(m*u-n*o);o=u*n+m*o+ +g[e+4>>2];m=k-j;n=o-l;u=+m;p=+n;w=a;g[w>>2]=u;g[w+4>>2]=p;p=+O(+(m*m+n*n));if(p<1.1920928955078125e-7){p=m;q=n}else{q=1.0/p;p=m*q;g[a>>2]=p;q=n*q;g[a+4>>2]=q}t=+((j+k)*.5);u=+((l+o)*.5);w=a+8|0;g[w>>2]=t;g[w+4>>2]=u;g[a+16>>2]=m*p+n*q- +g[b+76>>2]- +g[b+80>>2];i=h;return}else if((r|0)==1){v=d+12|0;n=+g[v>>2];o=+g[b+16>>2];w=d+8|0;p=+g[w>>2];s=+g[b+20>>2];m=n*o-p*s;s=o*p+n*s;n=+m;p=+s;r=a;g[r>>2]=n;g[r+4>>2]=p;p=+g[v>>2];n=+g[b+24>>2];o=+g[w>>2];q=+g[b+28>>2];l=+g[e+12>>2];j=+g[b+(f<<3)>>2];k=+g[e+8>>2];u=+g[b+(f<<3)+4>>2];t=+g[e>>2]+(l*j-k*u);u=j*k+l*u+ +g[e+4>>2];g[a+16>>2]=m*(t-(+g[d>>2]+(p*n-o*q)))+(u-(n*o+p*q+ +g[d+4>>2]))*s- +g[b+76>>2]- +g[b+80>>2];t=+t;u=+u;w=a+8|0;g[w>>2]=t;g[w+4>>2]=u;i=h;return}else{i=h;return}}function Ry(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var h=0,j=0,k=0.0,l=0.0;b=i;f=Hx(f,148)|0;if(!f){j=0;i=b;return j|0}c[f+4>>2]=4;c[f+48>>2]=a;c[f+52>>2]=d;c[f+56>>2]=0;c[f+60>>2]=0;c[f+124>>2]=0;c[f+128>>2]=0;h=a+16|0;j=f+8|0;e=j+40|0;do{c[j>>2]=0;j=j+4|0}while((j|0)<(e|0));g[f+136>>2]=+O(+(+g[h>>2]*+g[d+16>>2]));l=+g[a+20>>2];k=+g[d+20>>2];g[f+140>>2]=l>k?l:k;g[f+144>>2]=0.0;c[f>>2]=13456;if((c[(c[a+12>>2]|0)+4>>2]|0)!=1)Aa(13632,13472,40,13536);if(!(c[(c[d+12>>2]|0)+4>>2]|0)){j=f;i=b;return j|0}else Aa(13952,13472,41,13536);return 0}function Sy(a,b){a=a|0;b=b|0;var d=0;d=i;jb[c[(c[a>>2]|0)+4>>2]&127](a);Ix(b,a,148);i=d;return}function Ty(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0;f=i;Tw(b,c[(c[a+48>>2]|0)+12>>2]|0,d,c[(c[a+52>>2]|0)+12>>2]|0,e);i=f;return}function Uy(a){a=a|0;return}function Vy(a){a=a|0;var b=0;b=i;OB(a);i=b;return}function Wy(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var h=0,j=0,k=0.0,l=0.0;b=i;f=Hx(f,148)|0;if(!f){j=0;i=b;return j|0}c[f+4>>2]=4;c[f+48>>2]=a;c[f+52>>2]=d;c[f+56>>2]=0;c[f+60>>2]=0;c[f+124>>2]=0;c[f+128>>2]=0;h=a+16|0;j=f+8|0;e=j+40|0;do{c[j>>2]=0;j=j+4|0}while((j|0)<(e|0));g[f+136>>2]=+O(+(+g[h>>2]*+g[d+16>>2]));l=+g[a+20>>2];k=+g[d+20>>2];g[f+140>>2]=l>k?l:k;g[f+144>>2]=0.0;c[f>>2]=13616;if((c[(c[a+12>>2]|0)+4>>2]|0)!=1)Aa(13632,13680,40,13752);if((c[(c[d+12>>2]|0)+4>>2]|0)==2){j=f;i=b;return j|0}else Aa(14208,13680,41,13752);return 0}function Xy(a,b){a=a|0;b=b|0;var d=0;d=i;jb[c[(c[a>>2]|0)+4>>2]&127](a);Ix(b,a,148);i=d;return}function Yy(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0;f=i;Uw(b,c[(c[a+48>>2]|0)+12>>2]|0,d,c[(c[a+52>>2]|0)+12>>2]|0,e);i=f;return}function Zy(a){a=a|0;return}function _y(a){a=a|0;var b=0;b=i;OB(a);i=b;return}function $y(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var h=0,j=0,k=0.0,l=0.0;b=i;f=Hx(f,148)|0;if(!f){j=0;i=b;return j|0}c[f+4>>2]=4;c[f+48>>2]=a;c[f+52>>2]=d;c[f+56>>2]=0;c[f+60>>2]=0;c[f+124>>2]=0;c[f+128>>2]=0;h=a+16|0;j=f+8|0;e=j+40|0;do{c[j>>2]=0;j=j+4|0}while((j|0)<(e|0));g[f+136>>2]=+O(+(+g[h>>2]*+g[d+16>>2]));l=+g[a+20>>2];k=+g[d+20>>2];g[f+140>>2]=l>k?l:k;g[f+144>>2]=0.0;c[f>>2]=13832;if((c[(c[a+12>>2]|0)+4>>2]|0)!=2)Aa(14072,13848,40,13920);if(!(c[(c[d+12>>2]|0)+4>>2]|0)){j=f;i=b;return j|0}else Aa(13952,13848,41,13920);return 0}function az(a,b){a=a|0;b=b|0;var d=0;d=i;jb[c[(c[a>>2]|0)+4>>2]&127](a);Ix(b,a,148);i=d;return}function bz(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,h=0,j=0,l=0.0,m=0.0,n=0.0,o=0,p=0,q=0,r=0.0,s=0.0,t=0.0,u=0.0,v=0.0,w=0.0,x=0.0,y=0.0,z=0;f=i;j=c[(c[a+48>>2]|0)+12>>2]|0;p=c[(c[a+52>>2]|0)+12>>2]|0;h=b+60|0;c[h>>2]=0;a=p+12|0;x=+g[e+12>>2];m=+g[a>>2];n=+g[e+8>>2];y=+g[p+16>>2];l=+g[e>>2]+(x*m-n*y)- +g[d>>2];y=m*n+x*y+ +g[e+4>>2]- +g[d+4>>2];x=+g[d+12>>2];n=+g[d+8>>2];m=l*x+y*n;n=x*y-l*n;l=+g[j+8>>2]+ +g[p+8>>2];p=c[j+276>>2]|0;do if((p|0)>0){d=0;e=0;r=-3.4028234663852886e+38;while(1){s=(m- +g[j+(d<<3)+20>>2])*+g[j+(d<<3)+148>>2]+(n- +g[j+(d<<3)+24>>2])*+g[j+(d<<3)+152>>2];if(s>l){d=19;break}z=s>r;r=z?s:r;e=z?d:e;d=d+1|0;if((d|0)>=(p|0)){d=4;break}}if((d|0)==4){z=r<1.1920928955078125e-7;break}else if((d|0)==19){i=f;return}}else{e=0;z=1}while(0);q=e+1|0;o=j+(e<<3)+20|0;d=c[o>>2]|0;o=c[o+4>>2]|0;x=(c[k>>2]=d,+g[k>>2]);t=(c[k>>2]=o,+g[k>>2]);q=j+(((q|0)<(p|0)?q:0)<<3)+20|0;p=c[q>>2]|0;q=c[q+4>>2]|0;y=(c[k>>2]=p,+g[k>>2]);w=(c[k>>2]=q,+g[k>>2]);if(z){c[h>>2]=1;c[b+56>>2]=1;z=j+(e<<3)+148|0;q=c[z+4>>2]|0;p=b+40|0;c[p>>2]=c[z>>2];c[p+4>>2]=q;x=+((x+y)*.5);y=+((t+w)*.5);p=b+48|0;g[p>>2]=x;g[p+4>>2]=y;p=a;q=c[p+4>>2]|0;z=b;c[z>>2]=c[p>>2];c[z+4>>2]=q;c[b+16>>2]=0;i=f;return}s=m-x;u=n-t;r=m-y;v=n-w;if(s*(y-x)+u*(w-t)<=0.0){m=s*s+u*u;if(m>l*l){i=f;return}c[h>>2]=1;c[b+56>>2]=1;h=b+40|0;y=+s;l=+u;z=h;g[z>>2]=y;g[z+4>>2]=l;l=+O(+m);if(!(l<1.1920928955078125e-7)){y=1.0/l;g[h>>2]=s*y;g[b+44>>2]=u*y}p=b+48|0;c[p>>2]=d;c[p+4>>2]=o;p=a;q=c[p+4>>2]|0;z=b;c[z>>2]=c[p>>2];c[z+4>>2]=q;c[b+16>>2]=0;i=f;return}if(!(r*(x-y)+v*(t-w)<=0.0)){r=(x+y)*.5;s=(t+w)*.5;d=j+(e<<3)+148|0;if((m-r)*+g[d>>2]+(n-s)*+g[j+(e<<3)+152>>2]>l){i=f;return}c[h>>2]=1;c[b+56>>2]=1;z=d;q=c[z+4>>2]|0;p=b+40|0;c[p>>2]=c[z>>2];c[p+4>>2]=q;x=+r;y=+s;p=b+48|0;g[p>>2]=x;g[p+4>>2]=y;p=a;q=c[p+4>>2]|0;z=b;c[z>>2]=c[p>>2];c[z+4>>2]=q;c[b+16>>2]=0;i=f;return}m=r*r+v*v;if(m>l*l){i=f;return}c[h>>2]=1;c[b+56>>2]=1;h=b+40|0;y=+r;l=+v;z=h;g[z>>2]=y;g[z+4>>2]=l;l=+O(+m);if(!(l<1.1920928955078125e-7)){y=1.0/l;g[h>>2]=r*y;g[b+44>>2]=v*y}z=b+48|0;c[z>>2]=p;c[z+4>>2]=q;p=a;q=c[p+4>>2]|0;z=b;c[z>>2]=c[p>>2];c[z+4>>2]=q;c[b+16>>2]=0;i=f;return}function cz(a){a=a|0;return}function dz(a){a=a|0;var b=0;b=i;OB(a);i=b;return}function ez(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var h=0,j=0,k=0.0,l=0.0;b=i;f=Hx(f,148)|0;if(!f){j=0;i=b;return j|0}c[f+4>>2]=4;c[f+48>>2]=a;c[f+52>>2]=d;c[f+56>>2]=0;c[f+60>>2]=0;c[f+124>>2]=0;c[f+128>>2]=0;h=a+16|0;j=f+8|0;e=j+40|0;do{c[j>>2]=0;j=j+4|0}while((j|0)<(e|0));g[f+136>>2]=+O(+(+g[h>>2]*+g[d+16>>2]));l=+g[a+20>>2];k=+g[d+20>>2];g[f+140>>2]=l>k?l:k;g[f+144>>2]=0.0;c[f>>2]=14056;if((c[(c[a+12>>2]|0)+4>>2]|0)!=2)Aa(14072,14120,43,14184);if((c[(c[d+12>>2]|0)+4>>2]|0)==2){j=f;i=b;return j|0}else Aa(14208,14120,44,14184);return 0}function fz(a,b){a=a|0;b=b|0;var d=0;d=i;jb[c[(c[a>>2]|0)+4>>2]&127](a);Ix(b,a,148);i=d;return}function gz(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var h=0,j=0,k=0.0,l=0.0,m=0.0,n=0.0,o=0.0,p=0,q=0,r=0,s=0.0,t=0.0,u=0.0,v=0.0,w=0.0,x=0.0,y=0.0,z=0.0,A=0,B=0.0,C=0.0,D=0.0,E=0,F=0,G=0.0,H=0,I=0,J=0.0,K=0,L=0.0,M=0.0,N=0.0;h=i;i=i+80|0;F=h+76|0;r=h+72|0;p=h;q=h+48|0;j=h+24|0;A=c[(c[b+48>>2]|0)+12>>2]|0;E=c[(c[b+52>>2]|0)+12>>2]|0;b=d+60|0;c[b>>2]=0;k=+g[A+8>>2]+ +g[E+8>>2];c[F>>2]=0;l=+Vw(F,A,e,E,f);if(l>k){i=h;return}c[r>>2]=0;m=+Vw(r,E,f,A,e);if(m>k){i=h;return}if(m>l+.0005000000237487257){s=+g[f>>2];v=+g[f+4>>2];u=+g[f+8>>2];t=+g[f+12>>2];o=+g[e>>2];l=+g[e+4>>2];m=+g[e+8>>2];n=+g[e+12>>2];r=c[r>>2]|0;c[d+56>>2]=2;f=1;e=E}else{s=+g[e>>2];v=+g[e+4>>2];u=+g[e+8>>2];t=+g[e+12>>2];o=+g[f>>2];l=+g[f+4>>2];m=+g[f+8>>2];n=+g[f+12>>2];r=c[F>>2]|0;c[d+56>>2]=1;f=0;e=A;A=E}E=c[A+276>>2]|0;if((r|0)<=-1)Aa(5264,5304,74,5360);F=c[e+276>>2]|0;if((F|0)<=(r|0))Aa(5264,5304,74,5360);w=+g[e+(r<<3)+148>>2];L=+g[e+(r<<3)+152>>2];x=t*w-u*L;L=u*w+t*L;w=n*x+m*L;x=n*L-m*x;if((E|0)>0){H=0;K=0;y=3.4028234663852886e+38;while(1){z=w*+g[A+(H<<3)+148>>2]+x*+g[A+(H<<3)+152>>2];I=z
>2];D=+g[A+(K<<3)+24>>2];B=+(o+(n*z-m*D));D=+(l+(m*z+n*D));H=p;g[H>>2]=B;g[H+4>>2]=D;H=r&255;E=p+8|0;a[E>>0]=H;a[E+1>>0]=K;a[E+2>>0]=1;a[E+3>>0]=0;D=+g[A+(I<<3)+20>>2];B=+g[A+(I<<3)+24>>2];z=+(o+(n*D-m*B));B=+(l+(m*D+n*B));A=p+12|0;g[A>>2]=z;g[A+4>>2]=B;A=p+20|0;a[A>>0]=H;a[A+1>>0]=I;a[A+2>>0]=1;a[A+3>>0]=0;A=r+1|0;A=(A|0)<(F|0)?A:0;K=e+(r<<3)+20|0;B=+g[K>>2];z=+g[K+4>>2];K=e+(A<<3)+20|0;D=+g[K>>2];C=+g[K+4>>2];G=D-B;L=C-z;w=+O(+(G*G+L*L));if(!(w<1.1920928955078125e-7)){J=1.0/w;G=G*J;L=L*J}J=t*G-u*L;x=t*L+u*G;y=-J;N=s+(t*B-u*z);M=v+(u*B+t*z);w=N*x+M*y;if((Ww(q,p,y,-x,k-(N*J+M*x),r)|0)<2){i=h;return}if((Ww(j,q,J,x,k+((s+(t*D-u*C))*J+(v+(u*D+t*C))*x),A)|0)<2){i=h;return}N=+L;M=+-G;p=d+40|0;g[p>>2]=N;g[p+4>>2]=M;M=+((B+D)*.5);N=+((z+C)*.5);p=d+48|0;g[p>>2]=M;g[p+4>>2]=N;p=f<<24>>24==0;q=0;r=0;do{s=+g[j+(q*12|0)>>2];t=+g[j+(q*12|0)+4>>2];if(x*s+t*y-w<=k){N=s-o;L=t-l;M=+(n*N+m*L);N=+(n*L-m*N);e=d+(r*20|0)|0;g[e>>2]=M;g[e+4>>2]=N;e=d+(r*20|0)+16|0;f=c[j+(q*12|0)+8>>2]|0;c[e>>2]=f;if(!p){a[e>>0]=f>>>8;a[e+1>>0]=f;a[e+2>>0]=f>>>24;a[e+3>>0]=f>>>16}r=r+1|0}q=q+1|0}while((q|0)!=2);c[b>>2]=r;i=h;return}function hz(a){a=a|0;return}function iz(a){a=a|0;var b=0;b=i;OB(a);i=b;return}function jz(b,d){b=b|0;d=d|0;var e=0.0,f=0.0,h=0.0,j=0.0,l=0,m=0,n=0,o=0,p=0.0,q=0.0,r=0.0,s=0.0,t=0.0,u=0.0,v=0.0,w=0.0,x=0.0,y=0.0,z=0.0,A=0,B=0.0,C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+68>>2]>0.0){q=1;i=d;return q|0}e=a+108|0;q=c[e>>2]|0;p=b+24|0;x=c[p>>2]|0;b=x+(q*12|0)|0;w=b;n=+g[w>>2];o=+g[w+4>>2];f=+g[x+(q*12|0)+8>>2];q=a+112|0;w=c[q>>2]|0;y=x+(w*12|0)|0;r=+g[y>>2];s=+g[y+4>>2];k=+g[x+(w*12|0)+8>>2];l=+R(+f);t=+Q(+f);v=+R(+k);u=+Q(+k);m=+g[a+80>>2]- +g[a+140>>2];j=+g[a+84>>2]- +g[a+144>>2];h=t*m-l*j;j=l*m+t*j;t=+g[a+88>>2]- +g[a+148>>2];m=+g[a+92>>2]- +g[a+152>>2];l=u*t-v*m;m=v*t+u*m;u=r+l-n-h;t=s+m-o-j;v=+O(+(u*u+t*t));if(v<1.1920928955078125e-7)v=0.0;else{z=1.0/v;u=u*z;t=t*z}v=v- +g[a+104>>2];v=v<.20000000298023224?v:.20000000298023224;v=v<-.20000000298023224?-.20000000298023224:v;B=-(+g[a+172>>2]*v);A=u*B;u=t*B;B=+g[a+156>>2];t=f- +g[a+164>>2]*(h*u-j*A);j=+g[a+160>>2];z=k+ +g[a+168>>2]*(l*u-m*A);n=+(n-B*A);o=+(o-B*u);y=b;g[y>>2]=n;g[y+4>>2]=o;y=c[p>>2]|0;g[y+((c[e>>2]|0)*12|0)+8>>2]=t;t=+(r+j*A);u=+(s+j*u);y=y+((c[q>>2]|0)*12|0)|0;g[y>>2]=t;g[y+4>>2]=u;g[(c[p>>2]|0)+((c[q>>2]|0)*12|0)+8>>2]=z;if(!(v>0.0))v=-v;y=v<.004999999888241291;i=d;return y|0}function mz(a,b){a=a|0;b=b|0;var d=0.0,e=0.0,f=0.0,h=0.0,i=0.0,j=0;j=c[b+48>>2]|0;i=+g[j+24>>2];h=+g[b+80>>2];f=+g[j+20>>2];e=+g[b+84>>2];d=h*f+i*e+ +g[j+16>>2];g[a>>2]=+g[j+12>>2]+(i*h-f*e);g[a+4>>2]=d;return}function nz(a,b){a=a|0;b=b|0;var d=0.0,e=0.0,f=0.0,h=0.0,i=0.0,j=0;j=c[b+52>>2]|0;i=+g[j+24>>2];h=+g[b+88>>2];f=+g[j+20>>2];e=+g[b+92>>2];d=h*f+i*e+ +g[j+16>>2];g[a>>2]=+g[j+12>>2]+(i*h-f*e);g[a+4>>2]=d;return}function oz(a,b,c){a=a|0;b=b|0;c=+c;var d=0.0;d=+g[b+100>>2]*c;c=d*+g[b+120>>2];g[a>>2]=+g[b+116>>2]*d;g[a+4>>2]=c;return}function pz(a,b){a=a|0;b=+b;return 0.0}function qz(a){a=a|0;var b=0,e=0,f=0,j=0.0,l=0;b=i;i=i+16|0;e=b;l=c[(c[a+48>>2]|0)+8>>2]|0;f=c[(c[a+52>>2]|0)+8>>2]|0;Nx(14352,e);c[e>>2]=l;Nx(17320,e);c[e>>2]=f;Nx(17352,e);c[e>>2]=d[a+61>>0];Nx(17384,e);j=+g[a+84>>2];h[k>>3]=+g[a+80>>2];c[e>>2]=c[k>>2];c[e+4>>2]=c[k+4>>2];f=e+8|0;h[k>>3]=j;c[f>>2]=c[k>>2];c[f+4>>2]=c[k+4>>2];Nx(17424,e);j=+g[a+92>>2];h[k>>3]=+g[a+88>>2];c[e>>2]=c[k>>2];c[e+4>>2]=c[k+4>>2];f=e+8|0;h[k>>3]=j;c[f>>2]=c[k>>2];c[f+4>>2]=c[k+4>>2];Nx(17472,e);h[k>>3]=+g[a+104>>2];c[e>>2]=c[k>>2];c[e+4>>2]=c[k+4>>2];Nx(14384,e);h[k>>3]=+g[a+68>>2];c[e>>2]=c[k>>2];c[e+4>>2]=c[k+4>>2];Nx(17656,e);h[k>>3]=+g[a+72>>2];c[e>>2]=c[k>>2];c[e+4>>2]=c[k+4>>2];Nx(17688,e);c[e>>2]=c[a+56>>2];Nx(17720,e);i=b;return}function rz(a){a=a|0;return}function sz(a){a=a|0;var b=0;b=i;OB(a);i=b;return}function tz(b,d){b=b|0;d=d|0;var e=0.0,f=0.0,h=0.0,j=0.0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.0,C=0.0,D=0.0,E=0,F=0;q=i;k=a+104|0;o=c[k>>2]|0;j=b+28|0;E=c[j>>2]|0;z=E+(o*12|0)|0;l=+g[z>>2];h=+g[z+4>>2];y=+g[E+(o*12|0)+8>>2];o=a+108|0;z=c[o>>2]|0;F=E+(z*12|0)|0;m=+g[F>>2];n=+g[F+4>>2];x=+g[E+(z*12|0)+8>>2];f=+g[a+144>>2];e=+g[a+148>>2];d=+g[a+152>>2];p=+g[a+156>>2];B=+g[b>>2];b=a+92|0;s=+g[b>>2];w=B*+g[a+100>>2];t=s-(x-y)*+g[a+176>>2];v=-w;w=t >2]=w;s=w-s;y=y-d*s;s=x+p*s;x=+g[a+124>>2];w=+g[a+120>>2];v=+g[a+116>>2];t=+g[a+112>>2];D=v*y+(m-x*s-l);C=n+w*s-h-t*y;A=+g[a+164>>2]*D+ +g[a+172>>2]*C;b=a+84|0;z=b;u=+g[z>>2];r=+g[z+4>>2];C=u-(+g[a+160>>2]*D+ +g[a+168>>2]*C);g[b>>2]=C;z=a+88|0;A=+g[z>>2]-A;g[z>>2]=A;B=B*+g[a+96>>2];D=C*C+A*A;if(D>B*B){D=+O(+D);if(!(D<1.1920928955078125e-7)){D=1.0/D;C=C*D;g[b>>2]=C;A=A*D;g[z>>2]=A}C=B*C;g[b>>2]=C;A=B*A;g[z>>2]=A}D=C-u;C=A-r;B=+(l-f*D);A=+(h-f*C);F=(c[j>>2]|0)+((c[k>>2]|0)*12|0)|0;g[F>>2]=B;g[F+4>>2]=A;F=c[j>>2]|0;g[F+((c[k>>2]|0)*12|0)+8>>2]=y-d*(t*C-D*v);A=+(m+e*D);B=+(n+e*C);F=F+((c[o>>2]|0)*12|0)|0;g[F>>2]=A;g[F+4>>2]=B;g[(c[j>>2]|0)+((c[o>>2]|0)*12|0)+8>>2]=s+p*(C*w-D*x);i=q;return}function vz(a,b){a=a|0;b=b|0;return 1}function wz(a,b){a=a|0;b=b|0;var d=0.0,e=0.0,f=0.0,h=0.0,i=0.0,j=0;j=c[b+48>>2]|0;i=+g[j+24>>2];h=+g[b+68>>2];f=+g[j+20>>2];e=+g[b+72>>2];d=h*f+i*e+ +g[j+16>>2];g[a>>2]=+g[j+12>>2]+(i*h-f*e);g[a+4>>2]=d;return}function xz(a,b){a=a|0;b=b|0;var d=0.0,e=0.0,f=0.0,h=0.0,i=0.0,j=0;j=c[b+52>>2]|0;i=+g[j+24>>2];h=+g[b+76>>2];f=+g[j+20>>2];e=+g[b+80>>2];d=h*f+i*e+ +g[j+16>>2];g[a>>2]=+g[j+12>>2]+(i*h-f*e);g[a+4>>2]=d;return}function yz(a,b,c){a=a|0;b=b|0;c=+c;var d=0.0;d=+g[b+88>>2]*c;g[a>>2]=+g[b+84>>2]*c;g[a+4>>2]=d;return}function zz(a,b){a=a|0;b=+b;return+(+g[a+92>>2]*b)}function Az(a){a=a|0;var b=0,e=0,f=0,j=0.0,l=0;b=i;i=i+16|0;e=b;l=c[(c[a+48>>2]|0)+8>>2]|0;f=c[(c[a+52>>2]|0)+8>>2]|0;Nx(14672,e);c[e>>2]=l;Nx(17320,e);c[e>>2]=f;Nx(17352,e);c[e>>2]=d[a+61>>0];Nx(17384,e);j=+g[a+72>>2];h[k>>3]=+g[a+68>>2];c[e>>2]=c[k>>2];c[e+4>>2]=c[k+4>>2];f=e+8|0;h[k>>3]=j;c[f>>2]=c[k>>2];c[f+4>>2]=c[k+4>>2];Nx(17424,e);j=+g[a+80>>2];h[k>>3]=+g[a+76>>2];c[e>>2]=c[k>>2];c[e+4>>2]=c[k+4>>2];f=e+8|0;h[k>>3]=j;c[f>>2]=c[k>>2];c[f+4>>2]=c[k+4>>2];Nx(17472,e);h[k>>3]=+g[a+96>>2];c[e>>2]=c[k>>2];c[e+4>>2]=c[k+4>>2];Nx(14704,e);h[k>>3]=+g[a+100>>2];c[e>>2]=c[k>>2];c[e+4>>2]=c[k+4>>2];Nx(14736,e);c[e>>2]=c[a+56>>2];Nx(17720,e);i=b;return}function Bz(a){a=a|0;return}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[b+132>>2];fa=+g[b+136>>2];ga=T*la-N*fa;fa=N*la+T*fa;la=+g[b+116>>2]-P;ea=+g[b+120>>2]- +g[b+204>>2];ha=+g[b+100>>2]- +g[O>>2];ia=+g[b+104>>2]- +g[b+188>>2];ja=+g[b+152>>2];ka=ga*ja;P=fa*ja;na=+ka;ma=+P;da=b+248|0;g[da>>2]=na;g[da+4>>2]=ma;N=(fa*(T*la-N*ea)-ga*(N*la+T*ea))*ja;g[b+268>>2]=N;S=ja*(fa*(S*ha-M*ia)-ga*(M*ha+S*ia));g[b+260>>2]=S;T=ja*ja*(B+z)+N*F*N+S*S*D;M=ka}T=U+T;g[H>>2]=T;if(T>0.0)T=1.0/T;else T=0.0;g[H>>2]=T;H=b+156|0;if(!(a[d+20>>0]|0)){g[H>>2]=0.0;T=G;U=u;fa=f;ga=h;ia=j;ja=l;la=m;ma=n;ea=o;ha=p;ka=q;na=r;da=c[s>>2]|0;ca=c[t>>2]|0;da=ca+(da*12|0)|0;T=+T;U=+U;ca=da;g[ca>>2]=T;da=da+4|0;g[da>>2]=U;da=c[s>>2]|0;ca=c[t>>2]|0;da=ca+(da*12|0)+8|0;g[da>>2]=ea;da=c[e>>2]|0;da=ca+(da*12|0)|0;fa=+fa;ga=+ga;ca=da;g[ca>>2]=fa;da=da+4|0;g[da>>2]=ga;da=c[e>>2]|0;ca=c[t>>2]|0;da=ca+(da*12|0)+8|0;g[da>>2]=ha;da=c[v>>2]|0;da=ca+(da*12|0)|0;ia=+ia;ja=+ja;ca=da;g[ca>>2]=ia;da=da+4|0;g[da>>2]=ja;da=c[v>>2]|0;ca=c[t>>2]|0;da=ca+(da*12|0)+8|0;g[da>>2]=ka;da=c[w>>2]|0;da=ca+(da*12|0)|0;la=+la;ma=+ma;ca=da;g[ca>>2]=la;da=da+4|0;g[da>>2]=ma;da=c[w>>2]|0;ca=c[t>>2]|0;da=ca+(da*12|0)+8|0;g[da>>2]=na;i=x;return}else{na=+g[H>>2];U=y*na;ga=na*z;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=a+168|0;b=c[n>>2]|0;G=H+(b*12|0)|0;t=+g[G>>2];s=+g[G+4>>2];h=+g[H+(b*12|0)+8>>2];b=a+172|0;G=c[b>>2]|0;I=H+(G*12|0)|0;m=+g[I>>2];l=+g[I+4>>2];F=+g[H+(G*12|0)+8>>2];q=+g[a+240>>2];r=+g[a+244>>2];j=+g[a+248>>2];k=+g[a+252>>2];A=+g[a+256>>2];o=+g[a+264>>2];v=+g[a+260>>2];f=+g[a+268>>2];B=+g[a+272>>2]*((C-t)*q+(D-s)*r+((x-m)*j+(y-l)*k)+(w*A-h*o+(p*v-F*f)));E=-B;G=a+156|0;g[G>>2]=+g[G>>2]-B;B=+g[a+208>>2]*E;A=w+ +g[a+224>>2]*E*A;w=+g[a+212>>2]*E;v=p+ +g[a+228>>2]*E*v;p=+g[a+216>>2]*E;o=h- +g[a+232>>2]*E*o;h=+g[a+220>>2]*E;f=F- +g[a+236>>2]*E*f;C=+(C+q*B);B=+(D+r*B);a=(c[e>>2]|0)+((c[z>>2]|0)*12|0)|0;g[a>>2]=C;g[a+4>>2]=B;a=c[e>>2]|0;g[a+((c[z>>2]|0)*12|0)+8>>2]=A;x=+(x+j*w);w=+(y+w*k);a=a+((c[u>>2]|0)*12|0)|0;g[a>>2]=x;g[a+4>>2]=w;a=c[e>>2]|0;g[a+((c[u>>2]|0)*12|0)+8>>2]=v;q=+(t-q*p);p=+(s-r*p);a=a+((c[n>>2]|0)*12|0)|0;g[a>>2]=q;g[a+4>>2]=p;a=c[e>>2]|0;g[a+((c[n>>2]|0)*12|0)+8>>2]=o;j=+(m-j*h);h=+(l-k*h);a=a+((c[b>>2]|0)*12|0)|0;g[a>>2]=j;g[a+4>>2]=h;g[(c[e>>2]|0)+((c[b>>2]|0)*12|0)+8>>2]=f;i=d;return}function Fz(a,b){a=a|0;b=b|0;var d=0,e=0,f=0.0,h=0.0,j=0.0,k=0.0,l=0.0,m=0.0,n=0,o=0.0,p=0.0,q=0,r=0,s=0.0,t=0.0,u=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[b+48>>2]|0;i=+g[j+24>>2];h=+g[b+92>>2];f=+g[j+20>>2];e=+g[b+96>>2];d=h*f+i*e+ +g[j+16>>2];g[a>>2]=+g[j+12>>2]+(i*h-f*e);g[a+4>>2]=d;return}function Hz(a,b){a=a|0;b=b|0;var d=0.0,e=0.0,f=0.0,h=0.0,i=0.0,j=0;j=c[b+52>>2]|0;i=+g[j+24>>2];h=+g[b+100>>2];f=+g[j+20>>2];e=+g[b+104>>2];d=h*f+i*e+ +g[j+16>>2];g[a>>2]=+g[j+12>>2]+(i*h-f*e);g[a+4>>2]=d;return}function Iz(a,b,c){a=a|0;b=b|0;c=+c;var d=0.0,e=0.0;e=+g[b+156>>2];d=e*+g[b+244>>2]*c;g[a>>2]=e*+g[b+240>>2]*c;g[a+4>>2]=d;return}function Jz(a,b){a=a|0;b=+b;return+(+g[a+156>>2]*+g[a+256>>2]*b)}function Kz(a){a=a|0;var b=0,e=0,f=0,j=0,l=0,m=0;b=i;i=i+16|0;e=b;m=c[(c[a+48>>2]|0)+8>>2]|0;l=c[(c[a+52>>2]|0)+8>>2]|0;j=c[(c[a+68>>2]|0)+56>>2]|0;f=c[(c[a+72>>2]|0)+56>>2]|0;Nx(15104,e);c[e>>2]=m;Nx(17320,e);c[e>>2]=l;Nx(17352,e);c[e>>2]=d[a+61>>0];Nx(17384,e);c[e>>2]=j;Nx(15128,e);c[e>>2]=f;Nx(15160,e);h[k>>3]=+g[a+152>>2];c[e>>2]=c[k>>2];c[e+4>>2]=c[k+4>>2];Nx(16584,e);c[e>>2]=c[a+56>>2];Nx(17720,e);i=b;return}function Lz(a){a=a|0;return}function Mz(a){a=a|0;var b=0;b=i;OB(a);i=b;return}function Nz(a){a=a|0;a=i;i=i+16|0;Nx(15392,a);i=a;return}function Oz(a){a=a|0;return}function Pz(a){a=a|0;var b=0;b=i;OB(a);i=b;return}function Qz(b,d){b=b|0;d=d|0;var e=0.0,f=0,h=0,j=0,l=0,m=0.0,n=0.0,o=0.0,p=0.0,q=0.0,r=0.0,s=0.0,t=0.0,u=0.0,v=0.0,w=0.0,x=0.0,y=0.0,z=0,A=0,B=0,C=0,D=0;l=i;B=c[b+52>>2]|0;h=c[B+8>>2]|0;j=b+116|0;c[j>>2]=h;z=B+28|0;A=c[z>>2]|0;z=c[z+4>>2]|0;f=b+128|0;c[f>>2]=A;c[f+4>>2]=z;m=+g[B+120>>2];g[b+136>>2]=m;e=+g[B+128>>2];g[b+140>>2]=e;f=c[d+24>>2]|0;C=f+(h*12|0)|0;r=+g[C>>2];p=+g[C+4>>2];u=+g[f+(h*12|0)+8>>2];f=d+28|0;C=c[f>>2]|0;D=C+(h*12|0)|0;o=+g[D>>2];n=+g[D+4>>2];q=+g[C+(h*12|0)+8>>2];w=+R(+u);u=+Q(+u);y=+g[B+116>>2];x=+g[b+84>>2]*6.2831854820251465;v=+g[d>>2];s=v*y*x*x;y=x*y*2.0*+g[b+88>>2]+s;x=(c[k>>2]=A,+g[k>>2]);t=(c[k>>2]=z,+g[k>>2]);if(!(y>1.1920928955078125e-7))Aa(15768,15520,125,15808);v=v*y;if(v!=0.0)v=1.0/v;g[b+108>>2]=v;s=s*v;g[b+92>>2]=s;x=+g[b+68>>2]-x;y=+g[b+72>>2]-t;t=u*x-w*y;u=w*x+u*y;y=+t;x=+u;D=b+120|0;g[D>>2]=y;g[D+4>>2]=x;x=v+(m+u*e*u);y=e*t;w=u*y;v=v+(m+t*y);y=x*v-w*w;if(y!=0.0)y=1.0/y;w=w*y;g[b+144>>2]=v*y;g[b+148>>2]=w;g[b+152>>2]=w;g[b+156>>2]=x*y;z=b+160|0;y=r+t- +g[b+76>>2];p=p+u- +g[b+80>>2];w=+y;x=+p;D=z;g[D>>2]=w;g[D+4>>2]=x;g[z>>2]=s*y;g[b+164>>2]=s*p;p=q*.9800000190734863;z=b+96|0;if(!(a[d+20>>0]|0)){g[z>>2]=0.0;g[b+100>>2]=0.0;w=o;x=n;y=p;D=c[f>>2]|0;D=D+(h*12|0)|0;w=+w;x=+x;C=D;g[C>>2]=w;D=D+4|0;g[D>>2]=x;D=c[j>>2]|0;C=c[f>>2]|0;D=C+(D*12|0)+8|0;g[D>>2]=y;i=l;return}else{v=+g[d+8>>2];y=v*+g[z>>2];g[z>>2]=y;D=b+100|0;v=v*+g[D>>2];g[D>>2]=v;w=o+m*y;x=n+v*m;y=p+e*(v*t-y*u);D=c[f>>2]|0;D=D+(h*12|0)|0;w=+w;x=+x;C=D;g[C>>2]=w;D=D+4|0;g[D>>2]=x;D=c[j>>2]|0;C=c[f>>2]|0;D=C+(D*12|0)+8|0;g[D>>2]=y;i=l;return}}function Rz(a,b){a=a|0;b=b|0;var d=0.0,e=0,f=0,h=0,j=0.0,k=0.0,l=0.0,m=0.0,n=0.0,o=0,p=0.0,q=0.0,r=0,s=0,t=0.0,u=0.0,v=0.0,w=0.0,x=0;o=i;e=a+116|0;s=c[e>>2]|0;f=b+28|0;r=c[f>>2]|0;h=r+(s*12|0)|0;x=h;k=+g[x>>2];j=+g[x+4>>2];n=+g[r+(s*12|0)+8>>2];l=+g[a+124>>2];m=+g[a+120>>2];t=+g[a+108>>2];s=a+96|0;w=+g[s>>2];r=a+100|0;q=+g[r>>2];u=-(k-n*l+ +g[a+160>>2]+t*w);t=-(j+n*m+ +g[a+164>>2]+t*q);v=+g[a+148>>2]*u+ +g[a+156>>2]*t;x=s;p=+g[x>>2];d=+g[x+4>>2];t=w+(+g[a+144>>2]*u+ +g[a+152>>2]*t);g[s>>2]=t;q=v+q;g[r>>2]=q;v=+g[b>>2]*+g[a+104>>2];u=q*q+t*t;if(u>v*v){w=v/+O(+u);t=t*w;g[s>>2]=t;q=w*q;g[r>>2]=q}u=t-p;t=q-d;v=+g[a+136>>2];w=n+ +g[a+140>>2]*(t*m-u*l);u=+(k+u*v);v=+(j+t*v);x=h;g[x>>2]=u;g[x+4>>2]=v;g[(c[f>>2]|0)+((c[e>>2]|0)*12|0)+8>>2]=w;i=o;return}function Sz(a,b){a=a|0;b=b|0;return 1}function Tz(a,b){a=a|0;b=b|0;var d=0,e=0;e=b+76|0;d=c[e+4>>2]|0;b=a;c[b>>2]=c[e>>2];c[b+4>>2]=d;return}function Uz(a,b){a=a|0;b=b|0;var d=0.0,e=0.0,f=0.0,h=0.0,i=0.0,j=0;j=c[b+52>>2]|0;i=+g[j+24>>2];h=+g[b+68>>2];f=+g[j+20>>2];e=+g[b+72>>2];d=h*f+i*e+ +g[j+16>>2];g[a>>2]=+g[j+12>>2]+(i*h-f*e);g[a+4>>2]=d;return}function Vz(a,b,c){a=a|0;b=b|0;c=+c;var d=0.0;d=+g[b+100>>2]*c;g[a>>2]=+g[b+96>>2]*c;g[a+4>>2]=d;return}function Wz(a,b){a=a|0;b=+b;return+(b*0.0)}function Xz(a,b){a=a|0;b=b|0;var c=0;c=a+76|0;g[c>>2]=+g[c>>2]- +g[b>>2];a=a+80|0;g[a>>2]=+g[a>>2]- +g[b+4>>2];return}function Yz(a){a=a|0;a=i;i=i+16|0;Nx(15864,a);i=a;return}function Zz(a){a=a|0;return}function _z(a){a=a|0;var b=0;b=i;OB(a);i=b;return}function $z(b,d){b=b|0;d=d|0;var e=0.0,f=0.0,h=0.0,j=0.0,l=0.0,m=0.0,n=0.0,o=0.0,p=0,q=0,r=0,s=0,t=0.0,u=0.0,v=0.0,w=0.0,x=0.0,y=0.0,z=0.0,A=0.0,B=0.0,C=0.0,D=0.0,E=0.0,F=0.0,G=0.0,H=0.0,I=0.0,J=0.0,K=0.0,L=0.0,M=0,N=0,O=0,P=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0.0,Z=0.0,_=0.0;s=i;q=c[b+48>>2]|0;W=c[q+8>>2]|0;p=b+144|0;c[p>>2]=W;V=c[b+52>>2]|0;T=c[V+8>>2]|0;r=b+148|0;c[r>>2]=T;P=q+28|0;S=c[P>>2]|0;P=c[P+4>>2]|0;N=b+152|0;c[N>>2]=S;c[N+4>>2]=P;N=V+28|0;O=c[N>>2]|0;N=c[N+4>>2]|0;M=b+160|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2]=Y;g[b+224>>2]=K;g[b+228>>2]=Y;g[b+232>>2]=J==0.0?1.0:J;g[b+236>>2]=L;g[b+240>>2]=K;g[b+244>>2]=L;g[b+248>>2]=H;do if(a[b+136>>0]|0){D=D*w+G*f;E=+g[b+124>>2];F=+g[b+120>>2];G=E-F;if(!(G>0.0))G=-G;if(G<.009999999776482582){c[b+140>>2]=3;break}if(D<=F){M=b+140|0;if((c[M>>2]|0)==1)break;c[M>>2]=1;g[b+112>>2]=0.0;break}M=b+140|0;if(!(D>=E)){c[M>>2]=0;g[b+112>>2]=0.0;break}if((c[M>>2]|0)!=2){c[M>>2]=2;g[b+112>>2]=0.0}}else{c[b+140>>2]=0;g[b+112>>2]=0.0}while(0);if(!(a[b+137>>0]|0))g[b+116>>2]=0.0;M=b+104|0;if(!(a[d+20>>0]|0)){c[M+0>>2]=0;c[M+4>>2]=0;c[M+8>>2]=0;c[M+12>>2]=0;J=h;K=j;Y=l;Z=m;L=n;_=o;X=c[p>>2]|0;W=c[q>>2]|0;X=W+(X*12|0)|0;J=+J;K=+K;W=X;g[W>>2]=J;X=X+4|0;g[X>>2]=K;X=c[p>>2]|0;W=c[q>>2]|0;X=W+(X*12|0)+8|0;g[X>>2]=L;X=c[r>>2]|0;X=W+(X*12|0)|0;Y=+Y;Z=+Z;W=X;g[W>>2]=Y;X=X+4|0;g[X>>2]=Z;X=c[r>>2]|0;W=c[q>>2]|0;X=W+(X*12|0)+8|0;g[X>>2]=_;i=s;return}else{W=d+8|0;_=+g[W>>2];I=_*+g[M>>2];g[M>>2]=I;X=b+108|0;H=_*+g[X>>2];g[X>>2]=H;X=b+112|0;_=_*+g[X>>2];g[X>>2]=_;X=b+116|0;Y=+g[W>>2]*+g[X>>2];g[X>>2]=Y;_=Y+_;Y=I*z+w*_;Z=I*A+_*f;J=h-t*Y;K=j-t*Z;Y=l+u*Y;Z=m+u*Z;L=n-v*(I*B+H+_*e);_=o+x*(H+I*C+_*y);X=c[p>>2]|0;W=c[q>>2]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+168>>2];o=+g[b+172>>2];y=+g[b+176>>2];h=+g[b+180>>2];J=+g[b+68>>2]- +g[b+152>>2];p=+g[b+72>>2]- +g[b+156>>2];D=N*J-L*p;p=L*J+N*p;J=+g[b+76>>2]- +g[b+160>>2];q=+g[b+80>>2]- +g[b+164>>2];F=I*J-m*q;q=m*J+I*q;I=A+F-v-D;J=B+q-w-p;m=+g[b+84>>2];t=+g[b+88>>2];r=N*m-L*t;t=L*m+N*t;D=D+I;p=p+J;m=t*D-r*p;k=F*t-q*r;M=+g[b+92>>2];u=+g[b+96>>2];s=N*M-L*u;u=L*M+N*u;p=u*D-s*p;q=F*u-q*s;F=s*I+u*J;D=l-z- +g[b+100>>2];if(F>0.0)H=F;else H=-F;if(D>0.0)j=D;else j=-D;do if(a[b+136>>0]|0){I=r*I+t*J;J=+g[b+124>>2];K=+g[b+120>>2];L=J-K;if(!(L>0.0))L=-L;if(L<.009999999776482582){J=I<.20000000298023224?I:.20000000298023224;if(!(I>0.0))I=-I;K=J<-.20000000298023224?-.20000000298023224:J;b=1;H=H>I?H:I;break}if(I<=K){M=I-K+.004999999888241291;M=M<0.0?M:0.0;N=K-I;K=M<-.20000000298023224?-.20000000298023224:M;b=1;H=H>N?H:N;break}if(I>=J){N=I-J;K=N+-.004999999888241291;K=K<.20000000298023224?K:.20000000298023224;K=K<0.0?0.0:K;b=1;H=H>N?H:N}else{K=0.0;b=0}}else{K=0.0;b=0}while(0);L=n+o;M=y*p;N=h*q;I=q*N+(L+p*M);J=N+M;if(b){U=k*N+m*M;V=y+h;N=y*m;M=h*k;T=M+N;g[G>>2]=I;g[G+4>>2]=J;g[G+8>>2]=U;g[G+12>>2]=J;g[G+16>>2]=V==0.0?1.0:V;g[G+20>>2]=T;g[G+24>>2]=U;g[G+28>>2]=T;g[G+32>>2]=k*M+(L+m*N);g[E>>2]=-F;g[E+4>>2]=-D;g[E+8>>2]=-K;Jx(C,G,E);D=+g[C>>2];K=+g[C+8>>2];F=+g[C+4>>2]}else{K=y+h;K=K==0.0?1.0:K;F=-F;L=-D;M=K*I-J*J;if(M!=0.0)M=1.0/M;D=(K*F-J*L)*M;K=0.0;F=(I*L-J*F)*M}U=r*K+s*D;V=t*K+u*D;N=+(v-n*U);T=+(w-n*V);S=(c[x>>2]|0)+((c[e>>2]|0)*12|0)|0;g[S>>2]=N;g[S+4>>2]=T;S=c[x>>2]|0;g[S+((c[e>>2]|0)*12|0)+8>>2]=z-y*(m*K+(F+p*D));U=+(A+o*U);V=+(B+o*V);S=S+((c[d>>2]|0)*12|0)|0;g[S>>2]=U;g[S+4>>2]=V;g[(c[x>>2]|0)+((c[d>>2]|0)*12|0)+8>>2]=l+h*(k*K+(F+q*D));if(!(H<=.004999999888241291)){S=0;i=f;return S|0}S=j<=.03490658849477768;i=f;return S|0}function cA(a,b){a=a|0;b=b|0;var d=0.0,e=0.0,f=0.0,h=0.0,i=0.0,j=0;j=c[b+48>>2]|0;i=+g[j+24>>2];h=+g[b+68>>2];f=+g[j+20>>2];e=+g[b+72>>2];d=h*f+i*e+ +g[j+16>>2];g[a>>2]=+g[j+12>>2]+(i*h-f*e);g[a+4>>2]=d;return}function dA(a,b){a=a|0;b=b|0;var d=0.0,e=0.0,f=0.0,h=0.0,i=0.0,j=0;j=c[b+52>>2]|0;i=+g[j+24>>2];h=+g[b+76>>2];f=+g[j+20>>2];e=+g[b+80>>2];d=h*f+i*e+ +g[j+16>>2];g[a>>2]=+g[j+12>>2]+(i*h-f*e);g[a+4>>2]=d;return}function eA(a,b,c){a=a|0;b=b|0;c=+c;var d=0.0,e=0.0,f=0.0;f=+g[b+104>>2];e=+g[b+116>>2]+ +g[b+112>>2];d=(f*+g[b+196>>2]+e*+g[b+188>>2])*c;g[a>>2]=(f*+g[b+192>>2]+ +g[b+184>>2]*e)*c;g[a+4>>2]=d;return}function fA(a,b){a=a|0;b=+b;return+(+g[a+108>>2]*b)}function gA(a){a=a|0;var b=0,e=0,f=0,j=0.0,l=0;b=i;i=i+16|0;e=b;l=c[(c[a+48>>2]|0)+8>>2]|0;f=c[(c[a+52>>2]|0)+8>>2]|0;Nx(16016,e);c[e>>2]=l;Nx(17320,e);c[e>>2]=f;Nx(17352,e);c[e>>2]=d[a+61>>0];Nx(17384,e);j=+g[a+72>>2];h[k>>3]=+g[a+68>>2];c[e>>2]=c[k>>2];c[e+4>>2]=c[k+4>>2];f=e+8|0;h[k>>3]=j;c[f>>2]=c[k>>2];c[f+4>>2]=c[k+4>>2];Nx(17424,e);j=+g[a+80>>2];h[k>>3]=+g[a+76>>2];c[e>>2]=c[k>>2];c[e+4>>2]=c[k+4>>2];f=e+8|0;h[k>>3]=j;c[f>>2]=c[k>>2];c[f+4>>2]=c[k+4>>2];Nx(17472,e);j=+g[a+88>>2];h[k>>3]=+g[a+84>>2];c[e>>2]=c[k>>2];c[e+4>>2]=c[k+4>>2];f=e+8|0;h[k>>3]=j;c[f>>2]=c[k>>2];c[f+4>>2]=c[k+4>>2];Nx(17520,e);h[k>>3]=+g[a+100>>2];c[e>>2]=c[k>>2];c[e+4>>2]=c[k+4>>2];Nx(17176,e);c[e>>2]=d[a+136>>0];Nx(16816,e);h[k>>3]=+g[a+120>>2];c[e>>2]=c[k>>2];c[e+4>>2]=c[k+4>>2];Nx(16048,e);h[k>>3]=+g[a+124>>2];c[e>>2]=c[k>>2];c[e+4>>2]=c[k+4>>2];Nx(16088,e);c[e>>2]=d[a+137>>0];Nx(17560,e);h[k>>3]=+g[a+132>>2];c[e>>2]=c[k>>2];c[e+4>>2]=c[k+4>>2];Nx(17592,e);h[k>>3]=+g[a+128>>2];c[e>>2]=c[k>>2];c[e+4>>2]=c[k+4>>2];Nx(16128,e);c[e>>2]=c[a+56>>2];Nx(17720,e);i=b;return}function hA(a){a=a|0;return}function iA(a){a=a|0;var b=0;b=i;OB(a);i=b;return}function jA(b,d){b=b|0;d=d|0;var e=0.0,f=0.0,h=0.0,j=0.0,l=0.0,m=0,n=0,o=0,p=0,q=0.0,r=0.0,s=0.0,t=0.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|0)|0;J=+I;K=+K;S=T;g[S>>2]=J;T=T+4|0;g[T>>2]=K;T=c[o>>2]|0;S=c[n>>2]|0;T=S+(T*12|0)+8|0;g[T>>2]=U;i=p;return}}function kA(a,b){a=a|0;b=b|0;var d=0,e=0,f=0.0,h=0.0,j=0.0,k=0.0,l=0.0,m=0.0,n=0,o=0.0,p=0.0,q=0.0,r=0,s=0.0,t=0.0,u=0.0,v=0.0,w=0.0,x=0.0,y=0.0,z=0,A=0,B=0;d=i;n=a+120|0;z=c[n>>2]|0;e=b+28|0;A=c[e>>2]|0;r=A+(z*12|0)|0;b=r;u=+g[b>>2];t=+g[b+4>>2];x=+g[A+(z*12|0)+8>>2];b=a+124|0;z=c[b>>2]|0;B=A+(z*12|0)|0;m=+g[B>>2];l=+g[B+4>>2];w=+g[A+(z*12|0)+8>>2];o=+g[a+148>>2];h=+g[a+144>>2];f=+g[a+156>>2];v=+g[a+152>>2];q=+g[a+128>>2];s=+g[a+132>>2];y=+g[a+112>>2];j=+g[a+136>>2];k=+g[a+140>>2];p=+g[a+192>>2]*(-((u-x*o)*q+(t+x*h)*s)-y*((m-w*f)*j+(l+w*v)*k));z=a+116|0;g[z>>2]=+g[z>>2]-p;q=q*p;s=s*p;p=y*p;j=j*p;k=p*k;p=+g[a+176>>2];o=x+ +g[a+184>>2]*(s*h-q*o);h=+g[a+180>>2];f=w+ +g[a+188>>2]*(k*v-j*f);q=+(u+q*p);p=+(t+s*p);a=r;g[a>>2]=q;g[a+4>>2]=p;a=c[e>>2]|0;g[a+((c[n>>2]|0)*12|0)+8>>2]=o;j=+(m+j*h);h=+(l+k*h);a=a+((c[b>>2]|0)*12|0)|0;g[a>>2]=j;g[a+4>>2]=h;g[(c[e>>2]|0)+((c[b>>2]|0)*12|0)+8>>2]=f;i=d;return}function lA(a,b){a=a|0;b=b|0;var d=0,e=0,f=0.0,h=0.0,j=0.0,k=0.0,l=0,m=0.0,n=0,o=0.0,p=0.0,q=0.0,r=0.0,s=0.0,t=0.0,u=0.0,v=0.0,w=0.0,x=0.0,y=0.0,z=0.0,A=0.0,B=0.0,C=0.0,D=0.0,E=0.0,F=0,G=0,H=0,I=0.0;d=i;e=a+120|0;n=c[e>>2]|0;b=b+24|0;G=c[b>>2]|0;l=G+(n*12|0)|0;F=l;k=+g[F>>2];r=+g[F+4>>2];f=+g[G+(n*12|0)+8>>2];n=a+124|0;F=c[n>>2]|0;H=G+(F*12|0)|0;s=+g[H>>2];m=+g[H+4>>2];o=+g[G+(F*12|0)+8>>2];p=+R(+f);t=+Q(+f);y=+R(+o);v=+Q(+o);q=+g[a+92>>2]- +g[a+160>>2];j=+g[a+96>>2]- +g[a+164>>2];h=t*q-p*j;j=p*q+t*j;t=+g[a+100>>2]- +g[a+168>>2];q=+g[a+104>>2]- +g[a+172>>2];p=v*t-y*q;q=y*t+v*q;v=k+h- +g[a+68>>2];t=r+j- +g[a+72>>2];y=s+p- +g[a+76>>2];x=m+q- +g[a+80>>2];w=+O(+(v*v+t*t));u=+O(+(y*y+x*x));if(w>.04999999701976776){E=1.0/w;t=t*E;v=v*E}else{t=0.0;v=0.0}if(u>.04999999701976776){D=1.0/u;x=x*D;D=y*D}else{x=0.0;D=0.0}I=h*t-j*v;E=p*x-q*D;A=+g[a+176>>2];z=+g[a+184>>2];y=+g[a+180>>2];B=+g[a+188>>2];C=+g[a+112>>2];E=A+I*I*z+C*C*(y+E*E*B);if(E>0.0)E=1.0/E;u=+g[a+108>>2]-w-u*C;if(u>0.0)w=u;else w=-u;E=E*u;v=v*E;u=t*E;E=E*C;I=D*E;E=x*E;D=+(k+v*A);C=+(r+u*A);H=l;g[H>>2]=D;g[H+4>>2]=C;H=c[b>>2]|0;g[H+((c[e>>2]|0)*12|0)+8>>2]=f+(h*u-j*v)*z;C=+(s+I*y);D=+(m+E*y);H=H+((c[n>>2]|0)*12|0)|0;g[H>>2]=C;g[H+4>>2]=D;g[(c[b>>2]|0)+((c[n>>2]|0)*12|0)+8>>2]=o+B*(p*E-q*I);i=d;return w<.004999999888241291|0}function mA(a,b){a=a|0;b=b|0;var d=0.0,e=0.0,f=0.0,h=0.0,i=0.0,j=0;j=c[b+48>>2]|0;i=+g[j+24>>2];h=+g[b+92>>2];f=+g[j+20>>2];e=+g[b+96>>2];d=h*f+i*e+ +g[j+16>>2];g[a>>2]=+g[j+12>>2]+(i*h-f*e);g[a+4>>2]=d;return}function nA(a,b){a=a|0;b=b|0;var d=0.0,e=0.0,f=0.0,h=0.0,i=0.0,j=0;j=c[b+52>>2]|0;i=+g[j+24>>2];h=+g[b+100>>2];f=+g[j+20>>2];e=+g[b+104>>2];d=h*f+i*e+ +g[j+16>>2];g[a>>2]=+g[j+12>>2]+(i*h-f*e);g[a+4>>2]=d;return}function oA(a,b,c){a=a|0;b=b|0;c=+c;var d=0.0,e=0.0;e=+g[b+116>>2];d=e*+g[b+140>>2]*c;g[a>>2]=e*+g[b+136>>2]*c;g[a+4>>2]=d;return}function pA(a,b){a=a|0;b=+b;return 0.0}function qA(a){a=a|0;var b=0,e=0,f=0,j=0.0,l=0;b=i;i=i+16|0;e=b;l=c[(c[a+48>>2]|0)+8>>2]|0;f=c[(c[a+52>>2]|0)+8>>2]|0;Nx(16400,e);c[e>>2]=l;Nx(17320,e);c[e>>2]=f;Nx(17352,e);c[e>>2]=d[a+61>>0];Nx(17384,e);j=+g[a+72>>2];h[k>>3]=+g[a+68>>2];c[e>>2]=c[k>>2];c[e+4>>2]=c[k+4>>2];f=e+8|0;h[k>>3]=j;c[f>>2]=c[k>>2];c[f+4>>2]=c[k+4>>2];Nx(16424,e);j=+g[a+80>>2];h[k>>3]=+g[a+76>>2];c[e>>2]=c[k>>2];c[e+4>>2]=c[k+4>>2];f=e+8|0;h[k>>3]=j;c[f>>2]=c[k>>2];c[f+4>>2]=c[k+4>>2];Nx(16472,e);j=+g[a+96>>2];h[k>>3]=+g[a+92>>2];c[e>>2]=c[k>>2];c[e+4>>2]=c[k+4>>2];f=e+8|0;h[k>>3]=j;c[f>>2]=c[k>>2];c[f+4>>2]=c[k+4>>2];Nx(17424,e);j=+g[a+104>>2];h[k>>3]=+g[a+100>>2];c[e>>2]=c[k>>2];c[e+4>>2]=c[k+4>>2];f=e+8|0;h[k>>3]=j;c[f>>2]=c[k>>2];c[f+4>>2]=c[k+4>>2];Nx(17472,e);h[k>>3]=+g[a+84>>2];c[e>>2]=c[k>>2];c[e+4>>2]=c[k+4>>2];Nx(16520,e);h[k>>3]=+g[a+88>>2];c[e>>2]=c[k>>2];c[e+4>>2]=c[k+4>>2];Nx(16552,e);h[k>>3]=+g[a+112>>2];c[e>>2]=c[k>>2];c[e+4>>2]=c[k+4>>2];Nx(16584,e);c[e>>2]=c[a+56>>2];Nx(17720,e);i=b;return}function rA(a,b){a=a|0;b=b|0;var c=0,d=0;c=a+68|0;g[c>>2]=+g[c>>2]- +g[b>>2];c=b+4|0;d=a+72|0;g[d>>2]=+g[d>>2]- +g[c>>2];d=a+76|0;g[d>>2]=+g[d>>2]- +g[b>>2];b=a+80|0;g[b>>2]=+g[b>>2]- +g[c>>2];return}function sA(a){a=a|0;return}function tA(a){a=a|0;var b=0;b=i;OB(a);i=b;return}function uA(b,d){b=b|0;d=d|0;var e=0.0,f=0.0,h=0.0,j=0.0,l=0.0,m=0.0,n=0,o=0,p=0,q=0,r=0.0,s=0.0,t=0.0,u=0.0,v=0.0,w=0.0,x=0.0,y=0.0,z=0.0,A=0.0,B=0.0,C=0,D=0.0,E=0.0,F=0.0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0.0,P=0.0,S=0.0;q=i;o=c[b+48>>2]|0;M=c[o+8>>2]|0;n=b+128|0;c[n>>2]=M;L=c[b+52>>2]|0;J=c[L+8>>2]|0;p=b+132|0;c[p>>2]=J;H=o+28|0;I=c[H>>2]|0;H=c[H+4>>2]|0;C=b+152|0;c[C>>2]=I;c[C+4>>2]=H;C=L+28|0;G=c[C>>2]|0;C=c[C+4>>2]|0;K=b+160|0;c[K>>2]=G;c[K+4>>2]=C;r=+g[o+120>>2];g[b+168>>2]=r;s=+g[L+120>>2];g[b+172>>2]=s;t=+g[o+128>>2];g[b+176>>2]=t;e=+g[L+128>>2];g[b+180>>2]=e;L=c[d+24>>2]|0;A=+g[L+(M*12|0)+8>>2];o=d+28|0;K=c[o>>2]|0;N=K+(M*12|0)|0;w=+g[N>>2];f=+g[N+4>>2];l=+g[K+(M*12|0)+8>>2];z=+g[L+(J*12|0)+8>>2];L=K+(J*12|0)|0;h=+g[L>>2];j=+g[L+4>>2];m=+g[K+(J*12|0)+8>>2];x=+R(+A);y=+Q(+A);F=+R(+z);D=+Q(+z);B=+g[b+68>>2]-(c[k>>2]=I,+g[k>>2]);v=+g[b+72>>2]-(c[k>>2]=H,+g[k>>2]);u=y*B-x*v;v=x*B+y*v;y=+u;B=+v;H=b+136|0;g[H>>2]=y;g[H+4>>2]=B;B=+g[b+76>>2]-(c[k>>2]=G,+g[k>>2]);y=+g[b+80>>2]-(c[k>>2]=C,+g[k>>2]);x=D*B-F*y;y=F*B+D*y;D=+x;B=+y;C=b+144|0;g[C>>2]=D;g[C+4>>2]=B;B=t+e;C=B==0.0;D=r+s;g[b+184>>2]=D+t*v*v+e*y*y;F=-(t*v*u)-e*y*x;g[b+196>>2]=F;E=-(t*v)-e*y;g[b+208>>2]=E;g[b+188>>2]=F;g[b+200>>2]=D+t*u*u+e*x*x;D=t*u+e*x;g[b+212>>2]=D;g[b+192>>2]=E;g[b+204>>2]=D;g[b+216>>2]=B;if(B>0.0)B=1.0/B;g[b+220>>2]=B;if((a[b+100>>0]|0)==0|C)g[b+96>>2]=0.0;do if((a[b+112>>0]|0)==0|C)c[b+224>>2]=0;else{z=z-A- +g[b+116>>2];A=+g[b+124>>2];B=+g[b+120>>2];D=A-B;if(!(D>0.0))D=-D;if(D<.06981317698955536){c[b+224>>2]=3;break}if(z<=B){C=b+224|0;if((c[C>>2]|0)!=1)g[b+92>>2]=0.0;c[C>>2]=1;break}C=b+224|0;if(!(z>=A)){c[C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}j=j&65535;if(d){b[h>>1]=j|32;f=g+102872|0;g=c[a+100>>2]|0;if(!g){i=e;return}a=a+12|0;do{ky(g,f,a);g=c[g+4>>2]|0}while((g|0)!=0);i=e;return}b[h>>1]=j&65503;g=g+102872|0;d=c[a+100>>2]|0;if(d)do{ly(d,g);d=c[d+4>>2]|0}while((d|0)!=0);a=a+112|0;g=c[a>>2]|0;if(g)do{j=g;g=c[g+12>>2]|0;Xx((c[f>>2]|0)+102872|0,c[j+4>>2]|0)}while((g|0)!=0);c[a>>2]=0;i=e;return}function Ws(a){a=a|0;return(b[a+4>>1]&32)!=0|0}function Xs(a,c){a=a|0;c=c|0;var d=0,f=0,h=0;d=i;h=a+4|0;f=e[h>>1]|0;if(!((f&16|0)!=0^c)){i=d;return}b[h>>1]=c?f|16:f&65519;g[a+72>>2]=0.0;Qx(a);i=d;return}function Ys(a){a=a|0;return(b[a+4>>1]&16)!=0|0}function Zs(a){a=a|0;return c[a+100>>2]|0}function _s(a){a=a|0;return c[a+108>>2]|0}function $s(a){a=a|0;return c[a+112>>2]|0}function at(a){a=a|0;return c[a+96>>2]|0}function bt(a){a=a|0;return c[a+148>>2]|0}function ct(a,b){a=a|0;b=b|0;c[a+148>>2]=b;return}function dt(a){a=a|0;return c[a+88>>2]|0}function et(a){a=a|0;var b=0;b=i;Ux(a);i=b;return}function ft(a){a=a|0;return a+68|0}function gt(a){a=a|0;return a+76|0}function ht(a,b){a=a|0;b=+b;var d=0;d=i;if(((g[k>>2]=b,c[k>>2]|0)&2139095040|0)!=2139095040&b>=0.0){g[a+96>>2]=b;i=d;return}else Aa(14504,14544,217,14600)}function it(a){a=a|0;return+(+g[a+96>>2])}function jt(a,b){a=a|0;b=+b;var d=0;d=i;if(((g[k>>2]=b,c[k>>2]|0)&2139095040|0)!=2139095040&b>=0.0){g[a+100>>2]=b;i=d;return}else Aa(14616,14544,228,14656)}function kt(a){a=a|0;return+(+g[a+100>>2])}function lt(a){a=a|0;return c[a+4>>2]|0}function mt(a){a=a|0;return c[a+48>>2]|0}function nt(a){a=a|0;return c[a+52>>2]|0}function ot(b){b=b|0;var d=0,e=0,f=0;e=i;i=i+16|0;d=e;if((a[816]|0)==0?(wa(816)|0)!=0:0)Da(816);lb[c[c[b>>2]>>2]&127](d,b);f=d;b=c[f+4>>2]|0;d=808;c[d>>2]=c[f>>2];c[d+4>>2]=b;i=e;return 808}function pt(b){b=b|0;var d=0,e=0,f=0;e=i;i=i+16|0;d=e;if((a[832]|0)==0?(wa(832)|0)!=0:0)Da(832);lb[c[(c[b>>2]|0)+4>>2]&127](d,b);f=d;b=c[f+4>>2]|0;d=824;c[d>>2]=c[f>>2];c[d+4>>2]=b;i=e;return 824}function qt(b,d){b=b|0;d=+d;var e=0,f=0,g=0;f=i;i=i+16|0;e=f;if((a[848]|0)==0?(wa(848)|0)!=0:0)Da(848);rb[c[(c[b>>2]|0)+8>>2]&63](e,b,d);g=e;b=c[g+4>>2]|0;e=840;c[e>>2]=c[g>>2];c[e+4>>2]=b;i=f;return 840}function rt(a,b){a=a|0;b=+b;var d=0;d=i;b=+ib[c[(c[a>>2]|0)+12>>2]&63](a,b);i=d;return+b}function st(a){a=a|0;return c[a+12>>2]|0}function tt(a){a=a|0;return c[a+64>>2]|0}function ut(a,b){a=a|0;b=b|0;c[a+64>>2]=b;return}function vt(a){a=a|0;var d=0;d=i;if(!(b[(c[a+48>>2]|0)+4>>1]&32)){a=0;i=d;return a|0}a=(b[(c[a+52>>2]|0)+4>>1]&32)!=0;i=d;return a|0}function wt(b){b=b|0;return(a[b+61>>0]|0)!=0|0}function xt(a){a=a|0;var b=0;b=i;if(!a){i=b;return}jb[c[(c[a>>2]|0)+28>>2]&127](a);i=b;return}function yt(a){a=a|0;var b=0;b=i;if(!a){i=b;return}jb[c[(c[a>>2]|0)+4>>2]&127](a);i=b;return}function zt(){var b=0,d=0;b=i;d=NB(32)|0;a:do if(!d){while(1){d=c[4582]|0;c[4582]=d+0;if(!d)break;qb[d&63]();d=NB(32)|0;if(d)break a}d=cb(4)|0;c[d>>2]=18168;_a(d|0,18216,116)}while(0);c[d+0>>2]=0;c[d+4>>2]=0;c[d+8>>2]=0;c[d+12>>2]=0;a[d+16>>0]=0;c[d>>2]=6;c[d+20>>2]=0;c[d+24>>2]=0;g[d+28>>2]=1.0;i=b;return d|0}function At(a){a=a|0;return c[a+20>>2]|0}function Bt(a,b){a=a|0;b=b|0;c[a+20>>2]=b;return}function Ct(a){a=a|0;return c[a+24>>2]|0}function Dt(a,b){a=a|0;b=b|0;c[a+24>>2]=b;return}function Et(a){a=a|0;return+(+g[a+28>>2])}function Ft(a,b){a=a|0;b=+b;g[a+28>>2]=b;return}function Gt(a){a=a|0;return c[a>>2]|0}function Ht(a,b){a=a|0;b=b|0;c[a>>2]=b;return}function It(a){a=a|0;return c[a+4>>2]|0}function Jt(a,b){a=a|0;b=b|0;c[a+4>>2]=b;return}function Kt(a){a=a|0;return c[a+8>>2]|0}function Lt(a,b){a=a|0;b=b|0;c[a+8>>2]=b;return}function Mt(a){a=a|0;return c[a+12>>2]|0}function Nt(a,b){a=a|0;b=b|0;c[a+12>>2]=b;return}function Ot(b){b=b|0;return(a[b+16>>0]|0)!=0|0}function Pt(b,c){b=b|0;c=c|0;a[b+16>>0]=c&1;return}function Qt(a){a=a|0;var b=0;b=i;if(a)OB(a);i=b;return}function Rt(a){a=a|0;return a+68|0}function St(a){a=a|0;return a+76|0}function Tt(a){a=a|0;return+(+g[a+116>>2])}function Ut(a){a=a|0;return+(+g[(c[a+52>>2]|0)+56>>2]- +g[(c[a+48>>2]|0)+56>>2]- +g[a+116>>2])}function Vt(a){a=a|0;return+(+g[(c[a+52>>2]|0)+72>>2]- +g[(c[a+48>>2]|0)+72>>2])}function Wt(b){b=b|0;return(a[b+112>>0]|0)!=0|0}function Xt(f,h){f=f|0;h=h|0;var j=0,k=0,l=0,m=0,n=0;j=i;k=f+112|0;if((h&1|0)==(d[k>>0]|0|0)){i=j;return}l=c[f+48>>2]|0;m=l+4|0;n=e[m>>1]|0;if(!(n&2)){b[m>>1]=n|2;g[l+144>>2]=0.0}l=c[f+52>>2]|0;m=l+4|0;n=e[m>>1]|0;if(!(n&2)){b[m>>1]=n|2;g[l+144>>2]=0.0}a[k>>0]=h&1;g[f+92>>2]=0.0;i=j;return}function Yt(a){a=a|0;return+(+g[a+120>>2])}function Zt(a){a=a|0;return+(+g[a+124>>2])}function _t(a,d,f){a=a|0;d=+d;f=+f;var h=0,j=0,k=0,l=0,m=0;j=i;if(!(d<=f))Aa(16696,16712,471,16768);h=a+120|0;if(!(+g[h>>2]!=d)?!(+g[a+124>>2]!=f):0){i=j;return}m=c[a+48>>2]|0;k=m+4|0;l=e[k>>1]|0;if(!(l&2)){b[k>>1]=l|2;g[m+144>>2]=0.0}l=c[a+52>>2]|0;m=l+4|0;k=e[m>>1]|0;if(!(k&2)){b[m>>1]=k|2;g[l+144>>2]=0.0}g[a+92>>2]=0.0;g[h>>2]=d;g[a+124>>2]=f;i=j;return}function $t(b){b=b|0;return(a[b+100>>0]|0)!=0|0}function au(d,f){d=d|0;f=f|0;var h=0,j=0,k=0,l=0;h=i;j=c[d+48>>2]|0;k=j+4|0;l=e[k>>1]|0;if(!(l&2)){b[k>>1]=l|2;g[j+144>>2]=0.0}l=c[d+52>>2]|0;k=l+4|0;j=e[k>>1]|0;if(j&2){l=d+100|0;k=f&1;a[l>>0]=k;i=h;return}b[k>>1]=j|2;g[l+144>>2]=0.0;l=d+100|0;k=f&1;a[l>>0]=k;i=h;return}function bu(a,d){a=a|0;d=+d;var f=0,h=0,j=0,k=0;f=i;h=c[a+48>>2]|0;j=h+4|0;k=e[j>>1]|0;if(!(k&2)){b[j>>1]=k|2;g[h+144>>2]=0.0}k=c[a+52>>2]|0;j=k+4|0;h=e[j>>1]|0;if(h&2){k=a+108|0;g[k>>2]=d;i=f;return}b[j>>1]=h|2;g[k+144>>2]=0.0;k=a+108|0;g[k>>2]=d;i=f;return}function cu(a){a=a|0;return+(+g[a+108>>2])}function du(a,d){a=a|0;d=+d;var f=0,h=0,j=0,k=0;f=i;h=c[a+48>>2]|0;j=h+4|0;k=e[j>>1]|0;if(!(k&2)){b[j>>1]=k|2;g[h+144>>2]=0.0}k=c[a+52>>2]|0;j=k+4|0;h=e[j>>1]|0;if(h&2){k=a+104|0;g[k>>2]=d;i=f;return}b[j>>1]=h|2;g[k+144>>2]=0.0;k=a+104|0;g[k>>2]=d;i=f;return}function eu(a){a=a|0;return+(+g[a+104>>2])}function fu(a,b){a=a|0;b=+b;return+(+g[a+96>>2]*b)}function gu(a){a=a|0;return c[a+4>>2]|0}function hu(a){a=a|0;return c[a+48>>2]|0}function iu(a){a=a|0;return c[a+52>>2]|0}function ju(b){b=b|0;var d=0,e=0,f=0;e=i;i=i+16|0;d=e;if((a[864]|0)==0?(wa(864)|0)!=0:0)Da(864);lb[c[c[b>>2]>>2]&127](d,b);f=d;b=c[f+4>>2]|0;d=856;c[d>>2]=c[f>>2];c[d+4>>2]=b;i=e;return 856}function ku(b){b=b|0;var d=0,e=0,f=0;e=i;i=i+16|0;d=e;if((a[880]|0)==0?(wa(880)|0)!=0:0)Da(880);lb[c[(c[b>>2]|0)+4>>2]&127](d,b);f=d;b=c[f+4>>2]|0;d=872;c[d>>2]=c[f>>2];c[d+4>>2]=b;i=e;return 872}function lu(b,d){b=b|0;d=+d;var e=0,f=0,g=0;f=i;i=i+16|0;e=f;if((a[896]|0)==0?(wa(896)|0)!=0:0)Da(896);rb[c[(c[b>>2]|0)+8>>2]&63](e,b,d);g=e;b=c[g+4>>2]|0;e=888;c[e>>2]=c[g>>2];c[e+4>>2]=b;i=f;return 888}function mu(a,b){a=a|0;b=+b;var d=0;d=i;b=+ib[c[(c[a>>2]|0)+12>>2]&63](a,b);i=d;return+b}function nu(a){a=a|0;return c[a+12>>2]|0}function ou(a){a=a|0;return c[a+64>>2]|0}function pu(a,b){a=a|0;b=b|0;c[a+64>>2]=b;return}function qu(a){a=a|0;var d=0;d=i;if(!(b[(c[a+48>>2]|0)+4>>1]&32)){a=0;i=d;return a|0}a=(b[(c[a+52>>2]|0)+4>>1]&32)!=0;i=d;return a|0}function ru(b){b=b|0;return(a[b+61>>0]|0)!=0|0}function su(a){a=a|0;var b=0;b=i;if(!a){i=b;return}jb[c[(c[a>>2]|0)+28>>2]&127](a);i=b;return}function tu(a){a=a|0;var b=0;b=i;if(!a){i=b;return}jb[c[(c[a>>2]|0)+4>>2]&127](a);i=b;return}function uu(){var a=0,b=0;a=i;b=NB(16)|0;a:do if(!b){while(1){b=c[4582]|0;c[4582]=b+0;if(!b)break;qb[b&63]();b=NB(16)|0;if(b)break a}b=cb(4)|0;c[b>>2]=18168;_a(b|0,18216,116)}while(0);c[b+0>>2]=0;c[b+4>>2]=0;c[b+8>>2]=0;c[b+12>>2]=0;i=a;return b|0}function vu(a){a=a|0;return c[a>>2]|0}function wu(a,b){a=a|0;b=b|0;c[a>>2]=b;return}function xu(a){a=a|0;return c[a+4>>2]|0}function yu(a,b){a=a|0;b=b|0;c[a+4>>2]=b;return}function zu(a){a=a|0;return c[a+8>>2]|0}function Au(a,b){a=a|0;b=b|0;c[a+8>>2]=b;return}function Bu(a){a=a|0;return c[a+12>>2]|0}function Cu(a,b){a=a|0;b=b|0;c[a+12>>2]=b;return}function Du(a){a=a|0;var b=0;b=i;if(a)OB(a);i=b;return}function Eu(){var b=0,d=0;b=i;d=NB(40)|0;a:do if(!d){while(1){d=c[4582]|0;c[4582]=d+0;if(!d)break;qb[d&63]();d=NB(40)|0;if(d)break a}d=cb(4)|0;c[d>>2]=18168;_a(d|0,18216,116)}while(0);c[d+0>>2]=0;c[d+4>>2]=0;c[d+8>>2]=0;c[d+12>>2]=0;a[d+16>>0]=0;c[d>>2]=10;g[d+20>>2]=-1.0;g[d+24>>2]=0.0;g[d+28>>2]=1.0;g[d+32>>2]=0.0;g[d+36>>2]=0.0;i=b;return d|0}function Fu(a){a=a|0;return a+20|0}function Gu(a,b){a=a|0;b=b|0;var d=0,e=0;e=b;d=c[e+4>>2]|0;b=a+20|0;c[b>>2]=c[e>>2];c[b+4>>2]=d;return}function Hu(a){a=a|0;return a+28|0}function Iu(a,b){a=a|0;b=b|0;var d=0,e=0;e=b;d=c[e+4>>2]|0;b=a+28|0;c[b>>2]=c[e>>2];c[b+4>>2]=d;return}function Ju(a){a=a|0;return+(+g[a+36>>2])}function Ku(a,b){a=a|0;b=+b;g[a+36>>2]=b;return}function Lu(a){a=a|0;return c[a>>2]|0}function Mu(a,b){a=a|0;b=b|0;c[a>>2]=b;return}function Nu(a){a=a|0;return c[a+4>>2]|0}function Ou(a,b){a=a|0;b=b|0;c[a+4>>2]=b;return}function Pu(a){a=a|0;return c[a+8>>2]|0}function Qu(a,b){a=a|0;b=b|0;c[a+8>>2]=b;return}function Ru(a){a=a|0;return c[a+12>>2]|0}function Su(a,b){a=a|0;b=b|0;c[a+12>>2]=b;return}function Tu(b){b=b|0;return(a[b+16>>0]|0)!=0|0}function Uu(b,c){b=b|0;c=c|0;a[b+16>>0]=c&1;return}function Vu(a){a=a|0;var b=0;b=i;if(a)OB(a);i=b;return}function Wu(){var b=0,d=0;b=i;d=NB(44)|0;a:do if(!d){while(1){d=c[4582]|0;c[4582]=d+0;if(!d)break;qb[d&63]();d=NB(44)|0;if(d)break a}d=cb(4)|0;c[d>>2]=18168;_a(d|0,18216,116)}while(0);c[d+0>>2]=0;c[d+4>>2]=0;c[d+8>>2]=0;c[d+12>>2]=0;a[d+16>>0]=0;c[d>>2]=11;g[d+20>>2]=0.0;g[d+24>>2]=0.0;g[d+28>>2]=0.0;g[d+32>>2]=1.0;g[d+36>>2]=1.0;g[d+40>>2]=.30000001192092896;i=b;return d|0}function Xu(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,h=0.0,j=0.0,k=0.0,l=0.0,m=0.0;e=i;c[a+8>>2]=b;c[a+12>>2]=d;f=d+12|0;k=+g[f>>2];k=k- +g[b+12>>2];l=+g[f+4>>2]- +g[b+16>>2];m=+g[b+24>>2];h=+g[b+20>>2];j=+(k*m+l*h);h=+(m*l-k*h);f=a+20|0;g[f>>2]=j;g[f+4>>2]=h;g[a+28>>2]=+g[d+56>>2]- +g[b+56>>2];i=e;return}function Yu(a){a=a|0;return a+20|0}function Zu(a,b){a=a|0;b=b|0;var d=0,e=0;e=b;d=c[e+4>>2]|0;b=a+20|0;c[b>>2]=c[e>>2];c[b+4>>2]=d;return}function _u(a){a=a|0;return+(+g[a+28>>2])}function $u(a,b){a=a|0;b=+b;g[a+28>>2]=b;return}function av(a){a=a|0;return+(+g[a+32>>2])}function bv(a,b){a=a|0;b=+b;g[a+32>>2]=b;return}function cv(a){a=a|0;return+(+g[a+36>>2])}function dv(a,b){a=a|0;b=+b;g[a+36>>2]=b;return}function ev(a){a=a|0;return+(+g[a+40>>2])}function fv(a,b){a=a|0;b=+b;g[a+40>>2]=b;return}function gv(a){a=a|0;return c[a>>2]|0}function hv(a,b){a=a|0;b=b|0;c[a>>2]=b;return}function iv(a){a=a|0;return c[a+4>>2]|0}function jv(a,b){a=a|0;b=b|0;c[a+4>>2]=b;return}function kv(a){a=a|0;return c[a+8>>2]|0}function lv(a,b){a=a|0;b=b|0;c[a+8>>2]=b;return}function mv(a){a=a|0;return c[a+12>>2]|0}function nv(a,b){a=a|0;b=b|0;c[a+12>>2]=b;return}function ov(b){b=b|0;return(a[b+16>>0]|0)!=0|0}function pv(b,c){b=b|0;c=c|0;a[b+16>>0]=c&1;return}function qv(a){a=a|0;var b=0;b=i;if(a)OB(a);i=b;return}function rv(){return 0}function sv(){return 1}function tv(){return 2}function uv(){return 3}function vv(){return 4}function wv(){return 0}function xv(){return 1}function yv(){return 2}function zv(){return 3}function Av(){return 4}function Bv(){return 5}function Cv(){return 6}function Dv(){return 7}function Ev(){return 8}function Fv(){return 9}function Gv(){return 10}function Hv(){return 11}function Iv(){return 0}function Jv(){return 1}function Kv(){return 2}function Lv(){return 3}function Mv(){return 0}function Nv(){return 1}function Ov(){return 2}function Pv(){return 0}function Qv(){return 1}function Rv(){return 2}function Sv(){return 1}function Tv(){return 2}function Uv(){return 4}function Vv(){return 8}function Wv(){return 16}function Xv(){return 0}function Yv(){return 1}function Zv(a){a=a|0;return}function _v(a){a=a|0;var b=0;b=i;OB(a);i=b;return}function $v(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;e=i;za(2096,a|0,b|0,c|0,d|0)|0;i=e;return}function aw(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;e=i;za(1864,a|0,b|0,c|0,d|0)|0;i=e;return}function bw(a,b,c,d){a=a|0;b=b|0;c=+c;d=d|0;var e=0;e=i;za(1648,a|0,b|0,+c,d|0)|0;i=e;return}function cw(a,b,c,d,e){a=a|0;b=b|0;c=+c;d=d|0;e=e|0;var f=0;f=i;za(1416,a|0,b|0,+c,d|0,e|0)|0;i=f;return}function dw(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;e=i;za(1200,a|0,b|0,c|0,d|0)|0;i=e;return}function ew(a,b){a=a|0;b=b|0;var c=0;c=i;za(984,a|0,b|0)|0;i=c;return}function fw(a){a=a|0;return}function gw(a){a=a|0;var b=0;b=i;OB(a);i=b;return}function hw(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=i;a=(za(2376,a|0,b|0,c|0)|0)!=0;i=d;return a|0}function iw(a){a=a|0;return}function jw(a){a=a|0;var b=0;b=i;OB(a);i=b;return}function kw(a){a=a|0;return}function lw(a){a=a|0;var b=0;b=i;OB(a);i=b;return}function mw(a){a=a|0;return}function nw(a){a=a|0;var b=0;b=i;OB(a);i=b;return}function ow(a){a=a|0;return}function pw(a){a=a|0;var b=0;b=i;OB(a);i=b;return}function qw(a,b){a=a|0;b=b|0;var c=0;c=i;za(3016,a|0,b|0)|0;i=c;return}function rw(a,b){a=a|0;b=b|0;var c=0;c=i;za(2784,a|0,b|0)|0;i=c;return}function sw(a,b,c){a=a|0;b=b|0;c=c|0;return}function tw(a,b,c){a=a|0;b=b|0;c=c|0;return}function uw(a){a=a|0;return}function vw(a){a=a|0;var b=0;b=i;OB(a);i=b;return}function ww(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=+e;var f=0;f=i;e=+Fa(3352,a|0,b|0,c|0,d|0,+e);i=f;return+e}function xw(a){a=a|0;return}function yw(a){a=a|0;var b=0;b=i;OB(a);i=b;return}function zw(a,b){a=a|0;b=b|0;var c=0;c=i;a=(za(3704,a|0,b|0)|0)!=0;i=c;return a|0}function Aw(a){a=a|0;return}function Bw(a){a=a|0;var b=0;b=i;OB(a);i=b;return}function Cw(a,b){a=a|0;b=b|0;var d=0;d=i;lb[c[(c[a>>2]|0)+16>>2]&127](a,b);i=d;return}function Dw(a,b){a=a|0;b=b|0;var d=0;d=i;lb[c[(c[a>>2]|0)+20>>2]&127](a,b);i=d;return}function Ew(a,b){a=a|0;b=b|0;var c=0;c=i;za(4528,a|0,b|0)|0;i=c;return}function Fw(a,b){a=a|0;b=b|0;var c=0;c=i;za(4264,a|0,b|0)|0;i=c;return}function Gw(b,d){b=b|0;d=d|0;var e=0.0,f=0.0,h=0.0,j=0.0,l=0.0,m=0.0,n=0,o=0,p=0,q=0,r=0.0,s=0.0,t=0.0,u=0.0,v=0.0,w=0.0,x=0.0,y=0.0,z=0.0,A=0.0,B=0.0,C=0.0,D=0.0,E=0.0,F=0.0,G=0.0,H=0.0,I=0.0,J=0.0,K=0.0,L=0,M=0.0,N=0,O=0,P=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0;q=i;o=c[b+48>>2]|0;X=c[o+8>>2]|0;n=b+104|0;c[n>>2]=X;W=c[b+52>>2]|0;U=c[W+8>>2]|0;p=b+108|0;c[p>>2]=U;S=o+28|0;T=c[S>>2]|0;S=c[S+4>>2]|0;O=b+128|0;c[O>>2]=T;c[O+4>>2]=S;O=W+28|0;P=c[O>>2]|0;O=c[O+4>>2]|0;N=b+136|0;c[N>>2]=P;c[N+4>>2]=O;N=b+156|0;g[N>>2]=+g[o+120>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F+4>>2];x=+g[E+(z*12|0)+8>>2];f=+g[a+156>>2];e=+g[a+160>>2];d=+g[a+164>>2];p=+g[a+168>>2];B=+g[b>>2];C=+g[b+4>>2]*+g[a+100>>2];b=a+88|0;s=+g[b>>2];w=B*+g[a+96>>2];t=s- +g[a+188>>2]*(x-y+C*+g[a+152>>2]);v=-w;w=t >2]=w;s=w-s;y=y-d*s;s=x+p*s;x=+g[a+124>>2];w=+g[a+120>>2];v=+g[a+116>>2];t=+g[a+112>>2];D=+g[a+144>>2]*C+(v*y+(m-x*s-l));C=C*+g[a+148>>2]+(n+w*s-h-t*y);A=+g[a+176>>2]*D+ +g[a+184>>2]*C;b=a+80|0;z=b;u=+g[z>>2];r=+g[z+4>>2];C=u-(+g[a+172>>2]*D+ +g[a+180>>2]*C);g[b>>2]=C;z=a+84|0;A=+g[z>>2]-A;g[z>>2]=A;B=B*+g[a+92>>2];D=C*C+A*A;if(D>B*B){D=+O(+D);if(!(D<1.1920928955078125e-7)){D=1.0/D;C=C*D;g[b>>2]=C;A=A*D;g[z>>2]=A}C=B*C;g[b>>2]=C;A=B*A;g[z>>2]=A}D=C-u;C=A-r;B=+(l-f*D);A=+(h-f*C);F=(c[j>>2]|0)+((c[k>>2]|0)*12|0)|0;g[F>>2]=B;g[F+4>>2]=A;F=c[j>>2]|0;g[F+((c[k>>2]|0)*12|0)+8>>2]=y-d*(t*C-D*v);A=+(m+e*D);B=+(n+e*C);F=F+((c[o>>2]|0)*12|0)|0;g[F>>2]=A;g[F+4>>2]=B;g[(c[j>>2]|0)+((c[o>>2]|0)*12|0)+8>>2]=s+p*(C*w-D*x);i=q;return}function Iw(a,b){a=a|0;b=b|0;return 1}function Jw(a,b){a=a|0;b=b|0;var d=0,e=0;e=(c[b+48>>2]|0)+12|0;d=c[e+4>>2]|0;b=a;c[b>>2]=c[e>>2];c[b+4>>2]=d;return}function Kw(a,b){a=a|0;b=b|0;var d=0,e=0;e=(c[b+52>>2]|0)+12|0;d=c[e+4>>2]|0;b=a;c[b>>2]=c[e>>2];c[b+4>>2]=d;return}function Lw(a,b,c){a=a|0;b=b|0;c=+c;var d=0.0;d=+g[b+84>>2]*c;g[a>>2]=+g[b+80>>2]*c;g[a+4>>2]=d;return}function Mw(a,b){a=a|0;b=+b;return+(+g[a+88>>2]*b)}function Nw(a){a=a|0;var b=0,e=0,f=0,j=0.0,l=0;b=i;i=i+16|0;e=b;l=c[(c[a+48>>2]|0)+8>>2]|0;f=c[(c[a+52>>2]|0)+8>>2]|0;Nx(4976,e);c[e>>2]=l;Nx(17320,e);c[e>>2]=f;Nx(17352,e);c[e>>2]=d[a+61>>0];Nx(17384,e);j=+g[a+72>>2];h[k>>3]=+g[a+68>>2];c[e>>2]=c[k>>2];c[e+4>>2]=c[k+4>>2];f=e+8|0;h[k>>3]=j;c[f>>2]=c[k>>2];c[f+4>>2]=c[k+4>>2];Nx(5e3,e);h[k>>3]=+g[a+76>>2];c[e>>2]=c[k>>2];c[e+4>>2]=c[k+4>>2];Nx(5048,e);h[k>>3]=+g[a+92>>2];c[e>>2]=c[k>>2];c[e+4>>2]=c[k+4>>2];Nx(14704,e);h[k>>3]=+g[a+96>>2];c[e>>2]=c[k>>2];c[e+4>>2]=c[k+4>>2];Nx(14736,e);h[k>>3]=+g[a+100>>2];c[e>>2]=c[k>>2];c[e+4>>2]=c[k+4>>2];Nx(5080,e);c[e>>2]=c[a+56>>2];Nx(17720,e);i=b;return}function Ow(a,b){a=a|0;b=b|0;return}function Pw(a){a=a|0;return}function Qw(a){a=a|0;var b=0;b=i;OB(a);i=b;return}function Rw(a){a=a|0;Ja(a|0)|0;oB()}function Sw(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;d=i;e=a+40|0;f=c[e>>2]|0;g=a+36|0;a=a+32|0;if((f|0)==(c[g>>2]|0)){h=c[a>>2]|0;c[g>>2]=f<<1;f=NB(f<<3)|0;c[a>>2]=f;SB(f|0,h|0,c[e>>2]<<2|0)|0;OB(h);f=c[e>>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c[U>>2]=V;c[U+4>>2]=P;S=+-(c[k>>2]=V,+g[k>>2]);T=+z;V=r+356|0;g[V>>2]=S;g[V+4>>2]=T;V=r+364|0;g[V>>2]=S;g[V+4>>2]=T;break}else{S=+-A;T=+z;U=v;g[U>>2]=S;g[U+4>>2]=T;U=u;P=c[U>>2]|0;U=c[U+4>>2]|0;V=r+356|0;c[V>>2]=P;c[V+4>>2]=U;V=r+364|0;c[V>>2]=P;c[V+4>>2]=U;break}}v=J>=0.0;if(w){if(!v){V=F>=0.0;a[r+376>>0]=V&1;v=r+340|0;if(!V){S=+-A;T=+z;P=v;g[P>>2]=S;g[P+4>>2]=T;P=u;U=c[P>>2]|0;P=c[P+4>>2]|0;V=r+356|0;c[V>>2]=U;c[V+4>>2]=P;V=r+364|0;g[V>>2]=-(c[k>>2]=U,+g[k>>2]);g[V+4>>2]=T;break}}else{a[r+376>>0]=1;v=r+340|0}V=u;U=c[V+4>>2]|0;P=v;c[P>>2]=c[V>>2];c[P+4>>2]=U;P=r+316|0;U=c[P+4>>2]|0;V=r+356|0;c[V>>2]=c[P>>2];c[V+4>>2]=U;S=+-+g[u>>2];T=+-+g[d>>2];V=r+364|0;g[V>>2]=S;g[V+4>>2]=T;break}else{if(v){V=F>=0.0;a[r+376>>0]=V&1;v=r+340|0;if(V){P=u;V=c[P>>2]|0;P=c[P+4>>2]|0;U=v;c[U>>2]=V;c[U+4>>2]=P;U=r+356|0;c[U>>2]=V;c[U+4>>2]=P;S=+-(c[k>>2]=V,+g[k>>2]);T=+z;V=r+364|0;g[V>>2]=S;g[V+4>>2]=T;break}}else{a[r+376>>0]=0;v=r+340|0}T=+-A;S=+z;P=v;g[P>>2]=T;g[P+4>>2]=S;P=u;U=c[P+4>>2]|0;V=r+356|0;c[V>>2]=c[P>>2];c[V+4>>2]=U;S=+-+g[r+316>>2];T=+-+g[r+320>>2];V=r+364|0;g[V>>2]=S;g[V+4>>2]=T;break}}else{I=I-E;H=H-D;K=+O(+(I*I+H*H));if(!(K<1.1920928955078125e-7)){T=1.0/K;I=I*T;H=H*T}T=-I;x=r+332|0;g[x>>2]=H;y=r+336|0;g[y>>2]=T;G=z*H-A*I>0.0;B=(B-E)*H+(C-D)*T;if(!v){v=F>=0.0;if(G){if(!v){V=B>=0.0;a[r+376>>0]=V&1;v=r+340|0;if(!V){S=+-A;T=+z;P=v;g[P>>2]=S;g[P+4>>2]=T;P=r+356|0;g[P>>2]=S;g[P+4>>2]=T;P=u;U=c[P+4>>2]|0;V=r+364|0;c[V>>2]=c[P>>2];c[V+4>>2]=U;break}}else{a[r+376>>0]=1;v=r+340|0}V=u;U=c[V+4>>2]|0;P=v;c[P>>2]=c[V>>2];c[P+4>>2]=U;S=+-+g[u>>2];T=+-+g[d>>2];P=r+356|0;g[P>>2]=S;g[P+4>>2]=T;P=r+332|0;U=c[P+4>>2]|0;V=r+364|0;c[V>>2]=c[P>>2];c[V+4>>2]=U;break}else{if(v){V=B>=0.0;a[r+376>>0]=V&1;v=r+340|0;if(V){U=u;P=c[U>>2]|0;U=c[U+4>>2]|0;V=v;c[V>>2]=P;c[V+4>>2]=U;S=+-(c[k>>2]=P,+g[k>>2]);T=+z;V=r+356|0;g[V>>2]=S;g[V+4>>2]=T;V=r+364|0;c[V>>2]=P;c[V+4>>2]=U;break}}else{a[r+376>>0]=0;v=r+340|0}T=+-A;S=+z;P=v;g[P>>2]=T;g[P+4>>2]=S;S=+-+g[x>>2];T=+-+g[y>>2];P=r+356|0;g[P>>2]=S;g[P+4>>2]=T;P=u;U=c[P+4>>2]|0;V=r+364|0;c[V>>2]=c[P>>2];c[V+4>>2]=U;break}}if(w&G){if(!(J>=0.0)&!(F>=0.0)){V=B>=0.0;a[r+376>>0]=V&1;v=r+340|0;if(!V){S=+-A;T=+z;V=v;g[V>>2]=S;g[V+4>>2]=T;V=r+356|0;g[V>>2]=S;g[V+4>>2]=T;V=r+364|0;g[V>>2]=S;g[V+4>>2]=T;break}}else{a[r+376>>0]=1;v=r+340|0}P=u;U=c[P+4>>2]|0;V=v;c[V>>2]=c[P>>2];c[V+4>>2]=U;V=r+316|0;U=c[V+4>>2]|0;P=r+356|0;c[P>>2]=c[V>>2];c[P+4>>2]=U;P=r+332|0;U=c[P+4>>2]|0;V=r+364|0;c[V>>2]=c[P>>2];c[V+4>>2]=U;break}if(w){do if(!(J>=0.0)){if(F>=0.0){V=B>=0.0;a[r+376>>0]=V&1;v=r+340|0;if(V)break}else{a[r+376>>0]=0;v=r+340|0}S=+-A;T=+z;V=v;g[V>>2]=S;g[V+4>>2]=T;T=+-+g[x>>2];S=+-+g[y>>2];V=r+356|0;g[V>>2]=T;g[V+4>>2]=S;S=+-+g[u>>2];T=+-+g[d>>2];V=r+364|0;g[V>>2]=S;g[V+4>>2]=T;break a}else{a[r+376>>0]=1;v=r+340|0}while(0);P=u;U=c[P+4>>2]|0;V=v;c[V>>2]=c[P>>2];c[V+4>>2]=U;V=r+316|0;U=c[V+4>>2]|0;P=r+356|0;c[P>>2]=c[V>>2];c[P+4>>2]=U;P=u;U=c[P+4>>2]|0;V=r+364|0;c[V>>2]=c[P>>2];c[V+4>>2]=U;break}if(!G){if(!(!(J>=0.0)|!(F>=0.0))){V=B>=0.0;a[r+376>>0]=V&1;v=r+340|0;if(V){U=u;P=c[U>>2]|0;U=c[U+4>>2]|0;V=v;c[V>>2]=P;c[V+4>>2]=U;V=r+356|0;c[V>>2]=P;c[V+4>>2]=U;V=r+364|0;c[V>>2]=P;c[V+4>>2]=U;break}}else{a[r+376>>0]=0;v=r+340|0}S=+-A;T=+z;V=v;g[V>>2]=S;g[V+4>>2]=T;T=+-+g[x>>2];S=+-+g[y>>2];V=r+356|0;g[V>>2]=T;g[V+4>>2]=S;S=+-+g[r+316>>2];T=+-+g[r+320>>2];V=r+364|0;g[V>>2]=S;g[V+4>>2]=T;break}do if(!(B>=0.0)){if(J>=0.0){V=F>=0.0;a[r+376>>0]=V&1;v=r+340|0;if(V)break}else{a[r+376>>0]=0;v=r+340|0}S=+-A;T=+z;V=v;g[V>>2]=S;g[V+4>>2]=T;T=+-+g[u>>2];S=+-+g[d>>2];V=r+356|0;g[V>>2]=T;g[V+4>>2]=S;S=+-+g[r+316>>2];T=+-+g[r+320>>2];V=r+364|0;g[V>>2]=S;g[V+4>>2]=T;break a}else{a[r+376>>0]=1;v=r+340|0}while(0);P=u;U=c[P+4>>2]|0;V=v;c[V>>2]=c[P>>2];c[V+4>>2]=U;V=u;U=c[V+4>>2]|0;P=r+356|0;c[P>>2]=c[V>>2];c[P+4>>2]=U;P=r+332|0;U=c[P+4>>2]|0;V=r+364|0;c[V>>2]=c[P>>2];c[V+4>>2]=U}while(0);y=c[f+276>>2]|0;v=r+256|0;c[v>>2]=y;if((y|0)>0){w=0;do{Q=+g[e>>2];S=+g[f+(w<<3)+20>>2];T=+g[h>>2];R=+g[f+(w<<3)+24>>2];N=+(+g[m>>2]+(Q*S-T*R));R=+(S*T+Q*R+ +g[n>>2]);V=r+(w<<3)|0;g[V>>2]=N;g[V+4>>2]=R;R=+g[e>>2];N=+g[f+(w<<3)+148>>2];Q=+g[h>>2];T=+g[f+(w<<3)+152>>2];S=+(R*N-Q*T);T=+(N*Q+R*T);V=r+(w<<3)+128|0;g[V>>2]=S;g[V+4>>2]=T;w=w+1|0}while((w|0)<(y|0));y=c[v>>2]|0}w=r+372|0;g[w>>2]=.019999999552965164;v=b+60|0;c[v>>2]=0;x=a[r+376>>0]|0;G=(y|0)>0;if(!G){i=j;return}z=+g[r+292>>2];D=+g[r+296>>2];C=+g[r+340>>2];E=+g[r+344>>2];F=3.4028234663852886e+38;B=3.4028234663852886e+38;P=0;while(1){A=(+g[r+(P<<3)>>2]-z)*C+(+g[r+(P<<3)+4>>2]-D)*E;M=A =(y|0))break;else F=M?A:F}if(B>.019999999552965164){i=j;return}z=+g[r+344>>2];A=+g[r+340>>2];do if(G){H=+g[r+292>>2];J=+g[r+296>>2];K=+g[r+300>>2];L=+g[r+304>>2];I=+g[r+356>>2];F=+g[r+360>>2];E=+g[r+364>>2];D=+g[r+368>>2];N=-3.4028234663852886e+38;G=0;P=0;M=-1;Q=-3.4028234663852886e+38;while(1){R=+g[r+(G<<3)+128>>2];T=-R;S=-+g[r+(G<<3)+132>>2];X=+g[r+(G<<3)>>2];C=+g[r+(G<<3)+4>>2];W=(X-H)*T+(C-J)*S;C=(X-K)*T+(C-L)*S;C=W .019999999552965164){P=2;break}if(!(z*R+A*S>=0.0))if(C>N?!((T-I)*A+(S-F)*z<-.03490658849477768):0)p=77;else C=Q;else if(C>N?!((T-E)*A+(S-D)*z<-.03490658849477768):0)p=77;else C=Q;if((p|0)==77){p=0;N=C;P=2;M=G}G=G+1|0;if((G|0)>=(y|0)){G=M;p=79;break}else Q=C}if((p|0)==79)if(!P){p=82;break}if(C>.019999999552965164){i=j;return}if(C>B*.9800000190734863+.0010000000474974513){M=(P|0)==1;P=b+56|0;if(M){G=M;M=q;p=84}else{c[P>>2]=2;x=s;d=c[x+4>>2]|0;s=q;c[s>>2]=c[x>>2];c[s+4>>2]=d;s=q+8|0;a[s>>0]=0;d=G&255;a[s+1>>0]=d;a[s+2>>0]=0;a[s+3>>0]=1;s=t;t=c[s+4>>2]|0;x=q+12|0;c[x>>2]=c[s>>2];c[x+4>>2]=t;x=q+20|0;a[x>>0]=0;a[x+1>>0]=d;a[x+2>>0]=0;a[x+3>>0]=1;x=G+1|0;x=(x|0)<(y|0)?x:0;y=r+(G<<3)|0;t=r+(x<<3)|0;d=r+(G<<3)+128|0;s=c[t+4>>2]|0;t=c[t>>2]|0;r=M;M=x;x=c[y>>2]|0;y=c[y+4>>2]|0;u=c[d>>2]|0;d=c[d+4>>2]|0}}else p=82}else p=82;while(0);if((p|0)==82){G=1;M=q;P=b+56|0;p=84}do if((p|0)==84){c[P>>2]=1;if((y|0)>1){U=0;B=A*+g[r+128>>2]+z*+g[r+132>>2];p=1;while(1){C=A*+g[r+(p<<3)+128>>2]+z*+g[r+(p<<3)+132>>2];P=C=(y|0))break;else B=P?C:B}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g[k>>2]);D=+g[w>>2];E=+g[m>>2];F=+g[n>>2];H=+g[e>>2];I=+g[h>>2];h=0;e=0;do{n=l+(h*12|0)|0;J=+g[n>>2];K=+g[l+(h*12|0)+4>>2];if((J-B)*C+(K-A)*z<=D){m=b+(e*20|0)|0;if(r){X=J-E;T=K-F;W=+(X*H+T*I);X=+(H*T-X*I);V=m;g[V>>2]=W;g[V+4>>2]=X;c[b+(e*20|0)+16>>2]=c[l+(h*12|0)+8>>2]}else{P=n;V=c[P+4>>2]|0;U=m;c[U>>2]=c[P>>2];c[U+4>>2]=V;U=l+(h*12|0)+8|0;V=b+(e*20|0)+16|0;a[V+2>>0]=a[U+3>>0]|0;a[V+3>>0]=a[U+2>>0]|0;a[V>>0]=a[U+1>>0]|0;a[V+1>>0]=a[U>>0]|0}e=e+1|0}h=h+1|0}while((h|0)!=2);c[v>>2]=e;i=j;return}function Vw(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var h=0,j=0,k=0,l=0.0,m=0.0,n=0.0,o=0.0,p=0,q=0.0,r=0.0,s=0.0,t=0.0,u=0.0,v=0,w=0.0,x=0.0;h=i;j=c[b+276>>2]|0;k=c[e+276>>2]|0;t=+g[f+12>>2];o=+g[d+8>>2];w=+g[f+8>>2];l=+g[d+12>>2];m=t*o-w*l;l=o*w+t*l;o=+g[d>>2]- +g[f>>2];u=+g[d+4>>2]- +g[f+4>>2];n=t*o+w*u;o=t*u-w*o;if((j|0)<=0){v=0;w=-3.4028234663852886e+38;c[a>>2]=v;i=h;return+w}d=(k|0)>0;p=0;f=0;q=-3.4028234663852886e+38;do{w=+g[b+(f<<3)+148>>2];t=+g[b+(f<<3)+152>>2];r=l*w-m*t;t=m*w+l*t;w=+g[b+(f<<3)+20>>2];u=+g[b+(f<<3)+24>>2];s=n+(l*w-m*u);u=o+(m*w+l*u);if(d){v=0;w=3.4028234663852886e+38;do{x=r*(+g[e+(v<<3)+20>>2]-s)+t*(+g[e+(v<<3)+24>>2]-u);w=x q;q=v?w:q;p=v?f:p;f=f+1|0}while((f|0)!=(j|0));c[a>>2]=p;i=h;return+q}function Ww(b,d,e,f,h,j){b=b|0;d=d|0;e=+e;f=+f;h=+h;j=j|0;var k=0.0,l=0,m=0,n=0,o=0,p=0,q=0;o=i;l=d+4|0;k=+g[d>>2]*e+ +g[l>>2]*f-h;m=d+12|0;n=d+16|0;h=+g[m>>2]*e+ +g[n>>2]*f-h;if(!(k<=0.0))p=0;else{c[b+0>>2]=c[d+0>>2];c[b+4>>2]=c[d+4>>2];c[b+8>>2]=c[d+8>>2];p=1}if(h<=0.0){q=p+1|0;p=b+(p*12|0)|0;c[p+0>>2]=c[m+0>>2];c[p+4>>2]=c[m+4>>2];c[p+8>>2]=c[m+8>>2];p=q}if(!(k*h<0.0)){q=p;i=o;return q|0}h=k/(k-h);f=+g[d>>2];e=+g[l>>2];f=+(f+h*(+g[m>>2]-f));e=+(e+h*(+g[n>>2]-e));q=b+(p*12|0)|0;g[q>>2]=f;g[q+4>>2]=e;q=b+(p*12|0)+8|0;a[q>>0]=j;a[q+1>>0]=a[d+9>>0]|0;a[q+2>>0]=0;a[q+3>>0]=1;q=p+1|0;i=o;return q|0}function Xw(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,h=0,j=0,k=0,l=0;e=i;f=c[b+4>>2]|0;if((f|0)==3){if((d|0)<=-1)Aa(5408,5448,53,7160);f=b+16|0;if((c[f>>2]|0)<=(d|0))Aa(5408,5448,53,7160);j=b+12|0;l=(c[j>>2]|0)+(d<<3)|0;k=c[l+4>>2]|0;h=a;c[h>>2]=c[l>>2];c[h+4>>2]=k;h=d+1|0;d=a+8|0;j=c[j>>2]|0;if((h|0)<(c[f>>2]|0)){j=j+(h<<3)|0;k=c[j+4>>2]|0;l=d;c[l>>2]=c[j>>2];c[l+4>>2]=k}else{k=c[j+4>>2]|0;l=d;c[l>>2]=c[j>>2];c[l+4>>2]=k}c[a+16>>2]=a;c[a+20>>2]=2;g[a+24>>2]=+g[b+8>>2];i=e;return}else if((f|0)==1){c[a+16>>2]=b+12;c[a+20>>2]=2;g[a+24>>2]=+g[b+8>>2];i=e;return}else if(!f){c[a+16>>2]=b+12;c[a+20>>2]=1;g[a+24>>2]=+g[b+8>>2];i=e;return}else if((f|0)==2){c[a+16>>2]=b+20;c[a+20>>2]=c[b+276>>2];g[a+24>>2]=+g[b+8>>2];i=e;return}else Aa(15224,5448,81,7160)}function Yw(e,f,h){e=e|0;f=f|0;h=h|0;var j=0,l=0,m=0,n=0,o=0,p=0.0,q=0.0,r=0,s=0,t=0.0,u=0.0,v=0,w=0.0,x=0.0,y=0.0,z=0.0,A=0.0,B=0,C=0,D=0.0,E=0,F=0.0,G=0,H=0,I=0,J=0.0,K=0,L=0,M=0,N=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0.0,_=0,$=0.0,aa=0.0,ba=0,ca=0,da=0,ea=0,fa=0.0,ga=0.0,ha=0.0,ia=0,ja=0.0,ka=0.0,la=0.0,ma=0.0,na=0.0,oa=0.0,pa=0.0,qa=0.0,ra=0.0,sa=0.0,ta=0.0;j=i;i=i+144|0;m=j;B=j+124|0;E=j+112|0;c[1346]=(c[1346]|0)+1;z=+g[h+56>>2];y=+g[h+60>>2];A=+g[h+64>>2];D=+g[h+68>>2];x=+g[h+72>>2];F=+g[h+76>>2];J=+g[h+80>>2];w=+g[h+84>>2];n=f+4|0;M=b[n>>1]|0;if((M&65535)>=4)Aa(5552,5448,102,5576);L=M&65535;o=m+108|0;c[o>>2]=L;a:do if(M<<16>>16){M=h+16|0;N=h+48|0;L=h+44|0;P=c[h+20>>2]|0;Q=0;while(1){S=d[f+Q+6>>0]|0;c[m+(Q*36|0)+28>>2]=S;R=d[f+Q+9>>0]|0;c[m+(Q*36|0)+32>>2]=R;if((P|0)<=(S|0)){Y=6;break}ia=(c[M>>2]|0)+(S<<3)|0;$=+g[ia>>2];Z=+g[ia+4>>2];if((c[N>>2]|0)<=(R|0)){Y=8;break}R=(c[L>>2]|0)+(R<<3)|0;ja=+g[R>>2];ga=+g[R+4>>2];ka=z+($*D-Z*A);ha=+ka;la=+(Z*D+$*A+y);R=m+(Q*36|0)|0;g[R>>2]=ha;g[R+4>>2]=la;la=x+(ja*w-ga*J);ha=+la;ja=+(ga*w+ja*J+F);R=m+(Q*36|0)+8|0;g[R>>2]=ha;g[R+4>>2]=ja;ka=+(la-ka);la=+(+g[m+(Q*36|0)+12>>2]- +g[m+(Q*36|0)+4>>2]);R=m+(Q*36|0)+16|0;g[R>>2]=ka;g[R+4>>2]=la;g[m+(Q*36|0)+24>>2]=0.0;Q=Q+1|0;R=c[o>>2]|0;if((Q|0)>=(R|0)){K=R;break a}}if((Y|0)==6)Aa(6336,6368,103,6416);else if((Y|0)==8)Aa(6336,6368,103,6416)}else K=L;while(0);do if((K|0)>1){ka=+g[f>>2];la=+Zw(m);if(!(la >2]|0;Y=15;break}c[o>>2]=0;Y=17}else Y=15;while(0);if((Y|0)==15)if(!K)Y=17;else{V=K;v=h+20|0;G=h+44|0;H=h+48|0;C=m+16|0;s=m+24|0;I=h+16|0}do if((Y|0)==17){c[m+28>>2]=0;c[m+32>>2]=0;K=h+20|0;if((c[K>>2]|0)<=0)Aa(6336,6368,103,6416);L=h+16|0;M=c[L>>2]|0;Z=+g[M>>2];$=+g[M+4>>2];M=h+48|0;if((c[M>>2]|0)>0){G=h+44|0;C=c[G>>2]|0;ja=+g[C>>2];fa=+g[C+4>>2];ka=z+(Z*D-$*A);la=$*D+Z*A+y;ga=+ka;ha=+la;C=m;g[C>>2]=ga;g[C+4>>2]=ha;ha=x+(ja*w-fa*J);ja=fa*w+ja*J+F;fa=+ha;ga=+ja;C=m+8|0;g[C>>2]=fa;g[C+4>>2]=ga;C=m+16|0;ka=+(ha-ka);la=+(ja-la);s=C;g[s>>2]=ka;g[s+4>>2]=la;s=m+24|0;g[s>>2]=1.0;c[o>>2]=1;V=1;v=K;H=M;I=L;break}else Aa(6336,6368,103,6416)}while(0);S=m+16|0;R=m+20|0;Q=m+52|0;P=m+56|0;M=m+36|0;N=m+52|0;K=m+60|0;U=m+72|0;T=m+88|0;L=m+96|0;W=0;b:while(1){X=(V|0)>0;if(X){Y=0;do{c[B+(Y<<2)>>2]=c[m+(Y*36|0)+28>>2];c[E+(Y<<2)>>2]=c[m+(Y*36|0)+32>>2];Y=Y+1|0}while((Y|0)!=(V|0))}do if((V|0)==2){ia=C;la=+g[ia>>2];Z=+g[ia+4>>2];ia=N;aa=+g[ia>>2];ga=+g[ia+4>>2];$=aa-la;fa=ga-Z;Z=la*$+Z*fa;if(Z>=-0.0){g[s>>2]=1.0;c[o>>2]=1;Y=45;break}$=aa*$+ga*fa;if(!($<=0.0)){la=1.0/($-Z);g[s>>2]=$*la;g[K>>2]=-(Z*la);c[o>>2]=2;Y=46;break}else{g[K>>2]=1.0;c[o>>2]=1;Y=m+0|0;_=M+0|0;ba=Y+36|0;do{c[Y>>2]=c[_>>2];Y=Y+4|0;_=_+4|0}while((Y|0)<(ba|0));Y=45;break}}else if((V|0)==1)Y=45;else if((V|0)==3){ia=C;pa=+g[ia>>2];na=+g[ia+4>>2];ia=N;ma=+g[ia>>2];oa=+g[ia+4>>2];ia=T;qa=+g[ia>>2];Z=+g[ia+4>>2];sa=ma-pa;aa=oa-na;ga=pa*sa+na*aa;ha=ma*sa+oa*aa;$=qa-pa;ra=Z-na;fa=pa*$+na*ra;la=qa*$+Z*ra;ta=qa-ma;ja=Z-oa;ka=ma*ta+oa*ja;ja=qa*ta+Z*ja;$=sa*ra-aa*$;aa=(ma*Z-oa*qa)*$;Z=(na*qa-pa*Z)*$;$=(pa*oa-na*ma)*$;if(!(!(ga>=-0.0)|!(fa>=-0.0))){g[s>>2]=1.0;c[o>>2]=1;Y=45;break}if(!(!(ga<-0.0)|!(ha>0.0)|!($<=0.0))){ta=1.0/(ha-ga);g[s>>2]=ha*ta;g[K>>2]=-(ga*ta);c[o>>2]=2;Y=46;break}if(!(!(fa<-0.0)|!(la>0.0)|!(Z<=0.0))){ta=1.0/(la-fa);g[s>>2]=la*ta;g[L>>2]=-(fa*ta);c[o>>2]=2;Y=M+0|0;_=U+0|0;ba=Y+36|0;do{c[Y>>2]=c[_>>2];Y=Y+4|0;_=_+4|0}while((Y|0)<(ba|0));Y=46;break}if(!(!(ha<=0.0)|!(ka>=-0.0))){g[K>>2]=1.0;c[o>>2]=1;Y=m+0|0;_=M+0|0;ba=Y+36|0;do{c[Y>>2]=c[_>>2];Y=Y+4|0;_=_+4|0}while((Y|0)<(ba|0));Y=45;break}if(!(!(la<=0.0)|!(ja<=0.0))){g[L>>2]=1.0;c[o>>2]=1;Y=m+0|0;_=U+0|0;ba=Y+36|0;do{c[Y>>2]=c[_>>2];Y=Y+4|0;_=_+4|0}while((Y|0)<(ba|0));Y=45;break}if(!(ka<-0.0)|!(ja>0.0)|!(aa<=0.0)){Y=43;break b}ta=1.0/(ja-ka);g[K>>2]=ja*ta;g[L>>2]=-(ka*ta);c[o>>2]=2;Y=m+0|0;_=U+0|0;ba=Y+36|0;do{c[Y>>2]=c[_>>2];Y=Y+4|0;_=_+4|0}while((Y|0)<(ba|0));Y=46}else{Y=44;break b}while(0);do if((Y|0)==45){_=1;Z=-+g[S>>2];$=-+g[R>>2]}else if((Y|0)==46){sa=+g[S>>2];$=+g[Q>>2]-sa;ta=+g[R>>2];Z=+g[P>>2]-ta;if(sa*Z-$*ta>0.0){_=2;Z=-Z;break}else{_=2;$=-$;break}}while(0);if(Z*Z+$*$<1.4210854715202004e-14){V=_;Y=71;break}ba=m+(_*36|0)|0;ha=-Z;ta=-$;ga=D*ha+A*ta;ha=D*ta-A*ha;ca=c[I>>2]|0;da=c[v>>2]|0;if((da|0)>1){ea=0;aa=ha*+g[ca+4>>2]+ga*+g[ca>>2];ia=1;while(1){fa=ga*+g[ca+(ia<<3)>>2]+ha*+g[ca+(ia<<3)+4>>2];Y=fa>aa;ea=Y?ia:ea;ia=ia+1|0;if((ia|0)==(da|0))break;else aa=Y?fa:aa}Y=m+(_*36|0)+28|0;c[Y>>2]=ea;if((ea|0)<=-1){Y=56;break}}else{Y=m+(_*36|0)+28|0;c[Y>>2]=0;ea=0}if((da|0)<=(ea|0)){Y=56;break}sa=+g[ca+(ea<<3)>>2];fa=+g[ca+(ea<<3)+4>>2];aa=z+(D*sa-A*fa);ta=+aa;fa=+(sa*A+D*fa+y);ca=ba;g[ca>>2]=ta;g[ca+4>>2]=fa;fa=w*Z+J*$;Z=w*$-Z*J;ca=c[G>>2]|0;ba=c[H>>2]|0;if((ba|0)>1){da=0;ga=Z*+g[ca+4>>2]+fa*+g[ca>>2];ea=1;while(1){$=fa*+g[ca+(ea<<3)>>2]+Z*+g[ca+(ea<<3)+4>>2];ia=$>ga;da=ia?ea:da;ea=ea+1|0;if((ea|0)==(ba|0))break;else ga=ia?$:ga}ea=m+(_*36|0)+32|0;c[ea>>2]=da;if((da|0)<=-1){Y=63;break}}else{ea=m+(_*36|0)+32|0;c[ea>>2]=0;da=0}if((ba|0)<=(da|0)){Y=63;break}qa=+g[ca+(da<<3)>>2];ta=+g[ca+(da<<3)+4>>2];sa=x+(w*qa-J*ta);ra=+sa;ta=+(qa*J+w*ta+F);ia=m+(_*36|0)+8|0;g[ia>>2]=ra;g[ia+4>>2]=ta;sa=+(sa-aa);ta=+(+g[m+(_*36|0)+12>>2]- +g[m+(_*36|0)+4>>2]);ia=m+(_*36|0)+16|0;g[ia>>2]=sa;g[ia+4>>2]=ta;W=W+1|0;c[1348]=(c[1348]|0)+1;if(X){Y=c[Y>>2]|0;X=0;do{if((Y|0)==(c[B+(X<<2)>>2]|0)?(c[ea>>2]|0)==(c[E+(X<<2)>>2]|0):0){Y=70;break b}X=X+1|0}while((X|0)<(V|0))}V=(c[o>>2]|0)+1|0;c[o>>2]=V;if((W|0)>=20){Y=71;break}}if((Y|0)==43){ta=1.0/($+(aa+Z));g[s>>2]=aa*ta;g[K>>2]=Z*ta;g[L>>2]=$*ta;c[o>>2]=3;l=c[1350]|0;c[1350]=(l|0)>(W|0)?l:W;l=e+8|0;r=W;Y=75}else if((Y|0)==44)Aa(15224,5448,498,5496);else if((Y|0)==56)Aa(6336,6368,103,6416);else if((Y|0)==63)Aa(6336,6368,103,6416);else if((Y|0)==70){V=c[o>>2]|0;Y=71}do if((Y|0)==71){v=c[1350]|0;c[1350]=(v|0)>(W|0)?v:W;v=e+8|0;if((V|0)==3){l=v;r=W;Y=75;break}else if(!V)Aa(15224,5448,218,5528);else if((V|0)==1){r=m;ea=c[r>>2]|0;r=c[r+4>>2]|0;l=e;c[l>>2]=ea;c[l+4>>2]=r;l=m+8|0;ia=c[l>>2]|0;l=c[l+4>>2]|0;da=v;c[da>>2]=ia;c[da+4>>2]=l;t=(c[k>>2]=ea,+g[k>>2]);u=(c[k>>2]=ia,+g[k>>2]);q=(c[k>>2]=r,+g[k>>2]);p=(c[k>>2]=l,+g[k>>2]);l=v;r=W;break}else if((V|0)==2){sa=+g[s>>2];p=+g[K>>2];t=sa*+g[m>>2]+p*+g[m+36>>2];q=sa*+g[m+4>>2]+p*+g[m+40>>2];ta=+t;u=+q;l=e;g[l>>2]=ta;g[l+4>>2]=u;u=sa*+g[m+8>>2]+p*+g[m+44>>2];p=sa*+g[m+12>>2]+p*+g[m+48>>2];sa=+u;ta=+p;l=v;g[l>>2]=sa;g[l+4>>2]=ta;l=v;r=W;break}else Aa(15224,5448,237,5528)}while(0);if((Y|0)==75){t=+g[s>>2];q=+g[K>>2];p=+g[L>>2];u=t*+g[m>>2]+q*+g[m+36>>2]+p*+g[m+72>>2];p=t*+g[m+4>>2]+q*+g[m+40>>2]+p*+g[m+76>>2];q=+u;t=+p;ia=e;g[ia>>2]=q;g[ia+4>>2]=t;ia=l;g[ia>>2]=q;g[ia+4>>2]=t;t=u;q=p}sa=t-u;s=e+4|0;v=e+12|0;ta=q-p;B=e+16|0;g[B>>2]=+O(+(sa*sa+ta*ta));c[e+20>>2]=r;g[f>>2]=+Zw(m);o=c[o>>2]|0;b[n>>1]=o;if((o|0)>0){n=0;do{a[f+n+6>>0]=c[m+(n*36|0)+28>>2];a[f+n+9>>0]=c[m+(n*36|0)+32>>2];n=n+1|0}while((n|0)<(o|0))}if(!(a[h+88>>0]|0)){i=j;return}p=+g[h+24>>2];q=+g[h+52>>2];t=+g[B>>2];u=p+q;if(!(t>u&t>1.1920928955078125e-7)){sa=+((+g[e>>2]+ +g[l>>2])*.5);ta=+((+g[s>>2]+ +g[v>>2])*.5);ia=e;g[ia>>2]=sa;g[ia+4>>2]=ta;ia=l;g[ia>>2]=sa;g[ia+4>>2]=ta;g[B>>2]=0.0;i=j;return}g[B>>2]=t-u;w=+g[l>>2];t=+g[e>>2];z=w-t;u=+g[v>>2];x=+g[s>>2];y=u-x;A=+O(+(z*z+y*y));if(!(A<1.1920928955078125e-7)){ta=1.0/A;z=z*ta;y=y*ta}g[e>>2]=p*z+t;g[s>>2]=p*y+x;g[l>>2]=w-q*z;g[v>>2]=u-q*y;i=j;return}function Zw(a){a=a|0;var b=0,d=0,e=0.0,f=0.0;b=i;d=c[a+108>>2]|0;if((d|0)==3){e=+g[a+16>>2];f=+g[a+20>>2];e=(+g[a+52>>2]-e)*(+g[a+92>>2]-f)-(+g[a+56>>2]-f)*(+g[a+88>>2]-e);i=b;return+e}else if(!d)Aa(15224,5448,247,5512);else if((d|0)==2){e=+g[a+16>>2]- +g[a+52>>2];f=+g[a+20>>2]- +g[a+56>>2];f=+O(+(e*e+f*f));i=b;return+f}else if((d|0)==1){f=0.0;i=b;return+f}else Aa(15224,5448,260,5512);return 0.0}function _w(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0;b=i;d=a+16|0;e=c[d>>2]|0;if((e|0)==-1){f=a+8|0;g=c[f>>2]|0;e=a+12|0;if((g|0)!=(c[e>>2]|0))Aa(5592,5624,58,5672);a=a+4|0;h=c[a>>2]|0;c[e>>2]=g<<1;g=NB(g*72|0)|0;c[a>>2]=g;SB(g|0,h|0,(c[f>>2]|0)*36|0)|0;OB(h);g=c[f>>2]|0;h=(c[e>>2]|0)+ -1|0;a=c[a>>2]|0;if((g|0)<(h|0))do{h=g;g=g+1|0;c[a+(h*36|0)+20>>2]=g;c[a+(h*36|0)+32>>2]=-1;h=(c[e>>2]|0)+ -1|0}while((g|0)<(h|0));c[a+(h*36|0)+20>>2]=-1;c[a+(((c[e>>2]|0)+ -1|0)*36|0)+32>>2]=-1;e=c[f>>2]|0;c[d>>2]=e}else{f=a+8|0;a=c[a+4>>2]|0}h=a+(e*36|0)+20|0;c[d>>2]=c[h>>2];c[h>>2]=-1;c[a+(e*36|0)+24>>2]=-1;c[a+(e*36|0)+28>>2]=-1;c[a+(e*36|0)+32>>2]=0;c[a+(e*36|0)+16>>2]=0;c[f>>2]=(c[f>>2]|0)+1;i=b;return e|0}function $w(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;d=i;if((b|0)<=-1)Aa(5688,5624,94,5728);if((c[a+12>>2]|0)<=(b|0))Aa(5688,5624,94,5728);e=a+8|0;if((c[e>>2]|0)>0){f=a+16|0;a=c[a+4>>2]|0;c[a+(b*36|0)+20>>2]=c[f>>2];c[a+(b*36|0)+32>>2]=-1;c[f>>2]=b;c[e>>2]=(c[e>>2]|0)+ -1;i=d;return}else Aa(5744,5624,95,5728)}function ax(a,b){a=a|0;b=b|0;var d=0,e=0,f=0.0,h=0.0,j=0.0,k=0.0,l=0,m=0,n=0,o=0,p=0.0,q=0.0,r=0.0,s=0.0,t=0.0,u=0.0,v=0.0,w=0.0,x=0.0,y=0.0,z=0.0,A=0;d=i;n=a+24|0;c[n>>2]=(c[n>>2]|0)+1;n=c[a>>2]|0;if((n|0)==-1){c[a>>2]=b;c[(c[a+4>>2]|0)+(b*36|0)+20>>2]=-1;i=d;return}e=a+4|0;l=c[e>>2]|0;f=+g[l+(b*36|0)>>2];h=+g[l+(b*36|0)+4>>2];j=+g[l+(b*36|0)+8>>2];k=+g[l+(b*36|0)+12>>2];m=c[l+(n*36|0)+24>>2]|0;a:do if((m|0)!=-1)do{o=c[l+(n*36|0)+28>>2]|0;s=+g[l+(n*36|0)+8>>2];y=+g[l+(n*36|0)>>2];u=+g[l+(n*36|0)+12>>2];q=+g[l+(n*36|0)+4>>2];w=((s>j?s:j)-(y k?u:k)-(q >2];y=f>2];w=h >2];r=j>v?j:v;t=+g[l+(m*36|0)+12>>2];x=k>t?k:t;if((c[l+(m*36|0)+24>>2]|0)==-1)r=(r-y+(x-w))*2.0;else r=(r-y+(x-w))*2.0-(v-u+(t-s))*2.0;r=q+r;s=+g[l+(o*36|0)>>2];w=f>2];y=h>2];v=j>u?j:u;t=+g[l+(o*36|0)+12>>2];x=k>t?k:t;if((c[l+(o*36|0)+24>>2]|0)==-1)s=(v-w+(x-y))*2.0;else s=(v-w+(x-y))*2.0-(u-s+(t-z))*2.0;q=q+s;if(p >2]|0}while((m|0)!=-1);while(0);l=c[l+(n*36|0)+20>>2]|0;m=_w(a)|0;o=c[e>>2]|0;c[o+(m*36|0)+20>>2]=l;c[o+(m*36|0)+16>>2]=0;o=c[e>>2]|0;z=+g[o+(n*36|0)>>2];y=+g[o+(n*36|0)+4>>2];z=+(f >2]=z;g[A+4>>2]=y;y=+g[o+(n*36|0)+8>>2];z=+g[o+(n*36|0)+12>>2];y=+(j>y?j:y);z=+(k>z?k:z);o=o+(m*36|0)+8|0;g[o>>2]=y;g[o+4>>2]=z;o=c[e>>2]|0;c[o+(m*36|0)+32>>2]=(c[o+(n*36|0)+32>>2]|0)+1;if((l|0)==-1){c[o+(m*36|0)+24>>2]=n;c[o+(m*36|0)+28>>2]=b;c[o+(n*36|0)+20>>2]=m;A=o+(b*36|0)+20|0;c[A>>2]=m;c[a>>2]=m;m=c[A>>2]|0}else{A=o+(l*36|0)+24|0;if((c[A>>2]|0)==(n|0))c[A>>2]=m;else c[o+(l*36|0)+28>>2]=m;c[o+(m*36|0)+24>>2]=n;c[o+(m*36|0)+28>>2]=b;c[o+(n*36|0)+20>>2]=m;c[o+(b*36|0)+20>>2]=m}if((m|0)==-1){i=d;return}while(1){n=dx(a,m)|0;b=c[e>>2]|0;l=c[b+(n*36|0)+24>>2]|0;m=c[b+(n*36|0)+28>>2]|0;if((l|0)==-1){e=20;break}if((m|0)==-1){e=22;break}o=c[b+(l*36|0)+32>>2]|0;A=c[b+(m*36|0)+32>>2]|0;c[b+(n*36|0)+32>>2]=((o|0)>(A|0)?o:A)+1;cx(b+(n*36|0)|0,b+(l*36|0)|0,b+(m*36|0)|0);m=c[(c[e>>2]|0)+(n*36|0)+20>>2]|0;if((m|0)==-1){e=24;break}}if((e|0)==20)Aa(5824,5624,304,5840);else if((e|0)==22)Aa(5856,5624,305,5840);else if((e|0)==24){i=d;return}}function bx(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0;e=i;if((c[a>>2]|0)==(b|0)){c[a>>2]=-1;i=e;return}d=a+4|0;f=c[d>>2]|0;g=c[f+(b*36|0)+20>>2]|0;h=c[f+(g*36|0)+20>>2]|0;j=c[f+(g*36|0)+24>>2]|0;if((j|0)==(b|0))j=c[f+(g*36|0)+28>>2]|0;if((h|0)==-1){c[a>>2]=j;c[f+(j*36|0)+20>>2]=-1;$w(a,g);i=e;return}b=f+(h*36|0)+24|0;if((c[b>>2]|0)==(g|0))c[b>>2]=j;else c[f+(h*36|0)+28>>2]=j;c[f+(j*36|0)+20>>2]=h;$w(a,g);do{j=dx(a,h)|0;b=c[d>>2]|0;f=c[b+(j*36|0)+24>>2]|0;g=c[b+(j*36|0)+28>>2]|0;cx(b+(j*36|0)|0,b+(f*36|0)|0,b+(g*36|0)|0);b=c[d>>2]|0;f=c[b+(f*36|0)+32>>2]|0;g=c[b+(g*36|0)+32>>2]|0;c[b+(j*36|0)+32>>2]=((f|0)>(g|0)?f:g)+1;h=c[b+(j*36|0)+20>>2]|0}while((h|0)!=-1);i=e;return}function cx(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0.0,f=0.0,h=0.0,j=0.0,k=0;d=i;e=+g[b>>2];f=+g[c>>2];h=+g[b+4>>2];j=+g[c+4>>2];f=+(e >2]=f;g[k+4>>2]=j;j=+g[b+8>>2];f=+g[c+8>>2];h=+g[b+12>>2];e=+g[c+12>>2];f=+(j>f?j:f);e=+(h>e?h:e);b=a+8|0;g[b>>2]=f;g[b+4>>2]=e;i=d;return}function dx(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0;d=i;if((b|0)==-1)Aa(5872,5624,379,5888);h=c[a+4>>2]|0;g=h+(b*36|0)|0;p=h+(b*36|0)+24|0;o=c[p>>2]|0;if((o|0)==-1){u=b;i=d;return u|0}j=h+(b*36|0)+32|0;if((c[j>>2]|0)<2){u=b;i=d;return u|0}q=h+(b*36|0)+28|0;n=c[q>>2]|0;if((o|0)<=-1)Aa(5896,5624,389,5888);m=c[a+12>>2]|0;if((o|0)>=(m|0))Aa(5896,5624,389,5888);if(!((n|0)>-1&(n|0)<(m|0)))Aa(5928,5624,390,5888);l=h+(o*36|0)|0;k=h+(n*36|0)|0;e=h+(n*36|0)+32|0;f=h+(o*36|0)+32|0;r=(c[e>>2]|0)-(c[f>>2]|0)|0;if((r|0)>1){u=h+(n*36|0)+24|0;o=c[u>>2]|0;p=h+(n*36|0)+28|0;r=c[p>>2]|0;t=h+(o*36|0)|0;s=h+(r*36|0)|0;if(!((o|0)>-1&(o|0)<(m|0)))Aa(5960,5624,404,5888);if(!((r|0)>-1&(r|0)<(m|0)))Aa(5992,5624,405,5888);c[u>>2]=b;u=h+(b*36|0)+20|0;m=h+(n*36|0)+20|0;c[m>>2]=c[u>>2];c[u>>2]=n;m=c[m>>2]|0;do if((m|0)!=-1){a=h+(m*36|0)+24|0;if((c[a>>2]|0)==(b|0)){c[a>>2]=n;break}a=h+(m*36|0)+28|0;if((c[a>>2]|0)==(b|0)){c[a>>2]=n;break}else Aa(6024,5624,421,5888)}else c[a>>2]=n;while(0);m=h+(o*36|0)+32|0;a=h+(r*36|0)+32|0;if((c[m>>2]|0)>(c[a>>2]|0)){c[p>>2]=o;c[q>>2]=r;c[h+(r*36|0)+20>>2]=b;cx(g,l,s);cx(k,g,t);f=c[f>>2]|0;u=c[a>>2]|0;u=((f|0)>(u|0)?f:u)+1|0;c[j>>2]=u;f=c[m>>2]|0;f=(u|0)>(f|0)?u:f}else{c[p>>2]=r;c[q>>2]=o;c[h+(o*36|0)+20>>2]=b;cx(g,l,t);cx(k,g,s);f=c[f>>2]|0;u=c[m>>2]|0;u=((f|0)>(u|0)?f:u)+1|0;c[j>>2]=u;f=c[a>>2]|0;f=(u|0)>(f|0)?u:f}c[e>>2]=f+1;u=n;i=d;return u|0}if((r|0)>=-1){u=b;i=d;return u|0}u=h+(o*36|0)+24|0;t=c[u>>2]|0;s=h+(o*36|0)+28|0;r=c[s>>2]|0;n=h+(t*36|0)|0;q=h+(r*36|0)|0;if(!((t|0)>-1&(t|0)<(m|0)))Aa(6056,5624,464,5888);if(!((r|0)>-1&(r|0)<(m|0)))Aa(6088,5624,465,5888);c[u>>2]=b;u=h+(b*36|0)+20|0;m=h+(o*36|0)+20|0;c[m>>2]=c[u>>2];c[u>>2]=o;m=c[m>>2]|0;do if((m|0)!=-1){a=h+(m*36|0)+24|0;if((c[a>>2]|0)==(b|0)){c[a>>2]=o;break}a=h+(m*36|0)+28|0;if((c[a>>2]|0)==(b|0)){c[a>>2]=o;break}else Aa(6120,5624,481,5888)}else c[a>>2]=o;while(0);m=h+(t*36|0)+32|0;a=h+(r*36|0)+32|0;if((c[m>>2]|0)>(c[a>>2]|0)){c[s>>2]=t;c[p>>2]=r;c[h+(r*36|0)+20>>2]=b;cx(g,k,q);cx(l,g,n);e=c[e>>2]|0;u=c[a>>2]|0;u=((e|0)>(u|0)?e:u)+1|0;c[j>>2]=u;e=c[m>>2]|0;e=(u|0)>(e|0)?u:e}else{c[s>>2]=r;c[p>>2]=t;c[h+(t*36|0)+20>>2]=b;cx(g,k,n);cx(l,g,q);e=c[e>>2]|0;u=c[m>>2]|0;u=((e|0)>(u|0)?e:u)+1|0;c[j>>2]=u;e=c[a>>2]|0;e=(u|0)>(e|0)?u:e}c[f>>2]=e+1;u=o;i=d;return u|0}function ex(a,b,d,e){a=a|0;b=b|0;d=d|0;e=+e;var f=0.0,h=0.0,j=0.0,k=0.0,l=0.0,m=0.0,n=0.0,o=0,p=0.0,q=0.0,r=0.0,s=0.0,t=0,u=0.0,v=0.0;o=i;q=1.0-e;f=q*+g[a+32>>2]+ +g[a+36>>2]*e;m=+R(+f);f=+Q(+f);j=+g[a+8>>2];n=+g[a+12>>2];l=q*+g[a+16>>2]+ +g[a+24>>2]*e-(f*j-m*n);n=q*+g[a+20>>2]+ +g[a+28>>2]*e-(m*j+f*n);j=q*+g[a+68>>2]+ +g[a+72>>2]*e;k=+R(+j);j=+Q(+j);r=+g[a+44>>2];s=+g[a+48>>2];h=q*+g[a+52>>2]+ +g[a+60>>2]*e-(j*r-k*s);e=q*+g[a+56>>2]+ +g[a+64>>2]*e-(k*r+j*s);t=c[a+80>>2]|0;if((t|0)==1){p=+g[a+92>>2];q=+g[a+96>>2];r=+g[a+84>>2];s=+g[a+88>>2];a=c[a+4>>2]|0;if((d|0)<=-1)Aa(6336,6368,103,6416);if((c[a+20>>2]|0)<=(d|0))Aa(6336,6368,103,6416);t=(c[a+16>>2]|0)+(d<<3)|0;v=+g[t>>2];u=+g[t+4>>2];s=(f*p-m*q)*(h+(j*v-k*u)-(l+(f*r-m*s)))+(m*p+f*q)*(e+(k*v+j*u)-(n+(m*r+f*s)));i=o;return+s}else if(!t){t=c[a>>2]|0;if((b|0)<=-1)Aa(6336,6368,103,6416);if((c[t+20>>2]|0)<=(b|0))Aa(6336,6368,103,6416);b=(c[t+16>>2]|0)+(b<<3)|0;p=+g[b>>2];q=+g[b+4>>2];b=c[a+4>>2]|0;if((d|0)<=-1)Aa(6336,6368,103,6416);if((c[b+20>>2]|0)<=(d|0))Aa(6336,6368,103,6416);t=(c[b+16>>2]|0)+(d<<3)|0;u=+g[t>>2];v=+g[t+4>>2];v=+g[a+92>>2]*(h+(j*u-k*v)-(l+(f*p-m*q)))+ +g[a+96>>2]*(e+(k*u+j*v)-(n+(m*p+f*q)));i=o;return+v}else if((t|0)==2){s=+g[a+92>>2];q=+g[a+96>>2];p=+g[a+84>>2];r=+g[a+88>>2];a=c[a>>2]|0;if((b|0)<=-1)Aa(6336,6368,103,6416);if((c[a+20>>2]|0)<=(b|0))Aa(6336,6368,103,6416);t=(c[a+16>>2]|0)+(b<<3)|0;u=+g[t>>2];v=+g[t+4>>2];v=(j*s-k*q)*(l+(f*u-m*v)-(h+(j*p-k*r)))+(k*s+j*q)*(n+(m*u+f*v)-(e+(k*p+j*r)));i=o;return+v}else Aa(15224,6256,239,6320);return 0.0}function fx(a){a=a|0;var b=0;b=i;c[a>>2]=6488;OB(c[a+12>>2]|0);OB(a);i=b;return}function gx(a){a=a|0;var b=0,d=0;b=i;c[a>>2]=6488;d=a+12|0;OB(c[d>>2]|0);c[d>>2]=0;c[a+16>>2]=0;i=b;return}function hx(a,d,e){a=a|0;d=d|0;e=e|0;var f=0,h=0,j=0,k=0,l=0.0,m=0.0,n=0.0,o=0.0;h=i;f=a+12|0;if(c[f>>2]|0)Aa(6520,6560,60,6680);j=a+16|0;if(c[j>>2]|0)Aa(6520,6560,60,6680);if((e|0)<=1)Aa(6696,6560,61,6680);m=+g[d>>2];l=+g[d+4>>2];k=1;while(1){o=m;m=+g[d+(k<<3)>>2];o=o-m;n=l;l=+g[d+(k<<3)+4>>2];n=n-l;k=k+1|0;if(!(o*o+n*n>2499999936844688.0e-20)){k=9;break}if((k|0)>=(e|0)){k=10;break}}if((k|0)==9)Aa(6712,6560,66,6680);else if((k|0)==10){c[j>>2]=e;k=NB(e<<3)|0;c[f>>2]=k;SB(k|0,d|0,c[j>>2]<<3|0)|0;k=a+20|0;c[k+0>>2]=0;c[k+4>>2]=0;c[k+8>>2]=0;c[k+12>>2]=0;b[k+16>>1]=0;i=h;return}}function ix(b,d){b=b|0;d=d|0;var e=0,f=0,h=0,j=0;e=i;d=Hx(d,40)|0;if(!d)d=0;else{c[d>>2]=6488;c[d+4>>2]=3;g[d+8>>2]=.009999999776482582;c[d+12>>2]=0;c[d+16>>2]=0;a[d+36>>0]=0;a[d+37>>0]=0}hx(d,c[b+12>>2]|0,c[b+16>>2]|0);f=b+20|0;h=c[f+4>>2]|0;j=d+20|0;c[j>>2]=c[f>>2];c[j+4>>2]=h;j=b+28|0;h=c[j+4>>2]|0;f=d+28|0;c[f>>2]=c[j>>2];c[f+4>>2]=h;a[d+36>>0]=a[b+36>>0]|0;a[d+37>>0]=a[b+37>>0]|0;i=e;return d|0}function jx(a){a=a|0;return(c[a+16>>2]|0)+ -1|0}function kx(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,h=0,j=0,k=0,l=0,m=0,n=0;f=i;if((e|0)<=-1)Aa(6776,6560,112,6816);h=b+16|0;if(((c[h>>2]|0)+ -1|0)<=(e|0))Aa(6776,6560,112,6816);c[d+4>>2]=1;g[d+8>>2]=+g[b+8>>2];j=b+12|0;k=(c[j>>2]|0)+(e<<3)|0;l=c[k+4>>2]|0;m=d+12|0;c[m>>2]=c[k>>2];c[m+4>>2]=l;m=(c[j>>2]|0)+(e+1<<3)|0;l=c[m+4>>2]|0;k=d+20|0;c[k>>2]=c[m>>2];c[k+4>>2]=l;k=d+28|0;if((e|0)>0){n=(c[j>>2]|0)+(e+ -1<<3)|0;l=c[n+4>>2]|0;m=k;c[m>>2]=c[n>>2];c[m+4>>2]=l;a[d+44>>0]=1}else{l=b+20|0;m=c[l+4>>2]|0;n=k;c[n>>2]=c[l>>2];c[n+4>>2]=m;a[d+44>>0]=a[b+36>>0]|0}k=d+36|0;if(((c[h>>2]|0)+ -2|0)>(e|0)){l=(c[j>>2]|0)+(e+2<<3)|0;m=c[l+4>>2]|0;n=k;c[n>>2]=c[l>>2];c[n+4>>2]=m;a[d+45>>0]=1;i=f;return}else{l=b+28|0;m=c[l+4>>2]|0;n=k;c[n>>2]=c[l>>2];c[n+4>>2]=m;a[d+45>>0]=a[b+37>>0]|0;i=f;return}}function lx(a,b,c){a=a|0;b=b|0;c=c|0;return 0}function mx(a,d,e,f,h){a=a|0;d=d|0;e=e|0;f=f|0;h=h|0;var j=0,k=0,l=0,m=0,n=0,o=0;j=i;i=i+48|0;k=j;l=c[a+16>>2]|0;if((l|0)>(h|0)){c[k>>2]=7008;c[k+4>>2]=1;g[k+8>>2]=.009999999776482582;m=k+28|0;c[m+0>>2]=0;c[m+4>>2]=0;c[m+8>>2]=0;c[m+12>>2]=0;b[m+16>>1]=0;m=h+1|0;a=c[a+12>>2]|0;o=a+(h<<3)|0;n=c[o+4>>2]|0;h=k+12|0;c[h>>2]=c[o>>2];c[h+4>>2]=n;l=a+(((m|0)==(l|0)?0:m)<<3)|0;h=c[l+4>>2]|0;a=k+20|0;c[a>>2]=c[l>>2];c[a+4>>2]=h;a=yx(k,d,e,f,0)|0;i=j;return a|0}else Aa(6832,6560,152,11784);return 0}function nx(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,h=0,j=0.0,k=0.0,l=0.0,m=0.0,n=0.0,o=0.0,p=0.0,q=0.0,r=0;f=i;h=c[a+16>>2]|0;if((h|0)>(e|0)){r=e+1|0;h=(r|0)==(h|0)?0:r;a=c[a+12>>2]|0;o=+g[d+12>>2];n=+g[a+(e<<3)>>2];p=+g[d+8>>2];l=+g[a+(e<<3)+4>>2];k=+g[d>>2];m=k+(o*n-p*l);q=+g[d+4>>2];l=n*p+o*l+q;n=+g[a+(h<<3)>>2];j=+g[a+(h<<3)+4>>2];k=k+(o*n-p*j);j=q+(p*n+o*j);o=+(m >2]=o;g[a+4>>2]=n;k=+(m>k?m:k);j=+(l>j?l:j);a=b+8|0;g[a>>2]=k;g[a+4>>2]=j;i=f;return}else Aa(6832,6560,171,6856)}function ox(a,b,d){a=a|0;b=b|0;d=+d;a=i;c[b+0>>2]=0;c[b+4>>2]=0;c[b+8>>2]=0;c[b+12>>2]=0;i=a;return}function px(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;d=i;b=Hx(b,20)|0;if(!b)b=0;else{c[b>>2]=6936;e=b+4|0;c[e+0>>2]=0;c[e+4>>2]=0;c[e+8>>2]=0;c[e+12>>2]=0}g=a+4|0;e=c[g+4>>2]|0;f=b+4|0;c[f>>2]=c[g>>2];c[f+4>>2]=e;f=a+12|0;a=c[f+4>>2]|0;e=b+12|0;c[e>>2]=c[f>>2];c[e+4>>2]=a;i=d;return b|0}function qx(a){a=a|0;return 1}function rx(a,b,c){a=a|0;b=b|0;c=c|0;var d=0.0,e=0.0,f=0.0,h=0.0,i=0.0;d=+g[b+12>>2];i=+g[a+12>>2];h=+g[b+8>>2];e=+g[a+16>>2];f=+g[c>>2]-(+g[b>>2]+(d*i-h*e));e=+g[c+4>>2]-(+g[b+4>>2]+(i*h+d*e));d=+g[a+8>>2];return f*f+e*e<=d*d|0}function sx(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0.0,h=0.0,j=0.0,k=0.0,l=0.0,m=0.0,n=0.0;e=i;m=+g[d+12>>2];k=+g[a+12>>2];n=+g[d+8>>2];h=+g[a+16>>2];l=+g[c>>2];f=l-(+g[d>>2]+(m*k-n*h));j=+g[c+4>>2];h=j-(+g[d+4>>2]+(k*n+m*h));m=+g[a+8>>2];l=+g[c+8>>2]-l;j=+g[c+12>>2]-j;n=f*l+h*j;k=l*l+j*j;m=n*n-(f*f+h*h-m*m)*k;if(m<0.0|k<1.1920928955078125e-7){d=0;i=e;return d|0}n=n+ +O(+m);m=-n;if(!(n<=-0.0)){d=0;i=e;return d|0}if(!(k*+g[c+16>>2]>=m)){d=0;i=e;return d|0}n=m/k;g[b+8>>2]=n;f=f+l*n;j=h+j*n;n=+f;h=+j;d=b;g[d>>2]=n;g[d+4>>2]=h;h=+O(+(f*f+j*j));if(h<1.1920928955078125e-7){d=1;i=e;return d|0}n=1.0/h;g[b>>2]=f*n;g[b+4>>2]=j*n;d=1;i=e;return d|0}function tx(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0.0,f=0.0,h=0.0,i=0.0,j=0.0;e=+g[c+12>>2];j=+g[a+12>>2];i=+g[c+8>>2];f=+g[a+16>>2];h=+g[c>>2]+(e*j-i*f);f=+g[c+4>>2]+(j*i+e*f);d=a+8|0;e=+g[d>>2];g[b>>2]=h-e;g[b+4>>2]=f-e;e=+g[d>>2];g[b+8>>2]=h+e;g[b+12>>2]=f+e;return}function ux(a,b,d){a=a|0;b=b|0;d=+d;var e=0.0,f=0.0,h=0.0,i=0,j=0,k=0,l=0,m=0;j=a+8|0;h=+g[j>>2];h=h*d*3.1415927410125732*h;g[b>>2]=h;i=a+12|0;m=i;l=c[m+4>>2]|0;k=b+4|0;c[k>>2]=c[m>>2];c[k+4>>2]=l;f=+g[j>>2];e=+g[i>>2];d=+g[a+16>>2];g[b+12>>2]=h*(f*f*.5+(e*e+d*d));return}function vx(a,d){a=a|0;d=d|0;var e=0,f=0,h=0,j=0;e=i;d=Hx(d,48)|0;if(!d)d=0;else{c[d>>2]=7008;c[d+4>>2]=1;g[d+8>>2]=.009999999776482582;f=d+28|0;c[f+0>>2]=0;c[f+4>>2]=0;c[f+8>>2]=0;c[f+12>>2]=0;b[f+16>>1]=0}j=a+4|0;h=c[j+4>>2]|0;f=d+4|0;c[f>>2]=c[j>>2];c[f+4>>2]=h;f=d+12|0;a=a+12|0;c[f+0>>2]=c[a+0>>2];c[f+4>>2]=c[a+4>>2];c[f+8>>2]=c[a+8>>2];c[f+12>>2]=c[a+12>>2];c[f+16>>2]=c[a+16>>2];c[f+20>>2]=c[a+20>>2];c[f+24>>2]=c[a+24>>2];c[f+28>>2]=c[a+28>>2];b[f+32>>1]=b[a+32>>1]|0;i=e;return d|0}function wx(a){a=a|0;return 1}function xx(a,b,c){a=a|0;b=b|0;c=c|0;return 0}function yx(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,h=0.0,j=0.0,k=0.0,l=0.0,m=0.0,n=0.0,o=0.0,p=0.0,q=0.0,r=0.0,s=0.0,t=0.0,u=0.0,v=0;e=i;m=+g[d>>2];l=+g[c>>2]-m;n=+g[d+4>>2];j=+g[c+4>>2]-n;f=d+12|0;q=+g[f>>2];d=d+8|0;k=+g[d>>2];h=l*q+j*k;l=q*j-l*k;m=+g[c+8>>2]-m;n=+g[c+12>>2]-n;j=q*m+k*n-h;m=q*n-k*m-l;v=a+12|0;k=+g[v>>2];n=+g[v+4>>2];a=a+20|0;q=+g[a>>2];q=q-k;p=+g[a+4>>2]-n;t=-q;o=q*q+p*p;r=+O(+o);if(r<1.1920928955078125e-7)s=p;else{u=1.0/r;s=p*u;t=u*t}r=(n-l)*t+(k-h)*s;u=m*t+j*s;if(u==0.0){v=0;i=e;return v|0}u=r/u;if(u<0.0){v=0;i=e;return v|0}if(o==0.0?1:+g[c+16>>2]1.0){v=0;i=e;return v|0}g[b+8>>2]=u;u=+g[f>>2];j=+g[d>>2];h=s*u-t*j;j=t*u+s*j;if(r>0.0){t=+-h;u=+-j;v=b;g[v>>2]=t;g[v+4>>2]=u;v=1;i=e;return v|0}else{t=+h;u=+j;v=b;g[v>>2]=t;g[v+4>>2]=u;v=1;i=e;return v|0}return 0}function zx(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0.0,f=0.0,h=0.0,j=0.0,k=0.0,l=0.0,m=0.0,n=0.0;d=i;j=+g[c+12>>2];m=+g[a+12>>2];l=+g[c+8>>2];h=+g[a+16>>2];f=+g[c>>2];k=f+(j*m-l*h);n=+g[c+4>>2];h=m*l+j*h+n;m=+g[a+20>>2];e=+g[a+24>>2];f=f+(j*m-l*e);e=n+(l*m+j*e);j=+g[a+8>>2];m=+((k >2]=m;g[c+4>>2]=l;f=+(j+(k>f?k:f));e=+(j+(h>e?h:e));c=b+8|0;g[c>>2]=f;g[c+4>>2]=e;i=d;return}function Ax(a,b,c){a=a|0;b=b|0;c=+c;var d=0,e=0.0;d=i;g[b>>2]=0.0;e=+((+g[a+12>>2]+ +g[a+20>>2])*.5);c=+((+g[a+16>>2]+ +g[a+24>>2])*.5);a=b+4|0;g[a>>2]=e;g[a+4>>2]=c;g[b+12>>2]=0.0;i=d;return}function Bx(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,h=0;d=i;b=Hx(b,280)|0;if(!b)b=0;else{c[b>>2]=7368;c[b+4>>2]=2;g[b+8>>2]=.009999999776482582;c[b+276>>2]=0;g[b+12>>2]=0.0;g[b+16>>2]=0.0}h=a+4|0;f=c[h+4>>2]|0;e=b+4|0;c[e>>2]=c[h>>2];c[e+4>>2]=f;SB(b+12|0,a+12|0,268)|0;i=d;return b|0}function Cx(a){a=a|0;return 1}function Dx(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0.0,h=0.0,j=0.0,k=0.0,l=0.0;e=i;j=+g[d>>2]- +g[b>>2];k=+g[d+4>>2]- +g[b+4>>2];l=+g[b+12>>2];h=+g[b+8>>2];f=j*l+k*h;h=l*k-j*h;b=c[a+276>>2]|0;if((b|0)>0)d=0;else{d=1;i=e;return d|0}while(1){if((f- +g[a+(d<<3)+20>>2])*+g[a+(d<<3)+148>>2]+(h- +g[a+(d<<3)+24>>2])*+g[a+(d<<3)+152>>2]>0.0){b=0;a=4;break}d=d+1|0;if((d|0)>=(b|0)){b=1;a=4;break}}if((a|0)==4){i=e;return b|0}return 0}function Ex(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var h=0,j=0.0,k=0.0,l=0,m=0.0,n=0.0,o=0.0,p=0,q=0.0,r=0.0,s=0.0,t=0,u=0.0,v=0.0,w=0.0,x=0.0;f=i;n=+g[e>>2];m=+g[d>>2]-n;w=+g[e+4>>2];r=+g[d+4>>2]-w;l=e+12|0;v=+g[l>>2];e=e+8|0;q=+g[e>>2];o=m*v+r*q;m=v*r-m*q;n=+g[d+8>>2]-n;w=+g[d+12>>2]-w;r=v*n+q*w-o;n=v*w-q*n-m;p=c[a+276>>2]|0;q=+g[d+16>>2];do if((p|0)>0){t=0;d=-1;s=0.0;u=q;a:while(1){x=+g[a+(t<<3)+148>>2];w=+g[a+(t<<3)+152>>2];v=(+g[a+(t<<3)+20>>2]-o)*x+(+g[a+(t<<3)+24>>2]-m)*w;w=r*x+n*w;do if(w==0.0){if(v<0.0){h=0;p=17;break a}}else{if(w<0.0?v 0.0?v=(p|0)){p=12;break}}if((p|0)==12){if(s>=0.0){j=q;h=d;k=s;break}Aa(7248,7104,328,11784)}else if((p|0)==17){i=f;return h|0}}else{j=q;h=-1;k=0.0}while(0);if(!(k<=j))Aa(7248,7104,328,11784);if((h|0)<=-1){t=0;i=f;return t|0}g[b+8>>2]=k;v=+g[l>>2];s=+g[a+(h<<3)+148>>2];u=+g[e>>2];x=+g[a+(h<<3)+152>>2];w=+(v*s-u*x);x=+(s*u+v*x);t=b;g[t>>2]=w;g[t+4>>2]=x;t=1;i=f;return t|0}function Fx(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0.0,h=0.0,j=0.0,k=0.0,l=0.0,m=0.0,n=0.0,o=0.0,p=0,q=0.0,r=0.0,s=0.0;e=i;f=+g[d+12>>2];n=+g[a+20>>2];h=+g[d+8>>2];o=+g[a+24>>2];j=+g[d>>2];l=j+(f*n-h*o);k=+g[d+4>>2];o=n*h+f*o+k;d=c[a+276>>2]|0;if((d|0)>1){m=l;n=o;p=1;do{s=+g[a+(p<<3)+20>>2];q=+g[a+(p<<3)+24>>2];r=j+(f*s-h*q);q=s*h+f*q+k;m=mr?l:r;o=o>q?o:q;p=p+1|0}while((p|0)<(d|0))}else{n=o;m=l}s=+g[a+8>>2];q=+(m-s);r=+(n-s);p=b;g[p>>2]=q;g[p+4>>2]=r;r=+(l+s);s=+(o+s);p=b+8|0;g[p>>2]=r;g[p+4>>2]=s;i=e;return}function Gx(a,b,d){a=a|0;b=b|0;d=+d;var e=0,f=0,h=0.0,j=0.0,k=0.0,l=0.0,m=0.0,n=0.0,o=0,p=0.0,q=0,r=0,s=0,t=0,u=0.0,v=0,w=0.0,x=0.0,y=0.0,z=0.0;e=i;f=c[a+276>>2]|0;if((f|0)>2){j=0.0;h=0.0;o=0}else Aa(7296,7104,385,7312);do{h=h+ +g[a+(o<<3)+20>>2];j=j+ +g[a+(o<<3)+24>>2];o=o+1|0}while((o|0)<(f|0));n=1.0/+(f|0);h=h*n;n=j*n;s=a+20|0;v=a+24|0;l=0.0;m=0.0;j=0.0;k=0.0;t=0;do{u=+g[a+(t<<3)+20>>2]-h;p=+g[a+(t<<3)+24>>2]-n;t=t+1|0;o=(t|0)<(f|0);if(o){q=a+(t<<3)+20|0;r=a+(t<<3)+24|0}else{q=s;r=v}x=+g[q>>2]-h;w=+g[r>>2]-n;y=u*w-p*x;z=y*.5;k=k+z;z=z*.3333333432674408;l=l+(u+x)*z;m=m+(p+w)*z;j=j+y*.0833333358168602*(x*x+(u*u+u*x)+(w*w+(p*p+p*w)))}while(o);p=k*d;g[b>>2]=p;if(k>1.1920928955078125e-7){z=1.0/k;y=l*z;z=m*z;w=h+y;x=n+z;n=+w;u=+x;v=b+4|0;g[v>>2]=n;g[v+4>>2]=u;g[b+12>>2]=j*d+p*(w*w+x*x-(y*y+z*z));i=e;return}else Aa(7328,7104,431,7312)}function Hx(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0;e=i;if(!d){k=0;i=e;return k|0}if((d|0)<=0)Aa(8280,8208,102,8528);if((d|0)>640){k=NB(d)|0;i=e;return k|0}k=a[7528+d>>0]|0;g=k&255;if((k&255)>=14)Aa(8296,8208,110,8528);d=b+(g<<2)+12|0;f=c[d>>2]|0;if(f){c[d>>2]=c[f>>2];k=f;i=e;return k|0}f=b+4|0;h=c[f>>2]|0;j=b+8|0;if((h|0)==(c[j>>2]|0)){k=c[b>>2]|0;h=h+128|0;c[j>>2]=h;h=NB(h<<3)|0;c[b>>2]=h;SB(h|0,k|0,c[f>>2]<<3|0)|0;QB((c[b>>2]|0)+(c[f>>2]<<3)|0,0,1024)|0;OB(k);h=c[f>>2]|0}k=c[b>>2]|0;j=NB(16384)|0;b=k+(h<<3)+4|0;c[b>>2]=j;g=c[7472+(g<<2)>>2]|0;c[k+(h<<3)>>2]=g;h=16384/(g|0)|0;if((_(h,g)|0)>=16385)Aa(8336,8208,138,8528);h=h+ -1|0;if((h|0)>0){k=0;do{l=k;k=k+1|0;c[j+(_(l,g)|0)>>2]=j+(_(k,g)|0);j=c[b>>2]|0}while((k|0)!=(h|0))}c[j+(_(h,g)|0)>>2]=0;c[d>>2]=c[c[b>>2]>>2];c[f>>2]=(c[f>>2]|0)+1;l=c[b>>2]|0;i=e;return l|0}function Ix(b,d,e){b=b|0;d=d|0;e=e|0;var f=0;f=i;if(!e){i=f;return}if((e|0)<=0)Aa(8280,8208,162,8568);if((e|0)>640){OB(d);i=f;return}e=a[7528+e>>0]|0;if((e&255)>=14)Aa(8296,8208,171,8568);e=b+((e&255)<<2)+12|0;c[d>>2]=c[e>>2];c[e>>2]=d;i=f;return}function Jx(a,b,c){a=a|0;b=b|0;c=c|0;var d=0.0,e=0.0,f=0.0,h=0.0,i=0.0,j=0.0,k=0.0,l=0.0,m=0.0,n=0.0,o=0.0,p=0.0,q=0.0,r=0.0,s=0.0,t=0.0;e=+g[b+16>>2];l=+g[b+32>>2];h=+g[b+20>>2];d=+g[b+28>>2];o=e*l-h*d;k=+g[b+24>>2];f=+g[b+12>>2];n=h*k-l*f;m=d*f-e*k;j=+g[b>>2];i=+g[b+4>>2];p=+g[b+8>>2];q=o*j+i*n+m*p;if(q!=0.0)q=1.0/q;r=+g[c>>2];s=+g[c+4>>2];t=+g[c+8>>2];g[a>>2]=q*(o*r+s*n+m*t);g[a+4>>2]=q*((s*l-t*d)*j+i*(t*k-l*r)+(d*r-s*k)*p);g[a+8>>2]=q*((e*t-h*s)*j+i*(h*r-t*f)+(s*f-e*r)*p);return}function Kx(a,b,c,d){a=a|0;b=b|0;c=+c;d=+d;var e=0.0,f=0.0,h=0.0,i=0.0,j=0.0;f=+g[b>>2];h=+g[b+12>>2];e=+g[b+4>>2];i=+g[b+16>>2];j=f*i-h*e;if(j!=0.0)j=1.0/j;g[a>>2]=j*(i*c-h*d);g[a+4>>2]=j*(f*d-e*c);return}function Lx(a,b){a=a|0;b=b|0;var d=0,e=0.0,f=0.0,h=0.0,j=0.0,k=0.0;d=i;e=+g[a>>2];h=+g[a+12>>2];f=+g[a+4>>2];j=+g[a+16>>2];k=e*j-h*f;if(k!=0.0)k=1.0/k;g[b>>2]=j*k;j=-k;g[b+12>>2]=h*j;g[b+8>>2]=0.0;g[b+4>>2]=f*j;g[b+16>>2]=e*k;a=b+20|0;c[a+0>>2]=0;c[a+4>>2]=0;c[a+8>>2]=0;c[a+12>>2]=0;i=d;return}function Mx(a,b){a=a|0;b=b|0;var c=0.0,d=0.0,e=0.0,f=0.0,h=0.0,i=0.0,j=0.0,k=0.0,l=0.0,m=0.0;d=+g[a+16>>2];c=+g[a+32>>2];l=d*c;m=+g[a+20>>2];f=+g[a+28>>2];h=+g[a+24>>2];i=+g[a+12>>2];k=c*i;j=f*i-d*h;e=+g[a>>2];m=(l-m*f)*e+ +g[a+4>>2]*(m*h-k)+j*+g[a+8>>2];if(m!=0.0)m=1.0/m;g[b>>2]=m*(l-f*f);l=m*(h*f-k);g[b+4>>2]=l;k=m*j;g[b+8>>2]=k;g[b+12>>2]=l;g[b+16>>2]=m*(e*c-h*h);l=m*(i*h-e*f);g[b+20>>2]=l;g[b+24>>2]=k;g[b+28>>2]=l;g[b+32>>2]=m*(e*d-i*i);return}function Nx(a,b){a=a|0;b=b|0;var d=0,e=0;d=i;i=i+16|0;e=d;c[e>>2]=b;Qa(a|0,e|0)|0;i=d;return}function Ox(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0;f=i;e=b+102796|0;g=c[e>>2]|0;if((g|0)>=32)Aa(8488,8392,38,8528);h=b+(g*12|0)+102412|0;c[b+(g*12|0)+102416>>2]=d;j=b+102400|0;k=c[j>>2]|0;if((k+d|0)>102400){c[h>>2]=NB(d)|0;a[b+(g*12|0)+102420>>0]=1}else{c[h>>2]=b+k;a[b+(g*12|0)+102420>>0]=0;c[j>>2]=(c[j>>2]|0)+d}k=b+102404|0;j=(c[k>>2]|0)+d|0;c[k>>2]=j;k=b+102408|0;d=c[k>>2]|0;c[k>>2]=(d|0)>(j|0)?d:j;c[e>>2]=(c[e>>2]|0)+1;i=f;return c[h>>2]|0}function Px(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0;f=i;e=b+102796|0;g=c[e>>2]|0;if((g|0)<=0)Aa(8544,8392,63,8568);h=g+ -1|0;if((c[b+(h*12|0)+102412>>2]|0)!=(d|0))Aa(8576,8392,65,8568);if(!(a[b+(h*12|0)+102420>>0]|0)){d=b+(h*12|0)+102416|0;h=b+102400|0;c[h>>2]=(c[h>>2]|0)-(c[d>>2]|0)}else{OB(d);d=b+(h*12|0)+102416|0;g=c[e>>2]|0}h=b+102404|0;c[h>>2]=(c[h>>2]|0)-(c[d>>2]|0);c[e>>2]=g+ -1;i=f;return}function Qx(a){a=a|0;var d=0,e=0,f=0,h=0,j=0.0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0.0,s=0.0,t=0,u=0.0,v=0.0,w=0.0,x=0,y=0.0;h=i;i=i+16|0;n=h;l=a+116|0;m=a+120|0;f=a+124|0;k=a+128|0;e=a+28|0;g[e>>2]=0.0;g[a+32>>2]=0.0;c[l+0>>2]=0;c[l+4>>2]=0;c[l+8>>2]=0;c[l+12>>2]=0;o=c[a>>2]|0;if((o|0)==1|(o|0)==0){q=a+12|0;p=c[q>>2]|0;q=c[q+4>>2]|0;t=a+36|0;c[t>>2]=p;c[t+4>>2]=q;t=a+44|0;c[t>>2]=p;c[t+4>>2]=q;g[a+52>>2]=+g[a+56>>2];i=h;return}else if((o|0)==2){t=c[a+100>>2]|0;if(t){o=n+4|0;p=n+8|0;q=n+12|0;u=0.0;r=0.0;s=0.0;v=0.0;do{w=+g[t>>2];if(!(w==0.0)){x=c[t+12>>2]|0;rb[c[(c[x>>2]|0)+28>>2]&63](x,n,w);u=+g[n>>2];r=u+ +g[l>>2];g[l>>2]=r;s=s+u*+g[o>>2];v=v+u*+g[p>>2];u=+g[q>>2]+ +g[f>>2];g[f>>2]=u}t=c[t+4>>2]|0}while((t|0)!=0);if(r>0.0){w=1.0/r;g[m>>2]=w;s=s*w;v=v*w}else d=11}else{v=0.0;s=0.0;u=0.0;d=11}if((d|0)==11){g[l>>2]=1.0;g[m>>2]=1.0;r=1.0}do if(u>0.0?(b[a+4>>1]&16)==0:0){r=u-(v*v+s*s)*r;g[f>>2]=r;if(r>0.0){j=1.0/r;break}else Aa(9064,8624,334,9048)}else d=17;while(0);if((d|0)==17){g[f>>2]=0.0;j=0.0}g[k>>2]=j;x=a+44|0;t=x;w=+g[t>>2];r=+g[t+4>>2];y=+s;j=+v;t=e;g[t>>2]=y;g[t+4>>2]=j;j=+g[a+24>>2];y=+g[a+20>>2];u=+g[a+12>>2]+(j*s-y*v);s=s*y+j*v+ +g[a+16>>2];j=+u;v=+s;g[x>>2]=j;g[x+4>>2]=v;x=a+36|0;g[x>>2]=j;g[x+4>>2]=v;v=+g[a+72>>2];x=a+64|0;g[x>>2]=+g[x>>2]-v*(s-r);x=a+68|0;g[x>>2]=v*(u-w)+ +g[x>>2];i=h;return}else Aa(9016,8624,299,9048)}function Rx(a){a=a|0;var b=0,d=0,e=0,f=0,h=0.0,j=0.0,k=0.0,l=0.0,m=0.0;b=i;i=i+16|0;e=b;k=+g[a+52>>2];l=+R(+k);g[e+8>>2]=l;k=+Q(+k);g[e+12>>2]=k;m=+g[a+28>>2];h=+g[a+32>>2];j=+(+g[a+36>>2]-(k*m-l*h));h=+(+g[a+40>>2]-(m*l+k*h));d=e;g[d>>2]=j;g[d+4>>2]=h;d=(c[a+88>>2]|0)+102872|0;f=c[a+100>>2]|0;if(!f){i=b;return}a=a+12|0;do{my(f,d,e,a);f=c[f+4>>2]|0}while((f|0)!=0);i=b;return}function Sx(d,e){d=d|0;e=e|0;var f=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0.0;f=i;h=d+88|0;n=c[h>>2]|0;if(c[n+102868>>2]&2)Aa(8888,8624,168,8928);l=Hx(n,44)|0;if(!l)l=0;else{b[l+32>>1]=1;b[l+34>>1]=-1;b[l+36>>1]=0;c[l+40>>2]=0;c[l+24>>2]=0;c[l+28>>2]=0;c[l+0>>2]=0;c[l+4>>2]=0;c[l+8>>2]=0;c[l+12>>2]=0}c[l+40>>2]=c[e+4>>2];g[l+16>>2]=+g[e+8>>2];g[l+20>>2]=+g[e+12>>2];j=l+8|0;c[j>>2]=d;k=l+4|0;c[k>>2]=0;m=l+32|0;p=e+22|0;b[m+0>>1]=b[p+0>>1]|0;b[m+2>>1]=b[p+2>>1]|0;b[m+4>>1]=b[p+4>>1]|0;a[l+38>>0]=a[e+20>>0]|0;m=c[e>>2]|0;m=tb[c[(c[m>>2]|0)+8>>2]&63](m,n)|0;c[l+12>>2]=m;m=nb[c[(c[m>>2]|0)+12>>2]&63](m)|0;p=Hx(n,m*28|0)|0;n=l+24|0;c[n>>2]=p;if((m|0)>0){o=0;do{c[p+(o*28|0)+16>>2]=0;p=c[n>>2]|0;c[p+(o*28|0)+24>>2]=-1;o=o+1|0}while((o|0)!=(m|0))}c[l+28>>2]=0;q=+g[e+16>>2];g[l>>2]=q;if(b[d+4>>1]&32){ky(l,(c[h>>2]|0)+102872|0,d+12|0);q=+g[l>>2]}p=d+100|0;c[k>>2]=c[p>>2];c[p>>2]=l;p=d+104|0;c[p>>2]=(c[p>>2]|0)+1;c[j>>2]=d;if(!(q>0.0)){p=c[h>>2]|0;p=p+102868|0;o=c[p>>2]|0;o=o|1;c[p>>2]=o;i=f;return l|0}Qx(d);p=c[h>>2]|0;p=p+102868|0;o=c[p>>2]|0;o=o|1;c[p>>2]=o;i=f;return l|0}function Tx(b,d){b=b|0;d=d|0;var e=0,f=0;e=i;if((c[b>>2]|0)!=2?(c[d>>2]|0)!=2:0)d=0;else f=3;a:do if((f|0)==3){f=c[b+108>>2]|0;if(!f)d=1;else while(1){if((c[f>>2]|0)==(d|0)?(a[(c[f+4>>2]|0)+61>>0]|0)==0:0){d=0;break a}f=c[f+12>>2]|0;if(!f){d=1;break}}}while(0);i=e;return d|0}function Ux(a){a=a|0;var b=0,d=0,f=0,j=0,l=0,m=0.0;b=i;i=i+16|0;d=b;j=a+8|0;f=c[j>>2]|0;Nx(11608,d);Nx(9128,d);c[d>>2]=c[a>>2];Nx(9152,d);m=+g[a+16>>2];h[k>>3]=+g[a+12>>2];c[d>>2]=c[k>>2];c[d+4>>2]=c[k+4>>2];l=d+8|0;h[k>>3]=m;c[l>>2]=c[k>>2];c[l+4>>2]=c[k+4>>2];Nx(9184,d);h[k>>3]=+g[a+56>>2];c[d>>2]=c[k>>2];c[d+4>>2]=c[k+4>>2];Nx(9224,d);m=+g[a+68>>2];h[k>>3]=+g[a+64>>2];c[d>>2]=c[k>>2];c[d+4>>2]=c[k+4>>2];l=d+8|0;h[k>>3]=m;c[l>>2]=c[k>>2];c[l+4>>2]=c[k+4>>2];Nx(9248,d);h[k>>3]=+g[a+72>>2];c[d>>2]=c[k>>2];c[d+4>>2]=c[k+4>>2];Nx(9296,d);h[k>>3]=+g[a+132>>2];c[d>>2]=c[k>>2];c[d+4>>2]=c[k+4>>2];Nx(9336,d);h[k>>3]=+g[a+136>>2];c[d>>2]=c[k>>2];c[d+4>>2]=c[k+4>>2];Nx(9368,d);l=a+4|0;c[d>>2]=(e[l>>1]|0)&4;Nx(9400,d);c[d>>2]=(e[l>>1]|0)&2;Nx(9432,d);c[d>>2]=(e[l>>1]|0)&16;Nx(9456,d);c[d>>2]=(e[l>>1]|0)&8;Nx(9488,d);c[d>>2]=(e[l>>1]|0)&32;Nx(9520,d);h[k>>3]=+g[a+140>>2];c[d>>2]=c[k>>2];c[d+4>>2]=c[k+4>>2];Nx(9552,d);c[d>>2]=c[j>>2];Nx(9584,d);Nx(10896,d);a=c[a+100>>2]|0;if(!a){Nx(11616,d);i=b;return}do{Nx(9632,d);ny(a,f);Nx(9640,d);a=c[a+4>>2]|0}while((a|0)!=0);Nx(11616,d);i=b;return}function Vx(a){a=a|0;return}function Wx(a){a=a|0;return}function Xx(d,f){d=d|0;f=f|0;var h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0;h=i;k=f+48|0;j=f+52|0;m=c[(c[k>>2]|0)+8>>2]|0;l=c[(c[j>>2]|0)+8>>2]|0;n=c[d+72>>2]|0;if((n|0)!=0?(c[f+4>>2]&2|0)!=0:0)lb[c[(c[n>>2]|0)+12>>2]&127](n,f);o=f+8|0;p=c[o>>2]|0;n=f+12|0;if(p)c[p+12>>2]=c[n>>2];p=c[n>>2]|0;if(p)c[p+8>>2]=c[o>>2];o=d+60|0;if((c[o>>2]|0)==(f|0))c[o>>2]=c[n>>2];o=f+24|0;p=c[o>>2]|0;n=f+28|0;if(p)c[p+12>>2]=c[n>>2];p=c[n>>2]|0;if(p)c[p+8>>2]=c[o>>2];m=m+112|0;if((f+16|0)==(c[m>>2]|0))c[m>>2]=c[n>>2];n=f+40|0;o=c[n>>2]|0;m=f+44|0;if(o)c[o+12>>2]=c[m>>2];o=c[m>>2]|0;if(o)c[o+8>>2]=c[n>>2];l=l+112|0;if((f+32|0)==(c[l>>2]|0))c[l>>2]=c[m>>2];l=c[d+76>>2]|0;if(!(a[12928]|0))Aa(13088,12984,103,15288);k=c[k>>2]|0;j=c[j>>2]|0;if(((c[f+124>>2]|0)>0?(a[k+38>>0]|0)==0:0)?(a[j+38>>0]|0)==0:0){m=c[k+8>>2]|0;n=m+4|0;o=e[n>>1]|0;if(!(o&2)){b[n>>1]=o|2;g[m+144>>2]=0.0}m=c[j+8>>2]|0;o=m+4|0;n=e[o>>1]|0;if(!(n&2)){b[o>>1]=n|2;g[m+144>>2]=0.0}}k=c[(c[k+12>>2]|0)+4>>2]|0;j=c[(c[j+12>>2]|0)+4>>2]|0;if((k|0)>-1&(j|0)<4){lb[c[12736+(k*48|0)+(j*12|0)+4>>2]&127](f,l);p=d+64|0;c[p>>2]=(c[p>>2]|0)+ -1;i=h;return}else Aa(13112,12984,119,15288)}function Yx(d){d=d|0;var f=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0;f=i;i=i+1040|0;k=f;j=d+52|0;c[j>>2]=0;l=d+40|0;y=c[l>>2]|0;do if((y|0)>0){w=d+32|0;r=d+56|0;v=d+12|0;t=d+4|0;s=k+4|0;o=k+1028|0;u=k+1032|0;q=d+48|0;m=d+44|0;x=0;while(1){B=c[(c[w>>2]|0)+(x<<2)>>2]|0;c[r>>2]=B;if((B|0)!=-1){if((B|0)<=-1){o=7;break}if((c[v>>2]|0)<=(B|0)){o=7;break}C=c[t>>2]|0;c[k>>2]=s;c[o>>2]=0;c[u>>2]=256;dy(k,d);if((c[o>>2]|0)>0){A=C+(B*36|0)|0;y=C+(B*36|0)+4|0;z=C+(B*36|0)+8|0;B=C+(B*36|0)+12|0;do{C=ey(k)|0;do if((C|0)!=-1?(p=c[t>>2]|0,!((+g[A>>2]- +g[p+(C*36|0)+8>>2]>0.0?1:+g[y>>2]- +g[p+(C*36|0)+12>>2]>0.0)|+g[p+(C*36|0)>>2]- +g[z>>2]>0.0|+g[p+(C*36|0)+4>>2]- +g[B>>2]>0.0)):0){D=p+(C*36|0)+24|0;if((c[D>>2]|0)!=-1){dy(k,D);dy(k,p+(C*36|0)+28|0);break}D=c[r>>2]|0;if((D|0)!=(C|0)){E=c[j>>2]|0;if((E|0)==(c[q>>2]|0)){D=c[m>>2]|0;c[q>>2]=E<<1;E=NB(E<<4)|0;c[m>>2]=E;SB(E|0,D|0,c[j>>2]<<3|0)|0;OB(D);D=c[r>>2]|0;E=c[j>>2]|0}F=c[m>>2]|0;c[F+(E<<3)>>2]=(D|0)>(C|0)?C:D;E=c[r>>2]|0;c[F+(c[j>>2]<<3)+4>>2]=(E|0)<(C|0)?C:E;c[j>>2]=(c[j>>2]|0)+1}}while(0)}while((c[o>>2]|0)>0)}y=c[k>>2]|0;if((y|0)!=(s|0)){OB(y);c[k>>2]=0}y=c[l>>2]|0}x=x+1|0;if((x|0)>=(y|0)){o=23;break}}if((o|0)==7)Aa(11792,11736,164,11856);else if((o|0)==23){h=m;n=c[j>>2]|0;break}}else{h=d+44|0;n=0}while(0);c[l>>2]=0;F=c[h>>2]|0;c[k>>2]=58;_x(F,F+(n<<3)|0,k);if((c[j>>2]|0)<=0){i=f;return}o=d+12|0;n=d+4|0;m=d+68|0;l=d+76|0;k=d+60|0;d=d+64|0;s=c[h>>2]|0;q=s;s=c[s>>2]|0;r=0;a:while(1){p=q+(r<<3)|0;if((s|0)<=-1){o=28;break}u=c[o>>2]|0;if((u|0)<=(s|0)){o=28;break}t=c[n>>2]|0;q=q+(r<<3)+4|0;v=c[q>>2]|0;if(!((v|0)>-1&(u|0)>(v|0))){o=30;break}x=c[t+(s*36|0)+16>>2]|0;v=c[t+(v*36|0)+16>>2]|0;u=c[x+16>>2]|0;s=c[v+16>>2]|0;t=c[x+20>>2]|0;v=c[v+20>>2]|0;x=c[u+8>>2]|0;w=c[s+8>>2]|0;b:do if((x|0)!=(w|0)){C=c[w+112>>2]|0;if(C)do{if((c[C>>2]|0)==(x|0)){B=c[C+4>>2]|0;y=c[B+48>>2]|0;z=c[B+52>>2]|0;A=c[B+56>>2]|0;B=c[B+60>>2]|0;if((y|0)==(u|0)&(z|0)==(s|0)&(A|0)==(t|0)&(B|0)==(v|0))break b;if((y|0)==(s|0)&(z|0)==(u|0)&(A|0)==(v|0)&(B|0)==(t|0))break b}C=c[C+12>>2]|0}while((C|0)!=0);if(Tx(w,x)|0){w=c[m>>2]|0;if((w|0)!=0?!(gb[c[(c[w>>2]|0)+8>>2]&63](w,u,s)|0):0)break;w=c[l>>2]|0;if(!(a[12928]|0)){c[3184]=46;c[3185]=98;a[12744]=1;c[3208]=47;c[3209]=99;a[12840]=1;c[3190]=47;c[3191]=99;a[12768]=0;c[3214]=48;c[3215]=100;a[12864]=1;c[3196]=49;c[3197]=101;a[12792]=1;c[3187]=49;c[3188]=101;a[12756]=0;c[3202]=50;c[3203]=102;a[12816]=1;c[3211]=50;c[3212]=102;a[12852]=0;c[3220]=51;c[3221]=103;a[12888]=1;c[3193]=51;c[3194]=103;a[12780]=0;c[3226]=52;c[3227]=104;a[12912]=1;c[3217]=52;c[3218]=104;a[12876]=0;a[12928]=1}x=c[(c[u+12>>2]|0)+4>>2]|0;y=c[(c[s+12>>2]|0)+4>>2]|0;if(x>>>0>=4){o=43;break a}if(y>>>0>=4){o=45;break a}z=c[12736+(x*48|0)+(y*12|0)>>2]|0;if(z){if(!(a[12736+(x*48|0)+(y*12|0)+8>>0]|0))w=ub[z&63](s,v,u,t,w)|0;else w=ub[z&63](u,t,s,v,w)|0;if(w){v=c[w+48>>2]|0;u=c[w+52>>2]|0;t=c[v+8>>2]|0;s=c[u+8>>2]|0;c[w+8>>2]=0;c[w+12>>2]=c[k>>2];x=c[k>>2]|0;if(x)c[x+8>>2]=w;c[k>>2]=w;z=w+16|0;c[w+20>>2]=w;c[z>>2]=s;c[w+24>>2]=0;x=t+112|0;c[w+28>>2]=c[x>>2];y=c[x>>2]|0;if(y)c[y+8>>2]=z;c[x>>2]=z;x=w+32|0;c[w+36>>2]=w;c[x>>2]=t;c[w+40>>2]=0;y=s+112|0;c[w+44>>2]=c[y>>2];w=c[y>>2]|0;if(w)c[w+8>>2]=x;c[y>>2]=x;do if(!(a[v+38>>0]|0)){if(a[u+38>>0]|0)break;u=t+4|0;v=e[u>>1]|0;if(!(v&2)){b[u>>1]=v|2;g[t+144>>2]=0.0}u=s+4|0;t=e[u>>1]|0;if(t&2)break;b[u>>1]=t|2;g[s+144>>2]=0.0}while(0);c[d>>2]=(c[d>>2]|0)+1}}}}while(0);t=c[j>>2]|0;while(1){r=r+1|0;if((r|0)>=(t|0)){o=68;break a}u=c[h>>2]|0;s=c[u+(r<<3)>>2]|0;if((s|0)!=(c[p>>2]|0)){q=u;continue a}if((c[u+(r<<3)+4>>2]|0)!=(c[q>>2]|0)){q=u;continue a}}}if((o|0)==28)Aa(11792,11736,158,11840);else if((o|0)==30)Aa(11792,11736,158,11840);else if((o|0)==43)Aa(12936,12984,80,15280);else if((o|0)==45)Aa(13040,12984,81,15280);else if((o|0)==68){i=f;return}}function Zx(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;d=i;f=c[a>>2]|0;e=c[b>>2]|0;if((f|0)>=(e|0))if((f|0)==(e|0))a=(c[a+4>>2]|0)<(c[b+4>>2]|0);else a=0;else a=1;i=d;return a|0}function _x(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0;e=i;i=i+16|0;f=e;a:while(1){j=b;h=b+ -8|0;b:while(1){k=a;n=j-k|0;o=n>>3;switch(o|0){case 4:{g=7;break a};case 3:{g=6;break a};case 5:{g=8;break a};case 2:{g=4;break a};case 1:case 0:{g=51;break a};default:{}}if((n|0)<248){g=10;break a}m=(o|0)/2|0;l=a+(m<<3)|0;if((n|0)>7992){n=(o|0)/4|0;n=by(a,a+(n<<3)|0,l,a+(n+m<<3)|0,h,d)|0}else n=$x(a,l,h,d)|0;do if(tb[c[d>>2]&63](a,l)|0)o=h;else{o=h;while(1){o=o+ -8|0;if((a|0)==(o|0))break;if(tb[c[d>>2]&63](o,l)|0){g=34;break}}if((g|0)==34){g=0;p=a;m=c[p>>2]|0;p=c[p+4>>2]|0;s=o;r=c[s+4>>2]|0;q=a;c[q>>2]=c[s>>2];c[q+4>>2]=r;q=o;c[q>>2]=m;c[q+4>>2]=p;n=n+1|0;break}k=a+8|0;if(!(tb[c[d>>2]&63](a,h)|0)){if((k|0)==(h|0)){g=51;break a}while(1){l=k+8|0;if(tb[c[d>>2]&63](a,k)|0)break;if((l|0)==(h|0)){g=51;break a}else k=l}s=k;r=c[s>>2]|0;s=c[s+4>>2]|0;p=h;q=c[p+4>>2]|0;c[k>>2]=c[p>>2];c[k+4>>2]=q;k=h;c[k>>2]=r;c[k+4>>2]=s;k=l}if((k|0)==(h|0)){g=51;break a}else m=h;while(1){while(1){l=k+8|0;if(tb[c[d>>2]&63](a,k)|0)break;else k=l}do m=m+ -8|0;while(tb[c[d>>2]&63](a,m)|0);if(k>>>0>=m>>>0){a=k;continue b}s=k;r=c[s>>2]|0;s=c[s+4>>2]|0;p=m;q=c[p+4>>2]|0;c[k>>2]=c[p>>2];c[k+4>>2]=q;k=m;c[k>>2]=r;c[k+4>>2]=s;k=l}}while(0);m=a+8|0;c:do if(m>>>0 >>0)while(1){q=m;while(1){m=q+8|0;if(tb[c[d>>2]&63](q,l)|0)q=m;else{p=o;break}}do p=p+ -8|0;while(!(tb[c[d>>2]&63](p,l)|0));if(q>>>0>p>>>0){m=q;break c}s=q;r=c[s>>2]|0;s=c[s+4>>2]|0;u=p;t=c[u+4>>2]|0;o=q;c[o>>2]=c[u>>2];c[o+4>>2]=t;o=p;c[o>>2]=r;c[o+4>>2]=s;o=p;l=(l|0)==(q|0)?p:l;n=n+1|0}while(0);if((m|0)!=(l|0)?tb[c[d>>2]&63](l,m)|0:0){t=m;s=c[t>>2]|0;t=c[t+4>>2]|0;q=l;r=c[q+4>>2]|0;u=m;c[u>>2]=c[q>>2];c[u+4>>2]=r;u=l;c[u>>2]=s;c[u+4>>2]=t;n=n+1|0}if(!n){n=cy(a,m,d)|0;l=m+8|0;if(cy(l,b,d)|0){g=46;break}if(n){a=l;continue}}u=m;if((u-k|0)>=(j-u|0)){g=50;break}_x(a,m,d);a=m+8|0}if((g|0)==46){g=0;if(n){g=51;break}else{b=m;continue}}else if((g|0)==50){g=0;_x(m+8|0,b,d);b=m;continue}}if((g|0)==4){if(!(tb[c[d>>2]&63](h,a)|0)){i=e;return}t=a;s=c[t>>2]|0;t=c[t+4>>2]|0;q=h;r=c[q+4>>2]|0;u=a;c[u>>2]=c[q>>2];c[u+4>>2]=r;u=h;c[u>>2]=s;c[u+4>>2]=t;i=e;return}else if((g|0)==6){$x(a,a+8|0,h,d)|0;i=e;return}else if((g|0)==7){ay(a,a+8|0,a+16|0,h,d)|0;i=e;return}else if((g|0)==8){by(a,a+8|0,a+16|0,a+24|0,h,d)|0;i=e;return}else if((g|0)==10){j=a+16|0;$x(a,a+8|0,j,d)|0;g=a+24|0;if((g|0)==(b|0)){i=e;return}while(1){if(tb[c[d>>2]&63](g,j)|0){t=g;u=c[t+4>>2]|0;h=f;c[h>>2]=c[t>>2];c[h+4>>2]=u;h=g;while(1){s=j;t=c[s+4>>2]|0;u=h;c[u>>2]=c[s>>2];c[u+4>>2]=t;if((j|0)==(a|0))break;h=j+ -8|0;if(tb[c[d>>2]&63](f,h)|0){u=j;j=h;h=u}else break}s=f;t=c[s+4>>2]|0;u=j;c[u>>2]=c[s>>2];c[u+4>>2]=t}h=g+8|0;if((h|0)==(b|0))break;else{j=g;g=h}}i=e;return}else if((g|0)==51){i=e;return}}function $x(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0;f=i;j=tb[c[e>>2]&63](b,a)|0;g=tb[c[e>>2]&63](d,b)|0;if(!j){if(!g){j=0;i=f;return j|0}h=b;g=c[h>>2]|0;h=c[h+4>>2]|0;l=d;k=c[l+4>>2]|0;j=b;c[j>>2]=c[l>>2];c[j+4>>2]=k;j=d;c[j>>2]=g;c[j+4>>2]=h;if(!(tb[c[e>>2]&63](b,a)|0)){l=1;i=f;return l|0}k=a;j=c[k>>2]|0;k=c[k+4>>2]|0;e=b;h=c[e+4>>2]|0;l=a;c[l>>2]=c[e>>2];c[l+4>>2]=h;l=b;c[l>>2]=j;c[l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tb[c[g>>2]&63](f,e)|0)){f=j;i=h;return f|0}k=e;l=c[k>>2]|0;k=c[k+4>>2]|0;o=f;n=c[o+4>>2]|0;m=e;c[m>>2]=c[o>>2];c[m+4>>2]=n;c[f>>2]=l;c[f+4>>2]=k;if(!(tb[c[g>>2]&63](e,d)|0)){o=j+1|0;i=h;return o|0}n=d;m=c[n>>2]|0;n=c[n+4>>2]|0;k=e;l=c[k+4>>2]|0;o=d;c[o>>2]=c[k>>2];c[o+4>>2]=l;o=e;c[o>>2]=m;c[o+4>>2]=n;if(!(tb[c[g>>2]&63](d,b)|0)){o=j+2|0;i=h;return o|0}n=b;m=c[n>>2]|0;n=c[n+4>>2]|0;k=d;l=c[k+4>>2]|0;o=b;c[o>>2]=c[k>>2];c[o+4>>2]=l;o=d;c[o>>2]=m;c[o+4>>2]=n;if(!(tb[c[g>>2]&63](b,a)|0)){o=j+3|0;i=h;return o|0}n=a;m=c[n>>2]|0;n=c[n+4>>2]|0;k=b;l=c[k+4>>2]|0;o=a;c[o>>2]=c[k>>2];c[o+4>>2]=l;o=b;c[o>>2]=m;c[o+4>>2]=n;o=j+4|0;i=h;return o|0}function cy(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0;e=i;i=i+16|0;g=e;switch(b-a>>3|0){case 2:{f=b+ -8|0;if(!(tb[c[d>>2]&63](f,a)|0)){l=1;i=e;return l|0}k=a;j=c[k>>2]|0;k=c[k+4>>2]|0;b=f;h=c[b+4>>2]|0;l=a;c[l>>2]=c[b>>2];c[l+4>>2]=h;l=f;c[l>>2]=j;c[l+4>>2]=k;l=1;i=e;return l|0};case 1:case 0:{l=1;i=e;return l|0};case 5:{by(a,a+8|0,a+16|0,a+24|0,b+ -8|0,d)|0;l=1;i=e;return l|0};case 3:{$x(a,a+8|0,b+ -8|0,d)|0;l=1;i=e;return l|0};case 4:{ay(a,a+8|0,a+16|0,b+ -8|0,d)|0;l=1;i=e;return l|0};default:{l=a+16|0;$x(a,a+8|0,l,d)|0;h=a+24|0;if((h|0)==(b|0)){l=1;i=e;return l|0}else j=0;while(1){if(tb[c[d>>2]&63](h,l)|0){n=h;m=c[n+4>>2]|0;k=g;c[k>>2]=c[n>>2];c[k+4>>2]=m;k=h;while(1){o=l;m=c[o+4>>2]|0;n=k;c[n>>2]=c[o>>2];c[n+4>>2]=m;if((l|0)==(a|0))break;k=l+ -8|0;if(tb[c[d>>2]&63](g,k)|0){o=l;l=k;k=o}else break}m=g;n=c[m+4>>2]|0;o=l;c[o>>2]=c[m>>2];c[o+4>>2]=n;j=j+1|0;if((j|0)==8)break}k=h+8|0;if((k|0)==(b|0)){a=1;f=15;break}else{l=h;h=k}}if((f|0)==15){i=e;return a|0}o=(h+8|0)==(b|0);i=e;return o|0}}return 0}function dy(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;e=i;d=a+1028|0;f=c[d>>2]|0;g=a+1032|0;if((f|0)==(c[g>>2]|0)?(h=c[a>>2]|0,c[g>>2]=f<<1,g=NB(f<<3)|0,c[a>>2]=g,SB(g|0,h|0,c[d>>2]<<2|0)|0,(h|0)!=(a+4|0)):0)OB(h);c[(c[a>>2]|0)+(c[d>>2]<<2)>>2]=c[b>>2];c[d>>2]=(c[d>>2]|0)+1;i=e;return}function ey(a){a=a|0;var b=0,d=0;b=a+1028|0;d=c[b>>2]|0;if((d|0)>0){d=d+ -1|0;c[b>>2]=d;return c[(c[a>>2]|0)+(d<<2)>>2]|0}else Aa(9664,9680,67,9728);return 0}function fy(a){a=a|0;var b=0;b=i;OB(a);i=b;return}function gy(a,b){a=a|0;b=b|0;return}function hy(a,b){a=a|0;b=b|0;return}function iy(a){a=a|0;var b=0;b=i;OB(a);i=b;return}function jy(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;d=i;if(c[a+28>>2]|0)Aa(9768,9792,72,15288);e=a+12|0;f=c[e>>2]|0;f=nb[c[(c[f>>2]|0)+12>>2]&63](f)|0;a=a+24|0;Ix(b,c[a>>2]|0,f*28|0);c[a>>2]=0;a=c[e>>2]|0;f=c[a+4>>2]|0;if(!f){jb[c[c[a>>2]>>2]&127](a);Ix(b,a,20);c[e>>2]=0;i=d;return}else if((f|0)==2){jb[c[c[a>>2]>>2]&127](a);Ix(b,a,280);c[e>>2]=0;i=d;return}else if((f|0)==1){jb[c[c[a>>2]>>2]&127](a);Ix(b,a,48);c[e>>2]=0;i=d;return}else if((f|0)==3){jb[c[c[a>>2]>>2]&127](a);Ix(b,a,40);c[e>>2]=0;i=d;return}else Aa(15224,9792,115,15288)}function ky(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0.0,s=0.0;e=i;f=a+28|0;if(c[f>>2]|0)Aa(9768,9792,124,9840);h=a+12|0;m=c[h>>2]|0;m=nb[c[(c[m>>2]|0)+12>>2]&63](m)|0;c[f>>2]=m;if((m|0)<=0){i=e;return}j=a+24|0;k=b+4|0;l=b+28|0;m=0;do{n=c[j>>2]|0;p=n+(m*28|0)|0;o=c[h>>2]|0;vb[c[(c[o>>2]|0)+24>>2]&63](o,p,d,m);o=_w(b)|0;r=+(+g[p>>2]+-.10000000149011612);s=+(+g[n+(m*28|0)+4>>2]+-.10000000149011612);q=(c[k>>2]|0)+(o*36|0)|0;g[q>>2]=r;g[q+4>>2]=s;s=+(+g[n+(m*28|0)+8>>2]+.10000000149011612);r=+(+g[n+(m*28|0)+12>>2]+.10000000149011612);q=(c[k>>2]|0)+(o*36|0)+8|0;g[q>>2]=s;g[q+4>>2]=r;c[(c[k>>2]|0)+(o*36|0)+16>>2]=p;c[(c[k>>2]|0)+(o*36|0)+32>>2]=0;ax(b,o);c[l>>2]=(c[l>>2]|0)+1;Sw(b,o);c[n+(m*28|0)+24>>2]=o;c[n+(m*28|0)+16>>2]=a;c[n+(m*28|0)+20>>2]=m;m=m+1|0}while((m|0)<(c[f>>2]|0));i=e;return}function ly(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;e=i;d=a+28|0;if((c[d>>2]|0)<=0){c[d>>2]=0;i=e;return}a=a+24|0;h=b+40|0;j=b+32|0;g=b+28|0;f=b+12|0;l=b+4|0;k=0;while(1){n=(c[a>>2]|0)+(k*28|0)+24|0;m=c[n>>2]|0;q=c[h>>2]|0;if((q|0)>0){o=c[j>>2]|0;p=0;do{r=o+(p<<2)|0;if((c[r>>2]|0)==(m|0)){c[r>>2]=-1;q=c[h>>2]|0}p=p+1|0}while((p|0)<(q|0))}c[g>>2]=(c[g>>2]|0)+ -1;if((m|0)<=-1){b=10;break}if((c[f>>2]|0)<=(m|0)){b=10;break}if((c[(c[l>>2]|0)+(m*36|0)+24>>2]|0)!=-1){b=12;break}bx(b,m);$w(b,m);c[n>>2]=-1;k=k+1|0;if((k|0)>=(c[d>>2]|0)){b=14;break}}if((b|0)==10)Aa(11792,5624,123,5760);else if((b|0)==12)Aa(5776,5624,124,5760);else if((b|0)==14){c[d>>2]=0;i=e;return}}function my(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0.0,z=0.0,A=0.0,B=0.0,C=0.0,D=0,E=0,F=0,G=0.0,H=0.0,I=0;f=i;i=i+32|0;j=f+16|0;k=f;h=a+28|0;if((c[h>>2]|0)<=0){i=f;return}l=a+24|0;o=a+12|0;p=j+4|0;q=k+4|0;r=j+8|0;s=k+8|0;t=j+12|0;u=k+12|0;v=e+4|0;w=d+4|0;m=b+12|0;a=b+4|0;n=0;while(1){F=c[l>>2]|0;D=c[o>>2]|0;E=F+(n*28|0)+20|0;vb[c[(c[D>>2]|0)+24>>2]&63](D,j,d,c[E>>2]|0);D=c[o>>2]|0;vb[c[(c[D>>2]|0)+24>>2]&63](D,k,e,c[E>>2]|0);E=F+(n*28|0)|0;z=+g[j>>2];B=+g[k>>2];B=z>2];H=+g[q>>2];A=+B;H=+(z >2]=A;g[D+4>>2]=H;D=F+(n*28|0)+8|0;H=+g[r>>2];A=+g[s>>2];A=H>A?H:A;H=+g[t>>2];z=+g[u>>2];y=+A;z=+(H>z?H:z);x=D;g[x>>2]=y;g[x+4>>2]=z;z=+g[e>>2]- +g[d>>2];y=+g[v>>2]- +g[w>>2];x=c[F+(n*28|0)+24>>2]|0;if((x|0)<=-1){b=5;break}if((c[m>>2]|0)<=(x|0)){b=5;break}I=c[a>>2]|0;if((c[I+(x*36|0)+24>>2]|0)!=-1){b=7;break}if(!(((+g[I+(x*36|0)>>2]<=B?+g[I+(x*36|0)+4>>2]<=+g[F+(n*28|0)+4>>2]:0)?A<=+g[I+(x*36|0)+8>>2]:0)?+g[F+(n*28|0)+12>>2]<=+g[I+(x*36|0)+12>>2]:0)){bx(b,x);I=E;H=+g[I>>2];B=+g[I+4>>2];I=D;C=+g[I>>2];H=H+-.10000000149011612;B=B+-.10000000149011612;C=C+.10000000149011612;A=+g[I+4>>2]+.10000000149011612;G=z*2.0;z=y*2.0;if(G<0.0)y=H+G;else{y=H;C=G+C}if(z<0.0)B=B+z;else A=z+A;I=c[a>>2]|0;H=+y;G=+B;F=I+(x*36|0)|0;g[F>>2]=H;g[F+4>>2]=G;G=+C;H=+A;I=I+(x*36|0)+8|0;g[I>>2]=G;g[I+4>>2]=H;ax(b,x);Sw(b,x)}n=n+1|0;if((n|0)>=(c[h>>2]|0)){b=20;break}}if((b|0)==5)Aa(11792,5624,132,5808);else if((b|0)==7)Aa(5776,5624,134,5808);else if((b|0)==20){i=f;return}}function ny(a,f){a=a|0;f=f|0;var j=0,l=0,m=0,n=0,o=0,p=0,q=0.0,r=0.0;j=i;i=i+32|0;l=j;Nx(9856,l);h[k>>3]=+g[a+16>>2];c[l>>2]=c[k>>2];c[l+4>>2]=c[k+4>>2];Nx(9880,l);h[k>>3]=+g[a+20>>2];c[l>>2]=c[k>>2];c[l+4>>2]=c[k+4>>2];Nx(9912,l);h[k>>3]=+g[a>>2];c[l>>2]=c[k>>2];c[l+4>>2]=c[k+4>>2];Nx(9944,l);c[l>>2]=d[a+38>>0];Nx(9976,l);c[l>>2]=e[a+32>>1];Nx(10008,l);c[l>>2]=e[a+34>>1];Nx(10056,l);c[l>>2]=b[a+36>>1];Nx(10096,l);a=c[a+12>>2]|0;m=c[a+4>>2]|0;if((m|0)==3){Nx(10656,l);m=a+16|0;c[l>>2]=c[m>>2];Nx(10568,l);o=c[m>>2]|0;if((o|0)>0){p=a+12|0;n=0;do{o=c[p>>2]|0;r=+g[o+(n<<3)>>2];q=+g[o+(n<<3)+4>>2];c[l>>2]=n;o=l+4|0;h[k>>3]=r;c[o>>2]=c[k>>2];c[o+4>>2]=c[k+4>>2];o=l+12|0;h[k>>3]=q;c[o>>2]=c[k>>2];c[o+4>>2]=c[k+4>>2];Nx(10592,l);n=n+1|0;o=c[m>>2]|0}while((n|0)<(o|0))}c[l>>2]=o;Nx(10688,l);p=a+20|0;r=+g[p+4>>2];h[k>>3]=+g[p>>2];c[l>>2]=c[k>>2];c[l+4>>2]=c[k+4>>2];p=l+8|0;h[k>>3]=r;c[p>>2]=c[k>>2];c[p+4>>2]=c[k+4>>2];Nx(10720,l);p=a+28|0;r=+g[p+4>>2];h[k>>3]=+g[p>>2];c[l>>2]=c[k>>2];c[l+4>>2]=c[k+4>>2];p=l+8|0;h[k>>3]=r;c[p>>2]=c[k>>2];c[p+4>>2]=c[k+4>>2];Nx(10768,l);c[l>>2]=d[a+36>>0];Nx(10816,l);c[l>>2]=d[a+37>>0];Nx(10856,l)}else if(!m){Nx(10136,l);h[k>>3]=+g[a+8>>2];c[l>>2]=c[k>>2];c[l+4>>2]=c[k+4>>2];Nx(10168,l);r=+g[a+16>>2];h[k>>3]=+g[a+12>>2];c[l>>2]=c[k>>2];c[l+4>>2]=c[k+4>>2];p=l+8|0;h[k>>3]=r;c[p>>2]=c[k>>2];c[p+4>>2]=c[k+4>>2];Nx(10200,l)}else if((m|0)==2){Nx(10536,l);c[l>>2]=16;Nx(10568,l);m=a+276|0;o=c[m>>2]|0;if((o|0)>0){a=a+20|0;n=0;do{q=+g[a+(n<<3)>>2];r=+g[a+(n<<3)+4>>2];c[l>>2]=n;o=l+4|0;h[k>>3]=q;c[o>>2]=c[k>>2];c[o+4>>2]=c[k+4>>2];o=l+12|0;h[k>>3]=r;c[o>>2]=c[k>>2];c[o+4>>2]=c[k+4>>2];Nx(10592,l);n=n+1|0;o=c[m>>2]|0}while((n|0)<(o|0))}c[l>>2]=o;Nx(10632,l)}else if((m|0)==1){Nx(10240,l);h[k>>3]=+g[a+8>>2];c[l>>2]=c[k>>2];c[l+4>>2]=c[k+4>>2];Nx(10168,l);p=a+28|0;r=+g[p+4>>2];h[k>>3]=+g[p>>2];c[l>>2]=c[k>>2];c[l+4>>2]=c[k+4>>2];p=l+8|0;h[k>>3]=r;c[p>>2]=c[k>>2];c[p+4>>2]=c[k+4>>2];Nx(10264,l);r=+g[a+16>>2];h[k>>3]=+g[a+12>>2];c[l>>2]=c[k>>2];c[l+4>>2]=c[k+4>>2];p=l+8|0;h[k>>3]=r;c[p>>2]=c[k>>2];c[p+4>>2]=c[k+4>>2];Nx(10312,l);p=a+20|0;r=+g[p+4>>2];h[k>>3]=+g[p>>2];c[l>>2]=c[k>>2];c[l+4>>2]=c[k+4>>2];p=l+8|0;h[k>>3]=r;c[p>>2]=c[k>>2];c[p+4>>2]=c[k+4>>2];Nx(10360,l);r=+g[a+40>>2];h[k>>3]=+g[a+36>>2];c[l>>2]=c[k>>2];c[l+4>>2]=c[k+4>>2];p=l+8|0;h[k>>3]=r;c[p>>2]=c[k>>2];c[p+4>>2]=c[k+4>>2];Nx(10408,l);c[l>>2]=d[a+44>>0];Nx(10456,l);c[l>>2]=d[a+45>>0];Nx(10496,l)}else{i=j;return}Nx(10896,l);Nx(10904,l);Nx(10896,l);c[l>>2]=f;Nx(10928,l);i=j;return}function oy(a,b,d,e,f,g){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,j=0;h=i;j=a+40|0;c[j>>2]=b;c[a+44>>2]=d;c[a+48>>2]=e;c[a+28>>2]=0;c[a+36>>2]=0;c[a+32>>2]=0;c[a>>2]=f;c[a+4>>2]=g;c[a+8>>2]=Ox(f,b<<2)|0;c[a+12>>2]=Ox(c[a>>2]|0,d<<2)|0;c[a+16>>2]=Ox(c[a>>2]|0,e<<2)|0;c[a+24>>2]=Ox(c[a>>2]|0,(c[j>>2]|0)*12|0)|0;c[a+20>>2]=Ox(c[a>>2]|0,(c[j>>2]|0)*12|0)|0;i=h;return}function py(a){a=a|0;var b=0;b=i;Px(c[a>>2]|0,c[a+20>>2]|0);Px(c[a>>2]|0,c[a+24>>2]|0);Px(c[a>>2]|0,c[a+16>>2]|0);Px(c[a>>2]|0,c[a+12>>2]|0);Px(c[a>>2]|0,c[a+8>>2]|0);i=b;return}function qy(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,h=0,j=0,k=0,l=0,m=0,n=0;h=i;i=i+32|0;e=h;d=a+4|0;if(!(c[d>>2]|0)){i=h;return}f=a+36|0;if((c[f>>2]|0)<=0){i=h;return}n=a+12|0;k=e+16|0;l=0;do{m=c[(c[n>>2]|0)+(l<<2)>>2]|0;j=c[b+(l*156|0)+148>>2]|0;c[k>>2]=j;if((j|0)>0){a=0;do{g[e+(a<<2)>>2]=+g[b+(l*156|0)+(a*36|0)+16>>2];g[e+(a<<2)+8>>2]=+g[b+(l*156|0)+(a*36|0)+20>>2];a=a+1|0}while((a|0)<(j|0))}j=c[d>>2]|0;pb[c[(c[j>>2]|0)+20>>2]&63](j,m,e);l=l+1|0}while((l|0)<(c[f>>2]|0));i=h;return}function ry(d,f){d=d|0;f=f|0;var h=0,j=0,k=0,l=0,m=0,n=0,o=0;h=i;if(c[d+102868>>2]&2)Aa(11064,11088,274,11192);j=a[f+61>>0]|0;l=f+8|0;m=c[l>>2]|0;k=f+12|0;if(m)c[m+12>>2]=c[k>>2];m=c[k>>2]|0;if(m)c[m+8>>2]=c[l>>2];l=d+102956|0;if((c[l>>2]|0)==(f|0))c[l>>2]=c[k>>2];k=c[f+48>>2]|0;l=c[f+52>>2]|0;n=k+4|0;m=e[n>>1]|0;if(!(m&2)){b[n>>1]=m|2;g[k+144>>2]=0.0}m=l+4|0;n=e[m>>1]|0;if(!(n&2)){b[m>>1]=n|2;g[l+144>>2]=0.0}n=f+24|0;o=c[n>>2]|0;m=f+28|0;if(o)c[o+12>>2]=c[m>>2];o=c[m>>2]|0;if(o)c[o+8>>2]=c[n>>2];o=k+108|0;if((f+16|0)==(c[o>>2]|0))c[o>>2]=c[m>>2];c[n>>2]=0;c[m>>2]=0;n=f+40|0;o=c[n>>2]|0;m=f+44|0;if(o)c[o+12>>2]=c[m>>2];o=c[m>>2]|0;if(o)c[o+8>>2]=c[n>>2];o=l+108|0;if((f+32|0)==(c[o>>2]|0))c[o>>2]=c[m>>2];c[n>>2]=0;c[m>>2]=0;jb[c[(c[f>>2]|0)+24>>2]&127](f);do switch(c[f+4>>2]|0){case 6:{Ix(d,f,276);break};case 11:{Ix(d,f,192);break};case 3:{Ix(d,f,176);break};case 5:{Ix(d,f,168);break};case 8:{Ix(d,f,208);break};case 10:{Ix(d,f,168);break};case 7:{Ix(d,f,224);break};case 4:{Ix(d,f,196);break};case 9:{Ix(d,f,180);break};case 1:{Ix(d,f,228);break};case 2:{Ix(d,f,256);break};default:Aa(15224,15232,178,15288)}while(0);f=d+102964|0;d=c[f>>2]|0;if((d|0)<=0)Aa(11208,11088,346,11192);c[f>>2]=d+ -1;if(j<<24>>24){i=h;return}j=c[l+112>>2]|0;if(!j){i=h;return}do{if((c[j>>2]|0)==(k|0)){o=(c[j+4>>2]|0)+4|0;c[o>>2]=c[o>>2]|8}j=c[j+12>>2]|0}while((j|0)!=0);i=h;return}function sy(a,b){a=a|0;b=b|0;var d=0,e=0;d=a+28|0;e=c[d>>2]|0;if((e|0)<(c[a+40>>2]|0)){c[b+8>>2]=e;e=c[d>>2]|0;c[(c[a+8>>2]|0)+(e<<2)>>2]=b;c[d>>2]=e+1;return}else Aa(12040,11952,54,11992)}function ty(a,b){a=a|0;b=b|0;var d=0,e=0;e=a+36|0;d=c[e>>2]|0;if((d|0)<(c[a+44>>2]|0)){c[e>>2]=d+1;c[(c[a+12>>2]|0)+(d<<2)>>2]=b;return}else Aa(12e3,11952,62,11992)} function vA(b,d){b=b|0;d=d|0;var e=0.0,f=0.0,h=0.0,j=0.0,k=0.0,l=0.0,m=0.0,n=0,o=0,p=0,q=0,r=0.0,s=0.0,t=0.0,u=0,v=0,w=0,x=0,y=0,z=0.0,A=0.0,B=0.0,C=0.0,D=0,E=0.0,F=0.0,G=0.0,H=0,I=0.0,J=0,K=0.0,L=0;q=i;i=i+48|0;L=q+36|0;J=q+24|0;y=q+16|0;x=q+8|0;u=q;n=b+128|0;p=c[n>>2]|0;o=d+28|0;D=c[o>>2]|0;v=D+(p*12|0)|0;j=+g[v>>2];k=+g[v+4>>2];s=+g[D+(p*12|0)+8>>2];p=b+132|0;v=c[p>>2]|0;w=D+(v*12|0)|0;m=+g[w>>2];h=+g[w+4>>2];t=+g[D+(v*12|0)+8>>2];e=+g[b+168>>2];r=+g[b+172>>2];l=+g[b+176>>2];f=+g[b+180>>2];v=l+f==0.0;if((a[b+100>>0]|0)!=0?!((c[b+224>>2]|0)==3|v):0){D=b+96|0;K=+g[D>>2];I=+g[d>>2]*+g[b+104>>2];F=K- +g[b+220>>2]*(t-s- +g[b+108>>2]);G=-I;I=F>2]=I;K=I-K;s=s-l*K;t=t+f*K}if((a[b+112>>0]|0)!=0?(H=b+224|0,!((c[H>>2]|0)==0|v)):0){w=b+148|0;d=b+144|0;v=b+140|0;u=b+136|0;z=m-t*+g[w>>2]-j+s*+g[v>>2];C=h+t*+g[d>>2]-k-s*+g[u>>2];g[L>>2]=z;g[L+4>>2]=C;g[L+8>>2]=t-s;D=b+184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{o=r-q- +g[b+116>>2];if((G|0)==2){u=o- +g[b+124>>2];v=u+-.03490658849477768;v=v<.13962635397911072?v:.13962635397911072;v=-(+g[b+220>>2]*(v<0.0?0.0:v))}else if((G|0)==3){u=o- +g[b+120>>2];u=u<.13962635397911072?u:.13962635397911072;u=u<-.13962635397911072?-.13962635397911072:u;v=-(+g[b+220>>2]*u);if(!(u>0.0))u=-u}else if((G|0)==1){u=o- +g[b+120>>2];v=u+.03490658849477768;v=v<0.0?v:0.0;u=-u;v=-(+g[b+220>>2]*(v<-.13962635397911072?-.13962635397911072:v))}else{u=0.0;v=0.0}o=t;p=s;q=q-v*t;r=r+v*s}}else{o=+g[H>>2];p=+g[G>>2];u=0.0}w=+R(+q);x=+Q(+q);y=+R(+r);z=+Q(+r);v=+g[b+68>>2]- +g[b+152>>2];s=+g[b+72>>2]- +g[b+156>>2];A=x*v-w*s;s=w*v+x*s;x=+g[b+76>>2]- +g[b+160>>2];v=+g[b+80>>2]- +g[b+164>>2];w=z*x-y*v;v=y*x+z*v;z=h+w-l-A;x=m+v-j-s;y=+O(+(z*z+x*x));t=+g[b+168>>2];C=+g[b+172>>2];J=t+C;E=J+s*s*o+v*v*p;F=A*o;B=w*p;D=-(s*F)-v*B;B=J+A*F+w*B;F=E*B-D*D;if(F!=0.0)F=1.0/F;J=-((z*B-x*D)*F);F=-((x*E-z*D)*F);E=+(l-t*J);D=+(j-t*F);I=d;g[I>>2]=E;g[I+4>>2]=D;I=c[k>>2]|0;g[I+((c[e>>2]|0)*12|0)+8>>2]=q-o*(A*F-s*J);D=+(h+C*J);E=+(m+C*F);I=I+((c[n>>2]|0)*12|0)|0;g[I>>2]=D;g[I+4>>2]=E;g[(c[k>>2]|0)+((c[n>>2]|0)*12|0)+8>>2]=r+p*(w*F-v*J);if(!(y<=.004999999888241291)){I=0;i=f;return I|0}I=u<=.03490658849477768;i=f;return I|0}function xA(a,b){a=a|0;b=b|0;var d=0.0,e=0.0,f=0.0,h=0.0,i=0.0,j=0;j=c[b+48>>2]|0;i=+g[j+24>>2];h=+g[b+68>>2];f=+g[j+20>>2];e=+g[b+72>>2];d=h*f+i*e+ +g[j+16>>2];g[a>>2]=+g[j+12>>2]+(i*h-f*e);g[a+4>>2]=d;return}function yA(a,b){a=a|0;b=b|0;var d=0.0,e=0.0,f=0.0,h=0.0,i=0.0,j=0;j=c[b+52>>2]|0;i=+g[j+24>>2];h=+g[b+76>>2];f=+g[j+20>>2];e=+g[b+80>>2];d=h*f+i*e+ +g[j+16>>2];g[a>>2]=+g[j+12>>2]+(i*h-f*e);g[a+4>>2]=d;return}function zA(a,b,c){a=a|0;b=b|0;c=+c;var d=0.0;d=+g[b+88>>2]*c;g[a>>2]=+g[b+84>>2]*c;g[a+4>>2]=d;return}function AA(a,b){a=a|0;b=+b;return+(+g[a+92>>2]*b)}function BA(a){a=a|0;var b=0,e=0,f=0,j=0.0,l=0;b=i;i=i+16|0;e=b;l=c[(c[a+48>>2]|0)+8>>2]|0;f=c[(c[a+52>>2]|0)+8>>2]|0;Nx(16784,e);c[e>>2]=l;Nx(17320,e);c[e>>2]=f;Nx(17352,e);c[e>>2]=d[a+61>>0];Nx(17384,e);j=+g[a+72>>2];h[k>>3]=+g[a+68>>2];c[e>>2]=c[k>>2];c[e+4>>2]=c[k+4>>2];f=e+8|0;h[k>>3]=j;c[f>>2]=c[k>>2];c[f+4>>2]=c[k+4>>2];Nx(17424,e);j=+g[a+80>>2];h[k>>3]=+g[a+76>>2];c[e>>2]=c[k>>2];c[e+4>>2]=c[k+4>>2];f=e+8|0;h[k>>3]=j;c[f>>2]=c[k>>2];c[f+4>>2]=c[k+4>>2];Nx(17472,e);h[k>>3]=+g[a+116>>2];c[e>>2]=c[k>>2];c[e+4>>2]=c[k+4>>2];Nx(17176,e);c[e>>2]=d[a+112>>0];Nx(16816,e);h[k>>3]=+g[a+120>>2];c[e>>2]=c[k>>2];c[e+4>>2]=c[k+4>>2];Nx(16848,e);h[k>>3]=+g[a+124>>2];c[e>>2]=c[k>>2];c[e+4>>2]=c[k+4>>2];Nx(16880,e);c[e>>2]=d[a+100>>0];Nx(17560,e);h[k>>3]=+g[a+108>>2];c[e>>2]=c[k>>2];c[e+4>>2]=c[k+4>>2];Nx(17592,e);h[k>>3]=+g[a+104>>2];c[e>>2]=c[k>>2];c[e+4>>2]=c[k+4>>2];Nx(17624,e);c[e>>2]=c[a+56>>2];Nx(17720,e);i=b;return}function CA(a){a=a|0;return}function DA(a){a=a|0;var b=0;b=i;OB(a);i=b;return}function EA(b,d){b=b|0;d=d|0;var e=0,f=0,h=0,j=0,l=0.0,m=0.0,n=0.0,o=0.0,p=0.0,q=0.0,r=0.0,s=0.0,t=0.0,u=0.0,v=0.0,w=0,x=0.0,y=0,z=0.0,A=0.0,B=0,C=0.0,D=0.0,E=0,F=0,G=0,H=0.0,I=0,J=0,K=0,L=0,M=0,N=0,P=0.0;e=i;w=c[b+48>>2]|0;M=c[w+8>>2]|0;f=b+96|0;c[f>>2]=M;L=c[b+52>>2]|0;J=c[L+8>>2]|0;h=b+100|0;c[h>>2]=J;E=w+28|0;I=c[E>>2]|0;E=c[E+4>>2]|0;y=b+128|0;c[y>>2]=I;c[y+4>>2]=E;y=L+28|0;G=c[y>>2]|0;y=c[y+4>>2]|0;F=b+136|0;c[F>>2]=G;c[F+4>>2]=y;F=b+144|0;g[F>>2]=+g[w+120>>2];y=b+148|0;g[y>>2]=+g[L+120>>2];B=b+152|0;g[B>>2]=+g[w+128>>2];w=b+156|0;g[w>>2]=+g[L+128>>2];L=c[d+24>>2]|0;j=L+(M*12|0)|0;v=+g[j>>2];x=+g[j+4>>2];l=+g[L+(M*12|0)+8>>2];j=d+28|0;K=c[j>>2]|0;N=K+(M*12|0)|0;u=+g[N>>2];t=+g[N+4>>2];o=+g[K+(M*12|0)+8>>2];M=L+(J*12|0)|0;z=+g[M>>2];H=+g[M+4>>2];C=+g[L+(J*12|0)+8>>2];L=K+(J*12|0)|0;s=+g[L>>2];r=+g[L+4>>2];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l=+g[w+4>>2];s=+g[x+(o*12|0)+8>>2];o=a+100|0;w=c[o>>2]|0;y=x+(w*12|0)|0;h=+g[y>>2];f=+g[y+4>>2];p=+g[x+(w*12|0)+8>>2];j=+R(+s);t=+Q(+s);u=+R(+p);v=+Q(+p);n=+g[a+68>>2]- +g[a+128>>2];q=+g[a+72>>2]- +g[a+132>>2];r=t*n-j*q;q=j*n+t*q;t=+g[a+76>>2]- +g[a+136>>2];n=+g[a+80>>2]- +g[a+140>>2];j=v*t-u*n;n=u*t+v*n;v=h+j-m-r;t=f+n-l-q;u=+O(+(v*v+t*t));if(u<1.1920928955078125e-7)u=0.0;else{z=1.0/u;v=v*z;t=t*z}y=a+84|0;B=u- +g[y>>2];B=B<.20000000298023224?B:.20000000298023224;B=-(+g[a+160>>2]*(B<0.0?0.0:B));A=v*B;v=t*B;B=+g[a+144>>2];t=s- +g[a+152>>2]*(r*v-q*A);s=+g[a+148>>2];z=p+ +g[a+156>>2]*(j*v-n*A);q=+(m-B*A);r=+(l-B*v);x=k;g[x>>2]=q;g[x+4>>2]=r;x=c[b>>2]|0;g[x+((c[d>>2]|0)*12|0)+8>>2]=t;t=+(h+s*A);v=+(f+s*v);x=x+((c[o>>2]|0)*12|0)|0;g[x>>2]=t;g[x+4>>2]=v;g[(c[b>>2]|0)+((c[o>>2]|0)*12|0)+8>>2]=z;i=e;return u- +g[y>>2]<.004999999888241291|0}function HA(a,b){a=a|0;b=b|0;var d=0.0,e=0.0,f=0.0,h=0.0,i=0.0,j=0;j=c[b+48>>2]|0;i=+g[j+24>>2];h=+g[b+68>>2];f=+g[j+20>>2];e=+g[b+72>>2];d=h*f+i*e+ +g[j+16>>2];g[a>>2]=+g[j+12>>2]+(i*h-f*e);g[a+4>>2]=d;return}function IA(a,b){a=a|0;b=b|0;var d=0.0,e=0.0,f=0.0,h=0.0,i=0.0,j=0;j=c[b+52>>2]|0;i=+g[j+24>>2];h=+g[b+76>>2];f=+g[j+20>>2];e=+g[b+80>>2];d=h*f+i*e+ +g[j+16>>2];g[a>>2]=+g[j+12>>2]+(i*h-f*e);g[a+4>>2]=d;return}function JA(a,b,c){a=a|0;b=b|0;c=+c;var d=0.0;d=+g[b+92>>2]*c;c=d*+g[b+108>>2];g[a>>2]=+g[b+104>>2]*d;g[a+4>>2]=c;return}function KA(a,b){a=a|0;b=+b;return 0.0}function LA(a){a=a|0;var b=0,e=0,f=0,j=0.0,l=0;b=i;i=i+16|0;e=b;l=c[(c[a+48>>2]|0)+8>>2]|0;f=c[(c[a+52>>2]|0)+8>>2]|0;Nx(17008,e);c[e>>2]=l;Nx(17320,e);c[e>>2]=f;Nx(17352,e);c[e>>2]=d[a+61>>0];Nx(17384,e);j=+g[a+72>>2];h[k>>3]=+g[a+68>>2];c[e>>2]=c[k>>2];c[e+4>>2]=c[k+4>>2];f=e+8|0;h[k>>3]=j;c[f>>2]=c[k>>2];c[f+4>>2]=c[k+4>>2];Nx(17424,e);j=+g[a+80>>2];h[k>>3]=+g[a+76>>2];c[e>>2]=c[k>>2];c[e+4>>2]=c[k+4>>2];f=e+8|0;h[k>>3]=j;c[f>>2]=c[k>>2];c[f+4>>2]=c[k+4>>2];Nx(17472,e);h[k>>3]=+g[a+84>>2];c[e>>2]=c[k>>2];c[e+4>>2]=c[k+4>>2];Nx(17032,e);c[e>>2]=c[a+56>>2];Nx(17720,e);i=b;return}function MA(a){a=a|0;return}function NA(a){a=a|0;var b=0;b=i;OB(a);i=b;return}function OA(b,d){b=b|0;d=d|0;var e=0,f=0.0,h=0.0,j=0.0,l=0.0,m=0.0,n=0,o=0,p=0,q=0,r=0.0,s=0.0,t=0.0,u=0,v=0,w=0.0,x=0,y=0.0,z=0.0,A=0.0,B=0.0,C=0.0,D=0.0,E=0,F=0,G=0.0,H=0.0,I=0.0,J=0.0,K=0,L=0,M=0,N=0;q=i;i=i+48|0;F=q;o=c[b+48>>2]|0;M=c[o+8>>2]|0;n=b+116|0;c[n>>2]=M;L=c[b+52>>2]|0;u=c[L+8>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)){K=0;i=d;return K|0}K=x<=.03490658849477768;i=d;return K|0}function RA(a,b){a=a|0;b=b|0;var d=0.0,e=0.0,f=0.0,h=0.0,i=0.0,j=0;j=c[b+48>>2]|0;i=+g[j+24>>2];h=+g[b+80>>2];f=+g[j+20>>2];e=+g[b+84>>2];d=h*f+i*e+ +g[j+16>>2];g[a>>2]=+g[j+12>>2]+(i*h-f*e);g[a+4>>2]=d;return}function SA(a,b){a=a|0;b=b|0;var d=0.0,e=0.0,f=0.0,h=0.0,i=0.0,j=0;j=c[b+52>>2]|0;i=+g[j+24>>2];h=+g[b+88>>2];f=+g[j+20>>2];e=+g[b+92>>2];d=h*f+i*e+ +g[j+16>>2];g[a>>2]=+g[j+12>>2]+(i*h-f*e);g[a+4>>2]=d;return}function TA(a,b,c){a=a|0;b=b|0;c=+c;var d=0.0;d=+g[b+108>>2]*c;g[a>>2]=+g[b+104>>2]*c;g[a+4>>2]=d;return}function UA(a,b){a=a|0;b=+b;return+(+g[a+112>>2]*b)}function VA(a){a=a|0;var b=0,e=0,f=0,j=0.0,l=0;b=i;i=i+16|0;e=b;l=c[(c[a+48>>2]|0)+8>>2]|0;f=c[(c[a+52>>2]|0)+8>>2]|0;Nx(17152,e);c[e>>2]=l;Nx(17320,e);c[e>>2]=f;Nx(17352,e);c[e>>2]=d[a+61>>0];Nx(17384,e);j=+g[a+84>>2];h[k>>3]=+g[a+80>>2];c[e>>2]=c[k>>2];c[e+4>>2]=c[k+4>>2];f=e+8|0;h[k>>3]=j;c[f>>2]=c[k>>2];c[f+4>>2]=c[k+4>>2];Nx(17424,e);j=+g[a+92>>2];h[k>>3]=+g[a+88>>2];c[e>>2]=c[k>>2];c[e+4>>2]=c[k+4>>2];f=e+8|0;h[k>>3]=j;c[f>>2]=c[k>>2];c[f+4>>2]=c[k+4>>2];Nx(17472,e);h[k>>3]=+g[a+96>>2];c[e>>2]=c[k>>2];c[e+4>>2]=c[k+4>>2];Nx(17176,e);h[k>>3]=+g[a+68>>2];c[e>>2]=c[k>>2];c[e+4>>2]=c[k+4>>2];Nx(17656,e);h[k>>3]=+g[a+72>>2];c[e>>2]=c[k>>2];c[e+4>>2]=c[k+4>>2];Nx(17688,e);c[e>>2]=c[a+56>>2];Nx(17720,e);i=b;return}function WA(a){a=a|0;return}function XA(a){a=a|0;var b=0;b=i;OB(a);i=b;return}function YA(b,d){b=b|0;d=d|0;var e=0.0,f=0,h=0.0,j=0,l=0.0,m=0,n=0,o=0.0,p=0,q=0,r=0.0,s=0.0,t=0.0,u=0.0,v=0.0,w=0.0,x=0,y=0,z=0.0,A=0.0,B=0.0,C=0.0,D=0,E=0.0,F=0,G=0,H=0.0,I=0.0,J=0.0,K=0.0,L=0.0,M=0.0,N=0.0,O=0.0,P=0,S=0,T=0,U=0,V=0,W=0,X=0.0,Y=0.0;p=i;j=c[b+48>>2]|0;V=c[j+8>>2]|0;x=b+132|0;c[x>>2]=V;f=c[b+52>>2]|0;S=c[f+8>>2]|0;q=b+136|0;c[q>>2]=S;D=j+28|0;P=c[D>>2]|0;D=c[D+4>>2]|0;G=b+140|0;c[G>>2]=P;c[G+4>>2]=D;G=f+28|0;F=c[G>>2]|0;G=c[G+4>>2]|0;n=b+148|0;c[n>>2]=F;c[n+4>>2]=G;E=+g[j+120>>2];n=b+156|0;g[n>>2]=E;K=+g[f+120>>2];m=b+160|0;g[m>>2]=K;A=+g[j+128>>2];j=b+164|0;g[j>>2]=A;z=+g[f+128>>2];f=b+168|0;g[f>>2]=z;U=c[d+24>>2]|0;y=U+(V*12|0)|0;C=+g[y>>2];B=+g[y+4>>2];H=+g[U+(V*12|0)+8>>2];y=d+28|0;T=c[y>>2]|0;W=T+(V*12|0)|0;r=+g[W>>2];s=+g[W+4>>2];v=+g[T+(V*12|0)+8>>2];V=U+(S*12|0)|0;e=+g[V>>2];h=+g[V+4>>2];o=+g[U+(S*12|0)+8>>2];U=T+(S*12|0)|0;t=+g[U>>2];u=+g[U+4>>2];w=+g[T+(S*12|0)+8>>2];O=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0;E=c[b>>2]|0;D=E+(w*12|0)|0;j=+g[D>>2];l=+g[D+4>>2];n=+g[E+(w*12|0)+8>>2];w=a+136|0;D=c[w>>2]|0;F=E+(D*12|0)|0;t=+g[F>>2];v=+g[F+4>>2];x=+g[E+(D*12|0)+8>>2];u=+R(+n);q=+Q(+n);k=+R(+x);f=+Q(+x);r=+g[a+76>>2]- +g[a+140>>2];m=+g[a+80>>2]- +g[a+144>>2];o=q*r-u*m;m=u*r+q*m;r=+g[a+84>>2]- +g[a+148>>2];z=+g[a+88>>2]- +g[a+152>>2];y=f*r-k*z;z=k*r+f*z;f=t-j+y-o;r=v-l+z-m;k=+g[a+100>>2];h=+g[a+104>>2];p=q*k-u*h;h=u*k+q*h;q=p*f+h*r;k=+g[a+156>>2];u=+g[a+160>>2];s=+g[a+164>>2];C=+g[a+196>>2];A=+g[a+168>>2];B=+g[a+200>>2];B=k+u+C*s*C+B*A*B;if(B!=0.0)B=-q/B;else B=0.0;G=p*B;C=h*B;j=+(j-G*k);l=+(l-C*k);F=(c[b>>2]|0)+((c[d>>2]|0)*12|0)|0;g[F>>2]=j;g[F+4>>2]=l;F=c[b>>2]|0;g[F+((c[d>>2]|0)*12|0)+8>>2]=n-(h*(o+f)-p*(m+r))*B*s;t=+(t+G*u);C=+(v+C*u);F=F+((c[w>>2]|0)*12|0)|0;g[F>>2]=t;g[F+4>>2]=C;g[(c[b>>2]|0)+((c[w>>2]|0)*12|0)+8>>2]=x+(y*h-z*p)*B*A;if(q>0.0){G=q;F=G<=.004999999888241291;i=e;return F|0}G=-q;F=G<=.004999999888241291;i=e;return F|0}function $A(a,b){a=a|0;b=b|0;var d=0.0,e=0.0,f=0.0,h=0.0,i=0.0,j=0;j=c[b+48>>2]|0;i=+g[j+24>>2];h=+g[b+76>>2];f=+g[j+20>>2];e=+g[b+80>>2];d=h*f+i*e+ +g[j+16>>2];g[a>>2]=+g[j+12>>2]+(i*h-f*e);g[a+4>>2]=d;return}function aB(a,b){a=a|0;b=b|0;var d=0.0,e=0.0,f=0.0,h=0.0,i=0.0,j=0;j=c[b+52>>2]|0;i=+g[j+24>>2];h=+g[b+84>>2];f=+g[j+20>>2];e=+g[b+88>>2];d=h*f+i*e+ +g[j+16>>2];g[a>>2]=+g[j+12>>2]+(i*h-f*e);g[a+4>>2]=d;return}function bB(a,b,c){a=a|0;b=b|0;c=+c;var d=0.0,e=0.0,f=0.0;f=+g[b+108>>2];e=+g[b+116>>2];d=(f*+g[b+184>>2]+e*+g[b+176>>2])*c;g[a>>2]=(f*+g[b+180>>2]+e*+g[b+172>>2])*c;g[a+4>>2]=d;return}function cB(a,b){a=a|0;b=+b;return+(+g[a+112>>2]*b)}function dB(a){a=a|0;var b=0,e=0,f=0,j=0.0,l=0;b=i;i=i+16|0;e=b;l=c[(c[a+48>>2]|0)+8>>2]|0;f=c[(c[a+52>>2]|0)+8>>2]|0;Nx(17296,e);c[e>>2]=l;Nx(17320,e);c[e>>2]=f;Nx(17352,e);c[e>>2]=d[a+61>>0];Nx(17384,e);j=+g[a+80>>2];h[k>>3]=+g[a+76>>2];c[e>>2]=c[k>>2];c[e+4>>2]=c[k+4>>2];f=e+8|0;h[k>>3]=j;c[f>>2]=c[k>>2];c[f+4>>2]=c[k+4>>2];Nx(17424,e);j=+g[a+88>>2];h[k>>3]=+g[a+84>>2];c[e>>2]=c[k>>2];c[e+4>>2]=c[k+4>>2];f=e+8|0;h[k>>3]=j;c[f>>2]=c[k>>2];c[f+4>>2]=c[k+4>>2];Nx(17472,e);j=+g[a+96>>2];h[k>>3]=+g[a+92>>2];c[e>>2]=c[k>>2];c[e+4>>2]=c[k+4>>2];f=e+8|0;h[k>>3]=j;c[f>>2]=c[k>>2];c[f+4>>2]=c[k+4>>2];Nx(17520,e);c[e>>2]=d[a+128>>0];Nx(17560,e);h[k>>3]=+g[a+124>>2];c[e>>2]=c[k>>2];c[e+4>>2]=c[k+4>>2];Nx(17592,e);h[k>>3]=+g[a+120>>2];c[e>>2]=c[k>>2];c[e+4>>2]=c[k+4>>2];Nx(17624,e);h[k>>3]=+g[a+68>>2];c[e>>2]=c[k>>2];c[e+4>>2]=c[k+4>>2];Nx(17656,e);h[k>>3]=+g[a+72>>2];c[e>>2]=c[k>>2];c[e+4>>2]=c[k+4>>2];Nx(17688,e);c[e>>2]=c[a+56>>2];Nx(17720,e);i=b;return}function eB(a){a=a|0;return}function fB(a){a=a|0;var b=0;b=i;OB(a);i=b;return}function gB(a,b){a=a|0;b=b|0;var d=0;d=i;i=i+16|0;c[d>>2]=b;b=c[m>>2]|0;ya(b|0,a|0,d|0)|0;Za(10,b|0)|0;$a()}function hB(){var a=0,b=0,d=0,e=0,f=0;a=i;i=i+16|0;b=a;a=a+12|0;if(Sa(17984,44)|0)gB(17992,b);d=Pa(c[4494]|0)|0;if(!d)gB(17960,b);d=c[d>>2]|0;if(!d)gB(17960,b);f=d+48|0;e=c[f>>2]|0;f=c[f+4>>2]|0;if(!((e&-256|0)==1126902528&(f|0)==1129074247)){c[b>>2]=17808;gB(17920,b)}if((e|0)==1126902529&(f|0)==1129074247)e=c[d+44>>2]|0;else e=d+80|0;c[a>>2]=e;f=c[d>>2]|0;d=c[f+4>>2]|0;if(vB(18352,f,a)|0){f=c[a>>2]|0;f=nb[c[(c[f>>2]|0)+8>>2]&63](f)|0;c[b>>2]=17808;c[b+4>>2]=d;c[b+8>>2]=f;gB(17824,b)}else{c[b>>2]=17808;c[b+4>>2]=d;gB(17872,b)}}function iB(){var a=0;a=i;i=i+16|0;if(!(va(17976,124)|0)){i=a;return}else gB(18048,a)}function jB(a){a=a|0;var b=0;b=i;i=i+16|0;OB(a);if(!(Ya(c[4494]|0,0)|0)){i=b;return}else gB(18104,b)}function kB(a){a=a|0;var b=0;b=i;OB(a);i=b;return}function lB(a){a=a|0;return}function mB(a){a=a|0;return 18184}function nB(a){a=a|0;var b=0;b=i;i=i+16|0;qb[a&63]();gB(18232,b)}function oB(){var a=0,b=0;b=i;i=i+16|0;if(Sa(17984,44)|0)gB(17992,b);b=Pa(c[4494]|0)|0;if(((b|0)!=0?(a=c[b>>2]|0,(a|0)!=0):0)?(b=a+48|0,(c[b>>2]&-256|0)==1126902528?(c[b+4>>2]|0)==1129074247:0):0)nB(c[a+12>>2]|0);b=c[4450]|0;c[4450]=b+0;nB(b)}function pB(a){a=a|0;return}function qB(a){a=a|0;return}function rB(a){a=a|0;return}function sB(a){a=a|0;var b=0;b=i;OB(a);i=b;return}function tB(a){a=a|0;var b=0;b=i;OB(a);i=b;return}function uB(a){a=a|0;var b=0;b=i;OB(a);i=b;return}function vB(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0;e=i;i=i+64|0;f=e;if((a|0)==(b|0)){h=1;i=e;return h|0}if(!b){h=0;i=e;return h|0}b=BB(b,18480)|0;if(!b){h=0;i=e;return h|0}h=f+0|0;g=h+56|0;do{c[h>>2]=0;h=h+4|0}while((h|0)<(g|0));c[f>>2]=b;c[f+8>>2]=a;c[f+12>>2]=-1;c[f+48>>2]=1;vb[c[(c[b>>2]|0)+28>>2]&63](b,f,c[d>>2]|0,1);if((c[f+24>>2]|0)!=1){h=0;i=e;return h|0}c[d>>2]=c[f+16>>2];h=1;i=e;return h|0}function wB(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0;f=i;g=b+16|0;h=c[g>>2]|0;if(!h){c[g>>2]=d;c[b+24>>2]=e;c[b+36>>2]=1;i=f;return}if((h|0)!=(d|0)){h=b+36|0;c[h>>2]=(c[h>>2]|0)+1;c[b+24>>2]=2;a[b+54>>0]=1;i=f;return}d=b+24|0;if((c[d>>2]|0)!=2){i=f;return}c[d>>2]=e;i=f;return}function xB(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0;f=i;if((c[b+8>>2]|0)!=(a|0)){i=f;return}wB(b,d,e);i=f;return}function yB(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0;f=i;if((a|0)==(c[b+8>>2]|0)){wB(b,d,e);i=f;return}else{a=c[a+8>>2]|0;vb[c[(c[a>>2]|0)+28>>2]&63](a,b,d,e);i=f;return}}function zB(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0;f=i;g=c[a+4>>2]|0;h=g>>8;if(g&1)h=c[(c[d>>2]|0)+h>>2]|0;a=c[a>>2]|0;vb[c[(c[a>>2]|0)+28>>2]&63](a,b,d+h|0,(g&2|0)!=0?e:2);i=f;return}function AB(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0;g=i;if((b|0)==(c[d+8>>2]|0)){wB(d,e,f);i=g;return}j=c[b+12>>2]|0;h=b+(j<<3)+16|0;zB(b+16|0,d,e,f);if((j|0)<=1){i=g;return}j=d+54|0;b=b+24|0;while(1){zB(b,d,e,f);if(a[j>>0]|0){f=7;break}b=b+8|0;if(b>>>0>=h>>>0){f=7;break}}if((f|0)==7){i=g;return}}function BB(d,e){d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;f=i;i=i+64|0;m=f;g=c[d>>2]|0;h=d+(c[g+ -8>>2]|0)|0;g=c[g+ -4>>2]|0;c[m>>2]=e;c[m+4>>2]=d;c[m+8>>2]=18424;p=m+12|0;n=m+16|0;o=m+20|0;j=m+24|0;d=m+28|0;k=m+32|0;l=m+40|0;r=(g|0)==(e|0);e=p+0|0;q=e+40|0;do{c[e>>2]=0;e=e+4|0}while((e|0)<(q|0));b[p+40>>1]=0;a[p+42>>0]=0;do if(r){c[m+48>>2]=1;sb[c[(c[g>>2]|0)+20>>2]&63](g,m,h,h,1,0);d=(c[j>>2]|0)==1?h:0}else{hb[c[(c[g>>2]|0)+24>>2]&63](g,m,h,1,0);g=c[m+36>>2]|0;if(!g){if((c[l>>2]|0)!=1){d=0;break}if((c[d>>2]|0)!=1){d=0;break}d=(c[k>>2]|0)==1?c[o>>2]|0:0;break}else if((g|0)!=1){d=0;break}if((c[j>>2]|0)!=1){if(c[l>>2]|0){d=0;break}if((c[d>>2]|0)!=1){d=0;break}if((c[k>>2]|0)!=1){d=0;break}}d=c[n>>2]|0}while(0);i=f;return d|0}function CB(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0;g=i;a[b+53>>0]=1;if((c[b+4>>2]|0)!=(e|0)){i=g;return}a[b+52>>0]=1;e=b+16|0;h=c[e>>2]|0;if(!h){c[e>>2]=d;c[b+24>>2]=f;c[b+36>>2]=1;if(!((f|0)==1?(c[b+48>>2]|0)==1:0)){i=g;return}a[b+54>>0]=1;i=g;return}if((h|0)!=(d|0)){h=b+36|0;c[h>>2]=(c[h>>2]|0)+1;a[b+54>>0]=1;i=g;return}d=b+24|0;e=c[d>>2]|0;if((e|0)==2)c[d>>2]=f;else f=e;if(!((f|0)==1?(c[b+48>>2]|0)==1:0)){i=g;return}a[b+54>>0]=1;i=g;return}function DB(b,d,e,f,g){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0;h=i;if((b|0)==(c[d+8>>2]|0)){if((c[d+4>>2]|0)!=(e|0)){i=h;return}e=d+28|0;if((c[e>>2]|0)==1){i=h;return}c[e>>2]=f;i=h;return}if((b|0)!=(c[d>>2]|0)){u=c[b+12>>2]|0;m=b+(u<<3)+16|0;FB(b+16|0,d,e,f,g);n=b+24|0;if((u|0)<=1){i=h;return}p=c[b+8>>2]|0;if((p&2|0)==0?(o=d+36|0,(c[o>>2]|0)!=1):0){if(!(p&1)){q=d+54|0;p=n;while(1){if(a[q>>0]|0){p=43;break}if((c[o>>2]|0)==1){p=43;break}FB(p,d,e,f,g);p=p+8|0;if(p>>>0>=m>>>0){p=43;break}}if((p|0)==43){i=h;return}}p=d+24|0;q=d+54|0;r=n;while(1){if(a[q>>0]|0){p=43;break}if((c[o>>2]|0)==1?(c[p>>2]|0)==1:0){p=43;break}FB(r,d,e,f,g);r=r+8|0;if(r>>>0>=m>>>0){p=43;break}}if((p|0)==43){i=h;return}}o=d+54|0;while(1){if(a[o>>0]|0){p=43;break}FB(n,d,e,f,g);n=n+8|0;if(n>>>0>=m>>>0){p=43;break}}if((p|0)==43){i=h;return}}if((c[d+16>>2]|0)!=(e|0)?(j=d+20|0,(c[j>>2]|0)!=(e|0)):0){c[d+32>>2]=f;m=d+44|0;if((c[m>>2]|0)==4){i=h;return}u=c[b+12>>2]|0;t=b+(u<<3)+16|0;a:do if((u|0)>0){o=d+52|0;n=d+53|0;r=d+54|0;q=b+8|0;p=d+24|0;u=0;s=0;b=b+16|0;b:do{a[o>>0]=0;a[n>>0]=0;EB(b,d,e,e,1,g);if(a[r>>0]|0)break;do if(a[n>>0]|0){if(!(a[o>>0]|0))if(!(c[q>>2]&1)){s=1;break b}else{s=1;break}if((c[p>>2]|0)==1){p=25;break a}if(!(c[q>>2]&2)){p=25;break a}else{u=1;s=1}}while(0);b=b+8|0}while(b>>>0 >>0);if(u){l=s;p=24}else{k=s;p=21}}else{k=0;p=21}while(0);if((p|0)==21){c[j>>2]=e;u=d+40|0;c[u>>2]=(c[u>>2]|0)+1;if((c[d+36>>2]|0)==1?(c[d+24>>2]|0)==2:0){a[d+54>>0]=1;if(k)p=25;else p=26}else{l=k;p=24}}if((p|0)==24)if(l)p=25;else p=26;if((p|0)==25){c[m>>2]=3;i=h;return}else if((p|0)==26){c[m>>2]=4;i=h;return}}if((f|0)!=1){i=h;return}c[d+32>>2]=1;i=h;return}function EB(a,b,d,e,f,g){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,j=0,k=0;h=i;j=c[a+4>>2]|0;k=j>>8;if(j&1)k=c[(c[e>>2]|0)+k>>2]|0;a=c[a>>2]|0;sb[c[(c[a>>2]|0)+20>>2]&63](a,b,d,e+k|0,(j&2|0)!=0?f:2,g);i=h;return}function FB(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0;g=i;h=c[a+4>>2]|0;j=h>>8;if(h&1)j=c[(c[d>>2]|0)+j>>2]|0;a=c[a>>2]|0;hb[c[(c[a>>2]|0)+24>>2]&63](a,b,d+j|0,(h&2|0)!=0?e:2,f);i=g;return}function GB(b,d,e,f,g){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,j=0,k=0,l=0,m=0;h=i;if((b|0)==(c[d+8>>2]|0)){if((c[d+4>>2]|0)!=(e|0)){i=h;return}j=d+28|0;if((c[j>>2]|0)==1){i=h;return}c[j>>2]=f;i=h;return}if((b|0)!=(c[d>>2]|0)){l=c[b+8>>2]|0;hb[c[(c[l>>2]|0)+24>>2]&63](l,d,e,f,g);i=h;return}if((c[d+16>>2]|0)!=(e|0)?(k=d+20|0,(c[k>>2]|0)!=(e|0)):0){c[d+32>>2]=f;f=d+44|0;if((c[f>>2]|0)==4){i=h;return}l=d+52|0;a[l>>0]=0;m=d+53|0;a[m>>0]=0;b=c[b+8>>2]|0;sb[c[(c[b>>2]|0)+20>>2]&63](b,d,e,e,1,g);if(a[m>>0]|0){if(!(a[l>>0]|0)){b=1;j=13}}else{b=0;j=13}do if((j|0)==13){c[k>>2]=e;m=d+40|0;c[m>>2]=(c[m>>2]|0)+1;if((c[d+36>>2]|0)==1?(c[d+24>>2]|0)==2:0){a[d+54>>0]=1;if(b)break}else j=16;if((j|0)==16?b:0)break;c[f>>2]=4;i=h;return}while(0);c[f>>2]=3;i=h;return}if((f|0)!=1){i=h;return}c[d+32>>2]=1;i=h;return}function HB(b,d,e,f,g){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0;g=i;if((c[d+8>>2]|0)==(b|0)){if((c[d+4>>2]|0)!=(e|0)){i=g;return}d=d+28|0;if((c[d>>2]|0)==1){i=g;return}c[d>>2]=f;i=g;return}if((c[d>>2]|0)!=(b|0)){i=g;return}if((c[d+16>>2]|0)!=(e|0)?(h=d+20|0,(c[h>>2]|0)!=(e|0)):0){c[d+32>>2]=f;c[h>>2]=e;b=d+40|0;c[b>>2]=(c[b>>2]|0)+1;if((c[d+36>>2]|0)==1?(c[d+24>>2]|0)==2:0)a[d+54>>0]=1;c[d+44>>2]=4;i=g;return}if((f|0)!=1){i=g;return}c[d+32>>2]=1;i=g;return}function IB(b,d,e,f,g,h){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;m=i;if((b|0)==(c[d+8>>2]|0)){CB(d,e,f,g);i=m;return}j=d+52|0;l=a[j>>0]|0;o=d+53|0;n=a[o>>0]|0;r=c[b+12>>2]|0;p=b+(r<<3)+16|0;a[j>>0]=0;a[o>>0]=0;EB(b+16|0,d,e,f,g,h);a:do if((r|0)>1){k=d+24|0;q=b+8|0;r=d+54|0;b=b+24|0;do{if(a[r>>0]|0)break a;if(!(a[j>>0]|0)){if((a[o>>0]|0)!=0?(c[q>>2]&1|0)==0:0)break a}else{if((c[k>>2]|0)==1)break a;if(!(c[q>>2]&2))break a}a[j>>0]=0;a[o>>0]=0;EB(b,d,e,f,g,h);b=b+8|0}while(b>>>0 >>0)}while(0);a[j>>0]=l;a[o>>0]=n;i=m;return}function JB(a,b,d,e,f,g){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0;h=i;if((a|0)==(c[b+8>>2]|0)){CB(b,d,e,f);i=h;return}else{a=c[a+8>>2]|0;sb[c[(c[a>>2]|0)+20>>2]&63](a,b,d,e,f,g);i=h;return}}function KB(a,b,d,e,f,g){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;g=i;if((c[b+8>>2]|0)!=(a|0)){i=g;return}CB(b,d,e,f);i=g;return}function LB(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;e=i;i=i+16|0;f=e;c[f>>2]=c[d>>2];a=gb[c[(c[a>>2]|0)+16>>2]&63](a,b,f)|0;b=a&1;if(!a){i=e;return b|0}c[d>>2]=c[f>>2];i=e;return b|0}function MB(a){a=a|0;var b=0;b=i;if(!a)a=0;else a=(BB(a,18592)|0)!=0;i=b;return a&1|0}function NB(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0;b=i;do if(a>>>0<245){if(a>>>0<11)a=16;else a=a+11&-8;v=a>>>3;p=c[4710]|0;w=p>>>v;if(w&3){h=(w&1^1)+v|0;g=h<<1;e=18880+(g<<2)|0;g=18880+(g+2<<2)|0;j=c[g>>2]|0;d=j+8|0;f=c[d>>2]|0;do if((e|0)!=(f|0)){if(f>>>0<(c[4714]|0)>>>0)$a();k=f+12|0;if((c[k>>2]|0)==(j|0)){c[k>>2]=e;c[g>>2]=f;break}else $a()}else c[4710]=p&~(1<
>2]=H|3;H=j+(H|4)|0;c[H>>2]=c[H>>2]|1;H=d;i=b;return H|0}if(a>>>0>(c[4712]|0)>>>0){if(w){h=2< >>12&16;h=h>>>d;f=h>>>5&8;h=h>>>f;g=h>>>2&4;h=h>>>g;e=h>>>1&2;h=h>>>e;j=h>>>1&1;j=(f|d|g|e|j)+(h>>>j)|0;h=j<<1;e=18880+(h<<2)|0;h=18880+(h+2<<2)|0;g=c[h>>2]|0;d=g+8|0;f=c[d>>2]|0;do if((e|0)!=(f|0)){if(f>>>0<(c[4714]|0)>>>0)$a();k=f+12|0;if((c[k>>2]|0)==(g|0)){c[k>>2]=e;c[h>>2]=f;break}else $a()}else c[4710]=p&~(1< >2]=a|3;e=g+a|0;c[g+(a|4)>>2]=f|1;c[g+h>>2]=f;h=c[4712]|0;if(h){g=c[4715]|0;k=h>>>3;j=k<<1;h=18880+(j<<2)|0;l=c[4710]|0;k=1< >2]|0;if(k>>>0<(c[4714]|0)>>>0)$a();else{D=j;C=k}}else{c[4710]=l|k;D=18880+(j+2<<2)|0;C=h}c[D>>2]=g;c[C+12>>2]=g;c[g+8>>2]=C;c[g+12>>2]=h}c[4712]=f;c[4715]=e;H=d;i=b;return H|0}p=c[4711]|0;if(p){e=(p&0-p)+ -1|0;G=e>>>12&16;e=e>>>G;F=e>>>5&8;e=e>>>F;H=e>>>2&4;e=e>>>H;f=e>>>1&2;e=e>>>f;d=e>>>1&1;d=c[19144+((F|G|H|f|d)+(e>>>d)<<2)>>2]|0;e=(c[d+4>>2]&-8)-a|0;f=d;while(1){g=c[f+16>>2]|0;if(!g){g=c[f+20>>2]|0;if(!g)break}f=(c[g+4>>2]&-8)-a|0;H=f>>>0 >>0;e=H?f:e;f=g;d=H?g:d}h=c[4714]|0;if(d>>>0 >>0)$a();f=d+a|0;if(d>>>0>=f>>>0)$a();g=c[d+24>>2]|0;k=c[d+12>>2]|0;do if((k|0)==(d|0)){k=d+20|0;j=c[k>>2]|0;if(!j){k=d+16|0;j=c[k>>2]|0;if(!j){B=0;break}}while(1){l=j+20|0;m=c[l>>2]|0;if(m){j=m;k=l;continue}m=j+16|0;l=c[m>>2]|0;if(!l)break;else{j=l;k=m}}if(k>>>0 >>0)$a();else{c[k>>2]=0;B=j;break}}else{j=c[d+8>>2]|0;if(j>>>0 >>0)$a();h=j+12|0;if((c[h>>2]|0)!=(d|0))$a();l=k+8|0;if((c[l>>2]|0)==(d|0)){c[h>>2]=k;c[l>>2]=j;B=k;break}else $a()}while(0);do if(g){h=c[d+28>>2]|0;j=19144+(h<<2)|0;if((d|0)==(c[j>>2]|0)){c[j>>2]=B;if(!B){c[4711]=c[4711]&~(1< >>0<(c[4714]|0)>>>0)$a();h=g+16|0;if((c[h>>2]|0)==(d|0))c[h>>2]=B;else c[g+20>>2]=B;if(!B)break}if(B>>>0<(c[4714]|0)>>>0)$a();c[B+24>>2]=g;g=c[d+16>>2]|0;do if(g)if(g>>>0<(c[4714]|0)>>>0)$a();else{c[B+16>>2]=g;c[g+24>>2]=B;break}while(0);g=c[d+20>>2]|0;if(g)if(g>>>0<(c[4714]|0)>>>0)$a();else{c[B+20>>2]=g;c[g+24>>2]=B;break}}while(0);if(e>>>0<16){H=e+a|0;c[d+4>>2]=H|3;H=d+(H+4)|0;c[H>>2]=c[H>>2]|1}else{c[d+4>>2]=a|3;c[d+(a|4)>>2]=e|1;c[d+(e+a)>>2]=e;h=c[4712]|0;if(h){g=c[4715]|0;l=h>>>3;j=l<<1;h=18880+(j<<2)|0;k=c[4710]|0;l=1< >2]|0;if(k>>>0<(c[4714]|0)>>>0)$a();else{A=j;z=k}}else{c[4710]=k|l;A=18880+(j+2<<2)|0;z=h}c[A>>2]=g;c[z+12>>2]=g;c[g+8>>2]=z;c[g+12>>2]=h}c[4712]=e;c[4715]=f}H=d+8|0;i=b;return H|0}}}else if(a>>>0<=4294967231){z=a+11|0;a=z&-8;B=c[4711]|0;if(B){A=0-a|0;z=z>>>8;if(z)if(a>>>0>16777215)C=31;else{G=(z+1048320|0)>>>16&8;H=z< >>16&4;H=H< >>16&2;C=14-(F|G|C)+(H< >>15)|0;C=a>>>(C+7|0)&1|C<<1}else C=0;D=c[19144+(C<<2)>>2]|0;a:do if(!D){F=0;z=0}else{if((C|0)==31)z=0;else z=25-(C>>>1)|0;F=0;E=a< >2]&-8;G=H-a|0;if(G>>>0>>0)if((H|0)==(a|0)){A=G;F=D;z=D;break a}else{A=G;z=D}H=c[D+20>>2]|0;D=c[D+(E>>>31<<2)+16>>2]|0;F=(H|0)==0|(H|0)==(D|0)?F:H;if(!D)break;else E=E<<1}}while(0);if((F|0)==0&(z|0)==0){H=2< >>12&16;H=H>>>D;C=H>>>5&8;H=H>>>C;E=H>>>2&4;H=H>>>E;G=H>>>1&2;H=H>>>G;F=H>>>1&1;F=c[19144+((C|D|E|G|F)+(H>>>F)<<2)>>2]|0}if(F)while(1){H=(c[F+4>>2]&-8)-a|0;B=H>>>0>>0;A=B?H:A;z=B?F:z;B=c[F+16>>2]|0;if(B){F=B;continue}F=c[F+20>>2]|0;if(!F)break}if((z|0)!=0?A>>>0<((c[4712]|0)-a|0)>>>0:0){f=c[4714]|0;if(z>>>0 >>0)$a();d=z+a|0;if(z>>>0>=d>>>0)$a();e=c[z+24>>2]|0;h=c[z+12>>2]|0;do if((h|0)==(z|0)){h=z+20|0;g=c[h>>2]|0;if(!g){h=z+16|0;g=c[h>>2]|0;if(!g){x=0;break}}while(1){j=g+20|0;k=c[j>>2]|0;if(k){g=k;h=j;continue}j=g+16|0;k=c[j>>2]|0;if(!k)break;else{g=k;h=j}}if(h>>>0 >>0)$a();else{c[h>>2]=0;x=g;break}}else{g=c[z+8>>2]|0;if(g>>>0 >>0)$a();f=g+12|0;if((c[f>>2]|0)!=(z|0))$a();j=h+8|0;if((c[j>>2]|0)==(z|0)){c[f>>2]=h;c[j>>2]=g;x=h;break}else $a()}while(0);do if(e){g=c[z+28>>2]|0;f=19144+(g<<2)|0;if((z|0)==(c[f>>2]|0)){c[f>>2]=x;if(!x){c[4711]=c[4711]&~(1< >>0<(c[4714]|0)>>>0)$a();f=e+16|0;if((c[f>>2]|0)==(z|0))c[f>>2]=x;else c[e+20>>2]=x;if(!x)break}if(x>>>0<(c[4714]|0)>>>0)$a();c[x+24>>2]=e;e=c[z+16>>2]|0;do if(e)if(e>>>0<(c[4714]|0)>>>0)$a();else{c[x+16>>2]=e;c[e+24>>2]=x;break}while(0);e=c[z+20>>2]|0;if(e)if(e>>>0<(c[4714]|0)>>>0)$a();else{c[x+20>>2]=e;c[e+24>>2]=x;break}}while(0);b:do if(A>>>0>=16){c[z+4>>2]=a|3;c[z+(a|4)>>2]=A|1;c[z+(A+a)>>2]=A;f=A>>>3;if(A>>>0<256){h=f<<1;e=18880+(h<<2)|0;g=c[4710]|0;f=1< >2]|0;if(g>>>0>=(c[4714]|0)>>>0){w=f;v=g;break}$a()}while(0);c[w>>2]=d;c[v+12>>2]=d;c[z+(a+8)>>2]=v;c[z+(a+12)>>2]=e;break}e=A>>>8;if(e)if(A>>>0>16777215)e=31;else{G=(e+1048320|0)>>>16&8;H=e< >>16&4;H=H< >>16&2;e=14-(F|G|e)+(H< >>15)|0;e=A>>>(e+7|0)&1|e<<1}else e=0;f=19144+(e<<2)|0;c[z+(a+28)>>2]=e;c[z+(a+20)>>2]=0;c[z+(a+16)>>2]=0;h=c[4711]|0;g=1< >2]=d;c[z+(a+24)>>2]=f;c[z+(a+12)>>2]=d;c[z+(a+8)>>2]=d;break}f=c[f>>2]|0;if((e|0)==31)e=0;else e=25-(e>>>1)|0;c:do if((c[f+4>>2]&-8|0)!=(A|0)){e=A< >>31<<2)+16|0;h=c[g>>2]|0;if(!h)break;if((c[h+4>>2]&-8|0)==(A|0)){p=h;break c}else{e=e<<1;f=h}}if(g>>>0<(c[4714]|0)>>>0)$a();else{c[g>>2]=d;c[z+(a+24)>>2]=f;c[z+(a+12)>>2]=d;c[z+(a+8)>>2]=d;break b}}else p=f;while(0);f=p+8|0;e=c[f>>2]|0;g=c[4714]|0;if(p>>>0 >>0)$a();if(e>>>0 >>0)$a();else{c[e+12>>2]=d;c[f>>2]=d;c[z+(a+8)>>2]=e;c[z+(a+12)>>2]=p;c[z+(a+24)>>2]=0;break}}else{H=A+a|0;c[z+4>>2]=H|3;H=z+(H+4)|0;c[H>>2]=c[H>>2]|1}while(0);H=z+8|0;i=b;return H|0}}}else a=-1;while(0);p=c[4712]|0;if(a>>>0<=p>>>0){e=p-a|0;d=c[4715]|0;if(e>>>0>15){c[4715]=d+a;c[4712]=e;c[d+(a+4)>>2]=e|1;c[d+p>>2]=e;c[d+4>>2]=a|3}else{c[4712]=0;c[4715]=0;c[d+4>>2]=p|3;H=d+(p+4)|0;c[H>>2]=c[H>>2]|1}H=d+8|0;i=b;return H|0}p=c[4713]|0;if(a>>>0 >>0){G=p-a|0;c[4713]=G;H=c[4716]|0;c[4716]=H+a;c[H+(a+4)>>2]=G|1;c[H+4>>2]=a|3;H=H+8|0;i=b;return H|0}do if(!(c[4828]|0)){p=Oa(30)|0;if(!(p+ -1&p)){c[4830]=p;c[4829]=p;c[4831]=-1;c[4832]=-1;c[4833]=0;c[4821]=0;c[4828]=(bb(0)|0)&-16^1431655768;break}else $a()}while(0);w=a+48|0;p=c[4830]|0;x=a+47|0;z=p+x|0;p=0-p|0;v=z&p;if(v>>>0<=a>>>0){H=0;i=b;return H|0}A=c[4820]|0;if((A|0)!=0?(G=c[4818]|0,H=G+v|0,H>>>0<=G>>>0|H>>>0>A>>>0):0){H=0;i=b;return H|0}d:do if(!(c[4821]&4)){B=c[4716]|0;e:do if(B){A=19288|0;while(1){C=c[A>>2]|0;if(C>>>0<=B>>>0?(y=A+4|0,(C+(c[y>>2]|0)|0)>>>0>B>>>0):0)break;A=c[A+8>>2]|0;if(!A){o=182;break e}}if(A){B=z-(c[4713]|0)&p;if(B>>>0<2147483647){p=Ia(B|0)|0;A=(p|0)==((c[A>>2]|0)+(c[y>>2]|0)|0);y=p;z=B;p=A?p:-1;A=A?B:0;o=191}else A=0}else o=182}else o=182;while(0);do if((o|0)==182){p=Ia(0)|0;if((p|0)!=(-1|0)){z=p;A=c[4829]|0;y=A+ -1|0;if(!(y&z))A=v;else A=v-z+(y+z&0-A)|0;y=c[4818]|0;z=y+A|0;if(A>>>0>a>>>0&A>>>0<2147483647){H=c[4820]|0;if((H|0)!=0?z>>>0<=y>>>0|z>>>0>H>>>0:0){A=0;break}y=Ia(A|0)|0;o=(y|0)==(p|0);z=A;p=o?p:-1;A=o?A:0;o=191}else A=0}else A=0}while(0);f:do if((o|0)==191){o=0-z|0;if((p|0)!=(-1|0)){q=A;o=202;break d}do if((y|0)!=(-1|0)&z>>>0<2147483647&z>>>0
>>0?(u=c[4830]|0,u=x-z+u&0-u,u>>>0<2147483647):0)if((Ia(u|0)|0)==(-1|0)){Ia(o|0)|0;break f}else{z=u+z|0;break}while(0);if((y|0)!=(-1|0)){p=y;q=z;o=202;break d}}while(0);c[4821]=c[4821]|4;o=199}else{A=0;o=199}while(0);if((((o|0)==199?v>>>0<2147483647:0)?(t=Ia(v|0)|0,s=Ia(0)|0,(s|0)!=(-1|0)&(t|0)!=(-1|0)&t>>>0 >>0):0)?(r=s-t|0,q=r>>>0>(a+40|0)>>>0,q):0){p=t;q=q?r:A;o=202}if((o|0)==202){r=(c[4818]|0)+q|0;c[4818]=r;if(r>>>0>(c[4819]|0)>>>0)c[4819]=r;r=c[4716]|0;g:do if(r){v=19288|0;while(1){t=c[v>>2]|0;u=v+4|0;s=c[u>>2]|0;if((p|0)==(t+s|0)){o=214;break}w=c[v+8>>2]|0;if(!w)break;else v=w}if(((o|0)==214?(c[v+12>>2]&8|0)==0:0)?r>>>0>=t>>>0&r>>>0>>0:0){c[u>>2]=s+q;d=(c[4713]|0)+q|0;e=r+8|0;if(!(e&7))e=0;else e=0-e&7;H=d-e|0;c[4716]=r+e;c[4713]=H;c[r+(e+4)>>2]=H|1;c[r+(d+4)>>2]=40;c[4717]=c[4832];break}if(p>>>0<(c[4714]|0)>>>0)c[4714]=p;t=p+q|0;s=19288|0;while(1){if((c[s>>2]|0)==(t|0)){o=224;break}u=c[s+8>>2]|0;if(!u)break;else s=u}if((o|0)==224?(c[s+12>>2]&8|0)==0:0){c[s>>2]=p;h=s+4|0;c[h>>2]=(c[h>>2]|0)+q;h=p+8|0;if(!(h&7))h=0;else h=0-h&7;j=p+(q+8)|0;if(!(j&7))n=0;else n=0-j&7;o=p+(n+q)|0;j=h+a|0;k=p+j|0;m=o-(p+h)-a|0;c[p+(h+4)>>2]=a|3;h:do if((o|0)!=(c[4716]|0)){if((o|0)==(c[4715]|0)){H=(c[4712]|0)+m|0;c[4712]=H;c[4715]=k;c[p+(j+4)>>2]=H|1;c[p+(H+j)>>2]=H;break}r=q+4|0;t=c[p+(r+n)>>2]|0;if((t&3|0)==1){a=t&-8;s=t>>>3;i:do if(t>>>0>=256){l=c[p+((n|24)+q)>>2]|0;u=c[p+(q+12+n)>>2]|0;do if((u|0)==(o|0)){u=n|16;t=p+(r+u)|0;s=c[t>>2]|0;if(!s){t=p+(u+q)|0;s=c[t>>2]|0;if(!s){g=0;break}}while(1){u=s+20|0;v=c[u>>2]|0;if(v){s=v;t=u;continue}u=s+16|0;v=c[u>>2]|0;if(!v)break;else{s=v;t=u}}if(t>>>0<(c[4714]|0)>>>0)$a();else{c[t>>2]=0;g=s;break}}else{t=c[p+((n|8)+q)>>2]|0;if(t>>>0<(c[4714]|0)>>>0)$a();v=t+12|0;if((c[v>>2]|0)!=(o|0))$a();s=u+8|0;if((c[s>>2]|0)==(o|0)){c[v>>2]=u;c[s>>2]=t;g=u;break}else $a()}while(0);if(!l)break;t=c[p+(q+28+n)>>2]|0;s=19144+(t<<2)|0;do if((o|0)!=(c[s>>2]|0)){if(l>>>0<(c[4714]|0)>>>0)$a();s=l+16|0;if((c[s>>2]|0)==(o|0))c[s>>2]=g;else c[l+20>>2]=g;if(!g)break i}else{c[s>>2]=g;if(g)break;c[4711]=c[4711]&~(1<
>>0<(c[4714]|0)>>>0)$a();c[g+24>>2]=l;l=n|16;o=c[p+(l+q)>>2]|0;do if(o)if(o>>>0<(c[4714]|0)>>>0)$a();else{c[g+16>>2]=o;c[o+24>>2]=g;break}while(0);l=c[p+(r+l)>>2]|0;if(!l)break;if(l>>>0<(c[4714]|0)>>>0)$a();else{c[g+20>>2]=l;c[l+24>>2]=g;break}}else{r=c[p+((n|8)+q)>>2]|0;g=c[p+(q+12+n)>>2]|0;t=18880+(s<<1<<2)|0;do if((r|0)!=(t|0)){if(r>>>0<(c[4714]|0)>>>0)$a();if((c[r+12>>2]|0)==(o|0))break;$a()}while(0);if((g|0)==(r|0)){c[4710]=c[4710]&~(1< >>0<(c[4714]|0)>>>0)$a();s=g+8|0;if((c[s>>2]|0)==(o|0)){l=s;break}$a()}while(0);c[r+12>>2]=g;c[l>>2]=r}while(0);o=p+((a|n)+q)|0;m=a+m|0}g=o+4|0;c[g>>2]=c[g>>2]&-2;c[p+(j+4)>>2]=m|1;c[p+(m+j)>>2]=m;g=m>>>3;if(m>>>0<256){m=g<<1;d=18880+(m<<2)|0;l=c[4710]|0;g=1<>2]|0;if(g>>>0>=(c[4714]|0)>>>0){f=l;e=g;break}$a()}while(0);c[f>>2]=k;c[e+12>>2]=k;c[p+(j+8)>>2]=e;c[p+(j+12)>>2]=d;break}e=m>>>8;do if(!e)e=0;else{if(m>>>0>16777215){e=31;break}G=(e+1048320|0)>>>16&8;H=e< >>16&4;H=H< >>16&2;e=14-(F|G|e)+(H< >>15)|0;e=m>>>(e+7|0)&1|e<<1}while(0);l=19144+(e<<2)|0;c[p+(j+28)>>2]=e;c[p+(j+20)>>2]=0;c[p+(j+16)>>2]=0;f=c[4711]|0;g=1< >2]=k;c[p+(j+24)>>2]=l;c[p+(j+12)>>2]=k;c[p+(j+8)>>2]=k;break}l=c[l>>2]|0;if((e|0)==31)e=0;else e=25-(e>>>1)|0;j:do if((c[l+4>>2]&-8|0)!=(m|0)){e=m< >>31<<2)+16|0;f=c[g>>2]|0;if(!f)break;if((c[f+4>>2]&-8|0)==(m|0)){d=f;break j}else{e=e<<1;l=f}}if(g>>>0<(c[4714]|0)>>>0)$a();else{c[g>>2]=k;c[p+(j+24)>>2]=l;c[p+(j+12)>>2]=k;c[p+(j+8)>>2]=k;break h}}else d=l;while(0);f=d+8|0;e=c[f>>2]|0;g=c[4714]|0;if(d>>>0 >>0)$a();if(e>>>0 >>0)$a();else{c[e+12>>2]=k;c[f>>2]=k;c[p+(j+8)>>2]=e;c[p+(j+12)>>2]=d;c[p+(j+24)>>2]=0;break}}else{H=(c[4713]|0)+m|0;c[4713]=H;c[4716]=k;c[p+(j+4)>>2]=H|1}while(0);H=p+(h|8)|0;i=b;return H|0}e=19288|0;while(1){d=c[e>>2]|0;if(d>>>0<=r>>>0?(n=c[e+4>>2]|0,m=d+n|0,m>>>0>r>>>0):0)break;e=c[e+8>>2]|0}e=d+(n+ -39)|0;if(!(e&7))e=0;else e=0-e&7;d=d+(n+ -47+e)|0;d=d>>>0<(r+16|0)>>>0?r:d;e=d+8|0;f=p+8|0;if(!(f&7))f=0;else f=0-f&7;H=q+ -40-f|0;c[4716]=p+f;c[4713]=H;c[p+(f+4)>>2]=H|1;c[p+(q+ -36)>>2]=40;c[4717]=c[4832];c[d+4>>2]=27;c[e+0>>2]=c[4822];c[e+4>>2]=c[4823];c[e+8>>2]=c[4824];c[e+12>>2]=c[4825];c[4822]=p;c[4823]=q;c[4825]=0;c[4824]=e;e=d+28|0;c[e>>2]=7;if((d+32|0)>>>0 >>0)do{H=e;e=e+4|0;c[e>>2]=7}while((H+8|0)>>>0 >>0);if((d|0)!=(r|0)){d=d-r|0;e=r+(d+4)|0;c[e>>2]=c[e>>2]&-2;c[r+4>>2]=d|1;c[r+d>>2]=d;e=d>>>3;if(d>>>0<256){g=e<<1;d=18880+(g<<2)|0;f=c[4710]|0;e=1< >2]|0;if(e>>>0>=(c[4714]|0)>>>0){k=f;j=e;break}$a()}while(0);c[k>>2]=r;c[j+12>>2]=r;c[r+8>>2]=j;c[r+12>>2]=d;break}e=d>>>8;if(e)if(d>>>0>16777215)e=31;else{G=(e+1048320|0)>>>16&8;H=e< >>16&4;H=H< >>16&2;e=14-(F|G|e)+(H< >>15)|0;e=d>>>(e+7|0)&1|e<<1}else e=0;j=19144+(e<<2)|0;c[r+28>>2]=e;c[r+20>>2]=0;c[r+16>>2]=0;f=c[4711]|0;g=1< >2]=r;c[r+24>>2]=j;c[r+12>>2]=r;c[r+8>>2]=r;break}f=c[j>>2]|0;if((e|0)==31)e=0;else e=25-(e>>>1)|0;k:do if((c[f+4>>2]&-8|0)!=(d|0)){e=d< >>31<<2)+16|0;g=c[j>>2]|0;if(!g)break;if((c[g+4>>2]&-8|0)==(d|0)){h=g;break k}else{e=e<<1;f=g}}if(j>>>0<(c[4714]|0)>>>0)$a();else{c[j>>2]=r;c[r+24>>2]=f;c[r+12>>2]=r;c[r+8>>2]=r;break g}}else h=f;while(0);f=h+8|0;e=c[f>>2]|0;d=c[4714]|0;if(h>>>0 >>0)$a();if(e>>>0 >>0)$a();else{c[e+12>>2]=r;c[f>>2]=r;c[r+8>>2]=e;c[r+12>>2]=h;c[r+24>>2]=0;break}}}else{H=c[4714]|0;if((H|0)==0|p>>>0 >>0)c[4714]=p;c[4822]=p;c[4823]=q;c[4825]=0;c[4719]=c[4828];c[4718]=-1;d=0;do{H=d<<1;G=18880+(H<<2)|0;c[18880+(H+3<<2)>>2]=G;c[18880+(H+2<<2)>>2]=G;d=d+1|0}while((d|0)!=32);d=p+8|0;if(!(d&7))d=0;else d=0-d&7;H=q+ -40-d|0;c[4716]=p+d;c[4713]=H;c[p+(d+4)>>2]=H|1;c[p+(q+ -36)>>2]=40;c[4717]=c[4832]}while(0);d=c[4713]|0;if(d>>>0>a>>>0){G=d-a|0;c[4713]=G;H=c[4716]|0;c[4716]=H+a;c[H+(a+4)>>2]=G|1;c[H+4>>2]=a|3;H=H+8|0;i=b;return H|0}}c[(Xa()|0)>>2]=12;H=0;i=b;return H|0}function OB(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0;b=i;if(!a){i=b;return}q=a+ -8|0;r=c[4714]|0;if(q>>>0 >>0)$a();o=c[a+ -4>>2]|0;n=o&3;if((n|0)==1)$a();j=o&-8;h=a+(j+ -8)|0;do if(!(o&1)){u=c[q>>2]|0;if(!n){i=b;return}q=-8-u|0;o=a+q|0;n=u+j|0;if(o>>>0 >>0)$a();if((o|0)==(c[4715]|0)){d=a+(j+ -4)|0;if((c[d>>2]&3|0)!=3){d=o;m=n;break}c[4712]=n;c[d>>2]=c[d>>2]&-2;c[a+(q+4)>>2]=n|1;c[h>>2]=n;i=b;return}t=u>>>3;if(u>>>0<256){d=c[a+(q+8)>>2]|0;m=c[a+(q+12)>>2]|0;p=18880+(t<<1<<2)|0;if((d|0)!=(p|0)){if(d>>>0 >>0)$a();if((c[d+12>>2]|0)!=(o|0))$a()}if((m|0)==(d|0)){c[4710]=c[4710]&~(1< >>0 >>0)$a();p=m+8|0;if((c[p>>2]|0)==(o|0))s=p;else $a()}else s=m+8|0;c[d+12>>2]=m;c[s>>2]=d;d=o;m=n;break}s=c[a+(q+24)>>2]|0;t=c[a+(q+12)>>2]|0;do if((t|0)==(o|0)){u=a+(q+20)|0;t=c[u>>2]|0;if(!t){u=a+(q+16)|0;t=c[u>>2]|0;if(!t){p=0;break}}while(1){w=t+20|0;v=c[w>>2]|0;if(v){t=v;u=w;continue}v=t+16|0;w=c[v>>2]|0;if(!w)break;else{t=w;u=v}}if(u>>>0 >>0)$a();else{c[u>>2]=0;p=t;break}}else{u=c[a+(q+8)>>2]|0;if(u>>>0 >>0)$a();r=u+12|0;if((c[r>>2]|0)!=(o|0))$a();v=t+8|0;if((c[v>>2]|0)==(o|0)){c[r>>2]=t;c[v>>2]=u;p=t;break}else $a()}while(0);if(s){t=c[a+(q+28)>>2]|0;r=19144+(t<<2)|0;if((o|0)==(c[r>>2]|0)){c[r>>2]=p;if(!p){c[4711]=c[4711]&~(1< >>0<(c[4714]|0)>>>0)$a();r=s+16|0;if((c[r>>2]|0)==(o|0))c[r>>2]=p;else c[s+20>>2]=p;if(!p){d=o;m=n;break}}if(p>>>0<(c[4714]|0)>>>0)$a();c[p+24>>2]=s;r=c[a+(q+16)>>2]|0;do if(r)if(r>>>0<(c[4714]|0)>>>0)$a();else{c[p+16>>2]=r;c[r+24>>2]=p;break}while(0);q=c[a+(q+20)>>2]|0;if(q)if(q>>>0<(c[4714]|0)>>>0)$a();else{c[p+20>>2]=q;c[q+24>>2]=p;d=o;m=n;break}else{d=o;m=n}}else{d=o;m=n}}else{d=q;m=j}while(0);if(d>>>0>=h>>>0)$a();n=a+(j+ -4)|0;o=c[n>>2]|0;if(!(o&1))$a();if(!(o&2)){if((h|0)==(c[4716]|0)){w=(c[4713]|0)+m|0;c[4713]=w;c[4716]=d;c[d+4>>2]=w|1;if((d|0)!=(c[4715]|0)){i=b;return}c[4715]=0;c[4712]=0;i=b;return}if((h|0)==(c[4715]|0)){w=(c[4712]|0)+m|0;c[4712]=w;c[4715]=d;c[d+4>>2]=w|1;c[d+w>>2]=w;i=b;return}m=(o&-8)+m|0;n=o>>>3;do if(o>>>0>=256){l=c[a+(j+16)>>2]|0;q=c[a+(j|4)>>2]|0;do if((q|0)==(h|0)){o=a+(j+12)|0;n=c[o>>2]|0;if(!n){o=a+(j+8)|0;n=c[o>>2]|0;if(!n){k=0;break}}while(1){p=n+20|0;q=c[p>>2]|0;if(q){n=q;o=p;continue}p=n+16|0;q=c[p>>2]|0;if(!q)break;else{n=q;o=p}}if(o>>>0<(c[4714]|0)>>>0)$a();else{c[o>>2]=0;k=n;break}}else{o=c[a+j>>2]|0;if(o>>>0<(c[4714]|0)>>>0)$a();p=o+12|0;if((c[p>>2]|0)!=(h|0))$a();n=q+8|0;if((c[n>>2]|0)==(h|0)){c[p>>2]=q;c[n>>2]=o;k=q;break}else $a()}while(0);if(l){n=c[a+(j+20)>>2]|0;o=19144+(n<<2)|0;if((h|0)==(c[o>>2]|0)){c[o>>2]=k;if(!k){c[4711]=c[4711]&~(1< >>0<(c[4714]|0)>>>0)$a();n=l+16|0;if((c[n>>2]|0)==(h|0))c[n>>2]=k;else c[l+20>>2]=k;if(!k)break}if(k>>>0<(c[4714]|0)>>>0)$a();c[k+24>>2]=l;h=c[a+(j+8)>>2]|0;do if(h)if(h>>>0<(c[4714]|0)>>>0)$a();else{c[k+16>>2]=h;c[h+24>>2]=k;break}while(0);h=c[a+(j+12)>>2]|0;if(h)if(h>>>0<(c[4714]|0)>>>0)$a();else{c[k+20>>2]=h;c[h+24>>2]=k;break}}}else{k=c[a+j>>2]|0;a=c[a+(j|4)>>2]|0;j=18880+(n<<1<<2)|0;if((k|0)!=(j|0)){if(k>>>0<(c[4714]|0)>>>0)$a();if((c[k+12>>2]|0)!=(h|0))$a()}if((a|0)==(k|0)){c[4710]=c[4710]&~(1< >>0<(c[4714]|0)>>>0)$a();j=a+8|0;if((c[j>>2]|0)==(h|0))l=j;else $a()}else l=a+8|0;c[k+12>>2]=a;c[l>>2]=k}while(0);c[d+4>>2]=m|1;c[d+m>>2]=m;if((d|0)==(c[4715]|0)){c[4712]=m;i=b;return}}else{c[n>>2]=o&-2;c[d+4>>2]=m|1;c[d+m>>2]=m}h=m>>>3;if(m>>>0<256){a=h<<1;e=18880+(a<<2)|0;j=c[4710]|0;h=1< >2]|0;if(a>>>0<(c[4714]|0)>>>0)$a();else{f=h;g=a}}else{c[4710]=j|h;f=18880+(a+2<<2)|0;g=e}c[f>>2]=d;c[g+12>>2]=d;c[d+8>>2]=g;c[d+12>>2]=e;i=b;return}f=m>>>8;if(f)if(m>>>0>16777215)f=31;else{v=(f+1048320|0)>>>16&8;w=f< >>16&4;w=w<>>16&2;f=14-(u|v|f)+(w< >>15)|0;f=m>>>(f+7|0)&1|f<<1}else f=0;g=19144+(f<<2)|0;c[d+28>>2]=f;c[d+20>>2]=0;c[d+16>>2]=0;a=c[4711]|0;h=1< >2]|0;if((f|0)==31)f=0;else f=25-(f>>>1)|0;b:do if((c[g+4>>2]&-8|0)!=(m|0)){f=m< >>31<<2)+16|0;g=c[h>>2]|0;if(!g)break;if((c[g+4>>2]&-8|0)==(m|0)){e=g;break b}else{f=f<<1;a=g}}if(h>>>0<(c[4714]|0)>>>0)$a();else{c[h>>2]=d;c[d+24>>2]=a;c[d+12>>2]=d;c[d+8>>2]=d;break a}}else e=g;while(0);g=e+8|0;f=c[g>>2]|0;h=c[4714]|0;if(e>>>0 >>0)$a();if(f>>>0 >>0)$a();else{c[f+12>>2]=d;c[g>>2]=d;c[d+8>>2]=f;c[d+12>>2]=e;c[d+24>>2]=0;break}}else{c[4711]=a|h;c[g>>2]=d;c[d+24>>2]=g;c[d+12>>2]=d;c[d+8>>2]=d}while(0);w=(c[4718]|0)+ -1|0;c[4718]=w;if(!w)d=19296|0;else{i=b;return}while(1){d=c[d>>2]|0;if(!d)break;else d=d+8|0}c[4718]=-1;i=b;return}function PB(){}function QB(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0;f=b+e|0;if((e|0)>=20){d=d&255;i=b&3;h=d|d<<8|d<<16|d<<24;g=f&~3;if(i){i=b+4-i|0;while((b|0)<(i|0)){a[b>>0]=d;b=b+1|0}}while((b|0)<(g|0)){c[b>>2]=h;b=b+4|0}}while((b|0)<(f|0)){a[b>>0]=d;b=b+1|0}return b-e|0}function RB(b){b=b|0;var c=0;c=b;while(a[c>>0]|0)c=c+1|0;return c-b|0}function SB(b,d,e){b=b|0;d=d|0;e=e|0;var f=0;if((e|0)>=4096)return Ra(b|0,d|0,e|0)|0;f=b|0;if((b&3)==(d&3)){while(b&3){if(!e)return f|0;a[b>>0]=a[d>>0]|0;b=b+1|0;d=d+1|0;e=e-1|0}while((e|0)>=4){c[b>>2]=c[d>>2];b=b+4|0;d=d+4|0;e=e-4|0}}while((e|0)>0){a[b>>0]=a[d>>0]|0;b=b+1|0;d=d+1|0;e=e-1|0}return f|0}function TB(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return gb[a&63](b|0,c|0,d|0)|0}function UB(a,b,c){a=a|0;b=b|0;c=c|0;return ca(0,a|0,b|0,c|0)|0}function VB(a,b,c){a=a|0;b=b|0;c=c|0;return ca(1,a|0,b|0,c|0)|0}function WB(a,b,c){a=a|0;b=b|0;c=c|0;return ca(2,a|0,b|0,c|0)|0}function XB(a,b,c){a=a|0;b=b|0;c=c|0;return ca(3,a|0,b|0,c|0)|0}function YB(a,b,c){a=a|0;b=b|0;c=c|0;return ca(4,a|0,b|0,c|0)|0}function ZB(a,b,c){a=a|0;b=b|0;c=c|0;return ca(5,a|0,b|0,c|0)|0}function _B(a,b,c){a=a|0;b=b|0;c=c|0;return ca(6,a|0,b|0,c|0)|0}function $B(a,b,c){a=a|0;b=b|0;c=c|0;return ca(7,a|0,b|0,c|0)|0}function aC(a,b,c){a=a|0;b=b|0;c=c|0;return ca(8,a|0,b|0,c|0)|0}function bC(a,b,c){a=a|0;b=b|0;c=c|0;return ca(9,a|0,b|0,c|0)|0}function cC(a,b,c){a=a|0;b=b|0;c=c|0;return ca(10,a|0,b|0,c|0)|0}function dC(a,b,c){a=a|0;b=b|0;c=c|0;return ca(11,a|0,b|0,c|0)|0}function eC(a,b,c){a=a|0;b=b|0;c=c|0;return ca(12,a|0,b|0,c|0)|0}function fC(a,b,c){a=a|0;b=b|0;c=c|0;return ca(13,a|0,b|0,c|0)|0}function gC(a,b,c){a=a|0;b=b|0;c=c|0;return ca(14,a|0,b|0,c|0)|0}function hC(a,b,c){a=a|0;b=b|0;c=c|0;return ca(15,a|0,b|0,c|0)|0}function iC(a,b,c){a=a|0;b=b|0;c=c|0;return ca(16,a|0,b|0,c|0)|0}function jC(a,b,c){a=a|0;b=b|0;c=c|0;return ca(17,a|0,b|0,c|0)|0}function kC(a,b,c){a=a|0;b=b|0;c=c|0;return ca(18,a|0,b|0,c|0)|0}function lC(a,b,c){a=a|0;b=b|0;c=c|0;return ca(19,a|0,b|0,c|0)|0}function mC(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;hb[a&63](b|0,c|0,d|0,e|0,f|0)}function nC(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;ca(0,a|0,b|0,c|0,d|0,e|0)}function oC(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;ca(1,a|0,b|0,c|0,d|0,e|0)}function pC(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;ca(2,a|0,b|0,c|0,d|0,e|0)}function qC(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;ca(3,a|0,b|0,c|0,d|0,e|0)}function rC(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;ca(4,a|0,b|0,c|0,d|0,e|0)}function sC(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;ca(5,a|0,b|0,c|0,d|0,e|0)}function tC(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;ca(6,a|0,b|0,c|0,d|0,e|0)}function uC(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;ca(7,a|0,b|0,c|0,d|0,e|0)}function vC(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;ca(8,a|0,b|0,c|0,d|0,e|0)}function wC(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;ca(9,a|0,b|0,c|0,d|0,e|0)}function xC(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;ca(10,a|0,b|0,c|0,d|0,e|0)}function yC(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;ca(11,a|0,b|0,c|0,d|0,e|0)}function zC(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;ca(12,a|0,b|0,c|0,d|0,e|0)}function AC(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;ca(13,a|0,b|0,c|0,d|0,e|0)}function BC(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;ca(14,a|0,b|0,c|0,d|0,e|0)}function CC(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;ca(15,a|0,b|0,c|0,d|0,e|0)}function DC(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;ca(16,a|0,b|0,c|0,d|0,e|0)}function EC(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;ca(17,a|0,b|0,c|0,d|0,e|0)}function FC(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;ca(18,a|0,b|0,c|0,d|0,e|0)}function GC(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;ca(19,a|0,b|0,c|0,d|0,e|0)}function HC(a,b,c){a=a|0;b=b|0;c=+c;return+ib[a&63](b|0,+c)}function IC(a,b){a=a|0;b=+b;return+ca(0,a|0,+b)}function JC(a,b){a=a|0;b=+b;return+ca(1,a|0,+b)}function KC(a,b){a=a|0;b=+b;return+ca(2,a|0,+b)}function LC(a,b){a=a|0;b=+b;return+ca(3,a|0,+b)}function MC(a,b){a=a|0;b=+b;return+ca(4,a|0,+b)}function NC(a,b){a=a|0;b=+b;return+ca(5,a|0,+b)}function OC(a,b){a=a|0;b=+b;return+ca(6,a|0,+b)}function PC(a,b){a=a|0;b=+b;return+ca(7,a|0,+b)}function QC(a,b){a=a|0;b=+b;return+ca(8,a|0,+b)}function RC(a,b){a=a|0;b=+b;return+ca(9,a|0,+b)}function SC(a,b){a=a|0;b=+b;return+ca(10,a|0,+b)}function TC(a,b){a=a|0;b=+b;return+ca(11,a|0,+b)}function UC(a,b){a=a|0;b=+b;return+ca(12,a|0,+b)}function VC(a,b){a=a|0;b=+b;return+ca(13,a|0,+b)}function WC(a,b){a=a|0;b=+b;return+ca(14,a|0,+b)}function XC(a,b){a=a|0;b=+b;return+ca(15,a|0,+b)}function YC(a,b){a=a|0;b=+b;return+ca(16,a|0,+b)}function ZC(a,b){a=a|0;b=+b;return+ca(17,a|0,+b)}function _C(a,b){a=a|0;b=+b;return+ca(18,a|0,+b)}function $C(a,b){a=a|0;b=+b;return+ca(19,a|0,+b)}function aD(a,b){a=a|0;b=b|0;jb[a&127](b|0)}function bD(a){a=a|0;ca(0,a|0)}function cD(a){a=a|0;ca(1,a|0)}function dD(a){a=a|0;ca(2,a|0)}function eD(a){a=a|0;ca(3,a|0)}function fD(a){a=a|0;ca(4,a|0)}function gD(a){a=a|0;ca(5,a|0)}function hD(a){a=a|0;ca(6,a|0)}function iD(a){a=a|0;ca(7,a|0)}function jD(a){a=a|0;ca(8,a|0)}function kD(a){a=a|0;ca(9,a|0)}function lD(a){a=a|0;ca(10,a|0)}function mD(a){a=a|0;ca(11,a|0)}function nD(a){a=a|0;ca(12,a|0)}function oD(a){a=a|0;ca(13,a|0)}function pD(a){a=a|0;ca(14,a|0)}function qD(a){a=a|0;ca(15,a|0)}function rD(a){a=a|0;ca(16,a|0)}function sD(a){a=a|0;ca(17,a|0)}function tD(a){a=a|0;ca(18,a|0)}function uD(a){a=a|0;ca(19,a|0)}function vD(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=+f;return+kb[a&63](b|0,c|0,d|0,e|0,+f)}function wD(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=+e;return+ca(0,a|0,b|0,c|0,d|0,+e)}function xD(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=+e;return+ca(1,a|0,b|0,c|0,d|0,+e)}function yD(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=+e;return+ca(2,a|0,b|0,c|0,d|0,+e)}function zD(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=+e;return+ca(3,a|0,b|0,c|0,d|0,+e)}function AD(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=+e;return+ca(4,a|0,b|0,c|0,d|0,+e)}function BD(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=+e;return+ca(5,a|0,b|0,c|0,d|0,+e)}function CD(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=+e;return+ca(6,a|0,b|0,c|0,d|0,+e)}function DD(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=+e;return+ca(7,a|0,b|0,c|0,d|0,+e)}function ED(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=+e;return+ca(8,a|0,b|0,c|0,d|0,+e)}function FD(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=+e;return+ca(9,a|0,b|0,c|0,d|0,+e)}function GD(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=+e;return+ca(10,a|0,b|0,c|0,d|0,+e)}function HD(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=+e;return+ca(11,a|0,b|0,c|0,d|0,+e)}function ID(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=+e;return+ca(12,a|0,b|0,c|0,d|0,+e)}function JD(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=+e;return+ca(13,a|0,b|0,c|0,d|0,+e)}function KD(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=+e;return+ca(14,a|0,b|0,c|0,d|0,+e)}function LD(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=+e;return+ca(15,a|0,b|0,c|0,d|0,+e)}function MD(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=+e;return+ca(16,a|0,b|0,c|0,d|0,+e)}function ND(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=+e;return+ca(17,a|0,b|0,c|0,d|0,+e)}function OD(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=+e;return+ca(18,a|0,b|0,c|0,d|0,+e)}function PD(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=+e;return+ca(19,a|0,b|0,c|0,d|0,+e)}function QD(a,b,c){a=a|0;b=b|0;c=c|0;lb[a&127](b|0,c|0)}function RD(a,b){a=a|0;b=b|0;ca(0,a|0,b|0)}function SD(a,b){a=a|0;b=b|0;ca(1,a|0,b|0)}function TD(a,b){a=a|0;b=b|0;ca(2,a|0,b|0)}function UD(a,b){a=a|0;b=b|0;ca(3,a|0,b|0)}function VD(a,b){a=a|0;b=b|0;ca(4,a|0,b|0)}function WD(a,b){a=a|0;b=b|0;ca(5,a|0,b|0)}function XD(a,b){a=a|0;b=b|0;ca(6,a|0,b|0)}function YD(a,b){a=a|0;b=b|0;ca(7,a|0,b|0)}function ZD(a,b){a=a|0;b=b|0;ca(8,a|0,b|0)}function _D(a,b){a=a|0;b=b|0;ca(9,a|0,b|0)}function $D(a,b){a=a|0;b=b|0;ca(10,a|0,b|0)}function aE(a,b){a=a|0;b=b|0;ca(11,a|0,b|0)}function bE(a,b){a=a|0;b=b|0;ca(12,a|0,b|0)}function cE(a,b){a=a|0;b=b|0;ca(13,a|0,b|0)}function dE(a,b){a=a|0;b=b|0;ca(14,a|0,b|0)}function eE(a,b){a=a|0;b=b|0;ca(15,a|0,b|0)}function fE(a,b){a=a|0;b=b|0;ca(16,a|0,b|0)}function gE(a,b){a=a|0;b=b|0;ca(17,a|0,b|0)}function hE(a,b){a=a|0;b=b|0;ca(18,a|0,b|0)}function iE(a,b){a=a|0;b=b|0;ca(19,a|0,b|0)}function jE(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=+d;e=e|0;f=f|0;mb[a&63](b|0,c|0,+d,e|0,f|0)}function kE(a,b,c,d,e){a=a|0;b=b|0;c=+c;d=d|0;e=e|0;ca(0,a|0,b|0,+c,d|0,e|0)}function lE(a,b,c,d,e){a=a|0;b=b|0;c=+c;d=d|0;e=e|0;ca(1,a|0,b|0,+c,d|0,e|0)}function mE(a,b,c,d,e){a=a|0;b=b|0;c=+c;d=d|0;e=e|0;ca(2,a|0,b|0,+c,d|0,e|0)}function nE(a,b,c,d,e){a=a|0;b=b|0;c=+c;d=d|0;e=e|0;ca(3,a|0,b|0,+c,d|0,e|0)}function oE(a,b,c,d,e){a=a|0;b=b|0;c=+c;d=d|0;e=e|0;ca(4,a|0,b|0,+c,d|0,e|0)}function pE(a,b,c,d,e){a=a|0;b=b|0;c=+c;d=d|0;e=e|0;ca(5,a|0,b|0,+c,d|0,e|0)}function qE(a,b,c,d,e){a=a|0;b=b|0;c=+c;d=d|0;e=e|0;ca(6,a|0,b|0,+c,d|0,e|0)}function rE(a,b,c,d,e){a=a|0;b=b|0;c=+c;d=d|0;e=e|0;ca(7,a|0,b|0,+c,d|0,e|0)}function sE(a,b,c,d,e){a=a|0;b=b|0;c=+c;d=d|0;e=e|0;ca(8,a|0,b|0,+c,d|0,e|0)}function tE(a,b,c,d,e){a=a|0;b=b|0;c=+c;d=d|0;e=e|0;ca(9,a|0,b|0,+c,d|0,e|0)}function uE(a,b,c,d,e){a=a|0;b=b|0;c=+c;d=d|0;e=e|0;ca(10,a|0,b|0,+c,d|0,e|0)}function vE(a,b,c,d,e){a=a|0;b=b|0;c=+c;d=d|0;e=e|0;ca(11,a|0,b|0,+c,d|0,e|0)}function wE(a,b,c,d,e){a=a|0;b=b|0;c=+c;d=d|0;e=e|0;ca(12,a|0,b|0,+c,d|0,e|0)}function xE(a,b,c,d,e){a=a|0;b=b|0;c=+c;d=d|0;e=e|0;ca(13,a|0,b|0,+c,d|0,e|0)}function yE(a,b,c,d,e){a=a|0;b=b|0;c=+c;d=d|0;e=e|0;ca(14,a|0,b|0,+c,d|0,e|0)}function zE(a,b,c,d,e){a=a|0;b=b|0;c=+c;d=d|0;e=e|0;ca(15,a|0,b|0,+c,d|0,e|0)}function AE(a,b,c,d,e){a=a|0;b=b|0;c=+c;d=d|0;e=e|0;ca(16,a|0,b|0,+c,d|0,e|0)}function BE(a,b,c,d,e){a=a|0;b=b|0;c=+c;d=d|0;e=e|0;ca(17,a|0,b|0,+c,d|0,e|0)}function CE(a,b,c,d,e){a=a|0;b=b|0;c=+c;d=d|0;e=e|0;ca(18,a|0,b|0,+c,d|0,e|0)}function DE(a,b,c,d,e){a=a|0;b=b|0;c=+c;d=d|0;e=e|0;ca(19,a|0,b|0,+c,d|0,e|0)}function EE(a,b){a=a|0;b=b|0;return nb[a&63](b|0)|0}function FE(a){a=a|0;return ca(0,a|0)|0}function GE(a){a=a|0;return ca(1,a|0)|0}function HE(a){a=a|0;return ca(2,a|0)|0}function IE(a){a=a|0;return ca(3,a|0)|0}function JE(a){a=a|0;return ca(4,a|0)|0}function KE(a){a=a|0;return ca(5,a|0)|0}function LE(a){a=a|0;return ca(6,a|0)|0}function ME(a){a=a|0;return ca(7,a|0)|0}function NE(a){a=a|0;return ca(8,a|0)|0}function OE(a){a=a|0;return ca(9,a|0)|0}function PE(a){a=a|0;return ca(10,a|0)|0}function QE(a){a=a|0;return ca(11,a|0)|0}function RE(a){a=a|0;return ca(12,a|0)|0}function SE(a){a=a|0;return ca(13,a|0)|0}function TE(a){a=a|0;return ca(14,a|0)|0}function UE(a){a=a|0;return ca(15,a|0)|0}function VE(a){a=a|0;return ca(16,a|0)|0}function WE(a){a=a|0;return ca(17,a|0)|0}function XE(a){a=a|0;return ca(18,a|0)|0}function YE(a){a=a|0;return ca(19,a|0)|0}function ZE(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=+d;e=e|0;ob[a&63](b|0,c|0,+d,e|0)}function _E(a,b,c,d){a=a|0;b=b|0;c=+c;d=d|0;ca(0,a|0,b|0,+c,d|0)}function $E(a,b,c,d){a=a|0;b=b|0;c=+c;d=d|0;ca(1,a|0,b|0,+c,d|0)}function aF(a,b,c,d){a=a|0;b=b|0;c=+c;d=d|0;ca(2,a|0,b|0,+c,d|0)}function bF(a,b,c,d){a=a|0;b=b|0;c=+c;d=d|0;ca(3,a|0,b|0,+c,d|0)}function cF(a,b,c,d){a=a|0;b=b|0;c=+c;d=d|0;ca(4,a|0,b|0,+c,d|0)}function dF(a,b,c,d){a=a|0;b=b|0;c=+c;d=d|0;ca(5,a|0,b|0,+c,d|0)}function eF(a,b,c,d){a=a|0;b=b|0;c=+c;d=d|0;ca(6,a|0,b|0,+c,d|0)}function fF(a,b,c,d){a=a|0;b=b|0;c=+c;d=d|0;ca(7,a|0,b|0,+c,d|0)}function gF(a,b,c,d){a=a|0;b=b|0;c=+c;d=d|0;ca(8,a|0,b|0,+c,d|0)}function hF(a,b,c,d){a=a|0;b=b|0;c=+c;d=d|0;ca(9,a|0,b|0,+c,d|0)}function iF(a,b,c,d){a=a|0;b=b|0;c=+c;d=d|0;ca(10,a|0,b|0,+c,d|0)}function jF(a,b,c,d){a=a|0;b=b|0;c=+c;d=d|0;ca(11,a|0,b|0,+c,d|0)}function kF(a,b,c,d){a=a|0;b=b|0;c=+c;d=d|0;ca(12,a|0,b|0,+c,d|0)}function lF(a,b,c,d){a=a|0;b=b|0;c=+c;d=d|0;ca(13,a|0,b|0,+c,d|0)}function mF(a,b,c,d){a=a|0;b=b|0;c=+c;d=d|0;ca(14,a|0,b|0,+c,d|0)}function nF(a,b,c,d){a=a|0;b=b|0;c=+c;d=d|0;ca(15,a|0,b|0,+c,d|0)}function oF(a,b,c,d){a=a|0;b=b|0;c=+c;d=d|0;ca(16,a|0,b|0,+c,d|0)}function pF(a,b,c,d){a=a|0;b=b|0;c=+c;d=d|0;ca(17,a|0,b|0,+c,d|0)}function qF(a,b,c,d){a=a|0;b=b|0;c=+c;d=d|0;ca(18,a|0,b|0,+c,d|0)}function rF(a,b,c,d){a=a|0;b=b|0;c=+c;d=d|0;ca(19,a|0,b|0,+c,d|0)}function sF(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;pb[a&63](b|0,c|0,d|0)}function tF(a,b,c){a=a|0;b=b|0;c=c|0;ca(0,a|0,b|0,c|0)}function uF(a,b,c){a=a|0;b=b|0;c=c|0;ca(1,a|0,b|0,c|0)}function vF(a,b,c){a=a|0;b=b|0;c=c|0;ca(2,a|0,b|0,c|0)}function wF(a,b,c){a=a|0;b=b|0;c=c|0;ca(3,a|0,b|0,c|0)}function xF(a,b,c){a=a|0;b=b|0;c=c|0;ca(4,a|0,b|0,c|0)}function yF(a,b,c){a=a|0;b=b|0;c=c|0;ca(5,a|0,b|0,c|0)}function zF(a,b,c){a=a|0;b=b|0;c=c|0;ca(6,a|0,b|0,c|0)}function AF(a,b,c){a=a|0;b=b|0;c=c|0;ca(7,a|0,b|0,c|0)}function BF(a,b,c){a=a|0;b=b|0;c=c|0;ca(8,a|0,b|0,c|0)}function CF(a,b,c){a=a|0;b=b|0;c=c|0;ca(9,a|0,b|0,c|0)}function DF(a,b,c){a=a|0;b=b|0;c=c|0;ca(10,a|0,b|0,c|0)}function EF(a,b,c){a=a|0;b=b|0;c=c|0;ca(11,a|0,b|0,c|0)}function FF(a,b,c){a=a|0;b=b|0;c=c|0;ca(12,a|0,b|0,c|0)}function GF(a,b,c){a=a|0;b=b|0;c=c|0;ca(13,a|0,b|0,c|0)}function HF(a,b,c){a=a|0;b=b|0;c=c|0;ca(14,a|0,b|0,c|0)}function IF(a,b,c){a=a|0;b=b|0;c=c|0;ca(15,a|0,b|0,c|0)}function JF(a,b,c){a=a|0;b=b|0;c=c|0;ca(16,a|0,b|0,c|0)}function KF(a,b,c){a=a|0;b=b|0;c=c|0;ca(17,a|0,b|0,c|0)}function LF(a,b,c){a=a|0;b=b|0;c=c|0;ca(18,a|0,b|0,c|0)}function MF(a,b,c){a=a|0;b=b|0;c=c|0;ca(19,a|0,b|0,c|0)}function NF(a){a=a|0;qb[a&63]()}function OF(){ca(0)}function PF(){ca(1)}function QF(){ca(2)}function RF(){ca(3)}function SF(){ca(4)}function TF(){ca(5)}function UF(){ca(6)}function VF(){ca(7)}function WF(){ca(8)}function XF(){ca(9)}function YF(){ca(10)}function ZF(){ca(11)}function _F(){ca(12)}function $F(){ca(13)}function aG(){ca(14)}function bG(){ca(15)}function cG(){ca(16)}function dG(){ca(17)}function eG(){ca(18)}function fG(){ca(19)}function gG(a,b,c,d){a=a|0;b=b|0;c=c|0;d=+d;rb[a&63](b|0,c|0,+d)}function hG(a,b,c){a=a|0;b=b|0;c=+c;ca(0,a|0,b|0,+c)}function iG(a,b,c){a=a|0;b=b|0;c=+c;ca(1,a|0,b|0,+c)}function jG(a,b,c){a=a|0;b=b|0;c=+c;ca(2,a|0,b|0,+c)}function kG(a,b,c){a=a|0;b=b|0;c=+c;ca(3,a|0,b|0,+c)}function lG(a,b,c){a=a|0;b=b|0;c=+c;ca(4,a|0,b|0,+c)}function mG(a,b,c){a=a|0;b=b|0;c=+c;ca(5,a|0,b|0,+c)}function nG(a,b,c){a=a|0;b=b|0;c=+c;ca(6,a|0,b|0,+c)}function oG(a,b,c){a=a|0;b=b|0;c=+c;ca(7,a|0,b|0,+c)}function pG(a,b,c){a=a|0;b=b|0;c=+c;ca(8,a|0,b|0,+c)}function qG(a,b,c){a=a|0;b=b|0;c=+c;ca(9,a|0,b|0,+c)}function rG(a,b,c){a=a|0;b=b|0;c=+c;ca(10,a|0,b|0,+c)}function sG(a,b,c){a=a|0;b=b|0;c=+c;ca(11,a|0,b|0,+c)}function tG(a,b,c){a=a|0;b=b|0;c=+c;ca(12,a|0,b|0,+c)}function uG(a,b,c){a=a|0;b=b|0;c=+c;ca(13,a|0,b|0,+c)}function vG(a,b,c){a=a|0;b=b|0;c=+c;ca(14,a|0,b|0,+c)}function wG(a,b,c){a=a|0;b=b|0;c=+c;ca(15,a|0,b|0,+c)}function xG(a,b,c){a=a|0;b=b|0;c=+c;ca(16,a|0,b|0,+c)}function yG(a,b,c){a=a|0;b=b|0;c=+c;ca(17,a|0,b|0,+c)}function zG(a,b,c){a=a|0;b=b|0;c=+c;ca(18,a|0,b|0,+c)}function AG(a,b,c){a=a|0;b=b|0;c=+c;ca(19,a|0,b|0,+c)}function BG(a,b,c,d,e,f,g){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;sb[a&63](b|0,c|0,d|0,e|0,f|0,g|0)}function CG(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;ca(0,a|0,b|0,c|0,d|0,e|0,f|0)}function DG(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;ca(1,a|0,b|0,c|0,d|0,e|0,f|0)}function EG(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;ca(2,a|0,b|0,c|0,d|0,e|0,f|0)}function FG(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;ca(3,a|0,b|0,c|0,d|0,e|0,f|0)}function GG(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;ca(4,a|0,b|0,c|0,d|0,e|0,f|0)}function HG(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;ca(5,a|0,b|0,c|0,d|0,e|0,f|0)}function IG(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;ca(6,a|0,b|0,c|0,d|0,e|0,f|0)}function JG(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;ca(7,a|0,b|0,c|0,d|0,e|0,f|0)}function KG(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;ca(8,a|0,b|0,c|0,d|0,e|0,f|0)}function LG(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;ca(9,a|0,b|0,c|0,d|0,e|0,f|0)}function MG(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;ca(10,a|0,b|0,c|0,d|0,e|0,f|0)}function NG(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;ca(11,a|0,b|0,c|0,d|0,e|0,f|0)}function OG(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;ca(12,a|0,b|0,c|0,d|0,e|0,f|0)}function PG(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;ca(13,a|0,b|0,c|0,d|0,e|0,f|0)}function QG(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;ca(14,a|0,b|0,c|0,d|0,e|0,f|0)}function RG(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;ca(15,a|0,b|0,c|0,d|0,e|0,f|0)}function SG(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;ca(16,a|0,b|0,c|0,d|0,e|0,f|0)}function TG(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;ca(17,a|0,b|0,c|0,d|0,e|0,f|0)}function UG(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;ca(18,a|0,b|0,c|0,d|0,e|0,f|0)}function VG(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;ca(19,a|0,b|0,c|0,d|0,e|0,f|0)}function WG(a,b,c){a=a|0;b=b|0;c=c|0;return tb[a&63](b|0,c|0)|0}function XG(a,b){a=a|0;b=b|0;return ca(0,a|0,b|0)|0}function YG(a,b){a=a|0;b=b|0;return ca(1,a|0,b|0)|0}function ZG(a,b){a=a|0;b=b|0;return ca(2,a|0,b|0)|0}function _G(a,b){a=a|0;b=b|0;return ca(3,a|0,b|0)|0}function $G(a,b){a=a|0;b=b|0;return ca(4,a|0,b|0)|0}function aH(a,b){a=a|0;b=b|0;return ca(5,a|0,b|0)|0}function bH(a,b){a=a|0;b=b|0;return ca(6,a|0,b|0)|0}function cH(a,b){a=a|0;b=b|0;return ca(7,a|0,b|0)|0}function dH(a,b){a=a|0;b=b|0;return ca(8,a|0,b|0)|0}function eH(a,b){a=a|0;b=b|0;return ca(9,a|0,b|0)|0}function fH(a,b){a=a|0;b=b|0;return ca(10,a|0,b|0)|0}function gH(a,b){a=a|0;b=b|0;return ca(11,a|0,b|0)|0}function hH(a,b){a=a|0;b=b|0;return ca(12,a|0,b|0)|0}function iH(a,b){a=a|0;b=b|0;return ca(13,a|0,b|0)|0}function jH(a,b){a=a|0;b=b|0;return ca(14,a|0,b|0)|0}function kH(a,b){a=a|0;b=b|0;return ca(15,a|0,b|0)|0}function lH(a,b){a=a|0;b=b|0;return ca(16,a|0,b|0)|0}function mH(a,b){a=a|0;b=b|0;return ca(17,a|0,b|0)|0}function nH(a,b){a=a|0;b=b|0;return ca(18,a|0,b|0)|0}function oH(a,b){a=a|0;b=b|0;return ca(19,a|0,b|0)|0}function pH(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;return ub[a&63](b|0,c|0,d|0,e|0,f|0)|0}function qH(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;return ca(0,a|0,b|0,c|0,d|0,e|0)|0}function rH(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;return ca(1,a|0,b|0,c|0,d|0,e|0)|0}function sH(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;return ca(2,a|0,b|0,c|0,d|0,e|0)|0}function tH(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;return ca(3,a|0,b|0,c|0,d|0,e|0)|0}function uH(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;return ca(4,a|0,b|0,c|0,d|0,e|0)|0}function vH(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;return ca(5,a|0,b|0,c|0,d|0,e|0)|0}function wH(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;return ca(6,a|0,b|0,c|0,d|0,e|0)|0}function xH(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;return ca(7,a|0,b|0,c|0,d|0,e|0)|0}function yH(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;return ca(8,a|0,b|0,c|0,d|0,e|0)|0}function zH(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;return ca(9,a|0,b|0,c|0,d|0,e|0)|0}function AH(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;return ca(10,a|0,b|0,c|0,d|0,e|0)|0}function BH(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;return ca(11,a|0,b|0,c|0,d|0,e|0)|0}function CH(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;return ca(12,a|0,b|0,c|0,d|0,e|0)|0}function DH(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;return ca(13,a|0,b|0,c|0,d|0,e|0)|0}function EH(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;return ca(14,a|0,b|0,c|0,d|0,e|0)|0}function FH(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;return ca(15,a|0,b|0,c|0,d|0,e|0)|0}function GH(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;return ca(16,a|0,b|0,c|0,d|0,e|0)|0}function HH(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;return ca(17,a|0,b|0,c|0,d|0,e|0)|0}function IH(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;return ca(18,a|0,b|0,c|0,d|0,e|0)|0}function JH(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;return ca(19,a|0,b|0,c|0,d|0,e|0)|0}function KH(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;vb[a&63](b|0,c|0,d|0,e|0)}function LH(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;ca(0,a|0,b|0,c|0,d|0)}function MH(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;ca(1,a|0,b|0,c|0,d|0)}function NH(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;ca(2,a|0,b|0,c|0,d|0)}function OH(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;ca(3,a|0,b|0,c|0,d|0)}function PH(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;ca(4,a|0,b|0,c|0,d|0)}function QH(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;ca(5,a|0,b|0,c|0,d|0)}function RH(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;ca(6,a|0,b|0,c|0,d|0)}function SH(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;ca(7,a|0,b|0,c|0,d|0)}function TH(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;ca(8,a|0,b|0,c|0,d|0)}function UH(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;ca(9,a|0,b|0,c|0,d|0)}function VH(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;ca(10,a|0,b|0,c|0,d|0)}function WH(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;ca(11,a|0,b|0,c|0,d|0)}function XH(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;ca(12,a|0,b|0,c|0,d|0)}function YH(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;ca(13,a|0,b|0,c|0,d|0)}function ZH(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;ca(14,a|0,b|0,c|0,d|0)}function _H(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;ca(15,a|0,b|0,c|0,d|0)}function $H(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;ca(16,a|0,b|0,c|0,d|0)}function aI(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;ca(17,a|0,b|0,c|0,d|0)}function bI(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;ca(18,a|0,b|0,c|0,d|0)}function cI(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;ca(19,a|0,b|0,c|0,d|0)}function dI(a,b,c){a=a|0;b=b|0;c=c|0;$(0);return 0}function eI(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;$(1)}function fI(a,b){a=a|0;b=+b;$(2);return 0.0}function gI(a){a=a|0;$(3)}function hI(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=+e;$(4);return 0.0}function iI(a,b){a=a|0;b=b|0;$(5)}function jI(a,b,c,d,e){a=a|0;b=b|0;c=+c;d=d|0;e=e|0;$(6)}function kI(a){a=a|0;$(7);return 0}function lI(a,b,c,d){a=a|0;b=b|0;c=+c;d=d|0;$(8)}function mI(a,b,c){a=a|0;b=b|0;c=c|0;$(9)}function nI(){$(10)}function oI(){eb()}function pI(a,b,c){a=a|0;b=b|0;c=+c;$(11)}function qI(a,b,c,d,e,f){a=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,qI,SG,qI,TG,qI,UG,qI,VG,qI,KB,JB,IB,qI,qI,qI,qI,qI,qI,qI,qI,qI,qI,qI,qI,qI,qI,qI,qI,qI,qI,qI];var tb=[rI,rI,XG,rI,YG,rI,ZG,rI,_G,rI,$G,rI,aH,rI,bH,rI,cH,rI,dH,rI,eH,rI,fH,rI,gH,rI,hH,rI,iH,rI,jH,rI,kH,rI,lH,rI,mH,rI,nH,rI,oH,rI,zw,Iw,ix,px,vx,Bx,lz,vz,Fz,Sz,bA,lA,wA,GA,QA,_A,Zx,rI,rI,rI,rI,rI];var ub=[sI,sI,qH,sI,rH,sI,sH,sI,tH,sI,uH,sI,vH,sI,wH,sI,xH,sI,yH,sI,zH,sI,AH,sI,BH,sI,CH,sI,DH,sI,EH,sI,FH,sI,GH,sI,HH,sI,IH,sI,JH,sI,mx,sx,yx,Ex,Hy,$y,ez,Ry,Wy,xy,Cy,sI,sI,sI,sI,sI,sI,sI,sI,sI,sI,sI];var vb=[tI,tI,LH,tI,MH,tI,NH,tI,OH,tI,PH,tI,QH,tI,RH,tI,SH,tI,TH,tI,UH,tI,VH,tI,WH,tI,XH,tI,YH,tI,ZH,tI,_H,tI,$H,tI,aI,tI,bI,tI,cI,tI,$v,aw,dw,nx,tx,zx,Fx,zy,Ey,Jy,Ty,Yy,bz,gz,xB,yB,AB,tI,tI,tI,tI,tI];return{_emscripten_bind_b2WheelJoint_GetSpringDampingRatio_0:hq,_emscripten_bind_b2ContactEdge_set_next_1:Cu,_emscripten_bind_b2ChainShape_get_m_count_0:pn,_emscripten_bind_b2Fixture_SetFriction_1:Jc,_emscripten_bind_b2Shape_ComputeAABB_3:Cr,_emscripten_bind_b2FrictionJointDef_set_userData_1:Bg,_emscripten_bind_b2Vec3_get_z_0:Jf,_emscripten_bind_b2World_IsLocked_0:ei,_emscripten_bind_b2Draw_GetFlags_0:Ck,_emscripten_bind_b2FrictionJoint_IsActive_0:vt,_emscripten_bind_b2Color_set_g_1:Kn,_emscripten_bind_b2WheelJointDef_get_frequencyHz_0:Dj,_emscripten_bind_b2RopeJointDef_set_localAnchorA_1:Gu,_emscripten_bind_b2PolygonShape_RayCast_4:vo,_emscripten_bind_b2World_GetTreeBalance_0:ai,_emscripten_bind_b2PrismaticJointDef_get_upperTranslation_0:fh,_emscripten_bind_JSDraw_DrawSolidCircle_4:Qp,_emscripten_bind_b2RevoluteJoint_GetLocalAnchorA_0:Rt,_emscripten_bind_b2FixtureDef_get_filter_0:lg,_emscripten_bind_b2FrictionJointDef_get_type_0:yg,_emscripten_bind_b2RevoluteJoint_GetMotorTorque_1:fu,_emscripten_bind_b2MotorJointDef_set_type_1:hv,_emscripten_bind_b2RayCastInput_get_p1_0:fo,_emscripten_bind_b2EdgeShape_set_m_hasVertex3_1:_o,_emscripten_bind_b2JointEdge_set_joint_1:Pl,_emscripten_enum_b2ShapeType_e_polygon:tv,_emscripten_bind_b2Fixture___destroy___0:Oc,_emscripten_bind_b2PulleyJoint_SetUserData_1:Lq,_emscripten_bind_b2World_SetWarmStarting_1:Rh,_emscripten_bind_JSDraw_DrawCircle_3:Pp,_emscripten_bind_b2WeldJoint_IsActive_0:Il,_emscripten_bind_b2DestructionListener___destroy___0:yt,_emscripten_bind_b2BodyDef_set_type_1:ue,_emscripten_bind_b2ChainShape_ComputeAABB_3:ln,_emscripten_bind_b2MouseJointDef_set_type_1:Zq,_emscripten_bind_b2JointEdge_get_prev_0:Ql,_emscripten_bind_b2WeldJoint_GetReactionTorque_1:El,_emscripten_bind_b2MotorJointDef_get_maxForce_0:av,_emscripten_bind_b2DistanceJointDef_get_userData_0:Xr,_emscripten_bind_b2BodyDef_get_position_0:ve,_emscripten_bind_b2RopeJointDef_get_localAnchorB_0:Hu,_emscripten_bind_b2RevoluteJointDef_set_userData_1:Ep,_emscripten_bind_b2RevoluteJointDef_get_localAnchorA_0:jp,_emscripten_bind_b2World_SetContactFilter_1:Ah,_emscripten_bind_b2WheelJointDef_get_collideConnected_0:Pj,_emscripten_bind_b2MouseJointDef_set_userData_1:$q,_emscripten_bind_JSDraw_DrawSegment_3:Rp,_emscripten_bind_b2FixtureDef_set_restitution_1:gg,_emscripten_bind_b2MotorJointDef_Initialize_2:Xu,_emscripten_bind_b2EdgeShape_GetChildCount_0:Ko,_emscripten_bind_b2Mat33_get_ey_0:nc,_emscripten_bind_b2MouseJoint_IsActive_0:qd,_emscripten_bind_b2World_GetGravity_0:di,_emscripten_bind_b2World_DrawDebugData_0:Jh,_emscripten_bind_b2Profile_get_broadphase_0:me,_emscripten_bind_b2PulleyJointDef_get_bodyA_0:nm,_emscripten_bind_b2PrismaticJoint_SetLimits_2:ui,_emscripten_bind_b2PulleyJointDef_get_localAnchorA_0:$l,_emscripten_bind_b2DistanceJoint_GetAnchorA_0:Wb,_emscripten_bind_b2ManifoldPoint_set_tangentImpulse_1:Bm,_emscripten_bind_b2PolygonShape_get_m_count_0:Ao,_emscripten_bind_b2RopeJointDef_set_collideConnected_1:Uu,_emscripten_bind_b2CircleShape_set_m_p_1:_j,_emscripten_bind_JSContactListener_EndContact_1:aj,_emscripten_bind_b2MassData_set_mass_1:Ik,_emscripten_bind_b2Vec3_get_x_0:Ff,_emscripten_bind_b2ChainShape_CreateChain_2:cn,_emscripten_bind_b2Color_get_r_0:Hn,_emscripten_bind_b2World_DestroyBody_1:Eh,_emscripten_bind_b2Profile_get_solvePosition_0:ke,_emscripten_bind_b2Shape_RayCast_4:Br,_emscripten_bind_b2PulleyJoint_GetGroundAnchorA_0:vq,_emscripten_bind_b2Mat33___destroy___0:rc,_emscripten_bind_b2GearJoint_GetReactionTorque_1:jl,_emscripten_bind_b2WeldJointDef_set_collideConnected_1:zk,_emscripten_bind_b2Manifold_get_type_0:Og,_emscripten_bind_b2RevoluteJoint___destroy___0:su,_emscripten_bind_b2PulleyJointDef_b2PulleyJointDef_0:Vl,_emscripten_bind_b2World_SetAutoClearForces_1:fi,_emscripten_bind_b2PrismaticJointDef_set_lowerTranslation_1:eh,_emscripten_bind_b2BodyDef_set_position_1:we,_emscripten_bind_b2Transform_get_q_0:Ym,_emscripten_bind_b2FrictionJoint_GetMaxForce_0:it,_emscripten_bind_b2PolygonShape_set_m_count_1:Bo,_emscripten_bind_b2Contact_GetNext_0:lr,_emscripten_bind_b2MotorJointDef_set_userData_1:jv,_emscripten_bind_b2EdgeShape_get_m_type_0:$o,_emscripten_bind_b2GearJoint_GetJoint1_0:$k,_emscripten_bind_b2WheelJoint_GetMaxMotorTorque_0:cq,_emscripten_bind_b2MotorJoint_SetMaxTorque_1:Ld,_emscripten_bind_b2GearJoint_GetAnchorA_0:gl,_emscripten_enum_b2JointType_e_mouseJoint:Bv,_emscripten_bind_b2MouseJointDef_set_bodyA_1:br,_emscripten_enum_b2JointType_e_revoluteJoint:xv,_emscripten_bind_b2World_SetContactListener_1:Bh,_emscripten_bind_b2Body_IsAwake_0:Us,_emscripten_bind_b2JointEdge_set_other_1:Nl,_emscripten_bind_b2RevoluteJoint_IsMotorEnabled_0:$t,_emscripten_bind_b2MouseJointDef_set_target_1:Rq,_emscripten_bind_b2MotorJoint_SetCorrectionFactor_1:Nd,_emscripten_bind_b2FixtureDef_get_density_0:hg,_emscripten_bind_b2ChainShape_set_m_vertices_1:on,_emscripten_bind_b2ChainShape_get_m_vertices_0:nn,_emscripten_bind_b2Rot_set_s_1:Bd,_emscripten_bind_b2MotorJointDef_get_collideConnected_0:ov,_emscripten_bind_b2RevoluteJoint_GetUpperLimit_0:Zt,_emscripten_bind_b2WheelJointDef_set_bodyB_1:Oj,_emscripten_bind_b2WheelJointDef_set_enableMotor_1:yj,_emscripten_bind_b2FixtureDef_get_userData_0:bg,_emscripten_bind_b2FrictionJointDef_set_collideConnected_1:Hg,_emscripten_bind_b2PrismaticJointDef_get_lowerTranslation_0:dh,_emscripten_bind_b2GearJoint_GetCollideConnected_0:ol,_emscripten_bind_b2RevoluteJointDef_get_upperAngle_0:tp,_emscripten_bind_b2Body_ApplyAngularImpulse_2:vs,_emscripten_enum_b2JointType_e_frictionJoint:Fv,_emscripten_bind_b2RayCastOutput_set_fraction_1:Si,_emscripten_bind_b2Color_set_r_1:In,_emscripten_bind_b2DistanceJointDef_get_length_0:Pr,_emscripten_bind_b2PulleyJoint_GetBodyB_0:Eq,_emscripten_bind_b2WheelJointDef_set_type_1:Ij,_emscripten_bind_b2World_GetTreeQuality_0:bi,_emscripten_bind_b2BodyDef_set_gravityScale_1:Ue,_emscripten_bind_b2RopeJointDef_set_bodyB_1:Su,_emscripten_bind_b2PrismaticJoint_GetLowerLimit_0:si,_emscripten_bind_b2AABB_get_lowerBound_0:Vf,_emscripten_bind_b2WheelJoint_SetMotorSpeed_1:$p,_emscripten_bind_b2PrismaticJointDef_get_referenceAngle_0:$g,_emscripten_bind_b2Body_SetMassData_1:zs,_emscripten_bind_b2BodyDef_get_angularVelocity_0:Be,_emscripten_bind_b2WeldJoint_SetDampingRatio_1:vl,_emscripten_bind_b2PrismaticJointDef___destroy___0:xh,_emscripten_bind_b2Contact_IsTouching_0:ir,_emscripten_bind_b2Draw_SetFlags_1:Bk,_emscripten_bind_b2AABB_Contains_1:Tf,_emscripten_bind_b2DistanceJoint_GetNext_0:_b,_emscripten_bind_b2GearJoint_GetReactionForce_1:il,_emscripten_bind_b2PrismaticJoint_GetNext_0:Ji,_emscripten_bind_b2Filter_get_groupIndex_0:Uc,_emscripten_bind_b2PrismaticJoint_GetType_0:Ci,_emscripten_bind_b2Fixture_GetRestitution_0:Kc,_emscripten_bind_b2Transform_set_q_1:Zm,_emscripten_bind_b2PolygonShape___destroy___0:Go,_emscripten_bind_b2AABB_get_upperBound_0:Xf,_emscripten_bind_b2Transform___destroy___0:_m,_emscripten_bind_b2WeldJointDef_set_localAnchorB_1:jk,_emscripten_bind_b2CircleShape_set_m_radius_1:ck,_emscripten_bind_b2EdgeShape_set_m_hasVertex0_1:Yo,_emscripten_bind_b2RopeJoint_GetMaxLength_0:Rn,_emscripten_bind_b2GearJoint_GetUserData_0:ll,_emscripten_bind_b2MotorJoint_GetCollideConnected_0:_d,_emscripten_bind_b2GearJointDef_set_type_1:Ht,_emscripten_bind_b2DistanceJoint_SetDampingRatio_1:Rb,_emscripten_bind_b2Contact_GetFixtureA_0:mr,_emscripten_bind_b2QueryCallback___destroy___0:Fm,_emscripten_bind_b2PulleyJointDef_get_ratio_0:hm,_emscripten_bind_b2PrismaticJointDef_get_localAnchorB_0:Xg,_emscripten_bind_b2CircleShape_set_m_type_1:ak,_emscripten_enum_b2ShapeType_e_typeCount:vv,_emscripten_bind_b2Body_SetTransform_2:hs,_emscripten_bind_b2RopeJoint_GetAnchorB_0:Xn,_emscripten_bind_b2AABB_set_upperBound_1:Yf,_emscripten_bind_b2MouseJointDef_get_collideConnected_0:er,_emscripten_bind_b2ContactImpulse___destroy___0:Kb,_emscripten_bind_b2PrismaticJointDef_b2PrismaticJointDef_0:Tg,_emscripten_bind_b2Vec2_set_x_1:uf,_emscripten_bind_b2RayCastInput___destroy___0:lo,_emscripten_bind_b2Body_ApplyForceToCenter_2:ss,_emscripten_bind_JSDestructionListener_JSDestructionListener_0:Eb,_emscripten_bind_b2WheelJointDef_set_localAnchorA_1:sj,_emscripten_bind_b2FrictionJoint_GetBodyB_0:nt,_emscripten_bind_b2DistanceJointDef_get_bodyA_0:Zr,_emscripten_bind_b2WeldJointDef_set_bodyA_1:vk,_emscripten_bind_b2World_SetDestructionListener_1:zh,_emscripten_bind_b2RevoluteJoint_GetJointSpeed_0:Vt,_emscripten_bind_b2WheelJoint_GetLocalAnchorB_0:Vp,_emscripten_bind_b2JointDef___destroy___0:Rm,_emscripten_bind_b2PrismaticJointDef_Initialize_4:Ug,_emscripten_bind_b2FrictionJointDef_get_localAnchorA_0:qg,_emscripten_bind_b2CircleShape_GetChildCount_0:Uj,_emscripten_bind_b2BodyDef_get_bullet_0:Ne,_emscripten_bind_b2ManifoldPoint_get_localPoint_0:wm,_emscripten_bind_b2PrismaticJointDef_get_type_0:nh,_emscripten_bind_b2MassData_get_center_0:Jk,_emscripten_bind_b2World_b2World_1:yh,_emscripten_bind_b2WheelJoint_GetReactionForce_1:nq,_emscripten_bind_b2World_SetSubStepping_1:Vh,_emscripten_bind_b2Vec2_op_add_1:lf,_emscripten_bind_b2Joint_GetBodyA_0:Pk,_emscripten_bind_b2Joint_GetCollideConnected_0:Zk,_emscripten_bind_b2MotorJoint_GetReactionTorque_1:Vd,_emscripten_bind_b2WheelJoint_IsMotorEnabled_0:Zp,_emscripten_bind_b2WheelJointDef___destroy___0:Rj,_emscripten_bind_b2Vec3_SetZero_0:Af,_emscripten_enum_b2JointType_e_pulleyJoint:Av,_emscripten_bind_b2ChainShape_get_m_nextVertex_0:tn,_emscripten_bind_b2Contact_SetEnabled_1:jr,_emscripten_bind_b2Shape_set_m_radius_1:Hr,_emscripten_bind_b2GearJointDef_get_joint2_0:Ct,_emscripten_bind_b2World_SetDebugDraw_1:Ch,_emscripten_bind_b2ContactID_set_key_1:Xi,_emscripten_bind_b2RevoluteJointDef_set_collideConnected_1:Kp,_malloc:NB,_emscripten_bind_b2World_GetProxyCount_0:Xh,_emscripten_bind_b2Vec2_Normalize_0:qf,_emscripten_bind_b2WheelJoint_GetJointSpeed_0:Yp,_emscripten_bind_b2FrictionJointDef_set_localAnchorA_1:rg,_emscripten_bind_b2GearJoint_GetRatio_0:cl,_emscripten_bind_JSRayCastCallback_JSRayCastCallback_0:We,_emscripten_bind_b2RayCastInput_set_p2_1:io,_emscripten_bind_b2RevoluteJointDef_get_motorSpeed_0:xp,_emscripten_bind_b2RayCastOutput_get_normal_0:Pi,_emscripten_bind_b2WeldJoint_GetBodyA_0:zl,_emscripten_bind_b2MotorJointDef_set_maxForce_1:bv,_emscripten_enum_b2DrawFlag_e_jointBit:Tv,_emscripten_bind_b2FixtureDef_get_isSensor_0:jg,_emscripten_bind_b2PulleyJointDef_set_bodyB_1:qm,_emscripten_bind_b2WheelJoint_EnableMotor_1:_p,_emscripten_bind_b2WheelJoint_GetLocalAnchorA_0:Up,_emscripten_bind_JSDraw_DrawSolidPolygon_3:Op,_emscripten_bind_b2Rot_Set_1:vd,_emscripten_bind_b2ContactFeature_set_typeB_1:ef,_emscripten_bind_JSDraw___destroy___0:Tp,_emscripten_bind_b2MouseJointDef___destroy___0:gr,_emscripten_bind_b2Mat33_Solve22_1:ic,_emscripten_bind_b2Profile_set_solvePosition_1:le,_emscripten_bind_b2ContactFilter___destroy___0:tu,_emscripten_bind_b2PulleyJointDef_get_localAnchorB_0:bm,_emscripten_bind_b2ChainShape_set_m_hasPrevVertex_1:wn,_emscripten_bind_b2PrismaticJoint___destroy___0:Oi,_emscripten_bind_b2World_CreateJoint_1:Fh,_emscripten_bind_b2Profile_get_solveTOI_0:oe,_emscripten_bind_b2ManifoldPoint_get_id_0:Cm,_emscripten_bind_b2Manifold_set_pointCount_1:Rg,_emscripten_bind_b2PrismaticJoint_GetMotorSpeed_0:yi,_emscripten_bind_b2Body_SetSleepingAllowed_1:Rs,_emscripten_bind_b2Rot_SetIdentity_0:wd,_emscripten_bind_b2PulleyJoint_GetGroundAnchorB_0:wq,_emscripten_bind_b2Vec3_op_add_1:Cf,_emscripten_bind_b2FrictionJoint_GetType_0:lt,_emscripten_bind_b2DistanceJointDef_set_dampingRatio_1:Ur,_emscripten_bind_b2MotorJoint_GetBodyA_0:Qd,_emscripten_bind_b2MouseJointDef_get_dampingRatio_0:Wq,_emscripten_bind_b2RevoluteJoint_GetMotorSpeed_0:cu,_emscripten_bind_b2ChainShape_set_m_type_1:An,_emscripten_bind_b2RevoluteJointDef_set_bodyB_1:Ip,_emscripten_bind_b2Body_GetGravityScale_0:Ls,_emscripten_bind_b2GearJointDef_get_bodyB_0:Mt,_emscripten_bind_b2Mat33_b2Mat33_0:ec,_emscripten_bind_b2MouseJointDef_get_bodyB_0:cr,_emscripten_bind_b2Shape_TestPoint_2:Ar,_emscripten_bind_b2Body_GetWorldVector_1:Cs,_emscripten_bind_b2WeldJointDef_get_frequencyHz_0:mk,_emscripten_bind_b2PolygonShape_Set_2:no,_emscripten_bind_b2Manifold___destroy___0:Sg,_emscripten_bind_b2PulleyJointDef_set_lengthA_1:em,_emscripten_bind_b2RevoluteJointDef_set_localAnchorA_1:kp,_emscripten_bind_b2GearJoint___destroy___0:pl,_emscripten_bind_b2RevoluteJoint_GetJointAngle_0:Ut,_emscripten_bind_b2PulleyJointDef_set_ratio_1:im,_emscripten_bind_b2JointEdge_set_prev_1:Rl,_emscripten_bind_b2PrismaticJoint_GetReactionTorque_1:Ii,_emscripten_bind_b2Body_GetLocalPoint_1:Ds,_emscripten_bind_b2PrismaticJoint_GetCollideConnected_0:Ni,_emscripten_bind_b2RopeJointDef_get_userData_0:Nu,_emscripten_bind_b2DistanceJoint_IsActive_0:bc,_emscripten_bind_b2MotorJointDef_set_angularOffset_1:$u,_emscripten_bind_b2Vec2_b2Vec2_2:hf,_emscripten_bind_b2PrismaticJoint_GetJointTranslation_0:oi,_emscripten_bind_b2Vec2_b2Vec2_0:gf,_emscripten_bind_b2DistanceJoint_GetAnchorB_0:Xb,_emscripten_bind_b2WheelJointDef_get_maxMotorTorque_0:zj,_emscripten_bind_b2Vec2_op_sub_1:mf,_emscripten_bind_b2CircleShape_get_m_p_0:Zj,_emscripten_bind_b2ContactFeature_get_indexA_0:Ze,_emscripten_bind_b2MotorJointDef_b2MotorJointDef_0:Wu,_emscripten_bind_b2ChainShape_set_m_nextVertex_1:un,_emscripten_bind_b2PulleyJoint_GetCollideConnected_0:Nq,_emscripten_bind_b2PulleyJoint_GetAnchorB_0:Gq,_emscripten_bind_b2Mat33_get_ex_0:lc,_emscripten_bind_b2Body_GetPosition_0:js,_emscripten_bind_b2Profile___destroy___0:qe,_emscripten_bind_b2ContactEdge_get_prev_0:zu,_emscripten_bind_b2DistanceJoint_SetFrequency_1:Pb,_emscripten_enum_b2ShapeType_e_chain:uv,_emscripten_enum_b2ContactFeatureType_e_vertex:Xv,_emscripten_bind_b2Fixture_GetBody_0:zc,_emscripten_bind_b2ContactImpulse_set_count_1:Jb,_emscripten_bind_b2PulleyJointDef_get_bodyB_0:pm,_emscripten_bind_b2Rot_set_c_1:Dd,_emscripten_bind_b2RevoluteJoint_GetReactionTorque_1:mu,_emscripten_bind_b2Fixture_SetDensity_1:Gc,_emscripten_bind_b2ChainShape_get_m_prevVertex_0:rn,_emscripten_bind_b2World_ClearForces_0:Ih,_emscripten_bind_b2Vec3___destroy___0:Lf,_emscripten_bind_b2WheelJointDef_set_userData_1:Kj,_emscripten_bind_b2WeldJoint_SetFrequency_1:tl,_emscripten_bind_b2WheelJoint_SetSpringFrequencyHz_1:eq,_emscripten_bind_b2Body_SetFixedRotation_1:Xs,_emscripten_bind_b2RayCastOutput_set_normal_1:Qi,_emscripten_bind_b2DistanceJoint_GetDampingRatio_0:Sb,_emscripten_bind_b2WeldJointDef_set_userData_1:tk,_emscripten_bind_b2Body_GetMassData_1:ys,_emscripten_bind_b2MouseJointDef_set_bodyB_1:dr,_emscripten_bind_b2CircleShape_GetType_0:Tj,_emscripten_bind_b2PolygonShape_GetType_0:so,_emscripten_bind_b2PrismaticJointDef_set_referenceAngle_1:ah,_emscripten_bind_b2RopeJointDef_get_collideConnected_0:Tu,_emscripten_bind_b2FixtureDef_set_filter_1:mg,_emscripten_bind_b2PulleyJointDef_get_groundAnchorA_0:Xl,_emscripten_bind_b2Fixture_SetFilterData_1:wc,_emscripten_bind_b2FrictionJointDef_get_userData_0:Ag,_emscripten_bind_b2RayCastCallback___destroy___0:ql,_emscripten_bind_b2PulleyJointDef_set_localAnchorA_1:am,_emscripten_bind_b2MotorJoint_SetUserData_1:Yd,_emscripten_bind_b2PrismaticJoint_GetLocalAxisA_0:mi,_emscripten_bind_b2MotorJoint_GetBodyB_0:Rd,_emscripten_bind_b2Transform_Set_2:Vm,_emscripten_bind_b2MouseJoint_SetTarget_1:_c,_emscripten_bind_b2RopeJointDef_get_localAnchorA_0:Fu,_emscripten_bind_b2ContactEdge_set_contact_1:yu,_emscripten_bind_b2RevoluteJointDef_get_enableLimit_0:pp,_emscripten_bind_b2CircleShape_get_m_radius_0:bk,_emscripten_bind_b2RevoluteJoint_GetUserData_0:ou,_emscripten_bind_b2Profile_set_solveTOI_1:pe,_emscripten_bind_b2PrismaticJointDef_set_type_1:oh,_emscripten_bind_b2GearJointDef_get_userData_0:It,_emscripten_bind_b2RevoluteJoint_GetAnchorB_0:ku,_emscripten_bind_b2FrictionJointDef___destroy___0:Ig,_emscripten_bind_b2PrismaticJoint_GetReactionForce_1:Hi,_emscripten_bind_b2Transform_b2Transform_0:Sm,_emscripten_bind_b2MouseJoint_GetCollideConnected_0:rd,_emscripten_enum_b2LimitState_e_equalLimits:Lv,_emscripten_bind_b2ManifoldPoint_set_normalImpulse_1:zm,_emscripten_bind_b2Body_GetContactList_0:$s,_emscripten_bind_b2Body_IsFixedRotation_0:Ys,_emscripten_enum_b2DrawFlag_e_shapeBit:Sv,_emscripten_bind_b2Contact_GetFriction_0:rr,_emscripten_bind_b2WheelJoint_GetAnchorB_0:mq,_emscripten_bind_b2DistanceJointDef_set_length_1:Qr,_emscripten_bind_b2DistanceJoint_GetLocalAnchorB_0:Mb,_emscripten_bind_b2FrictionJoint_GetLocalAnchorB_0:gt,_emscripten_bind_b2Mat33_set_ey_1:oc,_emscripten_bind_b2DistanceJointDef_get_type_0:Vr,_emscripten_bind_b2Draw_ClearFlags_1:Ek,_emscripten_bind_b2Body_IsActive_0:Ws,_emscripten_bind_b2Contact_ResetRestitution_0:vr,_emscripten_bind_b2World_GetAllowSleeping_0:Qh,_emscripten_bind_b2ManifoldPoint_b2ManifoldPoint_0:vm,_emscripten_bind_b2PrismaticJointDef_set_maxMotorForce_1:kh,_emscripten_bind_b2GearJointDef_set_bodyA_1:Lt,_emscripten_bind_b2RevoluteJointDef_set_enableMotor_1:wp,_emscripten_bind_b2PulleyJoint_IsActive_0:Mq,_emscripten_bind_b2MouseJoint_GetNext_0:nd,_emscripten_bind_b2Transform_set_p_1:Xm,_emscripten_bind_b2EdgeShape_set_m_vertex0_1:Uo,_emscripten_bind_b2PulleyJointDef_get_lengthB_0:fm,_emscripten_bind_b2WeldJoint_SetUserData_1:Hl,_emscripten_bind_b2Fixture_SetSensor_1:uc,_emscripten_bind_b2GearJointDef_get_joint1_0:At,_emscripten_bind_b2PrismaticJoint_GetMotorForce_1:Bi,_emscripten_bind_b2DistanceJoint_GetBodyA_0:Ub,_emscripten_bind_b2GearJoint_IsActive_0:nl,_emscripten_bind_b2EdgeShape_get_m_vertex0_0:To,_emscripten_bind_b2World_GetBodyCount_0:Yh,_emscripten_bind_b2Fixture_GetMassData_1:Fc,_emscripten_bind_b2WeldJointDef_get_collideConnected_0:yk,_emscripten_bind_b2FrictionJoint_GetMaxTorque_0:kt,_emscripten_bind_b2EdgeShape_RayCast_4:Mo,_emscripten_bind_b2BodyDef_set_allowSleep_1:Ie,_emscripten_bind_b2PulleyJoint_GetType_0:Cq,_emscripten_bind_b2WeldJointDef_set_localAnchorA_1:hk,_emscripten_bind_b2Profile_set_step_1:be,_emscripten_bind_b2ContactEdge_set_other_1:wu,_emscripten_bind_b2PulleyJoint_GetCurrentLengthB_0:Bq,_emscripten_bind_b2Vec2_op_mul_1:nf,_emscripten_bind_b2PrismaticJointDef_get_localAnchorA_0:Vg,_emscripten_bind_b2EdgeShape___destroy___0:dp,_emscripten_bind_b2RopeJoint_GetAnchorA_0:Wn,_emscripten_bind_b2World_GetContactCount_0:_h,_emscripten_bind_b2MotorJointDef_set_correctionFactor_1:fv,_emscripten_bind_b2DistanceJointDef_set_userData_1:Yr,_emscripten_bind_b2ContactEdge_get_other_0:vu,_emscripten_bind_b2RopeJoint_GetLocalAnchorB_0:Pn,_emscripten_bind_b2PulleyJointDef___destroy___0:tm,_emscripten_bind_b2MouseJoint_GetBodyB_0:id,_emscripten_bind_b2PolygonShape_TestPoint_2:uo,_emscripten_bind_b2EdgeShape_set_m_vertex3_1:Wo,_emscripten_bind_b2PolygonShape_b2PolygonShape_0:mo,_emscripten_bind_b2GearJointDef_set_ratio_1:Ft,_emscripten_bind_b2WheelJoint_SetMaxMotorTorque_1:bq,_emscripten_bind_b2WheelJointDef_get_localAxisA_0:vj,_emscripten_bind_b2DistanceJointDef_get_localAnchorA_0:Lr,_emscripten_bind_b2MassData_set_center_1:Kk,_emscripten_bind_b2Contact_SetTangentSpeed_1:wr,_emscripten_bind_b2FrictionJointDef_get_localAnchorB_0:sg,_emscripten_bind_b2BodyDef_get_active_0:Pe,_emscripten_bind_b2Body_GetAngularVelocity_0:qs,_emscripten_bind_b2WeldJoint_GetBodyB_0:Al,_emscripten_bind_b2Draw___destroy___0:Fk,_emscripten_bind_b2WheelJointDef_Initialize_4:qj,_emscripten_bind_b2WeldJointDef_set_dampingRatio_1:pk,_emscripten_bind_b2Contact_IsEnabled_0:kr,_emscripten_bind_b2Joint_GetAnchorB_0:Sk,_emscripten_bind_b2PrismaticJointDef_get_userData_0:ph,_emscripten_bind_b2MotorJoint_GetMaxForce_0:Kd,_emscripten_bind_b2RevoluteJoint_GetBodyA_0:hu,_emscripten_bind_b2ContactID_set_cf_1:Vi,_emscripten_bind_b2Rot_GetXAxis_0:yd,_emscripten_bind_b2ContactEdge_set_prev_1:Au,_emscripten_bind_b2Vec3_Set_3:Bf,_emscripten_bind_b2Fixture_GetNext_0:Ac,_emscripten_bind_b2FrictionJointDef_set_localAnchorB_1:tg,_emscripten_bind_b2PulleyJoint_GetNext_0:Jq,_emscripten_bind_b2ChainShape_get_m_type_0:zn,_emscripten_bind_b2GearJointDef_get_bodyA_0:Kt,_emscripten_bind_b2DistanceJointDef_set_frequencyHz_1:Sr,_emscripten_bind_b2RevoluteJointDef_get_localAnchorB_0:lp,_emscripten_bind_b2RevoluteJointDef_get_referenceAngle_0:np,_emscripten_bind_JSContactFilter___destroy___0:gp,_memset:QB,_emscripten_bind_b2PolygonShape_get_m_radius_0:Eo,_emscripten_bind_b2RopeJoint_GetUserData_0:$n,_emscripten_bind_b2RopeJointDef_get_bodyA_0:Pu,_emscripten_bind_b2DistanceJointDef_get_dampingRatio_0:Tr,_emscripten_enum_b2ManifoldType_e_faceA:Nv,_emscripten_enum_b2ManifoldType_e_faceB:Ov,_emscripten_bind_b2RevoluteJointDef_get_bodyB_0:Hp,_emscripten_bind_b2FixtureDef_b2FixtureDef_0:_f,_emscripten_bind_b2PrismaticJoint_SetUserData_1:Li,_emscripten_bind_b2EdgeShape_get_m_hasVertex3_0:Zo,_emscripten_enum_b2ShapeType_e_edge:sv,_emscripten_bind_b2RevoluteJoint_GetMaxMotorTorque_0:eu,_emscripten_bind_b2BodyDef_set_active_1:Qe,_emscripten_bind_b2DistanceJointDef_set_localAnchorB_1:Or,_emscripten_bind_b2Body_GetWorldPoint_1:Bs,_emscripten_bind_b2ManifoldPoint_get_normalImpulse_0:ym,_emscripten_bind_JSContactFilter_ShouldCollide_2:fp,_emscripten_bind_b2Joint_GetReactionTorque_1:Uk,_emscripten_bind_b2RevoluteJointDef_set_type_1:Cp,_emscripten_bind_b2RopeJointDef_b2RopeJointDef_0:Eu,_emscripten_bind_b2BodyDef_get_linearDamping_0:De,_emscripten_bind_b2MotorJointDef_get_bodyB_0:mv,_emscripten_bind_b2World_Step_3:Hh,_emscripten_bind_b2CircleShape_RayCast_4:Wj,_emscripten_bind_b2Profile_get_step_0:ae,_emscripten_bind_b2Vec3_b2Vec3_0:yf,_emscripten_bind_b2Vec3_b2Vec3_3:zf,_emscripten_bind_b2PulleyJoint_GetLengthB_0:yq,_emscripten_bind_b2Filter_set_categoryBits_1:Rc,_emscripten_bind_b2MotorJoint_GetUserData_0:Xd,_emscripten_bind_b2PrismaticJoint_GetLocalAnchorA_0:ki,_emscripten_bind_b2Shape_get_m_type_0:Er,_emscripten_bind_b2MouseJoint_SetDampingRatio_1:ed,_emscripten_bind_b2World_GetAutoClearForces_0:gi,_emscripten_enum_b2ShapeType_e_circle:rv,_emscripten_bind_b2BodyDef_set_fixedRotation_1:Me,_emscripten_bind_b2RopeJoint_GetLimitState_0:Sn,_emscripten_bind_b2JointDef_get_collideConnected_0:Pm,_emscripten_bind_b2Body_Dump_0:et,_emscripten_bind_b2RevoluteJoint_GetLowerLimit_0:Yt,_emscripten_bind_b2Body_GetWorldCenter_0:ls,_emscripten_bind_JSContactListener___destroy___0:bj,_emscripten_bind_b2BodyDef_set_linearVelocity_1:Ae,_emscripten_bind_b2JointDef_set_collideConnected_1:Qm,_emscripten_bind_b2MotorJoint___destroy___0:$d,_emscripten_bind_b2Body_GetUserData_0:bt,_emscripten_bind_b2World_GetContinuousPhysics_0:Uh,_emscripten_bind_b2Fixture_RayCast_3:Ec,_emscripten_bind_b2JointDef_set_bodyA_1:Mm,_emscripten_bind_b2GearJointDef_get_collideConnected_0:Ot,_emscripten_bind_b2RopeJointDef_get_maxLength_0:Ju,_emscripten_bind_b2MouseJointDef_get_bodyA_0:ar,_emscripten_bind_b2Body_SetBullet_1:Ps,_emscripten_bind_b2DistanceJoint_GetType_0:Tb,_emscripten_bind_b2FixtureDef_get_restitution_0:fg,_emscripten_bind_b2Fixture_GetType_0:sc,_emscripten_bind_b2PulleyJointDef_set_localAnchorB_1:cm,_emscripten_bind_b2RevoluteJoint_GetBodyB_0:iu,_emscripten_bind_b2Profile_set_solveInit_1:he,_emscripten_bind_b2RopeJointDef_set_type_1:Mu,_emscripten_bind_b2PrismaticJointDef_get_bodyB_0:th,_emscripten_bind_b2Body_SetLinearVelocity_1:ns,_emscripten_bind_b2RevoluteJoint_GetReferenceAngle_0:Tt,_emscripten_bind_b2PulleyJointDef_get_userData_0:lm,_emscripten_bind_b2PrismaticJointDef_set_bodyB_1:uh,_emscripten_bind_b2FrictionJointDef_b2FrictionJointDef_0:og,_free:OB,_emscripten_bind_b2PulleyJoint_GetCurrentLengthA_0:Aq,_emscripten_bind_b2Manifold_get_localNormal_0:Kg,_emscripten_bind_b2AABB_RayCast_2:Uf,_emscripten_bind_b2FixtureDef_set_isSensor_1:kg,_emscripten_bind_b2RopeJoint_GetBodyB_0:Vn,_emscripten_bind_b2PrismaticJoint_GetAnchorA_0:Fi,_emscripten_bind_b2ChainShape_set_m_count_1:qn,_emscripten_bind_b2PrismaticJoint_IsMotorEnabled_0:vi,_emscripten_bind_b2WeldJoint_GetFrequency_0:ul,_emscripten_bind_b2Joint_GetUserData_0:Wk,_emscripten_bind_b2RevoluteJointDef_get_lowerAngle_0:rp,_emscripten_bind_b2Manifold_set_type_1:Pg,_emscripten_bind_b2DistanceJoint_GetLength_0:Ob,_emscripten_bind_b2RopeJointDef_set_maxLength_1:Ku,_emscripten_bind_b2ChainShape_TestPoint_2:jn,_emscripten_bind_b2PrismaticJoint_GetReferenceAngle_0:ni,_emscripten_bind_b2RayCastInput_get_p2_0:ho,_emscripten_bind_b2RevoluteJoint_EnableLimit_1:Xt,_emscripten_bind_b2BodyDef_set_angle_1:ye,_emscripten_bind_b2WeldJoint_GetUserData_0:Gl,_emscripten_bind_b2WheelJointDef_get_localAnchorA_0:rj,_emscripten_bind_b2PulleyJointDef_set_type_1:km,_emscripten_bind_b2Body_IsBullet_0:Qs,_emscripten_bind_b2MotorJointDef_set_bodyA_1:lv,_emscripten_bind_b2Mat33_GetSymInverse33_1:kc,_emscripten_bind_b2Body_ApplyLinearImpulse_3:us,_emscripten_bind_b2PolygonShape_ComputeMass_2:xo,_emscripten_bind_b2WeldJoint_GetLocalAnchorA_0:rl,_emscripten_bind_b2MouseJoint_SetFrequency_1:cd,_emscripten_bind_b2EdgeShape_get_m_vertex1_0:Po,_emscripten_bind_b2BodyDef_set_awake_1:Ke,_emscripten_bind_b2Vec2_get_y_0:vf,_emscripten_bind_b2Body_CreateFixture_1:es,_emscripten_bind_b2Body_CreateFixture_2:fs,_emscripten_bind_b2PulleyJoint_GetUserData_0:Kq,_emscripten_bind_b2Body_SetActive_1:Vs,_emscripten_bind_b2Fixture_GetUserData_0:Bc,_emscripten_bind_b2PolygonShape_ComputeAABB_3:wo,_emscripten_bind_b2ContactFeature_get_typeA_0:bf,_emscripten_bind_b2MouseJoint_GetReactionForce_1:ld,_emscripten_bind_b2FrictionJoint_GetReactionTorque_1:rt,_emscripten_bind_b2EdgeShape_TestPoint_2:Lo,_memcpy:SB,_emscripten_bind_b2PolygonShape_get_m_centroid_0:yo,_emscripten_bind_b2ChainShape___destroy___0:Dn,_emscripten_bind_b2GearJoint_SetUserData_1:ml,_emscripten_bind_b2Vec3_set_z_1:Kf,_emscripten_bind_b2PrismaticJointDef_set_enableLimit_1:ch,_emscripten_bind_b2DistanceJoint_GetFrequency_0:Qb,_emscripten_bind_b2Body_SetGravityScale_1:Ms,_emscripten_enum_b2ContactFeatureType_e_face:Yv,_emscripten_bind_b2AABB_GetPerimeter_0:Qf,_emscripten_bind_b2PulleyJointDef_get_lengthA_0:dm,_emscripten_bind_b2Vec3_set_x_1:Gf,_emscripten_bind_b2PulleyJointDef_get_type_0:jm,_emscripten_bind_JSDestructionListener_SayGoodbyeJoint_1:Fb,_emscripten_bind_b2Shape___destroy___0:Ir,_strlen:RB,_emscripten_bind_b2Color_set_b_1:Mn,_emscripten_bind_b2Joint_GetReactionForce_1:Tk,_emscripten_bind_b2FixtureDef_set_friction_1:eg,_emscripten_bind_b2ContactID___destroy___0:Yi,_emscripten_bind_b2EdgeShape_get_m_hasVertex0_0:Xo,_emscripten_bind_JSRayCastCallback_ReportFixture_4:Xe,_emscripten_bind_b2MotorJointDef_get_linearOffset_0:Yu,_emscripten_bind_b2Profile_set_solveVelocity_1:je,_emscripten_bind_b2PrismaticJoint_GetAnchorB_0:Gi,_emscripten_bind_b2WeldJointDef_b2WeldJointDef_0:ek,_emscripten_enum_b2BodyType_b2_staticBody:Pv,_emscripten_bind_b2RevoluteJointDef_set_upperAngle_1:up,_emscripten_bind_b2RevoluteJointDef_get_type_0:Bp,_emscripten_bind_b2GearJointDef_get_type_0:Gt,_emscripten_bind_b2ChainShape_GetType_0:gn,_emscripten_bind_b2RayCastInput_get_maxFraction_0:jo,_emscripten_bind_b2GearJoint_GetBodyA_0:el,_emscripten_bind_b2Body_GetLocalVector_1:Es,_emscripten_bind_b2PrismaticJoint_EnableLimit_1:ri,_emscripten_bind_b2FrictionJointDef_get_maxForce_0:ug,_emscripten_bind_b2BodyDef_set_angularVelocity_1:Ce,_emscripten_bind_b2Body_SetLinearDamping_1:Is,_emscripten_bind_b2WheelJoint_GetBodyB_0:kq,_emscripten_bind_b2Color___destroy___0:Nn,_emscripten_bind_b2PrismaticJoint_IsActive_0:Mi,_emscripten_bind_b2Filter_get_categoryBits_0:Qc,_emscripten_enum_b2JointType_e_weldJoint:Ev,_emscripten_bind_b2World_SetContinuousPhysics_1:Th,_emscripten_bind_b2MouseJointDef_get_target_0:Qq,_emscripten_bind_b2Manifold_b2Manifold_0:Jg,_emscripten_bind_b2PulleyJointDef_set_userData_1:mm,_emscripten_bind_b2FrictionJointDef_set_maxForce_1:vg,_emscripten_bind_b2DistanceJointDef_b2DistanceJointDef_0:Jr,_emscripten_bind_b2PolygonShape_set_m_centroid_1:zo,_emscripten_bind_b2Mat33_GetInverse22_1:jc,_emscripten_bind_b2PolygonShape_SetAsBox_4:po,_emscripten_bind_b2EdgeShape_get_m_vertex2_0:Ro,_emscripten_bind_b2WheelJoint_GetReactionTorque_1:oq,_emscripten_bind_b2RevoluteJointDef_b2RevoluteJointDef_0:hp,_emscripten_bind_b2ContactFeature_set_typeA_1:cf,_emscripten_bind_b2Fixture_Dump_1:Nc,_emscripten_bind_b2World_GetJointList_0:Nh,_emscripten_bind_b2Manifold_set_localPoint_1:Ng,_emscripten_bind_b2DistanceJoint_SetUserData_1:ac,_emscripten_bind_b2BodyDef_set_bullet_1:Oe,_emscripten_bind_b2RayCastOutput___destroy___0:Ti,___cxa_can_catch:LB,_emscripten_bind_b2WheelJoint_GetNext_0:pq,_emscripten_bind_b2AABB_GetCenter_0:Of,_emscripten_bind_b2Filter_set_groupIndex_1:Vc,_emscripten_bind_b2JointDef_b2JointDef_0:Gm,_emscripten_bind_b2CircleShape_b2CircleShape_0:Sj,_emscripten_bind_b2GearJointDef_b2GearJointDef_0:zt,_emscripten_bind_b2JointDef_get_bodyB_0:Nm,_emscripten_bind_b2DistanceJoint_GetReactionForce_1:Yb,_emscripten_bind_b2PrismaticJoint_GetJointSpeed_0:pi,_emscripten_bind_b2PulleyJointDef_get_groundAnchorB_0:Zl,_emscripten_bind_b2Joint_GetAnchorA_0:Rk,_emscripten_bind_b2Contact_GetRestitution_0:ur,_emscripten_bind_b2ContactEdge_get_contact_0:xu,_emscripten_bind_b2RevoluteJointDef_get_userData_0:Dp,_emscripten_bind_b2Body_ApplyTorque_2:ts,_emscripten_bind_b2Fixture_GetAABB_1:Mc,_emscripten_bind_b2DistanceJointDef_Initialize_4:Kr,_emscripten_bind_b2PrismaticJointDef_set_collideConnected_1:wh,_emscripten_bind_b2PrismaticJointDef_set_localAxisA_1:_g,_emscripten_bind_b2Contact_GetTangentSpeed_0:xr,_emscripten_enum_b2LimitState_e_atLowerLimit:Jv,_emscripten_bind_b2ManifoldPoint_set_id_1:Dm,_emscripten_bind_b2WheelJointDef_get_bodyB_0:Nj,_emscripten_bind_b2WeldJoint_GetLocalAnchorB_0:sl,_emscripten_bind_b2RevoluteJointDef_set_localAnchorB_1:mp,_emscripten_bind_b2RevoluteJoint_GetType_0:gu,_emscripten_bind_b2Body_DestroyFixture_1:gs,_emscripten_bind_b2Profile_set_broadphase_1:ne,_emscripten_bind_b2WheelJointDef_get_localAnchorB_0:tj,_emscripten_bind_b2ContactImpulse_get_count_0:Ib,_emscripten_bind_b2World_GetJointCount_0:Zh,_emscripten_bind_b2WheelJoint_GetMotorSpeed_0:aq,_emscripten_bind_b2Body_GetAngularDamping_0:Js,_emscripten_bind_b2WheelJointDef_get_dampingRatio_0:Fj,_emscripten_bind_b2RayCastOutput_get_fraction_0:Ri,_emscripten_enum_b2ManifoldType_e_circles:Mv,_emscripten_bind_b2GearJoint_SetRatio_1:bl,_emscripten_bind_JSDraw_DrawPolygon_3:Np,_emscripten_bind_b2Filter___destroy___0:Wc,_emscripten_bind_b2JointEdge_set_next_1:Tl,___cxa_is_pointer_type:MB,_emscripten_bind_b2BodyDef_get_fixedRotation_0:Le,_emscripten_bind_b2PrismaticJointDef_set_motorSpeed_1:mh,_emscripten_bind_b2ChainShape_SetPrevVertex_1:dn,_emscripten_bind_b2MotorJoint_IsActive_0:Zd,_emscripten_bind_b2MouseJoint_GetReactionTorque_1:md,_emscripten_bind_b2MouseJoint_GetUserData_0:od,_emscripten_bind_b2WheelJoint_GetUserData_0:qq,_emscripten_bind_b2Vec3_op_sub_1:Df,_emscripten_bind_b2BodyDef_get_gravityScale_0:Te,_emscripten_bind_b2Shape_GetType_0:yr,_emscripten_bind_b2AABB_IsValid_0:Nf,_emscripten_bind_b2WheelJoint_GetBodyA_0:jq,_emscripten_bind_JSDraw_DrawTransform_1:Sp,_emscripten_bind_b2PulleyJoint_GetLengthA_0:xq,_emscripten_bind_b2DistanceJointDef_get_frequencyHz_0:Rr,_emscripten_bind_b2RevoluteJoint_SetMotorSpeed_1:bu,_emscripten_bind_b2World___destroy___0:ji,_emscripten_bind_b2ChainShape_get_m_hasNextVertex_0:xn,_emscripten_bind_b2ChainShape_SetNextVertex_1:en,_emscripten_bind_b2Body_SetType_1:Ns,_emscripten_bind_b2Body_GetMass_0:ws,_emscripten_bind_b2Rot_b2Rot_0:td,_emscripten_bind_b2Rot_b2Rot_1:ud,_emscripten_enum_b2JointType_e_distanceJoint:zv,_emscripten_bind_b2PulleyJoint___destroy___0:Oq,_emscripten_bind_b2PrismaticJoint_GetLocalAnchorB_0:li,_emscripten_bind_b2MouseJoint_GetType_0:gd,_emscripten_bind_JSQueryCallback___destroy___0:Zc,_emscripten_bind_b2RevoluteJointDef_set_lowerAngle_1:sp,_emscripten_bind_b2JointEdge___destroy___0:Ul,_emscripten_bind_b2PulleyJoint_GetRatio_0:zq,_emscripten_bind_JSContactListener_BeginContact_1:$i,_emscripten_bind_b2MotorJointDef_set_linearOffset_1:Zu,_emscripten_enum_b2JointType_e_motorJoint:Hv,_emscripten_bind_b2JointEdge_get_next_0:Sl,_emscripten_bind_b2RayCastInput_set_maxFraction_1:ko,_emscripten_bind_b2MouseJoint_GetBodyA_0:hd,_emscripten_bind_b2Profile_set_collide_1:de,_emscripten_bind_b2AABB_b2AABB_0:Mf,_emscripten_bind_b2Fixture_Refilter_0:yc,_emscripten_bind_b2World_CreateBody_1:Dh,_emscripten_bind_b2RopeJointDef_set_userData_1:Ou,_emscripten_bind_b2Fixture_IsSensor_0:vc,_emscripten_bind_b2WeldJoint_GetType_0:yl,_emscripten_bind_b2PrismaticJointDef_get_motorSpeed_0:lh,_emscripten_bind_b2Rot___destroy___0:Ed,_emscripten_bind_b2Filter_get_maskBits_0:Sc,_emscripten_bind_b2Mat22_get_ex_0:kj,_emscripten_bind_b2Body_GetFixtureList_0:Zs,_emscripten_bind_b2RevoluteJointDef_get_enableMotor_0:vp,_emscripten_bind_b2MouseJointDef_set_dampingRatio_1:Xq,_emscripten_bind_JSRayCastCallback___destroy___0:Ye,_emscripten_bind_b2ContactListener___destroy___0:um,_emscripten_bind_b2PrismaticJointDef_set_localAnchorB_1:Yg,_emscripten_enum_b2DrawFlag_e_pairBit:Vv,_emscripten_bind_b2FrictionJoint___destroy___0:xt,_emscripten_bind_b2WeldJoint_Dump_0:xl,_emscripten_bind_b2MotorJoint_SetMaxForce_1:Jd,_emscripten_bind_b2FrictionJointDef_get_maxTorque_0:wg,_emscripten_bind_b2FrictionJoint_GetLocalAnchorA_0:ft,_emscripten_bind_b2WeldJointDef_get_localAnchorB_0:ik,_emscripten_bind_b2PrismaticJointDef_get_bodyA_0:rh,_emscripten_bind_b2Vec2_IsValid_0:rf,_emscripten_bind_b2PrismaticJointDef_set_bodyA_1:sh,_emscripten_bind_b2World_GetWarmStarting_0:Sh,_emscripten_bind_b2RevoluteJointDef_set_enableLimit_1:qp,_emscripten_bind_b2WeldJointDef___destroy___0:Ak,_emscripten_bind_b2Mat22_Solve_1:jj,_emscripten_bind_b2Color_get_g_0:Jn,_emscripten_bind_VoidPtr___destroy___0:re,_emscripten_bind_b2RopeJoint_GetNext_0:_n,_emscripten_bind_b2Filter_b2Filter_0:Pc,_emscripten_bind_b2PolygonShape_GetChildCount_0:to,_emscripten_bind_b2GearJointDef_get_ratio_0:Et,_emscripten_bind_b2Mat33_Solve33_1:hc,_emscripten_bind_b2PulleyJoint_GetReactionForce_1:Hq,_emscripten_bind_b2WheelJoint_GetCollideConnected_0:tq,_emscripten_bind_b2WheelJoint_SetSpringDampingRatio_1:gq,_emscripten_bind_b2RevoluteJointDef___destroy___0:Lp,_emscripten_bind_b2MouseJointDef_get_maxForce_0:Sq,_emscripten_bind_b2RevoluteJoint_EnableMotor_1:au,_emscripten_bind_b2ContactFeature_get_typeB_0:df,_emscripten_bind_b2MotorJoint_SetLinearOffset_1:Fd,_emscripten_bind_b2MotorJoint_GetReactionForce_1:Ud,_emscripten_bind_b2Rot_GetAngle_0:xd,_emscripten_bind_b2World_SetAllowSleeping_1:Ph,_emscripten_bind_b2MotorJoint_SetAngularOffset_1:Hd,_emscripten_bind_b2MotorJoint_GetLinearOffset_0:Gd,_emscripten_bind_b2FrictionJoint_GetCollideConnected_0:wt,_emscripten_bind_b2WheelJointDef_set_motorSpeed_1:Cj,_emscripten_bind_b2MotorJoint_GetAnchorA_0:Sd,_emscripten_bind_b2Fixture_GetDensity_0:Hc,_emscripten_bind_b2PolygonShape_get_m_type_0:Co,_emscripten_bind_b2Vec2_Set_2:kf,_emscripten_bind_b2WeldJointDef_get_type_0:qk,_emscripten_bind_b2MouseJointDef_b2MouseJointDef_0:Pq,_emscripten_bind_b2Rot_get_s_0:Ad,_emscripten_bind_b2FrictionJoint_SetMaxTorque_1:jt,_emscripten_bind_b2MouseJointDef_get_frequencyHz_0:Uq,_emscripten_bind_b2FrictionJoint_SetUserData_1:ut,_emscripten_bind_b2FixtureDef_set_userData_1:cg,_emscripten_bind_b2JointDef_get_userData_0:Jm,_emscripten_bind_b2DistanceJointDef_get_collideConnected_0:bs,_emscripten_bind_b2RevoluteJointDef_set_referenceAngle_1:op,_emscripten_bind_b2ContactFeature___destroy___0:ff,_emscripten_bind_b2DistanceJointDef_set_bodyB_1:as,_emscripten_bind_JSQueryCallback_JSQueryCallback_0:Xc,_emscripten_bind_b2ChainShape_GetChildCount_0:hn,_emscripten_bind_b2MassData_b2MassData_0:Gk,_emscripten_bind_b2Vec3_set_y_1:If,_emscripten_bind_b2AABB_Combine_1:Rf,_emscripten_bind_b2AABB_Combine_2:Sf,_emscripten_bind_b2PrismaticJoint_GetBodyA_0:Di,_emscripten_bind_b2PrismaticJoint_GetMaxMotorForce_0:Ai,_emscripten_bind_b2AABB___destroy___0:Zf,_emscripten_bind_b2Body_IsSleepingAllowed_0:Ss,_emscripten_bind_b2MouseJointDef_set_maxForce_1:Tq,_emscripten_bind_b2MotorJoint_GetCorrectionFactor_0:Od,_emscripten_bind_b2Profile_get_solve_0:ee,_emscripten_bind_JSDestructionListener_SayGoodbyeFixture_1:Gb,_emscripten_bind_b2PolygonShape_GetVertexCount_0:qo,_emscripten_bind_b2Rot_get_c_0:Cd,_emscripten_bind_b2AABB_set_lowerBound_1:Wf,_emscripten_bind_b2ChainShape_get_m_hasPrevVertex_0:vn,_emscripten_bind_b2MouseJoint_SetMaxForce_1:ad,_emscripten_bind_b2FrictionJointDef_get_bodyB_0:Eg,_emscripten_bind_b2JointDef_set_userData_1:Km,_emscripten_bind_b2ManifoldPoint_get_tangentImpulse_0:Am,_emscripten_bind_b2RevoluteJointDef_get_maxMotorTorque_0:zp,_emscripten_bind_b2WeldJointDef_get_dampingRatio_0:ok,_emscripten_bind_b2MouseJoint___destroy___0:sd,_emscripten_bind_b2EdgeShape_b2EdgeShape_0:Ho,_emscripten_bind_b2FrictionJoint_GetReactionForce_1:qt,_emscripten_bind_b2DistanceJointDef_set_type_1:Wr,_emscripten_bind_b2WeldJoint___destroy___0:Kl,_emscripten_bind_b2PulleyJoint_GetBodyA_0:Dq,_emscripten_bind_b2RopeJointDef_get_type_0:Lu,_emscripten_bind_b2CircleShape_ComputeMass_2:Yj,_emscripten_bind_b2DistanceJointDef_get_localAnchorB_0:Nr,_emscripten_bind_b2GearJointDef___destroy___0:Qt,_emscripten_bind_b2RevoluteJointDef_set_bodyA_1:Gp,_emscripten_enum_b2BodyType_b2_dynamicBody:Rv,_emscripten_bind_b2CircleShape_TestPoint_2:Vj,_emscripten_bind_b2MotorJointDef_get_maxTorque_0:cv,_emscripten_bind_b2Body_GetLinearVelocityFromLocalPoint_1:Gs,_emscripten_bind_b2Mat22_b2Mat22_0:cj,_emscripten_bind_b2MouseJoint_GetAnchorB_0:kd,_emscripten_enum_b2BodyType_b2_kinematicBody:Qv,_emscripten_bind_b2Manifold_get_localPoint_0:Mg,_emscripten_bind_b2GearJoint_GetBodyB_0:fl,_emscripten_bind_b2ChainShape_Clear_0:an,_emscripten_bind_b2CircleShape___destroy___0:dk,_emscripten_bind_b2MotorJoint_GetType_0:Pd,_emscripten_bind_b2BodyDef_get_awake_0:Je,_emscripten_bind_b2Contact_SetRestitution_1:tr,_emscripten_bind_b2BodyDef_get_angularDamping_0:Fe,_emscripten_bind_b2EdgeShape_get_m_vertex3_0:Vo,_emscripten_bind_b2Fixture_SetUserData_1:Cc,_emscripten_bind_b2Transform_SetIdentity_0:Um,_emscripten_bind_b2GearJointDef_set_joint1_1:Bt,_emscripten_bind_b2EdgeShape_set_m_vertex2_1:So,_emscripten_bind_b2ContactEdge_get_next_0:Bu,_emscripten_bind_b2ContactFeature_set_indexB_1:af,_emscripten_bind_b2Body_GetLinearVelocityFromWorldPoint_1:Fs,_emscripten_bind_b2WeldJoint_GetCollideConnected_0:Jl,_emscripten_bind_b2Mat22_set_ey_1:nj,_emscripten_bind_b2WheelJointDef_set_frequencyHz_1:Ej,_emscripten_bind_b2World_GetSubStepping_0:Wh,_emscripten_bind_b2Rot_GetYAxis_0:zd,_emscripten_bind_b2Contact_GetChildIndexB_0:pr,_emscripten_bind_b2DistanceJoint___destroy___0:dc,_emscripten_bind_b2EdgeShape_GetType_0:Jo,_emscripten_bind_b2WheelJointDef_set_dampingRatio_1:Gj,_emscripten_bind_b2ManifoldPoint___destroy___0:Em,_emscripten_enum_b2JointType_e_prismaticJoint:yv,_emscripten_bind_b2MotorJoint_GetNext_0:Wd,_emscripten_bind_b2Vec2_Length_0:of,_emscripten_bind_b2Vec2_SetZero_0:jf,_emscripten_bind_b2RopeJoint___destroy___0:eo,_emscripten_bind_b2World_DestroyJoint_1:Gh,_emscripten_bind_b2JointDef_set_bodyB_1:Om,_emscripten_bind_b2Mat22_Set_2:fj,_emscripten_bind_b2Body_GetType_0:Os,_emscripten_bind_b2WeldJoint_GetAnchorB_0:Cl,_emscripten_bind_b2WeldJoint_GetNext_0:Fl,_emscripten_bind_b2Shape_get_m_radius_0:Gr,_emscripten_bind_b2EdgeShape_ComputeAABB_3:No,_emscripten_bind_b2BodyDef_get_type_0:te,_emscripten_bind_b2WheelJointDef_set_collideConnected_1:Qj,_emscripten_bind_JSDestructionListener___destroy___0:Hb,_emscripten_bind_b2MotorJointDef_get_type_0:gv,_emscripten_bind_b2RopeJoint_GetLocalAnchorA_0:On,_emscripten_bind_b2BodyDef_set_linearDamping_1:Ee,_emscripten_bind_b2FrictionJoint_GetUserData_0:tt,_emscripten_bind_b2Contact_SetFriction_1:qr,_emscripten_bind_b2Manifold_set_localNormal_1:Lg,_emscripten_bind_b2JointDef_get_bodyA_0:Lm,_emscripten_bind_b2Body_GetLinearDamping_0:Hs,_emscripten_bind_b2WeldJointDef_set_frequencyHz_1:nk,_emscripten_bind_b2Body_ResetMassData_0:As,_emscripten_bind_b2PrismaticJointDef_set_enableMotor_1:ih,_emscripten_enum_b2JointType_e_wheelJoint:Dv,_emscripten_bind_b2Vec2_Skew_0:sf,_emscripten_bind_b2MouseJoint_GetDampingRatio_0:fd,_emscripten_bind_b2RevoluteJoint_GetAnchorA_0:ju,_emscripten_bind_b2ChainShape_set_m_prevVertex_1:sn,_emscripten_bind_b2WheelJoint_GetAnchorA_0:lq,_emscripten_bind_b2MotorJoint_GetMaxTorque_0:Md,_emscripten_bind_b2FrictionJoint_GetNext_0:st,_emscripten_bind_b2PrismaticJointDef_set_userData_1:qh,_emscripten_bind_b2FrictionJointDef_set_type_1:zg,_emscripten_bind_b2PrismaticJoint_GetUserData_0:Ki,_emscripten_bind_b2FrictionJointDef_get_collideConnected_0:Gg,_emscripten_bind_b2Body_GetInertia_0:xs,_emscripten_bind_b2WeldJointDef_set_referenceAngle_1:lk,_emscripten_bind_b2FrictionJoint_GetAnchorA_0:ot,_emscripten_bind_b2RopeJoint_GetType_0:Tn,_emscripten_bind_b2MassData_get_I_0:Lk,_emscripten_bind_b2WheelJointDef_get_motorSpeed_0:Bj,_emscripten_bind_b2WeldJointDef_get_referenceAngle_0:kk,_emscripten_enum_b2JointType_e_ropeJoint:Gv,_emscripten_bind_b2Filter_set_maskBits_1:Tc,_emscripten_bind_b2EdgeShape_set_m_radius_1:cp,_emscripten_bind_b2MotorJointDef_set_collideConnected_1:pv,_emscripten_bind_b2Mat22_b2Mat22_2:dj,_emscripten_bind_b2WheelJointDef_set_maxMotorTorque_1:Aj,_emscripten_bind_b2FrictionJointDef_set_bodyB_1:Fg,_emscripten_bind_b2Mat22_b2Mat22_4:ej,_emscripten_bind_b2ChainShape_set_m_hasNextVertex_1:yn,_emscripten_bind_b2Mat22_GetInverse_0:ij,_emscripten_bind_b2PrismaticJoint_EnableMotor_1:wi,_emscripten_bind_b2CircleShape_get_m_type_0:$j,_emscripten_bind_b2DistanceJoint_GetLocalAnchorA_0:Lb,_emscripten_bind_b2ContactEdge_b2ContactEdge_0:uu,_emscripten_bind_b2BodyDef___destroy___0:Ve,_emscripten_bind_b2FrictionJointDef_set_maxTorque_1:xg,_emscripten_bind_b2PolygonShape_GetVertex_1:ro,_emscripten_bind_b2PulleyJointDef_set_groundAnchorB_1:_l,_emscripten_bind_b2RevoluteJointDef_get_collideConnected_0:Jp,_emscripten_bind_b2DistanceJointDef_set_bodyA_1:_r,_emscripten_bind_b2RevoluteJoint_SetLimits_2:_t,_emscripten_bind_b2WeldJointDef_set_type_1:rk,_emscripten_bind_b2MotorJointDef___destroy___0:qv,_emscripten_bind_b2FixtureDef_set_density_1:ig,_emscripten_bind_b2Shape_set_m_type_1:Fr,_emscripten_bind_b2WheelJoint_GetJointTranslation_0:Xp,_emscripten_bind_b2WheelJoint_GetMotorTorque_1:dq,_emscripten_bind_b2RopeJoint_SetUserData_1:ao,_emscripten_bind_b2RopeJointDef___destroy___0:Vu,_emscripten_bind_b2WheelJoint_IsActive_0:sq,_emscripten_bind_b2PrismaticJointDef_get_enableMotor_0:hh,_emscripten_bind_b2MotorJointDef_set_bodyB_1:nv,_emscripten_bind_b2Transform_b2Transform_2:Tm,_emscripten_bind_b2WeldJoint_GetReactionForce_1:Dl,_emscripten_bind_b2ChainShape_RayCast_4:kn,_emscripten_bind_b2PrismaticJoint_GetUpperLimit_0:ti,_emscripten_bind_b2ContactID_get_cf_0:Ui,_emscripten_bind_b2MouseJointDef_set_frequencyHz_1:Vq,_emscripten_bind_b2ChainShape_get_m_radius_0:Bn,_emscripten_bind_b2Body_GetLinearVelocity_0:os,_emscripten_bind_b2ChainShape_set_m_radius_1:Cn,_emscripten_bind_b2DistanceJoint_GetReactionTorque_1:Zb,_emscripten_bind_b2World_Dump_0:ii,_emscripten_bind_b2RevoluteJoint_GetLocalAnchorB_0:St,_emscripten_bind_JSContactFilter_JSContactFilter_0:ep,_emscripten_bind_b2Profile_set_solve_1:fe,_emscripten_bind_b2WeldJoint_GetDampingRatio_0:wl,_emscripten_bind_b2Color_get_b_0:Ln,_emscripten_bind_b2MouseJointDef_get_userData_0:_q,_emscripten_bind_b2CircleShape_ComputeAABB_3:Xj,_emscripten_bind_b2RopeJoint_GetReactionForce_1:Yn,_emscripten_bind_b2PrismaticJointDef_get_enableLimit_0:bh,_emscripten_bind_b2ManifoldPoint_set_localPoint_1:xm,_emscripten_bind_b2Fixture_GetFilterData_0:xc,_emscripten_bind_b2World_GetBodyList_0:Mh,_emscripten_bind_b2Shape_ComputeMass_2:Dr,_emscripten_bind_b2Joint_GetNext_0:Vk,_emscripten_bind_b2PrismaticJointDef_get_collideConnected_0:vh,_emscripten_bind_b2World_RayCast_3:Lh,_emscripten_bind_b2MassData_set_I_1:Mk,_emscripten_bind_b2MassData___destroy___0:Nk,_emscripten_bind_b2Profile_get_collide_0:ce,_emscripten_bind_b2Color_b2Color_3:Fn,_emscripten_bind_b2Color_b2Color_0:En,_emscripten_bind_b2MouseJoint_GetFrequency_0:dd,_emscripten_bind_b2WeldJointDef_Initialize_3:fk,_emscripten_bind_b2Shape_GetChildCount_0:zr,_emscripten_enum_b2JointType_e_gearJoint:Cv,_emscripten_bind_b2FixtureDef_get_friction_0:dg,_emscripten_bind_b2PrismaticJointDef_set_localAnchorA_1:Wg,_emscripten_bind_b2Contact_GetManifold_0:hr,_emscripten_bind_b2MouseJoint_GetTarget_0:$c,_emscripten_bind_b2WeldJointDef_get_localAnchorA_0:gk,_emscripten_bind_b2MouseJoint_SetUserData_1:pd,_emscripten_bind_b2JointEdge_get_other_0:Ml,_emscripten_bind_b2ChainShape_GetChildEdge_2:fn,_emscripten_bind_b2GearJointDef_set_collideConnected_1:Pt,_emscripten_bind_b2MotorJointDef_get_angularOffset_0:_u,_emscripten_bind_b2WheelJoint_SetUserData_1:rq,_emscripten_bind_b2Body_ApplyForce_3:rs,_emscripten_bind_b2PrismaticJoint_SetMotorSpeed_1:xi,_emscripten_bind_b2DistanceJoint_GetCollideConnected_0:cc,_emscripten_bind_b2MouseJoint_GetMaxForce_0:bd,_emscripten_bind_b2World_SetGravity_1:ci,_emscripten_bind_b2Mat22_SetZero_0:hj,_emscripten_bind_b2Contact_GetChildIndexA_0:nr,_emscripten_bind_b2Fixture_SetRestitution_1:Lc,_emscripten_bind_b2Body_GetTransform_0:is,_emscripten_bind_b2ContactEdge___destroy___0:Du,_emscripten_bind_b2Mat33_set_ex_1:mc,_emscripten_bind_b2AABB_GetExtents_0:Pf,_emscripten_bind_b2RevoluteJointDef_get_bodyA_0:Fp,_emscripten_bind_b2PrismaticJoint_GetBodyB_0:Ei,_emscripten_bind_b2WheelJointDef_set_bodyA_1:Mj,_emscripten_bind_b2DistanceJointDef_set_collideConnected_1:cs,_emscripten_bind_b2BodyDef_get_angle_0:xe,_emscripten_bind_b2PulleyJoint_GetReactionTorque_1:Iq,_emscripten_bind_b2FixtureDef_get_shape_0:$f,_emscripten_bind_b2WeldJointDef_get_userData_0:sk,_emscripten_bind_b2FrictionJoint_SetMaxForce_1:ht,_emscripten_bind_b2Mat33_b2Mat33_3:fc,_emscripten_bind_b2Vec3_get_y_0:Hf,_emscripten_bind_b2JointDef_get_type_0:Hm,_emscripten_bind_JSQueryCallback_ReportFixture_1:Yc,_emscripten_bind_b2Fixture_TestPoint_1:Dc,_emscripten_bind_b2RevoluteJoint_GetCollideConnected_0:ru,_emscripten_bind_JSDraw_JSDraw_0:Mp,_emscripten_bind_b2MouseJoint_GetAnchorA_0:jd,_emscripten_bind_b2Transform_get_p_0:Wm,_emscripten_bind_b2EdgeShape_ComputeMass_2:Oo,_emscripten_bind_b2World_GetProfile_0:hi,_emscripten_bind_b2DistanceJointDef___destroy___0:ds,_emscripten_bind_b2RopeJointDef_set_bodyA_1:Qu,_emscripten_bind_b2JointDef_set_type_1:Im,_emscripten_bind_b2Draw_AppendFlags_1:Dk,_emscripten_bind_b2MotorJointDef_get_userData_0:iv,_emscripten_bind_b2World_GetContactList_0:Oh,_emscripten_bind_b2Mat33_set_ez_1:qc,_emscripten_bind_b2JointEdge_b2JointEdge_0:Ll,_emscripten_bind_b2FrictionJointDef_get_bodyA_0:Cg,_emscripten_bind_b2WheelJointDef_get_type_0:Hj,_emscripten_bind_b2RevoluteJoint_GetReactionForce_1:lu,_emscripten_bind_b2PulleyJointDef_set_collideConnected_1:sm,_emscripten_bind_b2RopeJoint_GetCollideConnected_0:co,_emscripten_bind_b2GearJointDef_set_joint2_1:Dt,_emscripten_bind_b2BodyDef_set_userData_1:Se,_emscripten_bind_b2GearJoint_GetAnchorB_0:hl,_emscripten_bind_b2RopeJoint_IsActive_0:bo,_emscripten_bind_b2Fixture_GetFriction_0:Ic,_emscripten_enum_b2DrawFlag_e_aabbBit:Uv,_emscripten_bind_b2RevoluteJointDef_Initialize_3:ip,_emscripten_bind_b2Body_GetAngle_0:ks,_emscripten_bind_b2EdgeShape_Set_2:Io,_emscripten_bind_b2Mat33_SetZero_0:gc,_emscripten_bind_b2MotorJointDef_set_maxTorque_1:dv,_emscripten_bind_b2PrismaticJointDef_get_localAxisA_0:Zg,_emscripten_bind_b2Mat22_get_ey_0:mj,_emscripten_bind_b2Mat22_SetIdentity_0:gj,_emscripten_bind_b2Joint_IsActive_0:Yk,_emscripten_bind_b2BodyDef_get_allowSleep_0:He,_emscripten_bind_b2World_GetTreeHeight_0:$h,_emscripten_bind_b2GearJoint_GetJoint2_0:al,_emscripten_bind_b2EdgeShape_set_m_vertex1_1:Qo,_emscripten_bind_b2Body_GetWorld_0:dt,_emscripten_enum_b2LimitState_e_inactiveLimit:Iv,_emscripten_bind_b2PulleyJointDef_set_lengthB_1:gm,_emscripten_bind_b2Body_SetAwake_1:Ts,_emscripten_bind_b2PrismaticJointDef_set_upperTranslation_1:gh,_emscripten_bind_b2Vec2___destroy___0:xf,_emscripten_bind_b2RayCastInput_set_p1_1:go,_emscripten_bind_b2Contact_ResetFriction_0:sr,_emscripten_bind_b2PulleyJoint_GetAnchorA_0:Fq,_emscripten_bind_b2BodyDef_get_linearVelocity_0:ze,_emscripten_bind_b2DistanceJointDef_get_bodyB_0:$r,_emscripten_bind_b2Mat22___destroy___0:oj,_emscripten_bind_b2RevoluteJoint_GetNext_0:nu,_emscripten_bind_b2WeldJointDef_get_bodyA_0:uk,_emscripten_bind_b2MotorJoint_GetAnchorB_0:Td,_emscripten_bind_b2Fixture_GetShape_0:tc,_emscripten_bind_b2PolygonShape_SetAsBox_2:oo,_emscripten_bind_b2Vec3_op_mul_1:Ef,_emscripten_bind_b2PolygonShape_set_m_type_1:Do,_emscripten_bind_b2WheelJoint_GetType_0:iq,_emscripten_bind_b2MotorJoint_GetAngularOffset_0:Id,_emscripten_bind_b2RevoluteJoint_IsActive_0:qu,_emscripten_bind_b2GearJoint_GetNext_0:kl,_emscripten_bind_b2MotorJointDef_get_correctionFactor_0:ev,_emscripten_bind_b2Color_Set_3:Gn,_emscripten_bind_b2EdgeShape_set_m_type_1:ap,_emscripten_bind_b2WheelJoint_GetLocalAxisA_0:Wp,_emscripten_bind_b2Body_GetNext_0:at,_emscripten_bind_b2RopeJoint_GetBodyA_0:Un,_emscripten_enum_b2JointType_e_unknownJoint:wv,_emscripten_bind_b2ContactFeature_set_indexA_1:_e,_emscripten_bind_b2Profile_get_solveInit_0:ge,_emscripten_bind_b2BodyDef_set_angularDamping_1:Ge,_emscripten_bind_b2FrictionJoint_GetAnchorB_0:pt,_emscripten_bind_b2World_QueryAABB_2:Kh,_emscripten_bind_b2BodyDef_get_userData_0:Re,_emscripten_bind_b2ContactID_get_key_0:Wi,_emscripten_bind_b2Body_SetAngularVelocity_1:ps,_emscripten_bind_b2WheelJointDef_get_userData_0:Jj,_emscripten_bind_b2RevoluteJoint_IsLimitEnabled_0:Wt,_emscripten_bind_b2DistanceJoint_GetBodyB_0:Vb,_emscripten_bind_b2RevoluteJointDef_set_maxMotorTorque_1:Ap,_emscripten_bind_b2WeldJointDef_set_bodyB_1:xk,_emscripten_bind_b2RevoluteJoint_SetUserData_1:pu,_emscripten_bind_b2DistanceJoint_SetLength_1:Nb,_emscripten_bind_b2JointEdge_get_joint_0:Ol,_emscripten_bind_b2Body_GetLocalCenter_0:ms,_emscripten_bind_b2FixtureDef___destroy___0:ng,_emscripten_bind_b2FixtureDef_set_shape_1:ag,_emscripten_bind_b2WeldJoint_GetAnchorA_0:Bl,_emscripten_bind_b2Profile_get_solveVelocity_0:ie,_emscripten_bind_b2WeldJointDef_get_bodyB_0:wk,_emscripten_bind_b2Body_SetAngularDamping_1:Ks,_emscripten_bind_b2PulleyJointDef_Initialize_7:Wl,_emscripten_bind_b2GearJointDef_set_bodyB_1:Nt,_emscripten_bind_b2RopeJoint_GetReactionTorque_1:Zn,_emscripten_bind_b2Mat22_set_ex_1:lj,_emscripten_bind_b2GearJoint_GetType_0:dl,_emscripten_enum_b2DrawFlag_e_centerOfMassBit:Wv,_emscripten_bind_b2ChainShape_b2ChainShape_0:$m,_emscripten_bind_b2RevoluteJoint_SetMaxMotorTorque_1:du,_emscripten_bind_b2RopeJointDef_set_localAnchorB_1:Iu,_emscripten_bind_b2FrictionJointDef_Initialize_3:pg,_emscripten_bind_b2GearJointDef_set_userData_1:Jt,_emscripten_bind_b2ChainShape_CreateLoop_2:bn,_emscripten_bind_b2EdgeShape_get_m_radius_0:bp,_emscripten_bind_b2Contact_GetFixtureB_0:or,_emscripten_bind_b2ChainShape_ComputeMass_2:mn,_emscripten_bind_b2Vec2_set_y_1:wf,_emscripten_bind_b2PrismaticJoint_IsLimitEnabled_0:qi,_emscripten_bind_b2RopeJointDef_get_bodyB_0:Ru,_emscripten_bind_b2BodyDef_b2BodyDef_0:se,_emscripten_bind_b2MassData_get_mass_0:Hk,_emscripten_bind_b2WheelJoint___destroy___0:uq,_emscripten_bind_b2Joint_GetBodyB_0:Qk,_emscripten_bind_b2MouseJointDef_set_collideConnected_1:fr,_emscripten_bind_b2WheelJointDef_set_localAxisA_1:wj,_emscripten_bind_b2Joint_Dump_0:_k,_emscripten_bind_b2WheelJointDef_b2WheelJointDef_0:pj,_emscripten_bind_b2RevoluteJointDef_set_motorSpeed_1:yp,_emscripten_bind_b2MotorJointDef_get_bodyA_0:kv,_emscripten_bind_b2WheelJointDef_get_enableMotor_0:xj,_emscripten_bind_b2Vec2_LengthSquared_0:pf,_emscripten_bind_b2FrictionJointDef_set_bodyA_1:Dg,_emscripten_bind_b2WheelJoint_GetSpringFrequencyHz_0:fq,_emscripten_bind_b2ContactFeature_get_indexB_0:$e,_emscripten_bind_b2Body_GetJointList_0:_s,_emscripten_bind_b2FrictionJoint_GetBodyA_0:mt,_emscripten_bind_b2WheelJointDef_set_localAnchorB_1:uj,_emscripten_bind_b2DistanceJointDef_set_localAnchorA_1:Mr,_emscripten_bind_b2PrismaticJointDef_get_maxMotorForce_0:jh,_emscripten_bind_b2Body_SetUserData_1:ct,_emscripten_bind_b2DistanceJoint_GetUserData_0:$b,_emscripten_bind_b2PulleyJointDef_set_bodyA_1:om,_emscripten_bind_b2Joint_GetType_0:Ok,_emscripten_bind_b2Manifold_get_pointCount_0:Qg,_emscripten_bind_b2Mat33_get_ez_0:pc,_emscripten_bind_b2DestructionListenerWrapper___destroy___0:Zi,_emscripten_bind_b2WheelJointDef_get_bodyA_0:Lj,_emscripten_enum_b2LimitState_e_atUpperLimit:Kv,_emscripten_bind_b2PulleyJointDef_set_groundAnchorA_1:Yl,_emscripten_bind_b2MouseJointDef_get_type_0:Yq,_emscripten_bind_b2PrismaticJoint_SetMaxMotorForce_1:zi,_emscripten_bind_b2PulleyJointDef_get_collideConnected_0:rm,_emscripten_bind_b2RopeJoint_SetMaxLength_1:Qn,_emscripten_bind_b2Joint_SetUserData_1:Xk,_emscripten_bind_b2PolygonShape_set_m_radius_1:Fo,_emscripten_bind_b2Vec2_get_x_0:tf,_emscripten_bind_JSContactListener_JSContactListener_0:_i,runPostSets:PB,stackAlloc:wb,stackSave:xb,stackRestore:yb,setThrew:zb,setTempRet0:Cb,getTempRet0:Db,dynCall_iiii:TB,dynCall_viiiii:mC,dynCall_did:HC,dynCall_vi:aD,dynCall_diiiid:vD,dynCall_vii:QD,dynCall_viidii:jE,dynCall_ii:EE,dynCall_viidi:ZE,dynCall_viii:sF,dynCall_v:NF,dynCall_viid:gG,dynCall_viiiiii:BG,dynCall_iii:WG,dynCall_iiiiii:pH,dynCall_viiii:KH}}) (e.X,e.Y,pb),pc=e._emscripten_bind_b2WheelJoint_GetSpringDampingRatio_0=i._emscripten_bind_b2WheelJoint_GetSpringDampingRatio_0,qc=e._emscripten_bind_b2ContactEdge_set_next_1=i._emscripten_bind_b2ContactEdge_set_next_1,rc=e._emscripten_bind_b2ChainShape_get_m_count_0=i._emscripten_bind_b2ChainShape_get_m_count_0,sc=e._emscripten_bind_b2Fixture_SetFriction_1=i._emscripten_bind_b2Fixture_SetFriction_1,tc=e._emscripten_bind_b2Shape_ComputeAABB_3=i._emscripten_bind_b2Shape_ComputeAABB_3, uc=e._emscripten_bind_b2FrictionJointDef_set_userData_1=i._emscripten_bind_b2FrictionJointDef_set_userData_1,vc=e._emscripten_bind_b2Vec3_get_z_0=i._emscripten_bind_b2Vec3_get_z_0,wc=e._emscripten_bind_b2World_IsLocked_0=i._emscripten_bind_b2World_IsLocked_0,xc=e._emscripten_bind_b2Draw_GetFlags_0=i._emscripten_bind_b2Draw_GetFlags_0,yc=e._emscripten_bind_b2FrictionJoint_IsActive_0=i._emscripten_bind_b2FrictionJoint_IsActive_0,zc=e._emscripten_bind_b2Color_set_g_1=i._emscripten_bind_b2Color_set_g_1, Ac=e._emscripten_bind_b2WheelJointDef_get_frequencyHz_0=i._emscripten_bind_b2WheelJointDef_get_frequencyHz_0,Bc=e._emscripten_bind_b2RopeJointDef_set_localAnchorA_1=i._emscripten_bind_b2RopeJointDef_set_localAnchorA_1,Cc=e._emscripten_bind_b2PolygonShape_RayCast_4=i._emscripten_bind_b2PolygonShape_RayCast_4,Dc=e._emscripten_bind_b2World_GetTreeBalance_0=i._emscripten_bind_b2World_GetTreeBalance_0,Ec=e._emscripten_bind_b2PrismaticJointDef_get_upperTranslation_0=i._emscripten_bind_b2PrismaticJointDef_get_upperTranslation_0, Fc=e._emscripten_bind_JSDraw_DrawSolidCircle_4=i._emscripten_bind_JSDraw_DrawSolidCircle_4,Gc=e._emscripten_bind_b2RevoluteJoint_GetLocalAnchorA_0=i._emscripten_bind_b2RevoluteJoint_GetLocalAnchorA_0,Hc=e._emscripten_bind_b2FixtureDef_get_filter_0=i._emscripten_bind_b2FixtureDef_get_filter_0,Ic=e._emscripten_bind_b2FrictionJointDef_get_type_0=i._emscripten_bind_b2FrictionJointDef_get_type_0,Jc=e._emscripten_bind_b2RevoluteJoint_GetMotorTorque_1=i._emscripten_bind_b2RevoluteJoint_GetMotorTorque_1, Kc=e._emscripten_bind_b2MotorJointDef_set_type_1=i._emscripten_bind_b2MotorJointDef_set_type_1,Lc=e._emscripten_bind_b2RayCastInput_get_p1_0=i._emscripten_bind_b2RayCastInput_get_p1_0,Mc=e._emscripten_bind_b2EdgeShape_set_m_hasVertex3_1=i._emscripten_bind_b2EdgeShape_set_m_hasVertex3_1,Nc=e._emscripten_bind_b2JointEdge_set_joint_1=i._emscripten_bind_b2JointEdge_set_joint_1,Oc=e._emscripten_enum_b2ShapeType_e_polygon=i._emscripten_enum_b2ShapeType_e_polygon,Pc=e._emscripten_bind_b2Fixture___destroy___0= i._emscripten_bind_b2Fixture___destroy___0,Qc=e._emscripten_bind_b2PulleyJoint_SetUserData_1=i._emscripten_bind_b2PulleyJoint_SetUserData_1,Rc=e._emscripten_bind_b2World_SetWarmStarting_1=i._emscripten_bind_b2World_SetWarmStarting_1,Sc=e._emscripten_bind_JSDraw_DrawCircle_3=i._emscripten_bind_JSDraw_DrawCircle_3,Tc=e._emscripten_bind_b2WeldJoint_IsActive_0=i._emscripten_bind_b2WeldJoint_IsActive_0,Uc=e._emscripten_bind_b2DestructionListener___destroy___0=i._emscripten_bind_b2DestructionListener___destroy___0, Vc=e._emscripten_bind_b2BodyDef_set_type_1=i._emscripten_bind_b2BodyDef_set_type_1,Wc=e._emscripten_bind_b2ChainShape_ComputeAABB_3=i._emscripten_bind_b2ChainShape_ComputeAABB_3,Xc=e._emscripten_bind_b2MouseJointDef_set_type_1=i._emscripten_bind_b2MouseJointDef_set_type_1,Yc=e._emscripten_bind_b2JointEdge_get_prev_0=i._emscripten_bind_b2JointEdge_get_prev_0,Zc=e._emscripten_bind_b2WeldJoint_GetReactionTorque_1=i._emscripten_bind_b2WeldJoint_GetReactionTorque_1,$c=e._emscripten_bind_b2MotorJointDef_get_maxForce_0= i._emscripten_bind_b2MotorJointDef_get_maxForce_0,ad=e._emscripten_bind_b2DistanceJointDef_get_userData_0=i._emscripten_bind_b2DistanceJointDef_get_userData_0,bd=e._emscripten_bind_b2BodyDef_get_position_0=i._emscripten_bind_b2BodyDef_get_position_0,cd=e._emscripten_bind_b2RopeJointDef_get_localAnchorB_0=i._emscripten_bind_b2RopeJointDef_get_localAnchorB_0,dd=e._emscripten_bind_b2RevoluteJointDef_set_userData_1=i._emscripten_bind_b2RevoluteJointDef_set_userData_1,ed=e._emscripten_bind_b2RevoluteJointDef_get_localAnchorA_0= i._emscripten_bind_b2RevoluteJointDef_get_localAnchorA_0,fd=e._emscripten_bind_b2World_SetContactFilter_1=i._emscripten_bind_b2World_SetContactFilter_1,gd=e._emscripten_bind_b2WheelJointDef_get_collideConnected_0=i._emscripten_bind_b2WheelJointDef_get_collideConnected_0,hd=e._emscripten_bind_b2MouseJointDef_set_userData_1=i._emscripten_bind_b2MouseJointDef_set_userData_1,id=e._emscripten_bind_JSDraw_DrawSegment_3=i._emscripten_bind_JSDraw_DrawSegment_3,jd=e._emscripten_bind_b2FixtureDef_set_restitution_1= i._emscripten_bind_b2FixtureDef_set_restitution_1,kd=e._emscripten_bind_b2MotorJointDef_Initialize_2=i._emscripten_bind_b2MotorJointDef_Initialize_2,ld=e._emscripten_bind_b2EdgeShape_GetChildCount_0=i._emscripten_bind_b2EdgeShape_GetChildCount_0,md=e._emscripten_bind_b2Mat33_get_ey_0=i._emscripten_bind_b2Mat33_get_ey_0,nd=e._emscripten_bind_b2MouseJoint_IsActive_0=i._emscripten_bind_b2MouseJoint_IsActive_0,od=e._emscripten_bind_b2World_GetGravity_0=i._emscripten_bind_b2World_GetGravity_0,pd=e._emscripten_bind_b2World_DrawDebugData_0= i._emscripten_bind_b2World_DrawDebugData_0,qd=e._emscripten_bind_b2Profile_get_broadphase_0=i._emscripten_bind_b2Profile_get_broadphase_0,rd=e._emscripten_bind_b2PulleyJointDef_get_bodyA_0=i._emscripten_bind_b2PulleyJointDef_get_bodyA_0,sd=e._emscripten_bind_b2PrismaticJoint_SetLimits_2=i._emscripten_bind_b2PrismaticJoint_SetLimits_2,td=e._emscripten_bind_b2PulleyJointDef_get_localAnchorA_0=i._emscripten_bind_b2PulleyJointDef_get_localAnchorA_0,ud=e._emscripten_bind_b2DistanceJoint_GetAnchorA_0=i._emscripten_bind_b2DistanceJoint_GetAnchorA_0, vd=e._emscripten_bind_b2ManifoldPoint_set_tangentImpulse_1=i._emscripten_bind_b2ManifoldPoint_set_tangentImpulse_1,wd=e._emscripten_bind_b2PolygonShape_get_m_count_0=i._emscripten_bind_b2PolygonShape_get_m_count_0,xd=e._emscripten_bind_b2RopeJointDef_set_collideConnected_1=i._emscripten_bind_b2RopeJointDef_set_collideConnected_1,yd=e._emscripten_bind_b2CircleShape_set_m_p_1=i._emscripten_bind_b2CircleShape_set_m_p_1,zd=e._emscripten_bind_JSContactListener_EndContact_1=i._emscripten_bind_JSContactListener_EndContact_1, Ad=e._emscripten_bind_b2MassData_set_mass_1=i._emscripten_bind_b2MassData_set_mass_1,Bd=e._emscripten_bind_b2Vec3_get_x_0=i._emscripten_bind_b2Vec3_get_x_0,Cd=e._emscripten_bind_b2ChainShape_CreateChain_2=i._emscripten_bind_b2ChainShape_CreateChain_2,Dd=e._emscripten_bind_b2Color_get_r_0=i._emscripten_bind_b2Color_get_r_0,Ed=e._emscripten_bind_b2World_DestroyBody_1=i._emscripten_bind_b2World_DestroyBody_1,Fd=e._emscripten_bind_b2Profile_get_solvePosition_0=i._emscripten_bind_b2Profile_get_solvePosition_0, Gd=e._emscripten_bind_b2Shape_RayCast_4=i._emscripten_bind_b2Shape_RayCast_4,Hd=e._emscripten_bind_b2PulleyJoint_GetGroundAnchorA_0=i._emscripten_bind_b2PulleyJoint_GetGroundAnchorA_0,Id=e._emscripten_bind_b2Mat33___destroy___0=i._emscripten_bind_b2Mat33___destroy___0,Jd=e._emscripten_bind_b2GearJoint_GetReactionTorque_1=i._emscripten_bind_b2GearJoint_GetReactionTorque_1,Kd=e._emscripten_bind_b2WeldJointDef_set_collideConnected_1=i._emscripten_bind_b2WeldJointDef_set_collideConnected_1,Ld=e._emscripten_bind_b2Manifold_get_type_0= i._emscripten_bind_b2Manifold_get_type_0,Md=e._emscripten_bind_b2RevoluteJoint___destroy___0=i._emscripten_bind_b2RevoluteJoint___destroy___0,Nd=e._emscripten_bind_b2PulleyJointDef_b2PulleyJointDef_0=i._emscripten_bind_b2PulleyJointDef_b2PulleyJointDef_0,Od=e._emscripten_bind_b2World_SetAutoClearForces_1=i._emscripten_bind_b2World_SetAutoClearForces_1,Pd=e._emscripten_bind_b2PrismaticJointDef_set_lowerTranslation_1=i._emscripten_bind_b2PrismaticJointDef_set_lowerTranslation_1,Qd=e._emscripten_bind_b2BodyDef_set_position_1= i._emscripten_bind_b2BodyDef_set_position_1,Rd=e._emscripten_bind_b2Transform_get_q_0=i._emscripten_bind_b2Transform_get_q_0,Sd=e._emscripten_bind_b2FrictionJoint_GetMaxForce_0=i._emscripten_bind_b2FrictionJoint_GetMaxForce_0,Td=e._emscripten_bind_b2PolygonShape_set_m_count_1=i._emscripten_bind_b2PolygonShape_set_m_count_1,Ud=e._emscripten_bind_b2Contact_GetNext_0=i._emscripten_bind_b2Contact_GetNext_0,Vd=e._emscripten_bind_b2MotorJointDef_set_userData_1=i._emscripten_bind_b2MotorJointDef_set_userData_1, Wd=e._emscripten_bind_b2EdgeShape_get_m_type_0=i._emscripten_bind_b2EdgeShape_get_m_type_0,Xd=e._emscripten_bind_b2GearJoint_GetJoint1_0=i._emscripten_bind_b2GearJoint_GetJoint1_0,Yd=e._emscripten_bind_b2WheelJoint_GetMaxMotorTorque_0=i._emscripten_bind_b2WheelJoint_GetMaxMotorTorque_0,Zd=e._emscripten_bind_b2MotorJoint_SetMaxTorque_1=i._emscripten_bind_b2MotorJoint_SetMaxTorque_1,$d=e._emscripten_bind_b2GearJoint_GetAnchorA_0=i._emscripten_bind_b2GearJoint_GetAnchorA_0,ae=e._emscripten_enum_b2JointType_e_mouseJoint= i._emscripten_enum_b2JointType_e_mouseJoint,be=e._emscripten_bind_b2MouseJointDef_set_bodyA_1=i._emscripten_bind_b2MouseJointDef_set_bodyA_1,ce=e._emscripten_enum_b2JointType_e_revoluteJoint=i._emscripten_enum_b2JointType_e_revoluteJoint,de=e._emscripten_bind_b2World_SetContactListener_1=i._emscripten_bind_b2World_SetContactListener_1,ee=e._emscripten_bind_b2Body_IsAwake_0=i._emscripten_bind_b2Body_IsAwake_0,fe=e._emscripten_bind_b2JointEdge_set_other_1=i._emscripten_bind_b2JointEdge_set_other_1, ge=e._emscripten_bind_b2RevoluteJoint_IsMotorEnabled_0=i._emscripten_bind_b2RevoluteJoint_IsMotorEnabled_0,he=e._emscripten_bind_b2MouseJointDef_set_target_1=i._emscripten_bind_b2MouseJointDef_set_target_1,ie=e._emscripten_bind_b2MotorJoint_SetCorrectionFactor_1=i._emscripten_bind_b2MotorJoint_SetCorrectionFactor_1,je=e._emscripten_bind_b2FixtureDef_get_density_0=i._emscripten_bind_b2FixtureDef_get_density_0,ke=e._emscripten_bind_b2ChainShape_set_m_vertices_1=i._emscripten_bind_b2ChainShape_set_m_vertices_1, le=e._emscripten_bind_b2ChainShape_get_m_vertices_0=i._emscripten_bind_b2ChainShape_get_m_vertices_0,me=e._emscripten_bind_b2Rot_set_s_1=i._emscripten_bind_b2Rot_set_s_1,ne=e._emscripten_bind_b2MotorJointDef_get_collideConnected_0=i._emscripten_bind_b2MotorJointDef_get_collideConnected_0,oe=e._emscripten_bind_b2RevoluteJoint_GetUpperLimit_0=i._emscripten_bind_b2RevoluteJoint_GetUpperLimit_0,pe=e._emscripten_bind_b2WheelJointDef_set_bodyB_1=i._emscripten_bind_b2WheelJointDef_set_bodyB_1,qe=e._emscripten_bind_b2WheelJointDef_set_enableMotor_1= i._emscripten_bind_b2WheelJointDef_set_enableMotor_1,re=e._emscripten_bind_b2FixtureDef_get_userData_0=i._emscripten_bind_b2FixtureDef_get_userData_0,se=e._emscripten_bind_b2FrictionJointDef_set_collideConnected_1=i._emscripten_bind_b2FrictionJointDef_set_collideConnected_1,te=e._emscripten_bind_b2PrismaticJointDef_get_lowerTranslation_0=i._emscripten_bind_b2PrismaticJointDef_get_lowerTranslation_0,ue=e._emscripten_bind_b2GearJoint_GetCollideConnected_0=i._emscripten_bind_b2GearJoint_GetCollideConnected_0, ve=e._emscripten_bind_b2RevoluteJointDef_get_upperAngle_0=i._emscripten_bind_b2RevoluteJointDef_get_upperAngle_0,we=e._emscripten_bind_b2Body_ApplyAngularImpulse_2=i._emscripten_bind_b2Body_ApplyAngularImpulse_2,xe=e._emscripten_enum_b2JointType_e_frictionJoint=i._emscripten_enum_b2JointType_e_frictionJoint,ye=e._emscripten_bind_b2RayCastOutput_set_fraction_1=i._emscripten_bind_b2RayCastOutput_set_fraction_1,ze=e._emscripten_bind_b2Color_set_r_1=i._emscripten_bind_b2Color_set_r_1,Ae=e._emscripten_bind_b2DistanceJointDef_get_length_0= i._emscripten_bind_b2DistanceJointDef_get_length_0,Be=e._emscripten_bind_b2PulleyJoint_GetBodyB_0=i._emscripten_bind_b2PulleyJoint_GetBodyB_0,Ce=e._emscripten_bind_b2WheelJointDef_set_type_1=i._emscripten_bind_b2WheelJointDef_set_type_1,De=e._emscripten_bind_b2World_GetTreeQuality_0=i._emscripten_bind_b2World_GetTreeQuality_0,Ee=e._emscripten_bind_b2BodyDef_set_gravityScale_1=i._emscripten_bind_b2BodyDef_set_gravityScale_1,Fe=e._emscripten_bind_b2RopeJointDef_set_bodyB_1=i._emscripten_bind_b2RopeJointDef_set_bodyB_1, Ge=e._emscripten_bind_b2PrismaticJoint_GetLowerLimit_0=i._emscripten_bind_b2PrismaticJoint_GetLowerLimit_0,He=e._emscripten_bind_b2AABB_get_lowerBound_0=i._emscripten_bind_b2AABB_get_lowerBound_0,Ie=e._emscripten_bind_b2WheelJoint_SetMotorSpeed_1=i._emscripten_bind_b2WheelJoint_SetMotorSpeed_1,Je=e._emscripten_bind_b2PrismaticJointDef_get_referenceAngle_0=i._emscripten_bind_b2PrismaticJointDef_get_referenceAngle_0,Ke=e._emscripten_bind_b2Body_SetMassData_1=i._emscripten_bind_b2Body_SetMassData_1, Le=e._emscripten_bind_b2BodyDef_get_angularVelocity_0=i._emscripten_bind_b2BodyDef_get_angularVelocity_0,Me=e._emscripten_bind_b2WeldJoint_SetDampingRatio_1=i._emscripten_bind_b2WeldJoint_SetDampingRatio_1,Ne=e._emscripten_bind_b2PrismaticJointDef___destroy___0=i._emscripten_bind_b2PrismaticJointDef___destroy___0,Oe=e._emscripten_bind_b2Contact_IsTouching_0=i._emscripten_bind_b2Contact_IsTouching_0,Pe=e._emscripten_bind_b2Draw_SetFlags_1=i._emscripten_bind_b2Draw_SetFlags_1,Qe=e._emscripten_bind_b2AABB_Contains_1= i._emscripten_bind_b2AABB_Contains_1,Re=e._emscripten_bind_b2DistanceJoint_GetNext_0=i._emscripten_bind_b2DistanceJoint_GetNext_0,Se=e._emscripten_bind_b2GearJoint_GetReactionForce_1=i._emscripten_bind_b2GearJoint_GetReactionForce_1,Te=e._emscripten_bind_b2PrismaticJoint_GetNext_0=i._emscripten_bind_b2PrismaticJoint_GetNext_0,Ue=e._emscripten_bind_b2Filter_get_groupIndex_0=i._emscripten_bind_b2Filter_get_groupIndex_0,Ve=e._emscripten_bind_b2PrismaticJoint_GetType_0=i._emscripten_bind_b2PrismaticJoint_GetType_0, We=e._emscripten_bind_b2Fixture_GetRestitution_0=i._emscripten_bind_b2Fixture_GetRestitution_0,Xe=e._emscripten_bind_b2Transform_set_q_1=i._emscripten_bind_b2Transform_set_q_1,Ye=e._emscripten_bind_b2PolygonShape___destroy___0=i._emscripten_bind_b2PolygonShape___destroy___0,Ze=e._emscripten_bind_b2AABB_get_upperBound_0=i._emscripten_bind_b2AABB_get_upperBound_0,$e=e._emscripten_bind_b2Transform___destroy___0=i._emscripten_bind_b2Transform___destroy___0,af=e._emscripten_bind_b2WeldJointDef_set_localAnchorB_1= i._emscripten_bind_b2WeldJointDef_set_localAnchorB_1,bf=e._emscripten_bind_b2CircleShape_set_m_radius_1=i._emscripten_bind_b2CircleShape_set_m_radius_1,cf=e._emscripten_bind_b2EdgeShape_set_m_hasVertex0_1=i._emscripten_bind_b2EdgeShape_set_m_hasVertex0_1,df=e._emscripten_bind_b2RopeJoint_GetMaxLength_0=i._emscripten_bind_b2RopeJoint_GetMaxLength_0,ef=e._emscripten_bind_b2GearJoint_GetUserData_0=i._emscripten_bind_b2GearJoint_GetUserData_0,ff=e._emscripten_bind_b2MotorJoint_GetCollideConnected_0=i._emscripten_bind_b2MotorJoint_GetCollideConnected_0, gf=e._emscripten_bind_b2GearJointDef_set_type_1=i._emscripten_bind_b2GearJointDef_set_type_1,hf=e._emscripten_bind_b2DistanceJoint_SetDampingRatio_1=i._emscripten_bind_b2DistanceJoint_SetDampingRatio_1,jf=e._emscripten_bind_b2Contact_GetFixtureA_0=i._emscripten_bind_b2Contact_GetFixtureA_0,kf=e._emscripten_bind_b2QueryCallback___destroy___0=i._emscripten_bind_b2QueryCallback___destroy___0,lf=e._emscripten_bind_b2PulleyJointDef_get_ratio_0=i._emscripten_bind_b2PulleyJointDef_get_ratio_0,mf=e._emscripten_bind_b2PrismaticJointDef_get_localAnchorB_0= i._emscripten_bind_b2PrismaticJointDef_get_localAnchorB_0,nf=e._emscripten_bind_b2CircleShape_set_m_type_1=i._emscripten_bind_b2CircleShape_set_m_type_1,of=e._emscripten_enum_b2ShapeType_e_typeCount=i._emscripten_enum_b2ShapeType_e_typeCount,pf=e._emscripten_bind_b2Body_SetTransform_2=i._emscripten_bind_b2Body_SetTransform_2,qf=e._emscripten_bind_b2RopeJoint_GetAnchorB_0=i._emscripten_bind_b2RopeJoint_GetAnchorB_0,rf=e._emscripten_bind_b2AABB_set_upperBound_1=i._emscripten_bind_b2AABB_set_upperBound_1, sf=e._emscripten_bind_b2MouseJointDef_get_collideConnected_0=i._emscripten_bind_b2MouseJointDef_get_collideConnected_0,tf=e._emscripten_bind_b2ContactImpulse___destroy___0=i._emscripten_bind_b2ContactImpulse___destroy___0,uf=e._emscripten_bind_b2PrismaticJointDef_b2PrismaticJointDef_0=i._emscripten_bind_b2PrismaticJointDef_b2PrismaticJointDef_0,vf=e._emscripten_bind_b2Vec2_set_x_1=i._emscripten_bind_b2Vec2_set_x_1,wf=e._emscripten_bind_b2RayCastInput___destroy___0=i._emscripten_bind_b2RayCastInput___destroy___0, xf=e._emscripten_bind_b2Body_ApplyForceToCenter_2=i._emscripten_bind_b2Body_ApplyForceToCenter_2,yf=e._emscripten_bind_JSDestructionListener_JSDestructionListener_0=i._emscripten_bind_JSDestructionListener_JSDestructionListener_0,zf=e._emscripten_bind_b2WheelJointDef_set_localAnchorA_1=i._emscripten_bind_b2WheelJointDef_set_localAnchorA_1,Af=e._emscripten_bind_b2FrictionJoint_GetBodyB_0=i._emscripten_bind_b2FrictionJoint_GetBodyB_0,Bf=e._emscripten_bind_b2DistanceJointDef_get_bodyA_0=i._emscripten_bind_b2DistanceJointDef_get_bodyA_0, Cf=e._emscripten_bind_b2WeldJointDef_set_bodyA_1=i._emscripten_bind_b2WeldJointDef_set_bodyA_1,Df=e._emscripten_bind_b2World_SetDestructionListener_1=i._emscripten_bind_b2World_SetDestructionListener_1,Ef=e._emscripten_bind_b2RevoluteJoint_GetJointSpeed_0=i._emscripten_bind_b2RevoluteJoint_GetJointSpeed_0,Ff=e._emscripten_bind_b2WheelJoint_GetLocalAnchorB_0=i._emscripten_bind_b2WheelJoint_GetLocalAnchorB_0,Gf=e._emscripten_bind_b2JointDef___destroy___0=i._emscripten_bind_b2JointDef___destroy___0, Hf=e._emscripten_bind_b2PrismaticJointDef_Initialize_4=i._emscripten_bind_b2PrismaticJointDef_Initialize_4,If=e._emscripten_bind_b2FrictionJointDef_get_localAnchorA_0=i._emscripten_bind_b2FrictionJointDef_get_localAnchorA_0,Jf=e._emscripten_bind_b2CircleShape_GetChildCount_0=i._emscripten_bind_b2CircleShape_GetChildCount_0,Kf=e._emscripten_bind_b2BodyDef_get_bullet_0=i._emscripten_bind_b2BodyDef_get_bullet_0,Lf=e._emscripten_bind_b2ManifoldPoint_get_localPoint_0=i._emscripten_bind_b2ManifoldPoint_get_localPoint_0, Mf=e._emscripten_bind_b2PrismaticJointDef_get_type_0=i._emscripten_bind_b2PrismaticJointDef_get_type_0,Nf=e._emscripten_bind_b2MassData_get_center_0=i._emscripten_bind_b2MassData_get_center_0,Of=e._emscripten_bind_b2World_b2World_1=i._emscripten_bind_b2World_b2World_1,Pf=e._emscripten_bind_b2WheelJoint_GetReactionForce_1=i._emscripten_bind_b2WheelJoint_GetReactionForce_1,Qf=e._emscripten_bind_b2World_SetSubStepping_1=i._emscripten_bind_b2World_SetSubStepping_1,Rf=e._emscripten_bind_b2Vec2_op_add_1= i._emscripten_bind_b2Vec2_op_add_1,Sf=e._emscripten_bind_b2Joint_GetBodyA_0=i._emscripten_bind_b2Joint_GetBodyA_0,Tf=e._emscripten_bind_b2Joint_GetCollideConnected_0=i._emscripten_bind_b2Joint_GetCollideConnected_0,Uf=e._emscripten_bind_b2MotorJoint_GetReactionTorque_1=i._emscripten_bind_b2MotorJoint_GetReactionTorque_1,Vf=e._emscripten_bind_b2WheelJoint_IsMotorEnabled_0=i._emscripten_bind_b2WheelJoint_IsMotorEnabled_0,Wf=e._emscripten_bind_b2WheelJointDef___destroy___0=i._emscripten_bind_b2WheelJointDef___destroy___0, Xf=e._emscripten_bind_b2Vec3_SetZero_0=i._emscripten_bind_b2Vec3_SetZero_0,Yf=e._emscripten_enum_b2JointType_e_pulleyJoint=i._emscripten_enum_b2JointType_e_pulleyJoint,Zf=e._emscripten_bind_b2ChainShape_get_m_nextVertex_0=i._emscripten_bind_b2ChainShape_get_m_nextVertex_0,$f=e._emscripten_bind_b2Contact_SetEnabled_1=i._emscripten_bind_b2Contact_SetEnabled_1,ag=e._emscripten_bind_b2Shape_set_m_radius_1=i._emscripten_bind_b2Shape_set_m_radius_1,bg=e._emscripten_bind_b2GearJointDef_get_joint2_0=i._emscripten_bind_b2GearJointDef_get_joint2_0, cg=e._emscripten_bind_b2World_SetDebugDraw_1=i._emscripten_bind_b2World_SetDebugDraw_1,dg=e._emscripten_bind_b2ContactID_set_key_1=i._emscripten_bind_b2ContactID_set_key_1,eg=e._emscripten_bind_b2RevoluteJointDef_set_collideConnected_1=i._emscripten_bind_b2RevoluteJointDef_set_collideConnected_1,ab=e._malloc=i._malloc,fg=e._emscripten_bind_b2World_GetProxyCount_0=i._emscripten_bind_b2World_GetProxyCount_0,gg=e._emscripten_bind_b2Vec2_Normalize_0=i._emscripten_bind_b2Vec2_Normalize_0,hg=e._emscripten_bind_b2WheelJoint_GetJointSpeed_0= i._emscripten_bind_b2WheelJoint_GetJointSpeed_0,ig=e._emscripten_bind_b2FrictionJointDef_set_localAnchorA_1=i._emscripten_bind_b2FrictionJointDef_set_localAnchorA_1,jg=e._emscripten_bind_b2GearJoint_GetRatio_0=i._emscripten_bind_b2GearJoint_GetRatio_0,kg=e._emscripten_bind_JSRayCastCallback_JSRayCastCallback_0=i._emscripten_bind_JSRayCastCallback_JSRayCastCallback_0,lg=e._emscripten_bind_b2RayCastInput_set_p2_1=i._emscripten_bind_b2RayCastInput_set_p2_1,mg=e._emscripten_bind_b2RevoluteJointDef_get_motorSpeed_0= i._emscripten_bind_b2RevoluteJointDef_get_motorSpeed_0,ng=e._emscripten_bind_b2RayCastOutput_get_normal_0=i._emscripten_bind_b2RayCastOutput_get_normal_0,og=e._emscripten_bind_b2WeldJoint_GetBodyA_0=i._emscripten_bind_b2WeldJoint_GetBodyA_0,pg=e._emscripten_bind_b2MotorJointDef_set_maxForce_1=i._emscripten_bind_b2MotorJointDef_set_maxForce_1,qg=e._emscripten_enum_b2DrawFlag_e_jointBit=i._emscripten_enum_b2DrawFlag_e_jointBit,rg=e._emscripten_bind_b2FixtureDef_get_isSensor_0=i._emscripten_bind_b2FixtureDef_get_isSensor_0, sg=e._emscripten_bind_b2PulleyJointDef_set_bodyB_1=i._emscripten_bind_b2PulleyJointDef_set_bodyB_1,tg=e._emscripten_bind_b2WheelJoint_EnableMotor_1=i._emscripten_bind_b2WheelJoint_EnableMotor_1,ug=e._emscripten_bind_b2WheelJoint_GetLocalAnchorA_0=i._emscripten_bind_b2WheelJoint_GetLocalAnchorA_0,vg=e._emscripten_bind_JSDraw_DrawSolidPolygon_3=i._emscripten_bind_JSDraw_DrawSolidPolygon_3,wg=e._emscripten_bind_b2Rot_Set_1=i._emscripten_bind_b2Rot_Set_1,xg=e._emscripten_bind_b2ContactFeature_set_typeB_1= i._emscripten_bind_b2ContactFeature_set_typeB_1,yg=e._emscripten_bind_JSDraw___destroy___0=i._emscripten_bind_JSDraw___destroy___0,zg=e._emscripten_bind_b2MouseJointDef___destroy___0=i._emscripten_bind_b2MouseJointDef___destroy___0,Ag=e._emscripten_bind_b2Mat33_Solve22_1=i._emscripten_bind_b2Mat33_Solve22_1,Bg=e._emscripten_bind_b2Profile_set_solvePosition_1=i._emscripten_bind_b2Profile_set_solvePosition_1,Cg=e._emscripten_bind_b2ContactFilter___destroy___0=i._emscripten_bind_b2ContactFilter___destroy___0, Dg=e._emscripten_bind_b2PulleyJointDef_get_localAnchorB_0=i._emscripten_bind_b2PulleyJointDef_get_localAnchorB_0,Eg=e._emscripten_bind_b2ChainShape_set_m_hasPrevVertex_1=i._emscripten_bind_b2ChainShape_set_m_hasPrevVertex_1,Fg=e._emscripten_bind_b2PrismaticJoint___destroy___0=i._emscripten_bind_b2PrismaticJoint___destroy___0,Gg=e._emscripten_bind_b2World_CreateJoint_1=i._emscripten_bind_b2World_CreateJoint_1,Hg=e._emscripten_bind_b2Profile_get_solveTOI_0=i._emscripten_bind_b2Profile_get_solveTOI_0, Ig=e._emscripten_bind_b2ManifoldPoint_get_id_0=i._emscripten_bind_b2ManifoldPoint_get_id_0,Jg=e._emscripten_bind_b2Manifold_set_pointCount_1=i._emscripten_bind_b2Manifold_set_pointCount_1,Kg=e._emscripten_bind_b2PrismaticJoint_GetMotorSpeed_0=i._emscripten_bind_b2PrismaticJoint_GetMotorSpeed_0,Lg=e._emscripten_bind_b2Body_SetSleepingAllowed_1=i._emscripten_bind_b2Body_SetSleepingAllowed_1,Mg=e._emscripten_bind_b2Rot_SetIdentity_0=i._emscripten_bind_b2Rot_SetIdentity_0,Ng=e._emscripten_bind_b2PulleyJoint_GetGroundAnchorB_0= i._emscripten_bind_b2PulleyJoint_GetGroundAnchorB_0,Og=e._emscripten_bind_b2Vec3_op_add_1=i._emscripten_bind_b2Vec3_op_add_1,Pg=e._emscripten_bind_b2FrictionJoint_GetType_0=i._emscripten_bind_b2FrictionJoint_GetType_0,Qg=e._emscripten_bind_b2DistanceJointDef_set_dampingRatio_1=i._emscripten_bind_b2DistanceJointDef_set_dampingRatio_1,Rg=e._emscripten_bind_b2MotorJoint_GetBodyA_0=i._emscripten_bind_b2MotorJoint_GetBodyA_0,Sg=e._emscripten_bind_b2MouseJointDef_get_dampingRatio_0=i._emscripten_bind_b2MouseJointDef_get_dampingRatio_0, Tg=e._emscripten_bind_b2RevoluteJoint_GetMotorSpeed_0=i._emscripten_bind_b2RevoluteJoint_GetMotorSpeed_0,Ug=e._emscripten_bind_b2ChainShape_set_m_type_1=i._emscripten_bind_b2ChainShape_set_m_type_1,Vg=e._emscripten_bind_b2RevoluteJointDef_set_bodyB_1=i._emscripten_bind_b2RevoluteJointDef_set_bodyB_1,Wg=e._emscripten_bind_b2Body_GetGravityScale_0=i._emscripten_bind_b2Body_GetGravityScale_0,Xg=e._emscripten_bind_b2GearJointDef_get_bodyB_0=i._emscripten_bind_b2GearJointDef_get_bodyB_0,Yg=e._emscripten_bind_b2Mat33_b2Mat33_0= i._emscripten_bind_b2Mat33_b2Mat33_0,Zg=e._emscripten_bind_b2MouseJointDef_get_bodyB_0=i._emscripten_bind_b2MouseJointDef_get_bodyB_0,$g=e._emscripten_bind_b2Shape_TestPoint_2=i._emscripten_bind_b2Shape_TestPoint_2,ah=e._emscripten_bind_b2Body_GetWorldVector_1=i._emscripten_bind_b2Body_GetWorldVector_1,bh=e._emscripten_bind_b2WeldJointDef_get_frequencyHz_0=i._emscripten_bind_b2WeldJointDef_get_frequencyHz_0,ch=e._emscripten_bind_b2PolygonShape_Set_2=i._emscripten_bind_b2PolygonShape_Set_2,dh=e._emscripten_bind_b2Manifold___destroy___0= i._emscripten_bind_b2Manifold___destroy___0,eh=e._emscripten_bind_b2PulleyJointDef_set_lengthA_1=i._emscripten_bind_b2PulleyJointDef_set_lengthA_1,fh=e._emscripten_bind_b2RevoluteJointDef_set_localAnchorA_1=i._emscripten_bind_b2RevoluteJointDef_set_localAnchorA_1,gh=e._emscripten_bind_b2GearJoint___destroy___0=i._emscripten_bind_b2GearJoint___destroy___0,hh=e._emscripten_bind_b2RevoluteJoint_GetJointAngle_0=i._emscripten_bind_b2RevoluteJoint_GetJointAngle_0,ih=e._emscripten_bind_b2PulleyJointDef_set_ratio_1= i._emscripten_bind_b2PulleyJointDef_set_ratio_1,jh=e._emscripten_bind_b2JointEdge_set_prev_1=i._emscripten_bind_b2JointEdge_set_prev_1,kh=e._emscripten_bind_b2PrismaticJoint_GetReactionTorque_1=i._emscripten_bind_b2PrismaticJoint_GetReactionTorque_1,lh=e._emscripten_bind_b2Body_GetLocalPoint_1=i._emscripten_bind_b2Body_GetLocalPoint_1,mh=e._emscripten_bind_b2PrismaticJoint_GetCollideConnected_0=i._emscripten_bind_b2PrismaticJoint_GetCollideConnected_0,nh=e._emscripten_bind_b2RopeJointDef_get_userData_0= i._emscripten_bind_b2RopeJointDef_get_userData_0,oh=e._emscripten_bind_b2DistanceJoint_IsActive_0=i._emscripten_bind_b2DistanceJoint_IsActive_0,ph=e._emscripten_bind_b2MotorJointDef_set_angularOffset_1=i._emscripten_bind_b2MotorJointDef_set_angularOffset_1,qh=e._emscripten_bind_b2Vec2_b2Vec2_2=i._emscripten_bind_b2Vec2_b2Vec2_2,rh=e._emscripten_bind_b2PrismaticJoint_GetJointTranslation_0=i._emscripten_bind_b2PrismaticJoint_GetJointTranslation_0,sh=e._emscripten_bind_b2Vec2_b2Vec2_0=i._emscripten_bind_b2Vec2_b2Vec2_0, th=e._emscripten_bind_b2DistanceJoint_GetAnchorB_0=i._emscripten_bind_b2DistanceJoint_GetAnchorB_0,uh=e._emscripten_bind_b2WheelJointDef_get_maxMotorTorque_0=i._emscripten_bind_b2WheelJointDef_get_maxMotorTorque_0,vh=e._emscripten_bind_b2Vec2_op_sub_1=i._emscripten_bind_b2Vec2_op_sub_1,wh=e._emscripten_bind_b2CircleShape_get_m_p_0=i._emscripten_bind_b2CircleShape_get_m_p_0,xh=e._emscripten_bind_b2ContactFeature_get_indexA_0=i._emscripten_bind_b2ContactFeature_get_indexA_0,yh=e._emscripten_bind_b2MotorJointDef_b2MotorJointDef_0= i._emscripten_bind_b2MotorJointDef_b2MotorJointDef_0,zh=e._emscripten_bind_b2ChainShape_set_m_nextVertex_1=i._emscripten_bind_b2ChainShape_set_m_nextVertex_1,Ah=e._emscripten_bind_b2PulleyJoint_GetCollideConnected_0=i._emscripten_bind_b2PulleyJoint_GetCollideConnected_0,Bh=e._emscripten_bind_b2PulleyJoint_GetAnchorB_0=i._emscripten_bind_b2PulleyJoint_GetAnchorB_0,Ch=e._emscripten_bind_b2Mat33_get_ex_0=i._emscripten_bind_b2Mat33_get_ex_0,Dh=e._emscripten_bind_b2Body_GetPosition_0=i._emscripten_bind_b2Body_GetPosition_0, Eh=e._emscripten_bind_b2Profile___destroy___0=i._emscripten_bind_b2Profile___destroy___0,Fh=e._emscripten_bind_b2ContactEdge_get_prev_0=i._emscripten_bind_b2ContactEdge_get_prev_0,Gh=e._emscripten_bind_b2DistanceJoint_SetFrequency_1=i._emscripten_bind_b2DistanceJoint_SetFrequency_1,Hh=e._emscripten_enum_b2ShapeType_e_chain=i._emscripten_enum_b2ShapeType_e_chain,Ih=e._emscripten_enum_b2ContactFeatureType_e_vertex=i._emscripten_enum_b2ContactFeatureType_e_vertex,Jh=e._emscripten_bind_b2Fixture_GetBody_0= i._emscripten_bind_b2Fixture_GetBody_0,Kh=e._emscripten_bind_b2ContactImpulse_set_count_1=i._emscripten_bind_b2ContactImpulse_set_count_1,Lh=e._emscripten_bind_b2PulleyJointDef_get_bodyB_0=i._emscripten_bind_b2PulleyJointDef_get_bodyB_0,Mh=e._emscripten_bind_b2Rot_set_c_1=i._emscripten_bind_b2Rot_set_c_1,Nh=e._emscripten_bind_b2RevoluteJoint_GetReactionTorque_1=i._emscripten_bind_b2RevoluteJoint_GetReactionTorque_1,Oh=e._emscripten_bind_b2Fixture_SetDensity_1=i._emscripten_bind_b2Fixture_SetDensity_1, Ph=e._emscripten_bind_b2ChainShape_get_m_prevVertex_0=i._emscripten_bind_b2ChainShape_get_m_prevVertex_0,Qh=e._emscripten_bind_b2World_ClearForces_0=i._emscripten_bind_b2World_ClearForces_0,Rh=e._emscripten_bind_b2Vec3___destroy___0=i._emscripten_bind_b2Vec3___destroy___0,Sh=e._emscripten_bind_b2WheelJointDef_set_userData_1=i._emscripten_bind_b2WheelJointDef_set_userData_1,Th=e._emscripten_bind_b2WeldJoint_SetFrequency_1=i._emscripten_bind_b2WeldJoint_SetFrequency_1,Uh=e._emscripten_bind_b2WheelJoint_SetSpringFrequencyHz_1= i._emscripten_bind_b2WheelJoint_SetSpringFrequencyHz_1,Vh=e._emscripten_bind_b2Body_SetFixedRotation_1=i._emscripten_bind_b2Body_SetFixedRotation_1,Wh=e._emscripten_bind_b2RayCastOutput_set_normal_1=i._emscripten_bind_b2RayCastOutput_set_normal_1,Xh=e._emscripten_bind_b2DistanceJoint_GetDampingRatio_0=i._emscripten_bind_b2DistanceJoint_GetDampingRatio_0,Yh=e._emscripten_bind_b2WeldJointDef_set_userData_1=i._emscripten_bind_b2WeldJointDef_set_userData_1,Zh=e._emscripten_bind_b2Body_GetMassData_1=i._emscripten_bind_b2Body_GetMassData_1, $h=e._emscripten_bind_b2MouseJointDef_set_bodyB_1=i._emscripten_bind_b2MouseJointDef_set_bodyB_1,ai=e._emscripten_bind_b2CircleShape_GetType_0=i._emscripten_bind_b2CircleShape_GetType_0,bi=e._emscripten_bind_b2PolygonShape_GetType_0=i._emscripten_bind_b2PolygonShape_GetType_0,ci=e._emscripten_bind_b2PrismaticJointDef_set_referenceAngle_1=i._emscripten_bind_b2PrismaticJointDef_set_referenceAngle_1,di=e._emscripten_bind_b2RopeJointDef_get_collideConnected_0=i._emscripten_bind_b2RopeJointDef_get_collideConnected_0, ei=e._emscripten_bind_b2FixtureDef_set_filter_1=i._emscripten_bind_b2FixtureDef_set_filter_1,fi=e._emscripten_bind_b2PulleyJointDef_get_groundAnchorA_0=i._emscripten_bind_b2PulleyJointDef_get_groundAnchorA_0,gi=e._emscripten_bind_b2Fixture_SetFilterData_1=i._emscripten_bind_b2Fixture_SetFilterData_1,hi=e._emscripten_bind_b2FrictionJointDef_get_userData_0=i._emscripten_bind_b2FrictionJointDef_get_userData_0,ii=e._emscripten_bind_b2RayCastCallback___destroy___0=i._emscripten_bind_b2RayCastCallback___destroy___0, ji=e._emscripten_bind_b2PulleyJointDef_set_localAnchorA_1=i._emscripten_bind_b2PulleyJointDef_set_localAnchorA_1,ki=e._emscripten_bind_b2MotorJoint_SetUserData_1=i._emscripten_bind_b2MotorJoint_SetUserData_1,li=e._emscripten_bind_b2PrismaticJoint_GetLocalAxisA_0=i._emscripten_bind_b2PrismaticJoint_GetLocalAxisA_0,mi=e._emscripten_bind_b2MotorJoint_GetBodyB_0=i._emscripten_bind_b2MotorJoint_GetBodyB_0,ni=e._emscripten_bind_b2Transform_Set_2=i._emscripten_bind_b2Transform_Set_2,oi=e._emscripten_bind_b2MouseJoint_SetTarget_1= i._emscripten_bind_b2MouseJoint_SetTarget_1,pi=e._emscripten_bind_b2RopeJointDef_get_localAnchorA_0=i._emscripten_bind_b2RopeJointDef_get_localAnchorA_0,qi=e._emscripten_bind_b2ContactEdge_set_contact_1=i._emscripten_bind_b2ContactEdge_set_contact_1,ri=e._emscripten_bind_b2RevoluteJointDef_get_enableLimit_0=i._emscripten_bind_b2RevoluteJointDef_get_enableLimit_0,si=e._emscripten_bind_b2CircleShape_get_m_radius_0=i._emscripten_bind_b2CircleShape_get_m_radius_0,ti=e._emscripten_bind_b2RevoluteJoint_GetUserData_0= i._emscripten_bind_b2RevoluteJoint_GetUserData_0,ui=e._emscripten_bind_b2Profile_set_solveTOI_1=i._emscripten_bind_b2Profile_set_solveTOI_1,vi=e._emscripten_bind_b2PrismaticJointDef_set_type_1=i._emscripten_bind_b2PrismaticJointDef_set_type_1,wi=e._emscripten_bind_b2GearJointDef_get_userData_0=i._emscripten_bind_b2GearJointDef_get_userData_0,xi=e._emscripten_bind_b2RevoluteJoint_GetAnchorB_0=i._emscripten_bind_b2RevoluteJoint_GetAnchorB_0,yi=e._emscripten_bind_b2FrictionJointDef___destroy___0=i._emscripten_bind_b2FrictionJointDef___destroy___0, zi=e._emscripten_bind_b2PrismaticJoint_GetReactionForce_1=i._emscripten_bind_b2PrismaticJoint_GetReactionForce_1,Ai=e._emscripten_bind_b2Transform_b2Transform_0=i._emscripten_bind_b2Transform_b2Transform_0,Bi=e._emscripten_bind_b2MouseJoint_GetCollideConnected_0=i._emscripten_bind_b2MouseJoint_GetCollideConnected_0,Ci=e._emscripten_enum_b2LimitState_e_equalLimits=i._emscripten_enum_b2LimitState_e_equalLimits,Di=e._emscripten_bind_b2ManifoldPoint_set_normalImpulse_1=i._emscripten_bind_b2ManifoldPoint_set_normalImpulse_1, Ei=e._emscripten_bind_b2Body_GetContactList_0=i._emscripten_bind_b2Body_GetContactList_0,Fi=e._emscripten_bind_b2Body_IsFixedRotation_0=i._emscripten_bind_b2Body_IsFixedRotation_0,Gi=e._emscripten_enum_b2DrawFlag_e_shapeBit=i._emscripten_enum_b2DrawFlag_e_shapeBit,Hi=e._emscripten_bind_b2Contact_GetFriction_0=i._emscripten_bind_b2Contact_GetFriction_0,Ii=e._emscripten_bind_b2WheelJoint_GetAnchorB_0=i._emscripten_bind_b2WheelJoint_GetAnchorB_0,Ji=e._emscripten_bind_b2DistanceJointDef_set_length_1= i._emscripten_bind_b2DistanceJointDef_set_length_1,Ki=e._emscripten_bind_b2DistanceJoint_GetLocalAnchorB_0=i._emscripten_bind_b2DistanceJoint_GetLocalAnchorB_0,Li=e._emscripten_bind_b2FrictionJoint_GetLocalAnchorB_0=i._emscripten_bind_b2FrictionJoint_GetLocalAnchorB_0,Mi=e._emscripten_bind_b2Mat33_set_ey_1=i._emscripten_bind_b2Mat33_set_ey_1,Ni=e._emscripten_bind_b2DistanceJointDef_get_type_0=i._emscripten_bind_b2DistanceJointDef_get_type_0,Oi=e._emscripten_bind_b2Draw_ClearFlags_1=i._emscripten_bind_b2Draw_ClearFlags_1, Pi=e._emscripten_bind_b2Body_IsActive_0=i._emscripten_bind_b2Body_IsActive_0,Qi=e._emscripten_bind_b2Contact_ResetRestitution_0=i._emscripten_bind_b2Contact_ResetRestitution_0,Ri=e._emscripten_bind_b2World_GetAllowSleeping_0=i._emscripten_bind_b2World_GetAllowSleeping_0,Si=e._emscripten_bind_b2ManifoldPoint_b2ManifoldPoint_0=i._emscripten_bind_b2ManifoldPoint_b2ManifoldPoint_0,Ti=e._emscripten_bind_b2PrismaticJointDef_set_maxMotorForce_1=i._emscripten_bind_b2PrismaticJointDef_set_maxMotorForce_1, Ui=e._emscripten_bind_b2GearJointDef_set_bodyA_1=i._emscripten_bind_b2GearJointDef_set_bodyA_1,Vi=e._emscripten_bind_b2RevoluteJointDef_set_enableMotor_1=i._emscripten_bind_b2RevoluteJointDef_set_enableMotor_1,Wi=e._emscripten_bind_b2PulleyJoint_IsActive_0=i._emscripten_bind_b2PulleyJoint_IsActive_0,Xi=e._emscripten_bind_b2MouseJoint_GetNext_0=i._emscripten_bind_b2MouseJoint_GetNext_0,Yi=e._emscripten_bind_b2Transform_set_p_1=i._emscripten_bind_b2Transform_set_p_1,Zi=e._emscripten_bind_b2EdgeShape_set_m_vertex0_1= i._emscripten_bind_b2EdgeShape_set_m_vertex0_1,$i=e._emscripten_bind_b2PulleyJointDef_get_lengthB_0=i._emscripten_bind_b2PulleyJointDef_get_lengthB_0,aj=e._emscripten_bind_b2WeldJoint_SetUserData_1=i._emscripten_bind_b2WeldJoint_SetUserData_1,bj=e._emscripten_bind_b2Fixture_SetSensor_1=i._emscripten_bind_b2Fixture_SetSensor_1,cj=e._emscripten_bind_b2GearJointDef_get_joint1_0=i._emscripten_bind_b2GearJointDef_get_joint1_0,dj=e._emscripten_bind_b2PrismaticJoint_GetMotorForce_1=i._emscripten_bind_b2PrismaticJoint_GetMotorForce_1, ej=e._emscripten_bind_b2DistanceJoint_GetBodyA_0=i._emscripten_bind_b2DistanceJoint_GetBodyA_0,fj=e._emscripten_bind_b2GearJoint_IsActive_0=i._emscripten_bind_b2GearJoint_IsActive_0,gj=e._emscripten_bind_b2EdgeShape_get_m_vertex0_0=i._emscripten_bind_b2EdgeShape_get_m_vertex0_0,hj=e._emscripten_bind_b2World_GetBodyCount_0=i._emscripten_bind_b2World_GetBodyCount_0,ij=e._emscripten_bind_b2Fixture_GetMassData_1=i._emscripten_bind_b2Fixture_GetMassData_1,jj=e._emscripten_bind_b2WeldJointDef_get_collideConnected_0= i._emscripten_bind_b2WeldJointDef_get_collideConnected_0,kj=e._emscripten_bind_b2FrictionJoint_GetMaxTorque_0=i._emscripten_bind_b2FrictionJoint_GetMaxTorque_0,lj=e._emscripten_bind_b2EdgeShape_RayCast_4=i._emscripten_bind_b2EdgeShape_RayCast_4,mj=e._emscripten_bind_b2BodyDef_set_allowSleep_1=i._emscripten_bind_b2BodyDef_set_allowSleep_1,nj=e._emscripten_bind_b2PulleyJoint_GetType_0=i._emscripten_bind_b2PulleyJoint_GetType_0,oj=e._emscripten_bind_b2WeldJointDef_set_localAnchorA_1=i._emscripten_bind_b2WeldJointDef_set_localAnchorA_1, pj=e._emscripten_bind_b2Profile_set_step_1=i._emscripten_bind_b2Profile_set_step_1,qj=e._emscripten_bind_b2ContactEdge_set_other_1=i._emscripten_bind_b2ContactEdge_set_other_1,rj=e._emscripten_bind_b2PulleyJoint_GetCurrentLengthB_0=i._emscripten_bind_b2PulleyJoint_GetCurrentLengthB_0,sj=e._emscripten_bind_b2Vec2_op_mul_1=i._emscripten_bind_b2Vec2_op_mul_1,tj=e._emscripten_bind_b2PrismaticJointDef_get_localAnchorA_0=i._emscripten_bind_b2PrismaticJointDef_get_localAnchorA_0,uj=e._emscripten_bind_b2EdgeShape___destroy___0= i._emscripten_bind_b2EdgeShape___destroy___0,vj=e._emscripten_bind_b2RopeJoint_GetAnchorA_0=i._emscripten_bind_b2RopeJoint_GetAnchorA_0,wj=e._emscripten_bind_b2World_GetContactCount_0=i._emscripten_bind_b2World_GetContactCount_0,xj=e._emscripten_bind_b2MotorJointDef_set_correctionFactor_1=i._emscripten_bind_b2MotorJointDef_set_correctionFactor_1,yj=e._emscripten_bind_b2DistanceJointDef_set_userData_1=i._emscripten_bind_b2DistanceJointDef_set_userData_1,zj=e._emscripten_bind_b2ContactEdge_get_other_0= i._emscripten_bind_b2ContactEdge_get_other_0,Aj=e._emscripten_bind_b2RopeJoint_GetLocalAnchorB_0=i._emscripten_bind_b2RopeJoint_GetLocalAnchorB_0,Bj=e._emscripten_bind_b2PulleyJointDef___destroy___0=i._emscripten_bind_b2PulleyJointDef___destroy___0,Cj=e._emscripten_bind_b2MouseJoint_GetBodyB_0=i._emscripten_bind_b2MouseJoint_GetBodyB_0,Dj=e._emscripten_bind_b2PolygonShape_TestPoint_2=i._emscripten_bind_b2PolygonShape_TestPoint_2,Ej=e._emscripten_bind_b2EdgeShape_set_m_vertex3_1=i._emscripten_bind_b2EdgeShape_set_m_vertex3_1, Fj=e._emscripten_bind_b2PolygonShape_b2PolygonShape_0=i._emscripten_bind_b2PolygonShape_b2PolygonShape_0,Gj=e._emscripten_bind_b2GearJointDef_set_ratio_1=i._emscripten_bind_b2GearJointDef_set_ratio_1,Hj=e._emscripten_bind_b2WheelJoint_SetMaxMotorTorque_1=i._emscripten_bind_b2WheelJoint_SetMaxMotorTorque_1,Ij=e._emscripten_bind_b2WheelJointDef_get_localAxisA_0=i._emscripten_bind_b2WheelJointDef_get_localAxisA_0,Jj=e._emscripten_bind_b2DistanceJointDef_get_localAnchorA_0=i._emscripten_bind_b2DistanceJointDef_get_localAnchorA_0, Kj=e._emscripten_bind_b2MassData_set_center_1=i._emscripten_bind_b2MassData_set_center_1,Lj=e._emscripten_bind_b2Contact_SetTangentSpeed_1=i._emscripten_bind_b2Contact_SetTangentSpeed_1,Mj=e._emscripten_bind_b2FrictionJointDef_get_localAnchorB_0=i._emscripten_bind_b2FrictionJointDef_get_localAnchorB_0,Nj=e._emscripten_bind_b2BodyDef_get_active_0=i._emscripten_bind_b2BodyDef_get_active_0,Oj=e._emscripten_bind_b2Body_GetAngularVelocity_0=i._emscripten_bind_b2Body_GetAngularVelocity_0,Pj=e._emscripten_bind_b2WeldJoint_GetBodyB_0= i._emscripten_bind_b2WeldJoint_GetBodyB_0,Qj=e._emscripten_bind_b2Draw___destroy___0=i._emscripten_bind_b2Draw___destroy___0,Rj=e._emscripten_bind_b2WheelJointDef_Initialize_4=i._emscripten_bind_b2WheelJointDef_Initialize_4,Sj=e._emscripten_bind_b2WeldJointDef_set_dampingRatio_1=i._emscripten_bind_b2WeldJointDef_set_dampingRatio_1,Tj=e._emscripten_bind_b2Contact_IsEnabled_0=i._emscripten_bind_b2Contact_IsEnabled_0,Uj=e._emscripten_bind_b2Joint_GetAnchorB_0=i._emscripten_bind_b2Joint_GetAnchorB_0, Vj=e._emscripten_bind_b2PrismaticJointDef_get_userData_0=i._emscripten_bind_b2PrismaticJointDef_get_userData_0,Wj=e._emscripten_bind_b2MotorJoint_GetMaxForce_0=i._emscripten_bind_b2MotorJoint_GetMaxForce_0,Xj=e._emscripten_bind_b2RevoluteJoint_GetBodyA_0=i._emscripten_bind_b2RevoluteJoint_GetBodyA_0,Yj=e._emscripten_bind_b2ContactID_set_cf_1=i._emscripten_bind_b2ContactID_set_cf_1,Zj=e._emscripten_bind_b2Rot_GetXAxis_0=i._emscripten_bind_b2Rot_GetXAxis_0,$j=e._emscripten_bind_b2ContactEdge_set_prev_1= i._emscripten_bind_b2ContactEdge_set_prev_1,ak=e._emscripten_bind_b2Vec3_Set_3=i._emscripten_bind_b2Vec3_Set_3,bk=e._emscripten_bind_b2Fixture_GetNext_0=i._emscripten_bind_b2Fixture_GetNext_0,ck=e._emscripten_bind_b2FrictionJointDef_set_localAnchorB_1=i._emscripten_bind_b2FrictionJointDef_set_localAnchorB_1,dk=e._emscripten_bind_b2PulleyJoint_GetNext_0=i._emscripten_bind_b2PulleyJoint_GetNext_0,ek=e._emscripten_bind_b2ChainShape_get_m_type_0=i._emscripten_bind_b2ChainShape_get_m_type_0,fk=e._emscripten_bind_b2GearJointDef_get_bodyA_0= i._emscripten_bind_b2GearJointDef_get_bodyA_0,gk=e._emscripten_bind_b2DistanceJointDef_set_frequencyHz_1=i._emscripten_bind_b2DistanceJointDef_set_frequencyHz_1,hk=e._emscripten_bind_b2RevoluteJointDef_get_localAnchorB_0=i._emscripten_bind_b2RevoluteJointDef_get_localAnchorB_0,ik=e._emscripten_bind_b2RevoluteJointDef_get_referenceAngle_0=i._emscripten_bind_b2RevoluteJointDef_get_referenceAngle_0,jk=e._emscripten_bind_JSContactFilter___destroy___0=i._emscripten_bind_JSContactFilter___destroy___0,Wb= e._memset=i._memset,kk=e._emscripten_bind_b2PolygonShape_get_m_radius_0=i._emscripten_bind_b2PolygonShape_get_m_radius_0,lk=e._emscripten_bind_b2RopeJoint_GetUserData_0=i._emscripten_bind_b2RopeJoint_GetUserData_0,mk=e._emscripten_bind_b2RopeJointDef_get_bodyA_0=i._emscripten_bind_b2RopeJointDef_get_bodyA_0,nk=e._emscripten_bind_b2DistanceJointDef_get_dampingRatio_0=i._emscripten_bind_b2DistanceJointDef_get_dampingRatio_0,ok=e._emscripten_enum_b2ManifoldType_e_faceA=i._emscripten_enum_b2ManifoldType_e_faceA, pk=e._emscripten_enum_b2ManifoldType_e_faceB=i._emscripten_enum_b2ManifoldType_e_faceB,qk=e._emscripten_bind_b2RevoluteJointDef_get_bodyB_0=i._emscripten_bind_b2RevoluteJointDef_get_bodyB_0,rk=e._emscripten_bind_b2FixtureDef_b2FixtureDef_0=i._emscripten_bind_b2FixtureDef_b2FixtureDef_0,sk=e._emscripten_bind_b2PrismaticJoint_SetUserData_1=i._emscripten_bind_b2PrismaticJoint_SetUserData_1,tk=e._emscripten_bind_b2EdgeShape_get_m_hasVertex3_0=i._emscripten_bind_b2EdgeShape_get_m_hasVertex3_0,uk=e._emscripten_enum_b2ShapeType_e_edge= i._emscripten_enum_b2ShapeType_e_edge,vk=e._emscripten_bind_b2RevoluteJoint_GetMaxMotorTorque_0=i._emscripten_bind_b2RevoluteJoint_GetMaxMotorTorque_0,wk=e._emscripten_bind_b2BodyDef_set_active_1=i._emscripten_bind_b2BodyDef_set_active_1,xk=e._emscripten_bind_b2DistanceJointDef_set_localAnchorB_1=i._emscripten_bind_b2DistanceJointDef_set_localAnchorB_1,yk=e._emscripten_bind_b2Body_GetWorldPoint_1=i._emscripten_bind_b2Body_GetWorldPoint_1,zk=e._emscripten_bind_b2ManifoldPoint_get_normalImpulse_0=i._emscripten_bind_b2ManifoldPoint_get_normalImpulse_0, Ak=e._emscripten_bind_JSContactFilter_ShouldCollide_2=i._emscripten_bind_JSContactFilter_ShouldCollide_2,Bk=e._emscripten_bind_b2Joint_GetReactionTorque_1=i._emscripten_bind_b2Joint_GetReactionTorque_1,Ck=e._emscripten_bind_b2RevoluteJointDef_set_type_1=i._emscripten_bind_b2RevoluteJointDef_set_type_1,Dk=e._emscripten_bind_b2RopeJointDef_b2RopeJointDef_0=i._emscripten_bind_b2RopeJointDef_b2RopeJointDef_0,Ek=e._emscripten_bind_b2BodyDef_get_linearDamping_0=i._emscripten_bind_b2BodyDef_get_linearDamping_0, Fk=e._emscripten_bind_b2MotorJointDef_get_bodyB_0=i._emscripten_bind_b2MotorJointDef_get_bodyB_0,Gk=e._emscripten_bind_b2World_Step_3=i._emscripten_bind_b2World_Step_3,Hk=e._emscripten_bind_b2CircleShape_RayCast_4=i._emscripten_bind_b2CircleShape_RayCast_4,Ik=e._emscripten_bind_b2Profile_get_step_0=i._emscripten_bind_b2Profile_get_step_0,Jk=e._emscripten_bind_b2Vec3_b2Vec3_0=i._emscripten_bind_b2Vec3_b2Vec3_0,Kk=e._emscripten_bind_b2Vec3_b2Vec3_3=i._emscripten_bind_b2Vec3_b2Vec3_3,Lk=e._emscripten_bind_b2PulleyJoint_GetLengthB_0= i._emscripten_bind_b2PulleyJoint_GetLengthB_0,Mk=e._emscripten_bind_b2Filter_set_categoryBits_1=i._emscripten_bind_b2Filter_set_categoryBits_1,Nk=e._emscripten_bind_b2MotorJoint_GetUserData_0=i._emscripten_bind_b2MotorJoint_GetUserData_0,Ok=e._emscripten_bind_b2PrismaticJoint_GetLocalAnchorA_0=i._emscripten_bind_b2PrismaticJoint_GetLocalAnchorA_0,Pk=e._emscripten_bind_b2Shape_get_m_type_0=i._emscripten_bind_b2Shape_get_m_type_0,Qk=e._emscripten_bind_b2MouseJoint_SetDampingRatio_1=i._emscripten_bind_b2MouseJoint_SetDampingRatio_1, Rk=e._emscripten_bind_b2World_GetAutoClearForces_0=i._emscripten_bind_b2World_GetAutoClearForces_0,Sk=e._emscripten_enum_b2ShapeType_e_circle=i._emscripten_enum_b2ShapeType_e_circle,Tk=e._emscripten_bind_b2BodyDef_set_fixedRotation_1=i._emscripten_bind_b2BodyDef_set_fixedRotation_1,Uk=e._emscripten_bind_b2RopeJoint_GetLimitState_0=i._emscripten_bind_b2RopeJoint_GetLimitState_0,Vk=e._emscripten_bind_b2JointDef_get_collideConnected_0=i._emscripten_bind_b2JointDef_get_collideConnected_0,Wk=e._emscripten_bind_b2Body_Dump_0= i._emscripten_bind_b2Body_Dump_0,Xk=e._emscripten_bind_b2RevoluteJoint_GetLowerLimit_0=i._emscripten_bind_b2RevoluteJoint_GetLowerLimit_0,Yk=e._emscripten_bind_b2Body_GetWorldCenter_0=i._emscripten_bind_b2Body_GetWorldCenter_0,Zk=e._emscripten_bind_JSContactListener___destroy___0=i._emscripten_bind_JSContactListener___destroy___0,$k=e._emscripten_bind_b2BodyDef_set_linearVelocity_1=i._emscripten_bind_b2BodyDef_set_linearVelocity_1,al=e._emscripten_bind_b2JointDef_set_collideConnected_1=i._emscripten_bind_b2JointDef_set_collideConnected_1, bl=e._emscripten_bind_b2MotorJoint___destroy___0=i._emscripten_bind_b2MotorJoint___destroy___0,cl=e._emscripten_bind_b2Body_GetUserData_0=i._emscripten_bind_b2Body_GetUserData_0,dl=e._emscripten_bind_b2World_GetContinuousPhysics_0=i._emscripten_bind_b2World_GetContinuousPhysics_0,el=e._emscripten_bind_b2Fixture_RayCast_3=i._emscripten_bind_b2Fixture_RayCast_3,fl=e._emscripten_bind_b2JointDef_set_bodyA_1=i._emscripten_bind_b2JointDef_set_bodyA_1,gl=e._emscripten_bind_b2GearJointDef_get_collideConnected_0= i._emscripten_bind_b2GearJointDef_get_collideConnected_0,hl=e._emscripten_bind_b2RopeJointDef_get_maxLength_0=i._emscripten_bind_b2RopeJointDef_get_maxLength_0,il=e._emscripten_bind_b2MouseJointDef_get_bodyA_0=i._emscripten_bind_b2MouseJointDef_get_bodyA_0,jl=e._emscripten_bind_b2Body_SetBullet_1=i._emscripten_bind_b2Body_SetBullet_1,kl=e._emscripten_bind_b2DistanceJoint_GetType_0=i._emscripten_bind_b2DistanceJoint_GetType_0,ll=e._emscripten_bind_b2FixtureDef_get_restitution_0=i._emscripten_bind_b2FixtureDef_get_restitution_0, ml=e._emscripten_bind_b2Fixture_GetType_0=i._emscripten_bind_b2Fixture_GetType_0,nl=e._emscripten_bind_b2PulleyJointDef_set_localAnchorB_1=i._emscripten_bind_b2PulleyJointDef_set_localAnchorB_1,ol=e._emscripten_bind_b2RevoluteJoint_GetBodyB_0=i._emscripten_bind_b2RevoluteJoint_GetBodyB_0,pl=e._emscripten_bind_b2Profile_set_solveInit_1=i._emscripten_bind_b2Profile_set_solveInit_1,ql=e._emscripten_bind_b2RopeJointDef_set_type_1=i._emscripten_bind_b2RopeJointDef_set_type_1,rl=e._emscripten_bind_b2PrismaticJointDef_get_bodyB_0= i._emscripten_bind_b2PrismaticJointDef_get_bodyB_0,sl=e._emscripten_bind_b2Body_SetLinearVelocity_1=i._emscripten_bind_b2Body_SetLinearVelocity_1,tl=e._emscripten_bind_b2RevoluteJoint_GetReferenceAngle_0=i._emscripten_bind_b2RevoluteJoint_GetReferenceAngle_0,ul=e._emscripten_bind_b2PulleyJointDef_get_userData_0=i._emscripten_bind_b2PulleyJointDef_get_userData_0,vl=e._emscripten_bind_b2PrismaticJointDef_set_bodyB_1=i._emscripten_bind_b2PrismaticJointDef_set_bodyB_1,wl=e._emscripten_bind_b2FrictionJointDef_b2FrictionJointDef_0= i._emscripten_bind_b2FrictionJointDef_b2FrictionJointDef_0,eb=e._free=i._free,xl=e._emscripten_bind_b2PulleyJoint_GetCurrentLengthA_0=i._emscripten_bind_b2PulleyJoint_GetCurrentLengthA_0,yl=e._emscripten_bind_b2Manifold_get_localNormal_0=i._emscripten_bind_b2Manifold_get_localNormal_0,zl=e._emscripten_bind_b2AABB_RayCast_2=i._emscripten_bind_b2AABB_RayCast_2,Al=e._emscripten_bind_b2FixtureDef_set_isSensor_1=i._emscripten_bind_b2FixtureDef_set_isSensor_1,Bl=e._emscripten_bind_b2RopeJoint_GetBodyB_0= i._emscripten_bind_b2RopeJoint_GetBodyB_0,Cl=e._emscripten_bind_b2PrismaticJoint_GetAnchorA_0=i._emscripten_bind_b2PrismaticJoint_GetAnchorA_0,Dl=e._emscripten_bind_b2ChainShape_set_m_count_1=i._emscripten_bind_b2ChainShape_set_m_count_1,El=e._emscripten_bind_b2PrismaticJoint_IsMotorEnabled_0=i._emscripten_bind_b2PrismaticJoint_IsMotorEnabled_0,Fl=e._emscripten_bind_b2WeldJoint_GetFrequency_0=i._emscripten_bind_b2WeldJoint_GetFrequency_0,Gl=e._emscripten_bind_b2Joint_GetUserData_0=i._emscripten_bind_b2Joint_GetUserData_0, Hl=e._emscripten_bind_b2RevoluteJointDef_get_lowerAngle_0=i._emscripten_bind_b2RevoluteJointDef_get_lowerAngle_0,Il=e._emscripten_bind_b2Manifold_set_type_1=i._emscripten_bind_b2Manifold_set_type_1,Jl=e._emscripten_bind_b2DistanceJoint_GetLength_0=i._emscripten_bind_b2DistanceJoint_GetLength_0,Kl=e._emscripten_bind_b2RopeJointDef_set_maxLength_1=i._emscripten_bind_b2RopeJointDef_set_maxLength_1,Ll=e._emscripten_bind_b2ChainShape_TestPoint_2=i._emscripten_bind_b2ChainShape_TestPoint_2,Ml=e._emscripten_bind_b2PrismaticJoint_GetReferenceAngle_0= i._emscripten_bind_b2PrismaticJoint_GetReferenceAngle_0,Nl=e._emscripten_bind_b2RayCastInput_get_p2_0=i._emscripten_bind_b2RayCastInput_get_p2_0,Ol=e._emscripten_bind_b2RevoluteJoint_EnableLimit_1=i._emscripten_bind_b2RevoluteJoint_EnableLimit_1,Pl=e._emscripten_bind_b2BodyDef_set_angle_1=i._emscripten_bind_b2BodyDef_set_angle_1,Ql=e._emscripten_bind_b2WeldJoint_GetUserData_0=i._emscripten_bind_b2WeldJoint_GetUserData_0,Rl=e._emscripten_bind_b2WheelJointDef_get_localAnchorA_0=i._emscripten_bind_b2WheelJointDef_get_localAnchorA_0, Sl=e._emscripten_bind_b2PulleyJointDef_set_type_1=i._emscripten_bind_b2PulleyJointDef_set_type_1,Tl=e._emscripten_bind_b2Body_IsBullet_0=i._emscripten_bind_b2Body_IsBullet_0,Ul=e._emscripten_bind_b2MotorJointDef_set_bodyA_1=i._emscripten_bind_b2MotorJointDef_set_bodyA_1,Vl=e._emscripten_bind_b2Mat33_GetSymInverse33_1=i._emscripten_bind_b2Mat33_GetSymInverse33_1,Wl=e._emscripten_bind_b2Body_ApplyLinearImpulse_3=i._emscripten_bind_b2Body_ApplyLinearImpulse_3,Xl=e._emscripten_bind_b2PolygonShape_ComputeMass_2= i._emscripten_bind_b2PolygonShape_ComputeMass_2,Yl=e._emscripten_bind_b2WeldJoint_GetLocalAnchorA_0=i._emscripten_bind_b2WeldJoint_GetLocalAnchorA_0,Zl=e._emscripten_bind_b2MouseJoint_SetFrequency_1=i._emscripten_bind_b2MouseJoint_SetFrequency_1,$l=e._emscripten_bind_b2EdgeShape_get_m_vertex1_0=i._emscripten_bind_b2EdgeShape_get_m_vertex1_0,am=e._emscripten_bind_b2BodyDef_set_awake_1=i._emscripten_bind_b2BodyDef_set_awake_1,bm=e._emscripten_bind_b2Vec2_get_y_0=i._emscripten_bind_b2Vec2_get_y_0,cm= e._emscripten_bind_b2Body_CreateFixture_1=i._emscripten_bind_b2Body_CreateFixture_1,dm=e._emscripten_bind_b2Body_CreateFixture_2=i._emscripten_bind_b2Body_CreateFixture_2,em=e._emscripten_bind_b2PulleyJoint_GetUserData_0=i._emscripten_bind_b2PulleyJoint_GetUserData_0,fm=e._emscripten_bind_b2Body_SetActive_1=i._emscripten_bind_b2Body_SetActive_1,gm=e._emscripten_bind_b2Fixture_GetUserData_0=i._emscripten_bind_b2Fixture_GetUserData_0,hm=e._emscripten_bind_b2PolygonShape_ComputeAABB_3=i._emscripten_bind_b2PolygonShape_ComputeAABB_3, im=e._emscripten_bind_b2ContactFeature_get_typeA_0=i._emscripten_bind_b2ContactFeature_get_typeA_0,jm=e._emscripten_bind_b2MouseJoint_GetReactionForce_1=i._emscripten_bind_b2MouseJoint_GetReactionForce_1,km=e._emscripten_bind_b2FrictionJoint_GetReactionTorque_1=i._emscripten_bind_b2FrictionJoint_GetReactionTorque_1,lm=e._emscripten_bind_b2EdgeShape_TestPoint_2=i._emscripten_bind_b2EdgeShape_TestPoint_2,mc=e._memcpy=i._memcpy,mm=e._emscripten_bind_b2PolygonShape_get_m_centroid_0=i._emscripten_bind_b2PolygonShape_get_m_centroid_0, nm=e._emscripten_bind_b2ChainShape___destroy___0=i._emscripten_bind_b2ChainShape___destroy___0,om=e._emscripten_bind_b2GearJoint_SetUserData_1=i._emscripten_bind_b2GearJoint_SetUserData_1,pm=e._emscripten_bind_b2Vec3_set_z_1=i._emscripten_bind_b2Vec3_set_z_1,qm=e._emscripten_bind_b2PrismaticJointDef_set_enableLimit_1=i._emscripten_bind_b2PrismaticJointDef_set_enableLimit_1,rm=e._emscripten_bind_b2DistanceJoint_GetFrequency_0=i._emscripten_bind_b2DistanceJoint_GetFrequency_0,sm=e._emscripten_bind_b2Body_SetGravityScale_1= i._emscripten_bind_b2Body_SetGravityScale_1,tm=e._emscripten_enum_b2ContactFeatureType_e_face=i._emscripten_enum_b2ContactFeatureType_e_face,um=e._emscripten_bind_b2AABB_GetPerimeter_0=i._emscripten_bind_b2AABB_GetPerimeter_0,vm=e._emscripten_bind_b2PulleyJointDef_get_lengthA_0=i._emscripten_bind_b2PulleyJointDef_get_lengthA_0,wm=e._emscripten_bind_b2Vec3_set_x_1=i._emscripten_bind_b2Vec3_set_x_1,xm=e._emscripten_bind_b2PulleyJointDef_get_type_0=i._emscripten_bind_b2PulleyJointDef_get_type_0,ym=e._emscripten_bind_JSDestructionListener_SayGoodbyeJoint_1= i._emscripten_bind_JSDestructionListener_SayGoodbyeJoint_1,zm=e._emscripten_bind_b2Shape___destroy___0=i._emscripten_bind_b2Shape___destroy___0,Yb=e._strlen=i._strlen,Am=e._emscripten_bind_b2Color_set_b_1=i._emscripten_bind_b2Color_set_b_1,Bm=e._emscripten_bind_b2Joint_GetReactionForce_1=i._emscripten_bind_b2Joint_GetReactionForce_1,Cm=e._emscripten_bind_b2FixtureDef_set_friction_1=i._emscripten_bind_b2FixtureDef_set_friction_1,Dm=e._emscripten_bind_b2ContactID___destroy___0=i._emscripten_bind_b2ContactID___destroy___0, Em=e._emscripten_bind_b2EdgeShape_get_m_hasVertex0_0=i._emscripten_bind_b2EdgeShape_get_m_hasVertex0_0,Fm=e._emscripten_bind_JSRayCastCallback_ReportFixture_4=i._emscripten_bind_JSRayCastCallback_ReportFixture_4,Gm=e._emscripten_bind_b2MotorJointDef_get_linearOffset_0=i._emscripten_bind_b2MotorJointDef_get_linearOffset_0,Hm=e._emscripten_bind_b2Profile_set_solveVelocity_1=i._emscripten_bind_b2Profile_set_solveVelocity_1,Im=e._emscripten_bind_b2PrismaticJoint_GetAnchorB_0=i._emscripten_bind_b2PrismaticJoint_GetAnchorB_0, Jm=e._emscripten_bind_b2WeldJointDef_b2WeldJointDef_0=i._emscripten_bind_b2WeldJointDef_b2WeldJointDef_0,Km=e._emscripten_enum_b2BodyType_b2_staticBody=i._emscripten_enum_b2BodyType_b2_staticBody,Lm=e._emscripten_bind_b2RevoluteJointDef_set_upperAngle_1=i._emscripten_bind_b2RevoluteJointDef_set_upperAngle_1,Mm=e._emscripten_bind_b2RevoluteJointDef_get_type_0=i._emscripten_bind_b2RevoluteJointDef_get_type_0,Nm=e._emscripten_bind_b2GearJointDef_get_type_0=i._emscripten_bind_b2GearJointDef_get_type_0, Om=e._emscripten_bind_b2ChainShape_GetType_0=i._emscripten_bind_b2ChainShape_GetType_0,Pm=e._emscripten_bind_b2RayCastInput_get_maxFraction_0=i._emscripten_bind_b2RayCastInput_get_maxFraction_0,Qm=e._emscripten_bind_b2GearJoint_GetBodyA_0=i._emscripten_bind_b2GearJoint_GetBodyA_0,Rm=e._emscripten_bind_b2Body_GetLocalVector_1=i._emscripten_bind_b2Body_GetLocalVector_1,Sm=e._emscripten_bind_b2PrismaticJoint_EnableLimit_1=i._emscripten_bind_b2PrismaticJoint_EnableLimit_1,Tm=e._emscripten_bind_b2FrictionJointDef_get_maxForce_0= i._emscripten_bind_b2FrictionJointDef_get_maxForce_0,Um=e._emscripten_bind_b2BodyDef_set_angularVelocity_1=i._emscripten_bind_b2BodyDef_set_angularVelocity_1,Vm=e._emscripten_bind_b2Body_SetLinearDamping_1=i._emscripten_bind_b2Body_SetLinearDamping_1,Wm=e._emscripten_bind_b2WheelJoint_GetBodyB_0=i._emscripten_bind_b2WheelJoint_GetBodyB_0,Xm=e._emscripten_bind_b2Color___destroy___0=i._emscripten_bind_b2Color___destroy___0,Ym=e._emscripten_bind_b2PrismaticJoint_IsActive_0=i._emscripten_bind_b2PrismaticJoint_IsActive_0, Zm=e._emscripten_bind_b2Filter_get_categoryBits_0=i._emscripten_bind_b2Filter_get_categoryBits_0,$m=e._emscripten_enum_b2JointType_e_weldJoint=i._emscripten_enum_b2JointType_e_weldJoint,an=e._emscripten_bind_b2World_SetContinuousPhysics_1=i._emscripten_bind_b2World_SetContinuousPhysics_1,bn=e._emscripten_bind_b2MouseJointDef_get_target_0=i._emscripten_bind_b2MouseJointDef_get_target_0,cn=e._emscripten_bind_b2Manifold_b2Manifold_0=i._emscripten_bind_b2Manifold_b2Manifold_0,dn=e._emscripten_bind_b2PulleyJointDef_set_userData_1= i._emscripten_bind_b2PulleyJointDef_set_userData_1,en=e._emscripten_bind_b2FrictionJointDef_set_maxForce_1=i._emscripten_bind_b2FrictionJointDef_set_maxForce_1,fn=e._emscripten_bind_b2DistanceJointDef_b2DistanceJointDef_0=i._emscripten_bind_b2DistanceJointDef_b2DistanceJointDef_0,gn=e._emscripten_bind_b2PolygonShape_set_m_centroid_1=i._emscripten_bind_b2PolygonShape_set_m_centroid_1,hn=e._emscripten_bind_b2Mat33_GetInverse22_1=i._emscripten_bind_b2Mat33_GetInverse22_1,jn=e._emscripten_bind_b2PolygonShape_SetAsBox_4= i._emscripten_bind_b2PolygonShape_SetAsBox_4,kn=e._emscripten_bind_b2EdgeShape_get_m_vertex2_0=i._emscripten_bind_b2EdgeShape_get_m_vertex2_0,ln=e._emscripten_bind_b2WheelJoint_GetReactionTorque_1=i._emscripten_bind_b2WheelJoint_GetReactionTorque_1,mn=e._emscripten_bind_b2RevoluteJointDef_b2RevoluteJointDef_0=i._emscripten_bind_b2RevoluteJointDef_b2RevoluteJointDef_0,nn=e._emscripten_bind_b2ContactFeature_set_typeA_1=i._emscripten_bind_b2ContactFeature_set_typeA_1,on=e._emscripten_bind_b2Fixture_Dump_1= i._emscripten_bind_b2Fixture_Dump_1,pn=e._emscripten_bind_b2World_GetJointList_0=i._emscripten_bind_b2World_GetJointList_0,qn=e._emscripten_bind_b2Manifold_set_localPoint_1=i._emscripten_bind_b2Manifold_set_localPoint_1,rn=e._emscripten_bind_b2DistanceJoint_SetUserData_1=i._emscripten_bind_b2DistanceJoint_SetUserData_1,sn=e._emscripten_bind_b2BodyDef_set_bullet_1=i._emscripten_bind_b2BodyDef_set_bullet_1,tn=e._emscripten_bind_b2RayCastOutput___destroy___0=i._emscripten_bind_b2RayCastOutput___destroy___0; e.___cxa_can_catch=i.___cxa_can_catch; var un=e._emscripten_bind_b2WheelJoint_GetNext_0=i._emscripten_bind_b2WheelJoint_GetNext_0,vn=e._emscripten_bind_b2AABB_GetCenter_0=i._emscripten_bind_b2AABB_GetCenter_0,wn=e._emscripten_bind_b2Filter_set_groupIndex_1=i._emscripten_bind_b2Filter_set_groupIndex_1,xn=e._emscripten_bind_b2JointDef_b2JointDef_0=i._emscripten_bind_b2JointDef_b2JointDef_0,yn=e._emscripten_bind_b2CircleShape_b2CircleShape_0=i._emscripten_bind_b2CircleShape_b2CircleShape_0,zn=e._emscripten_bind_b2GearJointDef_b2GearJointDef_0=i._emscripten_bind_b2GearJointDef_b2GearJointDef_0, An=e._emscripten_bind_b2JointDef_get_bodyB_0=i._emscripten_bind_b2JointDef_get_bodyB_0,Bn=e._emscripten_bind_b2DistanceJoint_GetReactionForce_1=i._emscripten_bind_b2DistanceJoint_GetReactionForce_1,Cn=e._emscripten_bind_b2PrismaticJoint_GetJointSpeed_0=i._emscripten_bind_b2PrismaticJoint_GetJointSpeed_0,Dn=e._emscripten_bind_b2PulleyJointDef_get_groundAnchorB_0=i._emscripten_bind_b2PulleyJointDef_get_groundAnchorB_0,En=e._emscripten_bind_b2Joint_GetAnchorA_0=i._emscripten_bind_b2Joint_GetAnchorA_0, Fn=e._emscripten_bind_b2Contact_GetRestitution_0=i._emscripten_bind_b2Contact_GetRestitution_0,Gn=e._emscripten_bind_b2ContactEdge_get_contact_0=i._emscripten_bind_b2ContactEdge_get_contact_0,Hn=e._emscripten_bind_b2RevoluteJointDef_get_userData_0=i._emscripten_bind_b2RevoluteJointDef_get_userData_0,In=e._emscripten_bind_b2Body_ApplyTorque_2=i._emscripten_bind_b2Body_ApplyTorque_2,Jn=e._emscripten_bind_b2Fixture_GetAABB_1=i._emscripten_bind_b2Fixture_GetAABB_1,Kn=e._emscripten_bind_b2DistanceJointDef_Initialize_4= i._emscripten_bind_b2DistanceJointDef_Initialize_4,Ln=e._emscripten_bind_b2PrismaticJointDef_set_collideConnected_1=i._emscripten_bind_b2PrismaticJointDef_set_collideConnected_1,Mn=e._emscripten_bind_b2PrismaticJointDef_set_localAxisA_1=i._emscripten_bind_b2PrismaticJointDef_set_localAxisA_1,Nn=e._emscripten_bind_b2Contact_GetTangentSpeed_0=i._emscripten_bind_b2Contact_GetTangentSpeed_0,On=e._emscripten_enum_b2LimitState_e_atLowerLimit=i._emscripten_enum_b2LimitState_e_atLowerLimit,Pn=e._emscripten_bind_b2ManifoldPoint_set_id_1= i._emscripten_bind_b2ManifoldPoint_set_id_1,Qn=e._emscripten_bind_b2WheelJointDef_get_bodyB_0=i._emscripten_bind_b2WheelJointDef_get_bodyB_0,Rn=e._emscripten_bind_b2WeldJoint_GetLocalAnchorB_0=i._emscripten_bind_b2WeldJoint_GetLocalAnchorB_0,Sn=e._emscripten_bind_b2RevoluteJointDef_set_localAnchorB_1=i._emscripten_bind_b2RevoluteJointDef_set_localAnchorB_1,Tn=e._emscripten_bind_b2RevoluteJoint_GetType_0=i._emscripten_bind_b2RevoluteJoint_GetType_0,Un=e._emscripten_bind_b2Body_DestroyFixture_1=i._emscripten_bind_b2Body_DestroyFixture_1, Vn=e._emscripten_bind_b2Profile_set_broadphase_1=i._emscripten_bind_b2Profile_set_broadphase_1,Wn=e._emscripten_bind_b2WheelJointDef_get_localAnchorB_0=i._emscripten_bind_b2WheelJointDef_get_localAnchorB_0,Xn=e._emscripten_bind_b2ContactImpulse_get_count_0=i._emscripten_bind_b2ContactImpulse_get_count_0,Yn=e._emscripten_bind_b2World_GetJointCount_0=i._emscripten_bind_b2World_GetJointCount_0,Zn=e._emscripten_bind_b2WheelJoint_GetMotorSpeed_0=i._emscripten_bind_b2WheelJoint_GetMotorSpeed_0,$n=e._emscripten_bind_b2Body_GetAngularDamping_0= i._emscripten_bind_b2Body_GetAngularDamping_0,ao=e._emscripten_bind_b2WheelJointDef_get_dampingRatio_0=i._emscripten_bind_b2WheelJointDef_get_dampingRatio_0,bo=e._emscripten_bind_b2RayCastOutput_get_fraction_0=i._emscripten_bind_b2RayCastOutput_get_fraction_0,co=e._emscripten_enum_b2ManifoldType_e_circles=i._emscripten_enum_b2ManifoldType_e_circles,eo=e._emscripten_bind_b2GearJoint_SetRatio_1=i._emscripten_bind_b2GearJoint_SetRatio_1,fo=e._emscripten_bind_JSDraw_DrawPolygon_3=i._emscripten_bind_JSDraw_DrawPolygon_3, go=e._emscripten_bind_b2Filter___destroy___0=i._emscripten_bind_b2Filter___destroy___0,ho=e._emscripten_bind_b2JointEdge_set_next_1=i._emscripten_bind_b2JointEdge_set_next_1;e.___cxa_is_pointer_type=i.___cxa_is_pointer_type; var io=e._emscripten_bind_b2BodyDef_get_fixedRotation_0=i._emscripten_bind_b2BodyDef_get_fixedRotation_0,jo=e._emscripten_bind_b2PrismaticJointDef_set_motorSpeed_1=i._emscripten_bind_b2PrismaticJointDef_set_motorSpeed_1,ko=e._emscripten_bind_b2ChainShape_SetPrevVertex_1=i._emscripten_bind_b2ChainShape_SetPrevVertex_1,lo=e._emscripten_bind_b2MotorJoint_IsActive_0=i._emscripten_bind_b2MotorJoint_IsActive_0,mo=e._emscripten_bind_b2MouseJoint_GetReactionTorque_1=i._emscripten_bind_b2MouseJoint_GetReactionTorque_1, no=e._emscripten_bind_b2MouseJoint_GetUserData_0=i._emscripten_bind_b2MouseJoint_GetUserData_0,oo=e._emscripten_bind_b2WheelJoint_GetUserData_0=i._emscripten_bind_b2WheelJoint_GetUserData_0,po=e._emscripten_bind_b2Vec3_op_sub_1=i._emscripten_bind_b2Vec3_op_sub_1,qo=e._emscripten_bind_b2BodyDef_get_gravityScale_0=i._emscripten_bind_b2BodyDef_get_gravityScale_0,ro=e._emscripten_bind_b2Shape_GetType_0=i._emscripten_bind_b2Shape_GetType_0,so=e._emscripten_bind_b2AABB_IsValid_0=i._emscripten_bind_b2AABB_IsValid_0, to=e._emscripten_bind_b2WheelJoint_GetBodyA_0=i._emscripten_bind_b2WheelJoint_GetBodyA_0,uo=e._emscripten_bind_JSDraw_DrawTransform_1=i._emscripten_bind_JSDraw_DrawTransform_1,vo=e._emscripten_bind_b2PulleyJoint_GetLengthA_0=i._emscripten_bind_b2PulleyJoint_GetLengthA_0,wo=e._emscripten_bind_b2DistanceJointDef_get_frequencyHz_0=i._emscripten_bind_b2DistanceJointDef_get_frequencyHz_0,xo=e._emscripten_bind_b2RevoluteJoint_SetMotorSpeed_1=i._emscripten_bind_b2RevoluteJoint_SetMotorSpeed_1,yo=e._emscripten_bind_b2World___destroy___0= i._emscripten_bind_b2World___destroy___0,zo=e._emscripten_bind_b2ChainShape_get_m_hasNextVertex_0=i._emscripten_bind_b2ChainShape_get_m_hasNextVertex_0,Ao=e._emscripten_bind_b2ChainShape_SetNextVertex_1=i._emscripten_bind_b2ChainShape_SetNextVertex_1,Bo=e._emscripten_bind_b2Body_SetType_1=i._emscripten_bind_b2Body_SetType_1,Co=e._emscripten_bind_b2Body_GetMass_0=i._emscripten_bind_b2Body_GetMass_0,Do=e._emscripten_bind_b2Rot_b2Rot_0=i._emscripten_bind_b2Rot_b2Rot_0,Eo=e._emscripten_bind_b2Rot_b2Rot_1= i._emscripten_bind_b2Rot_b2Rot_1,Fo=e._emscripten_enum_b2JointType_e_distanceJoint=i._emscripten_enum_b2JointType_e_distanceJoint,Go=e._emscripten_bind_b2PulleyJoint___destroy___0=i._emscripten_bind_b2PulleyJoint___destroy___0,Ho=e._emscripten_bind_b2PrismaticJoint_GetLocalAnchorB_0=i._emscripten_bind_b2PrismaticJoint_GetLocalAnchorB_0,Io=e._emscripten_bind_b2MouseJoint_GetType_0=i._emscripten_bind_b2MouseJoint_GetType_0,Jo=e._emscripten_bind_JSQueryCallback___destroy___0=i._emscripten_bind_JSQueryCallback___destroy___0, Ko=e._emscripten_bind_b2RevoluteJointDef_set_lowerAngle_1=i._emscripten_bind_b2RevoluteJointDef_set_lowerAngle_1,Lo=e._emscripten_bind_b2JointEdge___destroy___0=i._emscripten_bind_b2JointEdge___destroy___0,Mo=e._emscripten_bind_b2PulleyJoint_GetRatio_0=i._emscripten_bind_b2PulleyJoint_GetRatio_0,No=e._emscripten_bind_JSContactListener_BeginContact_1=i._emscripten_bind_JSContactListener_BeginContact_1,Oo=e._emscripten_bind_b2MotorJointDef_set_linearOffset_1=i._emscripten_bind_b2MotorJointDef_set_linearOffset_1, Po=e._emscripten_enum_b2JointType_e_motorJoint=i._emscripten_enum_b2JointType_e_motorJoint,Qo=e._emscripten_bind_b2JointEdge_get_next_0=i._emscripten_bind_b2JointEdge_get_next_0,Ro=e._emscripten_bind_b2RayCastInput_set_maxFraction_1=i._emscripten_bind_b2RayCastInput_set_maxFraction_1,So=e._emscripten_bind_b2MouseJoint_GetBodyA_0=i._emscripten_bind_b2MouseJoint_GetBodyA_0,To=e._emscripten_bind_b2Profile_set_collide_1=i._emscripten_bind_b2Profile_set_collide_1,Uo=e._emscripten_bind_b2AABB_b2AABB_0= i._emscripten_bind_b2AABB_b2AABB_0,Vo=e._emscripten_bind_b2Fixture_Refilter_0=i._emscripten_bind_b2Fixture_Refilter_0,Wo=e._emscripten_bind_b2World_CreateBody_1=i._emscripten_bind_b2World_CreateBody_1,Xo=e._emscripten_bind_b2RopeJointDef_set_userData_1=i._emscripten_bind_b2RopeJointDef_set_userData_1,Yo=e._emscripten_bind_b2Fixture_IsSensor_0=i._emscripten_bind_b2Fixture_IsSensor_0,Zo=e._emscripten_bind_b2WeldJoint_GetType_0=i._emscripten_bind_b2WeldJoint_GetType_0,$o=e._emscripten_bind_b2PrismaticJointDef_get_motorSpeed_0= i._emscripten_bind_b2PrismaticJointDef_get_motorSpeed_0,ap=e._emscripten_bind_b2Rot___destroy___0=i._emscripten_bind_b2Rot___destroy___0,bp=e._emscripten_bind_b2Filter_get_maskBits_0=i._emscripten_bind_b2Filter_get_maskBits_0,cp=e._emscripten_bind_b2Mat22_get_ex_0=i._emscripten_bind_b2Mat22_get_ex_0,dp=e._emscripten_bind_b2Body_GetFixtureList_0=i._emscripten_bind_b2Body_GetFixtureList_0,ep=e._emscripten_bind_b2RevoluteJointDef_get_enableMotor_0=i._emscripten_bind_b2RevoluteJointDef_get_enableMotor_0, fp=e._emscripten_bind_b2MouseJointDef_set_dampingRatio_1=i._emscripten_bind_b2MouseJointDef_set_dampingRatio_1,gp=e._emscripten_bind_JSRayCastCallback___destroy___0=i._emscripten_bind_JSRayCastCallback___destroy___0,hp=e._emscripten_bind_b2ContactListener___destroy___0=i._emscripten_bind_b2ContactListener___destroy___0,ip=e._emscripten_bind_b2PrismaticJointDef_set_localAnchorB_1=i._emscripten_bind_b2PrismaticJointDef_set_localAnchorB_1,jp=e._emscripten_enum_b2DrawFlag_e_pairBit=i._emscripten_enum_b2DrawFlag_e_pairBit, kp=e._emscripten_bind_b2FrictionJoint___destroy___0=i._emscripten_bind_b2FrictionJoint___destroy___0,lp=e._emscripten_bind_b2WeldJoint_Dump_0=i._emscripten_bind_b2WeldJoint_Dump_0,mp=e._emscripten_bind_b2MotorJoint_SetMaxForce_1=i._emscripten_bind_b2MotorJoint_SetMaxForce_1,np=e._emscripten_bind_b2FrictionJointDef_get_maxTorque_0=i._emscripten_bind_b2FrictionJointDef_get_maxTorque_0,op=e._emscripten_bind_b2FrictionJoint_GetLocalAnchorA_0=i._emscripten_bind_b2FrictionJoint_GetLocalAnchorA_0,pp=e._emscripten_bind_b2WeldJointDef_get_localAnchorB_0= i._emscripten_bind_b2WeldJointDef_get_localAnchorB_0,qp=e._emscripten_bind_b2PrismaticJointDef_get_bodyA_0=i._emscripten_bind_b2PrismaticJointDef_get_bodyA_0,rp=e._emscripten_bind_b2Vec2_IsValid_0=i._emscripten_bind_b2Vec2_IsValid_0,sp=e._emscripten_bind_b2PrismaticJointDef_set_bodyA_1=i._emscripten_bind_b2PrismaticJointDef_set_bodyA_1,tp=e._emscripten_bind_b2World_GetWarmStarting_0=i._emscripten_bind_b2World_GetWarmStarting_0,up=e._emscripten_bind_b2RevoluteJointDef_set_enableLimit_1=i._emscripten_bind_b2RevoluteJointDef_set_enableLimit_1, vp=e._emscripten_bind_b2WeldJointDef___destroy___0=i._emscripten_bind_b2WeldJointDef___destroy___0,wp=e._emscripten_bind_b2Mat22_Solve_1=i._emscripten_bind_b2Mat22_Solve_1,xp=e._emscripten_bind_b2Color_get_g_0=i._emscripten_bind_b2Color_get_g_0,yp=e._emscripten_bind_VoidPtr___destroy___0=i._emscripten_bind_VoidPtr___destroy___0,zp=e._emscripten_bind_b2RopeJoint_GetNext_0=i._emscripten_bind_b2RopeJoint_GetNext_0,Ap=e._emscripten_bind_b2Filter_b2Filter_0=i._emscripten_bind_b2Filter_b2Filter_0,Bp=e._emscripten_bind_b2PolygonShape_GetChildCount_0= i._emscripten_bind_b2PolygonShape_GetChildCount_0,Cp=e._emscripten_bind_b2GearJointDef_get_ratio_0=i._emscripten_bind_b2GearJointDef_get_ratio_0,Dp=e._emscripten_bind_b2Mat33_Solve33_1=i._emscripten_bind_b2Mat33_Solve33_1,Ep=e._emscripten_bind_b2PulleyJoint_GetReactionForce_1=i._emscripten_bind_b2PulleyJoint_GetReactionForce_1,Fp=e._emscripten_bind_b2WheelJoint_GetCollideConnected_0=i._emscripten_bind_b2WheelJoint_GetCollideConnected_0,Gp=e._emscripten_bind_b2WheelJoint_SetSpringDampingRatio_1=i._emscripten_bind_b2WheelJoint_SetSpringDampingRatio_1, Hp=e._emscripten_bind_b2RevoluteJointDef___destroy___0=i._emscripten_bind_b2RevoluteJointDef___destroy___0,Ip=e._emscripten_bind_b2MouseJointDef_get_maxForce_0=i._emscripten_bind_b2MouseJointDef_get_maxForce_0,Jp=e._emscripten_bind_b2RevoluteJoint_EnableMotor_1=i._emscripten_bind_b2RevoluteJoint_EnableMotor_1,Kp=e._emscripten_bind_b2ContactFeature_get_typeB_0=i._emscripten_bind_b2ContactFeature_get_typeB_0,Lp=e._emscripten_bind_b2MotorJoint_SetLinearOffset_1=i._emscripten_bind_b2MotorJoint_SetLinearOffset_1, Mp=e._emscripten_bind_b2MotorJoint_GetReactionForce_1=i._emscripten_bind_b2MotorJoint_GetReactionForce_1,Np=e._emscripten_bind_b2Rot_GetAngle_0=i._emscripten_bind_b2Rot_GetAngle_0,Op=e._emscripten_bind_b2World_SetAllowSleeping_1=i._emscripten_bind_b2World_SetAllowSleeping_1,Pp=e._emscripten_bind_b2MotorJoint_SetAngularOffset_1=i._emscripten_bind_b2MotorJoint_SetAngularOffset_1,Qp=e._emscripten_bind_b2MotorJoint_GetLinearOffset_0=i._emscripten_bind_b2MotorJoint_GetLinearOffset_0,Rp=e._emscripten_bind_b2FrictionJoint_GetCollideConnected_0= i._emscripten_bind_b2FrictionJoint_GetCollideConnected_0,Sp=e._emscripten_bind_b2WheelJointDef_set_motorSpeed_1=i._emscripten_bind_b2WheelJointDef_set_motorSpeed_1,Tp=e._emscripten_bind_b2MotorJoint_GetAnchorA_0=i._emscripten_bind_b2MotorJoint_GetAnchorA_0,Up=e._emscripten_bind_b2Fixture_GetDensity_0=i._emscripten_bind_b2Fixture_GetDensity_0,Vp=e._emscripten_bind_b2PolygonShape_get_m_type_0=i._emscripten_bind_b2PolygonShape_get_m_type_0,Wp=e._emscripten_bind_b2Vec2_Set_2=i._emscripten_bind_b2Vec2_Set_2, Xp=e._emscripten_bind_b2WeldJointDef_get_type_0=i._emscripten_bind_b2WeldJointDef_get_type_0,Yp=e._emscripten_bind_b2MouseJointDef_b2MouseJointDef_0=i._emscripten_bind_b2MouseJointDef_b2MouseJointDef_0,Zp=e._emscripten_bind_b2Rot_get_s_0=i._emscripten_bind_b2Rot_get_s_0,$p=e._emscripten_bind_b2FrictionJoint_SetMaxTorque_1=i._emscripten_bind_b2FrictionJoint_SetMaxTorque_1,aq=e._emscripten_bind_b2MouseJointDef_get_frequencyHz_0=i._emscripten_bind_b2MouseJointDef_get_frequencyHz_0,bq=e._emscripten_bind_b2FrictionJoint_SetUserData_1= i._emscripten_bind_b2FrictionJoint_SetUserData_1,cq=e._emscripten_bind_b2FixtureDef_set_userData_1=i._emscripten_bind_b2FixtureDef_set_userData_1,dq=e._emscripten_bind_b2JointDef_get_userData_0=i._emscripten_bind_b2JointDef_get_userData_0,eq=e._emscripten_bind_b2DistanceJointDef_get_collideConnected_0=i._emscripten_bind_b2DistanceJointDef_get_collideConnected_0,fq=e._emscripten_bind_b2RevoluteJointDef_set_referenceAngle_1=i._emscripten_bind_b2RevoluteJointDef_set_referenceAngle_1,gq=e._emscripten_bind_b2ContactFeature___destroy___0= i._emscripten_bind_b2ContactFeature___destroy___0,hq=e._emscripten_bind_b2DistanceJointDef_set_bodyB_1=i._emscripten_bind_b2DistanceJointDef_set_bodyB_1,iq=e._emscripten_bind_JSQueryCallback_JSQueryCallback_0=i._emscripten_bind_JSQueryCallback_JSQueryCallback_0,jq=e._emscripten_bind_b2ChainShape_GetChildCount_0=i._emscripten_bind_b2ChainShape_GetChildCount_0,kq=e._emscripten_bind_b2MassData_b2MassData_0=i._emscripten_bind_b2MassData_b2MassData_0,lq=e._emscripten_bind_b2Vec3_set_y_1=i._emscripten_bind_b2Vec3_set_y_1, mq=e._emscripten_bind_b2AABB_Combine_1=i._emscripten_bind_b2AABB_Combine_1,nq=e._emscripten_bind_b2AABB_Combine_2=i._emscripten_bind_b2AABB_Combine_2,oq=e._emscripten_bind_b2PrismaticJoint_GetBodyA_0=i._emscripten_bind_b2PrismaticJoint_GetBodyA_0,pq=e._emscripten_bind_b2PrismaticJoint_GetMaxMotorForce_0=i._emscripten_bind_b2PrismaticJoint_GetMaxMotorForce_0,qq=e._emscripten_bind_b2AABB___destroy___0=i._emscripten_bind_b2AABB___destroy___0,rq=e._emscripten_bind_b2Body_IsSleepingAllowed_0=i._emscripten_bind_b2Body_IsSleepingAllowed_0, sq=e._emscripten_bind_b2MouseJointDef_set_maxForce_1=i._emscripten_bind_b2MouseJointDef_set_maxForce_1,tq=e._emscripten_bind_b2MotorJoint_GetCorrectionFactor_0=i._emscripten_bind_b2MotorJoint_GetCorrectionFactor_0,uq=e._emscripten_bind_b2Profile_get_solve_0=i._emscripten_bind_b2Profile_get_solve_0,vq=e._emscripten_bind_JSDestructionListener_SayGoodbyeFixture_1=i._emscripten_bind_JSDestructionListener_SayGoodbyeFixture_1,wq=e._emscripten_bind_b2PolygonShape_GetVertexCount_0=i._emscripten_bind_b2PolygonShape_GetVertexCount_0, xq=e._emscripten_bind_b2Rot_get_c_0=i._emscripten_bind_b2Rot_get_c_0,yq=e._emscripten_bind_b2AABB_set_lowerBound_1=i._emscripten_bind_b2AABB_set_lowerBound_1,zq=e._emscripten_bind_b2ChainShape_get_m_hasPrevVertex_0=i._emscripten_bind_b2ChainShape_get_m_hasPrevVertex_0,Aq=e._emscripten_bind_b2MouseJoint_SetMaxForce_1=i._emscripten_bind_b2MouseJoint_SetMaxForce_1,Bq=e._emscripten_bind_b2FrictionJointDef_get_bodyB_0=i._emscripten_bind_b2FrictionJointDef_get_bodyB_0,Cq=e._emscripten_bind_b2JointDef_set_userData_1= i._emscripten_bind_b2JointDef_set_userData_1,Dq=e._emscripten_bind_b2ManifoldPoint_get_tangentImpulse_0=i._emscripten_bind_b2ManifoldPoint_get_tangentImpulse_0,Eq=e._emscripten_bind_b2RevoluteJointDef_get_maxMotorTorque_0=i._emscripten_bind_b2RevoluteJointDef_get_maxMotorTorque_0,Fq=e._emscripten_bind_b2WeldJointDef_get_dampingRatio_0=i._emscripten_bind_b2WeldJointDef_get_dampingRatio_0,Gq=e._emscripten_bind_b2MouseJoint___destroy___0=i._emscripten_bind_b2MouseJoint___destroy___0,Hq=e._emscripten_bind_b2EdgeShape_b2EdgeShape_0= i._emscripten_bind_b2EdgeShape_b2EdgeShape_0,Iq=e._emscripten_bind_b2FrictionJoint_GetReactionForce_1=i._emscripten_bind_b2FrictionJoint_GetReactionForce_1,Jq=e._emscripten_bind_b2DistanceJointDef_set_type_1=i._emscripten_bind_b2DistanceJointDef_set_type_1,Kq=e._emscripten_bind_b2WeldJoint___destroy___0=i._emscripten_bind_b2WeldJoint___destroy___0,Lq=e._emscripten_bind_b2PulleyJoint_GetBodyA_0=i._emscripten_bind_b2PulleyJoint_GetBodyA_0,Mq=e._emscripten_bind_b2RopeJointDef_get_type_0=i._emscripten_bind_b2RopeJointDef_get_type_0, Nq=e._emscripten_bind_b2CircleShape_ComputeMass_2=i._emscripten_bind_b2CircleShape_ComputeMass_2,Oq=e._emscripten_bind_b2DistanceJointDef_get_localAnchorB_0=i._emscripten_bind_b2DistanceJointDef_get_localAnchorB_0,Pq=e._emscripten_bind_b2GearJointDef___destroy___0=i._emscripten_bind_b2GearJointDef___destroy___0,Qq=e._emscripten_bind_b2RevoluteJointDef_set_bodyA_1=i._emscripten_bind_b2RevoluteJointDef_set_bodyA_1,Rq=e._emscripten_enum_b2BodyType_b2_dynamicBody=i._emscripten_enum_b2BodyType_b2_dynamicBody, Sq=e._emscripten_bind_b2CircleShape_TestPoint_2=i._emscripten_bind_b2CircleShape_TestPoint_2,Tq=e._emscripten_bind_b2MotorJointDef_get_maxTorque_0=i._emscripten_bind_b2MotorJointDef_get_maxTorque_0,Uq=e._emscripten_bind_b2Body_GetLinearVelocityFromLocalPoint_1=i._emscripten_bind_b2Body_GetLinearVelocityFromLocalPoint_1,Vq=e._emscripten_bind_b2Mat22_b2Mat22_0=i._emscripten_bind_b2Mat22_b2Mat22_0,Wq=e._emscripten_bind_b2MouseJoint_GetAnchorB_0=i._emscripten_bind_b2MouseJoint_GetAnchorB_0,Xq=e._emscripten_enum_b2BodyType_b2_kinematicBody= i._emscripten_enum_b2BodyType_b2_kinematicBody,Yq=e._emscripten_bind_b2Manifold_get_localPoint_0=i._emscripten_bind_b2Manifold_get_localPoint_0,Zq=e._emscripten_bind_b2GearJoint_GetBodyB_0=i._emscripten_bind_b2GearJoint_GetBodyB_0,$q=e._emscripten_bind_b2ChainShape_Clear_0=i._emscripten_bind_b2ChainShape_Clear_0,ar=e._emscripten_bind_b2CircleShape___destroy___0=i._emscripten_bind_b2CircleShape___destroy___0,br=e._emscripten_bind_b2MotorJoint_GetType_0=i._emscripten_bind_b2MotorJoint_GetType_0,cr= e._emscripten_bind_b2BodyDef_get_awake_0=i._emscripten_bind_b2BodyDef_get_awake_0,dr=e._emscripten_bind_b2Contact_SetRestitution_1=i._emscripten_bind_b2Contact_SetRestitution_1,er=e._emscripten_bind_b2BodyDef_get_angularDamping_0=i._emscripten_bind_b2BodyDef_get_angularDamping_0,fr=e._emscripten_bind_b2EdgeShape_get_m_vertex3_0=i._emscripten_bind_b2EdgeShape_get_m_vertex3_0,gr=e._emscripten_bind_b2Fixture_SetUserData_1=i._emscripten_bind_b2Fixture_SetUserData_1,hr=e._emscripten_bind_b2Transform_SetIdentity_0= i._emscripten_bind_b2Transform_SetIdentity_0,ir=e._emscripten_bind_b2GearJointDef_set_joint1_1=i._emscripten_bind_b2GearJointDef_set_joint1_1,jr=e._emscripten_bind_b2EdgeShape_set_m_vertex2_1=i._emscripten_bind_b2EdgeShape_set_m_vertex2_1,kr=e._emscripten_bind_b2ContactEdge_get_next_0=i._emscripten_bind_b2ContactEdge_get_next_0,lr=e._emscripten_bind_b2ContactFeature_set_indexB_1=i._emscripten_bind_b2ContactFeature_set_indexB_1,mr=e._emscripten_bind_b2Body_GetLinearVelocityFromWorldPoint_1=i._emscripten_bind_b2Body_GetLinearVelocityFromWorldPoint_1, nr=e._emscripten_bind_b2WeldJoint_GetCollideConnected_0=i._emscripten_bind_b2WeldJoint_GetCollideConnected_0,or=e._emscripten_bind_b2Mat22_set_ey_1=i._emscripten_bind_b2Mat22_set_ey_1,pr=e._emscripten_bind_b2WheelJointDef_set_frequencyHz_1=i._emscripten_bind_b2WheelJointDef_set_frequencyHz_1,qr=e._emscripten_bind_b2World_GetSubStepping_0=i._emscripten_bind_b2World_GetSubStepping_0,rr=e._emscripten_bind_b2Rot_GetYAxis_0=i._emscripten_bind_b2Rot_GetYAxis_0,sr=e._emscripten_bind_b2Contact_GetChildIndexB_0= i._emscripten_bind_b2Contact_GetChildIndexB_0,tr=e._emscripten_bind_b2DistanceJoint___destroy___0=i._emscripten_bind_b2DistanceJoint___destroy___0,ur=e._emscripten_bind_b2EdgeShape_GetType_0=i._emscripten_bind_b2EdgeShape_GetType_0,vr=e._emscripten_bind_b2WheelJointDef_set_dampingRatio_1=i._emscripten_bind_b2WheelJointDef_set_dampingRatio_1,wr=e._emscripten_bind_b2ManifoldPoint___destroy___0=i._emscripten_bind_b2ManifoldPoint___destroy___0,xr=e._emscripten_enum_b2JointType_e_prismaticJoint=i._emscripten_enum_b2JointType_e_prismaticJoint, yr=e._emscripten_bind_b2MotorJoint_GetNext_0=i._emscripten_bind_b2MotorJoint_GetNext_0,zr=e._emscripten_bind_b2Vec2_Length_0=i._emscripten_bind_b2Vec2_Length_0,Ar=e._emscripten_bind_b2Vec2_SetZero_0=i._emscripten_bind_b2Vec2_SetZero_0,Br=e._emscripten_bind_b2RopeJoint___destroy___0=i._emscripten_bind_b2RopeJoint___destroy___0,Cr=e._emscripten_bind_b2World_DestroyJoint_1=i._emscripten_bind_b2World_DestroyJoint_1,Dr=e._emscripten_bind_b2JointDef_set_bodyB_1=i._emscripten_bind_b2JointDef_set_bodyB_1, Er=e._emscripten_bind_b2Mat22_Set_2=i._emscripten_bind_b2Mat22_Set_2,Fr=e._emscripten_bind_b2Body_GetType_0=i._emscripten_bind_b2Body_GetType_0,Gr=e._emscripten_bind_b2WeldJoint_GetAnchorB_0=i._emscripten_bind_b2WeldJoint_GetAnchorB_0,Hr=e._emscripten_bind_b2WeldJoint_GetNext_0=i._emscripten_bind_b2WeldJoint_GetNext_0,Ir=e._emscripten_bind_b2Shape_get_m_radius_0=i._emscripten_bind_b2Shape_get_m_radius_0,Jr=e._emscripten_bind_b2EdgeShape_ComputeAABB_3=i._emscripten_bind_b2EdgeShape_ComputeAABB_3,Kr= e._emscripten_bind_b2BodyDef_get_type_0=i._emscripten_bind_b2BodyDef_get_type_0,Lr=e._emscripten_bind_b2WheelJointDef_set_collideConnected_1=i._emscripten_bind_b2WheelJointDef_set_collideConnected_1,Mr=e._emscripten_bind_JSDestructionListener___destroy___0=i._emscripten_bind_JSDestructionListener___destroy___0,Nr=e._emscripten_bind_b2MotorJointDef_get_type_0=i._emscripten_bind_b2MotorJointDef_get_type_0,Or=e._emscripten_bind_b2RopeJoint_GetLocalAnchorA_0=i._emscripten_bind_b2RopeJoint_GetLocalAnchorA_0, Pr=e._emscripten_bind_b2BodyDef_set_linearDamping_1=i._emscripten_bind_b2BodyDef_set_linearDamping_1,Qr=e._emscripten_bind_b2FrictionJoint_GetUserData_0=i._emscripten_bind_b2FrictionJoint_GetUserData_0,Rr=e._emscripten_bind_b2Contact_SetFriction_1=i._emscripten_bind_b2Contact_SetFriction_1,Sr=e._emscripten_bind_b2Manifold_set_localNormal_1=i._emscripten_bind_b2Manifold_set_localNormal_1,Tr=e._emscripten_bind_b2JointDef_get_bodyA_0=i._emscripten_bind_b2JointDef_get_bodyA_0,Ur=e._emscripten_bind_b2Body_GetLinearDamping_0= i._emscripten_bind_b2Body_GetLinearDamping_0,Vr=e._emscripten_bind_b2WeldJointDef_set_frequencyHz_1=i._emscripten_bind_b2WeldJointDef_set_frequencyHz_1,Wr=e._emscripten_bind_b2Body_ResetMassData_0=i._emscripten_bind_b2Body_ResetMassData_0,Xr=e._emscripten_bind_b2PrismaticJointDef_set_enableMotor_1=i._emscripten_bind_b2PrismaticJointDef_set_enableMotor_1,Yr=e._emscripten_enum_b2JointType_e_wheelJoint=i._emscripten_enum_b2JointType_e_wheelJoint,Zr=e._emscripten_bind_b2Vec2_Skew_0=i._emscripten_bind_b2Vec2_Skew_0, $r=e._emscripten_bind_b2MouseJoint_GetDampingRatio_0=i._emscripten_bind_b2MouseJoint_GetDampingRatio_0,as=e._emscripten_bind_b2RevoluteJoint_GetAnchorA_0=i._emscripten_bind_b2RevoluteJoint_GetAnchorA_0,bs=e._emscripten_bind_b2ChainShape_set_m_prevVertex_1=i._emscripten_bind_b2ChainShape_set_m_prevVertex_1,cs=e._emscripten_bind_b2WheelJoint_GetAnchorA_0=i._emscripten_bind_b2WheelJoint_GetAnchorA_0,ds=e._emscripten_bind_b2MotorJoint_GetMaxTorque_0=i._emscripten_bind_b2MotorJoint_GetMaxTorque_0,es=e._emscripten_bind_b2FrictionJoint_GetNext_0= i._emscripten_bind_b2FrictionJoint_GetNext_0,fs=e._emscripten_bind_b2PrismaticJointDef_set_userData_1=i._emscripten_bind_b2PrismaticJointDef_set_userData_1,gs=e._emscripten_bind_b2FrictionJointDef_set_type_1=i._emscripten_bind_b2FrictionJointDef_set_type_1,hs=e._emscripten_bind_b2PrismaticJoint_GetUserData_0=i._emscripten_bind_b2PrismaticJoint_GetUserData_0,is=e._emscripten_bind_b2FrictionJointDef_get_collideConnected_0=i._emscripten_bind_b2FrictionJointDef_get_collideConnected_0,js=e._emscripten_bind_b2Body_GetInertia_0= i._emscripten_bind_b2Body_GetInertia_0,ks=e._emscripten_bind_b2WeldJointDef_set_referenceAngle_1=i._emscripten_bind_b2WeldJointDef_set_referenceAngle_1,ls=e._emscripten_bind_b2FrictionJoint_GetAnchorA_0=i._emscripten_bind_b2FrictionJoint_GetAnchorA_0,ms=e._emscripten_bind_b2RopeJoint_GetType_0=i._emscripten_bind_b2RopeJoint_GetType_0,ns=e._emscripten_bind_b2MassData_get_I_0=i._emscripten_bind_b2MassData_get_I_0,os=e._emscripten_bind_b2WheelJointDef_get_motorSpeed_0=i._emscripten_bind_b2WheelJointDef_get_motorSpeed_0, ps=e._emscripten_bind_b2WeldJointDef_get_referenceAngle_0=i._emscripten_bind_b2WeldJointDef_get_referenceAngle_0,qs=e._emscripten_enum_b2JointType_e_ropeJoint=i._emscripten_enum_b2JointType_e_ropeJoint,rs=e._emscripten_bind_b2Filter_set_maskBits_1=i._emscripten_bind_b2Filter_set_maskBits_1,ss=e._emscripten_bind_b2EdgeShape_set_m_radius_1=i._emscripten_bind_b2EdgeShape_set_m_radius_1,ts=e._emscripten_bind_b2MotorJointDef_set_collideConnected_1=i._emscripten_bind_b2MotorJointDef_set_collideConnected_1, us=e._emscripten_bind_b2Mat22_b2Mat22_2=i._emscripten_bind_b2Mat22_b2Mat22_2,vs=e._emscripten_bind_b2WheelJointDef_set_maxMotorTorque_1=i._emscripten_bind_b2WheelJointDef_set_maxMotorTorque_1,xs=e._emscripten_bind_b2FrictionJointDef_set_bodyB_1=i._emscripten_bind_b2FrictionJointDef_set_bodyB_1,ys=e._emscripten_bind_b2Mat22_b2Mat22_4=i._emscripten_bind_b2Mat22_b2Mat22_4,zs=e._emscripten_bind_b2ChainShape_set_m_hasNextVertex_1=i._emscripten_bind_b2ChainShape_set_m_hasNextVertex_1,As=e._emscripten_bind_b2Mat22_GetInverse_0= i._emscripten_bind_b2Mat22_GetInverse_0,Bs=e._emscripten_bind_b2PrismaticJoint_EnableMotor_1=i._emscripten_bind_b2PrismaticJoint_EnableMotor_1,Cs=e._emscripten_bind_b2CircleShape_get_m_type_0=i._emscripten_bind_b2CircleShape_get_m_type_0,Ds=e._emscripten_bind_b2DistanceJoint_GetLocalAnchorA_0=i._emscripten_bind_b2DistanceJoint_GetLocalAnchorA_0,Es=e._emscripten_bind_b2ContactEdge_b2ContactEdge_0=i._emscripten_bind_b2ContactEdge_b2ContactEdge_0,Fs=e._emscripten_bind_b2BodyDef___destroy___0=i._emscripten_bind_b2BodyDef___destroy___0, Gs=e._emscripten_bind_b2FrictionJointDef_set_maxTorque_1=i._emscripten_bind_b2FrictionJointDef_set_maxTorque_1,Hs=e._emscripten_bind_b2PolygonShape_GetVertex_1=i._emscripten_bind_b2PolygonShape_GetVertex_1,Is=e._emscripten_bind_b2PulleyJointDef_set_groundAnchorB_1=i._emscripten_bind_b2PulleyJointDef_set_groundAnchorB_1,Js=e._emscripten_bind_b2RevoluteJointDef_get_collideConnected_0=i._emscripten_bind_b2RevoluteJointDef_get_collideConnected_0,Ks=e._emscripten_bind_b2DistanceJointDef_set_bodyA_1=i._emscripten_bind_b2DistanceJointDef_set_bodyA_1, Ls=e._emscripten_bind_b2RevoluteJoint_SetLimits_2=i._emscripten_bind_b2RevoluteJoint_SetLimits_2,Ms=e._emscripten_bind_b2WeldJointDef_set_type_1=i._emscripten_bind_b2WeldJointDef_set_type_1,Ns=e._emscripten_bind_b2MotorJointDef___destroy___0=i._emscripten_bind_b2MotorJointDef___destroy___0,Os=e._emscripten_bind_b2FixtureDef_set_density_1=i._emscripten_bind_b2FixtureDef_set_density_1,Ps=e._emscripten_bind_b2Shape_set_m_type_1=i._emscripten_bind_b2Shape_set_m_type_1,Qs=e._emscripten_bind_b2WheelJoint_GetJointTranslation_0= i._emscripten_bind_b2WheelJoint_GetJointTranslation_0,Rs=e._emscripten_bind_b2WheelJoint_GetMotorTorque_1=i._emscripten_bind_b2WheelJoint_GetMotorTorque_1,Ss=e._emscripten_bind_b2RopeJoint_SetUserData_1=i._emscripten_bind_b2RopeJoint_SetUserData_1,Ts=e._emscripten_bind_b2RopeJointDef___destroy___0=i._emscripten_bind_b2RopeJointDef___destroy___0,Us=e._emscripten_bind_b2WheelJoint_IsActive_0=i._emscripten_bind_b2WheelJoint_IsActive_0,Vs=e._emscripten_bind_b2PrismaticJointDef_get_enableMotor_0=i._emscripten_bind_b2PrismaticJointDef_get_enableMotor_0, Ws=e._emscripten_bind_b2MotorJointDef_set_bodyB_1=i._emscripten_bind_b2MotorJointDef_set_bodyB_1,Xs=e._emscripten_bind_b2Transform_b2Transform_2=i._emscripten_bind_b2Transform_b2Transform_2,Ys=e._emscripten_bind_b2WeldJoint_GetReactionForce_1=i._emscripten_bind_b2WeldJoint_GetReactionForce_1,Zs=e._emscripten_bind_b2ChainShape_RayCast_4=i._emscripten_bind_b2ChainShape_RayCast_4,$s=e._emscripten_bind_b2PrismaticJoint_GetUpperLimit_0=i._emscripten_bind_b2PrismaticJoint_GetUpperLimit_0,at=e._emscripten_bind_b2ContactID_get_cf_0= i._emscripten_bind_b2ContactID_get_cf_0,bt=e._emscripten_bind_b2MouseJointDef_set_frequencyHz_1=i._emscripten_bind_b2MouseJointDef_set_frequencyHz_1,ct=e._emscripten_bind_b2ChainShape_get_m_radius_0=i._emscripten_bind_b2ChainShape_get_m_radius_0,dt=e._emscripten_bind_b2Body_GetLinearVelocity_0=i._emscripten_bind_b2Body_GetLinearVelocity_0,et=e._emscripten_bind_b2ChainShape_set_m_radius_1=i._emscripten_bind_b2ChainShape_set_m_radius_1,ft=e._emscripten_bind_b2DistanceJoint_GetReactionTorque_1=i._emscripten_bind_b2DistanceJoint_GetReactionTorque_1, gt=e._emscripten_bind_b2World_Dump_0=i._emscripten_bind_b2World_Dump_0,ht=e._emscripten_bind_b2RevoluteJoint_GetLocalAnchorB_0=i._emscripten_bind_b2RevoluteJoint_GetLocalAnchorB_0,it=e._emscripten_bind_JSContactFilter_JSContactFilter_0=i._emscripten_bind_JSContactFilter_JSContactFilter_0,jt=e._emscripten_bind_b2Profile_set_solve_1=i._emscripten_bind_b2Profile_set_solve_1,kt=e._emscripten_bind_b2WeldJoint_GetDampingRatio_0=i._emscripten_bind_b2WeldJoint_GetDampingRatio_0,lt=e._emscripten_bind_b2Color_get_b_0= i._emscripten_bind_b2Color_get_b_0,mt=e._emscripten_bind_b2MouseJointDef_get_userData_0=i._emscripten_bind_b2MouseJointDef_get_userData_0,nt=e._emscripten_bind_b2CircleShape_ComputeAABB_3=i._emscripten_bind_b2CircleShape_ComputeAABB_3,ot=e._emscripten_bind_b2RopeJoint_GetReactionForce_1=i._emscripten_bind_b2RopeJoint_GetReactionForce_1,pt=e._emscripten_bind_b2PrismaticJointDef_get_enableLimit_0=i._emscripten_bind_b2PrismaticJointDef_get_enableLimit_0,qt=e._emscripten_bind_b2ManifoldPoint_set_localPoint_1= i._emscripten_bind_b2ManifoldPoint_set_localPoint_1,rt=e._emscripten_bind_b2Fixture_GetFilterData_0=i._emscripten_bind_b2Fixture_GetFilterData_0,st=e._emscripten_bind_b2World_GetBodyList_0=i._emscripten_bind_b2World_GetBodyList_0,tt=e._emscripten_bind_b2Shape_ComputeMass_2=i._emscripten_bind_b2Shape_ComputeMass_2,ut=e._emscripten_bind_b2Joint_GetNext_0=i._emscripten_bind_b2Joint_GetNext_0,vt=e._emscripten_bind_b2PrismaticJointDef_get_collideConnected_0=i._emscripten_bind_b2PrismaticJointDef_get_collideConnected_0, wt=e._emscripten_bind_b2World_RayCast_3=i._emscripten_bind_b2World_RayCast_3,xt=e._emscripten_bind_b2MassData_set_I_1=i._emscripten_bind_b2MassData_set_I_1,yt=e._emscripten_bind_b2MassData___destroy___0=i._emscripten_bind_b2MassData___destroy___0,zt=e._emscripten_bind_b2Profile_get_collide_0=i._emscripten_bind_b2Profile_get_collide_0,At=e._emscripten_bind_b2Color_b2Color_3=i._emscripten_bind_b2Color_b2Color_3,Bt=e._emscripten_bind_b2Color_b2Color_0=i._emscripten_bind_b2Color_b2Color_0,Ct=e._emscripten_bind_b2MouseJoint_GetFrequency_0= i._emscripten_bind_b2MouseJoint_GetFrequency_0,Dt=e._emscripten_bind_b2WeldJointDef_Initialize_3=i._emscripten_bind_b2WeldJointDef_Initialize_3,Et=e._emscripten_bind_b2Shape_GetChildCount_0=i._emscripten_bind_b2Shape_GetChildCount_0,Ft=e._emscripten_enum_b2JointType_e_gearJoint=i._emscripten_enum_b2JointType_e_gearJoint,Gt=e._emscripten_bind_b2FixtureDef_get_friction_0=i._emscripten_bind_b2FixtureDef_get_friction_0,Ht=e._emscripten_bind_b2PrismaticJointDef_set_localAnchorA_1=i._emscripten_bind_b2PrismaticJointDef_set_localAnchorA_1, It=e._emscripten_bind_b2Contact_GetManifold_0=i._emscripten_bind_b2Contact_GetManifold_0,Jt=e._emscripten_bind_b2MouseJoint_GetTarget_0=i._emscripten_bind_b2MouseJoint_GetTarget_0,Kt=e._emscripten_bind_b2WeldJointDef_get_localAnchorA_0=i._emscripten_bind_b2WeldJointDef_get_localAnchorA_0,Lt=e._emscripten_bind_b2MouseJoint_SetUserData_1=i._emscripten_bind_b2MouseJoint_SetUserData_1,Mt=e._emscripten_bind_b2JointEdge_get_other_0=i._emscripten_bind_b2JointEdge_get_other_0,Nt=e._emscripten_bind_b2ChainShape_GetChildEdge_2= i._emscripten_bind_b2ChainShape_GetChildEdge_2,Ot=e._emscripten_bind_b2GearJointDef_set_collideConnected_1=i._emscripten_bind_b2GearJointDef_set_collideConnected_1,Pt=e._emscripten_bind_b2MotorJointDef_get_angularOffset_0=i._emscripten_bind_b2MotorJointDef_get_angularOffset_0,Qt=e._emscripten_bind_b2WheelJoint_SetUserData_1=i._emscripten_bind_b2WheelJoint_SetUserData_1,Rt=e._emscripten_bind_b2Body_ApplyForce_3=i._emscripten_bind_b2Body_ApplyForce_3,St=e._emscripten_bind_b2PrismaticJoint_SetMotorSpeed_1= i._emscripten_bind_b2PrismaticJoint_SetMotorSpeed_1,Tt=e._emscripten_bind_b2DistanceJoint_GetCollideConnected_0=i._emscripten_bind_b2DistanceJoint_GetCollideConnected_0,Ut=e._emscripten_bind_b2MouseJoint_GetMaxForce_0=i._emscripten_bind_b2MouseJoint_GetMaxForce_0,Vt=e._emscripten_bind_b2World_SetGravity_1=i._emscripten_bind_b2World_SetGravity_1,Wt=e._emscripten_bind_b2Mat22_SetZero_0=i._emscripten_bind_b2Mat22_SetZero_0,Xt=e._emscripten_bind_b2Contact_GetChildIndexA_0=i._emscripten_bind_b2Contact_GetChildIndexA_0, Yt=e._emscripten_bind_b2Fixture_SetRestitution_1=i._emscripten_bind_b2Fixture_SetRestitution_1,Zt=e._emscripten_bind_b2Body_GetTransform_0=i._emscripten_bind_b2Body_GetTransform_0,$t=e._emscripten_bind_b2ContactEdge___destroy___0=i._emscripten_bind_b2ContactEdge___destroy___0,au=e._emscripten_bind_b2Mat33_set_ex_1=i._emscripten_bind_b2Mat33_set_ex_1,bu=e._emscripten_bind_b2AABB_GetExtents_0=i._emscripten_bind_b2AABB_GetExtents_0,cu=e._emscripten_bind_b2RevoluteJointDef_get_bodyA_0=i._emscripten_bind_b2RevoluteJointDef_get_bodyA_0, du=e._emscripten_bind_b2PrismaticJoint_GetBodyB_0=i._emscripten_bind_b2PrismaticJoint_GetBodyB_0,eu=e._emscripten_bind_b2WheelJointDef_set_bodyA_1=i._emscripten_bind_b2WheelJointDef_set_bodyA_1,fu=e._emscripten_bind_b2DistanceJointDef_set_collideConnected_1=i._emscripten_bind_b2DistanceJointDef_set_collideConnected_1,gu=e._emscripten_bind_b2BodyDef_get_angle_0=i._emscripten_bind_b2BodyDef_get_angle_0,hu=e._emscripten_bind_b2PulleyJoint_GetReactionTorque_1=i._emscripten_bind_b2PulleyJoint_GetReactionTorque_1, iu=e._emscripten_bind_b2FixtureDef_get_shape_0=i._emscripten_bind_b2FixtureDef_get_shape_0,ju=e._emscripten_bind_b2WeldJointDef_get_userData_0=i._emscripten_bind_b2WeldJointDef_get_userData_0,ku=e._emscripten_bind_b2FrictionJoint_SetMaxForce_1=i._emscripten_bind_b2FrictionJoint_SetMaxForce_1,lu=e._emscripten_bind_b2Mat33_b2Mat33_3=i._emscripten_bind_b2Mat33_b2Mat33_3,mu=e._emscripten_bind_b2Vec3_get_y_0=i._emscripten_bind_b2Vec3_get_y_0,nu=e._emscripten_bind_b2JointDef_get_type_0=i._emscripten_bind_b2JointDef_get_type_0, ou=e._emscripten_bind_JSQueryCallback_ReportFixture_1=i._emscripten_bind_JSQueryCallback_ReportFixture_1,pu=e._emscripten_bind_b2Fixture_TestPoint_1=i._emscripten_bind_b2Fixture_TestPoint_1,qu=e._emscripten_bind_b2RevoluteJoint_GetCollideConnected_0=i._emscripten_bind_b2RevoluteJoint_GetCollideConnected_0,ru=e._emscripten_bind_JSDraw_JSDraw_0=i._emscripten_bind_JSDraw_JSDraw_0,su=e._emscripten_bind_b2MouseJoint_GetAnchorA_0=i._emscripten_bind_b2MouseJoint_GetAnchorA_0,tu=e._emscripten_bind_b2Transform_get_p_0= i._emscripten_bind_b2Transform_get_p_0,uu=e._emscripten_bind_b2EdgeShape_ComputeMass_2=i._emscripten_bind_b2EdgeShape_ComputeMass_2,vu=e._emscripten_bind_b2World_GetProfile_0=i._emscripten_bind_b2World_GetProfile_0,wu=e._emscripten_bind_b2DistanceJointDef___destroy___0=i._emscripten_bind_b2DistanceJointDef___destroy___0,xu=e._emscripten_bind_b2RopeJointDef_set_bodyA_1=i._emscripten_bind_b2RopeJointDef_set_bodyA_1,yu=e._emscripten_bind_b2JointDef_set_type_1=i._emscripten_bind_b2JointDef_set_type_1, zu=e._emscripten_bind_b2Draw_AppendFlags_1=i._emscripten_bind_b2Draw_AppendFlags_1,Au=e._emscripten_bind_b2MotorJointDef_get_userData_0=i._emscripten_bind_b2MotorJointDef_get_userData_0,Bu=e._emscripten_bind_b2World_GetContactList_0=i._emscripten_bind_b2World_GetContactList_0,Cu=e._emscripten_bind_b2Mat33_set_ez_1=i._emscripten_bind_b2Mat33_set_ez_1,Du=e._emscripten_bind_b2JointEdge_b2JointEdge_0=i._emscripten_bind_b2JointEdge_b2JointEdge_0,Eu=e._emscripten_bind_b2FrictionJointDef_get_bodyA_0=i._emscripten_bind_b2FrictionJointDef_get_bodyA_0, Fu=e._emscripten_bind_b2WheelJointDef_get_type_0=i._emscripten_bind_b2WheelJointDef_get_type_0,Gu=e._emscripten_bind_b2RevoluteJoint_GetReactionForce_1=i._emscripten_bind_b2RevoluteJoint_GetReactionForce_1,Hu=e._emscripten_bind_b2PulleyJointDef_set_collideConnected_1=i._emscripten_bind_b2PulleyJointDef_set_collideConnected_1,Iu=e._emscripten_bind_b2RopeJoint_GetCollideConnected_0=i._emscripten_bind_b2RopeJoint_GetCollideConnected_0,Ju=e._emscripten_bind_b2GearJointDef_set_joint2_1=i._emscripten_bind_b2GearJointDef_set_joint2_1, Ku=e._emscripten_bind_b2BodyDef_set_userData_1=i._emscripten_bind_b2BodyDef_set_userData_1,Lu=e._emscripten_bind_b2GearJoint_GetAnchorB_0=i._emscripten_bind_b2GearJoint_GetAnchorB_0,Mu=e._emscripten_bind_b2RopeJoint_IsActive_0=i._emscripten_bind_b2RopeJoint_IsActive_0,Nu=e._emscripten_bind_b2Fixture_GetFriction_0=i._emscripten_bind_b2Fixture_GetFriction_0,Ou=e._emscripten_enum_b2DrawFlag_e_aabbBit=i._emscripten_enum_b2DrawFlag_e_aabbBit,Pu=e._emscripten_bind_b2RevoluteJointDef_Initialize_3=i._emscripten_bind_b2RevoluteJointDef_Initialize_3, Qu=e._emscripten_bind_b2Body_GetAngle_0=i._emscripten_bind_b2Body_GetAngle_0,Ru=e._emscripten_bind_b2EdgeShape_Set_2=i._emscripten_bind_b2EdgeShape_Set_2,Su=e._emscripten_bind_b2Mat33_SetZero_0=i._emscripten_bind_b2Mat33_SetZero_0,Tu=e._emscripten_bind_b2MotorJointDef_set_maxTorque_1=i._emscripten_bind_b2MotorJointDef_set_maxTorque_1,Uu=e._emscripten_bind_b2PrismaticJointDef_get_localAxisA_0=i._emscripten_bind_b2PrismaticJointDef_get_localAxisA_0,Vu=e._emscripten_bind_b2Mat22_get_ey_0=i._emscripten_bind_b2Mat22_get_ey_0, Wu=e._emscripten_bind_b2Mat22_SetIdentity_0=i._emscripten_bind_b2Mat22_SetIdentity_0,Xu=e._emscripten_bind_b2Joint_IsActive_0=i._emscripten_bind_b2Joint_IsActive_0,Yu=e._emscripten_bind_b2BodyDef_get_allowSleep_0=i._emscripten_bind_b2BodyDef_get_allowSleep_0,Zu=e._emscripten_bind_b2World_GetTreeHeight_0=i._emscripten_bind_b2World_GetTreeHeight_0,$u=e._emscripten_bind_b2GearJoint_GetJoint2_0=i._emscripten_bind_b2GearJoint_GetJoint2_0,av=e._emscripten_bind_b2EdgeShape_set_m_vertex1_1=i._emscripten_bind_b2EdgeShape_set_m_vertex1_1, bv=e._emscripten_bind_b2Body_GetWorld_0=i._emscripten_bind_b2Body_GetWorld_0,cv=e._emscripten_enum_b2LimitState_e_inactiveLimit=i._emscripten_enum_b2LimitState_e_inactiveLimit,dv=e._emscripten_bind_b2PulleyJointDef_set_lengthB_1=i._emscripten_bind_b2PulleyJointDef_set_lengthB_1,ev=e._emscripten_bind_b2Body_SetAwake_1=i._emscripten_bind_b2Body_SetAwake_1,fv=e._emscripten_bind_b2PrismaticJointDef_set_upperTranslation_1=i._emscripten_bind_b2PrismaticJointDef_set_upperTranslation_1,gv=e._emscripten_bind_b2Vec2___destroy___0= i._emscripten_bind_b2Vec2___destroy___0,hv=e._emscripten_bind_b2RayCastInput_set_p1_1=i._emscripten_bind_b2RayCastInput_set_p1_1,iv=e._emscripten_bind_b2Contact_ResetFriction_0=i._emscripten_bind_b2Contact_ResetFriction_0,jv=e._emscripten_bind_b2PulleyJoint_GetAnchorA_0=i._emscripten_bind_b2PulleyJoint_GetAnchorA_0,kv=e._emscripten_bind_b2BodyDef_get_linearVelocity_0=i._emscripten_bind_b2BodyDef_get_linearVelocity_0,lv=e._emscripten_bind_b2DistanceJointDef_get_bodyB_0=i._emscripten_bind_b2DistanceJointDef_get_bodyB_0, mv=e._emscripten_bind_b2Mat22___destroy___0=i._emscripten_bind_b2Mat22___destroy___0,nv=e._emscripten_bind_b2RevoluteJoint_GetNext_0=i._emscripten_bind_b2RevoluteJoint_GetNext_0,ov=e._emscripten_bind_b2WeldJointDef_get_bodyA_0=i._emscripten_bind_b2WeldJointDef_get_bodyA_0,pv=e._emscripten_bind_b2MotorJoint_GetAnchorB_0=i._emscripten_bind_b2MotorJoint_GetAnchorB_0,qv=e._emscripten_bind_b2Fixture_GetShape_0=i._emscripten_bind_b2Fixture_GetShape_0,rv=e._emscripten_bind_b2PolygonShape_SetAsBox_2=i._emscripten_bind_b2PolygonShape_SetAsBox_2, sv=e._emscripten_bind_b2Vec3_op_mul_1=i._emscripten_bind_b2Vec3_op_mul_1,tv=e._emscripten_bind_b2PolygonShape_set_m_type_1=i._emscripten_bind_b2PolygonShape_set_m_type_1,uv=e._emscripten_bind_b2WheelJoint_GetType_0=i._emscripten_bind_b2WheelJoint_GetType_0,vv=e._emscripten_bind_b2MotorJoint_GetAngularOffset_0=i._emscripten_bind_b2MotorJoint_GetAngularOffset_0,wv=e._emscripten_bind_b2RevoluteJoint_IsActive_0=i._emscripten_bind_b2RevoluteJoint_IsActive_0,xv=e._emscripten_bind_b2GearJoint_GetNext_0= i._emscripten_bind_b2GearJoint_GetNext_0,yv=e._emscripten_bind_b2MotorJointDef_get_correctionFactor_0=i._emscripten_bind_b2MotorJointDef_get_correctionFactor_0,zv=e._emscripten_bind_b2Color_Set_3=i._emscripten_bind_b2Color_Set_3,Av=e._emscripten_bind_b2EdgeShape_set_m_type_1=i._emscripten_bind_b2EdgeShape_set_m_type_1,Bv=e._emscripten_bind_b2WheelJoint_GetLocalAxisA_0=i._emscripten_bind_b2WheelJoint_GetLocalAxisA_0,Cv=e._emscripten_bind_b2Body_GetNext_0=i._emscripten_bind_b2Body_GetNext_0,Dv=e._emscripten_bind_b2RopeJoint_GetBodyA_0= i._emscripten_bind_b2RopeJoint_GetBodyA_0,Ev=e._emscripten_enum_b2JointType_e_unknownJoint=i._emscripten_enum_b2JointType_e_unknownJoint,Fv=e._emscripten_bind_b2ContactFeature_set_indexA_1=i._emscripten_bind_b2ContactFeature_set_indexA_1,Gv=e._emscripten_bind_b2Profile_get_solveInit_0=i._emscripten_bind_b2Profile_get_solveInit_0,Hv=e._emscripten_bind_b2BodyDef_set_angularDamping_1=i._emscripten_bind_b2BodyDef_set_angularDamping_1,Iv=e._emscripten_bind_b2FrictionJoint_GetAnchorB_0=i._emscripten_bind_b2FrictionJoint_GetAnchorB_0, Jv=e._emscripten_bind_b2World_QueryAABB_2=i._emscripten_bind_b2World_QueryAABB_2,Kv=e._emscripten_bind_b2BodyDef_get_userData_0=i._emscripten_bind_b2BodyDef_get_userData_0,Lv=e._emscripten_bind_b2ContactID_get_key_0=i._emscripten_bind_b2ContactID_get_key_0,Mv=e._emscripten_bind_b2Body_SetAngularVelocity_1=i._emscripten_bind_b2Body_SetAngularVelocity_1,Nv=e._emscripten_bind_b2WheelJointDef_get_userData_0=i._emscripten_bind_b2WheelJointDef_get_userData_0,Ov=e._emscripten_bind_b2RevoluteJoint_IsLimitEnabled_0= i._emscripten_bind_b2RevoluteJoint_IsLimitEnabled_0,Pv=e._emscripten_bind_b2DistanceJoint_GetBodyB_0=i._emscripten_bind_b2DistanceJoint_GetBodyB_0,Qv=e._emscripten_bind_b2RevoluteJointDef_set_maxMotorTorque_1=i._emscripten_bind_b2RevoluteJointDef_set_maxMotorTorque_1,Rv=e._emscripten_bind_b2WeldJointDef_set_bodyB_1=i._emscripten_bind_b2WeldJointDef_set_bodyB_1,Sv=e._emscripten_bind_b2RevoluteJoint_SetUserData_1=i._emscripten_bind_b2RevoluteJoint_SetUserData_1,Tv=e._emscripten_bind_b2DistanceJoint_SetLength_1= i._emscripten_bind_b2DistanceJoint_SetLength_1,Uv=e._emscripten_bind_b2JointEdge_get_joint_0=i._emscripten_bind_b2JointEdge_get_joint_0,Vv=e._emscripten_bind_b2Body_GetLocalCenter_0=i._emscripten_bind_b2Body_GetLocalCenter_0,Wv=e._emscripten_bind_b2FixtureDef___destroy___0=i._emscripten_bind_b2FixtureDef___destroy___0,Xv=e._emscripten_bind_b2FixtureDef_set_shape_1=i._emscripten_bind_b2FixtureDef_set_shape_1,Yv=e._emscripten_bind_b2WeldJoint_GetAnchorA_0=i._emscripten_bind_b2WeldJoint_GetAnchorA_0, Zv=e._emscripten_bind_b2Profile_get_solveVelocity_0=i._emscripten_bind_b2Profile_get_solveVelocity_0,$v=e._emscripten_bind_b2WeldJointDef_get_bodyB_0=i._emscripten_bind_b2WeldJointDef_get_bodyB_0,aw=e._emscripten_bind_b2Body_SetAngularDamping_1=i._emscripten_bind_b2Body_SetAngularDamping_1,bw=e._emscripten_bind_b2PulleyJointDef_Initialize_7=i._emscripten_bind_b2PulleyJointDef_Initialize_7,cw=e._emscripten_bind_b2GearJointDef_set_bodyB_1=i._emscripten_bind_b2GearJointDef_set_bodyB_1,dw=e._emscripten_bind_b2RopeJoint_GetReactionTorque_1= i._emscripten_bind_b2RopeJoint_GetReactionTorque_1,ew=e._emscripten_bind_b2Mat22_set_ex_1=i._emscripten_bind_b2Mat22_set_ex_1,fw=e._emscripten_bind_b2GearJoint_GetType_0=i._emscripten_bind_b2GearJoint_GetType_0,gw=e._emscripten_enum_b2DrawFlag_e_centerOfMassBit=i._emscripten_enum_b2DrawFlag_e_centerOfMassBit,hw=e._emscripten_bind_b2ChainShape_b2ChainShape_0=i._emscripten_bind_b2ChainShape_b2ChainShape_0,iw=e._emscripten_bind_b2RevoluteJoint_SetMaxMotorTorque_1=i._emscripten_bind_b2RevoluteJoint_SetMaxMotorTorque_1, jw=e._emscripten_bind_b2RopeJointDef_set_localAnchorB_1=i._emscripten_bind_b2RopeJointDef_set_localAnchorB_1,kw=e._emscripten_bind_b2FrictionJointDef_Initialize_3=i._emscripten_bind_b2FrictionJointDef_Initialize_3,lw=e._emscripten_bind_b2GearJointDef_set_userData_1=i._emscripten_bind_b2GearJointDef_set_userData_1,mw=e._emscripten_bind_b2ChainShape_CreateLoop_2=i._emscripten_bind_b2ChainShape_CreateLoop_2,nw=e._emscripten_bind_b2EdgeShape_get_m_radius_0=i._emscripten_bind_b2EdgeShape_get_m_radius_0, ow=e._emscripten_bind_b2Contact_GetFixtureB_0=i._emscripten_bind_b2Contact_GetFixtureB_0,pw=e._emscripten_bind_b2ChainShape_ComputeMass_2=i._emscripten_bind_b2ChainShape_ComputeMass_2,qw=e._emscripten_bind_b2Vec2_set_y_1=i._emscripten_bind_b2Vec2_set_y_1,rw=e._emscripten_bind_b2PrismaticJoint_IsLimitEnabled_0=i._emscripten_bind_b2PrismaticJoint_IsLimitEnabled_0,sw=e._emscripten_bind_b2RopeJointDef_get_bodyB_0=i._emscripten_bind_b2RopeJointDef_get_bodyB_0,tw=e._emscripten_bind_b2BodyDef_b2BodyDef_0= i._emscripten_bind_b2BodyDef_b2BodyDef_0,uw=e._emscripten_bind_b2MassData_get_mass_0=i._emscripten_bind_b2MassData_get_mass_0,vw=e._emscripten_bind_b2WheelJoint___destroy___0=i._emscripten_bind_b2WheelJoint___destroy___0,ww=e._emscripten_bind_b2Joint_GetBodyB_0=i._emscripten_bind_b2Joint_GetBodyB_0,xw=e._emscripten_bind_b2MouseJointDef_set_collideConnected_1=i._emscripten_bind_b2MouseJointDef_set_collideConnected_1,yw=e._emscripten_bind_b2WheelJointDef_set_localAxisA_1=i._emscripten_bind_b2WheelJointDef_set_localAxisA_1, zw=e._emscripten_bind_b2Joint_Dump_0=i._emscripten_bind_b2Joint_Dump_0,Aw=e._emscripten_bind_b2WheelJointDef_b2WheelJointDef_0=i._emscripten_bind_b2WheelJointDef_b2WheelJointDef_0,Bw=e._emscripten_bind_b2RevoluteJointDef_set_motorSpeed_1=i._emscripten_bind_b2RevoluteJointDef_set_motorSpeed_1,Cw=e._emscripten_bind_b2MotorJointDef_get_bodyA_0=i._emscripten_bind_b2MotorJointDef_get_bodyA_0,Dw=e._emscripten_bind_b2WheelJointDef_get_enableMotor_0=i._emscripten_bind_b2WheelJointDef_get_enableMotor_0,Ew= e._emscripten_bind_b2Vec2_LengthSquared_0=i._emscripten_bind_b2Vec2_LengthSquared_0,Fw=e._emscripten_bind_b2FrictionJointDef_set_bodyA_1=i._emscripten_bind_b2FrictionJointDef_set_bodyA_1,Gw=e._emscripten_bind_b2WheelJoint_GetSpringFrequencyHz_0=i._emscripten_bind_b2WheelJoint_GetSpringFrequencyHz_0,Hw=e._emscripten_bind_b2ContactFeature_get_indexB_0=i._emscripten_bind_b2ContactFeature_get_indexB_0,Iw=e._emscripten_bind_b2Body_GetJointList_0=i._emscripten_bind_b2Body_GetJointList_0,Jw=e._emscripten_bind_b2FrictionJoint_GetBodyA_0= i._emscripten_bind_b2FrictionJoint_GetBodyA_0,Kw=e._emscripten_bind_b2WheelJointDef_set_localAnchorB_1=i._emscripten_bind_b2WheelJointDef_set_localAnchorB_1,Lw=e._emscripten_bind_b2DistanceJointDef_set_localAnchorA_1=i._emscripten_bind_b2DistanceJointDef_set_localAnchorA_1,Mw=e._emscripten_bind_b2PrismaticJointDef_get_maxMotorForce_0=i._emscripten_bind_b2PrismaticJointDef_get_maxMotorForce_0,Nw=e._emscripten_bind_b2Body_SetUserData_1=i._emscripten_bind_b2Body_SetUserData_1,Ow=e._emscripten_bind_b2DistanceJoint_GetUserData_0= i._emscripten_bind_b2DistanceJoint_GetUserData_0,Pw=e._emscripten_bind_b2PulleyJointDef_set_bodyA_1=i._emscripten_bind_b2PulleyJointDef_set_bodyA_1,Qw=e._emscripten_bind_b2Joint_GetType_0=i._emscripten_bind_b2Joint_GetType_0,Rw=e._emscripten_bind_b2Manifold_get_pointCount_0=i._emscripten_bind_b2Manifold_get_pointCount_0,Sw=e._emscripten_bind_b2Mat33_get_ez_0=i._emscripten_bind_b2Mat33_get_ez_0,Tw=e._emscripten_bind_b2DestructionListenerWrapper___destroy___0=i._emscripten_bind_b2DestructionListenerWrapper___destroy___0, Uw=e._emscripten_bind_b2WheelJointDef_get_bodyA_0=i._emscripten_bind_b2WheelJointDef_get_bodyA_0,Vw=e._emscripten_enum_b2LimitState_e_atUpperLimit=i._emscripten_enum_b2LimitState_e_atUpperLimit,Ww=e._emscripten_bind_b2PulleyJointDef_set_groundAnchorA_1=i._emscripten_bind_b2PulleyJointDef_set_groundAnchorA_1,Xw=e._emscripten_bind_b2MouseJointDef_get_type_0=i._emscripten_bind_b2MouseJointDef_get_type_0,Yw=e._emscripten_bind_b2PrismaticJoint_SetMaxMotorForce_1=i._emscripten_bind_b2PrismaticJoint_SetMaxMotorForce_1, Zw=e._emscripten_bind_b2PulleyJointDef_get_collideConnected_0=i._emscripten_bind_b2PulleyJointDef_get_collideConnected_0,$w=e._emscripten_bind_b2RopeJoint_SetMaxLength_1=i._emscripten_bind_b2RopeJoint_SetMaxLength_1,ax=e._emscripten_bind_b2Joint_SetUserData_1=i._emscripten_bind_b2Joint_SetUserData_1,bx=e._emscripten_bind_b2PolygonShape_set_m_radius_1=i._emscripten_bind_b2PolygonShape_set_m_radius_1,cx=e._emscripten_bind_b2Vec2_get_x_0=i._emscripten_bind_b2Vec2_get_x_0,dx=e._emscripten_bind_JSContactListener_JSContactListener_0= i._emscripten_bind_JSContactListener_JSContactListener_0;e.runPostSets=i.runPostSets;e.dynCall_iiii=i.dynCall_iiii;e.dynCall_viiiii=i.dynCall_viiiii;e.dynCall_did=i.dynCall_did;e.dynCall_vi=i.dynCall_vi;e.dynCall_diiiid=i.dynCall_diiiid;e.dynCall_vii=i.dynCall_vii;e.dynCall_viidii=i.dynCall_viidii;e.dynCall_ii=i.dynCall_ii;e.dynCall_viidi=i.dynCall_viidi;e.dynCall_viii=i.dynCall_viii;e.dynCall_v=i.dynCall_v;e.dynCall_viid=i.dynCall_viid;e.dynCall_viiiiii=i.dynCall_viiiiii;e.dynCall_iii=i.dynCall_iii; e.dynCall_iiiiii=i.dynCall_iiiiii;e.dynCall_viiii=i.dynCall_viiii;h.u=i.stackAlloc;h.A=i.stackSave;h.J=i.stackRestore;h.ga=i.setTempRet0;h.aa=i.getTempRet0;var jc=ba;if(Nb)if("function"===typeof e.locateFile?Nb=e.locateFile(Nb):e.memoryInitializerPrefixURL&&(Nb=e.memoryInitializerPrefixURL+Nb),fa||ja){var ex=e.readBinary(Nb);bb.set(ex,jb)}else Lb(),Browser.oa(Nb,function(a){bb.set(a,jb);Mb()},function(){c("could not load memory initializer "+Nb)}); function na(a){this.name="ExitStatus";this.message="Program terminated with exit("+a+")";this.status=a}na.prototype=Error();var fx,gx=ba,Kb=function hx(){!e.calledRun&&ix&&jx();e.calledRun||(Kb=hx)}; e.callMain=e.pa=function(a){function b(){for(var a=0;3>a;a++)g.push(0)}oa(0==Ib,"cannot call main when async dependencies remain! (listen on __ATMAIN__)");oa(0==rb.length,"cannot call main when preRun functions remain to be called");a=a||[];wb||(wb=aa,qb(sb));var f=a.length+1,g=[$a(Ab(e.thisProgram),"i8",0)];b();for(var k=0;k = px && px >= x2-0.1) || (x1-0.1 <= px && px <= x2+0.1); var b2 = (y1+0.1 >= py && py >= y2-0.1) || (y1-0.1 <= py && py <= y2+0.1); return (b1 && b2) && cr.b2Separator.isOnLine(px, py, x1, y1, x2, y2); }; cr.b2Separator.isOnLine = function(px, py, x1, y1, x2, y2) { if (Math.abs(x2-x1) > 0.1) { var a = (y2-y1) / (x2-x1); var possibleY = a * (px-x1)+y1; var diff = Math.abs(possibleY-py); return diff < 0.1; } return Math.abs(px-x1) < 0.1; }; cr.b2Separator.pointsMatch = function(x1, y1, x2, y2) { return Math.abs(x2-x1) < 0.1 && Math.abs(y2-y1) < 0.1; }; cr.b2Separator.Separate = function(verticesVec /*array of b2Vec2*/, objarea) { var calced = cr.b2Separator.calcShapes(verticesVec); var ret = []; var poly, a, b, c; var i, len, j, lenj; var areasum; for (i = 0, len = calced.length; i < len; i++) { a = calced[i]; poly = []; poly.length = a.length; areasum = 0; for (j = 0, lenj = a.length; j < lenj; j++) { b = a[j]; c = a[(j + 1) % lenj]; areasum += (b.get_x() * c.get_y() - b.get_y() * c.get_x()); poly[j] = b2Vec2.Get(b.get_x(), b.get_y()); } areasum = Math.abs(areasum / 2); if (areasum >= objarea * 0.001) ret.push(poly); else { for (j = 0, lenj = poly.length; j < lenj; j++) b2Vec2.Free(poly[j]); } } ret = SplitConvexPolysOver8Points(ret); ; return ret; }; cr.b2Separator.calcShapes = function(verticesVec /*array of b2Vec2*/) { var vec = []; // array of b2Vec2 var i = 0, n = 0, j = 0; // ints var d = 0, t = 0, dx = 0, dy = 0, minLen = 0; // numbers var i1 = 0, i2 = 0, i3 = 0; // ints var p1, p2, p3, v1, v2, v, hitV; // b2Vec2s var j1 = 0, j2 = 0, k = 0, h = 0; // ints var vec1 = [], vec2 = []; // array of b2Vec2 var isConvex = false; // boolean var figsVec = [], queue = []; // Arrays var pushed = false; queue.push(verticesVec); while (queue.length) { vec = queue[0]; n = vec.length; isConvex = true; for (i = 0; i < n; i++) { i1 = i; i2 = (i < n-1) ? i+1 : i+1-n; i3 = (i < n-2) ? i+2 : i+2-n; p1 = vec[i1]; p2 = vec[i2]; p3 = vec[i3]; d = cr.b2Separator.det(p1.get_x(), p1.get_y(), p2.get_x(), p2.get_y(), p3.get_x(), p3.get_y()); if (d < 0) { isConvex = false; minLen = 1e9; for (j = 0; j < n; j++) { if ((j !== i1) && (j !== i2)) { j1 = j; j2 = (j = n) return []; if (!cr.b2Separator.isOnSegment(v2.get_x(), v2.get_y(), vec[h].get_x(), vec[h].get_y(), p1.get_x(), p1.get_y())) vec1.push(vec[k]); break; } h = k; if (k-1 < 0) k = n-1; else k--; } vec1.reverse(); h = -1; k = i2; while (true) { if (k !== j1) vec2.push(vec[k]); else { if (h < 0 || h >= n) return []; if (k === j1 && !cr.b2Separator.isOnSegment(v1.get_x(), v1.get_y(), vec[h].get_x(), vec[h].get_y(), p2.get_x(), p2.get_y())) vec2.push(vec[k]); break; } h = k; if (k+1 > n-1) k = 0; else k++; } queue.push(vec1, vec2); queue.shift(); break; } } if (isConvex) figsVec.push(queue.shift()); } return figsVec; }; function SplitConvexPolysOver8Points(convexPolys) { var ret = []; var i, len, arr; for (i = 0, len = convexPolys.length; i < len; ++i) { arr = convexPolys[i]; if (arr.length <= 8) { ret.push(arr); } else { ret.push.apply(ret, SplitConvexPoly(arr)); } } return ret; } function SplitConvexPoly(arr) { var poly, nextLast; var ret = []; ret.push(arr.splice(0, 8)); var first = ret[0][0]; var last = ret[0][7]; while (arr.length) { poly = arr.splice(0, Math.min(arr.length, 6)); nextLast = poly[poly.length - 1]; poly.push(b2Vec2.Clone(first)); poly.push(b2Vec2.Clone(last)); ret.push(poly); last = nextLast; } return ret; } ; ; cr.behaviors.Physics = function(runtime) { this.runtime = runtime; this.world = new Box2D.b2World(getTempVec2a(0, 10), // gravity true); // allow sleep this.worldG = 10; this.lastUpdateTick = -1; var listener = new Box2D.JSContactListener(); listener.BeginContact = function (contactPtr) { var contact = Box2D.wrapPointer(contactPtr, Box2D.b2Contact); var behA = contact.GetFixtureA().GetBody().c2userdata; var behB = contact.GetFixtureB().GetBody().c2userdata; runtime.registerCollision(behA.inst, behB.inst); }; listener.EndContact = function () {}; // unused this.world.SetContactListener(listener); var filter = new Box2D.JSContactFilter(); var self = this; filter.ShouldCollide = function (fixAPtr, fixBPtr) { if (self.allCollisionsEnabled) return true; var fixtureA = Box2D.wrapPointer(fixAPtr, Box2D.b2Fixture); var fixtureB = Box2D.wrapPointer(fixBPtr, Box2D.b2Fixture); var typeA = fixtureA.GetBody().c2userdata.inst.type; var typeB = fixtureB.GetBody().c2userdata.inst.type; var s = typeA.extra["Physics_DisabledCollisions"]; if (s && s.contains(typeB)) return false; s = typeB.extra["Physics_DisabledCollisions"]; if (s && s.contains(typeA)) return false; return true; }; this.world.SetContactFilter(filter); this.steppingMode = 0; // fixed this.velocityIterations = 8; this.positionIterations = 3; this.allCollisionsEnabled = true; }; (function () { var b2BodyDef = Box2D.b2BodyDef, b2Body = Box2D.b2Body, b2FixtureDef = Box2D.b2FixtureDef, b2Fixture = Box2D.b2Fixture, b2World = Box2D.b2World, b2PolygonShape = Box2D.b2PolygonShape, b2CircleShape = Box2D.b2CircleShape, b2DistanceJointDef = Box2D.b2DistanceJointDef, b2RevoluteJointDef = Box2D.b2RevoluteJointDef; var TILE_FLIPPED_HORIZONTAL = -0x80000000 // note: pretend is a signed int, so negate var TILE_FLIPPED_VERTICAL = 0x40000000 var TILE_FLIPPED_DIAGONAL = 0x20000000 var TILE_FLAGS_MASK = 0xE0000000 var worldScale = 0.02; var behaviorProto = cr.behaviors.Physics.prototype; behaviorProto.Type = function(behavior, objtype) { this.behavior = behavior; this.objtype = objtype; this.runtime = behavior.runtime; }; var behtypeProto = behaviorProto.Type.prototype; behtypeProto.onCreate = function() { }; behaviorProto.Instance = function(type, inst) { this.type = type; this.behavior = type.behavior; this.inst = inst; // associated object instance to modify this.runtime = type.runtime; this.world = this.behavior.world; }; var behinstProto = behaviorProto.Instance.prototype; behinstProto.onCreate = function() { this.immovable = (this.properties[0] !== 0); this.collisionmask = this.properties[1]; this.preventRotation = (this.properties[2] !== 0); this.density = this.properties[3]; this.friction = this.properties[4]; this.restitution = this.properties[5]; this.linearDamping = this.properties[6]; this.angularDamping = this.properties[7]; this.bullet = (this.properties[8] !== 0); this.enabled = (this.properties[9] !== 0); this.body = null; this.fixtures = []; this.inst.update_bbox(); this.lastKnownX = this.inst.x; this.lastKnownY = this.inst.y; this.lastKnownAngle = this.inst.angle; this.lastWidth = 0; this.lastHeight = 0; this.lastTickOverride = false; this.recreateBody = false; this.lastAnimation = null; // for sprites only - will be undefined for other objects this.lastAnimationFrame = -1; // for sprites only - will be undefined for other objects if (this.myJoints) { cr.clearArray(this.myJoints); cr.clearArray(this.myCreatedJoints); this.joiningMe.clear(); } else { this.myJoints = []; // Created Box2D joints this.myCreatedJoints = []; // List of actions called to create joints this.joiningMe = new cr.ObjectSet(); // Instances with joints to me } var self = this; if (!this.recycled) { this.myDestroyCallback = (function(inst) { self.onInstanceDestroyed(inst); }); } this.runtime.addDestroyCallback(this.myDestroyCallback); }; behinstProto.postCreate = function () { this.inst.update_bbox(); this.createBody(); this.lastAnimation = this.inst.cur_animation; this.lastAnimationFrame = this.inst.cur_frame; }; behinstProto.onDestroy = function() { this.destroyBody(); cr.clearArray(this.myCreatedJoints); this.joiningMe.clear(); this.runtime.removeDestroyCallback(this.myDestroyCallback); }; behinstProto.saveToJSON = function () { var o = { "e": this.enabled, "im": this.immovable, "pr": this.preventRotation, "d": this.density, "fr": this.friction, "re": this.restitution, "ld": this.linearDamping, "ad": this.angularDamping, "b": this.bullet, "mcj": this.myCreatedJoints }; if (this.enabled) { var temp = this.body.GetLinearVelocity(); o["vx"] = temp.get_x(); o["vy"] = temp.get_y(); o["om"] = this.body.GetAngularVelocity(); } return o; }; behinstProto.loadFromJSON = function (o) { this.destroyBody(); cr.clearArray(this.myCreatedJoints); this.joiningMe.clear(); this.enabled = o["e"]; this.immovable = o["im"]; this.preventRotation = o["pr"]; this.density = o["d"]; this.friction = o["fr"]; this.restitution = o["re"]; this.linearDamping = o["ld"]; this.angularDamping = o["ad"]; this.bullet = o["b"]; this.lastKnownX = this.inst.x; this.lastKnownY = this.inst.y; this.lastKnownAngle = this.inst.angle; this.lastWidth = this.inst.width; this.lastHeight = this.inst.height; if (this.enabled) { this.createBody(); this.body.SetLinearVelocity(getTempVec2a(o["vx"], o["vy"])); this.body.SetAngularVelocity(o["om"]); if (o["vx"] !== 0 || o["vy"] !== 0 || o["om"] !== 0) this.body.SetAwake(true); this.myCreatedJoints = o["mcj"]; } }; behinstProto.afterLoad = function () { if (this.enabled) this.recreateMyJoints(); }; behinstProto.onInstanceDestroyed = function (inst) { var i, len, j, instuid = inst.uid; for (i = 0, j = 0, len = this.myCreatedJoints.length; i < len; i++) { this.myCreatedJoints[j] = this.myCreatedJoints[i]; if (j < this.myJoints.length) this.myJoints[j] = this.myJoints[i]; if (this.myCreatedJoints[i].params[1] == instuid) // attached instance is always 2nd param { if (i < this.myJoints.length) // myJoints can already be empty in some cases this.world.DestroyJoint(this.myJoints[i]); } else j++; } this.myCreatedJoints.length = j; if (j < this.myJoints.length) this.myJoints.length = j; this.joiningMe.remove(inst); }; behinstProto.destroyMyJoints = function() { var i, len; for (i = 0, len = this.myJoints.length; i < len; i++) this.world.DestroyJoint(this.myJoints[i]); cr.clearArray(this.myJoints); }; behinstProto.recreateMyJoints = function() { var i, len, j; for (i = 0, len = this.myCreatedJoints.length; i < len; i++) { j = this.myCreatedJoints[i]; switch (j.type) { case 0: // distance joint this.doCreateDistanceJoint(j.params[0], j.params[1], j.params[2], j.params[3], j.params[4]); break; case 1: // revolute joint this.doCreateRevoluteJoint(j.params[0], j.params[1]); break; case 2: // limited revolute joint this.doCreateLimitedRevoluteJoint(j.params[0], j.params[1], j.params[2], j.params[3]); break; default: ; } } }; behinstProto.createFixture = function (fixDef) { if (!this.body) return; var fixture = this.body.CreateFixture(fixDef); this.fixtures.push(fixture); return fixture; }; behinstProto.destroyFixtures = function () { if (!this.body) return; var i, len; for (i = 0, len = this.fixtures.length; i < len; ++i) this.body.DestroyFixture(this.fixtures[i]); cr.clearArray(this.fixtures); }; behinstProto.destroyBody = function() { if (!this.body) return; this.destroyMyJoints(); this.destroyFixtures(); this.world.DestroyBody(this.body); this.body = null; this.inst.extra.box2dbody = null; }; var collrects = []; behinstProto.createBody = function() { if (!this.enabled) return; var inst = this.inst; inst.update_bbox(); var i, len, j, lenj, k, lenk, vec, arr, b, tv, c, rc, pts_cache, pts_count, convexpolys, cp, offx, offy, oldAngle; if (!this.body) { var bodyDef = new b2BodyDef(); bodyDef.set_type(this.immovable ? 0 : 2); // 0 = b2_staticBody, 2 = b2_dynamicBody bodyDef.set_position(getTempVec2b(inst.bquad.midX() * worldScale, inst.bquad.midY() * worldScale)); bodyDef.set_angle(inst.angle); bodyDef.set_fixedRotation(this.preventRotation); bodyDef.set_linearDamping(this.linearDamping); bodyDef.set_angularDamping(this.angularDamping); bodyDef.set_bullet(this.bullet); this.body = this.world.CreateBody(bodyDef); this.body.c2userdata = this; inst.extra.box2dbody = this.body; Box2D.destroy(bodyDef); } this.destroyFixtures(); var fixDef = new b2FixtureDef(); fixDef.set_density(this.density); fixDef.set_friction(this.friction); fixDef.set_restitution(this.restitution); var hasPoly = this.inst.collision_poly && !this.inst.collision_poly.is_empty(); var usecollisionmask = this.collisionmask; if (!hasPoly && !this.inst.tilemap_exists && this.collisionmask === 0) usecollisionmask = 1; var instw = Math.max(Math.abs(inst.width), 1); var insth = Math.max(Math.abs(inst.height), 1); var ismirrored = inst.width < 0; var isflipped = inst.height < 0; var shape; if (usecollisionmask === 0) { if (inst.tilemap_exists) { offx = inst.bquad.midX() - inst.x; offy = inst.bquad.midY() - inst.y; inst.getAllCollisionRects(collrects); arr = []; for (i = 0, len = collrects.length; i < len; ++i) { c = collrects[i]; rc = c.rc; if (c.poly) { if (!c.poly.convexpolys) { pts_cache = c.poly.pts_cache; pts_count = c.poly.pts_count; for (j = 0; j < pts_count; ++j) { arr.push(b2Vec2.Get(pts_cache[j*2], pts_cache[j*2+1])); } var flags = (c.id & TILE_FLAGS_MASK); if (flags === TILE_FLIPPED_HORIZONTAL || flags === TILE_FLIPPED_VERTICAL || flags === TILE_FLIPPED_DIAGONAL || ((flags & TILE_FLIPPED_HORIZONTAL) && (flags & TILE_FLIPPED_VERTICAL) && (flags & TILE_FLIPPED_DIAGONAL))) { arr.reverse(); } c.poly.convexpolys = cr.b2Separator.Separate(arr, (rc.right - rc.left) * (rc.bottom - rc.top)); for (j = 0, lenj = arr.length; j < lenj; ++j) b2Vec2.Free(arr[j]); cr.clearArray(arr); } for (j = 0, lenj = c.poly.convexpolys.length; j < lenj; ++j) { cp = c.poly.convexpolys[j]; ; for (k = 0, lenk = cp.length; k < lenk; ++k) { arr.push(b2Vec2.Get((rc.left + cp[k].get_x() - offx) * worldScale, (rc.top + cp[k].get_y() - offy) * worldScale)); } shape = createPolygonShape(arr); fixDef.set_shape(shape); this.createFixture(fixDef); Box2D.destroy(shape); for (k = 0, lenk = arr.length; k < lenk; ++k) b2Vec2.Free(arr[k]); cr.clearArray(arr); } } else { arr.push(b2Vec2.Get((rc.left - offx) * worldScale, (rc.top - offy) * worldScale)); arr.push(b2Vec2.Get((rc.right - offx) * worldScale, (rc.top - offy) * worldScale)); arr.push(b2Vec2.Get((rc.right - offx) * worldScale, (rc.bottom - offy) * worldScale)); arr.push(b2Vec2.Get((rc.left - offx) * worldScale, (rc.bottom - offy) * worldScale)); shape = createPolygonShape(arr); fixDef.set_shape(shape); this.createFixture(fixDef); Box2D.destroy(shape); } for (j = 0, lenj = arr.length; j < lenj; ++j) b2Vec2.Free(arr[j]); cr.clearArray(arr); } } else { oldAngle = inst.angle; inst.angle = 0; inst.set_bbox_changed(); inst.update_bbox(); offx = inst.bquad.midX() - inst.x; offy = inst.bquad.midY() - inst.y; inst.angle = oldAngle; inst.set_bbox_changed(); inst.collision_poly.cache_poly(ismirrored ? -instw : instw, isflipped ? -insth : insth, 0); pts_cache = inst.collision_poly.pts_cache; pts_count = inst.collision_poly.pts_count; arr = []; arr.length = pts_count; for (i = 0; i < pts_count; i++) { arr[i] = b2Vec2.Get(pts_cache[i*2] - offx, pts_cache[i*2+1] - offy); } if (ismirrored !== isflipped) arr.reverse(); // wrong clockwise order when flipped convexpolys = cr.b2Separator.Separate(arr, instw * insth); for (i = 0; i < pts_count; i++) b2Vec2.Free(arr[i]); if (convexpolys.length) { for (i = 0, len = convexpolys.length; i < len; i++) { arr = convexpolys[i]; ; for (j = 0, lenj = arr.length; j < lenj; j++) { vec = arr[j]; vec.set_x(vec.get_x() * worldScale); vec.set_y(vec.get_y() * worldScale); } shape = createPolygonShape(arr); fixDef.set_shape(shape); this.createFixture(fixDef); Box2D.destroy(shape); for (j = 0, lenj = arr.length; j < lenj; j++) b2Vec2.Free(arr[j]); } } else { shape = new b2PolygonShape(); shape.SetAsBox(instw * worldScale * 0.5, insth * worldScale * 0.5); fixDef.set_shape(shape); this.createFixture(fixDef); Box2D.destroy(shape); } } } else if (usecollisionmask === 1) { shape = new b2PolygonShape(); shape.SetAsBox(instw * worldScale * 0.5, insth * worldScale * 0.5); fixDef.set_shape(shape); this.createFixture(fixDef); Box2D.destroy(shape); } else { shape = new b2CircleShape(); shape.set_m_radius(Math.min(instw, insth) * worldScale * 0.5); fixDef.set_shape(shape); this.createFixture(fixDef); Box2D.destroy(shape); } this.lastWidth = inst.width; this.lastHeight = inst.height; Box2D.destroy(fixDef); cr.clearArray(collrects); }; /* behinstProto.draw = function (ctx) { if (!this.myconvexpolys) return; this.inst.update_bbox(); var midx = this.inst.bquad.midX(); var midy = this.inst.bquad.midY(); var i, len, j, lenj; var sina = 0; var cosa = 1; if (this.inst.angle !== 0) { sina = Math.sin(this.inst.angle); cosa = Math.cos(this.inst.angle); } var strokeStyles = ["#f00", "#0f0", "#00f", "#ff0", "#0ff", "#f0f"]; ctx.lineWidth = 2; var i, len, j, lenj, ax, ay, bx, by, poly, va, vb; for (i = 0, len = this.myconvexpolys.length; i < len; i++) { poly = this.myconvexpolys[i]; ctx.strokeStyle = strokeStyles[i]; for (j = 0, lenj = poly.length; j < lenj; j++) { va = poly[j]; vb = poly[(j + 1) % lenj]; ax = va.x / worldScale; ay = va.y / worldScale; bx = vb.x / worldScale; by = vb.y / worldScale; ctx.beginPath(); ctx.moveTo(((ax * cosa) - (ay * sina)) + midx, ((ay * cosa) + (ax * sina)) + midy); ctx.lineTo(((bx * cosa) - (by * sina)) + midx, ((by * cosa) + (bx * sina)) + midy); ctx.stroke(); ctx.closePath(); } } }; */ behinstProto.tick = function () { if (!this.enabled) return; var inst = this.inst; var dt; if (this.behavior.steppingMode === 0) // fixed { dt = this.runtime.timescale / 60; } else { dt = this.runtime.getDt(this.inst); if (dt > 1 / 30) dt = 1 / 30; } if (this.runtime.tickcount_nosave > this.behavior.lastUpdateTick && this.runtime.timescale > 0) { if (dt !== 0) { this.world.Step(dt, this.behavior.velocityIterations, this.behavior.positionIterations); // still apply timescale } this.world.ClearForces(); this.behavior.lastUpdateTick = this.runtime.tickcount_nosave; } if (this.recreateBody || inst.width !== this.lastWidth || inst.height !== this.lastHeight || inst.cur_animation !== this.lastAnimation || inst.cur_frame !== this.lastAnimationFrame || (inst.tilemap_exists && inst.physics_changed)) { this.createBody(); this.recreateBody = false; this.lastAnimation = inst.cur_animation; this.lastAnimationFrame = inst.cur_frame; if (inst.tilemap_exists && inst.physics_changed) inst.physics_changed = false; } var pos_changed = (inst.x !== this.lastKnownX || inst.y !== this.lastKnownY); var angle_changed = (inst.angle !== this.lastKnownAngle); if (pos_changed) { inst.update_bbox(); var newmidx = inst.bquad.midX(); var newmidy = inst.bquad.midY(); var diffx = newmidx - this.lastKnownX; var diffy = newmidy - this.lastKnownY; if (angle_changed) this.body.SetTransform(getTempVec2a(newmidx * worldScale, newmidy * worldScale), inst.angle); else this.body.SetTransform(getTempVec2a(newmidx * worldScale, newmidy * worldScale), this.body.GetAngle()); this.body.SetLinearVelocity(getTempVec2a(diffx, diffy)); this.lastTickOverride = true; this.body.SetAwake(true); } else if (this.lastTickOverride) { this.lastTickOverride = false; this.body.SetLinearVelocity(getTempVec2a(0, 0)); this.body.SetTransform(getTempVec2a(inst.bquad.midX() * worldScale, inst.bquad.midY() * worldScale), this.body.GetAngle()); } if (!pos_changed && angle_changed) { this.body.SetTransform(this.body.GetPosition(), inst.angle); this.body.SetAwake(true); } var pos = this.body.GetPosition(); var newx = pos.get_x() / worldScale; var newy = pos.get_y() / worldScale; var newangle = this.body.GetAngle(); if (newx !== inst.x || newy !== inst.y || newangle !== inst.angle) { inst.x = newx; inst.y = newy; inst.angle = newangle; inst.set_bbox_changed(); inst.update_bbox(); var dx = inst.bquad.midX() - inst.x; var dy = inst.bquad.midY() - inst.y; if (dx !== 0 || dy !== 0) { inst.x -= dx; inst.y -= dy; inst.set_bbox_changed(); } } this.lastKnownX = inst.x; this.lastKnownY = inst.y; this.lastKnownAngle = inst.angle; }; behinstProto.getInstImgPointX = function(imgpt) { if (imgpt === -1 || !this.inst.getImagePoint) return this.inst.x; if (imgpt === 0 && this.body) return (this.body.GetPosition().get_x() + this.body.GetLocalCenter().get_x()) / worldScale; return this.inst.getImagePoint(imgpt, true); }; behinstProto.getInstImgPointY = function(imgpt) { if (imgpt === -1 || !this.inst.getImagePoint) return this.inst.y; if (imgpt === 0 && this.body) return (this.body.GetPosition().get_y() + this.body.GetLocalCenter().get_y()) / worldScale; return this.inst.getImagePoint(imgpt, false); }; function Cnds() {}; Cnds.prototype.IsSleeping = function () { if (!this.enabled) return false; return !this.body.IsAwake(); }; Cnds.prototype.CompareVelocity = function (which_, cmp_, x_) { if (!this.enabled) return false; var velocity_vec = this.body.GetLinearVelocity(); var v, vx, vy; if (which_ === 0) // X velocity v = velocity_vec.get_x() / worldScale; else if (which_ === 1) // Y velocity v = velocity_vec.get_y() / worldScale; else // Overall velocity { vx = velocity_vec.get_x() / worldScale; vy = velocity_vec.get_y() / worldScale; v = cr.distanceTo(0, 0, vx, vy); } return cr.do_cmp(v, cmp_, x_); }; Cnds.prototype.CompareAngularVelocity = function (cmp_, x_) { if (!this.enabled) return false; var av = cr.to_degrees(this.body.GetAngularVelocity()); return cr.do_cmp(av, cmp_, x_); }; Cnds.prototype.CompareMass = function (cmp_, x_) { if (!this.enabled) return false; var mass = this.body.GetMass() / worldScale; return cr.do_cmp(mass, cmp_, x_); }; Cnds.prototype.IsEnabled = function () { return this.enabled; }; behaviorProto.cnds = new Cnds(); function Acts() {}; Acts.prototype.ApplyForce = function (fx, fy, imgpt) { if (!this.enabled) return; var x = this.getInstImgPointX(imgpt); var y = this.getInstImgPointY(imgpt); this.body.ApplyForce(getTempVec2a(fx, fy), getTempVec2b(x * worldScale, y * worldScale), true); }; Acts.prototype.ApplyForceToward = function (f, px, py, imgpt) { if (!this.enabled) return; var x = this.getInstImgPointX(imgpt); var y = this.getInstImgPointY(imgpt); var a = cr.angleTo(x, y, px, py); this.body.ApplyForce(getTempVec2a(Math.cos(a) * f, Math.sin(a) * f), getTempVec2b(x * worldScale, y * worldScale), true); }; Acts.prototype.ApplyForceAtAngle = function (f, a, imgpt) { if (!this.enabled) return; a = cr.to_radians(a); var x = this.getInstImgPointX(imgpt); var y = this.getInstImgPointY(imgpt); this.body.ApplyForce(getTempVec2a(Math.cos(a) * f, Math.sin(a) * f), getTempVec2b(x * worldScale, y * worldScale), true); }; Acts.prototype.ApplyImpulse = function (fx, fy, imgpt) { if (!this.enabled) return; var x = this.getInstImgPointX(imgpt); var y = this.getInstImgPointY(imgpt); this.body.ApplyLinearImpulse(getTempVec2a(fx, fy), getTempVec2b(x * worldScale, y * worldScale), true); this.lastTickOverride = false; this.lastKnownX = this.inst.x; this.lastKnownY = this.inst.y; }; Acts.prototype.ApplyImpulseToward = function (f, px, py, imgpt) { if (!this.enabled) return; var x = this.getInstImgPointX(imgpt); var y = this.getInstImgPointY(imgpt); var a = cr.angleTo(x, y, px, py); this.body.ApplyLinearImpulse(getTempVec2a(Math.cos(a) * f, Math.sin(a) * f), getTempVec2b(x * worldScale, y * worldScale), true); this.lastTickOverride = false; this.lastKnownX = this.inst.x; this.lastKnownY = this.inst.y; }; Acts.prototype.ApplyImpulseAtAngle = function (f, a, imgpt) { if (!this.enabled) return; a = cr.to_radians(a); var x = this.getInstImgPointX(imgpt); var y = this.getInstImgPointY(imgpt); this.body.ApplyLinearImpulse(getTempVec2a(Math.cos(a) * f, Math.sin(a) * f), getTempVec2b(x * worldScale, y * worldScale), true); this.lastTickOverride = false; this.lastKnownX = this.inst.x; this.lastKnownY = this.inst.y; }; Acts.prototype.ApplyTorque = function (m) { if (!this.enabled) return; this.body.ApplyTorque(cr.to_radians(m), true); }; Acts.prototype.ApplyTorqueToAngle = function (m, a) { if (!this.enabled) return; m = cr.to_radians(m); a = cr.to_radians(a); if (cr.angleClockwise(this.inst.angle, a)) this.body.ApplyTorque(-m, true); else this.body.ApplyTorque(m, true); }; Acts.prototype.ApplyTorqueToPosition = function (m, x, y) { if (!this.enabled) return; m = cr.to_radians(m); var a = cr.angleTo(this.inst.x, this.inst.y, x, y); if (cr.angleClockwise(this.inst.angle, a)) this.body.ApplyTorque(-m, true); else this.body.ApplyTorque(m, true); }; Acts.prototype.SetAngularVelocity = function (v) { if (!this.enabled) return; this.body.SetAngularVelocity(cr.to_radians(v)); this.body.SetAwake(true); }; Acts.prototype.CreateDistanceJoint = function (imgpt, obj, objimgpt, damping, freq) { if (!obj || !this.enabled) return; var otherinst = obj.getFirstPicked(this.inst); if (!otherinst || otherinst == this.inst) return; if (!otherinst.extra.box2dbody) return; // no physics behavior on other object this.myCreatedJoints.push({type: 0, params: [imgpt, otherinst.uid, objimgpt, damping, freq]}); this.doCreateDistanceJoint(imgpt, otherinst.uid, objimgpt, damping, freq); }; behinstProto.doCreateDistanceJoint = function (imgpt, otherinstuid, objimgpt, damping, freq) { if (!this.enabled) return; var otherinst = this.runtime.getObjectByUID(otherinstuid); if (!otherinst || otherinst == this.inst || !otherinst.extra.box2dbody) return; otherinst.extra.box2dbody.c2userdata.joiningMe.add(this.inst); var myx = this.getInstImgPointX(imgpt); var myy = this.getInstImgPointY(imgpt); var theirx, theiry; if (otherinst.getImagePoint) { theirx = otherinst.getImagePoint(objimgpt, true); theiry = otherinst.getImagePoint(objimgpt, false); } else { theirx = otherinst.x; theiry = otherinst.y; } var dx = myx - theirx; var dy = myy - theiry; var jointDef = new b2DistanceJointDef(); jointDef.Initialize(this.body, otherinst.extra.box2dbody, getTempVec2a(myx * worldScale, myy * worldScale), getTempVec2b(theirx * worldScale, theiry * worldScale)); jointDef.set_length(Math.sqrt(dx*dx + dy*dy) * worldScale); jointDef.set_dampingRatio(damping); jointDef.set_frequencyHz(freq); this.myJoints.push(this.world.CreateJoint(jointDef)); Box2D.destroy(jointDef); }; Acts.prototype.CreateRevoluteJoint = function (imgpt, obj) { if (!obj || !this.enabled) return; var otherinst = obj.getFirstPicked(this.inst); if (!otherinst || otherinst == this.inst) return; if (!otherinst.extra.box2dbody) return; // no physics behavior on other object this.myCreatedJoints.push({type: 1, params: [imgpt, otherinst.uid]}); this.doCreateRevoluteJoint(imgpt, otherinst.uid); }; behinstProto.doCreateRevoluteJoint = function (imgpt, otherinstuid) { if (!this.enabled) return; var otherinst = this.runtime.getObjectByUID(otherinstuid); if (!otherinst || otherinst == this.inst || !otherinst.extra.box2dbody) return; otherinst.extra.box2dbody.c2userdata.joiningMe.add(this.inst); var myx = this.getInstImgPointX(imgpt); var myy = this.getInstImgPointY(imgpt); var jointDef = new b2RevoluteJointDef(); jointDef.Initialize(this.body, otherinst.extra.box2dbody, getTempVec2a(myx * worldScale, myy * worldScale)); this.myJoints.push(this.world.CreateJoint(jointDef)); Box2D.destroy(jointDef); }; Acts.prototype.CreateLimitedRevoluteJoint = function (imgpt, obj, lower, upper) { if (!obj || !this.enabled) return; var otherinst = obj.getFirstPicked(this.inst); if (!otherinst || otherinst == this.inst) return; if (!otherinst.extra.box2dbody) return; // no physics behavior on other object this.myCreatedJoints.push({type: 2, params: [imgpt, otherinst.uid, lower, upper]}); this.doCreateLimitedRevoluteJoint(imgpt, otherinst.uid, lower, upper); }; behinstProto.doCreateLimitedRevoluteJoint = function (imgpt, otherinstuid, lower, upper) { if (!this.enabled) return; var otherinst = this.runtime.getObjectByUID(otherinstuid); if (!otherinst || otherinst == this.inst || !otherinst.extra.box2dbody) return; otherinst.extra.box2dbody.c2userdata.joiningMe.add(this.inst); var myx = this.getInstImgPointX(imgpt); var myy = this.getInstImgPointY(imgpt); var jointDef = new b2RevoluteJointDef(); jointDef.Initialize(this.body, otherinst.extra.box2dbody, getTempVec2a(myx * worldScale, myy * worldScale)); jointDef.set_enableLimit(true); jointDef.set_lowerAngle(cr.to_radians(lower)); jointDef.set_upperAngle(cr.to_radians(upper)); this.myJoints.push(this.world.CreateJoint(jointDef)); Box2D.destroy(jointDef); }; Acts.prototype.SetWorldGravity = function (g) { if (g === this.behavior.worldG) return; this.world.SetGravity(getTempVec2a(0, g)); this.behavior.worldG = g; var i, len, arr = this.behavior.my_instances.valuesRef(); for (i = 0, len = arr.length; i < len; i++) { if (arr[i].extra.box2dbody) arr[i].extra.box2dbody.SetAwake(true); } }; Acts.prototype.SetSteppingMode = function (mode) { this.behavior.steppingMode = mode; }; Acts.prototype.SetIterations = function (vel, pos) { if (vel < 1) vel = 1; if (pos < 1) pos = 1; this.behavior.velocityIterations = vel; this.behavior.positionIterations = pos; }; Acts.prototype.SetVelocity = function (vx, vy) { if (!this.enabled) return; this.body.SetLinearVelocity(getTempVec2a(vx * worldScale, vy * worldScale)); this.body.SetAwake(true); this.lastTickOverride = false; this.lastKnownX = this.inst.x; this.lastKnownY = this.inst.y; }; Acts.prototype.SetDensity = function (d) { if (!this.enabled) return; if (this.density === d) return; this.density = d; var i, len; for (i = 0, len = this.fixtures.length; i < len; ++i) this.fixtures[i].SetDensity(d); this.body.ResetMassData(); }; Acts.prototype.SetFriction = function (f) { if (!this.enabled) return; if (this.friction === f) return; this.friction = f; var i, len; for (i = 0, len = this.fixtures.length; i < len; ++i) this.fixtures[i].SetFriction(f); var contactEdge, contact; for (contactEdge = this.body.GetContactList(); Box2D.getPointer(contactEdge); contactEdge = contactEdge.get_next()) { var contact = contactEdge.get_contact(); if (contact) contact.ResetFriction(); } }; Acts.prototype.SetElasticity = function (e) { if (!this.enabled) return; if (this.restitution === e) return; this.restitution = e; var i, len; for (i = 0, len = this.fixtures.length; i < len; ++i) this.fixtures[i].SetRestitution(e); }; Acts.prototype.SetLinearDamping = function (ld) { if (!this.enabled) return; if (this.linearDamping === ld) return; this.linearDamping = ld; this.body.SetLinearDamping(ld); }; Acts.prototype.SetAngularDamping = function (ad) { if (!this.enabled) return; if (this.angularDamping === ad) return; this.angularDamping = ad; this.body.SetAngularDamping(ad); }; Acts.prototype.SetImmovable = function (i) { if (!this.enabled) return; if (this.immovable === (i !== 0)) return; this.immovable = (i !== 0); this.body.SetType(this.immovable ? 0 /*b2BodyDef.b2_staticBody*/ : 2 /*b2BodyDef.b2_dynamicBody*/); this.body.SetAwake(true); }; function SetCollisionsEnabled(typeA, typeB, state) { var s; if (state) { s = typeA.extra["Physics_DisabledCollisions"]; if (s) s.remove(typeB); s = typeB.extra["Physics_DisabledCollisions"]; if (s) s.remove(typeA); } else { if (!typeA.extra["Physics_DisabledCollisions"]) typeA.extra["Physics_DisabledCollisions"] = new cr.ObjectSet(); typeA.extra["Physics_DisabledCollisions"].add(typeB); if (!typeB.extra["Physics_DisabledCollisions"]) typeB.extra["Physics_DisabledCollisions"] = new cr.ObjectSet(); typeB.extra["Physics_DisabledCollisions"].add(typeA); } }; Acts.prototype.EnableCollisions = function (obj, state) { if (!obj || !this.enabled) return; var i, len; if (obj.is_family) { for (i = 0, len = obj.members.length; i < len; i++) { SetCollisionsEnabled(this.inst.type, obj.members[i], state !== 0); } } else { SetCollisionsEnabled(this.inst.type, obj, state !== 0); } this.behavior.allCollisionsEnabled = false; }; Acts.prototype.SetPreventRotate = function (i) { if (!this.enabled) return; if (this.preventRotation === (i !== 0)) return; this.preventRotation = (i !== 0); this.body.SetFixedRotation(this.preventRotation); this.body.SetAngularVelocity(0); this.body.SetAwake(true); }; Acts.prototype.SetBullet = function (i) { if (!this.enabled) return; if (this.bullet === (i !== 0)) return; this.bullet = (i !== 0); this.body.SetBullet(this.bullet); this.body.SetAwake(true); }; Acts.prototype.RemoveJoints = function () { if (!this.enabled) return; this.destroyMyJoints(); cr.clearArray(this.myCreatedJoints); this.joiningMe.clear(); }; Acts.prototype.SetEnabled = function (e) { if (this.enabled && e === 0) { this.destroyBody(); this.enabled = false; } else if (!this.enabled && e === 1) { this.enabled = true; this.createBody(); } }; behaviorProto.acts = new Acts(); function Exps() {}; Exps.prototype.VelocityX = function (ret) { ret.set_float(this.enabled ? this.body.GetLinearVelocity().get_x() / worldScale : 0); }; Exps.prototype.VelocityY = function (ret) { ret.set_float(this.enabled ? this.body.GetLinearVelocity().get_y() / worldScale : 0); }; Exps.prototype.AngularVelocity = function (ret) { ret.set_float(this.enabled ? cr.to_degrees(this.body.GetAngularVelocity()) : 0); }; Exps.prototype.Mass = function (ret) { ret.set_float(this.enabled ? this.body.GetMass() / worldScale : 0); }; Exps.prototype.CenterOfMassX = function (ret) { ret.set_float(this.enabled ? (this.body.GetPosition().get_x() + this.body.GetLocalCenter().get_x()) / worldScale : 0); }; Exps.prototype.CenterOfMassY = function (ret) { ret.set_float(this.enabled ? (this.body.GetPosition().get_y() + this.body.GetLocalCenter().get_y()) / worldScale : 0); }; Exps.prototype.Density = function (ret) { ret.set_float(this.enabled ? this.density : 0); }; Exps.prototype.Friction = function (ret) { ret.set_float(this.enabled ? this.friction : 0); }; Exps.prototype.Elasticity = function (ret) { ret.set_float(this.enabled ? this.restitution : 0); }; Exps.prototype.LinearDamping = function (ret) { ret.set_float(this.enabled ? this.linearDamping : 0); }; Exps.prototype.AngularDamping = function (ret) { ret.set_float(this.enabled ? this.angularDamping : 0); }; behaviorProto.exps = new Exps(); }()); ; ; cr.behaviors.Pin = function(runtime) { this.runtime = runtime; }; (function () { var behaviorProto = cr.behaviors.Pin.prototype; behaviorProto.Type = function(behavior, objtype) { this.behavior = behavior; this.objtype = objtype; this.runtime = behavior.runtime; }; var behtypeProto = behaviorProto.Type.prototype; behtypeProto.onCreate = function() { }; behaviorProto.Instance = function(type, inst) { this.type = type; this.behavior = type.behavior; this.inst = inst; // associated object instance to modify this.runtime = type.runtime; }; var behinstProto = behaviorProto.Instance.prototype; behinstProto.onCreate = function() { this.pinObject = null; this.pinObjectUid = -1; // for loading this.pinAngle = 0; this.pinDist = 0; this.myStartAngle = 0; this.theirStartAngle = 0; this.lastKnownAngle = 0; this.mode = 0; // 0 = position & angle; 1 = position; 2 = angle; 3 = rope; 4 = bar var self = this; if (!this.recycled) { this.myDestroyCallback = (function(inst) { self.onInstanceDestroyed(inst); }); } this.runtime.addDestroyCallback(this.myDestroyCallback); }; behinstProto.saveToJSON = function () { return { "uid": this.pinObject ? this.pinObject.uid : -1, "pa": this.pinAngle, "pd": this.pinDist, "msa": this.myStartAngle, "tsa": this.theirStartAngle, "lka": this.lastKnownAngle, "m": this.mode }; }; behinstProto.loadFromJSON = function (o) { this.pinObjectUid = o["uid"]; // wait until afterLoad to look up this.pinAngle = o["pa"]; this.pinDist = o["pd"]; this.myStartAngle = o["msa"]; this.theirStartAngle = o["tsa"]; this.lastKnownAngle = o["lka"]; this.mode = o["m"]; }; behinstProto.afterLoad = function () { if (this.pinObjectUid === -1) this.pinObject = null; else { this.pinObject = this.runtime.getObjectByUID(this.pinObjectUid); ; } this.pinObjectUid = -1; }; behinstProto.onInstanceDestroyed = function (inst) { if (this.pinObject == inst) this.pinObject = null; }; behinstProto.onDestroy = function() { this.pinObject = null; this.runtime.removeDestroyCallback(this.myDestroyCallback); }; behinstProto.tick = function () { }; behinstProto.tick2 = function () { if (!this.pinObject) return; if (this.lastKnownAngle !== this.inst.angle) this.myStartAngle = cr.clamp_angle(this.myStartAngle + (this.inst.angle - this.lastKnownAngle)); var newx = this.inst.x; var newy = this.inst.y; if (this.mode === 3 || this.mode === 4) // rope mode or bar mode { var dist = cr.distanceTo(this.inst.x, this.inst.y, this.pinObject.x, this.pinObject.y); if ((dist > this.pinDist) || (this.mode === 4 && dist < this.pinDist)) { var a = cr.angleTo(this.pinObject.x, this.pinObject.y, this.inst.x, this.inst.y); newx = this.pinObject.x + Math.cos(a) * this.pinDist; newy = this.pinObject.y + Math.sin(a) * this.pinDist; } } else { newx = this.pinObject.x + Math.cos(this.pinObject.angle + this.pinAngle) * this.pinDist; newy = this.pinObject.y + Math.sin(this.pinObject.angle + this.pinAngle) * this.pinDist; } var newangle = cr.clamp_angle(this.myStartAngle + (this.pinObject.angle - this.theirStartAngle)); this.lastKnownAngle = newangle; if ((this.mode === 0 || this.mode === 1 || this.mode === 3 || this.mode === 4) && (this.inst.x !== newx || this.inst.y !== newy)) { this.inst.x = newx; this.inst.y = newy; this.inst.set_bbox_changed(); } if ((this.mode === 0 || this.mode === 2) && (this.inst.angle !== newangle)) { this.inst.angle = newangle; this.inst.set_bbox_changed(); } }; function Cnds() {}; Cnds.prototype.IsPinned = function () { return !!this.pinObject; }; behaviorProto.cnds = new Cnds(); function Acts() {}; Acts.prototype.Pin = function (obj, mode_) { if (!obj) return; var otherinst = obj.getFirstPicked(this.inst); if (!otherinst) return; this.pinObject = otherinst; this.pinAngle = cr.angleTo(otherinst.x, otherinst.y, this.inst.x, this.inst.y) - otherinst.angle; this.pinDist = cr.distanceTo(otherinst.x, otherinst.y, this.inst.x, this.inst.y); this.myStartAngle = this.inst.angle; this.lastKnownAngle = this.inst.angle; this.theirStartAngle = otherinst.angle; this.mode = mode_; }; Acts.prototype.Unpin = function () { this.pinObject = null; }; behaviorProto.acts = new Acts(); function Exps() {}; Exps.prototype.PinnedUID = function (ret) { ret.set_int(this.pinObject ? this.pinObject.uid : -1); }; behaviorProto.exps = new Exps(); }()); ; ; cr.behaviors.Platform = function(runtime) { this.runtime = runtime; }; (function () { var behaviorProto = cr.behaviors.Platform.prototype; behaviorProto.Type = function(behavior, objtype) { this.behavior = behavior; this.objtype = objtype; this.runtime = behavior.runtime; }; var behtypeProto = behaviorProto.Type.prototype; behtypeProto.onCreate = function() { }; var ANIMMODE_STOPPED = 0; var ANIMMODE_MOVING = 1; var ANIMMODE_JUMPING = 2; var ANIMMODE_FALLING = 3; behaviorProto.Instance = function(type, inst) { this.type = type; this.behavior = type.behavior; this.inst = inst; // associated object instance to modify this.runtime = type.runtime; this.leftkey = false; this.rightkey = false; this.jumpkey = false; this.jumped = false; // prevent bunnyhopping this.doubleJumped = false; this.canDoubleJump = false; this.ignoreInput = false; this.simleft = false; this.simright = false; this.simjump = false; this.lastFloorObject = null; this.loadFloorObject = -1; this.lastFloorX = 0; this.lastFloorY = 0; this.floorIsJumpthru = false; this.animMode = ANIMMODE_STOPPED; this.fallthrough = 0; // fall through jump-thru. >0 to disable, lasts a few ticks this.firstTick = true; this.dx = 0; this.dy = 0; }; var behinstProto = behaviorProto.Instance.prototype; behinstProto.updateGravity = function() { this.downx = Math.cos(this.ga); this.downy = Math.sin(this.ga); this.rightx = Math.cos(this.ga - Math.PI / 2); this.righty = Math.sin(this.ga - Math.PI / 2); this.downx = cr.round6dp(this.downx); this.downy = cr.round6dp(this.downy); this.rightx = cr.round6dp(this.rightx); this.righty = cr.round6dp(this.righty); this.g1 = this.g; if (this.g < 0) { this.downx *= -1; this.downy *= -1; this.g = Math.abs(this.g); } }; behinstProto.onCreate = function() { this.maxspeed = this.properties[0]; this.acc = this.properties[1]; this.dec = this.properties[2]; this.jumpStrength = this.properties[3]; this.g = this.properties[4]; this.g1 = this.g; this.maxFall = this.properties[5]; this.enableDoubleJump = (this.properties[6] !== 0); // 0=disabled, 1=enabled this.jumpSustain = (this.properties[7] / 1000); // convert ms to s this.defaultControls = (this.properties[8] === 1); // 0=no, 1=yes this.enabled = (this.properties[9] !== 0); this.wasOnFloor = false; this.wasOverJumpthru = this.runtime.testOverlapJumpThru(this.inst); this.loadOverJumpthru = -1; this.sustainTime = 0; // time of jump sustain remaining this.ga = cr.to_radians(90); this.updateGravity(); var self = this; if (this.defaultControls && !this.runtime.isDomFree) { jQuery(document).keydown(function(info) { self.onKeyDown(info); }); jQuery(document).keyup(function(info) { self.onKeyUp(info); }); } if (!this.recycled) { this.myDestroyCallback = function(inst) { self.onInstanceDestroyed(inst); }; } this.runtime.addDestroyCallback(this.myDestroyCallback); this.inst.extra["isPlatformBehavior"] = true; }; behinstProto.saveToJSON = function () { return { "ii": this.ignoreInput, "lfx": this.lastFloorX, "lfy": this.lastFloorY, "lfo": (this.lastFloorObject ? this.lastFloorObject.uid : -1), "am": this.animMode, "en": this.enabled, "fall": this.fallthrough, "ft": this.firstTick, "dx": this.dx, "dy": this.dy, "ms": this.maxspeed, "acc": this.acc, "dec": this.dec, "js": this.jumpStrength, "g": this.g, "g1": this.g1, "mf": this.maxFall, "wof": this.wasOnFloor, "woj": (this.wasOverJumpthru ? this.wasOverJumpthru.uid : -1), "ga": this.ga, "edj": this.enableDoubleJump, "cdj": this.canDoubleJump, "dj": this.doubleJumped, "sus": this.jumpSustain }; }; behinstProto.loadFromJSON = function (o) { this.ignoreInput = o["ii"]; this.lastFloorX = o["lfx"]; this.lastFloorY = o["lfy"]; this.loadFloorObject = o["lfo"]; this.animMode = o["am"]; this.enabled = o["en"]; this.fallthrough = o["fall"]; this.firstTick = o["ft"]; this.dx = o["dx"]; this.dy = o["dy"]; this.maxspeed = o["ms"]; this.acc = o["acc"]; this.dec = o["dec"]; this.jumpStrength = o["js"]; this.g = o["g"]; this.g1 = o["g1"]; this.maxFall = o["mf"]; this.wasOnFloor = o["wof"]; this.loadOverJumpthru = o["woj"]; this.ga = o["ga"]; this.enableDoubleJump = o["edj"]; this.canDoubleJump = o["cdj"]; this.doubleJumped = o["dj"]; this.jumpSustain = o["sus"]; this.leftkey = false; this.rightkey = false; this.jumpkey = false; this.jumped = false; this.simleft = false; this.simright = false; this.simjump = false; this.sustainTime = 0; this.updateGravity(); }; behinstProto.afterLoad = function () { if (this.loadFloorObject === -1) this.lastFloorObject = null; else this.lastFloorObject = this.runtime.getObjectByUID(this.loadFloorObject); if (this.loadOverJumpthru === -1) this.wasOverJumpthru = null; else this.wasOverJumpthru = this.runtime.getObjectByUID(this.loadOverJumpthru); }; behinstProto.onInstanceDestroyed = function (inst) { if (this.lastFloorObject == inst) this.lastFloorObject = null; }; behinstProto.onDestroy = function () { this.lastFloorObject = null; this.runtime.removeDestroyCallback(this.myDestroyCallback); }; behinstProto.onKeyDown = function (info) { switch (info.which) { case 38: // up info.preventDefault(); this.jumpkey = true; break; case 37: // left info.preventDefault(); this.leftkey = true; break; case 39: // right info.preventDefault(); this.rightkey = true; break; } }; behinstProto.onKeyUp = function (info) { switch (info.which) { case 38: // up info.preventDefault(); this.jumpkey = false; this.jumped = false; break; case 37: // left info.preventDefault(); this.leftkey = false; break; case 39: // right info.preventDefault(); this.rightkey = false; break; } }; behinstProto.onWindowBlur = function () { this.leftkey = false; this.rightkey = false; this.jumpkey = false; }; behinstProto.getGDir = function () { if (this.g < 0) return -1; else return 1; }; behinstProto.isOnFloor = function () { var ret = null; var ret2 = null; var i, len, j; var oldx = this.inst.x; var oldy = this.inst.y; this.inst.x += this.downx; this.inst.y += this.downy; this.inst.set_bbox_changed(); if (this.lastFloorObject && this.runtime.testOverlap(this.inst, this.lastFloorObject) && (!this.runtime.typeHasBehavior(this.lastFloorObject.type, cr.behaviors.solid) || this.lastFloorObject.extra["solidEnabled"])) { this.inst.x = oldx; this.inst.y = oldy; this.inst.set_bbox_changed(); return this.lastFloorObject; } else { ret = this.runtime.testOverlapSolid(this.inst); if (!ret && this.fallthrough === 0) ret2 = this.runtime.testOverlapJumpThru(this.inst, true); this.inst.x = oldx; this.inst.y = oldy; this.inst.set_bbox_changed(); if (ret) // was overlapping solid { if (this.runtime.testOverlap(this.inst, ret)) return null; else { this.floorIsJumpthru = false; return ret; } } if (ret2 && ret2.length) { for (i = 0, j = 0, len = ret2.length; i < len; i++) { ret2[j] = ret2[i]; if (!this.runtime.testOverlap(this.inst, ret2[i])) j++; } if (j >= 1) { this.floorIsJumpthru = true; return ret2[0]; } } return null; } }; behinstProto.tick = function () { }; behinstProto.posttick = function () { var dt = this.runtime.getDt(this.inst); var mx, my, obstacle, mag, allover, i, len, j, oldx, oldy; if (!this.jumpkey && !this.simjump) this.jumped = false; var left = this.leftkey || this.simleft; var right = this.rightkey || this.simright; var jumpkey = (this.jumpkey || this.simjump); var jump = jumpkey && !this.jumped; this.simleft = false; this.simright = false; this.simjump = false; if (!this.enabled) return; if (this.ignoreInput) { left = false; right = false; jumpkey = false; jump = false; } if (!jumpkey) this.sustainTime = 0; var lastFloor = this.lastFloorObject; var floor_moved = false; if (this.firstTick) { if (this.runtime.testOverlapSolid(this.inst) || this.runtime.testOverlapJumpThru(this.inst)) { this.runtime.pushOutSolid(this.inst, -this.downx, -this.downy, 4, true); } this.firstTick = false; } if (lastFloor && this.dy === 0 && (lastFloor.y !== this.lastFloorY || lastFloor.x !== this.lastFloorX)) { mx = (lastFloor.x - this.lastFloorX); my = (lastFloor.y - this.lastFloorY); this.inst.x += mx; this.inst.y += my; this.inst.set_bbox_changed(); this.lastFloorX = lastFloor.x; this.lastFloorY = lastFloor.y; floor_moved = true; if (this.runtime.testOverlapSolid(this.inst)) { this.runtime.pushOutSolid(this.inst, -mx, -my, Math.sqrt(mx * mx + my * my) * 2.5); } } var floor_ = this.isOnFloor(); var collobj = this.runtime.testOverlapSolid(this.inst); if (collobj) { if (this.inst.extra["inputPredicted"]) { this.runtime.pushOutSolid(this.inst, -this.downx, -this.downy, 10, false); } else if (this.runtime.pushOutSolidAxis(this.inst, this.rightx, this.righty, this.inst.width / 2)) { this.runtime.registerCollision(this.inst, collobj); } else if (this.runtime.pushOutSolidAxis(this.inst, this.downx, this.downy, this.inst.height / 2)) { this.runtime.registerCollision(this.inst, collobj); } else if (this.runtime.pushOutSolidNearest(this.inst, Math.max(this.inst.width, this.inst.height) / 2)) { this.runtime.registerCollision(this.inst, collobj); } else return; } if (floor_) { this.doubleJumped = false; // reset double jump flags for next jump this.canDoubleJump = false; if (this.dy > 0) { if (!this.wasOnFloor) { this.runtime.pushInFractional(this.inst, -this.downx, -this.downy, floor_, 16); this.wasOnFloor = true; } this.dy = 0; } if (lastFloor != floor_) { this.lastFloorObject = floor_; this.lastFloorX = floor_.x; this.lastFloorY = floor_.y; this.runtime.registerCollision(this.inst, floor_); } else if (floor_moved) { collobj = this.runtime.testOverlapSolid(this.inst); if (collobj) { this.runtime.registerCollision(this.inst, collobj); if (mx !== 0) { if (mx > 0) this.runtime.pushOutSolid(this.inst, -this.rightx, -this.righty); else this.runtime.pushOutSolid(this.inst, this.rightx, this.righty); } this.runtime.pushOutSolid(this.inst, -this.downx, -this.downy); } } } else { if (!jumpkey) this.canDoubleJump = true; } if ((floor_ && jump) || (!floor_ && this.enableDoubleJump && jumpkey && this.canDoubleJump && !this.doubleJumped)) { oldx = this.inst.x; oldy = this.inst.y; this.inst.x -= this.downx; this.inst.y -= this.downy; this.inst.set_bbox_changed(); if (!this.runtime.testOverlapSolid(this.inst)) { this.sustainTime = this.jumpSustain; this.runtime.trigger(cr.behaviors.Platform.prototype.cnds.OnJump, this.inst); this.animMode = ANIMMODE_JUMPING; this.dy = -this.jumpStrength; jump = true; // set in case is double jump if (floor_) this.jumped = true; else this.doubleJumped = true; } else jump = false; this.inst.x = oldx; this.inst.y = oldy; this.inst.set_bbox_changed(); } if (!floor_) { if (jumpkey && this.sustainTime > 0) { this.dy = -this.jumpStrength; this.sustainTime -= dt; } else { this.lastFloorObject = null; this.dy += this.g * dt; if (this.dy > this.maxFall) this.dy = this.maxFall; } if (jump) this.jumped = true; } this.wasOnFloor = !!floor_; if (left == right) // both up or both down { if (this.dx < 0) { this.dx += this.dec * dt; if (this.dx > 0) this.dx = 0; } else if (this.dx > 0) { this.dx -= this.dec * dt; if (this.dx < 0) this.dx = 0; } } if (left && !right) { if (this.dx > 0) this.dx -= (this.acc + this.dec) * dt; else this.dx -= this.acc * dt; } if (right && !left) { if (this.dx < 0) this.dx += (this.acc + this.dec) * dt; else this.dx += this.acc * dt; } if (this.dx > this.maxspeed) this.dx = this.maxspeed; else if (this.dx < -this.maxspeed) this.dx = -this.maxspeed; var landed = false; if (this.dx !== 0) { oldx = this.inst.x; oldy = this.inst.y; mx = this.dx * dt * this.rightx; my = this.dx * dt * this.righty; this.inst.x += this.rightx * (this.dx > 1 ? 1 : -1) - this.downx; this.inst.y += this.righty * (this.dx > 1 ? 1 : -1) - this.downy; this.inst.set_bbox_changed(); var is_jumpthru = false; var slope_too_steep = this.runtime.testOverlapSolid(this.inst); /* if (!slope_too_steep && floor_) { slope_too_steep = this.runtime.testOverlapJumpThru(this.inst); is_jumpthru = true; if (slope_too_steep) { this.inst.x = oldx; this.inst.y = oldy; this.inst.set_bbox_changed(); if (this.runtime.testOverlap(this.inst, slope_too_steep)) { slope_too_steep = null; is_jumpthru = false; } } } */ this.inst.x = oldx + mx; this.inst.y = oldy + my; this.inst.set_bbox_changed(); obstacle = this.runtime.testOverlapSolid(this.inst); if (!obstacle && floor_) { obstacle = this.runtime.testOverlapJumpThru(this.inst); if (obstacle) { this.inst.x = oldx; this.inst.y = oldy; this.inst.set_bbox_changed(); if (this.runtime.testOverlap(this.inst, obstacle)) { obstacle = null; is_jumpthru = false; } else is_jumpthru = true; this.inst.x = oldx + mx; this.inst.y = oldy + my; this.inst.set_bbox_changed(); } } if (obstacle) { var push_dist = Math.abs(this.dx * dt) + 2; if (slope_too_steep || !this.runtime.pushOutSolid(this.inst, -this.downx, -this.downy, push_dist, is_jumpthru, obstacle)) { this.runtime.registerCollision(this.inst, obstacle); push_dist = Math.max(Math.abs(this.dx * dt * 2.5), 30); if (!this.runtime.pushOutSolid(this.inst, this.rightx * (this.dx < 0 ? 1 : -1), this.righty * (this.dx < 0 ? 1 : -1), push_dist, false)) { this.inst.x = oldx; this.inst.y = oldy; this.inst.set_bbox_changed(); } else if (floor_ && !is_jumpthru && !this.floorIsJumpthru) { oldx = this.inst.x; oldy = this.inst.y; this.inst.x += this.downx; this.inst.y += this.downy; if (this.runtime.testOverlapSolid(this.inst)) { if (!this.runtime.pushOutSolid(this.inst, -this.downx, -this.downy, 3, false)) { this.inst.x = oldx; this.inst.y = oldy; this.inst.set_bbox_changed(); } } else { this.inst.x = oldx; this.inst.y = oldy; this.inst.set_bbox_changed(); } } if (!is_jumpthru) this.dx = 0; // stop } else if (!slope_too_steep && !jump && (Math.abs(this.dy) < Math.abs(this.jumpStrength / 4))) { this.dy = 0; if (!floor_) landed = true; } } else { var newfloor = this.isOnFloor(); if (floor_ && !newfloor) { mag = Math.ceil(Math.abs(this.dx * dt)) + 2; oldx = this.inst.x; oldy = this.inst.y; this.inst.x += this.downx * mag; this.inst.y += this.downy * mag; this.inst.set_bbox_changed(); if (this.runtime.testOverlapSolid(this.inst) || this.runtime.testOverlapJumpThru(this.inst)) this.runtime.pushOutSolid(this.inst, -this.downx, -this.downy, mag + 2, true); else { this.inst.x = oldx; this.inst.y = oldy; this.inst.set_bbox_changed(); } } else if (newfloor && this.dy === 0) { this.runtime.pushInFractional(this.inst, -this.downx, -this.downy, newfloor, 16); } } } if (this.dy !== 0) { oldx = this.inst.x; oldy = this.inst.y; this.inst.x += this.dy * dt * this.downx; this.inst.y += this.dy * dt * this.downy; var newx = this.inst.x; var newy = this.inst.y; this.inst.set_bbox_changed(); collobj = this.runtime.testOverlapSolid(this.inst); var fell_on_jumpthru = false; if (!collobj && (this.dy > 0) && !floor_) { allover = this.fallthrough > 0 ? null : this.runtime.testOverlapJumpThru(this.inst, true); if (allover && allover.length) { if (this.wasOverJumpthru) { this.inst.x = oldx; this.inst.y = oldy; this.inst.set_bbox_changed(); for (i = 0, j = 0, len = allover.length; i < len; i++) { allover[j] = allover[i]; if (!this.runtime.testOverlap(this.inst, allover[i])) j++; } allover.length = j; this.inst.x = newx; this.inst.y = newy; this.inst.set_bbox_changed(); } if (allover.length >= 1) collobj = allover[0]; } fell_on_jumpthru = !!collobj; } if (collobj) { this.runtime.registerCollision(this.inst, collobj); this.sustainTime = 0; var push_dist = (fell_on_jumpthru ? Math.abs(this.dy * dt * 2.5 + 10) : Math.max(Math.abs(this.dy * dt * 2.5 + 10), 30)); if (!this.runtime.pushOutSolid(this.inst, this.downx * (this.dy < 0 ? 1 : -1), this.downy * (this.dy < 0 ? 1 : -1), push_dist, fell_on_jumpthru, collobj)) { this.inst.x = oldx; this.inst.y = oldy; this.inst.set_bbox_changed(); this.wasOnFloor = true; // prevent adjustment for unexpected floor landings if (!fell_on_jumpthru) this.dy = 0; // stop } else { this.lastFloorObject = collobj; this.lastFloorX = collobj.x; this.lastFloorY = collobj.y; this.floorIsJumpthru = fell_on_jumpthru; if (fell_on_jumpthru) landed = true; this.dy = 0; // stop } } } if (this.animMode !== ANIMMODE_FALLING && this.dy > 0 && !floor_) { this.runtime.trigger(cr.behaviors.Platform.prototype.cnds.OnFall, this.inst); this.animMode = ANIMMODE_FALLING; } if ((floor_ || landed) && this.dy >= 0) { if (this.animMode === ANIMMODE_FALLING || landed || (jump && this.dy === 0)) { this.runtime.trigger(cr.behaviors.Platform.prototype.cnds.OnLand, this.inst); if (this.dx === 0 && this.dy === 0) this.animMode = ANIMMODE_STOPPED; else this.animMode = ANIMMODE_MOVING; } else { if (this.animMode !== ANIMMODE_STOPPED && this.dx === 0 && this.dy === 0) { this.runtime.trigger(cr.behaviors.Platform.prototype.cnds.OnStop, this.inst); this.animMode = ANIMMODE_STOPPED; } if (this.animMode !== ANIMMODE_MOVING && (this.dx !== 0 || this.dy !== 0) && !jump) { this.runtime.trigger(cr.behaviors.Platform.prototype.cnds.OnMove, this.inst); this.animMode = ANIMMODE_MOVING; } } } if (this.fallthrough > 0) this.fallthrough--; this.wasOverJumpthru = this.runtime.testOverlapJumpThru(this.inst); }; function Cnds() {}; Cnds.prototype.IsMoving = function () { return this.dx !== 0 || this.dy !== 0; }; Cnds.prototype.CompareSpeed = function (cmp, s) { var speed = Math.sqrt(this.dx * this.dx + this.dy * this.dy); return cr.do_cmp(speed, cmp, s); }; Cnds.prototype.IsOnFloor = function () { if (this.dy !== 0) return false; var ret = null; var ret2 = null; var i, len, j; var oldx = this.inst.x; var oldy = this.inst.y; this.inst.x += this.downx; this.inst.y += this.downy; this.inst.set_bbox_changed(); ret = this.runtime.testOverlapSolid(this.inst); if (!ret && this.fallthrough === 0) ret2 = this.runtime.testOverlapJumpThru(this.inst, true); this.inst.x = oldx; this.inst.y = oldy; this.inst.set_bbox_changed(); if (ret) // was overlapping solid { return !this.runtime.testOverlap(this.inst, ret); } if (ret2 && ret2.length) { for (i = 0, j = 0, len = ret2.length; i < len; i++) { ret2[j] = ret2[i]; if (!this.runtime.testOverlap(this.inst, ret2[i])) j++; } if (j >= 1) return true; } return false; }; Cnds.prototype.IsByWall = function (side) { var ret = false; var oldx = this.inst.x; var oldy = this.inst.y; if (side === 0) // left { this.inst.x -= this.rightx * 2; this.inst.y -= this.righty * 2; } else { this.inst.x += this.rightx * 2; this.inst.y += this.righty * 2; } this.inst.set_bbox_changed(); if (!this.runtime.testOverlapSolid(this.inst)) { this.inst.x = oldx; this.inst.y = oldy; this.inst.set_bbox_changed(); return false; } this.inst.x -= this.downx * 3; this.inst.y -= this.downy * 3; this.inst.set_bbox_changed(); ret = this.runtime.testOverlapSolid(this.inst); this.inst.x = oldx; this.inst.y = oldy; this.inst.set_bbox_changed(); return ret; }; Cnds.prototype.IsJumping = function () { return this.dy < 0; }; Cnds.prototype.IsFalling = function () { return this.dy > 0; }; Cnds.prototype.OnJump = function () { return true; }; Cnds.prototype.OnFall = function () { return true; }; Cnds.prototype.OnStop = function () { return true; }; Cnds.prototype.OnMove = function () { return true; }; Cnds.prototype.OnLand = function () { return true; }; Cnds.prototype.IsDoubleJumpEnabled = function () { return this.enableDoubleJump; }; behaviorProto.cnds = new Cnds(); function Acts() {}; Acts.prototype.SetIgnoreInput = function (ignoring) { this.ignoreInput = ignoring; }; Acts.prototype.SetMaxSpeed = function (maxspeed) { this.maxspeed = maxspeed; if (this.maxspeed < 0) this.maxspeed = 0; }; Acts.prototype.SetAcceleration = function (acc) { this.acc = acc; if (this.acc < 0) this.acc = 0; }; Acts.prototype.SetDeceleration = function (dec) { this.dec = dec; if (this.dec < 0) this.dec = 0; }; Acts.prototype.SetJumpStrength = function (js) { this.jumpStrength = js; if (this.jumpStrength < 0) this.jumpStrength = 0; }; Acts.prototype.SetGravity = function (grav) { if (this.g1 === grav) return; // no change this.g = grav; this.updateGravity(); if (this.runtime.testOverlapSolid(this.inst)) { this.runtime.pushOutSolid(this.inst, this.downx, this.downy, 10); this.inst.x += this.downx * 2; this.inst.y += this.downy * 2; this.inst.set_bbox_changed(); } this.lastFloorObject = null; }; Acts.prototype.SetMaxFallSpeed = function (mfs) { this.maxFall = mfs; if (this.maxFall < 0) this.maxFall = 0; }; Acts.prototype.SimulateControl = function (ctrl) { switch (ctrl) { case 0: this.simleft = true; break; case 1: this.simright = true; break; case 2: this.simjump = true; break; } }; Acts.prototype.SetVectorX = function (vx) { this.dx = vx; }; Acts.prototype.SetVectorY = function (vy) { this.dy = vy; }; Acts.prototype.SetGravityAngle = function (a) { a = cr.to_radians(a); a = cr.clamp_angle(a); if (this.ga === a) return; // no change this.ga = a; this.updateGravity(); this.lastFloorObject = null; }; Acts.prototype.SetEnabled = function (en) { if (this.enabled !== (en === 1)) { this.enabled = (en === 1); if (!this.enabled) this.lastFloorObject = null; } }; Acts.prototype.FallThrough = function () { var oldx = this.inst.x; var oldy = this.inst.y; this.inst.x += this.downx; this.inst.y += this.downy; this.inst.set_bbox_changed(); var overlaps = this.runtime.testOverlapJumpThru(this.inst, false); this.inst.x = oldx; this.inst.y = oldy; this.inst.set_bbox_changed(); if (!overlaps) return; this.fallthrough = 3; // disable jumpthrus for 3 ticks (1 doesn't do it, 2 does, 3 to be on safe side) this.lastFloorObject = null; }; Acts.prototype.SetDoubleJumpEnabled = function (e) { this.enableDoubleJump = (e !== 0); }; Acts.prototype.SetJumpSustain = function (s) { this.jumpSustain = s / 1000; // convert to ms }; behaviorProto.acts = new Acts(); function Exps() {}; Exps.prototype.Speed = function (ret) { ret.set_float(Math.sqrt(this.dx * this.dx + this.dy * this.dy)); }; Exps.prototype.MaxSpeed = function (ret) { ret.set_float(this.maxspeed); }; Exps.prototype.Acceleration = function (ret) { ret.set_float(this.acc); }; Exps.prototype.Deceleration = function (ret) { ret.set_float(this.dec); }; Exps.prototype.JumpStrength = function (ret) { ret.set_float(this.jumpStrength); }; Exps.prototype.Gravity = function (ret) { ret.set_float(this.g); }; Exps.prototype.GravityAngle = function (ret) { ret.set_float(cr.to_degrees(this.ga)); }; Exps.prototype.MaxFallSpeed = function (ret) { ret.set_float(this.maxFall); }; Exps.prototype.MovingAngle = function (ret) { ret.set_float(cr.to_degrees(Math.atan2(this.dy, this.dx))); }; Exps.prototype.VectorX = function (ret) { ret.set_float(this.dx); }; Exps.prototype.VectorY = function (ret) { ret.set_float(this.dy); }; Exps.prototype.JumpSustain = function (ret) { ret.set_float(this.jumpSustain * 1000); // convert back to ms }; behaviorProto.exps = new Exps(); }()); ; ; cr.behaviors.Rex_Revive = function(runtime) { this.runtime = runtime; }; (function () { var _SID2Objtype = {}; var behaviorProto = cr.behaviors.Rex_Revive.prototype; behaviorProto.Type = function(behavior, objtype) { this.behavior = behavior; this.objtype = objtype; this.runtime = behavior.runtime; }; var behtypeProto = behaviorProto.Type.prototype; behtypeProto.onCreate = function() { this.timeline = null; this.behavior_index = null; }; behtypeProto._timeline_get = function () { if (this.timeline != null) return this.timeline; ; var plugins = this.runtime.types; var name, inst; for (name in plugins) { inst = plugins[name].instances[0]; if (inst instanceof cr.plugins_.Rex_TimeLine.prototype.Instance) { this.timeline = inst; return this.timeline; } } ; return null; }; behtypeProto.SID2Type = function(sid) { if (_SID2Objtype[sid] == null) { _SID2Objtype[sid] = this.runtime.getObjectTypeBySid(sid); } return _SID2Objtype[sid]; }; var on_timeout = function () { this.plugin.revive_inst(this.revive_data, this.custom_data); }; behtypeProto.revive_inst = function(revive_data, custom_data) { revive_data = JSON.parse(revive_data); custom_data = JSON.parse(custom_data); var objtype = this.SID2Type(revive_data["sid"]); var layer = null; if (objtype.plugin.is_world) { layer = this.runtime.running_layout.getLayerBySid(revive_data["w"]["l"]); if (!layer) return; } var inst = window.RexC2CreateObject.call(this, objtype, layer, 0, 0, null, false); this.runtime.loadInstanceFromJSON(inst, revive_data, true); var behavior_inst = GetThisBehavior(inst); behavior_inst._mem = custom_data; this.runtime.trigger(cr.behaviors.Rex_Revive.prototype.cnds.OnRevive, inst); }; function GetThisBehavior(inst) { var i, len; for (i = 0, len = inst.behavior_insts.length; i < len; i++) { if (inst.behavior_insts[i] instanceof behaviorProto.Instance) return inst.behavior_insts[i]; } return null; }; behaviorProto.Instance = function(type, inst) { this.type = type; this.behavior = type.behavior; this.inst = inst; // associated object instance to modify this.runtime = type.runtime; }; var behinstProto = behaviorProto.Instance.prototype; behinstProto.onCreate = function() { this.activated = (this.properties[0]==1); this.revive_time = this.properties[1]; this.revive_at = this.properties[2]; this.revive_data = null; this.init_save_flg = true; this._mem = {}; }; behinstProto.onDestroy = function() { if (!this.activated) return; this.runtime.trigger(cr.behaviors.Rex_Revive.prototype.cnds.OnDestroy, this.inst); if (this.revive_at == 1) { this.revive_data = JSON.stringify(this.status_get()); } var timeline = this.type._timeline_get(); var timer = timeline.CreateTimer(on_timeout); timer.plugin = this.type; timer.revive_data = this.revive_data; timer.custom_data = JSON.stringify(this._mem); timer.Start(this.revive_time); }; behinstProto.status_get = function() { var status = this.runtime.saveInstanceToJSON(this.inst, true); var sid = this.inst.type.sid; status["sid"] = sid; _SID2Objtype[sid] = this.inst.type; return status; }; behinstProto.tick = function () { if (!this.init_save_flg) return; this.init_save_flg = false; if (this.revive_at == 0) { this.revive_data = JSON.stringify(this.status_get()); } }; function Cnds() {}; behaviorProto.cnds = new Cnds(); Cnds.prototype.OnDestroy = function () { return true; }; Cnds.prototype.OnRevive = function () { return true; }; function Acts() {}; behaviorProto.acts = new Acts(); Acts.prototype.Setup = function (timeline_objs) { var timeline = timeline_objs.instances[0]; if (timeline.check_name == "TIMELINE") this.type.timeline = timeline; else alert ("Revive behavior should connect to a timeline object"); }; Acts.prototype.SetActivated = function (s) { this.activated = s; }; Acts.prototype.SetReviveTime = function (t) { this.revive_time = t; }; Acts.prototype.SetMemory = function (index, value) { this._mem[index] = value; }; function Exps() {}; behaviorProto.exps = new Exps(); Exps.prototype.Mem = function (ret, index) { var value = this._mem[index]; if (value == null) value = 0; ret.set_any(value); }; }()); (function () { if (window.RexC2CreateObject != null) return; var CreateObject = function (obj, layer, x, y, callback, ignore_picking) { if (!layer || !obj) return; var inst = this.runtime.createInstance(obj, layer, x, y); if (!inst) return; this.runtime.isInOnDestroy++; if (callback) callback(inst); var i, len, s; this.runtime.trigger(Object.getPrototypeOf(obj.plugin).cnds.OnCreated, inst); if (inst.is_contained) { for (i = 0, len = inst.siblings.length; i < len; i++) { s = inst.siblings[i]; this.runtime.trigger(Object.getPrototypeOf(s.type.plugin).cnds.OnCreated, s); } } this.runtime.isInOnDestroy--; if (ignore_picking !== true) { var sol = obj.getCurrentSol(); sol.select_all = false; sol.instances.length = 1; sol.instances[0] = inst; if (inst.is_contained) { for (i = 0, len = inst.siblings.length; i < len; i++) { s = inst.siblings[i]; sol = s.type.getCurrentSol(); sol.select_all = false; sol.instances.length = 1; sol.instances[0] = s; } } } return inst; }; window.RexC2CreateObject = CreateObject; }()); ; ; cr.behaviors.Timer = function(runtime) { this.runtime = runtime; }; (function () { var behaviorProto = cr.behaviors.Timer.prototype; behaviorProto.Type = function(behavior, objtype) { this.behavior = behavior; this.objtype = objtype; this.runtime = behavior.runtime; }; var behtypeProto = behaviorProto.Type.prototype; behtypeProto.onCreate = function() { }; behaviorProto.Instance = function(type, inst) { this.type = type; this.behavior = type.behavior; this.inst = inst; // associated object instance to modify this.runtime = type.runtime; }; var behinstProto = behaviorProto.Instance.prototype; behinstProto.onCreate = function() { this.timers = {}; }; behinstProto.onDestroy = function () { cr.wipe(this.timers); }; behinstProto.saveToJSON = function () { var o = {}; var p, t; for (p in this.timers) { if (this.timers.hasOwnProperty(p)) { t = this.timers[p]; o[p] = { "c": t.current.sum, "t": t.total.sum, "d": t.duration, "r": t.regular }; } } return o; }; behinstProto.loadFromJSON = function (o) { this.timers = {}; var p; for (p in o) { if (o.hasOwnProperty(p)) { this.timers[p] = { current: new cr.KahanAdder(), total: new cr.KahanAdder(), duration: o[p]["d"], regular: o[p]["r"] }; this.timers[p].current.sum = o[p]["c"]; this.timers[p].total.sum = o[p]["t"]; } } }; behinstProto.tick = function () { var dt = this.runtime.getDt(this.inst); var p, t; for (p in this.timers) { if (this.timers.hasOwnProperty(p)) { t = this.timers[p]; t.current.add(dt); t.total.add(dt); } } }; behinstProto.tick2 = function () { var p, t; for (p in this.timers) { if (this.timers.hasOwnProperty(p)) { t = this.timers[p]; if (t.current.sum >= t.duration) { if (t.regular) t.current.sum -= t.duration; else delete this.timers[p]; } } } }; function Cnds() {}; Cnds.prototype.OnTimer = function (tag_) { tag_ = tag_.toLowerCase(); var t = this.timers[tag_]; if (!t) return false; return t.current.sum >= t.duration; }; behaviorProto.cnds = new Cnds(); function Acts() {}; Acts.prototype.StartTimer = function (duration_, type_, tag_) { this.timers[tag_.toLowerCase()] = { current: new cr.KahanAdder(), total: new cr.KahanAdder(), duration: duration_, regular: (type_ === 1) }; }; Acts.prototype.StopTimer = function (tag_) { tag_ = tag_.toLowerCase(); if (this.timers.hasOwnProperty(tag_)) delete this.timers[tag_]; }; behaviorProto.acts = new Acts(); function Exps() {}; Exps.prototype.CurrentTime = function (ret, tag_) { var t = this.timers[tag_.toLowerCase()]; ret.set_float(t ? t.current.sum : 0); }; Exps.prototype.TotalTime = function (ret, tag_) { var t = this.timers[tag_.toLowerCase()]; ret.set_float(t ? t.total.sum : 0); }; Exps.prototype.Duration = function (ret, tag_) { var t = this.timers[tag_.toLowerCase()]; ret.set_float(t ? t.duration : 0); }; behaviorProto.exps = new Exps(); }()); ; ; cr.behaviors.jumpthru = function(runtime) { this.runtime = runtime; }; (function () { var behaviorProto = cr.behaviors.jumpthru.prototype; behaviorProto.Type = function(behavior, objtype) { this.behavior = behavior; this.objtype = objtype; this.runtime = behavior.runtime; }; var behtypeProto = behaviorProto.Type.prototype; behtypeProto.onCreate = function() { }; behaviorProto.Instance = function(type, inst) { this.type = type; this.behavior = type.behavior; this.inst = inst; // associated object instance to modify this.runtime = type.runtime; }; var behinstProto = behaviorProto.Instance.prototype; behinstProto.onCreate = function() { this.inst.extra["jumpthruEnabled"] = (this.properties[0] !== 0); }; behinstProto.tick = function () { }; function Cnds() {}; Cnds.prototype.IsEnabled = function () { return this.inst.extra["jumpthruEnabled"]; }; behaviorProto.cnds = new Cnds(); function Acts() {}; Acts.prototype.SetEnabled = function (e) { this.inst.extra["jumpthruEnabled"] = !!e; }; behaviorProto.acts = new Acts(); }()); var easeOutBounceArray = []; var easeInElasticArray = []; var easeOutElasticArray = []; var easeInOutElasticArray = []; var easeInCircle = []; var easeOutCircle = []; var easeInOutCircle = []; var easeInBack = []; var easeOutBack = []; var easeInOutBack = []; var litetween_precision = 10000; var updateLimit = 0; //0.0165; function easeOutBouncefunc(t) { var b=0.0; var c=1.0; var d=1.0; if ((t/=d) < (1/2.75)) { result = c*(7.5625*t*t) + b; } else if (t < (2/2.75)) { result = c*(7.5625*(t-=(1.5/2.75))*t + .75) + b; } else if (t < (2.5/2.75)) { result = c*(7.5625*(t-=(2.25/2.75))*t + .9375) + b; } else { result = c*(7.5625*(t-=(2.625/2.75))*t + .984375) + b; } return result; } function integerize(t, d) { return Math.round(t/d*litetween_precision); } function easeFunc(easing, t, b, c, d, flip, param) { var ret_ease = 0; switch (easing) { case 0: // linear ret_ease = c*t/d + b; break; case 1: // easeInQuad ret_ease = c*(t/=d)*t + b; break; case 2: // easeOutQuad ret_ease = -c *(t/=d)*(t-2) + b; break; case 3: // easeInOutQuad if ((t/=d/2) < 1) ret_ease = c/2*t*t + b else ret_ease = -c/2 * ((--t)*(t-2) - 1) + b; break; case 4: // easeInCubic ret_ease = c*(t/=d)*t*t + b; break; case 5: // easeOutCubic ret_ease = c*((t=t/d-1)*t*t + 1) + b; break; case 6: // easeInOutCubic if ((t/=d/2) < 1) ret_ease = c/2*t*t*t + b else ret_ease = c/2*((t-=2)*t*t + 2) + b; break; case 7: // easeInQuart ret_ease = c*(t/=d)*t*t*t + b; break; case 8: // easeOutQuart ret_ease = -c * ((t=t/d-1)*t*t*t - 1) + b; break; case 9: // easeInOutQuart if ((t/=d/2) < 1) ret_ease = c/2*t*t*t*t + b else ret_ease = -c/2 * ((t-=2)*t*t*t - 2) + b; break; case 10: // easeInQuint ret_ease = c*(t/=d)*t*t*t*t + b; break; case 11: // easeOutQuint ret_ease = c*((t=t/d-1)*t*t*t*t + 1) + b; break; case 12: // easeInOutQuint if ((t/=d/2) < 1) ret_ease = c/2*t*t*t*t*t + b else ret_ease = c/2*((t-=2)*t*t*t*t + 2) + b; break; case 13: // easeInCircle if (param.optimized) { ret_ease = easeInCircle[integerize(t,d)]; } else { ret_ease = -(Math.sqrt(1-t*t) - 1); } break; case 14: // easeOutCircle if (param.optimized) { ret_ease = easeOutCircle[integerize(t,d)]; } else { ret_ease = Math.sqrt(1 - ((t-1)*(t-1))); } break; case 15: // easeInOutCircle if (param.optimized) { ret_ease = easeInOutCircle[integerize(t,d)]; } else { if ((t/=d/2) < 1) ret_ease = -c/2 * (Math.sqrt(1 - t*t) - 1) + b else ret_ease = c/2 * (Math.sqrt(1 - (t-=2)*t) + 1) + b; } break; case 16: // easeInBack if (param.optimized) { ret_ease = easeInBack[integerize(t,d)]; } else { var s = param.s; ret_ease = c*(t/=d)*t*((s+1)*t - s) + b; } break; case 17: // easeOutBack if (param.optimized) { ret_ease = easeOutBack[integerize(t,d)]; } else { var s = param.s; ret_ease = c*((t=t/d-1)*t*((s+1)*t + s) + 1) + b; } break; case 18: // easeInOutBack if (param.optimized) { ret_ease = easeInOutBack[integerize(t,d)]; } else { var s = param.s if ((t/=d/2) < 1) ret_ease = c/2*(t*t*(((s*=(1.525))+1)*t - s)) + b else ret_ease = c/2*((t-=2)*t*(((s*=(1.525))+1)*t + s) + 2) + b; } break; case 19: //easeInElastic if (param.optimized) { ret_ease = easeInElasticArray[integerize(t, d)]; } else { var a = param.a; var p = param.p; var s = 0; if (t==0) ret_ease = b; if ((t/=d)==1) ret_ease = b+c; if (p==0) p=d*.3; if (a==0 || a < Math.abs(c)) { a=c; s=p/4; } else var s = p/(2*Math.PI) * Math.asin (c/a); ret_ease = -(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b; } break; case 20: //easeOutElastic if (param.optimized) { ret_ease = easeOutElasticArray[integerize(t,d)]; } else { var a = param.a; var p = param.p; var s = 0; if (t==0) ret_ease= b; if ((t/=d)==1) ret_ease= b+c; if (p == 0) p=d*.3; if (a==0 || a < Math.abs(c)) { a=c; var s=p/4; } else var s = p/(2*Math.PI) * Math.asin (c/a); ret_ease= (a*Math.pow(2,-10*t) * Math.sin( (t*d-s)*(2*Math.PI)/p ) + c + b); } break; case 21: //easeInOutElastic if (param.optimized) { ret_ease = easeInOutElasticArray[integerize(t,d)]; } else { var a = param.a; var p = param.p; var s = 0; if (t==0) ret_ease = b; if ((t/=d/2)==2) ret_ease = b+c; if (p==0) p=d*(.3*1.5); if (a==0 || a < Math.abs(c)) { a=c; var s=p/4; } else var s = p/(2*Math.PI) * Math.asin (c/a); if (t < 1) ret_ease = -.5*(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b else ret_ease = a*Math.pow(2,-10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )*.5 + c + b; } break; case 22: //easeInBounce if (param.optimized) { ret_ease = c - easeOutBounceArray[integerize(d-t, d)] + b; } else { ret_ease = c - easeOutBouncefunc(d-t/d) + b; } break; case 23: //easeOutBounce if (param.optimized) { ret_ease = easeOutBounceArray[integerize(t, d)]; } else { ret_ease = easeOutBouncefunc(t/d); } break; case 24: //easeInOutBounce if (param.optimized) { if (t < d/2) ret_ease = (c - easeOutBounceArray[integerize(d-(t*2), d)] + b) * 0.5 +b; else ret_ease = easeOutBounceArray[integerize(t*2-d, d)] * .5 + c*.5 + b; } else { if (t < d/2) ret_ease = (c - easeOutBouncefunc(d-(t*2)) + b) * 0.5 +b; else ret_ease = easeOutBouncefunc((t*2-d)/d) * .5 + c *.5 + b; } break; case 25: //easeInSmoothstep var mt = (t/d) / 2; ret_ease = (2*(mt * mt * (3 - 2*mt))); break; case 26: //easeOutSmoothstep var mt = ((t/d) + 1) / 2; ret_ease = ((2*(mt * mt * (3 - 2*mt))) - 1); break; case 27: //easeInOutSmoothstep var mt = (t / d); ret_ease = (mt * mt * (3 - 2*mt)); break; }; if (flip) return (c - b) - ret_ease else return ret_ease; }; (function preCalculateArray() { var d = 1.0; var b = 0.0; var c = 1.0; var result = 0.0; var a = 0.0; var p = 0.0; var t = 0.0; var s = 0.0; for (var ti = 0; ti <= litetween_precision; ti++) { t = ti/litetween_precision; if ((t/=d) < (1/2.75)) { result = c*(7.5625*t*t) + b; } else if (t < (2/2.75)) { result = c*(7.5625*(t-=(1.5/2.75))*t + .75) + b; } else if (t < (2.5/2.75)) { result = c*(7.5625*(t-=(2.25/2.75))*t + .9375) + b; } else { result = c*(7.5625*(t-=(2.625/2.75))*t + .984375) + b; } easeOutBounceArray[ti] = result; t = ti/litetween_precision; a = 0; p = 0; if (t==0) result = b; if ((t/=d)==1) result = b+c; if (p==0) p=d*.3; if (a==0 || a < Math.abs(c)) { a=c; var s=p/4; } else var s = p/(2*Math.PI) * Math.asin (c/a); result = -(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b; easeInElasticArray[ti] = result; t = ti/litetween_precision; a = 0; p = 0; if (t==0) result= b; if ((t/=d)==1) result= b+c; if (p == 0) p=d*.3; if (a==0 || a < Math.abs(c)) { a=c; var s=p/4; } else var s = p/(2*Math.PI) * Math.asin (c/a); result= (a*Math.pow(2,-10*t) * Math.sin( (t*d-s)*(2*Math.PI)/p ) + c + b); easeOutElasticArray[ti] = result; t = ti/litetween_precision; a = 0; p = 0; if (t==0) result = b; if ((t/=d/2)==2) result = b+c; if (p==0) p=d*(.3*1.5); if (a==0 || a < Math.abs(c)) { a=c; var s=p/4; } else var s = p/(2*Math.PI) * Math.asin (c/a); if (t < 1) result = -.5*(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b else result = a*Math.pow(2,-10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )*.5 + c + b; easeInOutElasticArray[ti] = result; t = ti/litetween_precision; easeInCircle[ti] = -(Math.sqrt(1-t*t) - 1); t = ti/litetween_precision; easeOutCircle[ti] = Math.sqrt(1 - ((t-1)*(t-1))); t = ti/litetween_precision; if ((t/=d/2) < 1) result = -c/2 * (Math.sqrt(1 - t*t) - 1) + b else result = c/2 * (Math.sqrt(1 - (t-=2)*t) + 1) + b; easeInOutCircle[ti] = result; t = ti/litetween_precision; s = 0; if (s==0) s = 1.70158; result = c*(t/=d)*t*((s+1)*t - s) + b; easeInBack[ti] = result; t = ti/litetween_precision; s = 0; if (s==0) s = 1.70158; result = c*((t=t/d-1)*t*((s+1)*t + s) + 1) + b; easeOutBack[ti] = result; t = ti/litetween_precision; s = 0; if (s==0) s = 1.70158; if ((t/=d/2) < 1) result = c/2*(t*t*(((s*=(1.525))+1)*t - s)) + b else result = c/2*((t-=2)*t*(((s*=(1.525))+1)*t + s) + 2) + b; easeInOutBack[ti] = result; } }()); var TweenObject = function() { var constructor = function (tname, tweened, easefunc, initial, target, duration, enforce) { this.name = tname; this.value = 0; this.setInitial(initial); this.setTarget(target); this.easefunc = easefunc; this.tweened = tweened; this.duration = duration; this.progress = 0; this.state = 0; this.onStart = false; this.onEnd = false; this.onReverseStart = false; this.onReverseEnd = false; this.lastKnownValue = 0; this.lastKnownValue2 = 0; this.enforce = enforce; this.pingpong = 1.0; this.flipEase = false; this.easingparam = []; this.lastState = 1; for (var i=0; i<28; i++) { this.easingparam[i] = {}; this.easingparam[i].a = 0.0; this.easingparam[i].p = 0.0; this.easingparam[i].t = 0.0; this.easingparam[i].s = 0.0; this.easingparam[i].optimized = true; } } return constructor; }(); (function () { TweenObject.prototype = { }; TweenObject.prototype.flipTarget = function () { var x1 = this.initialparam1; var x2 = this.initialparam2; this.initialparam1 = this.targetparam1; this.initialparam2 = this.targetparam2; this.targetparam1 = x1; this.targetparam2 = x2; this.lastKnownValue = 0; this.lastKnownValue2 = 0; } TweenObject.prototype.setInitial = function (initial) { this.initialparam1 = parseFloat(initial.split(",")[0]); this.initialparam2 = parseFloat(initial.split(",")[1]); this.lastKnownValue = 0; this.lastKnownValue2 = 0; } TweenObject.prototype.setTarget = function (target) { this.targetparam1 = parseFloat(target.split(",")[0]); this.targetparam2 = parseFloat(target.split(",")[1]); if (isNaN(this.targetparam2)) this.targetparam2 = this.targetparam1; } TweenObject.prototype.OnTick = function(dt) { if (this.state === 0) return -1.0; if (this.state === 1) this.progress += dt; if (this.state === 2) this.progress -= dt; if (this.state === 3) { this.state = 0; } if ((this.state === 4) || (this.state === 6)) { this.progress += dt * this.pingpong; } if (this.state === 5) { this.progress += dt * this.pingpong; } if (this.progress < 0) { this.progress = 0; if (this.state === 4) { this.pingpong = 1; } else if (this.state === 6) { this.pingpong = 1; this.flipEase = false; } else { this.state = 0; } this.onReverseEnd = true; return 0.0; } else if (this.progress > this.duration) { this.progress = this.duration; if (this.state === 4) { this.pingpong = -1; } else if (this.state === 6) { this.pingpong = -1; this.flipEase = true; } else if (this.state === 5) { this.progress = 0.0; } else { this.state = 0; } this.onEnd = true; return 1.0; } else { if (this.flipEase) { var factor = easeFunc(this.easefunc, this.duration - this.progress, 0, 1, this.duration, this.flipEase, this.easingparam[this.easefunc]); } else { var factor = easeFunc(this.easefunc, this.progress, 0, 1, this.duration, this.flipEase, this.easingparam[this.easefunc]); } return factor; } }; }()); ; ; function trim (str) { return str.replace(/^\s\s*/, '').replace(/\s\s*$/, ''); } cr.behaviors.lunarray_LiteTween = function(runtime) { this.runtime = runtime; }; (function () { var behaviorProto = cr.behaviors.lunarray_LiteTween.prototype; behaviorProto.Type = function(behavior, objtype) { this.behavior = behavior; this.objtype = objtype; this.runtime = behavior.runtime; }; var behtypeProto = behaviorProto.Type.prototype; behtypeProto.onCreate = function() { }; behaviorProto.Instance = function(type, inst) { this.type = type; this.behavior = type.behavior; this.inst = inst; // associated object instance to modify this.runtime = type.runtime; this.i = 0; // progress }; var behinstProto = behaviorProto.Instance.prototype; behinstProto.onCreate = function() { this.playmode = this.properties[0]; this.active = (this.playmode == 1) || (this.playmode == 2) || (this.playmode == 3) || (this.playmode == 4); this.tweened = this.properties[1]; // 0=Position|1=Size|2=Width|3=Height|4=Angle|5=Opacity|6=Value only|7=Horizontal|8=Vertical|9=Scale this.easing = this.properties[2]; this.target = this.properties[3]; this.targetmode = this.properties[4]; this.useCurrent = false; if (this.targetmode === 1) this.target = "relative("+this.target+")"; this.duration = this.properties[5]; this.enforce = (this.properties[6] === 1); this.value = 0; this.tween_list = {}; this.addToTweenList("default", this.tweened, this.easing, "current", this.target, this.duration, this.enforce); if (this.properties[0] === 1) this.startTween(0) if (this.properties[0] === 2) this.startTween(2) if (this.properties[0] === 3) this.startTween(3) if (this.properties[0] === 4) this.startTween(4) }; behinstProto.parseCurrent = function(tweened, parseText) { if (parseText === undefined) parseText = "current"; var parsed = trim(parseText); parseText = trim(parseText); var value = this.value; if (parseText === "current") { switch (tweened) { case 0: parsed = this.inst.x + "," + this.inst.y; break; case 1: parsed = this.inst.width + "," + this.inst.height; break; case 2: parsed = this.inst.width + "," + this.inst.height; break; case 3: parsed = this.inst.width + "," + this.inst.height; break; case 4: parsed = cr.to_degrees(this.inst.angle) + "," + cr.to_degrees(this.inst.angle); break; case 5: parsed = (this.inst.opacity*100) + "," + (this.inst.opacity*100); break; case 6: parsed = value + "," + value; break; case 7: parsed = this.inst.x + "," + this.inst.y; break; case 8: parsed = this.inst.x + "," + this.inst.y; break; case 9: if (this.inst.curFrame !== undefined) parsed = (this.inst.width/this.inst.curFrame.width) + "," +(this.inst.height/this.inst.curFrame.height) else parsed = "1,1"; break; default: break; } } if (parseText.substring(0,8) === "relative") { var param1 = parseText.match(/\((.*?)\)/); if (param1) { var relativex = parseFloat(param1[1].split(",")[0]); var relativey = parseFloat(param1[1].split(",")[1]); } if (isNaN(relativex)) relativex = 0; if (isNaN(relativey)) relativey = 0; switch (tweened) { case 0: parsed = (this.inst.x+relativex) + "," + (this.inst.y+relativey); break; case 1: parsed = (this.inst.width+relativex) + "," + (this.inst.height+relativey); break; case 2: parsed = (this.inst.width+relativex) + "," + (this.inst.height+relativey); break; case 3: parsed = (this.inst.width+relativex) + "," + (this.inst.height+relativey); break; case 4: parsed = (cr.to_degrees(this.inst.angle)+relativex) + "," + (cr.to_degrees(this.inst.angle)+relativey); break; case 5: parsed = (this.inst.opacity*100+relativex) + "," + (this.inst.opacity*100+relativey); break; case 6: parsed = value+relativex + "," + value+relativex; break; case 7: parsed = (this.inst.x+relativex) + "," + (this.inst.y); break; case 8: parsed = (this.inst.x) + "," + (this.inst.y+relativex); break; case 9: parsed = (relativex) + "," + (relativey); break; default: break; } } return parsed; }; behinstProto.addToTweenList = function(tname, tweened, easing, init, targ, duration, enforce) { init = this.parseCurrent(tweened, init); targ = this.parseCurrent(tweened, targ); if (this.tween_list[tname] !== undefined) { delete this.tween_list[tname] } this.tween_list[tname] = new TweenObject(tname, tweened, easing, init, targ, duration, enforce); this.tween_list[tname].dt = 0; }; behinstProto.saveToJSON = function () { var v = JSON.stringify(this.tween_list["default"]); return { "playmode": this.playmode, "active": this.active, "tweened": this.tweened, "easing": this.easing, "target": this.target, "targetmode": this.targetmode, "useCurrent": this.useCurrent, "duration": this.duration, "enforce": this.enforce, "value": this.value, "tweenlist": JSON.stringify(this.tween_list["default"]) }; }; TweenObject.Load = function(rawObj, tname, tweened, easing, init, targ, duration, enforce) { var obj = new TweenObject(tname, tweened, easing, init, targ, duration, enforce); for(var i in rawObj) obj[i] = rawObj[i]; return obj; }; behinstProto.loadFromJSON = function (o) { var x = JSON.parse(o["tweenlist"]); var tempObj = TweenObject.Load(x, x.name, x.tweened, x.easefunc, x.initialparam1+","+x.initialparam2, x.targetparam1+","+x.targetparam2, x.duration, x.enforce); this.tween_list["default"] = tempObj; this.playmode = o["playmode"]; this.active = o["active"]; this.movement = o["tweened"]; this.easing = o["easing"]; this.target = o["target"]; this.targetmode = o["targetmode"]; this.useCurrent = o["useCurrent"]; this.duration = o["duration"]; this.enforce = o["enforce"]; this.value = o["value"]; }; behinstProto.setProgressTo = function (mark) { if (mark > 1.0) mark = 1.0; if (mark < 0.0) mark = 0.0; for (var i in this.tween_list) { var inst = this.tween_list[i]; inst.lastKnownValue = 0; inst.lastKnownValue2 = 0; inst.state = 3; inst.progress = mark * inst.duration; var factor = inst.OnTick(0); this.updateTween(inst, factor); } } behinstProto.startTween = function (startMode) { for (var i in this.tween_list) { var inst = this.tween_list[i]; if (this.useCurrent) { var init = this.parseCurrent(inst.tweened, "current"); var target = this.parseCurrent(inst.tweened, this.target); inst.setInitial(init); inst.setTarget(target); } if (startMode === 0) { inst.progress = 0.000001; inst.lastKnownValue = 0; inst.lastKnownValue2 = 0; inst.onStart = true; inst.state = 1; } if (startMode === 1) { inst.state = inst.lastState; } if ((startMode === 2) || (startMode === 4)) { inst.progress = 0.000001; inst.lastKnownValue = 0; inst.lastKnownValue2 = 0; inst.onStart = true; if (startMode == 2) inst.state = 4; //state ping pong if (startMode == 4) inst.state = 6; //state flip flop } if (startMode === 3) { inst.progress = 0.000001; inst.lastKnownValue = 0; inst.lastKnownValue2 = 0; inst.onStart = true; inst.state = 5; } } } behinstProto.stopTween = function (stopMode) { for (var i in this.tween_list) { var inst = this.tween_list[i]; if ((inst.state != 3) && (inst.state != 0)) //don't save paused/seek state inst.lastState = inst.state; if (stopMode === 1) inst.progress = 0.0; if (stopMode === 2) inst.progress = inst.duration; inst.state = 3; var factor = inst.OnTick(0); this.updateTween(inst, factor); } } behinstProto.reverseTween = function(reverseMode) { for (var i in this.tween_list) { var inst = this.tween_list[i]; if (reverseMode === 1) { inst.progress = inst.duration; inst.lastKnownValue = 0; inst.lastKnownValue2 = 0; inst.onReverseStart = true; } inst.state = 2; } } behinstProto.updateTween = function (inst, factor) { if (inst.tweened === 0) { if (inst.enforce) { this.inst.x = inst.initialparam1 + (inst.targetparam1 - inst.initialparam1) * factor; this.inst.y = inst.initialparam2 + (inst.targetparam2 - inst.initialparam2) * factor; } else { this.inst.x += ((inst.targetparam1 - inst.initialparam1) * factor) - inst.lastKnownValue; this.inst.y += ((inst.targetparam2 - inst.initialparam2) * factor) - inst.lastKnownValue2; inst.lastKnownValue = ((inst.targetparam1 - inst.initialparam1) * factor); inst.lastKnownValue2 = ((inst.targetparam2 - inst.initialparam2) * factor); } } else if (inst.tweened === 1) { if (inst.enforce) { this.inst.width = (inst.initialparam1 + ((inst.targetparam1 - inst.initialparam1) * (factor))); this.inst.height = (inst.initialparam2 + ((inst.targetparam2 - inst.initialparam2) * (factor))); } else { this.inst.width += ((inst.targetparam1 - inst.initialparam1) * factor) - inst.lastKnownValue; this.inst.height += ((inst.targetparam2 - inst.initialparam2) * factor) - inst.lastKnownValue2; inst.lastKnownValue = ((inst.targetparam1 - inst.initialparam1) * factor); inst.lastKnownValue2 = ((inst.targetparam2 - inst.initialparam2) * factor); } } else if (inst.tweened === 2) { if (inst.enforce) { this.inst.width = (inst.initialparam1 + ((inst.targetparam1 - inst.initialparam1) * (factor))); } else { this.inst.width += ((inst.targetparam1 - inst.initialparam1) * factor) - inst.lastKnownValue; inst.lastKnownValue = ((inst.targetparam1 - inst.initialparam1) * factor); } } else if (inst.tweened === 3) { if (inst.enforce) { this.inst.height = (inst.initialparam2 + ((inst.targetparam2 - inst.initialparam2) * (factor))); } else { this.inst.height += ((inst.targetparam2 - inst.initialparam2) * factor) - inst.lastKnownValue2; inst.lastKnownValue2 = ((inst.targetparam2 - inst.initialparam2) * factor); } } else if (inst.tweened === 4) { if (inst.enforce) { var tangle = inst.initialparam1 + (inst.targetparam1 - inst.initialparam1) * factor; this.inst.angle = cr.clamp_angle(cr.to_radians(tangle)); } else { var tangle = ((inst.targetparam1 - inst.initialparam1) * factor) - inst.lastKnownValue; this.inst.angle = cr.clamp_angle(this.inst.angle + cr.to_radians(tangle)); inst.lastKnownValue = (inst.targetparam1 - inst.initialparam1) * factor; } } else if (inst.tweened === 5) { if (inst.enforce) { this.inst.opacity = (inst.initialparam1 + (inst.targetparam1 - inst.initialparam1) * factor) / 100; } else { this.inst.opacity += (((inst.targetparam1 - inst.initialparam1) * factor) - inst.lastKnownValue) / 100; inst.lastKnownValue = ((inst.targetparam1 - inst.initialparam1) * factor); } } else if (inst.tweened === 6) { if (inst.enforce) { this.value = (inst.initialparam1 + (inst.targetparam1 - inst.initialparam1) * factor); } else { this.value += (((inst.targetparam1 - inst.initialparam1) * factor) - inst.lastKnownValue); inst.lastKnownValue = ((inst.targetparam1 - inst.initialparam1) * factor); } } else if (inst.tweened === 7) { if (inst.enforce) { this.inst.x = inst.initialparam1 + (inst.targetparam1 - inst.initialparam1) * factor; } else { this.inst.x += ((inst.targetparam1 - inst.initialparam1) * factor) - inst.lastKnownValue; inst.lastKnownValue = ((inst.targetparam1 - inst.initialparam1) * factor); } } else if (inst.tweened === 8) { if (inst.enforce) { this.inst.y = inst.initialparam2 + (inst.targetparam2 - inst.initialparam2) * factor; } else { this.inst.y += ((inst.targetparam2 - inst.initialparam2) * factor) - inst.lastKnownValue2; inst.lastKnownValue2 = ((inst.targetparam2 - inst.initialparam2) * factor); } } else if (inst.tweened === 9) { var scalex = inst.initialparam1 + (inst.targetparam1 - inst.initialparam1) * factor; var scaley = inst.initialparam2 + (inst.targetparam2 - inst.initialparam2) * factor; if (this.inst.width < 0) scalex = inst.initialparam1 + (inst.targetparam1 + inst.initialparam1) * -factor; if (this.inst.height < 0) scaley = inst.initialparam2 + (inst.targetparam2 + inst.initialparam2) * -factor; if (inst.enforce) { this.inst.width = this.inst.curFrame.width * scalex; this.inst.height = this.inst.curFrame.height * scaley; } else { if (this.inst.width < 0) { this.inst.width = scalex * (this.inst.width / (-1+inst.lastKnownValue)); inst.lastKnownValue = scalex + 1 } else { this.inst.width = scalex * (this.inst.width / (1+inst.lastKnownValue)); inst.lastKnownValue = scalex - 1; } if (this.inst.height < 0) { this.inst.height = scaley * (this.inst.height / (-1+inst.lastKnownValue2)); inst.lastKnownValue2 = scaley + 1 } else { this.inst.height = scaley * (this.inst.height / (1+inst.lastKnownValue2)); inst.lastKnownValue2 = scaley - 1; } } } this.inst.set_bbox_changed(); } behinstProto.tick = function () { var dt = this.runtime.getDt(this.inst); var inst = this.tween_list["default"]; if (inst.state !== 0) { if (inst.onStart) { this.runtime.trigger(cr.behaviors.lunarray_LiteTween.prototype.cnds.OnStart, this.inst); inst.onStart = false; } if (inst.onReverseStart) { this.runtime.trigger(cr.behaviors.lunarray_LiteTween.prototype.cnds.OnReverseStart, this.inst); inst.onReverseStart = false; } this.active = (inst.state == 1) || (inst.state == 2) || (inst.state == 4) || (inst.state == 5) || (inst.state == 6); var factor = inst.OnTick(dt); this.updateTween(inst, factor); if (inst.onEnd) { this.runtime.trigger(cr.behaviors.lunarray_LiteTween.prototype.cnds.OnEnd, this.inst); inst.onEnd = false; } if (inst.onReverseEnd) { this.runtime.trigger(cr.behaviors.lunarray_LiteTween.prototype.cnds.OnReverseEnd, this.inst); inst.onReverseEnd = false; } } }; behaviorProto.cnds = {}; var cnds = behaviorProto.cnds; cnds.IsActive = function () { return (this.tween_list["default"].state !== 0); }; cnds.IsReversing = function () { return (this.tween_list["default"].state == 2); }; cnds.CompareProgress = function (cmp, v) { var inst = this.tween_list["default"]; return cr.do_cmp((inst.progress / inst.duration), cmp, v); }; cnds.OnThreshold = function (cmp, v) { var inst = this.tween_list["default"]; this.threshold = (cr.do_cmp((inst.progress / inst.duration), cmp, v)); var ret = (this.oldthreshold != this.threshold) && (this.threshold); if (ret) { this.oldthreshold = this.threshold; } return ret; }; cnds.OnStart = function () { if (this.tween_list["default"] === undefined) return false; return this.tween_list["default"].onStart; }; cnds.OnReverseStart = function () { if (this.tween_list["default"] === undefined) return false; return this.tween_list["default"].onReverseStart; }; cnds.OnEnd = function () { if (this.tween_list["default"] === undefined) return false; return this.tween_list["default"].onEnd; }; cnds.OnReverseEnd = function () { if (this.tween_list["default"] === undefined) return false; return this.tween_list["default"].onReverseEnd; }; behaviorProto.acts = {}; var acts = behaviorProto.acts; acts.Start = function (startmode, current) { this.threshold = false; this.oldthreshold = false; this.useCurrent = (current == 1); this.startTween(startmode); }; acts.Stop = function (stopmode) { this.stopTween(stopmode); }; acts.Reverse = function (revMode) { this.threshold = false; this.oldthreshold = false; this.reverseTween(revMode); }; acts.ProgressTo = function (progress) { this.setProgressTo(progress); }; acts.SetDuration = function (x) { if (isNaN(x)) return; if (x < 0) return; if (this.tween_list["default"] === undefined) return; this.tween_list["default"].duration = x; }; acts.SetEnforce = function (x) { if (this.tween_list["default"] === undefined) return; this.tween_list["default"].enforce = (x===1); }; acts.SetInitial = function (x) { if (this.tween_list["default"] === undefined) return; var init = this.parseCurrent(this.tween_list["default"].tweened, x); this.tween_list["default"].setInitial(init); }; acts.SetTarget = function (targettype, absrel, x) { if (this.tween_list["default"] === undefined) return; if (isNaN(x)) return; var inst = this.tween_list["default"]; var parsed = x + ""; this.targetmode = absrel; var x1 = ""; var x2 = ""; if (absrel === 1) { this.target = "relative(" + parsed + ")"; switch (targettype) { case 0: x1 = (this.inst.x + x); x2 = inst.targetparam2; break; case 1: x1 = inst.targetparam1; x2 = (this.inst.y + x); break; case 2: x1 = "" + cr.to_degrees(this.inst.angle + cr.to_radians(x)); x2 = x1; break; //angle case 3: x1 = "" + (this.inst.opacity*100) + x; x2 = x1; break; //opacity case 4: x1 = (this.inst.width + x); x2 = inst.targetparam2; break; //width case 5: x1 = inst.targetparam1; x2 = (this.inst.height + x); break; //height case 6: x1 = x; x2 = x; break; //value default: break; } parsed = x1 + "," + x2; } else { switch (targettype) { case 0: x1 = x; x2 = inst.targetparam2; break; case 1: x1 = inst.targetparam1; x2 = x; break; case 2: x1 = x; x2 = x; break; //angle case 3: x1 = x; x2 = x; break; //opacity case 4: x1 = x; x2 = inst.targetparam2; break; //width case 5: x1 = inst.targetparam1; x2 = x; break; //height case 6: x1 = x; x2 = x; break; //value default: break; } parsed = x1 + "," + x2; this.target = parsed; } var init = this.parseCurrent(this.tween_list["default"].tweened, "current"); var targ = this.parseCurrent(this.tween_list["default"].tweened, parsed); inst.setInitial(init); inst.setTarget(targ); }; acts.SetTweenedProperty = function (x) { if (this.tween_list["default"] === undefined) return; this.tween_list["default"].tweened = x; }; acts.SetEasing = function (x) { if (this.tween_list["default"] === undefined) return; this.tween_list["default"].easefunc = x; }; acts.SetEasingParam = function (x, a, p, t, s) { if (this.tween_list["default"] === undefined) return; this.tween_list["default"].easingparam[x].optimized = false; this.tween_list["default"].easingparam[x].a = a; this.tween_list["default"].easingparam[x].p = p; this.tween_list["default"].easingparam[x].t = t; this.tween_list["default"].easingparam[x].s = s; }; acts.ResetEasingParam = function () { if (this.tween_list["default"] === undefined) return; this.tween_list["default"].optimized = true; }; acts.SetValue = function (x) { var inst = this.tween_list["default"]; this.value = x; if (inst.tweened === 6) inst.setInitial( this.parseCurrent(inst.tweened, "current") ); }; acts.SetParameter = function (tweened, easefunction, target, duration, enforce) { if (this.tween_list["default"] === undefined) { this.addToTweenList("default", tweened, easefunction, initial, target, duration, enforce, 0); } else { var inst = this.tween_list["default"]; inst.tweened = tweened; inst.easefunc = easefunction; inst.setInitial( this.parseCurrent(tweened, "current") ); inst.setTarget( this.parseCurrent(tweened, target) ); inst.duration = duration; inst.enforce = (enforce === 1); } }; behaviorProto.exps = {}; var exps = behaviorProto.exps; exps.State = function (ret) { var parsed = "N/A"; switch (this.tween_list["default"].state) { case 0: parsed = "paused"; break; case 1: parsed = "playing"; break; case 2: parsed = "reversing"; break; case 3: parsed = "seeking"; break; default: break; } ret.set_string(parsed); }; exps.Progress = function (ret) { var progress = this.tween_list["default"].progress/this.tween_list["default"].duration; ret.set_float(progress); }; exps.Duration = function (ret) { ret.set_float(this.tween_list["default"].duration); }; exps.Target = function (ret) { var inst = this.tween_list["default"]; var parsed = "N/A"; switch (inst.tweened) { case 0: parsed = inst.targetparam1; break; case 1: parsed = inst.targetparam2; break; case 2: parsed = inst.targetparam1; break; case 3: parsed = inst.targetparam1; break; case 4: parsed = inst.targetparam1; break; case 5: parsed = inst.targetparam2; break; case 6: parsed = inst.targetparam1; break; default: break; } ret.set_float(parsed); }; exps.Value = function (ret) { var tval = this.value; ret.set_float(tval); }; exps.Tween = function (ret, a_, b_, x_, easefunc_) { var currX = (x_>1.0?1.0:x_); var factor = easeFunc(easefunc_, currX<0.0?0.0:currX, 0.0, 1.0, 1.0, false, false); ret.set_float(a_ + factor * (b_-a_)); }; }()); ; ; cr.behaviors.scrollto = function(runtime) { this.runtime = runtime; this.shakeMag = 0; this.shakeStart = 0; this.shakeEnd = 0; this.shakeMode = 0; }; (function () { var behaviorProto = cr.behaviors.scrollto.prototype; behaviorProto.Type = function(behavior, objtype) { this.behavior = behavior; this.objtype = objtype; this.runtime = behavior.runtime; }; var behtypeProto = behaviorProto.Type.prototype; behtypeProto.onCreate = function() { }; behaviorProto.Instance = function(type, inst) { this.type = type; this.behavior = type.behavior; this.inst = inst; // associated object instance to modify this.runtime = type.runtime; }; var behinstProto = behaviorProto.Instance.prototype; behinstProto.onCreate = function() { this.enabled = (this.properties[0] !== 0); }; behinstProto.saveToJSON = function () { return { "smg": this.behavior.shakeMag, "ss": this.behavior.shakeStart, "se": this.behavior.shakeEnd, "smd": this.behavior.shakeMode }; }; behinstProto.loadFromJSON = function (o) { this.behavior.shakeMag = o["smg"]; this.behavior.shakeStart = o["ss"]; this.behavior.shakeEnd = o["se"]; this.behavior.shakeMode = o["smd"]; }; behinstProto.tick = function () { }; function getScrollToBehavior(inst) { var i, len, binst; for (i = 0, len = inst.behavior_insts.length; i < len; ++i) { binst = inst.behavior_insts[i]; if (binst.behavior instanceof cr.behaviors.scrollto) return binst; } return null; }; behinstProto.tick2 = function () { if (!this.enabled) return; var all = this.behavior.my_instances.valuesRef(); var sumx = 0, sumy = 0; var i, len, binst, count = 0; for (i = 0, len = all.length; i < len; i++) { binst = getScrollToBehavior(all[i]); if (!binst || !binst.enabled) continue; sumx += all[i].x; sumy += all[i].y; ++count; } var layout = this.inst.layer.layout; var now = this.runtime.kahanTime.sum; var offx = 0, offy = 0; if (now >= this.behavior.shakeStart && now < this.behavior.shakeEnd) { var mag = this.behavior.shakeMag * Math.min(this.runtime.timescale, 1); if (this.behavior.shakeMode === 0) mag *= 1 - (now - this.behavior.shakeStart) / (this.behavior.shakeEnd - this.behavior.shakeStart); var a = Math.random() * Math.PI * 2; var d = Math.random() * mag; offx = Math.cos(a) * d; offy = Math.sin(a) * d; } layout.scrollToX(sumx / count + offx); layout.scrollToY(sumy / count + offy); }; function Acts() {}; Acts.prototype.Shake = function (mag, dur, mode) { this.behavior.shakeMag = mag; this.behavior.shakeStart = this.runtime.kahanTime.sum; this.behavior.shakeEnd = this.behavior.shakeStart + dur; this.behavior.shakeMode = mode; }; Acts.prototype.SetEnabled = function (e) { this.enabled = (e !== 0); }; behaviorProto.acts = new Acts(); }()); ; ; cr.behaviors.skymenTsr = function(runtime) { this.runtime = runtime; }; (function () { var behaviorProto = cr.behaviors.skymenTsr.prototype; behaviorProto.Type = function(behavior, objtype) { this.behavior = behavior; this.objtype = objtype; this.runtime = behavior.runtime; }; var behtypeProto = behaviorProto.Type.prototype; behtypeProto.onCreate = function() { }; behaviorProto.Instance = function(type, inst) { this.type = type; this.behavior = type.behavior; this.inst = inst; // associated object instance to modify this.runtime = type.runtime; }; var behinstProto = behaviorProto.Instance.prototype; behinstProto.onCreate = function() { this.defaultTimescale = this.properties[0]; this.Ratio = this.properties[2]; this.Enabled = this.properties[3] == 0; this.GTS = this.runtime.timescale; this.dgts = this.properties[1]; this.update(); }; behinstProto.onDestroy = function () { }; behinstProto.saveToJSON = function () { return { "defaultTimescale": this.defaultTimescale, "Ratio" : this.Ratio, "Enabled": this.Enabled, "dgts": this.dgts }; }; behinstProto.loadFromJSON = function (o) { this.defaultTimescale = o["defaultTimescale"]; this.Ratio = o["Ratio"]; this.Enabled = o["Enabled"]; this.dgts = o["dgts"]; this.update(); }; behinstProto.update = function() { var ratio = this.Ratio; var ts = this.defaultTimescale; var en = this.Enabled; var gts = this.GTS; var dgts = this.dgts if (en){ this.inst.my_timescale = (gts-dgts) * ratio + ts; } else{ this.inst.my_timescale = -1; } } behinstProto.tick = function () { if (this.GTS === this.runtime.timescale){ return } this.GTS = this.runtime.timescale; this.update(); }; function Cnds() {}; Cnds.prototype.IsEnabled = function () { return this.Enabled; }; Cnds.prototype.CompareDTS = function (cmp, v) { return cr.do_cmp(this.defaultTimescale, cmp, v); }; Cnds.prototype.CompareGTS = function (cmp, v) { return cr.do_cmp(this.dgts, cmp, v); }; Cnds.prototype.CompareRatio = function (cmp, v) { return cr.do_cmp(this.Ratio, cmp, v); }; behaviorProto.cnds = new Cnds(); function Acts() {}; Acts.prototype.SetEnabled = function (value) { if(value == 0) this.Enabled = true; else this.Enabled = false; this.update(); }; Acts.prototype.SetRatio = function (value) { this.Ratio = value; this.update(); }; Acts.prototype.SetTimescale = function (value) { this.defaultTimescale = value; this.update(); }; Acts.prototype.SetGlobalTimescale = function (value) { this.dgts = value; this.update(); }; behaviorProto.acts = new Acts(); function Exps() {}; Exps.prototype.GetRatio = function (ret) // 'ret' must always be the first parameter - always return the expression's result through it! { ret.set_float(this.Ratio); }; Exps.prototype.GetTimescale = function (ret) // 'ret' must always be the first parameter - always return the expression's result through it! { ret.set_float(this.defaultTimescale); }; Exps.prototype.Ratio = function (ret) // 'ret' must always be the first parameter - always return the expression's result through it! { ret.set_float(this.Ratio); }; Exps.prototype.Timescale = function (ret) // 'ret' must always be the first parameter - always return the expression's result through it! { ret.set_float(this.defaultTimescale); }; Exps.prototype.GlobalTimescale = function (ret) // 'ret' must always be the first parameter - always return the expression's result through it! { ret.set_float(this.dgts); }; Exps.prototype.Status = function (ret) // 'ret' must always be the first parameter - always return the expression's result through it! { if(this.Enabled) ret.set_string("Enabled"); else ret.set_string("Disabled"); }; behaviorProto.exps = new Exps(); }()); ; ; cr.behaviors.solid = function(runtime) { this.runtime = runtime; }; (function () { var behaviorProto = cr.behaviors.solid.prototype; behaviorProto.Type = function(behavior, objtype) { this.behavior = behavior; this.objtype = objtype; this.runtime = behavior.runtime; }; var behtypeProto = behaviorProto.Type.prototype; behtypeProto.onCreate = function() { }; behaviorProto.Instance = function(type, inst) { this.type = type; this.behavior = type.behavior; this.inst = inst; // associated object instance to modify this.runtime = type.runtime; }; var behinstProto = behaviorProto.Instance.prototype; behinstProto.onCreate = function() { this.inst.extra["solidEnabled"] = (this.properties[0] !== 0); }; behinstProto.tick = function () { }; function Cnds() {}; Cnds.prototype.IsEnabled = function () { return this.inst.extra["solidEnabled"]; }; behaviorProto.cnds = new Cnds(); function Acts() {}; Acts.prototype.SetEnabled = function (e) { this.inst.extra["solidEnabled"] = !!e; }; behaviorProto.acts = new Acts(); }()); cr.getObjectRefTable = function () { return [ cr.plugins_.Dictionary, cr.plugins_.Audio, cr.plugins_.Browser, cr.plugins_.hmmg_layoutTransition, cr.plugins_.Keyboard, cr.plugins_.Function, cr.plugins_.Spritefont2, cr.plugins_.Sprite, cr.plugins_.Rex_NWjsExt, cr.plugins_.Rex_TimeLine, cr.plugins_.Mouse, cr.plugins_.LocalStorage, cr.plugins_.rojo_spritesheet, cr.plugins_.Rex_SimulateInput, cr.plugins_.TiledSprite, cr.plugins_.Tilemap, cr.plugins_.TiledBg, cr.behaviors.Platform, cr.behaviors.Rex_Revive, cr.behaviors.lunarray_LiteTween, cr.behaviors.solid, cr.behaviors.Timer, cr.behaviors.jumpthru, cr.behaviors.Pin, cr.behaviors.AnpurStateMachine, cr.behaviors.scrollto, cr.behaviors.Flash, cr.behaviors.Persist, cr.behaviors.Physics, cr.behaviors.skymenTsr, cr.plugins_.Sprite.prototype.cnds.OnDestroyed, cr.plugins_.Sprite.prototype.cnds.IsVisible, cr.plugins_.Sprite.prototype.cnds.IsOverlapping, cr.plugins_.Tilemap.prototype.acts.EraseTile, cr.plugins_.Tilemap.prototype.exps.PositionToTileX, cr.plugins_.Sprite.prototype.exps.X, cr.plugins_.Tilemap.prototype.exps.PositionToTileY, cr.plugins_.Sprite.prototype.exps.Y, cr.system_object.prototype.cnds.IsGroupActive, cr.system_object.prototype.cnds.ForEach, cr.plugins_.Sprite.prototype.cnds.CompareInstanceVar, cr.behaviors.AnpurStateMachine.prototype.cnds.InMachineState, cr.plugins_.Sprite.prototype.cnds.IsMirrored, cr.plugins_.Sprite.prototype.cnds.IsOverlappingOffset, cr.plugins_.Sprite.prototype.acts.SetAnim, cr.plugins_.Audio.prototype.acts.Play, cr.behaviors.AnpurStateMachine.prototype.acts.SetState, cr.plugins_.Sprite.prototype.acts.SetInstanceVar, cr.behaviors.Platform.prototype.acts.SetVectorX, cr.plugins_.Function.prototype.acts.CallFunction, cr.behaviors.Platform.prototype.acts.SetVectorY, cr.system_object.prototype.cnds.Compare, cr.behaviors.Platform.prototype.cnds.IsOnFloor, cr.behaviors.Platform.prototype.cnds.IsJumping, cr.plugins_.Sprite.prototype.acts.SetY, cr.plugins_.Sprite.prototype.acts.SetX, cr.plugins_.Sprite.prototype.acts.SetOpacity, cr.behaviors.Platform.prototype.acts.SetDeceleration, cr.behaviors.Platform.prototype.acts.SetGravity, cr.behaviors.solid.prototype.acts.SetEnabled, cr.plugins_.TiledSprite.prototype.exps.Y, cr.behaviors.Platform.prototype.exps.VectorY, cr.plugins_.Sprite.prototype.cnds.IsAnimPlaying, cr.plugins_.Sprite.prototype.cnds.IsOnScreen, cr.plugins_.Sprite.prototype.acts.Destroy, cr.plugins_.Sprite.prototype.acts.SetCollisions, cr.behaviors.Platform.prototype.acts.SetEnabled, cr.behaviors.AnpurStateMachine.prototype.cnds.OnStateEntering, cr.plugins_.Sprite.prototype.cnds.OnCreated, cr.plugins_.Sprite.prototype.acts.Spawn, cr.behaviors.Platform.prototype.acts.SetMaxSpeed, cr.behaviors.Platform.prototype.acts.SimulateControl, cr.plugins_.Sprite.prototype.exps.Width, cr.plugins_.Sprite.prototype.exps.Height, cr.plugins_.Sprite.prototype.exps.UID, cr.plugins_.Sprite.prototype.cnds.OnCollision, cr.plugins_.Sprite.prototype.acts.SetMirrored, cr.plugins_.Sprite.prototype.acts.SetPos, cr.plugins_.Sprite.prototype.exps.ImagePointX, cr.system_object.prototype.cnds.EveryTick, cr.system_object.prototype.exps.dt, cr.behaviors.Platform.prototype.acts.SetAcceleration, cr.behaviors.Platform.prototype.acts.SetJumpStrength, cr.system_object.prototype.acts.AddVar, cr.system_object.prototype.exps.choose, cr.plugins_.Sprite.prototype.cnds.OnAnimFinished, cr.plugins_.Sprite.prototype.exps.AnimationName, cr.plugins_.Audio.prototype.cnds.IsTagPlaying, cr.plugins_.Keyboard.prototype.cnds.OnKeyCode, cr.plugins_.Sprite.prototype.acts.MoveToTop, cr.system_object.prototype.acts.Wait, cr.system_object.prototype.cnds.CompareVar, cr.system_object.prototype.acts.SetVar, cr.behaviors.Platform.prototype.cnds.IsMoving, cr.behaviors.Timer.prototype.acts.StartTimer, cr.plugins_.Sprite.prototype.acts.SetPosToObject, cr.behaviors.Platform.prototype.acts.FallThrough, cr.behaviors.Platform.prototype.cnds.IsByWall, cr.behaviors.Rex_Revive.prototype.acts.SetReviveTime, cr.behaviors.Timer.prototype.cnds.OnTimer, cr.behaviors.Platform.prototype.cnds.OnLand, cr.behaviors.Rex_Revive.prototype.cnds.OnRevive, cr.plugins_.Sprite.prototype.acts.MoveToBottom, cr.behaviors.Timer.prototype.acts.StopTimer, cr.behaviors.Pin.prototype.acts.Pin, cr.plugins_.Sprite.prototype.cnds.CompareY, cr.plugins_.Sprite.prototype.cnds.CompareX, cr.plugins_.Sprite.prototype.acts.SetVisible, cr.plugins_.Keyboard.prototype.cnds.IsKeyCodeDown, cr.behaviors.lunarray_LiteTween.prototype.acts.Start, cr.system_object.prototype.acts.GoToLayoutByName, cr.plugins_.Audio.prototype.acts.Stop, cr.plugins_.Sprite.prototype.acts.ZMoveToObject, cr.behaviors.lunarray_LiteTween.prototype.acts.SetDuration, cr.system_object.prototype.cnds.OnLayoutStart, cr.behaviors.lunarray_LiteTween.prototype.acts.ProgressTo, cr.behaviors.lunarray_LiteTween.prototype.acts.Reverse, cr.behaviors.lunarray_LiteTween.prototype.cnds.OnReverseEnd, cr.plugins_.Sprite.prototype.acts.MoveToLayer, cr.plugins_.Function.prototype.cnds.OnFunction, cr.plugins_.hmmg_layoutTransition.prototype.acts.exitTransition, cr.plugins_.hmmg_layoutTransition.prototype.acts.entranceTransition, cr.plugins_.Audio.prototype.cnds.OnEnded, cr.behaviors.lunarray_LiteTween.prototype.cnds.IsActive, cr.behaviors.lunarray_LiteTween.prototype.cnds.IsReversing, cr.plugins_.Sprite.prototype.acts.SetBoolInstanceVar, cr.system_object.prototype.cnds.Every, cr.plugins_.Sprite.prototype.acts.SubInstanceVar, cr.plugins_.Sprite.prototype.cnds.IsBoolInstanceVarSet, cr.behaviors.AnpurStateMachine.prototype.cnds.OnStateChange, cr.behaviors.AnpurStateMachine.prototype.exps.State, cr.plugins_.Sprite.prototype.cnds.PickByUID, cr.plugins_.Function.prototype.exps.Param, cr.behaviors.Flash.prototype.cnds.IsFlashing, cr.behaviors.Platform.prototype.cnds.IsFalling, cr.plugins_.Sprite.prototype.acts.SetAnimFrame, cr.system_object.prototype.cnds.Else, cr.system_object.prototype.cnds.PickAll, cr.system_object.prototype.cnds.Repeat, cr.system_object.prototype.exps.left, cr.system_object.prototype.exps.len, cr.system_object.prototype.exps.tokenat, cr.system_object.prototype.exps["float"], cr.plugins_.TiledSprite.prototype.cnds.OnCreated, cr.plugins_.TiledSprite.prototype.acts.MoveToLayer, cr.plugins_.TiledSprite.prototype.acts.MoveToBottom, cr.plugins_.Dictionary.prototype.acts.AddKey, cr.plugins_.LocalStorage.prototype.acts.SetItem, cr.plugins_.Dictionary.prototype.exps.AsJSON, cr.plugins_.LocalStorage.prototype.acts.CheckItemExists, cr.plugins_.Spritefont2.prototype.acts.SetInstanceVar, cr.plugins_.Spritefont2.prototype.acts.SetText, cr.plugins_.Spritefont2.prototype.acts.SetY, cr.plugins_.Spritefont2.prototype.exps.Y, cr.plugins_.Spritefont2.prototype.cnds.CompareInstanceVar, cr.plugins_.Spritefont2.prototype.acts.Destroy, cr.plugins_.LocalStorage.prototype.cnds.OnItemExists, cr.plugins_.Dictionary.prototype.acts.JSONLoad, cr.plugins_.LocalStorage.prototype.exps.ItemValue, cr.plugins_.Dictionary.prototype.exps.Get, cr.behaviors.lunarray_LiteTween.prototype.cnds.OnEnd, cr.plugins_.Sprite.prototype.exps.AnimationFrame, cr.plugins_.Sprite.prototype.acts.SetAnimSpeed, cr.plugins_.Sprite.prototype.acts.StopAnim, cr.behaviors.Physics.prototype.acts.EnableCollisions, cr.behaviors.Physics.prototype.acts.SetWorldGravity, cr.behaviors.Physics.prototype.acts.SetSteppingMode, cr.system_object.prototype.exps.random, cr.behaviors.Physics.prototype.acts.ApplyForce, cr.behaviors.Physics.prototype.acts.ApplyTorque, cr.behaviors.Platform.prototype.cnds.OnJump, cr.system_object.prototype.acts.SubVar, cr.behaviors.Flash.prototype.acts.Flash, cr.plugins_.Sprite.prototype.acts.AddInstanceVar, cr.plugins_.Keyboard.prototype.cnds.OnAnyKey, cr.plugins_.Keyboard.prototype.exps.LastKeyCode, cr.plugins_.Keyboard.prototype.cnds.OnAnyKeyReleased, cr.plugins_.Sprite.prototype.acts.SetEffectParam, cr.behaviors.Platform.prototype.exps.VectorX, cr.plugins_.TiledSprite.prototype.exps.Height, cr.behaviors.AnpurStateMachine.prototype.cnds.OnStateLeaving, cr.system_object.prototype.acts.CreateObject, cr.plugins_.TiledBg.prototype.acts.SetHeight, cr.system_object.prototype.cnds.LayerCmpOpacity, cr.plugins_.Sprite.prototype.acts.SetSize, cr.plugins_.Sprite.prototype.acts.SetScale, cr.system_object.prototype.exps.find, cr.system_object.prototype.exps.layoutname, cr.system_object.prototype.cnds.TriggerOnce, cr.plugins_.Sprite.prototype.exps.AnimationSpeed, cr.system_object.prototype.acts.GoToLayout, cr.plugins_.rojo_spritesheet.prototype.acts.SetSubImage, cr.plugins_.rojo_spritesheet.prototype.exps.offsetX, cr.plugins_.Spritefont2.prototype.exps.X, cr.plugins_.Spritefont2.prototype.exps.Width, cr.plugins_.Spritefont2.prototype.acts.SetVisible, cr.system_object.prototype.exps.projectversion, cr.system_object.prototype.acts.ResetPersisted, cr.system_object.prototype.acts.SetMinimumFramerate, cr.system_object.prototype.exps.lerp, cr.system_object.prototype.acts.SetLayerEffectParam, cr.plugins_.Keyboard.prototype.cnds.OnKey, cr.plugins_.rojo_spritesheet.prototype.acts.Destroy, cr.system_object.prototype.acts.SetTimescale, cr.plugins_.rojo_spritesheet.prototype.exps.offsetY, cr.plugins_.Audio.prototype.acts.Seek, cr.plugins_.Sprite.prototype.cnds.CompareAnimSpeed, cr.plugins_.Sprite.prototype.acts.StartAnim, cr.plugins_.Sprite.prototype.cnds.CompareFrame, cr.plugins_.Dictionary.prototype.cnds.CompareValue, cr.plugins_.Audio.prototype.acts.PlayByName, cr.plugins_.Audio.prototype.acts.SetPaused, cr.system_object.prototype.cnds.OnLayoutEnd, cr.plugins_.Audio.prototype.acts.Preload, cr.system_object.prototype.cnds.OnLoadFinished ];};