Home | History | Annotate | Download | only in poppler

Lines Matching refs:FD

2669         for (var fd = fd_start; fd <= fd_end; fd++) {
2670 if (!FS.streams[fd]) {
2671 return fd;
2675 },getStream:function (fd) {
2676 return FS.streams[fd];
2708 var fd = FS.nextfd(fd_start, fd_end);
2709 stream.fd = fd;
2710 FS.streams[fd] = stream;
2712 },closeStream:function (fd) {
2713 FS.streams[fd] = null;
2988 },fchmod:function (fd, mode) {
2989 var stream = FS.getStream(fd);
3011 },fchown:function (fd, uid, gid) {
3012 var stream = FS.getStream(fd);
3045 },ftruncate:function (fd, len) {
3046 var stream = FS.getStream(fd);
3145 FS.closeStream(stream.fd);
3329 HEAP32[((_stdin)>>2)]=stdin.fd;
3330 assert(stdin.fd === 1, 'invalid handle for stdin (' + stdin.fd + ')');
3333 HEAP32[((_stdout)>>2)]=stdout.fd;
3334 assert(stdout.fd === 2, 'invalid handle for stdout (' + stdout.fd + ')');
3337 HEAP32[((_stderr)>>2)]=stderr.fd;
3338 assert(stderr.fd === 3, 'invalid handle for stderr (' + stderr.fd + ')');
3976 },getSocket:function (fd) {
3977 var stream = FS.getStream(fd);
4422 }}};function _send(fd, buf, len, flags) {
4423 var sock = SOCKFS.getSocket(fd);
4429 return _write(fd, buf, len);
4981 function _recv(fd, buf, len, flags) {
4982 var sock = SOCKFS.getSocket(fd);
4988 return _read(fd, buf, len);
5076 return stream.fd;
5829 return newStream.fd;
7313 function Kd(a){a=a|0;var b=0;b=i;i=i+a|0;i=i+7&-8;return b|0}function Ld(){return i|0}function Md(a){a=a|0;i=a}function Nd(a,b){a=a|0;b=b|0;if((s|0)==0){s=a;t=b}}function Od(b){b=b|0;a[k]=a[b];a[k+1|0]=a[b+1|0];a[k+2|0]=a[b+2|0];a[k+3|0]=a[b+3|0]}function Pd(b){b=b|0;a[k]=a[b];a[k+1|0]=a[b+1|0];a[k+2|0]=a[b+2|0];a[k+3|0]=a[b+3|0];a[k+4|0]=a[b+4|0];a[k+5|0]=a[b+5|0];a[k+6|0]=a[b+6|0];a[k+7|0]=a[b+7|0]}function Qd(a){a=a|0;H=a}function Rd(a){a=a|0;I=a}function Sd(a){a=a|0;J=a}function Td(a){a=a|0;K=a}function Ud(a){a=a|0;L=a}function Vd(a){a=a|0;M=a}function Wd(a){a=a|0;N=a}function Xd(a){a=a|0;O=a}function Yd(a){a=a|0;P=a}function Zd(a){a=a|0;Q=a}function _d(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,j=0,k=0,l=0,m=0,n=0,o=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0.0,x=0.0,y=0.0;e=i;j=i;i=i+24|0;g=j;v=i;i=i+8|0;u=v;r=i;i=i+8|0;q=r;t=i;i=i+8|0;s=t;l=i;i=i+8|0;f=i;i=i+512|0;m=i;i=i+8|0;n=m;o=i;i=i+8|0;c[l>>2]=b;b=ae(8,l,d)|0;if((a[608]&1)!=0){b=(a[616]&1)==0&b}w=+h[78];do{if(w!=0.0){if(!(+h[79]==150.0|+h[80]==150.0)){break}h[79]=w;h[80]=w}}while(0);do{if(b){b=c[l>>2]|0;if((b|0)>3){break}if((a[648]&1)!=0){break}if((a[656]&1)!=0){break}do{if((b|0)>1){q=FW(32)|0;fe(q,c[d+4>>2]|0);if((c[l>>2]|0)!=3){l=q;d=0;break}l=q;d=c[d+8>>2]|0}else{l=0;d=0}}while(0);q=FW(232)|0;Ue(q,0);c[834]=q;do{if((a[872]|0)!=0){if(Af(q,872)|0){break}Rb(888,38,1,c[p>>2]|0)|0}}while(0);do{if((a[928]|0)!=0){if(Bf(c[834]|0,928)|0){break}Rb(944,32,1,c[p>>2]|0)|0}}while(0);do{if((a[984]|0)!=0){if(Cf(c[834]|0,984)|0){break}Rb(1e3,38,1,c[p>>2]|0)|0}}while(0);if((a[1040]&1)!=0){Df(c[834]|0,1)}if((a[1048]|0)==0){q=0}else{q=FW(32)|0;fe(q,1048)}if((a[1088]|0)==0){r=0}else{r=FW(32)|0;fe(r,1088)}if((l|0)==0){l=FW(32)|0;fe(l,1128)}if((te(l,1136)|0)==0){if((l|0)!=0){ke(l);HW(l)}s=FW(32)|0;fe(s,1128)}else{s=l}eg(o,0);l=gg(o,s,q,r,0)|0;fg(o);if((s|0)!=0){ke(s);HW(s)}if((r|0)!=0){ke(r);HW(r)}if((q|0)!=0){ke(q);HW(q)}do{if((a[l+52|0]&1)==0){f=1}else{if((c[286]|0)<1){c[286]=1}o=c[288]|0;if((o|0)<1){k=50}else{if((o|0)>(_f(l)|0)){k=50}}if((k|0)==50){c[288]=_f(l)|0}a[m]=-1;a[n+1|0]=-1;a[n+2|0]=-1;m=FW(256)|0;if((a[608]&1)==0){o=(a[616]&1)!=0?1:2}else{o=0}Mg(m,o,4,0,n,1,1);Qg(m,c[l+28>>2]|0);n=c[290]|0;if((n|0)!=0){c[292]=n;c[294]=n}n=_f(l)|0;if(n>>>0>9){o=1;while(1){o=o+1|0;if(n>>>0>99){n=(n>>>0)/10|0}else{break}}}else{o=1}q=c[286]|0;a:do{if((q|0)<=(c[288]|0)){n=(d|0)==0;while(1){if((a[1184]&1)==0){k=61}else{if((q&1|0)!=0){k=61}}do{if((k|0)==61){k=0;if((a[1192]&1)!=0){if(((q|0)%2|0|0)==1){break}}b=(a[1200]&1)==0;k=($f(l,q)|0)==0;do{if(b){if(k){x=0.0}else{b=c[($f(l,q)|0)+36>>2]|0;x=+h[b+16>>3]- +h[b>>3]}if(($f(l,q)|0)==0){w=0.0;break}b=c[($f(l,q)|0)+36>>2]|0;w=+h[b+24>>3]- +h[b+8>>3]}else{if(k){x=0.0}else{b=c[($f(l,q)|0)+36>>2]|0;x=+h[b+48>>3]- +h[b+32>>3]}if(($f(l,q)|0)==0){w=0.0;break}b=c[($f(l,q)|0)+36>>2]|0;w=+h[b+56>>3]- +h[b+40>>3]}}while(0);k=c[302]|0;do{if((k|0)==0){k=c[304]|0;if((k|0)!=0){h[79]=+(k|0)*72.0/x}k=c[306]|0;if((k|0)==0){y=+h[80];break}else{y=+(k|0)*72.0/w;h[80]=y;break}}else{y=+(k|0)*72.0/(x>w?x:w);h[78]=y;h[80]=y;h[79]=y}}while(0);x=x*(+h[79]/72.0);y=w*(y/72.0);if(($f(l,q)|0)==0){k=81}else{if((c[(c[($f(l,q)|0)+36>>2]|0)+168>>2]|0)==90){k=83}else{k=81}}do{if((k|0)==81){k=0;if(($f(l,q)|0)==0){w=y;break}if((c[(c[($f(l,q)|0)+36>>2]|0)+168>>2]|0)==270){k=83}else{w=y}}}while(0);if((k|0)==83){k=0;w=x;x=y}if(n){$d(l,m,q,c[318]|0,c[320]|0,c[294]|0,c[292]|0,x,w,0);break}if((a[608]&1)==0){r=(a[616]&1)!=0?1256:1264}else{r=1248}c[j>>2]=480;c[g+4>>2]=d;c[g+8>>2]=o;c[g+12>>2]=q;c[g+16>>2]=r;hc(f|0,512,1232,g|0)|0;$d(l,m,q,c[318]|0,c[320]|0,c[294]|0,c[292]|0,x,w,f)}}while(0);if((q|0)>=(c[288]|0)){break a}q=q+1|0}}}while(0);if((m|0)==0){f=0;break}fdb|0;d=d|0;var e=0,f=0,g=0;e=i;a=a+24|0;f=qo(c[a>>2]|0,b)|0;if((f|0)!=0){ke(f);HW(f)}g=c[a>>2]|0;a=FW(32)|0;ie(a,b);f=FW(32)|0;ie(f,d);lo(g,a,f);i=e;return}function $e(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0;e=i;a=a+28|0;f=oo(c[a>>2]|0,b)|0;if((f|0)==0){f=FW(16)|0;wo(f);g=c[a>>2]|0;a=FW(32)|0;ie(a,b);lo(g,a,f)}g=FW(32)|0;ie(g,d);yo(f,g);i=e;return}function af(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;E=i;i=i+8|0;F=i;i=i+8|0;D=i;i=i+8|0;C=D;A=i;i=i+8|0;z=i;i=i+8|0;y=i;i=i+8|0;B=y;x=i;i=i+8|0;w=i;i=i+8|0;u=i;i=i+8|0;v=u;r=i;i=i+8|0;s=i;i=i+8|0;q=i;i=i+8|0;t=q;n=i;i=i+8|0;m=i;i=i+8|0;o=i;i=i+8|0;p=o;h=i;i=i+8|0;j=i;i=i+8|0;l=i;i=i+8|0;k=l;g=i;i=i+8|0;f=i;i=i+8|0;d=i;i=i+8|0;e=d;xt();G=c[a>>2]|0;if((G|0)!=0){Ff(G);HW(G)}G=c[a+4>>2]|0;if((G|0)!=0){ke(G);HW(G)}G=c[a+8>>2]|0;if((G|0)!=0){Ff(G);HW(G)}G=c[a+12>>2]|0;to(G,E);if(uo(G,E,F,C)|0){do{H=c[D>>2]|0;if((H|0)!=0){ke(H);HW(H)}}while(uo(G,E,F,C)|0)}if((G|0)!=0){ko(G);HW(G)}C=c[a+16>>2]|0;to(C,A);if(uo(C,A,z,B)|0){do{D=c[y>>2]|0;if((D|0)!=0){ke(D);HW(D)}}while(uo(C,A,z,B)|0)}if((C|0)!=0){ko(C);HW(C)}y=c[a+20>>2]|0;to(y,x);if(uo(y,x,w,v)|0){do{z=c[u>>2]|0;if((z|0)!=0){Vm(z);HW(z)}}while(uo(y,x,w,v)|0)}if((y|0)!=0){ko(y);HW(y)}v=c[a+24>>2]|0;to(v,r);if(uo(v,r,s,t)|0){do{u=c[q>>2]|0;if((u|0)!=0){ke(u);HW(u)}}while(uo(v,r,s,t)|0)}if((v|0)!=0){ko(v);HW(v)}q=c[a+32>>2]|0;r=q+8|0;t=c[r>>2]|0;if((t|0)>0){s=0;do{u=c[(c[q>>2]|0)+(s<<2)>>2]|0;if((u|0)!=0){ke(u);HW(u);t=c[r>>2]|0}s=s+1|0;}while((s|0)<(t|0))}if((q|0)!=0){xo(q);HW(q)}q=c[a+36>>2]|0;to(q,n);if(uo(q,n,m,p)|0){do{r=c[o>>2]|0;if((r|0)!=0){fdfd[c[(c[d>>2]|0)+4>>2]&511](d);break};case 4:{Fe(c[a+8>>2]|0);break};default:{}}}while(0);c[a>>2]=13;i=b;return}function Pf(a){a=a|0;i=i;return c[32256+(c[a>>2]<<2)>>2]|0}function Qf(b,d){b=b|0;d=d|0;var e=0,f=0,g=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,y=0,z=0,A=0,B=0;e=i;z=i;i=i+8|0;y=z;x=i;i=i+8|0;w=x;n=i;i=i+8|0;o=n;q=i;i=i+8|0;r=q;g=i;i=i+8|0;j=g;p=i;i=i+8|0;s=p;l=i;i=i+8|0;m=l;u=i;i=i+8|0;t=u;A=i;i=i+8|0;v=i;i=i+8|0;B=i;i=i+16|0;f=B;c[B>>2]=13;B=f+8|0;c[B>>2]=0;c[B+4>>2]=0;switch(c[b>>2]|0){case 0:{_c(((a[b+8|0]&1)!=0?32320:32328)|0,d|0)|0;i=e;return};case 2:{B=A;h[k>>3]=+h[b+8>>3];c[B>>2]=c[k>>2];c[B+4>>2]=c[k+4>>2];Gc(d|0,32344,A|0)|0;i=e;return};case 3:{sc(40,d|0)|0;B=c[b+8>>2]|0;Rb(c[B+28>>2]|0,1,c[B+24>>2]|0,d|0)|0;sc(41,d|0)|0;i=e;return};case 1:{c[v>>2]=c[b+8>>2];Gc(d|0,32336,v|0)|0;i=e;return};case 6:{sc(91,d|0)|0;g=c[b>>2]|0;if((g|0)!=6){A=g;B=l;c[B>>2]=A;B=m+4|0;c[B>>2]=6;B=32448;Qe(0,B,m);tc()}n=b+8|0;g=0;while(1){if((g|0)>=(c[(c[n>>2]|0)+12>>2]|0)){b=16;break}if((g|0)>0){sc(32,d|0)|0;j=c[b>>2]|0;if((j|0)!=6){b=14;break}}vt(c[n>>2]|0,g,f)|0;Qf(f,d);Of(f);j=c[b>>2]|0;if((j|0)==6){g=g+1|0}else{b=10;break}}if((b|0)==10){B=l;c[B>>2]=j;B=m+4|0;c[B>>2]=6;B=32448;Qe(0,B,m);tc()}else if((b|0)==14){c[p>>2]=j;c[s+4>>2]=6;Qe(0,32448,s);tc()}else if((b|0)==16){sc(93,d|0)|0;i=e;return}break};case 5:{Rb(32360,4,1,d|0)|0;i=e;return};case 4:{c[u>>2]=c[b+8>>2];Gc(d|0,32352,t|0)|0;i=e;return};case 7:{Rb(32368,2,1,d|0)|0;l=c[b>>2]|0;if((l|0)!=7){A=l;B=g;c[B>>2]=A;B=j+4|0;c[B>>2]=7;B=32448;Qe(0,B,j);tc()}l=b+8|0;m=0;while(1){p=c[l>>2]|0;if((m|0)>=(c[p+16>>2]|0)){b=24;break}c[q>>2]=$u(p,m)|0;Gc(d|0,32376,r|0)|0;p=c[b>>2]|0;if((p|0)!=7){b=22;break}bv(c[l>>2]|0,m,f)|0;Qf(f,d);Of(f);p=c[b>>2]|0;if((p|0)==7){m=m+1|0}else{b=19;break}}if((b|0)==19){B=g;c[B>>2]=p;B=j+4|0;c[B>>2]=7;B=32448;Qe(0,B,j);tc()}else if((b|0)==22){c[n>>2]=p;c[o+4>>2]=7;Qe(0,32448,o);tc()}else if((b|0)==24){Rb(32384,3,1,d|0)|0;i=e;return}break};case 8:{Rb(32392,8,1,d|0)|0;i=e;return};case 11:{Rb(32416,7,1,d|0)|0;i=e;return};case 10:{_c(c[b+8>>2]|0,d|0)|0;i=e;return};case 12:{Rb(32424,5,1,d|0)|0;i=e;return};case 13:{Rb(32432,6,1,d|0)|0;i=e;return};case 9:{A=b+8|0;B=c[A+4>>2]|0;c[x>>2]=c[A>>2];c[w+4>>2]=B;Gc(d|0,32408,w|0)|0;i=e;return};case 14:{c[z>>2]=c[b+8>>2];Gc(d|0,32440,y|0)|0;i=e;return};default:{i=e;return}}}function Rf(a){a=a|0;i=i;return}function Sf(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;l=i;q=i;i=i+8|0;j=q;o=i;i=i+16|0;p=o;t=i;i=i+80|0;c[o>>2]=13;m=p+8|0;c[m>>2]=0;n=m+4|0;c[n>>2]=0;r=b+52|0;a[r]=0;k=b+56|0;c[k>>2]=0;s=b+4|0;c[s>>2]=0;h=b+8|0;c[h>>2]=0;c[b+28>>2]=0;c[b+24>>2]=0;c[b+36>>2]=0;c[b+40>>2]=0;c[b+44>>2]=0;c[b+64>>2]=-1;c[b+32>>2]=0;c[b+48>>2]=0;c[b>>2]=d;c[b+12>>2]=g;if((Nb(c[d+28>>2]|0,t|0)|0)==0){t=c[t+36>>2]|0}else{t=0}d=yc(c[(c[b>>2]|0)+28>>2]|0,32632)|0;c[s>>2]=d;if((d|0)==0){g=Pc()|0;c[b+60>>2]=c[g>>2];d=c[(c[b>>2]|0)+28>>2]|0;g=Xc(c[g>>2]|0)|0;c[q>>2]=d;c[j+4>>2]=g;Qe(-1,32640,j);c[k>>2]=1;i=l;return}else{c[m>>2]=0;c[n>>2]=0;c[o>>2]=5;g=FW(320)|0;Dj(g,d,0,0,t,p);c[h>>2]=g;a[r]=(Tf(b,e,f)|0)&1;i=l;return}}function Tf(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0;g=i;f=i;i=i+8|0;l=i;i=i+8|0;j=i;i=i+8|0;k=i;i=i+8|0;h=b+8|0;m=c[h>>2]|0;Gd[c[(c[m>>2]|0)+52>>2]&255](m,0,-1);m=c[h>>2]|0;if((jd[c[(c[m>>2]|0)+48>>2]&511](m)|0)<0){Qe(-1,32672,j);m=0;i=g;return m|0}m=c[h>>2]|0;fdfd[c[(c[d>>2]|0)+4>>2]&511](d)}d=c[a+44>>2]|0;if((d|0)!=0){LF(d);HW(d)}d=c[a+36>>2]|0;if((d|0)!=0){$t(d);HW(d)}d=c[a+28>>2]|0;if((d|0)!=0){en(d);HW(d)}d=c[a+40>>2]|0;if((d|0)!=0){IC(d);HW(d)}d=c[a+24>>2]|0;if((d|0)!=0){jE(d);HW(d)}d=c[a+8>>2]|0;if((d|0)!=0){fd[c[(c[d>>2]|0)+4>>2]&511](d)}d=c[a+4>>2]|0;if((d|0)!=0){mc(d|0)|0}a=c[a>>2]|0;if((a|0)==0){i=b;return}ke(a);HW(a);i=b;return}function _f(a){a=a|0;var b=0,d=0,e=0,f=0,g=0;b=i;d=a+8|0;f=c[d>>2]|0;do{if((jd[c[(c[f>>2]|0)+104>>2]&511](f)|0)!=0){e=a+24|0;f=c[e>>2]|0;if((f|0)==0){f=FW(16)|0;iE(f,c[d>>2]|0);c[e>>2]=f}g=kE(f)|0;f=c[d>>2]|0;if((g|0)!=(jd[c[(c[f>>2]|0)+104>>2]&511](f)|0)){break}f=c[e>>2]|0;if((f|0)==0){f=FW(16)|0;iE(f,c[d>>2]|0);c[e>>2]=f}d=rE(f)|0;if((d|0)==0){break}i=b;return d|0}}while(0);g=cu(c[a+36>>2]|0)|0;i=b;return g|0}function $f(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0;f=i;e=i;i=i+8|0;d=e;if((b|0)<1){j=0;i=f;return j|0}if((_f(a)|0)<(b|0)){j=0;i=f;return j|0}g=a+8|0;j=c[g>>2]|0;do{if((jd[c[(c[j>>2]|0)+104>>2]&511](j)|0)!=0){h=a+24|0;j=c[h>>2]|0;if((j|0)==0){j=FW(16)|0;iE(j,c[g>>2]|0);c[h>>2]=j}h=kE(j)|0;j=c[g>>2]|0;if((h|0)!=(jd[c[(c[j>>2]|0)+104>>2]&511](j)|0)){break}g=a+48|0;j=c[g>>2]|0;if((j|0)==0){c[g>>2]=ye(_f(a)|0,4)|0;if((_f(a)|0)>0){h=0;do{c[(c[g>>2]|0)+(h<<2)>>2]=0;h=h+1|0;}while((h|0)<(_f(a)|0))}j=c[g>>2]|0}h=b+ -1|0;j=c[j+(h<<2)>>2]|0;if((j|0)!=0){i=f;return j|0}j=dg(a,b)|0;c[(c[g>>2]|0)+(h<<2)>>2]=j;g=c[(c[g>>2]|0)+(h<<2)>>2]|0;if((g|0)==0){c[e>>2]=b;Qe(-1,33016,d);break}else{j=g;i=f;return j|0}}}while(0);j=au(c[a+36>>2]|0,b)|0;i=f;return j|0}function ag(a,b,d,e,f,g,h,j,k,l,m,n,o,p,q,r,s){a=a|0;b=b|0;d=d|0;e=+e;f=+f;g=g|0;h=h|0;j=j|0;k=k|0;l=l|0;m=m|0;n=n|0;o=o|0;p=p|0;q=q|0;r=r|0;s=s|0;var t=0;t=i;if(($f(a,d)|0)==0){i=t;return}d=$f(a,d)|0;mg(d,b,e,f,g,h,j,l,m,n,o,k,c[a+36>>2]|0,p,q,r,s);i=t;return}function bg(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0;d=i;b=a+40|0;if((c[b>>2]|0)!=0){h=b;h=c[h>>2]|0;i=d;return h|0}g=a+8|0;h=c[g>>2]|0;if((jd[c[(c[h>>2]|0)+104>>2]&511](h)|0)==0){h=b;h=c[h>>2]|0;i=d;return h|0}e=a+24|0;f=c[e>>2]|0;if((f|0)==0){f=FW(16)|0;iE(f,c[g>>2]|0);c[e>>2]=f}f=kE(f)|0;h=c[g>>2]|0;if((f|0)!=(jd[c[(c[h>>2]|0)+104>>2]&511](h)|0)){h=b;h=c[h>>2]|0;i=d;return h|0}f=FW(156)|0;g=c[g>>2]|0;h=c[e>>2]|0;if((h|0)==0){h=FW(16)|0;iE(h,g);c[e>>2]=h}GC(f,g,h,c[a+28>>2]|0,c[a+32>>2]|0);c[b>>2]=f;h=b;h=c[h>>2]|0;i=d;return h|0}function cg(b,d){b=b|0;d=d|0;var e=0,f=0;f=i;e=FW(68)|0;a[e+52|0]=0;c[e+4>>2]=0;c[e+8>>2]=0;c[e+28>>2]=0;c[e+24>>2]=0;c[e+36>>2]=0;c[e+40>>2]=0;c[e+44>>2]=0;c[e+64>>2]=-1;c[e+32>>2]=0;c[e+48>>2]=0;c[e+56>>2]=b;c[e>>2]=d;i=f;return e|0}function dg(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;l=i;d=i;i=i+8|0;m=d;o=i;i=i+8|0;g=o;q=i;i=i+8|0;p=q;r=i;i=i+8|0;f=i;i=i+16|0;n=f;j=i;i=i+8|0;k=j;c[f>>2]=13;h=n+8|0;c[h>>2]=0;c[h+4>>2]=0;e=MC(bg(a)|0,b)|0;if((e|0)==0){c[r>>2]=b;Qe(-1,32880,r);s=0;i=l;return s|0}do{if((e|0)>=0){r=a+28|0;s=c[r>>2]|0;if((e|0)>=(c[s+16>>2]|0)){break}p=c[(kn(s,e)|0)+4>>2]|0;_m(c[r>>2]|0,e,p,n,0)|0;if((c[f>>2]|0)==7){o=c[h>>2]|0;s=FW(144)|0;h=c[r>>2]|0;c[j>>2]=e;c[k+4>>2]=p;q=FW(288)|0;hg(q,0,o);r=_t(c[a+36>>2]|0)|0;$W(d|0,j|0,8)|0;kg(s,h,b,o,m,q,r);Of(n);i=l;return s|0}else{Of(n);c[o>>2]=e;c[g+4>>2]=p;Qe(-1,32976,g);s=0;i=l;return s|0}}}while(0);c[q>>2]=e;c[p+4>>2]=b;Qe(-1,32936,p);s=0;i=l;return s|0}function eg(a,b){a=a|0;b=b|0;var d=0,e=0;d=i;if((b|0)==0){b=FW(16)|0;wo(b);c[a>>2]=b}else{c[a>>2]=b}e=FW(4)|0;c[e>>2]=36008;zo(b,0,e);a=c[a>>2]|0;b=FW(4)|0;c[b>>2]=188624;zo(a,0,b);i=d;return}function fg(a){a=a|0;var b=0,d=0,e=0,f=0,g=0;b=i;a=c[a>>2]|0;if((a|0)==0){i=b;return}d=a+8|0;f=c[d>>2]|0;if((f|0)>0){e=0;do{g=c[(c[a>>2]|0)+(e<<2)>>2]|0;if((g|0)!=0){fd[c[(c[g>>2]|0)+4>>2]&511](g);f=c[d>>2]|0}e=e+1|0;}while((e|0)<(f|0))}xo(a);HW(a);i=b;return}function gg(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,k=0,l=0;h=i;j=i;i=i+8|0;g=j;l=c[(c[a>>2]|0)+8>>2]|0;while(1){k=l+ -1|0;if((l|0)<=0){a=5;break}l=c[(c[c[a>>2]>>2]|0)+(k<<2)>>2]|0;if(Bd[c[(c[l>>2]|0)+12>>2]&255](l,b)|0){a=4;break}else{l=k}}if((a|0)==4){l=Cd[c[(c[l>>2]|0)+8>>2]&63](l,b,d,e,f)|0;i=h;return l|0}else if((a|0)==5){c[j>>2]=c[b+28>>2];Qe(-1,33136,g);l=FW(32)|0;ie(l,b);l=cg(1,l)|0;i=h;return l|0}return 0}function hg(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=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,y=0,z=0,A=0,B=0,C=0,D=0.0,E=0.0;p=i;f=i;i=i+16|0;n=f;B=i;i=i+32|0;z=b+32|0;y=b+72|0;x=b+104|0;s=b+136|0;o=b+176|0;bX(b|0,0,64)|0;bX(y|0,0,96)|0;c[o>>2]=13;m=b+184|0;c[m>>2]=0;c[m+4>>2]=0;m=b+192|0;c[m>>2]=13;l=b+200|0;c[l>>2]=0;c[l+4>>2]=0;l=b+208|0;c[l>>2]=13;g=b+216|0;c[g>>2]=0;c[g+4>>2]=0;g=b+224|0;c[g>>2]=13;j=b+232|0;c[j>>2]=0;c[j+4>>2]=0;j=b+240|0;c[j>>2]=13;k=b+248|0;c[k>>2]=0;c[k+4>>2]=0;k=b+256|0;c[k>>2]=13;q=b+264|0;c[q>>2]=0;c[q+4>>2]=0;q=b+272|0;c[q>>2]=13;u=b+280|0;c[u>>2]=0;A=u+4|0;c[A>>2]=0;c[f>>2]=13;r=n+8|0;c[r>>2]=0;c[r+4>>2]=0;bX(B|0,0,32)|0;t=Xu(e,33160)|0;if((d|0)==0){bX(b|0,0,16)|0;h[b+16>>3]=612.0;h[b+24>>3]=792.0;c[b+168>>2]=0;c[u>>2]=0;bX(z|0,0,33)|0;c[A>>2]=0;c[q>>2]=5}else{$W(b|0,d|0,32)|0;$W(z|0,d+32|0,32)|0;a[b+64|0]=a[d+64|0]&1;c[b+168>>2]=c[d+168>>2];Mf(d+272|0,q)|0}if(ig(0,e,33168,B)|0){$W(b|0,B|0,32)|0}u=b+64|0;do{if(ig(0,e,33184,z)|0){a[u]=1}else{if((a[u]&1)!=0){break}$W(z|0,b|0,32)|0}}while(0);do{if(t){d=b+48|0;u=b+16|0;w=+h[u>>3];v=+h[b>>3];if(+h[d>>3]- +h[z>>3]>w-v){h[z>>3]=v;h[d>>3]=w}A=b+56|0;B=b+40|0;t=b+24|0;w=+h[t>>3];C=b+8|0;v=+h[C>>3];if(+h[A>>3]- +h[B>>3]>w-v){h[B>>3]=v;h[A>>3]=w}$W(y|0,z|0,32)|0;ig(0,e,33192,y)|0;$W(x|0,z|0,32)|0;ig(0,e,33208,x)|0;$W(s|0,z|0,32)|0;ig(0,e,33216,s)|0;w=+h[z>>3];v=+h[b>>3];do{if(w<v){h[z>>3]=v}else{D=+h[u>>3];if(w<=D){break}h[z>>3]=D}}while(0);D=+h[d>>3];do{if(D<v){h[d>>3]=v}else{w=+h[u>>3];if(D<=w){break}h[d>>3]=w}}while(0);D=+h[B>>3];w=+h[C>>3];do{if(D<w){h[B>>3]=w}else{E=+h[t>>3];if(D<=E){break}h[B>>3]=E}}while(0);D=+h[A>>3];do{if(D<w){h[A>>3]=w}else{E=+h[t>>3];if(D<=E){break}h[A>>3]=E}}while(0);D=+h[y>>3];do{if(D<v){h[y>>3]=v}else{E=+h[u>>3];if(D<=E){break}h[y>>3]=E}}while(0);y=b+88|0;D=+h[y>>3];do{if(D<v){h[y>>3]=v}else{E=+h[u>>3];if(D<=E){break}h[y>>3]=E}}while(0);y=b+80|0;D=+h[y>>3];do{if(D<w){h[y>>3]=w}else{E=+h[t>>3];if(D<=E){break}h[y>>3]=E}}while(0);y=b+96|0;E=+h[y>>3];do{if(E<w){h[y>>3]=w}else{D=+h[t>>3];if(E<=D){break}h[y>>3]=D}}while(0);D=+h[x>>3];do{if(D<v){h[x>>3]=v}else{E=+h[u>>3];if(D<=E){break}h[x>>3]=E}}while(0);x=b+120|0;D=+h[x>>3];do{if(D<v){h[x>>3]=v}else{E=+h[u>>3];if(D<=E){break}h[x>>3]=E}}while(0);x=b+112|0;D=+h[x>>3];do{if(D<w){h[x>>3]=w}else{E=+h[t>>3];if(D<=E){break}h[x>>3]=E}}while(0);x=b+128|0;E=+h[x>>3];do{if(E<w){h[x>>3]=w}else{D=+h[t>>3];if(E<=D){break}h[x>>3]=D}}while(0);D=+h[s>>3];do{if(D<v){h[s>>3]=v}else{E=+h[u>>3];if(D<=E){break}h[s>>3]=E}}while(0);s=b+152|0;D=+h[s>>3];do{if(D<v){h[s>>3]=v}else{v=+h[u>>3];if(D<=v){break}h[s>>3]=v}}while(0);s=b+144|0;v=+h[s>>3];do{if(v<w){h[s>>3]=w}else{D=+h[t>>3];if(v<=D){break}h[s>>3]=D}}while(0);s=b+160|0;v=+h[s>>3];if(v<w){h[s>>3]=w;break}w=+h[t>>3];if(v<=w){break}h[s>>3]=w}else{$W(y|0,z|0,32)|0;ig(0,e,33192,y)|0;$W(x|0,z|0,32)|0;ig(0,e,33208,x)|0;$W(s|0,z|0,32)|0;ig(0,e,33216,s)|0}}while(0);Yu(e,33224,n,0)|0;if((c[f>>2]|0)==1){C=b+168|0;c[C>>2]=c[r>>2];r=C}else{r=b+168|0}Of(n);b=c[r>>2]|0;if((b|0)<0){C=~b;b=b+(C-((C>>>0)%360|0))+360|0;c[r>>2]=b}if((b|0)>359){c[r>>2]=((b+ -360|0)>>>0)%360|0}Yu(e,33232,o,0)|0;Yu(e,33248,m,0)|0;Yu(e,33264,l,0)|0;Yu(e,33272,g,0)|0;Yu(e,33288,j,0)|0;Yu(e,33304,k,0)|0;Yu(e,33320,n,0)|0;if((c[f>>2]|0)!=7){Of(n);i=p;return}Of(q);Mf(n,q)|0;Of(n);i=p;return}function ig(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,j=0.0,k=0,l=0,m=0,n=0,o=0,p=0,q=0.0,r=0,s=0,t=0.0,u=0,v=0,w=0.0;a=i;n=i;i=i+8|0;o=n;s=i;i=i+8|0;r=s;u=i;i=i+8|0;v=u;p=i;i=i+16|0;f=p;l=i;i=i+16|0;g=l;c[p>>2]=13;m=f+8|0;c[m>>2]=0;c[m+4>>2]=0;c[l>>2]=13;k=g+8|0;c[k>>2]=0;c[k+4>>2]=0;Yu(b,d,f,0)|0;if((c[p>>2]|0)!=6){d=0;Of(f);i=a;return d|0}b=c[m>>2]|0;if((c[b+12>>2]|0)!=4){d=0;Of(f);i=a;return d|0}ut(b,0,g)|0;b=c[l>>2]|0;do{if((b+ -1|0)>>>0<2){if((b|0)==1){j=+(c[k>>2]|0);b=1;break}else{j=+h[k>>3];b=1;break}}else{j=0.0;b=0}}while(0);Of(g);d=c[p>>2]|0;if((d|0)!=6){c[u>>2]=d;c[v+4>>2]=6;Qe(0,33832,v);tc()}ut(c[m>>2]|0,1,g)|0;u=c[l>>2]|0;do{if((u+ -1|0)>>>0<2){if((u|0)==1){q=+(c[k>>2]|0);break}else{q=+h[k>>3];break}}else{q=0.0;b=0}}while(0);Of(g);u=c[p>>2]|0;if((u|0)!=6){c[s>>2]=u;c[r+4>>2]=6;Qe(0,33832,r);tc()}ut(c[m>>2]|0,2,g)|0;r=c[l>>2]|0;do{if((r+ -1|0)>>>0<2){if((r|0)==1){t=+(c[k>>2]|0);break}else{t=+h[k>>3];break}}else{t=0.0;b=0}}while(0);Of(g);p=c[p>>2]|0;if((p|0)!=6){c[n>>2]=p;c[o+4>>2]=6;Qe(0,33832,o);tc()}ut(c[m>>2]|0,3,g)|0;l=c[l>>2]|0;do{if((l+ -1|0)>>>0<2){if((l|0)==1){w=+(c[k>>2]|0);break}else{w=+h[k>>3];break}}else{w=0.0;b=0}}while(0);Of(g);if(j==0.0&t==0.0&q==0.0&w==0.0){d=0;Of(f);i=a;return d|0}g=b&1;if(g<<24>>24==0){d=g<<24>>24!=0;Of(f);i=a;return d|0}k=j>t;g=q>w;h[e>>3]=k?t:j;h[e+8>>3]=g?w:q;h[e+16>>3]=k?j:t;h[e+24>>3]=g?q:w;d=1;Of(f);i=a;return d|0}function jg(a){a=a|0;var b=0;b=i;Of(a+176|0);Of(a+192|0);Of(a+208|0);Of(a+224|0);Of(a+240|0);Of(a+256|0);Of(a+272|0);i=b;return}function kg(b,d,e,f,g,j,k){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;j=j|0;k=k|0;var 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.0,S=0,T=0;o=i;t=i;i=i+8|0;u=t;l=i;i=i+8|0;z=l;q=i;i=i+8|0;r=q;F=i;i=i+8|0;G=F;J=i;i=i+8|0;K=J;N=i;i=i+8|0;O=N;Q=i;i=i+16|0;D=Q;T=b+8|0;c[T>>2]=13;C=b+16|0;c[C>>2]=0;c[C+4>>2]=0;C=b+40|0;c[C>>2]=13;H=b+48|0;c[H>>2]=0;I=H+4|0;c[I>>2]=0;m=b+56|0;c[m>>2]=13;E=b+64|0;c[E>>2]=0;y=E+4|0;c[y>>2]=0;x=b+80|0;c[x>>2]=13;A=b+88|0;c[A>>2]=0;B=A+4|0;c[B>>2]=0;P=b+96|0;c[P>>2]=13;s=b+104|0;c[s>>2]=0;c[s+4>>2]=0;s=b+112|0;c[s>>2]=13;v=b+120|0;c[v>>2]=0;w=v+4|0;c[w>>2]=0;c[Q>>2]=13;M=D+8|0;c[M>>2]=0;c[M+4>>2]=0;n=b+136|0;a[n]=1;c[b>>2]=d;p=b+32|0;c[p>>2]=e;L=b+128|0;h[L>>3]=-1.0;e=b+72|0;c[e>>2]=0;Kf(T,f)|0;T=g;S=c[T+4>>2]|0;g=b+24|0;c[g>>2]=c[T>>2];c[g+4>>2]=S;c[b+36>>2]=j;Zu(f,33336,P)|0;g=c[P>>2]|0;if(!((g|0)==5|(g|0)==7|(g|0)==9)){S=c[p>>2]|0;T=Pf(P)|0;c[N>>2]=S;c[O+4>>2]=T;Qe(-1,33344,O);Of(P)}Zu(f,33400,D)|0;N=c[Q>>2]|0;do{if((N+ -1|0)>>>0<2){if((N|0)==1){R=+(c[M>>2]|0)}else{R=+h[M>>3]}h[L>>3]=R}else{if((N|0)==5){break}S=c[p>>2]|0;T=Pf(D)|0;c[J>>2]=S;c[K+4>>2]=T;Qe(-1,33408,K)}}while(0);Of(D);Zu(f,33464,C)|0;T=c[C>>2]|0;do{if((T|0)==5|(T|0)==6|(T|0)==9){T=FW(20)|0;S=Nf(C,c[b>>2]|0,D,0)|0;Qv(T,d,S,c[p>>2]|0,k);c[e>>2]=T;Of(D);Zu(f,33528,m)|0;T=c[m>>2]|0;if(!((T|0)==5|(T|0)==6|(T|0)==9)){S=c[p>>2]|0;T=Pf(m)|0;c[q>>2]=S;c[r+4>>2]=T;Qe(-1,33544,r);Of(m);break}Zu(f,33600,x)|0;T=c[x>>2]|0;if(!((T|0)==9|(T|0)==5|(T|0)==8)){S=c[p>>2]|0;T=Pf(x)|0;c[l>>2]=S;c[z+4>>2]=T;Qe(-1,33608,z);c[A>>2]=0;c[B>>2]=0;c[x>>2]=5}Zu(f,33656,s)|0;T=c[s>>2]|0;if((T|0)==5|(T|0)==7){i=o;return}S=c[p>>2]|0;T=Pf(s)|0;c[t>>2]=S;c[u+4>>2]=T;Qe(-1,33664,u);c[v>>2]=0;c[w>>2]=0;c[s>>2]=5;i=o;return}else{S=c[p>>2]|0;T=Pf(C)|0;c[F>>2]=S;c[G+4>>2]=T;Qe(-1,33472,G);Of(C);c[H>>2]=0;c[I>>2]=0;c[C>>2]=5}}while(0);c[E>>2]=0;c[y>>2]=0;c[m>>2]=5;a[n]=0;i=o;return}function lg(a){a=a|0;var b=0,d=0;b=i;d=c[a+72>>2]|0;if((d|0)!=0){Rv(d);HW(d)}d=c[a+36>>2]|0;if((d|0)!=0){Of(d+176|0);Of(d+192|0);Of(d+208|0);Of(d+224|0);Of(d+240|0);Of(d+256|0);Of(d+272|0);HW(d)}Of(a+8|0);Of(a+40|0);Of(a+56|0);Of(a+96|0);Of(a+80|0);Of(a+112|0);i=b;return}function mg(a,b,d,e,f,g,h,j,k,l,m,n,o,p,q,r,s){a=a|0;b=b|0;d=+d;e=+e;f=f|0;g=g|0;h=h|0;j=j|0;k=k|0;l=l|0;m=m|0;n=n|0;o=o|0;p=p|0;q=q|0;r=r|0;s=s|0;var t=0,u=0,v=0,w=0;t=i;v=i;i=i+16|0;u=v;c[v>>2]=13;w=u+8|0;c[w>>2]=0;c[w+4>>2]=0;if(!(td[c[(c[b>>2]|0)+56>>2]&1](b,a,d,e,f,g,h,j,k,l,m,n,o,p,q)|0)){i=t;return}f=ng(a,b,d,e,f,g,h,j,k,l,m,0,o,p,q,0,0)|0;Nf(a+56|0,c[a>>2]|0,u,0)|0;if((c[v>>2]|0)!=5){yx(f);vx(f,u,1);tx(f)}Of(u);v=FW(8)|0;w=c[a>>2]|0;bt(v,w,o,Nf(a+40|0,w,u,0)|0);Of(u);u=v+4|0;if((c[u>>2]|0)>0){if(uf(c[834]|0)|0){fb(33904)|0}a:do{if((c[u>>2]|0)>0){if((r|0)==0){r=0;while(1){w=c[(c[v>>2]|0)+(r<<2)>>2]|0;Gd[c[(c[w>>2]|0)+8>>2]&255](w,f,n);r=r+1|0;if((r|0)>=(c[u>>2]|0)){break a}}}else{a=0}do{if(Bd[r&255](c[(c[v>>2]|0)+(a<<2)>>2]|0,s)|0){w=c[(c[v>>2]|0)+(a<<2)>>2]|0;Gd[c[(c[w>>2]|0)+8>>2]&255](w,f,n)}a=a+1|0;}while((a|0)<(c[u>>2]|0))}}while(0);fdfd[c[(c[r>>2]|0)+4>>2]&511](r);r=M;break}g=c[m+20>>2]|0;if((g|0)==0){g=35376}else{g=c[g+28>>2]|0}c[u>>2]=g;Qe(-1,35392,v);break c}else{s=c[m+228>>2]|0;c[t>>2]=s;if((s|0)==0){r=0;break}M=ye(s,2)|0;$W(M|0,c[r>>2]|0,c[t>>2]<<1|0)|0;r=M}}while(0);K=Up(c[l>>2]|0,f,n,r,c[t>>2]|0,J)|0;if((K|0)!=0){break d}g=c[m+20>>2]|0;if((g|0)==0){g=35376}else{g=c[g+28>>2]|0}c[q>>2]=g;Qe(-1,35392,p);break c};case 6:case 5:{if(I){p=Dn(c[K+28>>2]|0,0)|0}else{p=Cn(M,c[H>>2]|0,0)|0}if((p|0)==0){c[t>>2]=0;p=0;q=0}else{q=hy(m,p)|0;c[t>>2]=256;fd[c[(c[p>>2]|0)+4>>2]&511](p);p=c[t>>2]|0}K=Up(c[l>>2]|0,f,n,q,p,0)|0;if((K|0)!=0){break d}g=c[m+20>>2]|0;if((g|0)==0){g=35376}else{g=c[g+28>>2]|0}c[s>>2]=g;Qe(-1,35392,r);break c};case 2:{K=Qp(c[l>>2]|0,f,n,m+176|0)|0;if((K|0)!=0){break d}g=c[m+20>>2]|0;if((g|0)==0){g=35376}else{g=c[g+28>>2]|0}c[C>>2]=g;Qe(-1,35392,x);break c};case 3:{K=Rp(c[l>>2]|0,f,n,m+176|0)|0;if((K|0)!=0){break d}g=c[m+20>>2]|0;if((g|0)==0){g=35376}else{g=c[g+28>>2]|0}c[z>>2]=g;Qe(-1,35392,A);break c};case 1:{K=Pp(c[l>>2]|0,f,n,m+176|0)|0;if((K|0)!=0){break d}g=c[m+20>>2]|0;if((g|0)==0){g=35376}else{g=c[g+28>>2]|0}c[B>>2]=g;Qe(-1,35392,w);break c};default:{break c}}}while(0);a[K+4|0]=o;break a}}while(0);if((f|0)!=0){fd[c[(c[f>>2]|0)+4>>2]&511](f)}if((n|0)==0){i=e;return}if((a[n]&1)!=0){i=e;return}Zp(n);i=e;return}else{if((f|0)==0){n=0;break}fdfd[c[(c[f>>2]|0)+16>>2]&511](f);i=e;return}function Bh(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;f=i;p=i;i=i+8|0;o=p;n=i;i=i+16|0;m=n;g=b+28|0;if((c[g>>2]|0)==(c[b+24>>2]|0)){r=0;i=f;return r|0}h=b+4|0;q=c[h>>2]|0;k=c[q+8>>2]|0;l=b+8|0;j=b+16|0;r=c[j>>2]|0;a:do{if((c[l>>2]|0)==0){switch(r|0){case 3:case 2:case 4:{break};case 1:case 0:{l=Bj(c[b>>2]|0)|0;j=b+20|0;if((c[j>>2]|0)>0){m=0}else{break a}while(1){oB(c[h>>2]|0,l,o);a[e]=(((c[p>>2]|0)*255|0)+32768|0)>>>16;m=m+1|0;if((m|0)<(c[j>>2]|0)){e=e+1|0;l=l+k|0}else{break a}}break};default:{break a}}o=q+12|0;l=c[o>>2]|0;do{if((l|0)==0){l=18}else{if(jd[c[(c[l>>2]|0)+36>>2]&511](l)|0){p=Bj(c[b>>2]|0)|0;l=24;break}if((c[o>>2]|0)==0){l=18;break}p=Bj(c[b>>2]|0)|0;l=19}}while(0);if((l|0)==18){r=c[q>>2]|0;r=jd[c[(c[r>>2]|0)+36>>2]&511](r)|0;p=Bj(c[b>>2]|0)|0;if(r){l=24}else{l=19}}if((l|0)==19){o=b+20|0;if((c[o>>2]|0)<=0){break}b=m+4|0;l=m+8|0;q=0;while(1){pB(c[h>>2]|0,p,m);a[e]=(((c[n>>2]|0)*255|0)+32768|0)>>>16;a[e+1|0]=(((c[b>>2]|0)*255|0)+32768|0)>>>16;r=e+3|0;a[e+2|0]=(((c[l>>2]|0)*255|0)+32768|0)>>>16;if((c[j>>2]|0)==4){a[r]=-1;e=e+4|0}else{e=r}q=q+1|0;if((q|0)<(c[o>>2]|0)){p=p+k|0}else{break}}}else if((l|0)==24){k=b+20|0;l=ye(c[k>>2]|0,4)|0;qB(c[h>>2]|0,p,l,c[k>>2]|0);if((c[k>>2]|0)>0){h=0;do{r=l+(h<<2)|0;a[e]=(c[r>>2]|0)>>>16;a[e+1|0]=(c[r>>2]|0)>>>8;m=e+3|0;a[e+2|0]=c[r>>2];if((c[j>>2]|0)==4){a[m]=-1;e=e+4|0}else{e=m}h=h+1|0;}while((h|0)<(c[k>>2]|0))}Fe(l);break}}else{switch(r|0){case 1:case 0:{j=Bj(c[b>>2]|0)|0;h=b+20|0;if((c[h>>2]|0)>0){k=0}else{break a}while(1){a[e]=a[(c[l>>2]|0)+(d[j]|0)|0]|0;k=k+1|0;if((k|0)<(c[h>>2]|0)){e=e+1|0;j=j+1|0}else{break}}break};case 4:{j=Bj(c[b>>2]|0)|0;h=b+20|0;if((c[h>>2]|0)>0){k=0}else{break a}while(1){r=(d[j]|0)<<2;q=c[l>>2]|0;a[e]=a[q+r|0]|0;a[e+1|0]=a[q+(r|1)|0]|0;a[e+2|0]=a[q+(r|2)|0]|0;a[e+3|0]=a[q+(r|3)|0]|0;k=k+1|0;if((k|0)<(c[h>>2]|0)){e=e+4|0;j=j+1|0}else{break}}break};case 3:case 2:{j=Bj(c[b>>2]|0)|0;h=b+20|0;if((c[h>>2]|0)>0){k=0}else{break a}while(1){r=(d[j]|0)*3|0;q=c[l>>2]|0;a[e]=a[q+r|0]|0;a[e+1|0]=a[q+(r+1)|0]|0;a[e+2|0]=a[q+(r+2)|0]|0;k=k+1|0;if((k|0)<(c[h>>2]|0)){e=e+3|0;j=j+1|0}else{break}}break};default:{break a}}}}while(0);c[g>>2]=(c[g>>2]|0)+1;r=1;i=f;return r|0}function Ch(b,e,f){b=b|0;e=e|0;f=f|0;var 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;g=i;l=i;i=i+16|0;k=l;j=i;i=i+8|0;s=j;m=b+28|0;if((c[m>>2]|0)==(c[b+24>>2]|0)){A=0;i=g;return A|0}p=b+4|0;n=c[(c[p>>2]|0)+8>>2]|0;v=Bj(c[b>>2]|0)|0;o=b+20|0;if((c[o>>2]|0)>0){h=(n|0)>0;q=b+8|0;r=b+16|0;t=k+4|0;u=k+8|0;b=b+12|0;w=0;while(1){a:do{if(h){z=c[b>>2]|0;A=0;while(1){y=d[v+A|0]|0;x=A<<1;if((y|0)<(c[z+(x<<2)>>2]|0)){x=-1;break a}A=A+1|0;if((y|0)>(c[z+((x|1)<<2)>>2]|0)){x=-1;break a}if((A|0)>=(n|0)){x=0;break}}}else{x=0}}while(0);y=c[q>>2]|0;z=c[r>>2]|0;b:do{if((y|0)==0){switch(z|0){case 1:case 0:{oB(c[p>>2]|0,v,s);a[e]=(((c[j>>2]|0)*255|0)+32768|0)>>>16;a[f]=x;f=f+1|0;e=e+1|0;break b};case 3:case 2:case 4:{break};default:{break b}}pB(c[p>>2]|0,v,k);a[e]=(((c[l>>2]|0)*255|0)+32768|0)>>>16;a[e+1|0]=(((c[t>>2]|0)*255|0)+32768|0)>>>16;y=e+3|0;a[e+2|0]=(((c[u>>2]|0)*255|0)+32768|0)>>>16;if((c[r>>2]|0)==4){a[y]=-1;e=e+4|0}else{e=y}a[f]=x;f=f+1|0}else{switch(z|0){case 3:case 2:{A=(d[v]|0)*3|0;a[e]=a[y+A|0]|0;a[e+1|0]=a[y+(A+1)|0]|0;a[e+2|0]=a[y+(A+2)|0]|0;a[f]=x;f=f+1|0;e=e+3|0;break b};case 4:{A=(d[v]|0)<<2;a[e]=a[y+A|0]|0;a[e+1|0]=a[y+(A|1)|0]|0;a[e+2|0]=a[y+(A|2)|0]|0;a[e+3|0]=-1;a[f]=x;f=f+1|0;e=e+4|0;break b};case 1:case 0:{a[e]=a[y+(d[v]|0)|0]|0;a[f]=x;f=f+1|0;e=e+1|0;break b};default:{break b}}}}while(0);w=w+1|0;if((w|0)<(c[o>>2]|0)){v=v+n|0}else{break}}}c[m>>2]=(c[m>>2]|0)+1;A=1;i=g;return A|0}function Dh(b,d,e,f,g,j,l,m,n,o){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;j=j|0;l=l|0;m=m|0;n=n|0;o=o|0;var 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.0,D=0.0;e=i;w=i;i=i+48|0;m=w;p=i;i=i+32|0;q=p;x=i;i=i+8|0;y=x;u=i;i=i+16|0;t=u;s=i;i=i+8|0;r=s;z=d+16|0;A=0;do{h[k>>3]=+h[d+16+(A<<3)>>3];B=c[k+4>>2]&2146435072;A=A+1|0;if(!(B>>>0<2146435072|(B|0)==2146435072&(c[k>>2]&0)>>>0<0)){v=20;break}}while((A|0)<6);if((v|0)==20){i=e;return}h[w>>3]=+h[z>>3];h[m+8>>3]=+h[d+24>>3];D=+h[d+32>>3];h[m+16>>3]=-0.0-D;C=+h[d+40>>3];h[m+24>>3]=-0.0-C;h[m+32>>3]=D+ +h[d+48>>3];h[m+40>>3]=C+ +h[d+56>>3];w=FW(28)|0;B=l+8|0;z=l+4|0;yj(w,f,g,c[B>>2]|0,c[z>>2]|0);c[p>>2]=w;Aj(w);c[q+4>>2]=l;c[q+12>>2]=n;w=b+112|0;A=c[w>>2]|0;c[q+16>>2]=A;c[q+20>>2]=g;c[q+24>>2]=j;d=q+28|0;c[d>>2]=0;v=q+8|0;c[v>>2]=0;a:do{if((c[B>>2]|0)==1){z=1<<c[z>>2];switch(A|0){case 4:{c[v>>2]=ye(z,4)|0;if((z|0)<=0){break a}x=t+4|0;y=t+8|0;A=0;do{a[s]=A;pB(l,r,t);B=A<<2;a[(c[v>>2]|0)+B|0]=(((c[u>>2]|0)*255|0)+32768|0)>>>16;a[(c[v>>2]|0)+(B|1)|0]=(((c[x>>2]|0)*255|0)+32768|0)>>>16;a[(c[v>>2]|0)+(B|2)|0]=(((c[y>>2]|0)*255|0)+32768|0)>>>16;a[(c[v>>2]|0)+(B|3)|0]=-1;A=A+1|0;}while((A|0)<(z|0));break};case 1:case 0:{c[v>>2]=we(z)|0;if((z|0)>0){t=0}else{break a}do{a[s]=t;oB(l,r,y);a[(c[v>>2]|0)+t|0]=(((c[x>>2]|0)*255|0)+32768|0)>>>16;t=t+1|0;}while((t|0)<(z|0));break};case 3:case 2:{c[v>>2]=ye(z,3)|0;if((z|0)<=0){break a}y=t+4|0;x=t+8|0;A=0;do{a[s]=A;pB(l,r,t);B=A*3|0;a[(c[v>>2]|0)+B|0]=(((c[u>>2]|0)*255|0)+32768|0)>>>16;a[(c[v>>2]|0)+(B+1)|0]=(((c[y>>2]|0)*255|0)+32768|0)>>>16;a[(c[v>>2]|0)+(B+2)|0]=(((c[x>>2]|0)*255|0)+32768|0)>>>16;A=A+1|0;}while((A|0)<(z|0));break};default:{break a}}}}while(0);l=c[w>>2]|0;n=(n|0)!=0;yp(c[b+184>>2]|0,n?74:75,q,(l|0)==0?1:l,n,g,j,m)|0;do{if(o){if((c[d>>2]|0)>=(j|0)){break}do{Bj(c[p>>2]|0)|0;B=(c[d>>2]|0)+1|0;c[d>>2]=B;}while((B|0)<(j|0))}}while(0);Fe(c[v>>2]|0);j=c[p>>2]|0;if((j|0)!=0){zj(j);HW(j)}fd[c[(c[f>>2]|0)+16>>2]&511](f);i=e;return}function Eh(b,e,f){b=b|0;e=e|0;f=f|0;var 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;h=i;g=i;i=i+8|0;m=g;k=i;i=i+16|0;j=k;n=i;i=i+8|0;r=n;l=b+28|0;if((c[l>>2]|0)==(c[b+24>>2]|0)){A=0;i=h;return A|0}p=b+4|0;q=c[(c[p>>2]|0)+8>>2]|0;w=Bj(c[b>>2]|0)|0;o=b+20|0;if((c[o>>2]|0)>0){s=b+8|0;t=b+12|0;b=b+16|0;u=j+4|0;v=j+8|0;x=0;while(1){Oe(c[s>>2]|0,x,c[l>>2]|0,m);y=((a[g]|0)!=0)<<31>>31;A=c[t>>2]|0;z=c[b>>2]|0;a:do{if((A|0)==0){switch(z|0){case 1:case 0:{oB(c[p>>2]|0,w,r);a[e]=(((c[n>>2]|0)*255|0)+32768|0)>>>16;a[f]=y;f=f+1|0;e=e+1|0;break a};case 3:case 2:case 4:{break};default:{break a}}pB(c[p>>2]|0,w,j);a[e]=(((c[k>>2]|0)*255|0)+32768|0)>>>16;a[e+1|0]=(((c[u>>2]|0)*255|0)+32768|0)>>>16;z=e+3|0;a[e+2|0]=(((c[v>>2]|0)*255|0)+32768|0)>>>16;if((c[b>>2]|0)==4){a[z]=-1;e=e+4|0}else{e=z}a[f]=y;f=f+1|0}else{switch(z|0){case 3:case 2:{z=(d[w]|0)*3|0;a[e]=a[A+z|0]|0;a[e+1|0]=a[A+(z+1)|0]|0;a[e+2|0]=a[A+(z+2)|0]|0;a[f]=y;f=f+1|0;e=e+3|0;break a};case 4:{z=d[w]<<2;a[e]=a[A+z|0]|0;a[e+1|0]=a[A+(z|1)|0]|0;a[e+2|0]=a[A+(z|2)|0]|0;a[e+3|0]=-1;a[f]=y;f=f+1|0;e=e+4|0;break a};case 1:case 0:{a[e]=a[A+(d[w]|0)|0]|0;a[f]=y;f=f+1|0;e=e+1|0;break a};default:{break a}}}}while(0);x=x+1|0;if((x|0)<(c[o>>2]|0)){w=w+q|0}else{break}}}c[l>>2]=(c[l>>2]|0)+1;A=1;i=h;return A|0}function Fh(b,d,e,f,g,j,l,m,n,o,p,q,r){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;j=j|0;l=l|0;m=m|0;n=n|0;o=o|0;p=p|0;q=q|0;r=r|0;var 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,W=0,X=0.0,Y=0.0;s=i;K=i;i=i+8|0;L=K;P=i;i=i+8|0;O=P;N=i;i=i+16|0;I=N;V=i;i=i+16|0;Q=V;W=i;i=i+16|0;M=W;C=i;i=i+48|0;u=C;v=i;i=i+32|0;t=v;E=i;i=i+24|0;F=E;G=i;i=i+8|0;H=G;B=i;i=i+8|0;A=B;y=i;i=i+16|0;z=y;x=i;i=i+8|0;w=x;c[N>>2]=13;J=I+8|0;c[J>>2]=0;c[J+4>>2]=0;c[V>>2]=13;U=Q+8|0;c[U>>2]=0;S=U+4|0;c[S>>2]=0;c[W>>2]=13;R=M+8|0;c[R>>2]=0;T=R+4|0;c[T>>2]=0;if((o|0)>(g|0)|(p|0)>(j|0)){t=q&1;c[S>>2]=0;c[V>>2]=1;c[U>>2]=t^1;c[T>>2]=0;c[W>>2]=1;c[R>>2]=t;If(I,c[b+176>>2]|0)|0;t=c[N>>2]|0;if((t|0)!=6){c[P>>2]=t;c[O+4>>2]=6;Qe(0,35856,O);tc()}tt(c[J>>2]|0,Q);t=c[N>>2]|0;if((t|0)!=6){c[K>>2]=t;c[L+4>>2]=6;Qe(0,35856,L);tc()}tt(c[J>>2]|0,M);t=FW(672)|0;W=FW(4)|0;Ty(W);mB(t,1,I,W);Of(I);vd[c[(c[b>>2]|0)+324>>2]&3](b,d,e,f,g,j,l,m,n,o,p,t,r);if((t|0)==0){i=s;return}nB(t);HW(t);i=s;return}h[C>>3]=+(g|0);e=u+8|0;I=u+16|0;J=u+24|0;bX(e|0,0,16)|0;h[J>>3]=+(j|0);r=u+32|0;m=u+40|0;bX(r|0,0,16)|0;K=FW(28)|0;yj(K,n,o,1,1);c[E>>2]=K;Aj(K);a[F+4|0]=q&1^1;c[F+8>>2]=o;c[F+12>>2]=p;c[F+16>>2]=0;q=FW(28)|0;Ke(q,g,j,1,0,0,1);K=FW(192)|0;Jo(K,q,0,0);a[G]=0;ep(K,H,0);a[G]=-1;W=FW(8)|0;tq(W,H);Ro(K,W);wp(K,182,F,o,p,u,0)|0;o=c[E>>2]|0;if((o|0)!=0){zj(o);HW(o)}fd[c[(c[n>>2]|0)+16>>2]&511](n);if((K|0)!=0){Lo(K);HW(K)}n=d+16|0;o=0;do{h[k>>3]=+h[d+16+(o<<3)>>3];W=c[k+4>>2]&2146435072;o=o+1|0;if(!(W>>>0<2146435072|(W|0)==2146435072&(c[k>>2]&0)>>>0<0)){D=15;break}}while((o|0)<6);if((D|0)==15){if((q|0)==0){i=s;return}Le(q);HW(q);i=s;return}h[C>>3]=+h[n>>3];h[e>>3]=+h[d+24>>3];Y=+h[d+32>>3];h[I>>3]=-0.0-Y;X=+h[d+40>>3];h[J>>3]=-0.0-X;h[r>>3]=Y+ +h[d+48>>3];h[m>>3]=X+ +h[d+56>>3];n=FW(28)|0;W=l+8|0;o=l+4|0;yj(n,f,g,c[W>>2]|0,c[o>>2]|0);c[v>>2]=n;Aj(n);c[t+4>>2]=l;c[t+8>>2]=q;n=b+112|0;p=c[n>>2]|0;c[t+16>>2]=p;c[t+20>>2]=g;c[t+24>>2]=j;c[t+28>>2]=0;d=t+12|0;c[d>>2]=0;a:do{if((c[W>>2]|0)==1){o=1<<c[o>>2];switch(p|0){case 4:{c[d>>2]=ye(o,4)|0;if((o|0)<=0){break a}A=z+4|0;B=z+8|0;p=0;do{a[x]=p;pB(l,w,z);W=p<<2;a[(c[d>>2]|0)+W|0]=(((c[y>>2]|0)*255|0)+32768|0)>>>16;a[(c[d>>2]|0)+(W|1)|0]=(((c[A>>2]|0)*255|0)+32768|0)>>>16;a[(c[d>>2]|0)+(W|2)|0]=(((c[B>>2]|0)*255|0)+32768|0)>>>16;a[(c[d>>2]|0)+(W|3)|0]=-1;p=p+1|0;}while((p|0)<(o|0));break};case 1:case 0:{c[d>>2]=we(o)|0;if((o|0)>0){y=0}else{break a}do{a[x]=y;oB(l,w,A);a[(c[d>>2]|0)+y|0]=(((c[B>>2]|0)*255|0)+32768|0)>>>16;y=y+1|0;}while((y|0)<(o|0));break};case 3:case 2:{c[d>>2]=ye(o,3)|0;if((o|0)<=0){break a}p=z+4|0;B=z+8|0;A=0;do{a[x]=A;pB(l,w,z);W=A*3|0;a[(c[d>>2]|0)+W|0]=(((c[y>>2]|0)*255|0)+32768|0)>>>16;a[(c[d>>2]|0)+(W+1)|0]=(((c[p>>2]|0)*255|0)+32768|0)>>>16;a[(c[d>>2]|0)+(W+2)|0]=(((c[B>>2]|0)*255|0)+32768|0)>>>16;A=A+1|0;}while((A|0)<(o|0));break};default:{break a}}}}while(0);l=c[n>>2]|0;yp(c[b+184>>2]|0,76,t,(l|0)==0?1:l,1,g,j,u)|0;if((q|0)!=0){Le(q);HW(q)}Fe(c[d>>2]|0);j=c[v>>2]|0;if((j|0)!=0){zj(j);HW(j)}fd[c[(c[f>>2]|0)+16>>2]&511](f);i=s;return}function Gh(b,d,e,f,g,j,l,m,n,o,p,q,r){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;j=j|0;l=l|0;m=m|0;n=n|0;o=o|0;p=p|0;q=q|0;r=r|0;var 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.0,J=0.0;e=i;E=i;i=i+48|0;r=E;s=i;i=i+32|0;m=s;C=i;i=i+32|0;z=C;B=i;i=i+8|0;A=B;x=i;i=i+8|0;y=x;v=i;i=i+16|0;w=v;u=i;i=i+8|0;t=u;G=d+16|0;F=0;do{h[k>>3]=+h[d+16+(F<<3)>>3];H=c[k+4>>2]&2146435072;F=F+1|0;if(!(H>>>0<2146435072|(H|0)==2146435072&(c[k>>2]&0)>>>0<0)){D=23;break}}while((F|0)<6);if((D|0)==23){i=e;return}h[E>>3]=+h[G>>3];h[r+8>>3]=+h[d+24>>3];J=+h[d+32>>3];h[r+16>>3]=-0.0-J;I=+h[d+40>>3];h[r+24>>3]=-0.0-I;h[r+32>>3]=J+ +h[d+48>>3];h[r+40>>3]=I+ +h[d+56>>3];D=FW(28)|0;d=q+4|0;yj(D,n,o,c[q+8>>2]|0,c[d>>2]|0);c[C>>2]=D;Aj(D);c[z+4>>2]=q;c[z+12>>2]=0;c[z+16>>2]=1;c[z+20>>2]=o;c[z+24>>2]=p;c[z+28>>2]=0;d=1<<c[d>>2];D=z+8|0;c[D>>2]=we(d)|0;if((d|0)>0){E=0;do{a[u]=E;oB(q,t,y);a[(c[D>>2]|0)+E|0]=(((c[x>>2]|0)*255|0)+32768|0)>>>16;E=E+1|0;}while((E|0)<(d|0))}q=FW(28)|0;d=c[b+180>>2]|0;Ke(q,c[d>>2]|0,c[d+4>>2]|0,1,1,0,1);d=FW(192)|0;Jo(d,q,(a[b+122|0]&1)!=0,0);a[B]=0;ep(d,A,0);yp(d,75,z,1,0,o,p,r)|0;p=c[C>>2]|0;if((p|0)!=0){zj(p);HW(p)}fd[c[(c[n>>2]|0)+16>>2]&511](n);Fe(c[D>>2]|0);if((d|0)!=0){Lo(d);HW(d)}n=b+184|0;bp(c[n>>2]|0,q);p=FW(28)|0;H=l+8|0;o=l+4|0;yj(p,f,g,c[H>>2]|0,c[o>>2]|0);c[s>>2]=p;Aj(p);c[m+4>>2]=l;c[m+12>>2]=0;p=b+112|0;q=c[p>>2]|0;c[m+16>>2]=q;c[m+20>>2]=g;c[m+24>>2]=j;c[m+28>>2]=0;b=m+8|0;c[b>>2]=0;a:do{if((c[H>>2]|0)==1){o=1<<c[o>>2];switch(q|0){case 3:case 2:{c[b>>2]=ye(o,3)|0;if((o|0)<=0){break a}x=w+4|0;y=w+8|0;q=0;do{a[u]=q;pB(l,t,w);H=q*3|0;a[(c[b>>2]|0)+H|0]=(((c[v>>2]|0)*255|0)+32768|0)>>>16;a[(c[b>>2]|0)+(H+1)|0]=(((c[x>>2]|0)*255|0)+32768|0)>>>16;a[(c[b>>2]|0)+(H+2)|0]=(((c[y>>2]|0)*255|0)+32768|0)>>>16;q=q+1|0;}while((q|0)<(o|0));break};case 4:{c[b>>2]=ye(o,4)|0;if((o|0)<=0){break a}y=w+4|0;q=w+8|0;x=0;do{a[u]=x;pB(l,t,w);H=x<<2;a[(c[b>>2]|0)+H|0]=(((c[v>>2]|0)*255|0)+32768|0)>>>16;a[(c[b>>2]|0)+(H|1)|0]=(((c[y>>2]|0)*255|0)+32768|0)>>>16;a[(c[b>>2]|0)+(H|2)|0]=(((c[q>>2]|0)*255|0)+32768|0)>>>16;a[(c[b>>2]|0)+(H|3)|0]=-1;x=x+1|0;}while((x|0)<(o|0));break};case 1:case 0:{c[b>>2]=we(o)|0;if((o|0)>0){v=0}else{break a}do{a[u]=v;oB(l,t,y);a[(c[b>>2]|0)+v|0]=(((c[x>>2]|0)*255|0)+32768|0)>>>16;v=v+1|0;}while((v|0)<(o|0));break};default:{break a}}}}while(0);l=c[p>>2]|0;yp(c[n>>2]|0,75,m,(l|0)==0?1:l,0,g,j,r)|0;bp(c[n>>2]|0,0);Fe(c[b>>2]|0);g=c[s>>2]|0;if((g|0)!=0){zj(g);HW(g)}fdfdFD(b,e);i=g;return b|0}else{b=jd[c[(c[b>>2]|0)+48>>2]&511](b)|0;c[Q>>2]=d;Qe(b,36744,O);b=FW(12)|0;c[b+4>>2]=1;c[b+8>>2]=e;c[b>>2]=48040;i=g;return b|0}}}while(0);if((c[f>>2]|0)==7){n=f+8|0;Yu(c[n>>2]|0,36424,h,0)|0;if((c[k>>2]|0)==1){l=c[j>>2]|0}else{l=1}Of(h);m=c[f>>2]|0;if((m|0)!=7){c[K>>2]=m;c[J+4>>2]=7;Qe(0,48632,J);tc()}Yu(c[n>>2]|0,36440,h,0)|0;if((c[k>>2]|0)==1){m=c[j>>2]|0}else{m=1}Of(h);o=c[f>>2]|0;if((o|0)!=7){c[A>>2]=o;c[B+4>>2]=7;Qe(0,48632,B);tc()}Yu(c[n>>2]|0,36448,h,0)|0;if((c[k>>2]|0)==1){o=c[j>>2]|0}else{o=1}Of(h);f=c[f>>2]|0;if((f|0)!=7){c[x>>2]=f;c[t+4>>2]=7;Qe(0,48632,t);tc()}Yu(c[n>>2]|0,36456,h,0)|0;if((c[k>>2]|0)==1){j=c[j>>2]|0}else{j=8}Of(h);h=j}else{h=8;o=1;m=1;l=1}b=FW(34100)|0;ql(b,e,l,m,o,h);i=g;return b|0}}while(0);if((c[f>>2]|0)==7){do{if((c[(Yu(c[f+8>>2]|0,36656,h,0)|0)>>2]|0)==1){k=c[k>>2]|0;if((k|0)==1){N=c[j>>2]|0;break}else{c[L>>2]=k;c[M+4>>2]=1;Qe(0,48632,M);tc()}}else{N=-1}}while(0);Of(h)}else{N=-1}h=FW(4016)|0;c[h+4>>2]=1;c[h+8>>2]=e;c[h>>2]=43144;c[h+180>>2]=N;a[h+13|0]=0;a[h+12|0]=0;c[h+176>>2]=0;bX(h+16|0,0,16)|0;bX(h+3452|0,0,544)|0;if(a[43240]&1){b=h;i=g;return b|0}bX(43248,0,256)|0;e=0;do{a[e+43504|0]=e;e=e+1|0;}while((e|0)<256);bX(43760|0,-1,256)|0;a[43240]=1;b=h;i=g;return b|0}}while(0);if((c[f>>2]|0)==7){t=f+8|0;Yu(c[t>>2]|0,36544,h,0)|0;if((c[k>>2]|0)==1){q=c[j>>2]|0}else{q=0}Of(h);p=c[f>>2]|0;if((p|0)!=7){c[I>>2]=p;c[F+4>>2]=7;Qe(0,48632,F);tc()}Yu(c[t>>2]|0,36552,h,0)|0;if((c[k>>2]|0)==0){p=(a[j]&1)!=0}else{p=0}Of(h);w=c[f>>2]|0;if((w|0)!=7){c[E>>2]=w;c[C+4>>2]=7;Qe(0,48632,C);tc()}Yu(c[t>>2]|0,36568,h,0)|0;if((c[k>>2]|0)==0){w=(a[j]&1)!=0}else{w=0}Of(h);x=c[f>>2]|0;if((x|0)!=7){c[u>>2]=x;c[v+4>>2]=7;Qe(0,48632,v);tc()}Yu(c[t>>2]|0,36440,h,0)|0;if((c[k>>2]|0)==1){u=c[j>>2]|0}else{u=1728}Of(h);v=c[f>>2]|0;if((v|0)!=7){c[r>>2]=v;c[s+4>>2]=7;Qe(0,48632,s);tc()}Yu(c[t>>2]|0,36592,h,0)|0;if((c[k>>2]|0)==1){r=c[j>>2]|0}else{r=0}Of(h);s=c[f>>2]|0;if((s|0)!=7){c[n>>2]=s;c[o+4>>2]=7;Qe(0,48632,o);tc()}Yu(c[t>>2]|0,36600,h,0)|0;if((c[k>>2]|0)==0){n=(a[j]&1)!=0}else{n=1}Of(h);f=c[f>>2]|0;if((f|0)!=7){c[m>>2]=f;c[l+4>>2]=7;Qe(0,48632,l);tc()}Yu(c[t>>2]|0,36616,h,0)|0;if((c[k>>2]|0)==0){j=(a[j]&1)!=0}else{j=0}Of(h);h=j}else{q=0;h=0;w=0;u=1728;n=1;p=0;r=0}j=FW(68)|0;c[j+4>>2]=1;c[j+8>>2]=e;c[j>>2]=38440;c[j+12>>2]=q;a[j+16|0]=p&1;a[j+17|0]=w&1;e=j+20|0;c[e>>2]=u;do{if((u|0)<1){c[e>>2]=1;u=1}else{if((u|0)<=2147483645){break}c[e>>2]=2147483645;u=2147483645}}while(0);c[j+24>>2]=r;a[j+28|0]=n&1;a[j+29|0]=h&1;e=ze(u+1|0,4)|0;c[j+44>>2]=e;b=ze(u+2|0,4)|0;c[j+48>>2]=b;h=j+30|0;if((e|0)==0|(b|0)==0){a[h]=1}else{a[h]=0;c[e>>2]=u}c[j+32>>2]=0;a[j+31|0]=q>>>31;c[j+40>>2]=0;c[j+52>>2]=0;c[j+60>>2]=0;c[j+64>>2]=-1;b=j;i=g;return b|0}}while(0);b=FW(152)|0;c[b+4>>2]=1;c[b+8>>2]=e;c[b>>2]=38304;Q=b+12|0;c[b+144>>2]=Q;c[b+140>>2]=Q;a[b+148|0]=0;i=g;return b|0}}while(0);if((c[f>>2]|0)==7){m=f+8|0;Yu(c[m>>2]|0,36424,h,0)|0;if((c[k>>2]|0)==1){l=c[j>>2]|0}else{l=1}Of(h);n=c[f>>2]|0;if((n|0)!=7){c[H>>2]=n;c[G+4>>2]=7;Qe(0,48632,G);tc()}Yu(c[m>>2]|0,36440,h,0)|0;if((c[k>>2]|0)==1){n=c[j>>2]|0}else{n=1}Of(h);o=c[f>>2]|0;if((o|0)!=7){c[D>>2]=o;c[z+4>>2]=7;Qe(0,48632,z);tc()}Yu(c[m>>2]|0,36448,h,0)|0;if((c[k>>2]|0)==1){o=c[j>>2]|0}else{o=1}Of(h);r=c[f>>2]|0;if((r|0)!=7){c[w>>2]=r;c[y+4>>2]=7;Qe(0,48632,y);tc()}Yu(c[m>>2]|0,36456,h,0)|0;if((c[k>>2]|0)==1){r=c[j>>2]|0}else{r=8}Of(h);f=c[f>>2]|0;if((f|0)!=7){c[q>>2]=f;c[p+4>>2]=7;Qe(0,48632,p);tc()}Yu(c[m>>2]|0,36480,h,0)|0;if((c[k>>2]|0)==1){j=c[j>>2]|0}else{j=1}Of(h)}else{r=8;o=1;n=1;j=1;l=1}b=FW(53324)|0;tk(b,e,l,n,o,r,j);i=g;return b|0}}while(0);b=FW(60)|0;c[b+4>>2]=1;c[b+8>>2]=e;c[b>>2]=37936;c[b+52>>2]=0;c[b+48>>2]=0;a[b+56|0]=0;i=g;return b|0}}while(0);b=FW(20)|0;c[b+4>>2]=1;c[b+8>>2]=e;c[b>>2]=37760;c[b+12>>2]=-1;a[b+16|0]=0;i=g;return b|0}function sj(a){a=a|0;var b=0;b=i;c[a>>2]=36776;Of(a+16|0);HW(a);i=b;return}function tj(a){a=a|0;var b=0;b=i;c[a>>2]=36776;Of(a+16|0);i=b;return}function uj(a,b){a=a|0;b=b|0;c[a+4>>2]=1;c[a>>2]=36904;c[a+8>>2]=b;i=i;return}function vj(a){a=a|0;var b=0;b=i;HW(a);i=b;return}function wj(a){a=a|0;var b=0;b=i;a=c[a+8>>2]|0;fd[c[(c[a>>2]|0)+16>>2]&511](a);i=b;return}function xj(a,b,c){a=a|0;b=b|0;c=c|0;c=i;b=i;i=i+8|0;Qe(-1,37e3,b);i=c;return}function yj(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;g=i;c[a>>2]=b;c[a+4>>2]=d;c[a+8>>2]=e;c[a+12>>2]=f;h=da(e,d)|0;b=a+16|0;c[b>>2]=h;if((f|0)==1){h=h+7&-8}c[a+20>>2]=ye((2147483647/(e|0)|0|0)<(d|0)?-1:h,1)|0;c[a+24>>2]=c[b>>2];i=g;return}function zj(a){a=a|0;var b=0;b=i;Fe(c[a+20>>2]|0);i=b;return}function Aj(a){a=a|0;var b=0;b=i;a=c[a>>2]|0;fdfd[c[(c[d>>2]|0)+4>>2]&511](d);HW(a);i=b;return}function ik(a){a=a|0;var b=0;b=i;c[a>>2]=37760;a=c[a+8>>2]|0;if((a|0)==0){i=b;return}fd[c[(c[a>>2]|0)+4>>2]&511](a);i=b;return}function jk(b){b=b|0;var d=0,e=0;d=i;e=c[b+8>>2]|0;fd[c[(c[e>>2]|0)+12>>2]&511](e);c[b+12>>2]=-1;a[b+16|0]=0;i=d;return}function kk(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0;d=i;f=i;i=i+8|0;g=f;j=i;i=i+8|0;k=j;e=b+12|0;h=c[e>>2]|0;if((h|0)!=-1){n=h;i=d;return n|0}h=b+16|0;if((a[h]&1)!=0){c[e>>2]=-1;n=-1;i=d;return n|0}n=b+8|0;do{l=c[n>>2]|0;l=jd[c[(c[l>>2]|0)+20>>2]&511](l)|0;}while((xc(l|0)|0)!=0);if((l|0)==62){a[h]=1;c[e>>2]=-1;n=-1;i=d;return n|0}do{m=c[n>>2]|0;m=jd[c[(c[m>>2]|0)+20>>2]&511](m)|0;}while((xc(m|0)|0)!=0);if((m|0)==62){a[h]=1;m=48}do{if((l+ -48|0)>>>0<10){k=(l<<4)+ -768|0}else{if((l+ -65|0)>>>0<6){k=(l<<4)+ -880|0;break}if((l+ -97|0)>>>0<6){k=(l<<4)+ -1392|0;break}if((l|0)==-1){a[h]=1;k=0;break}else{n=jd[c[(c[b>>2]|0)+48>>2]&511](b)|0;c[j>>2]=l;Qe(n,37856,k);k=0;break}}}while(0);j=m+ -48|0;do{if(j>>>0<10){k=j+k|0}else{if((m+ -65|0)>>>0<6){k=m+ -55+k|0;break}if((m+ -97|0)>>>0<6){k=m+ -87+k|0;break}if((m|0)==-1){a[h]=1;k=0;break}else{n=jd[c[(c[b>>2]|0)+48>>2]&511](b)|0;c[f>>2]=m;Qe(n,37856,g);break}}}while(0);n=k&255;c[e>>2]=n;i=d;return n|0}function lk(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;e=i;if((b|0)<2){b=0;i=e;return b|0}a=c[a+8>>2]|0;a=sd[c[(c[a>>2]|0)+56>>2]&127](a,b,d)|0;if((a|0)==0){b=0;i=e;return b|0}ne(ne(a,d,-1)|0,37904,-1)|0;b=a;i=e;return b|0}function mk(a,b){a=a|0;b=b|0;var d=0;d=i;b=c[a+8>>2]|0;b=Bd[c[(c[b>>2]|0)+60>>2]&255](b,0)|0;i=d;return b|0}function nk(a){a=a|0;var b=0,d=0;b=i;c[a>>2]=37936;d=c[a+8>>2]|0;if((d|0)==0){HW(a);i=b;return}fd[c[(c[d>>2]|0)+4>>2]&511](d);HW(a);i=b;return}function ok(a){a=a|0;var b=0;b=i;c[a>>2]=37936;a=c[a+8>>2]|0;if((a|0)==0){i=b;return}fd[c[(c[a>>2]|0)+4>>2]&511](a);i=b;return}function pk(b){b=b|0;var d=0,e=0;d=i;e=c[b+8>>2]|0;fd[c[(c[e>>2]|0)+12>>2]&511](e);c[b+52>>2]=0;c[b+48>>2]=0;a[b+56|0]=0;i=d;return}function qk(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0;g=i;e=b+48|0;h=b+52|0;do{if((c[e>>2]|0)>=(c[h>>2]|0)){f=b+56|0;if((a[f]&1)!=0){l=-1;i=g;return l|0}c[e>>2]=0;j=b+8|0;d=b+12|0;do{l=c[j>>2]|0;l=jd[c[(c[l>>2]|0)+20>>2]&511](l)|0;c[d>>2]=l;}while(hE(l)|0);k=c[d>>2]|0;if((k|0)==-1|(k|0)==126){a[f]=1;c[h>>2]=0;l=-1;i=g;return l|0}else if((k|0)==122){bX(b+32|0,0,16)|0;c[h>>2]=4;break}else{k=1;while(1){l=b+12+(k<<2)|0;do{m=c[j>>2]|0;m=jd[c[(c[m>>2]|0)+20>>2]&511](m)|0;c[l>>2]=m;}while(hE(m)|0);m=c[l>>2]|0;if((m|0)==-1|(m|0)==126){j=12;break}l=k+1|0;if((l|0)<5){k=l}else{j=16;break}}do{if((j|0)==12){c[h>>2]=k+ -1;m=c[l>>2]|0;if(!((m|0)==-1|(m|0)==126)){break}h=k+1|0;if((h|0)<5){do{c[b+12+(h<<2)>>2]=117;h=h+1|0;}while((h|0)<5)}a[f]=1}else if((j|0)==16){c[h>>2]=k}}while(0);m=((((((((c[d>>2]|0)*85|0)+ -2838+(c[b+16>>2]|0)|0)*85|0)+ -33+(c[b+20>>2]|0)|0)*85|0)+ -33+(c[b+24>>2]|0)|0)*85|0)+ -33+(c[b+28>>2]|0)|0;c[b+44>>2]=m&255;c[b+40>>2]=m>>>8&255;c[b+36>>2]=m>>>16&255;c[b+32>>2]=m>>>24;break}}}while(0);m=c[b+32+(c[e>>2]<<2)>>2]|0;i=g;return m|0}function rk(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;e=i;if((b|0)<2){b=0;i=e;return b|0}a=c[a+8>>2]|0;a=sd[c[(c[a>>2]|0)+56>>2]&127](a,b,d)|0;if((a|0)==0){b=0;i=e;return b|0}ne(ne(a,d,-1)|0,38032,-1)|0;b=a;i=e;return b|0}function sk(a,b){a=a|0;b=b|0;var d=0;d=i;b=c[a+8>>2]|0;b=Bd[c[(c[b>>2]|0)+60>>2]&255](b,0)|0;i=d;return b|0}function tk(b,d,e,f,g,h,j){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;j=j|0;var k=0,l=0,m=0,n=0,o=0;k=i;c[b+4>>2]=1;c[b+8>>2]=d;c[b>>2]=38064;a:do{if((e|0)==1){c[b+12>>2]=0}else{d=FW(44)|0;c[d>>2]=b;c[d+4>>2]=e;c[d+8>>2]=f;c[d+12>>2]=g;c[d+16>>2]=h;e=d+32|0;c[e>>2]=0;n=d+40|0;a[n]=0;o=da(g,f)|0;c[d+20>>2]=o;l=(da(h,g)|0)+7>>3;c[d+24>>2]=l;l=((da(o,h)|0)+7>>3)+l|0;m=d+28|0;c[m>>2]=l;do{if(!((f|0)<1|(g|0)<1)){if((h|0)<1|(g|0)>32|(h|0)>16){break}if((2147483647/(g|0)|0|0)<=(f|0)){break}if((o|0)>=(2147483640/(h|0)|0|0)){break}o=we(l)|0;c[e>>2]=o;bX(o|0,0,c[m>>2]|0)|0;c[d+36>>2]=c[m>>2];a[n]=1;c[b+12>>2]=d;break a}}while(0);g=b+12|0;c[g>>2]=d;if((d|0)!=0){Fe(c[e>>2]|0);HW(d)}c[g>>2]=0}}while(0);c[b+16>>2]=j;a[b+20|0]=0;c[b+28>>2]=0;c[b+49196>>2]=258;c[b+49200>>2]=9;c[b+53312>>2]=0;c[b+53316>>2]=0;a[b+53320|0]=1;i=k;return}function uk(a){a=a|0;var b=0,d=0;b=i;c[a>>2]=38064;d=c[a+12>>2]|0;if((d|0)!=0){Fe(c[d+32>>2]|0);HW(d)}d=c[a+8>>2]|0;if((d|0)==0){HW(a);i=b;return}fd[c[(c[d>>2]|0)+4>>2]&511](d);HW(a);i=b;return}function vk(a){a=a|0;var b=0,d=0;b=i;c[a>>2]=38064;d=c[a+12>>2]|0;if((d|0)!=0){Fe(c[d+32>>2]|0);HW(d)}a=c[a+8>>2]|0;if((a|0)==0){i=b;return}fd[c[(c[a>>2]|0)+4>>2]&511](a);i=b;return}function wk(b){b=b|0;var e=0,f=0,g=0;e=i;f=c[b+12>>2]|0;if((f|0)!=0){b=f+36|0;g=c[b>>2]|0;do{if((g|0)>=(c[f+28>>2]|0)){if(Cj(f)|0){g=c[b>>2]|0;break}else{g=-1;i=e;return g|0}}}while(0);c[b>>2]=g+1;g=d[(c[f+32>>2]|0)+g|0]|0;i=e;return g|0}if((a[b+20|0]&1)!=0){g=-1;i=e;return g|0}f=b+53316|0;g=c[f>>2]|0;do{if((g|0)>=(c[b+53312>>2]|0)){if(xk(b)|0){g=c[f>>2]|0;break}else{g=-1;i=e;return g|0}}}while(0);c[f>>2]=g+1;g=d[b+49212+g|0]|0;i=e;return g|0}function xk(b){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;d=i;m=i;i=i+8|0;n=i;i=i+8|0;k=b+20|0;if((a[k]&1)!=0){t=0;i=d;return t|0}p=b+28|0;f=b+49200|0;q=b+8|0;r=b+24|0;g=b+49196|0;l=b+53312|0;e=b+53316|0;h=b+53320|0;t=c[f>>2]|0;s=c[p>>2]|0;a:while(1){if((s|0)<(t|0)){do{j=c[q>>2]|0;j=jd[c[(c[j>>2]|0)+20>>2]&511](j)|0;if((j|0)==-1){o=8;break a}j=c[r>>2]<<8|j&255;c[r>>2]=j;s=(c[p>>2]|0)+8|0;c[p>>2]=s;t=c[f>>2]|0;}while((s|0)<(t|0))}else{j=c[r>>2]|0}s=s-t|0;j=j>>s&(1<<t)+ -1;c[p>>2]=s;if((j|0)==257|(j|0)==-1){o=8;break}else if((j|0)!=256){break}c[g>>2]=258;c[f>>2]=9;c[l>>2]=0;c[e>>2]=0;a[h]=1;t=9}if((o|0)==8){a[k]=1;t=0;i=d;return t|0}p=c[g>>2]|0;if((p|0)>4096){Qe(jd[c[(c[b>>2]|0)+48>>2]&511](b)|0,38160,n);c[g>>2]=258;c[f>>2]=9;c[l>>2]=0;c[e>>2]=0;a[h]=1;o=0;p=258}else{o=c[l>>2]|0}n=o+1|0;do{if((j|0)<256){t=j&255;a[b+49212|0]=t;c[l>>2]=1;l=t}else{if((j|0)<(p|0)){k=c[b+32+(j*12|0)>>2]|0;c[l>>2]=k;k=k+ -1|0;l=j&255;if((k|0)>0){l=j;do{a[b+49212+k|0]=a[b+32+(l*12|0)+8|0]|0;l=c[b+32+(l*12|0)+4>>2]|0;k=k+ -1|0;}while((k|0)>0);l=l&255}a[b+49212|0]=l;break}else{if((j|0)==(p|0)){a[b+49212+o|0]=c[b+49208>>2];c[l>>2]=(c[l>>2]|0)+1;l=a[b+49212|0]|0;break}Qe(jd[c[(c[b>>2]|0)+48>>2]&511](b)|0,38208,m);a[k]=1;t=0;i=d;return t|0}}}while(0);k=b+49208|0;c[k>>2]=l&255;do{if((a[h]&1)==0){c[b+32+((c[g>>2]|0)*12|0)>>2]=n;h=b+49204|0;c[b+32+((c[g>>2]|0)*12|0)+4>>2]=c[h>>2];a[b+32+((c[g>>2]|0)*12|0)+8|0]=c[k>>2];t=(c[g>>2]|0)+1|0;c[g>>2]=t;b=t+(c[b+16>>2]|0)|0;if((b|0)==512){c[f>>2]=10;break}else if((b|0)==1024){c[f>>2]=11;break}else if((b|0)==2048){c[f>>2]=12;break}else{break}}else{a[h]=0;h=b+49204|0}}while(0);c[h>>2]=j;c[e>>2]=0;t=1;i=d;return t|0}function yk(b){b=b|0;var e=0,f=0,g=0;e=i;f=c[b+12>>2]|0;if((f|0)!=0){g=f+36|0;b=c[g>>2]|0;do{if((b|0)>=(c[f+28>>2]|0)){if(Cj(f)|0){b=c[g>>2]|0;break}else{g=-1;i=e;return g|0}}}while(0);g=d[(c[f+32>>2]|0)+b|0]|0;i=e;return g|0}if((a[b+20|0]&1)!=0){g=-1;i=e;return g|0}g=b+53316|0;f=c[g>>2]|0;do{if((f|0)>=(c[b+53312>>2]|0)){if(xk(b)|0){f=c[g>>2]|0;break}else{g=-1;i=e;return g|0}}}while(0);g=d[b+49212+f|0]|0;i=e;return g|0}function zk(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0;j=i;if((e|0)<=0){i=j;return}k=b+20|0;h=b+53316|0;g=b+53312|0;l=0;do{do{if((a[k]&1)==0){m=c[h>>2]|0;if((m|0)>=(c[g>>2]|0)){if(!(xk(b)|0)){m=-1;break}m=c[h>>2]|0}c[h>>2]=m+1;m=d[b+49212+m|0]|0}else{m=-1}}while(0);c[f+(l<<2)>>2]=m;l=l+1|0;}while((l|0)<(e|0));i=j;return}function Ak(b){b=b|0;var e=0,f=0,g=0;e=i;if((a[b+20|0]&1)!=0){g=-1;i=e;return g|0}f=b+53316|0;g=c[f>>2]|0;do{if((g|0)>=(c[b+53312>>2]|0)){if(xk(b)|0){g=c[f>>2]|0;break}else{g=-1;i=e;return g|0}}}while(0);c[f>>2]=g+1;g=d[b+49212+g|0]|0;i=e;return g|0}function Bk(b){b=b|0;var d=0,e=0;d=i;e=c[b+8>>2]|0;fd[c[(c[e>>2]|0)+12>>2]&511](e);a[b+20|0]=0;c[b+28>>2]=0;c[b+49196>>2]=258;c[b+49200>>2]=9;c[b+53312>>2]=0;c[b+53316>>2]=0;a[b+53320|0]=1;i=d;return}function Ck(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;e=i;if((b|0)<2){b=0;i=e;return b|0}if((c[a+12>>2]|0)!=0){b=0;i=e;return b|0}f=c[a+8>>2]|0;b=sd[c[(c[f>>2]|0)+56>>2]&127](f,b,d)|0;if((b|0)==0){f=0;i=e;return f|0}ne(ne(b,d,-1)|0,38248,-1)|0;if((c[a+16>>2]|0)==0){ne(b,38256,-1)|0}ne(b,38272,-1)|0;f=b;i=e;return f|0}function Dk(a,b){a=a|0;b=b|0;var d=0;d=i;b=c[a+8>>2]|0;b=Bd[c[(c[b>>2]|0)+60>>2]&255](b,1)|0;i=d;return b|0}function Ek(a){a=a|0;var b=0,d=0;b=i;c[a>>2]=38304;d=c[a+8>>2]|0;if((d|0)==0){HW(a);i=b;return}fd[c[(c[d>>2]|0)+4>>2]&511](d);HW(a);i=b;return}function Fk(a){a=a|0;var b=0;b=i;c[a>>2]=38304;a=c[a+8>>2]|0;if((a|0)==0){i=b;return}fd[c[(c[a>>2]|0)+4>>2]&511](a);i=b;return}function Gk(b){b=b|0;var d=0,e=0;d=i;e=c[b+8>>2]|0;fd[c[(c[e>>2]|0)+12>>2]&511](e);e=b+12|0;c[b+144>>2]=e;c[b+140>>2]=e;a[b+148|0]=0;i=d;return}function Hk(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;e=i;if((b|0)<2){b=0;i=e;return b|0}a=c[a+8>>2]|0;a=sd[c[(c[a>>2]|0)+56>>2]&127](a,b,d)|0;if((a|0)==0){b=0;i=e;return b|0}ne(ne(a,d,-1)|0,38400,-1)|0;b=a;i=e;return b|0}function Ik(a,b){a=a|0;b=b|0;var d=0;d=i;b=c[a+8>>2]|0;b=Bd[c[(c[b>>2]|0)+60>>2]&255](b,1)|0;i=d;return b|0}function Jk(a){a=a|0;var b=0,d=0;b=i;c[a>>2]=38440;d=c[a+8>>2]|0;if((d|0)!=0){fd[c[(c[d>>2]|0)+4>>2]&511](d)}Fe(c[a+48>>2]|0);Fe(c[a+44>>2]|0);HW(a);i=b;return}function Kk(a){a=a|0;var b=0,d=0;b=i;c[a>>2]=38440;d=c[a+8>>2]|0;if((d|0)!=0){fd[c[(c[d>>2]|0)+4>>2]&511](d)}Fe(c[a+48>>2]|0);Fe(c[a+44>>2]|0);i=b;return}function Lk(b){b=b|0;var d=0,e=0;d=i;e=c[b+8>>2]|0;fd[c[(c[e>>2]|0)+12>>2]&511](e);c[b+32>>2]=0;a[b+31|0]=(c[b+12>>2]|0)>>>31;c[b+40>>2]=0;c[b+52>>2]=0;c[b+60>>2]=0;c[b+64>>2]=-1;i=d;return}function Mk(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0;d=i;fd|0}}while(0);f=jd[c[(c[d>>2]|0)+48>>2]&511](d)|0;c[h>>2]=l<<16>>16;Qe(f,42928,g);f=d+40|0;g=(c[f>>2]|0)+ -1|0;c[f>>2]=(g|0)<0?0:g;O=1;i=e;return O|0}function Qk(d){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,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0;e=i;g=i;i=i+8|0;h=g;f=d+40|0;a:do{if((a[d+28|0]&1)==0){t=d+8|0;u=d+36|0;E=c[f>>2]|0;D=1;b:while(1){c:do{if((E|0)<(D|0)){while(1){E=c[t>>2]|0;E=jd[c[(c[E>>2]|0)+20>>2]&511](E)|0;if((E|0)==-1){break}E=(c[u>>2]<<8)+E|0;c[u>>2]=E;F=(c[f>>2]|0)+8|0;c[f>>2]=F;if((F|0)>=(D|0)){y=F;A=E;j=23;break c}}C=c[f>>2]|0;if((C|0)==0){q=1;j=42;break b}F=c[u>>2]|0;x=C;z=F;C=F<<D-C&65535>>>(16-D|0)}else{y=E;A=c[u>>2]|0;j=23}}while(0);if((j|0)==23){j=0;x=y;z=A;C=A>>y-D&65535>>>(16-D|0)}E=C&65535;if(E<<16>>16==-1){q=1;j=42;break}if((D|0)<9){E=E<<16>>16<<9-D&65535}B=E<<16>>16;F=D+1|0;if((b[39296+(B<<2)>>1]|0)==(D|0)){j=28;break}if((F|0)<10){E=x;D=F}else{w=x;v=z;p=11;j=30;break}}if((j|0)==28){g=x-D|0;c[f>>2]=(g|0)<0?0:g;F=b[39298+(B<<2)>>1]|0;i=e;return F|0}else if((j|0)==30){d:while(1){j=0;e:do{if((w|0)<(p|0)){while(1){v=c[t>>2]|0;v=jd[c[(c[v>>2]|0)+20>>2]&511](v)|0;if((v|0)==-1){break}w=(c[u>>2]<<8)+v|0;c[u>>2]=w;v=(c[f>>2]|0)+8|0;c[f>>2]=v;if((v|0)>=(p|0)){r=v;l=w;j=35;break e}}s=c[f>>2]|0;if((s|0)==0){q=1;j=42;break d}F=c[u>>2]|0;m=s;n=F;s=F<<p-s&65535>>>(16-p|0)}else{r=w;l=v;j=35}}while(0);if((j|0)==35){m=r;n=l;s=l>>r-p&65535>>>(16-p|0)}v=s&65535;if(v<<16>>16==-1){q=1;j=42;break}if((p|0)<12){v=v<<16>>16<<12-p&65535}k=v<<16>>16;j=p+1|0;if((b[39168+(k<<2)>>1]|0)==(p|0)){j=40;break}if((j|0)<13){w=m;v=n;p=j}else{o=v;break a}}if((j|0)==40){g=m-p|0;c[f>>2]=(g|0)<0?0:g;F=b[39170+(k<<2)>>1]|0;i=e;return F|0}else if((j|0)==42){i=e;return q|0}}else if((j|0)==42){i=e;return q|0}}else{k=c[f>>2]|0;f:do{if((k|0)<12){l=d+8|0;k=d+36|0;while(1){m=c[l>>2]|0;m=jd[c[(c[m>>2]|0)+20>>2]&511](m)|0;if((m|0)==-1){break}m=(c[k>>2]<<8)+m|0;c[k>>2]=m;n=(c[f>>2]|0)+8|0;c[f>>2]=n;if((n|0)>=12){u=m;D=n;j=10;break f}}l=c[f>>2]|0;if((l|0)==0){F=1;i=e;return F|0}else{t=l;E=c[k>>2]<<12-l;break}}else{u=c[d+36>>2]|0;D=k;j=10}}while(0);if((j|0)==10){t=D;E=u>>D+ -12}o=E&4095;j=o&65535;if((o&65535)<32){j=39168+(j<<2)|0}else{j=39296+(j>>>3<<2)|0}k=b[j>>1]|0;if(k<<16>>16<=0){break}g=t-(k<<16>>16)|0;c[f>>2]=(g|0)<0?0:g;F=b[j+2>>1]|0;i=e;return F|0}}while(0);f=jd[c[(c[d>>2]|0)+48>>2]&511](d)|0;c[g>>2]=o<<16>>16;Qe(f,41344,h);f=d+40|0;g=(c[f>>2]|0)+ -1|0;c[f>>2]=(g|0)<0?0:g;F=1;i=e;return F|0}function Rk(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0;f=i;n=i;i=i+8|0;l=i;i=i+8|0;k=l;g=b+52|0;j=c[g>>2]|0;h=b+44|0;m=c[(c[h>>2]|0)+(j<<2)>>2]|0;if((m|0)<(d|0)){m=b+20|0;if((c[m>>2]|0)<(d|0)){j=jd[c[(c[b>>2]|0)+48>>2]&511](b)|0;c[l>>2]=d;Qe(j,48704,k);a[b+56|0]=1;j=c[g>>2]|0;d=c[m>>2]|0}if((j&1|0)!=(e|0)){j=j+1|0;c[g>>2]=j}c[(c[h>>2]|0)+(j<<2)>>2]=d;i=f;return}if((m|0)<=(d|0)){i=f;return}if((d|0)<0){Qe(jd[c[(c[b>>2]|0)+48>>2]&511](b)|0,48744,n);a[b+56|0]=1;d=0;j=c[g>>2]|0}h=c[h>>2]|0;a:do{if((j|0)>0){while(1){e=j+ -1|0;if((d|0)>(c[h+(e<<2)>>2]|0)){break a}c[g>>2]=e;if((e|0)>0){j=e}else{j=e;break}}}}while(0);c[h+(j<<2)>>2]=d;i=f;return}function Sk(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0;h=i;f=i;i=i+8|0;j=i;i=i+8|0;k=i;i=i+8|0;g=i;i=i+56|0;if((d|0)<2){e=0;i=h;return e|0}l=c[b+8>>2]|0;d=sd[c[(c[l>>2]|0)+56>>2]&127](l,d,e)|0;if((d|0)==0){l=0;i=h;return l|0}ne(ne(d,e,-1)|0,38248,-1)|0;e=c[b+12>>2]|0;if((e|0)!=0){c[k>>2]=e;Lb(g|0,42976,k|0)|0;ne(d,g,-1)|0}if((a[b+16|0]&1)!=0){ne(d,42984,-1)|0}if((a[b+17|0]&1)!=0){ne(d,43008,-1)|0}c[j>>2]=c[b+20>>2];Lb(g|0,43032,j|0)|0;ne(d,g,-1)|0;j=c[b+24>>2]|0;if((j|0)!=0){c[f>>2]=j;Lb(g|0,43048,f|0)|0;ne(d,g,-1)|0}if((a[b+28|0]&1)==0){ne(d,43064,-1)|0}if((a[b+29|0]&1)!=0){ne(d,43088,-1)|0}ne(d,43104,-1)|0;l=d;i=h;return l|0}function Tk(a,b){a=a|0;b=b|0;var d=0;d=i;b=c[a+8>>2]|0;b=Bd[c[(c[b>>2]|0)+60>>2]&255](b,1)|0;i=d;return b|0}function Uk(a){a=a|0;var b=0;b=i;Vk(a);HW(a);i=b;return}function Vk(a){a=a|0;var b=0,d=0,e=0;b=i;c[a>>2]=43144;d=0;do{e=a+3452+(d<<2)|0;Fe(c[e>>2]|0);c[e>>2]=0;d=d+1|0;}while((d|0)<32);d=a+3964|0;Fe(c[d>>2]|0);c[d>>2]=0;d=0;do{e=a+3580+(d<<2)|0;Fe(c[e>>2]|0);c[e>>2]=0;d=d+1|0;}while((d|0)<32);d=a+3968|0;Fe(c[d>>2]|0);c[d>>2]=0;d=0;do{e=a+3708+(d<<2)|0;Fe(c[e>>2]|0);c[e>>2]=0;d=d+1|0;}while((d|0)<32);d=a+3972|0;Fe(c[d>>2]|0);c[d>>2]=0;d=0;do{e=a+3836+(d<<2)|0;Fe(c[e>>2]|0);c[e>>2]=0;d=d+1|0;}while((d|0)<32);e=a+3976|0;Fe(c[e>>2]|0);c[e>>2]=0;a=a+8|0;e=c[a>>2]|0;fd[c[(c[e>>2]|0)+16>>2]&511](e);a=c[a>>2]|0;if((a|0)==0){i=b;return}fd[c[(c[a>>2]|0)+4>>2]&511](a);i=b;return}function Wk(b){b=b|0;var d=0,e=0;d=i;e=c[b+8>>2]|0;fd[c[(c[e>>2]|0)+12>>2]&511](e);a[b+13|0]=0;a[b+12|0]=0;c[b+20>>2]=0;c[b+16>>2]=0;c[b+176>>2]=0;c[b+704>>2]=0;c[b+3444>>2]=0;c[b+3448>>2]=0;a[b+184|0]=0;a[b+185|0]=0;c[b+188>>2]=0;i=d;return}function Xk(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0;e=i;g=i;i=i+8|0;fdfdfd[c[(c[d>>2]|0)+4>>2]&511](d);HW(a);i=b;return}function sl(a){a=a|0;var b=0,d=0;b=i;c[a>>2]=47624;d=c[a+34072>>2]|0;if((d|0)!=(c[11868]|0)){Fe(d)}d=c[a+34080>>2]|0;if((d|0)!=(c[11902]|0)){Fe(d)}d=c[a+12>>2]|0;if((d|0)!=0){Fe(c[d+32>>2]|0);HW(d)}a=c[a+8>>2]|0;if((a|0)==0){i=b;return}fd[c[(c[a>>2]|0)+4>>2]&511](a);i=b;return}function tl(b){b=b|0;var d=0;d=i;a[b+34088|0]=0;bX(b+32784|0,0,16)|0;a[b+34096|0]=1;a[b+34097|0]=1;b=c[b+8>>2]|0;fd[c[(c[b>>2]|0)+12>>2]&511](b);i=d;return}function ul(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0;d=i;h=i;i=i+8|0;f=i;i=i+8|0;e=i;i=i+8|0;fd[c[(c[b>>2]|0)+40>>2]&511](b);g=b+34097|0;a[g]=1;a[b+34096|0]=1;j=b+8|0;k=c[j>>2]|0;k=jd[c[(c[k>>2]|0)+20>>2]&511](k)|0;j=c[j>>2]|0;j=jd[c[(c[j>>2]|0)+20>>2]&511](j)|0;if((k|0)==-1|(j|0)==-1){i=d;return}if((k&15|0)!=8){Qe(jd[c[(c[b>>2]|0)+48>>2]&511](b)|0,47720,e);i=d;return}if(((j+(k<<8)|0)%31|0|0)!=0){Qe(jd[c[(c[b>>2]|0)+48>>2]&511](b)|0,47768,f);i=d;return}if((j&32|0)==0){a[g]=0;i=d;return}else{Qe(jd[c[(c[b>>2]|0)+48>>2]&511](b)|0,47800,h);i=d;return}}function vl(b){b=b|0;var e=0,f=0,g=0,h=0,j=0,k=0;e=i;f=c[b+12>>2]|0;if((f|0)!=0){b=f+36|0;g=c[b>>2]|0;do{if((g|0)>=(c[f+28>>2]|0)){if(Cj(f)|0){g=c[b>>2]|0;break}else{j=-1;i=e;return j|0}}}while(0);c[b>>2]=g+1;j=d[(c[f+32>>2]|0)+g|0]|0;i=e;return j|0}f=b+32788|0;j=c[f>>2]|0;a:do{if((j|0)==0){h=b+34096|0;g=b+34097|0;while(1){if((a[h]&1)!=0){if((a[g]&1)!=0){b=-1;break}}yl(b);j=c[f>>2]|0;if((j|0)!=0){break a}}i=e;return b|0}}while(0);g=b+32784|0;k=c[g>>2]|0;h=d[b+16+k|0]|0;c[g>>2]=k+1&32767;c[f>>2]=j+ -1;j=h;i=e;return j|0}function wl(b,d,e){b=b|0;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;g=i;f=b+12|0;j=c[f>>2]|0;h=(d|0)>0;if((j|0)!=0){if(!h){p=d;i=g;return p|0}l=j+36|0;n=j+28|0;k=j+32|0;m=0;while(1){o=c[l>>2]|0;if((o|0)>=(c[n>>2]|0)){if(!(Cj(j)|0)){j=22;break}o=c[l>>2]|0}c[l>>2]=o+1;a[e+m|0]=a[(c[k>>2]|0)+o|0]|0;m=m+1|0;if((m|0)>=(d|0)){m=d;j=22;break}}if((j|0)==22){i=g;return m|0}}if(!h){p=d;i=g;return p|0}k=b+32788|0;l=b+34096|0;h=b+34097|0;j=b+32784|0;n=0;m=0;a:while(1){if((n|0)==0){n=c[k>>2]|0;if((n|0)==0){do{if((a[l]&1)!=0){if((a[h]&1)!=0){j=22;break a}}yl(b);n=c[k>>2]|0;}while((n|0)==0)}o=c[j>>2]|0;p=a[b+16+o|0]|0;c[j>>2]=o+1&32767;c[k>>2]=n+ -1;n=p}else{o=n+36|0;p=c[o>>2]|0;if((p|0)>=(c[n+28>>2]|0)){if(!(Cj(n)|0)){j=22;break}p=c[o>>2]|0}c[o>>2]=p+1;n=a[(c[n+32>>2]|0)+p|0]|0}a[e+m|0]=n;m=m+1|0;if((m|0)>=(d|0)){m=d;j=22;break}n=c[f>>2]|0}if((j|0)==22){i=g;return m|0}return 0}function xl(b){b=b|0;var e=0,f=0,g=0,h=0;e=i;f=c[b+12>>2]|0;if((f|0)!=0){g=f+36|0;b=c[g>>2]|0;do{if((b|0)>=(c[f+28>>2]|0)){if(Cj(f)|0){b=c[g>>2]|0;break}else{h=-1;i=e;return h|0}}}while(0);h=d[(c[f+32>>2]|0)+b|0]|0;i=e;return h|0}f=b+32788|0;a:do{if((c[f>>2]|0)==0){h=b+34096|0;g=b+34097|0;while(1){if((a[h]&1)!=0){if((a[g]&1)!=0){b=-1;break}}yl(b);if((c[f>>2]|0)!=0){break a}}i=e;return b|0}}while(0);h=d[b+16+(c[b+32784>>2]|0)|0]|0;i=e;return h|0}function yl(d){d=d|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,s=0,t=0;f=i;k=i;i=i+8|0;g=d+34096|0;do{if((a[g]&1)!=0){if(Dl(d)|0){break}i=f;return}}while(0);if((a[d+34088|0]&1)==0){h=d+34092|0;j=c[h>>2]|0;j=(j|0)<32768?j:32768;a:do{if((j|0)>0){k=d+8|0;n=0;l=c[d+32784>>2]|0;while(1){m=c[k>>2]|0;m=jd[c[(c[m>>2]|0)+20>>2]&511](m)|0;if((m|0)==-1){break}a[d+16+l|0]=m;n=n+1|0;if((n|0)<(j|0)){l=l+1&32767}else{break a}}a[d+34097|0]=1;a[g]=1}else{n=0}}while(0);c[d+32788>>2]=n;s=c[h>>2]|0;c[h>>2]=s-j;if((s|0)!=(j|0)){i=f;return}a[g]=1;i=f;return}l=d+8|0;h=d+32796|0;m=c[h>>2]|0;n=d+34076|0;o=c[n>>2]|0;j=d+32792|0;b:do{if((m|0)<(o|0)){while(1){m=c[l>>2]|0;m=jd[c[(c[m>>2]|0)+20>>2]&511](m)|0;if((m|0)==-1){break}o=c[h>>2]|0;c[j>>2]=c[j>>2]|(m&255)<<o;m=o+8|0;c[h>>2]=m;o=c[n>>2]|0;if((m|0)>=(o|0)){break b}}m=c[h>>2]|0;o=c[n>>2]|0}}while(0);n=c[j>>2]|0;o=(1<<o)+ -1&n;p=c[d+34072>>2]|0;c:do{if((m|0)!=0){q=p+(o<<2)|0;s=b[q>>1]|0;r=s&65535;if((m|0)<(r|0)|s<<16>>16==0){break}n=n>>r;c[j>>2]=n;q=m-(e[q>>1]|0)|0;c[h>>2]=q;m=b[p+(o<<2)+2>>1]|0;if((m&65535)<256){a[d+16+(c[d+32784>>2]|0)|0]=m;c[d+32788>>2]=1;i=f;return}if(m<<16>>16==256){a[g]=1;c[d+32788>>2]=0;i=f;return}m=(m&65535)+ -257|0;o=c[44936+(m<<3)>>2]|0;if((o|0)>0){if((q|0)<(o|0)){do{n=c[l>>2]|0;n=jd[c[(c[n>>2]|0)+20>>2]&511](n)|0;if((n|0)==-1){break c}q=c[h>>2]|0;n=c[j>>2]|(n&255)<<q;c[j>>2]=n;q=q+8|0;c[h>>2]=q;}while((q|0)<(o|0))}p=n&(1<<o)+ -1;n=n>>o;c[j>>2]=n;q=q-o|0;c[h>>2]=q;if((p|0)==-1){break}else{o=p}}m=(c[44940+(m<<3)>>2]|0)+o|0;p=d+34084|0;r=c[p>>2]|0;d:do{if((q|0)<(r|0)){while(1){n=c[l>>2]|0;n=jd[c[(c[n>>2]|0)+20>>2]&511](n)|0;if((n|0)==-1){break}o=c[h>>2]|0;n=c[j>>2]|(n&255)<<o;c[j>>2]=n;o=o+8|0;c[h>>2]=o;q=c[p>>2]|0;if((o|0)>=(q|0)){break d}}n=c[j>>2]|0;o=c[h>>2]|0;q=c[p>>2]|0}else{o=q;q=r}}while(0);q=(1<<q)+ -1&n;p=c[d+34080>>2]|0;if((o|0)==0){break}s=p+(q<<2)|0;t=b[s>>1]|0;r=t&65535;if((o|0)<(r|0)|t<<16>>16==0){break}r=n>>r;c[j>>2]=r;s=o-(e[s>>1]|0)|0;c[h>>2]=s;n=e[p+(q<<2)+2>>1]|0;o=c[45184+(n<<3)>>2]|0;if((o|0)>0){if((s|0)<(o|0)){do{p=c[l>>2]|0;p=jd[c[(c[p>>2]|0)+20>>2]&511](p)|0;if((p|0)==-1){break c}s=c[h>>2]|0;r=c[j>>2]|(p&255)<<s;c[j>>2]=r;s=s+8|0;c[h>>2]=s;}while((s|0)<(o|0))}l=r&(1<<o)+ -1;c[j>>2]=r>>o;c[h>>2]=s-o;if((l|0)==-1){break}else{o=l}}h=c[d+32784>>2]|0;if((m|0)>0){g=h;j=h-((c[45188+(n<<3)>>2]|0)+o)|0;h=0;while(1){j=j&32767;a[d+16+g|0]=a[d+16+j|0]|0;h=h+1|0;if((h|0)<(m|0)){j=j+1|0;g=g+1&32767}else{break}}}c[d+32788>>2]=m;i=f;return}}while(0);Qe(jd[c[(c[d>>2]|0)+48>>2]&511](d)|0,47864,k);a[d+34097|0]=1;a[g]=1;c[d+32788>>2]=0;i=f;return}function zl(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;l=i;if((e|0)<=0){i=l;return}k=b+32788|0;g=b+34096|0;j=b+34097|0;m=b+32784|0;n=0;do{o=c[k>>2]|0;a:do{if((o|0)==0){while(1){if((a[g]&1)!=0){if((a[j]&1)!=0){o=-1;break a}}yl(b);o=c[k>>2]|0;if((o|0)!=0){h=7;break}}}else{h=7}}while(0);if((h|0)==7){h=0;q=c[m>>2]|0;p=d[b+16+q|0]|0;c[m>>2]=q+1&32767;c[k>>2]=o+ -1;o=p}c[f+(n<<2)>>2]=o;n=n+1|0;}while((n|0)<(e|0));i=l;return}function Al(b){b=b|0;var e=0,f=0,g=0,h=0,j=0,k=0;e=i;f=b+32788|0;j=c[f>>2]|0;a:do{if((j|0)==0){h=b+34096|0;g=b+34097|0;while(1){if((a[h]&1)!=0){if((a[g]&1)!=0){b=-1;break}}yl(b);j=c[f>>2]|0;if((j|0)!=0){break a}}i=e;return b|0}}while(0);g=b+32784|0;k=c[g>>2]|0;h=d[b+16+k|0]|0;c[g>>2]=k+1&32767;c[f>>2]=j+ -1;j=h;i=e;return j|0}function Bl(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;e=i;if((b|0)<3){b=0;i=e;return b|0}if((c[a+12>>2]|0)!=0){b=0;i=e;return b|0}a=c[a+8>>2]|0;a=sd[c[(c[a>>2]|0)+56>>2]&127](a,b,d)|0;if((a|0)==0){b=0;i=e;return b|0}ne(ne(a,d,-1)|0,47832,-1)|0;b=a;i=e;return b|0}function Cl(a,b){a=a|0;b=b|0;var d=0;d=i;b=c[a+8>>2]|0;b=Bd[c[(c[b>>2]|0)+60>>2]&255](b,1)|0;i=d;return b|0}function Dl(b){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;d=i;e=i;i=i+8|0;f=i;i=i+8|0;h=b+34072|0;g=c[h>>2]|0;if((g|0)!=(c[11868]|0)){Fe(g)}c[h>>2]=0;j=b+34080|0;g=c[j>>2]|0;if((g|0)!=(c[11902]|0)){Fe(g)}c[j>>2]=0;g=b+32796|0;m=c[g>>2]|0;a:do{if((m|0)<3){n=b+8|0;m=b+32792|0;while(1){k=c[n>>2]|0;k=jd[c[(c[k>>2]|0)+20>>2]&511](k)|0;if((k|0)==-1){n=-1;k=11;break a}o=c[g>>2]|0;l=c[m>>2]|(k&255)<<o;c[m>>2]=l;k=o+8|0;c[g>>2]=k;if((k|0)>=3){m=k;k=10;break}}}else{l=c[b+32792>>2]|0;k=10}}while(0);if((k|0)==10){n=l&7;c[b+32792>>2]=l>>3;c[g>>2]=m+ -3;if((l&1|0)!=0){k=11}}if((k|0)==11){a[b+34097|0]=1}k=n>>1;do{if((k|0)==0){a[b+34088|0]=0;j=b+8|0;k=c[j>>2]|0;k=jd[c[(c[k>>2]|0)+20>>2]&511](k)|0;if((k|0)==-1){k=23;break}h=b+34092|0;c[h>>2]=k&255;k=c[j>>2]|0;k=jd[c[(c[k>>2]|0)+20>>2]&511](k)|0;if((k|0)==-1){k=23;break}c[h>>2]=c[h>>2]|k<<8&65280;k=c[j>>2]|0;k=jd[c[(c[k>>2]|0)+20>>2]&511](k)|0;if((k|0)==-1){k=23;break}j=c[j>>2]|0;j=jd[c[(c[j>>2]|0)+20>>2]&511](j)|0;if((j|0)==-1){k=23;break}if((j<<8&65280|k&255|0)!=(c[h>>2]&65535^65535|0)){Qe(jd[c[(c[b>>2]|0)+48>>2]&511](b)|0,47904,f)}c[b+32792>>2]=0;c[g>>2]=0;k=22}else if((k|0)==1){a[b+34088|0]=1;c[h>>2]=c[11868];c[b+34076>>2]=c[47476>>2];c[j>>2]=c[11902];c[b+34084>>2]=c[47612>>2];k=22}else if((k|0)==2){a[b+34088|0]=1;if(El(b)|0){k=22}else{k=23}}else{k=23}}while(0);if((k|0)==22){a[b+34096|0]=0;o=1;i=d;return o|0}else if((k|0)==23){Qe(jd[c[(c[b>>2]|0)+48>>2]&511](b)|0,47952,e);a[b+34097|0]=1;a[b+34096|0]=1;o=0;i=d;return o|0}return 0}function El(a){a=a|0;var d=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;f=i;d=i;i=i+8|0;l=i;i=i+80|0;n=l;p=i;i=i+8|0;o=p;c[p>>2]=0;g=a+32796|0;q=c[g>>2]|0;a:do{if((q|0)<5){k=a+8|0;h=a+32792|0;while(1){j=c[k>>2]|0;j=jd[c[(c[j>>2]|0)+20>>2]&511](j)|0;if((j|0)==-1){p=0;break a}q=c[g>>2]|0;j=c[h>>2]|(j&255)<<q;c[h>>2]=j;q=q+8|0;c[g>>2]=q;if((q|0)>=5){m=6;break}}}else{j=c[a+32792>>2]|0;m=6}}while(0);b:do{if((m|0)==6){h=a+32792|0;k=j>>5;c[h>>2]=k;q=q+ -5|0;c[g>>2]=q;j=(j&31)+257|0;if((q|0)<5){q=a+8|0;while(1){k=c[q>>2]|0;k=jd[c[(c[k>>2]|0)+20>>2]&511](k)|0;if((k|0)==-1){p=0;break b}r=c[g>>2]|0;k=c[h>>2]|(k&255)<<r;c[h>>2]=k;r=r+8|0;c[g>>2]=r;if((r|0)>=5){s=r;break}}}else{s=q}r=k&31;q=k>>5;c[h>>2]=q;t=s+ -5|0;c[g>>2]=t;k=r+1|0;if((t|0)<4){s=a+8|0;do{q=c[s>>2]|0;q=jd[c[(c[q>>2]|0)+20>>2]&511](q)|0;if((q|0)==-1){p=0;break b}t=c[g>>2]|0;q=c[h>>2]|(q&255)<<t;c[h>>2]=q;t=t+8|0;c[g>>2]=t;}while((t|0)<4)}s=q>>4;c[h>>2]=s;t=t+ -4|0;c[g>>2]=t;q=(q&15)+4|0;if(j>>>0>288|r>>>0>29|q>>>0>19){p=0;break}bX(l|0,0,76)|0;l=a+8|0;r=0;c:while(1){if((t|0)<3){do{s=c[l>>2]|0;s=jd[c[(c[s>>2]|0)+20>>2]&511](s)|0;if((s|0)==-1){m=18;break c}t=c[g>>2]|0;s=c[h>>2]|(s&255)<<t;c[h>>2]=s;t=t+8|0;c[g>>2]=t;}while((t|0)<3)}u=s>>3;c[h>>2]=u;t=t+ -3|0;c[g>>2]=t;c[n+(c[44856+(r<<2)>>2]<<2)>>2]=s&7;r=r+1|0;if((r|0)<(q|0)){s=u}else{break}}if((m|0)==18){c[n+(c[44856+(r<<2)>>2]<<2)>>2]=-1;p=0;break}Fl(0,n,19,o);n=k+j|0;o=c[o+4>>2]|0;p=c[p>>2]|0;q=a+32800|0;r=0;m=0;d:while(1){while(1){s=c[g>>2]|0;e:do{if((s|0)<(o|0)){while(1){s=c[l>>2]|0;s=jd[c[(c[s>>2]|0)+20>>2]&511](s)|0;if((s|0)==-1){break}w=c[g>>2]|0;c[h>>2]=c[h>>2]|(s&255)<<w;s=w+8|0;c[g>>2]=s;if((s|0)>=(o|0)){break e}}s=c[g>>2]|0}}while(0);w=c[h>>2]|0;t=(1<<o)+ -1&w;if((s|0)==0){break b}v=p+(t<<2)|0;x=b[v>>1]|0;u=x&65535;if((s|0)<(u|0)|x<<16>>16==0){break b}u=w>>u;c[h>>2]=u;s=s-(e[v>>1]|0)|0;c[g>>2]=s;t=e[p+(t<<2)+2>>1]|0;if((t|0)==17){m=37;break}else if((t|0)==18){m=42;break}else if((t|0)!=16){m=47;break}if((s|0)<2){do{s=c[l>>2]|0;s=jd[c[(c[s>>2]|0)+20>>2]&511](s)|0;if((s|0)==-1){break b}x=c[g>>2]|0;u=c[h>>2]|(s&255)<<x;c[h>>2]=u;s=x+8|0;c[g>>2]=s;}while((s|0)<2)}c[h>>2]=u>>2;c[g>>2]=s+ -2;t=(u&3)+3|0;if((t+r|0)>(n|0)){break b}s=u&3;u=-3-s|0;u=r+4+((u|0)>-1?u:-1)|0;while(1){c[a+32800+(r<<2)>>2]=m;t=t+ -1|0;if((t|0)>0){r=r+1|0}else{break}}r=u+s|0;if((r|0)>=(n|0)){break d}}if((m|0)==37){if((s|0)<3){do{m=c[l>>2]|0;m=jd[c[(c[m>>2]|0)+20>>2]&511](m)|0;if((m|0)==-1){break b}s=c[g>>2]|0;u=c[h>>2]|(m&255)<<s;c[h>>2]=u;s=s+8|0;c[g>>2]=s;}while((s|0)<3)}c[h>>2]=u>>3;c[g>>2]=s+ -3;if(((u&7)+3+r|0)>(n|0)){break b}s=u&7;m=-3-s|0;t=(m|0)>-1?m:-1;bX(a+32800+(r<<2)|0,0,t+4+s<<2|0)|0;r=r+4+t+s|0;t=0}else if((m|0)==42){if((s|0)<7){do{m=c[l>>2]|0;m=jd[c[(c[m>>2]|0)+20>>2]&511](m)|0;if((m|0)==-1){break b}s=c[g>>2]|0;u=c[h>>2]|(m&255)<<s;c[h>>2]=u;s=s+8|0;c[g>>2]=s;}while((s|0)<7)}c[h>>2]=u>>7;c[g>>2]=s+ -7;if(((u&127)+11+r|0)>(n|0)){break b}m=u&127;s=-11-m|0;t=(s|0)>-1?s:-1;bX(a+32800+(r<<2)|0,0,t+12+m<<2|0)|0;r=r+12+t+m|0;t=0}else if((m|0)==47){c[a+32800+(r<<2)>>2]=t;r=r+1|0}if((r|0)<(n|0)){m=t}else{break}}Fl(0,q,j,a+34072|0);Fl(0,a+32800+(j<<2)|0,k,a+34080|0);Fe(p);x=1;i=f;return x|0}}while(0);Qe(jd[c[(c[a>>2]|0)+48>>2]&511](a)|0,47992,d);Fe(p);x=0;i=f;return x|0}function Fl(a,d,e,f){a=a|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0;a=i;h=f+4|0;c[h>>2]=0;g=(e|0)>0;if(g){k=0;j=0;do{l=c[d+(j<<2)>>2]|0;if((l|0)>(k|0)){c[h>>2]=l;k=l}j=j+1|0;}while((j|0)<(e|0))}else{k=0}j=1<<k;k=ye(j,4)|0;c[f>>2]=k;a:do{if((j|0)>0){l=0;while(1){b[k+(l<<2)>>1]=0;b[(c[f>>2]|0)+(l<<2)+2>>1]=0;l=l+1|0;if((l|0)>=(j|0)){break a}k=c[f>>2]|0}}}while(0);m=c[h>>2]|0;if((m|0)<1){i=a;return}else{o=0;k=1;l=2}while(1){if(g){n=(k|0)>0;m=k&65535;p=0;do{if((c[d+(p<<2)>>2]|0)==(k|0)){if(n){r=0;s=0;q=o;while(1){r=q&1|r<<1;s=s+1|0;if((s|0)<(k|0)){q=q>>1}else{break}}}else{r=0}if((r|0)<(j|0)){q=p&65535;do{b[(c[f>>2]|0)+(r<<2)>>1]=m;b[(c[f>>2]|0)+(r<<2)+2>>1]=q;r=r+l|0;}while((r|0)<(j|0))}o=o+1|0}p=p+1|0;}while((p|0)<(e|0));m=c[h>>2]|0}if((k|0)<(m|0)){o=o<<1;k=k+1|0;l=l<<1}else{break}}i=a;return}function Gl(a){a=a|0;var b=0,d=0;b=i;c[a>>2]=48040;d=c[a+8>>2]|0;if((d|0)==0){HW(a);i=b;return}fd[c[(c[d>>2]|0)+4>>2]&511](d);HW(a);i=b;return}function Hl(a){a=a|0;var b=0;b=i;c[a>>2]=48040;a=c[a+8>>2]|0;if((a|0)==0){i=b;return}fdfd[c[(c[a>>2]|0)+12>>2]&511](a);i=b;return}function Rl(a){a=a|0;i=i;return(c[a+308>>2]|0)-(a+41)+(c[a+300>>2]|0)|0}function Sl(a,b){a=a|0;b=b|0;i=i;return b|0}function Tl(a){a=a|0;i=i;return a|0}function Ul(a){a=a|0;i=i;return a|0}function Vl(a){a=a|0;var b=0,d=0,e=0,f=0;b=i;e=i;i=i+8|0;d=e;f=c[a+16>>2]|0;if((f|0)==7){i=b;return c[a+24>>2]|0}else{c[e>>2]=f;c[d+4>>2]=7;Qe(0,48632,d);tc()}return 0}function Wl(a){a=a|0;i=i;return-1}function Xl(b,d,e){b=b|0;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;h=b+36|0;if((d|0)<=0){r=d;i=f;return r|0}j=b+300|0;m=b+304|0;k=b+41|0;o=b+308|0;g=b+40|0;l=b+32|0;n=b+8|0;p=0;while(1){r=c[j>>2]|0;q=c[m>>2]|0;if(r>>>0>=q>>>0){q=(c[o>>2]|0)+(q-k)|0;c[o>>2]=q;c[m>>2]=k;c[j>>2]=k;if((a[g]&1)==0){q=256}else{r=(c[n>>2]|0)+(c[h>>2]|0)|0;if(q>>>0>=r>>>0){d=p;g=9;break}q=(q+256|0)>>>0>r>>>0?r-q|0:256}q=b+41+(Ta(k|0,1,q|0,c[l>>2]|0)|0)|0;c[m>>2]=q;r=c[j>>2]|0;if(r>>>0>=q>>>0){d=p;g=9;break}}c[j>>2]=r+1;a[e+p|0]=a[r]|0;p=p+1|0;if((p|0)>=(d|0)){g=9;break}}if((g|0)==9){i=f;return d|0}return 0}function Yl(a){a=a|0;i=i;return 0}function Zl(a){a=a|0;i=i;return c[a+8>>2]|0}function _l(a){a=a|0;i=i;return c[a+36>>2]|0}function $l(a){a=a|0;i=i;return 1}function am(b){b=b|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0;e=i;f=b+1068|0;j=c[f>>2]|0;g=b+1072|0;k=c[g>>2]|0;do{if(j>>>0>=k>>>0){j=b+41|0;l=b+1076|0;k=(c[l>>2]|0)+(k-j)|0;c[l>>2]=k;c[g>>2]=j;c[f>>2]=j;do{if((a[b+40|0]&1)==0){h=6}else{l=(c[b+8>>2]|0)+(c[b+36>>2]|0)|0;if(k>>>0>=l>>>0){l=-1;i=e;return l|0}if((k+1024|0)>>>0<=l>>>0){h=6;break}k=l-k|0}}while(0);if((h|0)==6){k=1024-(k&1023)|0}Ut(c[b+32>>2]|0,j,1,k)|0;l=b+41+k|0;c[g>>2]=l;j=c[f>>2]|0;if(j>>>0<l>>>0){break}else{f=-1}i=e;return f|0}}while(0);c[f>>2]=j+1;l=d[j]|0;i=e;return l|0}function bm(b){b=b|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0;e=i;g=b+1068|0;j=c[g>>2]|0;f=b+1072|0;k=c[f>>2]|0;do{if(j>>>0>=k>>>0){j=b+41|0;l=b+1076|0;k=(c[l>>2]|0)+(k-j)|0;c[l>>2]=k;c[f>>2]=j;c[g>>2]=j;do{if((a[b+40|0]&1)==0){h=6}else{l=(c[b+8>>2]|0)+(c[b+36>>2]|0)|0;if(k>>>0>=l>>>0){l=-1;i=e;return l|0}if((k+1024|0)>>>0<=l>>>0){h=6;break}k=l-k|0}}while(0);if((h|0)==6){k=1024-(k&1023)|0}Ut(c[b+32>>2]|0,j,1,k)|0;l=b+41+k|0;c[f>>2]=l;j=c[g>>2]|0;if(j>>>0<l>>>0){break}else{b=-1}i=e;return b|0}}while(0);l=d[j]|0;i=e;return l|0}function cm(a){a=a|0;var b=0;b=i;a=jd[c[(c[a>>2]|0)+20>>2]&511](a)|0;i=b;return a|0}function dm(a){a=a|0;var b=0;b=i;fd[c[(c[a>>2]|0)+12>>2]&511](a);i=b;return}function em(a){a=a|0;i=i;return(c[a+1076>>2]|0)-(a+41)+(c[a+1068>>2]|0)|0}function fm(a){a=a|0;i=i;return c[a+36>>2]|0}function gm(a){a=a|0;i=i;return 11}function hm(a){a=a|0;var b=0,e=0,f=0;b=i;f=a+44|0;e=c[f>>2]|0;if(e>>>0>=(c[a+40>>2]|0)>>>0){f=-1;i=b;return f|0}c[f>>2]=e+1;f=d[e]|0;i=b;return f|0}function im(a){a=a|0;var b=0,e=0;b=i;e=c[a+44>>2]|0;if(e>>>0>=(c[a+40>>2]|0)>>>0){e=-1;i=b;return e|0}e=d[e]|0;i=b;return e|0}function jm(a){a=a|0;var b=0;b=i;a=jd[c[(c[a>>2]|0)+20>>2]&511](a)|0;i=b;return a|0}function km(a){a=a|0;var b=0;b=i;fd[c[(c[a>>2]|0)+12>>2]&511](a);i=b;return}function lm(a){a=a|0;i=i;return(c[a+44>>2]|0)-(c[a+32>>2]|0)|0}function mm(a){a=a|0;i=i;return c[a+36>>2]|0}function nm(b,c){b=b|0;c=c|0;a[b+48|0]=c&1;i=i;return}function om(a){a=a|0;i=i;return 2}function pm(a){a=a|0;var b=0,d=0;d=i;b=jd[c[(c[a>>2]|0)+24>>2]&511](a)|0;c[a+12>>2]=-1;i=d;return b|0}function qm(a){a=a|0;var b=0;b=i;a=c[a+8>>2]|0;a=jd[c[(c[a>>2]|0)+36>>2]&511](a)|0;i=b;return a|0}function rm(a){a=a|0;var b=0;b=i;a=c[a+8>>2]|0;fd[c[(c[a>>2]|0)+40>>2]&511](a);i=b;return}function sm(a){a=a|0;var b=0;b=i;a=c[a+8>>2]|0;a=jd[c[(c[a>>2]|0)+48>>2]&511](a)|0;i=b;return a|0}function tm(a){a=a|0;var b=0;b=i;a=c[a+8>>2]|0;a=jd[c[(c[a>>2]|0)+64>>2]&511](a)|0;i=b;return a|0}function um(a){a=a|0;var b=0;b=i;a=c[a+8>>2]|0;a=jd[c[(c[a>>2]|0)+68>>2]&511](a)|0;i=b;return a|0}function vm(a){a=a|0;var b=0;b=i;a=c[a+8>>2]|0;a=jd[c[(c[a>>2]|0)+72>>2]&511](a)|0;i=b;return a|0}function wm(a){a=a|0;i=i;return c[a+8>>2]|0}function xm(a){a=a|0;i=i;return 3}function ym(a){a=a|0;var b=0,d=0;d=i;b=jd[c[(c[a>>2]|0)+24>>2]&511](a)|0;a=a+48|0;c[a>>2]=(c[a>>2]|0)+1;i=d;return b|0}function zm(a){a=a|0;i=i;return 6}function Am(a){a=a|0;var b=0,d=0;d=i;b=jd[c[(c[a>>2]|0)+24>>2]&511](a)|0;c[a+64>>2]=-1;i=d;return b|0}function Bm(a){a=a|0;i=i;return 11}function Cm(a){a=a|0;i=i;return}function Dm(a){a=a|0;i=i;return-1}function Em(a){a=a|0;i=i;return-1}function Fm(a,b,c){a=a|0;b=b|0;c=c|0;i=i;return 0}function Gm(a,b){a=a|0;b=b|0;i=i;return 0}function Hm(a){a=a|0;i=i;return 4}function Im(a){a=a|0;i=i;return 5}function Jm(b){b=b|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0;f=i;e=b+140|0;h=c[e>>2]|0;g=b+144|0;if(h>>>0>=(c[g>>2]|0)>>>0){j=b+148|0;if((a[j]&1)!=0){k=-1;i=f;return k|0}h=b+8|0;k=c[h>>2]|0;k=jd[c[(c[k>>2]|0)+20>>2]&511](k)|0;if((k|0)==128|(k|0)==-1){a[j]=1;k=-1;i=f;return k|0}do{if((k|0)<128){j=k+1|0;if((k|0)>-1){k=0}else{break}while(1){l=c[h>>2]|0;a[b+12+k|0]=jd[c[(c[l>>2]|0)+20>>2]&511](l)|0;k=k+1|0;if((k|0)<(j|0)){}else{break}}}else{j=257-k|0;h=c[h>>2]|0;h=jd[c[(c[h>>2]|0)+20>>2]&511](h)|0;if((j|0)<=0){break}bX(b+12|0,h&255|0,j|0)|0}}while(0);h=b+12|0;c[e>>2]=h;c[g>>2]=b+12+j}c[e>>2]=h+1;l=d[h]|0;i=f;return l|0}function Km(b){b=b|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0;e=i;f=b+140|0;h=c[f>>2]|0;g=b+144|0;if(h>>>0>=(c[g>>2]|0)>>>0){j=b+148|0;if((a[j]&1)!=0){k=-1;i=e;return k|0}h=b+8|0;k=c[h>>2]|0;k=jd[c[(c[k>>2]|0)+20>>2]&511](k)|0;if((k|0)==128|(k|0)==-1){a[j]=1;k=-1;i=e;return k|0}do{if((k|0)<128){j=k+1|0;if((k|0)>-1){k=0}else{break}while(1){l=c[h>>2]|0;a[b+12+k|0]=jd[c[(c[l>>2]|0)+20>>2]&511](l)|0;k=k+1|0;if((k|0)<(j|0)){}else{break}}}else{j=257-k|0;h=c[h>>2]|0;h=jd[c[(c[h>>2]|0)+20>>2]&511](h)|0;if((j|0)<=0){break}bX(b+12|0,h&255|0,j|0)|0}}while(0);h=b+12|0;c[f>>2]=h;c[g>>2]=b+12+j}l=d[h]|0;i=e;return l|0}function Lm(a){a=a|0;i=i;return 7}function Mm(a){a=a|0;i=i;return 8}function Nm(a){a=a|0;i=i;return-1}function Om(a){a=a|0;var b=0;b=i;a=c[a+32>>2]|0;a=jd[c[(c[a>>2]|0)+8>>2]&511](a)|0;i=b;return a|0}function Pm(a){a=a|0;i=i;return}function Qm(a){a=a|0;var b=0;b=i;a=c[a+32>>2]|0;a=jd[c[(c[a>>2]|0)+36>>2]&511](a)|0;i=b;return a|0}function Rm(a){a=a|0;var b=0;b=i;a=c[a+32>>2]|0;fd[c[(c[a>>2]|0)+40>>2]&511](a);i=b;return}function Sm(a){a=a|0;var b=0;b=i;a=c[a+32>>2]|0;a=jd[c[(c[a>>2]|0)+48>>2]&511](a)|0;i=b;return a|0}function Tm(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;h=i;j=FW(32)|0;fe(j,d);c[b>>2]=j;a[b+8|0]=e&1;c[b+4>>2]=1;c[b+12>>2]=f;c[b+16>>2]=g;c[b+20>>2]=0;c[b+24>>2]=0;c[b+28>>2]=1;ad(b+32|0,0)|0;i=h;return}function Um(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0;g=i;h=FW(32)|0;fe(h,d);c[b>>2]=h;a[b+8|0]=e&1;c[b+4>>2]=2;c[b+12>>2]=f;c[b+20>>2]=0;c[b+24>>2]=0;c[b+28>>2]=1;ad(b+32|0,0)|0;i=g;return}function Vm(a){a=a|0;var b=0,d=0;b=i;d=c[a>>2]|0;if((d|0)!=0){ke(d);HW(d)}do{if((c[a+4>>2]|0)==0){d=c[a+12>>2]|0;if((d|0)==0){break}Fe(d)}}while(0);d=c[a+20>>2]|0;if((d|0)==0){d=a+32|0;kc(d|0)|0;i=b;return}Fe(d);d=a+32|0;kc(d|0)|0;i=b;return}function Wm(a){a=a|0;var b=0,d=0,e=0,f=0;b=i;d=a+32|0;Ub(d|0)|0;f=a+28|0;e=(c[f>>2]|0)+ -1|0;c[f>>2]=e;Mc(d|0)|0;if((e|0)!=0|(a|0)==0){i=b;return}e=c[a>>2]|0;if((e|0)!=0){ke(e);HW(e)}do{if((c[a+4>>2]|0)==0){e=c[a+12>>2]|0;if((e|0)==0){break}Fe(e)}}while(0);e=c[a+20>>2]|0;if((e|0)!=0){Fe(e)}kc(d|0)|0;HW(a);i=b;return}function Xm(a){a=a|0;var b=0;b=i;bX(a|0,0,16)|0;i=b;return}function Ym(a){a=a|0;var b=0,d=0;b=i;d=c[a>>2]|0;if((d|0)!=0){Wm(d)}d=c[a+4>>2]|0;if((d|0)!=0){Wm(d)}d=c[a+8>>2]|0;if((d|0)!=0){Wm(d)}a=c[a+12>>2]|0;if((a|0)==0){i=b;return}Wm(a);i=b;return}function Zm(b,d,e){b=b|0;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,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;g=i;h=i;i=i+8|0;j=h;s=i;i=i+8|0;t=s;v=i;i=i+8|0;w=v;A=i;i=i+8|0;B=A;C=i;i=i+8|0;D=C;E=i;i=i+8|0;F=i;i=i+8|0;G=F;I=i;i=i+8|0;H=I;J=i;i=i+8|0;K=J;L=i;i=i+8|0;M=L;p=i;i=i+16|0;r=p;o=i;i=i+16|0;n=o;y=i;i=i+16|0;u=y;c[p>>2]=13;l=r+8|0;c[l>>2]=0;c[l+4>>2]=0;c[o>>2]=13;m=n+8|0;c[m>>2]=0;f=m+4|0;c[f>>2]=0;c[y>>2]=13;x=u+8|0;c[x>>2]=0;c[x+4>>2]=0;c[b>>2]=e;q=b+4|0;k=b+8|0;z=b+12|0;b=b+16|0;bX(q|0,0,13)|0;if((c[(_m(d,e,0,r,0)|0)>>2]|0)!=8){Of(r);i=g;return}e=c[p>>2]|0;if((e|0)!=8){c[L>>2]=e;c[M+4>>2]=8;Qe(0,49608,M);tc()}e=c[l>>2]|0;if((c[(Yu(jd[c[(c[e>>2]|0)+72>>2]&511](e)|0,48768,n,0)|0)>>2]|0)!=1){Of(n);Of(r);i=g;return}L=c[o>>2]|0;if((L|0)!=1){c[J>>2]=L;c[K+4>>2]=1;Qe(0,49608,K);tc()}c[q>>2]=c[m>>2];Of(n);if((c[q>>2]|0)<1){Of(r);i=g;return}J=c[p>>2]|0;if((J|0)!=8){c[I>>2]=J;c[H+4>>2]=8;Qe(0,49608,H);tc()}e=c[l>>2]|0;if((c[(Yu(jd[c[(c[e>>2]|0)+72>>2]&511](e)|0,48776,n,0)|0)>>2]|0)!=1){Of(n);Of(r);i=g;return}H=c[o>>2]|0;if((H|0)!=1){c[F>>2]=H;c[G+4>>2]=1;Qe(0,49608,G);tc()}F=c[m>>2]|0;Of(n);if((F|0)<0){Of(r);i=g;return}G=c[q>>2]|0;if((G|0)>1e6){Qe(-1,48784,E);Of(r);i=g;return}E=GW(G>>>0>268435455?-1:G<<4)|0;if((G|0)==0){G=0}else{G=E+(G<<4)|0;H=E;do{c[H>>2]=13;e=H+8|0;c[e>>2]=0;c[e+4>>2]=0;H=H+16|0;}while((H|0)!=(G|0));G=c[q>>2]|0}c[k>>2]=E;c[z>>2]=ye(G,4)|0;E=ye(c[q>>2]|0,4)|0;G=c[p>>2]|0;if((G|0)!=8){c[C>>2]=G;c[D+4>>2]=8;Qe(0,49608,D);tc()}C=c[l>>2]|0;fdfd[c[(c[B>>2]|0)+12>>2]&511](B);B=c[b>>2]|0;B=jd[c[(c[B>>2]|0)+48>>2]&511](B)|0;L=c[b>>2]|0;do{if((sd[c[(c[L>>2]|0)+44>>2]&127](L,v,256)|0)!=0){w=b+20|0;x=b+24|0;d=b+40|0;z=b+4|0;y=b+56|0;D=0;G=0;a:while(1){A=a[q]|0;b:do{if(A<<24>>24==0){A=0;H=1;I=v}else{I=v;while(1){C=I+1|0;if(!(hE(A&255)|0)){A=0;H=1;break b}A=a[C]|0;if(A<<24>>24==0){A=0;H=1;I=C;break}else{I=C}}}}while(0);c:while(1){C=B+7|0;do{E=nb(I|0,49112)|0;F=(E|0)!=0;if(!(F|H)){break c}if(F){a[E]=0;A=E-I|0;H=1}else{H=0}d:do{if((vc(I|0,48888,7)|0)==0){c[t>>2]=0;c[u>>2]=0;c[l>>2]=5;J=FW(56)|0;L=FW(168)|0;K=c[b>>2]|0;bE(L,0,Cd[c[(c[K>>2]|0)+96>>2]&63](K,C,0,0,s)|0);aG(J,0,L,0);cG(J,r,0,0,0,0,0)|0;if((c[m>>2]|0)==7){Zu(c[k>>2]|0,48864,s)|0;if((c[l>>2]|0)==9){c[w>>2]=c[t>>2];c[x>>2]=c[u>>2];if((c[d>>2]|0)!=13){Of(d)}Mf(r,d)|0;D=1}Of(s)}Of(r);if((J|0)==0){break}bG(J);HW(J)}else{if(((a[I]|0)+ -48|0)>>>0>=10){if((vc(I|0,49176,9)|0)!=0){break}K=c[n>>2]|0;if((K|0)==(G|0)){G=G+64|0;if((G|0)>536870910){k=49;break a}J=Ce(c[y>>2]|0,G,4)|0;c[y>>2]=J;K=c[n>>2]|0}else{J=c[y>>2]|0}c[n>>2]=K+1;c[J+(K<<2)>>2]=B;break}J=ec(I|0)|0;if((J|0)<=0){break}do{I=I+1|0;L=a[I]|0;K=L<<24>>24;if(L<<24>>24==0){break}}while((K+ -48|0)>>>0<10);if((xc(K|0)|0)==0){break}do{I=I+1|0;K=a[I]|0;if(K<<24>>24==0){break d}}while((xc(K<<24>>24|0)|0)!=0);if(((a[I]|0)+ -48|0)>>>0>=10){break}K=ec(I|0)|0;do{I=I+1|0;M=a[I]|0;L=M<<24>>24;if(M<<24>>24==0){break}}while((L+ -48|0)>>>0<10);if((xc(L|0)|0)==0){break}do{I=I+1|0;L=a[I]|0;if(L<<24>>24==0){break}}while((xc(L<<24>>24|0)|0)!=0);if((vc(I|0,48880,3)|0)!=0){break}if((J|0)>=(c[p>>2]|0)){L=J+256&-256;if((L|0)<0){k=39;break a}if((dn(b,L)|0)!=(L|0)){k=41;break a}}L=c[o>>2]|0;if((c[L+(J<<5)+8>>2]|0)!=0){if((K|0)<(c[L+(J<<5)+4>>2]|0)){break}}c[L+(J<<5)>>2]=B-(c[z>>2]|0);c[(c[o>>2]|0)+(J<<5)+4>>2]=K;c[(c[o>>2]|0)+(J<<5)+8>>2]=1}}while(0);H=H<<24>>24!=0}while(!F);I=E+6|0;B=B+6+A|0;C=a[I]|0;if(C<<24>>24==0){continue}while(1){if(!(hE(C&255)|0)){continue c}I=I+1|0;B=B+1|0;C=a[I]|0;if(C<<24>>24==0){continue c}}}B=c[b>>2]|0;B=jd[c[(c[B>>2]|0)+48>>2]&511](B)|0;M=c[b>>2]|0;if((sd[c[(c[M>>2]|0)+44>>2]&127](M,v,256)|0)==0){k=56;break}}if((k|0)==39){Qe(-1,49120,f);M=0;i=e;return M|0}else if((k|0)==41){Qe(-1,49144,g);M=0;i=e;return M|0}else if((k|0)==49){Qe(-1,49192,h);M=0;i=e;return M|0}else if((k|0)==56){if(D){f=1}else{break}i=e;return f|0}}}while(0);Qe(-1,49224,j);M=0;i=e;return M|0}function cn(b,d,e){b=b|0;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;g=i;l=i;i=i+8|0;m=l;n=i;i=i+16|0;j=n;k=j+8|0;c[k>>2]=0;c[k+4>>2]=0;c[n>>2]=5;f=FW(56)|0;o=FW(168)|0;p=c[b>>2]|0;bE(o,0,Cd[c[(c[p>>2]|0)+96>>2]&63](p,(c[d>>2]|0)+(c[b+4>>2]|0)|0,0,0,j)|0);aG(f,0,o,1);cG(f,j,0,0,0,0,0)|0;o=c[n>>2]|0;do{if((o|0)==1){Of(j);if((c[(cG(f,j,0,0,0,0,0)|0)>>2]|0)!=1){h=15;break}Of(j);o=cG(f,j,0,0,0,0,0)|0;if((c[o>>2]|0)!=10){h=15;break}if((Qc(c[o+8>>2]|0,48880)|0)!=0){h=15;break}Of(j);if((c[(cG(f,j,0,0,0,0,0)|0)>>2]|0)!=8){h=15;break}if((c[b+40>>2]|0)==13){a[b+120|0]=1}n=c[n>>2]|0;if((n|0)==8){b=gn(b,c[k>>2]|0,d)|0;Of(j);h=13;break}else{c[l>>2]=n;c[m+4>>2]=8;Qe(0,49608,m);tc()}}else if((o|0)==10){if((Qc(c[k>>2]|0,48872)|0)!=0){h=15;break}Of(j);b=fn(b,f,d,e)|0;h=13}else{h=15}}while(0);if((h|0)==13){if((f|0)==0){p=b;i=g;return p|0}bG(f);HW(f);p=b;i=g;return p|0}else if((h|0)==15){Of(j);if((f|0)!=0){bG(f);HW(f)}a[b+28|0]=0;p=0;i=g;return p|0}return 0}function dn(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0;e=i;f=b+16|0;g=c[f>>2]|0;do{if((g|0)<(d|0)){g=b+12|0;h=c[g>>2]|0;do{if((h|0)<(d|0)){h=(h|0)==0?1024:h<<1;while(1){if((h|0)<(d|0)&(h|0)>0){h=h<<1}else{break}}if(h>>>0>67108862){h=0;break}k=b+8|0;j=Ee(c[k>>2]|0,h,32)|0;if((j|0)==0){h=0;break}c[k>>2]=j;c[g>>2]=h}}while(0);g=c[f>>2]|0;if((h|0)<(d|0)){k=g;i=e;return k|0}if((g|0)>=(d|0)){break}b=b+8|0;do{c[(c[b>>2]|0)+(g<<5)>>2]=-1;c[(c[b>>2]|0)+(g<<5)+8>>2]=3;k=c[b>>2]|0;j=k+(g<<5)+24|0;c[j>>2]=0;c[j+4>>2]=0;c[k+(g<<5)+16>>2]=5;a[(c[b>>2]|0)+(g<<5)+12|0]=0;c[(c[b>>2]|0)+(g<<5)+4>>2]=0;g=g+1|0;}while((g|0)<(d|0))}else{if((g|0)<=(d|0)){break}b=b+8|0;g=d;do{Of((c[b>>2]|0)+(g<<5)+16|0);g=g+1|0;}while((g|0)<(c[f>>2]|0))}}while(0);c[f>>2]=d;k=d;i=e;return k|0}function en(a){a=a|0;var b=0,d=0,e=0,f=0,g=0;b=i;d=a+16|0;e=a+8|0;g=c[e>>2]|0;if((c[d>>2]|0)>0){f=0;while(1){Of(g+(f<<5)+16|0);f=f+1|0;g=c[e>>2]|0;if((f|0)<(c[d>>2]|0)){}else{break}}}Fe(g);Of(a+40|0);d=c[a+56>>2]|0;if((d|0)!=0){Fe(d)}a=c[a+64>>2]|0;if((a|0)==0){i=b;return}kG(a);HW(a);i=b;return}function fn(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var 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,I=0,J=0,K=0,L=0,M=0,N=0,O=0;j=i;p=i;i=i+8|0;n=p;s=i;i=i+8|0;t=s;w=i;i=i+8|0;v=w;y=i;i=i+8|0;z=y;G=i;i=i+8|0;x=G;F=i;i=i+8|0;D=i;i=i+8|0;E=D;C=i;i=i+8|0;u=i;i=i+16|0;h=u;q=i;i=i+16|0;g=q;m=i;i=i+8|0;k=m;c[u>>2]=13;r=h+8|0;c[r>>2]=0;c[r+4>>2]=0;c[q>>2]=13;o=g+8|0;c[o>>2]=0;c[o+4>>2]=0;B=b+16|0;A=b+8|0;a:while(1){cG(d,h,0,0,0,0,0)|0;H=c[u>>2]|0;if((H|0)==10){l=3;break}else if((H|0)!=1){l=59;break}J=c[r>>2]|0;Of(h);if((c[(cG(d,h,0,0,0,0,0)|0)>>2]|0)!=1){l=59;break}H=c[u>>2]|0;if((H|0)!=1){l=7;break}H=c[r>>2]|0;Of(h);if((H|J|0)<0){break}I=H+J|0;if((I|0)<0){break}if((I|0)>(c[B>>2]|0)){if((dn(b,I)|0)!=(I|0)){l=13;break}}if((H|0)>0){I=J}else{continue}while(1){if((c[(cG(d,h,0,0,0,0,0)|0)>>2]|0)!=1){l=59;break a}K=c[u>>2]|0;if((K|0)!=1){l=16;break a}K=c[r>>2]|0;Of(h);if((c[(cG(d,h,0,0,0,0,0)|0)>>2]|0)!=1){l=59;break a}L=c[u>>2]|0;if((L|0)!=1){l=19;break a}L=c[r>>2]|0;Of(h);cG(d,h,0,0,0,0,0)|0;if((c[u>>2]|0)!=10){l=59;break a}M=c[r>>2]|0;if((Qc(M|0,48928)|0)==0){O=1}else{if((Qc(M|0,48936)|0)==0){O=0}else{l=59;break a}}Of(h);M=c[A>>2]|0;N=M+(J<<5)|0;do{if((c[N>>2]|0)==-1){c[N>>2]=K;c[M+(J<<5)+4>>2]=L;c[M+(J<<5)+8>>2]=O;a[M+(J<<5)+12|0]=0;$W(N+13|0,C|0,3)|0;c[M+(J<<5)+16>>2]=5;c[M+(J<<5)+24>>2]=0;c[N+28>>2]=0;if(!((J|0)==1&(I|0)==1)){break}J=c[A>>2]|0;I=J+32|0;if((c[I>>2]|0)!=0){I=1;J=1;break}if((c[J+36>>2]|0)!=65535){I=1;J=1;break}if((c[J+40>>2]|0)!=0){I=1;J=1;break}$W(J|0,I|0,32)|0;c[(c[A>>2]|0)+32>>2]=-1;I=0;J=0}}while(0);J=J+1|0;if((J|0)>=(I+H|0)){continue a}}}b:do{if((l|0)==3){if((Qc(c[r>>2]|0,48888)|0)!=0){l=59;break}Of(h);if((c[(cG(d,h,0,0,0,0,0)|0)>>2]|0)!=7){l=59;break}x=c[u>>2]|0;if((x|0)!=7){c[w>>2]=x;c[v+4>>2]=7;Qe(0,49608,v);tc()}Zu(c[r>>2]|0,48944,g)|0;v=c[q>>2]|0;if((v|0)==9){c[e>>2]=c[o>>2];e=1}else if((v|0)==1){c[e>>2]=c[o>>2];e=1}else{e=0}Of(g);v=b+40|0;if((c[v>>2]|0)==13){Mf(h,v)|0}u=c[u>>2]|0;if((u|0)!=7){c[s>>2]=u;c[t+4>>2]=7;Qe(0,49608,t);tc()}do{if((c[(Yu(c[r>>2]|0,48952,g,0)|0)>>2]|0)==1){q=c[q>>2]|0;if((q|0)!=1){c[p>>2]=q;c[n+4>>2]=1;Qe(0,49608,n);tc()}n=c[o>>2]|0;c[m>>2]=n;m=f+4|0;o=b+28|0;p=a[o]|0;c:do{if((p&1)==0){l=49}else{q=0;while(1){r=c[f>>2]|0;if(q>>>0>=(c[m>>2]|0)-r>>2>>>0){l=49;break c}if((c[r+(q<<2)>>2]|0)==(n|0)){break}if((p&1)==0){l=49;break c}q=q+1|0}a[o]=0}}while(0);if((l|0)==49){if((p&1)!=0){l=c[m>>2]|0;if((l|0)==(c[f+8>>2]|0)){vn(f,k)}else{if((l|0)==0){l=0}else{c[l>>2]=n;l=c[m>>2]|0}c[m>>2]=l+4}cn(b,k,f)|0;p=a[o]|0}if((p&1)!=0){break}}Of(g);l=59;break b}}while(0);Of(g);Of(h);O=e;i=j;return O|0}else if((l|0)==7){c[D>>2]=H;c[E+4>>2]=1;Qe(0,49608,E);tc()}else if((l|0)==13){Qe(-1,48896,F)}else if((l|0)==16){c[G>>2]=K;c[x+4>>2]=1;Qe(0,49608,x);tc()}else if((l|0)==19){c[y>>2]=L;c[z+4>>2]=1;Qe(0,49608,z);tc()}}while(0);if((l|0)==59){Of(h)}a[b+28|0]=0;O=0;i=j;return O|0}function gn(b,d,e){b=b|0;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,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;f=i;k=i;i=i+8|0;j=k;r=i;i=i+8|0;s=r;p=i;i=i+8|0;q=p;w=i;i=i+8|0;l=w;C=i;i=i+8|0;y=C;A=i;i=i+8|0;B=A;H=i;i=i+8|0;G=H;I=i;i=i+8|0;K=i;i=i+8|0;F=K;t=i;i=i+16|0;o=i;i=i+16|0;h=o;E=i;i=i+16|0;D=E;v=i;i=i+16|0;n=v;c[o>>2]=13;m=h+8|0;c[m>>2]=0;c[m+4>>2]=0;c[E>>2]=13;z=D+8|0;c[z>>2]=0;c[z+4>>2]=0;c[v>>2]=13;u=n+8|0;c[u>>2]=0;c[u+4>>2]=0;g=jd[c[(c[d>>2]|0)+72>>2]&511](d)|0;a:do{if((c[(Zu(g,48824,h)|0)>>2]|0)==1){J=c[o>>2]|0;if((J|0)!=1){c[K>>2]=J;c[F+4>>2]=1;Qe(0,49608,F);tc()}F=c[m>>2]|0;Of(h);if((F|0)<0){x=46;break}do{if((F|0)>(c[b+16>>2]|0)){if((dn(b,F)|0)==(F|0)){break}Qe(-1,48960,I);break a}}while(0);if((c[(Zu(g,48992,h)|0)>>2]|0)!=6){x=46;break}x=c[o>>2]|0;if((x|0)!=6){c[H>>2]=x;c[G+4>>2]=6;Qe(0,49608,G);tc()}if((c[(c[m>>2]|0)+12>>2]|0)<3){x=46;break}G=6;x=0;while(1){if((G|0)!=6){x=16;break}if((c[(ut(c[m>>2]|0,x,D)|0)>>2]|0)!=1){x=18;break}G=c[E>>2]|0;if((G|0)!=1){x=20;break}K=c[z>>2]|0;c[t+(x<<2)>>2]=K;Of(D);x=x+1|0;if(K>>>0>4){x=46;break a}if((x|0)>=3){x=22;break}G=c[o>>2]|0}if((x|0)==16){c[A>>2]=G;c[B+4>>2]=6;Qe(0,49608,B);tc()}else if((x|0)==18){Of(D);x=46;break}else if((x|0)==20){c[C>>2]=G;c[y+4>>2]=1;Qe(0,49608,y);tc()}else if((x|0)==22){Of(h);fdfd[c[(c[g>>2]|0)+4>>2]&511](g);b=0;i=f;return b|0}function Dn(b,d){b=b|0;d=d|0;var e=0,f=0,g=0;e=i;f=i;i=i+8|0;b=RG(b,f)|0;if((b|0)==0){g=0;i=e;return g|0}g=FW(80)|0;OG(g,b,c[f>>2]|0,1);c[g>>2]=49808;c[g+60>>2]=0;b=g+65|0;a[b]=0;bX(g+20|0,0,16)|0;c[g+68>>2]=d;c[g+72>>2]=0;c[g+76>>2]=0;En(g);if((a[b]&1)!=0){i=e;return g|0}if((g|0)==0){g=0;i=e;return g|0}fd[c[(c[g>>2]|0)+4>>2]&511](g);g=0;i=e;return g|0}function En(b){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;d=i;k=i;i=i+8|0;e=b+65|0;a[e]=1;g=VG(b,0,e)|0;if((a[e]&1)==0){i=d;return}do{if((g|0)==1953784678){j=VG(b,8,e)|0;if((a[e]&1)==0){i=d;return}if((j|0)==0){a[e]=0;i=d;return}g=b+68|0;h=c[g>>2]|0;if((h|0)>=(j|0)){c[g>>2]=0;h=0}m=VG(b,(h<<2)+12|0,e)|0;if((a[e]&1)!=0){break}i=d;return}else{m=0}}while(0);g=VG(b,m,e)|0;if((a[e]&1)==0){i=d;return}h=b+64|0;a[h]=(g|0)==1330926671|0;g=UG(b,m+4|0,e)|0;j=b+24|0;c[j>>2]=g;if((a[e]&1)==0){i=d;return}l=ye(g,20)|0;g=b+20|0;c[g>>2]=l;p=c[j>>2]|0;if((p|0)>0){l=b+12|0;o=0;m=m+12|0;n=0;while(1){q=VG(b,m,e)|0;c[(c[g>>2]|0)+(o*20|0)>>2]=q;q=VG(b,m+4|0,e)|0;c[(c[g>>2]|0)+(o*20|0)+4>>2]=q;q=VG(b,m+8|0,e)|0;c[(c[g>>2]|0)+(o*20|0)+8>>2]=q;q=VG(b,m+12|0,e)|0;c[(c[g>>2]|0)+(o*20|0)+16>>2]=q;q=c[g>>2]|0;p=c[q+(o*20|0)+16>>2]|0;if((p|0)<0){f=15}else{if(((c[q+(o*20|0)+8>>2]|0)+p|0)>(c[l>>2]|0)){f=15}}if((f|0)==15){f=0;Qe(-1,49824,k);o=o+ -1|0;n=n+1|0}o=o+1|0;p=c[j>>2]|0;if((o|0)<(p|0)){m=m+16|0}else{break}}k=c[g>>2]|0}else{k=l;n=0}l=p-n|0;c[j>>2]=l;l=Ee(k,l,20)|0;c[g>>2]=l;if((a[e]&1)==0|(l|0)==0){i=d;return}k=c[j>>2]|0;a:do{if((k|0)>0){n=0;while(1){m=n+1|0;if((c[l+(n*20|0)>>2]|0)==1751474532){break}if((m|0)<(k|0)){n=m}else{break a}}if((n|0)<0){break}else{n=0}while(1){m=n+1|0;if((c[l+(n*20|0)>>2]|0)==1751672161){break}if((m|0)<(k|0)){n=m}else{break a}}if((n|0)<0){break}else{n=0}while(1){m=n+1|0;if((c[l+(n*20|0)>>2]|0)==1835104368){break}if((m|0)<(k|0)){n=m}else{break a}}if((n|0)<0){break}else{n=0}while(1){m=n+1|0;if((c[l+(n*20|0)>>2]|0)==1752003704){break}if((m|0)<(k|0)){n=m}else{break a}}if((n|0)<0){break}m=(a[h]&1)==0;do{if(m){n=0;while(1){o=n+1|0;if((c[l+(n*20|0)>>2]|0)==1819239265){break}if((o|0)<(k|0)){n=o}else{break a}}if((n|0)<0){break a}if(m){n=0}else{m=0;f=42;break}while(1){o=n+1|0;if((c[l+(n*20|0)>>2]|0)==1735162214){break}if((o|0)<(k|0)){n=o}else{break a}}if((n|0)<0){break a}if(m){m=0}else{m=0;f=42}}else{m=0;f=42}}while(0);if((f|0)==42){while(1){f=m+1|0;if((c[l+(m*20|0)>>2]|0)==1128678944){break}if((f|0)<(k|0)){m=f;f=42}else{break a}}if((m|0)<0){break}else{m=0}}while(1){f=m+1|0;if((c[l+(m*20|0)>>2]|0)==1668112752){f=47;break}if((f|0)<(k|0)){m=f}else{f=54;break}}do{if((f|0)==47){if((m|0)<=-1){f=54;break}n=c[l+(m*20|0)+8>>2]|0;o=UG(b,n+2|0,e)|0;k=b+32|0;c[k>>2]=o;if((a[e]&1)==0){i=d;return}l=b+28|0;c[l>>2]=ye(o,20)|0;if((c[k>>2]|0)>0){o=0;n=n+4|0;while(1){q=UG(b,n,e)|0;c[(c[l>>2]|0)+(o*20|0)>>2]=q;q=UG(b,n+2|0,e)|0;c[(c[l>>2]|0)+(o*20|0)+4>>2]=q;q=c[(c[g>>2]|0)+(m*20|0)+8>>2]|0;q=(VG(b,n+4|0,e)|0)+q|0;c[(c[l>>2]|0)+(o*20|0)+8>>2]=q;q=UG(b,c[(c[l>>2]|0)+(o*20|0)+8>>2]|0,e)|0;c[(c[l>>2]|0)+(o*20|0)+16>>2]=q;q=UG(b,(c[(c[l>>2]|0)+(o*20|0)+8>>2]|0)+2|0,e)|0;c[(c[l>>2]|0)+(o*20|0)+12>>2]=q;o=o+1|0;if((o|0)<(c[k>>2]|0)){n=n+8|0}else{break}}}if((a[e]&1)==0){i=d;return}else{k=c[j>>2]|0;break}}}while(0);if((f|0)==54){c[b+32>>2]=0}l=c[g>>2]|0;b:do{if((k|0)>0){m=0;while(1){n=m+1|0;if((c[l+(m*20|0)>>2]|0)==1835104368){break b}if((n|0)<(k|0)){m=n}else{m=-1;break}}}else{m=-1}}while(0);k=b+36|0;c[k>>2]=UG(b,(c[l+(m*20|0)+8>>2]|0)+4|0,e)|0;if((a[e]&1)==0){i=d;return}o=c[j>>2]|0;l=c[g>>2]|0;c:do{if((o|0)>0){n=0;while(1){m=n+1|0;if((c[l+(n*20|0)>>2]|0)==1751474532){break c}if((m|0)<(o|0)){n=m}else{n=-1;break}}}else{n=-1}}while(0);c[b+44>>2]=TG(b,(c[l+(n*20|0)+8>>2]|0)+36|0,e)|0;c[b+48>>2]=TG(b,(c[(c[g>>2]|0)+(n*20|0)+8>>2]|0)+38|0,e)|0;c[b+52>>2]=TG(b,(c[(c[g>>2]|0)+(n*20|0)+8>>2]|0)+40|0,e)|0;c[b+56>>2]=TG(b,(c[(c[g>>2]|0)+(n*20|0)+8>>2]|0)+42|0,e)|0;m=TG(b,(c[(c[g>>2]|0)+(n*20|0)+8>>2]|0)+50|0,e)|0;l=b+40|0;c[l>>2]=m;n=a[e]|0;if((n&1)==0){i=d;return}do{if((a[h]&1)==0){p=c[j>>2]|0;j=c[g>>2]|0;d:do{if((p|0)>0){h=0;while(1){o=h+1|0;if((c[j+(h*20|0)>>2]|0)==1819239265){break d}if((o|0)<(p|0)){h=o}else{h=-1;break}}}else{h=-1}}while(0);q=c[j+(h*20|0)+16>>2]|0;if((q|0)<0){a[e]=0;i=d;return}o=c[k>>2]|0;p=(m|0)!=0?4:2;if((q|0)<(da(p,o+1|0)|0)){o=((q|0)/(p|0)|0)+ -1|0;c[k>>2]=o}if((o|0)>=0){n=b+12|0;o=0;while(1){j=c[j+(h*20|0)+8>>2]|0;if((m|0)==0){j=UG(b,j+(o<<1)|0,e)|0}else{j=VG(b,j+(o<<2)|0,e)|0}if((j|0)<0){f=78}else{if((j|0)>(c[n>>2]|0)){f=78}}if((f|0)==78){f=0;a[e]=0}if((o|0)>=(c[k>>2]|0)){break}j=c[g>>2]|0;m=c[l>>2]|0;o=o+1|0}n=a[e]|0}if((n&1)!=0){break}i=d;return}}while(0);Nn(b);i=d;return}}while(0);a[e]=0;i=d;return}function Fn(a){a=a|0;var b=0,d=0;b=i;c[a>>2]=49808;Fe(c[a+20>>2]|0);Fe(c[a+28>>2]|0);d=c[a+60>>2]|0;if((d|0)==0){QG(a);HW(a);i=b;return}ko(d);HW(d);QG(a);HW(a);i=b;return}function Gn(a){a=a|0;var b=0,d=0;b=i;c[a>>2]=49808;Fe(c[a+20>>2]|0);Fe(c[a+28>>2]|0);d=c[a+60>>2]|0;if((d|0)==0){QG(a);i=b;return}ko(d);HW(d);QG(a);i=b;return}function Hn(a){a=a|0;i=i;return c[a+32>>2]|0}function In(a,b){a=a|0;b=b|0;i=i;return c[(c[a+28>>2]|0)+(b*20|0)>>2]|0}function Jn(a,b){a=a|0;b=b|0;i=i;return c[(c[a+28>>2]|0)+(b*20|0)+4>>2]|0}function Kn(b,d,e){b=b|0;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;g=i;i=i+8|0;h=g;if((d|0)<0){o=0;i=f;return o|0}if((c[b+32>>2]|0)<=(d|0)){o=0;i=f;return o|0}a[g]=1;k=c[b+28>>2]|0;j=c[k+(d*20|0)+8>>2]|0;l=c[k+(d*20|0)+16>>2]|0;do{if((l|0)==0){e=e+6|0;if(e>>>0<(c[k+(d*20|0)+12>>2]|0)>>>0){b=(SG(b,e+j|0,h)|0)&65535;break}else{o=0;i=f;return o|0}}else if((l|0)==12){k=VG(b,j+12|0,h)|0;n=k+ -1|0;d=j+16|0;j=j+20|0;if((VG(b,j+(n*12|0)|0,h)|0)>>>0<e>>>0){o=0;i=f;return o|0}a:do{if((k|0)>1){k=-1;do{if((a[g]&1)==0){break a}m=(n+k|0)/2|0;l=(VG(b,j+(m*12|0)|0,h)|0)>>>0<e>>>0;k=l?m:k;n=l?n:m;}while((n-k|0)>1)}}while(0);o=(n*12|0)+d|0;j=VG(b,o,h)|0;b=VG(b,o+8|0,h)|0;if(j>>>0>e>>>0){o=0;i=f;return o|0}else{b=e-j+b&65535;break}}else if((l|0)==4){l=UG(b,j+6|0,h)|0;d=(l|0)/2|0;m=d+ -1|0;k=j+14|0;if((UG(b,(m<<1)+k|0,h)|0)>>>0<e>>>0){o=0;i=f;return o|0}b:do{if((l|0)>3){l=-1;do{if((a[g]&1)==0){break b}n=(m+l|0)/2|0;o=(UG(b,(n<<1)+k|0,h)|0)>>>0<e>>>0;l=o?n:l;m=o?m:n;}while((m-l|0)>1)}}while(0);o=j+16|0;l=m<<1;k=UG(b,(d<<1)+o+l|0,h)|0;j=UG(b,(d<<2)+o+l|0,h)|0;d=(d*6|0)+o+l|0;l=UG(b,d,h)|0;if(k>>>0>e>>>0){o=0;i=f;return o|0}if((l|0)==0){b=j+e&65535;break}b=UG(b,l+d+(e-k<<1)|0,h)|0;if((b&65535|0)==0){b=b&65535;break}b=b+j&65535}else if((l|0)==6){d=UG(b,j+6|0,h)|0;k=UG(b,j+8|0,h)|0;if(d>>>0>e>>>0){o=0;i=f;return o|0}if((k+d|0)>>>0>e>>>0){b=(UG(b,j+10+(e-d<<1)|0,h)|0)&65535;break}else{o=0;i=f;return o|0}}else{o=0;i=f;return o|0}}while(0);o=(a[g]&1)==0?0:b;i=f;return o|0}function Ln(a,b){a=a|0;b=b|0;var d=0;d=i;a=c[a+60>>2]|0;if((a|0)==0){a=0;i=d;return a|0}a=po(a,b)|0;i=d;return a|0}function Mn(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0;e=i;c[d>>2]=0;if((a[b+64|0]&1)==0){j=0;i=e;return j|0}g=c[b+24>>2]|0;f=c[b+20>>2]|0;a:do{if((g|0)>0){h=0;while(1){j=h+1|0;if((c[f+(h*20|0)>>2]|0)==1128678944){break a}if((j|0)<(g|0)){h=j}else{h=-1;break}}}else{h=-1}}while(0);if(!(XG(b,c[f+(h*20|0)+8>>2]|0,c[f+(h*20|0)+16>>2]|0)|0)){j=0;i=e;return j|0}j=c[b+20>>2]|0;b=Tn((c[b+8>>2]|0)+(c[j+(h*20|0)+8>>2]|0)|0,c[j+(h*20|0)+16>>2]|0)|0;if((b|0)==0){j=0;i=e;return j|0}j=_n(b,d)|0;fdfd[c[(c[e>>2]|0)+4>>2]&511](e);a=0;i=d;return a|0}function Un(b){b=b|0;var d=0,e=0,f=0,g=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;d=i;g=i;i=i+24|0;f=g;e=b+352|0;a[e]=1;m=b+12|0;j=c[m>>2]|0;do{if((j|0)>0){l=b+8|0;k=c[l>>2]|0;if((a[k]|0)==1){break}c[l>>2]=k+1;c[m>>2]=j+ -1}}while(0);l=b+28|0;$n(b,SG(b,2,e)|0,l,e);j=b+44|0;$n(b,c[j>>2]|0,b+48|0,e);$n(b,c[b+64>>2]|0,b+68|0,e);$n(b,c[b+84>>2]|0,b+88|0,e);if((a[e]&1)==0){r=0;i=d;return r|0}k=c[b+92>>2]|0;if((k|0)<1240){k=107}else{k=(k|0)<33900?1131:32768}c[b+348>>2]=k;if((c[b+32>>2]|0)<=0){a[e]=0;r=0;i=d;return r|0}m=b+40|0;k=c[m>>2]|0;q=b+36|0;k=(WG(b,(c[l>>2]|0)+3|0,c[q>>2]|0,e)|0)+k|0;r=c[m>>2]|0;q=c[q>>2]|0;l=(WG(b,(c[l>>2]|0)+3+q|0,q,e)|0)+r|0;m=c[m>>2]|0;do{if((k|0)>=(m|0)){r=c[j>>2]|0;if((l|0)<=(m|0)|(k|0)>(r|0)|(l|0)>(r|0)|(l|0)<(k|0)){break}if((a[e]&1)==0){r=0;i=d;return r|0}j=FW(32)|0;ge(j,(c[b+8>>2]|0)+k|0,l-k|0);c[b+20>>2]=j;co(b);j=b+128|0;a:do{if((c[j>>2]|0)==3102){k=c[b+320>>2]|0;if((k|0)==0){c[b+336>>2]=1;r=we(584)|0;c[b+328>>2]=r;a[r+48|0]=0;c[r+108>>2]=0;c[r+152>>2]=0;c[r+212>>2]=0;c[r+256>>2]=0;h[r+264>>3]=.039625;c[r+272>>2]=7;c[r+276>>2]=1;a[r+288|0]=0;a[r+304|0]=0;c[r+408>>2]=0;c[r+512>>2]=0;a[r+517|0]=0;h[r+520>>3]=0.0;c[r+528>>2]=0;h[r+536>>3]=.06;h[r+568>>3]=0.0;a[r+576|0]=0;bX(r+544|0,0,17)|0;break}$n(b,k,f,e);if((a[e]&1)==0){r=0;i=d;return r|0}l=c[f+4>>2]|0;m=b+336|0;c[m>>2]=l;n=b+328|0;c[n>>2]=ye(l,584)|0;if((c[m>>2]|0)<=0){break}k=c[f+12>>2]|0;o=(c[g>>2]|0)+3|0;g=c[f+8>>2]|0;q=c[f+16>>2]|0;r=0;while(1){if((l|0)<=(r|0)){f=20;break}f=(WG(b,o+(da(g,r)|0)|0,g,e)|0)+k|0;p=(WG(b,o+(da(g,r+1|0)|0)|0,g,e)|0)+k|0;if((f|0)<(k|0)){f=23;break}if((p|0)<=(k|0)|(f|0)>(q|0)|(p|0)>(q|0)|(p|0)<(f|0)){f=23;break}if((a[e]&1)==0){b=0;f=38;break}fo(b,f,p-f|0,(c[n>>2]|0)+(r*584|0)|0);r=r+1|0;if((r|0)>=(c[m>>2]|0)){break a}}if((f|0)==20){a[e]=0;r=0;i=d;return r|0}else if((f|0)==23){a[e]=0;r=0;i=d;return r|0}else if((f|0)==38){i=d;return b|0}}else{r=we(584)|0;c[b+328>>2]=r;eo(b,c[b+304>>2]|0,c[b+300>>2]|0,r)}}while(0);if((a[e]&1)==0){r=0;i=d;return r|0}f=c[b+296>>2]|0;if((f|0)<1){a[e]=0;r=0;i=d;return r|0}$n(b,f,b+108|0,e);if((a[e]&1)==0){r=0;i=d;return r|0}c[b+332>>2]=c[b+112>>2];do{if((c[j>>2]|0)==3102){go(b);if((a[e]&1)==0){b=0}else{break}i=d;return b|0}}while(0);if(!(ho(b)|0)){a[e]=0;r=0;i=d;return r|0}r=c[j>>2]|0;do{if(!((r|0)==3102|(r|0)==3092)){io(b);if((a[e]&1)==0){b=0}else{break}i=d;return b|0}}while(0);r=(a[e]&1)!=0;i=d;return r|0}}while(0);a[e]=0;r=0;i=d;return r|0}function Vn(a){a=a|0;var b=0,d=0,e=0;b=i;d=i;i=i+8|0;a=RG(a,d)|0;if((a|0)==0){e=0;i=b;return e|0}e=FW(1160)|0;OG(e,a,c[d>>2]|0,1);c[e>>2]=53784;c[e+20>>2]=0;c[e+24>>2]=0;c[e+328>>2]=0;c[e+340>>2]=0;c[e+344>>2]=0;if(Un(e)|0){i=b;return e|0}if((e|0)==0){e=0;i=b;return e|0}fdFd[g>>2]|0)+l|0]&1)!=0);c[(c[b>>2]|0)+(l<<2)>>2]=m;l=l+1|0;}while((l|0)<(c[j>>2]|0));i=e;return}function Gp(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0;d=i;e=a+68|0;f=a+56|0;h=c[f>>2]|0;b=a+64|0;if((c[e>>2]|0)>0){g=0;do{h=c[h+(g<<2)>>2]|0;if((h|0)!=0){Uq(h);HW(h)}h=c[(c[b>>2]|0)+(g<<2)>>2]|0;if((h|0)!=0){ar(h);HW(h)}g=g+1|0;h=c[f>>2]|0}while((g|0)<(c[e>>2]|0))}Fe(h);Fe(c[a+60>>2]|0);Fe(c[b>>2]|0);i=d;return}function Hp(a,b,d,e,f){a=a|0;b=+b;d=+d;e=+e;f=+f;var g=0,j=0,k=0.0;g=i;j=a+8|0;k=+h[j>>3];do{if(b<e){if(k<b){h[j>>3]=b;if(b<=0.0){b=+R(+b)}c[a+40>>2]=~~b}j=a+24|0;if(+h[j>>3]<=e){break}h[j>>3]=e;if(e<=0.0){e=+R(+e)}c[a+48>>2]=~~e}else{if(k<e){h[j>>3]=e;if(e<=0.0){e=+R(+e)}c[a+40>>2]=~~e}j=a+24|0;if(+h[j>>3]<=b){break}h[j>>3]=b;if(b<=0.0){b=+R(+b)}c[a+48>>2]=~~b}}while(0);j=a+16|0;e=+h[j>>3];if(d<f){if(e<d){h[j>>3]=d;if(d<=0.0){d=+R(+d)}c[a+44>>2]=~~d}j=a+32|0;if(+h[j>>3]<=f){i=g;return 0}h[j>>3]=f;if(f<=0.0){f=+R(+f)}c[a+52>>2]=~~f;i=g;return 0}else{if(e<f){h[j>>3]=f;if(f<=0.0){f=+R(+f)}c[a+44>>2]=~~f}j=a+32|0;if(+h[j>>3]<=d){i=g;return 0}h[j>>3]=d;if(d<=0.0){d=+R(+d)}c[a+52>>2]=~~d;i=g;return 0}return 0}
7317 function Ip(b,d,e,f,g){b=b|0;d=d|0;e=e|0;f=+f;g=g|0;var j=0,k=0,l=0,m=0.0,n=0.0,o=0.0,p=0.0,q=0.0,r=0,s=0;j=i;k=FW(12)|0;Pq(k,d,e,f,1);e=c[k+4>>2]|0;if((e|0)==4){l=8}else if((e|0)==0){m=+h[b+8>>3]+-1.0;h[b+24>>3]=m;f=+h[b+16>>3]+-1.0;h[b+32>>3]=f;if(m<=0.0){m=+R(+m)}c[b+48>>2]=~~m;if(f<=0.0){f=+R(+f)}c[b+52>>2]=~~f;if((k|0)==0){i=j;return 0}Uq(k);HW(k);i=j;return 0}do{if((l|0)==8){e=c[k>>2]|0;f=+h[e>>3];m=+h[e+16>>3];do{if(f==m){if(f!=+h[e+56>>3]){l=20;break}if(f!=+h[e+184>>3]){l=20;break}o=+h[e+112>>3];if(o!=+h[e+128>>3]){l=20;break}if(o!=+h[e+72>>3]){l=20;break}if(o!=+h[e+168>>3]){l=20;break}n=+h[e+64>>3];if(n!=+h[e+80>>3]){l=20;break}if(n!=+h[e+24>>3]){l=20;break}p=+h[e+120>>3];if(n!=p){l=20;break}q=+h[e+176>>3];if(q!=+h[e+192>>3]){l=20;break}n=+h[e+8>>3];if(q!=n){l=20;break}if(q!=+h[e+136>>3]){l=20}}else{l=20}}while(0);if((l|0)==20){n=+h[e+8>>3];if(n!=+h[e+24>>3]){break}if(n!=+h[e+64>>3]){break}if(n!=+h[e+192>>3]){break}p=+h[e+120>>3];if(p!=+h[e+136>>3]){break}if(p!=+h[e+80>>3]){break}if(p!=+h[e+176>>3]){break}q=+h[e+56>>3];if(!(q==+h[e+72>>3]&q==m)){break}o=+h[e+112>>3];if(q!=o){break}m=+h[e+168>>3];if(!(m==+h[e+184>>3]&m==f)){break}if(m!=+h[e+128>>3]){break}}Hp(b,f,n,o,p)|0;if((k|0)==0){i=j;return 0}Uq(k);HW(k);i=j;return 0}}while(0);l=b+68|0;s=c[l>>2]|0;d=s+1|0;e=b+72|0;r=c[e>>2]|0;if((s|0)>=(r|0)){if((r|0)==0){c[e>>2]=32;r=32}if((r|0)<(d|0)){do{r=r<<1;}while((r|0)<(d|0));c[e>>2]=r}s=b+56|0;c[s>>2]=Ce(c[s>>2]|0,r,4)|0;s=b+60|0;c[s>>2]=Ce(c[s>>2]|0,c[e>>2]|0,1)|0;s=b+64|0;c[s>>2]=Ce(c[s>>2]|0,c[e>>2]|0,4)|0}if((a[b]&1)!=0){Vq(k)}Wq(k);c[(c[b+56>>2]|0)+(c[l>>2]<<2)>>2]=k;a[(c[b+60>>2]|0)+(c[l>>2]|0)|0]=g&1;s=FW(52)|0;$q(s,k,g);c[(c[b+64>>2]|0)+(c[l>>2]<<2)>>2]=s;c[l>>2]=(c[l>>2]|0)+1;i=j;return 0}function Jp(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=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;g=i;j=+(e+1|0);k=+h[a+8>>3];if(j<=k){e=1;i=g;return e|0}m=+(b|0);l=+h[a+24>>3];if(m>l){e=1;i=g;return e|0}o=+(f+1|0);n=+h[a+16>>3];if(o<=n){e=1;i=g;return e|0}p=+(d|0);q=+h[a+32>>3];if(p>q){e=1;i=g;return e|0}do{if(!(m<k|j>l|p<n|o>q)){if((c[a+68>>2]|0)==0){a=0}else{break}i=g;return a|0}}while(0);e=2;i=g;return e|0}function Kp(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,j=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,t=0;g=i;r=+(e+1|0);q=+h[b+8>>3];if(r<=q){t=1;i=g;return t|0}p=+(d|0);l=+h[b+24>>3];if(p>l){t=1;i=g;return t|0}n=+(f+1|0);m=+h[b+16>>3];if(n<=m){t=1;i=g;return t|0}o=+(f|0);k=+h[b+32>>3];if(o>k){t=1;i=g;return t|0}if(p<q|r>l|o<m|n>k){t=2;i=g;return t|0}j=b+68|0;s=(c[j>>2]|0)>0;if((a[b]&1)==0){if(!s){t=0;i=g;return t|0}t=b+64|0;s=0;while(1){b=s+1|0;if(!(er(c[(c[t>>2]|0)+(s<<2)>>2]|0,d,e,f)|0)){e=2;f=15;break}if((b|0)<(c[j>>2]|0)){s=b}else{e=0;f=15;break}}if((f|0)==15){i=g;return e|0}}else{if(!s){t=0;i=g;return t|0}b=b+64|0;d=d<<2;e=e<<2|3;f=f<<2;s=0;while(1){t=s+1|0;if(!(er(c[(c[b>>2]|0)+(s<<2)>>2]|0,d,e,f)|0)){e=2;f=15;break}if((t|0)<(c[j>>2]|0)){s=t}else{e=0;f=15;break}}if((f|0)==15){i=g;return e|0}}return 0}function Lp(b,e,f,g,j){b=b|0;e=e|0;f=f|0;g=g|0;j=j|0;var 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;k=i;n=c[f>>2]|0;s=n<<2;l=b+8|0;v=+h[l>>3]*4.0;if(v<=0.0){v=+R(+v)}m=~~v;o=c[e>>2]|0;m=(m|0)>(o|0)?o:m;if((s|0)<(m|0)){o=s&-8;q=e+20|0;p=e+12|0;r=n>>1;n=255>>>(m&7);u=(c[q>>2]|0)+r|0;do{if((s|7|0)<(m|0)){t=o;while(1){s=u+1|0;a[u]=0;u=t+8|0;if((t+15|0)<(m|0)){t=u;u=s}else{break}}if((u|0)<(m|0)){a[s]=(d[s]|0)&n}u=(c[q>>2]|0)+((c[p>>2]|0)+r)|0;t=o;while(1){s=u+1|0;a[u]=0;u=t+8|0;if((t+15|0)<(m|0)){t=u;u=s}else{break}}if((u|0)<(m|0)){a[s]=(d[s]|0)&n}u=(c[q>>2]|0)+((c[p>>2]<<1)+r)|0;s=o;while(1){t=u+1|0;a[u]=0;u=s+8|0;if((s+15|0)<(m|0)){s=u;u=t}else{break}}if((u|0)<(m|0)){a[t]=(d[t]|0)&n}p=(c[q>>2]|0)+(((c[p>>2]|0)*3|0)+r)|0;while(1){q=p+1|0;a[p]=0;p=o+8|0;if((o+15|0)<(m|0)){o=p;p=q}else{break}}if((p|0)>=(m|0)){break}a[q]=(d[q]|0)&n}else{if((o|0)>=(m|0)){break}a[u]=(d[u]|0)&n;u=(c[q>>2]|0)+((c[p>>2]|0)+r)|0;a[u]=(d[u]|0)&n;u=(c[q>>2]|0)+((c[p>>2]<<1)+r)|0;a[u]=(d[u]|0)&n;u=(c[q>>2]|0)+(((c[p>>2]|0)*3|0)+r)|0;a[u]=(d[u]|0)&n}}while(0);v=+h[l>>3];if(v<=0.0){v=+R(+v)}c[f>>2]=~~v}l=b+24|0;v=+h[l>>3]*4.0;if(v<=0.0){v=+R(+v)}m=~~v+1|0;r=(m|0)<0?0:m;m=(c[g>>2]<<2)+4|0;if((r|0)<(m|0)){p=e+20|0;o=e+12|0;n=r>>3;w=r&7;s=65280>>>w;q=r+8&-8;t=c[p>>2]|0;u=t+n|0;do{if((w|0)==0){if((r|0)<(m|0)){q=r;while(1){a[u]=0;q=q+8|0;if((q|0)<(m|0)){u=u+1|0}else{break}}t=c[p>>2]|0}q=c[o>>2]|0;if((r|0)<(m|0)){q=t+(q+n)|0;s=r;while(1){a[q]=0;s=s+8|0;if((s|0)<(m|0)){q=q+1|0}else{break}}q=c[o>>2]|0;t=c[p>>2]|0}if((r|0)<(m|0)){q=t+((q<<1)+n)|0;s=r;while(1){a[q]=0;s=s+8|0;if((s|0)<(m|0)){q=q+1|0}else{break}}q=c[o>>2]|0;t=c[p>>2]|0}if((r|0)<(m|0)){n=t+((q*3|0)+n)|0}else{break}while(1){a[n]=0;r=r+8|0;if((r|0)<(m|0)){n=n+1|0}else{break}}}else{a[u]=(d[u]|0)&s;if((q|0)<(m|0)){r=t+(n+1)|0;t=q;while(1){a[r]=0;t=t+8|0;if((t|0)<(m|0)){r=r+1|0}else{break}}}r=c[p>>2]|0;t=(c[o>>2]|0)+n|0;w=r+t|0;a[w]=(d[w]|0)&s;if((q|0)<(m|0)){r=r+(t+1)|0;t=q;while(1){a[r]=0;t=t+8|0;if((t|0)<(m|0)){r=r+1|0}else{break}}}r=c[p>>2]|0;t=(c[o>>2]<<1)+n|0;w=r+t|0;a[w]=(d[w]|0)&s;if((q|0)<(m|0)){r=r+(t+1)|0;t=q;while(1){a[r]=0;t=t+8|0;if((t|0)<(m|0)){r=r+1|0}else{break}}}p=c[p>>2]|0;n=((c[o>>2]|0)*3|0)+n|0;w=p+n|0;a[w]=(d[w]|0)&s;if((q|0)<(m|0)){n=p+(n+1)|0}else{break}while(1){a[n]=0;q=q+8|0;if((q|0)<(m|0)){n=n+1|0}else{break}}}}while(0);v=+h[l>>3];if(v<=0.0){v=+R(+v)}c[g>>2]=~~v}l=b+68|0;if((c[l>>2]|0)<=0){i=k;return}b=b+64|0;m=0;do{ir(c[(c[b>>2]|0)+(m<<2)>>2]|0,e,f,g,j);m=m+1|0;}while((m|0)<(c[l>>2]|0));i=k;return}function Mp(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0;f=i;bX(a|0,0,64)|0;if(b){c[a+64>>2]=fH(e,d)|0;i=f;return}else{c[a+64>>2]=0;i=f;return}}function Np(a){a=a|0;var b=0,d=0,e=0;b=i;d=0;do{e=c[a+(d<<2)>>2]|0;if((e|0)!=0){fd[c[(c[e>>2]|0)+4>>2]&511](e)}d=d+1|0;}while((d|0)<16);a=c[a+64>>2]|0;if((a|0)==0){i=b;return}gH(a);HW(a);i=b;return}function Op(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;d=i;e=0;a:while(1){f=c[a+(e<<2)>>2]|0;do{if((f|0)!=0){f=c[f+4>>2]|0;if((f|0)==0){break}g=c[f+8>>2]|0;if(Bd[c[(c[g>>2]|0)+8>>2]&255](g,b)|0){b=6;break a}}}while(0);e=e+1|0;if((e|0)>=16){f=0;b=6;break}}if((b|0)==6){i=d;return f|0}return 0}function Pp(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0;g=i;b=c[b+64>>2]|0;if((b|0)==0){d=0}else{d=hH(b,d,e,f)|0}if((a[e]&1)==0){i=g;return d|0}Zp(e);i=g;return d|0}function Qp(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0;g=i;b=c[b+64>>2]|0;if((b|0)==0){d=0}else{d=iH(b,d,e,f)|0}if((a[e]&1)==0){i=g;return d|0}Zp(e);i=g;return d|0}function Rp(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0;g=i;b=c[b+64>>2]|0;if((b|0)==0){d=0}else{d=jH(b,d,e,f)|0}if((a[e]&1)==0){i=g;return d|0}Zp(e);i=g;return d|0}function Sp(b,d,e){b=b|0;d=d|0;e=e|0;var f=0;f=i;b=c[b+64>>2]|0;if((b|0)==0){d=0}else{d=kH(b,d,e)|0}if((a[e]&1)==0){i=f;return d|0}Zp(e);i=f;return d|0}function Tp(b,d,e){b=b|0;d=d|0;e=e|0;var f=0;f=i;b=c[b+64>>2]|0;if((b|0)==0){d=0}else{d=lH(b,d,e)|0}if((a[e]&1)==0){i=f;return d|0}Zp(e);i=f;return d|0}function Up(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;j=i;b=c[b+64>>2]|0;if((b|0)==0){k=3}else{d=mH(b,d,e,f,g,h)|0;if((d|0)==0){k=3}}if((k|0)==3){Fe(f);d=0}if((a[e]&1)==0){i=j;return d|0}Zp(e);i=j;return d|0}function Vp(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=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.0,s=0,t=0.0,u=0.0;f=i;q=i;i=i+32|0;g=q;k=+h[d>>3];u=+h[e>>3];j=+h[d+8>>3];p=+h[e+16>>3];n=k*u+j*p;h[q>>3]=n;t=+h[e+8>>3];o=+h[e+24>>3];r=-0.0-(k*t+j*o);e=g+8|0;h[e>>3]=r;m=+h[d+16>>3];l=+h[d+24>>3];p=m*u+l*p;h[g+16>>3]=p;o=-0.0-(m*t+l*o);s=g+24|0;h[s>>3]=o;if(+S(+(n*o-p*r))<.01){h[q>>3]=.01;bX(e|0,0,16)|0;h[s>>3]=.01;o=.01;p=0.0;r=0.0;n=.01}q=c[a>>2]|0;do{if((q|0)==0){e=1}else{if((c[q+4>>2]|0)!=(b|0)){e=1;break}if(n!=+h[q+8>>3]){e=1;break}if(r!=+h[q+16>>3]){e=1;break}if(p!=+h[q+24>>3]){e=1;break}if(o!=+h[q+32>>3]){e=1;break}if(k!=+h[q+40>>3]){e=1;break}if(j!=+h[q+48>>3]){e=1;break}if(m!=+h[q+56>>3]){e=1;break}if(l!=+h[q+64>>3]){e=1;break}i=f;return q|0}}while(0);a:while(1){q=c[a+(e<<2)>>2]|0;do{if((q|0)!=0){if((c[q+4>>2]|0)!=(b|0)){break}if(n!=+h[q+8>>3]){break}if(r!=+h[q+16>>3]){break}if(p!=+h[q+24>>3]){break}if(o!=+h[q+32>>3]){break}if(k!=+h[q+40>>3]){break}if(j!=+h[q+48>>3]){break}if(m!=+h[q+56>>3]){break}if(l==+h[q+64>>3]){s=23;break a}}}while(0);e=e+1|0;if((e|0)>=16){s=27;break}}if((s|0)==23){if((e|0)>0){while(1){b=e+ -1|0;c[a+(e<<2)>>2]=c[a+(b<<2)>>2];if((b|0)>0){e=b}else{break}}}c[a>>2]=q;s=q;i=f;return s|0}else if((s|0)==27){b=sd[c[(c[b>>2]|0)+8>>2]&127](b,g,d)|0;d=a+60|0;g=c[d>>2]|0;if((g|0)!=0){fd[c[(c[g>>2]|0)+4>>2]&511](g)}e=a+56|0;c[d>>2]=c[e>>2];s=a+52|0;c[e>>2]=c[s>>2];e=a+48|0;c[s>>2]=c[e>>2];s=a+44|0;c[e>>2]=c[s>>2];e=a+40|0;c[s>>2]=c[e>>2];s=a+36|0;c[e>>2]=c[s>>2];e=a+32|0;c[s>>2]=c[e>>2];s=a+28|0;c[e>>2]=c[s>>2];e=a+24|0;c[s>>2]=c[e>>2];s=a+20|0;c[e>>2]=c[s>>2];e=a+16|0;c[s>>2]=c[e>>2];s=a+12|0;c[e>>2]=c[s>>2];e=a+8|0;c[s>>2]=c[e>>2];s=a+4|0;c[e>>2]=c[s>>2];c[s>>2]=c[a>>2];c[a>>2]=b;s=b;i=f;return s|0}return 0}function Wp(b,d,e){b=b|0;d=d|0;e=e|0;c[b>>2]=54752;c[b+8>>2]=d;c[b+12>>2]=e;d=e+16|0;c[d>>2]=(c[d>>2]|0)+1;c[b+16>>2]=0;a[b+4|0]=0;i=i;return}function Xp(a){a=a|0;var b=0,d=0;b=i;c[a>>2]=54752;Zp(c[a+12>>2]|0);d=c[a+8>>2]|0;if((d|0)==0){HW(a);i=b;return}fd[c[(c[d>>2]|0)+4>>2]&511](d);HW(a);i=b;return}function Yp(a){a=a|0;var b=0;b=i;c[a>>2]=54752;Zp(c[a+12>>2]|0);a=c[a+8>>2]|0;if((a|0)==0){i=b;return}fdfd[c[(c[a>>2]|0)+4>>2]&511](a);i=b;return}function aq(b){b=b|0;a[b]=0;a[b+20|0]=0;c[b+4>>2]=0;c[b+8>>2]=0;c[b+16>>2]=1;i=i;return}function bq(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0;f=i;a[b]=1;g=FW(32)|0;ie(g,d);c[b+4>>2]=g;a[b+20|0]=e&1;i=f;return}function cq(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;a[b]=0;c[b+8>>2]=d;c[b+12>>2]=e;a[b+20|0]=f&1;i=i;return}function dq(a){a=a|0;c[a>>2]=54808;i=i;return}function eq(a){a=a|0;var b=0;b=i;HW(a);i=b;return}function fq(a){a=a|0;i=i;return}function gq(a){a=a|0;var b=0;b=i;bX(a|0,0,32)|0;i=b;return}function hq(a){a=a|0;var b=0;b=i;Fe(c[a>>2]|0);Fe(c[a+4>>2]|0);Fe(c[a+20>>2]|0);i=b;return}function iq(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;g=b+8|0;j=c[g>>2]|0;c[b+16>>2]=(c[d+16>>2]|0)+j;f=d+8|0;k=c[f>>2]|0;j=j+k|0;h=b+12|0;l=c[h>>2]|0;if((j|0)>(l|0)){if((l|0)==0){c[h>>2]=32;l=32}if((l|0)<(j|0)){do{l=l<<1;}while((l|0)<(j|0));c[h>>2]=l}c[b>>2]=Ce(c[b>>2]|0,l,16)|0;k=b+4|0;c[k>>2]=Ce(c[k>>2]|0,c[h>>2]|0,1)|0;k=c[f>>2]|0}if((k|0)<=0){i=e;return}l=d+4|0;k=b+4|0;h=c[g>>2]|0;j=0;do{$W((c[b>>2]|0)+(h<<4)|0,(c[d>>2]|0)+(j<<4)|0,16)|0;a[(c[k>>2]|0)+(c[g>>2]|0)|0]=a[(c[l>>2]|0)+j|0]|0;h=(c[g>>2]|0)+1|0;c[g>>2]=h;j=j+1|0;}while((j|0)<(c[f>>2]|0));i=e;return}function jq(b,d,e){b=b|0;d=+d;e=+e;var f=0,g=0,j=0,k=0,l=0,m=0,n=0;j=i;g=b+16|0;f=b+8|0;m=c[f>>2]|0;if((c[g>>2]|0)==(m+ -1|0)){n=3;i=j;return n|0}l=m+1|0;k=b+12|0;n=c[k>>2]|0;if((m|0)<(n|0)){k=b;b=b+4|0}else{if((n|0)==0){c[k>>2]=32;n=32}if((n|0)<(l|0)){do{n=n<<1;}while((n|0)<(l|0));c[k>>2]=n}c[b>>2]=Ce(c[b>>2]|0,n,16)|0;n=b+4|0;c[n>>2]=Ce(c[n>>2]|0,c[k>>2]|0,1)|0;m=c[f>>2]|0;k=b;b=n}h[(c[k>>2]|0)+(m<<4)>>3]=d;h[(c[k>>2]|0)+(c[f>>2]<<4)+8>>3]=e;a[(c[b>>2]|0)+(c[f>>2]|0)|0]=3;n=c[f>>2]|0;c[f>>2]=n+1;c[g>>2]=n;n=0;i=j;return n|0}function kq(b,d,e){b=b|0;d=+d;e=+e;var f=0,g=0,j=0,k=0,l=0,m=0,n=0;g=i;f=b+8|0;k=c[f>>2]|0;if((c[b+16>>2]|0)==(k|0)){n=1;i=g;return n|0}j=b+4|0;m=(c[j>>2]|0)+(k+ -1)|0;a[m]=a[m]&-3;m=c[f>>2]|0;l=m+1|0;k=b+12|0;n=c[k>>2]|0;if((m|0)>=(n|0)){if((n|0)==0){c[k>>2]=32;n=32}if((n|0)<(l|0)){do{n=n<<1;}while((n|0)<(l|0));c[k>>2]=n}c[b>>2]=Ce(c[b>>2]|0,n,16)|0;c[j>>2]=Ce(c[j>>2]|0,c[k>>2]|0,1)|0;m=c[f>>2]|0}h[(c[b>>2]|0)+(m<<4)>>3]=d;h[(c[b>>2]|0)+(c[f>>2]<<4)+8>>3]=e;a[(c[j>>2]|0)+(c[f>>2]|0)|0]=2;c[f>>2]=(c[f>>2]|0)+1;n=0;i=g;return n|0}function lq(b,d,e,f,g,j,k){b=b|0;d=+d;e=+e;f=+f;g=+g;j=+j;k=+k;var l=0,m=0,n=0,o=0,p=0,q=0,r=0;n=i;m=b+8|0;o=c[m>>2]|0;if((c[b+16>>2]|0)==(o|0)){r=1;i=n;return r|0}l=b+4|0;r=(c[l>>2]|0)+(o+ -1)|0;a[r]=a[r]&-3;r=c[m>>2]|0;p=r+3|0;o=b+12|0;q=c[o>>2]|0;if((p|0)>(q|0)){if((q|0)==0){c[o>>2]=32;q=32}if((q|0)<(p|0)){do{q=q<<1;}while((q|0)<(p|0));c[o>>2]=q}c[b>>2]=Ce(c[b>>2]|0,q,16)|0;c[l>>2]=Ce(c[l>>2]|0,c[o>>2]|0,1)|0;r=c[m>>2]|0}h[(c[b>>2]|0)+(r<<4)>>3]=d;h[(c[b>>2]|0)+(c[m>>2]<<4)+8>>3]=e;a[(c[l>>2]|0)+(c[m>>2]|0)|0]=8;r=(c[m>>2]|0)+1|0;c[m>>2]=r;h[(c[b>>2]|0)+(r<<4)>>3]=f;h[(c[b>>2]|0)+(c[m>>2]<<4)+8>>3]=g;a[(c[l>>2]|0)+(c[m>>2]|0)|0]=8;r=(c[m>>2]|0)+1|0;c[m>>2]=r;h[(c[b>>2]|0)+(r<<4)>>3]=j;h[(c[b>>2]|0)+(c[m>>2]<<4)+8>>3]=k;a[(c[l>>2]|0)+(c[m>>2]|0)|0]=2;c[m>>2]=(c[m>>2]|0)+1;r=0;i=n;return r|0}function mq(b){b=b|0;var d=0,e=0,f=0,g=0,j=0,k=0,l=0,m=0.0;e=i;g=b+16|0;j=c[g>>2]|0;f=b+8|0;k=c[f>>2]|0;if((j|0)==(k|0)){l=1;i=e;return l|0}l=k+ -1|0;k=c[b>>2]|0;do{if((j|0)==(l|0)){m=+h[k+(j<<4)>>3];d=6}else{m=+h[k+(j<<4)>>3];if(+h[k+(l<<4)>>3]!=m){d=6;break}if(+h[k+(l<<4)+8>>3]!=+h[k+(j<<4)+8>>3]){d=6}}}while(0);if((d|0)==6){kq(b,m,+h[k+(j<<4)+8>>3])|0;j=c[g>>2]|0}l=b+4|0;k=(c[l>>2]|0)+j|0;a[k]=a[k]|4;l=(c[l>>2]|0)+((c[f>>2]|0)+ -1)|0;a[l]=a[l]|4;c[g>>2]=c[f>>2];l=0;i=e;return l|0}function nq(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,k=0,l=0;g=i;h=a+24|0;j=c[h>>2]|0;k=a+28|0;if((j|0)==(c[k>>2]|0)){l=(j|0)==0?8:j<<1;c[k>>2]=l;j=a+20|0;k=Ce(c[j>>2]|0,l,16)|0;c[j>>2]=k;j=c[h>>2]|0}else{k=c[a+20>>2]|0}l=a+20|0;c[k+(j<<4)>>2]=b;c[(c[l>>2]|0)+(c[h>>2]<<4)+4>>2]=d;c[(c[l>>2]|0)+(c[h>>2]<<4)+8>>2]=e;c[(c[l>>2]|0)+(c[h>>2]<<4)+12>>2]=f;c[h>>2]=(c[h>>2]|0)+1;i=g;return}function oq(a,b,d){a=a|0;b=+b;d=+d;var e=0,f=0,g=0,j=0;e=i;f=a+8|0;if((c[f>>2]|0)<=0){i=e;return}g=0;do{j=(c[a>>2]|0)+(g<<4)|0;h[j>>3]=+h[j>>3]+b;j=(c[a>>2]|0)+(g<<4)+8|0;h[j>>3]=+h[j>>3]+d;g=g+1|0;}while((g|0)<(c[f>>2]|0));i=e;return}function pq(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0;e=i;g=a+8|0;f=c[g>>2]|0;if((c[a+16>>2]|0)==(f|0)){d=0;i=e;return d|0}h[b>>3]=+h[(c[a>>2]|0)+(f+ -1<<4)>>3];h[d>>3]=+h[(c[a>>2]|0)+((c[g>>2]|0)+ -1<<4)+8>>3];d=1;i=e;return d|0}function qq(a){a=a|0;c[a>>2]=54864;i=i;return}function rq(a){a=a|0;var b=0;b=i;HW(a);i=b;return}function sq(a){a=a|0;i=i;return}function tq(b,d){b=b|0;d=d|0;c[b>>2]=54896;a[b+4|0]=a[d]|0;a[b+5|0]=a[d+1|0]|0;a[b+6|0]=a[d+2|0]|0;i=i;return}function uq(a){a=a|0;var b=0;b=i;HW(a);i=b;return}function vq(b,c,d,e){b=b|0;c=c|0;d=d|0;e=e|0;a[e]=a[b+4|0]|0;a[e+1|0]=a[b+5|0]|0;a[e+2|0]=a[b+6|0]|0;i=i;return-1}function wq(b){b=b|0;var d=0,e=0;e=i;d=FW(8)|0;c[d>>2]=54896;a[d+4|0]=a[b+4|0]|0;a[d+5|0]=a[b+5|0]|0;a[d+6|0]=a[b+6|0]|0;i=e;return d|0}function xq(a){a=a|0;i=i;return-1}function yq(a,b){a=a|0;b=b|0;var d=0;d=i;c[a>>2]=(b|0)!=0?b:54984;bX(a+4|0,0,10)|0;i=d;return}function zq(b){b=b|0;var e=0,f=0,g=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0.0;e=i;j=c[b>>2]|0;f=c[j>>2]|0;if((f|0)==0){g=b+8|0;f=j+4|0;k=1;while(1){c[g>>2]=k;if((k|0)<(c[f>>2]|0)){k=k<<1}else{break}}c[b+4>>2]=ye(da(k,k)|0,1)|0;s=(c[g>>2]|0)/2|0;Aq(b,s,s,1,s,1)}else if((f|0)==2){f=c[j+4>>2]|0;k=j+8|0;g=c[k>>2]<<1;s=(f|0)<(g|0)?g:f;c[b+8>>2]=s;c[b+4>>2]=ye(da(s,s)|0,1)|0;Cq(b,c[k>>2]|0)}else if((f|0)==1){f=c[j+4>>2]&-2;s=(f|0)<2?2:f;c[b+8>>2]=s;c[b+4>>2]=ye(da(s,s)|0,1)|0;Bq(b)}g=b+12|0;a[g]=-1;f=b+13|0;a[f]=0;t=+h[j+24>>3]*255.0+.5;if(t<=0.0){t=+R(+t)}k=~~t;k=(k&255|0)==0?1:k&255;t=+h[j+32>>3]*255.0+.5;if(t<=0.0){t=+R(+t)}l=~~t;l=(l|0)>255?-1:l&255;m=b+8|0;s=c[m>>2]|0;if((da(s,s)|0)==0){i=e;return}b=b+4|0;q=j+16|0;n=k&255;j=l&255;p=0;do{o=(c[b>>2]|0)+p|0;t=+U(+(+(d[o]|0)/255.0),+(+h[q>>3]))*255.0+.5;if(t<=0.0){t=+R(+t)}s=~~t;r=s&255;if(r>>>0<n>>>0){r=k}else{r=r>>>0<j>>>0?s&255:l}a[o]=r;do{if((r&255)<(d[g]|0)){a[g]=r}else{if((r&255)<=(d[f]|0)){break}a[f]=r}}while(0);p=p+1|0;s=c[m>>2]|0;}while((p|0)<(da(s,s)|0));i=e;return}function Aq(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;j=i;k=b+8|0;if((g|0)==0){n=c[k>>2]|0}else{while(1){m=(g|0)/2|0;l=h<<2;Aq(b,d,e,f,m,l);n=g+d|0;p=c[k>>2]|0;o=g+e|0;Aq(b,(n|0)%(p|0)|0,(o|0)%(p|0)|0,h+f|0,m,l);Aq(b,(n|0)%(c[k>>2]|0)|0,e,(h<<1)+f|0,m,l);n=c[k>>2]|0;d=((g<<1)+d|0)%(n|0)|0;e=(o|0)%(n|0)|0;f=(h*3|0)+f|0;if((g+1|0)>>>0<3){break}else{h=l;g=m}}}o=(((f*254|0)+ -254|0)/((da(n,n)|0)+ -1|0)|0)+1&255;p=(da(n,d)|0)+e|0;a[(c[b+4>>2]|0)+p|0]=o;i=j;return}function Bq(b){b=b|0;var d=0,e=0,f=0,g=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0.0,t=0,u=0,v=0.0,w=0.0,x=0.0,y=0.0;f=i;d=b+8|0;l=c[d>>2]|0;e=l>>1;if((l|0)>0){g=b+4|0;j=0;do{if((l|0)>0){k=0;while(1){l=(da(l,j)|0)+k|0;a[(c[g>>2]|0)+l|0]=0;k=k+1|0;l=c[d>>2]|0;if((k|0)<(l|0)){}else{break}}}j=j+1|0;}while((j|0)<(l|0))}g=ye(da(l,e)|0,8)|0;j=(e|0)>0;do{if(j){n=e+ -1|0;w=+(e|0);m=0;do{v=+(m|0)+.5;l=da(m,e)|0;s=v-w;k=0;do{x=+(k|0)+.5;if((k+m|0)<(n|0)){y=v}else{x=x-w;y=s}h[g+(k+l<<3)>>3]=y*y+x*x;k=k+1|0;}while((k|0)<(e|0));m=m+1|0;}while((m|0)<(e|0));if(!j){break}s=+(e|0);k=0;do{w=+(k|0)+.5;v=w-s;l=da(k+e|0,e)|0;m=0;do{x=+(m|0)+.5;if((m|0)<(k|0)){y=v}else{x=x-s;y=w}h[g+(m+l<<3)>>3]=y*y+x*x;m=m+1|0;}while((m|0)<(e|0));k=k+1|0;}while((k|0)<(e|0))}}while(0);a[b+12|0]=1;a[b+13|0]=0;m=c[d>>2]|0;if((da(m,e)|0)<=0){Fe(g);i=f;return}k=b+4|0;b=e<<1;l=0;u=0;r=0;do{if(!((m|0)<1|j^1)){s=-1.0;q=0;do{n=da(m,q)|0;p=c[k>>2]|0;o=da(q,e)|0;t=0;do{do{if((a[p+(n+t)|0]|0)==0){v=+h[g+(t+o<<3)>>3];if(v<=s){break}s=v;u=t;r=q}}while(0);t=t+1|0;}while((t|0)<(e|0));q=q+1|0;}while((q|0)<(m|0))}t=((l*508|0)/((da(b,m)|0)+ -1|0)|0)+1&255;n=(da(m,r)|0)+u|0;a[(c[k>>2]|0)+n|0]=t;n=c[d>>2]|0;m=(((l<<1|1)*254|0)/((da(b,n)|0)+ -1|0)|0)+1&255;if((r|0)<(e|0)){t=u+e+(da(n,r+e|0)|0)|0;a[(c[k>>2]|0)+t|0]=m}else{t=u+e+(da(n,r-e|0)|0)|0;a[(c[k>>2]|0)+t|0]=m}l=l+1|0;m=c[d>>2]|0;}while((l|0)<(da(m,e)|0));Fe(g);i=f;return}function Cq(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,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0;f=i;Eb(123);g=b+8|0;e=c[g>>2]|0;e=ye(da(e,e)|0,12)|0;k=c[g>>2]|0;if((k|0)>0){j=0;h=0;do{if((k|0)>0){k=0;while(1){c[e+(j*12|0)>>2]=k;c[e+(j*12|0)+4>>2]=h;j=j+1|0;l=k+1|0;k=c[g>>2]|0;if((l|0)<(k|0)){k=l}else{break}}}h=h+1|0;}while((h|0)<(k|0))}j=da(k,k)|0;if((j|0)!=0){h=0;do{w=~~(+(j-h|0)*+(kb()|0)*4.656612873077393e-10)+h|0;r=e+(h*12|0)|0;t=c[r>>2]|0;s=e+(h*12|0)+4|0;v=c[s>>2]|0;u=e+(w*12|0)|0;c[r>>2]=c[u>>2];w=e+(w*12|0)+4|0;c[s>>2]=c[w>>2];c[u>>2]=t;c[w>>2]=v;h=h+1|0;w=c[g>>2]|0;j=da(w,w)|0;}while((h|0)<(j|0))}m=d+1|0;k=ye(da(m,m)|0,1)|0;l=(d|0)<0;if(!l){n=da(d,d)|0;o=0;while(1){j=da(o,m)|0;h=0;while(1){a[k+(h+j)|0]=(da(h,o)|0)<=(n|0)|0;if((h|0)<(d|0)){h=h+1|0}else{break}}if((o|0)<(d|0)){o=o+1|0}else{break}}}n=c[g>>2]|0;n=ye(da(n,n)|0,1)|0;o=c[g>>2]|0;if((o|0)>0){h=0;do{if((o|0)>0){j=0;while(1){a[n+((da(o,h)|0)+j)|0]=0;j=j+1|0;o=c[g>>2]|0;if((j|0)<(o|0)){}else{break}}}h=h+1|0;}while((h|0)<(o|0))}j=ye(32,12)|0;s=c[g>>2]|0;if((da(s,s)|0)==0){h=0}else{h=0;p=32;o=0;while(1){t=e+(o*12|0)|0;r=c[t>>2]|0;q=c[e+(o*12|0)+4>>2]|0;if((a[n+((da(q,s)|0)+r)|0]|0)==0){if((h|0)==(p|0)){w=h<<1;p=w;j=Ce(j,w,12)|0}s=h+1|0;$W(j+(h*12|0)|0,t|0,12)|0;a:do{if(!l){h=0;while(1){t=c[g>>2]|0;u=(h+q|0)%(t|0)|0;t=(q-h+t|0)%(t|0)|0;w=da(h,m)|0;v=0;while(1){if((a[k+(v+w)|0]|0)!=0){z=c[g>>2]|0;y=(v+r|0)%(z|0)|0;x=(r-v+z|0)%(z|0)|0;a[n+((da(z,u)|0)+y)|0]=1;a[n+((da(c[g>>2]|0,u)|0)+x)|0]=1;a[n+((da(c[g>>2]|0,t)|0)+y)|0]=1;a[n+((da(c[g>>2]|0,t)|0)+x)|0]=1}if((v|0)<(d|0)){v=v+1|0}else{break}}if((h|0)>=(d|0)){break a}h=h+1|0}}}while(0);q=c[g>>2]|0;h=s}else{q=s}o=o+1|0;if((o|0)<(da(q,q)|0)){s=q}else{break}}}Fe(k);Fe(n);k=c[g>>2]|0;k=ye(da(k,k)|0,4)|0;d=c[g>>2]|0;d=ye(da(d,d)|0,4)|0;o=c[g>>2]|0;if((o|0)>0){l=j+4|0;m=(h|0)>1;n=0;do{if((o|0)>0){p=0;do{q=(c[j>>2]|0)-p|0;q=(q|0)>-1?q:0-q|0;r=o-q|0;q=(q|0)<(r|0)?q:r;r=(c[l>>2]|0)-n|0;s=(r|0)>-1?r:0-r|0;r=o-s|0;r=(s|0)<(r|0)?s:r;r=(da(r,r)|0)+(da(q,q)|0)|0;if(m){s=0;q=1;while(1){t=(c[j+(q*12|0)>>2]|0)-p|0;u=(t|0)>-1?t:0-t|0;t=o-u|0;t=(u|0)<(t|0)?u:t;u=(c[j+(q*12|0)+4>>2]|0)-n|0;u=(u|0)>-1?u:0-u|0;v=o-u|0;u=(u|0)<(v|0)?u:v;t=(da(u,u)|0)+(da(t,t)|0)|0;u=(t|0)<(r|0);s=u?q:s;r=u?t:r;q=q+1|0;if((q|0)<(h|0)){}else{break}}}else{s=0}c[k+((da(o,n)|0)+p<<2)>>2]=s;c[d+((da(c[g>>2]|0,n)|0)+p<<2)>>2]=r;p=p+1|0;o=c[g>>2]|0;}while((p|0)<(o|0))}n=n+1|0;}while((n|0)<(o|0))}if((h|0)<=0){Fe(e);Fe(k);Fe(d);Fe(j);i=f;return}b=b+4|0;l=0;while(1){do{if((o|0)>0){m=j+(l*12|0)|0;n=j+(l*12|0)+4|0;r=0;p=0;do{if((o|0)>0){q=0;do{if((c[k+((da(o,p)|0)+q<<2)>>2]|0)==(l|0)){c[e+(r*12|0)>>2]=q;c[e+(r*12|0)+4>>2]=p;o=(c[m>>2]|0)-q|0;s=(o|0)>-1?o:0-o|0;o=c[g>>2]|0;t=o-s|0;s=(s|0)<(t|0)?s:t;t=(c[n>>2]|0)-p|0;t=(t|0)>-1?t:0-t|0;o=o-t|0;o=(t|0)<(o|0)?t:o;c[e+(r*12|0)+8>>2]=(da(o,o)|0)+(da(s,s)|0);o=c[g>>2]|0;r=r+1|0}q=q+1|0;}while((q|0)<(o|0))}p=p+1|0;}while((p|0)<(o|0));pb(e|0,r|0,12,183);if((r|0)<=0){break}m=r+ -1|0;n=0;do{z=da(c[g>>2]|0,c[e+(n*12|0)+4>>2]|0)|0;a[(c[b>>2]|0)+(z+(c[e+(n*12|0)>>2]|0))|0]=255-((n*254|0)/(m|0)|0);n=n+1|0;}while((n|0)<(r|0))}else{pb(e|0,0,12,183)}}while(0);l=l+1|0;if((l|0)>=(h|0)){break}o=c[g>>2]|0}Fe(e);Fe(k);Fe(d);Fe(j);i=f;return}function Dq(a,b){a=a|0;b=b|0;i=i;return(c[a+8>>2]|0)-(c[b+8>>2]|0)|0}function Eq(b,d){b=b|0;d=d|0;var e=0,f=0,g=0;e=i;c[b>>2]=c[d>>2];g=c[d+8>>2]|0;f=b+8|0;c[f>>2]=g;g=ye(da(g,g)|0,1)|0;c[b+4>>2]=g;f=c[f>>2]|0;$W(g|0,c[d+4>>2]|0,da(f,f)|0)|0;a[b+12|0]=a[d+12|0]|0;a[b+13|0]=a[d+13|0]|0;i=e;return}function Fq(a){a=a|0;var b=0;b=i;Fe(c[a+4>>2]|0);i=b;return}function Gq(a,b,e,f){a=a|0;b=b|0;e=e|0;f=f|0;var g=0,h=0;g=i;h=a+4|0;if((c[h>>2]|0)==0){zq(a)}if((d[a+12|0]|0)>(f&255)){b=0;i=g;return b|0}if((d[a+13|0]|0)<=(f&255)){b=1;i=g;return b|0}a=c[a+8>>2]|0;b=(b|0)%(a|0)|0;e=(e|0)%(a|0)|0;b=(da((e|0)<0?0-e|0:e,a)|0)+((b|0)<0?0-b|0:b)|0;b=(d[(c[h>>2]|0)+b|0]|0)<=(f&255)|0;i=g;return b|0}function Hq(b,d,e,f,g){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var j=0,k=0,l=0;j=i;k=i;i=i+8|0;l=k;h[b>>3]=1.0;bX(b+8|0,0,16)|0;h[b+24>>3]=1.0;bX(b+32|0,0,16)|0;c[k>>2]=0;k=FW(8)|0;tq(k,l);c[b+48>>2]=k;k=FW(8)|0;tq(k,l);c[b+52>>2]=k;k=FW(16)|0;yq(k,g);c[b+56>>2]=k;c[b+60>>2]=0;h[b+64>>3]=1.0;h[b+72>>3]=1.0;bX(b+80|0,0,16)|0;h[b+96>>3]=10.0;h[b+104>>3]=1.0;bX(b+112|0,0,17)|0;g=FW(80)|0;Ep(g,0.0,0.0,+(d|0)+-.001,+(e|0)+-.001,f);c[b+132>>2]=g;c[b+136>>2]=0;a[b+140|0]=0;a[b+141|0]=0;c[b+144>>2]=0;i=j;return}function Iq(b,d,e,f,g){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var j=0,k=0,l=0;j=i;k=i;i=i+8|0;l=k;h[b>>3]=1.0;bX(b+8|0,0,16)|0;h[b+24>>3]=1.0;bX(b+32|0,0,16)|0;c[k>>2]=0;k=FW(8)|0;tq(k,l);c[b+48>>2]=k;k=FW(8)|0;tq(k,l);c[b+52>>2]=k;k=FW(16)|0;Eq(k,g);c[b+56>>2]=k;c[b+60>>2]=0;h[b+64>>3]=1.0;h[b+72>>3]=1.0;bX(b+80|0,0,16)|0;h[b+96>>3]=10.0;h[b+104>>3]=1.0;bX(b+112|0,0,17)|0;g=FW(80)|0;Ep(g,0.0,0.0,+(d|0)+-.001,+(e|0)+-.001,f);c[b+132>>2]=g;c[b+136>>2]=0;a[b+140|0]=0;a[b+141|0]=0;c[b+144>>2]=0;i=j;return}function Jq(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,j=0;e=i;$W(b|0,d|0,48)|0;g=c[d+48>>2]|0;c[b+48>>2]=jd[c[c[g>>2]>>2]&511](g)|0;g=c[d+52>>2]|0;c[b+52>>2]=jd[c[c[g>>2]>>2]&511](g)|0;g=c[d+56>>2]|0;f=FW(16)|0;Eq(f,g);c[b+56>>2]=f;c[b+60>>2]=c[d+60>>2];h[b+64>>3]=+h[d+64>>3];h[b+72>>3]=+h[d+72>>3];h[b+80>>3]=+h[d+80>>3];c[b+88>>2]=c[d+88>>2];c[b+92>>2]=c[d+92>>2];h[b+96>>3]=+h[d+96>>3];h[b+104>>3]=+h[d+104>>3];f=d+112|0;if((c[f>>2]|0)==0){c[b+112>>2]=0;c[b+116>>2]=0}else{j=c[d+116>>2]|0;g=b+116|0;c[g>>2]=j;j=ye(j,8)|0;c[b+112>>2]=j;$W(j|0,c[f>>2]|0,c[g>>2]<<3|0)|0}h[b+120>>3]=+h[d+120>>3];a[b+128|0]=a[d+128|0]&1;g=c[d+132>>2]|0;j=FW(80)|0;Fp(j,g);c[b+132>>2]=j;c[b+136>>2]=c[d+136>>2];a[b+140|0]=0;a[b+141|0]=a[d+141|0]&1;c[b+144>>2]=0;i=e;return}function Kq(b){b=b|0;var d=0,e=0;d=i;e=c[b+48>>2]|0;if((e|0)!=0){fd[c[(c[e>>2]|0)+8>>2]&511](e)}e=c[b+52>>2]|0;if((e|0)!=0){fd[c[(c[e>>2]|0)+8>>2]&511](e)}e=c[b+56>>2]|0;if((e|0)!=0){Fq(e);HW(e)}Fe(c[b+112>>2]|0);e=c[b+132>>2]|0;if((e|0)!=0){Gp(e);HW(e)}if((a[b+140|0]&1)==0){i=d;return}b=c[b+136>>2]|0;if((b|0)==0){i=d;return}Le(b);HW(b);i=d;return}function Lq(a,b){a=a|0;b=b|0;var d=0,e=0;d=i;a=a+48|0;e=c[a>>2]|0;if((e|0)!=0){fd[c[(c[e>>2]|0)+8>>2]&511](e)}c[a>>2]=b;i=d;return}function Mq(a,b){a=a|0;b=b|0;var d=0,e=0;d=i;a=a+52|0;e=c[a>>2]|0;if((e|0)!=0){fdfd[c[(c[d>>2]|0)+4>>2]&511](d)}d=c[a+132>>2]|0;if((d|0)==0){d=a+96|0;Of(d);i=b;return}HW(d);d=a+96|0;Of(d);i=b;return}function Dr(a,b,d,e,f){a=a|0;b=+b;d=+d;e=+e;f=f|0;var g=0,j=0,l=0,m=0,n=0.0,o=0.0,p=0.0,q=0,r=0,s=0.0,t=0.0,u=0,v=0,w=0.0,x=0.0,y=0,z=0,A=0,B=0;g=i;m=i;i=i+48|0;j=m;r=i;i=i+48|0;l=r;v=i;i=i+48|0;q=v;z=i;i=i+48|0;u=z;B=i;i=i+16|0;y=B;a=a+124|0;A=c[a>>2]|0;n=b+e;h[k>>3]=n;c[B>>2]=c[k>>2];c[B+4>>2]=c[k+4>>2];B=y+8|0;h[k>>3]=d;c[B>>2]=c[k>>2];c[B+4>>2]=c[k+4>>2];pe(A,55832,y)|0;y=c[a>>2]|0;o=e*.55228475;w=o+d;p=o+b;x=d+e;h[k>>3]=n;c[z>>2]=c[k>>2];c[z+4>>2]=c[k+4>>2];z=u+8|0;h[k>>3]=w;c[z>>2]=c[k>>2];c[z+4>>2]=c[k+4>>2];z=u+16|0;h[k>>3]=p;c[z>>2]=c[k>>2];c[z+4>>2]=c[k+4>>2];z=u+24|0;h[k>>3]=x;c[z>>2]=c[k>>2];c[z+4>>2]=c[k+4>>2];z=u+32|0;h[k>>3]=b;c[z>>2]=c[k>>2];c[z+4>>2]=c[k+4>>2];z=u+40|0;h[k>>3]=x;c[z>>2]=c[k>>2];c[z+4>>2]=c[k+4>>2];pe(y,55856,u)|0;u=c[a>>2]|0;s=b-o;t=b-e;h[k>>3]=s;c[v>>2]=c[k>>2];c[v+4>>2]=c[k+4>>2];v=q+8|0;h[k>>3]=x;c[v>>2]=c[k>>2];c[v+4>>2]=c[k+4>>2];v=q+16|0;h[k>>3]=t;c[v>>2]=c[k>>2];c[v+4>>2]=c[k+4>>2];v=q+24|0;h[k>>3]=w;c[v>>2]=c[k>>2];c[v+4>>2]=c[k+4>>2];v=q+32|0;h[k>>3]=t;c[v>>2]=c[k>>2];c[v+4>>2]=c[k+4>>2];v=q+40|0;h[k>>3]=d;c[v>>2]=c[k>>2];c[v+4>>2]=c[k+4>>2];pe(u,55856,q)|0;q=c[a>>2]|0;o=d-o;e=d-e;h[k>>3]=t;c[r>>2]=c[k>>2];c[r+4>>2]=c[k+4>>2];r=l+8|0;h[k>>3]=o;c[r>>2]=c[k>>2];c[r+4>>2]=c[k+4>>2];r=l+16|0;h[k>>3]=s;c[r>>2]=c[k>>2];c[r+4>>2]=c[k+4>>2];r=l+24|0;h[k>>3]=e;c[r>>2]=c[k>>2];c[r+4>>2]=c[k+4>>2];r=l+32|0;h[k>>3]=b;c[r>>2]=c[k>>2];c[r+4>>2]=c[k+4>>2];r=l+40|0;h[k>>3]=e;c[r>>2]=c[k>>2];c[r+4>>2]=c[k+4>>2];pe(q,55856,l)|0;l=c[a>>2]|0;h[k>>3]=p;c[m>>2]=c[k>>2];c[m+4>>2]=c[k+4>>2];m=j+8|0;h[k>>3]=e;c[m>>2]=c[k>>2];c[m+4>>2]=c[k+4>>2];m=j+16|0;h[k>>3]=n;c[m>>2]=c[k>>2];c[m+4>>2]=c[k+4>>2];m=j+24|0;h[k>>3]=o;c[m>>2]=c[k>>2];c[m+4>>2]=c[k+4>>2];m=j+32|0;h[k>>3]=n;c[m>>2]=c[k>>2];c[m+4>>2]=c[k+4>>2];m=j+40|0;h[k>>3]=d;c[m>>2]=c[k>>2];c[m+4>>2]=c[k+4>>2];pe(l,55856,j)|0;ne(c[a>>2]|0,f?55912:55920,-1)|0;i=g;return}function Er(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=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.0;g=i;l=i;i=i+8|0;k=l;n=i;i=i+8|0;p=n;r=i;i=i+8|0;s=r;A=i;i=i+8|0;z=A;B=i;i=i+8|0;C=B;G=i;i=i+8|0;E=G;H=i;i=i+8|0;I=H;J=i;i=i+8|0;K=J;M=i;i=i+8|0;L=M;N=i;i=i+8|0;O=N;u=i;i=i+16|0;t=u;F=i;i=i+16|0;D=F;q=i;i=i+16|0;m=q;x=i;i=i+16|0;o=x;c[u>>2]=13;v=t+8|0;c[v>>2]=0;y=v+4|0;c[y>>2]=0;c[F>>2]=13;j=D+8|0;c[j>>2]=0;c[j+4>>2]=0;c[q>>2]=13;j=m+8|0;c[j>>2]=0;c[j+4>>2]=0;w=a+112|0;Jf(m,c[w>>2]|0)|0;a=a+124|0;P=c[(c[a>>2]|0)+24>>2]|0;c[y>>2]=0;c[u>>2]=1;c[v>>2]=P;P=c[q>>2]|0;if((P|0)!=7){c[N>>2]=P;c[O+4>>2]=7;Qe(0,72520,O);tc()}Wu(c[j>>2]|0,55936,t);c[v>>2]=0;c[y>>2]=0;c[u>>2]=4;c[v>>2]=Ge(55952)|0;N=c[q>>2]|0;if((N|0)!=7){c[M>>2]=N;c[L+4>>2]=7;Qe(0,72520,L);tc()}Wu(c[j>>2]|0,55944,t);If(t,c[w>>2]|0)|0;Q=+h[b>>3];c[F>>2]=2;L=D+8|0;h[L>>3]=Q;M=c[u>>2]|0;if((M|0)!=6){c[J>>2]=M;c[K+4>>2]=6;Qe(0,72520,K);tc()}tt(c[v>>2]|0,D);Q=+h[b+8>>3];c[F>>2]=2;h[L>>3]=Q;J=c[u>>2]|0;if((J|0)!=6){c[H>>2]=J;c[I+4>>2]=6;Qe(0,72520,I);tc()}tt(c[v>>2]|0,D);Q=+h[b+16>>3];c[F>>2]=2;h[L>>3]=Q;H=c[u>>2]|0;if((H|0)!=6){c[G>>2]=H;c[E+4>>2]=6;Qe(0,72520,E);tc()}tt(c[v>>2]|0,D);Q=+h[b+24>>3];c[F>>2]=2;h[L>>3]=Q;E=c[u>>2]|0;if((E|0)!=6){c[B>>2]=E;c[C+4>>2]=6;Qe(0,72520,C);tc()}tt(c[v>>2]|0,D);B=c[q>>2]|0;if((B|0)!=7){c[A>>2]=B;c[z+4>>2]=7;Qe(0,72520,z);tc()}Wu(c[j>>2]|0,55960,t);do{if(d){c[x>>2]=13;z=o+8|0;c[z>>2]=0;c[z+4>>2]=0;Jf(o,c[w>>2]|0)|0;c[v>>2]=0;c[y>>2]=0;c[u>>2]=4;c[v>>2]=Ge(55968)|0;u=c[x>>2]|0;if((u|0)!=7){c[r>>2]=u;c[s+4>>2]=7;Qe(0,72520,s);tc()}Wu(c[z>>2]|0,55152,t);r=c[q>>2]|0;if((r|0)==7){Wu(c[j>>2]|0,55984,o);break}else{c[n>>2]=r;c[p+4>>2]=7;Qe(0,72520,p);tc()}}}while(0);if((e|0)==0){P=FW(56)|0;N=a;N=c[N>>2]|0;N=N+28|0;N=c[N>>2]|0;N=Ge(N)|0;O=a;O=c[O>>2]|0;O=O+24|0;O=c[O>>2]|0;Tj(P,N,0,O,m);O=P;O=c[O>>2]|0;O=O+116|0;O=c[O>>2]|0;hd[O&127](P,1);Lf(f,P)|0;i=g;return}n=c[q>>2]|0;if((n|0)!=7){c[l>>2]=n;c[k+4>>2]=7;Qe(0,72520,k);tc()}Wu(c[j>>2]|0,55992,e);P=FW(56)|0;N=a;N=c[N>>2]|0;N=N+28|0;N=c[N>>2]|0;N=Ge(N)|0;O=a;O=c[O>>2]|0;O=O+24|0;O=c[O>>2]|0;Tj(P,N,0,O,m);O=P;O=c[O>>2]|0;O=O+116|0;O=c[O>>2]|0;hd[O&127](P,1);Lf(f,P)|0;i=g;return}function Fr(a,b,d,e,f,g,j){a=a|0;b=b|0;d=d|0;e=e|0;f=+f;g=g|0;j=j|0;var 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;m=i;l=i;i=i+8|0;k=l;q=i;i=i+8|0;p=q;t=i;i=i+8|0;r=t;w=i;i=i+8|0;x=w;A=i;i=i+8|0;z=A;F=i;i=i+8|0;G=F;L=i;i=i+8|0;K=L;H=i;i=i+16|0;v=H;C=i;i=i+16|0;o=C;u=i;i=i+16|0;n=u;E=i;i=i+16|0;D=E;c[H>>2]=13;B=v+8|0;c[B>>2]=0;c[B+4>>2]=0;c[C>>2]=13;y=o+8|0;c[y>>2]=0;c[y+4>>2]=0;c[u>>2]=13;s=n+8|0;c[s>>2]=0;c[s+4>>2]=0;c[E>>2]=13;I=D+8|0;c[I>>2]=0;J=I+4|0;c[J>>2]=0;a=a+112|0;Jf(v,c[a>>2]|0)|0;do{if(f!=1.0){c[E>>2]=2;M=D+8|0;h[M>>3]=f;N=c[H>>2]|0;if((N|0)!=7){c[L>>2]=N;c[K+4>>2]=7;Qe(0,72520,K);tc()}Wu(c[B>>2]|0,55464,D);c[E>>2]=2;h[M>>3]=f;K=c[H>>2]|0;if((K|0)==7){Wu(c[B>>2]|0,56008,D);break}else{c[F>>2]=K;c[G+4>>2]=7;Qe(0,72520,G);tc()}}}while(0);do{if((g|0)!=0){c[I>>2]=0;c[J>>2]=0;c[E>>2]=4;c[I>>2]=Ge(g)|0;E=c[H>>2]|0;if((E|0)==7){Wu(c[B>>2]|0,56016,D);break}else{c[A>>2]=E;c[z+4>>2]=7;Qe(0,72520,z);tc()}}}while(0);Jf(o,c[a>>2]|0)|0;z=c[C>>2]|0;if((z|0)!=7){c[w>>2]=z;c[x+4>>2]=7;Qe(0,72520,x);tc()}Wu(c[y>>2]|0,e,v);Jf(n,c[a>>2]|0)|0;u=c[u>>2]|0;if((u|0)!=7){c[t>>2]=u;c[r+4>>2]=7;Qe(0,72520,r);tc()}Wu(c[s>>2]|0,b,d);Jf(j,c[a>>2]|0)|0;b=c[j>>2]|0;if((b|0)!=7){c[q>>2]=b;c[p+4>>2]=7;Qe(0,72520,p);tc()}p=j+8|0;Wu(c[p>>2]|0,56024,o);o=c[j>>2]|0;if((o|0)==7){Wu(c[p>>2]|0,56040,n);i=m;return}else{c[l>>2]=o;c[k+4>>2]=7;Qe(0,72520,k);tc()}}function Gr(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0;e=i;g=i;i=i+16|0;f=g;c[g>>2]=13;g=f+8|0;c[g>>2]=0;c[g+4>>2]=0;g=c[a+48>>2]|0;if((g&2|0)!=0){i=e;return}do{if(d){if((g&4|0)!=0){break}i=e;return}else{if((g&32|0)==0){break}i=e;return}}while(0);g=c[a+88>>2]|0;do{if((g|0)!=0){d=a+96|0;if((c[d>>2]|0)!=9){break}if(GF(g,d)|0){break}i=e;return}}while(0);Nf(a+64|0,c[a+112>>2]|0,f,0)|0;d=c[a+28>>2]|0;Tx(b,f,0,c[a+132>>2]|0,+h[d>>3],+h[d+8>>3],+h[d+16>>3],+h[d+24>>3]);Of(f);i=e;return}function Hr(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0;d=i;g=i;i=i+8|0;h=g;l=i;i=i+16|0;j=l;c[l>>2]=13;f=j+8|0;c[f>>2]=0;c[f+4>>2]=0;k=b+152|0;if((c[(Zu(e,56080,k)|0)>>2]|0)!=9){m=b+160|0;c[m>>2]=0;c[m+4>>2]=0;c[k>>2]=5}if((c[(Yu(e,56088,j,0)|0)>>2]|0)!=0){a[b+168|0]=0;Of(j);i=d;return}e=c[l>>2]|0;if((e|0)!=0){c[g>>2]=e;c[h+4>>2]=0;Qe(0,72520,h);tc()}a[b+168|0]=a[f]&1;Of(j);i=d;return}function Ir(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;l=i;k=i;i=i+8|0;j=k;c[b>>2]=55512;h=b+8|0;c[h>>2]=13;m=b+16|0;c[m>>2]=0;c[m+4>>2]=0;c[b+64>>2]=13;m=b+72|0;c[m>>2]=0;c[m+4>>2]=0;c[b+96>>2]=13;m=b+104|0;c[m>>2]=0;c[m+4>>2]=0;m=b+145|0;do{if((c[g>>2]|0)==9){a[m]=1;m=c[g>>2]|0;if((m|0)==9){k=g+8|0;g=c[k+4>>2]|0;m=b+116|0;c[m>>2]=c[k>>2];c[m+4>>2]=g;break}else{c[k>>2]=m;c[j+4>>2]=9;Qe(0,72520,j);tc()}}else{a[m]=0}}while(0);c[b+48>>2]=0;m=b+24|0;c[m>>2]=0;Kf(h,e)|0;zr(b,d,e,f);c[b>>2]=56056;c[b+152>>2]=13;g=b+160|0;c[g>>2]=0;c[g+4>>2]=0;c[m>>2]=16;Hr(b,0,e,0);i=l;return}function Jr(a){a=a|0;var b=0;b=i;c[a>>2]=56056;Of(a+152|0);Cr(a);HW(a);i=b;return}function Kr(a){a=a|0;var b=0;b=i;c[a>>2]=56056;Of(a+152|0);Cr(a);i=b;return}function Lr(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=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.0;k=i;m=i;i=i+8|0;l=m;p=i;i=i+8|0;o=p;s=i;i=i+8|0;t=s;v=i;i=i+8|0;u=v;x=i;i=i+8|0;w=x;z=i;i=i+8|0;y=z;B=i;i=i+16|0;A=B;D=i;i=i+8|0;C=D;F=i;i=i+8|0;E=F;n=i;i=i+16|0;g=n;r=i;i=i+16|0;j=r;c[r>>2]=13;q=j+8|0;c[q>>2]=0;c[q+4>>2]=0;do{if((c[(Yu(d,56120,j,0)|0)>>2]|0)==3){G=c[r>>2]|0;if((G|0)==3){F=c[q>>2]|0;G=FW(32)|0;ie(G,F);c[a+148>>2]=G;break}else{c[F>>2]=G;c[E+4>>2]=3;Qe(0,72520,E);tc()}}else{c[a+148>>2]=0}}while(0);Of(j);do{if((c[(Yu(d,56072,j,0)|0)>>2]|0)==7){E=FW(176)|0;F=c[r>>2]|0;if((F|0)==7){Ir(E,b,c[q>>2]|0,e,f);c[a+152>>2]=E;break}else{c[D>>2]=F;c[C+4>>2]=7;Qe(0,72520,C);tc()}}else{c[a+152>>2]=0}}while(0);Of(j);if(((c[(Yu(d,55464,j,0)|0)>>2]|0)+ -1|0)>>>0<2){f=c[r>>2]|0;if((f+ -1|0)>>>0>=2){c[B>>2]=f;c[A+4>>2]=1;c[A+8>>2]=2;Qe(0,72608,A);tc()}if((f|0)==1){H=+(c[q>>2]|0)}else{H=+h[q>>3]}h[a+160>>3]=H}else{h[a+160>>3]=1.0}Of(j);do{if((c[(Yu(d,56128,j,0)|0)>>2]|0)==3){A=c[r>>2]|0;if((A|0)==3){F=c[q>>2]|0;G=FW(32)|0;ie(G,F);c[a+168>>2]=G;break}else{c[z>>2]=A;c[y+4>>2]=3;Qe(0,72520,y);tc()}}else{c[a+168>>2]=0}}while(0);Of(j);y=a+172|0;do{if((c[(Zu(d,56144,j)|0)>>2]|0)==9){z=c[r>>2]|0;if((z|0)==9){E=q;F=c[E+4>>2]|0;G=y;c[G>>2]=c[E>>2];c[G+4>>2]=F;break}else{c[x>>2]=z;c[w+4>>2]=9;Qe(0,72520,w);tc()}}else{c[y>>2]=0;c[a+176>>2]=0}}while(0);Of(j);do{if((c[(Yu(d,56152,j,0)|0)>>2]|0)==3){w=c[r>>2]|0;if((w|0)==3){F=c[q>>2]|0;G=FW(32)|0;ie(G,F);c[a+180>>2]=G;break}else{c[v>>2]=w;c[u+4>>2]=3;Qe(0,72520,u);tc()}}else{c[a+180>>2]=0}}while(0);Of(j);do{if((c[(Yu(d,56160,j,0)|0)>>2]|0)==4){u=FW(32)|0;v=c[r>>2]|0;if((v|0)!=4){c[s>>2]=v;c[t+4>>2]=4;Qe(0,72520,t);tc()}fe(u,c[q>>2]|0);do{if((te(u,55440)|0)==0){c[a+184>>2]=0}else{s=a+184|0;if((te(u,55984)|0)==0){c[s>>2]=1;break}else{c[s>>2]=0;break}}}while(0);if((u|0)==0){break}ke(u);HW(u)}else{c[a+184>>2]=0}}while(0);Of(j);if((c[(Yu(d,56168,j,0)|0)>>2]|0)!=7){c[a+188>>2]=0;Of(j);i=k;return}d=c[r>>2]|0;if((d|0)!=7){c[p>>2]=d;c[o+4>>2]=7;Qe(0,72520,o);tc()}G=c[q>>2]|0;c[n>>2]=13;p=g+8|0;c[p>>2]=0;c[p+4>>2]=0;do{if((c[(Yu(G,55944,g,0)|0)>>2]|0)==4){o=FW(32)|0;n=c[n>>2]|0;if((n|0)!=4){c[m>>2]=n;c[l+4>>2]=4;Qe(0,72520,l);tc()}fe(o,c[p>>2]|0);l=(te(o,72592)|0)==0|0;if((o|0)==0){break}ke(o);HW(o)}else{l=0}}while(0);Of(g);c[a+188>>2]=l;Of(j);i=k;return}function Mr(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;l=i;k=i;i=i+8|0;j=k;c[b>>2]=55512;h=b+8|0;c[h>>2]=13;c[b+16>>2]=0;c[b+20>>2]=0;c[b+64>>2]=13;c[b+72>>2]=0;c[b+76>>2]=0;c[b+96>>2]=13;c[b+104>>2]=0;c[b+108>>2]=0;m=b+145|0;do{if((c[g>>2]|0)==9){a[m]=1;m=c[g>>2]|0;if((m|0)==9){j=g+8|0;k=c[j+4>>2]|0;m=b+116|0;c[m>>2]=c[j>>2];c[m+4>>2]=k;break}else{c[k>>2]=m;c[j+4>>2]=9;Qe(0,72520,j);tc()}}else{a[m]=0}}while(0);c[b+48>>2]=0;c[b+24>>2]=0;Kf(h,e)|0;zr(b,d,e,f);c[b>>2]=56104;Lr(b,d,e,f,g);i=l;return}function Nr(a){a=a|0;var b=0;b=i;Or(a);HW(a);i=b;return}function Or(a){a=a|0;var b=0,d=0;b=i;c[a>>2]=56104;d=c[a+148>>2]|0;if((d|0)!=0){ke(d);HW(d)}d=c[a+152>>2]|0;if((d|0)!=0){fdfdHW(q);i=p;return}function os(b,d,e,f,g,j,l,m){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;j=j|0;l=l|0;m=m|0;var 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.0,G=0,H=0,I=0,J=0,K=0.0,L=0.0,M=0.0,N=0.0,O=0.0,P=0.0,Q=0.0,S=0,T=0,U=0,V=0;n=i;x=i;i=i+16|0;y=x;v=i;i=i+8|0;w=v;A=i;i=i+8|0;u=A;s=i;i=i+32|0;t=s;C=i;i=i+8|0;D=C;I=i;i=i+8|0;H=i;i=i+8|0;G=i;i=i+8|0;r=i;i=i+8|0;q=r;z=i;i=i+8|0;p=z;do{if((j|0)==0){o=0;E=28}else{o=FW(16)|0;wo(o);B=j+24|0;T=c[B>>2]|0;if((T|0)>0){J=j+28|0;S=0;do{a:do{if((S|0)<(T|0)){while(1){V=hE(a[(c[J>>2]|0)+S|0]|0)|0;U=S+1|0;T=c[B>>2]|0;if(!V){break a}if((U|0)<(T|0)){S=U}else{S=U;break}}}}while(0);if((S|0)<(T|0)){U=S+1|0;c[z>>2]=U;b:do{if((U|0)<(T|0)){do{V=hE(a[(c[J>>2]|0)+U|0]|0)|0;U=c[z>>2]|0;if(V){break b}U=U+1|0;c[z>>2]=U;}while((U|0)<(c[B>>2]|0))}}while(0);T=FW(32)|0;he(T,j,S,U-S|0);yo(o,T);T=c[B>>2]|0;S=c[z>>2]|0}}while((S|0)<(T|0))}B=o+8|0;if((c[B>>2]|0)<=2){E=28;break}S=2;J=-1;j=-1;do{do{if((S|0)>1){if((te(c[(c[o>>2]|0)+(S<<2)>>2]|0,64640)|0)==0){J=S+ -2|0;break}if((S|0)<=5){break}V=(te(c[(c[o>>2]|0)+(S<<2)>>2]|0,64648)|0)==0;j=V?S+ -6|0:j}}while(0);S=S+1|0;}while((S|0)<(c[B>>2]|0));if((J|0)<=-1){E=28;break}I=c[(c[o>>2]|0)+(J<<2)>>2]|0;do{if((c[I+24>>2]|0)>0){I=c[I+28>>2]|0;if((a[I]|0)!=47){E=27;break}if((l|0)!=0){l=wy(l,I+1|0)|0;if((l|0)!=0){break}}Qe(-1,64688,G);l=0}else{E=27}}while(0);if((E|0)==27){Qe(-1,64728,H);l=0}G=J+1|0;L=+Ie(c[(c[(c[o>>2]|0)+(G<<2)>>2]|0)+28>>2]|0);if((l|0)==0){break}E=FW(32)|0;ee(E);H=c[b+128>>2]|0;if((H|0)==0){F=0.0}else{F=+wd[c[(c[H>>2]|0)+12>>2]&1](H)}if(L==0.0){if((f|0)>0){H=0;K=0.0;while(1){c[z>>2]=0;ls(0,c[d+(H<<2)>>2]|0,E,p,l,q,0.0,0,0);L=+h[r>>3];K=L>K?L:K;H=H+1|0;if((H|0)<(f|0)){}else{break}}}else{K=0.0}H=b+28|0;V=c[H>>2]|0;Q=F*2.0;L=+h[V+24>>3]- +h[V+8>>3]-Q;K=(+h[V+16>>3]- +h[V>>3]+-4.0-Q)/K;L=+R(+(K<L?K:L));V=c[(c[o>>2]|0)+(G<<2)>>2]|0;le(V)|0;h[k>>3]=L;c[C>>2]=c[k>>2];c[C+4>>2]=c[k+4>>2];pe(V,64856,D)|0;C=H}else{C=b+28|0}J=c[C>>2]|0;K=L*1.1;if((g|0)<(f|0)){I=b+124|0;M=F+2.0;b=(j|0)>-1;G=j+4|0;D=j+5|0;H=(o|0)==0;j=(j|0)<0;N=L*.2;O=F*2.0;P=+h[J+24>>3]- +h[J+8>>3];do{P=P-K;ne(c[I>>2]|0,56352,-1)|0;J=e+g|0;if((a[J]&1)!=0){ne(c[I>>2]|0,64984,-1)|0;V=c[I>>2]|0;U=c[C>>2]|0;Q=+h[U+16>>3]- +h[U>>3]-O;U=s;h[k>>3]=F;c[U>>2]=c[k>>2];c[U+4>>2]=c[k+4>>2];U=t+8|0;h[k>>3]=P-N;c[U>>2]=c[k>>2];c[U+4>>2]=c[k+4>>2];U=t+16|0;h[k>>3]=Q;c[U>>2]=c[k>>2];c[U+4>>2]=c[k+4>>2];U=t+24|0;h[k>>3]=K;c[U>>2]=c[k>>2];c[U+4>>2]=c[k+4>>2];pe(V,64992,t)|0}ne(c[I>>2]|0,64848,-1)|0;c[z>>2]=0;ls(0,c[d+(g<<2)>>2]|0,E,p,l,q,0.0,0,0);Q=L*+h[r>>3];h[r>>3]=Q;if((m|0)==1){V=c[C>>2]|0;Q=(+h[V+16>>3]- +h[V>>3]-Q)*.5}else if((m|0)==2){V=c[C>>2]|0;Q=+h[V+16>>3]- +h[V>>3]-F+-2.0-Q}else{Q=M}if(b){V=c[(c[o>>2]|0)+(G<<2)>>2]|0;le(V)|0;U=A;h[k>>3]=Q;c[U>>2]=c[k>>2];c[U+4>>2]=c[k+4>>2];pe(V,64856,u)|0;V=c[(c[o>>2]|0)+(D<<2)>>2]|0;le(V)|0;U=v;h[k>>3]=P;c[U>>2]=c[k>>2];c[U+4>>2]=c[k+4>>2];pe(V,64856,w)|0}do{if(!H){c[z>>2]=0;if((c[B>>2]|0)>0){S=0}else{break}do{me(oe(c[I>>2]|0,c[(c[o>>2]|0)+(S<<2)>>2]|0)|0,32)|0;S=(c[z>>2]|0)+1|0;c[z>>2]=S;}while((S|0)<(c[B>>2]|0))}}while(0);if(j){V=c[I>>2]|0;U=x;h[k>>3]=Q;c[U>>2]=c[k>>2];c[U+4>>2]=c[k+4>>2];U=y+8|0;h[k>>3]=P;c[U>>2]=c[k>>2];c[U+4>>2]=c[k+4>>2];pe(V,64920,y)|0}if((a[J]&1)!=0){ne(c[I>>2]|0,65032,-1)|0}ms(0,E,c[I>>2]|0);ne(c[I>>2]|0,64912,-1)|0;ne(c[I>>2]|0,64968,-1)|0;ne(c[I>>2]|0,63808,-1)|0;g=g+1|0;}while((g|0)<(f|0))}if((o|0)!=0){q=c[B>>2]|0;if((q|0)>0){p=0;do{r=c[(c[o>>2]|0)+(p<<2)>>2]|0;if((r|0)!=0){ke(r);HW(r);q=c[B>>2]|0}p=p+1|0;}while((p|0)<(q|0))}xo(o);HW(o)}if((E|0)==0){i=n;return}ke(E);HW(E);i=n;return}}while(0);if((E|0)==28){Qe(-1,64784,I)}if((o|0)==0){i=n;return}p=o+8|0;r=c[p>>2]|0;if((r|0)>0){q=0;do{m=c[(c[o>>2]|0)+(q<<2)>>2]|0;if((m|0)!=0){ke(m);HW(m);r=c[p>>2]|0}q=q+1|0;}while((q|0)<(r|0))}xo(o);HW(o);i=n;return}function ps(b){b=b|0;var d=0,e=0,f=0,g=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,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,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ba=0,ca=0,da=0,ea=0,fa=0,ga=0,ha=0,ia=0,ja=0,ka=0,la=0,ma=0,na=0,oa=0,pa=0,qa=0,ra=0,sa=0,ta=0,ua=0,va=0,wa=0,xa=0,ya=0,za=0,Aa=0,Ba=0,Ca=0,Da=0,Ea=0,Fa=0,Ga=0,Ha=0,Ia=0,Ja=0,Ka=0,La=0,Ma=0,Na=0,Oa=0,Pa=0,Qa=0,Ra=0,Sa=0,Ta=0,Ua=0,Va=0,Wa=0,Xa=0,Ya=0,Za=0,_a=0,$a=0,ab=0,bb=0,cb=0,db=0,eb=0,fb=0,gb=0,hb=0,ib=0,jb=0,kb=0,lb=0,mb=0,nb=0,ob=0,pb=0,qb=0,rb=0,sb=0,tb=0,ub=0,vb=0,wb=0,xb=0,yb=0,zb=0,Ab=0,Bb=0,Cb=0,Db=0,Eb=0,Fb=0.0,Gb=0,Hb=0,Ib=0.0,Jb=0.0,Kb=0,Lb=0,Mb=0,Nb=0,Ob=0,Pb=0,Qb=0,Rb=0,Sb=0,Tb=0,Ub=0,Vb=0,Wb=0,Xb=0,Yb=0,Zb=0,_b=0,$b=0,ac=0,bc=0,cc=0,dc=0,ec=0,fc=0,gc=0,hc=0,ic=0,jc=0,kc=0,lc=0,mc=0,nc=0,oc=0,pc=0,qc=0,rc=0,sc=0,uc=0,vc=0,wc=0,xc=0,yc=0,zc=0,Ac=0,Bc=0,Cc=0,Dc=0,Ec=0,Fc=0,Gc=0,Hc=0,Jc=0,Kc=0,Lc=0,Mc=0,Nc=0,Oc=0,Pc=0,Rc=0,Sc=0,Tc=0,Uc=0,Vc=0,Wc=0,Xc=0,Yc=0,Zc=0,_c=0,$c=0,ad=0,bd=0,cd=0,dd=0,ed=0,fd=0,gd=0,id=0,kd=0,ld=0,md=0,nd=0,od=0,pd=0,qd=0,rd=0,sd=0,td=0,ud=0,vd=0,xd=0,yd=0,zd=0,Ad=0,Bd=0,Cd=0,Dd=0,Ed=0,Fd=0,Gd=0,Hd=0,Id=0,Jd=0,Kd=0,Ld=0,Md=0,Nd=0,Od=0,Pd=0,Qd=0,Rd=0,Sd=0,Td=0,Ud=0,Vd=0,Wd=0,Xd=0,Yd=0,Zd=0,_d=0,$d=0,ae=0,be=0,ce=0,de=0,ge=0,he=0,je=0,le=0.0,me=0.0,oe=0.0,qe=0.0,re=0.0,te=0.0,ue=0.0,ve=0.0,we=0.0,xe=0.0,ze=0.0,Ae=0.0;f=i;d=i;i=i+8|0;m=d;z=i;i=i+8|0;v=z;l=i;i=i+8|0;j=l;C=i;i=i+8|0;B=C;H=i;i=i+8|0;G=H;Q=i;i=i+8|0;O=Q;S=i;i=i+8|0;U=S;W=i;i=i+8|0;V=W;Y=i;i=i+8|0;X=Y;_=i;i=i+8|0;$=_;aa=i;i=i+8|0;ba=aa;ca=i;i=i+8|0;da=ca;ga=i;i=i+8|0;fa=ga;cb=i;i=i+8|0;oa=i;i=i+8|0;pa=oa;sa=i;i=i+8|0;ta=sa;ra=i;i=i+8|0;qa=ra;Da=i;i=i+8|0;Ea=Da;Ba=i;i=i+8|0;Ca=Ba;Sa=i;i=i+8|0;Ra=Sa;Ta=i;i=i+8|0;Wa=Ta;Za=i;i=i+8|0;ab=Za;Ja=i;i=i+8|0;Ma=Ja;Va=i;i=i+8|0;Ua=Va;Xa=i;i=i+8|0;Ya=Xa;Pa=i;i=i+8|0;Oa=Pa;wa=i;i=i+16|0;va=wa;za=i;i=i+32|0;ua=za;Aa=i;i=i+40|0;ya=Aa;Ia=i;i=i+8|0;Ha=Ia;Ka=i;i=i+8|0;Na=Ka;$a=i;i=i+8|0;bb=$a;fb=i;i=i+8|0;gb=fb;mb=i;i=i+24|0;lb=mb;od=i;i=i+8|0;nd=od;qd=i;i=i+16|0;kd=qd;ud=i;i=i+32|0;rd=ud;md=i;i=i+40|0;vd=md;Nd=i;i=i+8|0;Id=Nd;Pd=i;i=i+8|0;Qd=Pd;pc=i;i=i+8|0;qc=pc;nc=i;i=i+16|0;oc=nc;lc=i;i=i+16|0;mc=lc;jc=i;i=i+16|0;kc=jc;hc=i;i=i+8|0;ic=hc;xc=i;i=i+16|0;yc=xc;vc=i;i=i+32|0;wc=vc;sc=i;i=i+40|0;uc=sc;Oc=i;i=i+8|0;Nc=Oc;Xc=i;i=i+8|0;Wc=Xc;Zc=i;i=i+16|0;Yc=Zc;Uc=i;i=i+16|0;_c=Uc;td=i;i=i+16|0;gd=td;id=i;i=i+8|0;sd=id;xd=i;i=i+16|0;pd=xd;Cd=i;i=i+32|0;yd=Cd;Ad=i;i=i+40|0;Bd=Ad;Hd=i;i=i+8|0;Gd=Hd;ac=i;i=i+24|0;$b=ac;Vb=i;i=i+16|0;Ub=Vb;Xb=i;i=i+32|0;Wb=Xb;Zb=i;i=i+40|0;Yb=Zb;Kc=i;i=i+8|0;Jc=Kc;Lc=i;i=i+8|0;Mc=Lc;Vc=i;i=i+8|0;Tc=Vc;ob=i;i=i+48|0;vb=ob;sb=i;i=i+48|0;tb=sb;wb=i;i=i+16|0;ub=wb;qb=i;i=i+16|0;rb=qb;zb=i;i=i+32|0;pb=zb;yb=i;i=i+40|0;nb=yb;Bb=i;i=i+8|0;Cb=Bb;Eb=i;i=i+48|0;Db=Eb;Hb=i;i=i+48|0;Gb=Hb;Kb=i;i=i+16|0;Lb=Kb;fc=i;i=i+16|0;Tb=fc;cc=i;i=i+32|0;gc=cc;bc=i;i=i+40|0;dc=bc;Ec=i;i=i+8|0;Gc=Ec;cd=i;i=i+16|0;bd=cd;ed=i;i=i+32|0;dd=ed;ad=i;i=i+40|0;$c=ad;Ed=i;i=i+8|0;Dd=Ed;Jd=i;i=i+8|0;Ld=Jd;Qb=i;i=i+16|0;Sb=Qb;Ob=i;i=i+32|0;Pb=Ob;Mb=i;i=i+40|0;Nb=Mb;Ac=i;i=i+8|0;Bc=Ac;Dc=i;i=i+8|0;Cc=Dc;Rc=i;i=i+8|0;Sc=Rc;Rd=i;i=i+8|0;Od=Rd;Xd=i;i=i+16|0;Vd=Xd;_d=i;i=i+16|0;Yd=_d;Zd=i;i=i+32|0;Sd=Zd;Td=i;i=i+40|0;Wd=Td;$d=i;i=i+8|0;ae=$d;be=i;i=i+8|0;ce=be;ge=i;i=i+8|0;ib=ge;A=i;i=i+8|0;he=A;de=i;i=i+16|0;e=de;db=i;i=i+16|0;n=db;R=i;i=i+16|0;M=R;T=i;i=i+16|0;P=T;K=i;i=i+16|0;E=K;I=i;i=i+16|0;F=I;ja=i;i=i+16|0;ha=ja;jb=i;i=i+40|0;Ud=jb;zc=i;i=i+40|0;Rb=zc;Fd=i;i=i+40|0;fd=Fdfd,c[J>>2]|0,0);qe=+h[Fd>>3];oe=+h[fd+8>>3];me=+h[fd+16>>3];lb=c[fd+32>>2]|0;if((lb|0)==4){ze=+h[fd0);Of(F);do{if((c[(Yu(ma,65336,F,0)|0)>>2]|0)==1){ha=c[I>>2]|0;if((ha|0)==1){na=c[D>>2]|0;break}else{c[oa>>2]=ha;c[pa+4>>2]=1;Qe(0,72520,pa);tc()}}else{na=0}}while(0);Of(F);os(b,ua,xa,va,na,fb,g,la);if(wa){ia=0;do{ha=c[ua+(ia<<2)>>2]|0;if((ha|0)!=0){ke(ha);HW(ha)}ia=ia+1|0;}while((ia|0)<(va|0))}Fe(ua);Fe(xa)}Of(E)}else{ka=223}}while(0);if((ka|0)==223){Qe(-1,65352,cb)}if((fb|0)!=0){ke(fb);HW(fb)}ha=b+112|0;Jf(M,c[ha>>2]|0)|0;ia=Ge(55936)|0;ja=c[(c[Z>>2]|0)+24>>2]|0;c[ea>>2]=0;c[K>>2]=1;c[J>>2]=ja;ja=c[R>>2]|0;if((ja|0)!=7){c[ga>>2]=ja;c[fa+4>>2]=7;Qe(0,72520,fa);tc()}Tu(c[N>>2]|0,ia,E);fa=Ge(55944)|0;c[J>>2]=0;c[ea>>2]=0;c[K>>2]=4;c[J>>2]=Ge(55952)|0;ea=c[R>>2]|0;if((ea|0)!=7){c[ca>>2]=ea;c[da+4>>2]=7;Qe(0,72520,da);tc()}Tu(c[N>>2]|0,fa,E);If(E,c[ha>>2]|0)|0;c[I>>2]=2;ca=F+8|0;h[ca>>3]=0.0;da=c[K>>2]|0;if((da|0)!=6){c[aa>>2]=da;c[ba+4>>2]=6;Qe(0,72520,ba);tc()}tt(c[J>>2]|0,F);c[I>>2]=2;h[ca>>3]=0.0;aa=c[K>>2]|0;if((aa|0)!=6){c[_>>2]=aa;c[$+4>>2]=6;Qe(0,72520,$);tc()}tt(c[J>>2]|0,F);_=b+28|0;$=c[_>>2]|0;Ae=+h[$+16>>3]- +h[$>>3];c[I>>2]=2;h[ca>>3]=Ae;$=c[K>>2]|0;if(($|0)!=6){c[Y>>2]=$;c[X+4>>2]=6;Qe(0,72520,X);tc()}tt(c[J>>2]|0,F);X=c[_>>2]|0;Ae=+h[X+24>>3]- +h[X+8>>3];c[I>>2]=2;h[ca>>3]=Ae;X=c[K>>2]|0;if((X|0)!=6){c[W>>2]=X;c[V+4>>2]=6;Qe(0,72520,V);tc()}tt(c[J>>2]|0,F);V=Ge(55960)|0;W=c[R>>2]|0;if((W|0)!=7){c[S>>2]=W;c[U+4>>2]=7;Qe(0,72520,U);tc()}Tu(c[N>>2]|0,V,E);do{if((c[T>>2]|0)==7){S=Ge(55992)|0;T=Mf(P,E)|0;R=c[R>>2]|0;if((R|0)==7){Tu(c[N>>2]|0,S,T);break}else{c[Q>>2]=R;c[O+4>>2]=7;Qe(0,72520,O);tc()}}}while(0);Of(P);N=FW(56)|0;O=Ic(c[(c[Z>>2]|0)+28>>2]|0)|0;Tj(N,O,0,c[(c[Z>>2]|0)+24>>2]|0,M);M=b+64|0;Of(M);Lf(M,N)|0;O=c[Z>>2]|0;if((O|0)!=0){ke(O);HW(O)}hd[c[(c[N>>2]|0)+116>>2]&127](N,1);do{if((a[(c[L>>2]|0)+45|0]&1)!=0){do{if((c[(Yu(A,55616,E,0)|0)>>2]|0)==7){K=c[K>>2]|0;if((K|0)!=7){c[H>>2]=K;c[G+4>>2]=7;Qe(0,72520,G);tc()}if((c[(Zu(c[J>>2]|0,55416,F)|0)>>2]|0)!=9){break}G=c[I>>2]|0;if((G|0)==9){ge=D;he=c[ge+4>>2]|0;je=b+52|0;c[je>>2]=c[ge>>2];c[je+4>>2]=he;break}else{c[C>>2]=G;c[B+4>>2]=9;Qe(0,72520,B);tc()}}}while(0);Of(F);Of(E);B=b+52|0;C=c[ha>>2]|0;if((c[B>>2]|0)==0){qn(y,C,M);ge=w;he=c[ge+4>>2]|0;je=B;c[je>>2]=c[ge>>2];c[je+4>>2]=he}else{ge=B;he=c[ge+4>>2]|0;je=x;c[je>>2]=c[ge>>2];c[je+4>>2]=he;$W(z|0,x|0,8)|0;pn(C,M,v)}c[u>>2]=13;v=p+8|0;c[v>>2]=0;c[v+4>>2]=0;Jf(p,c[ha>>2]|0)|0;je=q+8|0;ge=c[B>>2]|0;he=c[b+56>>2]|0;c[t>>2]=9;c[je>>2]=ge;c[je+4>>2]=he;t=c[u>>2]|0;if((t|0)==7){Wu(c[v>>2]|0,55416,q);Wu(A,55616,p);je=FW(24)|0;Ru(je,A);de=je+20|0;c[de>>2]=(c[de>>2]|0)+ -1;c[s>>2]=13;de=o+8|0;c[de>>2]=0;c[de+4>>2]=0;Kf(o,je)|0;je=c[ha>>2]|0;de=b+116|0;ge=c[de+4>>2]|0;he=r;c[he>>2]=c[de>>2];c[he+4>>2]=ge;$W(d|0,r|0,8)|0;pn(je,o,m);Of(o);break}else{c[l>>2]=t;c[j+4>>2]=7;Qe(0,72520,j);tc()}}}while(0);if((g|0)!=0){vy(g);HW(g)}Of(n);Of(e);i=f;return}function qs(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=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;g=i;r=i;i=i+16|0;f=r;m=i;i=i+16|0;q=m;k=i;i=i+16|0;l=k;n=i;i=i+16|0;o=n;p=i;i=i+16|0;j=p;c[r>>2]=13;r=f+8|0;c[r>>2]=0;c[r+4>>2]=0;r=c[b+48>>2]|0;if((r&2|0)!=0){i=g;return}do{if(e){if((r&4|0)!=0){break}i=g;return}else{if((r&32|0)==0){break}i=g;return}}while(0);r=c[b+88>>2]|0;do{if((r|0)!=0){e=b+96|0;if((c[e>>2]|0)!=9){break}if(GF(r,e)|0){break}i=g;return}}while(0);r=b+177|0;a[r]=0;ps(b);e=b+112|0;Nf(b+64|0,c[e>>2]|0,f,0)|0;do{if((a[r]&1)!=0){u=q+8|0;c[k>>2]=13;s=l+8|0;c[s>>2]=0;t=s+4|0;c[t>>2]=0;c[u>>2]=0;c[u+4>>2]=0;c[m>>2]=4;c[u>>2]=Ge(64672)|0;c[s>>2]=0;c[t>>2]=0;c[k>>2]=4;c[s>>2]=Ge(65376)|0;c[n>>2]=13;k=o+8|0;c[k>>2]=0;c[k+4>>2]=0;k=FW(24)|0;Qu(k,c[e>>2]|0);n=k+20|0;c[n>>2]=(c[n>>2]|0)+ -1;Tu(k,Ge(65384)|0,q);Tu(k,Ge(55944)|0,l);Kf(o,k)|0;c[p>>2]=13;k=j+8|0;c[k>>2]=0;c[k+4>>2]=0;k=FW(24)|0;Qu(k,c[e>>2]|0);q=k+20|0;c[q>>2]=(c[q>>2]|0)+ -1;Tu(k,Ge(64664)|0,o);Kf(j,k)|0;k=FW(24)|0;Qu(k,c[e>>2]|0);Tu(k,Ge(65280)|0,j);Px(d,k);if((k|0)==0){break}Su(k);HW(k)}}while(0);u=c[b+28>>2]|0;Tx(d,f,0,c[b+132>>2]|0,+h[u>>3],+h[u+8>>3],+h[u+16>>3],+h[u+24>>3]);if((a[r]&1)!=0){ux(d)}Of(f);i=g;return}function rs(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0;e=i;m=i;i=i+8|0;n=i;i=i+8|0;h=n;p=i;i=i+16|0;j=p;k=i;i=i+16|0;d=k;o=i;i=i+16|0;g=o;c[p>>2]=13;l=j+8|0;c[l>>2]=0;c[l+4>>2]=0;do{if((c[(Yu(f,56120,j,0)|0)>>2]|0)==3){p=c[p>>2]|0;if((p|0)==3){n=c[l>>2]|0;p=FW(32)|0;ie(p,n);c[b+148>>2]=p;break}else{c[n>>2]=p;c[h+4>>2]=3;Qe(0,72520,h);tc()}}else{c[b+148>>2]=0}}while(0);Of(j);c[k>>2]=13;p=d+8|0;c[p>>2]=0;c[p+4>>2]=0;if((c[(Yu(f,65424,d,0)|0)>>2]|0)!=7){Qe(-1,65432,m);c[b+152>>2]=0;a[b+144|0]=0;Of(d);i=e;return}c[o>>2]=13;p=g+8|0;c[p>>2]=0;c[p+4>>2]=0;Yu(f,55424,g,0)|0;p=(c[o>>2]|0)==7;f=FW(104)|0;if(p){DF(f,d,g);c[b+152>>2]=f}else{CF(f,d);c[b+152>>2]=f}h=b+152|0;if((a[f]&1)==0){if((f|0)!=0){BF(f);HW(f)}c[h>>2]=0;a[b+144|0]=0}Of(g);Of(d);i=e;return}function ss(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;l=i;k=i;i=i+8|0;j=k;c[b>>2]=55512;h=b+8|0;c[h>>2]=13;c[b+16>>2]=0;c[b+20>>2]=0;c[b+64>>2]=13;c[b+72>>2]=0;c[b+76>>2]=0;c[b+96>>2]=13;c[b+104>>2]=0;c[b+108>>2]=0;m=b+145|0;do{if((c[g>>2]|0)==9){a[m]=1;m=c[g>>2]|0;if((m|0)==9){k=g+8|0;g=c[k+4>>2]|0;m=b+116|0;c[m>>2]=c[k>>2];c[m+4>>2]=g;break}else{c[k>>2]=m;c[j+4>>2]=9;Qe(0,72520,j);tc()}}else{a[m]=0}}while(0);c[b+48>>2]=0;m=b+24|0;c[m>>2]=0;Kf(h,e)|0;zr(b,d,e,f);c[b>>2]=65408;c[m>>2]=19;rs(b,0,0,e);i=l;return}function ts(a){a=a|0;var b=0,d=0;b=i;c[a>>2]=65408;d=c[a+148>>2]|0;if((d|0)!=0){ke(d);HW(d)}d=c[a+152>>2]|0;if((d|0)==0){Cr(a);HW(a);i=b;return}BF(d);HW(d);Cr(a);HW(a);i=b;return}function us(a){a=a|0;var b=0,d=0;b=i;c[a>>2]=65408;d=c[a+148>>2]|0;if((d|0)!=0){ke(d);HW(d)}d=c[a+152>>2]|0;if((d|0)==0){Cr(a);i=b;return}BF(d);HW(d);Cr(a);i=b;return}function vs(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=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,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ba=0,ca=0,da=0,ea=0,fa=0,ga=0,ha=0,ia=0,ja=0,ka=0,la=0,ma=0,na=0,oa=0,pa=0,qa=0,ra=0,sa=0,ta=0,ua=0,va=0,wa=0,xa=0;g=i;s=i;i=i+8|0;t=s;q=i;i=i+8|0;r=q;o=i;i=i+8|0;p=o;m=i;i=i+8|0;n=m;y=i;i=i+8|0;w=y;C=i;i=i+8|0;B=C;H=i;i=i+8|0;I=H;L=i;i=i+8|0;M=L;R=i;i=i+8|0;O=R;T=i;i=i+8|0;U=T;V=i;i=i+8|0;W=V;Z=i;i=i+8|0;Y=Z;$=i;i=i+8|0;_=$;ba=i;i=i+8|0;aa=ba;ca=i;i=i+8|0;da=ca;ga=i;i=i+8|0;fa=ga;ia=i;i=i+8|0;ha=ia;ja=i;i=i+8|0;ka=ja;la=i;i=i+8|0;ma=la;oa=i;i=i+8|0;na=oa;qa=i;i=i+8|0;pa=qa;ta=i;i=i+8|0;sa=ta;ea=i;i=i+8|0;ua=ea;X=i;i=i+8|0;wa=X;J=i;i=i+16|0;f=J;P=i;i=i+16|0;j=P;va=i;i=i+16|0;ra=va;x=i;i=i+16|0;v=x;G=i;i=i+16|0;D=G;Q=i;i=i+16|0;F=Q;S=i;i=i+16|0;K=S;E=i;i=i+16|0;z=E;A=i;i=i+16|0;l=A;u=i;i=i+32|0;k=u;c[J>>2]=13;J=f+8|0;c[J>>2]=0;c[J+4>>2]=0;J=c[b+48>>2]|0;if((J&2|0)!=0){i=g;return}do{if(e){if((J&4|0)!=0){break}i=g;return}else{if((J&32|0)==0){break}i=g;return}}while(0);e=c[b+88>>2]|0;do{if((e|0)!=0){J=b+96|0;if((c[J>>2]|0)!=9){break}if(GF(e,J)|0){break}i=g;return}}while(0);e=b+64|0;do{if((c[e>>2]|0)==5){J=b+152|0;N=c[J>>2]|0;if((a[N+32|0]&1)==0){break}c[P>>2]=13;xa=j+8|0;c[xa>>2]=0;c[xa+4>>2]=0;Mf(N+16|0,j)|0;J=c[J>>2]|0;N=c[J+4>>2]|0;J=c[J+8>>2]|0;do{if(!((N|0)==-1|(J|0)==-1)){if((c[P>>2]|0)==13){break}xa=FW(32)|0;ee(xa);P=b+124|0;c[P>>2]=xa;ne(xa,56352,-1)|0;xa=c[P>>2]|0;c[X>>2]=N;c[wa+4>>2]=J;pe(xa,65448,wa)|0;ne(c[P>>2]|0,65472,-1)|0;ne(c[P>>2]|0,63808,-1)|0;c[va>>2]=13;wa=ra+8|0;c[wa>>2]=0;c[wa+4>>2]=0;X=b+112|0;Jf(ra,c[X>>2]|0)|0;va=c[va>>2]|0;if((va|0)!=7){c[ea>>2]=va;c[ua+4>>2]=7;Qe(0,72520,ua);tc()}Wu(c[wa>>2]|0,65488,j);c[x>>2]=13;ea=v+8|0;c[ea>>2]=0;c[ea+4>>2]=0;Jf(v,c[X>>2]|0)|0;ua=c[x>>2]|0;if((ua|0)!=7){c[ta>>2]=ua;c[sa+4>>2]=7;Qe(0,72520,sa);tc()}Wu(c[ea>>2]|0,56040,ra);c[G>>2]=13;ra=D+8|0;c[ra>>2]=0;c[ra+4>>2]=0;c[Q>>2]=13;sa=F+8|0;c[sa>>2]=0;va=sa+4|0;c[va>>2]=0;c[S>>2]=13;ua=K+8|0;c[ua>>2]=0;ta=ua+4|0;c[ta>>2]=0;Jf(D,c[X>>2]|0)|0;wa=c[(c[P>>2]|0)+24>>2]|0;c[va>>2]=0;c[Q>>2]=1;c[sa>>2]=wa;wa=c[G>>2]|0;if((wa|0)!=7){c[qa>>2]=wa;c[pa+4>>2]=7;Qe(0,72520,pa);tc()}Wu(c[ra>>2]|0,55936,F);c[sa>>2]=0;c[va>>2]=0;c[Q>>2]=4;c[sa>>2]=Ge(55952)|0;pa=c[G>>2]|0;if((pa|0)!=7){c[oa>>2]=pa;c[na+4>>2]=7;Qe(0,72520,na);tc()}Wu(c[ra>>2]|0,55944,F);c[sa>>2]=0;c[va>>2]=0;c[Q>>2]=4;c[sa>>2]=Ge(65496)|0;na=c[G>>2]|0;if((na|0)!=7){c[la>>2]=na;c[ma+4>>2]=7;Qe(0,72520,ma);tc()}Wu(c[ra>>2]|0,56208,F);If(F,c[X>>2]|0)|0;c[ta>>2]=0;c[S>>2]=1;c[ua>>2]=0;la=c[Q>>2]|0;if((la|0)!=6){c[ja>>2]=la;c[ka+4>>2]=6;Qe(0,72520,ka);tc()}tt(c[sa>>2]|0,K);c[ta>>2]=0;c[S>>2]=1;c[ua>>2]=0;ja=c[Q>>2]|0;if((ja|0)!=6){c[ia>>2]=ja;c[ha+4>>2]=6;Qe(0,72520,ha);tc()}tt(c[sa>>2]|0,K);c[ta>>2]=0;c[S>>2]=1;c[ua>>2]=N;ha=c[Q>>2]|0;if((ha|0)!=6){c[ga>>2]=ha;c[fa+4>>2]=6;Qe(0,72520,fa);tc()}tt(c[sa>>2]|0,K);c[ta>>2]=0;c[S>>2]=1;c[ua>>2]=J;fa=c[Q>>2]|0;if((fa|0)!=6){c[ca>>2]=fa;c[da+4>>2]=6;Qe(0,72520,da);tc()}tt(c[sa>>2]|0,K);ca=c[G>>2]|0;if((ca|0)!=7){c[ba>>2]=ca;c[aa+4>>2]=7;Qe(0,72520,aa);tc()}Wu(c[ra>>2]|0,55960,F);If(F,c[X>>2]|0)|0;c[ta>>2]=0;c[S>>2]=1;c[ua>>2]=1;aa=c[Q>>2]|0;if((aa|0)!=6){c[$>>2]=aa;c[_+4>>2]=6;Qe(0,72520,_);tc()}tt(c[sa>>2]|0,K);c[ta>>2]=0;c[S>>2]=1;c[ua>>2]=0;_=c[Q>>2]|0;if((_|0)!=6){c[Z>>2]=_;c[Y+4>>2]=6;Qe(0,72520,Y);tc()}tt(c[sa>>2]|0,K);c[ta>>2]=0;c[S>>2]=1;c[ua>>2]=0;Y=c[Q>>2]|0;if((Y|0)!=6){c[V>>2]=Y;c[W+4>>2]=6;Qe(0,72520,W);tc()}tt(c[sa>>2]|0,K);c[ta>>2]=0;c[S>>2]=1;c[ua>>2]=1;V=c[Q>>2]|0;if((V|0)!=6){c[T>>2]=V;c[U+4>>2]=6;Qe(0,72520,U);tc()}tt(c[sa>>2]|0,K);c[ta>>2]=0;c[S>>2]=1;c[ua>>2]=(N|0)/-2|0;T=c[Q>>2]|0;if((T|0)!=6){c[R>>2]=T;c[O+4>>2]=6;Qe(0,72520,O);tc()}tt(c[sa>>2]|0,K);c[ta>>2]=0;c[S>>2]=1;c[ua>>2]=(J|0)/-2|0;O=c[Q>>2]|0;if((O|0)!=6){c[L>>2]=O;c[M+4>>2]=6;Qe(0,72520,M);tc()}tt(c[sa>>2]|0,K);K=c[G>>2]|0;if((K|0)!=7){c[H>>2]=K;c[I+4>>2]=7;Qe(0,72520,I);tc()}Wu(c[ra>>2]|0,65504,F);F=c[G>>2]|0;if((F|0)!=7){c[C>>2]=F;c[B+4>>2]=7;Qe(0,72520,B);tc()}Wu(c[ra>>2]|0,55992,v);c[E>>2]=13;B=z+8|0;c[B>>2]=0;c[B+4>>2]=0;B=FW(56)|0;xa=Ge(c[(c[P>>2]|0)+28>>2]|0)|0;Tj(B,xa,0,c[(c[P>>2]|0)+24>>2]|0,D);hd[c[(c[B>>2]|0)+116>>2]&127](B,1);Lf(z,B)|0;B=c[P>>2]|0;if((B|0)!=0){ke(B);HW(B)}c[A>>2]=13;B=l+8|0;c[B>>2]=0;c[B+4>>2]=0;Jf(l,c[X>>2]|0)|0;A=c[A>>2]|0;if((A|0)!=7){c[y>>2]=A;c[w+4>>2]=7;Qe(0,72520,w);tc()}Wu(c[B>>2]|0,65496,z);Jf(v,c[X>>2]|0)|0;w=c[x>>2]|0;if((w|0)!=7){c[m>>2]=w;c[n+4>>2]=7;Qe(0,72520,n);tc()}Wu(c[ea>>2]|0,56040,l);xa=FW(32)|0;ee(xa);c[P>>2]=xa;ne(xa,56352,-1)|0;xa=c[P>>2]|0;c[o>>2]=N;c[p+4>>2]=J;pe(xa,65512,p)|0;ne(c[P>>2]|0,56352,-1)|0;xa=c[P>>2]|0;c[q>>2]=N;c[r+4>>2]=J;pe(xa,65512,r)|0;xa=c[P>>2]|0;c[s>>2]=(N|0)/2|0;c[t+4>>2]=(J|0)/2|0;pe(xa,65536,t)|0;ne(c[P>>2]|0,65560,-1)|0;ne(c[P>>2]|0,63808,-1)|0;ne(c[P>>2]|0,63808,-1)|0;bX(u|0,0,16)|0;h[k+16>>3]=+(N|0);h[k+24>>3]=+(J|0);Er(b,k,0,v,e);k=c[P>>2]|0;if((k|0)==0){break}ke(k);HW(k)}}while(0);Of(j)}}while(0);Nf(e,c[b+112>>2]|0,f,0)|0;xa=c[b+28>>2]|0;Tx(d,f,0,c[b+132>>2]|0,+h[xa>>3],+h[xa+8>>3],+h[xa+16>>3],+h[xa+24>>3]);Of(f);i=g;return}function ws(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;d=i;g=i;i=i+8|0;h=g;m=i;i=i+8|0;p=i;i=i+8|0;n=p;l=i;i=i+16|0;k=l;c[l>>2]=13;j=k+8|0;c[j>>2]=0;c[j+4>>2]=0;o=b+148|0;c[o>>2]=0;do{if((c[(Yu(f,56120,k,0)|0)>>2]|0)==3){q=c[l>>2]|0;if((q|0)==3){p=c[j>>2]|0;q=FW(32)|0;ie(q,p);c[o>>2]=q;break}else{c[p>>2]=q;c[n+4>>2]=3;Qe(0,72520,n);tc()}}}while(0);Of(k);n=b+156|0;c[n>>2]=0;do{if((c[(Yu(f,55424,k,0)|0)>>2]|0)==7){q=uE(k,c[e+92>>2]|0)|0;c[n>>2]=q;if((jd[c[(c[q>>2]|0)+12>>2]&511](q)|0)!=6){break}if((c[b+36>>2]|0)!=0){break}Qe(-1,65608,m);e=c[n>>2]|0;if((e|0)!=0){fd[c[(c[e>>2]|0)+4>>2]&511](e)}c[n>>2]=0;a[b+144|0]=0}}while(0);Yu(f,64520,b+160|0,0)|0;b=b+152|0;c[b>>2]=0;if((c[(Yu(f,64512,k,0)|0)>>2]|0)!=7){Of(k);i=d;return}f=FW(32)|0;l=c[l>>2]|0;if((l|0)!=7){c[g>>2]=l;c[h+4>>2]=7;Qe(0,72520,h);tc()}xr(f,c[j>>2]|0);c[b>>2]=f;Of(k);i=d;return}function xs(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;l=i;k=i;i=i+8|0;j=k;c[b>>2]=55512;h=b+8|0;c[h>>2]=13;c[b+16>>2]=0;c[b+20>>2]=0;c[b+64>>2]=13;c[b+72>>2]=0;c[b+76>>2]=0;c[b+96>>2]=13;c[b+104>>2]=0;c[b+108>>2]=0;m=b+145|0;do{if((c[g>>2]|0)==9){a[m]=1;m=c[g>>2]|0;if((m|0)==9){k=g+8|0;g=c[k+4>>2]|0;m=b+116|0;c[m>>2]=c[k>>2];c[m+4>>2]=g;break}else{c[k>>2]=m;c[j+4>>2]=9;Qe(0,72520,j);tc()}}else{a[m]=0}}while(0);c[b+48>>2]=0;m=b+24|0;c[m>>2]=0;Kf(h,e)|0;zr(b,d,e,f);c[b>>2]=65584;c[b+160>>2]=13;g=b+168|0;c[g>>2]=0;c[g+4>>2]=0;c[m>>2]=21;ws(b,0,f,e);i=l;return}function ys(a){a=a|0;var b=0;b=i;zs(a);HW(a);i=b;return}function zs(a){a=a|0;var b=0,d=0;b=i;c[a>>2]=65584;d=c[a+148>>2]|0;if((d|0)!=0){ke(d);HW(d)}d=c[a+152>>2]|0;if((d|0)!=0){yr(d);HW(d)}d=c[a+156>>2]|0;if((d|0)==0){d=a+160|0;Of(d);Cr(a);i=b;return}fdfd[c[(c[A>>2]|0)+4>>2]&511](A);break}B=c[o>>2]|0;if((B|0)<(y|0)){z=c[b>>2]|0}else{y=y+16|0;z=Ce(c[b>>2]|0,y,4)|0;c[b>>2]=z;B=c[o>>2]|0}c[o>>2]=B+1;c[z+(B<<2)>>2]=A}}while(0);Of(s);Of(t);z=c[f>>2]|0;if((z|0)==6){x=x+1|0}else{e=3;break}}if((e|0)==3){c[l>>2]=z;c[m+4>>2]=6;Qe(0,72520,m);tc()}else if((e|0)==7){c[g>>2]=z;c[h+4>>2]=6;Qe(0,72520,h);tc()}else if((e|0)==9){c[j>>2]=z;c[k+4>>2]=7;Qe(0,72520,k);tc()}else if((e|0)==18){i=n;return}}function ct(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;h=i;l=i;i=i+8|0;o=l;p=i;i=i+16|0;j=p;n=i;i=i+16|0;k=n;c[p>>2]=13;m=j+8|0;c[m>>2]=0;c[m+4>>2]=0;if((c[(Yu(e,55944,j,0)|0)>>2]|0)!=4){p=0;Of(j);i=h;return p|0}b=FW(32)|0;p=c[p>>2]|0;if((p|0)!=4){c[l>>2]=p;c[o+4>>2]=4;Qe(0,72520,o);tc()}fe(b,c[m>>2]|0);do{if((te(b,56200)|0)==0){k=FW(208)|0;Mr(k,d,e,f,g);c[k>>2]=56184;c[k+24>>2]=1;p=k+48|0;c[p>>2]=c[p>>2]|24;Pr(k,0,0,e)}else{if((te(b,63872)|0)==0){k=FW(184)|0;Ur(k,d,e,f,g);break}if((te(b,63944)|0)==0){k=FW(224)|0;Mr(k,d,e,f,g);c[k>>2]=63928;c[k+24>>2]=3;Yr(k,0,0,e);break}if((te(b,64120)|0)==0){k=FW(272)|0;Mr(k,d,e,f,g);c[k>>2]=64104;c[k+24>>2]=4;$r(k,0,0,e);break}if((te(b,55048)|0)==0){k=FW(208)|0;Mr(k,d,e,f,g);c[k>>2]=65728;c[k+24>>2]=5;Ds(k,0,0,e);break}if((te(b,55056)|0)==0){k=FW(208)|0;Mr(k,d,e,f,g);c[k>>2]=65728;c[k+24>>2]=5;Ds(k,0,0,e);break}if((te(b,65816)|0)==0){k=FW(216)|0;Mr(k,d,e,f,g);c[k>>2]=65800;c[k+24>>2]=7;Hs(k,0,0,e);break}if((te(b,65824)|0)==0){k=FW(216)|0;Mr(k,d,e,f,g);c[k>>2]=65800;c[k+24>>2]=7;Hs(k,0,0,e);break}if((te(b,64352)|0)==0){k=FW(200)|0;Mr(k,d,e,f,g);c[k>>2]=64336;c[k+24>>2]=9;ds(k,0,0,e);break}if((te(b,64368)|0)==0){k=FW(200)|0;Mr(k,d,e,f,g);c[k>>2]=64336;c[k+24>>2]=9;ds(k,0,0,e);break}if((te(b,64384)|0)==0){k=FW(200)|0;Mr(k,d,e,f,g);c[k>>2]=64336;c[k+24>>2]=9;ds(k,0,0,e);break}if((te(b,64400)|0)==0){k=FW(200)|0;Mr(k,d,e,f,g);c[k>>2]=64336;c[k+24>>2]=9;ds(k,0,0,e);break}if((te(b,65704)|0)==0){k=FW(200)|0;Mr(k,d,e,f,g);c[k>>2]=65688;c[k+24>>2]=13;As(k,0,0,e);break}if((te(b,65952)|0)==0){k=FW(200)|0;Mr(k,d,e,f,g);c[k>>2]=65936;c[k+24>>2]=14;Ks(k,0,0,e);break}if((te(b,65992)|0)==0){k=FW(200)|0;Mr(k,d,e,f,g);c[k>>2]=65976;c[k+24>>2]=15;Ns(k,0,0,e);break}if((te(b,66056)|0)==0){k=FW(216)|0;Mr(k,d,e,f,g);c[k>>2]=66040;c[k+192>>2]=13;c[k+200>>2]=0;c[k+204>>2]=0;c[k+24>>2]=17;Qs(k,0,0,e);break}if((te(b,69904)|0)==0){k=FW(200)|0;Mr(k,d,e,f,g);c[k>>2]=69888;c[k+24>>2]=18;Us(k,0,0,e);break}if((te(b,65424)|0)==0){k=FW(160)|0;ss(k,d,e,f,g);break}if((te(b,71696)|0)==0){k=FW(184)|0;hs(k,d,e,f,g);break}if((te(b,65600)|0)==0){k=FW(176)|0;xs(k,d,e,f,g);break}if((te(b,71704)|0)==0){k=FW(152)|0;c[k>>2]=55512;l=k+8|0;c[l>>2]=13;c[k+16>>2]=0;c[k+20>>2]=0;c[k+64>>2]=13;c[k+72>>2]=0;c[k+76>>2]=0;c[k+96>>2]=13;c[k+104>>2]=0;c[k+108>>2]=0;m=k+145|0;if((c[g>>2]|0)==9){a[m]=1;n=g+8|0;o=c[n+4>>2]|0;p=k+116|0;c[p>>2]=c[n>>2];c[p+4>>2]=o}else{a[m]=0}c[k+48>>2]=0;c[k+24>>2]=0;Kf(l,e)|0;zr(k,d,e,f);break}if((te(b,71720)|0)==0){l=FW(152)|0;c[l>>2]=55512;m=l+8|0;c[m>>2]=13;c[l+16>>2]=0;c[l+20>>2]=0;c[l+64>>2]=13;c[l+72>>2]=0;c[l+76>>2]=0;c[l+96>>2]=13;c[l+104>>2]=0;c[l+108>>2]=0;k=l+145|0;if((c[g>>2]|0)==9){a[k]=1;n=g+8|0;o=c[n+4>>2]|0;p=l+116|0;c[p>>2]=c[n>>2];c[p+4>>2]=o}else{a[k]=0}c[l+48>>2]=0;c[l+24>>2]=0;Kf(m,e)|0;zr(l,d,e,f);k=l;break}if((te(b,71728)|0)==0){k=FW(152)|0;c[k>>2]=55512;l=k+8|0;c[l>>2]=13;c[k+16>>2]=0;c[k+20>>2]=0;c[k+64>>2]=13;c[k+72>>2]=0;c[k+76>>2]=0;c[k+96>>2]=13;c[k+104>>2]=0;c[k+108>>2]=0;m=k+145|0;if((c[g>>2]|0)==9){a[m]=1;n=g+8|0;o=c[n+4>>2]|0;p=k+116|0;c[p>>2]=c[n>>2];c[p+4>>2]=o}else{a[m]=0}c[k+48>>2]=0;c[k+24>>2]=0;Kf(l,e)|0;zr(k,d,e,f);break}if((te(b,71600)|0)==0){k=FW(152)|0;Zs(k,d,e,f,g);break}if((te(b,56072)|0)==0){c[n>>2]=13;p=k+8|0;c[p>>2]=0;c[p+4>>2]=0;if((c[(Yu(e,56080,k,0)|0)>>2]|0)==5){p=FW(176)|0;Ir(p,d,e,f,g);g=p}else{g=0}Of(k);k=g;break}m=FW(152)|0;c[m>>2]=55512;l=m+8|0;c[l>>2]=13;c[m+16>>2]=0;c[m+20>>2]=0;c[m+64>>2]=13;c[m+72>>2]=0;c[m+76>>2]=0;c[m+96>>2]=13;c[m+104>>2]=0;c[m+108>>2]=0;k=m+145|0;if((c[g>>2]|0)==9){a[k]=1;n=g+8|0;o=c[n+4>>2]|0;p=m+116|0;c[p>>2]=c[n>>2];c[p+4>>2]=o}else{a[k]=0}c[m+48>>2]=0;c[m+24>>2]=0;Kf(l,e)|0;zr(m,d,e,f);k=m}}while(0);if((b|0)==0){p=k;Of(j);i=h;return p|0}ke(b);HW(b);p=k;Of(j);i=h;return p|0}function dt(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0;b=i;d=a+4|0;e=c[d>>2]|0;g=c[a>>2]|0;if((e|0)>0){f=0}else{h=g;Fe(h);i=b;return}do{h=c[g+(f<<2)>>2]|0;if((h|0)!=0){fd[c[(c[h>>2]|0)+4>>2]&511](h);g=c[a>>2]|0;e=c[d>>2]|0}f=f+1|0;}while((f|0)<(e|0));Fe(g);i=b;return}function et(a){a=a|0;i=i;return c[a+4>>2]|0}function ft(a){a=a|0;i=i;return+(+h[a+8>>3])}function gt(a){a=a|0;i=i;return c[a+16>>2]|0}function ht(a){a=a|0;i=i;return c[a+20>>2]|0}function it(a){a=a|0;i=i;return c[a+24>>2]|0}function jt(a){a=a|0;i=i;return}function kt(a){a=a|0;var b=0;b=i;HW(a);i=b;return}function lt(a){a=a|0;i=i;return}function mt(a){a=a|0;var b=0;b=i;HW(a);i=b;return}function nt(a){a=a|0;var b=0;b=i;c[a>>2]=55264;a=c[a+20>>2]|0;if((a|0)==0){i=b;return}Fe(a);i=b;return}function ot(a){a=a|0;var b=0,d=0;b=i;c[a>>2]=55264;d=c[a+20>>2]|0;if((d|0)==0){HW(a);i=b;return}Fe(d);HW(a);i=b;return}function pt(a){a=a|0;var b=0;b=i;c[a>>2]=55264;a=c[a+20>>2]|0;if((a|0)==0){i=b;return}Fe(a);i=b;return}function qt(a){a=a|0;var b=0,d=0;b=i;c[a>>2]=55264;d=c[a+20>>2]|0;if((d|0)==0){HW(a);i=b;return}Fe(d);HW(a);i=b;return}function rt(a,b){a=a|0;b=b|0;c[a>>2]=b;c[a+4>>2]=0;c[a+12>>2]=0;c[a+8>>2]=0;c[a+16>>2]=1;i=i;return}function st(a){a=a|0;var b=0,d=0,e=0,f=0;b=i;d=a+12|0;a=a+4|0;f=c[a>>2]|0;if((c[d>>2]|0)>0){e=0}else{Fe(f);i=b;return}while(1){Of(f+(e<<4)|0);e=e+1|0;f=c[a>>2]|0;if((e|0)<(c[d>>2]|0)){}else{break}}Fe(f);i=b;return}function tt(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;e=i;d=a+12|0;h=c[d>>2]|0;f=a+8|0;do{if((h|0)==(c[f>>2]|0)){g=(h|0)==0?8:h<<1;c[f>>2]=g;a=a+4|0;g=Ce(c[a>>2]|0,g,16)|0;c[a>>2]=g;h=c[d>>2]|0;if((h|0)>=(c[f>>2]|0)){break}while(1){g=g+(h<<4)+8|0;c[g>>2]=0;c[g+4>>2]=0;h=h+1|0;if((h|0)>=(c[f>>2]|0)){break}g=c[a>>2]|0}h=c[d>>2]|0}else{a=a+4|0}}while(0);$W((c[a>>2]|0)+(h<<4)|0,b|0,16)|0;c[d>>2]=(c[d>>2]|0)+1;i=e;return}function ut(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;e=i;do{if((b|0)>=0){if((c[a+12>>2]|0)<=(b|0)){break}b=Nf((c[a+4>>2]|0)+(b<<4)|0,c[a>>2]|0,d,0)|0;i=e;return b|0}}while(0);b=d+8|0;c[b>>2]=0;c[b+4>>2]=0;c[d>>2]=5;b=d;i=e;return b|0}function vt(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;e=i;do{if((b|0)>=0){if((c[a+12>>2]|0)<=(b|0)){break}b=Mf((c[a+4>>2]|0)+(b<<4)|0,d)|0;i=e;return b|0}}while(0);b=d+8|0;c[b>>2]=0;c[b+4>>2]=0;c[d>>2]=5;b=d;i=e;return b|0}function wt(){var a=0,b=0;a=i;b=FW(8)|0;zH(b,73312,315);c[72948>>2]=b;b=FW(8)|0;zH(b,77096,315);c[72972>>2]=b;b=FW(8)|0;zH(b,80880,315);c[72996>>2]=b;b=FW(8)|0;zH(b,84664,315);c[73020>>2]=b;b=FW(8)|0;zH(b,88448,315);c[73044>>2]=b;b=FW(8)|0;zH(b,92232,316);c[73068>>2]=b;b=FW(8)|0;zH(b,96024,315);c[73092>>2]=b;b=FW(8)|0;zH(b,99808,315);c[73116>>2]=b;b=FW(8)|0;zH(b,103592,190);c[73140>>2]=b;b=FW(8)|0;zH(b,105872,315);c[73164>>2]=b;b=FW(8)|0;zH(b,109656,315);c[73188>>2]=b;b=FW(8)|0;zH(b,113440,315);c[73212>>2]=b;b=FW(8)|0;zH(b,117224,315);c[73236>>2]=b;b=FW(8)|0;zH(b,121008,202);c[73260>>2]=b;i=a;return}function xt(){var a=0,b=0,d=0;a=i;d=0;do{b=c[72948+(d*24|0)>>2]|0;if((b|0)!=0){AH(b);HW(b)}d=d+1|0;}while((d|0)<14);i=a;return}function yt(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var 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,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;F=i;I=i;i=i+8|0;J=I;G=i;i=i+8|0;H=G;g=i;i=i+8|0;B=i;i=i+8|0;D=i;i=i+8|0;E=D;M=i;i=i+8|0;z=i;i=i+8|0;s=i;i=i+8|0;t=s;p=i;i=i+8|0;q=p;n=i;i=i+8|0;O=i;i=i+8|0;P=O;m=i;i=i+256|0;k=m;y=i;i=i+256|0;h=y;K=i;i=i+256|0;u=i;i=i+8|0;l=u;x=i;i=i+8|0;j=x;L=i;i=i+8|0;v=i;i=i+8|0;o=v;w=i;i=i+8|0;r=w;A=i;i=i+8|0;C=A;do{if((f|0)==0){f=df(c[834]|0,d,e)|0;if((f|0)!=0){O=FW(12)|0;YF(O,251,f);break}do{if((te(e,130136)|0)!=0){if((te(e,130152)|0)==0){break}if((te(e,130168)|0)==0){S=FW(44)|0;Q=FW(32)|0;ie(Q,d);R=FW(32)|0;ie(R,e);c[S>>2]=Q;c[S+4>>2]=R;c[S+8>>2]=1;c[S+12>>2]=0;c[S+16>>2]=1;ad(S+20|0,0)|0;i=F;return S|0}else{S=c[d+28>>2]|0;c[O>>2]=c[e+28>>2];c[P+4>>2]=S;Qe(-1,130184,P);S=0;i=F;return S|0}}}while(0);S=FW(44)|0;Q=FW(32)|0;ie(Q,d);R=FW(32)|0;ie(R,e);c[S>>2]=Q;c[S+4>>2]=R;c[S+8>>2]=0;c[S+12>>2]=0;c[S+16>>2]=1;ad(S+20|0,0)|0;i=F;return S|0}else{fdfde|0)){if((((e|0)>0?e:0)|0)==(e|0)){break}}h=h+1|0;if((h|0)>=(b|0)){d=0;g=14;break}}if((g|0)==14){i=f;return d|0}c[d>>2]=c[a+(h*12|0)>>2];h=1;i=f;return h|0}function yu(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;d=i;e=a+4|0;c[e>>2]=b;b=ye(b,4)|0;c[a>>2]=b;if((c[e>>2]|0)>0){f=0}else{i=d;return}while(1){c[b+(f<<2)>>2]=0;f=f+1|0;if((f|0)>=(c[e>>2]|0)){break}b=c[a>>2]|0}i=d;return}function zu(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,j=0;b=i;d=a+4|0;f=c[a>>2]|0;if((c[d>>2]|0)>0){e=0}else{Fe(f);i=b;return}do{f=c[f+(e<<2)>>2]|0;do{if((f|0)!=0){h=f+28|0;Ub(h|0)|0;j=f+24|0;g=(c[j>>2]|0)+ -1|0;c[j>>2]=g;Mc(h|0)|0;if((g|0)!=0){break}su(f);HW(f)}}while(0);e=e+1|0;f=c[a>>2]|0}while((e|0)<(c[d>>2]|0));Fe(f);i=b;return}function Au(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0;d=i;f=c[c[a>>2]>>2]|0;do{if((f|0)!=0){f=c[f>>2]|0;if((f|0)==0){break}if((se(f,b)|0)!=0){break}h=c[c[a>>2]>>2]|0;j=h+28|0;Ub(j|0)|0;h=h+24|0;c[h>>2]=(c[h>>2]|0)+1;Mc(j|0)|0;j=c[c[a>>2]>>2]|0;i=d;return j|0}}while(0);g=a+4|0;h=c[g>>2]|0;if((h|0)>1){f=1}else{j=0;i=d;return j|0}a:while(1){j=c[(c[a>>2]|0)+(f<<2)>>2]|0;do{if((j|0)!=0){j=c[j>>2]|0;if((j|0)==0){break}if((se(j,b)|0)==0){break a}h=c[g>>2]|0}}while(0);f=f+1|0;if((f|0)>=(h|0)){a=0;e=14;break}}if((e|0)==14){i=d;return a|0}b=c[a>>2]|0;e=c[b+(f<<2)>>2]|0;if((f|0)>0){while(1){g=f+ -1|0;c[b+(f<<2)>>2]=c[b+(g<<2)>>2];b=c[a>>2]|0;if((g|0)>0){f=g}else{break}}}c[b>>2]=e;j=e+28|0;Ub(j|0)|0;h=e+24|0;c[h>>2]=(c[h>>2]|0)+1;Mc(j|0)|0;j=e;i=d;return j|0}function Bu(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0;d=i;e=a+4|0;f=c[(c[a>>2]|0)+((c[e>>2]|0)+ -1<<2)>>2]|0;do{if((f|0)!=0){h=f+28|0;Ub(h|0)|0;j=f+24|0;g=(c[j>>2]|0)+ -1|0;c[j>>2]=g;Mc(h|0)|0;if((g|0)!=0){break}su(f);HW(f)}}while(0);f=c[e>>2]|0;e=f+ -1|0;if((e|0)>0){while(1){g=c[a>>2]|0;c[g+(e<<2)>>2]=c[g+(f+ -2<<2)>>2];g=e+ -1|0;if((g|0)>0){f=e;e=g}else{break}}}c[c[a>>2]>>2]=b;j=b+28|0;Ub(j|0)|0;h=b+24|0;c[h>>2]=(c[h>>2]|0)+1;Mc(j|0)|0;i=d;return}function Cu(b,e,f,g,h,j,k,l,m,n,o,p){b=b|0;e=e|0;f=f|0;g=g|0;h=h|0;j=j|0;k=k|0;l=l|0;m=m|0;n=n|0;o=o|0;p=p|0;var 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;b=i;x=i;i=i+32|0;s=x;v=i;i=i+32|0;q=v;r=i;i=i+256|0;t=i;i=i+16|0;a[p]=0;do{if((l|0)!=0){w=c[l+24>>2]|0;l=c[l+28>>2]|0;if((w|0)<32){$W(x|0,l|0,w|0)|0;$W(s+w|0,131712,32-w|0)|0}else{$W(x|0,l|0,32)|0}Du(s,32,s);if((e|0)==3){u=0;while(1){Du(s,f,s);u=u+1|0;if((u|0)<50){}else{u=12;break}}}else if((e|0)==2){t=0;do{a[r+t|0]=t;t=t+1|0;}while((t|0)<256);if((f|0)!=0){v=0;t=0;w=0;while(1){t=t&255;l=r+v|0;x=a[l]|0;w=(d[s+t|0]|0)+(w&255)+(x&255)|0;y=r+(w&255)|0;a[l]=a[y]|0;a[y]=x;v=v+1|0;if((v|0)<256){w=w&255;t=((t+1|0)%(f|0)|0)&255}else{break}}}s=c[g+28>>2]|0;t=0;v=0;w=0;while(1){y=a[s+w|0]|0;v=(v&255)+1|0;B=r+(v&255)|0;A=a[B]|0;x=A&255;t=x+(t&255)|0;z=r+(t&255)|0;l=a[z]|0;a[B]=l;a[z]=A;a[q+w|0]=a[r+((l&255)+x&255)|0]^y;w=w+1|0;if((w|0)<32){v=v&255;t=t&255}else{break}}}else{u=12}if((u|0)==12){$W(v|0,c[g+28>>2]|0,32)|0;u=(f|0)>0;v=(f|0)==0;w=19;while(1){if(u){l=0;while(1){a[t+l|0]=(d[s+l|0]|0)^w;l=l+1|0;if((l|0)<(f|0)){}else{l=0;break}}}else{l=0}do{a[r+l|0]=l;l=l+1|0;}while((l|0)<256);if(v){x=0;l=0;y=0}else{l=0;x=0;y=0;while(1){x=x&255;z=r+l|0;A=a[z]|0;y=(d[t+x|0]|0)+(y&255)+(A&255)|0;B=r+(y&255)|0;a[z]=a[B]|0;a[B]=A;l=l+1|0;if((l|0)<256){y=y&255;x=((x+1|0)%(f|0)|0)&255}else{x=0;l=0;y=0;break}}}while(1){B=q+y|0;A=a[B]|0;l=(l&255)+1|0;F=r+(l&255)|0;E=a[F]|0;z=E&255;x=z+(x&255)|0;D=r+(x&255)|0;C=a[D]|0;a[F]=C;a[D]=E;a[B]=a[r+((C&255)+z&255)|0]^A;y=y+1|0;if((y|0)<32){l=l&255;x=x&255}else{break}}if((w|0)>0){w=w+ -1|0}else{break}}}r=FW(32)|0;ge(r,q,32);if(!(Eu(0,e,f,g,h,j,k,r,n,o)|0)){if((r|0)==0){break}ke(r);HW(r);break}a[p]=1;if((r|0)==0){F=1;i=b;return F|0}ke(r);HW(r);F=1;i=b;return F|0}}while(0);F=Eu(0,e,f,g,h,j,k,m,n,o)|0;i=b;return F|0}function Du(b,e,f){b=b|0;e=e|0;f=f|0;var 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,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,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ba=0,ca=0,da=0,ea=0;A=i;j=i;i=i+64|0;h=j;L=e+72|0;k=(L|0)/64|0;if((L|0)<=63){u=1;w=69;x=103;v=35;y=-119;B=-51;C=-17;z=-85;D=-2;F=-70;G=-104;E=-36;H=118;J=50;K=16;I=84;L=f;a[L]=u;L=f+1|0;a[L]=v;L=f+2|0;a[L]=w;L=f+3|0;a[L]=x;L=f+4|0;a[L]=y;L=f+5|0;a[L]=z;L=f+6|0;a[L]=B;L=f+7|0;a[L]=C;L=f+8|0;a[L]=D;L=f+9|0;a[L]=E;L=f+10|0;a[L]=F;L=f+11|0;a[L]=G;L=f+12|0;a[L]=H;L=f+13|0;a[L]=I;L=f+14|0;a[L]=J;L=f+15|0;a[L]=K;i=A;return}l=e+ -3|0;n=k+ -1|0;o=e+ -2|0;p=e+ -1|0;q=e<<3;r=h+56|0;w=h+4|0;x=h+8|0;y=h+12|0;z=h+16|0;g=h+20|0;B=h+24|0;C=h+28|0;D=h+32|0;E=h+36|0;v=h+40|0;u=h+44|0;t=h+48|0;s=h+52|0;m=h+60|0;H=1732584193;J=-271733879;F=-1732584194;G=271733878;I=0;K=0;do{if((K|0)<(l|0)){L=0;while(1){c[h+(L<<2)>>2]=(((d[b+(K+3)|0]|0)<<8|(d[b+(K+2)|0]|0))<<8|(d[b+(K+1)|0]|0))<<8|(d[b+K|0]|0);L=L+1|0;K=K+4|0;if((L|0)<16&(K|0)<(l|0)){}else{break}}}else{L=0}if((I|0)==(n|0)){do{if((K|0)==(l|0)){c[h+(L<<2)>>2]=d[b+l|0]|0|((d[b+(e+ -1)|0]|0)<<8|(d[b+(e+ -2)|0]|0))<<8|-2147483648}else{if((K|0)==(o|0)){c[h+(L<<2)>>2]=d[b+o|0]|0|(d[b+(e+ -1)|0]|0)<<8|8388608;break}if((K|0)==(p|0)){c[h+(L<<2)>>2]=d[b+p|0]|0|32768;break}else{c[h+(L<<2)>>2]=128;break}}}while(0);if((L+1|0)<16){bX(h+(L+1<<2)|0,0,60-(L<<2)|0)|0}c[r>>2]=q}ca=c[j>>2]|0;ea=H+ -680876936+(G&~J|J&F)+ca|0;ea=(ea>>>25|ea<<7)+J|0;X=c[w>>2]|0;da=G+ -389564586+X+(F&~ea|ea&J)|0;da=(da>>>20|da<<12)+ea|0;Q=c[x>>2]|0;M=F+606105819+Q+(J&~da|da&ea)|0;M=(M>>>15|M<<17)+da|0;Z=c[y>>2]|0;N=J+ -1044525330+Z+(ea&~M|M&da)|0;N=(N>>>10|N<<22)+M|0;S=c[z>>2]|0;ea=ea+ -176418897+S+(da&~N|N&M)|0;ea=(ea>>>25|ea<<7)+N|0;$=c[g>>2]|0;da=$+1200080426+da+(M&~ea|ea&N)|0;da=(da>>>20|da<<12)+ea|0;U=c[B>>2]|0;M=U+ -1473231341+M+(N&~da|da&ea)|0;M=(M>>>15|M<<17)+da|0;ba=c[C>>2]|0;N=ba+ -45705983+N+(ea&~M|M&da)|0;N=(N>>>10|N<<22)+M|0;W=c[D>>2]|0;ea=W+1770035416+ea+(da&~N|N&M)|0;ea=(ea>>>25|ea<<7)+N|0;P=c[E>>2]|0;da=P+ -1958414417+da+(M&~ea|ea&N)|0;da=(da>>>20|da<<12)+ea|0;Y=c[v>>2]|0;M=Y+ -42063+M+(N&~da|da&ea)|0;M=(M>>>15|M<<17)+da|0;R=c[u>>2]|0;N=R+ -1990404162+N+(ea&~M|M&da)|0;N=(N>>>10|N<<22)+M|0;_=c[t>>2]|0;ea=_+1804603682+ea+(da&~N|N&M)|0;ea=(ea>>>25|ea<<7)+N|0;T=c[s>>2]|0;da=T+ -40341101+da+(M&~ea|ea&N)|0;da=(da>>>20|da<<12)+ea|0;aa=c[r>>2]|0;O=~da;M=aa+ -1502002290+M+(N&O|da&ea)|0;M=(M>>>15|M<<17)+da|0;V=c[m>>2]|0;L=~M;N=V+1236535329+N+(ea&L|M&da)|0;N=(N>>>10|N<<22)+M|0;O=X+ -165796510+ea+(N&da|M&O)|0;O=(O>>>27|O<<5)+N|0;L=U+ -1069501632+da+(O&M|N&L)|0;L=(L>>>23|L<<9)+O|0;M=R+643717713+M+(L&N|O&~N)|0;M=(M>>>18|M<<14)+L|0;N=ca+ -373897302+N+(M&O|L&~O)|0;N=(N>>>12|N<<20)+M|0;O=$+ -701558691+O+(N&L|M&~L)|0;O=(O>>>27|O<<5)+N|0;L=Y+38016083+L+(O&M|N&~M)|0;L=(L>>>23|L<<9)+O|0;M=V+ -660478335+M+(L&N|O&~N)|0;M=(M>>>18|M<<14)+L|0;N=S+ -405537848+N+(M&O|L&~O)|0;N=(N>>>12|N<<20)+M|0;O=P+568446438+O+(N&L|M&~L)|0;O=(O>>>27|O<<5)+N|0;L=aa+ -1019803690+L+(O&M|N&~M)|0;L=(L>>>23|L<<9)+O|0;M=Z+ -187363961+M+(L&N|O&~N)|0;M=(M>>>18|M<<14)+L|0;N=W+1163531501+N+(M&O|L&~O)|0;N=(N>>>12|N<<20)+M|0;O=T+ -1444681467+O+(N&L|M&~L)|0;O=(O>>>27|O<<5)+N|0;L=Q+ -51403784+L+(O&M|N&~M)|0;L=(L>>>23|L<<9)+O|0;M=ba+1735328473+M+(L&N|O&~N)|0;M=(M>>>18|M<<14)+L|0;N=_+ -1926607734+N+(M&O|L&~O)|0;N=(N>>>12|N<<20)+M|0;O=$+ -378558+O+(M^L^N)|0;O=(O>>>28|O<<4)+N|0;L=W+ -2022574463+L+(N^M^O)|0;L=(L>>>21|L<<11)+O|0;M=R+1839030562+M+(O^N^L)|0;M=(M>>>16|M<<16)+L|0;N=aa+ -35309556+N+(L^O^M)|0;N=(N>>>9|N<<23)+M|0;O=X+ -1530992060+O+(M^L^N)|0;O=(O>>>28|O<<4)+N|0;L=S+1272893353+L+(N^M^O)|0;L=(L>>>21|L<<11)+O|0;M=ba+ -155497632+M+(O^N^L)|0;M=(M>>>16|M<<16)+L|0;N=Y+ -1094730640+N+(L^O^M)|0;N=(N>>>9|N<<23)+M|0;O=T+681279174+O+(M^L^N)|0;O=(O>>>28|O<<4)+N|0;L=ca+ -358537222+L+(N^M^O)|0;L=(L>>>21|L<<11)+O|0;M=Z+ -722521979+M+(O^N^L)|0;M=(M>>>16|M<<16)+L|0;N=U+76029189+N+(L^O^M)|0;N=(N>>>9|N<<23)+M|0;O=P+ -640364487+O+(M^L^N)|0;O=(O>>>28|O<<4)+N|0;L=_+ -421815835+L+(N^M^O)|0;L=(L>>>21|L<<11)+O|0;M=V+530742520+M+(O^N^L)|0;M=(M>>>16|M<<16)+L|0;N=Q+ -995338651+N+(L^O^M)|0;N=(N>>>9|N<<23)+M|0;O=ca+ -198630844+O+((N|~L)^M)|0;O=(O>>>26|O<<6)+N|0;L=ba+1126891415+L+((O|~M)^N)|0;L=(L>>>22|L<<10)+O|0;M=aa+ -1416354905+M+((L|~N)^O)|0;M=(M>>>17|M<<15)+L|0;N=$+ -57434055+N+((M|~O)^L)|0;N=(N>>>11|N<<21)+M|0;O=_+1700485571+O+((N|~L)^M)|0;O=(O>>>26|O<<6)+N|0;L=Z+ -1894986606+L+((O|~M)^N)|0;L=(L>>>22|L<<10)+O|0;M=Y+ -1051523+M+((L|~N)^O)|0;M=(M>>>17|M<<15)+L|0;N=X+ -2054922799+N+((M|~O)^L)|0;N=(N>>>11|N<<21)+M|0;O=W+1873313359+O+((N|~L)^M)|0;O=(O>>>26|O<<6)+N|0;L=V+ -30611744+L+((O|~M)^N)|0;L=(L>>>22|L<<10)+O|0;M=U+ -1560198380+M+((L|~N)^O)|0;M=(M>>>17|M<<15)+L|0;N=T+1309151649+N+((M|~O)^L)|0;N=(N>>>11|N<<21)+M|0;O=S+ -145523070+O+((N|~L)^M)|0;O=(O>>>26|O<<6)+N|0;L=R+ -1120210379+L+((O|~M)^N)|0;L=(L>>>22|L<<10)+O|0;M=Q+718787259+M+((L|~N)^O)|0;M=(M>>>17|M<<15)+L|0;N=P+ -343485551+N+((M|~O)^L)|0;H=O+H|0;J=M+J+(N>>>11|N<<21)|0;F=M+F|0;G=L+G|0;I=I+1|0;}while((I|0)<(k|0));Q=H&255;S=H>>>16&255;T=H>>>24&255;R=H>>>8&255;U=J&255;W=J>>>16&255;X=J>>>24&255;V=J>>>8&255;Y=F&255;_=F>>>16&255;$=F>>>24&255;Z=F>>>8&255;aa=G&255;ca=G>>>16&255;da=G>>>24&255;ba=G>>>8&255;ea=f;a[ea]=Q;ea=f+1|0;a[ea]=R;ea=f+2|0;a[ea]=S;ea=f+3|0;a[ea]=T;ea=f+4|0;a[ea]=U;ea=f+5|0;a[ea]=V;ea=f+6|0;a[ea]=W;ea=f+7|0;a[ea]=X;ea=f+8|0;a[ea]=Y;ea=f+9|0;a[ea]=Z;ea=f+10|0;a[ea]=_;ea=f+11|0;a[ea]=$;ea=f+12|0;a[ea]=aa;ea=f+13|0;a[ea]=ba;ea=f+14|0;a[ea]=ca;ea=f+15|0;a[ea]=da;i=A;return}function Eu(b,e,f,g,h,j,k,l,m,n){b=b|0;e=e|0;f=f|0;g=g|0;h=h|0;j=j|0;k=k|0;l=l|0;m=m|0;n=n|0;var o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0;b=i;u=i;i=i+32|0;p=u;o=i;i=i+256|0;r=i;i=i+16|0;s=k+24|0;q=we((c[s>>2]|0)+72|0)|0;do{if((l|0)==0){$W(q|0,131712,32)|0}else{t=c[l+24>>2]|0;l=c[l+28>>2]|0;if((t|0)<32){$W(q|0,l|0,t|0)|0;$W(q+t|0,131712,32-t|0)|0;break}else{$W(q|0,l|0,32)|0;break}}}while(0);t=q+32|0;$W(t|0,c[g+28>>2]|0,32)|0;a[q+64|0]=j;a[q+65|0]=j>>>8;a[q+66|0]=j>>>16;a[q+67|0]=j>>>24;j=k+28|0;$W(q+68|0,c[j>>2]|0,c[s>>2]|0)|0;k=c[s>>2]|0;g=k+68|0;if(!n){a[q+g|0]=-1;a[q+(k+69)|0]=-1;a[q+(k+70)|0]=-1;a[q+(k+71)|0]=-1;g=k+72|0}Du(q,g,m);g=(e|0)==3;if(g){n=0;do{Du(m,f,m);n=n+1|0;}while((n|0)<50)}if((e|0)==2){r=0;do{a[o+r|0]=r;r=r+1|0;}while((r|0)<256);if((f|0)!=0){r=0;t=0;s=0;while(1){t=t&255;g=o+r|0;k=a[g]|0;s=(d[m+t|0]|0)+(s&255)+(k&255)|0;l=o+(s&255)|0;a[g]=a[l]|0;a[l]=k;r=r+1|0;if((r|0)<256){s=s&255;t=((t+1|0)%(f|0)|0)&255}else{break}}}f=c[h+28>>2]|0;s=0;t=0;r=0;while(1){l=a[f+r|0]|0;t=(t&255)+1|0;e=o+(t&255)|0;u=a[e]|0;k=u&255;s=k+(s&255)|0;n=o+(s&255)|0;g=a[n]|0;a[e]=g;a[n]=u;a[p+r|0]=a[o+((g&255)+k&255)|0]^l;r=r+1|0;if((r|0)<32){t=t&255;s=s&255}else{break}}l=(iX(p|0,131712,32)|0)==0;Fe(q);i=b;return l|0}if(!g){l=0;Fe(q);i=b;return l|0}$W(u|0,c[h+28>>2]|0,32)|0;h=(f|0)==0;if((f|0)>0){e=19;while(1){u=0;while(1){a[r+u|0]=(d[m+u|0]|0)^e;u=u+1|0;if((u|0)<(f|0)){}else{u=0;break}}do{a[o+u|0]=u;u=u+1|0;}while((u|0)<256);if(h){g=0;n=0;u=0}else{u=0;g=0;n=0;while(1){g=g&255;v=o+u|0;k=a[v]|0;n=(d[r+g|0]|0)+(n&255)+(k&255)|0;l=o+(n&255)|0;a[v]=a[l]|0;a[l]=k;u=u+1|0;if((u|0)<256){n=n&255;g=((g+1|0)%(f|0)|0)&255}else{g=0;n=0;u=0;break}}}while(1){v=p+u|0;l=a[v]|0;n=(n&255)+1|0;z=o+(n&255)|0;y=a[z]|0;k=y&255;g=k+(g&255)|0;x=o+(g&255)|0;w=a[x]|0;a[z]=w;a[x]=y;a[v]=a[o+((w&255)+k&255)|0]^l;u=u+1|0;if((u|0)<32){n=n&255;g=g&255}else{break}}if((e|0)>0){e=e+ -1|0}else{break}}}else{m=19;while(1){e=0;do{a[o+e|0]=e;e=e+1|0;}while((e|0)<256);if(h){n=0;e=0;u=0}else{e=0;u=0;n=0;while(1){u=u&255;x=o+e|0;y=a[x]|0;n=(d[r+u|0]|0)+(n&255)+(y&255)|0;z=o+(n&255)|0;a[x]=a[z]|0;a[z]=y;e=e+1|0;if((e|0)<256){n=n&255;u=((u+1|0)%(f|0)|0)&255}else{n=0;e=0;u=0;break}}}while(1){z=p+u|0;y=a[z]|0;e=(e&255)+1|0;k=o+(e&255)|0;l=a[k]|0;x=l&255;n=x+(n&255)|0;v=o+(n&255)|0;w=a[v]|0;a[k]=w;a[v]=l;a[z]=a[o+((w&255)+x&255)|0]^y;u=u+1|0;if((u|0)<32){e=e&255;n=n&255}else{break}}if((m|0)>0){m=m+ -1|0}else{break}}}$W(q|0,131712,32)|0;$W(t|0,c[j>>2]|0,c[s>>2]|0)|0;Du(q,(c[s>>2]|0)+32|0,q);z=(iX(p|0,q|0,16)|0)==0;Fe(q);i=b;return z|0}function Fu(b,d,e,f,g,h,j){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;j=j|0;var k=0;k=i;uj(b,d);c[b>>2]=131752;d=b+12|0;c[d>>2]=f;if((g|0)>0){f=0;do{a[b+20+f|0]=a[e+f|0]|0;f=f+1|0;}while((f|0)<(g|0))}a[b+20+g|0]=h;a[b+20+(g+1)|0]=h>>>8;a[b+20+(g+2)|0]=h>>>16;a[b+20+(g+3)|0]=j;a[b+20+(g+4)|0]=j>>>8;h=g+5|0;if((c[d>>2]|0)!=1){f=h;g=b+20|0;Du(g,f,g);g=b+16|0;f=(h|0)>16;d=f?16:h;f=g;c[f>>2]=d;f=b+48|0;c[f>>2]=0;i=k;return}a[b+20+h|0]=115;a[b+20+(g+6)|0]=65;a[b+20+(g+7)|0]=108;a[b+20+(g+8)|0]=84;f=g+9|0;g=b+20|0;Du(g,f,g);g=b+16|0;f=(h|0)>16;d=f?16:h;f=g;c[f>>2]=d;f=b+48|0;c[f>>2]=0;i=k;return}function Gu(a){a=a|0;var b=0,d=0;b=i;c[a>>2]=131752;d=c[a+8>>2]|0;if((d|0)==0){HW(a);i=b;return}fd[c[(c[d>>2]|0)+4>>2]&511](d);HW(a);i=b;return}function Hu(a){a=a|0;var b=0;b=i;c[a>>2]=131752;a=c[a+8>>2]|0;if((a|0)==0){i=b;return}fd[c[(c[a>>2]|0)+4>>2]&511](a);i=b;return}function Iu(b){b=b|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,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;e=i;c[b+48>>2]=0;f=b+8|0;g=c[f>>2]|0;fdfd[c[(c[k>>2]|0)+4>>2]&511](k);j=c[e>>2]|0;g=c[f>>2]|0}h=h+1|0;}while((h|0)<(g|0))}Fe(j);k=b+24|0;Of(k);i=d;return}f=b+44|0;j=c[f>>2]|0;if((j|0)==0){k=b+24|0;Of(k);i=d;return}e=b+48|0;g=c[e>>2]|0;if((g|0)>0){h=0;do{k=c[j+(h<<2)>>2]|0;if((k|0)!=0){fd[c[(c[k>>2]|0)+4>>2]&511](k);j=c[f>>2]|0;g=c[e>>2]|0}h=h+1|0;}while((h|0)<(g|0))}Fe(j);k=b+24|0;Of(k);i=d;return}function yv(b){b=b|0;var d=0,e=0,f=0,g=0;d=i;e=b+48|0;f=(c[e>>2]|0)>0;if((a[b+16|0]&1)==0){if(!f){i=d;return}b=b+44|0;f=0;do{yv(c[(c[b>>2]|0)+(f<<2)>>2]|0);f=f+1|0;}while((f|0)<(c[e>>2]|0));i=d;return}else{if(!f){i=d;return}b=b+52|0;f=0;do{g=c[(c[b>>2]|0)+(f<<2)>>2]|0;fd[c[(c[g>>2]|0)+8>>2]&511](g);f=f+1|0;}while((f|0)<(c[e>>2]|0));i=d;return}}function zv(b){b=b|0;var d=0,e=0,f=0,g=0;d=i;if((a[b+16|0]&1)!=0){i=d;return}e=b+48|0;if((c[e>>2]|0)<=0){i=d;return}b=b+44|0;f=0;do{g=c[(c[b>>2]|0)+(f<<2)>>2]|0;fd[c[(c[g>>2]|0)+8>>2]&511](g);f=f+1|0;}while((f|0)<(c[e>>2]|0));i=d;return}function Av(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,p=0,q=0;f=i;j=i;i=i+8|0;h=j;n=i;i=i+8|0;e=c[b+48>>2]|0;g=(e|0)>0;if((a[b+16|0]&1)==0){if(!g){p=0;i=f;return p|0}m=d;l=c[m>>2]|0;m=c[m+4>>2]|0;k=c[b+44>>2]|0;p=0;while(1){o=c[k+(p<<2)>>2]|0;q=n;c[q>>2]=l;c[q+4>>2]=m;$W(j|0,n|0,8)|0;o=Av(o,h)|0;p=p+1|0;if((o|0)!=0){h=11;break}if((p|0)<(e|0)){}else{o=0;h=11;break}}if((h|0)==11){i=f;return o|0}}if(!g){q=0;i=f;return q|0}b=c[b+52>>2]|0;g=c[d>>2]|0;d=c[d+4>>2]|0;h=0;while(1){o=c[b+(h<<2)>>2]|0;j=o+32|0;if((c[j>>2]|0)==(g|0)){if((c[j+4>>2]|0)==(d|0)){h=11;break}}h=h+1|0;if((h|0)>=(e|0)){o=0;h=11;break}}if((h|0)==11){i=f;return o|0}return 0}function Bv(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;j=i;h=i;i=i+8|0;k=i;i=i+8|0;l=k;r=i;i=i+8|0;q=r;p=i;i=i+16|0;o=p;m=i;i=i+16|0;n=m;tv(b,d,e,f,g,0);c[b>>2]=147448;g=c[b+24>>2]|0;if((g|0)!=7){c[r>>2]=g;c[q+4>>2]=7;Qe(0,148232,q);tc()}d=c[b+32>>2]|0;c[b+68>>2]=-1;q=b+72|0;a[q]=0;c[m>>2]=13;r=n+8|0;c[r>>2]=0;c[r+4>>2]=0;b=b+60|0;c[b>>2]=0;e=o+4|0;c[e>>2]=0;c[o+8>>2]=0;c[p>>2]=e;d=Nv(d,147376,n,o)|0;xn(o,c[o+4>>2]|0);if((c[d>>2]|0)!=1){i=j;return}m=c[m>>2]|0;if((m|0)!=1){c[k>>2]=m;c[l+4>>2]=1;Qe(0,148232,l);tc()}k=c[r>>2]|0;do{if((k&65536|0)==0){if((k&32768|0)==0){break}c[b>>2]=2;if((k&16384|0)==0){break}a[q]=1}else{c[b>>2]=1}}while(0);if((k&16777216|0)==0){i=j;return}Qe(-1,147464,h);i=j;return}function Cv(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0;d=i;e=b+48|0;h=c[e>>2]|0;f=(h|0)>0;if((a[b+16|0]&1)==0){if(!f){i=d;return}b=b+44|0;f=0;do{k=c[(c[b>>2]|0)+(f<<2)>>2]|0;fd[c[(c[k>>2]|0)+8>>2]&511](k);f=f+1|0;}while((f|0)<(c[e>>2]|0));i=d;return}if(!f){i=d;return}f=b+52|0;b=0;do{g=c[(c[f>>2]|0)+(b<<2)>>2]|0;h=h+ -1|0;c[g+116>>2]=h;g=g+112|0;c[g>>2]=Ce(c[g>>2]|0,h,4)|0;h=c[e>>2]|0;if((h|0)>0){j=0;k=0;do{if((b|0)!=(k|0)){c[(c[g>>2]|0)+(j<<2)>>2]=c[(c[(c[f>>2]|0)+(k<<2)>>2]|0)+64>>2];h=c[e>>2]|0;j=j+1|0}k=k+1|0;}while((k|0)<(h|0))}b=b+1|0;}while((b|0)<(h|0));i=d;return}function Dv(a){a=a|0;var b=0;b=i;xv(a);HW(a);i=b;return}function Ev(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,v=0,w=0,x=0,y=0;h=i;l=i;i=i+8|0;j=l;p=i;i=i+8|0;q=p;u=i;i=i+8|0;t=u;o=i;i=i+16|0;n=o;r=i;i=i+16|0;s=r;m=i;i=i+16|0;k=m;tv(b,d,e,f,g,1);c[b>>2]=147624;g=c[b+24>>2]|0;if((g|0)!=7){c[u>>2]=g;c[t+4>>2]=7;Qe(0,148232,t);tc()}f=c[b+32>>2]|0;c[m>>2]=13;t=k+8|0;c[t>>2]=0;c[t+4>>2]=0;e=b+70|0;d=b+69|0;v=b+68|0;w=b+67|0;x=b+66|0;y=b+65|0;g=b+64|0;u=b+72|0;c[u>>2]=0;bX(b+60|0,0,11)|0;b=s+4|0;c[b>>2]=0;c[s+8>>2]=0;c[r>>2]=b;b=Nv(f,147376,k,s)|0;xn(s,c[s+4>>2]|0);do{if((c[b>>2]|0)==1){r=c[m>>2]|0;if((r|0)!=1){c[p>>2]=r;c[q+4>>2]=1;Qe(0,148232,q);tc()}p=c[t>>2]|0;if((p&4096|0)!=0){a[g]=1}if((p&8192|0)!=0){a[y]=1}if((p&1048576|0)!=0){a[x]=1}if((p&4194304|0)!=0){a[w]=1}if((p&8388608|0)!=0){a[v]=1}if((p&16777216|0)!=0){a[d]=1}if((p&33554432|0)==0){break}a[e]=1}}while(0);Of(k);y=n+4|0;c[y>>2]=0;c[n+8>>2]=0;c[o>>2]=y;y=Nv(f,147640,k,n)|0;xn(n,c[n+4>>2]|0);if((c[y>>2]|0)!=1){Of(k);i=h;return}m=c[m>>2]|0;if((m|0)!=1){c[l>>2]=m;c[j+4>>2]=1;Qe(0,148232,j);tc()}c[u>>2]=c[t>>2];Of(k);i=h;return}function Fv(a){a=a|0;var b=0,d=0;b=i;c[a>>2]=147624;d=c[a+60>>2]|0;if((d|0)!=0){ke(d);HW(d)}xv(a);HW(a);i=b;return}function Gv(a){a=a|0;var b=0,d=0;b=i;c[a>>2]=147624;d=c[a+60>>2]|0;if((d|0)==0){xv(a);i=b;return}ke(d);HW(d);xv(a);i=b;return}function Hv(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;h=i;k=i;i=i+8|0;l=k;q=i;i=i+8|0;p=q;o=i;i=i+16|0;n=o;m=i;i=i+16|0;j=m;tv(b,d,e,f,g,2);c[b>>2]=147656;c[b+64>>2]=0;c[b+68>>2]=0;c[b+72>>2]=0;g=c[b+24>>2]|0;if((g|0)!=7){c[q>>2]=g;c[p+4>>2]=7;Qe(0,148232,p);tc()}d=c[b+32>>2]|0;c[m>>2]=13;q=j+8|0;c[q>>2]=0;c[q+4>>2]=0;p=b+57|0;bX(p|0,0,5)|0;e=n+4|0;c[e>>2]=0;c[n+8>>2]=0;c[o>>2]=e;d=Nv(d,147376,j,n)|0;xn(n,c[n+4>>2]|0);if((c[d>>2]|0)!=1){Of(j);i=h;return}m=c[m>>2]|0;if((m|0)!=1){c[k>>2]=m;c[l+4>>2]=1;Qe(0,148232,l);tc()}k=c[q>>2]|0;if((k&131072|0)!=0){a[p]=1}if((k&262144|0)!=0){a[b+58|0]=1}if((k&2097152|0)!=0){a[b+59|0]=1}if((k&4194304|0)!=0){a[b+60|0]=1}if((k&67108864|0)==0){Of(j);i=h;return}a[b+61|0]=1;Of(j);i=h;return}function Iv(a){a=a|0;var b=0;b=i;Jv(a);HW(a);i=b;return}function Jv(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0;b=i;c[a>>2]=147656;d=a+64|0;e=a+68|0;g=c[e>>2]|0;if((c[d>>2]|0)>0){f=0;do{h=c[g+(f*12|0)>>2]|0;if((h|0)!=0){ke(h);HW(h);g=c[e>>2]|0}h=c[g+(f*12|0)+4>>2]|0;if((h|0)!=0){ke(h);HW(h);g=c[e>>2]|0}f=f+1|0;}while((f|0)<(c[d>>2]|0))}if((g|0)!=0){IW(g)}d=c[a+72>>2]|0;if((d|0)==0){xv(a);i=b;return}ke(d);HW(d);xv(a);i=b;return}function Kv(a){a=a|0;var b=0;b=i;xv(a);HW(a);i=b;return}function Lv(b,d,e){b=b|0;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,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;z=i;i=i+8|0;h=i;i=i+8|0;j=h;u=i;i=i+8|0;t=i;i=i+8|0;y=i;i=i+8|0;A=y;C=i;i=i+8|0;E=C;x=i;i=i+16|0;g=x;s=i;i=i+16|0;v=s;r=i;i=i+16|0;l=r;p=i;i=i+16|0;o=p;m=i;i=i+8|0;n=m;c[x>>2]=13;w=g+8|0;c[w>>2]=0;c[w+4>>2]=0;c[b+12>>2]=d;B=b+16|0;c[B>>2]=e;q=b+8|0;c[q>>2]=0;k=b+4|0;c[k>>2]=0;c[b>>2]=0;D=c[e>>2]|0;if((D|0)!=7){c[C>>2]=D;c[E+4>>2]=7;Qe(0,148232,E);tc()}Yu(c[e+8>>2]|0,147696,g,0)|0;if((c[x>>2]|0)==0){e=a[w]&1}else{e=0}a[b+20|0]=e;Of(g);e=c[B>>2]|0;B=c[e>>2]|0;if((B|0)!=7){c[y>>2]=B;c[A+4>>2]=7;Qe(0,148232,A);tc()}Yu(c[e+8>>2]|0,147712,g,0)|0;if((c[x>>2]|0)!=6){Qe(-1,147816,z);Of(g);i=f;return}A=c[w>>2]|0;c[s>>2]=13;z=v+8|0;c[z>>2]=0;c[z+4>>2]=0;z=A+12|0;if((c[z>>2]|0)<=0){Of(g);i=f;return}w=l+8|0;x=w+4|0;e=o+4|0;y=o+8|0;B=o+4|0;C=0;a:while(1){c[r>>2]=13;c[w>>2]=0;c[x>>2]=0;ut(A,C,v)|0;vt(A,C,l)|0;do{if((c[r>>2]|0)==9){if((c[s>>2]|0)!=7){Qe(-1,147752,u);Of(v);Of(l);break}D=c[q>>2]|0;if((c[k>>2]|0)<(D|0)){c[e>>2]=0;c[y>>2]=0;c[p>>2]=e}else{D=D+16|0;c[q>>2]=D;c[b>>2]=Ce(c[b>>2]|0,D,4)|0;D=c[r>>2]|0;c[e>>2]=0;c[y>>2]=0;c[p>>2]=e;if((D|0)!=9){k=17;break a}}F=w;E=c[F+4>>2]|0;D=m;c[D>>2]=c[F>>2];c[D+4>>2]=E;D=vv(v,d,n,o)|0;E=c[k>>2]|0;c[k>>2]=E+1;c[(c[b>>2]|0)+(E<<2)>>2]=D;Of(v);Of(l);xn(o,c[B>>2]|0)}else{Qe(-1,147720,t);Of(v);Of(l)}}while(0);C=C+1|0;if((C|0)>=(c[z>>2]|0)){k=21;break}}if((k|0)==17){c[h>>2]=D;c[j+4>>2]=9;Qe(0,148232,j);tc()}else if((k|0)==21){Of(g);i=f;return}}function Mv(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0;b=i;d=a+4|0;e=c[d>>2]|0;g=c[a>>2]|0;if((e|0)>0){f=0}else{h=g;Fe(h);i=b;return}do{h=c[g+(f<<2)>>2]|0;if((h|0)!=0){fdfd[c[(c[f>>2]|0)+8>>2]&511](f);e=e+1|0;}while((e|0)<(c[d>>2]|0));i=b;return}function Pv(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;d=i;f=i;i=i+8|0;g=f;e=i;i=i+8|0;h=c[a+4>>2]|0;if((h|0)<=0){l=0;i=d;return l|0}j=b;b=c[j>>2]|0;j=c[j+4>>2]|0;k=c[a>>2]|0;l=0;while(1){a=c[k+(l<<2)>>2]|0;m=e;c[m>>2]=b;c[m+4>>2]=j;$W(f|0,e|0,8)|0;a=Av(a,g)|0;l=l+1|0;if((a|0)!=0){e=5;break}if((l|0)<(h|0)){}else{a=0;e=5;break}}if((e|0)==5){i=d;return a|0}return 0}function Qv(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=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;q=i;x=i;i=i+8|0;y=x;o=i;i=i+8|0;p=o;m=i;i=i+8|0;n=m;k=i;i=i+8|0;l=k;g=i;i=i+8|0;j=g;B=i;i=i+8|0;C=B;w=i;i=i+8|0;A=i;i=i+16|0;v=A;s=i;i=i+16|0;t=s;c[A>>2]=13;z=v+8|0;c[z>>2]=0;c[z+4>>2]=0;u=a+4|0;c[u>>2]=0;c[a>>2]=0;r=a+16|0;c[r>>2]=b;D=c[d>>2]|0;b=(D|0)==6;if((f|0)==0|b^1){i=q;return}if(!b){c[B>>2]=D;c[C+4>>2]=6;Qe(0,148232,C);tc()}B=d+8|0;L=c[(c[B>>2]|0)+12>>2]|0;C=a+8|0;c[C>>2]=L;c[a>>2]=Ce(0,L,4)|0;if((c[C>>2]|0)<=0){i=q;return}b=f+4|0;E=e<<16;D=t+8|0;e=D+4|0;F=0;a:while(1){G=c[d>>2]|0;if((G|0)!=6){d=7;break}if((c[(vt(c[B>>2]|0,F,v)|0)>>2]|0)==9){G=c[A>>2]|0;if((G|0)!=9){d=11;break}K=z;L=c[K>>2]|0;K=c[K+4>>2]|0;H=c[b>>2]|0;b:do{if((H|0)>0){J=c[f>>2]|0;I=0;while(1){G=c[J+(I<<2)>>2]|0;M=w;c[M>>2]=L;c[M+4>>2]=K;$W(x|0,w|0,8)|0;G=Av(G,y)|0;I=I+1|0;if((G|0)!=0){break}if((I|0)>=(H|0)){break b}}c[G+64>>2]=(c[u>>2]|0)+E;H=c[u>>2]|0;c[u>>2]=H+1;c[(c[a>>2]|0)+(H<<2)>>2]=G;c[s>>2]=13;c[D>>2]=0;c[e>>2]=0;H=c[d>>2]|0;if((H|0)!=6){d=17;break a}do{if((c[(ut(c[B>>2]|0,F,t)|0)>>2]|0)==7){I=FW(152)|0;H=c[s>>2]|0;if((H|0)!=7){d=20;break a}Ar(I,c[r>>2]|0,c[D>>2]|0,0);h[G+104>>3]=+h[I+136>>3];if((I|0)==0){break}fd[c[(c[I>>2]|0)+4>>2]&511](I)}}while(0);Of(t)}}while(0);Of(v)}else{Of(v)}F=F+1|0;if((F|0)>=(c[C>>2]|0)){d=26;break}}if((d|0)==7){c[g>>2]=G;c[j+4>>2]=6;Qe(0,148232,j);tc()}else if((d|0)==11){c[k>>2]=G;c[l+4>>2]=9;Qe(0,148232,l);tc()}else if((d|0)==17){c[m>>2]=H;c[n+4>>2]=6;Qe(0,148232,n);tc()}else if((d|0)==20){c[o>>2]=H;c[p+4>>2]=7;Qe(0,148232,p);tc()}else if((d|0)==26){i=q;return}}function Rv(a){a=a|0;var b=0;b=i;Fe(c[a>>2]|0);i=b;return}function Sv(a){a=a|0;i=i;return}function Tv(a){a=a|0;var b=0;b=i;iv(a);i=b;return}function Uv(a){a=a|0;var b=0;b=i;iv(a);HW(a);i=b;return}function Vv(a){a=a|0;var b=0;b=i;iv(a);i=b;return}function Wv(a){a=a|0;var b=0;b=i;iv(a);HW(a);i=b;return}function Xv(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;f=i;g=a+4|0;b=c[b>>2]|0;do{if((b|0)!=(g|0)){h=c[e>>2]|0;j=c[b+16>>2]|0;if((h|0)<(j|0)){break}if((j|0)>=(h|0)){c[d>>2]=b;k=d;i=f;return k|0}a=b+4|0;j=c[a>>2]|0;e=(j|0)==0;if(e){j=b;while(1){k=c[j+8>>2]|0;if((j|0)==(c[k>>2]|0)){j=k;break}else{j=k}}}else{while(1){k=c[j>>2]|0;if((k|0)==0){break}else{j=k}}}do{if((j|0)!=(g|0)){if((h|0)<(c[j+16>>2]|0)){break}b=c[g>>2]|0;if((b|0)==0){c[d>>2]=g;k=g;i=f;return k|0}while(1){g=c[b+16>>2]|0;if((h|0)<(g|0)){g=c[b>>2]|0;if((g|0)==0){g=34;break}else{b=g;continue}}if((g|0)>=(h|0)){g=38;break}e=b+4|0;g=c[e>>2]|0;if((g|0)==0){g=37;break}else{b=g}}if((g|0)==34){c[d>>2]=b;k=b;i=f;return k|0}else if((g|0)==37){c[d>>2]=b;k=e;i=f;return k|0}else if((g|0)==38){c[d>>2]=b;k=d;i=f;return k|0}}}while(0);if(e){c[d>>2]=b;k=a;i=f;return k|0}else{c[d>>2]=j;k=j;i=f;return k|0}}}while(0);h=c[b>>2]|0;do{if((b|0)==(c[a>>2]|0)){a=b}else{if((h|0)==0){j=b;while(1){a=c[j+8>>2]|0;if((j|0)==(c[a>>2]|0)){j=a}else{break}}}else{a=h;while(1){j=c[a+4>>2]|0;if((j|0)==0){break}else{a=j}}}e=c[e>>2]|0;if((c[a+16>>2]|0)<(e|0)){break}b=c[g>>2]|0;if((b|0)==0){c[d>>2]=g;k=g;i=f;return k|0}while(1){g=c[b+16>>2]|0;if((e|0)<(g|0)){g=c[b>>2]|0;if((g|0)==0){g=15;break}else{b=g;continue}}if((g|0)>=(e|0)){g=19;break}h=b+4|0;g=c[h>>2]|0;if((g|0)==0){g=18;break}else{b=g}}if((g|0)==15){c[d>>2]=b;k=b;i=f;return k|0}else if((g|0)==18){c[d>>2]=b;k=h;i=f;return k|0}else if((g|0)==19){c[d>>2]=b;k=d;i=f;return k|0}}}while(0);if((h|0)==0){c[d>>2]=b;k=b;i=f;return k|0}else{c[d>>2]=a;k=a+4|0;i=f;return k|0}return 0}function Yv(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0.0,r=0,s=0.0;e=i;f=i;i=i+8|0;g=f;k=i;i=i+16|0;l=k;o=i;i=i+16|0;m=o;n=i;i=i+8|0;j=b+28|0;p=c[j>>2]|0;if((c[p+484>>2]|0)==0){d=c[b+120>>2]|0;do{if((d|0)==0){d=-1}else{d=c[d+4>>2]|0;if((c[d+16>>2]|0)!=8){d=-1;break}d=c[d+24>>2]|0;d=jd[c[(c[d>>2]|0)+48>>2]&511](d)|0}}while(0);Qe(d,161136,n);i=e;return}n=b+48|0;if((a[n]&1)==0){n=p}else{r=c[b+8>>2]|0;hd[c[(c[r>>2]|0)+176>>2]&127](r,p);a[n]=0;n=c[j>>2]|0}p=c[d>>2]|0;if((p+ -1|0)>>>0>=2){c[o>>2]=p;c[m+4>>2]=1;c[m+8>>2]=2;Qe(0,162328,m);tc()}m=d+8|0;if((p|0)==1){q=+(c[m>>2]|0)}else{q=+h[m>>3]}h[n+552>>3]=q;m=c[j>>2]|0;n=c[d+16>>2]|0;if((n+ -1|0)>>>0>=2){c[k>>2]=n;c[l+4>>2]=1;c[l+8>>2]=2;Qe(0,162328,l);tc()}k=d+24|0;if((n|0)==1){q=+(c[k>>2]|0)}else{q=+h[k>>3]}h[m+544>>3]=q;k=c[j>>2]|0;s=+h[k+608>>3];l=k+616|0;q=+h[l>>3]- +h[k+568>>3];h[l>>3]=q;h[k+592>>3]=+h[k+528>>3]+(s*+h[k+496>>3]+q*+h[k+512>>3]);h[k+600>>3]=+h[k+536>>3]+(s*+h[k+504>>3]+q*+h[k+520>>3]);k=b+8|0;l=c[k>>2]|0;hd[c[(c[l>>2]|0)+196>>2]&127](l,c[j>>2]|0);l=c[k>>2]|0;hd[c[(c[l>>2]|0)+184>>2]&127](l,c[j>>2]|0);l=c[k>>2]|0;hd[c[(c[l>>2]|0)+204>>2]&127](l,c[j>>2]|0);l=c[k>>2]|0;hd[c[(c[l>>2]|0)+268>>2]&127](l,c[j>>2]|0);l=c[d+32>>2]|0;if((l|0)!=3){c[f>>2]=l;c[g+4>>2]=3;Qe(0,162256,g);tc()}Ox(b,c[d+40>>2]|0);r=c[k>>2]|0;hd[c[(c[r>>2]|0)+272>>2]&127](r,c[j>>2]|0);i=e;return}function Zv(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,j=0,k=0,l=0,m=0,n=0,o=0.0,p=0.0;e=i;g=i;i=i+8|0;j=g;k=i;i=i+8|0;f=b+28|0;l=c[f>>2]|0;if((c[l+484>>2]|0)==0){b=c[b+120>>2]|0;do{if((b|0)==0){b=-1}else{b=c[b+4>>2]|0;if((c[b+16>>2]|0)!=8){b=-1;break}b=c[b+24>>2]|0;b=jd[c[(c[b>>2]|0)+48>>2]&511](b)|0}}while(0);Qe(b,161112,k);i=e;return}m=b+48|0;k=b+8|0;if((a[m]&1)!=0){n=c[k>>2]|0;hd[c[(c[n>>2]|0)+176>>2]&127](n,l);a[m]=0;l=c[f>>2]|0}p=+h[l+608>>3];n=l+616|0;o=+h[n>>3]- +h[l+568>>3];h[n>>3]=o;h[l+592>>3]=+h[l+528>>3]+(p*+h[l+496>>3]+o*+h[l+512>>3]);h[l+600>>3]=+h[l+536>>3]+(p*+h[l+504>>3]+o*+h[l+520>>3]);l=c[k>>2]|0;hd[c[(c[l>>2]|0)+204>>2]&127](l,c[f>>2]|0);l=c[k>>2]|0;hd[c[(c[l>>2]|0)+268>>2]&127](l,c[f>>2]|0);l=c[d>>2]|0;if((l|0)!=3){c[g>>2]=l;c[j+4>>2]=3;Qe(0,162256,j);tc()}Ox(b,c[d+8>>2]|0);n=c[k>>2]|0;hd[c[(c[n>>2]|0)+272>>2]&127](n,c[f>>2]|0);i=e;return}function _v(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0;e=i;d=b+28|0;g=c[d>>2]|0;h=c[g+588>>2]|0;a:do{if((c[h+28>>2]|0)>0){h=c[b+116>>2]|0;b:do{if((h|0)!=0){if((a[h]&1)!=0){break a}while(1){h=c[h+4>>2]|0;if((h|0)==0){break b}if((a[h]&1)!=0){break a}}}}while(0);h=c[g+116>>2]|0;if((jd[c[(c[h>>2]|0)+12>>2]&511](h)|0)==10){Bx(b,0)}else{h=c[b+8>>2]|0;hd[c[(c[h>>2]|0)+216>>2]&127](h,c[d>>2]|0)}h=c[(c[d>>2]|0)+120>>2]|0;if((jd[c[(c[h>>2]|0)+12>>2]&511](h)|0)==10){Cx(b);break}else{h=c[b+8>>2]|0;hd[c[(c[h>>2]|0)+212>>2]&127](h,c[d>>2]|0);break}}else{if((a[h]&1)!=0){break}i=e;return}}while(0);g=c[d>>2]|0;h=c[g+588>>2]|0;do{if((c[h+28>>2]|0)>0){f=16}else{if((a[h]&1)!=0){f=16;break}b=b+52|0}}while(0);do{if((f|0)==16){f=b+52|0;if((c[f>>2]|0)==0){b=f;break}TB(g);b=c[b+8>>2]|0;g=c[b>>2]|0;if((c[f>>2]|0)==1){hd[c[g+256>>2]&127](b,c[d>>2]|0);b=f;break}else{hd[c[g+260>>2]&127](b,c[d>>2]|0);b=f;break}}}while(0);c[b>>2]=0;SB(c[d>>2]|0);i=e;return}function $v(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0;e=i;d=b+28|0;g=c[d>>2]|0;h=c[g+588>>2]|0;a:do{if((c[h+28>>2]|0)>0){h=c[b+116>>2]|0;b:do{if((h|0)!=0){if((a[h]&1)!=0){break a}while(1){h=c[h+4>>2]|0;if((h|0)==0){break b}if((a[h]&1)!=0){break a}}}}while(0);h=c[g+116>>2]|0;if((jd[c[(c[h>>2]|0)+12>>2]&511](h)|0)==10){Bx(b,1)}else{h=c[b+8>>2]|0;hd[c[(c[h>>2]|0)+220>>2]&127](h,c[d>>2]|0)}h=c[(c[d>>2]|0)+120>>2]|0;if((jd[c[(c[h>>2]|0)+12>>2]&511](h)|0)==10){Cx(b);break}else{h=c[b+8>>2]|0;hd[c[(c[h>>2]|0)+212>>2]&127](h,c[d>>2]|0);break}}else{if((a[h]&1)!=0){break}i=e;return}}while(0);g=c[d>>2]|0;h=c[g+588>>2]|0;do{if((c[h+28>>2]|0)>0){f=16}else{if((a[h]&1)!=0){f=16;break}b=b+52|0}}while(0);do{if((f|0)==16){f=b+52|0;if((c[f>>2]|0)==0){b=f;break}TB(g);b=c[b+8>>2]|0;g=c[b>>2]|0;if((c[f>>2]|0)==1){hd[c[g+256>>2]&127](b,c[d>>2]|0);b=f;break}else{hd[c[g+260>>2]&127](b,c[d>>2]|0);b=f;break}}}while(0);c[b>>2]=0;SB(c[d>>2]|0);i=e;return}function aw(b,d,e){b=b|0;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,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;j=i;i=i+8|0;k=j;g=i;i=i+8|0;h=g;m=i;i=i+8|0;p=m;o=i;i=i+8|0;n=o;D=i;i=i+8|0;s=i;i=i+8|0;q=s;w=i;i=i+8|0;t=w;A=i;i=i+8|0;z=A;C=i;i=i+8|0;B=C;F=i;i=i+8|0;E=F;v=i;i=i+16|0;y=v;x=FW(8)|0;u=x;c[u>>2]=0;c[u+4>>2]=0;a[x]=0;u=b+116|0;c[x+4>>2]=c[u>>2];c[u>>2]=x;x=c[(c[b+4>>2]|0)+160>>2]|0;l=c[d>>2]|0;if((l|0)!=4){c[F>>2]=l;c[E+4>>2]=4;Qe(0,162256,E);tc()}l=d+8|0;a:do{if(!((vc(c[l>>2]|0,161320,2)|0)!=0|(x|0)==0)){if((e|0)<=1){q=c[b+120>>2]|0;do{if((q|0)==0){q=-1}else{q=c[q+4>>2]|0;if((c[q+16>>2]|0)!=8){q=-1;break}q=c[q+24>>2]|0;q=jd[c[(c[q>>2]|0)+48>>2]&511](q)|0}}while(0);Qe(q,162112,D);break}D=d+16|0;E=c[D>>2]|0;do{if((E|0)!=4){F=c[b+120>>2]|0;do{if((F|0)==0){F=-1}else{F=c[F+4>>2]|0;if((c[F+16>>2]|0)!=8){F=-1;break}F=c[F+24>>2]|0;F=jd[c[(c[F>>2]|0)+48>>2]&511](F)|0;E=c[D>>2]|0}}while(0);c[C>>2]=E;Qe(F,162072,B);B=c[D>>2]|0;if((B|0)==4){break}c[A>>2]=B;c[z+4>>2]=4;Qe(0,162256,z);tc()}}while(0);z=c[d+24>>2]|0;c[v>>2]=13;A=y+8|0;c[A>>2]=0;c[A+4>>2]=0;A=c[b+20>>2]|0;b:do{if((A|0)!=0){while(1){if((c[A+96>>2]|0)==7){if((c[(Zu(c[A+104>>2]|0,z,y)|0)>>2]|0)!=5){break}Of(y)}A=c[A+112>>2]|0;if((A|0)==0){break b}}if((c[v>>2]|0)!=9){break a}F=GF(x,y)|0;a[c[u>>2]|0]=F&1^1;break a}}while(0);c[w>>2]=z;Qe(-1,159320,t);t=c[b+120>>2]|0;do{if((t|0)==0){t=-1}else{t=c[t+4>>2]|0;if((c[t+16>>2]|0)!=8){t=-1;break}t=c[t+24>>2]|0;t=jd[c[(c[t>>2]|0)+48>>2]&511](t)|0}}while(0);c[s>>2]=z;Qe(t,162096,q)}}while(0);if((a[b+13|0]&1)!=0){q=c[d>>2]|0;if((q|0)!=4){c[o>>2]=q;c[n+4>>2]=4;Qe(0,162256,n);tc()}c[m>>2]=c[l>>2];Kb(162160,p|0)|0;if((e|0)==2){m=c[r>>2]|0;Qf(d+16|0,m)}else{m=c[r>>2]|0}Hb(10)|0;Fc(m|0)|0}if((e|0)==1){g=c[b+8>>2]|0;d=c[d>>2]|0;if((d|0)!=4){c[j>>2]=d;c[k+4>>2]=4;Qe(0,162256,k);tc()}Gd[c[(c[g>>2]|0)+332>>2]&255](g,c[l>>2]|0,0);i=f;return}else if((e|0)==2){if((c[d+16>>2]|0)!=7){i=f;return}j=c[b+8>>2]|0;k=c[d>>2]|0;if((k|0)!=4){c[g>>2]=k;c[h+4>>2]=4;Qe(0,162256,h);tc()}Gd[c[(c[j>>2]|0)+332>>2]&255](j,c[l>>2]|0,c[d+24>>2]|0);i=f;return}else{i=f;return}}function bw(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;b=i;d=Sx(a)|0;if((d|0)==0){i=b;return}Qx(a,0,d,1);e=jd[c[(c[d>>2]|0)+68>>2]&511](d)|0;e=jd[c[(c[e>>2]|0)+20>>2]&511](e)|0;a=jd[c[(c[d>>2]|0)+68>>2]&511](d)|0;a=jd[c[(c[a>>2]|0)+20>>2]&511](a)|0;while(1){if((e|0)==69){if((a|0)==73|(a|0)==-1){break}}else{if((a|0)==-1){break}}f=jd[c[(c[d>>2]|0)+68>>2]&511](d)|0;e=a;a=jd[c[(c[f>>2]|0)+20>>2]&511](f)|0}fdfd[c[(c[Wa>>2]|0)+4>>2]&511](Wa)}c[xa>>2]=0}}while(0);Of(oa);Wa=c[m>>2]|0;if((Wa|0)!=7){c[Va>>2]=Wa;c[Ua+4>>2]=7;Qe(0,162256,Ua);tc()}Ua=(c[(Yu(c[j>>2]|0,160080,oa,0)|0)>>2]|0)==6;c:do{if(Ua){bX(ta|0,0,128)|0;Va=c[Pa>>2]|0;if((Va|0)!=6){_b=Va;$b=Sa;c[$b>>2]=_b;$b=Ta+4|0;c[$b>>2]=6;$b=162256;Qe(0,$b,Ta);tc()}Va=0;while(1){Wa=c[Oa>>2]|0;if(!((Va|0)<(c[Wa+12>>2]|0)&(Va|0)<32)){break c}ut(Wa,Va,pa)|0;Wa=c[Da>>2]|0;if((Wa+ -1|0)>>>0<2){if((Wa|0)==1){ac=+(c[Aa>>2]|0)}else{ac=+h[Aa>>3]}c[ya+(Va<<2)>>2]=~~(ac*65536.0)}Of(pa);Wa=c[Pa>>2]|0;if((Wa|0)==6){Va=Va+1|0}else{break}}$b=Sa;c[$b>>2]=Wa;$b=Ta+4|0;c[$b>>2]=6;$b=162256;Qe(0,$b,Ta);tc()}}while(0);Of(oa);Sa=c[m>>2]|0;if((Sa|0)!=7){c[Qa>>2]=Sa;c[Ra+4>>2]=7;Qe(0,162256,Ra);tc()}if((c[(Yu(c[j>>2]|0,160088,oa,0)|0)>>2]|0)==8){Ja=c[Pa>>2]|0;if((Ja|0)!=8){c[Na>>2]=Ja;c[Ma+4>>2]=8;Qe(0,162256,Ma);tc()}$b=c[Oa>>2]|0;do{if((c[(Yu(jd[c[(c[$b>>2]|0)+72>>2]&511]($b)|0,160096,pa,0)|0)>>2]|0)==7){Ga=c[Da>>2]|0;if((Ga|0)!=7){c[La>>2]=Ga;c[Ka+4>>2]=7;Qe(0,162256,Ka);tc()}if((c[(Yu(c[Aa>>2]|0,160104,ua,0)|0)>>2]|0)==5){Ga=0}else{Ga=Jy(ua,b)|0}Of(ua);Ja=c[Da>>2]|0;if((Ja|0)!=7){c[Ia>>2]=Ja;c[Ha+4>>2]=7;Qe(0,162256,Ha);tc()}do{if((c[(Yu(c[Aa>>2]|0,160112,ua,0)|0)>>2]|0)==0){Ha=c[za>>2]|0;if((Ha|0)==0){ra=(a[va]&1)!=0;break}else{c[Ea>>2]=Ha;c[Fa+4>>2]=0;Qe(0,162256,Fa);tc()}}else{ra=0}}while(0);Of(ua);Da=c[Da>>2]|0;if((Da|0)!=7){c[Ba>>2]=Da;c[Ca+4>>2]=7;Qe(0,162256,Ca);tc()}do{if((c[(Yu(c[Aa>>2]|0,160120,ua,0)|0)>>2]|0)==0){za=c[za>>2]|0;if((za|0)==0){qa=(a[va]&1)!=0;break}else{c[wa>>2]=za;c[sa+4>>2]=0;Qe(0,162256,sa);tc()}}else{qa=0}}while(0);Of(ua);do{if(!Ua){if((Ga|0)==0){bX(ta|0,0,128)|0;break}else{hd[c[(c[Ga>>2]|0)+48>>2]&127](Ga,ya);break}}}while(0);zx(b,oa,Ya,Ga,ra,qa,c[xa>>2]|0,ya);qa=c[xa>>2]|0;if((qa|0)==0){break}fdcase 5:case 4:{Ix(b,m);break};default:{}}}while(0);if(n){u=c[d>>2]|0;hd[c[(c[u>>2]|0)+408>>2]&127](u,1)}u=c[b+36>>2]|0;do{if((c[k>>2]|0)>(c[u+(((c[b+40>>2]|0)-u>>2)+ -1<<2)>>2]|0)){n=c[l>>2]|0;if((c[n+656>>2]|0)==0){f=25;break}u=YB(n)|0;c[l>>2]=u;s=c[d>>2]|0;hd[c[(c[s>>2]|0)+84>>2]&127](s,u);c[k>>2]=(c[k>>2]|0)+ -1}else{f=25}}while(0);if((f|0)==25){Qe(-1,162208,g);a[b+18|0]=1}GB(c[l>>2]|0,j);fd[c[(c[m>>2]|0)+4>>2]&511](m);i=e;return}function jx(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,j=0,k=0.0,l=0,m=0,n=0.0,o=0,p=0,q=0.0,r=0,s=0,t=0,u=0.0,v=0,w=0.0,x=0.0;e=i;g=i;i=i+16|0;j=g;p=i;i=i+16|0;o=p;r=i;i=i+16|0;s=r;v=i;i=i+16|0;t=v;l=i;i=i+8|0;m=c[b+28>>2]|0;f=c[m+588>>2]|0;do{if((c[f+28>>2]|0)<=0){if((a[f]&1)!=0){break}f=c[b+120>>2]|0;do{if((f|0)==0){f=-1}else{f=c[f+4>>2]|0;if((c[f+16>>2]|0)!=8){f=-1;break}f=c[f+24>>2]|0;f=jd[c[(c[f>>2]|0)+48>>2]&511](f)|0}}while(0);Qe(f,160808,l);i=e;return}}while(0);l=m+592|0;k=+h[l>>3];m=m+600|0;n=+h[m>>3];b=c[d>>2]|0;if((b+ -1|0)>>>0>=2){c[v>>2]=b;c[t+4>>2]=1;c[t+8>>2]=2;Qe(0,162328,t);tc()}t=d+8|0;if((b|0)==1){q=+(c[t>>2]|0)}else{q=+h[t>>3]}t=c[d+16>>2]|0;if((t+ -1|0)>>>0>=2){c[r>>2]=t;c[s+4>>2]=1;c[s+8>>2]=2;Qe(0,162328,s);tc()}r=d+24|0;if((t|0)==1){u=+(c[r>>2]|0)}else{u=+h[r>>3]}r=c[d+32>>2]|0;if((r+ -1|0)>>>0>=2){c[p>>2]=r;c[o+4>>2]=1;c[o+8>>2]=2;Qe(0,162328,o);tc()}o=d+40|0;if((r|0)==1){w=+(c[o>>2]|0)}else{w=+h[o>>3]}o=c[d+48>>2]|0;if((o+ -1|0)>>>0>=2){c[g>>2]=o;c[j+4>>2]=1;c[j+8>>2]=2;Qe(0,162328,j);tc()}d=d+56|0;if((o|0)==1){x=+(c[d>>2]|0)}else{x=+h[d>>3]}h[l>>3]=w;h[m>>3]=x;wB(f,k,n,q,u,w,x);i=e;return}function kx(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,j=0,k=0,l=0.0;e=i;j=i;i=i+16|0;k=j;d=a+28|0;f=c[d>>2]|0;g=c[b>>2]|0;if((g+ -1|0)>>>0>=2){c[j>>2]=g;c[k+4>>2]=1;c[k+8>>2]=2;Qe(0,162328,k);tc()}b=b+8|0;if((g|0)==1){l=+(c[b>>2]|0)}else{l=+h[b>>3]}h[f+432>>3]=l;k=c[a+8>>2]|0;hd[c[(c[k>>2]|0)+116>>2]&127](k,c[d>>2]|0);i=e;return}function lx(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,j=0,k=0,l=0,m=0,n=0.0,o=0,p=0,q=0,r=0.0,s=0,t=0,u=0.0,v=0.0;e=i;j=i;i=i+16|0;k=j;l=i;i=i+16|0;m=l;o=i;i=i+16|0;p=o;s=i;i=i+16|0;t=s;q=i;i=i+8|0;f=c[b+28>>2]|0;g=c[f+588>>2]|0;do{if((c[g+28>>2]|0)<=0){if((a[g]&1)!=0){break}f=c[b+120>>2]|0;do{if((f|0)==0){f=-1}else{f=c[f+4>>2]|0;if((c[f+16>>2]|0)!=8){f=-1;break}f=c[f+24>>2]|0;f=jd[c[(c[f>>2]|0)+48>>2]&511](f)|0}}while(0);Qe(f,160840,q);i=e;return}}while(0);q=c[d>>2]|0;if((q+ -1|0)>>>0>=2){c[s>>2]=q;c[t+4>>2]=1;c[t+8>>2]=2;Qe(0,162328,t);tc()}s=d+8|0;if((q|0)==1){n=+(c[s>>2]|0)}else{n=+h[s>>3]}q=c[d+16>>2]|0;if((q+ -1|0)>>>0>=2){c[o>>2]=q;c[p+4>>2]=1;c[p+8>>2]=2;Qe(0,162328,p);tc()}o=d+24|0;if((q|0)==1){r=+(c[o>>2]|0)}else{r=+h[o>>3]}o=c[d+32>>2]|0;if((o+ -1|0)>>>0>=2){c[l>>2]=o;c[m+4>>2]=1;c[m+8>>2]=2;Qe(0,162328,m);tc()}l=d+40|0;if((o|0)==1){u=+(c[l>>2]|0)}else{u=+h[l>>3]}l=c[d+48>>2]|0;if((l+ -1|0)>>>0>=2){c[j>>2]=l;c[k+4>>2]=1;c[k+8>>2]=2;Qe(0,162328,k);tc()}d=d+56|0;if((l|0)==1){v=+(c[d>>2]|0)}else{v=+h[d>>3]}h[f+592>>3]=u;h[f+600>>3]=v;wB(g,n,r,u,v,u,v);i=e;return}function mx(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,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;t=i;m=i;i=i+8|0;l=m;v=i;i=i+16|0;j=v;w=i;i=i+16|0;u=w;r=i;i=i+8|0;p=r;f=a+8|0;c[f>>2]=13;F=a+16|0;c[F>>2]=0;D=F+4|0;c[D>>2]=0;q=a+24|0;c[q>>2]=13;x=a+32|0;c[x>>2]=0;y=x+4|0;c[y>>2]=0;n=a+40|0;c[n>>2]=13;z=a+48|0;c[z>>2]=0;A=z+4|0;c[A>>2]=0;k=a+56|0;c[k>>2]=13;B=a+64|0;c[B>>2]=0;C=B+4|0;c[C>>2]=0;h=a+72|0;c[h>>2]=13;E=a+80|0;c[E>>2]=0;G=E+4|0;c[G>>2]=0;rG(a+88|0,2,b);g=a+96|0;c[g>>2]=13;H=a+104|0;c[H>>2]=0;I=H+4|0;c[I>>2]=0;c[v>>2]=13;s=j+8|0;c[s>>2]=0;c[s+4>>2]=0;c[w>>2]=13;o=u+8|0;c[o>>2]=0;c[o+4>>2]=0;c[a>>2]=0;if((d|0)==0){c[F>>2]=0;c[D>>2]=0;c[f>>2]=5;c[x>>2]=0;c[y>>2]=0;c[q>>2]=5;c[z>>2]=0;c[A>>2]=0;c[n>>2]=5;c[B>>2]=0;c[C>>2]=0;c[k>>2]=5;c[E>>2]=0;c[G>>2]=0;c[h>>2]=5;c[H>>2]=0;c[I>>2]=0;c[g>>2]=5;I=a+112|0;c[I>>2]=e;i=t;return}Zu(d,159192,j)|0;x=c[v>>2]|0;if((x|0)==9){Nf(j,b,u,0)|0;do{if((c[w>>2]|0)==7){v=c[v>>2]|0;if((v|0)==9){G=s;H=c[G+4>>2]|0;I=r;c[I>>2]=c[G>>2];c[I+4>>2]=H;I=FW(8)|0;uy(I,b,p,c[o>>2]|0);c[a>>2]=I;break}else{c[m>>2]=v;c[l+4>>2]=9;Qe(0,162256,l);tc()}}}while(0);Of(u)}else if((x|0)==7){I=FW(8)|0;uy(I,b,0,c[s>>2]|0);c[a>>2]=I}Of(j);Yu(d,159200,f,0)|0;Yu(d,159208,q,0)|0;Yu(d,159224,n,0)|0;Yu(d,159232,k,0)|0;Yu(d,159240,h,0)|0;Yu(d,159256,g,0)|0;I=a+112|0;c[I>>2]=e;i=t;return}function nx(a){a=a|0;var b=0,d=0;b=i;d=c[a>>2]|0;if((d|0)!=0){vy(d);HW(d)}Of(a+8|0);Of(a+24|0);Of(a+40|0);Of(a+56|0);Of(a+72|0);Of(a+96|0);sG(a+88|0);i=b;return}function ox(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0;f=i;g=i;i=i+8|0;h=g;j=i;i=i+16|0;e=j;c[j>>2]=13;j=e+8|0;c[j>>2]=0;c[j+4>>2]=0;a:do{if((a|0)!=0){while(1){if((c[a+40>>2]|0)==7){if((c[(Yu(c[a+48>>2]|0,b,e,0)|0)>>2]|0)!=5){break}Of(e)}a=c[a+112>>2]|0;if((a|0)==0){break a}}j=vA(e,d)|0;Of(e);i=f;return j|0}}while(0);c[g>>2]=b;Qe(-1,159352,h);j=0;i=f;return j|0}function px(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0;f=i;g=i;i=i+8|0;h=g;j=i;i=i+16|0;e=j;c[j>>2]=13;j=e+8|0;c[j>>2]=0;c[j+4>>2]=0;a:do{if((a|0)!=0){while(1){if((c[a+56>>2]|0)==7){if((c[(Yu(c[a+64>>2]|0,b,e,0)|0)>>2]|0)!=5){break}Of(e)}a=c[a+112>>2]|0;if((a|0)==0){break a}}j=BA(e,d)|0;Of(e);i=f;return j|0}}while(0);c[g>>2]=b;Qe(-1,159376,h);j=0;i=f;return j|0}function qx(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;e=i;h=i;i=i+8|0;j=h;g=i;i=i+8|0;f=g;a:do{if((a|0)!=0){k=a;while(1){if((c[k+72>>2]|0)==7){if((c[(Zu(c[k+80>>2]|0,b,d)|0)>>2]|0)!=5){break}Of(d)}k=c[k+112>>2]|0;if((k|0)==0){break a}}if((c[d>>2]|0)!=9){k=1;i=e;return k|0}b=d+8|0;k=c[b+4>>2]|0;c[g>>2]=c[b>>2];c[g+4>>2]=k;g=a+88|0;if((c[(uG(g,f,d)|0)>>2]|0)!=5){k=1;i=e;return k|0}Of(d);Mf(tG(g,f)|0,d)|0;k=1;i=e;return k|0}}while(0);c[h>>2]=b;Qe(-1,159400,j);k=0;i=e;return k|0}function rx(b,d,e,f,g,j,k,l,m,n,o,p,q){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;j=j|0;k=+k;l=+l;m=m|0;n=n|0;o=o|0;p=p|0;q=q|0;var r=0,s=0,t=0;r=i;c[b+36>>2]=0;s=b+40|0;c[s>>2]=0;t=b+44|0;c[t>>2]=0;c[b>>2]=d;c[b+4>>2]=j;a[b+12|0]=0;a[b+13|0]=(uf(c[834]|0)|0)&1;a[b+14|0]=(vf(c[834]|0)|0)&1;a[b+15|0]=0;a[b+16|0]=0;a[b+17|0]=0;c[b+116>>2]=0;c[b+120>>2]=0;d=FW(120)|0;mx(d,c[b>>2]|0,g,0);c[b+20>>2]=d;g=b+8|0;c[g>>2]=e;d=FW(664)|0;DB(d,k,l,m,o,jd[c[(c[e>>2]|0)+8>>2]&511](e)|0);m=b+28|0;c[m>>2]=d;o=b+32|0;c[o>>2]=1;e=c[s>>2]|0;if((e|0)==(c[t>>2]|0)){eu(b+36|0,o)}else{if((e|0)==0){e=0}else{c[e>>2]=1;e=c[s>>2]|0}c[s>>2]=e+4}a[b+48|0]=0;c[b+52>>2]=0;c[b+56>>2]=0;s=c[g>>2]|0;Gd[c[(c[s>>2]|0)+60>>2]&255](s,f,c[m>>2]|0);s=c[g>>2]|0;hd[c[(c[s>>2]|0)+52>>2]&127](s,(c[m>>2]|0)+16|0);s=c[g>>2]|0;hd[c[(c[s>>2]|0)+88>>2]&127](s,c[m>>2]|0);s=c[m>>2]|0;h[b+64>>3]=+h[s+16>>3];h[b+72>>3]=+h[s+24>>3];h[b+80>>3]=+h[s+32>>3];h[b+88>>3]=+h[s+40>>3];h[b+96>>3]=+h[s+48>>3];h[b+104>>3]=+h[s+56>>3];c[b+112>>2]=0;c[b+124>>2]=p;c[b+128>>2]=q;if((n|0)==0){i=r;return}l=+h[n>>3];d=n+8|0;k=+h[d>>3];j=c[s+588>>2]|0;h[s+592>>3]=l;h[s+600>>3]=k;uB(j,l,k);j=c[m>>2]|0;t=n+16|0;k=+h[t>>3];l=+h[d>>3];d=c[j+588>>2]|0;h[j+592>>3]=k;h[j+600>>3]=l;vB(d,k,l);d=c[m>>2]|0;l=+h[t>>3];t=n+24|0;k=+h[t>>3];j=c[d+588>>2]|0;h[d+592>>3]=l;h[d+600>>3]=k;vB(j,l,k);j=c[m>>2]|0;k=+h[n>>3];l=+h[t>>3];t=c[j+588>>2]|0;h[j+592>>3]=k;h[j+600>>3]=l;vB(t,k,l);t=c[m>>2]|0;j=t+588|0;xB(c[j>>2]|0);j=c[j>>2]|0;d=j+28|0;j=j+24|0;o=c[(c[j>>2]|0)+((c[d>>2]|0)+ -1<<2)>>2]|0;h[t+592>>3]=+h[(c[o>>2]|0)+((c[o+12>>2]|0)+ -1<<3)>>3];d=c[(c[j>>2]|0)+((c[d>>2]|0)+ -1<<2)>>2]|0;h[t+600>>3]=+h[(c[d+4>>2]|0)+((c[d+12>>2]|0)+ -1<<3)>>3];TB(c[m>>2]|0);t=c[g>>2]|0;hd[c[(c[t>>2]|0)+256>>2]&127](t,c[m>>2]|0);SB(c[m>>2]|0);i=r;return}function sx(b){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;e=i;h=i;i=i+8|0;j=i;i=i+8|0;d=b+40|0;p=c[d>>2]|0;f=b+36|0;n=c[f>>2]|0;g=b+28|0;if((p|0)!=(n|0)){m=b+32|0;l=b+8|0;o=c[m>>2]|0;do{a:do{if((o|0)>(c[n+((p-n>>2)+ -1<<2)>>2]|0)){do{q=c[g>>2]|0;if((c[q+656>>2]|0)==0){break a}o=YB(q)|0;c[g>>2]=o;p=c[l>>2]|0;hd[c[(c[p>>2]|0)+84>>2]&127](p,o);o=(c[m>>2]|0)+ -1|0;c[m>>2]=o;p=c[d>>2]|0;n=c[f>>2]|0;}while((o|0)>(c[n+((p-n>>2)+ -1<<2)>>2]|0))}}while(0);p=p+ -4|0;c[d>>2]=p;}while((p|0)!=(n|0))}if((c[(c[g>>2]|0)+656>>2]|0)!=0){m=b+32|0;l=b+8|0;n=b+18|0;do{Qe(-1,159432,j);q=c[f>>2]|0;do{if((c[m>>2]|0)>(c[q+(((c[d>>2]|0)-q>>2)+ -1<<2)>>2]|0)){o=c[g>>2]|0;if((c[o+656>>2]|0)==0){k=11;break}q=YB(o)|0;c[g>>2]=q;p=c[l>>2]|0;hd[c[(c[p>>2]|0)+84>>2]&127](p,q);c[m>>2]=(c[m>>2]|0)+ -1}else{k=11}}while(0);if((k|0)==11){k=0;Qe(-1,162208,h);a[n]=1}}while((c[(c[g>>2]|0)+656>>2]|0)!=0)}if((a[b+12|0]&1)==0){q=c[b+8>>2]|0;fd
7321 function $K(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;do{if((d|b|e|0)<0){a=6}else{if((e|0)==0|(b|0)==0){if((f|0)==0){f=0;a=0;break}hd[c[a+8>>2]&127](a,f);f=0;a=0;break}if((2147483647/(b|0)|0|0)<(e|0)){a=10;break}if((d|0)!=0){d=da(d,b)|0;b=da(e,b)|0;b=pd[c[a+12>>2]&63](a,d,b,f)|0;a=(b|0)==0;f=a?f:b;a=a?64:0;break}b=da(e,b)|0;if((b|0)<=0){f=0;a=b>>31&6;break}f=Bd[c[a+4>>2]&255](a,b)|0;e=(f|0)==0;a=e?64:0;if(e){f=0;break}bX(f|0,0,b|0)|0}}while(0);c[g>>2]=a;i=h;return f|0}function aL(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0;g=i;e=(b|0)==0;do{if(e){j=0;f=4}else{h=(ZW(b|0)|0)+1|0;if((h|0)<=0){j=h;f=4;break}j=Bd[c[a+4>>2]&255](a,h)|0;a=j;j=(j|0)==0?64:0}}while(0);if((f|0)==4){h=j;a=0;j=j>>31&6}if((j|0)!=0|e){h=d;c[h>>2]=j;i=g;return a|0}$W(a|0,b|0,h|0)|0;h=d;c[h>>2]=j;i=g;return a|0}function bL(b,c,d){b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;e=i;a:do{if(d>>>0>1){while(1){g=a[c]|0;if(g<<24>>24==0){break a}c=c+1|0;f=b+1|0;a[b]=g;d=d+ -1|0;if(d>>>0>1){b=f}else{b=f;break}}}}while(0);a[b]=0;i=e;return(a[c]|0)!=0|0}function cL(a){a=a|0;var b=0,c=0;b=i;while(1){c=a+ -1&a;if((c|0)==0){break}else{a=c}}i=b;return a|0}function dL(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;a=i;c[e>>2]=0;if((b|0)==0){d=81;i=a;return d|0}d=nL(b,333319,f)|0;i=a;return d|0}function eL(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;a=i;c[e>>2]=0;if((b|0)==0){d=81;i=a;return d|0}d=nL(b,333312,f)|0;i=a;return d|0}function fL(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,k=0;g=i;k=i;i=i+32|0;j=k;h=i;i=i+8|0;b=c[a>>2]|0;d=mL(b,d,206480)|0;if((d|0)==0){k=64;i=g;return k|0}c[k>>2]=4;c[j+12>>2]=d;a=xJ(a,j,h)|0;do{if((a|0)==0){a=c[h>>2]|0;if((a|0)==0){f=81;break}f=nL(a,333319,f)|0;h=c[a+28>>2]|0;j=c[a+24>>2]|0;if((j|0)!=0){fd[j&511](a)}hd[c[h+8>>2]&127](h,a);if((f|0)!=0){break}c[e>>2]=d;k=0;i=g;return k|0}else{f=a}}while(0);hd[c[b+8>>2]&127](b,d);k=f;i=g;return k|0}function gL(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,k=0;g=i;b=ZW(d|0)|0;h=b+18|0;a=c[a>>2]|0;do{if((h|0)>0){j=Bd[c[a+4>>2]&255](a,h)|0;k=(j|0)==0;a=k?64:0;if(k){j=0;break}bX(j|0,0,h|0)|0}else{j=0;a=h>>31&6}}while(0);if((a|0)!=0){k=a;i=g;return k|0}$W(j|0,d|0,b|0)|0;$W(j+b|0,206456,18)|0;c[e>>2]=j;c[f>>2]=0;k=0;i=g;return k|0}function hL(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,k=0;g=i;b=ZW(d|0)|0;h=b+6|0;a=c[a>>2]|0;do{if((h|0)>0){j=Bd[c[a+4>>2]&255](a,h)|0;k=(j|0)==0;a=k?64:0;if(k){j=0;break}bX(j|0,0,h|0)|0}else{j=0;a=h>>31&6}}while(0);if((a|0)!=0){k=a;i=g;return k|0}$W(j|0,d|0,b|0)|0;$W(j+b|0,206448,6)|0;c[e>>2]=j;c[f>>2]=0;k=0;i=g;return k|0}function iL(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;b=i;d=mL(c[a>>2]|0,d,206432)|0;if((d|0)==0){a=64;i=b;return a|0}c[e>>2]=d;c[f>>2]=0;a=0;i=b;return a|0}function jL(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;b=i;d=mL(c[a>>2]|0,d,206416)|0;if((d|0)==0){a=64;i=b;return a|0}c[e>>2]=d;c[f>>2]=0;a=0;i=b;return a|0}function kL(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,k=0;g=i;k=i;i=i+32|0;j=k;h=i;i=i+8|0;b=c[a>>2]|0;d=mL(b,d,206408)|0;if((d|0)==0){k=64;i=g;return k|0}c[k>>2]=4;c[j+12>>2]=d;a=xJ(a,j,h)|0;do{if((a|0)==0){a=c[h>>2]|0;if((a|0)==0){f=81;break}f=nL(a,333319,f)|0;h=c[a+28>>2]|0;j=c[a+24>>2]|0;if((j|0)!=0){fd[j&511](a)}hd[c[h+8>>2]&127](h,a);if((f|0)!=0){break}c[e>>2]=d;k=0;i=g;return k|0}else{f=a}}while(0);hd[c[b+8>>2]&127](b,d);k=f;i=g;return k|0}function lL(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,k=0;g=i;k=i;i=i+32|0;j=k;h=i;i=i+8|0;b=c[a>>2]|0;d=mL(b,d,206392)|0;if((d|0)==0){k=64;i=g;return k|0}c[k>>2]=4;c[j+12>>2]=d;a=xJ(a,j,h)|0;do{if((a|0)==0){a=c[h>>2]|0;if((a|0)==0){f=81;break}f=nL(a,333319,f)|0;h=c[a+28>>2]|0;j=c[a+24>>2]|0;if((j|0)!=0){fd[j&511](a)}hd[c[h+8>>2]&127](h,a);if((f|0)!=0){break}c[e>>2]=d;k=0;i=g;return k|0}else{f=a}}while(0);hd[c[b+8>>2]&127](b,d);k=f;i=g;return k|0}function mL(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0;f=i;g=ZW(d|0)|0;g=g+1+(ZW(e|0)|0)|0;do{if((g|0)>0){b=Bd[c[b+4>>2]&255](b,g)|0;j=(b|0)==0;h=j?64:0;if(j){b=0;break}bX(b|0,0,g|0)|0}else{b=0;h=g>>31&6}}while(0);if((h|0)!=0){j=0;i=f;return j|0}g=Sa(d|0,47)|0;if((g|0)==0){a[b]=0}else{j=g-d+1|0;hX(b|0,d|0,j|0)|0;a[b+j|0]=0;d=g+1|0}cX(b|0,e|0)|0;cX(b|0,d|0)|0;j=b;i=f;return j|0}function nL(a,b,e){a=a|0;b=b|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;f=i;m=i;i=i+8|0;h=i;i=i+8|0;g=a+8|0;o=c[g>>2]|0;k=a+4|0;if((o+3|0)>>>0>=(c[k>>2]|0)>>>0){q=85;i=f;return q|0}j=a+20|0;n=c[j>>2]|0;do{if((n|0)==0){n=(c[a>>2]|0)+o|0;if((n|0)==0){p=0}else{l=6}}else{if((pd[n&63](a,o,h,4)|0)==4){o=c[g>>2]|0;n=h;l=6;break}else{q=85;i=f;return q|0}}}while(0);if((l|0)==6){p=(d[n+1|0]|0)<<16|(d[n]|0)<<24|(d[n+2|0]|0)<<8|(d[n+3|0]|0)}n=o+4|0;c[g>>2]=n;if((p|0)!=(b|0)){q=2;i=f;return q|0}if((o+7|0)>>>0>=(c[k>>2]|0)>>>0){q=85;i=f;return q|0}b=c[j>>2]|0;do{if((b|0)==0){c[g>>2]=o+8;o=o+24|0;l=14}else{if((pd[b&63](a,n,h,4)|0)!=4){q=85;i=f;return q|0}n=c[g>>2]|0;o=c[j>>2]|0;c[g>>2]=n+4;b=n+20|0;if((o|0)==0){o=b;l=14;break}q=(pd[o&63](a,b,0,0)|0)==0;o=q?0:85}}while(0);if((l|0)==14){b=o;o=(c[k>>2]|0)>>>0<o>>>0?85:0}if((o|0)!=0){q=o;i=f;return q|0}c[g>>2]=b;if((n+21|0)>>>0>=(c[k>>2]|0)>>>0){q=85;i=f;return q|0}l=c[j>>2]|0;do{if((l|0)==0){m=(c[a>>2]|0)+b|0;if((m|0)!=0){break}c[g>>2]=n+22;q=2;i=f;return q|0}else{if((pd[l&63](a,b,m,2)|0)==2){b=c[g>>2]|0;break}else{q=85;i=f;return q|0}}}while(0);q=(d[m]|0)<<8&65535|(d[m+1|0]|0);p=b+2|0;c[g>>2]=p;m=q&65535;if(q<<16>>16==0){q=2;i=f;return q|0}b=1;a:while(1){if((p+3|0)>>>0>=(c[k>>2]|0)>>>0){o=85;l=49;break}l=c[j>>2]|0;do{if((l|0)==0){n=(c[a>>2]|0)+p|0;if((n|0)!=0){l=30;break}c[g>>2]=p+4;o=p+12|0;l=44}else{if((pd[l&63](a,p,h,4)|0)!=4){o=85;l=49;break a}p=c[g>>2]|0;n=h;l=30}}while(0);do{if((l|0)==30){l=0;q=(d[n+1|0]|0)<<16|(d[n]|0)<<24|(d[n+2|0]|0)<<8|(d[n+3|0]|0);n=p+4|0;c[g>>2]=n;if((q|0)!=2){l=c[j>>2]|0;n=p+12|0;if((l|0)==0){o=n;l=44;break}q=(pd[l&63](a,n,0,0)|0)==0;o=q?0:85;l=45;break}o=c[k>>2]|0;if((p+7|0)>>>0>=o>>>0){break}p=c[j>>2]|0;if((p|0)==0){p=(c[a>>2]|0)+n|0;if((p|0)==0){p=0}else{l=36}}else{if((pd[p&63](a,n,h,4)|0)!=4){break}o=c[k>>2]|0;n=c[g>>2]|0;p=h;l=36}if((l|0)==36){l=0;p=(d[p+1|0]|0)<<16|(d[p]|0)<<24|(d[p+2|0]|0)<<8|(d[p+3|0]|0)}q=n+4|0;c[g>>2]=q;if((n+7|0)>>>0>=o>>>0){break}n=c[j>>2]|0;if((n|0)==0){break a}if((pd[n&63](a,q,h,4)|0)==4){l=40;break a}}}while(0);if((l|0)==44){n=o;o=(c[k>>2]|0)>>>0<o>>>0?85:0;l=45}if((l|0)==45){if((o|0)!=0){l=49;break}c[g>>2]=n}if((b|0)>=(m|0)){o=2;l=49;break}p=c[g>>2]|0;b=b+1|0}if((l|0)==40){q=c[g>>2]|0}else if((l|0)==49){i=f;return o|0}c[g>>2]=q+4;c[e>>2]=p;q=0;i=f;return q|0}function oL(b,e,f,g){b=b|0;e=e|0;f=f|0;g=g|0;var h=0,j=0,k=0,l=0,m=0,n=0;h=i;k=i;i=i+128|0;j=k;if((e|0)==0){n=85;i=h;return n|0}l=e+20|0;m=c[l>>2]|0;do{if((m|0)!=0){m=(pd[m&63](e,0,0,0)|0)==0;if(m){break}else{g=m?0:85}i=h;return g|0}}while(0);m=e+8|0;c[m>>2]=0;n=c[e+4>>2]|0;if((n|0)==0){n=85;i=h;return n|0}l=c[l>>2]|0;if((l|0)==0){l=n>>>0>128?128:n;$W(k|0,c[e>>2]|0,l|0)|0}else{l=pd[l&63](e,0,j,128)|0}c[m>>2]=l;if(l>>>0<=127){n=85;i=h;return n|0}if((a[k]|0)!=0){n=2;i=h;return n|0}if((a[j+74|0]|0)!=0){n=2;i=h;return n|0}if((a[j+82|0]|0)!=0){n=2;i=h;return n|0}k=a[j+1|0]|0;if(k<<24>>24==0|(k&255)>33){n=2;i=h;return n|0}if((a[j+63|0]|0)!=0){n=2;i=h;return n|0}if((a[j+((k&255)+2)|0]|0)!=0){n=2;i=h;return n|0}n=pL(b,e,(d[j+84|0]<<16|d[j+83|0]<<24|d[j+85|0]<<8|d[j+86|0])+255&-128,f,g)|0;i=h;return n|0}function pL(b,e,f,g,h){b=b|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,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;k=i;p=i;i=i+8|0;n=i;i=i+8|0;t=i;i=i+8|0;s=i;i=i+8|0;l=i;i=i+8|0;o=l;q=i;i=i+8|0;r=q;j=c[b>>2]|0;f=BK(0,e,f,t,s)|0;if((f|0)!=0){F=f;i=k;return F|0}t=c[t>>2]|0;s=c[s>>2]|0;if((FK(b,e,t,s,1347375956,o,r)|0)!=0){o=FK(b,e,t,s,1936092788,o,r)|0;if((o|0)!=0){F=o;i=k;return F|0}o=c[q>>2]|0;p=(g|0)%(o|0)|0;s=c[b>>2]|0;f=(p|0)==-1?0:p;p=c[l>>2]|0;a:do{if((f|0)<(o|0)){t=c[p+(f<<2)>>2]|0;r=e+20|0;q=c[r>>2]|0;if((q|0)==0){q=(c[e+4>>2]|0)>>>0<t>>>0?85:0}else{F=(pd[q&63](e,t,0,0)|0)==0;q=F?0:85}if((q|0)!=0){m=q;break}q=e+8|0;c[q>>2]=t;g=e+4|0;if((t+3|0)>>>0>=(c[g>>2]|0)>>>0){m=85;break}u=c[r>>2]|0;do{if((u|0)==0){n=(c[e>>2]|0)+t|0;if((n|0)!=0){u=t;m=77;break}c[q>>2]=t+4;n=0}else{if((pd[u&63](e,t,n,4)|0)!=4){m=85;break a}u=c[q>>2]|0;m=77}}while(0);if((m|0)==77){n=(d[n+1|0]|0)<<16|(d[n]|0)<<24|(d[n+2|0]|0)<<8|(d[n+3|0]|0);c[q>>2]=u+4;if((n|0)==-1){m=1;break}}m=QJ(b,e,f,h)|0;if((m|0)==0){m=0;break}t=t+4|0;f=c[r>>2]|0;if((f|0)==0){f=(c[g>>2]|0)>>>0<t>>>0?85:0}else{F=(pd[f&63](e,t,0,0)|0)==0;f=F?0:85}if((f|0)!=0){break}c[q>>2]=t;do{if((n|0)>0){m=Bd[c[s+4>>2]&255](s,n)|0;t=(m|0)==0;s=t?64:0;if(t){m=0;break}bX(m|0,0,n|0)|0}else{m=0;s=n>>31&6}}while(0);if((s|0)!=0){m=s;break}s=c[q>>2]|0;g=c[g>>2]|0;if(g>>>0<=s>>>0){m=85;break}r=c[r>>2]|0;if((r|0)==0){r=g-s|0;F=r>>>0>n>>>0?n:r;$W(m|0,(c[e>>2]|0)+s|0,F|0)|0;e=F}else{e=pd[r&63](e,s,m,n)|0}c[q>>2]=e+s;if(e>>>0<n>>>0){m=85;break}if((n|0)>4){F=(iX(m|0,206488,4)|0)!=0;e=F?206240:206496}else{e=206240}m=qL(b,m,n,0,e,h)|0}else{m=1}}while(0);if((p|0)!=0){hd[c[j+8>>2]&127](j,p)}c[l>>2]=0;if((m|0)!=0){F=m;i=k;return F|0}c[c[h>>2]>>2]=o;F=0;i=k;return F|0}o=c[l>>2]|0;r=c[q>>2]|0;q=c[b>>2]|0;b:do{if((g|0)==0|(g|0)==-1){f=(r|0)>0;do{if(f){v=e+20|0;g=e+4|0;u=e+8|0;s=0;t=0;do{w=c[o+(s<<2)>>2]|0;x=c[v>>2]|0;if((x|0)==0){C=(c[g>>2]|0)>>>0<w>>>0?85:0}else{F=(pd[x&63](e,w,0,0)|0)==0;C=F?0:85}if((C|0)!=0){break b}c[u>>2]=w;if((w+3|0)>>>0>=(c[g>>2]|0)>>>0){C=85;break b}x=c[v>>2]|0;if((x|0)==0){x=(c[e>>2]|0)+w|0;if((x|0)==0){x=6}else{m=15}}else{if((pd[x&63](e,w,n,4)|0)!=4){C=85;break b}w=c[u>>2]|0;x=n;m=15}if((m|0)==15){m=0;x=((d[x+1|0]|0)<<16|(d[x]|0)<<24|(d[x+2|0]|0)<<8|(d[x+3|0]|0))+6|0}c[u>>2]=w+4;t=x+t|0;s=s+1|0;}while((s|0)<(r|0));u=t+2|0;if((u|0)>0){g=u;m=19;break}g=u;s=0;C=u>>31&6}else{g=2;t=0;m=19}}while(0);do{if((m|0)==19){s=Bd[c[q+4>>2]&255](q,g)|0;u=(s|0)==0;C=u?64:0;if(u){s=0;break}bX(s|0,0,g|0)|0}}while(0);if((C|0)!=0){break}a[s]=-128;a[s+1|0]=1;F=s+2|0;a[F]=0;a[F+1|0]=0;a[F+2|0]=0;a[F+3|0]=0;c:do{if(f){v=e+20|0;f=e+4|0;u=e+8|0;w=0;z=0;y=2;x=6;A=1;do{B=c[o+(w<<2)>>2]|0;C=c[v>>2]|0;if((C|0)==0){C=(c[f>>2]|0)>>>0<B>>>0?85:0}else{F=(pd[C&63](e,B,0,0)|0)==0;C=F?0:85}if((C|0)!=0){break c}c[u>>2]=B;D=c[f>>2]|0;if((B+3|0)>>>0>=D>>>0){C=85;break b}C=c[v>>2]|0;if((C|0)==0){C=(c[e>>2]|0)+B|0;if((C|0)==0){C=B;B=0}else{E=C;m=33}}else{if((pd[C&63](e,B,n,4)|0)!=4){C=85;break b}D=c[f>>2]|0;B=c[u>>2]|0;E=n;m=33}if((m|0)==33){m=0;C=B;B=(d[E+1|0]|0)<<16|(d[E]|0)<<24|(d[E+2|0]|0)<<8|(d[E+3|0]|0)}E=C+4|0;c[u>>2]=E;if((C+5|0)>>>0>=D>>>0){C=85;break b}D=c[v>>2]|0;do{if((D|0)==0){D=(c[e>>2]|0)+E|0;if((D|0)!=0){m=40;break}c[u>>2]=C+6}else{if((pd[D&63](e,E,p,2)|0)!=2){C=85;break b}E=c[u>>2]|0;D=p;m=40}}while(0);do{if((m|0)==40){m=0;C=((d[D]|0)<<8&65535)>>>8;c[u>>2]=E+2;if((C|0)==0){break}B=(B|0)>2?B+ -2|0:0;if((C|0)==(A|0)){z=B+z|0;D=x}else{E=y+3|0;if((E|0)>(g|0)){C=0;break c}F=z&255;a[s+y|0]=F;A=z>>>8&255;a[s+(y+1)|0]=A;D=z>>>16&255;a[s+(y+2)|0]=D;z=z>>>24&255;a[s+E|0]=z;if((C|0)==5){e=z;m=56;break c}y=x+4|0;if((y|0)>(t|0)){C=0;break c}a[s+x|0]=-128;D=x+2|0;a[s+(x+1)|0]=C;a[s+D|0]=0;a[s+(x+3)|0]=0;a[s+y|0]=0;a[s+(x+5)|0]=0;z=B;y=D;D=x+6|0;A=C}if((D|0)>(t|0)){C=1;break c}x=D+B|0;if((x|0)>(t|0)){C=1;break c}D=s+D|0;C=c[u>>2]|0;E=c[f>>2]|0;if(E>>>0<=C>>>0){C=85;break c}F=c[v>>2]|0;if((F|0)==0){E=E-C|0;F=E>>>0>B>>>0?B:E;$W(D|0,(c[e>>2]|0)+C|0,F|0)|0;D=F}else{D=pd[F&63](e,C,D,B)|0}c[u>>2]=D+C;if(D>>>0<B>>>0){C=85;break c}}}while(0);w=w+1|0;}while((w|0)<(r|0));F=z&255;D=z>>>16&255;e=z>>>24&255;A=z>>>8&255;m=56}else{F=0;D=0;e=0;A=0;y=2;x=6;m=56}}while(0);do{if((m|0)==56){if((x|0)>(t|0)){C=0;break}a[s+x|0]=-128;a[s+(x+1)|0]=3;m=y+3|0;if((m|0)>(g|0)){C=0;break}a[s+y|0]=F;a[s+(y+1)|0]=A;a[s+(y+2)|0]=D;a[s+m|0]=e;C=qL(b,s,x+2|0,0,206504,h)|0;break b}}while(0);if((s|0)==0){break}hd[c[q+8>>2]&127](q,s)}else{C=1}}while(0);if((o|0)!=0){hd[c[j+8>>2]&127](j,o)}c[l>>2]=0;if((C|0)!=0){F=C;i=k;return F|0}c[c[h>>2]>>2]=1;F=0;i=k;return F|0}function qL(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,l=0,m=0,n=0;h=i;m=i;i=i+32|0;l=m;j=c[a>>2]|0;k=(b|0)==0;do{if((a|0)==0){if(k){j=33}else{g=33;break}i=h;return j|0}else{if(k){n=6;i=h;return n|0}k=Bd[c[j+4>>2]&255](j,40)|0;if((k|0)==0){g=64;break}bX(k|0,0,40)|0;c[k>>2]=b;c[k+4>>2]=d;c[k+8>>2]=0;c[k+32>>2]=0;c[k+20>>2]=0;b=k+24|0;c[b>>2]=329;c[m>>2]=2;c[l+16>>2]=k;if((f|0)!=0){c[m>>2]=10;n=c[a+24>>2]|0;d=a+28+(n<<2)|0;a:do{if((n|0)>0){n=a+28|0;while(1){m=c[n>>2]|0;n=n+4|0;if((Qc(c[(c[m>>2]|0)+8>>2]|0,f|0)|0)==0){break a}if(n>>>0<d>>>0){}else{m=0;break}}}else{m=0}}while(0);c[l+20>>2]=m}e=MJ(a,l,e,g)|0;if((e|0)==0){n=(c[g>>2]|0)+8|0;c[n>>2]=c[n>>2]&-1025;n=0;i=h;return n|0}g=c[b>>2]|0;if((g|0)!=0){fd[g&511](k)}hd[c[j+8>>2]&127](j,k);n=e;i=h;return n|0}}while(0);hd[c[j+8>>2]&127](j,b);n=g;i=h;return n|0}function rL(a){a=a|0;var b=0,d=0,e=0;b=i;e=c[a+28>>2]|0;d=c[a>>2]|0;if((d|0)!=0){hd[c[e+8>>2]&127](e,d)}c[a+4>>2]=0;c[a>>2]=0;c[a+24>>2]=0;i=b;return}function sL(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;d=i;e=c[a>>2]|0;if((c[b+72>>2]|0)!=1651078259){a=18;i=d;return a|0}c[a+20>>2]=c[b+100>>2];c[a+24>>2]=c[b+104>>2];f=b+156|0;a=a+28|0;if((c[(c[f>>2]|0)+4>>2]&1|0)==0){YV(a);a=ZV(e,b+76|0,a)|0;i=d;return a|0}else{$W(a|0,b+76|0,24)|0;a=(c[f>>2]|0)+4|0;c[a>>2]=c[a>>2]&-2;a=0;i=d;return a|0}return 0}function tL(a){a=a|0;var b=0;b=i;_V(c[a>>2]|0,a+28|0)|0;i=b;return}function uL(a,b){a=a|0;b=b|0;var d=0,e=0;d=i;e=c[a>>2]|0;c[b+20>>2]=c[a+20>>2];c[b+24>>2]=c[a+24>>2];a=ZV(e,a+28|0,b+28|0)|0;i=d;return a|0}function vL(a,b){a=a|0;b=b|0;var d=0,e=0;e=c[a+20>>2]<<6;c[b>>2]=e;d=a+28|0;c[b+8>>2]=(c[d+4>>2]<<6)+e;a=c[a+24>>2]<<6;c[b+12>>2]=a;c[b+4>>2]=a-(c[d>>2]<<6);i=i;return}function wL(a,d){a=a|0;d=d|0;var e=0,f=0,g=0;e=i;f=d+108|0;g=a+20|0;if((c[d+72>>2]|0)!=1869968492){d=18;i=e;return d|0}a=wK(c[a>>2]|0,b[d+110>>1]|0,b[f>>1]|0,g)|0;if((a|0)!=0){d=a;i=e;return d|0}xK(f,g)|0;d=0;i=e;return d|0}function xL(a){a=a|0;var b=0;b=i;yK(c[a>>2]|0,a+20|0)|0;i=b;return}function yL(a,d){a=a|0;d=d|0;var e=0,f=0;e=i;f=a+20|0;d=d+20|0;a=wK(c[a>>2]|0,b[f+2>>1]|0,b[f>>1]|0,d)|0;if((a|0)!=0){i=e;return a|0}xK(f,d)|0;i=e;return a|0}function zL(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;e=i;if((b|0)!=0){GJ(a+20|0,b)}if((d|0)==0){i=e;return}HJ(a+20|0,c[d>>2]|0,c[d+4>>2]|0);i=e;return}function AL(a,b){a=a|0;b=b|0;var c=0;c=i;zK(a+20|0,b);i=c;return}function BL(a,b){a=a|0;b=b|0;var d=0;d=i;c[b+72>>2]=1869968492;$W(b+108|0,a+20|0,20)|0;a=b+124|0;c[a>>2]=c[a>>2]&-2;i=d;return 0}function CL(a){a=a|0;var b=0,d=0,e=0;b=i;if((a|0)==0){i=b;return}d=c[c[a>>2]>>2]|0;e=c[(c[a+4>>2]|0)+12>>2]|0;if((e|0)!=0){fdfd>>>0<j>>>0);if(n>>>0>=j>>>0){break}q=a[n]|0;}while((q+ -48<<24>>24&255)<10|(q+ -65<<24>>24&255)<6|(q+ -97<<24>>24&255)<6);if(n>>>0<j>>>0){if((a[n]|0)!=62){j=n;k=55;break j}}n=n+1|0;break};case 123:{l=l+1|0;break};case 37:{while(1){if(m<<24>>24==10|m<<24>>24==13){break k}n=n+1|0;if(n>>>0>=j>>>0){break k}m=a[n]|0}break};default:{}}}while(0);n=n+1|0;if(n>>>0>=j>>>0){j=n;m=0;break}}if((k|0)==27){j=n+1|0;l=0;m=0}else if((k|0)==55){j=j+1|0;m=3}if((l|m|0)!=0){k=81;break}c[h>>2]=j}else{c[e>>2]=n;c[g>>2]=(a[n]|0)==47?4:1;BM(b);j=c[b>>2]|0;if((c[b+12>>2]|0)!=0){k=81;break}c[h>>2]=j;h=j;k=82}}while(0);if((k|0)==81){h=c[h>>2]|0;k=82}do{if((k|0)==82){if((h|0)!=0){break}c[e>>2]=0;c[g>>2]=0}}while(0);c[b>>2]=j;i=f;return}function IM(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,m=0,n=0,o=0;j=i;n=i;i=i+16|0;m=n;l=i;i=i+16|0;k=l;c[e>>2]=-1;HM(a,m);if((c[m+8>>2]|0)!=3){i=j;return}g=c[a>>2]|0;f=a+8|0;h=c[f>>2]|0;d=b+(d*12|0)|0;o=(c[n>>2]|0)+1|0;c[a>>2]=o;n=(c[m+4>>2]|0)+ -1|0;c[f>>2]=n;a:do{if(o>>>0<n>>>0){m=k+8|0;if((b|0)==0){n=0;while(1){HM(a,k);if((c[m>>2]|0)==0){break a}n=n+12|0;if((c[a>>2]|0)>>>0>=(c[f>>2]|0)>>>0){break a}}}else{n=b}do{HM(a,k);if((c[m>>2]|0)==0){break a}if(n>>>0<d>>>0){$W(n|0,l|0,12)|0}n=n+12|0;}while((c[a>>2]|0)>>>0<(c[f>>2]|0)>>>0)}else{n=b}}while(0);c[e>>2]=(n-b|0)/12|0;c[a>>2]=g;c[f>>2]=h;i=j;return}function JM(e,f,g,h,j){e=e|0;f=f|0;g=g|0;h=h|0;j=j|0;var 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=i;t=i;i=i+8|0;l=t;w=i;i=i+16|0;u=w;r=i;i=i+8|0;o=r;q=i;i=i+8|0;p=q;v=i;i=i+16|0;n=i;i=i+16|0;m=n;HM(e,u);s=c[u+8>>2]|0;a:do{if((s|0)!=0){F=c[w>>2]|0;c[r>>2]=F;w=c[u+4>>2]|0;u=f+8|0;if((c[u>>2]|0)==7){G=c[e>>2]|0;I=e+8|0;H=c[I>>2]|0;c[e>>2]=F+1;c[I>>2]=w+ -1;HM(e,v);c[e>>2]=G;c[I>>2]=H;if((c[v+8>>2]|0)==3){k=5}else{h=1;A=0}}else{if((s|0)==3){k=5}else{h=1;A=0}}if((k|0)==5){if((h|0)==0){break}F=F+1|0;c[r>>2]=F;A=1;w=w+ -1|0}v=f+16|0;f=f+20|0;z=e+16|0;y=m+4|0;e=m+8|0;x=m+12|0;b:while(1){C=c[g+(A<<2)>>2]|0;D=c[v>>2]|0;B=C+D|0;c:do{if(F>>>0<w>>>0){while(1){d:do{switch(a[F]|0){case 37:{E=37;while(1){if(E<<24>>24==10|E<<24>>24==13){break d}F=F+1|0;if(F>>>0>=w>>>0){break d}E=a[F]|0}break};case 0:case 12:case 9:case 10:case 13:case 32:{break};default:{break c}}}while(0);F=F+1|0;if(F>>>0>=w>>>0){break c}}}}while(0);c[r>>2]=F;e:do{switch(c[u>>2]|0){case 4:{C=mN(o,w,3)|0;k=31;break};case 3:{C=mN(o,w,0)|0;k=31;break};case 7:{c[t>>2]=F;f:do{if(F>>>0<w>>>0){E=a[F]|0;if(E<<24>>24==91){E=93;k=48}else{if(E<<24>>24==123){E=125;k=48}else{H=F;F=0;E=0}}if((k|0)==48){k=0;H=F+1|0;c[t>>2]=H;F=1}G=0;while(1){if(H>>>0<w>>>0){I=H}else{break}g:while(1){h:do{switch(a[I]|0){case 37:{H=37;while(1){if(H<<24>>24==10|H<<24>>24==13){break h}I=I+1|0;if(I>>>0>=w>>>0){break h}H=a[I]|0}break};case 0:case 12:case 9:case 10:case 13:case 32:{break};default:{H=I;break g}}}while(0);H=I+1|0;if(H>>>0<w>>>0){I=H}else{break}}c[t>>2]=H;if(H>>>0>=w>>>0){break}if((a[H]|0)==E<<24>>24){k=58;break}if((G|0)>=4){F=H;k=63;break f}c[m+(G<<2)>>2]=mN(l,w,0)|0;I=c[t>>2]|0;if((H|0)==(I|0)){k=61;break b}G=G+1|0;if(F){H=I;F=1}else{H=I;break}}if((k|0)==58){k=0;H=H+1|0;c[t>>2]=H}c[r>>2]=H;if((G|0)<0){break b}}else{k=63}}while(0);if((k|0)==63){k=0;c[r>>2]=F}c[B>>2]=ZI(c[n>>2]|0)|0;c[C+(D+4)>>2]=ZI(c[y>>2]|0)|0;c[C+(D+8)>>2]=ZI(c[e>>2]|0)|0;c[C+(D+12)>>2]=ZI(c[x>>2]|0)|0;break};case 6:case 5:{E=c[z>>2]|0;D=w-F|0;if(F>>>0>=w>>>0){break e}if((s|0)==2){C=F+1|0;c[r>>2]=C;D=D+ -2|0}else if((s|0)==4){C=F+1|0;c[r>>2]=C;D=D+ -1|0}else{k=40;break b}F=c[B>>2]|0;if((F|0)!=0){lJ(E,F);c[B>>2]=0}F=jJ(E,D+1|0,p)|0;E=c[q>>2]|0;if((E|0)!=0){k=70;break b}$W(F|0,C|0,D|0)|0;a[F+D|0]=0;c[B>>2]=F;break};case 1:{C=F+3|0;do{if(C>>>0<w>>>0){if((a[F]|0)!=116){k=21;break}if((a[F+1|0]|0)!=114){k=21;break}if((a[F+2|0]|0)!=117){k=21;break}if((a[C]|0)!=101){k=21;break}F=F+5|0;C=1}else{k=21}}while(0);do{if((k|0)==21){k=F+4|0;if(k>>>0>=w>>>0){C=0;break}if((a[F]|0)!=102){C=0;break}if((a[F+1|0]|0)!=97){C=0;break}if((a[F+2|0]|0)!=108){C=0;break}if((a[C]|0)!=115){C=0;break}F=(a[k]|0)==101?F+6|0:F;C=0}}while(0);c[r>>2]=F;k=31;break};case 2:{C=nN(o,w)|0;k=31;break};default:{break a}}}while(0);do{if((k|0)==31){k=0;D=d[f]|0;if((D|0)==2){b[B>>1]=C;break}else if((D|0)==1){a[B]=C;break}else if((D|0)==4){c[B>>2]=C;break}else{c[B>>2]=C;break}}}while(0);h=h+ -1|0;if((h|0)==0){k=69;break}F=c[r>>2]|0;A=A+1|0}if((k|0)==40){c[q>>2]=3;I=3;i=j;return I|0}else if((k|0)==61){c[r>>2]=H}else if((k|0)==69){c[q>>2]=0;I=0;i=j;return I|0}else if((k|0)==70){i=j;return E|0}c[q>>2]=3;I=3;i=j;return I|0}}while(0);c[q>>2]=3;I=3;i=j;return I|0}function KM(b,e,f,g,h){b=b|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,s=0,t=0,u=0;j=i;t=i;i=i+16|0;s=t;q=i;i=i+16|0;p=q;n=i;i=i+384|0;k=i;i=i+40|0;h=k;$W(k|0,e|0,36)|0;k=h+8|0;c[k>>2]=2;o=e+8|0;r=c[o>>2]|0;if((r|0)==7|(r|0)==9){c[k>>2]=3}HM(b,s);if((c[s+8>>2]|0)!=3){t=162;i=j;return t|0}m=c[b>>2]|0;k=b+8|0;l=c[k>>2]|0;r=n+384|0;u=(c[t>>2]|0)+1|0;c[b>>2]=u;t=(c[s+4>>2]|0)+ -1|0;c[k>>2]=t;a:do{if(u>>>0<t>>>0){s=p+8|0;t=n;do{HM(b,p);if((c[s>>2]|0)==0){break a}if(t>>>0<r>>>0){$W(t|0,q|0,12)|0}t=t+12|0;}while((c[b>>2]|0)>>>0<(c[k>>2]|0)>>>0)}else{t=n}}while(0);u=t-n|0;q=(u|0)/12|0;c[b>>2]=m;c[k>>2]=l;if((u|0)<0){u=162;i=j;return u|0}p=c[e+24>>2]|0;p=q>>>0>p>>>0?p:q;do{if((c[o>>2]|0)!=7){e=c[e+28>>2]|0;if((e|0)==0){break}a[(c[f>>2]|0)+e|0]=p}}while(0);if((p|0)>0){o=h+20|0;e=h+16|0;while(1){c[b>>2]=c[n>>2];c[k>>2]=c[n+4>>2];JM(b,h,f,g,0)|0;c[e>>2]=(c[e>>2]|0)+(d[o]|0);p=p+ -1|0;if((p|0)>0){n=n+12|0}else{break}}}c[b>>2]=m;c[k>>2]=l;u=0;i=j;return u|0}function LM(b,d,e,f,g){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0;h=i;c[b+64>>2]=0;a[b+68|0]=1;c[b+4>>2]=d;c[b+8>>2]=f;c[b>>2]=c[d+100>>2];do{if((f|0)!=0){f=f+156|0;d=c[c[f>>2]>>2]|0;c[b+12>>2]=d;c[b+16>>2]=d+20;c[b+20>>2]=d+56;kJ(d);c[b+76>>2]=c[e+40>>2];e=b+72|0;c[e>>2]=0;if(g<<24>>24==0){break}c[e>>2]=c[(c[f>>2]|0)+36>>2]}}while(0);bX(b+24|0,0,24)|0;$W(b+80|0,207832,32)|0;i=h;return}function MM(a){a=a|0;var b=0,d=0;b=i;d=c[a+8>>2]|0;if((d|0)==0){i=b;return}$W(d+108|0,c[a+16>>2]|0,20)|0;i=b;return}function NM(a,d){a=a|0;d=d|0;var e=0;e=i;if((d|0)==0){a=0;i=e;return a|0}a=c[a+12>>2]|0;if(((b[a+22>>1]|0)+d+(b[a+58>>1]|0)|0)>>>0<=(c[a+4>>2]|0)>>>0){a=0;i=e;return a|0}a=pJ(a,d,0)|0;i=e;return a|0}function OM(d,e,f,g){d=d|0;e=e|0;f=f|0;g=g|0;var h=0,j=0,k=0,l=0;h=i;j=c[d+20>>2]|0;if((a[d+68|0]|0)==0){d=j+2|0;j=d;j=b[j>>1]|0;j=j+1<<16>>16;b[d>>1]=j;i=h;return}else{l=c[j+4>>2]|0;d=j+2|0;k=b[d>>1]|0;j=(c[j+8>>2]|0)+k|0;c[l+(k<<3)>>2]=(ZI(e)|0)>>16;c[l+(k<<3)+4>>2]=(ZI(f)|0)>>16;a[j]=g<<24>>24!=0?1:2;l=d;k=l;k=b[k>>1]|0;k=k+1<<16>>16;b[l>>1]=k;i=h;return}}function PM(d,e,f){d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0;g=i;h=c[d+12>>2]|0;do{if(((b[h+22>>1]|0)+1+(b[h+58>>1]|0)|0)>>>0>(c[h+4>>2]|0)>>>0){h=pJ(h,1,0)|0;if((h|0)==0){break}i=g;return h|0}}while(0);h=c[d+20>>2]|0;if((a[d+68|0]|0)==0){d=h+2|0}else{k=c[h+4>>2]|0;d=h+2|0;j=b[d>>1]|0;h=(c[h+8>>2]|0)+j|0;c[k+(j<<3)>>2]=(ZI(e)|0)>>16;c[k+(j<<3)+4>>2]=(ZI(f)|0)>>16;a[h]=1}b[d>>1]=(b[d>>1]|0)+1<<16>>16;k=0;i=g;return k|0}function QM(d){d=d|0;var e=0,f=0;e=i;f=c[d+20>>2]|0;if((f|0)==0){d=3;i=e;return d|0}if((a[d+68|0]|0)==0){b[f>>1]=(b[f>>1]|0)+1<<16>>16;d=0;i=e;return d|0}d=c[d+12>>2]|0;do{if(((b[d+20>>1]|0)+1+(b[d+56>>1]|0)|0)>>>0>(c[d+8>>2]|0)>>>0){d=pJ(d,0,1)|0;if((d|0)==0){break}i=e;return d|0}}while(0);d=b[f>>1]|0;if(d<<16>>16>0){b[(c[f+12>>2]|0)+((d<<16>>16)+ -1<<1)>>1]=(b[f+2>>1]|0)+ -1<<16>>16;d=b[f>>1]|0}b[f>>1]=d+1<<16>>16;d=0;i=e;return d|0}function RM(d,e,f){d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0;g=i;h=d+64|0;if((c[h>>2]|0)==3){l=0;i=g;return l|0}c[h>>2]=3;j=d+20|0;k=c[j>>2]|0;if((k|0)==0){l=3;i=g;return l|0}h=d+68|0;if((a[h]|0)==0){b[k>>1]=(b[k>>1]|0)+1<<16>>16;d=d+12|0}else{d=d+12|0;l=c[d>>2]|0;do{if(((b[l+20>>1]|0)+1+(b[l+56>>1]|0)|0)>>>0>(c[l+8>>2]|0)>>>0){l=pJ(l,0,1)|0;if((l|0)==0){break}i=g;return l|0}}while(0);l=b[k>>1]|0;if(l<<16>>16>0){b[(c[k+12>>2]|0)+((l<<16>>16)+ -1<<1)>>1]=(b[k+2>>1]|0)+ -1<<16>>16;l=b[k>>1]|0}b[k>>1]=l+1<<16>>16}k=c[d>>2]|0;do{if(((b[k+22>>1]|0)+1+(b[k+58>>1]|0)|0)>>>0>(c[k+4>>2]|0)>>>0){l=pJ(k,1,0)|0;if((l|0)==0){break}i=g;return l|0}}while(0);j=c[j>>2]|0;if((a[h]|0)==0){e=j+2|0}else{h=c[j+4>>2]|0;l=j+2|0;k=b[l>>1]|0;d=(c[j+8>>2]|0)+k|0;c[h+(k<<3)>>2]=(ZI(e)|0)>>16;c[h+(k<<3)+4>>2]=(ZI(f)|0)>>16;a[d]=1;e=l}b[e>>1]=(b[e>>1]|0)+1<<16>>16;l=0;i=g;return l|0}function SM(d){d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0;e=i;f=c[d+20>>2]|0;if((f|0)==0){i=e;return}g=b[f>>1]|0;if(g<<16>>16<2){h=0}else{h=(b[(c[f+12>>2]|0)+((g<<16>>16)+ -2<<1)>>1]|0)+1|0}d=f+2|0;j=b[d>>1]|0;do{if(j<<16>>16>1){l=c[f+4>>2]|0;k=(j<<16>>16)+ -1|0;if((c[l+(h<<3)>>2]|0)!=(c[l+(k<<3)>>2]|0)){break}if((c[l+(h<<3)+4>>2]|0)!=(c[l+(k<<3)+4>>2]|0)){break}if((a[(c[f+8>>2]|0)+k|0]|0)!=1){break}j=j+ -1<<16>>16;b[d>>1]=j}}while(0);if(g<<16>>16<=0){i=e;return}k=(j<<16>>16)+ -1|0;if((h|0)==(k|0)){b[f>>1]=g+ -1<<16>>16;b[d>>1]=j+ -1<<16>>16;i=e;return}else{b[(c[f+12>>2]|0)+((g<<16>>16)+ -1<<1)>>1]=k;i=e;return}}function TM(b,d,e,f,g,h,j,k,l){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;j=j|0;k=k|0;l=l|0;var m=0,n=0;m=i;bX(b|0,0,1500)|0;n=oK(c[d+96>>2]|0,209568)|0;if((n|0)==0){n=7;i=m;return n|0}c[b+1348>>2]=n;c[b+64>>2]=0;a[b+68|0]=1;c[b+4>>2]=d;c[b+8>>2]=f;c[b>>2]=c[d+100>>2];do{if((f|0)!=0){f=f+156|0;n=c[c[f>>2]>>2]|0;c[b+12>>2]=n;c[b+16>>2]=n+20;c[b+20>>2]=n+56;kJ(n);c[b+76>>2]=c[e+40>>2];e=b+72|0;c[e>>2]=0;if(j<<24>>24==0){break}c[e>>2]=c[(c[f>>2]|0)+36>>2]}}while(0);bX(b+24|0,0,24)|0;$W(b+80|0,207832,32)|0;c[b+1352>>2]=c[d+16>>2];c[b+1356>>2]=g;c[b+1468>>2]=k;c[b+1464>>2]=h;c[b+1472>>2]=l;$W(b+1476|0,207864,12)|0;n=0;i=m;return n|0}function UM(a){a=a|0;var b=0,d=0;b=i;d=c[a+8>>2]|0;if((d|0)==0){i=b;return}$W(d+108|0,c[a+16>>2]|0,20)|0;i=b;return}function VM(f,g,h){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,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;j=i;l=i;i=i+8|0;p=i;i=i+8|0;k=i;i=i+8|0;c[l>>2]=f;c[p>>2]=g;m=p^l^k;m=(m>>>10^m^m>>20)&65535;c[k>>2]=(m|0)==0?29572:m;c[f+1136>>2]=f+112;D=f+1140|0;c[f+1344>>2]=D;n=f+64|0;c[n>>2]=0;m=c[f+72>>2]|0;q=c[f+1492>>2]|0;if((q|0)!=0){bX(c[f+1488>>2]|0,0,q<<2|0)|0;g=c[p>>2]|0}c[f+1144>>2]=g;E=g+h|0;c[f+1148>>2]=E;c[D>>2]=g;q=f+24|0;H=c[q>>2]|0;r=f+28|0;G=c[r>>2]|0;p=(m|0)!=0;if(p){fdfd[c[f>>2]&511](d);Y=Y+1<<16>>16;$=c[u>>2]|0;if((Y<<16>>16|0)>=(Z|0)){break j}do{if(($|0)==0){$=0}else{_=$;do{ia=_+8|0;ha=c[ia>>2]|0;c[_>>2]=c[ha>>2];c[ia>>2]=ha+(((c[_+12>>2]|0)>>>2&2)+ -1<<2);ia=_+16|0;c[ia>>2]=(c[ia>>2]|0)+ -1;_=c[_+4>>2]|0;}while((_|0)!=0);ca=$+4|0;ba=c[ca>>2]|0;if((ba|0)==0){break}else{_=$;aa=j}while(1){if((c[$>>2]|0)>(c[ba>>2]|0)){c[aa>>2]=ba;_=ba+4|0;c[ca>>2]=c[_>>2];c[_>>2]=$;$=c[u>>2]|0;_=$;aa=j}else{$=ba;aa=ca}ca=$+4|0;ba=c[ca>>2]|0;if((ba|0)==0){$=_;break}}}}while(0);_=c[r>>2]|0;if((_|0)==0){_=0;continue}else{aa=_}do{ia=aa+8|0;ha=c[ia>>2]|0;c[aa>>2]=c[ha>>2];c[ia>>2]=ha+(((c[aa+12>>2]|0)>>>2&2)+ -1<<2);ia=aa+16|0;c[ia>>2]=(c[ia>>2]|0)+ -1;aa=c[aa+4>>2]|0;}while((aa|0)!=0);ca=_+4|0;aa=c[ca>>2]|0;if((aa|0)==0){continue}else{$=_;ba=K}while(1){if((c[_>>2]|0)>(c[aa>>2]|0)){c[ba>>2]=aa;aa=aa+4|0;c[ca>>2]=c[aa>>2];c[aa>>2]=_;aa=c[r>>2]|0;_=aa;ba=K}else{_=$;ba=ca}ca=aa+4|0;ea=c[ca>>2]|0;if((ea|0)==0){break}else{$=_;_=aa;aa=ea}}$=c[u>>2]|0}}}while(0);if(($|0)!=0){while(1){aa=c[$+4>>2]|0;l:do{if((c[$+16>>2]|0)==0){_=j;while(1){Z=c[_>>2]|0;if((Z|0)==0){break l}ba=Z+4|0;if((Z|0)==($|0)){break}else{_=ba}}c[_>>2]=c[ba>>2]}}while(0);if((aa|0)==0){break}else{$=aa}}}_=c[r>>2]|0;if((_|0)!=0){while(1){$=c[_+4>>2]|0;m:do{if((c[_+16>>2]|0)==0){Z=K;while(1){ba=c[Z>>2]|0;if((ba|0)==0){break m}aa=ba+4|0;if((ba|0)==(_|0)){break}else{Z=aa}}c[Z>>2]=c[aa>>2]}}while(0);if(($|0)==0){break}else{_=$}}}if((c[h>>2]|0)<=0){break g}Z=c[m>>2]|0;X=X<<16>>16}}}while(0);if(Y<<16>>16>(b[l>>1]|0)){break}do{fdfdelse{q=0;do{b[m+(q<<1)>>1]=RK(h)|0;q=q+1|0;}while((q|0)<(p|0));PK(h);r=0;q=0;do{s=b[m+(r<<1)>>1]|0;if((s&65535)>257){s=(s&65535)+ -257|0;q=(s|0)>(q&65535|0)?s&65535:q}r=r+1|0;}while((r|0)<(p|0))}p=oJ(l,4,0,q&65535,0,j)|0;if((c[g>>2]|0)!=0){break}c:do{if(q<<16>>16!=0){r=0;s=0;while(1){if((IK(h)|0)>=(n|0)){k=19;break}u=(VK(h,j)|0)&255;if((c[g>>2]|0)!=0){h=0;break}if((u|0)>(n|0)){k=23}else{if((IK(h)|0)>(n-u|0)){k=23}}do{if((k|0)==23){k=0;if((n-(IK(h)|0)|0)<0){u=0;break}u=n-(IK(h)|0)|0}}while(0);t=oJ(l,1,0,u+1|0,0,j)|0;r=p+(r<<2)|0;c[r>>2]=t;if((c[g>>2]|0)!=0){h=0;break}t=CK(h,t,u)|0;c[g>>2]=t;if((t|0)!=0){h=0;break}a[(c[r>>2]|0)+u|0]=0;s=s+1<<16>>16;if((s&65535)<(q&65535)){r=s&65535}else{break c}}d:do{if((k|0)==19){if((s&65535)>=(q&65535)){break c}while(1){h=oJ(l,1,0,1,0,j)|0;c[p+((s&65535)<<2)>>2]=h;if((c[g>>2]|0)!=0){h=0;break d}a[h]=0;s=s+1<<16>>16;if((s&65535)>=(q&65535)){break c}}}}while(0);while(1){u=p+((h&65535)<<2)|0;lJ(l,c[u>>2]|0);c[u>>2]=0;h=h+1<<16>>16;if((h&65535)<(q&65535)){}else{break b}}}}while(0);b[d+632>>1]=o;b[d+634>>1]=q;c[d+636>>2]=m;c[d+640>>2]=p;m=0;break a}else{p=0}}while(0);lJ(l,p);lJ(l,m);m=c[g>>2]|0}else if((o|0)==163840){k=c[h+28>>2]|0;j=EK(h,m)|0;g=j&65535;n=c[l>>2]|0;if((n|0)!=0){m=n;break}if((j&65535)>(e[d+264>>1]|0)|(j&65535)>258){c[l>>2]=3;m=3;break}m=oJ(k,1,0,g,0,m)|0;e:do{if((c[l>>2]|0)==0){u=CK(h,m,g)|0;c[l>>2]=u;if((u|0)!=0){break}f:do{if(j<<16>>16!=0){h=0;while(1){u=(a[m+h|0]|0)+h|0;h=h+1|0;if((u|0)<0|(u|0)>(g|0)){break}if((h|0)>=(g|0)){break f}}c[l>>2]=3;break e}}while(0);b[d+632>>1]=j;c[d+636>>2]=m;m=0;break a}}while(0);lJ(k,m);m=c[l>>2]|0}else{m=3}}while(0);a[d+628|0]=1;u=m;i=f;return u|0}function CP(d){d=d|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;g=i;h=i;i=i+8|0;l=h;j=i;i=i+8|0;k=j;f=d+700|0;m=c[f>>2]|0;if((m|0)!=0){r=m;i=g;return r|0}m=b[d+344>>1]|0;a:do{if(m<<16>>16==0){j=0}else{o=c[d+360>>2]|0;p=m&65535;m=-1;n=-1;q=0;do{do{if((b[o+(q*20|0)+6>>1]|0)==6){if((b[o+(q*20|0)+8>>1]|0)==0){break}r=b[o+(q*20|0)>>1]|0;if(r<<16>>16==3){if((b[o+(q*20|0)+2>>1]|0)!=1){break}n=(b[o+(q*20|0)+4>>1]|0)==1033?q:n}if(r<<16>>16!=1){break}if((b[o+(q*20|0)+2>>1]|0)!=0){break}m=(b[o+(q*20|0)+4>>1]|0)==0?q:m}}while(0);q=q+1|0;}while((q|0)<(p|0));if((n|0)==-1){if((m|0)==-1){j=0;break}l=c[d+100>>2]|0;h=c[d+360>>2]|0;o=h+(m*20|0)+8|0;n=e[o>>1]|0;c[j>>2]=0;k=jJ(l,n+1|0,k)|0;if((c[j>>2]|0)!=0){j=k;break}d=c[d+364>>2]|0;p=h+(m*20|0)+12|0;r=PJ(d,c[p>>2]|0)|0;c[j>>2]=r;do{if((r|0)==0){r=CK(d,k,n)|0;c[j>>2]=r;if((r|0)!=0){break}a[k+n|0]=0;j=k;break a}}while(0);c[p>>2]=0;b[o>>1]=0;j=h+(m*20|0)+16|0;lJ(l,c[j>>2]|0);c[j>>2]=0;lJ(l,k);j=0;break}o=c[d+100>>2]|0;p=c[d+360>>2]|0;k=p+(n*20|0)+8|0;m=(e[k>>1]|0)>>>1;c[h>>2]=0;j=jJ(o,(e[k>>1]|0)+1|0,l)|0;if((c[h>>2]|0)!=0){break}d=c[d+364>>2]|0;l=p+(n*20|0)+16|0;n=p+(n*20|0)+12|0;r=PJ(d,c[n>>2]|0)|0;c[h>>2]=r;do{if((r|0)==0){r=MK(d,e[k>>1]|0)|0;c[h>>2]=r;if((r|0)!=0){break}if((m|0)==0){k=j}else{h=c[d+32>>2]|0;k=j;while(1){do{if((a[h]|0)==0){l=a[h+1|0]|0;if(!((l&255)>31&l<<24>>24>-1)){break}a[k]=l;k=k+1|0}}while(0);m=m+ -1|0;if((m|0)==0){break}else{h=h+2|0}}}a[k]=0;PK(d);break a}}while(0);lJ(o,j);b[k>>1]=0;c[n>>2]=0;lJ(o,c[l>>2]|0);c[l>>2]=0;j=0}}while(0);c[f>>2]=j;r=j;i=g;return r|0}function DP(a,d,e,f,g){a=a|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;do{if((d|0)==0){l=c[(c[a+104>>2]|0)+4>>2]|0}else{l=b[a+152>>1]|0;m=c[a+156>>2]|0;k=m+((l&65535)<<4)|0;if(l<<16>>16==0){m=142;i=h;return m|0}while(1){if((c[m>>2]|0)==(d|0)){l=c[m+12>>2]|0;if((l|0)!=0){break}}m=m+16|0;if(m>>>0>=k>>>0){a=142;j=13;break}}if((j|0)==13){i=h;return a|0}if((m|0)==0){m=142;i=h;return m|0}else{e=(c[m+8>>2]|0)+e|0;break}}}while(0);do{if((g|0)!=0){j=c[g>>2]|0;if((j|0)!=0){l=j;break}c[g>>2]=l;m=0;i=h;return m|0}}while(0);m=JK(c[a+104>>2]|0,e,f,l)|0;i=h;return m|0}function EP(d,e){d=d|0;e=e|0;a:do{switch(e|0){case 1:{d=d+260|0;break};case 3:{d=d+216|0;break};case 6:{d=d+556|0;if((c[d>>2]|0)==0){d=0;break a}break};case 5:{d=d+468|0;break};case 2:{d=d+368|0;if((b[d>>1]|0)==-1){d=0;break a}break};case 0:{d=d+160|0;break};case 4:{if((a[d+296|0]|0)==0){d=0;break a}d=d+300|0;break};default:{d=0}}}while(0);i=i;return d|0}function FP(a,b,d,f,g){a=a|0;b=b|0;d=d|0;f=f|0;g=g|0;var h=0;h=i;if((d|0)==0|(f|0)==0|(g|0)==0){g=6;i=h;return g|0}if((e[a+152>>1]|0)>>>0<=b>>>0){g=142;i=h;return g|0}a=a+156|0;c[d>>2]=c[(c[a>>2]|0)+(b<<4)>>2];c[f>>2]=c[(c[a>>2]|0)+(b<<4)+8>>2];c[g>>2]=c[(c[a>>2]|0)+(b<<4)+12>>2];g=0;i=h;return g|0}function GP(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,k=0,l=0,m=0,n=0,o=0,p=0;e=i;f=i;i=i+8|0;j=f;k=b+532|0;g=c[k>>2]|0;h=b+96|0;do{if((g|0)==0){g=nK(c[(c[h>>2]|0)+4>>2]|0,271552)|0;if((g|0)==0){p=3;i=e;return p|0}else{c[k>>2]=g;c[b+508>>2]=c[g>>2];break}}}while(0);c[b+536>>2]=oK(c[h>>2]|0,273032)|0;k=c[a+28>>2]|0;p=b+132|0;c[p>>2]=0;m=b+136|0;c[m>>2]=0;h=b+140|0;c[h>>2]=0;l=IK(a)|0;n=GK(a,j)|0;o=c[f>>2]|0;if((o|0)!=0){p=o;i=e;return p|0}if(!((n|0)==65536|(n|0)==131072|(n|0)==1330926671|(n|0)==1953658213|(n|0)==1953784678|(n|0)==1954115633)){p=2;i=e;return p|0}c[p>>2]=1953784678;do{if((n|0)==1953784678){l=ZK(a,273056,p)|0;c[f>>2]=l;if((l|0)!=0){p=l;i=e;return p|0}l=b+144|0;c[l>>2]=oJ(k,4,0,c[h>>2]|0,0,j)|0;j=c[f>>2]|0;if((j|0)!=0){p=j;i=e;return p|0}j=MK(a,c[h>>2]<<2)|0;c[f>>2]=j;if((j|0)!=0){p=j;i=e;return p|0}if((c[h>>2]|0)>0){j=0;do{p=TK(a)|0;c[(c[l>>2]|0)+(j<<2)>>2]=p;j=j+1|0;}while((j|0)<(c[h>>2]|0))}PK(a)}else{c[m>>2]=65536;c[h>>2]=1;j=jJ(k,4,j)|0;c[b+144>>2]=j;k=c[f>>2]|0;if((k|0)==0){c[j>>2]=l;break}else{p=k;i=e;return p|0}}}while(0);f=c[f>>2]|0;if((f|0)!=0){p=f;i=e;return p|0}d=(d|0)<0?0:d;if((d|0)>=(c[h>>2]|0)){p=6;i=e;return p|0}f=PJ(a,c[(c[b+144>>2]|0)+(d<<2)>>2]|0)|0;if((f|0)!=0){p=f;i=e;return p|0}a=Bd[c[g+132>>2]&255](b,a)|0;if((a|0)!=0){p=a;i=e;return p|0}c[b>>2]=c[h>>2];c[b+4>>2]=d;p=0;i=e;return p|0}function HP(d,f,g,h,j){d=d|0;f=f|0;g=g|0;h=h|0;j=j|0;var 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;g=i;k=i;i=i+8|0;p=k;m=i;i=i+32|0;l=m;o=c[f+532>>2]|0;if((h|0)>0){s=0;r=0;q=0;do{t=c[j+(s<<3)>>2]|0;if((t|0)==1768386662){r=1}else{q=(t|0)==1768386675?1:q}s=s+1|0;}while((s|0)<(h|0))}else{r=0;q=0}h=f+128|0;a:do{if((c[(c[h>>2]|0)+52>>2]|0)==0){t=b[f+152>>1]|0;s=c[f+156>>2]|0;j=s+((t&65535)<<4)|0;t=t<<16>>16==0;b:do{if(t){t=0}else{u=s;do{if((c[u>>2]|0)==1735162214){if((c[u+12>>2]|0)!=0){n=10;break}}u=u+16|0;}while(u>>>0<j>>>0);if((n|0)==10){if((u|0)!=0){t=1;n=18;break a}}if(t){t=0;break}while(1){if((c[s>>2]|0)==1128678944){if((c[s+12>>2]|0)!=0){break}}s=s+16|0;if(s>>>0>=j>>>0){t=0;break b}}x=(s|0)!=0;t=x&1;if(x){n=18;break a}}}while(0);j=c[o+84>>2]|0;if((j|0)==0){t=0;n=18;break}x=Bd[j&255](f,d)|0;c[k>>2]=x;if((x|0)==0){u=1}else{n=18}}else{t=1;n=18}}while(0);do{if((n|0)==18){x=Bd[c[o+32>>2]&255](f,d)|0;c[k>>2]=x;if((x|0)==0){u=0;break}x=k;x=c[x>>2]|0;i=g;return x|0}}while(0);j=f+178|0;if((b[j>>1]|0)==0){c[k>>2]=8;x=k;x=c[x>>2]|0;i=g;return x|0}c[k>>2]=Bd[c[o+44>>2]&255](f,d)|0;c[k>>2]=Bd[c[o+40>>2]&255](f,d)|0;c[k>>2]=Bd[c[o+56>>2]&255](f,d)|0;s=Bd[c[o+52>>2]&255](f,d)|0;c[k>>2]=s;do{if(!u){u=o+36|0;v=sd[c[u>>2]&127](f,d,0)|0;c[k>>2]=v;do{if((v|0)==0){v=sd[c[o+136>>2]&127](f,d,0)|0;c[k>>2]=v;if((v|0)!=142){n=32;break}c[k>>2]=147;h=c[(c[h>>2]|0)+52>>2]|0;if((h|0)==0){x=k;x=c[x>>2]|0;i=g;return x|0}if((c[(c[h>>2]|0)+8>>2]|0)==0){x=k;x=c[x>>2]|0;i=g;return x|0}else{b[f+250>>1]=0;c[k>>2]=0;break}}else if((v|0)==142){if((c[f+148>>2]|0)==1953658213){c[k>>2]=0;t=0;break}c[k>>2]=143;h=c[(c[h>>2]|0)+52>>2]|0;if((h|0)==0){x=k;x=c[x>>2]|0;i=g;return x|0}if((c[(c[h>>2]|0)+8>>2]|0)==0){x=k;x=c[x>>2]|0;i=g;return x|0}else{b[f+250>>1]=0;c[k>>2]=0;break}}else{n=32}}while(0);do{if((n|0)==32){if((v|0)==0){break}x=k;x=c[x>>2]|0;i=g;return x|0}}while(0);h=sd[c[u>>2]&127](f,d,1)|0;c[k>>2]=h;do{if((h|0)==0){h=sd[c[o+136>>2]&127](f,d,1)|0;c[k>>2]=h;if((h|0)!=0){n=36;break}a[f+296|0]=1}else{n=36}}while(0);do{if((n|0)==36){if((h|0)==0|(h|0)==142){break}x=k;x=c[x>>2]|0;i=g;return x|0}}while(0);x=Bd[c[o+48>>2]&255](f,d)|0;c[k>>2]=x;if((x|0)==0){break}b[f+368>>1]=-1}}while(0);h=c[o+140>>2]|0;do{if((h|0)!=0){h=Bd[h&255](f,d)|0;c[k>>2]=h;if((h|0)==0){break}else if((h|0)==142){c[k>>2]=0;break}else{x=k;x=c[x>>2]|0;i=g;return x|0}}}while(0);h=Bd[c[o+80>>2]&255](f,d)|0;c[k>>2]=h;if((h|0)==142){c[f+556>>2]=0}else if((h|0)!=0){x=k;x=c[x>>2]|0;i=g;return x|0}c[k>>2]=Bd[c[o+76>>2]&255](f,d)|0;c[k>>2]=Bd[c[o+72>>2]&255](f,d)|0;c[f+16>>2]=e[f+264>>1]|0;u=f+20|0;c[u>>2]=0;d=f+24|0;c[d>>2]=0;h=f+368|0;do{if((b[h>>1]|0)==-1){n=54}else{if((b[f+432>>1]&256)==0){n=54;break}do{if(r<<24>>24==0){x=rQ(f,16,u)|0;c[k>>2]=x;if((x|0)==0){if((c[u>>2]|0)==0){n=49;break}else{break}}else{x=k;x=c[x>>2]|0;i=g;return x|0}}else{n=49}}while(0);do{if((n|0)==49){x=rQ(f,1,u)|0;c[k>>2]=x;if((x|0)==0){break}x=k;x=c[x>>2]|0;i=g;return x|0}}while(0);do{if(q<<24>>24==0){x=rQ(f,17,d)|0;c[k>>2]=x;if((x|0)==0){break}x=k;x=c[x>>2]|0;i=g;return x|0}}while(0);if((c[d>>2]|0)!=0){break}x=rQ(f,2,d)|0;c[k>>2]=x;if((x|0)==0){break}x=k;x=c[x>>2]|0;i=g;return x|0}}while(0);do{if((n|0)==54){x=rQ(f,21,u)|0;c[k>>2]=x;if((x|0)!=0){x=k;x=c[x>>2]|0;i=g;return x|0}v=c[u>>2]|0;do{if((v|0)==0&r<<24>>24==0){x=rQ(f,16,u)|0;c[k>>2]=x;if((x|0)==0){v=c[u>>2]|0;break}else{x=k;x=c[x>>2]|0;i=g;return x|0}}}while(0);do{if((v|0)==0){x=rQ(f,1,u)|0;c[k>>2]=x;if((x|0)==0){break}x=k;x=c[x>>2]|0;i=g;return x|0}}while(0);x=rQ(f,22,d)|0;c[k>>2]=x;if((x|0)!=0){x=k;x=c[x>>2]|0;i=g;return x|0}r=c[d>>2]|0;do{if((r|0)==0&q<<24>>24==0){x=rQ(f,17,d)|0;c[k>>2]=x;if((x|0)==0){r=c[d>>2]|0;break}else{x=k;x=c[x>>2]|0;i=g;return x|0}}}while(0);if((r|0)!=0){break}x=rQ(f,2,d)|0;c[k>>2]=x;if((x|0)==0){break}x=k;x=c[x>>2]|0;i=g;return x|0}}while(0);d=f+8|0;r=t<<24>>24==1;q=c[d>>2]|r&1;t=q|24;if((s|0)==0){t=(c[f+468>>2]|0)==196608?t:q|536}s=(c[f+480>>2]|0)==0?t:t|4;q=f+296|0;s=(a[q]|0)==0?s:s|32;s=(c[f+784>>2]|0)==0?s:s|64;x=b[f+152>>1]|0;u=c[f+156>>2]|0;t=u+((x&65535)<<4)|0;c:do{if(x<<16>>16!=0){v=u;while(1){if((c[v>>2]|0)==1735162214){if((c[v+12>>2]|0)!=0){break}}v=v+16|0;if(v>>>0>=t>>>0){break c}}if((v|0)==0){break}else{v=u}while(1){if((c[v>>2]|0)==1719034226){if((c[v+12>>2]|0)!=0){break}}v=v+16|0;if(v>>>0>=t>>>0){break c}}if((v|0)==0){break}while(1){if((c[u>>2]|0)==1735811442){if((c[u+12>>2]|0)!=0){break}}u=u+16|0;if(u>>>0>=t>>>0){u=0;break}}s=(u|0)==0?s:s|256}}while(0);c[d>>2]=s;do{if(r){if((b[h>>1]|0)==-1){n=84;break}x=b[f+432>>1]|0;r=x&65535;r=(x&65535)>>>4&2|((r&512|0)==0?r&1:1)}else{n=84}}while(0);if((n|0)==84){x=b[f+204>>1]|0;r=(x&65535)>>>1&1|((x&1)==0?0:2)}c[f+12>>2]=r;sQ(f);t=f+36|0;if((c[t>>2]|0)>0){r=f+40|0;s=0;do{u=c[(c[r>>2]|0)+(s<<2)>>2]|0;v=e[u+8>>1]|0;w=e[u+10>>1]|0;x=272856;while(1){if((c[x>>2]|0)==(v|0)){y=c[x+4>>2]|0;if((y|0)==(w|0)|(y|0)==-1){n=90;break}}x=x+12|0;if(x>>>0>=(272988|0)>>>0){v=0;break}}if((n|0)==90){n=0;v=c[x+8>>2]|0}c[u+4>>2]=v;s=s+1|0;}while((s|0)<(c[t>>2]|0))}r=c[f+612>>2]|0;do{if((r|0)==0){l=c[d>>2]|0}else{t=c[(c[f+104>>2]|0)+28>>2]|0;s=b[j>>1]|0;if(s<<16>>16==0){n=97}else{if((b[h>>1]|0)==-1){n=97}else{h=b[f+370>>1]|0}}if((n|0)==97){h=0;s=1}v=oJ(t,16,0,r,0,p)|0;n=f+32|0;c[n>>2]=v;if((c[k>>2]|0)!=0){y=k;y=c[y>>2]|0;i=g;return y|0}o=o+152|0;p=l+20|0;h=h<<16>>16;t=s&65535;u=t>>>1;s=l+2|0;w=0;while(1){y=sd[c[o>>2]&127](f,w,l)|0;c[k>>2]=y;if((y|0)!=0){n=108;break}b[v+(w<<4)>>1]=(c[p>>2]|0)>>>6;b[v+(w<<4)+2>>1]=((da(e[m>>1]|0,h)|0)+u|0)/(t|0)|0;c[v+(w<<4)+8>>2]=e[m>>1]<<6;c[v+(w<<4)+12>>2]=e[s>>1]<<6;c[v+(w<<4)+4>>2]=e[s>>1]<<6;w=w+1|0;if(w>>>0>=r>>>0){n=103;break}v=c[n>>2]|0}if((n|0)==103){l=c[d>>2]|2;c[d>>2]=l;c[f+28>>2]=r;break}else if((n|0)==108){y=k;y=c[y>>2]|0;i=g;return y|0}}}while(0);if((l&3|0)==0){l=l|1;c[d>>2]=l}if((l&1|0)==0){y=k;y=c[y>>2]|0;i=g;return y|0}c[f+52>>2]=b[f+196>>1]|0;c[f+56>>2]=b[f+198>>1]|0;c[f+60>>2]=b[f+200>>1]|0;c[f+64>>2]=b[f+202>>1]|0;b[f+68>>1]=b[j>>1]|0;x=b[f+220>>1]|0;b[f+70>>1]=x;y=b[f+222>>1]|0;b[f+72>>1]=y;l=f+74|0;b[l>>1]=(x-y<<16>>16)+(b[f+224>>1]|0)<<16>>16;b[f+76>>1]=b[f+226>>1]|0;b[f+78>>1]=b[((a[q]|0)==0?l:f+310|0)>>1]|0;y=b[f+478>>1]|0;b[f+80>>1]=(e[f+476>>1]|0)-((y<<16>>16|0)/2|0);b[f+82>>1]=y;y=k;y=c[y>>2]|0;i=g;return y|0}function IP(d){d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0;e=i;if((d|0)==0){i=e;return}g=c[d+100>>2]|0;j=d+532|0;f=c[j>>2]|0;h=(f|0)!=0;do{if(h){k=c[f+116>>2]|0;if((k|0)!=0){fd[k&511](d)}k=c[f+144>>2]|0;if((k|0)==0){break}fd[k&511](d)}}while(0);if((a[d+812|0]|0)!=0){k=d+792|0;if((c[k>>2]|0)!=0){NK(c[d+104>>2]|0,k)}c[d+796>>2]=0;c[d+800>>2]=0;c[d+804>>2]=0}k=d+104|0;NK(c[k>>2]|0,d+772|0);bX(d+776|0,0,16)|0;l=d+144|0;lJ(g,c[l>>2]|0);c[l>>2]=0;c[d+140>>2]=0;l=d+156|0;lJ(g,c[l>>2]|0);c[l>>2]=0;b[d+152>>1]=0;NK(c[k>>2]|0,d+500|0);c[d+504>>2]=0;k=d+252|0;lJ(g,c[k>>2]|0);c[k>>2]=0;k=d+256|0;lJ(g,c[k>>2]|0);c[k>>2]=0;k=d+296|0;if((a[k]|0)!=0){l=d+336|0;lJ(g,c[l>>2]|0);c[l>>2]=0;l=d+340|0;lJ(g,c[l>>2]|0);c[l>>2]=0;a[k]=0}l=d+552|0;lJ(g,c[l>>2]|0);c[l>>2]=0;b[d+550>>1]=0;if(h){fdfd[g&511](c[f>>2]|0)}if((e|0)!=0){fd
7325 4;V=V<<1;do{if((K|0)==0){K=0;W=0}else{if((M|0)<0){M=M+1|0;W=0;break}W=(d[K]|0)>>>L&1;M=M+1|0;if((M|0)==(c[v>>2]|0)){K=0;break}if((L|0)==0){L=7;K=K+1|0;break}else{L=L+ -1|0;break}}}while(0);Q=Q+1|0;if((Q|0)<(f|0)){V=W|V&30;P=(l|P)<<1&14}else{break}}}else{break}}}while(0);I=I+1|0;}while((I|0)<(g|0));i=p;return q|0}}while(0);do{if((t|0)==5){Qe(-1,177872,W);c[q+20>>2]=0;if((q|0)==0){q=0}else{break}i=p;return q|0}}while(0);fd[c[(c[q>>2]|0)+4>>2]&511](q);ea=0;i=p;return ea|0}function AD(a){a=a|0;i=i;return 0}function BD(a){a=a|0;i=i;return 1}function CD(a){a=a|0;i=i;return 2}function DD(a){a=a|0;i=i;return 3}function ED(a){a=a|0;i=i;return 9}function FD(b,d){b=b|0;d=d|0;var e=0;e=i;uj(b,d);c[b>>2]=182752;a[b+72|0]=0;a[b+92|0]=0;a[b+112|0]=0;a[b+132|0]=0;c[b+196>>2]=0;bX(b+12|0,0,16)|0;bX(b+180|0,0,13)|0;i=e;return}function GD(a){a=a|0;var b=0,d=0;b=i;c[a>>2]=182752;KD(a);d=c[a+8>>2]|0;if((d|0)==0){HW(a);i=b;return}fd[c[(c[d>>2]|0)+4>>2]&511](d);HW(a);i=b;return}function HD(a){a=a|0;var b=0;b=i;c[a>>2]=182752;KD(a);a=c[a+8>>2]|0;if((a|0)==0){i=b;return}fd[c[(c[a>>2]|0)+4>>2]&511](a);i=b;return}function ID(a){a=a|0;var b=0,d=0;b=i;d=c[a+8>>2]|0;fd[c[(c[d>>2]|0)+12>>2]&511](d);if(JD(a)|0){c[a+204>>2]=c[a+148>>2]}else{c[a+204>>2]=c[a+140>>2]}c[a+200>>2]=c[a+144>>2];c[a+208>>2]=0;c[a+216>>2]=0;i=b;return}function JD(b){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,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,W=0,X=0,Y=0,Z=0,_=0,$=0;d=i;g=i;i=i+8|0;u=i;i=i+8|0;t=i;i=i+8|0;h=i;i=i+8|0;j=i;i=i+8|0;k=i;i=i+8|0;l=i;i=i+8|0;m=i;i=i+8|0;o=i;i=i+8|0;p=i;i=i+8|0;q=i;i=i+8|0;n=i;i=i+8|0;f=i;i=i+8|0;e=i;i=i+8|0;A=i;i=i+8|0;s=i;i=i+8|0;z=s;y=i;i=i+8|0;v=i;i=i+8|0;x=v;r=b+28|0;a[r]=0;w=b+8|0;$=c[w>>2]|0;if((jd[c[(c[$>>2]|0)+24>>2]&511]($)|0)==255){Qe(jd[c[(c[b>>2]|0)+48>>2]&511](b)|0,182848,A);TD(b,0)|0;h=c[b+168>>2]|0;g=b+12|0;c[g>>2]=h;h=ye(h,4)|0;f=b+16|0;c[f>>2]=h;a:do{if((c[g>>2]|0)!=0){e=b+180|0;j=0;while(1){c[h+(j<<2)>>2]=c[(c[(c[e>>2]|0)+48>>2]|0)+(j*88|0)+4>>2];j=j+1|0;if(j>>>0>=(c[g>>2]|0)>>>0){break a}h=c[f>>2]|0}}}while(0);c[b+20>>2]=(c[b+136>>2]|0)-(c[b+144>>2]|0);c[b+24>>2]=(c[b+140>>2]|0)-(c[b+148>>2]|0);$=1;i=d;return $|0}if(!(SD(b,z,y,x)|0)){$=1;i=d;return $|0}I=b+24|0;H=b+20|0;F=b+12|0;G=b+16|0;P=b+76|0;Q=b+80|0;R=b+84|0;S=b+88|0;T=b+92|0;L=b+96|0;O=b+100|0;N=b+104|0;M=b+108|0;K=b+112|0;E=b+116|0;B=b+120|0;C=b+124|0;D=b+128|0;A=b+132|0;J=b+72|0;b:while(1){U=c[s>>2]|0;do{if((U|0)==1768449138){U=c[w>>2]|0;U=jd[c[(c[U>>2]|0)+20>>2]&511](U)|0;if((U|0)==-1){r=25;break b}V=c[w>>2]|0;V=jd[c[(c[V>>2]|0)+20>>2]&511](V)|0;if((V|0)==-1){r=25;break b}W=c[w>>2]|0;W=jd[c[(c[W>>2]|0)+20>>2]&511](W)|0;if((W|0)==-1){r=25;break b}X=c[w>>2]|0;X=jd[c[(c[X>>2]|0)+20>>2]&511](X)|0;if((X|0)==-1){r=25;break b}c[I>>2]=V<<16|U<<24|W<<8|X;X=c[w>>2]|0;X=jd[c[(c[X>>2]|0)+20>>2]&511](X)|0;if((X|0)==-1){r=25;break b}W=c[w>>2]|0;W=jd[c[(c[W>>2]|0)+20>>2]&511](W)|0;if((W|0)==-1){r=25;break b}U=c[w>>2]|0;U=jd[c[(c[U>>2]|0)+20>>2]&511](U)|0;if((U|0)==-1){r=25;break b}V=c[w>>2]|0;V=jd[c[(c[V>>2]|0)+20>>2]&511](V)|0;if((V|0)==-1){r=25;break b}c[H>>2]=W<<16|X<<24|U<<8|V;U=c[w>>2]|0;U=jd[c[(c[U>>2]|0)+20>>2]&511](U)|0;if((U|0)==-1){r=25;break b}V=c[w>>2]|0;V=jd[c[(c[V>>2]|0)+20>>2]&511](V)|0;if((V|0)==-1){r=25;break b}c[F>>2]=V|U<<8;U=c[w>>2]|0;U=jd[c[(c[U>>2]|0)+20>>2]&511](U)|0;if((U|0)==-1){r=25;break b}V=c[w>>2]|0;V=jd[c[(c[V>>2]|0)+20>>2]&511](V)|0;if((V|0)==-1){r=25;break b}$=c[w>>2]|0;if((jd[c[(c[$>>2]|0)+20>>2]&511]($)|0)==-1){r=25;break b}$=c[w>>2]|0;if((jd[c[(c[$>>2]|0)+20>>2]&511]($)|0)==-1){r=25;break b}if((V|0)!=7){r=27;break b}V=ye(c[F>>2]|0,4)|0;c[G>>2]=V;c:do{if((c[F>>2]|0)!=0){W=0;while(1){c[V+(W<<2)>>2]=U;W=W+1|0;if(W>>>0>=(c[F>>2]|0)>>>0){break c}V=c[G>>2]|0}}}while(0);a[r]=1}else if((U|0)==1668246642){if(!(UD(b,c[v>>2]|0)|0)){b=0;r=92;break b}}else if((U|0)==1651532643){if((a[r]&1)==0){r=33;break b}U=c[v>>2]|0;if((U|0)!=(c[F>>2]|0)){r=36;break b}if((U|0)==0){break}else{W=0}do{U=c[G>>2]|0;V=c[w>>2]|0;V=jd[c[(c[V>>2]|0)+20>>2]&511](V)|0;if((V|0)==-1){r=38;break b}c[U+(W<<2)>>2]=V;W=W+1|0;}while(W>>>0<(c[F>>2]|0)>>>0)}else if((U|0)==1785737827){if((c[G>>2]|0)==0){Qe(jd[c[(c[b>>2]|0)+48>>2]&511](b)|0,183096,t)}if((a[J]&1)==0){Qe(jd[c[(c[b>>2]|0)+48>>2]&511](b)|0,183144,u)}if(!(TD(b,0)|0)){b=0;r=92;break b}}else if((U|0)==1668112752){$=(c[v>>2]|0)>>>2;c[L>>2]=$;c[O>>2]=ye($,4)|0;c[N>>2]=ye(c[L>>2]|0,4)|0;c[M>>2]=ye(c[L>>2]|0,4)|0;if((c[L>>2]|0)!=0){U=0;do{W=(c[O>>2]|0)+(U<<2)|0;V=c[w>>2]|0;V=jd[c[(c[V>>2]|0)+20>>2]&511](V)|0;if((V|0)==-1){r=67;break b}X=c[w>>2]|0;X=jd[c[(c[X>>2]|0)+20>>2]&511](X)|0;if((X|0)==-1){r=67;break b}c[W>>2]=X|V<<8;V=c[N>>2]|0;W=c[w>>2]|0;W=jd[c[(c[W>>2]|0)+20>>2]&511](W)|0;if((W|0)==-1){r=67;break b}c[V+(U<<2)>>2]=W;V=c[M>>2]|0;W=c[w>>2]|0;W=jd[c[(c[W>>2]|0)+20>>2]&511](W)|0;if((W|0)==-1){r=67;break b}c[V+(U<<2)>>2]=W;U=U+1|0;}while(U>>>0<(c[L>>2]|0)>>>0)}a[K]=1}else if((U|0)==1885564018){U=c[w>>2]|0;U=jd[c[(c[U>>2]|0)+20>>2]&511](U)|0;if((U|0)==-1){r=44;break b}V=c[w>>2]|0;V=jd[c[(c[V>>2]|0)+20>>2]&511](V)|0;if((V|0)==-1){r=44;break b}c[P>>2]=V|U<<8;U=c[w>>2]|0;U=jd[c[(c[U>>2]|0)+20>>2]&511](U)|0;if((U|0)==-1){r=44;break b}c[Q>>2]=U;c[R>>2]=ye(U,4)|0;c[S>>2]=ye(da(c[Q>>2]|0,c[P>>2]|0)|0,4)|0;if((c[Q>>2]|0)==0){W=0}else{V=0;do{U=c[R>>2]|0;W=c[w>>2]|0;W=jd[c[(c[W>>2]|0)+20>>2]&511](W)|0;if((W|0)==-1){r=47;break b}c[U+(V<<2)>>2]=W;W=(c[R>>2]|0)+(V<<2)|0;c[W>>2]=(c[W>>2]|0)+1;V=V+1|0;W=c[Q>>2]|0;}while(V>>>0<W>>>0)}V=c[P>>2]|0;if((V|0)!=0){U=0;do{if((W|0)==0){W=0}else{V=0;do{X=c[(c[R>>2]|0)+(V<<2)>>2]|0;Y=((X&127)+7|0)>>>3;X=(X&128|0)==0;W=(da(W,U)|0)+V|0;W=(c[S>>2]|0)+(W<<2)|0;if((Y|0)==0){_=0}else{Z=0;_=0;do{$=c[w>>2]|0;$=jd[c[(c[$>>2]|0)+20>>2]&511]($)|0;if(($|0)==-1){r=57;break b}_=$+(_<<8)|0;Z=Z+1|0;}while((Z|0)<(Y|0))}do{if(!X){X=Y<<3;if((_&1<<X+ -1|0)==0){break}_=_|-1<<X}}while(0);c[W>>2]=_;V=V+1|0;W=c[Q>>2]|0;}while(V>>>0<W>>>0);V=c[P>>2]|0}U=U+1|0;}while(U>>>0<V>>>0)}a[T]=1}else if((U|0)==1667523942){U=c[w>>2]|0;U=jd[c[(c[U>>2]|0)+20>>2]&511](U)|0;if((U|0)==-1){r=72;break b}V=c[w>>2]|0;V=jd[c[(c[V>>2]|0)+20>>2]&511](V)|0;if((V|0)==-1){r=72;break b}$=V|U<<8;c[E>>2]=$;c[B>>2]=ye($,4)|0;c[C>>2]=ye(c[E>>2]|0,4)|0;c[D>>2]=ye(c[E>>2]|0,4)|0;if((c[E>>2]|0)!=0){U=0;do{V=(c[B>>2]|0)+(U<<2)|0;X=c[w>>2]|0;X=jd[c[(c[X>>2]|0)+20>>2]&511](X)|0;if((X|0)==-1){r=80;break b}W=c[w>>2]|0;W=jd[c[(c[W>>2]|0)+20>>2]&511](W)|0;if((W|0)==-1){r=80;break b}c[V>>2]=W|X<<8;W=(c[C>>2]|0)+(U<<2)|0;X=c[w>>2]|0;X=jd[c[(c[X>>2]|0)+20>>2]&511](X)|0;if((X|0)==-1){r=80;break b}V=c[w>>2]|0;V=jd[c[(c[V>>2]|0)+20>>2]&511](V)|0;if((V|0)==-1){r=80;break b}c[W>>2]=V|X<<8;W=(c[D>>2]|0)+(U<<2)|0;X=c[w>>2]|0;X=jd[c[(c[X>>2]|0)+20>>2]&511](X)|0;if((X|0)==-1){r=80;break b}V=c[w>>2]|0;V=jd[c[(c[V>>2]|0)+20>>2]&511](V)|0;if((V|0)==-1){r=80;break b}c[W>>2]=V|X<<8;U=U+1|0;}while(U>>>0<(c[E>>2]|0)>>>0)}a[A]=1}else if((U|0)!=1785737832){V=c[v>>2]|0;if((V|0)==0){break}else{U=0}do{$=c[w>>2]|0;U=U+1|0;if((jd[c[(c[$>>2]|0)+20>>2]&511]($)|0)==-1){r=91;break b}}while(U>>>0<V>>>0)}}while(0);if(!(SD(b,z,y,x)|0)){b=1;r=92;break}}if((r|0)==25){Qe(jd[c[(c[b>>2]|0)+48>>2]&511](b)|0,182904,e);$=0;i=d;return $|0}else if((r|0)==27){Qe(jd[c[(c[b>>2]|0)+48>>2]&511](b)|0,182936,f);$=0;i=d;return $|0}else if((r|0)==33){Qe(jd[c[(c[b>>2]|0)+48>>2]&511](b)|0,182976,n);$=0;i=d;return $|0}else if((r|0)==36){Qe(jd[c[(c[b>>2]|0)+48>>2]&511](b)|0,183048,q);$=0;i=d;return $|0}else if((r|0)==38){Qe(jd[c[(c[b>>2]|0)+48>>2]&511](b)|0,182904,p);$=0;i=d;return $|0}else if((r|0)==44){Qe(jd[c[(c[b>>2]|0)+48>>2]&511](b)|0,182904,o);$=0;i=d;return $|0}else if((r|0)==47){Qe(jd[c[(c[b>>2]|0)+48>>2]&511](b)|0,182904,m);$=0;i=d;return $|0}else if((r|0)==57){Qe(jd[c[(c[b>>2]|0)+48>>2]&511](b)|0,182904,l);$=0;i=d;return $|0}else if((r|0)==67){Qe(jd[c[(c[b>>2]|0)+48>>2]&511](b)|0,182904,k);$=0;i=d;return $|0}else if((r|0)==72){Qe(jd[c[(c[b>>2]|0)+48>>2]&511](b)|0,182904,j);$=0;i=d;return $|0}else if((r|0)==80){Qe(jd[c[(c[b>>2]|0)+48>>2]&511](b)|0,182904,h);$=0;i=d;return $|0}else if((r|0)==91){Qe(jd[c[(c[b>>2]|0)+48>>2]&511](b)|0,182904,g);$=0;i=d;return $|0}else if((r|0)==92){i=d;return b|0}return 0}function KD(b){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,v=0,w=0,x=0;d=i;e=b+16|0;Fe(c[e>>2]|0);c[e>>2]=0;e=b+92|0;if((a[e]&1)!=0){Fe(c[b+84>>2]|0);Fe(c[b+88>>2]|0);a[e]=0}e=b+112|0;if((a[e]&1)!=0){Fe(c[b+100>>2]|0);Fe(c[b+104>>2]|0);Fe(c[b+108>>2]|0);a[e]=0}e=b+132|0;if((a[e]&1)!=0){Fe(c[b+120>>2]|0);Fe(c[b+124>>2]|0);Fe(c[b+128>>2]|0);a[e]=0}e=b+180|0;k=c[e>>2]|0;if((k|0)==0){wj(b);i=d;return}g=b+172|0;m=c[g>>2]|0;f=b+176|0;l=c[f>>2]|0;if((da(l,m)|0)!=0){h=b+168|0;o=k;j=0;while(1){k=o+(j*52|0)+48|0;n=c[k>>2]|0;if((n|0)==0){k=o}else{if((c[h>>2]|0)!=0){m=0;while(1){Fe(c[n+(m*88|0)+44>>2]|0);Fe(c[n+(m*88|0)+76>>2]|0);Fe(c[n+(m*88|0)+80>>2]|0);l=n+(m*88|0)+84|0;p=c[l>>2]|0;if((p|0)!=0){n=n+(m*88|0)+20|0;o=0;while(1){q=c[p+(o*76|0)+72>>2]|0;if((q|0)!=0){p=(o|0)==0?1:3;q=q+16|0;u=c[q>>2]|0;if((u|0)!=0){r=0;do{Fe(c[u+(r*40|0)+28>>2]|0);Fe(c[u+(r*40|0)+32>>2]|0);t=u+(r*40|0)+36|0;w=c[t>>2]|0;if((w|0)!=0){s=u+(r*40|0)+16|0;u=u+(r*40|0)+20|0;if((da(c[u>>2]|0,c[s>>2]|0)|0)!=0){v=0;do{Fe(c[w+(v*56|0)+44>>2]|0);x=c[w+(v*56|0)+48>>2]|0;if((x|0)!=0){DI(x);HW(x)}w=c[w+(v*56|0)+52>>2]|0;if((w|0)!=0){yI(w);HW(w)}v=v+1|0;x=v>>>0<(da(c[u>>2]|0,c[s>>2]|0)|0)>>>0;w=c[t>>2]|0}while(x)}Fe(w)}r=r+1|0;u=c[q>>2]|0}while(r>>>0<p>>>0);Fe(u)}Fe(c[(c[(c[(c[e>>2]|0)+(j*52|0)+48>>2]|0)+(m*88|0)+84>>2]|0)+(o*76|0)+72>>2]|0)}o=o+1|0;if(o>>>0>(c[n>>2]|0)>>>0){break}p=c[l>>2]|0}Fe(c[(c[(c[e>>2]|0)+(j*52|0)+48>>2]|0)+(m*88|0)+84>>2]|0)}m=m+1|0;if(m>>>0>=(c[h>>2]|0)>>>0){break}n=c[k>>2]|0}n=c[(c[e>>2]|0)+(j*52|0)+48>>2]|0}Fe(n);k=c[e>>2]|0;l=c[f>>2]|0;m=c[g>>2]|0}j=j+1|0;if(j>>>0<(da(l,m)|0)>>>0){o=k}else{break}}}Fe(k);c[e>>2]=0;wj(b);i=d;return}function LD(a){a=a|0;var b=0,d=0,e=0,f=0;d=i;b=a+216|0;e=c[b>>2]|0;if(e>>>0<8){MD(a);e=c[b>>2]|0}if((e|0)==8){e=c[a+212>>2]&255;c[b>>2]=0;i=d;return e|0}if(e>>>0>8){f=e+ -8|0;e=(c[a+212>>2]|0)>>>f&255;c[b>>2]=f;i=d;return e|0}if((e|0)==0){f=-1;i=d;return f|0}f=c[a+212>>2]<<8-e&255;c[b>>2]=0;i=d;return f|0}function MD(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;b=i;g=a+204|0;l=a+164|0;m=a+156|0;n=a+172|0;f=a+200|0;d=a+160|0;p=a+152|0;h=a+208|0;q=a+180|0;r=a+168|0;j=a+136|0;e=a+144|0;o=a+212|0;k=a+216|0;a=c[a+140>>2]|0;u=c[g>>2]|0;while(1){if(u>>>0>=a>>>0){d=10;break}B=u-(c[l>>2]|0)|0;A=c[m>>2]|0;s=da(c[n>>2]|0,(B>>>0)/(A>>>0)|0)|0;v=c[f>>2]|0;y=v-(c[d>>2]|0)|0;x=c[p>>2]|0;w=c[h>>2]|0;s=c[(c[q>>2]|0)+((((y>>>0)/(x>>>0)|0)+s|0)*52|0)+48>>2]|0;t=c[s+(w*88|0)+8>>2]|0;z=c[s+(w*88|0)+12>>2]|0;t=(da((c[s+(w*88|0)+60>>2]|0)-(c[s+(w*88|0)+52>>2]|0)|0,((((B>>>0)%(A>>>0)|0)+ -1+z|0)>>>0)/(z>>>0)|0)|0)+(((((y>>>0)%(x>>>0)|0)+ -1+t|0)>>>0)/(t>>>0)|0)|0;t=c[(c[s+(w*88|0)+76>>2]|0)+(t<<2)>>2]|0;s=c[s+(w*88|0)+4>>2]|0;w=w+1|0;c[h>>2]=w;do{if((w|0)==(c[r>>2]|0)){c[h>>2]=0;B=v+1|0;c[f>>2]=B;if((B|0)!=(c[j>>2]|0)){break}c[f>>2]=c[e>>2];u=u+1|0;c[g>>2]=u}}while(0);v=c[o>>2]|0;if((s|0)==8){t=v<<8|t&255}else{t=v<<s|(1<<s)+ -1&t}c[o>>2]=t;B=(c[k>>2]|0)+s|0;c[k>>2]=B;if(B>>>0>=8){d=10;break}}if((d|0)==10){i=b;return}}function ND(a){a=a|0;var b=0,d=0,e=0;b=i;d=a+216|0;e=c[d>>2]|0;if(e>>>0<8){MD(a);e=c[d>>2]|0}if((e|0)==8){e=c[a+212>>2]&255;i=b;return e|0}if(e>>>0>8){e=(c[a+212>>2]|0)>>>(e+ -8|0)&255;i=b;return e|0}if((e|0)==0){e=-1;i=b;return e|0}e=c[a+212>>2]<<8-e&255;i=b;return e|0}function OD(a,b,c){a=a|0;b=b|0;c=c|0;i=i;return 0}function PD(a,b){a=a|0;b=b|0;var d=0;d=i;b=c[a+8>>2]|0;b=Bd[c[(c[b>>2]|0)+60>>2]&255](b,1)|0;i=d;return b|0}function QD(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;m=i;e=i;i=i+8|0;j=e;f=i;i=i+8|0;h=i;i=i+8|0;g=h;l=a+8|0;u=c[l>>2]|0;fd[c[(c[u>>2]|0)+12>>2]&511](u);u=c[l>>2]|0;if((jd[c[(c[u>>2]|0)+24>>2]&511](u)|0)==255){RD(a,b,d);u=l;u=c[u>>2]|0;t=u;t=c[t>>2]|0;t=t+16|0;t=c[t>>2]|0;fd[t&511](u);i=m;return}if(SD(a,j,f,g)|0){p=0;n=0;o=0}else{u=l;u=c[u>>2]|0;t=u;t=c[t>>2]|0;t=t+16|0;t=c[t>>2]|0;fd[t&511](u);i=m;return}a:while(1){q=c[e>>2]|0;b:do{if((q|0)==1785737827){break a}else if((q|0)==1768449138){u=c[l>>2]|0;if((jd[c[(c[u>>2]|0)+20>>2]&511](u)|0)==-1){break}u=c[l>>2]|0;if((jd[c[(c[u>>2]|0)+20>>2]&511](u)|0)==-1){break}u=c[l>>2]|0;if((jd[c[(c[u>>2]|0)+20>>2]&511](u)|0)==-1){break}u=c[l>>2]|0;if((jd[c[(c[u>>2]|0)+20>>2]&511](u)|0)==-1){break}u=c[l>>2]|0;if((jd[c[(c[u>>2]|0)+20>>2]&511](u)|0)==-1){break}u=c[l>>2]|0;if((jd[c[(c[u>>2]|0)+20>>2]&511](u)|0)==-1){break}u=c[l>>2]|0;if((jd[c[(c[u>>2]|0)+20>>2]&511](u)|0)==-1){break}u=c[l>>2]|0;if((jd[c[(c[u>>2]|0)+20>>2]&511](u)|0)==-1){break}u=c[l>>2]|0;if((jd[c[(c[u>>2]|0)+20>>2]&511](u)|0)==-1){break}u=c[l>>2]|0;if((jd[c[(c[u>>2]|0)+20>>2]&511](u)|0)==-1){break}q=c[l>>2]|0;q=jd[c[(c[q>>2]|0)+20>>2]&511](q)|0;if((q|0)==-1){break}u=c[l>>2]|0;if((jd[c[(c[u>>2]|0)+20>>2]&511](u)|0)==-1){break}u=c[l>>2]|0;if((jd[c[(c[u>>2]|0)+20>>2]&511](u)|0)==-1){break}u=c[l>>2]|0;if((jd[c[(c[u>>2]|0)+20>>2]&511](u)|0)==-1){break}c[b>>2]=q+1;n=1}else if((q|0)!=1785737832)if((q|0)==1668246642){r=c[l>>2]|0;r=jd[c[(c[r>>2]|0)+20>>2]&511](r)|0;if((r|0)==-1){break}q=c[l>>2]|0;q=jd[c[(c[q>>2]|0)+20>>2]&511](q)|0;if((q|0)==-1){break}q=(q&128|0)==0?q:q|-256;u=c[l>>2]|0;if((jd[c[(c[u>>2]|0)+20>>2]&511](u)|0)==-1){break}if((((r&128|0)==0?r:r|-256)|0)!=1){q=c[h>>2]|0;if((q|0)==3){break}q=q+ -3|0;r=0;while(1){u=c[l>>2]|0;jd[c[(c[u>>2]|0)+20>>2]&511](u)|0;r=r+1|0;if(r>>>0<q>>>0){}else{break b}}}u=c[l>>2]|0;u=jd[c[(c[u>>2]|0)+20>>2]&511](u)|0;if((u|0)==-1){break}t=c[l>>2]|0;t=jd[c[(c[t>>2]|0)+20>>2]&511](t)|0;if((t|0)==-1){break}s=c[l>>2]|0;s=jd[c[(c[s>>2]|0)+20>>2]&511](s)|0;if((s|0)==-1){break}r=c[l>>2]|0;r=jd[c[(c[r>>2]|0)+20>>2]&511](r)|0;if((r|0)==-1){break}r=t<<16|u<<24|s<<8|r;if((r|0)==0|(r|0)==17){r=1;k=35}else if((r|0)==12){r=3;k=35}else{if(!((r|0)!=21&(r&-5|0)!=16)){r=2;k=35}}do{if((k|0)==35){k=0;if(!((q|0)>(p|0)|o^1)){o=1;break}c[d>>2]=r;p=q;o=1}}while(0);q=c[h>>2]|0;if((q|0)==7){break}q=q+ -7|0;r=0;while(1){u=c[l>>2]|0;jd[c[(c[u>>2]|0)+20>>2]&511](u)|0;r=r+1|0;if(r>>>0<q>>>0){}else{break}}}else{q=c[h>>2]|0;if((q|0)==0){break}else{r=0}while(1){u=c[l>>2]|0;jd[c[(c[u>>2]|0)+20>>2]&511](u)|0;r=r+1|0;if(r>>>0<q>>>0){}else{break}}}}while(0);if(!(SD(a,j,f,g)|0)){k=44;break}}if((k|0)==44){u=l;u=c[u>>2]|0;t=u;t=c[t>>2]|0;t=t+16|0;t=c[t>>2]|0;fd[t&511](u);i=m;return}if(n&o){u=l;u=c[u>>2]|0;t=u;t=c[t>>2]|0;t=t+16|0;t=c[t>>2]|0;fd[t&511](u);i=m;return}RD(a,b,d);u=l;u=c[u>>2]|0;t=u;t=c[t>>2]|0;t=t+16|0;t=c[t>>2]|0;fdfd[c[(c[m>>2]|0)+12>>2]&511](m);i=f;return}else{c[j>>2]=b;c[h+4>>2]=8;Qe(0,185712,h);tc()}}function cE(b,d,e){b=b|0;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;j=i;g=i;i=i+8|0;h=g;n=i;i=i+8|0;o=n;k=i;i=i+16|0;m=k;l=b+16|0;c[l>>2]=13;f=b+24|0;c[f>>2]=0;c[f+4>>2]=0;c[k>>2]=13;k=m+8|0;c[k>>2]=0;c[k+4>>2]=0;c[b>>2]=-3;c[b+164>>2]=d;k=c[e>>2]|0;if((k|0)==6){p=c[e+8>>2]|0;c[b+4>>2]=p;a[b+32|0]=0}else if((k|0)==8){o=FW(20)|0;rt(o,d);p=b+4|0;c[p>>2]=o;a[b+32|0]=1;tt(o,Mf(e,m)|0);p=c[p>>2]|0}else{c[n>>2]=k;c[o+4>>2]=6;Qe(0,185712,o);tc()}c[b+8>>2]=0;if((c[p+12>>2]|0)<=0){i=j;return}ut(p,0,l)|0;k=c[l>>2]|0;if((k|0)!=8){c[g>>2]=k;c[h+4>>2]=8;Qe(0,185712,h);tc()}p=c[f>>2]|0;fd[c[(c[p>>2]|0)+12>>2]&511](p);i=j;return}function dE(b){b=b|0;var d=0,e=0,f=0,g=0,h=0;d=i;g=i;i=i+8|0;h=g;e=b+16|0;f=c[e>>2]|0;if((f|0)==8){h=c[b+24>>2]|0;fd[c[(c[h>>2]|0)+16>>2]&511](h);Of(e)}else if((f|0)!=13){c[g>>2]=f;c[h+4>>2]=8;Qe(0,185712,h);tc()}if((a[b+32|0]&1)==0){i=d;return}b=c[b+4>>2]|0;if((b|0)==0){i=d;return}st(b);HW(b);i=d;return}function eE(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;f=i;k=i;i=i+8|0;g=k;h=i;i=i+8|0;j=h;e=i;i=i+8|0;d=e;l=c[a>>2]|0;if((l|0)!=-3){c[a>>2]=-3;o=l;i=f;return o|0}n=a+16|0;m=a+24|0;l=a+8|0;a=a+4|0;if(b){b=c[n>>2]|0;if((b|0)==8){o=c[m>>2]|0;o=jd[c[(c[o>>2]|0)+20>>2]&511](o)|0;i=f;return o|0}else if((b|0)==13){o=-1;i=f;return o|0}else{o=e;c[o>>2]=b;o=d+4|0;c[o>>2]=8;o=185712;Qe(0,o,d);tc()}}while(1){b=c[n>>2]|0;if((b|0)==13){b=-1;l=15;break}else if((b|0)!=8){l=7;break}b=c[m>>2]|0;b=jd[c[(c[b>>2]|0)+20>>2]&511](b)|0;if((b|0)!=-1){l=15;break}b=c[n>>2]|0;if((b|0)!=8){l=10;break}b=c[m>>2]|0;fd[c[(c[b>>2]|0)+16>>2]&511](b);Of(n);b=(c[l>>2]|0)+1|0;c[l>>2]=b;o=c[a>>2]|0;if((b|0)>=(c[o+12>>2]|0)){continue}ut(o,b,n)|0;b=c[n>>2]|0;if((b|0)!=8){l=13;break}o=c[m>>2]|0;fdfd[c[(c[b>>2]|0)+12>>2]&511](b);c[v>>2]=0;c[f>>2]=0;c[u>>2]=5;f=FW(56)|0;v=FW(168)|0;w=c[b>>2]|0;x=c[w+96>>2]|0;w=jd[c[w+108>>2]&511](b)|0;bE(v,0,Cd[x&63](b,w,0,0,k)|0);aG(f,0,v,0);cG(f,k,0,0,0,0,0)|0;cG(f,j,0,0,0,0,0)|0;cG(f,g,0,0,0,0,0)|0;cG(f,a,0,0,0,0,0)|0;do{if((c[u>>2]|0)==1){if((c[s>>2]|0)!=1){break}if((c[r>>2]|0)!=10){break}if((Qc(c[q>>2]|0,185784)|0)!=0){break}if((c[a>>2]|0)!=7){break}Yu(c[m>>2]|0,185792,l,0)|0;p=c[p>>2]|0;if((p+ -1|0)>>>0<2){if((p|0)==1){t=+(c[o>>2]|0)}else{t=+h[o>>3]}if(t<=0.0){e=11}}else{e=11}if((e|0)==11){Of(a);c[m>>2]=0;c[d>>2]=0;c[a>>2]=5}Of(l)}}while(0);Of(g);Of(j);Of(k);if((f|0)==0){i=n;return}bG(f);HW(f);i=n;return}function jE(a){a=a|0;var b=0;b=i;Of(a);i=b;return}function kE(a){a=a|0;var b=0,d=0,e=0,f=0;b=i;d=i;i=i+8|0;e=i;i=i+8|0;if((c[a>>2]|0)!=7){e=0;i=b;return e|0}f=_u(c[a+8>>2]|0,185808,0,e)|0;a=c[e>>2]|0;if(f&(a|0)>0){f=a;i=b;return f|0}Qe(-1,185816,d);f=0;i=b;return f|0}function lE(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;d=i;f=i;i=i+8|0;g=i;i=i+8|0;j=g;m=i;i=i+8|0;n=m;o=i;i=i+16|0;b=o;k=i;i=i+16|0;e=k;c[o>>2]=13;l=b+8|0;c[l>>2]=0;c[l+4>>2]=0;c[k>>2]=13;h=e+8|0;c[h>>2]=0;c[h+4>>2]=0;do{if((c[a>>2]|0)==7){if((c[(Yu(c[a+8>>2]|0,185864,b,0)|0)>>2]|0)!=6){break}a=c[o>>2]|0;if((a|0)!=6){c[m>>2]=a;c[n+4>>2]=6;Qe(0,186424,n);tc()}l=c[l>>2]|0;if((c[l+12>>2]|0)<=1){break}if((c[(ut(l,0,e)|0)>>2]|0)!=1){break}k=c[k>>2]|0;if((k|0)!=1){c[g>>2]=k;c[j+4>>2]=1;Qe(0,186424,j);tc()}g=c[h>>2]|0;if((g|0)<=0){break}Of(e);Of(b);i=d;return g|0}}while(0);Qe(-1,185872,f);o=0;Of(e);Of(b);i=d;return o|0}function mE(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;d=i;f=i;i=i+8|0;g=i;i=i+8|0;j=g;m=i;i=i+8|0;n=m;o=i;i=i+16|0;b=o;k=i;i=i+16|0;e=k;c[o>>2]=13;l=b+8|0;c[l>>2]=0;c[l+4>>2]=0;c[k>>2]=13;h=e+8|0;c[h>>2]=0;c[h+4>>2]=0;do{if((c[a>>2]|0)==7){if((c[(Yu(c[a+8>>2]|0,185864,b,0)|0)>>2]|0)!=6){break}a=c[o>>2]|0;if((a|0)!=6){c[m>>2]=a;c[n+4>>2]=6;Qe(0,186424,n);tc()}l=c[l>>2]|0;if((c[l+12>>2]|0)<=1){break}if((c[(ut(l,1,e)|0)>>2]|0)!=1){break}k=c[k>>2]|0;if((k|0)!=1){c[g>>2]=k;c[j+4>>2]=1;Qe(0,186424,j);tc()}g=c[h>>2]|0;if((g|0)<=0){break}Of(e);Of(b);i=d;return g|0}}while(0);Qe(-1,185928,f);o=0;Of(e);Of(b);i=d;return o|0}function nE(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;e=i;f=i;i=i+8|0;g=i;i=i+8|0;j=g;m=i;i=i+8|0;n=m;o=i;i=i+16|0;d=o;k=i;i=i+16|0;b=k;c[o>>2]=13;l=d+8|0;c[l>>2]=0;c[l+4>>2]=0;c[k>>2]=13;h=b+8|0;c[h>>2]=0;c[h+4>>2]=0;if((c[a>>2]|0)!=7){o=0;Of(b);Of(d);i=e;return o|0}if((c[(Yu(c[a+8>>2]|0,185864,d,0)|0)>>2]|0)!=6){o=0;Of(b);Of(d);i=e;return o|0}a=c[o>>2]|0;if((a|0)!=6){c[m>>2]=a;c[n+4>>2]=6;Qe(0,186424,n);tc()}l=c[l>>2]|0;if((c[l+12>>2]|0)<=3){o=0;Of(b);Of(d);i=e;return o|0}do{if((c[(ut(l,2,b)|0)>>2]|0)==1){k=c[k>>2]|0;if((k|0)!=1){c[g>>2]=k;c[j+4>>2]=1;Qe(0,186424,j);tc()}g=c[h>>2]|0;if((g|0)<=0){break}Of(b);Of(d);i=e;return g|0}}while(0);Qe(-1,185984,f);o=0;Of(b);Of(d);i=e;return o|0}function oE(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;e=i;f=i;i=i+8|0;g=i;i=i+8|0;j=g;m=i;i=i+8|0;n=m;o=i;i=i+16|0;d=o;k=i;i=i+16|0;b=k;c[o>>2]=13;l=d+8|0;c[l>>2]=0;c[l+4>>2]=0;c[k>>2]=13;h=b+8|0;c[h>>2]=0;c[h+4>>2]=0;if((c[a>>2]|0)!=7){o=0;Of(b);Of(d);i=e;return o|0}if((c[(Yu(c[a+8>>2]|0,185864,d,0)|0)>>2]|0)!=6){o=0;Of(b);Of(d);i=e;return o|0}a=c[o>>2]|0;if((a|0)!=6){c[m>>2]=a;c[n+4>>2]=6;Qe(0,186424,n);tc()}l=c[l>>2]|0;if((c[l+12>>2]|0)<=3){o=0;Of(b);Of(d);i=e;return o|0}do{if((c[(ut(l,3,b)|0)>>2]|0)==1){k=c[k>>2]|0;if((k|0)!=1){c[g>>2]=k;c[j+4>>2]=1;Qe(0,186424,j);tc()}g=c[h>>2]|0;if((g|0)<=0){break}Of(b);Of(d);i=e;return g|0}}while(0);Qe(-1,186048,f);o=0;Of(b);Of(d);i=e;return o|0}function pE(a){a=a|0;var b=0,d=0,e=0,f=0;b=i;d=i;i=i+8|0;e=i;i=i+8|0;c[e>>2]=0;do{if((c[a>>2]|0)==7){f=_u(c[a+8>>2]|0,186112,0,e)|0;a=c[e>>2]|0;if(!(f&(a|0)>0)){break}i=b;return a|0}}while(0);Qe(-1,186120,d);f=0;i=b;return f|0}function qE(a){a=a|0;var b=0,d=0,e=0,f=0;b=i;d=i;i=i+8|0;e=i;i=i+8|0;c[e>>2]=0;do{if((c[a>>2]|0)==7){f=_u(c[a+8>>2]|0,186184,0,e)|0;a=c[e>>2]|0;if(!(f&(a|0)>0)){break}i=b;return a|0}}while(0);Qe(-1,186192,d);f=0;i=b;return f|0}function rE(a){a=a|0;var b=0,d=0,e=0,f=0;b=i;d=i;i=i+8|0;e=i;i=i+8|0;c[e>>2]=0;do{if((c[a>>2]|0)==7){f=_u(c[a+8>>2]|0,186248,0,e)|0;a=c[e>>2]|0;if(!(f&(a|0)>0)){break}i=b;return a|0}}while(0);Qe(-1,186256,d);f=0;i=b;return f|0}function sE(a){a=a|0;var b=0,d=0,e=0,f=0;b=i;d=i;i=i+8|0;e=i;i=i+8|0;c[e>>2]=0;do{if((c[a>>2]|0)==7){f=_u(c[a+8>>2]|0,186304,0,e)|0;a=c[e>>2]|0;if(!(f&(a|0)>0)){break}i=b;return a|0}}while(0);Qe(-1,186312,d);f=0;i=b;return f|0}function tE(a){a=a|0;var b=0,d=0,e=0;b=i;d=i;i=i+8|0;e=i;i=i+8|0;c[e>>2]=0;if((c[a>>2]|0)!=7){e=0;i=b;return e|0}_u(c[a+8>>2]|0,186368,0,e)|0;a=c[e>>2]|0;if((a|0)>=0){e=a;i=b;return e|0}Qe(-1,186376,d);e=0;i=b;return e|0}function uE(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,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0;d=i;z=i;i=i+8|0;y=z;m=i;i=i+8|0;l=m;k=i;i=i+8|0;o=k;p=i;i=i+8|0;q=p;s=i;i=i+8|0;t=s;v=i;i=i+8|0;w=v;x=i;i=i+8|0;u=x;n=i;i=i+8|0;C=n;A=i;i=i+16|0;e=A;h=i;i=i+16|0;f=h;D=i;i=i+16|0;r=D;c[A>>2]=13;B=e+8|0;c[B>>2]=0;c[B+4>>2]=0;c[h>>2]=13;g=f+8|0;c[g>>2]=0;c[g+4>>2]=0;c[D>>2]=13;D=r+8|0;c[D>>2]=0;c[D+4>>2]=0;if((c[a>>2]|0)!=7){if((b|0)==0){e=186544}else{e=c[b+28>>2]|0}c[n>>2]=e;Qe(-1,186496,C);D=0;i=d;return D|0}n=a+8|0;Yu(c[n>>2]|0,186552,e,0)|0;if((c[A>>2]|0)!=4){if((b|0)==0){f=186544}else{f=c[b+28>>2]|0}c[z>>2]=f;Qe(-1,186696,y);Of(e);D=0;i=d;return D|0}y=c[B>>2]|0;do{if((Qc(y|0,186560)|0)==0){g=c[a>>2]|0;if((g|0)==7){Yu(c[n>>2]|0,186568,f,0)|0;j=FW(12)|0;wE(j,f);Of(f);break}else{c[x>>2]=g;c[u+4>>2]=7;Qe(0,188448,u);tc()}}else{if((Qc(y|0,186576)|0)==0){u=c[a>>2]|0;if((u|0)!=7){c[v>>2]=u;c[w+4>>2]=7;Qe(0,188448,w);tc()}Yu(c[n>>2]|0,186584,f,0)|0;u=c[a>>2]|0;if((u|0)==7){Yu(c[n>>2]|0,186568,r,0)|0;j=FW(16)|0;zE(j,f,r);Of(f);Of(r);break}else{c[s>>2]=u;c[t+4>>2]=7;Qe(0,188448,t);tc()}}if((Qc(y|0,186592)|0)==0){j=FW(12)|0;CE(j,a);break}if((Qc(y|0,186600)|0)==0){r=c[a>>2]|0;if((r|0)==7){Yu(c[n>>2]|0,186600,f,0)|0;j=FW(8)|0;FE(j,f,b);Of(f);break}else{c[p>>2]=r;c[q+4>>2]=7;Qe(0,188448,q);tc()}}if((Qc(y|0,186608)|0)==0){j=c[a>>2]|0;if((j|0)!=7){c[k>>2]=j;c[o+4>>2]=7;Qe(0,188448,o);tc()}Yu(c[n>>2]|0,186616,f,0)|0;j=FW(8)|0;c[j>>2]=187200;k=j+4|0;c[k>>2]=0;if((c[h>>2]|0)==4){D=FW(32)|0;fe(D,c[g>>2]|0);c[k>>2]=D}Of(f);break}if((Qc(y|0,186624)|0)==0){j=FW(20)|0;KE(j,a);break}if((Qc(y|0,186632)|0)==0){j=FW(56)|0;QE(j,a);break}if((Qc(y|0,186648)|0)==0){j=FW(24)|0;NE(j,a);break}if((Qc(y|0,186656)|0)==0){g=c[a>>2]|0;if((g|0)==7){Yu(c[n>>2]|0,186672,f,0)|0;j=FW(8)|0;TE(j,f);Of(f);break}else{c[m>>2]=g;c[l+4>>2]=7;Qe(0,188448,l);tc()}}else{if((Qc(y|0,186680)|0)==0){j=FW(12)|0;WE(j,a);break}else{j=FW(8)|0;c[j>>2]=188048;D=FW(32)|0;fe(D,y);c[j+4>>2]=D;break}}}}while(0);Of(e);if((j|0)==0){D=0;i=d;return D|0}if(jd[c[(c[j>>2]|0)+8>>2]&511](j)|0){D=j;i=d;return D|0}fdfd[c[(c[F>>2]|0)+12>>2]&511](F);while(1){b:do{if(jd[c[(c[F>>2]|0)+88>>2]&511](F)|0){H=sd[c[(c[F>>2]|0)+92>>2]&127](F,4096,D)|0;E=10}else{H=0;while(1){I=jd[c[(c[F>>2]|0)+20>>2]&511](F)|0;if((I|0)==-1){E=10;break b}a[D+H|0]=I;H=H+1|0;if((H|0)>=4096){H=4096;break}}}}while(0);if((E|0)==10){E=0;if((H|0)==0){break a}}ne(G,D,H)|0}}else if((G|0)==3){I=FW(32)|0;ie(I,c[z>>2]|0);c[v>>2]=I;break}else{Qe(-1,187456,F);break}}}while(0);Of(e);D=c[d>>2]|0;if((D|0)!=7){c[B>>2]=D;c[y+4>>2]=7;Qe(0,188448,y);tc()}do{if((c[(Yu(c[b>>2]|0,187512,e,0)|0)>>2]|0)==1){y=c[C>>2]|0;if((y|0)!=1){c[w>>2]=y;c[x+4>>2]=1;Qe(0,188448,x);tc()}w=c[z>>2]|0;c[k>>2]=w;if((c[v>>2]|0)==0&w>>>0>4){c[u>>2]=w;Qe(-1,187520,t);break}t=c[d>>2]|0;if((t|0)!=7){c[q>>2]=t;c[r+4>>2]=7;Qe(0,188448,r);tc()}do{if((c[(Yu(c[b>>2]|0,187584,o,0)|0)>>2]|0)==7){I=FW(232)|0;GG(I,o);c[s>>2]=I}else{q=c[k>>2]|0;if(!((q|0)==4|(q|0)==0)){break}c[n>>2]=q;Qe(-1,187592,p);Of(o)}}while(0);n=c[d>>2]|0;if((n|0)!=7){c[l>>2]=n;c[m+4>>2]=7;Qe(0,188448,m);tc()}if((c[(Zu(c[b>>2]|0,187648,j)|0)>>2]|0)==9){break}k=c[k>>2]|0;if(k>>>0>=5){break}c[g>>2]=k;Qe(-1,187656,h);Of(j)}else{if((c[v>>2]|0)!=0){break}Qe(-1,187712,A)}}while(0);Of(e);i=f;return}function RE(a){a=a|0;var b=0,d=0;b=i;c[a>>2]=187440;Of(a+24|0);Of(a+8|0);d=c[a+48>>2]|0;if((d|0)!=0){ke(d);HW(d)}d=c[a+44>>2]|0;if((d|0)==0){HW(a);i=b;return}FG(d);HW(d);HW(a);i=b;return}function SE(a){a=a|0;var b=0,d=0;b=i;c[a>>2]=187440;Of(a+24|0);Of(a+8|0);d=c[a+48>>2]|0;if((d|0)!=0){ke(d);HW(d)}a=c[a+44>>2]|0;if((a|0)==0){i=b;return}FG(a);HW(a);i=b;return}function TE(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0;g=i;f=i;i=i+4096|0;c[b>>2]=187776;h=b+4|0;c[h>>2]=0;b=c[d>>2]|0;if((b|0)==8){b=c[d+8>>2]|0;d=FW(32)|0;ee(d);c[h>>2]=d;fdfd[c[(c[d>>2]|0)+4>>2]&511](d);j=a+16|0;Of(j);j=a+32|0;Of(j);j=a+48|0;Of(j);i=b;return}function NF(a,b){a=a|0;b=b|0;var c=0.0,d=0.0,e=0.0,f=0.0,g=0.0,j=0.0,k=0.0;d=+h[b>>3];h[a+8>>3]=d;f=+h[b+8>>3];h[a+16>>3]=f;k=+h[b+16>>3];h[a+24>>3]=k;j=+h[b+24>>3];h[a+32>>3]=j;e=+h[b+32>>3];h[a+40>>3]=e;c=+h[b+40>>3];h[a+48>>3]=c;g=1.0/(d*j-f*k);h[a+56>>3]=j*g;h[a+64>>3]=-0.0-g*f;h[a+72>>3]=-0.0-g*k;h[a+80>>3]=g*d;h[a+88>>3]=g*(k*c-j*e);h[a+96>>3]=g*(f*e-d*c);i=i;return}function OF(a,b,c,d,e){a=a|0;b=+b;c=+c;d=d|0;e=e|0;h[d>>3]=+h[a+88>>3]+(+h[a+56>>3]*b+ +h[a+72>>3]*c);h[e>>3]=+h[a+96>>3]+(+h[a+64>>3]*b+ +h[a+80>>3]*c);i=i;return}function PF(a,b,d,e,f){a=a|0;b=+b;d=+d;e=e|0;f=f|0;c[e>>2]=~~(+h[a+40>>3]+(+h[a+8>>3]*b+ +h[a+24>>3]*d)+.5);c[f>>2]=~~(+h[a+48>>3]+(+h[a+16>>3]*b+ +h[a+32>>3]*d)+.5);i=i;return}function QF(a,b){a=a|0;b=b|0;i=i;return}function RF(a,b,c){a=a|0;b=b|0;c=c|0;i=i;return}function SF(a,b){a=a|0;b=b|0;i=i;return}function TF(a,b,c){a=a|0;b=b|0;c=c|0;i=i;return}function UF(a,b,c){a=a|0;b=b|0;c=c|0;i=i;return}function VF(a,b,c){a=a|0;b=b|0;c=c|0;i=i;return}function WF(a){a=a|0;var b=0,d=0;b=i;a=a+104|0;d=c[a>>2]|0;if((d|0)!=0){ko(d);HW(d)}d=FW(16)|0;jo(d,1);c[a>>2]=d;i=b;return}function XF(a){a=a|0;var b=0;b=a+104|0;a=c[b>>2]|0;c[b>>2]=0;i=i;return a|0}function YF(a,b,d){a=a|0;b=b|0;d=d|0;c[a>>2]=b;c[a+4>>2]=d;c[a+8>>2]=-1;i=i;return}function ZF(a){a=a|0;i=i;return}function _F(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0;g=i;j=b+8|0;h=b+4|0;a:while(1){l=c[j>>2]|0;if((l|0)<0){l=jd[c[b>>2]&511](c[h>>2]|0)|0}else{c[j>>2]=-1}if((l|0)==-1){k=10;break}else if((l|0)!=37){if((a[190720+l|0]|0)==1){continue}else{break}}while(1){l=c[j>>2]|0;if((l|0)<0){l=jd[c[b>>2]&511](c[h>>2]|0)|0}else{c[j>>2]=-1}if((l|0)==10|(l|0)==13){continue a}else if((l|0)==-1){k=10;break a}}}if((k|0)==10){a[d]=0;m=0;k=0;l=f;c[l>>2]=k;i=g;return m|0}e=e+ -1|0;a[d]=l;b:do{if((l|0)==40){l=1;k=1;while(1){m=c[j>>2]|0;if((m|0)<0){m=jd[c[b>>2]&511](c[h>>2]|0)|0;c[j>>2]=m;if((m|0)==-1){break b}}c[j>>2]=-1;if((k|0)<(e|0)){a[d+k|0]=m;k=k+1|0}if((m|0)==92){l=0;continue}if(l&(m|0)==41){break}else{l=1}}}else if((l|0)==60){k=1;do{l=c[j>>2]|0;if((l|0)<0){l=jd[c[b>>2]&511](c[h>>2]|0)|0;c[j>>2]=l;if((l|0)==-1){break b}}c[j>>2]=-1;do{if((k|0)<(e|0)){if((a[190720+l|0]|0)==1){break}a[d+k|0]=l;k=k+1|0}}while(0);}while((l|0)!=62)}else if((l|0)==91|(l|0)==93){k=1}else{k=1;while(1){l=c[j>>2]|0;if((k|0)>=(e|0)){break}if((l|0)<0){l=jd[c[b>>2]&511](c[h>>2]|0)|0;c[j>>2]=l;if((l|0)==-1){break b}}if((a[190720+l|0]|0)!=0){break b}c[j>>2]=-1;a[d+k|0]=l;k=k+1|0}while(1){if((l|0)<0){l=jd[c[b>>2]&511](c[h>>2]|0)|0;c[j>>2]=l;if((l|0)==-1){break b}}if((a[190720+l|0]|0)!=0){break b}c[j>>2]=-1;l=-1}}}while(0);a[d+k|0]=0;m=1;l=f;c[l>>2]=k;i=g;return m|0}function $F(a){a=a|0;var b=0,d=0,e=0,f=0,g=0;b=i;d=a+8|0;f=c[d>>2]|0;if((f|0)<=0){xo(a);i=b;return}e=0;do{g=c[(c[a>>2]|0)+(e<<2)>>2]|0;if((g|0)!=0){f=c[g>>2]|0;if((f|0)!=0){ke(f);HW(f)}HW(g);f=c[d>>2]|0}e=e+1|0;}while((e|0)<(f|0));xo(a);i=b;return}function aG(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0;g=i;j=b+16|0;c[j>>2]=13;h=b+24|0;c[h>>2]=0;c[h+4>>2]=0;h=b+32|0;c[h>>2]=13;k=b+40|0;c[k>>2]=0;c[k+4>>2]=0;c[b>>2]=d;d=b+4|0;c[d>>2]=e;c[b+48>>2]=0;a[b+8|0]=f&1;fE(e,j,-1)|0;fE(c[d>>2]|0,h,-1)|0;i=g;return}function bG(a){a=a|0;var b=0;b=i;Of(a+16|0);Of(a+32|0);a=c[a+4>>2]|0;if((a|0)==0){i=b;return}dE(a);HW(a);i=b;return}function cG(a,b,d,e,f,g,h){a=a|0;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;j=i;l=i;i=i+16|0;k=l;m=k+4|0;c[m>>2]=0;c[k+8>>2]=0;c[l>>2]=m;a=dG(a,b,d,e,f,g,h,k)|0;xn(k,c[k+4>>2]|0);i=j;return a|0}function dG(b,d,e,f,g,h,j,k){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;j=j|0;k=k|0;var 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;l=i;A=i;i=i+8|0;B=A;q=i;i=i+8|0;r=i;i=i+8|0;s=r;t=i;i=i+8|0;u=i;i=i+8|0;w=i;i=i+8|0;v=w;x=i;i=i+16|0;m=x;c[x>>2]=13;z=m+8|0;c[z>>2]=0;y=z+4|0;c[y>>2]=0;p=b+48|0;n=b+16|0;if((c[p>>2]|0)==2){Of(n);D=b+32|0;Of(D);C=b+4|0;fE(c[C>>2]|0,n,-1)|0;fE(c[C>>2]|0,D,-1)|0;c[p>>2]=0}C=c[n>>2]|0;do{if((C|0)==10){p=b+24|0;D=c[p>>2]|0;if((Qc(D|0,190976)|0)==0){fG(b,-1);If(d,c[b>>2]|0)|0;q=d+8|0;while(1){r=c[n>>2]|0;if((r|0)==10){if((Qc(c[p>>2]|0,190984)|0)==0){break}}else if((r|0)==12){o=11;break}s=dG(b,m,e,f,g,h,j,k)|0;r=c[d>>2]|0;if((r|0)!=6){o=9;break}tt(c[q>>2]|0,s)}if((o|0)==9){c[w>>2]=r;c[v+4>>2]=6;Qe(0,191224,v);tc()}if((o|0)==11){j=c[b+4>>2]|0;if((c[j+16>>2]|0)==8){j=c[j+24>>2]|0;j=jd[c[(c[j>>2]|0)+48>>2]&511](j)|0}else{j=-1}Qe(j,190992,u)}fG(b,-1);i=l;return d|0}if((Qc(D|0,191024)|0)!=0){if((C|0)==1){o=38;break}else{break}}fG(b,h);Jf(d,c[b>>2]|0)|0;v=b+4|0;u=d+8|0;while(1){w=c[n>>2]|0;if((w|0)==10){if((Qc(c[p>>2]|0,191032)|0)==0){break}}else if((w|0)==4){w=Ge(c[p>>2]|0)|0;fG(b,-1);if(((c[n>>2]|0)+ -11|0)>>>0<2){o=26;break}y=dG(b,m,e,f,g,h,j,k)|0;x=c[d>>2]|0;if((x|0)!=7){o=24;break}Tu(c[u>>2]|0,w,y);continue}else if((w|0)==12){o=27;break}w=c[v>>2]|0;if((c[w+16>>2]|0)==8){w=c[w+24>>2]|0;w=jd[c[(c[w>>2]|0)+48>>2]&511](w)|0}else{w=-1}Qe(w,191040,t);fG(b,-1)}if((o|0)==24){c[r>>2]=x;c[s+4>>2]=7;Qe(0,191224,s);tc()}else if((o|0)==26){Fe(w);if((c[n>>2]|0)==12){o=27}}if((o|0)==27){m=c[v>>2]|0;if((c[m+16>>2]|0)==8){m=c[m+24>>2]|0;m=jd[c[(c[m>>2]|0)+48>>2]&511](m)|0}else{m=-1}Qe(m,191080,q)}do{if((a[b+8|0]&1)!=0){if((c[b+32>>2]|0)!=10){break}if((Qc(c[b+40>>2]|0,191112)|0)!=0){break}b=gG(b,d,e,f,g,h,j,k)|0;if((b|0)==0){Of(d);c[u>>2]=0;c[u+4>>2]=0;c[d>>2]=11;i=l;return d|0}else{Lf(d,b)|0;i=l;return d|0}}}while(0);fG(b,-1);i=l;return d|0}else if((C|0)==1){o=38}}while(0);if((o|0)==38){g=b+24|0;j=c[g>>2]|0;fG(b,-1);do{if((c[n>>2]|0)==1){if((c[b+32>>2]|0)!=10){break}if((Qc(c[b+40>>2]|0,191120)|0)!=0){break}C=c[g>>2]|0;D=d+8|0;c[d>>2]=9;c[D>>2]=j;c[D+4>>2]=C;fG(b,-1);fG(b,-1);i=l;return d|0}}while(0);D=d+8|0;c[D+4>>2]=0;c[d>>2]=1;c[D>>2]=j;i=l;return d|0}k=(C|0)==3;if((e|0)==0|k^1){$W(d|0,n|0,16)|0;D=b+24|0;c[D>>2]=0;c[D+4>>2]=0;c[n>>2]=5;fG(b,-1);i=l;return d|0}if(!k){c[A>>2]=C;c[B+4>>2]=3;Qe(0,191224,B);tc()}C=c[b+24>>2]|0;n=FW(32)|0;ee(n);c[z>>2]=0;c[y>>2]=0;c[x>>2]=5;k=FW(316)|0;D=FW(56)|0;Tj(D,c[C+28>>2]|0,0,c[C+24>>2]|0,m);Fu(k,D,e,f,g,h,j);fd[c[(c[k>>2]|0)+12>>2]&511](k);j=jd[c[(c[k>>2]|0)+20>>2]&511](k)|0;if((j|0)!=-1){j=j&255;while(1){me(n,j)|0;j=jd[c[(c[k>>2]|0)+20>>2]&511](k)|0;if((j|0)==-1){break}else{j=j&255}}}if((k|0)!=0){fd[c[(c[k>>2]|0)+4>>2]&511](k)}D=d+8|0;c[D+4>>2]=0;c[d>>2]=3;c[D>>2]=n;fG(b,-1);i=l;return d|0}function eG(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=i;a=dG(a,b,0,0,0,0,0,c)|0;i=d;return a|0}function fG(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;d=i;e=a+48|0;f=c[e>>2]|0;do{if((f|0)>0){if((f|0)<2){c[e>>2]=f+1;break}else{c[e>>2]=0;break}}else{if((c[a+32>>2]|0)!=10){break}if((Qc(c[a+40>>2]|0,191216)|0)!=0){break}eE(c[a+4>>2]|0,0)|0;c[e>>2]=1}}while(0);g=a+16|0;Of(g);f=a+32|0;$W(g|0,f|0,16)|0;if((c[e>>2]|0)>0){g=a+40|0;c[g>>2]=0;c[g+4>>2]=0;c[f>>2]=5;i=d;return}else{fE(c[a+4>>2]|0,f,b)|0;i=d;return}}function gG(a,b,d,e,f,g,h,j){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;j=j|0;var 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;k=i;m=i;i=i+8|0;l=m;u=i;i=i+8|0;z=i;i=i+8|0;A=i;i=i+8|0;s=A;q=i;i=i+16|0;o=q;y=i;i=i+8|0;x=y;c[q>>2]=13;r=o+8|0;c[r>>2]=0;p=r+4|0;c[p>>2]=0;t=a+4|0;gE(c[t>>2]|0);w=c[t>>2]|0;if((c[w+16>>2]|0)==8){w=c[w+24>>2]|0;w=jd[c[(c[w>>2]|0)+48>>2]&511](w)|0}else{w=-1}B=c[b>>2]|0;if((B|0)!=7){c[A>>2]=B;c[s+4>>2]=7;Qe(0,191224,s);tc()}s=b+8|0;Yu(c[s>>2]|0,191128,o,j)|0;if((c[q>>2]|0)==1){z=c[r>>2]|0;Of(o)}else{j=c[t>>2]|0;if((c[j+16>>2]|0)==8){j=c[j+24>>2]|0;j=jd[c[(c[j>>2]|0)+48>>2]&511](j)|0}else{j=-1}Qe(j,191136,z);Of(o);z=0}j=c[a>>2]|0;do{if((j|0)!=0){if(!(mn(j,w,x)|0)){break}z=(c[y>>2]|0)-w|0}}while(0);x=c[t>>2]|0;if((c[x+16>>2]|0)!=8){B=0;i=k;return B|0}x=c[x+24>>2]|0;if((x|0)==0){B=0;i=k;return B|0}x=jd[c[(c[x>>2]|0)+64>>2]&511](x)|0;y=c[t>>2]|0;if((c[y>>2]|0)!=-3){c[y>>2]=-3;y=c[t>>2]|0;w=w+ -1|0}if((c[y+16>>2]|0)==8){B=c[y+24>>2]|0;Gd[c[(c[B>>2]|0)+52>>2]&255](B,w+z|0,0)}fG(a,-1);fG(a,-1);y=a+16|0;do{if((c[y>>2]|0)==10){if((Qc(c[a+24>>2]|0,191176)|0)!=0){v=22;break}fG(a,-1);n=z}else{v=22}}while(0);do{if((v|0)==22){v=c[t>>2]|0;if((c[v+16>>2]|0)==8){v=c[v+24>>2]|0;v=jd[c[(c[v>>2]|0)+48>>2]&511](v)|0}else{v=-1}Qe(v,191192,u);if((c[a>>2]|0)==0){n=z+5e3|0;break}u=a+24|0;while(1){if((c[y>>2]|0)==10){if((Qc(c[u>>2]|0,191176)|0)==0){break}}v=c[a>>2]|0;z=c[t>>2]|0;if((c[z+16>>2]|0)==8){z=c[z+24>>2]|0;z=jd[c[(c[z>>2]|0)+48>>2]&511](z)|0}else{z=-1}if((nn(v,z)|0)!=(g|0)){break}if((c[y>>2]|0)==12){break}fG(a,-1)}a=c[t>>2]|0;if((c[a+16>>2]|0)==8){a=c[a+24>>2]|0;a=jd[c[(c[a>>2]|0)+48>>2]&511](a)|0}else{a=-1}a=a-w|0;if((c[y>>2]|0)!=10){n=a;break}if((Qc(c[u>>2]|0,191176)|0)!=0){n=a;break}c[p>>2]=0;c[q>>2]=1;c[r>>2]=a;p=c[b>>2]|0;if((p|0)==7){Wu(c[s>>2]|0,191128,o);Of(o);n=a;break}else{c[m>>2]=p;c[l+4>>2]=7;Qe(0,191224,l);tc()}}}while(0);l=Cd[c[(c[x>>2]|0)+96>>2]&63](x,w,1,n,b)|0;if((d|0)!=0){B=FW(316)|0;Fu(B,l,d,e,f,g,h);l=B}B=qj(l,b)|0;i=k;return B|0}function hG(a){a=a|0;i=i;return}function iG(a){a=a|0;i=i;return}function jG(a,b){a=a|0;b=b|0;var d=0;d=i;c[a+12>>2]=b;b=b>>>0>1073741823?-1:b<<2;c[a>>2]=GW(b)|0;c[a+4>>2]=GW(b)|0;c[a+8>>2]=-1;i=d;return}function kG(a){a=a|0;var b=0,d=0,e=0,f=0,g=0;b=i;d=a+8|0;g=c[a>>2]|0;if((c[d>>2]|0)>=0){e=a+4|0;f=0;while(1){g=c[g+(f<<2)>>2]|0;if((g|0)!=0){fd[c[(c[g>>2]|0)+4>>2]&511](g)}g=c[(c[e>>2]|0)+(f<<2)>>2]|0;if((g|0)!=0){fd[c[(c[g>>2]|0)+4>>2]&511](g)}g=c[a>>2]|0;if((f|0)<(c[d>>2]|0)){f=f+1|0}else{break}}}if((g|0)!=0){IW(g)}a=c[a+4>>2]|0;if((a|0)==0){i=b;return}IW(a);i=b;return}function lG(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0;d=i;f=a+8|0;if((c[f>>2]|0)<0){j=0;i=d;return j|0}j=c[c[a>>2]>>2]|0;if(Bd[c[(c[j>>2]|0)+8>>2]&255](j,b)|0){j=c[c[a+4>>2]>>2]|0;i=d;return j|0}if((c[f>>2]|0)<1){j=0;i=d;return j|0}else{g=1}while(1){j=c[(c[a>>2]|0)+(g<<2)>>2]|0;if(Bd[c[(c[j>>2]|0)+8>>2]&255](j,b)|0){break}if((g|0)<(c[f>>2]|0)){g=g+1|0}else{a=0;e=10;break}}if((e|0)==10){i=d;return a|0}j=c[a>>2]|0;f=c[j+(g<<2)>>2]|0;b=a+4|0;e=c[(c[b>>2]|0)+(g<<2)>>2]|0;if((g|0)>0){while(1){h=g+ -1|0;c[j+(g<<2)>>2]=c[j+(h<<2)>>2];j=c[b>>2]|0;c[j+(g<<2)>>2]=c[j+(h<<2)>>2];j=c[a>>2]|0;if((h|0)>0){g=h}else{break}}}c[j>>2]=f;c[c[b>>2]>>2]=e;j=e;i=d;return j|0}function mG(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0;e=i;g=a+8|0;h=c[g>>2]|0;j=h+1|0;f=a+12|0;if((h|0)==((c[f>>2]|0)+ -1|0)){j=c[(c[a>>2]|0)+(h<<2)>>2]|0;if((j|0)!=0){fd[c[(c[j>>2]|0)+4>>2]&511](j);h=c[g>>2]|0}g=c[(c[a+4>>2]|0)+(h<<2)>>2]|0;if((g|0)!=0){fd[c[(c[g>>2]|0)+4>>2]&511](g)}j=(c[f>>2]|0)+ -1|0}else{c[g>>2]=j}f=a+4|0;if((j|0)<=0){j=a;j=c[j>>2]|0;c[j>>2]=b;j=f;j=c[j>>2]|0;c[j>>2]=d;i=e;return}while(1){g=j+ -1|0;h=c[a>>2]|0;c[h+(j<<2)>>2]=c[h+(g<<2)>>2];h=c[f>>2]|0;c[h+(j<<2)>>2]=c[h+(g<<2)>>2];if((g|0)>0){j=g}else{break}}j=a;j=c[j>>2]|0;c[j>>2]=b;j=f;j=c[j>>2]|0;c[j>>2]=d;i=e;return}function nG(a){a=a|0;i=i;return c[a+12>>2]|0}function oG(a){a=a|0;i=i;return(c[a+8>>2]|0)+1|0}function pG(a,b){a=a|0;b=b|0;i=i;return c[(c[a+4>>2]|0)+(b<<2)>>2]|0}function qG(a,b){a=a|0;b=b|0;i=i;return c[(c[a>>2]|0)+(b<<2)>>2]|0}function rG(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;e=i;f=FW(16)|0;c[f+12>>2]=b;b=b>>>0>1073741823?-1:b<<2;c[f>>2]=GW(b)|0;c[f+4>>2]=GW(b)|0;c[f+8>>2]=-1;c[a+4>>2]=f;c[a>>2]=d;i=e;return}function sG(a){a=a|0;var b=0,d=0,e=0,f=0,g=0;b=i;a=c[a+4>>2]|0;if((a|0)==0){i=b;return}e=a+8|0;g=c[a>>2]|0;if((c[e>>2]|0)>=0){d=a+4|0;f=0;while(1){g=c[g+(f<<2)>>2]|0;if((g|0)!=0){fd[c[(c[g>>2]|0)+4>>2]&511](g)}g=c[(c[d>>2]|0)+(f<<2)>>2]|0;if((g|0)!=0){fd[c[(c[g>>2]|0)+4>>2]&511](g)}g=c[a>>2]|0;if((f|0)<(c[e>>2]|0)){f=f+1|0}else{break}}}if((g|0)!=0){IW(g)}d=c[a+4>>2]|0;if((d|0)!=0){IW(d)}HW(a);i=b;return}function tG(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;e=i;g=i;i=i+16|0;f=g;c[g>>2]=13;g=f+8|0;c[g>>2]=0;c[g+4>>2]=0;g=b+4|0;_m(c[a>>2]|0,c[b>>2]|0,c[g>>2]|0,f,0)|0;d=FW(12)|0;b=c[b>>2]|0;g=c[g>>2]|0;c[d>>2]=191416;c[d+4>>2]=b;c[d+8>>2]=g;g=FW(24)|0;c[g>>2]=191368;b=g+8|0;c[b>>2]=13;c[g+16>>2]=0;c[g+20>>2]=0;Mf(f,b)|0;h=c[a+4>>2]|0;l=h+8|0;j=c[l>>2]|0;k=j+1|0;a=h+12|0;if((j|0)==((c[a>>2]|0)+ -1|0)){k=c[(c[h>>2]|0)+(j<<2)>>2]|0;if((k|0)!=0){fd[c[(c[k>>2]|0)+4>>2]&511](k);j=c[l>>2]|0}k=h+4|0;j=c[(c[k>>2]|0)+(j<<2)>>2]|0;if((j|0)!=0){fdfdfd[c[(c[j>>2]|0)+4>>2]&511](j);h=c[g>>2]|0;g=k;break}}else{c[g>>2]=0;h=0;g=0}}while(0);b=oH(b,d,e,g,h)|0;if((b|0)!=0){i=f;return b|0}Fe(g);i=f;return b|0}function lH(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0;f=i;g=i;i=i+8|0;j=g;c[g>>2]=0;do{if((a[b+8|0]&1)==0){if((a[e]&1)==0){h=Cn(c[e+8>>2]|0,c[e+12>>2]|0,0)|0}else{h=Dn(c[(c[e+4>>2]|0)+28>>2]|0,0)|0}if((h|0)==0){h=0;break}if((a[h+64|0]&1)==0){j=0}else{j=Mn(h,j)|0}fd[c[(c[h>>2]|0)+4>>2]&511](h);h=j}else{h=0}}while(0);b=oH(b,d,e,h,c[g>>2]|0)|0;if((b|0)!=0){i=f;return b|0}Fe(h);i=f;return b|0}function mH(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0;g=i;a=pH(a,b,c,d,e,f)|0;i=g;return a|0}function nH(d,e,f,g){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;h=i;j=i;i=i+8|0;l=j;k=c[d+4>>2]|0;do{if((a[f]&1)==0){if((NJ(k,c[f+8>>2]|0,c[f+12>>2]|0,0,l)|0)==0){break}else{d=0}i=h;return d|0}else{if((LJ(k,c[(c[f+4>>2]|0)+28>>2]|0,0,l)|0)==0){break}else{d=0}i=h;return d|0}}while(0);k=ye(256,4)|0;l=0;do{m=k+(l<<1)|0;b[m>>1]=0;n=c[g+(l<<2)>>2]|0;if((n|0)!=0){b[m>>1]=gK(c[j>>2]|0,n)|0}l=l+1|0;}while((l|0)<256);n=FW(40)|0;m=c[j>>2]|0;Wp(n,e,f);c[n>>2]=201936;c[n+20>>2]=d;c[n+24>>2]=m;c[n+28>>2]=k;c[n+32>>2]=256;a[n+36|0]=0;i=h;return n|0}function oH(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;h=i;j=i;i=i+8|0;k=j;l=c[b+4>>2]|0;do{if((a[e]&1)==0){if((NJ(l,c[e+8>>2]|0,c[e+12>>2]|0,0,k)|0)==0){break}else{d=0}i=h;return d|0}else{if((LJ(l,c[(c[e+4>>2]|0)+28>>2]|0,0,k)|0)==0){break}else{d=0}i=h;return d|0}}while(0);l=FW(40)|0;k=c[j>>2]|0;Wp(l,d,e);c[l>>2]=201936;c[l+20>>2]=b;c[l+24>>2]=k;c[l+28>>2]=f;c[l+32>>2]=g;a[l+36|0]=0;g=l;i=h;return g|0}function pH(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;j=i;m=i;i=i+8|0;k=m;l=c[b+4>>2]|0;do{if((a[e]&1)==0){if((NJ(l,c[e+8>>2]|0,c[e+12>>2]|0,h,k)|0)==0){break}else{e=0}i=j;return e|0}else{if((LJ(l,c[(c[e+4>>2]|0)+28>>2]|0,h,k)|0)==0){break}else{e=0}i=j;return e|0}}while(0);h=FW(40)|0;m=c[m>>2]|0;Wp(h,d,e);c[h>>2]=201936;c[h+20>>2]=b;c[h+24>>2]=m;c[h+28>>2]=f;c[h+32>>2]=g;a[h+36|0]=1;i=j;return h|0}function qH(a){a=a|0;var b=0,d=0;b=i;c[a>>2]=201936;d=c[a+24>>2]|0;if((d|0)!=0){SJ(d)|0}d=c[a+28>>2]|0;if((d|0)==0){Yp(a);HW(a);i=b;return}Fe(d);Yp(a);HW(a);i=b;return}function rH(a){a=a|0;var b=0,d=0;b=i;c[a>>2]=201936;d=c[a+24>>2]|0;if((d|0)!=0){SJ(d)|0}d=c[a+28>>2]|0;if((d|0)==0){Yp(a);i=b;return}Fe(d);Yp(a);i=b;return}function sH(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;e=i;d=FW(184)|0;LI(d,a,b,c);uH(d);i=e;return d|0}function tH(b,d,e,f,g){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var j=0;j=i;c[b>>2]=202e3;c[b+4>>2]=d;_p(d);h[b+8>>3]=+h[e>>3];h[b+16>>3]=+h[e+8>>3];h[b+24>>3]=+h[e+16>>3];h[b+32>>3]=+h[e+24>>3];h[b+40>>3]=+h[f>>3];h[b+48>>3]=+h[f+8>>3];h[b+56>>3]=+h[f+16>>3];h[b+64>>3]=+h[f+24>>3];a[b+72|0]=g&1;bX(b+76|0,0,24)|0;i=j;return}function uH(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0;d=i;e=(c[b+84>>2]|0)+3-(c[b+76>>2]|0)|0;c[b+100>>2]=e;f=(c[b+88>>2]|0)-(c[b+80>>2]|0)+3|0;c[b+104>>2]=f;if((a[b+72|0]&1)==0){g=da(e+7>>3,f)|0;c[b+108>>2]=g}else{g=da(e,f)|0;c[b+108>>2]=g}e=b+116|0;c[e>>2]=8;do{if((g|0)<65){c[b+112>>2]=32;h=256}else{if((g|0)<129){c[b+112>>2]=16;h=128;break}if((g|0)<257){c[b+112>>2]=8;h=64;break}if((g|0)<513){c[b+112>>2]=4;h=32;break}f=b+112|0;if((g|0)<1025){c[f>>2]=2;h=16;break}else{c[f>>2]=1;h=8;break}}}while(0);f=b+112|0;j=ze(h,g)|0;c[b+92>>2]=j;if((j|0)==0){c[e>>2]=0;i=d;return}g=ye(da(c[e>>2]|0,c[f>>2]|0)|0,28)|0;b=b+96|0;c[b>>2]=g;h=c[e>>2]|0;if((da(h,c[f>>2]|0)|0)>0){j=0}else{i=d;return}while(1){c[g+(j*28|0)+8>>2]=h+ -1&j;j=j+1|0;h=c[e>>2]|0;if((j|0)>=(da(h,c[f>>2]|0)|0)){break}g=c[b>>2]|0}i=d;return}function vH(a){a=a|0;var b=0,d=0;b=i;c[a>>2]=202e3;$p(c[a+4>>2]|0);d=c[a+92>>2]|0;if((d|0)!=0){Fe(d)}d=c[a+96>>2]|0;if((d|0)==0){HW(a);i=b;return}Fe(d);HW(a);i=b;return}function wH(a){a=a|0;var b=0,d=0;b=i;c[a>>2]=202e3;$p(c[a+4>>2]|0);d=c[a+92>>2]|0;if((d|0)!=0){Fe(d)}a=c[a+96>>2]|0;if((a|0)==0){i=b;return}Fe(a);i=b;return}function xH(d,e,f,g,h,j,k,l,m){d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;j=j|0;k=k|0;l=l|0;m=m|0;var 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;n=i;q=i;i=i+32|0;r=q;s=d+72|0;if((a[s]&1)==0){o=3}else{if((c[d+104>>2]|0)>50){o=3}}if((o|0)==3){f=0;g=0}o=d+116|0;w=c[o>>2]|0;p=da((c[d+112>>2]|0)+ -1&e,w)|0;a:do{if((w|0)>0){t=d+96|0;x=c[t>>2]|0;u=0;b:while(1){v=u+p|0;do{if((c[x+(v*28|0)+8>>2]|0)<0){if((c[x+(v*28|0)>>2]|0)!=(e|0)){break}if((b[x+(v*28|0)+4>>1]|0)!=(f|0)){break}if((b[x+(v*28|0)+6>>1]|0)==(g|0)){break b}}}while(0);u=u+1|0;if((u|0)>=(w|0)){break a}}c[h>>2]=c[x+(v*28|0)+12>>2];e=h+4|0;c[e>>2]=c[(c[t>>2]|0)+(v*28|0)+16>>2];r=h+8|0;c[r>>2]=c[(c[t>>2]|0)+(v*28|0)+20>>2];q=h+12|0;c[q>>2]=c[(c[t>>2]|0)+(v*28|0)+24>>2];g=c[o>>2]|0;if((g|0)>0){f=0;do{do{if((f|0)!=(u|0)){A=c[t>>2]|0;w=A+((f+p|0)*28|0)+8|0;x=c[w>>2]|0;if((x&2147483647)>>>0>=(c[A+(v*28|0)+8>>2]&2147483647)>>>0){break}c[w>>2]=x+1;g=c[o>>2]|0}}while(0);f=f+1|0;}while((f|0)<(g|0))}c[(c[t>>2]|0)+(v*28|0)+8>>2]=-2147483648;a[h+16|0]=a[s]&1;c[h+20>>2]=(c[d+92>>2]|0)+(da(c[d+108>>2]|0,v)|0);a[h+24|0]=0;z=j-(c[h>>2]|0)|0;A=k-(c[e>>2]|0)|0;c[m>>2]=Jp(l,z,A,z+ -1+(c[r>>2]|0)|0,A+ -1+(c[q>>2]|0)|0)|0;A=1;i=n;return A|0}}while(0);if(!(Fd[c[(c[d>>2]|0)+12>>2]&7](d,e,f,g,r,j,k,l,m)|0)){A=0;i=n;return A|0}if((c[m>>2]|0)==1){a[h+24|0]=0;if((a[r+24|0]&1)==0){A=1;i=n;return A|0}Fe(c[r+20>>2]|0);A=1;i=n;return A|0}j=r+8|0;m=c[j>>2]|0;do{if((m|0)<=(c[d+100>>2]|0)){k=r+12|0;l=c[k>>2]|0;if((l|0)>(c[d+104>>2]|0)){break}if((a[s]&1)==0){m=m+7>>3}s=da(m,l)|0;v=c[o>>2]|0;if((v|0)==0){$W(h|0,q|0,28)|0;A=1;i=n;return A|0}if((v|0)>0){l=d+96|0;m=f&65535;t=g&65535;f=r+4|0;g=d+92|0;u=d+108|0;d=r+20|0;w=0;z=0;do{y=w+p|0;x=(c[l>>2]|0)+(y*28|0)+8|0;A=c[x>>2]|0;if((A&2147483647|0)==(v+ -1|0)){c[x>>2]=-2147483648;c[(c[l>>2]|0)+(y*28|0)>>2]=e;b[(c[l>>2]|0)+(y*28|0)+4>>1]=m;b[(c[l>>2]|0)+(y*28|0)+6>>1]=t;c[(c[l>>2]|0)+(y*28|0)+12>>2]=c[q>>2];c[(c[l>>2]|0)+(y*28|0)+16>>2]=c[f>>2];c[(c[l>>2]|0)+(y*28|0)+20>>2]=c[j>>2];c[(c[l>>2]|0)+(y*28|0)+24>>2]=c[k>>2];z=(c[g>>2]|0)+(da(c[u>>2]|0,y)|0)|0;$W(z|0,c[d>>2]|0,s|0)|0}else{c[x>>2]=A+1}w=w+1|0;v=c[o>>2]|0;}while((w|0)<(v|0))}else{z=0}$W(h|0,q|0,28)|0;c[h+20>>2]=z;a[h+24|0]=0;if((a[r+24|0]&1)==0){A=1;i=n;return A|0}Fe(c[r+20>>2]|0);A=1;i=n;return A|0}}while(0);$W(h|0,q|0,28)|0;A=1;i=n;return A|0}function yH(a,b){a=a|0;b=b|0;i=i;return -1.0}function zH(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0;g=i;f=b+4|0;c[f>>2]=e;h=ye(e,4)|0;c[b>>2]=h;a:do{if((c[f>>2]|0)>0){j=0;while(1){c[h+(j<<2)>>2]=0;j=j+1|0;if((j|0)>=(c[f>>2]|0)){break a}h=c[b>>2]|0}}}while(0);if((e|0)>0){j=0}else{i=g;return}do{h=d+(j*12|0)|0;m=c[h>>2]|0;k=a[m]|0;if(k<<24>>24==0){l=0}else{l=0;while(1){l=(l*17|0)+(k&255)|0;m=m+1|0;k=a[m]|0;if(k<<24>>24==0){break}else{}}}m=(l>>>0)%((c[f>>2]|0)>>>0)|0;c[d+(j*12|0)+8>>2]=c[(c[b>>2]|0)+(m<<2)>>2];c[(c[b>>2]|0)+(m<<2)>>2]=h;j=j+1|0;}while((j|0)<(e|0));i=g;return}function AH(a){a=a|0;var b=0;b=i;Fe(c[a>>2]|0);i=b;return}function BH(d,e,f){d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0;h=i;j=a[e]|0;if(j<<24>>24==0){l=0}else{l=0;k=e;while(1){l=(l*17|0)+(j&255)|0;k=k+1|0;j=a[k]|0;if(j<<24>>24==0){break}else{}}}d=c[(c[d>>2]|0)+(((l>>>0)%((c[d+4>>2]|0)>>>0)|0)<<2)>>2]|0;if((d|0)==0){l=0;i=h;return l|0}while(1){if((Qc(c[d>>2]|0,e|0)|0)==0){break}d=c[d+8>>2]|0;if((d|0)==0){f=0;g=7;break}}if((g|0)==7){i=h;return f|0}b[f>>1]=b[d+4>>1]|0;l=1;i=h;return l|0}function CH(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;g=i;l=i;i=i+8|0;d=i;i=i+8|0;e=i;i=i+8|0;f=e;j=i;i=i+8|0;h=j;k=c[a>>2]|0;if((k|0)==3){Mf(a,b)|0;l=1;i=g;return l|0}else if((k|0)==7){k=a+8|0;if((c[(Yu(c[k>>2]|0,202048,b,0)|0)>>2]|0)==3){l=1;i=g;return l|0}Of(b);l=c[a>>2]|0;if((l|0)!=7){c[j>>2]=l;c[h+4>>2]=7;Qe(0,202096,h);tc()}if((c[(Yu(c[k>>2]|0,202056,b,0)|0)>>2]|0)==3){l=1;i=g;return l|0}Of(b);h=c[a>>2]|0;if((h|0)!=7){c[e>>2]=h;c[f+4>>2]=7;Qe(0,202096,f);tc()}if((c[(Yu(c[k>>2]|0,202064,b,0)|0)>>2]|0)==3){l=1;i=g;return l|0}Of(b);Qe(-1,202072,d);l=0;i=g;return l|0}else{Qe(-1,202072,l);l=0;i=g;return l|0}return 0}function DH(a){a=a|0;i=i;return}function EH(a){a=a|0;var b=0,d=0,e=0,f=0;b=i;e=i;i=i+16|0;d=e;f=d+4|0;c[f>>2]=0;c[d+8>>2]=0;c[e>>2]=f;a=FH(a,d)|0;xn(d,c[d+4>>2]|0);i=b;return a|0}function FH(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;e=i;f=i;i=i+8|0;g=f;k=i;i=i+8|0;l=k;n=i;i=i+8|0;r=i;i=i+8|0;o=i;i=i+16|0;j=o;c[o>>2]=13;m=j+8|0;c[m>>2]=0;c[m+4>>2]=0;q=c[b>>2]|0;do{if((q|0)==8){q=c[b+8>>2]|0;q=jd[c[(c[q>>2]|0)+72>>2]&511](q)|0}else if((q|0)==7){q=c[b+8>>2]|0}else if((q|0)==4){if((Qc(c[b+8>>2]|0,202168)|0)!=0){p=8;break}b=FW(1048)|0;c[b>>2]=202568;c[b+4>>2]=32;c[b+8>>2]=32;f=0;do{h[b+16+(f<<4)>>3]=0.0;h[b+16+(f<<4)+8>>3]=1.0;f=f+1|0;}while((f|0)<32);a[b+1040|0]=0;r=b;i=e;return r|0}else{p=8}}while(0);if((p|0)==8){Qe(-1,202184,r);r=0;i=e;return r|0}if((c[(Yu(q,202224,j,0)|0)>>2]|0)!=1){Qe(-1,202240,n);Of(j);r=0;i=e;return r|0}n=c[o>>2]|0;if((n|0)!=1){c[k>>2]=n;c[l+4>>2]=1;Qe(0,205232,l);tc()}k=c[m>>2]|0;Of(j);if((k|0)==4){r=FW(1072)|0;WH(r,b,q);b=r}else if((k|0)==3){b=FW(1072)|0;QH(b,0,q,d)}else if((k|0)==2){b=FW(1576)|0;NH(b,0,q)}else if((k|0)==0){r=FW(2600)|0;JH(r,b,q);b=r}else{c[f>>2]=k;Qe(-1,202280,g);r=0;i=e;return r|0}if(jd[c[(c[b>>2]|0)+20>>2]&511](b)|0){r=b;i=e;return r|0}if((b|0)==0){r=0;i=e;return r|0}fdfd[c[(c[d>>2]|0)+12>>2]&511](d);if((c[m>>2]|0)>0){if((n|0)==8){b=0;do{V=l*+((jd[c[(c[d>>2]|0)+20>>2]&511](d)|0)>>>0);h[(c[j>>2]|0)+(b<<3)>>3]=V;b=b+1|0;}while((b|0)<(c[m>>2]|0))}else if((n|0)==16){b=0;do{U=(jd[c[(c[d>>2]|0)+20>>2]&511](d)|0)<<8;V=l*+(((jd[c[(c[d>>2]|0)+20>>2]&511](d)|0)+U|0)>>>0);h[(c[j>>2]|0)+(b<<3)>>3]=V;b=b+1|0;}while((b|0)<(c[m>>2]|0))}else{p=0;o=0;k=0;do{if((n|0)==32){q=(jd[c[(c[d>>2]|0)+20>>2]&511](d)|0)<<8;q=(jd[c[(c[d>>2]|0)+20>>2]&511](d)|0)+q<<8;q=(jd[c[(c[d>>2]|0)+20>>2]&511](d)|0)+q<<8;q=(jd[c[(c[d>>2]|0)+20>>2]&511](d)|0)+q|0}else{if((p|0)<(n|0)){while(1){o=(jd[c[(c[d>>2]|0)+20>>2]&511](d)|0)&255|o<<8;p=p+8|0;if((p|0)<(n|0)){}else{q=o;break}}}else{q=o}U=p-n|0;p=U;o=q;q=q>>>U&b}h[(c[j>>2]|0)+(k<<3)>>3]=l*+(q>>>0);k=k+1|0;}while((k|0)<(c[m>>2]|0))}}fd[c[(c[d>>2]|0)+16>>2]&511](d);a[g]=1;i=f;return}}while(0);Of(y)}else{B=14}}while(0);if((B|0)==14){Qe(-1,202768,P)}Of(m);i=f;return}function KH(a){a=a|0;var b=0,d=0;b=i;c[a>>2]=202600;d=c[a+2584>>2]|0;if((d|0)!=0){Fe(d)}d=c[a+2592>>2]|0;if((d|0)==0){HW(a);i=b;return}Fe(d);HW(a);i=b;return}function LH(a){a=a|0;var b=0,d=0;b=i;c[a>>2]=202600;d=c[a+2584>>2]|0;if((d|0)!=0){Fe(d)}a=c[a+2592>>2]|0;if((a|0)==0){i=b;return}Fe(a);i=b;return}function MH(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=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.0,x=0.0;j=i;l=i;i=i+256|0;f=i;i=i+256|0;g=i;i=i+256|0;e=a+4|0;q=c[e>>2]|0;if((q|0)>0){m=a+16|0;n=0;do{w=(+h[b+(n<<3)>>3]- +h[m+(n<<4)>>3])*+h[a+2200+(n<<3)>>3]+ +h[a+1176+(n<<4)>>3];o=c[a+1044+(n<<2)>>2]|0;do{if(w<0.0){w=0.0}else{x=+(o+ -1|0);if(w<=x){break}w=x}}while(0);p=~~w;c[l+(n<<3)>>2]=p;r=p+1|0;c[l+(n<<3)+4>>2]=(r|0)<(o|0)?r:p;x=w- +(p|0);h[g+(n<<3)>>3]=x;h[f+(n<<3)>>3]=1.0-x;n=n+1|0;}while((n|0)<(q|0))}p=a+8|0;if((c[p>>2]|0)<=0){i=j;return}b=a+2592|0;m=a+528|0;o=a+2588|0;n=a+2584|0;s=q;q=0;while(1){t=1<<s;if((t|0)>0){r=0;do{if((s|0)>0){u=q;v=0;t=r;while(1){u=(da(c[l+(v<<3)+((t&1)<<2)>>2]|0,c[a+2456+(v<<2)>>2]|0)|0)+u|0;v=v+1|0;if((v|0)<(s|0)){t=t>>1}else{break}}}else{u=q}do{if((u|0)>-1){if((u|0)>=(c[o>>2]|0)){k=15;break}h[(c[b>>2]|0)+(r<<3)>>3]=+h[(c[n>>2]|0)+(u<<3)>>3]}else{k=15}}while(0);if((k|0)==15){k=0;h[(c[b>>2]|0)+(r<<3)>>3]=0.0}r=r+1|0;s=c[e>>2]|0;t=1<<s;}while((r|0)<(t|0))}if((s|0)>0){r=0;while(1){if((t|0)>0){x=+h[f+(r<<3)>>3];w=+h[g+(r<<3)>>3];s=0;do{v=c[b>>2]|0;h[v+(s>>1<<3)>>3]=x*+h[v+(s<<3)>>3]+w*+h[v+((s|1)<<3)>>3];s=s+2|0;}while((s|0)<(t|0));s=c[e>>2]|0}r=r+1|0;if((r|0)<(s|0)){t=t>>1}else{break}}}w=+h[a+1688+(q<<4)>>3];w=w+ +h[c[b>>2]>>3]*(+h[a+1688+(q<<4)+8>>3]-w);r=d+(q<<3)|0;h[r>>3]=w;x=+h[m+(q<<4)>>3];do{if(w<x){h[r>>3]=x}else{x=+h[m+(q<<4)+8>>3];if(w<=x){break}h[r>>3]=x}}while(0);q=q+1|0;if((q|0)>=(c[p>>2]|0)){break}s=c[e>>2]|0}i=j;return}function NH(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=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.0;d=i;k=i;i=i+16|0;l=k;q=i;i=i+8|0;y=i;i=i+8|0;s=i;i=i+8|0;t=i;i=i+8|0;o=t;v=i;i=i+8|0;x=i;i=i+8|0;w=x;I=i;i=i+8|0;B=i;i=i+8|0;z=i;i=i+8|0;A=z;D=i;i=i+8|0;F=D;G=i;i=i+8|0;H=i;i=i+8|0;C=H;E=i;i=i+8|0;m=i;i=i+16|0;f=m;r=i;i=i+16|0;p=r;c[b>>2]=203024;c[m>>2]=13;j=f+8|0;c[j>>2]=0;c[j+4>>2]=0;c[r>>2]=13;n=p+8|0;c[n>>2]=0;c[n+4>>2]=0;g=b+1569|0;a[g]=0;if(!(GH(b,e)|0)){i=d;return}if((c[b+4>>2]|0)!=1){Qe(-1,203048,E);i=d;return}J=(c[(Yu(e,203096,f,0)|0)>>2]|0)==6;E=(a[b+1040|0]&1)!=0;a:do{if(J){I=c[m>>2]|0;J=(I|0)==6;do{if(E){if(!J){c[H>>2]=I;c[C+4>>2]=6;Qe(0,205232,C);tc()}if((c[(c[j>>2]|0)+12>>2]|0)==(c[b+8>>2]|0)){break}Qe(-1,203104,G);break a}else{if(J){break}c[D>>2]=I;c[F+4>>2]=6;Qe(0,205232,F);tc()}}while(0);J=c[(c[j>>2]|0)+12>>2]|0;u=b+8|0;c[u>>2]=J;if((J|0)<=0){u=27;break}C=6;D=0;while(1){if((C|0)!=6){u=15;break}ut(c[j>>2]|0,D,p)|0;C=c[r>>2]|0;if((C+ -1|0)>>>0>=2){u=17;break}if((C|0)==1){K=+(c[n>>2]|0)}else{K=+h[n>>3]}h[b+1048+(D<<3)>>3]=K;Of(p);D=D+1|0;if((D|0)>=(c[u>>2]|0)){u=27;break a}C=c[m>>2]|0}if((u|0)==15){c[z>>2]=C;c[A+4>>2]=6;Qe(0,205232,A);tc()}else if((u|0)==17){Qe(-1,203144,B);u=54;break}}else{z=b+8|0;do{if(E){if((c[z>>2]|0)==1){break}Qe(-1,203104,I);break a}}while(0);c[z>>2]=1;h[b+1048>>3]=0.0;u=27}}while(0);b:do{if((u|0)==27){Of(f);c:do{if((c[(Yu(e,203184,f,0)|0)>>2]|0)==6){y=c[m>>2]|0;if((y|0)!=6){c[x>>2]=y;c[w+4>>2]=6;Qe(0,205232,w);tc()}x=c[(c[j>>2]|0)+12>>2]|0;w=b+8|0;if((x|0)!=(c[w>>2]|0)){Qe(-1,203192,v);break b}if((x|0)<=0){break}x=6;v=0;while(1){if((x|0)!=6){u=35;break}ut(c[j>>2]|0,v,p)|0;x=c[r>>2]|0;if((x+ -1|0)>>>0>=2){u=37;break}if((x|0)==1){K=+(c[n>>2]|0)}else{K=+h[n>>3]}h[b+1304+(v<<3)>>3]=K;Of(p);v=v+1|0;if((v|0)>=(c[w>>2]|0)){break c}x=c[m>>2]|0}if((u|0)==35){c[t>>2]=x;c[o+4>>2]=6;Qe(0,205232,o);tc()}else if((u|0)==37){Qe(-1,203232,s);u=54;break b}}else{if((c[b+8>>2]|0)==1){h[b+1304>>3]=1.0;break}else{Qe(-1,203192,y);break b}}}while(0);Of(f);if(((c[(Yu(e,203272,f,0)|0)>>2]|0)+ -1|0)>>>0>=2){Qe(-1,203280,q);break}e=c[m>>2]|0;if((e+ -1|0)>>>0>=2){c[k>>2]=e;c[l+4>>2]=1;c[l+8>>2]=2;Qe(0,205304,l);tc()}if((e|0)==1){K=+(c[j>>2]|0)}else{K=+h[j>>3]}J=b+1560|0;h[J>>3]=K;Of(f);a[b+1568|0]=+S(+(+h[J>>3]+-1.0))<1.0e-10|0;a[g]=1;i=d;return}}while(0);if((u|0)==54){Of(p)}Of(f);i=d;return}function OH(a){a=a|0;var b=0;b=i;HW(a);i=b;return}function PH(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,j=0,k=0.0,l=0,m=0,n=0,o=0.0,p=0.0;f=i;o=+h[d>>3];k=+h[b+16>>3];if(o>=k){k=+h[b+24>>3];k=o>k?k:o}m=b+8|0;if((c[m>>2]|0)<=0){i=f;return}l=b+1568|0;d=b+1560|0;j=b+1040|0;g=0;do{o=+h[b+1048+(g<<3)>>3];if((a[l]&1)==0){p=+U(+k,+(+h[d>>3]))}else{p=k}o=o+p*(+h[b+1304+(g<<3)>>3]-o);n=e+(g<<3)|0;h[n>>3]=o;do{if((a[j]&1)!=0){p=+h[b+528+(g<<4)>>3];if(o<p){h[n>>3]=p;break}p=+h[b+528+(g<<4)+8>>3];if(o<=p){break}h[n>>3]=p}}while(0);g=g+1|0;}while((g|0)<(c[m>>2]|0));i=f;return}function QH(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=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,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ba=0,ca=0,da=0,ea=0,fa=0,ga=0,ha=0,ia=0,ja=0,ka=0.0,la=0.0;l=i;T=i;i=i+8|0;_=T;w=i;i=i+16|0;t=w;r=i;i=i+8|0;u=i;i=i+8|0;v=u;y=i;i=i+8|0;z=i;i=i+8|0;A=z;F=i;i=i+16|0;G=F;E=i;i=i+8|0;C=i;i=i+8|0;D=C;K=i;i=i+8|0;I=i;i=i+8|0;L=I;U=i;i=i+8|0;W=i;i=i+8|0;V=W;Y=i;i=i+8|0;X=Y;x=i;i=i+8|0;$=x;ba=i;i=i+8|0;aa=i;i=i+8|0;Q=i;i=i+8|0;R=Q;O=i;i=i+8|0;P=O;N=i;i=i+8|0;m=i;i=i+16|0;q=m;o=i;i=i+16|0;s=o;S=i;i=i+16|0;Z=S;c[b>>2]=203328;c[m>>2]=13;p=q+8|0;c[p>>2]=0;c[p+4>>2]=0;c[o>>2]=13;n=s+8|0;c[n>>2]=0;c[n+4>>2]=0;k=b+1064|0;M=b+1048|0;j=b+1052|0;g=b+1056|0;d=b+1060|0;bX(M|0,0,17)|0;a:do{if(GH(b,e)|0){if((c[b+4>>2]|0)!=1){Qe(-1,203352,aa);break}if((c[(Yu(e,203400,q,0)|0)>>2]|0)!=6){Qe(-1,203416,ba);break}aa=c[m>>2]|0;if((aa|0)!=6){c[x>>2]=aa;c[$+4>>2]=6;Qe(0,205232,$);tc()}ja=c[(c[p>>2]|0)+12>>2]|0;x=b+1044|0;c[x>>2]=ja;c[M>>2]=ye(ja,4)|0;c[j>>2]=ye((c[x>>2]|0)+1|0,8)|0;c[g>>2]=ye(c[x>>2]<<1,8)|0;c[d>>2]=ye(c[x>>2]|0,8)|0;b:do{if((c[x>>2]|0)>0){$=0;do{c[(c[M>>2]|0)+($<<2)>>2]=0;$=$+1|0;aa=c[x>>2]|0;}while(($|0)<(aa|0));if((aa|0)<=0){H=56;break}ca=Z+4|0;ba=Z+8|0;$=f+4|0;aa=Z+4|0;da=0;c:while(1){c[ca>>2]=0;c[ba>>2]=0;c[S>>2]=ca;ea=c[f>>2]|0;if((ea|0)!=($|0)){do{ha=ea+16|0;c[N>>2]=ca;$W(T|0,N|0,4)|0;ga=Xv(Z,_,P,ha)|0;if((c[ga>>2]|0)==0){fa=FW(20)|0;c[fa+16>>2]=c[ha>>2];ha=c[O>>2]|0;c[fa>>2]=0;c[fa+4>>2]=0;c[fa+8>>2]=ha;c[ga>>2]=fa;ha=c[c[S>>2]>>2]|0;if((ha|0)!=0){c[S>>2]=ha;fa=c[ga>>2]|0}un(c[aa>>2]|0,fa);c[ba>>2]=(c[ba>>2]|0)+1}fa=c[ea+4>>2]|0;if((fa|0)==0){while(1){fa=c[ea+8>>2]|0;if((ea|0)==(c[fa>>2]|0)){ea=fa;break}else{ea=fa}}}else{ea=fa;while(1){fa=c[ea>>2]|0;if((fa|0)==0){break}else{ea=fa}}}}while((ea|0)!=($|0))}ea=c[m>>2]|0;if((ea|0)!=6){H=23;break}vt(c[p>>2]|0,da,s)|0;if((c[o>>2]|0)==9){ea=c[n>>2]|0;ga=c[ca>>2]|0;fa=(ga|0)==0;do{if(fa){H=40}else{ja=ga;ia=ca;d:while(1){ha=ja;while(1){if((c[ha+16>>2]|0)>=(ea|0)){break}ha=c[ha+4>>2]|0;if((ha|0)==0){ha=ia;break d}}ja=c[ha>>2]|0;if((ja|0)==0){break}else{ia=ha}}if((ha|0)!=(ca|0)){if((ea|0)>=(c[ha+16>>2]|0)){J=ga;break c}}if(fa){H=40;break}while(1){H=c[ga+16>>2]|0;if((ea|0)<(H|0)){H=c[ga>>2]|0;if((H|0)==0){H=35;break}else{ga=H;continue}}if((H|0)>=(ea|0)){H=39;break}fa=ga+4|0;H=c[fa>>2]|0;if((H|0)==0){H=38;break}else{ga=H}}if((H|0)==35){H=0;c[Q>>2]=ga;break}else if((H|0)==38){H=0;c[Q>>2]=ga;ga=fa;break}else if((H|0)==39){H=0;c[Q>>2]=ga;ga=R;break}}}while(0);if((H|0)==40){H=0;c[Q>>2]=ca;ga=ca}if((c[ga>>2]|0)==0){fa=FW(20)|0;c[fa+16>>2]=ea;ea=c[Q>>2]|0;c[fa>>2]=0;c[fa+4>>2]=0;c[fa+8>>2]=ea;c[ga>>2]=fa;ea=c[c[S>>2]>>2]|0;if((ea|0)!=0){c[S>>2]=ea;fa=c[ga>>2]|0}un(c[aa>>2]|0,fa);c[ba>>2]=(c[ba>>2]|0)+1}Of(s);ea=c[m>>2]|0;if((ea|0)!=6){H=46;break}ut(c[p>>2]|0,da,s)|0}ja=FH(s,Z)|0;c[(c[M>>2]|0)+(da<<2)>>2]=ja;if((ja|0)==0){H=49;break}if((da|0)>0){fa=c[M>>2]|0;ea=c[fa+(da<<2)>>2]|0;if((c[ea+4>>2]|0)!=1){H=53;break}if((c[ea+8>>2]|0)!=(c[(c[fa>>2]|0)+8>>2]|0)){H=53;break}}Of(s);xn(Z,c[aa>>2]|0);da=da+1|0;if((da|0)>=(c[x>>2]|0)){H=56;break b}}if((H|0)==23){c[Y>>2]=ea;c[X+4>>2]=6;Qe(0,205232,X);tc()}else if((H|0)==46){c[W>>2]=ea;c[V+4>>2]=6;Qe(0,205232,V);tc()}else if((H|0)==49){J=c[aa>>2]|0}else if((H|0)==53){Qe(-1,203464,U);xn(Z,c[aa>>2]|0);break}xn(Z,J)}else{H=56}}while(0);e:do{if((H|0)==56){Of(q);do{if((c[(Yu(e,203512,q,0)|0)>>2]|0)==6){H=c[m>>2]|0;if((H|0)!=6){c[I>>2]=H;c[L+4>>2]=6;Qe(0,205232,L);tc()}if((c[(c[p>>2]|0)+12>>2]|0)!=((c[x>>2]|0)+ -1|0)){break}h[c[j>>2]>>3]=+h[b+16>>3];H=c[x>>2]|0;f:do{if((H|0)>1){H=1;while(1){I=c[m>>2]|0;if((I|0)!=6){H=64;break}if(((c[(ut(c[p>>2]|0,H+ -1|0,s)|0)>>2]|0)+ -1|0)>>>0>=2){H=66;break}I=c[o>>2]|0;if((I+ -1|0)>>>0>=2){H=68;break}if((I|0)==1){ka=+(c[n>>2]|0)}else{ka=+h[n>>3]}h[(c[j>>2]|0)+(H<<3)>>3]=ka;Of(s);H=H+1|0;I=c[x>>2]|0;if((H|0)>=(I|0)){B=I;break f}}if((H|0)==64){c[C>>2]=I;c[D+4>>2]=6;Qe(0,205232,D);tc()}else if((H|0)==66){Qe(-1,203576,E);break e}else if((H|0)==68){c[F>>2]=I;c[G+4>>2]=1;c[G+8>>2]=2;Qe(0,205304,G);tc()}}else{B=H}}while(0);h[(c[j>>2]|0)+(B<<3)>>3]=+h[b+24>>3];Of(q);do{if((c[(Yu(e,202920,q,0)|0)>>2]|0)==6){B=c[m>>2]|0;if((B|0)!=6){c[z>>2]=B;c[A+4>>2]=6;Qe(0,205232,A);tc()}z=c[x>>2]|0;if((c[(c[p>>2]|0)+12>>2]|0)!=(z<<1|0)){break}g:do{if((z|0)>0){y=6;z=0;while(1){if((y|0)!=6){H=81;break}if(((c[(ut(c[p>>2]|0,z,s)|0)>>2]|0)+ -1|0)>>>0>=2){H=83;break}y=c[o>>2]|0;if((y+ -1|0)>>>0>=2){H=85;break}if((y|0)==1){ka=+(c[n>>2]|0)}else{ka=+h[n>>3]}h[(c[g>>2]|0)+(z<<3)>>3]=ka;Of(s);z=z+1|0;if((z|0)>=(c[x>>2]<<1|0)){break g}y=c[m>>2]|0}if((H|0)==81){c[u>>2]=y;c[v+4>>2]=6;Qe(0,205232,v);tc()}else if((H|0)==83){Qe(-1,203688,r);break e}else if((H|0)==85){c[w>>2]=y;c[t+4>>2]=1;c[t+8>>2]=2;Qe(0,205304,t);tc()}}}while(0);Of(q);if((c[x>>2]|0)>0){m=0;while(1){ja=c[j>>2]|0;la=+h[ja+(m<<3)>>3];n=m+1|0;ka=+h[ja+(n<<3)>>3];if(la==ka){h[(c[d>>2]|0)+(m<<3)>>3]=0.0}else{ja=m<<1;ia=c[g>>2]|0;h[(c[d>>2]|0)+(m<<3)>>3]=(+h[ia+((ja|1)<<3)>>3]- +h[ia+(ja<<3)>>3])/(ka-la)}if((n|0)<(c[x>>2]|0)){m=n}else{break}}}a[k]=1;i=l;return}}while(0);Qe(-1,203632,y);break a}}while(0);Qe(-1,203520,K);break a}}while(0);Of(s)}}while(0);Of(q);i=l;return}function RH(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0;f=i;c[b>>2]=203328;$W(b|0,d|0,1072)|0;k=c[d+1044>>2]|0;e=b+1044|0;c[e>>2]=k;g=b+1048|0;c[g>>2]=ye(k,4)|0;k=c[e>>2]|0;if((k|0)>0){h=d+1048|0;j=0;while(1){k=c[(c[h>>2]|0)+(j<<2)>>2]|0;k=jd[c[(c[k>>2]|0)+8>>2]&511](k)|0;c[(c[g>>2]|0)+(j<<2)>>2]=k;j=j+1|0;k=c[e>>2]|0;if((j|0)<(k|0)){}else{break}}}k=ye(k+1|0,8)|0;c[b+1052>>2]=k;$W(k|0,c[d+1052>>2]|0,(c[e>>2]<<3)+8|0)|0;k=ye(c[e>>2]<<1,8)|0;c[b+1056>>2]=k;$W(k|0,c[d+1056>>2]|0,c[e>>2]<<4|0)|0;k=ye(c[e>>2]|0,8)|0;c[b+1060>>2]=k;$W(k|0,c[d+1060>>2]|0,c[e>>2]<<3|0)|0;a[b+1064|0]=1;i=f;return}function SH(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,j=0;b=i;c[a>>2]=203328;d=a+1048|0;f=c[d>>2]|0;do{if((f|0)==0){f=0}else{e=a+1044|0;h=c[e>>2]|0;if((h|0)>0){g=0}else{break}do{j=c[f+(g<<2)>>2]|0;if((j|0)!=0){fd[c[(c[j>>2]|0)+4>>2]&511](j);h=c[e>>2]|0;f=c[d>>2]|0}g=g+1|0;}while((g|0)<(h|0))}}while(0);Fe(f);Fe(c[a+1052>>2]|0);Fe(c[a+1056>>2]|0);Fe(c[a+1060>>2]|0);HW(a);i=b;return}function TH(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0;b=i;c[a>>2]=203328;d=a+1048|0;f=c[d>>2]|0;do{if((f|0)==0){f=0}else{e=a+1044|0;h=c[e>>2]|0;if((h|0)>0){g=0}else{break}do{f=c[f+(g<<2)>>2]|0;if((f|0)!=0){fdfd[c[(c[l>>2]|0)+12>>2]&511](l);k=XH(b,l)|0;if((k|0)==0){Qe(-1,203896,j);i=g;return}if((te(k,203888)|0)!=0){Qe(-1,203896,h);ke(k);HW(k);i=g;return}ke(k);HW(k);c[f>>2]=0;if(YH(b,l,f)|0){fd[c[(c[l>>2]|0)+16>>2]&511](l);a[b+1060|0]=1;n=FW(1608)|0;c[n+1600>>2]=100;c[b+1052>>2]=n}fd[c[(c[l>>2]|0)+16>>2]&511](l);i=g;return}function XH(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0;d=i;e=FW(32)|0;ee(e);a=a+1044|0;j=0;a:while(1){while(1){k=jd[c[(c[b>>2]|0)+20>>2]&511](b)|0;if((k|0)==-1){f=-1;break a}g=k&255;me(c[a>>2]|0,g)|0;if(j){break}if((k|0)==37){j=1;continue a}if((xc(k|0)|0)==0){h=9;break a}}if(!((k|0)==10|(k|0)==13)){j=1;continue}j=0}do{if((h|0)==9){if(!((k|0)==123|(k|0)==125)){f=k;break}me(e,g)|0;i=d;return e|0}}while(0);me(e,f&255)|0;g=jd[c[(c[b>>2]|0)+24>>2]&511](b)|0;h=(g|0)==-1;if((f+ -48|0)>>>0<10|(f+ -45|0)>>>0<2){if(h){i=d;return e|0}while(1){if(!((g+ -48|0)>>>0<10|(g+ -45|0)>>>0<2)){h=18;break}jd[c[(c[b>>2]|0)+20>>2]&511](b)|0;g=g&255;me(c[a>>2]|0,g)|0;me(e,g)|0;g=jd[c[(c[b>>2]|0)+24>>2]&511](b)|0;if((g|0)==-1){h=18;break}}if((h|0)==18){i=d;return e|0}}else{if(h){i=d;return e|0}while(1){if((Qa(g|0)|0)==0){h=18;break}jd[c[(c[b>>2]|0)+20>>2]&511](b)|0;g=g&255;me(c[a>>2]|0,g)|0;me(e,g)|0;g=jd[c[(c[b>>2]|0)+24>>2]&511](b)|0;if((g|0)==-1){h=18;break}}if((h|0)==18){i=d;return e|0}}return 0}function YH(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=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.0;f=i;n=i;i=i+8|0;o=n;m=i;i=i+8|0;l=i;i=i+8|0;r=i;i=i+8|0;q=i;i=i+8|0;p=i;i=i+8|0;s=i;i=i+8|0;u=XH(b,d)|0;a:do{if((u|0)!=0){j=b+1056|0;g=b+1048|0;b:while(1){t=u+28|0;v=c[t>>2]|0;y=a[v]|0;do{if(((y<<24>>24)+ -48|0)>>>0<10|(y+ -45<<24>>24&255)<2){while(1){v=v+1|0;w=a[v]|0;if(w<<24>>24==46){v=1;break}else if(w<<24>>24==0){k=6;break}else{}}if((k|0)==6){k=0;v=0}x=c[e>>2]|0;w=c[j>>2]|0;if((w|0)>(x|0)){w=c[g>>2]|0}else{w=w+64|0;c[j>>2]=w;w=Ce(c[g>>2]|0,w,16)|0;c[g>>2]=w;x=c[e>>2]|0}w=w+(x<<4)|0;if(v){c[w>>2]=2;z=+Ie(c[t>>2]|0);h[(c[g>>2]|0)+(c[e>>2]<<4)+8>>3]=z}else{c[w>>2]=1;y=ec(c[t>>2]|0)|0;c[(c[g>>2]|0)+(c[e>>2]<<4)+8>>2]=y}c[e>>2]=(c[e>>2]|0)+1;ke(u);HW(u)}else{if((te(u,203888)|0)!=0){if((te(u,204192)|0)==0){k=38;break b}else{v=-1;w=40;x=0}c:while(1){while(1){if((w-v|0)<=1){break c}y=(w+v|0)/2|0;x=te(u,c[204200+(y<<2)>>2]|0)|0;if((x|0)>0){v=y}else{break}}v=(x|0)<0?v:y;w=y}if((x|0)!=0){k=47;break b}ke(u);HW(u);u=c[e>>2]|0;t=c[j>>2]|0;if((t|0)>(u|0)){t=c[g>>2]|0}else{t=t+64|0;c[j>>2]=t;t=Ce(c[g>>2]|0,t,16)|0;c[g>>2]=t;u=c[e>>2]|0}c[t+(u<<4)>>2]=3;c[(c[g>>2]|0)+(c[e>>2]<<4)+8>>2]=v;c[e>>2]=(c[e>>2]|0)+1;u=XH(b,d)|0;if((u|0)==0){break a}else{continue b}}ke(u);HW(u);u=c[e>>2]|0;c[e>>2]=u+3;t=u+2|0;v=c[j>>2]|0;if((v|0)<=(t|0)){y=v+64|0;c[j>>2]=y;c[g>>2]=Ce(c[g>>2]|0,y,16)|0}if(!(YH(b,d,e)|0)){g=0;k=52;break b}w=XH(b,d)|0;if((w|0)==0){k=19;break b}if((te(w,203888)|0)==0){v=c[e>>2]|0;if(!(YH(b,d,e)|0)){g=0;k=52;break b}ke(w);HW(w);w=XH(b,d)|0;if((w|0)==0){k=23;break b}}else{v=-1}if((te(w,203992)|0)==0){if((v|0)>-1){k=26;break b}c[(c[g>>2]|0)+(u<<4)>>2]=3;c[(c[g>>2]|0)+(u<<4)+8>>2]=40;c[(c[g>>2]|0)+(t<<4)>>2]=4;c[(c[g>>2]|0)+(t<<4)+8>>2]=c[e>>2]}else{if((te(w,204064)|0)!=0){k=32;break b}if((v|0)<0){k=30;break b}c[(c[g>>2]|0)+(u<<4)>>2]=3;c[(c[g>>2]|0)+(u<<4)+8>>2]=41;y=u+1|0;c[(c[g>>2]|0)+(y<<4)>>2]=4;c[(c[g>>2]|0)+(y<<4)+8>>2]=v;c[(c[g>>2]|0)+(t<<4)>>2]=4;c[(c[g>>2]|0)+(t<<4)+8>>2]=c[e>>2]}if((w|0)==0){break}ke(w);HW(w)}}while(0);u=XH(b,d)|0;if((u|0)==0){break a}}if((k|0)==19){Qe(-1,203944,p);y=0;i=f;return y|0}else if((k|0)==23){Qe(-1,203944,q);y=0;i=f;return y|0}else if((k|0)==26){Qe(-1,204e3,r);y=0;i=f;return y|0}else if((k|0)==30){Qe(-1,204072,l);y=0;i=f;return y|0}else if((k|0)==32){Qe(-1,204136,m);if((w|0)==0){y=0;i=f;return y|0}ke(w);HW(w);y=0;i=f;return y|0}else if((k|0)==38){ke(u);HW(u);k=c[e>>2]|0;l=c[j>>2]|0;if((l|0)>(k|0)){j=c[g>>2]|0}else{k=l+64|0;c[j>>2]=k;j=Ce(c[g>>2]|0,k,16)|0;c[g>>2]=j;k=c[e>>2]|0}c[j+(k<<4)>>2]=3;c[(c[g>>2]|0)+(c[e>>2]<<4)+8>>2]=42;c[e>>2]=(c[e>>2]|0)+1;y=1;i=f;return y|0}else if((k|0)==47){c[n>>2]=c[t>>2];Qe(-1,204360,o);ke(u);HW(u);y=0;i=f;return y|0}else if((k|0)==52){i=f;return g|0}}}while(0);Qe(-1,203944,s);y=0;i=f;return y|0}function ZH(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,j=0,k=0,l=0,m=0,n=0,o=0;e=i;c[b>>2]=203792;$W(b|0,d|0,1072)|0;n=b+1056|0;o=ye(c[n>>2]|0,16)|0;c[b+1048>>2]=o;$W(o|0,c[d+1048>>2]|0,c[n>>2]<<4|0)|0;n=c[d+1044>>2]|0;o=FW(32)|0;ie(o,n);c[b+1044>>2]=o;o=FW(1608)|0;c[o+1600>>2]=100;c[b+1052>>2]=o;$W(o|0,c[d+1052>>2]|0,1608)|0;o=FW(16)|0;d=d+1064|0;jG(o,nG(c[d>>2]|0)|0);b=b+1064|0;c[b>>2]=o;if((oG(c[d>>2]|0)|0)>0){f=0}else{i=e;return}do{g=FW(16)|0;o=qG(c[d>>2]|0,f)|0;c[g>>2]=205072;n=c[o+8>>2]|0;j=c[o+12>>2]|0;o=a[o+4|0]&1;a[g+4|0]=o;l=g+8|0;c[l>>2]=n;a:do{if(o<<24>>24==0){c[g+12>>2]=j}else{m=GW(n>>>0>536870911?-1:n<<3)|0;k=g+12|0;c[k>>2]=m;if((n|0)<=0){break}h[m>>3]=+h[j>>3];if((n|0)<=1){break}h[m+8>>3]=+h[j+8>>3];if((n|0)<=2){break}h[m+16>>3]=+h[j+16>>3];if((n|0)>3){n=3}else{break}while(1){h[m+(n<<3)>>3]=+h[j+(n<<3)>>3];n=n+1|0;if((n|0)>=(c[l>>2]|0)){break a}m=c[k>>2]|0}}}while(0);m=FW(12)|0;k=pG(c[d>>2]|0,f)|0;c[m>>2]=205136;n=c[k+4>>2]|0;k=c[k+8>>2]|0;j=m+4|0;c[j>>2]=n;o=GW(n>>>0>536870911?-1:n<<3)|0;l=m+8|0;c[l>>2]=o;b:do{if((n|0)>0){h[o>>3]=+h[k>>3];if((n|0)<=1){break}h[o+8>>3]=+h[k+8>>3];if((n|0)<=2){break}h[o+16>>3]=+h[k+16>>3];if((n|0)>3){n=3}else{break}while(1){h[o+(n<<3)>>3]=+h[k+(n<<3)>>3];n=n+1|0;if((n|0)>=(c[j>>2]|0)){break b}o=c[l>>2]|0}}}while(0);mG(c[b>>2]|0,g,m);f=f+1|0;}while((f|0)<(oG(c[d>>2]|0)|0));i=e;return}function _H(a){a=a|0;var b=0;b=i;$H(a);HW(a);i=b;return}function $H(a){a=a|0;var b=0,d=0;b=i;c[a>>2]=203792;Fe(c[a+1048>>2]|0);d=c[a+1044>>2]|0;if((d|0)!=0){ke(d);HW(d)}d=c[a+1052>>2]|0;if((d|0)!=0){HW(d)}a=c[a+1064>>2]|0;if((a|0)==0){i=b;return}kG(a);HW(a);i=b;return}function aI(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=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,x=0.0;f=i;n=i;i=i+8|0;o=i;i=i+8|0;q=i;i=i+8|0;j=i;i=i+16|0;p=j;m=b+4|0;g=c[m>>2]|0;c[j>>2]=205072;k=p+4|0;a[k]=0;c[p+8>>2]=g;g=p+12|0;c[g>>2]=d;l=b+1064|0;p=lG(c[l>>2]|0,p)|0;do{if((p|0)==0){p=b+1052|0;c[(c[p>>2]|0)+1600>>2]=100;r=c[p>>2]|0;if((c[m>>2]|0)>0){s=0;do{u=r+1600|0;t=c[u>>2]|0;if((t|0)<1){Qe(-1,205192,q)}else{x=+h[d+(s<<3)>>3];w=t+ -1|0;c[u>>2]=w;c[r+(w<<4)>>2]=2;h[r+(c[u>>2]<<4)+8>>3]=x}s=s+1|0;r=c[p>>2]|0}while((s|0)<(c[m>>2]|0))}bI(b,r,0);q=b+8|0;r=c[q>>2]|0;if((r|0)>0){b=b+528|0;do{r=r+ -1|0;w=c[p>>2]|0;t=w+1600|0;s=c[t>>2]|0;do{if((s|0)==100){Qe(-1,203744,o);v=0.0}else{u=c[w+(s<<4)>>2]|0;if((u+ -1|0)>>>0>=2){Qe(-1,204688,n);v=0.0;break}w=w+(s<<4)+8|0;if((u|0)==1){v=+(c[w>>2]|0)}else{v=+h[w>>3]}c[t>>2]=s+1}}while(0);s=e+(r<<3)|0;h[s>>3]=v;x=+h[b+(r<<4)>>3];do{if(v<x){h[s>>3]=x}else{x=+h[b+(r<<4)+8>>3];if(v<=x){break}h[s>>3]=x}}while(0);}while((r|0)>0)}n=FW(16)|0;p=c[m>>2]|0;c[n>>2]=205072;a[n+4|0]=1;m=n+8|0;c[m>>2]=p;b=GW(p>>>0>536870911?-1:p<<3)|0;o=n+12|0;c[o>>2]=b;a:do{if((p|0)>0){h[b>>3]=+h[d>>3];if((p|0)<=1){break}h[b+8>>3]=+h[d+8>>3];if((p|0)<=2){break}h[b+16>>3]=+h[d+16>>3];if((p|0)>3){p=3}else{break}while(1){h[b+(p<<3)>>3]=+h[d+(p<<3)>>3];p=p+1|0;if((p|0)>=(c[m>>2]|0)){break a}b=c[o>>2]|0}}}while(0);d=FW(12)|0;p=c[q>>2]|0;c[d>>2]=205136;o=d+4|0;c[o>>2]=p;q=GW(p>>>0>536870911?-1:p<<3)|0;m=d+8|0;c[m>>2]=q;b:do{if((p|0)>0){h[q>>3]=+h[e>>3];if((p|0)<=1){break}h[q+8>>3]=+h[e+8>>3];if((p|0)<=2){break}h[q+16>>3]=+h[e+16>>3];if((p|0)>3){p=3}else{break}while(1){h[q+(p<<3)>>3]=+h[e+(p<<3)>>3];p=p+1|0;if((p|0)>=(c[o>>2]|0)){break b}q=c[m>>2]|0}}}while(0);mG(c[l>>2]|0,n,d)}else{l=b+8|0;if((c[l>>2]|0)<=0){break}d=p+8|0;m=0;do{h[e+(m<<3)>>3]=+h[(c[d>>2]|0)+(m<<3)>>3];m=m+1|0;}while((m|0)<(c[l>>2]|0))}}while(0);c[j>>2]=205072;if((a[k]&1)==0){i=f;return}g=c[g>>2]|0;if((g|0)==0){i=f;return}IW(g);i=f;return}function bI(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=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,X=0,Y=0,Z=0,_=0,aa=0,ea=0,fa=0,ga=0,ha=0,ia=0,ja=0,ka=0,la=0,ma=0,na=0,oa=0,pa=0,qa=0,ra=0,sa=0,ta=0,ua=0,va=0,wa=0,xa=0,ya=0,za=0,Aa=0,Ba=0,Ca=0,Da=0,Ea=0,Fa=0,Ga=0,Ha=0,Ia=0,Ja=0,Ka=0,La=0,Ma=0,Na=0,Oa=0,Pa=0,Qa=0,Ra=0,Sa=0,Ta=0,Ua=0,Va=0,Wa=0,Xa=0,Ya=0,Za=0,_a=0,$a=0,ab=0,bb=0,cb=0,db=0,eb=0,fb=0,gb=0,hb=0,ib=0,jb=0,kb=0,lb=0,mb=0,nb=0,ob=0,pb=0,qb=0,rb=0,sb=0,tb=0,ub=0,vb=0,wb=0,xb=0,yb=0,zb=0,Ab=0,Bb=0,Cb=0,Db=0,Eb=0,Fb=0,Gb=0,Hb=0,Ib=0,Jb=0,Kb=0,Lb=0,Mb=0,Nb=0,Ob=0,Pb=0,Qb=0,Rb=0,Sb=0,Tb=0,Ub=0,Vb=0,Wb=0,Xb=0,Yb=0,Zb=0,_b=0,$b=0,ac=0,bc=0,cc=0,dc=0,ec=0,fc=0,gc=0,hc=0,ic=0,jc=0,kc=0,lc=0,mc=0,nc=0,oc=0,pc=0,qc=0,rc=0,sc=0,tc=0,uc=0,vc=0,wc=0,xc=0,yc=0,zc=0,Ac=0,Bc=0,Cc=0,Dc=0,Ec=0,Fc=0,Gc=0,Hc=0,Ic=0,Jc=0,Kc=0,Mc=0,Nc=0,Oc=0,Pc=0,Qc=0,Rc=0,Sc=0,Tc=0,Uc=0,Vc=0,Wc=0,Xc=0,Yc=0,Zc=0,_c=0,$c=0,ad=0,bd=0,cd=0,dd=0,ed=0,fd=0,gd=0,hd=0,id=0,jd=0,kd=0,ld=0,md=0,nd=0,od=0,pd=0,qd=0,rd=0,sd=0,td=0,ud=0,vd=0,wd=0,xd=0,yd=0.0,zd=0,Ad=0,Bd=0.0,Cd=0;g=i;Xb=i;i=i+8|0;Tb=i;i=i+8|0;Sb=i;i=i+8|0;Vb=i;i=i+8|0;Ub=i;i=i+8|0;qd=i;i=i+8|0;sd=i;i=i+8|0;rd=i;i=i+8|0;ud=i;i=i+8|0;td=i;i=i+8|0;Rb=i;i=i+8|0;Qb=i;i=i+8|0;Pb=i;i=i+8|0;Ob=i;i=i+8|0;pd=i;i=i+8|0;od=i;i=i+8|0;Nb=i;i=i+8|0;Mb=i;i=i+8|0;nd=i;i=i+8|0;md=i;i=i+8|0;ld=i;i=i+8|0;kd=i;i=i+8|0;jd=i;i=i+8|0;Ib=i;i=i+8|0;Hb=i;i=i+8|0;Gb=i;i=i+8|0;Fb=i;i=i+8|0;Lb=i;i=i+8|0;Kb=i;i=i+8|0;Jb=i;i=i+8|0;Eb=i;i=i+8|0;Db=i;i=i+8|0;Cb=i;i=i+8|0;id=i;i=i+8|0;hd=i;i=i+8|0;Bb=i;i=i+8|0;zb=i;i=i+8|0;yb=i;i=i+8|0;xb=i;i=i+8|0;wb=i;i=i+8|0;Ab=i;i=i+8|0;cd=i;i=i+8|0;ed=i;i=i+8|0;dd=i;i=i+8|0;gd=i;i=i+8|0;fdfdon jJ(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0;e=i;do{if((b|0)>0){f=Bd[c[a+4>>2]&255](a,b)|0;g=(f|0)==0;a=g?64:0;if(g){f=0;break}bX(f|0,0,b|0)|0}else{f=0;a=b>>31&6}}while(0);c[d>>2]=a;i=e;return f|0}function kJ(a){a=a|0;var d=0,e=0;d=i;e=a+20|0;b[a+22>>1]=0;b[e>>1]=0;c[a+48>>2]=0;$W(a+56|0,e|0,36)|0;i=d;return}function lJ(a,b){a=a|0;b=b|0;var d=0;d=i;if((b|0)==0){i=d;return}hd[c[a+8>>2]&127](a,b);i=d;return}function mJ(a){a=a|0;var d=0,e=0,f=0,g=0;e=i;if((a|0)==0){i=e;return}d=c[a>>2]|0;f=a+24|0;g=c[f>>2]|0;if((g|0)!=0){hd[c[d+8>>2]&127](d,g)}c[f>>2]=0;f=a+28|0;g=c[f>>2]|0;if((g|0)!=0){hd[c[d+8>>2]&127](d,g)}c[f>>2]=0;f=a+32|0;g=c[f>>2]|0;if((g|0)!=0){hd[c[d+8>>2]&127](d,g)}c[f>>2]=0;f=a+40|0;g=c[f>>2]|0;if((g|0)!=0){hd[c[d+8>>2]&127](d,g)}c[f>>2]=0;g=a+52|0;f=c[g>>2]|0;if((f|0)!=0){hd[c[d+8>>2]&127](d,f)}c[g>>2]=0;c[a+44>>2]=0;c[a+4>>2]=0;c[a+8>>2]=0;c[a+12>>2]=0;g=a+20|0;b[a+22>>1]=0;b[g>>1]=0;c[a+48>>2]=0;$W(a+56|0,g|0,36)|0;hd[c[d+8>>2]&127](d,a);i=e;return}function nJ(d){d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0;e=i;k=c[d>>2]|0;f=d+4|0;j=c[f>>2]|0;h=j<<1;a:do{if((h|0)<0){f=6}else{do{if((h|0)==0){k=0;g=10}else{if((h|0)>268435455){f=10;break a}j=j<<4;do{if((j|0)>0){k=Bd[c[k+4>>2]&255](k,j)|0;l=(k|0)==0;m=l?64:0;if(l){k=0;break}bX(k|0,0,j|0)|0}else{k=0;m=j>>31&6}}while(0);l=(m|0)==0;if(l&(h|0)>0){bX(k|0,0,j|0)|0;g=10;break}h=d+40|0;c[h>>2]=k;if(l){break}i=e;return m|0}}while(0);if((g|0)==10){h=d+40|0;c[h>>2]=k}a[d+16|0]=1;k=c[h>>2]|0;l=c[f>>2]|0;c[d+44>>2]=k+(l<<3);m=b[d+22>>1]|0;c[d+60>>2]=(c[d+24>>2]|0)+(m<<3);c[d+64>>2]=(c[d+28>>2]|0)+m;c[d+68>>2]=(c[d+32>>2]|0)+(b[d+20>>1]<<1);c[d+76>>2]=(c[h>>2]|0)+(m<<3);c[d+80>>2]=k+(l+m<<3);m=0;i=e;return m|0}}while(0);c[d+40>>2]=0;m=f;i=e;return m|0}function oJ(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;a:do{if((d|b|e|0)<0){a=6}else{do{if((e|0)==0|(b|0)==0){if((f|0)==0){f=0;a=0;break}hd[c[a+8>>2]&127](a,f);f=0;a=0}else{if((2147483647/(b|0)|0|0)<(e|0)){a=10;break a}if((d|0)!=0){k=da(d,b)|0;j=da(e,b)|0;a=pd[c[a+12>>2]&63](a,k,j,f)|0;j=(a|0)==0;f=j?f:a;a=j?64:0;break}j=da(e,b)|0;if((j|0)<=0){f=0;a=j>>31&6;break}f=Bd[c[a+4>>2]&255](a,j)|0;k=(f|0)==0;a=k?64:0;if(k){f=0;break}bX(f|0,0,j|0)|0}}while(0);if(!((a|0)==0&(e|0)>(d|0))){break}bX(f+(da(d,b)|0)|0,0,da(e-d|0,b)|0)|0;a=0}}while(0);c[g>>2]=a;i=h;return f|0}function pJ(d,e,f){d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0;g=i;j=c[d>>2]|0;h=d+22|0;l=(b[h>>1]|0)+e+(b[d+58>>1]|0)|0;e=d+4|0;k=c[e>>2]|0;a:do{if(l>>>0>k>>>0){m=l+7|0;l=m&-8;if(l>>>0>32767){s=10;i=g;return s|0}p=d+24|0;q=c[p>>2]|0;b:do{if((m|k|0)<0){d=6}else{o=(l|0)==0;do{if(o){if((q|0)==0){q=0;r=0;break}hd[c[j+8>>2]&127](j,q);q=0;r=0}else{if((l|0)>268435455){d=10;break b}if((k|0)!=0){r=pd[c[j+12>>2]&63](j,k<<3,l<<3,q)|0;n=(r|0)==0;q=n?q:r;r=n?64:0;break}s=l<<3;if((l|0)<=0){q=0;r=m>>>28&6;break}q=Bd[c[j+4>>2]&255](j,s)|0;r=(q|0)==0;n=r?64:0;if(r){q=0;r=n;break}bX(q|0,0,s|0)|0;r=n}}while(0);s=(r|0)==0;n=(l|0)>(k|0);do{if(s&n){bX(q+(k<<3)|0,0,l-k<<3|0)|0;c[p>>2]=q}else{c[p>>2]=q;if(s){break}else{q=r}i=g;return q|0}}while(0);p=d+28|0;q=c[p>>2]|0;do{if(o){if((q|0)==0){o=0;q=0;break}hd[c[j+8>>2]&127](j,q);o=0;q=0}else{if((k|0)!=0){o=pd[c[j+12>>2]&63](j,k,l,q)|0;m=(o|0)==0;o=m?q:o;q=m?64:0;break}if((l|0)<=0){o=0;q=m>>31&6;break}o=Bd[c[j+4>>2]&255](j,l)|0;m=(o|0)==0;q=m?64:0;if(m){o=0;break}bX(o|0,0,l|0)|0}}while(0);m=(q|0)==0;do{if(m&n){bX(o+k|0,0,l-k|0)|0;c[p>>2]=o}else{c[p>>2]=o;if(m){break}i=g;return q|0}}while(0);c:do{if((a[d+16|0]|0)!=0){o=k<<1;n=l<<1;m=d+40|0;p=c[m>>2]|0;d:do{if((n|o|0)<0){d=6}else{do{if((n|0)==0){if((p|0)==0){p=0;q=0;break}hd[c[j+8>>2]&127](j,p);p=0;q=0}else{if((n|0)>268435455){d=10;break d}if((o|0)!=0){r=pd[c[j+12>>2]&63](j,k<<4,l<<4,p)|0;q=(r|0)==0;p=q?p:r;q=q?64:0;break}r=l<<4;if((r|0)<=0){p=0;q=r>>31&6;break}p=Bd[c[j+4>>2]&255](j,r)|0;s=(p|0)==0;q=s?64:0;if(s){p=0;break}bX(p|0,0,r|0)|0}}while(0);r=(q|0)==0;do{if(r&(n|0)>(o|0)){bX(p+(k<<4)|0,0,n-o<<3|0)|0;c[m>>2]=p}else{c[m>>2]=p;if(r){break}i=g;return q|0}}while(0);aX(p+(l<<3)|0,p+(k<<3)|0,k<<3|0)|0;c[d+44>>2]=(c[m>>2]|0)+(l<<3);break c}}while(0);c[m>>2]=p;s=d;i=g;return s|0}}while(0);c[e>>2]=l;n=1;break a}}while(0);c[p>>2]=q;s=d;i=g;return s|0}else{n=0}}while(0);k=d+8|0;l=c[k>>2]|0;e=d+20|0;m=b[e>>1]|0;f=(m<<16>>16)+f+(b[d+56>>1]|0)|0;e:do{if(f>>>0>l>>>0){o=f+3|0;f=o&-4;if(f>>>0>32767){s=10;i=g;return s|0}m=d+32|0;n=c[m>>2]|0;f:do{if((o|l|0)<0){d=6}else{do{if((f|0)==0){if((n|0)==0){j=0;q=0;break}hd[c[j+8>>2]&127](j,n);j=0;q=0}else{if((f|0)>1073741823){d=10;break f}if((l|0)!=0){j=pd[c[j+12>>2]&63](j,l<<1,f<<1,n)|0;o=(j|0)==0;j=o?n:j;q=o?64:0;break}n=f<<1;if((f|0)<=0){j=0;q=o>>30&6;break}j=Bd[c[j+4>>2]&255](j,n)|0;o=(j|0)==0;q=o?64:0;if(o){j=0;break}bX(j|0,0,n|0)|0}}while(0);n=(q|0)==0;do{if(n&(f|0)>(l|0)){bX(j+(l<<1)|0,0,f-l<<1|0)|0;c[m>>2]=j}else{c[m>>2]=j;if(n){break}i=g;return q|0}}while(0);c[k>>2]=f;m=b[e>>1]|0;break e}}while(0);c[m>>2]=n;s=d;i=g;return s|0}else{if(n<<24>>24==0){s=0;i=g;return s|0}else{j=c[d+32>>2]|0;break}}}while(0);h=b[h>>1]|0;c[d+60>>2]=(c[d+24>>2]|0)+(h<<3);c[d+64>>2]=(c[d+28>>2]|0)+h;c[d+68>>2]=j+(m<<16>>16<<1);if((a[d+16|0]|0)==0){s=0;i=g;return s|0}c[d+76>>2]=(c[d+40>>2]|0)+(h<<3);c[d+80>>2]=(c[d+44>>2]|0)+(h<<3);s=0;i=g;return s|0}function qJ(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;d=i;k=c[a>>2]|0;e=a+48|0;f=(c[e>>2]|0)+b+(c[a+84>>2]|0)|0;b=a+12|0;h=c[b>>2]|0;if(f>>>0<=h>>>0){m=0;i=d;return m|0}l=f+1|0;g=l&-2;f=a+52|0;j=c[f>>2]|0;a:do{if((l|h|0)<0){a=6}else{do{if((g|0)==0){if((j|0)==0){j=0;k=0;break}hd[c[k+8>>2]&127](k,j);j=0;k=0}else{if((g|0)>67108863){a=10;break a}if((h|0)!=0){l=pd[c[k+12>>2]&63](k,h<<5,g<<5,j)|0;k=(l|0)==0;j=k?j:l;k=k?64:0;break}j=g<<5;if((g|0)<=0){j=0;k=l>>>26&6;break}m=Bd[c[k+4>>2]&255](k,j)|0;l=(m|0)==0;k=l?64:0;if(l){j=0;break}bX(m|0,0,j|0)|0;j=m}}while(0);l=(k|0)==0;do{if(l&(g|0)>(h|0)){bX(j+(h<<5)|0,0,g-h<<5|0)|0;c[f>>2]=j}else{c[f>>2]=j;if(l){break}i=d;return k|0}}while(0);c[b>>2]=g;c[a+88>>2]=j+(c[e>>2]<<5);m=0;i=d;return m|0}}while(0);c[f>>2]=j;m=a;i=d;return m|0}function rJ(d){d=d|0;var e=0,f=0,g=0;e=i;b[d+58>>1]=0;b[d+56>>1]=0;c[d+84>>2]=0;f=b[d+22>>1]|0;c[d+60>>2]=(c[d+24>>2]|0)+(f<<3);c[d+64>>2]=(c[d+28>>2]|0)+f;c[d+68>>2]=(c[d+32>>2]|0)+(b[d+20>>1]<<1);if((a[d+16|0]|0)==0){f=d+52|0;f=c[f>>2]|0;g=d+48|0;g=c[g>>2]|0;g=g<<5;g=f+g|0;f=d+88|0;c[f>>2]=g;i=e;return}c[d+76>>2]=(c[d+40>>2]|0)+(f<<3);c[d+80>>2]=(c[d+44>>2]|0)+(f<<3);g=d+52|0;g=c[g>>2]|0;f=d+48|0;f=c[f>>2]|0;f=f<<5;f=g+f|0;g=d+88|0;c[g>>2]=f;i=e;return}function sJ(d){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;g=i;if((d|0)==0){i=g;return}j=d+56|0;r=b[j>>1]|0;n=r<<16>>16;l=d+22|0;o=b[l>>1]|0;h=d+58|0;p=(b[h>>1]|0)+o<<16>>16;b[l>>1]=p;m=d+20|0;q=r+(b[m>>1]|0)<<16>>16;b[m>>1]=q;k=d+84|0;f=d+48|0;c[f>>2]=(c[f>>2]|0)+(c[k>>2]|0);e=d+68|0;if(r<<16>>16!=0){p=0;do{r=(c[e>>2]|0)+(p<<1)|0;b[r>>1]=(b[r>>1]|0)+o<<16>>16;p=p+1|0;}while(p>>>0<n>>>0);q=b[m>>1]|0;p=b[l>>1]|0}b[h>>1]=0;b[j>>1]=0;c[k>>2]=0;h=p<<16>>16;c[d+60>>2]=(c[d+24>>2]|0)+(h<<3);c[d+64>>2]=(c[d+28>>2]|0)+h;c[e>>2]=(c[d+32>>2]|0)+(q<<16>>16<<1);if((a[d+16|0]|0)!=0){c[d+76>>2]=(c[d+40>>2]|0)+(h<<3);c[d+80>>2]=(c[d+44>>2]|0)+(h<<3)}c[d+88>>2]=(c[d+52>>2]|0)+(c[f>>2]<<5);i=g;return}function tJ(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;g=b[e+22>>1]|0;j=g<<16>>16;h=b[e+20>>1]|0;k=h<<16>>16;l=pJ(d,j,k)|0;if((l|0)!=0){i=f;return l|0}m=d+24|0;q=j<<3;$W(c[m>>2]|0,c[e+24>>2]|0,q|0)|0;n=d+28|0;$W(c[n>>2]|0,c[e+28>>2]|0,j|0)|0;o=d+32|0;$W(c[o>>2]|0,c[e+32>>2]|0,k<<1|0)|0;r=d+16|0;p=a[r]|0;do{if(p<<24>>24==0){p=0}else{if((a[e+16|0]|0)==0){break}$W(c[d+40>>2]|0,c[e+40>>2]|0,q|0)|0;$W(c[d+44>>2]|0,c[e+44>>2]|0,q|0)|0;p=a[r]|0}}while(0);b[d+22>>1]=g;b[d+20>>1]=h;c[d+60>>2]=(c[m>>2]|0)+(j<<3);c[d+64>>2]=(c[n>>2]|0)+j;c[d+68>>2]=(c[o>>2]|0)+(k<<1);if(p<<24>>24==0){i=f;return l|0}c[d+76>>2]=(c[d+40>>2]|0)+(j<<3);c[d+80>>2]=(c[d+44>>2]|0)+(j<<3);i=f;return l|0}function uJ(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;d=i;a:do{if((a|0)==0|(b|0)==0){b=0}else{e=c[a>>2]|0;if((e|0)==0){b=0;break}else{f=a}while(1){a=f+8|0;if((Qc(e|0,b|0)|0)==0){break}e=c[a>>2]|0;if((e|0)==0){b=0;break a}else{f=a}}b=c[f+4>>2]|0}}while(0);i=d;return b|0}function vJ(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;c[a>>2]=b;c[a+4>>2]=d;c[a+8>>2]=e;c[a+12>>2]=0;i=i;return}function wJ(a,b){a=a|0;b=b|0;c[a+12>>2]=b;_a(a+16|0,1)}function xJ(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0;e=i;c[d>>2]=0;if((a|0)==0){h=33;i=e;return h|0}if((b|0)==0){h=6;i=e;return h|0}a=c[a>>2]|0;f=Bd[c[a+4>>2]&255](a,40)|0;h=(f|0)==0;g=h?64:0;if(h){h=64;i=e;return h|0}bX(f|0,0,40)|0;c[f+28>>2]=a;h=c[b>>2]|0;do{if((h&1|0)==0){if((h&4|0)!=0){b=b+12|0;g=HL(f,c[b>>2]|0)|0;c[f+16>>2]=c[b>>2];b=12;break}if((h&2|0)==0){g=6;b=13;break}h=b+16|0;b=c[h>>2]|0;if((b|0)==0){g=6;b=13;break}if((f|0)==0){f=b;b=12;break}hd[c[a+8>>2]&127](a,f);f=c[h>>2]|0;b=12}else{h=c[b+8>>2]|0;c[f>>2]=c[b+4>>2];c[f+4>>2]=h;c[f+8>>2]=0;c[f+32>>2]=0;c[f+20>>2]=0;c[f+24>>2]=0;b=12}}while(0);do{if((b|0)==12){if((g|0)!=0){b=13;break}c[f+28>>2]=a;g=0}}while(0);do{if((b|0)==13){if((f|0)==0){f=0;break}hd[c[a+8>>2]&127](a,f);f=0}}while(0);c[d>>2]=f;h=g;i=e;return h|0}function yJ(a,b,d){a=a|0;b=b|0;d=d|0;c[a>>2]=b;c[a+4>>2]=d;c[a+8>>2]=0;c[a+32>>2]=0;c[a+20>>2]=0;c[a+24>>2]=0;i=i;return}function zJ(a){a=a|0;var b=0,d=0;b=i;do{if((a|0)!=0){d=c[a+24>>2]|0;if((d|0)==0){break}fd[d&511](a)}}while(0);i=b;return}function AJ(a){a=a|0;var b=0,d=0,e=0,f=0,g=0;b=i;e=a+156|0;d=c[e>>2]|0;do{if((d|0)!=0){if((c[d+4>>2]&1|0)==0){break}f=c[(c[a+4>>2]|0)+100>>2]|0;a=a+88|0;g=c[a>>2]|0;if((g|0)!=0){hd[c[f+8>>2]&127](f,g);d=c[e>>2]|0}c[a>>2]=0;g=d+4|0;c[g>>2]=c[g>>2]&-2;i=b;return}}while(0);c[a+88>>2]=0;i=b;return}function BJ(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0;d=i;g=a+156|0;f=c[g>>2]|0;do{if((f|0)!=0){if((c[f+4>>2]&1|0)==0){break}j=c[(c[a+4>>2]|0)+100>>2]|0;e=a+88|0;h=c[e>>2]|0;if((h|0)!=0){hd[c[j+8>>2]&127](j,h);f=c[g>>2]|0}c[e>>2]=0;j=f+4|0;c[j>>2]=c[j>>2]&-2;j=a+88|0;c[j>>2]=b;i=d;return}}while(0);c[a+88>>2]=0;j=a+88|0;c[j>>2]=b;i=d;return}function CJ(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;d=i;e=c[(c[a+4>>2]|0)+100>>2]|0;g=(c[a+156>>2]|0)+4|0;f=c[g>>2]|0;if((f&1|0)==0){c[g>>2]=f|1}else{g=a+88|0;f=c[g>>2]|0;if((f|0)!=0){hd[c[e+8>>2]&127](e,f)}c[g>>2]=0}do{if((b|0)>0){f=Bd[c[e+4>>2]&255](e,b)|0;g=(f|0)==0;e=g?64:0;if(g){f=0;break}bX(f|0,0,b|0)|0}else{f=0;e=b>>31&6}}while(0);c[a+88>>2]=f;i=d;return e|0}function DJ(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;f=i;if((a|0)==0){n=6;i=f;return n|0}j=a+96|0;g=c[j>>2]|0;if((g|0)==0){n=6;i=f;return n|0}e=c[g+8>>2]|0;k=c[(c[g+20>>2]|0)+44>>2]|0;do{if((k|0)>0){g=Bd[c[e+4>>2]&255](e,k)|0;l=(g|0)==0;h=l?64:0;if(l){g=0;break}bX(g|0,0,k|0)|0}else{g=0;h=k>>31&6}}while(0);if((h|0)!=0){if((b|0)==0){n=h;i=f;return n|0}c[b>>2]=0;n=h;i=f;return n|0}h=g+4|0;c[h>>2]=a;m=c[j>>2]|0;j=c[m+20>>2]|0;k=c[m+8>>2]|0;c[g>>2]=c[m+4>>2];n=k+4|0;l=Bd[c[n>>2]&255](k,40)|0;do{if((l|0)==0){b=64}else{bX(l|0,0,40)|0;c[g+156>>2]=l;if((c[c[m>>2]>>2]&512|0)==0){m=Bd[c[n>>2]&255](k,96)|0;if((m|0)==0){b=64;break}bX(m|0,0,96)|0;c[m>>2]=k;c[l>>2]=m}j=c[j+64>>2]|0;if((j|0)!=0){j=jd[j&511](g)|0;if((j|0)!=0){b=j;break}}n=a+84|0;c[g+8>>2]=c[n>>2];c[n>>2]=g;if((b|0)==0){n=0;i=f;return n|0}c[b>>2]=g;n=0;i=f;return n|0}}while(0);k=c[(c[h>>2]|0)+96>>2]|0;a=c[k+8>>2]|0;j=c[(c[k+20>>2]|0)+68>>2]|0;if((j|0)!=0){fd[j&511](g)}j=g+156|0;l=c[j>>2]|0;do{if((l|0)==0){d=21}else{if((c[l+4>>2]&1|0)==0){d=21;break}m=c[(c[h>>2]|0)+100>>2]|0;h=g+88|0;n=c[h>>2]|0;if((n|0)!=0){hd[c[m+8>>2]&127](m,n);l=c[j>>2]|0}c[h>>2]=0;l=l+4|0;c[l>>2]=c[l>>2]&-2;l=c[j>>2]|0}}while(0);if((d|0)==21){c[g+88>>2]=0}if((l|0)!=0){if((c[c[k>>2]>>2]&512|0)==0){mJ(c[l>>2]|0);c[c[j>>2]>>2]=0;l=c[j>>2]|0;if((l|0)!=0){d=25}}else{d=25}if((d|0)==25){hd[c[a+8>>2]&127](a,l)}c[j>>2]=0}if((g|0)==0){n=b;i=f;return n|0}hd[c[e+8>>2]&127](e,g);n=b;i=f;return n|0}function EJ(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;e=i;if((a|0)==0){i=e;return}g=a+4|0;f=c[g>>2]|0;d=c[(c[f+96>>2]|0)+8>>2]|0;f=f+84|0;j=c[f>>2]|0;if((j|0)==0){i=e;return}else{h=0}while(1){if((j|0)==(a|0)){break}h=c[j+8>>2]|0;if((h|0)==0){b=22;break}else{m=j;j=h;h=m}}if((b|0)==22){i=e;return}j=c[a+8>>2]|0;if((h|0)==0){c[f>>2]=j}else{c[h+8>>2]=j}j=c[(c[g>>2]|0)+96>>2]|0;f=c[j+8>>2]|0;h=c[(c[j+20>>2]|0)+68>>2]|0;if((h|0)!=0){fdfd[y&511](I)}if(k<<24>>24!=0){break a}hd[c[C+8>>2]&127](C,I);break a}}while(0);b:do{if((q|0)==17){O=c[d+24>>2]|0;H=d+28+(O<<2)|0;if((O|0)<=0){n=0;q=36;break a}I=e+24|0;J=e+28|0;L=0;K=d+28|0;c:while(1){M=c[K>>2]|0;if((c[c[M>>2]>>2]&1|0)==0){M=L}else{if((c[e>>2]&16|0)==0){O=0;N=0}else{O=c[I>>2]|0;N=c[J>>2]|0}L=c[m>>2]|0;M=OJ(M,L,f,O,N,F)|0;if((M|0)==0){break b}do{if((Qc(c[(c[c[K>>2]>>2]|0)+8>>2]|0,206240)|0)==0){if((M&255|0)!=142){break}N=c[L+20>>2]|0;if((N|0)!=0){if((pd[N&63](L,0,0,0)|0)!=0){B=M;q=35;break a}}c[L+8>>2]=0;M=QJ(d,L,f,g)|0;if((M|0)==0){break c}}}while(0);if((M&255|0)!=2){B=M;q=35;break a}}K=K+4|0;if(K>>>0<H>>>0){L=M}else{B=M;q=35;break a}}if((L|0)==0){O=0;i=h;return O|0}j=c[L+28>>2]|0;l=c[L+24>>2]|0;if((l|0)!=0){fd[l&511](L)}if(k<<24>>24!=0){O=0;i=h;return O|0}hd[c[j+8>>2]&127](j,L);O=0;i=h;return O|0}}while(0);if(k<<24>>24!=0){O=(c[l>>2]|0)+8|0;c[O>>2]=c[O>>2]|1024}H=Bd[c[G+4>>2]&255](G,12)|0;F=(H|0)==0;p=F?64:0;if(F){p=64;break}F=H;G=F;F=F+4|0;a[G]=0;a[G+1|0]=0;a[G+2|0]=0;a[G+3|0]=0;a[F]=0;a[F+1|0]=0;a[F+2|0]=0;a[F+3|0]=0;F=c[l>>2]|0;c[H+8>>2]=F;G=F+96|0;I=c[G>>2]|0;K=I+28|0;J=c[K>>2]|0;c[H+4>>2]=0;c[H>>2]=J;if((J|0)==0){c[I+24>>2]=H}else{c[J+4>>2]=H}c[K>>2]=H;if(E){p=DJ(F,0)|0;if((p|0)!=0){break}p=RJ(F,D)|0;if((p|0)!=0){break}c[F+88>>2]=c[C>>2];p=0}k=c[F+8>>2]|0;do{if((k&1|0)!=0){m=F+74|0;l=b[m>>1]|0;if(l<<16>>16<0){l=0-l<<16>>16;b[m>>1]=l}if((k&32|0)!=0){break}b[F+78>>1]=l}}while(0);do{if((k&2|0)!=0){k=F+28|0;if((c[k>>2]|0)>0){l=0}else{break}do{m=c[F+32>>2]|0;n=m+(l<<4)|0;o=b[n>>1]|0;if(o<<16>>16<0){b[n>>1]=0-o<<16>>16}o=m+(l<<4)+8|0;n=c[o>>2]|0;if((n|0)<0){c[o>>2]=0-n<<16>>16}n=m+(l<<4)+12|0;m=c[n>>2]|0;if((m|0)<0){c[n>>2]=0-m}l=l+1|0;}while((l|0)<(c[k>>2]|0))}}while(0);k=F+128|0;O=c[k>>2]|0;c[O+4>>2]=65536;c[O+8>>2]=0;c[O+12>>2]=0;c[O+16>>2]=65536;c[O+20>>2]=0;c[O+24>>2]=0;c[O+60>>2]=1;if(y){c[g>>2]=F;O=p;i=h;return O|0}if((F|0)==0){O=p;i=h;return O|0}if((c[G>>2]|0)==0){O=p;i=h;return O|0}O=(c[k>>2]|0)+60|0;c[O>>2]=(c[O>>2]|0)+ -1;if((c[(c[k>>2]|0)+60>>2]|0)!=0){O=p;i=h;return O|0}l=c[G>>2]|0;k=c[l+8>>2]|0;m=l+24|0;n=c[m>>2]|0;if((n|0)==0){O=p;i=h;return O|0}while(1){if((c[n+8>>2]|0)==(F|0)){break}o=c[n+4>>2]|0;if((o|0)==0){j=p;q=134;break}else{n=o}}if((q|0)==134){i=h;return j|0}o=c[n>>2]|0;j=c[n+4>>2]|0;if((o|0)==0){c[m>>2]=j}else{c[o+4>>2]=j}if((j|0)==0){c[l+28>>2]=o}else{c[j>>2]=o}if((n|0)!=0){hd[c[k+8>>2]&127](k,n)}UJ(k,F,l);O=p;i=h;return O|0}else{B=G;q=35}}while(0);do{if((q|0)==35){O=B&255;if(!((O|0)==85|(O|0)==2|(O|0)==81)){n=B;q=36;break}y=c[m>>2]|0;z=oL(d,y,f,g)|0;if((z&255|0)==2){z=pL(d,y,0,f,g)|0}O=z&255;do{if((O|0)==85|(O|0)==2){if((c[e>>2]&4|0)==0){o=z;break}z=c[d>>2]|0;c[u>>2]=0;e=e+12|0;B=c[e>>2]|0;E=(y|0)==0;D=y+20|0;C=y+8|0;F=0;do{G=o+(F<<2)|0;c[G>>2]=0;d:do{if(E){c[w+(F<<2)>>2]=0;q=48}else{A=c[D>>2]|0;do{if((A|0)!=0){if((pd[A&63](y,0,0,0)|0)==0){break}c[w+(F<<2)>>2]=85;break d}}while(0);c[C>>2]=0;c[w+(F<<2)>>2]=0;q=48}}while(0);if((q|0)==48){q=0;c[w+(F<<2)>>2]=Cd[c[206320+(F<<3)>>2]&63](d,y,B,G,v+(F<<2)|0)|0}F=F+1|0;}while((F|0)<9);q=t+12|0;D=2;A=0;C=0;e:while(1){B=((c[206324+(A<<3)>>2]|0)+ -3|0)>>>0<2;do{if(C<<24>>24==0|B^1){if((c[w+(A<<2)>>2]|0)!=0){break}c[s>>2]=4;D=c[o+(A<<2)>>2]|0;if((D|0)==0){D=c[e>>2]|0}c[q>>2]=D;D=xJ(d,t,x)|0;C=B&(D|0)==81?1:C;if((D|0)!=0){break}F=c[u>>2]|0;G=pL(d,F,c[v+(A<<2)>>2]|0,f,g)|0;if((F|0)!=0){E=c[F+28>>2]|0;D=c[F+24>>2]|0;if((D|0)!=0){fd[D&511](F)}hd[c[E+8>>2]&127](E,F)}if((G|0)==0){g=0;break e}D=G;C=B?1:C}}while(0);A=A+1|0;if((A|0)>=9){g=D;break}}q=z+8|0;s=c[r>>2]|0;if((s|0)!=0){hd[c[q>>2]&127](z,s);c[r>>2]=0}r=o+4|0;s=c[r>>2]|0;if((s|0)!=0){hd[c[q>>2]&127](z,s);c[r>>2]=0}r=o+8|0;s=c[r>>2]|0;if((s|0)!=0){hd[c[q>>2]&127](z,s);c[r>>2]=0}r=o+12|0;s=c[r>>2]|0;if((s|0)!=0){hd[c[q>>2]&127](z,s);c[r>>2]=0}s=o+16|0;r=c[s>>2]|0;if((r|0)!=0){hd[c[q>>2]&127](z,r);c[s>>2]=0}s=o+20|0;r=c[s>>2]|0;if((r|0)!=0){hd[c[q>>2]&127](z,r);c[s>>2]=0}r=o+24|0;s=c[r>>2]|0;if((s|0)!=0){hd[c[q>>2]&127](z,s);c[r>>2]=0}s=o+28|0;r=c[s>>2]|0;if((r|0)!=0){hd[c[q>>2]&127](z,r);c[s>>2]=0}o=o+32|0;r=c[o>>2]|0;if((r|0)!=0){hd[c[q>>2]&127](z,r);c[o>>2]=0}o=(g|0)==0?0:2}else{o=z}}while(0);if((o|0)!=0){z=y;A=(o&255|0)==2?2:o;q=73;break}if((y|0)==0){O=0;i=h;return O|0}j=c[y+28>>2]|0;l=c[y+24>>2]|0;if((l|0)!=0){fd[l&511](y)}if(k<<24>>24!=0){O=0;i=h;return O|0}hd[c[j+8>>2]&127](j,y);O=0;i=h;return O|0}}while(0);if((q|0)==36){z=c[m>>2]|0;A=n;q=73}do{if((q|0)==73){if((z|0)==0){p=A;break}m=c[z+28>>2]|0;n=c[z+24>>2]|0;if((n|0)!=0){fd[n&511](z)}if(k<<24>>24!=0){p=A;break}hd[c[m+8>>2]&127](m,z);p=A}}while(0);k=c[l>>2]|0;if((k|0)==0){O=p;i=h;return O|0}l=k+96|0;if((c[l>>2]|0)==0){O=p;i=h;return O|0}O=k+128|0;N=(c[O>>2]|0)+60|0;c[N>>2]=(c[N>>2]|0)+ -1;if((c[(c[O>>2]|0)+60>>2]|0)!=0){O=p;i=h;return O|0}n=c[l>>2]|0;m=c[n+8>>2]|0;l=n+24|0;o=c[l>>2]|0;if((o|0)==0){O=p;i=h;return O|0}while(1){if((c[o+8>>2]|0)==(k|0)){break}g=c[o+4>>2]|0;if((g|0)==0){j=p;q=134;break}else{o=g}}if((q|0)==134){i=h;return j|0}j=c[o>>2]|0;q=c[o+4>>2]|0;if((j|0)==0){c[l>>2]=q}else{c[j+4>>2]=q}if((q|0)==0){c[n+28>>2]=j}else{c[q>>2]=j}if((o|0)!=0){hd[c[m+8>>2]&127](m,o)}UJ(m,k,n);O=p;i=h;return O|0}function NJ(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=i;i=i+32|0;j=h;if((b|0)==0){f=6;i=g;return f|0}c[h>>2]=1;c[j+4>>2]=b;c[j+8>>2]=d;c[j+16>>2]=0;f=MJ(a,j,e,f)|0;i=g;return f|0}function OJ(a,d,e,f,g,h){a=a|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;j=i;m=c[a+20>>2]|0;l=c[a+8>>2]|0;p=c[m+36>>2]|0;do{if((p|0)>0){k=Bd[c[l+4>>2]&255](l,p)|0;q=(k|0)==0;o=q?64:0;if(q){k=0;break}bX(k|0,0,p|0)|0}else{k=0;o=p>>31&6}}while(0);do{if((o|0)==0){o=Bd[c[l+4>>2]&255](l,64)|0;q=(o|0)==0;p=q?64:0;if(q){n=64;f=0;break}bX(o|0,0,64)|0;q=k+128|0;c[q>>2]=o;c[k+96>>2]=a;c[k+100>>2]=l;c[k+104>>2]=d;c[o+52>>2]=0;a:do{if((f|0)>0){r=0;do{a=(c[q>>2]|0)+52|0;if((c[a>>2]|0)!=0){break a}if((c[g+(r<<3)>>2]|0)==1768842098){c[a>>2]=c[g+(r<<3)+4>>2]}r=r+1|0;}while((r|0)<(f|0))}}while(0);a=c[m+48>>2]|0;if((a|0)!=0){p=Cd[a&63](d,k,e,f,g)|0}if((p|0)!=0){n=p;f=o;break}l=c[k+40>>2]|0;if((l|0)==0){c[h>>2]=k;r=0;i=j;return r|0}m=(c[k+36>>2]|0)+ -1|0;b:do{if((m|0)>=0){m=l+(m<<2)|0;g=m;c:do{f=c[g>>2]|0;do{if((c[f+4>>2]|0)==1970170211){e=b[f+8>>1]|0;if(e<<16>>16==3){if((b[f+10>>1]|0)!=10){break}}else if(e<<16>>16==0){if((b[f+10>>1]|0)!=4){break}}else{break}if((g-l|0)<=60){n=25;break c}}}while(0);g=g+ -4|0;}while(g>>>0>=l>>>0);if((n|0)==25){c[k+92>>2]=f;break}while(1){n=c[m>>2]|0;if((c[n+4>>2]|0)==1970170211){if((m-l|0)<=60){break}}m=m+ -4|0;if(m>>>0<l>>>0){break b}}c[k+92>>2]=n}}while(0);c[h>>2]=k;r=0;i=j;return r|0}else{n=o;f=0}}while(0);e=(k|0)==0;if(!e){g=k+36|0;d=k+40|0;o=c[d>>2]|0;if((c[g>>2]|0)>0){a=0;do{p=c[o+(a<<2)>>2]|0;q=c[(c[p>>2]|0)+100>>2]|0;o=c[(c[p+12>>2]|0)+8>>2]|0;if((o|0)!=0){fd[o&511](p)}hd[c[q+8>>2]&127](q,p);c[(c[d>>2]|0)+(a<<2)>>2]=0;a=a+1|0;o=c[d>>2]|0}while((a|0)<(c[g>>2]|0))}if((o|0)!=0){hd[c[l+8>>2]&127](l,o)}c[d>>2]=0;c[g>>2]=0}m=c[m+52>>2]|0;if((m|0)!=0){fd[m&511](k)}if((f|0)!=0){hd[c[l+8>>2]&127](l,f)}if(!e){hd[c[l+8>>2]&127](l,k)}c[h>>2]=0;r=n;i=j;return r|0}function PJ(a,b){a=a|0;b=b|0;var d=0,e=0;d=i;e=c[a+20>>2]|0;if((e|0)==0){e=(c[a+4>>2]|0)>>>0<b>>>0?85:0}else{e=(pd[e&63](a,b,0,0)|0)==0;e=e?0:85}if((e|0)!=0){i=d;return e|0}c[a+8>>2]=b;i=d;return e|0}function QJ(a,b,e,f){a=a|0;b=b|0;e=e|0;f=f|0;var 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;g=i;o=i;i=i+8|0;n=i;i=i+8|0;m=c[a>>2]|0;j=b+8|0;h=c[j>>2]|0;k=b+4|0;if((h+3|0)>>>0>=(c[k>>2]|0)>>>0){z=85;i=g;return z|0}l=b+20|0;q=c[l>>2]|0;do{if((q|0)==0){r=(c[b>>2]|0)+h|0;if((r|0)!=0){q=h;p=7;break}c[j>>2]=h+4}else{if((pd[q&63](b,h,n,4)|0)==4){q=c[j>>2]|0;r=n;p=7;break}else{z=85;i=g;return z|0}}}while(0);do{if((p|0)==7){z=(d[r+1|0]|0)<<16|(d[r]|0)<<24|(d[r+2|0]|0)<<8|(d[r+3|0]|0);p=q+4|0;c[j>>2]=p;if((z|0)!=1954115633){break}r=c[k>>2]|0;if((q+5|0)>>>0>=r>>>0){z=85;i=g;return z|0}s=c[l>>2]|0;do{if((s|0)==0){o=(c[b>>2]|0)+p|0;if((o|0)!=0){r=0;s=p;p=14;break}c[j>>2]=q+6;o=r;r=q+12|0;q=0;p=17}else{if((pd[s&63](b,p,o,2)|0)==2){r=c[l>>2]|0;s=c[j>>2]|0;p=14;break}else{z=85;i=g;return z|0}}}while(0);do{if((p|0)==14){q=((d[o]|0)<<8&65535|(d[o+1|0]|0))&65535;c[j>>2]=s+2;s=s+8|0;if((r|0)==0){o=c[k>>2]|0;r=s;p=17;break}else{z=(pd[r&63](b,s,0,0)|0)==0;o=z?0:85;break}}}while(0);if((p|0)==17){s=r;o=o>>>0<r>>>0?85:0}if((o|0)!=0){z=o;i=g;return z|0}c[j>>2]=s;if((q|0)==0){z=142;i=g;return z|0}r=(e|0)>-1;o=(e|0)<0;p=s;u=0;s=1;t=-1;a:while(1){x=c[k>>2]|0;if((p+3|0)>>>0>=x>>>0){x=85;p=71;break}v=c[l>>2]|0;do{if((v|0)==0){v=(c[b>>2]|0)+p|0;if((v|0)!=0){x=0;z=p;p=29;break}c[j>>2]=p+4;y=p+8|0;z=p;v=0;p=32}else{if((pd[v&63](b,p,n,4)|0)!=4){x=85;p=71;break a}x=c[l>>2]|0;z=c[j>>2]|0;v=n;p=29}}while(0);do{if((p|0)==29){p=0;v=(d[v+1|0]|0)<<16|(d[v]|0)<<24|(d[v+2|0]|0)<<8|(d[v+3|0]|0);c[j>>2]=z+4;w=z+8|0;if((x|0)==0){x=c[k>>2]|0;y=w;p=32;break}else{y=(pd[x&63](b,w,0,0)|0)==0;x=y?0:85;break}}}while(0);if((p|0)==32){p=0;w=y;x=x>>>0<y>>>0?85:0}if((x|0)!=0){p=71;break}c[j>>2]=w;y=c[k>>2]|0;if((z+11|0)>>>0>=y>>>0){x=85;p=71;break}x=c[l>>2]|0;if((x|0)==0){x=(c[b>>2]|0)+w|0;if((x|0)==0){x=0}else{p=39}}else{if((pd[x&63](b,w,n,4)|0)!=4){x=85;p=71;break}y=c[k>>2]|0;w=c[j>>2]|0;x=n;p=39}if((p|0)==39){p=0;x=(d[x+1|0]|0)<<16|(d[x]|0)<<24|(d[x+2|0]|0)<<8|(d[x+3|0]|0)}z=w+4|0;c[j>>2]=z;if((w+7|0)>>>0>=y>>>0){x=85;p=71;break}w=c[l>>2]|0;if((w|0)==0){w=(c[b>>2]|0)+z|0;if((w|0)==0){w=0}else{p=45}}else{if((pd[w&63](b,z,n,4)|0)!=4){x=85;p=71;break}z=c[j>>2]|0;w=n;p=45}if((p|0)==45){w=(d[w+1|0]|0)<<16|(d[w]|0)<<24|(d[w+2|0]|0)<<8|(d[w+3|0]|0)}p=z+4|0;c[j>>2]=p;if((v|0)==1415139377){x=x+24|0;w=w+ -24|0;if(o){n=w;u=0;p=50;break}else{u=0;t=t+1|0}}else if((v|0)==1128875040){x=x+22|0;w=w+ -22|0;if(o){n=w;u=1;p=50;break}else{u=1;t=t+1|0}}if(r&(t|0)==(e|0)){n=w;p=50;break}if((s|0)>=(q|0)){x=142;p=71;break}s=s+1|0}if((p|0)==50){p=x+h|0;q=c[l>>2]|0;if((q|0)==0){q=(c[k>>2]|0)>>>0<p>>>0?85:0}else{z=(pd[q&63](b,p,0,0)|0)==0;q=z?0:85}if((q|0)!=0){z=0;i=g;return z|0}c[j>>2]=p;do{if((n|0)>0){m=Bd[c[m+4>>2]&255](m,n)|0;p=(m|0)==0;x=p?64:0;if(p){m=0;break}bX(m|0,0,n|0)|0}else{m=0;x=n>>31&6}}while(0);do{if((x|0)==0){p=c[j>>2]|0;r=c[k>>2]|0;if(r>>>0<=p>>>0){z=85;i=g;return z|0}q=c[l>>2]|0;if((q|0)==0){q=r-p|0;q=q>>>0>n>>>0?n:q;$W(m|0,(c[b>>2]|0)+p|0,q|0)|0}else{q=pd[q&63](b,p,m,n)|0}c[j>>2]=q+p;if(q>>>0<n>>>0){z=85;i=g;return z|0}else{x=qL(a,m,n,o?e:0,u<<24>>24!=0?206512:206504,f)|0;break}}}while(0);if((x|0)==2){break}i=g;return x|0}else if((p|0)==71){i=g;return x|0}}}while(0);l=c[l>>2]|0;if((l|0)==0){b=(c[k>>2]|0)>>>0<h>>>0?85:0}else{z=(pd[l&63](b,h,0,0)|0)==0;b=z?0:85}if((b|0)!=0){z=b;i=g;return z|0}c[j>>2]=h;z=2;i=g;return z|0}function RJ(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0;d=i;if((a|0)==0){k=35;i=d;return k|0}if((b|0)==0){k=36;i=d;return k|0}e=a+96|0;if((c[e>>2]|0)==0){k=34;i=d;return k|0}c[b>>2]=0;g=c[(c[e>>2]|0)+20>>2]|0;e=c[a+100>>2]|0;h=c[g+40>>2]|0;do{if((h|0)>0){f=Bd[c[e+4>>2]&255](e,h)|0;k=(f|0)==0;j=k?64:0;if(k){f=0;break}bX(f|0,0,h|0)|0}else{f=0;j=h>>31&6}}while(0);a:do{if((j|0)==0){h=Bd[c[e+4>>2]&255](e,12)|0;if((h|0)==0){j=64;break}bX(h|0,0,12)|0;c[f>>2]=a;c[f+40>>2]=0;g=c[g+56>>2]|0;do{if((g|0)!=0){j=jd[g&511](f)|0;if((j|0)==0){break}if((h|0)==0){break a}hd[c[e+8>>2]&127](e,h);break a}}while(0);c[b>>2]=f;c[h+8>>2]=f;b=a+112|0;e=c[b>>2]|0;c[h+4>>2]=0;c[h>>2]=e;if((e|0)==0){c[a+108>>2]=h}else{c[e+4>>2]=h}c[b>>2]=h;k=0;i=d;return k|0}}while(0);if((f|0)==0){k=j;i=d;return k|0}hd[c[e+8>>2]&127](e,f);k=j;i=d;return k|0}function SJ(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,j=0;b=i;if((a|0)==0){j=35;i=b;return j|0}d=a+96|0;if((c[d>>2]|0)==0){j=35;i=b;return j|0}j=a+128|0;h=(c[j>>2]|0)+60|0;c[h>>2]=(c[h>>2]|0)+ -1;if((c[(c[j>>2]|0)+60>>2]|0)!=0){j=0;i=b;return j|0}g=c[d>>2]|0;f=c[g+8>>2]|0;d=g+24|0;h=c[d>>2]|0;if((h|0)==0){j=35;i=b;return j|0}while(1){if((c[h+8>>2]|0)==(a|0)){break}h=c[h+4>>2]|0;if((h|0)==0){a=35;e=16;break}}if((e|0)==16){i=b;return a|0}e=c[h>>2]|0;j=c[h+4>>2]|0;if((e|0)==0){c[d>>2]=j}else{c[e+4>>2]=j}if((j|0)==0){c[g+28>>2]=e}else{c[j>>2]=e}if((h|0)!=0){hd[c[f+8>>2]&127](f,h)}UJ(f,a,g);j=0;i=b;return j|0}function TJ(a,b){a=a|0;b=b|0;var d=0;d=i;a=c[a>>2]|0;if((a|0)==0){a=0;i=d;return a|0}while(1){if((c[a+8>>2]|0)==(b|0)){b=4;break}a=c[a+4>>2]|0;if((a|0)==0){a=0;b=4;break}}if((b|0)==4){i=d;return a|0}return 0}function UJ(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;e=i;f=d+20|0;d=c[f>>2]|0;g=c[b+120>>2]|0;if((g|0)!=0){fd[g&511](c[b+116>>2]|0)}g=b+84|0;h=c[g>>2]|0;if((h|0)!=0){do{EJ(h);h=c[g>>2]|0;}while((h|0)!=0)}h=b+108|0;l=c[h>>2]|0;if((l|0)!=0){g=a+8|0;while(1){j=c[l+4>>2]|0;k=c[l+8>>2]|0;m=c[k+8>>2]|0;if((m|0)!=0){fd[m&511](k)}m=c[(c[f>>2]|0)+60>>2]|0;if((m|0)!=0){fd[m&511](k)}m=k+40|0;n=c[m>>2]|0;if((n|0)!=0){hd[c[g>>2]&127](a,n)}c[m>>2]=0;if((k|0)!=0){hd[c[g>>2]&127](a,k)}if((l|0)!=0){hd[c[g>>2]&127](a,l)}if((j|0)==0){break}else{l=j}}}c[h>>2]=0;c[b+112>>2]=0;c[b+88>>2]=0;f=c[b+48>>2]|0;if((f|0)!=0){fdfd[l&511](m)}hd[c[k+8>>2]&127](k,m);c[(c[g>>2]|0)+(j<<2)>>2]=0;j=j+1|0;k=c[g>>2]|0}while((j|0)<(c[h>>2]|0))}if((k|0)!=0){hd[c[a+8>>2]&127](a,k)}c[g>>2]=0;c[h>>2]=0}d=c[d+52>>2]|0;if((d|0)!=0){fd[d&511](b)}j=b+104|0;h=c[j>>2]|0;g=c[b+8>>2]&1024;do{if((h|0)!=0){k=c[h+28>>2]|0;d=c[h+24>>2]|0;if((d|0)!=0){fd[d&511](h)}if((g|0)!=0){break}hd[c[k+8>>2]&127](k,h)}}while(0);c[j>>2]=0;d=b+128|0;g=c[d>>2]|0;if((g|0)!=0){hd[c[a+8>>2]&127](a,g);c[d>>2]=0}if(f){i=e;return}hd[c[a+8>>2]&127](a,b);i=e;return}function VJ(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0;b=i;if((a|0)==0){k=36;i=b;return k|0}g=c[a>>2]|0;if((g|0)==0){k=35;i=b;return k|0}e=c[g+96>>2]|0;if((e|0)==0){k=34;i=b;return k|0}d=c[e+8>>2]|0;f=g+108|0;j=c[f>>2]|0;if((j|0)==0){k=36;i=b;return k|0}while(1){if((c[j+8>>2]|0)==(a|0)){break}j=c[j+4>>2]|0;if((j|0)==0){a=36;h=25;break}}if((h|0)==25){i=b;return a|0}k=c[j>>2]|0;h=c[j+4>>2]|0;if((k|0)==0){c[f>>2]=h}else{c[k+4>>2]=h}if((h|0)==0){c[g+112>>2]=k}else{c[h>>2]=k}if((j|0)!=0){hd[c[d+8>>2]&127](d,j)}g=g+88|0;do{if((c[g>>2]|0)==(a|0)){c[g>>2]=0;f=c[f>>2]|0;if((f|0)==0){break}c[g>>2]=c[f+8>>2]}}while(0);f=c[a+8>>2]|0;if((f|0)!=0){fd[f&511](a)}e=c[(c[e+20>>2]|0)+60>>2]|0;if((e|0)!=0){fd[e&511](a)}e=a+40|0;f=c[e>>2]|0;if((f|0)!=0){hd[c[d+8>>2]&127](d,f)}c[e>>2]=0;hd[c[d+8>>2]&127](d,a);k=0;i=b;return k|0}function WJ(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;g=i;if((c[a+8>>2]&2|0)==0){l=35;i=g;return l|0}if((c[b>>2]|0)!=0){l=7;i=g;return l|0}h=c[b+12>>2]|0;j=c[b+4>>2]|0;if((h|0)==0){h=j}else{h=((da(j,h)|0)+36|0)/72|0}l=c[b+16>>2]|0;k=c[b+8>>2]|0;if((l|0)==0){b=k}else{b=((da(k,l)|0)+36|0)/72|0}j=(j|0)==0;k=(k|0)==0?h:b;h=(j?k:h)+32|0;j=(j?b:k)+32|0;b=c[a+28>>2]|0;if((b|0)<=0){l=23;i=g;return l|0}a=c[a+32>>2]|0;d=d<<24>>24==0;k=0;while(1){if(((c[a+(k<<4)+12>>2]|0)+32^j)>>>0<=63){if(!(((c[a+(k<<4)+8>>2]|0)+32^h)>>>0>63&d)){break}}k=k+1|0;if((k|0)>=(b|0)){e=23;f=14;break}}if((f|0)==14){i=g;return e|0}if((e|0)==0){l=0;i=g;return l|0}c[e>>2]=k;l=0;i=g;return l|0}function XJ(a,b){a=a|0;b=b|0;var d=0,e=0;e=c[a+4>>2]|0;d=c[a+12>>2]|0;if((d|0)<0){d=(e|0)<(d|0)?d:e}else{d=e-((d|0)>0?d:0)|0}if((b|0)==0){b=(d*12|0)/10|0}c[a+20>>2]=(c[a+8>>2]|0)-((c[a+16>>2]|0)/2|0);c[a+24>>2]=(b-d|0)/2|0;c[a+28>>2]=b;i=i;return}function YJ(a,d){a=a|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;g=i;e=c[a+88>>2]|0;f=e+12|0;j=c[a+32>>2]|0;k=j+(d<<4)+8|0;b[f>>1]=((c[k>>2]|0)+32|0)>>>6;h=j+(d<<4)+12|0;b[e+14>>1]=((c[h>>2]|0)+32|0)>>>6;if((c[a+8>>2]&1|0)==0){c[e+16>>2]=65536;c[e+20>>2]=65536;c[e+24>>2]=c[h>>2];c[e+28>>2]=0;c[e+32>>2]=b[j+(d<<4)>>1]<<6;c[e+36>>2]=c[k>>2];i=g;return}l=c[k>>2]|0;j=a+68|0;m=b[j>>1]|0;d=m&65535;k=(l|0)<0;l=k?0-l|0:l;do{if(m<<16>>16==0){o=2147483647}else{m=l>>16;n=l<<16;l=d>>>1|n;if((m|0)==0){o=(l>>>0)/(d>>>0)|0;break}n=(l>>>0<n>>>0)+m|0;if(n>>>0<d>>>0){m=32;o=0}else{o=2147483647;break}while(1){o=o<<1;n=n<<1|l>>>31;if(n>>>0>=d>>>0){o=o|1;n=n-d|0}m=m+ -1|0;if((m|0)==0){break}else{l=l<<1}}}}while(0);c[e+16>>2]=k?0-o|0:o;k=c[h>>2]|0;d=b[j>>1]|0;j=d&65535;h=(k|0)<0;k=h?0-k|0:k;do{if(d<<16>>16==0){l=2147483647}else{d=k>>16;l=k<<16;k=j>>>1|l;if((d|0)==0){l=(k>>>0)/(j>>>0)|0;break}m=(k>>>0<l>>>0)+d|0;if(m>>>0<j>>>0){d=32;l=0}else{l=2147483647;break}while(1){l=l<<1;m=m<<1|k>>>31;if(m>>>0>=j>>>0){l=l|1;m=m-j|0}d=d+ -1|0;if((d|0)==0){break}else{k=k<<1}}}}while(0);c[e+20>>2]=h?0-l|0:l;ZJ(a,f);i=g;return}function ZJ(a,d){a=a|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0;e=i;j=b[a+70>>1]|0;h=j<<16>>16;f=c[d+8>>2]|0;g=(f|0)==65536;if(!(j<<16>>16==0|g)){k=j<<16>>16<0?0-h|0:h;j=(f|0)<0?0-f|0:f;if(k>>>0<2049&j>>>0<1048577){j=((da(j,k)|0)+32768|0)>>>16}else{l=k&65535;j=(da(j>>>16,l)|0)+(da(k>>>16,j)|0)+(((da(j&65535,l)|0)+32768|0)>>>16)|0}h=(f^h|0)<0?0-j|0:j}c[d+12>>2]=h+63&-64;j=b[a+72>>1]|0;h=j<<16>>16;if(!(j<<16>>16==0|g)){j=j<<16>>16<0?0-h|0:h;k=(f|0)<0?0-f|0:f;if(j>>>0<2049&k>>>0<1048577){j=((da(k,j)|0)+32768|0)>>>16}else{l=j&65535;j=(da(k>>>16,l)|0)+(da(j>>>16,k)|0)+(((da(k&65535,l)|0)+32768|0)>>>16)|0}h=(f^h|0)<0?0-j|0:j}c[d+16>>2]=h&-64;j=b[a+74>>1]|0;h=j<<16>>16;if(!(j<<16>>16==0|g)){g=j<<16>>16<0?0-h|0:h;j=(f|0)<0?0-f|0:f;if(g>>>0<2049&j>>>0<1048577){g=((da(j,g)|0)+32768|0)>>>16}else{l=g&65535;g=(da(j>>>16,l)|0)+(da(g>>>16,j)|0)+(((da(j&65535,l)|0)+32768|0)>>>16)|0}h=(f^h|0)<0?0-g|0:g}c[d+20>>2]=h+32&-64;g=b[a+76>>1]|0;a=g<<16>>16;f=c[d+4>>2]|0;if(g<<16>>16==0|(f|0)==65536){k=a;k=k+32|0;k=k&-64;l=d+24|0;c[l>>2]=k;i=e;return}g=g<<16>>16<0?0-a|0:a;h=(f|0)<0?0-f|0:f;if(g>>>0<2049&h>>>0<1048577){g=((da(h,g)|0)+32768|0)>>>16}else{l=g&65535;g=(da(h>>>16,l)|0)+(da(g>>>16,h)|0)+(((da(h&65535,l)|0)+32768|0)>>>16)|0}k=(f^a|0)<0?0-g|0:g;k=k+32|0;k=k&-64;l=d+24|0;c[l>>2]=k;i=e;return}function _J(a,d){a=a|0;d=d|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,s=0,t=0,u=0;f=i;h=c[a+88>>2]|0;g=h+12|0;if((c[a+8>>2]&1|0)==0){bX(g|0,0,28)|0;c[h+16>>2]=65536;c[h+20>>2]=65536;i=f;return}a:do{switch(c[d>>2]|0){case 2:{j=(c[a+64>>2]|0)-(c[a+56>>2]|0)|0;l=(c[a+60>>2]|0)-(c[a+52>>2]|0)|0;k=11;break};case 4:{o=c[d+4>>2]|0;k=h+16|0;c[k>>2]=o;j=c[d+8>>2]|0;l=h+20|0;c[l>>2]=j;if((o|0)==0){c[k>>2]=j;p=j;o=j;q=0;l=0;k=44;break a}if((j|0)!=0){p=j;q=0;l=0;k=44;break a}c[l>>2]=o;p=o;q=0;l=0;k=44;break};case 1:{l=(b[a+70>>1]|0)-(b[a+72>>1]|0)|0;j=l;k=11;break};case 0:{l=e[a+68>>1]|0;j=l;k=11;break};case 3:{j=(b[a+70>>1]|0)-(b[a+72>>1]|0)|0;l=b[a+76>>1]|0;k=11;break};default:{j=0;l=0;k=11}}}while(0);do{if((k|0)==11){n=(l|0)<0?0-l|0:l;m=(j|0)<0?0-j|0:j;j=c[d+12>>2]|0;o=c[d+4>>2]|0;if((j|0)==0){l=o}else{l=((da(o,j)|0)+36|0)/72|0}p=c[d+16>>2]|0;q=d+8|0;j=c[q>>2]|0;if((p|0)!=0){j=((da(j,p)|0)+36|0)/72|0}if((o|0)==0){o=(j|0)<0?0-j|0:j;k=j^m;l=(m|0)<0?0-m|0:m;do{if((l|0)==0){r=2147483647}else{p=o>>16;q=o<<16;o=q+(l>>1)|0;if((p|0)==0){r=(o>>>0)/(l>>>0)|0;break}q=(o>>>0<q>>>0)+p|0;if(q>>>0<l>>>0){p=32;r=0}else{r=2147483647;break}while(1){r=r<<1;q=q<<1|o>>>31;if(q>>>0>=l>>>0){r=r|1;q=q-l|0}p=p+ -1|0;if((p|0)==0){break}else{o=o<<1}}}}while(0);o=(k|0)<0?0-r|0:r;c[h+20>>2]=o;c[h+16>>2]=o;p=o;q=j;l=_I(j,n,m)|0;k=44;break}r=(l|0)<0?0-l|0:l;o=l^n;p=(n|0)<0?0-n|0:n;do{if((p|0)==0){t=2147483647}else{s=r>>16;t=r<<16;r=t+(p>>1)|0;if((s|0)==0){t=(r>>>0)/(p>>>0)|0;break}u=(r>>>0<t>>>0)+s|0;if(u>>>0<p>>>0){s=32;t=0}else{t=2147483647;break}while(1){t=t<<1;u=u<<1|r>>>31;if(u>>>0>=p>>>0){t=t|1;u=u-p|0}s=s+ -1|0;if((s|0)==0){break}else{r=r<<1}}}}while(0);o=(o|0)<0?0-t|0:t;p=h+16|0;c[p>>2]=o;if((c[q>>2]|0)==0){c[h+20>>2]=o;p=o;q=_I(l,m,n)|0;k=44;break}q=(j|0)<0?0-j|0:j;n=j^m;m=(m|0)<0?0-m|0:m;do{if((m|0)==0){s=2147483647}else{r=q>>16;s=q<<16;q=s+(m>>1)|0;if((r|0)==0){s=(q>>>0)/(m>>>0)|0;break}t=(q>>>0<s>>>0)+r|0;if(t>>>0<m>>>0){r=32;s=0}else{s=2147483647;break}while(1){s=s<<1;t=t<<1|q>>>31;if(t>>>0>=m>>>0){s=s|1;t=t-m|0}r=r+ -1|0;if((r|0)==0){break}else{q=q<<1}}}}while(0);m=(n|0)<0?0-s|0:s;q=h+20|0;c[q>>2]=m;n=c[d>>2]|0;if((n|0)!=3){break}if((m|0)>(o|0)){c[q>>2]=o;p=o;q=j;k=44;break}else{c[p>>2]=m;p=m;o=m;q=j;k=44;break}}}while(0);if((k|0)==44){m=p;n=c[d>>2]|0;j=q}do{if((n|0)!=0){d=b[a+68>>1]|0;j=d&65535;k=d<<16>>16==0;if(k|(o|0)==65536){l=j}else{l=(o|0)<0;n=l?0-o|0:o;if((d&65535)<2049&n>>>0<1048577){n=((da(n,j)|0)+32768|0)>>>16}else{n=(((da(n&65535,j)|0)+32768|0)>>>16)+(da(n>>>16,j)|0)|0}l=l?0-n|0:n}if(k|(m|0)==65536){break}k=(m|0)<0;m=k?0-m|0:m;if((d&65535)<2049&m>>>0<1048577){d=((da(m,j)|0)+32768|0)>>>16}else{d=(((da(m&65535,j)|0)+32768|0)>>>16)+(da(m>>>16,j)|0)|0}j=k?0-d|0:d}}while(0);b[g>>1]=(l+32|0)>>>6;b[h+14>>1]=(j+32|0)>>>6;ZJ(a,g);i=f;return}function $J(a,b){a=a|0;b=b|0;var d=0,e=0;d=i;if((a|0)==0){e=35;i=d;return e|0}if((c[a+8>>2]&2|0)==0){e=35;i=d;return e|0}if((b|0)<0){e=6;i=d;return e|0}if((c[a+28>>2]|0)<=(b|0)){e=6;i=d;return e|0}e=c[(c[(c[a+96>>2]|0)+20>>2]|0)+100>>2]|0;if((e|0)==0){YJ(a,b);e=0;i=d;return e|0}else{e=Bd[e&255](c[a+88>>2]|0,b)|0;i=d;return e|0}return 0}function aK(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0;d=i;if((a|0)==0){k=35;i=d;return k|0}if((b|0)==0){k=6;i=d;return k|0}h=c[b+4>>2]|0;if((h|0)<0){k=6;i=d;return k|0}g=c[b+8>>2]|0;if((g|0)<0){k=6;i=d;return k|0}j=c[b>>2]|0;if(j>>>0>4){k=6;i=d;return k|0}f=c[(c[a+96>>2]|0)+20>>2]|0;k=c[f+96>>2]|0;if((k|0)!=0){k=Bd[k&255](c[a+88>>2]|0,b)|0;i=d;return k|0}k=c[a+8>>2]|0;if((k&3|0)!=2){_J(a,b);k=0;i=d;return k|0}if((k&2|0)==0){k=35;i=d;return k|0}if((j|0)!=0){k=7;i=d;return k|0}j=c[b+12>>2]|0;if((j|0)==0){j=h}else{j=((da(j,h)|0)+36|0)/72|0}b=c[b+16>>2]|0;if((b|0)==0){b=g}else{b=((da(g,b)|0)+36|0)/72|0}h=(h|0)==0;k=(g|0)==0?j:b;g=(h?k:j)+32|0;b=(h?b:k)+32|0;h=c[a+28>>2]|0;if((h|0)<=0){k=23;i=d;return k|0}k=c[a+32>>2]|0;j=0;while(1){if(((c[k+(j<<4)+12>>2]|0)+32^b)>>>0<=63){if(((c[k+(j<<4)+8>>2]|0)+32^g)>>>0<=63){break}}j=j+1|0;if((j|0)>=(h|0)){a=23;e=25;break}}if((e|0)==25){i=d;return a|0}if(!((j|0)>-1&(h|0)>(j|0))){k=6;i=d;return k|0}e=c[f+100>>2]|0;if((e|0)==0){YJ(a,j);k=0;i=d;return k|0}else{k=Bd[e&255](c[a+88>>2]|0,j)|0;i=d;return k|0}return 0}function bK(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0;f=i;g=i;i=i+24|0;e=g;if((b|0)==0){h=d;b=d}else{h=(d|0)==0?b:d}d=(b|0)==0?1:b;h=(h|0)==0?1:h;c[g>>2]=0;c[e+4>>2]=d>>>0<65535?d<<6:4194240;c[e+8>>2]=h>>>0<65535?h<<6:4194240;c[e+12>>2]=0;c[e+16>>2]=0;b=aK(a,e)|0;i=f;return b|0}function cK(a,d){a=a|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0;g=i;if((a|0)==0){m=35;i=g;return m|0}if((d|0)==0){m=6;i=g;return m|0}else if((d|0)==1970170211){d=c[a+40>>2]|0;if((d|0)==0){m=38;i=g;return m|0}j=(c[a+36>>2]|0)+ -1|0;if((j|0)<0){m=38;i=g;return m|0}j=d+(j<<2)|0;l=j;a:while(1){k=c[l>>2]|0;do{if((c[k+4>>2]|0)==1970170211){m=b[k+8>>1]|0;if(m<<16>>16==3){if((b[k+10>>1]|0)!=10){break}}else if(m<<16>>16==0){if((b[k+10>>1]|0)!=4){break}}else{break}if((l-d|0)<=60){e=12;break a}}}while(0);l=l+ -4|0;if(l>>>0<d>>>0){h=j;break}}if((e|0)==12){c[a+92>>2]=k;m=0;i=g;return m|0}while(1){j=c[h>>2]|0;if((c[j+4>>2]|0)==1970170211){if((h-d|0)<=60){break}}h=h+ -4|0;if(h>>>0<d>>>0){f=38;e=23;break}}if((e|0)==23){i=g;return f|0}c[a+92>>2]=j;m=0;i=g;return m|0}else{h=c[a+40>>2]|0;if((h|0)==0){m=38;i=g;return m|0}m=c[a+36>>2]|0;k=h+(m<<2)|0;if((m|0)>0){l=h}else{m=6;i=g;return m|0}while(1){j=c[l>>2]|0;if((c[j+4>>2]|0)==(d|0)){if((l-h|0)<=60){break}}l=l+4|0;if(l>>>0>=k>>>0){f=6;e=23;break}}if((e|0)==23){i=g;return f|0}c[a+92>>2]=j;m=0;i=g;return m|0}return 0}function dK(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0;e=i;h=i;i=i+8|0;if((a|0)==0){k=35;i=e;return k|0}f=a+40|0;g=c[f>>2]|0;if((g|0)==0){k=38;i=e;return k|0}do{if((b|0)!=0){j=c[b>>2]|0;if((j|0)==0){break}j=c[j+96>>2]|0;k=c[(c[j>>2]|0)+32>>2]|0;if((k|0)==0){break}j=Bd[k&255](j,206272)|0;if((j|0)==0){break}if((Bd[c[j>>2]&255](b,h)|0)!=0){break}if((c[h+4>>2]|0)==14){b=6}else{break}i=e;return b|0}}while(0);k=c[a+36>>2]|0;h=g+(k<<2)|0;if((k|0)<=0){k=6;i=e;return k|0}while(1){if((c[g>>2]|0)==(b|0)){if((g-(c[f>>2]|0)|0)<=60){break}}g=g+4|0;if(g>>>0>=h>>>0){b=6;d=14;break}}if((d|0)==14){i=e;return b|0}c[a+92>>2]=b;k=0;i=e;return k|0}function eK(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0;g=i;if((b|0)==0|(e|0)==0){o=6;i=g;return o|0}k=c[e>>2]|0;if((k|0)==0){o=6;i=g;return o|0}j=c[k+100>>2]|0;n=c[b>>2]|0;do{if((n|0)>0){h=Bd[c[j+4>>2]&255](j,n)|0;o=(h|0)==0;m=o?64:0;if(o){h=0;break}bX(h|0,0,n|0)|0}else{h=0;m=n>>31&6}}while(0);a:do{if((m|0)==0){$W(h|0,e|0,12)|0;e=h+12|0;c[e>>2]=b;b=c[b+4>>2]|0;if((b|0)==0){l=10}else{m=Bd[b&255](h,d)|0;if((m|0)==0){l=10}}if((l|0)==10){l=k+36|0;d=c[l>>2]|0;m=d+1|0;k=k+40|0;b=c[k>>2]|0;b:do{if((m|d|0)<0){m=6}else{do{if((m|0)==0){if((b|0)==0){b=0;break}hd[c[j+8>>2]&127](j,b);b=0}else{if((d|0)>536870910){m=10;break b}do{if((d|0)==0){b=m<<2;n=Bd[c[j+4>>2]&255](j,b)|0;j=(n|0)==0;m=j?64:0;if(j){b=0;break}bX(n|0,0,b|0)|0;b=n}else{m=pd[c[j+12>>2]&63](j,d<<2,m<<2,b)|0;j=(m|0)==0;b=j?b:m;m=j?64:0}}while(0);if((m|0)!=0){break b}}}while(0);m=b+(d<<2)|0;a[m]=0;a[m+1|0]=0;a[m+2|0]=0;a[m+3|0]=0;c[k>>2]=b;m=c[l>>2]|0;c[l>>2]=m+1;c[b+(m<<2)>>2]=h;m=0;break a}}while(0);c[k>>2]=b}j=c[(c[h>>2]|0)+100>>2]|0;e=c[(c[e>>2]|0)+8>>2]|0;if((e|0)!=0){fdfd[c[(c[a+56>>2]|0)+20>>2]&511](e)}}while(0);if((g|0)==0){i=d;return n|0}hd[c[f+8>>2]&127](f,g);i=d;return n|0}function lK(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;d=i;if((a|0)==0){m=33;i=d;return m|0}if((b|0)==0){m=34;i=d;return m|0}j=a+24|0;h=c[j>>2]|0;k=a+28+(h<<2)|0;if((h|0)<=0){m=34;i=d;return m|0}e=a+28|0;while(1){g=e+4|0;if((c[e>>2]|0)==(b|0)){break}if(g>>>0<k>>>0){e=g}else{b=34;f=46;break}}if((f|0)==46){i=d;return b|0}f=h+ -1|0;c[j>>2]=f;f=a+28+(f<<2)|0;if(e>>>0<f>>>0){while(1){g=e+4|0;c[e>>2]=c[g>>2];if(g>>>0<f>>>0){e=g}else{break}}}c[f>>2]=0;g=b+8|0;e=c[g>>2]|0;f=c[b>>2]|0;a=b+4|0;j=c[a>>2]|0;h=c[b+16>>2]|0;if((h|0)!=0){fd[h&511](b)}do{if((j|0)!=0){h=j+168|0;if((c[h>>2]|0)!=(b|0)){break}c[h>>2]=0}}while(0);l=c[b>>2]|0;m=c[l>>2]|0;a:do{if((m&2|0)!=0){a=c[a>>2]|0;h=c[a>>2]|0;j=a+156|0;k=c[j>>2]|0;if((k|0)==0){break}while(1){if((c[k+8>>2]|0)==(b|0)){break}k=c[k+4>>2]|0;if((k|0)==0){break a}}l=c[b+20>>2]|0;do{if((c[l+36>>2]|0)==1869968492){m=c[b+60>>2]|0;if((m|0)==0){break}fd[c[(c[l+56>>2]|0)+20>>2]&511](m)}}while(0);m=c[k>>2]|0;l=c[k+4>>2]|0;if((m|0)==0){c[j>>2]=l}else{c[m+4>>2]=l}if((l|0)==0){c[a+160>>2]=m}else{c[l>>2]=m}if((k|0)!=0){hd[c[h+8>>2]&127](h,k)}b:do{if((a|0)==0){j=0}else{h=c[j>>2]|0;if((h|0)==0){j=0;break}while(1){j=c[h+8>>2]|0;if((c[j+24>>2]|0)==1869968492){break b}h=c[h+4>>2]|0;if((h|0)==0){j=0;break}}}}while(0);c[a+164>>2]=j;l=c[b>>2]|0;m=c[l>>2]|0}}while(0);do{if((m&1|0)!=0){a=c[g>>2]|0;g=b+24|0;j=c[g>>2]|0;if((j|0)!=0){h=a+8|0;while(1){k=c[j+4>>2]|0;UJ(a,c[j+8>>2]|0,b);if((j|0)!=0){hd[c[h>>2]&127](a,j)}if((k|0)==0){break}else{j=k}}l=c[b>>2]|0}c[g>>2]=0;c[b+28>>2]=0;if((c[l>>2]&512|0)!=0){break}mJ(c[b+36>>2]|0)}}while(0);f=c[f+28>>2]|0;if((f|0)!=0){fd[f&511](b)}hd[c[e+8>>2]&127](e,b);m=0;i=d;return m|0}function mK(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;d=i;if((a|0)==0|(b|0)==0){f=0;i=d;return f|0}f=c[a+24>>2]|0;e=a+28+(f<<2)|0;if((f|0)<=0){f=0;i=d;return f|0}f=a+28|0;while(1){a=c[f>>2]|0;f=f+4|0;if((Qc(c[(c[a>>2]|0)+8>>2]|0,b|0)|0)==0){b=6;break}if(f>>>0<e>>>0){}else{a=0;b=6;break}}if((b|0)==6){i=d;return a|0}return 0}function nK(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;e=i;if((a|0)==0|(b|0)==0){h=0;i=e;return h|0}h=c[a+24>>2]|0;f=a+28+(h<<2)|0;if((h|0)<=0){h=0;i=e;return h|0}h=a+28|0;while(1){g=c[h>>2]|0;a=c[g>>2]|0;h=h+4|0;if((Qc(c[a+8>>2]|0,b|0)|0)==0){break}if(h>>>0<f>>>0){}else{b=0;d=8;break}}if((d|0)==8){i=e;return b|0}if((g|0)==0){h=0;i=e;return h|0}h=c[a+20>>2]|0;i=e;return h|0}function oK(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;d=i;if((a|0)==0){h=0;i=d;return h|0}e=c[(c[a>>2]|0)+32>>2]|0;do{if((e|0)!=0){g=Bd[e&255](a,b)|0;if((g|0)==0){break}i=d;return g|0}}while(0);f=c[a+4>>2]|0;h=c[f+24>>2]|0;e=f+28+(h<<2)|0;if((h|0)<=0){h=0;i=d;return h|0}f=f+28|0;a:while(1){h=c[f>>2]|0;do{if((h|0)!=(a|0)){g=c[(c[h>>2]|0)+32>>2]|0;if((g|0)==0){break}g=Bd[g&255](h,b)|0;if((g|0)!=0){a=10;break a}}}while(0);f=f+4|0;if(f>>>0>=e>>>0){g=0;a=10;break}}if((a|0)==10){i=d;return g|0}return 0}function pK(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;d=i;if((a|0)==0){g=6;i=d;return g|0}f=a+4|0;e=Bd[c[f>>2]&255](a,200)|0;if((e|0)==0){g=64;i=d;return g|0}bX(e|0,0,200)|0;c[e>>2]=a;c[e+176>>2]=16384;g=Bd[c[f>>2]&255](a,16384)|0;f=(g|0)==0;if(f){c[e+172>>2]=0;hd[c[a+8>>2]&127](a,e);g=f?64:0;i=d;return g|0}else{bX(g|0,0,16384)|0;c[e+172>>2]=g;c[e+12>>2]=2;c[e+16>>2]=4;c[e+20>>2]=4;c[e+196>>2]=1;c[b>>2]=e;g=0;i=d;return g|0}return 0}function qK(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;if((a|0)==0){h=0;g=0;a=0}else{h=c[a+12>>2]|0;g=c[a+16>>2]|0;a=c[a+20>>2]|0}if((b|0)!=0){c[b>>2]=h}if((d|0)!=0){c[d>>2]=g}if((e|0)==0){i=f;return}c[e>>2]=a;i=f;return}function rK(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;d=i;if((a|0)==0){s=33;i=d;return s|0}r=a+196|0;s=(c[r>>2]|0)+ -1|0;c[r>>2]=s;if((s|0)!=0){s=0;i=d;return s|0}b=c[a>>2]|0;f=c[a+8>>2]|0;if((f|0)!=0){fd+20>>2]|0;if((j|0)==0){h=h-g|0;j=h>>>0>d>>>0?d:h;$W(b|0,(c[a>>2]|0)+g|0,j|0)|0;b=j}else{b=pd[j&63](a,g,b,d)|0}c[f>>2]=(c[f>>2]|0)+b;j=b;i=e;return j|0}function LK(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;e=i;b=MK(a,b)|0;if((b|0)!=0){i=e;return b|0}f=a+32|0;c[d>>2]=c[f>>2];c[f>>2]=0;c[a+36>>2]=0;i=e;return b|0}function MK(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;d=i;g=a+20|0;if((c[g>>2]|0)==0){e=a+8|0;f=c[e>>2]|0;h=c[a+4>>2]|0;if(f>>>0>=h>>>0|(h-f|0)>>>0<b>>>0){h=85;i=d;return h|0}g=c[a>>2]|0;c[a+32>>2]=g+f;h=f+b|0;c[a+36>>2]=g+h;c[e>>2]=h;h=0;i=d;return h|0}f=c[a+28>>2]|0;if((c[a+4>>2]|0)>>>0<b>>>0){h=85;i=d;return h|0}if((b|0)>0){e=Bd[c[f+4>>2]&255](f,b)|0;h=e;e=(e|0)==0?64:0}else{h=0;e=b>>31&6}c[a>>2]=h;if((e|0)!=0){h=e;i=d;return h|0}e=a+8|0;g=pd[c[g>>2]&63](a,c[e>>2]|0,h,b)|0;h=c[a>>2]|0;if(g>>>0<b>>>0){if((h|0)!=0){hd[c[f+8>>2]&127](f,h)}c[a>>2]=0;h=0;f=85}else{f=0}c[a+32>>2]=h;c[a+36>>2]=h+b;c[e>>2]=(c[e>>2]|0)+g;h=f;i=d;return h|0}function NK(a,b){a=a|0;b=b|0;var d=0,e=0;d=i;do{if((a|0)!=0){if((c[a+20>>2]|0)==0){break}e=c[a+28>>2]|0;a=c[b>>2]|0;if((a|0)!=0){hd[c[e+8>>2]&127](e,a)}c[b>>2]=0}}while(0);c[b>>2]=0;i=d;return}function OK(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;e=i;if((b|0)>0){b=Bd[c[a+4>>2]&255](a,b)|0;a=b;b=(b|0)==0?64:0}else{a=0;b=b>>31&6}c[d>>2]=b;i=e;return a|0}function PK(a){a=a|0;var b=0,d=0,e=0;b=i;if((c[a+20>>2]|0)!=0){e=c[a+28>>2]|0;d=c[a>>2]|0;if((d|0)!=0){hd[c[e+8>>2]&127](e,d)}c[a>>2]=0}c[a+32>>2]=0;c[a+36>>2]=0;i=b;return}function QK(b){b=b|0;var d=0,e=0,f=0;d=i;f=b+32|0;e=c[f>>2]|0;if(e>>>0>=(c[b+36>>2]|0)>>>0){f=0;i=d;return f|0}c[f>>2]=e+1;f=a[e]|0;i=d;return f|0}function RK(a){a=a|0;var b=0,e=0,f=0,g=0;b=i;e=a+32|0;f=c[e>>2]|0;g=f+1|0;if(g>>>0>=(c[a+36>>2]|0)>>>0){a=f;g=0;f=e;c[f>>2]=a;i=b;return g|0}a=f+2|0;g=(d[f]|0)<<8&65535|(d[g]|0);f=e;c[f>>2]=a;i=b;return g|0}function SK(a){a=a|0;var b=0,e=0,f=0,g=0;b=i;e=a+32|0;f=c[e>>2]|0;g=f+1|0;if(g>>>0>=(c[a+36>>2]|0)>>>0){a=f;g=0;f=e;c[f>>2]=a;i=b;return g|0}a=f+2|0;g=(d[g]|0)<<8&65535|(d[f]|0);f=e;c[f>>2]=a;i=b;return g|0}function TK(a){a=a|0;var b=0,e=0,f=0,g=0;b=i;e=a+32|0;f=c[e>>2]|0;g=f+3|0;if(g>>>0>=(c[a+36>>2]|0)>>>0){a=f;g=0;f=e;c[f>>2]=a;i=b;return g|0}a=f+4|0;g=(d[f+1|0]|0)<<16|(d[f]|0)<<24|(d[f+2|0]|0)<<8|(d[g]|0);f=e;c[f>>2]=a;i=b;return g|0}function UK(a){a=a|0;var b=0,e=0,f=0,g=0;b=i;e=a+32|0;f=c[e>>2]|0;g=f+3|0;if(g>>>0>=(c[a+36>>2]|0)>>>0){a=f;g=0;f=e;c[f>>2]=a;i=b;return g|0}a=f+4|0;g=(d[f+2|0]|0)<<16|(d[g]|0)<<24|(d[f+1|0]|0)<<8|(d[f]|0);f=e;c[f>>2]=a;i=b;return g|0}function VK(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0;f=i;h=i;i=i+8|0;j=h;a[h]=0;c[d>>2]=0;k=c[b+20>>2]|0;e=b+8|0;g=c[e>>2]|0;do{if((k|0)==0){if(g>>>0>=(c[b+4>>2]|0)>>>0){h=7;break}d=a[(c[b>>2]|0)+g|0]|0;a[h]=d;h=6}else{if((pd[k&63](b,g,j,1)|0)!=1){h=7;break}d=a[h]|0;g=c[e>>2]|0;h=6}}while(0);if((h|0)==6){c[e>>2]=g+1;b=d;i=f;return b|0}else if((h|0)==7){c[d>>2]=85;b=0;i=f;return b|0}return 0}function WK(a,b){a=a|0;b=b|0;var e=0,f=0,g=0,h=0,j=0,k=0;f=i;j=i;i=i+8|0;c[b>>2]=0;g=a+8|0;h=c[g>>2]|0;do{if((h+1|0)>>>0<(c[a+4>>2]|0)>>>0){k=c[a+20>>2]|0;if((k|0)==0){j=(c[a>>2]|0)+h|0;if((j|0)==0){j=0}else{e=6}}else{if((pd[k&63](a,h,j,2)|0)!=2){break}h=c[g>>2]|0;e=6}if((e|0)==6){j=(d[j+1|0]|0)<<8&65535|(d[j]|0)}c[g>>2]=h+2;k=j;i=f;return k|0}}while(0);c[b>>2]=85;k=0;i=f;return k|0}function XK(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0;g=i;k=i;i=i+8|0;c[e>>2]=0;h=b+8|0;j=c[h>>2]|0;do{if((j+2|0)>>>0<(c[b+4>>2]|0)>>>0){l=c[b+20>>2]|0;if((l|0)==0){k=(c[b>>2]|0)+j|0;if((k|0)==0){k=0}else{f=6}}else{if((pd[l&63](b,j,k,3)|0)!=3){break}j=c[h>>2]|0;f=6}if((f|0)==6){k=d[k+1|0]<<8|a[k]<<16|d[k+2|0]}c[h>>2]=j+3;l=k;i=g;return l|0}}while(0);c[e>>2]=85;l=0;i=g;return l|0}function YK(a,b){a=a|0;b=b|0;var e=0,f=0,g=0,h=0,j=0,k=0;f=i;j=i;i=i+8|0;c[b>>2]=0;g=a+8|0;h=c[g>>2]|0;do{if((h+3|0)>>>0<(c[a+4>>2]|0)>>>0){k=c[a+20>>2]|0;if((k|0)==0){j=(c[a>>2]|0)+h|0;if((j|0)==0){j=0}else{e=6}}else{if((pd[k&63](a,h,j,4)|0)!=4){break}h=c[g>>2]|0;e=6}if((e|0)==6){j=(d[j+2|0]|0)<<16|(d[j+3|0]|0)<<24|(d[j+1|0]|0)<<8|(d[j]|0)}c[g>>2]=h+4;k=j;i=f;return k|0}}while(0);c[b>>2]=85;k=0;i=f;return k|0}function ZK(f,g,h){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;l=i;if((g|0)==0|(f|0)==0){r=6;i=l;return r|0}k=f+32|0;j=f+36|0;n=0;a:while(1){q=c[k>>2]|0;b:while(1){p=a[g]|0;c:do{switch(p&255|0){case 9:case 8:{o=q+1|0;r=24;q=d[q]|0;m=18;break};case 18:case 19:{o=q+4|0;r=0;q=(d[q+2|0]|0)<<16|(d[q+3|0]|0)<<24|(d[q+1|0]|0)<<8|(d[q]|0);m=18;break};case 25:case 24:{r=d[g+1|0]|0;o=q+r|0;if(o>>>0>(c[j>>2]|0)>>>0){h=85;break a}if(p<<24>>24!=24){break c}$W(h+(e[g+2>>1]|0)|0,q|0,r|0)|0;break};case 22:case 23:{o=q+3|0;r=8;q=(d[q+1|0]|0)<<8|(d[q+2|0]|0)<<16|(d[q]|0);m=18;break};case 12:case 13:{o=q+2|0;r=16;q=((d[q]|0)<<8&65535|(d[q+1|0]|0))&65535;m=18;break};case 16:case 17:{o=q+4|0;r=0;q=(d[q+1|0]|0)<<16|(d[q]|0)<<24|(d[q+2|0]|0)<<8|(d[q+3|0]|0);m=18;break};case 14:case 15:{o=q+2|0;r=16;q=((d[q+1|0]|0)<<8&65535|(d[q]|0))&65535;m=18;break};case 20:case 21:{o=q+3|0;r=8;q=(d[q+1|0]|0)<<8|(d[q]|0)<<16|(d[q+2|0]|0);m=18;break};case 4:{break b};default:{m=17;break a}}}while(0);do{if((m|0)==18){m=0;if((p&1)!=0){q=q<<r>>r}r=h+(e[g+2>>1]|0)|0;p=d[g+1|0]|0;if((p|0)==1){a[r]=q;break}else if((p|0)==2){b[r>>1]=q;break}else if((p|0)==4){c[r>>2]=q;break}else{c[r>>2]=q;break}}}while(0);g=g+4|0;q=o}o=MK(f,e[g+2>>1]|0)|0;if((o|0)!=0){h=o;break}g=g+4|0;n=1}if((m|0)==17){c[k>>2]=q;h=0}if(n<<24>>24==0){r=h;i=l;return r|0}if((c[f+20>>2]|0)!=0){n=c[f+28>>2]|0;m=c[f>>2]|0;if((m|0)!=0){hd[c[n+8>>2]&127](n,m)}c[f>>2]=0}c[k>>2]=0;c[j>>2]=0;r=h;i=l;return r|0}function _K(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0;b=i;d=a;a=c[d>>2]|0;d=c[d+4>>2]|0;if((a|0)==0){g=(d|0)>-1?d:0-d|0;i=b;return g|0}e=(a|0)>-1?a:0-a|0;if((d|0)==0){g=e;i=b;return g|0}e=((d|0)>-1?d:0-d|0)|e;f=(e|0)>65535;e=f?e>>16:e;f=f?16:0;if((e|0)>255){f=f|8;e=e>>8}if((e|0)>15){f=f+4|0;e=e>>4}if((e|0)>3){f=f+2|0;e=e>>2}f=((e|0)>1)+f|0;if((f|0)<28){g=27-f|0;d=d<<g;e=a<<g;a=g}else{e=f+ -27|0;d=d>>e;e=a>>e;a=27-f|0}if((e|0)<0){e=0-e|0;g=0-d|0}else{g=d}f=e<<1;if((g|0)<0){d=0;e=e-(g<<1)|0;f=g+f|0}else{d=0;e=(g<<1)+e|0;f=g-f|0}do{g=e>>d;if((f|0)<0){e=e-(f>>d)|0;f=f+g|0}else{e=(f>>d)+e|0;f=f-g|0}d=d+1|0;}while((d|0)<23);d=(e|0)>-1;e=d?e:0-e|0;f=e>>>16;e=e&65535;g=(e*17797|0)+(f*47593|0)|0;e=(e*47593|0)>>>16;h=g+e|0;f=(h>>>16)+(f*17797|0)|0;e=h>>>0<(g>>>0>=e>>>0?g:e)>>>0?f+65536|0:f;d=d?e:0-e|0;if((a|0)>0){h=d+(1<<a+ -1)>>a;i=b;return h|0}else{h=d<<0-a;i=b;return h|0}return 0}
7329 function wx(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,p=0,q=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;e=i;l=i;i=i+8|0;m=l;k=i;i=i+8|0;n=i;i=i+8|0;p=i;i=i+8|0;o=i;i=i+8|0;w=o;u=i;i=i+16|0;v=u;j=i;i=i+528|0;t=i;i=i+24|0;c[u>>2]=13;q=v+8|0;c[q>>2]=0;c[q+4>>2]=0;f=j+528|0;g=j;do{c[g>>2]=13;J=g+8|0;c[J>>2]=0;c[J+4>>2]=0;g=g+16|0;}while((g|0)!=(f|0));g=b+32|0;f=b+40|0;h=c[f>>2]|0;if((h|0)==(c[b+44>>2]|0)){eu(b+36|0,g)}else{if((h|0)==0){h=0}else{c[h>>2]=c[g>>2];h=c[f>>2]|0}c[f>>2]=h+4}h=b+24|0;c[h>>2]=0;A=b+120|0;cG(c[A>>2]|0,v,0,0,0,0,0)|0;H=c[u>>2]|0;a:do{if((H|0)==12){Of(v)}else{C=b+18|0;y=b+13|0;x=b+14|0;B=b+8|0;D=b+124|0;E=b+128|0;z=c[r>>2]|0;F=0;G=0;b:while(1){a[C]=0;do{if((H|0)==10){if((a[y]&1)!=0){Qf(v,z);if((G|0)>0){H=0;do{Hb(32)|0;Qf(j+(H<<4)|0,z);H=H+1|0;}while((H|0)<(G|0))}Hb(10)|0;Fc(z|0)|0}dH(t);xx(b,v,j,G);do{if((a[x]&1)!=0){I=c[B>>2]|0;I=jd[c[(c[I>>2]|0)+372>>2]&511](I)|0;if((I|0)==0){break}H=FW(32)|0;J=c[u>>2]|0;if((J|0)!=10){s=19;break b}fe(H,c[q>>2]|0);J=oo(I,H)|0;if((J|0)==0){J=FW(32)|0;AG(J);lo(I,H,J)}BG(J,+eH(t))}}while(0);Of(v);if((G|0)>0){H=0;do{Of(j+(H<<4)|0);H=H+1|0;}while((H|0)<(G|0))}J=c[h>>2]|0;H=J+1|0;c[h>>2]=H;if((J|0)>19998){H=c[B>>2]|0;fd[c[(c[H>>2]|0)+68>>2]&511](H);c[h>>2]=0;H=0}if((a[C]&1)!=0){s=28;break b}G=c[D>>2]|0;if((G|0)==0){G=0;break}if((H-F|0)<=10){G=0;break}if(jd[G&511](c[E>>2]|0)|0){break b}F=c[h>>2]|0;G=0}else{if((G|0)<33){$W(j+(G<<4)|0,u|0,16)|0;G=G+1|0;break}H=c[A>>2]|0;do{if((H|0)==0){H=-1}else{H=c[H+4>>2]|0;if((c[H+16>>2]|0)!=8){H=-1;break}H=c[H+24>>2]|0;H=jd[c[(c[H>>2]|0)+48>>2]&511](H)|0}}while(0);Qe(H,159504,p);if((a[y]&1)!=0){Kb(159536,n|0)|0;Qf(v,z);Hb(10)|0;Fc(z|0)|0}Of(v)}}while(0);cG(c[A>>2]|0,v,0,0,0,0,0)|0;H=c[u>>2]|0;if((H|0)==12){s=43;break}}if((s|0)==19){c[o>>2]=J;c[w+4>>2]=10;Qe(0,162256,w);tc()}else if((s|0)==28){a[C]=0}else if((s|0)==43){Of(v);if((G|0)<=0){break}n=c[A>>2]|0;do{if((n|0)==0){n=-1}else{n=c[n+4>>2]|0;if((c[n+16>>2]|0)!=8){n=-1;break}n=c[n+24>>2]|0;n=jd[c[(c[n>>2]|0)+48>>2]&511](n)|0}}while(0);Qe(n,159560,k);if((a[b+13|0]&1)==0){k=0}else{c[l>>2]=G;Kb(159592,m|0)|0;l=c[r>>2]|0;k=0;do{Hb(32)|0;Qf(j+(k<<4)|0,l);k=k+1|0;}while((k|0)<(G|0));Hb(10)|0;Fc(c[r>>2]|0)|0;k=0}while(1){Of(j+(k<<4)|0);k=k+1|0;if((k|0)>=(G|0)){break a}}}Of(v)}}while(0);k=b+28|0;n=c[f>>2]|0;j=b+36|0;J=c[j>>2]|0;c:do{if((c[g>>2]|0)>(c[J+((n-J>>2)+ -1<<2)>>2]|0)){l=b+8|0;do{m=c[k>>2]|0;if((c[m+656>>2]|0)==0){break c}I=YB(m)|0;c[k>>2]=I;n=c[l>>2]|0;hd[c[(c[n>>2]|0)+84>>2]&127](n,I);I=(c[g>>2]|0)+ -1|0;c[g>>2]=I;n=c[f>>2]|0;J=c[j>>2]|0;}while((I|0)>(c[J+((n-J>>2)+ -1<<2)>>2]|0))}}while(0);c[f>>2]=n+ -4;if(!d){i=e;return}if((c[h>>2]|0)<=0){i=e;return}J=c[b+8>>2]|0;fdfd2]&255](O,c[n>>2]|0)|0)){break}O=b+17|0;a[O]=1;Bx(b,1);N=c[o>>2]|0;hd[c[(c[N>>2]|0)+48>>2]&127](N,c[n>>2]|0);a[O]=0}else{Yu(J,159208,o,0)|0;N=c[r>>2]|0;if((N|0)==5){Of(o);Yu(J,160104,o,0)|0;N=c[r>>2]|0}d:do{if((N|0)==4&f){O=c[b+20>>2]|0;N=c[s>>2]|0;e:do{if((O|0)==0){x=53}else{while(1){if((c[O+24>>2]|0)==7){if((c[(Yu(c[O+32>>2]|0,N,q,0)|0)>>2]|0)!=5){break}Of(q)}O=c[O+112>>2]|0;if((O|0)==0){x=53;break e}}if((c[u>>2]|0)==5){break}Of(o);$W(r|0,u|0,16)|0;break d}}while(0);if((x|0)==53){c[t>>2]=0;c[y>>2]=0;c[u>>2]=5}Of(q)}}while(0);do{if((c[r>>2]|0)==5){v=c[v>>2]|0;if((v|0)==3){N=FW(4)|0;vz(N);break}else if((v|0)==2){N=FW(4)|0;gz(N);break}else if((v|0)==1){N=FW(4)|0;Ty(N);break}else{Of(o);break a}}else{N=Jy(o,b)|0}}while(0);Of(o);if((N|0)==0){break a}Yu(J,161600,o,0)|0;if((c[r>>2]|0)==5){Of(o);Yu(J,160288,o,0)|0}v=FW(672)|0;mB(v,c[M>>2]|0,o,N);Of(o);if((a[v+664|0]&1)==0){if((v|0)==0){break a}nB(v);HW(v);break a}Yu(J,161608,n,0)|0;Yu(J,159992,m,0)|0;f:do{if((c[L>>2]|0)==8){if(f){break a}f=c[K>>2]|0;z=jd[c[(c[f>>2]|0)+72>>2]&511](f)|0;Yu(z,161496,o,0)|0;w=c[r>>2]|0;if((w|0)==5){Of(o);Yu(z,161504,o,0)|0;w=c[r>>2]|0}if((w|0)!=1){x=161;break a}w=c[s>>2]|0;Of(o);Yu(z,161512,o,0)|0;A=c[r>>2]|0;if((A|0)==5){Of(o);Yu(z,161520,o,0)|0;A=c[r>>2]|0}if((A|0)!=1){x=161;break a}A=c[s>>2]|0;Of(o);Yu(z,161528,o,0)|0;B=c[r>>2]|0;if((B|0)==5){Of(o);Yu(z,160112,o,0)|0;B=c[r>>2]|0}if((B|0)==0){B=(a[s]&1)!=0}else{B=0}Of(o);Yu(z,161568,o,0)|0;C=c[r>>2]|0;if((C|0)==5){Of(o);Yu(z,161592,o,0)|0;C=c[r>>2]|0}if((C|0)!=1){x=161;break a}C=c[s>>2]|0;Of(o);Yu(z,159208,o,0)|0;D=c[r>>2]|0;if((D|0)==5){Of(o);Yu(z,160104,o,0)|0;D=c[r>>2]|0}g:do{if((D|0)==4){D=c[b+20>>2]|0;s=c[s>>2]|0;h:do{if((D|0)==0){x=93}else{while(1){if((c[D+24>>2]|0)==7){if((c[(Yu(c[D+32>>2]|0,s,q,0)|0)>>2]|0)!=5){break}Of(q)}D=c[D+112>>2]|0;if((D|0)==0){x=93;break h}}if((c[u>>2]|0)==5){break}Of(o);$W(r|0,u|0,16)|0;break g}}while(0);if((x|0)==93){c[t>>2]=0;c[y>>2]=0;c[u>>2]=5}Of(q)}}while(0);s=Jy(o,b)|0;Of(o);if((s|0)==0){break a}if((jd[c[(c[s>>2]|0)+12>>2]&511](s)|0)!=0){break a}Yu(z,161600,o,0)|0;if((c[r>>2]|0)==5){Of(o);Yu(z,160288,o,0)|0}q=FW(672)|0;mB(q,C,o,s);Of(o);if((a[q+664|0]&1)==0){if((q|0)==0){break a}nB(q);HW(q);break a}o=c[b+116>>2]|0;i:do{if((o|0)==0){x=144}else{if((a[o]&1)!=0){break}do{o=c[o+4>>2]|0;if((o|0)==0){x=144;break i}}while((a[o]&1)==0)}}while(0);if((x|0)==144){O=c[b+8>>2]|0;vd[c[(c[O>>2]|0)+324>>2]&3](O,c[b+28>>2]|0,d,e,j,k,v,l,f,w,A,q,B)}if((q|0)==0){break}nB(q);HW(q)}else{y=c[G>>2]|0;j:do{if((y|0)==6){t=o+8|0;q=0;while(1){u=c[E>>2]|0;if(!((q|0)<(c[u+12>>2]|0)&(q|0)<64)){z=1;break j}ut(u,q,o)|0;u=c[r>>2]|0;if((u|0)==2){Qe(-1,161616,A);u=c[r>>2]|0;if((u|0)!=2){x=111;break}c[w+(q<<2)>>2]=~~+h[t>>3]}else if((u|0)==1){c[w+(q<<2)>>2]=c[s>>2]}else{x=113;break}Of(o);u=c[G>>2]|0;if((u|0)==6){q=q+1|0}else{x=106;break}}if((x|0)==106){c[H>>2]=u;c[I+4>>2]=6;Qe(0,162256,I);tc()}else if((x|0)==111){c[F>>2]=u;c[B+4>>2]=2;Qe(0,162256,B);tc()}else if((x|0)==113){c[C>>2]=u;Qe(-1,161688,D);Of(o);break a}}else if((y|0)==8){if(f){break a}x=c[E>>2]|0;B=jd[c[(c[x>>2]|0)+72>>2]&511](x)|0;Yu(B,161496,o,0)|0;y=c[r>>2]|0;if((y|0)==5){Of(o);Yu(B,161504,o,0)|0;y=c[r>>2]|0}if((y|0)!=1){x=161;break a}y=c[s>>2]|0;Of(o);Yu(B,161512,o,0)|0;z=c[r>>2]|0;if((z|0)==5){Of(o);Yu(B,161520,o,0)|0;z=c[r>>2]|0}if((z|0)!=1){x=161;break a}z=c[s>>2]|0;Of(o);Yu(B,161528,o,0)|0;A=c[r>>2]|0;if((A|0)==5){Of(o);Yu(B,160112,o,0)|0;A=c[r>>2]|0}if((A|0)==0){A=(a[s]&1)!=0}else{A=0}Of(o);Yu(B,161544,o,0)|0;C=c[r>>2]|0;if((C|0)==5){Of(o);Yu(B,161560,o,0)|0;C=c[r>>2]|0}if((C|0)!=0){x=161;break a}if((a[s]&1)==0){x=161;break a}Of(o);Yu(B,161600,o,0)|0;C=c[r>>2]|0;if((C|0)==5){Of(o);Yu(B,160288,o,0)|0;C=c[r>>2]|0}if((C|0)==6){ut(c[s>>2]|0,0,q)|0;p=c[u>>2]|0;do{if((p+ -1|0)>>>0<2){if((p|0)==1){P=+(c[t>>2]|0)}else{P=+h[t>>3]}if(P<.9){p=0;break}p=1}else{p=0}}while(0);Of(q)}else if((C|0)==5){p=0}else{x=161;break a}Of(o);o=c[b+116>>2]|0;k:do{if((o|0)!=0){if((a[o]&1)!=0){z=0;break j}while(1){o=c[o+4>>2]|0;if((o|0)==0){break k}if((a[o]&1)==0){}else{z=0;break j}}}}while(0);O=c[b+8>>2]|0;vd[c[(c[O>>2]|0)+320>>2]&3](O,c[b+28>>2]|0,d,e,j,k,v,l,x,y,z,p,A);break f}else{z=0}}while(0);o=c[b+116>>2]|0;l:do{if((o|0)!=0){if((a[o]&1)!=0){break f}while(1){o=c[o+4>>2]|0;if((o|0)==0){break l}if((a[o]&1)!=0){break f}}}}while(0);O=c[b+8>>2]|0;Ad[c[(c[O>>2]|0)+316>>2]&1](O,c[b+28>>2]|0,d,e,j,k,v,l,z?w:0,f)}}while(0);if((v|0)!=0){nB(v);HW(v)}Of(n);Of(m)}}while(0);e=da(k,j)|0;b=b+24|0;c[b>>2]=(c[b>>2]|0)+((e|0)>1e3?1e3:e);i=g;return}}while(0);if((x|0)==161){Of(o)}b=c[b+120>>2]|0;do{if((b|0)==0){b=-1}else{b=c[b+4>>2]|0;if((c[b+16>>2]|0)!=8){b=-1;break}b=c[b+24>>2]|0;b=jd[c[(c[b>>2]|0)+48>>2]&511](b)|0}}while(0);Qe(b,161744,p);i=g;return}function Rx(b,d){b=b|0;d=d|0;var e=0,f=0,g=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,W=0,X=0,Y=0,Z=0,_=0.0;e=i;r=i;i=i+8|0;s=r;v=i;i=i+8|0;w=v;z=i;i=i+8|0;y=z;B=i;i=i+8|0;A=B;C=i;i=i+8|0;D=C;E=i;i=i+8|0;F=E;K=i;i=i+8|0;L=K;N=i;i=i+8|0;U=i;i=i+8|0;T=U;V=i;i=i+8|0;W=i;i=i+8|0;Z=i;i=i+8|0;O=Z;I=i;i=i+16|0;H=I;Q=i;i=i+16|0;P=Q;R=i;i=i+48|0;k=R;j=i;i=i+32|0;J=i;i=i+16|0;f=J;x=i;i=i+16|0;g=x;q=i;i=i+16|0;m=q;u=i;i=i+16|0;p=u;c[I>>2]=13;M=H+8|0;c[M>>2]=0;c[M+4>>2]=0;c[Q>>2]=13;S=P+8|0;c[S>>2]=0;c[S+4>>2]=0;c[J>>2]=13;G=f+8|0;c[G>>2]=0;c[G+4>>2]=0;c[x>>2]=13;t=g+8|0;c[t>>2]=0;c[t+4>>2]=0;c[q>>2]=13;q=m+8|0;c[q>>2]=0;c[q+4>>2]=0;c[u>>2]=13;q=p+8|0;c[q>>2]=0;c[q+4>>2]=0;l=b+112|0;if((c[l>>2]|0)>20){i=e;return}Y=c[d>>2]|0;if((Y|0)!=8){c[Z>>2]=Y;c[O+4>>2]=8;Qe(0,162256,O);tc()}O=c[d+8>>2]|0;O=jd[c[(c[O>>2]|0)+72>>2]&511](O)|0;Yu(O,160360,g,0)|0;Y=c[x>>2]|0;if((Y|0)==1){if((c[t>>2]|0)!=1){X=6}}else if((Y|0)!=5){X=6}if((X|0)==6){X=c[b+120>>2]|0;do{if((X|0)==0){X=-1}else{X=c[X+4>>2]|0;if((c[X+16>>2]|0)!=8){X=-1;break}X=c[X+24>>2]|0;X=jd[c[(c[X>>2]|0)+48>>2]&511](X)|0}}while(0);Qe(X,160376,W)}Of(g);Yu(O,160400,P,0)|0;if((c[Q>>2]|0)!=6){Of(P);b=c[b+120>>2]|0;do{if((b|0)==0){b=-1}else{b=c[b+4>>2]|0;if((c[b+16>>2]|0)!=8){b=-1;break}b=c[b+24>>2]|0;b=jd[c[(c[b>>2]|0)+48>>2]&511](b)|0}}while(0);Qe(b,160408,V);i=e;return}V=6;W=0;while(1){if((V|0)!=6){X=17;break}ut(c[S>>2]|0,W,g)|0;V=c[x>>2]|0;if((V+ -1|0)>>>0>=2){X=24;break}if((V|0)==1){_=+(c[t>>2]|0)}else{_=+h[t>>3]}h[j+(W<<3)>>3]=_;Of(g);W=W+1|0;if((W|0)>=4){X=28;break}V=c[Q>>2]|0}if((X|0)==17){c[U>>2]=V;c[T+4>>2]=6;Qe(0,162256,T);tc()}else if((X|0)==24){Of(g);b=c[b+120>>2]|0;do{if((b|0)==0){b=-1}else{b=c[b+4>>2]|0;if((c[b+16>>2]|0)!=8){b=-1;break}b=c[b+24>>2]|0;b=jd[c[(c[b>>2]|0)+48>>2]&511](b)|0}}while(0);Qe(b,161768,N);i=e;return}else if((X|0)==28){Of(P);Yu(O,160472,H,0)|0;a:do{if((c[I>>2]|0)==6){P=6;N=0;while(1){if((P|0)!=6){break}ut(c[M>>2]|0,N,g)|0;P=c[x>>2]|0;if((P+ -1|0)>>>0<2){if((P|0)==1){_=+(c[t>>2]|0)}else{_=+h[t>>3]}h[k+(N<<3)>>3]=_}else{h[k+(N<<3)>>3]=0.0}Of(g);N=N+1|0;if((N|0)>=6){break a}P=c[I>>2]|0}c[K>>2]=P;c[L+4>>2]=6;Qe(0,162256,L);tc()}else{h[R>>3]=1.0;bX(k+8|0,0,16)|0;h[k+24>>3]=1.0;bX(k+32|0,0,16)|0}}while(0);Of(H);Yu(O,160480,f,0)|0;if((c[J>>2]|0)==7){G=c[G>>2]|0}else{G=0}if((c[(Yu(O,160096,g,0)|0)>>2]|0)==7){H=c[x>>2]|0;if((H|0)!=7){c[E>>2]=H;c[F+4>>2]=7;Qe(0,162256,F);tc()}E=Yu(c[t>>2]|0,160008,m,0)|0;do{if((c[E>>2]|0)==4){if((Qc(c[E+8>>2]|0,161800)|0)!=0){C=0;o=0;n=0;p=0;break}E=c[x>>2]|0;if((E|0)!=7){c[C>>2]=E;c[D+4>>2]=7;Qe(0,162256,D);tc()}if((c[(Yu(c[t>>2]|0,160104,p,0)|0)>>2]|0)==5){C=0}else{C=Jy(p,b)|0}Of(p);D=c[x>>2]|0;if((D|0)!=7){c[B>>2]=D;c[A+4>>2]=7;Qe(0,162256,A);tc()}do{if((c[(Yu(c[t>>2]|0,160112,p,0)|0)>>2]|0)==0){A=c[u>>2]|0;if((A|0)==0){o=(a[q]&1)!=0;break}else{c[z>>2]=A;c[y+4>>2]=0;Qe(0,162256,y);tc()}}else{o=0}}while(0);Of(p);x=c[x>>2]|0;if((x|0)!=7){c[v>>2]=x;c[w+4>>2]=7;Qe(0,162256,w);tc()}do{if((c[(Yu(c[t>>2]|0,160120,p,0)|0)>>2]|0)==0){t=c[u>>2]|0;if((t|0)==0){n=(a[q]&1)!=0;break}else{c[r>>2]=t;c[s+4>>2]=0;Qe(0,162256,s);tc()}}else{n=0}}while(0);Of(p);p=1}else{C=0;o=0;n=0;p=0}}while(0);Of(m)}else{C=0;o=0;n=0;p=0}Of(g);c[l>>2]=(c[l>>2]|0)+1;Ax(b,d,G,k,j,p,0,C,o,n,0,0,0);c[l>>2]=(c[l>>2]|0)+ -1;if((C|0)!=0){fdfd[c[(c[a>>2]|0)+4>>2]&511](a);i=b;return}function Xx(a){a=a|0;a=a+168|0;c[a>>2]=(c[a>>2]|0)+1;i=i;return}function Yx(a){a=a|0;var b=0,d=0,e=0;b=i;e=a+168|0;d=(c[e>>2]|0)+ -1|0;c[e>>2]=d;if((d|0)!=0|(a|0)==0){i=b;return}fd[c[(c[a>>2]|0)+20>>2]&511](a);i=b;return}function Zx(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=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,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,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ba=0,ca=0,da=0,ea=0,fa=0,ga=0,ha=0,ia=0,ja=0,ka=0,la=0,ma=0,na=0,oa=0,pa=0,qa=0,ra=0,sa=0,ta=0,ua=0,va=0,wa=0,xa=0,ya=0,za=0,Aa=0,Ba=0,Ca=0,Da=0,Ea=0,Fa=0,Ga=0,Ha=0,Ia=0,Ja=0.0;q=i;n=i;i=i+16|0;m=n;r=i;i=i+8|0;e=r;u=i;i=i+8|0;t=u;y=i;i=i+8|0;x=y;A=i;i=i+8|0;z=A;D=i;i=i+8|0;E=D;X=i;i=i+8|0;_=X;H=i;i=i+8|0;T=i;i=i+8|0;U=T;I=i;i=i+8|0;J=i;i=i+8|0;W=i;i=i+8|0;Q=W;M=i;i=i+8|0;L=i;i=i+8|0;R=i;i=i+8|0;Y=R;O=i;i=i+8|0;P=i;i=i+8|0;S=i;i=i+8|0;$=S;N=i;i=i+8|0;K=i;i=i+8|0;V=i;i=i+8|0;Z=V;da=i;i=i+8|0;ca=da;ea=i;i=i+8|0;fa=ea;ga=i;i=i+8|0;ha=i;i=i+8|0;ia=ha;ja=i;i=i+8|0;ka=ja;ma=i;i=i+8|0;la=i;i=i+8|0;na=i;i=i+8|0;oa=na;pa=i;i=i+8|0;qa=pa;ra=i;i=i+8|0;ta=i;i=i+8|0;sa=ta;ua=i;i=i+8|0;wa=i;i=i+8|0;va=wa;ya=i;i=i+8|0;xa=ya;Ba=i;i=i+8|0;za=i;i=i+8|0;Aa=za;Da=i;i=i+8|0;Ca=Da;Ea=i;i=i+8|0;Fa=Ea;Ia=i;i=i+8|0;Ha=Ia;w=i;i=i+16|0;o=w;l=i;i=i+16|0;j=l;g=i;i=i+16|0;p=g;aa=i;i=i+16|0;F=aa;c[w>>2]=13;v=o+8|0;c[v>>2]=0;c[v+4>>2]=0;c[l>>2]=13;f=j+8|0;c[f>>2]=0;c[f+4>>2]=0;c[g>>2]=13;s=p+8|0;c[s>>2]=0;c[s+4>>2]=0;c[aa>>2]=13;ba=F+8|0;c[ba>>2]=0;c[ba+4>>2]=0;Ga=a+44|0;c[Ga>>2]=2;G=a+52|0;c[G>>2]=-1;c[a+56>>2]=-1;B=a+144|0;h[B>>3]=0.0;if((c[(Yu(d,162552,o,0)|0)>>2]|0)!=7){Of(o);i=q;return}d=c[w>>2]|0;if((d|0)!=7){c[Ia>>2]=d;c[Ha+4>>2]=7;Qe(0,166192,Ha);tc()}do{if((c[(Yu(c[v>>2]|0,162568,j,0)|0)>>2]|0)==1){Ha=c[l>>2]|0;if((Ha|0)==1){c[Ga>>2]=c[f>>2];break}else{c[Ea>>2]=Ha;c[Fa+4>>2]=1;Qe(0,166192,Fa);tc()}}}while(0);Of(j);Ea=c[w>>2]|0;if((Ea|0)!=7){c[Da>>2]=Ea;c[Ca+4>>2]=7;Qe(0,166192,Ca);tc()}Yu(c[v>>2]|0,162576,j,0)|0;if((c[l>>2]|0)==4){d=FW(32)|0;fe(d,c[f>>2]|0);Ca=a+48|0;c[Ca>>2]=d}else{Ca=a+48|0}Of(j);if((c[Ca>>2]|0)==0){Da=c[w>>2]|0;if((Da|0)!=7){c[za>>2]=Da;c[Aa+4>>2]=7;Qe(0,166192,Aa);tc()}Yu(c[v>>2]|0,162592,j,0)|0;if((c[l>>2]|0)==4){d=FW(32)|0;fe(d,c[f>>2]|0);c[Ca>>2]=d;Qe(-1,162608,Ba)}Of(j)}za=c[w>>2]|0;if((za|0)!=7){c[ya>>2]=za;c[xa+4>>2]=7;Qe(0,166192,xa);tc()}Yu(c[v>>2]|0,162704,j,0)|0;if((c[l>>2]|0)==3){d=FW(32)|0;ie(d,c[f>>2]|0);c[a+24>>2]=d}Of(j);xa=c[w>>2]|0;if((xa|0)!=7){c[wa>>2]=xa;c[va+4>>2]=7;Qe(0,166192,va);tc()}Yu(c[v>>2]|0,162720,j,0)|0;do{if((c[l>>2]|0)==4){va=c[f>>2]|0;if((Qc(va|0,162736)|0)==0){c[a+28>>2]=1;break}if((Qc(va|0,162752)|0)==0){c[a+28>>2]=2;break}if((Qc(va|0,162768)|0)==0){c[a+28>>2]=3;break}if((Qc(va|0,162784)|0)==0){c[a+28>>2]=4;break}if((Qc(va|0,162800)|0)==0){c[a+28>>2]=5;break}if((Qc(va|0,162808)|0)==0){c[a+28>>2]=6;break}if((Qc(va|0,162824)|0)==0){c[a+28>>2]=7;break}if((Qc(va|0,162840)|0)==0){c[a+28>>2]=8;break}if((Qc(va|0,162856)|0)==0){c[a+28>>2]=9;break}else{Qe(-1,162872,ua);break}}}while(0);Of(j);ua=c[w>>2]|0;if((ua|0)!=7){c[ta>>2]=ua;c[sa+4>>2]=7;Qe(0,166192,sa);tc()}Yu(c[v>>2]|0,162896,j,0)|0;sa=c[l>>2]|0;do{if((sa+ -1|0)>>>0<2){sa=(sa|0)==1;if(sa){d=c[f>>2]|0;ta=d;Ja=+(d|0)}else{Ja=+h[f>>3];h[k>>3]=Ja;ta=c[k>>2]|0}if(Ja==100.0){c[a+32>>2]=1;break}if(sa){ua=ta;Ja=+(ta|0)}else{Ja=+h[f>>3];h[k>>3]=Ja;ua=c[k>>2]|0}if(Ja==200.0){c[a+32>>2]=2;break}if(sa){ta=ua;Ja=+(ua|0)}else{Ja=+h[f>>3];h[k>>3]=Ja;ta=c[k>>2]|0}if(Ja==300.0){c[a+32>>2]=3;break}if(sa){ua=ta;Ja=+(ta|0)}else{Ja=+h[f>>3];h[k>>3]=Ja;ua=c[k>>2]|0}if(Ja==400.0){c[a+32>>2]=4;break}if(sa){ta=ua;Ja=+(ua|0)}else{Ja=+h[f>>3];h[k>>3]=Ja;ta=c[k>>2]|0}if(Ja==500.0){c[a+32>>2]=5;break}if(sa){ua=ta;Ja=+(ta|0)}else{Ja=+h[f>>3];h[k>>3]=Ja;ua=c[k>>2]|0}if(Ja==600.0){c[a+32>>2]=6;break}if(sa){ta=ua;Ja=+(ua|0)}else{Ja=+h[f>>3];h[k>>3]=Ja;ta=c[k>>2]|0}if(Ja==700.0){c[a+32>>2]=7;break}if(sa){ua=ta;Ja=+(ta|0)}else{Ja=+h[f>>3];h[k>>3]=Ja;ua=c[k>>2]|0}if(Ja==800.0){c[a+32>>2]=8;break}if(sa){Ja=+(ua|0)}else{Ja=+h[f>>3]}if(Ja==900.0){c[a+32>>2]=9;break}else{Qe(-1,162912,ra);break}}}while(0);Of(j);ra=c[w>>2]|0;if((ra|0)!=7){c[pa>>2]=ra;c[qa+4>>2]=7;Qe(0,166192,qa);tc()}do{if((c[(Zu(c[v>>2]|0,162936,j)|0)>>2]|0)==9){pa=c[l>>2]|0;if((pa|0)!=9){c[na>>2]=pa;c[oa+4>>2]=9;Qe(0,166192,oa);tc()}Ia=f;d=c[Ia+4>>2]|0;na=G;c[na>>2]=c[Ia>>2];c[na+4>>2]=d;na=a+40|0;if((c[na>>2]|0)==1){break}Qe(-1,162952,la);if(jd[c[c[a>>2]>>2]&511](a)|0){Qe(-1,163008,ma);c[na>>2]=7;break}else{c[na>>2]=1;break}}}while(0);Of(j);do{if((c[G>>2]|0)==-1){la=c[w>>2]|0;if((la|0)!=7){c[ja>>2]=la;c[ka+4>>2]=7;Qe(0,166192,ka);tc()}if((c[(Zu(c[v>>2]|0,163064,j)|0)>>2]|0)!=9){break}ja=c[l>>2]|0;if((ja|0)!=9){c[ha>>2]=ja;c[ia+4>>2]=9;Qe(0,166192,ia);tc()}Ia=f;d=c[Ia+4>>2]|0;ha=G;c[ha>>2]=c[Ia>>2];c[ha+4>>2]=d;ha=a+40|0;d=c[ha>>2]|0;if((d|0)==10|(d|0)==5){break}Qe(-1,162952,ga);d=jd[c[c[a>>2]>>2]&511](a)|0;c[ha>>2]=d?10:5}}while(0);Of(j);do{if((c[G>>2]|0)==-1){ga=c[w>>2]|0;if((ga|0)!=7){c[ea>>2]=ga;c[fa+4>>2]=7;Qe(0,166192,fa);tc()}if((c[(Zu(c[v>>2]|0,163080,j)|0)>>2]|0)!=9){break}if((c[(Nf(j,b,p,0)|0)>>2]|0)==8){ea=c[g>>2]|0;if((ea|0)!=8){c[da>>2]=ea;c[ca+4>>2]=8;Qe(0,166192,ca);tc()}ca=c[s>>2]|0;Yu(jd[c[(c[ca>>2]|0)+72>>2]&511](ca)|0,162424,F,0)|0;ca=162512;do{if((c[aa>>2]|0)==4){ca=c[ba>>2]|0;if((Qc(ca|0,162432)|0)==0){H=c[l>>2]|0;if((H|0)!=9){c[V>>2]=H;c[Z+4>>2]=9;Qe(0,166192,Z);tc()}Ia=f;d=c[Ia+4>>2]|0;c[G>>2]=c[Ia>>2];c[G+4>>2]=d;G=a+40|0;if((c[G>>2]|0)==1){break}Qe(-1,162952,K);if(jd[c[c[a>>2]>>2]&511](a)|0){Qe(-1,163096,N);c[G>>2]=7;break}else{c[G>>2]=1;break}}if((Qc(ca|0,162448)|0)==0){H=c[l>>2]|0;if((H|0)!=9){c[S>>2]=H;c[$+4>>2]=9;Qe(0,166192,$);tc()}Ia=f;d=c[Ia+4>>2]|0;c[G>>2]=c[Ia>>2];c[G+4>>2]=d;G=a+40|0;if(((c[G>>2]|0)+ -1|0)>>>0>=2){Qe(-1,162952,P)}if(jd[c[c[a>>2]>>2]&511](a)|0){Qe(-1,163152,O);c[G>>2]=8;break}else{c[G>>2]=2;break}}if((Qc(ca|0,162464)|0)==0){H=c[l>>2]|0;if((H|0)!=9){c[R>>2]=H;c[Y+4>>2]=9;Qe(0,166192,Y);tc()}Ia=f;d=c[Ia+4>>2]|0;c[G>>2]=c[Ia>>2];c[G+4>>2]=d;G=a+40|0;if((c[G>>2]|0)==5){break}Qe(-1,162952,L);if(jd[c[c[a>>2]>>2]&511](a)|0){Qe(-1,163208,M);c[G>>2]=10;break}else{c[G>>2]=5;break}}if((Qc(ca|0,163264)|0)==0){H=c[l>>2]|0;if((H|0)!=9){c[W>>2]=H;c[Q+4>>2]=9;Qe(0,166192,Q);tc()}Ia=f;d=c[Ia+4>>2]|0;c[G>>2]=c[Ia>>2];c[G+4>>2]=d;G=a+40|0;if((c[G>>2]|0)!=7){Qe(-1,162952,J)}if(jd[c[c[a>>2]>>2]&511](a)|0){c[G>>2]=8;break}else{Qe(-1,163280,I);c[G>>2]=2;break}}if((Qc(ca|0,163344)|0)!=0){C=158;break}I=c[l>>2]|0;if((I|0)!=9){c[T>>2]=I;c[U+4>>2]=9;Qe(0,166192,U);tc()}d=f;I=c[d+4>>2]|0;c[G>>2]=c[d>>2];c[G+4>>2]=I;G=a+40|0;I=c[G>>2]|0;if((I|0)==1){c[G>>2]=3;break}else if((I|0)==7){c[G>>2]=9;break}else if((I|0)==10){c[G>>2]=11;break}else if((I|0)==5){c[G>>2]=6;break}else{Qe(-1,162952,H);break}}else{C=158}}while(0);if((C|0)==158){c[X>>2]=ca;Qe(-1,163360,_)}Of(F)}Of(p)}}while(0);Of(j);C=c[w>>2]|0;if((C|0)!=7){c[D>>2]=C;c[E+4>>2]=7;Qe(0,166192,E);tc()}Yu(c[v>>2]|0,163392,j,0)|0;C=c[l>>2]|0;if((C+ -1|0)>>>0<2){if((C|0)==1){Ja=+(c[f>>2]|0)}else{Ja=+h[f>>3]}h[B>>3]=Ja}Of(j);B=c[w>>2]|0;if((B|0)!=7){c[A>>2]=B;c[z+4>>2]=7;Qe(0,166192,z);tc()}Yu(c[v>>2]|0,163408,j,0)|0;z=c[l>>2]|0;do{if((z+ -1|0)>>>0<2){if((z|0)==1){Ja=+(c[f>>2]|0)}else{Ja=+h[f>>3]}Ja=Ja*.001;if(Ja==0.0){break}h[a+152>>3]=Ja}}while(0);Of(j);z=c[w>>2]|0;if((z|0)!=7){c[y>>2]=z;c[x+4>>2]=7;Qe(0,166192,x);tc()}Yu(c[v>>2]|0,163416,j,0)|0;x=c[l>>2]|0;do{if((x+ -1|0)>>>0<2){if((x|0)==1){Ja=+(c[f>>2]|0)}else{Ja=+h[f>>3]}Ja=Ja*.001;x=a+160|0;if(Ja!=0.0){h[x>>3]=Ja}else{Ja=+h[x>>3]}if(Ja<=0.0){break}h[a+160>>3]=-0.0-Ja}}while(0);Of(j);w=c[w>>2]|0;if((w|0)!=7){c[u>>2]=w;c[t+4>>2]=7;Qe(0,166192,t);tc()}a:do{if((c[(Yu(c[v>>2]|0,163424,j,0)|0)>>2]|0)==6){t=0;while(1){u=c[l>>2]|0;if((u|0)!=6){C=192;break}u=c[f>>2]|0;if((t|0)>=(c[u+12>>2]|0)){break a}if(((c[(ut(u,t,p)|0)>>2]|0)+ -1|0)>>>0<2){u=c[g>>2]|0;if((u+ -1|0)>>>0>=2){C=196;break}if((u|0)==1){Ja=+(c[s>>2]|0)}else{Ja=+h[s>>3]}h[a+112+(t<<3)>>3]=Ja*.001}Of(p);t=t+1|0;if((t|0)>=4){break a}}if((C|0)==192){c[r>>2]=u;c[e+4>>2]=6;Qe(0,166192,e);tc()}else if((C|0)==196){c[n>>2]=u;c[m+4>>2]=1;c[m+8>>2]=2;Qe(0,167792,m);tc()}}}while(0);Of(j);Of(o);i=q;return}function _x(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;g=i;k=i;i=i+8|0;l=k;q=i;i=i+8|0;p=q;n=i;i=i+4096|0;m=i;i=i+16|0;h=m;c[m>>2]=13;j=h+8|0;c[j>>2]=0;c[j+4>>2]=0;if((c[(Yu(d,163440,h,0)|0)>>2]|0)!=8){Of(h);r=0;i=g;return r|0}d=FW(32)|0;ee(d);r=c[m>>2]|0;if((r|0)!=8){c[q>>2]=r;c[p+4>>2]=8;Qe(0,166192,p);tc()}p=c[j>>2]|0;fd[c[(c[p>>2]|0)+12>>2]&511](p);while(1){a:do{if(jd[c[(c[p>>2]|0)+88>>2]&511](p)|0){q=sd[c[(c[p>>2]|0)+92>>2]&127](p,4096,n)|0;o=10}else{q=0;while(1){r=jd[c[(c[p>>2]|0)+20>>2]&511](p)|0;if((r|0)==-1){o=10;break a}a[n+q|0]=r;q=q+1|0;if((q|0)>=4096){q=4096;break}}}}while(0);if((o|0)==10){o=0;if((q|0)==0){break}}ne(d,n,q)|0}m=c[m>>2]|0;if((m|0)!=8){c[k>>2]=m;c[l+4>>2]=8;Qe(0,166192,l);tc()}r=c[j>>2]|0;fd[c[(c[r>>2]|0)+16>>2]&511](r);Of(h);if((f|0)==0){f=lu(d,e)|0}else{qu(f,d,e)}a[b+173|0]=1;if((d|0)==0){r=f;i=g;return r|0}ke(d);HW(d);r=f;i=g;return r|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;e=i;k=i;i=i+8|0;o=i;i=i+16|0;f=o;l=i;i=i+16|0;g=l;m=f+8|0;c[l>>2]=13;h=g+8|0;c[h>>2]=0;c[h+4>>2]=0;j=a+52|0;n=c[j>>2]|0;a=c[a+56>>2]|0;c[o>>2]=9;c[m>>2]=n;c[m+4>>2]=a;Nf(f,b,g,0)|0;if((c[l>>2]|0)==8){n=c[h>>2]|0;o=ay(n,d,4096,4096)|0;fd[c[(c[n>>2]|0)+16>>2]&511](n);Of(g);Of(f);i=e;return o|0}else{Qe(-1,163544,k);Of(g);Of(f);c[j>>2]=-1;c[d>>2]=0;o=0;i=e;return o|0}return 0}function ay(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0;h=i;g=we(e)|0;c[d>>2]=0;fdfd[c[(c[T>>2]|0)+4>>2]&511](T)}if((S|0)==0){I=0;H=0;K=0}else{fdfd[c[(c[jb>>2]|0)+12>>2]&511](jb);jb=c[N>>2]|0;if((jb|0)==8){gb=64}else{Vb=jb;Wb=bb;c[Wb>>2]=Vb;Wb=cb+4|0;c[Wb>>2]=8;Wb=166192;Qe(0,Wb,cb);tc()}while(1){jb=c[pa>>2]|0;jb=jd[c[(c[jb>>2]|0)+20>>2]&511](jb)|0;if((jb|0)==-1){break c}kb=c[N>>2]|0;if((kb|0)!=8){o=78;break}kb=c[pa>>2]|0;kb=jd[c[(c[kb>>2]|0)+20>>2]&511](kb)|0;if((kb|0)==-1){break c}mb=c[ib>>2]|0;if((mb|0)==(gb|0)){gb=gb<<1;lb=Ce(c[hb>>2]|0,gb,2)|0;c[hb>>2]=lb;mb=c[ib>>2]|0}else{lb=c[hb>>2]|0}c[ib>>2]=mb+1;b[lb+(mb<<1)>>1]=kb+(jb<<8);jb=c[N>>2]|0;if((jb|0)!=8){o=75;break}}if((o|0)==75){Wb=bb;c[Wb>>2]=jb;Wb=cb+4|0;c[Wb>>2]=8;Wb=166192;Qe(0,Wb,cb);tc()}else if((o|0)==78){c[eb>>2]=kb;c[db+4>>2]=8;Qe(0,166192,db);tc()}}else if((mb|0)==4){if((Qc(c[pa>>2]|0,165144)|0)!=0){o=85}}else if((mb|0)!=5){o=85}}while(0);if((o|0)==85){Qe(-1,165160,lb)}Of(l)}do{if((c[(Yu(_a,165200,l,0)|0)>>2]|0)==1){bb=c[N>>2]|0;if((bb|0)==1){h[fb>>3]=+(c[pa>>2]|0)*.001;break}else{c[ab>>2]=bb;c[$a+4>>2]=1;Qe(0,166192,$a);tc()}}}while(0);Of(l);do{if((c[(Yu(_a,165208,l,0)|0)>>2]|0)==6){$a=c[N>>2]|0;if(($a|0)!=6){Vb=$a;Wb=Ca;c[Wb>>2]=Vb;Wb=Da+4|0;c[Wb>>2]=6;Wb=166192;Qe(0,Wb,Da);tc()}bb=1;ab=0;$a=0;d:while(1){cb=c[pa>>2]|0;if((bb|0)>=(c[cb+12>>2]|0)){o=139;break}ut(cb,$a,Q)|0;cb=c[N>>2]|0;if((cb|0)!=6){o=97;break}ut(c[pa>>2]|0,bb,W)|0;e:do{if((c[K>>2]|0)==1){db=c[J>>2]|0;do{if((db|0)==1){cb=$a+2|0;eb=c[N>>2]|0;if((eb|0)!=6){o=101;break d}eb=c[pa>>2]|0;if((cb|0)>=(c[eb+12>>2]|0)){if((db|0)==6){break}else{o=137;break e}}if(((c[(ut(eb,cb,P)|0)>>2]|0)+ -1|0)>>>0<2){if((c[Ya>>2]|0)==(ab|0)){ab=ab+16|0;c[Za>>2]=Ce(c[Za>>2]|0,ab,16)|0}bb=c[K>>2]|0;if((bb|0)!=1){o=107;break d}c[(c[Za>>2]|0)+(c[Ya>>2]<<4)>>2]=c[oa>>2];bb=c[J>>2]|0;if((bb|0)!=1){o=109;break d}c[(c[Za>>2]|0)+(c[Ya>>2]<<4)+4>>2]=c[na>>2];bb=c[H>>2]|0;if((bb+ -1|0)>>>0>=2){o=111;break d}if((bb|0)==1){Xb=+(c[j>>2]|0)}else{Xb=+h[j>>3]}h[(c[Za>>2]|0)+(c[Ya>>2]<<4)+8>>3]=Xb*.001;c[Ya>>2]=(c[Ya>>2]|0)+1}else{Qe(-1,165216,Ga)}Of(P);$a=$a+3|0;break e}else if((db|0)!=6){o=137;break e}}while(0);bb=(c[(c[na>>2]|0)+12>>2]|0)+(c[Ya>>2]|0)|0;if((bb|0)>(ab|0)){ab=bb+15&-16;c[Za>>2]=Ce(c[Za>>2]|0,ab,16)|0;bb=c[K>>2]|0;if((bb|0)!=1){o=121;break d}}db=c[J>>2]|0;if((db|0)!=6){o=124;break d}cb=c[oa>>2]|0;bb=0;while(1){db=c[na>>2]|0;if((bb|0)>=(c[db+12>>2]|0)){break}if(((c[(ut(db,bb,P)|0)>>2]|0)+ -1|0)>>>0<2){c[(c[Za>>2]|0)+(c[Ya>>2]<<4)>>2]=cb;c[(c[Za>>2]|0)+(c[Ya>>2]<<4)+4>>2]=cb;db=c[H>>2]|0;if((db+ -1|0)>>>0>=2){o=128;break d}if((db|0)==1){Xb=+(c[j>>2]|0)}else{Xb=+h[j>>3]}h[(c[Za>>2]|0)+(c[Ya>>2]<<4)+8>>3]=Xb*.001;c[Ya>>2]=(c[Ya>>2]|0)+1;cb=cb+1|0}else{Qe(-1,165216,Qa)}Of(P);db=c[J>>2]|0;if((db|0)!=6){o=124;break d}bb=bb+1|0}$a=$a+2|0}else{o=137}}while(0);if((o|0)==137){o=0;Qe(-1,165216,Fa);$a=bb}Of(W);Of(Q);bb=c[N>>2]|0;if((bb|0)==6){bb=$a+1|0}else{o=94;break}}if((o|0)==94){Wb=Ca;c[Wb>>2]=bb;Wb=Da+4|0;c[Wb>>2]=6;Wb=166192;Qe(0,Wb,Da);tc()}else if((o|0)==97){c[Wa>>2]=cb;c[Ta+4>>2]=6;Qe(0,166192,Ta);tc()}else if((o|0)==101){c[Sa>>2]=eb;c[Ra+4>>2]=6;Qe(0,166192,Ra);tc()}else if((o|0)==107){c[Ua>>2]=bb;c[Pa+4>>2]=1;Qe(0,166192,Pa);tc()}else if((o|0)==109){c[Ha>>2]=bb;c[Ia+4>>2]=1;Qe(0,166192,Ia);tc()}else if((o|0)==111){c[Ja>>2]=bb;c[Ka+4>>2]=1;c[Ka+8>>2]=2;Qe(0,167792,Ka);tc()}else if((o|0)==121){c[La>>2]=bb;c[Ma+4>>2]=1;Qe(0,166192,Ma);tc()}else if((o|0)==124){c[Ea>>2]=db;c[Ba+4>>2]=6;Qe(0,166192,Ba);tc()}else if((o|0)==128){c[Na>>2]=db;c[Oa+4>>2]=1;c[Oa+8>>2]=2;Qe(0,167792,Oa);tc()}else if((o|0)==139){Vb=c[Za>>2]|0;Wb=Vb+(c[Ya>>2]<<4)|0;c[Xa>>2]=187;Dy(Vb,Wb,Va);break}}}while(0);Of(l);do{if((c[(Yu(_a,165248,l,0)|0)>>2]|0)==6){Ba=c[N>>2]|0;if((Ba|0)!=6){c[za>>2]=Ba;c[ya+4>>2]=6;Qe(0,166192,ya);tc()}ya=c[pa>>2]|0;if((c[ya+12>>2]|0)!=2){break}if(((c[(ut(ya,0,Q)|0)>>2]|0)+ -1|0)>>>0<2){ya=c[K>>2]|0;if((ya+ -1|0)>>>0>=2){c[xa>>2]=ya;c[wa+4>>2]=1;c[wa+8>>2]=2;Qe(0,167792,wa);tc()}if((ya|0)==1){Xb=+(c[oa>>2]|0)}else{Xb=+h[oa>>3]}h[Aa>>3]=Xb*.001}Of(Q);wa=c[N>>2]|0;if((wa|0)!=6){c[ua>>2]=wa;c[ta+4>>2]=6;Qe(0,166192,ta);tc()}if(((c[(ut(c[pa>>2]|0,1,Q)|0)>>2]|0)+ -1|0)>>>0<2){ta=c[K>>2]|0;if((ta+ -1|0)>>>0>=2){c[ra>>2]=ta;c[sa+4>>2]=1;c[sa+8>>2]=2;Qe(0,167792,sa);tc()}if((ta|0)==1){Xb=+(c[oa>>2]|0)}else{Xb=+h[oa>>3]}h[va>>3]=Xb*.001}Of(Q)}}while(0);Of(l);do{if((c[(Yu(_a,165256,l,0)|0)>>2]|0)==6){ra=c[N>>2]|0;if((ra|0)!=6){Vb=ra;Wb=p;c[Wb>>2]=Vb;Wb=q+4|0;c[Wb>>2]=6;Wb=166192;Qe(0,Wb,q);tc()}ta=1;sa=0;ra=0;f:while(1){ua=c[pa>>2]|0;if((ta|0)>=(c[ua+12>>2]|0)){o=241;break}ut(ua,ra,Q)|0;ua=c[N>>2]|0;if((ua|0)!=6){o=167;break}ut(c[pa>>2]|0,ta,W)|0;g:do{if((c[K>>2]|0)==1){va=c[J>>2]|0;do{if((va|0)==1){ua=ra+4|0;wa=c[N>>2]|0;if((wa|0)!=6){o=171;break f}wa=c[pa>>2]|0;if((ua|0)>=(c[wa+12>>2]|0)){if((va|0)==6){break}else{o=239;break g}}do{if(((c[(ut(wa,ra+2|0,P)|0)>>2]|0)+ -1|0)>>>0<2){ta=c[N>>2]|0;if((ta|0)!=6){o=175;break f}if(((c[(ut(c[pa>>2]|0,ra+3|0,O)|0)>>2]|0)+ -1|0)>>>0>=2){o=202;break}ta=c[N>>2]|0;if((ta|0)!=6){o=178;break f}if(((c[(ut(c[pa>>2]|0,ua,M)|0)>>2]|0)+ -1|0)>>>0>=2){o=202;break}if((c[f>>2]|0)==(sa|0)){sa=sa+16|0;c[la>>2]=Ce(c[la>>2]|0,sa,32)|0}ta=c[K>>2]|0;if((ta|0)!=1){o=183;break f}c[(c[la>>2]|0)+(c[f>>2]<<5)>>2]=c[oa>>2];ta=c[J>>2]|0;if((ta|0)!=1){o=185;break f}c[(c[la>>2]|0)+(c[f>>2]<<5)+4>>2]=c[na>>2];ta=c[H>>2]|0;if((ta+ -1|0)>>>0>=2){o=187;break f}if((ta|0)==1){Xb=+(c[j>>2]|0)}else{Xb=+h[j>>3]}h[(c[la>>2]|0)+(c[f>>2]<<5)+8>>3]=Xb*.001;ta=c[F>>2]|0;if((ta+ -1|0)>>>0>=2){o=192;break f}if((ta|0)==1){Xb=+(c[qa>>2]|0)}else{Xb=+h[qa>>3]}h[(c[la>>2]|0)+(c[f>>2]<<5)+16>>3]=Xb*.001;ta=c[D>>2]|0;if((ta+ -1|0)>>>0>=2){o=197;break f}if((ta|0)==1){Xb=+(c[ma>>2]|0)}else{Xb=+h[ma>>3]}h[(c[la>>2]|0)+(c[f>>2]<<5)+24>>3]=Xb*.001;c[f>>2]=(c[f>>2]|0)+1}else{o=202}}while(0);if((o|0)==202){o=0;Qe(-1,165264,ea)}Of(M);Of(O);Of(P);ra=ra+5|0;break g}else if((va|0)!=6){o=239;break g}}while(0);ta=((c[(c[na>>2]|0)+12>>2]|0)/3|0)+(c[f>>2]|0)|0;if((ta|0)>(sa|0)){sa=ta+15&-16;c[la>>2]=Ce(c[la>>2]|0,sa,32)|0;ta=c[K>>2]|0;if((ta|0)!=1){o=207;break f}}va=c[J>>2]|0;if((va|0)!=6){o=210;break f}ua=c[oa>>2]|0;ta=0;while(1){va=c[na>>2]|0;if((ta|0)>=(c[va+12>>2]|0)){break}do{if(((c[(ut(va,ta,P)|0)>>2]|0)+ -1|0)>>>0<2){va=c[J>>2]|0;if((va|0)!=6){o=214;break f}if(((c[(ut(c[na>>2]|0,ta+1|0,O)|0)>>2]|0)+ -1|0)>>>0>=2){o=235;break}va=c[J>>2]|0;if((va|0)!=6){o=217;break f}if(((c[(ut(c[na>>2]|0,ta+2|0,M)|0)>>2]|0)+ -1|0)>>>0>=2){o=235;break}c[(c[la>>2]|0)+(c[f>>2]<<5)>>2]=ua;c[(c[la>>2]|0)+(c[f>>2]<<5)+4>>2]=ua;va=c[H>>2]|0;if((va+ -1|0)>>>0>=2){o=220;break f}if((va|0)==1){Xb=+(c[j>>2]|0)}else{Xb=+h[j>>3]}h[(c[la>>2]|0)+(c[f>>2]<<5)+8>>3]=Xb*.001;va=c[F>>2]|0;if((va+ -1|0)>>>0>=2){o=225;break f}if((va|0)==1){Xb=+(c[qa>>2]|0)}else{Xb=+h[qa>>3]}h[(c[la>>2]|0)+(c[f>>2]<<5)+16>>3]=Xb*.001;va=c[D>>2]|0;if((va+ -1|0)>>>0>=2){o=230;break f}if((va|0)==1){Xb=+(c[ma>>2]|0)}else{Xb=+h[ma>>3]}h[(c[la>>2]|0)+(c[f>>2]<<5)+24>>3]=Xb*.001;c[f>>2]=(c[f>>2]|0)+1;ua=ua+1|0}else{o=235}}while(0);if((o|0)==235){o=0;Qe(-1,165264,ia)}Of(M);Of(O);Of(P);va=c[J>>2]|0;if((va|0)!=6){o=210;break f}ta=ta+3|0}ra=ra+2|0}else{o=239}}while(0);if((o|0)==239){o=0;Qe(-1,165264,u);ra=ta}Of(W);Of(Q);ta=c[N>>2]|0;if((ta|0)==6){ta=ra+1|0}else{o=164;break}}if((o|0)==164){Wb=p;c[Wb>>2]=ta;Wb=q+4|0;c[Wb>>2]=6;Wb=166192;Qe(0,Wb,q);tc()}else if((o|0)==167){c[v>>2]=ua;c[w+4>>2]=6;Qe(0,166192,w);tc()}else if((o|0)==171){c[x>>2]=wa;c[y+4>>2]=6;Qe(0,166192,y);tc()}else if((o|0)==175){c[S>>2]=ta;c[T+4>>2]=6;Qe(0,166192,T);tc()}else if((o|0)==178){c[ka>>2]=ta;c[V+4>>2]=6;Qe(0,166192,V);tc()}else if((o|0)==183){c[t>>2]=ta;c[X+4>>2]=1;Qe(0,166192,X);tc()}else if((o|0)==185){c[Y>>2]=ta;c[Z+4>>2]=1;Qe(0,166192,Z);tc()}else if((o|0)==187){c[_>>2]=ta;c[$+4>>2]=1;c[$+8>>2]=2;Qe(0,167792,$);tc()}else if((o|0)==192){c[aa>>2]=ta;c[ba+4>>2]=1;c[ba+8>>2]=2;Qe(0,167792,ba);tc()}else if((o|0)==197){c[ca>>2]=ta;c[da+4>>2]=1;c[da+8>>2]=2;Qe(0,167792,da);tc()}else if((o|0)==207){c[fa>>2]=ta;c[ga+4>>2]=1;Qe(0,166192,ga);tc()}else if((o|0)==210){c[s>>2]=va;c[r+4>>2]=6;Qe(0,166192,r);tc()}else if((o|0)==214){c[z>>2]=va;c[A+4>>2]=6;Qe(0,166192,A);tc()}else if((o|0)==217){c[B>>2]=va;c[C+4>>2]=6;Qe(0,166192,C);tc()}else if((o|0)==220){c[E>>2]=va;c[G+4>>2]=1;c[G+8>>2]=2;Qe(0,167792,G);tc()}else if((o|0)==225){c[I>>2]=va;c[L+4>>2]=1;c[L+8>>2]=2;Qe(0,167792,L);tc()}else if((o|0)==230){c[ha>>2]=va;c[ja+4>>2]=1;c[ja+8>>2]=2;Qe(0,167792,ja);tc()}else if((o|0)==241){Vb=c[la>>2]|0;Wb=Vb+(c[f>>2]<<5)|0;c[R>>2]=188;Ay(Vb,Wb,U);break}}}while(0);Of(l);Of(n);a[g]=1;i=m;return}}while(0);Qe(-1,164728,Gb);Of(W);Of(Q);o=243;break a}}while(0);c[Mb>>2]=Pb;Qe(-1,164568,Nb);o=243}else{Qe(-1,164448,Rb);o=243}}while(0);if((o|0)==243){Of(l)}Of(n);i=m;return}function ly(a,b){a=a|0;b=b|0;i=i;return(c[a>>2]|0)>>>0<(c[b>>2]|0)>>>0|0}function my(a,b){a=a|0;b=b|0;i=i;return(c[a>>2]|0)>>>0<(c[b>>2]|0)>>>0|0}function ny(a){a=a|0;var b=0;b=i;oy(a);HW(a);i=b;return}function oy(a){a=a|0;var b=0,d=0;b=i;c[a>>2]=164360;d=c[a+176>>2]|0;if((d|0)!=0){Gt(d)}d=c[a+180>>2]|0;if((d|0)!=0){uu(d)}Fe(c[a+208>>2]|0);Fe(c[a+216>>2]|0);d=c[a+224>>2]|0;if((d|0)==0){Wx(a);i=b;return}Fe(d);Wx(a);i=b;return}function py(b,e,f,g,j,k,l,m,n,o){b=b|0;e=e|0;f=f|0;g=g|0;j=j|0;k=k|0;l=l|0;m=m|0;n=n|0;o=o|0;var p=0,q=0,r=0.0,s=0,t=0.0,u=0.0,v=0,w=0,x=0.0,y=0;p=i;q=i;i=i+8|0;s=b+176|0;v=c[s>>2]|0;if((v|0)==0){c[g>>2]=0;c[k>>2]=0;h[m>>3]=0.0;h[l>>3]=0.0;y=1;i=p;return y|0}f=It(v,e,f,q)|0;c[g>>2]=f;g=c[b+180>>2]|0;do{if((g|0)==0){c[k>>2]=0}else{if((a[b+173|0]&1)==0){c[k>>2]=wu(g,f,j)|0;break}v=c[q>>2]|0;if((v|0)>0){w=0;y=0;while(1){w=d[e+y|0]|0|w<<8;y=y+1|0;if((y|0)<(v|0)){}else{break}}}else{w=0}c[k>>2]=wu(g,w,j)|0}}while(0);do{if((c[(c[s>>2]|0)+8>>2]|0)==0){u=+h[b+184>>3];e=c[b+212>>2]|0;if((e|0)<=0){x=0.0;t=0.0;r=0.0;break}b=c[b+208>>2]|0;if(f>>>0<(c[b>>2]|0)>>>0){x=0.0;t=0.0;r=0.0;break}if((e|0)>1){k=0;while(1){j=(e+k|0)/2|0;s=(c[b+(j<<4)>>2]|0)>>>0>f>>>0;k=s?k:j;e=s?j:e;if((e-k|0)>1){}else{break}}}else{k=0}if(f>>>0>(c[b+(k<<4)+4>>2]|0)>>>0){x=0.0;t=0.0;r=0.0;break}x=0.0;t=0.0;r=0.0;u=+h[b+(k<<4)+8>>3]}else{u=+h[b+192>>3];t=+h[b+184>>3]*.5;r=+h[b+200>>3];e=c[b+220>>2]|0;if((e|0)<=0){x=u;u=0.0;break}b=c[b+216>>2]|0;if(f>>>0<(c[b>>2]|0)>>>0){x=u;u=0.0;break}if((e|0)>1){s=0;while(1){k=(e+s|0)/2|0;j=(c[b+(k<<5)+4>>2]|0)>>>0>f>>>0;s=j?s:k;e=j?k:e;if((e-s|0)>1){}else{break}}}else{s=0}if(f>>>0>(c[b+(s<<5)+4>>2]|0)>>>0){x=u;u=0.0;break}x=+h[b+(s<<5)+8>>3];t=+h[b+(s<<5)+16>>3];r=+h[b+(s<<5)+24>>3];u=0.0}}while(0);h[l>>3]=u;h[m>>3]=x;h[n>>3]=t;h[o>>3]=r;y=c[q>>2]|0;i=p;return y|0}function qy(a){a=a|0;var b=0;b=i;a=c[a+176>>2]|0;if((a|0)==0){a=0;i=b;return a|0}a=c[a+8>>2]|0;i=b;return a|0}function ry(a){a=a|0;var b=0,d=0;b=i;d=a+180|0;a=c[d>>2]|0;if((a|0)==0){d=0;i=b;return d|0}tu(a);d=c[d>>2]|0;i=b;return d|0}function sy(a){a=a|0;var b=0;b=i;a=c[a+176>>2]|0;if((a|0)==0){a=0;i=b;return a|0}a=c[a>>2]|0;i=b;return a|0}function ty(a,d,e){a=a|0;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,s=0,t=0,u=0,v=0,w=0,x=0;f=i;t=i;i=i+8|0;u=t;l=i;i=i+32|0;s=i;i=i+8|0;r=s;m=i;i=i+32|0;o=i;i=i+8|0;q=o;c[e>>2]=0;n=a+180|0;if((c[n>>2]|0)==0){x=0;i=f;return x|0}k=a+176|0;g=c[k>>2]|0;if((g|0)==0){g=0}else{g=c[g>>2]|0}if((te(g,164792)|0)==0){x=0;i=f;return x|0}if((c[a+52>>2]|0)>-1){c[e>>2]=c[a+228>>2];x=c[a+224>>2]|0;i=f;return x|0}if((Hn(d)|0)>0){h=-1;g=0}else{x=0;i=f;return x|0}while(1){p=In(d,g)|0;v=Jn(d,g)|0;j=(p|0)==3;if(j&(v|0)==10){break}if(j&(v|0)==1){h=g}else{h=(p|0)==0&(h|0)<0?g:h}g=g+1|0;if((g|0)>=(Hn(d)|0)){g=h;break}}if((g|0)<0){x=0;i=f;return x|0}p=jd[c[(c[a>>2]|0)+8>>2]&511](a)|0;w=c[k>>2]|0;h=c[(c[w>>2]|0)+28>>2]|0;x=164848;v=165816;while(1){j=v+16|0;if((Qc(x|0,h|0)|0)==0){break}x=c[j>>2]|0;if((x|0)==0){v=j;break}else{v=j}}h=GW(262144)|0;j=GW(524288)|0;bX(j|0,0,524288)|0;do{if((c[v>>2]|0)==0){c[t>>2]=c[(c[w>>2]|0)+28>>2];Qe(-1,166024,u);k=jd[c[(c[a>>2]|0)+4>>2]&511](a)|0;c[n>>2]=k;if((k|0)==0){o=0;break}else{l=0}do{if((wu(k,l,q)|0)==0){c[j+(l<<1<<2)>>2]=0}else{c[j+(l<<1<<2)>>2]=c[c[o>>2]>>2]}c[j+((l<<1|1)<<2)>>2]=0;l=l+1|0;k=c[n>>2]|0}while(l>>>0<65536);uu(k);o=0}else{fe(l,c[v+8>>2]|0);o=ou(l,16)|0;if((o|0)!=0){n=0;do{if((wu(o,n,r)|0)==1){c[h+(n<<2)>>2]=c[c[s>>2]>>2]}else{c[h+(n<<2)>>2]=0}n=n+1|0;}while(n>>>0<65536);su(o);HW(o)}o=GW(262144)|0;bX(o|0,0,262144)|0;n=c[v+12>>2]|0;q=c[n>>2]|0;if((q|0)!=0){do{fe(m,q);q=c[k>>2]|0;if((q|0)==0){q=0}else{q=c[q>>2]|0}q=zf(c[834]|0,q,m,0)|0;if((q|0)!=0){if((c[q+8>>2]|0)==0){Kt(q,j,65536,2)}else{Kt(q,o,65536,1)}Gt(q)}ke(m);n=n+4|0;q=c[n>>2]|0;}while((q|0)!=0)}On(d,c[v+4>>2]|0)|0;ke(l)}}while(0);l=ye(65536,2)|0;k=(j|0)!=0;m=(o|0)==0;n=(h|0)==0;p=(p|0)==0;q=0;do{a:do{if(k){s=q<<1;t=0;u=0;do{r=c[j+(u+s<<2)>>2]|0;if((r|0)==0){r=0;break a}x=Kn(d,g,r)|0;t=x&65535;u=u+1|0;}while((u|0)<2&x<<16>>16==0)}else{t=0;r=0}}while(0);do{if(!((t|0)!=0|m)){r=c[o+(q<<2)>>2]|0;if((r|0)==0){t=0;r=0;break}t=Kn(d,g,r)|0;s=Qn(d,t&65535)|0;x=(s&65535|0)==0?t:s&65535;t=x&65535;if(x<<16>>16!=0|n){break}r=c[h+(q<<2)>>2]|0;if((r|0)==0){r=0;break}s=Kn(d,g,r)|0;t=Qn(d,s&65535)|0;t=((t&65535|0)==0?s:t&65535)&65535}}while(0);do{if((t|0)!=0|n){u=r;s=52}else{u=c[h+(q<<2)>>2]|0;if((u|0)==0){r=0;u=0;s=53;break}t=(Kn(d,g,u)|0)&65535;s=52}}while(0);if((s|0)==52){s=0;r=t&65535;if((t|0)==0){s=53}}b:do{if((s|0)==53){if(k){s=c[j+(q<<2)>>2]|0}else{s=u}if((s|0)==0){break}else{t=8192;u=165304}while(1){u=u+4|0;if((t|0)==(s|0)){break}t=c[u>>2]|0;if((t|0)==0){break b}else{}}r=Kn(d,g,32)|0;if(p){break}s=Qn(d,r&65535)|0;r=(s&65535|0)==0?r:s&65535}}while(0);b[l+(q<<1)>>1]=r;q=q+1|0;}while(q>>>0<65536);c[e>>2]=65536;if((j|0)!=0){IW(j)}if(!n){IW(h)}if(m){x=l;i=f;return x|0}IW(o);x=l;i=f;return x|0}function uy(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var 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;j=i;p=i;i=i+8|0;r=p;k=i;i=i+8|0;g=i;i=i+8|0;h=g;u=i;i=i+16|0;l=u;s=i;i=i+16|0;m=s;q=i;i=i+8|0;c[u>>2]=13;t=l+8|0;c[t>>2]=0;c[t+4>>2]=0;c[s>>2]=13;o=m+8|0;c[o>>2]=0;c[o+4>>2]=0;A=c[f+16>>2]|0;n=b+4|0;c[n>>2]=A;c[b>>2]=ye(A,4)|0;if((c[n>>2]|0)<=0){i=j;return}v=q+4|0;w=(e|0)==0;x=0;a:while(1){bv(f,x,l)|0;Nf(l,d,m,0)|0;do{if((c[s>>2]|0)==7){do{if((c[u>>2]|0)==9){z=t;A=c[z>>2]|0;z=c[z+4>>2]|0}else{if(w){A=x;z=999999;break}A=x;z=(c[e>>2]|0)+1e5|0}}while(0);y=$u(f,x)|0;c[q>>2]=A;c[v>>2]=z;z=c[s>>2]|0;if((z|0)!=7){k=9;break a}A=c[o>>2]|0;$W(p|0,q|0,8)|0;y=Ux(d,y,r,A)|0;c[(c[b>>2]|0)+(x<<2)>>2]=y;y=c[(c[b>>2]|0)+(x<<2)>>2]|0;if((y|0)==0){break}if((a[y+172|0]&1)!=0){break}z=y+168|0;A=(c[z>>2]|0)+ -1|0;c[z>>2]=A;if((A|0)==0){fd[c[(c[y>>2]|0)+20>>2]&511](y)}c[(c[b>>2]|0)+(x<<2)>>2]=0}else{Qe(-1,166064,k);c[(c[b>>2]|0)+(x<<2)>>2]=0}}while(0);Of(l);Of(m);x=x+1|0;if((x|0)>=(c[n>>2]|0)){k=17;break}}if((k|0)==9){c[g>>2]=z;c[h+4>>2]=7;Qe(0,166192,h);tc()}else if((k|0)==17){i=j;return}}function vy(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0;b=i;d=a+4|0;f=c[a>>2]|0;if((c[d>>2]|0)>0){e=0}else{Fe(f);i=b;return}do{f=c[f+(e<<2)>>2]|0;do{if((f|0)!=0){h=f+168|0;g=(c[h>>2]|0)+ -1|0;c[h>>2]=g;if((g|0)!=0){break}fd){y=c[d>>2]|0;if((y+ -1|0)>>>0>=2){break}if((z|0)==1){J=+(c[m>>2]|0)}else{J=+h[m>>3]}h[x+(u<<3)>>3]=J;if((y|0)==1){J=+(c[t>>2]|0)}else{J=+h[t>>3]}h[v+(u<<3)>>3]=J}}while(0);Of(k);Of(l);u=u+1|0;if((u|0)>=(w|0)){break a}y=c[q>>2]|0}if((v|0)==25){c[g>>2]=y;c[j+4>>2]=6;Qe(0,172720,j);tc()}else if((v|0)==27){c[s>>2]=y;c[r+4>>2]=6;Qe(0,172720,r);tc()}}}while(0);Of(f);Of(p);I=B;i=n;return I|0}function Oy(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,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0;f=i;v=i;i=i+8|0;u=i;i=i+8|0;g=i;i=i+8|0;j=g;t=i;i=i+8|0;m=i;i=i+8|0;n=m;o=i;i=i+8|0;q=i;i=i+8|0;s=q;x=i;i=i+8|0;r=x;y=i;i=i+8|0;z=i;i=i+8|0;w=i;i=i+8|0;l=i;i=i+16|0;e=l;c[l>>2]=13;k=e+8|0;c[k>>2]=0;c[k+4>>2]=0;if((c[b+12>>2]|0)!=4){Qe(-1,169016,w);d=0;i=f;return d|0}ut(b,1,e)|0;w=Jy(e,d)|0;do{if((w|0)==0){Qe(-1,169040,z)}else{Of(e);if((c[(ut(b,2,e)|0)>>2]|0)!=1){Qe(-1,169088,y);fdfd[c[(c[d>>2]|0)+12>>2]&511](d);a:do{if((r|0)>=0){if((b|0)>0){p=0}else{u=0;while(1){v=da(u,b)|0;w=(c[s>>2]|0)+v|0;x=c[l>>2]|0;if((x|0)!=8){break}x=c[k>>2]|0;do{if(jd[c[(c[x>>2]|0)+88>>2]&511](x)|0){w=sd[c[(c[x>>2]|0)+92>>2]&127](x,b,w)|0;if((w|0)>=(b|0)){break}do{Qe(-1,169208,t);a[(c[s>>2]|0)+(w+v)|0]=0;w=w+1|0;}while((w|0)<(b|0))}}while(0);if((u|0)<(r|0)){u=u+1|0}else{break a}}d=m;c[d>>2]=x;d=n+4|0;c[d>>2]=8;d=172720;Qe(0,d,n);tc()}while(1){t=da(p,b)|0;u=c[s>>2]|0;x=c[l>>2]|0;if((x|0)!=8){break}x=c[k>>2]|0;b:do{if(jd[c[(c[x>>2]|0)+88>>2]&511](x)|0){w=sd[c[(c[x>>2]|0)+92>>2]&127](x,b,u+t|0)|0;h=22}else{w=0;do{v=jd[c[(c[x>>2]|0)+20>>2]&511](x)|0;if((v|0)==-1){h=22;break b}a[u+(w+t)|0]=v;w=w+1|0;}while((w|0)<(b|0))}}while(0);do{if((h|0)==22){h=0;if((w|0)>=(b|0)){break}do{Qe(-1,169208,o);a[(c[s>>2]|0)+(w+t)|0]=0;w=w+1|0;}while((w|0)<(b|0))}}while(0);if((p|0)<(r|0)){p=p+1|0}else{break a}}d=m;c[d>>2]=x;d=n+4|0;c[d>>2]=8;d=172720;Qe(0,d,n);tc()}}while(0);l=c[l>>2]|0;if((l|0)==8){h=c[k>>2]|0;fd[c[(c[h>>2]|0)+16>>2]&511](h);h=40;break}else{c[g>>2]=l;c[j+4>>2]=8;Qe(0,172720,j);tc()}}else{Qe(-1,169344,v);h=41}}while(0);if((h|0)==40){Of(e);d=q;i=f;return d|0}else if((h|0)==41){if((q|0)==0){break}fd[c[(c[q>>2]|0)+4>>2]&511](q);break}}}while(0);Of(e);d=0;i=f;return d|0}function Py(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;f=i;g=i;i=i+8|0;k=i;i=i+8|0;l=k;h=i;i=i+8|0;n=i;i=i+8|0;m=i;i=i+16|0;e=m;c[m>>2]=13;j=e+8|0;c[j>>2]=0;c[j+4>>2]=0;if((c[b+12>>2]|0)!=4){Qe(-1,169464,n);n=0;i=f;return n|0}do{if((c[(ut(b,1,e)|0)>>2]|0)==4){h=FW(32)|0;m=c[m>>2]|0;if((m|0)!=4){c[k>>2]=m;c[l+4>>2]=4;Qe(0,172720,l);tc()}fe(h,c[j>>2]|0);Of(e);ut(b,2,e)|0;j=Jy(e,d)|0;do{if((j|0)==0){Qe(-1,169536,g)}else{Of(e);ut(b,3,e)|0;b=EH(e)|0;if((b|0)==0){fd[c[(c[j>>2]|0)+4>>2]&511](j);break}Of(e);n=FW(20)|0;c[n>>2]=169392;c[n+4>>2]=h;c[n+8>>2]=j;c[n+12>>2]=b;a[n+16|0]=(te(h,169456)|0)==0|0;i=f;return n|0}}while(0);if((h|0)==0){break}ke(h);HW(h)}else{Qe(-1,169496,h)}}while(0);Of(e);n=0;i=f;return n|0}function Qy(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,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;g=i;k=i;i=i+8|0;m=i;i=i+8|0;n=m;u=i;i=i+8|0;s=i;i=i+8|0;t=s;x=i;i=i+8|0;w=x;z=i;i=i+8|0;y=z;A=i;i=i+8|0;B=i;i=i+8|0;e=i;i=i+128|0;r=i;i=i+16|0;j=r;p=i;i=i+16|0;l=p;c[r>>2]=13;q=j+8|0;c[q>>2]=0;c[q+4>>2]=0;c[p>>2]=13;o=l+8|0;c[o>>2]=0;c[o+4>>2]=0;if(((c[b+12>>2]|0)+ -4|0)>>>0>=2){Qe(-1,169664,B);B=0;i=g;return B|0}a:do{if((c[(ut(b,1,j)|0)>>2]|0)==6){A=c[r>>2]|0;if((A|0)!=6){c[z>>2]=A;c[y+4>>2]=6;Qe(0,172720,y);tc()}y=c[(c[q>>2]|0)+12>>2]|0;if((y|0)>32){c[x>>2]=y;c[w+4>>2]=32;Qe(-1,169720,w);w=32;v=10}else{if((y|0)>0){w=y;v=10}else{h=0;f=y}}b:do{if((v|0)==10){v=0;while(1){x=c[r>>2]|0;if((x|0)!=6){v=12;break}if((c[(ut(c[q>>2]|0,v,l)|0)>>2]|0)!=4){v=14;break}y=FW(32)|0;x=c[p>>2]|0;if((x|0)!=4){v=16;break}fe(y,c[o>>2]|0);c[e+(v<<2)>>2]=y;Of(l);v=v+1|0;if((v|0)>=(w|0)){h=1;f=w;break b}}if((v|0)==12){c[s>>2]=x;c[t+4>>2]=6;Qe(0,172720,t);tc()}else if((v|0)==14){Qe(-1,169688,u);Of(l);break a}else if((v|0)==16){c[m>>2]=x;c[n+4>>2]=4;Qe(0,172720,n);tc()}}}while(0);Of(j);ut(b,2,j)|0;l=Jy(j,d)|0;do{if((l|0)==0){Qe(-1,169776,k)}else{Of(j);ut(b,3,j)|0;k=EH(j)|0;if((k|0)==0){fd[c[(c[l>>2]|0)+4>>2]&511](l);break}Of(j);j=FW(148)|0;c[j>>2]=169600;c[j+4>>2]=f;c[j+136>>2]=l;c[j+140>>2]=k;k=j+144|0;a[k]=1;if(h){h=j+8|0;b=0;do{B=c[e+(b<<2)>>2]|0;c[h+(b<<2)>>2]=B;if((te(B,169456)|0)!=0){a[k]=0}b=b+1|0;}while((b|0)<(f|0))}B=j;i=g;return B|0}}while(0);if(h){h=0}else{break}do{k=c[e+(h<<2)>>2]|0;if((k|0)!=0){ke(k);HW(k)}h=h+1|0;}while((h|0)<(f|0))}else{Qe(-1,169688,A)}}while(0);Of(j);B=0;i=g;return B|0}function Ry(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0;d=i;f=i;i=i+8|0;h=i;i=i+8|0;j=i;i=i+16|0;e=j;c[j>>2]=13;j=e+8|0;c[j>>2]=0;c[j+4>>2]=0;j=c[a+12>>2]|0;if((j|0)==2){g=3}else if((j|0)==1){e=0}else{Qe(-1,169896,h);b=0;i=d;return b|0}do{if((g|0)==3){ut(a,1,e)|0;g=Jy(e,b)|0;if((g|0)!=0){Of(e);e=g;break}Qe(-1,169920,f);Of(e);b=0;i=d;return b|0}}while(0);b=FW(8)|0;c[b>>2]=169832;c[b+4>>2]=e;i=d;return b|0}function Sy(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0;e=i;if((jd[c[(c[a>>2]|0)+44>>2]&511](a)|0)>0){f=0}else{i=e;return}do{h[b+(f<<3)>>3]=0.0;h[d+(f<<3)>>3]=1.0;f=f+1|0;}while((f|0)<(jd[c[(c[a>>2]|0)+44>>2]&511](a)|0));i=e;return}function Ty(a){a=a|0;c[a>>2]=168128;i=i;return}function Uy(a){a=a|0;var b=0;b=i;HW(a);i=b;return}function Vy(a){a=a|0;var b=0;b=i;a=FW(4)|0;c[a>>2]=168128;i=b;return a|0}function Wy(a,b,d){a=a|0;b=b|0;d=d|0;b=c[b>>2]|0;if((b|0)<0){b=0}else{b=(b|0)>65536?65536:b}c[d>>2]=b;i=i;return}function Xy(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;a=i;$W(c|0,b|0,d|0)|0;i=a;return}function Yy(a,b,d){a=a|0;b=b|0;d=d|0;b=c[b>>2]|0;if((b|0)<0){b=0}else{b=(b|0)>65536?65536:b}c[d+8>>2]=b;c[d+4>>2]=b;c[d>>2]=b;i=i;return}function Zy(a,b,e,f){a=a|0;b=b|0;e=e|0;f=f|0;var g=0,h=0;a=i;if((f|0)>0){g=0}else{i=a;return}do{h=d[b+g|0]|0;c[e+(g<<2)>>2]=h<<8|h|h<<16;g=g+1|0;}while((g|0)<(f|0));i=a;return}function _y(a,b,d){a=a|0;b=b|0;d=d|0;c[d+8>>2]=0;c[d+4>>2]=0;c[d>>2]=0;b=65536-(c[b>>2]|0)|0;if((b|0)<0){b=0}else{b=(b|0)>65536?65536:b}c[d+12>>2]=b;i=i;return}function $y(a,b){a=a|0;b=b|0;c[b>>2]=0;i=i;return}function az(a){a=a|0;var b=0;b=i;HW(a);i=b;return}function bz(a){a=a|0;var b=0,d=0,e=0;d=i;b=FW(88)|0;c[b>>2]=168200;e=b+32|0;bX(e|0,0,16)|0;h[b+8>>3]=+h[a+8>>3];h[b+16>>3]=+h[a+16>>3];h[b+24>>3]=+h[a+24>>3];h[e>>3]=+h[a+32>>3];h[b+40>>3]=+h[a+40>>3];h[b+48>>3]=+h[a+48>>3];h[b+56>>3]=+h[a+56>>3];i=d;return b|0}function cz(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0;e=i;g=i;i=i+16|0;f=g;Gd[c[(c[a>>2]|0)+20>>2]&255](a,b,f);b=~~(+(c[g>>2]|0)*.299+ +(c[f+4>>2]|0)*.587+ +(c[f+8>>2]|0)*.114+.5);if((b|0)<0){f=0;g=d;c[g>>2]=f;i=e;return}f=(b|0)>65536?65536:b;g=d;c[g>>2]=f;i=e;return}function dz(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0.0,g=0.0,j=0.0,k=0.0;e=i;g=+U(+(+(c[b>>2]|0)*152587890625.0e-16),+(+h[a+56>>3]));j=g*+h[a+8>>3];f=g*+h[a+16>>3];g=g*+h[a+24>>3];k=+h[a+64>>3]*(j*3.240449+f*-1.537136+g*-.498531);if(k<0.0){k=0.0}else{k=k>1.0?1.0:k}c[d>>2]=~~(+T(+k)*65536.0);k=(j*-.969265+f*1.876011+g*.041556)*+h[a+72>>3];if(k<0.0){k=0.0}else{k=k>1.0?1.0:k}c[d+4>>2]=~~(+T(+k)*65536.0);f=(j*.055643+f*-.204026+g*1.057229)*+h[a+80>>3];if(f<0.0){k=0.0;k=+T(+k);k=k*65536.0;a=~~k;b=d+8|0;c[b>>2]=a;i=e;return}k=f>1.0?1.0:f;k=+T(+k);k=k*65536.0;a=~~k;b=d+8|0;c[b>>2]=a;i=e;return}function ez(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0;e=i;g=i;i=i+16|0;f=g;Gd[c[(c[a>>2]|0)+20>>2]&255](a,b,f);b=65536-(c[g>>2]|0)|0;if((b|0)<0){b=0}else{b=(b|0)>65536?65536:b}a=65536-(c[f+4>>2]|0)|0;if((a|0)<0){a=0}else{a=(a|0)>65536?65536:a}f=65536-(c[f+8>>2]|0)|0;if((f|0)<0){f=0}else{f=(f|0)>65536?65536:f}g=(a|0)<(b|0)?a:b;g=(f|0)<(g|0)?f:g;c[d>>2]=b-g;c[d+4>>2]=a-g;c[d+8>>2]=f-g;c[d+12>>2]=g;i=e;return}function fz(a,b){a=a|0;b=b|0;c[b>>2]=0;i=i;return}function gz(a){a=a|0;c[a>>2]=168336;i=i;return}function hz(a){a=a|0;var b=0;b=i;HW(a);i=b;return}function iz(a){a=a|0;var b=0;b=i;a=FW(4)|0;c[a>>2]=168336;i=b;return a|0}function jz(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;a=i;b=~~(+(c[b>>2]|0)*.3+ +(c[b+4>>2]|0)*.59+ +(c[b+8>>2]|0)*.11+.5);if((b|0)<0){e=0;b=d;c[b>>2]=e;i=a;return}b=(b|0)>65536?65536:b;e=d;c[e>>2]=b;i=a;return}function kz(b,c,e,f){b=b|0;c=c|0;e=e|0;f=f|0;var g=0,h=0;b=i;if((f|0)>0){g=0}else{i=b;return}do{h=g*3|0;a[e+g|0]=(((d[c+(h+1)|0]|0)*38469|0)+((d[c+h|0]|0)*19595|0)+((d[c+(h+2)|0]|0)*7472|0)|0)>>>16;g=g+1|0;}while((g|0)<(f|0));i=b;return}function lz(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;a=i;e=c[b>>2]|0;if((e|0)<0){e=0}else{e=(e|0)>65536?65536:e}c[d>>2]=e;e=c[b+4>>2]|0;if((e|0)<0){e=0}else{e=(e|0)>65536?65536:e}c[d+4>>2]=e;b=c[b+8>>2]|0;if((b|0)<0){b=0;e=d+8|0;c[e>>2]=b;i=a;return}b=(b|0)>65536?65536:b;e=d+8|0;c[e>>2]=b;i=a;return}function mz(a,b,e,f){a=a|0;b=b|0;e=e|0;f=f|0;var g=0;a=i;if((f|0)>0){g=0}else{i=a;return}while(1){c[e+(g<<2)>>2]=(d[b+1|0]|0)<<8|(d[b]|0)<<16|(d[b+2|0]|0);g=g+1|0;if((g|0)<(f|0)){b=b+3|0}else{break}}i=a;return}function nz(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;a=65536-(c[b>>2]|0)|0;if((a|0)<0){a=0}else{a=(a|0)>65536?65536:a}e=65536-(c[b+4>>2]|0)|0;if((e|0)<0){e=0}else{e=(e|0)>65536?65536:e}b=65536-(c[b+8>>2]|0)|0;if((b|0)<0){b=0}else{b=(b|0)>65536?65536:b}f=(e|0)<(a|0)?e:a;f=(b|0)<(f|0)?b:f;c[d>>2]=a-f;c[d+4>>2]=e-f;c[d+8>>2]=b-f;c[d+12>>2]=f;i=i;return}function oz(a,b){a=a|0;b=b|0;c[b>>2]=0;c[b+4>>2]=0;c[b+8>>2]=0;i=i;return}function pz(a){a=a|0;var b=0;b=i;HW(a);i=b;return}function qz(a){a=a|0;var b=0,d=0,e=0;d=i;b=FW(176)|0;c[b>>2]=168408;e=b+32|0;bX(e|0,0,16)|0;h[b+8>>3]=+h[a+8>>3];h[b+16>>3]=+h[a+16>>3];h[b+24>>3]=+h[a+24>>3];h[e>>3]=+h[a+32>>3];h[b+40>>3]=+h[a+40>>3];h[b+48>>3]=+h[a+48>>3];h[b+56>>3]=+h[a+56>>3];h[b+64>>3]=+h[a+64>>3];h[b+72>>3]=+h[a+72>>3];$W(b+80|0,a+80|0,72)|0;i=d;return b|0}function rz(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0;e=i;g=i;i=i+16|0;f=g;Gd[c[(c[a>>2]|0)+20>>2]&255](a,b,f);b=~~(+(c[g>>2]|0)*.299+ +(c[f+4>>2]|0)*.587+ +(c[f+8>>2]|0)*.114+.5);if((b|0)<0){f=0;g=d;c[g>>2]=f;i=e;return}f=(b|0)>65536?65536:b;g=d;c[g>>2]=f;i=e;return}function sz(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0.0,g=0.0,j=0.0,k=0.0,l=0.0;e=i;g=+U(+(+(c[b>>2]|0)*152587890625.0e-16),+(+h[a+56>>3]));j=+U(+(+(c[b+4>>2]|0)*152587890625.0e-16),+(+h[a+64>>3]));f=+U(+(+(c[b+8>>2]|0)*152587890625.0e-16),+(+h[a+72>>3]));l=g*+h[a+80>>3]+j*+h[a+104>>3]+f*+h[a+128>>3];k=g*+h[a+88>>3]+j*+h[a+112>>3]+f*+h[a+136>>3];f=g*+h[a+96>>3]+j*+h[a+120>>3]+f*+h[a+144>>3];j=l*3.240449+k*-1.537136+f*-.498531;g=l*-.969265+k*1.876011+f*.041556;f=l*.055643+k*-.204026+f*1.057229;if(j<0.0){j=0.0}else{j=j>1.0?1.0:j}c[d>>2]=~~(+T(+j)*65536.0);if(g<0.0){g=0.0}else{g=g>1.0?1.0:g}c[d+4>>2]=~~(+T(+g)*65536.0);if(f<0.0){l=0.0;l=+T(+l);l=l*65536.0;a=~~l;b=d+8|0;c[b>>2]=a;i=e;return}l=f>1.0?1.0:f;l=+T(+l);l=l*65536.0;a=~~l;b=d+8|0;c[b>>2]=a;i=e;return}function tz(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0;e=i;g=i;i=i+16|0;f=g;Gd[c[(c[a>>2]|0)+20>>2]&255](a,b,f);b=65536-(c[g>>2]|0)|0;if((b|0)<0){b=0}else{b=(b|0)>65536?65536:b}a=65536-(c[f+4>>2]|0)|0;if((a|0)<0){a=0}else{a=(a|0)>65536?65536:a}f=65536-(c[f+8>>2]|0)|0;if((f|0)<0){f=0}else{f=(f|0)>65536?65536:f}g=(a|0)<(b|0)?a:b;g=(f|0)<(g|0)?f:g;c[d>>2]=b-g;c[d+4>>2]=a-g;c[d+8>>2]=f-g;c[d+12>>2]=g;i=e;return}function uz(a,b){a=a|0;b=b|0;c[b>>2]=0;c[b+4>>2]=0;c[b+8>>2]=0;i=i;return}function vz(a){a=a|0;c[a>>2]=168512;i=i;return}function wz(a){a=a|0;var b=0;b=i;HW(a);i=b;return}function xz(a){a=a|0;var b=0;b=i;a=FW(4)|0;c[a>>2]=168512;i=b;return a|0}function yz(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;a=i;b=~~(+(65536-(c[b+12>>2]|0)|0)- +(c[b>>2]|0)*.3- +(c[b+4>>2]|0)*.59- +(c[b+8>>2]|0)*.11+.5);if((b|0)<0){e=0;b=d;c[b>>2]=e;i=a;return}b=(b|0)>65536?65536:b;e=d;c[e>>2]=b;i=a;return}function zz(a,b,d){a=a|0;b=b|0;d=d|0;var e=0.0,f=0.0,g=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.0,r=0.0,s=0.0,t=0.0,u=0.0,v=0.0,w=0.0,x=0;a=i;h=+(c[b>>2]|0)*152587890625.0e-16;w=+(c[b+4>>2]|0)*152587890625.0e-16;v=+(c[b+8>>2]|0)*152587890625.0e-16;f=+(c[b+12>>2]|0)*152587890625.0e-16;u=1.0-h;q=1.0-w;g=1.0-v;e=1.0-f;r=u*q;p=r*g;o=p*e;p=f*p;r=v*r;s=r*e;r=f*r;u=u*w;t=u*g;n=t*e;u=u*v;m=u*e;q=h*q;k=q*g;l=k*e;k=f*k;q=v*q;j=q*e;w=h*w;g=w*g;h=g*e;e=w*v*e;b=~~((e*.2118+(h*.1804+(u*f*.1333+(m*.9294+(f*t*.1412+(n*.9255+(r*.1098+(s+(o+p*.1373)))))))))*65536.0);if((b|0)<0){b=0}else{b=(b|0)>65536?65536:b}c[d>>2]=b;b=~~((e*.2119+(h*.1922+(f*q*.0745+(j*.651+(k*.0588+(l*.6784+(m*.1098+(r*.102+(s*.949+(o+p*.1216))))))))))*65536.0);if((b|0)<0){b=0}else{b=(b|0)>65536?65536:b}c[d+4>>2]=b;b=~~((e*.2235+(f*g*.0078+(h*.5725+(j*.3137+(k*.1412+(l*.9373+(m*.1412+(n*.549+(o+p*.1255)))))))))*65536.0);if((b|0)<0){x=0;b=d+8|0;c[b>>2]=x;i=a;return}b=(b|0)>65536?65536:b;x=d+8|0;c[x>>2]=b;i=a;return}function Az(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;a=i;e=c[b>>2]|0;if((e|0)<0){e=0}else{e=(e|0)>65536?65536:e}c[d>>2]=e;e=c[b+4>>2]|0;if((e|0)<0){e=0}else{e=(e|0)>65536?65536:e}c[d+4>>2]=e;e=c[b+8>>2]|0;if((e|0)<0){e=0}else{e=(e|0)>65536?65536:e}c[d+8>>2]=e;b=c[b+12>>2]|0;if((b|0)<0){b=0;e=d+12|0;c[e>>2]=b;i=a;return}b=(b|0)>65536?65536:b;e=d+12|0;c[e>>2]=b;i=a;return}function Bz(a,b){a=a|0;b=b|0;c[b>>2]=0;c[b+4>>2]=0;c[b+8>>2]=0;c[b+12>>2]=65536;i=i;return}function Cz(a){a=a|0;var b=0;b=i;HW(a);i=b;return}function Dz(a){a=a|0;var b=0,d=0,e=0;d=i;b=FW(112)|0;c[b>>2]=168584;e=b+32|0;bX(e|0,0,16)|0;h[b+8>>3]=+h[a+8>>3];h[b+16>>3]=+h[a+16>>3];h[b+24>>3]=+h[a+24>>3];h[e>>3]=+h[a+32>>3];h[b+40>>3]=+h[a+40>>3];h[b+48>>3]=+h[a+48>>3];h[b+56>>3]=+h[a+56>>3];h[b+64>>3]=+h[a+64>>3];h[b+72>>3]=+h[a+72>>3];h[b+80>>3]=+h[a+80>>3];h[b+88>>3]=+h[a+88>>3];h[b+96>>3]=+h[a+96>>3];h[b+104>>3]=+h[a+104>>3];i=d;return b|0}function Ez(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0;e=i;g=i;i=i+16|0;f=g;Gd[c[(c[a>>2]|0)+20>>2]&255](a,b,f);b=~~(+(c[g>>2]|0)*.299+ +(c[f+4>>2]|0)*.587+ +(c[f+8>>2]|0)*.114+.5);if((b|0)<0){f=0;g=d;c[g>>2]=f;i=e;return}f=(b|0)>65536?65536:b;g=d;c[g>>2]=f;i=e;return}function Fz(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0.0,g=0.0,j=0.0,k=0.0;e=i;j=(+(c[b>>2]|0)*152587890625.0e-16+16.0)/116.0;f=j+ +(c[b+4>>2]|0)*152587890625.0e-16/500.0;if(f<.20689655172413793){f=(f+-.13793103448275862)*.12841854934601665}else{f=f*f*f}if(j<.20689655172413793){g=(j+-.13793103448275862)*.12841854934601665}else{g=j*j*j}j=j- +(c[b+8>>2]|0)*152587890625.0e-16/200.0;if(j<.20689655172413793){j=(j+-.13793103448275862)*.12841854934601665}else{j=j*j*j}f=f*+h[a+8>>3];g=g*+h[a+16>>3];j=j*+h[a+24>>3];k=+h[a+88>>3]*(f*3.240449+g*-1.537136+j*-.498531);if(k<0.0){k=0.0}else{k=k>1.0?1.0:k}c[d>>2]=~~(+T(+k)*65536.0);k=(f*-.969265+g*1.876011+j*.041556)*+h[a+96>>3];if(k<0.0){k=0.0}else{k=k>1.0?1.0:k}c[d+4>>2]=~~(+T(+k)*65536.0);f=(f*.055643+g*-.204026+j*1.057229)*+h[a+104>>3];if(f<0.0){k=0.0;k=+T(+k);k=k*65536.0;a=~~k;b=d+8|0;c[b>>2]=a;i=e;return}k=f>1.0?1.0:f;k=+T(+k);k=k*65536.0;a=~~k;b=d+8|0;c[b>>2]=a;i=e;return}function Gz(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0;e=i;g=i;i=i+16|0;f=g;Gd[c[(c[a>>2]|0)+20>>2]&255](a,b,f);b=65536-(c[g>>2]|0)|0;if((b|0)<0){b=0}else{b=(b|0)>65536?65536:b}a=65536-(c[f+4>>2]|0)|0;if((a|0)<0){a=0}else{a=(a|0)>65536?65536:a}f=65536-(c[f+8>>2]|0)|0;if((f|0)<0){f=0}else{f=(f|0)>65536?65536:f}g=(a|0)<(b|0)?a:b;g=(f|0)<(g|0)?f:g;c[d>>2]=b-g;c[d+4>>2]=a-g;c[d+8>>2]=f-g;c[d+12>>2]=g;i=e;return}function Hz(a,b){a=a|0;b=b|0;var d=0,e=0.0;d=i;c[b>>2]=0;e=+h[a+56>>3];do{if(e>0.0){c[b+4>>2]=~~(e*65536.0)}else{e=+h[a+64>>3];if(e<0.0){c[b+4>>2]=~~(e*65536.0);break}else{c[b+4>>2]=0;break}}}while(0);e=+h[a+72>>3];if(e>0.0){c[b+8>>2]=~~(e*65536.0);i=d;return}e=+h[a+80>>3];if(e<0.0){c[b+8>>2]=~~(e*65536.0);i=d;return}else{c[b+8>>2]=0;i=d;return}}function Iz(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;h[b>>3]=0.0;h[c>>3]=100.0;d=a+56|0;h[b+8>>3]=+h[d>>3];h[c+8>>3]=+h[a+64>>3]- +h[d>>3];d=a+72|0;h[b+16>>3]=+h[d>>3];h[c+16>>3]=+h[a+80>>3]- +h[d>>3];i=i;return}function Jz(a){a=a|0;var b=0,d=0;b=i;c[a>>2]=168688;d=c[a+8>>2]|0;if((d|0)==0){HW(a);i=b;return}fd[c[(c[d>>2]|0)+4>>2]&511](d);HW(a);i=b;return}function Kz(a){a=a|0;var b=0;b=i;c[a>>2]=168688;a=c[a+8>>2]|0;if((a|0)==0){i=b;return}fdfd[c[(c[d>>2]|0)+4>>2]&511](d)}Fe(c[a+12>>2]|0);HW(a);i=b;return}function Uz(a){a=a|0;var b=0,d=0;b=i;c[a>>2]=168952;d=c[a+4>>2]|0;if((d|0)!=0){fd[c[(c[d>>2]|0)+4>>2]&511](d)}Fe(c[a+12>>2]|0);i=b;return}function Vz(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0;d=i;b=FW(16)|0;e=a+4|0;f=c[e>>2]|0;f=jd[c[(c[f>>2]|0)+8>>2]&511](f)|0;h=a+8|0;g=c[h>>2]|0;c[b>>2]=168952;c[b+4>>2]=f;c[b+8>>2]=g;g=ye(da(jd[c[(c[f>>2]|0)+44>>2]&511](f)|0,g+1|0)|0,1)|0;c[b+12>>2]=g;f=c[a+12>>2]|0;a=(c[h>>2]|0)+1|0;e=c[e>>2]|0;$W(g|0,f|0,da(jd[c[(c[e>>2]|0)+44>>2]&511](e)|0,a)|0)|0;i=d;return b|0}function Wz(a,b,e){a=a|0;b=b|0;e=e|0;var f=0,g=0,j=0,k=0,l=0,m=0,n=0,o=0;j=i;k=i;i=i+256|0;m=i;i=i+256|0;g=i;i=i+128|0;o=a+4|0;f=c[o>>2]|0;n=c[f>>2]|0;l=c[n+16>>2]|0;n=jd[c[n+44>>2]&511](f)|0;o=c[o>>2]|0;Jd[c[(c[o>>2]|0)+52>>2]&63](o,k,m,c[a+8>>2]|0);b=da(~~(+(c[b>>2]|0)*152587890625.0e-16+.5),n)|0;o=c[a+12>>2]|0;if((n|0)>0){a=0}else{o=l;Gd[o&255](f,g,e);i=j;return}do{c[g+(a<<2)>>2]=~~((+h[k+(a<<3)>>3]+ +(d[o+(a+b)|0]|0|0)/255.0*+h[m+(a<<3)>>3])*65536.0);a=a+1|0;}while((a|0)<(n|0));o=l;Gd[o&255](f,g,e);i=j;return}function Xz(a,b,e){a=a|0;b=b|0;e=e|0;var f=0,g=0,j=0,k=0,l=0,m=0,n=0,o=0;j=i;k=i;i=i+256|0;m=i;i=i+256|0;g=i;i=i+128|0;o=a+4|0;f=c[o>>2]|0;n=c[f>>2]|0;l=c[n+20>>2]|0;n=jd[c[n+44>>2]&511](f)|0;o=c[o>>2]|0;Jd[c[(c[o>>2]|0)+52>>2]&63](o,k,m,c[a+8>>2]|0);b=da(~~(+(c[b>>2]|0)*152587890625.0e-16+.5),n)|0;o=c[a+12>>2]|0;if((n|0)>0){a=0}else{o=l;Gd[o&255](f,g,e);i=j;return}do{c[g+(a<<2)>>2]=~~((+h[k+(a<<3)>>3]+ +(d[o+(a+b)|0]|0|0)/255.0*+h[m+(a<<3)>>3])*65536.0);a=a+1|0;}while((a|0)<(n|0));o=l;Gd[o&255](f,g,e);i=j;return}function Yz(b,e,f,g){b=b|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;j=i;l=b+4|0;k=c[l>>2]|0;k=jd[c[(c[k>>2]|0)+44>>2]&511](k)|0;h=ye(g,k)|0;do{if((g|0)>0){b=b+12|0;if((k|0)>0){m=0}else{break}do{n=e+m|0;o=da(m,k)|0;p=0;do{q=(da(d[n]|0,k)|0)+p|0;a[h+(p+o)|0]=a[(c[b>>2]|0)+q|0]|0;p=p+1|0;}while((p|0)<(k|0));m=m+1|0;}while((m|0)<(g|0))}}while(0);q=c[l>>2]|0;Jd[c[(c[q>>2]|0)+32>>2]&63](q,h,f,g);Fe(h);i=j;return}function Zz(a,b,e){a=a|0;b=b|0;e=e|0;var f=0,g=0,j=0,k=0,l=0,m=0,n=0,o=0;j=i;k=i;i=i+256|0;m=i;i=i+256|0;g=i;i=i+128|0;o=a+4|0;f=c[o>>2]|0;n=c[f>>2]|0;l=c[n+24>>2]|0;n=jd[c[n+44>>2]&511](f)|0;o=c[o>>2]|0;Jd[c[(c[o>>2]|0)+52>>2]&63](o,k,m,c[a+8>>2]|0);b=da(~~(+(c[b>>2]|0)*152587890625.0e-16+.5),n)|0;o=c[a+12>>2]|0;if((n|0)>0){a=0}else{o=l;Gd[o&255](f,g,e);i=j;return}do{c[g+(a<<2)>>2]=~~((+h[k+(a<<3)>>3]+ +(d[o+(a+b)|0]|0|0)/255.0*+h[m+(a<<3)>>3])*65536.0);a=a+1|0;}while((a|0)<(n|0));o=l;Gd[o&255](f,g,e);i=j;return}function _z(a,b){a=a|0;b=b|0;c[b>>2]=0;i=i;return}function $z(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;h[b>>3]=0.0;h[c>>3]=+(d|0);i=i;return}function aA(a){a=a|0;var b=0,d=0;b=i;c[a>>2]=169392;d=c[a+4>>2]|0;if((d|0)!=0){ke(d);HW(d)}d=c[a+8>>2]|0;if((d|0)!=0){fd[c[(c[d>>2]|0)+4>>2]&511](d)}d=c[a+12>>2]|0;if((d|0)==0){HW(a);i=b;return}fd[c[(c[d>>2]|0)+4>>2]&511](d);HW(a);i=b;return}function bA(a){a=a|0;var b=0,d=0;b=i;c[a>>2]=169392;d=c[a+4>>2]|0;if((d|0)!=0){ke(d);HW(d)}d=c[a+8>>2]|0;if((d|0)!=0){fd[c[(c[d>>2]|0)+4>>2]&511](d)}a=c[a+12>>2]|0;if((a|0)==0){i=b;return}fd[c[(c[a>>2]|0)+4>>2]&511](a);i=b;return}function cA(b){b=b|0;var d=0,e=0,f=0,g=0;e=i;d=FW(20)|0;g=c[b+4>>2]|0;f=FW(32)|0;ie(f,g);g=c[b+8>>2]|0;g=jd[c[(c[g>>2]|0)+8>>2]&511](g)|0;b=c[b+12>>2]|0;b=jd[c[(c[b>>2]|0)+8>>2]&511](b)|0;c[d>>2]=169392;c[d+4>>2]=f;c[d+8>>2]=g;c[d+12>>2]=b;a[d+16|0]=(te(f,169456)|0)==0|0;i=e;return d|0}function dA(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,j=0;f=i;j=i;i=i+8|0;g=i;i=i+256|0;e=i;i=i+128|0;h[j>>3]=+(c[b>>2]|0)*152587890625.0e-16;b=c[a+12>>2]|0;Gd[c[(c[b>>2]|0)+16>>2]&255](b,j,g);a=a+8|0;b=c[a>>2]|0;if((jd[c[(c[b>>2]|0)+44>>2]&511](b)|0)>0){b=0}else{j=a;j=c[j>>2]|0;b=j;b=c[b>>2]|0;b=b+16|0;b=c[b>>2]|0;Gd[b&255](j,e,d);i=f;return}do{c[e+(b<<2)>>2]=~~(+h[g+(b<<3)>>3]*65536.0);b=b+1|0;j=c[a>>2]|0;}while((b|0)<(jd[c[(c[j>>2]|0)+44>>2]&511](j)|0));j=a;j=c[j>>2]|0;b=j;b=c[b>>2]|0;b=b+16|0;b=c[b>>2]|0;Gd[b&255](j,e,d);i=f;return}function eA(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,j=0;f=i;j=i;i=i+8|0;g=i;i=i+256|0;e=i;i=i+128|0;h[j>>3]=+(c[b>>2]|0)*152587890625.0e-16;b=c[a+12>>2]|0;Gd[c[(c[b>>2]|0)+16>>2]&255](b,j,g);a=a+8|0;b=c[a>>2]|0;if((jd[c[(c[b>>2]|0)+44>>2]&511](b)|0)>0){b=0}else{j=a;j=c[j>>2]|0;b=j;b=c[b>>2]|0;b=b+20|0;b=c[b>>2]|0;Gd[b&255](j,e,d);i=f;return}do{c[e+(b<<2)>>2]=~~(+h[g+(b<<3)>>3]*65536.0);b=b+1|0;j=c[a>>2]|0;}while((b|0)<(jd[c[(c[j>>2]|0)+44>>2]&511](j)|0));j=a;j=c[j>>2]|0;b=j;b=c[b>>2]|0;b=b+20|0;b=c[b>>2]|0;Gd[b&255](j,e,d);i=f;return}function fA(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,j=0;f=i;j=i;i=i+8|0;g=i;i=i+256|0;e=i;i=i+128|0;h[j>>3]=+(c[b>>2]|0)*152587890625.0e-16;b=c[a+12>>2]|0;Gd[c[(c[b>>2]|0)+16>>2]&255](b,j,g);a=a+8|0;b=c[a>>2]|0;if((jd[c[(c[b>>2]|0)+44>>2]&511](b)|0)>0){b=0}else{j=a;j=c[j>>2]|0;b=j;b=c[b>>2]|0;b=b+24|0;b=c[b>>2]|0;Gd[b&255](j,e,d);i=f;return}do{c[e+(b<<2)>>2]=~~(+h[g+(b<<3)>>3]*65536.0);b=b+1|0;j=c[a>>2]|0;}while((b|0)<(jd[c[(c[j>>2]|0)+44>>2]&511](j)|0));j=a;j=c[j>>2]|0;b=j;b=c[b>>2]|0;b=b+24|0;b=c[b>>2]|0;Gd[b&255](j,e,d);i=f;return}function gA(a,b){a=a|0;b=b|0;c[b>>2]=65536;i=i;return}function hA(a){a=a|0;var b=0,d=0,e=0,f=0,g=0;b=i;c[a>>2]=169600;d=a+4|0;e=c[d>>2]|0;if((e|0)>0){f=0;do{g=c[a+8+(f<<2)>>2]|0;if((g|0)!=0){ke(g);HW(g);e=c[d>>2]|0}f=f+1|0;}while((f|0)<(e|0))}d=c[a+136>>2]|0;if((d|0)!=0){fd[c[(c[d>>2]|0)+4>>2]&511](d)}d=c[a+140>>2]|0;if((d|0)==0){HW(a);i=b;return}fd[c[(c[d>>2]|0)+4>>2]&511](d);HW(a);i=b;return}function iA(a){a=a|0;var b=0,d=0,e=0,f=0,g=0;b=i;c[a>>2]=169600;d=a+4|0;e=c[d>>2]|0;if((e|0)>0){f=0;do{g=c[a+8+(f<<2)>>2]|0;if((g|0)!=0){ke(g);HW(g);e=c[d>>2]|0}f=f+1|0;}while((f|0)<(e|0))}d=c[a+136>>2]|0;if((d|0)!=0){fd[c[(c[d>>2]|0)+4>>2]&511](d)}a=c[a+140>>2]|0;if((a|0)==0){i=b;return}fd[c[(c[a>>2]|0)+4>>2]&511](a);i=b;return}function jA(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0;e=i;d=FW(148)|0;g=b+4|0;h=c[g>>2]|0;j=c[b+136>>2]|0;j=jd[c[(c[j>>2]|0)+8>>2]&511](j)|0;f=c[b+140>>2]|0;f=jd[c[(c[f>>2]|0)+8>>2]&511](f)|0;c[d>>2]=169600;c[d+4>>2]=h;c[d+136>>2]=j;c[d+140>>2]=f;f=d+144|0;a[f]=0;if((c[g>>2]|0)<=0){h=b+144|0;h=a[h]|0;h=h&1;j=f;a[j]=h;i=e;return d|0}h=d+8|0;j=0;do{l=c[b+8+(j<<2)>>2]|0;k=FW(32)|0;ie(k,l);c[h+(j<<2)>>2]=k;j=j+1|0;}while((j|0)<(c[g>>2]|0));k=b+144|0;k=a[k]|0;k=k&1;l=f;a[l]=k;i=e;return d|0}function kA(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,j=0,k=0,l=0;e=i;k=i;i=i+256|0;f=i;i=i+256|0;g=i;i=i+128|0;j=c[a+4>>2]|0;if((j|0)>0){l=0;do{h[k+(l<<3)>>3]=+(c[b+(l<<2)>>2]|0)*152587890625.0e-16;l=l+1|0;}while((l|0)<(j|0))}j=c[a+140>>2]|0;Gd[c[(c[j>>2]|0)+16>>2]&255](j,k,f);j=a+136|0;l=c[j>>2]|0;if((jd[c[(c[l>>2]|0)+44>>2]&511](l)|0)>0){k=0}else{l=j;l=c[l>>2]|0;b=l;b=c[b>>2]|0;b=b+16|0;b=c[b>>2]|0;Gd[b&255](l,g,d);i=e;return}do{c[g+(k<<2)>>2]=~~(+h[f+(k<<3)>>3]*65536.0);k=k+1|0;l=c[j>>2]|0;}while((k|0)<(jd[c[(c[l>>2]|0)+44>>2]&511](l)|0));l=j;l=c[l>>2]|0;b=l;b=c[b>>2]|0;b=b+16|0;b=c[b>>2]|0;Gd[b&255](l,g,d);i=e;return}function lA(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,j=0,k=0,l=0;e=i;k=i;i=i+256|0;f=i;i=i+256|0;g=i;i=i+128|0;j=c[a+4>>2]|0;if((j|0)>0){l=0;do{h[k+(l<<3)>>3]=+(c[b+(l<<2)>>2]|0)*152587890625.0e-16;l=l+1|0;}while((l|0)<(j|0))}j=c[a+140>>2]|0;Gd[c[(c[j>>2]|0)+16>>2]&255](j,k,f);j=a+136|0;l=c[j>>2]|0;if((jd[c[(c[l>>2]|0)+44>>2]&511](l)|0)>0){k=0}else{l=j;l=c[l>>2]|0;b=l;b=c[b>>2]|0;b=b+20|0;b=c[b>>2]|0;Gd[b&255](l,g,d);i=e;return}do{c[g+(k<<2)>>2]=~~(+h[f+(k<<3)>>3]*65536.0);k=k+1|0;l=c[j>>2]|0;}while((k|0)<(jd[c[(c[l>>2]|0)+44>>2]&511](l)|0));l=j;l=c[l>>2]|0;b=l;b=c[b>>2]|0;b=b+20|0;b=c[b>>2]|0;Gd[b&255](l,g,d);i=e;return}function mA(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,j=0,k=0,l=0;e=i;k=i;i=i+256|0;f=i;i=i+256|0;g=i;i=i+128|0;j=c[a+4>>2]|0;if((j|0)>0){l=0;do{h[k+(l<<3)>>3]=+(c[b+(l<<2)>>2]|0)*152587890625.0e-16;l=l+1|0;}while((l|0)<(j|0))}j=c[a+140>>2]|0;Gd[c[(c[j>>2]|0)+16>>2]&255](j,k,f);j=a+136|0;l=c[j>>2]|0;if((jd[c[(c[l>>2]|0)+44>>2]&511](l)|0)>0){k=0}else{l=j;l=c[l>>2]|0;b=l;b=c[b>>2]|0;b=b+24|0;b=c[b>>2]|0;Gd[b&255](l,g,d);i=e;return}do{c[g+(k<<2)>>2]=~~(+h[f+(k<<3)>>3]*65536.0);k=k+1|0;l=c[j>>2]|0;}while((k|0)<(jd[c[(c[l>>2]|0)+44>>2]&511](l)|0));l=j;l=c[l>>2]|0;b=l;b=c[b>>2]|0;b=b+24|0;b=c[b>>2]|0;Gd[b&255](l,g,d);i=e;return}function nA(a,b){a=a|0;b=b|0;var d=0,e=0;d=i;a=a+4|0;if((c[a>>2]|0)>0){e=0}else{i=d;return}do{c[b+(e<<2)>>2]=65536;e=e+1|0;}while((e|0)<(c[a>>2]|0));i=d;return}function oA(a){a=a|0;var b=0,d=0;b=i;c[a>>2]=169832;d=c[a+4>>2]|0;if((d|0)==0){HW(a);i=b;return}fd[c[(c[d>>2]|0)+4>>2]&511](d);HW(a);i=b;return}function pA(a){a=a|0;var b=0;b=i;c[a>>2]=169832;a=c[a+4>>2]|0;if((a|0)==0){i=b;return}fdfd[c[(c[d>>2]|0)+4>>2]&511](d);HW(a);i=b;return}function DA(a){a=a|0;var b=0;b=i;c[a>>2]=170352;a=c[a+8>>2]|0;if((a|0)==0){i=b;return}fd[c[(c[a>>2]|0)+4>>2]&511](a);i=b;return}function EA(a){a=a|0;var b=0,d=0,e=0;d=i;b=FW(64)|0;e=c[a+8>>2]|0;e=jd[c[(c[e>>2]|0)+8>>2]&511](e)|0;c[b+4>>2]=2;c[b>>2]=170352;c[b+8>>2]=e;h[b+16>>3]=+h[a+16>>3];h[b+24>>3]=+h[a+24>>3];h[b+32>>3]=+h[a+32>>3];h[b+40>>3]=+h[a+40>>3];h[b+48>>3]=+h[a+48>>3];h[b+56>>3]=+h[a+56>>3];i=d;return b|0}function FA(a){a=a|0;var b=0,d=0;b=i;c[a>>2]=170376;d=c[a+8>>2]|0;if((d|0)==0){HW(a);i=b;return}fd[c[(c[d>>2]|0)+4>>2]&511](d);HW(a);i=b;return}function GA(a){a=a|0;var b=0;b=i;c[a>>2]=170376;a=c[a+8>>2]|0;if((a|0)==0){i=b;return}fd[c[(c[a>>2]|0)+4>>2]&511](a);i=b;return}function HA(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=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.0,K=0,L=0,M=0.0,N=0.0,O=0.0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0.0,Y=0,Z=0,_=0,$=0,aa=0,ba=0,ca=0,da=0,ea=0.0,fa=0,ga=0,ha=0,ia=0,ja=0,ka=0.0,la=0.0,ma=0.0,na=0.0;e=i;o=i;i=i+8|0;k=o;p=i;i=i+8|0;s=i;i=i+16|0;r=s;t=i;i=i+8|0;u=t;v=i;i=i+16|0;w=v;x=i;i=i+8|0;y=x;A=i;i=i+16|0;z=A;B=i;i=i+8|0;C=B;D=i;i=i+16|0;E=D;G=i;i=i+8|0;F=G;I=i;i=i+16|0;H=I;K=i;i=i+8|0;L=K;Q=i;i=i+16|0;P=Q;R=i;i=i+8|0;S=R;T=i;i=i+16|0;U=T;W=i;i=i+8|0;V=W;Z=i;i=i+16|0;Y=Z;_=i;i=i+8|0;$=_;ba=i;i=i+16|0;aa=ba;da=i;i=i+8|0;ca=da;ga=i;i=i+16|0;fa=ga;ja=i;i=i+8|0;ha=ja;q=i;i=i+128|0;d=q;j=i;i=i+16|0;n=j;ia=i;i=i+16|0;m=ia;c[j>>2]=13;l=n+8|0;c[l>>2]=0;c[l+4>>2]=0;c[ia>>2]=13;ia=m+8|0;c[ia>>2]=0;c[ia+4>>2]=0;do{if((c[(Yu(a,170840,n,0)|0)>>2]|0)==6){ia=c[j>>2]|0;if((ia|0)!=6){c[ja>>2]=ia;c[ha+4>>2]=6;Qe(0,172720,ha);tc()}ha=c[l>>2]|0;if((c[ha+12>>2]|0)!=4){J=0.0;M=1.0;N=0.0;O=1.0;break}ia=ut(ha,0,m)|0;ha=c[ia>>2]|0;if((ha+ -1|0)>>>0>=2){c[ga>>2]=ha;c[fa+4>>2]=1;c[fa+8>>2]=2;Qe(0,172792,fa);tc()}fa=ia+8|0;if((ha|0)==1){J=+(c[fa>>2]|0)}else{J=+h[fa>>3]}Of(m);fa=c[j>>2]|0;if((fa|0)!=6){c[da>>2]=fa;c[ca+4>>2]=6;Qe(0,172720,ca);tc()}da=ut(c[l>>2]|0,1,m)|0;ca=c[da>>2]|0;if((ca+ -1|0)>>>0>=2){c[ba>>2]=ca;c[aa+4>>2]=1;c[aa+8>>2]=2;Qe(0,172792,aa);tc()}aa=da+8|0;if((ca|0)==1){M=+(c[aa>>2]|0)}else{M=+h[aa>>3]}Of(m);aa=c[j>>2]|0;if((aa|0)!=6){c[_>>2]=aa;c[$+4>>2]=6;Qe(0,172720,$);tc()}$=ut(c[l>>2]|0,2,m)|0;_=c[$>>2]|0;if((_+ -1|0)>>>0>=2){c[Z>>2]=_;c[Y+4>>2]=1;c[Y+8>>2]=2;Qe(0,172792,Y);tc()}Y=$+8|0;if((_|0)==1){N=+(c[Y>>2]|0)}else{N=+h[Y>>3]}Of(m);Y=c[j>>2]|0;if((Y|0)!=6){c[W>>2]=Y;c[V+4>>2]=6;Qe(0,172720,V);tc()}W=ut(c[l>>2]|0,3,m)|0;V=c[W>>2]|0;if((V+ -1|0)>>>0>=2){c[T>>2]=V;c[U+4>>2]=1;c[U+8>>2]=2;Qe(0,172792,U);tc()}T=W+8|0;if((V|0)==1){O=+(c[T>>2]|0)}else{O=+h[T>>3]}Of(m)}else{J=0.0;M=1.0;N=0.0;O=1.0}}while(0);Of(n);do{if((c[(Yu(a,168496,n,0)|0)>>2]|0)==6){T=c[j>>2]|0;if((T|0)!=6){c[R>>2]=T;c[S+4>>2]=6;Qe(0,172720,S);tc()}R=c[l>>2]|0;if((c[R+12>>2]|0)!=6){ma=0.0;na=0.0;la=1.0;ka=0.0;ea=0.0;X=1.0;break}S=ut(R,0,m)|0;R=c[S>>2]|0;if((R+ -1|0)>>>0>=2){c[Q>>2]=R;c[P+4>>2]=1;c[P+8>>2]=2;Qe(0,172792,P);tc()}P=S+8|0;if((R|0)==1){X=+(c[P>>2]|0)}else{X=+h[P>>3]}Of(m);P=c[j>>2]|0;if((P|0)!=6){c[K>>2]=P;c[L+4>>2]=6;Qe(0,172720,L);tc()}L=ut(c[l>>2]|0,1,m)|0;K=c[L>>2]|0;if((K+ -1|0)>>>0>=2){c[I>>2]=K;c[H+4>>2]=1;c[H+8>>2]=2;Qe(0,172792,H);tc()}H=L+8|0;if((K|0)==1){ea=+(c[H>>2]|0)}else{ea=+h[H>>3]}Of(m);H=c[j>>2]|0;if((H|0)!=6){c[G>>2]=H;c[F+4>>2]=6;Qe(0,172720,F);tc()}G=ut(c[l>>2]|0,2,m)|0;F=c[G>>2]|0;if((F+ -1|0)>>>0>=2){c[D>>2]=F;c[E+4>>2]=1;c[E+8>>2]=2;Qe(0,172792,E);tc()}D=G+8|0;if((F|0)==1){ka=+(c[D>>2]|0)}else{ka=+h[D>>3]}Of(m);D=c[j>>2]|0;if((D|0)!=6){c[B>>2]=D;c[C+4>>2]=6;Qe(0,172720,C);tc()}C=ut(c[l>>2]|0,3,m)|0;B=c[C>>2]|0;if((B+ -1|0)>>>0>=2){c[A>>2]=B;c[z+4>>2]=1;c[z+8>>2]=2;Qe(0,172792,z);tc()}z=C+8|0;if((B|0)==1){la=+(c[z>>2]|0)}else{la=+h[z>>3]}Of(m);z=c[j>>2]|0;if((z|0)!=6){c[x>>2]=z;c[y+4>>2]=6;Qe(0,172720,y);tc()}y=ut(c[l>>2]|0,4,m)|0;x=c[y>>2]|0;if((x+ -1|0)>>>0>=2){c[v>>2]=x;c[w+4>>2]=1;c[w+8>>2]=2;Qe(0,172792,w);tc()}v=y+8|0;if((x|0)==1){na=+(c[v>>2]|0)}else{na=+h[v>>3]}Of(m);v=c[j>>2]|0;if((v|0)!=6){c[t>>2]=v;c[u+4>>2]=6;Qe(0,172720,u);tc()}u=ut(c[l>>2]|0,5,m)|0;t=c[u>>2]|0;if((t+ -1|0)>>>0>=2){c[s>>2]=t;c[r+4>>2]=1;c[r+8>>2]=2;Qe(0,172792,r);tc()}r=u+8|0;if((t|0)==1){ma=+(c[r>>2]|0)}else{ma=+h[r>>3]}Of(m)}else{ma=0.0;na=0.0;la=1.0;ka=0.0;ea=0.0;X=1.0}}while(0);Of(n);Yu(a,170848,n,0)|0;a:do{if((c[j>>2]|0)==6){q=c[(c[l>>2]|0)+12>>2]|0;if((q|0)>32){Qe(-1,170864,p);g=92;break}if((q|0)>0){p=6;r=0}else{f=q;break}while(1){if((p|0)!=6){break}ut(c[l>>2]|0,r,m)|0;ja=EH(m)|0;c[d+(r<<2)>>2]=ja;Of(m);r=r+1|0;if((ja|0)==0){g=92;break a}if((r|0)>=(q|0)){f=q;break a}p=c[j>>2]|0}c[o>>2]=p;c[k+4>>2]=6;Qe(0,172720,k);tc()}else{ja=EH(n)|0;c[q>>2]=ja;if((ja|0)==0){g=92}else{f=1}}}while(0);if((g|0)==92){Of(n);ja=0;i=e;return ja|0}Of(n);g=FW(400)|0;c[g+4>>2]=1;c[g+8>>2]=0;c[g>>2]=170824;h[g+184>>3]=J;h[g+192>>3]=N;h[g+200>>3]=M;h[g+208>>3]=O;h[g+216>>3]=X;h[g+224>>3]=ea;h[g+232>>3]=ka;h[g+240>>3]=la;h[g+248>>3]=na;h[g+256>>3]=ma;j=g+392|0;c[j>>2]=f;if((f|0)>0){f=0;do{c[g+264+(f<<2)>>2]=c[d+(f<<2)>>2];f=f+1|0;}while((f|0)<(c[j>>2]|0))}if(MA(g,a,b)|0){ja=g;i=e;return ja|0}if((g|0)==0){ja=0;i=e;return ja|0}fd[c[(c[g>>2]|0)+4>>2]&511](g);ja=0;i=e;return ja|0}function IA(b,d){b=b|0;d=d|0;var e=0,f=0,g=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.0,K=0,L=0,M=0.0,N=0,O=0.0,P=0.0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ba=0.0,ca=0.0;g=i;n=i;i=i+8|0;m=n;o=i;i=i+8|0;p=o;t=i;i=i+8|0;s=t;u=i;i=i+8|0;v=u;y=i;i=i+8|0;w=y;z=i;i=i+8|0;E=i;i=i+8|0;F=E;H=i;i=i+8|0;I=H;Q=i;i=i+8|0;W=i;i=i+8|0;X=W;Z=i;i=i+8|0;Y=Z;_=i;i=i+8|0;$=_;V=i;i=i+8|0;aa=V;A=i;i=i+128|0;e=A;r=i;i=i+16|0;k=r;G=i;i=i+16|0;l=G;U=i;i=i+16|0;K=U;S=i;i=i+16|0;L=S;R=i;i=i+16|0;N=R;D=i;i=i+16|0;B=D;c[r>>2]=13;q=k+8|0;c[q>>2]=0;c[q+4>>2]=0;c[G>>2]=13;C=l+8|0;c[C>>2]=0;c[C+4>>2]=0;do{if((c[(Yu(b,170936,k,0)|0)>>2]|0)==6){T=c[r>>2]|0;if((T|0)!=6){c[V>>2]=T;c[aa+4>>2]=6;Qe(0,172720,aa);tc()}aa=c[q>>2]|0;if((c[aa+12>>2]|0)!=4){break}c[U>>2]=13;V=K+8|0;c[V>>2]=0;c[V+4>>2]=0;c[S>>2]=13;T=L+8|0;c[T>>2]=0;c[T+4>>2]=0;c[R>>2]=13;Q=N+8|0;c[Q>>2]=0;c[Q+4>>2]=0;ut(aa,0,l)|0;aa=c[r>>2]|0;if((aa|0)!=6){c[_>>2]=aa;c[$+4>>2]=6;Qe(0,172720,$);tc()}ut(c[q>>2]|0,1,K)|0;_=c[r>>2]|0;if((_|0)!=6){c[Z>>2]=_;c[Y+4>>2]=6;Qe(0,172720,Y);tc()}ut(c[q>>2]|0,2,L)|0;Y=c[r>>2]|0;if((Y|0)!=6){c[W>>2]=Y;c[X+4>>2]=6;Qe(0,172720,X);tc()}ut(c[q>>2]|0,3,N)|0;W=c[G>>2]|0;do{if((W+ -1|0)>>>0<2){U=c[U>>2]|0;if((U+ -1|0)>>>0>=2){J=0.0;M=0.0;O=0.0;P=0.0;break}S=c[S>>2]|0;if((S+ -1|0)>>>0>=2){J=0.0;M=0.0;O=0.0;P=0.0;break}R=c[R>>2]|0;if((R+ -1|0)>>>0>=2){J=0.0;M=0.0;O=0.0;P=0.0;break}if((W|0)==1){J=+(c[C>>2]|0)}else{J=+h[C>>3]}if((U|0)==1){O=+(c[V>>2]|0)}else{O=+h[V>>3]}if((S|0)==1){M=+(c[T>>2]|0)}else{M=+h[T>>3]}if((R|0)==1){P=+(c[Q>>2]|0);break}else{P=+h[Q>>3];break}}else{J=0.0;M=0.0;O=0.0;P=0.0}}while(0);Of(l);Of(K);Of(L);Of(N);Of(k);do{if((c[(Yu(b,170840,k,0)|0)>>2]|0)==6){K=c[r>>2]|0;if((K|0)!=6){c[H>>2]=K;c[I+4>>2]=6;Qe(0,172720,I);tc()}I=c[q>>2]|0;if((c[I+12>>2]|0)!=2){ba=0.0;ca=1.0;break}c[D>>2]=13;H=B+8|0;c[H>>2]=0;c[H+4>>2]=0;ut(I,0,l)|0;I=c[r>>2]|0;if((I|0)!=6){c[E>>2]=I;c[F+4>>2]=6;Qe(0,172720,F);tc()}ut(c[q>>2]|0,1,B)|0;E=c[G>>2]|0;do{if((E+ -1|0)>>>0<2){D=c[D>>2]|0;if((D+ -1|0)>>>0>=2){ba=0.0;ca=1.0;break}if((E|0)==1){ba=+(c[C>>2]|0)}else{ba=+h[C>>3]}if((D|0)==1){ca=+(c[H>>2]|0);break}else{ca=+h[H>>3];break}}else{ba=0.0;ca=1.0}}while(0);Of(l);Of(B)}else{ba=0.0;ca=1.0}}while(0);Of(k);Yu(b,170848,k,0)|0;a:do{if((c[r>>2]|0)==6){A=c[(c[q>>2]|0)+12>>2]|0;if((A|0)>32){Qe(-1,170864,z);aa=0;i=g;return aa|0}if((A|0)>0){z=6;B=0}else{w=A;break}while(1){if((z|0)!=6){x=48;break}ut(c[q>>2]|0,B,l)|0;aa=EH(l)|0;c[e+(B<<2)>>2]=aa;if((aa|0)==0){break}Of(l);B=B+1|0;if((B|0)>=(A|0)){w=A;break a}z=c[r>>2]|0}if((x|0)==48){c[y>>2]=z;c[w+4>>2]=6;Qe(0,172720,w);tc()}Of(k);Of(l);aa=0;i=g;return aa|0}else{aa=EH(k)|0;c[A>>2]=aa;if((aa|0)!=0){w=1;break}Of(k);aa=0;i=g;return aa|0}}while(0);Of(k);do{if((c[(Yu(b,170992,k,0)|0)>>2]|0)==6){x=c[r>>2]|0;if((x|0)!=6){c[u>>2]=x;c[v+4>>2]=6;Qe(0,172720,v);tc()}u=c[q>>2]|0;if((c[u+12>>2]|0)!=2){j=0;f=0;break}u=ut(u,0,l)|0;v=c[u>>2]|0;if((v|0)!=0){c[t>>2]=v;c[s+4>>2]=0;Qe(0,172720,s);tc()}s=a[u+8|0]&1;Of(l);r=c[r>>2]|0;if((r|0)!=6){c[o>>2]=r;c[p+4>>2]=6;Qe(0,172720,p);tc()}o=ut(c[q>>2]|0,1,l)|0;p=c[o>>2]|0;if((p|0)==0){f=a[o+8|0]&1;Of(l);j=s;break}else{c[n>>2]=p;c[m+4>>2]=0;Qe(0,172720,m);tc()}}else{j=0;f=0}}while(0);Of(k);k=FW(368)|0;c[k+4>>2]=2;c[k+8>>2]=0;c[k>>2]=170920;h[k+184>>3]=J;h[k+192>>3]=O;h[k+200>>3]=M;h[k+208>>3]=P;h[k+216>>3]=ba;h[k+224>>3]=ca;l=k+360|0;c[l>>2]=w;if((w|0)>0){m=0;do{c[k+232+(m<<2)>>2]=c[e+(m<<2)>>2];m=m+1|0;}while((m|0)<(c[l>>2]|0))}a[k+364|0]=j;a[k+365|0]=f;if(MA(k,b,d)|0){aa=k;i=g;return aa|0}if((k|0)==0){aa=0;i=g;return aa|0}fd[c[(c[k>>2]|0)+4>>2]&511](k);aa=0;i=g;return aa|0}}while(0);Qe(-1,170944,Q);aa=0;i=g;return aa|0}function JA(b,d){b=b|0;d=d|0;var e=0,f=0,g=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.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.0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0.0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0.0,_=0,$=0,aa=0,ba=0,ca=0,da=0,ea=0.0,fa=0,ga=0,ha=0,ia=0,ja=0,ka=0,la=0,ma=0,na=0.0,oa=0.0;e=i;n=i;i=i+8|0;m=n;q=i;i=i+8|0;o=q;s=i;i=i+8|0;t=s;v=i;i=i+8|0;u=v;y=i;i=i+8|0;z=y;A=i;i=i+8|0;E=i;i=i+16|0;C=E;F=i;i=i+8|0;G=F;I=i;i=i+16|0;H=I;J=i;i=i+8|0;K=J;ja=i;i=i+8|0;M=i;i=i+16|0;N=M;O=i;i=i+8|0;P=O;R=i;i=i+16|0;Q=R;T=i;i=i+8|0;U=T;V=i;i=i+16|0;W=V;Y=i;i=i+8|0;X=Y;$=i;i=i+16|0;_=$;ba=i;i=i+8|0;aa=ba;ca=i;i=i+16|0;da=ca;fa=i;i=i+8|0;ga=fa;ha=i;i=i+16|0;ia=ha;ka=i;i=i+8|0;ma=ka;B=i;i=i+128|0;f=B;r=i;i=i+16|0;l=r;la=i;i=i+16|0;k=la;c[r>>2]=13;p=l+8|0;c[p>>2]=0;c[p+4>>2]=0;c[la>>2]=13;la=k+8|0;c[la>>2]=0;c[la+4>>2]=0;do{if((c[(Yu(b,170936,l,0)|0)>>2]|0)==6){la=c[r>>2]|0;if((la|0)!=6){c[ka>>2]=la;c[ma+4>>2]=6;Qe(0,172720,ma);tc()}ka=c[p>>2]|0;if((c[ka+12>>2]|0)!=6){break}ka=ut(ka,0,k)|0;ja=c[ka>>2]|0;if((ja+ -1|0)>>>0>=2){c[ha>>2]=ja;c[ia+4>>2]=1;c[ia+8>>2]=2;Qe(0,172792,ia);tc()}ha=ka+8|0;if((ja|0)==1){x=+(c[ha>>2]|0)}else{x=+h[ha>>3]}Of(k);ha=c[r>>2]|0;if((ha|0)!=6){c[fa>>2]=ha;c[ga+4>>2]=6;Qe(0,172720,ga);tc()}ga=ut(c[p>>2]|0,1,k)|0;fa=c[ga>>2]|0;if((fa+ -1|0)>>>0>=2){c[ca>>2]=fa;c[da+4>>2]=1;c[da+8>>2]=2;Qe(0,172792,da);tc()}ca=ga+8|0;if((fa|0)==1){D=+(c[ca>>2]|0)}else{D=+h[ca>>3]}Of(k);ca=c[r>>2]|0;if((ca|0)!=6){c[ba>>2]=ca;c[aa+4>>2]=6;Qe(0,172720,aa);tc()}ba=ut(c[p>>2]|0,2,k)|0;aa=c[ba>>2]|0;if((aa+ -1|0)>>>0>=2){c[$>>2]=aa;c[_+4>>2]=1;c[_+8>>2]=2;Qe(0,172792,_);tc()}_=ba+8|0;if((aa|0)==1){L=+(c[_>>2]|0)}else{L=+h[_>>3]}Of(k);_=c[r>>2]|0;if((_|0)!=6){c[Y>>2]=_;c[X+4>>2]=6;Qe(0,172720,X);tc()}Y=ut(c[p>>2]|0,3,k)|0;X=c[Y>>2]|0;if((X+ -1|0)>>>0>=2){c[V>>2]=X;c[W+4>>2]=1;c[W+8>>2]=2;Qe(0,172792,W);tc()}V=Y+8|0;if((X|0)==1){S=+(c[V>>2]|0)}else{S=+h[V>>3]}Of(k);V=c[r>>2]|0;if((V|0)!=6){c[T>>2]=V;c[U+4>>2]=6;Qe(0,172720,U);tc()}U=ut(c[p>>2]|0,4,k)|0;T=c[U>>2]|0;if((T+ -1|0)>>>0>=2){c[R>>2]=T;c[Q+4>>2]=1;c[Q+8>>2]=2;Qe(0,172792,Q);tc()}Q=U+8|0;if((T|0)==1){Z=+(c[Q>>2]|0)}else{Z=+h[Q>>3]}Of(k);Q=c[r>>2]|0;if((Q|0)!=6){c[O>>2]=Q;c[P+4>>2]=6;Qe(0,172720,P);tc()}P=ut(c[p>>2]|0,5,k)|0;O=c[P>>2]|0;if((O+ -1|0)>>>0>=2){c[M>>2]=O;c[N+4>>2]=1;c[N+8>>2]=2;Qe(0,172792,N);tc()}M=P+8|0;if((O|0)==1){ea=+(c[M>>2]|0)}else{ea=+h[M>>3]}Of(k);Of(l);do{if((c[(Yu(b,170840,l,0)|0)>>2]|0)==6){M=c[r>>2]|0;if((M|0)!=6){c[J>>2]=M;c[K+4>>2]=6;Qe(0,172720,K);tc()}J=c[p>>2]|0;if((c[J+12>>2]|0)!=2){na=0.0;oa=1.0;break}K=ut(J,0,k)|0;J=c[K>>2]|0;if((J+ -1|0)>>>0>=2){c[I>>2]=J;c[H+4>>2]=1;c[H+8>>2]=2;Qe(0,172792,H);tc()}H=K+8|0;if((J|0)==1){na=+(c[H>>2]|0)}else{na=+h[H>>3]}Of(k);H=c[r>>2]|0;if((H|0)!=6){c[F>>2]=H;c[G+4>>2]=6;Qe(0,172720,G);tc()}G=ut(c[p>>2]|0,1,k)|0;F=c[G>>2]|0;if((F+ -1|0)>>>0>=2){c[E>>2]=F;c[C+4>>2]=1;c[C+8>>2]=2;Qe(0,172792,C);tc()}C=G+8|0;if((F|0)==1){oa=+(c[C>>2]|0)}else{oa=+h[C>>3]}Of(k)}else{na=0.0;oa=1.0}}while(0);Of(l);Yu(b,170848,l,0)|0;a:do{if((c[r>>2]|0)==6){B=c[(c[p>>2]|0)+12>>2]|0;if((B|0)>32){Qe(-1,170864,A);ma=0;i=e;return ma|0}if((B|0)>0){A=6;C=0}else{w=B;break}while(1){if((A|0)!=6){w=68;break}ut(c[p>>2]|0,C,k)|0;ma=EH(k)|0;c[f+(C<<2)>>2]=ma;if((ma|0)==0){break}Of(k);C=C+1|0;if((C|0)>=(B|0)){w=B;break a}A=c[r>>2]|0}if((w|0)==68){c[y>>2]=A;c[z+4>>2]=6;Qe(0,172720,z);tc()}Of(l);Of(k);ma=0;i=e;return ma|0}else{ma=EH(l)|0;c[B>>2]=ma;if((ma|0)!=0){w=1;break}Of(l);ma=0;i=e;return ma|0}}while(0);Of(l);do{if((c[(Yu(b,170992,l,0)|0)>>2]|0)==6){y=c[r>>2]|0;if((y|0)!=6){c[v>>2]=y;c[u+4>>2]=6;Qe(0,172720,u);tc()}u=c[p>>2]|0;if((c[u+12>>2]|0)!=2){j=0;g=0;break}u=ut(u,0,k)|0;v=c[u>>2]|0;if((v|0)!=0){c[s>>2]=v;c[t+4>>2]=0;Qe(0,172720,t);tc()}s=a[u+8|0]&1;Of(k);r=c[r>>2]|0;if((r|0)!=6){c[q>>2]=r;c[o+4>>2]=6;Qe(0,172720,o);tc()}p=ut(c[p>>2]|0,1,k)|0;o=c[p>>2]|0;if((o|0)==0){g=a[p+8|0]&1;Of(k);j=s;break}else{c[n>>2]=o;c[m+4>>2]=0;Qe(0,172720,m);tc()}}else{j=0;g=0}}while(0);Of(l);k=FW(384)|0;c[k+4>>2]=3;c[k+8>>2]=0;c[k>>2]=171008;h[k+184>>3]=x;h[k+192>>3]=D;h[k+200>>3]=L;h[k+208>>3]=S;h[k+216>>3]=Z;h[k+224>>3]=ea;h[k+232>>3]=na;h[k+240>>3]=oa;l=k+376|0;c[l>>2]=w;if((w|0)>0){m=0;do{c[k+248+(m<<2)>>2]=c[f+(m<<2)>>2];m=m+1|0;}while((m|0)<(c[l>>2]|0))}a[k+380|0]=j;a[k+381|0]=g;if(MA(k,b,d)|0){ma=k;i=e;return ma|0}if((k|0)==0){ma=0;i=e;return ma|0}fdfd[c[(c[d>>2]|0)+12>>2]&511](d);G=A+4|0;c[G>>2]=0;B=A+8|0;c[B>>2]=0;D=(1<<n)+ -1|0;C=(w|0)>0;F=(1<<o)+ -1|0;E=0;d=0;I=0;J=0;H=0;L=0;z=0;K=0;c:while(1){while(1){while(1){d:do{if(q){K=c[B>>2]|0;if((K|0)>=(n|0)){N=K-n|0;K=c[G>>2]>>N&D;c[B>>2]=N;break}if((K|0)>0){na=c[G>>2]&(1<<K)+ -1;c[B>>2]=0;M=n-K|0;K=na}else{M=n;K=0}if((M|0)<=0){x=95;break}while(1){O=c[A>>2]|0;O=jd[c[(c[O>>2]|0)+20>>2]&511](O)|0;c[G>>2]=O;if((O|0)==-1){x=94;break c}if((M|0)<=7){break}K=O|K<<8;M=M+ -8|0;if((M|0)<=0){x=95;break d}}na=8-M|0;c[B>>2]=na;N=na;K=O>>na|K<<M}else{x=95}}while(0);if((x|0)==95){x=0;N=c[B>>2]|0}do{if((N|0)<(o|0)){if((N|0)>0){M=c[G>>2]&(1<<N)+ -1;c[B>>2]=0;O=o-N|0;N=0}else{O=o;M=0}if((O|0)<=0){break}while(1){P=c[A>>2]|0;P=jd[c[(c[P>>2]|0)+20>>2]&511](P)|0;c[G>>2]=P;if((P|0)==-1){x=105;break c}if((O|0)<=7){x=103;break}M=P|M<<8;O=O+ -8|0;if((O|0)<=0){x=106;break}}if((x|0)==103){x=0;na=8-O|0;c[B>>2]=na;N=na;M=P>>na|M<<O;break}else if((x|0)==106){x=0;N=c[B>>2]|0;break}}else{N=N-o|0;M=c[G>>2]>>N&F;c[B>>2]=N}}while(0);e:do{if((N|0)<(o|0)){if((N|0)>0){na=c[G>>2]&(1<<N)+ -1;c[B>>2]=0;O=o-N|0;N=na}else{O=o;N=0}if((O|0)<=0){break}while(1){P=c[A>>2]|0;P=jd[c[(c[P>>2]|0)+20>>2]&511](P)|0;c[G>>2]=P;if((P|0)==-1){x=117;break c}if((O|0)<=7){break}N=P|N<<8;O=O+ -8|0;if((O|0)<=0){break e}}na=8-O|0;c[B>>2]=na;N=P>>na|N<<O}else{na=N-o|0;N=c[G>>2]>>na&F;c[B>>2]=na}}while(0);if(C){O=0;do{P=k+(O<<2)|0;Q=c[B>>2]|0;f:do{if((Q|0)<(p|0)){if((Q|0)>0){R=c[G>>2]&(1<<Q)+ -1;c[B>>2]=0;Q=p-Q|0}else{Q=p;R=0}if((Q|0)>0){S=R}else{break}while(1){R=c[A>>2]|0;R=jd[c[(c[R>>2]|0)+20>>2]&511](R)|0;c[G>>2]=R;if((R|0)==-1){x=144;break c}if((Q|0)<=7){break}R=R|S<<8;Q=Q+ -8|0;if((Q|0)>0){S=R}else{break f}}na=8-Q|0;c[B>>2]=na;R=R>>na|S<<Q}else{na=Q-p|0;R=c[G>>2]>>na&v;c[B>>2]=na}}while(0);c[P>>2]=R;O=O+1|0;}while((O|0)<(w|0))}if((d|0)==(L|0)){L=(d|0)==0?16:d<<1;z=Ce(z,L,144)|0;bX(z+(d*144|0)|0,0,(L-d|0)*144|0)|0}h[z+(d*144|0)>>3]=r+s*+(M>>>0);h[z+(d*144|0)+8>>3]=t+u*+(N>>>0);if(C){M=0;do{c[z+(d*144|0)+16+(M<<2)>>2]=~~((+h[m+(M<<3)>>3]+ +h[l+(M<<3)>>3]*+((c[k+(M<<2)>>2]|0)>>>0))*65536.0);M=M+1|0;}while((M|0)<(w|0))}M=d+1|0;c[G>>2]=0;c[B>>2]=0;if(q){break}else{d=M}}if(I>>>0<2){d=M;I=I+1|0;continue}else{N=(I|0)==2;if((K|0)==0&(N^1)){d=M;I=1;K=0;continue}else{break}}}if((E|0)==(J|0)){na=(E|0)==0?16:E<<1;J=na;H=Ce(H,na*3|0,4)|0}do{if(N){c[H+(E*12|0)>>2]=d+ -2;c[H+(E*12|0)+4>>2]=d+ -1;c[H+(E*12|0)+8>>2]=d;I=3}else{N=E+ -1|0;if((K|0)==1){c[H+(E*12|0)>>2]=c[H+(N*12|0)+4>>2];c[H+(E*12|0)+4>>2]=c[H+(N*12|0)+8>>2];c[H+(E*12|0)+8>>2]=d;break}else{c[H+(E*12|0)>>2]=c[H+(N*12|0)>>2];c[H+(E*12|0)+4>>2]=c[H+(N*12|0)+8>>2];c[H+(E*12|0)+8>>2]=d;break}}}while(0);E=E+1|0;d=M}if((x|0)==94){c[B>>2]=0;x=145}else if((x|0)==105){c[B>>2]=0;x=145}else if((x|0)==117){c[B>>2]=0;x=145}else if((x|0)==144){c[B>>2]=0;if((A|0)!=0){x=145}}if((x|0)==145){na=c[A>>2]|0;fd[c[(c[na>>2]|0)+16>>2]&511](na);HW(A)}do{if((a|0)==5){l=((d|0)/(j|0)|0)+ -1|0;k=j+ -1|0;E=da(l<<1,k)|0;H=ye(E*3|0,4)|0;if((l|0)<=0){break}n=(k|0)>0;m=(j<<1)+ -2|0;w=0;o=0;do{if(n){p=da(w,j)|0;w=w+1|0;v=da(w,j)|0;x=0;q=o;while(1){ia=x+p|0;c[H+(q*12|0)>>2]=ia;ia=ia+1|0;c[H+(q*12|0)+4>>2]=ia;ja=x+v|0;c[H+(q*12|0)+8>>2]=ja;na=q+1|0;c[H+(na*12|0)>>2]=ia;c[H+(na*12|0)+4>>2]=ja;c[H+(na*12|0)+8>>2]=ja+1;x=x+1|0;if((x|0)<(k|0)){q=q+2|0}else{break}}o=m+o|0}else{w=w+1|0}}while((w|0)<(l|0))}}while(0);j=FW(328)|0;c[j+4>>2]=a;c[j+8>>2]=0;c[j>>2]=171032;c[j+180>>2]=z;c[j+184>>2]=d;c[j+188>>2]=H;c[j+192>>2]=E;a=j+324|0;c[a>>2]=y;if((y|0)>0){k=0;do{c[j+196+(k<<2)>>2]=c[g+(k<<2)>>2];k=k+1|0;}while((k|0)<(c[a>>2]|0))}if(MA(j,b,e)|0){na=j;i=f;return na|0}if((j|0)==0){na=0;i=f;return na|0}fd[c[(c[j>>2]|0)+4>>2]&511](j);na=0;i=f;return na|0}}}while(0);Qe(-1,171376,H)}else{Qe(-1,171072,ja)}}while(0);Of(z);na=0;i=f;return na|0}function LA(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0.0,u=0.0,v=0.0,w=0.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,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ba=0,ca=0,da=0,ea=0,fa=0,ga=0,ha=0,ia=0,ja=0,ka=0,la=0,ma=0,na=0,oa=0,pa=0,qa=0,ra=0,sa=0,ta=0,ua=0,va=0,wa=0,xa=0.0,ya=0.0,za=0.0,Aa=0.0,Ba=0.0,Ca=0.0,Da=0.0,Ea=0.0,Fa=0.0,Ga=0.0,Ha=0.0,Ia=0.0,Ja=0.0;f=i;C=i;i=i+8|0;D=C;H=i;i=i+8|0;I=i;i=i+8|0;O=i;i=i+16|0;L=O;M=i;i=i+8|0;N=M;K=i;i=i+16|0;P=K;z=i;i=i+8|0;G=z;x=i;i=i+16|0;y=x;Q=i;i=i+8|0;R=Q;S=i;i=i+16|0;T=S;U=i;i=i+8|0;V=U;X=i;i=i+16|0;W=X;Z=i;i=i+8|0;Y=Z;$=i;i=i+16|0;_=$;aa=i;i=i+8|0;ba=aa;da=i;i=i+8|0;ca=i;i=i+8|0;s=ca;fa=i;i=i+8|0;ea=i;i=i+8|0;r=ea;ha=i;i=i+8|0;ga=i;i=i+8|0;q=ga;J=i;i=i+128|0;g=J;m=i;i=i+256|0;j=i;i=i+256|0;p=i;i=i+128|0;o=p;l=i;i=i+128|0;n=l;k=i;i=i+1024|0;F=i;i=i+16|0;A=F;wa=i;i=i+16|0;B=wa;c[F>>2]=13;E=A+8|0;c[E>>2]=0;c[E+4>>2]=0;c[wa>>2]=13;wa=B+8|0;c[wa>>2]=0;c[wa+4>>2]=0;do{if((c[(Yu(b,171048,A,0)|0)>>2]|0)==1){ha=c[F>>2]|0;if((ha|0)!=1){c[ga>>2]=ha;c[q+4>>2]=1;Qe(0,172720,q);tc()}q=c[E>>2]|0;Of(A);if((c[(Yu(b,171136,A,0)|0)>>2]|0)!=1){Qe(-1,171160,fa);break}fa=c[F>>2]|0;if((fa|0)!=1){c[ea>>2]=fa;c[r+4>>2]=1;Qe(0,172720,r);tc()}r=c[E>>2]|0;Of(A);if((c[(Yu(b,171224,A,0)|0)>>2]|0)!=1){Qe(-1,171240,da);break}da=c[F>>2]|0;if((da|0)!=1){c[ca>>2]=da;c[s+4>>2]=1;Qe(0,172720,s);tc()}s=c[E>>2]|0;Of(A);do{if((c[(Yu(b,171368,A,0)|0)>>2]|0)==6){ca=c[F>>2]|0;if((ca|0)!=6){c[aa>>2]=ca;c[ba+4>>2]=6;Qe(0,172720,ba);tc()}aa=c[E>>2]|0;if((c[aa+12>>2]|0)<=5){break}ba=ut(aa,0,B)|0;aa=c[ba>>2]|0;if((aa+ -1|0)>>>0>=2){c[$>>2]=aa;c[_+4>>2]=1;c[_+8>>2]=2;Qe(0,172792,_);tc()}_=ba+8|0;if((aa|0)==1){t=+(c[_>>2]|0)}else{t=+h[_>>3]}Of(B);_=c[F>>2]|0;if((_|0)!=6){c[Z>>2]=_;c[Y+4>>2]=6;Qe(0,172720,Y);tc()}Z=ut(c[E>>2]|0,1,B)|0;Y=c[Z>>2]|0;if((Y+ -1|0)>>>0>=2){c[X>>2]=Y;c[W+4>>2]=1;c[W+8>>2]=2;Qe(0,172792,W);tc()}W=Z+8|0;if((Y|0)==1){u=+(c[W>>2]|0)}else{u=+h[W>>3]}Of(B);w=+lW(1.0,q)+-1.0;u=(u-t)/w;W=c[F>>2]|0;if((W|0)!=6){c[U>>2]=W;c[V+4>>2]=6;Qe(0,172720,V);tc()}V=ut(c[E>>2]|0,2,B)|0;U=c[V>>2]|0;if((U+ -1|0)>>>0>=2){c[S>>2]=U;c[T+4>>2]=1;c[T+8>>2]=2;Qe(0,172792,T);tc()}S=V+8|0;if((U|0)==1){v=+(c[S>>2]|0)}else{v=+h[S>>3]}Of(B);S=c[F>>2]|0;if((S|0)!=6){c[Q>>2]=S;c[R+4>>2]=6;Qe(0,172720,R);tc()}R=ut(c[E>>2]|0,3,B)|0;Q=c[R>>2]|0;if((Q+ -1|0)>>>0>=2){c[x>>2]=Q;c[y+4>>2]=1;c[y+8>>2]=2;Qe(0,172792,y);tc()}x=R+8|0;if((Q|0)==1){xa=+(c[x>>2]|0)}else{xa=+h[x>>3]}Of(B);w=(xa-v)/w;x=c[F>>2]|0;if((x|0)!=6){va=x;wa=z;c[wa>>2]=va;wa=G+4|0;c[wa>>2]=6;wa=172720;Qe(0,wa,G);tc()}x=(1<<r)+ -1|0;xa=+(x|0);Q=5;R=0;y=0;while(1){S=c[E>>2]|0;if(!((Q|0)<(c[S+12>>2]|0)&(y|0)<32)){pa=60;break}S=ut(S,R+4|0,B)|0;R=c[S>>2]|0;if((R+ -1|0)>>>0>=2){pa=48;break}S=S+8|0;if((R|0)==1){ya=+(c[S>>2]|0)}else{ya=+h[S>>3]}h[m+(y<<3)>>3]=ya;Of(B);R=c[F>>2]|0;if((R|0)!=6){pa=53;break}R=ut(c[E>>2]|0,Q,B)|0;Q=c[R>>2]|0;if((Q+ -1|0)>>>0>=2){pa=55;break}R=R+8|0;if((Q|0)==1){za=+(c[R>>2]|0)}else{za=+h[R>>3]}Of(B);h[j+(y<<3)>>3]=(za-ya)/xa;y=y+1|0;R=y<<1;Q=c[F>>2]|0;if((Q|0)==6){Q=R+5|0}else{pa=45;break}}if((pa|0)==45){wa=z;c[wa>>2]=Q;wa=G+4|0;c[wa>>2]=6;wa=172720;Qe(0,wa,G);tc()}else if((pa|0)==48){c[K>>2]=R;c[P+4>>2]=1;c[P+8>>2]=2;Qe(0,172792,P);tc()}else if((pa|0)==53){c[M>>2]=R;c[N+4>>2]=6;Qe(0,172720,N);tc()}else if((pa|0)==55){c[O>>2]=Q;c[L+4>>2]=1;c[L+8>>2]=2;Qe(0,172792,L);tc()}else if((pa|0)==60){Of(A);a:do{if((c[(Yu(b,170848,A,0)|0)>>2]|0)==5){z=0}else{if((c[F>>2]|0)!=6){wa=EH(A)|0;c[J>>2]=wa;if((wa|0)!=0){z=1;break}Of(A);wa=0;i=f;return wa|0}z=c[(c[E>>2]|0)+12>>2]|0;if((z|0)>32){Qe(-1,170864,H);wa=0;i=f;return wa|0}if((z|0)>0){G=6;H=0}else{break}while(1){if((G|0)!=6){pa=67;break}ut(c[E>>2]|0,H,B)|0;wa=EH(B)|0;c[g+(H<<2)>>2]=wa;if((wa|0)==0){break}Of(B);H=H+1|0;if((H|0)>=(z|0)){break a}G=c[F>>2]|0}if((pa|0)==67){c[C>>2]=G;c[D+4>>2]=6;Qe(0,172720,D);tc()}Of(A);Of(B);wa=0;i=f;return wa|0}}while(0);Of(A);A=FW(12)|0;c[A>>2]=d;fdfd[c[(c[wa>>2]|0)+16>>2]&511](wa);HW(A)}if(_&(d|0)>0){j=0;do{pa=la+(j*1280|0)|0;w=+h[pa>>3];ra=la+(j*1280|0)+8|0;ya=+h[la+(j*1280|0)+32>>3];qa=la+(j*1280|0)+24|0;Ba=+h[qa>>3];ta=la+(j*1280|0)+96|0;Ja=+h[ta>>3];xa=+h[la+(j*1280|0)+104>>3];Ca=+h[la+(j*1280|0)+56>>3];sa=la+(j*1280|0)+120|0;za=+h[sa>>3];h[la+(j*1280|0)+40>>3]=(w*-4.0+(+h[ra>>3]+ya)*6.0-(Ba+Ja)*2.0+(xa+Ca)*3.0-za)/9.0;wa=la+(j*1280|0)+128|0;Ga=+h[wa>>3];Fa=+h[la+(j*1280|0)+136>>3];t=+h[la+(j*1280|0)+160>>3];va=la+(j*1280|0)+152|0;Ea=+h[va>>3];ua=la+(j*1280|0)+224|0;Ia=+h[ua>>3];Ha=+h[la+(j*1280|0)+232>>3];u=+h[la+(j*1280|0)+184>>3];v=+h[la+(j*1280|0)+248>>3];h[la+(j*1280|0)+168>>3]=(Ga*-4.0+(Fa+t)*6.0-(Ea+Ia)*2.0+(Ha+u)*3.0-v)/9.0;Aa=+h[la+(j*1280|0)+16>>3];Da=+h[la+(j*1280|0)+112>>3];h[la+(j*1280|0)+48>>3]=(Ba*-4.0+(Aa+Ca)*6.0-(w+za)*2.0+(Da+ya)*3.0-Ja)/9.0;ya=+h[la+(j*1280|0)+144>>3];Ga=(Ga+v)*2.0;w=+h[la+(j*1280|0)+240>>3];h[la+(j*1280|0)+176>>3]=(Ea*-4.0+(ya+u)*6.0-Ga+(w+t)*3.0-Ia)/9.0;t=+h[la+(j*1280|0)+64>>3];u=+h[pa>>3];Ca=+h[la+(j*1280|0)+88>>3];Ba=+h[qa>>3];h[la+(j*1280|0)+72>>3]=(Ja*-4.0+(xa+t)*6.0-(za+u)*2.0+(+h[ra>>3]+Ca)*3.0-Ba)/9.0;za=+h[la+(j*1280|0)+192>>3];xa=+h[la+(j*1280|0)+216>>3];h[la+(j*1280|0)+200>>3]=(Ia*-4.0+(Ha+za)*6.0-Ga+(Fa+xa)*3.0-Ea)/9.0;h[la+(j*1280|0)+80>>3]=(+h[sa>>3]*-4.0+(Da+Ca)*6.0-(+h[ta>>3]+Ba)*2.0+(Aa+t)*3.0-u)/9.0;h[la+(j*1280|0)+208>>3]=(v*-4.0+(w+xa)*6.0-(+h[ua>>3]+ +h[va>>3])*2.0+(ya+za)*3.0- +h[wa>>3])/9.0;j=j+1|0;}while((j|0)<(d|0))}j=FW(320)|0;c[j+4>>2]=a;c[j+8>>2]=0;c[j>>2]=171520;c[j+180>>2]=la;c[j+184>>2]=d;a=j+316|0;c[a>>2]=z;if((z|0)>0){k=0;do{c[j+188+(k<<2)>>2]=c[g+(k<<2)>>2];k=k+1|0;}while((k|0)<(c[a>>2]|0))}if(MA(j,b,e)|0){wa=j;i=f;return wa|0}if((j|0)==0){wa=0;i=f;return wa|0}fd[c[(c[j>>2]|0)+4>>2]&511](j);wa=0;i=f;return wa|0}}}while(0);Qe(-1,171376,I)}else{Qe(-1,171072,ha)}}while(0);Of(A);wa=0;i=f;return wa|0}function MA(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=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.0;j=i;C=i;i=i+8|0;p=i;i=i+8|0;v=i;i=i+8|0;t=v;y=i;i=i+8|0;x=y;A=i;i=i+8|0;B=A;D=i;i=i+8|0;E=D;J=i;i=i+8|0;G=i;i=i+16|0;F=G;I=i;i=i+8|0;H=I;L=i;i=i+8|0;K=L;M=i;i=i+8|0;z=i;i=i+16|0;g=z;w=i;i=i+16|0;k=w;s=i;i=i+16|0;l=s;r=i;i=i+16|0;m=r;q=i;i=i+16|0;n=q;c[z>>2]=13;u=g+8|0;c[u>>2]=0;c[u+4>>2]=0;c[w>>2]=13;o=k+8|0;c[o>>2]=0;c[o+4>>2]=0;Yu(d,170616,g,0)|0;N=Jy(g,e)|0;e=b+8|0;c[e>>2]=N;if((N|0)==0){Qe(-1,170632,M);Of(g);N=0;i=j;return N|0}Of(g);M=b+140|0;bX(b+12|0,0,129)|0;a:do{if((c[(Yu(d,170672,g,0)|0)>>2]|0)==6){N=c[z>>2]|0;if((N|0)!=6){c[L>>2]=N;c[K+4>>2]=6;Qe(0,172720,K);tc()}L=c[(c[u>>2]|0)+12>>2]|0;N=c[e>>2]|0;if((L|0)!=(jd[c[(c[N>>2]|0)+44>>2]&511](N)|0)){Qe(-1,170688,J);break}a[M]=1;N=c[e>>2]|0;if((jd[c[(c[N>>2]|0)+44>>2]&511](N)|0)>0){J=0}else{break}while(1){K=c[z>>2]|0;if((K|0)!=6){f=9;break}L=ut(c[u>>2]|0,J,k)|0;K=c[L>>2]|0;if((K+ -1|0)>>>0>=2){f=11;break}L=L+8|0;if((K|0)==1){O=+(c[L>>2]|0)}else{O=+h[L>>3]}c[b+12+(J<<2)>>2]=~~(O*65536.0);Of(k);J=J+1|0;N=c[e>>2]|0;if((J|0)>=(jd[c[(c[N>>2]|0)+44>>2]&511](N)|0)){break a}}if((f|0)==9){c[I>>2]=K;c[H+4>>2]=6;Qe(0,172720,H);tc()}else if((f|0)==11){c[G>>2]=K;c[F+4>>2]=1;c[F+8>>2]=2;Qe(0,172792,F);tc()}}}while(0);Of(g);F=b+168|0;G=b+160|0;H=b+152|0;I=b+144|0;b=b+176|0;bX(I|0,0,33)|0;do{if((c[(Yu(d,170112,g,0)|0)>>2]|0)==6){d=c[z>>2]|0;if((d|0)!=6){c[D>>2]=d;c[E+4>>2]=6;Qe(0,172720,E);tc()}d=c[u>>2]|0;if((c[d+12>>2]|0)!=4){Qe(-1,170784,C);break}c[s>>2]=13;E=l+8|0;c[E>>2]=0;c[E+4>>2]=0;c[r>>2]=13;D=m+8|0;c[D>>2]=0;c[D+4>>2]=0;c[q>>2]=13;C=n+8|0;c[C>>2]=0;c[C+4>>2]=0;ut(d,0,k)|0;d=c[z>>2]|0;if((d|0)!=6){c[A>>2]=d;c[B+4>>2]=6;Qe(0,172720,B);tc()}ut(c[u>>2]|0,1,l)|0;A=c[z>>2]|0;if((A|0)!=6){c[y>>2]=A;c[x+4>>2]=6;Qe(0,172720,x);tc()}ut(c[u>>2]|0,2,m)|0;x=c[z>>2]|0;if((x|0)!=6){c[v>>2]=x;c[t+4>>2]=6;Qe(0,172720,t);tc()}ut(c[u>>2]|0,3,n)|0;t=c[w>>2]|0;do{if((t+ -1|0)>>>0<2){s=c[s>>2]|0;if((s+ -1|0)>>>0>=2){f=44;break}r=c[r>>2]|0;if((r+ -1|0)>>>0>=2){f=44;break}q=c[q>>2]|0;if((q+ -1|0)>>>0>=2){f=44;break}a[b]=1;if((t|0)==1){O=+(c[o>>2]|0)}else{O=+h[o>>3]}h[I>>3]=O;if((s|0)==1){O=+(c[E>>2]|0)}else{O=+h[E>>3]}h[H>>3]=O;if((r|0)==1){O=+(c[D>>2]|0)}else{O=+h[D>>3]}h[G>>3]=O;if((q|0)==1){O=+(c[C>>2]|0)}else{O=+h[C>>3]}h[F>>3]=O}else{f=44}}while(0);if((f|0)==44){Qe(-1,170728,p)}Of(k);Of(l);Of(m);Of(n)}}while(0);Of(g);N=1;i=j;return N|0}function NA(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,j=0;e=i;c[b>>2]=170376;c[b+4>>2]=c[d+4>>2];f=c[d+8>>2]|0;c[b+8>>2]=jd[c[(c[f>>2]|0)+8>>2]&511](f)|0;f=0;do{c[b+12+(f<<2)>>2]=c[d+12+(f<<2)>>2];f=f+1|0;}while((f|0)<32);a[b+140|0]=a[d+140|0]&1;h[b+144>>3]=+h[d+144>>3];h[b+152>>3]=+h[d+152>>3];h[b+160>>3]=+h[d+160>>3];h[b+168>>3]=+h[d+168>>3];a[b+176|0]=a[d+176|0]&1;c[b>>2]=170824;h[b+184>>3]=+h[d+184>>3];h[b+192>>3]=+h[d+192>>3];h[b+200>>3]=+h[d+200>>3];h[b+208>>3]=+h[d+208>>3];h[b+216>>3]=+h[d+216>>3];h[b+224>>3]=+h[d+224>>3];h[b+232>>3]=+h[d+232>>3];h[b+240>>3]=+h[d+240>>3];h[b+248>>3]=+h[d+248>>3];h[b+256>>3]=+h[d+256>>3];g=c[d+392>>2]|0;f=b+392|0;c[f>>2]=g;if((g|0)>0){g=0}else{i=e;return}do{j=c[d+264+(g<<2)>>2]|0;c[b+264+(g<<2)>>2]=jd[c[(c[j>>2]|0)+8>>2]&511](j)|0;g=g+1|0;}while((g|0)<(c[f>>2]|0));i=e;return}function OA(a){a=a|0;var b=0,d=0,e=0,f=0,g=0;b=i;c[a>>2]=170824;d=a+392|0;f=c[d>>2]|0;if((f|0)>0){e=0;do{g=c[a+264+(e<<2)>>2]|0;if((g|0)!=0){fd[c[(c[g>>2]|0)+4>>2]&511](g);f=c[d>>2]|0}e=e+1|0;}while((e|0)<(f|0))}c[a>>2]=170376;d=c[a+8>>2]|0;if((d|0)==0){HW(a);i=b;return}fd[c[(c[d>>2]|0)+4>>2]&511](d);HW(a);i=b;return}function PA(a){a=a|0;var b=0,d=0,e=0,f=0,g=0;b=i;c[a>>2]=170824;d=a+392|0;f=c[d>>2]|0;if((f|0)>0){e=0;do{g=c[a+264+(e<<2)>>2]|0;if((g|0)!=0){fd[c[(c[g>>2]|0)+4>>2]&511](g);f=c[d>>2]|0}e=e+1|0;}while((e|0)<(f|0))}c[a>>2]=170376;a=c[a+8>>2]|0;if((a|0)==0){i=b;return}fd[c[(c[a>>2]|0)+4>>2]&511](a);i=b;return}function QA(a){a=a|0;var b=0,c=0;c=i;b=FW(400)|0;NA(b,a);i=c;return b|0}function RA(a,b,d,e){a=a|0;b=+b;d=+d;e=e|0;var f=0,g=0,j=0,k=0,l=0,m=0;g=i;k=i;i=i+16|0;j=k;l=i;i=i+256|0;f=l;bX(l|0,0,256)|0;h[k>>3]=b;h[j+8>>3]=d;k=a+392|0;if((c[k>>2]|0)>0){l=0;while(1){m=c[a+264+(l<<2)>>2]|0;Gd[c[(c[m>>2]|0)+16>>2]&255](m,j,f+(l<<3)|0);l=l+1|0;if((l|0)<(c[k>>2]|0)){}else{j=0;break}}}else{j=0}do{c[e+(j<<2)>>2]=~~(+h[f+(j<<3)>>3]*65536.0);j=j+1|0;}while((j|0)<32);i=g;return}function SA(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,j=0;e=i;c[b>>2]=170376;c[b+4>>2]=c[d+4>>2];f=c[d+8>>2]|0;c[b+8>>2]=jd[c[(c[f>>2]|0)+8>>2]&511](f)|0;f=0;do{c[b+12+(f<<2)>>2]=c[d+12+(f<<2)>>2];f=f+1|0;}while((f|0)<32);a[b+140|0]=a[d+140|0]&1;h[b+144>>3]=+h[d+144>>3];h[b+152>>3]=+h[d+152>>3];h[b+160>>3]=+h[d+160>>3];h[b+168>>3]=+h[d+168>>3];a[b+176|0]=a[d+176|0]&1;c[b>>2]=170920;h[b+184>>3]=+h[d+184>>3];h[b+192>>3]=+h[d+192>>3];h[b+200>>3]=+h[d+200>>3];h[b+208>>3]=+h[d+208>>3];h[b+216>>3]=+h[d+216>>3];h[b+224>>3]=+h[d+224>>3];g=c[d+360>>2]|0;f=b+360|0;c[f>>2]=g;if((g|0)>0){g=0}else{g=d+364|0;g=a[g]|0;g=g&1;f=b+364|0;a[f]=g;f=d+365|0;f=a[f]|0;f=f&1;g=b+365|0;a[g]=f;i=e;return}do{j=c[d+232+(g<<2)>>2]|0;c[b+232+(g<<2)>>2]=jd[c[(c[j>>2]|0)+8>>2]&511](j)|0;g=g+1|0;}while((g|0)<(c[f>>2]|0));j=d+364|0;j=a[j]|0;j=j&1;g=b+364|0;a[g]=j;g=d+365|0;g=a[g]|0;g=g&1;j=b+365|0;a[j]=g;i=e;return}function TA(a){a=a|0;var b=0,d=0,e=0,f=0,g=0;b=i;c[a>>2]=170920;d=a+360|0;f=c[d>>2]|0;if((f|0)>0){e=0;do{g=c[a+232+(e<<2)>>2]|0;if((g|0)!=0){fd[c[(c[g>>2]|0)+4>>2]&511](g);f=c[d>>2]|0}e=e+1|0;}while((e|0)<(f|0))}c[a>>2]=170376;d=c[a+8>>2]|0;if((d|0)==0){HW(a);i=b;return}fd[c[(c[d>>2]|0)+4>>2]&511](d);HW(a);i=b;return}function UA(a){a=a|0;var b=0,d=0,e=0,f=0,g=0;b=i;c[a>>2]=170920;d=a+360|0;f=c[d>>2]|0;if((f|0)>0){e=0;do{g=c[a+232+(e<<2)>>2]|0;if((g|0)!=0){fd[c[(c[g>>2]|0)+4>>2]&511](g);f=c[d>>2]|0}e=e+1|0;}while((e|0)<(f|0))}c[a>>2]=170376;a=c[a+8>>2]|0;if((a|0)==0){i=b;return}fd[c[(c[a>>2]|0)+4>>2]&511](a);i=b;return}function VA(a){a=a|0;var b=0,c=0;c=i;b=FW(368)|0;SA(b,a);i=c;return b|0}function WA(a,b,d){a=a|0;b=+b;d=d|0;var e=0,f=0,g=0,j=0,k=0,l=0;f=i;k=i;i=i+8|0;g=k;j=i;i=i+256|0;e=j;h[k>>3]=b;bX(j|0,0,256)|0;j=a+360|0;if((c[j>>2]|0)>0){k=0;while(1){l=c[a+232+(k<<2)>>2]|0;Gd[c[(c[l>>2]|0)+16>>2]&255](l,g,e+(k<<3)|0);k=k+1|0;if((k|0)<(c[j>>2]|0)){}else{a=0;break}}}else{a=0}do{c[d+(a<<2)>>2]=~~(+h[e+(a<<3)>>3]*65536.0);a=a+1|0;}while((a|0)<32);i=f;return}function XA(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,j=0;e=i;c[b>>2]=170376;c[b+4>>2]=c[d+4>>2];f=c[d+8>>2]|0;c[b+8>>2]=jd[c[(c[f>>2]|0)+8>>2]&511](f)|0;f=0;do{c[b+12+(f<<2)>>2]=c[d+12+(f<<2)>>2];f=f+1|0;}while((f|0)<32);a[b+140|0]=a[d+140|0]&1;h[b+144>>3]=+h[d+144>>3];h[b+152>>3]=+h[d+152>>3];h[b+160>>3]=+h[d+160>>3];h[b+168>>3]=+h[d+168>>3];a[b+176|0]=a[d+176|0]&1;c[b>>2]=171008;h[b+184>>3]=+h[d+184>>3];h[b+192>>3]=+h[d+192>>3];h[b+200>>3]=+h[d+200>>3];h[b+208>>3]=+h[d+208>>3];h[b+216>>3]=+h[d+216>>3];h[b+224>>3]=+h[d+224>>3];h[b+232>>3]=+h[d+232>>3];h[b+240>>3]=+h[d+240>>3];g=c[d+376>>2]|0;f=b+376|0;c[f>>2]=g;if((g|0)>0){g=0}else{g=d+380|0;g=a[g]|0;g=g&1;f=b+380|0;a[f]=g;f=d+381|0;f=a[f]|0;f=f&1;g=b+381|0;a[g]=f;i=e;return}do{j=c[d+248+(g<<2)>>2]|0;c[b+248+(g<<2)>>2]=jd[c[(c[j>>2]|0)+8>>2]&511](j)|0;g=g+1|0;}while((g|0)<(c[f>>2]|0));j=d+380|0;j=a[j]|0;j=j&1;g=b+380|0;a[g]=j;g=d+381|0;g=a[g]|0;g=g&1;j=b+381|0;a[j]=g;i=e;return}function YA(a){a=a|0;var b=0,d=0,e=0,f=0,g=0;b=i;c[a>>2]=171008;d=a+376|0;f=c[d>>2]|0;if((f|0)>0){e=0;do{g=c[a+248+(e<<2)>>2]|0;if((g|0)!=0){fd[c[(c[g>>2]|0)+4>>2]&511](g);f=c[d>>2]|0}e=e+1|0;}while((e|0)<(f|0))}c[a>>2]=170376;d=c[a+8>>2]|0;if((d|0)==0){HW(a);i=b;return}fd[c[(c[d>>2]|0)+4>>2]&511](d);HW(a);i=b;return}function ZA(a){a=a|0;var b=0,d=0,e=0,f=0,g=0;b=i;c[a>>2]=171008;d=a+376|0;f=c[d>>2]|0;if((f|0)>0){e=0;do{g=c[a+248+(e<<2)>>2]|0;if((g|0)!=0){fd[c[(c[g>>2]|0)+4>>2]&511](g);f=c[d>>2]|0}e=e+1|0;}while((e|0)<(f|0))}c[a>>2]=170376;a=c[a+8>>2]|0;if((a|0)==0){i=b;return}fdfd[c[(c[g>>2]|0)+4>>2]&511](g);f=c[d>>2]|0}e=e+1|0;}while((e|0)<(f|0))}c[a>>2]=170376;d=c[a+8>>2]|0;if((d|0)==0){HW(a);i=b;return}fd[c[(c[d>>2]|0)+4>>2]&511](d);HW(a);i=b;return}function cB(a){a=a|0;var b=0,d=0,e=0,f=0,g=0;b=i;c[a>>2]=171032;Fe(c[a+180>>2]|0);Fe(c[a+188>>2]|0);d=a+324|0;f=c[d>>2]|0;if((f|0)>0){e=0;do{g=c[a+196+(e<<2)>>2]|0;if((g|0)!=0){fd[c[(c[g>>2]|0)+4>>2]&511](g);f=c[d>>2]|0}e=e+1|0;}while((e|0)<(f|0))}c[a>>2]=170376;a=c[a+8>>2]|0;if((a|0)==0){i=b;return}fd[c[(c[a>>2]|0)+4>>2]&511](a);i=b;return}function dB(a){a=a|0;var b=0,c=0;c=i;b=FW(328)|0;aB(b,a);i=c;return b|0}function eB(a,b,d,e,f,g,j,k,l,m,n){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;j=j|0;k=k|0;l=l|0;m=m|0;n=n|0;var o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0;p=i;s=i;i=i+8|0;r=s;o=i;i=i+256|0;q=a+324|0;if((c[q>>2]|0)>0){Ya(171432,171456,3392,171472)}u=a+188|0;v=c[(c[u>>2]|0)+(b*12|0)>>2]|0;t=a+180|0;h[d>>3]=+h[(c[t>>2]|0)+(v*144|0)>>3];h[e>>3]=+h[(c[t>>2]|0)+(v*144|0)+8>>3];e=c[t>>2]|0;if((c[q>>2]|0)>0){h[s>>3]=+(c[e+(v*144|0)+16>>2]|0)*152587890625.0e-16;v=0;while(1){d=c[a+196+(v<<2)>>2]|0;Gd[c[(c[d>>2]|0)+16>>2]&255](d,r,o+(v<<3)|0);v=v+1|0;if((v|0)<(c[q>>2]|0)){}else{v=0;break}}do{c[f+(v<<2)>>2]=~~(+h[o+(v<<3)>>3]*65536.0);v=v+1|0;}while((v|0)<32)}else{$W(f|0,e+(v*144|0)+16|0,128)|0}f=c[(c[u>>2]|0)+(b*12|0)+4>>2]|0;h[g>>3]=+h[(c[t>>2]|0)+(f*144|0)>>3];h[j>>3]=+h[(c[t>>2]|0)+(f*144|0)+8>>3];j=c[t>>2]|0;if((c[q>>2]|0)>0){h[s>>3]=+(c[j+(f*144|0)+16>>2]|0)*152587890625.0e-16;j=0;while(1){d=c[a+196+(j<<2)>>2]|0;Gd[c[(c[d>>2]|0)+16>>2]&255](d,r,o+(j<<3)|0);j=j+1|0;if((j|0)<(c[q>>2]|0)){}else{j=0;break}}do{c[k+(j<<2)>>2]=~~(+h[o+(j<<3)>>3]*65536.0);j=j+1|0;}while((j|0)<32)}else{$W(k|0,j+(f*144|0)+16|0,128)|0}k=c[(c[u>>2]|0)+(b*12|0)+8>>2]|0;h[l>>3]=+h[(c[t>>2]|0)+(k*144|0)>>3];h[m>>3]=+h[(c[t>>2]|0)+(k*144|0)+8>>3];t=c[t>>2]|0;if((c[q>>2]|0)<=0){$W(n|0,t+(k*144|0)+16|0,128)|0;i=p;return}h[s>>3]=+(c[t+(k*144|0)+16>>2]|0)*152587890625.0e-16;s=0;while(1){d=c[a+196+(s<<2)>>2]|0;Gd[c[(c[d>>2]|0)+16>>2]&255](d,r,o+(s<<3)|0);s=s+1|0;if((s|0)<(c[q>>2]|0)){}else{a=0;break}}do{c[n+(a<<2)>>2]=~~(+h[o+(a<<3)>>3]*65536.0);a=a+1|0;}while((a|0)<32);i=p;return}function fB(a,b,d){a=a|0;b=+b;d=d|0;var e=0,f=0,g=0,j=0,k=0,l=0;f=i;j=i;i=i+8|0;g=j;e=i;i=i+256|0;h[j>>3]=b;j=a+324|0;if((c[j>>2]|0)>0){k=0;while(1){l=c[a+196+(k<<2)>>2]|0;Gd[c[(c[l>>2]|0)+16>>2]&255](l,g,e+(k<<3)|0);k=k+1|0;if((k|0)<(c[j>>2]|0)){}else{a=0;break}}}else{a=0}do{c[d+(a<<2)>>2]=~~(+h[e+(a<<3)>>3]*65536.0);a=a+1|0;}while((a|0)<32);i=f;return}function gB(a,b,d,e,f,g,j,k,l,m,n){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;j=j|0;k=k|0;l=l|0;m=m|0;n=n|0;var o=0,p=0,q=0;if((c[a+324>>2]|0)>0){p=a+188|0;q=c[(c[p>>2]|0)+(b*12|0)>>2]|0;o=a+180|0;h[d>>3]=+h[(c[o>>2]|0)+(q*144|0)>>3];h[e>>3]=+h[(c[o>>2]|0)+(q*144|0)+8>>3];h[f>>3]=+(c[(c[o>>2]|0)+(q*144|0)+16>>2]|0)*152587890625.0e-16;a=c[(c[p>>2]|0)+(b*12|0)+4>>2]|0;h[g>>3]=+h[(c[o>>2]|0)+(a*144|0)>>3];h[j>>3]=+h[(c[o>>2]|0)+(a*144|0)+8>>3];h[k>>3]=+(c[(c[o>>2]|0)+(a*144|0)+16>>2]|0)*152587890625.0e-16;a=c[(c[p>>2]|0)+(b*12|0)+8>>2]|0;h[l>>3]=+h[(c[o>>2]|0)+(a*144|0)>>3];h[m>>3]=+h[(c[o>>2]|0)+(a*144|0)+8>>3];h[n>>3]=+(c[(c[o>>2]|0)+(a*144|0)+16>>2]|0)*152587890625.0e-16;i=i;return}else{Ya(171488,171456,3455,171472)}}function hB(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,j=0;e=i;c[b>>2]=170376;c[b+4>>2]=c[d+4>>2];f=c[d+8>>2]|0;c[b+8>>2]=jd[c[(c[f>>2]|0)+8>>2]&511](f)|0;f=0;do{c[b+12+(f<<2)>>2]=c[d+12+(f<<2)>>2];f=f+1|0;}while((f|0)<32);a[b+140|0]=a[d+140|0]&1;h[b+144>>3]=+h[d+144>>3];h[b+152>>3]=+h[d+152>>3];h[b+160>>3]=+h[d+160>>3];h[b+168>>3]=+h[d+168>>3];a[b+176|0]=a[d+176|0]&1;c[b>>2]=171520;f=c[d+184>>2]|0;g=b+184|0;c[g>>2]=f;f=ye(f,1280)|0;c[b+180>>2]=f;$W(f|0,c[d+180>>2]|0,(c[g>>2]|0)*1280|0)|0;g=c[d+316>>2]|0;f=b+316|0;c[f>>2]=g;if((g|0)>0){g=0}else{i=e;return}do{j=c[d+188+(g<<2)>>2]|0;c[b+188+(g<<2)>>2]=jd[c[(c[j>>2]|0)+8>>2]&511](j)|0;g=g+1|0;}while((g|0)<(c[f>>2]|0));i=e;return}function iB(a){a=a|0;var b=0,d=0,e=0,f=0,g=0;b=i;c[a>>2]=171520;Fe(c[a+180>>2]|0);d=a+316|0;f=c[d>>2]|0;if((f|0)>0){e=0;do{g=c[a+188+(e<<2)>>2]|0;if((g|0)!=0){fd[c[(c[g>>2]|0)+4>>2]&511](g);f=c[d>>2]|0}e=e+1|0;}while((e|0)<(f|0))}c[a>>2]=170376;d=c[a+8>>2]|0;if((d|0)==0){HW(a);i=b;return}fd[c[(c[d>>2]|0)+4>>2]&511](d);HW(a);i=b;return}function jB(a){a=a|0;var b=0,d=0,e=0,f=0,g=0;b=i;c[a>>2]=171520;Fe(c[a+180>>2]|0);d=a+316|0;f=c[d>>2]|0;if((f|0)>0){e=0;do{g=c[a+188+(e<<2)>>2]|0;if((g|0)!=0){fd[c[(c[g>>2]|0)+4>>2]&511](g);f=c[d>>2]|0}e=e+1|0;}while((e|0)<(f|0))}c[a>>2]=170376;a=c[a+8>>2]|0;if((a|0)==0){i=b;return}fd[c[(c[a>>2]|0)+4>>2]&511](a);i=b;return}function kB(a,b,d){a=a|0;b=+b;d=d|0;var e=0,f=0,g=0,j=0,k=0,l=0;f=i;j=i;i=i+8|0;g=j;e=i;i=i+256|0;h[j>>3]=b;j=a+316|0;if((c[j>>2]|0)>0){k=0;while(1){l=c[a+188+(k<<2)>>2]|0;Gd[c[(c[l>>2]|0)+16>>2]&255](l,g,e+(k<<3)|0);k=k+1|0;if((k|0)<(c[j>>2]|0)){}else{a=0;break}}}else{a=0}do{c[d+(a<<2)>>2]=~~(+h[e+(a<<3)>>3]*65536.0);a=a+1|0;}while((a|0)<32);i=f;return}function lB(a){a=a|0;var b=0,c=0;c=i;b=FW(320)|0;hB(b,a);i=c;return b|0}function mB(b,e,f,g){b=b|0;e=e|0;f=f|0;g=g|0;var 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.0,C=0,D=0.0;j=i;p=i;i=i+8|0;v=p;u=i;i=i+8|0;s=u;q=i;i=i+16|0;t=q;n=i;i=i+256|0;m=n;l=i;i=i+256|0;c[q>>2]=13;w=t+8|0;c[w>>2]=0;c[w+4>>2]=0;r=b+664|0;a[r]=1;c[b+4>>2]=e;e=(1<<e)+ -1|0;c[b>>2]=g;k=(e|0)>255?255:e;e=b+148|0;bX(b+20|0,0,132)|0;x=c[f>>2]|0;a:do{if((x|0)==5){c[b+8>>2]=jd[c[(c[g>>2]|0)+44>>2]&511](g)|0;C=c[b>>2]|0;Jd[c[(c[C>>2]|0)+52>>2]&63](C,b+152|0,b+408|0,k)}else if((x|0)==6){x=f+8|0;C=(c[(c[x>>2]|0)+12>>2]|0)/2|0;y=b+8|0;c[y>>2]=C;if((C|0)!=(jd[c[(c[g>>2]|0)+44>>2]&511](g)|0)){o=60;break}if((c[y>>2]|0)<=0){break}g=0;while(1){z=g<<1;A=c[f>>2]|0;if((A|0)!=6){o=7;break}ut(c[x>>2]|0,z,t)|0;A=c[q>>2]|0;if((A+ -1|0)>>>0>=2){o=59;break}if((A|0)==1){B=+(c[w>>2]|0)}else{B=+h[w>>3]}A=b+152+(g<<3)|0;h[A>>3]=B;Of(t);C=c[f>>2]|0;if((C|0)!=6){o=13;break}ut(c[x>>2]|0,z|1,t)|0;z=c[q>>2]|0;if((z+ -1|0)>>>0>=2){o=59;break}if((z|0)==1){B=+(c[w>>2]|0)}else{B=+h[w>>3]}h[b+408+(g<<3)>>3]=B- +h[A>>3];Of(t);g=g+1|0;if((g|0)>=(c[y>>2]|0)){break a}}if((o|0)==7){c[u>>2]=A;c[s+4>>2]=6;Qe(0,172720,s);tc()}else if((o|0)==13){c[p>>2]=C;c[v+4>>2]=6;Qe(0,172720,v);tc()}else if((o|0)==59){Of(t);o=60;break}}else{o=60}}while(0);if((o|0)==60){a[r]=0;i=j;return}r=b+12|0;c[r>>2]=0;p=b+16|0;c[p>>2]=0;q=c[b>>2]|0;q=jd[c[(c[q>>2]|0)+12>>2]&511](q)|0;if((q|0)==7){n=c[b>>2]|0;C=c[n+4>>2]|0;c[r>>2]=C;q=c[n+8>>2]|0;c[p>>2]=jd[c[(c[C>>2]|0)+44>>2]&511](C)|0;n=c[n+12>>2]|0;C=c[r>>2]|0;Jd[c[(c[C>>2]|0)+52>>2]&63](C,m,l,q);C=c[r>>2]|0;if(jd[c[(c[C>>2]|0)+40>>2]&511](C)|0){o=22}else{C=c[r>>2]|0;if(jd[c[(c[C>>2]|0)+36>>2]&511](C)|0){o=22}else{r=0}}if((o|0)==22){c[e>>2]=ye(k+1|0,c[p>>2]|0)|0;r=1}if((c[p>>2]|0)<=0){i=j;return}s=k+1|0;o=(k|0)<0;v=b+152|0;u=b+408|0;B=+(k|0);x=0;do{y=b+20+(x<<2)|0;c[y>>2]=ye(s,4)|0;if(!o){f=m+(x<<3)|0;w=l+(x<<3)|0;t=0;while(1){g=~~(+h[v>>3]+ +(t|0)*+h[u>>3]/B+.5);if((g|0)<0){g=0}else{g=(g|0)>(q|0)?q:g}D=+(d[n+((da(c[p>>2]|0,g)|0)+x)|0]|0|0)/255.0;D=+h[f>>3]+D*+h[w>>3];c[(c[y>>2]|0)+(t<<2)>>2]=~~(D*65536.0);if(r){C=(da(c[p>>2]|0,t)|0)+x|0;a[(c[e>>2]|0)+C|0]=~~(D*255.0)}if((t|0)<(k|0)){t=t+1|0}else{break}}}x=x+1|0;}while((x|0)<(c[p>>2]|0));i=j;return}else if((q|0)==8){q=c[b>>2]|0;C=c[q+8>>2]|0;c[r>>2]=C;c[p>>2]=jd[c[(c[C>>2]|0)+44>>2]&511](C)|0;q=c[q+12>>2]|0;C=c[r>>2]|0;if(jd[c[(c[C>>2]|0)+40>>2]&511](C)|0){o=35}else{C=c[r>>2]|0;if(jd[c[(c[C>>2]|0)+36>>2]&511](C)|0){o=35}else{r=0}}if((o|0)==35){c[e>>2]=ye(k+1|0,c[p>>2]|0)|0;r=1}if((c[p>>2]|0)<=0){i=j;return}u=k+1|0;o=(k|0)<0;s=b+152|0;t=b+408|0;B=+(k|0);f=0;do{v=b+20+(f<<2)|0;c[v>>2]=ye(u,4)|0;if(!o){w=l+(f<<3)|0;x=0;while(1){h[n>>3]=+h[s>>3]+ +(x|0)*+h[t>>3]/B;Gd[c[(c[q>>2]|0)+16>>2]&255](q,m,l);c[(c[v>>2]|0)+(x<<2)>>2]=~~(+h[w>>3]*65536.0);if(r){C=(da(c[p>>2]|0,x)|0)+f|0;a[(c[e>>2]|0)+C|0]=~~(+h[w>>3]*255.0)}if((x|0)<(k|0)){x=x+1|0}else{break}}}f=f+1|0;}while((f|0)<(c[p>>2]|0));i=j;return}else{C=c[b>>2]|0;do{if(jd[c[(c[C>>2]|0)+40>>2]&511](C)|0){o=47}else{C=c[b>>2]|0;if(jd[c[(c[C>>2]|0)+36>>2]&511](C)|0){o=47;break}m=b+8|0;l=0}}while(0);if((o|0)==47){m=b+8|0;c[e>>2]=ye(k+1|0,c[m>>2]|0)|0;l=1}if((c[m>>2]|0)<=0){i=j;return}q=k+1|0;r=(k|0)<0;B=+(k|0);p=0;do{t=ye(q,4)|0;f=b+20+(p<<2)|0;c[f>>2]=t;b:do{if(!r){o=b+152+(p<<3)|0;n=b+408+(p<<3)|0;s=0;while(1){D=+h[o>>3]+ +(s|0)*+h[n>>3]/B;c[t+(s<<2)>>2]=~~(D*65536.0);if(l){t=~~(D*255.0+.5);if((t|0)<0){t=0}else{t=(t|0)>255?-1:t&255}C=(da(c[m>>2]|0,s)|0)+p|0;a[(c[e>>2]|0)+C|0]=t}if((s|0)>=(k|0)){break b}t=c[f>>2]|0;s=s+1|0}}}while(0);p=p+1|0;}while((p|0)<(c[m>>2]|0));i=j;return}}function nB(a){a=a|0;var b=0,d=0;b=i;d=c[a>>2]|0;if((d|0)==0){d=0}else{fdfd[c[(c[d>>2]|0)+4>>2]&511](d)}d=c[a+120>>2]|0;if((d|0)!=0){fd[c[(c[d>>2]|0)+4>>2]&511](d)}d=c[a+380>>2]|0;if((d|0)!=0){fd[c[(c[d>>2]|0)+4>>2]&511](d)}d=c[a+384>>2]|0;if((d|0)!=0){fd[c[(c[d>>2]|0)+4>>2]&511](d)}d=c[a+412>>2]|0;if((d|0)!=0){fd[c[(c[d>>2]|0)+4>>2]&511](d)}d=c[a+416>>2]|0;if((d|0)!=0){fd[c[(c[d>>2]|0)+4>>2]&511](d)}d=c[a+420>>2]|0;if((d|0)!=0){fd[c[(c[d>>2]|0)+4>>2]&511](d)}d=c[a+424>>2]|0;if((d|0)!=0){fd[c[(c[d>>2]|0)+4>>2]&511](d)}Fe(c[a+440>>2]|0);d=c[a+588>>2]|0;if((d|0)!=0){f=d+28|0;g=c[f>>2]|0;e=d+24|0;j=c[e>>2]|0;if((g|0)>0){h=0;do{k=c[j+(h<<2)>>2]|0;if((k|0)!=0){Fe(c[k>>2]|0);Fe(c[k+4>>2]|0);Fe(c[k+8>>2]|0);HW(k);j=c[e>>2]|0;g=c[f>>2]|0}h=h+1|0;}while((h|0)<(g|0))}Fe(j);HW(d)}d=c[a+656>>2]|0;if((d|0)!=0){EB(d);HW(d)}a=c[a+484>>2]|0;if((a|0)==0){i=b;return}Yx(a);i=b;return}function FB(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;d=i;$W(a|0,b|0,664)|0;e=a+116|0;if((c[e>>2]|0)!=0){f=c[b+116>>2]|0;c[e>>2]=jd[c[(c[f>>2]|0)+8>>2]&511](f)|0}e=a+120|0;if((c[e>>2]|0)!=0){f=c[b+120>>2]|0;c[e>>2]=jd[c[(c[f>>2]|0)+8>>2]&511](f)|0}e=a+380|0;if((c[e>>2]|0)!=0){f=c[b+380>>2]|0;c[e>>2]=jd[c[(c[f>>2]|0)+8>>2]&511](f)|0}e=a+384|0;if((c[e>>2]|0)!=0){f=c[b+384>>2]|0;c[e>>2]=jd[c[(c[f>>2]|0)+8>>2]&511](f)|0}e=a+412|0;if((c[e>>2]|0)!=0){f=c[b+412>>2]|0;c[e>>2]=jd[c[(c[f>>2]|0)+8>>2]&511](f)|0}e=a+416|0;if((c[e>>2]|0)!=0){f=c[b+416>>2]|0;c[e>>2]=jd[c[(c[f>>2]|0)+8>>2]&511](f)|0}e=a+420|0;if((c[e>>2]|0)!=0){f=c[b+420>>2]|0;c[e>>2]=jd[c[(c[f>>2]|0)+8>>2]&511](f)|0}e=a+424|0;if((c[e>>2]|0)!=0){f=c[b+424>>2]|0;c[e>>2]=jd[c[(c[f>>2]|0)+8>>2]&511](f)|0}e=a+444|0;f=c[e>>2]|0;if((f|0)>0){f=ye(f,8)|0;c[a+440>>2]=f;$W(f|0,c[b+440>>2]|0,c[e>>2]<<3|0)|0}b=c[a+484>>2]|0;if((b|0)==0){f=a+656|0;c[f>>2]=0;i=d;return}Xx(b);f=a+656|0;c[f>>2]=0;i=d;return}function GB(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;d=i;a=a+588|0;e=c[a>>2]|0;if((e|0)==0){l=a;c[l>>2]=b;i=d;return}g=e+28|0;h=c[g>>2]|0;f=e+24|0;k=c[f>>2]|0;if((h|0)>0){j=0;do{l=c[k+(j<<2)>>2]|0;if((l|0)!=0){Fe(c[l>>2]|0);Fe(c[l+4>>2]|0);Fe(c[l+8>>2]|0);HW(l);k=c[f>>2]|0;h=c[g>>2]|0}j=j+1|0;}while((j|0)<(h|0))}Fe(k);HW(e);l=a;c[l>>2]=b;i=d;return}function HB(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=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;f=i;q=+h[a+16>>3];k=+h[a+40>>3];o=+h[a+24>>3];n=+h[a+32>>3];t=1.0/(q*k-o*n);r=k*t;s=-0.0-o*t;l=-0.0-n*t;m=q*t;g=+h[a+56>>3];p=+h[a+48>>3];k=t*(n*g-k*p);g=t*(o*p-q*g);q=+h[a+624>>3];p=r*q;o=+h[a+632>>3];t=o*l;n=k+(p+t);q=q*s;o=m*o;u=g+(q+o);j=+h[a+648>>3];l=j*l;p=k+(p+l);j=m*j;q=g+(q+j);do{if(p<n){m=n}else{if(p<=n){m=n;p=n;break}m=p;p=n}}while(0);do{if(q<u){n=u}else{if(q<=u){n=u;q=u;break}n=q;q=u}}while(0);u=+h[a+640>>3];r=r*u;t=k+(r+t);s=u*s;o=g+(s+o);do{if(t<p){p=t}else{if(t<=m){break}m=t}}while(0);do{if(o<q){q=o}else{if(o<=n){break}n=o}}while(0);k=k+(r+l);g=g+(s+j);do{if(k<p){p=k}else{if(k<=m){break}m=k}}while(0);do{if(g<q){q=g}else{if(g<=n){break}n=g}}while(0);h[b>>3]=p;h[c>>3]=q;h[d>>3]=m;h[e>>3]=n;i=f;return}function IB(a,b,c,d,e,f,g){a=a|0;b=+b;c=+c;d=+d;e=+e;f=+f;g=+g;h[a+16>>3]=b;h[a+24>>3]=c;h[a+32>>3]=d;h[a+40>>3]=e;h[a+48>>3]=f;h[a+56>>3]=g;i=i;return}function JB(a,b,c,d,e,f,g){a=a|0;b=+b;c=+c;d=+d;e=+e;f=+f;g=+g;var j=0.0,k=0.0,l=0,m=0.0,n=0.0,o=0,p=0,q=0;q=a+16|0;n=+h[q>>3];p=a+24|0;k=+h[p>>3];o=a+32|0;m=+h[o>>3];l=a+40|0;j=+h[l>>3];h[q>>3]=n*b+m*c;h[p>>3]=k*b+j*c;h[o>>3]=n*d+m*e;h[l>>3]=k*d+j*e;l=a+48|0;h[l>>3]=n*f+m*g+ +h[l>>3];a=a+56|0;h[a>>3]=k*f+j*g+ +h[a>>3];i=i;return}function KB(a,b,c){a=a|0;b=+b;c=+c;var d=0;d=a+48|0;h[d>>3]=+h[d>>3]+b;d=a+56|0;h[d>>3]=+h[d>>3]+c;d=a+624|0;h[d>>3]=+h[d>>3]+b;d=a+632|0;h[d>>3]=+h[d>>3]+c;d=a+640|0;h[d>>3]=+h[d>>3]+b;a=a+648|0;h[a>>3]=+h[a>>3]+c;i=i;return}function LB(a,b){a=a|0;b=b|0;var d=0,e=0;d=i;a=a+116|0;e=c[a>>2]|0;if((e|0)!=0){fd[c[(c[e>>2]|0)+4>>2]&511](e)}c[a>>2]=b;i=d;return}function MB(a,b){a=a|0;b=b|0;var d=0,e=0;d=i;a=a+120|0;e=c[a>>2]|0;if((e|0)!=0){fd[c[(c[e>>2]|0)+4>>2]&511](e)}c[a>>2]=b;i=d;return}function NB(a,b){a=a|0;b=b|0;var d=0,e=0;d=i;a=a+380|0;e=c[a>>2]|0;if((e|0)!=0){fd[c[(c[e>>2]|0)+4>>2]&511](e)}c[a>>2]=b;i=d;return}function OB(a,b){a=a|0;b=b|0;var d=0,e=0;d=i;a=a+384|0;e=c[a>>2]|0;if((e|0)!=0){fd[c[(c[e>>2]|0)+4>>2]&511](e)}c[a>>2]=b;i=d;return}function PB(a,b,d){a=a|0;b=b|0;d=+d;var e=0,f=0,g=0;e=i;f=a+484|0;g=c[f>>2]|0;if((g|0)!=0){Yx(g)}c[f>>2]=b;h[a+488>>3]=d;i=e;return}function QB(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;d=i;f=a+412|0;e=c[f>>2]|0;if((e|0)!=0){fd[c[(c[e>>2]|0)+4>>2]&511](e)}c[f>>2]=c[b>>2];e=a+416|0;f=c[e>>2]|0;if((f|0)!=0){fd[c[(c[f>>2]|0)+4>>2]&511](f)}c[e>>2]=c[b+4>>2];e=a+420|0;f=c[e>>2]|0;if((f|0)!=0){fd[c[(c[f>>2]|0)+4>>2]&511](f)}c[e>>2]=c[b+8>>2];a=a+424|0;e=c[a>>2]|0;if((e|0)==0){e=b+12|0;e=c[e>>2]|0;f=a;c[f>>2]=e;i=d;return}fd[c[(c[e>>2]|0)+4>>2]&511](e);e=b+12|0;e=c[e>>2]|0;f=a;c[f>>2]=e;i=d;return}function RB(a,b,d,e){a=a|0;b=b|0;d=d|0;e=+e;var f=0,g=0,j=0;f=i;g=a+440|0;j=c[g>>2]|0;if((j|0)!=0){Fe(j)}c[g>>2]=b;c[a+444>>2]=d;h[a+448>>3]=e;i=f;return}function SB(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0;d=i;e=b+588|0;b=c[e>>2]|0;if((b|0)!=0){g=b+28|0;h=c[g>>2]|0;f=b+24|0;k=c[f>>2]|0;if((h|0)>0){j=0;do{l=c[k+(j<<2)>>2]|0;if((l|0)!=0){Fe(c[l>>2]|0);Fe(c[l+4>>2]|0);Fe(c[l+8>>2]|0);HW(l);k=c[f>>2]|0;h=c[g>>2]|0}j=j+1|0;}while((j|0)<(h|0))}Fe(k);HW(b)}l=FW(40)|0;a[l]=0;c[l+32>>2]=16;c[l+28>>2]=0;bX(l+8|0,0,16)|0;c[l+24>>2]=ye(16,4)|0;c[e>>2]=l;i=d;return}function TB(a){a=a|0;var b=0,d=0,e=0,f=0,g=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,v=0.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.0;b=i;m=c[a+588>>2]|0;d=c[m+28>>2]|0;if((d|0)>0){e=a+16|0;f=a+32|0;g=a+48|0;j=a+24|0;k=a+40|0;l=a+56|0;m=c[m+24>>2]|0;n=0;y=0.0;A=0.0;z=0.0;B=0.0;do{u=c[m+(n<<2)>>2]|0;p=c[u+12>>2]|0;if((p|0)>0){o=c[u>>2]|0;u=c[u+4>>2]|0;s=+h[e>>3];r=+h[f>>3];t=+h[g>>3];w=+h[j>>3];v=+h[k>>3];q=+h[l>>3];x=0;C=B;while(1){E=+h[o+(x<<3)>>3];B=+h[u+(x<<3)>>3];D=t+(E*s+B*r);B=q+(E*w+B*v);do{if((x|n|0)==0){y=D;A=D;z=B}else{do{if(D<A){A=D}else{if(D<=y){break}y=D}}while(0);if(B<C){break}if(B<=z){B=C;break}z=B;B=C}}while(0);x=x+1|0;if((x|0)<(p|0)){C=B}else{break}}}n=n+1|0;}while((n|0)<(d|0))}else{y=0.0;A=0.0;z=0.0;B=0.0}d=a+624|0;if(A>+h[d>>3]){h[d>>3]=A}d=a+632|0;if(B>+h[d>>3]){h[d>>3]=B}d=a+640|0;if(y<+h[d>>3]){h[d>>3]=y}a=a+648|0;if(z>=+h[a>>3]){i=b;return}h[a>>3]=z;i=b;return}function UB(a){a=a|0;var b=0,d=0,e=0,f=0,g=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,x=0,y=0.0,z=0.0,A=0.0,B=0.0,C=0.0,D=0.0,E=0.0;b=i;m=c[a+588>>2]|0;f=c[m+28>>2]|0;e=a+16|0;d=a+32|0;if((f|0)>0){j=a+48|0;k=a+24|0;g=a+40|0;l=a+56|0;m=c[m+24>>2]|0;n=0;z=0.0;B=0.0;y=0.0;A=0.0;do{w=c[m+(n<<2)>>2]|0;p=c[w+12>>2]|0;if((p|0)>0){o=c[w>>2]|0;w=c[w+4>>2]|0;u=+h[e>>3];t=+h[d>>3];v=+h[j>>3];r=+h[k>>3];q=+h[g>>3];s=+h[l>>3];x=0;C=A;while(1){E=+h[o+(x<<3)>>3];A=+h[w+(x<<3)>>3];D=v+(E*u+A*t);A=s+(E*r+A*q);do{if((x|n|0)==0){z=D;B=D;y=A}else{do{if(D<B){B=D}else{if(D<=z){break}z=D}}while(0);if(A<C){break}if(A<=y){A=C;break}y=A;A=C}}while(0);x=x+1|0;if((x|0)<(p|0)){C=A}else{break}}}n=n+1|0;}while((n|0)<(f|0))}else{g=a+40|0;z=0.0;B=0.0;y=0.0;A=0.0}r=+S(+(+h[e>>3]));q=+S(+(+h[d>>3]));t=+h[a+432>>3]*.5;q=t*(r>q?r:q);s=B-q;q=z+q;u=+S(+(+h[g>>3]));t=t*(r>u?r:u);r=y+t;t=A-t;d=a+624|0;if(s>+h[d>>3]){h[d>>3]=s}d=a+632|0;if(t>+h[d>>3]){h[d>>3]=t}d=a+640|0;if(q<+h[d>>3]){h[d>>3]=q}a=a+648|0;if(r>=+h[a>>3]){i=b;return}h[a>>3]=r;i=b;return}function VB(a,b,c){a=a|0;b=+b;c=+c;var d=0.0,e=0;d=+h[a+504>>3]*b+ +h[a+520>>3]*c;e=a+592|0;h[e>>3]=+h[a+496>>3]*b+ +h[a+512>>3]*c+ +h[e>>3];a=a+600|0;h[a>>3]=+h[a>>3]+d;i=i;return}function WB(a,b,c){a=a|0;b=+b;c=+c;var d=0;d=a+592|0;h[d>>3]=+h[d>>3]+b;a=a+600|0;h[a>>3]=+h[a>>3]+c;i=i;return}function XB(a){a=a|0;var b=0,d=0;d=i;b=FW(664)|0;FB(b,a);c[b+656>>2]=a;i=d;return b|0}function YB(a){a=a|0;var b=0,d=0,e=0,f=0;b=i;e=a+656|0;d=c[e>>2]|0;if((d|0)==0){e=a;i=b;return e|0}f=a+588|0;c[d+588>>2]=c[f>>2];h[d+592>>3]=+h[a+592>>3];h[d+600>>3]=+h[a+600>>3];h[d+608>>3]=+h[a+608>>3];h[d+616>>3]=+h[a+616>>3];c[f>>2]=0;c[e>>2]=0;EB(a);HW(a);e=d;i=b;return e|0}function ZB(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;a=i;f=i;i=i+8|0;g=f;j=i;i=i+16|0;h=j;c[j>>2]=13;k=h+8|0;c[k>>2]=0;c[k+4>>2]=0;l=c[b>>2]|0;if((l|0)==4){f=b+8|0;g=0;while(1){b=g+1|0;if((Qc(c[f>>2]|0,c[171536+(g<<3)>>2]|0)|0)==0){break}if((b|0)<17){g=b}else{d=0;e=16;break}}if((e|0)==16){i=a;return d|0}c[d>>2]=c[171540+(g<<3)>>2];n=1;i=a;return n|0}else if((l|0)==6){e=b+8|0;l=0;a:while(1){m=c[e>>2]|0;if((l|0)>=(c[m+12>>2]|0)){e=15;break}ut(m,l,h)|0;if((c[j>>2]|0)==4){m=0}else{e=10;break}while(1){n=m+1|0;if((Qc(c[k>>2]|0,c[171536+(m<<3)>>2]|0)|0)==0){e=13;break a}if((n|0)<17){m=n}else{break}}Of(h);m=c[b>>2]|0;if((m|0)==6){l=l+1|0}else{e=7;break}}if((e|0)==7){c[f>>2]=m;c[g+4>>2]=6;Qe(0,172720,g);tc()}else if((e|0)==10){Of(h);n=0;i=a;return n|0}else if((e|0)==13){Of(h);c[d>>2]=c[171540+(m<<3)>>2];n=1;i=a;return n|0}else if((e|0)==15){c[d>>2]=0;n=1;i=a;return n|0}}else{n=0;i=a;return n|0}return 0}function _B(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;i=i;return}function $B(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;i=i;return}function aC(a){a=a|0;i=i;return 0}function bC(a){a=a|0;i=i;return 0}function cC(a){a=a|0;i=i;return 0}function dC(a){a=a|0;i=i;return 0}function eC(a){a=a|0;i=i;return-1}function fC(a){a=a|0;i=i;return-1}function gC(a){a=a|0;i=i;return 1}function hC(a){a=a|0;i=i;return 2}function iC(a){a=a|0;i=i;return-1}function jC(a){a=a|0;i=i;return-1}function kC(a){a=a|0;i=i;return 3}function lC(a){a=a|0;i=i;return 4}function mC(a){a=a|0;i=i;return 4}function nC(a){a=a|0;i=i;return 10}function oC(a){a=a|0;i=i;return 0}function pC(a){a=a|0;i=i;return 1}function qC(a){a=a|0;i=i;return 1}function rC(a){a=a|0;i=i;return 3}function sC(a){a=a|0;i=i;return 3}function tC(a){a=a|0;i=i;return 5}function uC(a){a=a|0;i=i;return 3}function vC(a){a=a|0;i=i;return 6}function wC(a){a=a|0;i=i;return c[a+4>>2]|0}function xC(a){a=a|0;i=i;return 7}function yC(a){a=a|0;i=i;return-1}function zC(a){a=a|0;i=i;return 1}function AC(a){a=a|0;i=i;return 8}function BC(a){a=a|0;i=i;return 1}function CC(b){b=b|0;i=i;return(a[b+16|0]&1)!=0|0}function DC(a){a=a|0;i=i;return 9}function EC(a){a=a|0;i=i;return c[a+4>>2]|0}function FC(b){b=b|0;i=i;return(a[b+144|0]&1)!=0|0}function GC(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,k=0,l=0,m=0,n=0,o=0,p=0,q=0;h=i;j=i;i=i+8|0;l=i;i=i+8|0;k=l;q=i;i=i+8|0;p=q;c[a+16>>2]=sE(d)|0;g=a+20|0;c[g>>2]=rE(d)|0;c[a+24>>2]=tE(d)|0;c[a+36>>2]=qE(d)|0;o=pE(d)|0;n=a+28|0;c[n>>2]=o;if((o|0)<0){m=3}else{if((o|0)>=(c[e+16>>2]|0)){m=3}}if((m|0)==3){c[q>>2]=o;Qe(-1,172872,p);c[n>>2]=0;o=0}c[a+32>>2]=c[(kn(e,o)|0)>>2];m=c[g>>2]|0;if((m|0)>536870910){c[l>>2]=m;Qe(-1,172944,k);c[g>>2]=0;m=0}q=a+96|0;c[q>>2]=ze(m,4)|0;m=a+100|0;c[m>>2]=ze(c[g>>2]|0,4)|0;p=a+104|0;c[p>>2]=ze(c[g>>2]|0,4)|0;o=a+108|0;c[o>>2]=ze(c[g>>2]|0,4)|0;n=a+112|0;c[n>>2]=ze(c[g>>2]|0,4)|0;l=a+116|0;c[l>>2]=ze(c[g>>2]|0,4)|0;k=ze(c[g>>2]|0,4)|0;c[a+120>>2]=k;do{if((c[q>>2]|0)!=0){if((c[m>>2]|0)==0){break}if((c[p>>2]|0)==0){break}if((c[o>>2]|0)==0){break}if((c[n>>2]|0)==0){break}m=c[l>>2]|0;if((m|0)==0|(k|0)==0){break}q=c[g>>2]<<2;p=m;bX(p|0,0,q|0)|0;q=a+124|0;bX(q|0,0,24)|0;HC(a,b,d,e,f);i=h;return}}while(0);Qe(-1,172992,j);c[g>>2]=0;q=0;p=c[l>>2]|0;bX(p|0,0,q|0)|0;q=a+124|0;bX(q|0,0,24)|0;HC(a,b,d,e,f);i=h;return}function HC(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,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0;l=i;r=i;i=i+8|0;n=i;i=i+8|0;o=i;i=i+8|0;p=o;t=i;i=i+8|0;u=t;v=i;i=i+8|0;w=v;q=i;i=i+16|0;k=q;j=i;i=i+8|0;m=j;c[b>>2]=lE(e)|0;B=b+4|0;c[B>>2]=mE(e)|0;A=b+8|0;c[A>>2]=nE(e)|0;z=oE(e)|0;x=b+12|0;c[x>>2]=z;c[q>>2]=13;e=k+8|0;c[e>>2]=0;y=e+4|0;c[y>>2]=0;C=c[B>>2]|0;z=z+C|0;if((z|0)==0){s=0}else{if((z|0)<0){wn(0)}s=FW(z)|0;D=s;C=z;while(1){if((D|0)==0){D=0}else{a[D]=0}C=C+ -1|0;if((C|0)==0){break}else{D=D+1|0}}C=c[B>>2]|0}c[e>>2]=0;c[y>>2]=0;c[q>>2]=5;C=Cd[c[(c[d>>2]|0)+96>>2]&63](d,c[b>>2]|0,0,C,k)|0;fd[c[(c[C>>2]|0)+12>>2]&511](C);if((c[B>>2]|0)==0){D=s}else{F=0;E=s;while(1){D=E+1|0;a[E]=jd[c[(c[C>>2]|0)+20>>2]&511](C)|0;F=F+1|0;if(F>>>0<(c[B>>2]|0)>>>0){E=D}else{break}}}if((C|0)!=0){fd[c[(c[C>>2]|0)+4>>2]&511](C)}A=c[A>>2]|0;do{if((A|0)!=0){B=c[x>>2]|0;if((B|0)==0){break}c[e>>2]=0;c[y>>2]=0;c[q>>2]=5;d=Cd[c[(c[d>>2]|0)+96>>2]&63](d,A,0,B,k)|0;fd[c[(c[d>>2]|0)+12>>2]&511](d);if((c[x>>2]|0)!=0){A=0;while(1){a[D]=jd[c[(c[d>>2]|0)+20>>2]&511](d)|0;A=A+1|0;if(A>>>0<(c[x>>2]|0)>>>0){D=D+1|0}else{break}}}if((d|0)==0){break}fd[c[(c[d>>2]|0)+4>>2]&511](d)}}while(0);c[e>>2]=0;c[y>>2]=0;c[q>>2]=5;E=FW(56)|0;Tj(E,s,0,z,k);c[e>>2]=0;c[y>>2]=0;c[q>>2]=5;x=FW(56)|0;F=FW(168)|0;bE(F,f,E);aG(x,f,F,1);do{if((c[(cG(x,k,0,0,0,0,0)|0)>>2]|0)==1){f=c[q>>2]|0;if((f|0)!=1){c[v>>2]=f;c[w+4>>2]=1;Qe(0,173432,w);tc()}v=c[e>>2]|0;Of(k);if((c[(cG(x,k,0,0,0,0,0)|0)>>2]|0)!=1){h=40;break}w=c[q>>2]|0;if((w|0)!=1){c[t>>2]=w;c[u+4>>2]=1;Qe(0,173432,u);tc()}t=c[e>>2]|0;Of(k);u=cG(x,k,0,0,0,0,0)|0;if((c[u>>2]|0)!=10){h=40;break}if((Qc(c[u+8>>2]|0,173040)|0)!=0){h=40;break}Of(k);if((g|0)==0){u=0;w=0;g=0}else{w=jd[c[(c[g>>2]|0)+32>>2]&511](g)|0;u=jd[c[(c[g>>2]|0)+48>>2]&511](g)|0;g=jd[c[(c[g>>2]|0)+36>>2]&511](g)|0}if((c[(cG(x,k,w,u,g,v,t)|0)>>2]|0)!=8){h=40;break}q=c[q>>2]|0;if((q|0)!=8){c[o>>2]=q;c[p+4>>2]=8;Qe(0,173432,p);tc()}o=c[e>>2]|0;F=jd[c[(c[o>>2]|0)+72>>2]&511](o)|0;c[j>>2]=0;F=_u(F,173048,0,m)|0;if(!(F&(c[j>>2]|0)>0)){Qe(-1,173056,n);break}fd[c[(c[o>>2]|0)+12>>2]&511](o);JC(b,o);fdfd[c[(c[l>>2]|0)+4>>2]&511](l);v=0;i=j;return v|0}function VC(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0;f=i;k=i;i=i+8|0;g=b+12|0;do{if((c[g>>2]|0)<(d|0)){h=b+16|0;j=c[h>>2]|0;if((j|0)<1){break}if((2147483646/(j|0)|0|0)<=(d|0)){break}k=b+20|0;b=xe(c[k>>2]|0,(da(j,d)|0)+1|0)|0;c[k>>2]=b;l=c[g>>2]|0;j=c[h>>2]|0;b=b+(da(j,l)|0)|0;j=da(d-l|0,j)|0;if((e|0)==0){bX(b|0,0,j|0)|0}else{bX(b|0,-1,j|0)|0}c[g>>2]=d;l=da(c[h>>2]|0,d)|0;a[(c[k>>2]|0)+l|0]=0;i=f;return}}while(0);Qe(-1,177872,k);l=b+20|0;Fe(c[l>>2]|0);c[l>>2]=0;i=f;return}function WC(b,e,f,g,h){b=b|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,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;j=i;if((g|0)==-2147483648){i=j;return}z=(g|0)<0?0-g|0:0;l=c[e+12>>2]|0;k=c[b+12>>2]|0;m=(l+g|0)>(k|0)?k-g|0:l;if((z|0)>=(m|0)){i=j;return}l=(f|0)>-1;k=l?f&-8:0;o=(c[e+8>>2]|0)+f|0;n=c[b+8>>2]|0;y=(o|0)>(n|0)?n:o;if((k|0)>=(y|0)){i=j;return}o=f&7;p=y&7;n=255>>>p;p=(p|0)==0?255:255<<8-p;s=p&255>>>o;r=(k|0)==(y+ -1&-8|0);q=b+20|0;u=b+16|0;b=f>>3;t=e+20|0;e=e+16|0;v=s^255;f=0-f>>3;x=k+8|0;w=255<<8-o;y=y+ -8|0;do{D=c[q>>2]|0;B=da(c[u>>2]|0,z+g|0)|0;A=D+B|0;do{if(r){if(l){A=D+(B+b)|0;B=(c[t>>2]|0)+(da(c[e>>2]|0,z)|0)|0;D=a[A]|0;C=D&255;B=d[B]|0;switch(h|0){case 4:{D=(B>>>o&s|C&v)&255;break};case 2:{D=(B>>>o&p^C)&255;break};case 3:{D=((B^255)>>>o&p^C)&255;break};case 0:{D=(B>>>o&p|C)&255;break};case 1:{D=((B|65280)>>>o|n)&C&255;break};default:{}}a[A]=D;break}else{D=(c[t>>2]|0)+((da(c[e>>2]|0,z)|0)+f)|0;C=a[A]|0;B=C&255;D=d[D]|0;switch(h|0){case 0:{C=(D&p|B)&255;break};case 2:{C=(D&p^B)&255;break};case 3:{C=((D^255)&p^B)&255;break};case 1:{C=(D|n)&B&255;break};case 4:{C=(D&p|B&n)&255;break};default:{}}a[A]=C;break}}else{if(l){A=B+b|0;F=D+A|0;C=c[t>>2]|0;B=da(c[e>>2]|0,z)|0;E=d[C+B|0]|0;G=a[F]|0;H=G&255;switch(h|0){case 4:{G=(H&w|E>>>o)&255;break};case 1:{G=(E|65280)>>>o&H&255;break};case 2:{G=(H^E>>>o)&255;break};case 0:{G=(H|E>>>o)&255;break};case 3:{G=((E^255)>>>o^H)&255;break};default:{}}a[F]=G;A=D+(A+1)|0;D=E;E=C+(B+1)|0;B=x}else{B=c[t>>2]|0;E=(da(c[e>>2]|0,z)|0)+f|0;D=d[B+E|0]|0;E=B+(E+1)|0;B=k}G=a[A]|0;C=G&255;F=E+1|0;E=d[E]|0;D=(E|D<<8)>>>o;if((B|0)<(y|0)){if((h|0)==1){H=A;while(1){A=H+1|0;a[H]=D&C;B=B+8|0;H=a[A]|0;C=H&255;G=d[F]|0;D=(G|E<<8)>>>o;if((B|0)<(y|0)){H=A;F=F+1|0;E=G}else{B=H;break}}}else if((h|0)==0){H=A;while(1){A=H+1|0;a[H]=D|C;B=B+8|0;H=a[A]|0;C=H&255;G=d[F]|0;D=(G|E<<8)>>>o;if((B|0)<(y|0)){H=A;F=F+1|0;E=G}else{B=H;break}}}else{H=A;while(1){if((h|0)==4){G=D&255}else if((h|0)==3){G=(C^255^D)&255}else if((h|0)==2){G=(D^C)&255}A=H+1|0;a[H]=G;B=B+8|0;G=a[A]|0;C=G&255;H=d[F]|0;D=(H|E<<8)>>>o;if((B|0)<(y|0)){E=H;F=F+1|0;H=A}else{B=G;break}}}}else{B=G}switch(h|0){case 0:{B=(D&p|C)&255;break};case 1:{B=(D|n)&C&255;break};case 4:{B=(D&p|C&n)&255;break};case 3:{B=((D^255)&p^C)&255;break};case 2:{B=(D&p^C)&255;break};default:{}}a[A]=B}}while(0);z=z+1|0;}while((z|0)<(m|0));i=j;return}function XC(a){a=a|0;var b=0;b=i;YC(a);HW(a);i=b;return}function YC(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,j=0;b=i;c[a>>2]=177904;e=a+8|0;f=c[e>>2]|0;d=a+12|0;h=c[d>>2]|0;if((f|0)!=0){g=0;do{j=c[h+(g<<2)>>2]|0;if((j|0)!=0){fd[c[(c[j>>2]|0)+4>>2]&511](j);h=c[d>>2]|0;f=c[e>>2]|0}g=g+1|0;}while(g>>>0<f>>>0)}Fe(h);d=c[a+16>>2]|0;if((d|0)!=0){yI(d);HW(d)}a=c[a+20>>2]|0;if((a|0)==0){i=b;return}yI(a);HW(a);i=b;return}function ZC(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,j=0;b=i;c[a>>2]=177928;e=a+8|0;f=c[e>>2]|0;d=a+12|0;h=c[d>>2]|0;if((f|0)==0){j=h;Fe(j);HW(a);i=b;return}else{g=0}do{j=c[h+(g<<2)>>2]|0;if((j|0)!=0){fd[c[(c[j>>2]|0)+4>>2]&511](j);h=c[d>>2]|0;f=c[e>>2]|0}g=g+1|0;}while(g>>>0<f>>>0);Fe(h);HW(a);i=b;return}function _C(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0;b=i;c[a>>2]=177928;d=a+8|0;e=c[d>>2]|0;a=a+12|0;g=c[a>>2]|0;if((e|0)==0){h=g;Fe(h);i=b;return}else{f=0}do{h=c[g+(f<<2)>>2]|0;if((h|0)!=0){fdfd[c[(c[a>>2]|0)+4>>2]&511](a);i=b;return}function eD(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0;d=i;f=FW(16)|0;wo(f);c[b+60>>2]=f;e=b+56|0;if((c[b+16>>2]|0)==8){c[e>>2]=f;j=c[b+24>>2]|0;g=b+64|0;c[g>>2]=j;fd[c[(c[j>>2]|0)+12>>2]&511](j);j=b+76|0;h=c[j>>2]|0;c[h+24>>2]=c[g>>2];c[h+28>>2]=0;a[h+32|0]=0;h=b+144|0;c[c[h>>2]>>2]=c[g>>2];f=b+148|0;c[c[f>>2]>>2]=c[g>>2];fD(b);k=c[g>>2]|0;fd[c[(c[k>>2]|0)+16>>2]&511](k)}else{g=b+64|0;j=b+76|0;h=b+144|0;f=b+148|0}k=FW(16)|0;wo(k);c[e>>2]=k;e=c[b+8>>2]|0;c[g>>2]=e;fd[c[(c[e>>2]|0)+12>>2]&511](e);e=c[j>>2]|0;c[e+24>>2]=c[g>>2];c[e+28>>2]=0;a[e+32|0]=0;c[c[h>>2]>>2]=c[g>>2];c[c[f>>2]>>2]=c[g>>2];fD(b);e=c[b+48>>2]|0;if((e|0)==0){c[b+72>>2]=0;c[b+68>>2]=0;i=d;return}else{k=c[e+20>>2]|0;c[b+68>>2]=k;c[b+72>>2]=k+(da(c[e+16>>2]|0,c[e+12>>2]|0)|0);i=d;return}}function fD(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;l=i;k=i;i=i+8|0;h=i;i=i+8|0;g=i;i=i+8|0;f=g;e=i;i=i+8|0;d=i;i=i+8|0;j=a+64|0;o=c[j>>2]|0;o=jd[c[(c[o>>2]|0)+20>>2]&511](o)|0;if((o|0)==-1){i=l;return}b=a+48|0;a:while(1){n=c[j>>2]|0;n=jd[c[(c[n>>2]|0)+20>>2]&511](n)|0;if((n|0)==-1){n=78;break}m=c[j>>2]|0;m=jd[c[(c[m>>2]|0)+20>>2]&511](m)|0;if((m|0)==-1){n=78;break}p=c[j>>2]|0;p=jd[c[(c[p>>2]|0)+20>>2]&511](p)|0;if((p|0)==-1){n=78;break}n=n<<16|o<<24|m<<8|p;p=c[j>>2]|0;p=jd[c[(c[p>>2]|0)+20>>2]&511](p)|0;if((p|0)==-1){n=77;break}o=p&63;m=c[j>>2]|0;m=jd[c[(c[m>>2]|0)+20>>2]&511](m)|0;if((m|0)==-1){n=77;break}q=m>>>5;do{if((q|0)==7){r=c[j>>2]|0;r=jd[c[(c[r>>2]|0)+20>>2]&511](r)|0;if((r|0)==-1){n=77;break a}s=c[j>>2]|0;s=jd[c[(c[s>>2]|0)+20>>2]&511](s)|0;if((s|0)==-1){n=77;break a}q=c[j>>2]|0;q=jd[c[(c[q>>2]|0)+20>>2]&511](q)|0;if((q|0)==-1){n=77;break a}q=(r<<16|m<<24|s<<8|q)&536870911;m=(q+9|0)>>>3;if((m|0)==0){break}else{r=0}while(1){v=c[j>>2]|0;jd[c[(c[v>>2]|0)+20>>2]&511](v)|0;r=r+1|0;if(r>>>0<m>>>0){}else{break}}}}while(0);m=ye(q,4)|0;b:do{if(n>>>0<257){if((q|0)==0){break}else{r=0}do{s=c[j>>2]|0;s=jd[c[(c[s>>2]|0)+20>>2]&511](s)|0;if((s|0)==-1){n=76;break a}c[m+(r<<2)>>2]=s;r=r+1|0;}while(r>>>0<q>>>0)}else{r=(q|0)==0;if(n>>>0<65537){if(r){break}else{r=0}while(1){s=c[j>>2]|0;s=jd[c[(c[s>>2]|0)+20>>2]&511](s)|0;if((s|0)==-1){n=76;break a}t=c[j>>2]|0;t=jd[c[(c[t>>2]|0)+20>>2]&511](t)|0;if((t|0)==-1){n=76;break a}c[m+(r<<2)>>2]=t|s<<8;r=r+1|0;if(r>>>0>=q>>>0){break b}}}if(r){break}else{r=0}do{v=c[j>>2]|0;v=jd[c[(c[v>>2]|0)+20>>2]&511](v)|0;if((v|0)==-1){n=76;break a}u=c[j>>2]|0;u=jd[c[(c[u>>2]|0)+20>>2]&511](u)|0;if((u|0)==-1){n=76;break a}s=c[j>>2]|0;s=jd[c[(c[s>>2]|0)+20>>2]&511](s)|0;if((s|0)==-1){n=76;break a}t=c[j>>2]|0;t=jd[c[(c[t>>2]|0)+20>>2]&511](t)|0;if((t|0)==-1){n=76;break a}c[m+(r<<2)>>2]=u<<16|v<<24|s<<8|t;r=r+1|0;}while(r>>>0<q>>>0)}}while(0);r=c[j>>2]|0;r=(jd[c[(c[r>>2]|0)+20>>2]&511](r)|0)==-1;if((p&64|0)==0){if(r){n=76;break}}else{if(r){n=76;break}v=c[j>>2]|0;if((jd[c[(c[v>>2]|0)+20>>2]&511](v)|0)==-1){n=76;break}v=c[j>>2]|0;if((jd[c[(c[v>>2]|0)+20>>2]&511](v)|0)==-1){n=76;break}v=c[j>>2]|0;if((jd[c[(c[v>>2]|0)+20>>2]&511](v)|0)==-1){n=76;break}}p=c[j>>2]|0;p=jd[c[(c[p>>2]|0)+20>>2]&511](p)|0;if((p|0)==-1){n=76;break}r=c[j>>2]|0;r=jd[c[(c[r>>2]|0)+20>>2]&511](r)|0;if((r|0)==-1){n=76;break}s=c[j>>2]|0;s=jd[c[(c[s>>2]|0)+20>>2]&511](s)|0;if((s|0)==-1){n=76;break}t=c[j>>2]|0;t=jd[c[(c[t>>2]|0)+20>>2]&511](t)|0;if((t|0)==-1){n=76;break}r=r<<16|p<<24|s<<8|t;p=c[j>>2]|0;p=jd[c[(c[p>>2]|0)+48>>2]&511](p)|0;if((c[b>>2]|0)==0){if((o+ -4|0)>>>0<4|(o+ -20|0)>>>0<24){n=41;break}}c:do{switch(o|0){case 20:{pD(a,n,0,0,0,m,q);n=68;break};case 36:{qD(a,n,0,0,r);n=68;break};case 38:{qD(a,n,1,0,r);n=68;break};case 48:{sD(a,0);n=68;break};case 50:{if((r|0)==0){n=69;break c}else{n=0}while(1){v=c[j>>2]|0;jd[c[(c[v>>2]|0)+20>>2]&511](v)|0;n=n+1|0;if(n>>>0<r>>>0){}else{n=68;break}}break};case 40:{rD(a,n,0,0,0,m,q);n=68;break};case 42:{rD(a,n,1,0,0,m,q);n=68;break};case 22:{pD(a,n,1,0,0,m,q);n=68;break};case 6:{nD(a,n,1,0,0,m,q);n=68;break};case 7:{nD(a,n,1,0,0,m,q);n=68;break};case 0:{if(mD(a,n,0,m,q)|0){n=68}else{n=75;break a}break};case 39:{qD(a,n,1,0,r);n=68;break};case 52:{if((r|0)==0){n=69;break c}else{n=0}while(1){v=c[j>>2]|0;jd[c[(c[v>>2]|0)+20>>2]&511](v)|0;n=n+1|0;if(n>>>0<r>>>0){}else{n=68;break}}break};case 23:{pD(a,n,1,0,0,m,q);n=68;break};case 53:{tD(a,n,0);n=68;break};case 62:{if((r|0)==0){n=69;break c}else{n=0}while(1){v=c[j>>2]|0;jd[c[(c[v>>2]|0)+20>>2]&511](v)|0;n=n+1|0;if(n>>>0<r>>>0){}else{n=68;break}}break};case 16:{oD(a,n,r);n=68;break};case 43:{rD(a,n,1,0,0,m,q);n=68;break};case 4:{nD(a,n,0,0,0,m,q);n=68;break};default:{v=c[j>>2]|0;Qe(jd[c[(c[v>>2]|0)+48>>2]&511](v)|0,178152,e);if((r|0)==0){n=69;break c}else{n=0}while(1){v=c[j>>2]|0;n=n+1|0;if((jd[c[(c[v>>2]|0)+20>>2]&511](v)|0)==-1){n=76;break a}if(n>>>0<r>>>0){}else{n=68;break}}}}}while(0);if((n|0)==68){n=0;if((r|0)!=-1){n=69}}do{if((n|0)==69){o=c[j>>2]|0;o=p+r-(jd[c[(c[o>>2]|0)+48>>2]&511](o)|0)|0;if((o|0)>0){n=c[j>>2]|0;n=jd[c[(c[n>>2]|0)+48>>2]&511](n)|0;c[g>>2]=o;c[f+4>>2]=(o|0)>1?178232:178240;Qe(n,178192,f);do{v=c[j>>2]|0;jd[c[(c[v>>2]|0)+20>>2]&511](v)|0;o=o+ -1|0;}while((o|0)>0)}else{if((o|0)>=0){break}v=c[j>>2]|0;Qe(jd[c[(c[v>>2]|0)+48>>2]&511](v)|0,178248,h);break}}}while(0);Fe(m);o=c[j>>2]|0;o=jd[c[(c[o>>2]|0)+20>>2]&511](o)|0;if((o|0)==-1){n=78;break}}if((n|0)==41){v=c[j>>2]|0;Qe(jd[c[(c[v>>2]|0)+48>>2]&511](v)|0,178072,d);n=75}else if((n|0)==76){Fe(m);n=77}else if((n|0)==78){i=l;return}if((n|0)==75){Fe(m);i=l;return}else if((n|0)==77){v=c[j>>2]|0;Qe(jd[c[(c[v>>2]|0)+48>>2]&511](v)|0,178296,k);i=l;return}}function gD(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,j=0;b=i;e=a+48|0;d=c[e>>2]|0;if((d|0)!=0){fd[c[(c[d>>2]|0)+4>>2]&511](d);c[e>>2]=0}d=a+56|0;f=c[d>>2]|0;if((f|0)!=0){e=f+8|0;h=c[e>>2]|0;if((h|0)>0){g=0;do{j=c[(c[f>>2]|0)+(g<<2)>>2]|0;if((j|0)!=0){fd[c[(c[j>>2]|0)+4>>2]&511](j);h=c[e>>2]|0}g=g+1|0;}while((g|0)<(h|0))}xo(f);HW(f);c[d>>2]=0}e=a+60|0;d=c[e>>2]|0;if((d|0)==0){j=a+72|0;c[j>>2]=0;j=a+68|0;c[j>>2]=0;wj(a);i=b;return}f=d+8|0;h=c[f>>2]|0;if((h|0)>0){g=0;do{j=c[(c[d>>2]|0)+(g<<2)>>2]|0;if((j|0)!=0){fd[c[(c[j>>2]|0)+4>>2]&511](j);h=c[f>>2]|0}g=g+1|0;}while((g|0)<(h|0))}xo(d);HW(d);c[e>>2]=0;j=a+72|0;c[j>>2]=0;j=a+68|0;c[j>>2]=0;wj(a);i=b;return}function hD(a){a=a|0;var b=0,e=0,f=0;b=i;f=a+68|0;e=c[f>>2]|0;if((e|0)==0){f=-1;i=b;return f|0}if(e>>>0>=(c[a+72>>2]|0)>>>0){f=-1;i=b;return f|0}c[f>>2]=e+1;f=(d[e]|0)^255;i=b;return f|0}function iD(a){a=a|0;var b=0,e=0;b=i;e=c[a+68>>2]|0;if((e|0)==0){e=-1;i=b;return e|0}if(e>>>0>=(c[a+72>>2]|0)>>>0){e=-1;i=b;return e|0}e=(d[e]|0)^255;i=b;return e|0}function jD(a){a=a|0;var b=0,d=0;b=i;d=c[a+48>>2]|0;if((d|0)==0){d=0;i=b;return d|0}d=(c[a+68>>2]|0)-(c[d+20>>2]|0)|0;i=b;return d|0}function kD(a,b,c){a=a|0;b=b|0;c=c|0;i=i;return 0}function lD(a,b){a=a|0;b=b|0;var d=0;d=i;b=c[a+8>>2]|0;b=Bd[c[(c[b>>2]|0)+60>>2]&255](b,1)|0;i=d;return b|0}function mD(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,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,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ba=0,ca=0,ea=0,fa=0,ga=0,ha=0,ia=0,ja=0,ka=0,la=0,ma=0,na=0,oa=0,pa=0,qa=0,ra=0,sa=0,ta=0,ua=0,va=0;e=i;S=i;i=i+8|0;Y=i;i=i+8|0;l=i;i=i+8|0;p=i;i=i+8|0;o=i;i=i+8|0;L=i;i=i+8|0;J=i;i=i+8|0;E=i;i=i+8|0;C=i;i=i+8|0;G=i;i=i+8|0;T=i;i=i+8|0;U=i;i=i+8|0;V=i;i=i+16|0;I=V;R=i;i=i+16|0;K=R;t=i;i=i+8|0;A=t;s=i;i=i+8|0;z=s;w=i;i=i+8|0;x=w;F=i;i=i+8|0;H=F;B=i;i=i+8|0;u=B;M=i;i=i+8|0;y=M;N=i;i=i+8|0;v=N;D=i;i=i+8|0;O=D;n=i;i=i+8|0;m=n;j=b+64|0;h=c[j>>2]|0;h=jd[c[(c[h>>2]|0)+20>>2]&511](h)|0;a:do{if((h|0)!=-1){k=c[j>>2]|0;k=jd[c[(c[k>>2]|0)+20>>2]&511](k)|0;if((k|0)==-1){break}h=k|h<<8;Q=h>>>10&3;P=h>>>12&1;r=k&2;aa=k>>>2&3;$=k>>>4&3;_=k&64;Z=k&128;X=h>>>8&1;h=h&512;k=(k&1|0)!=0;do{if(!k){W=c[j>>2]|0;W=jd[c[(c[W>>2]|0)+20>>2]&511](W)|0;if((W|0)==-1){V=0}else{c[V>>2]=(W&128|0)==0?W:W|-256;V=1}if((Q|0)!=0){if(!V){break a}V=c[j>>2]|0;V=jd[c[(c[V>>2]|0)+20>>2]&511](V)|0;if((V|0)==-1){break a}c[R>>2]=(V&128|0)==0?V:V|-256;break}if(!V){break a}V=c[j>>2]|0;V=jd[c[(c[V>>2]|0)+20>>2]&511](V)|0;if((V|0)==-1){break a}c[R>>2]=(V&128|0)==0?V:V|-256;R=c[j>>2]|0;R=jd[c[(c[R>>2]|0)+20>>2]&511](R)|0;if((R|0)==-1){break a}c[I+4>>2]=(R&128|0)==0?R:R|-256;R=c[j>>2]|0;R=jd[c[(c[R>>2]|0)+20>>2]&511](R)|0;if((R|0)==-1){break a}c[K+4>>2]=(R&128|0)==0?R:R|-256;R=c[j>>2]|0;R=jd[c[(c[R>>2]|0)+20>>2]&511](R)|0;if((R|0)==-1){break a}c[I+8>>2]=(R&128|0)==0?R:R|-256;R=c[j>>2]|0;R=jd[c[(c[R>>2]|0)+20>>2]&511](R)|0;if((R|0)==-1){break a}c[K+8>>2]=(R&128|0)==0?R:R|-256;R=c[j>>2]|0;R=jd[c[(c[R>>2]|0)+20>>2]&511](R)|0;if((R|0)==-1){break a}c[I+12>>2]=(R&128|0)==0?R:R|-256;R=c[j>>2]|0;R=jd[c[(c[R>>2]|0)+20>>2]&511](R)|0;if((R|0)==-1){break a}c[K+12>>2]=(R&128|0)==0?R:R|-256}}while(0);r=(r|0)!=0;if(r&(P|0)==0){R=c[j>>2]|0;R=jd[c[(c[R>>2]|0)+20>>2]&511](R)|0;if((R|0)==-1){break}c[t>>2]=(R&128|0)==0?R:R|-256;t=c[j>>2]|0;t=jd[c[(c[t>>2]|0)+20>>2]&511](t)|0;if((t|0)==-1){break}c[s>>2]=(t&128|0)==0?t:t|-256;s=c[j>>2]|0;s=jd[c[(c[s>>2]|0)+20>>2]&511](s)|0;if((s|0)==-1){break}c[A+4>>2]=(s&128|0)==0?s:s|-256;s=c[j>>2]|0;s=jd[c[(c[s>>2]|0)+20>>2]&511](s)|0;if((s|0)==-1){break}c[z+4>>2]=(s&128|0)==0?s:s|-256}R=c[j>>2]|0;R=jd[c[(c[R>>2]|0)+20>>2]&511](R)|0;if((R|0)==-1){break}t=c[j>>2]|0;t=jd[c[(c[t>>2]|0)+20>>2]&511](t)|0;if((t|0)==-1){break}s=c[j>>2]|0;s=jd[c[(c[s>>2]|0)+20>>2]&511](s)|0;if((s|0)==-1){break}V=c[j>>2]|0;V=jd[c[(c[V>>2]|0)+20>>2]&511](V)|0;if((V|0)==-1){break}t=t<<16|R<<24|s<<8|V;W=c[j>>2]|0;W=jd[c[(c[W>>2]|0)+20>>2]&511](W)|0;if((W|0)==-1){break}V=c[j>>2]|0;V=jd[c[(c[V>>2]|0)+20>>2]&511](V)|0;if((V|0)==-1){break}R=c[j>>2]|0;R=jd[c[(c[R>>2]|0)+20>>2]&511](R)|0;if((R|0)==-1){break}s=c[j>>2]|0;s=jd[c[(c[s>>2]|0)+20>>2]&511](s)|0;if((s|0)==-1){break}s=V<<16|W<<24|R<<8|s;ba=FW(16)|0;wo(ba);ca=(g|0)==0;do{if(ca){R=0}else{W=b+60|0;V=b+56|0;ea=0;R=0;b:while(1){fa=c[f+(ea<<2)>>2]|0;ha=c[W>>2]|0;ga=c[ha+8>>2]|0;c:do{if((ga|0)>0){ia=c[ha>>2]|0;ja=0;while(1){ha=c[ia+(ja<<2)>>2]|0;ja=ja+1|0;if((c[ha+4>>2]|0)==(fa|0)){break c}if((ja|0)<(ga|0)){}else{q=38;break}}}else{q=38}}while(0);d:do{if((q|0)==38){q=0;ha=c[V>>2]|0;ga=c[ha+8>>2]|0;if((ga|0)<=0){q=51;break b}ia=c[ha>>2]|0;ja=0;while(1){ha=c[ia+(ja<<2)>>2]|0;ja=ja+1|0;if((c[ha+4>>2]|0)==(fa|0)){break d}if((ja|0)<(ga|0)){}else{q=51;break b}}}}while(0);if((ha|0)==0){q=51;break}do{if((jd[c[(c[ha>>2]|0)+8>>2]&511](ha)|0)==1){fa=c[ha+8>>2]|0;if(R>>>0>~fa>>>0){q=46;break b}R=fa+R|0}else{if((jd[c[(c[ha>>2]|0)+8>>2]&511](ha)|0)!=3){break}yo(ba,ha)}}while(0);ea=ea+1|0;if(ea>>>0>=g>>>0){q=54;break}}if((q|0)==46){ua=c[j>>2]|0;Qe(jd[c[(c[ua>>2]|0)+48>>2]&511](ua)|0,178328,U);if((ba|0)==0){break a}xo(ba);HW(ba);break a}else if((q|0)==51){if((ba|0)==0){ua=0;i=e;return ua|0}xo(ba);HW(ba);ua=0;i=e;return ua|0}else if((q|0)==54){if(R>>>0<=~s>>>0){break}ua=c[j>>2]|0;Qe(jd[c[(c[ua>>2]|0)+48>>2]&511](ua)|0,178328,T);if((ba|0)==0){break a}xo(ba);HW(ba);break a}}}while(0);U=R+s|0;V=(U|0)==0;do{if(V){T=ye(U,4)|0;S=T;W=1}else{S=U+ -1|0;W=1;while(1){S=S>>>1;if((S|0)==0){break}else{W=W+1|0}}T=ye(U,4)|0;if(V){S=T;break}bX(T|0,0,U<<2|0)|0;S=T}}while(0);if(ca){ha=0}else{ca=b+60|0;ea=b+56|0;fa=0;ha=0;ga=0;do{ia=c[f+(fa<<2)>>2]|0;ja=c[ca>>2]|0;q=c[ja+8>>2]|0;e:do{if((q|0)>0){ja=c[ja>>2]|0;la=0;while(1){ka=c[ja+(la<<2)>>2]|0;la=la+1|0;if((c[ka+4>>2]|0)==(ia|0)){ia=ka;q=73;break e}if((la|0)<(q|0)){}else{q=68;break}}}else{q=68}}while(0);f:do{if((q|0)==68){q=0;ka=c[ea>>2]|0;ja=c[ka+8>>2]|0;if((ja|0)<=0){break}la=c[ka>>2]|0;ma=0;while(1){ka=c[la+(ma<<2)>>2]|0;ma=ma+1|0;if((c[ka+4>>2]|0)==(ia|0)){ia=ka;q=73;break f}if((ma|0)<(ja|0)){}else{break}}}}while(0);do{if((q|0)==73){q=0;if((ia|0)==0){break}if((jd[c[(c[ia>>2]|0)+8>>2]&511](ia)|0)!=1){break}ha=ia+8|0;if((c[ha>>2]|0)==0){ha=ia;break}ja=ia+12|0;la=0;ka=ga;while(1){ga=ka+1|0;c[S+(ka<<2)>>2]=c[(c[ja>>2]|0)+(la<<2)>>2];la=la+1|0;if(la>>>0<(c[ha>>2]|0)>>>0){ka=ga}else{ha=ia;break}}}}while(0);fa=fa+1|0;}while(fa>>>0<g>>>0)}g:do{if(k){g=178384;do{if((aa|0)==1){aa=178496;f=0;q=84}else if((aa|0)==0){aa=g;f=0;q=84}else{if((c[ba+8>>2]|0)==0){break}aa=c[(c[c[ba>>2]>>2]|0)+8>>2]|0;f=1;q=84}}while(0);do{if((q|0)==84){if(($|0)==0){g=178640}else if(($|0)==1){g=178768}else{if(f>>>0>=(c[ba+8>>2]|0)>>>0){break}g=c[(c[(c[ba>>2]|0)+(f<<2)>>2]|0)+8>>2]|0;f=f+1|0}if((_|0)==0){_=178928}else{if(f>>>0>=(c[ba+8>>2]|0)>>>0){break}_=c[(c[(c[ba>>2]|0)+(f<<2)>>2]|0)+8>>2]|0;f=f+1|0}if((Z|0)==0){Z=178928;$=aa;q=94;break g}if(f>>>0>=(c[ba+8>>2]|0)>>>0){break}Z=c[(c[(c[ba>>2]|0)+(f<<2)>>2]|0)+8>>2]|0;$=aa;q=94;break g}}while(0);ua=c[j>>2]|0;Qe(jd[c[(c[ua>>2]|0)+48>>2]&511](ua)|0,180304,Y);if((ba|0)==0){X=0;break}xo(ba);HW(ba);X=0}else{Z=0;_=0;$=0;g=0;q=94}}while(0);h:do{if((q|0)==94){if((ba|0)!=0){xo(ba);HW(ba)}if(k){ua=c[b+144>>2]|0;c[ua+4>>2]=0;c[ua+8>>2]=0}else{do{if((X|0)==0|(ha|0)==0){aa=c[182448+(Q<<2)>>2]|0;Y=b+80|0;f=c[Y>>2]|0;if((c[f+4>>2]|0)==(aa|0)){xI(f);break}if((f|0)!=0){yI(f);HW(f)}ua=FW(8)|0;wI(ua,1<<aa);c[Y>>2]=ua}else{uD(b,Q,c[ha+16>>2]|0)}}while(0);vD(b,W);FI(c[b+76>>2]|0)}do{if(r){if(!((X|0)==0|(ha|0)==0)){wD(b,P,c[ha+20>>2]|0);ha=1;X=0;break}Y=c[182464+(P<<2)>>2]|0;X=b+84|0;q=c[X>>2]|0;if((c[q+4>>2]|0)==(Y|0)){xI(q);q=114;break}if((q|0)!=0){yI(q);HW(q)}q=FW(8)|0;wI(q,1<<Y);c[X>>2]=q;q=114}else{q=114}}while(0);do{if((q|0)==114){if(r|k^1){ha=1;X=0;break}ha=0;X=ye(s,4)|0}}while(0);Y=(s|0)==0;i:do{if(!Y){ea=b+144|0;ca=(W|0)==32;ga=b+76|0;ba=(1<<W)+ -1|0;ia=b+140|0;fa=b+120|0;aa=b+124|0;ja=b+100|0;ka=b+92|0;f=b+88|0;na=0;la=0;j:while(1){if(k){NC(c[ea>>2]|0,x,$)|0}else{JI(c[ga>>2]|0,x,c[f>>2]|0)|0}ma=c[w>>2]|0;if(!((ma|0)>-1|la>>>0>(0-ma|0)>>>0)){q=122;break}la=ma+la|0;ma=na;pa=0;oa=0;k:while(1){if(k){if(!(NC(c[ea>>2]|0,H,g)|0)){break}}else{if(!(JI(c[ga>>2]|0,H,c[ka>>2]|0)|0)){break}}qa=c[F>>2]|0;if(!((qa|0)>-1|pa>>>0>(0-qa|0)>>>0)){q=128;break j}pa=qa+pa|0;if(ma>>>0>=s>>>0){q=130;break j}do{if(ha){if(!r){c[S+(ma+R<<2)>>2]=zD(b,0,pa,la,Q,0,0,0,I,K,0)|0;break}if(k){if(!(NC(c[ea>>2]|0,u,Z)|0)){break k}}else{if(!(JI(c[ga>>2]|0,u,c[ja>>2]|0)|0)){break k}}qa=c[B>>2]|0;if((qa|0)!=1){ua=ma+R|0;ta=179112;c[S+(ua<<2)>>2]=yD(b,k,1,pa,la,qa,0,ua,0,W,S,0,0,0,1,0,179384,179624,179976,ta,ta,ta,ta,178928,P,A,z)|0;break}if(k){ra=c[ea>>2]|0;sa=ra+8|0;ua=c[sa>>2]|0;qa=ra+4|0;ta=c[qa>>2]|0;do{if(ua>>>0<W>>>0){ta=(1<<ua)+ -1&ta;ua=W-ua|0;c[sa>>2]=0;if(ua>>>0>7){while(1){va=c[ra>>2]|0;ta=(jd[c[(c[va>>2]|0)+20>>2]&511](va)|0)&255|ta<<8;ua=ua+ -8|0;if(ua>>>0>7){}else{break}}}if((ua|0)==0){break}ra=c[ra>>2]|0;ra=jd[c[(c[ra>>2]|0)+20>>2]&511](ra)|0;c[qa>>2]=ra;va=8-ua|0;c[sa>>2]=va;ta=ra>>>va&(1<<ua)+ -1|ta<<ua}else{va=ua-W|0;c[sa>>2]=va;ta=ta>>>va&(ca?-1:ba)}}while(0);NC(c[ea>>2]|0,y,179112)|0;NC(c[ea>>2]|0,v,179112)|0;NC(c[ea>>2]|0,O,178928)|0;va=c[ea>>2]|0;c[va+4>>2]=0;c[va+8>>2]=0;FI(c[ga>>2]|0)}else{ta=KI(c[ga>>2]|0,W,c[ia>>2]|0)|0;JI(c[ga>>2]|0,y,c[fa>>2]|0)|0;JI(c[ga>>2]|0,v,c[aa>>2]|0)|0}qa=ma+R|0;if(ta>>>0>=qa>>>0){q=149;break j}c[S+(qa<<2)>>2]=xD(b,pa,la,P,0,c[S+(ta<<2)>>2]|0,c[M>>2]|0,c[N>>2]|0,A,z)|0}else{c[X+(ma<<2)>>2]=pa;oa=pa+oa|0}}while(0);ma=ma+1|0}do{if(!ha){NC(c[ea>>2]|0,O,_)|0;pa=c[ea>>2]|0;c[pa+4>>2]=0;c[pa+8>>2]=0;pa=c[D>>2]|0;do{if((pa|0)==0){pa=FW(24)|0;c[pa+4>>2]=0;c[pa>>2]=177856;c[pa+8>>2]=oa;qa=pa+12|0;c[qa>>2]=la;ra=oa+7|0;sa=ra>>3;ta=pa+16|0;c[ta>>2]=sa;do{if((oa|0)<1){q=159}else{if((la|0)<1|(sa|0)<1){q=159;break}if((2147483646/(sa|0)|0|0)<=(la|0)){q=159;break}va=we((da(sa,la)|0)+1|0)|0;c[pa+20>>2]=va;a[va+(da(c[ta>>2]|0,c[qa>>2]|0)|0)|0]=0}}while(0);if((q|0)==159){q=0;Qe(-1,177872,L);c[pa+20>>2]=0}va=da(ra>>>3,la)|0;c[D>>2]=va;if((va|0)==0){break}qa=0;oa=c[pa+20>>2]|0;while(1){va=c[j>>2]|0;a[oa]=jd[c[(c[va>>2]|0)+20>>2]&511](va)|0;qa=qa+1|0;if(qa>>>0<(c[D>>2]|0)>>>0){oa=oa+1|0}else{break}}}else{pa=zD(b,1,oa,la,0,0,0,0,0,0,pa)|0}}while(0);if(na>>>0<ma>>>0){oa=0;while(1){qa=X+(na<<2)|0;c[S+(na+R<<2)>>2]=UC(pa,oa,0,c[qa>>2]|0,la)|0;na=na+1|0;if(na>>>0<ma>>>0){oa=(c[qa>>2]|0)+oa|0}else{break}}}if((pa|0)==0){break}fdfd[c[(c[u>>2]|0)+4>>2]&511](u);break}v=u+16|0;c[v>>2]=0;w=u+20|0;c[w>>2]=0;l:do{if(V){B=0}else{x=b+144|0;z=b+76|0;y=b+96|0;A=0;E=0;B=0;m:while(1){if(k){NC(c[x>>2]|0,m,178928)|0}else{JI(c[z>>2]|0,m,c[y>>2]|0)|0}C=c[n>>2]|0;D=C+E|0;if(D>>>0>U>>>0){break}do{if(A){if((C+B|0)>>>0>t>>>0){break m}if((C|0)>0){C=0;F=E;E=B}else{D=E;break}while(1){B=E+1|0;D=F+1|0;H=c[S+(F<<2)>>2]|0;G=FW(24)|0;c[G+4>>2]=0;c[G>>2]=177856;va=c[H+8>>2]|0;c[G+8>>2]=va;I=c[H+12>>2]|0;c[G+12>>2]=I;F=c[H+16>>2]|0;c[G+16>>2]=F;do{if((va|0)<1){q=189}else{if((I|0)<1|(F|0)<1){q=189;break}if((I|0)>=(2147483646/(F|0)|0|0)){q=189;break}va=da(F,I)|0;ua=we(va+1|0)|0;c[G+20>>2]=ua;$W(ua|0,c[H+20>>2]|0,va|0)|0;a[ua+va|0]=0}}while(0);if((q|0)==189){q=0;Qe(-1,177872,p);c[G+20>>2]=0}c[(c[d>>2]|0)+(E<<2)>>2]=G;C=C+1|0;if((C|0)<(c[n>>2]|0)){E=B;F=D}else{break}}}}while(0);if(D>>>0<U>>>0){A=A^1;E=D}else{break l}}va=c[j>>2]|0;Qe(jd[c[(c[va>>2]|0)+48>>2]&511](va)|0,180200,o);if(B>>>0<t>>>0){do{c[(c[d>>2]|0)+(B<<2)>>2]=0;B=B+1|0;}while(B>>>0<t>>>0)}if((u|0)==0){break h}fd[c[(c[u>>2]|0)+4>>2]&511](u);break h}}while(0);if((B|0)!=(t|0)){va=c[j>>2]|0;Qe(jd[c[(c[va>>2]|0)+48>>2]&511](va)|0,180256,l);if(B>>>0<t>>>0){do{c[(c[d>>2]|0)+(B<<2)>>2]=0;B=B+1|0;}while(B>>>0<t>>>0)}if((u|0)==0){break}fd[c[(c[u>>2]|0)+4>>2]&511](u);break}if(!Y){l=0;do{j=c[S+(l+R<<2)>>2]|0;if((j|0)!=0){fd[c[(c[j>>2]|0)+4>>2]&511](j)}l=l+1|0;}while(l>>>0<s>>>0)}Fe(T);if((X|0)!=0){Fe(X)}do{if(!(k|(h|0)==0)){c[v>>2]=zI(c[b+80>>2]|0)|0;if(!r){break}c[w>>2]=zI(c[b+84>>2]|0)|0}}while(0);yo(c[b+56>>2]|0,u);va=1;i=e;return va|0}}while(0);if((s|0)!=0){b=0;do{h=c[S+(b+R<<2)>>2]|0;if((h|0)!=0){fd[c[(c[h>>2]|0)+4>>2]&511](h)}b=b+1|0;}while(b>>>0<s>>>0)}Fe(T);if((X|0)==0){va=0;i=e;return va|0}Fe(X);va=0;i=e;return va|0}}while(0);va=c[j>>2]|0;Qe(jd[c[(c[va>>2]|0)+48>>2]&511](va)|0,178296,S);va=0;i=e;return va|0}function nD(a,b,d,e,f,g,h){a=a|0;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,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,W=0,X=0,Y=0,Z=0;e=i;B=i;i=i+8|0;E=i;i=i+8|0;C=i;i=i+8|0;n=i;i=i+576|0;N=i;i=i+8|0;f=N;F=i;i=i+8|0;j=F;m=i;i=i+8|0;l=m;D=a+64|0;q=c[D>>2]|0;q=jd[c[(c[q>>2]|0)+20>>2]&511](q)|0;do{if((q|0)!=-1){k=c[D>>2]|0;k=jd[c[(c[k>>2]|0)+20>>2]&511](k)|0;if((k|0)==-1){break}o=c[D>>2]|0;o=jd[c[(c[o>>2]|0)+20>>2]&511](o)|0;if((o|0)==-1){break}p=c[D>>2]|0;p=jd[c[(c[p>>2]|0)+20>>2]&511](p)|0;if((p|0)==-1){break}k=k<<16|q<<24|o<<8|p;r=c[D>>2]|0;r=jd[c[(c[r>>2]|0)+20>>2]&511](r)|0;if((r|0)==-1){break}q=c[D>>2]|0;q=jd[c[(c[q>>2]|0)+20>>2]&511](q)|0;if((q|0)==-1){break}p=c[D>>2]|0;p=jd[c[(c[p>>2]|0)+20>>2]&511](p)|0;if((p|0)==-1){break}o=c[D>>2]|0;o=jd[c[(c[o>>2]|0)+20>>2]&511](o)|0;if((o|0)==-1){break}o=q<<16|r<<24|p<<8|o;p=c[D>>2]|0;p=jd[c[(c[p>>2]|0)+20>>2]&511](p)|0;if((p|0)==-1){break}q=c[D>>2]|0;q=jd[c[(c[q>>2]|0)+20>>2]&511](q)|0;if((q|0)==-1){break}r=c[D>>2]|0;r=jd[c[(c[r>>2]|0)+20>>2]&511](r)|0;if((r|0)==-1){break}s=c[D>>2]|0;s=jd[c[(c[s>>2]|0)+20>>2]&511](s)|0;if((s|0)==-1){break}p=q<<16|p<<24|r<<8|s;t=c[D>>2]|0;t=jd[c[(c[t>>2]|0)+20>>2]&511](t)|0;if((t|0)==-1){break}s=c[D>>2]|0;s=jd[c[(c[s>>2]|0)+20>>2]&511](s)|0;if((s|0)==-1){break}r=c[D>>2]|0;r=jd[c[(c[r>>2]|0)+20>>2]&511](r)|0;if((r|0)==-1){break}q=c[D>>2]|0;q=jd[c[(c[q>>2]|0)+20>>2]&511](q)|0;if((q|0)==-1){break}q=s<<16|t<<24|r<<8|q;r=c[D>>2]|0;r=jd[c[(c[r>>2]|0)+20>>2]&511](r)|0;if((r|0)==-1){break}r=r&7;s=c[D>>2]|0;s=jd[c[(c[s>>2]|0)+20>>2]&511](s)|0;if((s|0)==-1){break}x=c[D>>2]|0;x=jd[c[(c[x>>2]|0)+20>>2]&511](x)|0;if((x|0)==-1){break}z=x|s<<8;A=x&2;u=x>>>2&3;v=x>>>4&3;t=x>>>6&1;s=z>>>7&3;w=z>>>9&1;y=z>>>10;y=(y&16|0)==0?y&31:y|-16;z=z>>>15&1;x=(x&1|0)!=0;if(x){H=c[D>>2]|0;H=jd[c[(c[H>>2]|0)+20>>2]&511](H)|0;if((H|0)==-1){break}I=c[D>>2]|0;I=jd[c[(c[I>>2]|0)+20>>2]&511](I)|0;if((I|0)==-1){break}L=I|H<<8;O=I>>>2&3;K=I>>>4&3;P=I&3;H=L>>>8&3;I=I>>>6&3;J=L>>>10&3;M=L>>>12&3;L=L>>>14&1}else{O=0;K=0;P=0;H=0;I=0;J=0;M=0;L=0}A=(A|0)!=0;if(A&(z|0)==0){Q=c[D>>2]|0;Q=jd[c[(c[Q>>2]|0)+20>>2]&511](Q)|0;if((Q|0)==-1){break}c[N>>2]=(Q&128|0)==0?Q:Q|-256;N=c[D>>2]|0;N=jd[c[(c[N>>2]|0)+20>>2]&511](N)|0;if((N|0)==-1){break}c[F>>2]=(N&128|0)==0?N:N|-256;F=c[D>>2]|0;F=jd[c[(c[F>>2]|0)+20>>2]&511](F)|0;if((F|0)==-1){break}c[f+4>>2]=(F&128|0)==0?F:F|-256;F=c[D>>2]|0;F=jd[c[(c[F>>2]|0)+20>>2]&511](F)|0;if((F|0)==-1){break}c[j+4>>2]=(F&128|0)==0?F:F|-256}R=c[D>>2]|0;R=jd[c[(c[R>>2]|0)+20>>2]&511](R)|0;if((R|0)==-1){break}F=c[D>>2]|0;F=jd[c[(c[F>>2]|0)+20>>2]&511](F)|0;if((F|0)==-1){break}Q=c[D>>2]|0;Q=jd[c[(c[Q>>2]|0)+20>>2]&511](Q)|0;if((Q|0)==-1){break}N=c[D>>2]|0;N=jd[c[(c[N>>2]|0)+20>>2]&511](N)|0;if((N|0)==-1){break}B=F<<16|R<<24|Q<<8|N;N=FW(16)|0;wo(N);R=(h|0)==0;do{if(R){h=ye(0,4)|0;g=h;F=0;C=0}else{Q=a+60|0;S=a+56|0;T=0;F=0;a:do{U=c[g+(T<<2)>>2]|0;W=c[Q>>2]|0;V=c[W+8>>2]|0;b:do{if((V|0)>0){W=c[W>>2]|0;Y=0;while(1){X=c[W+(Y<<2)>>2]|0;Y=Y+1|0;if((c[X+4>>2]|0)==(U|0)){break b}if((Y|0)<(V|0)){}else{G=41;break}}}else{G=41}}while(0);c:do{if((G|0)==41){G=0;W=c[S>>2]|0;V=c[W+8>>2]|0;if((V|0)<=0){G=51;break a}W=c[W>>2]|0;Y=0;while(1){X=c[W+(Y<<2)>>2]|0;Y=Y+1|0;if((c[X+4>>2]|0)==(U|0)){break c}if((Y|0)<(V|0)){}else{G=51;break a}}}}while(0);if((X|0)==0){G=51;break}do{if((jd[c[(c[X>>2]|0)+8>>2]&511](X)|0)==1){F=(c[X+8>>2]|0)+F|0}else{if((jd[c[(c[X>>2]|0)+8>>2]&511](X)|0)!=3){break}yo(N,X)}}while(0);T=T+1|0;}while(T>>>0<h>>>0);if((G|0)==51){Z=c[D>>2]|0;Qe(jd[c[(c[Z>>2]|0)+48>>2]&511](Z)|0,180352,C);if((N|0)==0){i=e;return}xo(N);HW(N);i=e;return}if(F>>>0>1){Q=1;C=0;while(1){C=C+1|0;Q=Q<<1;if(Q>>>0<F>>>0){}else{break}}}else{C=0}Q=ye(F,4)|0;if(R){g=Q;h=Q;break}S=a+60|0;R=a+56|0;T=0;U=0;while(1){V=c[g+(T<<2)>>2]|0;W=c[S>>2]|0;G=c[W+8>>2]|0;d:do{if((G|0)>0){W=c[W>>2]|0;Y=0;while(1){X=c[W+(Y<<2)>>2]|0;Y=Y+1|0;if((c[X+4>>2]|0)==(V|0)){G=65;break d}if((Y|0)<(G|0)){}else{G=60;break}}}else{G=60}}while(0);e:do{if((G|0)==60){G=0;X=c[R>>2]|0;W=c[X+8>>2]|0;if((W|0)<=0){break}Y=c[X>>2]|0;Z=0;while(1){X=c[Y+(Z<<2)>>2]|0;Z=Z+1|0;if((c[X+4>>2]|0)==(V|0)){G=65;break e}if((Z|0)<(W|0)){}else{break}}}}while(0);do{if((G|0)==65){G=0;if((X|0)==0){break}if((jd[c[(c[X>>2]|0)+8>>2]&511](X)|0)!=1){break}V=X+8|0;if((c[V>>2]|0)==0){break}W=X+12|0;X=0;Y=U;while(1){U=Y+1|0;c[Q+(Y<<2)>>2]=c[(c[W>>2]|0)+(X<<2)>>2];X=X+1|0;if(X>>>0<(c[V>>2]|0)>>>0){Y=U}else{break}}}}while(0);T=T+1|0;if(T>>>0>=h>>>0){g=Q;h=Q;break}}}}while(0);f:do{if(x){Q=179384;do{if((P|0)==1){P=180400;Q=0;G=76}else if((P|0)==0){P=Q;Q=0;G=76}else{if((c[N+8>>2]|0)==0){break}P=c[(c[c[N>>2]>>2]|0)+8>>2]|0;Q=1;G=76}}while(0);do{if((G|0)==76){if((O|0)==0){G=179624}else if((O|0)==1){G=180656}else if((O|0)==2){G=181024}else{if(Q>>>0>=(c[N+8>>2]|0)>>>0){break}G=c[(c[(c[N>>2]|0)+(Q<<2)>>2]|0)+8>>2]|0;Q=Q+1|0}if((K|0)==0){O=179976}else if((K|0)==2){O=181600}else if((K|0)==1){O=181376}else{if(Q>>>0>=(c[N+8>>2]|0)>>>0){break}O=c[(c[(c[N>>2]|0)+(Q<<2)>>2]|0)+8>>2]|0;Q=Q+1|0}if((I|0)==0){I=181824}else if((I|0)==1){I=179112}else{if(Q>>>0>=(c[N+8>>2]|0)>>>0){break}I=c[(c[(c[N>>2]|0)+(Q<<2)>>2]|0)+8>>2]|0;Q=Q+1|0}if((H|0)==0){H=181824}else if((H|0)==1){H=179112}else{if(Q>>>0>=(c[N+8>>2]|0)>>>0){break}H=c[(c[(c[N>>2]|0)+(Q<<2)>>2]|0)+8>>2]|0;Q=Q+1|0}if((J|0)==0){J=181824}else if((J|0)==1){J=179112}else{if(Q>>>0>=(c[N+8>>2]|0)>>>0){break}J=c[(c[(c[N>>2]|0)+(Q<<2)>>2]|0)+8>>2]|0;Q=Q+1|0}K=181824;if((M|0)==1){K=179112;M=Q}else if((M|0)==0){M=Q}else{if(Q>>>0>=(c[N+8>>2]|0)>>>0){break}K=c[(c[(c[N>>2]|0)+(Q<<2)>>2]|0)+8>>2]|0;M=Q+1|0}if((L|0)==0){D=G;E=O;G=P;L=178928;break f}if(M>>>0>=(c[N+8>>2]|0)>>>0){break}D=G;E=O;G=P;L=c[(c[(c[N>>2]|0)+(M<<2)>>2]|0)+8>>2]|0;break f}}while(0);Z=c[D>>2]|0;Qe(jd[c[(c[Z>>2]|0)+48>>2]&511](Z)|0,181920,E);Fe(N);if((h|0)==0){i=e;return}HW(h);i=e;return}else{D=0;E=0;G=0;H=0;I=0;J=0;K=0;L=0}}while(0);if((N|0)!=0){xo(N);HW(N)}if(x){M=a+144|0;N=c[M>>2]|0;c[N+4>>2]=0;c[N+8>>2]=0;N=0;do{c[n+(N<<4)>>2]=N;P=c[M>>2]|0;Q=P+8|0;S=c[Q>>2]|0;O=P+4|0;R=c[O>>2]|0;do{if(S>>>0<4){R=(1<<S)+ -1&R;S=4-S|0;c[Q>>2]=0;if(S>>>0>7){while(1){Z=c[P>>2]|0;R=(jd[c[(c[Z>>2]|0)+20>>2]&511](Z)|0)&255|R<<8;S=S+ -8|0;if(S>>>0>7){}else{break}}}if((S|0)==0){break}Y=c[P>>2]|0;Y=jd[c[(c[Y>>2]|0)+20>>2]&511](Y)|0;c[O>>2]=Y;Z=8-S|0;c[Q>>2]=Z;R=Y>>>Z&(1<<S)+ -1|R<<S}else{Z=S+ -4|0;c[Q>>2]=Z;R=R>>>Z&15}}while(0);c[n+(N<<4)+4>>2]=R;c[n+(N<<4)+8>>2]=0;N=N+1|0;}while(N>>>0<32);c[n+512>>2]=259;O=c[M>>2]|0;N=O+8|0;R=c[N>>2]|0;P=O+4|0;Q=c[P>>2]|0;do{if(R>>>0<4){Q=(1<<R)+ -1&Q;R=4-R|0;c[N>>2]=0;if(R>>>0>7){while(1){Z=c[O>>2]|0;Q=(jd[c[(c[Z>>2]|0)+20>>2]&511](Z)|0)&255|Q<<8;R=R+ -8|0;if(R>>>0>7){}else{break}}}if((R|0)==0){break}Y=c[O>>2]|0;Y=jd[c[(c[Y>>2]|0)+20>>2]&511](Y)|0;c[P>>2]=Y;Z=8-R|0;c[N>>2]=Z;Q=Y>>>Z&(1<<R)+ -1|Q<<R}else{Z=R+ -4|0;c[N>>2]=Z;Q=Q>>>Z&15}}while(0);c[n+516>>2]=Q;c[n+520>>2]=2;c[n+528>>2]=515;P=c[M>>2]|0;N=P+8|0;R=c[N>>2]|0;O=P+4|0;Q=c[O>>2]|0;do{if(R>>>0<4){Q=(1<<R)+ -1&Q;R=4-R|0;c[N>>2]=0;if(R>>>0>7){while(1){Z=c[P>>2]|0;Q=(jd[c[(c[Z>>2]|0)+20>>2]&511](Z)|0)&255|Q<<8;R=R+ -8|0;if(R>>>0>7){}else{break}}}if((R|0)==0){break}Y=c[P>>2]|0;Y=jd[c[(c[Y>>2]|0)+20>>2]&511](Y)|0;c[O>>2]=Y;Z=8-R|0;c[N>>2]=Z;Q=Y>>>Z&(1<<R)+ -1|Q<<R}else{Z=R+ -4|0;c[N>>2]=Z;Q=Q>>>Z&15}}while(0);c[n+532>>2]=Q;c[n+536>>2]=3;c[n+544>>2]=523;O=c[M>>2]|0;P=O+8|0;R=c[P>>2]|0;N=O+4|0;Q=c[N>>2]|0;do{if(R>>>0<4){Q=(1<<R)+ -1&Q;R=4-R|0;c[P>>2]=0;if(R>>>0>7){while(1){Z=c[O>>2]|0;Q=(jd[c[(c[Z>>2]|0)+20>>2]&511](Z)|0)&255|Q<<8;R=R+ -8|0;if(R>>>0>7){}else{break}}}if((R|0)==0){break}Y=c[O>>2]|0;Y=jd[c[(c[Y>>2]|0)+20>>2]&511](Y)|0;c[N>>2]=Y;Z=8-R|0;c[P>>2]=Z;Q=Y>>>Z&(1<<R)+ -1|Q<<R}else{Z=R+ -4|0;c[P>>2]=Z;Q=Q>>>Z&15}}while(0);c[n+548>>2]=Q;c[n+552>>2]=7;c[n+564>>2]=0;c[n+568>>2]=-1;OC(0,n,35);N=ye(F+1|0,16)|0;P=(F|0)==0;do{if(P){l=0}else{O=0;do{c[N+(O<<4)>>2]=O;c[N+(O<<4)+8>>2]=0;O=O+1|0;}while(O>>>0<F>>>0);if(P){l=0;break}else{O=0}while(1){NC(c[M>>2]|0,l,n)|0;Q=c[m>>2]|0;do{if((Q|0)>512){R=Q+ -512|0;c[m>>2]=R;if(!((R|0)!=0&O>>>0<F>>>0)){break}Q=512-Q|0;P=O-F|0;P=Q>>>0>P>>>0?Q:P;Q=R+P|0;T=R;S=O;while(1){R=S+1|0;c[N+(S<<4)+4>>2]=0;T=T+ -1|0;if((T|0)!=0&R>>>0<F>>>0){S=R}else{break}}c[m>>2]=Q;O=O-P|0}else{if((Q|0)<=256){c[N+(O<<4)+4>>2]=Q;O=O+1|0;break}P=Q+ -256|0;c[m>>2]=P;if(!((P|0)!=0&O>>>0<F>>>0)){break}R=256-Q|0;Q=O-F|0;Q=R>>>0>Q>>>0?R:Q;R=P+Q|0;S=O;do{c[N+(S<<4)+4>>2]=c[N+(S+ -1<<4)+4>>2];S=S+1|0;P=P+ -1|0;}while((P|0)!=0&S>>>0<F>>>0);c[m>>2]=R;O=O-Q|0}}while(0);if(O>>>0>=F>>>0){l=F;break}}}}while(0);c[N+(l<<4)+4>>2]=0;c[N+(F<<4)+8>>2]=-1;OC(0,N,l);F=c[M>>2]|0;c[F+4>>2]=0;c[F+8>>2]=0;F=l}else{vD(a,C);FI(c[a+76>>2]|0);N=0}do{if(A){m=c[182464+(z<<2)>>2]|0;l=a+84|0;n=c[l>>2]|0;if((c[n+4>>2]|0)==(m|0)){xI(n);break}if((n|0)!=0){yI(n);HW(n)}Z=FW(8)|0;wI(Z,1<<m);c[l>>2]=Z}}while(0);f=yD(a,x,A,k,o,B,u,F,N,C,g,w,s,t,v,y,G,D,E,I,H,J,K,L,z,f,j)|0;Fe(h);do{if((f|0)!=0){if(!d){c[f+4>>2]=b;yo(c[a+56>>2]|0,f);break}do{if((c[a+36>>2]|0)==-1){d=q+o|0;if(d>>>0<=(c[a+40>>2]|0)>>>0){break}VC(c[a+48>>2]|0,d,c[a+44>>2]|0)}}while(0);WC(c[a+48>>2]|0,f,p,q,r);fd[c[(c[f>>2]|0)+4>>2]&511](f)}}while(0);if(!x){i=e;return}Fe(N);i=e;return}}while(0);Z=c[D>>2]|0;Qe(jd[c[(c[Z>>2]|0)+48>>2]&511](Z)|0,178296,B);i=e;return}function oD(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;e=i;s=i;i=i+8|0;l=i;i=i+16|0;j=l;m=i;i=i+16|0;h=m;p=a+64|0;n=c[p>>2]|0;n=jd[c[(c[n>>2]|0)+20>>2]&511](n)|0;do{if((n|0)!=-1){g=c[p>>2]|0;g=jd[c[(c[g>>2]|0)+20>>2]&511](g)|0;if((g|0)==-1){break}f=c[p>>2]|0;f=jd[c[(c[f>>2]|0)+20>>2]&511](f)|0;if((f|0)==-1){break}k=c[p>>2]|0;k=jd[c[(c[k>>2]|0)+20>>2]&511](k)|0;if((k|0)==-1){break}o=c[p>>2]|0;o=jd[c[(c[o>>2]|0)+20>>2]&511](o)|0;if((o|0)==-1){break}r=c[p>>2]|0;r=jd[c[(c[r>>2]|0)+20>>2]&511](r)|0;if((r|0)==-1){break}q=c[p>>2]|0;q=jd[c[(c[q>>2]|0)+20>>2]&511](q)|0;if((q|0)==-1){break}k=o<<16|k<<24|r<<8|q;o=n>>>1&3;n=(n&1|0)!=0;if(!n){q=c[182448+(o<<2)>>2]|0;r=a+80|0;p=c[r>>2]|0;if((c[p+4>>2]|0)==(q|0)){xI(p)}else{if((p|0)!=0){yI(p);HW(p)}s=FW(8)|0;wI(s,1<<q);c[r>>2]=s}FI(c[a+76>>2]|0)}c[l>>2]=0-g;c[m>>2]=0;c[j+4>>2]=-3;c[h+4>>2]=-1;c[j+8>>2]=2;c[h+8>>2]=-2;c[j+12>>2]=-2;c[h+12>>2]=-2;l=k+1|0;h=zD(a,n,da(l,g)|0,f,o,0,0,0,j,h,d+ -7|0)|0;if((h|0)==0){i=e;return}d=FW(16)|0;c[d+4>>2]=b;c[d>>2]=177928;c[d+8>>2]=l;b=d+12|0;c[b>>2]=ye(l,4)|0;l=0;j=0;while(1){s=UC(h,j,0,g,f)|0;c[(c[b>>2]|0)+(l<<2)>>2]=s;l=l+1|0;if(l>>>0>k>>>0){break}else{j=j+g|0}}fdfd[c[(c[F>>2]|0)+4>>2]&511](F)}j=j+ -1|0;}while((j|0)>-1)}n=(r|0)==0;C=C^1;w=B+8|0;v=B+12|0;o=B+16|0;u=B+20|0;E=0;e=0;do{if(!n){F=(e|0)<0;H=E;J=0;j=(da(e,A)|0)+t|0;I=(da(e,y)|0)+x|0;while(1){do{if((J|0)<0|C){k=111}else{if((c[w>>2]|0)<=(J|0)|F){k=111;break}if((c[v>>2]|0)<=(e|0)){k=111;break}Q=(da(c[o>>2]|0,e)|0)+(J>>3)|0;if(((d[(c[u>>2]|0)+Q|0]|0)&1<<(J&7^7)|0)==0){k=111}}}while(0);if((k|0)==111){k=0;WC(G,c[(c[D>>2]|0)+(c[z+(H<<2)>>2]<<2)>>2]|0,j>>8,I>>8,q)}J=J+1|0;if(J>>>0<r>>>0){H=H+1|0;j=j+y|0;I=I-A|0}else{break}}E=r+E|0}e=e+1|0;}while(e>>>0<s>>>0);Fe(z);if((B|0)!=0){fd[c[(c[B>>2]|0)+4>>2]&511](B)}if(!f){yo(c[b+56>>2]|0,G);i=g;return}do{if((c[b+36>>2]|0)==-1){f=m+h|0;if(f>>>0<=(c[b+40>>2]|0)>>>0){break}VC(c[b+48>>2]|0,f,c[b+44>>2]|0)}}while(0);WC(c[b+48>>2]|0,G,l,m,p);if((G|0)==0){i=g;return}fd[c[(c[G>>2]|0)+4>>2]&511](G);i=g;return}}while(0);Q=c[D>>2]|0;Qe(jd[c[(c[Q>>2]|0)+48>>2]&511](Q)|0,182096,G);i=g;return}}while(0);Q=c[D>>2]|0;Qe(jd[c[(c[Q>>2]|0)+48>>2]&511](Q)|0,182056,J);i=g;return}}while(0);Q=c[D>>2]|0;Qe(jd[c[(c[Q>>2]|0)+48>>2]&511](Q)|0,182008,K);i=g;return}}while(0);Q=c[D>>2]|0;Qe(jd[c[(c[Q>>2]|0)+48>>2]&511](Q)|0,178296,A);i=g;return}function qD(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,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0;e=i;k=i;i=i+8|0;p=i;i=i+16|0;g=p;n=i;i=i+16|0;h=n;j=a+64|0;l=c[j>>2]|0;l=jd[c[(c[l>>2]|0)+20>>2]&511](l)|0;do{if((l|0)!=-1){o=c[j>>2]|0;o=jd[c[(c[o>>2]|0)+20>>2]&511](o)|0;if((o|0)==-1){break}q=c[j>>2]|0;q=jd[c[(c[q>>2]|0)+20>>2]&511](q)|0;if((q|0)==-1){break}m=c[j>>2]|0;m=jd[c[(c[m>>2]|0)+20>>2]&511](m)|0;if((m|0)==-1){break}l=o<<16|l<<24|q<<8|m;r=c[j>>2]|0;r=jd[c[(c[r>>2]|0)+20>>2]&511](r)|0;if((r|0)==-1){break}q=c[j>>2]|0;q=jd[c[(c[q>>2]|0)+20>>2]&511](q)|0;if((q|0)==-1){break}o=c[j>>2]|0;o=jd[c[(c[o>>2]|0)+20>>2]&511](o)|0;if((o|0)==-1){break}m=c[j>>2]|0;m=jd[c[(c[m>>2]|0)+20>>2]&511](m)|0;if((m|0)==-1){break}m=q<<16|r<<24|o<<8|m;s=c[j>>2]|0;s=jd[c[(c[s>>2]|0)+20>>2]&511](s)|0;if((s|0)==-1){break}r=c[j>>2]|0;r=jd[c[(c[r>>2]|0)+20>>2]&511](r)|0;if((r|0)==-1){break}q=c[j>>2]|0;q=jd[c[(c[q>>2]|0)+20>>2]&511](q)|0;if((q|0)==-1){break}o=c[j>>2]|0;o=jd[c[(c[o>>2]|0)+20>>2]&511](o)|0;if((o|0)==-1){break}o=r<<16|s<<24|q<<8|o;q=c[j>>2]|0;q=jd[c[(c[q>>2]|0)+20>>2]&511](q)|0;if((q|0)==-1){break}r=c[j>>2]|0;r=jd[c[(c[r>>2]|0)+20>>2]&511](r)|0;if((r|0)==-1){break}s=c[j>>2]|0;s=jd[c[(c[s>>2]|0)+20>>2]&511](s)|0;if((s|0)==-1){break}t=c[j>>2]|0;t=jd[c[(c[t>>2]|0)+20>>2]&511](t)|0;if((t|0)==-1){break}q=r<<16|q<<24|s<<8|t;r=c[j>>2]|0;r=jd[c[(c[r>>2]|0)+20>>2]&511](r)|0;if((r|0)==-1){break}r=r&7;u=c[j>>2]|0;u=jd[c[(c[u>>2]|0)+20>>2]&511](u)|0;if((u|0)==-1){break}t=u>>>1&3;s=u&8;u=(u&1|0)!=0;if(!u){v=c[j>>2]|0;v=jd[c[(c[v>>2]|0)+20>>2]&511](v)|0;if((v|0)==-1){p=0}else{c[p>>2]=(v&128|0)==0?v:v|-256;p=1}if((t|0)==0){if(!p){break}p=c[j>>2]|0;p=jd[c[(c[p>>2]|0)+20>>2]&511](p)|0;if((p|0)==-1){break}c[n>>2]=(p&128|0)==0?p:p|-256;n=c[j>>2]|0;n=jd[c[(c[n>>2]|0)+20>>2]&511](n)|0;if((n|0)==-1){break}c[g+4>>2]=(n&128|0)==0?n:n|-256;n=c[j>>2]|0;n=jd[c[(c[n>>2]|0)+20>>2]&511](n)|0;if((n|0)==-1){break}c[h+4>>2]=(n&128|0)==0?n:n|-256;n=c[j>>2]|0;n=jd[c[(c[n>>2]|0)+20>>2]&511](n)|0;if((n|0)==-1){break}c[g+8>>2]=(n&128|0)==0?n:n|-256;n=c[j>>2]|0;n=jd[c[(c[n>>2]|0)+20>>2]&511](n)|0;if((n|0)==-1){break}c[h+8>>2]=(n&128|0)==0?n:n|-256;n=c[j>>2]|0;n=jd[c[(c[n>>2]|0)+20>>2]&511](n)|0;if((n|0)==-1){break}c[g+12>>2]=(n&128|0)==0?n:n|-256;n=c[j>>2]|0;n=jd[c[(c[n>>2]|0)+20>>2]&511](n)|0;if((n|0)==-1){break}c[h+12>>2]=(n&128|0)==0?n:n|-256}else{if(!p){break}p=c[j>>2]|0;p=jd[c[(c[p>>2]|0)+20>>2]&511](p)|0;if((p|0)==-1){break}c[n>>2]=(p&128|0)==0?p:p|-256}j=c[182448+(t<<2)>>2]|0;n=a+80|0;k=c[n>>2]|0;if((c[k+4>>2]|0)==(j|0)){xI(k)}else{if((k|0)!=0){yI(k);HW(k)}v=FW(8)|0;wI(v,1<<j);c[n>>2]=v}FI(c[a+76>>2]|0)}f=zD(a,u,l,m,t,(s|0)!=0,0,0,g,h,u?f+ -18|0:0)|0;if((f|0)==0){i=e;return}if(!d){c[f+4>>2]=b;yo(c[a+56>>2]|0,f);i=e;return}do{if((c[a+36>>2]|0)==-1){b=q+m|0;if(b>>>0<=(c[a+40>>2]|0)>>>0){break}VC(c[a+48>>2]|0,b,c[a+44>>2]|0)}}while(0);WC(c[a+48>>2]|0,f,o,q,r);fd[c[(c[f>>2]|0)+4>>2]&511](f);i=e;return}}while(0);v=c[j>>2]|0;Qe(jd[c[(c[v>>2]|0)+48>>2]&511](v)|0,178296,k);i=e;return}function rD(a,b,d,e,f,g,h){a=a|0;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,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0;e=i;w=i;i=i+8|0;k=i;i=i+8|0;n=i;i=i+8|0;v=i;i=i+8|0;y=i;i=i+8|0;m=y;x=i;i=i+8|0;l=x;f=a+64|0;o=c[f>>2]|0;o=jd[c[(c[o>>2]|0)+20>>2]&511](o)|0;do{if((o|0)!=-1){r=c[f>>2]|0;r=jd[c[(c[r>>2]|0)+20>>2]&511](r)|0;if((r|0)==-1){break}q=c[f>>2]|0;q=jd[c[(c[q>>2]|0)+20>>2]&511](q)|0;if((q|0)==-1){break}p=c[f>>2]|0;p=jd[c[(c[p>>2]|0)+20>>2]&511](p)|0;if((p|0)==-1){break}o=r<<16|o<<24|q<<8|p;r=c[f>>2]|0;r=jd[c[(c[r>>2]|0)+20>>2]&511](r)|0;if((r|0)==-1){break}s=c[f>>2]|0;s=jd[c[(c[s>>2]|0)+20>>2]&511](s)|0;if((s|0)==-1){break}p=c[f>>2]|0;p=jd[c[(c[p>>2]|0)+20>>2]&511](p)|0;if((p|0)==-1){break}q=c[f>>2]|0;q=jd[c[(c[q>>2]|0)+20>>2]&511](q)|0;if((q|0)==-1){break}p=s<<16|r<<24|p<<8|q;t=c[f>>2]|0;t=jd[c[(c[t>>2]|0)+20>>2]&511](t)|0;if((t|0)==-1){break}q=c[f>>2]|0;q=jd[c[(c[q>>2]|0)+20>>2]&511](q)|0;if((q|0)==-1){break}r=c[f>>2]|0;r=jd[c[(c[r>>2]|0)+20>>2]&511](r)|0;if((r|0)==-1){break}s=c[f>>2]|0;s=jd[c[(c[s>>2]|0)+20>>2]&511](s)|0;if((s|0)==-1){break}q=q<<16|t<<24|r<<8|s;t=c[f>>2]|0;t=jd[c[(c[t>>2]|0)+20>>2]&511](t)|0;if((t|0)==-1){break}r=c[f>>2]|0;r=jd[c[(c[r>>2]|0)+20>>2]&511](r)|0;if((r|0)==-1){break}s=c[f>>2]|0;s=jd[c[(c[s>>2]|0)+20>>2]&511](s)|0;if((s|0)==-1){break}u=c[f>>2]|0;u=jd[c[(c[u>>2]|0)+20>>2]&511](u)|0;if((u|0)==-1){break}r=r<<16|t<<24|s<<8|u;s=c[f>>2]|0;s=jd[c[(c[s>>2]|0)+20>>2]&511](s)|0;if((s|0)==-1){break}s=s&7;u=c[f>>2]|0;u=jd[c[(c[u>>2]|0)+20>>2]&511](u)|0;if((u|0)==-1){break}t=u&1;u=u&2;if((t|0)==0){z=c[f>>2]|0;z=jd[c[(c[z>>2]|0)+20>>2]&511](z)|0;if((z|0)==-1){break}c[y>>2]=(z&128|0)==0?z:z|-256;y=c[f>>2]|0;y=jd[c[(c[y>>2]|0)+20>>2]&511](y)|0;if((y|0)==-1){break}c[x>>2]=(y&128|0)==0?y:y|-256;x=c[f>>2]|0;x=jd[c[(c[x>>2]|0)+20>>2]&511](x)|0;if((x|0)==-1){break}c[m+4>>2]=(x&128|0)==0?x:x|-256;x=c[f>>2]|0;x=jd[c[(c[x>>2]|0)+20>>2]&511](x)|0;if((x|0)==-1){break}c[l+4>>2]=(x&128|0)==0?x:x|-256}do{if((h|0)==0|d){if((c[a+36>>2]|0)!=-1){break}w=r+p|0;if(w>>>0<=(c[a+40>>2]|0)>>>0){break}VC(c[a+48>>2]|0,w,c[a+44>>2]|0)}}while(0);if(h>>>0>1){z=c[f>>2]|0;Qe(jd[c[(c[z>>2]|0)+48>>2]&511](z)|0,182280,v);i=e;return}h=(h|0)==1;a:do{if(h){v=c[g>>2]|0;w=c[a+60>>2]|0;j=c[w+8>>2]|0;b:do{if((j|0)>0){w=c[w>>2]|0;y=0;while(1){x=c[w+(y<<2)>>2]|0;y=y+1|0;if((c[x+4>>2]|0)==(v|0)){j=40;break b}if((y|0)<(j|0)){}else{j=35;break}}}else{j=35}}while(0);c:do{if((j|0)==35){x=c[a+56>>2]|0;w=c[x+8>>2]|0;if((w|0)<=0){break}y=c[x>>2]|0;z=0;do{x=c[y+(z<<2)>>2]|0;z=z+1|0;if((c[x+4>>2]|0)==(v|0)){j=40;break c}}while((z|0)<(w|0))}}while(0);do{if((j|0)==40){if((x|0)==0){break}if((jd[c[(c[x>>2]|0)+8>>2]&511](x)|0)!=0){break}break a}}while(0);z=c[f>>2]|0;Qe(jd[c[(c[z>>2]|0)+48>>2]&511](z)|0,182336,n);i=e;return}else{x=UC(c[a+48>>2]|0,q,r,o,p)|0}}while(0);n=c[182464+(t<<2)>>2]|0;v=a+84|0;w=c[v>>2]|0;if((c[w+4>>2]|0)==(n|0)){xI(w)}else{if((w|0)!=0){yI(w);HW(w)}z=FW(8)|0;wI(z,1<<n);c[v>>2]=z}FI(c[a+76>>2]|0);l=xD(a,o,p,t,(u|0)!=0,x,0,0,m,l)|0;do{if(d){WC(c[a+48>>2]|0,l,q,r,s);if((l|0)==0){break}fd[c[(c[l>>2]|0)+4>>2]&511](l)}else{if((l|0)==0){z=c[f>>2]|0;Qe(jd[c[(c[z>>2]|0)+48>>2]&511](z)|0,182400,k);break}else{c[l+4>>2]=b;yo(c[a+56>>2]|0,l);break}}}while(0);if(!h){if((x|0)==0){i=e;return}fd[c[(c[x>>2]|0)+4>>2]&511](x);i=e;return}d=c[g>>2]|0;l=c[a+60>>2]|0;b=c[l+8>>2]|0;d:do{if((b|0)>0){k=c[l>>2]|0;f=0;while(1){g=f+1|0;if((c[(c[k+(f<<2)>>2]|0)+4>>2]|0)==(d|0)){break}if((g|0)<(b|0)){f=g}else{break d}}Ao(l,f)|0;i=e;return}}while(0);b=c[a+56>>2]|0;a=c[b+8>>2]|0;if((a|0)<=0){i=e;return}f=c[b>>2]|0;g=0;while(1){k=g+1|0;if((c[(c[f+(g<<2)>>2]|0)+4>>2]|0)==(d|0)){break}if((k|0)<(a|0)){g=k}else{j=70;break}}if((j|0)==70){i=e;return}Ao(b,g)|0;i=e;return}}while(0);z=c[f>>2]|0;Qe(jd[c[(c[z>>2]|0)+48>>2]&511](z)|0,178296,w);i=e;return}function sD(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;d=i;g=i;i=i+8|0;e=i;i=i+8|0;f=b+32|0;h=b+64|0;m=c[h>>2]|0;m=jd[c[(c[m>>2]|0)+20>>2]&511](m)|0;do{if((m|0)!=-1){k=c[h>>2]|0;k=jd[c[(c[k>>2]|0)+20>>2]&511](k)|0;if((k|0)==-1){break}l=c[h>>2]|0;l=jd[c[(c[l>>2]|0)+20>>2]&511](l)|0;if((l|0)==-1){break}j=c[h>>2]|0;j=jd[c[(c[j>>2]|0)+20>>2]&511](j)|0;if((j|0)==-1){break}c[f>>2]=k<<16|m<<24|l<<8|j;j=b+36|0;k=c[h>>2]|0;k=jd[c[(c[k>>2]|0)+20>>2]&511](k)|0;if((k|0)==-1){break}l=c[h>>2]|0;l=jd[c[(c[l>>2]|0)+20>>2]&511](l)|0;if((l|0)==-1){break}m=c[h>>2]|0;m=jd[c[(c[m>>2]|0)+20>>2]&511](m)|0;if((m|0)==-1){break}n=c[h>>2]|0;n=jd[c[(c[n>>2]|0)+20>>2]&511](n)|0;if((n|0)==-1){break}c[j>>2]=l<<16|k<<24|m<<8|n;n=c[h>>2]|0;if((jd[c[(c[n>>2]|0)+20>>2]&511](n)|0)==-1){break}n=c[h>>2]|0;if((jd[c[(c[n>>2]|0)+20>>2]&511](n)|0)==-1){break}n=c[h>>2]|0;if((jd[c[(c[n>>2]|0)+20>>2]&511](n)|0)==-1){break}n=c[h>>2]|0;if((jd[c[(c[n>>2]|0)+20>>2]&511](n)|0)==-1){break}n=c[h>>2]|0;if((jd[c[(c[n>>2]|0)+20>>2]&511](n)|0)==-1){break}n=c[h>>2]|0;if((jd[c[(c[n>>2]|0)+20>>2]&511](n)|0)==-1){break}n=c[h>>2]|0;if((jd[c[(c[n>>2]|0)+20>>2]&511](n)|0)==-1){break}n=c[h>>2]|0;if((jd[c[(c[n>>2]|0)+20>>2]&511](n)|0)==-1){break}m=c[h>>2]|0;m=jd[c[(c[m>>2]|0)+20>>2]&511](m)|0;if((m|0)==-1){break}l=c[h>>2]|0;l=jd[c[(c[l>>2]|0)+20>>2]&511](l)|0;if((l|0)==-1){break}k=c[h>>2]|0;k=jd[c[(c[k>>2]|0)+20>>2]&511](k)|0;if((k|0)==-1){break}g=b+44|0;c[g>>2]=m>>>2&1;c[b+52>>2]=m>>>3&3;h=c[j>>2]|0;if((h|0)==-1){k=(k|l<<8)&32767;c[b+40>>2]=k}else{c[b+40>>2]=h;k=h}h=FW(24)|0;n=c[f>>2]|0;c[h+4>>2]=0;c[h>>2]=177856;c[h+8>>2]=n;f=h+12|0;c[f>>2]=k;l=n+7>>3;j=h+16|0;c[j>>2]=l;do{if((n|0)<1){f=27}else{if((k|0)<1|(l|0)<1){f=27;break}if((2147483646/(l|0)|0|0)<=(k|0)){f=27;break}n=we((da(l,k)|0)+1|0)|0;e=h+20|0;c[e>>2]=n;a[n+(da(c[j>>2]|0,c[f>>2]|0)|0)|0]=0;e=c[e>>2]|0;b=b+48|0;c[b>>2]=h;if((e|0)==0){f=28;break}b=da(c[j>>2]|0,c[f>>2]|0)|0;if((c[g>>2]|0)==0){bX(e|0,0,b|0)|0;i=d;return}else{bX(e|0,-1,b|0)|0;i=d;return}}}while(0);if((f|0)==27){Qe(-1,177872,e);c[h+20>>2]=0;b=b+48|0;c[b>>2]=h;if((h|0)!=0){f=28}}if((f|0)==28){fdfd[c[(c[t>>2]|0)+4>>2]&511](t);Fa=0;i=o;return Fa|0}function yD(b,d,e,f,g,h,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A,B,C,D){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;j=j|0;k=k|0;l=l|0;m=m|0;n=n|0;o=o|0;p=p|0;q=q|0;r=r|0;s=s|0;t=t|0;u=u|0;v=v|0;w=w|0;x=x|0;y=y|0;z=z|0;A=A|0;B=B|0;C=C|0;D=D|0;var 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,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ba=0,ca=0,ea=0,fa=0,ga=0,ha=0,ia=0,ja=0,ka=0,la=0,ma=0,na=0,oa=0,pa=0,qa=0,ra=0,sa=0,ta=0,ua=0,va=0,wa=0,xa=0;E=i;V=i;i=i+8|0;ba=i;i=i+8|0;J=i;i=i+8|0;Z=J;I=i;i=i+8|0;H=I;F=i;i=i+8|0;G=F;X=i;i=i+8|0;W=X;L=i;i=i+8|0;T=L;M=i;i=i+8|0;S=M;N=i;i=i+8|0;R=N;O=i;i=i+8|0;Q=O;K=i;i=i+8|0;U=K;P=i;i=i+8|0;ja=1<<j;Y=FW(24)|0;c[Y+4>>2]=0;c[Y>>2]=177856;c[Y+8>>2]=f;$=Y+12|0;c[$>>2]=g;aa=f+7>>3;_=Y+16|0;c[_>>2]=aa;do{if((f|0)<1){qa=5}else{if((g|0)<1|(aa|0)<1){qa=5;break}if((2147483646/(aa|0)|0|0)<=(g|0)){qa=5;break}wa=we((da(aa,g)|0)+1|0)|0;f=Y+20|0;c[f>>2]=wa;a[wa+(da(c[_>>2]|0,c[$>>2]|0)|0)|0]=0;f=c[f>>2]|0;if((f|0)==0){break}_=da(c[_>>2]|0,c[$>>2]|0)|0;if((o|0)==0){bX(f|0,0,_|0)|0}else{bX(f|0,-1,_|0)|0}if(d){NC(c[b+144>>2]|0,Z,v)|0}else{JI(c[b+76>>2]|0,Z,c[b+104>>2]|0)|0}c[J>>2]=da(c[J>>2]|0,0-ja|0)|0;if((h|0)==0){wa=Y;i=E;return wa|0}ca=b+144|0;fa=(ja|0)==1;Z=(l|0)==0;ba=(m|0)==32;g=(1<<m)+ -1|0;ea=b+76|0;aa=b+128|0;_=b+132|0;$=b+120|0;f=b+124|0;o=b+136|0;ha=(q|0)==0;q=b+116|0;ga=b+64|0;ia=b+140|0;ma=(j|0)==32?-1:ja+ -1|0;ka=b+108|0;ja=b+104|0;la=b+112|0;oa=0;na=0;a:while(1){if(d){NC(c[ca>>2]|0,H,v)|0;c[J>>2]=(c[J>>2]|0)+(c[I>>2]<<j);NC(c[ca>>2]|0,G,t)|0}else{JI(c[ea>>2]|0,H,c[ja>>2]|0)|0;c[J>>2]=(c[J>>2]|0)+(c[I>>2]<<j);JI(c[ea>>2]|0,G,c[la>>2]|0)|0}na=(c[F>>2]|0)+na|0;b:do{if(oa>>>0<h>>>0){pa=na;while(1){do{if(fa){ta=0;qa=30}else{if(!d){JI(c[ea>>2]|0,H,c[ka>>2]|0)|0;ra=(c[I>>2]|0)+(c[J>>2]|0)|0;qa=40;break}ra=c[ca>>2]|0;sa=ra+8|0;ua=c[sa>>2]|0;qa=ra+4|0;ta=c[qa>>2]|0;if(ua>>>0>=j>>>0){qa=ua-j|0;ra=ta>>>qa&ma;c[sa>>2]=qa;c[I>>2]=ra;ra=(c[J>>2]|0)+ra|0;qa=31;break}ta=(1<<ua)+ -1&ta;ua=j-ua|0;c[sa>>2]=0;if(ua>>>0>7){while(1){wa=c[ra>>2]|0;ta=(jd[c[(c[wa>>2]|0)+20>>2]&511](wa)|0)&255|ta<<8;ua=ua+ -8|0;if(ua>>>0>7){}else{break}}}if((ua|0)==0){qa=30;break}wa=c[ra>>2]|0;wa=jd[c[(c[wa>>2]|0)+20>>2]&511](wa)|0;c[qa>>2]=wa;qa=8-ua|0;c[sa>>2]=qa;ta=wa>>>qa&(1<<ua)+ -1|ta<<ua;qa=30}}while(0);if((qa|0)==30){c[I>>2]=ta;ra=(c[J>>2]|0)+ta|0;if(d){qa=31}else{qa=40}}do{if((qa|0)==31){qa=0;ta=c[ca>>2]|0;if(!Z){NC(ta,W,l)|0;sa=c[X>>2]|0;break}sa=ta+8|0;va=c[sa>>2]|0;ua=ta+4|0;wa=c[ua>>2]|0;if(va>>>0>=m>>>0){va=va-m|0;c[sa>>2]=va;sa=wa>>>va&(ba?-1:g);break}wa=(1<<va)+ -1&wa;va=m-va|0;c[sa>>2]=0;if(va>>>0>7){while(1){xa=c[ta>>2]|0;wa=(jd[c[(c[xa>>2]|0)+20>>2]&511](xa)|0)&255|wa<<8;va=va+ -8|0;if(va>>>0>7){}else{break}}}if((va|0)==0){sa=wa;break}ta=c[ta>>2]|0;ta=jd[c[(c[ta>>2]|0)+20>>2]&511](ta)|0;c[ua>>2]=ta;xa=8-va|0;c[sa>>2]=xa;sa=ta>>>xa&(1<<va)+ -1|wa<<va}else if((qa|0)==40){qa=0;sa=KI(c[ea>>2]|0,m,c[ia>>2]|0)|0}}while(0);do{if(sa>>>0<k>>>0){do{if(e){if(d){ua=c[ca>>2]|0;ta=ua+8|0;va=c[ta>>2]|0;if((va|0)==0){va=c[ua>>2]|0;va=jd[c[(c[va>>2]|0)+20>>2]&511](va)|0;c[ua+4>>2]=va;c[ta>>2]=8;ua=va;va=7}else{ua=c[ua+4>>2]|0;va=va+ -1|0}c[ta>>2]=va;ta=ua>>>va&1;c[K>>2]=ta}else{JI(c[ea>>2]|0,U,c[o>>2]|0)|0;ta=c[K>>2]|0}if((ta|0)==0){qa=64;break}if(d){xa=NC(c[ca>>2]|0,T,w)|0;ta=c[ca>>2]|0;if(!xa){qa=82;break a}xa=NC(ta,S,x)|0;ta=c[ca>>2]|0;if(!xa){qa=81;break a}xa=NC(ta,R,y)|0;ta=c[ca>>2]|0;if(!xa){qa=80;break a}xa=NC(ta,Q,z)|0;ta=c[ca>>2]|0;if(!xa){qa=79;break a}xa=NC(ta,P,A)|0;wa=c[ca>>2]|0;c[wa+4>>2]=0;c[wa+8>>2]=0;FI(c[ea>>2]|0);if(!xa){break a}}else{if(!(JI(c[ea>>2]|0,T,c[aa>>2]|0)|0)){break a}if(!(JI(c[ea>>2]|0,S,c[_>>2]|0)|0)){break a}if(!(JI(c[ea>>2]|0,R,c[$>>2]|0)|0)){break a}if(!(JI(c[ea>>2]|0,Q,c[f>>2]|0)|0)){break a}}sa=c[n+(sa<<2)>>2]|0;if((sa|0)==0){break a}wa=c[L>>2]|0;xa=c[M>>2]|0;sa=xD(b,(c[sa+8>>2]|0)+wa|0,(c[sa+12>>2]|0)+xa|0,B,0,sa,(c[N>>2]|0)+(((wa>>31)+wa|0)/2|0)|0,(c[O>>2]|0)+(((xa>>31)+xa|0)/2|0)|0,C,D)|0}else{c[K>>2]=0;qa=64}}while(0);if((qa|0)==64){qa=0;sa=c[n+(sa<<2)>>2]|0}if((sa|0)==0){break a}ta=(c[sa+8>>2]|0)+ -1|0;qa=(c[sa+12>>2]|0)+ -1|0;do{if(ha){if((r|0)==1){WC(Y,sa,pa,ra,p);qa=ta;break}else if((r|0)==0){WC(Y,sa,pa,ra-qa|0,p);qa=ta;break}else if((r|0)==3){WC(Y,sa,pa,ra,p);qa=ta;break}else if((r|0)==2){WC(Y,sa,pa,ra-qa|0,p);qa=ta;break}else{qa=ta;break}}else{if((r|0)==3){WC(Y,sa,ra-ta|0,pa,p);break}else if((r|0)==2){WC(Y,sa,ra-ta|0,pa,p);break}else if((r|0)==1){WC(Y,sa,ra,pa,p);break}else if((r|0)==0){WC(Y,sa,ra,pa,p);break}else{break}}}while(0);pa=qa+pa|0;if((c[K>>2]|0)==0){break}fd[c[(c[sa>>2]|0)+4>>2]&511](sa)}else{xa=c[ga>>2]|0;Qe(jd[c[(c[xa>>2]|0)+48>>2]&511](xa)|0,181960,V)}}while(0);oa=oa+1|0;if(d){if(!(NC(c[ca>>2]|0,G,u)|0)){break b}}else{if(!(JI(c[ea>>2]|0,G,c[q>>2]|0)|0)){break b}}if(oa>>>0<h>>>0){pa=pa+s+(c[F>>2]|0)|0}else{break}}}}while(0);if(oa>>>0>=h>>>0){qa=89;break}}if((qa|0)==79){c[ta+4>>2]=0;c[ta+8>>2]=0;FI(c[ea>>2]|0)}else if((qa|0)==80){c[ta+4>>2]=0;c[ta+8>>2]=0;FI(c[ea>>2]|0)}else if((qa|0)==81){c[ta+4>>2]=0;c[ta+8>>2]=0;FI(c[ea>>2]|0)}else if((qa|0)==82){c[ta+4>>2]=0;c[ta+8>>2]=0;FI(c[ea>>2]|0)}else if((qa|0)==89){i=E;return Y|0}if((Y|0)==0){xa=0;i=E;return xa|0}fd[c[(c[Y>>2]|0)+4>>2]&511](Y);xa=0;i=E;return xa|0}}while(0);do{if((qa|0)==5){Qe(-1,177872,ba);c[Y+20>>2]=0;if((Y|0)==0){Y=0}else{break}i=E;return Y|0}}while(0);fd[c[(c[Y>>2]|0)+4>>2]&511](Y);xa=0;i=E;return xa|0}
7333 function ZR(a,d){a=a|0;d=d|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,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0;h=i;g=i;i=i+8|0;q=g;j=i;i=i+8|0;k=i;i=i+8|0;l=k;f=c[d+28>>2]|0;m=c[a+712>>2]|0;if((m|0)==0){c[g>>2]=0;B=0;A=0;z=0;lJ(f,z);lJ(f,A);lJ(f,B);B=g;B=c[B>>2]|0;i=h;return B|0}n=a+672|0;if((c[n>>2]|0)==0){c[g>>2]=0;B=0;A=0;z=0;lJ(f,z);lJ(f,A);lJ(f,B);B=g;B=c[B>>2]|0;i=h;return B|0}B=pd[c[a+508>>2]&63](a,1668702578,d,j)|0;c[g>>2]=B;if((B|0)!=0){c[g>>2]=0;B=0;A=0;z=0;lJ(f,z);lJ(f,A);lJ(f,B);B=g;B=c[B>>2]|0;i=h;return B|0}B=MK(d,c[j>>2]|0)|0;c[g>>2]=B;if((B|0)!=0){c[g>>2]=0;B=0;A=0;z=0;lJ(f,z);lJ(f,A);lJ(f,B);B=g;B=c[B>>2]|0;i=h;return B|0}p=d+32|0;u=(c[p>>2]|0)-(c[d>>2]|0)|0;do{if((TK(d)|0)==65536){j=oJ(f,4,0,c[m>>2]|0,0,q)|0;if((c[g>>2]|0)!=0){r=0;o=0;break}o=oJ(f,4,0,c[m>>2]|0,0,q)|0;if((c[g>>2]|0)!=0){r=0;break}r=oJ(f,4,0,c[m>>2]|0,0,q)|0;if((c[g>>2]|0)!=0){break}q=(RK(d)|0)&65535;v=RK(d)|0;q=q&4095;if((q|0)==0){break}a=a+668|0;s=0;v=u+(v&65535)|0;while(1){u=(RK(d)|0)&65535;w=RK(d)|0;x=w&65535;do{if((x&32768|0)==0){if((x&16384|0)==0){break}if((c[m>>2]&2147483647|0)==0){break}else{w=0}do{RK(d)|0;w=w+1|0;}while(w>>>0<c[m>>2]<<1>>>0)}else{if((c[m>>2]|0)==0){z=0}else{y=0;while(1){c[j+(y<<2)>>2]=(RK(d)|0)<<16>>16<<2;y=y+1|0;z=c[m>>2]|0;if(y>>>0<z>>>0){}else{break}}}do{if(!((x&16384|0)==0|(z|0)==0)){z=0;do{c[o+(z<<2)>>2]=(RK(d)|0)<<16>>16<<2;z=z+1|0;y=c[m>>2]|0;}while(z>>>0<y>>>0);if((y|0)==0){break}else{y=0}do{c[r+(y<<2)>>2]=(RK(d)|0)<<16>>16<<2;y=y+1|0;}while(y>>>0<(c[m>>2]|0)>>>0)}}while(0);w=_R(m,w,j,o,r)|0;if((w|0)==0){break}if((x&8192|0)==0){break}x=c[d>>2]|0;y=(c[p>>2]|0)-x|0;c[p>>2]=x+v;x=$R(d,l)|0;A=c[k>>2]|0;B=(A|0)==0;if(B){z=c[a>>2]|0}else{z=A}z=aS(d,z)|0;do{if((x|0)==0|(z|0)==0){t=36}else{if((x|0)==-1){if((c[a>>2]|0)==0){break}else{t=0}while(1){B=e[(c[n>>2]|0)+(t<<1)>>1]|0;B=(aJ(b[z+(t<<1)>>1]|0,w)|0)+B&65535;b[(c[n>>2]|0)+(t<<1)>>1]=B;t=t+1|0;if(t>>>0<(c[a>>2]|0)>>>0){}else{t=36;break}}}else{if(B){t=37;break}else{t=0}while(1){B=e[x+(t<<1)>>1]|0;C=e[(c[n>>2]|0)+(B<<1)>>1]|0;C=(aJ(b[z+(t<<1)>>1]|0,w)|0)+C&65535;b[(c[n>>2]|0)+(B<<1)>>1]=C;t=t+1|0;if(t>>>0<A>>>0){}else{t=36;break}}}}}while(0);if((t|0)==36){t=0;if((x|0)!=-1){t=37}}if((t|0)==37){t=0;lJ(f,x)}lJ(f,z);c[p>>2]=(c[d>>2]|0)+y}}while(0);s=s+1|0;if(s>>>0<q>>>0){v=u+v|0}else{break}}}else{c[g>>2]=0;r=0;o=0;j=0}}while(0);PK(d);C=r;B=o;A=j;lJ(f,A);lJ(f,B);lJ(f,C);C=g;C=c[C>>2]|0;i=h;return C|0}function _R(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,k=0,l=0,m=0,n=0,o=0;h=i;g=a+4|0;n=c[a>>2]|0;if((n|0)==0){o=65536;i=h;return o|0}if((b&16384)==0){b=65536;l=0;while(1){m=c[d+(l<<2)>>2]|0;if((m|0)!=0){n=c[(c[g>>2]|0)+(l<<2)>>2]|0;if((n|0)==0){b=0;l=19;break}if((n|0)<0&(m|0)>0){b=0;l=19;break}o=(n|0)>0;if(o&(m|0)<0){b=0;l=19;break}b=_I(b,o?n:0-n|0,65536)|0;n=c[a>>2]|0}l=l+1|0;if(l>>>0>=n>>>0){l=19;break}}if((l|0)==19){i=h;return b|0}}else{k=65536;j=0}a:while(1){m=c[d+(j<<2)>>2]|0;do{if((m|0)!=0){l=c[(c[g>>2]|0)+(j<<2)>>2]|0;if((l|0)==0){b=0;l=19;break a}if((l|0)<0&(m|0)>0){b=0;l=19;break a}if((l|0)>0&(m|0)<0){b=0;l=19;break a}b=c[e+(j<<2)>>2]|0;if((l|0)<=(b|0)){b=0;l=19;break a}n=c[f+(j<<2)>>2]|0;if((l|0)>=(n|0)){b=0;l=19;break a}if((l|0)<(m|0)){k=_I(k,_I(l-b|0,65536,m-b|0)|0,65536)|0;break}else{k=_I(k,_I(n-l|0,65536,n-m|0)|0,65536)|0;break}}}while(0);j=j+1|0;if(j>>>0>=(c[a>>2]|0)>>>0){b=k;l=19;break}}if((l|0)==19){i=h;return b|0}return 0}function $R(a,d){a=a|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0;e=i;h=i;i=i+8|0;g=c[a+28>>2]|0;c[h>>2]=0;m=QK(a)|0;f=m&255;c[d>>2]=f;if(m<<24>>24==0){m=-1;i=e;return m|0}if((f&128|0)!=0){f=(QK(a)|0)&255|f<<8&32512}g=oJ(g,2,0,f,0,h)|0;if((c[h>>2]|0)!=0){m=0;i=e;return m|0}if((f|0)>0){j=0}else{m=g;i=e;return m|0}while(1){k=QK(a)|0;h=k&255;if((h&128|0)==0){l=QK(a)|0;d=j+1|0;b[g+(j<<1)>>1]=l&255;if(k<<24>>24==0){a=18;break}if((h+d|0)>=(f|0)){a=18;break}j=h>>>0>1?h:1;l=l&255;k=d;m=0;while(1){l=((QK(a)|0)&255)+l|0;b[g+(k<<1)>>1]=l;m=m+1|0;if((m|0)<(h|0)){k=k+1|0}else{break}}j=d+j|0}else{h=h&127;l=RK(a)|0;d=j+1|0;b[g+(j<<1)>>1]=l;if((h|0)==0){a=18;break}if((h+d|0)>=(f|0)){a=18;break}j=k&127;j=j>>>0>1?j:1;m=l&65535;k=d;l=0;while(1){m=((RK(a)|0)&65535)+m|0;b[g+(k<<1)>>1]=m;l=l+1|0;if((l|0)<(h|0)){k=k+1|0}else{break}}j=d+j|0}if((j|0)>=(f|0)){a=18;break}}if((a|0)==18){i=e;return g|0}return 0}function aS(a,d){a=a|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;e=i;q=i;i=i+8|0;k=c[a+28>>2]|0;c[q>>2]=0;h=oJ(k,2,0,d,0,q)|0;if((c[q>>2]|0)==0){g=0}else{q=0;i=e;return q|0}while(1){if(g>>>0>=d>>>0){f=10;break}n=QK(a)|0;j=n&255;if((j&128|0)==0){l=j&63;m=g-d|0;n=~(n&63);m=m>>>0>n>>>0?m:n;n=0-m|0;if((j&64|0)==0){q=g;p=0;while(1){o=q+1|0;b[h+(q<<1)>>1]=(QK(a)|0)<<24>>24;p=p+1|0;if(p>>>0<=l>>>0&o>>>0<d>>>0){q=o}else{break}}}else{p=g;q=0;while(1){o=p+1|0;b[h+(p<<1)>>1]=RK(a)|0;q=q+1|0;if(q>>>0<=l>>>0&o>>>0<d>>>0){p=o}else{break}}}}else{l=g-d|0;m=~(n&63);m=l>>>0>m>>>0?l:m;bX(h+(g<<1)|0,0,da(m,-2)|0)|0;n=0-m|0}if(n>>>0>(j&63)>>>0){g=g-m|0}else{break}}if((f|0)==10){i=e;return h|0}lJ(k,h);q=0;i=e;return q|0}function bS(d){d=d|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0;h=i;g=d+72|0;f=d+108|0;a[f]=0;l=c[d>>2]|0;k=d+44|0;$W(k|0,d+12|0,28)|0;j=b[k>>1]|0;if(j<<16>>16==0){n=151;i=h;return n|0}n=d+46|0;m=b[n>>1]|0;if(m<<16>>16==0){n=151;i=h;return n|0}if((b[l+176>>1]&8)!=0){o=l+68|0;m=d+48|0;c[m>>2]=bJ((j&65535)<<6,e[o>>1]|0)|0;o=bJ(e[n>>1]<<6,e[o>>1]|0)|0;j=d+52|0;c[j>>2]=o;c[d+56>>2]=(aJ(b[l+70>>1]|0,o)|0)+32&-64;c[d+60>>2]=(aJ(b[l+72>>1]|0,c[j>>2]|0)|0)+32&-64;c[d+64>>2]=(aJ(b[l+74>>1]|0,c[j>>2]|0)|0)+32&-64;c[d+68>>2]=(aJ(b[l+76>>1]|0,c[m>>2]|0)|0)+32&-64;m=b[n>>1]|0;j=b[k>>1]|0}if((j&65535)<(m&65535)){c[d+88>>2]=c[d+52>>2];b[d+80>>1]=m;c[g>>2]=_I(j&65535,65536,m&65535)|0;c[d+76>>2]=65536}else{c[d+88>>2]=c[d+48>>2];b[d+80>>1]=j;c[g>>2]=65536;c[d+76>>2]=_I(m&65535,65536,j&65535)|0}a[d+301|0]=0;a[f]=1;o=0;i=h;return o|0}function cS(d,f,g,h){d=d|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,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,W=0,X=0,Y=0,Z=0,_=0;j=i;r=i;i=i+8|0;s=r;q=i;i=i+8|0;t=q;z=i;i=i+8|0;B=z;O=i;i=i+16|0;N=O;v=i;i=i+16|0;u=v;C=i;i=i+8|0;K=C;H=i;i=i+8|0;P=H;m=i;i=i+8|0;L=m;M=i;i=i+8|0;J=M;F=i;i=i+8|0;I=F;n=i;i=i+40|0;w=n;x=i;i=i+8|0;k=x;G=c[d>>2]|0;p=d+12|0;y=c[p>>2]|0;c[F>>2]=0;do{if(g>>>0>1){if((e[G+290>>1]|0)>>>0<g>>>0){k=21}else{break}i=j;return k|0}}while(0);if((c[G+16>>2]|0)>>>0<=f>>>0){_=16;i=j;return _|0}A=d+20|0;c[A>>2]=f;o=d+16|0;Q=c[o>>2]|0;if((Q&1|0)==0){D=c[d+4>>2]|0;E=c[D+48>>2]|0;D=c[D+52>>2]|0}else{E=65536;D=65536}b[C>>1]=0;b[H>>1]=0;b[m>>1]=0;b[M>>1]=0;R=G+532|0;Cd[c[(c[R>>2]|0)+156>>2]&63](G,0,f,K,L)|0;do{if((Q&512|0)==0){if((c[G+480>>2]|0)==0){break}b[m>>1]=b[G+226>>1]|0}}while(0);if((a[G+296|0]|0)==0){b[H>>1]=0;L=b[G+68>>1]|0;b[M>>1]=L;K=0}else{Cd[c[(c[R>>2]|0)+156>>2]&63](G,1,f,P,J)|0;L=b[M>>1]|0;K=b[H>>1]|0}H=d+52|0;c[H>>2]=b[C>>1]|0;m=e[m>>1]|0;J=d+56|0;c[J>>2]=m;C=d+176|0;c[C>>2]=K;K=d+180|0;c[K>>2]=L&65535;M=d+64|0;if((a[M]|0)==0){a[M]=1;c[d+60>>2]=m}m=G+128|0;L=c[(c[m>>2]|0)+52>>2]|0;do{if((L|0)==0){n=0;w=dS(G,f,d+28|0)|0}else{L=sd[c[c[L>>2]>>2]&127](c[L+4>>2]|0,f,k)|0;if((L|0)==0){_=c[k+4>>2]|0;c[d+28>>2]=_;bX(n|0,0,40)|0;yJ(w,c[x>>2]|0,_);c[d+24>>2]=w;n=1;w=0;break}else{_=L;i=j;return _|0}}}while(0);x=d+28|0;P=c[x>>2]|0;do{if((P|0)>0){L=c[d+84>>2]|0;if((L|0)==0){if((c[(c[m>>2]|0)+52>>2]|0)==0){g=8;break}}w=pd[c[G+512>>2]&63](d,f,L+w|0,P)|0;if((w|0)!=0){g=w;break}l=jd[c[G+520>>2]&511](d)|0;if(!((l|0)==0&h<<24>>24==0)){g=l;l=120;break}P=c[x>>2]|0;L=1;l=24}else{L=0;l=24}}while(0);a:do{if((l|0)==24){do{if((P|0)==0){l=26}else{T=d+32|0;if((b[T>>1]|0)==0){l=26;break}W=c[H>>2]|0;R=(c[d+36>>2]|0)-W|0;v=d+68|0;c[v>>2]=R;S=d+72|0;c[S>>2]=0;U=c[J>>2]|0;w=d+76|0;c[w>>2]=U+R;R=d+80|0;c[R>>2]=0;h=d+184|0;c[h>>2]=0;V=(c[d+48>>2]|0)+(c[C>>2]|0)|0;Q=d+188|0;c[Q>>2]=V;u=d+192|0;c[u>>2]=0;P=d+196|0;c[P>>2]=V-(c[K>>2]|0);V=(c[d>>2]|0)+128|0;X=c[(c[V>>2]|0)+52>>2]|0;do{if((X|0)!=0){if((c[(c[X>>2]|0)+8>>2]|0)==0){break}c[O>>2]=W;c[N+4>>2]=0;W=N+8|0;c[W>>2]=U;c[N+12>>2]=0;_=c[(c[V>>2]|0)+52>>2]|0;if((pd[c[(c[_>>2]|0)+8>>2]&63](c[_+4>>2]|0,f,0,N)|0)!=0){break}_=c[W>>2]|0;c[H>>2]=c[O>>2]<<16>>16;H=_&65535;c[J>>2]=H;c[C>>2]=0;c[K>>2]=0;if((a[M]|0)!=0){break}a[M]=1;c[d+60>>2]=H}}while(0);C=b[T>>1]|0;if(C<<16>>16>0){g=jd[c[G+524>>2]&511](d)|0;if((g|0)!=0){break}fd[c[G+516>>2]&511](d);C=c[p>>2]|0;E=C+58|0;t=b[E>>1]|0;s=C+60|0;x=v;H=c[x+4>>2]|0;r=(c[s>>2]|0)+(t<<3)|0;c[r>>2]=c[x>>2];c[r+4>>2]=H;r=t+1|0;H=w;x=c[H+4>>2]|0;q=(c[s>>2]|0)+(r<<3)|0;c[q>>2]=c[H>>2];c[q+4>>2]=x;q=t+2|0;x=h;H=c[x+4>>2]|0;p=(c[s>>2]|0)+(q<<3)|0;c[p>>2]=c[x>>2];c[p+4>>2]=H;p=t+3|0;H=u;x=c[H+4>>2]|0;D=(c[s>>2]|0)+(p<<3)|0;c[D>>2]=c[H>>2];c[D+4>>2]=x;D=C+64|0;a[(c[D>>2]|0)+t|0]=0;a[(c[D>>2]|0)+r|0]=0;a[(c[D>>2]|0)+q|0]=0;a[(c[D>>2]|0)+p|0]=0;x=t+4|0;H=c[d>>2]|0;G=a[H+708|0]|0;if(G<<24>>24!=0){F=c[H+100>>2]|0;g=eS(c[H+104>>2]|0,G,c[H+712>>2]|0,c[A>>2]|0,B,x)|0;if((g|0)!=0){break a}A=c[z>>2]|0;if((x|0)>0){B=0;do{_=(c[s>>2]|0)+(B<<3)|0;c[_>>2]=(c[_>>2]|0)+(c[A+(B<<3)>>2]|0);_=(c[s>>2]|0)+(B<<3)+4|0;c[_>>2]=(c[_>>2]|0)+(c[A+(B<<3)+4>>2]|0);B=B+1|0;}while((B|0)<(x|0))}lJ(F,A);c[z>>2]=0}z=c[o>>2]|0;if((z&2|0)==0){z=b[E>>1]|0;b[d+132>>1]=z;b[d+134>>1]=b[C+56>>1]|0;c[d+136>>2]=c[C+76>>2];_=c[s>>2]|0;c[d+140>>2]=_;Z=c[C+80>>2]|0;c[d+144>>2]=Z;c[d+148>>2]=c[D>>2];c[d+152>>2]=c[C+68>>2];b[d+156>>1]=0;$W(Z|0,_|0,((z&65535)<<3)+32|0)|0;z=c[o>>2]|0}if((z&1|0)==0){D=c[s>>2]|0;C=D+(x<<3)|0;B=c[d+4>>2]|0;A=c[B+48>>2]|0;B=c[B+52>>2]|0;if((x|0)>0){do{c[D>>2]=aJ(c[D>>2]|0,A)|0;_=D+4|0;c[_>>2]=aJ(c[_>>2]|0,B)|0;D=D+8|0;}while(D>>>0<C>>>0);D=c[s>>2]|0;z=c[o>>2]|0}_=D+(t<<3)|0;Z=c[_+4>>2]|0;Y=v;c[Y>>2]=c[_>>2];c[Y+4>>2]=Z;Y=(c[s>>2]|0)+(r<<3)|0;Z=c[Y+4>>2]|0;_=w;c[_>>2]=c[Y>>2];c[_+4>>2]=Z;_=(c[s>>2]|0)+(q<<3)|0;Z=c[_+4>>2]|0;Y=h;c[Y>>2]=c[_>>2];c[Y+4>>2]=Z;Y=(c[s>>2]|0)+(p<<3)|0;Z=c[Y+4>>2]|0;_=u;c[_>>2]=c[Y>>2];c[_+4>>2]=Z}if((z&2|0)==0){g=d+132|0;b[g>>1]=(b[g>>1]|0)+4<<16>>16;g=fS(d,0)|0;if((g|0)!=0){break a}}sJ(y);g=0;break a}if(C<<16>>16!=-1){g=20;break}K=y+22|0;B=b[K>>1]|0;z=B<<16>>16;C=b[y+20>>1]|0;A=C<<16>>16;H=jd[c[G+528>>2]&511](d)|0;if((H|0)!=0){g=H;break}H=d+168|0;J=c[H>>2]|0;fdfd72|0;c[J>>2]=N;E=u+80|0;t=u+76|0;K=u+92|0;r=u+93|0;bX(t|0,0,19)|0;S=QS(N,277328,14)|0;c[L>>2]=S;if((S|0)==2){S=QS(N,277344,10)|0;c[L>>2]=S;if((S|0)==0){q=3}else{q=20}}else if((S|0)==0){q=3}else{q=20}a:do{if((q|0)==3){S=PJ(N,0)|0;c[L>>2]=S;if((S|0)!=0){q=20;break}R=EK(N,Q)|0;S=c[P>>2]|0;b:do{if((S|0)==0){do{if((R+32767<<16>>16&65535)<2){Q=YK(N,Q)|0;S=c[P>>2]|0;if((S|0)!=0){break b}c[L>>2]=0;if(R<<16>>16!=-32767){q=10;break}a[K]=1}else{c[L>>2]=0;q=10}}while(0);if((q|0)==10){S=PJ(N,0)|0;c[L>>2]=S;if((S|0)!=0){q=20;break a}Q=c[N+4>>2]|0}if((c[N+20>>2]|0)==0){c[t>>2]=(c[N>>2]|0)+(c[N+8>>2]|0);c[E>>2]=Q;a[r]=1;S=DK(N,Q)|0;c[L>>2]=S;if((S|0)!=0){q=20;break a}Q=c[E>>2]|0}else{q=jJ(M,Q,O)|0;c[t>>2]=q;S=c[L>>2]|0;if((S|0)!=0){q=20;break a}S=CK(N,q,Q)|0;c[L>>2]=S;if((S|0)!=0){q=20;break a}c[E>>2]=Q}L=c[t>>2]|0;c[u+4>>2]=L;c[B>>2]=L;c[u+8>>2]=L+Q;c[s>>2]=0;q=24;break a}}while(0);c[L>>2]=S;q=20}}while(0);do{if((q|0)==20){if((a[r]|0)==0){lJ(M,c[t>>2]|0);c[t>>2]=0;S=c[L>>2]|0}c[s>>2]=S;if((S|0)!=0){break}Q=c[E>>2]|0;L=c[t>>2]|0;q=24}}while(0);c:do{if((q|0)==24){S=ES(f,u,L,Q)|0;c[s>>2]=S;if((S|0)!=0){break}L=c[J>>2]|0;J=c[u+16>>2]|0;c[x>>2]=0;d:do{if((a[K]|0)==0){S=c[t>>2]|0;N=c[E>>2]|0;F=u+8|0;H=u+32|0;K=u+12|0;I=u+28|0;L=N;M=S;G=S;N=S+N|0;e:while(1){O=G;f:while(1){do{if((a[O]|0)==101){G=O+9|0;if(G>>>0>=N>>>0){break}if((a[O+1|0]|0)!=101){break}if((a[O+2|0]|0)!=120){break}if((a[O+3|0]|0)!=101){break}if((a[O+4|0]|0)==99){break f}}}while(0);O=O+1|0;if(O>>>0>=N>>>0){q=55;break e}}c[B>>2]=M;c[F>>2]=G;if(M>>>0<G>>>0){do{if((a[M]|0)==101){if((vc(M|0,274824,5)|0)==0){break e}}fd[c[H>>2]&511](u);if((c[K>>2]|0)!=0){break}fd[c[I>>2]&511](u);M=c[B>>2]|0;}while(M>>>0<G>>>0);O=c[E>>2]|0;N=c[t>>2]|0}else{O=L;N=M}L=O;M=N;N=N+O|0}if((q|0)==55){c[x>>2]=3;C=3;q=78;break}c[F>>2]=(c[t>>2]|0)+(c[E>>2]|0);fd[c[H>>2]&511](u);q=c[B>>2]|0;g:do{if(q>>>0<G>>>0){while(1){S=a[q]|0;if(!(S<<24>>24==10|S<<24>>24==13|S<<24>>24==9|S<<24>>24==32)){break}q=q+1|0;if(q>>>0>=G>>>0){break g}}H=c[t>>2]|0;G=H-q+(c[E>>2]|0)|0;if((a[r]|0)==0){a[u+94|0]=1;c[u+84>>2]=H;c[u+88>>2]=G;c[t>>2]=0;c[E>>2]=0}else{H=jJ(J,G+1|0,z)|0;c[u+84>>2]=H;z=c[x>>2]|0;if((z|0)!=0){C=z;q=78;break d}c[u+88>>2]=G}S=d[q]|0;do{if((S+ -48|0)>>>0<10|(S+ -97|0)>>>0<6|(S+ -65|0)>>>0<6){S=d[q+1|0]|0;if(!((S+ -48|0)>>>0<10|(S+ -97|0)>>>0<6|(S+ -65|0)>>>0<6)){break}S=d[q+2|0]|0;if(!((S+ -48|0)>>>0<10|(S+ -97|0)>>>0<6|(S+ -65|0)>>>0<6)){break}S=d[q+3|0]|0;if(!((S+ -48|0)>>>0<10|(S+ -97|0)>>>0<6|(S+ -65|0)>>>0<6)){break}c[B>>2]=q;B=u+84|0;q=u+88|0;Cd[c[(c[D>>2]|0)+24>>2]&63](u,H,G,A,0)|0;z=c[C>>2]|0;c[q>>2]=z;a[(c[B>>2]|0)+z|0]=0;z=u;A=q;q=77;break d}}while(0);aX(H|0,q|0,G|0)|0;z=u;B=u+84|0;A=u+88|0;q=77;break d}}while(0);c[x>>2]=3;C=3;q=78}else{B=IK(L)|0;A=u+88|0;c[A>>2]=0;while(1){C=EK(L,I)|0;D=c[H>>2]|0;if((D|0)!=0){q=31;break}if((C+32767<<16>>16&65535)>=2){q=29;break}E=YK(L,I)|0;D=c[H>>2]|0;if((D|0)!=0){q=31;break}c[x>>2]=0;if(C<<16>>16!=-32766){break}c[A>>2]=(c[A>>2]|0)+E;C=DK(L,E)|0;c[x>>2]=C;if((C|0)!=0){q=78;break d}}if((q|0)==29){c[x>>2]=0}else if((q|0)==31){c[x>>2]=D;break}if((c[A>>2]|0)==0){c[x>>2]=3;C=3;q=78;break}C=PJ(L,B)|0;c[x>>2]=C;if((C|0)!=0){q=78;break}B=u+84|0;c[B>>2]=jJ(J,c[A>>2]|0,z)|0;C=c[x>>2]|0;if((C|0)!=0){q=78;break}c[A>>2]=0;C=EK(L,G)|0;D=c[F>>2]|0;h:do{if((D|0)==0){while(1){if((C+32767<<16>>16&65535)>=2){D=0;q=41;break h}z=YK(L,G)|0;D=c[F>>2]|0;if((D|0)!=0){q=41;break h}c[x>>2]=0;if(C<<16>>16!=-32766){break h}C=CK(L,(c[B>>2]|0)+(c[A>>2]|0)|0,z)|0;c[x>>2]=C;if((C|0)!=0){q=78;break d}c[A>>2]=(c[A>>2]|0)+z;C=EK(L,G)|0;D=c[F>>2]|0;if((D|0)!=0){q=41;break}}}else{q=41}}while(0);if((q|0)==41){c[x>>2]=D}c[x>>2]=0;z=u;F=u+8|0;q=77}}while(0);if((q|0)==77){Gd[c[y+16>>2]&255](c[B>>2]|0,c[A>>2]|0,-9871);a[c[B>>2]|0]=32;a[(c[B>>2]|0)+1|0]=32;a[(c[B>>2]|0)+2|0]=32;a[(c[B>>2]|0)+3|0]=32;D=c[B>>2]|0;c[u+4>>2]=D;c[z>>2]=D;c[F>>2]=D+(c[A>>2]|0);D=c[x>>2]|0}else if((q|0)==78){c[s>>2]=C;break}c[s>>2]=D;if((D|0)!=0){break}S=ES(f,u,c[u+84>>2]|0,c[u+88>>2]|0)|0;c[s>>2]=S;if((S|0)!=0){break}x=f+176|0;a[x]=a[x]&-2;x=f+532|0;A=c[x>>2]|0;do{if((A|0)!=0){y=A+416|0;z=c[y>>2]|0;if((z|0)!=0){if((z|0)!=(c[A+4>>2]|0)){c[y>>2]=0;A=c[x>>2]|0}if((A|0)==0){break}}if((c[A>>2]|0)==0){q=88}else{if((c[A+4>>2]|0)==0){q=88}}if((q|0)==88){DS(f);A=c[x>>2]|0}if((A|0)==0){break}B=c[A+4>>2]|0;if((B|0)!=0){z=0;while(1){y=z+1|0;if((a[A+88+(z*12|0)|0]|0)==0){q=93;break}if(y>>>0<B>>>0){z=y}else{break}}if((q|0)==93){DS(f);A=c[x>>2]|0}if((A|0)==0){break}}x=c[o>>2]|0;if((x|0)==0){break}c[f+548>>2]=oJ(c[w>>2]|0,4,0,x,0,v)|0;if((c[s>>2]|0)==0){break}c[o>>2]=0;break c}}while(0);v=f+416|0;c[v>>2]=c[u+152>>2];w=u+328|0;if((c[w>>2]|0)!=0){c[w>>2]=0;c[f+404>>2]=c[u+312>>2];c[f+392>>2]=c[u+316>>2];c[f+408>>2]=c[u+340>>2];c[f+412>>2]=c[u+344>>2]}w=u+220|0;do{if((c[(c[f+128>>2]|0)+52>>2]|0)==0){if((c[w>>2]|0)!=0){break}c[s>>2]=3}}while(0);c[w>>2]=0;c[f+396>>2]=c[u+208>>2];c[f+424>>2]=c[u+232>>2];c[f+428>>2]=c[u+236>>2];R=u+156|0;c[f+400>>2]=c[R>>2];S=u+180|0;y=f+420|0;c[y>>2]=c[S>>2];c[R>>2]=0;c[S>>2]=0;if((c[f+368>>2]|0)!=1){break}w=u+116|0;if((c[w>>2]|0)>0){z=f+384|0;x=f+388|0;A=u+124|0;B=0;C=0;D=0;do{b[(c[z>>2]|0)+(B<<1)>>1]=0;c[(c[x>>2]|0)+(B<<2)>>2]=274816;I=c[(c[A>>2]|0)+(B<<2)>>2]|0;i:do{if((I|0)!=0){G=c[v>>2]|0;if((G|0)<=0){break}E=c[y>>2]|0;H=0;while(1){J=c[E+(H<<2)>>2]|0;F=H+1|0;if((Qc(I|0,J|0)|0)==0){break}if((F|0)<(G|0)){H=F}else{break i}}b[(c[z>>2]|0)+(B<<1)>>1]=H;c[(c[x>>2]|0)+(B<<2)>>2]=J;if((Qc(274816,J|0)|0)==0){break}C=(B|0)<(C|0)?C:B+1|0;D=(B|0)<(D|0)?B:D}}while(0);B=B+1|0;}while((B|0)<(c[w>>2]|0))}else{C=0;D=0}c[f+376>>2]=D;c[f+380>>2]=C;c[f+372>>2]=c[u+96>>2]}}while(0);v=c[u+148>>2]|0;if((v|0)!=0){fd[v&511](u+100|0)}v=c[u+256>>2]|0;if((v|0)!=0){fd[v&511](u+208|0)}v=c[u+204>>2]|0;if((v|0)!=0){fd[v&511](u+156|0)}v=c[u+308>>2]|0;if((v|0)!=0){fd[v&511](u+260|0)}v=c[u+364>>2]|0;if((v|0)!=0){fd[v&511](u+316|0)}v=c[u+16>>2]|0;S=u+84|0;lJ(v,c[S>>2]|0);c[S>>2]=0;if((a[r]|0)==0){lJ(v,c[t>>2]|0);c[t>>2]=0}fd[c[u+24>>2]&511](u);r=c[s>>2]|0;if((r|0)!=0|(g|0)<0){S=r;i=e;return S|0}if((g|0)>0){S=6;i=e;return S|0}g=f+416|0;c[f+16>>2]=c[g>>2];c[f+4>>2]=0;t=f+8|0;s=(a[f+156|0]|0)==0?2577:2581;c[t>>2]=s;r=c[f+532>>2]|0;if((r|0)!=0){c[t>>2]=s|256}t=c[f+144>>2]|0;u=f+20|0;c[u>>2]=t;s=f+24|0;c[s>>2]=0;j:do{if((t|0)==0){q=c[f+364>>2]|0;if((q|0)==0){q=145;break}c[u>>2]=q;q=145}else{w=c[f+140>>2]|0;if((w|0)==0){q=145;break}v=a[w]|0;k:do{if(v<<24>>24!=0){while(1){u=a[t]|0;while(1){if(v<<24>>24==u<<24>>24){q=136;break}if(!(v<<24>>24==45|v<<24>>24==32)){q=140;break}w=w+1|0;v=a[w]|0;if(v<<24>>24==0){break k}}if((q|0)==136){q=0;w=w+1|0}else if((q|0)==140){q=0;if(!(u<<24>>24==45|u<<24>>24==32))if(u<<24>>24==0){break}else{q=145;break j}}v=a[w]|0;if(v<<24>>24==0){break k}else{t=t+1|0}}c[s>>2]=w;if((w|0)==0){q=145;break j}else{break j}}}while(0);c[s>>2]=274792}}while(0);do{if((q|0)==145){q=c[f+148>>2]|0;if((q|0)==0){c[s>>2]=274792;break}else{c[s>>2]=q;break}}}while(0);s=f+12|0;t=(c[f+152>>2]|0)!=0|0;c[s>>2]=t;q=c[f+148>>2]|0;do{if((q|0)!=0){if((Qc(q|0,274800)|0)!=0){if((Qc(q|0,274808)|0)!=0){break}}c[s>>2]=t|2}}while(0);c[f+28>>2]=0;c[f+32>>2]=0;c[f+52>>2]=c[f+460>>2]>>16;s=c[f+464>>2]>>16;c[f+56>>2]=s;t=(c[f+468>>2]|0)+65535>>16;c[f+60>>2]=t;q=(c[f+472>>2]|0)+65535>>16;c[f+64>>2]=q;u=f+68|0;v=b[u>>1]|0;if(v<<16>>16==0){b[u>>1]=1e3;v=1e3}S=q&65535;b[f+70>>1]=S;u=s&65535;b[f+72>>1]=u;s=((((v&65535)*12|0)>>>0)/10|0)&65535;q=f+74|0;u=(S<<16>>16)-(u<<16>>16)|0;b[q>>1]=(s<<16>>16|0)<(u|0)?u&65535:s;s=f+76|0;b[s>>1]=t;p=(c[p>>2]|0)+12|0;if((Fd[c[c[p>>2]>>2]&7](m,f,0,0,c[f+420>>2]|0,r,0,0,199)|0)==0){a[m+70|0]=1;a[m+68|0]=0;c[m+1364>>2]=c[f+404>>2];c[m+1368>>2]=c[f+408>>2];c[m+1372>>2]=c[f+412>>2];c[m+1488>>2]=c[f+548>>2];c[m+1492>>2]=c[o>>2];if((c[g>>2]|0)>0){r=m+4|0;o=m+40|0;t=0;u=0;do{do{if((CS(m,u,n)|0)==0){v=c[(c[(c[r>>2]|0)+128>>2]|0)+52>>2]|0;if((v|0)==0){break}hd[c[(c[v>>2]|0)+4>>2]&127](c[v+4>>2]|0,n)}}while(0);v=c[o>>2]|0;t=(u|0)==0|(v|0)>(t|0)?v:t;u=u+1|0;}while((u|0)<(c[g>>2]|0))}else{t=0}fd[c[(c[p>>2]|0)+4>>2]&511](m);b[s>>1]=(ZI(t)|0)>>>16}b[f+78>>1]=b[q>>1]|0;b[f+80>>1]=b[f+158>>1]|0;b[f+82>>1]=b[f+160>>1]|0;if((k|0)==0|(l|0)==0){S=0;i=e;return S|0}k=c[l+20>>2]|0;c[j>>2]=f;o=h+8|0;b[o>>1]=3;l=h+10|0;b[l>>1]=1;j=h+4|0;c[j>>2]=1970170211;m=k+12|0;n=eK(c[m>>2]|0,0,h,0)|0;if(!((n|0)==0|(n|0)==163)){S=n;i=e;return S|0}b[o>>1]=7;f=c[f+368>>2]|0;if((f|0)==4){c[j>>2]=1094992453;b[l>>1]=1;k=k+4|0}else if((f|0)==1){c[j>>2]=1094992451;b[l>>1]=2;k=k+8|0}else if((f|0)==3){c[j>>2]=1818326065;b[l>>1]=3;k=m}else if((f|0)==2){c[j>>2]=1094995778;b[l>>1]=0}else{S=0;i=e;return S|0}f=c[k>>2]|0;if((f|0)==0){S=0;i=e;return S|0}S=eK(f,0,h,0)|0;i=e;return S|0}function pS(a){a=a|0;var b=0,d=0,e=0,f=0;b=i;if((a|0)==0){i=b;return}d=c[a+100>>2]|0;e=a+548|0;f=c[e>>2]|0;if((f|0)!=0){lJ(d,f);c[e>>2]=0;c[a+544>>2]=0}DS(a);c[a+532>>2]=0;e=a+132|0;lJ(d,c[e>>2]|0);c[e>>2]=0;e=a+136|0;lJ(d,c[e>>2]|0);c[e>>2]=0;e=a+140|0;lJ(d,c[e>>2]|0);c[e>>2]=0;e=a+144|0;lJ(d,c[e>>2]|0);c[e>>2]=0;e=a+148|0;lJ(d,c[e>>2]|0);c[e>>2]=0;e=a+428|0;lJ(d,c[e>>2]|0);c[e>>2]=0;e=a+424|0;lJ(d,c[e>>2]|0);c[e>>2]=0;e=a+420|0;lJ(d,c[e>>2]|0);c[e>>2]=0;e=a+408|0;lJ(d,c[e>>2]|0);c[e>>2]=0;e=a+412|0;lJ(d,c[e>>2]|0);c[e>>2]=0;e=a+392|0;lJ(d,c[e>>2]|0);c[e>>2]=0;e=a+396|0;lJ(d,c[e>>2]|0);c[e>>2]=0;e=a+400|0;lJ(d,c[e>>2]|0);c[e>>2]=0;e=a+384|0;lJ(d,c[e>>2]|0);c[e>>2]=0;e=a+388|0;lJ(d,c[e>>2]|0);c[e>>2]=0;e=a+364|0;lJ(d,c[e>>2]|0);c[e>>2]=0;e=c[a+492>>2]|0;if((e|0)!=0){f=e+36|0;lJ(d,c[f>>2]|0);c[f>>2]=0;c[e+40>>2]=0;f=e+28|0;lJ(d,c[f>>2]|0);c[f>>2]=0;c[e+32>>2]=0;lJ(d,e)}c[a+20>>2]=0;c[a+24>>2]=0;i=b;return}function qS(a){a=a|0;var b=0,d=0,e=0,f=0;b=i;d=i;i=i+8|0;e=c[a>>2]|0;f=c[e+552>>2]|0;e=mK(c[(c[e+96>>2]|0)+4>>2]|0,274744)|0;if((e|0)==0|(f|0)==0){f=0;i=b;return f|0}f=c[f>>2]|0;if((f|0)==0){f=0;i=b;return f|0}e=jd[f&511](e)|0;if((e|0)==0){f=0;i=b;return f|0}f=c[a>>2]|0;e=sd[c[e>>2]&127](c[f+100>>2]|0,f+168|0,d)|0;if((e|0)!=0){f=e;i=b;return f|0}c[a+40>>2]=c[d>>2];f=0;i=b;return f|0}function rS(a){a=a|0;var b=0,d=0,e=0;b=i;d=a+40|0;if((c[d>>2]|0)==0){i=b;return}a=c[a>>2]|0;e=c[a+552>>2]|0;a=mK(c[(c[a+96>>2]|0)+4>>2]|0,274744)|0;do{if(!((a|0)==0|(e|0)==0)){e=c[e>>2]|0;if((e|0)==0){break}a=jd[e&511](a)|0;if((a|0)==0){break}fd[c[a+8>>2]&511](c[d>>2]|0)}}while(0);c[d>>2]=0;i=b;return}function sS(a){a=a|0;var b=0,d=0,e=0;b=i;e=c[a+4>>2]|0;d=c[e+552>>2]|0;if((d|0)==0){i=b;return 0}e=mK(c[(c[e+96>>2]|0)+4>>2]|0,274744)|0;if((e|0)==0){i=b;return 0}e=jd[c[d+4>>2]&511](e)|0;c[(c[a+156>>2]|0)+36>>2]=e;i=b;return 0}function tS(a){a=a|0;c[(c[a+156>>2]|0)+36>>2]=0;i=i;return}function uS(d,f,g,h){d=d|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,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;j=i;q=i;i=i+1504|0;x=i;i=i+16|0;w=x;m=i;i=i+8|0;k=m;o=i;i=i+16|0;n=o;y=i;i=i+8|0;v=y;l=c[d+4>>2]|0;s=c[(c[l+488>>2]|0)+12>>2]|0;do{if((c[l+16>>2]|0)>>>0<=g>>>0){if((c[(c[l+128>>2]|0)+52>>2]|0)==0){k=6}else{break}i=j;return k|0}}while(0);u=(h&1024|0)==0?h:h|3;B=(f|0)!=0;if(B){c[d+172>>2]=c[f+16>>2];c[d+176>>2]=c[f+20>>2]}else{c[d+172>>2]=65536;c[d+176>>2]=65536}h=d+108|0;b[d+110>>1]=0;b[h>>1]=0;z=(u&1|0)==0;if(z){r=(u>>>1&1^1)&255}else{r=0}A=d+72|0;c[A>>2]=1869968492;t=Fdfd[c[s+4>>2]&511](q);D=g;i=j;return D|0}$W(x|0,q+1376|0,16)|0;C=c[q+1392>>2]|0;g=c[q+1396>>2]|0;fd[c[s+4>>2]&511](q);D=d+124|0;c[D>>2]=c[D>>2]&1|4;do{if((t|0)==0){t=d+24|0;E=q+40|0;s=d+40|0;c[s>>2]=(ZI(c[E>>2]|0)|0)>>16;c[d+56>>2]=(ZI(c[E>>2]|0)|0)>>16;a[(c[d+156>>2]|0)+8|0]=0;u=(u&16|0)!=0;if(u){E=l+460|0;E=(c[E+12>>2]|0)-(c[E+4>>2]|0)>>16;c[d+52>>2]=E;c[d+60>>2]=E}else{E=q+44|0;c[d+52>>2]=(ZI(c[E>>2]|0)|0)>>16;c[d+60>>2]=(ZI(c[E>>2]|0)|0)>>16}c[A>>2]=1869968492;do{if(B){if((e[f+14>>1]|0)>=24){break}c[D>>2]=c[D>>2]|256}}while(0);do{if((c[x>>2]|0)==65536){if((c[w+12>>2]|0)!=65536){p=22;break}if((c[w+4>>2]|0)!=0){p=22;break}if((c[w+8>>2]|0)!=0){p=22}}else{p=22}}while(0);if((p|0)==22){GJ(h,w)}if((g|C|0)!=0){HJ(h,C,g)}c[y>>2]=c[s>>2];E=v+4|0;c[E>>2]=0;IJ(v,w);c[s>>2]=(c[y>>2]|0)+C;c[y>>2]=0;x=d+52|0;c[E>>2]=c[x>>2];IJ(v,w);c[x>>2]=(c[E>>2]|0)+g;if(z){y=c[q+16>>2]|0;f=c[y+4>>2]|0;v=c[d+172>>2]|0;w=c[d+176>>2]|0;if(r<<24>>24==0){p=28}else{if((c[q+72>>2]|0)==0){p=28}}do{if((p|0)==28){p=b[y+2>>1]|0;if(p<<16>>16<=0){break}p=p<<16>>16;while(1){c[f>>2]=aJ(c[f>>2]|0,v)|0;E=f+4|0;c[E>>2]=aJ(c[E>>2]|0,w)|0;p=p+ -1|0;if((p|0)>0){f=f+8|0}else{break}}}}while(0);c[s>>2]=aJ(c[s>>2]|0,v)|0;c[x>>2]=aJ(c[x>>2]|0,w)|0}zK(h,n);D=c[o>>2]|0;c[t>>2]=(c[n+8>>2]|0)-D;E=c[n+12>>2]|0;c[d+28>>2]=E-(c[n+4>>2]|0);c[d+32>>2]=D;c[d+36>>2]=E;if(!u){break}XJ(t,c[x>>2]|0)}else{E=c[d+156>>2]|0;c[d+32>>2]=(ZI(c[q+32>>2]|0)|0)>>16;c[d+40>>2]=(ZI(c[q+40>>2]|0)|0)>>16;$W(E+12|0,x|0,16)|0;c[E+28>>2]=C;c[E+32>>2]=g;a[E+8|0]=1}}while(0);n=d+136|0;c[n>>2]=c[m>>2];d=d+140|0;c[d>>2]=c[k+4>>2];l=c[(c[l+128>>2]|0)+52>>2]|0;if((l|0)==0){E=0;i=j;return E|0}hd[c[(c[l>>2]|0)+4>>2]&127](c[l+4>>2]|0,k);c[n>>2]=0;c[d>>2]=0;E=0;i=j;return E|0}function vS(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;g=i;c[e>>2]=0;f=e+4|0;c[f>>2]=0;a=c[a+492>>2]|0;if((a|0)==0){i=g;return 0}h=c[a+36>>2]|0;b=b<<16|d;a=(c[a+40>>2]|0)+ -1|0;a:do{if((a|0)>=0){a=h+(a<<4)|0;b:while(1){while(1){d=(a-h>>4|0)/2|0;j=c[h+(d<<4)>>2]<<16|c[h+(d<<4)+4>>2];if((j|0)==(b|0)){break b}if(j>>>0>=b>>>0){break}h=h+(d+1<<4)|0;if(h>>>0>a>>>0){break a}}a=d+ -1|0;if((a|0)<0){break a}else{a=h+(a<<4)|0}}c[e>>2]=c[h+(d<<4)+8>>2];c[f>>2]=c[h+(d<<4)+12>>2];i=g;return 0}}while(0);c[e>>2]=0;c[f>>2]=0;i=g;return 0}function wS(a,e){a=a|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,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0;g=i;p=i;i=i+8|0;s=p;u=i;i=i+24|0;f=i;i=i+8|0;q=e+28|0;h=c[q>>2]|0;c[f>>2]=2;t=a+132|0;n=jJ(h,44,f)|0;do{if((c[f>>2]|0)==0){r=e+4|0;C=MK(e,c[r>>2]|0)|0;c[f>>2]=C;if((C|0)!=0){break}l=n+4|0;o=a+460|0;$W(l|0,o|0,16)|0;m=n+20|0;c[m>>2]=c[o+12>>2];k=n+24|0;c[k>>2]=c[o+4>>2];v=c[a+488>>2]|0;do{if((v|0)==0){j=7}else{v=v+24|0;w=c[v>>2]|0;if((w|0)==0){j=7;break}w=pd[c[w>>2]&63](u,c[q>>2]|0,c[e+32>>2]|0,c[e+36>>2]|0)|0;c[f>>2]=w;if((w|0)!=0){break}c[u+8>>2]=n;c[u+12>>2]=91;c[u+16>>2]=t;c[f>>2]=jd[c[(c[v>>2]|0)+8>>2]&511](u)|0;fd[c[(c[v>>2]|0)+4>>2]&511](u);j=7}}while(0);if((j|0)==7){w=c[f>>2]|0}do{if((w|0)==2){v=c[e+32>>2]|0;r=c[r>>2]|0;if(r>>>0<=6){break}if((d[v+1|0]|0)>=4){j=37;break}if((d[v+4|0]<<16|d[v+5|0]<<24|d[v+3|0]<<8|d[v+2|0]|0)!=(r|0)){j=37;break}q=c[q>>2]|0;w=c[e+36>>2]|0;c[p>>2]=0;a:do{if((v+101|0)>>>0>w>>>0){c[p>>2]=2;j=35}else{r=(d[v+100|0]<<8&65535|d[v+99|0])&65535;if((v+(r+135)|0)>>>0>w>>>0){w=0;break}if(((d[v+(r+118)|0]<<8&65535|d[v+(r+117)|0])&65535)<18){w=0;break}r=d[v+(r+133)|0]<<16|d[v+(r+134)|0]<<24|d[v+(r+132)|0]<<8|d[v+(r+131)|0];if((r|0)==0){w=0;break}u=r+2|0;t=v+u|0;if(t>>>0>w>>>0){c[p>>2]=2;j=35;break}y=d[v+(r+1)|0]<<8&65535|d[v+r|0];x=y&65535;r=n+40|0;c[r>>2]=x;if((v+((x<<2)+u)|0)>>>0>w>>>0){c[p>>2]=2;j=35;break}if(y<<16>>16==0){w=0;break}x=oJ(q,16,0,x,0,s)|0;s=n+36|0;c[s>>2]=x;if((c[p>>2]|0)!=0){j=35;break}y=(c[r>>2]<<2)+u|0;w=v+y|0;v=c[a+92>>2]|0;C=c[a+36>>2]|0;b:do{if((C|0)>0){A=c[a+40>>2]|0;z=0;while(1){B=c[A+(z<<2)>>2]|0;z=z+1|0;if((b[B+8>>1]|0)==7){break}if((z|0)>=(C|0)){break b}}C=dK(a,B)|0;c[p>>2]=C;if((C|0)!=0){j=35;break a}}}while(0);if((u|0)<(y|0)){while(1){c[x>>2]=KJ(a,d[t]|0)|0;c[x+4>>2]=KJ(a,d[t+1|0]|0)|0;c[x+8>>2]=(d[t+3|0]<<8&65535|d[t+2|0])<<16>>16;c[x+12>>2]=0;t=t+4|0;if(t>>>0<w>>>0){x=x+16|0}else{break}}}if((v|0)==0){t=c[p>>2]|0}else{t=dK(a,v)|0;c[p>>2]=t}if((t|0)!=0){j=35;break}pb(c[s>>2]|0,c[r>>2]|0,16,200);if((c[p>>2]|0)==0){w=0}else{j=35}}}while(0);if((j|0)==35){w=n+36|0;lJ(q,c[w>>2]|0);c[w>>2]=0;c[n+40>>2]=0;w=c[p>>2]|0}c[f>>2]=w;j=37}else{j=37}}while(0);do{if((j|0)==37){if((w|0)!=0){break}$W(o|0,l|0,16)|0;c[a+52>>2]=c[l>>2]>>16;c[a+56>>2]=c[n+8>>2]>>16;c[a+60>>2]=(c[n+12>>2]|0)+65535>>16;c[a+64>>2]=(c[n+16>>2]|0)+65535>>16;b[a+70>>1]=((c[m>>2]|0)+32768|0)>>>16;b[a+72>>1]=((c[k>>2]|0)+32768|0)>>>16;if((c[n+40>>2]|0)==0){break}C=a+8|0;c[C>>2]=c[C>>2]|64;c[a+492>>2]=n;n=0}}while(0);PK(e)}}while(0);if((n|0)==0){C=f;C=c[C>>2]|0;i=g;return C|0}C=n+36|0;lJ(h,c[C>>2]|0);c[C>>2]=0;c[n+40>>2]=0;C=n+28|0;lJ(h,c[C>>2]|0);c[C>>2]=0;c[n+32>>2]=0;lJ(h,n);C=f;C=c[C>>2]|0;i=g;return C|0}function xS(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;k=i;i=i+8|0;j=i;i=i+1504|0;if((f&16|0)!=0){if((e|0)==0){m=0;i=h;return m|0}bX(g|0,0,e<<2|0)|0;m=0;i=h;return m|0}f=Fd[c[c[(c[b+488>>2]|0)+12>>2]>>2]&7](j,b,0,0,c[b+420>>2]|0,c[b+532>>2]|0,0,0,199)|0;if((f|0)!=0){m=f;i=h;return m|0}a[j+70|0]=1;a[j+68|0]=0;c[j+1364>>2]=c[b+404>>2];c[j+1368>>2]=c[b+408>>2];c[j+1372>>2]=c[b+412>>2];c[j+1488>>2]=c[b+548>>2];c[j+1492>>2]=c[b+544>>2];if((e|0)==0){m=0;i=h;return m|0}f=j+4|0;b=j+40|0;m=0;while(1){if((CS(j,m+d|0,k)|0)==0){l=c[(c[(c[f>>2]|0)+128>>2]|0)+52>>2]|0;if((l|0)!=0){hd[c[(c[l>>2]|0)+4>>2]&127](c[l+4>>2]|0,k)}c[g+(m<<2)>>2]=(ZI(c[b>>2]|0)|0)>>16}else{c[g+(m<<2)>>2]=0}m=m+1|0;if(m>>>0>=e>>>0){g=0;break}}i=h;return g|0}function yS(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;d=i;e=c[a>>2]|0;f=c[e+552>>2]|0;e=mK(c[(c[e+96>>2]|0)+4>>2]|0,274744)|0;do{if(!((e|0)==0|(f|0)==0)){f=c[f>>2]|0;if((f|0)==0){break}e=jd[f&511](e)|0;_J(c[a>>2]|0,b);if((e|0)==0){i=d;return 0}Cd[c[e+4>>2]&63](c[a+40>>2]|0,c[a+16>>2]|0,c[a+20>>2]|0,0,0)|0;i=d;return 0}}while(0);_J(c[a>>2]|0,b);i=d;return 0}function zS(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0;f=i;if(d>>>0>65535){j=0;i=f;return j|0}g=c[e+284>>2]|0;if((g|0)<=0){j=0;i=f;return j|0}e=c[e+288>>2]|0;h=0;a:while(1){j=c[e+(h<<2)>>2]|0;do{if((j|0)!=0){if((a[j]|0)!=(a[b]|0)){break}if((ZW(j|0)|0)!=(d|0)){break}if((vc(j|0,b|0,d|0)|0)==0){d=9;break a}}}while(0);h=h+1|0;if((h|0)>=(g|0)){h=0;d=9;break}}if((d|0)==9){i=f;return h|0}return 0}function AS(a,b){a=a|0;b=b|0;var d=0;d=i;a=c[a>>2]<<16|c[a+4>>2];b=c[b>>2]<<16|c[b+4>>2];if(a>>>0>b>>>0){a=1;i=d;return a|0}a=(a>>>0<b>>>0)<<31>>31;i=d;return a|0}function BS(a,b){a=a|0;b=b|0;var d=0,e=0;d=i;e=i;i=i+8|0;b=CS(a,b,e)|0;if((b|0)!=0){i=d;return b|0}a=c[(c[(c[a+4>>2]|0)+128>>2]|0)+52>>2]|0;if((a|0)==0){i=d;return b|0}hd[c[(c[a>>2]|0)+4>>2]&127](c[a+4>>2]|0,e);i=d;return b|0}function CS(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;j=i;e=i;i=i+16|0;f=e;k=c[a+4>>2]|0;g=c[(c[k+128>>2]|0)+52>>2]|0;$W(a+1376|0,k+436|0,16)|0;m=k+452|0;l=c[m+4>>2]|0;h=a+1392|0;c[h>>2]=c[m>>2];c[h+4>>2]=l;h=(g|0)!=0;do{if(h){k=sd[c[c[g>>2]>>2]&127](c[g+4>>2]|0,b,d)|0;if((k|0)==0){k=c[d+4>>2]|0;d=c[d>>2]|0;break}else{m=k;i=j;return m|0}}else{m=c[(c[k+424>>2]|0)+(b<<2)>>2]|0;c[d>>2]=m;k=c[(c[k+428>>2]|0)+(b<<2)>>2]|0;c[d+4>>2]=k;d=m}}while(0);d=sd[c[a+1484>>2]&127](a,d,k)|0;if((d|0)!=0|h^1){m=d;i=j;return m|0}if((c[(c[g>>2]|0)+8>>2]|0)==0){m=0;i=j;return m|0}n=a+32|0;c[e>>2]=(ZI(c[n>>2]|0)|0)>>16;c[f+4>>2]=0;d=a+40|0;h=f+8|0;c[h>>2]=(ZI(c[d>>2]|0)|0)>>16;l=a+44|0;k=f+12|0;c[k>>2]=(ZI(c[l>>2]|0)|0)>>16;m=pd[c[(c[g>>2]|0)+8>>2]&63](c[g+4>>2]|0,b,0,f)|0;c[n>>2]=c[e>>2]<<16;c[d>>2]=c[h>>2]<<16;c[l>>2]=c[k>>2]<<16;i=j;return m|0}function DS(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0;e=i;d=c[b+100>>2]|0;g=b+532|0;f=c[g>>2]|0;if((f|0)==0){i=e;return}h=c[f>>2]|0;b=c[f+4>>2]|0;j=f+24|0;lJ(d,c[j>>2]|0);c[j>>2]=0;if(h>>>0>1){bX(f+28|0,0,(h<<2)+ -4|0)|0}j=f+216|0;lJ(d,c[j>>2]|0);c[j>>2]=0;j=f+148|0;lJ(d,c[j>>2]|0);c[j>>2]=0;j=f+288|0;lJ(d,c[j>>2]|0);c[j>>2]=0;if((h|0)!=0){j=0;do{c[f+212+(j<<2)>>2]=0;c[f+144+(j<<2)>>2]=0;c[f+284+(j<<2)>>2]=0;j=j+1|0;}while(j>>>0<h>>>0)}h=f+136|0;lJ(d,c[h>>2]|0);c[h>>2]=0;c[f+140>>2]=0;h=(b|0)==0;do{if(!h){j=0;do{k=f+8+(j<<2)|0;lJ(d,c[k>>2]|0);c[k>>2]=0;j=j+1|0;}while(j>>>0<b>>>0);if(h){break}else{h=0}do{k=f+88+(h*12|0)+4|0;lJ(d,c[k>>2]|0);c[k>>2]=0;a[f+88+(h*12|0)|0]=0;h=h+1|0;}while(h>>>0<b>>>0)}}while(0);lJ(d,c[g>>2]|0);c[g>>2]=0;i=e;return}function ES(b,e,f,g){b=b|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,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0;j=i;k=i;i=i+8|0;l=k;c[e>>2]=f;m=f+g|0;f=e+8|0;c[f>>2]=m;g=e+12|0;c[g>>2]=0;v=e+28|0;fd[c[v>>2]&511](e);A=c[e>>2]|0;a:do{if(A>>>0<m>>>0){s=e+372|0;t=e+32|0;q=e+36|0;u=b+532|0;r=b+132|0;p=e+68|0;o=e+64|0;x=b+132|0;y=b+164|0;n=b+168|0;w=b+460|0;B=0;z=0;b:while(1){C=a[A]|0;if(C<<24>>24==70){h=14}else if(C<<24>>24==101){D=A+6|0;do{if((D|0)==(m|0)){h=7}else{if(D>>>0>=m>>>0){break}switch(a[A+5|0]|0){case 37:case 125:case 123:case 93:case 91:case 62:case 60:case 41:case 40:case 47:case 0:case 12:case 9:case 10:case 13:case 32:{h=7;break};default:{}}}}while(0);if((h|0)==7){if((vc(A|0,274824,5)|0)==0){break a}}if(C<<24>>24==70){h=14}else if(C<<24>>24==99){h=9}else{h=21}}else if(C<<24>>24==99){h=9}else{h=21}if((h|0)==9){h=0;D=A+10|0;do{if((D|0)==(m|0)){h=12}else{if(D>>>0>=m>>>0){break}switch(a[A+9|0]|0){case 37:case 125:case 123:case 93:case 91:case 62:case 60:case 41:case 40:case 47:case 0:case 12:case 9:case 10:case 13:case 32:{h=12;break};default:{}}}}while(0);if((h|0)==12){if((vc(A|0,274832,9)|0)==0){break a}}if(C<<24>>24==70){h=14}else{h=21}}c:do{if((h|0)==14){h=0;D=A+14|0;if((D|0)!=(m|0)){if(D>>>0>=m>>>0){h=21;break}switch(a[A+13|0]|0){case 37:case 125:case 123:case 93:case 91:case 62:case 60:case 41:case 40:case 47:case 0:case 12:case 9:case 10:case 13:case 32:{break};default:{h=21;break c}}}if((vc(A|0,274848,13)|0)!=0){h=21;break}C=c[s>>2]|0;if((C&1|0)!=0){c[s>>2]=C|2}c[e>>2]=A+13}}while(0);d:do{if((h|0)==21){h=0;if(((C&255)+ -48|0)>>>0<10){fd[c[t>>2]&511](e);if((c[g>>2]|0)==0){B=1;z=A;break}else{break a}}D=(A+6|0)>>>0<m>>>0;do{if(C<<24>>24==82&D){if((a[A+1|0]|0)!=68|B<<24>>24==0){break}c[e>>2]=z;A=c[f>>2]|0;fd[c[v>>2]&511](e);B=c[e>>2]|0;if(B>>>0>=A>>>0){h=29;break b}if(((d[B]|0)+ -48|0)>>>0>=10){h=29;break b}B=jd[c[q>>2]&511](e)|0;fd[c[t>>2]&511](e);C=c[e>>2]|0;if((B|0)<=-1){h=29;break b}if((B|0)>=(A-(C+1)|0)){h=29;break b}c[e>>2]=C+(B+1);if((c[g>>2]|0)==0){B=0;break d}else{A=3;h=73;break b}}}while(0);do{if(C<<24>>24==45&D){if((a[A+1|0]|0)!=124|B<<24>>24==0){break}c[e>>2]=z;A=c[f>>2]|0;fd[c[v>>2]&511](e);B=c[e>>2]|0;if(B>>>0>=A>>>0){h=37;break b}if(((d[B]|0)+ -48|0)>>>0>=10){h=37;break b}C=jd[c[q>>2]&511](e)|0;fd[c[t>>2]&511](e);B=c[e>>2]|0;if((C|0)<=-1){h=37;break b}if((C|0)>=(A-(B+1)|0)){h=37;break b}c[e>>2]=B+(C+1);if((c[g>>2]|0)==0){B=0;break d}else{A=3;h=73;break b}}}while(0);if(!(C<<24>>24==47&(A+2|0)>>>0<m>>>0)){fd[c[t>>2]&511](e);if((c[g>>2]|0)==0){B=0;break}else{break a}}C=A+1|0;c[e>>2]=C;fd[c[t>>2]&511](e);if((c[g>>2]|0)!=0){break a}E=c[e>>2]|0;D=E-C|0;if(!((D+ -1|0)>>>0<21&E>>>0<m>>>0)){B=0;break}B=a[C]|0;E=276576;A=274864;e:while(1){do{if(B<<24>>24==(a[E]|0)){if((D|0)!=(ZW(E|0)|0)){break}if((iX(C|0,E|0,D|0)|0)==0){break e}}}while(0);A=A+36|0;E=c[A>>2]|0;if((E|0)==0){B=0;break d}}B=c[s>>2]|0;if(((B&1)+1&c[A+32>>2]|0)==0){B=0;break}if((B&2|0)!=0){if((Qc(E|0,276560)|0)!=0){B=0;break}}D=c[u>>2]|0;C=c[A+8>>2]|0;do{if((C|0)==10){hd[c[A+12>>2]&127](b,e);A=c[g>>2]|0}else{f:do{switch(c[A+4>>2]|0){case 4:{c[k>>2]=n;if((D|0)==0){B=0;D=l;break f}B=c[D>>2]|0;D=D+212|0;break};case 5:{c[k>>2]=w;if((D|0)==0){B=0;D=l;break f}B=c[D>>2]|0;D=D+284|0;break};case 8:{c[k>>2]=D;B=0;D=l;break};case 3:{c[k>>2]=x;if((D|0)==0){B=0;D=l;break f}B=c[D>>2]|0;D=D+144|0;break};case 6:{c[k>>2]=e;B=0;D=l;break};case 7:{c[k>>2]=b;B=0;D=l;break};case 2:{c[k>>2]=y;B=0;D=l;break};default:{c[k>>2]=r;B=0;D=l}}}while(0);if((C+ -8|0)>>>0<2){A=Cd[c[p>>2]&63](e,A,D,B,0)|0;break}else{A=Cd[c[o>>2]&63](e,A,D,B,0)|0;break}}}while(0);c[g>>2]=A;if((A|0)==0){B=0;break}if((A&255|0)!=162){h=73;break b}c[g>>2]=0;B=0}}while(0);fd[c[v>>2]&511](e);A=c[e>>2]|0;if(A>>>0>=m>>>0){break a}}if((h|0)==29){c[g>>2]=3;E=3;i=j;return E|0}else if((h|0)==37){c[g>>2]=3;E=3;i=j;return E|0}else if((h|0)==73){i=j;return A|0}}}while(0);E=c[g>>2]|0;i=j;return E|0}function FS(a,d){a=a|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0;f=i;e=i;i=i+24|0;g=e;if((pd[c[d+52>>2]&63](d,6,g,3)|0)<0){c[d+12>>2]=3;i=f;return}h=g+12|0;j=c[h>>2]|0;j=(j|0)<0?0-j|0:j;if((j|0)==0){c[d+12>>2]=3;i=f;return}b[a+68>>1]=(bJ(65536e3,j)|0)>>>16;if((j|0)==65536){d=c[g+20>>2]|0;k=c[h>>2]|0;h=g+4|0;j=g+8|0;g=g+16|0}else{c[e>>2]=bJ(c[e>>2]|0,j)|0;n=g+4|0;c[n>>2]=bJ(c[n>>2]|0,j)|0;m=g+8|0;c[m>>2]=bJ(c[m>>2]|0,j)|0;l=g+16|0;c[l>>2]=bJ(c[l>>2]|0,j)|0;k=g+20|0;d=bJ(c[k>>2]|0,j)|0;c[k>>2]=d;k=c[h>>2]>>31&-131072|65536;c[h>>2]=k;h=n;j=m;g=l}c[a+436>>2]=c[e>>2];c[a+444>>2]=c[h>>2];c[a+440>>2]=c[j>>2];c[a+448>>2]=k;c[a+452>>2]=c[g>>2]>>16;c[a+456>>2]=d>>16;i=f;return}function GS(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,p=0,q=0,r=0,s=0,t=0,u=0;e=i;m=i;i=i+8|0;p=m;g=c[d+8>>2]|0;o=c[b+488>>2]|0;h=d+28|0;fd[c[h>>2]&511](d);l=c[d>>2]|0;if(l>>>0>=g>>>0){c[d+12>>2]=3;i=e;return}t=a[l]|0;k=t<<24>>24==91;if(!(((t&255)+ -48|0)>>>0<10|k)){do{if((l+17|0)>>>0<g>>>0){if((vc(l|0,277264,16)|0)!=0){break}c[b+368>>2]=2;i=e;return}}while(0);do{if((l+15|0)>>>0<g>>>0){if((vc(l|0,277288,14)|0)!=0){break}c[b+368>>2]=4;i=e;return}}while(0);do{if((l+18|0)>>>0<g>>>0){if((vc(l|0,277304,17)|0)!=0){break}c[b+368>>2]=3;i=e;return}}while(0);c[d+12>>2]=162;i=e;return}j=d+100|0;n=c[d+16>>2]|0;if(k){c[d>>2]=l+1;k=256;q=1}else{k=jd[c[d+36>>2]&511](d)|0;q=0}fd[c[h>>2]&511](d);if((c[d>>2]|0)>>>0>=g>>>0){i=e;return}c[b+372>>2]=k;c[d+96>>2]=k;c[b+384>>2]=oJ(n,2,0,k,0,p)|0;r=c[m>>2]|0;do{if((r|0)==0){c[b+388>>2]=oJ(n,4,0,k,0,p)|0;r=c[m>>2]|0;if((r|0)!=0){break}r=sd[c[c[o>>2]>>2]&127](j,k,n)|0;c[m>>2]=r;if((r|0)!=0){break}if((k|0)>0){m=d+144|0;n=0;do{pd[c[m>>2]&63](j,n,274816,8)|0;n=n+1|0;}while((n|0)<(k|0))}fd[c[h>>2]&511](d);r=c[d>>2]|0;a:do{if(r>>>0<g>>>0){m=d+32|0;l=d+12|0;o=d+144|0;n=d+124|0;p=d+36|0;b:do{if(q<<24>>24==0){q=0;c:while(1){s=a[r]|0;do{if(s<<24>>24==100){t=r+3|0;if(t>>>0>=g>>>0){break}if((a[r+1|0]|0)!=101){break}if((a[r+2|0]|0)!=102){break}switch(a[t]|0){case 37:case 125:case 123:case 93:case 91:case 62:case 60:case 41:case 40:case 47:case 0:case 12:case 9:case 10:case 13:case 32:{l=t;break a};default:{}}}else if(s<<24>>24==93){f=r;break b}}while(0);do{if(((s&255)+ -48|0)>>>0>9){fd[c[m>>2]&511](d);if((c[l>>2]|0)!=0){g=52;break c}}else{r=jd[c[p>>2]&511](d)|0;fd[c[h>>2]&511](d);s=c[d>>2]|0;if(!((a[s]|0)==47&(s+2|0)>>>0<g>>>0&(q|0)<(k|0))){r=s;break}t=s+1|0;c[d>>2]=t;fd[c[m>>2]&511](d);if((c[l>>2]|0)!=0){g=52;break c}s=(c[d>>2]|0)-t|0;u=pd[c[o>>2]&63](j,r,t,s+1|0)|0;c[l>>2]=u;if((u|0)!=0){g=52;break c}a[(c[(c[n>>2]|0)+(r<<2)>>2]|0)+s|0]=0;r=t;q=q+1|0}}while(0);fd[c[h>>2]&511](d);s=c[d>>2]|0;if(s>>>0<g>>>0){r=s}else{l=r;break a}}if((g|0)==52){i=e;return}}else{p=0;while(1){s=a[r]|0;if(s<<24>>24==93){f=r;break b}else if(s<<24>>24==100){q=r+3|0;if(q>>>0>=g>>>0){g=39;break}do{if((a[r+1|0]|0)==101){if((a[r+2|0]|0)!=102){break}switch(a[q]|0){case 37:case 125:case 123:case 93:case 91:case 62:case 60:case 41:case 40:case 47:case 0:case 12:case 9:case 10:case 13:case 32:{l=q;break a};default:{}}}}while(0);if(s<<24>>24==93){f=r;break b}}if(!(s<<24>>24==47&(r+2|0)>>>0<g>>>0&(p|0)<(k|0))){g=39;break}q=r+1|0;c[d>>2]=q;fd[c[m>>2]&511](d);if((c[l>>2]|0)!=0){g=52;break}r=(c[d>>2]|0)-q|0;u=pd[c[o>>2]&63](j,p,q,r+1|0)|0;c[l>>2]=u;if((u|0)!=0){g=52;break}a[(c[(c[n>>2]|0)+(p<<2)>>2]|0)+r|0]=0;fd[c[h>>2]&511](d);r=c[d>>2]|0;if(r>>>0<g>>>0){p=p+1|0}else{l=q;break a}}if((g|0)==39){c[l>>2]=2;i=e;return}else if((g|0)==52){i=e;return}}}while(0);l=f+1|0}}while(0);c[b+368>>2]=1;c[d>>2]=l;i=e;return}}while(0);c[d+12>>2]=r;i=e;return}function HS(b,e){b=b|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,s=0,t=0,u=0,v=0,w=0,x=0,y=0;f=i;l=i;i=i+8|0;j=l;n=e+316|0;h=c[e+16>>2]|0;t=c[b+488>>2]|0;k=e+28|0;fd[c[k>>2]&511](e);m=c[e>>2]|0;g=e+8|0;do{if(m>>>0<(c[g>>2]|0)>>>0){if((a[m]|0)!=91){break}fd[c[e+32>>2]&511](e);fdfd[c[p>>2]&511](e);m=e+12|0;if((c[m>>2]|0)!=0){i=f;return}fd[c[k>>2]&511](e);r=e+312|0;if((c[r>>2]|0)==0){x=sd[c[c[t>>2]>>2]&127](n,o,h)|0;c[l>>2]=x;if((x|0)==0){s=9}}else{s=9}a:do{if((s|0)==9){b:do{if((vc(c[e>>2]|0,277248,3)|0)==0){s=b+172|0;t=t+16|0;b=e+360|0;while(1){fd[c[p>>2]&511](e);u=jd[c[q>>2]&511](e)|0;x=c[g>>2]|0;fd[c[k>>2]&511](e);v=c[e>>2]|0;if(v>>>0>=x>>>0){s=15;break}if(((d[v]|0)+ -48|0)>>>0>=10){s=15;break}v=jd[c[q>>2]&511](e)|0;fd[c[p>>2]&511](e);y=c[e>>2]|0;w=y+1|0;if((v|0)<=-1){s=15;break}if((v|0)>=(x-w|0)){s=15;break}c[e>>2]=y+(v+1);if((c[m>>2]|0)!=0){s=32;break}fd[c[p>>2]&511](e);if((c[m>>2]|0)!=0){s=32;break}fd[c[k>>2]&511](e);if((vc(c[e>>2]|0,277256,3)|0)==0){fd[c[p>>2]&511](e);fd[c[k>>2]&511](e)}if((c[r>>2]|0)==0){x=c[s>>2]|0;if((x|0)>-1){if((v|0)<(x|0)){s=24;break}y=jJ(h,v,j)|0;x=c[l>>2]|0;if((x|0)!=0){break a}$W(y|0,w|0,v|0)|0;Gd[c[t>>2]&255](y,v,4330);x=c[s>>2]|0;c[l>>2]=pd[c[b>>2]&63](n,u,y+x|0,v-x|0)|0;lJ(h,y);x=c[l>>2]|0}else{x=pd[c[b>>2]&63](n,u,w,v)|0;c[l>>2]=x}if((x|0)!=0){break a}}if((vc(c[e>>2]|0,277248,3)|0)!=0){break b}}if((s|0)==15){c[m>>2]=3;i=f;return}else if((s|0)==24){c[l>>2]=3;x=3;break a}else if((s|0)==32){i=f;return}}}while(0);if((c[r>>2]|0)!=0){i=f;return}c[r>>2]=o;i=f;return}}while(0);c[m>>2]=x;i=f;return}function IS(b,e){b=b|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,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;f=i;h=i;i=i+8|0;p=h;o=i;i=i+8|0;n=o;j=e+208|0;k=e+156|0;l=e+260|0;q=c[e+16>>2]|0;z=c[b+488>>2]|0;r=e+8|0;t=c[r>>2]|0;s=e+36|0;y=jd[c[s>>2]&511](e)|0;if((y|0)==0){i=f;return}g=e+12|0;if((c[g>>2]|0)!=0){i=f;return}m=e+152|0;do{if((c[m>>2]|0)==0){v=y+6|0;G=sd[c[c[z>>2]>>2]&127](j,v,q)|0;c[h>>2]=G;if((G|0)!=0){break}G=sd[c[c[z>>2]>>2]&127](k,v,q)|0;c[h>>2]=G;if((G|0)!=0){break}G=sd[c[c[z>>2]>>2]&127](l,4,q)|0;c[h>>2]=G;if((G|0)==0){u=7}}else{u=7}}while(0);a:do{if((u|0)==7){x=e+28|0;fd[c[x>>2]&511](e);E=c[e>>2]|0;do{if(E>>>0<t>>>0){u=e+32|0;v=e+200|0;w=e+180|0;b=b+172|0;y=y+5|0;A=z+16|0;z=e+252|0;B=0;D=0;C=0;b:while(1){G=(B|0)==0;while(1){F=E+3|0;c:do{if(F>>>0<t>>>0){switch(a[F]|0){case 37:case 125:case 123:case 93:case 91:case 62:case 60:case 41:case 40:case 47:case 0:case 12:case 9:case 10:case 13:case 32:{break};default:{break c}}F=a[E]|0;if(F<<24>>24==100){if((a[E+1|0]|0)!=101){break}if(!((a[E+2|0]|0)!=102|G)){u=42;break b}if(F<<24>>24!=101){break}}else if(F<<24>>24!=101){break}if((a[E+1|0]|0)!=110){break}if((a[E+2|0]|0)==100){u=42;break b}}}while(0);fd[c[u>>2]&511](e);if((c[g>>2]|0)!=0){u=60;break b}if((a[E]|0)==47){I=E+1|0;if(I>>>0>=t>>>0){u=24;break b}H=(c[e>>2]|0)-I|0;J=c[r>>2]|0;fd[c[x>>2]&511](e);E=c[e>>2]|0;if(E>>>0>=J>>>0){u=29;break b}if(((d[E]|0)+ -48|0)>>>0>=10){u=29;break b}F=jd[c[s>>2]&511](e)|0;fd[c[u>>2]&511](e);K=c[e>>2]|0;E=K+1|0;if((F|0)<=-1){u=29;break b}if((F|0)>=(J-E|0)){u=29;break b}c[e>>2]=K+(F+1);if((c[g>>2]|0)!=0){u=60;break b}if((c[m>>2]|0)==0){break}}fd[c[x>>2]&511](e);E=c[e>>2]|0;if(E>>>0>=t>>>0){u=42;break b}}G=pd[c[v>>2]&63](k,B,I,H+1|0)|0;c[h>>2]=G;if((G|0)!=0){break a}a[(c[(c[w>>2]|0)+(B<<2)>>2]|0)+H|0]=0;if((a[I]|0)==46){G=(Qc(274816,c[(c[w>>2]|0)+(B<<2)>>2]|0)|0)==0;D=G?1:D;C=G?B:C}G=c[b>>2]|0;if((G|0)>-1&(B|0)<(y|0)){if((F|0)<=(G|0)){u=37;break}H=jJ(q,F,p)|0;G=c[h>>2]|0;if((G|0)!=0){break a}$W(H|0,E|0,F|0)|0;Gd[c[A>>2]&255](H,F,4330);G=c[b>>2]|0;c[h>>2]=pd[c[z>>2]&63](j,B,H+G|0,F-G|0)|0;lJ(q,H);G=c[h>>2]|0}else{G=pd[c[z>>2]&63](j,B,E,F)|0;c[h>>2]=G}B=B+1|0;if((G|0)!=0){break a}fdfd[c[A>>2]&511](j);fd[c[C>>2]&511](j);Q=c[z>>2]|0;fd[c[A>>2]&511](j);fd[c[C>>2]&511](j);P=c[G>>2]|0;S=c[z>>2]|0;if(S>>>0<P>>>0){while(1){T=c[B>>2]|0;if((T|0)!=0){k=36;break a}if((a[S]|0)==83){if((vc(S|0,280416,9)|0)==0){break b}}if((a[S+1|0]|0)==115){if((vc(S|0,280432,6)|0)==0){T=2;k=36;break a}}fd[c[A>>2]&511](j);fd[c[C>>2]&511](j);R=c[z>>2]|0;if(R>>>0<P>>>0){U=S;T=Q;S=R;Q=U;R=T}else{break}}}NK(F,I);T=PJ(F,O)|0;if((T|0)!=0){k=36;break a}}if((vc(R|0,280440,5)|0)==0){c[j+88>>2]=ec(Q|0)|0}c[l>>2]=0;M=c[I>>2]|0;K=c[J>>2]|0;c[z>>2]=M;E=M+K|0;c[G>>2]=E;c[B>>2]=0;q=f+300|0;F=f+140|0;s=f+304|0;L=j+68|0;G=j+64|0;H=f+164|0;I=f+312|0;J=f+196|0;K=M+(K+ -18)|0;d:while(1){c[z>>2]=M;fd[c[C>>2]&511](j);N=c[z>>2]|0;P=N>>>0<E>>>0;O=P?N+ -17|0:K;if(M>>>0<O>>>0){do{do{if((a[M]|0)==37){if((vc(M|0,277776,17)|0)!=0){break}if((c[q>>2]|0)<=0){break}c[D>>2]=(c[D>>2]|0)+1}}while(0);M=M+1|0;}while(M>>>0<O>>>0)}if(!P){k=74;break}fd[c[A>>2]&511](j);M=c[z>>2]|0;if(M>>>0>=E>>>0){k=74;break}if((c[B>>2]|0)!=0){k=74;break}if(!((a[N]|0)==47&(N+2|0)>>>0<E>>>0)){continue}P=N+1|0;O=M-P|0;if((O+ -1|0)>>>0>=21){continue}P=a[P]|0;Q=279640;S=277800;e:do{if((O|0)>1){Q=279640;S=277800;while(1){f:do{if(P<<24>>24==(a[Q]|0)){if((O|0)==(ZW(Q|0)|0)){R=1}else{break}while(1){T=R+1|0;if((a[N+T|0]|0)!=(a[Q+R|0]|0)){break f}if((T|0)<(O|0)){R=T}else{break e}}}}while(0);S=S+36|0;Q=c[S>>2]|0;if((Q|0)==0){continue d}}}else{N=Q;while(1){if(P<<24>>24==(a[N]|0)){if((O|0)==(ZW(N|0)|0)){break e}}S=S+36|0;N=c[S>>2]|0;if((N|0)==0){continue d}}}}while(0);M=c[S+8>>2]|0;do{if((M|0)==10){hd[c[S+12>>2]&127](f,j);M=c[B>>2]|0}else{N=c[S+4>>2]|0;if((N|0)==0){N=F}else if((N|0)==2){N=I}else if((N|0)==3){N=H}else if((N|0)==5){N=J}else{N=c[D>>2]|0;if((N|0)<0){k=65;break d}N=(c[s>>2]|0)+(N*252|0)|0}c[x>>2]=N;if((M+ -8|0)>>>0<2){M=Cd[c[L>>2]&63](j,S,y,0,0)|0;break}else{M=Cd[c[G>>2]&63](j,S,y,0,0)|0;break}}}while(0);c[B>>2]=M;if((M|0)!=0){break}M=c[z>>2]|0}if((k|0)==65){c[B>>2]=160;M=160}else if((k|0)==74){U=c[B>>2]|0;c[l>>2]=U;if((U|0)!=0|(g|0)<0){break}z=jJ(w,40,v)|0;x=f+328|0;c[x>>2]=z;if((c[l>>2]|0)!=0){break}y=j+88|0;A=c[y>>2]|0;if((A|0)==0){$W(z|0,c[u>>2]|0,40)|0;c[f+308>>2]=c[t>>2]}else{A=jJ(w,A,v)|0;v=f+324|0;c[v>>2]=A;if((c[l>>2]|0)!=0){break}w=c[y>>2]|0;u=c[u>>2]|0;if((PJ(u,c[t>>2]|0)|0)!=0){break}t=A+w|0;g:do{if((w|0)>0){w=u+4|0;C=p;B=p;z=1;while(1){h:while(1){if(C>>>0>=B>>>0){B=IK(u)|0;U=c[w>>2]|0;C=U-B|0;if((U|0)==(B|0)){break a}if((CK(u,p,C>>>0<256?C:256)|0)!=0){break a}C=p;B=p+((IK(u)|0)-B)|0}F=a[C]|0;if(((F&255)+ -48|0)>>>0<10){k=91;break}E=F+ -97<<24>>24;if((E&255)<6){D=0;break}if((F+ -65<<24>>24&255)<6){k=92;break}switch(F<<24>>24){case 0:case 12:case 10:case 13:case 9:case 32:{break};case 62:{D=1;E=0;break h};default:{break a}}C=C+1|0}if((k|0)==91){k=0;D=0;E=F+ -48<<24>>24}else if((k|0)==92){k=0;D=0;E=F+ -55<<24>>24}if(z<<24>>24==0){a[A]=(a[A]|0)+E<<24>>24;A=A+1|0}else{a[A]=E<<4}if(D<<24>>24!=0){break g}if(A>>>0<t>>>0){C=C+1|0;z=1-z<<24>>24}else{break}}}}while(0);yJ(c[x>>2]|0,c[v>>2]|0,c[y>>2]|0);c[f+308>>2]=0}p=c[r>>2]|0;r=c[x>>2]|0;v=c[o>>2]|0;x=oJ(p,8,0,c[q>>2]|0,0,n)|0;o=f+316|0;c[o>>2]=x;i:do{if((c[m>>2]|0)==0){if((c[q>>2]|0)<=0){A=0;break}u=f+308|0;t=r+32|0;v=v+16|0;z=0;w=0;A=0;while(1){D=c[s>>2]|0;B=c[D+(w*252|0)+4>>2]|0;y=c[D+(w*252|0)+240>>2]|0;C=y+1|0;if(C>>>0>z>>>0){E=y+4&-4;A=oJ(p,4,z,E,A,n)|0;if((c[m>>2]|0)==0){z=E}else{break}}U=PJ(r,(c[D+(w*252|0)+244>>2]|0)+(c[u>>2]|0)|0)|0;c[m>>2]=U;if((U|0)!=0){break}D=D+(w*252|0)+248|0;U=MK(r,da(c[D>>2]|0,C)|0)|0;c[m>>2]=U;if((U|0)!=0){break}E=0;G=c[t>>2]|0;do{F=c[D>>2]&255;if(F<<24>>24==0){I=0}else{J=F;H=G;I=0;while(1){I=d[H]|I<<8;J=J+ -1<<24>>24;if(J<<24>>24==0){break}else{H=H+1|0}}G=G+((F+ -1<<24>>24&255)+1)|0}c[A+(E<<2)>>2]=I;E=E+1|0;}while(E>>>0<=y>>>0);PK(r);E=(c[A+(y<<2)>>2]|0)-(c[A>>2]|0)|0;D=x+4|0;c[D>>2]=oJ(p,4,0,C,0,n)|0;if((c[m>>2]|0)!=0){break}U=jJ(p,E,n)|0;c[c[D>>2]>>2]=U;if((c[m>>2]|0)!=0){break}U=PJ(r,(c[A>>2]|0)+(c[u>>2]|0)|0)|0;c[m>>2]=U;if((U|0)!=0){break}U=CK(r,c[c[D>>2]>>2]|0,E)|0;c[m>>2]=U;if((U|0)!=0){break}do{if((y|0)!=0){C=1;do{T=C+ -1|0;U=c[D>>2]|0;c[U+(C<<2)>>2]=(c[U+(T<<2)>>2]|0)+((c[A+(C<<2)>>2]|0)-(c[A+(T<<2)>>2]|0));C=C+1|0;}while(C>>>0<=y>>>0);if((B|0)<0){break}else{C=0}while(1){B=C+1|0;Gd[c[v>>2]&255](c[(c[D>>2]|0)+(C<<2)>>2]|0,(c[A+(B<<2)>>2]|0)-(c[A+(C<<2)>>2]|0)|0,4330);if(B>>>0<y>>>0){C=B}else{break}}}}while(0);c[x>>2]=y;w=w+1|0;if((w|0)<(c[q>>2]|0)){x=x+8|0}else{break i}}r=c[o>>2]|0;if((r|0)==0){break}if((c[q>>2]|0)>0){n=0;do{r=c[r+(n<<3)+4>>2]|0;if((r|0)==0){r=0}else{lJ(p,c[r>>2]|0);c[c[(c[o>>2]|0)+(n<<3)+4>>2]>>2]=0;r=c[(c[o>>2]|0)+(n<<3)+4>>2]|0}lJ(p,r);c[(c[o>>2]|0)+(n<<3)+4>>2]=0;n=n+1|0;r=c[o>>2]|0}while((n|0)<(c[q>>2]|0))}lJ(p,r);c[o>>2]=0}else{A=0}}while(0);lJ(p,A);c[l>>2]=c[m>>2];break}c[l>>2]=M}else{k=36}}while(0);if((k|0)==36){c[l>>2]=T}m=j+76|0;if((c[m>>2]|0)!=0){NK(c[e>>2]|0,m)}fd[c[j+24>>2]&511](j);j=c[l>>2]|0;if((j|0)!=0|(g|0)<0){U=j;i=h;return U|0}if((g|0)!=0){U=6;i=h;return U|0}g=f+140|0;j=g+24|0;c[f+16>>2]=c[g+156>>2];c[f+36>>2]=0;c[f+4>>2]=0;c[f+8>>2]=(a[g+48|0]|0)==0?2065:2069;n=c[g+36>>2]|0;m=f+20|0;c[m>>2]=n;l=f+24|0;c[l>>2]=277752;j:do{if((n|0)==0){k=c[g>>2]|0;if((k|0)==0){break}c[m>>2]=k}else{e=c[g+32>>2]|0;if((e|0)==0){break}m=a[e]|0;if(m<<24>>24==0){break}k:while(1){while(1){o=a[n]|0;if(m<<24>>24==o<<24>>24){k=137;break}if(m<<24>>24==45|m<<24>>24==32){break}if(o<<24>>24==0){break k}else if(!(o<<24>>24==45|o<<24>>24==32)){break j}if(m<<24>>24==0){break j}else{n=n+1|0}}if((k|0)==137){k=0;n=n+1|0}e=e+1|0;m=a[e]|0;if(m<<24>>24==0){break j}}c[l>>2]=e}}while(0);l=f+12|0;k=(c[g+44>>2]|0)!=0|0;c[l>>2]=k;m=c[g+40>>2]|0;do{if((m|0)!=0){if((Qc(m|0,277760)|0)!=0){if((Qc(m|0,277768)|0)!=0){break}}c[l>>2]=k|2}}while(0);c[f+28>>2]=0;c[f+32>>2]=0;c[f+52>>2]=c[g+56>>2]>>16;l=c[g+60>>2]>>16;c[f+56>>2]=l;c[f+60>>2]=(c[g+64>>2]|0)+65535>>16;k=(c[g+68>>2]|0)+65535>>16;c[f+64>>2]=k;m=f+68|0;e=b[m>>1]|0;if(e<<16>>16==0){b[m>>1]=1e3;e=1e3}U=k&65535;b[f+70>>1]=U;k=l&65535;b[f+72>>1]=k;l=((((e&65535)*12|0)>>>0)/10|0)&65535;k=(U<<16>>16)-(k<<16>>16)|0;b[f+74>>1]=(l<<16>>16|0)<(k|0)?k&65535:l;b[f+80>>1]=b[j+26>>1]|0;b[f+82>>1]=b[g+52>>1]|0;U=0;i=h;return U|0}function gT(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;h=i;if((a|0)==0){i=h;return}g=a+140|0;f=g+24|0;b=c[a+100>>2]|0;d=a+316|0;l=c[d>>2]|0;e=g+160|0;if((l|0)!=0){j=c[e>>2]|0;if((j|0)>0){k=0;do{m=l+(k<<3)+4|0;n=c[m>>2]|0;if((n|0)!=0){lJ(b,c[n>>2]|0);c[c[m>>2]>>2]=0;lJ(b,c[m>>2]|0);c[m>>2]=0;l=c[d>>2]|0;j=c[e>>2]|0}k=k+1|0;}while((k|0)<(j|0))}lJ(b,l);c[d>>2]=0}lJ(b,c[f>>2]|0);c[f>>2]=0;n=g+28|0;lJ(b,c[n>>2]|0);c[n>>2]=0;n=g+32|0;lJ(b,c[n>>2]|0);c[n>>2]=0;n=g+36|0;lJ(b,c[n>>2]|0);c[n>>2]=0;n=g+40|0;lJ(b,c[n>>2]|0);c[n>>2]=0;n=g+164|0;lJ(b,c[n>>2]|0);c[n>>2]=0;c[e>>2]=0;lJ(b,c[g>>2]|0);c[g>>2]=0;n=g+12|0;lJ(b,c[n>>2]|0);c[n>>2]=0;n=g+16|0;lJ(b,c[n>>2]|0);c[n>>2]=0;c[a+20>>2]=0;c[a+24>>2]=0;n=a+324|0;lJ(b,c[n>>2]|0);c[n>>2]=0;n=a+328|0;lJ(b,c[n>>2]|0);c[n>>2]=0;i=h;return}function hT(a){a=a|0;var b=0,d=0,e=0,f=0;b=i;d=i;i=i+8|0;e=c[a>>2]|0;f=c[e+320>>2]|0;e=mK(c[(c[e+96>>2]|0)+4>>2]|0,277728)|0;if((e|0)==0|(f|0)==0){f=0;i=b;return f|0}f=c[f>>2]|0;if((f|0)==0){f=0;i=b;return f|0}e=jd[f&511](e)|0;if((e|0)==0){f=0;i=b;return f|0}f=c[a>>2]|0;e=sd[c[e>>2]&127](c[f+100>>2]|0,(c[f+304>>2]|0)+((c[f+4>>2]|0)*252|0)|0,d)|0;if((e|0)!=0){f=e;i=b;return f|0}c[a+40>>2]=c[d>>2];f=0;i=b;return f|0}function iT(a){a=a|0;var b=0,d=0,e=0;b=i;d=a+40|0;if((c[d>>2]|0)==0){i=b;return}a=c[a>>2]|0;e=c[a+320>>2]|0;a=mK(c[(c[a+96>>2]|0)+4>>2]|0,277728)|0;do{if(!((a|0)==0|(e|0)==0)){e=c[e>>2]|0;if((e|0)==0){break}a=jd[e&511](a)|0;if((a|0)==0){break}fd[c[a+8>>2]&511](c[d>>2]|0)}}while(0);c[d>>2]=0;i=b;return}function jT(a){a=a|0;var b=0,d=0,e=0;b=i;e=c[a+4>>2]|0;d=c[e+320>>2]|0;if((d|0)==0){i=b;return 0}e=mK(c[(c[e+96>>2]|0)+4>>2]|0,277728)|0;if((e|0)==0){i=b;return 0}e=jd[c[d+4>>2]&511](e)|0;c[(c[a+156>>2]|0)+36>>2]=e;i=b;return 0}function kT(a){a=a|0;c[(c[a+156>>2]|0)+36>>2]=0;i=i;return}function lT(d,f,g,h){d=d|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,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0;j=i;n=i;i=i+1504|0;s=i;i=i+16|0;v=s;l=i;i=i+16|0;k=l;u=i;i=i+8|0;w=u;x=c[d+4>>2]|0;t=c[x+136>>2]|0;if((c[x+16>>2]|0)>>>0<=g>>>0){C=6;i=j;return C|0}h=(h&1024|0)==0?h:h|3;r=d+164|0;c[r>>2]=c[f+16>>2];q=d+168|0;c[q>>2]=c[f+20>>2];m=d+108|0;b[d+110>>1]=0;b[m>>1]=0;z=(h&1|0)==0;if(z){p=(h>>>1&1^1)&255}else{p=0}y=d+72|0;c[y>>2]=1869968492;t=t+12|0;A=Fd[c[c[t>>2]>>2]&7](n,x,f,d,0,0,p,h>>>16&15,201)|0;if((A|0)!=0){C=A;i=j;return C|0}B=h&1024;a[n+69|0]=B>>>10;g=nT(n,g)|0;if((g|0)!=0){C=g;i=j;return C|0}$W(s|0,n+1376|0,16)|0;A=c[n+1392>>2]|0;g=c[n+1396>>2]|0;fdfd[c[J>>2]&511](t);L=c[y>>2]|0;b:do{if(L>>>0<z>>>0){F=t+32|0;E=t+56|0;D=v+8|0;B=e+132|0;K=t+68|0;H=t+64|0;C=e+132|0;A=e+164|0;G=e+460|0;c:while(1){M=a[L]|0;do{if(M<<24>>24==70&(L+25|0)>>>0<z>>>0){if((vc(L|0,280776,13)|0)!=0){r=30;break}fd[c[F>>2]&511](t);fd[c[J>>2]&511](t);L=c[y>>2]|0;d:do{if(L>>>0<z>>>0){M=L;while(1){if((a[M]|0)==107&(M+5|0)>>>0<z>>>0){if((vc(M|0,280792,5)|0)==0){break}}fd[c[F>>2]&511](t);M=c[I>>2]|0;if((M|0)!=0){r=51;break c}fd[c[J>>2]&511](t);M=c[y>>2]|0;if(M>>>0>=z>>>0){break d}}fd[c[F>>2]&511](t);hd[c[E>>2]&127](t,v);L=(c[D>>2]|0)==3?c[y>>2]|0:L}}while(0);c[y>>2]=L}else{r=30}}while(0);e:do{if((r|0)==30){r=0;if(!(M<<24>>24==47&(L+2|0)>>>0<z>>>0)){fd[c[F>>2]&511](t);M=c[I>>2]|0;if((M|0)==0){break}else{r=52;break c}}L=L+1|0;c[y>>2]=L;fd[c[F>>2]&511](t);M=c[I>>2]|0;if((M|0)!=0){r=52;break c}P=c[y>>2]|0;N=P-L|0;if((N+ -1|0)>>>0<21&P>>>0<z>>>0){O=0}else{break}f:while(1){M=280800+(O*36|0)|0;P=c[M>>2]|0;do{if((P|0)!=0){if((a[L]|0)!=(a[P]|0)){break}if((N|0)!=(ZW(P|0)|0)){break}if((iX(L|0,P|0,N|0)|0)==0){break f}}}while(0);O=O+1|0;if((O|0)>=20){break e}}L=c[280808+(O*36|0)>>2]|0;do{if((O+ -15|0)>>>0<4){hd[c[280812+(O*36|0)>>2]&127](e,t);M=c[I>>2]|0}else{N=c[280804+(O*36|0)>>2]|0;if((N|0)==5){c[x>>2]=G}else if((N|0)==2){c[x>>2]=A}else if((N|0)==3){c[x>>2]=C}else{c[x>>2]=B}if((L+ -8|0)>>>0<2){M=Cd[c[K>>2]&63](t,M,w,0,0)|0;break}else{M=Cd[c[H>>2]&63](t,M,w,0,0)|0;break}}}while(0);c[I>>2]=M;if((M|0)!=0){r=51;break c}}}while(0);fd[c[J>>2]&511](t);L=c[y>>2]|0;if(L>>>0>=z>>>0){break b}}if((r|0)==51){c[u>>2]=M;break a}else if((r|0)==52){c[u>>2]=M;break a}}}while(0);P=c[I>>2]|0;c[u>>2]=P;if((P|0)!=0){break}if((a[e+433|0]|0)!=42){c[u>>2]=2;break}v=e+416|0;c[v>>2]=c[t+144>>2];w=t+212|0;if((c[w>>2]|0)==0){c[u>>2]=3}c[w>>2]=0;c[e+396>>2]=c[t+200>>2];c[e+424>>2]=c[t+224>>2];c[e+428>>2]=c[t+228>>2];O=t+148|0;c[e+400>>2]=c[O>>2];P=t+172|0;w=e+420|0;c[w>>2]=c[P>>2];c[O>>2]=0;c[P>>2]=0;if((c[e+368>>2]|0)!=1){break}z=t+108|0;if((c[z>>2]|0)>0){A=e+384|0;y=e+388|0;x=t+116|0;B=0;D=0;C=0;do{b[(c[A>>2]|0)+(B<<1)>>1]=0;c[(c[y>>2]|0)+(B<<2)>>2]=280768;E=c[(c[x>>2]|0)+(B<<2)>>2]|0;g:do{if((E|0)!=0){J=c[v>>2]|0;if((J|0)<=0){break}G=c[w>>2]|0;I=0;while(1){F=c[G+(I<<2)>>2]|0;H=I+1|0;if((Qc(E|0,F|0)|0)==0){break}if((H|0)<(J|0)){I=H}else{break g}}b[(c[A>>2]|0)+(B<<1)>>1]=I;c[(c[y>>2]|0)+(B<<2)>>2]=F;if((Qc(280768,F|0)|0)==0){break}D=(B|0)<(D|0)?D:B+1|0;C=(B|0)<(C|0)?B:C}}while(0);B=B+1|0;}while((B|0)<(c[z>>2]|0))}else{D=0;C=0}c[e+376>>2]=C;c[e+380>>2]=D;c[e+372>>2]=c[t+88>>2]}}while(0);v=c[t+140>>2]|0;if((v|0)!=0){fd[v&511](t+92|0)}v=c[t+248>>2]|0;if((v|0)!=0){fd[v&511](t+200|0)}v=c[t+196>>2]|0;if((v|0)!=0){fd[v&511](t+148|0)}v=c[t+300>>2]|0;if((v|0)!=0){fd[v&511](t+252|0)}if((a[t+84|0]|0)==0){P=t+76|0;lJ(c[t+16>>2]|0,c[P>>2]|0);c[P>>2]=0}fd[c[t+24>>2]&511](t);t=c[u>>2]|0;if((t|0)!=0|(f|0)<0){P=t;i=d;return P|0}if((f|0)>0){P=6;i=d;return P|0}c[e+16>>2]=c[e+416>>2];c[e+36>>2]=0;c[e+4>>2]=0;f=e+8|0;c[f>>2]=(a[e+156|0]|0)==0?2577:2581;w=c[e+144>>2]|0;u=e+20|0;c[u>>2]=w;t=e+24|0;c[t>>2]=280760;h:do{if((w|0)==0){r=c[e+364>>2]|0;if((r|0)==0){break}c[u>>2]=r}else{v=c[e+140>>2]|0;if((v|0)==0){break}u=a[v]|0;if(u<<24>>24==0){break}i:while(1){while(1){x=a[w]|0;if(u<<24>>24==x<<24>>24){r=87;break}if(u<<24>>24==45|u<<24>>24==32){break}if(x<<24>>24==0){break i}else if(!(x<<24>>24==45|x<<24>>24==32)){break h}if(u<<24>>24==0){break h}else{w=w+1|0}}if((r|0)==87){r=0;w=w+1|0}v=v+1|0;u=a[v]|0;if(u<<24>>24==0){break h}}c[t>>2]=v}}while(0);c[e+28>>2]=0;c[e+32>>2]=0;c[p>>2]=1;c[s+4>>2]=c[o>>2];c[s+8>>2]=c[e+496>>2];if((g|0)!=0){c[p>>2]=17;c[s+24>>2]=g;c[s+28>>2]=h}h=MJ(c[(c[q>>2]|0)+4>>2]|0,s,0,n)|0;if((h|0)!=0){P=h;i=d;return P|0}VJ(c[(c[n>>2]|0)+88>>2]|0)|0;h=c[n>>2]|0;$W(e+52|0,h+52|0,16)|0;b[e+68>>1]=b[h+68>>1]|0;b[e+70>>1]=b[h+70>>1]|0;b[e+72>>1]=b[h+72>>1]|0;b[e+74>>1]=b[h+74>>1]|0;b[e+76>>1]=b[h+76>>1]|0;b[e+78>>1]=b[h+78>>1]|0;b[e+80>>1]=b[e+158>>1]|0;b[e+82>>1]=b[e+160>>1]|0;n=e+12|0;g=(c[e+152>>2]|0)!=0|0;c[n>>2]=g;if((c[h+12>>2]&2|0)!=0){c[n>>2]=g|2}if((c[h+8>>2]&32|0)!=0){c[f>>2]=c[f>>2]|32}if((l|0)==0|(m|0)==0){P=0;i=d;return P|0}l=c[m+20>>2]|0;c[k>>2]=e;g=j+8|0;b[g>>1]=3;m=j+10|0;b[m>>1]=1;h=j+4|0;c[h>>2]=1970170211;k=l+12|0;n=eK(c[k>>2]|0,0,j,0)|0;if(!((n|0)==0|(n|0)==163)){P=n;i=d;return P|0}b[g>>1]=7;e=c[e+368>>2]|0;if((e|0)==4){c[h>>2]=1094992453;b[m>>1]=1;l=l+4|0}else if((e|0)==2){c[h>>2]=1094995778;b[m>>1]=0}else if((e|0)==3){c[h>>2]=1818326065;b[m>>1]=3;l=k}else if((e|0)==1){c[h>>2]=1094992451;b[m>>1]=2;l=l+8|0}else{P=0;i=d;return P|0}e=c[l>>2]|0;if((e|0)==0){P=0;i=d;return P|0}P=eK(e,0,j,0)|0;i=d;return P|0}function BT(a){a=a|0;var b=0,d=0,e=0;b=i;if((a|0)==0){i=b;return}d=c[a+100>>2]|0;e=c[a+500>>2]|0;if((e|0)!=0){SJ(e)|0}e=a+132|0;lJ(d,c[e>>2]|0);c[e>>2]=0;e=a+136|0;lJ(d,c[e>>2]|0);c[e>>2]=0;e=a+140|0;lJ(d,c[e>>2]|0);c[e>>2]=0;e=a+144|0;lJ(d,c[e>>2]|0);c[e>>2]=0;e=a+148|0;lJ(d,c[e>>2]|0);c[e>>2]=0;e=a+428|0;lJ(d,c[e>>2]|0);c[e>>2]=0;e=a+424|0;lJ(d,c[e>>2]|0);c[e>>2]=0;e=a+420|0;lJ(d,c[e>>2]|0);c[e>>2]=0;e=a+396|0;lJ(d,c[e>>2]|0);c[e>>2]=0;e=a+400|0;lJ(d,c[e>>2]|0);c[e>>2]=0;e=a+384|0;lJ(d,c[e>>2]|0);c[e>>2]=0;e=a+388|0;lJ(d,c[e>>2]|0);c[e>>2]=0;e=a+364|0;lJ(d,c[e>>2]|0);c[e>>2]=0;e=a+492|0;lJ(d,c[e>>2]|0);c[e>>2]=0;e=a+556|0;lJ(d,c[e>>2]|0);c[e>>2]=0;c[a+552>>2]=0;c[a+20>>2]=0;c[a+24>>2]=0;i=b;return}function CT(a){a=a|0;var b=0,d=0,e=0;d=i;e=i;i=i+8|0;b=RJ(c[(c[a>>2]|0)+500>>2]|0,e)|0;e=c[e>>2]|0;c[a+44>>2]=e;hK(e)|0;i=d;return b|0}function DT(a){a=a|0;var b=0,d=0;b=i;d=a+44|0;if((TJ((c[(c[a>>2]|0)+500>>2]|0)+108|0,c[d>>2]|0)|0)==0){i=b;return}VJ(c[d>>2]|0)|0;c[d>>2]=0;i=b;return}function ET(a){a=a|0;var b=0,d=0,e=0,f=0;b=i;e=i;i=i+8|0;f=c[a+4>>2]|0;d=c[f+500>>2]|0;if((c[f+84>>2]|0)==0){c[a+160>>2]=c[d+84>>2];f=0;i=b;return f|0}else{f=DJ(d,e)|0;c[a+160>>2]=c[e>>2];i=b;return f|0}return 0}function FT(a){a=a|0;var b=0;b=i;EJ(c[a+160>>2]|0);i=b;return}function GT(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;f=i;h=c[(c[(c[a+4>>2]|0)+96>>2]|0)+40>>2]|0;g=a+160|0;j=c[g>>2]|0;AJ(j);c[j+152>>2]=0;bX(j+24|0,0,40)|0;bX(j+72|0,0,72)|0;e=pd[c[h+80>>2]&63](c[g>>2]|0,c[b+44>>2]|0,d,e|8)|0;if((e|0)!=0){i=f;return e|0}j=c[g>>2]|0;$W(a+24|0,j+24|0,32)|0;c[a+56>>2]=c[j+56>>2];c[a+60>>2]=c[j+60>>2];c[a+72>>2]=c[j+72>>2];$W(a+108|0,j+108|0,20)|0;$W(a+76|0,j+76|0,24)|0;c[a+100>>2]=c[j+100>>2];c[a+104>>2]=c[j+104>>2];c[a+128>>2]=c[j+128>>2];c[a+132>>2]=c[j+132>>2];c[a+136>>2]=c[j+136>>2];c[a+140>>2]=c[j+140>>2];i=f;return e|0}function HT(a,b){a=a|0;b=b|0;var d=0,e=0;d=i;e=c[a>>2]|0;hK(c[a+44>>2]|0)|0;e=e+500|0;b=aK(c[e>>2]|0,b)|0;if((b|0)!=0){i=d;return b|0}$W(a+12|0,(c[(c[e>>2]|0)+88>>2]|0)+12|0,28)|0;i=d;return b|0}function IT(a,b){a=a|0;b=b|0;var d=0,e=0;d=i;e=c[a>>2]|0;hK(c[a+44>>2]|0)|0;e=e+500|0;b=$J(c[e>>2]|0,b)|0;if((b|0)!=0){i=d;return b|0}$W(a+12|0,(c[(c[e>>2]|0)+88>>2]|0)+12|0,28)|0;i=d;return b|0}function JT(a,d){a=a|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0;e=i;f=i;i=i+24|0;g=f;pd[c[d+52>>2]&63](d,6,g,3)|0;h=g+12|0;d=c[h>>2]|0;d=(d|0)<0?0-d|0:d;b[a+68>>1]=(bJ(65536e3,d)|0)>>>16;if((d|0)==65536){d=c[g+20>>2]|0;h=c[h>>2]|0;j=g+4|0;k=g+8|0;g=g+16|0}else{c[f>>2]=bJ(c[f>>2]|0,d)|0;j=g+4|0;c[j>>2]=bJ(c[j>>2]|0,d)|0;k=g+8|0;c[k>>2]=bJ(c[k>>2]|0,d)|0;l=g+16|0;c[l>>2]=bJ(c[l>>2]|0,d)|0;g=g+20|0;d=bJ(c[g>>2]|0,d)|0;c[g>>2]=d;c[h>>2]=65536;h=65536;g=l}c[a+436>>2]=c[f>>2];c[a+444>>2]=c[j>>2];c[a+440>>2]=c[k>>2];c[a+448>>2]=h;c[a+452>>2]=c[g>>2]>>16;c[a+456>>2]=d>>16;i=e;return}function KT(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,p=0,q=0,r=0,s=0,t=0,u=0,v=0;e=i;m=i;i=i+8|0;s=m;j=c[d+8>>2]|0;o=c[b+488>>2]|0;f=d+28|0;fd[c[f>>2]&511](d);l=c[d>>2]|0;if(l>>>0>=j>>>0){c[d+12>>2]=3;i=e;return}v=a[l]|0;k=v<<24>>24==91;if(!(((v&255)+ -48|0)>>>0<10|k)){do{if((l+17|0)>>>0<j>>>0){if((vc(l|0,281800,16)|0)!=0){break}c[b+368>>2]=2;i=e;return}}while(0);do{if((l+15|0)>>>0<j>>>0){if((vc(l|0,281824,14)|0)!=0){break}c[b+368>>2]=4;i=e;return}}while(0);do{if((l+18|0)>>>0<j>>>0){if((vc(l|0,281840,17)|0)!=0){break}c[b+368>>2]=3;i=e;return}}while(0);c[d+12>>2]=3;i=e;return}g=d+92|0;p=c[d+16>>2]|0;if(k){c[d>>2]=l+1;k=256;t=1}else{k=jd[c[d+36>>2]&511](d)|0;t=0}fd[c[f>>2]&511](d);if((c[d>>2]|0)>>>0>=j>>>0){i=e;return}c[b+372>>2]=k;c[d+88>>2]=k;c[b+384>>2]=oJ(p,2,0,k,0,s)|0;u=c[m>>2]|0;do{if((u|0)==0){c[b+388>>2]=oJ(p,4,0,k,0,s)|0;u=c[m>>2]|0;if((u|0)!=0){break}u=sd[c[c[o>>2]>>2]&127](g,k,p)|0;c[m>>2]=u;if((u|0)!=0){break}if((k|0)!=0){o=d+136|0;m=0;do{pd[c[o>>2]&63](g,m,280768,8)|0;m=m+1|0;}while(m>>>0<k>>>0)}fd[c[f>>2]&511](d);u=c[d>>2]|0;a:do{if(u>>>0<j>>>0){o=d+32|0;l=d+12|0;s=d+36|0;p=d+136|0;m=d+116|0;b:do{if(t<<24>>24==0){n=0;c:while(1){q=a[u]|0;do{if(q<<24>>24==93){h=u;break b}else if(q<<24>>24==100){r=u+3|0;if(r>>>0>=j>>>0){break}if((a[u+1|0]|0)!=101){break}if((a[u+2|0]|0)!=102){break}switch(a[r]|0){case 0:case 12:case 10:case 13:case 9:case 32:{break a};default:{}}}}while(0);do{if(((q&255)+ -48|0)>>>0>9){fd[c[o>>2]&511](d);if((c[l>>2]|0)==0){r=u}else{n=52;break c}}else{q=jd[c[s>>2]&511](d)|0;fd[c[f>>2]&511](d);r=c[d>>2]|0;if(!((a[r]|0)==47&(r+2|0)>>>0<j>>>0&n>>>0<k>>>0)){break}r=r+1|0;c[d>>2]=r;fd[c[o>>2]&511](d);if((c[l>>2]|0)!=0){n=52;break c}t=(c[d>>2]|0)-r|0;v=pd[c[p>>2]&63](g,q,r,t+1|0)|0;c[l>>2]=v;if((v|0)!=0){n=52;break c}a[(c[(c[m>>2]|0)+(q<<2)>>2]|0)+t|0]=0;n=n+1|0}}while(0);fd[c[f>>2]&511](d);u=c[d>>2]|0;if(u>>>0>=j>>>0){break a}}if((n|0)==52){i=e;return}}else{s=0;d:while(1){t=a[u]|0;do{if(t<<24>>24==93){h=u;break b}else if(t<<24>>24==100){v=u+3|0;if(v>>>0>=j>>>0){r=u;q=s;break}do{if((a[u+1|0]|0)==101){if((a[u+2|0]|0)!=102){break}switch(a[v]|0){case 0:case 12:case 10:case 13:case 9:case 32:{r=v;break a};default:{}}}}while(0);if(t<<24>>24==93){h=u;break b}else{n=36}}else{n=36}}while(0);do{if((n|0)==36){n=0;if(!(t<<24>>24==47&(u+2|0)>>>0<j>>>0&s>>>0<k>>>0)){r=u;q=s;break}r=u+1|0;c[d>>2]=r;fd[c[o>>2]&511](d);if((c[l>>2]|0)!=0){n=52;break d}q=(c[d>>2]|0)-r|0;v=pd[c[p>>2]&63](g,s,r,q+1|0)|0;c[l>>2]=v;if((v|0)!=0){n=52;break d}a[(c[(c[m>>2]|0)+(s<<2)>>2]|0)+q|0]=0;q=s+1|0}}while(0);fd[c[f>>2]&511](d);u=c[d>>2]|0;if(u>>>0<j>>>0){s=q}else{break a}}if((n|0)==52){i=e;return}}}while(0);r=h+1|0}else{r=l}}while(0);c[b+368>>2]=1;c[d>>2]=r;i=e;return}}while(0);c[d+12>>2]=u;i=e;return}function LT(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,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;e=i;f=d+200|0;g=d+148|0;j=d+252|0;o=c[d+16>>2]|0;p=c[b+488>>2]|0;n=c[d+8>>2]|0;b=d+28|0;fd[c[b>>2]&511](d);r=c[d>>2]|0;a:do{if(r>>>0<n>>>0){r=a[r]|0;b:do{if(((r&255)+ -48|0)>>>0<10){c[d+144>>2]=jd[c[d+36>>2]&511](d)|0;if((c[d+12>>2]|0)==0){q=c[d>>2]|0;break}else{i=e;return}}else{if(r<<24>>24!=60){B=3;break a}r=d+32|0;fd[c[r>>2]&511](d);s=d+12|0;if((c[s>>2]|0)!=0){i=e;return}fd[c[b>>2]&511](d);t=c[d>>2]|0;if(t>>>0<n>>>0){w=t;v=0}else{q=t;break}while(1){u=a[w]|0;if(u<<24>>24==62){m=10;break}else if(u<<24>>24==47){u=v+1|0}else{u=v}fd[c[r>>2]&511](d);if((c[s>>2]|0)!=0){m=46;break}fd[c[b>>2]&511](d);w=c[d>>2]|0;if(w>>>0<n>>>0){v=u}else{q=w;break b}}if((m|0)==10){c[d+144>>2]=v;c[d>>2]=t;q=t;break}else if((m|0)==46){i=e;return}}}while(0);if(q>>>0>=n>>>0){B=3;break}s=d+144|0;B=sd[c[c[p>>2]>>2]&127](f,c[s>>2]|0,o)|0;if((B|0)!=0){break}B=sd[c[c[p>>2]>>2]&127](g,c[s>>2]|0,o)|0;if((B|0)!=0){break}B=sd[c[c[p>>2]>>2]&127](j,4,o)|0;if((B|0)!=0){break}v=d+32|0;t=d+12|0;p=d+192|0;r=d+172|0;u=d+36|0;o=d+244|0;q=d+224|0;w=0;y=0;x=0;c:while(1){do{fd[c[b>>2]&511](d);A=c[d>>2]|0;if(A>>>0>=n>>>0){l=w;k=y;h=x;break c}z=a[A]|0;do{if(z<<24>>24==62){l=w;k=y;h=x;break c}else if(z<<24>>24==101){B=A+3|0;if(B>>>0>=n>>>0){break}do{if((a[A+1|0]|0)==110){if((a[A+2|0]|0)!=100){break}switch(a[B]|0){case 0:case 12:case 10:case 13:case 9:case 32:{l=w;k=y;h=x;break c};default:{}}}}while(0);if(z<<24>>24==62){l=w;k=y;h=x;break c}}}while(0);fd[c[v>>2]&511](d);if((c[t>>2]|0)!=0){m=46;break c}}while((a[A]|0)!=47);z=A+1|0;if(z>>>0>=n>>>0){B=3;break a}A=(c[d>>2]|0)-z|0;B=pd[c[p>>2]&63](g,w,z,A+1|0)|0;if((B|0)!=0){break a}a[(c[(c[r>>2]|0)+(w<<2)>>2]|0)+A|0]=0;if((a[z]|0)==46){z=(Qc(280768,c[(c[r>>2]|0)+(w<<2)>>2]|0)|0)==0;y=z?1:y;x=z?w:x}fd[c[b>>2]&511](d);z=c[d>>2]|0;jd[c[u>>2]&511](d)|0;A=c[d>>2]|0;if(A>>>0>=n>>>0){B=3;break a}A=A-z|0;B=pd[c[o>>2]&63](f,w,z,A+1|0)|0;if((B|0)!=0){break a}a[(c[(c[q>>2]|0)+(w<<2)>>2]|0)+A|0]=0;w=w+1|0;if(w>>>0>=(c[s>>2]|0)>>>0){l=w;k=y;h=x;break}}if((m|0)==46){i=e;return}c[s>>2]=l;if(k<<24>>24==0){B=3;break}m=c[c[r>>2]>>2]|0;if((Qc(280768,m|0)|0)==0){i=e;return}k=d+296|0;l=d+176|0;B=pd[c[k>>2]&63](j,0,m,c[c[l>>2]>>2]|0)|0;if((B|0)!=0){break}m=d+228|0;B=pd[c[k>>2]&63](j,1,c[c[q>>2]>>2]|0,c[c[m>>2]>>2]|0)|0;if((B|0)!=0){break}B=pd[c[k>>2]&63](j,2,c[(c[r>>2]|0)+(h<<2)>>2]|0,c[(c[l>>2]|0)+(h<<2)>>2]|0)|0;if((B|0)!=0){break}B=pd[c[k>>2]&63](j,3,c[(c[q>>2]|0)+(h<<2)>>2]|0,c[(c[m>>2]|0)+(h<<2)>>2]|0)|0;if((B|0)!=0){break}j=d+276|0;k=d+280|0;B=pd[c[p>>2]&63](g,h,c[c[j>>2]>>2]|0,c[c[k>>2]>>2]|0)|0;if((B|0)!=0){break}B=pd[c[o>>2]&63](f,h,c[(c[j>>2]|0)+4>>2]|0,c[(c[k>>2]|0)+4>>2]|0)|0;if((B|0)!=0){break}B=pd[c[p>>2]&63](g,0,c[(c[j>>2]|0)+8>>2]|0,c[(c[k>>2]|0)+8>>2]|0)|0;if((B|0)!=0){break}B=pd[c[o>>2]&63](f,0,c[(c[j>>2]|0)+12>>2]|0,c[(c[k>>2]|0)+12>>2]|0)|0;if((B|0)!=0){break}i=e;return}else{B=3}}while(0);c[d+12>>2]=B;i=e;return}function MT(b,e){b=b|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,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0;f=i;h=i;i=i+8|0;l=h;k=i;i=i+8|0;j=k;g=c[e+16>>2]|0;n=c[e+8>>2]|0;m=e+28|0;fd[c[m>>2]&511](e);o=c[e>>2]|0;a:do{if(o>>>0<n>>>0){c[e>>2]=o+1;if((a[o]|0)!=91){t=3;break}fd[c[m>>2]&511](e);B=c[e>>2]|0;b:do{if(B>>>0<n>>>0){p=e+36|0;o=e+32|0;q=e+12|0;r=b+492|0;b=b+496|0;s=e+44|0;u=0;C=0;A=0;w=0;z=0;v=0;x=0;y=0;c:while(1){D=a[B]|0;do{if(D<<24>>24==60){fdfd[c[o>>2]&511](e);if((c[q>>2]|0)!=0){t=45;break c}u=c[e>>2]|0;v=u+1|0;if((n-u|0)<(x|0)){t=18;break c}c[e>>2]=u+(x+1);u=0}}while(0);if((t|0)==20){t=0;if((v|0)==0){t=21;break}}B=x+ -1|0;if((a[v+B|0]|0)==0){x=((x|0)%2|0|0)==1?B:x}if((x|0)==0){t=26;break}if((x|0)>0){B=0;do{do{if((z|0)==0){if(C>>>0<12){a[(c[r>>2]|0)+C|0]=a[v+B|0]|0;C=C+1|0;z=0;break}else{t=c[r>>2]|0;A=(d[t+4|0]<<4)+(d[t+5|0]|0)|0;y=A<<4|12;c[r>>2]=oJ(g,1,12,y,t,l)|0;t=c[h>>2]|0;if((t|0)==0){t=31;break}else{w=t;t=42;break a}}}else if((z|0)==2){t=36}else if((z|0)==1){t=31}}while(0);do{if((t|0)==31){t=0;if(C>>>0<y>>>0){a[(c[r>>2]|0)+C|0]=a[v+B|0]|0;C=C+1|0;z=1;break}t=c[r>>2]|0;if((A|0)>0){z=0;while(1){D=z<<4|12;y=((d[t+(D+13)|0]<<16|d[t+(D+12)|0]<<24|d[t+(D+14)|0]<<8|d[t+(D+15)|0])+3&-4)+y|0;z=z+1|0;if((z|0)<(A|0)){}else{break}}}c[b>>2]=y;c[r>>2]=oJ(g,1,A<<4|12,y+1|0,t,l)|0;t=c[h>>2]|0;if((t|0)==0){t=36}else{w=t;t=42;break a}}}while(0);if((t|0)==36){t=0;if(C>>>0>=y>>>0){t=37;break c}a[(c[r>>2]|0)+C|0]=a[v+B|0]|0;C=C+1|0;z=2}B=B+1|0;}while((B|0)<(x|0))}fd}if((v|0)==0){v=u+4|0;x=r+4|0;A=c[x>>2]|0;C=(c[v>>2]|0)-A|0;w=u+12|0;y=JU(c[n>>2]|0,c[m>>2]|0,h,C,z,d[w]|0)|0;z=(y|0)<65;if((y|0)<96){C=(C>>1)+A|0;D=C+32&-64;B=D-(z?32:38)|0;A=C-B|0;z=(z?32:26)|D;C=C-z|0;B=((((A|0)<0?0-A|0:A)|0)<(((C|0)<0?0-C|0:C)|0)?B:z)-((y|0)/2|0)|0;A=r+8|0;c[A>>2]=B;u=u+8|0;c[u>>2]=B+y;B=a[t]|0;y=c[A>>2]|0;A=c[x>>2]|0}else{y=A+32&-64;c[r+8>>2]=y;u=u+8|0}D=B|4;a[t]=D;c[u>>2]=(JU(c[n>>2]|0,c[m>>2]|0,h,(c[v>>2]|0)-A|0,D&255,d[w]|0)|0)+y;v=r;break}C=c[r+4>>2]|0;B=C-(c[v+4>>2]|0)+(c[v+8>>2]|0)|0;C=(c[u+4>>2]|0)-C|0;y=(C>>1)+B|0;w=u+12|0;D=d[w]|0;x=JU(c[n>>2]|0,c[m>>2]|0,h,C,z,D)|0;do{if((D&4|0)==0){if((x|0)<96){C=y+32&-64;B=(x|0)<65;z=C-(B?32:38)|0;A=y-z|0;B=(B?32:26)|C;y=y-B|0;D=(((A|0)<0?0-A|0:A)|0)<(((y|0)<0?0-y|0:y)|0)?z:B;C=(x|0)/2|0;c[r+8>>2]=D-C;c[u+8>>2]=C+D;break}else{z=B+32&-64;D=x>>1;A=D+(z-y)|0;B=(C+32+B&-64)-x|0;y=D-y+B|0;D=(((A|0)<0?0-A|0:A)|0)<(((y|0)<0?0-y|0:y)|0)?z:B;c[r+8>>2]=D;c[u+8>>2]=D+x;break}}else{c[r+8>>2]=(c[u+8>>2]|0)-x}}while(0);a[t]=a[t]|4;a[w]=a[w]|4;if(r>>>0<=p>>>0){break}t=r+8|0;u=c[r+ -40>>2]|0;if((c[t>>2]|0)>=(u|0)){break}c[t>>2]=u}}while(0);r=r+48|0;if(r>>>0>=o>>>0){r=0;break}}}else{r=1;s=0}t=q*48|0;do{if((h|0)==0){q=(t|0)==576;if((t|0)==288){w=p;u=p+96|0;t=p+192|0}else if((t|0)==576){w=p+48|0;u=p+240|0;t=p+432|0}else{break}x=c[u+4>>2]|0;x=x-(c[t+4>>2]|0)+(x-(c[w+4>>2]|0))|0;if((((x|0)<0?0-x|0:x)|0)>=8){break}x=t+8|0;u=(c[u+8>>2]<<1)-(c[w+8>>2]|0)|0;w=(c[x>>2]|0)-u|0;c[x>>2]=u;u=t+24|0;x=c[u>>2]|0;if((x|0)!=0){D=x+8|0;c[D>>2]=(c[D>>2]|0)-w}if(q){D=p+392|0;c[D>>2]=(c[D>>2]|0)-w;D=p+536|0;c[D>>2]=(c[D>>2]|0)-w}q=t+12|0;a[q]=a[q]|4;q=c[u>>2]|0;if((q|0)==0){break}D=q+12|0;a[D]=a[D]|4}}while(0);if((v|0)!=0&(s|0)==0|r){l=93;break}else{q=p}while(1){r=q+12|0;s=a[r]|0;do{if((s&4)==0){x=c[q+28>>2]|0;do{if((x|0)==0){l=73}else{u=c[x+4>>2]|0;t=c[q+4>>2]|0;w=u-t|0;if((((w|0)<0?0-w|0:w)|0)>=80){l=73;break}t=(c[x+8>>2]|0)-u+t|0;c[q+8>>2]=t}}while(0);b:do{if((l|0)==73){l=0;if((v|0)==0){t=(c[q+4>>2]|0)+32&-64;c[q+8>>2]=t;v=q;break}else{u=q}while(1){y=u+ -48|0;if(y>>>0<p>>>0){w=0;break}if((a[u+ -36|0]&4)==0){u=y}else{w=1;break}}t=q;while(1){x=t+48|0;if(x>>>0>=o>>>0){break}if((a[t+60|0]&4)==0){t=x}else{l=80;break}}do{if((l|0)==80){l=0;if(!(w&y>>>0<q>>>0&x>>>0>q>>>0)){break}x=c[t+52>>2]|0;w=c[u+ -44>>2]|0;u=c[u+ -40>>2]|0;if((x|0)==(w|0)){c[q+8>>2]=u;t=u;break b}else{t=(_I((c[q+4>>2]|0)-w|0,(c[t+56>>2]|0)-u|0,x-w|0)|0)+u|0;c[q+8>>2]=t;s=a[r]|0;break b}}}while(0);t=((c[q+4>>2]|0)+16-(c[v+4>>2]|0)&-32)+(c[v+8>>2]|0)|0;c[q+8>>2]=t}}while(0);a[r]=s|4;do{if(q>>>0>p>>>0){r=c[q+ -40>>2]|0;if((t|0)>=(r|0)){break}c[q+8>>2]=r;t=r}}while(0);s=q+48|0;if(s>>>0>=o>>>0){q=s;break}if((a[q+60|0]&4)==0){q=s;break}r=c[q+56>>2]|0;if((t|0)<=(r|0)){q=s;break}c[q+8>>2]=r;q=s}else{q=q+48|0}}while(0);if(q>>>0>=o>>>0){l=93;break}}}}while(0);if((l|0)==93){l=0;p=c[f+48+(h*28|0)+8>>2]|0;q=c[f+48+(h*28|0)>>2]|0;o=p+(q*52|0)|0;q=(q|0)>0;do{if((h|0)==0){if(!q){break}do{r=c[p+12>>2]|0;if((r|0)!=0){q=c[p+44>>2]|0;r=r+8|0;s=p+40|0;while(1){s=c[s>>2]|0;c[s+16>>2]=c[r>>2];b[s>>1]=b[s>>1]|64;if((s|0)==(q|0)){break}else{s=s+32|0}}}p=p+52|0;}while(p>>>0<o>>>0)}else{if(!q){break}do{r=c[p+12>>2]|0;if((r|0)!=0){q=c[p+44>>2]|0;r=r+8|0;s=p+40|0;while(1){s=c[s>>2]|0;c[s+20>>2]=c[r>>2];b[s>>1]=b[s>>1]|128;if((s|0)==(q|0)){break}else{s=s+32|0}}}p=p+52|0;}while(p>>>0<o>>>0)}}while(0);zU(f,h);AU(f,h)}h=h+1|0;if((h|0)>=2){break}}D=c[f+28>>2]|0;l=c[f+32>>2]|0;f=l+(D*40|0)|0;if((D|0)<=0){D=0;i=j;return D|0}k=c[g+8>>2]|0;g=c[g+4>>2]|0;while(1){c[g>>2]=c[l+16>>2];c[g+4>>2]=c[l+20>>2];h=e[l>>1]|0;do{if((h&1|0)==0){if((h&2|0)==0){a[k]=1;break}else{a[k]=2;break}}else{a[k]=0}}while(0);l=l+40|0;if(l>>>0<f>>>0){k=k+1|0;g=g+8|0}else{g=0;break}}i=j;return g|0}function jU(b,d){b=b|0;d=d|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0;g=i;h=i;i=i+8|0;j=h;k=d+92|0;f=c[k>>2]|0;c[b+36>>2]=e[d+68>>1]|0;if((cK(d,1970170211)|0)!=0){c[k>>2]=0;dK(d,f)|0;i=g;return 0}GU(b,d,3e4);k=48;m=0;l=0;a:while(1){n=KJ(d,k)|0;do{if((n|0)!=0){if((WI(d,n,2051,j)|0)!=0){break}n=c[h>>2]|0;if(l<<24>>24==0){m=n;l=1;break}if((n|0)!=(m|0)){h=0;break a}}}while(0);k=k+1|0;if(k>>>0>=58){h=1;break}}a[b+32|0]=h;dK(d,f)|0;i=g;return 0}function kU(a,b){a=a|0;b=b|0;var d=0;d=i;$W(a+4|0,b|0,28)|0;c[a+40>>2]=c[b+4>>2];c[a+44>>2]=c[b+12>>2];c[a+436>>2]=c[b+8>>2];c[a+440>>2]=c[b+16>>2];i=d;return}function lU(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;c[a+112>>2]=b;d=c[b+28>>2]|0;e=a+104|0;c[e>>2]=d;c[a+4>>2]=c[b+40>>2];c[a+8>>2]=c[b+44>>2];c[a+12>>2]=c[b+436>>2];c[a+16>>2]=c[b+440>>2];f=c[b+24>>2]|0;b=(f|0)==2;g=(f&-2|0)==2|0;g=b|(f|0)==4?g|2:g;f=(f|0)==1?g:g|4;c[e>>2]=d|4;c[a+108>>2]=b?f|8:f;i=i;return 0}function mU(d,f,g){d=d|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,v=0,w=0,x=0,y=0,z=0,A=0,B=0;g=i;j=xU(d,f)|0;if((j|0)!=0){A=j;i=g;return A|0}j=d+104|0;k=c[j>>2]|0;do{if((k&1|0)==0){k=yU(d,0)|0;if((k|0)==0){k=c[j>>2]|0;break}else{A=k;i=g;return A|0}}}while(0);do{if((k&2|0)==0){k=yU(d,1)|0;if((k|0)==0){break}i=g;return k|0}}while(0);k=d+108|0;l=d+112|0;m=0;a:while(1){do{if((m|0)==0){if((c[j>>2]&1|0)==0){h=12;break}m=m+1|0;continue a}else if((m|0)==1){if((c[j>>2]&2|0)==0){h=12}else{break a}}}while(0);if((h|0)==12){h=0;p=d+48+(m*28|0)+20|0;q=c[p>>2]|0;o=d+48+(m*28|0)+12|0;n=c[o>>2]|0;r=q+(n*48|0)|0;s=(n|0)>0;if(s){u=(m|0)!=1;w=0;x=0;v=q;t=0;do{z=v+12|0;A=a[z]|0;do{if((A&4)==0){y=c[v+24>>2]|0;if((y|0)==0){t=t+1|0;break}if(y>>>0<v>>>0){B=c[y+8>>2]|0;c[v+8>>2]=(DU(c[k>>2]|0,c[l>>2]|0,m,(c[v+4>>2]|0)-(c[y+4>>2]|0)|0)|0)+B;a[z]=A|4;break}if(u&(w|0)==0){x=CU(d,v,y,0,0)|0}else{CU(d,v,y,x,m)|0}a[z]=a[z]|4;w=y+12|0;a[w]=a[w]|4;w=v}}while(0);v=v+48|0;}while(v>>>0<r>>>0)}else{t=0}v=n*48|0;n=(m|0)==0;do{if(n){u=(v|0)==576;if((v|0)==288){A=q;z=q+96|0;w=q+192|0}else if((v|0)==576){A=q+48|0;z=q+240|0;w=q+432|0}else{break}y=c[z+4>>2]|0;y=y-(c[w+4>>2]|0)+(y-(c[A+4>>2]|0))|0;if((c[A+24>>2]|0)!=(A+48|0)){break}if((c[z+24>>2]|0)!=(z+48|0)){break}v=w+24|0;x=c[v>>2]|0;if(!((x|0)==(w+48|0)&(((y|0)<0?0-y|0:y)|0)<8)){break}B=w+8|0;A=(c[z+8>>2]<<1)-(c[A+8>>2]|0)|0;y=(c[B>>2]|0)-A|0;c[B>>2]=A;if((x|0)!=0){B=x+8|0;c[B>>2]=(c[B>>2]|0)-y}if(u){B=q+392|0;c[B>>2]=(c[B>>2]|0)-y;B=q+536|0;c[B>>2]=(c[B>>2]|0)-y}u=w+12|0;a[u]=a[u]|4;u=c[v>>2]|0;if((u|0)==0){break}B=u+12|0;a[B]=a[B]|4}}while(0);do{if(!((t|0)==0|s^1)){s=q;do{w=s+12|0;v=a[w]|0;do{if((v&4)==0){u=c[s+28>>2]|0;if((u|0)==0){break}c[s+8>>2]=(c[u+8>>2]|0)-(c[u+4>>2]|0)+(c[s+4>>2]|0);a[w]=v|4;t=t+ -1|0}}while(0);s=s+48|0;}while(s>>>0<r>>>0);if((t|0)==0){break}else{t=q}do{do{if((a[t+12|0]&4)==0){u=t;while(1){v=u+ -48|0;if(v>>>0<q>>>0){w=1;y=0;break}if((a[u+ -36|0]&4)==0){u=v}else{w=0;y=1;break}}s=t;while(1){x=s+48|0;if(x>>>0>=r>>>0){h=49;break}if((a[s+60|0]&4)==0){s=x}else{y=1;break}}if((h|0)==49){h=0;if(y){y=0}else{break}}if(w){c[t+8>>2]=(c[s+56>>2]|0)-(c[s+52>>2]|0)+(c[t+4>>2]|0);break}if(!y){c[t+8>>2]=(c[u+ -40>>2]|0)-(c[u+ -44>>2]|0)+(c[t+4>>2]|0);break}w=b[x>>1]|0;B=b[v>>1]|0;v=B<<16>>16;u=c[u+ -40>>2]|0;if(w<<16>>16==B<<16>>16){c[t+8>>2]=u;break}else{c[t+8>>2]=(_I((b[t>>1]|0)-v|0,(c[s+56>>2]|0)-u|0,(w<<16>>16)-v|0)|0)+u;break}}}while(0);t=t+48|0;}while(t>>>0<r>>>0)}}while(0);r=c[p>>2]|0;q=c[o>>2]|0;o=r+(q*48|0)|0;do{if(n){p=c[k>>2]&1}else{if((m|0)!=1){p=0;break}p=(c[k>>2]|0)>>>1&1}}while(0);if((q|0)>0){p=p<<24>>24==0;do{q=r+40|0;t=c[q>>2]|0;s=r+8|0;if(p){s=(c[s>>2]|0)-(c[r+4>>2]|0)|0;do{v=t+40|0;u=t+44|0;if(n){while(1){v=c[v>>2]|0;B=v+16|0;c[B>>2]=(c[B>>2]|0)+s;b[v>>1]=b[v>>1]|64;if((v|0)==(c[u>>2]|0)){break}else{v=v+32|0}}}else{while(1){v=c[v>>2]|0;B=v+20|0;c[B>>2]=(c[B>>2]|0)+s;b[v>>1]=b[v>>1]|128;if((v|0)==(c[u>>2]|0)){break}else{v=v+32|0}}}t=c[t+16>>2]|0;}while((t|0)!=(c[q>>2]|0))}else{do{v=t+40|0;u=t+44|0;if(n){while(1){v=c[v>>2]|0;c[v+16>>2]=c[s>>2];b[v>>1]=b[v>>1]|64;if((v|0)==(c[u>>2]|0)){break}else{v=v+32|0}}}else{while(1){v=c[v>>2]|0;c[v+20>>2]=c[s>>2];b[v>>1]=b[v>>1]|128;if((v|0)==(c[u>>2]|0)){break}else{v=v+32|0}}}t=c[t+16>>2]|0;}while((t|0)!=(c[q>>2]|0))}r=r+48|0;}while(r>>>0<o>>>0)}zU(d,m);AU(d,m)}m=m+1|0;if((m|0)>=2){break}}B=c[d+28>>2]|0;j=c[d+32>>2]|0;d=j+(B*40|0)|0;if((B|0)<=0){B=0;i=g;return B|0}h=c[f+8>>2]|0;f=c[f+4>>2]|0;while(1){c[f>>2]=c[j+16>>2];c[f+4>>2]=c[j+20>>2];k=e[j>>1]|0;do{if((k&1|0)==0){if((k&2|0)==0){a[h]=1;break}else{a[h]=2;break}}else{a[h]=0}}while(0);j=j+40|0;if(j>>>0<d>>>0){h=h+1|0;f=f+8|0}else{k=0;break}}i=g;return k|0}function nU(a,b){a=a|0;b=b|0;var c=0;c=i;jU(a,b)|0;i=c;return 0}function oU(a,b){a=a|0;b=b|0;var d=0;d=i;$W(a+4|0,b|0,28)|0;c[a+40>>2]=c[b+4>>2];c[a+44>>2]=c[b+12>>2];c[a+436>>2]=c[b+8>>2];c[a+440>>2]=c[b+16>>2];i=d;return}function pU(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;c[a+112>>2]=b;d=c[b+28>>2]|0;e=a+104|0;c[e>>2]=d;c[a+4>>2]=c[b+40>>2];c[a+8>>2]=c[b+44>>2];c[a+12>>2]=c[b+436>>2];c[a+16>>2]=c[b+440>>2];f=c[b+24>>2]|0;b=(f|0)==2;g=(f&-2|0)==2|0;g=b|(f|0)==4?g|2:g;f=(f|0)==1?g:g|4;c[e>>2]=d|4;c[a+108>>2]=b?f|8:f;i=i;return 0}function qU(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=i;a=mU(a,b,c)|0;i=d;return a|0}function rU(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,v=0,w=0,x=0,y=0,z=0;e=i;l=i;i=i+8|0;m=l;t=i;i=i+8|0;s=t;q=i;i=i+8|0;k=i;i=i+32|0;h=k;j=b+20|0;d=c[d+4>>2]|0;n=c[d+88>>2]|0;if((n|0)==0){z=6;i=e;return z|0}bX(k|0,0,28)|0;c[k>>2]=d;c[h+4>>2]=c[n+16>>2];c[h+12>>2]=0;c[h+8>>2]=c[n+20>>2];c[h+16>>2]=0;c[h+20>>2]=g>>>16&15;c[h+24>>2]=0;c[j>>2]=d;n=d+116|0;o=b+24|0;c[o>>2]=c[n>>2];kJ(c[b+28>>2]|0);p=c[o>>2]|0;if((p|0)==0){r=d+16|0;p=jJ(c[d+100>>2]|0,(c[r>>2]|0)+28|0,q)|0;q=c[q>>2]|0;if((q|0)!=0){c[o>>2]=p;z=q;i=e;return z|0}c[p>>2]=d;z=c[r>>2]|0;r=p+4|0;c[r>>2]=z;y=p+28|0;c[p+8>>2]=y;q=c[d+92>>2]|0;bX(y|0,127,z|0)|0;if((cK(d,1970170211)|0)==0){v=0;while(1){w=c[(c[283296+(v<<2)>>2]|0)+4>>2]|0;do{if((w|0)!=0){y=c[w>>2]|0;if((y|0)==0){break}u=v&255;do{x=KJ(d,y)|0;c[t>>2]=x;do{if((x|0)!=0){if(x>>>0>=(c[r>>2]|0)>>>0){break}x=p+(x+28)|0;if((a[x]|0)!=127){break}a[x]=u}}while(0);x=w+4|0;z=fK(d,y,s)|0;y=c[t>>2]|0;a:do{if((y|0)!=0){do{if(z>>>0>(c[x>>2]|0)>>>0){break a}do{if(y>>>0<(c[r>>2]|0)>>>0){y=p+(y+28)|0;if((a[y]|0)!=127){break}a[y]=u}}while(0);z=fK(d,z,s)|0;y=c[t>>2]|0;}while((y|0)!=0)}}while(0);w=w+8|0;y=c[w>>2]|0;}while((y|0)!=0)}}while(0);v=v+1|0;if((v|0)==4){t=48;break}}do{s=KJ(d,t)|0;do{if((s|0)!=0){if(s>>>0>=(c[r>>2]|0)>>>0){break}z=p+(s+28)|0;a[z]=a[z]|-128}}while(0);t=t+1|0;}while(t>>>0<58)}t=c[r>>2]|0;if((t|0)>0){s=0;do{u=p+(s+28)|0;v=a[u]|0;if((v&127)==127){a[u]=v&-128|2;t=c[r>>2]|0}s=s+1|0;}while((s|0)<(t|0))}dK(d,q)|0;c[o>>2]=p;c[n>>2]=p;c[d+120>>2]=341;o=c[o>>2]|0}else{o=p}c[l>>2]=0;if((c[o+4>>2]|0)>>>0<=f>>>0){c[l>>2]=6;z=6;i=e;return z|0}n=c[283296+((a[(c[o+8>>2]|0)+f|0]&127)<<2)>>2]|0;d=c[o+12+(c[n>>2]<<2)>>2]|0;b:do{if((d|0)==0){d=c[(c[o>>2]|0)+100>>2]|0;m=jJ(d,c[n+8>>2]|0,m)|0;p=c[l>>2]|0;if((p|0)!=0){z=p;i=e;return z|0}c[m>>2]=n;p=c[n+12>>2]|0;do{if((p|0)!=0){z=Bd[p&255](m,c[o>>2]|0)|0;c[l>>2]=z;if((z|0)==0){break}n=c[n+20>>2]|0;if((n|0)!=0){fdfd[c[f+12>>2]&511](b)}f=b+692|0;g=c[f>>2]|0;if((g|0)==0){i=d;return}b=c[g+4>>2]|0;h=g+84|0;j=c[h>>2]|0;if((j|0)!=0){k=c[j+28>>2]|0;l=g+112|0;if((c[l>>2]|0)!=0){NK(j,l)}lJ(k,c[g+108>>2]|0);bX(h|0,0,32)|0}j=g+1208|0;k=c[j>>2]|0;if((k|0)!=0){l=c[k+28>>2]|0;h=g+1236|0;if((c[h>>2]|0)!=0){NK(k,h)}lJ(l,c[g+1232>>2]|0);bX(j|0,0,32)|0}h=g+20|0;j=c[h>>2]|0;if((j|0)!=0){k=c[j+28>>2]|0;l=g+48|0;if((c[l>>2]|0)!=0){NK(j,l)}lJ(k,c[g+44>>2]|0);bX(h|0,0,32)|0}l=g+1176|0;h=c[l>>2]|0;if((h|0)!=0){j=c[h+28>>2]|0;k=g+1204|0;if((c[k>>2]|0)!=0){NK(h,k)}lJ(j,c[g+1200>>2]|0);bX(l|0,0,32)|0}h=g+1892|0;l=c[h>>2]|0;if((l|0)!=0){j=0;do{k=c[g+1896+(j<<2)>>2]|0;if((k|0)!=0){l=k+532|0;m=c[l>>2]|0;if((m|0)!=0){n=c[m+28>>2]|0;o=k+560|0;if((c[o>>2]|0)!=0){NK(m,o)}lJ(n,c[k+556>>2]|0);bX(l|0,0,32)|0}l=k+564|0;lJ(b,c[l>>2]|0);c[l>>2]=0;l=c[h>>2]|0}j=j+1|0;}while(j>>>0<l>>>0);o=g+1896|0;lJ(b,c[o>>2]|0);c[o>>2]=0}c[g+116>>2]=0;c[g+120>>2]=0;c[g+124>>2]=0;j=c[(c[g>>2]|0)+28>>2]|0;k=g+1164|0;lJ(j,c[k>>2]|0);c[k>>2]=0;c[g+1168>>2]=0;k=g+1160|0;lJ(j,c[k>>2]|0);c[k>>2]=0;c[g+1152>>2]=0;c[g+1156>>2]=0;k=g+1856|0;j=c[k>>2]|0;if((j|0)!=0){l=c[j+28>>2]|0;h=g+1884|0;if((c[h>>2]|0)!=0){NK(j,h)}lJ(l,c[g+1880>>2]|0);bX(k|0,0,32)|0}h=g+1888|0;lJ(b,c[h>>2]|0);c[h>>2]=0;h=g+2032|0;if((c[h>>2]|0)!=0){NK(c[g>>2]|0,h)}c[g+2036>>2]=0;a[g+2024|0]=0;c[g+2028>>2]=0;o=g+2060|0;lJ(b,c[o>>2]|0);c[o>>2]=0;o=g+1304|0;lJ(b,c[o>>2]|0);c[o>>2]=0;o=g+1308|0;lJ(b,c[o>>2]|0);c[o>>2]=0;o=g+1316|0;lJ(b,c[o>>2]|0);c[o>>2]=0;o=g+1320|0;lJ(b,c[o>>2]|0);c[o>>2]=0;lJ(e,c[f>>2]|0);c[f>>2]=0;i=d;return}function iV(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0;b=i;d=i;i=i+8|0;f=d;e=i;i=i+200|0;c[d>>2]=0;g=c[a>>2]|0;h=c[(c[g+692>>2]|0)+2052>>2]|0;g=mK(c[(c[g+96>>2]|0)+4>>2]|0,287160)|0;do{if(!((g|0)==0|(h|0)==0)){h=c[h>>2]|0;if((h|0)==0){break}g=jd[h&511](g)|0;if((g|0)==0){break}j=c[a>>2]|0;h=c[j+692>>2]|0;f=jJ(c[j+100>>2]|0,132,f)|0;j=c[d>>2]|0;if((j|0)!=0){l=j;i=b;return l|0}KV(h+1324|0,e);j=sd[c[g>>2]&127](c[(c[a>>2]|0)+100>>2]|0,e,f)|0;c[d>>2]=j;if((j|0)!=0){l=j;i=b;return l|0}k=h+1896|0;j=f+4|0;l=c[h+1892>>2]|0;while(1){if((l|0)==0){e=9;break}l=l+ -1|0;KV(c[k+(l<<2)>>2]|0,e);h=sd[c[g>>2]&127](c[(c[a>>2]|0)+100>>2]|0,e,j+(l<<2)|0)|0;c[d>>2]=h;if((h|0)!=0){e=11;break}}if((e|0)==9){c[a+40>>2]=f;break}else if((e|0)==11){i=b;return h|0}}}while(0);c[a+44>>2]=-1;l=c[d>>2]|0;i=b;return l|0}function jV(a){a=a|0;var b=0,d=0,e=0,f=0;b=i;f=c[a>>2]|0;d=c[f+692>>2]|0;a=c[a+40>>2]|0;if((a|0)==0){i=b;return}e=c[d+2052>>2]|0;f=mK(c[(c[f+96>>2]|0)+4>>2]|0,287160)|0;if((f|0)==0|(e|0)==0){i=b;return}e=c[e>>2]|0;if((e|0)==0){i=b;return}e=jd[e&511](f)|0;if((e|0)==0){i=b;return}e=e+8|0;fd[c[e>>2]&511](c[a>>2]|0);d=c[d+1892>>2]|0;if((d|0)==0){i=b;return}do{d=d+ -1|0;fd=g+1|0;}while(g>>>0<h>>>0)}h=a[d+175|0]|0;a[e+11|0]=h;g=h&255;if(h<<24>>24!=0){h=0;do{b[e+88+(h<<1)>>1]=c[d+328+(h<<2)>>2];h=h+1|0;}while(h>>>0<g>>>0)}c[e+108>>2]=c[d+368>>2];c[e+112>>2]=c[d+372>>2];c[e+116>>2]=c[d+376>>2];b[e+120>>1]=c[d+380>>2];b[e+122>>1]=c[d+384>>2];h=a[d+388|0]|0;a[e+124|0]=h;g=h&255;if(h<<24>>24!=0){h=0;do{b[e+128+(h<<1)>>1]=c[d+392+(h<<2)>>2];h=h+1|0;}while(h>>>0<g>>>0)}g=a[d+389|0]|0;a[e+125|0]=g;h=g&255;if(g<<24>>24==0){g=d+496|0;g=a[g]|0;h=e+126|0;a[h]=g;h=d+508|0;h=c[h>>2]|0;g=e+184|0;c[g>>2]=h;g=d+504|0;g=c[g>>2]|0;h=e+4|0;c[h>>2]=g;i=f;return}else{g=0}do{b[e+154+(g<<1)>>1]=c[d+444+(g<<2)>>2];g=g+1|0;}while(g>>>0<h>>>0);g=d+496|0;g=a[g]|0;h=e+126|0;a[h]=g;h=d+508|0;h=c[h>>2]|0;g=e+184|0;c[g>>2]=h;g=d+504|0;g=c[g>>2]|0;h=e+4|0;c[h>>2]=g;i=f;return}function LV(e,f,g){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,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;h=i;k=i;i=i+8|0;l=i;i=i+8|0;j=i;i=i+8|0;c[k>>2]=e;c[l>>2]=f;p=c[(c[e+76>>2]|0)+1368>>2]|0;c[e+756>>2]=0;a[e+752|0]=1;l=l^k^j;l=(l>>>10^l^l>>20)&65535;c[j>>2]=(l|0)==0?29572:l;l=e+80|0;c[e+276>>2]=l;w=e+280|0;c[e+676>>2]=w;n=c[e+68>>2]|0;m=e+64|0;a[m]=0;c[w>>2]=f;x=f+g|0;c[e+284>>2]=x;c[e+288>>2]=f;A=c[e+24>>2]|0;z=c[e+28>>2]|0;g=(n|0)!=0;if(g){fd
7337 =0;c=a[n+(b>>>24)|0]|0;if((c|0)<8)return c|0;c=a[n+(b>>16&255)|0]|0;if((c|0)<8)return c+8|0;c=a[n+(b>>8&255)|0]|0;if((c|0)<8)return c+16|0;return(a[n+(b&255)|0]|0)+24|0}function mX(b){b=b|0;var c=0;c=a[m+(b&255)|0]|0;if((c|0)<8)return c|0;c=a[m+(b>>8&255)|0]|0;if((c|0)<8)return c+8|0;c=a[m+(b>>16&255)|0]|0;if((c|0)<8)return c+16|0;return(a[m+(b>>>24)|0]|0)+24|0}function nX(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;f=a&65535;d=b&65535;c=da(d,f)|0;e=a>>>16;d=(c>>>16)+(da(d,e)|0)|0;b=b>>>16;a=da(b,f)|0;return(H=(d>>>16)+(da(b,e)|0)+(((d&65535)+a|0)>>>16)|0,d+a<<16|c&65535|0)|0}function oX(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0;e=b>>31|((b|0)<0?-1:0)<<1;f=((b|0)<0?-1:0)>>31|((b|0)<0?-1:0)<<1;g=d>>31|((d|0)<0?-1:0)<<1;h=((d|0)<0?-1:0)>>31|((d|0)<0?-1:0)<<1;a=fX(e^a,f^b,e,f)|0;b=H;e=g^e;f=h^f;g=fX((tX(a,b,fX(g^c,h^d,g,h)|0,H,0)|0)^e,H^f,e,f)|0;return(H=H,g)|0}function pX(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;g=i;i=i+8|0;f=g|0;h=b>>31|((b|0)<0?-1:0)<<1;j=((b|0)<0?-1:0)>>31|((b|0)<0?-1:0)<<1;k=e>>31|((e|0)<0?-1:0)<<1;l=((e|0)<0?-1:0)>>31|((e|0)<0?-1:0)<<1;a=fX(h^a,j^b,h,j)|0;b=H;tX(a,b,fX(k^d,l^e,k,l)|0,H,f)|0;k=fX(c[f>>2]^h,c[f+4>>2]^j,h,j)|0;j=H;i=g;return(H=j,k)|0}function qX(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;e=a;f=c;a=nX(e,f)|0;c=H;return(H=(da(b,f)|0)+(da(d,e)|0)+c|c&0,a|0|0)|0}function rX(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;a=tX(a,b,c,d,0)|0;return(H=H,a)|0}function sX(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0;g=i;i=i+8|0;f=g|0;tX(a,b,d,e,f)|0;i=g;return(H=c[f+4>>2]|0,c[f>>2]|0)|0}function tX(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,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0;h=a;j=b;i=j;k=d;g=e;l=g;if((i|0)==0){d=(f|0)!=0;if((l|0)==0){if(d){c[f>>2]=(h>>>0)%(k>>>0);c[f+4>>2]=0}l=0;m=(h>>>0)/(k>>>0)>>>0;return(H=l,m)|0}else{if(!d){l=0;m=0;return(H=l,m)|0}c[f>>2]=a|0;c[f+4>>2]=b&0;l=0;m=0;return(H=l,m)|0}}m=(l|0)==0;do{if((k|0)==0){if(m){if((f|0)!=0){c[f>>2]=(i>>>0)%(k>>>0);c[f+4>>2]=0}l=0;m=(i>>>0)/(k>>>0)>>>0;return(H=l,m)|0}if((h|0)==0){if((f|0)!=0){c[f>>2]=0;c[f+4>>2]=(i>>>0)%(l>>>0)}k=0;m=(i>>>0)/(l>>>0)>>>0;return(H=k,m)|0}k=l-1|0;if((k&l|0)==0){if((f|0)!=0){c[f>>2]=a|0;c[f+4>>2]=k&i|b&0}k=0;m=i>>>((mX(l|0)|0)>>>0);return(H=k,m)|0}k=(lX(l|0)|0)-(lX(i|0)|0)|0;if(k>>>0<=30){b=k+1|0;m=31-k|0;j=b;a=i<<m|h>>>(b>>>0);b=i>>>(b>>>0);l=0;i=h<<m;break}if((f|0)==0){l=0;m=0;return(H=l,m)|0}c[f>>2]=a|0;c[f+4>>2]=j|b&0;l=0;m=0;return(H=l,m)|0}else{if(!m){k=(lX(l|0)|0)-(lX(i|0)|0)|0;if(k>>>0<=31){l=k+1|0;m=31-k|0;b=k-31>>31;j=l;a=h>>>(l>>>0)&b|i<<m;b=i>>>(l>>>0)&b;l=0;i=h<<m;break}if((f|0)==0){l=0;m=0;return(H=l,m)|0}c[f>>2]=a|0;c[f+4>>2]=j|b&0;l=0;m=0;return(H=l,m)|0}l=k-1|0;if((l&k|0)!=0){m=(lX(k|0)|0)+33-(lX(i|0)|0)|0;p=64-m|0;k=32-m|0;n=k>>31;o=m-32|0;b=o>>31;j=m;a=k-1>>31&i>>>(o>>>0)|(i<<k|h>>>(m>>>0))&b;b=b&i>>>(m>>>0);l=h<<p&n;i=(i<<p|h>>>(o>>>0))&n|h<<k&m-33>>31;break}if((f|0)!=0){c[f>>2]=l&h;c[f+4>>2]=0}if((k|0)==1){o=j|b&0;p=a|0|0;return(H=o,p)|0}else{p=mX(k|0)|0;o=i>>>(p>>>0)|0;p=i<<32-p|h>>>(p>>>0)|0;return(H=o,p)|0}}}while(0);if((j|0)==0){m=a;d=0;a=0}else{d=d|0|0;g=g|e&0;e=gX(d,g,-1,-1)|0;h=H;k=b;m=a;a=0;while(1){b=l>>>31|i<<1;l=a|l<<1;i=m<<1|i>>>31|0;k=m>>>31|k<<1|0;fX(e,h,i,k)|0;m=H;p=m>>31|((m|0)<0?-1:0)<<1;a=p&1;m=fX(i,k,p&d,(((m|0)<0?-1:0)>>31|((m|0)<0?-1:0)<<1)&g)|0;k=H;j=j-1|0;if((j|0)==0){break}else{i=b}}i=b;b=k;d=0}g=0;if((f|0)!=0){c[f>>2]=m;c[f+4>>2]=b}o=(l|0)>>>31|(i|g)<<1|(g<<1|l>>>31)&0|d;p=(l<<1|0>>>31)&-2|a;return(H=o,p)|0}function uX(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;return dd[a&1](b|0,c|0,d|0,e|0,f|0,g|0,h|0)|0}function vX(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;ed[a&3](b|0,c|0,d|0,e|0,f|0)}function wX(a,b){a=a|0;b=b|0;fd[a&511](b|0)}function xX(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=+e;f=+f;return gd[a&3](b|0,c|0,d|0,+e,+f)|0}function yX(a,b,c){a=a|0;b=b|0;c=c|0;hd[a&127](b|0,c|0)}function zX(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;return id[a&3](b|0,c|0,d|0,e|0,f|0,g|0)|0}function AX(a,b){a=a|0;b=b|0;return jd[a&511](b|0)|0}function BX(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=+d;e=+e;kd[a&1](b|0,c|0,+d,+e)}function CX(a,b,c,d,e,f){a=a|0;b=b|0;c=+c;d=+d;e=e|0;f=f|0;ld[a&3](b|0,+c,+d,e|0,f|0)}function DX(a,b,c,d,e,f,g,h,i,j,k,l,m){a=a|0;b=b|0;c=c|0;d=+d;e=+e;f=+f;g=+g;h=+h;i=+i;j=j|0;k=k|0;l=l|0;m=m|0;md[a&1](b|0,c|0,+d,+e,+f,+g,+h,+i,j|0,k|0,l|0,m|0)}function EX(a,b,c,d,e,f,g,h,i,j,k,l,m,n){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;k=k|0;l=l|0;m=+m;n=+n;return nd[a&1](b|0,c|0,d|0,e|0,f|0,g|0,h|0,i|0,j|0,k|0,l|0,+m,+n)|0}function FX(a,b,c,d,e){a=a|0;b=b|0;c=+c;d=d|0;e=e|0;od[a&1](b|0,+c,d|0,e|0)}function GX(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;return pd[a&63](b|0,c|0,d|0,e|0)|0}function HX(a,b,c,d,e,f,g,h,i,j){a=a|0;b=b|0;c=c|0;d=+d;e=+e;f=+f;g=+g;h=h|0;i=i|0;j=j|0;return qd[a&1](b|0,c|0,+d,+e,+f,+g,h|0,i|0,j|0)|0}function IX(a,b,c,d,e,f,g,h,i,j,k,l){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;k=k|0;l=l|0;rd[a&1](b|0,c|0,d|0,e|0,f|0,g|0,h|0,i|0,j|0,k|0,l|0)}function JX(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return sd[a&127](b|0,c|0,d|0)|0}function KX(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p){a=a|0;b=b|0;c=c|0;d=+d;e=+e;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;k=k|0;l=l|0;m=m|0;n=n|0;o=o|0;p=p|0;return td[a&1](b|0,c|0,+d,+e,f|0,g|0,h|0,i|0,j|0,k|0,l|0,m|0,n|0,o|0,p|0)|0}function LX(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;ud[a&7](b|0,c|0,d|0,e|0,f|0,g|0)}function MX(a,b,c,d,e,f,g,h,i,j,k,l,m,n){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;k=k|0;l=l|0;m=m|0;n=n|0;vd[a&3](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)}function NX(a,b){a=a|0;b=b|0;return+wd[a&1](b|0)}function OX(a,b,c,d,e,f,g,h,i,j,k){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;k=k|0;return xd[a&3](b|0,c|0,d|0,e|0,f|0,g|0,h|0,i|0,j|0,k|0)|0}function PX(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;yd[a&1](b|0,c|0,d|0,e|0,f|0,g|0,h|0)}function QX(a,b,c,d,e,f,g,h,i,j){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;zd[a&1](b|0,c|0,d|0,e|0,f|0,g|0,h|0,i|0,j|0)}function RX(a,b,c,d,e,f,g,h,i,j,k){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;k=k|0;Ad[a&1](b|0,c|0,d|0,e|0,f|0,g|0,h|0,i|0,j|0,k|0)}function SX(a,b,c){a=a|0;b=b|0;c=c|0;return Bd[a&255](b|0,c|0)|0}function TX(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 Cd[a&63](b|0,c|0,d|0,e|0,f|0)|0}function UX(a,b,c){a=a|0;b=b|0;c=c|0;return+Dd[a&3](b|0,c|0)}function VX(a,b,c,d,e,f,g,h,i){a=a|0;b=b|0;c=c|0;d=+d;e=+e;f=+f;g=+g;h=+h;i=+i;Ed[a&3](b|0,c|0,+d,+e,+f,+g,+h,+i)}function WX(a,b,c,d,e,f,g,h,i,j){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;return Fd
7343 var dd=[$X,bQ];var ed=[aY,LM,xW,wW];var fd=[bY,Te,Se,tg,sg,Gg,Fg,Jg,Ig,Pg,Og,Sg,hi,WF,Oi,Pi,hj,ij,tj,sj,kj,jj,vj,wj,rm,Fj,Ej,Hj,Ij,Ql,Nj,Mj,Pj,Qj,dm,Vj,Uj,Xj,Yj,km,ak,Pm,Rm,ik,hk,jk,ok,nk,pk,vk,uk,Bk,Fk,Ek,Gk,Kk,Jk,Mk,Lk,Vk,Uk,Xk,$k,Wk,sl,rl,ul,tl,Hl,Gl,Cm,yn,zn,ln,An,Gn,Fn,Xn,Wn,Yp,Xp,fq,eq,sq,rq,uq,jt,kt,lt,mt,sr,rr,nt,ot,pt,qt,Cr,Br,Kr,Jr,Or,Nr,Rr,Qr,Wr,Vr,_r,Zr,bs,as,fs,es,ks,js,us,ts,zs,ys,Cs,Bs,Fs,Es,Js,Is,Ms,Ls,Ps,Os,Ss,Rs,Ws,Vs,$s,_s,Hu,Gu,Iu,iv,hv,Sv,lv,kv,ov,Tv,Uv,qv,sv,rv,Vv,Wv,xv,wv,zv,Dv,Cv,Gv,Fv,Jv,Iv,Kv,Wx,Vx,ey,dy,oy,ny,Iy,Uy,az,hz,pz,wz,Cz,Kz,Jz,Uz,Tz,bA,aA,iA,hA,pA,oA,zA,yA,DA,CA,GA,FA,PA,OA,UA,TA,ZA,YA,cB,bB,jB,iB,TC,SC,YC,XC,_C,ZC,aD,$C,dD,cD,eD,gD,HD,GD,ID,KD,yE,xE,BE,AE,EE,DE,HE,GE,JE,IE,ME,LE,PE,OE,SE,RE,VE,UE,YE,XE,_E,ZE,xF,yF,wG,xG,vG,yG,MG,NG,QG,PG,$G,_G,rH,qH,wH,vH,DH,HH,LH,KH,OH,TH,SH,$H,_H,cI,sI,uI,vI,NI,MI,tL,xL,QL,VL,cM,kM,mM,vM,xM,zM,AM,BM,MM,SM,UM,XM,_M,dN,hN,tN,dO,jP,IP,SP,UP,cQ,dQ,kQ,IQ,aR,dR,fR,mS,pS,rS,tS,dT,gT,iT,kT,yT,BT,DT,FT,WT,tU,MU,RU,eV,hV,jV,lV,sV,wV,nW,qW,oW,pW,rW,KW,JW,rL,IL,KL,IN,DN,vN,mO,rO,yO,vO,UQ,YR,wU,cW,iW,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY,bY];var gd=[cY,Ph,Bi,cY];var hd=[dY,wg,zh,NF,Tg,Ug,Vg,Xg,Yg,Zg,_g,$g,ah,bh,ii,ji,ki,li,ch,eh,fh,gh,hh,mi,ni,oi,ih,qi,ri,si,ti,ui,vi,wi,kh,mh,nh,oh,ph,qh,Ei,Fi,Hi,th,wh,xh,QF,SF,Ki,Ih,Lh,Nh,Kj,Sj,_j,nm,gk,$y,fz,oz,uz,Bz,Hz,Rz,_z,gA,nA,uA,vL,AL,HM,FS,GS,HS,IS,JS,KS,LS,MS,NS,OS,oT,pT,qT,JT,KT,LT,MT,gU,kU,oU,LL,GN,fW,dY,dY,dY,dY,dY,dY,dY,dY,dY,dY,dY,dY,dY,dY,dY,dY,dY,dY,dY,dY,dY,dY,dY,dY,dY,dY,dY,dY,dY,dY,dY,dY,dY,dY];var id=[eY,UN,$P,eY];var jd=[fY,vg,yg,zg,Ag,Bg,Cg,Dg,Eg,Sh,Uh,Vh,Wh,Qh,Rh,Yh,Zh,_h,ai,bi,ci,di,Mi,XF,Mh,lj,Tl,Ul,Vl,Il,Kl,Ll,Yl,Zl,qm,sm,tm,um,vm,wm,Ml,Nl,Ol,Pl,Rl,Wl,_l,$l,am,bm,cm,em,fm,gm,hm,im,jm,lm,mm,Om,ck,dk,Qm,Sm,fk,om,pm,kk,xm,ym,qk,Hm,wk,yk,Ak,Im,Jm,Km,zm,Am,Nk,Lm,al,cl,Mm,vl,xl,Al,Nm,Bm,Dm,Em,wq,xq,et,gt,ht,it,Ou,Ku,Mu,Ju,Pu,xy,yy,gy,zy,ry,qy,Vy,dC,eC,fC,gC,cC,bz,pC,aC,bC,qC,iz,hC,iC,jC,kC,qz,rC,sC,xz,lC,mC,Dz,tC,uC,Lz,vC,Qz,wC,Vz,xC,yC,zC,cA,AC,BC,CC,jA,DC,EC,FC,qA,nC,oC,AA,EA,QA,VA,_A,dB,lB,AD,BD,CD,DD,ED,hD,iD,jD,aE,LD,ND,$E,aF,bF,cF,dF,eF,fF,gF,hF,iF,jF,kF,nF,oF,lF,mF,pF,qF,rF,sF,tF,uF,dI,eI,fI,gI,hI,iI,jI,kI,lI,mI,nI,oI,pI,qI,rI,lM,CM,QM,YM,LN,MN,NN,sN,TN,XN,YN,eO,CP,JQ,$Q,eR,gR,lS,qS,sS,bT,ZS,cT,hT,jT,wT,xT,CT,ET,RT,PT,sU,dV,iV,kV,GV,HV,IV,JV,XV,VV,LW,zt,At,nu,pu,VR,WR,XR,nR,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY,fY];var kd=[gY,uh];var ld=[hY,OF,PF,hY];var md=[iY,rh];var nd=[jY,yi];var od=[kY,Hg];var pd=[lY,Th,Kg,vq,VI,WL,gM,nM,oM,wM,GM,WM,fO,gO,mP,xP,JP,ZP,yP,KQ,LQ,OQ,PQ,YQ,hR,iR,uS,vS,$S,WS,lT,rT,GT,ST,XT,SU,mV,nV,TV,PV,NL,qN,eK,UR,dW,hW,lY,lY,lY,lY,lY,lY,lY,lY,lY,lY,lY,lY,lY,lY,lY,lY,lY,lY];var qd=[mY,sh];var rd=[nY,Xh];var sd=[oY,ug,zi,Ai,Ci,Oh,Di,oj,pj,mj,Xl,lk,rk,Ck,Hk,Sk,ol,Bl,wl,Fm,kD,OD,KG,LG,sH,UI,tK,$L,aM,hM,qM,rM,sM,tM,uM,FM,PM,RM,VM,bO,iO,nP,pP,qP,KP,MP,aQ,AP,eQ,gQ,iQ,lQ,mQ,vP,wP,NQ,XQ,iS,kS,dS,SS,TS,VS,tT,eU,iU,mU,qU,bV,cV,RV,sW,Ve,We,Ch,Bh,Eh,HN,uK,BR,wR,ER,FR,xR,yR,CR,DR,IR,JR,KR,LR,zS,eW,oY,oY,oY,oY,oY,oY,oY,oY,oY,oY,oY,oY,oY,oY,oY,oY,oY,oY,oY,oY,oY,oY,oY,oY,oY,oY,oY,oY,oY,oY,oY,oY,oY,oY,oY];var td=[pY,gi];var ud=[qY,Kh,zW,yW,kO,lO,pO,qO];var vd=[rY,Fh,Gh,rY];var wd=[sY,ft];var xd=[tY,fy,py,tY];var yd=[uY,Hh];var zd=[vY,Ah];var Ad=[wY,Dh];var Bd=[xY,xg,$h,ei,fi,Ji,Qi,gj,Sl,mk,sk,Dk,Ik,Tk,pl,Cl,Gm,Bn,Nu,lD,PD,wF,zG,tI,RI,SI,TI,sL,uL,wL,yL,BL,PL,RL,SL,TL,XL,YL,bM,dM,eM,iM,DM,NM,ZM,$M,aN,bN,cN,eN,fN,gN,iN,jN,VN,WN,SN,$N,cO,AO,BO,CO,DO,EO,FO,GO,HO,IO,JO,KO,LO,MO,NO,OO,PO,QO,RO,SO,TO,UO,VO,WO,XO,YO,ZO,_O,$O,aP,bP,cP,dP,eP,fP,gP,hP,iP,kP,lP,oP,rP,sP,tP,LP,NP,OP,PP,QP,RP,TP,VP,WP,XP,YP,_P,fQ,hQ,jQ,EP,zP,uP,FQ,HQ,VQ,WQ,bR,kR,lR,jS,nS,wS,yS,aT,XS,YS,_S,RS,US,eT,mT,uT,vT,sT,zT,HT,IT,TT,NT,OT,QT,UT,YT,ZT,$T,aU,bU,cU,dU,fU,hU,jU,lU,nU,pU,LU,NU,OU,PU,TU,UU,fV,pV,qV,rV,tV,uV,vV,xV,yV,WV,UV,SV,QV,yh,Dq,Xq,gr,cv,ly,my,HK,JL,lN,oN,wN,ZN,tQ,uQ,oR,rR,BS,AS,nT,aV,zV,xY,xY,xY,xY,xY,xY,xY,xY,xY,xY,xY,xY,xY,xY,xY,xY,xY,xY,xY,xY,xY,xY,xY,xY,xY,xY,xY,xY,xY,xY,xY,xY,xY,xY,xY,xY,xY,xY,xY,xY,xY,xY,xY,xY,xY,xY,xY,xY,xY,xY,xY,xY];var Cd=[yY,fj,Gj,Oj,Wj,bk,vF,dL,eL,fL,gL,hL,iL,jL,kL,lL,UL,sK,fM,jM,EM,JM,KM,GP,HP,DP,nQ,FP,cR,jR,oS,xS,fT,AT,VT,rU,QU,gV,oV,rN,WU,ZU,$U,yY,yY,yY,yY,yY,yY,yY,yY,yY,yY,yY,yY,yY,yY,yY,yY,yY,yY,yY,yY,yY];var Dd=[zY,yH,QI,zY];var Ed=[AY,Wg,vh,AY];var Fd=[BY,xH,OI,PI,TM,BY,BY,BY];var Gd=[CY,Re,Rg,Gi,Ii,RF,TF,UF,VF,Li,Jh,Ni,nj,Jl,xj,Jj,Rj,Zj,ek,zk,zl,Gr,Sr,Xr,cs,gs,qs,vs,Gs,Ts,Xs,Yv,Zv,_v,$v,aw,bw,cw,dw,ew,fw,gw,hw,iw,jw,kw,lw,mw,nw,ow,pw,qw,rw,sw,tw,uw,vw,ww,xw,yw,zw,Aw,Bw,Cw,Dw,Ew,Fw,Gw,Hw,Iw,Jw,Kw,Lw,Mw,Nw,Ow,Pw,Qw,Rw,Sw,Tw,Uw,Vw,Ww,Xw,Yw,Zw,_w,$w,ax,bx,cx,dx,ex,fx,gx,hx,ix,jx,kx,lx,Wy,Yy,_y,cz,dz,ez,jz,lz,nz,rz,sz,tz,yz,zz,Az,Ez,Fz,Gz,Mz,Nz,Pz,Wz,Xz,Zz,dA,eA,fA,kA,lA,mA,rA,sA,tA,QD,IH,MH,PH,UH,aI,zL,pN,aO,hO,GQ,MQ,EN,FN,zN,jO,oO,pR,qR,sR,tR,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY];var Hd=[DY,EY];var Id=[FY,pi,xi,FY];var Jd=[GY,Ri,Si,Ti,Ui,Vi,Wi,Xi,Yi,Zi,_i,$i,aj,bj,cj,dj,Xy,Zy,Sy,_B,$B,kz,mz,Iz,Oz,Sz,Yz,$z,yM,IM,OM,tW,uW,xN,yN,vJ,RQ,MR,NR,OR,PR,QR,RR,GY,GY,GY,GY,GY,GY,GY,GY,GY,GY,GY,GY,GY,GY,GY,GY,GY,GY,GY,GY,GY];return{_saveSetjmp:YW,_memcmp:iX,_strncasecmp:XW,_strcat:cX,_free:BW,_main:_d,_realloc:CW,_i64Add:gX,_memmove:aX,_tolower:WW,_strlen:ZW,_memset:bX,_malloc:AW,_bitshift64Ashr:_W,_memcpy:$W,_strncpy:hX,_bitshift64Lshr:jX,_bitshift64Shl:dX,_i64Subtract:fX,_strcpy:eX,_testSetjmp:kX,runPostSets:VW,stackAlloc:Kd,stackSave:Ld,stackRestore:Md,setThrew:Nd,setTempRet0:Qd,setTempRet1:Rd,setTempRet2:Sd,setTempRet3:Td,setTempRet4:Ud,setTempRet5:Vd,setTempRet6:Wd,setTempRet7:Xd,setTempRet8:Yd,setTempRet9:Zd,dynCall_iiiiiiii:uX,dynCall_viiiii:vX,dynCall_vi:wX,dynCall_iiiidd:xX,dynCall_vii:yX,dynCall_iiiiiii:zX,dynCall_ii:AX,dynCall_viidd:BX,dynCall_viddii:CX,dynCall_viiddddddiiii:DX,dynCall_iiiiiiiiiiiidd:EX,dynCall_vidii:FX,dynCall_iiiii:GX,dynCall_iiiddddiii:HX,dynCall_viiiiiiiiiii:IX,dynCall_iiii:JX,dynCall_iiiddiiiiiiiiiii:KX,dynCall_viiiiii:LX,dynCall_viiiiiiiiiiiii:MX,dynCall_di:NX,dynCall_iiiiiiiiiii:OX,dynCall_viiiiiii:PX,dynCall_viiiiiiiii:QX,dynCall_viiiiiiiiii:RX,dynCall_iii:SX,dynCall_iiiiii:TX,dynCall_dii:UX,dynCall_viidddddd:VX,dynCall_iiiiiiiiii:WX,dynCall_viii:XX,dynCall_v:YX,dynCall_viid:ZX,dynCall_viiii:_X}})