>1]|0}q=q+1|0}while((q|0)<(r<<16>>16|0))}w=z+32|0;v=c[(w&p)>>2]|0;xt(d,f,109,0,1,e,m,t,A);if((v|0)<(c[(w&p)>>2]|0))xh(z,wh(z,x,g,A,i)|0,j<<16>>16,-14);zt(d,e,m,0,0,0)}else m=0;if((c[(e&p)+12>>2]|0)==0?(At(d,e,g,h,0),wh(z,95,g,k<<24>>24!=0&1,0)|0,k<<24>>24!=0):0)xh(z,-1,c[(e&p)>>2]|0,0);Ct(d,e,0,m,0,0);xt(d,f,109,0,2,e,m,l&255,A);q=c[(z&p)+24>>2]|0;m=~A;if((A|0)<0?(B=c[(q&p)+112>>2]|0,(B|0)!=0):0)c[(B+(m<<2)&p)>>2]=c[(z&p)+32>>2];c[(q&p)+88>>2]=(c[(z&p)+32>>2]|0)+-1;return}function st(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,o=0,q=0,r=0;j=c[(b&p)+8>>2]|0;d=c[(b&p)+404>>2]|0;if(d){l=(c[(b&p)>>2]|0)+16|0;m=b+19|0;o=b+72|0;q=j+32|0;r=j+4|0;k=j+24|0;do{f=c[(d&p)+8>>2]|0;g=c[(l&p)>>2]|0;i=c[(d&p)+12>>2]|0;e=a[(m&n)>>0]|0;if(!(e<<24>>24)){h=(c[(o&p)>>2]|0)+1|0;c[(o&p)>>2]=h}else{h=e+-1<<24>>24;a[(m&n)>>0]=h;h=c[(b+((h&255)<<2)&p)+24>>2]|0}Qq(b,0,f,c[((c[(g+(f<<4)&p)+12>>2]|0)&p)+72>>2]|0,55);g=i+1|0;f=wh(j,77,g,0,0)|0;wh(j,74,0,g,0)|0;e=c[(q&p)>>2]|0;if(e>>>0>f>>>0)c[((c[(r&p)>>2]|0)+(f*20|0)&p)+8>>2]=e;c[((c[(k&p)>>2]|0)&p)+88>>2]=e+-1;wh(j,49,i+-1|0,2,h)|0;wh(j,75,0,h,g)|0;e=c[(r&p)>>2]|0;if(e)a[(e+(((c[(q&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=8;wh(j,61,0,0,0)|0;_r(b,h);d=c[(d&p)>>2]|0}while((d|0)!=0)}return}function tt(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0;h=i;i=i+16|0;if((i|0)>=(j|0))fa();g=h;c[(g&p)>>2]=e;if(!e)f=0;else{f=e;while(1)if(!(a[(f&n)>>0]|0))break;else f=f+1|0;f=f-e&1073741823}c[(g&p)+4>>2]=f;f=nr(b,d,g,0)|0;i=h;return f|0}function ut(a,d){a=a|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,q=0,r=0;q=i;i=i+16|0;if((i|0)>=(j|0))fa();k=q+4|0;n=q;if(c[((c[(a&p)>>2]|0)&p)+24>>2]&524288){f=c[(d&p)+16>>2]|0;if(!f)e=0;else{e=0;do{g=c[(f&p)+20>>2]|0;if((g|0)>0){h=0;do{r=c[(f+(h<<3)&p)+36>>2]|0;e=((r|0)>31?-1:1<>2]|0}while((f|0)!=0)}f=bn((c[(d&p)+68>>2]|0)+56|0,c[(d&p)>>2]|0,k)|0;if((f|0)!=0?(l=c[(f&p)+8>>2]|0,(l|0)!=0):0)do{c[(n&p)>>2]=0;Mt(a,d,l,n,0)|0;f=c[(n&p)>>2]|0;if((f|0)!=0?(m=b[(f&o)+46>>1]|0,m<<16>>16!=0):0){k=m&65535;h=c[(f&p)+4>>2]|0;g=0;do{f=b[(h+(g<<1)&o)>>1]|0;if(f<<16>>16>31)f=-1;else f=1<<(f<<16>>16);e=f|e;g=g+1|0}while((g|0)<(k|0))}l=c[(l&p)+12>>2]|0}while((l|0)!=0)}else e=0;i=q;return e|0}function vt(a,b,e,f,g,h,i){a=a|0;b=b|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;var j=0,k=0,l=0;k=(e|0)!=0?110:109;if(!b)j=0;else{j=0;do{if((((d[(b&n)+8>>0]|0|0)==(k|0)?((d[(b&n)+9>>0]|0)&g|0)!=0:0)?(av(c[(b&p)+16>>2]|0,e)|0)!=0:0)?(l=cv(a,b,h,i)|0,(l|0)!=0):0)j=c[(l+(f<<2)&p)+16>>2]|j;b=c[(b&p)+32>>2]|0}while((b|0)!=0)}return j|0}function wt(d,e,f){d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0;l=e+20|0;g=c[(l&p)>>2]|0;do if(!g){i=c[(d&p)>>2]|0;k=e+38|0;h=(b[(k&o)>>1]|0)+1|0;h=qg(h,((h|0)<0)<<31>>31)|0;if(!h){a[(i&n)+65>>0]=1;break}if((b[(k&o)>>1]|0)>0){i=e+4|0;g=0;do{a[(h+g&n)>>0]=a[((c[(i&p)>>2]|0)+(g*24|0)&n)+21>>0]|0;g=g+1|0}while((g|0)<(b[(k&o)>>1]|0))}else g=0;do{a[(h+g&n)>>0]=0;if((g|0)<=0)break;g=g+-1|0}while((a[(h+g&n)>>0]|0)==65);c[(l&p)>>2]=h;j=10}else{h=g;j=10}while(0);do if((j|0)==10){g=h;while(1)if(!(a[(g&n)>>0]|0))break;else g=g+1|0;g=g-h&1073741823;if(g)if(!f){xh(d,-1,h,g);break}else{xh(d,wh(d,48,f,g,0)|0,h,g);break}}while(0);return}function xt(a,b,e,f,g,h,i,j,k){a=a|0;b=b|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;k=k|0;if(b)do{if(((d[(b&n)+8>>0]|0|0)==(e|0)?(d[(b&n)+9>>0]|0|0)==(g|0):0)?(av(c[(b&p)+16>>2]|0,f)|0)!=0:0)dv(a,b,h,i,j,k);b=c[(b&p)+32>>2]|0}while((b|0)!=0);return}function yt(d,f,g,h,k,l,m,q,r,s,t){d=d|0;f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;m=m|0;q=q|0;r=r|0;s=s|0;t=t|0;var 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,ga=0,ha=0,ia=0,ja=0,ka=0,la=0,ma=0,na=0,oa=0;oa=i;i=i+16|0;if((i|0)>=(j|0))fa();L=oa;ia=(m|0)!=0;Q=c[(d&p)>>2]|0;na=Oq(d)|0;D=b[(f&o)+38>>1]|0;la=f+44|0;if(!(a[(la&n)>>0]&32)){ha=1;ga=0}else{x=f+8|0;while(1){x=c[(x&p)>>2]|0;if((a[(x&n)+51>>0]&3)==2)break;else x=x+20|0}ha=e[(x&o)+46>>1]|0;ga=x}if(D<<16>>16>0){z=f+36|0;y=f+4|0;x=r<<24>>24==10;w=d+408|0;v=l+1|0;E=na+4|0;F=na+32|0;G=na+24|0;H=r&255;B=D<<16>>16;A=0;do{a:do if((A|0)!=(b[(z&o)>>1]|0)?(I=c[(y&p)>>2]|0,J=a[(I+(A*24|0)&n)+20>>0]|0,K=J&255,J<<24>>24!=0):0){if(x)if(J<<24>>24==10)ma=14;else{D=K;ma=11}else{D=H;ma=11}do if((ma|0)==11){ma=0;if((D|0)==5)D=(c[(I+(A*24|0)&p)+4>>2]|0)==0?2:5;if((D|0)==2){ma=14;break}else if((D|0)==3|(D|0)==1)break;else if((D|0)==4){wh(na,76,v+A|0,s,0)|0;break a}C=v+A|0;D=wh(na,77,C,0,0)|0;Rq(d,c[((c[(y&p)>>2]|0)+(A*24|0)&p)+4>>2]|0,C);C=c[(F&p)>>2]|0;if(C>>>0>D>>>0)c[((c[(E&p)>>2]|0)+(D*20|0)&p)+8>>2]=C;c[((c[(G&p)>>2]|0)&p)+88>>2]=C+-1;break a}while(0);if((ma|0)==14){ma=0;D=c[(w&p)>>2]|0;a[(((D|0)==0?d:D)&n)+21>>0]=1;D=2}ea=c[(I+(A*24|0)&p)>>2]|0;c[(L&p)>>2]=c[(f&p)>>2];c[(L&p)+4>>2]=ea;ea=uh(Q,27824,L)|0;xh(na,wh(na,23,1299,D,v+A|0)|0,ea,-1);D=c[(E&p)>>2]|0;if(D)a[(D+(((c[(F&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=1}while(0);A=A+1|0}while((A|0)!=(B|0))}A=c[(f&p)+24>>2]|0;if(((A|0)!=0?(c[(Q&p)+24>>2]&8192|0)==0:0)?(c[(d&p)+92>>2]=l+1,(c[(A&p)>>2]|0)>0):0){z=A+4|0;v=na+24|0;B=na+32|0;D=0;x=r<<24>>24==10?2:r&255;while(1){C=xs(na)|0;Zu(d,c[((c[(z&p)>>2]|0)+(D*20|0)&p)>>2]|0,C,16);if((x|0)==4){wh(na,16,0,s,0)|0;w=4}else{y=c[((c[(z&p)>>2]|0)+(D*20|0)&p)+4>>2]|0;if(!y)y=c[(f&p)>>2]|0;w=(x|0)==5?2:x;zs(d,275,w,y,0,3)}y=c[(v&p)>>2]|0;x=~C;if((C|0)<0?(M=c[(y&p)+112>>2]|0,(M|0)!=0):0)c[(M+(x<<2)&p)>>2]=c[(B&p)>>2];c[(y&p)+88>>2]=(c[(B&p)>>2]|0)+-1;D=D+1|0;if((D|0)>=(c[(A&p)>>2]|0))break;else x=w}}if(q<<24>>24!=0&(ga|0)==0){z=xs(na)|0;v=a[(f&n)+45>>0]|0;if(r<<24>>24==10)v=v<<24>>24==10?2:v&255;else v=r&255;if(ia?(wh(na,79,l,z,m)|0,N=c[(na&p)+4>>2]|0,(N|0)!=0):0)a[(N+(((c[(na&p)+32>>2]|0)+-1|0)*20|0)&n)+3>>0]=-112;b:do if(!((v|0)!=5|r<<24>>24==5)?(u=c[(f&p)+8>>2]|0,(u|0)!=0):0){while(1){if(((a[(u&n)+50>>0]|0)+-3&255)<2)break;u=c[(u&p)+20>>2]|0;if(!u){A=0;break b}}A=wh(na,16,0,0,0)|0}else A=0;while(0);wh(na,70,h,z,l)|0;c:do switch(v|0){case 4:{wh(na,16,0,s,0)|0;v=0;break}case 3:case 2:case 1:{ma=49;break}case 5:{if((c[(Q&p)+24>>2]&262144|0)!=0?(O=jt(d,f,109,0,0)|0,(O|0)!=0):0)v=O;else if(!(mt(d,f,0,0)|0)){if(!(c[(f&p)+8>>2]|0)){v=1;break c}v=c[(d&p)+408>>2]|0;a[(((v|0)==0?d:v)&n)+20>>0]=1;At(d,f,h,k,0);v=1;break c}else v=0;ea=c[(d&p)+408>>2]|0;a[(((ea|0)==0?d:ea)&n)+20>>0]=1;rt(d,f,v,h,k,l,1,0,5,1);v=1;break}default:{v=2;ma=49}}while(0);if((ma|0)==49){Ft(d,v,f);v=0}y=na+24|0;x=c[(y&p)>>2]|0;w=~z;if((z|0)<0?(P=c[(x&p)+112>>2]|0,(P|0)!=0):0)c[(P+(w<<2)&p)>>2]=c[(na&p)+32>>2];u=na+32|0;c[(x&p)+88>>2]=(c[(u&p)>>2]|0)+-1;if(!A){w=0;A=0}else{w=wh(na,16,0,0,0)|0;u=c[(u&p)>>2]|0;if(u>>>0>A>>>0)c[((c[(na&p)+4>>2]|0)+(A*20|0)&p)+8>>2]=u;c[((c[(y&p)>>2]|0)&p)+88>>2]=u+-1}}else{w=0;A=0;v=0}D=c[(f&p)+8>>2]|0;if(D){ba=l+1|0;ca=d+60|0;da=d+56|0;ea=d+72|0;T=q<<24>>24==0;U=na+24|0;V=na+32|0;W=r<<24>>24==10;X=na+4|0;Y=ga+46|0;Z=ga+32|0;_=ga+4|0;$=m+1|0;aa=d+408|0;R=Q+24|0;S=ha&65535;z=r&255;y=f+36|0;x=d+92|0;H=0;u=0;C=-1;while(1){O=g+(u<<2)|0;do if(c[(O&p)>>2]|0){if(!(H<<24>>24)){wt(na,f,ba);H=1}P=u+k|0;r=xs(na)|0;N=D+36|0;if(c[(N&p)>>2]|0){wh(na,28,0,c[(O&p)>>2]|0,0)|0;c[(x&p)>>2]=ba;gt(d,c[(N&p)>>2]|0,r,16);c[(x&p)>>2]=0}Q=D+48|0;I=b[(Q&o)>>1]|0;L=I&65535;K=c[(ca&p)>>2]|0;J=c[(da&p)>>2]|0;if((J|0)<(L|0)){q=c[(ea&p)>>2]|0;c[(ea&p)>>2]=q+L;q=q+1|0}else{c[(ca&p)>>2]=K+L;c[(da&p)>>2]=J-L;q=K}if(!(I<<16>>16))M=C;else{M=D+4|0;J=0;do{B=b[((c[(M&p)>>2]|0)+(J<<1)&o)>>1]|0;L=B<<16>>16;if(B<<16>>16>=0?B<<16>>16!=(b[(y&o)>>1]|0):0){K=J+q|0;L=ba+L|0;ma=81}else{L=J+q|0;if((C|0)!=(L|0)){K=L;C=(c[(N&p)>>2]|0)==0?L:-1;L=l;ma=81}}if((ma|0)==81){ma=0;wh(na,34,L,K,0)|0;I=b[(Q&o)>>1]|0}J=J+1|0;L=I&65535}while((J|0)<(L|0));M=C}wh(na,49,q,L,c[(O&p)>>2]|0)|0;dt(d,q,e[(Q&o)>>1]|0);N=(ga|0)==(D|0);if(ia&N&T){C=c[(U&p)>>2]|0;B=~r;if((r|0)<0?(ja=c[(C&p)+112>>2]|0,(ja|0)!=0):0)c[(ja+(B<<2)&p)>>2]=c[(V&p)>>2];c[(C&p)+88>>2]=(c[(V&p)>>2]|0)+-1;C=M;break}G=a[(D&n)+50>>0]|0;F=G&255;if(!(G<<24>>24)){C=e[(Q&o)>>1]|0;dt(d,q,C);if((c[(da&p)>>2]|0)<(C|0)){c[(da&p)>>2]=C;c[(ca&p)>>2]=q}C=c[(U&p)>>2]|0;B=~r;if((r|0)<0?(ka=c[(C&p)+112>>2]|0,(ka|0)!=0):0)c[(ka+(B<<2)&p)>>2]=c[(V&p)>>2];c[(C&p)+88>>2]=(c[(V&p)>>2]|0)+-1;C=M;break}if(W)O=G<<24>>24==10?2:F;else O=z;C=e[(D&o)+46>>1]|0;xh(na,wh(na,67,P,r,q)|0,C,-14);do if(!N){L=c[(ca&p)>>2]|0;K=c[(da&p)>>2]|0;if((K|0)<(ha|0)){L=c[(ea&p)>>2]|0;c[(ea&p)>>2]=L+ha;L=L+1|0;break}else{c[(ca&p)>>2]=L+ha;c[(da&p)>>2]=K-ha;break}}else L=q;while(0);do if(ia|(O|0)==5){if(!(a[(la&n)>>0]&32)){wh(na,112,P,L,0)|0;if(!ia)break;wh(na,79,L,r,m)|0;G=c[(X&p)>>2]|0;if(!G)break;a[(G+(((c[(V&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=-112;break}do if(!N){if(!(b[(Y&o)>>1]|0))break;F=D+4|0;E=0;do{I=b[((c[(_&p)>>2]|0)+(E<<1)&o)>>1]|0;K=b[(Q&o)>>1]|0;d:do if(!(K<<16>>16))K=-1;else{G=c[(F&p)>>2]|0;J=K&65535;K=0;while(1){if((b[(G+(K<<1)&o)>>1]|0)==I<<16>>16)break d;K=K+1|0;if((K|0)>=(J|0)){K=-1;break}}}while(0);wh(na,47,P,K<<16>>16,E+L|0)|0;E=E+1|0}while((E|0)<(e[(Y&o)>>1]|0))}while(0);if(!ia)break;F=(a[(D&n)+51>>0]&3)==2?q:L;K=b[(Y&o)>>1]|0;if(!(K<<16>>16))break;J=(K&65535)+(c[(V&p)>>2]|0)|0;I=0;G=78;do{K=cr(d,c[((c[(Z&p)>>2]|0)+(I<<2)&p)>>2]|0)|0;C=(I|0)==((e[(Y&o)>>1]|0)+-1|0);J=C?r:J;G=C?79:G;xh(na,wh(na,G,$+(b[((c[(_&p)>>2]|0)+(I<<1)&o)>>1]|0)|0,J,I+F|0)|0,K,-4);K=c[(X&p)>>2]|0;if(K)a[(K+(((c[(V&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=-112;I=I+1|0}while((I|0)<(e[(Y&o)>>1]|0))}while(0);if((O|0)==3|(O|0)==2|(O|0)==1)nu(d,O,D);else if((O|0)==4)wh(na,16,0,s,0)|0;else{C=c[(aa&p)>>2]|0;a[(((C|0)==0?d:C)&n)+20>>0]=1;if(!(c[(R&p)>>2]&262144))G=0;else G=jt(d,f,109,0,0)|0;rt(d,f,G,h,k,L,S,0,5,N&1);v=1}K=c[(U&p)>>2]|0;J=~r;do if((r|0)<0){G=c[(K&p)+112>>2]|0;if(!G)break;c[(G+(J<<2)&p)>>2]=c[(V&p)>>2]}while(0);c[(K&p)+88>>2]=(c[(V&p)>>2]|0)+-1;C=e[(Q&o)>>1]|0;dt(d,q,C);if((c[(da&p)>>2]|0)<(C|0)){c[(da&p)>>2]=C;c[(ca&p)>>2]=q}if((L|0)==(q|0)){C=M;break}dt(d,L,ha);if((c[(da&p)>>2]|0)>=(ha|0)){C=M;break}c[(da&p)>>2]=ha;c[(ca&p)>>2]=L;C=M}while(0);D=c[(D&p)+20>>2]|0;if(!D)break;else u=u+1|0}}if(A){wh(na,16,0,A+1|0,0)|0;u=c[(na&p)+32>>2]|0;if(u>>>0>w>>>0)c[((c[(na&p)+4>>2]|0)+(w*20|0)&p)+8>>2]=u;c[((c[(na&p)+24>>2]|0)&p)+88>>2]=u+-1}c[(t&p)>>2]=v;i=oa;return}function zt(e,f,g,h,k,l){e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;var m=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;aa=i;i=i+32|0;if((i|0)>=(j|0))fa();T=aa+20|0;R=aa+16|0;P=aa+12|0;Q=aa+8|0;_=aa+4|0;Z=aa;V=c[(e&p)>>2]|0;O=e+438|0;U=a[(O&n)>>0]|0;Y=V+24|0;a:do if(c[(Y&p)>>2]&524288){S=f+68|0;m=c[(S&p)>>2]|0;b:do if(m){r=c[(V&p)+20>>2]|0;if((r|0)>0){q=c[(V&p)+16>>2]|0;u=0;while(1){t=u+1|0;if((c[(q+(u<<4)&p)+12>>2]|0)==(m|0)){t=u;break b}if((t|0)<(r|0))u=t;else break}}else t=0}else t=-1e6;while(0);N=c[((c[(V&p)+16>>2]|0)+(t<<4)&p)>>2]|0;A=c[(f&p)+16>>2]|0;if(!A)q=f;else{C=(k|0)==0;D=U<<24>>24==0;E=V+65|0;F=g+1|0;G=e+68|0;H=(g|0)==0;I=(h|0)==0;J=e+408|0;K=f+36|0;L=V+284|0;M=(l|0)!=0;B=A;do{c[(R&p)>>2]=0;c[(P&p)>>2]=0;c:do if(!C){A=c[(B&p)+8>>2]|0;if(dd(c[(f&p)>>2]|0,A)|0){z=c[(B&p)+20>>2]|0;if((z|0)>0){q=0;do{m=c[(B+(q<<3)&p)+36>>2]|0;if((c[(k+(m<<2)&p)>>2]|0)>-1){$=17;break c}q=q+1|0;if((m|0)==(b[(K&o)>>1]|0)&M){$=17;break c}}while((q|0)<(z|0))}}else $=17}else{A=c[(B&p)+8>>2]|0;$=17}while(0);do if(($|0)==17){$=0;if(!(a[(O&n)>>0]|0))y=sh(e,0,A,N)|0;else y=_h(V,A,N)|0;A=(y|0)==0;if(!A?(Mt(e,y,B,R,P)|0)==0:0){A=c[(P&p)>>2]|0;if(!A){c[(Q&p)>>2]=c[(B&p)+36>>2];A=Q}q=B+20|0;if((c[(q&p)>>2]|0)>0){w=c[(R&p)>>2]|0;r=(w|0)==0;u=y+36|0;v=y+4|0;w=w+4|0;m=0;x=0;do{z=A+(x<<2)|0;if((c[(z&p)>>2]|0)==(b[(K&o)>>1]|0))c[(z&p)>>2]=-1;if(c[(L&p)>>2]|0){if(r)z=u;else z=(c[(w&p)>>2]|0)+(x<<1)|0;m=(ev(e,c[(y&p)>>2]|0,c[((c[(v&p)>>2]|0)+((b[(z&o)>>1]|0)*24|0)&p)>>2]|0,t)|0)==2&1}x=x+1|0}while((x|0)<(c[(q&p)>>2]|0));z=y}else{z=y;m=0}gs(e,t,c[(y&p)+32>>2]|0,0,c[(z&p)>>2]|0);c[(G&p)>>2]=(c[(G&p)>>2]|0)+1;if(!H)fv(e,t,y,c[(R&p)>>2]|0,B,A,g,-1,m);d:do if(!I){z=c[(J&p)>>2]|0;z=c[(((z|0)==0?e:z)&p)+528>>2]|0;do if(z){z=c[(z&p)>>2]|0;if((z|0)==(c[(B&p)+28>>2]|0)?(a[(B&n)+25>>0]|0)==7:0)break d;if((z|0)!=(c[(B&p)+32>>2]|0))break;if((a[(B&n)+26>>0]|0)==7)break d}while(0);fv(e,t,y,c[(R&p)>>2]|0,B,A,h,1,m)}while(0);mg(V,c[(P&p)>>2]|0);break}if(D)break a;if(a[(E&n)>>0]|0)break a;if(A){A=Oq(e)|0;z=B+20|0;q=c[(z&p)>>2]|0;m=(c[(A&p)+32>>2]|0)+1+q|0;if((q|0)>0){q=0;do{wh(A,76,F+(c[(B+(q<<3)&p)+36>>2]|0)|0,m,0)|0;q=q+1|0}while((q|0)<(c[(z&p)>>2]|0))}wh(A,134,d[(B&n)+24>>0]|0,-1,0)|0}}while(0);B=c[(B&p)+4>>2]|0}while((B|0)!=0);q=f;m=c[(S&p)>>2]|0}m=bn(m+56|0,c[(q&p)>>2]|0,T)|0;if((m|0)!=0?(s=c[(m&p)+8>>2]|0,W=V+65|0,(s|0)!=0):0){u=(k|0)!=0;v=e+408|0;w=e+20|0;x=e+68|0;y=(h|0)==0;z=(g|0)==0;A=u&1;t=U<<24>>24==0;do{c[(_&p)>>2]=0;c[(Z&p)>>2]=0;if(!(u?(bv(f,s,k,l)|0)==0:0))$=57;do if(($|0)==57){$=0;q=s+24|0;if((((a[(q&n)>>0]|0)==0?(c[(Y&p)>>2]&16777216|0)==0:0)?(c[(v&p)>>2]|0)==0:0)?(a[(w&n)>>0]|0)==0:0)break;if(Mt(e,f,s,_,Z)|0){if(t)break a;if(!(a[(W&n)>>0]|0))break;else break a}m=pr(V,0,0,0)|0;if(m){K=c[(s&p)>>2]|0;c[(m&p)+24>>2]=K;r=m+16|0;c[(r&p)>>2]=c[(K&p)>>2];K=K+40|0;b[(K&o)>>1]=(b[(K&o)>>1]|0)+1<<16>>16;K=c[(x&p)>>2]|0;c[(x&p)>>2]=K+1;c[(m&p)+48>>2]=K;if(!y)gv(e,m,f,c[(_&p)>>2]|0,s,c[(Z&p)>>2]|0,h,-1);if((!z?(X=a[(s+A&n)+25>>0]|0,gv(e,m,f,c[(_&p)>>2]|0,s,c[(Z&p)>>2]|0,g,1),(a[(q&n)>>0]|0)==0):0)?!(X<<24>>24==7|X<<24>>24==9):0){K=c[(v&p)>>2]|0;a[(((K|0)==0?e:K)&n)+21>>0]=1}c[(r&p)>>2]=0;Do(V,m)}mg(V,c[(Z&p)>>2]|0)}while(0);s=c[(s&p)+12>>2]|0}while((s|0)!=0)}}while(0);i=aa;return}function At(b,d,f,g,h){b=b|0;d=d|0;f=f|0;g=g|0;h=h|0;var k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0,v=0;v=i;i=i+16|0;if((i|0)>=(j|0))fa();u=v;t=c[(b&p)+8>>2]|0;l=c[(d&p)+8>>2]|0;a:do if(a[(d&n)+44>>0]&32){if(l){k=l;while(1){if((a[(k&n)+51>>0]&3)==2){s=5;break a}k=c[(k&p)+20>>2]|0;if(!k){k=0;s=5;break}}}}else{k=0;s=5}while(0);if((s|0)==5?(l|0)!=0:0){q=(h|0)==0;r=0;d=0;m=-1;while(1){if(q){if((l|0)!=(k|0))s=10}else if(!((l|0)==(k|0)?1:(c[(h+(r<<2)&p)>>2]|0)==0))s=10;if((s|0)==10){s=0;m=Pt(b,l,f,0,1,u,d,m)|0;wh(t,111,r+g|0,m,e[(((a[(l&n)+51>>0]&8)==0?l+48|0:l+46|0)&o)>>1]|0)|0;Qt(b,c[(u&p)>>2]|0);d=l}l=c[(l&p)+20>>2]|0;if(!l)break;else r=r+1|0}}i=v;return}function Bt(d,e,f,g,h,i,j,k,l){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;var m=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0;z=Oq(d)|0;t=c[(e&p)+8>>2]|0;if(!t){q=e+44|0;s=0}else{u=(l|0)!=0;q=e+44|0;v=u?17:1;w=z+4|0;x=z+32|0;s=0;y=0;m=t;while(1){r=i+(y<<2)|0;t=c[(r&p)>>2]|0;do if(t){if(c[(m&p)+36>>2]|0){wh(z,76,t,(c[(x&p)>>2]|0)+2|0,0)|0;t=c[(r&p)>>2]|0}wh(z,110,y+g|0,t,0)|0;if((a[(m&n)+51>>0]&3)==2){t=(a[(q&n)>>0]&32)!=0;if(t|u)s=t?v:16;else{s=1;break}}else if(u)s=16;else{s=1;break}t=c[(w&p)>>2]|0;if(!t)s=1;else{a[(t+(((c[(x&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=s;s=1}}while(0);m=c[(m&p)+20>>2]|0;if(!m)break;else y=y+1|0}}if(!(a[(q&n)>>0]&32)){r=h+1|0;q=d+19|0;m=a[(q&n)>>0]|0;if(!(m<<24>>24)){i=d+72|0;t=(c[(i&p)>>2]|0)+1|0;c[(i&p)>>2]=t}else{t=m+-1<<24>>24;a[(q&n)>>0]=t;t=c[(d+((t&255)<<2)&p)+24>>2]|0}q=e+38|0;wh(z,49,r,b[(q&o)>>1]|0,t)|0;if(!(s<<24>>24))wt(z,e,0);dt(d,r,b[(q&o)>>1]|0);r=d+18|0;if(!(a[(r&n)>>0]|0))m=(j|0)!=0?5:3;else m=0;if(k)m=(m&255|8)&255;if(!l)q=m;else q=(m&255|16)&255;wh(z,75,f,t,h)|0;if(!(a[(r&n)>>0]|0))xh(z,-1,c[(e&p)>>2]|0,0);m=c[(z&p)+4>>2]|0;if(m)a[(m+(((c[(z&p)+32>>2]|0)+-1|0)*20|0)&n)+3>>0]=q}return}function Ct(d,e,f,g,h,k){d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;var l=0,m=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;$=i;i=i+64|0;if((i|0)>=(j|0))fa();U=$+52|0;T=$+48|0;Y=$+8|0;X=$;W=$+40|0;Z=$+32|0;V=$+24|0;if(((c[((c[(d&p)>>2]|0)&p)+24>>2]&524288|0)!=0?(S=e+68|0,l=bn((c[(S&p)>>2]|0)+56|0,c[(e&p)>>2]|0,$+16|0)|0,(l|0)!=0):0)?(m=c[(l&p)+8>>2]|0,(m|0)!=0):0){R=(h|0)==0;K=(f|0)!=0;L=K&1;M=Z+4|0;N=W+4|0;O=e+4|0;P=V+4|0;Q=K?110:109;do{if(!(!R?(bv(e,m,h,k)|0)==0:0)){H=c[(d&p)>>2]|0;G=a[(m+L&n)+25>>0]|0;I=G&255;J=m+(L<<2)+28|0;f=c[(J&p)>>2]|0;do if(!(G<<24>>24==0|(f|0)!=0)){c[(U&p)>>2]=0;c[(T&p)>>2]=0;if(!(Mt(d,e,m,U,T)|0)){u=m+20|0;if((c[(u&p)>>2]|0)>0){A=34352;z=c[(A&p)>>2]|0;A=c[(A&p)+4>>2]|0;C=34360;B=c[(C&p)>>2]|0;C=c[(C&p)+4>>2]|0;D=m+36|0;F=G<<24>>24!=6&(G<<24>>24!=9|K);E=0;r=0;l=0;q=0;do{f=Y;c[(f&p)>>2]=z;c[(f&p)+4>>2]=A;f=X;c[(f&p)>>2]=B;c[(f&p)+4>>2]=C;f=c[(T&p)>>2]|0;if(!f)f=D;else f=f+(E<<2)|0;t=c[(f&p)>>2]|0;v=c[(U&p)>>2]|0;if(!v)x=34368;else x=c[((c[(O&p)>>2]|0)+((b[((c[(v&p)+4>>2]|0)+(E<<1)&o)>>1]|0)*24|0)&p)>>2]|0;c[(Z&p)>>2]=x;f=c[((c[((c[(m&p)>>2]|0)&p)+4>>2]|0)+(t*24|0)&p)>>2]|0;c[(W&p)>>2]=f;if(!x)w=0;else{y=x;while(1)if(!(a[(y&n)>>0]|0))break;else y=y+1|0;w=y-x&1073741823}c[(M&p)>>2]=w;if(!f)s=0;else{x=f;while(1)if(!(a[(x&n)>>0]|0))break;else x=x+1|0;s=x-f&1073741823}c[(N&p)>>2]=s;y=Zq(d,27,0,0,Y)|0;y=Zq(d,122,y,Zq(d,27,0,0,Z)|0,0)|0;q=ss(H,q,Zq(d,79,y,Zq(d,27,0,0,W)|0,0)|0)|0;if(K){x=Zq(d,27,0,0,Y)|0;x=Zq(d,122,x,Zq(d,27,0,0,Z)|0,0)|0;y=Zq(d,27,0,0,X)|0;l=ss(H,l,Zq(d,73,x,Zq(d,122,y,Zq(d,27,0,0,Z)|0,0)|0,0)|0)|0}if(F){do if(G<<24>>24==8){f=c[((c[((c[(m&p)>>2]|0)&p)+4>>2]|0)+(t*24|0)&p)+4>>2]|0;if(!f){f=Zq(d,101,0,0,0)|0;break}else{f=Mr(H,f,0,0)|0;break}}else if(G<<24>>24==9){f=Zq(d,27,0,0,X)|0;f=Zq(d,122,f,Zq(d,27,0,0,Z)|0,0)|0}else f=Zq(d,101,0,0,0)|0;while(0);r=lr(d,r,f)|0;mr(d,r,W,0)}E=E+1|0}while((E|0)<(c[(u&p)>>2]|0));f=m}else{f=m;r=0;l=0;q=0}mg(H,c[(T&p)>>2]|0);y=c[(c[(f&p)>>2]&p)>>2]|0;if(!y)s=0;else{f=y;while(1)if(!(a[(f&n)>>0]|0))break;else f=f+1|0;s=f-y&1073741823}if(G<<24>>24==6){c[(V&p)>>2]=y;c[(P&p)>>2]=s;f=tt(H,57,34376)|0;if(f)a[(f&n)+1>>0]=2;x=lr(d,0,f)|0;x=kr(d,x,pr(H,0,V,0)|0,q,0,0,0,0,0,0)|0;w=0}else{x=0;w=q}t=H+250|0;u=a[(t&n)>>0]|0;a[(t&n)>>0]=0;f=s+77|0;v=mh(H,f,0)|0;if(v){fw(v|0,0,f|0)|0;q=v+36|0;c[(v&p)+28>>2]=q;G=v+76|0;c[(v&p)+48>>2]=G;c[(v&p)+52>>2]=s;kw(G|0,y|0,s|0)|0;c[(v&p)+56>>2]=Mr(H,w,1,0)|0;c[(v&p)+60>>2]=Pr(H,r,1)|0;c[(v&p)+44>>2]=gr(H,x,1)|0;if(!l){f=v;l=0}else{l=Zq(d,19,l,0,0)|0;c[(v&p)+12>>2]=Mr(H,l,1,0)|0;f=v}}else{f=0;q=0}a[(t&n)>>0]=u;Gk(H,w);Gk(H,l);Nk(H,r);Mk(H,x,1);if((a[(H&n)+65>>0]|0)==1){Kk(H,f);f=0;break}if((I|0)==6)a[(q&n)>>0]=119;else if((I|0)==9?!K:0)a[(q&n)>>0]=109;else _=49;if((_|0)==49){_=0;a[(q&n)>>0]=110}c[(q&p)+4>>2]=f;I=c[(S&p)>>2]|0;c[(v&p)+20>>2]=I;c[(v&p)+24>>2]=I;c[(J&p)>>2]=f;a[(v&n)+8>>0]=Q}else f=0}while(0);if(f)dv(d,f,e,g,2,0)}m=c[(m&p)+12>>2]|0}while((m|0)!=0)}i=$;return}function Dt(d,e){d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,q=0,r=0,s=0;f=b[(d&o)+46>>1]|0;a:do if(f<<16>>16==(b[(e&o)+46>>1]|0)?(a[(d&n)+50>>0]|0)==(a[(e&n)+50>>0]|0):0){if(f<<16>>16){g=c[(e&p)+4>>2]|0;h=c[(d&p)+4>>2]|0;i=e+28|0;j=d+28|0;k=e+32|0;l=d+32|0;s=0;do{if((b[(g+(s<<1)&o)>>1]|0)!=(b[(h+(s<<1)&o)>>1]|0)){f=0;break a}if((a[((c[(i&p)>>2]|0)+s&n)>>0]|0)!=(a[((c[(j&p)>>2]|0)+s&n)>>0]|0)){f=0;break a}m=c[((c[(k&p)>>2]|0)+(s<<2)&p)>>2]|0;q=c[((c[(l&p)>>2]|0)+(s<<2)&p)>>2]|0;r=(q|0)==0;if(!m){if(!r){f=0;break a}}else{if(r){f=0;break a}if(dd(m,q)|0){f=0;break a}}s=s+1|0}while((s|0)<(f&65535|0))}f=(Cu(c[(e&p)+36>>2]|0,c[(d&p)+36>>2]|0,-1)|0)==0&1}else f=0;while(0);return f|0}function Et(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0;do if(!(a[(e&n)+44>>0]&8))f=0;else{h=c[(b&p)+408>>2]|0;h=(h|0)==0?b:h;g=h+404|0;f=c[(g&p)>>2]|0;a:do if(!f)i=5;else while(1){if((c[(f&p)+4>>2]|0)==(e|0))break a;f=c[(f&p)>>2]|0;if(!f){i=5;break}}while(0);if((i|0)==5){f=mh(c[(b&p)>>2]|0,16,0)|0;if(!f){f=0;break}c[(f&p)>>2]=c[(g&p)>>2];c[(g&p)>>2]=f;c[(f&p)+4>>2]=e;c[(f&p)+8>>2]=d;b=h+72|0;g=c[(b&p)>>2]|0;c[(f&p)+12>>2]=g+2;c[(b&p)>>2]=g+3}f=c[(f&p)+12>>2]|0}while(0);return f|0}function Ft(a,d,e){a=a|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0;l=i;i=i+16|0;if((i|0)>=(j|0))fa();k=l;g=b[(e&o)+36>>1]|0;h=c[(a&p)>>2]|0;f=c[(e&p)>>2]|0;if(g<<16>>16>-1){g=c[((c[(e&p)+4>>2]|0)+((g<<16>>16)*24|0)&p)>>2]|0;c[(k&p)>>2]=f;c[(k&p)+4>>2]=g;g=1555;f=uh(h,27824,k)|0}else{c[(k&p)>>2]=f;g=2579;f=uh(h,34408,k)|0}zs(a,g,d,f,-1,2);i=l;return}function Gt(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0;g=b+316|0;h=c[(g&p)>>2]|0;d=lr(b,h,Mr(c[(b&p)>>2]|0,d,0,0)|0)|0;if(d){b=(c[(d&p)>>2]|0)+-1|0;h=c[(d&p)+4>>2]|0;c[(h+(b*20|0)&p)+16>>2]=e;b=h+(b*20|0)+13|0;a[(b&n)>>0]=a[(b&n)>>0]&-5|f<<2&4}c[(g&p)>>2]=d;return}function Ht(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;g=c[(e&p)>>2]|0;if(!(g+-1&g)){i=ca((g|0)==0?1:g<<1,d)|0;a=ro(a,b,i,((i|0)<0)<<31>>31)|0;if(!a){c[(f&p)>>2]=-1;a=b}else h=4}else{a=b;h=4}if((h|0)==4){fw(a+(ca(g,d)|0)|0,0,d|0)|0;c[(f&p)>>2]=g;c[(e&p)>>2]=(c[(e&p)>>2]|0)+1}return a|0}function It(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,k=0;k=i;i=i+16|0;if((i|0)>=(j|0))fa();h=k;c[(h&p)>>2]=0;b=c[(a&p)+12>>2]|0;if((b|0)!=0?(d=c[(b&p)+24>>2]|0,(d|0)>0):0){c[(h&p)>>2]=d;b=d}else b=0;d=c[(a&p)+16>>2]|0;if((d|0)!=0?(e=c[(d&p)+24>>2]|0,(e|0)>(b|0)):0)c[(h&p)>>2]=e;f=a+4|0;b=a+20|0;if(!(c[(f&p)>>2]&2048)){d=c[(b&p)>>2]|0;if(d){tu(d,h);b=c[(b&p)>>2]|0;if((b|0)!=0?(g=c[(b&p)>>2]|0,(g|0)>0):0){e=c[(b&p)+4>>2]|0;d=0;b=0;do{b=c[((c[(e+(d*20|0)&p)>>2]|0)&p)+4>>2]|b;d=d+1|0}while((d|0)!=(g|0));b=b&2097408}else b=0;c[(f&p)>>2]=c[(f&p)>>2]|b}}else Es(c[(b&p)>>2]|0,h);c[(a&p)+24>>2]=(c[(h&p)>>2]|0)+1;i=k;return}function Jt(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0;g=Oq(b)|0;i=b+72|0;h=(c[(i&p)>>2]|0)+1|0;c[(i&p)>>2]=h;b=mh(c[(b&p)>>2]|0,8,0)|0;if(b){i=b;c[(i&p)>>2]=e;c[(i&p)+4>>2]=f}xh(g,wh(g,26,0,h,0)|0,b,-13);iq(g,1);if(!(a[((c[(g&p)>>2]|0)&n)+65>>0]|0))Xg(c[(g&p)+16>>2]|0,d,-1,1,0)|0;wh(g,35,h,1,0)|0;return}function Kt(b){b=b|0;var d=0,e=0,f=0,g=0,h=0;h=i;i=i+16|0;if((i|0)>=(j|0))fa();g=h;d=c[(b&p)>>2]|0;e=d+16|0;f=c[((c[(e&p)>>2]|0)&p)+20>>2]|0;do if(!f)d=0;else{if((a[(d&n)+63>>0]|0)!=0?(a[(f&n)+8>>0]|0)==0:0){Ml(f);c[((c[(e&p)>>2]|0)&p)+20>>2]=0;Eg(d);d=0;break}th(b,32128,g);d=1}while(0);i=h;return d|0}function Lt(b){b=b|0;var e=0,f=0,g=0;if((a[(b&n)+63>>0]|0)!=0?(e=c[(b&p)+20>>2]|0,(e|0)>0):0){g=b+24|0;f=c[(b&p)+16>>2]|0;while(1){e=e+-1|0;b=c[(f&p)+4>>2]|0;if(b)to(b,c[(g&p)>>2]&28|d[(f&n)+8>>0]);if((e|0)<=0)break;else f=f+16|0}}return}function Mt(d,f,g,h,k){d=d|0;f=f|0;g=g|0;h=h|0;k=k|0;var l=0,m=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;C=i;i=i+16|0;if((i|0)>=(j|0))fa();z=C;A=c[(g&p)+20>>2]|0;m=c[(g&p)+40>>2]|0;if((A|0)==1){v=b[(f&o)+36>>1]|0;l=v<<16>>16;if(v<<16>>16>-1)if((m|0)!=0?(dd(c[((c[(f&p)+4>>2]|0)+(l*24|0)&p)>>2]|0,m)|0)!=0:0){y=0;B=8}else k=0;else{y=0;B=8}}else if(k){l=mh(c[(d&p)>>2]|0,A<<2,0)|0;if(!l)k=1;else{c[(k&p)>>2]=l;y=l;B=8}}else{y=0;B=8}a:do if((B|0)==8){k=c[(f&p)+8>>2]|0;b:do if(k){v=(m|0)==0;x=(A|0)>0;u=f+4|0;w=(y|0)==0;c:while(1){do if((e[(k&o)+46>>1]|0)==(A|0)?(a[(k&n)+50>>0]|0)!=0:0){if(v)if((a[(k&n)+51>>0]&3)==2){B=16;break c}else break;d:do if(x){q=c[(k&p)+4>>2]|0;r=c[(u&p)>>2]|0;s=c[(k&p)+32>>2]|0;t=0;while(1){f=b[(q+(t<<1)&o)>>1]|0;m=c[(r+(f*24|0)&p)+16>>2]|0;if(dd(c[(s+(t<<2)&p)>>2]|0,(m|0)!=0?m:11152)|0){m=t;break d}m=c[(r+(f*24|0)&p)>>2]|0;l=0;while(1){f=l+1|0;if(!(dd(c[(g+(l<<3)&p)+40>>2]|0,m)|0)){f=l;B=23;break}if((f|0)<(A|0))l=f;else break}if((B|0)==23){B=0;if(!w)c[(y+(t<<2)&p)>>2]=c[(g+(f<<3)&p)+36>>2]}m=t+1|0;if((f|0)==(A|0)){m=t;break d}if((m|0)<(A|0))t=m;else break}}else m=0;while(0);if((m|0)==(A|0))break c}while(0);k=c[(k&p)+20>>2]|0;if(!k)break b}if((B|0)==16)if(!(w|x^1)){l=0;do{c[(y+(l<<2)&p)>>2]=c[(g+(l<<3)&p)+36>>2];l=l+1|0}while((l|0)!=(A|0))}c[(h&p)>>2]=k;k=0;break a}while(0);if(!(a[(d&n)+438>>0]|0)){v=c[(g&p)+8>>2]|0;c[(z&p)>>2]=c[(c[(g&p)>>2]&p)>>2];c[(z&p)+4>>2]=v;th(d,32008,z)}mg(c[(d&p)>>2]|0,y);k=1}while(0);i=C;return k|0}function Nt(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0;k=i;i=i+16|0;if((i|0)>=(j|0))fa();h=k;if(!(c[(d&p)+12>>2]|0)){c[(h&p)>>2]=0;l=c[(b&p)>>2]|0;g=d+4|0;d=c[(g&p)>>2]|0;Zr(l,c[(d+(e*24|0)&p)+4>>2]|0,a[(l&n)+62>>0]|0,a[(d+(e*24|0)&n)+21>>0]|0,h)|0;d=c[(h&p)>>2]|0;if(d)xh(b,-1,d,-8);if((a[((c[(g&p)>>2]|0)+(e*24|0)&n)+21>>0]|0)==69)wh(b,39,f,0,0)|0}i=k;return}function Ot(c,d,f){c=c|0;d=d|0;f=f|0;var g=0;if(!d)g=0;else{g=d;while(1)if(!(a[(g&n)>>0]|0))break;else g=g+1|0;g=g-d&1073741823}g=Sh(c,d,g,2,1,0)|0;if(g){g=g+2|0;b[(g&o)>>1]=e[(g&o)>>1]|f&255}return}function Pt(d,e,f,g,h,i,j,k){d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;k=k|0;var l=0,m=0,q=0,r=0,s=0,t=0,u=0,v=0;t=c[(d&p)+8>>2]|0;u=c[(e&p)+12>>2]|0;do if(i){l=e+36|0;if(!(c[(l&p)>>2]|0)){c[(i&p)>>2]=0;break}else{c[(i&p)>>2]=xs(t)|0;c[(d&p)+96>>2]=f;s=d+100|0;c[(s&p)>>2]=(c[(s&p)>>2]|0)+1;gt(d,c[(l&p)>>2]|0,c[(i&p)>>2]|0,16);break}}while(0);if((h|0)!=0?(a[(e&n)+51>>0]&8)!=0:0)l=e+46|0;else l=e+48|0;l=b[(l&o)>>1]|0;q=l&65535;r=d+60|0;h=c[(r&p)>>2]|0;s=d+56|0;i=c[(s&p)>>2]|0;if((i|0)<(q|0)){h=d+72|0;m=c[(h&p)>>2]|0;c[(h&p)>>2]=m+q;m=m+1|0}else{c[(r&p)>>2]=h+q;c[(s&p)>>2]=i-q;m=h}do if(!j)h=0;else{if((m|0)==(k|0)?(c[(j&p)+36>>2]|0)==0:0){h=j;break}h=0}while(0);if(l<<16>>16){j=(h|0)==0;k=e+4|0;i=h+4|0;l=0;do{if(!j){h=b[((c[(k&p)>>2]|0)+(l<<1)&o)>>1]|0;if((b[((c[(i&p)>>2]|0)+(l<<1)&o)>>1]|0)!=h<<16>>16)v=21}else{h=b[((c[(k&p)>>2]|0)+(l<<1)&o)>>1]|0;v=21}if((v|0)==21){v=0;nt(t,u,f,h<<16>>16,l+m|0);Pq(t,39)|0}l=l+1|0}while((l|0)<(q|0))}if(g)wh(t,49,m,q,g)|0;dt(d,m,q);if((c[(s&p)>>2]|0)<(q|0)){c[(s&p)>>2]=q;c[(r&p)>>2]=m}return m|0}function Qt(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;if(b){d=c[(a&p)+8>>2]|0;e=c[(d&p)+24>>2]|0;f=~b;if((b|0)<0?(g=c[(e&p)+112>>2]|0,(g|0)!=0):0)c[(g+(f<<2)&p)>>2]=c[(d&p)+32>>2];c[(e&p)+88>>2]=(c[(d&p)+32>>2]|0)+-1;bu(a)}return}function Rt(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0;h=i;i=i+16|0;if((i|0)>=(j|0))fa();g=h;e=c[(d&p)+16>>2]|0;a:do if((e|0)!=0?(f=c[(d&p)+64>>2]|0,(f|0)!=0):0){e=c[(e&p)+8>>2]|0;b:do if(e){while(1){if(!(dd(c[(e&p)>>2]|0,f)|0))break;e=c[(e&p)+20>>2]|0;if(!e)break b}c[(d&p)+68>>2]=e;e=0;break a}while(0);c[(g&p)>>2]=f;c[(g&p)+4>>2]=0;th(b,28104,g);a[(b&n)+17>>0]=1;e=1}else e=0;while(0);i=h;return e|0}function St(a,b){a=a|0;b=b|0;var d=0,e=0;if(a){d=Tt(a,b)|0;if(b&1){e=St(c[(a&p)+12>>2]|0,b)|0;return e+d+(St(c[(a&p)+16>>2]|0,b)|0)|0}}else d=0;return d|0} function Tt(b,d){b=b|0;d=d|0;var e=0;if(d&1)if(!(c[(b&p)+12>>2]|0))d=(c[(b&p)+20>>2]|0)==0?12:28;else d=28;else d=48;if((c[(b&p)+4>>2]&1024|0)==0?(e=c[(b&p)+8>>2]|0,(e|0)!=0):0){b=e;while(1)if(!(a[(b&n)>>0]|0))break;else b=b+1|0;d=(d|1)+(b-e&1073741823)|0}return d+7&-8|0}function Ut(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;e=c[(a&p)>>2]|0;h=e+20|0;d=c[(h&p)>>2]|0;if((d|0)>0){g=0;f=c[(e&p)+16>>2]|0;while(1){e=c[((c[(f&p)+12>>2]|0)&p)+16>>2]|0;if(e){d=e;do{Vt(a,c[(d&p)+8>>2]|0,b);d=c[(d&p)>>2]|0}while((d|0)!=0);d=c[(h&p)>>2]|0}g=g+1|0;if((g|0)>=(d|0))break;else f=f+16|0}}return}function Vt(a,d,e){a=a|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0;f=c[(d&p)+8>>2]|0;if(f){m=(e|0)==0;k=d+68|0;l=a+408|0;do{a:do if(!m){i=f+32|0;d=b[(f&o)+48>>1]|0;if(d<<16>>16){h=c[(f&p)+4>>2]|0;d=d&65535;g=0;do{if((b[(h+(g<<1)&o)>>1]|0)>-1?(dd(c[((c[(i&p)>>2]|0)+(g<<2)&p)>>2]|0,e)|0)==0:0){n=9;break a}g=g+1|0}while((g|0)<(d|0))}}else n=9;while(0);if((n|0)==9){n=0;d=c[(a&p)>>2]|0;g=c[(k&p)>>2]|0;b:do if(g){j=c[(d&p)+20>>2]|0;if((j|0)>0){h=c[(d&p)+16>>2]|0;i=0;while(1){d=i+1|0;if((c[(h+(i<<4)&p)+12>>2]|0)==(g|0)){d=i;break b}if((d|0)<(j|0))i=d;else break}}else d=0}else d=-1e6;while(0);j=c[(l&p)>>2]|0;Ar(a,d);j=((j|0)==0?a:j)+328|0;c[(j&p)>>2]=c[(j&p)>>2]|1<>2]|0}while((f|0)!=0)}return}function Wt(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;d=c[((c[((c[(a&p)>>2]|0)&p)+16>>2]|0)+(b<<4)&p)+12>>2]|0;g=c[(a&p)+408>>2]|0;Ar(a,b);g=((g|0)==0?a:g)+328|0;c[(g&p)>>2]=c[(g&p)>>2]|1<>2]|0;c[(g&p)>>2]=e+3;hv(a,b,e,0,0);f=(c[(a&p)+72>>2]|0)+1|0;g=c[(g&p)>>2]|0;d=c[(d&p)+16>>2]|0;if(d)do{iv(a,c[(d&p)+8>>2]|0,0,e,f,g);d=c[(d&p)>>2]|0}while((d|0)!=0);jv(a,b);return}function Xt(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,i=0;e=c[(a&p)>>2]|0;h=c[(b&p)+68>>2]|0;a:do if(h){i=c[(e&p)+20>>2]|0;if((i|0)>0){f=c[(e&p)+16>>2]|0;e=0;while(1){g=e+1|0;if((c[(f+(e<<4)&p)+12>>2]|0)==(h|0)){g=e;break a}if((g|0)<(i|0))e=g;else break}}else g=0}else g=-1e6;while(0);e=c[(a&p)+408>>2]|0;Ar(a,g);e=((e|0)==0?a:e)+328|0;c[(e&p)>>2]=c[(e&p)>>2]|1<>2]|0;c[(e&p)>>2]=f+3;if(!d)hv(a,g,f,c[(b&p)>>2]|0,28544);else hv(a,g,f,c[(d&p)>>2]|0,28536);iv(a,b,d,f,(c[(a&p)+72>>2]|0)+1|0,c[(e&p)>>2]|0);jv(a,g);return}function Yt(b,c,d){b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0;f=((d|0)/2|0)+1|0;f=mh(b,f,((f|0)<0)<<31>>31)|0;b=d+-1|0;if(f){if((b|0)>0){e=0;do{g=a[(c+e&n)>>0]|0;h=a[(c+(e|1)&n)>>0]|0;a[(f+((e|0)/2|0)&n)>>0]=(0-(h>>>6&1)&9)+h&15|(0-(g>>>6&1)&9)+g<<4;e=e+2|0}while((e|0)<(b|0));b=(d&-2|0)/2|0}else b=0;a[(f+b&n)>>0]=0}return f|0}function Zt(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0;m=i;i=i+16|0;if((i|0)>=(j|0))fa();h=m+8|0;l=m;k=c[(b&p)+8>>2]|0;g=d+8|0;do if(!(c[(d&p)+4>>2]&1024)){g=c[(g&p)>>2]|0;d=ji(g,l)|0;if((d|0)!=0?!((d|0)==2&(e|0)!=0):0)if(!(Fc(g,29144,2)|0)){c[(h&p)>>2]=g;th(b,29152,h);break}else{_t(k,g,e,f);break}if(e){if((d|0)==2){d=0;g=-2147483648}else{d=l;d=dw(0,0,c[(d&p)>>2]|0,c[(d&p)+4>>2]|0)|0;g=G}e=l;c[(e&p)>>2]=d;c[(e&p)+4>>2]=g}d=mh(c[(k&p)>>2]|0,8,0)|0;if(d){e=l;h=c[(e&p)>>2]|0;e=c[(e&p)+4>>2]|0;g=d;b=g;a[(b&n)>>0]=h;a[(b&n)+1>>0]=h>>8;a[(b&n)+2>>0]=h>>16;a[(b&n)+3>>0]=h>>24;g=g+4|0;a[(g&n)>>0]=e;a[(g&n)+1>>0]=e>>8;a[(g&n)+2>>0]=e>>16;a[(g&n)+3>>0]=e>>24}xh(k,wh(k,26,0,f,0)|0,d,-13)}else{d=c[(g&p)>>2]|0;wh(k,25,(e|0)==0?d:0-d|0,f,0)|0}while(0);i=m;return}function _t(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,k=0,l=0,m=0;l=i;i=i+16|0;if((i|0)>=(j|0))fa();k=l;if(d){g=d;while(1)if(!(a[(g&n)>>0]|0))break;else g=g+1|0;Tl(d,k,g-d&1073741823,1)|0;if(e)h[(k&q)>>3]=-+h[(k&q)>>3];g=mh(c[(b&p)>>2]|0,8,0)|0;if(g){d=k;m=c[(d&p)>>2]|0;d=c[(d&p)+4>>2]|0;e=g;k=e;a[(k&n)>>0]=m;a[(k&n)+1>>0]=m>>8;a[(k&n)+2>>0]=m>>16;a[(k&n)+3>>0]=m>>24;e=e+4|0;a[(e&n)>>0]=d;a[(e&n)+1>>0]=d>>8;a[(e&n)+2>>0]=d>>16;a[(e&n)+3>>0]=d>>24}xh(b,wh(b,133,0,f,0)|0,g,-12)}i=l;return}function $t(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0;m=i;i=i+32|0;if((i|0)>=(j|0))fa();g=m;a:do if(!d)k=0;else while(1){f=c[(d&p)+4>>2]|0;if(!(f&4096)){k=d;break a}if(!(f&262144))d=d+12|0;else d=c[((c[(d&p)+20>>2]|0)&p)+4>>2]|0;d=c[(d&p)>>2]|0;if(!d){k=0;break}}while(0);b:do if(((a[(b&n)+23>>0]|0)!=0?(a[(k&n)>>0]|0)!=-97:0)?(c[(g&p)>>2]=0,c[(g&p)+4>>2]=0,c[(g&p)+8>>2]=0,c[(g&p)+12>>2]=0,c[(g&p)+16>>2]=0,c[(g&p)+20>>2]=0,f=g+20|0,a[(f&n)>>0]=2,c[(g&p)>>2]=78,c[(g&p)+4>>2]=79,c[(g&p)+24>>2]=0,rs(g,k)|0,(a[(f&n)>>0]|0)!=0):0){f=c[(b&p)+316>>2]|0;c[(e&p)>>2]=0;c:do if((f|0)!=0?(h=c[(f&p)>>2]|0,(h|0)>0):0){d=h;f=c[(f&p)+4>>2]|0;while(1){if((a[(f&n)+13>>0]&4)!=0?(Cu(c[(f&p)>>2]|0,k,-1)|0)==0:0)break;d=d+-1|0;if((d|0)<=0)break c;else f=f+20|0}f=c[(f&p)+16>>2]|0;break b}while(0);d=b+72|0;f=(c[(d&p)>>2]|0)+1|0;c[(d&p)>>2]=f;Gt(b,k,f,1)}else l=18;while(0);do if((l|0)==18){d=b+19|0;f=a[(d&n)>>0]|0;if(!(f<<24>>24)){d=b+72|0;f=(c[(d&p)>>2]|0)+1|0;c[(d&p)>>2]=f}else{f=f+-1<<24>>24;a[(d&n)>>0]=f;f=c[(b+((f&255)<<2)&p)+24>>2]|0}d=is(b,k,f)|0;if((d|0)==(f|0)){c[(e&p)>>2]=f;break}else{_r(b,f);c[(e&p)>>2]=0;f=d;break}}while(0);i=m;return f|0}function au(b,d,e,f,g,h,i,j){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;var k=0,l=0;l=Ou(b,d,e)|0;k=Bu(d,kv(e)|0)|0;e=b+8|0;d=c[(e&p)>>2]|0;xh(d,wh(d,f,h,i,g)|0,l,-4);e=c[(e&p)>>2]|0;d=c[(e&p)+4>>2]|0;if(d)a[(d+(((c[(e&p)+32>>2]|0)+-1|0)*20|0)&n)+3>>0]=k&255|j;return}function bu(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;d=b+100|0;c[(d&p)>>2]=(c[(d&p)>>2]|0)+-1;g=b+19|0;j=0;k=b+116|0;while(1){h=k+12|0;i=c[(h&p)>>2]|0;if((i|0)!=0?(c[(k&p)+8>>2]|0)>(c[(d&p)>>2]|0):0){e=k+6|0;if(a[(e&n)>>0]|0){f=a[(g&n)>>0]|0;if((f&255)<8){a[(g&n)>>0]=f+1<<24>>24;c[(b+((f&255)<<2)&p)+24>>2]=i}a[(e&n)>>0]=0}c[(h&p)>>2]=0}j=j+1|0;if((j|0)==10)break;else k=k+20|0}return}function cu(d,e){d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0;j=c[(d&p)>>2]|0;a:do if(e){b:while(1){g=c[(e&p)+4>>2]|0;if(g&512){e=0;k=21;break a}switch(a[(e&n)>>0]|0){case 38:case -98:{e=c[(e&p)+12>>2]|0;break}case -97:{if((a[(e&n)+38>>0]|0)==95){k=7;break b}else k=8;break}case 95:{k=7;break b}case 62:case -102:case -100:{k=8;break}default:k=11}if((k|0)==8){f=c[(e&p)+44>>2]|0;if(!f)k=11;else{k=9;break}}c:do if((k|0)==11){k=0;if(!(g&256)){e=0;k=21;break a}f=c[(e&p)+12>>2]|0;if((f|0)!=0?(c[(f&p)+4>>2]&256|0)!=0:0){e=f;continue b}h=c[(e&p)+16>>2]|0;f=c[(e&p)+20>>2]|0;if((f|0)!=0&(g&2048|0)==0?(i=c[(f&p)>>2]|0,(i|0)>0):0){f=c[(f&p)+4>>2]|0;g=0;while(1){e=c[(f+(g*20|0)&p)>>2]|0;g=g+1|0;if(c[(e&p)+4>>2]&256)break c;if((g|0)>=(i|0)){e=h;break}}}else e=h}while(0);if(!e){e=0;k=21;break a}}if((k|0)==7)e=ws(d,a[(j&n)+62>>0]|0,0,c[(e&p)+8>>2]|0)|0;else if((k|0)==9){e=b[(e&o)+32>>1]|0;if(e<<16>>16<=-1){e=0;k=21;break}e=Yn(j,a[(j&n)+62>>0]|0,c[((c[(f&p)+4>>2]|0)+((e<<16>>16)*24|0)&p)+16>>2]|0,0)|0}if(e)if(!(ws(d,a[((c[(d&p)>>2]|0)&n)+62>>0]|0,e,c[(e&p)>>2]|0)|0))e=0;else k=21;else{e=0;k=21}}else{e=0;k=21}while(0);return e|0}function du(d,f,g,h){d=d|0;f=f|0;g=g|0;h=h|0;var k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0;u=i;i=i+16|0;if((i|0)>=(j|0))fa();t=u+4|0;s=u;c[(t&p)>>2]=0;c[(s&p)>>2]=0;if((((h|0)!=0?(a[(h&n)>>0]|0)==-102:0)?(m=c[(h&p)+44>>2]|0,(m|0)!=0):0)?(a[(m&n)+44>>0]&16)!=0:0){h=m+60|0;while(1){h=c[(h&p)>>2]|0;if((c[(h&p)>>2]|0)==(d|0))break;else h=h+24|0}l=c[(h&p)+8>>2]|0;k=(c[(l&p)>>2]|0)+72|0;if((c[(k&p)>>2]|0)!=0?(r=f+24|0,q=kh(d,c[(r&p)>>2]|0)|0,(q|0)!=0):0){m=a[(q&n)>>0]|0;if(m<<24>>24){h=q;do{a[(h&n)>>0]=a[(m&255&n)+9328>>0]|0;h=h+1|0;m=a[(h&n)>>0]|0}while(m<<24>>24!=0)}g=tc[c[(k&p)>>2]&31](l,g,q,t,s)|0;mg(d,q);if(g){h=c[(r&p)>>2]|0;if(!h){h=37;l=0}else{l=h;while(1)if(!(a[(l&n)>>0]|0))break;else l=l+1|0;h=(l-h&1073741823)+37|0;l=0}k=mh(d,h,l)|0;if(k){fw(k|0,0,h|0)|0;m=k+0|0;l=f+0|0;h=m+36|0;do{c[(m&p)>>2]=c[(l&p)>>2];m=m+4|0;l=l+4|0}while((m|0)<(h|0));m=k+36|0;c[(k&p)+24>>2]=m;h=c[(r&p)>>2]|0;if(!h)l=1;else{l=h;while(1)if(!(a[(l&n)>>0]|0))break;else l=l+1|0;l=(l-h&1073741823)+1|0}kw(m|0,h|0,l|0)|0;c[(k&p)+12>>2]=c[(t&p)>>2];c[(k&p)+4>>2]=c[(s&p)>>2];s=k+2|0;b[(s&o)>>1]=e[(s&o)>>1]|16}else k=f}else k=f}else k=f}else k=f;i=u;return k|0}function eu(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,o=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;i=i+80|0;if((i|0)>=(j|0))fa();z=B;x=B+72|0;q=B+52|0;y=B+48|0;o=B+28|0;A=Oq(b)|0;a:do if(!A)g=0;else{g=b+100|0;c[(g&p)>>2]=(c[(g&p)>>2]|0)+1;g=d+4|0;if(!(c[(g&p)>>2]&32)){s=Oq(b)|0;m=b+80|0;h=c[(m&p)>>2]|0;c[(m&p)>>2]=h+1;h=wh(s,44,h,0,0)|0}else h=-1;if((a[(b&n)+450>>0]|0)==2){l=c[(b&p)>>2]|0;m=(a[(d&n)>>0]|0)==75?29104:29112;s=c[(b&p)+468>>2]|0;c[(z&p)>>2]=(h|0)>-1?10360:29088;c[(z&p)+4>>2]=m;c[(z&p)+8>>2]=s;l=uh(l,29056,z)|0;xh(A,wh(A,157,c[(b&p)+464>>2]|0,0,0)|0,l,-1);l=d}else l=d;m=a[(l&n)>>0]|0;b:do if(m<<24>>24==75){o=d+12|0;k=kv(c[(o&p)>>2]|0)|0;a[(x&n)>>0]=k;u=b+68|0;v=c[(u&p)>>2]|0;c[(u&p)>>2]=v+1;u=d+28|0;c[(u&p)>>2]=v;t=(f|0)!=0;v=wh(A,57,v,t&1^1,0)|0;if(t)w=0;else w=Rs(c[(b&p)>>2]|0,1,1)|0;m=d+20|0;do if(!(c[(g&p)>>2]&2048)){m=c[(m&p)>>2]|0;if(m){if(!(k<<24>>24))a[(x&n)>>0]=65;if(w)c[(w&p)+20>>2]=cu(b,c[(o&p)>>2]|0)|0;f=b+19|0;k=a[(f&n)>>0]|0;if(k<<24>>24){s=k+-1<<24>>24;a[(f&n)>>0]=s;l=c[(b+((s&255)<<2)&p)+24>>2]|0;if(!(s<<24>>24))r=24;else{s=k+-2<<24>>24;a[(f&n)>>0]=s;s=c[(b+((s&255)<<2)&p)+24>>2]|0}}else{r=b+72|0;l=(c[(r&p)>>2]|0)+1|0;c[(r&p)>>2]=l;r=24}if((r|0)==24){r=b+72|0;s=(c[(r&p)>>2]|0)+1|0;c[(r&p)>>2]=s}if(t)wh(A,28,0,s,0)|0;o=c[(m&p)>>2]|0;if((o|0)>0){k=z+20|0;g=z+4|0;r=z+24|0;q=A+32|0;f=c[(m&p)+4>>2]|0;while(1){m=c[(f&p)>>2]|0;do if((h|0)>-1){c[(z&p)>>2]=0;c[(z&p)+4>>2]=0;c[(z&p)+8>>2]=0;c[(z&p)+12>>2]=0;c[(z&p)+16>>2]=0;c[(z&p)+20>>2]=0;a[(k&n)>>0]=1;c[(z&p)>>2]=78;c[(g&p)>>2]=79;c[(r&p)>>2]=0;rs(z,m)|0;if(a[(k&n)>>0]|0)break;zh(A,h);h=-1}while(0);do if(t)if(!(Ms(m,y)|0)){m=is(b,m,l)|0;wh(A,38,m,(c[(q&p)>>2]|0)+2|0,0)|0;wh(A,75,c[(u&p)>>2]|0,s,m)|0;break}else{wh(A,84,c[(u&p)>>2]|0,s,c[(y&p)>>2]|0)|0;break}else{m=is(b,m,l)|0;xh(A,wh(A,49,m,1,s)|0,x,1);dt(b,m,1);wh(A,110,c[(u&p)>>2]|0,s,0)|0}while(0);o=o+-1|0;if((o|0)<=0)break;else f=f+20|0}}_r(b,l);_r(b,s)}if(!w){k=h;g=0;break b}}else{l=c[(m&p)>>2]|0;s=c[(u&p)>>2]|0;a[(q&n)>>0]=11;c[(q&p)+4>>2]=s;c[(q&p)+8>>2]=0;c[(q&p)+12>>2]=0;a[(q&n)+1>>0]=k;c[(l&p)+8>>2]=0;if(!(ir(b,l,q)|0)){c[(w&p)+20>>2]=Ou(b,c[(o&p)>>2]|0,c[(c[((c[(l&p)>>2]|0)&p)+4>>2]&p)>>2]|0)|0;break}if(!w){g=0;break a}s=(c[(w&p)>>2]|0)+-1|0;c[(w&p)>>2]=s;if(s){g=0;break a}Wc(w);g=0;break a}while(0);xh(A,v,w,-6);k=h;g=0}else{k=c[(d&p)+20>>2]|0;l=b+72|0;g=(c[(l&p)>>2]|0)+1|0;c[(l&p)>>2]=g;a[(o&n)>>0]=0;l=o+4|0;c[(l&p)>>2]=g;a[(o&n)+1>>0]=0;f=o+8|0;c[(f&p)>>2]=0;c[(o&p)+12>>2]=0;if(m<<24>>24==119){a[(o&n)>>0]=10;c[(f&p)>>2]=g;wh(A,28,0,g,0)|0}else{a[(o&n)>>0]=3;wh(A,25,0,g,0)|0}s=k+60|0;Gk(c[(b&p)>>2]|0,c[(s&p)>>2]|0);c[(s&p)>>2]=Zq(b,132,0,0,20624)|0;c[(k&p)+8>>2]=0;if(ir(b,k,o)|0){g=0;break a}k=h;g=c[(l&p)>>2]|0}while(0);if(e)lv(A,c[(d&p)+28>>2]|0,e);if((k|0)>-1){h=c[(A&p)+32>>2]|0;if(h>>>0>k>>>0)c[((c[(A&p)+4>>2]|0)+(k*20|0)&p)+8>>2]=h;c[((c[(A&p)+24>>2]|0)&p)+88>>2]=h+-1}bu(b)}while(0);i=B;return g|0}function fu(b,e,f,g){b=b|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,o=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0;A=i;i=i+16|0;if((i|0)>=(j|0))fa();m=A+4|0;x=A+8|0;v=A;c[(m&p)>>2]=0;z=c[(b&p)+8>>2]|0;h=(f|0)==(g|0);l=mv(b,e,3,h?0:m)|0;a[(x&n)>>0]=nv(e)|0;o=b+100|0;c[(o&p)>>2]=(c[(o&p)>>2]|0)+1;o=b+19|0;k=a[(o&n)>>0]|0;if(!(k<<24>>24)){t=b+72|0;y=(c[(t&p)>>2]|0)+1|0;c[(t&p)>>2]=y}else{y=k+-1<<24>>24;a[(o&n)>>0]=y;y=c[(b+((y&255)<<2)&p)+24>>2]|0}k=e+12|0;Rq(b,c[(k&p)>>2]|0,y);do if((l|0)==5){t=c[(e&p)+20>>2]|0;r=cu(b,c[(k&p)>>2]|0)|0;u=xs(z)|0;s=(g|0)!=(f|0);if(s){k=a[(o&n)>>0]|0;if(!(k<<24>>24)){q=b+72|0;k=(c[(q&p)>>2]|0)+1|0;c[(q&p)>>2]=k}else{k=k+-1<<24>>24;a[(o&n)>>0]=k;k=c[(b+((k&255)<<2)&p)+24>>2]|0}wh(z,85,y,y,k)|0;q=k}else q=0;if((c[(t&p)>>2]|0)>0){o=t+4|0;m=(q|0)==0;l=z+4|0;k=z+32|0;h=0;do{e=$t(b,c[((c[(o&p)>>2]|0)+(h*20|0)&p)>>2]|0,v)|0;if(!m?(Uu(c[((c[(o&p)>>2]|0)+(h*20|0)&p)>>2]|0)|0)!=0:0)wh(z,85,q,e,q)|0;if((h|0)<((c[(t&p)>>2]|0)+-1|0)|s){xh(z,wh(z,79,y,u,e)|0,r,-4);e=c[(l&p)>>2]|0;if(e)a[(e+(((c[(k&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=a[(x&n)>>0]|0}else{xh(z,wh(z,78,y,f,e)|0,r,-4);e=c[(l&p)>>2]|0;if(e)a[(e+(((c[(k&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=d[(x&n)>>0]|0|16}_r(b,c[(v&p)>>2]|0);h=h+1|0}while((h|0)<(c[(t&p)>>2]|0))}if(q){wh(z,76,q,g,0)|0;wh(z,16,0,f,0)|0}k=c[(z&p)+24>>2]|0;h=~u;if((u|0)<0?(w=c[(k&p)+112>>2]|0,(w|0)!=0):0)c[(w+(h<<2)&p)>>2]=c[(z&p)+32>>2];c[(k&p)+88>>2]=(c[(z&p)+32>>2]|0)+-1;_r(b,q)}else{do if(Uu(c[(k&p)>>2]|0)|0){if(h){wh(z,76,y,f,0)|0;break}k=wh(z,77,y,0,0)|0;wh(z,108,c[(e&p)+28>>2]|0,f,0)|0;wh(z,16,0,g,0)|0;h=c[(z&p)+32>>2]|0;if(h>>>0>k>>>0)c[((c[(z&p)+4>>2]|0)+(k*20|0)&p)+8>>2]=h;c[((c[(z&p)+24>>2]|0)&p)+88>>2]=h+-1}while(0);if((l|0)==1){wh(z,38,y,f,0)|0;wh(z,70,c[(e&p)+28>>2]|0,f,y)|0;break}xh(z,wh(z,48,y,1,0)|0,x,1);h=c[(e&p)+28>>2]|0;if(!(c[(m&p)>>2]|0)){xh(z,wh(z,68,h,f,y)|0,1,-14);break}k=wh(z,69,h,0,y)|0;xh(z,k,1,-14);wh(z,76,c[(m&p)>>2]|0,g,0)|0;wh(z,16,0,f,0)|0;h=c[(z&p)+32>>2]|0;if(h>>>0>k>>>0)c[((c[(z&p)+4>>2]|0)+(k*20|0)&p)+8>>2]=h;c[((c[(z&p)+24>>2]|0)&p)+88>>2]=h+-1}while(0);_r(b,y);bu(b);i=A;return}function gu(f,g){f=f|0;g=g|0;var k=0,l=0,m=0,r=0,s=0,t=0.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;G=i;i=i+48|0;if((i|0)>=(j|0))fa();F=G;D=G+28|0;k=c[(f&p)+24>>2]|0;E=c[(k&p)>>2]|0;B=g+4|0;r=c[(B&p)>>2]|0;a:do if(!(r&4)){c[(B&p)>>2]=r|4;switch(d[(g&n)>>0]|0){case 122:{l=c[(g&p)+16>>2]|0;if((a[(l&n)>>0]|0)==27){r=l;l=g;m=0}else{r=c[(l&p)+16>>2]|0;m=c[((c[(g&p)+12>>2]|0)&p)+8>>2]|0}k=ov(E,m,c[((c[(l&p)+12>>2]|0)&p)+8>>2]|0,c[(r&p)+8>>2]|0,k,g)|0;break a}case 153:{A=g+20|0;x=c[(A&p)>>2]|0;if(!x)m=0;else m=c[(x&p)>>2]|0;r=a[((c[(E&p)>>2]|0)&n)+62>>0]|0;C=k+28|0;if(b[(C&o)>>1]&16){c[(F&p)>>2]=27200;th(E,27512,F)}y=c[(g&p)+8>>2]|0;if(!y)v=0;else{s=y;while(1)if(!(a[(s&n)>>0]|0))break;else s=s+1|0;v=s-y&1073741823}l=Sh(c[(E&p)>>2]|0,y,v,m,r,0)|0;do if(!l){if(Sh(c[(E&p)>>2]|0,y,v,-2,r,0)|0){c[(F&p)>>2]=v;c[(F&p)+4>>2]=y;th(E,27392,F);y=k+24|0;c[(y&p)>>2]=(c[(y&p)>>2]|0)+1;break}if(!(a[((c[(E&p)>>2]|0)&n)+145>>0]|0)){c[(F&p)>>2]=v;c[(F&p)+4>>2]=y;th(E,27368,F);y=k+24|0;c[(y&p)>>2]=(c[(y&p)>>2]|0)+1}}else{u=(c[(l&p)+12>>2]|0)==0;z=l+2|0;do if(b[(z&o)>>1]&1024){c[(B&p)>>2]=c[(B&p)>>2]|266240;if((m|0)!=2){c[(g&p)+28>>2]=(a[(c[(l&p)+24>>2]&n)>>0]|0)==117?8388608:125829120;break}s=c[((c[(x&p)+4>>2]|0)&p)+20>>2]|0;h[(F&q)>>3]=-1.0;if((a[(s&n)>>0]|0)==-123){r=c[(s&p)+8>>2]|0;if(!r)s=0;else{s=r;while(1)if(!(a[(s&n)>>0]|0))break;else s=s+1|0;s=s-r&1073741823}Tl(r,F,s,1)|0;t=+h[(F&q)>>3];if(!(t>1.0)){s=~~(t*134217728.0);c[(g&p)+28>>2]=s;if((s|0)>=0)break}else w=22}else w=22;if((w|0)==22)c[(g&p)+28>>2]=-1;th(E,27216,F);w=k+24|0;c[(w&p)>>2]=(c[(w&p)>>2]|0)+1}while(0);s=l+24|0;r=Sq(E,31,0,c[(s&p)>>2]|0,0)|0;if(!r){if(b[(z&o)>>1]&2048)c[(B&p)>>2]=c[(B&p)>>2]|524288;if(!u)break;s=b[(C&o)>>1]|0;if(!(s&1)){c[(F&p)>>2]=v;c[(F&p)+4>>2]=y;th(E,27328,F);y=k+24|0;c[(y&p)>>2]=(c[(y&p)>>2]|0)+1;break}b[(C&o)>>1]=s&65534;lu(f,x)|0;a[(g&n)>>0]=-101;r=g+38|0;a[(r&n)>>0]=0;b:do if(k){m=F+24|0;l=D+4|0;s=D+8|0;while(1){y=c[(k&p)+4>>2]|0;c[(F&p)>>2]=0;c[(F&p)+4>>2]=0;c[(F&p)+8>>2]=0;c[(F&p)+12>>2]=0;c[(F&p)+16>>2]=0;c[(F&p)+20>>2]=0;c[(F&p)>>2]=87;c[(m&p)>>2]=D;c[(D&p)>>2]=y;c[(l&p)>>2]=0;c[(s&p)>>2]=0;lu(F,c[(A&p)>>2]|0)|0;if((c[(l&p)>>2]|0)>0)break;if(!(c[(s&p)>>2]|0))break;a[(r&n)>>0]=(a[(r&n)>>0]|0)+1<<24>>24;k=c[(k&p)+16>>2]|0;if(!k)break b}y=k+28|0;b[(y&o)>>1]=e[(z&o)>>1]&4096|e[(y&o)>>1]|2}while(0);b[(C&o)>>1]=e[(C&o)>>1]|1;k=1;break a}else if((r|0)==1){c[(F&p)>>2]=c[(s&p)>>2];th(E,27288,F);y=k+24|0;c[(y&p)>>2]=(c[(y&p)>>2]|0)+1}a[(g&n)>>0]=101;k=1;break a}while(0);lu(f,x)|0;k=1;break a}case 135:{l=k+28|0;k=b[(l&o)>>1]|0;if(k&4){c[(F&p)>>2]=27456;th(E,27472,F);k=b[(l&o)>>1]|0}if(k&16){c[(F&p)>>2]=27456;th(E,27512,F)}break}case 27:{k=ov(E,0,0,c[(g&p)+8>>2]|0,k,g)|0;break a}case 75:case 20:case 119:{if(r&2048){s=k+20|0;l=c[(s&p)>>2]|0;m=k+28|0;r=b[(m&o)>>1]|0;if(r&4){c[(F&p)>>2]=27440;th(E,27472,F);r=b[(m&o)>>1]|0}if(r&16){c[(F&p)>>2]=27440;th(E,27512,F)}ku(f,c[(g&p)+20>>2]|0)|0;if((l|0)!=(c[(s&p)>>2]|0))c[(B&p)>>2]=c[(B&p)>>2]|32}break}default:{}}if(!(c[(E&p)+64>>2]|0))k=(a[((c[(E&p)>>2]|0)&n)+65>>0]|0)!=0?2:0;else k=2}else k=1;while(0);i=G;return k|0}function hu(d,f){d=d|0;f=f|0;var g=0,h=0,k=0,l=0,m=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;P=i;i=i+80|0;if((i|0)>=(j|0))fa();O=P;M=P+64|0;H=P+32|0;m=b[(f&o)+6>>1]|0;h=m&65535;a:do if(!(h&2)){G=c[(d&p)+24>>2]|0;N=c[(d&p)+12>>2]|0;d=c[(N&p)>>2]|0;if(!(h&16)){Ds(N,f,G);if(c[(N&p)+64>>2]|0){g=2;break}g=(a[(d&n)+65>>0]|0)!=0?2:1;break}I=f+52|0;g=(c[(I&p)>>2]|0)!=0;J=(f|0)==0;b:do if(!J){h=H+28|0;r=H+4|0;D=H+16|0;E=H+8|0;z=d+65|0;y=N+492|0;x=(G|0)==0;w=O+4|0;v=O+12|0;u=O+24|0;t=N+64|0;A=f;c:while(1){B=A+6|0;b[(B&o)>>1]=m&65535|2;c[(H&p)>>2]=0;c[(H&p)+4>>2]=0;c[(H&p)+8>>2]=0;c[(H&p)+12>>2]=0;c[(H&p)+16>>2]=0;c[(H&p)+20>>2]=0;c[(H&p)+24>>2]=0;c[(H&p)+28>>2]=0;c[(H&p)>>2]=N;if(ls(H,c[(A&p)+60>>2]|0)|0){g=2;break a}if(ls(H,c[(A&p)+64>>2]|0)|0){g=2;break a}m=c[(A&p)+32>>2]|0;if(b[(B&o)>>1]&8192){C=A+48|0;c[((c[(m&p)+28>>2]|0)&p)+48>>2]=c[(C&p)>>2];c[(C&p)>>2]=0}C=A+32|0;if((c[(m&p)>>2]|0)>0){s=0;do{k=c[(m+(s*72|0)&p)+28>>2]|0;if(k){d=c[(y&p)>>2]|0;if(x)q=0;else{q=0;l=G;do{q=(c[(l&p)+20>>2]|0)+q|0;l=c[(l&p)+16>>2]|0}while((l|0)!=0)}l=c[(m+(s*72|0)&p)+16>>2]|0;if(l)c[(y&p)>>2]=l;c[(O&p)>>2]=0;c[(O&p)+4>>2]=0;c[(O&p)+8>>2]=0;c[(O&p)+12>>2]=0;c[(O&p)+16>>2]=0;c[(O&p)+20>>2]=0;c[(O&p)>>2]=82;c[(w&p)>>2]=83;c[(v&p)>>2]=N;c[(u&p)>>2]=G;ku(O,k)|0;c[(y&p)>>2]=d;if(c[(t&p)>>2]|0){g=2;break a}if(a[(z&n)>>0]|0){g=2;break a}if(!x){l=G;do{q=q-(c[(l&p)+20>>2]|0)|0;l=c[(l&p)+16>>2]|0}while((l|0)!=0)}m=m+(s*72|0)+45|0;a[(m&n)>>0]=a[(m&n)>>0]&-3|((q|0)!=0&1)<<1&255;m=c[(C&p)>>2]|0}s=s+1|0}while((s|0)<(c[(m&p)>>2]|0))}b[(h&o)>>1]=1;c[(r&p)>>2]=m;c[(D&p)>>2]=G;q=c[(A&p)>>2]|0;if((c[(q&p)>>2]|0)>0){m=q+4|0;l=0;do{if(ls(H,c[((c[(m&p)>>2]|0)+(l*20|0)&p)>>2]|0)|0){g=2;break a}l=l+1|0}while((l|0)<(c[(q&p)>>2]|0))}k=c[(A&p)+40>>2]|0;m=(k|0)!=0;q=b[(h&o)>>1]|0;if(!m?(F=q&65535,(F&2|0)==0):0)b[(h&o)>>1]=F&65534;else b[(B&o)>>1]=q&4096|e[(B&o)>>1]|4;q=c[(A&p)+44>>2]|0;if(!((q|0)==0|m)){K=32;break}c[(E&p)>>2]=c[(A&p)>>2];if(ls(H,q)|0){g=2;break a}if(ls(H,c[(A&p)+36>>2]|0)|0){g=2;break a}c[(D&p)>>2]=0;b[(h&o)>>1]=e[(h&o)>>1]|1;if(b[(B&o)>>1]&8192){C=(c[((c[(C&p)>>2]|0)&p)+28>>2]|0)+48|0;c[(A&p)+48>>2]=c[(C&p)>>2];c[(C&p)>>2]=0}if(!g?(qv(H,A,c[(A&p)+48>>2]|0,26880)|0)!=0:0){g=2;break a}if(a[(z&n)>>0]|0){g=2;break a}do if(m){if(qv(H,A,k,26888)|0){g=2;break a}if(a[(z&n)>>0]|0){g=2;break a}l=c[(k&p)>>2]|0;if((l|0)<=0)break;q=0;m=c[(k&p)+4>>2]|0;while(1){if(c[((c[(m&p)>>2]|0)&p)+4>>2]&2){K=46;break c}q=q+1|0;if((q|0)>=(l|0))break;else m=m+20|0}}while(0);l=c[(A&p)+52>>2]|0;if(!l)break b;A=l;m=b[(l&o)+6>>1]|0}if((K|0)==32){th(N,26832,O);g=2;break a}else if((K|0)==46){th(N,26896,O);g=2;break a}}while(0);if(g?(L=c[(f&p)+48>>2]|0,(L|0)!=0):0){F=c[(N&p)>>2]|0;h=c[(L&p)>>2]|0;if((h|0)>(c[(F&p)+96>>2]|0)){th(N,26960,O);g=2;break}if((h|0)>0){d=L+4|0;g=0;do{h=(c[(d&p)>>2]|0)+(g*20|0)+13|0;a[(h&n)>>0]=a[(h&n)>>0]&-2;g=g+1|0;h=c[(L&p)>>2]|0}while((g|0)<(h|0))}c[(f&p)+56>>2]=0;g=c[(I&p)>>2]|0;if(!g)if(J)d=L+4|0;else K=60;else while(1){c[(g&p)+56>>2]=f;f=c[(g&p)+52>>2]|0;if(!f){f=g;K=60;break}else{E=g;g=f;f=E}}d:do if((K|0)==60){d=L+4|0;x=F+65|0;y=O+4|0;z=O+8|0;A=O+28|0;B=O+24|0;C=O+4|0;w=f;e:while(1){v=c[(w&p)>>2]|0;if((h|0)<=0)break d;t=w+32|0;g=0;s=0;u=c[(d&p)>>2]|0;while(1){c[(M&p)>>2]=-1;r=u+13|0;do if(!(a[(r&n)>>0]&1)){h=c[(u&p)>>2]|0;f:do if(!h)h=0;else while(1){f=c[(h&p)+4>>2]|0;if(!(f&4096))break f;if(!(f&262144))h=h+12|0;else h=c[((c[(h&p)+20>>2]|0)&p)+4>>2]|0;h=c[(h&p)>>2]|0;if(!h){h=0;break}}while(0);if(!(Ms(h,M)|0)){f=rv(v,h)|0;c[(M&p)>>2]=f;if(!f){q=Mr(F,h,0,0)|0;if(!(a[(x&n)>>0]|0)){k=c[(w&p)>>2]|0;c[(O&p)>>2]=0;c[(O&p)+4>>2]=0;c[(O&p)+8>>2]=0;c[(O&p)+12>>2]=0;c[(O&p)+16>>2]=0;c[(O&p)+20>>2]=0;c[(O&p)+24>>2]=0;c[(O&p)+28>>2]=0;c[(O&p)>>2]=N;c[(y&p)>>2]=c[(t&p)>>2];c[(z&p)>>2]=k;b[(A&o)>>1]=1;c[(B&p)>>2]=0;D=(c[(N&p)>>2]|0)+68|0;f=a[(D&n)>>0]|0;a[(D&n)>>0]=1;E=ls(O,q)|0;a[(D&n)>>0]=f;g:do if(!E){m=k+4|0;l=c[(k&p)>>2]|0;k=0;while(1){if((k|0)>=(l|0)){f=0;break g}f=k+1|0;if((Cu(c[((c[(m&p)>>2]|0)+(k*20|0)&p)>>2]|0,q,-1)|0)<2)break;else k=f}}else f=0;while(0);c[(M&p)>>2]=f}else f=0;Gk(F,q)}if((f|0)<=0){f=1;break}}else{k=c[(M&p)>>2]|0;f=c[(v&p)>>2]|0;if((k|0)<1|(k|0)>(f|0))break e;else f=k}c[(O&p)>>2]=0;c[(C&p)>>2]=0;k=nr(F,132,O,0)|0;if(!k){g=2;break a}l=k+4|0;c[(l&p)>>2]=c[(l&p)>>2]|1024;c[(k&p)+8>>2]=f;l=c[(u&p)>>2]|0;if((l|0)==(h|0))c[(u&p)>>2]=k;else c[(l&p)+12>>2]=k;Gk(F,h);b[(u&o)+16>>1]=f;a[(r&n)>>0]=a[(r&n)>>0]|1;f=s}else f=s;while(0);g=g+1|0;h=c[(L&p)>>2]|0;if((g|0)>=(h|0))break;else{s=f;u=u+20|0}}w=c[(w&p)+56>>2]|0;if(!((w|0)!=0&(f|0)!=0))break d}c[(O&p)>>2]=g+1;c[(O&p)+4>>2]=26880;c[(O&p)+8>>2]=f;th(N,27064,O);g=2;break a}while(0);f=0;while(1){if((f|0)>=(h|0)){g=1;break a}g=f+1|0;if(!(a[((c[(d&p)>>2]|0)+(f*20|0)&n)+13>>0]&1))break;else f=g}c[(O&p)>>2]=g;th(N,27e3,O);g=2}else g=1}else g=1;while(0);i=P;return g|0}function iu(e,f,g,h){e=e|0;f=f|0;g=g|0;h=h|0;var k=0,l=0,m=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;C=i;i=i+16|0;if((i|0)>=(j|0))fa();z=C;A=c[(e&p)>>2]|0;a:do if(f){v=c[(f&p)>>2]|0;e=v*24|0;k=mh(A,e,0)|0;if(k)fw(k|0,0,e|0)|0;b[(g&o)>>1]=v;c[(h&p)>>2]=k;if((v|0)>0){t=f+4|0;w=A+65|0;e=0;u=k;while(1){r=c[(t&p)>>2]|0;f=c[(r+(e*20|0)&p)>>2]|0;b:do if(!f)f=0;else while(1){l=c[(f&p)+4>>2]|0;if(!(l&4096))break b;if(!(l&262144))f=f+12|0;else f=c[((c[(f&p)+20>>2]|0)&p)+4>>2]|0;f=c[(f&p)>>2]|0;if(!f){f=0;break}}while(0);l=c[(r+(e*20|0)&p)+4>>2]|0;do if(!l){while(1){l=a[(f&n)>>0]|0;if(l<<24>>24==27){B=24;break}else if(l<<24>>24==-102){y=f;B=18;break}else if(l<<24>>24!=122)break;f=c[(f&p)+16>>2]|0}if((B|0)==24){B=0;c[(z&p)>>2]=c[(f&p)+8>>2];f=uh(A,10344,z)|0;break}if((B|0)==18?(B=0,x=c[(y&p)+44>>2]|0,(x|0)!=0):0){f=b[(y&o)+32>>1]|0;if(f<<16>>16<0)f=b[(x&o)+36>>1]|0;else f=f<<16>>16;if((f|0)>-1)f=c[((c[(x&p)+4>>2]|0)+(f*24|0)&p)>>2]|0;else f=20456;c[(z&p)>>2]=f;f=uh(A,10344,z)|0;break}c[(z&p)>>2]=c[(r+(e*20|0)&p)+8>>2];f=uh(A,10344,z)|0}else f=kh(A,l)|0;while(0);if(a[(w&n)>>0]|0)break;if(!f){q=0;f=0}else{l=f;while(1)if(!(a[(l&n)>>0]|0))break;else l=l+1|0;q=l-f&1073741823}c:do if((e|0)>0){l=0;r=0;s=q;while(1){if(!(dd(c[(k+(r*24|0)&p)>>2]|0,f)|0)){m=s;while(1){q=m+-1|0;if((q|0)<=1)break;if(((d[(f+q&n)>>0]|0)+-48|0)>>>0<10)m=q;else break}if((m|0)>0)m=(a[(f+q&n)>>0]|0)==58?q:s;else m=s;a[(f+m&n)>>0]=0;l=l+1|0;c[(z&p)>>2]=f;c[(z&p)+4>>2]=l;q=uh(A,26824,z)|0;mg(A,f);if(!q){f=0;break c}else{r=-1;f=q}}else m=s;r=r+1|0;if((r|0)>=(e|0))break;else s=m}}while(0);c[(u&p)>>2]=f;e=e+1|0;if((e|0)<(v|0))u=u+24|0;else{f=w;break a}}mg(A,f);f=w}else B=6}else{b[(g&o)>>1]=0;c[(h&p)>>2]=0;k=0;B=6}while(0);if((B|0)==6){f=A+65|0;e=0}if(a[(f&n)>>0]|0){if((e|0)>0){f=0;do{mg(A,c[(k+(f*24|0)&p)>>2]|0);f=f+1|0}while((f|0)!=(e|0))}mg(A,k);c[(h&p)>>2]=0;b[(g&o)>>1]=0}i=C;return}function ju(e,f,g){e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0,v=0;u=i;i=i+32|0;if((i|0)>=(j|0))fa();t=u;s=c[(e&p)>>2]|0;if(!(a[(s&n)+65>>0]|0)){c[(t&p)>>2]=0;c[(t&p)+4>>2]=0;c[(t&p)+8>>2]=0;c[(t&p)+12>>2]=0;c[(t&p)+16>>2]=0;c[(t&p)+20>>2]=0;c[(t&p)+24>>2]=0;c[(t&p)+28>>2]=0;c[(t&p)+4>>2]=c[(g&p)+32>>2];m=c[((c[(g&p)>>2]|0)&p)+4>>2]|0;l=f+38|0;if((b[(l&o)>>1]|0)>0){g=0;h=0;q=0;r=c[(f&p)+4>>2]|0;while(1){k=c[(m+(q*20|0)&p)>>2]|0;v=r+22|0;c[(r&p)+12>>2]=kh(s,yu(t,k,v)|0)|0;g=jw(d[(v&n)>>0]|0,0,g|0,h|0)|0;h=G;v=kv(k)|0;a[(r&n)+21>>0]=v<<24>>24==0?65:v;k=cu(e,k)|0;if(k)c[(r&p)+16>>2]=kh(s,c[(k&p)>>2]|0)|0;q=q+1|0;if((q|0)>=(b[(l&o)>>1]|0))break;else r=r+24|0}h=iw(g|0,h|0,2)|0;g=G}else{h=0;g=0}b[(f&o)+42>>1]=fs(h,g)|0}i=u;return}function ku(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;do if(!b)d=0;else{g=a+4|0;e=c[(g&p)>>2]|0;if((e|0)==0?(c[(a&p)+8>>2]|0)==0:0){d=0;break}j=a+16|0;c[(j&p)>>2]=(c[(j&p)>>2]|0)+1;h=a+8|0;a:while(1){if((e|0)!=0?(d=rc[e&127](a,b)|0,(d|0)!=0):0){k=24;break}if(lu(a,c[(b&p)>>2]|0)|0){k=19;break}if(rs(a,c[(b&p)+36>>2]|0)|0){k=19;break}if(lu(a,c[(b&p)+40>>2]|0)|0){k=19;break}if(rs(a,c[(b&p)+44>>2]|0)|0){k=19;break}if(lu(a,c[(b&p)+48>>2]|0)|0){k=19;break}if(rs(a,c[(b&p)+60>>2]|0)|0){k=19;break}if(rs(a,c[(b&p)+64>>2]|0)|0){k=19;break}e=c[(b&p)+32>>2]|0;if((e|0)!=0?(i=c[(e&p)>>2]|0,(i|0)>0):0){f=i;e=e+8|0;while(1){if(ku(a,c[(e&p)+20>>2]|0)|0){k=19;break a}f=f+-1|0;if((f|0)<=0)break;else e=e+72|0}}e=c[(h&p)>>2]|0;if(e)jc[e&15](a,b);b=c[(b&p)+52>>2]|0;if(!b){d=0;break}e=c[(g&p)>>2]|0}if((k|0)==19){c[(j&p)>>2]=(c[(j&p)>>2]|0)+-1;d=2;break}else if((k|0)==24)d=d&2;c[(j&p)>>2]=(c[(j&p)>>2]|0)+-1}while(0);return d|0}function lu(a,b){a=a|0;b=b|0;var d=0;a:do if((b|0)!=0?(d=c[(b&p)>>2]|0,(d|0)>0):0){b=c[(b&p)+4>>2]|0;while(1){if(rs(a,c[(b&p)>>2]|0)|0){d=2;break a}d=d+-1|0;if((d|0)<=0){d=0;break}else b=b+20|0}}else d=0;while(0);return d|0}function mu(a){a=a|0;var b=0,d=0;d=i;i=i+16|0;if((i|0)>=(j|0))fa();b=d;c[(b&p)>>2]=0;if((c[(a&p)+4>>2]&1|0)==0?(Ms(a,b)|0)!=0:0)a=(c[(b&p)>>2]|0)==0&1;else a=0;i=d;return a|0}function nu(d,f,g){d=d|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0,v=0;v=i;i=i+32|0;if((i|0)>=(j|0))fa();t=v;l=c[(g&p)+12>>2]|0;c[(t&p)>>2]=0;c[(t&p)+4>>2]=0;c[(t&p)+8>>2]=0;c[(t&p)+12>>2]=0;c[(t&p)+16>>2]=0;c[(t&p)+20>>2]=200;a[(t&n)+24>>0]=1;a[(t&n)+25>>0]=0;c[(t&p)>>2]=c[(d&p)>>2];r=g+46|0;if(b[(r&o)>>1]|0){s=g+4|0;m=l+4|0;u=0;do{q=c[((c[(m&p)>>2]|0)+((b[((c[(s&p)>>2]|0)+(u<<1)&o)>>1]|0)*24|0)&p)>>2]|0;if(u)Sk(t,28920,2);k=c[(l&p)>>2]|0;if(!k)h=0;else{h=k;while(1)if(!(a[(h&n)>>0]|0))break;else h=h+1|0;h=h-k&1073741823}Sk(t,k,h);Sk(t,28928,1);if(!q)h=0;else{h=q;while(1)if(!(a[(h&n)>>0]|0))break;else h=h+1|0;h=h-q&1073741823}Sk(t,q,h);u=u+1|0}while((u|0)<(e[(r&o)>>1]|0))}u=tg(t)|0;zs(d,(a[(g&n)+51>>0]&3)==2?1555:2067,f,u,-1,2);i=v;return}function ou(a,b){a=a|0;b=b|0;return 0}function pu(d,f){d=d|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0;u=i;i=i+16|0;if((i|0)>=(j|0))fa();t=u+8|0;r=u;s=f+52|0;a:do if((c[(s&p)>>2]|0)!=0?(h=c[(f&p)+48>>2]|0,!((h|0)==0|(f|0)==0)):0){g=f;while(1){q=a[(g&n)+4>>0]|0;if(!(q<<24>>24==119|q<<24>>24==116))break;g=c[(g&p)+52>>2]|0;if(!g){g=0;break a}}k=c[(h&p)+4>>2]|0;g=c[(h&p)>>2]|0;while(1){h=g+-1|0;if((g|0)<=0){g=0;break a}if(!(c[((c[(k+(h*20|0)&p)>>2]|0)&p)+4>>2]&256))g=h;else break}if((g|0)>=1){g=c[(d&p)+12>>2]|0;l=c[(g&p)>>2]|0;d=mh(l,72,0)|0;if(d){m=d+0|0;q=m+72|0;do{a[(m&n)>>0]=0;m=m+1|0}while((m|0)<(q|0));k=r;c[(k&p)>>2]=0;c[(k&p)+4>>2]=0;k=jr(g,0,0,0,r,d,0,0)|0;if(k){m=d+0|0;h=f+0|0;q=m+72|0;do{c[(m&p)>>2]=c[(h&p)>>2];m=m+4|0;h=h+4|0}while((m|0)<(q|0));c[(f&p)+32>>2]=k;c[(t&p)>>2]=0;c[(t&p)+4>>2]=0;c[(f&p)>>2]=lr(g,0,nr(l,116,t,0)|0)|0;a[(f&n)+4>>0]=119;c[(f&p)+36>>2]=0;c[(d&p)+40>>2]=0;c[(d&p)+44>>2]=0;c[(d&p)+48>>2]=0;c[(s&p)>>2]=0;c[(f&p)+56>>2]=0;g=f+6|0;b[(g&o)>>1]=(e[(g&o)>>1]|0)&57279|8192;c[((c[(d&p)+52>>2]|0)&p)+56>>2]=d;c[(d&p)+60>>2]=0;c[(d&p)+64>>2]=0;g=0}else g=2}else g=2}else g=0}else g=0;while(0);i=u;return g|0}function qu(f,g){f=f|0;g=g|0;var h=0,k=0,l=0,m=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;_=i;i=i+32|0;if((i|0)>=(j|0))fa();Z=_;W=_+16|0;J=f+12|0;Y=c[(J&p)>>2]|0;X=c[(Y&p)>>2]|0;U=g+6|0;q=e[(U&o)>>1]|0;b[(U&o)>>1]=q|16;V=X+65|0;a:do if(!(a[(V&n)>>0]|0)){I=g+32|0;S=c[(I&p)>>2]|0;if((S|0)!=0&(q&16|0)==0){T=c[(g&p)>>2]|0;if((c[(f&p)+8>>2]|0)==9){q=g;while(1){m=c[(q&p)+56>>2]|0;if(!m)break;else q=m}q=c[(q&p)+68>>2]|0;if(q){F=Y+532|0;c[(q&p)+4>>2]=c[(F&p)>>2];c[(F&p)>>2]=q;a[(Y&n)+449>>0]=0}}Cs(Y,S);R=S+8|0;q=c[(S&p)>>2]|0;b:do if((q|0)>0){E=0;y=R;c:while(1){if(!(a[(y&n)+37>>0]&8)){F=y+16|0;h=c[(J&p)>>2]|0;if(c[(F&p)>>2]|0){k=h;Q=10;break}v=c[(h&p)>>2]|0;m=h+532|0;r=c[(m&p)>>2]|0;d:do if((c[(y&p)+4>>2]|0)==0?(H=c[(y&p)+8>>2]|0,!((H|0)==0|(r|0)==0)):0){e:while(1){s=c[(r&p)>>2]|0;if((s|0)>0){l=0;do{q=r+(l<<4)+8|0;k=c[(q&p)>>2]|0;if(!(dd(H,k)|0)){C=l;break e}l=l+1|0}while((l|0)<(s|0))}r=c[(r&p)+4>>2]|0;if(!r){Q=46;break d}}z=r+(C<<4)+20|0;s=c[(z&p)>>2]|0;if(s){g=s;Q=21;break c}B=mh(v,76,0)|0;if(!B){g=F;Q=23;break c}t=B+0|0;s=t+76|0;do{a[(t&n)>>0]=0;t=t+1|0}while((t|0)<(s|0));c[(F&p)>>2]=B;w=B+40|0;b[(w&o)>>1]=1;c[(B&p)>>2]=kh(v,c[(q&p)>>2]|0)|0;b[(B&o)+36>>1]=-1;b[(B&o)+28>>1]=200;D=B+44|0;a[(D&n)>>0]=d[(D&n)>>0]|2;D=gr(v,c[(r+(C<<4)&p)+16>>2]|0,0)|0;c[(y&p)+20>>2]=D;if(a[(v&n)+65>>0]|0){g=2;break a}A=((a[(D&n)+4>>0]|0)+-115&255)<2;if(A?(x=c[(D&p)+32>>2]|0,G=c[(x&p)>>2]|0,(G|0)>0):0){s=D+6|0;t=G;v=0;do{do if(!(c[(x+(v*72|0)&p)+12>>2]|0)){u=c[(x+(v*72|0)&p)+16>>2]|0;if(!u)break;if(dd(u,c[(q&p)>>2]|0)|0)break;c[(x+(v*72|0)&p)+24>>2]=B;t=x+(v*72|0)+45|0;a[(t&n)>>0]=a[(t&n)>>0]|8;b[(w&o)>>1]=(b[(w&o)>>1]|0)+1<<16>>16;b[(s&o)>>1]=e[(s&o)>>1]|2048;t=c[(x&p)>>2]|0}while(0);v=v+1|0}while((v|0)<(t|0))}if((e[(w&o)>>1]|0)>2){g=q;Q=34;break c}c[(z&p)>>2]=28176;l=c[(m&p)>>2]|0;c[(m&p)>>2]=r;if(A)s=c[(D&p)+52>>2]|0;else s=D;ku(f,s)|0;s=D;while(1){k=c[(s&p)+52>>2]|0;if(!k)break;else s=k}k=c[(s&p)>>2]|0;s=c[(r+(C<<4)&p)+12>>2]|0;do if(s){if(!k)break;u=c[(k&p)>>2]|0;k=c[(s&p)>>2]|0;if((u|0)!=(k|0)){g=u;Q=42;break c}}else s=k;while(0);iu(h,s,B+38|0,B+4|0);if(A){c[(z&p)>>2]=(b[(D&o)+6>>1]&2048)==0?28280:28240;ku(f,D)|0}c[(z&p)>>2]=0;c[(m&p)>>2]=l;if(!(c[(F&p)>>2]|0))Q=46}else Q=46;while(0);do if((Q|0)==46){Q=0;if(!(c[(y&p)+8>>2]|0)){r=c[(y&p)+20>>2]|0;if(ku(f,r)|0){g=2;break a}m=mh(X,76,0)|0;if(!m){g=F;Q=49;break c}t=m+0|0;s=t+76|0;do{a[(t&n)>>0]=0;t=t+1|0}while((t|0)<(s|0));c[(F&p)>>2]=m;b[(m&o)+40>>1]=1;c[(Z&p)>>2]=m;c[(m&p)>>2]=uh(X,27760,Z)|0;while(1){q=c[(r&p)+52>>2]|0;if(!q)break;else r=q}iu(Y,c[(r&p)>>2]|0,m+38|0,m+4|0);b[(m&o)+36>>1]=-1;b[(m&o)+28>>1]=200;F=m+44|0;a[(F&n)>>0]=d[(F&n)>>0]|2;break}h=Ur(Y,0,y)|0;c[(F&p)>>2]=h;if(!h){g=2;break a}r=h+40|0;q=b[(r&o)>>1]|0;if(q<<16>>16==-1){g=F;Q=55;break c}b[(r&o)>>1]=q+1<<16>>16;r=h+12|0;if((c[(r&p)>>2]|0)==0?(a[(h&n)+44>>0]&16)==0:0)break;if(hr(Y,h)|0){g=2;break a}F=gr(X,c[(r&p)>>2]|0,0)|0;c[(y&p)+20>>2]=F;ku(f,F)|0}while(0);if(Rt(Y,y)|0){g=2;break a}q=c[(S&p)>>2]|0}E=E+1|0;if((E|0)>=(q|0))break b;else y=y+72|0}if((Q|0)==10){while(1){h=c[(g&p)+56>>2]|0;if(!h)break;else g=h}g=c[(g&p)+68>>2]|0;if(!g){g=1;break a}c[(k&p)+532>>2]=c[(g&p)+4>>2];g=1;break a}else if((Q|0)==21){c[(Z&p)>>2]=k;th(h,g,Z);g=2;break a}else if((Q|0)==23){c[(g&p)>>2]=0;g=2;break a}else if((Q|0)==34){c[(Z&p)>>2]=c[(g&p)>>2];th(h,28128,Z);g=2;break a}else if((Q|0)==42){c[(Z&p)>>2]=c[(q&p)>>2];c[(Z&p)+4>>2]=g;c[(Z&p)+8>>2]=k;th(h,28200,Z);c[(m&p)>>2]=l;g=2;break a}else if((Q|0)==49){c[(g&p)>>2]=0;g=2;break a}else if((Q|0)==55){c[(Z&p)>>2]=c[(h&p)>>2];th(Y,27776,Z);c[(g&p)>>2]=0;g=2;break a}}while(0);if(!(a[(V&n)>>0]|0)){y=c[(I&p)>>2]|0;f:do if(((c[(y&p)>>2]|0)+-1|0)>0){z=g+36|0;B=0;C=y+8|0;D=y+80|0;g:while(1){A=c[(D&p)+16>>2]|0;if(!((c[(C&p)+16>>2]|0)==0|(A|0)==0)){G=d[(D&n)+36>>0]|0;x=G&32;v=(x|0)==0;x=x>>>5;w=D+44|0;if(G&4){if(c[(w&p)>>2]|0){Q=73;break}q=D+48|0;if(c[(q&p)>>2]|0){Q=73;break}k=A+38|0;r=b[(k&o)>>1]|0;if(r<<16>>16>0){h=A+4|0;u=B+1|0;t=0;do{m=c[((c[(h&p)>>2]|0)+(t*24|0)&p)>>2]|0;l=0;do{s=sv(c[(y+(l*72|0)&p)+24>>2]|0,m)|0;if((s|0)>-1){r=l;Q=77;break}l=l+1|0}while((l|0)<(u|0));if((Q|0)==77){Q=0;tv(Y,y,r,s,u,t,x,z);r=b[(k&o)>>1]|0}t=t+1|0}while((t|0)<(r<<16>>16|0))}}else q=D+48|0;r=c[(w&p)>>2]|0;if(r){if(c[(q&p)>>2]|0){Q=81;break}if(!v){uv(r,c[(D&p)+40>>2]|0);r=c[(w&p)>>2]|0}c[(z&p)>>2]=ss(c[(Y&p)>>2]|0,c[(z&p)>>2]|0,r)|0;c[(w&p)>>2]=0}m=c[(q&p)>>2]|0;if((m|0)!=0?(P=m+4|0,(c[(P&p)>>2]|0)>0):0){l=B+1|0;s=0;do{h=c[((c[(m&p)>>2]|0)+(s<<3)&p)>>2]|0;k=sv(A,h)|0;if((k|0)<0){Q=91;break g}else r=0;while(1){q=sv(c[(y+(r*72|0)&p)+24>>2]|0,h)|0;if((q|0)>-1)break;r=r+1|0;if((r|0)>=(l|0)){Q=91;break g}}tv(Y,y,r,q,l,k,x,z);s=s+1|0}while((s|0)<(c[(P&p)>>2]|0))}}B=B+1|0;if((B|0)>=((c[(y&p)>>2]|0)+-1|0))break f;else{C=C+72|0;D=D+72|0}}if((Q|0)==73){c[(Z&p)>>2]=0;th(Y,27928,Z);g=2;break a}else if((Q|0)==81){th(Y,27984,Z);g=2;break a}else if((Q|0)==91){c[(Z&p)>>2]=h;th(Y,28040,Z);g=2;break a}}while(0);h=c[(T&p)>>2]|0;r=(h|0)>0;h:do if(r){k=c[(T&p)+4>>2]|0;q=0;do{m=c[(k+(q*20|0)&p)>>2]|0;l=a[(m&n)>>0]|0;if(l<<24>>24==122){if((a[(c[(m&p)+16>>2]&n)>>0]|0)==116)break h}else if(l<<24>>24==116)break h;q=q+1|0}while((q|0)<(h|0))}else q=0;while(0);if((q|0)<(h|0)){P=c[(T&p)+4>>2]|0;q=c[((c[(Y&p)>>2]|0)&p)+24>>2]|0;if(!(q&32))O=0;else O=(q&64|0)==0;if(r){K=X+20|0;L=X+16|0;M=W+4|0;N=0;h=0;do{m=P+(N*20|0)|0;r=c[(m&p)>>2]|0;q=a[(r&n)>>0]|0;if(q<<24>>24==116){f=0;Q=110}else if(q<<24>>24==122?(a[(c[(r&p)+16>>2]&n)>>0]|0)==116:0){f=c[((c[(r&p)+12>>2]|0)&p)+8>>2]|0;Q=110}else Q=106;do if((Q|0)==106){h=lr(Y,h,r)|0;if(h){F=P+(N*20|0)+4|0;E=(c[(h&p)>>2]|0)+-1|0;D=c[(h&p)+4>>2]|0;c[(D+(E*20|0)&p)+4>>2]=c[(F&p)>>2];G=P+(N*20|0)+8|0;c[(D+(E*20|0)&p)+8>>2]=c[(G&p)>>2];c[(F&p)>>2]=0;c[(G&p)>>2]=0}c[(m&p)>>2]=0}else if((Q|0)==110){if((c[(S&p)>>2]|0)>0){G=(f|0)==0;H=(f|0)!=0;I=0;J=R;q=0;while(1){v=c[(J&p)+16>>2]|0;m=c[(J&p)+20>>2]|0;r=c[(J&p)+12>>2]|0;if(!r)r=c[(v&p)>>2]|0;if(a[(V&n)>>0]|0)break;if((m|0)!=0?(b[(m&o)+6>>1]&512)!=0:0){F=0;Q=125}else Q=117;do if((Q|0)==117){Q=0;if(!G?(dd(f,r)|0)!=0:0)break;s=c[(v&p)+68>>2]|0;if(!s){m=0;F=27816;Q=125;break}l=c[(K&p)>>2]|0;t=c[(L&p)>>2]|0;if((l|0)>0){k=0;while(1){m=k+1|0;if((c[(t+(k<<4)&p)+12>>2]|0)==(s|0)){m=k;break}if((m|0)<(l|0))k=m;else break}if((m|0)>-1)l=m;else{m=0;F=27816;Q=125;break}}else l=0;m=0;F=c[(t+(l<<4)&p)>>2]|0;Q=125}while(0);do if((Q|0)==125){Q=0;E=v+38|0;w=b[(E&o)>>1]|0;if(w<<16>>16<=0)break;A=v+4|0;z=(m|0)!=0;t=H&z;B=(I|0)>0;u=B&G;y=J+36|0;B=B^1;x=J+48|0;s=(F|0)==0;C=0;do{v=c[(A&p)>>2]|0;k=c[(v+(C*24|0)&p)>>2]|0;if(!(t?(vv(c[((c[((c[(m&p)>>2]|0)&p)+4>>2]|0)+(C*20|0)&p)+8>>2]|0,0,f,0)|0)==0:0))Q=129;i:do if((Q|0)==129){Q=0;if(a[(v+(C*24|0)&n)+23>>0]&2)break;if(u){if(!((a[(y&n)>>0]&4)==0|B)){v=0;do{if((sv(c[(S+(v*72|0)&p)+24>>2]|0,k)|0)>-1){q=1;break i}v=v+1|0}while((v|0)<(I|0))}if((wv(c[(x&p)>>2]|0,k)|0)>-1){q=1;break}}w=tt(X,27,k)|0;if(!O?(c[(S&p)>>2]|0)<=1:0){l=k;D=0}else Q=137;do if((Q|0)==137){Q=0;w=Zq(Y,122,tt(X,27,r)|0,w,0)|0;if(!s)w=Zq(Y,122,tt(X,27,F)|0,w,0)|0;if(!O){l=k;D=0;break}c[(Z&p)>>2]=r;c[(Z&p)+4>>2]=k;D=uh(X,27824,Z)|0;l=D}while(0);h=lr(Y,h,w)|0;c[(W&p)>>2]=l;if(!l)w=0;else{w=l;while(1)if(!(a[(w&n)>>0]|0))break;else w=w+1|0;w=w-l&1073741823}c[(M&p)>>2]=w;mr(Y,h,W,0);do if(h){if(!(b[(U&o)>>1]&512))break;v=(c[(h&p)>>2]|0)+-1|0;k=c[(h&p)+4>>2]|0;if(z)w=kh(X,c[((c[((c[(m&p)>>2]|0)&p)+4>>2]|0)+(C*20|0)&p)+8>>2]|0)|0;else{c[(Z&p)>>2]=F;c[(Z&p)+4>>2]=r;c[(Z&p)+8>>2]=l;w=uh(X,27832,Z)|0}c[(k+(v*20|0)&p)+8>>2]=w;w=k+(v*20|0)+13|0;a[(w&n)>>0]=a[(w&n)>>0]|2}while(0);mg(X,D);w=b[(E&o)>>1]|0;q=1}while(0);C=C+1|0}while((C|0)<(w<<16>>16|0))}while(0);I=I+1|0;if((I|0)>=(c[(S&p)>>2]|0))break;else J=J+72|0}if(q)break}if(!f){th(Y,27872,Z);break}else{c[(Z&p)>>2]=f;th(Y,27848,Z);break}}while(0);N=N+1|0}while((N|0)<(c[(T&p)>>2]|0))}else h=0;Nk(X,T);c[(g&p)>>2]=h}else h=c[(g&p)>>2]|0;if((h|0)!=0?(c[(h&p)>>2]|0)>(c[(X&p)+96>>2]|0):0){th(Y,27896,Z);g=0}else g=0}else g=2}else g=1}else g=2;while(0);i=_;return g|0}function ru(a,b){a=a|0;b=b|0;var d=0;d=c[(a&p)+12>>2]|0;while(1){a=c[(b&p)+56>>2]|0;if(!a)break;else b=a}b=c[(b&p)+68>>2]|0;if(b)c[(d&p)+532>>2]=c[(b&p)+4>>2];return}function su(d,f){d=d|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0;h=f+6|0;i=e[(h&o)>>1]|0;if((i&32|0)==0?(b[(h&o)>>1]=i|32,l=c[(d&p)+12>>2]|0,j=c[(f&p)+32>>2]|0,g=c[(j&p)>>2]|0,(g|0)>0):0){f=0;h=j+8|0;while(1){d=c[(h&p)+16>>2]|0;if(((d|0)!=0?(a[(d&n)+44>>0]&2)!=0:0)?(k=c[(h&p)+20>>2]|0,(k|0)!=0):0){g=k;while(1){i=c[(g&p)+52>>2]|0;if(!i)break;else g=i}ju(l,d,g);g=c[(j&p)>>2]|0}f=f+1|0;if((f|0)>=(g|0))break;else h=h+72|0}}return}function tu(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;if((a|0)!=0?(d=c[(a&p)>>2]|0,(d|0)>0):0){g=c[(a&p)+4>>2]|0;f=0;do{e=c[(g+(f*20|0)&p)>>2]|0;if((e|0)!=0?(h=c[(e&p)+24>>2]|0,(h|0)>(c[(b&p)>>2]|0)):0){c[(b&p)>>2]=h;d=c[(a&p)>>2]|0}f=f+1|0}while((f|0)<(d|0))}return}function uu(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0;if(((b|0)!=0?(Gs(a,c[(b&p)>>2]|0,d,e),Gs(a,c[(b&p)+40>>2]|0,d,e),Gs(a,c[(b&p)+48>>2]|0,d,e),g=b+44|0,c[(g&p)>>2]=Hs(a,c[(g&p)>>2]|0,d,e)|0,g=b+36|0,c[(g&p)>>2]=Hs(a,c[(g&p)>>2]|0,d,e)|0,uu(a,c[(b&p)+52>>2]|0,d,e),g=c[(b&p)+32>>2]|0,(g|0)!=0):0)?(f=c[(g&p)>>2]|0,(f|0)>0):0){b=f;f=g+8|0;while(1){uu(a,c[(f&p)+20>>2]|0,d,e);b=b+-1|0;if((b|0)<=0)break;else f=f+72|0}}return}function vu(b,d){b=b|0;d=d|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;f=c[(d&p)+48>>2]|0;l=c[(f&p)>>2]|0;g=c[(b&p)>>2]|0;m=Rs(g,l+1|0,1)|0;if((m|0)!=0&(l|0)>0){k=f+4|0;i=g+8|0;h=m+16|0;j=0;do{g=c[(k&p)>>2]|0;f=c[(g+(j*20|0)&p)>>2]|0;if(!(c[(f&p)+4>>2]&256)){g=Ss(b,d,(e[(g+(j*20|0)&o)+16>>1]|0)+-1|0)|0;if(!g)g=c[(i&p)>>2]|0;f=xv(b,f,c[(g&p)>>2]|0)|0;c[((c[(k&p)>>2]|0)+(j*20|0)&p)>>2]=f}else g=cu(b,f)|0;c[(m+(j<<2)&p)+20>>2]=g;a[((c[(h&p)>>2]|0)+j&n)>>0]=a[((c[(k&p)>>2]|0)+(j*20|0)&n)+12>>0]|0;j=j+1|0}while((j|0)!=(l|0))}return m|0}function wu(d,e,f,g){d=d|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,q=0,r=0;r=i;i=i+16|0;if((i|0)>=(j|0))fa();q=r;h=c[(d&p)>>2]|0;a:do if((f|0)!=0?(a[(h&n)+65>>0]|0)==0:0){k=c[(f&p)>>2]|0;if((k|0)>(c[(h&p)+96>>2]|0)){c[(q&p)>>2]=g;th(d,27120,q);e=1;break}m=c[(e&p)>>2]|0;if((k|0)>0){h=k;e=0;l=c[(f&p)+4>>2]|0;while(1){k=b[(l&o)+16>>1]|0;if(k<<16>>16){k=k&65535;h=c[(m&p)>>2]|0;if((k|0)>(h|0))break;yv(d,m,k+-1|0,c[(l&p)>>2]|0,g,0);h=c[(f&p)>>2]|0}e=e+1|0;if((e|0)>=(h|0)){e=0;break a}else l=l+20|0}c[(q&p)>>2]=e+1;c[(q&p)+4>>2]=g;c[(q&p)+8>>2]=h;th(d,27064,q);e=1}else e=0}else e=0;while(0);i=r;return e|0}function xu(b,e,f,g,h,i,j,k){b=b|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;k=k|0;var l=0,m=0,o=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0;v=b+8|0;w=c[(v&p)>>2]|0;y=w+32|0;l=c[(y&p)>>2]|0;z=xs(w)|0;if(i){o=wh(w,46,i,0,0)|0;m=f+8|0;r=c[(m&p)>>2]|0;t=i+1|0;q=f+12|0;s=c[(q&p)>>2]|0;if(j)c[(j&p)>>2]=(c[(j&p)>>2]|0)+1;r=wh(w,42,r,t,s)|0;xh(w,r,j,-6);r=r+2|0;wh(w,43,r,z,r)|0;r=c[(y&p)>>2]|0;if(r>>>0>o>>>0)c[((c[(w&p)+4>>2]|0)+(o*20|0)&p)+8>>2]=r;c[((c[(w&p)+24>>2]|0)&p)+88>>2]=r+-1;wh(w,33,c[(m&p)>>2]|0,t,(c[(q&p)>>2]|0)+-1|0)|0;wh(w,25,1,i,0)|0}if(!(a[((c[(b&p)>>2]|0)&n)+65>>0]|0)){it(w,c[(e&p)+12>>2]|0,z);switch(d[(g&n)>>0]|0){case 11:{q=g+1|0;a[(q&n)>>0]=Bu(c[(c[((c[(e&p)>>2]|0)&p)+4>>2]&p)>>2]|0,a[(q&n)>>0]|0)|0;o=b+19|0;m=a[(o&n)>>0]|0;if(!(m<<24>>24)){u=b+72|0;o=(c[(u&p)>>2]|0)+1|0;c[(u&p)>>2]=o}else{u=m+-1<<24>>24;a[(o&n)>>0]=u;o=c[(b+((u&255)<<2)&p)+24>>2]|0}u=f+8|0;xh(w,wh(w,49,c[(u&p)>>2]|0,1,o)|0,q,1);dt(b,c[(u&p)>>2]|0,1);wh(w,110,c[(g&p)+4>>2]|0,o,0)|0;_r(b,o);break}case 12:case 14:{m=b+19|0;q=a[(m&n)>>0]|0;if(q<<24>>24){i=q+-1<<24>>24;a[(m&n)>>0]=i;o=c[(b+((i&255)<<2)&p)+24>>2]|0;if(!(i<<24>>24))u=12;else{q=q+-2<<24>>24;a[(m&n)>>0]=q;q=c[(b+((q&255)<<2)&p)+24>>2]|0;m=o}}else{u=b+72|0;o=(c[(u&p)>>2]|0)+1|0;c[(u&p)>>2]=o;u=12}if((u|0)==12){m=b+72|0;q=(c[(m&p)>>2]|0)+1|0;c[(m&p)>>2]=q;m=o}wh(w,49,c[(f&p)+8>>2]|0,c[(f&p)+12>>2]|0,m)|0;o=g+4|0;wh(w,74,c[(o&p)>>2]|0,q,0)|0;wh(w,75,c[(o&p)>>2]|0,m,q)|0;o=c[(w&p)+4>>2]|0;if(o)a[(o+(((c[(y&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=8;_r(b,q);_r(b,m);break}case 13:{s=g+8|0;o=c[(s&p)>>2]|0;if(!o){o=c[(f&p)+12>>2]|0;q=b+60|0;m=c[(q&p)>>2]|0;j=b+56|0;r=c[(j&p)>>2]|0;if((r|0)<(o|0)){u=b+72|0;m=c[(u&p)>>2]|0;c[(u&p)>>2]=m+o;m=m+1|0}else{c[(q&p)>>2]=m+o;c[(j&p)>>2]=r-o}c[(s&p)>>2]=m;c[(g&p)+12>>2]=o}else{m=o;o=c[(g&p)+12>>2]|0}u=c[(f&p)+8>>2]|0;wh(c[(v&p)>>2]|0,32,u,m,o)|0;dt(b,u,o);wh(w,22,c[(g&p)+4>>2]|0,0,0)|0;break}case 10:{u=c[(f&p)+8>>2]|0;wh(c[(v&p)>>2]|0,32,u,c[(g&p)+4>>2]|0,1)|0;dt(b,u,1);break}default:{i=f+8|0;u=f+12|0;wh(w,35,c[(i&p)>>2]|0,c[(u&p)>>2]|0,0)|0;dt(b,c[(i&p)>>2]|0,c[(u&p)>>2]|0)}}m=c[(e&p)+8>>2]|0;if(m)wh(w,140,m,k,0)|0;m=c[(w&p)+24>>2]|0;o=~z;if((z|0)<0?(x=c[(m&p)+112>>2]|0,(x|0)!=0):0)c[(x+(o<<2)&p)>>2]=c[(y&p)>>2];c[(m&p)+88>>2]=(c[(y&p)>>2]|0)+-1;wh(w,18,h,0,0)|0}else l=0;return l|0}function yu(e,f,g){e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0,v=0;v=i;i=i+80|0;if((i|0)>=(j|0))fa();u=v+64|0;t=v+32|0;h=v;a[(u&n)>>0]=1;if((f|0)!=0?(c[(e&p)+4>>2]|0)!=0:0){k=d[(f&n)>>0]|0;a:do if((k|0)==154|(k|0)==156){s=b[(f&o)+32>>1]|0;h=s<<16>>16;if(e){r=f+28|0;b:while(1){while(1){q=c[(e&p)+4>>2]|0;m=c[(q&p)>>2]|0;c:do if((m|0)>0){f=c[(r&p)>>2]|0;k=0;while(1){l=k+1|0;if((c[(q+(k*72|0)&p)+48>>2]|0)==(f|0)){l=k;break c}if((l|0)<(m|0))k=l;else break}}else l=0;while(0);if((l|0)>=(m|0))break;m=c[(q+(l*72|0)&p)+24>>2]|0;l=c[(q+(l*72|0)&p)+28>>2]|0;f=(m|0)==0;if(!((e|0)!=0&f))break b}e=c[(e&p)+16>>2]|0;if(!e){h=0;break a}}if(!f){if(l){if(s<<16>>16<=-1){h=0;break}k=c[(l&p)>>2]|0;if((h|0)>=(c[(k&p)>>2]|0)){h=0;break}h=c[((c[(k&p)+4>>2]|0)+(h*20|0)&p)>>2]|0;c[(t&p)+4>>2]=c[(l&p)+32>>2];c[(t&p)+16>>2]=e;c[(t&p)>>2]=c[(e&p)>>2];h=yu(t,h,u)|0;break}if(c[(m&p)+68>>2]|0){if(s<<16>>16<0)h=b[(m&o)+36>>1]|0;if((h|0)<0)h=11144;else{s=c[(m&p)+4>>2]|0;t=c[(s+(h*24|0)&p)+12>>2]|0;a[(u&n)>>0]=a[(s+(h*24|0)&n)+22>>0]|0;h=t}}else h=0}else h=0}else h=0}else if((k|0)==119){s=c[(f&p)+20>>2]|0;t=c[(c[((c[(s&p)>>2]|0)&p)+4>>2]&p)>>2]|0;c[(h&p)+4>>2]=c[(s&p)+32>>2];c[(h&p)+16>>2]=e;c[(h&p)>>2]=c[(e&p)>>2];h=yu(h,t,u)|0}else h=0;while(0);if(g)a[(g&n)>>0]=a[(u&n)>>0]|0}else h=0;i=v;return h|0}function zu(b,d,e,f,g){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,i=0,j=0;j=c[(b&p)+8>>2]|0;h=b+19|0;i=a[(h&n)>>0]|0;if(!(i<<24>>24)){i=b+72|0;h=(c[(i&p)>>2]|0)+1|0;c[(i&p)>>2]=h}else{i=i+-1<<24>>24;a[(h&n)>>0]=i;h=c[(b+((i&255)<<2)&p)+24>>2]|0}xh(j,wh(j,69,d,e,g)|0,f,-14);wh(j,49,g,f,h)|0;wh(j,110,d,h,0)|0;_r(b,h);return}function Au(b,d,f,g,h,i){b=b|0;d=d|0;f=f|0;g=g|0;h=h|0;i=i|0;var j=0,k=0,l=0,m=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;x=b+8|0;C=c[(x&p)>>2]|0;B=d+24|0;k=a[(B&n)>>0]&1;q=k<<24>>24==0;k=(k^1)&255;j=c[(d&p)>>2]|0;r=c[(j&p)>>2]|0;s=r+h+k|0;v=b+72|0;m=c[(v&p)>>2]|0;A=m+1|0;c[(v&p)>>2]=A;y=d+4|0;t=c[(y&p)>>2]|0;i=(i|0)==0;if(i){c[(v&p)>>2]=A+s;w=m+2|0}else w=g-r-k|0;bt(b,j,w,1);if(q)wh(C,73,c[(d&p)+8>>2]|0,w+r|0,0)|0;if(i){wh(c[(x&p)>>2]|0,32,g,k+r+w|0,h)|0;dt(b,g,h)}wh(C,49,w+t|0,s-t|0,A)|0;if((t|0)>0){j=c[(v&p)>>2]|0;h=j+1|0;i=c[(y&p)>>2]|0;c[(v&p)>>2]=i+j;if(q)g=wh(C,46,w+r|0,0,0)|0;else g=wh(C,59,c[(d&p)+8>>2]|0,0,0)|0;wh(C,42,h,w,c[(y&p)>>2]|0)|0;m=c[(d&p)+20>>2]|0;if((m|0)<0)m=(c[(C&p)+32>>2]|0)+-1|0;if(!(a[((c[(C&p)>>2]|0)&n)+65>>0]|0))m=(c[(C&p)+4>>2]|0)+(m*20|0)|0;else m=29120;if(!(a[((c[(b&p)>>2]|0)&n)+65>>0]|0)){c[(m&p)+8>>2]=s-i;m=m+16|0;i=c[(m&p)>>2]|0;fw(c[(i&p)+16>>2]|0,0,e[(i&o)+6>>1]|0)|0;xh(C,-1,i,-6);c[(m&p)>>2]=Us(b,c[(d&p)>>2]|0,t,(e[(i&o)+8>>1]|0)+-1|0)|0;m=C+32|0;i=c[(m&p)>>2]|0;l=i+1|0;wh(C,43,l,0,l)|0;l=xs(C)|0;c[(d&p)+16>>2]=l;k=(c[(v&p)>>2]|0)+1|0;c[(v&p)>>2]=k;c[(d&p)+12>>2]=k;wh(C,17,k,l,0)|0;l=d+8|0;wh(C,119,c[(l&p)>>2]|0,0,0)|0;k=c[(m&p)>>2]|0;if(k>>>0>g>>>0)c[((c[(C&p)+4>>2]|0)+(g*20|0)&p)+8>>2]=k;j=C+24|0;c[((c[(j&p)>>2]|0)&p)+88>>2]=k+-1;k=c[(y&p)>>2]|0;wh(c[(x&p)>>2]|0,32,w,h,k)|0;dt(b,w,k);k=c[(m&p)>>2]|0;if(k>>>0>i>>>0)c[((c[(C&p)+4>>2]|0)+(i*20|0)&p)+8>>2]=k;c[((c[(j&p)>>2]|0)&p)+88>>2]=k+-1;u=23}}else{l=d+8|0;u=23}if((u|0)==23?(wh(C,110-(a[(B&n)>>0]&1)|0,c[(l&p)>>2]|0,A,0)|0,z=c[(f&p)+8>>2]|0,(z|0)!=0):0){k=c[(f&p)+12>>2]|0;k=wh(C,139,(k|0)==0?z:k+1|0,0,-1)|0;wh(C,105,c[(l&p)>>2]|0,0,0)|0;wh(C,95,c[(l&p)>>2]|0,0,0)|0;j=c[(C&p)+32>>2]|0;if(j>>>0>k>>>0)c[((c[(C&p)+4>>2]|0)+(k*20|0)&p)+8>>2]=j;c[((c[(C&p)+24>>2]|0)&p)+88>>2]=j+-1}return}function Bu(a,b){a=a|0;b=b|0;a=kv(a)|0;if(!(a<<24>>24==0|b<<24>>24==0))return (a<<24>>24>66|b<<24>>24>66?67:65)|0;if(!((a|b)<<24>>24))a=65;else a=(b&255)+(a&255)&255;return a|0}function Cu(d,e,f){d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0;do if(!((d|0)==0|(e|0)==0)){j=c[(d&p)+4>>2]|0;k=c[(e&p)+4>>2]|0;l=k|j;if(l&1024){if((j&1024&k|0)!=0?(c[(d&p)+8>>2]|0)==(c[(e&p)+8>>2]|0):0){g=0;break}g=2;break}g=a[(d&n)>>0]|0;h=a[(e&n)>>0]|0;if(g<<24>>24!=h<<24>>24){if(g<<24>>24==95?(Cu(c[(d&p)+12>>2]|0,e,f)|0)<2:0){g=1;break}if(h<<24>>24==95?(Cu(d,c[(e&p)+12>>2]|0,f)|0)<2:0){g=1;break}g=2;break}if((!(g<<24>>24==-100|g<<24>>24==-102)?(i=c[(d&p)+8>>2]|0,(i|0)!=0):0)?(_v(i,c[(e&p)+8>>2]|0)|0)!=0:0){g=g<<24>>24==95?1:2;break}if(!((k^j)&16)){if(!(l&16384)){if(l&2048){g=2;break}if(Cu(c[(d&p)+12>>2]|0,c[(e&p)+12>>2]|0,f)|0){g=2;break}if(Cu(c[(d&p)+16>>2]|0,c[(e&p)+16>>2]|0,f)|0){g=2;break}if(Ts(c[(d&p)+20>>2]|0,c[(e&p)+20>>2]|0,f)|0){g=2;break}if(!(l&8192)){if((b[(d&o)+32>>1]|0)!=(b[(e&o)+32>>1]|0)){g=2;break}h=c[(d&p)+28>>2]|0;g=c[(e&p)+28>>2]|0;if((h|0)!=(g|0)?(h|0)!=(f|0)|(g|0)>-1:0){g=2;break}}}g=0}else g=2}else g=(e|0)==(d|0)?0:2;while(0);return g|0}function Du(b,d,e){b=b|0;d=d|0;e=e|0;var f=0;f=b+8|0;a[(f&n)>>0]=e;a:do if(d){while(1){if((a[(d&n)>>0]|0)!=e<<24>>24)break;Du(b,c[(d&p)+12>>2]|0,e);d=c[(d&p)+16>>2]|0;a[(f&n)>>0]=e;if(!d)break a}zv(b,d,0)|0}while(0);return}function Eu(f,g){f=f|0;g=g|0;var h=0,i=0,j=0,k=0,l=0,m=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,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;F=c[(f&p)>>2]|0;T=c[(F&p)>>2]|0;V=c[(T&p)>>2]|0;O=V+65|0;do if(!(a[(O&n)>>0]|0)){W=f+20|0;k=c[(W&p)>>2]|0;h=k+(g*48|0)|0;ba=F+68|0;U=c[(h&p)>>2]|0;v=U+12|0;l=c[(v&p)>>2]|0;A=Av(ba,l)|0;z=G;j=a[(U&n)>>0]|0;x=j&255;do if(j<<24>>24==75){m=U+20|0;if(!(c[(U&p)+4>>2]&2048)){i=Lu(ba,c[(m&p)>>2]|0)|0;w=G;S=k+(g*48|0)+32|0;c[(S&p)>>2]=i;c[(S&p)+4>>2]=w;break}else{i=Bv(ba,c[(m&p)>>2]|0)|0;w=G;S=k+(g*48|0)+32|0;c[(S&p)>>2]=i;c[(S&p)+4>>2]=w;break}}else if(j<<24>>24==76){i=k+(g*48|0)+32|0;c[(i&p)>>2]=0;c[(i&p)+4>>2]=0;i=0;w=0}else{i=Av(ba,c[(U&p)+16>>2]|0)|0;w=G;S=k+(g*48|0)+32|0;c[(S&p)>>2]=i;c[(S&p)+4>>2]=w}while(0);t=Av(ba,U)|0;m=G;Q=U+4|0;if(!(c[(Q&p)>>2]&1)){R=0;S=0;y=m}else{r=b[(U&o)+36>>1]|0;q=c[(ba&p)>>2]|0;a:do if((q|0)>0){s=0;while(1){if((c[(F+(s<<2)&p)+72>>2]|0)==(r|0))break;s=s+1|0;if((s|0)>=(q|0)){s=0;r=0;break a}}s=iw(1,0,s|0)|0;r=G}else{s=0;r=0}while(0);R=jw(s|0,r|0,-1,-1)|0;S=G;t=s|t;y=r|m}u=k+(g*48|0)+40|0;c[(u&p)>>2]=t;c[(u&p)+4>>2]=y;u=k+(g*48|0)+8|0;c[(u&p)>>2]=-1;c[(k+(g*48|0)&p)+4>>2]=-1;C=k+(g*48|0)+18|0;b[(C&o)>>1]=0;s=x+-75|0;if(s>>>0<9?(499>>>(s&511)&1)!=0:0){b:do if(!l)l=0;else while(1){s=c[(l&p)+4>>2]|0;if(!(s&4096))break b;if(!(s&262144))q=l+12|0;else q=c[((c[(l&p)+20>>2]|0)&p)+4>>2]|0;l=c[(q&p)>>2]|0;if(!l){l=0;break}}while(0);s=c[(U&p)+16>>2]|0;c:do if(!s)s=0;else while(1){r=c[(s&p)+4>>2]|0;if(!(r&4096))break c;if(!(r&262144))s=s+12|0;else s=c[((c[(s&p)+20>>2]|0)&p)+4>>2]|0;s=c[(s&p)>>2]|0;if(!s){s=0;break}}while(0);w=(i&A|0)==0&(w&z|0)==0?4095:1024;if((a[(l&n)>>0]|0)==-102){m=c[(l&p)+28>>2]|0;c[(u&p)>>2]=m;c[(k+(g*48|0)&p)+12>>2]=b[(l&o)+32>>1];if((x|0)==75)q=1;else if((x|0)==76)q=128;else q=2<>1]=q&w}else m=-1;if((s|0)!=0?(a[(s&n)>>0]|0)==-102:0){if((m|0)>-1){l=Mr(V,U,0,0)|0;if(a[(O&n)>>0]|0){Gk(V,l);break}m=zv(f,l,3)|0;if(!m)break;q=c[(W&p)>>2]|0;k=q+(m*48|0)|0;c[(q+(m*48|0)&p)+4>>2]=g;b[(q+(m*48|0)&o)+16>>1]=b[(q+(g*48|0)&o)+16>>1]|0;h=q+(g*48|0)+22|0;a[(h&n)>>0]=(a[(h&n)>>0]|0)+1<<24>>24;h=q+(g*48|0)|0;s=q+(g*48|0)+20|0;b[(s&o)>>1]=e[(s&o)>>1]|8;if(((a[(U&n)>>0]|0)==79?(c[(Q&p)>>2]&1|0)==0:0)?(b[(V&o)+60>>1]&512)==0:0){v=q+(g*48|0)+18|0;b[(v&o)>>1]=e[(v&o)>>1]|1024;v=1024}else v=0}else{v=0;l=U;k=h}j=l+16|0;r=(c[(j&p)>>2]|0)+4|0;q=c[(r&p)>>2]|0;m=q&256;i=l+12|0;s=c[(i&p)>>2]|0;do if((m|0)==(c[(s&p)+4>>2]&256|0)){if(m){c[(r&p)>>2]=q&-257;break}s=(cu(T,s)|0)==0;q=c[(i&p)>>2]|0;if(s)s=q;else{s=q+4|0;c[(s&p)>>2]=c[(s&p)>>2]|256;s=q}}while(0);q=c[(j&p)>>2]|0;c[(j&p)>>2]=s;c[(i&p)>>2]=q;m=a[(l&n)>>0]|0;if((m&255)>79){m=((m&255)+176^2)+80&255;a[(l&n)>>0]=m}l=c[(q&p)+4>>2]|0;if(l&4096)do{if(!(l&262144))q=q+12|0;else q=c[((c[(q&p)+20>>2]|0)&p)+4>>2]|0;q=c[(q&p)>>2]|0;l=c[(q&p)+4>>2]|0}while((l&4096|0)!=0);c[(k&p)+8>>2]=c[(q&p)+28>>2];c[(k&p)+12>>2]=b[(q&o)+32>>1];l=k+32|0;c[(l&p)>>2]=R|A;c[(l&p)+4>>2]=S|z;l=k+40|0;c[(l&p)>>2]=t;c[(l&p)+4>>2]=y;l=m&255;if((l|0)==76)l=128;else if((l|0)==75)l=1;else l=2<>1]=l+v&(w&65535)}}else K=59;do if((K|0)==59){if(j<<24>>24==74){if((a[(f&n)+8>>0]|0)!=72)break;m=(c[(U&p)+20>>2]|0)+4|0;i=U+36|0;j=0;while(1){t=d[(j&n)+34144>>0]|0;l=Mr(V,l,0,0)|0;l=Zq(T,t,l,Mr(V,c[((c[(m&p)>>2]|0)+(j*20|0)&p)>>2]|0,0,0)|0,0)|0;if(l){t=l+4|0;c[(t&p)>>2]=c[(t&p)>>2]|c[(Q&p)>>2]&1;b[(l&o)+36>>1]=b[(i&o)>>1]|0}t=zv(f,l,3)|0;Eu(f,t);k=c[(W&p)>>2]|0;c[(k+(t*48|0)&p)+4>>2]=g;b[(k+(t*48|0)&o)+16>>1]=b[(k+(g*48|0)&o)+16>>1]|0;t=k+(g*48|0)+22|0;a[(t&n)>>0]=(a[(t&n)>>0]|0)+1<<24>>24;j=j+1|0;if((j|0)==2)break;l=c[(v&p)>>2]|0}h=k+(g*48|0)|0;break}else if(j<<24>>24!=71)break;A=mh(V,416,0)|0;d:do if(A){fw(A|0,0,416)|0;c[(k+(g*48|0)&p)+12>>2]=A;D=k+(g*48|0)+20|0;b[(D&o)>>1]=e[(D&o)>>1]|16;c[(A&p)>>2]=F;c[(A&p)+4>>2]=0;D=A+12|0;c[(D&p)>>2]=0;c[(A&p)+16>>2]=8;E=A+20|0;c[(E&p)>>2]=A+24;Du(A,U,71);m=c[(D&p)>>2]|0;if((m|0)>0)do{m=m+-1|0;Eu(A,m)}while((m|0)>0);if(!(a[(O&n)>>0]|0)){s=c[(D&p)>>2]|0;if((s|0)>0){z=F+68|0;y=-1;x=-1;i=-1;h=-1;w=c[(E&p)>>2]|0;while(1){s=s+-1|0;r=w+18|0;v=b[(r&o)>>1]|0;if(!(v&255)){l=mh(V,408,0)|0;if(!l){m=y;q=x;i=0;h=0}else{c[(w&p)+12>>2]=l;q=w+20|0;b[(q&o)>>1]=e[(q&o)>>1]|32;b[(r&o)>>1]=512;c[(l&p)>>2]=c[(f&p)>>2];q=l+4|0;c[(q&p)>>2]=0;m=l+12|0;c[(m&p)>>2]=0;c[(l&p)+16>>2]=8;t=l+20|0;c[(t&p)>>2]=l+24;Du(l,c[(w&p)>>2]|0,72);r=c[(m&p)>>2]|0;if((r|0)>0)do{r=r+-1|0;Eu(l,r)}while((r|0)>0);c[(q&p)>>2]=f;if((a[(O&n)>>0]|0)==0?(B=c[(m&p)>>2]|0,(B|0)>0):0){r=0;q=0;h=0;u=c[(t&p)>>2]|0;while(1){m=(d[(c[(u&p)>>2]&n)>>0]|0)+-75|0;do if(m>>>0<9){if(!(499>>>(m&511)&1))break;l=c[(u&p)+8>>2]|0;j=c[(z&p)>>2]|0;e:do if((j|0)>0){m=0;while(1){if((c[(F+(m<<2)&p)+72>>2]|0)==(l|0))break;m=m+1|0;if((m|0)>=(j|0)){m=0;l=0;break e}}m=iw(1,0,m|0)|0;l=G}else{m=0;l=0}while(0);r=m|r;q=l|q}while(0);h=h+1|0;if((h|0)>=(B|0))break;else u=u+48|0}}else{r=0;q=0}m=r&y;q=q&x;i=0;h=0}}else{q=b[(w&o)+20>>1]|0;if(!(q&8)){t=c[(w&p)+8>>2]|0;l=c[(z&p)>>2]|0;m=(l|0)>0;f:do if(m){r=0;while(1){if((c[(F+(r<<2)&p)+72>>2]|0)==(t|0))break;r=r+1|0;if((r|0)>=(l|0)){j=0;u=0;break f}}j=iw(1,0,r|0)|0;u=G}else{j=0;u=0}while(0);if(!(q&2)){r=j;t=u}else{t=c[((c[(E&p)>>2]|0)+((c[(w&p)+4>>2]|0)*48|0)&p)+8>>2]|0;g:do if(m){r=0;while(1){if((c[(F+(r<<2)&p)+72>>2]|0)==(t|0))break;r=r+1|0;if((r|0)>=(l|0)){r=0;t=0;break g}}r=iw(1,0,r|0)|0;t=G}else{r=0;t=0}while(0);r=r|j;t=t|u}l=(v&2)==0;m=r&y;q=t&x;i=l?0:r&i;h=l?0:t&h}else{m=y;q=x}}r=(m|0)!=0|(q|0)!=0;if(!((s|0)>0&r))break;else{y=m;x=q;w=w+48|0}}t=A+408|0;c[(t&p)>>2]=m;c[(t&p)+4>>2]=q;b[(C&o)>>1]=(m|0)==0&(q|0)==0?0:256;if(r)K=104}else{i=A+408|0;c[(i&p)>>2]=-1;c[(i&p)+4>>2]=-1;b[(C&o)>>1]=256;i=-1;h=-1;K=104}h:do if((K|0)==104)if((c[(D&p)>>2]|0)==2){l=c[(E&p)>>2]|0;m=0;i:while(1){j=m+1|0;if((b[(l&o)+18>>1]|0)!=512)if(!m)r=l;else break h;else{q=c[(l&p)+12>>2]|0;if((c[(q&p)+12>>2]|0)<=(m|0))break h;r=(c[(q&p)+20>>2]|0)+(m*48|0)|0}if(!r)break h;else s=0;while(1){if((b[(l&o)+66>>1]|0)==512){q=c[(l&p)+60>>2]|0;if((c[(q&p)+12>>2]|0)<=(s|0)){m=j;continue i}q=(c[(q&p)+20>>2]|0)+(s*48|0)|0;if(!q){m=j;continue i}}else if(!s)q=l+48|0;else{m=j;continue i}Cv(f,r,q);l=c[(E&p)>>2]|0;s=s+1|0}}}while(0);if(!((i|0)==0&(h|0)==0)){u=F+68|0;t=-1;v=0;while(1){q=c[(D&p)>>2]|0;if((q|0)<=0)break d;s=c[(E&p)>>2]|0;while(1){j=q;q=q+-1|0;l=s+20|0;b[(l&o)>>1]=e[(l&o)>>1]&65471;l=c[(s&p)+8>>2]|0;if((l|0)!=(t|0)){m=c[(u&p)>>2]|0;j:do if((m|0)>0){r=0;while(1){if((c[(F+(r<<2)&p)+72>>2]|0)==(l|0))break;r=r+1|0;if((r|0)>=(m|0)){r=0;m=0;break j}}r=iw(1,0,r|0)|0;m=G}else{r=0;m=0}while(0);if(!((r&i|0)==0&(m&h|0)==0)){r=j;break}}if((q|0)<=0)break d;else s=s+48|0}m=c[(s&p)+12>>2]|0;if((r|0)<1)break d;else r=l;while(1){if((r|0)==(l|0)){if((c[(s&p)+12>>2]|0)!=(m|0)){q=l;m=1;break}t=kv(c[((c[(s&p)>>2]|0)&p)+16>>2]|0)|0;if(!(t<<24>>24==0|t<<24>>24==(kv(c[((c[(s&p)>>2]|0)&p)+12>>2]|0)|0)<<24>>24)){q=l;m=1;break}t=s+20|0;b[(t&o)>>1]=e[(t&o)>>1]|64}else{t=s+20|0;b[(t&o)>>1]=e[(t&o)>>1]&65471}if((q|0)<=0){q=l;m=0;break}r=c[(s&p)+56>>2]|0;q=q+-1|0;s=s+48|0}v=v+1|0;if(!((v|0)<2&m))break;else t=q}if(!m){l=c[(D&p)>>2]|0;if((l|0)>0){m=0;i=0;j=c[(E&p)>>2]|0;while(1){l=l+-1|0;if(b[(j&o)+20>>1]&64){m=Mr(V,c[((c[(j&p)>>2]|0)&p)+16>>2]|0,0,0)|0;i=lr(c[(F&p)>>2]|0,i,m)|0;m=c[((c[(j&p)>>2]|0)&p)+12>>2]|0}if((l|0)<=0){l=m;break}else j=j+48|0}}else{l=0;i=0}j=Zq(T,75,Mr(V,l,0,0)|0,0,0)|0;if(!j)Nk(V,i);else{t=j+4|0;c[(t&p)>>2]=c[(t&p)>>2]|c[(Q&p)>>2]&1;b[(j&o)+36>>1]=b[(U&o)+36>>1]|0;c[(j&p)+20>>2]=i;t=zv(f,j,3)|0;Eu(f,t);k=c[(W&p)>>2]|0;c[(k+(t*48|0)&p)+4>>2]=g;b[(k+(t*48|0)&o)+16>>1]=b[(k+(g*48|0)&o)+16>>1]|0;t=k+(g*48|0)+22|0;a[(t&n)>>0]=(a[(t&n)>>0]|0)+1<<24>>24}b[(k+(g*48|0)&o)+18>>1]=2048}}}}else c[(k+(g*48|0)&p)+12>>2]=0;while(0);h=(c[(W&p)>>2]|0)+(g*48|0)|0}while(0);k:do if((a[(f&n)+8>>0]|0)==72){x=c[(T&p)>>2]|0;if((a[(U&n)>>0]|0)==-103){w=U+20|0;t=c[(w&p)>>2]|0;if((t|0)!=0?(c[(t&p)>>2]|0)==2:0){m=c[(U&p)+8>>2]|0;if(!m)l=0;else{l=m;while(1)if(!(a[(l&n)>>0]|0))break;else l=l+1|0;l=l-m&1073741823}l=Sh(x,m,l,2,1,0)|0;if(((((l|0)!=0?(H=b[(l&o)+2>>1]|0,(H&4)!=0):0)?(N=c[(l&p)+4>>2]|0,L=a[(N&n)>>0]|0,M=a[(N&n)+1>>0]|0,N=a[(N&n)+2>>0]|0,P=(H&65535)>>>3&1,I=(c[(w&p)>>2]|0)+4|0,J=c[((c[(I&p)>>2]|0)&p)+20>>2]|0,(a[(J&n)>>0]|0)==-102):0)?(kv(J)|0)<<24>>24==66:0)?(a[((c[(J&p)+44>>2]|0)&n)+44>>0]&16)==0:0){k=c[(c[(I&p)>>2]&p)>>2]|0;l:do if(!k)k=0;else while(1){j=c[(k&p)+4>>2]|0;if(!(j&4096))break l;if(!(j&262144))k=k+12|0;else k=c[((c[(k&p)+20>>2]|0)&p)+4>>2]|0;k=c[(k&p)>>2]|0;if(!k){k=0;break}}while(0);j=a[(k&n)>>0]|0;u=j<<24>>24==-121;do if(u){l=c[(T&p)+476>>2]|0;r=b[(k&o)+32>>1]|0;s=r<<16>>16;do if(!l){i=0;m=0}else{K=s+-1|0;J=c[(l&p)+60>>2]|0;i=J+(K*40|0)|0;if(b[(J+(K*40|0)&o)+8>>1]&1){i=0;m=0;break}m=c[(l&p)>>2]|0;q=mh(m,40,0)|0;if(!q){i=0;m=0;break}l=q+0|0;j=l+40|0;do{a[(l&n)>>0]=0;l=l+1|0}while((l|0)<(j|0));K=q+8|0;b[(K&o)>>1]=1;c[(q&p)+32>>2]=m;_g(q,i)|0;if((b[(K&o)>>1]&15)!=2){i=q;m=0;break}i=q;m=Sg(q,1)|0}while(0);l=c[(T&p)+8>>2]|0;if(r<<16>>16>32){c[(l&p)+188>>2]=-1;t=m;K=177;break}else{t=l+188|0;c[(t&p)>>2]=c[(t&p)>>2]|1<>24==97){i=0;t=c[(k&p)+8>>2]|0;K=177}else i=0;while(0);do if((K|0)==177)if(t){m=0;while(1){K=a[(t+m&n)>>0]|0;j=K<<24>>24==L<<24>>24;l=m+1|0;if(K<<24>>24!=N<<24>>24&((K<<24>>24==0|j|K<<24>>24==M<<24>>24)^1))m=l;else break}if(m){if((a[(t+m+-1&n)>>0]|0)==-1)break;if(j)l=(a[(t+l&n)>>0]|0)==0;else l=0;q=l&1;v=tt(x,97,t)|0;if(v)a[((c[(v&p)+8>>2]|0)+m&n)>>0]=0;do if(u){m=c[(T&p)+8>>2]|0;j=b[(k&o)+32>>1]|0;if(j<<16>>16>32)c[(m&p)+188>>2]=-1;else{N=m+188|0;c[(N&p)>>2]=c[(N&p)>>2]|1<<(j<<16>>16)+-1}if(!l){q=0;break}if(!(a[((c[(k&p)+8>>2]|0)&n)+1>>0]|0))break;j=T+19|0;l=a[(j&n)>>0]|0;if(!(l<<24>>24)){N=T+72|0;j=(c[(N&p)>>2]|0)+1|0;c[(N&p)>>2]=j}else{N=l+-1<<24>>24;a[(j&n)>>0]=N;j=c[(T+((N&255)<<2)&p)+24>>2]|0}is(T,k,j)|0;k=c[(m&p)+32>>2]|0;if(k>>>0>0)c[((c[(m&p)+4>>2]|0)+((k+-1|0)*20|0)&p)+12>>2]=0;_r(T,j)}while(0);Mh(i);if(!t){K=217;break k}r=c[((c[((c[(w&p)>>2]|0)&p)+4>>2]|0)&p)+20>>2]|0;m=Mr(V,v,0,0)|0;s=P<<16>>16!=0;do if(!s){if(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)break;i=h+20|0;b[(i&o)>>1]=e[(i&o)>>1]|1024;i=v+8|0;l=c[(i&p)>>2]|0;k=a[(l&n)>>0]|0;if(!(k<<24>>24))break;h=m+8|0;j=0;do{N=k&255;a[(l&n)>>0]=((d[(N&n)+10368>>0]|223)^32)&N;a[((c[(h&p)>>2]|0)+j&n)>>0]=a[(N&n)+9328>>0]|0;j=j+1|0;l=(c[(i&p)>>2]|0)+j|0;k=a[(l&n)>>0]|0}while(k<<24>>24!=0)}while(0);if(!(a[(O&n)>>0]|0)){k=c[(m&p)+8>>2]|0;if(!k)j=-1;else{j=k;while(1)if(!(a[(j&n)>>0]|0))break;else j=j+1|0;j=(j-k&1073741823)+-1|0}k=k+j|0;j=a[(k&n)>>0]|0;if(s)i=q;else{i=j<<24>>24==64?0:q;j=a[(j&255&n)+9328>>0]|0}a[(k&n)>>0]=(j&255)+1;l=i}else l=q;i=P<<16>>16==0?13752:11152;j=Zq(T,83,xv(T,Mr(V,r,0,0)|0,i)|0,v,0)|0;if(j){P=j+4|0;c[(P&p)>>2]=c[(P&p)>>2]|c[(Q&p)>>2]&1;b[(j&o)+36>>1]=b[(U&o)+36>>1]|0}k=zv(f,j,259)|0;Eu(f,k);i=Zq(T,82,xv(T,Mr(V,r,0,0)|0,i)|0,m,0)|0;if(i){P=i+4|0;c[(P&p)>>2]=c[(P&p)>>2]|c[(Q&p)>>2]&1;b[(i&o)+36>>1]=b[(U&o)+36>>1]|0}i=zv(f,i,259)|0;Eu(f,i);j=c[(W&p)>>2]|0;h=j+(g*48|0)|0;if(!l){K=217;break k}c[(j+(k*48|0)&p)+4>>2]=g;Q=j+(g*48|0)+16|0;b[(j+(k*48|0)&o)+16>>1]=b[(Q&o)>>1]|0;K=j+(g*48|0)+22|0;a[(K&n)>>0]=(a[(K&n)>>0]|0)+1<<24>>24;c[(j+(i*48|0)&p)+4>>2]=g;b[(j+(i*48|0)&o)+16>>1]=b[(Q&o)>>1]|0;a[(K&n)>>0]=(a[(K&n)>>0]|0)+1<<24>>24;K=217;break k}}while(0);Mh(i);K=217}else K=217}else K=217}}else K=217;while(0);if((K|0)==217)if(((((a[(U&n)>>0]|0)==-103?(dd(c[(U&p)+8>>2]|0,31416)|0)==0:0)?(X=c[(U&p)+20>>2]|0,(c[(X&p)>>2]|0)==2):0)?(Y=c[(X&p)+4>>2]|0,Z=c[(Y&p)+20>>2]|0,(a[(Z&n)>>0]|0)==-102):0)?(_=c[(Y&p)>>2]|0,$=Av(ba,_)|0,aa=G,ba=Av(ba,Z)|0,(ba&$|0)==0&(G&aa|0)==0):0){ba=zv(f,Zq(T,51,0,Mr(V,_,0,0)|0,0)|0,3)|0;h=c[(W&p)>>2]|0;_=h+(ba*48|0)+32|0;c[(_&p)>>2]=$;c[(_&p)+4>>2]=aa;c[(h+(ba*48|0)&p)+8>>2]=c[(Z&p)+28>>2];c[(h+(ba*48|0)&p)+12>>2]=b[(Z&o)+32>>1];b[(h+(ba*48|0)&o)+18>>1]=64;c[(h+(ba*48|0)&p)+4>>2]=g;b[(h+(ba*48|0)&o)+16>>1]=b[(h+(g*48|0)&o)+16>>1]|0;$=h+(g*48|0)+22|0;a[($&n)>>0]=(a[($&n)>>0]|0)+1<<24>>24;$=h+(g*48|0)+20|0;b[($&o)>>1]=e[($&o)>>1]|8;$=h+(g*48|0)+40|0;aa=c[($&p)+4>>2]|0;ba=h+(ba*48|0)+40|0;c[(ba&p)>>2]=c[($&p)>>2];c[(ba&p)+4>>2]=aa;h=h+(g*48|0)|0}g=h+32|0;aa=g;ba=c[(aa&p)+4>>2]|S;c[(g&p)>>2]=c[(aa&p)>>2]|R;c[(g&p)+4>>2]=ba}while(0);return}function Fu(a,d,e,f,g,h,k){a=a|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;var l=0,m=0;m=i;i=i+112|0;if((i|0)>=(j|0))fa();l=m;h=Dv(l,a,d,e,h,k)|0;a:do if(!h)h=0;else{k=h;h=0;do{d=k+32|0;e=c[(d&p)>>2]|0;d=c[(d&p)+4>>2]|0;if((e&f|0)==0&(d&g|0)==0){if((e|0)==0&(d|0)==0?(b[(k&o)+18>>1]&2)!=0:0){h=k;break a}h=(h|0)==0?k:h}k=Ev(l)|0}while((k|0)!=0)}while(0);i=m;return h|0}function Gu(e,f,g){e=e|0;f=f|0;g=g|0;var l=0,m=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0.0,B=0,C=0,D=0,E=0,F=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ca=0,ea=0,ga=0,ha=0,ia=0,ja=0,ka=0,la=0,ma=0,na=0,oa=0,pa=0,qa=0;pa=i;i=i+16|0;if((i|0)>=(j|0))fa();ma=pa;z=c[(e&p)>>2]|0;ka=c[(z&p)>>2]|0;na=c[(ka&p)>>2]|0;ja=c[(e&p)+4>>2]|0;la=c[(e&p)+12>>2]|0;y=d[(la&n)+16>>0]|0;z=c[(z&p)+4>>2]|0;ha=c[(z+(y*72|0)&p)+24>>2]|0;B=c[(e&p)+8>>2]|0;ia=ja+20|0;ja=ja+12|0;l=c[(ja&p)>>2]|0;if((l|0)>0){r=c[(z+(y*72|0)&p)+48>>2]|0;s=0;m=0;t=c[(ia&p)>>2]|0;while(1){if((c[(t&p)+8>>2]|0)==(r|0))m=((b[(t&o)+18>>1]&-1153)<<16>>16!=0&1)+m|0;s=s+1|0;if((s|0)==(l|0))break;else t=t+48|0}}else m=0;if(!B)x=0;else{v=c[(B&p)>>2]|0;a:do if((v|0)>0){t=c[(B&p)+4>>2]|0;s=z+(y*72|0)+48|0;u=0;while(1){r=c[(t+(u*20|0)&p)>>2]|0;if((a[(r&n)>>0]|0)!=-102){l=u;break a}l=u+1|0;if((c[(r&p)+28>>2]|0)!=(c[(s&p)>>2]|0)){l=u;break a}if((l|0)<(v|0))u=l;else break}}else l=0;while(0);x=(l|0)==(v|0)?v:0}l=(m*20|0)+56+(x<<3)|0;ga=mh(na,l,0)|0;do if(!ga){th(ka,15776,ma);l=7}else{fw(ga|0,0,l|0)|0;l=ga+56|0;w=l+(m*12|0)|0;c[(ga&p)>>2]=m;aa=ga+8|0;c[(aa&p)>>2]=x;ca=ga+4|0;c[(ca&p)>>2]=l;c[(ga&p)+12>>2]=w;ea=ga+16|0;c[(ea&p)>>2]=w+(x<<3);r=c[(ja&p)>>2]|0;if((r|0)>0){u=c[(z+(y*72|0)&p)+48>>2]|0;t=0;v=0;s=c[(ia&p)>>2]|0;while(1){if((c[(s&p)+8>>2]|0)==(u|0)?(C=b[(s&o)+18>>1]|0,(C&-1153)<<16>>16!=0):0){c[(l+(v*12|0)&p)>>2]=c[(s&p)+12>>2];c[(l+(v*12|0)&p)+8>>2]=t;a[(l+(v*12|0)&n)+4>>0]=(C&255)==1?2:C&255;v=v+1|0}t=t+1|0;if((t|0)==(r|0))break;else s=s+48|0}}if((x|0)>0){l=c[(B&p)+4>>2]|0;m=0;do{c[(w+(m<<3)&p)>>2]=b[((c[(l+(m*20|0)&p)>>2]|0)&o)+32>>1];a[(w+(m<<3)&n)+4>>0]=a[(l+(m*20|0)&n)+12>>0]|0;m=m+1|0}while((m|0)!=(x|0))}E=la;c[(E&p)>>2]=0;c[(E&p)+4>>2]=0;E=la+18|0;b[(E&o)>>1]=0;c[(la&p)+36>>2]=1024;F=la+40|0;b[(F&o)>>1]=0;H=la+28|0;a[(H&n)>>0]=0;I=c[(ea&p)>>2]|0;J=c[(ga&p)>>2]|0;if(Nu(na,la,J)|0){mg(na,ga);l=7;break}_=ga+28|0;$=ga+24|0;K=ga+20|0;L=ga+32|0;M=ga+40|0;N=ga+48|0;O=ha+60|0;P=ka+64|0;S=(J|0)>0;T=la+30|0;U=la+24|0;V=la+32|0;W=la+29|0;X=la+20|0;Y=la+22|0;Z=la+48|0;z=0;C=0;B=0;b:while(1){if(!((C|0)!=0|(z&1|0)==0))if((z|0)>2){l=0;break}else D=z+1|0;else D=z;if((B|0)==0&(D|0)>1){l=0;break}t=c[(ga&p)>>2]|0;if((t|0)>0){m=c[(ia&p)>>2]|0;r=0;s=c[(ca&p)>>2]|0;while(1){z=c[(s&p)+8>>2]|0;if((D|0)==2)a[(s&n)+5>>0]=b[(m+(z*48|0)&o)+18>>1]&1^1;else if(!D){l=s+5|0;a[(l&n)>>0]=0;y=(b[(m+(z*48|0)&o)+18>>1]&1)==0;C=y?C:1;z=m+(z*48|0)+32|0;z=(c[(z&p)>>2]|0)!=0|(c[(z&p)+4>>2]|0)!=0;if(z|y^1)B=z?1:B;else a[(l&n)>>0]=1}else if((D|0)==1){y=m+(z*48|0)+32|0;a[(s&n)+5>>0]=(c[(y&p)>>2]|0)==0&(c[(y&p)+4>>2]|0)==0&1}else a[(s&n)+5>>0]=1;r=r+1|0;if((r|0)>=(t|0)){y=C;break}else s=s+12|0}}else y=C;fw(I|0,0,t<<3|0)|0;if(c[(_&p)>>2]|0)Wc(c[($&p)>>2]|0);c[(K&p)>>2]=0;c[(K&p)+4>>2]=0;c[(K&p)+8>>2]=0;c[(K&p)+12>>2]=0;h[(M&q)>>3]=5.e+98;l=N;c[(l&p)>>2]=25;c[(l&p)+4>>2]=0;l=c[(ka&p)>>2]|0;z=O;while(1){z=c[(z&p)>>2]|0;if((c[(z&p)>>2]|0)==(l|0))break;else z=z+24|0}C=c[(z&p)+8>>2]|0;z=rc[c[((c[(C&p)>>2]|0)&p)+12>>2]&127](C,ga)|0;do if((z|0)==7)a[((c[(ka&p)>>2]|0)&n)+65>>0]=1;else if(z){l=c[(C&p)+8>>2]|0;if(l){c[(ma&p)>>2]=l;th(ka,10344,ma);break}if((z|0)!=516){z=z&255;if(z>>>0>26|(z|0)==2)z=16328;else z=c[(z<<2&p)+15488>>2]|0}else z=16344;c[(ma&p)>>2]=z;th(ka,10344,ma)}while(0);z=C+8|0;Wc(c[(z&p)>>2]|0);c[(z&p)>>2]=0;z=c[(ga&p)>>2]|0;if((z|0)>0){l=0;do{if((a[((c[(ca&p)>>2]|0)+(l*12|0)&n)+5>>0]|0)==0?(c[((c[(ea&p)>>2]|0)+(l<<3)&p)>>2]|0)>0:0){c[(ma&p)>>2]=c[(ha&p)>>2];th(ka,34096,ma);z=c[(ga&p)>>2]|0}l=l+1|0}while((l|0)<(z|0))}l=c[(P&p)>>2]|0;if(l)break;C=c[(ca&p)>>2]|0;x=la;c[(x&p)>>2]=f;c[(x&p)+4>>2]=g;c:do if(S){z=0;do{c[((c[(Z&p)>>2]|0)+(z<<2)&p)>>2]=0;z=z+1|0}while((z|0)!=(J|0));b[(T&o)>>1]=0;if(S){r=f;m=g;l=0;x=0;z=-1;while(1){t=c[(I+(x<<3)&p)>>2]|0;u=t+-1|0;do if((t|0)>0){v=c[(C&p)+8>>2]|0;if((t|0)>(J|0)|(v|0)<0){oa=65;break b}if((v|0)>=(c[(ja&p)>>2]|0)){oa=65;break b}s=(c[(Z&p)>>2]|0)+(u<<2)|0;if(c[(s&p)>>2]|0){oa=65;break b}w=c[(ia&p)>>2]|0;qa=w+(v*48|0)+32|0;r=r|c[(qa&p)>>2];m=m|c[(qa&p)+4>>2];qa=la;c[(qa&p)>>2]=r;c[(qa&p)+4>>2]=m;c[(s&p)>>2]=w+(v*48|0);z=(u|0)>(z|0)?u:z;do if((t|0)<17){if(!(a[(I+(x<<3)&n)+4>>0]|0))break;l=(l&65535|1<>1]=l}while(0);if(!(b[(w+(v*48|0)&o)+18>>1]&1))break;if(!(a[(I+(x<<3)&n)+4>>0]|0))break c;c[(L&p)>>2]=0}while(0);x=x+1|0;if((x|0)>=(J|0)){oa=73;break}else C=C+12|0}}else{z=-1;oa=73}}else{b[(T&o)>>1]=0;z=-1;oa=73}while(0);if((oa|0)==73){oa=0;b[(F&o)>>1]=z+1;c[(U&p)>>2]=c[(K&p)>>2];a[(H&n)>>0]=c[(_&p)>>2];c[(_&p)>>2]=0;c[(V&p)>>2]=c[($&p)>>2];if(!(c[(L&p)>>2]|0))z=0;else z=c[(aa&p)>>2]&255;a[(W&n)>>0]=z;b[(E&o)>>1]=0;A=+h[(M&q)>>3];h[(k&q)>>3]=A;z=c[(k&p)>>2]|0;l=c[(k&p)+4>>2]|0;do if(!(A<=1.0))if(!(A<=2.0e9)){z=mw(z|0,l|0,52)|0;z=jw(z|0,G|0,64514,0)|0;z=(z<<16>>16)*10&65535;break}else{z=fs(~~A>>>0,+R(A)>=1.0?(A>0.0?~~+da(+Q(A/4294967296.0),4294967295.0)>>>0:~~+ba((A-+(~~A>>>0))/4294967296.0)>>>0):0)|0;break}else z=0;while(0);b[(X&o)>>1]=z;x=N;b[(Y&o)>>1]=fs(c[(x&p)>>2]|0,c[(x&p)+4>>2]|0)|0;Fv(e,la)|0;if(a[(H&n)>>0]|0){Wc(c[(V&p)>>2]|0);a[(H&n)>>0]=0}}z=D+1|0;if((z|0)>=4){l=0;break}else C=y}if((oa|0)==65){c[(ma&p)>>2]=c[(ha&p)>>2];th(ka,34064,ma);l=1}if(c[(_&p)>>2]|0)Wc(c[($&p)>>2]|0);mg(na,ga)}while(0);i=pa;return l|0}function Hu(f,g,h){f=f|0;g=g|0;h=h|0;var k=0,l=0,m=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,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,ga=0;ga=i;i=i+64|0;if((i|0)>=(j|0))fa();s=ga;r=ga+56|0;q=ga+52|0;b[(q&o)>>1]=-1;ca=c[(f&p)+12>>2]|0;da=c[(f&p)>>2]|0;J=c[(da&p)+4>>2]|0;K=d[(ca&n)+16>>0]|0;Z=J+(K*72|0)+8|0;m=J+(K*72|0)+24|0;L=c[(m&p)>>2]|0;_=c[(f&p)+4>>2]|0;$=J+(K*72|0)+76|0;k=c[($&p)>>2]|0;do if(!k){if(a[(L&n)+44>>0]&32){s=c[(L&p)+8>>2]|0;break}k=s+0|0;l=k+52|0;do{c[(k&p)>>2]=0;k=k+4|0}while((k|0)<(l|0));b[(s&o)+46>>1]=1;b[(s&o)+48>>1]=1;c[(s&p)+4>>2]=q;c[(s&p)+8>>2]=r;a[(s&n)+50>>0]=5;c[(s&p)+12>>2]=L;b[(s&o)+44>>1]=b[(L&o)+42>>1]|0;b[(r&o)>>1]=b[(L&o)+28>>1]|0;b[(r&o)+2>>1]=0;if(!(a[(J+(K*72|0)&n)+45>>0]&1))c[(s&p)+20>>2]=c[((c[(m&p)>>2]|0)&p)+8>>2]}else s=k;while(0);r=b[(L&o)+28>>1]|0;if(r<<16>>16<11)E=0;else{E=r<<16>>16;E=((fs(E,((E|0)<0)<<31>>31)|0)&65535)+65503&65535}if(((((((c[(f&p)+16>>2]|0)==0?(b[(da&o)+34>>1]&128)==0:0)?(c[((c[(c[(da&p)>>2]&p)>>2]|0)&p)+24>>2]&1048576|0)!=0:0)?(c[($&p)>>2]|0)==0:0)?(t=a[(J+(K*72|0)&n)+45>>0]|0,(t&5)==0):0)?(I=L+44|0,(t&10|a[(I&n)>>0]&32)<<24>>24==0):0)?(F=c[(_&p)+20>>2]|0,Y=c[(_&p)+12>>2]|0,H=F+(Y*48|0)|0,(Y|0)>0):0){y=ca+8|0;z=ca+24|0;A=ca+42|0;B=ca+28|0;C=ca+40|0;D=ca+48|0;u=(E&65535)+(r&65535)|0;q=u+4&65535;m=ca+18|0;l=L+12|0;u=u+28&65535;v=ca+22|0;w=ca+20|0;x=ca+36|0;r=F;do{t=r+32|0;Y=t;X=y;if(((c[(X&p)>>2]&c[(Y&p)>>2]|0)==0?(c[(X&p)+4>>2]&c[(Y&p)+4>>2]|0)==0:0)?(Mu(r,Z,0,0)|0)!=0:0){b[(z&o)>>1]=1;b[(A&o)>>1]=0;c[(B&p)>>2]=0;b[(C&o)>>1]=1;c[(c[(D&p)>>2]&p)>>2]=r;b[(m&o)>>1]=q;if((c[(l&p)>>2]|0)==0?(a[(I&n)>>0]&2)==0:0)b[(m&o)>>1]=u;b[(v&o)>>1]=43;b[(w&o)>>1]=Gv(E,43)|0;c[(x&p)>>2]=16384;X=t;Y=c[(X&p)+4>>2]|h;k=ca;c[(k&p)>>2]=c[(X&p)>>2]|g;c[(k&p)+4>>2]=Y;k=Fv(f,ca)|0}else k=0;r=r+48|0}while((k|0)==0&r>>>0>>0)}else k=0;Y=ca+36|0;a:do if((k|0)==0&(s|0)!=0){P=ca+24|0;Q=ca+42|0;R=ca+40|0;S=ca+17|0;T=ca+18|0;U=ca+22|0;V=ca+28|0;W=J+(K*72|0)+48|0;X=ca+20|0;N=J+(K*72|0)+64|0;O=L+42|0;w=L+44|0;v=da+34|0;u=_+12|0;J=_+20|0;M=1;while(1){x=c[(s&p)+36>>2]|0;y=c[(W&p)>>2]|0;b:do if(x){k=c[(u&p)>>2]|0;if((k|0)>0){m=0;q=c[(J&p)>>2]|0;while(1){l=c[(q&p)>>2]|0;if(Hv(l,x,y)|0){if(!(c[(l&p)+4>>2]&1)){ea=32;break b}if((b[(l&o)+36>>1]|0)==(y|0)){ea=32;break b}}m=m+1|0;if((m|0)>=(k|0)){k=0;break}else q=q+48|0}}else k=0}else ea=32;while(0);if((ea|0)==32){ea=0;K=b[(c[(s&p)+8>>2]&o)>>1]|0;b[(P&o)>>1]=0;b[(Q&o)>>1]=0;b[(R&o)>>1]=0;a[(S&n)>>0]=0;b[(T&o)>>1]=0;L=ca;c[(L&p)>>2]=g;c[(L&p)+4>>2]=h;b[(U&o)>>1]=K;c[(V&p)>>2]=s;L=s+51|0;z=a[(L&n)>>0]|0;c:do if(((z&4)==0?(aa=c[((c[(f&p)>>2]|0)&p)+8>>2]|0,(aa|0)!=0):0)?(ba=c[(aa&p)>>2]|0,(ba|0)>0):0){I=c[(aa&p)+4>>2]|0;H=s+46|0;B=s+4|0;A=0;while(1){E=c[(I+(A*20|0)&p)>>2]|0;d:do if(!E)E=0;else while(1){D=c[(E&p)+4>>2]|0;if(!(D&4096))break d;if(!(D&262144))E=E+12|0;else E=c[((c[(E&p)+20>>2]|0)&p)+4>>2]|0;E=c[(E&p)>>2]|0;if(!E){E=0;break}}while(0);if((a[(E&n)>>0]|0)!=-102){A=0;break c}if((c[(E&p)+28>>2]|0)==(y|0)){D=b[(E&o)+32>>1]|0;if(D<<16>>16<0){A=1;break c}E=b[(H&o)>>1]|0;if(E<<16>>16){C=c[(B&p)>>2]|0;E=E&65535;F=0;do{if(D<<16>>16==(b[(C+(F<<1)&o)>>1]|0)){A=1;break c}F=F+1|0}while((F|0)<(E|0))}}A=A+1|0;if((A|0)>=(ba|0)){A=0;break}}}else A=0;while(0);do if((c[(s&p)+40>>2]|0)<1){c[(Y&p)>>2]=256;a[(S&n)>>0]=(A|0)!=0?M&255:0;b[(X&o)>>1]=(K&65535)+16;Iv(_,ca,K);k=Fv(f,ca)|0;b[(U&o)>>1]=K;if(k)break a}else{if(!(z&32)){H=N;I=c[(H&p)>>2]|0;H=c[(H&p)+4>>2]|0;F=s+4|0;E=0;D=0;C=e[(s&o)+48>>1]|0;e:while(1){B=C;while(1){C=B+-1|0;if((B|0)<=0)break e;B=b[((c[(F&p)>>2]|0)+(C<<1)&o)>>1]|0;if((B&65535)<63)break;else B=C}t=iw(1,0,B<<16>>16|0)|0;E=t|E;D=G|D}t=I&~E;x=H&~D;E=t;D=x;x=(t|0)==0&(x|0)==0?576:512}else{E=0;D=0;x=576}c[(Y&p)>>2]=x;t=(A|0)!=0;if(!t?(a[(w&n)>>0]&32)==0:0){if(!((E|0)==0&(D|0)==0))break;if(a[(L&n)>>0]&4)break;if((b[(s&o)+44>>1]|0)>=(b[(O&o)>>1]|0))break;if(!((b[(v&o)>>1]&4)==0&(c[2190]|0)!=0))break;if(b[((c[(c[(da&p)>>2]&p)>>2]|0)&o)+60>>1]&64)break}a[(S&n)>>0]=t?M&255:0;r=K<<16>>16;t=r+1+(((b[(s&o)+44>>1]|0)*15|0)/(b[(O&o)>>1]|0)|0)&65535;if(!((E|0)==0&(D|0)==0))t=Gv(t,r+16&65535)|0;b[(X&o)>>1]=t;Iv(_,ca,K);k=Fv(f,ca)|0;b[(U&o)>>1]=K;if(k)break a}while(0);k=Jv(f,Z,s,0)|0;if(c[($&p)>>2]|0)break a}s=c[(s&p)+20>>2]|0;if(!((k|0)==0&(s|0)!=0))break;else M=M+1|0}}while(0);i=ga;return k|0}function Iu(f,g,h){f=f|0;g=g|0;h=h|0;var k=0,l=0,m=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;ca=i;i=i+608|0;if((i|0)>=(j|0))fa();aa=ca+168|0;_=ca+576|0;$=ca+112|0;Y=ca+56|0;Z=ca;k=c[(f&p)>>2]|0;V=c[(f&p)+4>>2]|0;r=c[(V&p)+20>>2]|0;q=c[(V&p)+12>>2]|0;X=r+(q*48|0)|0;U=c[(f&p)+12>>2]|0;l=$+0|0;m=l+56|0;do{c[(l&p)>>2]=0;l=l+4|0}while((l|0)<(m|0));m=c[(k&p)+4>>2]|0;l=d[(U&n)+16>>0]|0;T=c[(m+(l*72|0)&p)+48>>2]|0;a:do if((q|0)>0){D=U+8|0;E=_+8|0;F=_+16|0;G=U+40|0;H=U+48|0;I=U+36|0;J=U+18|0;K=U+17|0;L=U+24|0;M=U+20|0;N=U+22|0;O=aa+4|0;P=aa+8|0;Q=aa+12|0;R=aa+20|0;S=_+4|0;z=m+(l*72|0)+24|0;A=Z+8|0;B=$+8|0;C=Y+8|0;while(1){b:do if((b[(r&o)+18>>1]&256)!=0?(W=c[(r&p)+12>>2]|0,w=W+408|0,v=D,!((c[(v&p)>>2]&c[(w&p)>>2]|0)==0?(c[(v&p)+4>>2]&c[(w&p)+4>>2]|0)==0:0)):0){q=W+20|0;y=(c[(q&p)>>2]|0)+((c[(W&p)+12>>2]|0)*48|0)|0;c[(_&p)>>2]=c[(f&p)>>2];c[(_&p)+4>>2]=c[(f&p)+4>>2];c[(_&p)+8>>2]=c[(f&p)+8>>2];c[(_&p)+12>>2]=c[(f&p)+12>>2];c[(E&p)>>2]=0;c[(F&p)>>2]=Y;q=c[(q&p)>>2]|0;c:do if(q>>>0>>0){l=1;k=0;d:while(1){if(!(b[(q&o)+18>>1]&512))if((c[(q&p)+8>>2]|0)==(T|0)){c[(aa&p)>>2]=c[(V&p)>>2];c[(O&p)>>2]=V;a[(P&n)>>0]=72;c[(Q&p)>>2]=1;c[(R&p)>>2]=q;m=aa;ba=10}else m=l;else{m=c[(q&p)+12>>2]|0;ba=10}do if((ba|0)==10){ba=0;c[(S&p)>>2]=m;b[(Y&o)>>1]=0;if(!(a[((c[(z&p)>>2]|0)&n)+44>>0]&16))k=Hu(_,g,h)|0;else k=Gu(_,g,h)|0;if(!k)k=Iu(_,g,h)|0;m=b[(Y&o)>>1]|0;if(!(m<<16>>16))break d;if(l){b[($&o)>>1]=m;kw(B|0,C|0,(m&65535)<<4|0)|0;m=0;break}w=b[($&o)>>1]|0;b[(Z&o)>>1]=w;x=w&65535;kw(A|0,B|0,x<<4|0)|0;b[($&o)>>1]=0;if(!(w<<16>>16))m=0;else{w=0;do{if(!(m<<16>>16))m=0;else{s=Z+(w<<4)+8|0;l=c[(s&p)>>2]|0;s=c[(s&p)+4>>2]|0;t=b[(Z+(w<<4)&o)+16>>1]|0;u=b[(Z+(w<<4)&o)+18>>1]|0;v=0;do{da=Y+(v<<4)+8|0;ea=c[(da&p)>>2]|l;da=c[(da&p)+4>>2]|s;m=Gv(t,b[(Y+(v<<4)&o)+16>>1]|0)|0;Kv($,ea,da,m,Gv(u,b[(Y+(v<<4)&o)+18>>1]|0)|0);v=v+1|0;m=b[(Y&o)>>1]|0}while((v|0)<(m&65535|0))}w=w+1|0}while((w|0)<(x|0));m=0}}while(0);q=q+48|0;if(q>>>0>=y>>>0)break c;else l=m}b[($&o)>>1]=0}else k=0;while(0);b[(G&o)>>1]=1;c[(c[(H&p)>>2]&p)>>2]=r;c[(I&p)>>2]=8192;b[(J&o)>>1]=0;a[(K&n)>>0]=0;c[(L&p)>>2]=0;c[(L&p)+4>>2]=0;c[(L&p)+8>>2]=0;if(k)break a;q=e[($&o)>>1]|0;m=0;while(1){if((m|0)>=(q|0))break b;b[(M&o)>>1]=(e[($+(m<<4)&o)+16>>1]|0)+1;b[(N&o)>>1]=b[($+(m<<4)&o)+18>>1]|0;v=$+(m<<4)+8|0;w=c[(v&p)+4>>2]|0;k=U;c[(k&p)>>2]=c[(v&p)>>2];c[(k&p)+4>>2]=w;k=Fv(f,U)|0;if(!k)m=m+1|0;else break a}}while(0);r=r+48|0;if(r>>>0>=X>>>0){k=0;break}}}else k=0;while(0);i=ca;return k|0}function Ju(a,d){a=a|0;d=d|0;var e=0,f=0,g=0;e=d+48|0;f=c[(e&p)>>2]|0;g=d+56|0;if((f|0)!=(g|0))mg(a,f);Lv(a,d);c[(e&p)>>2]=g;b[(d&o)+40>>1]=0;b[(d&o)+44>>1]=3;c[(d&p)+36>>2]=0;return}function Ku(d,f){d=d|0;f=f|0;var g=0,h=0,k=0,l=0,m=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,da=0,ea=0,ga=0,ha=0,ia=0,ja=0,ka=0,la=0,ma=0,na=0,oa=0;oa=i;i=i+32|0;if((i|0)>=(j|0))fa();ea=oa+24|0;aa=oa+16|0;ia=oa+8|0;na=oa;da=c[(d&p)>>2]|0;ka=c[(da&p)>>2]|0;r=a[(d&n)+41>>0]|0;la=r&255;if((r&255)<2)Y=1;else Y=r<<24>>24==2?5:10;ma=d+8|0;l=c[(ma&p)>>2]|0;ga=f<<16>>16==0;if((l|0)==0|ga)X=0;else X=c[(l&p)>>2]|0;m=X<<1;ja=m+(ca((la<<3)+64|0,Y)|0)|0;ja=mh(ka,ja,((ja|0)<0)<<31>>31)|0;do if(ja){l=ja+(Y<<5)|0;c[(l&p)>>2]=0;c[(l&p)+4>>2]=0;c[(l&p)+8>>2]=0;c[(l&p)+12>>2]=0;c[(l&p)+16>>2]=0;c[(l&p)+20>>2]=0;c[(l&p)+24>>2]=0;c[(l&p)+28>>2]=0;g=Y<<1;q=ca(Y,-2)|0;q=ja+((ca((((q|0)>-1?q:1073741823)+(Y<<1)<<2)+4|0,la)|0)+(Y<<6))|0;k=g;h=ja;g=ja+(g<<5)|0;while(1){c[(h&p)+24>>2]=g;k=k+-1|0;if((k|0)<=0)break;else{h=h+32|0;g=g+(la<<2)|0}}k=(X|0)!=0;if(k)fw(q|0,0,m|0)|0;else q=0;W=c[(da&p)+424>>2]|0;b[(ja+(Y<<5)&o)+16>>1]=W>>>0<48?W&65535:48;if(k)a[(ja+(Y<<5)&n)+22>>0]=r<<24>>24!=0?-1:X&255;W=r<<24>>24==0;if(!W){S=d+16|0;T=d+34|0;U=f<<16>>16<11;V=(f&65535)+16|0;P=f<<16>>16;Q=((P|0)<0)<<31>>31;R=Y>>>0>1;g=ja;O=0;m=0;r=0;f=0;h=1;while(1){if((h|0)>0){J=O&65535;K=O<<2;L=g+18|0;M=g+16|0;N=0;k=0;I=l;while(1){s=c[(S&p)>>2]|0;if(s){D=I+22|0;E=I+16|0;F=I+20|0;G=I+24|0;H=I+8|0;C=k;while(1){u=a[(D&n)>>0]|0;v=aa;c[(v&p)>>2]=0;c[(v&p)+4>>2]=0;v=s;k=I;t=c[(k&p)>>2]|0;k=c[(k&p)+4>>2]|0;a:do if(((c[(v&p)>>2]&~t|0)==0?(c[(v&p)+4>>2]&~k|0)==0:0)?(Z=s+8|0,$=Z,_=c[($&p)>>2]|0,$=c[($&p)+4>>2]|0,(_&t|0)==0&($&k|0)==0):0){y=e[(E&o)>>1]|0;A=Gv(b[(s&o)+18>>1]|0,y+(e[(s&o)+20>>1]|0)&65535)|0;A=Gv(A,b[(F&o)>>1]|0)|0;y=(e[(s&o)+22>>1]|0)+y|0;B=y&65535;x=_|t;v=$|k;if(u<<24>>24<0)z=Mv(d,c[(ma&p)>>2]|0,I,b[(T&o)>>1]|0,J,s,aa)|0;else{k=H;t=c[(k&p)+4>>2]|0;z=aa;c[(z&p)>>2]=c[(k&p)>>2];c[(z&p)+4>>2]=t;z=u}u=z<<24>>24;if(z<<24>>24>-1&(X|0)>(u|0)){w=q+(u<<1)|0;t=b[(w&o)>>1]|0;if(!(t<<16>>16)){u=((X-u|0)*100|0)/(X|0)|0;u=(fs(u,((u|0)<0)<<31>>31)|0)&65535;if(U)k=0;else k=((fs(P,Q)|0)&65535)+65503&65535;u=V+(((u<<16)+-4325376|0)>>>16)+k|0;if(b[(T&o)>>1]&1024)u=(u&65535)+16|0;t=u&65535;b[(w&o)>>1]=t}w=Gv(A,t)|0}else w=A;b:do if((C|0)>0){u=0;t=g;while(1){k=t;if(((c[(k&p)>>2]|0)==(x|0)?(c[(k&p)+4>>2]|0)==(v|0):0)?(a[(t&n)+22>>0]^z)<<24>>24>-1:0)break;u=u+1|0;if((u|0)>=(C|0)){ba=35;break b}else t=t+32|0}k=b[(t&o)+18>>1]|0;if(k<<16>>16>16){k=C;break a}if(k<<16>>16!=w<<16>>16){k=C;break}if((b[(t&o)+16>>1]|0)>(y<<16>>16|0))k=C;else{k=C;break a}}else ba=35;while(0);if((ba|0)==35){ba=0;t=(C|0)<(Y|0);if(!t){if(w<<16>>16>m<<16>>16){k=C;break}if(!(w<<16>>16!=m<<16>>16?1:A<<16>>16>16)){k=C;break}}k=(t&1)+C|0;t=g+((t?C:r)<<5)|0}u=I;y=Z;v=c[(y&p)+4>>2]|c[(u&p)+4>>2];x=t;c[(x&p)>>2]=c[(y&p)>>2]|c[(u&p)>>2];c[(x&p)+4>>2]=v;x=aa;v=c[(x&p)+4>>2]|0;u=t+8|0;c[(u&p)>>2]=c[(x&p)>>2];c[(u&p)+4>>2]=v;b[(t&o)+16>>1]=B;b[(t&o)+18>>1]=w;b[(t&o)+20>>1]=A;a[(t&n)+22>>0]=z;t=t+24|0;kw(c[(t&p)>>2]|0,c[(G&p)>>2]|0,K|0)|0;c[((c[(t&p)>>2]|0)+(O<<2)&p)>>2]=s;if((k|0)<(Y|0))break;m=b[(L&o)>>1]|0;f=b[(M&o)>>1]|0;if(R){v=g;w=1;u=m;r=0;t=f}else{r=0;break}while(1){m=b[(v&o)+50>>1]|0;do if(m<<16>>16<=u<<16>>16){if(m<<16>>16!=u<<16>>16){m=u;f=t;break}f=b[(v&o)+52>>1]|0;if(f<<16>>16>t<<16>>16)ba=48;else{m=u;f=t}}else{f=b[(v&o)+52>>1]|0;ba=48}while(0);v=v+32|0;if((ba|0)==48){ba=0;r=w}w=w+1|0;if((w|0)>=(Y|0))break;else{u=m;t=f}}}else k=C;while(0);s=c[(s&p)+52>>2]|0;if(!s)break;else C=k}}N=N+1|0;if((N|0)==(h|0)){h=k;break}else I=I+32|0}}else h=0;O=O+1|0;if((O|0)>=(la|0))break;else{N=g;g=l;l=N}}if(!h){th(da,34008,ea);mg(ka,ja);break}if((h|0)>1){k=1;l=g;do{if((b[(l&o)+18>>1]|0)>(b[(g+(k<<5)&o)+18>>1]|0))l=g+(k<<5)|0;k=k+1|0}while((k|0)!=(h|0))}else l=g;if(!W){h=d+4|0;k=c[(l&p)+24>>2]|0;g=0;do{ba=c[(k+(g<<2)&p)>>2]|0;c[(d+(g*80|0)&p)+800>>2]=ba;ba=a[(ba&n)+16>>0]|0;a[(d+(g*80|0)&n)+780>>0]=ba;c[(d+(g*80|0)&p)+740>>2]=c[((c[(h&p)>>2]|0)+((ba&255)*72|0)&p)+48>>2];g=g+1|0}while((g|0)<(la|0))}}h=d+34|0;if(((b[(h&o)>>1]&1536)==1024?(ha=d+40|0,!((a[(ha&n)>>0]|0)!=0|ga)):0)?(ba=d+12|0,aa=la+-1|0,aa=(Mv(d,c[(ba&p)>>2]|0,l,512,aa&65535,c[((c[(l&p)+24>>2]|0)+(aa<<2)&p)>>2]|0,ia)|0)<<24>>24,(aa|0)==(c[(c[(ba&p)>>2]&p)>>2]|0)):0)a[(ha&n)>>0]=2;k=c[(ma&p)>>2]|0;if(k){g=b[(h&o)>>1]|0;h=a[(l&n)+22>>0]|0;if(g&512){if((h<<24>>24|0)==(c[(k&p)>>2]|0))a[(d&n)+40>>0]=2}else{a[(d&n)+36>>0]=h<<24>>24<0?0:h;$=l+8|0;aa=c[($&p)+4>>2]|0;ba=d+24|0;c[(ba&p)>>2]=c[($&p)>>2];c[(ba&p)+4>>2]=aa}if(((g&2048)!=0?(a[(d&n)+36>>0]|0)==(c[(k&p)>>2]|0):0)?(ba=na,c[(ba&p)>>2]=0,c[(ba&p)+4>>2]=0,ba=la+-1|0,ba=(Mv(d,k,l,0,ba&65535,c[((c[(l&p)+24>>2]|0)+(ba<<2)&p)>>2]|0,na)|0)<<24>>24,(ba|0)==(c[(c[(ma&p)>>2]&p)>>2]|0)):0){a[(d&n)+37>>0]=1;$=na;aa=c[($&p)+4>>2]|0;ba=d+24|0;c[(ba&p)>>2]=c[($&p)>>2];c[(ba&p)+4>>2]=aa}}b[(d&o)+32>>1]=b[(l&o)+16>>1]|0;mg(ka,ja)}while(0);i=oa;return}function Lu(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;if((b|0)!=0?(g=c[(b&p)>>2]|0,(g|0)>0):0){e=c[(b&p)+4>>2]|0;d=0;b=0;f=0;do{h=Av(a,c[(e+(f*20|0)&p)>>2]|0)|0;d=h|d;b=G|b;f=f+1|0}while((f|0)<(g|0))}else{b=0;d=0}G=b;return d|0}function Mu(d,e,f,g){d=d|0;e=e|0;f=f|0;g=g|0;var h=0,i=0;do if((((c[(d&p)+8>>2]|0)==(c[(e&p)+40>>2]|0)?(b[(d&o)+18>>1]&2)!=0:0)?(i=d+32|0,(c[(i&p)>>2]&f|0)==0?(c[(i&p)+4>>2]&g|0)==0:0):0)?(h=c[(d&p)+12>>2]|0,(h|0)>=0):0){f=a[((c[((c[(e&p)+16>>2]|0)&p)+4>>2]|0)+(h*24|0)&n)+21>>0]|0;g=(nv(c[(d&p)>>2]|0)|0)<<24>>24;if((g|0)==66){g=f<<24>>24==66&1;break}else if((g|0)==65){g=1;break}else{g=f<<24>>24>66&1;break}}else g=0;while(0);return g|0}function Nu(a,d,f){a=a|0;d=d|0;f=f|0;var g=0,h=0,i=0,j=0;j=d+44|0;if((e[(j&o)>>1]|0|0)<(f|0)){g=f+7&-8;h=mh(a,g<<2,0)|0;if(!h)f=7;else{i=d+48|0;kw(h|0,c[(i&p)>>2]|0,(e[(j&o)>>1]|0)<<2|0)|0;f=c[(i&p)>>2]|0;if((f|0)!=(d+56|0))mg(a,f);c[(i&p)>>2]=h;b[(j&o)>>1]=g;f=0}}else f=0;return f|0}function Ou(a,b,d){a=a|0;b=b|0;d=d|0;do if(!(c[(b&p)+4>>2]&256)){if((d|0)!=0?(c[(d&p)+4>>2]&256|0)!=0:0){b=cu(a,d)|0;break}b=cu(a,b)|0;if(!b)b=cu(a,d)|0}else b=cu(a,b)|0;while(0);return b|0}function Pu(e,f,g,h,k,l){e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;var m=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;i=i+144|0;if((i|0)>=(j|0))fa();w=B;A=B+8|0;r=B+36|0;if(((a[(e&n)+450>>0]|0)==2?(t=d[(g&n)+44>>0]|0,z=c[(e&p)+8>>2]|0,q=c[(e&p)>>2]|0,y=c[(e&p)+464>>2]|0,v=c[(g&p)+64>>2]|0,x=v+36|0,u=c[(x&p)>>2]|0,(u&8192|0)==0):0)?(m=l&65535,(m&64|0)==0):0){l=u&48;do if(!l){if((u&1024|0)==0?(b[(v&o)+24>>1]|0)!=0:0){s=1;break}s=(m&3|0)!=0}else s=1;while(0);c[(A&p)+4>>2]=r;c[(A&p)+8>>2]=r;c[(A&p)+12>>2]=0;c[(A&p)+16>>2]=100;c[(A&p)+20>>2]=1e9;a[(A&n)+24>>0]=1;a[(A&n)+25>>0]=0;c[(A&p)>>2]=q;e=s?33576:33584;g=e;while(1)if(!(a[(g&n)>>0]|0))break;else g=g+1|0;Sk(A,e,g-e&1073741823);if(!(c[(f+(t*72|0)&p)+28>>2]|0)){c[(w&p)>>2]=c[(f+(t*72|0)&p)+16>>2];En(A,0,33608,w)}else{c[(w&p)>>2]=d[(f+(t*72|0)&n)+46>>0];En(A,0,33592,w)}e=c[(f+(t*72|0)&p)+20>>2]|0;if(e){c[(w&p)>>2]=e;En(A,0,33624,w)}do if(!(u&1280)){m=v+28|0;g=c[(m&p)>>2]|0;l=f+(t*72|0)+24|0;if((a[((c[(l&p)>>2]|0)&n)+44>>0]&32)!=0?(a[(g&n)+51>>0]&3)==2:0)if(s)e=33632;else break;else if(!(u&131072))if(!(u&16384))e=(u&64|0)==0?33744:33720;else e=33688;else e=33648;Sk(A,33760,7);c[(w&p)>>2]=c[(g&p)>>2];En(A,0,e,w);u=b[(v&o)+24>>1]|0;s=c[((c[(l&p)>>2]|0)&p)+4>>2]|0;r=c[((c[(m&p)>>2]|0)&p)+4>>2]|0;g=u&65535;if(!(u<<16>>16)){if(!(c[(x&p)>>2]&48))break;Sk(A,33904,2);m=0}else{l=b[(v&o)+42>>1]|0;Sk(A,33904,2);l=l&65535;m=0;do{e=b[(r+(m<<1)&o)>>1]|0;if(e<<16>>16<0)e=20456;else e=c[(s+((e<<16>>16)*24|0)&p)>>2]|0;if((m|0)<(l|0)){if(m)Sk(A,33920,5);c[(w&p)>>2]=e;En(A,0,33928,w)}else Nv(A,m,e,33912);m=m+1|0}while((m|0)<(g|0));m=g>>>0>1?g:1}l=c[(x&p)>>2]|0;if(!(l&32))e=m;else{l=b[(r+(m<<1)&o)>>1]|0;if(l<<16>>16<0)l=20456;else l=c[(s+((l<<16>>16)*24|0)&p)>>2]|0;Nv(A,m,l,33936);l=c[(x&p)>>2]|0;e=m+1|0}if(l&16){m=b[(r+(m<<1)&o)>>1]|0;if(m<<16>>16<0)m=20456;else m=c[(s+((m<<16>>16)*24|0)&p)>>2]|0;Nv(A,e,m,33944)}Sk(A,33952,1)}else{if((u&256|0)==0|(u&15|0)==0){if(!(u&1024))break;u=c[(v&p)+32>>2]|0;c[(w&p)>>2]=c[(v&p)+24>>2];c[(w&p)+4>>2]=u;En(A,0,33872,w);break}if(!(u&5))if((l|0)==48)l=33784;else l=(u&32|0)==0?33824:33808;else l=33768;Sk(A,33840,27);m=l;while(1)if(!(a[(m&n)>>0]|0))break;else m=m+1|0;Sk(A,l,m-l&1073741823)}while(0);u=tg(A)|0;xh(z,wh(z,157,y,h,k)|0,u,-1)}i=B;return}function Qu(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 i=0,j=0,k=0,l=0,m=0,o=0;l=c[(d&p)>>2]|0;o=c[(b&p)+8>>2]|0;i=a[(l&n)>>0]|0;do if(i<<24>>24==76)wh(o,28,0,h,0)|0;else if(i<<24>>24==79)h=is(b,c[(l&p)+16>>2]|0,h)|0;else{j=c[(e&p)+64>>2]|0;i=j+36|0;if(((c[(i&p)>>2]&1024|0)==0?(k=c[(j&p)+28>>2]|0,(k|0)!=0):0)?(a[((c[(k&p)+28>>2]|0)+f&n)>>0]|0)!=0:0)g=(g|0)==0&1;m=mv(b,l,4,0)|0;if((m|0)==4)g=(g|0)==0&1;l=c[(l&p)+28>>2]|0;f=(g|0)!=0;wh(o,f?105:108,l,0,0)|0;c[(i&p)>>2]=c[(i&p)>>2]|2048;k=e+56|0;i=c[(k&p)>>2]|0;if(!i){c[(e&p)+16>>2]=xs(o)|0;i=c[(k&p)>>2]|0}j=i+1|0;c[(k&p)>>2]=j;i=e+60|0;j=Wl(c[(b&p)>>2]|0,c[(i&p)>>2]|0,j*12|0,0)|0;c[(i&p)>>2]=j;if(!j){c[(k&p)>>2]=0;break}i=(c[(k&p)>>2]|0)+-1|0;c[(j+(i*12|0)&p)>>2]=l;if((m|0)==1)g=wh(o,103,l,h,0)|0;else g=wh(o,47,l,0,h)|0;c[(j+(i*12|0)&p)+4>>2]=g;a[(j+(i*12|0)&n)+8>>0]=f?6:7;wh(o,76,h,0,0)|0}while(0);Ru(e,d);return h|0}function Ru(d,e){d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0;a:do if(e){i=d+72|0;h=0;while(1){f=e+20|0;g=b[(f&o)>>1]|0;if(g&4)break a;if((c[(d&p)>>2]|0)!=0?(c[((c[(e&p)>>2]|0)&p)+4>>2]&1|0)==0:0)break a;j=i;k=e+40|0;if(!((c[(k&p)>>2]&c[(j&p)>>2]|0)==0?(c[(k&p)+4>>2]&c[(j&p)+4>>2]|0)==0:0))break a;g=g&65535;b[(f&o)>>1]=g|((h|0)==0|(g&1024|0)==0?4:512);g=c[(e&p)+4>>2]|0;if((g|0)<0)break a;e=c[((c[(e&p)+24>>2]|0)&p)+20>>2]|0;j=e+(g*48|0)+22|0;f=(a[(j&n)>>0]|0)+-1<<24>>24;a[(j&n)>>0]=f;if(f<<24>>24)break a;e=e+(g*48|0)|0;if(!e)break;else h=h+1|0}}while(0);return}function Su(d,e,f,g){d=d|0;e=e|0;f=f|0;g=g|0;var h=0,i=0,j=0,k=0,l=0,m=0,q=0;do if(!(b[((c[(d&p)>>2]|0)&o)+60>>1]&2)){k=d+116|0;j=0;h=k;while(1){i=h+12|0;if(!(c[(i&p)>>2]|0)){q=4;break}j=j+1|0;if((j|0)>=10){l=0;h=-1;m=2147483647;break}else h=h+20|0}if((q|0)==4){c[(h&p)+8>>2]=c[(d&p)+100>>2];c[(h&p)>>2]=e;b[(h&o)+4>>1]=f;c[(i&p)>>2]=g;a[(h&n)+6>>0]=0;g=d+104|0;e=c[(g&p)>>2]|0;c[(g&p)>>2]=e+1;c[(h&p)+16>>2]=e;break}while(1){j=c[(k&p)+16>>2]|0;i=(j|0)<(m|0);h=i?l:h;l=l+1|0;if((l|0)==10)break;else{m=i?j:m;k=k+20|0}}if((h|0)>-1){c[(d+(h*20|0)&p)+124>>2]=c[(d&p)+100>>2];c[(d+(h*20|0)&p)+116>>2]=e;b[(d+(h*20|0)&o)+120>>1]=f;c[(d+(h*20|0)&p)+128>>2]=g;a[(d+(h*20|0)&n)+122>>0]=0;g=d+104|0;e=c[(g&p)>>2]|0;c[(g&p)>>2]=e+1;c[(d+(h*20|0)&p)+132>>2]=e}}while(0);return}function Tu(d,e,f,g,h){d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var i=0,j=0,k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0;u=c[(d&p)+8>>2]|0;m=c[(e&p)+64>>2]|0;q=b[(m&o)+24>>1]|0;s=b[(m&o)+42>>1]|0;w=c[(m&p)+28>>2]|0;t=d+72|0;l=c[(t&p)>>2]|0;i=l+1|0;v=q&65535;r=v+g|0;c[(t&p)>>2]=l+r;t=c[(d&p)>>2]|0;w=kh(t,ot(u,w)|0)|0;t=(w|0)!=0;if(!t)a[((c[(d&p)>>2]|0)&n)+65>>0]=1;if(s<<16>>16){g=c[(e&p)+8>>2]|0;j=(f|0)!=0;wh(u,j?105:108,g,0,0)|0;k=wh(u,16,0,0,0)|0;l=s&65535;j=wh(u,j?62:65,g,0,i)|0;xh(u,j,l,-14);c[(e&p)+20>>2]=j;j=c[(u&p)+32>>2]|0;if(j>>>0>k>>>0)c[((c[(u&p)+4>>2]|0)+(k*20|0)&p)+8>>2]=j;c[((c[(u&p)+24>>2]|0)&p)+88>>2]=j+-1;k=0;do{wh(u,47,g,k,k+i|0)|0;k=k+1|0}while((k|0)<(l|0))}if((s&65535)<(q&65535)){m=m+48|0;l=e+12|0;q=(r|0)==1;r=s&65535;k=i;while(1){j=c[((c[(m&p)>>2]|0)+(r<<2)&p)>>2]|0;g=r+k|0;i=Qu(d,j,e,r,f,g)|0;do if((i|0)!=(g|0))if(q){_r(d,k);break}else{wh(u,34,i,g,0)|0;i=k;break}else i=k;while(0);if(!(b[(j&o)+18>>1]&129)){g=c[((c[(j&p)>>2]|0)&p)+16>>2]|0;if(Uu(g)|0)wh(u,76,i+r|0,c[(l&p)>>2]|0,0)|0;if(t){j=w+r|0;if((Bu(g,a[(j&n)>>0]|0)|0)<<24>>24==65){a[(j&n)>>0]=65;k=65}else k=a[(j&n)>>0]|0;if(Vu(g,k)|0)a[(j&n)>>0]=65}}r=r+1|0;if((r|0)>=(v|0))break;else k=i}}c[(h&p)>>2]=w;return i|0}function Uu(d){d=d|0;var e=0;e=a[(d&n)>>0]|0;if((e+99&255)<2)do{d=c[(d&p)+12>>2]|0;e=a[(d&n)>>0]|0}while((e+99&255)<2);if(e<<24>>24==-97)e=a[(d&n)+38>>0]|0;switch(e&255|0){case 134:case 133:case 97:case 132:{d=0;break}case 154:{if(!(c[(d&p)+4>>2]&1048576)){e=b[(d&o)+32>>1]|0;if(e<<16>>16>-1)d=(a[((c[((c[(d&p)+44>>2]|0)&p)+4>>2]|0)+((e<<16>>16)*24|0)&n)+20>>0]|0)==0;else d=0}else d=1;d=d&1;break}default:d=1}return d|0}function Vu(d,e){d=d|0;e=e|0;var f=0;a:do if(e<<24>>24==65)d=1;else{f=a[(d&n)>>0]|0;if((f+99&255)<2)do{d=c[(d&p)+12>>2]|0;f=a[(d&n)>>0]|0}while((f+99&255)<2);if(f<<24>>24==-97)f=a[(d&n)+38>>0]|0;switch(f&255|0){case 132:{d=(e+-67&255)<2&1;break a}case 97:{d=e<<24>>24==66&1;break a}case 154:{if((b[(d&o)+32>>1]|0)<0)d=(e+-67&255)<2;else d=0;d=d&1;break a}case 134:{d=1;break a}case 133:{d=(e<<24>>24==69|e<<24>>24==67)&1;break a}default:{d=0;break a}}}while(0);return d|0}function Wu(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0;h=c[(b&p)+8>>2]|0;do if(f){a:do if((e|0)>0)while(1){if((a[(f&n)>>0]|0)!=65){g=f;break a}e=e+-1|0;d=d+1|0;f=f+1|0;if((e|0)<=0){g=f;break}}else g=f;while(0);while(1){if((e|0)<=1){i=8;break}f=e+-1|0;if((a[(g+f&n)>>0]|0)==65)e=f;else break}if((i|0)==8)if((e|0)<=0)break;wh(h,48,d,e,0)|0;xh(h,-1,g,e);dt(b,d,e)}while(0);return}function Xu(a,b){a=a|0;b=b|0;var d=0,e=0;if(b){Ov(b+328|0);e=b+16|0;d=c[(e&p)>>2]|0;if(d)do{c[(e&p)>>2]=c[(d&p)+52>>2];Ju(a,d);mg(a,d);d=c[(e&p)>>2]|0}while((d|0)!=0);mg(a,b)}return}function Yu(a,b){a=a|0;b=b|0;var d=0,e=0;d=i;i=i+32|0;if((i|0)>=(j|0))fa();e=d;c[(e&p)>>2]=0;c[(e&p)+4>>2]=0;c[(e&p)+8>>2]=0;c[(e&p)+12>>2]=0;c[(e&p)+16>>2]=0;c[(e&p)+20>>2]=0;c[(e&p)>>2]=80;c[(e&p)+4>>2]=81;c[(e&p)+24>>2]=a;rs(e,b)|0;i=d;return}function Zu(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,o=0,q=0,r=0;r=i;i=i+16|0;if((i|0)>=(j|0))fa();o=r+4|0;q=r;m=c[(b&p)+8>>2]|0;c[(o&p)>>2]=0;c[(q&p)>>2]=0;if(!((m|0)==0|(d|0)==0)){h=a[(d&n)>>0]|0;g=h&255;a:do switch(g|0){case 75:{k=xs(m)|0;fu(b,d,k,(f|0)!=0?e:k);wh(m,16,0,e,0)|0;h=c[(m&p)+24>>2]|0;g=~k;if((k|0)<0?(l=c[(h&p)+112>>2]|0,(l|0)!=0):0)c[(l+(g<<2)&p)>>2]=c[(m&p)+32>>2];c[(h&p)+88>>2]=(c[(m&p)+32>>2]|0)+-1;break}case 77:case 76:{wh(m,g,$t(b,c[(d&p)+12>>2]|0,o)|0,e,0)|0;break}case 148:case 73:{f=d+12|0;l=$t(b,c[(f&p)>>2]|0,o)|0;k=d+16|0;m=$t(b,c[(k&p)>>2]|0,q)|0;au(b,c[(f&p)>>2]|0,c[(k&p)>>2]|0,h<<24>>24==73?79:78,l,m,e,128);break}case 71:{Zu(b,c[(d&p)+12>>2]|0,e,f);m=b+100|0;c[(m&p)>>2]=(c[(m&p)>>2]|0)+1;Zu(b,c[(d&p)+16>>2]|0,e,f);bu(b);break}case 79:case 78:case 83:case 80:case 81:case 82:{h=d+12|0;l=$t(b,c[(h&p)>>2]|0,o)|0;k=d+16|0;m=$t(b,c[(k&p)>>2]|0,q)|0;au(b,c[(h&p)>>2]|0,c[(k&p)>>2]|0,g,l,m,e,f);break}case 72:{l=xs(m)|0;gt(b,c[(d&p)+12>>2]|0,l,f^16);g=b+100|0;c[(g&p)>>2]=(c[(g&p)>>2]|0)+1;Zu(b,c[(d&p)+16>>2]|0,e,f);g=c[(m&p)+24>>2]|0;h=~l;if((l|0)<0?(k=c[(g&p)+112>>2]|0,(k|0)!=0):0)c[(k+(h<<2)&p)>>2]=c[(m&p)+32>>2];c[(g&p)+88>>2]=(c[(m&p)+32>>2]|0)+-1;bu(b);break}case 19:{gt(b,c[(d&p)+12>>2]|0,e,f);break}case 74:{_u(b,d,e,1,f);break}default:{if($u(d)|0){wh(m,16,0,e,0)|0;break a}if(!(mu(d)|0))wh(m,45,$t(b,d,o)|0,e,(f|0)!=0&1)|0}}while(0);_r(b,c[(o&p)>>2]|0);_r(b,c[(q&p)>>2]|0)}i=r;return}function _u(b,d,e,f,g){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,o=0,q=0,r=0,s=0,t=0;r=i;i=i+208|0;if((i|0)>=(j|0))fa();l=r+152|0;h=r+104|0;k=r+56|0;m=r+8|0;o=r;c[(o&p)>>2]=0;q=m+0|0;s=(c[(d&p)+12>>2]|0)+0|0;t=q+48|0;do{c[(q&p)>>2]=c[(s&p)>>2];q=q+4|0;s=s+4|0}while((q|0)<(t|0));a[(l&n)>>0]=72;c[(l&p)+12>>2]=h;c[(l&p)+16>>2]=k;a[(h&n)>>0]=83;c[(h&p)+12>>2]=m;d=c[((c[(d&p)+20>>2]|0)&p)+4>>2]|0;c[(h&p)+16>>2]=c[(d&p)>>2];a[(k&n)>>0]=81;c[(k&p)+12>>2]=m;c[(k&p)+16>>2]=c[(d&p)+20>>2];d=$t(b,m,o)|0;a[(m&n)+38>>0]=a[(m&n)>>0]|0;a[(m&n)>>0]=-97;c[(m&p)+28>>2]=d;d=m+4|0;c[(d&p)>>2]=c[(d&p)>>2]&-4097;if(!f)gt(b,l,e,g);else Zu(b,l,e,g);_r(b,c[(o&p)>>2]|0);i=r;return}function $u(a){a=a|0;var b=0,d=0;d=i;i=i+16|0;if((i|0)>=(j|0))fa();b=d;c[(b&p)>>2]=0;if((c[(a&p)+4>>2]&1|0)==0?(Ms(a,b)|0)!=0:0)a=(c[(b&p)>>2]|0)!=0&1;else a=0;i=d;return a|0}function av(a,b){a=a|0;b=b|0;var d=0,e=0;a:do if(!((a|0)==0|(b|0)==0)){e=c[(b&p)>>2]|0;if((e|0)>0){b=c[(b&p)+4>>2]|0;d=0;while(1){if((wv(a,c[(b+(d*20|0)&p)+4>>2]|0)|0)>-1){b=1;break a}d=d+1|0;if((d|0)>=(e|0)){b=0;break}}}else b=0}else b=1;while(0);return b|0}function bv(d,e,f,g){d=d|0;e=e|0;f=f|0;g=g|0;var h=0,i=0,j=0,k=0,l=0,m=0,q=0,r=0,s=0,t=0;m=c[(e&p)+20>>2]|0;a:do if((m|0)>0){q=b[(d&o)+38>>1]|0;r=q<<16>>16>0;s=d+4|0;l=d+36|0;i=(g|0)!=0;j=0;while(1){g=c[(e+(j<<3)&p)+40>>2]|0;if(r){d=(g|0)==0;k=0;do{if(!((c[(f+(k<<2)&p)>>2]|0)<=-1?!((k|0)==(b[(l&o)>>1]|0)&i):0))t=7;do if((t|0)==7){t=0;h=c[(s&p)>>2]|0;if(d)if(!(a[(h+(k*24|0)&n)+23>>0]&1))break;else{d=1;break a}else if(!(dd(c[(h+(k*24|0)&p)>>2]|0,g)|0)){d=1;break a}else break}while(0);k=k+1|0}while((k|0)<(q<<16>>16|0))}j=j+1|0;if((j|0)>=(m|0)){d=0;break}}}else d=0;while(0);return d|0}function cv(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,o=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0;x=i;i=i+48|0;if((i|0)>=(j|0))fa();m=x;s=x+8|0;w=c[(b&p)+408>>2]|0;w=(w|0)==0?b:w;l=w+528|0;g=c[(l&p)>>2]|0;a:do if(!g)k=5;else while(1){if((c[(g&p)>>2]|0)==(d|0)?(c[(g&p)+12>>2]|0)==(f|0):0)break a;g=c[(g&p)+4>>2]|0;if(!g){k=5;break}}while(0);do if((k|0)==5){u=c[(b&p)>>2]|0;g=mh(u,24,0)|0;if(g){k=g+0|0;h=k+24|0;do{a[(k&n)>>0]=0;k=k+1|0}while((k|0)<(h|0));c[(g&p)+4>>2]=c[(l&p)>>2];c[(l&p)>>2]=g;t=mh(u,28,0)|0;if(!t){c[(g&p)+8>>2]=0;g=0;break}k=t+0|0;h=k+24|0;do{a[(k&n)>>0]=0;k=k+1|0}while((k|0)<(h|0));c[(g&p)+8>>2]=t;o=(c[(w&p)+8>>2]|0)+192|0;c[(t&p)+24>>2]=c[(o&p)>>2];c[(o&p)>>2]=t;c[(g&p)>>2]=d;c[(g&p)+12>>2]=f;o=g+16|0;c[(o&p)>>2]=-1;q=g+20|0;c[(q&p)>>2]=-1;r=mh(u,536,0)|0;if(r){fw(r|0,0,536)|0;c[(s&p)>>2]=0;c[(s&p)+4>>2]=0;c[(s&p)+8>>2]=0;c[(s&p)+12>>2]=0;c[(s&p)+16>>2]=0;c[(s&p)+20>>2]=0;c[(s&p)+24>>2]=0;c[(s&p)+28>>2]=0;c[(s&p)>>2]=r;c[(r&p)>>2]=u;c[(r&p)+412>>2]=e;c[(r&p)+408>>2]=w;c[(r&p)+492>>2]=c[(d&p)>>2];a[(r&n)+436>>0]=a[(d&n)+8>>0]|0;c[(r&p)+424>>2]=c[(b&p)+424>>2];e=Oq(r)|0;if(e){c[(m&p)>>2]=c[(d&p)>>2];xh(e,-1,uh(u,34152,m)|0,-1);k=c[(d&p)+12>>2]|0;if(!k)l=0;else{h=Mr(u,k,0,0)|0;if((ls(s,h)|0)==0?(a[(u&n)+65>>0]|0)==0:0){k=xs(e)|0;gt(r,h,k,16)}else k=0;Gk(u,h);l=k}Pv(r,c[(d&p)+28>>2]|0,f);if(l){k=c[(e&p)+24>>2]|0;h=~l;if((l|0)<0?(v=c[(k&p)+112>>2]|0,(v|0)!=0):0)c[(v+(h<<2)&p)>>2]=c[(e&p)+32>>2];c[(k&p)+88>>2]=(c[(e&p)+32>>2]|0)+-1}wh(e,24,0,0,0)|0;h=b+64|0;k=c[(r&p)+4>>2]|0;if(!(c[(h&p)>>2]|0)){c[(b&p)+4>>2]=k;c[(h&p)>>2]=c[(r&p)+64>>2]}else mg(c[(r&p)>>2]|0,k);if(!(a[(u&n)+65>>0]|0)){m=e+4|0;s=c[(m&p)>>2]|0;Jn(e,w+392|0);c[(t&p)+4>>2]=c[(e&p)+32>>2];c[(m&p)>>2]=0;c[(t&p)>>2]=s}c[(t&p)+8>>2]=c[(r&p)+72>>2];c[(t&p)+12>>2]=c[(r&p)+68>>2];c[(t&p)+16>>2]=c[(r&p)+80>>2];c[(t&p)+20>>2]=d;c[(o&p)>>2]=c[(r&p)+428>>2];c[(q&p)>>2]=c[(r&p)+432>>2];Pl(e)}Ch(r);mg(u,r)}else g=0}else g=0}while(0);i=x;return g|0}function dv(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 i=0;i=Oq(b)|0;e=cv(b,d,e,g)|0;if(e){if(!(c[(d&p)>>2]|0))g=0;else g=((c[((c[(b&p)>>2]|0)&p)+24>>2]|0)>>>18&1^1)&255;b=b+72|0;d=(c[(b&p)>>2]|0)+1|0;c[(b&p)>>2]=d;wh(i,131,f,h,d)|0;xh(i,-1,c[(e&p)+8>>2]|0,-18);e=c[(i&p)+4>>2]|0;if(e)a[(e+(((c[(i&p)+32>>2]|0)+-1|0)*20|0)&n)+3>>0]=g}return}function ev(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0;l=i;i=i+16|0;if((i|0)>=(j|0))fa();k=l;f=c[(a&p)>>2]|0;h=c[((c[(f&p)+16>>2]|0)+(e<<4)&p)>>2]|0;g=kc[c[(f&p)+284>>2]&7](c[(f&p)+288>>2]|0,20,b,d,h,c[(a&p)+492>>2]|0)|0;if((g|0)==1){if((e|0)!=0?1:(c[(f&p)+20>>2]|0)>2){c[(k&p)>>2]=h;c[(k&p)+4>>2]=b;c[(k&p)+8>>2]=d;th(a,27688,k)}else{c[(k&p)>>2]=b;c[(k&p)+4>>2]=d;th(a,27728,k)}c[(a&p)+12>>2]=23}else if(!((g|0)==0|(g|0)==2)){th(a,25232,k);c[(a&p)+12>>2]=1}i=l;return g|0}function fv(e,f,g,h,i,j,k,l,m){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;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;B=Oq(e)|0;D=(c[(e&p)+68>>2]|0)+-1|0;E=xs(B)|0;if((l|0)<0)wh(B,135,d[(i&n)+24>>0]|0,E,0)|0;q=i+20|0;r=c[(q&p)>>2]|0;if((r|0)>0){t=k+1|0;s=0;do{wh(B,76,t+(c[(j+(s<<2)&p)>>2]|0)|0,E,0)|0;s=s+1|0;r=c[(q&p)>>2]|0}while((s|0)<(r|0))}do if(!m){if(!h){r=e+19|0;q=a[(r&n)>>0]|0;if(!(q<<24>>24)){h=e+72|0;t=(c[(h&p)>>2]|0)+1|0;c[(h&p)>>2]=t}else{t=q+-1<<24>>24;a[(r&n)>>0]=t;t=c[(e+((t&255)<<2)&p)+24>>2]|0}wh(B,34,k+1+(c[(j&p)>>2]|0)|0,t,0)|0;s=wh(B,38,t,0,0)|0;if(((l|0)==1?(c[(i&p)>>2]|0)==(g|0):0)?(wh(B,79,k,E,t)|0,u=c[(B&p)+4>>2]|0,(u|0)!=0):0)a[(u+(((c[(B&p)+32>>2]|0)+-1|0)*20|0)&n)+3>>0]=-112;Qq(e,D,f,g,54);wh(B,70,D,0,t)|0;wh(B,16,0,E,0)|0;q=c[(B&p)+32>>2]|0;if(q>>>0>1)c[((c[(B&p)+4>>2]|0)+((q+-2|0)*20|0)&p)+8>>2]=q;m=q+-1|0;r=(c[(B&p)+24>>2]|0)+88|0;c[(r&p)>>2]=m;if(q>>>0>s>>>0)c[((c[(B&p)+4>>2]|0)+(s*20|0)&p)+8>>2]=q;c[(r&p)>>2]=m;_r(e,t);break}z=e+60|0;t=c[(z&p)>>2]|0;A=e+56|0;s=c[(A&p)>>2]|0;if((s|0)<(r|0)){y=e+72|0;t=c[(y&p)>>2]|0;c[(y&p)>>2]=t+r;t=t+1|0}else{c[(z&p)>>2]=t+r;c[(A&p)>>2]=s-r}s=e+19|0;q=a[(s&n)>>0]|0;if(!(q<<24>>24)){m=e+72|0;y=(c[(m&p)>>2]|0)+1|0;c[(m&p)>>2]=y}else{y=q+-1<<24>>24;a[(s&n)>>0]=y;y=c[(e+((y&255)<<2)&p)+24>>2]|0}wh(B,54,D,c[(h&p)+40>>2]|0,f)|0;m=c[(e&p)+8>>2]|0;xh(m,-1,hs(e,h)|0,-6);m=(r|0)>0;if(m){s=k+1|0;q=0;do{wh(B,33,s+(c[(j+(q<<2)&p)>>2]|0)|0,q+t|0,0)|0;q=q+1|0}while((q|0)!=(r|0))}if((l|0)==1?(c[(i&p)>>2]|0)==(g|0):0){w=B+32|0;x=r+1+(c[(w&p)>>2]|0)|0;if(m){f=k+1|0;v=h+4|0;s=g+36|0;q=B+4|0;u=0;do{m=b[((c[(v&p)>>2]|0)+(u<<1)&o)>>1]|0;wh(B,78,f+(c[(j+(u<<2)&p)>>2]|0)|0,x,(m<<16>>16==(b[(s&o)>>1]|0)?0:(m<<16>>16)+1|0)+k|0)|0;m=c[(q&p)>>2]|0;if(m)a[(m+(((c[(w&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=16;u=u+1|0}while((u|0)!=(r|0))}wh(B,16,0,E,0)|0}k=ot(B,h)|0;xh(B,wh(B,49,t,r,y)|0,k,r);xh(B,wh(B,69,D,E,y)|0,0,-14);_r(e,y);dt(e,t,r);if((c[(A&p)>>2]|0)<(r|0)){c[(A&p)>>2]=r;c[(z&p)>>2]=t}}while(0);q=a[(i&n)+24>>0]|0;m=q<<24>>24==0;if(((m?(c[((c[(e&p)>>2]|0)&p)+24>>2]&16777216|0)==0:0)?(c[(e&p)+408>>2]|0)==0:0)?(a[(e&n)+20>>0]|0)==0:0)zs(e,787,2,0,-2,4);else{if(!((l|0)<1|m^1)){i=c[(e&p)+408>>2]|0;a[(((i|0)==0?e:i)&n)+21>>0]=1}wh(B,134,q&255,l,0)|0}m=c[(B&p)+24>>2]|0;q=~E;if((E|0)<0?(C=c[(m&p)+112>>2]|0,(C|0)!=0):0)c[(C+(q<<2)&p)>>2]=c[(B&p)+32>>2];c[(m&p)+88>>2]=(c[(B&p)+32>>2]|0)+-1;wh(B,61,D,0,0)|0;return}function gv(f,g,h,k,l,m,q,r){f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;m=m|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;G=i;i=i+48|0;if((i|0)>=(j|0))fa();B=G+32|0;C=G;D=c[(f&p)>>2]|0;E=Oq(f)|0;if((r|0)<0)F=wh(E,135,d[(l&n)+24>>0]|0,0,0)|0;else F=0;A=l+20|0;if((c[(A&p)>>2]|0)>0){z=(k|0)==0;y=(m|0)==0;x=l+36|0;w=k+4|0;v=0;s=0;do{if(z)u=-1;else u=b[((c[(w&p)>>2]|0)+(v<<1)&o)>>1]|0;t=Qv(f,h,q,u)|0;if(y)u=x;else u=m+(v<<2)|0;s=ss(D,s,Zq(f,79,t,tt(D,27,c[((c[((c[(l&p)>>2]|0)&p)+4>>2]|0)+((c[(u&p)>>2]<<16>>16)*24|0)&p)>>2]|0)|0,0)|0)|0;v=v+1|0}while((v|0)<(c[(A&p)>>2]|0));u=l}else{u=l;s=0}if((r|0)>0?(c[(u&p)>>2]|0)==(h|0):0){if(!(a[(h&n)+44>>0]&32)){m=c[(f&p)>>2]|0;c[(B&p)>>2]=0;c[(B&p)+4>>2]=0;m=nr(m,159,B,0)|0;if(!m)m=0;else{c[(m&p)+28>>2]=q;a[(m&n)+1>>0]=68}u=c[(g&p)+48>>2]|0;c[(B&p)>>2]=0;c[(B&p)+4>>2]=0;t=nr(D,154,B,0)|0;if(t){c[(t&p)+44>>2]=h;c[(t&p)+28>>2]=u;b[(t&o)+32>>1]=-1}m=Zq(f,78,m,t,0)|0}else{u=h+8|0;while(1){u=c[(u&p)>>2]|0;if((a[(u&n)+51>>0]&3)==2)break;u=u+20|0}A=u+46|0;if(!(b[(A&o)>>1]|0))m=0;else{w=k+4|0;x=g+48|0;y=B+4|0;z=0;m=0;do{u=b[((c[(w&p)>>2]|0)+(z<<1)&o)>>1]|0;t=Qv(f,h,q,u)|0;v=c[(x&p)>>2]|0;c[(B&p)>>2]=0;c[(y&p)>>2]=0;k=nr(D,154,B,0)|0;if(k){c[(k&p)+44>>2]=h;c[(k&p)+28>>2]=v;b[(k&o)+32>>1]=u}m=ss(D,m,Zq(f,79,t,k,0)|0)|0;z=z+1|0}while((z|0)<(e[(A&o)>>1]|0))}m=Zq(f,19,m,0,0)|0}s=ss(D,s,m)|0};c[(C&p)>>2]=0;c[(C&p)+4>>2]=0;c[(C&p)+8>>2]=0;c[(C&p)+12>>2]=0;c[(C&p)+16>>2]=0;c[(C&p)+20>>2]=0;c[(C&p)+24>>2]=0;c[(C&p)+28>>2]=0;c[(C&p)+4>>2]=g;c[(C&p)>>2]=f;ls(C,s)|0;m=Vs(f,g,s,0,0,0,0)|0;wh(E,134,d[(l&n)+24>>0]|0,r,0)|0;if(m)Xs(m);Gk(D,s);if(F){m=c[(E&p)+32>>2]|0;if(m>>>0>F>>>0)c[((c[(E&p)+4>>2]|0)+(F*20|0)&p)+8>>2]=m;c[((c[(E&p)+24>>2]|0)&p)+88>>2]=m+-1}i=G;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,k=0,l=0,m=0,o=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0;w=i;i=i+32|0;if((i|0)>=(j|0))fa();t=w;r=w+16|0;v=w+28|0;k=c[(b&p)>>2]|0;u=Oq(b)|0;if(u){m=(c[(k&p)+16>>2]|0)+(d<<4)|0;o=b+388|0;q=(f|0)==0;s=0;a:while(1){l=c[(s<<3&p)+28744>>2]|0;h=_h(k,l,c[(m&p)>>2]|0)|0;do if(!h){if(!s){c[(t&p)>>2]=c[(m&p)>>2];c[(t&p)+4>>2]=l;c[(t&p)+8>>2]=28768;Br(b,28816,t);c[(r&p)>>2]=c[(o&p)>>2];a[(v&n)>>0]=4;s=s+1|0;continue a}}else{h=c[(h&p)+32>>2]|0;c[(r+(s<<2)&p)>>2]=h;a[(v+s&n)>>0]=0;gs(b,d,h,1,l);if(q){wh(u,118,h,d,0)|0;break}else{c[(t&p)>>2]=c[(m&p)>>2];c[(t&p)+4>>2]=l;c[(t&p)+8>>2]=g;c[(t&p)+12>>2]=f;Br(b,28840,t);break}}while(0);s=s+1|0;if((s|0)==3)break}xh(u,wh(u,55,e,c[(r&p)>>2]|0,d)|0,3,-14);h=c[(u&p)+4>>2]|0;if(h)a[(h+(((c[(u&p)+32>>2]|0)+-1|0)*20|0)&n)+3>>0]=a[(v&n)>>0]|0}i=w;return}function iv(d,f,g,h,i,j){d=d|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;var k=0,l=0,m=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;G=c[(d&p)>>2]|0;H=i+1|0;I=i+2|0;M=i+3|0;N=i+4|0;O=i+5|0;L=i+6|0;J=i+7|0;K=d+72|0;P=c[(K&p)>>2]|0;c[(K&p)>>2]=(P|0)>(J|0)?P:J;P=Oq(d)|0;if((!((P|0)==0|(f|0)==0)?(s=f+32|0,(c[(s&p)>>2]|0)!=0):0)?(t=c[(f&p)>>2]|0,(Fc(t,25568,7)|0)!=0):0){m=c[(f&p)+68>>2]|0;a:do if(m){l=c[(G&p)+20>>2]|0;if((l|0)>0){k=c[(G&p)+16>>2]|0;r=0;while(1){q=r+1|0;if((c[(k+(r<<4)&p)+12>>2]|0)==(m|0)){q=r;break a}if((q|0)<(l|0))r=q;else break}}else q=0}else q=-1e6;while(0);if(!(Sq(d,28,t,0,c[((c[(G&p)+16>>2]|0)+(q<<4)&p)>>2]|0)|0)){gs(d,q,c[(s&p)>>2]|0,0,c[(f&p)>>2]|0);z=j+1|0;F=j+2|0;t=d+68|0;E=c[(t&p)>>2]|0;c[(t&p)>>2]=(E|0)>(F|0)?E:F;Qq(d,j,q,f,54);t=c[(f&p)>>2]|0;xh(P,wh(P,97,0,N,0)|0,t,0);t=c[(f&p)+8>>2]|0;F=(g|0)==0;if(!t)m=1;else{A=f+44|0;B=d+8|0;C=P+4|0;D=P+32|0;E=P+24|0;m=1;do{do if(F|(t|0)==(g|0)){m=(c[(t&p)+36>>2]|0)==0?0:m;s=a[(t&n)+51>>0]|0;if(!((a[(A&n)>>0]&32)!=0&(s&3)==2)){k=e[(t&o)+48>>1]|0;r=c[(t&p)>>2]|0;l=t+46|0;if(!(s&8)){v=l;u=k;s=k}else{v=l;u=k;s=e[(l&o)>>1]|0}}else{v=t+46|0;s=e[(v&o)>>1]|0;u=s;r=c[(f&p)>>2]|0}x=s+-1|0;xh(P,wh(P,97,0,O,0)|0,r,0);y=c[(K&p)>>2]|0;s=x+J|0;c[(K&p)>>2]=(y|0)>(s|0)?y:s;wh(P,54,z,c[(t&p)+40>>2]|0,q)|0;s=c[(B&p)>>2]|0;xh(s,-1,hs(d,t)|0,-6);wh(P,25,u,I,0)|0;wh(P,25,e[(v&o)>>1]|0,M,0)|0;wh(P,1,0,I,H)|0;xh(P,-1,28552,-5);s=c[(C&p)>>2]|0;if(s)a[(s+(((c[(D&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=2;y=wh(P,108,z,0,0)|0;wh(P,25,0,I,0)|0;r=c[(D&p)>>2]|0;if((x|0)>0){u=xs(P)|0;w=mh(G,x<<2,0)|0;if(!w)break;wh(P,16,0,0,0)|0;r=c[(D&p)>>2]|0;if(((x|0)==1?(b[(v&o)>>1]|0)==1:0)?(a[(t&n)+50>>0]|0)!=0:0)wh(P,77,J,u,0)|0;s=t+32|0;k=0;do{v=cr(d,c[((c[(s&p)>>2]|0)+(k<<2)&p)>>2]|0)|0;wh(P,25,k,I,0)|0;wh(P,47,z,k,M)|0;l=wh(P,78,M,0,k+J|0)|0;xh(P,l,v,-4);c[(w+(k<<2)&p)>>2]=l;l=c[(C&p)>>2]|0;if(l)a[(l+(((c[(D&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=-128;k=k+1|0}while((k|0)!=(x|0));wh(P,25,x,I,0)|0;wh(P,16,0,u,0)|0;s=r+-1|0;l=c[(D&p)>>2]|0;if(l>>>0>s>>>0)c[((c[(C&p)>>2]|0)+(s*20|0)&p)+8>>2]=l;c[((c[(E&p)>>2]|0)&p)+88>>2]=l+-1;s=0;while(1){k=c[(w+(s<<2)&p)>>2]|0;if(l>>>0>k>>>0)c[((c[(C&p)>>2]|0)+(k*20|0)&p)+8>>2]=l;c[((c[(E&p)>>2]|0)&p)+88>>2]=l+-1;wh(P,47,z,s,s+J|0)|0;s=s+1|0;if((s|0)==(x|0))break;l=c[(D&p)>>2]|0}l=c[(E&p)>>2]|0;k=~u;do if((u|0)<0){s=c[(l&p)+112>>2]|0;if(!s)break;c[(s+(k<<2)&p)>>2]=c[(D&p)>>2]}while(0);c[(l&p)+88>>2]=(c[(D&p)>>2]|0)+-1;mg(G,w)}wh(P,1,1,H,M)|0;xh(P,-1,28592,-5);s=c[(C&p)>>2]|0;if(s)a[(s+(((c[(D&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=2;wh(P,9,z,r,0)|0;wh(P,1,0,H,L)|0;xh(P,-1,28640,-5);s=c[(C&p)>>2]|0;if(s)a[(s+(((c[(D&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=1;xh(P,wh(P,49,N,3,M)|0,28632,0);wh(P,74,h,i,0)|0;wh(P,75,h,M,i)|0;r=c[(C&p)>>2]|0;s=c[(D&p)>>2]|0;if(r)a[(r+((s+-1|0)*20|0)&n)+3>>0]=8;if(s>>>0>y>>>0)c[(r+(y*20|0)&p)+8>>2]=s;c[((c[(E&p)>>2]|0)&p)+88>>2]=s+-1}while(0);t=c[(t&p)+20>>2]|0}while((t|0)!=0)}if(!(m<<24>>24==0|F^1)){wh(P,50,j,L,0)|0;m=wh(P,46,L,0,0)|0;wh(P,28,0,O,0)|0;xh(P,wh(P,49,N,3,M)|0,28632,0);wh(P,74,h,i,0)|0;wh(P,75,h,M,i)|0;l=c[(P&p)+4>>2]|0;k=c[(P&p)+32>>2]|0;if(l)a[(l+((k+-1|0)*20|0)&n)+3>>0]=8;if(k>>>0>m>>>0)c[(l+(m*20|0)&p)+8>>2]=k;c[((c[(P&p)+24>>2]|0)&p)+88>>2]=k+-1}}}return}function jv(a,b){a=a|0;b=b|0;a=Oq(a)|0;if(a)wh(a,123,b,0,0)|0;return}function kv(d){d=d|0;var e=0,f=0,g=0;a:while(1){e=c[(d&p)+4>>2]|0;do if(e&4096)if(!(e&262144)){d=d+12|0;break}else{d=c[((c[(d&p)+20>>2]|0)&p)+4>>2]|0;break}else{if(e&512){d=0;break a}switch(a[(d&n)>>0]|0){case 119:break;case -102:case -100:case -97:{g=11;break a}case 38:{g=10;break a}default:{g=14;break a}}d=c[((c[(c[(d&p)+20>>2]&p)>>2]|0)&p)+4>>2]|0}while(0);d=c[(d&p)>>2]|0}if((g|0)==10)d=Xq(c[(d&p)+8>>2]|0,0)|0;else if((g|0)==11){f=c[(d&p)+44>>2]|0;if(f){e=b[(d&o)+32>>1]|0;if(e<<16>>16<0)d=68;else d=a[((c[(f&p)+4>>2]|0)+((e<<16>>16)*24|0)&n)+21>>0]|0}else g=14}if((g|0)==14)d=a[(d&n)+1>>0]|0;return d|0}function lv(b,d,e){b=b|0;d=d|0;e=e|0;var f=0;wh(b,25,0,e,0)|0;f=wh(b,108,d,0,0)|0;wh(b,47,d,0,e)|0;d=c[(b&p)+4>>2]|0;e=c[(b&p)+32>>2]|0;if(d)a[(d+((e+-1|0)*20|0)&n)+3>>0]=-128;if(e>>>0>f>>>0)c[(d+(f*20|0)&p)+8>>2]=e;c[((c[(b&p)+24>>2]|0)&p)+88>>2]=e+-1;return}function mv(e,f,g,h){e=e|0;f=f|0;g=g|0;h=h|0;var k=0,l=0,m=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;H=i;i=i+32|0;if((i|0)>=(j|0))fa();C=H;F=e+68|0;G=c[(F&p)>>2]|0;c[(F&p)>>2]=G+1;F=Oq(e)|0;D=(g&4|0)!=0;E=f+4|0;a:do if((((((((((((c[(E&p)>>2]&2048|0)!=0?(q=c[(f&p)+20>>2]|0,!((c[(e&p)+64>>2]|0)!=0|(q|0)==0)):0)?(c[(q&p)+52>>2]|0)==0:0)?(b[(q&o)+6>>1]&5)==0:0)?(c[(q&p)+60>>2]|0)==0:0)?(c[(q&p)+36>>2]|0)==0:0)?(m=c[(q&p)+32>>2]|0,(c[(m&p)>>2]|0)==1):0)?(c[(m&p)+28>>2]|0)==0:0)?(w=c[(m&p)+24>>2]|0,(w|0)!=0):0)?(a[(w&n)+44>>0]&16)==0:0)?(l=c[(q&p)>>2]|0,(c[(l&p)>>2]|0)==1):0)?(s=c[(c[(l&p)+4>>2]&p)>>2]|0,(a[(s&n)>>0]|0)==-102):0){A=c[(e&p)>>2]|0;B=b[(s&o)+32>>1]|0;r=c[(w&p)+68>>2]|0;b:do if(r){m=c[(A&p)+20>>2]|0;if((m|0)>0){l=c[(A&p)+16>>2]|0;k=0;while(1){q=k+1|0;if((c[(l+(k<<4)&p)+12>>2]|0)==(r|0)){q=k;break b}if((q|0)<(m|0))k=q;else break}}else q=0}else q=-1e6;while(0);y=q<<16>>16;Ar(e,y);gs(e,y,c[(w&p)+32>>2]|0,0,c[(w&p)>>2]|0);z=B<<16>>16;if(B<<16>>16<0){k=Oq(e)|0;h=e+80|0;l=c[(h&p)>>2]|0;c[(h&p)>>2]=l+1;l=wh(k,44,l,0,0)|0;Qq(e,G,y,w,54);k=c[(F&p)+32>>2]|0;if(k>>>0>l>>>0)c[((c[(F&p)+4>>2]|0)+(l*20|0)&p)+8>>2]=k;c[((c[(F&p)+24>>2]|0)&p)+88>>2]=k+-1;k=1;r=49;break}k=Ou(e,c[(f&p)+12>>2]|0,s)|0;x=w+4|0;r=a[((c[(x&p)>>2]|0)+(z*24|0)&n)+21>>0]|0;q=(nv(f)|0)<<24>>24;if((q|0)==65)q=1;else if((q|0)==66)q=r<<24>>24==66&1;else q=r<<24>>24>66&1;r=c[(w&p)+8>>2]|0;if((r|0)!=0&(q|0)!=0){s=A+62|0;q=e+80|0;m=e+8|0;l=(h|0)==0;t=F+32|0;v=F+4|0;w=F+24|0;u=e+72|0;c:while(1){do if((b[(c[(r&p)+4>>2]&o)>>1]|0)==B<<16>>16?(Yn(A,a[(s&n)>>0]|0,c[(c[(r&p)+32>>2]&p)>>2]|0,0)|0)==(k|0):0){if(!D)break c;if((b[(r&o)+46>>1]|0)!=1)break;if(a[(r&n)+50>>0]|0)break c}while(0);r=c[(r&p)+20>>2]|0;if(!r){r=38;break a}}E=Oq(e)|0;k=c[(q&p)>>2]|0;c[(q&p)>>2]=k+1;q=wh(E,44,k,0,0)|0;wh(F,54,G,c[(r&p)+40>>2]|0,y)|0;k=c[(m&p)>>2]|0;xh(k,-1,hs(e,r)|0,-6);k=(d[(c[(r&p)+28>>2]&n)>>0]|0)+3|0;if(!l?(a[((c[(x&p)>>2]|0)+(z*24|0)&n)+20>>0]|0)==0:0){E=(c[(u&p)>>2]|0)+1|0;c[(u&p)>>2]=E;c[(h&p)>>2]=E;lv(F,G,E)}l=c[(t&p)>>2]|0;if(l>>>0>q>>>0)c[((c[(v&p)>>2]|0)+(q*20|0)&p)+8>>2]=l;c[((c[(w&p)>>2]|0)&p)+88>>2]=l+-1;r=49}else r=38}else r=38;while(0);do if((r|0)==38){if((g&1|0)!=0?(c[(E&p)>>2]&2048|0)==0:0){g=f+12|0;B=c[(g&p)>>2]|0;c[(g&p)>>2]=0;c[(C&p)>>2]=0;c[(C&p)+4>>2]=0;c[(C&p)+8>>2]=0;c[(C&p)+12>>2]=0;c[(C&p)+16>>2]=0;c[(C&p)+20>>2]=0;F=C+20|0;a[(F&n)>>0]=1;c[(C&p)>>2]=78;c[(C&p)+4>>2]=79;c[(C&p)+24>>2]=0;rs(C,f)|0;F=a[(F&n)>>0]|0;c[(g&p)>>2]=B;if(!(F<<24>>24)){k=5;r=49;break}if((c[(c[(f&p)+20>>2]&p)>>2]|0)<3){k=5;r=49;break}}m=e+424|0;q=c[(m&p)>>2]|0;if(D){c[(m&p)>>2]=0;if((b[((c[(f&p)+12>>2]|0)&o)+32>>1]|0)<0){k=((c[(E&p)>>2]|0)>>>11&1)+1|0;l=0}else{k=2;l=0}}else if(!h){k=2;l=0}else{k=e+72|0;l=(c[(k&p)>>2]|0)+1|0;c[(k&p)>>2]=l;c[(h&p)>>2]=l;k=2}eu(e,f,l,(k|0)==1&1)|0;c[(m&p)>>2]=q}while(0);if((r|0)==49)c[(f&p)+28>>2]=G;i=H;return k|0}function nv(a){a=a|0;var b=0,d=0;b=kv(c[(a&p)+12>>2]|0)|0;d=c[(a&p)+16>>2]|0;do if(!d)if(!(c[(a&p)+4>>2]&2048))return (b<<24>>24==0?65:b)|0;else{b=Bu(c[(c[((c[(c[(a&p)+20>>2]&p)>>2]|0)&p)+4>>2]&p)>>2]|0,b)|0;break}else b=Bu(d,b)|0;while(0);return b|0}function ov(d,e,f,g,h,k){d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;var l=0,m=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,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;aa=i;i=i+16|0;if((i|0)>=(j|0))fa();Z=aa;X=c[(d&p)>>2]|0;_=k+28|0;c[(_&p)>>2]=-1;W=k+44|0;c[(W&p)>>2]=0;a:do if((e|0)!=0?(b[(h&o)+28>>1]&20)==0:0){t=c[(X&p)+20>>2]|0;if((t|0)>0){r=c[(X&p)+16>>2]|0;s=0;while(1){if(!(dd(c[(r+(s<<4)&p)>>2]|0,e)|0))break;s=s+1|0;if((s|0)>=(t|0)){V=e;e=0;break a}}V=e;e=c[(r+(s<<4)&p)+12>>2]|0}else{V=e;e=0}}else{V=0;e=0}while(0);T=(V|0)==0;Q=T&(f|0)!=0;m=d+412|0;M=d+436|0;N=k+1|0;$=k+32|0;O=d+428|0;P=d+432|0;U=(f|0)==0;S=k+4|0;l=h;u=0;q=0;t=0;s=0;b:while(1){L=(l|0)!=0;r=l+4|0;K=l+8|0;v=0;w=u;while(1){u=(v|0)==0;if(!(L&u)){Y=82;break b}v=c[(r&p)>>2]|0;if(v){J=c[(v&p)>>2]|0;if((J|0)>0){u=0;I=0;H=v+8|0;while(1){F=c[(H&p)+16>>2]|0;x=c[(H&p)+20>>2]|0;if((x|0)!=0?(b[(x&o)+6>>1]&512)!=0:0){x=c[(x&p)>>2]|0;D=c[(x&p)>>2]|0;if((D|0)>0){E=c[(x&p)+4>>2]|0;x=0;z=0;do{if(vv(c[(E+(z*20|0)&p)+8>>2]|0,g,f,V)|0){b[($&o)>>1]=z;u=u+1|0;w=2;x=1;s=H}z=z+1|0}while((z|0)<(D|0))}else x=0;if(!((x|0)!=0|U)){y=w;Y=21}}else{y=w;Y=21}c:do if((Y|0)==21){Y=0;if(!T?(c[(F&p)+68>>2]|0)!=(e|0):0){w=y;break}if(!U){x=c[(H&p)+12>>2]|0;if(!x)x=c[(F&p)>>2]|0;if(dd(x,f)|0){w=y;break}}w=y+1|0;s=(y|0)==0?H:s;x=b[(F&o)+38>>1]|0;if(x<<16>>16>0){v=(u|0)==1;A=H+36|0;B=H+48|0;D=0;E=c[(F&p)+4>>2]|0;d:while(1){e:do if(!(dd(c[(E&p)>>2]|0,g)|0)){if(!v){s=D;break d}if(!(a[(A&n)>>0]&4)){z=c[(B&p)>>2]|0;if(!z){s=D;break d}C=c[(z&p)+4>>2]|0;if((C|0)<=0){s=D;break d}z=c[(z&p)>>2]|0;y=0;while(1){if(!(dd(c[(z+(y<<3)&p)>>2]|0,g)|0))break e;y=y+1|0;if((y|0)>=(C|0)){s=D;break d}}}}while(0);D=D+1|0;if((D|0)>=(x<<16>>16|0))break c;else E=E+24|0}b[($&o)>>1]=(s|0)==(b[(F&o)+36>>1]|0)?-1:s&65535;u=u+1|0;s=H}}while(0);I=I+1|0;if((I|0)>=(J|0))break;else H=H+72|0}}else u=0;if(!s)E=0;else{c[(_&p)>>2]=c[(s&p)+40>>2];v=c[(s&p)+16>>2]|0;c[(W&p)>>2]=v;if(a[(s&n)+36>>0]&8)c[(S&p)>>2]=c[(S&p)>>2]|1048576;E=s;e=c[(v&p)+68>>2]|0}}else{u=0;E=s}do if(Q&(w|0)==0)if(c[(m&p)>>2]|0){v=a[(M&n)>>0]|0;if(v<<24>>24!=109)if(dd(27560,f)|0)if(v<<24>>24==108){y=u;w=0;z=q;break}else Y=49;else z=1;else Y=49;if((Y|0)==49){Y=0;if(!(dd(27568,f)|0))z=0;else{y=u;w=0;z=q;break}}c[(_&p)>>2]=z;y=c[(m&p)>>2]|0;if(y){e=c[(y&p)+68>>2]|0;x=b[(y&o)+38>>1]|0;f:do if(x<<16>>16>0){v=0;w=c[(y&p)+4>>2]|0;while(1){if(!(dd(c[(w&p)>>2]|0,g)|0))break;v=v+1|0;if((v|0)<(x<<16>>16|0))w=w+24|0;else break f}v=(v|0)==(b[(y&o)+36>>1]|0)?-1:v}else v=0;while(0);s=x<<16>>16;if((v|0)>=(s|0)?($h(g)|0)!=0:0)w=(a[(y&n)+44>>0]&32)==0?-1:v;else w=v;if((w|0)<(s|0)){u=u+1|0;do if((w|0)>=0){v=(w|0)>31?-1:1<>2]=c[(O&p)>>2]|v;break}else{c[(P&p)>>2]=c[(P&p)>>2]|v;break}}else a[(N&n)>>0]=68;while(0);b[($&o)>>1]=w;c[(W&p)>>2]=y;w=1;q=1;Y=66}else{w=1;Y=66}}else{y=u;w=0;z=q}}else{y=u;w=0;z=q}else Y=66;while(0);if((Y|0)==66){Y=0;if((u|0)==0&(w|0)==1&(E|0)!=0)if(($h(g)|0)!=0?(a[((c[(E&p)+16>>2]|0)&n)+44>>0]&32)==0:0){b[($&o)>>1]=-1;a[(N&n)>>0]=68;v=1;s=E;continue}else{y=0;z=q}else{y=u;z=q}}u=c[(K&p)>>2]|0;x=(y|0)==0;if((u|0)!=0&U&x?(R=c[(u&p)>>2]|0,(R|0)>0):0){q=c[(u&p)+4>>2]|0;s=0;do{v=c[(q+(s*20|0)&p)+4>>2]|0;if((v|0)!=0?(dd(v,g)|0)==0:0){Y=75;break b}s=s+1|0}while((s|0)<(R|0))}if(x){v=w;q=z;s=E;break}else{v=y;q=z;s=E}}l=c[(l&p)+16>>2]|0;u=v;t=t+1|0}do if((Y|0)==75){if((b[(l&o)+28>>1]&1)==0?(c[((c[(q+(s*20|0)&p)>>2]|0)&p)+4>>2]&2|0)!=0:0){c[(Z&p)>>2]=v;th(d,27576,Z);h=2;break}yv(d,u,s,k,10360,t);if((a[(k&n)>>0]|0)==24)Y=115;else Y=96}else if((Y|0)==82){if(u&U?(c[(S&p)>>2]&64|0)!=0:0){a[(k&n)>>0]=97;c[(W&p)>>2]=0;h=1;break}v=(v|0)==1;if(!v){u=u?27608:27624;do if(T)if(U){c[(Z&p)>>2]=u;c[(Z&p)+4>>2]=g;th(d,27680,Z);break}else{c[(Z&p)>>2]=u;c[(Z&p)+4>>2]=f;c[(Z&p)+8>>2]=g;th(d,27664,Z);break}else{c[(Z&p)>>2]=u;c[(Z&p)+4>>2]=V;c[(Z&p)+8>>2]=f;c[(Z&p)+12>>2]=g;th(d,27648,Z)}while(0);a[(d&n)+17>>0]=1;I=h+24|0;c[(I&p)>>2]=(c[(I&p)>>2]|0)+1}t=b[($&o)>>1]|0;if(t<<16>>16>-1&(s|0)!=0){E=t<<16>>16>63;F=iw(1,0,t<<16>>16|0)|0;I=s+56|0;D=I;H=c[(D&p)+4>>2]|(E?-2147483648:G);c[(I&p)>>2]=c[(D&p)>>2]|(E?0:F);c[(I&p)+4>>2]=H}I=k+12|0;Gk(X,c[(I&p)>>2]|0);c[(I&p)>>2]=0;I=k+16|0;Gk(X,c[(I&p)>>2]|0);c[(I&p)>>2]=0;a[(k&n)>>0]=(q|0)!=0?62:-102;if(v)Y=96;else h=2}while(0);g:do if((Y|0)==96){u=c[(r&p)>>2]|0;q=c[(d&p)>>2]|0;if(!((c[(q&p)+284>>2]|0)==0|(e|0)==0)){t=c[(q&p)+20>>2]|0;if((t|0)>0){r=c[(q&p)+16>>2]|0;s=0;while(1){q=s+1|0;if((c[(r+(s<<4)&p)+12>>2]|0)==(e|0)){q=s;break}if((q|0)<(t|0))s=q;else break}if((q|0)<0){Y=115;break}else e=q}else e=0;if((a[(k&n)>>0]|0)!=62){r=c[(u&p)>>2]|0;if((r|0)<=0){Y=115;break}m=c[(_&p)>>2]|0;q=0;while(1){if((m|0)==(c[(u+(q*72|0)&p)+48>>2]|0))break;q=q+1|0;if((q|0)>=(r|0)){Y=115;break g}}m=u+(q*72|0)+24|0}r=c[(m&p)>>2]|0;m=b[($&o)>>1]|0;q=m<<16>>16;if(r){if(m<<16>>16<=-1){m=b[(r&o)+36>>1]|0;if(m<<16>>16>-1)m=c[((c[(r&p)+4>>2]|0)+((m<<16>>16)*24|0)&p)>>2]|0;else m=12944}else m=c[((c[(r&p)+4>>2]|0)+(q*24|0)&p)>>2]|0;if((ev(d,c[(r&p)>>2]|0,m,e)|0)==2){a[(k&n)>>0]=101;Y=115}else Y=115}else Y=115}else Y=115}while(0);if((Y|0)==115){I=h+20|0;c[(I&p)>>2]=(c[(I&p)>>2]|0)+1;if((l|0)==(h|0))h=1;else{do{h=c[(h&p)+16>>2]|0;I=h+20|0;c[(I&p)>>2]=(c[(I&p)>>2]|0)+1}while((h|0)!=(l|0));h=1}}i=aa;return h|0}function pv(b,d){b=b|0;d=d|0;var e=0,f=0,g=0;e=a[(d&n)>>0]|0;a:do if(e<<24>>24==-100|e<<24>>24==-102){e=c[(b&p)+24>>2]|0;f=c[(e&p)>>2]|0;b:do if((f|0)!=0?(g=c[(f&p)>>2]|0,(g|0)>0):0){b=c[(d&p)+28>>2]|0;d=0;while(1){if((b|0)==(c[(f+(d*72|0)&p)+48>>2]|0))break;d=d+1|0;if((d|0)>=(g|0))break b}b=e+4|0;c[(b&p)>>2]=(c[(b&p)>>2]|0)+1;break a}while(0);b=e+8|0;c[(b&p)>>2]=(c[(b&p)>>2]|0)+1}while(0);return 0}function qv(d,e,f,g){d=d|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0;z=i;i=i+16|0;if((i|0)>=(j|0))fa();y=z;t=z+12|0;a:do if(!f)h=0;else{w=c[(c[(e&p)>>2]&p)>>2]|0;x=c[(d&p)>>2]|0;b:do if((c[(f&p)>>2]|0)>0){h=0;u=c[(f&p)+4>>2]|0;c:while(1){r=c[(u&p)>>2]|0;d:do if(!r)k=0;else{k=r;while(1){l=c[(k&p)+4>>2]|0;if(!(l&4096))break d;if(!(l&262144))k=k+12|0;else k=c[((c[(k&p)+20>>2]|0)&p)+4>>2]|0;k=c[(k&p)>>2]|0;if(!k){k=0;break}}}while(0);if((a[(g&n)>>0]|0)!=71?(s=rv(c[(e&p)>>2]|0,k)|0,c[(t&p)>>2]=s,(s|0)>0):0)b[(u&o)+16>>1]=s;else v=13;do if((v|0)==13){v=0;if(Ms(k,t)|0){k=c[(t&p)>>2]|0;if((k+-1|0)>>>0>65534)break c;b[(u&o)+16>>1]=k;break}m=u+16|0;b[(m&o)>>1]=0;if(ls(d,r)|0){h=1;break a}l=c[(e&p)>>2]|0;q=c[(l&p)>>2]|0;if((q|0)>0){l=c[(l&p)+4>>2]|0;k=0;do{A=k;k=k+1|0;if(!(Cu(r,c[(l+(A*20|0)&p)>>2]|0,-1)|0))b[(m&o)>>1]=k}while((k|0)<(q|0))}}while(0);h=h+1|0;if((h|0)>=(c[(f&p)>>2]|0))break b;else u=u+20|0}c[(y&p)>>2]=h+1;c[(y&p)+4>>2]=g;c[(y&p)+8>>2]=w;th(x,27064,y);h=1;break a}while(0);h=wu(x,e,f,g)|0}while(0);i=z;return h|0}function rv(b,d){b=b|0;d=d|0;var e=0,f=0,g=0;a:do if((a[(d&n)>>0]|0)==27?(f=c[(d&p)+8>>2]|0,g=c[(b&p)>>2]|0,(g|0)>0):0){b=c[(b&p)+4>>2]|0;d=0;while(1){e=c[(b+(d*20|0)&p)+4>>2]|0;if((e|0)!=0?(dd(e,f)|0)==0:0)break;d=d+1|0;if((d|0)>=(g|0)){d=0;break a}}d=d+1|0}else d=0;while(0);return d|0}function sv(a,d){a=a|0;d=d|0;var e=0,f=0;e=b[(a&o)+38>>1]|0;a:do if(e<<16>>16>0){f=c[(a&p)+4>>2]|0;e=e<<16>>16;a=0;while(1){if(!(dd(c[(f+(a*24|0)&p)>>2]|0,d)|0))break a;a=a+1|0;if((a|0)>=(e|0)){a=-1;break}}}else a=-1;while(0);return a|0}function tv(a,d,e,f,g,h,i,j){a=a|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;var k=0;k=c[(a&p)>>2]|0;e=Rv(k,d,e,f)|0;f=Rv(k,d,g,h)|0;h=Zq(a,79,e,f,0)|0;if((h|0)!=0&(i|0)!=0){e=h+4|0;c[(e&p)>>2]=c[(e&p)>>2]|1;b[(h&o)+36>>1]=c[(f&p)+28>>2]}c[(j&p)>>2]=ss(k,c[(j&p)>>2]|0,h)|0;return}function uv(a,d){a=a|0;d=d|0;var e=0,f=0;if(a){e=d&65535;do{f=a+4|0;c[(f&p)>>2]=c[(f&p)>>2]|1;b[(a&o)+36>>1]=e;uv(c[(a&p)+12>>2]|0,d);a=c[(a&p)+16>>2]|0}while((a|0)!=0)}return}function vv(b,c,d,e){b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0;f=0;while(1){g=a[(b+f&n)>>0]|0;if(g<<24>>24==46|g<<24>>24==0)break;f=f+1|0}if(e)if((Fc(b,e,f)|0)==0?(a[(e+f&n)>>0]|0)==0:0)h=7;else f=0;else h=7;do if((h|0)==7){e=f+1|0;h=b+e|0;g=0;while(1){i=a[(b+g+e&n)>>0]|0;if(i<<24>>24==46|i<<24>>24==0)break;g=g+1|0}if(d){if(Fc(h,d,g)|0){f=0;break}if(a[(d+g&n)>>0]|0){f=0;break}}if((c|0)!=0?(dd(b+(f+2+g)|0,c)|0)!=0:0){f=0;break}f=1}while(0);return f|0}function wv(a,b){a=a|0;b=b|0;var d=0,e=0;a:do if((a|0)!=0?(e=c[(a&p)+4>>2]|0,(e|0)>0):0){d=c[(a&p)>>2]|0;a=0;while(1){if(!(dd(c[(d+(a<<3)&p)>>2]|0,b)|0))break a;a=a+1|0;if((a|0)>=(e|0)){a=-1;break}}}else a=-1;while(0);return a|0}function xv(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0;h=i;i=i+16|0;if((i|0)>=(j|0))fa();g=h;c[(g&p)>>2]=e;if(!e)f=0;else{f=e;while(1)if(!(a[(f&n)>>0]|0))break;else f=f+1|0;f=f-e&1073741823}c[(g&p)+4>>2]=f;f=vr(b,d,g,0)|0;i=h;return f|0}function yv(d,e,f,g,h,k){d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;var l=0,m=0,q=0,r=0,s=0,t=0,u=0,v=0;v=i;i=i+32|0;if((i|0)>=(j|0))fa();r=v;m=e+4|0;q=c[((c[(m&p)>>2]|0)+(f*20|0)&p)>>2]|0;s=c[(d&p)>>2]|0;l=Mr(s,q,0,0)|0;do if(l){if((a[(q&n)>>0]|0)!=-102?(a[(h&n)>>0]|0)!=71:0){if((k|0)>0){c[(r&p)>>2]=0;c[(r&p)+4>>2]=0;c[(r&p)+8>>2]=0;c[(r&p)+12>>2]=0;c[(r&p)+16>>2]=0;c[(r&p)+20>>2]=0;c[(r&p)>>2]=88;c[(r&p)+24>>2]=k;rs(r,l)|0}l=Zq(d,24,l,0,0)|0;if(!l)break;e=l+4|0;c[(e&p)>>2]=c[(e&p)>>2]|4096;e=(c[(m&p)>>2]|0)+(f*20|0)+18|0;k=b[(e&o)>>1]|0;if(!(k<<16>>16)){f=d+456|0;k=(c[(f&p)>>2]|0)+1|0;c[(f&p)>>2]=k;k=k&65535;b[(e&o)>>1]=k}c[(l&p)+28>>2]=k&65535}if((a[(g&n)>>0]|0)==95)l=xv(d,l,c[(g&p)+8>>2]|0)|0;e=g+4|0;c[(e&p)>>2]=c[(e&p)>>2]|32768;Gk(s,g);k=g+0|0;m=l+0|0;q=k+48|0;do{c[(k&p)>>2]=c[(m&p)>>2];k=k+4|0;m=m+4|0}while((k|0)<(q|0));if((c[(e&p)>>2]&1024|0)==0?(t=g+8|0,u=c[(t&p)>>2]|0,(u|0)!=0):0){c[(t&p)>>2]=kh(s,u)|0;c[(e&p)>>2]=c[(e&p)>>2]|65536}mg(s,l)}while(0);i=v;return}function zv(a,d,f){a=a|0;d=d|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0;n=a+12|0;g=c[(n&p)>>2]|0;k=a+16|0;i=c[(k&p)>>2]|0;m=a+20|0;do if((g|0)<(i|0))l=15;else{g=c[(m&p)>>2]|0;j=c[(c[(c[(a&p)>>2]&p)>>2]&p)>>2]|0;h=mh(j,i*96|0,0)|0;c[(m&p)>>2]=h;if(!h){if(f&1)Gk(j,d);c[(m&p)>>2]=g;g=0;break}kw(h|0,g|0,(c[(n&p)>>2]|0)*48|0)|0;if((g|0)!=(a+24|0))mg(j,g);h=c[(m&p)>>2]|0;do if(!j)h=lc[c[8792>>2]&127](h)|0;else{if((c[(j&p)+276>>2]|0)>>>0<=h>>>0?(c[(j&p)+280>>2]|0)>>>0>h>>>0:0){h=e[(j&o)+248>>1]|0;break}h=lc[c[8792>>2]&127](h)|0}while(0);l=(h>>>0)/48|0;c[(k&p)>>2]=l;g=c[(n&p)>>2]|0;fw((c[(m&p)>>2]|0)+(g*48|0)|0,0,(l-g|0)*48|0)|0;g=c[(n&p)>>2]|0;l=15}while(0);if((l|0)==15){c[(n&p)>>2]=g+1;i=c[(m&p)>>2]|0;a:do if(!d){b[(i+(g*48|0)&o)+16>>1]=1;d=0}else{if(!(c[(d&p)+4>>2]&262144))h=1;else{h=c[(d&p)+28>>2]|0;h=((fs(h,((h|0)<0)<<31>>31)|0)&65535)+65266&65535}b[(i+(g*48|0)&o)+16>>1]=h;while(1){h=c[(d&p)+4>>2]|0;if(!(h&4096))break a;if(!(h&262144))d=d+12|0;else d=c[((c[(d&p)+20>>2]|0)&p)+4>>2]|0;d=c[(d&p)>>2]|0;if(!d){d=0;break}}}while(0);c[(i+(g*48|0)&p)>>2]=d;b[(i+(g*48|0)&o)+20>>1]=f;c[(i+(g*48|0)&p)+24>>2]=a;c[(i+(g*48|0)&p)+4>>2]=-1}return g|0}function Av(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0;a:do if(d)if((a[(d&n)>>0]|0)==-102){d=c[(d&p)+28>>2]|0;f=c[(b&p)>>2]|0;if((f|0)>0)e=0;else{f=0;e=0;break}while(1){if((c[(b+(e<<2)&p)+4>>2]|0)==(d|0))break;e=e+1|0;if((e|0)>=(f|0)){f=0;e=0;break a}}e=iw(1,0,e|0)|0;f=G;break}else{g=Av(b,c[(d&p)+16>>2]|0)|0;e=G;h=Av(b,c[(d&p)+12>>2]|0)|0;e=G|e;f=d+20|0;if(!(c[(d&p)+4>>2]&2048)){d=Lu(b,c[(f&p)>>2]|0)|0;f=G}else{d=Bv(b,c[(f&p)>>2]|0)|0;f=G}f=e|f;e=h|g|d;break}else{f=0;e=0}while(0);G=f;return e|0}function Bv(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;if(!b){b=0;d=0}else{g=b;d=0;b=0;do{f=c[(g&p)+32>>2]|0;l=Lu(a,c[(g&p)>>2]|0)|0;b=G|b;k=Lu(a,c[(g&p)+40>>2]|0)|0;b=b|G;j=Lu(a,c[(g&p)+48>>2]|0)|0;b=b|G;i=Av(a,c[(g&p)+36>>2]|0)|0;b=b|G;e=Av(a,c[(g&p)+44>>2]|0)|0;d=l|d|k|j|i|e;b=b|G;if((f|0)!=0?(h=c[(f&p)>>2]|0,(h|0)>0):0){e=0;do{j=Bv(a,c[(f+(e*72|0)&p)+28>>2]|0)|0;b=G|b;k=Av(a,c[(f+(e*72|0)&p)+52>>2]|0)|0;d=j|d|k;b=b|G;e=e+1|0}while((e|0)<(h|0))}g=c[(g&p)+52>>2]|0}while((g|0)!=0)}G=b;return d|0}function Cv(d,e,f){d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0;l=b[(e&o)+18>>1]|0;k=b[(f&o)+18>>1]|0;h=k|l;if(((!((l&62)==0|(k&62)==0)?(g=h&65535,(g&26|0)==(g|0)|(g&38|0)==(g|0)):0)?(j=c[(e&p)>>2]|0,i=c[(f&p)>>2]|0,(Cu(c[(j&p)+12>>2]|0,c[(i&p)+12>>2]|0,-1)|0)==0):0)?(Cu(c[(j&p)+16>>2]|0,c[(i&p)+16>>2]|0,-1)|0)==0:0){if(g+65535&g)h=(g&24|0)==0?32:8;i=Mr(c[(c[(c[(d&p)>>2]&p)>>2]&p)>>2]|0,j,0,0)|0;if(i){h=h&65535;g=79;while(1)if((h|0)==(2<>0]=g;Eu(d,zv(d,i,3)|0)}}return}function Dv(d,f,g,h,i,j){d=d|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;var k=0,l=0,m=0,q=0;c[(d&p)>>2]=f;c[(d&p)+4>>2]=f;a:do if((j|0)!=0&(h|0)>-1){a[(d&n)+12>>0]=a[((c[((c[(j&p)+12>>2]|0)&p)+4>>2]|0)+(h*24|0)&n)+21>>0]|0;k=c[(j&p)+4>>2]|0;if((b[(k&o)>>1]|0)==(h|0))f=0;else{l=e[(j&o)+48>>1]|0;m=0;while(1){f=m+1|0;if((m|0)>(l|0)){f=0;break a}if((b[(k+(f<<1)&o)>>1]|0)==(h|0))break;else m=f}}c[(d&p)+8>>2]=c[((c[(j&p)+32>>2]|0)+(f<<2)&p)>>2];q=8}else{a[(d&n)+12>>0]=0;c[(d&p)+8>>2]=0;q=8}while(0);if((q|0)==8){c[(d&p)+16>>2]=i;c[(d&p)+20>>2]=0;c[(d&p)+24>>2]=g;c[(d&p)+28>>2]=h;a[(d&n)+13>>0]=2;a[(d&n)+14>>0]=2;f=Ev(d)|0}return f|0} function Tn(d,f,g,h,k,l,m,q,r){d=d|0;f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;m=m|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,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;da=i;i=i+160|0;if((i|0)>=(j|0))fa();R=da+16|0;N=da+152|0;P=da+48|0;M=da+40|0;Q=da+36|0;O=da+32|0;U=da+8|0;T=da;Z=da+28|0;ba=da+24|0;c[(ba&p)>>2]=0;do if(!(a[(d&n)+46>>0]|0)){ca=d+43|0;if((a[(ca&n)>>0]|0)==0?(s=c[(d&p)+4>>2]|0,s=pc[c[((c[(s&p)>>2]|0)&p)+56>>2]&31](s,1,1,10)|0,(s|0)!=0):0)break;aa=d+45|0;a[(aa&n)>>0]=1;a:do if(!f){w=0;_=11}else{u=d+4|0;s=(g|0)!=0;while(1){if(a[(ca&n)>>0]|0)break;w=c[(u&p)>>2]|0;w=pc[c[((c[(w&p)>>2]|0)&p)+56>>2]&31](w,0,1,10)|0;if(!(s&(w|0)==5)){_=9;break}if(!(lc[g&127](h)|0)){w=0;g=0;_=11;break a}}if((_|0)==9)if((w|0)==5){w=0;g=0;_=11;break}else if(w){$=f;break}a[(d&n)+44>>0]=1;w=f;_=11}while(0);if((_|0)==11){$=w;w=nq(d,ba)|0}do if(!w){Y=d+68|0;w=b[(d&o)+66>>1]|0;if((c[(Y&p)>>2]|0)!=0?(X=w&65535,(X<<16&65536|X&65024|0)!=(l|0)):0){c[(R&p)>>2]=51863;c[(R&p)+4>>2]=10788;bd(11,13600,R);t=11;break}V=w&65535;V=V<<16&65536|V&65024;X=d+32|0;W=(c[(c[(X&p)>>2]&p)>>2]|0)+96|0;z=c[(Y&p)>>2]|0;b:do if((c[(W&p)>>2]|0)>>>0>>0){K=(z+33|0)>>>12;L=K+1|0;l=z<<1;y=l+28+(K*20|0)|0;s=Tc(y)|0;c:do if(!s){w=7;s=0}else{fw(s|0,0,y|0)|0;y=s+4|0;c[(y&p)>>2]=L;l=Tc(z>>>0>4096?8192:l)|0;do if(l){J=s+8|0;x=0;while(1){w=Po(d,x,M,O,Q)|0;if(w){_=21;break}I=(c[(O&p)>>2]|0)+4|0;c[(O&p)>>2]=I;if((x|0)==(K|0)){H=c[(Q&p)>>2]|0;w=H;H=z-H|0}else{w=c[(Q&p)>>2]|0;H=(c[(M&p)>>2]|0)-I>>2}u=J+((c[(y&p)>>2]|0)*20|0)|0;F=u+(w<<1)|0;E=w+1|0;c[(Q&p)>>2]=E;if((H|0)>0){B=0;do{b[(u+(B+w<<1)&o)>>1]=B;B=B+1|0}while((B|0)!=(H|0));c[(R&p)>>2]=0;c[(N&p)>>2]=0;C=P+0|0;B=C+104|0;do{c[(C&p)>>2]=0;C=C+4|0}while((C|0)<(B|0));D=0;do{c[(R&p)>>2]=1;C=u+(D+w<<1)|0;c[(N&p)>>2]=C;if(!(D&1)){A=1;B=0}else{B=0;do{oq(I,c[(P+(B<<3)&p)+4>>2]|0,c[(P+(B<<3)&p)>>2]|0,N,R,l);B=B+1|0}while((1<>2]|0;C=c[(N&p)>>2]|0}c[(P+(B<<3)&p)+4>>2]=C;c[(P+(B<<3)&p)>>2]=A;D=D+1|0}while((D|0)!=(H|0));B=B+1|0;if((B|0)<13)_=34}else{c[(R&p)>>2]=0;c[(N&p)>>2]=0;C=P+0|0;B=C+104|0;do{c[(C&p)>>2]=0;C=C+4|0}while((C|0)<(B|0));B=1;_=34}if((_|0)==34){while(1){_=0;if(1<>2]|0,c[(P+(B<<3)&p)>>2]|0,N,R,l);B=B+1|0;if((B|0)==13)break;else _=34}A=c[(R&p)>>2]|0}c[(J+(x*20|0)&p)+16>>2]=E;c[(J+(x*20|0)&p)+12>>2]=A;c[(J+(x*20|0)&p)+4>>2]=F;c[(J+(x*20|0)&p)+8>>2]=I;x=x+1|0;if((x|0)>=(L|0)){_=39;break}}if((_|0)==21){Wc(l);break}else if((_|0)==39){Wc(l);w=0;break c}}else{Wc(0);w=7}while(0);Wc(s)}while(0);if(!w){R=d+72|0;Q=c[(R&p)>>2]|0;P=d+4|0;A=1;z=c[(Y&p)>>2]|0;w=0;while(1){l=W+(A<<2)+4|0;u=c[(l&p)>>2]|0;d:do if(z>>>0>u>>>0){y=A+3|0;x=(g|0)!=0;while(1){if(a[(ca&n)>>0]|0)break;w=c[(P&p)>>2]|0;w=pc[c[((c[(w&p)>>2]|0)&p)+56>>2]&31](w,y,1,10)|0;if(!(x&(w|0)==5)){_=49;break}if(!(lc[g&127](h)|0)){g=0;w=5;break d}}if((_|0)==49){_=0;if((w|0)==5){g=0;w=5;break}else if(w){t=w;_=100;break b}}c[(l&p)>>2]=(A|0)==1?z:-1;if(!(a[(ca&n)>>0]|0)){u=c[(P&p)>>2]|0;pc[c[((c[(u&p)>>2]|0)&p)+56>>2]&31](u,y,1,9)|0;u=z;w=0}else{u=z;w=0}}else u=z;while(0);A=A+1|0;if((A|0)>=5){L=u;break}else z=u}e:do if((c[(W&p)>>2]|0)>>>0>>0){w=(g|0)!=0;while(1){if(a[(ca&n)>>0]|0)break;u=c[(P&p)>>2]|0;u=pc[c[((c[(u&p)>>2]|0)&p)+56>>2]&31](u,3,1,10)|0;if(!(w&(u|0)==5)){v=u;_=58;break}if(!(lc[g&127](h)|0)){v=5;break e}}if((_|0)==58?(v|0)!=0:0)break;I=c[(W&p)>>2]|0;J=(k|0)!=0;if(J?(S=c[(d&p)+8>>2]|0,S=rc[c[((c[(S&p)>>2]|0)&p)+20>>2]&127](S,k)|0,(S|0)!=0):0)v=S;else _=61;f:do if((_|0)==61){S=sw(Q|0,0,V|0,0)|0;v=T;c[(v&p)>>2]=S;c[(v&p)+4>>2]=G;v=c[(P&p)>>2]|0;v=rc[c[((c[(v&p)>>2]|0)&p)+24>>2]&127](v,U)|0;if(!v){S=U;N=c[(S&p)+4>>2]|0;U=T;O=c[(U&p)+4>>2]|0;if((N|0)<(O|0)|((N|0)==(O|0)?(c[(S&p)>>2]|0)>>>0<(c[(U&p)>>2]|0)>>>0:0)){U=c[(P&p)>>2]|0;ac[c[((c[(U&p)>>2]|0)&p)+40>>2]&63](U,5,T)|0}E=s+4|0;F=V|24;H=d+8|0;w=c[(E&p)>>2]|0;g:do if((w|0)>0){v=0;while(1){D=c[(s&p)>>2]|0;C=-1;h:while(1){i:while(1){w=w+-1|0;A=s+(w*20|0)+8|0;l=c[(A&p)>>2]|0;u=c[(s+(w*20|0)&p)+20>>2]|0;j:do if((l|0)<(u|0)){z=c[(s+(w*20|0)&p)+12>>2]|0;B=c[(s+(w*20|0)&p)+16>>2]|0;while(1){x=e[(z+(l<<1)&o)>>1]|0;y=c[(B+(x<<2)&p)>>2]|0;if(y>>>0>D>>>0)break;l=l+1|0;c[(A&p)>>2]=l;if((l|0)>=(u|0))break j}if(y>>>0>>0)break i}while(0);if((w|0)<=0){l=v;w=C;break h}}v=(c[(s+(w*20|0)&p)+24>>2]|0)+x|0;if((w|0)>0)C=y;else{l=v;w=y;break}}c[(s&p)>>2]=w;if((w|0)==-1)break g;if(!(l>>>0<=I>>>0|l>>>0>L>>>0|w>>>0>Q>>>0)){v=sw(l+-1|0,0,F|0,0)|0;v=jw(v|0,G|0,56,0)|0;U=c[(H&p)>>2]|0;v=tc[c[((c[(U&p)>>2]|0)&p)+8>>2]&31](U,m,V,v,G)|0;if(v)break f;v=sw(w+-1|0,0,V|0,0)|0;U=c[(P&p)>>2]|0;v=tc[c[((c[(U&p)>>2]|0)&p)+12>>2]&31](U,m,V,v,G)|0;if(v)break f}w=c[(E&p)>>2]|0;if((w|0)<=0){_=66;break}else v=l}}else _=66;while(0);if((_|0)==66)c[(s&p)>>2]=-1;if((L|0)==(c[((c[(c[(X&p)>>2]&p)>>2]|0)&p)+16>>2]|0)){v=sw(c[(R&p)>>2]|0,0,V|0,0)|0;_=c[(P&p)>>2]|0;v=ac[c[((c[(_&p)>>2]|0)&p)+16>>2]&63](_,v,G)|0;if((v|0)==0&J){v=c[(P&p)>>2]|0;v=rc[c[((c[(v&p)>>2]|0)&p)+20>>2]&127](v,k)|0}if(v)break}c[(W&p)>>2]=L;v=0}}while(0);if(!(a[(ca&n)>>0]|0)){_=c[(P&p)>>2]|0;pc[c[((c[(_&p)>>2]|0)&p)+56>>2]&31](_,3,1,9)|0}}else v=w;while(0);v=(v|0)==5?0:v;_=88}else t=w}else{s=0;v=0;_=88}while(0);k:do if((_|0)==88)if((v|0)==0&($|0)!=0)if((c[(W&p)>>2]|0)>>>0>=(c[(Y&p)>>2]|0)>>>0)if(($|0)>1){cd(4,Z);w=d+4|0;u=(g|0)!=0;while(1){if(a[(ca&n)>>0]|0)break;v=c[(w&p)>>2]|0;v=pc[c[((c[(v&p)>>2]|0)&p)+56>>2]&31](v,4,4,10)|0;if(!(u&(v|0)==5)){t=v;_=95;break}if(!(lc[g&127](h)|0)){t=5;_=100;break k}}if((_|0)==95?(t|0)!=0:0){_=100;break}if(($|0)==3){Xo(d,c[(Z&p)>>2]|0);t=c[(d&p)+8>>2]|0;t=ac[c[((c[(t&p)>>2]|0)&p)+16>>2]&63](t,0,0)|0}else t=0;if(!(a[(ca&n)>>0]|0)){_=c[(w&p)>>2]|0;pc[c[((c[(_&p)>>2]|0)&p)+56>>2]&31](_,4,4,9)|0;_=100}else _=100}else{t=0;_=100}else{t=5;_=100}else{t=v;_=100}while(0);if((_|0)==100)Wc(s);if((t|0)==0|(t|0)==5){if(q)c[(q&p)>>2]=c[(Y&p)>>2];if(r)c[(r&p)>>2]=c[((c[(c[(X&p)>>2]&p)>>2]|0)&p)+96>>2]}}else t=w;while(0);if(c[(ba&p)>>2]|0){C=d+52|0;B=C+48|0;do{c[(C&p)>>2]=0;C=C+4|0}while((C|0)<(B|0))}s=d+44|0;if(a[(s&n)>>0]|0){if(!(a[(ca&n)>>0]|0)){ba=c[(d&p)+4>>2]|0;pc[c[((c[(ba&p)>>2]|0)&p)+56>>2]&31](ba,0,1,9)|0}a[(s&n)>>0]=0;a[(d&n)+47>>0]=0}if(!(a[(ca&n)>>0]|0)){ca=c[(d&p)+4>>2]|0;pc[c[((c[(ca&p)>>2]|0)&p)+56>>2]&31](ca,1,1,9)|0}a[(aa&n)>>0]=0;s=(t|0)!=0|($|0)==(f|0)?t:5}else s=8;while(0);i=da;return s|0}function Un(b,c,d,e,f){b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0,h=0;h=(c|0)<(e|0)?c:e;g=Zv(d,f,h)|0;a:do if(!g){b:do if(b){g=c-h|0;while(1){if((g|0)<=0)break;g=g+-1|0;if((a[(d+g+h&n)>>0]|0)!=32)break b}if(!g){g=e-h|0;while(1){if((g|0)<=0)break;g=g+-1|0;if((a[(f+g+h&n)>>0]|0)!=32)break b}if(!g){g=0;break a}}}while(0);g=c-e|0}while(0);return g|0}function Vn(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;a=Fc(c,e,(b|0)<(d|0)?b:d)|0;return ((a|0)==0?b-d|0:a)|0}function Wn(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 k=0,l=0,m=0,o=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0;A=i;i=i+16|0;if((i|0)>=(j|0))fa();y=A;r=c[(e&p)>>2]|0;a:do if(d){o=d;while(1)if(!(a[(o&n)>>0]|0))break;else o=o+1|0;q=o-d&1073741823;if((c[2189]|r&64|0)!=0&q>>>0>4?(Zv(d,14984,5)|0)==0:0){o=q+2|0;m=r|64;if(q){r=0;do{o=((a[(d+r&n)>>0]|0)==38&1)+o|0;r=r+1|0}while((r|0)<(q|0))}l=Tc(o)|0;if(l){do if((a[(d&n)+5>>0]|0)==47?(a[(d&n)+6>>0]|0)==47:0){o=7;while(1){u=a[(d+o&n)>>0]|0;if(u<<24>>24==0|u<<24>>24==47)break;o=o+1|0}if((o|0)==16){k=d+7|0;if(!(Zv(14992,k,9)|0)){o=0;r=16;k=0;break}}else if((o|0)==7){o=0;r=7;k=0;break}else k=d+7|0;c[(y&p)>>2]=o+-7;c[(y&p)+4>>2]=k;c[(h&p)>>2]=_c(15008,y)|0;k=1;z=74;break a}else{o=0;r=5;k=0}while(0);b:while(1){w=l+(k+-1)|0;c:while(1){d:while(1){q=a[(d+r&n)>>0]|0;if(q<<24>>24==35|q<<24>>24==0)break b;s=r+1|0;if((q<<24>>24==37?(x=a[(d+s&n)>>0]|0,(a[(x&255&n)+10368>>0]&8)!=0):0)?(v=a[(d+r&n)+2>>0]|0,(a[(v&255&n)+10368>>0]&8)!=0):0){q=x;s=v;break}if(!o){r=s;z=38;break c}else if((o|0)==2){r=s;z=39;break c}else if((o|0)!=1){r=s;break c}if(!(q<<24>>24==38|q<<24>>24==61)){o=1;r=s;break c}if(!(a[(w&n)>>0]|0))r=s;else{r=s;z=36;break c}while(1){u=a[(d+r&n)>>0]|0;if(u<<24>>24==35|u<<24>>24==0)continue d;if((a[(d+r+-1&n)>>0]|0)==38)continue d;else r=r+1|0}}q=q<<24>>24;r=r+3|0;u=s<<24>>24;q=(0-(u>>>6&1)&9)+u&15|(0-(q>>>6&1)&9)+q<<4&240;if(q){z=30;break}s=(o|0)==0;while(1){q=a[(d+r&n)>>0]|0;if(q<<24>>24==35|q<<24>>24==0)continue c;if(s&q<<24>>24==63){o=0;continue c}if((o|0)==1){if(q<<24>>24==38|q<<24>>24==61){o=1;continue c}}else if((o|0)==2?q<<24>>24==38:0){o=2;continue c}r=r+1|0}}if((z|0)==30){z=0;q=q&255}else if((z|0)==36){z=0;if(q<<24>>24==38){a[(l+k&n)>>0]=0;q=0;o=1;k=k+1|0}else{q=0;o=2}}else if((z|0)==38){z=0;if(q<<24>>24==63)z=40;else o=0}else if((z|0)==39){z=0;if(q<<24>>24==38)z=40;else o=2}if((z|0)==40){z=0;q=0;o=1}a[(l+k&n)>>0]=q;k=k+1|0}if((o|0)==1){a[(l+k&n)>>0]=0;k=k+1|0}a[(l+k&n)>>0]=0;a[(l+k&n)+1>>0]=0;k=l;while(1)if(!(a[(k&n)>>0]|0))break;else k=k+1|0;k=(k-l&1073741823)+1|0;o=a[(l+k&n)>>0]|0;if(o<<24>>24){x=l+k|0;e:while(1){q=x;while(1){k=q+1|0;if(!(o<<24>>24)){o=q;break}o=a[(k&n)>>0]|0;q=k}w=o-x&1073741823;o=x+(w+1)|0;q=o;while(1)if(!(a[(q&n)>>0]|0))break;else q=q+1|0;v=q-o&1073741823;if((w|0)==3){k=(Zv(15040,x,3)|0)==0;k=k?o:b}else if((w|0)==5)if(!(Zv(15048,x,5)|0)){d=15056;t=393216;u=-393217;k=15048;z=58}else k=b;else if((w|0)==4?(Zv(15096,x,4)|0)==0:0){d=15104;t=m&135;u=-136;k=15176;z=58}else k=b;if((z|0)==58){z=0;r=c[(d&p)>>2]|0;if(!r){z=65;break}else q=0;while(1){s=r;while(1)if(!(a[(s&n)>>0]|0))break;else s=s+1|0;if((v|0)==(s-r&1073741823|0)?(Zv(o,r,v)|0)==0:0){r=q;break}q=q+1|0;r=c[(d+(q<<3)&p)>>2]|0;if(!r){z=65;break e}}r=c[(d+(r<<3)&p)+4>>2]|0;if(!r){z=65;break}if((r&-129|0)>(t|0)){z=67;break}m=r|u&m;k=b}x=x+(w+2+v)|0;o=a[(x&n)>>0]|0;if(!(o<<24>>24)){z=72;break a}else b=k}if((z|0)==65){c[(y&p)>>2]=k;c[(y&p)+4>>2]=o;c[(h&p)>>2]=_c(15184,y)|0;k=1;z=74;break}else if((z|0)==67){c[(y&p)>>2]=k;c[(y&p)+4>>2]=o;c[(h&p)>>2]=_c(15208,y)|0;k=3;z=74;break}}else{k=b;z=72}}else k=7}else{m=q;z=70}}else{m=0;z=70}while(0);if((z|0)==70){l=Tc(m+2|0)|0;if(!l)k=7;else{kw(l|0,d|0,m|0)|0;a[(l+m&n)>>0]=0;a[(l+m&n)+1>>0]=0;m=r&-65;k=b;z=72}}if((z|0)==72){u=Kc(k)|0;c[(f&p)>>2]=u;if(!u){c[(y&p)>>2]=k;c[(h&p)>>2]=_c(15232,y)|0;k=1;z=74}else{k=0;z=75}}if((z|0)==74){Wc(l);l=0;z=75}if((z|0)==75){c[(e&p)>>2]=m;c[(g&p)>>2]=l}i=A;return k|0}function Xn(b,d){b=b|0;d=d|0;var e=0,f=0,g=0;do if(!d){d=qg(84,0)|0;if(!d)e=8;else{b=d+0|0;g=b+84|0;do{a[(b&n)>>0]=0;b=b+1|0}while((b|0)<(g|0));e=9}}else{f=c[(d&p)+4>>2]|0;c[(f&p)+4>>2]=c[(d&p)>>2];e=f+48|0;d=c[(e&p)>>2]|0;if(!d){d=qg(84,0)|0;if(!d){c[(e&p)>>2]=0;c[(f&p)+52>>2]=22;e=8;break}else{b=d+0|0;g=b+84|0;do{a[(b&n)>>0]=0;b=b+1|0}while((b|0)<(g|0));c[(e&p)>>2]=d;c[(f&p)+52>>2]=22;e=9;break}}else e=9}while(0);if((e|0)==8){a[(b&n)+65>>0]=1;d=0}else if((e|0)==9)if(!(a[(d&n)+76>>0]|0)){e=d+77|0;b=d+8|0;g=b+64|0;do{c[(b&p)>>2]=0;b=b+4|0}while((b|0)<(g|0));a[(e&n)>>0]=1}return d|0}function Yn(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0;m=i;i=i+16|0;if((i|0)>=(j|0))fa();if(e){k=b+428|0;h=bn(k,e,m)|0;if(!h)g=0;else g=c[(h&p)+8>>2]|0;if((g|0)==0&(f|0)!=0){h=e;while(1)if(!(a[(h&n)>>0]|0))break;else h=h+1|0;h=h-e&1073741823;f=h+61|0;g=mh(b,f,0)|0;if(g){fw(g|0,0,f|0)|0;f=g+60|0;c[(g&p)>>2]=f;a[(g&n)+4>>0]=1;c[(g&p)+20>>2]=f;a[(g&n)+24>>0]=2;c[(g&p)+40>>2]=f;a[(g&n)+44>>0]=3;kw(f|0,e|0,h|0)|0;a[(g+h&n)+60>>0]=0;h=Ik(k,c[(g&p)>>2]|0,g)|0;if(!h)l=10;else{a[(b&n)+65>>0]=1;mg(b,h);g=0}}else g=0}else l=10}else{g=c[(b&p)+8>>2]|0;l=10}if((l|0)==10)if(!g)g=0;else g=g+(((d&255)+-1|0)*20|0)|0;i=m;return g|0}function Zn(f,g,h){f=f|0;g=g|0;h=h|0;var k=0,l=0,m=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;i=i+64|0;if((i|0)>=(j|0))fa();B=D;k=D+48|0;s=D+24|0;x=D+8|0;m=(g|0)==1;v=m?13184:13208;c[(k&p)>>2]=v;c[(k&p)+4>>2]=13224;c[(k&p)+8>>2]=m?13064:12960;c[(k&p)+12>>2]=0;c[(x&p)>>2]=f;c[(x&p)+8>>2]=g;w=x+12|0;c[(w&p)>>2]=0;c[(x&p)+4>>2]=h;$m(x,3,k,0)|0;k=c[(w&p)>>2]|0;a:do if(!k){y=f+16|0;l=_h(f,v,c[((c[(y&p)>>2]|0)+(g<<4)&p)>>2]|0)|0;if(l){u=l+44|0;a[(u&n)>>0]=d[(u&n)>>0]|1}q=c[(y&p)>>2]|0;z=q+(g<<4)+4|0;l=c[(z&p)>>2]|0;if(!l){if(!m){k=0;break}k=(c[(q&p)+28>>2]|0)+78|0;b[(k&o)>>1]=e[(k&o)>>1]|1;k=0;break}c[((c[(l&p)+4>>2]|0)&p)+4>>2]=c[(l&p)>>2];do if(!(a[(l&n)+8>>0]|0)){k=yg(l,0)|0;if((k|0)==516)l=16344;else if(!k){l=c[(z&p)>>2]|0;u=1;break}else C=10;if((C|0)==10){l=k&255;if(l>>>0>26|(l|0)==2)l=16328;else l=c[(l<<2&p)+15488>>2]|0}c[(B&p)>>2]=l;dh(h,f,10344,B);C=38;break a}else u=0;while(0);wm(l,1,s);t=s+4|0;wm(c[(z&p)>>2]|0,2,t);r=s+8|0;wm(c[(z&p)>>2]|0,3,r);wm(c[(z&p)>>2]|0,4,s+12|0);k=s+16|0;wm(c[(z&p)>>2]|0,5,k);q=q+(g<<4)+12|0;l=c[(q&p)>>2]|0;c[(l&p)>>2]=c[(s&p)>>2];k=c[(k&p)>>2]|0;do if(k){if(!g){m=k&3;m=(m|0)==0?1:m&255;a[(f&n)+62>>0]=m;C=19;break}m=a[(f&n)+62>>0]|0;if((k|0)==(m&255|0))C=19;else{dh(h,f,13232,B);k=1}}else{m=(c[((c[(y&p)>>2]|0)+(g<<4)&p)+12>>2]|0)+78|0;b[(m&o)>>1]=e[(m&o)>>1]|4;m=a[(f&n)+62>>0]|0;C=19}while(0);do if((C|0)==19){a[(l&n)+77>>0]=m;m=l+80|0;if(!(c[(m&p)>>2]|0)){l=c[(r&p)>>2]|0;if((l|0)<=-1)l=(l|0)==-2147483648?2147483647:0-l|0;l=(l|0)==0?2e3:l;c[(m&p)>>2]=l;pq(c[(z&p)>>2]|0,l);l=c[(q&p)>>2]|0}k=c[(t&p)>>2]|0;m=k&255;l=l+76|0;if(m<<24>>24){a[(l&n)>>0]=m;if((m&255)>4){dh(h,f,13304,B);k=1;break}}else a[(l&n)>>0]=1;if((g|0)==0&(k|0)>3){t=f+24|0;c[(t&p)>>2]=c[(t&p)>>2]&-32769}c[(B&p)>>2]=c[((c[(y&p)>>2]|0)+(g<<4)&p)>>2];c[(B&p)+4>>2]=v;k=uh(f,13328,B)|0;v=f+284|0;t=c[(v&p)>>2]|0;c[(v&p)>>2]=0;l=Qe(f,k,22,x,0)|0;c[(v&p)>>2]=t;l=(l|0)==0?c[(w&p)>>2]|0:l;mg(f,k);k=(l|0)==0;if(k)an(f,g)|0;if(!(a[(f&n)+65>>0]|0)){if(!k){A=l;C=34}}else{Eg(f);A=7;C=34}if((C|0)==34?(c[(f&p)+24>>2]&65536|0)==0:0){k=A;break}k=(c[((c[(y&p)>>2]|0)+(g<<4)&p)+12>>2]|0)+78|0;b[(k&o)>>1]=e[(k&o)>>1]|1;k=0}while(0);if(!u)C=38;else{un(c[(z&p)>>2]|0)|0;C=38}}else C=38;while(0);if((C|0)==38)if((k|0)==7|(k|0)==3082)a[(f&n)+65>>0]=1;i=D;return k|0}function _n(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,o=0,q=0;q=i;i=i+80|0;if((i|0)>=(j|0))fa();o=q;c[12066]=c[2708];if(!(c[12067]|0))c[12067]=Lb(48336)|0;if(!(c[12068]|0))c[12068]=Lb(48352)|0;g=o+12|0;h=0;f=0;do{if((((f|0)!=0?(rc[c[47604>>2]&127](f,o)|0)==0:0)?(c[(g&p)>>2]&61440|0)==16384:0)?(rc[c[47580>>2]&127](f,7)|0)==0:0)break;f=c[(h<<2&p)+48264>>2]|0;h=h+1|0}while(h>>>0<7);m=(f|0)==0?28928:f;if(((gw(m|0)|0)+25|0)>>>0>>0){b=b+-18|0;do{c[(o&p)>>2]=m;ad(b,e,48248,o)|0;g=gw(e|0)|0;f=e+g|0;cd(15,f);l=e+(g+15)|0;k=0;h=g;while(1){a[(f&n)>>0]=a[(((d[(f&n)>>0]|0)%62|0)&255&n)+48184>>0]|0;k=k+1|0;h=h+1|0;if((k|0)==15)break;else f=e+h|0}a[(l&n)>>0]=0;a[(e+g&n)+16>>0]=0}while((rc[c[47580>>2]&127](e,0)|0)==0);f=0}else f=1;i=q;return f|0}function $n(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0;m=i;i=i+80|0;if((i|0)>=(j|0))fa();k=m;h=(d|0)!=0;f=h?d:420;g=b|524288;while(1){e=ac[c[47556>>2]&63](a,g,f)|0;if((e|0)<0)if((c[((Hb()|0)&p)>>2]|0)==4)continue;else break;if((e|0)>2){l=6;break}lc[c[47568>>2]&127](e)|0;c[(k&p)>>2]=a;c[(k&p)+4>>2]=e;bd(28,48120,k);if((ac[c[47556>>2]&63](48168,b,d)|0)<0){e=-1;break}}if((l|0)==6)if(((h?(rc[c[47616>>2]&127](e,k)|0)==0:0)?(c[(k&p)+36>>2]|0)==0:0)?(c[(k&p)+12>>2]&511|0)!=(d|0):0)rc[c[47724>>2]&127](e,d)|0;i=m;return e|0}function ao(a,b,d){a=a|0;b=b|0;d=d|0;if(lc[c[47568>>2]&127](b)|0){if(!a)b=0;else b=c[(a&p)+32>>2]|0;co(4106,47856,b,d)|0}return}function bo(a){a=a|0;var d=0,f=0,g=0,h=0;h=i;i=i+80|0;if((i|0)>=(j|0))fa();g=h;d=h+4|0;f=a+18|0;do if(!(b[(f&o)>>1]&256)){if(rc[c[47616>>2]&127](c[(a&p)+12>>2]|0,d)|0){c[(g&p)>>2]=c[(a&p)+32>>2];bd(28,48592,g);b[(f&o)>>1]=e[(f&o)>>1]|0|256;break}d=c[(d&p)+16>>2]|0;if(!d){if(!(b[(f&o)>>1]&32)){c[(g&p)>>2]=c[(a&p)+32>>2];bd(28,48616,g);b[(f&o)>>1]=e[(f&o)>>1]|0|256;break}}else if(d>>>0>1){c[(g&p)>>2]=c[(a&p)+32>>2];bd(28,48648,g);b[(f&o)>>1]=e[(f&o)>>1]|0|256;break}if(xo(a)|0){c[(g&p)>>2]=c[(a&p)+32>>2];bd(28,48680,g);b[(f&o)>>1]=e[(f&o)>>1]|0|256}}while(0);i=h;return}function co(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0;f=i;i=i+32|0;if((i|0)>=(j|0))fa();g=f;k=c[((Hb()|0)&p)>>2]|0;h=Rb(k|0)|0;c[(g&p)>>2]=e;c[(g&p)+4>>2]=k;c[(g&p)+8>>2]=b;c[(g&p)+12>>2]=(d|0)==0?10360:d;c[(g&p)+16>>2]=h;bd(a,47864,g);i=f;return a|0}function eo(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;i=a+40|0;d=c[(i&p)>>2]|0;h=d<<1;h=h>>>0<256?256:h;if((d|0)!=0?(b=c[3164]|0,(b|0)!=0):0)nc[b&3]();b=h<<2;g=qg(b,0)|0;d=(g|0)==0;if(!d)fw(g|0,0,b|0)|0;if((c[(i&p)>>2]|0)!=0?(e=c[3166]|0,(e|0)!=0):0)nc[e&3]();if(!d){e=c[(i&p)>>2]|0;f=a+44|0;b=c[(f&p)>>2]|0;if(e){a=0;do{d=c[(b+(a<<2)&p)>>2]|0;if(d){do{k=d+16|0;j=d;d=c[(k&p)>>2]|0;b=g+((((c[(j&p)+8>>2]|0)>>>0)%(h>>>0)|0)<<2)|0;c[(k&p)>>2]=c[(b&p)>>2];c[(b&p)>>2]=j}while((d|0)!=0);b=c[(f&p)>>2]|0}a=a+1|0}while(a>>>0>>0)}Wc(b);c[(f&p)>>2]=g;c[(i&p)>>2]=h}return}function fo(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,i=0;g=a+24|0;h=a+16|0;d=a+4|0;a:do if((c[(h&p)>>2]|0)>>>0>(c[(d&p)>>2]|0)>>>0)do{e=c[(g&p)>>2]|0;if(!e)break a;go(e);f=c[(e&p)+20>>2]|0;b=(c[(f&p)+44>>2]|0)+((((c[(e&p)+8>>2]|0)>>>0)%((c[(f&p)+40>>2]|0)>>>0)|0)<<2)|0;while(1){i=c[(b&p)>>2]|0;a=i+16|0;if((i|0)==(e|0))break;else b=a}c[(b&p)>>2]=c[(a&p)>>2];a=f+36|0;c[(a&p)>>2]=(c[(a&p)>>2]|0)+-1;io(e)}while((c[(h&p)>>2]|0)>>>0>(c[(d&p)>>2]|0)>>>0);while(0);return}function go(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,i=0;e=c[(b&p)+20>>2]|0;f=c[(e&p)>>2]|0;g=b+28|0;h=c[(g&p)>>2]|0;i=b+24|0;d=c[(i&p)>>2]|0;if(!h)c[(f&p)+20>>2]=d;else{c[(h&p)+24>>2]=d;d=c[(i&p)>>2]|0}if(!d)c[(f&p)+24>>2]=h;else c[(d&p)+28>>2]=h;c[(i&p)>>2]=0;c[(g&p)>>2]=0;a[(b&n)+12>>0]=1;d=e+32|0;c[(d&p)>>2]=(c[(d&p)>>2]|0)+-1;return}function ho(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,o=0,q=0,r=0,s=0,t=0;k=c[(b&p)>>2]|0;s=b+36|0;i=c[(s&p)>>2]|0;g=c[(b&p)+32>>2]|0;h=i-g|0;q=(e|0)==1;if(q)if(h>>>0<(c[(k&p)+12>>2]|0)>>>0?h>>>0<(c[(b&p)+24>>2]|0)>>>0:0){if((c[3155]|0)!=0?((c[(b&p)+8>>2]|0)+(c[(b&p)+4>>2]|0)|0)<=(c[3154]|0):0)e=12648|0;else e=9060|0;if(!((c[(e&p)>>2]|0)!=0&g>>>0>>0))o=8;else f=0}else f=0;else o=8;do if((o|0)==8){m=b+40|0;if(i>>>0>=(c[(m&p)>>2]|0)>>>0)eo(b);j=b+12|0;do if((c[(j&p)>>2]|0)!=0?(f=c[(k&p)+24>>2]|0,(f|0)!=0):0){if(((c[(s&p)>>2]|0)+1|0)>>>0<(c[(b&p)+20>>2]|0)>>>0?(c[(k&p)+16>>2]|0)>>>0<(c[(k&p)+4>>2]|0)>>>0:0){if((c[3155]|0)!=0?((c[(b&p)+8>>2]|0)+(c[(b&p)+4>>2]|0)|0)<=(c[3154]|0):0)e=12648|0;else e=9060|0;if(!(c[(e&p)>>2]|0)){o=23;break}}e=f+20|0;g=c[(e&p)>>2]|0;h=(c[(g&p)+44>>2]|0)+((((c[(f&p)+8>>2]|0)>>>0)%((c[(g&p)+40>>2]|0)>>>0)|0)<<2)|0;while(1){t=c[(h&p)>>2]|0;i=t+16|0;if((t|0)==(f|0))break;else h=i}c[(h&p)>>2]=c[(i&p)>>2];i=g+36|0;c[(i&p)>>2]=(c[(i&p)>>2]|0)+-1;go(f);e=c[(e&p)>>2]|0;if(((c[(e&p)+8>>2]|0)+(c[(e&p)+4>>2]|0)|0)==((c[(b&p)+8>>2]|0)+(c[(b&p)+4>>2]|0)|0)){l=k+16|0;c[(l&p)>>2]=(c[(j&p)>>2]|0)-(c[(e&p)+12>>2]|0)+(c[(l&p)>>2]|0);break}else{io(f);o=23;break}}else o=23;while(0);if((o|0)==23){if(q?(l=c[3164]|0,(l|0)!=0):0)nc[l&3]();e=b+4|0;g=Go((c[(e&p)>>2]|0)+32+(c[(b&p)+8>>2]|0)|0)|0;e=c[(e&p)>>2]|0;f=g+e|0;if(g){c[(f&p)>>2]=g;c[(g+e&p)+4>>2]=g+(e+32);if(c[(j&p)>>2]|0){o=(c[(b&p)>>2]|0)+16|0;c[(o&p)>>2]=(c[(o&p)>>2]|0)+1}}else f=0;if(q?(r=c[3166]|0,(r|0)!=0):0)nc[r&3]();if(!f){f=0;break}}g=(d>>>0)%((c[(m&p)>>2]|0)>>>0)|0;c[(s&p)>>2]=(c[(s&p)>>2]|0)+1;c[(f&p)+8>>2]=d;o=b+44|0;c[(f&p)+16>>2]=c[((c[(o&p)>>2]|0)+(g<<2)&p)>>2];c[(f&p)+20>>2]=b;c[(f&p)+28>>2]=0;c[(f&p)+24>>2]=0;a[(f&n)+12>>0]=1;c[(c[(f&p)+4>>2]&p)>>2]=0;c[((c[(o&p)>>2]|0)+(g<<2)&p)>>2]=f;g=b+28|0;if((c[(g&p)>>2]|0)>>>0>>0)c[(g&p)>>2]=d}while(0);return f|0}function io(a){a=a|0;var b=0;if((a|0)!=0?(b=c[(a&p)+20>>2]|0,$k(c[(a&p)>>2]|0),(c[(b&p)+12>>2]|0)!=0):0){b=(c[(b&p)>>2]|0)+16|0;c[(b&p)>>2]=(c[(b&p)>>2]|0)+-1}return}function jo(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,i=0;h=b+40|0;if(c[(h&p)>>2]|0){i=b+44|0;f=b+36|0;g=0;do{e=(c[(i&p)>>2]|0)+(g<<2)|0;b=c[(e&p)>>2]|0;a:do if(b)do{while(1){if((c[(b&p)+8>>2]|0)>>>0>>0)break;c[(f&p)>>2]=(c[(f&p)>>2]|0)+-1;c[(e&p)>>2]=c[(b&p)+16>>2];if(!(a[(b&n)+12>>0]|0))go(b);io(b);b=c[(e&p)>>2]|0;if(!b)break a}e=b+16|0;b=c[(e&p)>>2]|0}while((b|0)!=0);while(0);g=g+1|0}while(g>>>0<(c[(h&p)>>2]|0)>>>0)}return}function ko(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0;f=c[(b&p)>>2]|0;g=c[((c[(f&p)+32>>2]|0)&p)+88>>2]|0;h=((g|0)<0)<<31>>31;if(!((h|0)<(e|0)|(h|0)==(e|0)&g>>>0>>0)){d=qg(d,e)|0;if(!d){Rd(b);d=0}}else{c[(b&p)+20>>2]=18;a[(b&n)+25>>0]=1;Xg(f,10096,-1,1,0)|0;d=0}return d|0}function lo(b){b=b|0;var c=0,d=0,e=0,f=0;do if(b){c=a[(b&n)>>0]|0;d=c<<24>>24;if((d|0)==91)f=93;else if((d|0)==96|(d|0)==34|(d|0)==39)f=c;else break;d=1;e=0;while(1){c=a[(b+d&n)>>0]|0;if(c<<24>>24==f<<24>>24){d=d+1|0;c=b+e|0;if((a[(b+d&n)>>0]|0)!=f<<24>>24)break;a[(c&n)>>0]=f}else a[(b+e&n)>>0]=c;d=d+1|0;e=e+1|0}a[(c&n)>>0]=0}while(0);return}function mo(b,f,g,k){b=b|0;f=f|0;g=g|0;k=k|0;var l=0,m=0,r=0,s=0,t=0,u=0,v=0,w=0.0,x=0.0,y=0.0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,S=0,T=0,U=0,V=0,W=0,X=0;W=i;i=i+176|0;if((i|0)>=(j|0))fa();T=W+64|0;u=W+132|0;t=W+128|0;s=W+124|0;v=W+56|0;P=W+48|0;U=W+136|0;S=W;r=k+0|0;m=r+48|0;do{c[(r&p)>>2]=0;r=r+4|0}while((r|0)<(m|0));a:do if(f){l=c[(g&p)>>2]|0;b:do if(((d[(e[(l&o)+8>>1]&31&n)+10064>>0]|0)+-1|0)>>>0>=2){r=Sg(l,1)|0;if(!r){l=1;break a}m=(a[(r&n)>>0]|0)==45;l=m?r+1|0:r;c[(T&p)>>2]=4;c[(T&p)+4>>2]=0;c[(T&p)+8>>2]=9999;c[(T&p)+12>>2]=45;c[(T&p)+16>>2]=u;c[(T&p)+20>>2]=2;c[(T&p)+24>>2]=1;c[(T&p)+28>>2]=12;c[(T&p)+32>>2]=45;c[(T&p)+36>>2]=t;c[(T&p)+40>>2]=2;c[(T&p)+44>>2]=1;c[(T&p)+48>>2]=31;c[(T&p)+52>>2]=0;c[(T&p)+56>>2]=s;do if((rq(l,T)|0)==3){l=l+10|0;while(1){M=a[(l&n)>>0]|0;if(M<<24>>24==84?1:(a[(M&255&n)+10368>>0]&1)!=0)l=l+1|0;else break}if(sq(l,k)|0){if(a[(l&n)>>0]|0)break;a[(k&n)+41>>0]=0}a[(k&n)+42>>0]=0;a[(k&n)+40>>0]=1;M=c[(u&p)>>2]|0;c[(k&p)+8>>2]=m?0-M|0:M;c[(k&p)+12>>2]=c[(t&p)>>2];c[(k&p)+16>>2]=c[(s&p)>>2];if(!(a[(k&n)+43>>0]|0))break b;no(k);break b}while(0);if(sq(r,k)|0){if(!(dd(r,20080)|0))if(!(qq(b,k)|0))break;else{l=1;break a}else l=r;while(1)if(!(a[(l&n)>>0]|0))break;else l=l+1|0;if(!(Tl(r,v,l-r&1073741823,1)|0)){l=1;break a}w=+h[(v&q)>>3]*864.0e5+.5;L=+R(w)>=1.0?(w>0.0?~~+da(+Q(w/4294967296.0),4294967295.0)>>>0:~~+ba((w-+(~~w>>>0))/4294967296.0)>>>0):0;M=k;c[(M&p)>>2]=~~w>>>0;c[(M&p)+4>>2]=L;a[(k&n)+42>>0]=1}}else{w=+Ug(l)*864.0e5+.5;L=+R(w)>=1.0?(w>0.0?~~+da(+Q(w/4294967296.0),4294967295.0)>>>0:~~+ba((w-+(~~w>>>0))/4294967296.0)>>>0):0;M=k;c[(M&p)>>2]=~~w>>>0;c[(M&p)+4>>2]=L;a[(k&n)+42>>0]=1}while(0);if((f|0)>1){l=k+40|0;z=k+41|0;A=k+43|0;B=k+42|0;C=U+8|0;D=C;E=U+9|0;F=k+24|0;H=k+20|0;I=k+32|0;J=k+16|0;K=k+12|0;L=U+1|0;M=k+8|0;N=1;while(1){t=Sg(c[(g+(N<<2)&p)>>2]|0,1)|0;if(!t){l=1;break a}c[(T&p)>>2]=1;v=0;do{u=a[(t+v&n)>>0]|0;if(!(u<<24>>24))break;a[(U+v&n)>>0]=a[(u&255&n)+9328>>0]|0;v=v+1|0}while((v|0)<29);a[(U+v&n)>>0]=0;c:do switch(a[(U&n)>>0]|0){case 119:{if(!($v(U,19976,8)|0)){v=C;while(1)if(!(a[(v&n)>>0]|0))break;else v=v+1|0;if((Tl(C,P,v-D&1073741823,1)|0)!=0?(w=+h[(P&q)>>3],O=~~w,+(O|0)==w&(O|0)>-1&w<7.0):0){oo(k);po(k);a[(A&n)>>0]=0;a[(B&n)>>0]=0;no(k);m=k;v=c[(m&p)>>2]|0;m=c[(m&p)+4>>2]|0;t=jw(v|0,m|0,1296e5,0)|0;t=qw(t|0,G|0,864e5,0)|0;t=rw(t|0,G|0,7,0)|0;r=G;X=((O|0)<0)<<31>>31;s=(r|0)>(X|0)|(r|0)==(X|0)&t>>>0>O>>>0;u=jw(t|0,r|0,-7,-1)|0;r=dw(O|0,X|0,(s?u:t)|0,(s?G:r)|0)|0;r=sw(r|0,G|0,864e5,0)|0;m=jw(r|0,G|0,v|0,m|0)|0;v=k;c[(v&p)>>2]=m;c[(v&p)+4>>2]=G;a[(l&n)>>0]=0;a[(z&n)>>0]=0;a[(A&n)>>0]=0;c[(T&p)>>2]=0;v=0}else V=82}else V=82;break}case 108:{if(!(_v(U,19936)|0)){no(k);m=tq(k,b,T)|0;V=k;m=jw(c[(V&p)>>2]|0,c[(V&p)+4>>2]|0,m|0,G|0)|0;V=k;c[(V&p)>>2]=m;c[(V&p)+4>>2]=G;a[(l&n)>>0]=0;a[(z&n)>>0]=0;a[(A&n)>>0]=0;V=82}else V=82;break}case 115:{if(!($v(U,19992,9)|0)){oo(k);a[(z&n)>>0]=1;c[(F&p)>>2]=0;c[(H&p)>>2]=0;h[(I&q)>>3]=0.0;a[(A&n)>>0]=0;a[(B&n)>>0]=0;if(!(_v(E,20008)|0)){c[(J&p)>>2]=1;c[(T&p)>>2]=0;v=0;break c}if(!(_v(E,20016)|0)){oo(k);c[(K&p)>>2]=1;c[(J&p)>>2]=1;c[(T&p)>>2]=0;v=0;break c}if(!(_v(E,20024)|0)){c[(T&p)>>2]=0;v=0}else V=82}else V=82;break}case 117:{if((_v(U,19952)|0)==0?(a[(B&n)>>0]|0)!=0:0){m=k;m=jw(c[(m&p)>>2]|0,c[(m&p)+4>>2]|0,43200,0)|0;m=qw(m|0,G|0,86400,0)|0;m=jw(m|0,G|0,1045635584,49096)|0;v=k;c[(v&p)>>2]=m;c[(v&p)+4>>2]=G;a[(l&n)>>0]=0;a[(z&n)>>0]=0;a[(A&n)>>0]=0;c[(T&p)>>2]=0;v=0;break c}if(!(_v(U,19968)|0)){no(k);u=tq(k,b,T)|0;t=G;v=c[(T&p)>>2]|0;if(!v){m=k;m=dw(c[(m&p)>>2]|0,c[(m&p)+4>>2]|0,u|0,t|0)|0;V=k;c[(V&p)>>2]=m;c[(V&p)+4>>2]=G;a[(l&n)>>0]=0;a[(z&n)>>0]=0;a[(A&n)>>0]=0;V=tq(k,b,T)|0;V=dw(u|0,t|0,V|0,G|0)|0;m=k;m=jw(V|0,G|0,c[(m&p)>>2]|0,c[(m&p)+4>>2]|0)|0;V=k;c[(V&p)>>2]=m;c[(V&p)+4>>2]=G;V=82}}else V=82;break}case 57:case 56:case 55:case 54:case 53:case 52:case 51:case 50:case 49:case 48:case 45:case 43:{t=1;while(1){v=U+t|0;u=a[(v&n)>>0]|0;if(u<<24>>24==58|u<<24>>24==0){u=v;break}if(!(a[(u&255&n)+10368>>0]&1))t=t+1|0;else{u=v;break}}if(!(Tl(U,P,t,1)|0)){c[(T&p)>>2]=1;v=1;break c}v=a[(u&n)>>0]|0;if(v<<24>>24==58){v=((d[(U&n)>>0]|0)+-48|0)>>>0<10?U:L;r=S+0|0;m=r+48|0;do{c[(r&p)>>2]=0;r=r+4|0}while((r|0)<(m|0));if(sq(v,S)|0){V=82;break c}no(S);v=S;v=jw(c[(v&p)>>2]|0,c[(v&p)+4>>2]|0,-432e5,-1)|0;v=rw(v|0,G|0,864e5,0)|0;u=G;m=S;c[(m&p)>>2]=v;c[(m&p)+4>>2]=u;if((a[(U&n)>>0]|0)==45){v=dw(0,0,v|0,u|0)|0;u=G;m=S;c[(m&p)>>2]=v;c[(m&p)+4>>2]=u}no(k);a[(l&n)>>0]=0;a[(z&n)>>0]=0;a[(A&n)>>0]=0;m=k;m=jw(c[(m&p)>>2]|0,c[(m&p)+4>>2]|0,v|0,u|0)|0;v=k;c[(v&p)>>2]=m;c[(v&p)+4>>2]=G;c[(T&p)>>2]=0;v=0;break c}if(a[(v&255&n)+10368>>0]&1){u=U+(t+1)|0;while(1){v=a[(u&n)>>0]|0;if(!(a[(v&255&n)+10368>>0]&1))break;else u=u+1|0}}if(!(v<<24>>24))v=u;else{v=u;do v=v+1|0;while((a[(v&n)>>0]|0)!=0)}v=v-u&1073741823;if((v+-3|0)>>>0>7)V=82;else{t=v+-1|0;s=u+t|0;if((a[(s&n)>>0]|0)==115){a[(s&n)>>0]=0;v=t}no(k);c[(T&p)>>2]=0;x=+h[(P&q)>>3];y=x<0.0?-.5:.5;do if((v|0)==4){if(!(_v(u,20032)|0)){w=x*36.0e5+y;r=+R(w)>=1.0?(w>0.0?~~+da(+Q(w/4294967296.0),4294967295.0)>>>0:~~+ba((w-+(~~w>>>0))/4294967296.0)>>>0):0;m=k;r=jw(c[(m&p)>>2]|0,c[(m&p)+4>>2]|0,~~w>>>0|0,r|0)|0;m=k;c[(m&p)>>2]=r;c[(m&p)+4>>2]=G;break}if(!(_v(u,20016)|0)){m=~~x;oo(k);po(k);c[(M&p)>>2]=(c[(M&p)>>2]|0)+m;a[(B&n)>>0]=0;no(k);w=+(m|0);if(w!=x){w=y+(x-w)*365.0*864.0e5;r=+R(w)>=1.0?(w>0.0?~~+da(+Q(w/4294967296.0),4294967295.0)>>>0:~~+ba((w-+(~~w>>>0))/4294967296.0)>>>0):0;m=k;r=jw(c[(m&p)>>2]|0,c[(m&p)+4>>2]|0,~~w>>>0|0,r|0)|0;m=k;c[(m&p)>>2]=r;c[(m&p)+4>>2]=G}}else V=80}else if((v|0)==6){if(!(_v(u,20040)|0)){w=x*6.0e4+y;r=+R(w)>=1.0?(w>0.0?~~+da(+Q(w/4294967296.0),4294967295.0)>>>0:~~+ba((w-+(~~w>>>0))/4294967296.0)>>>0):0;m=k;r=jw(c[(m&p)>>2]|0,c[(m&p)+4>>2]|0,~~w>>>0|0,r|0)|0;m=k;c[(m&p)>>2]=r;c[(m&p)+4>>2]=G;break}if(!(_v(u,20048)|0)){w=x*1.0e3+y;r=+R(w)>=1.0?(w>0.0?~~+da(+Q(w/4294967296.0),4294967295.0)>>>0:~~+ba((w-+(~~w>>>0))/4294967296.0)>>>0):0;m=k;r=jw(c[(m&p)>>2]|0,c[(m&p)+4>>2]|0,~~w>>>0|0,r|0)|0;m=k;c[(m&p)>>2]=r;c[(m&p)+4>>2]=G}else V=80}else if((v|0)==5)if(!(_v(u,20008)|0)){oo(k);po(k);m=~~x;r=(c[(K&p)>>2]|0)+m|0;s=(((r|0)>0?-1:-12)+r|0)/12|0;c[(M&p)>>2]=(c[(M&p)>>2]|0)+s;c[(K&p)>>2]=(ca(s,-12)|0)+r;a[(B&n)>>0]=0;no(k);w=+(m|0);if(w!=x){w=y+(x-w)*30.0*864.0e5;r=+R(w)>=1.0?(w>0.0?~~+da(+Q(w/4294967296.0),4294967295.0)>>>0:~~+ba((w-+(~~w>>>0))/4294967296.0)>>>0):0;m=k;r=jw(c[(m&p)>>2]|0,c[(m&p)+4>>2]|0,~~w>>>0|0,r|0)|0;m=k;c[(m&p)>>2]=r;c[(m&p)+4>>2]=G}}else V=80;else if((v|0)==3?(_v(u,20024)|0)==0:0){w=x*864.0e5+y;r=+R(w)>=1.0?(w>0.0?~~+da(+Q(w/4294967296.0),4294967295.0)>>>0:~~+ba((w-+(~~w>>>0))/4294967296.0)>>>0):0;m=k;r=jw(c[(m&p)>>2]|0,c[(m&p)+4>>2]|0,~~w>>>0|0,r|0)|0;m=k;c[(m&p)>>2]=r;c[(m&p)+4>>2]=G}else V=80;while(0);if((V|0)==80)c[(T&p)>>2]=1;a[(l&n)>>0]=0;a[(z&n)>>0]=0;a[(A&n)>>0]=0;V=82}break}default:V=82}while(0);if((V|0)==82){V=0;v=c[(T&p)>>2]|0}N=N+1|0;if(v){l=1;break a}if((N|0)>=(f|0)){l=0;break a}}}else l=0}else l=qq(b,k)|0;while(0);i=W;return l|0}function no(b){b=b|0;var d=0,e=0,f=0,g=0,i=0,j=0,k=0,l=0,m=0,o=0.0;i=b+42|0;if(!(a[(i&n)>>0]|0)){j=b+40|0;if(a[(j&n)>>0]|0){e=c[(b&p)+8>>2]|0;d=c[(b&p)+12>>2]|0;f=c[(b&p)+16>>2]|0;if((d|0)<3)g=4}else{f=1;d=1;e=2e3;g=4}if((g|0)==4){d=d+12|0;e=e+-1|0}o=(+(f+2+((e|0)/-100|0)+((e|0)/400|0)+(((e*36525|0)+172251900|0)/100|0)+(((d*306001|0)+306001|0)/1e4|0)|0)+-1524.5)*864.0e5;e=~~o>>>0;f=+R(o)>=1.0?(o>0.0?~~+da(+Q(o/4294967296.0),4294967295.0)>>>0:~~+ba((o-+(~~o>>>0))/4294967296.0)>>>0):0;d=b;c[(d&p)>>2]=e;c[(d&p)+4>>2]=f;a[(i&n)>>0]=1;d=b+41|0;if((a[(d&n)>>0]|0)!=0?(k=ca(c[(b&p)+20>>2]|0,36e5)|0,k=((c[(b&p)+24>>2]|0)*6e4|0)+k|0,o=+h[(b&q)+32>>3]*1.0e3,l=jw(~~o>>>0|0,(+R(o)>=1.0?(o>0.0?~~+da(+Q(o/4294967296.0),4294967295.0)>>>0:~~+ba((o-+(~~o>>>0))/4294967296.0)>>>0):0)|0,e|0,f|0)|0,k=jw(l|0,G|0,k|0,((k|0)<0)<<31>>31|0)|0,l=G,m=b,c[(m&p)>>2]=k,c[(m&p)+4>>2]=l,m=b+43|0,(a[(m&n)>>0]|0)!=0):0){f=(c[(b&p)+28>>2]|0)*6e4|0;f=dw(k|0,l|0,f|0,((f|0)<0)<<31>>31|0)|0;e=b;c[(e&p)>>2]=f;c[(e&p)+4>>2]=G;a[(j&n)>>0]=0;a[(d&n)>>0]=0;a[(m&n)>>0]=0}}return}function oo(b){b=b|0;var d=0,e=0,f=0,g=0,h=0;g=b+40|0;if(!(a[(g&n)>>0]|0)){if(!(a[(b&n)+42>>0]|0)){d=2e3;e=1;f=1}else{d=b;d=jw(c[(d&p)>>2]|0,c[(d&p)+4>>2]|0,432e5,0)|0;d=qw(d|0,G|0,864e5,0)|0;h=~~((+(d|0)+-1867216.25)/36524.25);h=d+1525+h+((h|0)/-4|0)|0;d=~~((+(h|0)+-122.1)/365.25);h=h-((d*36525|0)/100|0)|0;f=~~(+(h|0)/30.6001);e=((f|0)<14?-1:-13)+f|0;d=((e|0)>2?-4716:-4715)+d|0;f=h-~~(+(f|0)*30.6001)|0}c[(b&p)+16>>2]=f;c[(b&p)+12>>2]=e;c[(b&p)+8>>2]=d;a[(g&n)>>0]=1}return}function po(b){b=b|0;var d=0,e=0,f=0,g=0,i=0.0;d=b+41|0;if(!(a[(d&n)>>0]|0)){no(b);g=b;g=jw(c[(g&p)>>2]|0,c[(g&p)+4>>2]|0,432e5,0)|0;g=rw(g|0,G|0,864e5,0)|0;i=+(g|0)/1.0e3;g=~~i;f=(g|0)/3600|0;c[(b&p)+20>>2]=f;f=(ca(f,-3600)|0)+g|0;e=(f|0)/60|0;c[(b&p)+24>>2]=e;h[(b&q)+32>>3]=i-+(g|0)+ +(f+(ca(e,-60)|0)|0);a[(d&n)>>0]=1}return}function qo(a){a=a|0;mg(c[(a&p)+52>>2]|0,a);return}function ro(b,d,f,g){b=b|0;d=d|0;f=f|0;g=g|0;var h=0,i=0;i=b+65|0;do if(!(a[(i&n)>>0]|0)){if(!d){h=mh(b,f,g)|0;break}if((c[(b&p)+276>>2]|0)>>>0<=d>>>0?(c[(b&p)+280>>2]|0)>>>0>d>>>0:0){i=b+248|0;if(!(0>>0|(0==(g|0)?(e[(i&o)>>1]|0)>>>0>>0:0))){h=d;break}h=mh(b,f,g)|0;if(!h){h=0;break}kw(h|0,d|0,e[(i&o)>>1]|0)|0;mg(b,d);break}if((Lc()|0)==0?(h=rg(d,f,g)|0,(h|0)!=0):0)break;a[(i&n)>>0]=1;h=0}else h=0;while(0);return h|0}function so(a,d){a=a|0;d=d|0;var e=0,f=0;if(!a)a=0;else{f=c[(a&p)+4>>2]|0;c[(f&p)+4>>2]=c[(a&p)>>2];f=f+22|0;a=b[(f&o)>>1]|0;if((d|0)>-1){e=a&65535;a=e&65531;b[(f&o)>>1]=a;if(d){a=(e|4)&65535;b[(f&o)>>1]=a}}a=(a&65535)>>>2&1}return a|0}function to(b,e){b=b|0;e=e|0;var f=0,g=0,h=0;h=c[(b&p)+4>>2]|0;c[(h&p)+4>>2]=c[(b&p)>>2];h=c[(h&p)>>2]|0;f=e&3;if((f|0)!=1){g=a[(h&n)+12>>0]|0;b=h+7|0;a[(b&n)>>0]=g<<24>>24!=0&1;if((f|0)==3)g=g<<24>>24==0&1;else g=0}else{b=h+7|0;a[(b&n)>>0]=1;g=0}a[(h&n)+8>>0]=g;do if(!(a[(b&n)>>0]|0)){if(e&4){a[(h&n)+11>>0]=3;a[(h&n)+9>>0]=3;b=3;break}a[(h&n)+11>>0]=2;b=h+9|0;if(!(e&8)){a[(b&n)>>0]=2;b=2;break}else{a[(b&n)>>0]=3;b=2;break}}else{a[(h&n)+11>>0]=0;a[(h&n)+9>>0]=0;b=0}while(0);if(g<<24>>24)b=(b&255|32)&255;a[(h&n)+10>>0]=b;b=h+20|0;f=d[(b&n)>>0]|0;a[(b&n)>>0]=(e&16|0)==0?f|1:f&254;return}function uo(a){a=a|0;var b=0,d=0;d=a+12|0;b=c[(d&p)>>2]|0;if((b|0)>-1){ao(a,b,27311);c[(d&p)>>2]=-1}Wc(c[(a&p)+28>>2]|0);b=a+0|0;d=b+44|0;do{c[(b&p)>>2]=0;b=b+4|0}while((b|0)<(d|0));return}function vo(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,i=0,j=0;i=f&131071;while(1){h=cb(a|0,b|0,0)|0;if(!((h|0)==(b|0)&(((h|0)<0)<<31>>31|0)==(d|0))){j=3;break}h=ac[c[47688>>2]&63](a,e,i)|0;if((h|0)>=0)break;f=c[((Hb()|0)&p)>>2]|0;if((f|0)!=4){j=9;break}}if((j|0)==3)if(!g)h=-1;else{if((h|0)==-1)h=c[((Hb()|0)&p)>>2]|0;else h=0;c[(g&p)>>2]=h;h=-1}else if((j|0)==9)if(g)c[(g&p)>>2]=f;return h|0}function wo(a,d,f){a=a|0;d=d|0;f=f|0;var g=0;g=c[(f&p)>>2]|0;do if((g|0)>=0){d=d&255;if(!g){f=a+18|0;b[(f&o)>>1]=(e[(f&o)>>1]|0)&(d^65535);break}else{f=a+18|0;b[(f&o)>>1]=e[(f&o)>>1]|0|d;break}}else c[(f&p)>>2]=((e[(a&o)+18>>1]|0)&(d&255)|0)!=0&1;while(0);return}function xo(a){a=a|0;var b=0,d=0,e=0;e=i;i=i+80|0;if((i|0)>=(j|0))fa();d=e;b=a+8|0;if(c[(b&p)>>2]|0)if(!(rc[c[47604>>2]&127](c[(a&p)+32>>2]|0,d)|0))b=(c[(d&p)+72>>2]|0)!=(c[((c[(b&p)>>2]|0)&p)+4>>2]|0);else b=1;else b=0;i=e;return b&1|0}function yo(a,d,f,g){a=a|0;d=d|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0;m=i;i=i+32|0;if((i|0)>=(j|0))fa();l=m;k=m+8|0;h=(c[((c[(a&p)+8>>2]|0)&p)+20>>2]|0)+12|0;if((c[(h&p)>>2]|0)>-1){c[(k&p)>>2]=0;c[(k&p)+4>>2]=0;c[(k&p)+8>>2]=0;c[(k&p)+12>>2]=0;b[(k&o)>>1]=d;b[(k&o)+2>>1]=0;c[(k&p)+4>>2]=f;c[(k&p)+8>>2]=g;d=a+18|0;g=((b[(d&o)>>1]&512)>>>9)+13|0;f=c[11910]|0;h=c[(h&p)>>2]|0;c[(l&p)>>2]=k;h=(ac[f&63](h,g,l)|0)!=-1;b[(d&o)>>1]=(e[(d&o)>>1]|0)&65023;h=h?0:5}else h=0;i=m;return h|0}function zo(a){a=a|0;var d=0,f=0,g=0,h=0,i=0,j=0,k=0;k=c[((c[(a&p)+8>>2]|0)&p)+20>>2]|0;if((k|0)!=0?(c[(k&p)+28>>2]|0)==0:0){d=hc[c[47844>>2]&7]()|0;if((d|0)<32768)g=1;else g=(d|0)/32768|0;h=k+20|0;if(!(b[(h&o)>>1]|0)){f=k+12|0;d=k+24|0}else{f=k+12|0;d=k+24|0;i=k+16|0;j=0;do{if((c[(f&p)>>2]|0)>-1)rc[c[47820>>2]&127](c[((c[(d&p)>>2]|0)+(j<<2)&p)>>2]|0,c[(i&p)>>2]|0)|0;else Wc(c[((c[(d&p)>>2]|0)+(j<<2)&p)>>2]|0);j=j+g|0}while((j|0)<(e[(h&o)>>1]|0))}Wc(c[(d&p)>>2]|0);d=c[(f&p)>>2]|0;if((d|0)>-1){ao(a,d,29591);c[(f&p)>>2]=-1}c[((c[(k&p)>>2]|0)&p)+20>>2]=0;Wc(k)}return}function Ao(a){a=a|0;var b=0,d=0,e=0;d=(c[(a&p)+8>>2]|0)+28|0;b=c[(d&p)>>2]|0;if(b)do{e=b;b=c[(b&p)+8>>2]|0;ao(a,c[(e&p)>>2]|0,26573);Wc(e)}while((b|0)!=0);c[(d&p)>>2]=0;return}function Bo(d,e){d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0;l=i;i=i+32|0;if((i|0)>=(j|0))fa();h=l;g=l+8|0;k=c[(d&p)+8>>2]|0;f=b[(d&o)+18>>1]|0;if(!(f&1))if((a[(k&n)+13>>0]|0)!=0&(f&2)==0)f=4;else f=7;else if(!(f&2))f=4;else f=7;if((f|0)==4){f=k+13|0;if(!(a[(f&n)>>0]|0)){b[(g&o)+2>>1]=0;c[(g&p)+4>>2]=(c[2514]|0)+2;c[(g&p)+8>>2]=510;b[(g&o)>>1]=1;m=c[11910]|0;e=c[(d&p)+12>>2]|0;c[(h&p)>>2]=g;e=ac[m&63](e,13,h)|0;if((e|0)>=0){a[(f&n)>>0]=1;f=k+24|0;c[(f&p)>>2]=(c[(f&p)>>2]|0)+1}}else e=0}else if((f|0)==7){g=c[11910]|0;f=c[(d&p)+12>>2]|0;c[(h&p)>>2]=e;e=ac[g&63](f,13,h)|0}i=l;return e|0}function Co(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0;do if(b){f=c[(b&p)>>2]|0;if(!f){c[(b&p)>>2]=1;c[(b&p)+4>>2]=d;g=9;break}h=b+4|0;e=c[(h&p)>>2]|0;c[(b&p)>>2]=f+1;c[(h&p)>>2]=d;if(e){c[(d&p)>>2]=e;e=e+4|0;c[(d&p)+4>>2]=c[(e&p)>>2];f=c[(e&p)>>2]|0;if(!f)c[(a&p)+8>>2]=d;else c[(f&p)>>2]=d;c[(e&p)>>2]=d}else g=9}else g=9;while(0);if((g|0)==9){e=a+8|0;f=c[(e&p)>>2]|0;c[(d&p)>>2]=f;if(f)c[(f&p)+4>>2]=d;c[(d&p)+4>>2]=0;c[(e&p)>>2]=d}return}function Do(a,b){a=a|0;b=b|0;var d=0,e=0;if(b){if((c[(b&p)>>2]|0)>0){d=0;e=b+8|0;while(1){mg(a,c[(e&p)+4>>2]|0);mg(a,c[(e&p)+8>>2]|0);mg(a,c[(e&p)+12>>2]|0);mg(a,c[(e&p)+64>>2]|0);kg(a,c[(e&p)+16>>2]|0);Mk(a,c[(e&p)+20>>2]|0,1);Gk(a,c[(e&p)+44>>2]|0);Hk(a,c[(e&p)+48>>2]|0);d=d+1|0;if((d|0)>=(c[(b&p)>>2]|0))break;else e=e+72|0}}mg(a,b)}return}function Eo(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;d=Fo(a,d)|0;if((d|0)>0){e=a+12|0;kw((c[(a&p)+8>>2]|0)+(c[(e&p)>>2]|0)|0,b|0,d|0)|0;c[(e&p)>>2]=(c[(e&p)>>2]|0)+d}return}function Fo(b,d){b=b|0;d=d|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0;i=b+25|0;do if(!(a[(i&n)>>0]|0)){g=a[(b&n)+24>>0]|0;if(!(g<<24>>24)){f=b+16|0;d=(c[(f&p)>>2]|0)+-1-(c[(b&p)+12>>2]|0)|0;a[(i&n)>>0]=2;c[(f&p)>>2]=0;break}j=b+8|0;h=c[(j&p)>>2]|0;h=(h|0)==(c[(b&p)+4>>2]|0)?0:h;k=b+12|0;r=c[(k&p)>>2]|0;f=((r|0)<0)<<31>>31;u=d+1|0;u=jw(r|0,f|0,u|0,((u|0)<0)<<31>>31|0)|0;s=G;f=jw(u|0,s|0,r|0,f|0)|0;r=G;m=c[(b&p)+20>>2]|0;q=((m|0)<0)<<31>>31;t=(r|0)>(q|0)|(r|0)==(q|0)&f>>>0>m>>>0;f=t?u:f;r=t?s:r;if((r|0)>(q|0)|(r|0)==(q|0)&f>>>0>m>>>0){gn(b);a[(i&n)>>0]=2;c[(b&p)+16>>2]=0;d=0;break}m=b+16|0;c[(m&p)>>2]=f;if(g<<24>>24==1)g=ro(c[(b&p)>>2]|0,h,f,((f|0)<0)<<31>>31)|0;else g=Xc(h,f)|0;if(!g){gn(b);a[(i&n)>>0]=1;c[(m&p)>>2]=0;d=0;break}if((h|0)==0?(l=c[(k&p)>>2]|0,(l|0)>0):0)kw(g|0,c[(j&p)>>2]|0,l|0)|0;c[(j&p)>>2]=g;f=c[(b&p)>>2]|0;do if(!f)f=lc[c[8792>>2]&127](g)|0;else{if((c[(f&p)+276>>2]|0)>>>0<=g>>>0?(c[(f&p)+280>>2]|0)>>>0>g>>>0:0){f=e[(f&o)+248>>1]|0;break}f=lc[c[8792>>2]&127](g)|0}while(0);c[(m&p)>>2]=f}else d=0;while(0);return d|0}function Go(a){a=a|0;var b=0,d=0;if((c[3154]|0)>=(a|0)?(b=c[3160]|0,(b|0)!=0):0){c[3160]=c[(b&p)>>2];d=c[3161]|0;c[3161]=d+-1;c[3162]=(d|0)<=(c[3156]|0)&1;c[2173]=a;if((c[2183]|0)>>>0>>0)c[2183]=a;d=(c[2167]|0)+1|0;c[2167]=d;if(d>>>0>(c[2177]|0)>>>0)c[2177]=d}else{b=qg(a,((a|0)<0)<<31>>31)|0;if(b){d=lc[c[8792>>2]&127](b)|0;c[2173]=a;if((c[2183]|0)>>>0>>0)c[2183]=a;d=(c[2168]|0)+d|0;c[2168]=d;if(d>>>0>(c[2178]|0)>>>0)c[2178]=d}else b=0}return b|0}function Ho(a,b){a=a|0;b=b|0;var e=0,f=0,g=0,h=0,i=0,j=0;h=a+20|0;if(c[(h&p)>>2]|0){f=a+24|0;i=ac[c[8864>>2]&63](b,(c[(f&p)>>2]|0)+40|0,d[(a&n)+28>>0]|0)|0;if(!i)e=7;else{g=c[2217]|0;e=c[(a&p)+16>>2]|0;if((e|0)<=-1){j=sw(e|0,((e|0)<0)<<31>>31|0,-1024,-1)|0;e=(c[(f&p)>>2]|0)+(c[(h&p)>>2]|0)|0;e=qw(j|0,G|0,e|0,((e|0)<0)<<31>>31|0)|0}jc[g&15](i,e);e=a+40|0;f=c[(e&p)>>2]|0;if(f)cc[c[8892>>2]&31](f);c[(e&p)>>2]=i;c[(a&p)+44>>2]=0;c[(h&p)>>2]=b;e=0}}else e=0;return e|0}function Io(a,d){a=a|0;d=d|0;var e=0,f=0,g=0,h=0,k=0;k=i;i=i+16|0;if((i|0)>=(j|0))fa();g=k;f=c[(a&p)+208>>2]|0;if(((f|0)!=0?(b[(f&o)+40>>1]|0)>-1:0)?(e=c[(f&p)+72>>2]|0,(e|0)!=0):0){f=e;h=8}else h=4;do if((h|0)==4){f=g;c[(f&p)>>2]=0;c[(f&p)+4>>2]=0;f=c[(a&p)+60>>2]|0;e=c[(f&p)>>2]|0;if(!e){e=-1;f=-1}else{e=rc[c[(e&p)+24>>2]&127](f,g)|0;if(e)break;e=g;e=jw(c[(e&p)>>2]|0,c[(e&p)+4>>2]|0,-1,-1)|0;f=G}g=c[(a&p)+152>>2]|0;h=((g|0)<0)<<31>>31;f=jw(e|0,f|0,g|0,h|0)|0;f=qw(f|0,G|0,g|0,h|0)|0;h=8}while(0);if((h|0)==8){e=a+156|0;if(f>>>0>(c[(e&p)>>2]|0)>>>0)c[(e&p)>>2]=f;c[(d&p)>>2]=f;e=0}i=k;return e|0}function Jo(b){b=b|0;var d=0,e=0;e=b+64|0;if(!((a[(b&n)+7>>0]|0)==0?(d=c[(e&p)>>2]|0,d=rc[c[((c[(d&p)>>2]|0)&p)+20>>2]&127](d,2)|0,(d|0)!=0):0)){d=c[(e&p)>>2]|0;d=rc[c[((c[(d&p)>>2]|0)&p)+24>>2]&127](d,b+80|0)|0}return d|0}function Ko(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,o=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,H=0;H=i;i=i+48|0;if((i|0)>=(j|0))fa();E=H+16|0;D=H+8|0;C=H+36|0;y=H;x=H+32|0;w=H+28|0;B=H+24|0;f=c[(b&p)>>2]|0;c[(w&p)>>2]=0;c[(B&p)>>2]=1;A=b+64|0;g=c[(A&p)>>2]|0;g=rc[c[((c[(g&p)>>2]|0)&p)+24>>2]&127](g,y)|0;a:do if(!g){z=b+200|0;g=c[(z&p)>>2]|0;h=uq(c[(A&p)>>2]|0,g,(c[((c[(b&p)>>2]|0)&p)+8>>2]|0)+1|0)|0;if(!h){if(!(a[(g&n)>>0]|0))g=0;else g=pc[c[(f&p)+32>>2]&31](f,g,0,B)|0;b:do if((g|0)==0&(c[(B&p)>>2]|0)!=0){v=b+72|0;u=v;c[(u&p)>>2]=0;c[(u&p)+4>>2]=0;u=b+148|0;t=b+152|0;o=b+80|0;r=b+24|0;f=0;k=d;c:while(1){do{g=y;g=vq(b,d,c[(g&p)>>2]|0,c[(g&p)+4>>2]|0,x,w)|0;if((g|0)==101)break c;else if(g){F=27;break b}h=c[(x&p)>>2]|0;if((h|0)==-1){s=y;s=dw(c[(s&p)>>2]|0,c[(s&p)+4>>2]|0,c[(u&p)>>2]|0,0)|0;h=(c[(t&p)>>2]|0)+8|0;h=qw(s|0,G|0,h|0,((h|0)<0)<<31>>31|0)|0;c[(x&p)>>2]=h}if(!(h|d)){s=o;g=c[(u&p)>>2]|0;s=jw(g|0,0,c[(s&p)>>2]|0,c[(s&p)+4>>2]|0)|0;q=G;m=v;l=c[(m&p)>>2]|0;m=c[(m&p)+4>>2]|0;if((s|0)==(l|0)&(q|0)==(m|0)){m=y;m=dw(c[(m&p)>>2]|0,c[(m&p)+4>>2]|0,s|0,q|0)|0;h=(c[(t&p)>>2]|0)+8|0;h=qw(m|0,G|0,h|0,((h|0)<0)<<31>>31|0)|0;c[(x&p)>>2]=h;m=q;l=s}}else{l=v;g=c[(u&p)>>2]|0;m=c[(l&p)+4>>2]|0;l=c[(l&p)>>2]|0}if((l|0)==(g|0)&(m|0)==0){g=c[(w&p)>>2]|0;l=Bl(b,g)|0;if(l){e=l;F=25;break a}c[(r&p)>>2]=g}}while((h|0)==0);l=0;while(1){if(k)xn(b);g=wq(b,v,0,1,0)|0;if((g|0)==522)break c;else if((g|0)==101)break;else if(g){F=27;break b}f=f+1|0;g=l+1|0;if(g>>>0>>0){k=0;l=g}else{k=0;continue c}}g=y;s=c[(g&p)+4>>2]|0;k=v;c[(k&p)>>2]=c[(g&p)>>2];c[(k&p)+4>>2]=s;k=0}a[(b&n)+18>>0]=a[(b&n)+12>>0]|0;w=f}else{f=0;F=27}while(0);if((F|0)==27){a[(b&n)+18>>0]=a[(b&n)+12>>0]|0;if(!g)w=f;else{e=g;break}}v=c[(z&p)>>2]|0;g=uq(c[(A&p)>>2]|0,v,(c[((c[(b&p)>>2]|0)&p)+8>>2]|0)+1|0)|0;if(!g){if(((a[(b&n)+16>>0]|0)+-1&255)>2?(e=Ig(b,0)|0,(e|0)!=0):0){f=w;break}e=Cl(b,(a[(v&n)>>0]|0)!=0&1,0)|0;if(!e)if((a[(v&n)>>0]|0)!=0&(c[(B&p)>>2]|0)!=0){t=c[(b&p)>>2]|0;g=t+4|0;f=c[(g&p)>>2]<<1;u=qg(f,((f|0)<0)<<31>>31)|0;if(!u){f=w;e=7}else{fw(u|0,0,f|0)|0;r=u+(c[(g&p)>>2]|0)|0;s=t+24|0;e=tc[c[(s&p)>>2]&31](t,v,u,16385,0)|0;d:do if(!e){e=rc[c[((c[(u&p)>>2]|0)&p)+24>>2]&127](u,D)|0;if(!e){o=(c[(t&p)+8>>2]|0)+1|0;f=D;f=jw(c[(f&p)>>2]|0,c[(f&p)+4>>2]|0,1,0)|0;f=jw(f|0,G|0,o|0,((o|0)<0)<<31>>31|0)|0;f=qg(f,G)|0;if(f){q=D;e=c[(q&p)>>2]|0;q=jw(e|0,c[(q&p)+4>>2]|0,1,0)|0;q=f+q|0;e=tc[c[((c[(u&p)>>2]|0)&p)+8>>2]&31](u,f,e,0,0)|0;if(!e){a[(f+(c[(D&p)>>2]|0)&n)>>0]=0;k=f;B=D;A=c[(B&p)+4>>2]|0;if((A|0)>0|(A|0)==0&(c[(B&p)>>2]|0)>>>0>0){g=t+32|0;l=k;m=f;do{e=pc[c[(g&p)>>2]&31](t,m,0,C)|0;if(e){F=55;break d}do if(c[(C&p)>>2]|0){e=tc[c[(s&p)>>2]&31](t,m,r,2049,0)|0;if(e){F=55;break d}e=uq(r,q,o)|0;h=c[(r&p)>>2]|0;if(h){lc[c[(h&p)+4>>2]&127](r)|0;c[(r&p)>>2]=0}if(e){F=55;break d}if(!(a[(q&n)>>0]|0))break;if(!(_v(q,v)|0)){e=0;F=55;break d}}while(0);if(!m)h=1;else{h=m;while(1)if(!(a[(h&n)>>0]|0))break;else h=h+1|0;h=(h-l&1073741823)+1|0}m=m+h|0;l=m;A=l-k|0;y=((A|0)<0)<<31>>31;B=D;z=c[(B&p)+4>>2]|0}while((y|0)<(z|0)|((y|0)==(z|0)?A>>>0<(c[(B&p)>>2]|0)>>>0:0))}e=c[(u&p)>>2]|0;if(e){lc[c[(e&p)+4>>2]&127](u)|0;c[(u&p)>>2]=0}e=ac[c[(t&p)+28>>2]&63](t,v,0)|0;Wc(f)}else F=55}else{e=7;f=0;F=55}}else{f=0;F=55}}else{f=0;F=55}while(0);if((F|0)==55)Wc(f);f=c[(u&p)>>2]|0;if(f){lc[c[(f&p)+4>>2]&127](u)|0;c[(u&p)>>2]=0}Wc(u);f=w}}else{f=w;e=0}else f=w}else{f=w;e=g}}else{f=0;e=h;F=25}}else{f=0;e=g;F=25}while(0);if((F|0)==25)a[(b&n)+18>>0]=a[(b&n)+12>>0]|0;if((d|0)!=0&(f|0)!=0){D=c[(b&p)+172>>2]|0;c[(E&p)>>2]=f;c[(E&p)+4>>2]=D;bd(539,14776,E)}wp(b);i=H;return e|0}function Lo(d){d=d|0;var e=0,f=0;e=d+44|0;if(a[(e&n)>>0]|0){if(!(a[(d&n)+43>>0]|0)){f=c[(d&p)+4>>2]|0;pc[c[((c[(f&p)>>2]|0)&p)+56>>2]&31](f,0,1,9)|0}a[(e&n)>>0]=0;a[(d&n)+47>>0]=0}e=d+40|0;f=b[(e&o)>>1]|0;if(f<<16>>16>-1){if(!(a[(d&n)+43>>0]|0)){d=c[(d&p)+4>>2]|0;pc[c[((c[(d&p)>>2]|0)&p)+56>>2]&31](d,(f<<16>>16)+3|0,1,5)|0}b[(e&o)>>1]=-1}return}function Mo(d,e,f,g){d=d|0;e=e|0;f=f|0;g=g|0;var h=0,i=0,j=0,k=0,l=0,m=0,q=0;if((g|0)>5)if((g|0)>100)f=15;else{if((g|0)>9){g=g+-9|0;g=ca(g*39|0,g)|0}else g=1;h=c[(d&p)>>2]|0;rc[c[(h&p)+60>>2]&127](h,g)|0;h=6}else h=6;a:do if((h|0)==6){do if(!f){f=nq(d,e)|0;do if((f|0)==5){if(!(c[(c[(d&p)+32>>2]&p)>>2]|0)){f=-1;break a}e=d+43|0;if(a[(e&n)>>0]|0){f=-1;break a}g=d+4|0;f=c[(g&p)>>2]|0;f=pc[c[((c[(f&p)>>2]|0)&p)+56>>2]&31](f,2,1,6)|0;if((f|0)==5){f=261;break a}else if(f)break;if(a[(e&n)>>0]|0){f=-1;break a}f=c[(g&p)>>2]|0;pc[c[((c[(f&p)>>2]|0)&p)+56>>2]&31](f,2,1,5)|0;f=-1;break a}while(0);if(f)break a;g=d+32|0;j=(c[(c[(g&p)>>2]&p)>>2]|0)+96|0;e=d+52|0;if((c[(j&p)>>2]|0)==(c[(d&p)+68>>2]|0)){i=d+43|0;h=a[(i&n)>>0]|0;if(!(h<<24>>24)){f=c[(d&p)+4>>2]|0;f=pc[c[((c[(f&p)>>2]|0)&p)+56>>2]&31](f,3,1,6)|0;h=a[(i&n)>>0]|0}else f=0;if(h<<24>>24!=2){q=c[(d&p)+4>>2]|0;cc[c[((c[(q&p)>>2]|0)&p)+60>>2]&31](q)}if((f|0)==5){q=g;g=5;break}else if(f)break a;if(!(Zv(c[(c[(g&p)>>2]&p)>>2]|0,e,48)|0)){b[(d&o)+40>>1]=0;f=0;break a}if(a[(i&n)>>0]|0){f=-1;break a}f=c[(d&p)+4>>2]|0;pc[c[((c[(f&p)>>2]|0)&p)+56>>2]&31](f,3,1,5)|0;f=-1;break a}else{q=g;g=0}}else{j=d+32|0;q=j;j=(c[(c[(j&p)>>2]&p)>>2]|0)+96|0;g=0}while(0);m=d+68|0;e=c[(j&p)+8>>2]|0;i=e>>>0>(c[(m&p)>>2]|0)>>>0;e=i?0:e;i=i&1^1;h=c[(j&p)+12>>2]|0;if(e>>>0<=h>>>0){l=h>>>0>(c[(m&p)>>2]|0)>>>0;i=l?i:2;e=l?e:h}h=c[(j&p)+16>>2]|0;if(e>>>0<=h>>>0){l=h>>>0>(c[(m&p)>>2]|0)>>>0;i=l?i:3;e=l?e:h}h=c[(j&p)+20>>2]|0;if(e>>>0<=h>>>0){l=h>>>0>(c[(m&p)>>2]|0)>>>0;i=l?i:4;e=l?e:h}b:do if((a[(d&n)+46>>0]&2)==0?((i|0)==0?1:e>>>0<(c[(m&p)>>2]|0)>>>0):0){l=d+43|0;k=d+4|0;h=1;while(1){g=h+3|0;if(a[(l&n)>>0]|0){i=h;break}f=c[(k&p)>>2]|0;f=pc[c[((c[(f&p)>>2]|0)&p)+56>>2]&31](f,g,1,10)|0;if(!f){i=h;break}else if((f|0)!=5)break a;h=h+1|0;if((h|0)>=5){g=5;break b}}h=c[(m&p)>>2]|0;c[(j+(i<<2)&p)+4>>2]=h;if(!(a[(l&n)>>0]|0)){e=c[(k&p)>>2]|0;pc[c[((c[(e&p)>>2]|0)&p)+56>>2]&31](e,g,1,9)|0;e=h;g=0}else{e=h;g=0}}while(0);if(!i){f=(g|0)==5?-1:520;break}g=i+3|0;f=d+43|0;h=a[(f&n)>>0]|0;do if(!(h<<24>>24)){h=c[(d&p)+4>>2]|0;h=pc[c[((c[(h&p)>>2]|0)&p)+56>>2]&31](h,g,1,6)|0;if(!h){h=a[(f&n)>>0]|0;break}else{f=(h|0)==5?-1:h;break a}}while(0);if(h<<24>>24!=2){m=c[(d&p)+4>>2]|0;cc[c[((c[(m&p)>>2]|0)&p)+60>>2]&31](m)}if((c[(j+(i<<2)&p)+4>>2]|0)==(e|0)?(Zv(c[(c[(q&p)>>2]&p)>>2]|0,d+52|0,48)|0)==0:0){b[(d&o)+40>>1]=i;f=0;break}if(!(a[(f&n)>>0]|0)){f=c[(d&p)+4>>2]|0;pc[c[((c[(f&p)>>2]|0)&p)+56>>2]&31](f,g,1,5)|0;f=-1}else f=-1}while(0);return f|0}function No(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,i=0;e=b+56|0;ei(c[(e&p)>>2]|0);c[(e&p)>>2]=0;cp(b);e=c[(b&p)+208>>2]|0;if(!e){if(!(a[(b&n)+4>>0]|0)){f=b+60|0;e=c[(f&p)>>2]|0;d=c[(e&p)>>2]|0;if(!(((d|0)!=0?((lc[c[(d&p)+48>>2]&127](e)|0)&2048|0)!=0:0)?(a[(b&n)+5>>0]&5)==1:0))i=7;if((i|0)==7?(g=c[(b&p)+64>>2]|0,h=c[(g&p)>>2]|0,(h|0)!=0):0){lc[c[(h&p)+4>>2]&127](g)|0;c[(g&p)>>2]=0}d=c[(f&p)>>2]|0;e=c[(d&p)>>2]|0;if(e){if(!(a[(b&n)+13>>0]|0))d=rc[c[(e&p)+32>>2]&127](d,0)|0;else d=0;e=b+17|0;if((a[(e&n)>>0]|0)!=5)a[(e&n)>>0]=0;if((d|0)!=0?(a[(b&n)+16>>0]|0)==6:0)a[(e&n)>>0]=5}a[(b&n)+18>>0]=0;a[(b&n)+16>>0]=0}}else{Lo(e);a[(b&n)+16>>0]=0}d=b+40|0;if(c[(d&p)>>2]|0){xn(b);a[(b&n)+18>>0]=a[(b&n)+12>>0]|0;a[(b&n)+16>>0]=0;c[(d&p)>>2]=0}d=b+72|0;a[(b&n)+19>>0]=0;c[(d&p)>>2]=0;c[(d&p)+4>>2]=0;c[(d&p)+8>>2]=0;c[(d&p)+12>>2]=0;return}function Oo(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0;e=c[(d&p)+4>>2]|0;f=e+0|0;g=f+40|0;do{c[(f&p)>>2]=0;f=f+4|0}while((f|0)<(g|0));c[(e&p)>>2]=d;c[(e&p)+4>>2]=c[(d&p)>>2];f=e+40|0;c[(e&p)+8>>2]=f;fw(f|0,0,c[(a&p)+24>>2]|0)|0;c[(e&p)+28>>2]=a;c[(e&p)+20>>2]=b;return il(a,b,d)|0}function Po(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,k=0,l=0;l=i;i=i+16|0;if((i|0)>=(j|0))fa();g=l;h=xq(a,b,g)|0;if(!h){k=c[(g&p)>>2]|0;if(!b){a=k+136|0;c[(g&p)>>2]=a;g=a;a=0}else{g=k;a=(b<<12)+-34|0}c[(e&p)>>2]=g+-4;c[(d&p)>>2]=k+16384;c[(f&p)>>2]=a}i=l;return h|0}function Qo(d,e){d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0;k=c[(d&p)+28>>2]|0;j=e&255;if(j&1){f=k+8|0;if((c[(f&p)>>2]|0)==(d|0)){e=d;do{e=c[(e&p)+36>>2]|0;if(!e){e=0;break}}while((b[(e&o)+24>>1]&4)!=0);c[(f&p)>>2]=e}e=d+32|0;g=c[(e&p)>>2]|0;h=(g|0)==0;i=d+36|0;f=c[(i&p)>>2]|0;if(h)c[(k&p)+4>>2]=f;else c[(g&p)+36>>2]=f;f=c[(i&p)>>2]|0;if(!f){c[(k&p)>>2]=g;if(h?(a[(k&n)+28>>0]|0)!=0:0)a[(k&n)+29>>0]=2}else c[(f&p)+32>>2]=g;c[(e&p)>>2]=0;c[(i&p)>>2]=0}if(j&2){e=c[(k&p)>>2]|0;c[(d&p)+32>>2]=e;if(!e){c[(k&p)+4>>2]=d;if(a[(k&n)+28>>0]|0)a[(k&n)+29>>0]=1}else c[(e&p)+36>>2]=d;c[(k&p)>>2]=d;e=k+8|0;if((c[(e&p)>>2]|0)==0?(b[(d&o)+24>>1]&4)==0:0)c[(e&p)>>2]=d}return}function Ro(d,e){d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0;l=i;i=i+16|0;if((i|0)>=(j|0))fa();h=l;f=e>>>3;g=f&255;a[(d&n)+5>>0]=g;e=e&-9;a[(d&n)+7>>0]=4-(f<<2);f=c[(d&p)+52>>2]|0;if((e|0)==2){a[(d&n)+2>>0]=0;a[(d&n)+3>>0]=0;a[(d&n)+4>>0]=0;b[(d&o)+10>>1]=b[(f&o)+24>>1]|0;b[(d&o)+12>>1]=b[(f&o)+26>>1]|0;k=5}else if((e|0)==5){a[(d&n)+2>>0]=1;a[(d&n)+3>>0]=g;a[(d&n)+4>>0]=g<<24>>24==0&1;b[(d&o)+10>>1]=b[(f&o)+28>>1]|0;b[(d&o)+12>>1]=b[(f&o)+30>>1]|0;k=5}else{c[(h&p)>>2]=54521;c[(h&p)+4>>2]=10788;bd(11,13600,h);e=11}if((k|0)==5){a[(d&n)+8>>0]=a[(f&n)+21>>0]|0;e=0}i=l;return e|0}function So(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,o=0,q=0;l=c[(b&p)+200>>2]|0;j=b+152|0;k=c[(j&p)>>2]|0;m=b+148|0;i=c[(m&p)>>2]|0;k=k>>>0>i>>>0?i:k;g=c[(b&p)+96>>2]|0;if((g|0)>0){f=c[(b&p)+92>>2]|0;e=b+72|0;h=0;do{d=f+(h*48|0)+8|0;o=d;if((c[(o&p)>>2]|0)==0&(c[(o&p)+4>>2]|0)==0){q=e;o=c[(q&p)+4>>2]|0;c[(d&p)>>2]=c[(q&p)>>2];c[(d&p)+4>>2]=o}h=h+1|0}while((h|0)<(g|0));h=e}else h=b+72|0;e=h;f=c[(e&p)>>2]|0;e=c[(e&p)+4>>2]|0;if((f|0)==0&(e|0)==0){f=0;e=0}else{f=jw(f|0,e|0,-1,-1)|0;f=qw(f|0,G|0,i|0,0)|0;f=jw(f|0,G|0,1,0)|0;f=sw(f|0,G|0,i|0,0)|0;e=G}i=h;c[(i&p)>>2]=f;c[(i&p)+4>>2]=e;i=b+80|0;c[(i&p)>>2]=f;c[(i&p)+4>>2]=e;if(((a[(b&n)+7>>0]|0)==0?(a[(b&n)+5>>0]|0)!=4:0)?(i=c[(b&p)+60>>2]|0,((lc[c[((c[(i&p)>>2]|0)&p)+48>>2]&127](i)|0)&512|0)==0):0){f=l+0|0;e=f+12|0;do{a[(f&n)>>0]=0;f=f+1|0}while((f|0)<(e|0))}else{i=l;g=i;a[(g&n)>>0]=-117058087;a[(g&n)+1>>0]=-117058087>>8;a[(g&n)+2>>0]=-117058087>>16;a[(g&n)+3>>0]=-117058087>>24;i=i+4|0;a[(i&n)>>0]=-681336544;a[(i&n)+1>>0]=-681336544>>8;a[(i&n)+2>>0]=-681336544>>16;a[(i&n)+3>>0]=-681336544>>24;i=l+8|0;a[(i&n)>>0]=-1;a[(i&n)+1>>0]=-1>>8;a[(i&n)+2>>0]=-1>>16;a[(i&n)+3>>0]=-1>>24}e=b+48|0;cd(4,e);e=c[(e&p)>>2]|0;a[(l&n)+12>>0]=e>>>24;a[(l&n)+13>>0]=e>>>16;a[(l&n)+14>>0]=e>>>8;a[(l&n)+15>>0]=e;e=c[(b&p)+28>>2]|0;a[(l&n)+16>>0]=e>>>24;a[(l&n)+17>>0]=e>>>16;a[(l&n)+18>>0]=e>>>8;a[(l&n)+19>>0]=e;e=c[(m&p)>>2]|0;a[(l&n)+20>>0]=e>>>24;a[(l&n)+21>>0]=e>>>16;a[(l&n)+22>>0]=e>>>8;a[(l&n)+23>>0]=e;e=c[(j&p)>>2]|0;a[(l&n)+24>>0]=e>>>24;a[(l&n)+25>>0]=e>>>16;a[(l&n)+26>>0]=e>>>8;a[(l&n)+27>>0]=e;fw(l+28|0,0,k+-28|0)|0;e=b+64|0;f=0;while(1){if(f>>>0>=(c[(m&p)>>2]|0)>>>0){d=0;break}j=c[(e&p)>>2]|0;d=h;d=tc[c[((c[(j&p)>>2]|0)&p)+12>>2]&31](j,l,k,c[(d&p)>>2]|0,c[(d&p)+4>>2]|0)|0;j=h;j=jw(c[(j&p)>>2]|0,c[(j&p)+4>>2]|0,k|0,0)|0;b=h;c[(b&p)>>2]=j;c[(b&p)+4>>2]=G;if(!d)f=f+k|0;else break}return d|0}function To(a){a=a|0;var c=0,d=0,f=0;c=a+24|0;f=e[(c&o)>>1]|0;d=f&65503;b[(c&o)>>1]=d;if(!(f&2)){b[(c&o)>>1]=d|2;Qo(a,2)}return}function Uo(a){a=a|0;var b=0,d=0,e=0;b=c[(a&p)+16>>2]|0;d=c[(a&p)+20>>2]|0;e=c[(b&p)+96>>2]|0;a:do if((e|0)>0){b=c[(b&p)+92>>2]|0;a=0;while(1){if((c[(b+(a*48|0)&p)+20>>2]|0)>>>0>=d>>>0?(di(c[(b+(a*48|0)&p)+16>>2]|0,d)|0)==0:0){a=1;break a}a=a+1|0;if((a|0)>=(e|0)){a=0;break}}}else a=0;while(0);return a|0}function Vo(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,o=0,q=0,r=0,s=0;s=i;i=i+16|0;if((i|0)>=(j|0))fa();m=s;q=c[(b&p)+16>>2]|0;e=a[(q&n)+5>>0]|0;a:do if(e<<24>>24!=2){o=q+68|0;f=c[(o&p)>>2]|0;do if(!(c[(f&p)>>2]|0)){if(e<<24>>24!=4?(a[(q&n)+21>>0]|0)==0:0){d=c[(q&p)>>2]|0;d=tc[c[(d&p)+24>>2]&31](d,0,f,8222,0)|0;if(!d)break;else break a}e=f+0|0;d=e+40|0;do{c[(e&p)>>2]=0;e=e+4|0}while((e|0)<(d|0));c[(f&p)>>2]=14696}while(0);f=c[(b&p)+4>>2]|0;l=q+52|0;g=q+152|0;h=(c[(g&p)>>2]|0)+4|0;h=sw(h|0,((h|0)<0)<<31>>31|0,c[(l&p)>>2]|0,0)|0;k=G;d=c[(o&p)>>2]|0;e=b+20|0;b=c[(e&p)>>2]|0;a[(m&n)>>0]=b>>>24;a[(m&n)+1>>0]=b>>>16;a[(m&n)+2>>0]=b>>>8;a[(m&n)+3>>0]=b;d=tc[c[((c[(d&p)>>2]|0)&p)+12>>2]&31](d,m,4,h,k)|0;if(!d){m=c[(o&p)>>2]|0;o=c[(g&p)>>2]|0;d=jw(h|0,k|0,4,0)|0;d=tc[c[((c[(m&p)>>2]|0)&p)+12>>2]&31](m,f,o,d,G)|0;if(!d){d=l;r=10}}}else{e=b+20|0;d=q+52|0;r=10}while(0);if((r|0)==10){c[(d&p)>>2]=(c[(d&p)>>2]|0)+1;d=jl(q,c[(e&p)>>2]|0)|0}i=s;return d|0}function Wo(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;h=i;i=i+48|0;if((i|0)>=(j|0))fa();g=h;d=(a|0)!=0;a:do if(d&(b|0)!=0){d=g;while(1){f=c[(b&p)+20>>2]|0;e=a;a=d;while(1){a=a+12|0;if((c[(e&p)+20>>2]|0)>>>0>=f>>>0)break;c[(a&p)>>2]=e;a=c[(e&p)+12>>2]|0;if(!a){d=b;a=e;e=8;break a}else{d=e;e=a;a=d}}c[(a&p)>>2]=b;f=c[(b&p)+12>>2]|0;d=(e|0)!=0;if(d&(f|0)!=0){d=b;a=e;b=f}else{a=e;e=6;break}}}else{f=b;b=g;e=6}while(0);if((e|0)==6)if(d)c[(b&p)+12>>2]=a;else{d=f;a=b;e=8}do if((e|0)==8){a=a+12|0;if(!d){c[(a&p)>>2]=0;break}else{c[(a&p)>>2]=d;break}}while(0);i=h;return c[(g&p)+12>>2]|0}function Xo(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0;f=c[(c[(b&p)+32>>2]&p)>>2]|0;k=b+84|0;j=b+104|0;c[(j&p)>>2]=(c[(j&p)>>2]|0)+1;c[(b&p)+68>>2]=0;j=k+1|0;i=k+2|0;g=k+3|0;h=((d[(j&n)>>0]|0)<<16|(d[(k&n)>>0]|0)<<24|(d[(i&n)>>0]|0)<<8|(d[(g&n)>>0]|0))+1|0;a[(k&n)>>0]=h>>>24;a[(j&n)>>0]=h>>>16;a[(i&n)>>0]=h>>>8;a[(g&n)>>0]=h;c[(b&p)+88>>2]=e;$o(b);c[(f&p)+96>>2]=0;c[(f&p)+104>>2]=0;c[(f&p)+108>>2]=-1;c[(f&p)+112>>2]=-1;c[(f&p)+116>>2]=-1;return}function Yo(b,e,f,g,h){b=b|0;e=e|0;f=f|0;g=g|0;h=h|0;var k=0,l=0,m=0,o=0,q=0,r=0,s=0;l=i;i=i+32|0;if((i|0)>=(j|0))fa();m=l;k=c[(e&p)+4>>2]|0;o=c[(b&p)>>2]|0;q=c[(e&p)+20>>2]|0;e=o+76|0;a[(m&n)>>0]=q>>>24;a[(m&n)+1>>0]=q>>>16;a[(m&n)+2>>0]=q>>>8;a[(m&n)+3>>0]=q;a[(m&n)+4>>0]=f>>>24;a[(m&n)+5>>0]=f>>>16;a[(m&n)+6>>0]=f>>>8;a[(m&n)+7>>0]=f;q=o+84|0;s=q;s=d[(s&n)>>0]|d[(s&n)+1>>0]<<8|d[(s&n)+2>>0]<<16|d[(s&n)+3>>0]<<24;q=q+4|0;q=d[(q&n)>>0]|d[(q&n)+1>>0]<<8|d[(q&n)+2>>0]<<16|d[(q&n)+3>>0]<<24;f=m+8|0;r=f;a[(r&n)>>0]=s;a[(r&n)+1>>0]=s>>8;a[(r&n)+2>>0]=s>>16;a[(r&n)+3>>0]=s>>24;f=f+4|0;a[(f&n)>>0]=q;a[(f&n)+1>>0]=q>>8;a[(f&n)+2>>0]=q>>16;a[(f&n)+3>>0]=q>>24;f=(a[(o&n)+65>>0]|0)==0&1;yq(f,m,8,e,e);yq(f,k,c[(o&p)+36>>2]|0,e,e);f=c[(e&p)>>2]|0;a[(m&n)+16>>0]=f>>>24;a[(m&n)+17>>0]=f>>>16;a[(m&n)+18>>0]=f>>>8;a[(m&n)+19>>0]=f;f=c[(o&p)+80>>2]|0;a[(m&n)+20>>0]=f>>>24;a[(m&n)+21>>0]=f>>>16;a[(m&n)+22>>0]=f>>>8;a[(m&n)+23>>0]=f;f=zq(b,m,24,g,h)|0;if(!f){q=c[(b&p)+20>>2]|0;f=jw(g|0,h|0,24,0)|0;f=zq(b,k,q,f,G)|0}i=l;return f|0}function Zo(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0;k=i;i=i+16|0;if((i|0)>=(j|0))fa();h=k+8|0;g=k;f=c[3164]|0;if(f)nc[f&3]();e=a+8|0;f=c[(e&p)>>2]|0;f=rc[c[((c[(f&p)>>2]|0)&p)+24>>2]&127](f,g)|0;l=c[(g&p)+4>>2]|0;if((f|0)==0&((l|0)>(d|0)|((l|0)==(d|0)?(c[(g&p)>>2]|0)>>>0>b>>>0:0))){f=c[(e&p)>>2]|0;f=ac[c[((c[(f&p)>>2]|0)&p)+16>>2]&63](f,b,d)|0}e=c[3166]|0;if(e)nc[e&3]();if(f){c[(h&p)>>2]=c[(a&p)+100>>2];bd(f,14816,h)}i=k;return}function _o(a,d,e){a=a|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,n=0;n=i;i=i+32|0;if((i|0)>=(j|0))fa();k=n;g=n+16|0;m=n+12|0;l=n+8|0;c[(g&p)>>2]=0;c[(m&p)>>2]=0;c[(l&p)>>2]=0;f=Po(a,(d+33|0)>>>12,l,m,g)|0;a:do if(!f){h=d-(c[(g&p)>>2]|0)|0;if((h|0)==1){f=c[(m&p)>>2]|0;d=f+4|0;fw(d|0,0,(c[(l&p)>>2]|0)+16384-d|0)|0}else f=c[(m&p)>>2]|0;if(c[(f+(h<<2)&p)>>2]|0)Aq(a);f=e*383&8191;b:do if(b[((c[(l&p)>>2]|0)+(f<<1)&o)>>1]|0){d=c[(l&p)>>2]|0;g=h;while(1){if(!g)break;f=f+1&8191;if(!(b[(d+(f<<1)&o)>>1]|0))break b;else g=g+-1|0}c[(k&p)>>2]=49852;c[(k&p)+4>>2]=10788;bd(11,13600,k);f=11;break a}while(0);c[((c[(m&p)>>2]|0)+(h<<2)&p)>>2]=e;b[((c[(l&p)>>2]|0)+(f<<1)&o)>>1]=h;f=0}while(0);i=n;return f|0}function $o(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;j=c[(c[(b&p)+32>>2]&p)>>2]|0;k=b+52|0;a[(b&n)+64>>0]=1;c[(k&p)>>2]=3007e3;i=b+92|0;g=3007e3;h=k;f=0;d=0;while(1){f=f+d+g|0;e=h+8|0;d=f+d+(c[(h&p)+4>>2]|0)|0;if(e>>>0>=i>>>0)break;g=c[(e&p)>>2]|0;h=e}c[(i&p)>>2]=f;c[(b&p)+96>>2]=d;d=j+48|0;e=k+0|0;f=d+48|0;do{a[(d&n)>>0]=a[(e&n)>>0]|0;d=d+1|0;e=e+1|0}while((d|0)<(f|0));if((a[(b&n)+43>>0]|0)!=2){d=c[(b&p)+4>>2]|0;cc[c[((c[(d&p)>>2]|0)&p)+60>>2]&31](d)}d=j+0|0;e=k+0|0;f=d+48|0;do{a[(d&n)>>0]=a[(e&n)>>0]|0;d=d+1|0;e=e+1|0}while((d|0)<(f|0));return}function ap(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0;if(a)do{e=a+28|0;g=c[(e&p)>>2]|0;if(((g>>>0<7?(30>>>(g&127)&1)==0:0)?(c[(a&p)+16>>2]|0)>>>0>b>>>0:0)?(f=Ag(a,b,d,1)|0,(f|0)!=0):0)c[(e&p)>>2]=f;a=c[(a&p)+44>>2]|0}while((a|0)!=0);return}function bp(a){a=a|0;var b=0,d=0,e=0;a:do if(!(c[(a&p)+208>>2]|0)){d=a+176|0;e=a+180|0;while(1){b=fl(a,4)|0;if((b|0)!=5)break a;if(!(lc[c[(d&p)>>2]&127](c[(e&p)>>2]|0)|0)){b=5;break}}}else b=0;while(0);return b|0}function cp(b){b=b|0;var d=0,e=0,f=0,g=0;f=b+96|0;if((c[(f&p)>>2]|0)>0){d=b+92|0;e=0;do{ei(c[((c[(d&p)>>2]|0)+(e*48|0)&p)+16>>2]|0);e=e+1|0}while((e|0)<(c[(f&p)>>2]|0))}e=c[(b&p)+68>>2]|0;d=c[(e&p)>>2]|0;if(!(a[(b&n)+4>>0]|0)){if(d)g=7}else if((d|0)==14696){d=14696;g=7}if((g|0)==7){lc[c[(d&p)+4>>2]&127](e)|0;c[(e&p)>>2]=0}d=b+92|0;Wc(c[(d&p)>>2]|0);c[(d&p)>>2]=0;c[(f&p)>>2]=0;c[(b&p)+52>>2]=0;return}function dp(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;f=a+40|0;if(c[(f&p)>>2]|0){d=c[(a&p)>>2]|0;if(d)do{e=d;d=c[(d&p)+32>>2]|0;if((c[(e&p)+20>>2]|0)>>>0>b>>>0)xl(e)}while((d|0)!=0);if(!b){b=c[(a&p)+44>>2]|0;if(!b)b=0;else{fw(c[(b&p)+4>>2]|0,0,c[(a&p)+20>>2]|0)|0;b=1}}jc[c[8888>>2]&15](c[(f&p)>>2]|0,b+1|0)}return}function ep(d,e){d=d|0;e=e|0;var f=0,g=0;do if(!e){f=d+43|0;if(!(a[(f&n)>>0]|0))f=0;else{a[(f&n)>>0]=0;g=c[(d&p)+4>>2]|0;if(!(pc[c[((c[(g&p)>>2]|0)&p)+56>>2]&31](g,(b[(d&o)+40>>1]|0)+3|0,1,6)|0))f=(a[(f&n)>>0]|0)==0;else{a[(f&n)>>0]=1;f=0}f=f&1}}else{f=d+43|0;g=(a[(f&n)>>0]|0)==0;if((e|0)<=0){f=g&1;break}if(g){g=c[(d&p)+4>>2]|0;pc[c[((c[(g&p)>>2]|0)&p)+56>>2]&31](g,(b[(d&o)+40>>1]|0)+3|0,1,5)|0}a[(f&n)>>0]=1;f=1}while(0);return f|0}function fp(b){b=b|0;var e=0,f=0,g=0,h=0;f=b+73|0;if((a[(f&n)>>0]|0)==2)a[(f&n)>>0]=1;else c[(b&p)+68>>2]=0;e=b+48|0;km(b,e);do if(!(a[((c[(b&p)+120>>2]|0)&n)+2>>0]|0)){g=e;g=qg(c[(g&p)>>2]|0,c[(g&p)+4>>2]|0)|0;if(g){e=Lm(b,0,c[(e&p)>>2]|0,g,0)|0;if(!e){c[(b&p)+56>>2]=g;h=9;break}else{Wc(g);break}}else e=7}else h=9;while(0);if((h|0)==9){gp(b);a[(f&n)>>0]=3;e=0}f=b+72|0;a[(f&n)>>0]=d[(f&n)>>0]&251;return e|0}function gp(a){a=a|0;var d=0,e=0,f=0,g=0;d=a+76|0;if((b[(d&o)>>1]|0)>=0){g=0;while(1){e=a+(g<<2)+120|0;f=c[(e&p)>>2]|0;if(f)Bg(c[(f&p)+68>>2]|0);c[(e&p)>>2]=0;if((g|0)<(b[(d&o)>>1]|0))g=g+1|0;else break}}b[(d&o)>>1]=-1;return}function hp(b,e,f,g){b=b|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,o=0,q=0;q=i;i=i+16|0;if((i|0)>=(j|0))fa();o=q;k=q+8|0;if(e>>>0<2)m=0;else{m=e+-2|0;m=m-((m>>>0)%(((((c[(b&p)+36>>2]|0)>>>0)/5|0)+1|0)>>>0)|0)|0;m=((m+1|0)==(((c[2514]|0)>>>0)/((c[(b&p)+32>>2]|0)>>>0)|0|0)?3:2)+m|0}h=zg(c[(b&p)>>2]|0,m,k,0)|0;do if(!h){k=c[(k&p)>>2]|0;l=c[(k&p)+4>>2]|0;h=(e-m|0)*5|0;b=h+-5|0;if((b|0)<0){if(k)Bg(k);c[(o&p)>>2]=53912;c[(o&p)+4>>2]=10788;bd(11,13600,o);h=11;break}a[(f&n)>>0]=a[(l+b&n)>>0]|0;if(g)c[(g&p)>>2]=(d[(l+h+-3&n)>>0]|0)<<16|(d[(l+h+-4&n)>>0]|0)<<24|(d[(l+h+-2&n)>>0]|0)<<8|(d[(l+h+-1&n)>>0]|0);if(k)Bg(k);if(((a[(f&n)>>0]|0)+-1&255)>4){c[(o&p)>>2]=53920;c[(o&p)+4>>2]=10788;bd(11,13600,o);h=11}else h=0}while(0);i=q;return h|0}function ip(e,f,g,h,k){e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;var l=0,m=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;N=i;i=i+32|0;if((i|0)>=(j|0))fa();M=N;L=N+16|0;s=N+20|0;K=N+12|0;t=N+8|0;c[(L&p)>>2]=0;v=e+12|0;r=c[(v&p)>>2]|0;u=e+44|0;I=c[(u&p)>>2]|0;J=r+56|0;q=c[(J&p)>>2]|0;q=d[(q&n)+37>>0]<<16|d[(q&n)+36>>0]<<24|d[(q&n)+38>>0]<<8|d[(q&n)+39>>0];do if(q>>>0>>0){if(!q){k=(a[(e&n)+19>>0]|0)==0&1;r=Gg(c[(r&p)+68>>2]|0)|0;if(r){l=r;break}s=c[(u&p)>>2]|0;q=s+1|0;c[(u&p)>>2]=q;m=e+32|0;r=c[(m&p)>>2]|0;if((s|0)==(((c[2514]|0)>>>0)/(r>>>0)|0|0)){q=s+2|0;c[(u&p)>>2]=q}if(a[(e&n)+17>>0]|0){if(q>>>0<2)s=0;else{s=q+-2|0;s=s-((s>>>0)%(((((c[(e&p)+36>>2]|0)>>>0)/5|0)+1|0)>>>0)|0)|0;s=((s+1|0)==(((c[2514]|0)>>>0)/(r>>>0)|0|0)?3:2)+s|0}if((s|0)==(q|0)){c[(t&p)>>2]=0;s=dl(e,q,t,k)|0;if(s){l=s;break}I=c[(t&p)>>2]|0;s=I+68|0;r=Gg(c[(s&p)>>2]|0)|0;if(I)Bg(c[(s&p)>>2]|0);if(r){l=r;break}s=c[(u&p)>>2]|0;q=s+1|0;c[(u&p)>>2]=q;if((s|0)==(((c[2514]|0)>>>0)/((c[(m&p)>>2]|0)>>>0)|0|0)){q=s+2|0;c[(u&p)>>2]=q}}}m=c[((c[(v&p)>>2]|0)&p)+56>>2]|0;a[(m&n)+28>>0]=q>>>24;a[(m&n)+29>>0]=q>>>16;a[(m&n)+30>>0]=q>>>8;a[(m&n)+31>>0]=q;m=c[(u&p)>>2]|0;c[(g&p)>>2]=m;m=dl(e,m,f,k)|0;if(m){l=m;break}m=Gg(c[((c[(f&p)>>2]|0)&p)+68>>2]|0)|0;if(m){l=c[(f&p)>>2]|0;if(!l){l=m;D=98}else{Bg(c[(l&p)+68>>2]|0);l=m;D=92}}}else{if(k<<24>>24==2)s=1;else if(k<<24>>24==1?I>>>0>=h>>>0:0){l=hp(e,h,s,0)|0;if(l)break;s=(a[(s&n)>>0]|0)==2&1}else s=0;l=Gg(c[(r&p)+68>>2]|0)|0;if(l)break;F=c[(J&p)>>2]|0;G=q+-1|0;a[(F&n)+36>>0]=G>>>24;a[(F&n)+37>>0]=G>>>16;a[(F&n)+38>>0]=G>>>8;a[(F&n)+39>>0]=G;F=e+36|0;G=(h|0)==0;H=e+60|0;E=k<<24>>24==2;m=0;a:while(1){w=(m|0)!=0;if(w){v=c[(m&p)+56>>2]|0;v=d[(v&n)+1>>0]<<16|d[(v&n)>>0]<<24|d[(v&n)+2>>0]<<8|d[(v&n)+3>>0]}else{v=c[(J&p)>>2]|0;v=d[(v&n)+33>>0]<<16|d[(v&n)+32>>0]<<24|d[(v&n)+34>>0]<<8|d[(v&n)+35>>0]}if(v>>>0>I>>>0){D=15;break}l=dl(e,v,L,0)|0;if(l){D=17;break}q=c[(L&p)>>2]|0;x=q+56|0;B=c[(x&p)>>2]|0;C=B+4|0;y=B+5|0;z=B+6|0;A=B+7|0;D=d[(y&n)>>0]<<16|d[(C&n)>>0]<<24|d[(z&n)>>0]<<8|d[(A&n)>>0];t=s<<24>>24!=0;do if((D|0)!=0|t){if(D>>>0>(((c[(F&p)>>2]|0)>>>2)+-2|0)>>>0){l=q;D=22;break a}if(s<<24>>24!=0?(v|0)==(h|0)|v>>>0>>0&E:0){c[(g&p)>>2]=v;c[(f&p)>>2]=q;l=Gg(c[(q&p)+68>>2]|0)|0;if(l){D=88;break a}do if(!D){if(!w){D=(c[(J&p)>>2]|0)+32|0;C=c[(x&p)>>2]|0;C=d[(C&n)>>0]|d[(C&n)+1>>0]<<8|d[(C&n)+2>>0]<<16|d[(C&n)+3>>0]<<24;a[(D&n)>>0]=C;a[(D&n)+1>>0]=C>>8;a[(D&n)+2>>0]=C>>16;a[(D&n)+3>>0]=C>>24;break}l=Gg(c[(m&p)+68>>2]|0)|0;if(l){D=88;break a}D=c[(m&p)+56>>2]|0;C=c[(x&p)>>2]|0;C=d[(C&n)>>0]|d[(C&n)+1>>0]<<8|d[(C&n)+2>>0]<<16|d[(C&n)+3>>0]<<24;a[(D&n)>>0]=C;a[(D&n)+1>>0]=C>>8;a[(D&n)+2>>0]=C>>16;a[(D&n)+3>>0]=C>>24}else{v=c[(x&p)>>2]|0;t=a[(v&n)+8>>0]|0;k=a[(v&n)+9>>0]|0;u=a[(v&n)+10>>0]|0;v=a[(v&n)+11>>0]|0;s=(k&255)<<16|(t&255)<<24|(u&255)<<8|v&255;if(s>>>0>I>>>0){l=q;D=32;break a}l=dl(e,s,K,0)|0;if(l){D=88;break a}s=c[(K&p)>>2]|0;r=s+68|0;l=Gg(c[(r&p)>>2]|0)|0;if(l){D=35;break a}C=s+56|0;B=c[(C&p)>>2]|0;A=c[(x&p)>>2]|0;A=d[(A&n)>>0]|d[(A&n)+1>>0]<<8|d[(A&n)+2>>0]<<16|d[(A&n)+3>>0]<<24;a[(B&n)>>0]=A;a[(B&n)+1>>0]=A>>8;a[(B&n)+2>>0]=A>>16;a[(B&n)+3>>0]=A>>24;B=c[(C&p)>>2]|0;D=D+-1|0;a[(B&n)+4>>0]=D>>>24;a[(B&n)+5>>0]=D>>>16;a[(B&n)+6>>0]=D>>>8;a[(B&n)+7>>0]=D;kw((c[(C&p)>>2]|0)+8|0,(c[(x&p)>>2]|0)+12|0,D<<2|0)|0;if(s)Bg(c[(r&p)>>2]|0);if(!w){D=c[(J&p)>>2]|0;a[(D&n)+32>>0]=t;a[(D&n)+33>>0]=k;a[(D&n)+34>>0]=u;a[(D&n)+35>>0]=v;break}l=Gg(c[(m&p)+68>>2]|0)|0;if(l){D=88;break a}D=c[(m&p)+56>>2]|0;a[(D&n)>>0]=t;a[(D&n)+1>>0]=k;a[(D&n)+2>>0]=u;a[(D&n)+3>>0]=v}while(0);c[(L&p)>>2]=0;q=0;l=0;s=0;break}if(D){b:do if(!G){if(E){k=0;while(1){x=k<<2;if((d[(B+x&n)+9>>0]<<16|d[(B+x&n)+8>>0]<<24|d[(B+x&n)+10>>0]<<8|d[(B+x&n)+11>>0])>>>0<=h>>>0)break b;k=k+1|0;if(k>>>0>=D>>>0){k=0;break b}}}r=(d[(B&n)+9>>0]<<16|d[(B&n)+8>>0]<<24|d[(B&n)+10>>0]<<8|d[(B&n)+11>>0])-h|0;if((r|0)<=-1)r=(r|0)==-2147483648?2147483647:0-r|0;if(D>>>0>1){k=0;u=1;while(1){l=u<<2;l=(d[(B+l&n)+9>>0]<<16|d[(B+l&n)+8>>0]<<24|d[(B+l&n)+10>>0]<<8|d[(B+l&n)+11>>0])-h|0;if((l|0)<=-1)l=(l|0)==-2147483648?2147483647:0-l|0;v=(l|0)<(r|0);k=v?u:k;u=u+1|0;if((u|0)==(D|0))break;else r=v?l:r}}else k=0}else k=0;while(0);r=k<<2;v=B+(r+8)|0;r=d[(B+r&n)+9>>0]<<16|d[(v&n)>>0]<<24|d[(B+r&n)+10>>0]<<8|d[(B+r&n)+11>>0];if(r>>>0>I>>>0){l=q;D=56;break a}if((r|0)==(h|0)|t^1|r>>>0>>0&E){c[(g&p)>>2]=r;l=Gg(c[(q&p)+68>>2]|0)|0;if(l){D=88;break a}s=D+-1|0;if(k>>>0>>0){D=B+((D<<2)+4)|0;D=d[(D&n)>>0]|d[(D&n)+1>>0]<<8|d[(D&n)+2>>0]<<16|d[(D&n)+3>>0]<<24;a[(v&n)>>0]=D;a[(v&n)+1>>0]=D>>8;a[(v&n)+2>>0]=D>>16;a[(v&n)+3>>0]=D>>24}a[(C&n)>>0]=s>>>24;a[(y&n)>>0]=s>>>16;a[(z&n)>>0]=s>>>8;a[(A&n)>>0]=s;r=c[(g&p)>>2]|0;s=c[(H&p)>>2]|0;do if(!s)s=0;else{if((c[(s&p)>>2]|0)>>>0>>0){s=1;break}s=(di(s,r)|0)!=0}while(0);l=dl(e,r,f,s&1^1)|0;if(l){s=0;break}l=Gg(c[((c[(f&p)>>2]|0)&p)+68>>2]|0)|0;if(!l){l=0;s=0;break}s=c[(f&p)>>2]|0;if(!s){s=0;break}Bg(c[(s&p)+68>>2]|0);s=0}else l=0}else l=0}else{l=Gg(c[(q&p)+68>>2]|0)|0;if(l){D=89;break a}c[(g&p)>>2]=v;l=(c[(J&p)>>2]|0)+32|0;s=c[(x&p)>>2]|0;s=d[(s&n)>>0]|d[(s&n)+1>>0]<<8|d[(s&n)+2>>0]<<16|d[(s&n)+3>>0]<<24;a[(l&n)>>0]=s;a[(l&n)+1>>0]=s>>8;a[(l&n)+2>>0]=s>>16;a[(l&n)+3>>0]=s>>24;c[(f&p)>>2]=q;c[(L&p)>>2]=0;q=0;l=0;s=0}while(0);if(m)Bg(c[(m&p)+68>>2]|0);if(!(s<<24>>24)){m=0;D=88;break}else m=q}if((D|0)==15){c[(M&p)>>2]=58314;c[(M&p)+4>>2]=10788;bd(11,13600,M);l=11;D=17}else if((D|0)==22){c[(M&p)>>2]=58343;c[(M&p)+4>>2]=10788;bd(11,13600,M);q=l;l=11;D=88}else if((D|0)==32){c[(M&p)>>2]=58377;c[(M&p)+4>>2]=10788;bd(11,13600,M);q=l;l=11;D=88}else if((D|0)==35)if(!s)D=88;else{Bg(c[(r&p)>>2]|0);D=88}else if((D|0)==56){c[(M&p)>>2]=58442;c[(M&p)+4>>2]=10788;bd(11,13600,M);q=l;l=11;D=88}if((D|0)==17)c[(L&p)>>2]=0;else if((D|0)==88)if(q)D=89;if((D|0)==89)Bg(c[(q&p)+68>>2]|0);if(!m)D=92;else{Bg(c[(m&p)+68>>2]|0);D=92}}if((D|0)==92?(l|0)!=0:0)D=98;if((D|0)==98){c[(f&p)>>2]=0;break}l=c[(f&p)>>2]|0;m=c[(l&p)+68>>2]|0;if((b[(m&o)+26>>1]|0)<=1){a[(l&n)>>0]=0;l=0;break}if(l)Bg(m);c[(f&p)>>2]=0;c[(M&p)>>2]=58541;c[(M&p)+4>>2]=10788;bd(11,13600,M);l=11}else{c[(M&p)>>2]=58259;c[(M&p)+4>>2]=10788;bd(11,13600,M);l=11}while(0);i=N;return l|0}function jp(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,o=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0;A=i;i=i+16|0;if((i|0)>=(j|0))fa();v=A+12|0;u=A+8|0;z=A;f=c[(b&p)+40>>2]|0;a:do if(!f){h=b+96|0;g=c[(h&p)>>2]|0;if((g|0)>(e|0)){f=(d|0)==1;e=(f&1^1)+e|0;if((e|0)<(g|0)){d=b+92|0;g=e;do{ei(c[((c[(d&p)>>2]|0)+(g*48|0)&p)+16>>2]|0);g=g+1|0}while((g|0)<(c[(h&p)>>2]|0))}c[(h&p)>>2]=e;if(f){if(e){f=0;break}f=c[(b&p)+68>>2]|0;g=c[(f&p)>>2]|0;if(!g){f=0;break}if((g|0)==14696)f=Gi(f,0,0)|0;else f=0;c[(b&p)+52>>2]=0;break}t=b+208|0;if((c[(t&p)>>2]|0)==0?(c[(c[(b&p)+64>>2]&p)>>2]|0)==0:0){f=0;break}if(!e)w=0;else w=(c[(b&p)+92>>2]|0)+((e+-1|0)*48|0)|0;s=(w|0)!=0;f=w+20|0;if(s){d=c[(f&p)>>2]|0;g=qg(512,0)|0;if(!g){f=7;break}fw(g|0,0,512)|0;c[(g&p)>>2]=d;y=g}else y=0;h=b+28|0;e=b+24|0;c[(e&p)>>2]=c[((s?f:h)&p)>>2];a[(b&n)+18>>0]=a[(b&n)+12>>0]|0;b:do if(s){h=b+72|0;e=h;k=c[(e&p)>>2]|0;e=c[(e&p)+4>>2]|0;if(!(c[(t&p)>>2]|0)){g=w+8|0;l=c[(g&p)>>2]|0;g=c[(g&p)+4>>2]|0;d=(l|0)==0&(g|0)==0;l=d?k:l;g=d?e:g;d=w;f=c[(d&p)>>2]|0;d=c[(d&p)+4>>2]|0;q=h;c[(q&p)>>2]=f;c[(q&p)+4>>2]=d;if((d|0)<(g|0)|(d|0)==(g|0)&f>>>0>>0)while(1){f=wq(b,h,y,1,1)|0;if(f){o=k;m=e;break b}d=h;f=c[(d&p)>>2]|0;d=c[(d&p)+4>>2]|0;if(!((d|0)<(g|0)|(d|0)==(g|0)&f>>>0>>0)){x=39;break}}else x=39}else x=38}else{r=c[(t&p)>>2]|0;if(!r){h=b+72|0;e=h;k=c[(e&p)>>2]|0;e=c[(e&p)+4>>2]|0;x=38;break}c[(e&p)>>2]=c[(h&p)>>2];if(a[(r&n)+44>>0]|0){k=r+68|0;m=c[(k&p)>>2]|0;l=r+32|0;e=c[(l&p)>>2]|0;g=r+52|0;f=(c[(e&p)>>2]|0)+0|0;d=g+48|0;do{a[(g&n)>>0]=a[(f&n)>>0]|0;g=g+1|0;f=f+1|0}while((g|0)<(d|0));g=c[(k&p)>>2]|0;f=g+1|0;if(f>>>0>m>>>0)f=0;else{h=f;while(1){g=g+34|0;f=g>>>12;if(!f)g=(c[(e&p)>>2]|0)+(g<<2)|0;else g=(c[(e+(f<<2)&p)>>2]|0)+((g&4095)<<2)|0;f=Bq(b,c[(g&p)>>2]|0)|0;g=h+1|0;if((f|0)!=0|g>>>0>m>>>0)break;q=h;e=c[(l&p)>>2]|0;h=g;g=q}g=c[(k&p)>>2]|0}if((m|0)!=(g|0))Aq(r)}else f=0;g=vl(c[(b&p)+204>>2]|0)|0;if(!((g|0)!=0&(f|0)==0))break a;while(1){f=g;g=c[(g&p)+12>>2]|0;f=Bq(b,c[(f&p)+20>>2]|0)|0;if(!((g|0)!=0&(f|0)==0))break a}}while(0);if((x|0)==38){d=h;c[(d&p)>>2]=0;c[(d&p)+4>>2]=0;d=0;f=0;x=39}c:do if((x|0)==39){o=b+80|0;q=b+148|0;r=b+152|0;if((d|0)<(e|0)|(d|0)==(e|0)&f>>>0>>0)while(1){c[(v&p)>>2]=0;f=vq(b,0,k,e,v,u)|0;d=c[(v&p)>>2]|0;if(!d){d=o;d=jw(c[(q&p)>>2]|0,0,c[(d&p)>>2]|0,c[(d&p)+4>>2]|0)|0;g=G;m=h;if((d|0)==(c[(m&p)>>2]|0)?(g|0)==(c[(m&p)+4>>2]|0):0){x=dw(k|0,e|0,d|0,g|0)|0;d=(c[(r&p)>>2]|0)+8|0;d=qw(x|0,G|0,d|0,((d|0)<0)<<31>>31|0)|0;c[(v&p)>>2]=d;x=46}else x=40}else x=46;d:do if((x|0)==46){x=0;if((f|0)==0&(d|0)!=0){m=0;while(1){g=h;l=c[(g&p)>>2]|0;g=c[(g&p)+4>>2]|0;if(!((g|0)<(e|0)|(g|0)==(e|0)&l>>>0>>0)){d=l;break d}f=wq(b,h,y,1,1)|0;m=m+1|0;if(!((f|0)==0&m>>>0>>0)){x=40;break}}}else x=40}while(0);if((x|0)==40){x=0;if(f){o=k;m=e;break c}d=h;g=c[(d&p)+4>>2]|0;d=c[(d&p)>>2]|0}if(!((g|0)<(e|0)|(g|0)==(e|0)&d>>>0>>0)){o=k;m=e;f=0;break}}else{o=k;m=e;f=0}}while(0);e:do if(!s){ei(y);if(f)break a}else{l=w+24|0;g=c[(l&p)>>2]|0;q=(c[(b&p)+152>>2]|0)+4|0;q=sw(q|0,((q|0)<0)<<31>>31|0,g|0,0)|0;k=z;c[(k&p)>>2]=q;c[(k&p)+4>>2]=G;k=c[(t&p)>>2]|0;if(!k){if(!f)x=57}else{e=w+28|0;d=w+40|0;f=k+104|0;if((c[(d&p)>>2]|0)==(c[(f&p)>>2]|0))d=c[(e&p)>>2]|0;else{c[(e&p)>>2]=0;c[(d&p)>>2]=c[(f&p)>>2];d=0}e=k+68|0;if(d>>>0<(c[(e&p)>>2]|0)>>>0){c[(e&p)>>2]=d;c[(k&p)+76>>2]=c[(w&p)+32>>2];c[(k&p)+80>>2]=c[(w&p)+36>>2];Aq(k);g=c[(l&p)>>2]|0;x=57}else x=57}f:do if((x|0)==57){d=b+52|0;while(1){if(g>>>0>=(c[(d&p)>>2]|0)>>>0)break;f=wq(b,z,y,0,1)|0;if(!f)g=g+1|0;else break f}ei(y);break e}while(0);ei(y);break a}while(0);f=h;c[(f&p)>>2]=o;c[(f&p)+4>>2]=m;f=0}else f=0}while(0);i=A;return f|0}function kp(d){d=d|0;var e=0,f=0,g=0,h=0,i=0,j=0,k=0;e=c[(d&p)>>2]|0;if(e){i=c[(d&p)+4>>2]|0;c[((c[(e&p)+4>>2]|0)&p)+4>>2]=c[(e&p)>>2];g=d+56|0;Wc(c[(g&p)>>2]|0);c[(g&p)>>2]=0;a[(d&n)+73>>0]=0;g=c[(d&p)+12>>2]|0;f=d+8|0;e=c[(f&p)>>2]|0;if(!g)c[(i&p)+8>>2]=e;else{c[(g&p)+8>>2]=e;e=c[(f&p)>>2]|0}if(e)c[(e&p)+12>>2]=g;h=d+76|0;e=b[(h&o)>>1]|0;if(e<<16>>16>=0){f=0;while(1){g=c[(d+(f<<2)&p)+120>>2]|0;if(g){Bg(c[(g&p)+68>>2]|0);e=b[(h&o)>>1]|0}if((f|0)<(e<<16>>16|0))f=f+1|0;else break}}if((a[(i&n)+20>>0]|0)==0?(j=i+12|0,k=c[(j&p)>>2]|0,(k|0)!=0):0){c[(j&p)>>2]=0;Bg(c[(k&p)+68>>2]|0)}Wc(c[(d&p)+20>>2]|0)}return}function lp(b){b=b|0;var e=0,f=0,g=0,h=0;h=c[(b&p)+200>>2]|0;e=c[3164]|0;if(e)nc[e&3]();f=c[(b&p)+136>>2]|0;if(f)do{e=f;f=c[(f&p)+12>>2]|0;Wc(e)}while((f|0)!=0);a[(b&n)+4>>0]=0;e=b+208|0;rn(c[(e&p)>>2]|0,d[(b&n)+9>>0]|0,c[(b&p)+152>>2]|0,h)|0;c[(e&p)>>2]=0;xn(b);if(!(a[(b&n)+15>>0]|0)){if((c[(c[(b&p)+64>>2]&p)>>2]|0)!=0?(g=Jo(b)|0,e=g&255,(e|0)==10|(e|0)==13):0){c[(b&p)+40>>2]=g;a[(b&n)+16>>0]=6}nl(b)}else No(b);e=c[3166]|0;if(e)nc[e&3]();e=c[(b&p)+64>>2]|0;f=c[(e&p)>>2]|0;if(f){lc[c[(f&p)+4>>2]&127](e)|0;c[(e&p)>>2]=0}f=c[(b&p)+60>>2]|0;e=c[(f&p)>>2]|0;if(e){lc[c[(e&p)+4>>2]&127](f)|0;c[(f&p)>>2]=0}$k(h);cc[c[8892>>2]&31](c[((c[(b&p)+204>>2]|0)&p)+40>>2]|0);Wc(b);return}function mp(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=c[(a&p)+4>>2]|0;h=qg(g,((g|0)<0)<<31>>31)|0;do if(h){fw(h|0,0,g|0)|0;g=tc[c[(a&p)+24>>2]&31](a,b,h,e&556927,f)|0;if(!g){c[(d&p)>>2]=h;g=0;break}else{Wc(h);break}}else g=7;while(0);return g|0}function np(b){b=b|0;var d=0,e=0,f=0;d=b+16|0;e=b+12|0;f=b+10|0;if(!(Tl(c[(d&p)>>2]|0,b,c[(e&p)>>2]|0,a[(f&n)>>0]|0)|0))d=0;else{d=(Ul(c[(d&p)>>2]|0,b,c[(e&p)>>2]|0,a[(f&n)>>0]|0)|0)==0;d=d?4:8}return d|0}function op(d){d=d|0;var f=0,g=0;g=d+8|0;f=b[(g&o)>>1]|0;do if(!(f&13))if(!(Ul(c[(d&p)+16>>2]|0,d,c[(d&p)+12>>2]|0,a[(d&n)+10>>0]|0)|0)){f=((e[(g&o)>>1]|0)&48640|4)&65535;b[(g&o)>>1]=f;break}else{h[(d&q)>>3]=+Ug(d);b[(g&o)>>1]=(e[(g&o)>>1]|0)&48640|8;dm(d);f=b[(g&o)>>1]|0;break}while(0);b[(g&o)>>1]=f&65517;return}function pp(d,e,f,g){d=d|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0;w=i;i=i+80|0;if((i|0)>=(j|0))fa();u=w+40|0;v=w;h=f+4|0;if((a[(d&n)+10>>0]|0)!=(a[(h&n)>>0]|0)){t=c[(d&p)+32>>2]|0;q=u+8|0;b[(q&o)>>1]=1;c[(u&p)+32>>2]=t;r=u+24|0;c[(r&p)>>2]=0;s=v+8|0;b[(s&o)>>1]=1;c[(v&p)+32>>2]=t;t=v+24|0;c[(t&p)>>2]=0;Zl(u,d,4096);Zl(v,e,4096);d=Sg(u,a[(h&n)>>0]|0)|0;m=(d|0)==0;if(m)l=0;else l=c[(u&p)+12>>2]|0;h=Sg(v,a[(h&n)>>0]|0)|0;k=(h|0)==0;if(k)e=0;else e=c[(v&p)+12>>2]|0;d=tc[c[(f&p)+12>>2]&31](c[(f&p)+8>>2]|0,l,d,e,h)|0;if(!((b[(q&o)>>1]&9312)==0&(c[(r&p)>>2]|0)==0))Qg(u);if(!((b[(s&o)>>1]&9312)==0&(c[(t&p)>>2]|0)==0))Qg(v);if((m|k)&(g|0)!=0)a[(g&n)>>0]=7}else d=tc[c[(f&p)+12>>2]&31](c[(f&p)+8>>2]|0,c[(d&p)+12>>2]|0,c[(d&p)+16>>2]|0,c[(e&p)+12>>2]|0,c[(e&p)+16>>2]|0)|0;i=w;return d|0}function qp(a,b){a=a|0;b=b|0;var d=0,e=0;e=c[(a&p)+12>>2]|0;d=c[(b&p)+12>>2]|0;a=Zv(c[(a&p)+16>>2]|0,c[(b&p)+16>>2]|0,(e|0)>(d|0)?d:e)|0;return ((a|0)==0?e-d|0:a)|0}function rp(f,g,h){f=f|0;g=g|0;h=h|0;var k=0,l=0,m=0,q=0,r=0;r=i;i=i+16|0;if((i|0)>=(j|0))fa();q=r;do if(!(a[(f&n)+3>>0]|0)){if(a[(f&n)+4>>0]|0){b[(h&o)+20>>1]=((sp(g+4|0,h)|0)&255)+4;l=h+8|0;c[(l&p)>>2]=0;c[(l&p)+4>>2]=0;c[(l&p)+8>>2]=0;break}m=d[(f&n)+7>>0]|0;l=g+m|0;k=a[(l&n)>>0]|0;if(k<<24>>24>-1){l=k&255;c[(q&p)>>2]=l;k=1}else{k=mm(l,q)|0;l=c[(q&p)>>2]|0}q=h;c[(q&p)>>2]=l;c[(q&p)+4>>2]=0;m=(k&255)+m|0;k=12}else{k=a[(g&n)>>0]|0;if(k<<24>>24>-1){l=k&255;c[(q&p)>>2]=l;k=1}else{k=mm(g,q)|0;l=c[(q&p)>>2]|0}m=k&255;m=((sp(g+m|0,h)|0)&255)+m|0;k=12}while(0);do if((k|0)==12){c[(h&p)+12>>2]=l;c[(h&p)+8>>2]=g+m;k=e[(f&o)+10>>1]|0;if(l>>>0>k>>>0){q=b[(f&o)+12>>1]|0;g=q&65535;l=(((l-g|0)>>>0)%(((c[((c[(f&p)+52>>2]|0)&p)+36>>2]|0)+-4|0)>>>0)|0)+g|0;k=(l|0)>(k|0)?q:l&65535;b[(h&o)+16>>1]=k;k=m+(k&65535)|0;b[(h&o)+18>>1]=k;b[(h&o)+20>>1]=k+4;break}else{k=l+m|0;b[(h&o)+20>>1]=(k&65532)>>>0<4?4:k&65535;b[(h&o)+16>>1]=l;b[(h&o)+18>>1]=0;break}}while(0);i=r;return}function sp(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0;f=a[(b&n)>>0]|0;g=f&255;do if(g&128){f=d[(b&n)+1>>0]|0;if(!(f&128)){h=e;c[(h&p)>>2]=f|g<<7&16256;c[(h&p)+4>>2]=0;f=2;break}h=d[(b&n)+2>>0]|0;g=(h|g<<14)&2080895;if(!(h&128)){h=e;c[(h&p)>>2]=g|f<<7&16256;c[(h&p)+4>>2]=0;f=3;break}h=d[(b&n)+3>>0]|0;f=(h|f<<14)&2080895;if(!(h&128)){h=e;c[(h&p)>>2]=f|g<<7;c[(h&p)+4>>2]=0;f=4;break}k=d[(b&n)+4>>0]|0;h=k|g<<14;if(!(k&128)){i=e;c[(i&p)>>2]=h|f<<7;c[(i&p)+4>>2]=g>>>18;f=5;break}j=f|g<<7;g=d[(b&n)+5>>0]|0;i=g|f<<14;if(!(g&128)){f=e;c[(f&p)>>2]=i|h<<7&266354560;c[(f&p)+4>>2]=j>>>18;f=6;break}f=d[(b&n)+6>>0]|0;g=f|h<<14;if(!(f&128)){f=e;c[(f&p)>>2]=g&-266354561|i<<7&266354560;c[(f&p)+4>>2]=j>>>11;f=7;break}f=g&2080895;h=d[(b&n)+7>>0]|0;g=h|i<<14;if(!(h&128)){h=e;c[(h&p)>>2]=g&-266354561|f<<7;c[(h&p)+4>>2]=j>>>4;f=8;break}else{h=e;c[(h&p)>>2]=g<<8&532709120|f<<15|(d[(b&n)+8>>0]|0);c[(h&p)+4>>2]=k>>>3&15|j<<4;f=9;break}}else{g=e;c[(g&p)>>2]=f&255;c[(g&p)+4>>2]=0;f=1}while(0);return f|0}function tp(a,e,f){a=a|0;e=e|0;f=f|0;var g=0,l=0,m=0,r=0,s=0;r=i;i=i+16|0;if((i|0)>=(j|0))fa();l=r+8|0;m=r;g=(d[(a&n)+1>>0]|0)<<16|(d[(a&n)>>0]|0)<<24|(d[(a&n)+2>>0]|0)<<8|(d[(a&n)+3>>0]|0);a=(d[(a&n)+5>>0]|0)<<16|(d[(a&n)+4>>0]|0)<<24|(d[(a&n)+6>>0]|0)<<8|(d[(a&n)+7>>0]|0);s=f;c[(s&p)>>2]=a;c[(s&p)+4>>2]=g;if((e|0)==6)a=4;else{c[(k&p)>>2]=a;c[(k&p)+4>>2]=g;h[(l&q)>>3]=+h[(k&q)>>3];h[(m&q)>>3]=+h[(l&q)>>3];a=+h[(l&q)>>3]!=+h[(m&q)>>3]?1:8}b[(f&o)+8>>1]=a;i=r;return}function up(b,c,e){b=b|0;c=c|0;e=e|0;var f=0,g=0,h=0,k=0;k=i;i=i+16|0;if((i|0)>=(j|0))fa();h=k;if(!(e>>>0>16777215|(e|0)==16777215&c>>>0>4294967295)){f=c;g=0;while(1){c=g+1|0;a[(h+g&n)>>0]=f|128;f=mw(f|0,e|0,7)|0;e=G;if((f|0)==0&(e|0)==0){e=g;break}else g=c}a[(h&n)>>0]=(d[(h&n)>>0]|0)&127;if((e|0)>-1){f=0;while(1){a[(b+f&n)>>0]=a[(h+e&n)>>0]|0;if((e|0)>0){f=f+1|0;e=e+-1|0}else break}}}else{a[(b&n)+8>>0]=c;c=mw(c|0,e|0,8)|0;f=G;e=7;while(1){a[(b+e&n)>>0]=c|128;c=mw(c|0,f|0,7)|0;if((e|0)<=0){c=9;break}else{f=G;e=e+-1|0}}}i=k;return c|0}function vp(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0;k=i;i=i+16|0;if((i|0)>=(j|0))fa();h=k;if((c[(b&p)+44>>2]|0)>>>0>=d>>>0){f=dl(b,d,e,f)|0;if(!f){f=c[(e&p)>>2]|0;if((a[(f&n)>>0]|0)==0?(g=$p(f)|0,(g|0)!=0):0){f=c[(e&p)>>2]|0;if(f)Bg(c[(f&p)+68>>2]|0)}else g=0}else g=f}else{c[(h&p)>>2]=54788;c[(h&p)+4>>2]=10788;bd(11,13600,h);g=11}i=k;return g|0}function wp(b){b=b|0;var d=0,e=0,f=0;if((a[(b&n)+12>>0]|0)==0?(d=b+60|0,e=c[(d&p)>>2]|0,((lc[c[((c[(e&p)>>2]|0)&p)+48>>2]&127](e)|0)&4096|0)==0):0){d=c[(d&p)>>2]|0;e=c[((c[(d&p)>>2]|0)&p)+44>>2]|0;if(e){d=lc[e&127](d)|0;if((d|0)<32)d=512;else f=6}else{d=4096;f=6}if((f|0)==6)d=(d|0)>65536?65536:d;c[(b&p)+148>>2]=d}else c[(b&p)+148>>2]=512;return}function xp(d,e){d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0;j=d+40|0;do if(!(c[(j&p)>>2]|0)){i=a[(d&n)+20>>0]|0;if(i<<24>>24){if(i&3){f=0;break}if(b[(e&o)+24>>1]&4){f=0;break}}c[(e&p)+12>>2]=0;do if(!(c[(d&p)+208>>2]|0)){if(!((b[(e&o)+24>>1]&4)==0?(a[(d&n)+16>>0]|0)!=3:0))k=11;if((k|0)==11?(g=zl(d,1)|0,(g|0)!=0):0){f=g;break}if(((c[(e&p)+20>>2]|0)>>>0>(c[(d&p)+24>>2]|0)>>>0?(Uo(e)|0)!=0:0)?(h=Vo(e)|0,(h|0)!=0):0){f=h;break}f=Al(d,e)|0;k=16}else{if((Uo(e)|0)!=0?(f=Vo(e)|0,(f|0)!=0):0)break;f=wl(d,e,0,0)|0;k=16}while(0);if((k|0)==16)if(!f){xl(e);f=0;break}g=f&255;if((g|0)==10|(g|0)==13){c[(j&p)>>2]=f;a[(d&n)+16>>0]=6}}else f=0;while(0);return f|0}function yp(d){d=d|0;var e=0;e=c[(d&p)+8>>2]|0;if((a[(e&n)>>0]|0)!=0?(a[(e&n)>>0]=0,(b[(d&o)+26>>1]|0)>1):0)$p(e)|0;return}function zp(b,e,f,g,h){b=b|0;e=e|0;f=f|0;g=g|0;h=h|0;var k=0,l=0,m=0,o=0,q=0;q=i;i=i+16|0;if((i|0)>=(j|0))fa();o=q;m=q+8|0;do if(!(c[(h&p)>>2]|0)){if(!e){c[(o&p)>>2]=53856;c[(o&p)+4>>2]=10788;bd(11,13600,o);c[(h&p)>>2]=11;break}if(e>>>0<2)k=0;else{k=e+-2|0;k=k-((k>>>0)%(((((c[(b&p)+36>>2]|0)>>>0)/5|0)+1|0)>>>0)|0)|0;k=((k+1|0)==(((c[2514]|0)>>>0)/((c[(b&p)+32>>2]|0)>>>0)|0|0)?3:2)+k|0}l=zg(c[(b&p)>>2]|0,k,m,0)|0;if(l){c[(h&p)>>2]=l;break}e=(e-k|0)*5|0;l=e+-5|0;do if((l|0)>=0){k=c[(m&p)>>2]|0;b=c[(k&p)+4>>2]|0;l=b+l|0;if((a[(l&n)>>0]|0)==f<<24>>24?(d[(b+e+-3&n)>>0]<<16|d[(b+e+-4&n)>>0]<<24|d[(b+e+-2&n)>>0]<<8|d[(b+e+-1&n)>>0]|0)==(g|0):0)break;m=Gg(k)|0;c[(h&p)>>2]=m;if(!m){a[(l&n)>>0]=f;a[(b+e+-4&n)>>0]=g>>>24;a[(b+e+-3&n)>>0]=g>>>16;a[(b+e+-2&n)>>0]=g>>>8;a[(b+e+-1&n)>>0]=g}}else{c[(o&p)>>2]=53867;c[(o&p)+4>>2]=10788;bd(11,13600,o);c[(h&p)>>2]=11;k=c[(m&p)>>2]|0}while(0);if(k)Bg(k)}while(0);i=q;return}function Ap(a,b,c){a=a|0;b=b|0;c=c|0;return Km(a,b,c,0)|0}function Bp(b,f,g){b=b|0;f=f|0;g=g|0;var h=0,i=0,j=0,k=0,l=0,m=0;j=d[(f&n)>>0]&63;h=f+j|0;l=c[(g&p)+8>>2]|0;k=c[(l&p)>>2]|0;l=c[(l&p)+4>>2]|0;switch(d[(f&n)+1>>0]|0){case 3:{h=d[(f+j&n)+1>>0]<<8|a[(h&n)>>0]<<16|d[(f+j&n)+2>>0];i=((h|0)<0)<<31>>31;m=11;break}case 4:{h=d[(f+j&n)+1>>0]<<16|d[(h&n)>>0]<<24|d[(f+j&n)+2>>0]<<8|d[(f+j&n)+3>>0];i=((h|0)<0)<<31>>31;m=11;break}case 8:{i=0;h=0;m=11;break}case 5:{i=a[(h&n)>>0]<<8|d[(f+j&n)+1>>0];h=d[(f+j&n)+3>>0]<<16|d[(f+j&n)+2>>0]<<24|d[(f+j&n)+4>>0]<<8|d[(f+j&n)+5>>0];m=11;break}case 7:case 0:{h=Km(b,f,g,0)|0;break}case 6:{i=d[(f+j&n)+1>>0]<<16|d[(h&n)>>0]<<24|d[(f+j&n)+2>>0]<<8|d[(f+j&n)+3>>0];h=d[(f+j&n)+5>>0]<<16|d[(f+j&n)+4>>0]<<24|d[(f+j&n)+6>>0]<<8|d[(f+j&n)+7>>0];m=11;break}case 9:{i=0;h=1;m=11;break}case 2:{h=a[(h&n)>>0]<<8|d[(f+j&n)+1>>0];i=((h|0)<0)<<31>>31;m=11;break}case 1:{h=a[(h&n)>>0]|0;i=((h|0)<0)<<31>>31;m=11;break}default:h=Km(b,f,g,0)|0}do if((m|0)==11){if((l|0)>(i|0)|(l|0)==(i|0)&k>>>0>h>>>0){h=c[(g&p)+12>>2]|0;break}if((l|0)<(i|0)|(l|0)==(i|0)&k>>>0>>0){h=c[(g&p)+16>>2]|0;break}if((e[(g&o)+4>>1]|0)>1){h=Km(b,f,g,1)|0;break}else{h=a[(g&n)+6>>0]|0;break}}while(0);return h|0}function Cp(b,f,g){b=b|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,q=0,r=0;r=i;i=i+16|0;if((i|0)>=(j|0))fa();q=r;l=r+8|0;h=f+1|0;k=a[(h&n)>>0]|0;if(k<<24>>24>-1){h=k&255;c[(l&p)>>2]=h}else{mm(h,l)|0;h=c[(l&p)>>2]|0}do if((h|0)>=12){if(!(h&1)){h=c[(g&p)+16>>2]|0;break}l=d[(f&n)>>0]|0;m=(h+-12|0)/2|0;if((l+m|0)>(b|0)){c[(q&p)>>2]=68550;c[(q&p)+4>>2]=10788;bd(11,13600,q);a[(g&n)+7>>0]=11;h=0;break}h=c[(g&p)+8>>2]|0;k=c[(h&p)+12>>2]|0;h=Zv(f+l|0,c[(h&p)+16>>2]|0,(m|0)>(k|0)?k:m)|0;if(h)if((h|0)>0){h=c[(g&p)+16>>2]|0;break}else{h=c[(g&p)+12>>2]|0;break}if((m|0)==(k|0))if((e[(g&o)+4>>1]|0)>1){h=Km(b,f,g,1)|0;break}else{h=a[(g&n)+6>>0]|0;break}else if((m-k|0)>0){h=c[(g&p)+16>>2]|0;break}else{h=c[(g&p)+12>>2]|0;break}}else h=c[(g&p)+12>>2]|0;while(0);i=r;return h|0}function Dp(f,g){f=f|0;g=g|0;var h=0,i=0,j=0,k=0,l=0,m=0,q=0,r=0;m=f+73|0;h=a[(m&n)>>0]|0;do if(h<<24>>24!=1){if((h&255)>2){h=Kn(f)|0;if(h)break;h=a[(m&n)>>0]|0}if(!(h<<24>>24)){c[(g&p)>>2]=1;h=0;break}h=f+68|0;i=c[(h&p)>>2]|0;if((i|0)!=0?(a[(m&n)>>0]=1,c[(h&p)>>2]=0,(i|0)>0):0)h=0;else q=9}else q=9;while(0);do if((q|0)==9){l=f+76|0;h=b[(l&o)>>1]|0;i=c[(f+(h<<2)&p)+120>>2]|0;h=f+(h<<1)+78|0;j=(b[(h&o)>>1]|0)+1<<16>>16;b[(h&o)>>1]=j;h=(a[(i&n)+5>>0]|0)!=0;if((j&65535)<(e[(i&o)+18>>1]|0)){if(h){h=0;break}h=Vm(f)|0;break}if(!h){h=d[(i&n)+6>>0]|0;i=c[(i&p)+56>>2]|0;h=rm(f,d[(i+h&n)+9>>0]<<16|d[(i+h&n)+8>>0]<<24|d[(i+h&n)+10>>0]<<8|d[(i+h&n)+11>>0])|0;if(h)break;h=Vm(f)|0;break}j=f+44|0;k=f+72|0;i=b[(l&o)>>1]|0;do{if(!(i<<16>>16)){q=15;break}h=c[(f+(i<<16>>16<<2)&p)+120>>2]|0;if(h){Bg(c[(h&p)+68>>2]|0);i=b[(l&o)>>1]|0}i=i+-1<<16>>16;b[(l&o)>>1]=i;b[(j&o)>>1]=0;a[(k&n)>>0]=d[(k&n)>>0]&249;r=i<<16>>16;h=c[(f+(r<<2)&p)+120>>2]|0}while((e[(f+(r<<1)&o)+78>>1]|0)>=(e[(h&o)+18>>1]|0));if((q|0)==15){c[(g&p)>>2]=1;a[(m&n)>>0]=0;h=0;break}if(!(a[(h&n)+2>>0]|0))h=0;else h=Dm(f,g)|0}while(0);return h|0}function Ep(f,g){f=f|0;g=g|0;var h=0,i=0,j=0,k=0,l=0,m=0,q=0,r=0,s=0;s=f+73|0;h=a[(s&n)>>0]|0;do if(h<<24>>24!=1){if((h&255)>2){h=Kn(f)|0;if(h)break;h=a[(s&n)>>0]|0}if(!(h<<24>>24)){c[(g&p)>>2]=1;h=0;break}h=f+68|0;i=c[(h&p)>>2]|0;if((i|0)!=0?(a[(s&n)>>0]=1,c[(h&p)>>2]=0,(i|0)<0):0)h=0;else j=9}else j=9;while(0);a:do if((j|0)==9){r=f+76|0;k=b[(r&o)>>1]|0;l=k<<16>>16;j=c[(f+(l<<2)&p)+120>>2]|0;i=f+(l<<1)+78|0;h=b[(i&o)>>1]|0;if(!(a[(j&n)+5>>0]|0)){g=c[(j&p)+56>>2]|0;h=(h&65535)<<1;s=c[(j&p)+64>>2]|0;h=(d[(s+h&n)>>0]<<8|d[(s+(h|1)&n)>>0])&e[(j&o)+20>>1];h=rm(f,d[(g+h&n)+1>>0]<<16|d[(g+h&n)>>0]<<24|d[(g+h&n)+2>>0]<<8|d[(g+h&n)+3>>0])|0;if(h)break;h=Fp(f)|0;break}b:do if(!(h<<16>>16)){m=f+44|0;q=f+72|0;j=l;while(1){if(!(k<<16>>16))break;i=c[(f+(j<<2)&p)+120>>2]|0;if(!i)i=k;else{Bg(c[(i&p)+68>>2]|0);i=b[(r&o)>>1]|0}k=i+-1<<16>>16;b[(r&o)>>1]=k;b[(m&o)>>1]=0;a[(q&n)>>0]=d[(q&n)>>0]&249;j=k<<16>>16;i=f+(j<<1)+78|0;h=b[(i&o)>>1]|0;if(h<<16>>16)break b}a[(s&n)>>0]=0;c[(g&p)>>2]=1;h=0;break a}while(0);b[(i&o)>>1]=h+-1<<16>>16;s=c[(f+(b[(r&o)>>1]<<2)&p)+120>>2]|0;if((a[(s&n)+2>>0]|0)!=0?(a[(s&n)+5>>0]|0)==0:0)h=Em(f,g)|0;else h=0}while(0);return h|0}function Fp(f){f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0;i=f+76|0;do{h=b[(i&o)>>1]|0;g=c[(f+(h<<2)&p)+120>>2]|0;if(a[(g&n)+5>>0]|0){j=4;break}k=d[(g&n)+6>>0]|0;l=c[(g&p)+56>>2]|0;k=d[(l+k&n)+9>>0]<<16|d[(l+k&n)+8>>0]<<24|d[(l+k&n)+10>>0]<<8|d[(l+k&n)+11>>0];b[(f+(h<<1)&o)+78>>1]=b[(g&o)+18>>1]|0;g=rm(f,k)|0}while((g|0)==0);if((j|0)==4){b[(f+(h<<1)&o)+78>>1]=(e[(g&o)+18>>1]|0)+65535;g=0}return g|0}function Gp(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 k=0,l=0,m=0,n=0,q=0;q=i;i=i+224|0;if((i|0)>=(j|0))fa();m=q;k=q+8|0;c[(k&p)>>2]=0;do if(d){l=a+16|0;n=Fm(c[(l&p)>>2]|0,q+16|0,200,k)|0;if(n){Gm(c[(l&p)>>2]|0,e,d,n);if(!(b[(n&o)+4>>1]|0)){mg(c[((c[(l&p)>>2]|0)&p)+12>>2]|0,c[(k&p)>>2]|0);c[(m&p)>>2]=53713;c[(m&p)+4>>2]=10788;bd(11,13600,m);k=11;break}l=c[(k&p)>>2]|0;k=Cm(a,n,e,f,g,h)|0;if(l)mg(c[((c[(a&p)+16>>2]|0)&p)+12>>2]|0,l)}else k=7}else k=Cm(a,0,e,f,g,h)|0;while(0);i=q;return k|0}function Hp(a,f,g){a=a|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0,v=0;v=i;i=i+48|0;if((i|0)>=(j|0))fa();u=v+24|0;h=v;s=v+36|0;t=v+32|0;q=c[(a&p)+52>>2]|0;rp(a,f,h);b[(g&o)>>1]=b[(h&o)+20>>1]|0;g=b[(h&o)+18>>1]|0;a:do if(g<<16>>16){k=g&65535;l=f+(k+3)|0;if(l>>>0>((c[(a&p)+56>>2]|0)+(e[(a&o)+20>>1]|0)|0)>>>0){c[(u&p)>>2]=58720;c[(u&p)+4>>2]=10788;bd(11,13600,u);g=11;break}g=(c[(q&p)+36>>2]|0)+-4|0;g=(((c[(h&p)+12>>2]|0)+-1+g-(e[(h&o)+16>>1]|0)|0)>>>0)/(g>>>0)|0;if(g){m=q+44|0;a=g;k=d[(f+k&n)+1>>0]<<16|d[(f+k&n)>>0]<<24|d[(f+k&n)+2>>0]<<8|d[(l&n)>>0];while(1){a=a+-1|0;c[(s&p)>>2]=0;c[(t&p)>>2]=0;if(k>>>0<2)break;if(k>>>0>(c[(m&p)>>2]|0)>>>0)break;f=(a|0)==0;if(!f){g=Mp(q,k,t,s)|0;if(g)break a;g=c[(t&p)>>2]|0;if(g)l=13;else l=12}else l=12;if((l|0)==12){g=Yp(q,k)|0;c[(t&p)>>2]=g;if(!g){g=0;l=15}else l=13}if((l|0)==13){l=0;if((b[((c[(g&p)+68>>2]|0)&o)+26>>1]|0)==1)l=15;else{c[(u&p)>>2]=58754;c[(u&p)+4>>2]=10788;bd(11,13600,u);g=11}}if((l|0)==15)g=Ym(q,g,k)|0;h=c[(t&p)>>2]|0;if((h|0)!=0?(r=c[(h&p)+68>>2]|0,(r|0)!=0):0)Bg(r);if(g)break a;if(f){g=0;break a}else k=c[(s&p)>>2]|0}c[(u&p)>>2]=58734;c[(u&p)+4>>2]=10788;bd(11,13600,u);g=11}else g=0}else g=0;while(0);i=v;return g|0}function Ip(f,g,h,k){f=f|0;g=g|0;h=h|0;k=k|0;var l=0,m=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0;z=i;i=i+16|0;if((i|0)>=(j|0))fa();m=z;do if(!(c[(k&p)>>2]|0)){v=c[(f&p)+56>>2]|0;w=g<<1;x=c[(f&p)+64>>2]|0;y=x+w|0;l=(d[(y&n)>>0]|0)<<8|(d[(x+(w|1)&n)>>0]|0);q=f+6|0;r=d[(q&n)>>0]|0;s=v+(r+5)|0;t=v+(r+6)|0;if(l>>>0>=((d[(s&n)>>0]|0)<<8|(d[(t&n)>>0]|0))>>>0?(u=f+52|0,(l+h|0)>>>0<=(c[((c[(u&p)>>2]|0)&p)+36>>2]|0)>>>0):0){h=Cq(f,l&65535,h&65535)|0;if(h){c[(k&p)>>2]=h;break}h=f+18|0;l=(b[(h&o)>>1]|0)+-1<<16>>16;b[(h&o)>>1]=l;if(!(l<<16>>16)){k=v+(r+1)|0;a[(k&n)>>0]=0;a[(k&n)+1>>0]=0;a[(k&n)+2>>0]=0;a[(k&n)+3>>0]=0;a[(v+r&n)+7>>0]=0;a[(s&n)>>0]=(c[((c[(u&p)>>2]|0)&p)+36>>2]|0)>>>8;a[(t&n)>>0]=c[((c[(u&p)>>2]|0)&p)+36>>2];b[(f&o)+16>>1]=(c[((c[(u&p)>>2]|0)&p)+36>>2]|0)+65528-(d[(q&n)>>0]|0)-(d[(f&n)+7>>0]|0);break}else{lw(y|0,x+(w+2)|0,(l&65535)-g<<1|0)|0;a[(v+r&n)+3>>0]=(e[(h&o)>>1]|0)>>>8;a[(v+r&n)+4>>0]=b[(h&o)>>1];v=f+16|0;b[(v&o)>>1]=(e[(v&o)>>1]|0)+2;break}}c[(m&p)>>2]=58991;c[(m&p)+4>>2]=10788;bd(11,13600,m);c[(k&p)>>2]=11}while(0);i=z;return}function Jp(f,g,h,k,l,m,q){f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;m=m|0;q=q|0;var 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;G=i;i=i+16|0;if((i|0)>=(j|0))fa();s=G;C=G+12|0;y=G+8|0;a:do if(!(c[(q&p)>>2]|0)){r=f+1|0;if((a[(r&n)>>0]|0)==0?(E=k+2|0,F=f+16|0,(E|0)<=(e[(F&o)>>1]|0)):0){l=Gg(c[(f&p)+68>>2]|0)|0;if(l){c[(q&p)>>2]=l;break}z=c[(f&p)+56>>2]|0;t=e[(f&o)+14>>1]|0;A=f+18|0;B=e[(A&o)>>1]<<1;v=g<<1;w=t+v|0;x=f+6|0;l=d[(x&n)>>0]|0;c[(C&p)>>2]=0;g=B+t|0;t=z+(l+5)|0;u=z+(l+6)|0;r=((d[(t&n)>>0]<<8|d[(u&n)>>0])+65535&65535)+1|0;b:do if((g|0)>(r|0)){c[(s&p)>>2]=54326;c[(s&p)+4>>2]=10788;bd(11,13600,s);l=11}else{s=g+2|0;do if((s|0)<=(r|0)){if((a[(z+l&n)+1>>0]|0)==0?(a[(z+l&n)+2>>0]|0)==0:0){D=20;break}c[(y&p)>>2]=0;g=Dq(f,k,C,y)|0;l=c[(C&p)>>2]|0;if(l)break b;if(!(c[(y&p)>>2]|0))if(!g)D=20;else r=g-z|0;else D=21}else D=20;while(0);if((D|0)==20)if((s+k|0)>(r|0))D=21;else D=23;if((D|0)==21){l=Eq(f)|0;c[(C&p)>>2]=l;if(l)break;r=((d[(t&n)>>0]<<8|d[(u&n)>>0])+65535&65535)+1|0;D=23}if((D|0)==23){r=r-k|0;a[(t&n)>>0]=r>>>8;a[(u&n)>>0]=r}b[(A&o)>>1]=(b[(A&o)>>1]|0)+1<<16>>16;b[(F&o)>>1]=(e[(F&o)>>1]|0)-E;l=z+r|0;kw(l|0,h|0,k|0)|0;if(m){a[(l&n)>>0]=m>>>24;a[(z+r&n)+1>>0]=m>>>16;a[(z+r&n)+2>>0]=m>>>8;a[(z+r&n)+3>>0]=m}m=z+w|0;lw(z+(w+2)|0,m|0,B-v|0)|0;a[(m&n)>>0]=r>>>8;a[(z+w&n)+1>>0]=r;a[(z+(d[(x&n)>>0]|0)&n)+3>>0]=(e[(A&o)>>1]|0)>>>8;a[(z+(d[(x&n)>>0]|0)&n)+4>>0]=b[(A&o)>>1];if(!(a[((c[(f&p)+52>>2]|0)&n)+17>>0]|0))break a;Fq(f,h,q);break a}while(0);c[(q&p)>>2]=l;break}if(!l)l=h;else kw(l|0,h|0,k|0)|0;if(m){a[(l&n)>>0]=m>>>24;a[(l&n)+1>>0]=m>>>16;a[(l&n)+2>>0]=m>>>8;a[(l&n)+3>>0]=m}q=a[(r&n)>>0]|0;a[(r&n)>>0]=q+1<<24>>24;q=q&255;c[(f+(q<<2)&p)+32>>2]=l;b[(f+(q<<1)&o)+22>>1]=g}while(0);i=G;return}function Kp(f){f=f|0;var g=0,h=0,k=0,l=0,m=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,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;Ra=i;i=i+240|0;if((i|0)>=(j|0))fa();Qa=Ra+24|0;Na=Ra+200|0;Da=Ra+188|0;Ca=Ra+168|0;Ba=Ra+160|0;Ea=Ra+136|0;Fa=Ra+116|0;Pa=Ra+96|0;Ka=Ra+92|0;Aa=Ra+229|0;za=Ra+72|0;ya=Ra+52|0;xa=Ra+206|0;Ja=Ra+48|0;Ga=Ra;Ia=Ra+44|0;Ma=Ra+40|0;La=Ra+36|0;Ha=Ra+32|0;Oa=Ra+204|0;wa=Ra+216|0;ha=f+4|0;pa=(c[((c[(ha&p)>>2]|0)&p)+36>>2]<<1>>>0)/3|0;qa=f+76|0;ta=f+74|0;ua=wa+4|0;va=wa;ia=f+124|0;na=f+78|0;oa=f+80|0;l=b[(qa&o)>>1]|0;ga=0;while(1){m=l<<16>>16;q=c[(f+(m<<2)&p)+120>>2]|0;r=q+1|0;h=(a[(r&n)>>0]|0)==0;if(!(l<<16>>16)){if(h){h=ga;g=0;break}c[(Na&p)>>2]=0;c[(Da&p)>>2]=0;k=c[(q&p)+52>>2]|0;g=Gg(c[(q&p)+68>>2]|0)|0;c[(Qa&p)>>2]=g;do if(!g){h=q+72|0;c[(Qa&p)>>2]=ip(k,Na,Da,c[(h&p)>>2]|0,0)|0;l=c[(Na&p)>>2]|0;Gq(q,l,Qa);if(a[(k&n)+17>>0]|0)zp(k,c[(Da&p)>>2]|0,5,c[(h&p)>>2]|0,Qa);g=c[(Qa&p)>>2]|0;if(!g){kw(l+22|0,q+22|0,d[(r&n)>>0]<<1|0)|0;kw(l+32|0,q+32|0,d[(r&n)>>0]<<2|0)|0;a[(l&n)+1>>0]=a[(r&n)>>0]|0;pl(q,d[(c[(l&p)+56>>2]&n)>>0]&247);g=d[(q&n)+6>>0]|0;ca=c[(q&p)+56>>2]|0;ba=c[(Da&p)>>2]|0;a[(ca+g&n)+8>>0]=ba>>>24;a[(ca+g&n)+9>>0]=ba>>>16;a[(ca+g&n)+10>>0]=ba>>>8;a[(ca+g&n)+11>>0]=ba;c[(ia&p)>>2]=l;g=0;break}c[(ia&p)>>2]=0;if(l)Bg(c[(l&p)+68>>2]|0)}else c[(ia&p)>>2]=0;while(0);if(g){h=ga;break}b[(qa&o)>>1]=1;b[(na&o)>>1]=0;b[(oa&o)>>1]=0;l=c[(ia&p)>>2]|0;k=l+1|0;if(!(a[(k&n)>>0]|0)){h=1;m=1;ea=15}else{s=1;m=1;r=k}}else if(h){h=l;l=q;k=r;ea=15}else{s=l;l=q}if((ea|0)==15){ea=0;if((e[(l&o)+16>>1]|0)>>>0>pa>>>0){s=h;r=k}else{h=ga;g=0;break}}k=m+-1|0;da=c[(f+(k<<2)&p)+120>>2]|0;k=b[(f+(k<<1)&o)+78>>1]|0;t=k&65535;g=Gg(c[(da&p)+68>>2]|0)|0;do if(!g){if(((((a[(l&n)+3>>0]|0)!=0?(a[(r&n)>>0]|0)==1:0)?(ja=b[(l&o)+22>>1]|0,ka=l+18|0,ja<<16>>16==(b[(ka&o)>>1]|0)):0)?(la=da+72|0,(c[(la&p)>>2]|0)!=1):0)?(ma=da+18|0,(b[(ma&o)>>1]|0)==k<<16>>16):0){k=c[(l&p)+52>>2]|0;if(!(ja<<16>>16)){c[(Qa&p)>>2]=59423;c[(Qa&p)+4>>2]=10788;bd(11,13600,Qa);h=ga;g=11;break}ca=ip(k,Ia,La,0,0)|0;c[(Ma&p)>>2]=ca;if(!ca){h=c[(l&p)+32>>2]|0;c[(Ha&p)>>2]=h;g=Lp(l,h)|0;b[(Oa&o)>>1]=g;m=c[(Ia&p)>>2]|0;pl(m,13);Hq(m,1,Ha,Oa);b[(m&o)+16>>1]=65534-(g&65535)+(c[(k&p)+36>>2]|0)-(e[(m&o)+14>>1]|0);if((a[(k&n)+17>>0]|0)!=0?(zp(k,c[(La&p)>>2]|0,5,c[(la&p)>>2]|0,Ma),(g&65535)>(e[(m&o)+12>>1]|0)):0)Fq(m,h,Ma);ca=c[(l&p)+56>>2]|0;k=e[(ka&o)>>1]<<1;h=c[(l&p)+64>>2]|0;k=(d[(h+k+-2&n)>>0]<<8|d[(h+k+-1&n)>>0])&e[(l&o)+20>>1];h=ca+k|0;c[(Ha&p)>>2]=h;k=ca+(k+9)|0;while(1){g=h+1|0;if((a[(h&n)>>0]|0)<0&g>>>0>>0)h=g;else break}c[(Ha&p)>>2]=g;k=h+10|0;m=ua;while(1){c[(Ha&p)>>2]=g+1;ca=a[(g&n)>>0]|0;h=m+1|0;a[(m&n)>>0]=ca;g=c[(Ha&p)>>2]|0;if(!(ca<<24>>24<0&g>>>0>>0))break;else m=h}Jp(da,e[(ma&o)>>1]|0,wa,h-va|0,0,c[(l&p)+72>>2]|0,Ma);h=d[(da&n)+6>>0]|0;ca=c[(da&p)+56>>2]|0;ba=c[(La&p)>>2]|0;a[(ca+h&n)+8>>0]=ba>>>24;a[(ca+h&n)+9>>0]=ba>>>16;a[(ca+h&n)+10>>0]=ba>>>8;a[(ca+h&n)+11>>0]=ba;h=c[(Ia&p)>>2]|0;if(h)Bg(c[(h&p)+68>>2]|0)}h=ga;g=c[(Ma&p)>>2]|0;break}h=Go(c[((c[(ha&p)>>2]|0)&p)+32>>2]|0)|0;_=s<<16>>16==1;q=d[(ta&n)>>0]|0;N=q&1;c[(Na&p)>>2]=0;a[(Aa&n)>>0]=0;a[(Aa&n)+1>>0]=0;a[(Aa&n)+2>>0]=0;a[(Aa&n)+3>>0]=0;a[(Aa&n)+4>>0]=0;aa=c[(da&p)+52>>2]|0;if(!h)g=7;else{E=da+1|0;s=d[(E&n)>>0]|0;$=da+18|0;g=e[($&o)>>1]|0;m=g+s|0;if((m|0)<2){ba=m;W=0}else{do if(k<<16>>16)if((m|0)==(t|0)){q=(q|-2)+t|0;break}else{q=t+-1|0;break}else q=0;while(0);ba=2-N|0;W=q}ca=ba+1|0;q=W-s+ba|0;D=da+56|0;s=c[(D&p)>>2]|0;if((q|0)==(g|0))t=(d[(da&n)+6>>0]|0)+8|0;else{t=q<<1;Z=c[(da&p)+64>>2]|0;t=(d[(Z+t&n)>>0]<<8|d[(Z+(t|1)&n)>>0])&e[(da&o)+20>>1]}T=s+t|0;R=s+(t+1)|0;S=s+(t+2)|0;G=s+(t+3)|0;Z=d[(R&n)>>0]<<16|d[(T&n)>>0]<<24|d[(S&n)>>0]<<8|d[(G&n)>>0];c[(Ka&p)>>2]=Z;t=Da+(ba<<2)|0;Z=vp(aa,Z,t,0)|0;c[(Na&p)>>2]=Z;a:do if(!Z){w=da+22|0;z=da+32|0;A=da+20|0;B=da+64|0;C=aa+22|0;Q=aa+36|0;x=ba;s=0;while(1){k=c[(t&p)>>2]|0;s=s+1+(e[(k&o)+18>>1]|0)+(d[(k&n)+1>>0]|0)|0;k=x+-1|0;if(!x)break;y=k+W|0;t=a[(E&n)>>0]|0;if((y|0)==(e[(w&o)>>1]|0))if(!(t<<24>>24)){t=0;ea=52}else{Z=c[(z&p)>>2]|0;c[(Ba+(k<<2)&p)>>2]=Z;q=d[(Z&n)+1>>0]<<16|d[(Z&n)>>0]<<24|d[(Z&n)+2>>0]<<8|d[(Z&n)+3>>0];c[(Ka&p)>>2]=q;c[(Pa+(k<<2)&p)>>2]=(Lp(da,Z)|0)&65535;a[(E&n)>>0]=0}else ea=52;if((ea|0)==52){ea=0;q=c[(D&p)>>2]|0;u=y-(t&255)<<1;m=c[(B&p)>>2]|0;u=(d[(m+u&n)>>0]<<8|d[(m+(u|1)&n)>>0])&e[(A&o)>>1];m=q+u|0;g=Ba+(k<<2)|0;c[(g&p)>>2]=m;q=d[(q+u&n)+1>>0]<<16|d[(m&n)>>0]<<24|d[(q+u&n)+2>>0]<<8|d[(q+u&n)+3>>0];c[(Ka&p)>>2]=q;v=(Lp(da,m)|0)&65535;c[(Pa+(k<<2)&p)>>2]=v;if(b[(C&o)>>1]&4){if((v+u|0)>(c[(Q&p)>>2]|0)){k=x;ea=54;break}kw(h+u|0,m|0,v|0)|0;c[(g&p)>>2]=h+(m-(c[(D&p)>>2]|0));t=a[(E&n)>>0]|0}Ip(da,y-(t&255)|0,v,Na)}t=Da+(k<<2)|0;Z=vp(aa,q,t,0)|0;c[(Na&p)>>2]=Z;if(Z){ea=47;break a}else x=k}if((ea|0)==54){ea=0;c[(Qa&p)>>2]=59766;c[(Qa&p)+4>>2]=10788;bd(11,13600,Qa);c[(Na&p)>>2]=11;fw(Da|0,0,k<<2|0)|0;m=0;q=0;break}t=s+3&-4;Z=gi((c[(aa&p)+32>>2]|0)+(t*6|0)|0)|0;if(!Z){c[(Na&p)>>2]=7;m=Z;q=0;break}X=Z+(t<<2)|0;J=X+(t<<1)|0;M=c[(Da&p)>>2]|0;U=d[(M&n)+5>>0]<<2;Y=U&65535;V=a[(M&n)+3>>0]|0;F=V&255;if((ba|0)>-1){I=V<<24>>24!=0;K=M;q=0;L=0;s=0;while(1){H=e[(K&o)+18>>1]|0;P=a[(K&n)+1>>0]|0;D=P&255;E=D+H|0;if(!(P<<24>>24)){g=c[(K&p)+56>>2]|0;if((E|0)>0){y=e[(K&o)+20>>1]|0;x=e[(K&o)+14>>1]|0;w=0;v=s;while(1){P=(w<<1)+x|0;P=g+((d[(g+P&n)>>0]<<8|d[(g+P&n)+1>>0])&y)|0;c[(Z+(v<<2)&p)>>2]=P;b[(X+(v<<1)&o)>>1]=Lp(K,P)|0;w=w+1|0;if((w|0)==(H|0))break;else v=v+1|0}s=H+s|0}}else if((E|0)>0){z=K+56|0;x=K+20|0;w=K+64|0;v=0;g=s;while(1){y=v;C=D;b:while(1){while(1){A=C+-1|0;if((C|0)<=0){ea=72;break b}C=e[(K+(A<<1)&o)+22>>1]|0;if((C|0)>(y|0))C=A;else{B=C;C=A;break}}if((B|0)==(y|0)){ea=71;break}else y=y+-1|0}if((ea|0)==71){ea=0;y=c[(K+(C<<2)&p)+32>>2]|0}else if((ea|0)==72){ea=0;y=y<<1;P=c[(w&p)>>2]|0;y=(c[(z&p)>>2]|0)+((d[(P+y&n)>>0]<<8|d[(P+(y|1)&n)>>0])&e[(x&o)>>1])|0}c[(Z+(g<<2)&p)>>2]=y;b[(X+(g<<1)&o)>>1]=Lp(K,y)|0;v=v+1|0;if((v|0)==(E|0))break;else g=g+1|0}s=H+s+D|0}c[(Fa+(q<<2)&p)>>2]=s;if((q|0)>=(ba|0)|I)t=L;else{k=c[(Pa+(q<<2)&p)>>2]|0;u=X+(s<<1)|0;b[(u&o)>>1]=k;k=k&65535;t=k+L|0;kw(J+L|0,c[(Ba+(q<<2)&p)>>2]|0,k|0)|0;k=Z+(s<<2)|0;c[(k&p)>>2]=J+(L+U);m=(e[(u&o)>>1]|0)-U|0;b[(u&o)>>1]=m;do if(!(a[(K&n)+5>>0]|0)){P=c[(k&p)>>2]|0;O=(c[(K&p)+56>>2]|0)+8|0;O=d[(O&n)>>0]|d[(O&n)+1>>0]<<8|d[(O&n)+2>>0]<<16|d[(O&n)+3>>0]<<24;a[(P&n)>>0]=O;a[(P&n)+1>>0]=O>>8;a[(P&n)+2>>0]=O>>16;a[(P&n)+3>>0]=O>>24}else{if((m&65532)>>>0>=4)break;a[(J+t&n)>>0]=0;b[(u&o)>>1]=4;t=t+1|0}while(0);s=s+1|0}q=q+1|0;if((q|0)>=(ca|0))break;K=c[(Da+(q<<2)&p)>>2]|0;L=t}t=U+-12+(c[(Q&p)>>2]|0)|0;if((s|0)>0){u=I<<31>>31;m=0;k=0;q=0;do{g=q+2+(e[(X+(m<<1)&o)>>1]|0)|0;if((g|0)>(t|0)){c[(Pa+(k<<2)&p)>>2]=q;c[(Ea+(k<<2)&p)>>2]=m;if((k|0)>3){ea=91;break}else{m=m+u|0;k=k+1|0;q=0}}else q=g;m=m+1|0}while((m|0)<(s|0));if((ea|0)==91){ea=0;c[(Qa&p)>>2]=59904;c[(Qa&p)+4>>2]=10788;bd(11,13600,Qa);c[(Na&p)>>2]=11;m=Z;q=0;break}c[(Pa+(k<<2)&p)>>2]=q;c[(Ea+(k<<2)&p)>>2]=s;if((k|0)>0){E=(N|0)==0;m=k;do{v=Pa+(m<<2)|0;m=m+-1|0;g=Pa+(m<<2)|0;w=Ea+(m<<2)|0;A=c[(w&p)>>2]|0;D=c[(g&p)>>2]|0;u=q;while(1){z=A+-1|0;y=A-F|0;if(u){if(!E){q=D;break}B=b[(X+(y<<1)&o)>>1]|0;C=u+2|0;y=b[(X+(z<<1)&o)>>1]|0;x=D+-2|0;if(((B&65535)+C|0)>(x-(y&65535)|0)){q=D;break}}else{x=D+-2|0;C=2;B=b[(X+(y<<1)&o)>>1]|0;y=b[(X+(z<<1)&o)>>1]|0}c[(w&p)>>2]=z;A=z;D=x-(y&65535)|0;u=(B&65535)+C|0}c[(v&p)>>2]=u;c[(g&p)>>2]=q}while((m|0)>0);L=1;P=t;O=s}else{L=1;P=t;O=s}}else ea=93}else{t=U+-12+(c[(Q&p)>>2]|0)|0;s=0;ea=93}if((ea|0)==93){ea=0;c[(Pa&p)>>2]=0;c[(Ea&p)>>2]=s;L=0;P=t;k=0;O=s}if((c[(M&p)+72>>2]|0)>>>0<2){c[(Qa&p)>>2]=59963;c[(Qa&p)+4>>2]=10788;bd(11,13600,Qa);c[(Na&p)>>2]=11;m=Z;q=0;break}H=d[(c[(M&p)+56>>2]&n)>>0]|0;if((k|0)>-1){v=(N|0)!=0;g=aa+17|0;m=da+72|0;x=0;q=0;while(1){do if((x|0)<(ca|0)){M=Da+(x<<2)|0;N=c[(M&p)>>2]|0;c[(Ca+(x<<2)&p)>>2]=N;c[(Ja&p)>>2]=N;c[(M&p)>>2]=0;N=Gg(c[(N&p)+68>>2]|0)|0;c[(Na&p)>>2]=N;q=q+1|0;if(N){m=Z;break a}}else{N=ip(aa,Ja,Ka,v?1:c[(Ka&p)>>2]|0,0)|0;c[(Na&p)>>2]=N;if(N){m=Z;break a}t=c[(Ja&p)>>2]|0;pl(t,H);c[(Ca+(x<<2)&p)>>2]=t;q=q+1|0;c[(Fa+(x<<2)&p)>>2]=O;if(!(a[(g&n)>>0]|0))break;zp(aa,c[(t&p)+72>>2]|0,5,c[(m&p)>>2]|0,Na);if(c[(Na&p)>>2]|0){m=Z;break a}}while(0);if((x|0)<(k|0))x=x+1|0;else break}if((q|0)>0){s=0;c:do{N=c[(Ca+(s<<2)&p)>>2]|0;t=c[(N&p)+72>>2]|0;c[(za+(s<<2)&p)>>2]=t;c[(ya+(s<<2)&p)>>2]=t;b[(xa+(s<<1)&o)>>1]=b[((c[(N&p)+68>>2]|0)&o)+24>>1]|0;if((s|0)>0){m=0;do{if((c[(za+(m<<2)&p)>>2]|0)==(t|0)){ea=118;break c}m=m+1|0}while((m|0)<(s|0))}s=s+1|0}while((s|0)<(q|0));if((ea|0)==118){ea=0;c[(Qa&p)>>2]=60018;c[(Qa&p)+4>>2]=10788;bd(11,13600,Qa);c[(Na&p)>>2]=11;m=Z;break}u=(q|0)>1;m=aa+44|0;k=0;do{if(u){s=0;t=1;do{s=(c[(ya+(t<<2)&p)>>2]|0)>>>0<(c[(ya+(s<<2)&p)>>2]|0)>>>0?t:s;t=t+1|0}while((t|0)!=(q|0))}else s=0;N=ya+(s<<2)|0;t=c[(N&p)>>2]|0;c[(N&p)>>2]=-1;if((s|0)!=(k|0)){if((s|0)>(k|0)){M=c[((c[(Ca+(s<<2)&p)>>2]|0)&p)+68>>2]|0;N=s+1+(c[(m&p)>>2]|0)|0;b[(M&o)+24>>1]=0;Zp(M,N)}N=c[(Ca+(k<<2)&p)>>2]|0;M=c[(N&p)+68>>2]|0;b[(M&o)+24>>1]=b[(xa+(s<<1)&o)>>1]|0;Zp(M,t);c[(N&p)+72>>2]=t}k=k+1|0}while((k|0)!=(q|0));c[(Ka&p)>>2]=t;N=0}else N=1}else{N=1;q=0}K=q+-1|0;t=c[(Ca+(K<<2)&p)>>2]|0;M=c[(t&p)+72>>2]|0;a[(T&n)>>0]=M>>>24;a[(R&n)>>0]=M>>>16;a[(S&n)>>0]=M>>>8;a[(G&n)>>0]=M;if(!((H&8|0)!=0|(ca|0)==(q|0))){T=(c[(t&p)+56>>2]|0)+8|0;S=(c[((c[(((q|0)>(ca|0)?Ca:Da)+(ba<<2)&p)>>2]|0)&p)+56>>2]|0)+8|0;S=d[(S&n)>>0]|d[(S&n)+1>>0]<<8|d[(S&n)+2>>0]<<16|d[(S&n)+3>>0]<<24;a[(T&n)>>0]=S;a[(T&n)+1>>0]=S>>8;a[(T&n)+2>>0]=S>>16;a[(T&n)+3>>0]=S>>24}M=aa+17|0;if((a[(M&n)>>0]|0)!=0?(ra=c[(Ca&p)>>2]|0,sa=c[(Q&p)>>2]|0,L):0){D=V<<24>>24==0;B=D&1;A=Y<<16>>16==0;y=c[(ra&p)+56>>2]|0;x=(e[(ra&o)+18>>1]|0)+(d[(ra&n)+1>>0]|0)|0;z=0;w=0;s=0;u=ra;while(1){C=c[(Z+(z<<2)&p)>>2]|0;if((z|0)==(x|0)){s=s+1|0;if((s|0)<(q|0))t=Ca+(s<<2)|0;else t=Da+(s<<2)|0;x=c[(t&p)>>2]|0;y=c[(x&p)+56>>2]|0;x=z+B+(e[(x&o)+18>>1]|0)+(d[(x&n)+1>>0]|0)|0}if((z|0)==(c[(Ea+(w<<2)&p)>>2]|0)){t=w+1|0;u=c[(Ca+(t<<2)&p)>>2]|0;if(!D)ea=142}else{t=w;ea=142}do if((ea|0)==142){ea=0;if((s|0)<(q|0)?(C>>>0>=y>>>0?(c[(u&p)+72>>2]|0)==(c[(za+(s<<2)&p)>>2]|0):0)&C>>>0<(y+sa|0)>>>0:0)break;if(A)zp(aa,d[(C&n)+1>>0]<<16|d[(C&n)>>0]<<24|d[(C&n)+2>>0]<<8|d[(C&n)+3>>0],5,c[(u&p)+72>>2]|0,Na);if((e[(X+(z<<1)&o)>>1]|0)<=(e[(u&o)+12>>1]|0))break;Fq(u,C,Na)}while(0);z=z+1|0;if((z|0)==(O|0))break;else w=t}}if((K|0)>0){v=V<<24>>24==0;x=0;y=0;while(1){w=c[(Ca+(x<<2)&p)>>2]|0;s=c[(Ea+(x<<2)&p)>>2]|0;m=c[(Z+(s<<2)&p)>>2]|0;k=b[(X+(s<<1)&o)>>1]|0;t=(k&65535)+U|0;u=h+y|0;do if(!(a[(w&n)+5>>0]|0)){s=(c[(w&p)+56>>2]|0)+8|0;T=d[(m&n)>>0]|d[(m&n)+1>>0]<<8|d[(m&n)+2>>0]<<16|d[(m&n)+3>>0]<<24;a[(s&n)>>0]=T;a[(s&n)+1>>0]=T>>8;a[(s&n)+2>>0]=T>>16;a[(s&n)+3>>0]=T>>24;s=u}else{if(!v){rp(w,c[(Z+(s+-1<<2)&p)>>2]|0,Ga);t=Ga;m=u;s=0;t=(pm(h+(y+4)|0,c[(t&p)>>2]|0,c[(t&p)+4>>2]|0)|0)+4|0;break}g=m+-4|0;if(k<<16>>16!=4){m=g;s=u;break}m=g;s=u;t=(Lp(da,g)|0)&65535}while(0);Jp(da,x+W|0,m,t,s,c[(w&p)+72>>2]|0,Na);if(c[(Na&p)>>2]|0){m=Z;break a}x=x+1|0;if((x|0)>=(K|0))break;else y=t+y|0}}t=1-q|0;if((t|0)<(q|0)){L=c[(Ea&p)>>2]|0;K=V<<24>>24==0&1;do{I=(t|0)<0?0-t|0:t;J=Aa+I|0;do if(!(a[(J&n)>>0]|0)){if((t|0)<=-1?(W=I+-1|0,(c[(Fa+(W<<2)&p)>>2]|0)<(c[(Ea+(W<<2)&p)>>2]|0)):0)break;if(!I){H=0;m=0;G=L}else{s=I+-1|0;if((I|0)<(ca|0))m=(c[(Fa+(s<<2)&p)>>2]|0)+K|0;else m=O;G=(c[(Ea+(s<<2)&p)>>2]|0)+K|0;H=G;G=(c[(Ea+(I<<2)&p)>>2]|0)-G|0}E=c[(Ca+(I<<2)&p)>>2]|0;v=c[(E&p)+56>>2]|0;g=d[(E&n)+6>>0]|0;k=E+64|0;s=(c[(k&p)>>2]|0)+(G<<1)|0;u=E+18|0;y=e[(u&o)>>1]|0;F=E+1|0;x=y+m+(d[(F&n)>>0]|0)|0;w=G+H|0;if((m|0)<(H|0)){W=Iq(E,H-m|0,Z+(m<<2)|0,X+(m<<1)|0)|0;V=c[(k&p)>>2]|0;lw(V|0,V+(W<<1)|0,y<<1|0)|0;y=y-W|0}if((x|0)>(w|0))y=y-(Iq(E,x-w|0,Z+(w<<2)|0,X+(w<<1)|0)|0)|0;A=v+(g+5)|0;z=v+(g+6)|0;W=v+(((d[(A&n)>>0]<<8|d[(z&n)>>0])+65535&65535)+1)|0;c[(Qa&p)>>2]=W;d:do if(W>>>0>>0)ea=181;else{if((H|0)<(m|0)){x=m-H|0;x=(x|0)>(G|0)?G:x;W=c[(k&p)>>2]|0;lw(W+(x<<1)|0,W|0,y<<1|0)|0;if(Jq(E,s,Qa,W,x,Z+(H<<2)|0,X+(H<<1)|0)|0){ea=181;break}y=y+x|0}x=a[(F&n)>>0]|0;if(x<<24>>24){D=0;do{C=(e[(E+(D<<1)&o)+22>>1]|0)+m|0;B=C-H|0;if((B|0)>-1&(B|0)<(G|0)){V=B<<1;U=c[(k&p)>>2]|0;W=U+V|0;lw(U+(V+2)|0,W|0,y-B<<1|0)|0;if(Jq(E,s,Qa,W,1,Z+(C<<2)|0,X+(C<<1)|0)|0){ea=181;break d}x=a[(F&n)>>0]|0;y=y+1|0}D=D+1|0}while((D|0)<(x&255|0))}W=y+H|0;if(Jq(E,s,Qa,(c[(k&p)>>2]|0)+(y<<1)|0,G-y|0,Z+(W<<2)|0,X+(W<<1)|0)|0){ea=181;break}W=G&65535;b[(u&o)>>1]=W;a[(F&n)>>0]=0;a[(v+g&n)+3>>0]=(W&65535)>>>8;a[(v+g&n)+4>>0]=b[(u&o)>>1];W=(c[(Qa&p)>>2]|0)-v|0;a[(A&n)>>0]=W>>>8;a[(z&n)>>0]=W}while(0);if((ea|0)==181){ea=0;Hq(E,G,Z+(H<<2)|0,X+(H<<1)|0)}a[(J&n)>>0]=1;b[(E&o)+16>>1]=P-(c[(Pa+(I<<2)&p)>>2]|0)}while(0);t=t+1|0}while((t|0)!=(q|0))}do if(_){if(b[($&o)>>1]|0){ea=191;break}m=c[(Ca&p)>>2]|0;if((d[(da&n)+6>>0]|0)>>>0>(e[(m&o)+16>>1]|0)>>>0){ea=191;break}c[(Na&p)>>2]=Eq(m)|0;Gq(m,da,Na);if(c[(Na&p)>>2]|0)break;c[(Na&p)>>2]=Ym(c[(m&p)+52>>2]|0,m,c[(m&p)+72>>2]|0)|0}else ea=191;while(0);do if((ea|0)==191){ea=0;if((a[(M&n)>>0]|0)==0|Y<<16>>16!=0|N)break;else m=0;do{$=c[(Ca+(m<<2)&p)>>2]|0;_=c[($&p)+56>>2]|0;zp(aa,d[(_&n)+9>>0]<<16|d[(_&n)+8>>0]<<24|d[(_&n)+10>>0]<<8|d[(_&n)+11>>0],5,c[($&p)+72>>2]|0,Na);m=m+1|0}while((m|0)!=(q|0))}while(0);if((q|0)>=(ca|0)){m=Z;break}m=c[(Na&p)>>2]|0;g=q;do{k=c[(Da+(g<<2)&p)>>2]|0;if(!m){m=Ym(c[(k&p)+52>>2]|0,k,c[(k&p)+72>>2]|0)|0;c[(Na&p)>>2]=m}g=g+1|0}while((g|0)!=(ca|0));m=Z}else{k=ba;ea=47}while(0);if((ea|0)==47){ea=0;fw(Da|0,0,(k<<2)+4|0)|0;m=0;q=0}hi(m);if((ba|0)>-1){k=0;do{m=c[(Da+(k<<2)&p)>>2]|0;if(m)Bg(c[(m&p)+68>>2]|0);k=k+1|0}while((k|0)<(ca|0))}if((q|0)>0){k=0;do{g=c[(Ca+(k<<2)&p)>>2]|0;if(g)Bg(c[(g&p)+68>>2]|0);k=k+1|0}while((k|0)!=(q|0))}g=c[(Na&p)>>2]|0}if(ga)$k(ga)}else h=ga;while(0);a[(r&n)>>0]=0;if(l)Bg(c[(l&p)+68>>2]|0);l=(b[(qa&o)>>1]|0)+-1<<16>>16;b[(qa&o)>>1]=l;if(g)break;else ga=h}if(h)$k(h);i=Ra;return g|0}function Lp(b,f){b=b|0;f=f|0;var g=0,h=0,i=0,j=0,k=0;g=d[(b&n)+7>>0]|0;h=f+g|0;do if(!(a[(b&n)+4>>0]|0)){j=a[(h&n)>>0]|0;i=j&255;if(j<<24>>24<0){j=f+(g+9)|0;g=i&127;do{h=h+1|0;i=a[(h&n)>>0]|0;g=i&127|g<<7}while(i<<24>>24<0&h>>>0>>0)}else g=i;i=h+1|0;if(a[(b&n)+2>>0]|0){k=h+10|0;j=i;while(1){i=h+2|0;if((a[(j&n)>>0]|0)<0&i>>>0>>0){h=j;j=i}else break}}h=e[(b&o)+10>>1]|0;if(g>>>0>h>>>0){j=e[(b&o)+12>>1]|0;g=(((g-j|0)>>>0)%(((c[((c[(b&p)+52>>2]|0)&p)+36>>2]|0)+-4|0)>>>0)|0)+j|0;g=(i-f&65535)+4+(g>>>0>h>>>0?j:g)|0;break}else{g=i-f+g|0;g=g>>>0<4?4:g;break}}else{i=f+(g+9)|0;while(1){g=h+1|0;if((a[(h&n)>>0]|0)<0&g>>>0>>0)h=g;else break}g=g-f|0}while(0);return g&65535|0}function Mp(b,e,f,g){b=b|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,o=0,q=0,r=0,s=0,t=0,u=0;u=i;i=i+16|0;if((i|0)>=(j|0))fa();s=u+4|0;r=u;q=u+8|0;c[(s&p)>>2]=0;if(a[(b&n)+17>>0]|0){h=((c[2514]|0)>>>0)/((c[(b&p)+32>>2]|0)>>>0)|0;m=b+36|0;o=e;while(1){l=o+1|0;if(l>>>0<2)k=0;else{k=o+-1|0;k=k-((k>>>0)%(((((c[(m&p)>>2]|0)>>>0)/5|0)+1|0)>>>0)|0)|0;k=((k+1|0)==(h|0)?3:2)+k|0}if((k|0)==(l|0)|(o|0)==(h|0))o=l;else break}if(l>>>0<=(c[(b&p)+44>>2]|0)>>>0){o=hp(b,l,q,r)|0;m=(o|0)==0;k=m&(a[(q&n)>>0]|0)==4&(c[(r&p)>>2]|0)==(e|0);l=k?l:0;if(k|m^1){h=0;k=k?101:o}else t=8}else{l=0;t=8}}else{l=0;t=8}if((t|0)==8){k=dl(b,e,s,(f|0)==0?2:0)|0;h=c[(s&p)>>2]|0;if(!k){l=c[(h&p)+56>>2]|0;l=d[(l&n)+1>>0]<<16|d[(l&n)>>0]<<24|d[(l&n)+2>>0]<<8|d[(l&n)+3>>0];k=0}}c[(g&p)>>2]=l;if(!f){if(h)Bg(c[(h&p)+68>>2]|0)}else c[(f&p)>>2]=h;i=u;return ((k|0)==101?0:k)|0}function Np(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0;k=i;i=i+16|0;if((i|0)>=(j|0))fa();h=k;c[(h&p)>>2]=0;f=(b|0)!=0;a:do if(d)if(f){f=h;while(1){g=d+8|0;while(1){if((Wp(a,b+8|0,c[(b&p)>>2]|0,g,c[(d&p)>>2]|0)|0)>=1)break;c[(f&p)>>2]=b;f=b+4|0;b=c[(f&p)>>2]|0;if(!b){b=0;g=0;break a}else g=0}c[(f&p)>>2]=d;f=d+4|0;d=c[(f&p)>>2]|0;if(!d){d=0;g=1;break a}if(!b){b=0;g=0;break}}}else{g=f;f=h}else{d=0;g=f;f=h}while(0);c[(f&p)>>2]=g?b:d;c[(e&p)>>2]=c[(h&p)>>2];i=k;return}function Op(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;g=i;i=i+16|0;if((i|0)>=(j|0))fa();f=g+8|0;e=g;d=c[2252]|0;if((d|0)!=0?(lc[d&127](202)|0)!=0:0)d=3338;else{d=mp(c[(a&p)>>2]|0,0,b,4126,f)|0;c[(f&p)>>2]=d;if(!d){d=e;c[(d&p)>>2]=0;c[(d&p)+4>>2]=0;d=c[(b&p)>>2]|0;ac[c[((c[(d&p)>>2]|0)&p)+40>>2]&63](d,18,e)|0;d=c[(f&p)>>2]|0}}i=g;return d|0}function Pp(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=b+0|0;h=g+40|0;do{c[(g&p)>>2]=0;g=g+4|0}while((g|0)<(h|0));g=((d|0)<0)<<31>>31;h=qg(d,g)|0;c[(b&p)+4>>2]=h;if(!h)c[(b&p)>>2]=7;else{h=rw(e|0,f|0,d|0,g|0)|0;c[(b&p)+12>>2]=h;c[(b&p)+16>>2]=h;h=dw(e|0,f|0,h|0,((h|0)<0)<<31>>31|0)|0;g=b+24|0;c[(g&p)>>2]=h;c[(g&p)+4>>2]=G;c[(b&p)+8>>2]=d;c[(b&p)+32>>2]=a}return}function Qp(a,b,d){a=a|0;b=b|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,q=0,r=0;a:do if((d|0)>0){f=a+8|0;h=a+16|0;i=a+4|0;j=a+32|0;k=a+12|0;l=a+24|0;m=d;do{if(c[(a&p)>>2]|0)break a;g=c[(h&p)>>2]|0;e=(c[(f&p)>>2]|0)-g|0;e=(m|0)>(e|0)?e:m;kw((c[(i&p)>>2]|0)+g|0,b+(d-m)|0,e|0)|0;g=(c[(h&p)>>2]|0)+e|0;c[(h&p)>>2]=g;if((g|0)==(c[(f&p)>>2]|0)){r=c[(j&p)>>2]|0;o=c[(k&p)>>2]|0;q=(c[(i&p)>>2]|0)+o|0;n=l;n=jw(c[(n&p)>>2]|0,c[(n&p)+4>>2]|0,o|0,((o|0)<0)<<31>>31|0)|0;c[(a&p)>>2]=tc[c[((c[(r&p)>>2]|0)&p)+12>>2]&31](r,q,g-o|0,n,G)|0;c[(h&p)>>2]=0;c[(k&p)>>2]=0;n=c[(f&p)>>2]|0;g=l;n=jw(c[(g&p)>>2]|0,c[(g&p)+4>>2]|0,n|0,((n|0)<0)<<31>>31|0)|0;g=l;c[(g&p)>>2]=n;c[(g&p)+4>>2]=G}m=m-e|0}while((m|0)>0)}while(0);return}function Rp(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,i=0;f=a+4|0;if(((c[(a&p)>>2]|0)==0?(e=c[(f&p)>>2]|0,(e|0)!=0):0)?(d=c[(a&p)+16>>2]|0,g=c[(a&p)+12>>2]|0,(d|0)>(g|0)):0){i=c[(a&p)+32>>2]|0;h=a+24|0;h=jw(c[(h&p)>>2]|0,c[(h&p)+4>>2]|0,g|0,((g|0)<0)<<31>>31|0)|0;c[(a&p)>>2]=tc[c[((c[(i&p)>>2]|0)&p)+12>>2]&31](i,e+g|0,d-g|0,h,G)|0}e=a+24|0;d=c[(a&p)+16>>2]|0;e=jw(d|0,((d|0)<0)<<31>>31|0,c[(e&p)>>2]|0,c[(e&p)+4>>2]|0)|0;d=b;c[(d&p)>>2]=e;c[(d&p)+4>>2]=G;Wc(c[(f&p)>>2]|0);f=c[(a&p)>>2]|0;d=a+0|0;e=d+40|0;do{c[(d&p)>>2]=0;d=d+4|0}while((d|0)<(e|0));return f|0}function Sp(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;g=c[2252]|0;if((g|0)!=0?(lc[g&127](201)|0)!=0:0)g=266;else{h=b+44|0;if(c[(h&p)>>2]|0)c[(h&p)>>2]=0;n=b;c[(n&p)>>2]=e;c[(n&p)+4>>2]=f;n=d+8|0;l=c[(n&p)>>2]|0;n=c[(n&p)+4>>2]|0;j=b+8|0;k=j;c[(k&p)>>2]=l;c[(k&p)+4>>2]=n;d=c[(d&p)>>2]|0;k=b+24|0;c[(k&p)>>2]=d;a=a+8|0;g=c[(a&p)>>2]|0;i=c[((c[(g&p)+24>>2]|0)&p)+136>>2]|0;m=((i|0)<0)<<31>>31;if(!((n|0)>(m|0)|(n|0)==(m|0)&l>>>0>i>>>0)?(c[(c[(d&p)>>2]&p)>>2]|0)>2:0){c[(h&p)>>2]=0;g=c[(a&p)>>2]|0}i=c[(g&p)+12>>2]|0;d=((i|0)<0)<<31>>31;f=rw(e|0,f|0,i|0,d|0)|0;a=b+36|0;g=c[(a&p)>>2]|0;if(!g){g=qg(i,d)|0;c[(a&p)>>2]=g;c[(b&p)+40>>2]=i;e=g;g=(g|0)==0?7:0}else{e=g;g=0}if((g|0)==0&(f|0)!=0){g=i-f|0;i=b;h=c[(i&p)>>2]|0;i=c[(i&p)+4>>2]|0;b=jw(h|0,i|0,g|0,((g|0)<0)<<31>>31|0)|0;l=G;d=j;a=c[(d&p)>>2]|0;d=c[(d&p)+4>>2]|0;if((l|0)>(d|0)|(l|0)==(d|0)&b>>>0>a>>>0)g=dw(a|0,d|0,h|0,i|0)|0;k=c[(k&p)>>2]|0;g=tc[c[((c[(k&p)>>2]|0)&p)+8>>2]&31](k,e+f|0,g,h,i)|0}}return g|0}function Tp(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0;l=i;i=i+32|0;if((i|0)>=(j|0))fa();k=l+8|0;h=l;f=c[(b&p)+44>>2]|0;e=b;g=c[(e&p)>>2]|0;a:do if(!f){f=c[(b&p)+40>>2]|0;e=rw(g|0,c[(e&p)+4>>2]|0,f|0,((f|0)<0)<<31>>31|0)|0;if((e|0)!=0&(f-e|0)>8){f=(sp((c[(b&p)+36>>2]|0)+e|0,d)|0)&255;e=b;f=jw(c[(e&p)>>2]|0,c[(e&p)+4>>2]|0,f|0,0)|0;e=b;c[(e&p)>>2]=f;c[(e&p)+4>>2]=G;e=0;break}else f=0;while(1){e=Kq(b,1,h)|0;if(e)break a;e=a[(c[(h&p)>>2]&n)>>0]|0;a[(k+(f&15)&n)>>0]=e;if(e<<24>>24<0)f=f+1|0;else break}sp(k,d)|0;e=0}else{f=(sp(f+g|0,d)|0)&255;e=b;f=jw(c[(e&p)>>2]|0,c[(e&p)+4>>2]|0,f|0,0)|0;e=b;c[(e&p)>>2]=f;c[(e&p)+4>>2]=G;e=0}while(0);i=l;return e|0}function Up(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,k=0,l=0;k=i;i=i+16|0;if((i|0)>=(j|0))fa();g=k;d=g;c[(d&p)>>2]=0;c[(d&p)+4>>2]=0;d=a;f=c[(d&p)+4>>2]|0;b=a+8|0;e=c[(b&p)+4>>2]|0;do if((f|0)<(e|0)|((f|0)==(e|0)?(c[(d&p)>>2]|0)>>>0<(c[(b&p)>>2]|0)>>>0:0))h=9;else{d=c[(a&p)+48>>2]|0;if(d){b=Lq(d)|0;l=d+32|0;f=d+48|0;c[(l&p)>>2]=c[(f&p)>>2];c[(l&p)+4>>2]=c[(f&p)+4>>2];c[(l&p)+8>>2]=c[(f&p)+8>>2];c[(l&p)+12>>2]=c[(f&p)+12>>2];l=d+40|0;f=d+8|0;e=c[(f&p)>>2]|0;f=c[(f&p)+4>>2]|0;if((c[(l&p)>>2]|0)==(e|0)?(c[(l&p)+4>>2]|0)==(f|0):0)c[(d&p)+20>>2]=1;if(!b)if(!(c[(d&p)+20>>2]|0)){b=Sp(c[(d&p)>>2]|0,a,d+32|0,e,f)|0;if(!b){h=9;break}else break}else b=0}else b=0;Vp(a)}while(0);if((h|0)==9){b=Tp(a,g)|0;if(!b){b=c[(g&p)>>2]|0;c[(a&p)+20>>2]=b;b=Kq(a,b,a+32|0)|0}}i=k;return b|0}function Vp(a){a=a|0;var b=0;Wc(c[(a&p)+28>>2]|0);Wc(c[(a&p)+36>>2]|0);Sm(c[(a&p)+48>>2]|0);a=a+0|0;b=a+56|0;do{c[(a&p)>>2]=0;a=a+4|0}while((a|0)<(b|0));return}function Wp(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0;g=c[(a&p)+12>>2]|0;if(e)Gm(c[((c[(a&p)+8>>2]|0)&p)+28>>2]|0,f,e,g);return Km(d,b,g,0)|0}function Xp(f,g,h,k){f=f|0;g=g|0;h=h|0;k=k|0;var l=0,m=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0;z=i;i=i+16|0;if((i|0)>=(j|0))fa();m=z;l=z+8|0;v=z+12|0;do if((c[(f&p)+44>>2]|0)>>>0>=g>>>0){g=vp(f,g,l,0)|0;if(!g){x=c[(l&p)>>2]|0;w=x+9|0;a:do if(!(a[(w&n)>>0]|0)){a[(w&n)>>0]=1;t=d[(x&n)+6>>0]|0;r=x+18|0;l=b[(r&o)>>1]|0;if(!(l<<16>>16)){l=l&65535;g=x+5|0}else{q=0;while(1){m=c[(x&p)+56>>2]|0;l=q<<1;g=c[(x&p)+64>>2]|0;l=(d[(g+l&n)>>0]<<8|d[(g+(l|1)&n)>>0])&e[(x&o)+20>>1];g=m+l|0;s=x+5|0;if((a[(s&n)>>0]|0)==0?(u=Xp(f,d[(m+l&n)+1>>0]<<16|d[(g&n)>>0]<<24|d[(m+l&n)+2>>0]<<8|d[(m+l&n)+3>>0],1,k)|0,(u|0)!=0):0){g=u;y=21;break a}g=Hp(x,g,v)|0;q=q+1|0;if(g){y=21;break a}l=e[(r&o)>>1]|0;if((q|0)>=(l|0)){g=s;break}}}if(!(a[(g&n)>>0]|0)){g=c[(x&p)+56>>2]|0;g=Xp(f,d[(g+t&n)+9>>0]<<16|d[(g+t&n)+8>>0]<<24|d[(g+t&n)+10>>0]<<8|d[(g+t&n)+11>>0],1,k)|0;if(!g)y=16}else if(!k)y=16;else{c[(k&p)>>2]=(c[(k&p)>>2]|0)+l;y=16}if((y|0)==16){if(h){g=Ym(c[(x&p)+52>>2]|0,x,c[(x&p)+72>>2]|0)|0;y=21;break}g=Gg(c[(x&p)+68>>2]|0)|0;if(!g){pl(x,d[((c[(x&p)+56>>2]|0)+t&n)>>0]|8);g=0;y=21;break}}a[(w&n)>>0]=0}else{c[(m&p)>>2]=60971;c[(m&p)+4>>2]=10788;bd(11,13600,m);g=11;y=21}while(0);if((y|0)==21){a[(w&n)>>0]=0;if(!x)break}Bg(c[(x&p)+68>>2]|0)}}else{c[(m&p)>>2]=60966;c[(m&p)+4>>2]=10788;bd(11,13600,m);g=11}while(0);i=z;return g|0}function Yp(b,d){b=b|0;d=d|0;var e=0,f=0;f=(c[(b&p)>>2]|0)+204|0;e=ac[c[8876>>2]&63](c[((c[(f&p)>>2]|0)&p)+40>>2]|0,d,0)|0;e=il(c[(f&p)>>2]|0,d,e)|0;if(!e)e=0;else{f=c[(e&p)+8>>2]|0;c[(f&p)+56>>2]=c[(e&p)+4>>2];c[(f&p)+68>>2]=e;c[(f&p)+52>>2]=b;c[(f&p)+72>>2]=d;a[(f&n)+6>>0]=(d|0)==1?100:0;e=f}return e|0}function Zp(a,d){a=a|0;d=d|0;var e=0;e=a+20|0;qc[c[8884>>2]&15](c[((c[(a&p)+28>>2]|0)&p)+40>>2]|0,c[(a&p)>>2]|0,c[(e&p)>>2]|0,d);c[(e&p)>>2]=d;if((b[(a&o)+24>>1]&6)==6)Qo(a,3);return}function _p(f){f=f|0;var g=0,h=0,k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0;y=i;i=i+16|0;if((i|0)>=(j|0))fa();x=y;u=c[(f&p)+52>>2]|0;v=a[(f&n)>>0]|0;w=c[(f&p)+72>>2]|0;t=$p(f)|0;c[(x&p)>>2]=t;if(!t){t=b[(f&o)+18>>1]|0;s=t&65535;if(!(t<<16>>16))g=f+5|0;else{h=f+56|0;k=f+20|0;l=f+64|0;g=f+5|0;t=0;do{m=c[(h&p)>>2]|0;q=t<<1;r=c[(l&p)>>2]|0;q=(d[(r+q&n)>>0]<<8|d[(r+(q|1)&n)>>0])&e[(k&o)>>1];r=m+q|0;Fq(f,r,x);if(!(a[(g&n)>>0]|0))zp(u,d[(m+q&n)+1>>0]<<16|d[(r&n)>>0]<<24|d[(m+q&n)+2>>0]<<8|d[(m+q&n)+3>>0],5,w,x);t=t+1|0}while((t|0)<(s|0))}if(!(a[(g&n)>>0]|0)){t=d[(f&n)+6>>0]|0;s=c[(f&p)+56>>2]|0;zp(u,d[(s+t&n)+9>>0]<<16|d[(s+t&n)+8>>0]<<24|d[(s+t&n)+10>>0]<<8|d[(s+t&n)+11>>0],5,w,x)}}a[(f&n)>>0]=v;i=y;return c[(x&p)>>2]|0}function $p(e){e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0;y=i;i=i+16|0;if((i|0)>=(j|0))fa();x=y;a:do if(!(a[(e&n)>>0]|0)){f=c[(e&p)+52>>2]|0;u=c[(e&p)+56>>2]|0;l=d[(e&n)+6>>0]|0;if(Ro(e,d[(u+l&n)>>0]|0)|0){c[(x&p)>>2]=54562;c[(x&p)+4>>2]=10788;bd(11,13600,x);f=11;break}q=c[(f&p)+32>>2]|0;b[(e&o)+20>>1]=q+65535;a[(e&n)+1>>0]=0;t=c[(f&p)+36>>2]|0;f=l+8+(d[(e&n)+7>>0]|0)|0;b[(e&o)+14>>1]=f;c[(e&p)+60>>2]=u+t;f=f&65535;c[(e&p)+64>>2]=u+f;k=a[(u+l&n)+5>>0]|0;h=a[(u+l&n)+6>>0]|0;g=d[(u+l&n)+3>>0]<<8|d[(u+l&n)+4>>0];b[(e&o)+18>>1]=g;if(g>>>0>(((q+-8|0)>>>0)/6|0)>>>0){c[(x&p)>>2]=54579;c[(x&p)+4>>2]=10788;bd(11,13600,x);f=11;break}q=(g<<1)+f|0;m=t+-4|0;g=d[(u+l&n)+1>>0]<<8|d[(u+l&n)+2>>0];f=(((k&255)<<8|h&255)+65535&65535)+1+(d[(u+l&n)+7>>0]|0)|0;do if(g){while(1){if((g|0)<(q|0)|(g|0)>(m|0)){w=8;break}h=d[(u+g&n)>>0]<<8|d[(u+g&n)+1>>0];k=d[(u+g&n)+2>>0]<<8|d[(u+g&n)+3>>0];g=k+g|0;if(!h){r=k;s=g;v=f;w=12;break}if((h|0)<=(g+3|0)|(g|0)>(t|0))break;g=h;f=k+f|0}if((w|0)==8){c[(x&p)>>2]=54634;c[(x&p)+4>>2]=10788;bd(11,13600,x);f=11;break a}if((w|0)==12?(s|0)<=(t|0):0){f=r+v|0;break}c[(x&p)>>2]=54641;c[(x&p)+4>>2]=10788;bd(11,13600,x);f=11;break a}while(0);if((f|0)>(t|0)){c[(x&p)>>2]=54655;c[(x&p)+4>>2]=10788;bd(11,13600,x);f=11;break}else{b[(e&o)+16>>1]=f-q;a[(e&n)>>0]=1;f=0;break}}else f=0;while(0);i=y;return f|0}function aq(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0;l=i;i=i+16|0;if((i|0)>=(j|0))fa();k=l;f=c[(b&p)>>2]|0;g=f+65|0;if(!(a[(g&n)>>0]|0)){if((c[(f&p)+24>>2]&65536|0)==0?(h=b+4|0,m=c[(h&p)>>2]|0,c[(k&p)>>2]=(d|0)==0?13552:d,dh(m,f,13560,k),(e|0)!=0):0){d=c[(c[(h&p)>>2]&p)>>2]|0;c[(k&p)>>2]=d;c[(k&p)+4>>2]=e;f=Mq(f,d,0,k)|0;c[(c[(h&p)>>2]&p)>>2]=f}if(!(a[(g&n)>>0]|0)){c[(k&p)>>2]=105209;c[(k&p)+4>>2]=10788;bd(11,13600,k);f=11}else f=7}else f=7;c[(b&p)+12>>2]=f;i=l;return}function bq(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0;o=i;i=i+16|0;if((i|0)>=(j|0))fa();n=o;m=a+20|0;a:do if((c[(m&p)>>2]|0)>0){h=a+16|0;k=(d|0)==0;l=0;a=0;do{f=(l|0)<2^l;g=c[(h&p)>>2]|0;e=c[(g+(f<<4)&p)+12>>2]|0;if(!(!k?(dd(d,c[(g+(f<<4)&p)>>2]|0)|0)!=0:0)){a=bn(e+24|0,b,n)|0;if(a){a=c[(a&p)+8>>2]|0;if(a)break a}else a=0}l=l+1|0}while((l|0)<(c[(m&p)>>2]|0))}else a=0;while(0);i=o;return a|0}function cq(d){d=d|0;var f=0,g=0,h=0,i=0;i=c[(d&p)+8>>2]|0;h=d+46|0;g=b[(h&o)>>1]|0;g=(g&65535)>5?5:g&65535;f=b[((c[(d&p)+12>>2]|0)&o)+28>>1]|0;b[(i&o)>>1]=f<<16>>16<33?33:f;kw(i+2|0,13512,g<<1|0)|0;f=e[(h&o)>>1]|0;if(g>>>0>>0)do{g=g+1|0;b[(i+(g<<1)&o)>>1]=23;f=e[(h&o)>>1]|0}while((g|0)<(f|0));if(a[(d&n)+50>>0]|0)b[(i+(f<<1)&o)>>1]=0;return}function dq(d,f,g,h){d=d|0;f=f|0;g=g|0;h=h|0;var k=0,l=0,m=0,q=0,r=0,s=0,t=0;s=i;i=i+64|0;if((i|0)>=(j|0))fa();q=s;a:do if((((g|0)!=0?(l=c[(g&p)>>2]|0,(l|0)!=0):0)?(r=g+8|0,(c[(r&p)>>2]|0)!=0):0)?(k=d+4|0,t=_h(c[(d&p)>>2]|0,l,c[(k&p)>>2]|0)|0,(t|0)!=0):0){h=c[(g&p)+4>>2]|0;b:do if(!h)m=11;else{if(!(dd(c[(g&p)>>2]|0,h)|0)){k=c[(t&p)+8>>2]|0;if(!k){m=11;break}while(1){l=a[(k&n)+51>>0]|0;if((l&3)==2)break;k=c[(k&p)+20>>2]|0;if(!k){m=11;break b}}h=c[(r&p)>>2]|0;f=k}else{f=bq(c[(d&p)>>2]|0,h,c[(k&p)>>2]|0)|0;k=c[(r&p)>>2]|0;if(!f)break;l=a[(f&n)+51>>0]|0;h=k}r=(e[(f&o)+46>>1]|0)+1|0;a[(f&n)+51>>0]=l&-5;k=f+8|0;Nq(h,r,c[(k&p)>>2]|0,f);if(c[(f&p)+36>>2]|0)break a;b[(t&o)+28>>1]=b[(c[(k&p)>>2]&o)>>1]|0;break a}while(0);if((m|0)==11)k=c[(r&p)>>2]|0;r=t+42|0;m=q+44|0;b[(m&o)>>1]=b[(r&o)>>1]|0;Nq(k,1,t+28|0,q);b[(r&o)>>1]=b[(m&o)>>1]|0}while(0);i=s;return 0}function eq(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,k=0,l=0;l=i;i=i+16|0;if((i|0)>=(j|0))fa();k=l;do if(e){if((c[(b&p)+12>>2]|0)>>>0>>0){c[(k&p)>>2]=e;fn(b,44408,k);f=1;break}g=(c[(b&p)+8>>2]|0)+(e>>>3)|0;h=d[(g&n)>>0]|0;f=1<<(e&7);if(!(h&f)){a[(g&n)>>0]=h|f;f=0;break}else{c[(k&p)>>2]=e;fn(b,44432,k);f=1;break}}else f=1;while(0);i=l;return f|0}function fq(a,b){a=a|0;b=b|0;var d=0,e=0;d=c[(a&p)>>2]|0;do if(d){if((b|0)==1){b=d+8|0;c[(a&p)>>2]=c[(b&p)>>2];c[(b&p)>>2]=0;c[(d&p)+12>>2]=0;break}b=b+-1|0;d=fq(a,b)|0;e=c[(a&p)>>2]|0;if(e){c[(e&p)+12>>2]=d;d=e+8|0;c[(a&p)>>2]=c[(d&p)>>2];c[(d&p)>>2]=fq(a,b)|0;return e|0}}else d=0;while(0);return d|0}function gq(b,d){b=b|0;d=d|0;var e=0;if((a[(b&n)+43>>0]|0)==2){e=b+24|0;if((c[(e&p)>>2]|0)>0){d=b+32|0;b=0;do{Wc(c[((c[(d&p)>>2]|0)+(b<<2)&p)>>2]|0);c[((c[(d&p)>>2]|0)+(b<<2)&p)>>2]=0;b=b+1|0}while((b|0)<(c[(e&p)>>2]|0))}}else{b=c[(b&p)+4>>2]|0;rc[c[((c[(b&p)>>2]|0)&p)+64>>2]&127](b,d)|0}return}function hq(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=i;i=i+16|0;if((i|0)>=(j|0))fa();b=Ng(b)|0;if(b)dh(c,a,Se(a)|0,d);i=d;return b|0}function iq(a,d){a=a|0;d=d|0;var f=0,g=0,h=0;f=c[(a&p)>>2]|0;g=a+16|0;h=a+84|0;ch(c[(g&p)>>2]|0,(e[(h&o)>>1]|0)<<1);mg(f,c[(g&p)>>2]|0);b[(h&o)>>1]=d;h=d*80|0;f=mh(f,h,0)|0;if(f){fw(f|0,0,h|0)|0;c[(g&p)>>2]=f;if((d|0)>0){h=c[(a&p)>>2]|0;g=d<<1;while(1){g=g+-1|0;b[(f&o)+8>>1]=1;c[(f&p)+32>>2]=h;if((g|0)<=0)break;else f=f+40|0}}}else c[(g&p)>>2]=0;return}function jq(b,d,f,g,h){b=b|0;d=d|0;f=f|0;g=g|0;h=h|0;if(!(a[((c[(b&p)>>2]|0)&n)+65>>0]|0)){d=(ca(e[(b&o)+84>>1]|0,f)|0)+d|0;Xg((c[(b&p)+16>>2]|0)+(d*40|0)|0,g,-1,1,h)|0}return}function kq(d,e,f,g){d=d|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0;m=i;i=i+16|0;if((i|0)>=(j|0))fa();l=m;k=c[(d&p)>>2]|0;h=k+1|0;c[(d&p)>>2]=h;if((k|0)>98){f=d+8|0;h=c[(f&p)>>2]|0;c[(d&p)>>2]=k;do Pn(d);while((c[(d&p)>>2]|0)>-1);th(h,37160,l);c[(f&p)>>2]=h}else{b[(d+(h<<4)&o)+12>>1]=e;a[(d+(h<<4)&n)+14>>0]=f;f=d+(h<<4)+16|0;c[(f&p)>>2]=c[(g&p)>>2];c[(f&p)+4>>2]=c[(g&p)+4>>2];c[(f&p)+8>>2]=c[(g&p)+8>>2]}i=m;return}function lq(a,b,d){a=a|0;b=b|0;d=d|0;a=c[(a&p)+8>>2]|0;switch(b&255|0){case 228:case 221:case 220:case 210:case 209:case 208:case 205:case 203:case 200:case 188:case 179:{Nk(c[(a&p)>>2]|0,c[(d&p)>>2]|0);break}case 239:case 234:{Fk(c[(a&p)>>2]|0,c[(d&p)>>2]|0);break}case 236:{Hk(c[(a&p)>>2]|0,c[(d&p)+4>>2]|0);break}case 243:case 238:case 229:case 227:case 216:case 204:case 202:{Gk(c[(a&p)>>2]|0,c[(d&p)>>2]|0);break}case 175:case 174:{Gk(c[(a&p)>>2]|0,c[(d&p)>>2]|0);break}case 252:case 197:{Qn(c[(a&p)>>2]|0,c[(d&p)>>2]|0);break}case 223:case 219:case 217:{Hk(c[(a&p)>>2]|0,c[(d&p)>>2]|0);break}case 213:case 212:case 201:case 194:{Do(c[(a&p)>>2]|0,c[(d&p)>>2]|0);break}case 207:case 196:case 195:case 163:{Mk(c[(a&p)>>2]|0,c[(d&p)>>2]|0,1);break}default:{}}return} function Cl(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,o=0,q=0,r=0,s=0;s=i;i=i+16|0;if((i|0)>=(j|0))fa();o=s;r=b+16|0;if((d[(r&n)>>0]|0)<2?(d[(b&n)+17>>0]|0)<2:0)g=0;else{cp(b);q=b+64|0;l=c[(q&p)>>2]|0;h=c[(l&p)>>2]|0;do if(!h)h=0;else{if((h|0)==14696){Gi(l,0,0)|0;c[(l&p)>>2]=0;h=0;break}k=a[(b&n)+5>>0]|0;if(k<<24>>24==3){k=b+72|0;o=k;if(!((c[(o&p)>>2]|0)==0&(c[(o&p)+4>>2]|0)==0)){h=ac[c[(h&p)+16>>2]&63](l,0,0)|0;if(!h)if(!(a[(b&n)+8>>0]|0))h=0;else{h=c[(q&p)>>2]|0;h=rc[c[((c[(h&p)>>2]|0)&p)+20>>2]&127](h,d[(b&n)+11>>0]|0)|0}}else h=0;q=k;c[(q&p)>>2]=0;c[(q&p)+4>>2]=0;break}else if(k<<24>>24!=1?(a[(b&n)+4>>0]|0)==0|k<<24>>24==5:0){q=(a[(b&n)+12>>0]|0)==0;lc[c[(h&p)+4>>2]&127](l)|0;c[(l&p)>>2]=0;if(!q){h=0;break}h=c[(b&p)>>2]|0;h=ac[c[(h&p)+28>>2]&63](h,c[(b&p)+172>>2]|0,0)|0;break}m=b+72|0;k=m;if(!((c[(k&p)>>2]|0)==0&(c[(k&p)+4>>2]|0)==0)){g=b+160|0;k=c[(g&p)>>2]|0;g=c[(g&p)+4>>2]|0;if((e|0)!=0|(k|0)==0&(g|0)==0)h=ac[c[(h&p)+16>>2]&63](l,0,0)|0;else h=tc[c[(h&p)+12>>2]&31](l,14664,28,0,0)|0;if(!h){if(!(a[(b&n)+7>>0]|0)){h=c[(q&p)>>2]|0;h=rc[c[((c[(h&p)>>2]|0)&p)+20>>2]&127](h,d[(b&n)+11>>0]|16)|0}else h=0;if((h|0)==0&((g|0)>0|(g|0)==0&k>>>0>0)){h=c[(q&p)>>2]|0;h=rc[c[((c[(h&p)>>2]|0)&p)+24>>2]&127](h,o)|0;l=c[(o&p)+4>>2]|0;if((h|0)==0&((l|0)>(g|0)|((l|0)==(g|0)?(c[(o&p)>>2]|0)>>>0>k>>>0:0))){h=c[(q&p)>>2]|0;h=ac[c[((c[(h&p)>>2]|0)&p)+16>>2]&63](h,k,g)|0}}}}else h=0;q=m;c[(q&p)>>2]=0;c[(q&p)+4>>2]=0}while(0);k=b+56|0;ei(c[(k&p)>>2]|0);c[(k&p)>>2]=0;c[(b&p)+44>>2]=0;k=b+204|0;g=c[(k&p)>>2]|0;e=c[(g&p)>>2]|0;if(e){do{xl(e);e=c[(g&p)>>2]|0}while((e|0)!=0);g=c[(k&p)>>2]|0}k=b+24|0;dp(g,c[(k&p)>>2]|0);l=b+208|0;g=c[(l&p)>>2]|0;if(!g){if((h|0)==0&(f|0)!=0){g=c[(k&p)>>2]|0;if((c[(b&p)+32>>2]|0)>>>0>g>>>0)h=Bl(b,g)|0;else h=0}}else{e=g+44|0;if(a[(e&n)>>0]|0){if(!(a[(g&n)+43>>0]|0)){q=c[(g&p)+4>>2]|0;pc[c[((c[(q&p)>>2]|0)&p)+56>>2]&31](q,0,1,9)|0}a[(e&n)>>0]=0;a[(g&n)+47>>0]=0}}if((h|0)==0&(f|0)!=0){g=c[(b&p)+60>>2]|0;h=c[(g&p)>>2]|0;if(!h)k=0;else{k=ac[c[(h&p)+40>>2]&63](g,22,0)|0;k=(k|0)==12?0:k}}else k=h;do if(!(a[(b&n)+4>>0]|0)){g=c[(l&p)>>2]|0;if((g|0)!=0?(ep(g,0)|0)==0:0){g=0;break}h=c[(b&p)+60>>2]|0;g=c[(h&p)>>2]|0;if(g){if(!(a[(b&n)+13>>0]|0))g=rc[c[(g&p)+32>>2]&127](h,1)|0;else g=0;h=b+17|0;if((a[(h&n)>>0]|0)!=5)a[(h&n)>>0]=1}else g=0;a[(b&n)+18>>0]=0}else g=0;while(0);a[(r&n)>>0]=1;a[(b&n)+19>>0]=0;g=(k|0)==0?g:k}i=s;return g|0}function Dl(d){d=d|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;j=c[(d&p)+4>>2]|0;g=c[(d&p)>>2]|0;a[(j&n)+19>>0]=0;k=d+8|0;do if(a[(k&n)>>0]|0){if((c[(g&p)+152>>2]|0)>1){g=j+76|0;if((c[(g&p)>>2]|0)==(d|0)?(c[(g&p)>>2]=0,f=j+22|0,b[(f&o)>>1]=e[(f&o)>>1]&65439,f=c[(j&p)+72>>2]|0,(f|0)!=0):0)do{a[(f&n)+8>>0]=1;f=c[(f&p)+12>>2]|0}while((f|0)!=0);a[(k&n)>>0]=1;break}g=j+72|0;f=c[(g&p)>>2]|0;a:do if(f)do while(1){h=f+12|0;i=c[(h&p)>>2]|0;if((c[(f&p)>>2]|0)!=(d|0)){g=h;f=i;break}c[(g&p)>>2]=i;if((c[(f&p)+4>>2]|0)==1)f=i;else{Wc(f);f=c[(g&p)>>2]|0}if(!f)break a}while((f|0)!=0);while(0);f=j+76|0;if((c[(f&p)>>2]|0)!=(d|0)){f=c[(j&p)+40>>2]|0;if((f|0)==2){i=j+22|0;b[(i&o)>>1]=e[(i&o)>>1]&65471;c[(j&p)+40>>2]=1;i=20;break}}else{c[(f&p)>>2]=0;f=j+22|0;b[(f&o)>>1]=e[(f&o)>>1]&65439;f=c[(j&p)+40>>2]|0}f=f+-1|0;c[(j&p)+40>>2]=f;if(!f){a[(j&n)+20>>0]=0;i=20}else i=20}else i=20;while(0);if(((i|0)==20?(a[(k&n)>>0]=0,(a[(j&n)+20>>0]|0)==0):0)?(l=j+12|0,m=c[(l&p)>>2]|0,(m|0)!=0):0){c[(l&p)>>2]=0;Bg(c[(m&p)+68>>2]|0)}return}function El(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,i=0;h=((c[(a&p)+36>>2]|0)>>>0)/5|0;if(b>>>0<2){e=0;g=c[(a&p)+32>>2]|0;i=c[2514]|0}else{e=b+-2|0;e=e-((e>>>0)%((h+1|0)>>>0)|0)|0;i=c[2514]|0;g=c[(a&p)+32>>2]|0;e=((e+1|0)==((i>>>0)/(g>>>0)|0|0)?3:2)+e|0}e=b-d-(((d-b+h+e|0)>>>0)/(h>>>0)|0)|0;f=a+32|0;a=((i>>>0)/(g>>>0)|0)+1|0;d=((i>>>0)/(g>>>0)|0)+1|0;a=((a>>>0>>0&e>>>0>>0)<<31>>31)+e|0;while(1){if(a>>>0<2)e=0;else{e=a+-2|0;e=e-((e>>>0)%((h+1|0)>>>0)|0)|0;e=((e+1|0)==((i>>>0)/((c[(f&p)>>2]|0)>>>0)|0|0)?3:2)+e|0}if(!((e|0)==(a|0)|(a|0)==(d|0)))break;a=a+-1|0}return a|0}function Fl(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0;g=(d|0)==0;f=b;a:while(1){do if((f|0)!=(e|0)){if(!g?(c[(f&p)+60>>2]|0)!=(d|0):0)break;if(((a[(f&n)+73>>0]|0)+-1&255)<2){b=fp(f)|0;if(!b)break;else break a}else{gp(f);break}}while(0);f=c[(f&p)+8>>2]|0;if(!f){b=0;break}}return b|0}function Gl(b,e,f,g){b=b|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,o=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0;x=i;i=i+48|0;if((i|0)>=(j|0))fa();k=x;m=x+32|0;u=x+28|0;l=x+24|0;q=x+20|0;s=x+16|0;v=x+12|0;t=x+8|0;if(f>>>0<2)o=0;else{o=f+-2|0;o=o-((o>>>0)%(((((c[(b&p)+36>>2]|0)>>>0)/5|0)+1|0)>>>0)|0)|0;o=((o+1|0)==(((c[2514]|0)>>>0)/((c[(b&p)+32>>2]|0)>>>0)|0|0)?3:2)+o|0}do if((o|0)!=(f|0)?((((c[2514]|0)>>>0)/((c[(b&p)+32>>2]|0)>>>0)|0)+1|0)!=(f|0):0){r=c[((c[(b&p)+12>>2]|0)&p)+56>>2]|0;if((d[(r&n)+37>>0]|0)<<16|(d[(r&n)+36>>0]|0)<<24|(d[(r&n)+38>>0]|0)<<8|(d[(r&n)+39>>0]|0)){h=hp(b,f,m,u)|0;if(!h){r=a[(m&n)>>0]|0;if(r<<24>>24==2){if(g){h=0;break}h=ip(b,q,l,f,1)|0;if(h)break;k=c[(q&p)>>2]|0;if(!k){w=24;break}Bg(c[(k&p)+68>>2]|0);w=24;break}else if(r<<24>>24!=1){h=dl(b,f,v,0)|0;if(h)break;k=(g|0)==0;m=k?2:0;k=k?e:0;l=(g|0)!=0;do{h=ip(b,t,s,k,m)|0;if(h){w=16;break}o=c[(t&p)>>2]|0;if(o)Bg(c[(o&p)+68>>2]|0);o=c[(s&p)>>2]|0}while(l&o>>>0>e>>>0);if((w|0)==16){k=c[(v&p)>>2]|0;if(!k)break;Bg(c[(k&p)+68>>2]|0);break}m=c[(v&p)>>2]|0;h=Zm(b,m,r,c[(u&p)>>2]|0,o,g)|0;if(m)Bg(c[(m&p)+68>>2]|0);if(!h){w=24;break}else break}else{c[(k&p)>>2]=56228;c[(k&p)+4>>2]=10788;bd(11,13600,k);h=11;break}}}else h=101}else w=24;while(0);if((w|0)==24)if(!g){l=((c[2514]|0)>>>0)/((c[(b&p)+32>>2]|0)>>>0)|0;m=l+1|0;o=b+36|0;k=f;while(1){h=k+-1|0;if((h|0)==(m|0)){k=h;continue}if(h>>>0<2)k=0;else{k=k+-3|0;k=k-((k>>>0)%(((((c[(o&p)>>2]|0)>>>0)/5|0)+1|0)>>>0)|0)|0;k=((k+1|0)==(l|0)?3:2)+k|0}if((k|0)==(h|0))k=h;else break}a[(b&n)+19>>0]=1;c[(b&p)+44>>2]=h;h=0}else h=0;i=x;return h|0}function Hl(b){b=b|0;var e=0,f=0,g=0;g=b+16|0;f=a[(g&n)>>0]|0;a:do if(f<<24>>24!=6)if((f&255)>=2){do if(!(c[(b&p)+208>>2]|0)){if(!(f<<24>>24==2?1:(c[(c[(b&p)+64>>2]&p)>>2]|0)==0)){e=Ko(b,0)|0;break}e=Cl(b,0,0)|0;if((a[(b&n)+15>>0]|0)==0&(f&255)>2){c[(b&p)+40>>2]=4;a[(g&n)>>0]=6;break a}}else{e=jp(b,2,-1)|0;f=Cl(b,d[(b&n)+19>>0]|0,0)|0;e=(e|0)==0?f:e}while(0);f=e&255;if((f|0)==10|(f|0)==13){c[(b&p)+40>>2]=e;a[(g&n)>>0]=6}}else e=0;else e=c[(b&p)+40>>2]|0;while(0);return e|0}function Il(d,e,f){d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0;a:do if((d|0)!=0?(h=c[(d&p)+4>>2]|0,c[(h&p)+4>>2]=c[(d&p)>>2],h=c[(h&p)+8>>2]|0,(h|0)!=0):0){l=(f|0)==0;while(1){if(!l?(a[(h&n)+72>>0]&1)==0:0){if(((a[(h&n)+73>>0]|0)+-1&255)<2?(g=fp(h)|0,(g|0)!=0):0)break}else{f=h+56|0;Wc(c[(f&p)>>2]|0);c[(f&p)>>2]=0;a[(h&n)+73>>0]=4;c[(h&p)+68>>2]=e}f=h+76|0;if((b[(f&o)>>1]|0)>=0){k=0;while(1){i=h+(k<<2)+120|0;j=c[(i&p)>>2]|0;if(j)Bg(c[(j&p)+68>>2]|0);c[(i&p)>>2]=0;if((k|0)<(b[(f&o)>>1]|0))k=k+1|0;else break}}h=c[(h&p)+8>>2]|0;if(!h)break a}Il(d,g,0)|0;return g|0}while(0);return 0}function Jl(a){a=a|0;var b=0,d=0,e=0;a:do if(!(c[(a&p)+4>>2]|0)){d=c[(a&p)+20>>2]|0;if((d|0)>0){a=c[(a&p)+16>>2]|0;b=0;while(1){e=c[(a+(b<<4)&p)+4>>2]|0;if((e|0)!=0?(c[(e&p)+16>>2]|0)!=0:0){a=1;break a}b=b+1|0;if((b|0)>=(d|0)){a=0;break}}}else a=0}else a=1;while(0);return a|0}function Kl(d,e){d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;f=c[3164]|0;if(f)nc[f&3]();l=d+20|0;j=c[(l&p)>>2]|0;i=(j|0)>0;if(i){f=c[(d&p)+16>>2]|0;h=0;do{g=c[(f+(h<<4)&p)+4>>2]|0;if(g)c[((c[(g&p)+4>>2]|0)&p)+4>>2]=c[(g&p)>>2];h=h+1|0}while((h|0)!=(j|0))}m=d+24|0;if(!(c[(m&p)>>2]&2))f=1;else f=(a[(d&n)+145>>0]|0)!=0;if(i){k=d+16|0;f=f&1;i=j;j=0;h=0;while(1){g=c[((c[(k&p)>>2]|0)+(j<<4)&p)+4>>2]|0;if(!g)g=i;else{h=(a[(g&n)+8>>0]|0)==2?1:h;Lg(g,e,f);g=c[(l&p)>>2]|0}j=j+1|0;if((j|0)>=(g|0))break;else i=g}}else h=0;Rn(d,68);f=c[3166]|0;if(f)nc[f&3]();f=c[(m&p)>>2]|0;if((f&2|0)!=0?(a[(d&n)+145>>0]|0)==0:0){f=c[(d&p)+4>>2]|0;if(f)do{g=f+88|0;b[(g&o)>>1]=b[(g&o)>>1]|8;f=c[(f&p)+52>>2]|0}while((f|0)!=0);Eg(d);f=c[(m&p)>>2]|0}g=d+504|0;c[(g&p)>>2]=0;c[(g&p)+4>>2]=0;c[(g&p)+8>>2]=0;c[(g&p)+12>>2]=0;c[(m&p)>>2]=f&-16777217;f=c[(d&p)+204>>2]|0;do if(f){if((h|0)==0?(a[(d&n)+63>>0]|0)!=0:0)break;cc[f&31](c[(d&p)+200>>2]|0)}while(0);return}function Ll(b){b=b|0;var d=0,e=0;e=b+488|0;d=c[(e&p)>>2]|0;if(d)do{c[(e&p)>>2]=c[(d&p)+24>>2];mg(b,d);d=c[(e&p)>>2]|0}while((d|0)!=0);c[(b&p)+496>>2]=0;c[(b&p)+500>>2]=0;a[(b&n)+70>>0]=0;return}function Ml(b){b=b|0;var d=0,e=0,f=0,g=0,h=0;h=c[(b&p)+4>>2]|0;c[(h&p)+4>>2]=c[(b&p)>>2];e=c[(h&p)+8>>2]|0;if(e)do{d=e;e=c[(e&p)+8>>2]|0;if((c[(d&p)>>2]|0)==(b|0))kp(d)}while((e|0)!=0);Lg(b,0,0);a:do if(a[(b&n)+9>>0]|0){e=h+64|0;d=c[(e&p)>>2]|0;c[(e&p)>>2]=d+-1;if((d|0)<2){d=c[3664]|0;if((d|0)==(h|0)){c[3664]=c[(h&p)+68>>2];f=12;break}else e=d;do{if(!e){f=12;break a}d=e+68|0;e=c[(d&p)>>2]|0}while((e|0)!=(h|0));c[(d&p)>>2]=c[(h&p)+68>>2];f=12}}else f=12;while(0);if((f|0)==12){lp(c[(h&p)>>2]|0);d=c[(h&p)+52>>2]|0;e=h+48|0;if((d|0)!=0?(g=c[(e&p)>>2]|0,(g|0)!=0):0)cc[d&31](g);d=c[(e&p)>>2]|0;if(d)Wc(d);d=h+80|0;e=c[(d&p)>>2]|0;if(e){e=e+-4|0;c[(d&p)>>2]=e;$k(e);c[(d&p)>>2]=0}Wc(h)}e=c[(b&p)+28>>2]|0;d=b+24|0;if(e)c[(e&p)+24>>2]=c[(d&p)>>2];d=c[(d&p)>>2]|0;if(d)c[(d&p)+28>>2]=e;Wc(b);return}function Nl(a,b){a=a|0;b=b|0;var d=0;b=c[(b&p)+32>>2]|0;if((b|0)!=0?(d=(c[(b&p)>>2]|0)+-1|0,c[(b&p)>>2]=d,(d|0)==0):0){cc[c[(b&p)+4>>2]&31](c[(b&p)+8>>2]|0);mg(a,b)}return}function Ol(a){a=a|0;var b=0,d=0;d=a+8|0;b=c[(d&p)>>2]|0;c[(d&p)>>2]=0;d=a+12|0;Wc(c[(d&p)>>2]|0);c[(d&p)>>2]=0;c[(a&p)>>2]=0;if(b)do{d=b;b=c[(b&p)>>2]|0;Wc(d)}while((b|0)!=0);c[(a&p)+4>>2]=0;return}function Pl(a){a=a|0;var b=0,d=0,e=0,f=0;if(a){e=c[(a&p)>>2]|0;lg(e,a);f=c[(a&p)+48>>2]|0;d=a+52|0;b=c[(d&p)>>2]|0;if(!f)c[(e&p)+4>>2]=b;else{c[(f&p)+52>>2]=b;b=c[(d&p)>>2]|0}if(b)c[(b&p)+48>>2]=f;c[(a&p)+40>>2]=-1241070648;c[(a&p)>>2]=0;mg(e,a)}return}function Ql(d){d=d|0;var e=0;a[(d&n)+65>>0]=0;c[(d&p)+52>>2]=7;d=c[(d&p)+236>>2]|0;do if(d){e=d+8|0;if(!(b[(e&o)>>1]&9312)){b[(e&o)>>1]=1;break}else{vg(d);break}}while(0);return}function Rl(d){d=d|0;var f=0,g=0,h=0,k=0,l=0,m=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,H=0,I=0;I=i;i=i+32|0;if((i|0)>=(j|0))fa();x=I;A=I+16|0;t=I+12|0;u=I+8|0;H=c[(d&p)>>2]|0;if(a[(H&n)+65>>0]|0)c[(d&p)+80>>2]=7;g=c[(d&p)+200>>2]|0;if(g)fw(g|0,0,c[(d&p)+196>>2]|0)|0;k=d+176|0;g=c[(k&p)>>2]|0;if(g){while(1){h=c[(g&p)+4>>2]|0;if(!h)break;else g=h}Xl(g)|0;c[(k&p)>>2]=0;c[(d&p)+184>>2]=0}r=d+56|0;g=c[(r&p)>>2]|0;a:do if((g|0)!=0?(s=d+36|0,f=c[(s&p)>>2]|0,(f|0)>0):0){k=0;while(1){h=c[(g+(k<<2)&p)>>2]|0;if(!h)h=f;else{Bm(d,h);c[((c[(r&p)>>2]|0)+(k<<2)&p)>>2]=0;h=c[(s&p)>>2]|0}k=k+1|0;if((k|0)>=(h|0))break a;g=c[(r&p)>>2]|0;f=h}}while(0);g=c[(d&p)+8>>2]|0;if(g)ch(g+40|0,c[(d&p)+28>>2]|0);s=d+180|0;g=c[(s&p)>>2]|0;if(g)do{c[(s&p)>>2]=c[(g&p)+4>>2];r=g+80|0;f=g+60|0;h=c[(f&p)>>2]|0;m=r+(h*40|0)|0;q=g+64|0;if((c[(q&p)>>2]|0)>0){k=0;do{Bm(c[(g&p)>>2]|0,c[(m+(k<<2)&p)>>2]|0);k=k+1|0}while((k|0)<(c[(q&p)>>2]|0));h=c[(f&p)>>2]|0}ch(r,h);mg(c[(c[(g&p)>>2]&p)>>2]|0,g);g=c[(s&p)>>2]|0}while((g|0)!=0);if(c[(d&p)+204>>2]|0)em(d,-1,0);E=d+40|0;b:do if((c[(E&p)>>2]|0)==-1108210269){C=d+76|0;if((c[(C&p)>>2]|0)>-1){D=d+88|0;q=b[(D&o)>>1]|0;if(q&128){B=d+80|0;k=c[(B&p)>>2]|0;m=k&255;h=m+-7|0;do if(h>>>0<7?(l=(77>>>(h&127)&1)!=0,l):0)if((q&64)==0|(m|0)!=9){if((m|0)==7|(m|0)==13?(q&32)!=0:0){f=2;break}Kl(H,516);Ll(H);a[(H&n)+63>>0]=1;c[(d&p)+92>>2]=0;k=c[(B&p)>>2]|0;f=0}else{l=1;f=0}else{l=0;f=0}while(0);if((k|0)==0?(z=d+144|0,y=c[(z&p)+4>>2]|0,(y|0)>0|(y|0)==0&(c[(z&p)>>2]|0)>>>0>0):0){z=c[(d&p)>>2]|0;c[(B&p)>>2]=787;a[(d&n)+86>>0]=2;dh(d+44|0,z,34376,x)}m=H+304|0;if((c[(m&p)>>2]|0)>0?(c[(H&p)+328>>2]|0)==0:0)F=141;else if((a[(H&n)+63>>0]|0)!=0?(c[(H&p)+156>>2]|0)==(((e[(D&o)>>1]|0)>>>6&1^1)&65535|0):0){do if(!(c[(B&p)>>2]|0))F=41;else{if(!((a[(d&n)+86>>0]|0)!=3|l)){F=41;break}Kl(H,0);c[(d&p)+92>>2]=0}while(0);c:do if((F|0)==41){d:do if(tm(d,1)|0)if(!(b[(D&o)>>1]&64))g=787;else{f=1;break b}else{l=H+328|0;h=c[(l&p)>>2]|0;c[(l&p)>>2]=0;k=c[(m&p)>>2]|0;e:do if((k|0)>0){q=0;f:while(1){s=c[((c[(h+(q<<2)&p)>>2]|0)&p)+8>>2]|0;do if(s){r=c[((c[(s&p)>>2]|0)&p)+60>>2]|0;if(!r)break;g=lc[r&127](s)|0;Mm(d,s);if(g)break f;k=c[(m&p)>>2]|0}while(0);q=q+1|0;if((q|0)>=(k|0)){F=50;break e}}c[(l&p)>>2]=h;F=135}else F=50;while(0);g:do if((F|0)==50){c[(l&p)>>2]=h;y=H+20|0;z=H+16|0;r=0;k=0;q=0;h:while(1){m=c[(y&p)>>2]|0;if((r|0)>=(m|0)){h=k;break}l=c[(z&p)>>2]|0;s=r;while(1){r=c[(l+(s<<4)&p)+4>>2]|0;if((r|0)!=0?(a[(r&n)+8>>0]|0)==2:0)break;s=s+1|0;if((s|0)>=(m|0)){h=k;break h}}g=c[(r&p)+4>>2]|0;c[(g&p)+4>>2]=c[(r&p)>>2];g=bp(c[(g&p)>>2]|0)|0;if(!g){r=s+1|0;k=((s|0)!=1&1)+k|0;q=1}else{F=135;break g}}do if(q){l=c[(H&p)+196>>2]|0;if(!l)break;if(lc[l&127](c[(H&p)+192>>2]|0)|0){g=531;break d}}while(0);k=c[((c[(z&p)>>2]|0)&p)+4>>2]|0;q=c[(c[(k&p)+4>>2]&p)>>2]|0;m=(a[(q&n)+15>>0]|0)==0;if(m){s=c[(q&p)+168>>2]|0;if(s)F=62}else{s=10360;F=62}do if((F|0)==62){r=s;while(1)if(!(a[(r&n)>>0]|0))break;else r=r+1|0;if((r-s&1073741823|0)==0|(h|0)<2)break;w=c[(H&p)>>2]|0;if(m){l=c[(q&p)+168>>2]|0;c[(A&p)>>2]=0;if(!l){s=0;l=0}else F=80}else{c[(A&p)>>2]=0;l=10360;F=80}if((F|0)==80){q=l;while(1)if(!(a[(q&n)>>0]|0))break;else q=q+1|0;s=q-l&1073741823}c[(x&p)>>2]=l;v=uh(H,44696,x)|0;if(!v){g=7;break d}s=v+s|0;r=w+32|0;q=0;i:while(1){do if(q){if((q|0)>100){F=87;break i}if((q|0)!=1)break;c[(x&p)>>2]=v;bd(13,44728,x)}while(0);cd(4,u);g=c[(u&p)>>2]|0;c[(x&p)>>2]=g>>>8;c[(x&p)+4>>2]=g&255;ad(13,s,44744,x)|0;g=pc[c[(r&p)>>2]&31](w,v,0,t)|0;m=(g|0)==0;if(m&(c[(t&p)>>2]|0)!=0)q=q+1|0;else{F=91;break}}if((F|0)==87){c[(x&p)>>2]=v;bd(13,44712,x);ac[c[(w&p)+28>>2]&63](w,v,0)|0;F=92}else if((F|0)==91)if(m)F=92;do if((F|0)==92){g=mp(w,v,A,16406,0)|0;if(g)break;l=c[(y&p)>>2]|0;j:do if((l|0)>0){t=0;r=0;u=0;q=0;k:while(1){s=c[((c[(z&p)>>2]|0)+(u<<4)&p)+4>>2]|0;do if(!s)s=t;else{if((a[(s&n)+8>>0]|0)!=2){s=t;break}m=c[(s&p)+4>>2]|0;k=c[(m&p)>>2]|0;h=c[(k&p)+172>>2]|0;if(!h){s=t;break}if(!q){c[(m&p)+4>>2]=c[(s&p)>>2];q=(a[(k&n)+7>>0]|0)==0&1}k=c[(A&p)>>2]|0;s=h;while(1)if(!(a[(s&n)>>0]|0))break;else s=s+1|0;m=h;g=tc[c[((c[(k&p)>>2]|0)&p)+12>>2]&31](k,h,(s-m&1073741823)+1|0,t,r)|0;s=h;while(1)if(!(a[(s&n)>>0]|0))break;else s=s+1|0;if(g){l=k;F=106;break k}s=jw((s-m&1073741823)+1|0,0,t|0,r|0)|0;l=c[(y&p)>>2]|0;r=G}while(0);u=u+1|0;if((u|0)>=(l|0))break;else t=s}if((F|0)==106){h=c[(l&p)>>2]|0;if(h){lc[c[(h&p)+4>>2]&127](k)|0;c[(l&p)>>2]=0}Wc(k);ac[c[(w&p)+28>>2]&63](w,v,0)|0;mg(H,v);F=135;break g}do if(!q)q=0;else{m=c[(A&p)>>2]|0;if((lc[c[((c[(m&p)>>2]|0)&p)+48>>2]&127](m)|0)&1024)break;g=rc[c[((c[(m&p)>>2]|0)&p)+20>>2]&127](m,2)|0;if(!g)break;h=c[(m&p)>>2]|0;if(h){lc[c[(h&p)+4>>2]&127](m)|0;c[(m&p)>>2]=0}Wc(m);ac[c[(w&p)+28>>2]&63](w,v,0)|0;mg(H,v);F=135;break g}while(0);k=c[(y&p)>>2]|0;if((k|0)>0)s=0;else{s=1;g=0;break}while(1){m=c[((c[(z&p)>>2]|0)+(s<<4)&p)+4>>2]|0;if(m){g=Kg(m,v)|0;if(g){s=0;break j}k=c[(y&p)>>2]|0}s=s+1|0;if((s|0)>=(k|0)){s=1;g=0;break}}}else{s=1;q=0;g=0}while(0);m=c[(A&p)>>2]|0;l=c[(m&p)>>2]|0;if(l){lc[c[(l&p)+4>>2]&127](m)|0;c[(m&p)>>2]=0}Wc(m);if(!s){mg(H,v);F=135;break g}g=ac[c[(w&p)+28>>2]&63](w,v,q)|0;mg(H,v);if(g){F=135;break g}g=c[3164]|0;if(g)nc[g&3]();g=c[(y&p)>>2]|0;if((g|0)>0){k=0;do{h=c[((c[(z&p)>>2]|0)+(k<<4)&p)+4>>2]|0;if(h){Jg(h,1)|0;g=c[(y&p)>>2]|0}k=k+1|0}while((k|0)<(g|0))}g=c[3166]|0;if(g)nc[g&3]();Rn(H,64);break g}while(0);mg(H,v);F=135;break g}while(0);g=c[(y&p)>>2]|0;do if((g|0)>0){h=1;while(1){if(k){g=Kg(k,0)|0;if(g){F=135;break g}g=c[(y&p)>>2]|0}if((h|0)>=(g|0))break;k=c[((c[(z&p)>>2]|0)+(h<<4)&p)+4>>2]|0;h=h+1|0}if((g|0)>0)k=0;else break;do{h=c[((c[(z&p)>>2]|0)+(k<<4)&p)+4>>2]|0;if(h){g=Jg(h,0)|0;if(g){F=135;break g}g=c[(y&p)>>2]|0}k=k+1|0}while((k|0)<(g|0))}while(0);Rn(H,64)}while(0);do if((F|0)==135){if(!g)break;else if((g|0)!=5)break d;if(!(b[(D&o)>>1]&64)){g=5;break d}else{f=5;break b}}while(0);A=H+504|0;F=H+24|0;c[(A&p)>>2]=0;c[(A&p)+4>>2]=0;c[(A&p)+8>>2]=0;c[(A&p)+12>>2]=0;c[(F&p)>>2]=c[(F&p)>>2]&-16777219;break c}while(0);c[(B&p)>>2]=g;Kl(H,0);c[(d&p)+92>>2]=0}while(0);c[(H&p)+500>>2]=0;F=146}else F=141;do if((F|0)==141)if(!f)if(c[(B&p)>>2]|0){g=a[(d&n)+86>>0]|0;if(g<<24>>24==2){f=2;F=147;break}else if(g<<24>>24==3){f=1;F=147;break}else{Kl(H,516);Ll(H);a[(H&n)+63>>0]=1;c[(d&p)+92>>2]=0;F=146;break}}else{f=1;F=147}else F=147;while(0);if((F|0)==146)if(!f)f=0;else F=147;if((F|0)==147){g=$l(d,f)|0;if(g){F=c[(B&p)>>2]|0;if((F|0)==0|(F&255|0)==19){c[(B&p)>>2]=g;F=d+44|0;mg(H,c[(F&p)>>2]|0);c[(F&p)>>2]=0}Kl(H,516);Ll(H);a[(H&n)+63>>0]=1;c[(d&p)+92>>2]=0}}if(b[(D&o)>>1]&4){if((f|0)==2){c[(H&p)+80>>2]=0;f=d+92|0}else{f=d+92|0;B=c[(f&p)>>2]|0;c[(H&p)+80>>2]=B;F=H+84|0;c[(F&p)>>2]=(c[(F&p)>>2]|0)+B}c[(f&p)>>2]=0}}if((c[(C&p)>>2]|0)>-1){f=H+148|0;c[(f&p)>>2]=(c[(f&p)>>2]|0)+-1;f=b[(D&o)>>1]|0;if(!(f&64)){f=H+156|0;c[(f&p)>>2]=(c[(f&p)>>2]|0)+-1;f=b[(D&o)>>1]|0}if(f&128){F=H+152|0;c[(F&p)>>2]=(c[(F&p)>>2]|0)+-1}}}c[(E&p)>>2]=1369188723;f=d+80|0;if(!(a[((c[(d&p)>>2]|0)&n)+65>>0]|0)){f=(c[(f&p)>>2]|0)==5?5:0;break}else{c[(f&p)>>2]=7;f=0;break}}else f=0;while(0);i=I;return f|0}function Sl(a,f){a=a|0;f=f|0;var g=0,h=0,i=0,j=0;i=a+8|0;h=e[(i&o)>>1]|0;do if(h&18){b[(i&o)>>1]=h|2;if(h&16384)Rg(a)|0;g=a+10|0;f=f&255;h=f&247;if((d[(g&n)>>0]|0|0)!=(h|0))Yl(a,h)|0;if(((f&8|0)!=0?(c[(a&p)+16>>2]&1|0)!=0:0)?(Vl(a)|0)!=0:0){g=0;break}if((b[(i&o)>>1]&514)==2){am(a)|0;j=12}else j=12}else{bm(a,f,0)|0;h=f&247;g=a+10|0;j=12}while(0);if((j|0)==12)if((d[(g&n)>>0]|0|0)==(h|0))g=c[(a&p)+16>>2]|0;else g=0;return g|0}function Tl(b,c,e,f){b=b|0;c=c|0;e=e|0;f=f|0;var g=0,i=0.0,j=0,k=0.0,l=0,m=0,o=0,p=0,r=0,s=0,t=0,u=0;h[(c&q)>>3]=0.0;j=f&255;if(f<<24>>24==1){f=b;g=e;r=1;u=0}else{g=3-j|0;a:do if((g|0)<(e|0))while(1){f=g+2|0;if(a[(b+g&n)>>0]|0){e=1;break a}if((f|0)<(e|0))g=f;else{e=0;g=f;break}}else e=0;while(0);f=b+(j&1)|0;g=j+-3+g|0;r=2;u=e}t=b+g|0;b:do if(f>>>0>>0){while(1){g=a[(f&n)>>0]|0;if(!(a[(g&255&n)+10368>>0]&1))break;f=f+r|0;if(f>>>0>=t>>>0){f=0;break b}}if(g<<24>>24==45){f=f+r|0;s=-1}else if(g<<24>>24==43){f=f+r|0;s=1}else s=1;c:do if(f>>>0>>0){g=0;do{if((a[(f&n)>>0]|0)!=48)break c;f=f+r|0;g=g+1|0}while(f>>>0>>0)}else g=0;while(0);d:do if(f>>>0>>0){b=0;j=0;while(1){e=a[(f&n)>>0]|0;if(!(((e&255)+-48|0)>>>0<10&((b|0)<214748364|(b|0)==214748364&j>>>0<3435973835))){l=b;break d}j=sw(j|0,b|0,10,0)|0;b=(e<<24>>24)+-48|0;j=jw(b|0,((b|0)<0)<<31>>31|0,j|0,G|0)|0;b=G;f=f+r|0;g=g+1|0;if(f>>>0>=t>>>0){l=b;break}}}else{j=0;l=0}while(0);e:do if(f>>>0>>0){e=0;while(1){b=a[(f&n)>>0]|0;if(((b&255)+-48|0)>>>0>=10){m=e;break}f=f+r|0;g=g+1|0;b=e+1|0;if(f>>>0>>0)e=b;else{o=l;m=b;b=0;l=1;e=1;break e}}f:do if(b<<24>>24==46){e=f+r|0;g:do if(e>>>0>>0){o=e;while(1){b=a[(o&n)>>0]|0;if(!(((b&255)+-48|0)>>>0<10&((l|0)<214748364|(l|0)==214748364&j>>>0<3435973835))){e=o;o=l;break g}j=sw(j|0,l|0,10,0)|0;l=(b<<24>>24)+-48|0;j=jw(l|0,((l|0)<0)<<31>>31|0,j|0,G|0)|0;l=G;g=g+1|0;b=m+-1|0;e=f+(r<<1)|0;if(e>>>0>>0){f=o;o=e;m=b}else{f=o;o=l;m=b;break}}}else o=l;while(0);if(e>>>0>>0){l=r<<1;b=e;while(1){if(((d[(b&n)>>0]|0)+-48|0)>>>0>=10){e=b;break f}e=f+l|0;g=g+1|0;if(e>>>0>>0){f=b;b=e}else break}}}else{e=f;o=l}while(0);if(e>>>0>>0){p=a[(e&n)>>0]|0;h:do if(p<<24>>24==69|p<<24>>24==101){f=e+r|0;if(f>>>0>=t>>>0){b=0;l=0;e=1;break e}b=a[(f&n)>>0]|0;if(b<<24>>24==45){f=e+(r<<1)|0;p=-1}else if(b<<24>>24==43){f=e+(r<<1)|0;p=1}else p=1;if(f>>>0>>0){e=0;l=0}else{b=0;l=0;e=p;break e}while(1){b=a[(f&n)>>0]|0;if(((b&255)+-48|0)>>>0>=10){b=e;e=p;break h}if((e|0)<1e4)b=(e*10|0)+-48+(b<<24>>24)|0;else b=1e4;f=f+r|0;if(f>>>0>>0){e=b;l=1}else{l=1;e=p;break}}}else{f=e;b=0;l=1;e=1}while(0);if((g|0)!=0&(l|0)!=0&f>>>0>>0)do{if(!(a[((d[(f&n)>>0]|0)&n)+10368>>0]&1))break e;f=f+r|0}while(f>>>0>>0)}else{f=e;b=0;l=1;e=1}}else{o=l;m=0;b=0;l=1;e=1}while(0);b=(ca(b,e)|0)+m|0;p=(b|0)<0;e=p?0-b|0:b;do if((j|0)==0&(o|0)==0)if((s|0)<0)i=(g|0)!=0?-0.0:0.0;else i=0.0;else{if((b>>31|1|0)>0)if(((o|0)<214748364|(o|0)==214748364&j>>>0<3435973836)&(e|0)>0){b=o;do{e=e+-1|0;j=sw(j|0,b|0,10,0)|0;b=G}while(((b|0)<214748364|(b|0)==214748364&j>>>0<3435973836)&(e|0)>0)}else b=o;else{m=rw(j|0,o|0,10,0)|0;if((m|0)==0&(G|0)==0&(e|0)>0){b=o;do{e=e+-1|0;j=qw(j|0,b|0,10,0)|0;b=G;o=rw(j|0,b|0,10,0)|0}while((o|0)==0&(G|0)==0&(e|0)>0)}else b=o}o=(s|0)<0;m=dw(0,0,j|0,b|0)|0;m=o?m:j;o=o?G:b;if(!e){i=+(m>>>0)+4294967296.0*+(o|0);break}if((e+-308|0)>>>0<34){if(!((e|0)%308|0))k=1.0;else{i=1.0;do{i=i*10.0;e=e+-1|0}while(((e|0)%308|0|0)!=0);k=i}i=+(m>>>0)+4294967296.0*+(o|0);if(p){i=i/k/1.e+308;break}else{i=i*k*1.e+308;break}}if((e|0)>341){i=+(m>>>0)+4294967296.0*+(o|0);if(p){i=i*0.0;break}else{i=i*w;break}}if(!((e|0)%22|0)){j=e;i=1.0}else{j=e;i=1.0;do{i=i*10.0;j=j+-1|0}while(((j|0)%22|0|0)!=0)}if((j|0)>0){do{i=i*1.0e22;j=j+-22|0}while((j|0)>0);k=i}else k=i;i=+(m>>>0)+4294967296.0*+(o|0);if(p){i=i/k;break}else{i=i*k;break}}while(0);h[(c&q)>>3]=i;f=f>>>0>=t>>>0&(g|0)>0&(l|0)!=0&(u|0)==0&1}else f=0;while(0);return f|0}function Ul(b,d,e,f){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,o=0,q=0,r=0;i=f&255;if(f<<24>>24==1){g=b;h=e;o=1;e=0}else{h=3-i|0;a:do if((h|0)<(e|0))while(1){f=h+2|0;if(a[(b+h&n)>>0]|0){e=1;break a}if((f|0)<(e|0))h=f;else{e=0;h=f;break}}else e=0;while(0);g=b+(i&1)|0;h=i+-3+h|0;o=2}k=b+h|0;b:do if(g>>>0>>0){while(1){h=a[(g&n)>>0]|0;if(!(a[(h&255&n)+10368>>0]&1))break;g=g+o|0;if(g>>>0>=k>>>0){l=0;break b}}if(h<<24>>24==45){g=g+o|0;l=1;break}else if(h<<24>>24==43){g=g+o|0;l=0;break}else{l=0;break}}else l=0;while(0);c:do if(g>>>0>>0){h=g;while(1){if((a[(h&n)>>0]|0)!=48){m=h;break c}h=h+o|0;if(h>>>0>=k>>>0){m=h;break}}}else m=g;while(0);do if(m>>>0>>0){b=m;j=0;i=0;h=0;while(1){f=a[(b&n)>>0]|0;if((f+-48&255)>=10){b=0;k=i;break}i=sw(j|0,i|0,10,0)|0;j=f<<24>>24;i=jw(i|0,G|0,-48,-1)|0;j=jw(i|0,G|0,j|0,((j|0)<0)<<31>>31|0)|0;i=G;h=h+o|0;b=m+h|0;if(b>>>0>=k>>>0){b=1;k=i;break}}i=f<<24>>24;f=(l|0)!=0;if((k|0)>=0)if(f){f=k;r=22;break}else{f=k;r=23;break}else{j=d;c[(j&p)>>2]=f?0:-1;c[(j&p)+4>>2]=f?-2147483648:2147483647;j=f?0:2;break}}else if(!l){b=1;j=0;f=0;i=0;h=0;r=23}else{b=1;j=0;f=0;i=0;h=0;r=22}while(0);if((r|0)==22){l=dw(0,0,j|0,f|0)|0;j=d;c[(j&p)>>2]=l;c[(j&p)+4>>2]=G;j=0}else if((r|0)==23){l=d;c[(l&p)>>2]=j;c[(l&p)+4>>2]=f;j=2}if(((i|0)==0|b?!((h|0)==0&(g|0)==(m|0)):0)?(q=o*19|0,!((h|0)>(q|0)|(e|0)!=0)):0)if((h|0)>=(q|0)){h=0;do{g=a[(m+(ca(h,o)|0)&n)>>0]|0;e=a[(h&n)+11192>>0]|0;h=h+1|0;f=g<<24>>24==e<<24>>24}while(f&(h|0)<18);if(f)g=(a[(m+(o*18|0)&n)>>0]|0)+-56|0;else g=((g<<24>>24)-(e<<24>>24)|0)*10|0;if((g|0)>=0)return ((g|0)>0?1:j)|0;else g=0}else g=0;else g=1;return g|0}function Vl(d){d=d|0;var f=0,g=0;g=d+8|0;f=b[(g&o)>>1]|0;if(f&16384){Rg(d)|0;f=b[(g&o)>>1]|0}do if(f&18){if((c[(d&p)+24>>2]|0)!=0?(c[(d&p)+16>>2]|0)==(c[(d&p)+20>>2]|0):0){f=0;break}f=d+12|0;if(!(eh(d,(c[(f&p)>>2]|0)+2|0,1)|0)){d=d+16|0;a[((c[(d&p)>>2]|0)+(c[(f&p)>>2]|0)&n)>>0]=0;a[((c[(d&p)>>2]|0)+(c[(f&p)>>2]|0)&n)+1>>0]=0;b[(g&o)>>1]=e[(g&o)>>1]|0|512;f=0}else f=7}else f=0;while(0);return f|0}function Wl(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;c=ro(a,b,c,d)|0;if(!c)mg(a,b);return c|0}function Xl(a){a=a|0;var b=0,d=0,e=0,f=0,g=0;d=c[(a&p)>>2]|0;c[(d&p)+200>>2]=c[(a&p)+20>>2];c[(d&p)+196>>2]=c[(a&p)+56>>2];c[(d&p)+4>>2]=c[(a&p)+8>>2];c[(d&p)+32>>2]=c[(a&p)+48>>2];c[(d&p)+8>>2]=c[(a&p)+16>>2];c[(d&p)+28>>2]=c[(a&p)+52>>2];c[(d&p)+56>>2]=c[(a&p)+24>>2];c[(d&p)+36>>2]=c[(a&p)+40>>2];g=a+32|0;f=c[(g&p)+4>>2]|0;b=c[(d&p)>>2]|0;e=b+32|0;c[(e&p)>>2]=c[(g&p)>>2];c[(e&p)+4>>2]=f;c[(d&p)+92>>2]=c[(a&p)+68>>2];c[(b&p)+80>>2]=c[(a&p)+72>>2];return c[(a&p)+44>>2]|0}function Yl(a,c){a=a|0;c=c|0;if((b[(a&o)+8>>1]&2)!=0?(d[(a&n)+10>>0]|0|0)!=(c|0):0)c=Bn(a,c&255)|0;else c=0;return c|0}function Zl(a,d,f){a=a|0;d=d|0;f=f|0;var g=0;g=a+8|0;if(b[(g&o)>>1]&9312)vg(a);c[(a&p)>>2]=c[(d&p)>>2];c[(a&p)+4>>2]=c[(d&p)+4>>2];c[(a&p)+8>>2]=c[(d&p)+8>>2];c[(a&p)+12>>2]=c[(d&p)+12>>2];c[(a&p)+16>>2]=c[(d&p)+16>>2];if(!(b[(d&o)+8>>1]&2048))b[(g&o)>>1]=(e[(g&o)>>1]|0)&58367|f;return}function _l(a,d){a=a|0;d=d|0;var e=0,f=0;if(!((b[(a&o)+8>>1]&9312)==0?(c[(a&p)+24>>2]|0)==0:0))Qg(a);a=a+0|0;e=d+0|0;f=a+40|0;do{c[(a&p)>>2]=c[(e&p)>>2];a=a+4|0;e=e+4|0}while((a|0)<(f|0));b[(d&o)+8>>1]=1;c[(d&p)+24>>2]=0;return}function $l(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,q=0;q=c[(a&p)>>2]|0;m=q+500|0;f=c[(m&p)>>2]|0;do if((f|0)!=0?(n=a+104|0,e=c[(n&p)>>2]|0,(e|0)!=0):0){o=e+-1|0;k=q+20|0;e=c[(k&p)>>2]|0;if((e|0)>0){i=q+16|0;j=(b|0)==2;g=e;h=0;e=0;do{f=c[((c[(i&p)>>2]|0)+(h<<4)&p)+4>>2]|0;if(f){if(j?(l=um(f,2,o)|0,(l|0)!=0):0)f=l;else f=um(f,1,o)|0;g=c[(k&p)>>2]|0;e=(e|0)==0?f:e}h=h+1|0}while((h|0)<(g|0));c[(m&p)>>2]=(c[(m&p)>>2]|0)+-1;c[(n&p)>>2]=0;if(!e)e=13;else{d=e;e=16}}else{c[(m&p)>>2]=f+-1;c[(n&p)>>2]=0;e=13}do if((e|0)==13){if((b|0)==2?(d=sm(q,2,o)|0,(d|0)!=0):0)break;d=sm(q,1,o)|0;e=16}while(0);if((e|0)==16)if((b|0)!=2)break;m=a+152|0;l=c[(m&p)+4>>2]|0;k=q+504|0;c[(k&p)>>2]=c[(m&p)>>2];c[(k&p)+4>>2]=l;k=a+160|0;l=c[(k&p)+4>>2]|0;m=q+512|0;c[(m&p)>>2]=c[(k&p)>>2];c[(m&p)+4>>2]=l}else d=0;while(0);return d|0}function am(d){d=d|0;var f=0,g=0;f=d+12|0;if(!(eh(d,(c[(f&p)>>2]|0)+2|0,1)|0)){g=d+16|0;a[((c[(g&p)>>2]|0)+(c[(f&p)>>2]|0)&n)>>0]=0;a[((c[(g&p)>>2]|0)+(c[(f&p)>>2]|0)&n)+1>>0]=0;f=d+8|0;b[(f&o)>>1]=e[(f&o)>>1]|0|512;f=0}else f=7;return f|0}function bm(d,f,g){d=d|0;f=f|0;g=g|0;var l=0,m=0,r=0,s=0,t=0,u=0,v=0,w=0;u=i;i=i+16|0;if((i|0)>=(j|0))fa();s=u;t=d+8|0;m=b[(t&o)>>1]|0;if(!(fh(d,32)|0)){l=d+16|0;r=c[(l&p)>>2]|0;if(!(m&4)){h[(k&q)>>3]=+h[(d&q)>>3];c[(s&p)>>2]=c[(k&p)>>2];c[(s&p)+4>>2]=c[(k&p)+4>>2];ad(32,r,20272,s)|0}else{w=d;v=c[(w&p)+4>>2]|0;m=s;c[(m&p)>>2]=c[(w&p)>>2];c[(m&p)+4>>2]=v;ad(32,r,19920,s)|0}m=c[(l&p)>>2]|0;if(!m)l=0;else{l=m;while(1)if(!(a[(l&n)>>0]|0))break;else l=l+1|0;l=l-m&1073741823}c[(d&p)+12>>2]=l;a[(d&n)+10>>0]=1;l=e[(t&o)>>1]|514;b[(t&o)>>1]=g<<24>>24==0?l:l&65523;Yl(d,f&255)|0;l=0}else l=7;i=u;return l|0}function cm(a){a=a|0;var b=0,c=0;b=e[(a&o)+8>>1]|0;c=b&12;if(!c)if(!(b&18))b=0;else b=np(a)|0;else b=c&65535;return b|0}function dm(a){a=a|0;var d=0.0,f=0,g=0,i=0,j=0;d=+h[(a&q)>>3];if(!(d<=-9223372036854775808.0)&!(d>=9223372036854775808.0)?(f=~~d>>>0,g=+R(d)>=1.0?(d>0.0?~~+da(+Q(d/4294967296.0),4294967295.0)>>>0:~~+ba((d-+(~~d>>>0))/4294967296.0)>>>0):0,i=jw(f|0,g|0,1,-2147483648)|0,j=G,!(d!=+(f>>>0)+4294967296.0*+(g|0)|(j>>>0<0|(j|0)==0&i>>>0<2))):0){i=a;c[(i&p)>>2]=f;c[(i&p)+4>>2]=g;f=a+8|0;b[(f&o)>>1]=(e[(f&o)>>1]|0)&48640|4}return}function em(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0;f=a+204|0;e=c[(f&p)>>2]|0;a:do if(e){h=(b|0)<0;do{while(1){if(!h){if((c[(e&p)>>2]|0)!=(b|0))break;g=c[(e&p)+4>>2]|0;if((g|0)<=31?(1<>2]|0;if(g)cc[g&31](c[(e&p)+8>>2]|0);c[(f&p)>>2]=c[(e&p)+16>>2];mg(c[(a&p)>>2]|0,e);e=c[(f&p)>>2]|0;if(!e)break a}f=e+16|0;e=c[(f&p)>>2]|0}while((e|0)!=0)}while(0);return}function fm(a,b,c){a=a|0;b=b|0;c=c|0;do if(b<<24>>24>66){b=e[(a&o)+8>>1]|0;if(!(b&4)){if(b&8){dm(a);break}if(b&2)rh(a,1)}}else if(b<<24>>24==66?(b=e[(a&o)+8>>1]|0,!((b&2|0)!=0|(b&12|0)==0)):0)bm(a,c,1)|0;while(0);return}function gm(a,d,f){a=a|0;d=d|0;f=f|0;var g=0,i=0,j=0;j=a+8|0;g=b[(j&o)>>1]|0;i=g&65535;do if(!(i&1)){d=d&255;if((d|0)==68){d=Vg(a)|0;g=a;c[(g&p)>>2]=d;c[(g&p)+4>>2]=G;b[(j&o)>>1]=(e[(j&o)>>1]|0)&48640|4;break}else if((d|0)==67){op(a);break}else if((d|0)==69){h[(a&q)>>3]=+Ug(a);b[(j&o)>>1]=(e[(j&o)>>1]|0)&48640|8;break}else if((d|0)==65){if(i&16){b[(j&o)>>1]=i&65040;break}if(!((i&2|0)!=0|(i&12|0)==0)){bm(a,f,1)|0;g=b[(j&o)>>1]|0}b[(j&o)>>1]=g&48640|16;break}else{d=i>>>3&2|i;g=d&65535;b[(j&o)>>1]=g;if(!((d&2|0)!=0|(i&12|0)==0)){bm(a,f,1)|0;g=b[(j&o)>>1]|0}b[(j&o)>>1]=g&49123;break}}while(0);return}function hm(a,d,e){a=a|0;d=d|0;e=e|0;var f=0,g=0.0,i=0,j=0.0,k=0,l=0,m=0;l=b[(a&o)+8>>1]|0;k=l&65535;i=b[(d&o)+8>>1]|0;m=i&65535;f=(i|l)&65535;do if(!(f&1)){if(!(f&12)){if(f&2){if(!(k&2)){f=1;break}if(!(m&2)){f=-1;break}if(e){f=pp(a,d,e,0)|0;break}}f=qp(a,d)|0;break}if((l&4&i)<<16>>16){l=a;k=c[(l&p)>>2]|0;l=c[(l&p)+4>>2]|0;i=d;f=c[(i&p)>>2]|0;i=c[(i&p)+4>>2]|0;if((l|0)<(i|0)|(l|0)==(i|0)&k>>>0>>0){f=-1;break}f=((l|0)>(i|0)|(l|0)==(i|0)&k>>>0>f>>>0)&1;break}if(!(k&8)){if(!(k&4)){f=1;break}f=a;j=+((c[(f&p)>>2]|0)>>>0)+4294967296.0*+(c[(f&p)+4>>2]|0)}else j=+h[(a&q)>>3];if(!(m&8)){if(!(m&4)){f=-1;break}f=d;g=+((c[(f&p)>>2]|0)>>>0)+4294967296.0*+(c[(f&p)+4>>2]|0)}else g=+h[(d&q)>>3];if(jg&1}else f=(m&1)-(k&1)|0;while(0);return f|0}function im(b){b=b|0;var d=0,e=0,f=0,g=0;g=i;i=i+16|0;if((i|0)>=(j|0))fa();f=g;e=g+8|0;d=b+48|0;d=Cm(c[(b&p)>>2]|0,0,c[(d&p)>>2]|0,c[(d&p)+4>>2]|0,0,e)|0;do if(!d)if(!(c[(e&p)>>2]|0)){a[(b&n)+26>>0]=0;c[(b&p)+60>>2]=0;d=0;break}else{c[(f&p)>>2]=67421;c[(f&p)+4>>2]=10788;bd(11,13600,f);d=11;break}while(0);i=g;return d|0}function jm(b){b=b|0;var d=0,e=0,f=0;e=c[(b&p)>>2]|0;f=e+73|0;d=a[(f&n)>>0]|0;do if((d&255)>2){d=Kn(e)|0;if(!d){d=a[(f&n)>>0]|0;f=5;break}else{c[(b&p)+60>>2]=0;f=6;break}}else f=5;while(0);if((f|0)==5){c[(b&p)+60>>2]=0;if(d<<24>>24==1)d=0;else{d=0;f=6}}if((f|0)==6)a[(b&n)+25>>0]=1;return d|0}function km(f,g){f=f|0;g=g|0;var h=0,i=0,j=0,k=0;h=f+24|0;if(!(b[(f&o)+44>>1]|0)){j=b[(f&o)+76>>1]|0;i=c[(f+(j<<2)&p)+120>>2]|0;j=e[(f+(j<<1)&o)+78>>1]<<1;k=c[(i&p)+64>>2]|0;rp(i,(c[(i&p)+56>>2]|0)+((d[(k+j&n)>>0]<<8|d[(k+(j|1)&n)>>0])&e[(i&o)+20>>1])|0,h);f=f+72|0;a[(f&n)>>0]=d[(f&n)>>0]|2}i=h;f=c[(i&p)+4>>2]|0;h=g;c[(h&p)>>2]=c[(i&p)>>2];c[(h&p)+4>>2]=f;return}function lm(f,g){f=f|0;g=g|0;var h=0,i=0,j=0;if(!(b[(f&o)+44>>1]|0)){i=b[(f&o)+76>>1]|0;h=c[(f+(i<<2)&p)+120>>2]|0;i=e[(f+(i<<1)&o)+78>>1]<<1;j=c[(h&p)+64>>2]|0;rp(h,(c[(h&p)+56>>2]|0)+((d[(j+i&n)>>0]<<8|d[(j+(i|1)&n)>>0])&e[(h&o)+20>>1])|0,f+24|0);h=f+72|0;a[(h&n)>>0]=d[(h&n)>>0]|2}c[(g&p)>>2]=c[(f&p)+36>>2];return}function mm(a,b){a=a|0;b=b|0;var e=0,f=0,g=0,h=0,k=0;k=i;i=i+16|0;if((i|0)>=(j|0))fa();h=k;e=d[(a&n)>>0]|0;g=d[(a&n)+1>>0]|0;do if(g&128){f=d[(a&n)+2>>0]|0;if(!(f&128)){c[(b&p)>>2]=(f|e<<14)&2080895|g<<7&16256;e=3;break}else{e=sp(a,h)|0;g=h;f=c[(g&p)>>2]|0;c[(b&p)>>2]=((f|0)==(f|0)?0==(c[(g&p)+4>>2]|0):0)?f:-1;break}}else{c[(b&p)>>2]=e<<7&16256|g;e=2}while(0);i=k;return e|0}function nm(d,f,g,h,i){d=d|0;f=f|0;g=g|0;h=h|0;i=i|0;var j=0,k=0,l=0;j=(h|0)==0;do if((g+f|0)>>>0>(e[(d&o)+40>>1]|0)>>>0){l=i+8|0;b[(l&o)>>1]=1;h=fh(i,g+2|0)|0;if(!h){k=i+16|0;h=c[(k&p)>>2]|0;if(j)h=Dh(d,f,g,h)|0;else h=Lm(d,f,g,h,0)|0;if(!h){a[((c[(k&p)>>2]|0)+g&n)>>0]=0;a[((c[(k&p)>>2]|0)+g&n)+1>>0]=0;b[(l&o)>>1]=528;c[(i&p)+12>>2]=g;h=0;break}if((b[(l&o)>>1]&9312)==0?(c[(i&p)+24>>2]|0)==0:0)break;Qg(i)}}else{c[(i&p)+16>>2]=(c[(d&p)+32>>2]|0)+f;b[(i&o)+8>>1]=4112;c[(i&p)+12>>2]=g;h=0}while(0);return h|0}function om(e,f,g){e=e|0;f=f|0;g=g|0;var h=0;switch(f|0){case 9:case 8:{e=g;c[(e&p)>>2]=f+-8;c[(e&p)+4>>2]=0;b[(g&o)+8>>1]=4;e=0;break}case 1:{f=a[(e&n)>>0]|0;e=g;c[(e&p)>>2]=f;c[(e&p)+4>>2]=((f|0)<0)<<31>>31;b[(g&o)+8>>1]=4;e=1;break}case 0:case 11:case 10:{b[(g&o)+8>>1]=1;e=0;break}case 3:{f=d[(e&n)+1>>0]<<8|a[(e&n)>>0]<<16|d[(e&n)+2>>0];e=g;c[(e&p)>>2]=f;c[(e&p)+4>>2]=((f|0)<0)<<31>>31;b[(g&o)+8>>1]=4;e=3;break}case 4:{f=d[(e&n)+1>>0]<<16|a[(e&n)>>0]<<24|d[(e&n)+2>>0]<<8|d[(e&n)+3>>0];e=g;c[(e&p)>>2]=f;c[(e&p)+4>>2]=((f|0)<0)<<31>>31;b[(g&o)+8>>1]=4;e=4;break}case 2:{f=a[(e&n)>>0]<<8|d[(e&n)+1>>0];e=g;c[(e&p)>>2]=f;c[(e&p)+4>>2]=((f|0)<0)<<31>>31;b[(g&o)+8>>1]=4;e=2;break}case 7:case 6:{tp(e,f,g);e=8;break}case 5:{h=a[(e&n)>>0]<<8|d[(e&n)+1>>0];f=g;c[(f&p)>>2]=d[(e&n)+3>>0]<<16|d[(e&n)+2>>0]<<24|d[(e&n)+4>>0]<<8|d[(e&n)+5>>0];c[(f&p)+4>>2]=h;b[(g&o)+8>>1]=4;e=6;break}default:{c[(g&p)+16>>2]=e;e=(f+-12|0)>>>1;c[(g&p)+12>>2]=e;b[(g&o)+8>>1]=b[((f&1)<<1&o)+34328>>1]|0}}return e|0}function pm(b,c,d){b=b|0;c=c|0;d=d|0;do if(!(d>>>0<0|(d|0)==0&c>>>0<128))if(d>>>0<0|(d|0)==0&c>>>0<16384){d=mw(c|0,d|0,7)|0;a[(b&n)>>0]=d|128;a[(b&n)+1>>0]=c&127;c=2;break}else{c=up(b,c,d)|0;break}else{a[(b&n)>>0]=c&127;c=1}while(0);return c|0}function qm(e){e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0;m=i;i=i+16|0;if((i|0)>=(j|0))fa();l=m;k=e+73|0;f=a[(k&n)>>0]|0;do if((f&255)>2)if(f<<24>>24==4){f=c[(e&p)+68>>2]|0;break}else{g=e+56|0;Wc(c[(g&p)>>2]|0);c[(g&p)>>2]=0;a[(k&n)>>0]=0;g=5;break}else g=5;while(0);a:do if((g|0)==5){h=e+76|0;f=b[(h&o)>>1]|0;do if(f<<16>>16<=-1){f=c[(e&p)+60>>2]|0;if(!f){a[(k&n)>>0]=0;f=0;break a}g=e+120|0;f=vp(c[((c[(e&p)>>2]|0)&p)+4>>2]|0,f,g,(a[(e&n)+72>>0]&1)<<1^2)|0;if(!f){b[(h&o)>>1]=0;f=g;break}else{a[(k&n)>>0]=0;break a}}else{if(f<<16>>16)do{g=f+-1<<16>>16;b[(h&o)>>1]=g;f=c[(e+(f<<16>>16<<2)&p)+120>>2]|0;if(!f)f=g;else{Bg(c[(f&p)+68>>2]|0);f=b[(h&o)>>1]|0}}while(f<<16>>16!=0);f=e+120|0}while(0);f=c[(f&p)>>2]|0;if((a[(f&n)>>0]|0)!=0?((c[(e&p)+16>>2]|0)==0|0)==(d[(f&n)+2>>0]|0):0){b[(e&o)+78>>1]=0;b[(e&o)+44>>1]=0;g=e+72|0;a[(g&n)>>0]=d[(g&n)>>0]&241;if(b[(f&o)+18>>1]|0){a[(k&n)>>0]=1;f=0;break}if(a[(f&n)+5>>0]|0){a[(k&n)>>0]=0;f=0;break}if((c[(f&p)+72>>2]|0)==1){g=d[(f&n)+6>>0]|0;f=c[(f&p)+56>>2]|0;f=d[(f+g&n)+9>>0]<<16|d[(f+g&n)+8>>0]<<24|d[(f+g&n)+10>>0]<<8|d[(f+g&n)+11>>0];a[(k&n)>>0]=1;f=rm(e,f)|0;break}else{c[(l&p)>>2]=57629;c[(l&p)+4>>2]=10788;bd(11,13600,l);f=11;break}}c[(l&p)>>2]=57618;c[(l&p)+4>>2]=10788;bd(11,13600,l);f=11}while(0);i=m;return f|0}function rm(e,f){e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,q=0;q=i;i=i+16|0;if((i|0)>=(j|0))fa();m=q;l=q+8|0;g=e+76|0;k=b[(g&o)>>1]|0;h=k<<16>>16;do if(k<<16>>16<=18){k=e+72|0;f=vp(c[(e&p)+4>>2]|0,f,l,(a[(k&n)>>0]&1)<<1^2)|0;if(!f){f=c[(l&p)>>2]|0;l=h+1|0;c[(e+(l<<2)&p)+120>>2]=f;b[(e+(l<<1)&o)+78>>1]=0;b[(g&o)>>1]=(b[(g&o)>>1]|0)+1<<16>>16;b[(e&o)+44>>1]=0;a[(k&n)>>0]=d[(k&n)>>0]&249;if((b[(f&o)+18>>1]|0)!=0?(a[(f&n)+2>>0]|0)==(a[((c[(e+(h<<2)&p)+120>>2]|0)&n)+2>>0]|0):0){f=0;break}c[(m&p)>>2]=57499;c[(m&p)+4>>2]=10788;bd(11,13600,m);f=11}}else{c[(m&p)>>2]=57487;c[(m&p)+4>>2]=10788;bd(11,13600,m);f=11}while(0);i=q;return f|0}function sm(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,i=0,j=0;j=a+328|0;a:do if(!(c[(j&p)>>2]|0))a=0;else{g=a+304|0;h=d+1|0;i=0;while(1){if((i|0)>=(c[(g&p)>>2]|0)){a=0;break a}f=c[((c[(j&p)>>2]|0)+(i<<2)&p)>>2]|0;a=c[(c[(f&p)+4>>2]&p)>>2]|0;e=c[(f&p)+8>>2]|0;if((e|0)!=0?(c[(a&p)>>2]|0)>1:0){if(!b){a=c[(a&p)+80>>2]|0;c[(f&p)+20>>2]=h}else if((b|0)==2)a=c[(a&p)+88>>2]|0;else a=c[(a&p)+84>>2]|0;if((a|0)!=0?(c[(f&p)+20>>2]|0)>(d|0):0){a=rc[a&127](e,d)|0;if(!a){i=i+1|0;continue}else break a}}i=i+1|0}}while(0);return a|0}function tm(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0;h=i;i=i+16|0;if((i|0)>=(j|0))fa();f=h;e=c[(b&p)>>2]|0;if(!d){d=b+144|0;k=c[(d&p)+4>>2]|0;if((k|0)>0|(k|0)==0&(c[(d&p)>>2]|0)>>>0>0)g=4;else e=0}else{d=e+504|0;k=e+512|0;d=jw(c[(k&p)>>2]|0,c[(k&p)+4>>2]|0,c[(d&p)>>2]|0,c[(d&p)+4>>2]|0)|0;k=G;if((k|0)>0|(k|0)==0&d>>>0>0)g=4;else e=0}if((g|0)==4){c[(b&p)+80>>2]=787;a[(b&n)+86>>0]=2;dh(b+44|0,e,34376,f);e=1}i=h;return e|0}function um(e,f,g){e=e|0;f=f|0;g=g|0;var h=0;if((e|0)!=0?(a[(e&n)+8>>0]|0)==2:0){h=c[(e&p)+4>>2]|0;c[(h&p)+4>>2]=c[(e&p)>>2];f=jp(c[(h&p)>>2]|0,f,g)|0;if(!f){if((g|0)<0?(b[(h&o)+22>>1]&8)!=0:0)c[(h&p)+44>>2]=0;f=Cg(h)|0;e=c[((c[(h&p)+12>>2]|0)&p)+56>>2]|0;c[(h&p)+44>>2]=d[(e&n)+29>>0]<<16|d[(e&n)+28>>0]<<24|d[(e&n)+30>>0]<<8|d[(e&n)+31>>0]}}else f=0;return f|0}function vm(a,b){a=a|0;b=b|0;a=a+16|0;ql(c[((c[(a&p)>>2]|0)+(b<<4)&p)+12>>2]|0);if((b|0)!=1)ql(c[((c[(a&p)>>2]|0)&p)+28>>2]|0);return}function wm(a,b,e){a=a|0;b=b|0;e=e|0;var f=0;f=c[(a&p)+4>>2]|0;c[(f&p)+4>>2]=c[(a&p)>>2];if((b|0)==15)f=(c[(a&p)+20>>2]|0)+(c[((c[(f&p)>>2]|0)&p)+100>>2]|0)|0;else{b=b<<2;f=c[((c[(f&p)+12>>2]|0)&p)+56>>2]|0;f=(d[(f+b&n)+37>>0]|0)<<16|(d[(f+b&n)+36>>0]|0)<<24|(d[(f+b&n)+38>>0]|0)<<8|(d[(f+b&n)+39>>0]|0)}c[(e&p)>>2]=f;return}function xm(d,e,f,g,h){d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var i=0,j=0,k=0,l=0,m=0,q=0;k=(c[(d&p)+28>>2]|0)-e|0;i=c[(d&p)+8>>2]|0;q=(f<<3)+88|0;m=(h|0)!=0;l=d+56|0;j=c[((c[(l&p)>>2]|0)+(e<<2)&p)>>2]|0;if(j){Bm(d,j);c[((c[(l&p)>>2]|0)+(e<<2)&p)>>2]=0}if(!(fh(i+(k*40|0)|0,(m?200:0)+q|0)|0)){k=i+(k*40|0)+16|0;h=c[(k&p)>>2]|0;c[((c[(l&p)>>2]|0)+(e<<2)&p)>>2]=h;i=h+0|0;j=i+88|0;do{c[(i&p)>>2]=0;i=i+4|0}while((i|0)<(j|0));a[(h&n)+24>>0]=g;b[(h&o)+20>>1]=f;c[(h&p)+80>>2]=h+84+(f<<2);if(m){i=(c[(k&p)>>2]|0)+q|0;c[(h&p)>>2]=i;i=i+0|0;j=i+76|0;do{c[(i&p)>>2]=0;i=i+4|0}while((i|0)<(j|0))}}else h=0;return h|0}function ym(d,e,f,g,h){d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var i=0,j=0,k=0,l=0;k=c[(d&p)+4>>2]|0;c[(k&p)+4>>2]=c[(d&p)>>2];if(f)if(!(b[(k&o)+22>>1]&1)){j=k+80|0;if(!(c[(j&p)>>2]|0)){i=Go(c[(k&p)+32>>2]|0)|0;c[(j&p)>>2]=i;if(!i)i=7;else{l=i;i=l;a[(i&n)>>0]=0;a[(i&n)+1>>0]=0;a[(i&n)+2>>0]=0;a[(i&n)+3>>0]=0;l=l+4|0;a[(l&n)>>0]=0;a[(l&n)+1>>0]=0;a[(l&n)+2>>0]=0;a[(l&n)+3>>0]=0;c[(j&p)>>2]=(c[(j&p)>>2]|0)+4;l=6}}else l=6}else i=8;else l=6;if((l|0)==6){if((e|0)==1)e=(c[(k&p)+44>>2]|0)!=0&1;c[(h&p)+60>>2]=e;b[(h&o)+76>>1]=-1;c[(h&p)+16>>2]=g;c[(h&p)>>2]=d;c[(h&p)+4>>2]=k;a[(h&n)+72>>0]=f;i=k+8|0;e=c[(i&p)>>2]|0;c[(h&p)+8>>2]=e;if(e)c[(e&p)+12>>2]=h;c[(i&p)>>2]=h;a[(h&n)+73>>0]=0;i=0}return i|0}function zm(f,g,h,k,l,m){f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;m=m|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,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;S=i;i=i+128|0;if((i|0)>=(j|0))fa();D=S;K=S+12|0;H=S+8|0;P=S+16|0;N=(g|0)==0;if(!N){r=(a[(g&n)>>0]|0)==0;if(_v(g,14640)|0)if(r)J=4;else{r=0;J=5}else O=1}else J=4;if((J|0)==4)if((a[(h&n)+64>>0]|0)==2){O=1;r=1}else{r=1;J=5}if((J|0)==5)O=(m&128|0)!=0;M=O?l|2:l;if((m&256|0)!=0&(O|r))m=m&-769|512;R=qg(48,0)|0;a:do if(R){x=R+0|0;w=x+48|0;do{a[(x&n)>>0]=0;x=x+1|0}while((x|0)<(w|0));c[(R&p)>>2]=h;c[(R&p)+32>>2]=R;c[(R&p)+36>>2]=1;b:do if(!r?!(O&(m&64|0)==0|(m&131072|0)==0):0){if(N)r=1;else{r=g;while(1)if(!(a[(r&n)>>0]|0))break;else r=r+1|0;r=(r-g&1073741823)+1|0}l=(c[(f&p)+8>>2]|0)+1|0;u=(l|0)>(r|0)?l:r;u=qg(u,((u|0)<0)<<31>>31)|0;t=R+9|0;a[(t&n)>>0]=1;if(!u){Wc(R);q=7;break a}if(!O){a[(u&n)>>0]=0;r=pc[c[(f&p)+36>>2]&31](f,g,l,u)|0;if(r){Wc(u);Wc(R);q=r;break a}}else kw(u|0,g|0,r|0)|0;r=c[3664]|0;c:do if(r){while(1){l=c[(r&p)>>2]|0;if((_v(u,c[(l&p)+168>>2]|0)|0)==0?(c[(l&p)>>2]|0)==(f|0):0)break;r=c[(r&p)+68>>2]|0;if(!r)break c}l=c[(h&p)+20>>2]|0;d:do if((l|0)>0){s=c[(h&p)+16>>2]|0;while(1){l=l+-1|0;G=c[(s+(l<<4)&p)+4>>2]|0;if((G|0)!=0?(c[(G&p)+4>>2]|0)==(r|0):0)break;if((l|0)<=0)break d}Wc(u);Wc(R);q=19;break a}while(0);c[(R&p)+4>>2]=r;G=r+64|0;c[(G&p)>>2]=(c[(G&p)>>2]|0)+1;Wc(u);if(!r){J=32;break b}if(!(a[(t&n)>>0]|0))break b;else{J=105;break b}}while(0);Wc(u);J=32}else J=32;while(0);e:do if((J|0)==32){L=qg(84,0)|0;if(L){x=L+0|0;w=x+84|0;do{a[(x&n)>>0]=0;x=x+1|0}while((x|0)<(w|0));F=M&1;G=(F|0)==0;c[(K&p)>>2]=1024;E=f+4|0;r=c[(E&p)>>2]|0;if((r|0)>40)l=r+7&-8;else l=40;c[(L&p)>>2]=0;do if(!(M&2))if(!N)if(a[(g&n)>>0]|0){y=f+8|0;t=(c[(y&p)>>2]|0)+1|0;A=t<<1;A=qg(A,((A|0)<0)<<31>>31)|0;if(!A)q=7;else{a[(A&n)>>0]=0;r=pc[c[(f&p)+36>>2]&31](f,g,t,A)|0;t=A;while(1)if(!(a[(t&n)>>0]|0))break;else t=t+1|0;x=t-A&1073741823;u=g;while(1)if(!(a[(u&n)>>0]|0))break;else u=u+1|0;w=(u-g&1073741823)+1|0;u=a[(g+w&n)>>0]|0;w=g+w|0;if(!(u<<24>>24))t=w;else{t=w;do{if(!(u<<24>>24))u=t;else{u=t;do u=u+1|0;while((a[(u&n)>>0]|0)!=0)}u=u-t&1073741823;s=t+(u+1)|0;v=s;while(1)if(!(a[(v&n)>>0]|0))break;else v=v+1|0;t=t+(u+2+(v-s&1073741823))|0;u=a[(t&n)>>0]|0}while(u<<24>>24!=0)}if(!r){if((x+8|0)<=(c[(y&p)>>2]|0)){z=1;D=0;y=x;x=t+1-w|0;u=A;J=58;break}c[(D&p)>>2]=46171;c[(D&p)+4>>2]=10788;bd(14,14848,D);r=14}Wc(A);J=89}}else{z=1;D=0;y=0;x=0;u=0;w=0;J=58}else{g=0;z=0;D=0;y=0;x=0;u=0;w=0;J=58}else if(!N)if(a[(g&n)>>0]|0){u=kh(0,g)|0;if(!u)q=7;else{r=u;while(1)if(!(a[(r&n)>>0]|0))break;else r=r+1|0;g=0;z=0;D=1;y=r-u&1073741823;x=0;w=0;J=58}}else{z=1;D=1;y=0;x=0;u=0;w=0;J=58}else{g=0;z=0;D=1;y=0;x=0;u=0;w=0;J=58}while(0);do if((J|0)==58){t=(l<<1)+17+(y*3|0)+x+((c[(E&p)>>2]|0)+271&-8)|0;C=qg(t,0)|0;if(!C){if(!u){q=7;break}Wc(u);q=7;break}fw(C|0,0,t|0)|0;A=C+204|0;c[(A&p)>>2]=C+216;B=C+60|0;c[(B&p)>>2]=C+264;v=(c[(E&p)>>2]|0)+271&-8;c[(C&p)+68>>2]=C+v;v=v+l|0;c[(C&p)+64>>2]=C+v;v=v+l|0;t=C+v|0;r=C+168|0;c[(r&p)>>2]=t;if(u){s=y+1|0;l=C+172|0;c[(l&p)>>2]=C+(x+s+v);kw(t|0,u|0,y|0)|0;if(x)kw((c[(r&p)>>2]|0)+s|0,w|0,x|0)|0;kw(c[(l&p)>>2]|0,u|0,y|0)|0;x=(c[(l&p)>>2]|0)+y+0|0;v=14928;w=x+10|0;do{a[(x&n)>>0]=a[(v&n)>>0]|0;x=x+1|0;v=v+1|0}while((x|0)<(w|0));l=(c[(l&p)>>2]|0)+(y+9)|0;E=C+212|0;c[(E&p)>>2]=l;kw(l|0,u|0,y|0)|0;E=(c[(E&p)>>2]|0)+y|0;a[(E&n)>>0]=a[14944]|0;a[(E&n)+1>>0]=a[14945]|0;a[(E&n)+2>>0]=a[14946]|0;a[(E&n)+3>>0]=a[14947]|0;a[(E&n)+4>>0]=a[14948]|0;Wc(u)}c[(C&p)>>2]=f;c[(C&p)+144>>2]=m;do if(z?(a[(g&n)>>0]|0)!=0:0){c[(H&p)>>2]=0;r=tc[c[(f&p)+24>>2]&31](f,c[(r&p)>>2]|0,c[(B&p)>>2]|0,m&556927,H)|0;s=c[(H&p)>>2]&1;if(!r){r=c[(B&p)>>2]|0;r=lc[c[((c[(r&p)>>2]|0)&p)+48>>2]&127](r)|0;do if((s|0)==0?(wp(C),I=c[(C&p)+148>>2]|0,I>>>0>1024):0)if(I>>>0>8192){c[(K&p)>>2]=8192;break}else{c[(K&p)>>2]=I;break}while(0);a[(C&n)+13>>0]=fg(g,14952,0)|0;if((r&8192|0)==0?(fg(g,14960,0)|0)==0:0){v=0;J=77;break}r=m|1;J=76}}else{r=m;J=76}while(0);if((J|0)==76){a[(C&n)+16>>0]=1;a[(C&n)+17>>0]=4;a[(C&n)+13>>0]=1;s=r&1;v=1;J=77}if((J|0)==77){r=al(C,K,-1)|0;if(!r){l=c[(K&p)>>2]|0;u=(D|0)==0;m=D^1;t=u?75:0;r=c[(A&p)>>2]|0;x=r+0|0;w=x+48|0;do{c[(x&p)>>2]=0;x=x+4|0}while((x|0)<(w|0));c[(r&p)+20>>2]=1;c[(r&p)+24>>2]=80;a[(r&n)+28>>0]=m;a[(r&n)+29>>0]=2;c[(r&p)+32>>2]=t;c[(r&p)+36>>2]=C;c[(r&p)+16>>2]=100;r=Ho(r,l)|0;if(!r){a[(C&n)+6>>0]=F^1;c[(C&p)+156>>2]=1073741823;a[(C&n)+12>>0]=v;a[(C&n)+4>>0]=v;a[(C&n)+18>>0]=v;a[(C&n)+15>>0]=D;a[(C&n)+14>>0]=s;a[(C&n)+7>>0]=v;if(!(v<<24>>24)){a[(C&n)+8>>0]=1;a[(C&n)+11>>0]=2;a[(C&n)+10>>0]=34;a[(C&n)+9>>0]=2}b[(C&o)+140>>1]=80;H=C+160|0;c[(H&p)>>2]=-1;c[(H&p)+4>>2]=-1;wp(C);do if(G){if(u)break;a[(C&n)+5>>0]=4}else a[(C&n)+5>>0]=2;while(0);c[(C&p)+196>>2]=21;c[(L&p)>>2]=C;J=90;break}}}l=c[(B&p)>>2]|0;m=c[(l&p)>>2]|0;if(m){lc[c[(m&p)+4>>2]&127](l)|0;c[(l&p)>>2]=0}$k(c[(C&p)+200>>2]|0);Wc(C);J=89}while(0);if((J|0)==89)if(!r)J=90;else q=r;do if((J|0)==90){r=c[(L&p)>>2]|0;H=h+40|0;w=c[(H&p)+4>>2]|0;x=r+128|0;c[(x&p)>>2]=c[(H&p)>>2];c[(x&p)+4>>2]=w;x=P+0|0;w=x+100|0;do{a[(x&n)>>0]=0;x=x+1|0}while((x|0)<(w|0));r=c[(r&p)+60>>2]|0;l=c[(r&p)>>2]|0;if((l|0)!=0?(q=tc[c[(l&p)+8>>2]&31](r,P,100,0,0)|0,!((q|0)==0|(q|0)==522)):0)break;a[(L&n)+16>>0]=M;c[(L&p)+4>>2]=h;r=c[(L&p)>>2]|0;l=r+176|0;c[(l&p)>>2]=76;c[(r&p)+180>>2]=L;m=c[(r&p)+60>>2]|0;q=c[(m&p)>>2]|0;if(!q)l=r;else{ac[c[(q&p)+40>>2]&63](m,15,l)|0;l=c[(L&p)>>2]|0}c[(R&p)+4>>2]=L;c[(L&p)+8>>2]=0;c[(L&p)+12>>2]=0;if(a[(l&n)+14>>0]|0){H=L+22|0;b[(H&o)>>1]=e[(H&o)>>1]|1}H=d[(P&n)+17>>0]<<16|d[(P&n)+16>>0]<<8;m=L+32|0;c[(m&p)>>2]=H;if((H+-512|0)>>>0<=65024?(H+16777215&H|0)==0:0){r=a[(P&n)+20>>0]|0;H=L+22|0;b[(H&o)>>1]=e[(H&o)>>1]|2;a[(L&n)+17>>0]=(d[(P&n)+53>>0]<<16|d[(P&n)+52>>0]<<24|d[(P&n)+54>>0]<<8|d[(P&n)+55>>0]|0)!=0&1;a[(L&n)+18>>0]=(d[(P&n)+65>>0]<<16|d[(P&n)+64>>0]<<24|d[(P&n)+66>>0]<<8|d[(P&n)+67>>0]|0)!=0&1}else{c[(m&p)>>2]=0;if(N|O)r=0;else{a[(L&n)+17>>0]=0;a[(L&n)+18>>0]=0;r=0}}r=r&255;q=al(l,m,r)|0;if(!q){c[(L&p)+36>>2]=(c[(m&p)>>2]|0)-r;if(!(a[(R&n)+9>>0]|0))break e;c[(L&p)+64>>2]=1;c[(L&p)+68>>2]=c[3664];c[3664]=L;J=105;break e}}while(0);if(L){m=c[(L&p)>>2]|0;if(!m)m=L;else{lp(m);m=L}}else m=0}else{m=0;q=7}Wc(m);Wc(R);c[(k&p)>>2]=0;break a}while(0);f:do if((J|0)==105?(Q=c[(h&p)+20>>2]|0,(Q|0)>0):0){m=c[(h&p)+16>>2]|0;l=0;while(1){q=c[(m+(l<<4)&p)+4>>2]|0;if((q|0)!=0?(a[(q&n)+9>>0]|0)!=0:0){l=q;break}l=l+1|0;if((l|0)>=(Q|0))break f}while(1){q=l+28|0;m=c[(q&p)>>2]|0;if(!m){m=l;break}else l=m}r=c[(R&p)+4>>2]|0;if(r>>>0<(c[(m&p)+4>>2]|0)>>>0){c[(R&p)+24>>2]=m;c[(R&p)+28>>2]=0;c[(q&p)>>2]=R;break}while(1){q=m+24|0;l=c[(q&p)>>2]|0;if(!l){J=113;break}if((c[(l&p)+4>>2]|0)>>>0>>0)m=l;else{J=115;break}}if((J|0)==113){c[(R&p)+24>>2]=0;c[(R&p)+28>>2]=m}else if((J|0)==115){c[(R&p)+24>>2]=l;c[(R&p)+28>>2]=m;c[(l&p)+28>>2]=R}c[(q&p)>>2]=R}while(0);c[(k&p)>>2]=R;q=c[(R&p)+4>>2]|0;c[(q&p)+4>>2]=c[(R&p)>>2];if(!(c[(q&p)+48>>2]|0)){q=c[((c[(q&p)>>2]|0)&p)+204>>2]|0;c[(q&p)+16>>2]=2e3;jc[c[8868>>2]&15](c[(q&p)+40>>2]|0,2e3);q=0}else q=0}else q=7;while(0);i=S;return q|0}function Am(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,o=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0;A=i;i=i+48|0;if((i|0)>=(j|0))fa();t=A;x=A+28|0;y=A+24|0;w=A+20|0;o=A+16|0;r=A+12|0;s=A+32|0;u=A+8|0;h=c[(b&p)>>2]|0;v=c[(b&p)+4>>2]|0;g=v+4|0;c[(g&p)>>2]=h;a:do if(!(a[(v&n)+17>>0]|0)){g=ip(v,x,y,1,0)|0;c[(w&p)>>2]=g;if(!g){h=c[(x&p)>>2]|0;z=39}}else{q=v+8|0;k=c[(q&p)>>2]|0;if(k)do{m=k+72|0;a[(m&n)>>0]=d[(m&n)>>0]&251;k=c[(k&p)+8>>2]|0}while((k|0)!=0);c[(g&p)>>2]=h;m=c[((c[(v&p)+12>>2]|0)&p)+56>>2]|0;m=d[(m&n)+53>>0]<<16|d[(m&n)+52>>0]<<24|d[(m&n)+54>>0]<<8|d[(m&n)+55>>0];c[(y&p)>>2]=m;h=((c[2514]|0)>>>0)/((c[(v&p)+32>>2]|0)>>>0)|0;g=v+36|0;while(1){l=m+1|0;if(l>>>0<2)k=0;else{k=m+-1|0;k=k-((k>>>0)%(((((c[(g&p)>>2]|0)>>>0)/5|0)+1|0)>>>0)|0)|0;k=((k+1|0)==(h|0)?3:2)+k|0}if((l|0)==(k|0)|(m|0)==(h|0))m=l;else break}c[(y&p)>>2]=l;g=ip(v,r,o,l,1)|0;c[(w&p)>>2]=g;if(!g){m=c[(o&p)>>2]|0;do if((m|0)==(l|0)){h=c[(r&p)>>2]|0;c[(x&p)>>2]=h}else{a[(s&n)>>0]=0;c[(u&p)>>2]=0;k=c[(q&p)>>2]|0;b:do if(!k)g=0;else{while(1){if(k)break;k=c[2]|0;if(!k){g=0;break b}}g=Fl(k,0,0)|0}while(0);c[(w&p)>>2]=g;k=c[(r&p)>>2]|0;if(k)Bg(c[(k&p)+68>>2]|0);if(g)break a;g=dl(v,l,x,0)|0;c[(w&p)>>2]=g;if(g)break a;g=hp(v,l,s,u)|0;c[(w&p)>>2]=g;k=a[(s&n)>>0]|0;if((k+-1&255)>=2){h=c[(x&p)>>2]|0;if(!g){g=Zm(v,h,k,c[(u&p)>>2]|0,m,0)|0;c[(w&p)>>2]=g;if(h)Bg(c[(h&p)+68>>2]|0);if(g)break a;g=dl(v,l,x,0)|0;c[(w&p)>>2]=g;if(g)break a;h=c[(x&p)>>2]|0;k=h+68|0;g=Gg(c[(k&p)>>2]|0)|0;c[(w&p)>>2]=g;if(!g)break;if(!h)break a;Bg(c[(k&p)>>2]|0);break a}}else{c[(t&p)>>2]=60876;c[(t&p)+4>>2]=10788;bd(11,13600,t);c[(w&p)>>2]=11;g=11;h=c[(x&p)>>2]|0}if(!h)break a;Bg(c[(h&p)+68>>2]|0);break a}while(0);zp(v,l,1,0,w);g=c[(w&p)>>2]|0;if(g){if(!h)break;Bg(c[(h&p)+68>>2]|0);break}g=Dg(b,4,l)|0;c[(w&p)>>2]=g;if(g){if(h)Bg(c[(h&p)+68>>2]|0)}else z=39}}while(0);if((z|0)==39){pl(h,(f&1|0)==0?10:13);g=c[((c[(x&p)>>2]|0)&p)+68>>2]|0;if(g)Bg(g);c[(e&p)>>2]=c[(y&p)>>2];g=0}i=A;return g|0}function Bm(a,b){a=a|0;b=b|0;var d=0,e=0;do if(b){a=c[(a&p)>>2]|0;d=b+56|0;e=c[(d&p)>>2]|0;if(e){_m(a,e);Wc(c[(e&p)+40>>2]|0);mg(a,e);c[(d&p)>>2]=0}a=c[(b&p)+4>>2]|0;if(a){Ml(a);break}a=c[(b&p)>>2]|0;if(a){kp(a);break}a=c[(b&p)+32>>2]|0;if(a){e=c[(a&p)>>2]|0;d=c[(e&p)>>2]|0;e=e+4|0;c[(e&p)>>2]=(c[(e&p)>>2]|0)+-1;lc[c[(d&p)+28>>2]&127](a)|0}}while(0);return}function Cm(f,g,h,k,l,m){f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;m=m|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,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0;Q=i;i=i+16|0;if((i|0)>=(j|0))fa();O=Q+8|0;N=Q;t=f+73|0;do if(((a[(t&n)>>0]|0)==1?(s=d[(f&n)+72>>0]|0,(s&2|0)!=0):0)?(a[((c[(f&p)+120>>2]|0)&n)+2>>0]|0)!=0:0){q=f+24|0;r=c[(q&p)>>2]|0;q=c[(q&p)+4>>2]|0;if((r|0)==(h|0)&(q|0)==(k|0)){c[(m&p)>>2]=0;q=0;break}if((s&8|0)!=0&((q|0)<(k|0)|(q|0)==(k|0)&r>>>0>>0)){c[(m&p)>>2]=-1;q=0}else P=8}else P=8;while(0);do if((P|0)==8){if(!g)J=0;else{r=c[(g&p)>>2]|0;if(((e[(r&o)+8>>1]|0)+(e[(r&o)+6>>1]|0)|0)<14){q=e[((c[(g&p)+8>>2]|0)&o)+8>>1]|0;K=(a[(c[(r&p)+16>>2]&n)>>0]|0)==0;c[(g&p)+12>>2]=K?-1:1;c[(g&p)+16>>2]=K?1:-1;if(!(q&4))if((q&25|0)==0?(c[(r&p)+20>>2]|0)==0:0)r=39;else P=13;else r=38}else P=13;if((P|0)==13)r=40;a[(g&n)+7>>0]=0;J=r}q=qm(f)|0;if(!q){if(!(a[(t&n)>>0]|0)){c[(m&p)>>2]=-1;q=0;break}K=f+76|0;F=1-l|0;G=(J|0)==0;L=f+72|0;H=f+24|0;I=f+24|0;a:do{l=b[(K&o)>>1]|0;D=c[(f+(l<<2)&p)+120>>2]|0;E=D+18|0;s=(e[(E&o)>>1]|0)+-1|0;r=s>>F;b[(f+(l<<1)&o)+78>>1]=r;l=D+56|0;A=D+20|0;B=D+64|0;C=D+7|0;b:do if(G){v=D+3|0;u=D+60|0;t=0;w=s;while(1){s=r<<1;z=c[(B&p)>>2]|0;s=(c[(l&p)>>2]|0)+(((d[(z+s&n)>>0]<<8|d[(z+(s|1)&n)>>0])&e[(A&o)>>1])+(d[(C&n)>>0]|0))|0;c:do if(a[(v&n)>>0]|0)while(1){z=s;s=s+1|0;if((a[(z&n)>>0]|0)>=0)break c;if(s>>>0>=(c[(u&p)>>2]|0)>>>0){P=25;break a}}while(0);sp(s,N)|0;q=N;s=c[(q&p)>>2]|0;q=c[(q&p)+4>>2]|0;if((q|0)<(k|0)|(q|0)==(k|0)&s>>>0>>0){t=r+1|0;if((r|0)<(w|0))s=w;else{q=-1;P=49;break b}}else{if(!((q|0)>(k|0)|(q|0)==(k|0)&s>>>0>h>>>0)){t=q;break}s=r+-1|0;if((t|0)>(s|0)){q=1;P=49;break b}}r=s+t>>1;w=s}a[(L&n)>>0]=d[(L&n)>>0]|2;C=H;c[(C&p)>>2]=s;c[(C&p)+4>>2]=t;b[(f+(b[(K&o)>>1]<<1)&o)+78>>1]=r;if(a[(D&n)+5>>0]|0){P=31;break a}}else{x=D+8|0;y=D+10|0;z=r;t=0;while(1){q=c[(l&p)>>2]|0;v=z<<1;r=c[(B&p)>>2]|0;v=(d[(r+v&n)>>0]<<8|d[(r+(v|1)&n)>>0])&e[(A&o)>>1];r=v+(d[(C&n)>>0]|0)|0;R=a[(q+r&n)>>0]|0;w=R&255;u=q+(r+1)|0;do if((R&255)>(d[(x&n)>>0]|0)){u=d[(u&n)>>0]|0;if((u&128|0)==0?(M=u+(w<<7&16256)|0,(M|0)<=(e[(y&o)>>1]|0)):0){q=ac[J&63](M,q+(r+2)|0,g)|0;break}rp(D,q+v|0,I);u=c[(I&p)>>2]|0;r=qg(u,((u|0)<0)<<31>>31)|0;if(!r){q=7;break a}b[(f+(b[(K&o)>>1]<<1)&o)+78>>1]=z;q=Lm(f,0,u,r,2)|0;if(q){P=40;break a}q=ac[J&63](u,r,g)|0;Wc(r)}else q=ac[J&63](w,u,g)|0;while(0);if((q|0)<0)t=z+1|0;else{if((q|0)<=0){r=z;P=46;break a}s=z+-1|0}if((t|0)>(s|0)){r=z;P=49;break b}z=s+t>>1}}while(0);if((P|0)==49){P=0;if(a[(D&n)+5>>0]|0){P=51;break}l=D+56|0;r=t}t=c[(l&p)>>2]|0;if((r|0)<(e[(E&o)>>1]|0)){s=r<<1;E=c[(D&p)+64>>2]|0;s=(d[(E+s&n)>>0]<<8|d[(E+(s|1)&n)>>0])&e[(D&o)+20>>1];s=d[(t+s&n)+1>>0]<<16|d[(t+s&n)>>0]<<24|d[(t+s&n)+2>>0]<<8|d[(t+s&n)+3>>0]}else{s=d[(D&n)+6>>0]|0;s=d[(t+s&n)+9>>0]<<16|d[(t+s&n)+8>>0]<<24|d[(t+s&n)+10>>0]<<8|d[(t+s&n)+11>>0]}b[(f+(b[(K&o)>>1]<<1)&o)+78>>1]=r;q=rm(f,s)|0}while((q|0)==0);if((P|0)==25){c[(O&p)>>2]=57865;c[(O&p)+4>>2]=10788;bd(11,13600,O);q=11;break}else if((P|0)==31){c[(m&p)>>2]=0;q=0}else if((P|0)==40)Wc(r);else if((P|0)==46){c[(m&p)>>2]=0;b[(f+(b[(K&o)>>1]<<1)&o)+78>>1]=r;q=(a[(g&n)+7>>0]|0)==0?0:11}else if((P|0)==51){b[(f+(b[(K&o)>>1]<<1)&o)+78>>1]=r;c[(m&p)>>2]=q;q=0}b[(f&o)+44>>1]=0;a[(L&n)>>0]=d[(L&n)>>0]&249}}while(0);i=Q;return q|0}function Dm(f,g){f=f|0;g=g|0;var h=0,i=0,j=0,k=0;b[(f&o)+44>>1]=0;h=f+72|0;a[(h&n)>>0]=d[(h&n)>>0]&249;c[(g&p)>>2]=0;do if((a[(f&n)+73>>0]|0)==1){h=f+76|0;k=b[(h&o)>>1]|0;i=c[(f+(k<<2)&p)+120>>2]|0;k=f+(k<<1)+78|0;j=(b[(k&o)>>1]|0)+1<<16>>16;b[(k&o)>>1]=j;if((j&65535)>=(e[(i&o)+18>>1]|0)){h=f+(b[(h&o)>>1]<<1)+78|0;b[(h&o)>>1]=(b[(h&o)>>1]|0)+-1<<16>>16;h=Dp(f,g)|0;break}if(!(a[(i&n)+5>>0]|0))h=Vm(f)|0;else h=0}else h=Dp(f,g)|0;while(0);return h|0}function Em(e,f){e=e|0;f=f|0;var g=0,h=0,i=0,j=0;c[(f&p)>>2]=0;j=e+72|0;a[(j&n)>>0]=d[(j&n)>>0]&241;b[(e&o)+44>>1]=0;if(((a[(e&n)+73>>0]|0)==1?(g=b[(e&o)+76>>1]|0,h=e+(g<<1)+78|0,i=b[(h&o)>>1]|0,i<<16>>16!=0):0)?(a[((c[(e+(g<<2)&p)+120>>2]|0)&n)+5>>0]|0)!=0:0){b[(h&o)>>1]=i+-1<<16>>16;g=0}else g=Ep(e,f)|0;return g|0}function Fm(a,d,e,f){a=a|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0;i=0-d&7;j=a+6|0;h=b[(j&o)>>1]|0;g=((h&65535)*40|0)+64|0;if((g|0)>(i+e|0)){g=mh(c[(a&p)+12>>2]|0,g,0)|0;c[(f&p)>>2]=g;if(!g)g=0;else{h=b[(j&o)>>1]|0;k=5}}else{c[(f&p)>>2]=0;g=d+i|0;k=5}if((k|0)==5){c[(g&p)+8>>2]=g+24;c[(g&p)>>2]=a;b[(g&o)+4>>1]=(h&65535)+1}return g|0}function Gm(d,f,g,h){d=d|0;f=f|0;g=g|0;h=h|0;var k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0;x=i;i=i+16|0;if((i|0)>=(j|0))fa();w=x+4|0;v=x;m=c[(h&p)+8>>2]|0;a[(h&n)+6>>0]=0;k=a[(g&n)>>0]|0;if(k<<24>>24>-1){k=k&255;c[(w&p)>>2]=k;l=1}else{l=mm(g,w)|0;k=c[(w&p)>>2]|0}u=d+4|0;s=d+12|0;t=h+4|0;d=k;r=k;q=l&255;k=0;while(1){if(q>>>0>=d>>>0|(r|0)>(f|0))break;h=g+q|0;d=a[(h&n)>>0]|0;if(d<<24>>24>-1){c[(v&p)>>2]=d&255;h=1}else h=mm(h,v)|0;a[(m&n)+10>>0]=a[(u&n)>>0]|0;c[(m&p)+32>>2]=c[(s&p)>>2];c[(m&p)+24>>2]=0;l=om(g+r|0,c[(v&p)>>2]|0,m)|0;k=k+1<<16>>16;if((k&65535)>=(e[(t&o)>>1]|0))break;d=c[(w&p)>>2]|0;r=l+r|0;q=(h&255)+q|0;m=m+40|0}b[(t&o)>>1]=k;i=x;return}function Hm(b,e){b=b|0;e=e|0;var f=0,g=0,h=0;g=b+73|0;if((a[(g&n)>>0]|0)==1?(a[(b&n)+72>>0]&8)!=0:0)f=0;else h=3;do if((h|0)==3){f=qm(b)|0;if(!f){if(!(a[(g&n)>>0]|0)){c[(e&p)>>2]=1;f=0;break}c[(e&p)>>2]=0;f=Fp(b)|0;e=b+72|0;g=d[(e&n)>>0]|0;if(!f){a[(e&n)>>0]=g|8;f=0;break}else{a[(e&n)>>0]=g&247;break}}}while(0);return f|0}function Im(f,g,h,k,l,m,q,r,s){f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;m=m|0;q=q|0;r=r|0;s=s|0;var 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,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0;O=i;i=i+32|0;if((i|0)>=(j|0))fa();x=O;D=O+24|0;E=O+20|0;C=O+16|0;N=O+12|0;K=O+8|0;L=O+28|0;c[(K&p)>>2]=s;u=(c[(f&p)>>2]|0)+4|0;w=c[(u&p)>>2]|0;M=f+73|0;do if((a[(M&n)>>0]|0)!=4){v=Ln(w,c[(f&p)+60>>2]|0,f)|0;c[(N&p)>>2]=v;if(!v){if(!(c[(f&p)+16>>2]|0)){v=c[((c[(u&p)>>2]|0)&p)+8>>2]|0;if(v)do{if((a[(v&n)+72>>0]&16)!=0?(H=v+24|0,(c[(H&p)>>2]|0)==(h|0)?(c[(H&p)+4>>2]|0)==(k|0):0):0)a[(v&n)+73>>0]=0;v=c[(v&p)+8>>2]|0}while((v|0)!=0);if((a[(f&n)+72>>0]&2)!=0&((k|0)>0|(k|0)==0&h>>>0>0)?(H=f+24|0,A=c[(H&p)>>2]|0,H=c[(H&p)+4>>2]|0,B=jw(h|0,k|0,-1,-1)|0,(A|0)==(B|0)&(H|0)==(G|0)):0)c[(K&p)>>2]=-1;else F=13}else F=13;if(((F|0)==13?(s|0)==0:0)?(t=Gp(f,g,h,k,r,K)|0,c[(N&p)>>2]=t,(t|0)!=0):0)break;I=f+76|0;J=c[(f+(b[(I&o)>>1]<<2)&p)+120>>2]|0;H=c[(w&p)+80>>2]|0;c[(E&p)>>2]=0;r=J+52|0;B=c[(r&p)>>2]|0;c[(C&p)>>2]=0;v=d[(J&n)+7>>0]|0;w=q+m|0;if(a[(J&n)+3>>0]|0){if(w>>>0<128){a[(H+v&n)>>0]=w;u=1}else u=(pm(H+v|0,w,((w|0)<0)<<31>>31)|0)&255;v=u+v|0}s=(pm(H+v|0,h,k)|0)+v|0;do if(!(a[(J&n)+2>>0]|0))if((k|0)>0|(k|0)==0&h>>>0>2147483647|(g|0)==0){c[(x&p)>>2]=58825;c[(x&p)+4>>2]=10788;bd(11,13600,x);t=11;v=0;break}else{A=m;w=h;m=h;q=g;F=24;break}else{A=0;q=l;F=24}while(0);do if((F|0)==24){v=e[(J&o)+10>>1]|0;if((w|0)>(v|0)){u=e[(J&o)+12>>1]|0;r=(((w-u|0)>>>0)%(((c[((c[(r&p)>>2]|0)&p)+36>>2]|0)+-4|0)>>>0)|0)+u|0;r=(r|0)>(v|0)?u:r;u=r+s|0;v=u+4|0;u=H+u|0}else{v=w+s|0;v=(v|0)<4?4:v;u=H;r=w}if((w|0)>0){h=B+17|0;y=B+36|0;z=B+32|0;g=m;x=H+s|0;k=u;s=0;m=r;while(1){if(!m){x=c[(C&p)>>2]|0;if(!(a[(h&n)>>0]|0))u=x;else{t=((c[2514]|0)>>>0)/((c[(z&p)>>2]|0)>>>0)|0;m=x;while(1){u=m+1|0;if(u>>>0<2)r=0;else{r=m+-1|0;r=r-((r>>>0)%(((((c[(y&p)>>2]|0)>>>0)/5|0)+1|0)>>>0)|0)|0;r=((r+1|0)==(t|0)?3:2)+r|0}if((r|0)==(u|0)|(m|0)==(t|0))m=u;else break}c[(C&p)>>2]=u}t=ip(B,E,C,u,0)|0;c[(D&p)>>2]=t;u=(t|0)==0;if((a[(h&n)>>0]|0)!=0&u){u=c[(C&p)>>2]|0;zp(B,u,(x|0)!=0?4:3,x,D);t=c[(D&p)>>2]|0;if(t){r=s;F=38;break}}else{if(!u)break;u=c[(C&p)>>2]|0}a[(k&n)>>0]=u>>>24;a[(k&n)+1>>0]=u>>>16;a[(k&n)+2>>0]=u>>>8;a[(k&n)+3>>0]=u;if(s)Bg(c[(s&p)+68>>2]|0);t=c[(E&p)>>2]|0;x=t+56|0;k=c[(x&p)>>2]|0;a[(k&n)>>0]=0;a[(k&n)+1>>0]=0;a[(k&n)+2>>0]=0;a[(k&n)+3>>0]=0;x=(c[(x&p)>>2]|0)+4|0;m=(c[(y&p)>>2]|0)+-4|0}else t=s;u=(w|0)>(m|0)?m:w;if((g|0)>0){u=(u|0)>(g|0)?g:u;kw(x|0,q|0,u|0)|0}else fw(x|0,0,u|0)|0;w=w-u|0;r=(g|0)==(u|0);if((w|0)<=0){F=51;break}else{g=r?A:g-u|0;x=x+u|0;q=r?l:q+u|0;s=t;m=m-u|0}}if((F|0)==38){s=c[(E&p)>>2]|0;if(!s)s=r;else{Bg(c[(s&p)+68>>2]|0);s=r}}else if((F|0)==51){if(!t){t=0;break}Bg(c[(t&p)+68>>2]|0);t=0;break}if(s)Bg(c[(s&p)+68>>2]|0)}else t=0}while(0);c[(N&p)>>2]=t;if(!t){t=f+(b[(I&o)>>1]<<1)+78|0;r=b[(t&o)>>1]|0;u=r&65535;s=c[(K&p)>>2]|0;if(!s){t=Gg(c[(J&p)+68>>2]|0)|0;c[(N&p)>>2]=t;if(t)break;t=u<<1;F=c[(J&p)+64>>2]|0;t=(c[(J&p)+56>>2]|0)+((d[(F+t&n)>>0]<<8|d[(F+(t|1)&n)>>0])&e[(J&o)+20>>1])|0;if(!(a[(J&n)+5>>0]|0)){F=d[(t&n)>>0]|d[(t&n)+1>>0]<<8|d[(t&n)+2>>0]<<16|d[(t&n)+3>>0]<<24;a[(H&n)>>0]=F;a[(H&n)+1>>0]=F>>8;a[(H&n)+2>>0]=F>>16;a[(H&n)+3>>0]=F>>24}c[(N&p)>>2]=Hp(J,t,L)|0;Ip(J,u,e[(L&o)>>1]|0,N);t=c[(N&p)>>2]|0;if(!t)t=u;else break}else if((s|0)<0?(b[(J&o)+18>>1]|0)!=0:0){F=r+1<<16>>16;b[(t&o)>>1]=F;t=F&65535}else t=u;Jp(J,t,H,v,0,0,N);b[(f&o)+44>>1]=0;t=c[(N&p)>>2]|0;if(!t)if(!(a[(J&n)+1>>0]|0))t=0;else{t=f+72|0;a[(t&n)>>0]=d[(t&n)>>0]&253;t=Kp(f)|0;c[(N&p)>>2]=t;a[((c[(f+(b[(I&o)>>1]<<2)&p)+120>>2]|0)&n)+1>>0]=0;a[(M&n)>>0]=0}}}else t=v}else t=c[(f&p)+68>>2]|0;while(0);i=O;return t|0}function Jm(f){f=f|0;var g=0,h=0,k=0,l=0,m=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;C=i;i=i+16|0;if((i|0)>=(j|0))fa();B=C+4|0;t=C+8|0;l=C;m=(c[(f&p)>>2]|0)+4|0;v=c[(m&p)>>2]|0;z=f+76|0;A=b[(z&o)>>1]|0;x=A<<16>>16;s=b[(f+(x<<1)&o)+78>>1]|0;y=s&65535;u=c[(f+(x<<2)&p)+120>>2]|0;do if((s&65535)<(e[(u&o)+18>>1]|0)?(a[(f&n)+73>>0]|0)==1:0){s=y<<1;w=c[(u&p)+64>>2]|0;s=(c[(u&p)+56>>2]|0)+((d[(w+s&n)>>0]<<8|d[(w+(s|1)&n)>>0])&e[(u&o)+20>>1])|0;w=u+5|0;if((a[(w&n)>>0]|0)==0?(c[(l&p)>>2]=0,k=Em(f,l)|0,c[(B&p)>>2]=k,(k|0)!=0):0){g=k;break}k=Ln(v,c[(f&p)+60>>2]|0,f)|0;c[(B&p)>>2]=k;if(!k){if((c[(f&p)+16>>2]|0)==0?(r=f+24|0,q=c[(r&p)>>2]|0,r=c[(r&p)+4>>2]|0,h=c[((c[(m&p)>>2]|0)&p)+8>>2]|0,(h|0)!=0):0)do{if((a[(h&n)+72>>0]&16)!=0?(m=h+24|0,(c[(m&p)>>2]|0)==(q|0)?(c[(m&p)+4>>2]|0)==(r|0):0):0)a[(h&n)+73>>0]=0;h=c[(h&p)+8>>2]|0}while((h|0)!=0);h=Gg(c[(u&p)+68>>2]|0)|0;c[(B&p)>>2]=h;if(!h){c[(B&p)>>2]=Hp(u,s,t)|0;Ip(u,y,e[(t&o)>>1]|0,B);h=c[(B&p)>>2]|0;if(!h){if((a[(w&n)>>0]|0)==0?(s=c[(f+(b[(z&o)>>1]<<2)&p)+120>>2]|0,r=c[((c[(f+(x+1<<2)&p)+120>>2]|0)&p)+72>>2]|0,l=c[(s&p)+56>>2]|0,t=s+18|0,m=e[(t&o)>>1]<<1,g=c[(s&p)+64>>2]|0,m=(d[(g+m+-2&n)>>0]<<8|d[(g+m+-1&n)>>0])&e[(s&o)+20>>1],g=(Lp(s,l+m|0)|0)&65535,q=c[(v&p)+80>>2]|0,c[(B&p)>>2]=Gg(c[(s&p)+68>>2]|0)|0,Jp(u,y,l+(m+-4)|0,g+4|0,q,r,B),Ip(s,(e[(t&o)>>1]|0)+-1|0,g,B),g=c[(B&p)>>2]|0,(g|0)!=0):0)break;g=Kp(f)|0;c[(B&p)>>2]=g;if(!g){g=b[(z&o)>>1]|0;if(g<<16>>16>A<<16>>16){do{h=g+-1<<16>>16;b[(z&o)>>1]=h;g=c[(f+(g<<16>>16<<2)&p)+120>>2]|0;if(!g)g=h;else{Bg(c[(g&p)+68>>2]|0);g=b[(z&o)>>1]|0}}while(g<<16>>16>A<<16>>16);g=Kp(f)|0;c[(B&p)>>2]=g;if(g)break}qm(f)|0;g=0}}else g=h}else g=h}else g=k}else g=1;while(0);i=C;return g|0}function Km(f,g,k,l){f=f|0;g=g|0;k=k|0;l=l|0;var m=0,r=0,s=0,t=0,u=0.0,v=0.0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0;P=i;i=i+64|0;if((i|0)>=(j|0))fa();N=P+40|0;t=P+56|0;L=P;r=P+52|0;M=P+48|0;w=c[(k&p)+8>>2]|0;O=c[(k&p)>>2]|0;do if(!l){l=a[(g&n)>>0]|0;if(l<<24>>24>-1){l=l&255;c[(t&p)>>2]=l;m=1}else{m=mm(g,t)|0;l=c[(t&p)>>2]|0}if(l>>>0>f>>>0){c[(N&p)>>2]=68267;c[(N&p)+4>>2]=10788;bd(11,13600,N);a[(k&n)+7>>0]=11;m=0;break}else{K=l;t=l;l=0;r=m&255;s=15;break}}else{l=g+1|0;m=a[(l&n)>>0]|0;if(m<<24>>24>-1){l=m&255;c[(r&p)>>2]=l;s=1}else{s=mm(l,r)|0;l=c[(r&p)>>2]|0}m=d[(g&n)>>0]|0;c[(t&p)>>2]=m;if(l>>>0>11)l=(l+-12|0)>>>1;else l=d[(l&n)+34336>>0]|0;K=m;t=l+m|0;l=1;r=(s&255)+1|0;w=w+40|0;s=15}while(0);do if((s|0)==15){A=L+12|0;B=O+4|0;C=L+10|0;D=O+12|0;E=L+32|0;F=L+8|0;H=L+16|0;J=k+7|0;I=k+4|0;z=t;y=r;a:while(1){r=e[(w&o)+8>>1]|0;do if(!(r&4)){if(r&8){s=a[(g+y&n)>>0]|0;t=s&255;c[(M&p)>>2]=t;if((s&255)>11){m=1;s=62;break a}if(!(s<<24>>24)){m=-1;s=62;break a}u=+h[(w&q)>>3];om(g+z|0,t,L)|0;if(s<<24>>24==7)v=+h[(L&q)>>3];else{m=L;v=+((c[(m&p)>>2]|0)>>>0)+4294967296.0*+(c[(m&p)+4>>2]|0)}if(vu){m=1;s=62;break a}else break}do if(!(r&2)){s=g+y|0;x=a[(s&n)>>0]|0;t=x&255;if(!(r&16)){c[(M&p)>>2]=t;m=x<<24>>24!=0&1;break}if(x<<24>>24>-1)c[(M&p)>>2]=t;else{mm(s,M)|0;t=c[(M&p)>>2]|0}if(!(t>>>0>11&(t&1|0)==0)){m=-1;s=62;break a}x=(t+-12|0)>>>1;if((x+z|0)>>>0>f>>>0){s=57;break a}s=c[(w&p)+12>>2]|0;m=Zv(g+z|0,c[(w&p)+16>>2]|0,(x|0)<(s|0)?x:s)|0;if(m){s=62;break a}m=x-s|0}else{t=g+y|0;s=a[(t&n)>>0]|0;if(s<<24>>24>-1){t=s&255;c[(M&p)>>2]=t}else{mm(t,M)|0;t=c[(M&p)>>2]|0}if(t>>>0<12){m=-1;s=62;break a}if(!(t&1)){m=1;s=62;break a}r=(t+-12|0)>>>1;c[(A&p)>>2]=r;if((r+z|0)>>>0>f>>>0){s=46;break a}s=c[(O+(l<<2)&p)+20>>2]|0;if(s){a[(C&n)>>0]=a[(B&n)>>0]|0;c[(E&p)>>2]=c[(D&p)>>2];b[(F&o)>>1]=2;c[(H&p)>>2]=g+z;m=pp(L,w,s,J)|0;break}x=c[(w&p)+12>>2]|0;m=Zv(g+z|0,c[(w&p)+16>>2]|0,(r|0)<(x|0)?r:x)|0;if(m){s=62;break a}m=r-x|0}while(0);if(m){s=62;break a}}else{s=a[(g+y&n)>>0]|0;t=s&255;c[(M&p)>>2]=t;if((s&255)>11){m=1;s=62;break a}if(s<<24>>24==7){m=w;u=+((c[(m&p)>>2]|0)>>>0)+4294967296.0*+(c[(m&p)+4>>2]|0);om(g+z|0,t,L)|0;v=+h[(L&q)>>3];if(vu){m=1;s=62;break a}else break}else if(!(s<<24>>24)){m=-1;s=62;break a}s=g+z|0;switch(t|0){case 6:{m=d[(g+z&n)+1>>0]<<16|d[(s&n)>>0]<<24|d[(g+z&n)+2>>0]<<8|d[(g+z&n)+3>>0];x=d[(g+z&n)+5>>0]<<16|d[(g+z&n)+4>>0]<<24|d[(g+z&n)+6>>0]<<8|d[(g+z&n)+7>>0];break}case 3:{x=d[(g+z&n)+1>>0]<<8|a[(s&n)>>0]<<16|d[(g+z&n)+2>>0];m=((x|0)<0)<<31>>31;break}case 5:{m=a[(s&n)>>0]<<8|d[(g+z&n)+1>>0];x=d[(g+z&n)+3>>0]<<16|d[(g+z&n)+2>>0]<<24|d[(g+z&n)+4>>0]<<8|d[(g+z&n)+5>>0];break}case 1:case 0:{x=a[(s&n)>>0]|0;m=((x|0)<0)<<31>>31;break}case 4:{x=d[(g+z&n)+1>>0]<<16|d[(s&n)>>0]<<24|d[(g+z&n)+2>>0]<<8|d[(g+z&n)+3>>0];m=((x|0)<0)<<31>>31;break}case 2:{x=a[(s&n)>>0]<<8|d[(g+z&n)+1>>0];m=((x|0)<0)<<31>>31;break}default:{m=0;x=t+-8|0}}r=w;s=c[(r&p)>>2]|0;r=c[(r&p)+4>>2]|0;if((m|0)<(r|0)|(m|0)==(r|0)&x>>>0>>0){m=-1;s=62;break a}if((m|0)>(r|0)|(m|0)==(r|0)&x>>>0>s>>>0){m=1;s=62;break a}}while(0);l=l+1|0;w=w+40|0;if(t>>>0>11)r=(t+-12|0)>>>1;else r=d[(t&n)+34336>>0]|0;x=t;s=0;t=0;do{t=t+1|0;x=mw(x|0,s|0,7)|0;s=G}while(((x|0)!=0|(s|0)!=0)&(t|0)<9);z=r+z|0;y=t+y|0;if(y>>>0>=K>>>0){s=70;break}if(z>>>0>f>>>0?1:(l|0)>=(e[(I&o)>>1]|0)){s=70;break}}if((s|0)==46){c[(N&p)>>2]=68346;c[(N&p)+4>>2]=10788;bd(11,13600,N);a[(J&n)>>0]=11;m=0;break}else if((s|0)==57){c[(N&p)>>2]=68375;c[(N&p)+4>>2]=10788;bd(11,13600,N);a[(J&n)>>0]=11;m=0;break}else if((s|0)==62){m=(a[((c[(O&p)+16>>2]|0)+l&n)>>0]|0)==0?m:0-m|0;break}else if((s|0)==70){m=a[(k&n)+6>>0]|0;break}}while(0);i=P;return m|0}function Lm(f,g,h,k,l){f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;var m=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;E=i;i=i+16|0;if((i|0)>=(j|0))fa();D=E;B=E+12|0;C=E+8|0;m=b[(f&o)+76>>1]|0;r=c[(f+(m<<2)&p)+120>>2]|0;A=c[(f&p)+4>>2]|0;if(!(b[(f&o)+44>>1]|0)){v=r+56|0;m=e[(f+(m<<1)&o)+78>>1]<<1;u=c[(r&p)+64>>2]|0;rp(r,(c[(v&p)>>2]|0)+((d[(u+m&n)>>0]<<8|d[(u+(m|1)&n)>>0])&e[(r&o)+20>>1])|0,f+24|0);m=f+72|0;a[(m&n)>>0]=d[(m&n)>>0]|2;m=v}else m=r+56|0;v=c[(f&p)+32>>2]|0;t=f+40|0;q=e[(t&o)>>1]|0;u=A+36|0;if((v+q|0)>>>0<=((c[(m&p)>>2]|0)+(c[(u&p)>>2]|0)|0)>>>0){if(q>>>0>g>>>0){s=(h+g|0)>>>0>q>>>0?q-g|0:h;q=v+g|0;if(l&1){m=Gg(c[(r&p)+68>>2]|0)|0;if(!m){kw(q|0,k|0,s|0)|0;m=0}}else{kw(k|0,q|0,s|0)|0;m=0}k=k+s|0;w=0;h=h-s|0}else{w=g-q|0;m=0}a:do if((m|0)==0&(h|0)!=0){m=c[(u&p)>>2]|0;z=m+-4|0;q=e[(t&o)>>1]|0;t=d[(v+q&n)+1>>0]<<16|d[(v+q&n)>>0]<<24|d[(v+q&n)+2>>0]<<8|d[(v+q&n)+3>>0];c[(B&p)>>2]=t;v=f+72|0;do if((l|0)!=2?(a[(v&n)>>0]&4)==0:0){m=((m+-5+(c[(f&p)+36>>2]|0)-q|0)>>>0)/(z>>>0)|0;g=f+64|0;if((m|0)>(c[(g&p)>>2]|0)){r=f+20|0;q=rg(c[(r&p)>>2]|0,m<<3,0)|0;if(!q){m=7;break}c[(g&p)>>2]=m<<1;c[(r&p)>>2]=q}fw(c[(f&p)+20>>2]|0,0,m<<2|0)|0;a[(v&n)>>0]=d[(v&n)>>0]|4;m=0}else m=0;while(0);g=a[(v&n)>>0]|0;if((g&4)!=0?(y=(w>>>0)/(z>>>0)|0,x=c[((c[(f&p)+20>>2]|0)+(y<<2)&p)>>2]|0,(x|0)!=0):0){c[(B&p)>>2]=x;s=(w>>>0)%(z>>>0)|0;r=x;t=y}else{s=w;r=t;t=0}if((m|0)==0&(r|0)!=0){x=l&1;y=x<<1^2;x=(x|0)==0;l=f+20|0;while(1){if(g&4)c[((c[(l&p)>>2]|0)+(t<<2)&p)>>2]=r;if(s>>>0>>0){u=(s+h|0)>>>0>z>>>0?z-s|0:h;m=zg(c[(A&p)>>2]|0,r,C,y)|0;if(!m){g=c[(C&p)>>2]|0;q=c[(g&p)+4>>2]|0;r=d[(q&n)+1>>0]<<16|d[(q&n)>>0]<<24|d[(q&n)+2>>0]<<8|d[(q&n)+3>>0];c[(B&p)>>2]=r;q=q+(s+4)|0;if(!x){m=Gg(g)|0;if(!m){kw(q|0,k|0,u|0)|0;m=0}}else{kw(k|0,q|0,u|0)|0;m=0}if(!g)s=0;else{Bg(g);s=0}}h=h-u|0;k=k+u|0;t=t+1|0}else{g=t+1|0;m=c[((c[(l&p)>>2]|0)+(g<<2)&p)>>2]|0;if(!m){m=Mp(A,r,0,B)|0;r=c[(B&p)>>2]|0}else{c[(B&p)>>2]=m;r=m;m=0}s=s-z|0;t=g}if(!((m|0)==0&(h|0)!=0&(r|0)!=0))break a;g=a[(v&n)>>0]|0}}}while(0);if((m|0)==0&(h|0)!=0){c[(D&p)>>2]=57357;c[(D&p)+4>>2]=10788;bd(11,13600,D);m=11}}else{c[(D&p)>>2]=57202;c[(D&p)+4>>2]=10788;bd(11,13600,D);m=11}i=E;return m|0}function Mm(a,b){a=a|0;b=b|0;var d=0,e=0;e=c[(a&p)>>2]|0;d=a+44|0;mg(e,c[(d&p)>>2]|0);a=b+8|0;c[(d&p)>>2]=kh(e,c[(a&p)>>2]|0)|0;Wc(c[(a&p)>>2]|0);c[(a&p)>>2]=0;return}function Nm(e,f){e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0;u=i;i=i+16|0;if((i|0)>=(j|0))fa();k=u+4|0;s=u;t=e+12|0;if(!(c[(t&p)>>2]|0)){h=e+8|0;g=Fm(c[((c[(h&p)>>2]|0)&p)+28>>2]|0,0,0,k)|0;c[(t&p)>>2]=g;if(!(c[(k&p)>>2]|0))g=7;else{b[(g&o)+4>>1]=b[((c[((c[(h&p)>>2]|0)&p)+28>>2]|0)&o)+6>>1]|0;a[(g&n)+7>>0]=0;l=4}}else l=4;if((l|0)==4){r=qg(256,0)|0;if(!r)g=7;else{fw(r|0,0,256)|0;g=c[(f&p)>>2]|0;c[(s&p)>>2]=g;if(g){q=f+4|0;while(1){h=c[(q&p)>>2]|0;if(h)if((g|0)==(h|0))m=0;else m=h+(c[(g&p)+4>>2]|0)|0;else m=c[(g&p)+4>>2]|0;c[(g&p)+4>>2]=0;l=c[(r&p)>>2]|0;k=c[(s&p)>>2]|0;if(!l)l=r;else{h=r;g=0;do{Np(e,k,l,s);c[(h&p)>>2]=0;g=g+1|0;h=r+(g<<2)|0;l=c[(h&p)>>2]|0;k=c[(s&p)>>2]|0}while((l|0)!=0);l=h}c[(l&p)>>2]=k;c[(s&p)>>2]=m;if(!m)break;else g=m}}c[(s&p)>>2]=0;g=0;h=0;do{Np(e,g,c[(r+(h<<2)&p)>>2]|0,s);h=h+1|0;g=c[(s&p)>>2]|0}while((h|0)!=64);c[(f&p)>>2]=g;Wc(r);g=d[((c[(t&p)>>2]|0)&n)+7>>0]|0}}i=u;return g|0}function Om(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,o=0,q=0;q=i;i=i+64|0;if((i|0)>=(j|0))fa();m=q+40|0;o=q;a[(b&n)+56>>0]=1;g=b+64|0;l=b+36|0;k=b+72|0;h=c[((c[(k&p)>>2]|0)&p)+24>>2]|0;f=o+0|0;e=f+40|0;do{c[(f&p)>>2]=0;f=f+4|0}while((f|0)<(e|0));f=b+96|0;if(!((c[(f&p)>>2]|0)==0?(d=Op(h,f)|0,(d|0)!=0):0)){d=Nm(g,l)|0;if(!d){g=b+104|0;d=g;Pp(c[(f&p)>>2]|0,o,c[((c[(k&p)>>2]|0)&p)+12>>2]|0,c[(d&p)>>2]|0,c[(d&p)+4>>2]|0);d=b+92|0;c[(d&p)>>2]=(c[(d&p)>>2]|0)+1;d=c[(b&p)+44>>2]|0;Qp(o,m,pm(m,d,((d|0)<0)<<31>>31)|0);d=c[(l&p)>>2]|0;if(d){f=b+40|0;do{e=d;d=c[(d&p)+4>>2]|0;b=c[(e&p)>>2]|0;Qp(o,m,pm(m,b,((b|0)<0)<<31>>31)|0);Qp(o,e+8|0,c[(e&p)>>2]|0);if(!(c[(f&p)>>2]|0))Wc(e)}while((d|0)!=0)}c[(l&p)>>2]=0;d=Rp(o,g)|0}}i=q;return d|0}function Pm(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,q=0,r=0,s=0;s=i;i=i+16|0;if((i|0)>=(j|0))fa();q=s;g=d;k=c[(g&p)>>2]|0;g=c[(g&p)+4>>2]|0;r=Qm(b)|0;c[(e&p)>>2]=r;h=(r|0)==0;f=h?7:0;h=h^1;if((b|0)>0&h){o=r+12|0;n=a+32|0;m=0;do{h=c[(o&p)>>2]|0;l=h+(m*56|0)|0;f=Sp(a,l,n,k,g)|0;if(!f){f=Tp(l,q)|0;g=l;k=q;g=jw(c[(k&p)>>2]|0,c[(k&p)+4>>2]|0,c[(g&p)>>2]|0,c[(g&p)+4>>2]|0)|0;k=h+(m*56|0)+8|0;h=k;c[(h&p)>>2]=g;c[(h&p)+4>>2]=G;if(!f)f=Up(l)|0}else k=h+(m*56|0)+8|0;g=k;k=c[(g&p)>>2]|0;g=c[(g&p)+4>>2]|0;m=m+1|0;h=(f|0)==0}while((m|0)<(b|0)&h)}if(!h){Tm(r);c[(e&p)>>2]=0}b=d;c[(b&p)>>2]=k;c[(b&p)+4>>2]=g;i=s;return f|0}function Qm(a){a=a|0;var b=0,d=0;b=2;while(1)if((b|0)<(a|0))b=b<<1;else{d=b;break}b=c[2252]|0;if((b|0)!=0?(lc[b&127](100)|0)!=0:0)b=0;else{a=(d*60|0)+16|0;b=qg(a,((a|0)<0)<<31>>31)|0;if(!b)b=0;else{fw(b|0,0,a|0)|0;c[(b&p)>>2]=d;c[(b&p)+4>>2]=0;a=b+16|0;c[(b&p)+12>>2]=a;c[(b&p)+8>>2]=a+(d*56|0)}}return b|0}function Rm(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0;f=c[2252]|0;if((f|0)!=0?(lc[f&127](100)|0)!=0:0){f=0;i=6}else i=3;do if((i|0)==3){f=qg(64,0)|0;if(!f){i=6;break}else{g=f+0|0;h=g+64|0;do{a[(g&n)>>0]=0;g=g+1|0}while((g|0)<(h|0));c[(e&p)>>2]=f;c[(f&p)+4>>2]=d;c[(f&p)>>2]=b;h=c[(b&p)+8>>2]|0;g=(c[(h&p)+8>>2]|0)+9|0;h=(c[(h&p)+4>>2]|0)/2|0;h=(g|0)>(h|0)?g:h;c[(f&p)+16>>2]=h;f=b+56|0;g=f;g=jw(h|0,((h|0)<0)<<31>>31|0,c[(g&p)>>2]|0,c[(g&p)+4>>2]|0)|0;c[(f&p)>>2]=g;c[(f&p)+4>>2]=G;f=0;break}}while(0);if((i|0)==6){c[(e&p)>>2]=f;Tm(d);f=7}return f|0}function Sm(a){a=a|0;if(a){Tm(c[(a&p)+4>>2]|0);Wc(a)}return}function Tm(a){a=a|0;var b=0,d=0;if((a|0)!=0?(c[(a&p)>>2]|0)>0:0){b=a+12|0;d=0;do{Vp((c[(b&p)>>2]|0)+(d*56|0)|0);d=d+1|0}while((d|0)<(c[(a&p)>>2]|0))}Wc(a);return}function Um(a,b){a=a|0;b=b|0;var e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,o=0,q=0,r=0,s=0,t=0;o=c[(b&p)>>2]|0;t=b+4|0;c[(t&p)>>2]=a;a:do if((o|0)>0){q=b+12|0;r=0;do{l=c[(q&p)>>2]|0;j=l+(r*56|0)|0;l=c[(l+(r*56|0)&p)+48>>2]|0;if(l){m=c[(l&p)>>2]|0;i=c[((c[(m&p)+8>>2]|0)&p)+24>>2]|0;e=Um(m,c[(l&p)+4>>2]|0)|0;if(e)break a;k=c[(l&p)+16>>2]|0;g=m+48|0;h=c[(g&p)>>2]|0;f=m+56|0;if(!h){e=Op(i,g)|0;i=f;c[(i&p)>>2]=0;c[(i&p)+4>>2]=0;if(e)break a;h=c[(g&p)>>2]|0;g=0;f=0}else{g=c[(f&p)>>2]|0;f=c[(f&p)+4>>2]|0}c[(l&p)+48>>2]=h;l=l+8|0;c[(l&p)>>2]=g;c[(l&p)+4>>2]=f;l=jw(g|0,f|0,k|0,((k|0)<0)<<31>>31|0)|0;e=m+56|0;c[(e&p)>>2]=l;c[(e&p)+4>>2]=G;e=Up(j)|0;if(e)break a}r=r+1|0}while((r|0)<(o|0));e=c[(b&p)>>2]|0;s=12}else{e=o;s=12}while(0);if((s|0)==12){f=e+-1|0;b:do if((f|0)>0){j=b+12|0;k=b+8|0;h=e;g=e;i=f;while(1){e=(h|0)/2|0;if((g|0)>(e|0)){g=i-e<<1;e=g;g=g|1}else{g=i<<1;o=c[(k&p)>>2]|0;e=c[(o+(g<<2)&p)>>2]|0;g=c[(o+((g|1)<<2)&p)>>2]|0}f=c[(j&p)>>2]|0;if(c[(f+(e*56|0)&p)+24>>2]|0){if(c[(f+(g*56|0)&p)+24>>2]|0){o=(Wp(c[(t&p)>>2]|0,c[(f+(e*56|0)&p)+32>>2]|0,c[(f+(e*56|0)&p)+20>>2]|0,c[(f+(g*56|0)&p)+32>>2]|0,c[(f+(g*56|0)&p)+20>>2]|0)|0)<1;e=o?e:g}}else e=g;c[((c[(k&p)>>2]|0)+(i<<2)&p)>>2]=e;e=i+-1|0;if((e|0)<=0)break b;g=i;h=c[(b&p)>>2]|0;i=e}}while(0);e=d[((c[(a&p)+12>>2]|0)&n)+7>>0]|0}return e|0}function Vm(f){f=f|0;var g=0,h=0,i=0,j=0,k=0;i=f+76|0;do{g=b[(i&o)>>1]|0;h=c[(f+(g<<2)&p)+120>>2]|0;if(a[(h&n)+5>>0]|0){g=0;break}j=c[(h&p)+56>>2]|0;g=e[(f+(g<<1)&o)+78>>1]<<1;k=c[(h&p)+64>>2]|0;g=(d[(k+g&n)>>0]<<8|d[(k+(g|1)&n)>>0])&e[(h&o)+20>>1];g=rm(f,d[(j+g&n)+1>>0]<<16|d[(j+g&n)>>0]<<24|d[(j+g&n)+2>>0]<<8|d[(j+g&n)+3>>0])|0}while((g|0)==0);return g|0}function Wm(a,b){a=a|0;b=b|0;var e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,o=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0;s=a+8|0;g=c[((c[(s&p)>>2]|0)&p)+4>>2]|0;w=c[(a&p)+4>>2]|0;u=a+12|0;e=Up((c[(u&p)>>2]|0)+(g*56|0)|0)|0;if(!e){e=c[(u&p)>>2]|0;f=g|1;a=(c[(a&p)>>2]|0)+g|0;a:do if((a|0)>1){m=e;o=a;i=c[(e+(f*56|0)&p)+32>>2]|0;q=e+((g&65534)*56|0)|0;g=e+(f*56|0)|0;while(1){r=q+24|0;j=q;k=q+32|0;l=q+20|0;e=m;h=o;a=i;while(1){f=h;h=(h|0)/2|0;if(!(c[(r&p)>>2]|0)){i=a;break}if(((c[(g&p)+24>>2]|0)!=0?(t=Wp(w,c[(k&p)>>2]|0,c[(l&p)>>2]|0,a,c[(g&p)+20>>2]|0)|0,(t|0)>=0):0)?!((t|0)==0&q>>>0>>0):0){v=10;break}i=c[(u&p)>>2]|0;a=c[(s&p)>>2]|0;c[(a+(h<<2)&p)>>2]=(j-i|0)/56|0;g=c[(a+((h^1)<<2)&p)>>2]|0;if((f|0)<=3){e=i;break a}else{e=i;a=c[(i+(g*56|0)&p)+32>>2]|0;g=i+(g*56|0)|0}}if((v|0)==10){v=0;e=c[(u&p)>>2]|0;i=(c[(r&p)>>2]|0)==0?a:0}a=c[(s&p)>>2]|0;c[(a+(h<<2)&p)>>2]=(g-e|0)/56|0;if((f|0)>3){m=e;o=h;q=e+((c[(a+((h^1)<<2)&p)>>2]|0)*56|0)|0}else break}}else a=c[(s&p)>>2]|0;while(0);c[(b&p)>>2]=(c[(e+((c[(a&p)+4>>2]|0)*56|0)&p)+24>>2]|0)==0&1;e=d[((c[(w&p)+12>>2]|0)&n)+7>>0]|0}return e|0}function Xm(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0;f=b+4|0;g=c[(f&p)>>2]|0;c[(g&p)+4>>2]=c[(b&p)>>2];b=Ln(g,d,0)|0;if(!b){b=c[((c[(f&p)>>2]|0)&p)+8>>2]|0;if(b)do{if(a[(b&n)+72>>0]&16)a[(b&n)+73>>0]=0;b=c[(b&p)+8>>2]|0}while((b|0)!=0);b=Xp(g,d,0,e)|0}return b|0}function Ym(f,g,h){f=f|0;g=g|0;h=h|0;var k=0,l=0,m=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;C=i;i=i+32|0;if((i|0)>=(j|0))fa();t=C;B=C+16|0;A=C+12|0;z=C+8|0;c[(B&p)>>2]=0;m=c[(f&p)+12>>2]|0;if(!g){g=Yp(f,h)|0;c[(A&p)>>2]=g}else{c[(A&p)>>2]=g;u=(c[(g&p)+68>>2]|0)+26|0;b[(u&o)>>1]=(b[(u&o)>>1]|0)+1<<16>>16}l=Gg(c[(m&p)+68>>2]|0)|0;c[(z&p)>>2]=l;do if(!l){u=m+56|0;s=c[(u&p)>>2]|0;D=s+36|0;l=s+37|0;m=s+38|0;s=s+39|0;q=d[(l&n)>>0]<<16|d[(D&n)>>0]<<24|d[(m&n)>>0]<<8|d[(s&n)>>0];r=q+1|0;a[(D&n)>>0]=r>>>24;a[(l&n)>>0]=r>>>16;a[(m&n)>>0]=r>>>8;a[(s&n)>>0]=r;s=f+22|0;if(b[(s&o)>>1]&4){if(!g){m=dl(f,h,A,0)|0;c[(z&p)>>2]=m;if(m){k=m;break}g=c[(A&p)>>2]|0}m=Gg(c[(g&p)+68>>2]|0)|0;c[(z&p)>>2]=m;if(m){k=m;break}fw(c[(g&p)+56>>2]|0,0,c[((c[(g&p)+52>>2]|0)&p)+32>>2]|0)|0}if((a[(f&n)+17>>0]|0)!=0?(zp(f,h,2,0,z),k=c[(z&p)>>2]|0,(k|0)!=0):0)break;if(q){l=c[(u&p)>>2]|0;l=d[(l&n)+33>>0]<<16|d[(l&n)+32>>0]<<24|d[(l&n)+34>>0]<<8|d[(l&n)+35>>0];k=dl(f,l,B,0)|0;c[(z&p)>>2]=k;if(k)break;k=c[(B&p)>>2]|0;r=k+56|0;q=c[(r&p)>>2]|0;q=d[(q&n)+5>>0]<<16|d[(q&n)+4>>0]<<24|d[(q&n)+6>>0]<<8|d[(q&n)+7>>0];m=(c[(f&p)+36>>2]|0)>>>2;if(q>>>0>(m+-2|0)>>>0){c[(t&p)>>2]=58627;c[(t&p)+4>>2]=10788;bd(11,13600,t);c[(z&p)>>2]=11;k=11;break}if(q>>>0<(m+-8|0)>>>0){k=Gg(c[(k&p)+68>>2]|0)|0;c[(z&p)>>2]=k;if(k)break;u=c[(r&p)>>2]|0;t=q+1|0;a[(u&n)+4>>0]=t>>>24;a[(u&n)+5>>0]=t>>>16;a[(u&n)+6>>0]=t>>>8;a[(u&n)+7>>0]=t;u=q<<2;t=c[(r&p)>>2]|0;a[(t+u&n)+8>>0]=h>>>24;a[(t+u&n)+9>>0]=h>>>16;a[(t+u&n)+10>>0]=h>>>8;a[(t+u&n)+11>>0]=h;if((((g|0)!=0?(b[(s&o)>>1]&4)==0:0)?(v=c[(g&p)+68>>2]|0,w=v+24|0,x=e[(w&o)>>1]|0,(x&2|0)!=0):0)?(c[((c[(v&p)+16>>2]|0)&p)+96>>2]|0)==0:0)b[(w&o)>>1]=x|32;l=f+60|0;k=c[(l&p)>>2]|0;do if(!k){g=c[(f&p)+44>>2]|0;k=qg(512,0)|0;if(!k){c[(l&p)>>2]=0;k=7;break}else{fw(k|0,0,512)|0;c[(k&p)>>2]=g;c[(l&p)>>2]=k;y=28;break}}else y=28;while(0);if((y|0)==28)if((c[(k&p)>>2]|0)>>>0>>0)k=0;else k=bi(k,h)|0;c[(z&p)>>2]=k;break}}else l=0;if(!g){k=dl(f,h,A,0)|0;c[(z&p)>>2]=k;if(k)break;g=c[(A&p)>>2]|0}k=Gg(c[(g&p)+68>>2]|0)|0;c[(z&p)>>2]=k;if(!k){k=g+56|0;v=c[(k&p)>>2]|0;a[(v&n)>>0]=l>>>24;a[(v&n)+1>>0]=l>>>16;a[(v&n)+2>>0]=l>>>8;a[(v&n)+3>>0]=l;k=(c[(k&p)>>2]|0)+4|0;a[(k&n)>>0]=0;a[(k&n)+1>>0]=0;a[(k&n)+2>>0]=0;a[(k&n)+3>>0]=0;k=c[(u&p)>>2]|0;a[(k&n)+32>>0]=h>>>24;a[(k&n)+33>>0]=h>>>16;a[(k&n)+34>>0]=h>>>8;a[(k&n)+35>>0]=h;k=0}}else k=l;while(0);g=c[(A&p)>>2]|0;if(g){a[(g&n)>>0]=0;Bg(c[(g&p)+68>>2]|0)}g=c[(B&p)>>2]|0;if(g)Bg(c[(g&p)+68>>2]|0);i=C;return k|0}function Zm(f,g,h,k,l,m){f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;m=m|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,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;S=i;i=i+48|0;if((i|0)>=(j|0))fa();P=S+24|0;G=S;z=S+36|0;Q=S+32|0;w=g+72|0;O=c[(w&p)>>2]|0;x=c[(f&p)>>2]|0;u=c[(g&p)+68>>2]|0;v=x+15|0;if((a[(v&n)>>0]|0)!=0?(q=Gg(u)|0,(q|0)!=0):0)R=20;else R=3;a:do if((R|0)==3){r=u+24|0;t=b[(r&o)>>1]|0;if((t&2)!=0?(Uo(u)|0)!=0:0){q=Vo(u)|0;if(q){R=20;break}t=b[(r&o)>>1]|0}if((t&4)==0|(m|0)!=0)s=0;else s=c[(u&p)+20>>2]|0;b[(r&o)>>1]=t&65531;D=x+204|0;m=ac[c[8876>>2]&63](c[((c[(D&p)>>2]|0)&p)+40>>2]|0,l,0)|0;m=il(c[(D&p)>>2]|0,l,m)|0;do if(m){b[(r&o)>>1]=e[(r&o)>>1]|e[(m&o)+24>>1]&4;if(!(a[(v&n)>>0]|0)){ml(m);break}else{Zp(m,(c[(x&p)+24>>2]|0)+1|0);break}}while(0);t=c[(u&p)+20>>2]|0;Zp(u,l);To(u);if(a[(v&n)>>0]|0){Zp(m,t);Bg(m)}do if(s){q=zg(x,s,P,0)|0;if(!q){D=c[(P&p)>>2]|0;C=D+24|0;b[(C&o)>>1]=e[(C&o)>>1]|4;To(D);Bg(D);break}if(s>>>0>(c[(x&p)+28>>2]|0)>>>0){R=20;break a}ci(c[(x&p)+56>>2]|0,s,c[(x&p)+200>>2]|0);R=20;break a}while(0);c[(Q&p)>>2]=0;c[(w&p)>>2]=l;if(h<<24>>24==1|h<<24>>24==5){q=_p(g)|0;c[(Q&p)>>2]=q;if(!q)R=25;else break}else{m=c[(g&p)+56>>2]|0;m=d[(m&n)+1>>0]<<16|d[(m&n)>>0]<<24|d[(m&n)+2>>0]<<8|d[(m&n)+3>>0];if(m){zp(f,m,4,l,Q);q=c[(Q&p)>>2]|0;if(!q)R=25;else break}}if((R|0)==25?h<<24>>24==1:0){q=0;break}q=dl(f,k,z,0)|0;c[(Q&p)>>2]=q;if(!q){C=c[(z&p)>>2]|0;D=C+68|0;q=Gg(c[(D&p)>>2]|0)|0;c[(Q&p)>>2]=q;if(q){if(!C)break;Bg(c[(D&p)>>2]|0);break}b:do if(h<<24>>24==4){q=c[(C&p)+56>>2]|0;r=q+1|0;s=q+2|0;m=q+3|0;if((d[(r&n)>>0]<<16|d[(q&n)>>0]<<24|d[(s&n)>>0]<<8|d[(m&n)>>0]|0)==(O|0)){a[(q&n)>>0]=l>>>24;a[(r&n)>>0]=l>>>16;a[(s&n)>>0]=l>>>8;a[(m&n)>>0]=l;q=0;break}else{c[(P&p)>>2]=56060;c[(P&p)+4>>2]=10788;bd(11,13600,P);q=11;break}}else{A=a[(C&n)>>0]|0;$p(C)|0;z=b[(C&o)+18>>1]|0;B=z&65535;c:do if(z<<16>>16){g=C+56|0;x=C+20|0;u=C+64|0;y=h<<24>>24==3;z=G+18|0;m=0;while(1){w=c[(g&p)>>2]|0;v=m<<1;t=c[(u&p)>>2]|0;v=(d[(t+v&n)>>0]<<8|d[(t+(v|1)&n)>>0])&e[(x&o)>>1];t=w+v|0;if(y){rp(C,t,G);t=b[(z&o)>>1]|0;if((t<<16>>16!=0?(E=(t&65535)+v|0,F=w+(E+3)|0,F>>>0<=((c[(g&p)>>2]|0)+(e[(x&o)>>1]|0)|0)>>>0):0)?(H=w+E|0,I=w+(E+1)|0,J=w+(E+2)|0,(d[(I&n)>>0]<<16|d[(H&n)>>0]<<24|d[(J&n)>>0]<<8|d[(F&n)>>0]|0)==(O|0)):0){t=F;q=H;r=I;s=J;R=40;break}}else{q=w+(v+1)|0;r=w+(v+2)|0;s=w+(v+3)|0;if((d[(q&n)>>0]<<16|d[(t&n)>>0]<<24|d[(r&n)>>0]<<8|d[(s&n)>>0]|0)==(O|0)){R=42;break}}m=m+1|0;if((m|0)>=(B|0))break c}if((R|0)==40){a[(q&n)>>0]=l>>>24;a[(r&n)>>0]=l>>>16;a[(s&n)>>0]=l>>>8;a[(t&n)>>0]=l;break}else if((R|0)==42){a[(t&n)>>0]=l>>>24;a[(q&n)>>0]=l>>>16;a[(r&n)>>0]=l>>>8;a[(s&n)>>0]=l;break}}else m=0;while(0);do if((m|0)==(B|0)){if(h<<24>>24==5?(N=d[(C&n)+6>>0]|0,J=c[(C&p)+56>>2]|0,K=J+(N+8)|0,L=J+(N+9)|0,M=J+(N+10)|0,N=J+(N+11)|0,(d[(L&n)>>0]<<16|d[(K&n)>>0]<<24|d[(M&n)>>0]<<8|d[(N&n)>>0]|0)==(O|0)):0){a[(K&n)>>0]=l>>>24;a[(L&n)>>0]=l>>>16;a[(M&n)>>0]=l>>>8;a[(N&n)>>0]=l;break}c[(P&p)>>2]=56094;c[(P&p)+4>>2]=10788;bd(11,13600,P);q=11;break b}while(0);a[(C&n)>>0]=A;q=0}while(0);c[(Q&p)>>2]=q;if(C)Bg(c[(D&p)>>2]|0);if(!q){zp(f,l,h,k,Q);q=c[(Q&p)>>2]|0}}}while(0);if((R|0)==20)c[(Q&p)>>2]=q;i=S;return q|0}function _m(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0;j=e+20|0;Tm(c[(j&p)>>2]|0);c[(j&p)>>2]=0;j=e+59|0;if(a[(j&n)>>0]|0){k=0;do{g=e+(k<<6)+76|0;mg(b,c[(g&p)>>2]|0);c[(g&p)>>2]=0;g=e+(k<<6)+80|0;h=c[(g&p)>>2]|0;if(h)do{i=h;h=c[(h&p)+4>>2]|0;if(i)Wc(i)}while((h|0)!=0);c[(g&p)>>2]=0;h=e+(k<<6)+96|0;g=c[(h&p)>>2]|0;if(g){i=c[(g&p)>>2]|0;if(i){lc[c[(i&p)+4>>2]&127](g)|0;c[(g&p)>>2]=0}Wc(g);c[(h&p)>>2]=0;g=e+(k<<6)+104|0;c[(g&p)>>2]=0;c[(g&p)+4>>2]=0}i=e+(k<<6)+112|0;h=c[(i&p)>>2]|0;if(h){g=c[(h&p)>>2]|0;if(g){lc[c[(g&p)+4>>2]&127](h)|0;c[(h&p)>>2]=0}Wc(h);c[(i&p)>>2]=0;g=e+(k<<6)+120|0;c[(g&p)>>2]=0;c[(g&p)+4>>2]=0}k=k+1|0}while((k|0)<(d[(j&n)>>0]|0))}h=e+36|0;if((c[(e&p)+40>>2]|0)==0?(f=c[(h&p)>>2]|0,(f|0)!=0):0)do{g=f;f=c[(f&p)+4>>2]|0;if(g)Wc(g)}while((f|0)!=0);c[(h&p)>>2]=0;c[(e&p)+44>>2]=0;a[(e&n)+56>>0]=0;c[(e&p)+48>>2]=0;c[(e&p)+8>>2]=0;f=e+32|0;mg(b,c[(f&p)>>2]|0);c[(f&p)>>2]=0;return}function $m(d,f,g,h){d=d|0;f=f|0;g=g|0;h=h|0;var k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0,v=0;u=i;i=i+16|0;if((i|0)>=(j|0))fa();k=u+4|0;r=u;s=c[(d&p)>>2]|0;m=c[(d&p)+8>>2]|0;q=c[(s&p)+16>>2]|0;l=(c[(q+(m<<4)&p)+12>>2]|0)+78|0;b[(l&o)>>1]=e[(l&o)>>1]&65531;l=s+65|0;do if(!(a[(l&n)>>0]|0))if(g){t=g+4|0;f=c[(t&p)>>2]|0;if(!f){aq(d,c[(g&p)>>2]|0,0);h=0;break}h=g+8|0;v=c[(h&p)>>2]|0;if((v|0)!=0?(a[(v&n)>>0]|0)!=0:0){q=s+144|0;a[(q&n)>>0]=m;c[(k&p)>>2]=0;Dn(f,k)|0;f=c[(h&p)>>2]|0;c[(s&p)+140>>2]=c[(k&p)>>2];t=s+146|0;a[(t&n)>>0]=0;ih(s,f,-1,0,0,r,0)|0;f=c[(s&p)+52>>2]|0;a[(q&n)>>0]=0;do if((f|0)!=0?(a[(t&n)>>0]|0)==0:0){c[(d&p)+12>>2]=f;if((f|0)==7){a[(l&n)>>0]=1;break}else if((f|0)==9)break;if((f&255|0)!=6){t=c[(g&p)>>2]|0;aq(d,t,Se(s)|0)}}while(0);md(c[(r&p)>>2]|0)|0;h=0;break}f=c[(g&p)>>2]|0;if(!f){aq(d,0,0);h=0;break}f=bq(s,f,c[(q+(m<<4)&p)>>2]|0)|0;if((f|0)!=0?(Dn(c[(t&p)>>2]|0,f+40|0)|0)==0:0){aq(d,c[(g&p)>>2]|0,13528);h=0}else h=0}else h=0;else{aq(d,c[(g&p)>>2]|0,0);h=1}while(0);i=u;return h|0}function an(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0;m=i;i=i+16|0;if((i|0)>=(j|0))fa();k=m;l=m+8|0;h=b+16|0;f=c[(h&p)>>2]|0;g=c[((c[(f+(d<<4)&p)+12>>2]|0)&p)+32>>2]|0;if(g){f=g;do{cq(c[(f&p)+8>>2]|0);f=c[(f&p)>>2]|0}while((f|0)!=0);f=c[(h&p)>>2]|0}c[(l&p)>>2]=b;f=c[(f+(d<<4)&p)>>2]|0;c[(l&p)+4>>2]=f;do if(!(_h(b,13384,f)|0))e=1;else{c[(k&p)>>2]=f;f=uh(b,13400,k)|0;if((f|0)!=0?(e=Qe(b,f,23,l,0)|0,mg(b,f),(e|0)!=7):0)break;a[(b&n)+65>>0]=1;e=7}while(0);i=m;return e|0}function bn(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0;j=c[(b&p)+12>>2]|0;if(!j){h=b+4|0;g=b+8|0;i=0}else{h=a[(e&n)>>0]|0;if(!(h<<24>>24))h=0;else{g=e;i=h;h=0;do{g=g+1|0;h=h<<3^h^(d[(i&255&n)+9328>>0]|0);i=a[(g&n)>>0]|0}while(i<<24>>24!=0)}i=(h>>>0)%((c[(b&p)>>2]|0)>>>0)|0;h=j+(i<<3)|0;g=j+(i<<3)+4|0}h=c[(h&p)>>2]|0;g=c[(g&p)>>2]|0;c[(f&p)>>2]=i;a:do if(!h)g=0;else while(1){h=h+-1|0;if(!(dd(c[(g&p)+12>>2]|0,e)|0))break a;if(!h){g=0;break}else g=c[(g&p)>>2]|0}while(0);return g|0}function cn(b,e,f,g){b=b|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,o=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0;w=i;i=i+16|0;if((i|0)>=(j|0))fa();v=w;u=w+12|0;a:do if((g|0)>0){s=b+16|0;t=b+4|0;r=(e|0)==0;h=f;e=g;while(1){m=e+-1|0;if(!(c[(s&p)>>2]|0))break a;if((h|0)<1){h=e;e=5;break}if(eq(b,h)|0)break a;if(zg(c[(t&p)>>2]|0,h,u,0)|0){e=8;break}o=c[(u&p)>>2]|0;q=c[(o&p)+4>>2]|0;do if(r)if((m|0)>0?(a[((c[(b&p)>>2]|0)&n)+17>>0]|0)!=0:0){dn(b,d[(q&n)+1>>0]<<16|d[(q&n)>>0]<<24|d[(q&n)+2>>0]<<8|d[(q&n)+3>>0],4,h);e=m}else e=m;else{l=d[(q&n)+5>>0]<<16|d[(q&n)+4>>0]<<24|d[(q&n)+6>>0]<<8|d[(q&n)+7>>0];k=c[(b&p)>>2]|0;if(a[(k&n)+17>>0]|0){dn(b,h,2,0);k=c[(b&p)>>2]|0}if((l|0)>(((c[(k&p)+36>>2]|0)/4|0)+-2|0)){c[(v&p)>>2]=h;fn(b,44640,v);e=e+-2|0;break}b:do if((l|0)>0){e=0;while(1){h=e<<2;h=d[(q+h&n)+9>>0]<<16|d[(q+h&n)+8>>0]<<24|d[(q+h&n)+10>>0]<<8|d[(q+h&n)+11>>0];if(a[(k&n)+17>>0]|0)dn(b,h,2,0);eq(b,h)|0;e=e+1|0;if((e|0)==(l|0))break b;k=c[(b&p)>>2]|0}}while(0);e=m-l|0}while(0);h=d[(q&n)+1>>0]<<16|d[(q&n)>>0]<<24|d[(q&n)+2>>0]<<8|d[(q&n)+3>>0];if(o)Bg(o);if((e|0)<=0)break a}if((e|0)==5){c[(v&p)>>2]=h;c[(v&p)+4>>2]=g;c[(v&p)+8>>2]=f;fn(b,44552,v);break}else if((e|0)==8){c[(v&p)>>2]=h;fn(b,44616,v);break}}while(0);i=w;return}function dn(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,o=0;o=i;i=i+32|0;if((i|0)>=(j|0))fa();l=o;h=o+24|0;k=o+20|0;g=hp(c[(b&p)>>2]|0,d,h,k)|0;if(!g){h=a[(h&n)>>0]|0;g=c[(k&p)>>2]|0;if(!((g|0)==(f|0)?h<<24>>24==e<<24>>24:0)){c[(l&p)>>2]=d;c[(l&p)+4>>2]=e&255;c[(l&p)+8>>2]=f;c[(l&p)+12>>2]=h&255;c[(l&p)+16>>2]=g;fn(b,44496,l)}}else if((g|0)==7|(g|0)==3082){c[(b&p)+24>>2]=1;m=3}else m=3;if((m|0)==3){c[(l&p)>>2]=d;fn(b,44464,l)}i=o;return}function en(f,g,h,k){f=f|0;g=g|0;h=h|0;k=k|0;var l=0,m=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;aa=i;i=i+64|0;if((i|0)>=(j|0))fa();V=aa+40|0;r=aa+56|0;Q=aa+32|0;R=aa+24|0;N=aa;_=Q;c[(_&p)>>2]=0;c[(_&p)+4>>2]=0;_=R;c[(_&p)>>2]=0;c[(_&p)+4>>2]=0;_=f+28|0;$=c[(_&p)>>2]|0;W=f+32|0;X=c[(W&p)>>2]|0;Y=f+36|0;Z=c[(Y&p)>>2]|0;S=c[(f&p)>>2]|0;M=S+36|0;T=c[(M&p)>>2]|0;if((g|0)!=0?(eq(f,g)|0)==0:0){c[(_&p)>>2]=43768;c[(W&p)>>2]=g;s=dl(S,g,r,0)|0;do if(!s){U=c[(r&p)>>2]|0;a[(U&n)>>0]=0;s=$p(U)|0;if(s){c[(V&p)>>2]=s;fn(f,43824,V);if(!U){l=-1;break}Bg(c[(U&p)+68>>2]|0);l=-1;break}z=f+16|0;O=U+18|0;s=b[(O&o)>>1]|0;a:do if(!(s<<16>>16)){t=U+5|0;s=0;l=0}else{A=U+56|0;B=U+20|0;C=U+64|0;D=N+12|0;E=U+2|0;F=N+16|0;G=T+-5|0;H=T+-4|0;I=S+17|0;J=U+5|0;w=0;x=0;while(1){if(!(c[(z&p)>>2]|0)){t=J;l=w;break a}c[(_&p)>>2]=43864;c[(W&p)>>2]=g;c[(Y&p)>>2]=x;r=c[(A&p)>>2]|0;s=x<<1;t=c[(C&p)>>2]|0;s=(d[(t+s&n)>>0]<<8|d[(t+(s|1)&n)>>0])&e[(B&o)>>1];t=r+s|0;rp(U,t,N);u=c[(D&p)>>2]|0;if(a[(E&n)>>0]|0){l=N;y=c[(l&p)>>2]|0;l=c[(l&p)+4>>2]|0;if(x){q=R;m=c[(q&p)>>2]|0;q=c[(q&p)+4>>2]|0;if(!((l|0)>(q|0)|(l|0)==(q|0)&y>>>0>m>>>0)){v=V;c[(v&p)>>2]=y;c[(v&p)+4>>2]=l;v=V+8|0;c[(v&p)>>2]=m;c[(v&p)+4>>2]=q;fn(f,43896,V)}}else{m=R;c[(m&p)>>2]=y;c[(m&p)+4>>2]=l;m=Q;c[(m&p)>>2]=y;c[(m&p)+4>>2]=l}m=R;c[(m&p)>>2]=y;c[(m&p)+4>>2]=l}y=c[(F&p)>>2]|0;l=y&65535;if(u>>>0>l>>>0?(K=(y>>>16)+s|0,L=r+K|0,L>>>0<=((c[(A&p)>>2]|0)+(c[(M&p)>>2]|0)|0)>>>0):0){y=d[(r+K&n)+1>>0]<<16|d[(L&n)>>0]<<24|d[(r+K&n)+2>>0]<<8|d[(r+K&n)+3>>0];if(a[(I&n)>>0]|0)dn(f,y,3,g);cn(f,0,y,((G+u-l|0)>>>0)/(H>>>0)|0)}if(!(a[(J&n)>>0]|0)){v=d[(r+s&n)+1>>0]<<16|d[(t&n)>>0]<<24|d[(r+s&n)+2>>0]<<8|d[(r+s&n)+3>>0];if(a[(I&n)>>0]|0)dn(f,v,5,g);l=en(f,v,Q,(x|0)==0?0:R)|0;if(!((x|0)<1|(l|0)==(w|0)))fn(f,43944,V)}else l=w;x=x+1|0;s=b[(O&o)>>1]|0;if((x|0)>=(s&65535|0)){t=J;break}else w=l}}while(0);if(!(a[(t&n)>>0]|0)){r=d[(U&n)+6>>0]|0;J=c[(U&p)+56>>2]|0;r=d[(J+r&n)+9>>0]<<16|d[(J+r&n)+8>>0]<<24|d[(J+r&n)+10>>0]<<8|d[(J+r&n)+11>>0];c[(_&p)>>2]=43976;c[(W&p)>>2]=g;if(a[(S&n)+17>>0]|0){dn(f,r,5,g);s=b[(O&o)>>1]|0}en(f,r,0,s<<16>>16!=0?R:0)|0;J=a[(t&n)>>0]|0;c[(_&p)>>2]=43768;c[(W&p)>>2]=g;if(J<<24>>24)P=34}else{c[(_&p)>>2]=43768;c[(W&p)>>2]=g;P=34}do if((P|0)==34?(a[(U&n)+2>>0]|0)!=0:0){r=(k|0)!=0;if(!h){if(!r)break;r=Q;s=c[(r&p)>>2]|0;r=c[(r&p)+4>>2]|0;m=k;q=c[(m&p)>>2]|0;m=c[(m&p)+4>>2]|0;if((r|0)>(m|0)|(r|0)==(m|0)&s>>>0>q>>>0)break;J=V;c[(J&p)>>2]=s;c[(J&p)+4>>2]=r;J=V+8|0;c[(J&p)>>2]=q;c[(J&p)+4>>2]=m;fn(f,44200,V);break}if(!r){s=R;r=c[(s&p)>>2]|0;s=c[(s&p)+4>>2]|0;m=h;q=c[(m&p)>>2]|0;m=c[(m&p)+4>>2]|0;if(!((s|0)>(m|0)|(s|0)==(m|0)&r>>>0>q>>>0))break;J=V;c[(J&p)>>2]=r;c[(J&p)+4>>2]=s;J=V+8|0;c[(J&p)>>2]=q;c[(J&p)+4>>2]=m;fn(f,44008,V);break}r=Q;s=c[(r&p)>>2]|0;r=c[(r&p)+4>>2]|0;m=h;q=c[(m&p)>>2]|0;m=c[(m&p)+4>>2]|0;if(!((r|0)>(m|0)|(r|0)==(m|0)&s>>>0>q>>>0)){J=V;c[(J&p)>>2]=s;c[(J&p)+4>>2]=r;J=V+8|0;c[(J&p)>>2]=q;c[(J&p)+4>>2]=m;fn(f,44072,V)}q=R;m=c[(q&p)>>2]|0;q=c[(q&p)+4>>2]|0;r=k;s=c[(r&p)>>2]|0;r=c[(r&p)+4>>2]|0;if((q|0)>(r|0)|(q|0)==(r|0)&m>>>0>s>>>0){J=V;c[(J&p)>>2]=m;c[(J&p)+4>>2]=q;q=V+8|0;c[(q&p)>>2]=s;c[(q&p)+4>>2]=r;fn(f,44136,V);q=R;m=c[(q&p)>>2]|0;q=c[(q&p)+4>>2]|0}J=h;c[(J&p)>>2]=m;c[(J&p)+4>>2]=q}while(0);w=c[(U&p)+56>>2]|0;x=d[(U&n)+6>>0]|0;y=Go(c[(S&p)+32>>2]|0)|0;c[(_&p)>>2]=0;if(y){v=((d[(w+x&n)+5>>0]<<8|d[(w+x&n)+6>>0])+65535&65535)+1|0;fw(y+v|0,0,T-v|0)|0;fw(y|0,1,v|0)|0;v=d[(w+x&n)+3>>0]<<8|d[(w+x&n)+4>>0];q=x+12-(d[(t&n)>>0]<<2)|0;if(v){m=T+-4|0;u=0;do{t=q+(u<<1)|0;t=d[(w+t&n)>>0]<<8|d[(w+t&n)+1>>0];if((t|0)>(m|0))r=65536;else r=(Lp(U,w+t|0)|0)&65535;s=r+t|0;if((s|0)<=(T|0)){if(r)do{s=s+-1|0;J=y+s|0;a[(J&n)>>0]=(a[(J&n)>>0]|0)+1<<24>>24}while((s|0)>(t|0))}else{c[(_&p)>>2]=0;c[(V&p)>>2]=u;c[(V&p)+4>>2]=g;fn(f,44264,V)}u=u+1|0}while((u|0)<(v|0))}m=d[(w+x&n)+1>>0]<<8|d[(w+x&n)+2>>0];if(m)do{q=d[(w+m&n)+2>>0]<<8|d[(w+m&n)+3>>0];if(q){q=q+m|0;do{q=q+-1|0;J=y+q|0;a[(J&n)>>0]=(a[(J&n)>>0]|0)+1<<24>>24}while((q|0)>(m|0))}m=d[(w+m&n)>>0]<<8|d[(w+m&n)+1>>0]}while((m|0)!=0);b:do if((T|0)>0){q=0;m=0;while(1){r=a[(y+m&n)>>0]|0;if(r<<24>>24){if(r<<24>>24>1)break}else q=q+1|0;m=m+1|0;if((m|0)>=(T|0))break b}c[(V&p)>>2]=m;c[(V&p)+4>>2]=g;fn(f,44312,V)}else q=0;while(0);m=d[(w+x&n)+7>>0]|0;if((q|0)!=(m|0)){c[(V&p)>>2]=q;c[(V&p)+4>>2]=m;c[(V&p)+8>>2]=g;fn(f,44352,V)}}else c[(f&p)+24>>2]=1;$k(y);if(U)Bg(c[(U&p)+68>>2]|0)}else{c[(V&p)>>2]=s;fn(f,43784,V);l=-1}while(0);c[(_&p)>>2]=$;c[(W&p)>>2]=X;c[(Y&p)>>2]=Z;l=l+1|0}else l=0;i=aa;return l|0}function fn(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0;m=i;i=i+224|0;if((i|0)>=(j|0))fa();h=m;k=m+8|0;l=m+24|0;f=b+16|0;g=c[(f&p)>>2]|0;if(g){c[(f&p)>>2]=g+-1;f=b+20|0;c[(f&p)>>2]=(c[(f&p)>>2]|0)+1;c[(k&p)>>2]=e;e=b+40|0;if(c[(b&p)+52>>2]|0)Sk(e,43760,1);f=c[(b&p)+28>>2]|0;if(f){g=c[(b&p)+36>>2]|0;c[(h&p)>>2]=c[(b&p)+32>>2];c[(h&p)+4>>2]=g;ad(200,l,f,h)|0;f=l;while(1)if(!(a[(f&n)>>0]|0))break;else f=f+1|0;Sk(e,l,f-l&1073741823)}sg(e,1,d,k);if((a[(b&n)+65>>0]|0)==1)c[(b&p)+24>>2]=1}i=m;return}function gn(b){b=b|0;var d=0,e=0;d=b+8|0;e=c[(d&p)>>2]|0;do if((e|0)!=(c[(b&p)+4>>2]|0))if((a[(b&n)+24>>0]|0)==1){mg(c[(b&p)>>2]|0,e);break}else{Wc(e);break}while(0);c[(d&p)>>2]=0;return}function hn(d){d=d|0;var f=0,g=0,h=0,i=0;g=c[(d&p)+32>>2]|0;i=d+8|0;if(!((b[(i&o)>>1]&9312)==0?(c[(d&p)+24>>2]|0)==0:0))Qg(d);f=mh(g,64,0)|0;h=d+20|0;c[(h&p)>>2]=f;if(!(a[(g&n)+65>>0]|0)){do if(!g)f=lc[c[8792>>2]&127](f)|0;else{if((c[(g&p)+276>>2]|0)>>>0<=f>>>0?(c[(g&p)+280>>2]|0)>>>0>f>>>0:0){f=e[(g&o)+248>>1]|0;break}f=lc[c[8792>>2]&127](f)|0}while(0);c[(d&p)+24>>2]=f;h=c[(h&p)>>2]|0;c[(h&p)>>2]=0;c[(h&p)+4>>2]=g;c[(h&p)+8>>2]=0;c[(h&p)+12>>2]=0;c[(h&p)+20>>2]=0;c[(h&p)+16>>2]=h+32;b[(h&o)+24>>1]=(f+1048544|0)>>>4;b[(h&o)+26>>1]=1;c[(h&p)+28>>2]=0;c[(d&p)>>2]=h;b[(i&o)>>1]=32}else{b[(i&o)>>1]=1;c[(d&p)+24>>2]=0}return}function jn(a,d,f){a=a|0;d=d|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0;i=on(a)|0;if(i){j=i;c[(j&p)>>2]=d;c[(j&p)+4>>2]=f;c[(i&p)+8>>2]=0;j=a+12|0;h=c[(j&p)>>2]|0;if(!h)c[(a&p)+8>>2]=i;else{a=a+26|0;g=e[(a&o)>>1]|0;if((g&1|0)!=0?(k=h,l=c[(k&p)+4>>2]|0,!((l|0)<(f|0)|((l|0)==(f|0)?(c[(k&p)>>2]|0)>>>0>>0:0))):0)b[(a&o)>>1]=g&65534;c[(h&p)+8>>2]=i}c[(j&p)>>2]=i}return}function kn(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0;h=i;i=i+160|0;if((i|0)>=(j|0))fa();g=h;fw(g|0,0,160)|0;a:do if(!a){a=0;b=0}else{b=0;while(1){d=a+8|0;f=c[(d&p)>>2]|0;c[(d&p)>>2]=0;if(!b)b=g;else{d=b;b=g;e=0;do{a=mn(d,a)|0;c[(b&p)>>2]=0;e=e+1|0;b=g+(e<<2)|0;d=c[(b&p)>>2]|0}while((d|0)!=0)}c[(b&p)>>2]=a;if(!f){a=0;b=0;break a}a=f;b=c[(g&p)>>2]|0}}while(0);do{a=mn(a,c[(g+(b<<2)&p)>>2]|0)|0;b=b+1|0}while((b|0)!=40);i=h;return a|0}function ln(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0;g=i;i=i+16|0;if((i|0)>=(j|0))fa();e=g;f=c[(a&p)+12>>2]|0;if(!f)c[(b&p)>>2]=a;else{ln(f,b,e);c[((c[(e&p)>>2]|0)&p)+8>>2]=a}e=a+8|0;f=c[(e&p)>>2]|0;if(!f)c[(d&p)>>2]=a;else ln(f,e,d);i=g;return}function mn(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0;m=i;i=i+16|0;if((i|0)>=(j|0))fa();l=m;d=(a|0)!=0;a:do if(d&(b|0)!=0){e=a;a=l;while(1){h=e;g=c[(h&p)>>2]|0;h=c[(h&p)+4>>2]|0;while(1){f=b;d=c[(f&p)>>2]|0;f=c[(f&p)+4>>2]|0;if((h|0)<(f|0)|(h|0)==(f|0)&g>>>0>>0){k=4;break}if(!((f|0)<(h|0)|(f|0)==(h|0)&d>>>0>>0))break;c[(a&p)+8>>2]=b;d=c[(b&p)+8>>2]|0;if(!d){f=0;d=1;break a}else{a=b;b=d}}if((k|0)==4){k=0;c[(a&p)+8>>2]=e;a=e}e=c[(e&p)+8>>2]|0;d=(e|0)!=0;if(!(d&(b|0)!=0)){f=b;b=a;break}}}else{f=b;e=a;b=l}while(0);c[(b&p)+8>>2]=d?e:f;i=m;return c[(l&p)+8>>2]|0}function nn(a){a=a|0;var b=0,d=0,e=0,f=0,g=0;f=i;i=i+16|0;if((i|0)>=(j|0))fa();e=f;d=a+8|0;b=c[(d&p)>>2]|0;c[(e&p)>>2]=b;c[(d&p)>>2]=0;c[(a&p)+12>>2]=0;if(!b)b=a;else{d=1;while(1){g=b+8|0;c[(e&p)>>2]=c[(g&p)>>2];c[(b&p)+12>>2]=a;c[(g&p)>>2]=fq(e,d)|0;a=c[(e&p)>>2]|0;if(!a)break;else{g=b;b=a;d=d+1|0;a=g}}}i=f;return b|0}function on(a){a=a|0;var d=0,e=0,f=0,g=0;f=a+24|0;d=b[(f&o)>>1]|0;if(!(d<<16>>16)){d=mh(c[(a&p)+4>>2]|0,1016,0)|0;if(!d)d=0;else{c[(d&p)>>2]=c[(a&p)>>2];c[(a&p)>>2]=d;d=d+8|0;c[(a&p)+16>>2]=d;b[(f&o)>>1]=63;e=62;g=5}}else{e=d+-1<<16>>16;d=c[(a&p)+16>>2]|0;g=5}if((g|0)==5){b[(f&o)>>1]=e;c[(a&p)+16>>2]=d+16}return d|0}function pn(d){d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0;t=i;i=i+16|0;if((i|0)>=(j|0))fa();s=t;g=d+4|0;if(a[(g&n)>>0]|0){e=qn(d)|0;if(!e){m=a[(g&n)>>0]|0;f=4}}else{m=0;f=4}do if((f|0)==4){h=c[(d&p)>>2]|0;q=c[(d&p)+60>>2]|0;k=c[(d&p)+212>>2]|0;e=d+160|0;f=c[(e&p)>>2]|0;e=c[(e&p)+4>>2]|0;l=d+208|0;c[(l&p)>>2]=0;g=(c[(h&p)+4>>2]|0)+112|0;r=qg(g,0)|0;if(!r)e=7;else{fw(r|0,0,g|0)|0;c[(r&p)>>2]=h;u=r+112|0;g=r+8|0;c[(g&p)>>2]=u;c[(r&p)+4>>2]=q;b[(r&o)+40>>1]=-1;d=r+16|0;c[(d&p)>>2]=f;c[(d&p)+4>>2]=e;c[(r&p)+100>>2]=k;d=r+48|0;a[(d&n)>>0]=1;f=r+49|0;a[(f&n)>>0]=1;a[(r&n)+43>>0]=m<<24>>24!=0?2:0;c[(s&p)>>2]=524294;e=tc[c[(h&p)+24>>2]&31](h,k,u,524294,s)|0;if(e){gq(r,0);f=c[(g&p)>>2]|0;g=c[(f&p)>>2]|0;if(g){lc[c[(g&p)+4>>2]&127](f)|0;c[(f&p)>>2]=0}Wc(r);break}if(c[(s&p)>>2]&1)a[(r&n)+46>>0]=1;g=lc[c[((c[(q&p)>>2]|0)&p)+48>>2]&127](q)|0;if(g&1024)a[(d&n)>>0]=0;if(g&4096)a[(f&n)>>0]=0;c[(l&p)>>2]=r;e=0}}while(0);i=t;return e|0}function qn(b){b=b|0;var d=0,e=0,f=0;f=fl(b,4)|0;if((f|0)!=0?(d=c[(b&p)+60>>2]|0,e=c[(d&p)>>2]|0,(e|0)!=0):0){if(!(a[(b&n)+13>>0]|0))rc[c[(e&p)+32>>2]&127](d,1)|0;d=b+17|0;if((a[(d&n)>>0]|0)!=5)a[(d&n)>>0]=1}return f|0}function rn(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0;m=i;i=i+16|0;if((i|0)>=(j|0))fa();l=m;if(!b)g=0;else{k=b+4|0;g=c[(k&p)>>2]|0;g=rc[c[((c[(g&p)>>2]|0)&p)+28>>2]&127](g,4)|0;if(!g){h=b+43|0;if(!(a[(h&n)>>0]|0))a[(h&n)>>0]=1;g=Tn(b,0,0,0,d,e,f,0,0)|0;if(!g){c[(l&p)>>2]=-1;g=c[(k&p)>>2]|0;ac[c[((c[(g&p)>>2]|0)&p)+40>>2]&63](g,10,l)|0;if((c[(l&p)>>2]|0)==1){g=b+16|0;d=c[(g&p)+4>>2]|0;if((d|0)>-1|(d|0)==-1&(c[(g&p)>>2]|0)>>>0>4294967295){Zo(b,0,0);e=0;g=0}else{e=0;g=0}}else{e=1;g=0}}else e=0}else e=0;gq(b,e);d=c[(b&p)+8>>2]|0;h=c[(d&p)>>2]|0;if(h){lc[c[(h&p)+4>>2]&127](d)|0;c[(d&p)>>2]=0}if(e){d=c[3164]|0;if(d)nc[d&3]();d=c[(b&p)>>2]|0;ac[c[(d&p)+28>>2]&63](d,c[(b&p)+100>>2]|0,0)|0;d=c[3166]|0;if(d)nc[d&3]()}Wc(c[(b&p)+32>>2]|0);Wc(b)}i=m;return g|0}function sn(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0;k=b+5|0;g=a[(k&n)>>0]|0;if(!((a[(b&n)+15>>0]|0)!=0?!((e|0)==2|(e|0)==4):0))h=3;do if(((h|0)==3?(f=g&255,(f|0)!=(e|0)):0)?(a[(k&n)>>0]=e,(a[(b&n)+4>>0]|0)==0&(f&5|0)==1&(e&1|0)==0):0){f=c[(b&p)+64>>2]|0;g=c[(f&p)>>2]|0;if(g){lc[c[(g&p)+4>>2]&127](f)|0;c[(f&p)>>2]=0}j=b+17|0;if((d[(j&n)>>0]|0)>1){f=c[(b&p)>>2]|0;ac[c[(f&p)+28>>2]&63](f,c[(b&p)+172>>2]|0,0)|0;break}g=b+16|0;f=a[(g&n)>>0]|0;i=f<<24>>24==0;if(i){e=cl(b)|0;h=a[(g&n)>>0]|0}else{h=f;e=0}if(h<<24>>24==1)e=fl(b,2)|0;if((e|0)==0?(g=c[(b&p)>>2]|0,ac[c[(g&p)+28>>2]&63](g,c[(b&p)+172>>2]|0,0)|0,f<<24>>24==1):0){g=c[(b&p)+60>>2]|0;f=c[(g&p)>>2]|0;if(!f)break;if(!(a[(b&n)+13>>0]|0))rc[c[(f&p)+32>>2]&127](g,1)|0;if((a[(j&n)>>0]|0)==5)break;a[(j&n)>>0]=1;break}if(i)No(b)}while(0);return d[(k&n)>>0]|0}function tn(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0;g=i;i=i+16|0;if((i|0)>=(j|0))fa();f=g;e=g+4|0;do if(d)if(!(ih(a,d,-1,0,0,e,0)|0)){e=c[(e&p)>>2]|0;Sd(e)|0;a=hq(a,e,b)|0;break}else{dh(b,a,Se(a)|0,f);a=Nf(a)|0;break}else a=7;while(0);i=g;return a|0}function un(a){a=a|0;var b=0;c[((c[(a&p)+4>>2]|0)&p)+4>>2]=c[(a&p)>>2];b=Kg(a,0)|0;if(!b)b=Jg(a,0)|0;return b|0}function vn(e,f){e=e|0;f=f|0;var g=0,h=0;g=c[(e&p)+4>>2]|0;c[(g&p)+4>>2]=c[(e&p)>>2];e=f&255;if(b[(g&o)+22>>1]&2){f=g+17|0;if(((e|0)!=0|0)==(d[(f&n)>>0]|0|0))h=4;else f=8}else{f=g+17|0;h=4}if((h|0)==4){a[(f&n)>>0]=(e|0)!=0&1;a[(g&n)+18>>0]=(e|0)==2&1;f=0}return f|0}function wn(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0;g=i;i=i+16|0;if((i|0)>=(j|0))fa();e=g;d=ih(a,d,-1,0,0,e,0)|0;do if(!d){e=c[(e&p)>>2]|0;while(1){if((Sd(e)|0)!=100){f=6;break}d=tn(a,b,fe(e,0)|0)|0;if(d){f=5;break}}if((f|0)==5){hq(a,e,b)|0;break}else if((f|0)==6){d=hq(a,e,b)|0;break}}while(0);i=g;return d|0}function xn(a){a=a|0;var b=0;b=a+100|0;c[(b&p)>>2]=(c[(b&p)>>2]|0)+1;b=c[(a&p)+88>>2]|0;if(b)do{c[(b&p)+16>>2]=1;b=c[(b&p)+44>>2]|0}while((b|0)!=0);dp(c[(a&p)+204>>2]|0,0);return}function yn(a){a=a|0;var b=0,d=0,e=0;e=a+304|0;b=c[(e&p)>>2]|0;if(!((b|0)%5|0)){b=(b<<2)+20|0;d=a+328|0;b=ro(a,c[(d&p)>>2]|0,b,((b|0)<0)<<31>>31)|0;if(!b)b=7;else{a=b+(c[(e&p)>>2]<<2)|0;c[(a&p)>>2]=0;c[(a&p)+4>>2]=0;c[(a&p)+8>>2]=0;c[(a&p)+12>>2]=0;c[(a&p)+16>>2]=0;c[(d&p)>>2]=b;b=0}}else b=0;return b|0}function zn(e,f,g,h,k){e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;var l=0,m=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;C=i;i=i+16|0;if((i|0)>=(j|0))fa();z=C;u=C+8|0;x=C+4|0;l=f+56|0;v=c[(l&p)>>2]|0;w=c[(f&p)+52>>2]|0;c[(x&p)>>2]=0;c[(z&p)>>2]=c[(f&p)>>2];B=uh(e,10344,z)|0;do if(!B)l=7;else{y=mh(e,28,0)|0;if(!y){mg(e,B);l=7;break}s=y+0|0;r=s+28|0;do{a[(s&n)>>0]=0;s=s+1|0}while((s|0)<(r|0));c[(y&p)>>2]=e;c[(y&p)+4>>2]=g;t=c[(f&p)+68>>2]|0;a:do if(t){s=c[(e&p)+20>>2]|0;if((s|0)>0){q=c[(e&p)+16>>2]|0;m=0;while(1){r=m+1|0;if((c[(q+(m<<4)&p)+12>>2]|0)==(t|0)){r=m;break a}if((r|0)<(s|0))m=r;else break}}else r=0}else r=-1e6;while(0);c[((c[(l&p)>>2]|0)&p)+4>>2]=c[((c[(e&p)+16>>2]|0)+(r<<4)&p)>>2];s=u+4|0;c[(s&p)>>2]=f;c[(u&p)>>2]=y;t=e+324|0;q=c[(t&p)>>2]|0;c[(t&p)>>2]=u;r=y+8|0;l=kc[h&7](e,c[(g&p)+8>>2]|0,w,v,r,x)|0;c[(t&p)>>2]=q;do if((l|0)==7){a[(e&n)+65>>0]=1;A=11}else if(!l){q=c[(r&p)>>2]|0;if(q){c[(q&p)>>2]=0;c[(q&p)+4>>2]=0;c[(q&p)+8>>2]=0;c[(c[(r&p)>>2]&p)>>2]=c[(g&p)>>2];c[(y&p)+12>>2]=1;if(c[(s&p)>>2]|0){c[(z&p)>>2]=c[(f&p)>>2];c[(k&p)>>2]=uh(e,28376,z)|0;An(y);l=1;break}x=f+60|0;c[(y&p)+24>>2]=c[(x&p)>>2];c[(x&p)>>2]=y;x=f+38|0;l=b[(x&o)>>1]|0;if(l<<16>>16>0){w=f+4|0;m=c[(w&p)>>2]|0;h=0;while(1){u=c[(m+(h*24|0)&p)+12>>2]|0;if(u){q=u;while(1)if(!(a[(q&n)>>0]|0))break;else q=q+1|0;r=q-u|0;t=r&1073741823;if((Fc(28424,u,6)|0)==0?(v=a[(u&n)+6>>0]|0,v<<24>>24==32|v<<24>>24==0):0)q=0;else A=24;b:do if((A|0)==24){A=0;if(!t)q=0;else{q=0;while(1){if((Fc(28432,u+q|0,7)|0)==0?(v=a[(u+q&n)+7>>0]|0,v<<24>>24==32|v<<24>>24==0):0)break;q=q+1|0;if((q|0)>=(t|0))break b}q=q+1|0}}while(0);if((q|0)<(t|0)){s=(a[(u+q&n)+6>>0]|0)!=0|6;m=q+s|0;if((m|0)<=(t|0)){r=(r&1073741823)+1-s|0;l=m;m=q;while(1){a[(u+m&n)>>0]=a[(u+l&n)>>0]|0;m=m+1|0;if((m|0)==(r|0))break;else l=m+s|0}}if((a[(u+q&n)>>0]|0)==0&(q|0)>0)a[(u+q+-1&n)>>0]=0;m=c[(w&p)>>2]|0;l=m+(h*24|0)+23|0;a[(l&n)>>0]=d[(l&n)>>0]|2;l=b[(x&o)>>1]|0}}h=h+1|0;if((h|0)>=(l<<16>>16|0)){l=0;break}}}else l=0}else l=0}else A=11;while(0);if((A|0)==11){m=c[(x&p)>>2]|0;if(!m){c[(z&p)>>2]=B;c[(k&p)>>2]=uh(e,28344,z)|0}else{c[(z&p)>>2]=m;c[(k&p)>>2]=uh(e,10344,z)|0;Wc(c[(x&p)>>2]|0)}mg(e,y)}mg(e,B)}while(0);i=C;return l|0}function An(a){a=a|0;var b=0,d=0,e=0;b=c[(a&p)>>2]|0;e=a+12|0;d=(c[(e&p)>>2]|0)+-1|0;c[(e&p)>>2]=d;if(!d){d=c[(a&p)+8>>2]|0;if(d)lc[c[((c[(d&p)>>2]|0)&p)+16>>2]&127](d)|0;mg(b,a)}return}function Bn(f,g){f=f|0;g=g|0;var h=0,i=0,j=0,k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0,v=0;v=f+10|0;i=g<<24>>24==1;if((a[(v&n)>>0]|0)==1|i){r=f+12|0;h=c[(r&p)>>2]|0;if(i){i=h&-2;c[(r&p)>>2]=i;l=i;i=i<<1|1}else{l=h;i=(h<<1)+2|0}s=f+16|0;h=c[(s&p)>>2]|0;q=h+l|0;t=f+32|0;u=mh(c[(t&p)>>2]|0,i,((i|0)<0)<<31>>31)|0;if(!u)h=7;else{i=a[(v&n)>>0]|0;if(i<<24>>24==2)if((l|0)>0){i=u;do{j=d[(h&n)>>0]|0;l=h+2|0;m=d[(h&n)+1>>0]<<8;k=m|j;if((m&63488|0)==55296&l>>>0>>0){k=(k<<10&983040)+65536|j<<10&64512|d[(l&n)>>0]|d[(h&n)+3>>0]<<8&768;h=h+4|0}else h=l;do if(k>>>0>=128){if(k>>>0<2048){a[(i&n)>>0]=k>>>6&31|192;a[(i&n)+1>>0]=k&63|128;i=i+2|0;break}if(k>>>0<65536){a[(i&n)>>0]=k>>>12&15|224;a[(i&n)+1>>0]=k>>>6&63|128;a[(i&n)+2>>0]=k&63|128;i=i+3|0;break}else{a[(i&n)>>0]=k>>>18&7|240;a[(i&n)+1>>0]=k>>>12&63|128;a[(i&n)+2>>0]=k>>>6&63|128;a[(i&n)+3>>0]=k&63|128;i=i+4|0;break}}else{a[(i&n)>>0]=k;i=i+1|0}while(0)}while(h>>>0>>0);m=55}else{i=u;m=55}else if(i<<24>>24!=1)if((l|0)>0){i=u;do{m=d[(h&n)>>0]<<8;l=h+2|0;k=d[(h&n)+1>>0]|0;j=m|k;if((m&63488|0)==55296&l>>>0>>0){j=(j<<10&983040)+65536|k<<10&64512|d[(h&n)+3>>0]|d[(l&n)>>0]<<8&768;h=h+4|0}else h=l;do if(j>>>0>=128){if(j>>>0<2048){a[(i&n)>>0]=j>>>6&31|192;a[(i&n)+1>>0]=j&63|128;i=i+2|0;break}if(j>>>0<65536){a[(i&n)>>0]=j>>>12&15|224;a[(i&n)+1>>0]=j>>>6&63|128;a[(i&n)+2>>0]=j&63|128;i=i+3|0;break}else{a[(i&n)>>0]=j>>>18&7|240;a[(i&n)+1>>0]=j>>>12&63|128;a[(i&n)+2>>0]=j>>>6&63|128;a[(i&n)+3>>0]=j&63|128;i=i+4|0;break}}else{a[(i&n)>>0]=j;i=i+1|0}while(0)}while(h>>>0>>0);m=55}else{i=u;m=55}else{i=(l|0)>0;if(g<<24>>24==2)if(i){i=u;l=h;while(1){h=l+1|0;j=a[(l&n)>>0]|0;k=j&255;if((j&255)>191){k=d[(k+-192&n)+15360>>0]|0;a:do if((h|0)==(q|0))h=q;else while(1){j=a[(h&n)>>0]|0;if((j&-64)<<24>>24!=-128)break a;l=l+2|0;k=j&63|k<<6;if((l|0)==(q|0)){h=q;break}else{j=h;h=l;l=j}}while(0);if(!(k>>>0<128|(k&-2048|0)==55296|(k&-2|0)==65534))if(k>>>0<65536)m=22;else{l=k+-65536|0;a[(i&n)>>0]=l>>>10&192|k>>>10&63;a[(i&n)+1>>0]=l>>>18&3|216;a[(i&n)+2>>0]=k;a[(i&n)+3>>0]=k>>>8&3|220;i=i+4|0}else{k=65533;m=22}}else m=22;if((m|0)==22){m=0;a[(i&n)>>0]=k;a[(i&n)+1>>0]=k>>>8;i=i+2|0}if(h>>>0>>0)l=h;else break}}else i=u;else if(i){i=u;do{l=h+1|0;k=a[(h&n)>>0]|0;j=k&255;if((k&255)>191){j=d[(j+-192&n)+15360>>0]|0;b:do if((l|0)==(q|0))h=q;else{k=h;h=l;while(1){l=a[(h&n)>>0]|0;if((l&-64)<<24>>24!=-128)break b;k=k+2|0;j=l&63|j<<6;if((k|0)==(q|0)){h=q;break}else{l=h;h=k;k=l}}}while(0);if(!(j>>>0<128|(j&-2048|0)==55296|(j&-2|0)==65534))if(j>>>0<65536)m=31;else{l=j+-65536|0;a[(i&n)>>0]=l>>>18&3|216;a[(i&n)+1>>0]=l>>>10&192|j>>>10&63;a[(i&n)+2>>0]=j>>>8&3|220;a[(i&n)+3>>0]=j;i=i+4|0}else{j=65533;m=31}}else{h=l;m=31}if((m|0)==31){m=0;a[(i&n)>>0]=j>>>8;a[(i&n)+1>>0]=j;i=i+2|0}}while(h>>>0>>0)}else i=u;c[(r&p)>>2]=i-u;a[(i&n)>>0]=0;i=i+1|0}if((m|0)==55)c[(r&p)>>2]=i-u;a[(i&n)>>0]=0;i=f+8|0;r=b[(i&o)>>1]|0;h=r&65535;if(!((r&9312)==0?(c[(f&p)+24>>2]|0)==0:0))Qg(f);b[(i&o)>>1]=h&29|514;a[(v&n)>>0]=g;c[(s&p)>>2]=u;c[(f&p)+20>>2]=u;h=c[(t&p)>>2]|0;do if(!h)h=lc[c[8792>>2]&127](u)|0;else{if((c[(h&p)+276>>2]|0)>>>0<=u>>>0?(c[(h&p)+280>>2]|0)>>>0>u>>>0:0){h=e[(h&o)+248>>1]|0;break}h=lc[c[8792>>2]&127](u)|0}while(0);c[(f&p)+24>>2]=h;h=0}}else if(!(Vl(f)|0)){h=c[(f&p)+16>>2]|0;t=c[(f&p)+12>>2]&-2;i=h+t|0;if((t|0)>0)do{s=a[(h&n)>>0]|0;t=h+1|0;a[(h&n)>>0]=a[(t&n)>>0]|0;h=h+2|0;a[(t&n)>>0]=s}while(h>>>0>>0);a[(v&n)>>0]=g;h=0}else h=7;return h|0}function Cn(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,i=0,j=0;i=a[(b&n)>>0]|0;g=i&255;a:do switch(g|0){case 46:{if(((d[(b&n)+1>>0]|0)+-48|0)>>>0<10)j=51;else{c[(e&p)>>2]=122;f=1}break}case 47:{if((a[(b&n)+1>>0]|0)==42?(f=a[(b&n)+2>>0]|0,f<<24>>24!=0):0){f=f&255;g=3;while(1){i=a[(b+g&n)>>0]|0;if((f|0)==42&i<<24>>24==47){f=42;break}f=i&255;if(!(i<<24>>24))break;else g=g+1|0}c[(e&p)>>2]=151;f=((f|0)!=0&1)+g|0;break a}c[(e&p)>>2]=92;f=1;break}case 45:{if((a[(b&n)+1>>0]|0)==45)f=2;else{c[(e&p)>>2]=90;f=1;break a}while(1){g=a[(b+f&n)>>0]|0;if(g<<24>>24==0|g<<24>>24==10)break;f=f+1|0}c[(e&p)>>2]=151;break}case 41:{c[(e&p)>>2]=23;f=1;break}case 59:{c[(e&p)>>2]=1;f=1;break}case 43:{c[(e&p)>>2]=89;f=1;break}case 42:{c[(e&p)>>2]=91;f=1;break}case 40:{c[(e&p)>>2]=22;f=1;break}case 124:if((a[(b&n)+1>>0]|0)==124){c[(e&p)>>2]=94;f=2;break a}else{c[(e&p)>>2]=86;f=1;break a}case 91:{f=1;while(1){g=a[(b+f&n)>>0]|0;if(!(g<<24>>24)){g=g&255;break}f=f+1|0;if(g<<24>>24==93){g=93;break}}c[(e&p)>>2]=(g|0)==93?27:150;break}case 44:{c[(e&p)>>2]=26;f=1;break}case 38:{c[(e&p)>>2]=85;f=1;break}case 126:{c[(e&p)>>2]=96;f=1;break}case 34:case 39:case 96:{g=a[(b&n)+1>>0]|0;b:do if(g<<24>>24){f=1;while(1){if(g<<24>>24==i<<24>>24){f=f+1|0;if((a[(b+f&n)>>0]|0)!=i<<24>>24)break}f=f+1|0;g=a[(b+f&n)>>0]|0;if(!(g<<24>>24))break b}if(i<<24>>24==39){c[(e&p)>>2]=97;break a}else{c[(e&p)>>2]=27;break a}}else f=1;while(0);c[(e&p)>>2]=150;break}case 88:case 120:{if((a[(b&n)+1>>0]|0)==39){c[(e&p)>>2]=134;f=2;while(1){g=a[(b+f&n)>>0]|0;if(!(a[(g&255&n)+10368>>0]&8))break;else f=f+1|0}if(g<<24>>24==39&(f&1|0)==0)g=1;else{c[(e&p)>>2]=150;while(1){g=a[(b+f&n)>>0]|0;if(g<<24>>24==39|g<<24>>24==0)break;f=f+1|0}g=g<<24>>24!=0}f=(g&1)+f|0}else j=98;break}case 61:{c[(e&p)>>2]=79;f=(a[(b&n)+1>>0]|0)==61?2:1;break}case 60:{f=a[(b&n)+1>>0]|0;if(f<<24>>24==62){c[(e&p)>>2]=78;f=2;break a}else if(f<<24>>24==60){c[(e&p)>>2]=87;f=2;break a}else if(f<<24>>24==61){c[(e&p)>>2]=81;f=2;break a}else{c[(e&p)>>2]=82;f=1;break a}}case 57:case 56:case 55:case 54:case 53:case 52:case 51:case 50:case 49:case 48:{j=51;break}case 62:{f=a[(b&n)+1>>0]|0;if(f<<24>>24==61){c[(e&p)>>2]=83;f=2;break a}else if(f<<24>>24==62){c[(e&p)>>2]=88;f=2;break a}else{c[(e&p)>>2]=80;f=1;break a}}case 63:{c[(e&p)>>2]=135;f=1;while(1)if(((d[(b+f&n)>>0]|0)+-48|0)>>>0<10)f=f+1|0;else break;break}case 33:if((a[(b&n)+1>>0]|0)==61){c[(e&p)>>2]=78;f=2;break a}else{c[(e&p)>>2]=150;f=2;break a}case 58:case 35:case 64:case 36:{c[(e&p)>>2]=135;g=a[(b&n)+1>>0]|0;if(g<<24>>24){f=1;i=0;while(1){if(!(a[(g&255&n)+10368>>0]&70)){if(g<<24>>24==40&(i|0)>0){g=i;j=78;break}if(g<<24>>24!=58){g=i;break}g=f+1|0;if((a[(b+g&n)>>0]|0)==58)f=g;else{g=i;break}}else i=i+1|0;f=f+1|0;g=a[(b+f&n)>>0]|0;if(!(g<<24>>24)){g=i;break}}do if((j|0)==78){h=f;while(1){f=h+1|0;i=a[(b+f&n)>>0]|0;if(!(i<<24>>24))break;if(i<<24>>24!=41?(a[(i&255&n)+10368>>0]&1)==0:0)h=f;else{j=81;break}}if((j|0)==81)if(i<<24>>24==41){f=h+2|0;break}c[(e&p)>>2]=150}while(0);if(g)break a}else f=1;c[(e&p)>>2]=150;break}case 37:{c[(e&p)>>2]=93;f=1;break}case 13:case 12:case 10:case 9:case 32:{f=1;while(1)if(!(a[((d[(b+f&n)>>0]|0)&n)+10368>>0]&1))break;else f=f+1|0;c[(e&p)>>2]=151;break}default:j=98}while(0);c:do if((j|0)==51){c[(e&p)>>2]=132;f=a[(b&n)>>0]|0;if(f<<24>>24==48){g=a[(b&n)+1>>0]|0;if(g<<24>>24==88|g<<24>>24==120)if(!(a[((d[(b&n)+2>>0]|0)&n)+10368>>0]&8))h=0;else{f=3;while(1)if(!(a[((d[(b+f&n)>>0]|0)&n)+10368>>0]&8))break c;else f=f+1|0}else{f=48;h=0}}else h=0;while(1){g=h+1|0;if(((f&255)+-48|0)>>>0>=10){g=h;break}f=a[(b+g&n)>>0]|0;h=g}if(f<<24>>24==46){f=g;do{f=f+1|0;g=b+f|0}while(((d[(g&n)>>0]|0)+-48|0)>>>0<10);c[(e&p)>>2]=133;h=a[(g&n)>>0]|0;i=f}else{h=f;i=g}do if(h<<24>>24==69|h<<24>>24==101){g=a[(b+i&n)+1>>0]|0;if(((g&255)+-48|0)>>>0>=10){if(!(g<<24>>24==45|g<<24>>24==43)){g=h;f=i;break}f=i+2|0;if(((d[(b+f&n)>>0]|0)+-48|0)>>>0>=10){g=h;f=i;break}}else f=i+2|0;while(1){g=b+f|0;if(((d[(g&n)>>0]|0)+-48|0)>>>0<10)f=f+1|0;else break}c[(e&p)>>2]=133;g=a[(g&n)>>0]|0}else{g=h;f=i}while(0);if(a[(g&255&n)+10368>>0]&70)do{c[(e&p)>>2]=150;f=f+1|0}while((a[((d[(b+f&n)>>0]|0)&n)+10368>>0]&70)!=0)}else if((j|0)==98){if(!(a[(g&n)+10368>>0]&70)){c[(e&p)>>2]=150;f=1;break}else f=1;while(1)if(!(a[((d[(b+f&n)>>0]|0)&n)+10368>>0]&70))break;else f=f+1|0;c[(e&p)>>2]=fi(b,f)|0}while(0);return f|0}function Dn(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,i=0,j=0;f=a[(b&n)>>0]|0;if(f<<24>>24==43){b=b+1|0;i=0;j=13}else if(f<<24>>24==45){b=b+1|0;i=1;j=13}else if((f<<24>>24==48?(f=a[(b&n)+1>>0]|0,f<<24>>24==88|f<<24>>24==120):0)?(g=b+2|0,e=a[(g&n)>>0]|0,(a[(e&255&n)+10368>>0]&8)!=0):0){while(1){f=g+1|0;if(e<<24>>24!=48)break;g=f;e=a[(f&n)>>0]|0}if(!(a[(e&255&n)+10368>>0]&8)){e=0;f=0}else{h=e;b=0;f=0;do{e=h<<24>>24;f=(0-(e>>>6&1)&9)+e&15|f<<4;b=b+1|0;h=a[(g+b&n)>>0]|0;e=(a[(h&255&n)+10368>>0]&8)==0}while((b|0)<8&(e^1));e=e^1}if((f|0)<0|e)e=0;else{c[(d&p)>>2]=f;e=1}}else{i=0;j=13}a:do if((j|0)==13){e=0;f=0;h=0;while(1){g=(a[(b+h&n)>>0]|0)+-48|0;if(g>>>0>=10)break;f=sw(e|0,f|0,10,0)|0;e=jw(g|0,((g|0)<0)<<31>>31|0,f|0,G|0)|0;h=h+1|0;if((h|0)>=11){e=0;break a}else f=G}g=dw(e|0,f|0,i|0,0)|0;b=G;if((b|0)>0|(b|0)==0&g>>>0>2147483647)e=0;else{if(i)e=dw(0,0,e|0,f|0)|0;c[(d&p)>>2]=e;e=1}}while(0);return e|0}function En(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0;f=i;i=i+16|0;if((i|0)>=(j|0))fa();g=f;c[(g&p)>>2]=e;sg(a,b,d,g);i=f;return}function Fn(e,f,g,h,k,l,m){e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;m=m|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,H=0,I=0;I=i;i=i+16|0;if((i|0)>=(j|0))fa();F=I;D=I+4|0;c[(D&p)>>2]=0;H=mh(e,536,0)|0;a:do if(H){fw(H|0,0,536)|0;c[(H&p)+476>>2]=k;u=e+20|0;k=c[(u&p)>>2]|0;b:do if((k|0)>0){v=e+16|0;s=0;while(1){t=c[((c[(v&p)>>2]|0)+(s<<4)&p)+4>>2]|0;if(t){c[((c[(t&p)+4>>2]|0)&p)+4>>2]=c[(t&p)>>2];q=bl(t,1,1)|0;if(q)break;k=c[(u&p)>>2]|0}s=s+1|0;if((s|0)>=(k|0))break b}c[(F&p)>>2]=c[((c[(v&p)>>2]|0)+(s<<4)&p)>>2];ug(e,q,40984,F);s=H;break a}while(0);rl(e);c[(H&p)>>2]=e;c[(H&p)+424>>2]=0;do if((g|0)>-1){if((g|0)!=0?(a[(f+g+-1&n)>>0]|0)==0:0){E=21;break}if((c[(e&p)+92>>2]|0)<(g|0)){ug(e,18,41016,F);if(!e){s=H;q=18;break a}if(!(a[(e&n)+65>>0]|0)){s=H;q=c[(e&p)+56>>2]&18;break a}else{Ql(e);s=H;q=7;break a}}else{if((f|0)!=0?(r=jw(g|0,((g|0)<0)<<31>>31|0,1,0)|0,r=mh(e,r,G)|0,(r|0)!=0):0){kw(r|0,f|0,g|0)|0;a[(r+g&n)>>0]=0;Lh(H,r,D)|0;mg(e,r);q=H+480|0;c[(q&p)>>2]=f+((c[(q&p)>>2]|0)-r);break}c[(H&p)+480>>2]=f+g;break}}else E=21;while(0);if((E|0)==21)Lh(H,f,D)|0;v=e+65|0;k=H+12|0;if(!(a[(v&n)>>0]|0)){s=H+12|0;if((c[(k&p)>>2]|0)==101)c[(s&p)>>2]=0}else{c[(k&p)>>2]=7;s=H+12|0}c:do if((a[(H&n)+17>>0]|0)!=0?(w=c[(H&p)>>2]|0,x=w+20|0,(c[(x&p)>>2]|0)>0):0){r=w+16|0;u=0;while(1){k=c[(r&p)>>2]|0;q=c[(k+(u<<4)&p)+4>>2]|0;if(q){if(!(a[(q&n)+8>>0]|0)){k=yg(q,0)|0;if((k|0)==7|(k|0)==3082)break;else if(k)break c;k=c[(r&p)>>2]|0;t=1}else t=0;g=c[(q&p)+4>>2]|0;c[(g&p)+4>>2]=c[(q&p)>>2];g=c[((c[(g&p)+12>>2]|0)&p)+56>>2]|0;if((d[(g&n)+41>>0]<<16|d[(g&n)+40>>0]<<24|d[(g&n)+42>>0]<<8|d[(g&n)+43>>0]|0)!=(c[(c[(k+(u<<4)&p)+12>>2]&p)>>2]|0)){vm(w,u);c[(s&p)>>2]=17}if(t)un(q)|0}u=u+1|0;if((u|0)>=(c[(x&p)>>2]|0))break c}a[(w&n)+65>>0]=1}while(0);if(a[(v&n)>>0]|0)c[(s&p)>>2]=7;if(m)c[(m&p)>>2]=c[(H&p)+480>>2];q=c[(s&p)>>2]|0;t=(q|0)==0;do if(t?(z=H+8|0,y=c[(z&p)>>2]|0,(y|0)!=0):0){s=a[(H&n)+450>>0]|0;if(!(s<<24>>24))break;else if(s<<24>>24==2){iq(y,4);r=8;k=12}else{iq(y,8);r=0;k=8}s=r;do{jq(c[(z&p)>>2]|0,s-r|0,0,c[(s<<2&p)+41040>>2]|0,0);s=s+1|0}while((s|0)<(k|0))}while(0);r=H+8|0;if((a[(e&n)+145>>0]|0)==0?(C=c[(r&p)>>2]|0,A=(c[(H&p)+480>>2]|0)-f|0,(C|0)!=0):0){if((f|0)!=0?(z=c[(C&p)>>2]|0,B=jw(A|0,((A|0)<0)<<31>>31|0,1,0)|0,B=mh(z,B,G)|0,(B|0)!=0):0){kw(B|0,f|0,A|0)|0;a[(B+A&n)>>0]=0;s=B}else s=0;c[(C&p)+168>>2]=s;C=C+88|0;b[(C&o)>>1]=b[(C&o)>>1]&-257|(h&65535)<<8&256}s=c[(r&p)>>2]|0;do if(!s)E=60;else{if(t?(a[(v&n)>>0]|0)==0:0){E=60;break}Ng(s)|0}while(0);if((E|0)==60)c[(l&p)>>2]=s;r=c[(D&p)>>2]|0;do if(!r){c[(e&p)+52>>2]=q;r=c[(e&p)+236>>2]|0;if(r){s=r+8|0;if(!(b[(s&o)>>1]&9312)){b[(s&o)>>1]=1;break}else{vg(r);break}}}else{c[(F&p)>>2]=r;ug(e,q,10344,F);mg(e,r)}while(0);r=H+528|0;s=c[(r&p)>>2]|0;if(!s)s=H;else{do{c[(r&p)>>2]=c[(s&p)+4>>2];mg(e,s);s=c[(r&p)>>2]|0}while((s|0)!=0);s=H}}else{s=0;q=7}while(0);Ch(s);mg(e,H);F=Og(e,q)|0;i=I;return F|0}function Gn(b){b=b|0;var d=0,e=0;e=c[(b&p)>>2]|0;if((a[(e&n)+145>>0]|0)==0?(d=Zh(e,b+4|0)|0,(d|0)!=0):0){c[(b&p)+12>>2]=d;e=b+64|0;c[(e&p)>>2]=(c[(e&p)>>2]|0)+1}else d=0;return d|0}function Hn(a){a=a|0;var b=0,d=0,f=0,g=0,h=0;f=c[(a&p)+24>>2]|0;h=f+84|0;b=c[(h&p)>>2]|0;if(!b){b=1020;d=0}else{b=b*40|0;d=0}g=a+4|0;a=ro(c[(f&p)>>2]|0,c[(g&p)>>2]|0,b,d)|0;d=(a|0)!=0;if(d){b=c[(f&p)>>2]|0;do if(!b)b=lc[c[8792>>2]&127](a)|0;else{if((c[(b&p)+276>>2]|0)>>>0<=a>>>0?(c[(b&p)+280>>2]|0)>>>0>a>>>0:0){b=e[(b&o)+248>>1]|0;break}b=lc[c[8792>>2]&127](a)|0}while(0);c[(h&p)>>2]=(b>>>0)/20|0;c[(g&p)>>2]=a}return (d?0:7)|0}function In(a,d,e){a=a|0;d=d|0;e=e|0;a:do if(e)switch(d|0){case -6:{if(c[(a&p)+520>>2]|0)break a;a=(c[(e&p)>>2]|0)+-1|0;c[(e&p)>>2]=a;if(a)break a;Wc(e);break a}case -8:{if(!(c[(a&p)+520>>2]|0)){Mh(e);break a}if(c[(e&p)+24>>2]|0)mg(a,c[(e&p)+20>>2]|0);mg(a,e);break a}case -10:{if(c[(a&p)+520>>2]|0)break a;An(e);break a}case -15:case -1:case -13:case -12:{mg(a,e);break a}case -11:{if(c[(a&p)+520>>2]|0)break a;Wc(e);break a}case -5:{if(!(b[(e&o)+2>>1]&16))break a;mg(a,e);break a}default:break a}while(0);return}function Jn(e,f){e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0;g=c[(f&p)>>2]|0;s=c[(e&p)+24>>2]|0;t=s+112|0;k=c[(t&p)>>2]|0;q=e+88|0;b[(q&o)>>1]=b[(q&o)>>1]&-193|64;h=c[(e&p)+32>>2]|0;a:do if((h|0)>0){j=c[(e&p)+4>>2]|0;while(1){h=h+-1|0;i=d[(j&n)>>0]|0;switch(i|0){case 5:case 7:case 9:{c[(j&p)+16>>2]=76;a[(j&n)+1>>0]=-19;break}case 6:case 8:{c[(j&p)+16>>2]=77;a[(j&n)+1>>0]=-19;break}case 14:{u=c[(j+-16&p)>>2]|0;g=(u|0)>(g|0)?u:g;break}case 2:case 3:{r=7;break}case 4:{if(!(c[(j&p)+8>>2]|0))r=7;else{b[(q&o)>>1]=b[(q&o)>>1]&-65;r=7}break}case 12:case 13:case 11:{b[(q&o)>>1]=b[(q&o)>>1]&-193|128;break}case 15:{u=c[(j&p)+8>>2]|0;g=(u|0)>(g|0)?u:g;break}case 10:case 1:{u=d[(j&n)+3>>0]|0;g=(u|0)>(g|0)?u:g;break}default:{}}if((r|0)==7){r=0;b[(q&o)>>1]=b[(q&o)>>1]|128}i=a[(i&n)+34168>>0]|0;a[(j&n)+2>>0]=i;if((i&1)!=0?(l=j+8|0,m=c[(l&p)>>2]|0,(m|0)<0):0)c[(l&p)>>2]=c[(k+(~m<<2)&p)>>2];if((h|0)<=0)break a;else j=j+20|0}}while(0);mg(c[(e&p)>>2]|0,c[(t&p)>>2]|0);c[(t&p)>>2]=0;c[(s&p)+108>>2]=0;c[(f&p)>>2]=g;return}function Kn(b){b=b|0;var d=0,e=0,f=0,g=0,h=0;h=i;i=i+16|0;if((i|0)>=(j|0))fa();g=h;e=b+73|0;if((a[(e&n)>>0]|0)!=4){a[(e&n)>>0]=0;f=b+56|0;d=b+48|0;d=Gp(b,c[(f&p)>>2]|0,c[(d&p)>>2]|0,c[(d&p)+4>>2]|0,0,g)|0;if(!d){Wc(c[(f&p)>>2]|0);c[(f&p)>>2]=0;f=b+68|0;d=c[(f&p)>>2]|c[(g&p)>>2];c[(f&p)>>2]=d;if((d|0)!=0?(a[(e&n)>>0]|0)==1:0){a[(e&n)>>0]=2;d=0}else d=0}}else d=c[(b&p)+68>>2]|0;i=h;return d|0}function Ln(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;a=c[(a&p)+8>>2]|0;a:do if(!a)a=0;else{e=(b|0)==0;while(1){if((a|0)!=(d|0)){if(e)break;if((c[(a&p)+60>>2]|0)==(b|0))break}a=c[(a&p)+8>>2]|0;if(!a){a=0;break a}}a=Fl(a,b,d)|0}while(0);return a|0}function Mn(b){b=b|0;var e=0,f=0,g=0,h=0;f=c[(b&p)>>2]|0;g=f+1|0;c[(b&p)>>2]=g;h=a[(f&n)>>0]|0;e=h&255;if((h&255)<=191)return e|0;e=d[(e+-192&n)+15360>>0]|0;if((a[(g&n)>>0]&-64)<<24>>24==-128)while(1){f=f+2|0;c[(b&p)>>2]=f;e=(d[(g&n)>>0]|0)&63|e<<6;if((a[(f&n)>>0]&-64)<<24>>24==-128){h=g;g=f;f=h}else break}return (e>>>0<128|(e&-2048|0)==55296|(e&-2|0)==65534?65533:e)|0}function Nn(b,c){b=b|0;c=c|0;var d=0,e=0,f=0,g=0;if((c|0)>-1)g=b+c|0;else g=-1;c=a[(b&n)>>0]|0;if(c<<24>>24!=0&g>>>0>b>>>0){d=c;c=0;do{f=b+1|0;if((d&255)>191){e=b;b=f;while(1){d=a[(b&n)>>0]|0;if((d&-64)<<24>>24==-128){d=b;b=e+2|0;e=d}else break}}else{d=a[(f&n)>>0]|0;b=f}c=c+1|0}while(d<<24>>24!=0&b>>>0>>0)}else c=0;return c|0}function On(d,f,g,h){d=d|0;f=f|0;g=g|0;h=h|0;var k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0;A=i;i=i+48|0;if((i|0)>=(j|0))fa();w=A+32|0;x=A+16|0;y=A;k=c[(d&p)>>2]|0;if((k|0)<0){c[(d&p)>>2]=0;c[(d&p)+4>>2]=-1;b[(d&o)+12>>1]=0;a[(d&n)+14>>0]=0;k=0}s=g;r=c[(s&p)+4>>2]|0;t=y;c[(t&p)>>2]=c[(s&p)>>2];c[(t&p)+4>>2]=r;t=d+8|0;c[(t&p)>>2]=h;r=f&255;s=(f|0)==254;do{q=b[(d+(k<<4)&o)+12>>1]|0;h=q&65535;g=37184+(h<<1)|0;a:do if((q&65535)>429)z=6;else{q=r;while(1){m=b[(g&o)>>1]|0;l=m<<16>>16;if(m<<16>>16==-86){z=6;break a}m=q&255;k=l+m|0;if(k>>>0<=1496?(a[(k&n)+39336>>0]|0)==q<<24>>24:0){z=16;break}if(!(q<<24>>24))break;if((q&255)>=70){u=l;z=12;break}q=a[(m&n)+40840>>0]|0;if(!(q<<24>>24)){u=l;z=12;break}}if((z|0)==16){z=0;k=e[(k<<1&o)+22184>>1]|0;break}if(((z|0)==12?(z=0,v=u+70|0,(v|0)>-1):0)?(a[(v&n)+39336>>0]|0)==70:0){k=e[(v<<1&o)+22184>>1]|0;break}k=e[(h<<1&o)+38048>>1]|0}while(0);if((z|0)==6){z=0;k=e[(h<<1&o)+38048>>1]|0}if(k>>>0<642){z=18;break}if(k>>>0>=969){z=20;break}mq(d,k+-642|0);if(s)break;k=c[(d&p)>>2]|0}while((k|0)>-1);if((z|0)==18){kq(d,k,f,y);u=d+4|0;c[(u&p)>>2]=(c[(u&p)>>2]|0)+-1}else if((z|0)==20){c[(x&p)>>2]=c[(y&p)>>2];c[(x&p)+4>>2]=c[(y&p)+4>>2];c[(x&p)+8>>2]=c[(y&p)+8>>2];u=c[(t&p)>>2]|0;c[(w&p)>>2]=x;th(u,20432,w);c[(t&p)>>2]=u;lq(d,r,y)}i=A;return}function Pn(b){b=b|0;var d=0;d=c[(b&p)>>2]|0;if((d|0)>=0){lq(b,a[(b+(d<<4)&n)+14>>0]|0,b+(d<<4)+16|0);c[(b&p)>>2]=(c[(b&p)>>2]|0)+-1}return}function Qn(a,b){a=a|0;b=b|0;var d=0;if(b){if((c[(b&p)>>2]|0)>0){d=0;do{Nk(a,c[(b+(d<<4)&p)+12>>2]|0);Mk(a,c[(b+(d<<4)&p)+16>>2]|0,1);mg(a,c[(b+(d<<4)&p)+8>>2]|0);d=d+1|0}while((d|0)<(c[(b&p)>>2]|0))}mg(a,b)}return}function Rn(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,i=0;h=a+328|0;d=c[(h&p)>>2]|0;if(d){i=a+304|0;if((c[(i&p)>>2]|0)>0){f=0;do{e=c[(d+(f<<2)&p)>>2]|0;d=c[(e&p)+8>>2]|0;if((d|0)!=0?(g=c[((c[(d&p)>>2]|0)+b&p)>>2]|0,(g|0)!=0):0)lc[g&127](d)|0;c[(e&p)+20>>2]=0;An(e);f=f+1|0;d=c[(h&p)>>2]|0}while((f|0)<(c[(i&p)>>2]|0))}mg(a,d);c[(i&p)>>2]=0;c[(h&p)>>2]=0}return}function Sn(a,d,f){a=a|0;d=d|0;f=f|0;var g=0,h=0;do if((d|0)==-2)if(!(c[(a&p)+12>>2]|0))d=(c[(a&p)+16>>2]|0)==0?0:6;else d=6;else{h=b[(a&o)>>1]|0;g=h<<16>>16;if(!((g|0)!=(d|0)&h<<16>>16>-1)){h=(g|0)==(d|0)?4:1;g=f&255;d=e[(a&o)+2>>1]|0;if((g|0)==(d&3|0)){d=h|2;break}else return ((d&g)>>>1&1)+h|0}else d=0}while(0);return d|0} function uc(a){a=a|0;var b=0;b=i;i=i+a|0;i=i+15&-16;if((i|0)>=(j|0))fa();return b|0}function vc(){return i|0}function wc(a){a=a|0;i=a}function xc(a,b){a=a|0;b=b|0;if(!r){r=a;s=b}}function yc(b){b=b|0;a[(k&n)>>0]=a[(b&n)>>0];a[(k&n)+1>>0]=a[(b&n)+1>>0];a[(k&n)+2>>0]=a[(b&n)+2>>0];a[(k&n)+3>>0]=a[(b&n)+3>>0]}function zc(b){b=b|0;a[(k&n)>>0]=a[(b&n)>>0];a[(k&n)+1>>0]=a[(b&n)+1>>0];a[(k&n)+2>>0]=a[(b&n)+2>>0];a[(k&n)+3>>0]=a[(b&n)+3>>0];a[(k&n)+4>>0]=a[(b&n)+4>>0];a[(k&n)+5>>0]=a[(b&n)+5>>0];a[(k&n)+6>>0]=a[(b&n)+6>>0];a[(k&n)+7>>0]=a[(b&n)+7>>0]}function Ac(a){a=a|0;G=a}function Bc(){return G|0}function Cc(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0;h=i;i=i+16|0;if((i|0)>=(j|0))fa();e=h+4|0;f=h;g=0;a:while(1){c[(e&p)>>2]=0;c[(f&p)>>2]=0;a[280]=0;if(Rf(14640,e)|0){d=4;break}d=c[(e&p)>>2]|0;b=0;do{if(Qe(d,c[(b<<2&p)+8>>2]|0,17,0,f)|0){d=7;break a}b=b+1|0;d=c[(e&p)>>2]|0}while((b|0)!=5);tf(d)|0;if(_v(280,8504)|0){d=9;break}g=g+1|0;if((g|0)>=3){d=11;break}}if((d|0)==4)ib(8472,8488,47,8496);else if((d|0)==7)ib(8472,8488,50,8496);else if((d|0)==9)ib(8600,8488,53,8496);else if((d|0)==11){i=h;return 0}return 0}function Dc(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;if((d|0)>0)while(1){d=d+-1|0;hw(280,c[(f&p)>>2]|0)|0;b=280+(gw(280)|0)|0;a[(b&n)>>0]=61;a[(b&n)+1>>0]=0;b=c[(e&p)>>2]|0;hw(280,((b|0)==0?20304:b)|0)|0;if((d|0)<=0)break;else{e=e+4|0;f=f+4|0}}return 0}function Ec(b){b=b|0;var e=0,f=0,g=0;g=(Fc(b,8640,7)|0)==0;g=g?b+7|0:b;if(!g)b=0;else{b=g;while(1)if(!(a[(b&n)>>0]|0))break;else b=b+1|0;b=b-g&1073741823}f=0;while(1){e=c[(f<<2&p)+8648>>2]|0;if((Fc(g,e,b)|0)==0?(a[((d[(e+b&n)>>0]|0)&n)+10368>>0]&70)==0:0){b=1;break}f=f+1|0;if((f|0)>=4){b=0;break}}return b|0}function Fc(b,c,e){b=b|0;c=c|0;e=e|0;var f=0;a:do if(b)if(c)if((e|0)>0){f=b;while(1){b=a[(f&n)>>0]|0;if(!(b<<24>>24))break;if((a[(b&255&n)+9328>>0]|0)!=(a[((d[(c&n)>>0]|0)&n)+9328>>0]|0))break;e=e+-1|0;if((e|0)<=0){e=0;break a}else{f=f+1|0;c=c+1|0}}if((e|0)>=1)e=(d[(b&255&n)+9328>>0]|0)-(d[((d[(c&n)>>0]|0)&n)+9328>>0]|0)|0;else e=0}else e=0;else e=1;else e=((c|0)!=0)<<31>>31;while(0);return e|0}function Gc(a){a=a|0;if(a>>>0<4)a=c[(a<<2&p)+8648>>2]|0;else a=0;return a|0}function Hc(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0;h=i;i=i+16|0;if((i|0)>=(j|0))fa();f=h;if(a>>>0<=9){g=c[(a<<2&p)+8664>>2]|0;f=b;c[(f&p)>>2]=g;c[(f&p)+4>>2]=0;f=8704+(a<<2)|0;a=d;c[(a&p)>>2]=c[(f&p)>>2];c[(a&p)+4>>2]=0;if(!e)f=0;else{c[(f&p)>>2]=g;f=0}}else{c[(f&p)>>2]=15033;c[(f&p)+4>>2]=10788;bd(21,13648,f);f=21}i=h;return f|0}function Ic(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0;h=i;i=i+16|0;if((i|0)>=(j|0))fa();f=h+8|0;g=h;a=Hc(a,f,g,e)|0;if(!a){c[(b&p)>>2]=c[(f&p)>>2];c[(d&p)>>2]=c[(g&p)>>2]}i=h;return a|0}function Jc(a,b,d,f,g){a=a|0;b=b|0;d=d|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,n=0,q=0,r=0;r=i;i=i+16|0;if((i|0)>=(j|0))fa();n=r+4|0;l=r;switch(b|0){case 2:{c[(n&p)>>2]=0;q=a+20|0;g=c[(q&p)>>2]|0;h=(g|0)>0;if(h){l=c[(a&p)+16>>2]|0;k=0;do{b=c[(l+(k<<4)&p)+4>>2]|0;if(b)c[((c[(b&p)+4>>2]|0)&p)+4>>2]=c[(b&p)>>2];k=k+1|0}while((k|0)!=(g|0));k=a+520|0;c[(k&p)>>2]=n;if(h){m=a+16|0;h=0;do{b=c[((c[(m&p)>>2]|0)+(h<<4)&p)+12>>2]|0;if(b){l=lc[c[8796>>2]&127](16)|0;l=ca((c[(b&p)+44>>2]|0)+(c[(b&p)+12>>2]|0)+(c[(b&p)+28>>2]|0)+(c[(b&p)+60>>2]|0)|0,l)|0;c[(n&p)>>2]=l+(c[(n&p)>>2]|0);l=lc[c[8792>>2]&127](c[(b&p)+20>>2]|0)|0;c[(n&p)>>2]=(c[(n&p)>>2]|0)+l;l=lc[c[8792>>2]&127](c[(b&p)+52>>2]|0)|0;c[(n&p)>>2]=(c[(n&p)>>2]|0)+l;l=lc[c[8792>>2]&127](c[(b&p)+36>>2]|0)|0;c[(n&p)>>2]=(c[(n&p)>>2]|0)+l;l=lc[c[8792>>2]&127](c[(b&p)+68>>2]|0)|0;c[(n&p)>>2]=(c[(n&p)>>2]|0)+l;l=c[(b&p)+48>>2]|0;if(l)do{jg(a,c[(l&p)+8>>2]|0);l=c[(l&p)>>2]|0}while((l|0)!=0);l=c[(b&p)+16>>2]|0;if(l)do{kg(a,c[(l&p)+8>>2]|0);l=c[(l&p)>>2]|0}while((l|0)!=0);g=c[(q&p)>>2]|0}h=h+1|0}while((h|0)<(g|0));h=c[(n&p)>>2]|0}else h=0}else{k=a+520|0;c[(k&p)>>2]=n;h=0}c[(k&p)>>2]=0;c[(f&p)>>2]=0;c[(d&p)>>2]=h;h=0;break}case 9:case 8:case 7:{q=a+20|0;l=c[(q&p)>>2]|0;if((l|0)>0){n=c[(a&p)+16>>2]|0;m=b+-7|0;k=(g|0)==0;h=0;b=l;g=0;while(1){l=c[(n+(g<<4)&p)+4>>2]|0;if(l){l=(c[(c[(l&p)+4>>2]&p)>>2]|0)+(m<<2)+184|0;h=(c[(l&p)>>2]|0)+h|0;if(k)l=b;else{c[(l&p)>>2]=0;l=c[(q&p)>>2]|0}}else l=b;g=g+1|0;if((g|0)>=(l|0))break;else b=l}}else h=0;c[(f&p)>>2]=0;c[(d&p)>>2]=h;h=0;break}case 0:{k=a+252|0;c[(d&p)>>2]=c[(k&p)>>2];h=a+256|0;c[(f&p)>>2]=c[(h&p)>>2];if(!g)h=0;else{c[(h&p)>>2]=c[(k&p)>>2];h=0}break}case 6:case 5:case 4:{c[(d&p)>>2]=0;h=a+(b+-4<<2)+260|0;c[(f&p)>>2]=c[(h&p)>>2];if(!g)h=0;else{c[(h&p)>>2]=0;h=0}break}case 1:{m=a+20|0;k=c[(m&p)>>2]|0;g=(k|0)>0;if(g){h=c[(a&p)+16>>2]|0;l=0;do{b=c[(h+(l<<4)&p)+4>>2]|0;if(b)c[((c[(b&p)+4>>2]|0)&p)+4>>2]=c[(b&p)>>2];l=l+1|0}while((l|0)!=(k|0));if(g){b=a+16|0;l=0;h=0;while(1){g=c[((c[(b&p)>>2]|0)+(l<<4)&p)+4>>2]|0;if(!g)g=k;else{q=c[(c[(g&p)+4>>2]&p)>>2]|0;a=q+152|0;n=(c[(a&p)>>2]|0)+60+(e[(q&o)+140>>1]|0)|0;n=ca(lc[c[8872>>2]&127](c[((c[(q&p)+204>>2]|0)&p)+40>>2]|0)|0,n)|0;q=lc[c[8792>>2]&127](q)|0;g=c[(m&p)>>2]|0;h=n+h+q+(c[(a&p)>>2]|0)|0}l=l+1|0;if((l|0)>=(g|0))break;else k=g}}else h=0}else h=0;c[(d&p)>>2]=h;c[(f&p)>>2]=0;h=0;break}case 3:{c[(l&p)>>2]=0;g=a+520|0;c[(g&p)>>2]=l;k=c[(a&p)+4>>2]|0;if(!k)h=0;else{do{lg(a,k);mg(a,k);k=c[(k&p)+52>>2]|0}while((k|0)!=0);h=c[(l&p)>>2]|0}c[(g&p)>>2]=0;c[(f&p)>>2]=0;c[(d&p)>>2]=h;h=0;break}case 10:{c[(f&p)>>2]=0;q=a+512|0;n=c[(q&p)+4>>2]|0;if((n|0)>0|(n|0)==0&(c[(q&p)>>2]|0)>>>0>0)h=1;else{h=a+504|0;a=c[(h&p)+4>>2]|0;h=(a|0)>0|(a|0)==0&(c[(h&p)>>2]|0)>>>0>0}c[(d&p)>>2]=h&1;h=0;break}default:h=1}i=r;return h|0}function Kc(a){a=a|0;var b=0;a:do if(!(Lc()|0)){b=c[2254]|0;if(!((b|0)==0|(a|0)==0))while(1){if(!(_v(a,c[(b&p)+16>>2]|0)|0))break a;b=c[(b&p)+12>>2]|0;if(!b){b=0;break}}}else b=0;while(0);return b|0}function Lc(){var a=0,b=0,d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0;m=i;i=i+16|0;if((i|0)>=(j|0))fa();k=m;do if(!(c[2243]|0)){c[2245]=1;if(!(c[2246]|0)){if(!(c[2195]|0)){c[(k&p)>>2]=16496;mf(4,k)|0}b=9024|0;d=b+40|0;do{c[(b&p)>>2]=0;b=b+4|0}while((b|0)<(d|0));if(c[2187]|0)c[2256]=8;h=c[2234]|0;d=c[2235]|0;b=c[2236]|0;if((h|0)!=0&(d|0)>99&(b|0)>0){g=d&-8;c[2235]=g;c[2263]=h;c[2264]=b;f=b+-1|0;if((f|0)>0){b=h+(ca(d>>>3,(b<<3)+-8|0)|0)|0;e=0;d=h;do{a=d;d=d+g|0;c[(a&p)>>2]=d;e=e+1|0}while((e|0)!=(f|0))}else b=h;c[(b&p)>>2]=0;c[2262]=b+4}else{c[2262]=0;c[2234]=0;c[2235]=0;c[2236]=0}if((c[2237]|0)==0|(c[2238]|0)<512|(c[2239]|0)<1){c[2237]=0;c[2238]=0;c[2239]=0}a=lc[c[8800>>2]&127](c[2202]|0)|0;if(a){b=9024|0;d=b+40|0;do{c[(b&p)>>2]=0;b=b+4|0}while((b|0)<(d|0));break}}c[2246]=1;if(!(c[2249]|0))c[2249]=8;a=(c[2248]|0)+1|0;c[2248]=a;if(!(c[2244]|c[2243])){c[2244]=1;b=10840|0;d=b+92|0;do{c[(b&p)>>2]=0;b=b+4|0}while((b|0)<(d|0));b=0;do{ng(10840,16608+(b*36|0)|0);b=b+1|0}while((b|0)!=59);b=0;do{ng(10840,19480+(b*36|0)|0);b=b+1|0}while((b|0)!=8);ng(10840,19256);ng(10840,19292|0);ng(10840,19328|0);if(!(c[2247]|0)){a=c[2214]|0;if(!a){c[(k&p)>>2]=16440;mf(18,k)|0;a=c[2214]|0}a=lc[a&127](c[2213]|0)|0;if(!a)l=28}else l=28;if((l|0)==28){c[2247]=1;a=Tc(10)|0;if(!a)a=7;else{Wc(a);Mc(9584,1)|0;Mc(9672|0,0)|0;Mc(9760|0,0)|0;Mc(9848|0,0)|0;a=c[2237]|0;b=c[2238]|0;d=c[2239]|0;if(c[3153]|0){k=b&-8;c[3154]=k;c[3161]=d;c[3155]=d;if((d|0)<=90){c[3156]=((d|0)/10|0)+1;c[3157]=a;c[3160]=0;c[3162]=0;if(d)l=33}else{c[3156]=10;c[3157]=a;c[3160]=0;c[3162]=0;l=33}if((l|0)==33){f=b>>>3;g=d<<3;h=ca(f<<3,d+-1|0)|0;b=a;e=0;while(1){d=d+-1|0;c[(b&p)>>2]=e;if(!d)break;else{e=b;b=b+k|0}}b=a+(ca(g,f)|0)|0;c[3160]=a+h;a=b}c[3158]=a}c[2243]=1;a=0}}c[2244]=0;b=c[2248]|0}else{b=a;a=0}c[2248]=b+-1;if((b|0)<2)c[2249]=0}else a=0;while(0);i=m;return a|0}function Mc(a,b){a=a|0;b=b|0;var d=0;d=Lc()|0;do if(!d){og(a);d=c[2254]|0;if((b|0)!=0|(d|0)==0){c[(a&p)+12>>2]=d;c[2254]=a;d=0;break}else{c[(a&p)+12>>2]=c[(d&p)+12>>2];c[((c[2254]|0)&p)+12>>2]=a;d=0;break}}while(0);return d|0}function Nc(a){a=a|0;og(a);return 0}function Oc(a){a=a|0;return 0}function Pc(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;do if(!(Lc()|0)){e=9032|0;d=c[(e&p)>>2]|0;e=c[(e&p)+4>>2]|0;if((b|0)>=0)if((b|0)>0|(b|0)==0&a>>>0>0){c[2260]=9;c[2261]=0;f=9032|0;c[(f&p)>>2]=a;c[(f&p)+4>>2]=b;c[2265]=(0>(b|0)|0==(b|0)&(c[2166]|0)>>>0>=a>>>0)&1;break}else{c[2265]=0;c[2258]=0;c[2259]=0;c[2260]=0;c[2261]=0;break}}else{e=-1;d=-1}while(0);G=e;return d|0}function Qc(){var a=0;a=c[2166]|0;G=((a|0)<0)<<31>>31;return a|0}function Rc(a){a=a|0;var b=0;b=(a|0)<0;Pc(b?0:a,b?0:((a|0)<0)<<31>>31)|0;return}function Sc(a){a=a|0;var b=0;b=c[2176]|0;if(a)c[2176]=c[2166];G=((b|0)<0)<<31>>31;return b|0}function Tc(a){a=a|0;if((Lc()|0)!=0|(a|0)<1)a=0;else a=qg(a,((a|0)<0)<<31>>31)|0;return a|0}function Uc(a,b){a=a|0;b=b|0;if(!(Lc()|0))a=qg(a,b)|0;else a=0;return a|0}function Vc(a){a=a|0;a=lc[c[8792>>2]&127](a)|0;G=((a|0)<0)<<31>>31;return a|0}function Wc(a){a=a|0;var b=0;do if(a)if(!(c[2186]|0)){cc[c[8784>>2]&31](a);break}else{b=lc[c[8792>>2]&127](a)|0;c[2166]=(c[2166]|0)-b;c[2175]=(c[2175]|0)+-1;cc[c[8784>>2]&31](a);break}while(0);return}function Xc(a,b){a=a|0;b=b|0;var c=0;if(!(Lc()|0)){c=(b|0)<0;b=rg(a,c?0:b,c?0:((b|0)<0)<<31>>31)|0}else b=0;return b|0}function Yc(a,b,c){a=a|0;b=b|0;c=c|0;if(!(Lc()|0))b=rg(a,b,c)|0;else b=0;return b|0}function Zc(b,d){b=b|0;d=d|0;var e=0,f=0,g=0;g=i;i=i+112|0;if((i|0)>=(j|0))fa();f=g+28|0;e=g;if(!(Lc()|0)){c[(e&p)+4>>2]=f;c[(e&p)+8>>2]=f;c[(e&p)>>2]=0;c[(e&p)+12>>2]=0;c[(e&p)+16>>2]=70;c[(e&p)+20>>2]=1e9;a[(e&n)+25>>0]=0;a[(e&n)+24>>0]=2;sg(e,0,b,d);e=tg(e)|0}else e=0;i=g;return e|0}function _c(a,b){a=a|0;b=b|0;var d=0,e=0;e=i;i=i+16|0;if((i|0)>=(j|0))fa();d=e;if(!(Lc()|0)){c[(d&p)>>2]=b;d=Zc(a,d)|0}else d=0;i=e;return d|0}function $c(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0;h=i;i=i+32|0;if((i|0)>=(j|0))fa();g=h;if((b|0)>=1){c[(g&p)+4>>2]=d;c[(g&p)+8>>2]=d;c[(g&p)>>2]=0;c[(g&p)+12>>2]=0;c[(g&p)+16>>2]=b;c[(g&p)+20>>2]=0;a[(g&n)+25>>0]=0;a[(g&n)+24>>0]=0;sg(g,0,e,f);d=tg(g)|0}i=h;return d|0}function ad(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0;f=i;i=i+16|0;if((i|0)>=(j|0))fa();g=f;c[(g&p)>>2]=e;a=$c(a,b,d,g)|0;i=f;return a|0}function bd(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0;k=i;i=i+256|0;if((i|0)>=(j|0))fa();f=k+16|0;h=k+44|0;g=k;if(c[2250]|0){c[(g&p)>>2]=e;c[(f&p)+4>>2]=h;c[(f&p)+8>>2]=h;c[(f&p)>>2]=0;c[(f&p)+12>>2]=0;c[(f&p)+16>>2]=210;c[(f&p)+20>>2]=0;a[(f&n)+25>>0]=0;a[(f&n)+24>>0]=0;sg(f,0,d,g);e=c[2250]|0;g=c[2251]|0;f=tg(f)|0;mc[e&63](g,b,f)}i=k;return}function cd(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0;h=i;i=i+256|0;if((i|0)>=(j|0))fa();g=h;do if(!(Lc()|0)){if((b|0)<1|(e|0)==0){a[9064]=0;break}if(!(a[9064]|0)){a[9066]=0;a[9065]=0;f=(Lc()|0)==0;f=f?c[2254]|0:0;ac[c[(f&p)+56>>2]&63](f,256,g)|0;f=0;do{a[(f&n)+9067>>0]=f;f=f+1|0}while((f|0)!=256);f=0;do{k=9067+f|0;m=(d[(g+f&n)>>0]|0)+(d[(k&n)>>0]|0)+(d[9066]|0)|0;a[9066]=m;m=9067+(m&255)|0;l=a[(m&n)>>0]|0;a[(m&n)>>0]=a[(k&n)>>0]|0;a[(k&n)>>0]=l;f=f+1|0}while((f|0)!=256);a[9064]=1}while(1){k=(a[9065]|0)+1<<24>>24;a[9065]=k;k=9067+(k&255)|0;g=a[(k&n)>>0]|0;f=g&255;l=(d[9066]|0)+f|0;a[9066]=l;a[(k&n)>>0]=a[(l&255&n)+9067>>0]|0;a[((d[9066]|0)&n)+9067>>0]=g;a[(e&n)>>0]=a[((d[((d[9065]|0)&n)+9067>>0]|0)+f&255&n)+9067>>0]|0;b=b+-1|0;if(!b)break;else e=e+1|0}}while(0);i=h;return}function dd(b,c){b=b|0;c=c|0;var e=0;if(b)if(!c)c=1;else{e=a[(b&n)>>0]|0;a:do if(!(e<<24>>24))e=0;else while(1){if((a[(e&255&n)+9328>>0]|0)!=(a[((d[(c&n)>>0]|0)&n)+9328>>0]|0))break a;b=b+1|0;c=c+1|0;e=a[(b&n)>>0]|0;if(!(e<<24>>24)){e=0;break}}while(0);c=(d[(e&255&n)+9328>>0]|0)-(d[((d[(c&n)>>0]|0)&n)+9328>>0]|0)|0}else c=((c|0)!=0)<<31>>31;return c|0}function ed(a){a=a|0;c[2241]=a;return 0}function fd(d,e,f,g){d=d|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,q=0,r=0;r=i;i=i+16|0;if((i|0)>=(j|0))fa();q=r;a:do if((f|0)==(d|0)){ug(f,1,10016,q);h=0}else{h=qg(48,0)|0;if(!h){c[(d&p)+52>>2]=7;h=c[(d&p)+236>>2]|0;if(!h){h=0;break}e=h+8|0;if(!(b[(e&o)>>1]&9312)){b[(e&o)>>1]=1;h=0;break}else{vg(h);h=0;break}}l=h+0|0;k=l+48|0;do{a[(l&n)>>0]=0;l=l+1|0}while((l|0)<(k|0));m=h+24|0;c[(m&p)>>2]=wg(d,f,g)|0;k=wg(d,d,e)|0;l=h+4|0;c[(l&p)>>2]=k;c[(h&p)>>2]=d;c[(h&p)+20>>2]=f;c[(h&p)+16>>2]=1;c[(h&p)+40>>2]=0;e=c[(m&p)>>2]|0;do if(!((e|0)==0|(k|0)==0)?(xg(k,c[((c[(e&p)+4>>2]|0)&p)+32>>2]|0,-1,0)|0)!=7:0)if(!(a[((c[(l&p)>>2]|0)&n)+8>>0]|0)){e=(c[(m&p)>>2]|0)+16|0;c[(e&p)>>2]=(c[(e&p)>>2]|0)+1;break a}else{ug(d,1,47416,q);break}while(0);Wc(h);h=0}while(0);i=r;return h|0}function gd(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,o=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0;F=i;i=i+32|0;if((i|0)>=(j|0))fa();B=F;r=F+16|0;u=F+12|0;y=F+8|0;D=b+24|0;g=c[(D&p)>>2]|0;h=c[(g&p)+4>>2]|0;c[(h&p)+4>>2]=c[(g&p)>>2];E=b+28|0;f=c[(E&p)>>2]|0;if(f>>>0<7?(30>>>(f&127)&1)==0:0){x=c[(h&p)>>2]|0;C=b+4|0;f=c[(C&p)>>2]|0;A=c[(c[(f&p)+4>>2]&p)>>2]|0;if((c[(b&p)>>2]|0)!=0?(a[(h&n)+20>>0]|0)==2:0){z=0;g=5}else v=5;do if((v|0)==5){h=b+12|0;if(!(c[(h&p)>>2]|0)){g=yg(f,2)|0;if(g){z=0;break}c[(h&p)>>2]=1;z=c[(C&p)>>2]|0;g=c[(z&p)+4>>2]|0;c[(g&p)+4>>2]=c[(z&p)>>2];g=c[((c[(g&p)+12>>2]|0)&p)+56>>2]|0;c[(b&p)+8>>2]=d[(g&n)+41>>0]<<16|d[(g&n)+40>>0]<<24|d[(g&n)+42>>0]<<8|d[(g&n)+43>>0];g=c[(D&p)>>2]|0}if(!(a[(g&n)+8>>0]|0)){z=1;g=yg(g,0)|0}else{z=0;g=0}}while(0);l=c[((c[(D&p)>>2]|0)&p)+4>>2]|0;w=c[(l&p)+32>>2]|0;q=c[((c[(C&p)>>2]|0)&p)+4>>2]|0;t=c[(q&p)+32>>2]|0;q=(a[((c[(q&p)>>2]|0)&n)+5>>0]|0)==5;f=(w|0)==(t|0)|(g|0)==0&q^1?g:8;l=c[(l&p)+44>>2]|0;h=(e|0)<0;a:do if(e){g=b+16|0;m=c[(g&p)>>2]|0;o=0;do{if(!(m>>>0<=l>>>0&(f|0)==0))break a;if((m|0)!=((((c[2514]|0)>>>0)/((c[((c[((c[(D&p)>>2]|0)&p)+4>>2]|0)&p)+32>>2]|0)>>>0)|0)+1|0)){f=zg(x,m,r,2)|0;if(!f){k=c[(r&p)>>2]|0;f=Ag(b,m,c[(k&p)+4>>2]|0,0)|0;if(k)Bg(k)}}else f=0;m=(c[(g&p)>>2]|0)+1|0;c[(g&p)>>2]=m;o=o+1|0}while(h|(o|0)<(e|0))}while(0);if(!f){c[(b&p)+36>>2]=l;f=c[(b&p)+16>>2]|0;c[(b&p)+32>>2]=l+1-f;if(f>>>0<=l>>>0){f=b+40|0;if(!(c[(f&p)>>2]|0)){C=(c[(c[((c[(D&p)>>2]|0)&p)+4>>2]&p)>>2]|0)+88|0;c[(b&p)+44>>2]=c[(C&p)>>2];c[(C&p)>>2]=b;c[(f&p)>>2]=1;f=0}else f=0}else v=22}else if((f|0)==101)v=22;do if((v|0)==22){if(!l){g=c[(C&p)>>2]|0;f=c[(g&p)+4>>2]|0;c[(f&p)+4>>2]=c[(g&p)>>2];c[(f&p)+44>>2]=0;f=Cg(f)|0;if((f|0)==0|(f|0)==101)l=1;else break}f=Dg(c[(C&p)>>2]|0,1,(c[(b&p)+8>>2]|0)+1|0)|0;if(!f){g=c[(b&p)>>2]|0;if(g)Eg(g);if(q?(s=Fg(c[(C&p)>>2]|0,2)|0,(s|0)!=0):0){f=s;break}if((w|0)<(t|0)){g=(t|0)/(w|0)|0;g=(l+-1+g|0)/(g|0)|0;h=c[2514]|0;k=c[((c[((c[(C&p)>>2]|0)&p)+4>>2]|0)&p)+32>>2]|0;g=(((g|0)==(((h>>>0)/(k>>>0)|0)+1|0))<<31>>31)+g|0;b=((w|0)<0)<<31>>31;s=sw(l|0,((l|0)<0)<<31>>31|0,w|0,b|0)|0;q=G;e=c[(A&p)+60>>2]|0;o=c[(A&p)+24>>2]|0;b:do if(g>>>0<=o>>>0){f=0;while(1){if((g|0)!=(((h>>>0)/(k>>>0)|0)+1|0)){f=zg(A,g,u,0)|0;if(f)break b;h=c[(u&p)>>2]|0;f=Gg(h)|0;if(h)Bg(h)}g=g+1|0;h=(f|0)==0;if(g>>>0>o>>>0|h^1)break;k=c[((c[((c[(C&p)>>2]|0)&p)+4>>2]|0)&p)+32>>2]|0;h=c[2514]|0}if(h)v=38}else v=38;while(0);if((v|0)==38)f=Hg(A,0,1)|0;h=c[2514]|0;l=h+t|0;m=((l|0)<0)<<31>>31;k=(m|0)<(q|0)|(m|0)==(q|0)&l>>>0>>0;l=k?l:s;m=k?m:q;h=h+w|0;k=((h|0)<0)<<31>>31;g=(f|0)==0;if(g&((k|0)<(m|0)|(k|0)==(m|0)&h>>>0>>0))do{c[(y&p)>>2]=0;f=qw(h|0,k|0,w|0,b|0)|0;f=jw(f|0,G|0,1,0)|0;f=zg(x,f,y,0)|0;g=c[(y&p)>>2]|0;if(!f)f=tc[c[((c[(e&p)>>2]|0)&p)+12>>2]&31](e,c[(g&p)+4>>2]|0,w,h,k)|0;if(g)Bg(g);h=jw(h|0,k|0,w|0,b|0)|0;k=G;g=(f|0)==0}while(g&((k|0)<(m|0)|(k|0)==(m|0)&h>>>0>>0));if(!g)break;f=rc[c[((c[(e&p)>>2]|0)&p)+24>>2]&127](e,B)|0;y=c[(B&p)+4>>2]|0;if((f|0)==0&((y|0)>(q|0)|((y|0)==(q|0)?(c[(B&p)>>2]|0)>>>0>s>>>0:0)))f=ac[c[((c[(e&p)>>2]|0)&p)+16>>2]&63](e,s,q)|0;if(f)break;f=Ig(A,0)|0}else{c[(A&p)+24>>2]=ca((w|0)/(t|0)|0,l)|0;f=Hg(A,0,0)|0}if(!f){f=Jg(c[(C&p)>>2]|0,0)|0;f=(f|0)==0?101:f}}}while(0);if(z){Kg(c[(D&p)>>2]|0,0)|0;Jg(c[(D&p)>>2]|0,0)|0}f=(f|0)==3082?7:f;c[(E&p)>>2]=f}i=F;return f|0}function hd(a){a=a|0;var d=0,e=0,f=0,g=0,h=0;if(!a)d=0;else{h=c[(a&p)+20>>2]|0;e=c[(a&p)+24>>2]|0;d=c[(e&p)+4>>2]|0;c[(d&p)+4>>2]=c[(e&p)>>2];if(c[(a&p)>>2]|0){e=e+16|0;c[(e&p)>>2]=(c[(e&p)>>2]|0)+-1}if(c[(a&p)+40>>2]|0){d=(c[(d&p)>>2]|0)+88|0;while(1){e=c[(d&p)>>2]|0;if((e|0)==(a|0))break;else d=e+44|0}c[(d&p)>>2]=c[(a&p)+44>>2]}Lg(c[(a&p)+4>>2]|0,0,0);d=c[(a&p)+28>>2]|0;d=(d|0)==101?0:d;e=c[(a&p)>>2]|0;if(e){c[(e&p)+52>>2]=d;f=c[(e&p)+236>>2]|0;do if(f){g=f+8|0;if(!(b[(g&o)>>1]&9312)){b[(g&o)>>1]=1;break}else{vg(f);e=c[(a&p)>>2]|0;break}}while(0);Mg(e);if(c[(a&p)>>2]|0)Wc(a)}Mg(h)}return d|0}function id(a){a=a|0;return c[(a&p)+32>>2]|0}function jd(a){a=a|0;return c[(a&p)+36>>2]|0}function kd(a){a=a|0;if((a|0)!=0?(b[(a&o)+88>>1]&256)!=0:0)a=c[(a&p)+168>>2]|0;else a=0;return a|0}function ld(a){a=a|0;if(!a)a=1;else a=(b[(a&o)+88>>1]&8)!=0;return a&1|0}function md(a){a=a|0;var b=0,d=0,e=0;e=i;i=i+16|0;if((i|0)>=(j|0))fa();d=e;do if(a){b=c[(a&p)>>2]|0;if(!b){bd(21,47360,d);c[(d&p)>>2]=68910;c[(d&p)+4>>2]=10788;bd(21,13648,d);b=21;break}else{a=Og(b,Ng(a)|0)|0;Mg(b);b=a;break}}else b=0;while(0);i=e;return b|0}function nd(b){b=b|0;var d=0,e=0;if(!b)b=0;else{d=Pg(b)|0;c[(b&p)+76>>2]=-1;c[(b&p)+80>>2]=0;a[(b&n)+86>>0]=2;c[(b&p)+40>>2]=-1108210269;c[(b&p)+92>>2]=0;c[(b&p)+72>>2]=1;a[(b&n)+87>>0]=-1;c[(b&p)+104>>2]=0;e=b+144|0;c[(e&p)>>2]=0;c[(e&p)+4>>2]=0;b=Og(c[(b&p)>>2]|0,d)|0}return b|0}function od(a){a=a|0;var d=0,e=0,f=0,g=0,h=0,i=0;h=a+68|0;e=b[(h&o)>>1]|0;if(e<<16>>16>0){i=a+60|0;d=c[(i&p)>>2]|0;g=0;do{f=d+(g*40|0)|0;if(!((b[(d+(g*40|0)&o)+8>>1]&9312)==0?(c[(d+(g*40|0)&p)+24>>2]|0)==0:0)){Qg(f);d=c[(i&p)>>2]|0;e=b[(h&o)>>1]|0}b[(d+(g*40|0)&o)+8>>1]=1;g=g+1|0}while((g|0)<(e<<16>>16|0))}d=a+88|0;e=b[(d&o)>>1]|0;if((e&256)!=0?(c[(a&p)+188>>2]|0)!=0:0)b[(d&o)>>1]=e|8;return 0}function pd(a){a=a|0;var d=0;d=a+8|0;if(b[(d&o)>>1]&18){Rg(a)|0;b[(d&o)>>1]=e[(d&o)>>1]|0|16;if(!(c[(a&p)+12>>2]|0))d=0;else d=c[(a&p)+16>>2]|0}else d=Sg(a,1)|0;return d|0}function qd(a){a=a|0;return Sg(a,1)|0}function rd(a){a=a|0;return Tg(a,1)|0}function sd(a){a=a|0;return Tg(a,2)|0}function td(a){a=a|0;return +(+Ug(a))}function ud(a){a=a|0;a=Vg(a)|0;return a|0}function vd(a){a=a|0;a=Vg(a)|0;return a|0}function wd(a){a=a|0;return Sg(a,2)|0}function xd(a){a=a|0;return Sg(a,3)|0}function yd(a){a=a|0;return Sg(a,2)|0}function zd(a){a=a|0;return d[((e[(a&o)+8>>1]|0)&31&n)+10064>>0]|0|0}function Ad(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;Wg(a,b,c,0,d);return}function Bd(b,d,e,f,g){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;if(f>>>0>0|(f|0)==0&e>>>0>2147483647){e=g;if(!((e|0)==0|(e|0)==-1))cc[g&31](d);if(b){c[(b&p)+20>>2]=18;a[(b&n)+25>>0]=1;Xg(c[(b&p)>>2]|0,10096,-1,1,0)|0}}else Wg(b,d,e,0,g);return}function Cd(a,b){a=a|0;b=+b;Yg(c[(a&p)>>2]|0,b);return}function Dd(b,d,e){b=b|0;d=d|0;e=e|0;c[(b&p)+20>>2]=1;a[(b&n)+25>>0]=1;Xg(c[(b&p)>>2]|0,d,e,1,-1)|0;return}function Ed(b,d,e){b=b|0;d=d|0;e=e|0;c[(b&p)+20>>2]=1;a[(b&n)+25>>0]=1;Xg(c[(b&p)>>2]|0,d,e,2,-1)|0;return}function Fd(a,d){a=a|0;d=d|0;var e=0,f=0;a=c[(a&p)>>2]|0;e=((d|0)<0)<<31>>31;f=a+8|0;if(!(b[(f&o)>>1]&9312)){c[(a&p)>>2]=d;c[(a&p)+4>>2]=e;b[(f&o)>>1]=4}else Zg(a,d,e);return}function Gd(a,d,e){a=a|0;d=d|0;e=e|0;var f=0;a=c[(a&p)>>2]|0;f=a+8|0;if(!(b[(f&o)>>1]&9312)){c[(a&p)>>2]=d;c[(a&p)+4>>2]=e;b[(f&o)>>1]=4}else Zg(a,d,e);return}function Hd(a){a=a|0;var d=0;a=c[(a&p)>>2]|0;d=a+8|0;if(!(b[(d&o)>>1]&9312))b[(d&o)>>1]=1;else vg(a);return}function Id(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;Wg(a,b,c,1,d);return}function Jd(b,d,e,f,g,h){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;if(f>>>0>0|(f|0)==0&e>>>0>2147483647){e=g;if(!((e|0)==0|(e|0)==-1))cc[g&31](d);if(b){c[(b&p)+20>>2]=18;a[(b&n)+25>>0]=1;Xg(c[(b&p)>>2]|0,10096,-1,1,0)|0}}else Wg(b,d,e,h<<24>>24==4?2:h,g);return}function Kd(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;Wg(a,b,c,2,d);return}function Ld(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;Wg(a,b,c,3,d);return}function Md(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;Wg(a,b,c,2,d);return}function Nd(a,b){a=a|0;b=b|0;_g(c[(a&p)>>2]|0,b)|0;return}function Od(a,b){a=a|0;b=b|0;$g(c[(a&p)>>2]|0,b);return}function Pd(d,e){d=d|0;e=e|0;var f=0;c[(d&p)+20>>2]=e;a[(d&n)+25>>0]=1;f=c[(d&p)>>2]|0;if(b[(f&o)+8>>1]&1){if((e|0)!=516){d=e&255;if(d>>>0>26|(d|0)==2)d=16328;else d=c[(d<<2&p)+15488>>2]|0}else d=16344;Xg(f,d,-1,1,0)|0}return}function Qd(b){b=b|0;c[(b&p)+20>>2]=18;a[(b&n)+25>>0]=1;Xg(c[(b&p)>>2]|0,10096,-1,1,0)|0;return}function Rd(d){d=d|0;var e=0,f=0;e=c[(d&p)>>2]|0;f=e+8|0;if(!(b[(f&o)>>1]&9312))b[(f&o)>>1]=1;else{vg(e);e=c[(d&p)>>2]|0}c[(d&p)+20>>2]=7;a[(d&n)+25>>0]=1;a[((c[(e&p)+32>>2]|0)&n)+65>>0]=1;return}function Sd(f){f=f|0;var g=0,l=0,m=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,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;_=i;i=i+224|0;if((i|0)>=(j|0))fa();V=_+8|0;U=_;if(!(ah(f)|0)){Z=c[(f&p)>>2]|0;N=f+88|0;b[(N&o)>>1]=b[(N&o)>>1]&-513;R=f+40|0;S=f+76|0;T=f+128|0;Y=f+80|0;D=f+168|0;E=f+8|0;F=f+20|0;H=f+32|0;I=f+4|0;J=f+84|0;X=f+44|0;K=(f|0)==0;L=f+52|0;M=f+48|0;C=0;while(1){if((c[(R&p)>>2]|0)!=-1108210269)nd(f)|0;B=c[(f&p)>>2]|0;if(a[(B&n)+65>>0]|0){W=7;break}l=c[(S&p)>>2]|0;do if((l|0)<1){if(b[(N&o)>>1]&8){c[(Y&p)>>2]=17;l=1;break}if((l|0)<0){l=B+148|0;if(!(c[(l&p)>>2]|0))c[(B&p)+240>>2]=0;if((c[(B&p)+184>>2]|0)!=0?(a[(B&n)+145>>0]|0)==0:0)bh(c[(B&p)>>2]|0,T)|0;c[(l&p)>>2]=(c[(l&p)>>2]|0)+1;l=b[(N&o)>>1]|0;if(!(l&64)){l=B+156|0;c[(l&p)>>2]=(c[(l&p)>>2]|0)+1;l=b[(N&o)>>1]|0}if(l&128){A=B+152|0;c[(A&p)>>2]=(c[(A&p)>>2]|0)+1}c[(S&p)>>2]=0;W=22}else W=22}else W=22;while(0);if((W|0)==22){W=0;do if(!(b[(N&o)>>1]&3)){A=B+160|0;c[(A&p)>>2]=(c[(A&p)>>2]|0)+1;l=gh(f)|0;c[(A&p)>>2]=(c[(A&p)>>2]|0)+-1;if((l|0)==100)l=100;else W=101}else{t=c[(f&p)>>2]|0;z=c[(E&p)>>2]|0;y=z+40|0;ch(y,8);c[(F&p)>>2]=0;if((c[(Y&p)>>2]|0)==7){a[(t&n)+65>>0]=1;l=1;W=101;break}r=c[(H&p)>>2]|0;u=b[(N&o)>>1]&3;if(u<<16>>16==1){s=c[(E&p)>>2]|0;v=s+360|0;if(b[(s&o)+368>>1]&16){w=(c[(s&p)+372>>2]|0)>>>2;m=c[(s&p)+376>>2]|0;if(!w){x=m;s=r;g=0}else{l=0;s=r;do{s=(c[((c[(m+(l<<2)&p)>>2]|0)&p)+4>>2]|0)+s|0;l=l+1|0}while((l|0)<(w|0));x=m;g=w}}else{x=0;s=r;g=0}}else{x=0;s=r;g=0;v=0}r=u<<16>>16==2;m=c[(S&p)>>2]|0;while(1){l=m+1|0;if((m|0)>=(s|0)){W=33;break}if(!r)break;if((a[((c[(I&p)>>2]|0)+(m*20|0)&n)>>0]|0)==-99)break;else m=l}if((W|0)==33){c[(S&p)>>2]=l;c[(Y&p)>>2]=0;l=101;W=101;break}c[(S&p)>>2]=l;if(c[(t&p)+240>>2]|0){c[(Y&p)>>2]=9;c[(V&p)>>2]=15832;dh(X,t,10344,V);l=1;W=101;break}s=c[(H&p)>>2]|0;if((m|0)<(s|0)){l=m;A=(c[(I&p)>>2]|0)+(m*20|0)|0}else{m=m-s|0;s=c[(x&p)>>2]|0;r=c[(s&p)+4>>2]|0;if((m|0)<(r|0))r=m;else{s=m;l=0;while(1){m=s-r|0;l=l+1|0;s=c[(x+(l<<2)&p)>>2]|0;r=c[(s&p)+4>>2]|0;if((m|0)<(r|0)){r=m;break}else s=m}}l=r;A=(c[(s&p)>>2]|0)+(r*20|0)|0}if((b[(N&o)>>1]&3)==1){b[(z&o)+48>>1]=4;r=y;c[(r&p)>>2]=l;c[(r&p)+4>>2]=((l|0)<0)<<31>>31;b[(z&o)+88>>1]=2562;r=c[(d[(A&n)>>0]<<2&p)+44856>>2]|0;c[(z&p)+96>>2]=r;s=r;while(1)if(!(a[(s&n)>>0]|0))break;else s=s+1|0;w=z+80|0;c[(z&p)+92>>2]=s-r&1073741823;a[(z&n)+90>>0]=1;if((a[(A&n)+1>>0]|0)==-18){l=(g<<2)+4|0;a:do if(!g)s=0;else{r=c[(A&p)+16>>2]|0;m=0;while(1){s=m+1|0;if((c[(x+(m<<2)&p)>>2]|0)==(r|0)){s=m;break a}if((s|0)<(g|0))m=s;else break}}while(0);if((s|0)==(g|0)?(eh(v,l,(g|0)!=0&1)|0)==0:0){c[((c[(v&p)+16>>2]|0)+(g<<2)&p)>>2]=c[(A&p)+16>>2];z=v+8|0;b[(z&o)>>1]=e[(z&o)>>1]|16;c[(v&p)+12>>2]=l;z=w}else z=w}else z=w}b[(z&o)+48>>1]=4;y=c[(A&p)+4>>2]|0;x=z+40|0;c[(x&p)>>2]=y;c[(x&p)+4>>2]=((y|0)<0)<<31>>31;b[(z&o)+88>>1]=4;x=c[(A&p)+8>>2]|0;y=z+80|0;c[(y&p)>>2]=x;c[(y&p)+4>>2]=((x|0)<0)<<31>>31;b[(z&o)+128>>1]=4;y=c[(A&p)+12>>2]|0;x=z+120|0;c[(x&p)>>2]=y;c[(x&p)+4>>2]=((y|0)<0)<<31>>31;x=z+160|0;if(!(fh(x,32)|0)){b[(z&o)+168>>1]=514;y=z+176|0;g=c[(y&p)>>2]|0;b:do switch(a[(A&n)+1>>0]|0){case -6:{t=c[(A&p)+16>>2]|0;l=t+6|0;c[(V&p)>>2]=e[(l&o)>>1];ad(32,g,44768,V)|0;if(!g)s=0;else{s=g;while(1)if(!(a[(s&n)>>0]|0))break;else s=s+1|0;s=s-g&1073741823}c:do if(b[(l&o)>>1]|0){u=t+16|0;v=0;while(1){r=c[(t+(v<<2)&p)+20>>2]|0;if(r){r=c[(r&p)>>2]|0;if(!r){m=0;r=0}else W=61}else{r=44776;W=61}do if((W|0)==61){W=0;w=r;while(1)if(!(a[(w&n)>>0]|0))break;else w=w+1|0;m=w-r&1073741823;if((m|0)!=6)break;w=(Zv(r,11152,6)|0)==0;m=w?1:6;r=w?44784:r}while(0);if((m+s|0)>26)break;w=s+1|0;a[(g+s&n)>>0]=44;if(a[((c[(u&p)>>2]|0)+v&n)>>0]|0){a[(g+w&n)>>0]=45;w=s+2|0}kw(g+w|0,r|0,m+1|0)|0;s=w+m|0;v=v+1|0;if((v|0)>=(e[(l&o)>>1]|0))break c}l=g+s|0;a[(l&n)>>0]=44;a[(l&n)+1>>0]=46;a[(l&n)+2>>0]=46;a[(l&n)+3>>0]=46}while(0);a[(g+s&n)>>0]=41;a[(g+s&n)+1>>0]=0;r=g;break}case -15:{ad(32,g,44832,V)|0;r=g;break}case -18:{ad(32,g,44848,V)|0;r=g;break}case -4:{c[(V&p)>>2]=c[(c[(A&p)+16>>2]&p)>>2];ad(32,g,44792,V)|0;r=g;break}case -5:{l=c[(A&p)+16>>2]|0;r=b[(l&o)>>1]|0;c[(V&p)>>2]=c[(l&p)+24>>2];c[(V&p)+4>>2]=r;ad(32,g,44800,V)|0;r=g;break}case -13:{m=c[(A&p)+16>>2]|0;l=c[(m&p)+4>>2]|0;r=V;c[(r&p)>>2]=c[(m&p)>>2];c[(r&p)+4>>2]=l;ad(32,g,19920,V)|0;r=g;break}case -14:{c[(V&p)>>2]=c[(A&p)+16>>2];ad(32,g,44808,V)|0;r=g;break}case -12:{h[(k&q)>>3]=+h[(c[(A&p)+16>>2]&q)>>3];c[(V&p)>>2]=c[(k&p)>>2];c[(V&p)+4>>2]=c[(k&p)+4>>2];ad(32,g,19912,V)|0;r=g;break}case -8:{s=c[(A&p)+16>>2]|0;r=e[(s&o)+8>>1]|0;if(r&2){r=c[(s&p)+16>>2]|0;break b}if(r&4){m=s;l=c[(m&p)+4>>2]|0;r=V;c[(r&p)>>2]=c[(m&p)>>2];c[(r&p)+4>>2]=l;ad(32,g,19920,V)|0;r=g;break b}if(r&8){h[(k&q)>>3]=+h[(s&q)>>3];c[(V&p)>>2]=c[(k&p)>>2];c[(V&p)+4>>2]=c[(k&p)+4>>2];ad(32,g,19912,V)|0;r=g;break b}if(!(r&1))r=44816;else{ad(32,g,20304,V)|0;r=g}break}case -19:{a[(g&n)>>0]=0;r=g;break}case -10:{c[(V&p)>>2]=c[((c[(A&p)+16>>2]|0)&p)+8>>2];ad(32,g,44824,V)|0;r=g;break}default:{s=c[(A&p)+16>>2]|0;if(!s){a[(g&n)>>0]=0;r=g}else r=s}}while(0);if((r|0)==(c[(y&p)>>2]|0)){if(!r)l=0;else{s=r;while(1)if(!(a[(s&n)>>0]|0))break;else s=s+1|0;l=s-r&1073741823}c[(z&p)+172>>2]=l;a[(z&n)+170>>0]=1}else Xg(x,r,-1,1,0)|0;l=b[(N&o)>>1]|0;if((l&3)==1){if(fh(z+200|0,4)|0){l=1;W=101;break}b[(z&o)+208>>1]=514;c[(z&p)+212>>2]=2;l=c[(z&p)+216>>2]|0;c[(V&p)>>2]=d[(A&n)+3>>0];ad(3,l,44760,V)|0;a[(z&n)+210>>0]=1;b[(z&o)+248>>1]=1;l=b[(N&o)>>1]|0}b[(J&o)>>1]=12-((l&3)<<2);c[(F&p)>>2]=(c[(E&p)>>2]|0)+40;c[(Y&p)>>2]=0;l=100}else{l=1;W=101}}while(0);if((W|0)==101){W=0;g=B+184|0;if(((c[(g&p)>>2]|0)!=0?(a[(B&n)+145>>0]|0)==0:0)?(c[(D&p)>>2]|0)!=0:0){bh(c[(B&p)>>2]|0,U)|0;g=c[(g&p)>>2]|0;y=c[(B&p)+188>>2]|0;z=c[(D&p)>>2]|0;m=U;A=T;A=dw(c[(m&p)>>2]|0,c[(m&p)+4>>2]|0,c[(A&p)>>2]|0,c[(A&p)+4>>2]|0)|0;A=sw(A|0,G|0,1e6,0)|0;qc[g&15](y,z,A,G)}if((l|0)==101){t=B+20|0;s=c[(t&p)>>2]|0;if((s|0)>0){u=B+16|0;v=B+216|0;w=B+220|0;g=0;l=0;do{r=c[(u&p)>>2]|0;m=c[(r+(g<<4)&p)+4>>2]|0;if(((m|0)!=0?(O=c[(m&p)+4>>2]|0,c[(O&p)+4>>2]=c[(m&p)>>2],O=c[((c[(O&p)>>2]|0)&p)+208>>2]|0,(O|0)!=0):0)?(Q=O+12|0,P=c[(Q&p)>>2]|0,c[(Q&p)>>2]=0,Q=c[(v&p)>>2]|0,(Q|0)!=0&(P|0)>0&(l|0)==0):0){l=pc[Q&31](c[(w&p)>>2]|0,B,c[(r+(g<<4)&p)>>2]|0,P)|0;s=c[(t&p)>>2]|0}g=g+1|0}while((g|0)<(s|0))}else l=0;c[(Y&p)>>2]=l;l=(l|0)==0?101:1}}c[(B&p)+52>>2]=l;if((Og(c[(f&p)>>2]|0,c[(Y&p)>>2]|0)|0)==7)c[(Y&p)>>2]=7}if((b[(N&o)>>1]&256)!=0&(l|0)!=100&(l|0)!=101)l=hh(f)|0;g=c[(B&p)+56>>2]&l;if((g|0)!=17)break;s=C+1|0;if((C|0)>=50){g=17;break}m=c[(S&p)>>2]|0;if(!K?(b[(N&o)>>1]&256)!=0:0)l=c[(D&p)>>2]|0;else l=0;r=c[(f&p)>>2]|0;g=ih(r,l,-1,0,f,U,0)|0;if((g|0)==7){g=r;W=124;break}else if(g){W=127;break}C=c[(U&p)>>2]|0;kw(V|0,C|0,208)|0;kw(C|0,f|0,208)|0;kw(f|0,V|0,208)|0;A=C+52|0;B=c[(A&p)>>2]|0;c[(A&p)>>2]=c[(L&p)>>2];c[(L&p)>>2]=B;B=C+48|0;A=c[(B&p)>>2]|0;c[(B&p)>>2]=c[(M&p)>>2];c[(M&p)>>2]=A;A=C+168|0;B=c[(A&p)>>2]|0;c[(A&p)>>2]=c[(D&p)>>2];c[(D&p)>>2]=B;b[(N&o)>>1]=b[(N&o)>>1]&-257|b[(C&o)+88>>1]&256;jh(C,f);c[(C&p)+80>>2]=0;Ng(C)|0;nd(f)|0;if((m|0)<=-1){C=s;continue}b[(N&o)>>1]=b[(N&o)>>1]|512;C=s}if((W|0)==7){c[(Y&p)>>2]=7;g=7}else if((W|0)==124){a[(g&n)+65>>0]=1;g=7;W=127}do if((W|0)==127){l=Sg(c[(Z&p)+236>>2]|0,1)|0;mg(Z,c[(X&p)>>2]|0);if(!(a[(Z&n)+65>>0]|0)){c[(X&p)>>2]=kh(Z,l)|0;c[(Y&p)>>2]=g;break}else{c[(X&p)>>2]=0;c[(Y&p)>>2]=7;g=7;break}}while(0);g=Og(Z,g)|0}else{c[(V&p)>>2]=69408;c[(V&p)+4>>2]=10788;bd(21,13648,V);g=21}i=_;return g|0}function Td(a){a=a|0;return c[((c[(a&p)+4>>2]|0)&p)+4>>2]|0}function Ud(a){a=a|0;return c[((c[(a&p)>>2]|0)&p)+32>>2]|0}function Vd(a,d){a=a|0;d=d|0;var e=0;e=c[(a&p)+8>>2]|0;if(!(b[(e&o)+8>>1]&8192))e=lh(a,d)|0;else e=c[(e&p)+16>>2]|0;return e|0}function Wd(a,b){a=a|0;b=b|0;var d=0;d=c[((c[(a&p)+12>>2]|0)&p)+204>>2]|0;a:do if(!d)d=0;else{a=c[(a&p)+16>>2]|0;while(1){if((c[(d&p)>>2]|0)==(a|0)?(c[(d&p)+4>>2]|0)==(b|0):0)break;d=c[(d&p)+16>>2]|0;if(!d){d=0;break a}}d=c[(d&p)+8>>2]|0}while(0);return d|0}function Xd(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0;h=c[(b&p)+12>>2]|0;do if((d|0)<0)k=14;else{j=h+204|0;g=c[(j&p)>>2]|0;a:do if(g){i=c[(b&p)+16>>2]|0;while(1){if((c[(g&p)>>2]|0)==(i|0)?(c[(g&p)+4>>2]|0)==(d|0):0)break;g=c[(g&p)+16>>2]|0;if(!g){k=8;break a}}if(g){h=c[(g&p)+12>>2]|0;if(h)cc[h&31](c[(g&p)+8>>2]|0)}else k=8}else k=8;while(0);if((k|0)==8){g=mh(c[(h&p)>>2]|0,20,0)|0;if(!g){k=14;break}h=g+0|0;i=h+16|0;do{a[(h&n)>>0]=0;h=h+1|0}while((h|0)<(i|0));c[(g&p)>>2]=c[(b&p)+16>>2];c[(g&p)+4>>2]=d;c[(g&p)+16>>2]=c[(j&p)>>2];c[(j&p)>>2]=g;h=b+25|0;if(!(a[(h&n)>>0]|0)){c[(b&p)+20>>2]=0;a[(h&n)>>0]=1}}c[(g&p)+8>>2]=e;c[(g&p)+12>>2]=f}while(0);if((k|0)==14?(f|0)!=0:0)cc[f&31](e);return}function Yd(a){a=a|0;return c[((c[(a&p)+8>>2]|0)&p)+12>>2]|0}function Zd(a){a=a|0;if(!a)a=0;else a=e[(a&o)+84>>1]|0;return a|0}function _d(a){a=a|0;if((a|0)!=0?(c[(a&p)+20>>2]|0)!=0:0)a=e[(a&o)+84>>1]|0;else a=0;return a|0}function $d(a,b){a=a|0;b=b|0;var d=0;b=pd(nh(a,b)|0)|0;if(a){d=a+80|0;c[(d&p)>>2]=Og(c[(a&p)>>2]|0,c[(d&p)>>2]|0)|0}return b|0}function ae(a,b){a=a|0;b=b|0;var d=0;b=Tg(nh(a,b)|0,1)|0;if(a){d=a+80|0;c[(d&p)>>2]=Og(c[(a&p)>>2]|0,c[(d&p)>>2]|0)|0}return b|0}function be(a,b){a=a|0;b=b|0;var d=0;b=Tg(nh(a,b)|0,2)|0;if(a){d=a+80|0;c[(d&p)>>2]=Og(c[(a&p)>>2]|0,c[(d&p)>>2]|0)|0}return b|0}function ce(a,b){a=a|0;b=b|0;var d=0.0;d=+Ug(nh(a,b)|0);if(a){b=a+80|0;c[(b&p)>>2]=Og(c[(a&p)>>2]|0,c[(b&p)>>2]|0)|0}return +d}function de(a,b){a=a|0;b=b|0;var d=0;b=Vg(nh(a,b)|0)|0;if(a){d=a+80|0;c[(d&p)>>2]=Og(c[(a&p)>>2]|0,c[(d&p)>>2]|0)|0}return b|0}function ee(a,b){a=a|0;b=b|0;var d=0,e=0;b=Vg(nh(a,b)|0)|0;d=G;if(a){e=a+80|0;c[(e&p)>>2]=Og(c[(a&p)>>2]|0,c[(e&p)>>2]|0)|0}G=d;return b|0}function fe(a,b){a=a|0;b=b|0;var d=0;b=Sg(nh(a,b)|0,1)|0;if(a){d=a+80|0;c[(d&p)>>2]=Og(c[(a&p)>>2]|0,c[(d&p)>>2]|0)|0}return b|0}function ge(a,d){a=a|0;d=d|0;var f=0,g=0;d=nh(a,d)|0;f=d+8|0;g=e[(f&o)>>1]|0;if(g&2048)b[(f&o)>>1]=g&59391|4096;if(a){f=a+80|0;c[(f&p)>>2]=Og(c[(a&p)>>2]|0,c[(f&p)>>2]|0)|0}return d|0}function he(a,b){a=a|0;b=b|0;var d=0;b=Sg(nh(a,b)|0,2)|0;if(a){d=a+80|0;c[(d&p)>>2]=Og(c[(a&p)>>2]|0,c[(d&p)>>2]|0)|0}return b|0}function ie(a,b){a=a|0;b=b|0;var f=0;b=d[((e[((nh(a,b)|0)&o)+8>>1]|0)&31&n)+10064>>0]|0;if(a){f=a+80|0;c[(f&p)>>2]=Og(c[(a&p)>>2]|0,c[(f&p)>>2]|0)|0}return b|0}function je(b,d){b=b|0;d=d|0;var f=0,g=0;g=c[(b&p)>>2]|0;if(!b)f=0;else f=e[(b&o)+84>>1]|0;if((f|0)>(d|0)&(d|0)>-1){d=Sg((c[(b&p)+16>>2]|0)+(d*40|0)|0,1)|0;f=g+65|0;if(a[(f&n)>>0]|0){a[(f&n)>>0]=0;d=0}}else d=0;return d|0}function ke(b,d){b=b|0;d=d|0;var f=0,g=0;g=c[(b&p)>>2]|0;if(!b)f=0;else f=e[(b&o)+84>>1]|0;if((f|0)>(d|0)&(d|0)>-1){d=Sg((c[(b&p)+16>>2]|0)+(d*40|0)|0,2)|0;f=g+65|0;if(a[(f&n)>>0]|0){a[(f&n)>>0]=0;d=0}}else d=0;return d|0}function le(b,d){b=b|0;d=d|0;var f=0,g=0;g=c[(b&p)>>2]|0;if(!b)f=0;else f=e[(b&o)+84>>1]|0;if((f|0)>(d|0)&(d|0)>-1){d=Sg((c[(b&p)+16>>2]|0)+((f+d|0)*40|0)|0,1)|0;f=g+65|0;if(a[(f&n)>>0]|0){a[(f&n)>>0]=0;d=0}}else d=0;return d|0}function me(b,d){b=b|0;d=d|0;var f=0,g=0;g=c[(b&p)>>2]|0;if(!b)f=0;else f=e[(b&o)+84>>1]|0;if((f|0)>(d|0)&(d|0)>-1){d=Sg((c[(b&p)+16>>2]|0)+((f+d|0)*40|0)|0,2)|0;f=g+65|0;if(a[(f&n)>>0]|0){a[(f&n)>>0]=0;d=0}}else d=0;return d|0}function ne(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;return oh(a,b,c,d,e,0)|0}function oe(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;if(e>>>0>0|(e|0)==0&d>>>0>2147483647){d=f;if((d|0)==0|(d|0)==-1)d=18;else{cc[f&31](c);d=18}}else d=oh(a,b,c,d,f,0)|0;return d|0}function pe(a,b,d){a=a|0;b=b|0;d=+d;var e=0;e=ph(a,b)|0;if(!e)Yg((c[(a&p)+60>>2]|0)+((b+-1|0)*40|0)|0,d);return e|0}function qe(a,b,c){a=a|0;b=b|0;c=c|0;return re(a,b,c,((c|0)<0)<<31>>31)|0}function re(a,d,e,f){a=a|0;d=d|0;e=e|0;f=f|0;var g=0,h=0;g=ph(a,d)|0;do if(!g){d=d+-1|0;h=c[(a&p)+60>>2]|0;a=h+(d*40|0)|0;d=h+(d*40|0)+8|0;if(!(b[(d&o)>>1]&9312)){c[(a&p)>>2]=e;c[(a&p)+4>>2]=f;b[(d&o)>>1]=4;break}else{Zg(a,e,f);break}}while(0);return g|0}function se(a,b){a=a|0;b=b|0;return ph(a,b)|0}function te(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;return oh(a,b,c,d,e,1)|0}function ue(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;if(e>>>0>0|(e|0)==0&d>>>0>2147483647){d=f;if((d|0)==0|(d|0)==-1)d=18;else{cc[f&31](c);d=18}}else d=oh(a,b,c,d,f,g<<24>>24==4?2:g)|0;return d|0}function ve(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;return oh(a,b,c,d,e,2)|0}function we(e,f,g){e=e|0;f=f|0;g=g|0;var i=0,j=0;i=b[(g&o)+8>>1]|0;j=d[(i&31&n)+10064>>0]|0;do if((j|0)==3)i=oh(e,f,c[(g&p)+16>>2]|0,c[(g&p)+12>>2]|0,-1,a[(g&n)+10>>0]|0)|0;else if((j|0)==1){i=g;i=re(e,f,c[(i&p)>>2]|0,c[(i&p)+4>>2]|0)|0}else if((j|0)==2)i=pe(e,f,+h[(g&q)>>3])|0;else if((j|0)==4)if(!(i&16384)){i=oh(e,f,c[(g&p)+16>>2]|0,c[(g&p)+12>>2]|0,-1,0)|0;break}else{i=xe(e,f,c[(g&p)>>2]|0)|0;break}else i=ph(e,f)|0;while(0);return i|0}function xe(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;e=ph(a,b)|0;if(!e)$g((c[(a&p)+60>>2]|0)+((b+-1|0)*40|0)|0,d);return e|0}function ye(a){a=a|0;if(!a)a=0;else a=b[(a&o)+68>>1]|0;return a|0}function ze(a,d){a=a|0;d=d|0;if(!((a|0)==0|(d|0)<1)?(b[(a&o)+70>>1]|0)>=(d|0):0)d=c[((c[(a&p)+64>>2]|0)+(d+-1<<2)&p)>>2]|0;else d=0;return d|0}function Ae(b,c){b=b|0;c=c|0;var d=0;if(!c)d=0;else{d=c;while(1)if(!(a[(d&n)>>0]|0))break;else d=d+1|0;d=d-c&1073741823}return qh(b,c,d)|0}function Be(a,d){a=a|0;d=d|0;var e=0,f=0;if((b[(a&o)+68>>1]|0)==(b[(d&o)+68>>1]|0)){f=d+88|0;e=b[(f&o)>>1]|0;if((e&256)!=0?(c[(d&p)+188>>2]|0)!=0:0)b[(f&o)>>1]=e|8;e=a+88|0;f=b[(e&o)>>1]|0;if((f&256)!=0?(c[(a&p)+188>>2]|0)!=0:0)b[(e&o)>>1]=f|8;jh(a,d);e=0}else e=1;return e|0}function Ce(a){a=a|0;if(!a)a=0;else a=c[(a&p)>>2]|0;return a|0}function De(a){a=a|0;if(!a)a=1;else a=(e[(a&o)+88>>1]|0)>>>6&1;return a|0}function Ee(a){a=a|0;if((a|0)!=0?(c[(a&p)+76>>2]|0)>-1:0)a=(c[(a&p)+40>>2]|0)==-1108210269;else a=0;return a&1|0}function Fe(a,b){a=a|0;b=b|0;if(!b)a=a+4|0;else a=b+52|0;return c[(a&p)>>2]|0}function Ge(a,b,d){a=a|0;b=b|0;d=d|0;a=a+(b<<2)+108|0;b=c[(a&p)>>2]|0;if(d)c[(a&p)>>2]=0;return b|0}function He(a){a=a|0;var b=0,c=0,f=0;c=a+8|0;f=e[(c&o)>>1]|0;b=d[(f&31&n)+10064>>0]|0;if((f&15|0)==2){rh(a,0);b=d[((e[(c&o)>>1]|0)&31&n)+10064>>0]|0}return b|0}function Ie(d,e,f,g,h,k,l,m){d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;m=m|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,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;U=i;i=i+16|0;if((i|0)>=(j|0))fa();S=U;T=U+4|0;c[(T&p)>>2]=0;c[(m&p)>>2]=0;N=(l|0)!=0;O=N&1;Q=mh(d,28,0)|0;do if(Q){l=Q+0|0;s=l+28|0;do{a[(l&n)>>0]=0;l=l+1|0}while((l|0)<(s|0));s=mh(d,536,0)|0;if(s){K=d+20|0;L=d+16|0;B=d+24|0;l=Q+20|0;C=Q+12|0;D=Q+24|0;E=d+65|0;F=O^3;G=O|2;H=s+440|0;I=s+72|0;J=s+68|0;r=0;M=1;q=0;while(1){fw(s|0,0,536)|0;c[(s&p)>>2]=d;mg(d,r);c[(T&p)>>2]=0;r=c[(K&p)>>2]|0;if((r|0)>0){t=c[(L&p)>>2]|0;v=0;do{u=c[(t+(v<<4)&p)+4>>2]|0;if(u)c[((c[(u&p)+4>>2]|0)&p)+4>>2]=c[(u&p)>>2];v=v+1|0}while((v|0)!=(r|0))}A=sh(s,0,f,e)|0;if(!A)break;r=a[(A&n)+44>>0]|0;if(r&16){R=11;break}if(r&32){R=13;break}if(c[(A&p)+12>>2]|0){R=17;break}z=A+38|0;w=b[(z&o)>>1]|0;a:do if(w<<16>>16>0){v=c[(A&p)+4>>2]|0;u=w<<16>>16;r=0;while(1){t=r+1|0;if(!(dd(c[(v+(r*24|0)&p)>>2]|0,g)|0)){t=r;break a}if((t|0)<(u|0))r=t;else break}}else t=0;while(0);if((t|0)==(w<<16>>16|0)){R=23;break}if(N){if((c[(B&p)>>2]&524288|0)!=0?(P=c[(A&p)+16>>2]|0,(P|0)!=0):0){x=P;r=0;do{w=c[(x&p)+20>>2]|0;if((w|0)>0){v=0;do{r=(c[(x+(v<<3)&p)+36>>2]|0)==(t|0)?10280:r;v=v+1|0}while((v|0)<(w|0))}x=c[(x&p)+4>>2]|0}while((x|0)!=0)}else r=0;v=c[(A&p)+8>>2]|0;if(v)do{u=b[(v&o)+46>>1]|0;if(u<<16>>16){y=c[(v&p)+4>>2]|0;w=u&65535;x=0;do{r=(b[(y+(x<<1)&o)>>1]|0)==(t|0)?10296:r;x=x+1|0}while((x|0)<(w|0))}v=c[(v&p)+20>>2]|0}while((v|0)!=0);if(r){R=36;break}}y=vh(s)|0;c[(l&p)>>2]=y;if(y){x=c[(A&p)+68>>2]|0;b:do if(x){w=c[(K&p)>>2]|0;if((w|0)>0){v=c[(L&p)>>2]|0;r=0;while(1){u=r+1|0;if((c[(v+(r<<4)&p)+12>>2]|0)==(x|0)){u=r;break b}if((u|0)<(w|0))r=u;else break}}else u=0}else u=-1e6;while(0);r=c[(x&p)+4>>2]|0;xh(y,wh(y,4,u,O,c[(x&p)>>2]|0)|0,r,-14);r=y+4|0;v=c[(r&p)>>2]|0;w=y+32|0;if(v)a[(v+(((c[(w&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=1;yh(y,10,10120)|0;v=y+96|0;c[(v&p)>>2]=c[(v&p)>>2]|1<>2]|0)>>>0>1){x=c[(r&p)>>2]|0;c[(x&p)+24>>2]=u;v=A+32|0;c[(x&p)+28>>2]=c[(v&p)>>2];c[((c[(r&p)>>2]|0)&p)+32>>2]=O}else v=A+32|0;xh(y,1,c[(A&p)>>2]|0,0);zh(y,F);if((c[(w&p)>>2]|0)>>>0>G>>>0){c[((c[(r&p)>>2]|0)+(G*20|0)&p)+8>>2]=c[(v&p)>>2];c[((c[(r&p)>>2]|0)+(G*20|0)&p)+12>>2]=u}xh(y,G,(b[(z&o)>>1]|0)+1|0,-14);if((c[(w&p)>>2]|0)>>>0>6)c[((c[(r&p)>>2]|0)&p)+128>>2]=b[(z&o)>>1];if(!(a[(E&n)>>0]|0)){c[(H&p)>>2]=1;c[(I&p)>>2]=1;c[(J&p)>>2]=1;Ah(y,s)}}c[(Q&p)>>2]=O;c[(C&p)>>2]=t;c[(D&p)>>2]=d;if(a[(E&n)>>0]|0){R=57;break}re(c[(l&p)>>2]|0,1,h,k)|0;q=Bh(Q,h,k,T)|0;if(!((M|0)<50&(q|0)==17)){R=57;break}r=c[(T&p)>>2]|0;M=M+1|0;q=17}if((R|0)==11){c[(S&p)>>2]=f;th(s,10160,S)}else if((R|0)==13){c[(S&p)>>2]=f;th(s,10192,S)}else if((R|0)==17){c[(S&p)>>2]=f;th(s,10232,S)}else if((R|0)==23){mg(d,0);c[(S&p)>>2]=g;c[(T&p)>>2]=uh(d,10256,S)|0;q=1;R=62;break}else if((R|0)==36){mg(d,0);c[(S&p)>>2]=r;c[(T&p)>>2]=uh(d,10304,S)|0;q=1;R=62;break}else if((R|0)==57)if(!q){q=1;r=s;R=58;break}else{r=s;R=61;break}r=s+4|0;if(!(c[(r&p)>>2]|0)){q=1;R=62}else{mg(d,0);c[(T&p)>>2]=c[(r&p)>>2];c[(r&p)>>2]=0;q=1;R=62}}else{q=1;r=s;R=58}}else{q=0;r=0;R=58}while(0);do if((R|0)==58)if(a[(d&n)+65>>0]|0)if(q){q=0;R=61;break}else{q=0;R=64;break}else{c[(m&p)>>2]=Q;q=0;break}while(0);if((R|0)==61){l=Q+20|0;s=r;R=62}if((R|0)==62){r=c[(l&p)>>2]|0;if(!r){r=s;R=64}else{Ng(r)|0;r=s;R=64}}if((R|0)==64)mg(d,Q);K=c[(T&p)>>2]|0;c[(S&p)>>2]=K;ug(d,q,(K|0)!=0?10344:0,S);mg(d,K);Ch(r);mg(d,r);K=Og(d,q)|0;i=U;return K|0}function Je(a){a=a|0;var b=0,d=0;if(!a)a=0;else{d=c[(a&p)+24>>2]|0;b=md(c[(a&p)+20>>2]|0)|0;mg(d,a);a=b}return a|0}function Ke(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return Eh(a,b,c,d,18)|0}function Le(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return Eh(a,b,c,d,19)|0}function Me(a){a=a|0;if((a|0)!=0?(c[(a&p)+20>>2]|0)!=0:0)a=c[(a&p)+4>>2]|0;else a=0;return a|0}function Ne(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0;h=i;i=i+16|0;if((i|0)>=(j|0))fa();e=h;f=h+8|0;if(!a){c[(e&p)>>2]=77720;c[(e&p)+4>>2]=10788;bd(21,13648,e);b=21}else{g=c[(a&p)+24>>2]|0;if(c[(a&p)+20>>2]|0){b=Bh(a,b,d,f)|0;if(!b)b=0;else{d=c[(f&p)>>2]|0;c[(e&p)>>2]=d;ug(g,b,(d|0)!=0?10344:0,e);mg(g,d)}}else b=4;b=Og(g,b)|0}i=h;return b|0}function Oe(a,d,e){a=a|0;d=d|0;e=e|0;c[(a&p)+284>>2]=d;c[(a&p)+288>>2]=e;a=c[(a&p)+4>>2]|0;if(a)do{e=a+88|0;b[(e&o)>>1]=b[(e&o)>>1]|8;a=c[(a&p)+52>>2]|0}while((a|0)!=0);return 0}function Pe(a,b){a=a|0;b=b|0;return (Gh(a,b,10352,0)|0)==0|0}function Qe(e,f,g,h,k){e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;var l=0,m=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;E=i;i=i+16|0;if((i|0)>=(j|0))fa();m=E;A=E+12|0;B=E+8|0;c[(B&p)>>2]=0;do if(Hh(e)|0){l=(f|0)==0?10360:f;C=e+52|0;c[(C&p)>>2]=0;D=e+236|0;m=c[(D&p)>>2]|0;do if(m){f=m+8|0;if(!(b[(f&o)>>1]&9312)){b[(f&o)>>1]=1;break}else{vg(m);break}}while(0);x=(g|0)==0;y=e+24|0;m=0;a:while(1){do{if(m){q=39;break a}if(!(a[(l&n)>>0]|0)){m=0;q=39;break a}c[(B&p)>>2]=0;m=ih(e,l,-1,1,0,B,A)|0}while((m|0)!=0);l=c[(B&p)>>2]|0;if(!l){l=c[(A&p)>>2]|0;m=0;continue}w=b[(l&o)+84>>1]|0;u=w&65535;v=u<<3|1;w=w<<16>>16==0;f=0;q=0;r=0;b:do{m=Sd(l)|0;do if(!x){s=(m|0)==100;if(!s){if((m|0)!=101|(r|0)!=0)break b;if(!(c[(y&p)>>2]&256)){r=0;break}}if(!r){f=mh(e,v,0)|0;if(!f){f=0;q=40;break a}fw(f|0,0,v|0)|0;if(w)t=1;else{r=0;do{c[(f+(r<<2)&p)>>2]=je(l,r)|0;r=r+1|0}while((r|0)<(u|0));t=1}}else t=r;c:do if(s){q=f+(u<<2)|0;if(!w){r=0;while(1){s=fe(l,r)|0;c[(f+(r+u<<2)&p)>>2]=s;if((s|0)==0?(z=c[(B&p)>>2]|0,(ie(z,r)|0)!=5):0){m=z;q=27;break a}r=r+1|0;if((r|0)>=(u|0))break c;l=c[(B&p)>>2]|0}}}while(0);if(!(pc[g&31](h,u,q,f)|0))r=t;else{l=f;q=31;break a}}while(0);l=c[(B&p)>>2]|0}while((m|0)==100);m=Ng(l)|0;c[(B&p)>>2]=0;l=c[(A&p)>>2]|0;while(1)if(!(a[((d[(l&n)>>0]|0)&n)+10368>>0]&1))break;else l=l+1|0;mg(e,f)}do if((q|0)==27){a[(e&n)+65>>0]=1;l=m;m=100;q=40}else if((q|0)==31){Ng(c[(B&p)>>2]|0)|0;c[(B&p)>>2]=0;c[(C&p)>>2]=4;m=c[(D&p)>>2]|0;if(m){f=m+8|0;if(!(b[(f&o)>>1]&9312)){b[(f&o)>>1]=1;f=l;m=4;break}else{vg(m);f=l;m=4;break}}else{f=l;m=4}}else if((q|0)==39){l=c[(B&p)>>2]|0;f=0;q=40}while(0);if((q|0)==40)if(l)Ng(l)|0;mg(e,f);l=Og(e,m)|0;f=(k|0)!=0;if(!((l|0)!=0&f)){if(!f)break;c[(k&p)>>2]=0;break}f=Se(e)|0;if(!f)f=1;else{m=f;while(1)if(!(a[(m&n)>>0]|0))break;else m=m+1|0;f=(m-f&1073741823)+1|0}m=qg(f,((f|0)<0)<<31>>31)|0;c[(k&p)>>2]=m;if(m){kw(m|0,Se(e)|0,f|0)|0;break}c[(C&p)>>2]=7;l=c[(D&p)>>2]|0;if(l){f=l+8|0;if(!(b[(f&o)>>1]&9312)){b[(f&o)>>1]=1;l=7;break}else{vg(l);l=7;break}}else l=7}else{c[(m&p)>>2]=101334;c[(m&p)+4>>2]=10788;bd(21,13648,m);l=21}while(0);i=E;return l|0}function Re(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;return ih(a,b,c,1,0,d,e)|0}function Se(b){b=b|0;var d=0,e=0,f=0;e=i;i=i+16|0;if((i|0)>=(j|0))fa();d=e;do if(b){f=c[(b&p)+76>>2]|0;if(!((f|0)==1266094736|(f|0)==-1607883113|(f|0)==-264537850)){c[(d&p)>>2]=15248;bd(21,15256,d);c[(d&p)>>2]=129635;c[(d&p)+4>>2]=10788;bd(21,13648,d);d=16120;break}if(!(a[(b&n)+65>>0]|0)){d=Sg(c[(b&p)+236>>2]|0,1)|0;if(!d){d=c[(b&p)+52>>2]|0;if((d|0)!=516){d=d&255;if(d>>>0>26|(d|0)==2)d=16328;else d=c[(d<<2&p)+15488>>2]|0}else d=16344}}else d=15776}else d=15776;while(0);i=e;return d|0}function Te(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,o=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0;w=i;i=i+16|0;if((i|0)>=(j|0))fa();u=w;v=w+8|0;t=c[(b&p)>>2]|0;c[(v&p)>>2]=0;m=(d|0)==0;if(m)g=0;else{l=d;while(1)if(!(a[(l&n)>>0]|0))break;else l=l+1|0;g=l-d&1073741823}r=g+300|0;q=(f|0)!=0;if(q)c[(f&p)>>2]=0;do if(!(c[(b&p)+24>>2]&4194304))if(q){c[(f&p)>>2]=_c(25216,u)|0;g=1}else g=1;else{o=(e|0)!=0?e:41192;k=t+40|0;l=rc[c[(k&p)>>2]&127](t,d)|0;if(!l){c[(u&p)>>2]=d;c[(u&p)+4>>2]=41184;h=_c(27824,u)|0;if(!h){g=7;break}l=rc[c[(k&p)>>2]&127](t,h)|0;Wc(h);if(!l){if(!q){g=1;break}l=Tc(r)|0;c[(v&p)>>2]=l;c[(f&p)>>2]=l;if(!l){g=1;break}c[(u&p)>>2]=d;ad(r,l,41216,u)|0;mc[c[(t&p)+44>>2]&63](t,g+299|0,l);g=1;break}else s=l}else s=l;g=t+48|0;l=ac[c[(g&p)>>2]&63](t,s,o)|0;if((l|0)==0&(e|0)==0){if(m)l=0;else{l=d;while(1)if(!(a[(l&n)>>0]|0))break;else l=l+1|0;l=l-d&1073741823}e=Tc(l+30|0)|0;if(!e){jc[c[(t&p)+52>>2]&15](t,s);g=7;break}o=e;m=o;a[(m&n)>>0]=115;a[(m&n)+1>>0]=113;a[(m&n)+2>>0]=108;a[(m&n)+3>>0]=105;o=o+4|0;a[(o&n)>>0]=116;a[(o&n)+1>>0]=101;a[(o&n)+2>>0]=51;a[(o&n)+3>>0]=95;while(1){k=l+-1|0;if((l|0)<=0)break;if((a[(d+k&n)>>0]|0)==47)break;else l=k}h=(Fc(d+l|0,41256,3)|0)==0;k=8;h=h?l+3|0:l;while(1){l=a[(d+h&n)>>0]|0;if(l<<24>>24==0|l<<24>>24==46){l=k;break}if(!(a[(l&255&n)+10368>>0]&2))l=k;else{a[(e+k&n)>>0]=a[(l<<24>>24&n)+9328>>0]|0;l=k+1|0}k=l;h=h+1|0}l=e+l|0;a[(l&n)>>0]=a[41264]|0;a[(l&n)+1>>0]=a[41265]|0;a[(l&n)+2>>0]=a[41266]|0;a[(l&n)+3>>0]=a[41267]|0;a[(l&n)+4>>0]=a[41268]|0;a[(l&n)+5>>0]=a[41269]|0;l=ac[c[(g&p)>>2]&63](t,s,e)|0;g=e;h=e}else{g=0;h=o}if(!l){if(q){if(!h)l=0;else{l=h;while(1)if(!(a[(l&n)>>0]|0))break;else l=l+1|0;l=l-h&1073741823}l=l+r|0;k=Tc(l)|0;c[(v&p)>>2]=k;c[(f&p)>>2]=k;if(k){c[(u&p)>>2]=h;c[(u&p)+4>>2]=d;ad(l,k,41272,u)|0;mc[c[(t&p)+44>>2]&63](t,l+-1|0,k)}}jc[c[(t&p)+52>>2]&15](t,s);Wc(g);g=1;break}Wc(g);if(ac[l&63](b,v,13776)|0){if(q){c[(u&p)>>2]=c[(v&p)>>2];c[(f&p)>>2]=_c(41320,u)|0}Wc(c[(v&p)>>2]|0);jc[c[(t&p)+52>>2]&15](t,s);g=1;break}k=b+168|0;g=(c[(k&p)>>2]<<2)+4|0;l=mh(b,g,0)|0;if(!l)g=7;else{fw(l|0,0,g|0)|0;g=c[(k&p)>>2]|0;h=b+172|0;if((g|0)>0)kw(l|0,c[(h&p)>>2]|0,g<<2|0)|0;mg(b,c[(h&p)>>2]|0);c[(h&p)>>2]=l;g=c[(k&p)>>2]|0;c[(k&p)>>2]=g+1;c[(l+(g<<2)&p)>>2]=s;g=0}}while(0);s=Og(b,g)|0;i=w;return s|0}function Ue(a){a=a|0;var b=0,d=0,e=0,f=0;b=Lc()|0;if(!b){f=c[2656]|0;a:do if((f|0)>0){d=c[2658]|0;e=0;while(1){b=e+1|0;if((c[(d+(e<<2)&p)>>2]|0)==(a|0)){b=e;break a}if((b|0)<(f|0))e=b;else break}}else b=0;while(0);if((b|0)==(f|0)){b=Xc(c[2658]|0,(f<<2)+4|0)|0;if(!b)b=7;else{c[2658]=b;d=c[2656]|0;c[(b+(d<<2)&p)>>2]=a;c[2656]=d+1;b=0}}else b=0}return b|0}function Ve(a){a=a|0;var b=0,d=0,e=0,f=0,g=0;e=c[2656]|0;f=c[2658]|0;d=e;while(1){if((d|0)<=0){b=0;break}d=d+-1|0;b=f+(d<<2)|0;if((c[(b&p)>>2]|0)==(a|0)){g=4;break}}if((g|0)==4){d=e+-1|0;c[2656]=d;c[(b&p)>>2]=c[(f+(d<<2)&p)>>2];b=1}return b|0}function We(){if(!(Lc()|0)){Wc(c[2658]|0);c[2658]=0;c[2656]=0}return}function Xe(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;return ih(a,b,c,0,0,d,e)|0}function Ye(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;return Ih(a,b,c,0,d,e)|0}function Ze(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;return Ih(a,b,c,1,d,e)|0}function _e(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,k=0,l=0,m=0,n=0,o=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0;w=i;i=i+32|0;if((i|0)>=(j|0))fa();n=w;r=w+4|0;c[(d&p)>>2]=0;s=(f|0)!=0;if(s)c[(f&p)>>2]=0;t=(e|0)!=0;if(t)c[(e&p)>>2]=0;l=(g|0)!=0;if(l)c[(g&p)>>2]=0;m=r+4|0;c[(m&p)>>2]=0;u=r+12|0;c[(u&p)>>2]=0;v=r+16|0;c[(v&p)>>2]=0;k=r+20|0;c[(k&p)>>2]=1;o=r+8|0;c[(o&p)>>2]=20;q=r+24|0;c[(q&p)>>2]=0;h=Tc(80)|0;c[(r&p)>>2]=h;a:do if(h){c[(h&p)>>2]=0;b=Qe(a,b,20,r,g)|0;c[(c[(r&p)>>2]&p)>>2]=c[(k&p)>>2];if((b&255|0)==4){$e((c[(r&p)>>2]|0)+4|0);b=c[(m&p)>>2]|0;if(b){if(l){Wc(c[(g&p)>>2]|0);c[(n&p)>>2]=c[(m&p)>>2];c[(g&p)>>2]=_c(10344,n)|0;b=c[(m&p)>>2]|0}Wc(b)}b=c[(q&p)>>2]|0;c[(a&p)+52>>2]=b;break}Wc(c[(m&p)>>2]|0);if(b){$e((c[(r&p)>>2]|0)+4|0);break}h=c[(k&p)>>2]|0;b=c[(r&p)>>2]|0;do if((c[(o&p)>>2]|0)>>>0>h>>>0){b=Xc(b,h<<2)|0;if(!b){$e((c[(r&p)>>2]|0)+4|0);c[(a&p)+52>>2]=7;b=7;break a}else{c[(r&p)>>2]=b;break}}while(0);c[(d&p)>>2]=b+4;if(s)c[(f&p)>>2]=c[(v&p)>>2];if(t){c[(e&p)>>2]=c[(u&p)>>2];b=0}else b=0}else{c[(a&p)+52>>2]=7;b=7}while(0);i=w;return b|0}function $e(a){a=a|0;var b=0,d=0,e=0,f=0;if(a){b=a+-4|0;e=c[(b&p)>>2]|0;d=e;if((e|0)>1){f=1;do{e=c[(a+(f+-1<<2)&p)>>2]|0;if(e)Wc(e);f=f+1|0}while((f|0)<(d|0))}Wc(b)}return}function af(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return Kh(a,b,c,d,0)|0}function bf(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;return Kh(a,b,c,d,e)|0}function cf(d,e){d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,q=0,r=0,s=0;s=i;i=i+16|0;if((i|0)>=(j|0))fa();r=s;g=s+8|0;c[(g&p)>>2]=0;h=d+324|0;f=c[(h&p)>>2]|0;if((f|0)!=0?(m=c[(f&p)+4>>2]|0,(m|0)!=0):0){q=mh(d,536,0)|0;if(!q)e=7;else{fw(q|0,0,536)|0;k=q+451|0;a[(k&n)>>0]=1;c[(q&p)>>2]=d;c[(q&p)+424>>2]=1;if(((((Lh(q,e,g)|0)==0?(l=c[(q&p)+484>>2]|0,(l|0)!=0):0)?(a[(d&n)+65>>0]|0)==0:0)?(c[(l&p)+12>>2]|0)==0:0)?(a[(l&n)+44>>0]&16)==0:0){f=m+4|0;if(!(c[(f&p)>>2]|0)){r=l+4|0;c[(f&p)>>2]=c[(r&p)>>2];l=l+38|0;b[(m&o)+38>>1]=b[(l&o)>>1]|0;b[(l&o)>>1]=0;c[(r&p)>>2]=0}c[((c[(h&p)>>2]|0)&p)+4>>2]=0;e=0}else{e=c[(g&p)>>2]|0;c[(r&p)>>2]=e;ug(d,1,(e|0)!=0?10344:0,r);mg(d,e);e=1}a[(k&n)>>0]=0;f=c[(q&p)+8>>2]|0;if(f)Ng(f)|0;kg(d,c[(q&p)+484>>2]|0);Ch(q);mg(d,q)}e=Og(d,e)|0}else{c[(d&p)+52>>2]=21;f=c[(d&p)+236>>2]|0;do if(f){e=f+8|0;if(!(b[(e&o)>>1]&9312)){b[(e&o)>>1]=1;break}else{vg(f);break}}while(0);c[(r&p)>>2]=114865;c[(r&p)+4>>2]=10788;bd(21,13648,r);e=21}i=s;return e|0}function df(a){a=a|0;return d[((d[(a&n)+69>>0]|0)+-1&n)+10640>>0]|0|0}function ef(d,e,f){d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0;l=i;i=i+32|0;if((i|0)>=(j|0))fa();h=l;g=l+8|0;c[(g&p)>>2]=f;do if((e|0)==1){e=c[(d&p)+324>>2]|0;if(!e){c[(h&p)>>2]=115248;c[(h&p)+4>>2]=10788;bd(21,13648,h);k=6;break}else{d=c[(g&p)>>2]|0;f=c[(d&p)>>2]|0;c[(g&p)>>2]=d+4;a[((c[(e&p)>>2]|0)&n)+16>>0]=f;e=0;break}}else{c[(h&p)>>2]=115256;c[(h&p)+4>>2]=10788;bd(21,13648,h);k=6}while(0);do if((k|0)==6){c[(d&p)+52>>2]=21;e=c[(d&p)+236>>2]|0;if(e){f=e+8|0;if(!(b[(f&o)>>1]&9312)){b[(f&o)>>1]=1;e=21;break}else{vg(e);e=21;break}}else e=21}while(0);i=l;return e|0}function ff(b){b=b|0;var c=0,e=0,f=0,g=0,h=0;c=a[(b&n)>>0]|0;a:do if(c<<24>>24){g=c;c=0;b:while(1){f=g<<24>>24;switch(f|0){case 45:{if((a[(b&n)+1>>0]|0)==45){e=g;while(1){f=e<<24>>24==0;g=b+1|0;if(!(e<<24>>24!=10&(f^1)))break;b=g;e=a[(g&n)>>0]|0}if(f){h=13;break b}else e=1}else e=2;break}case 59:{e=0;break}case 91:{do{b=b+1|0;f=a[(b&n)>>0]|0;e=f<<24>>24==0}while(f<<24>>24!=93&(e^1));if(e){c=0;break a}else e=2;break}case 39:case 34:case 96:{do{b=b+1|0;f=a[(b&n)>>0]|0;e=f<<24>>24==0}while(f<<24>>24!=g<<24>>24&(e^1));if(e){c=0;break a}else e=2;break}case 47:{if((a[(b&n)+1>>0]|0)==42){b=b+2|0;while(1){e=a[(b&n)>>0]|0;if(e<<24>>24==42){b=b+1|0;if((a[(b&n)>>0]|0)==47){e=1;break}else continue}else if(!(e<<24>>24)){c=0;break a}else{b=b+1|0;continue}}}else e=2;break}case 12:case 10:case 9:case 13:case 32:{e=1;break}default:if(!(a[(g&255&n)+10368>>0]&70))e=2;else{e=1;while(1)if(!(a[((d[(b+e&n)>>0]|0)&n)+10368>>0]&70)){g=e;break}else e=e+1|0;c:do switch(f|0){case 67:case 99:{if((g|0)==6?(Fc(b,10712,6)|0)==0:0){e=4;break c}e=2;break}case 69:case 101:{if((g|0)==3){if(!(Fc(b,10752,3)|0)){e=7;break c}}else if((g|0)==7?(Fc(b,10760,7)|0)==0:0){e=3;break c}e=2;break}case 84:case 116:{if((g|0)==7){if(!(Fc(b,10720,7)|0)){e=6;break c}}else if((g|0)==4){if(!(Fc(b,10728,4)|0)){e=5;break c}}else if((g|0)==9?(Fc(b,10736,9)|0)==0:0){e=5;break c}e=2;break}default:e=2}while(0);b=b+(g+-1)|0}}c=a[((e&255)+((c&255)<<3)&n)+10648>>0]|0;b=b+1|0;g=a[(b&n)>>0]|0;if(!(g<<24>>24)){h=35;break}}if((h|0)==13){c=c<<24>>24==1&1;break}else if((h|0)==35){c=c<<24>>24==1;h=36;break}}else{c=0;h=36}while(0);if((h|0)==36)c=c&1;return c|0}function gf(d){d=d|0;var e=0,f=0,g=0;e=Lc()|0;if(!e){f=qg(40,0)|0;if(f){e=f+0|0;g=e+40|0;do{a[(e&n)>>0]=0;e=e+1|0}while((e|0)<(g|0));b[(f&o)+8>>1]=1;c[(f&p)+32>>2]=0;Xg(f,d,-1,2,0)|0}e=Sg(f,1)|0;if(!e)e=7;else e=(ff(e)|0)&255;Mh(f)}return e|0}function hf(){return 8632}function jf(){return 10768}function kf(){return 3008009}function lf(){return 0}function mf(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;f=i;i=i+32|0;if((i|0)>=(j|0))fa();d=f;e=f+8|0;if(!(c[2243]|0)){c[(e&p)>>2]=b;do switch(a|0){case 22:{c[(e&p)>>2]=(c[(e&p)>>2]|0)+8;c[(e&p)>>2]=(c[(e&p)>>2]|0)+8;c[2230]=0;c[2231]=0;c[2232]=0;c[2233]=0;d=0;break}case 25:{a=c[(e&p)>>2]|0;d=c[(a&p)>>2]|0;c[(e&p)>>2]=a+4;c[2242]=d;d=0;break}case 19:{if(!(c[2214]|0)){c[(d&p)>>2]=16440;mf(18,d)|0}a=c[(e&p)>>2]|0;d=c[(a&p)>>2]|0;c[(e&p)>>2]=a+4;d=d+0|0;a=8848|0;e=d+52|0;do{c[(d&p)>>2]=c[(a&p)>>2];d=d+4|0;a=a+4|0}while((d|0)<(e|0));d=0;break}case 18:{d=c[(e&p)>>2]|0;a=c[(d&p)>>2]|0;c[(e&p)>>2]=d+4;d=8848|0;a=a+0|0;e=d+52|0;do{c[(d&p)>>2]=c[(a&p)>>2];d=d+4|0;a=a+4|0}while((d|0)<(e|0));d=0;break}case 20:{a=c[(e&p)>>2]|0;d=c[(a&p)>>2]|0;c[(e&p)>>2]=a+4;c[2190]=d;d=0;break}case 13:{d=c[(e&p)>>2]|0;a=c[(d&p)>>2]|0;c[(e&p)>>2]=d+4;c[2193]=a;a=c[(e&p)>>2]|0;d=c[(a&p)>>2]|0;c[(e&p)>>2]=a+4;c[2194]=d;d=0;break}case 17:{a=c[(e&p)>>2]|0;d=c[(a&p)>>2]|0;c[(e&p)>>2]=a+4;c[2189]=d;d=0;break}case 15:{d=1;break}case 6:{a=c[(e&p)>>2]|0;d=c[(a&p)>>2]|0;c[(e&p)>>2]=a+4;c[2234]=d;d=c[(e&p)>>2]|0;a=c[(d&p)>>2]|0;c[(e&p)>>2]=d+4;c[2235]=a;a=c[(e&p)>>2]|0;d=c[(a&p)>>2]|0;c[(e&p)>>2]=a+4;c[2236]=d;d=0;break}case 24:{a=c[(e&p)>>2]|0;d=c[(a&p)>>2]|0;c[(e&p)>>2]=a+4;c[(d&p)>>2]=152;d=0;break}case 9:{a=c[(e&p)>>2]|0;d=c[(a&p)>>2]|0;c[(e&p)>>2]=a+4;c[2186]=d;d=0;break}case 7:{a=c[(e&p)>>2]|0;d=c[(a&p)>>2]|0;c[(e&p)>>2]=a+4;c[2237]=d;d=c[(e&p)>>2]|0;a=c[(d&p)>>2]|0;c[(e&p)>>2]=d+4;c[2238]=a;a=c[(e&p)>>2]|0;d=c[(a&p)>>2]|0;c[(e&p)>>2]=a+4;c[2239]=d;d=0;break}case 4:{a=c[(e&p)>>2]|0;d=c[(a&p)>>2]|0;c[(e&p)>>2]=a+4;c[2195]=c[(d&p)>>2];c[2196]=c[(d&p)+4>>2];c[2197]=c[(d&p)+8>>2];c[2198]=c[(d&p)+12>>2];c[2199]=c[(d&p)+16>>2];c[2200]=c[(d&p)+20>>2];c[2201]=c[(d&p)+24>>2];c[2202]=c[(d&p)+28>>2];d=0;break}case 16:{d=c[(e&p)>>2]|0;a=c[(d&p)>>2]|0;c[(e&p)>>2]=d+4;c[2250]=a;a=c[(e&p)>>2]|0;d=c[(a&p)>>2]|0;c[(e&p)>>2]=a+4;c[2251]=d;d=0;break}case 5:{if(!(c[2195]|0)){c[(d&p)>>2]=16496;mf(4,d)|0}a=c[(e&p)>>2]|0;d=c[(a&p)>>2]|0;c[(e&p)>>2]=a+4;c[(d&p)>>2]=c[2195];c[(d&p)+4>>2]=c[2196];c[(d&p)+8>>2]=c[2197];c[(d&p)+12>>2]=c[2198];c[(d&p)+16>>2]=c[2199];c[(d&p)+20>>2]=c[2200];c[(d&p)+24>>2]=c[2201];c[(d&p)+28>>2]=c[2202];d=0;break}case 14:{d=0;break}default:d=1}while(0)}else{c[(d&p)>>2]=127883;c[(d&p)+4>>2]=10788;bd(21,13648,d);d=21}i=f;return d|0}function nf(a){a=a|0;return c[(a&p)+12>>2]|0}function of(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0;h=a+20|0;b=c[(h&p)>>2]|0;f=(b|0)>0;if(f){e=c[(a&p)+16>>2]|0;g=0;do{d=c[(e+(g<<4)&p)+4>>2]|0;if(d)c[((c[(d&p)+4>>2]|0)&p)+4>>2]=c[(d&p)>>2];g=g+1|0}while((g|0)!=(b|0));if(f){f=a+16|0;e=0;do{d=c[((c[(f&p)>>2]|0)+(e<<4)&p)+4>>2]|0;if(d){cc[c[8896>>2]&31](c[((c[((c[(c[(d&p)+4>>2]&p)>>2]|0)&p)+204>>2]|0)&p)+40>>2]|0);b=c[(h&p)>>2]|0}e=e+1|0}while((e|0)<(b|0))}}return 0}function pf(a,d,e){a=a|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0;l=i;i=i+16|0;if((i|0)>=(j|0))fa();h=l;c[(h&p)>>2]=e;a:do if((d|0)!=1001){e=0;while(1){if((c[(e<<3&p)+10936>>2]|0)==(d|0))break;e=e+1|0;if(e>>>0>=2){f=1;break a}}g=c[(h&p)>>2]|0;d=c[(g&p)>>2]|0;c[(h&p)>>2]=g+4;g=c[(h&p)>>2]|0;k=c[(g&p)>>2]|0;c[(h&p)>>2]=g+4;h=a+24|0;g=c[(h&p)>>2]|0;if((d|0)<=0)if(!d){d=g&~c[(e<<3&p)+10940>>2];c[(h&p)>>2]=d}else d=g;else{d=c[(e<<3&p)+10940>>2]|g;c[(h&p)>>2]=d}if((g|0)!=(d|0)?(f=c[(a&p)+4>>2]|0,(f|0)!=0):0)do{d=f+88|0;b[(d&o)>>1]=b[(d&o)>>1]|8;f=c[(f&p)+52>>2]|0}while((f|0)!=0);if(!k)f=0;else{c[(k&p)>>2]=(c[(e<<3&p)+10940>>2]&c[(h&p)>>2]|0)!=0&1;f=0}}else{g=c[(h&p)>>2]|0;d=c[(g&p)>>2]|0;c[(h&p)>>2]=g+4;g=c[(h&p)>>2]|0;e=c[(g&p)>>2]|0;c[(h&p)>>2]=g+4;g=c[(h&p)>>2]|0;f=c[(g&p)>>2]|0;c[(h&p)>>2]=g+4;f=Nh(a,d,e,f)|0}while(0);i=l;return f|0}function qf(a){a=a|0;a=a+32|0;G=c[(a&p)+4>>2]|0;return c[(a&p)>>2]|0}function rf(a){a=a|0;return c[(a&p)+80>>2]|0}function sf(a){a=a|0;return c[(a&p)+84>>2]|0}function tf(a){a=a|0;return Oh(a,0)|0}function uf(a){a=a|0;return Oh(a,1)|0}function vf(a,b,d){a=a|0;b=b|0;d=d|0;c[(a&p)+444>>2]=b;c[(a&p)+448>>2]=d;c[(a&p)+452>>2]=0;c[(a&p)+492>>2]=0;return 0}function wf(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0;f=(b|0)>0;c[(a&p)+292>>2]=f?d:0;c[(a&p)+300>>2]=f?b:0;c[(a&p)+296>>2]=f?e:0;return}function xf(a,b){a=a|0;b=b|0;var d=0;d=(b|0)>0;c[(a&p)+444>>2]=d?74:0;c[(a&p)+448>>2]=d?a:0;c[(a&p)+452>>2]=0;c[(a&p)+492>>2]=d?b:0;return 0}function yf(a){a=a|0;c[(a&p)+240>>2]=1;return}function zf(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 Og(a,Qh(a,b,c,d,e,f,g,h,0)|0)|0}function Af(b,d,e,f,g,h,i,j,k){b=b|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;var l=0,m=0,o=0;do if(k){l=mh(b,12,0)|0;if(!l){cc[k&31](g);f=1;break}m=l;o=m;a[(o&n)>>0]=0;a[(o&n)+1>>0]=0;a[(o&n)+2>>0]=0;a[(o&n)+3>>0]=0;m=m+4|0;a[(m&n)>>0]=0;a[(m&n)+1>>0]=0;a[(m&n)+2>>0]=0;a[(m&n)+3>>0]=0;c[(l&p)+4>>2]=k;c[(l&p)+8>>2]=g;f=Qh(b,d,e,f,g,h,i,j,l)|0;if(!(c[(l&p)>>2]|0)){cc[k&31](g);mg(b,l)}}else f=Qh(b,d,e,f,g,h,i,j,0)|0;while(0);return Og(b,f)|0}function Bf(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;b=Rh(a,b,-1)|0;d=Qh(a,b,c,d,e,f,g,h,0)|0;mg(a,b);return Og(a,d)|0}function Cf(b,c,d){b=b|0;c=c|0;d=d|0;var e=0;if(!c)e=0;else{e=c;while(1)if(!(a[(e&n)>>0]|0))break;else e=e+1|0;e=e-c&1073741823}if(!(Sh(b,c,e,d,1,0)|0))e=Qh(b,c,d,1,0,57,0,0,0)|0;else e=0;return Og(b,e)|0}function Df(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;f=a+180|0;e=c[(f&p)>>2]|0;c[(a&p)+176>>2]=b;c[(f&p)>>2]=d;return e|0}function Ef(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;f=a+188|0;e=c[(f&p)>>2]|0;c[(a&p)+184>>2]=b;c[(f&p)>>2]=d;return e|0}function Ff(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;f=a+192|0;e=c[(f&p)>>2]|0;c[(a&p)+196>>2]=b;c[(f&p)>>2]=d;return e|0}function Gf(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;f=a+208|0;e=c[(f&p)>>2]|0;c[(a&p)+212>>2]=b;c[(f&p)>>2]=d;return e|0}function Hf(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;f=a+200|0;e=c[(f&p)>>2]|0;c[(a&p)+204>>2]=b;c[(f&p)>>2]=d;return e|0}function If(a,b){a=a|0;b=b|0;var d=0;if((b|0)>0)d=21;else{b=0;d=0}c[(a&p)+216>>2]=d;c[(a&p)+220>>2]=b;return 0}function Jf(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;f=a+220|0;e=c[(f&p)>>2]|0;c[(a&p)+216>>2]=b;c[(f&p)>>2]=d;return e|0}function Kf(d,e,f,g,h){d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var k=0,l=0,m=0,q=0;q=i;i=i+16|0;if((i|0)>=(j|0))fa();k=q;if(g)c[(g&p)>>2]=-1;if(h)c[(h&p)>>2]=-1;if(f>>>0>3)e=21;else{if((e|0)!=0?(a[(e&n)>>0]|0)!=0:0){l=Vh(d,e)|0;if((l|0)<0){c[(k&p)>>2]=e;ug(d,1,10952,k);e=1}else m=10}else{l=10;m=10}do if((m|0)==10){c[(d&p)+452>>2]=0;e=Wh(d,l,f,g,h)|0;c[(d&p)+52>>2]=e;k=c[(d&p)+236>>2]|0;if(k){l=k+8|0;if(!(b[(l&o)>>1]&9312)){b[(l&o)>>1]=1;break}else{vg(k);break}}}while(0);e=Og(d,e)|0}i=q;return e|0}function Lf(a,b){a=a|0;b=b|0;return Kf(a,b,0,0,0)|0}function Mf(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,k=0;k=i;i=i+16|0;if((i|0)>=(j|0))fa();g=k;do if(b){d=c[(b&p)+76>>2]|0;if(!((d|0)==1266094736|(d|0)==-1607883113|(d|0)==-264537850)){c[(g&p)>>2]=15248;bd(21,15256,g);d=11008;break}h=b+65|0;if(!(a[(h&n)>>0]|0)){f=b+236|0;d=Sg(c[(f&p)>>2]|0,2)|0;if(!d){e=c[(b&p)+52>>2]|0;if((e|0)!=516){d=e&255;if(d>>>0>26|(d|0)==2)d=16328;else d=c[(d<<2&p)+15488>>2]|0}else d=16344;ug(b,e,d,g);d=Sg(c[(f&p)>>2]|0,2)|0}a[(h&n)>>0]=0}else d=10976}else d=10976;while(0);i=k;return d|0}function Nf(b){b=b|0;var d=0,e=0,f=0;e=i;i=i+16|0;if((i|0)>=(j|0))fa();d=e;do if(b){f=c[(b&p)+76>>2]|0;if(!((f|0)==1266094736|(f|0)==-1607883113|(f|0)==-264537850)){c[(d&p)>>2]=15248;bd(21,15256,d);c[(d&p)>>2]=129704;c[(d&p)+4>>2]=10788;bd(21,13648,d);b=21;break}if(!(a[(b&n)+65>>0]|0))b=c[(b&p)+56>>2]&c[(b&p)+52>>2];else b=7}else b=7;while(0);i=e;return b|0}function Of(b){b=b|0;var d=0,e=0,f=0;e=i;i=i+16|0;if((i|0)>=(j|0))fa();d=e;do if(b){f=c[(b&p)+76>>2]|0;if(!((f|0)==1266094736|(f|0)==-1607883113|(f|0)==-264537850)){c[(d&p)>>2]=15248;bd(21,15256,d);c[(d&p)>>2]=129713;c[(d&p)+4>>2]=10788;bd(21,13648,d);b=21;break}if(!(a[(b&n)+65>>0]|0))b=c[(b&p)+52>>2]|0;else b=7}else b=7;while(0);i=e;return b|0}function Pf(a){a=a|0;if((a|0)!=516){a=a&255;if(a>>>0>26|(a|0)==2)a=16328;else a=c[(a<<2&p)+15488>>2]|0}else a=16344;return a|0}function Qf(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;if(b>>>0<=11){e=a+(b<<2)+88|0;a=c[(e&p)>>2]|0;if((d|0)>-1){b=c[(b<<2&p)+11088>>2]|0;c[(e&p)>>2]=(b|0)<(d|0)?b:d}}else a=-1;return a|0}function Rf(a,b){a=a|0;b=b|0;return Xh(a,b,6,0)|0}function Sf(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return Xh(a,b,c,d)|0}function Tf(d,e){d=d|0;e=e|0;var f=0,g=0,h=0;c[(e&p)>>2]=0;f=Lc()|0;if(!f){h=qg(40,0)|0;if(h){d=(d|0)==0?11136:d;f=h+0|0;g=f+40|0;do{a[(f&n)>>0]=0;f=f+1|0}while((f|0)<(g|0));b[(h&o)+8>>1]=1;c[(h&p)+32>>2]=0;Xg(h,d,-1,2,0)|0}d=Sg(h,1)|0;if(d){f=Xh(d,e,6,0)|0;if(!f){f=c[(e&p)>>2]|0;d=c[((c[(f&p)+16>>2]|0)&p)+12>>2]|0;if(!(b[(d&o)+78>>1]&1)){a[(f&n)+62>>0]=2;a[(d&n)+77>>0]=2;f=0}else f=0}}else f=7;Mh(h);f=f&255}return f|0}function Uf(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;return Og(a,Yh(a,b,c&255,d,e,0)|0)|0}function Vf(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 Og(a,Yh(a,b,c&255,d,e,f)|0)|0}function Wf(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;b=Rh(a,b,-1)|0;if(!b)b=0;else{c=Yh(a,b,c&255,d,e,0)|0;mg(a,b);b=c}return Og(a,b)|0}function Xf(a,b,d){a=a|0;b=b|0;d=d|0;c[(a&p)+224>>2]=d;c[(a&p)+228>>2]=0;c[(a&p)+232>>2]=b;return 0}function Yf(a,b,d){a=a|0;b=b|0;d=d|0;c[(a&p)+224>>2]=0;c[(a&p)+228>>2]=d;c[(a&p)+232>>2]=b;return 0}function Zf(a){a=a|0;return d[(a&n)+63>>0]|0|0}function _f(){return}function $f(d,e,f,g,h,k,l,m,q){d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;m=m|0;q=q|0;var r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0;C=i;i=i+16|0;if((i|0)>=(j|0))fa();A=C;B=C+8|0;c[(B&p)>>2]=0;s=c[(d&p)+20>>2]|0;if((s|0)>0){r=c[(d&p)+16>>2]|0;u=0;do{t=c[(r+(u<<4)&p)+4>>2]|0;if(t)c[((c[(t&p)+4>>2]|0)&p)+4>>2]=c[(t&p)>>2];u=u+1|0}while((u|0)!=(s|0))}r=Zh(d,B)|0;z=(r|0)!=0;a:do if((!z?(x=_h(d,f,e)|0,(x|0)!=0):0)?(c[(x&p)+12>>2]|0)==0:0){do if(g){w=b[(x&o)+38>>1]|0;b:do if(w<<16>>16>0){e=c[(x&p)+4>>2]|0;s=w<<16>>16;v=0;while(1){t=e+(v*24|0)|0;u=v+1|0;if(!(dd(c[(t&p)>>2]|0,g)|0)){u=v;break b}if((u|0)<(s|0))v=u;else break}}else{u=0;t=0}while(0);if((u|0)==(w<<16>>16|0)){if(a[(x&n)+44>>0]&32){e=0;w=0;x=0;t=0;v=0;u=0;break a}if(!($h(g)|0)){e=0;w=0;x=0;t=0;v=0;u=0;break a}y=b[(x&o)+36>>1]|0;s=y<<16>>16;if(y<<16>>16<=-1){e=0;v=0;s=1;y=0;u=11144;break}u=s;t=(c[(x&p)+4>>2]|0)+(s*24|0)|0}if(t){if((b[(x&o)+36>>1]|0)==(u|0))s=(a[(x&n)+44>>0]&8)!=0;else s=0;e=s&1;v=(a[(t&n)+20>>0]|0)!=0&1;s=a[(t&n)+23>>0]&1;y=c[(t&p)+16>>2]|0;u=c[(t&p)+12>>2]|0}else{e=0;v=0;s=1;y=0;u=11144}}else{e=0;v=0;s=1;y=0;u=11144}while(0);w=v;t=s;v=(y|0)==0?11152:y}else{e=0;w=0;x=0;t=0;v=0;u=0}while(0);if(h)c[(h&p)>>2]=u;if(k)c[(k&p)>>2]=v;if(l)c[(l&p)>>2]=w;if(m)c[(m&p)>>2]=t;if(q)c[(q&p)>>2]=e;s=c[(B&p)>>2]|0;if(!(z|(x|0)!=0)){mg(d,s);c[(A&p)>>2]=f;c[(A&p)+4>>2]=g;s=uh(d,11160,A)|0;c[(B&p)>>2]=s;r=1}c[(A&p)>>2]=s;ug(d,r,(s|0)!=0?10344:0,A);mg(d,c[(B&p)>>2]|0);z=Og(d,r)|0;i=C;return z|0}function ag(a){a=a|0;var b=0;if((Lc()|0)==0?(b=c[2254]|0,(b|0)!=0):0)a=(rc[c[(b&p)+60>>2]&127](b,a*1e3|0)|0)/1e3|0;else a=0;return a|0}function bg(a,b){a=a|0;b=b|0;c[(a&p)+56>>2]=(b|0)!=0?-1:255;return 0}function cg(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;b=ai(a,b)|0;do if(b){a=c[(b&p)+4>>2]|0;c[(a&p)+4>>2]=c[(b&p)>>2];a=c[((c[(a&p)>>2]|0)&p)+60>>2]|0;if((d|0)==7){c[(e&p)>>2]=a;b=0;break}b=c[(a&p)>>2]|0;if(!b)b=12;else b=ac[c[(b&p)+40>>2]&63](a,d,e)|0}else b=1;while(0);return b|0}function dg(e,f){e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0,v=0;t=i;i=i+32|0;if((i|0)>=(j|0))fa();s=t+24|0;h=t+8|0;g=t;c[(h&p)>>2]=f;do switch(e|0){case 11:{g=c[2514]|0;s=c[(h&p)>>2]|0;f=c[(s&p)>>2]|0;c[(h&p)>>2]=s+4;if(f)c[2514]=f;break}case 12:{c[(g&p)>>2]=0;g=c[(g&p)>>2]|0;break}case 13:{s=c[(h&p)>>2]|0;g=c[(s&p)>>2]|0;c[(h&p)>>2]=s+4;break}case 22:{g=10;break}case 5:{kw(12672,9064,259)|0;g=0;break}case 7:{if(!(Lc()|0)){a[9064]=0;g=0}else g=0;break}case 8:{r=c[(h&p)>>2]|0;q=c[(r&p)>>2]|0;c[(h&p)>>2]=r+4;r=c[(h&p)>>2]|0;k=c[(r&p)>>2]|0;c[(h&p)>>2]=r+4;r=qg(512,0)|0;g=(r|0)==0;if(!g){fw(r|0,0,512)|0;c[(r&p)>>2]=q}e=((q+7|0)/8|0)+1|0;m=qg(e,((e|0)<0)<<31>>31)|0;f=(m|0)==0;if(!f)fw(m|0,0,e|0)|0;l=Tc(512)|0;a:do if(!(g|f|(l|0)==0)){h=0;while(1){g=c[(k+(h<<2)&p)>>2]|0;if(!g)break;else if((g|0)==5|(g|0)==2|(g|0)==1){f=k+(h+2<<2)|0;u=c[(f&p)>>2]|0;e=u+-1|0;c[(s&p)>>2]=e;c[(f&p)>>2]=(c[(k+(h+3<<2)&p)>>2]|0)+u;f=4}else{cd(4,s);e=c[(s&p)>>2]|0;f=2}v=k+((h|1)<<2)|0;u=(c[(v&p)>>2]|0)+-1|0;c[(v&p)>>2]=u;h=((u|0)>0?0:f)+h|0;e=(e&2147483647|0)%(q|0)|0;c[(s&p)>>2]=e;e=e+1|0;f=1<<(e&7);if(!(g&1)){e=m+(e>>>3)|0;a[(e&n)>>0]=d[(e&n)>>0]&(f^255);ci(r,(c[(s&p)>>2]|0)+1|0,l);continue}e=m+(e>>>3)|0;a[(e&n)>>0]=d[(e&n)>>0]|f;if((g|0)==5)continue;if(bi(r,(c[(s&p)>>2]|0)+1|0)|0){g=-1;break a}}k=di(r,q+1|0)|0;e=di(r,0)|0;e=k-q+e+(c[(r&p)>>2]|0)|0;c[(s&p)>>2]=1;if((q|0)<1)g=e;else{f=1;while(1){k=(d[(m+(f>>3)&n)>>0]&1<<(f&7)|0)!=0&1;g=f;f=f+1|0;if((k|0)!=(di(r,g)|0))break a;c[(s&p)>>2]=f;if((g|0)>=(q|0)){g=e;break}}}}else g=-1;while(0);Wc(l);Wc(m);ei(r);break}case 6:{kw(9064,12672,259)|0;g=0;break}case 23:{g=(c[2243]|0)==0&1;break}case 25:{q=c[(h&p)>>2]|0;g=c[(q&p)>>2]|0;c[(h&p)>>2]=q+4;q=c[(h&p)>>2]|0;r=c[(q&p)>>2]|0;c[(h&p)>>2]=q+4;a[(g&n)+144>>0]=Vh(g,r)|0;r=c[(h&p)>>2]|0;q=c[(r&p)>>2]|0;c[(h&p)>>2]=r+4;q=q&255;a[(g&n)+147>>0]=q;r=g+145|0;a[(r&n)>>0]=q;q=c[(h&p)>>2]|0;s=c[(q&p)>>2]|0;c[(h&p)>>2]=q+4;c[(g&p)+140>>2]=s;if((a[(r&n)>>0]|0)==0&(s|0)>0){Eg(g);g=0}else g=0;break}case 14:{r=c[(h&p)>>2]|0;s=c[(r&p)>>2]|0;c[(h&p)>>2]=r+4;r=c[(h&p)>>2]|0;g=c[(r&p)>>2]|0;c[(h&p)>>2]=r+4;xg(c[((c[(s&p)+16>>2]|0)&p)+4>>2]|0,0,g,0)|0;g=0;break}case 15:{r=c[(h&p)>>2]|0;g=c[(r&p)>>2]|0;c[(h&p)>>2]=r+4;r=c[(h&p)>>2]|0;s=c[(r&p)>>2]|0;c[(h&p)>>2]=r+4;b[(g&o)+60>>1]=s;g=0;break}case 16:{s=c[(h&p)>>2]|0;e=c[(s&p)>>2]|0;c[(h&p)>>2]=s+4;if(!e)g=0;else{g=e;while(1)if(!(a[(g&n)>>0]|0))break;else g=g+1|0;g=g-e&1073741823}g=(fi(e,g)|0)!=27;g=g?124:0;break}case 24:{r=c[(h&p)>>2]|0;g=c[(r&p)>>2]|0;c[(h&p)>>2]=r+4;r=c[(h&p)>>2]|0;s=c[(r&p)>>2]|0;c[(h&p)>>2]=r+4;c[(g&p)+136>>2]=s;g=0;break}case 17:{s=c[(h&p)>>2]|0;f=c[(s&p)>>2]|0;c[(h&p)>>2]=s+4;s=c[(h&p)>>2]|0;g=c[(s&p)>>2]|0;c[(h&p)>>2]=s+4;s=c[(h&p)>>2]|0;e=c[(s&p)>>2]|0;c[(h&p)>>2]=s+4;if(f)c[(g&p)>>2]=gi(f)|0;hi(e);g=0;break}case 18:{s=c[(h&p)>>2]|0;g=c[(s&p)>>2]|0;c[(h&p)>>2]=s+4;c[2253]=g;g=0;break}case 20:{s=c[(h&p)>>2]|0;g=c[(s&p)>>2]|0;c[(h&p)>>2]=s+4;c[2192]=g;g=0;break}case 9:{s=c[(h&p)>>2]|0;g=c[(s&p)>>2]|0;c[(h&p)>>2]=s+4;c[2252]=g;if(!g)g=0;else g=lc[g&127](0)|0;break}case 10:{r=c[(h&p)>>2]|0;s=c[(r&p)>>2]|0;c[(h&p)>>2]=r+4;r=c[(h&p)>>2]|0;g=c[(r&p)>>2]|0;c[(h&p)>>2]=r+4;c[3164]=s;c[3166]=g;g=0;break}default:g=0}while(0);i=t;return g|0}function eg(b,c){b=b|0;c=c|0;var d=0,e=0,f=0,g=0;a:do if(!((b|0)==0|(c|0)==0)){d=b;while(1)if(!(a[(d&n)>>0]|0))break;else d=d+1|0;e=(d-b&1073741823)+1|0;d=a[(b+e&n)>>0]|0;if(d<<24>>24){g=b+e|0;while(1){f=_v(g,c)|0;e=g;while(1){b=e+1|0;if(!(d<<24>>24))break;d=a[(b&n)>>0]|0;e=b}b=e-g&1073741823;d=g+(b+1)|0;if(!f)break a;else e=d;while(1)if(!(a[(e&n)>>0]|0))break;else e=e+1|0;g=g+(b+2+(e-d&1073741823))|0;d=a[(g&n)>>0]|0;if(!(d<<24>>24)){d=0;break}}}else d=0}else d=0;while(0);return d|0}function fg(a,b,c){a=a|0;b=b|0;c=c|0;a=eg(a,b)|0;b=(c|0)!=0;if(a)b=(ii(a,1,b&1)|0)<<24>>24!=0;return b&1|0}function gg(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+16|0;if((i|0)>=(j|0))fa();f=g;a=eg(a,b)|0;if(!a){G=e;i=g;return d|0}else{b=(ji(a,f)|0)==0;a=f;G=b?c[(a&p)+4>>2]|0:e;i=g;return (b?c[(a&p)>>2]|0:d)|0}return 0}function hg(b,d){b=b|0;d=d|0;b=ai(b,d)|0;if(b){b=c[(c[(b&p)+4>>2]&p)>>2]|0;if(!(a[(b&n)+15>>0]|0))b=c[(b&p)+168>>2]|0;else b=10360}else b=0;return b|0}function ig(a,d){a=a|0;d=d|0;a=ai(a,d)|0;if(!a)a=-1;else a=b[((c[(a&p)+4>>2]|0)&o)+22>>1]&1;return a|0}function jg(a,b){a=a|0;b=b|0;if(b){Fk(a,c[(b&p)+28>>2]|0);mg(a,c[(b&p)>>2]|0);mg(a,c[(b&p)+4>>2]|0);Gk(a,c[(b&p)+12>>2]|0);Hk(a,c[(b&p)+16>>2]|0);mg(a,b)}return}function kg(a,d){a=a|0;d=d|0;var e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;do if(d){h=(a|0)!=0;if(!(h?(c[(a&p)+520>>2]|0)!=0:0))e=4;if((e|0)==4?(f=d+40|0,e=(b[(f&o)>>1]|0)+-1<<16>>16,b[(f&o)>>1]=e,e<<16>>16!=0):0)break;e=c[(d&p)+8>>2]|0;if(e){g=a+520|0;do{f=e;e=c[(e&p)+20>>2]|0;if(!(h?(c[(g&p)>>2]|0)!=0:0))Ik((c[(f&p)+24>>2]|0)+24|0,c[(f&p)>>2]|0,0)|0;Jk(a,f)}while((e|0)!=0)}e=c[(d&p)+16>>2]|0;if(e){j=(a|0)==0;k=d+68|0;l=a+520|0;do{if(!(!j?(c[(l&p)>>2]|0)!=0:0)){f=e+16|0;i=c[(f&p)>>2]|0;h=e+12|0;g=c[(h&p)>>2]|0;if(!i)Ik((c[(k&p)>>2]|0)+56|0,c[(((g|0)==0?e:g)&p)+8>>2]|0,g)|0;else c[(i&p)+12>>2]=g;h=c[(h&p)>>2]|0;if(h)c[(h&p)+16>>2]=c[(f&p)>>2]}Kk(a,c[(e&p)+28>>2]|0);Kk(a,c[(e&p)+32>>2]|0);f=e;e=c[(e&p)+4>>2]|0;mg(a,f)}while((e|0)!=0)}Lk(a,d);mg(a,c[(d&p)>>2]|0);mg(a,c[(d&p)+20>>2]|0);Mk(a,c[(d&p)+12>>2]|0,1);Nk(a,c[(d&p)+24>>2]|0);if(!((a|0)!=0?(c[(a&p)+520>>2]|0)!=0:0))Ok(0,d)|0;h=d+56|0;e=c[(h&p)>>2]|0;if(e){i=d+52|0;f=c[(i&p)>>2]|0;if((f|0)>0){g=0;do{if((g|0)!=1){mg(a,c[((c[(h&p)>>2]|0)+(g<<2)&p)>>2]|0);f=c[(i&p)>>2]|0}g=g+1|0}while((g|0)<(f|0));e=c[(h&p)>>2]|0}mg(a,e)}mg(a,d)}while(0);return}function lg(a,d){a=a|0;d=d|0;var f=0,g=0,h=0;ch(c[(d&p)+60>>2]|0,b[(d&o)+68>>1]|0);h=d+16|0;ch(c[(h&p)>>2]|0,e[(d&o)+84>>1]<<1);f=c[(d&p)+192>>2]|0;if(f)do{g=f;f=c[(f&p)+24>>2]|0;Pk(a,c[(g&p)>>2]|0,c[(g&p)+4>>2]|0);mg(a,g)}while((f|0)!=0);f=b[(d&o)+70>>1]|0;if(f<<16>>16>0){g=d+64|0;f=f<<16>>16;do{f=f+-1|0;mg(a,c[((c[(g&p)>>2]|0)+(f<<2)&p)>>2]|0)}while((f|0)>0)}Pk(a,c[(d&p)+4>>2]|0,c[(d&p)+32>>2]|0);mg(a,c[(h&p)>>2]|0);mg(a,c[(d&p)+168>>2]|0);mg(a,c[(d&p)+172>>2]|0);return}function mg(a,b){a=a|0;b=b|0;var d=0;do if(b){if(a){if(c[(a&p)+520>>2]|0){Qk(a,b);break}if((c[(a&p)+276>>2]|0)>>>0<=b>>>0?(c[(a&p)+280>>2]|0)>>>0>b>>>0:0){d=a+272|0;c[(b&p)>>2]=c[(d&p)>>2];c[(d&p)>>2]=b;a=a+252|0;c[(a&p)>>2]=(c[(a&p)>>2]|0)+-1;break}}Wc(b)}while(0);return}function ng(b,e){b=b|0;e=e|0;var f=0,g=0,h=0;h=c[(e&p)+24>>2]|0;if(!h)f=0;else{f=h;while(1)if(!(a[(f&n)>>0]|0))break;else f=f+1|0;f=f-h&1073741823}g=(((d[((d[(h&n)>>0]|0)&n)+9328>>0]|0)+f|0)>>>0)%23|0;f=Rk(b,g,h,f)|0;if(!f){c[(e&p)+8>>2]=0;f=b+(g<<2)|0;c[(e&p)+28>>2]=c[(f&p)>>2];c[(f&p)>>2]=e}else{f=f+8|0;c[(e&p)+8>>2]=c[(f&p)>>2];c[(f&p)>>2]=e}return}function og(a){a=a|0;var b=0,d=0;do if(a){b=c[2254]|0;if((b|0)==(a|0)){c[2254]=c[(a&p)+12>>2];break}if(b){do{d=b+12|0;b=c[(d&p)>>2]|0}while((b|0)!=(a|0)&(b|0)!=0);if((b|0)==(a|0))c[(d&p)>>2]=c[(a&p)+12>>2]}}while(0);return}function pg(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return}function qg(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;b=jw(a|0,b|0,-1,-1)|0;d=G;do if(!(d>>>0>0|(d|0)==0&b>>>0>2147483390)){if(!(c[2186]|0)){b=lc[c[8780>>2]&127](a)|0;break}d=lc[c[8796>>2]&127](a)|0;c[2171]=a;if((c[2181]|0)>>>0>>0)c[2181]=a;a=c[2260]|0;do if(a){b=c[2166]|0;e=9032|0;e=dw(c[(e&p)>>2]|0,c[(e&p)+4>>2]|0,d|0,((d|0)<0)<<31>>31|0)|0;f=G;if(0<(f|0)|0==(f|0)&b>>>0>>0){c[2265]=0;break}else{c[2265]=1;e=c[2261]|0;c[2260]=0;qc[a&15](e,b,0,d);c[2260]=a;c[2261]=e;break}}while(0);b=lc[c[8780>>2]&127](d)|0;if(b){a=lc[c[8792>>2]&127](b)|0;a=(c[2166]|0)+a|0;c[2166]=a;if(a>>>0>(c[2176]|0)>>>0)c[2176]=a;a=(c[2175]|0)+1|0;c[2175]=a;if(a>>>0>(c[2185]|0)>>>0)c[2185]=a}else b=0}else b=0;while(0);return b|0}function rg(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,i=0,j=0;do if(a){if((b|0)==0&(d|0)==0){Wc(a);e=0;break}if(!(d>>>0>0|(d|0)==0&b>>>0>2147483391)){h=lc[c[8792>>2]&127](a)|0;g=lc[c[8796>>2]&127](b)|0;if((g|0)!=(h|0)){if(!(c[2186]|0)){e=rc[c[8788>>2]&127](a,g)|0;break}c[2171]=b;if((c[2181]|0)>>>0>>0)c[2181]=b;d=g-h|0;e=c[2166]|0;i=9032|0;i=dw(c[(i&p)>>2]|0,c[(i&p)+4>>2]|0,d|0,((d|0)<0)<<31>>31|0)|0;j=G;if(!(0<(j|0)|0==(j|0)&e>>>0>>0)?(f=c[2260]|0,(f|0)!=0):0){i=c[2261]|0;c[2260]=0;qc[f&15](i,e,0,d);c[2260]=f;c[2261]=i}e=rc[c[8788>>2]&127](a,g)|0;d=c[2260]|0;if((e|0)==0&(d|0)!=0){f=c[2166]|0;e=c[2261]|0;c[2260]=0;qc[d&15](e,f,0,b);c[2260]=d;c[2261]=e;e=rc[c[8788>>2]&127](a,g)|0}if(e){d=(lc[c[8792>>2]&127](e)|0)-h|0;d=(c[2166]|0)+d|0;c[2166]=d;if(d>>>0>(c[2176]|0)>>>0)c[2176]=d}else e=0}else e=a}else e=0}else e=qg(b,d)|0;while(0);return e|0}function sg(b,e,f,g){b=b|0;e=e|0;f=f|0;g=g|0;var l=0,m=0,o=0,r=0,s=0,t=0.0,u=0.0,v=0,w=0.0,x=0.0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=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;$=i;i=i+96|0;if((i|0)>=(j|0))fa();Z=$+8|0;_=$;Y=$+16|0;if(!e){l=0;m=0;T=0}else{l=e&2;if(!l)m=0;else{J=c[(g&p)>>2]|0;m=c[(J&p)>>2]|0;c[(g&p)>>2]=J+4}l=l&255;T=(e&1|0)!=0}S=l<<24>>24==0;P=l<<24>>24!=0;Q=m+4|0;R=m+8|0;O=b+12|0;l=0;a:while(1){e=a[(f&n)>>0]|0;if(e<<24>>24==37){e=f;f=l}else if(e<<24>>24){e=f;do{e=e+1|0;J=a[(e&n)>>0]|0}while(!(J<<24>>24==37|J<<24>>24==0));Sk(b,f,e-f|0);if(!(a[(e&n)>>0]|0))break}else break;l=e+1|0;o=a[(l&n)>>0]|0;if(!(o<<24>>24)){U=10;break}r=o<<24>>24;v=0;s=0;y=0;o=0;A=0;B=0;b:while(1){switch(r|0){case 43:{z=s;A=1;break}case 32:{z=s;y=1;break}case 35:{v=1;z=s;break}case 33:{z=1;break}case 48:{z=s;B=1;break}case 45:{z=s;o=1;break}default:{C=v;z=s;break b}}s=e+2|0;J=a[(s&n)>>0]|0;r=J<<24>>24;if(!(J<<24>>24)){l=s;C=v;break}else{e=l;l=s;s=z}}if((r|0)!=42)if((r+-48|0)>>>0<10){s=0;do{s=r+-48+(s*10|0)|0;l=l+1|0;r=a[(l&n)>>0]|0}while((r+-48|0)>>>0<10);N=o;M=s&2147483647}else{N=o;M=0}else{if(S){J=c[(g&p)>>2]|0;s=c[(J&p)>>2]|0;c[(g&p)>>2]=J+4}else s=Tk(m)|0;if((s|0)<0){o=1;s=(s|0)==-2147483648?0:0-s|0}r=l+1|0;l=r;r=a[(r&n)>>0]|0;N=o;M=s}do if((r|0)==46){s=l+1|0;o=a[(s&n)>>0]|0;if(o<<24>>24!=42){r=o<<24>>24;if((o+-48&255)<10)o=0;else{l=s;F=0;break}while(1){o=r+-48+(o*10|0)|0;l=l+2|0;J=a[(l&n)>>0]|0;r=J<<24>>24;if((J+-48&255)<10){J=s;s=l;l=J}else break}F=o&2147483647;break}if(S){J=c[(g&p)>>2]|0;s=c[(J&p)>>2]|0;c[(g&p)>>2]=J+4}else s=Tk(m)|0;l=l+2|0;r=a[(l&n)>>0]|0;if((s|0)<0)F=(s|0)==-2147483648?-1:0-s|0;else F=s}else F=-1;while(0);do if((r|0)==108){s=l+1|0;r=a[(s&n)>>0]|0;if(r<<24>>24==108){r=l+2|0;l=r;r=a[(r&n)>>0]|0;s=1;break}else{l=s;r=r<<24>>24;s=0;break}}else s=0;while(0);v=0;while(1){o=48752+(v*6|0)|0;if((r|0)==(a[(o&n)>>0]|0)){r=o;o=v;U=46;break}v=v+1|0;if((v|0)>=23){L=48752;J=0;break}}if((U|0)==46){U=0;if(!(T|o>>>0<20))break;L=r;J=a[((o*6|0)&n)+48755>>0]|0}c:do switch(J&255|0){case 13:{s=c[(g&p)>>2]|0;e=c[(s&p)>>2]|0;c[(g&p)>>2]=s+4;s=c[(g&p)>>2]|0;r=c[(s&p)>>2]|0;c[(g&p)>>2]=s+4;s=c[(e+(r*72|0)&p)+12>>2]|0;if(s){o=s;while(1)if(!(a[(o&n)>>0]|0))break;else o=o+1|0;Sk(b,s,o-s&1073741823);Sk(b,28928,1)}o=c[(e+(r*72|0)&p)+16>>2]|0;if(!o)e=0;else{e=o;while(1)if(!(a[(e&n)>>0]|0))break;else e=e+1|0;e=e-o&1073741823}Sk(b,o,e);y=f;r=0;e=0;s=0;break}case 14:{s=0;U=50;break}case 1:case 16:{U=50;break}case 4:case 3:case 2:{do if(!S){s=c[(Q&p)>>2]|0;if((c[(m&p)>>2]|0)>(s|0)){c[(Q&p)>>2]=s+1;t=+Ug(c[((c[(R&p)>>2]|0)+(s<<2)&p)>>2]|0);U=92;break}else{s=(F|0)<0?6:F;t=0.0;U=94;break}}else{U=c[(g&p)>>2]|0;c[(k&p)>>2]=c[(U&p)>>2];c[(k&p)+4>>2]=c[(U&p)+4>>2];t=+h[(k&q)>>3];c[(g&p)>>2]=U+8;U=92}while(0);if((U|0)==92){U=0;s=(F|0)<0?6:F;if(t<0.0){t=-t;K=45}else U=94}if((U|0)==94){U=0;if(!(A<<24>>24))K=y<<24>>24==0?0:32;else K=43}F=J<<24>>24==4;o=((F&(s|0)>0)<<31>>31)+s|0;s=o&4095;if(!s)u=.5;else{u=.5;do{s=s+-1|0;u=u*.1}while((s|0)>0)}E=J<<24>>24==2;if(E)t=t+u;h[(Z&q)>>3]=t;h[(_&q)>>3]=+h[(Z&q)>>3];if(+h[(Z&q)>>3]!=+h[(_&q)>>3]){y=48960;r=3;e=M;s=0}else{if(t>0.0){v=0;w=1.0;while(1){x=w*1.e+100;if(t>=x&(v|0)<351){v=v+100|0;w=x}else break}while(1){x=w*1.e+64;if(t>=x&(v|0)<351){v=v+64|0;w=x}else break}while(1){x=w*1.0e8;if(t>=x&(v|0)<351){v=v+8|0;w=x}else break}while(1){x=w*10.0;if((v|0)<351&t>=x){v=v+1|0;w=x}else break}t=t/w;if(t<1.0e-08)do{t=t*1.0e8;v=v+-8|0}while(t<1.0e-08);if(t<1.0)do{t=t*10.0;v=v+-1|0}while(t<1.0);if((v|0)>350){if(K<<24>>24==43)o=48976;else if(K<<24>>24==45)o=48968;else o=48984;f=o;while(1)if(!(a[(f&n)>>0]|0))break;else f=f+1|0;y=o;r=f-o&1073741823;e=M;s=0;break c}}else v=0;if(!E){t=u+t;if(!(t>=10.0))I=v;else{t=t*.1;I=v+1|0}}else I=v;if(F){s=(I|0)<-4|(o|0)<(I|0);F=C<<24>>24==0&1;o=o-(s?0:I)|0;s=s?3:2}else{F=z;s=J}H=s<<24>>24==3;f=H?0:I;v=(f|0)>0;s=jw(o|0,((o|0)<0)<<31>>31|0,M|0,((M|0)<0)<<31>>31|0)|0;v=jw(s|0,G|0,(v?f:0)|0,(v?((f|0)<0)<<31>>31:0)|0)|0;s=G;if((s|0)>0|(s|0)==0&v>>>0>55){v=jw(v|0,s|0,15,0)|0;v=qg(v,G)|0;if(!v){U=124;break a}else{y=v;J=v}}else{y=Y;J=0}v=((z&255)*10|0)+16|0;D=(z|C)&255|(o|0)>0;if(!(K<<24>>24))E=y;else{a[(y&n)>>0]=K;E=y+1|0}if((f|0)<0){a[(E&n)>>0]=48;e=2;s=E+1|0;A=f}else{C=~f;C=(C|0)>-1?C:-1;A=-2-C|0;C=f+C|0;r=E;while(1){if((v|0)<1)e=48;else{s=~~t;e=s+48&255;t=(t-+(s|0))*10.0;v=v+-1|0}a[(r&n)>>0]=e;if((f|0)>0){r=r+1|0;f=f+-1|0}else break}e=C+3|0;s=E+(C+2)|0}r=(D|0)==0;if(!r){a[(s&n)>>0]=46;s=E+e|0}if((A+1|0)<0){fw(s|0,48,~A|0)|0;s=s+~A|0;o=o+1+A|0}if((o|0)>0){e=s;f=o;while(1){f=f+-1|0;if((v|0)<1)A=48;else{E=~~t;A=E+48&255;t=(t-+(E|0))*10.0;v=v+-1|0}a[(e&n)>>0]=A;if((f|0)<=0)break;else e=e+1|0}s=s+o|0}d:do if(!(F<<24>>24==0|r)){while(1){r=s+-1|0;o=a[(r&n)>>0]|0;if(o<<24>>24==46)break;else if(o<<24>>24!=48)break d;a[(r&n)>>0]=0;s=r}if(!(z<<24>>24)){a[(r&n)>>0]=0;s=r;break}else{a[(s&n)>>0]=48;s=s+1|0;break}}while(0);if(H){r=s+1|0;a[(s&n)>>0]=a[((d[(L&n)+4>>0]|0)&n)+48912>>0]|0;o=s+2|0;if((I|0)<0){a[(r&n)>>0]=45;r=0-I|0}else{a[(r&n)>>0]=43;r=I}if((r|0)>99){a[(o&n)>>0]=((r|0)/100|0)+48;f=4;e=5;o=s+3|0;r=(r|0)%100|0}else{f=3;e=4}a[(o&n)>>0]=((r|0)/10|0)+48;a[(s+f&n)>>0]=((r|0)%10|0)+48;s=s+e|0}a[(s&n)>>0]=0;e=y;r=s-e|0;if(!(N<<24>>24==0&B<<24>>24!=0&(M|0)>(r|0))){e=M;s=J;break c}o=M-r|0;if((r|0)>=0){f=M;while(1){a[(y+f&n)>>0]=a[(y+(f-o)&n)>>0]|0;if((f|0)>(o|0))f=f+-1|0;else break}}if((M|0)==(r|0)){r=M;e=M;s=J;break c}fw(y+(K<<24>>24!=0&1)|0,48,M+e-s|0)|0;r=M;e=M;s=J}break}case 5:{if(S){r=c[(O&p)>>2]|0;e=c[(g&p)>>2]|0;y=c[(e&p)>>2]|0;c[(g&p)>>2]=e+4;c[(y&p)>>2]=r;y=f;r=0;e=0;s=0}else{y=f;r=0;e=0;s=0}break}case 8:{a[(Y&n)>>0]=37;y=Y;r=1;e=M;s=0;break}case 9:{if(!S){e=Uk(m)|0;if(!e)s=0;else s=a[(e&n)>>0]|0}else{J=c[(g&p)>>2]|0;s=c[(J&p)>>2]|0;c[(g&p)>>2]=J+4}if((F|0)>1){o=F+-1|0;e=M-o|0;if(!((e|0)<2|N<<24>>24!=0)){Vk(b,e+-1|0,32);e=0}f=s&255;Vk(b,o,f)}else{f=s&255;e=M}a[(Y&n)>>0]=f;y=Y;r=1;s=0;break}case 7:case 6:{if(P)o=Uk(m)|0;else{I=c[(g&p)>>2]|0;o=c[(I&p)>>2]|0;c[(g&p)>>2]=I+4}if(!o){f=10360;s=0}else{f=o;s=J<<24>>24!=7|P?0:o}if((F|0)>-1){if((F|0)>0)o=0;else{y=f;r=0;e=M;break c}while(1){r=o+1|0;if(!(a[(f+o&n)>>0]|0)){y=f;r=o;e=M;break c}if((r|0)<(F|0))o=r;else{y=f;e=M;break}}}else{if(!f){y=0;r=0;e=M;break c}else o=f;while(1)if(!(a[(o&n)>>0]|0))break;else o=o+1|0;y=f;r=o-f&1073741823;e=M;break c}break}case 15:case 11:case 10:{C=J<<24>>24==15?34:39;if(S){I=c[(g&p)>>2]|0;s=c[(I&p)>>2]|0;c[(g&p)>>2]=I+4}else s=Uk(m)|0;y=(s|0)==0;if(y)s=J<<24>>24==11?20304:48992;e:do if(!F){B=0;r=0}else{v=C&255;o=0;e=F;r=0;while(1){f=a[(s+o&n)>>0]|0;if(!(f<<24>>24)){B=o;break e}r=((f<<24>>24|0)==(v|0)&1)+r|0;o=o+1|0;e=e+-1|0;if(!e){B=o;break}}}while(0);z=J<<24>>24==11&(y^1);o=((z&1)<<1|1)+B+r|0;if((o|0)>70){r=qg(o,((o|0)<0)<<31>>31)|0;if(!r){U=197;break a}else{y=r;A=r}}else{y=Y;A=0}if(z){a[(y&n)>>0]=C;o=1}else o=0;if((B|0)>0){v=C&255;e=0;do{r=a[(s+e&n)>>0]|0;f=o+1|0;a[(y+o&n)>>0]=r;if((r<<24>>24|0)==(v|0)){a[(y+f&n)>>0]=r;o=o+2|0}else o=f;e=e+1|0}while((e|0)!=(B|0))}if(z){a[(y+o&n)>>0]=C;o=o+1|0}a[(y+o&n)>>0]=0;r=o;e=M;s=A;break}case 12:{J=c[(g&p)>>2]|0;e=c[(J&p)>>2]|0;c[(g&p)>>2]=J+4;if((e|0)!=0?(X=c[(e&p)+4>>2]|0,(X|0)!=0):0){Sk(b,c[(e&p)>>2]|0,X);y=f;r=0;e=0;s=0}else{y=f;r=0;e=0;s=0}break}default:break a}while(0);if((U|0)==50){U=0;do if(!(a[(L&n)+2>>0]&1)){if(P){f=Tk(m)|0;v=G;E=0;break}if(!(s<<24>>24)){v=c[(g&p)>>2]|0;f=c[(v&p)>>2]|0;c[(g&p)>>2]=v+4;v=0;E=0;break}else{E=c[(g&p)>>2]|0;v=E;f=c[(v&p)>>2]|0;v=c[(v&p)+4>>2]|0;c[(g&p)>>2]=E+8;E=0;break}}else{do if(!P)if(!(s<<24>>24)){r=c[(g&p)>>2]|0;s=c[(r&p)>>2]|0;c[(g&p)>>2]=r+4;r=((s|0)<0)<<31>>31;break}else{I=c[(g&p)>>2]|0;r=I;s=c[(r&p)>>2]|0;r=c[(r&p)+4>>2]|0;c[(g&p)>>2]=I+8;break}else{s=Tk(m)|0;r=G}while(0);if((r|0)<0){f=dw(0,0,s|0,r|0)|0;v=G;E=45;break}if(!(A<<24>>24)){f=s;v=r;E=y<<24>>24==0?0:32}else{f=s;v=r;E=43}}while(0);D=(f|0)==0&(v|0)==0;if(!(B<<24>>24))A=F;else{A=M-(E<<24>>24!=0&1)|0;A=(F|0)<(A|0)?A:F}if((A|0)>=60){s=A+10|0;r=qg(s,((s|0)<0)<<31>>31)|0;if(!r){U=69;break}else{e=s;s=r;o=r}}else{e=70;s=0;o=Y}B=o+(e+-1)|0;if(J<<24>>24==16){r=uw(f|0,v|0,10,0)|0;if(!(r>>>0<=3?(J=tw(f|0,v|0,10,0)|0,J=uw(J|0,G|0,10,0)|0,!((J|0)==1&(G|0)==0)):0))r=0;J=r<<1;a[(o+e+-2&n)>>0]=a[((J|1)&n)+48896>>0]|0;r=o+(e+-3)|0;a[(r&n)>>0]=a[(J&n)+48896>>0]|0}else r=B;e=d[(L&n)+4>>0]|0;y=d[(L&n)+1>>0]|0;while(1){J=uw(f|0,v|0,y|0,0)|0;o=r+-1|0;a[(o&n)>>0]=a[(J+e&n)+48912>>0]|0;f=tw(f|0,v|0,y|0,0)|0;v=G;if((f|0)==0&(v|0)==0)break;else r=o}f=A-B+o|0;if((f|0)>0){e=r;r=o;while(1){o=e+-2|0;a[(o&n)>>0]=48;f=f+-1|0;if((f|0)<=0)break;else{e=r;r=o}}}if(E<<24>>24){o=r+-2|0;a[(o&n)>>0]=E}if((!(D|C<<24>>24==0)?(V=a[(L&n)+5>>0]|0,V<<24>>24!=0):0)?(W=48952+(V&255)|0,!(V<<24>>24==3|V<<24>>24==6)):0){f=a[(W&n)>>0]|0;r=W;do{o=o+-1|0;a[(o&n)>>0]=f;r=r+1|0;f=a[(r&n)>>0]|0}while(f<<24>>24!=0)}y=o;r=B-o|0;e=M}o=e-r|0;f=(o|0)<1;if(!(f|N<<24>>24!=0))Vk(b,o,32);Sk(b,y,r);if(!(f|N<<24>>24==0))Vk(b,o,32);if(s)Wc(s);f=l+1|0;l=y}if((U|0)==10)Sk(b,48744,1);else if((U|0)==69){a[(b&n)+25>>0]=1;c[(b&p)+16>>2]=0}else if((U|0)==124){a[(b&n)+25>>0]=1;c[(b&p)+16>>2]=0}else if((U|0)==197){a[(b&n)+25>>0]=1;c[(b&p)+16>>2]=0}i=$;return}function tg(b){b=b|0;var d=0,e=0,f=0,g=0,h=0;f=b+8|0;d=c[(f&p)>>2]|0;do if(((d|0)!=0?(h=b+12|0,a[(d+(c[(h&p)>>2]|0)&n)>>0]=0,e=a[(b&n)+24>>0]|0,e<<24>>24!=0):0)?(g=b+4|0,(c[(f&p)>>2]|0)==(c[(g&p)>>2]|0)):0){if(e<<24>>24==1){d=(c[(h&p)>>2]|0)+1|0;d=mh(c[(b&p)>>2]|0,d,((d|0)<0)<<31>>31)|0}else d=Tc((c[(h&p)>>2]|0)+1|0)|0;c[(f&p)>>2]=d;if(!d){a[(b&n)+25>>0]=1;c[(b&p)+16>>2]=0;break}else{kw(d|0,c[(g&p)>>2]|0,(c[(h&p)>>2]|0)+1|0)|0;break}}while(0);return c[(f&p)>>2]|0}function ug(d,e,f,g){d=d|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,q=0;q=i;i=i+16|0;if((i|0)>=(j|0))fa();m=q;h=d+52|0;c[(h&p)>>2]=e;a:do if(!f){c[(h&p)>>2]=e;e=c[(d&p)+236>>2]|0;if(e){h=e+8|0;if(!(b[(h&o)>>1]&9312)){b[(h&o)>>1]=1;break}else{vg(e);break}}}else{l=d+236|0;do if(!(c[(l&p)>>2]|0)){h=mh(d,40,0)|0;if(!h){c[(l&p)>>2]=h;break a}else{e=h+0|0;k=e+40|0;do{a[(e&n)>>0]=0;e=e+1|0}while((e|0)<(k|0));b[(h&o)+8>>1]=1;c[(h&p)+32>>2]=d;c[(l&p)>>2]=h;break}}while(0);c[(m&p)>>2]=g;h=Wk(d,f,m)|0;e=c[(l&p)>>2]|0;if(e)Xg(e,h,-1,1,75)|0}while(0);i=q;return}function vg(a){a=a|0;var d=0,e=0;e=a+8|0;d=b[(e&o)>>1]|0;if(d&8192){Yk(a,c[(a&p)>>2]|0)|0;d=b[(e&o)>>1]|0}d=d&65535;do if(!(d&1024)){if(d&32){Zk(c[(a&p)>>2]|0);break}if(d&64){a=c[(a&p)>>2]|0;d=(c[(a&p)>>2]|0)+180|0;c[(a&p)+4>>2]=c[(d&p)>>2];c[(d&p)>>2]=a}}else cc[c[(a&p)+36>>2]&31](c[(a&p)+16>>2]|0);while(0);b[(e&o)>>1]=1;return}function wg(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0;k=i;i=i+16|0;if((i|0)>=(j|0))fa();g=k;e=Vh(b,d)|0;do if((e|0)==1){f=mh(a,536,0)|0;if(!f){ug(a,7,15776,g);e=0;break}fw(f|0,0,536)|0;c[(f&p)>>2]=b;if(!(_k(f)|0)){mg(a,c[(f&p)+4>>2]|0);Ch(f);mg(a,f);h=7;break}else{b=c[(f&p)+12>>2]|0;e=f+4|0;c[(g&p)>>2]=c[(e&p)>>2];ug(a,b,10344,g);mg(a,c[(e&p)>>2]|0);Ch(f);mg(a,f);e=0;break}}else h=7;while(0);do if((h|0)==7)if((e|0)<0){c[(g&p)>>2]=d;ug(a,1,47448,g);e=0;break}else{e=c[((c[(b&p)+16>>2]|0)+(e<<4)&p)+4>>2]|0;break}while(0);i=k;return e|0}function xg(a,d,f,g){a=a|0;d=d|0;f=f|0;g=g|0;var h=0,i=0,j=0,k=0;k=c[(a&p)+4>>2]|0;c[(k&p)+4>>2]=c[(a&p)>>2];j=k+22|0;if(!(b[(j&o)>>1]&2)){if((f|0)<0)f=(c[(k&p)+32>>2]|0)-(c[(k&p)+36>>2]|0)|0;if(((d+-512|0)>>>0<65025?(d+-1&d|0)==0:0)?(c[(k&p)+32>>2]=d,h=k+80|0,i=c[(h&p)>>2]|0,(i|0)!=0):0){a=i+-4|0;c[(h&p)>>2]=a;$k(a);c[(h&p)>>2]=0}h=k+32|0;a=al(c[(k&p)>>2]|0,h,f)|0;c[(k&p)+36>>2]=(c[(h&p)>>2]|0)-(f&65535);if(g)b[(j&o)>>1]=e[(j&o)>>1]|0|2}else a=8;return a|0}function yg(f,g){f=f|0;g=g|0;var h=0,k=0,l=0,m=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;T=i;i=i+16|0;if((i|0)>=(j|0))fa();N=T;M=T+12|0;L=T+8|0;R=c[(f&p)+4>>2]|0;I=R+4|0;c[(I&p)>>2]=c[(f&p)>>2];O=f+8|0;l=a[(O&n)>>0]|0;do if(l<<24>>24!=2?(P=(g|0)!=0,l<<24>>24!=1|P):0){Q=R+22|0;l=b[(Q&o)>>1]|0;if(!((l&1)!=0&P)){if(P)if((a[(R&n)+20>>0]|0)!=2&(l&64)==0)S=8;else S=7;else if(!(l&64))S=8;else S=7;a:do if((S|0)==7){h=c[(R&p)+76>>2]|0;S=12}else if(((S|0)==8?(g|0)>1:0)?(k=c[(R&p)+72>>2]|0,(k|0)!=0):0)do{l=c[(k&p)>>2]|0;if((l|0)!=(f|0)){h=l;S=12;break a}k=c[(k&p)+12>>2]|0}while((k|0)!=0);while(0);if((S|0)==12?(c[(h&p)>>2]|0)!=0:0){h=262;break}h=bl(f,1,1)|0;if(!h){l=e[(Q&o)>>1]|0;b[(Q&o)>>1]=l&65527;K=R+44|0;if(!(c[(K&p)>>2]|0))b[(Q&o)>>1]=l|8;E=R+12|0;u=R+32|0;v=R+36|0;w=R+17|0;x=R+18|0;y=R+80|0;z=R+24|0;A=R+26|0;B=R+28|0;C=R+30|0;D=R+21|0;F=R+20|0;G=(g|0)>1;h=0;b:while(1){c:do if(!(c[(E&p)>>2]|0)){h=cl(c[(R&p)>>2]|0)|0;if(!h){h=dl(R,1,M,0)|0;if(!h){t=c[(M&p)>>2]|0;q=c[(t&p)+56>>2]|0;l=d[(q&n)+29>>0]<<16|d[(q&n)+28>>0]<<24|d[(q&n)+30>>0]<<8|d[(q&n)+31>>0];m=c[(R&p)>>2]|0;r=c[(m&p)+24>>2]|0;if((l|0)!=0?(Zv(q+24|0,q+92|0,4)|0)==0:0)s=l;else s=r;d:do if((s|0)>0){e:do if(!(Zv(q,44680,16)|0)){if((d[(q&n)+18>>0]|0)>2)b[(Q&o)>>1]=e[(Q&o)>>1]|1;l=a[(q&n)+19>>0]|0;if((l&255)<=2){do if(l<<24>>24==2){if(b[(Q&o)>>1]&16)break;c[(L&p)>>2]=0;h=el(m,L)|0;if(h){S=48;break e}if(c[(L&p)>>2]|0)break;if(!t){h=0;continue b}Bg(c[(t&p)+68>>2]|0);h=0;continue b}while(0);if(Zv(q+21|0,47408,3)|0){h=26;S=48;break}k=d[(q&n)+17>>0]<<16|d[(q&n)+16>>0]<<8;if((k+16777215&k|0)!=0|k>>>0>65536|k>>>0<257){h=26;S=48;break}m=d[(q&n)+20>>0]|0;l=k-m|0;if((k|0)==(c[(u&p)>>2]|0)){if((s|0)>(r|0)?(c[((c[(I&p)>>2]|0)&p)+24>>2]&65536|0)==0:0){c[(N&p)>>2]=55672;c[(N&p)+4>>2]=10788;bd(11,13600,N);h=11;S=48;break}if(l>>>0<480){h=26;S=48;break}c[(u&p)>>2]=k;c[(v&p)>>2]=l;a[(w&n)>>0]=(d[(q&n)+53>>0]<<16|d[(q&n)+52>>0]<<24|d[(q&n)+54>>0]<<8|d[(q&n)+55>>0]|0)!=0&1;a[(x&n)>>0]=(d[(q&n)+65>>0]<<16|d[(q&n)+64>>0]<<24|d[(q&n)+66>>0]<<8|d[(q&n)+67>>0]|0)!=0&1;break d}if(t)Bg(c[(t&p)+68>>2]|0);c[(v&p)>>2]=l;c[(u&p)>>2]=k;l=c[(y&p)>>2]|0;if(l){h=l+-4|0;c[(y&p)>>2]=h;$k(h);c[(y&p)>>2]=0}h=al(c[(R&p)>>2]|0,u,m)|0}else{h=26;S=48}}else{h=26;S=48}while(0);if((S|0)==48){S=0;if(t)Bg(c[(t&p)+68>>2]|0);c[(E&p)>>2]=0}if(!h){h=0;continue b}else{S=77;break c}}else l=c[(v&p)>>2]|0;while(0);h=((((l<<6)+-768|0)>>>0)/255|0)+65513|0;k=h&65535;b[(z&o)>>1]=k;m=((((l<<5)+-384|0)>>>0)/255|0)+65513&65535;b[(A&o)>>1]=m;b[(B&o)>>1]=l+65501;b[(C&o)>>1]=m;a[(D&n)>>0]=(k&65535)>127?127:h&255;c[(E&p)>>2]=t;c[(K&p)>>2]=s;h=0;continue b}else l=0}else l=0}else{f:do if((h|0)==0&P){if(b[(Q&o)>>1]&1){h=8;S=77;break c}s=c[(R&p)>>2]|0;h=c[(s&p)+40>>2]|0;g:do if(!h){a[(s&n)+21>>0]=(a[((c[(f&p)>>2]|0)&n)+64>>0]|0)==2&1;t=s+16|0;if((a[(t&n)>>0]|0)==1){m=s+208|0;l=c[(m&p)>>2]|0;do if(!l){h=fl(s,2)|0;h:do if((h|0)==0&G){l=s+176|0;k=s+180|0;while(1){h=fl(s,4)|0;if((h|0)!=5)break h;if(!(lc[c[(l&p)>>2]&127](c[(k&p)>>2]|0)|0)){h=5;break g}}}while(0);if(h)break g}else{do if(a[(s&n)+4>>0]|0){if(a[(l&n)+43>>0]|0)break;h=fl(s,4)|0;if(h)break g;l=c[(m&p)>>2]|0;k=l+43|0;if(!(a[(k&n)>>0]|0)){h=c[(l&p)+4>>2]|0;pc[c[((c[(h&p)>>2]|0)&p)+56>>2]&31](h,(b[(l&o)+40>>1]|0)+3|0,1,5)|0;l=c[(m&p)>>2]|0}a[(k&n)>>0]=1}while(0);if(a[(l&n)+46>>0]|0){h=8;break g}k=l+43|0;if((a[(k&n)>>0]|0)==0?(H=c[(l&p)+4>>2]|0,H=pc[c[((c[(H&p)>>2]|0)&p)+56>>2]&31](H,0,1,10)|0,(H|0)!=0):0){h=H;break g}h=l+44|0;a[(h&n)>>0]=1;if(!(Zv(l+52|0,c[(c[(l&p)+32>>2]&p)>>2]|0,48)|0))break;if(!(a[(k&n)>>0]|0)){k=c[(l&p)+4>>2]|0;pc[c[((c[(k&p)>>2]|0)&p)+56>>2]&31](k,0,1,9)|0}a[(h&n)>>0]=0;h=517;break g}while(0);a[(t&n)>>0]=2;h=c[(s&p)+24>>2]|0;c[(s&p)+36>>2]=h;c[(s&p)+32>>2]=h;c[(s&p)+28>>2]=h;h=s+72|0;c[(h&p)>>2]=0;c[(h&p)+4>>2]=0}h=Cg(R)|0;break f}while(0);l=(h|0)==0;break c}while(0);if(!h){h=0;break b}else l=0}while(0);if((S|0)==77){S=0;l=(h|0)==0}if((a[(F&n)>>0]|0)==0?(J=c[(E&p)>>2]|0,(J|0)!=0):0){c[(E&p)>>2]=0;Bg(c[(J&p)+68>>2]|0)}if((h&255|0)!=5){S=86;break}if(a[(F&n)>>0]|0){S=86;break}if(!(gl(R)|0)){S=86;break}}if((S|0)==86)if(!l){S=96;break}if((a[(O&n)>>0]|0)==0?(H=R+40|0,c[(H&p)>>2]=(c[(H&p)>>2]|0)+1,(a[(f&n)+9>>0]|0)!=0):0){a[(f&n)+40>>0]=1;H=R+72|0;c[(f&p)+44>>2]=c[(H&p)>>2];c[(H&p)>>2]=f+32}l=P?2:1;a[(O&n)>>0]=l;if((l&255)>(d[(F&n)>>0]|0))a[(F&n)>>0]=l;if(P){l=c[(E&p)>>2]|0;c[(R&p)+76>>2]=f;k=e[(Q&o)>>1]|0;b[(Q&o)>>1]=G?k|32:k&65503;k=l+56|0;H=c[(k&p)>>2]|0;if((c[(K&p)>>2]|0)!=(d[(H&n)+29>>0]<<16|d[(H&n)+28>>0]<<24|d[(H&n)+30>>0]<<8|d[(H&n)+31>>0]|0)){h=Gg(c[(l&p)+68>>2]|0)|0;if(!h){h=c[(k&p)>>2]|0;S=c[(K&p)>>2]|0;a[(h&n)+28>>0]=S>>>24;a[(h&n)+29>>0]=S>>>16;a[(h&n)+30>>0]=S>>>8;a[(h&n)+31>>0]=S;h=0;S=96}}else S=96}}}else h=8}else{h=0;S=96}while(0);if((S|0)==96)if((h|0)==0&(g|0)!=0)h=hl(c[(R&p)>>2]|0,c[((c[(f&p)>>2]|0)&p)+496>>2]|0)|0;i=T;return h|0}function zg(e,f,g,h){e=e|0;f=f|0;g=g|0;h=h|0;var k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0;y=i;i=i+16|0;if((i|0)>=(j|0))fa();u=y;w=y+8|0;c[(w&p)>>2]=0;t=h&1;a:do if(!f){c[(u&p)>>2]=46865;c[(u&p)+4>>2]=10788;bd(11,13600,u);k=11}else{a[(e&n)+23>>0]=1;h=c[(e&p)+40>>2]|0;do if(!h){s=e+204|0;h=c[(s&p)>>2]|0;h=ac[c[8876>>2]&63](c[(h&p)+40>>2]|0,f,d[(h&n)+29>>0]&3)|0;if(!h){m=c[(s&p)>>2]|0;if((a[(m&n)+29>>0]|0)!=2){l=m+8|0;h=c[(l&p)>>2]|0;b:do if(!h)x=11;else{while(1){if((b[(h&o)+26>>1]|0)==0?(b[(h&o)+24>>1]&4)==0:0)break;h=c[(h&p)+36>>2]|0;if(!h){x=11;break b}}c[(l&p)>>2]=h;r=h;x=14}while(0);c:do if((x|0)==11?(c[(l&p)>>2]=0,q=c[(m&p)+4>>2]|0,(q|0)!=0):0){h=q;do{if(!(b[(h&o)+26>>1]|0)){r=h;x=14;break c}h=c[(h&p)+36>>2]|0}while((h|0)!=0)}while(0);if((x|0)==14?(k=rc[c[(m&p)+32>>2]&127](c[(m&p)+36>>2]|0,r)|0,!((k|0)==0|(k|0)==5)):0)break;k=ac[c[8876>>2]&63](c[(m&p)+40>>2]|0,f,2)|0;if(!k){k=7;break}}else k=0}else k=h;m=il(c[(s&p)>>2]|0,f,k)|0;c[(g&p)>>2]=m;if(!m)k=7;else{h=m+16|0;k=(t|0)!=0;if(!((c[(h&p)>>2]|0)==0|k)){k=e+184|0;c[(k&p)>>2]=(c[(k&p)>>2]|0)+1;k=0;break a}c[(h&p)>>2]=e;do if((f|0)>=0?(v=e+152|0,(((c[2514]|0)/(c[(v&p)>>2]|0)|0)+1|0)!=(f|0)):0){if(((a[(e&n)+15>>0]|0)==0?!((c[(e&p)+24>>2]|0)>>>0>>0|k):0)?(c[(c[(e&p)+60>>2]&p)>>2]|0)!=0:0){k=c[(e&p)+208>>2]|0;if(!k)k=0;else{k=kl(k,f,w)|0;if(k)break;k=c[(w&p)>>2]|0}v=e+188|0;c[(v&p)>>2]=(c[(v&p)>>2]|0)+1;k=ll(m,k)|0;if(!k){k=0;break a}else break}if((c[(e&p)+156>>2]|0)>>>0>>0)k=13;else{if(k){k=c[3164]|0;if(k)nc[k&3]();if((c[(e&p)+28>>2]|0)>>>0>=f>>>0)bi(c[(e&p)+56>>2]|0,f)|0;jl(e,f)|0;k=c[3166]|0;if(k)nc[k&3]()}fw(c[(m&p)+4>>2]|0,0,c[(v&p)>>2]|0)|0;k=0;break a}}else x=21;while(0);if((x|0)==21){c[(u&p)>>2]=46945;c[(u&p)+4>>2]=10788;bd(11,13600,u);k=11}ml(m)}}else k=h;while(0);if((c[(e&p)+120>>2]|0)==0?(c[((c[(e&p)+204>>2]|0)&p)+12>>2]|0)==0:0)nl(e);c[(g&p)>>2]=0}while(0);i=y;return k|0}function Ag(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,o=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0;y=i;i=i+16|0;if((i|0)>=(j|0))fa();x=y;v=b+4|0;r=c[((c[(v&p)>>2]|0)&p)+4>>2]|0;w=c[(r&p)>>2]|0;u=b+24|0;q=c[((c[((c[(u&p)>>2]|0)&p)+4>>2]|0)&p)+32>>2]|0;r=c[(r&p)+32>>2]|0;s=(q|0)<(r|0)?q:r;t=((q|0)<0)<<31>>31;m=sw(q|0,t|0,d|0,0)|0;o=G;if((q|0)==(r|0))b=0;else b=(a[(w&n)+15>>0]|0)==0?0:8;a:do if((b|0)==0&(q|0)>0){d=dw(m|0,o|0,q|0,t|0)|0;l=((r|0)<0)<<31>>31;k=(f|0)==0;h=G;b=r;while(1){c[(x&p)>>2]=0;f=qw(d|0,h|0,r|0,l|0)|0;if((f|0)!=(((c[2514]|0)>>>0)/(b>>>0)|0|0)){b=zg(w,f+1|0,x,0)|0;g=c[(x&p)>>2]|0;if(!b){b=Gg(g)|0;if(!b){z=rw(d|0,h|0,q|0,t|0)|0;f=c[(g&p)+4>>2]|0;b=rw(d|0,h|0,r|0,l|0)|0;kw(f+b|0,e+z|0,s|0)|0;a[(c[(g&p)+8>>2]&n)>>0]=0;if((d|0)==0&(h|0)==0&k){z=c[((c[((c[(u&p)>>2]|0)&p)+4>>2]|0)&p)+44>>2]|0;a[(f+b&n)+28>>0]=z>>>24;a[(f+b&n)+29>>0]=z>>>16;a[(f+b&n)+30>>0]=z>>>8;a[(f+b&n)+31>>0]=z;b=0}else b=0}}if(g)Bg(g)}else b=0;d=jw(d|0,h|0,r|0,l|0)|0;f=G;if(!((b|0)==0&((f|0)<(o|0)|(f|0)==(o|0)&d>>>0>>0)))break a;h=f;b=c[((c[((c[(v&p)>>2]|0)&p)+4>>2]|0)&p)+32>>2]|0}}while(0);i=y;return b|0}function Bg(a){a=a|0;var d=0,e=0,f=0;d=c[(a&p)+16>>2]|0;if(!(b[(a&o)+24>>1]&64)){ol(a);a=c[(d&p)+120>>2]|0}else{f=d+120|0;e=(c[(f&p)>>2]|0)+-1|0;c[(f&p)>>2]=e;f=d+136|0;c[(a&p)+12>>2]=c[(f&p)>>2];c[(f&p)>>2]=a;a=e}if((a|0)==0?(c[((c[(d&p)+204>>2]|0)&p)+12>>2]|0)==0:0)nl(d);return}function Cg(d){d=d|0;var f=0,g=0,h=0,i=0,j=0,k=0;i=d+44|0;if(!(c[(i&p)>>2]|0)){j=c[(d&p)+12>>2]|0;k=c[(j&p)+56>>2]|0;f=Gg(c[(j&p)+68>>2]|0)|0;if(!f){f=k+0|0;g=44680|0;h=f+16|0;do{a[(f&n)>>0]=a[(g&n)>>0]|0;f=f+1|0;g=g+1|0}while((f|0)<(h|0));f=d+32|0;a[(k&n)+16>>0]=(c[(f&p)>>2]|0)>>>8;a[(k&n)+17>>0]=(c[(f&p)>>2]|0)>>>16;a[(k&n)+18>>0]=1;a[(k&n)+19>>0]=1;a[(k&n)+20>>0]=(c[(f&p)>>2]|0)-(c[(d&p)+36>>2]|0);a[(k&n)+21>>0]=64;a[(k&n)+22>>0]=32;a[(k&n)+23>>0]=32;f=k+24|0;h=f+76|0;do{a[(f&n)>>0]=0;f=f+1|0}while((f|0)<(h|0));pl(j,13);f=d+22|0;b[(f&o)>>1]=e[(f&o)>>1]|0|2;f=a[(d&n)+17>>0]|0;a[(k&n)+52>>0]=0;a[(k&n)+53>>0]=0;a[(k&n)+54>>0]=0;a[(k&n)+55>>0]=f;f=a[(d&n)+18>>0]|0;a[(k&n)+64>>0]=0;a[(k&n)+65>>0]=0;a[(k&n)+66>>0]=0;a[(k&n)+67>>0]=f;c[(i&p)>>2]=1;a[(k&n)+31>>0]=1;f=0}}else f=0;return f|0}function Dg(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0;g=c[(b&p)+4>>2]|0;c[(g&p)+4>>2]=c[(b&p)>>2];b=c[(g&p)+12>>2]|0;f=c[(b&p)+56>>2]|0;b=Gg(c[(b&p)+68>>2]|0)|0;if((b|0)==0?(i=d<<2,a[(f+i&n)+36>>0]=e>>>24,a[(f+i&n)+37>>0]=e>>>16,a[(f+i&n)+38>>0]=e>>>8,h=e&255,a[(f+i&n)+39>>0]=h,(d|0)==7):0)a[(g&n)+18>>0]=h;return b|0}function Eg(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0;h=a+20|0;b=c[(h&p)>>2]|0;d=(b|0)>0;if(d){e=c[(a&p)+16>>2]|0;g=0;do{f=c[(e+(g<<4)&p)+4>>2]|0;if(f)c[((c[(f&p)+4>>2]|0)&p)+4>>2]=c[(f&p)>>2];g=g+1|0}while((g|0)!=(b|0));if(d){g=a+16|0;f=0;do{d=c[((c[(g&p)>>2]|0)+(f<<4)&p)+12>>2]|0;if(d){ql(d);b=c[(h&p)>>2]|0}f=f+1|0}while((f|0)<(b|0))}}b=a+24|0;c[(b&p)>>2]=c[(b&p)>>2]&-3;rl(a);sl(a);return}function Fg(d,f){d=d|0;f=f|0;var g=0,h=0,i=0,j=0,k=0;h=c[(d&p)+4>>2]|0;k=h+22|0;g=e[(k&o)>>1]|0;b[(k&o)>>1]=(f|0)==1?g|16:g&65519;g=yg(d,0)|0;do if(!g){h=h+12|0;i=c[((c[(h&p)>>2]|0)&p)+56>>2]|0;j=i+18|0;g=a[(j&n)>>0]|0;f=f&255;if(g<<24>>24==f<<24>>24?(a[(i&n)+19>>0]|0)==g<<24>>24:0){g=0;break}g=yg(d,2)|0;if(!g){g=Gg(c[((c[(h&p)>>2]|0)&p)+68>>2]|0)|0;if(!g){a[(j&n)>>0]=f;a[(i&n)+19>>0]=f;g=0}}}while(0);b[(k&o)>>1]=e[(k&o)>>1]&65519;return g|0}function Gg(a){a=a|0;var b=0;b=c[(a&p)+16>>2]|0;if((c[(b&p)+148>>2]|0)>>>0>(c[(b&p)+152>>2]|0)>>>0)a=tl(a)|0;else a=ul(a)|0;return a|0}function Hg(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,o=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0;A=i;i=i+32|0;if((i|0)>=(j|0))fa();u=A+16|0;v=A;k=A+12|0;m=A+8|0;g=c[(b&p)+40>>2]|0;a:do if(!g){z=b+16|0;if((d[(z&n)>>0]|0)>=3){b:do if(!(a[(b&n)+15>>0]|0)){if(c[(b&p)+208>>2]|0){l=b+204|0;h=vl(c[(l&p)>>2]|0)|0;c[(m&p)>>2]=0;if(!h){g=zg(b,1,m,0)|0;h=c[(m&p)>>2]|0;c[(h&p)+12>>2]=0;if(h){k=h;y=9}}else{k=0;y=9}if((y|0)==9){g=wl(b,h,c[(b&p)+24>>2]|0,1)|0;if(k)Bg(k)}if(g)break a;h=c[(l&p)>>2]|0;g=c[(h&p)>>2]|0;if(!g)break;while(1){xl(g);g=c[(h&p)>>2]|0;if(!g)break b}}l=b+18|0;if((a[(l&n)>>0]|0)==0?(c[(b&p)+24>>2]|0)!=0:0){g=zg(b,1,k,0)|0;k=c[(k&p)>>2]|0;if(!g){g=Gg(k)|0;if(!g){yl(k);a[(l&n)>>0]=1;g=0}}if(k)Bg(k);if(g)break a}if(((e|0)!=0?(a[(b&n)+5>>0]|0)!=4:0)?(x=b+64|0,t=c[(x&p)>>2]|0,(c[(t&p)>>2]|0)!=0):0){a[(b&n)+19>>0]=1;k=a[(e&n)>>0]|0;if(!(k<<24>>24)){l=0;h=0}else{l=0;h=0;do{l=(k<<24>>24)+l|0;h=h+1|0;k=a[(e+h&n)>>0]|0}while(k<<24>>24!=0)}s=b+72|0;g=s;k=c[(g&p)>>2]|0;g=c[(g&p)+4>>2]|0;if(!(a[(b&n)+8>>0]|0))m=g;else{if((k|0)==0&(g|0)==0){k=0;g=0}else{g=jw(k|0,g|0,-1,-1)|0;k=c[(b&p)+148>>2]|0;g=qw(g|0,G|0,k|0,0)|0;g=jw(g|0,G|0,1,0)|0;k=sw(g|0,G|0,k|0,0)|0;g=G}m=s;c[(m&p)>>2]=k;c[(m&p)+4>>2]=g;m=g}g=((c[2514]|0)/(c[(b&p)+152>>2]|0)|0)+1|0;a[(u&n)>>0]=g>>>24;o=u+1|0;a[(o&n)>>0]=g>>>16;q=u+2|0;a[(q&n)>>0]=g>>>8;r=u+3|0;a[(r&n)>>0]=g;g=tc[c[((c[(t&p)>>2]|0)&p)+12>>2]&31](t,u,4,k,m)|0;if(g)break a;g=c[(x&p)>>2]|0;m=jw(k|0,m|0,4,0)|0;k=G;g=tc[c[((c[(g&p)>>2]|0)&p)+12>>2]&31](g,e,h,m,k)|0;if(g)break a;g=c[(x&p)>>2]|0;m=jw(m|0,k|0,h|0,((h|0)<0)<<31>>31|0)|0;k=G;a[(u&n)>>0]=h>>>24;a[(o&n)>>0]=h>>>16;a[(q&n)>>0]=h>>>8;a[(r&n)>>0]=h;g=tc[c[((c[(g&p)>>2]|0)&p)+12>>2]&31](g,u,4,m,k)|0;if(g)break a;t=c[(x&p)>>2]|0;g=jw(m|0,k|0,4,0)|0;a[(u&n)>>0]=l>>>24;a[(o&n)>>0]=l>>>16;a[(q&n)>>0]=l>>>8;a[(r&n)>>0]=l;g=tc[c[((c[(t&p)>>2]|0)&p)+12>>2]&31](t,u,4,g,G)|0;if(g)break a;t=c[(x&p)>>2]|0;g=jw(m|0,k|0,8,0)|0;g=tc[c[((c[(t&p)>>2]|0)&p)+12>>2]&31](t,14808,8,g,G)|0;if(g)break a;t=h+20|0;g=s;t=jw(c[(g&p)>>2]|0,c[(g&p)+4>>2]|0,t|0,((t|0)<0)<<31>>31|0)|0;g=s;c[(g&p)>>2]=t;c[(g&p)+4>>2]=G;g=c[(x&p)>>2]|0;g=rc[c[((c[(g&p)>>2]|0)&p)+24>>2]&127](g,v)|0;if(g)break a;t=v;r=c[(t&p)+4>>2]|0;g=s;h=c[(g&p)>>2]|0;g=c[(g&p)+4>>2]|0;if((r|0)>(g|0)|((r|0)==(g|0)?(c[(t&p)>>2]|0)>>>0>h>>>0:0)?(w=c[(x&p)>>2]|0,w=ac[c[((c[(w&p)>>2]|0)&p)+16>>2]&63](w,h,g)|0,(w|0)!=0):0){g=w;break a}}g=zl(b,0)|0;if(g)break a;h=b+204|0;g=Al(b,vl(c[(h&p)>>2]|0)|0)|0;if(g)break a;g=c[(h&p)>>2]|0;h=c[(g&p)>>2]|0;if(h)do{xl(h);h=c[(g&p)>>2]|0}while((h|0)!=0);h=c[(b&p)+24>>2]|0;if(h>>>0>(c[(b&p)+32>>2]|0)>>>0){g=Bl(b,h-((h|0)==(((c[2514]|0)/(c[(b&p)+152>>2]|0)|0)+1|0)&1)|0)|0;if(!(g|f))y=46}else if(!f)y=46;else break;if((y|0)==46)g=Ig(b,e)|0;if(g)break a}else{g=c[(b&p)+88>>2]|0;if(g)do{c[(g&p)+16>>2]=1;g=c[(g&p)+44>>2]|0}while((g|0)!=0)}while(0);if(!(c[(b&p)+208>>2]|0)){a[(z&n)>>0]=5;g=0}else g=0}else g=0}while(0);i=A;return g|0}function Ig(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,i=0;g=b+60|0;h=c[(g&p)>>2]|0;i=c[(h&p)>>2]|0;if(!((i|0)!=0?(f=ac[c[(i&p)+40>>2]&63](h,21,e)|0,!((f|0)==0|(f|0)==12)):0))if(!(a[(b&n)+7>>0]|0)){f=c[(g&p)>>2]|0;f=rc[c[((c[(f&p)>>2]|0)&p)+20>>2]&127](f,d[(b&n)+11>>0]|0)|0}else f=0;return f|0}function Jg(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0;g=a[(b&n)+8>>0]|0;do if(!(g<<24>>24))f=0;else{k=c[(b&p)+4>>2]|0;c[(k&p)+4>>2]=c[(b&p)>>2];if(g<<24>>24==2){h=c[(k&p)>>2]|0;i=h+40|0;g=c[(i&p)>>2]|0;do if(!g){g=h+16|0;if(((a[(g&n)>>0]|0)==2?(a[(h&n)+4>>0]|0)!=0:0)?(a[(h&n)+5>>0]|0)==1:0){a[(g&n)>>0]=1;break}f=h+100|0;c[(f&p)>>2]=(c[(f&p)>>2]|0)+1;f=Cl(h,d[(h&n)+19>>0]|0,1)|0;h=f&255;if((h|0)==10|(h|0)==13){c[(i&p)>>2]=f;a[(g&n)>>0]=6;j=10}else j=10}else{f=g;j=10}while(0);if((j|0)==10?(f|0)!=0&(e|0)==0:0)break;f=b+20|0;c[(f&p)>>2]=(c[(f&p)>>2]|0)+-1;a[(k&n)+20>>0]=1;f=k+60|0;ei(c[(f&p)>>2]|0);c[(f&p)>>2]=0}Dl(b);f=0}while(0);return f|0}function Kg(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,o=0,q=0,r=0,s=0;s=i;i=i+16|0;if((i|0)>=(j|0))fa();h=s;a:do if((a[(b&n)+8>>0]|0)==2){r=c[(b&p)+4>>2]|0;c[(r&p)+4>>2]=c[(b&p)>>2];do if(a[(r&n)+17>>0]|0){q=c[(r&p)>>2]|0;f=r+8|0;b=c[(f&p)>>2]|0;if(b)do{o=b+72|0;a[(o&n)>>0]=d[(o&n)>>0]&251;b=c[(b&p)+8>>2]|0}while((b|0)!=0);if(!(a[(r&n)+18>>0]|0)){o=r+44|0;g=c[(o&p)>>2]|0;if(g>>>0<2)b=0;else{b=g+-2|0;b=b-((b>>>0)%(((((c[(r&p)+36>>2]|0)>>>0)/5|0)+1|0)>>>0)|0)|0;b=((b+1|0)==(((c[2514]|0)>>>0)/((c[(r&p)+32>>2]|0)>>>0)|0|0)?3:2)+b|0}if((b|0)!=(g|0)?(g|0)!=((((c[2514]|0)>>>0)/((c[(r&p)+32>>2]|0)>>>0)|0)+1|0):0){k=r+12|0;l=c[((c[(k&p)>>2]|0)&p)+56>>2]|0;l=d[(l&n)+37>>0]<<16|d[(l&n)+36>>0]<<24|d[(l&n)+38>>0]<<8|d[(l&n)+39>>0];m=El(r,g,l)|0;if(m>>>0>g>>>0){c[(h&p)>>2]=56396;c[(h&p)+4>>2]=10788;bd(11,13600,h);b=11;break a}b:do if(m>>>0>>0){b=c[(f&p)>>2]|0;c:do if(b){while(1){if(b)break;b=c[2]|0;if(!b)break c}b=Fl(b,0,0)|0;if(b){f=0;break b}}while(0);do{b=Gl(r,m,g,1)|0;g=g+-1|0;f=(b|0)==0}while(g>>>0>m>>>0&f)}else{f=1;b=0}while(0);if(((b|0)==101|f)&(l|0)!=0){b=Gg(c[((c[(k&p)>>2]|0)&p)+68>>2]|0)|0;l=(c[((c[(k&p)>>2]|0)&p)+56>>2]|0)+32|0;a[(l&n)>>0]=0;a[(l&n)+1>>0]=0;a[(l&n)+2>>0]=0;a[(l&n)+3>>0]=0;l=(c[((c[(k&p)>>2]|0)&p)+56>>2]|0)+36|0;a[(l&n)>>0]=0;a[(l&n)+1>>0]=0;a[(l&n)+2>>0]=0;a[(l&n)+3>>0]=0;l=c[((c[(k&p)>>2]|0)&p)+56>>2]|0;a[(l&n)+28>>0]=m>>>24;a[(l&n)+29>>0]=m>>>16;a[(l&n)+30>>0]=m>>>8;a[(l&n)+31>>0]=m;a[(r&n)+19>>0]=1;c[(o&p)>>2]=m}if(!b)break;Hl(q)|0;break a}c[(h&p)>>2]=56391;c[(h&p)+4>>2]=10788;bd(11,13600,h);b=11;break a}}while(0);b=c[(r&p)>>2]|0;if(a[(r&n)+19>>0]|0)c[(b&p)+24>>2]=c[(r&p)+44>>2];b=Hg(b,e,0)|0}else b=0;while(0);i=s;return b|0}function Lg(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0;m=i;i=i+16|0;if((i|0)>=(j|0))fa();h=m;l=c[(b&p)+4>>2]|0;c[(l&p)+4>>2]=c[(b&p)>>2];a:do if(!e){e=c[(l&p)+8>>2]|0;if(e){while(1){if(e)break;e=c[2]|0;if(!e)break a}e=Fl(e,0,0)|0;g=(e|0)==0;if(!g){g=g?f:0;k=6}}}else{g=f;k=6}while(0);if((k|0)==6)Il(b,e,g)|0;if((a[(b&n)+8>>0]|0)==2){Hl(c[(l&p)>>2]|0)|0;if(!(dl(l,1,h,0)|0)){e=c[(h&p)>>2]|0;g=c[(e&p)+56>>2]|0;g=d[(g&n)+29>>0]<<16|d[(g&n)+28>>0]<<24|d[(g&n)+30>>0]<<8|d[(g&n)+31>>0];if(!g)g=c[((c[(l&p)>>2]|0)&p)+24>>2]|0;c[(l&p)+44>>2]=g;if(e)Bg(c[(e&p)+68>>2]|0)}a[(l&n)+20>>0]=1;g=l+60|0;ei(c[(g&p)>>2]|0);c[(g&p)>>2]=0}Dl(b);i=m;return}function Mg(d){d=d|0;var e=0,f=0,g=0,h=0,i=0,j=0,k=0;j=d+76|0;if((c[(j&p)>>2]|0)==1691352191?(Jl(d)|0)==0:0){Kl(d,0);Ll(d);i=d+20|0;k=d+16|0;e=c[(k&p)>>2]|0;if((c[(i&p)>>2]|0)>0){h=0;do{g=e+(h<<4)+4|0;f=c[(g&p)>>2]|0;if((f|0)!=0?(Ml(f),c[(g&p)>>2]=0,(h|0)!=1):0)c[(e+(h<<4)&p)+12>>2]=0;h=h+1|0;e=c[(k&p)>>2]|0}while((h|0)<(c[(i&p)>>2]|0))}e=c[(e&p)+28>>2]|0;if(e)ql(e);rl(d);sl(d);h=0;do{e=c[(d+(h<<2)&p)+336>>2]|0;if(e)do{g=e;e=c[(e&p)+28>>2]|0;if(g)do{Nl(d,g);f=g;g=c[(g&p)+8>>2]|0;mg(d,f)}while((g|0)!=0)}while((e|0)!=0);h=h+1|0}while((h|0)!=23);f=d+428|0;e=c[(d&p)+436>>2]|0;if(e)do{h=c[(e&p)+8>>2]|0;g=c[(h&p)+16>>2]|0;if(g)cc[g&31](c[(h&p)+8>>2]|0);g=c[(h&p)+36>>2]|0;if(g)cc[g&31](c[(h&p)+28>>2]|0);g=c[(h&p)+56>>2]|0;if(g)cc[g&31](c[(h&p)+48>>2]|0);mg(d,h);e=c[(e&p)>>2]|0}while((e|0)!=0);Ol(f);h=d+308|0;e=c[(d&p)+316>>2]|0;if(e)do{g=c[(e&p)+8>>2]|0;f=c[(g&p)+12>>2]|0;if(f)cc[f&31](c[(g&p)+8>>2]|0);mg(d,g);e=c[(e&p)>>2]|0}while((e|0)!=0);Ol(h);c[(d&p)+52>>2]=0;f=d+236|0;e=c[(f&p)>>2]|0;do if(e){g=e+8|0;if(!(b[(g&o)>>1]&9312)){b[(g&o)>>1]=1;break}else{vg(e);e=c[(f&p)>>2]|0;break}}else e=0;while(0);Mh(e);g=d+168|0;if((c[(g&p)>>2]|0)>0){e=d+172|0;f=0;do{h=c[(d&p)>>2]|0;jc[c[(h&p)+52>>2]&15](h,c[((c[(e&p)>>2]|0)+(f<<2)&p)>>2]|0);f=f+1|0}while((f|0)<(c[(g&p)>>2]|0))}else e=d+172|0;mg(d,c[(e&p)>>2]|0);c[(j&p)>>2]=-1254786768;mg(d,c[((c[(k&p)>>2]|0)&p)+28>>2]|0);c[(j&p)>>2]=-1623446221;if(a[(d&n)+251>>0]|0)Wc(c[(d&p)+276>>2]|0);Wc(d)}return}function Ng(a){a=a|0;var b=0;b=c[(a&p)+40>>2]|0;if((b|0)==1369188723|(b|0)==-1108210269)b=Pg(a)|0;else b=0;Pl(a);return b|0}function Og(b,d){b=b|0;d=d|0;do if(b)if((a[(b&n)+65>>0]|0)!=0|(d|0)==3082){Ql(b);b=7;break}else{b=c[(b&p)+56>>2]&d;break}else b=d&255;while(0);return b|0}function Pg(a){a=a|0;var d=0,e=0,f=0,g=0,h=0,k=0;g=i;i=i+16|0;if((i|0)>=(j|0))fa();e=g;f=c[(a&p)>>2]|0;Rl(a)|0;if((c[(a&p)+76>>2]|0)>-1){hh(a)|0;d=a+44|0;mg(f,c[(d&p)>>2]|0);c[(d&p)>>2]=0;d=a+88|0;e=b[(d&o)>>1]|0;if(e&16)b[(d&o)>>1]=e|8}else{d=c[(a&p)+80>>2]|0;if((d|0)!=0?(b[(a&o)+88>>1]&8)!=0:0){h=a+44|0;k=c[(h&p)>>2]|0;c[(e&p)>>2]=k;ug(f,d,(k|0)!=0?10344:0,e);mg(f,c[(h&p)>>2]|0);c[(h&p)>>2]=0}}d=a+44|0;mg(c[(a&p)>>2]|0,c[(d&p)>>2]|0);c[(d&p)>>2]=0;c[(a&p)+20>>2]=0;d=a+136|0;c[(d&p)>>2]=0;c[(d&p)+4>>2]=0;c[(a&p)+40>>2]=649915045;i=g;return c[(f&p)+56>>2]&c[(a&p)+80>>2]|0}function Qg(a){a=a|0;var d=0;if(b[(a&o)+8>>1]&9312)vg(a);d=a+24|0;if(c[(d&p)>>2]|0){mg(c[(a&p)+32>>2]|0,c[(a&p)+20>>2]|0);c[(d&p)>>2]=0}c[(a&p)+16>>2]=0;return}function Rg(a){a=a|0;var d=0,f=0,g=0;d=a+8|0;if(b[(d&o)>>1]&16384){f=a+12|0;g=(c[(a&p)>>2]|0)+(c[(f&p)>>2]|0)|0;if(!(eh(a,(g|0)<1?1:g,1)|0)){fw((c[(a&p)+16>>2]|0)+(c[(f&p)>>2]|0)|0,0,c[(a&p)>>2]|0)|0;c[(f&p)>>2]=(c[(f&p)>>2]|0)+(c[(a&p)>>2]|0);b[(d&o)>>1]=(e[(d&o)>>1]|0)&48639;d=0}else d=7}else d=0;return d|0}function Sg(d,e){d=d|0;e=e|0;var f=0;do if(d){f=b[(d&o)+8>>1]|0;if((f&514)==514?(a[(d&n)+10>>0]|0)==e<<24>>24:0){f=c[(d&p)+16>>2]|0;break}if(!(f&1))f=Sl(d,e)|0;else f=0}else f=0;while(0);return f|0}function Tg(a,d){a=a|0;d=d|0;var e=0,f=0,g=0;e=a+8|0;f=b[(e&o)>>1]|0;if(!(f&16))if(!(Sg(a,d)|0))e=0;else{f=b[(e&o)>>1]|0;g=4}else g=4;if((g|0)==4){e=c[(a&p)+12>>2]|0;if(f&16384)e=(c[(a&p)>>2]|0)+e|0}return e|0}function Ug(b){b=b|0;var d=0.0,f=0,g=0,k=0;k=i;i=i+16|0;if((i|0)>=(j|0))fa();g=k;f=e[(b&o)+8>>1]|0;do if(!(f&8)){if(f&4){f=b;d=+((c[(f&p)>>2]|0)>>>0)+4294967296.0*+(c[(f&p)+4>>2]|0);break}if(!(f&18))d=0.0;else{h[(g&q)>>3]=0.0;Tl(c[(b&p)+16>>2]|0,g,c[(b&p)+12>>2]|0,a[(b&n)+10>>0]|0)|0;d=+h[(g&q)>>3]}}else d=+h[(b&q)>>3];while(0);i=k;return +d}function Vg(b){b=b|0;var d=0.0,f=0,g=0,k=0;k=i;i=i+16|0;if((i|0)>=(j|0))fa();g=k;f=e[(b&o)+8>>1]|0;do if(!(f&4)){if(!(f&8)){if(!(f&18)){b=0;f=0;break}f=g;c[(f&p)>>2]=0;c[(f&p)+4>>2]=0;Ul(c[(b&p)+16>>2]|0,g,c[(b&p)+12>>2]|0,a[(b&n)+10>>0]|0)|0;f=g;b=c[(f&p)+4>>2]|0;f=c[(f&p)>>2]|0;break}d=+h[(b&q)>>3];if(!(d<=-9223372036854775808.0))if(!(d>=9223372036854775808.0)){b=+R(d)>=1.0?(d>0.0?~~+da(+Q(d/4294967296.0),4294967295.0)>>>0:~~+ba((d-+(~~d>>>0))/4294967296.0)>>>0):0;f=~~d>>>0}else{b=2147483647;f=-1}else{b=-2147483648;f=0}}else{f=b;b=c[(f&p)+4>>2]|0;f=c[(f&p)>>2]|0}while(0);G=b;i=k;return f|0}function Wg(b,d,e,f,g){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;if((Xg(c[(b&p)>>2]|0,d,e,f,g)|0)==18){c[(b&p)+20>>2]=18;a[(b&n)+25>>0]=1;Xg(c[(b&p)>>2]|0,10096,-1,1,0)|0}return}function Xg(d,f,g,h,i){d=d|0;f=f|0;g=g|0;h=h|0;i=i|0;var j=0,k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0;a:do if(!f){j=d+8|0;if(!(b[(j&o)>>1]&9312)){b[(j&o)>>1]=1;j=0;break}else{vg(d);j=0;break}}else{r=d+32|0;j=c[(r&p)>>2]|0;if(!j)u=1e9;else u=c[(j&p)+88>>2]|0;t=h<<24>>24==0;q=t?16:2;if((g|0)<0){b:do if(h<<24>>24!=1)if((u|0)<0)k=0;else{g=0;while(1){k=g+2|0;if(!((a[(f+(g|1)&n)>>0]|a[(f+g&n)>>0])<<24>>24)){k=g;break b}if((k|0)>(u|0))break;else g=k}}else{k=f;while(1)if(!(a[(k&n)>>0]|0))break;else k=k+1|0;k=k-f&1073741823;k=(k|0)>(u|0)?u+1|0:k}while(0);s=k;m=(q&65535|512)&65535}else{s=g;m=q}do if((i|0)==(-1|0)){if(!(m&512))j=s;else j=s+(h<<24>>24==1?1:2)|0;if((s|0)>(u|0)){j=18;break a}if(fh(d,(j|0)>32?j:32)|0){j=7;break a}kw(c[(d&p)+16>>2]|0,f|0,j|0)|0;q=d+8|0;j=m}else{g=(i|0)==75;l=d+8|0;if(!((b[(l&o)>>1]&9312)==0?(c[(d&p)+24>>2]|0)==0:0))Qg(d);c[(d&p)+16>>2]=f;if(!g){c[(d&p)+36>>2]=i;q=l;j=(m&65535|((i|0)==0?2048:1024))&65535;break}c[(d&p)+20>>2]=f;j=c[(r&p)>>2]|0;do if(!j)j=lc[c[8792>>2]&127](f)|0;else{if((c[(j&p)+276>>2]|0)>>>0<=f>>>0?(c[(j&p)+280>>2]|0)>>>0>f>>>0:0){j=e[(j&o)+248>>1]|0;break}j=lc[c[8792>>2]&127](f)|0}while(0);c[(d&p)+24>>2]=j;q=l;j=m}while(0);m=d+12|0;c[(m&p)>>2]=s;b[(q&o)>>1]=j;f=t?1:h;l=d+10|0;a[(l&n)>>0]=f;do if(f<<24>>24!=1&(s|0)>1){g=d+16|0;k=c[(g&p)>>2]|0;j=a[(k&n)>>0]|0;k=a[(k&n)+1>>0]|0;if(!(j<<24>>24==-1&k<<24>>24==-2))if(k<<24>>24!=-1|j<<24>>24!=-2)break;else j=3;else j=2;if(Vl(d)|0){j=7;break a}f=(c[(m&p)>>2]|0)+-2|0;c[(m&p)>>2]=f;i=c[(g&p)>>2]|0;lw(i|0,i+2|0,f|0)|0;a[((c[(g&p)>>2]|0)+(c[(m&p)>>2]|0)&n)>>0]=0;a[((c[(g&p)>>2]|0)+(c[(m&p)>>2]|0)&n)+1>>0]=0;b[(q&o)>>1]=e[(q&o)>>1]|512;a[(l&n)>>0]=j}while(0);j=(s|0)>(u|0)?18:0}while(0);return j|0}function Yg(a,c){a=a|0;c=+c;var d=0,e=0,f=0,g=0;g=i;i=i+16|0;if((i|0)>=(j|0))fa();e=g+8|0;f=g;d=a+8|0;if(!(b[(d&o)>>1]&9312))b[(d&o)>>1]=1;else vg(a);h[(e&q)>>3]=c;h[(f&q)>>3]=+h[(e&q)>>3];if(!(+h[(e&q)>>3]!=+h[(f&q)>>3])){h[(a&q)>>3]=c;b[(d&o)>>1]=8}i=g;return}function Zg(a,d,e){a=a|0;d=d|0;e=e|0;var f=0;f=a+8|0;if(!(b[(f&o)>>1]&9312))b[(f&o)>>1]=1;else vg(a);c[(a&p)>>2]=d;c[(a&p)+4>>2]=e;b[(f&o)>>1]=4;return}function _g(a,d){a=a|0;d=d|0;var f=0,g=0,h=0;f=a+8|0;if(b[(f&o)>>1]&9312)vg(a);c[(a&p)>>2]=c[(d&p)>>2];c[(a&p)+4>>2]=c[(d&p)+4>>2];c[(a&p)+8>>2]=c[(d&p)+8>>2];c[(a&p)+12>>2]=c[(d&p)+12>>2];c[(a&p)+16>>2]=c[(d&p)+16>>2];h=e[(f&o)>>1]|0;g=h&64511;b[(f&o)>>1]=g;if((h&18|0)!=0?(b[(d&o)+8>>1]&2048)==0:0){b[(f&o)>>1]=g|4096;f=Vl(a)|0}else f=0;return f|0}function $g(d,e){d=d|0;e=e|0;var f=0;f=d+8|0;if(!((b[(f&o)>>1]&9312)==0?(c[(d&p)+24>>2]|0)==0:0))Qg(d);b[(f&o)>>1]=16400;c[(d&p)+12>>2]=0;c[(d&p)>>2]=(e|0)<0?0:e;a[(d&n)+10>>0]=1;c[(d&p)+16>>2]=0;return}function ah(a){a=a|0;var b=0,d=0;d=i;i=i+16|0;if((i|0)>=(j|0))fa();b=d;if(a)if(!(c[(a&p)>>2]|0)){bd(21,47360,b);a=1}else a=0;else{bd(21,47320,b);a=1}i=d;return a|0}function bh(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0.0;f=i;i=i+16|0;if((i|0)>=(j|0))fa();e=f;if((c[(a&p)>>2]|0)>1?(d=c[(a&p)+72>>2]|0,(d|0)!=0):0)d=rc[d&127](a,b)|0;else{d=rc[c[(a&p)+64>>2]&127](a,e)|0;g=+h[(e&q)>>3]*864.0e5;a=+R(g)>=1.0?(g>0.0?~~+da(+Q(g/4294967296.0),4294967295.0)>>>0:~~+ba((g-+(~~g>>>0))/4294967296.0)>>>0):0;c[(b&p)>>2]=~~g>>>0;c[(b&p)+4>>2]=a}i=f;return d|0}function ch(d,e){d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0;a:do if((d|0)!=0&(e|0)!=0){i=d+(e*40|0)|0;j=c[(d&p)+32>>2]|0;g=j+65|0;h=a[(g&n)>>0]|0;if(c[(j&p)+520>>2]|0){e=d;while(1){if(c[(e&p)+24>>2]|0)mg(j,c[(e&p)+20>>2]|0);e=e+40|0;if(e>>>0>=i>>>0)break a}}do{e=d+8|0;if(!(b[(e&o)>>1]&9312)){f=d+24|0;if(c[(f&p)>>2]|0){mg(j,c[(d&p)+20>>2]|0);c[(f&p)>>2]=0}}else Qg(d);b[(e&o)>>1]=128;d=d+40|0}while(d>>>0>>0);a[(g&n)>>0]=h}while(0);return}function dh(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0;f=i;i=i+16|0;if((i|0)>=(j|0))fa();g=f;c[(g&p)>>2]=e;e=Wk(b,d,g)|0;mg(b,c[(a&p)>>2]|0);c[(a&p)>>2]=e;i=f;return}function eh(a,d,f){a=a|0;d=d|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,q=0;l=a+24|0;g=c[(l&p)>>2]|0;do if((g|0)<(d|0)){k=(d|0)<32?32:d;d=(g|0)>0;if((f|0)!=0&d?(h=a+16|0,i=c[(h&p)>>2]|0,j=a+20|0,(i|0)==(c[(j&p)>>2]|0)):0){g=Wl(c[(a&p)+32>>2]|0,i,k,((k|0)<0)<<31>>31)|0;c[(j&p)>>2]=g;c[(h&p)>>2]=g;f=0}else{g=a+32|0;if(d){d=a+20|0;mg(c[(g&p)>>2]|0,c[(d&p)>>2]|0)}else d=a+20|0;g=mh(c[(g&p)>>2]|0,k,((k|0)<0)<<31>>31)|0;c[(d&p)>>2]=g}if(!g){f=a+8|0;if(!(b[(f&o)>>1]&9312))b[(f&o)>>1]=1;else vg(a);c[(a&p)+16>>2]=0;c[(l&p)>>2]=0;f=7;break}d=c[(a&p)+32>>2]|0;do if(!d)d=lc[c[8792>>2]&127](g)|0;else{if((c[(d&p)+276>>2]|0)>>>0<=g>>>0?(c[(d&p)+280>>2]|0)>>>0>g>>>0:0){d=e[(d&o)+248>>1]|0;break}d=lc[c[8792>>2]&127](g)|0}while(0);c[(l&p)>>2]=d;q=21}else q=21;while(0);if((q|0)==21){if(((f|0)!=0?(m=c[(a&p)+16>>2]|0,(m|0)!=0):0)?(n=c[(a&p)+20>>2]|0,(m|0)!=(n|0)):0)kw(n|0,m|0,c[(a&p)+12>>2]|0)|0;d=a+8|0;f=b[(d&o)>>1]|0;if(!(f&1024))g=a+16|0;else{g=a+16|0;cc[c[(a&p)+36>>2]&31](c[(g&p)>>2]|0);f=b[(d&o)>>1]|0}c[(g&p)>>2]=c[(a&p)+20>>2];b[(d&o)>>1]=f&58367;f=0}return f|0}function fh(a,d){a=a|0;d=d|0;if((c[(a&p)+24>>2]|0)<(d|0))a=eh(a,d,0)|0;else{c[(a&p)+16>>2]=c[(a&p)+20>>2];a=a+8|0;b[(a&o)>>1]=(e[(a&o)>>1]|0)&13;a=0}return a|0} function mq(f,g){f=f|0;g=g|0;var h=0,k=0,l=0,m=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,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,ga=0,ha=0;ha=i;i=i+192|0;if((i|0)>=(j|0))fa();ba=ha+48|0;$=ha+24|0;_=ha+160|0;I=ha+156|0;S=ha+152|0;L=ha+148|0;V=ha+144|0;O=ha+140|0;H=ha+16|0;ea=ha;y=ha+128|0;x=ha+116|0;z=ha+96|0;l=ha+88|0;ga=f+8|0;ca=c[(ga&p)>>2]|0;da=c[(f&p)>>2]|0;c[(ea&p)>>2]=c[9286];c[(ea&p)+4>>2]=c[9287];c[(ea&p)+8>>2]=c[9288];a:do switch(g|0){case 9:{l=c[(f+(da+-1<<4)&p)+16>>2]|0;k=c[(ca&p)>>2]|0;if((Sq(ca,22,37104,0,0)|0)==0?(E=Oq(ca)|0,(E|0)!=0):0){if((l|0)!=7?(F=k+20|0,(c[(F&p)>>2]|0)>0):0){l=(l|0)==9?2:1;k=E+96|0;q=0;do{wh(E,4,q,l,0)|0;c[(k&p)>>2]=c[(k&p)>>2]|1<>2]|0))}wh(E,3,0,0,0)|0}break}case 8:{y=c[(ca&p)>>2]|0;C=y+65|0;if(((a[(C&n)>>0]|0)==0?(a[(ca&n)+18>>0]|0)==0:0)?(Y=ca+64|0,(c[(Y&p)>>2]|0)==0):0){B=Oq(ca)|0;if(B){do{}while((Pq(B,61)|0)!=0);wh(B,24,0,0,0)|0;do if(!(a[(C&n)>>0]|0)){r=ca+332|0;v=c[(r&p)>>2]|0;if((v|0)==0?(c[(ca&p)+316>>2]|0)==0:0)break;s=B+32|0;t=c[(s&p)>>2]|0;if(t)c[((c[(B&p)+4>>2]|0)&p)+8>>2]=t;c[((c[(B&p)+24>>2]|0)&p)+88>>2]=t+-1;w=y+20|0;b:do if((c[(w&p)>>2]|0)>0){h=B+96|0;k=ca+328|0;l=y+16|0;m=y+145|0;q=B+4|0;u=0;while(1){x=1<>2]=c[(h&p)>>2]|x,ba=c[((c[((c[(l&p)>>2]|0)+(u<<4)&p)+12>>2]|0)&p)+4>>2]|0,xh(B,wh(B,4,u,(c[(k&p)>>2]&x|0)!=0&1,c[(ca+(u<<2)&p)+336>>2]|0)|0,ba,-14),(a[(m&n)>>0]|0)==0):0)?(N=c[(q&p)>>2]|0,(N|0)!=0):0)a[(N+(((c[(s&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=1;u=u+1|0;if((u|0)>=(c[(w&p)>>2]|0))break b;v=c[(r&p)>>2]|0}}while(0);s=ca+452|0;if((c[(s&p)>>2]|0)>0){r=ca+520|0;q=0;do{t=c[((c[((c[(r&p)>>2]|0)+(q<<2)&p)>>2]|0)&p)+60>>2]|0;c:do if(!t)t=0;else while(1){if((c[(t&p)>>2]|0)==(y|0))break c;t=c[(t&p)+24>>2]|0;if(!t){t=0;break}}while(0);xh(B,wh(B,146,0,0,0)|0,t,-10);q=q+1|0}while((q|0)<(c[(s&p)>>2]|0))}c[(s&p)>>2]=0;s=Oq(ca)|0;r=ca+396|0;if((c[(r&p)>>2]|0)>0){q=ca+400|0;m=0;do{$=c[(q&p)>>2]|0;ba=c[($+(m<<4)&p)+12>>2]|0;xh(s,wh(s,145,c[($+(m<<4)&p)>>2]|0,c[($+(m<<4)&p)+4>>2]|0,d[($+(m<<4)&n)+8>>0]|0)|0,ba,-2);m=m+1|0}while((m|0)<(c[(r&p)>>2]|0))}k=c[(ca&p)+8>>2]|0;t=c[(ca&p)+404>>2]|0;if(t){h=(c[(ca&p)>>2]|0)+16|0;u=k+32|0;v=k+4|0;do{r=c[(t&p)+8>>2]|0;s=c[(t&p)+12>>2]|0;Qq(ca,0,r,c[((c[((c[(h&p)>>2]|0)+(r<<4)&p)+12>>2]|0)&p)+72>>2]|0,54);r=s+1|0;wh(k,28,0,s,r)|0;q=c[(u&p)>>2]|0;l=s+-1|0;m=c[(c[(t&p)+4>>2]&p)>>2]|0;xh(k,wh(k,97,0,l,0)|0,m,0);m=q+9|0;wh(k,108,0,m,0)|0;wh(k,47,0,0,s)|0;wh(k,78,l,q+7|0,s)|0;l=c[(v&p)>>2]|0;if(l)a[(l+(((c[(u&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=16;wh(k,103,0,r,0)|0;wh(k,47,0,1,s)|0;wh(k,16,0,m,0)|0;wh(k,9,0,q+2|0,0)|0;wh(k,25,0,s,0)|0;wh(k,61,0,0,0)|0;t=c[(t&p)>>2]|0}while((t|0)!=0)}s=c[(ca&p)+316>>2]|0;if((s|0)!=0?(a[(ca&n)+23>>0]=0,(c[(s&p)>>2]|0)>0):0){r=s+4|0;q=0;do{ba=c[(r&p)>>2]|0;Rq(ca,c[(ba+(q*20|0)&p)>>2]|0,c[(ba+(q*20|0)&p)+16>>2]|0);q=q+1|0}while((q|0)<(c[(s&p)>>2]|0))}wh(B,16,0,1,0)|0}while(0);if((c[(Y&p)>>2]|0)==0?(a[(C&n)>>0]|0)==0:0){if((c[(ca&p)+404>>2]|0)!=0?(Z=ca+68|0,(c[(Z&p)>>2]|0)==0):0)c[(Z&p)>>2]=1;Ah(B,ca);c[(ca&p)+12>>2]=101;a[(ca&n)+16>>0]=0}else aa=48}else aa=48;if((aa|0)==48)c[(ca&p)+12>>2]=1;c[(ca&p)+68>>2]=0;c[(ca&p)+72>>2]=0;c[(ca&p)+76>>2]=0;c[(ca&p)+440>>2]=0;c[(ca&p)+332>>2]=0}break}case 5:{a[(ca&n)+450>>0]=0;c[(ca&p)+440>>2]=0;break}case 6:{a[(ca&n)+450>>0]=1;c[(ca&p)+440>>2]=0;break}case 221:case 218:case 108:case 97:case 85:case 83:case 81:case 68:case 31:case 28:{c[(ea&p)>>2]=0;break}case 27:{a[((c[(ca&p)>>2]|0)&n)+250>>0]=0;aa=f+(da<<4)+16|0;ba=c[(aa&p)+4>>2]|0;ca=ea;c[(ca&p)>>2]=c[(aa&p)>>2];c[(ca&p)+4>>2]=ba;break}case 222:case 219:case 107:case 84:case 69:case 30:case 29:{c[(ea&p)>>2]=1;break}case 32:{Vq(ca,f+(da+-2<<4)+16|0,f+(da+-1<<4)+16|0,a[(f+(da<<4)&n)+16>>0]|0,0);break}case 33:{ba=f+(da<<4)+16|0;Vq(ca,0,0,0,c[(ba&p)>>2]|0);Mk(c[(ca&p)>>2]|0,c[(ba&p)>>2]|0,1);break}case 34:{a[(ea&n)>>0]=0;break}case 35:{l=c[(f+(da<<4)&p)+20>>2]|0;k=c[(f+(da<<4)&p)+16>>2]|0;if((l|0)==5?(Fc(k,20456,5)|0)==0:0){a[(ea&n)>>0]=32;break a}a[(ea&n)>>0]=0;c[(ba&p)>>2]=l;c[(ba&p)+4>>2]=k;th(ca,20464,ba);break}case 59:{ba=f+(da<<4)+16|0;c[(x&p)>>2]=Zq(ca,97,0,0,ba)|0;ba=c[(ba&p)>>2]|0;c[(x&p)+4>>2]=ba;c[(x&p)+8>>2]=ba+(c[(f+(da<<4)&p)+20>>2]|0);Yq(ca,x);break}case 61:{k=c[(f+(da<<4)&p)+16>>2]|0;l=c[(ca&p)+484>>2]|0;if((l|0)!=0?(v=b[(l&o)+38>>1]|0,v<<16>>16>=1):0)a[((c[(l&p)+4>>2]|0)+(((v<<16>>16)+-1|0)*24|0)&n)+20>>0]=k;break}case 70:{c[(ea&p)>>2]=0;break}case 71:{c[(ea&p)>>2]=c[(f+(da+-1<<4)&p)+16>>2]&~c[(f+(da<<4)&p)+20>>2]|c[(f+(da<<4)&p)+16>>2];break}case 73:case 72:{c[(ea&p)>>2]=0;c[(ea&p)+4>>2]=0;break}case 74:{c[(ea&p)>>2]=c[(f+(da<<4)&p)+16>>2];c[(ea&p)+4>>2]=255;break}case 76:{c[(ea&p)>>2]=7;break}case 75:{c[(ea&p)>>2]=c[(f+(da<<4)&p)+16>>2]<<8;c[(ea&p)+4>>2]=65280;break}case 65:{br(ca,0,f+(da+-2<<4)+16|0,c[(f+(da+-1<<4)&p)+16>>2]|0,c[(f+(da<<4)&p)+16>>2]|0);break}case 66:{k=c[(f+(da<<4)&p)+16>>2]|0;l=c[(ca&p)+484>>2]|0;if((l|0)!=0?(u=c[(l&p)+16>>2]|0,(u|0)!=0):0)a[(u&n)+24>>0]=k;break}case 67:{q=c[(ca&p)+484>>2]|0;if((q|0)!=0?(D=(b[(q&o)+38>>1]|0)+-1|0,r=c[(ca&p)>>2]|0,m=Wq(r,f+(da<<4)+16|0)|0,(m|0)!=0):0){if(!(cr(ca,m)|0)){mg(r,m);break a}s=q+4|0;mg(r,c[((c[(s&p)>>2]|0)+(D*24|0)&p)+16>>2]|0);c[((c[(s&p)>>2]|0)+(D*24|0)&p)+16>>2]=m;l=c[(q&p)+8>>2]|0;if(l)do{if((b[(c[(l&p)+4>>2]&o)>>1]|0)==(D|0))c[(c[(l&p)+32>>2]&p)>>2]=c[((c[(s&p)>>2]|0)+(D*24|0)&p)+16>>2];l=c[(l&p)+20>>2]|0}while((l|0)!=0)}break}case 13:{c[(ea&p)>>2]=7;break}case 117:case 115:case 16:case 15:case 14:{c[(ea&p)>>2]=d[(f+(da<<4)&n)+14>>0];break}case 46:{ca=c[(f+(da+-3<<4)&p)+16>>2]|0;c[(ea&p)>>2]=ca;c[(ea&p)+4>>2]=(c[(f+(da<<4)&p)+16>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0)-ca;break}case 47:{ca=c[(f+(da+-5<<4)&p)+16>>2]|0;c[(ea&p)>>2]=ca;c[(ea&p)+4>>2]=(c[(f+(da<<4)&p)+16>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0)-ca;break}case 49:{ca=c[(f+(da+-1<<4)&p)+16>>2]|0;c[(ea&p)>>2]=ca;c[(ea&p)+4>>2]=(c[(f+(da<<4)&p)+16>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0)-ca;break}case 92:case 54:{aa=f+(da<<4)+16|0;ba=c[(aa&p)+4>>2]|0;ca=ca+320|0;c[(ca&p)>>2]=c[(aa&p)>>2];c[(ca&p)+4>>2]=ba;break}case 57:case 55:{Yq(ca,f+(da<<4)+16|0);break}case 56:{Yq(ca,f+(da+-1<<4)+16|0);break}case 58:{c[(y&p)>>2]=Zq(ca,157,c[(f+(da<<4)&p)+16>>2]|0,0,0)|0;c[(y&p)+4>>2]=c[(f+(da+-1<<4)&p)+16>>2];c[(y&p)+8>>2]=c[(f+(da<<4)&p)+24>>2];Yq(ca,y);break}case 18:case 17:{if((Sq(ca,22,37136,0,0)|0)==0?(B=Oq(ca)|0,(B|0)!=0):0)wh(B,3,1,0,0)|0;break}case 19:{if((Sq(ca,22,37120,0,0)|0)==0?(A=Oq(ca)|0,(A|0)!=0):0)wh(A,3,1,1,0)|0;break}case 22:{Tq(ca,0,f+(da<<4)+16|0);break}case 38:{ba=c[(f+(da+-2<<4)&p)+16>>2]|0;c[(ea&p)>>2]=ba;c[(ea&p)+4>>2]=(c[(ca&p)+504>>2]|0)-ba+(c[(ca&p)+508>>2]|0);break}case 39:{x=f+(da<<4)+16|0;v=c[(ca&p)>>2]|0;k=c[(ca&p)+484>>2]|0;d:do if(k){w=k+38|0;if((b[(w&o)>>1]|0)>=(c[(v&p)+96>>2]|0)){c[(ba&p)>>2]=c[(k&p)>>2];th(ca,36528,ba);break}u=Wq(v,x)|0;if(u){s=b[(w&o)>>1]|0;h=s<<16>>16;e:do if(s<<16>>16>0){t=a[((d[(u&n)>>0]|0)&n)+9328>>0]|0;q=c[(k&p)+4>>2]|0;r=u+1|0;l=0;while(1){m=c[(q+(l*24|0)&p)>>2]|0;if(t<<24>>24==(a[((d[(m&n)>>0]|0)&n)+9328>>0]|0)?(dd(r,m+1|0)|0)==0:0)break;l=l+1|0;if((l|0)>=(h|0))break e}c[(ba&p)>>2]=u;th(ca,36552,ba);mg(v,u);break d}else q=c[(k&p)+4>>2]|0;while(0);r=k+4|0;do if(!(h&7)){q=ro(v,q,(h*24|0)+192|0,0)|0;if(!q){mg(v,u);break d}else{c[(r&p)>>2]=q;s=b[(w&o)>>1]|0;break}}while(0);ba=s<<16>>16;aa=q+(ba*24|0)|0;c[(aa&p)>>2]=0;c[(aa&p)+4>>2]=0;c[(aa&p)+8>>2]=0;c[(aa&p)+12>>2]=0;c[(aa&p)+16>>2]=0;c[(aa&p)+20>>2]=0;c[(aa&p)>>2]=u;a[(q+(ba*24|0)&n)+21>>0]=65;a[(q+(ba*24|0)&n)+22>>0]=1;b[(w&o)>>1]=(b[(w&o)>>1]|0)+1<<16>>16}}while(0);$=x;aa=c[($&p)+4>>2]|0;ba=ea;c[(ba&p)>>2]=c[($&p)>>2];c[(ba&p)+4>>2]=aa;c[(ca&p)+324>>2]=0;break}case 62:{_q(ca,0,c[(f+(da+-1<<4)&p)+16>>2]|0,c[(f+(da<<4)&p)+16>>2]|0,c[(f+(da+-2<<4)&p)+16>>2]|0);break}case 63:{$q(ca,0,0,0,0,c[(f+(da<<4)&p)+16>>2]|0,0,0,0,0)|0;break}case 64:{ar(ca,c[(f+(da+-1<<4)&p)+16>>2]|0);break}case 279:case 263:case 262:case 261:case 260:case 259:case 258:case 257:case 256:case 247:case 150:case 141:case 131:case 130:case 48:case 45:case 42:case 41:case 40:{aa=f+(da<<4)+16|0;ba=c[(aa&p)+4>>2]|0;ca=ea;c[(ca&p)>>2]=c[(aa&p)>>2];c[(ca&p)+4>>2]=ba;break}case 44:{l=f+(da<<4)+16|0;k=c[(ca&p)+484>>2]|0;if((k|0)!=0?(J=b[(k&o)+38>>1]|0,J<<16>>16>=1):0){ba=(J<<16>>16)+-1|0;aa=c[(k&p)+4>>2]|0;ca=Wq(c[(ca&p)>>2]|0,l)|0;c[(aa+(ba*24|0)&p)+12>>2]=ca;a[(aa+(ba*24|0)&n)+21>>0]=Xq(ca,aa+(ba*24|0)+22|0)|0}break}case 226:{l=da+-1|0;k=f+(l<<4)+16|0;r=f+(da<<4)+16|0;q=pr(c[(ca&p)>>2]|0,0,k,r)|0;s=da+-3|0;m=Zq(ca,75,c[(f+(s<<4)&p)+16>>2]|0,0,0)|0;c[(ea&p)>>2]=m;if(!m){Do(c[(ca&p)>>2]|0,q);q=0}else{c[(m&p)+20>>2]=kr(ca,0,q,0,0,0,0,0,0,0)|0;q=c[(ea&p)>>2]|0;ba=q+4|0;c[(ba&p)>>2]=c[(ba&p)>>2]|2099200;yr(ca,q)}if(c[(f+(da+-2<<4)&p)+16>>2]|0)c[(ea&p)>>2]=Zq(ca,19,q,0,0)|0;c[(ea&p)+4>>2]=c[(f+(s<<4)&p)+20>>2];h=c[(r&p)>>2]|0;if(!h)h=(c[(k&p)>>2]|0)+(c[(f+(l<<4)&p)+20>>2]|0)|0;else h=h+(c[(f+(da<<4)&p)+20>>2]|0)|0;c[(ea&p)+8>>2]=h;break}case 225:{l=da+-4|0;h=Zq(ca,75,c[(f+(l<<4)&p)+16>>2]|0,0,0)|0;c[(ea&p)>>2]=h;if(!h){Mk(c[(ca&p)>>2]|0,c[(f+(da+-1<<4)&p)+16>>2]|0,1);h=0}else{c[(h&p)+20>>2]=c[(f+(da+-1<<4)&p)+16>>2];h=c[(ea&p)>>2]|0;ba=h+4|0;c[(ba&p)>>2]=c[(ba&p)>>2]|2099200;yr(ca,h)}if(c[(f+(da+-3<<4)&p)+16>>2]|0)c[(ea&p)>>2]=Zq(ca,19,h,0,0)|0;c[(ea&p)+4>>2]=c[(f+(l<<4)&p)+20>>2];c[(ea&p)+8>>2]=(c[(f+(da<<4)&p)+16>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0);break}case 227:{h=Zq(ca,20,0,0,0)|0;c[(ea&p)>>2]=h;if(!h)Mk(c[(ca&p)>>2]|0,c[(f+(da+-1<<4)&p)+16>>2]|0,1);else{c[(h&p)+20>>2]=c[(f+(da+-1<<4)&p)+16>>2];ba=h+4|0;c[(ba&p)>>2]=c[(ba&p)>>2]|2099200;yr(ca,h)}c[(ea&p)+4>>2]=c[(f+(da+-3<<4)&p)+16>>2];c[(ea&p)+8>>2]=(c[(f+(da<<4)&p)+16>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0);break}case 228:{k=Zq(ca,136,c[(f+(da+-3<<4)&p)+16>>2]|0,0,0)|0;c[(ea&p)>>2]=k;if(!k){Nk(c[(ca&p)>>2]|0,c[(f+(da+-2<<4)&p)+16>>2]|0);Gk(c[(ca&p)>>2]|0,c[(f+(da+-1<<4)&p)+16>>2]|0)}else{l=c[(f+(da+-1<<4)&p)+16>>2]|0;h=c[(f+(da+-2<<4)&p)+16>>2]|0;if(l)h=lr(ca,h,l)|0;c[(k&p)+20>>2]=h;yr(ca,c[(ea&p)>>2]|0)}c[(ea&p)+4>>2]=c[(f+(da+-4<<4)&p)+16>>2];c[(ea&p)+8>>2]=(c[(f+(da<<4)&p)+16>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0);break}case 291:case 240:{c[(ea&p)>>2]=2;break}case 241:{c[(ea&p)>>2]=0;break}case 239:{$q(ca,f+(da+-7<<4)+16|0,f+(da+-6<<4)+16|0,pr(c[(ca&p)>>2]|0,0,f+(da+-4<<4)+16|0,0)|0,c[(f+(da+-2<<4)&p)+16>>2]|0,c[(f+(da+-10<<4)&p)+16>>2]|0,f+(da+-11<<4)+16|0,c[(f+(da<<4)&p)+16>>2]|0,0,c[(f+(da+-8<<4)&p)+16>>2]|0)|0;break}case 229:{c[(ea&p)>>2]=lr(ca,lr(ca,c[(f+(da+-4<<4)&p)+16>>2]|0,c[(f+(da+-2<<4)&p)+16>>2]|0)|0,c[(f+(da<<4)&p)+16>>2]|0)|0;break}case 230:{c[(ea&p)>>2]=lr(ca,lr(ca,0,c[(f+(da+-2<<4)&p)+16>>2]|0)|0,c[(f+(da<<4)&p)+16>>2]|0)|0;break}case 237:{c[(ea&p)>>2]=lr(ca,c[(f+(da+-2<<4)&p)+16>>2]|0,c[(f+(da<<4)&p)+16>>2]|0)|0;break}case 238:{c[(ea&p)>>2]=lr(ca,0,c[(f+(da<<4)&p)+16>>2]|0)|0;break}case 245:{h=lr(ca,0,vr(ca,0,f+(da+-1<<4)+16|0,1)|0)|0;c[(ea&p)>>2]=h;mr(ca,h,f+(da+-2<<4)+16|0,1);if(h){if((c[(h&p)>>2]|0)>(c[((c[(ca&p)>>2]|0)&p)+96>>2]|0)){c[(ba&p)>>2]=20632;th(ca,34544,ba)}a[((c[(h&p)+4>>2]|0)+(((c[(h&p)>>2]|0)+-1|0)*20|0)&n)+12>>0]=c[(f+(da<<4)&p)+16>>2]}break}case 244:{h=vr(ca,0,f+(da+-1<<4)+16|0,1)|0;h=lr(ca,c[(f+(da+-4<<4)&p)+16>>2]|0,h)|0;c[(ea&p)>>2]=h;mr(ca,h,f+(da+-2<<4)+16|0,1);if(h){if((c[(h&p)>>2]|0)>(c[((c[(ca&p)>>2]|0)&p)+96>>2]|0)){c[(ba&p)>>2]=20632;th(ca,34544,ba)}a[((c[(h&p)+4>>2]|0)+(((c[(h&p)>>2]|0)+-1|0)*20|0)&n)+12>>0]=c[(f+(da<<4)&p)+16>>2]}break}case 248:{v=c[(f+(da<<4)&p)+16>>2]|0;s=c[(f+(da+-1<<4)&p)+16>>2]|0;u=c[(ca&p)>>2]|0;do if((a[(u&n)+65>>0]|0)==0?(Gn(ca)|0)==0:0){r=v+12|0;k=bq(u,c[(v&p)+16>>2]|0,c[(r&p)>>2]|0)|0;if(!k){if(!s){c[(ba&p)>>2]=v;c[(ba&p)+4>>2]=0;th(ca,33056,ba)}else zr(ca,c[(r&p)>>2]|0);a[(ca&n)+17>>0]=1;break}if(a[(k&n)+51>>0]&3){c[(ba&p)>>2]=0;th(ca,33080,ba);break}s=c[(k&p)+24>>2]|0;f:do if(s){r=c[(u&p)+20>>2]|0;if((r|0)>0){q=c[(u&p)+16>>2]|0;t=0;while(1){m=t+1|0;if((c[(q+(t<<4)&p)+12>>2]|0)==(s|0)){m=t;break f}if((m|0)<(r|0))t=m;else break}}else m=0}else m=-1e6;while(0);s=c[(k&p)+12>>2]|0;r=u+16|0;q=c[((c[(r&p)>>2]|0)+(m<<4)&p)>>2]|0;l=(m|0)==1?13184:13208;if(((Sq(ca,9,l,0,q)|0)==0?(Sq(ca,(m|0)==0?10:12,c[(k&p)>>2]|0,c[(s&p)>>2]|0,q)|0)==0:0)?(K=Oq(ca)|0,(K|0)!=0):0){aa=c[(ca&p)+408>>2]|0;aa=(aa|0)==0?ca:aa;Ar(ca,m);$=aa+328|0;c[($&p)>>2]=c[($&p)>>2]|1<>0]=d[(aa&n)>>0]|1;aa=c[(k&p)>>2]|0;c[(ba&p)>>2]=c[((c[(r&p)>>2]|0)+(m<<4)&p)>>2];c[(ba&p)+4>>2]=l;c[(ba&p)+8>>2]=aa;Br(ca,33160,ba);Cr(ca,m,28536,c[(k&p)>>2]|0);Dr(ca,m);Er(ca,c[(k&p)+40>>2]|0,m);ca=c[(k&p)>>2]|0;xh(K,wh(K,125,m,0,0)|0,ca,0)}}while(0);Do(u,v);break}case 246:{c[(ea&p)>>2]=0;c[(ea&p)+4>>2]=0;break}case 250:case 249:{h=Oq(ca)|0;if(h){wh(h,13,0,0,0)|0;ca=h+96|0;c[(ca&p)>>2]=c[(ca&p)>>2]|1}break}case 251:{Fr(ca,f+(da+-1<<4)+16|0,f+(da<<4)+16|0,0,0);break}case 252:{Fr(ca,f+(da+-3<<4)+16|0,f+(da+-2<<4)+16|0,f+(da<<4)+16|0,0);break}case 253:{Fr(ca,f+(da+-4<<4)+16|0,f+(da+-3<<4)+16|0,f+(da+-1<<4)+16|0,0);break}case 254:{Fr(ca,f+(da+-3<<4)+16|0,f+(da+-2<<4)+16|0,f+(da<<4)+16|0,1);break}case 255:{Fr(ca,f+(da+-4<<4)+16|0,f+(da+-3<<4)+16|0,f+(da+-1<<4)+16|0,1);break}case 264:{h=c[(f+(da+-3<<4)&p)+16>>2]|0;l=(c[(f+(da<<4)&p)+16>>2]|0)-h+(c[(f+(da<<4)&p)+20>>2]|0)|0;k=c[(f+(da+-1<<4)&p)+16>>2]|0;aa=ca+488|0;z=c[(aa&p)>>2]|0;A=c[(ca&p)>>2]|0;c[(aa&p)>>2]=0;g:do if((c[(ca&p)+64>>2]|0)==0&(z|0)!=0){y=c[(z&p)>>2]|0;m=z+20|0;v=c[(m&p)>>2]|0;h:do if(v){u=c[(A&p)+20>>2]|0;if((u|0)>0){s=c[(A&p)+16>>2]|0;q=0;while(1){r=q+1|0;if((c[(s+(q<<4)&p)+12>>2]|0)==(v|0))break h;if((r|0)<(u|0))q=r;else{q=r;break}}}else q=0}else q=-1e6;while(0);c[(z&p)+28>>2]=k;x=(k|0)==0;if(!x){s=k;do{c[(s&p)+4>>2]=z;s=c[(s&p)+32>>2]|0}while((s|0)!=0)}c[(_&p)>>2]=y;if(!y)s=0;else{s=y;while(1)if(!(a[(s&n)>>0]|0))break;else s=s+1|0;s=s-y&1073741823}c[(_&p)+4>>2]=s;c[($&p)>>2]=ca;w=A+16|0;v=c[(w&p)>>2]|0;c[($&p)+12>>2]=c[(v+(q<<4)&p)>>2];c[($&p)+4>>2]=c[(v+(q<<4)&p)+12>>2];c[($&p)+16>>2]=10720;c[($&p)+20>>2]=_;v=(q|0)==1;c[($&p)+8>>2]=v&1;if(!x)do{if(fr($,c[(k&p)+8>>2]|0)|0){k=0;l=z;break g}if(Gr($,c[(k&p)+20>>2]|0)|0){k=0;l=z;break g}if(Hr($,c[(k&p)+24>>2]|0)|0){k=0;l=z;break g}k=c[(k&p)+32>>2]|0}while((k|0)!=0);if(!(Gr($,c[(z&p)+12>>2]|0)|0)){s=A+145|0;if(!(a[(s&n)>>0]|0)){r=Oq(ca)|0;if(!r){k=0;l=z;break}aa=c[(ca&p)+408>>2]|0;Ar(ca,q);aa=((aa|0)==0?ca:aa)+328|0;c[(aa&p)>>2]=c[(aa&p)>>2]|1<>0]=0}else t=0;aa=c[(z&p)+4>>2]|0;c[(ba&p)>>2]=c[((c[(w&p)>>2]|0)+(q<<4)&p)>>2];c[(ba&p)+4>>2]=v?13184:13208;c[(ba&p)+8>>2]=y;c[(ba&p)+12>>2]=aa;c[(ba&p)+16>>2]=t;Br(ca,30008,ba);mg(A,t);Dr(ca,q);c[(ba&p)>>2]=y;Ir(r,q,uh(A,30072,ba)|0);if(!(a[(s&n)>>0]|0)){k=0;l=z;break}}l=Ik((c[((c[(w&p)>>2]|0)+(q<<4)&p)+12>>2]|0)+40|0,y,z)|0;if(l){a[(A&n)+65>>0]=1;k=0;break}k=c[(m&p)>>2]|0;if((k|0)==(c[(z&p)+24>>2]|0)){k=bn(k+8|0,c[(z&p)+4>>2]|0,ba)|0;if(!k)k=0;else k=c[(k&p)+8>>2]|0;k=k+64|0;c[(z&p)+32>>2]=c[(k&p)>>2];c[(k&p)>>2]=z;k=0}else k=0}else{k=0;l=z}}else l=z;while(0);jg(A,l);Fk(A,k);break}case 265:{D=f+(da+-7<<4)+16|0;C=da+-6|0;E=f+(C<<4)+16|0;r=c[(f+(da+-5<<4)&p)+16>>2]|0;F=da+-4|0;B=c[(f+(F<<4)&p)+16>>2]|0;F=c[(f+(F<<4)&p)+20>>2]|0;H=c[(f+(da+-2<<4)&p)+16>>2]|0;I=c[(f+(da<<4)&p)+16>>2]|0;k=c[(f+(da+-8<<4)&p)+16>>2]|0;J=c[(ca&p)>>2]|0;z=(c[(f+(da+-10<<4)&p)+16>>2]|0)!=0;do if(z)if(!(c[(f+(C<<4)&p)+20>>2]|0)){c[($&p)>>2]=D;if(!H){s=0;t=0;break}else{v=1;aa=483;break}}else{th(ca,29664,ba);s=0;t=0;break}else{v=er(ca,D,E,$)|0;if((v|0)>-1&(H|0)!=0)aa=483;else{s=0;t=0}}while(0);do if((aa|0)==483){h=J+65|0;if(!(a[(h&n)>>0]|0)){x=J+145|0;if((a[(x&n)>>0]|0)!=0&(v|0)!=1){aa=H+12|0;mg(J,c[(aa&p)>>2]|0);c[(aa&p)>>2]=0}w=Jr(ca,H)|0;if((a[(x&n)>>0]|0)==0?((w|0)!=0?(c[(f+(C<<4)&p)+20>>2]|0)==0:0):0)v=(c[(w&p)+68>>2]|0)==(c[((c[(J&p)+16>>2]|0)&p)+28>>2]|0)?1:v;if((a[(h&n)>>0]|0)==0?(R=c[($&p)>>2]|0,aa=c[(ca&p)>>2]|0,c[(_&p)>>2]=ca,aa=c[(aa&p)+16>>2]|0,c[(_&p)+12>>2]=c[(aa+(v<<4)&p)>>2],c[(_&p)+4>>2]=c[(aa+(v<<4)&p)+12>>2],c[(_&p)+16>>2]=10720,c[(_&p)+20>>2]=R,c[(_&p)+8>>2]=(v|0)==1&1,(Kr(_,H)|0)==0):0){x=Jr(ca,H)|0;if(!x){if((a[(J&n)+144>>0]|0)!=1){s=0;t=0;break}a[(J&n)+146>>0]=1;s=0;t=0;break}if(a[(x&n)+44>>0]&16){th(ca,29712,ba);s=0;t=0;break}t=Wq(J,R)|0;if(t)if(!(Lr(ca,t)|0)){A=J+16|0;aa=bn((c[((c[(A&p)>>2]|0)+(v<<4)&p)+12>>2]|0)+40|0,t,S)|0;if((aa|0)!=0?(c[(aa&p)+8>>2]|0)!=0:0)if(!k){c[(ba&p)>>2]=R;th(ca,29760,ba);s=0;break}else{Ar(ca,v);s=0;break}y=c[(x&p)>>2]|0;if(!(Fc(y,25568,7)|0)){th(ca,29792,ba);s=ca+64|0;c[(s&p)>>2]=(c[(s&p)>>2]|0)+1;s=0;break}u=c[(x&p)+12>>2]|0;if((u|0)!=0&(r|0)!=49){c[(ba&p)>>2]=(r|0)==35?29872:29880;c[(ba&p)+4>>2]=H;c[(ba&p)+8>>2]=0;th(ca,29832,ba);s=0;break}q=(r|0)==49;if((u|0)==0&q){c[(ba&p)>>2]=H;c[(ba&p)+4>>2]=0;th(ca,29888,ba);s=0;break}m=x+68|0;x=c[(m&p)>>2]|0;i:do if(x){w=c[(J&p)+20>>2]|0;if((w|0)>0){k=c[(A&p)>>2]|0;l=0;while(1){h=l+1|0;if((c[(k+(l<<4)&p)+12>>2]|0)==(x|0)){h=l;break i}if((h|0)<(w|0))l=h;else break}}else h=0}else h=-1e6;while(0);x=c[(A&p)>>2]|0;k=c[(x+(h<<4)&p)>>2]|0;if(z)w=c[(x&p)+16>>2]|0;else w=k;x=(h|0)==1;if((Sq(ca,x|z?5:7,t,y,w)|0)==0?(Sq(ca,18,x?13184:13208,0,k)|0)==0:0){s=mh(J,36,0)|0;if(!s){s=0;break}y=s+0|0;k=y+36|0;do{a[(y&n)>>0]=0;y=y+1|0}while((y|0)<(k|0));c[(s&p)>>2]=t;c[(s&p)+4>>2]=kh(J,c[(H&p)+16>>2]|0)|0;c[(s&p)+20>>2]=c[((c[(A&p)>>2]|0)+(v<<4)&p)+12>>2];c[(s&p)+24>>2]=c[(m&p)>>2];a[(s&n)+8>>0]=B;a[(s&n)+9>>0]=q|(r|0)==35?1:2;c[(s&p)+12>>2]=Mr(J,I,1,0)|0;c[(s&p)+16>>2]=Nr(J,F)|0;c[(ca&p)+488>>2]=s;t=0}else s=0}else s=0;else{s=0;t=0}}else{s=0;t=0}}else{s=0;t=0}}while(0);mg(J,t);Do(J,H);Hk(J,F);Gk(J,I);if(!(c[(ca&p)+488>>2]|0))jg(J,s);if(!(c[(f+(C<<4)&p)+20>>2]|0)){aa=D;ba=c[(aa&p)+4>>2]|0;ca=ea;c[(ca&p)>>2]=c[(aa&p)>>2];c[(ca&p)+4>>2]=ba;break a}else{aa=E;ba=c[(aa&p)+4>>2]|0;ca=ea;c[(ca&p)>>2]=c[(aa&p)>>2];c[(ca&p)+4>>2]=ba;break a}}case 269:case 266:{c[(ea&p)>>2]=35;break}case 267:{c[(ea&p)>>2]=31;break}case 268:{c[(ea&p)>>2]=49;break}case 284:{l=c[(ca&p)>>2]|0;k=c[(f+(da+-1<<4)&p)+16>>2]|0;h=c[(f+(da<<4)&p)+16>>2]|0;m=a[(f+(da+-5<<4)&n)+16>>0]|0;q=Or(l,110,f+(da+-4<<4)+16|0)|0;if(q){c[(q&p)+24>>2]=Pr(l,k,1)|0;c[(q&p)+20>>2]=Mr(l,h,1,0)|0;a[(q&n)+1>>0]=m}Nk(l,k);Gk(l,h);c[(ea&p)>>2]=q;break}case 271:case 270:{c[(ea&p)>>2]=d[(f+(da<<4)&n)+14>>0];c[(ea&p)+4>>2]=0;break}case 272:{c[(ea&p)>>2]=110;c[(ea&p)+4>>2]=c[(f+(da<<4)&p)+16>>2];break}case 296:case 275:{c[(ea&p)>>2]=0;break}case 297:case 276:{c[(ea&p)>>2]=c[(f+(da<<4)&p)+16>>2];break}case 277:{ba=f+(da+-1<<4)+16|0;ca=f+(da+-2<<4)+16|0;c[((c[((c[(ca&p)>>2]|0)&p)+36>>2]|0)&p)+32>>2]=c[(ba&p)>>2];c[((c[(ca&p)>>2]|0)&p)+36>>2]=c[(ba&p)>>2];c[(ea&p)>>2]=c[(ca&p)>>2];break}case 278:{ca=f+(da+-1<<4)+16|0;ba=c[(ca&p)>>2]|0;c[(ba&p)+36>>2]=ba;c[(ea&p)>>2]=c[(ca&p)>>2];break}case 282:{th(ca,20736,ba);break}case 280:{_=f+(da<<4)+16|0;$=c[(_&p)+4>>2]|0;aa=ea;c[(aa&p)>>2]=c[(_&p)>>2];c[(aa&p)+4>>2]=$;th(ca,20640,ba);break}case 283:{th(ca,20824,ba);break}case 286:{h=c[(ca&p)>>2]|0;k=c[(f+(da<<4)&p)+16>>2]|0;l=Or(h,109,f+(da+-2<<4)+16|0)|0;if(l){c[(l&p)+20>>2]=Mr(h,k,1,0)|0;a[(l&n)+1>>0]=10}Gk(h,k);c[(ea&p)>>2]=l;break}case 287:{l=c[(ca&p)>>2]|0;q=c[(f+(da<<4)&p)+16>>2]|0;h=mh(l,40,0)|0;if(!h){Mk(l,q,1);h=0}else{y=h+0|0;k=y+40|0;do{a[(y&n)>>0]=0;y=y+1|0}while((y|0)<(k|0));a[(h&n)>>0]=119;c[(h&p)+8>>2]=q;a[(h&n)+1>>0]=10}c[(ea&p)>>2]=h;break}case 285:{q=c[(ca&p)>>2]|0;m=c[(f+(da+-1<<4)&p)+16>>2]|0;l=c[(f+(da<<4)&p)+16>>2]|0;k=a[(f+(da+-4<<4)&n)+16>>0]|0;h=Or(q,108,f+(da+-2<<4)+16|0)|0;if(!h)Hk(q,m);else{c[(h&p)+8>>2]=gr(q,l,1)|0;c[(h&p)+28>>2]=m;a[(h&n)+1>>0]=k}Mk(q,l,1);c[(ea&p)>>2]=h;break}case 288:{h=Zq(ca,57,0,0,0)|0;c[(ea&p)>>2]=h;if(h)a[(h&n)+1>>0]=4;c[(ea&p)+4>>2]=c[(f+(da+-3<<4)&p)+16>>2];c[(ea&p)+8>>2]=(c[(f+(da<<4)&p)+16>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0);break}case 289:{h=Zq(ca,57,0,0,f+(da+-1<<4)+16|0)|0;c[(ea&p)>>2]=h;if(h)a[(h&n)+1>>0]=c[(f+(da+-3<<4)&p)+16>>2];c[(ea&p)+4>>2]=c[(f+(da+-5<<4)&p)+16>>2];c[(ea&p)+8>>2]=(c[(f+(da<<4)&p)+16>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0);break}case 290:{c[(ea&p)>>2]=1;break}case 292:{c[(ea&p)>>2]=3;break}case 293:{k=c[(f+(da<<4)&p)+16>>2]|0;h=c[(f+(da+-1<<4)&p)+16>>2]|0;w=c[(ca&p)>>2]|0;do if((a[(w&n)+65>>0]|0)==0?(Gn(ca)|0)==0:0){x=c[(k&p)+12>>2]|0;v=c[(k&p)+16>>2]|0;u=w+20|0;if((c[(u&p)>>2]|0)>0){q=(x|0)==0;m=w+16|0;l=0;s=0;do{r=(l|0)<2^l;t=c[(m&p)>>2]|0;if(!(!q?(dd(c[(t+(r<<4)&p)>>2]|0,x)|0)!=0:0)){t=bn((c[(t+(r<<4)&p)+12>>2]|0)+40|0,v,L)|0;if(t){s=c[(t&p)+8>>2]|0;if(s)break}else s=0}l=l+1|0}while((l|0)<(c[(u&p)>>2]|0));if(s){Qr(ca,s);break}}if(!h){c[(ba&p)>>2]=k;c[(ba&p)+4>>2]=0;th(ca,29600,ba)}else zr(ca,x);a[(ca&n)+17>>0]=1}while(0);Do(w,k);break}case 294:{ba=c[(f+(da+-3<<4)&p)+16>>2]|0;Rr(ca,24,29360,ba,ba,c[(f+(da+-1<<4)&p)+16>>2]|0,c[(f+(da<<4)&p)+16>>2]|0);break}case 303:{Tr(ca,f+(da+-1<<4)+16|0,f+(da<<4)+16|0);break}case 304:{z=c[(f+(da+-3<<4)&p)+16>>2]|0;x=f+(da<<4)+16|0;y=c[(ca&p)>>2]|0;k=y+24|0;l=c[(k&p)>>2]|0;do if((a[(y&n)+65>>0]|0)==0?(X=Ur(ca,0,z+8|0)|0,(X|0)!=0):0){t=c[(ca&p)>>2]|0;A=X+68|0;v=c[(A&p)>>2]|0;j:do if(v){u=c[(t&p)+20>>2]|0;if((u|0)>0){t=c[(t&p)+16>>2]|0;r=0;while(1){s=r+1|0;if((c[(t+(r<<4)&p)+12>>2]|0)==(v|0)){s=r;break j}if((s|0)<(u|0))r=s;else break}}else s=0}else s=-1e6;while(0);h=c[((c[(y&p)+16>>2]|0)+(s<<4)&p)>>2]|0;c[(k&p)>>2]=c[(k&p)>>2]|2097152;q=Wq(y,x)|0;if(q){if((_h(y,q,h)|0)==0?(bq(y,q,h)|0)==0:0){if(Vr(ca,c[(X&p)>>2]|0)|0)break;if(Lr(ca,q)|0)break;t=c[(X&p)>>2]|0;if(c[(X&p)+12>>2]|0){c[(ba&p)>>2]=t;th(ca,26088,ba);break}if(Sq(ca,26,h,t,0)|0)break;if(hr(ca,X)|0)break;if(!(a[(X&n)+44>>0]&16))m=0;else{t=c[(X&p)+60>>2]|0;k:do if(!t)t=0;else while(1){if((c[(t&p)>>2]|0)==(y|0))break k;t=c[(t&p)+24>>2]|0;if(!t){t=0;break}}while(0);m=(c[((c[(c[(t&p)+8>>2]&p)>>2]|0)&p)+76>>2]|0)==0?0:t}t=Oq(ca)|0;if(!t)break;aa=(m|0)!=0;r=ca+408|0;$=c[(r&p)>>2]|0;$=($|0)==0?ca:$;Ar(ca,s);_=$+328|0;c[(_&p)>>2]=c[(_&p)>>2]|1<>0]=d[($&n)>>0]|aa&1;Dr(ca,s);if(aa){$=ca+72|0;aa=(c[($&p)>>2]|0)+1|0;c[($&p)>>2]=aa;xh(t,wh(t,97,0,aa,0)|0,q,0);xh(t,wh(t,152,aa,0,0)|0,m,-10);aa=c[(r&p)>>2]|0;a[(((aa|0)==0?ca:aa)&n)+21>>0]=1}x=c[(X&p)>>2]|0;w=Nn(x,-1)|0;do if((c[(k&p)>>2]&524288|0)!=0?(T=bn((c[(A&p)>>2]|0)+56|0,x,V)|0,(T|0)!=0):0){t=c[(T&p)+8>>2]|0;if(!t)break;r=t;t=0;do{t=Wr(c[(ca&p)>>2]|0,t,c[(c[(r&p)>>2]&p)>>2]|0)|0;r=c[(r&p)+12>>2]|0}while((r|0)!=0);if(!t)break;c[(ba&p)>>2]=h;c[(ba&p)+4>>2]=(s|0)==1?13184:13208;c[(ba&p)+8>>2]=x;c[(ba&p)+12>>2]=q;c[(ba&p)+16>>2]=t;Br(ca,26120,ba);mg(y,t)}while(0);c[(ba&p)>>2]=h;c[(ba&p)+4>>2]=(s|0)==1?13184:13208;c[(ba&p)+8>>2]=q;c[(ba&p)+12>>2]=q;c[(ba&p)+16>>2]=q;c[(ba&p)+20>>2]=q;c[(ba&p)+24>>2]=q;c[(ba&p)+28>>2]=w;c[(ba&p)+32>>2]=x;Br(ca,26192,ba);if(_h(y,26576,h)|0){aa=c[(X&p)>>2]|0;c[(ba&p)>>2]=h;c[(ba&p)+4>>2]=q;c[(ba&p)+8>>2]=aa;Br(ca,26592,ba)}s=Xr(ca,X)|0;if(s){c[(ba&p)>>2]=q;c[(ba&p)+4>>2]=q;c[(ba&p)+8>>2]=s;Br(ca,26656,ba);mg(y,s)}do if(c[(k&p)>>2]&524288){s=bn((c[(A&p)>>2]|0)+56|0,c[(X&p)>>2]|0,ba)|0;if(!s)break;s=c[(s&p)+8>>2]|0;if(!s)break;do{r=c[(s&p)>>2]|0;if((r|0)!=(X|0))Yr(ca,r,c[(r&p)>>2]|0);s=c[(s&p)+12>>2]|0}while((s|0)!=0)}while(0);Yr(ca,X,q);break}c[(ba&p)>>2]=q;th(ca,26024,ba)}else q=0}else q=0;while(0);Do(y,z);mg(y,q);c[(k&p)>>2]=l;break}case 295:{ba=c[(f+(da<<4)&p)+16>>2]|0;Rr(ca,25,29176,ba,0,0,ba);break}case 300:{Sr(ca,0,0);break}case 302:{Tr(ca,0,0);break}case 301:{Sr(ca,f+(da+-1<<4)+16|0,f+(da<<4)+16|0);break}case 305:{y=c[(ca&p)>>2]|0;if((c[(ca&p)+64>>2]|0)==0?(M=y+65|0,(a[(M&n)>>0]|0)==0):0){l=c[(ca&p)+484>>2]|0;t=c[(l&p)+68>>2]|0;l:do if(t){s=c[(y&p)+20>>2]|0;if((s|0)>0){r=c[(y&p)+16>>2]|0;m=0;while(1){q=m+1|0;if((c[(r+(m<<4)&p)+12>>2]|0)==(t|0)){A=m;break l}if((q|0)<(s|0))m=q;else{A=q;break}}}else A=0}else A=-1e6;while(0);h=c[((c[(y&p)+16>>2]|0)+(A<<4)&p)>>2]|0;k=(c[(l&p)>>2]|0)+16|0;u=(b[(l&o)+38>>1]|0)+-1|0;s=c[(l&p)+4>>2]|0;t=c[(s+(u*24|0)&p)+4>>2]|0;z=_h(y,k,h)|0;if(!(Sq(ca,26,h,c[(z&p)>>2]|0,0)|0)){if(!t)v=0;else v=(a[(t&n)>>0]|0)==101?0:t;if(a[(s+(u*24|0)&n)+23>>0]&1){th(ca,25608,ba);break a}if(c[(l&p)+8>>2]|0){th(ca,25640,ba);break a}x=y+24|0;if((c[(x&p)>>2]&524288|0)!=0?(c[(l&p)+16>>2]|0)!=0&(v|0)!=0:0){th(ca,25672,ba);break a}w=(v|0)!=0;if(!((a[(s+(u*24|0)&n)+20>>0]|0)==0|w)){th(ca,25736,ba);break a}do if(w){c[(O&p)>>2]=0;if(Zr(y,v,1,65,O)|0){a[(M&n)>>0]=1;break a}t=c[(O&p)>>2]|0;if(!t){th(ca,25792,ba);break a}else{Mh(t);break}}while(0);t=c[(f+(da<<4)&p)+16>>2]|0;s=f+(da<<4)+20|0;r=c[(s&p)>>2]|0;if((t|0)!=0?(U=jw(r|0,0,1,0)|0,U=mh(y,U,G)|0,(U|0)!=0):0){kw(U|0,t|0,r|0)|0;a[(U+r&n)>>0]=0;t=(c[(s&p)>>2]|0)+-1|0;s=c[(x&p)>>2]|0;m:do if((t|0)>0){t=U+t|0;do{$=a[(t&n)>>0]|0;if($<<24>>24!=59?(a[($&255&n)+10368>>0]&1)==0:0)break m;a[(t&n)>>0]=0;t=t+-1|0}while(t>>>0>U>>>0)}while(0);c[(x&p)>>2]=c[(x&p)>>2]|2097152;$=c[(l&p)+48>>2]|0;c[(ba&p)>>2]=h;c[(ba&p)+4>>2]=(A|0)==1?13184:13208;c[(ba&p)+8>>2]=$;c[(ba&p)+12>>2]=U;c[(ba&p)+16>>2]=$+1;c[(ba&p)+20>>2]=k;Br(ca,25840,ba);mg(y,U);c[(x&p)>>2]=s}t=w?3:2;v=Oq(ca)|0;if(v){s=ca+19|0;q=a[(s&n)>>0]|0;do if(q<<24>>24){ba=q+-1<<24>>24;a[(s&n)>>0]=ba;r=c[(ca+((ba&255)<<2)&p)+24>>2]|0;if(!(ba<<24>>24)){s=c[(ca&p)+72>>2]|0;aa=663;break}else{k=q+-2<<24>>24;a[(s&n)>>0]=k;k=c[(ca+((k&255)<<2)&p)+24>>2]|0;break}}else{r=ca+72|0;s=(c[(r&p)>>2]|0)+1|0;c[(r&p)>>2]=s;r=s;aa=663}while(0);if((aa|0)==663){k=s+1|0;c[(ca&p)+72>>2]=k}wh(v,51,A,r,2)|0;m=v+96|0;c[(m&p)>>2]=c[(m&p)>>2]|1<>2]|0;s=v+32|0;if(q)a[(q+(((c[(s&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=-112;wh(v,52,A,2,k)|0;s=c[(s&p)>>2]|0;if(s>>>0>m>>>0)c[((c[(l&p)>>2]|0)+(m*20|0)&p)+8>>2]=s;c[((c[(v&p)+24>>2]|0)&p)+88>>2]=s+-1;_r(ca,r);_r(ca,k)}Yr(ca,z,c[(z&p)>>2]|0)}}break}case 306:{w=c[(ca&p)>>2]|0;a[(w&n)+250>>0]=0;h=c[(f+(da<<4)&p)+16>>2]|0;x=w+65|0;do if((a[(x&n)>>0]|0)==0?(Q=Ur(ca,0,h+8|0)|0,(Q|0)!=0):0){if(a[(Q&n)+44>>0]&16){th(ca,25400,ba);break}if(c[(Q&p)+12>>2]|0){th(ca,25440,ba);break}if(!(Vr(ca,c[(Q&p)>>2]|0)|0)){s=c[(Q&p)+68>>2]|0;n:do if(s){r=c[(w&p)+20>>2]|0;if((r|0)>0){q=c[(w&p)+16>>2]|0;t=0;while(1){m=t+1|0;if((c[(q+(t<<4)&p)+12>>2]|0)==(s|0)){m=t;break n}if((m|0)<(r|0))t=m;else break}}else m=0}else m=-1e6;while(0);v=mh(w,76,0)|0;if(v){y=v+0|0;k=y+76|0;do{a[(y&n)>>0]=0;y=y+1|0}while((y|0)<(k|0));c[(ca&p)+484>>2]=v;r=v+40|0;b[(r&o)>>1]=1;t=b[(Q&o)+38>>1]|0;q=v+38|0;b[(q&o)>>1]=t;t=((((t<<16>>16)+-1|0)/8|0)*192|0)+192|0;s=mh(w,t,0)|0;if(s)fw(s|0,0,t|0)|0;t=v+4|0;c[(t&p)>>2]=s;c[(ba&p)>>2]=c[(Q&p)>>2];ba=uh(w,25472,ba)|0;c[(v&p)>>2]=ba;s=c[(t&p)>>2]|0;if((s|0)==0|(ba|0)==0){a[(x&n)>>0]=1;break}kw(s|0,c[(Q&p)+4>>2]|0,(b[(q&o)>>1]|0)*24|0)|0;if((b[(q&o)>>1]|0)>0){s=0;do{ba=c[(t&p)>>2]|0;aa=ba+(s*24|0)|0;c[(aa&p)>>2]=kh(w,c[(aa&p)>>2]|0)|0;ba=ba+(s*24|0)+4|0;s=s+1|0;c[(ba&p)>>2]=0;c[(ba&p)+4>>2]=0;c[(ba&p)+8>>2]=0;c[(ba&p)+12>>2]=0}while((s|0)<(b[(q&o)>>1]|0))}c[(v&p)+68>>2]=c[((c[(w&p)+16>>2]|0)+(m<<4)&p)+12>>2];c[(v&p)+48>>2]=c[(Q&p)+48>>2];b[(r&o)>>1]=1;ba=c[(ca&p)+408>>2]|0;Ar(ca,m);ba=((ba|0)==0?ca:ba)+328|0;c[(ba&p)>>2]=c[(ba&p)>>2]|1<>2]|0);t=c[(ca&p)+484>>2]|0;if(t){h=c[(ca&p)>>2]|0;s=c[(t&p)+68>>2]|0;o:do if(s){r=c[(h&p)+20>>2]|0;if((r|0)>0){m=c[(h&p)+16>>2]|0;l=0;while(1){q=l+1|0;if((c[(m+(l<<4)&p)+12>>2]|0)==(s|0)){q=l;break o}if((q|0)<(r|0))l=q;else break}}else q=0}else q=-1e6;while(0);l=t+44|0;a[(l&n)>>0]=d[(l&n)>>0]|16;c[(t&p)+52>>2]=0;as(h,t,Wq(h,k)|0);as(h,t,0);as(h,t,kh(h,c[(t&p)>>2]|0)|0);c[(ca&p)+500>>2]=(c[(k&p)>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0)-(c[(ca&p)+496>>2]|0);l=c[(t&p)+56>>2]|0;if(l)Sq(ca,29,c[(t&p)>>2]|0,c[(l&p)>>2]|0,c[((c[((c[(ca&p)>>2]|0)&p)+16>>2]|0)+(q<<4)&p)>>2]|0)|0}break}case 322:{c[(ea&p)>>2]=0;break}case 324:case 323:{c[(ea&p)>>2]=c[(f+(da<<4)&p)+16>>2];break}case 325:{c[(ea&p)>>2]=cs(ca,0,f+(da+-5<<4)+16|0,c[(f+(da+-4<<4)&p)+16>>2]|0,c[(f+(da+-1<<4)&p)+16>>2]|0)|0;break}case 326:{c[(ea&p)>>2]=cs(ca,c[(f+(da+-7<<4)&p)+16>>2]|0,f+(da+-5<<4)+16|0,c[(f+(da+-4<<4)&p)+16>>2]|0,c[(f+(da+-1<<4)&p)+16>>2]|0)|0;break}case 314:{bs(ca);c[(ca&p)+512>>2]=0;c[(ca&p)+516>>2]=0;break}case 318:case 317:case 316:{l=ca+512|0;k=c[(l&p)>>2]|0;h=c[(f+(da<<4)&p)+16>>2]|0;if(!k){c[(l&p)>>2]=h;h=c[(f+(da<<4)&p)+20>>2]|0}else h=h+(c[(f+(da<<4)&p)+20>>2]|0)-k|0;c[(ca&p)+516>>2]=h;break}case 77:{c[(ea&p)>>2]=8;break}case 78:{c[(ea&p)>>2]=9;break}case 79:{c[(ea&p)>>2]=6;break}case 80:{c[(ea&p)>>2]=0;break}case 103:case 100:case 98:case 82:{c[(ea&p)>>2]=c[(f+(da<<4)&p)+16>>2];break}case 86:{c[(ea&p)+4>>2]=0;c[(ea&p)>>2]=0;break}case 87:{aa=f+(da+-1<<4)+16|0;ba=c[(aa&p)+4>>2]|0;ca=ea;c[(ca&p)>>2]=c[(aa&p)>>2];c[(ca&p)+4>>2]=ba;break}case 90:{c[(ca&p)+324>>2]=0;break}case 109:{h=da+-7|0;r=f+(da+-3<<4)+16|0;q=f+(da+-2<<4)+16|0;x=c[(f+(da<<4)&p)+16>>2]|0;t=c[(f+(da+-6<<4)&p)+16>>2]|0;s=c[(f+(da+-4<<4)&p)+16>>2]|0;c[(I&p)>>2]=0;w=c[(ca&p)>>2]|0;if((c[(ca&p)+440>>2]|0)>0){th(ca,35440,ba);Mk(w,x,1);break a}Uq(ca,r,q,t,1,0,s);l=c[(ca&p)+484>>2]|0;if((l|0)!=0?(c[(ca&p)+64>>2]|0)==0:0){er(ca,r,q,I)|0;t=c[(l&p)+68>>2]|0;p:do if(t){r=c[(w&p)+20>>2]|0;if((r|0)>0){q=c[(w&p)+16>>2]|0;m=0;while(1){s=m+1|0;if((c[(q+(m<<4)&p)+12>>2]|0)==(t|0)){s=m;break p}if((s|0)<(r|0))m=s;else break}}else s=0}else s=-1e6;while(0);ba=c[(I&p)>>2]|0;aa=c[(ca&p)>>2]|0;c[(_&p)>>2]=ca;aa=c[(aa&p)+16>>2]|0;c[(_&p)+12>>2]=c[(aa+(s<<4)&p)>>2];c[(_&p)+4>>2]=c[(aa+(s<<4)&p)+12>>2];c[(_&p)+16>>2]=35480;c[(_&p)+20>>2]=ba;c[(_&p)+8>>2]=(s|0)==1&1;if(fr(_,x)|0){Mk(w,x,1);break a}c[(l&p)+12>>2]=gr(w,x,1)|0;Mk(w,x,1);if(a[(w&n)+65>>0]|0)break a;if(!(a[(w&n)+145>>0]|0))hr(ca,l)|0;q=ca+504|0;m=c[(q&p)>>2]|0;q=c[(q&p)+4>>2]|0;ba=$;c[(ba&p)>>2]=m;c[(ba&p)+4>>2]=q;ba=a[(m&n)>>0]|0;if(!(ba<<24>>24==59|ba<<24>>24==0)){m=m+q|0;c[($&p)>>2]=m}r=$+4|0;c[(r&p)>>2]=0;s=c[(f+(h<<4)&p)+16>>2]|0;q=m-s|0;do{ba=q;q=q+-1|0;l=s+q|0;if((ba|0)<=0)break}while((a[((d[(l&n)>>0]|0)&n)+10368>>0]&1)!=0);c[($&p)>>2]=l;c[(r&p)>>2]=1;Vq(ca,0,$,0,0);break a}Mk(w,x,1);break}case 93:{_q(ca,c[(f+(da+-3<<4)&p)+16>>2]|0,c[(f+(da<<4)&p)+16>>2]|0,c[(f+(da+-2<<4)&p)+16>>2]|0,0);break}case 94:{$q(ca,0,0,0,c[(f+(da+-2<<4)&p)+16>>2]|0,c[(f+(da<<4)&p)+16>>2]|0,0,0,0,0)|0;break}case 95:{ar(ca,c[(f+(da+-2<<4)&p)+16>>2]|0);break}case 96:{br(ca,c[(f+(da+-6<<4)&p)+16>>2]|0,f+(da+-3<<4)+16|0,c[(f+(da+-2<<4)&p)+16>>2]|0,c[(f+(da+-1<<4)&p)+16>>2]|0);k=c[(f+(da<<4)&p)+16>>2]|0;l=c[(ca&p)+484>>2]|0;if((l|0)!=0?(q=c[(l&p)+16>>2]|0,(q|0)!=0):0)a[(q&n)+24>>0]=k;break}case 99:{c[(ea&p)>>2]=10;break}case 101:{a[(ea&n)>>0]=10;break}case 102:{a[(ea&n)>>0]=c[(f+(da<<4)&p)+16>>2];break}case 104:{c[(ea&p)>>2]=4;break}case 105:{c[(ea&p)>>2]=5;break}case 106:{dr(ca,c[(f+(da<<4)&p)+16>>2]|0,0,c[(f+(da+-1<<4)&p)+16>>2]|0);break}case 110:{dr(ca,c[(f+(da<<4)&p)+16>>2]|0,1,c[(f+(da+-1<<4)&p)+16>>2]|0);break}case 111:{c[(z&p)>>2]=c[5124];c[(z&p)+4>>2]=c[5125];c[(z&p)+8>>2]=c[5126];c[(z&p)+12>>2]=c[5127];c[(z&p)+16>>2]=c[5128];ba=f+(da<<4)+16|0;ir(ca,c[(ba&p)>>2]|0,z)|0;Mk(c[(ca&p)>>2]|0,c[(ba&p)>>2]|0,1);break}case 112:{t=c[(f+(da<<4)&p)+16>>2]|0;do if(t){c[(t&p)+68>>2]=c[(f+(da+-1<<4)&p)+16>>2];l=c[(t&p)+52>>2]|0;if(l){m=128;q=1;r=t;s=0;while(1){c[(r&p)+56>>2]=s;$=r+6|0;aa=e[($&o)>>1]|64;b[($&o)>>1]=aa;m=aa&m;if(!l)break;aa=l;l=c[(l&p)+52>>2]|0;q=q+1|0;s=r;r=aa}if(m){ca=t+6|0;b[(ca&o)>>1]=e[(ca&o)>>1]|256;break}aa=c[((c[(ca&p)>>2]|0)&p)+104>>2]|0;if((aa|0)>0&(q|0)>(aa|0))th(ca,20520,ba)}}else Qn(c[(ca&p)>>2]|0,c[(f+(da+-1<<4)&p)+16>>2]|0);while(0);c[(ea&p)>>2]=t;break}case 116:{c[(ea&p)>>2]=116;break}case 119:case 113:{c[(ea&p)>>2]=c[(f+(da<<4)&p)+16>>2];break}case 114:{h=c[(f+(da<<4)&p)+16>>2]|0;do if(h){if(c[(h&p)+52>>2]|0){c[(l&p)+4>>2]=0;h=kr(ca,0,jr(ca,0,0,0,l,h,0,0)|0,0,0,0,0,0,0,0)|0;if(!h){aa=192;break}}ba=c[(f+(da+-1<<4)&p)+16>>2]|0;a[(h&n)+4>>0]=ba;c[(h&p)+52>>2]=c[(f+(da+-2<<4)&p)+16>>2];if((ba|0)!=116)a[(ca&n)+22>>0]=1}else aa=192;while(0);if((aa|0)==192){Mk(c[(ca&p)>>2]|0,c[(f+(da+-2<<4)&p)+16>>2]|0,1);h=0}c[(ea&p)>>2]=h;break}case 121:{h=kr(ca,c[(f+(da+-1<<4)&p)+16>>2]|0,0,0,0,0,0,128,0,0)|0;if(!h){c[(ea&p)>>2]=c[(f+(da+-4<<4)&p)+16>>2];break a}else{a[(h&n)+4>>0]=116;c[(h&p)+52>>2]=c[(f+(da+-4<<4)&p)+16>>2];c[(ea&p)>>2]=h;break a}}case 122:{b[(ea&o)>>1]=1;break}case 124:case 123:{b[(ea&o)>>1]=0;break}case 242:case 236:case 161:case 154:case 126:{c[(ea&p)>>2]=0;break}case 243:case 125:{c[(ea&p)>>2]=c[(f+(da+-1<<4)&p)+16>>2];break}case 167:{c[(ea&p)>>2]=c[(f+(da+-2<<4)&p)+16>>2];c[(ea&p)+4>>2]=c[(f+(da<<4)&p)+16>>2];break}case 168:{c[(ea&p)+4>>2]=c[(f+(da+-2<<4)&p)+16>>2];c[(ea&p)>>2]=c[(f+(da<<4)&p)+16>>2];break}case 169:{h=c[(f+(da+-5<<4)&p)+16>>2]|0;if(h){ba=ca+532|0;c[(h&p)+4>>2]=c[(ba&p)>>2];c[(ba&p)>>2]=h;a[(ca&n)+449>>0]=1}ba=f+(da+-2<<4)+16|0;or(ca,c[(ba&p)>>2]|0,f+(da+-1<<4)+16|0);rr(ca,c[(ba&p)>>2]|0,c[(f+(da<<4)&p)+16>>2]|0);break}case 176:{h=c[(f+(da+-6<<4)&p)+16>>2]|0;if(h){ba=ca+532|0;c[(h&p)+4>>2]=c[(ba&p)>>2];c[(ba&p)>>2]=h;a[(ca&n)+449>>0]=1}tr(ca,c[(f+(da+-3<<4)&p)+16>>2]|0,0,c[(f+(da+-2<<4)&p)+16>>2]|0,d[(f+(da+-5<<4)&n)+16>>0]|0);break}case 173:{ba=lr(ca,c[(f+(da+-4<<4)&p)+16>>2]|0,c[(f+(da<<4)&p)+16>>2]|0)|0;c[(ea&p)>>2]=ba;mr(ca,ba,f+(da+-2<<4)+16|0,1);break}case 174:{ba=lr(ca,0,c[(f+(da<<4)&p)+16>>2]|0)|0;c[(ea&p)>>2]=ba;mr(ca,ba,f+(da+-2<<4)+16|0,1);break}case 175:{h=c[(f+(da+-5<<4)&p)+16>>2]|0;if(h){ba=ca+532|0;c[(h&p)+4>>2]=c[(ba&p)>>2];c[(ba&p)>>2]=h;a[(ca&n)+449>>0]=1}tr(ca,c[(f+(da+-2<<4)&p)+16>>2]|0,c[(f+(da<<4)&p)+16>>2]|0,c[(f+(da+-1<<4)&p)+16>>2]|0,d[(f+(da+-4<<4)&n)+16>>0]|0);break}case 181:{c[(ea&p)>>2]=ur(c[(ca&p)>>2]|0,c[(f+(da+-2<<4)&p)+16>>2]|0,f+(da<<4)+16|0)|0;break}case 182:{c[(ea&p)>>2]=ur(c[(ca&p)>>2]|0,0,f+(da<<4)+16|0)|0;break}case 183:{ca=f+(da<<4)+16|0;c[(ea&p)>>2]=c[(ca&p)>>2];c[(ea&p)+4>>2]=c[(ca&p)+4>>2];c[(ea&p)+8>>2]=c[(ca&p)+8>>2];break}case 177:{a[(ea&n)>>0]=a[(f+(da<<4)&n)+16>>0]|0;break}case 178:{a[(ea&n)>>0]=5;break}case 184:{c[(ea&p)>>2]=c[(f+(da+-1<<4)&p)+16>>2];c[(ea&p)+4>>2]=c[(f+(da+-2<<4)&p)+16>>2];c[(ea&p)+8>>2]=(c[(f+(da<<4)&p)+16>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0);break}case 191:case 190:case 185:{ba=f+(da<<4)+16|0;c[(ea&p)>>2]=Zq(ca,d[(f+(da<<4)&n)+14>>0]|0,0,0,ba)|0;ca=c[(ba&p)>>2]|0;c[(ea&p)+4>>2]=ca;c[(ea&p)+8>>2]=ca+(c[(f+(da<<4)&p)+20>>2]|0);break}case 187:case 186:{ba=f+(da<<4)+16|0;c[(ea&p)>>2]=Zq(ca,27,0,0,ba)|0;ca=c[(ba&p)>>2]|0;c[(ea&p)+4>>2]=ca;c[(ea&p)+8>>2]=ca+(c[(f+(da<<4)&p)+20>>2]|0);break}case 188:{aa=f+(da+-2<<4)+16|0;ba=f+(da<<4)+16|0;c[(ea&p)>>2]=Zq(ca,122,Zq(ca,27,0,0,aa)|0,Zq(ca,27,0,0,ba)|0,0)|0;c[(ea&p)+4>>2]=c[(aa&p)>>2];c[(ea&p)+8>>2]=(c[(ba&p)>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0);break}case 189:{aa=f+(da+-4<<4)+16|0;ba=f+(da<<4)+16|0;c[(ea&p)>>2]=Zq(ca,122,Zq(ca,27,0,0,aa)|0,Zq(ca,122,Zq(ca,27,0,0,f+(da+-2<<4)+16|0)|0,Zq(ca,27,0,0,ba)|0,0)|0,0)|0;c[(ea&p)+4>>2]=c[(aa&p)>>2];c[(ea&p)+8>>2]=(c[(ba&p)>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0);break}case 192:{x=f+(da<<4)+16|0;w=f+(da<<4)+20|0;do if(((c[(w&p)>>2]|0)>>>0>1?(C=c[(x&p)>>2]|0,(a[(C&n)>>0]|0)==35):0)?((d[(C&n)+1>>0]|0)+-48|0)>>>0<10:0){if(!(a[(ca&n)+18>>0]|0)){c[(ba&p)>>2]=x;th(ca,20432,ba);c[(ea&p)>>2]=0;break}r=Zq(ca,159,0,0,x)|0;c[(ea&p)>>2]=r;if(r)Dn((c[(x&p)>>2]|0)+1|0,r+28|0)|0}else aa=298;while(0);q:do if((aa|0)==298?(P=Zq(ca,135,0,0,x)|0,c[(ea&p)>>2]=P,W=c[(x&p)>>2]|0,c[(ea&p)+4>>2]=W,c[(ea&p)+8>>2]=W+(c[(w&p)>>2]|0),W=c[(ca&p)>>2]|0,(P|0)!=0):0){z=c[(P&p)+8>>2]|0;r=z+1|0;do if(a[(r&n)>>0]|0){y=(z|0)==0;if(y)A=0;else{t=z;while(1)if(!(a[(t&n)>>0]|0))break;else t=t+1|0;A=t-z&1073741823}r:do if((a[(z&n)>>0]|0)==63){$=Ul(r,H,A+-1|0,1)|0;m=H;q=c[(m&p)>>2]|0;m=c[(m&p)+4>>2]|0;t=q&65535;b[(P&o)+32>>1]=t;r=c[(W&p)+124>>2]|0;aa=((r|0)<0)<<31>>31;if((m|0)<0|(m|0)==0&q>>>0<1|($|0)!=0|((m|0)>(aa|0)|(m|0)==(aa|0)&q>>>0>r>>>0)){c[(ba&p)>>2]=r;th(ca,33296,ba);t=0}r=ca+440|0;aa=c[(r&p)>>2]|0;$=((aa|0)<0)<<31>>31;if((m|0)>($|0)|(m|0)==($|0)&q>>>0>aa>>>0)c[(r&p)>>2]=q}else{r=c[(ca&p)+444>>2]|0;s:do if((r|0)>0){q=c[(ca&p)+472>>2]|0;t=0;l=0;while(1){m=c[(q+(t<<2)&p)>>2]|0;if((m|0)!=0?(_v(m,z)|0)==0:0)break;l=l+1<<16>>16;t=l<<16>>16;if((t|0)>=(r|0)){aa=315;break s}}t=t+1&65535;r=P+32|0;b[(r&o)>>1]=t;if(t<<16>>16)break r}else aa=315;while(0);if((aa|0)==315)r=P+32|0;aa=ca+440|0;t=(c[(aa&p)>>2]|0)+1|0;c[(aa&p)>>2]=t;t=t&65535;b[(r&o)>>1]=t}while(0);m=t<<16>>16;if(t<<16>>16>0){t=ca+444|0;if((m|0)>(c[(t&p)>>2]|0)){r=ca+472|0;q=ro(W,c[(r&p)>>2]|0,m<<2,0)|0;if(!q)break q;c[(r&p)>>2]=q;aa=c[(t&p)>>2]|0;fw(q+(aa<<2)|0,0,m-aa<<2|0)|0;c[(t&p)>>2]=m}if((a[(z&n)>>0]|0)==63){r=m+-1|0;if(!(c[((c[(ca&p)+472>>2]|0)+(r<<2)&p)>>2]|0))t=0;else break}else{t=m+-1|0;r=t;t=c[((c[(ca&p)+472>>2]|0)+(t<<2)&p)>>2]|0}q=ca+472|0;mg(W,t);if(!y?(s=jw(A|0,0,1,0)|0,s=mh(W,s,G)|0,(s|0)!=0):0){kw(s|0,z|0,A|0)|0;a[(s+A&n)>>0]=0}else s=0;c[((c[(q&p)>>2]|0)+(r<<2)&p)>>2]=s}}else{$=ca+440|0;aa=(c[($&p)>>2]|0)+1|0;c[($&p)>>2]=aa;b[(P&o)+32>>1]=aa}while(0);if((c[(ca&p)+64>>2]|0)==0?(c[(ca&p)+440>>2]|0)>(c[(W&p)+124>>2]|0):0)th(ca,33344,ba)}while(0);ca=c[(x&p)>>2]|0;c[(ea&p)+4>>2]=ca;c[(ea&p)+8>>2]=ca+(c[(w&p)>>2]|0);break}case 196:{ba=f+(da+-3<<4)+16|0;c[(ea&p)>>2]=wr(ca,0,ba)|0;c[(ea&p)+4>>2]=c[(ba&p)>>2];c[(ea&p)+8>>2]=(c[(f+(da<<4)&p)+16>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0);break}case 197:{ba=f+(da<<4)+16|0;c[(ea&p)>>2]=wr(ca,0,ba)|0;ca=c[(ba&p)>>2]|0;c[(ea&p)+4>>2]=ca;c[(ea&p)+8>>2]=ca+(c[(f+(da<<4)&p)+20>>2]|0);break}case 193:{aa=da+-2|0;ba=f+(da<<4)+16|0;c[(ea&p)>>2]=vr(ca,c[(f+(aa<<4)&p)+16>>2]|0,ba,1)|0;c[(ea&p)+4>>2]=c[(f+(aa<<4)&p)+20>>2];c[(ea&p)+8>>2]=(c[(ba&p)>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0);break}case 194:{c[(ea&p)>>2]=Zq(ca,38,c[(f+(da+-3<<4)&p)+16>>2]|0,0,f+(da+-1<<4)+16|0)|0;c[(ea&p)+4>>2]=c[(f+(da+-5<<4)&p)+16>>2];c[(ea&p)+8>>2]=(c[(f+(da<<4)&p)+16>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0);break}case 195:{l=f+(da+-1<<4)+16|0;h=c[(l&p)>>2]|0;if(h){if((c[(h&p)>>2]|0)>(c[((c[(ca&p)>>2]|0)&p)+112>>2]|0)){c[(ba&p)>>2]=f+(da+-4<<4)+16;th(ca,20576,ba);h=c[(l&p)>>2]|0}}else h=0;ba=f+(da+-4<<4)+16|0;h=wr(ca,h,ba)|0;c[(ea&p)>>2]=h;c[(ea&p)+4>>2]=c[(ba&p)>>2];c[(ea&p)+8>>2]=(c[(f+(da<<4)&p)+16>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0);if(!((h|0)==0?1:(b[(f+(da+-2<<4)&o)+16>>1]|0)==0)){ca=h+4|0;c[(ca&p)>>2]=c[(ca&p)>>2]|16}break}case 205:case 204:case 203:case 202:case 201:case 200:case 199:case 198:{ba=da+-2|0;c[(ea&p)>>2]=Zq(ca,d[(f+(da+-1<<4)&n)+14>>0]|0,c[(f+(ba<<4)&p)+16>>2]|0,c[(f+(da<<4)&p)+16>>2]|0,0)|0;c[(ea&p)+4>>2]=c[(f+(ba<<4)&p)+20>>2];c[(ea&p)+8>>2]=c[(f+(da<<4)&p)+24>>2];break}case 206:{aa=f+(da<<4)+16|0;ba=c[(aa&p)+4>>2]|0;ca=ea;c[(ca&p)>>2]=c[(aa&p)>>2];c[(ca&p)+4>>2]=ba;c[(ea&p)+8>>2]=0;break}case 207:{aa=f+(da<<4)+16|0;ba=c[(aa&p)+4>>2]|0;ca=ea;c[(ca&p)>>2]=c[(aa&p)>>2];c[(ca&p)+4>>2]=ba;c[(ea&p)+8>>2]=1;break}case 208:{l=da+-2|0;ba=da+-1|0;h=wr(ca,lr(ca,lr(ca,0,c[(f+(da<<4)&p)+16>>2]|0)|0,c[(f+(l<<4)&p)+16>>2]|0)|0,f+(ba<<4)+16|0)|0;c[(ea&p)>>2]=h;if(c[(f+(ba<<4)&p)+24>>2]|0){h=Zq(ca,19,h,0,0)|0;c[(ea&p)>>2]=h}c[(ea&p)+4>>2]=c[(f+(l<<4)&p)+20>>2];c[(ea&p)+8>>2]=c[(f+(da<<4)&p)+24>>2];if(h){ca=h+4|0;c[(ca&p)>>2]=c[(ca&p)>>2]|128}break}case 210:{ba=da+-1|0;c[(ea&p)>>2]=Zq(ca,d[(f+(da<<4)&n)+14>>0]|0,c[(f+(ba<<4)&p)+16>>2]|0,0,0)|0;c[(ea&p)+4>>2]=c[(f+(ba<<4)&p)+20>>2];c[(ea&p)+8>>2]=(c[(f+(da<<4)&p)+16>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0);break}case 209:{l=da+-4|0;ba=da+-3|0;h=wr(ca,lr(ca,lr(ca,lr(ca,0,c[(f+(da+-2<<4)&p)+16>>2]|0)|0,c[(f+(l<<4)&p)+16>>2]|0)|0,c[(f+(da<<4)&p)+16>>2]|0)|0,f+(ba<<4)+16|0)|0;c[(ea&p)>>2]=h;if(c[(f+(ba<<4)&p)+24>>2]|0){h=Zq(ca,19,h,0,0)|0;c[(ea&p)>>2]=h}c[(ea&p)+4>>2]=c[(f+(l<<4)&p)+20>>2];c[(ea&p)+8>>2]=c[(f+(da<<4)&p)+24>>2];if(h){ca=h+4|0;c[(ca&p)>>2]=c[(ca&p)>>2]|128}break}case 223:{l=f+(da+-1<<4)+16|0;h=c[(l&p)>>2]|0;do if(h){if((c[(h&p)>>2]|0)==1){ba=c[(h&p)+4>>2]|0;h=c[(ba&p)>>2]|0;c[(ba&p)>>2]=0;Nk(c[(ca&p)>>2]|0,c[(l&p)>>2]|0);if(h){ba=h+4|0;c[(ba&p)>>2]=c[(ba&p)>>2]&-769|512}c[(ea&p)>>2]=Zq(ca,(c[(f+(da+-3<<4)&p)+16>>2]|0)!=0?78:79,c[(f+(da+-4<<4)&p)+16>>2]|0,h,0)|0;break}h=Zq(ca,75,c[(f+(da+-4<<4)&p)+16>>2]|0,0,0)|0;c[(ea&p)>>2]=h;if(!h){Nk(c[(ca&p)>>2]|0,c[(l&p)>>2]|0);h=0}else{c[(h&p)+20>>2]=c[(l&p)>>2];h=c[(ea&p)>>2]|0;yr(ca,h)}if(c[(f+(da+-3<<4)&p)+16>>2]|0)c[(ea&p)>>2]=Zq(ca,19,h,0,0)|0}else{c[(ea&p)>>2]=Zq(ca,132,0,0,20616+(c[(f+(da+-3<<4)&p)+16>>2]<<3)|0)|0;Gk(c[(ca&p)>>2]|0,c[(f+(da+-4<<4)&p)+16>>2]|0)}while(0);c[(ea&p)+4>>2]=c[(f+(da+-4<<4)&p)+20>>2];c[(ea&p)+8>>2]=(c[(f+(da<<4)&p)+16>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0);break}case 211:{ba=da+-2|0;c[(ea&p)>>2]=Zq(ca,77,c[(f+(ba<<4)&p)+16>>2]|0,0,0)|0;c[(ea&p)+4>>2]=c[(f+(ba<<4)&p)+20>>2];c[(ea&p)+8>>2]=(c[(f+(da<<4)&p)+16>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0);break}case 212:{$=da+-2|0;aa=f+(da<<4)+16|0;ba=Zq(ca,73,c[(f+($<<4)&p)+16>>2]|0,c[(aa&p)>>2]|0,0)|0;c[(ea&p)>>2]=ba;c[(ea&p)+4>>2]=c[(f+($<<4)&p)+20>>2];c[(ea&p)+8>>2]=c[(f+(da<<4)&p)+24>>2];xr(ca,c[(aa&p)>>2]|0,ba,76);break}case 213:{$=da+-3|0;aa=f+(da<<4)+16|0;ba=Zq(ca,148,c[(f+($<<4)&p)+16>>2]|0,c[(aa&p)>>2]|0,0)|0;c[(ea&p)>>2]=ba;c[(ea&p)+4>>2]=c[(f+($<<4)&p)+20>>2];c[(ea&p)+8>>2]=c[(f+(da<<4)&p)+24>>2];xr(ca,c[(aa&p)>>2]|0,ba,77);break}case 215:case 214:{ba=da+-1|0;c[(ea&p)>>2]=Zq(ca,d[(f+(ba<<4)&n)+14>>0]|0,c[(f+(da<<4)&p)+16>>2]|0,0,0)|0;c[(ea&p)+4>>2]=c[(f+(ba<<4)&p)+16>>2];c[(ea&p)+8>>2]=c[(f+(da<<4)&p)+24>>2];break}case 216:{c[(ea&p)>>2]=Zq(ca,157,c[(f+(da<<4)&p)+16>>2]|0,0,0)|0;c[(ea&p)+4>>2]=c[(f+(da+-1<<4)&p)+16>>2];c[(ea&p)+8>>2]=c[(f+(da<<4)&p)+24>>2];break}case 217:{c[(ea&p)>>2]=Zq(ca,158,c[(f+(da<<4)&p)+16>>2]|0,0,0)|0;c[(ea&p)+4>>2]=c[(f+(da+-1<<4)&p)+16>>2];c[(ea&p)+8>>2]=c[(f+(da<<4)&p)+24>>2];break}case 220:{k=lr(ca,lr(ca,0,c[(f+(da+-2<<4)&p)+16>>2]|0)|0,c[(f+(da<<4)&p)+16>>2]|0)|0;l=da+-4|0;h=Zq(ca,74,c[(f+(l<<4)&p)+16>>2]|0,0,0)|0;c[(ea&p)>>2]=h;if(!h)Nk(c[(ca&p)>>2]|0,k);else c[(h&p)+20>>2]=k;if(c[(f+(da+-3<<4)&p)+16>>2]|0)c[(ea&p)>>2]=Zq(ca,19,c[(ea&p)>>2]|0,0,0)|0;c[(ea&p)+4>>2]=c[(f+(l<<4)&p)+20>>2];c[(ea&p)+8>>2]=c[(f+(da<<4)&p)+24>>2];break}case 224:{h=Zq(ca,119,0,0,0)|0;c[(ea&p)>>2]=h;if(!h)Mk(c[(ca&p)>>2]|0,c[(f+(da+-1<<4)&p)+16>>2]|0,1);else{c[(h&p)+20>>2]=c[(f+(da+-1<<4)&p)+16>>2];ba=c[(ea&p)>>2]|0;aa=ba+4|0;c[(aa&p)>>2]=c[(aa&p)>>2]|2099200;yr(ca,ba)}c[(ea&p)+4>>2]=c[(f+(da+-2<<4)&p)+16>>2];c[(ea&p)+8>>2]=(c[(f+(da<<4)&p)+16>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0);break}case 118:{c[(ea&p)>>2]=kr(ca,c[(f+(da+-6<<4)&p)+16>>2]|0,c[(f+(da+-5<<4)&p)+16>>2]|0,c[(f+(da+-4<<4)&p)+16>>2]|0,c[(f+(da+-3<<4)&p)+16>>2]|0,c[(f+(da+-2<<4)&p)+16>>2]|0,c[(f+(da+-1<<4)&p)+16>>2]|0,b[(f+(da+-7<<4)&o)+16>>1]|0,c[(f+(da<<4)&p)+16>>2]|0,c[(f+(da<<4)&p)+20>>2]|0)|0;break}case 120:{c[(ea&p)>>2]=kr(ca,c[(f+(da+-1<<4)&p)+16>>2]|0,0,0,0,0,0,128,0,0)|0;break}case 127:{l=da+-1|0;q=lr(ca,c[(f+(da+-2<<4)&p)+16>>2]|0,c[(f+(l<<4)&p)+16>>2]|0)|0;c[(ea&p)>>2]=q;if(c[(f+(da<<4)&p)+20>>2]|0)mr(ca,q,f+(da<<4)+16|0,1);s=c[(ca&p)>>2]|0;if(q){r=(c[(q&p)+4>>2]|0)+(((c[(q&p)>>2]|0)+-1|0)*20|0)+8|0;mg(s,c[(r&p)>>2]|0);m=c[(f+(l<<4)&p)+20>>2]|0;q=(c[(f+(l<<4)&p)+24>>2]|0)-m|0;if((m|0)!=0?(h=jw(q|0,((q|0)<0)<<31>>31|0,1,0)|0,h=mh(s,h,G)|0,(h|0)!=0):0){kw(h|0,m|0,q|0)|0;a[(h+q&n)>>0]=0}else h=0;c[(r&p)>>2]=h}break}case 133:{l=mh(c[(ca&p)>>2]|0,80,0)|0;if(l){y=l+0|0;k=y+80|0;do{a[(y&n)>>0]=0;y=y+1|0}while((y|0)<(k|0))}c[(ea&p)>>2]=l;break}case 134:{q=c[(f+(da<<4)&p)+16>>2]|0;c[(ea&p)>>2]=q;if(q){l=c[(q&p)>>2]|0;k=l+-1|0;if((k|0)>0)while(1){a[(q+(k*72|0)&n)+44>>0]=a[(q+((l+-2|0)*72|0)&n)+44>>0]|0;l=k+-1|0;if((l|0)>0){ca=k;k=l;l=ca}else break}a[(q&n)+44>>0]=0}break}case 128:{aa=c[(ca&p)>>2]|0;c[(ba&p)>>2]=0;c[(ba&p)+4>>2]=0;ba=nr(aa,116,ba,0)|0;c[(ea&p)>>2]=lr(ca,c[(f+(da+-1<<4)&p)+16>>2]|0,ba)|0;break}case 132:{c[(ea&p)+4>>2]=0;break}case 129:{ba=Zq(ca,116,0,0,f+(da<<4)+16|0)|0;ba=Zq(ca,122,Zq(ca,27,0,0,f+(da+-2<<4)+16|0)|0,ba,0)|0;c[(ea&p)>>2]=lr(ca,c[(f+(da+-3<<4)&p)+16>>2]|0,ba)|0;break}case 136:{c[(ea&p)>>2]=0;break}case 137:{ba=jr(ca,c[(f+(da+-6<<4)&p)+16>>2]|0,f+(da+-5<<4)+16|0,f+(da+-4<<4)+16|0,f+(da+-3<<4)+16|0,0,c[(f+(da+-1<<4)&p)+16>>2]|0,c[(f+(da<<4)&p)+16>>2]|0)|0;c[(ea&p)>>2]=ba;or(ca,ba,f+(da+-2<<4)+16|0);break}case 135:{h=c[(f+(da+-1<<4)&p)+16>>2]|0;c[(ea&p)>>2]=h;if((h|0)!=0?(w=c[(h&p)>>2]|0,(w|0)>0):0)a[(h+((w+-1|0)*72|0)&n)+44>>0]=c[(f+(da<<4)&p)+16>>2];break}case 138:{c[(ea&p)>>2]=jr(ca,c[(f+(da+-6<<4)&p)+16>>2]|0,0,0,f+(da+-2<<4)+16|0,c[(f+(da+-4<<4)&p)+16>>2]|0,c[(f+(da+-1<<4)&p)+16>>2]|0,c[(f+(da<<4)&p)+16>>2]|0)|0;break}case 139:{l=f+(da+-6<<4)+16|0;q=c[(l&p)>>2]|0;if((((q|0)==0?(c[(f+(da+-2<<4)&p)+20>>2]|0)==0:0)?(c[(f+(da+-1<<4)&p)+16>>2]|0)==0:0)?(c[(f+(da<<4)&p)+16>>2]|0)==0:0){c[(ea&p)>>2]=c[(f+(da+-4<<4)&p)+16>>2];break a}s=f+(da+-4<<4)+16|0;k=c[(s&p)>>2]|0;r=c[(k&p)>>2]|0;if((r|0)==1){l=jr(ca,q,0,0,f+(da+-2<<4)+16|0,0,c[(f+(da+-1<<4)&p)+16>>2]|0,c[(f+(da<<4)&p)+16>>2]|0)|0;c[(ea&p)>>2]=l;if(l){_=(c[(l&p)>>2]|0)+-1|0;ba=c[(s&p)>>2]|0;aa=ba+16|0;c[(l+(_*72|0)&p)+16>>2]=c[(aa&p)>>2];$=ba+12|0;c[(l+(_*72|0)&p)+12>>2]=c[($&p)>>2];ba=ba+28|0;c[(l+(_*72|0)&p)+28>>2]=c[(ba&p)>>2];c[($&p)>>2]=0;c[(aa&p)>>2]=0;c[(ba&p)>>2]=0}Do(c[(ca&p)>>2]|0,c[(s&p)>>2]|0);break a}if(k){m=r+-1|0;if((m|0)>0){q=r;while(1){a[(k+(m*72|0)&n)+44>>0]=a[(k+((q+-2|0)*72|0)&n)+44>>0]|0;q=m+-1|0;if((q|0)>0){ba=m;m=q;q=ba}else break}}a[(k&n)+44>>0]=0}ba=kr(ca,0,k,0,0,0,0,512,0,0)|0;c[(ea&p)>>2]=jr(ca,c[(l&p)>>2]|0,0,0,f+(da+-2<<4)+16|0,ba,c[(f+(da+-1<<4)&p)+16>>2]|0,c[(f+(da<<4)&p)+16>>2]|0)|0;break}case 149:case 140:{c[(ea&p)>>2]=0;c[(ea&p)+4>>2]=0;break}case 144:{c[(ea&p)>>2]=qr(ca,f+(da+-1<<4)+16|0,0,0)|0;break}case 145:{c[(ea&p)>>2]=qr(ca,f+(da+-2<<4)+16|0,f+(da+-1<<4)+16|0,0)|0;break}case 146:{c[(ea&p)>>2]=qr(ca,f+(da+-3<<4)+16|0,f+(da+-2<<4)+16|0,f+(da+-1<<4)+16|0)|0;break}case 233:case 231:case 171:case 164:case 147:{c[(ea&p)>>2]=c[(f+(da<<4)&p)+16>>2];break}case 234:case 232:case 170:case 163:case 148:{c[(ea&p)>>2]=0;break}case 151:{c[(ea&p)>>2]=0;c[(ea&p)+4>>2]=1;break}case 143:{c[(ea&p)>>2]=1;break}case 142:{c[(ea&p)>>2]=pr(c[(ca&p)>>2]|0,0,f+(da+-1<<4)+16|0,f+(da<<4)+16|0)|0;break}case 157:{h=lr(ca,0,c[(f+(da+-1<<4)&p)+16>>2]|0)|0;c[(ea&p)>>2]=h;if((h|0)!=0?(k=c[(h&p)+4>>2]|0,(k|0)!=0):0)a[(k&n)+12>>0]=c[(f+(da<<4)&p)+16>>2];break}case 160:case 158:{c[(ea&p)>>2]=0;break}case 159:{c[(ea&p)>>2]=1;break}case 165:{c[(ea&p)>>2]=0;c[(ea&p)+4>>2]=0;break}case 166:{c[(ea&p)>>2]=c[(f+(da<<4)&p)+16>>2];c[(ea&p)+4>>2]=0;break}case 179:case 153:{c[(ea&p)>>2]=0;break}case 180:case 152:{c[(ea&p)>>2]=c[(f+(da+-1<<4)&p)+16>>2];break}case 172:{l=c[(f+(da+-7<<4)&p)+16>>2]|0;if(l){aa=ca+532|0;c[(l&p)+4>>2]=c[(aa&p)>>2];c[(aa&p)>>2]=l;a[(ca&n)+449>>0]=1}m=f+(da+-4<<4)+16|0;or(ca,c[(m&p)>>2]|0,f+(da+-3<<4)+16|0);q=f+(da+-1<<4)+16|0;l=c[(q&p)>>2]|0;if(l){if((c[(l&p)>>2]|0)>(c[((c[(ca&p)>>2]|0)&p)+96>>2]|0)){c[(ba&p)>>2]=20560;th(ca,34544,ba);l=c[(q&p)>>2]|0}}else l=0;sr(ca,c[(m&p)>>2]|0,l,c[(f+(da<<4)&p)+16>>2]|0,d[(f+(da+-5<<4)&n)+16>>0]|0);break}case 235:case 162:case 155:{c[(ea&p)>>2]=c[(f+(da<<4)&p)+16>>2];break}case 156:{h=lr(ca,c[(f+(da+-3<<4)&p)+16>>2]|0,c[(f+(da+-1<<4)&p)+16>>2]|0)|0;c[(ea&p)>>2]=h;if(h)a[((c[(h&p)+4>>2]|0)+(((c[(h&p)>>2]|0)+-1|0)*20|0)&n)+12>>0]=c[(f+(da<<4)&p)+16>>2];break}case 7:{a[(ca&n)+450>>0]=2;c[(ca&p)+440>>2]=0;break}case 23:{Tq(ca,1,f+(da<<4)+16|0);break}case 24:{Tq(ca,2,f+(da<<4)+16|0);break}case 26:{Uq(ca,f+(da+-1<<4)+16|0,f+(da<<4)+16|0,c[(f+(da+-4<<4)&p)+16>>2]|0,0,0,c[(f+(da+-2<<4)&p)+16>>2]|0);break}default:{}}while(0);h=a[(g<<1&n)+20912>>0]|0;r=h&255;q=a[(g<<1&n)+20913>>0]|0;m=q&255;s=(c[(f&p)>>2]|0)-m|0;c[(f&p)>>2]=s;l=b[((b[(e[(f+(da-m<<4)&o)+12>>1]<<1&o)+21568>>1]|0)+r<<1&o)+22184>>1]|0;k=l&65535;do if((l&65535)<642)if(!(q<<24>>24)){kq(f,k,r,ea);break}else{c[(f&p)>>2]=s+1;da=1-m+da|0;b[(f+(da<<4)&o)+12>>1]=l;a[(f+(da<<4)&n)+14>>0]=h;da=f+(da<<4)+16|0;c[(da&p)>>2]=c[(ea&p)>>2];c[(da&p)+4>>2]=c[(ea&p)+4>>2];c[(da&p)+8>>2]=c[(ea&p)+8>>2];break}else{h=c[(ga&p)>>2]|0;if((s|0)>-1)do Pn(f);while((c[(f&p)>>2]|0)>-1);c[(ga&p)>>2]=h}while(0);i=ha;return}function nq(e,f){e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=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,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,ga=0;da=i;i=i+64|0;if((i|0)>=(j|0))fa();ca=da+8|0;Z=da;q=da+24|0;h=da+16|0;l=xq(e,0,h)|0;do if(!l){if(c[(h&p)>>2]|0){l=ds(e,f)|0;if(!l)g=0;else k=4}else{l=1;k=4}if((k|0)==4){ba=e+43|0;k=(a[(ba&n)>>0]|0)==0;do if(!(a[(e&n)+46>>0]&2)){if(k?(m=e+4|0,aa=c[(m&p)>>2]|0,ac[c[((c[(aa&p)>>2]|0)&p)+40>>2]&63](aa,24,0)|0,m=c[(m&p)>>2]|0,m=pc[c[((c[(m&p)>>2]|0)&p)+56>>2]&31](m,0,1,10)|0,(m|0)!=0):0){h=l;g=m;break}aa=e+44|0;a[(aa&n)>>0]=1;k=xq(e,0,h)|0;if(!k){h=ds(e,f)|0;if(!h){h=0;g=0}else{$=d[(e&n)+45>>0]|0;_=$+1|0;$=7-$|0;if(!((a[(ba&n)>>0]|0)==0?(g=c[(e&p)+4>>2]|0,g=pc[c[((c[(g&p)>>2]|0)&p)+56>>2]&31](g,_,$,10)|0,(g|0)!=0):0)){l=e+52|0;k=l+48|0;do{c[(l&p)>>2]=0;l=l+4|0}while((l|0)<(k|0));T=e+8|0;g=c[(T&p)>>2]|0;g=rc[c[((c[(g&p)>>2]|0)&p)+24>>2]&127](g,Z)|0;a:do if(!g){U=Z;S=c[(U&p)+4>>2]|0;b:do if((S|0)>0|(S|0)==0&(c[(U&p)>>2]|0)>>>0>32){g=c[(T&p)>>2]|0;g=tc[c[((c[(g&p)>>2]|0)&p)+8>>2]&31](g,q,32,0,0)|0;if(g)break a;m=d[(q&n)+3>>0]|0;k=d[(q&n)+9>>0]<<16|d[(q&n)+8>>0]<<24;g=d[(q&n)+10>>0]<<8;l=k|g|d[(q&n)+11>>0];if(((d[(q&n)+1>>0]<<16|d[(q&n)>>0]<<24|d[(q&n)+2>>0]<<8|m&254|0)==931071618?!((l+-1&l|0)!=0|(l|0)>65536|(l|0)<512):0)?(U=m&1,V=e+65|0,a[(V&n)>>0]=U,W=e+36|0,c[(W&p)>>2]=l,c[(e&p)+104>>2]=d[(q&n)+13>>0]<<16|d[(q&n)+12>>0]<<24|d[(q&n)+14>>0]<<8|d[(q&n)+15>>0],X=e+84|0,S=q+16|0,Q=S,Q=d[(Q&n)>>0]|d[(Q&n)+1>>0]<<8|d[(Q&n)+2>>0]<<16|d[(Q&n)+3>>0]<<24,S=S+4|0,S=d[(S&n)>>0]|d[(S&n)+1>>0]<<8|d[(S&n)+2>>0]<<16|d[(S&n)+3>>0]<<24,Y=X,R=Y,a[(R&n)>>0]=Q,a[(R&n)+1>>0]=Q>>8,a[(R&n)+2>>0]=Q>>16,a[(R&n)+3>>0]=Q>>24,Y=Y+4|0,a[(Y&n)>>0]=S,a[(Y&n)+1>>0]=S>>8,a[(Y&n)+2>>0]=S>>16,a[(Y&n)+3>>0]=S>>24,Y=e+76|0,yq(U^1,q,24,0,Y),(c[(Y&p)>>2]|0)==(d[(q&n)+25>>0]<<16|d[(q&n)+24>>0]<<24|d[(q&n)+26>>0]<<8|d[(q&n)+27>>0]|0)):0){S=e+80|0;if((c[(S&p)>>2]|0)!=(d[(q&n)+29>>0]<<16|d[(q&n)+28>>0]<<24|d[(q&n)+30>>0]<<8|d[(q&n)+31>>0]|0)){l=0;g=0;break}if((d[(q&n)+5>>0]<<16|d[(q&n)+4>>0]<<24|d[(q&n)+6>>0]<<8|d[(q&n)+7>>0]|0)!=3007e3){c[(ca&p)>>2]=49983;c[(ca&p)+4>>2]=10788;bd(14,14848,ca);g=14;break a}w=l+24|0;U=Tc(w)|0;if(!U){g=7;break a}x=U+24|0;y=((w|0)<0)<<31>>31;q=jw(w|0,y|0,32,0)|0;m=G;R=Z;Q=c[(R&p)+4>>2]|0;c:do if(!((m|0)>(Q|0)|((m|0)==(Q|0)?q>>>0>(c[(R&p)>>2]|0)>>>0:0))){z=U+8|0;A=U+1|0;B=U+2|0;C=U+3|0;D=U+16|0;E=U+17|0;F=U+18|0;H=U+19|0;I=U+20|0;J=U+21|0;K=U+22|0;L=U+23|0;M=U+4|0;N=U+5|0;O=U+6|0;P=U+7|0;Q=e+68|0;R=e+72|0;u=(k>>>16|g)&65535;v=e+66|0;r=32;k=0;l=0;s=0;t=1;while(1){g=c[(T&p)>>2]|0;g=tc[c[((c[(g&p)>>2]|0)&p)+8>>2]&31](g,U,w,r,k)|0;if(g){k=36;break}if(Zv(X,z,8)|0){g=s;k=37;break}k=d[(A&n)>>0]<<16|d[(U&n)>>0]<<24|d[(B&n)>>0]<<8|d[(C&n)>>0];if(!k){g=s;k=37;break}r=(a[(V&n)>>0]|0)==0&1;yq(r,U,8,Y,Y);yq(r,x,c[(W&p)>>2]|0,Y,Y);if((c[(Y&p)>>2]|0)!=(d[(E&n)>>0]<<16|d[(D&n)>>0]<<24|d[(F&n)>>0]<<8|d[(H&n)>>0]|0)){g=s;k=37;break}if((c[(S&p)>>2]|0)!=(d[(J&n)>>0]<<16|d[(I&n)>>0]<<24|d[(K&n)>>0]<<8|d[(L&n)>>0]|0)){g=s;break c}r=d[(N&n)>>0]<<16|d[(M&n)>>0]<<24|d[(O&n)>>0]<<8|d[(P&n)>>0];g=_o(e,t,k)|0;if(g){k=36;break}if(!r)g=s;else{c[(Q&p)>>2]=t;c[(R&p)>>2]=r;b[(v&o)>>1]=u;l=c[(Y&p)>>2]|0;g=c[(S&p)>>2]|0}k=jw(q|0,m|0,w|0,y|0)|0;r=G;s=Z;ea=c[(s&p)+4>>2]|0;if((r|0)>(ea|0)|((r|0)==(ea|0)?k>>>0>(c[(s&p)>>2]|0)>>>0:0))break c;else{ga=m;ea=q;q=k;m=r;s=g;t=t+1|0;k=ga;r=ea}}if((k|0)==36){Wc(U);break a}else if((k|0)==37){Wc(U);break b}}else{l=0;g=0}while(0);Wc(U)}else{l=0;g=0}}else{l=0;g=0}while(0);c[(e&p)+76>>2]=l;c[(e&p)+80>>2]=g;$o(e);k=c[(c[(e&p)+32>>2]&p)>>2]|0;c[(k&p)+96>>2]=0;c[(k&p)+100>>2]=0;g=k+104|0;c[(g&p)>>2]=-1;c[(k&p)+108>>2]=-1;c[(k&p)+112>>2]=-1;c[(k&p)+116>>2]=-1;k=e+68|0;l=c[(k&p)>>2]|0;if(l)c[(g&p)>>2]=l;if(!(c[(e&p)+72>>2]|0))g=0;else{g=c[(e&p)+100>>2]|0;c[(ca&p)>>2]=c[(k&p)>>2];c[(ca&p)+4>>2]=g;bd(283,14888,ca);g=0}}while(0);if(!(a[(ba&n)>>0]|0)){Z=c[(e&p)+4>>2]|0;pc[c[((c[(Z&p)>>2]|0)&p)+56>>2]&31](Z,_,$,9)|0}}c[(f&p)>>2]=1}}else{h=l;g=k}a[(aa&n)>>0]=0;if(!(a[(ba&n)>>0]|0)){ba=c[(e&p)+4>>2]|0;pc[c[((c[(ba&p)>>2]|0)&p)+56>>2]&31](ba,0,1,9)|0}}else if(k){h=e+4|0;g=c[(h&p)>>2]|0;g=pc[c[((c[(g&p)>>2]|0)&p)+56>>2]&31](g,0,1,6)|0;if(!g)if(!(a[(ba&n)>>0]|0)){h=c[(h&p)>>2]|0;pc[c[((c[(h&p)>>2]|0)&p)+56>>2]&31](h,0,1,5)|0;h=l;g=264}else{h=l;g=264}else h=l}else{h=l;g=264}while(0);if(h)break}if((c[(e&p)+52>>2]|0)!=3007e3){c[(ca&p)>>2]=50909;c[(ca&p)+4>>2]=10788;bd(14,14848,ca);g=14}}else g=l;while(0);i=da;return g|0}function oq(a,d,f,g,h,i){a=a|0;d=d|0;f=f|0;g=g|0;h=h|0;i=i|0;var j=0,k=0,l=0,m=0,n=0,q=0,r=0,s=0,t=0,u=0;r=c[(h&p)>>2]|0;s=c[(g&p)>>2]|0;k=(r|0)>0;j=(f|0)>0;if(k|j){n=j;l=0;q=0;m=0;while(1){do if(n){j=d+(l<<1)|0;if(k?(t=s+(m<<1)|0,(c[(a+((e[(j&o)>>1]|0)<<2)&p)>>2]|0)>>>0>=(c[(a+((e[(t&o)>>1]|0)<<2)&p)>>2]|0)>>>0):0){k=t;u=7;break}l=l+1|0;k=j}else{k=s+(m<<1)|0;u=7}while(0);if((u|0)==7){u=0;m=m+1|0}n=b[(k&o)>>1]|0;k=c[(a+((n&65535)<<2)&p)>>2]|0;j=q+1|0;b[(i+(q<<1)&o)>>1]=n;if((l|0)<(f|0))l=((c[(a+((e[(d+(l<<1)&o)>>1]|0)<<2)&p)>>2]|0)==(k|0)&1)+l|0;k=(m|0)<(r|0);n=(l|0)<(f|0);if(!(k|n))break;else q=j}}else j=0;c[(g&p)>>2]=d;c[(h&p)>>2]=j;kw(d|0,i|0,j<<1|0)|0;return}function pq(a,b){a=a|0;b=b|0;var d=0,e=0;e=c[(a&p)+4>>2]|0;c[(e&p)+4>>2]=c[(a&p)>>2];a=c[((c[(e&p)>>2]|0)&p)+204>>2]|0;c[(a&p)+16>>2]=b;e=c[2217]|0;d=c[(a&p)+40>>2]|0;if((b|0)>-1)a=b;else{b=sw(b|0,((b|0)<0)<<31>>31|0,-1024,-1)|0;a=(c[(a&p)+24>>2]|0)+(c[(a&p)+20>>2]|0)|0;a=qw(b|0,G|0,a|0,((a|0)<0)<<31>>31|0)|0}jc[e&15](d,a);return}function qq(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0;g=(c[(b&p)+12>>2]|0)+136|0;e=g;f=c[(e&p)>>2]|0;e=c[(e&p)+4>>2]|0;do if((f|0)==0&(e|0)==0)if(!(bh(c[(c[((c[(b&p)>>2]|0)&p)+32>>2]&p)>>2]|0,g)|0)){e=g;f=c[(e&p)>>2]|0;e=c[(e&p)+4>>2]|0;h=5;break}else{e=g;c[(e&p)>>2]=0;c[(e&p)+4>>2]=0;e=d;c[(e&p)>>2]=0;c[(e&p)+4>>2]=0;e=1;break}else h=5;while(0);if((h|0)==5){g=d;c[(g&p)>>2]=f;c[(g&p)+4>>2]=e;if((e|0)>0|(e|0)==0&f>>>0>0){a[(d&n)+42>>0]=1;e=0}else e=1}return e|0}function rq(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,o=0,q=0,r=0;r=i;i=i+16|0;if((i|0)>=(j|0))fa();o=r;c[(o&p)>>2]=d;d=b;b=0;a:while(1){h=c[(o&p)>>2]|0;g=c[(h&p)>>2]|0;c[(o&p)>>2]=h+4;h=c[(o&p)>>2]|0;k=c[(h&p)>>2]|0;c[(o&p)>>2]=h+4;h=c[(o&p)>>2]|0;l=c[(h&p)>>2]|0;c[(o&p)>>2]=h+4;h=c[(o&p)>>2]|0;m=c[(h&p)>>2]|0;c[(o&p)>>2]=h+4;h=c[(o&p)>>2]|0;e=c[(h&p)>>2]|0;c[(o&p)>>2]=h+4;if(!g){f=d;d=0}else{f=d;d=0;do{g=g+-1|0;h=a[(f&n)>>0]|0;if(((h&255)+-48|0)>>>0>=10)break a;d=(d*10|0)+-48+(h<<24>>24)|0;f=f+1|0}while((g|0)!=0)}if((d|0)<(k|0)|(d|0)>(l|0))break;if(!m){q=9;break}if((m|0)!=(a[(f&n)>>0]|0))break;c[(e&p)>>2]=d;d=f+1|0;b=b+1|0}if((q|0)==9){c[(e&p)>>2]=d;b=b+1|0}i=r;return b|0}function sq(b,e){b=b|0;e=e|0;var f=0,g=0,k=0,l=0.0,m=0,o=0.0,r=0,s=0,t=0,u=0,v=0,w=0,x=0;x=i;i=i+64|0;if((i|0)>=(j|0))fa();v=x;t=x+56|0;u=x+52|0;f=x+48|0;r=x+44|0;s=x+40|0;c[(v&p)>>2]=2;c[(v&p)+4>>2]=0;c[(v&p)+8>>2]=24;c[(v&p)+12>>2]=58;c[(v&p)+16>>2]=f;c[(v&p)+20>>2]=2;c[(v&p)+24>>2]=0;c[(v&p)+28>>2]=59;c[(v&p)+32>>2]=0;c[(v&p)+36>>2]=r;do if((rq(b,v)|0)==2){m=b+5|0;if((a[(m&n)>>0]|0)==58){c[(v&p)>>2]=2;c[(v&p)+4>>2]=0;c[(v&p)+8>>2]=59;c[(v&p)+12>>2]=0;c[(v&p)+16>>2]=s;if((rq(b+6|0,v)|0)!=1){f=1;break}m=b+8|0;if((a[(m&n)>>0]|0)==46?(g=b+9|0,k=a[(g&n)>>0]|0,((k&255)+-48|0)>>>0<10):0){o=0.0;l=1.0;do{o=o*10.0+ +(k<<24>>24)+-48.0;l=l*10.0;g=g+1|0;k=a[(g&n)>>0]|0}while(((k&255)+-48|0)>>>0<10);l=o/l}else{g=m;l=0.0}}else{c[(s&p)>>2]=0;g=m;l=0.0}a[(e&n)+42>>0]=0;a[(e&n)+41>>0]=1;c[(e&p)+20>>2]=c[(f&p)>>2];c[(e&p)+24>>2]=c[(r&p)>>2];h[(e&q)+32>>3]=l+ +(c[(s&p)>>2]|0);while(1){f=g+1|0;if(!(a[((d[(g&n)>>0]|0)&n)+10368>>0]&1)){m=g;break}else g=f}b=e+28|0;c[(b&p)>>2]=0;g=a[(m&n)>>0]|0;if(g<<24>>24==43){k=1;w=14}else if(g<<24>>24!=45)if((g&-33)<<24>>24==90){k=0;w=16}else f=0;else{k=-1;w=14}if((w|0)==14){c[(v&p)>>2]=2;c[(v&p)+4>>2]=0;c[(v&p)+8>>2]=14;c[(v&p)+12>>2]=58;c[(v&p)+16>>2]=t;c[(v&p)+20>>2]=2;c[(v&p)+24>>2]=0;c[(v&p)+28>>2]=59;c[(v&p)+32>>2]=0;c[(v&p)+36>>2]=u;if((rq(f,v)|0)!=2){f=1;break}k=ca(((c[(t&p)>>2]|0)*60|0)+(c[(u&p)>>2]|0)|0,k)|0;c[(b&p)>>2]=k;f=m+6|0;w=16}if((w|0)==16)while(1){g=a[(f&n)>>0]|0;if(!(a[(g&255&n)+10368>>0]&1)){f=k;break}else f=f+1|0}if(!(g<<24>>24)){a[(e&n)+43>>0]=(f|0)!=0&1;f=0}else f=1}else f=1;while(0);i=x;return f|0}function tq(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,k=0,l=0,m=0,o=0,r=0.0,s=0;o=i;i=i+112|0;if((i|0)>=(j|0))fa();k=o+48|0;m=o;l=o+96|0;f=k+0|0;b=b+0|0;g=f+48|0;do{c[(f&p)>>2]=c[(b&p)>>2];f=f+4|0;b=b+4|0}while((f|0)<(g|0));oo(k);po(k);g=k+8|0;if(((c[(g&p)>>2]|0)+-1971|0)>>>0>66){c[(g&p)>>2]=2e3;c[(k&p)+12>>2]=1;c[(k&p)+16>>2]=1;c[(k&p)+20>>2]=0;c[(k&p)+24>>2]=0;h[(k&q)+32>>3]=0.0}else{f=k+32|0;h[(f&q)>>3]=+(~~(+h[(f&q)>>3]+.5)|0)}c[(k&p)+28>>2]=0;a[(k&n)+42>>0]=0;no(k);b=k;f=c[(b&p)>>2]|0;b=c[(b&p)+4>>2]|0;g=qw(f|0,b|0,1e3,0)|0;g=jw(g|0,G|0,-413362496,0)|0;c[(l&p)>>2]=g;g=Vb(l|0)|0;g=(c[2253]|0)!=0?0:g;if(!g){c[(d&p)+20>>2]=1;a[(d&n)+25>>0]=1;Xg(c[(d&p)>>2]|0,20056,-1,1,-1)|0;c[(e&p)>>2]=1;f=0;g=0}else{k=c[(g&p)+4>>2]|0;l=c[(g&p)+8>>2]|0;d=c[(g&p)+12>>2]|0;s=(c[(g&p)+16>>2]|0)+1|0;r=+(c[(g&p)>>2]|0);c[(m&p)+8>>2]=(c[(g&p)+20>>2]|0)+1900;c[(m&p)+12>>2]=s;c[(m&p)+16>>2]=d;c[(m&p)+20>>2]=l;c[(m&p)+24>>2]=k;h[(m&q)+32>>3]=r;a[(m&n)+40>>0]=1;a[(m&n)+41>>0]=1;a[(m&n)+42>>0]=0;a[(m&n)+43>>0]=0;no(m);c[(e&p)>>2]=0;g=m;g=dw(c[(g&p)>>2]|0,c[(g&p)+4>>2]|0,f|0,b|0)|0;f=G}G=f;i=o;return g|0}function uq(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,o=0,q=0,r=0;r=i;i=i+32|0;if((i|0)>=(j|0))fa();q=r+12|0;l=r;o=r+8|0;k=r+16|0;a[(d&n)>>0]=0;f=rc[c[((c[(b&p)>>2]|0)&p)+24>>2]&127](b,l)|0;h=l;g=c[(h&p)>>2]|0;h=c[(h&p)+4>>2]|0;if(!((f|0)!=0|((h|0)<0|(h|0)==0&g>>>0<16))){f=jw(g|0,h|0,-16,-1)|0;f=es(b,f,G,q)|0;if(!f){m=c[(q&p)>>2]|0;if(!(m>>>0>=e>>>0|(m|0)==0)){f=l;f=jw(c[(f&p)>>2]|0,c[(f&p)+4>>2]|0,-12,-1)|0;f=es(b,f,G,o)|0;if(!f){f=l;f=jw(c[(f&p)>>2]|0,c[(f&p)+4>>2]|0,-8,-1)|0;f=tc[c[((c[(b&p)>>2]|0)&p)+8>>2]&31](b,k,8,f,G)|0;if(!f)if(!(Zv(k,14808,8)|0)){f=l;f=jw(c[(f&p)>>2]|0,c[(f&p)+4>>2]|0,-16,-1)|0;f=dw(f|0,G|0,m|0,0)|0;f=tc[c[((c[(b&p)>>2]|0)&p)+8>>2]&31](b,d,m,f,G)|0;if(!f){g=c[(o&p)>>2]|0;h=0;while(1){e=a[(d+h&n)>>0]|0;f=g-e|0;h=h+1|0;if(h>>>0>=m>>>0)break;else g=f}c[(o&p)>>2]=f;if((g|0)==(e|0))f=m;else{c[(q&p)>>2]=0;f=0}a[(d+f&n)>>0]=0;f=0}}else f=0}}else f=0}}i=r;return f|0}function vq(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,k=0,l=0,m=0,n=0,o=0,q=0,r=0,s=0,t=0;t=i;i=i+16|0;if((i|0)>=(j|0))fa();l=t+8|0;r=t+4|0;o=t;s=a+72|0;h=s;k=c[(h&p)>>2]|0;h=c[(h&p)+4>>2]|0;if((k|0)==0&(h|0)==0){m=0;n=0;k=c[(a&p)+148>>2]|0}else{m=jw(k|0,h|0,-1,-1)|0;k=c[(a&p)+148>>2]|0;m=qw(m|0,G|0,k|0,0)|0;m=jw(m|0,G|0,1,0)|0;m=sw(m|0,G|0,k|0,0)|0;n=G}q=s;c[(q&p)>>2]=m;c[(q&p)+4>>2]=n;q=a+148|0;k=jw(k|0,0,m|0,n|0)|0;h=G;do if(!((h|0)>(e|0)|(h|0)==(e|0)&k>>>0>d>>>0)){if((b|0)==0?(b=a+80|0,(m|0)==(c[(b&p)>>2]|0)?(n|0)==(c[(b&p)+4>>2]|0):0):0)d=a+64|0;else{k=a+64|0;e=c[(k&p)>>2]|0;e=tc[c[((c[(e&p)>>2]|0)&p)+8>>2]&31](e,l,8,m,n)|0;if(e)break;if(!(Zv(l,14808,8)|0))d=k;else{e=101;break}}l=c[(d&p)>>2]|0;e=jw(m|0,n|0,8,0)|0;e=es(l,e,G,f)|0;if(!e){f=c[(d&p)>>2]|0;e=jw(m|0,n|0,12,0)|0;e=es(f,e,G,a+48|0)|0;if(!e){f=c[(d&p)>>2]|0;e=jw(m|0,n|0,16,0)|0;e=es(f,e,G,g)|0;if(!e){h=s;k=c[(h&p)>>2]|0;h=c[(h&p)+4>>2]|0;if((k|0)==0&(h|0)==0){g=c[(d&p)>>2]|0;e=jw(m|0,n|0,20,0)|0;e=es(g,e,G,o)|0;if(e)break;g=c[(d&p)>>2]|0;e=jw(m|0,n|0,24,0)|0;e=es(g,e,G,r)|0;if(e)break;d=c[(r&p)>>2]|0;if(!d){h=c[(a&p)+152>>2]|0;c[(r&p)>>2]=h}else h=d;d=c[(o&p)>>2]|0;if(h>>>0<512|d>>>0<32|h>>>0>65536|d>>>0>65536){e=101;break}if(h+-1&h){e=101;break}if(d+-1&d){e=101;break}e=al(a,r,-1)|0;c[(q&p)>>2]=d;h=s;k=c[(h&p)>>2]|0;h=c[(h&p)+4>>2]|0}else{d=c[(q&p)>>2]|0;e=0}m=jw(k|0,h|0,d|0,0)|0;n=s;c[(n&p)>>2]=m;c[(n&p)+4>>2]=G}}}}else e=101;while(0);i=t;return e|0}function wq(f,g,h,k,l){f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;var m=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;D=i;i=i+16|0;if((i|0)>=(j|0))fa();y=D+8|0;r=D+4|0;u=D;B=c[(f&p)+200>>2]|0;C=(k|0)!=0;q=c[((C?f+64|0:f+68|0)&p)>>2]|0;t=g;t=es(q,c[(t&p)>>2]|0,c[(t&p)+4>>2]|0,r)|0;do if(!t){A=f+152|0;x=c[(A&p)>>2]|0;t=g;t=jw(c[(t&p)>>2]|0,c[(t&p)+4>>2]|0,4,0)|0;t=tc[c[((c[(q&p)>>2]|0)&p)+8>>2]&31](q,B,x,t,G)|0;if(!t){E=c[(A&p)>>2]|0;s=(k<<2)+4+E|0;t=g;t=jw(s|0,((s|0)<0)<<31>>31|0,c[(t&p)>>2]|0,c[(t&p)+4>>2]|0)|0;s=G;x=g;c[(x&p)>>2]=t;c[(x&p)+4>>2]=s;x=c[(r&p)>>2]|0;if((x|0)!=0?(x|0)!=(((c[2514]|0)/(E|0)|0)+1|0):0)if(x>>>0<=(c[(f&p)+24>>2]|0)>>>0?(di(h,x)|0)==0:0){if(C){t=jw(t|0,s|0,-4,-1)|0;t=es(q,t,G,u)|0;if(t){m=t;break}if(!l){t=c[(f&p)+48>>2]|0;s=(c[(A&p)>>2]|0)+-200|0;if((s|0)>0)do{t=(d[(B+s&n)>>0]|0)+t|0;s=s+-200|0}while((s|0)>0);if((t|0)!=(c[(u&p)>>2]|0)){m=101;break}}}if((h|0)!=0?(m=bi(h,x)|0,(m|0)!=0):0)break;u=(x|0)==1;if(u?(v=f+142|0,w=a[(B&n)+20>>0]|0,(b[(v&o)>>1]|0)!=(w&255|0)):0)b[(v&o)>>1]=w&255;if(!(c[(f&p)+208>>2]|0)){w=f+204|0;t=ac[c[8876>>2]&63](c[((c[(w&p)>>2]|0)&p)+40>>2]|0,x,0)|0;t=il(c[(w&p)>>2]|0,x,t)|0}else t=0;c[(y&p)>>2]=t;if(C)if(!(a[(f&n)+7>>0]|0)){w=g;h=c[(w&p)+4>>2]|0;s=f+80|0;v=c[(s&p)+4>>2]|0;s=(h|0)<(v|0)|((h|0)==(v|0)?(c[(w&p)>>2]|0)>>>0<=(c[(s&p)>>2]|0)>>>0:0)}else s=1;else if(!t)s=1;else s=(b[(t&o)+24>>1]&4)==0;r=c[(f&p)+60>>2]|0;q=c[(r&p)>>2]|0;do if(q){m=a[(f&n)+16>>0]|0;if((m&255)>3){if(!s){z=33;break}}else if(!(m<<24>>24==0&s)){z=33;break}s=c[(A&p)>>2]|0;m=sw(s|0,((s|0)<0)<<31>>31|0,x+-1|0,0)|0;m=tc[c[(q&p)+12>>2]&31](r,B,s,m,G)|0;s=f+32|0;if(x>>>0>(c[(s&p)>>2]|0)>>>0)c[(s&p)>>2]=x;s=c[(f&p)+88>>2]|0;if(s)ap(s,x,B)}else z=33;while(0);if((z|0)==33)if((k|0)==0&(t|0)==0){w=f+20|0;a[(w&n)>>0]=d[(w&n)>>0]|2;m=zg(f,x,y,1)|0;a[(w&n)>>0]=d[(w&n)>>0]&253;if(m)break;t=c[(y&p)>>2]|0;m=t+24|0;b[(m&o)>>1]=e[(m&o)>>1]&65527;To(t);m=0}else m=0;if(t){r=c[(t&p)+4>>2]|0;kw(r|0,B|0,c[(A&p)>>2]|0)|0;cc[c[(f&p)+196>>2]&31](t);do if(C){if((l|0)!=0?(w=g,h=c[(w&p)+4>>2]|0,x=f+80|0,v=c[(x&p)+4>>2]|0,(h|0)>(v|0)|((h|0)==(v|0)?(c[(w&p)>>2]|0)>>>0>(c[(x&p)>>2]|0)>>>0:0)):0)break;xl(t)}while(0);if(u){s=f+104|0;q=r+24|0;r=s+16|0;do{a[(s&n)>>0]=a[(q&n)>>0]|0;s=s+1|0;q=q+1|0}while((s|0)<(r|0))}ol(t)}}else m=0;else m=101}else m=t}else m=t;while(0);i=D;return m|0}function xq(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0;g=b+24|0;if((c[(g&p)>>2]|0)<=(e|0)){i=e+1|0;j=b+32|0;h=Xc(c[(j&p)>>2]|0,i<<2)|0;if(!h){g=7;h=0}else{k=c[(g&p)>>2]|0;fw(h+(k<<2)|0,0,i-k<<2|0)|0;c[(j&p)>>2]=h;c[(g&p)>>2]=i;k=5}}else{h=c[(b&p)+32>>2]|0;k=5}if((k|0)==5){j=b+32|0;h=h+(e<<2)|0;do if(!(c[(h&p)>>2]|0)){if((a[(b&n)+43>>0]|0)!=2){g=c[(b&p)+4>>2]|0;g=tc[c[((c[(g&p)>>2]|0)&p)+52>>2]&31](g,e,32768,d[(b&n)+44>>0]|0,h)|0;if((g|0)!=8)break;g=b+46|0;a[(g&n)>>0]=d[(g&n)>>0]|2;g=0;break}g=qg(32768,0)|0;if(g)fw(g|0,0,32768)|0;c[((c[(j&p)>>2]|0)+(e<<2)&p)>>2]=g;g=(c[((c[(j&p)>>2]|0)+(e<<2)&p)>>2]|0)==0?7:0}else g=0;while(0);h=c[((c[(j&p)>>2]|0)+(e<<2)&p)>>2]|0}c[(f&p)>>2]=h;return g|0}function yq(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;h=b+d|0;if(!e){g=0;d=0}else{g=c[(e&p)>>2]|0;d=c[(e&p)+4>>2]|0}if(!a)do{g=g+d+(nw(c[(b&p)>>2]|0)|0)|0;d=g+d+(nw(c[(b&p)+4>>2]|0)|0)|0;b=b+8|0}while(b>>>0>>0);else do{g=g+d+(c[(b&p)>>2]|0)|0;d=g+d+(c[(b&p)+4>>2]|0)|0;b=b+8|0}while(b>>>0>>0);c[(f&p)>>2]=g;c[(f&p)+4>>2]=d;return}function zq(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;h=a+8|0;g=c[(h&p)>>2]|0;h=c[(h&p)+4>>2]|0;if((h|0)>(f|0)|(h|0)==(f|0)&g>>>0>e>>>0?(i=jw(d|0,((d|0)<0)<<31>>31|0,e|0,f|0)|0,k=G,!((k|0)<(h|0)|(k|0)==(h|0)&i>>>0>>0)):0){i=dw(g|0,h|0,e|0,f|0)|0;h=a+4|0;g=c[(h&p)>>2]|0;g=tc[c[((c[(g&p)>>2]|0)&p)+12>>2]&31](g,b,i,e,f)|0;if(!g){e=jw(i|0,((i|0)<0)<<31>>31|0,e|0,f|0)|0;f=G;g=c[(h&p)>>2]|0;g=rc[c[((c[(g&p)>>2]|0)&p)+20>>2]&127](g,c[(a&p)+16>>2]&19)|0;if(!((i|0)==(d|0)|(g|0)!=0)){d=d-i|0;h=b+i|0;g=f;j=5}}}else{h=b;g=f;j=5}if((j|0)==5){f=c[(a&p)+4>>2]|0;g=tc[c[((c[(f&p)>>2]|0)&p)+12>>2]&31](f,h,d,e,g)|0}return g|0}function Aq(a){a=a|0;var d=0,f=0,g=0,h=0,k=0,l=0;l=i;i=i+16|0;if((i|0)>=(j|0))fa();h=l+8|0;k=l+4|0;g=l;c[(h&p)>>2]=0;c[(k&p)>>2]=0;c[(g&p)>>2]=0;f=a+68|0;d=c[(f&p)>>2]|0;if(d){Po(a,(d+33|0)>>>12,h,k,g)|0;g=(c[(f&p)>>2]|0)-(c[(g&p)>>2]|0)|0;a=c[(h&p)>>2]|0;f=0;do{d=a+(f<<1)|0;if((e[(d&o)>>1]|0|0)>(g|0))b[(d&o)>>1]=0;f=f+1|0}while((f|0)!=8192);d=(c[(k&p)>>2]|0)+(g+1<<2)|0;fw(d|0,0,a-d|0)|0}i=l;return}function Bq(a,d){a=a|0;d=d|0;var e=0,f=0,g=0,h=0;g=i;i=i+16|0;if((i|0)>=(j|0))fa();e=g;h=a+204|0;f=ac[c[8876>>2]&63](c[((c[(h&p)>>2]|0)&p)+40>>2]|0,d,0)|0;f=il(c[(h&p)>>2]|0,d,f)|0;do if(!f)e=0;else{if((b[(f&o)+26>>1]|0)==1){ml(f);e=0;break}c[(e&p)>>2]=0;d=kl(c[(a&p)+208>>2]|0,c[(f&p)+20>>2]|0,e)|0;if(!d){d=ll(f,c[(e&p)>>2]|0)|0;if(!d){cc[c[(a&p)+196>>2]&31](f);d=0}}Bg(f);e=d}while(0);d=c[(a&p)+88>>2]|0;if(d)do{c[(d&p)+16>>2]=1;d=c[(d&p)+44>>2]|0}while((d|0)!=0);i=g;return e|0}function Cq(f,g,h){f=f|0;g=g|0;h=h|0;var k=0,l=0,m=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;G=i;i=i+16|0;if((i|0)>=(j|0))fa();F=G;C=c[(f&p)+52>>2]|0;t=(c[(C&p)+36>>2]|0)+-4|0;y=g&65535;D=h&65535;x=D+y|0;E=c[(f&p)+56>>2]|0;if(b[(C&o)+22>>1]&4)fw(E+y|0,0,D|0)|0;B=d[(f&n)+6>>0]|0;C=B+1|0;q=C&65535;A=C&65535;if((a[(E+A&n)+1>>0]|0)==0?(a[(E+A&n)>>0]|0)==0:0){v=h&255;t=(h&65535)>>>8&255;u=x;s=0;r=0;A=23}else{v=q;A=6}a:do if((A|0)==6){while(1){A=0;m=v&65535;r=a[(E+m&n)+1>>0]|0;l=r&255;u=d[(E+m&n)>>0]<<8|l;q=v;v=u&65535;if(!(u>>>0>>0&(u|0)!=0)){s=r;w=u;break}if(u>>>0<(m+4|0)>>>0){A=8;break}else A=6}if((A|0)==8){c[(F&p)>>2]=54420;c[(F&p)+4>>2]=10788;bd(11,13600,F);k=11;break}if(w>>>0>t>>>0){c[(F&p)>>2]=54423;c[(F&p)+4>>2]=10788;bd(11,13600,F);k=11;break}k=h&255;t=(h&65535)>>>8&255;r=(v&65535)>>>8&255;do if((w+-1|0)>>>0<(x+3|0)>>>0)if(x>>>0>w>>>0){c[(F&p)>>2]=54434;c[(F&p)+4>>2]=10788;bd(11,13600,F);k=11;break a}else{u=(d[(E+w&n)+2>>0]<<8|d[(E+w&n)+3>>0])+w|0;t=u-y|0;v=t&255;t=(t&65535)>>>8&255;s=a[(E+w&n)+1>>0]|0;r=a[(E+w&n)>>0]|0;k=l-x&255;break}else{v=k;u=x;k=0}while(0);do if(m>>>0>C>>>0?(z=(d[(E+m&n)+2>>0]<<8|d[(E+m&n)+3>>0])+m|0,(z+3|0)>=(y|0)):0)if((y|0)<(z|0)){c[(F&p)>>2]=54447;c[(F&p)+4>>2]=10788;bd(11,13600,F);k=11;break a}else{t=u-m|0;g=q;v=t&255;t=(t&65535)>>>8&255;k=(k&255)+y-z&255;break}while(0);m=E+(B+7)|0;l=a[(m&n)>>0]|0;if((l&255)<(k&255)){c[(F&p)>>2]=54453;c[(F&p)+4>>2]=10788;bd(11,13600,F);k=11;break}else{a[(m&n)>>0]=(l&255)-(k&255);A=23;break}}while(0);b:do if((A|0)==23){k=g&65535;l=E+(B+5)|0;m=E+(B+6)|0;do if((k|0)==(d[(l&n)>>0]<<8|d[(m&n)>>0]|0))if((q&65535|0)==(C|0)){a[(E+C&n)>>0]=r;a[(E+B&n)+2>>0]=s;a[(l&n)>>0]=u>>>8;a[(m&n)>>0]=u;break}else{c[(F&p)>>2]=54460;c[(F&p)+4>>2]=10788;bd(11,13600,F);k=11;break b}else{F=q&65535;a[(E+F&n)>>0]=(g&65535)>>>8;a[(E+F&n)+1>>0]=g;a[(E+k&n)>>0]=r;a[(E+k&n)+1>>0]=s;a[(E+k&n)+2>>0]=t;a[(E+k&n)+3>>0]=v}while(0);k=f+16|0;b[(k&o)>>1]=(e[(k&o)>>1]|0)+D;k=0}while(0);i=G;return k|0}function Dq(b,e,f,g){b=b|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,o=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0;w=i;i=i+16|0;if((i|0)>=(j|0))fa();t=w;s=d[(b&n)+6>>0]|0;v=c[(b&p)+56>>2]|0;r=c[((c[(b&p)+52>>2]|0)&p)+36>>2]|0;l=r+-4|0;b=s+1|0;while(1){m=v+b|0;o=(d[(m&n)>>0]|0)<<8|(d[(v+b&n)+1>>0]|0);if(!o){b=0;break}if((o|0)>(l|0)|(o|0)<(b+4|0)){u=4;break}h=v+(o+2)|0;k=v+(o+3)|0;b=(d[(h&n)>>0]|0)<<8|(d[(k&n)>>0]|0);if((b|0)<(e|0))b=o;else{q=h;l=o;u=6;break}}a:do if((u|0)==4){c[(t&p)>>2]=54252;c[(t&p)+4>>2]=10788;bd(11,13600,t);c[(f&p)>>2]=11;b=0}else if((u|0)==6){h=b-e|0;do if((h|0)>=4)if((b+l|0)>(r|0)){c[(t&p)>>2]=54275;c[(t&p)+4>>2]=10788;bd(11,13600,t);c[(f&p)>>2]=11;b=0;break a}else{a[(q&n)>>0]=h>>>8;a[(k&n)>>0]=h;break}else{b=v+(s+7)|0;if((d[(b&n)>>0]|0)<=59){s=v+l|0;s=d[(s&n)>>0]|d[(s&n)+1>>0]<<8;a[(m&n)>>0]=s;a[(m&n)+1>>0]=s>>8;a[(b&n)>>0]=(d[(b&n)>>0]|0)+h;break}if(!g){b=0;break a}c[(g&p)>>2]=1;b=0;break a}while(0);b=v+(h+l)|0}while(0);i=w;return b|0}function Eq(f){f=f|0;var g=0,h=0,k=0,l=0,m=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;G=i;i=i+16|0;if((i|0)>=(j|0))fa();E=G;B=c[(f&p)+56>>2]|0;D=d[(f&n)+6>>0]|0;x=e[(f&o)+14>>1]|0;y=b[(f&o)+18>>1]|0;t=y&65535;u=f+52|0;v=c[((c[(u&p)>>2]|0)&p)+36>>2]|0;C=(t<<1)+x|0;w=v+-4|0;z=B+(D+5)|0;A=B+(D+6)|0;a:do if(y<<16>>16){s=v;y=0;h=B;k=0;while(1){m=(y<<1)+x|0;l=B+m|0;m=B+(m+1)|0;q=(d[(l&n)>>0]|0)<<8|(d[(m&n)>>0]|0);if((q|0)<(C|0)|(q|0)>(w|0)){F=3;break}r=(Lp(f,h+q|0)|0)&65535;g=s-r|0;if((g|0)<(C|0)|(r+q|0)>(v|0)){F=5;break}a[(l&n)>>0]=g>>>8;a[(m&n)>>0]=g;if(!k)if((g|0)==(q|0))k=0;else{k=c[((c[(c[(u&p)>>2]&p)>>2]|0)&p)+200>>2]|0;h=(d[(z&n)>>0]|0)<<8|(d[(A&n)>>0]|0);kw(k+h|0,B+h|0,s-h|0)|0;h=k;F=9}else F=9;if((F|0)==9){F=0;kw(B+g|0,h+q|0,r|0)|0}y=y+1|0;if((y|0)>=(t|0)){F=11;break a}else s=g}if((F|0)==3){c[(E&p)>>2]=54184;c[(E&p)+4>>2]=10788;bd(11,13600,E);g=11;break}else if((F|0)==5){c[(E&p)>>2]=54196;c[(E&p)+4>>2]=10788;bd(11,13600,E);g=11;break}}else{g=v;F=11}while(0);if((F|0)==11){a[(z&n)>>0]=g>>>8;a[(A&n)>>0]=g;a[(B+D&n)+1>>0]=0;a[(B+D&n)+2>>0]=0;a[(B+D&n)+7>>0]=0;F=g-C|0;fw(B+C|0,0,F|0)|0;if((F|0)==(e[(f&o)+16>>1]|0|0))g=0;else{c[(E&p)>>2]=54221;c[(E&p)+4>>2]=10788;bd(11,13600,E);g=11}}i=G;return g|0}function Fq(a,e,f){a=a|0;e=e|0;f=f|0;var g=0,h=0,k=0;k=i;i=i+32|0;if((i|0)>=(j|0))fa();h=k;if((c[(f&p)>>2]|0)==0?(rp(a,e,h),g=b[(h&o)+18>>1]|0,g<<16>>16!=0):0){g=g&65535;zp(c[(a&p)+52>>2]|0,(d[(e+g&n)+1>>0]|0)<<16|(d[(e+g&n)>>0]|0)<<24|(d[(e+g&n)+2>>0]|0)<<8|(d[(e+g&n)+3>>0]|0),3,c[(a&p)+72>>2]|0,f)}i=k;return}function Gq(b,f,g){b=b|0;f=f|0;g=g|0;var h=0,i=0,j=0,k=0,l=0,m=0;do if(!(c[(g&p)>>2]|0)){h=c[(b&p)+52>>2]|0;j=c[(b&p)+56>>2]|0;l=c[(f&p)+56>>2]|0;i=d[(b&n)+6>>0]|0;k=(c[(f&p)+72>>2]|0)==1?100:0;m=d[(j+i&n)+5>>0]<<8|d[(j+i&n)+6>>0];kw(l+m|0,j+m|0,(c[(h&p)+36>>2]|0)-m|0)|0;kw(l+k|0,j+i|0,(e[(b&o)+18>>1]<<1)+(e[(b&o)+14>>1]|0)|0)|0;a[(f&n)>>0]=0;b=$p(f)|0;if(b){c[(g&p)>>2]=b;break}if(a[(h&n)+17>>0]|0)c[(g&p)>>2]=_p(f)|0}while(0);return}function Hq(f,g,h,i){f=f|0;g=g|0;h=h|0;i=i|0;var j=0,k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0;t=d[(f&n)+6>>0]|0;w=c[(f&p)+56>>2]|0;m=c[(f&p)+52>>2]|0;r=c[(m&p)+36>>2]|0;q=w+r|0;j=c[(f&p)+64>>2]|0;m=c[((c[(m&p)>>2]|0)&p)+200>>2]|0;s=w+(t+5)|0;u=w+(t+6)|0;v=(d[(s&n)>>0]|0)<<8|(d[(u&n)>>0]|0);kw(m+v|0,w+v|0,r-v|0)|0;v=w;if((g|0)>0){r=0;l=j;j=q;while(1){k=c[(h+(r<<2)&p)>>2]|0;if(k>>>0>w>>>0&k>>>0>>0)k=m+(k-v)|0;x=e[(i+(r<<1)&o)>>1]|0;j=j+(0-x)|0;kw(j|0,k|0,x|0)|0;k=j-v|0;a[(l&n)>>0]=k>>>8;a[(l&n)+1>>0]=k;r=r+1|0;if((r|0)==(g|0))break;else l=l+2|0}}else j=q;i=f+18|0;b[(i&o)>>1]=g;a[(f&n)+1>>0]=0;a[(w+t&n)+1>>0]=0;a[(w+t&n)+2>>0]=0;a[(w+t&n)+3>>0]=(e[(i&o)>>1]|0)>>>8;a[(w+t&n)+4>>0]=b[(i&o)>>1];i=j-v|0;a[(s&n)>>0]=i>>>8;a[(u&n)>>0]=i;a[(w+t&n)+7>>0]=0;return}function Iq(a,b,f,g){a=a|0;b=b|0;f=f|0;g=g|0;var h=0,i=0,j=0,k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0;u=c[(a&p)+56>>2]|0;s=u+(c[((c[(a&p)+52>>2]|0)&p)+36>>2]|0)|0;q=u+((d[(a&n)+6>>0]|0)+8+(d[(a&n)+7>>0]|0))|0;a:do if((b|0)>0){r=u;t=0;h=0;l=0;m=0;while(1){j=c[(f+(t<<2)&p)>>2]|0;if(j>>>0>=q>>>0&j>>>0>>0){i=e[(g+(t<<1)&o)>>1]|0;k=j+i|0;if((l|0)!=(k|0)){if(l)Cq(a,l-r&65535,m&65535)|0;if(k>>>0>s>>>0){h=0;break a}}else i=i+m|0;h=h+1|0}else{j=l;i=m}t=t+1|0;if((t|0)>=(b|0))break;else{l=j;m=i}}if(j)Cq(a,j-u&65535,i&65535)|0}else h=0;while(0);return h|0}function Jq(b,d,f,g,h,k,l){b=b|0;d=d|0;f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;var m=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0;y=i;i=i+16|0;if((i|0)>=(j|0))fa();w=y;q=c[(b&p)+56>>2]|0;m=c[(f&p)>>2]|0;if(!(a[(q&n)+1>>0]|0))v=(a[(q&n)+2>>0]|0)!=0;else v=1;a:do if((h|0)>0){t=0;while(1){s=e[(l+(t<<1)&o)>>1]|0;if(v?(u=Dq(b,s,w,0)|0,(u|0)!=0):0)r=u;else{r=m+(0-s)|0;if(r>>>0>>0){m=1;break a}else m=r}kw(r|0,c[(k+(t<<2)&p)>>2]|0,s|0)|0;s=r-q|0;a[(g&n)>>0]=s>>>8;a[(g&n)+1>>0]=s;t=t+1|0;if((t|0)>=(h|0)){x=9;break}else g=g+2|0}}else x=9;while(0);if((x|0)==9){c[(f&p)>>2]=m;m=0}i=y;return m|0}function Kq(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,q=0,r=0;o=i;i=i+16|0;if((i|0)>=(j|0))fa();n=o;e=c[(a&p)+44>>2]|0;h=a;f=c[(h&p)>>2]|0;h=c[(h&p)+4>>2]|0;a:do if(!e){m=a+40|0;e=c[(m&p)>>2]|0;g=((e|0)<0)<<31>>31;l=rw(f|0,h|0,e|0,g|0)|0;if(!l){k=a+8|0;k=dw(c[(k&p)>>2]|0,c[(k&p)+4>>2]|0,f|0,h|0)|0;q=G;r=c[(a&p)+24>>2]|0;e=tc[c[((c[(r&p)>>2]|0)&p)+8>>2]&31](r,c[(a&p)+36>>2]|0,(q|0)>(g|0)|(q|0)==(g|0)&k>>>0>e>>>0?e:k,f,h)|0;if(e)break;e=c[(m&p)>>2]|0}k=e-l|0;if((k|0)>=(b|0)){c[(d&p)>>2]=(c[(a&p)+36>>2]|0)+l;e=a;b=jw(c[(e&p)>>2]|0,c[(e&p)+4>>2]|0,b|0,((b|0)<0)<<31>>31|0)|0;e=a;c[(e&p)>>2]=b;c[(e&p)+4>>2]=G;e=0;break}e=a+16|0;f=c[(e&p)>>2]|0;if((f|0)<(b|0)){f=f<<1;f=(f|0)<128?128:f;while(1)if((f|0)<(b|0))f=f<<1;else{h=f;break}g=a+28|0;f=rg(c[(g&p)>>2]|0,h,((h|0)<0)<<31>>31)|0;if(!f){e=7;break}c[(e&p)>>2]=h;c[(g&p)>>2]=f}else f=c[(a&p)+28>>2]|0;h=a+28|0;kw(f|0,(c[(a&p)+36>>2]|0)+l|0,k|0)|0;l=a;l=jw(c[(l&p)>>2]|0,c[(l&p)+4>>2]|0,k|0,((k|0)<0)<<31>>31|0)|0;e=a;c[(e&p)>>2]=l;c[(e&p)+4>>2]=G;e=b-k|0;if((e|0)>0){g=e;do{f=c[(m&p)>>2]|0;f=(g|0)>(f|0)?f:g;e=Kq(a,f,n)|0;if(e)break a;kw((c[(h&p)>>2]|0)+(b-g)|0,c[(n&p)>>2]|0,f|0)|0;g=g-f|0}while((g|0)>0)}c[(d&p)>>2]=c[(h&p)>>2];e=0}else{c[(d&p)>>2]=e+f;b=jw(f|0,h|0,b|0,((b|0)<0)<<31>>31|0)|0;e=a;c[(e&p)>>2]=b;c[(e&p)+4>>2]=G;e=0}while(0);i=o;return e|0}function Lq(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=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,x=0,y=0,z=0,A=0;A=i;i=i+64|0;if((i|0)>=(j|0))fa();x=A+44|0;z=A;y=A+40|0;v=a+8|0;u=c[(v&p)>>2]|0;v=c[(v&p)+4>>2]|0;w=a+4|0;q=c[(w&p)>>2]|0;Pp(c[(a&p)+48>>2]|0,z,c[((c[((c[(a&p)>>2]|0)&p)+8>>2]|0)&p)+12>>2]|0,u,v);o=q+8|0;q=q+12|0;r=z+24|0;s=z+16|0;t=a+16|0;while(1){f=c[((c[(o&p)>>2]|0)&p)+4>>2]|0;g=c[(q&p)>>2]|0;h=c[(g+(f*56|0)&p)+20>>2]|0;if(!(c[(g+(f*56|0)&p)+24>>2]|0)){d=1;b=0;break}l=r;k=c[(l&p)>>2]|0;l=c[(l&p)+4>>2]|0;m=c[(s&p)>>2]|0;n=((h|0)<0)<<31>>31;b=h;e=n;d=0;do{d=d+1|0;b=mw(b|0,e|0,7)|0;e=G}while(((b|0)!=0|(e|0)!=0)&(d|0)<9);k=jw(k|0,l|0,h|0,n|0)|0;k=jw(k|0,G|0,m|0,((m|0)<0)<<31>>31|0)|0;d=jw(k|0,G|0,d|0,((d|0)<0)<<31>>31|0)|0;k=G;b=c[(t&p)>>2]|0;b=jw(b|0,((b|0)<0)<<31>>31|0,u|0,v|0)|0;e=G;if((k|0)>(e|0)|(k|0)==(e|0)&d>>>0>b>>>0){d=1;b=0;break}Qp(z,x,pm(x,h,n)|0);Qp(z,c[(g+(f*56|0)&p)+32>>2]|0,h);b=Wm(c[(w&p)>>2]|0,y)|0;if(b){d=0;break}}z=Rp(z,a+56|0)|0;i=A;return (d?z:b)|0}function Mq(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0;d=i;i=i+16|0;if((i|0)>=(j|0))fa();f=d;c[(f&p)>>2]=e;e=Wk(a,13592,f)|0;mg(a,b);i=d;return e|0}function Nq(d,e,f,g){d=d|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,q=0;q=i;i=i+16|0;if((i|0)>=(j|0))fa();m=q;h=a[(d&n)>>0]|0;if(h<<24>>24!=0&(e|0)>0){l=0;do{if((h+-48&255)<10){k=0;do{k=(k*10|0)+-48+(h<<24>>24)|0;d=d+1|0;h=a[(d&n)>>0]|0}while((h+-48&255)<10);h=0}else{k=0;h=0}b[(f+(l<<1)&o)>>1]=fs(k,h)|0;d=(a[(d&n)>>0]|0)==32?d+1|0:d;l=l+1|0;h=a[(d&n)>>0]|0}while(h<<24>>24!=0&(l|0)<(e|0))}l=g+51|0;a[(l&n)>>0]=a[(l&n)>>0]&-69;a:do if(a[(d&n)>>0]|0){f=g+44|0;b:while(1){do if(!(Gh(13448,d,10352,0)|0)){if(Gh(13464,d,10352,0)|0){c[(m&p)>>2]=0;Dn(d+3|0,m)|0;h=c[(m&p)>>2]|0;b[(f&o)>>1]=fs(h,((h|0)<0)<<31>>31)|0;break}if(Gh(13480,d,10352,0)|0)a[(l&n)>>0]=a[(l&n)>>0]|64}else a[(l&n)>>0]=a[(l&n)>>0]|4;while(0);while(1){h=a[(d&n)>>0]|0;if(h<<24>>24==32|h<<24>>24==0)break;d=d+1|0}while(1){k=d+1|0;if(!(h<<24>>24))break a;else if(h<<24>>24!=32)continue b;h=a[(k&n)>>0]|0;d=k}}}while(0);i=q;return}function Oq(d){d=d|0;var e=0,f=0;f=d+8|0;e=c[(f&p)>>2]|0;if(!e){e=vh(d)|0;c[(f&p)>>2]=e;if(e)wh(e,155,0,0,0)|0;if((c[(d&p)+408>>2]|0)==0?(b[((c[(d&p)>>2]|0)&o)+60>>1]&8)==0:0)a[(d&n)+23>>0]=1}return e|0}function Pq(b,d){b=b|0;d=d|0;var e=0;e=(c[(b&p)+32>>2]|0)+-1|0;if((e|0)>(c[((c[(b&p)+24>>2]|0)&p)+88>>2]|0)?(a[((c[(b&p)+4>>2]|0)+(e*20|0)&n)>>0]|0)==d<<24>>24:0){zh(b,e);e=1}else e=0;return e|0}function Qq(d,e,f,g,h){d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var i=0,j=0;j=Oq(d)|0;i=g+32|0;gs(d,f,c[(i&p)>>2]|0,(h|0)==55&1,c[(g&p)>>2]|0);if(!(a[(g&n)+44>>0]&32)){g=b[(g&o)+38>>1]|0;xh(j,wh(j,h,e,c[(i&p)>>2]|0,f)|0,g,-14)}else{i=c[(g&p)+8>>2]|0;a:do if(!i)i=0;else while(1){if((a[(i&n)+51>>0]&3)==2)break a;i=c[(i&p)+20>>2]|0;if(!i){i=0;break}}while(0);wh(j,h,e,c[(i&p)+40>>2]|0,f)|0;g=c[(d&p)+8>>2]|0;xh(g,-1,hs(d,i)|0,-6)}return}function Rq(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0;if((d|0)!=0?(a[(d&n)>>0]|0)==-97:0)wh(c[(b&p)+8>>2]|0,33,c[(d&p)+28>>2]|0,e,0)|0;else h=4;if(((h|0)==4?(g=is(b,d,e)|0,(g|0)!=(e|0)):0)?(f=c[(b&p)+8>>2]|0,(f|0)!=0):0)wh(f,34,g,e,0)|0;return}function Sq(b,d,e,f,g){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0;m=i;i=i+16|0;if((i|0)>=(j|0))fa();l=m;h=c[(b&p)>>2]|0;do if(((a[(h&n)+145>>0]|0)==0?(a[(b&n)+451>>0]|0)==0:0)?(k=c[(h&p)+284>>2]|0,(k|0)!=0):0){h=kc[k&7](c[(h&p)+288>>2]|0,d,e,f,g,c[(b&p)+492>>2]|0)|0;if((h|0)==1){th(b,25216,l);c[(b&p)+12>>2]=23;h=1;break}else if((h|0)==0|(h|0)==2)break;else{th(b,25232,l);c[(b&p)+12>>2]=1;h=1;break}}else h=0;while(0);i=m;return h|0}function Tq(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;d=Wq(c[(a&p)>>2]|0,d)|0;do if(d){e=Oq(a)|0;if((e|0)!=0?(Sq(a,32,c[(b<<2&p)+37088>>2]|0,d,0)|0)==0:0){xh(e,wh(e,2,b,0,0)|0,d,-1);break}mg(c[(a&p)>>2]|0,d)}while(0);return}function Uq(e,f,g,h,k,l,m){e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;m=m|0;var q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0;y=i;i=i+16|0;if((i|0)>=(j|0))fa();u=y;s=y+4|0;x=c[(e&p)>>2]|0;f=er(e,f,g,s)|0;a:do if((f|0)>=0){t=(h|0)!=0;if(t?(c[(g&p)+4>>2]|0)!=0&(f|0)!=1:0){th(e,36976,u);break}w=t?1:f;g=c[(s&p)>>2]|0;t=g;f=c[(t&p)+4>>2]|0;s=e+496|0;c[(s&p)>>2]=c[(t&p)>>2];c[(s&p)+4>>2]=f;s=Wq(x,g)|0;if(s){b:do if((Lr(e,s)|0)==0?(r=(a[(x&n)+144>>0]|0)==1?1:h,v=x+16|0,q=c[((c[(v&p)>>2]|0)+(w<<4)&p)>>2]|0,(Sq(e,18,(r|0)==1?13184:13208,0,q)|0)==0):0){h=(r|0)!=0;if(!k)f=h?4:2;else f=h?6:8;t=(l|0)!=0;if(!t?(Sq(e,f,s,0,q)|0)!=0:0)break;do if(!(a[(e&n)+451>>0]|0)){h=c[((c[(v&p)>>2]|0)+(w<<4)&p)>>2]|0;if(Gn(e)|0)break b;if(!(_h(x,s,h)|0)){if(!(bq(x,s,h)|0))break;c[(u&p)>>2]=s;th(e,37048,u);break b}if(!m){c[(u&p)>>2]=g;th(e,37024,u);break b}else{Ar(e,w);break b}}while(0);r=mh(x,76,0)|0;if(!r){a[(x&n)+65>>0]=1;c[(e&p)+12>>2]=7;v=e+64|0;c[(v&p)>>2]=(c[(v&p)>>2]|0)+1;break}q=r+0|0;h=q+76|0;do{a[(q&n)>>0]=0;q=q+1|0}while((q|0)<(h|0));c[(r&p)>>2]=s;b[(r&o)+36>>1]=-1;q=c[((c[(v&p)>>2]|0)+(w<<4)&p)+12>>2]|0;c[(r&p)+68>>2]=q;b[(r&o)+40>>1]=1;b[(r&o)+28>>1]=200;c[(e&p)+484>>2]=r;if((a[(e&n)+18>>0]|0)==0?(_v(s,26576)|0)==0:0)c[(q&p)+72>>2]=r;if(a[(x&n)+145>>0]|0)break a;g=Oq(e)|0;if(!g)break a;v=c[(e&p)+408>>2]|0;Ar(e,w);q=1<>2]=c[(v&p)>>2]|q;if(t)wh(g,146,0,0,0)|0;r=e+72|0;f=c[(r&p)>>2]|0;s=f+1|0;c[(e&p)+384>>2]=s;t=f+2|0;c[(e&p)+388>>2]=t;f=f+3|0;c[(r&p)>>2]=f;wh(g,51,w,f,2)|0;r=g+96|0;c[(r&p)>>2]=c[(r&p)>>2]|q;r=wh(g,45,f,0,0)|0;wh(g,25,(c[(x&p)+24>>2]&32768|0)!=0?1:4,f,0)|0;wh(g,52,w,2,f)|0;wh(g,25,d[(x&n)+62>>0]|0,f,0)|0;wh(g,52,w,5,f)|0;h=g+32|0;q=c[(h&p)>>2]|0;if(q>>>0>r>>>0)c[((c[(g&p)+4>>2]|0)+(r*20|0)&p)+8>>2]=q;c[((c[(g&p)+24>>2]|0)&p)+88>>2]=q+-1;if(!(l|k))c[(e&p)+416>>2]=wh(g,121,w,t,0)|0;else wh(g,25,0,t,0)|0;js(e,w);wh(g,74,0,s,0)|0;wh(g,28,0,f,0)|0;wh(g,75,0,f,s)|0;q=c[(g&p)+4>>2]|0;if(q)a[(q+(((c[(h&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=8;wh(g,61,0,0,0)|0;break a}while(0);mg(x,s)}}while(0);i=y;return}function Vq(f,g,h,k,l){f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;var m=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;R=i;i=i+176|0;if((i|0)>=(j|0))fa();M=R+80|0;J=R+168|0;G=R;H=R+136|0;I=R+112|0;N=c[(f&p)>>2]|0;a:do if((!((h|0)==0&(l|0)==0)?(O=N+65|0,(a[(O&n)>>0]|0)==0):0)?(P=f+484|0,Q=c[(P&p)>>2]|0,(Q|0)!=0):0){L=N+145|0;if(a[(L&n)>>0]|0)c[(Q&p)+32>>2]=c[(N&p)+140>>2];b:do if(k&32){s=Q+44|0;r=d[(s&n)>>0]|0;if(r&8){th(f,36584,M);break a}if(!(r&4)){c[(M&p)>>2]=c[(Q&p)>>2];th(f,36640,M);break}a[(s&n)>>0]=r|32;t=c[(f&p)+8>>2]|0;s=c[(f&p)+416>>2]|0;if(s){if((s|0)<0)s=(c[(t&p)+32>>2]|0)+-1|0;if(!(a[((c[(t&p)>>2]|0)&n)+65>>0]|0))s=(c[(t&p)+4>>2]|0)+(s*20|0)|0;else s=29120;a[(s&n)>>0]=120}s=c[(f&p)+420>>2]|0;if(s){if((s|0)<0)s=(c[(t&p)+32>>2]|0)+-1|0;if(!(a[((c[(t&p)>>2]|0)&n)+65>>0]|0))r=(c[(t&p)+4>>2]|0)+(s*20|0)|0;else r=29120;a[(r&n)>>0]=16}r=Q+36|0;if((b[(r&o)>>1]|0)>-1){s=lr(f,0,0)|0;if(!s)break;C=kh(c[(f&p)>>2]|0,c[((c[(Q&p)+4>>2]|0)+((b[(r&o)>>1]|0)*24|0)&p)>>2]|0)|0;D=c[(s&p)+4>>2]|0;c[(D&p)+4>>2]=C;a[(D&n)+12>>0]=a[(f&n)+448>>0]|0;s=$q(f,0,0,0,s,d[(Q&n)+45>>0]|0,0,0,0,0)|0;if(!s)break;x=s+51|0;a[(x&n)>>0]=a[(x&n)>>0]&-4|2;b[(r&o)>>1]=-1;x=b[(s&o)+46>>1]|0}else{s=c[(Q&p)+8>>2]|0;c:do if(!s)s=0;else while(1){if((a[(s&n)+51>>0]&3)==2)break c;s=c[(s&p)+20>>2]|0;if(!s){s=0;break}}while(0);y=s+46|0;t=b[(y&o)>>1]|0;if((t&65535)>1){w=c[(s&p)+4>>2]|0;v=s+48|0;x=1;r=1;do{m=b[(w+(x<<1)&o)>>1]|0;u=r;q=w;while(1){if((u|0)<=0){F=36;break}if((b[(q&o)>>1]|0)==m<<16>>16){F=35;break}else{u=u+-1|0;q=q+2|0}}if((F|0)==35){F=0;b[(v&o)>>1]=(b[(v&o)>>1]|0)+-1<<16>>16}else if((F|0)==36){F=0;b[(w+(r<<1)&o)>>1]=m;t=b[(y&o)>>1]|0;r=r+1|0}x=x+1|0}while((x|0)<(t&65535|0))}else r=1;x=r&65535;b[(y&o)>>1]=x}u=s+51|0;t=a[(u&n)>>0]|32;a[(u&n)>>0]=t;D=x&65535;if(!(a[(N&n)+147>>0]|0)){if(x<<16>>16){t=c[(s&p)+4>>2]|0;r=c[(Q&p)+4>>2]|0;q=0;do{a[(r+((b[(t+(q<<1)&o)>>1]|0)*24|0)&n)+20>>0]=1;q=q+1|0}while((q|0)<(D|0));t=a[(u&n)>>0]|0}a[(u&n)>>0]=t|8}c[(s&p)+40>>2]=c[(Q&p)+32>>2];u=c[(Q&p)+8>>2]|0;if(u){A=x<<16>>16==0;B=s+4|0;C=s+32|0;do{d:do if((a[(u&n)+51>>0]&3)!=2){do if(A)t=b[(u&o)+46>>1]|0;else{v=c[(u&p)+4>>2]|0;t=b[(u&o)+46>>1]|0;q=t&65535;m=c[(B&p)>>2]|0;z=0;r=0;do{w=b[(m+(z<<1)&o)>>1]|0;y=q;x=v;while(1){if((y|0)<=0){x=1;break}if((b[(x&o)>>1]|0)==w<<16>>16){x=0;break}else{y=y+-1|0;x=x+2|0}}r=x+r|0;z=z+1|0}while((z|0)<(D|0));q=u+46|0;if(!r)break;if(ks(N,u,(t&65535)+r|0)|0)break b;if(A)break d;w=b[(q&o)>>1]|0;z=u+4|0;m=u+32|0;y=w;x=0;w=w&65535;while(1){t=c[(z&p)>>2]|0;r=b[((c[(B&p)>>2]|0)+(x<<1)&o)>>1]|0;y=y&65535;v=t;while(1){if((y|0)<=0){F=63;break}if((b[(v&o)>>1]|0)==r<<16>>16)break;else{y=y+-1|0;v=v+2|0}}if((F|0)==63){F=0;b[(t+(w<<1)&o)>>1]=r;c[((c[(m&p)>>2]|0)+(w<<2)&p)>>2]=c[((c[(C&p)>>2]|0)+(x<<2)&p)>>2];w=w+1|0}x=x+1|0;if((x|0)>=(D|0))break d;y=b[(q&o)>>1]|0}}while(0);b[(u&o)+48>>1]=t}while(0);u=c[(u&p)+20>>2]|0}while((u|0)!=0)}y=Q+38|0;t=b[(y&o)>>1]|0;r=t<<16>>16;if((D|0)>=(r|0)){b[(s&o)+48>>1]=t;break}if((ks(N,s,r)|0)==0?(E=b[(y&o)>>1]|0,E<<16>>16>0):0){v=s+4|0;x=s+32|0;t=E;w=0;s=D;do{q=c[(v&p)>>2]|0;u=s;r=q;while(1){if((u|0)<=0){F=74;break}if((b[(r&o)>>1]|0)==(w|0))break;else{u=u+-1|0;r=r+2|0}}if((F|0)==74){F=0;b[(q+(s<<1)&o)>>1]=w;c[((c[(x&p)>>2]|0)+(s<<2)&p)>>2]=11152;t=b[(y&o)>>1]|0;s=s+1|0}w=w+1|0}while((w|0)<(t<<16>>16|0))}}while(0);F=Q+68|0;s=c[(F&p)>>2]|0;e:do if(s){r=c[(N&p)+20>>2]|0;if((r|0)>0){q=c[(N&p)+16>>2]|0;t=0;while(1){m=t+1|0;if((c[(q+(t<<4)&p)+12>>2]|0)==(s|0))break e;if((m|0)<(r|0))t=m;else{t=m;break}}}else t=0}else t=-1e6;while(0);q=c[(Q&p)+24>>2]|0;f:do if(q){c[(H&p)>>2]=0;c[(H&p)+4>>2]=0;c[(H&p)+8>>2]=0;c[(H&p)+12>>2]=0;c[(H&p)+16>>2]=0;c[(H&p)+20>>2]=0;c[(H&p)+24>>2]=0;c[(H&p)+28>>2]=0;s=G+0|0;r=s+80|0;do{c[(s&p)>>2]=0;s=s+4|0}while((s|0)<(r|0));c[(G&p)>>2]=1;c[(G&p)+16>>2]=c[(Q&p)>>2];c[(G&p)+24>>2]=Q;c[(G&p)+48>>2]=-1;c[(H&p)>>2]=f;c[(H&p)+4>>2]=G;b[(H&o)+28>>1]=4;s=q+4|0;if((c[(q&p)>>2]|0)>0){r=0;do{if(ls(H,c[((c[(s&p)>>2]|0)+(r*20|0)&p)>>2]|0)|0)break f;r=r+1|0}while((r|0)<(c[(q&p)>>2]|0))}}while(0);D=Q+38|0;m=b[(D&o)>>1]|0;if(m<<16>>16>0){s=m<<16>>16;r=c[(Q&p)+4>>2]|0;q=0;while(1){q=(d[(r&n)+22>>0]|0)+q|0;s=s+-1|0;if((s|0)<=0)break;else r=r+24|0}}else q=0;b[(Q&o)+42>>1]=fs(((e[(Q&o)+36>>1]|0)>>>15&65535)+q<<2,0)|0;q=c[(Q&p)+8>>2]|0;if(q)do{ms(q);q=c[(q&p)+20>>2]|0}while((q|0)!=0);if(!(a[(L&n)>>0]|0)){E=Oq(f)|0;if(!E)break;wh(E,61,0,0,0)|0;B=(c[(Q&p)+12>>2]|0)==0;r=B?36672:36680;B=B?31232:35480;do if(!l){q=k<<24>>24==0?h:f+504|0;l=c[(q&p)>>2]|0;s=c[(f&p)+496>>2]|0;m=l-s|0;if((a[(l&n)>>0]|0)!=59)m=(c[(q&p)+4>>2]|0)+m|0;c[(M&p)>>2]=r;c[(M&p)+4>>2]=m;c[(M&p)+8>>2]=s;s=f+388|0;m=Q;r=uh(N,36688,M)|0}else{s=f+388|0;wh(E,55,1,c[(s&p)>>2]|0,t)|0;r=c[(E&p)+4>>2]|0;if(r)a[(r+(((c[(E&p)+32>>2]|0)+-1|0)*20|0)&n)+3>>0]=4;c[(f&p)+68>>2]=2;a[(I&n)>>0]=14;c[(I&p)+4>>2]=1;a[(I&n)+1>>0]=0;c[(I&p)+8>>2]=0;c[(I&p)+12>>2]=0;ir(f,l,I)|0;wh(E,61,1,0,0)|0;if(!(c[(f&p)+64>>2]|0)){m=ns(f,l)|0;if(!m)break a;I=m+38|0;b[(D&o)>>1]=b[(I&o)>>1]|0;l=m+4|0;c[(Q&p)+4>>2]=c[(l&p)>>2];b[(I&o)>>1]=0;c[(l&p)>>2]=0;kg(N,m)}C=Q+4|0;z=b[(D&o)>>1]|0;if(z<<16>>16>0){v=z<<16>>16;w=0;r=0;x=c[(C&p)>>2]|0;while(1){m=c[(x&p)>>2]|0;q=0;while(1){u=a[(m&n)>>0]|0;if(u<<24>>24==34)q=q+1|0;else if(!(u<<24>>24))break;m=m+1|0;q=q+1|0}r=r+7+q|0;w=w+1|0;if((w|0)==(v|0))break;else x=x+24|0}u=r+2|0}else u=2;m=c[(Q&p)>>2]|0;r=0;while(1){q=a[(m&n)>>0]|0;if(q<<24>>24==34)r=r+1|0;else if(!(q<<24>>24))break;m=m+1|0;r=r+1|0}x=r+u|0;A=(x|0)<50;u=A?10360:36880;y=A?20240:36888;A=A?33952:36896;x=((z<<16>>16)*6|0)+35+x|0;r=qg(x,((x|0)<0)<<31>>31)|0;if(!r){a[(O&n)>>0]=1;m=Q;r=0;break}ad(x,r,36904,M)|0;q=r;while(1)if(!(a[(q&n)>>0]|0))break;else q=q+1|0;c[(J&p)>>2]=q-r&1073741823;os(r,J,c[(Q&p)>>2]|0);m=c[(J&p)>>2]|0;v=m+1|0;c[(J&p)>>2]=v;a[(r+m&n)>>0]=40;m=x-v|0;q=r+v|0;if((b[(D&o)>>1]|0)>0){z=0;w=c[(C&p)>>2]|0;while(1){ad(m,q,u,M)|0;q=r+v|0;if(!q)q=0;else{u=q;while(1)if(!(a[(u&n)>>0]|0))break;else u=u+1|0;q=u-q&1073741823}c[(J&p)>>2]=q+v;os(r,J,c[(w&p)>>2]|0);q=c[((a[(w&n)+21>>0]|0)+-65<<2&p)+36920>>2]|0;u=q;while(1)if(!(a[(u&n)>>0]|0))break;else u=u+1|0;v=u-q&1073741823;u=c[(J&p)>>2]|0;kw(r+u|0,q|0,v|0)|0;v=u+v|0;c[(J&p)>>2]=v;u=z+1|0;m=x-v|0;q=r+v|0;if((u|0)<(b[(D&o)>>1]|0)){z=u;w=w+24|0;u=y}else break}}c[(M&p)>>2]=A;ad(m,q,10344,M)|0;m=Q}while(0);q=N+16|0;k=c[(m&p)>>2]|0;I=c[(s&p)>>2]|0;l=c[(f&p)+384>>2]|0;c[(M&p)>>2]=c[((c[(q&p)>>2]|0)+(t<<4)&p)>>2];c[(M&p)+4>>2]=(t|0)==1?13184:13208;c[(M&p)+8>>2]=B;c[(M&p)+12>>2]=k;c[(M&p)+16>>2]=k;c[(M&p)+20>>2]=I;c[(M&p)+24>>2]=r;c[(M&p)+28>>2]=l;Br(f,36704,M);mg(N,r);Dr(f,t);if((a[(Q&n)+44>>0]&8)!=0?(K=c[(q&p)>>2]|0,(c[((c[(K+(t<<4)&p)+12>>2]|0)&p)+72>>2]|0)==0):0){c[(M&p)>>2]=c[(K+(t<<4)&p)>>2];Br(f,36792,M)}c[(M&p)>>2]=c[(m&p)>>2];Ir(E,t,uh(N,36840,M)|0);if(!(a[(L&n)>>0]|0))break}else m=Q;if(Ik((c[(F&p)>>2]|0)+8|0,c[(m&p)>>2]|0,Q)|0){a[(O&n)>>0]=1;break}c[(P&p)>>2]=0;l=N+24|0;c[(l&p)>>2]=c[(l&p)>>2]|2;if(!(c[(Q&p)+12>>2]|0)){l=c[(f&p)+496>>2]|0;c[(Q&p)+48>>2]=(Nn(l,(c[(((c[(g&p)>>2]|0)==0?h:g)&p)>>2]|0)-l|0)|0)+13}}while(0);i=R;return}function Wq(b,d){b=b|0;d=d|0;var e=0,f=0;if(!d)e=0;else{f=c[(d&p)>>2]|0;d=c[(d&p)+4>>2]|0;if((f|0)!=0?(e=jw(d|0,0,1,0)|0,e=mh(b,e,G)|0,(e|0)!=0):0){kw(e|0,f|0,d|0)|0;a[(e+d&n)>>0]=0}else e=0;lo(e)}return e|0}function Xq(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,o=0,q=0;o=i;i=i+16|0;if((i|0)>=(j|0))fa();m=o;a:do if(b){g=a[(b&n)>>0]|0;b:do if(!(g<<24>>24)){f=67;g=0}else{k=g;f=67;h=0;g=0;do{h=d[(k&255&n)+9328>>0]|0|h<<8;b=b+1|0;if((h|0)==1685026146)if(f<<24>>24==67){f=69;h=1685026146;l=5}else l=13;else if((h|0)==1668050786){f=66;l=5}else if((h|0)==1718382433)if(f<<24>>24==67){f=69;h=1718382433;l=5}else l=13;else if((h|0)==1919246700)if(f<<24>>24==67){f=69;h=1919246700;l=5}else l=14;else if((h|0)==1952807028){f=66;l=5}else if((h|0)==1651273570)if(f<<24>>24==69|f<<24>>24==67){q=a[(b&n)>>0]|0;k=q;f=65;h=1651273570;g=q<<24>>24==40?b:g}else l=14;else if((h|0)!=1667785074)if((h&16777215|0)==6909556){f=68;break b}else l=5;else{f=66;h=1667785074;g=b;l=5}if((l|0)==13)l=5;else if((l|0)==14)l=5;if((l|0)==5){l=0;k=a[(b&n)>>0]|0}}while(k<<24>>24!=0)}while(0);if((e|0)!=0?(a[(e&n)>>0]=1,f<<24>>24<67):0){if(!g){a[(e&n)>>0]=5;break}b=a[(g&n)>>0]|0;if(b<<24>>24){while(1){if(((b&255)+-48|0)>>>0<10)break;g=g+1|0;b=a[(g&n)>>0]|0;if(!(b<<24>>24))break a}c[(m&p)>>2]=0;Dn(g,m)|0;g=((c[(m&p)>>2]|0)/4|0)+1|0;g=(g|0)>255?255:g;c[(m&p)>>2]=g;a[(e&n)>>0]=g}}}else f=67;while(0);i=o;return f|0}function Yq(e,f){e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,q=0,r=0,s=0,t=0;r=i;i=i+32|0;if((i|0)>=(j|0))fa();m=r;q=c[(e&p)>>2]|0;k=c[(e&p)+484>>2]|0;do if(k){h=(b[(k&o)+38>>1]|0)+-1|0;l=c[(k&p)+4>>2]|0;s=c[(f&p)>>2]|0;t=(d[(q&n)+145>>0]|0)+4|0;c[(m&p)>>2]=0;c[(m&p)+4>>2]=0;c[(m&p)+8>>2]=0;c[(m&p)+12>>2]=0;c[(m&p)+16>>2]=0;c[(m&p)+20>>2]=0;k=m+20|0;a[(k&n)>>0]=t;c[(m&p)>>2]=78;c[(m&p)+4>>2]=79;c[(m&p)+24>>2]=0;rs(m,s)|0;if(!(a[(k&n)>>0]|0)){c[(m&p)>>2]=c[(l+(h*24|0)&p)>>2];th(e,36480,m);break}k=l+(h*24|0)+4|0;Gk(q,c[(k&p)>>2]|0);c[(k&p)>>2]=Mr(q,c[(f&p)>>2]|0,1,0)|0;l=l+(h*24|0)+8|0;mg(q,c[(l&p)>>2]|0);h=c[(f&p)+4>>2]|0;k=(c[(f&p)+8>>2]|0)-h|0;if((h|0)!=0?(g=jw(k|0,((k|0)<0)<<31>>31|0,1,0)|0,g=mh(q,g,G)|0,(g|0)!=0):0){kw(g|0,h|0,k|0)|0;a[(g+k&n)>>0]=0}else g=0;c[(l&p)>>2]=g}while(0);Gk(q,c[(f&p)>>2]|0);i=r;return}function Zq(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,k=0;k=i;i=i+16|0;if((i|0)>=(j|0))fa();h=k;if((b|0)==72&(d|0)!=0&(e|0)!=0?(c[(a&p)+64>>2]|0)==0:0)b=ss(c[(a&p)>>2]|0,d,e)|0;else{b=nr(c[(a&p)>>2]|0,b,f,1)|0;ts(c[(a&p)>>2]|0,b,d,e)}if((b|0)!=0?(g=c[((c[(a&p)>>2]|0)&p)+100>>2]|0,(g|0)<(c[(b&p)+24>>2]|0)):0){c[(h&p)>>2]=g;th(a,27152,h)}i=k;return b|0}function _q(e,f,g,h,k){e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;var l=0,m=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;i=i+16|0;if((i|0)>=(j|0))fa();C=D;A=c[(e&p)+484>>2]|0;do if((A|0)!=0?(a[(e&n)+451>>0]|0)==0:0){B=A+44|0;m=d[(B&n)>>0]|0;if(m&4){c[(C&p)>>2]=c[(A&p)>>2];th(e,36376,C);break}y=m|4;a[(B&n)>>0]=y;z=(f|0)==0;if(z){m=(b[(A&o)+38>>1]|0)+-1|0;w=c[(A&p)+4>>2]|0;l=w+(m*24|0)+23|0;a[(l&n)>>0]=d[(l&n)>>0]|1;l=m;q=1;m=c[(w+(m*24|0)&p)+12>>2]|0}else{x=c[(f&p)>>2]|0;if((x|0)>0){u=f+4|0;v=A+4|0;t=b[(A&o)+38>>1]|0;w=0;m=0;do{a:do if(t<<16>>16>0){r=c[((c[(u&p)>>2]|0)+(w*20|0)&p)+4>>2]|0;s=c[(v&p)>>2]|0;q=0;while(1){l=q+1|0;if(!(dd(r,c[(s+(q*24|0)&p)>>2]|0)|0))break;if((l|0)<(t<<16>>16|0))q=l;else break a}l=s+(q*24|0)+23|0;a[(l&n)>>0]=d[(l&n)>>0]|1;l=q;m=c[(s+(q*24|0)&p)+12>>2]|0}else l=0;while(0);w=w+1|0}while((w|0)!=(x|0))}else{l=-1;m=0}q=(x|0)==1}if(q&(m|0)!=0?(dd(m,11144)|0|k|0)==0:0){b[(A&o)+36>>1]=l;a[(A&n)+45>>0]=g;a[(B&n)>>0]=y|h<<3;if(z){f=0;break}a[(e&n)+448>>0]=a[((c[(f&p)+4>>2]|0)&n)+12>>0]|0;break}if(h){th(e,36424,C);break}m=c[(e&p)+8>>2]|0;l=(m|0)!=0;if(l)c[(e&p)+420>>2]=wh(m,156,0,0,0)|0;f=$q(e,0,0,0,f,g,0,0,k,0)|0;if((f|0)!=0?(w=f+51|0,a[(w&n)>>0]=a[(w&n)>>0]&-4|2,l):0){f=c[(e&p)+420>>2]|0;l=c[(m&p)+32>>2]|0;if(l>>>0>f>>>0)c[((c[(m&p)+4>>2]|0)+(f*20|0)&p)+8>>2]=l;c[((c[(m&p)+24>>2]|0)&p)+88>>2]=l+-1;f=0}else f=0}while(0);Nk(c[(e&p)>>2]|0,f);i=D;return}function $q(f,g,h,k,l,m,q,r,s,t){f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;m=m|0;q=q|0;r=r|0;s=s|0;t=t|0;var 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;Y=i;i=i+144|0;if((i|0)>=(j|0))fa();V=Y;E=Y+112|0;x=Y+88|0;T=Y+84|0;N=Y+80|0;X=c[(f&p)>>2]|0;c[(T&p)>>2]=0;c[(N&p)>>2]=0;S=X+65|0;a:do if(((a[(S&n)>>0]|0)==0?(a[(f&n)+451>>0]|0)==0:0)?(Gn(f)|0)==0:0){U=(k|0)!=0;b:do if(U){g=er(f,g,h,T)|0;if((g|0)<0){u=0;h=0;break a}if((a[(X&n)+145>>0]|0)==0?(u=Jr(f,k)|0,(c[(h&p)+4>>2]|0)==0&(u|0)!=0):0)g=(c[(u&p)+68>>2]|0)==(c[((c[(X&p)+16>>2]|0)&p)+28>>2]|0)?1:g;h=c[(T&p)>>2]|0;u=c[(f&p)>>2]|0;c[(x&p)>>2]=f;u=c[(u&p)+16>>2]|0;c[(x&p)+12>>2]=c[(u+(g<<4)&p)>>2];c[(x&p)+4>>2]=c[(u+(g<<4)&p)+12>>2];c[(x&p)+16>>2]=20632;c[(x&p)+20>>2]=h;u=(g|0)==1;c[(x&p)+8>>2]=u&1;Kr(x,k)|0;w=Ur(f,0,k+8|0)|0;if(!w){u=0;h=0;break a}if(u?(c[((c[(X&p)+16>>2]|0)&p)+28>>2]|0)!=(c[(w&p)+68>>2]|0):0){c[(V&p)>>2]=c[(w&p)>>2];th(f,35920,V);u=0;h=0;break a}if((a[(w&n)+44>>0]&32)!=0?(v=c[(w&p)+8>>2]|0,(v|0)!=0):0){u=v;while(1){if((a[(u&n)+51>>0]&3)==2){v=g;M=u;x=w;break b}u=c[(u&p)+20>>2]|0;if(!u){v=g;M=0;x=w;break}}}else{v=g;M=0;x=w}}else{x=c[(f&p)+484>>2]|0;if(!x){u=0;h=0;break a}g=c[(x&p)+68>>2]|0;if(g){u=c[(X&p)+20>>2]|0;if((u|0)>0){h=c[(X&p)+16>>2]|0;w=0;while(1){v=w+1|0;if((c[(h+(w<<4)&p)+12>>2]|0)==(g|0)){h=0;v=w;M=0;break b}if((v|0)<(u|0))w=v;else{h=0;M=0;break}}}else{h=0;v=0;M=0}}else{h=0;v=-1e6;M=0}}while(0);R=X+16|0;F=c[(R&p)>>2]|0;g=F+(v<<4)|0;A=c[(x&p)>>2]|0;if(((Fc(A,25568,7)|0)==0?(a[(X&n)+145>>0]|0)==0:0)?(Fc(A+7|0,35976,9)|0)!=0:0){c[(V&p)>>2]=A;th(f,35992,V);u=0;h=0;break}if(c[(x&p)+12>>2]|0){th(f,36024,V);u=0;h=0;break}Q=x+44|0;if(a[(Q&n)>>0]&16){th(f,36056,V);u=0;h=0;break}G=(h|0)==0;if(!G){h=Wq(X,h)|0;if(!h){u=0;h=0;break}if(Lr(f,h)|0){u=0;break}if((a[(X&n)+145>>0]|0)==0?(_h(X,h,0)|0)!=0:0){c[(V&p)>>2]=h;th(f,36096,V);u=0;break}if(bq(X,h,c[(g&p)>>2]|0)|0)if(!t){c[(V&p)>>2]=h;th(f,36136,V);u=0;break}else{Ar(f,v);u=0;break}else w=h}else{u=c[(x&p)+8>>2]|0;if(!u)w=1;else{w=1;do{w=w+1|0;u=c[(u&p)+20>>2]|0}while((u|0)!=0)}c[(V&p)>>2]=A;c[(V&p)+4>>2]=w;w=uh(X,36160,V)|0;if(!w){u=0;h=0;break}}g=c[(g&p)>>2]|0;u=(v|0)==1;O=u?13184:13208;if((Sq(f,18,O,0,g)|0)==0?(Sq(f,u?3:1,w,c[(x&p)>>2]|0,g)|0)==0:0){if(!l){l=lr(f,0,0)|0;if(!l){l=0;u=0;h=w;break}I=kh(c[(f&p)>>2]|0,c[((c[(x&p)+4>>2]|0)+(((b[(x&o)+38>>1]|0)+-1|0)*24|0)&p)>>2]|0)|0;J=c[(l&p)+4>>2]|0;c[(J&p)+4>>2]=I;a[(J&n)+12>>0]=s}D=c[(l&p)>>2]|0;if((D|0)>0){A=c[(l&p)+4>>2]|0;y=0;g=0;do{u=c[(A+(y*20|0)&p)>>2]|0;if(u){h=c[(u&p)+8>>2]|0;if(!h)u=1;else{u=h;while(1)if(!(a[(u&n)>>0]|0))break;else u=u+1|0;u=(u-h&1073741823)+1|0}g=u+g|0}y=y+1|0}while((y|0)<(D|0));h=g}else h=0;if(!w)u=0;else{g=w;while(1)if(!(a[(g&n)>>0]|0))break;else g=g+1|0;u=g-w&1073741823}I=(M|0)!=0;if(I)g=e[(M&o)+46>>1]|0;else g=1;P=us(X,D+g&65535,h+1+u|0,N)|0;c:do if(!(a[(S&n)>>0]|0)){H=c[(N&p)>>2]|0;c[(P&p)>>2]=H;L=u+1|0;C=H+L|0;c[(N&p)>>2]=C;kw(H|0,w|0,L|0)|0;c[(P&p)+12>>2]=x;L=P+50|0;a[(L&n)>>0]=m;H=P+51|0;a[(H&n)>>0]=a[(H&n)>>0]&-12|((m|0)!=0&1)<<3&255|G&1;K=P+24|0;c[(K&p)>>2]=c[((c[(R&p)>>2]|0)+(v<<4)&p)+12>>2];g=c[(l&p)>>2]|0;J=P+46|0;b[(J&o)>>1]=g;if(r){c[(E&p)>>2]=0;c[(E&p)+4>>2]=0;c[(E&p)+8>>2]=0;c[(E&p)+12>>2]=0;c[(E&p)+16>>2]=0;c[(E&p)+20>>2]=0;c[(E&p)+24>>2]=0;c[(E&p)+28>>2]=0;A=V+0|0;h=A+80|0;do{c[(A&p)>>2]=0;A=A+4|0}while((A|0)<(h|0));c[(V&p)>>2]=1;c[(V&p)+16>>2]=c[(x&p)>>2];c[(V&p)+24>>2]=x;c[(V&p)+48>>2]=-1;c[(E&p)>>2]=f;c[(E&p)+4>>2]=V;b[(E&o)+28>>1]=16;ls(E,r)|0;c[(P&p)+36>>2]=r;g=c[(l&p)>>2]|0}z=(d[((c[(F+(v<<4)&p)+12>>2]|0)&n)+76>>0]|0)>3;d:do if((g|0)>0){G=x+4|0;F=x+38|0;E=P+4|0;r=X+145|0;g=P+32|0;y=P+28|0;h=0;s=c[(l&p)+4>>2]|0;while(1){u=c[(s&p)+4>>2]|0;A=b[(F&o)>>1]|0;e:do if(A<<16>>16>0){D=0;B=c[(G&p)>>2]|0;while(1){if(!(dd(u,c[(B&p)>>2]|0)|0)){t=D;break e}D=D+1|0;if((D|0)<(A<<16>>16|0))B=B+24|0;else{t=D;break}}}else t=0;while(0);if((t|0)>=(A<<16>>16|0))break;b[((c[(E&p)>>2]|0)+(h<<1)&o)>>1]=t;D=c[(s&p)>>2]|0;if(!D){D=c[((c[(G&p)>>2]|0)+(t*24|0)&p)+16>>2]|0;D=(D|0)!=0?D:11152}else{B=c[(D&p)+8>>2]|0;if(!B)D=1;else{D=B;while(1)if(!(a[(D&n)>>0]|0))break;else D=D+1|0;D=(D-B&1073741823)+1|0}kw(C|0,B|0,D|0)|0;B=c[(N&p)>>2]|0;C=B+D|0;c[(N&p)>>2]=C;D=B}if((a[(r&n)>>0]|0)==0?(cr(f,D)|0)==0:0){h=0;u=0;W=134;break c}c[((c[(g&p)>>2]|0)+(h<<2)&p)>>2]=D;a[((c[(y&p)>>2]|0)+h&n)>>0]=z?a[(s&n)+12>>0]|0:0;if(!(a[((c[(G&p)>>2]|0)+(t*24|0)&n)+20>>0]|0))a[(H&n)>>0]=a[(H&n)>>0]&-9;h=h+1|0;if((h|0)<(c[(l&p)>>2]|0))s=s+20|0;else break d}c[(V&p)>>2]=c[(x&p)>>2];c[(V&p)+4>>2]=u;th(f,36184,V);a[(f&n)+17>>0]=1;h=0;u=0;W=134;break c}else h=0;while(0);do if(I){z=M+46|0;A=b[(z&o)>>1]|0;if(!(A<<16>>16))break;E=M+4|0;F=P+4|0;G=P+48|0;s=M+32|0;t=P+32|0;g=M+28|0;y=P+28|0;r=0;do{B=b[((c[(E&p)>>2]|0)+(r<<1)&o)>>1]|0;u=c[(F&p)>>2]|0;D=e[(J&o)>>1]|0;C=u;while(1){if((D|0)<=0){W=92;break}if((b[(C&o)>>1]|0)==B<<16>>16){W=91;break}else{D=D+-1|0;C=C+2|0}}if((W|0)==91){W=0;b[(G&o)>>1]=(b[(G&o)>>1]|0)+-1<<16>>16}else if((W|0)==92){W=0;b[(u+(h<<1)&o)>>1]=B;c[((c[(t&p)>>2]|0)+(h<<2)&p)>>2]=c[((c[(s&p)>>2]|0)+(r<<2)&p)>>2];a[((c[(y&p)>>2]|0)+h&n)>>0]=a[((c[(g&p)>>2]|0)+r&n)>>0]|0;A=b[(z&o)>>1]|0;h=h+1|0}r=r+1|0}while((r|0)<(A&65535|0))}else{b[((c[(P&p)+4>>2]|0)+(h<<1)&o)>>1]=-1;c[((c[(P&p)+32>>2]|0)+(h<<2)&p)>>2]=11152}while(0);cq(P);r=f+484|0;g=c[(r&p)>>2]|0;if(!g){ms(P);g=c[(r&p)>>2]|0}f:do if((x|0)==(g|0)){u=c[(x&p)+8>>2]|0;if(!u)break;B=b[(J&o)>>1]|0;C=P+4|0;D=P+32|0;while(1){if((b[(u&o)+46>>1]|0)==B<<16>>16){g:do if(!(B<<16>>16)){r=0;g=0}else{y=c[(u&p)+4>>2]|0;z=c[(C&p)>>2]|0;A=u+32|0;g=0;while(1){if((b[(y+(g<<1)&o)>>1]|0)!=(b[(z+(g<<1)&o)>>1]|0)){r=B;break g}r=c[((c[(A&p)>>2]|0)+(g<<2)&p)>>2]|0;h=c[((c[(D&p)>>2]|0)+(g<<2)&p)>>2]|0;if((r|0)!=(h|0)?(dd(r,h)|0)!=0:0){r=B;break g}g=g+1|0;if((g|0)>=(B&65535|0)){r=B;break}}}while(0);if((g|0)==(r&65535|0))break}u=c[(u&p)+20>>2]|0;if(!u)break f}g=u+50|0;h=a[(g&n)>>0]|0;r=a[(L&n)>>0]|0;if(h<<24>>24==r<<24>>24){h=0;break c}if(!(h<<24>>24==10|r<<24>>24==10)){c[(V&p)>>2]=0;th(f,36216,V);h=a[(g&n)>>0]|0}if(h<<24>>24!=10){h=0;W=134;break c}a[(g&n)>>0]=a[(L&n)>>0]|0;h=0;break c}while(0);h=X+145|0;do if(!(a[(h&n)>>0]|0)){if(c[(f&p)+64>>2]|0){W=126;break}if(!((a[(Q&n)>>0]&32)==0|U)){W=126;break}u=f+72|0;r=(c[(u&p)>>2]|0)+1|0;c[(u&p)>>2]=r;u=Oq(f)|0;if(!u){h=0;u=0;W=134;break c}J=c[(f&p)+408>>2]|0;J=(J|0)==0?f:J;Ar(f,v);I=J+328|0;c[(I&p)>>2]=c[(I&p)>>2]|1<>0]=d[(J&n)>>0]|1;wh(u,120,v,r,0)|0;if(!q)g=0;else{g=c[(c[(T&p)>>2]&p)>>2]|0;J=(c[(f&p)+504>>2]|0)-g+(c[(f&p)+508>>2]|0)|0;I=J+-1|0;J=(a[(g+I&n)>>0]|0)==59?I:J;c[(V&p)>>2]=(m|0)==0?10360:36288;c[(V&p)+4>>2]=J;c[(V&p)+8>>2]=g;g=uh(X,36264,V)|0}I=c[(P&p)>>2]|0;J=c[(x&p)>>2]|0;c[(V&p)>>2]=c[((c[(R&p)>>2]|0)+(v<<4)&p)>>2];c[(V&p)+4>>2]=O;c[(V&p)+8>>2]=I;c[(V&p)+12>>2]=J;c[(V&p)+16>>2]=r;c[(V&p)+20>>2]=g;Br(f,36296,V);mg(X,g);if(!U)break;vs(f,P,r);Dr(f,v);c[(V&p)>>2]=c[(P&p)>>2];Ir(u,v,uh(X,36344,V)|0);wh(u,144,0,0,0)|0;W=126}else{if(Ik((c[(K&p)>>2]|0)+24|0,c[(P&p)>>2]|0,P)|0){a[(S&n)>>0]=1;h=0;u=0;W=134;break c}J=X+24|0;c[(J&p)>>2]=c[(J&p)>>2]|2;if(!U)break;c[(P&p)+40>>2]=c[(X&p)+140>>2];W=126}while(0);if((W|0)==126?!((a[(h&n)>>0]|0)!=0|(k|0)==0):0){h=0;u=0;W=134;break}h=c[(x&p)+8>>2]|0;do if((m|0)==5){if(!h){h=0;break}if((a[(h&n)+50>>0]|0)==5)break;do{u=h+20|0;h=c[(u&p)>>2]|0;if(!h){h=0;break}}while((a[(h&n)+50>>0]|0)!=5);c[(P&p)+20>>2]=h;c[(u&p)>>2]=P;r=0;u=P;h=w;break a}while(0);c[(P&p)+20>>2]=h;c[(x&p)+8>>2]=P;r=0;u=P;h=w;break a}else{h=r;u=0;W=134}while(0);if((W|0)==134)if(!P){r=h;h=w;break}Jk(X,P);r=h;h=w}else{u=0;h=w}}else{u=0;h=0}while(0);Gk(X,r);Nk(X,l);Do(X,k);mg(X,h);i=Y;return u|0}function ar(e,f){e=e|0;f=f|0;var g=0,h=0;g=c[(e&p)+484>>2]|0;h=c[(e&p)>>2]|0;if(((g|0)!=0?(a[(e&n)+451>>0]|0)==0:0)?(b[((c[((c[((c[(h&p)+16>>2]|0)+(d[(h&n)+144>>0]<<4)&p)+4>>2]|0)&p)+4>>2]|0)&o)+22>>1]&1)==0:0){h=g+24|0;g=lr(e,c[(h&p)>>2]|0,f)|0;c[(h&p)>>2]=g;if(c[(e&p)+324>>2]|0)mr(e,g,e+320|0,1)}else Gk(h,f);return}function br(d,e,f,g,h){d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0;F=i;i=i+16|0;if((i|0)>=(j|0))fa();C=F;E=c[(d&p)>>2]|0;D=c[(d&p)+484>>2]|0;a:do if((D|0)!=0?(a[(d&n)+451>>0]|0)==0:0){z=(e|0)==0;do if(z){B=b[(D&o)+38>>1]|0;l=(B<<16>>16)+-1|0;if(B<<16>>16<1){k=0;break a}if(g)if((c[(g&p)>>2]|0)==1){l=1;k=13}else{c[(C&p)>>2]=c[((c[(D&p)+4>>2]|0)+(l*24|0)&p)>>2];c[(C&p)+4>>2]=f;th(d,35712,C);k=0;break a}else{l=1;k=12}}else{if(!g){l=c[(e&p)>>2]|0;k=12;break}l=c[(g&p)>>2]|0;if((l|0)==(c[(e&p)>>2]|0))k=13;else{th(d,35776,C);k=0;break a}}while(0);if((k|0)==12){m=f+4|0;s=m;w=0;m=(l<<3)+37+(c[(m&p)>>2]|0)|0;B=l}else if((k|0)==13){s=f+4|0;m=(l<<3)+37+(c[(s&p)>>2]|0)|0;t=c[(g&p)>>2]|0;if((t|0)>0){u=c[(g&p)+4>>2]|0;v=0;do{r=c[(u+(v*20|0)&p)+4>>2]|0;if(!r)k=1;else{q=r;while(1)if(!(a[(q&n)>>0]|0))break;else q=q+1|0;k=(q-r&1073741823)+1|0}m=k+m|0;v=v+1|0}while((v|0)<(t|0));w=1;B=l}else{w=1;B=l}}k=mh(E,m,((m|0)<0)<<31>>31)|0;if(k){fw(k|0,0,m|0)|0;c[(k&p)>>2]=D;A=D+16|0;c[(k&p)+4>>2]=c[(A&p)>>2];x=k+36|0;q=x+(B<<3)|0;y=k+8|0;c[(y&p)>>2]=q;kw(q|0,c[(f&p)>>2]|0,c[(s&p)>>2]|0)|0;a[(q+(c[(s&p)>>2]|0)&n)>>0]=0;lo(q);q=q+((c[(s&p)>>2]|0)+1)|0;c[(k&p)+20>>2]=B;b:do if(!z){if((B|0)>0){m=D+4|0;f=e+4|0;r=b[(D&o)+38>>1]|0;l=0;while(1){c:do if(r<<16>>16>0){v=c[(m&p)>>2]|0;u=c[((c[(f&p)>>2]|0)+(l*20|0)&p)+4>>2]|0;t=0;while(1){s=t+1|0;if(!(dd(c[(v+(t*24|0)&p)>>2]|0,u)|0)){s=t;break}if((s|0)<(r<<16>>16|0))t=s;else break c}c[(x+(l<<3)&p)>>2]=s}else s=0;while(0);if((s|0)>=(r<<16>>16|0))break;l=l+1|0;if((l|0)>=(B|0))break b}c[(C&p)>>2]=c[((c[(f&p)>>2]|0)+(l*20|0)&p)+4>>2];th(d,35872,C);break a}}else c[(x&p)>>2]=(b[(D&o)+38>>1]|0)+-1;while(0);if(w&(B|0)>0){r=g+4|0;s=0;while(1){m=c[((c[(r&p)>>2]|0)+(s*20|0)&p)+4>>2]|0;if(!m)l=0;else{l=m;while(1)if(!(a[(l&n)>>0]|0))break;else l=l+1|0;l=l-m&1073741823}c[(x+(s<<3)&p)+4>>2]=q;kw(q|0,m|0,l|0)|0;a[(q+l&n)>>0]=0;s=s+1|0;if((s|0)==(B|0))break;else q=q+(l+1)|0}}a[(k&n)+24>>0]=0;a[(k&n)+25>>0]=h;a[(k&n)+26>>0]=h>>>8;l=Ik((c[(D&p)+68>>2]|0)+56|0,c[(y&p)>>2]|0,k)|0;if((l|0)==(k|0)){a[(E&n)+65>>0]=1;break}if(l){c[(k&p)+12>>2]=l;c[(l&p)+16>>2]=k}c[(A&p)>>2]=k;k=0}else k=0}else k=0;while(0);mg(E,k);Nk(E,e);Nk(E,g);i=F;return}function cr(b,d){b=b|0;d=d|0;var e=0,f=0,g=0;e=c[(b&p)>>2]|0;f=a[(e&n)+62>>0]|0;g=a[(e&n)+145>>0]|0;e=Yn(e,f,d,g&255)|0;do if(!(g<<24>>24)){if((e|0)!=0?(c[(e&p)+12>>2]|0)!=0:0)break;e=ws(b,f,e,d)|0}while(0);return e|0}function dr(e,f,g,h){e=e|0;f=f|0;g=g|0;h=h|0;var k=0,l=0,m=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;i=i+16|0;if((i|0)>=(j|0))fa();z=B;v=B+12|0;A=c[(e&p)>>2]|0;do if(!(a[(A&n)+65>>0]|0)){h=(h|0)!=0;if(h){u=A+68|0;a[(u&n)>>0]=(a[(u&n)>>0]|0)+1<<24>>24;y=Ur(e,g,f+8|0)|0;a[(u&n)>>0]=(a[(u&n)>>0]|0)+-1<<24>>24}else y=Ur(e,g,f+8|0)|0;if(!y){if(!h)break;zr(e,c[(f&p)+12>>2]|0);break}s=y+68|0;l=c[(s&p)>>2]|0;a:do if(l){h=c[(A&p)+20>>2]|0;if((h|0)>0){k=c[(A&p)+16>>2]|0;q=0;while(1){m=q+1|0;if((c[(k+(q<<4)&p)+12>>2]|0)==(l|0)){m=q;break a}if((m|0)<(h|0))q=m;else break}}else m=0}else m=-1e6;while(0);w=y+44|0;if((a[(w&n)>>0]&16)!=0?(hr(e,y)|0)!=0:0)break;q=(m|0)==1;x=q?13184:13208;h=c[((c[(A&p)+16>>2]|0)+(m<<4)&p)>>2]|0;if(!(Sq(e,9,x,0,h)|0)){k=(g|0)!=0;do if(k){l=q?15:17;q=0}else{if(!(a[(w&n)>>0]&16)){l=q?13:11;q=0;break}q=y+60|0;while(1){q=c[(q&p)>>2]|0;if((c[(q&p)>>2]|0)==(A|0))break;else q=q+24|0}l=30;q=c[((c[(q&p)+4>>2]|0)&p)+4>>2]|0}while(0);if((Sq(e,l,c[(y&p)>>2]|0,q,h)|0)==0?(Sq(e,9,c[(y&p)>>2]|0,0,h)|0)==0:0){q=c[(y&p)>>2]|0;if((Fc(q,25568,7)|0)==0?(Fc(q,35488,11)|0)!=0:0){c[(z&p)>>2]=q;th(e,35504,z);break}h=y+12|0;l=(c[(h&p)>>2]|0)==0;if(k){if(l){c[(z&p)>>2]=q;th(e,35536,z);break}}else if(!l){c[(z&p)>>2]=q;th(e,35576,z);break}if(Oq(e)|0){t=e+408|0;l=c[(t&p)>>2]|0;l=(l|0)==0?e:l;Ar(e,m);u=1<>2]=c[(k&p)>>2]|u;l=l+20|0;a[(l&n)>>0]=d[(l&n)>>0]|1;Cr(e,m,28544,c[(y&p)>>2]|0);l=c[(e&p)>>2]|0;k=l+24|0;b:do if(((c[(k&p)>>2]&524288|0)!=0?(a[(w&n)>>0]&16)==0:0)?(c[(h&p)>>2]|0)==0:0){r=Oq(e)|0;v=bn((c[(s&p)>>2]|0)+56|0,c[(y&p)>>2]|0,v)|0;if((v|0)!=0?(c[(v&p)+8>>2]|0)!=0:0)q=0;else{q=c[(y&p)+16>>2]|0;if(!q)break;while(1){if(a[(q&n)+24>>0]|0)break;if(c[(k&p)>>2]&16777216)break;q=c[(q&p)+4>>2]|0;if(!q)break b}q=xs(r)|0;wh(r,135,1,q,0)|0}v=e+438|0;a[(v&n)>>0]=1;rr(e,ys(l,f,0)|0,0);a[(v&n)>>0]=0;if(!(c[(k&p)>>2]&16777216)){wh(r,135,0,(c[(r&p)+32>>2]|0)+2|0,0)|0;zs(e,787,2,0,-2,4)}if(q){l=c[(r&p)+24>>2]|0;h=~q;do if((q|0)<0){q=c[(l&p)+112>>2]|0;if(!q)break;c[(q+(h<<2)&p)>>2]=c[(r&p)+32>>2]}while(0);c[(l&p)+88>>2]=(c[(r&p)+32>>2]|0)+-1}}while(0);r=c[(e&p)>>2]|0;s=r+16|0;l=c[(s&p)>>2]|0;h=Oq(e)|0;v=c[(t&p)>>2]|0;v=(v|0)==0?e:v;Ar(e,m);t=v+328|0;c[(t&p)>>2]=c[(t&p)>>2]|u;v=v+20|0;a[(v&n)>>0]=d[(v&n)>>0]|1;if(a[(w&n)>>0]&16)wh(h,146,0,0,0)|0;q=As(e,y)|0;if(q)do{Qr(e,q);q=c[(q&p)+32>>2]|0}while((q|0)!=0);l=l+(m<<4)|0;if(a[(w&n)>>0]&8){v=c[(y&p)>>2]|0;c[(z&p)>>2]=c[(l&p)>>2];c[(z&p)+4>>2]=v;Br(e,35608,z)}v=c[(y&p)>>2]|0;c[(z&p)>>2]=c[(l&p)>>2];c[(z&p)+4>>2]=x;c[(z&p)+8>>2]=v;Br(e,35656,z);if((g|0)==0?(a[(w&n)>>0]&16)==0:0)Bs(e,y);if(a[(w&n)>>0]&16){v=c[(y&p)>>2]|0;xh(h,wh(h,148,m,0,0)|0,v,0)}k=c[(y&p)>>2]|0;xh(h,wh(h,124,m,0,0)|0,k,0);Dr(e,m);h=c[((c[(s&p)>>2]|0)+(m<<4)&p)+12>>2]|0;k=b[(h&o)+78>>1]|0;if(k&2){l=c[(h&p)+16>>2]|0;if(l){k=l;do{h=c[(k&p)+8>>2]|0;if(c[(h&p)+12>>2]|0){Lk(r,h);c[(h&p)+4>>2]=0;b[(h&o)+38>>1]=0}k=c[(k&p)>>2]|0}while((k|0)!=0);k=c[((c[(s&p)>>2]|0)+(m<<4)&p)+12>>2]|0;h=k;k=b[(k&o)+78>>1]|0}b[(h&o)+78>>1]=k&65533}}}}}while(0);Do(A,f);i=B;return}function er(b,e,f,g){b=b|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0;m=i;i=i+16|0;if((i|0)>=(j|0))fa();k=m;h=c[(b&p)>>2]|0;do if((f|0)!=0?(c[(f&p)+4>>2]|0)!=0:0){if(a[(h&n)+145>>0]|0){th(b,28488,k);f=b+64|0;c[(f&p)>>2]=(c[(f&p)>>2]|0)+1;f=-1;break}c[(g&p)>>2]=f;g=Wq(h,e)|0;f=Vh(h,g)|0;mg(h,g);if((f|0)<0){c[(k&p)>>2]=e;th(b,28512,k);f=b+64|0;c[(f&p)>>2]=(c[(f&p)>>2]|0)+1;f=-1}}else l=7;while(0);if((l|0)==7){f=d[(h&n)+144>>0]|0;c[(g&p)>>2]=e}i=m;return f|0}function fr(a,b){a=a|0;b=b|0;a:do if(!b)b=0;else while(1){if(Hr(a,c[(b&p)>>2]|0)|0){b=1;break a}if(Kr(a,c[(b&p)+32>>2]|0)|0){b=1;break a}if(Gr(a,c[(b&p)+36>>2]|0)|0){b=1;break a}if(Hr(a,c[(b&p)+40>>2]|0)|0){b=1;break a}if(Gr(a,c[(b&p)+44>>2]|0)|0){b=1;break a}if(Hr(a,c[(b&p)+48>>2]|0)|0){b=1;break a}if(Gr(a,c[(b&p)+60>>2]|0)|0){b=1;break a}if(Gr(a,c[(b&p)+64>>2]|0)|0){b=1;break a}b=c[(b&p)+52>>2]|0;if(!b){b=0;break}}while(0);return b|0}function gr(d,f,g){d=d|0;f=f|0;g=g|0;var h=0,i=0,j=0,k=0,l=0;if((f|0)!=0?(h=mh(d,72,0)|0,(h|0)!=0):0){c[(h&p)>>2]=Pr(d,c[(f&p)>>2]|0,g)|0;c[(h&p)+32>>2]=ys(d,c[(f&p)+32>>2]|0,g)|0;c[(h&p)+36>>2]=Mr(d,c[(f&p)+36>>2]|0,g,0)|0;c[(h&p)+40>>2]=Pr(d,c[(f&p)+40>>2]|0,g)|0;c[(h&p)+44>>2]=Mr(d,c[(f&p)+44>>2]|0,g,0)|0;c[(h&p)+48>>2]=Pr(d,c[(f&p)+48>>2]|0,g)|0;a[(h&n)+4>>0]=a[(f&n)+4>>0]|0;j=gr(d,c[(f&p)+52>>2]|0,g)|0;c[(h&p)+52>>2]=j;if(j)c[(j&p)+56>>2]=h;c[(h&p)+56>>2]=0;c[(h&p)+60>>2]=Mr(d,c[(f&p)+60>>2]|0,g,0)|0;c[(h&p)+64>>2]=Mr(d,c[(f&p)+64>>2]|0,g,0)|0;c[(h&p)+8>>2]=0;c[(h&p)+12>>2]=0;b[(h&o)+6>>1]=(e[(f&o)+6>>1]|0)&65527;c[(h&p)+16>>2]=-1;c[(h&p)+20>>2]=-1;l=f+24|0;j=c[(l&p)+4>>2]|0;g=h+24|0;c[(g&p)>>2]=c[(l&p)>>2];c[(g&p)+4>>2]=j;g=c[(f&p)+68>>2]|0;if((g|0)!=0?(k=c[(g&p)>>2]<<4|8,i=mh(d,k,((k|0)<0)<<31>>31)|0,(i|0)!=0):0){fw(i|0,0,k|0)|0;c[(i&p)>>2]=c[(g&p)>>2];if((c[(g&p)>>2]|0)>0){f=i+8|0;j=0;do{c[(f+(j<<4)&p)+8>>2]=gr(d,c[(g+(j<<4)&p)+16>>2]|0,0)|0;c[(f+(j<<4)&p)+4>>2]=Pr(d,c[(g+(j<<4)&p)+12>>2]|0,0)|0;c[(f+(j<<4)&p)>>2]=kh(d,c[(g+(j<<4)&p)+8>>2]|0)|0;j=j+1|0}while((j|0)<(c[(g&p)>>2]|0))}}else i=0;c[(h&p)+68>>2]=i}else h=0;return h|0}function hr(d,f){d=d|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0;w=i;i=i+16|0;if((i|0)>=(j|0))fa();s=w;k=w+8|0;m=w+4|0;v=c[(d&p)>>2]|0;q=f+44|0;h=a[(q&n)>>0]|0;a:do if(!(h&16))t=11;else{g=c[(f&p)+60>>2]|0;if(g)do{if((c[(g&p)>>2]|0)==(v|0)){t=11;break a}g=c[(g&p)+24>>2]|0}while((g|0)!=0);g=f+56|0;h=bn(v+308|0,c[(c[(g&p)>>2]&p)>>2]|0,k)|0;if((h|0)!=0?(l=c[(h&p)+8>>2]|0,(l|0)!=0):0){c[(m&p)>>2]=0;l=(zn(v,f,l,c[((c[(l&p)>>2]|0)&p)+8>>2]|0,m)|0)==0;h=c[(m&p)>>2]|0;if(l){mg(v,h);h=a[(q&n)>>0]|0;t=11;break}else{c[(s&p)>>2]=h;th(d,10344,s);mg(v,h);g=1;break}}c[(s&p)>>2]=c[(c[(g&p)>>2]&p)>>2];th(d,28320,s);g=1}while(0);do if((t|0)==11)if((h&16)==0?(u=f+38|0,r=b[(u&o)>>1]|0,r<<16>>16<=0):0){if(r<<16>>16<0){c[(s&p)>>2]=c[(f&p)>>2];th(d,26752,s);g=1;break}h=gr(v,c[(f&p)+12>>2]|0,0)|0;if(!h)g=1;else{r=v+250|0;q=a[(r&n)>>0]|0;t=d+68|0;s=c[(t&p)>>2]|0;Cs(d,c[(h&p)+32>>2]|0);b[(u&o)>>1]=-1;a[(r&n)>>0]=0;m=v+284|0;l=c[(m&p)>>2]|0;c[(m&p)>>2]=0;g=ns(d,h)|0;c[(m&p)>>2]=l;a[(r&n)>>0]=q;c[(t&p)>>2]=s;if(!g){b[(u&o)>>1]=0;g=1}else{d=g+38|0;b[(u&o)>>1]=b[(d&o)>>1]|0;t=g+4|0;c[(f&p)+4>>2]=c[(t&p)>>2];b[(d&o)>>1]=0;c[(t&p)>>2]=0;kg(v,g);g=(c[(f&p)+68>>2]|0)+78|0;b[(g&o)>>1]=e[(g&o)>>1]|0|2;g=0}Mk(v,h,1)}}else g=0;while(0);i=w;return g|0} function ir(f,g,h){f=f|0;g=g|0;h=h|0;var k=0,l=0,m=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,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,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;Ca=i;i=i+240|0;if((i|0)>=(j|0))fa();ra=Ca;sa=Ca+220|0;ka=Ca+216|0;ia=Ca+196|0;ja=Ca+176|0;ua=Ca+164|0;va=Ca+136|0;ya=Ca+88|0;ga=Ca+64|0;ma=Ca+32|0;Aa=f+464|0;Ba=c[(Aa&p)>>2]|0;oa=f+468|0;xa=c[(oa&p)>>2]|0;c[(oa&p)>>2]=xa+1;c[(Aa&p)>>2]=xa;xa=c[(f&p)>>2]|0;a:do if((((g|0)!=0?(pa=xa+65|0,(a[(pa&n)>>0]|0)==0):0)?(k=f+64|0,(c[(k&p)>>2]|0)==0):0)?(Sq(f,21,0,0,0)|0)==0:0){D=ya+0|0;C=D+48|0;do{c[(D&p)>>2]=0;D=D+4|0}while((D|0)<(C|0));la=g+48|0;if((d[(h&n)>>0]|0)<9){Nk(xa,c[(la&p)>>2]|0);c[(la&p)>>2]=0;ea=g+6|0;b[(ea&o)>>1]=e[(ea&o)>>1]&65534}Ds(f,g,0);c[(va&p)>>2]=0;c[(va&p)+4>>2]=0;c[(va&p)+8>>2]=0;c[(va&p)+12>>2]=0;c[(va&p)+16>>2]=0;c[(va&p)+20>>2]=0;c[(va&p)+24>>2]=0;c[(va&p)>>2]=c[(la&p)>>2];na=g+32|0;x=c[(na&p)>>2]|0;w=c[(g&p)>>2]|0;b:do if(((c[(k&p)>>2]|0)==0?(a[(pa&n)>>0]|0)==0:0)?(ta=g+6|0,z=(e[(ta&o)>>1]|0)>>>2&1,wa=Oq(f)|0,(wa|0)!=0):0){if((c[(w&p)>>2]|0)>1?(a[(h&n)>>0]&-2)<<24>>24==10:0){th(f,35368,ra);za=444;break}qa=g+52|0;w=c[(qa&p)>>2]|0;c:do if(!w){r=f+460|0;q=f+492|0;m=g+36|0;l=f+408|0;k=g+60|0;T=g+64|0;U=g+4|0;V=xa+60|0;W=wa+32|0;X=f+72|0;Y=ga+4|0;Z=ga+1|0;_=ga+8|0;$=ga+12|0;aa=wa+4|0;ba=wa+24|0;ca=f+19|0;da=f+56|0;ea=f+80|0;S=0;y=z;while(1){if((S|0)>=(c[(x&p)>>2]|0)){H=m;Q=0;z=y;U=x;break c}N=c[(x+(S*72|0)&p)+28>>2]|0;do if(!N)z=S;else{P=x+(S*72|0)+32|0;A=c[(P&p)>>2]|0;if(A){if(a[(x+(S*72|0)&n)+45>>0]&4){z=S;break}wh(wa,17,c[(x+(S*72|0)&p)+36>>2]|0,A,0)|0;z=S;break}c[(ra&p)>>2]=0;Es(g,ra);c[(r&p)>>2]=(c[(r&p)>>2]|0)+(c[(ra&p)>>2]|0);v=b[(N&o)+6>>1]&4;Q=c[(q&p)>>2]|0;u=c[(f&p)>>2]|0;d:do if(!(b[(u&o)+60>>1]&1)){L=c[(na&p)>>2]|0;t=c[(L+(S*72|0)&p)+48>>2]|0;K=L+(S*72|0)+28|0;O=c[(K&p)>>2]|0;s=v<<16>>16!=0;do if(s){if(y){za=120;break d}if((c[(L&p)>>2]|0)>1){za=120;break d}R=c[(m&p)>>2]|0;if((R|0)!=0?(c[(R&p)+4>>2]&2097152|0)!=0:0){za=120;break d}H=c[(g&p)>>2]|0;do if(H){E=c[(H&p)>>2]|0;if((E|0)<=0)break;I=c[(H&p)+4>>2]|0;H=0;F=0;do{F=c[((c[(I+(H*20|0)&p)>>2]|0)&p)+4>>2]|F;H=H+1|0}while((H|0)!=(E|0));if(F&2097152){za=120;break d}}while(0);H=c[(la&p)>>2]|0;if(!H)break;E=c[(H&p)>>2]|0;if((E|0)<=0)break;I=c[(H&p)+4>>2]|0;H=0;F=0;do{F=c[((c[(I+(H*20|0)&p)>>2]|0)&p)+4>>2]|F;H=H+1|0}while((H|0)!=(E|0));if(F&2097152){za=120;break d}}while(0);I=c[(O&p)+32>>2]|0;H=(c[(O&p)+60>>2]|0)==0;if(!H?(c[(k&p)>>2]|0)!=0:0){za=120;break}if(c[(O&p)+64>>2]|0){za=120;break}E=b[(ta&o)>>1]|0;F=(E&64)==0;if(!(F|H)){za=120;break}if(!(c[(I&p)>>2]|0)){za=120;break}D=b[(O&o)+6>>1]|0;if(D&1){za=120;break}I=H|F^1;if(!I?(c[(L&p)>>2]|0)>1|(y|0)!=0:0){za=120;break}H=E&1;if(H<<16>>16!=0&s){za=120;break}B=c[(la&p)>>2]|0;C=(B|0)==0;if(!C?(c[(O&p)+48>>2]|0)!=0:0){za=120;break}J=(y|0)!=0;if(J?(c[(O&p)+48>>2]|0)!=0:0){za=120;break}if(I){if(D&6144){za=120;break}}else if(!((c[(m&p)>>2]|0)==0&H<<16>>16==0&(D&6144)==0)){za=120;break}if((E&2048)!=0?(c[(O&p)+52>>2]|0)!=0:0){za=120;break}R=L+(S*72|0)+44|0;if(a[(R&n)>>0]&32){za=120;break}E=O+52|0;I=c[(E&p)>>2]|0;do if(I){if(!(H<<16>>16==0&(((c[(O&p)+48>>2]|0)!=0|J)^1))){za=120;break d}if((c[(L&p)>>2]|0)!=1){za=120;break d}e:do if(O){if(!(D&5))F=O;else{za=120;break d}while(1){H=(I|0)==0;if(!H?(a[(F&n)+4>>0]|0)!=116:0){za=120;break d}if((c[(c[(F&p)+32>>2]&p)>>2]|0)<1){za=120;break d}if((c[(c[(O&p)>>2]&p)>>2]|0)!=(c[(c[(F&p)>>2]&p)>>2]|0)){za=120;break d}if(H)break e;if(b[(I&o)+6>>1]&5){za=120;break d}F=I;I=c[(I&p)+52>>2]|0}}while(0);if(C)break;F=c[(B&p)>>2]|0;if((F|0)<=0)break;I=c[(B&p)+4>>2]|0;H=0;do{if(!(b[(I+(H*20|0)&o)+16>>1]|0)){za=120;break d}H=H+1|0}while((H|0)<(F|0))}while(0);A=L+(S*72|0)+16|0;c[(q&p)>>2]=c[(A&p)>>2];Sq(f,21,0,0,0)|0;c[(q&p)>>2]=Q;I=c[(E&p)>>2]|0;f:do if(!I)za=81;else{B=u+65|0;E=c[(la&p)>>2]|0;D=c[(k&p)>>2]|0;C=c[(T&p)>>2]|0;F=c[(qa&p)>>2]|0;while(1){c[(la&p)>>2]=0;c[(na&p)>>2]=0;c[(qa&p)>>2]=0;c[(k&p)>>2]=0;c[(T&p)>>2]=0;H=gr(u,g,0)|0;c[(T&p)>>2]=C;c[(k&p)>>2]=D;c[(la&p)>>2]=E;c[(na&p)>>2]=L;a[(U&n)>>0]=116;if(!H)H=F;else{c[(H&p)+52>>2]=F;if(F)c[(F&p)+56>>2]=H;c[(H&p)+56>>2]=g}c[(qa&p)>>2]=H;if(a[(B&n)>>0]|0)break f;I=c[(I&p)+52>>2]|0;if(!I){za=81;break}else F=H}}while(0);if((za|0)==81){za=0;M=c[(K&p)>>2]|0;E=L+(S*72|0)+12|0;mg(u,c[(E&p)>>2]|0);mg(u,c[(A&p)>>2]|0);F=L+(S*72|0)+20|0;mg(u,c[(F&p)>>2]|0);c[(E&p)>>2]=0;c[(A&p)>>2]=0;c[(F&p)>>2]=0;c[(K&p)>>2]=0;F=L+(S*72|0)+24|0;E=c[(F&p)>>2]|0;if(E){D=E+40|0;C=b[(D&o)>>1]|0;if(C<<16>>16==1){Q=c[(l&p)>>2]|0;Q=((Q|0)==0?f:Q)+524|0;c[(E&p)+72>>2]=c[(Q&p)>>2];c[(Q&p)>>2]=E}else b[(D&o)>>1]=C+-1<<16>>16;c[(F&p)>>2]=0}Q=S+1|0;P=u+65|0;O=g;N=M;while(1){B=c[(N&p)+32>>2]|0;A=c[(B&p)>>2]|0;H=O+32|0;I=c[(H&p)>>2]|0;if(!I){I=pr(u,0,0,0)|0;c[(H&p)>>2]=I;if(!I)break;else z=0}else z=a[(R&n)>>0]|0;if((A|0)>1){I=Fs(u,I,A+-1|0,Q)|0;c[(H&p)>>2]=I;if(a[(P&n)>>0]|0)break}if((A|0)>0){F=0;do{D=F+S|0;Hk(u,c[(I+(D*72|0)&p)+56>>2]|0);H=B+(F*72|0)+8|0;D=I+(D*72|0)+8|0;E=H+0|0;C=D+72|0;do{c[(D&p)>>2]=c[(E&p)>>2];D=D+4|0;E=E+4|0}while((D|0)<(C|0));D=H+0|0;C=D+72|0;do{c[(D&p)>>2]=0;D=D+4|0}while((D|0)<(C|0));F=F+1|0}while((F|0)!=(A|0))}a[(I+(S*72|0)&n)+44>>0]=z;H=c[(O&p)>>2]|0;I=c[(H&p)>>2]|0;if((I|0)>0){D=H+4|0;F=c[(D&p)>>2]|0;E=0;do{if(!(c[(F+(E*20|0)&p)+4>>2]|0)){I=kh(u,c[(F+(E*20|0)&p)+8>>2]|0)|0;lo(I);F=c[(D&p)>>2]|0;c[(F+(E*20|0)&p)+4>>2]=I;I=c[(H&p)>>2]|0}E=E+1|0}while((E|0)<(I|0));H=c[(O&p)>>2]|0}Gs(u,H,t,c[(N&p)>>2]|0);if(J){Gs(u,c[(O&p)+40>>2]|0,t,c[(N&p)>>2]|0);L=O+44|0;c[(L&p)>>2]=Hs(u,c[(L&p)>>2]|0,t,c[(N&p)>>2]|0)|0}I=N+48|0;H=c[(I&p)>>2]|0;do if(!H){H=c[(O&p)+48>>2]|0;if(!H)break;Gs(u,H,t,c[(N&p)>>2]|0)}else{F=c[(H&p)>>2]|0;if((F|0)>0){E=c[(H&p)+4>>2]|0;D=0;do{b[(E+(D*20|0)&o)+16>>1]=0;D=D+1|0}while((D|0)!=(F|0))}c[(O&p)+48>>2]=H;c[(I&p)>>2]=0}while(0);H=c[(N&p)+36>>2]|0;if(!H)F=0;else F=Mr(u,H,0,0)|0;I=O+36|0;H=c[(I&p)>>2]|0;if(s){L=O+44|0;c[(L&p)>>2]=H;c[(I&p)>>2]=F;K=Hs(u,H,t,c[(N&p)>>2]|0)|0;c[(L&p)>>2]=K;c[(L&p)>>2]=ss(u,K,Mr(u,c[(N&p)+44>>2]|0,0,0)|0)|0;c[(O&p)+40>>2]=Pr(u,c[(N&p)+40>>2]|0,0)|0}else{L=Hs(u,H,t,c[(N&p)>>2]|0)|0;c[(I&p)>>2]=L;c[(I&p)>>2]=ss(u,L,F)|0}H=O+6|0;b[(H&o)>>1]=e[(H&o)>>1]|e[(N&o)+6>>1]&1;H=N+60|0;F=c[(H&p)>>2]|0;if(F){c[(O&p)+60>>2]=F;c[(H&p)>>2]=0}O=c[(O&p)+52>>2]|0;if(!O)break;else N=c[(N&p)+52>>2]|0}Mk(u,M,1)}if(!(v<<16>>16)){z=-1;break}b[(ta&o)>>1]=e[(ta&o)>>1]|4;z=-1;y=1}else za=120;while(0);g:do if((za|0)==120){za=0;do if((c[(x&p)>>2]|0)==1){if(b[(V&o)>>1]&256)break;D=c[(W&p)>>2]|0;R=D+1|0;Q=(c[(X&p)>>2]|0)+1|0;c[(X&p)>>2]=Q;z=x+(S*72|0)+36|0;c[(z&p)>>2]=Q;wh(wa,20,Q,0,R)|0;c[(P&p)>>2]=R;R=c[(z&p)>>2]|0;a[(ga&n)>>0]=13;c[(Y&p)>>2]=R;a[(Z&n)>>0]=0;c[(_&p)>>2]=0;c[($&p)>>2]=0;a[(x+(S*72|0)&n)+46>>0]=c[(oa&p)>>2];ir(f,N,ga)|0;R=N+24|0;R=fs(c[(R&p)>>2]|0,c[(R&p)+4>>2]|0)|0;b[((c[(x+(S*72|0)&p)+24>>2]|0)&o)+28>>1]=R;R=x+(S*72|0)+45|0;a[(R&n)>>0]=a[(R&n)>>0]|4;c[(x+(S*72|0)&p)+40>>2]=c[(_&p)>>2];wh(wa,21,c[(z&p)>>2]|0,0,0)|0;z=c[(W&p)>>2]|0;if(z>>>0>D>>>0)c[((c[(aa&p)>>2]|0)+(D*20|0)&p)+8>>2]=z;c[((c[(ba&p)>>2]|0)&p)+88>>2]=z+-1;a[(ca&n)>>0]=0;c[(da&p)>>2]=0;z=S;break g}while(0);C=(c[(X&p)>>2]|0)+1|0;c[(X&p)>>2]=C;E=x+(S*72|0)+36|0;c[(E&p)>>2]=C;C=wh(wa,25,0,C,0)|0;c[(P&p)>>2]=C+1;if(!(a[(x+(S*72|0)&n)+45>>0]&2)){R=Oq(f)|0;D=c[(ea&p)>>2]|0;c[(ea&p)>>2]=D+1;D=wh(R,44,D,0,0)|0}else D=0;R=c[(x+(S*72|0)&p)+48>>2]|0;a[(ga&n)>>0]=12;c[(Y&p)>>2]=R;a[(Z&n)>>0]=0;c[(_&p)>>2]=0;c[($&p)>>2]=0;a[(x+(S*72|0)&n)+46>>0]=c[(oa&p)>>2];ir(f,N,ga)|0;R=N+24|0;R=fs(c[(R&p)>>2]|0,c[(R&p)+4>>2]|0)|0;b[((c[(x+(S*72|0)&p)+24>>2]|0)&o)+28>>1]=R;if(D){A=c[(W&p)>>2]|0;if(A>>>0>D>>>0)c[((c[(aa&p)>>2]|0)+(D*20|0)&p)+8>>2]=A;c[((c[(ba&p)>>2]|0)&p)+88>>2]=A+-1}z=wh(wa,18,c[(E&p)>>2]|0,0,0)|0;if((c[(W&p)>>2]|0)>>>0>C>>>0)c[((c[(aa&p)>>2]|0)+(C*20|0)&p)+4>>2]=z;a[(ca&n)>>0]=0;c[(da&p)>>2]=0;z=S}while(0);if(a[(pa&n)>>0]|0){za=444;break b}c[(ra&p)>>2]=0;Es(g,ra);c[(r&p)>>2]=(c[(r&p)>>2]|0)-(c[(ra&p)>>2]|0);x=c[(na&p)>>2]|0;if((d[(h&n)>>0]|0)<9)break;c[(va&p)>>2]=c[(la&p)>>2]}while(0);w=c[(qa&p)>>2]|0;if(!w)S=z+1|0;else{H=m;Q=w;z=y;U=x;break}}}else{H=g+36|0;Q=w;U=x}while(0);T=c[(g&p)>>2]|0;B=c[(H&p)>>2]|0;l=g+40|0;w=c[(l&p)>>2]|0;I=g+44|0;ga=c[(I&p)>>2]|0;m=b[(ta&o)>>1]|0;a[(ua&n)>>0]=m&1;if(Q){O=c[(f&p)>>2]|0;c[(sa&p)>>2]=c[(h&p)>>2];c[(sa&p)+4>>2]=c[(h&p)+4>>2];c[(sa&p)+8>>2]=c[(h&p)+8>>2];c[(sa&p)+12>>2]=c[(h&p)+12>>2];c[(sa&p)+16>>2]=c[(h&p)+16>>2];h:do if(!(c[(Q&p)+48>>2]|0)){x=Q+60|0;if(c[(x&p)>>2]|0){k=d[(g&n)+4>>0]|0;if((k|0)==118)k=35336;else if((k|0)==117)k=35352;else if((k|0)==116)k=35320;else k=35360;c[(ra&p)>>2]=k;th(f,35072,ra);m=0;k=1;za=227;break}R=Oq(f)|0;t=a[(sa&n)>>0]|0;if(t<<24>>24==12){wh(R,57,c[(sa&p)+4>>2]|0,c[(c[(g&p)>>2]&p)>>2]|0,0)|0;t=c[(R&p)+4>>2]|0;if(t)a[(t+(((c[(R&p)+32>>2]|0)+-1|0)*20|0)&n)+3>>0]=8;a[(sa&n)>>0]=14;t=14}s=e[(ta&o)>>1]|0;if(s&256){m=0;k=Is(f,g,sa)|0;za=227;break}if((c[(c[(g&p)>>2]&p)>>2]|0)!=(c[(c[(Q&p)>>2]&p)>>2]|0)){Js(f,g);m=0;k=1;za=227;break}do if(!(s&2048)){if(c[(la&p)>>2]|0){k=Ls(f,g,h)|0;break h}P=g+4|0;s=d[(P&n)>>0]|0;if((s|0)==116){v=g+8|0;t=Q+8|0;c[(t&p)>>2]=c[(v&p)>>2];u=g+12|0;s=Q+12|0;c[(s&p)>>2]=c[(u&p)>>2];da=g+60|0;c[(x&p)>>2]=c[(da&p)>>2];ea=g+64|0;c[(Q&p)+64>>2]=c[(ea&p)>>2];q=c[(oa&p)>>2]|0;k=ir(f,Q,sa)|0;c[(da&p)>>2]=0;c[(ea&p)>>2]=0;if(k){m=0;za=227;break h}c[(qa&p)>>2]=0;t=c[(t&p)>>2]|0;c[(v&p)>>2]=t;c[(u&p)>>2]=c[(s&p)>>2];if(!t)w=0;else w=wh(R,46,t,0,0)|0;l=c[(oa&p)>>2]|0;k=ir(f,g,sa)|0;m=c[(qa&p)>>2]|0;c[(qa&p)>>2]=Q;ea=Q+24|0;r=g+24|0;t=r;ea=jw(c[(t&p)>>2]|0,c[(t&p)+4>>2]|0,c[(ea&p)>>2]|0,c[(ea&p)+4>>2]|0)|0;t=r;c[(t&p)>>2]=ea;c[(t&p)+4>>2]=G;t=c[(x&p)>>2]|0;do if(t){ea=(Ms(t,ka)|0)!=0;t=c[(ka&p)>>2]|0;if(!(ea&(t|0)>0))break;ea=r;da=c[(ea&p)+4>>2]|0;s=((t|0)<0)<<31>>31;if(!(da>>>0>s>>>0|((da|0)==(s|0)?(c[(ea&p)>>2]|0)>>>0>t>>>0:0)))break;ea=r;c[(ea&p)>>2]=t;c[(ea&p)+4>>2]=s}while(0);if(!w){w=P;v=q;t=l;break}r=c[(R&p)+32>>2]|0;if(r>>>0>w>>>0)c[((c[(R&p)+4>>2]|0)+(w*20|0)&p)+8>>2]=r;c[((c[(R&p)+24>>2]|0)&p)+88>>2]=r+-1;w=P;v=q;t=l;break}else if((s|0)==115|(s|0)==117){if(t<<24>>24==1)s=c[(sa&p)+4>>2]|0;else{r=f+68|0;s=c[(r&p)>>2]|0;c[(r&p)>>2]=s+1;c[(g&p)+16>>2]=wh(R,57,s,0,0)|0;r=g;while(1){t=c[(r&p)+56>>2]|0;if(!t)break;else r=t}ea=r+6|0;b[(ea&o)>>1]=e[(ea&o)>>1]|8}a[(ia&n)>>0]=1;c[(ia&p)+4>>2]=s;a[(ia&n)+1>>0]=0;c[(ia&p)+8>>2]=0;c[(ia&p)+12>>2]=0;y=c[(oa&p)>>2]|0;k=ir(f,Q,ia)|0;if(k){m=0;za=227;break h}x=(a[(P&n)>>0]|0)==117?2:1;c[(qa&p)>>2]=0;v=g+60|0;u=c[(v&p)>>2]|0;c[(v&p)>>2]=0;t=g+64|0;r=c[(t&p)>>2]|0;c[(t&p)>>2]=0;a[(ia&n)>>0]=x;x=c[(oa&p)>>2]|0;k=ir(f,g,ia)|0;Nk(O,c[(la&p)>>2]|0);m=c[(qa&p)>>2]|0;c[(qa&p)>>2]=Q;c[(la&p)>>2]=0;if((a[(P&n)>>0]|0)==115){da=Q+24|0;ea=g+24|0;ca=ea;da=jw(c[(ca&p)>>2]|0,c[(ca&p)+4>>2]|0,c[(da&p)>>2]|0,c[(da&p)+4>>2]|0)|0;c[(ea&p)>>2]=da;c[(ea&p)+4>>2]=G}Gk(O,c[(v&p)>>2]|0);c[(v&p)>>2]=u;c[(t&p)>>2]=r;c[(g&p)+8>>2]=0;c[(g&p)+12>>2]=0;r=a[(sa&n)>>0]|0;if(r<<24>>24==9){r=g;while(1){q=c[(r&p)+52>>2]|0;if(!q)break;else r=q}Ns(f,0,c[(r&p)>>2]|0)}else if(r<<24>>24==1){w=P;v=y;t=x;break}l=xs(R)|0;ea=xs(R)|0;Os(f,g,l);wh(R,108,s,l,0)|0;w=R+32|0;v=c[(w&p)>>2]|0;Ps(f,g,c[(g&p)>>2]|0,s,0,0,sa,ea,l);u=R+24|0;t=c[(u&p)>>2]|0;r=~ea;do if((ea|0)<0){q=c[(t&p)+112>>2]|0;if(!q)break;c[(q+(r<<2)&p)>>2]=c[(w&p)>>2]}while(0);c[(t&p)+88>>2]=(c[(w&p)>>2]|0)+-1;wh(R,9,s,v,0)|0;r=c[(u&p)>>2]|0;q=~l;do if((l|0)<0){t=c[(r&p)+112>>2]|0;if(!t)break;c[(t+(q<<2)&p)>>2]=c[(w&p)>>2]}while(0);c[(r&p)+88>>2]=(c[(w&p)>>2]|0)+-1;wh(R,61,s,0,0)|0;w=P;v=y;t=x;break}else{r=f+68|0;A=c[(r&p)>>2]|0;c[(r&p)>>2]=A+2;c[(g&p)+16>>2]=wh(R,57,A,0,0)|0;r=g;while(1){q=c[(r&p)+56>>2]|0;if(!q)break;else r=q}y=A+1|0;v=r+6|0;b[(v&o)>>1]=e[(v&o)>>1]|8;a[(ja&n)>>0]=1;v=ja+4|0;c[(v&p)>>2]=A;a[(ja&n)+1>>0]=0;c[(ja&p)+8>>2]=0;c[(ja&p)+12>>2]=0;x=c[(oa&p)>>2]|0;k=ir(f,Q,ja)|0;if(k){m=0;za=227;break h}c[(g&p)+20>>2]=wh(R,57,y,0,0)|0;c[(qa&p)>>2]=0;w=g+60|0;l=c[(w&p)>>2]|0;c[(w&p)>>2]=0;q=g+64|0;r=c[(q&p)>>2]|0;c[(q&p)>>2]=0;c[(v&p)>>2]=y;z=c[(oa&p)>>2]|0;k=ir(f,g,ja)|0;m=c[(qa&p)>>2]|0;c[(qa&p)>>2]=Q;t=g+24|0;ea=t;da=c[(ea&p)+4>>2]|0;u=Q+24|0;v=c[(u&p)>>2]|0;u=c[(u&p)+4>>2]|0;if(da>>>0>u>>>0|((da|0)==(u|0)?(c[(ea&p)>>2]|0)>>>0>v>>>0:0)){ea=t;c[(ea&p)>>2]=v;c[(ea&p)+4>>2]=u}Gk(O,c[(w&p)>>2]|0);c[(w&p)>>2]=l;c[(q&p)>>2]=r;if((a[(sa&n)>>0]|0)==9){t=g;while(1){s=c[(t&p)+52>>2]|0;if(!s)break;else t=s}Ns(f,0,c[(t&p)>>2]|0)}q=xs(R)|0;w=xs(R)|0;Os(f,g,q);wh(R,108,A,q,0)|0;t=f+19|0;s=a[(t&n)>>0]|0;if(!(s<<24>>24)){ea=f+72|0;t=(c[(ea&p)>>2]|0)+1|0;c[(ea&p)>>2]=t}else{ea=s+-1<<24>>24;a[(t&n)>>0]=ea;t=c[(f+((ea&255)<<2)&p)+24>>2]|0}l=wh(R,101,A,t,0)|0;xh(R,wh(R,68,y,w,t)|0,0,-14);_r(f,t);Ps(f,g,c[(g&p)>>2]|0,A,0,0,sa,w,q);t=R+24|0;s=c[(t&p)>>2]|0;u=~w;do if((w|0)<0){v=c[(s&p)+112>>2]|0;if(!v)break;c[(v+(u<<2)&p)>>2]=c[(R&p)+32>>2]}while(0);v=R+32|0;c[(s&p)+88>>2]=(c[(v&p)>>2]|0)+-1;wh(R,9,A,l,0)|0;s=c[(t&p)>>2]|0;r=~q;do if((q|0)<0){t=c[(s&p)+112>>2]|0;if(!t)break;c[(t+(r<<2)&p)>>2]=c[(v&p)>>2]}while(0);c[(s&p)+88>>2]=(c[(v&p)>>2]|0)+-1;wh(R,61,y,0,0)|0;wh(R,61,A,0,0)|0;w=P;v=x;t=z;break}}else{Ks(f,g,sa);w=g+4|0;v=0;t=0;m=0;k=0}while(0);ea=a[(w&n)>>0]|0;Qs(f,ea&255,v,t,ea<<24>>24!=116&1);if(!(b[(ta&o)>>1]&8)){za=227;break}u=c[(c[(g&p)>>2]&p)>>2]|0;v=Rs(O,u,1)|0;if(!v){k=7;za=227;break}if((u|0)>0){l=O+8|0;q=v+20|0;r=0;while(1){ea=Ss(f,g,r)|0;c[(q&p)>>2]=ea;if(!ea)c[(q&p)>>2]=c[(l&p)>>2];r=r+1|0;if((r|0)==(u|0))break;else q=q+4|0}}s=R+32|0;t=R+4|0;do{l=0;do{r=g+(l<<2)+16|0;q=c[(r&p)>>2]|0;if((q|0)<0)break;if((c[(s&p)>>2]|0)>>>0>q>>>0)c[((c[(t&p)>>2]|0)+(q*20|0)&p)+8>>2]=u;c[(v&p)>>2]=(c[(v&p)>>2]|0)+1;xh(R,q,v,-6);c[(r&p)>>2]=-1;l=l+1|0}while((l|0)<2);g=c[(g&p)+52>>2]|0}while((g|0)!=0);ea=(c[(v&p)>>2]|0)+-1|0;c[(v&p)>>2]=ea;if(ea){za=227;break}Wc(v);za=227}else{k=d[(g&n)+4>>0]|0;if((k|0)==118)k=35336;else if((k|0)==117)k=35352;else if((k|0)==116)k=35320;else k=35360;c[(ra&p)>>2]=k;th(f,35024,ra);m=0;k=1;za=227}while(0);if((za|0)==227){c[(h&p)+8>>2]=c[(sa&p)+8>>2];c[(h&p)+12>>2]=c[(sa&p)+12>>2];Mk(O,m,1)}c[(Aa&p)>>2]=Ba;break a}if((m&5)==1){k=c[(va&p)>>2]|0;if(!(Ts(k,T,-1)|0)){b[(ta&o)>>1]=m&65534;w=Pr(xa,T,0)|0;c[(l&p)>>2]=w;za=232}}else za=232;if((za|0)==232)k=c[(va&p)>>2]|0;if(!k)k=-1;else{ea=Us(f,k,0,c[(T&p)>>2]|0)|0;da=f+68|0;k=c[(da&p)>>2]|0;c[(da&p)>>2]=k+1;c[(va&p)+8>>2]=k;k=wh(wa,57,k,(c[(c[(va&p)>>2]&p)>>2]|0)+1+(c[(T&p)>>2]|0)|0,0)|0;xh(wa,k,ea,-6)}R=va+20|0;c[(R&p)>>2]=k;if((a[(h&n)>>0]|0)==12)wh(wa,57,c[(h&p)+4>>2]|0,c[(T&p)>>2]|0,0)|0;qa=xs(wa)|0;y=g+24|0;ea=y;c[(ea&p)>>2]=-1;c[(ea&p)+4>>2]=2147483647;Os(f,g,qa);if((c[(g&p)+8>>2]|0)==0?(ha=c[(R&p)>>2]|0,(ha|0)>-1):0){if(!(a[((c[(wa&p)>>2]|0)&n)+65>>0]|0))k=(c[(wa&p)+4>>2]|0)+(ha*20|0)|0;else k=29120;a[(k&n)>>0]=58;ea=va+24|0;a[(ea&n)>>0]=d[(ea&n)>>0]|1}if(!(b[(ta&o)>>1]&1))a[(ua&n)+1>>0]=0;else{ea=f+68|0;k=c[(ea&p)>>2]|0;c[(ea&p)>>2]=k+1;c[(ua&p)+4>>2]=k;ea=Us(f,c[(g&p)>>2]|0,0,0)|0;k=wh(wa,57,k,0,0)|0;xh(wa,k,ea,-6);c[(ua&p)+8>>2]=k;k=c[(wa&p)+4>>2]|0;if(k)a[(k+(((c[(wa&p)+32>>2]|0)+-1|0)*20|0)&n)+3>>0]=8;a[(ua&n)+1>>0]=3}if((z|0)==0&(w|0)==0){v=Vs(f,U,B,c[(va&p)>>2]|0,c[(g&p)>>2]|0,(a[(ua&n)>>0]|0)!=0?1024:0,0)|0;if(!v){za=444;break}t=Ws(b[(v&o)+32>>1]|0)|0;s=G;ea=y;da=c[(ea&p)+4>>2]|0;if(s>>>0>>0|((s|0)==(da|0)?t>>>0<(c[(ea&p)>>2]|0)>>>0:0)){ea=y;c[(ea&p)>>2]=t;c[(ea&p)+4>>2]=s}do if(a[(ua&n)>>0]|0){t=a[(v&n)+40>>0]|0;if(!(t<<24>>24))break;a[(ua&n)+1>>0]=t}while(0);t=c[(va&p)>>2]|0;do if(!t)za=257;else{ea=a[(v&n)+36>>0]|0;c[(va&p)+4>>2]=ea;if((ea|0)!=(c[(t&p)>>2]|0))break;c[(va&p)>>2]=0;za=257}while(0);do if((za|0)==257){r=c[(R&p)>>2]|0;if((r|0)<=-1)break;zh(wa,r)}while(0);Ps(f,g,T,-1,va,ua,h,c[(v&p)+48>>2]|0,c[(v&p)+52>>2]|0);Xs(v)}else{z=(w|0)!=0;do if(z){l=c[(g&p)>>2]|0;k=c[(l&p)>>2]|0;if((k|0)>0){l=c[(l&p)+4>>2]|0;while(1){b[(l&o)+18>>1]=0;k=k+-1|0;if((k|0)<=0)break;else l=l+20|0}}k=c[(w&p)>>2]|0;if((k|0)>0){l=c[(w&p)+4>>2]|0;while(1){b[(l&o)+18>>1]=0;k=k+-1|0;if((k|0)<=0)break;else l=l+20|0}}ea=y;da=c[(ea&p)+4>>2]|0;if(!(da>>>0>0|(da|0)==0&(c[(ea&p)>>2]|0)>>>0>100))break;ea=y;c[(ea&p)>>2]=100;c[(ea&p)+4>>2]=0}else{ea=y;c[(ea&p)>>2]=1;c[(ea&p)+4>>2]=0}while(0);P=(Ts(w,c[(va&p)>>2]|0,-1)|0)==0;S=xs(wa)|0;c[(ma&p)>>2]=0;c[(ma&p)+4>>2]=0;c[(ma&p)+8>>2]=0;c[(ma&p)+12>>2]=0;c[(ma&p)+16>>2]=0;c[(ma&p)+20>>2]=0;c[(ma&p)+24>>2]=0;c[(ma&p)+28>>2]=0;c[(ma&p)>>2]=f;c[(ma&p)+4>>2]=U;c[(ma&p)+12>>2]=ya;K=f+72|0;c[(ya&p)+16>>2]=(c[(K&p)>>2]|0)+1;if(z)k=c[(w&p)>>2]|0;else k=0;y=ya+12|0;c[(y&p)>>2]=k;c[(ya&p)+24>>2]=w;Ys(ma,T);Ys(ma,c[(va&p)>>2]|0);if(ga){c[(ra&p)>>2]=0;c[(ra&p)+4>>2]=0;c[(ra&p)+8>>2]=0;c[(ra&p)+12>>2]=0;c[(ra&p)+16>>2]=0;c[(ra&p)+20>>2]=0;c[(ra&p)>>2]=80;c[(ra&p)+4>>2]=81;c[(ra&p)+24>>2]=ma;rs(ra,ga)|0}A=ya+32|0;c[(ya&p)+36>>2]=c[(A&p)>>2];r=ya+44|0;k=c[(r&p)>>2]|0;if((k|0)>0){x=ma+28|0;l=ya+40|0;m=b[(x&o)>>1]|0;q=0;do{b[(x&o)>>1]=m&65535|8;Ys(ma,c[((c[((c[(l&p)>>2]|0)+(q<<4)&p)>>2]|0)&p)+20>>2]|0);m=e[(x&o)>>1]&65527;b[(x&o)>>1]=m;q=q+1|0;k=c[(r&p)>>2]|0}while((q|0)<(k|0))}c[(ya&p)+20>>2]=c[(K&p)>>2];if(a[(pa&n)>>0]|0){za=444;break}if(z){I=f+68|0;H=c[(I&p)>>2]|0;c[(I&p)>>2]=H+1;v=ya+4|0;c[(v&p)>>2]=H;H=Us(f,w,0,c[(A&p)>>2]|0)|0;u=wh(wa,58,c[(v&p)>>2]|0,c[(y&p)>>2]|0,0)|0;xh(wa,u,H,-6);N=c[(K&p)>>2]|0;M=N+1|0;J=N+2|0;N=N+3|0;c[(K&p)>>2]=N;L=xs(wa)|0;Q=(c[(K&p)>>2]|0)+1|0;c[(K&p)>>2]=Q;O=xs(wa)|0;t=c[(K&p)>>2]|0;r=t+1|0;ea=c[(w&p)>>2]|0;da=ea+t|0;s=da+1|0;c[(K&p)>>2]=da+ea;wh(wa,25,0,J,0)|0;wh(wa,25,0,M,0)|0;wh(wa,28,0,r,(c[(w&p)>>2]|0)+t|0)|0;wh(wa,17,Q,O,0)|0;t=Vs(f,U,B,w,0,P?2304:256,0)|0;if(!t){za=444;break}if((a[(t&n)+36>>0]|0)==(c[(w&p)>>2]|0)){x=0;k=0;y=0}else{if(!(a[(ua&n)>>0]|0))k=34824;else k=(b[(ta&o)>>1]&1)==0?34808:34824;$s(f,k);D=c[(w&p)>>2]|0;k=c[(A&p)>>2]|0;if((k|0)>0){l=c[(ya&p)+28>>2]|0;m=0;y=D;x=D;do{if((c[(l+(m*24|0)&p)+12>>2]|0)>=(y|0)){y=y+1|0;x=x+1|0}m=m+1|0}while((m|0)<(k|0));F=x}else F=D;E=f+60|0;x=c[(E&p)>>2]|0;B=f+56|0;k=c[(B&p)>>2]|0;if((k|0)<(F|0)){C=c[(K&p)>>2]|0;c[(K&p)>>2]=C+F;C=C+1|0}else{c[(E&p)>>2]=x+F;c[(B&p)>>2]=k-F;C=x}at(f);bt(f,w,C,0);y=c[(A&p)>>2]|0;if((y|0)>0){m=ya+28|0;z=0;x=D;do{k=c[(m&p)>>2]|0;if((c[(k+(z*24|0)&p)+12>>2]|0)>=(x|0)){l=x+C|0;y=ct(f,c[(k+(z*24|0)&p)>>2]|0,c[(k+(z*24|0)&p)+8>>2]|0,c[(k+(z*24|0)&p)+4>>2]|0,l,0)|0;if((l|0)!=(y|0))wh(wa,34,y,l,0)|0;y=c[(A&p)>>2]|0;x=x+1|0}z=z+1|0}while((z|0)<(y|0))}y=f+19|0;x=a[(y&n)>>0]|0;if(!(x<<24>>24)){x=(c[(K&p)>>2]|0)+1|0;c[(K&p)>>2]=x}else{x=x+-1<<24>>24;a[(y&n)>>0]=x;x=c[(f+((x&255)<<2)&p)+24>>2]|0}wh(wa,49,C,F,x)|0;wh(wa,109,c[(v&p)>>2]|0,x,0)|0;_r(f,x);dt(f,C,F);if((c[(B&p)>>2]|0)<(F|0)){c[(B&p)>>2]=F;c[(E&p)>>2]=C}Xs(t);l=c[(I&p)>>2]|0;c[(I&p)>>2]=l+1;c[(ya&p)+8>>2]=l;k=a[(y&n)>>0]|0;if(!(k<<24>>24)){k=(c[(K&p)>>2]|0)+1|0;c[(K&p)>>2]=k}else{k=k+-1<<24>>24;a[(y&n)>>0]=k;k=c[(f+((k&255)<<2)&p)+24>>2]|0}wh(wa,60,l,k,F)|0;wh(wa,106,c[(v&p)>>2]|0,S,0)|0;a[(ya&n)+1>>0]=1;at(f);x=1;y=l}do if(P){if(b[(xa&o)+60>>1]&4)break;if((x|0)==0?(a[(t&n)+37>>0]|0)==0:0)break;c[(va&p)>>2]=0;zh(wa,c[(R&p)>>2]|0)}while(0);A=wa+32|0;q=c[(A&p)>>2]|0;at(f);x=(x|0)!=0;if(x)wh(wa,100,c[(v&p)>>2]|0,k,y)|0;k=c[(w&p)>>2]|0;if((k|0)>0){l=w+4|0;m=0;do{if(x)wh(wa,47,y,m,m+s|0)|0;else{a[(ya&n)>>0]=1;Rq(f,c[((c[(l&p)>>2]|0)+(m*20|0)&p)>>2]|0,m+s|0)}m=m+1|0;k=c[(w&p)>>2]|0}while((m|0)<(k|0))}if(H)c[(H&p)>>2]=(c[(H&p)>>2]|0)+1;xh(wa,wh(wa,42,r,s,k)|0,H,-6);k=c[(A&p)>>2]|0;ea=k+1|0;wh(wa,43,ea,0,ea)|0;w=c[(w&p)>>2]|0;wh(c[(f&p)+8>>2]|0,32,s,r,w)|0;dt(f,s,w);wh(wa,17,N,L,0)|0;wh(wa,137,J,S,0)|0;wh(wa,17,Q,O,0)|0;w=c[(A&p)>>2]|0;if(w>>>0>k>>>0)c[((c[(wa&p)+4>>2]|0)+(k*20|0)&p)+8>>2]=w;r=wa+24|0;c[((c[(r&p)>>2]|0)&p)+88>>2]=w+-1;et(f,ya);wh(wa,25,1,M,0)|0;if(x)wh(wa,5,c[(v&p)>>2]|0,q,0)|0;else{Xs(t);zh(wa,u)}wh(wa,17,N,L,0)|0;wh(wa,16,0,S,0)|0;m=c[(A&p)>>2]|0;wh(wa,25,1,J,0)|0;wh(wa,18,N,0,0)|0;k=c[(r&p)>>2]|0;l=~L;do if((L|0)<0){w=c[(k&p)+112>>2]|0;if(!w)break;c[(w+(l<<2)&p)>>2]=c[(A&p)>>2]}while(0);v=c[(A&p)>>2]|0;c[(k&p)+88>>2]=v+-1;wh(wa,137,M,v+2|0,0)|0;wh(wa,18,N,0,0)|0;ft(f,ya);v=v+1|0;gt(f,ga,v,16);Ps(f,g,c[(g&p)>>2]|0,-1,va,ua,h,v,m);wh(wa,18,N,0,0)|0;v=c[(r&p)>>2]|0;u=~O;do if((O|0)<0){t=c[(v&p)+112>>2]|0;if(!t)break;c[(t+(u<<2)&p)>>2]=c[(A&p)>>2]}while(0);c[(v&p)+88>>2]=(c[(A&p)>>2]|0)+-1;ht(f,ya);wh(wa,18,Q,0,0)|0}else{do if(!(c[(H&p)>>2]|0)){u=c[(g&p)>>2]|0;if((c[(u&p)>>2]|0)!=1){za=372;break}v=c[(na&p)>>2]|0;if((c[(v&p)>>2]|0)!=1){za=372;break}if(c[(v&p)+28>>2]|0){za=372;break}A=c[(v&p)+24>>2]|0;v=c[(c[(u&p)+4>>2]&p)>>2]|0;z=A+44|0;if(a[(z&n)>>0]&16){za=372;break}if((a[(v&n)>>0]|0)!=-101|(k|0)==0){za=372;break}y=ya+40|0;if(!(b[((c[((c[(y&p)>>2]|0)&p)+4>>2]|0)&o)+2>>1]&256)){za=372;break}if((A|0)==0?1:(c[(v&p)+4>>2]&16|0)!=0){za=372;break}v=c[(f&p)>>2]|0;k=c[(A&p)+68>>2]|0;i:do if(!k)u=-1e6;else{l=c[(v&p)+20>>2]|0;if((l|0)<=0){u=0;break}v=c[(v&p)+16>>2]|0;w=0;while(1){u=w+1|0;if((c[(v+(w<<4)&p)+12>>2]|0)==(k|0)){u=w;break i}if((u|0)<(l|0))w=u;else break}}while(0);w=f+68|0;q=c[(w&p)>>2]|0;c[(w&p)>>2]=q+1;w=A+32|0;k=c[(w&p)>>2]|0;Ar(f,u);gs(f,u,c[(w&p)>>2]|0,0,c[(A&p)>>2]|0);w=c[(A&p)+8>>2]|0;j:do if(!(a[(z&n)>>0]&32)){v=0;za=351}else{if(!w){l=1;m=0;w=0;break}else v=w;while(1){if((a[(v&n)+51>>0]&3)==2){za=351;break j}v=c[(v&p)+20>>2]|0;if(!v){v=0;za=351;break}}}while(0);do if((za|0)==351){if(w){m=A+42|0;l=w;do{do if(!(a[(l&n)+51>>0]&4)){w=b[(l&o)+44>>1]|0;if(w<<16>>16>=(b[(m&o)>>1]|0))break;if(c[(l&p)+36>>2]|0)break;if((v|0)!=0?w<<16>>16>=(b[(v&o)+44>>1]|0):0)break;v=l}while(0);l=c[(l&p)+20>>2]|0}while((l|0)!=0)}if(!v){l=1;m=0;w=0;break}k=c[(v&p)+40>>2]|0;l=0;m=v;w=hs(f,v)|0}while(0);xh(wa,wh(wa,54,q,k,u)|0,1,-14);if(w)xh(wa,-1,w,-6);wh(wa,50,q,c[((c[(y&p)>>2]|0)&p)+8>>2]|0,0)|0;wh(wa,61,q,0,0)|0;if((a[(f&n)+450>>0]|0)!=2){t=0;break}do if(l){v=c[(A&p)>>2]|0;u=10360;s=10360;t=c[(f&p)>>2]|0}else{if(a[(z&n)>>0]&32){ea=(a[(m&n)+51>>0]&3)!=2;t=c[(f&p)>>2]|0;v=c[(A&p)>>2]|0;u=ea?34920:10360;if(!ea){s=10360;break}}else{u=34920;v=c[(A&p)>>2]|0;t=c[(f&p)>>2]|0}s=c[(m&p)>>2]|0}while(0);c[(ra&p)>>2]=v;c[(ra&p)+4>>2]=u;c[(ra&p)+8>>2]=s;t=uh(t,34896,ra)|0;ea=c[(f&p)+8>>2]|0;xh(ea,wh(ea,157,c[(Aa&p)>>2]|0,0,0)|0,t,-1);t=0}else za=372;while(0);if((za|0)==372){do if((c[(I&p)>>2]|0)==0&(k|0)==1){t=c[(c[(ya&p)+40>>2]&p)>>2]|0;v=c[(t&p)+20>>2]|0;if(!v){t=0;s=0;break}if((c[(v&p)>>2]|0)!=1){t=0;s=0;break}if((a[(c[(c[(v&p)+4>>2]&p)>>2]&n)>>0]|0)!=-100){t=0;s=0;break}t=c[(t&p)+8>>2]|0;if(dd(t,18760)|0)if(!(dd(t,18768)|0))s=2;else{t=0;s=0;break}else s=1;t=Pr(xa,v,0)|0;if(!t){t=0;break}if(a[(pa&n)>>0]|0)break;ea=c[(t&p)+4>>2]|0;a[(ea&n)+12>>0]=s<<24>>24!=1&1;a[(c[(ea&p)>>2]&n)>>0]=-102}else{t=0;s=0}while(0);ht(f,ya);s=Vs(f,U,B,t,0,s&255,0)|0;if(!s){Nk(xa,t);za=444;break}et(f,ya);if((a[(s&n)+36>>0]|0)>0)wh(wa,16,0,c[(s&p)+52>>2]|0,0)|0;Xs(s);ft(f,ya)}c[(va&p)>>2]=0;gt(f,ga,S,16);Ps(f,g,c[(g&p)>>2]|0,-1,0,0,h,S,S);Nk(xa,t);r=wa+24|0}t=c[(r&p)>>2]|0;s=~S;do if((S|0)<0){r=c[(t&p)+112>>2]|0;if(!r)break;c[(r+(s<<2)&p)>>2]=c[(wa&p)+32>>2]}while(0);c[(t&p)+88>>2]=(c[(wa&p)+32>>2]|0)+-1}if((a[(ua&n)+1>>0]|0)==3)$s(f,34808);if(c[(va&p)>>2]|0){x=va+4|0;$s(f,(c[(x&p)>>2]|0)>0?34840:34864);A=c[(T&p)>>2]|0;v=f+8|0;H=c[(v&p)>>2]|0;I=xs(H)|0;F=xs(H)|0;q=c[(va&p)>>2]|0;m=a[(h&n)>>0]|0;B=m&255;C=h+4|0;D=c[(C&p)>>2]|0;y=va+16|0;w=c[(y&p)>>2]|0;if(w){wh(H,17,c[(va&p)+12>>2]|0,w,0)|0;wh(H,16,0,I,0)|0;ea=c[(y&p)>>2]|0;w=c[(H&p)+24>>2]|0;k=~ea;do if((ea|0)<0){l=c[(w&p)+112>>2]|0;if(!l)break;c[(l+(k<<2)&p)>>2]=c[(H&p)+32>>2]}while(0);c[(w&p)+88>>2]=(c[(H&p)+32>>2]|0)+-1}E=c[(va&p)+8>>2]|0;t=m<<24>>24==9;k:do if((m&-5)<<24>>24==9){s=A;u=c[(h&p)+8>>2]|0;k=0}else{w=f+19|0;k=a[(w&n)>>0]|0;do if(k<<24>>24){ea=k+-1<<24>>24;a[(w&n)>>0]=ea;l=c[(f+((ea&255)<<2)&p)+24>>2]|0;if(!(ea<<24>>24)){k=l;w=c[(f&p)+72>>2]|0;break}else{u=k+-2<<24>>24;a[(w&n)>>0]=u;s=1;u=c[(f+((u&255)<<2)&p)+24>>2]|0;k=l;break k}}else{k=f+72|0;w=(c[(k&p)>>2]|0)+1|0;c[(k&p)>>2]=w;k=w}while(0);u=w+1|0;c[(f&p)+72>>2]=u;s=1}while(0);r=(c[(q&p)>>2]|0)-(c[(x&p)>>2]|0)|0;z=va+24|0;if(!(a[(z&n)>>0]&1)){w=wh(H,107,E,I,0)|0;it(H,c[(g&p)+12>>2]|0,F);l=1;m=E}else{ea=f+72|0;m=(c[(ea&p)>>2]|0)+1|0;c[(ea&p)>>2]=m;ea=f+68|0;q=c[(ea&p)>>2]|0;c[(ea&p)>>2]=q+1;if(!(c[(y&p)>>2]|0))l=0;else{ea=Oq(f)|0;da=f+80|0;l=c[(da&p)>>2]|0;c[(da&p)>>2]=l+1;l=wh(ea,44,l,0,0)|0}wh(H,60,q,m,s+1+r|0)|0;if(l){w=c[(H&p)+32>>2]|0;if(w>>>0>l>>>0)c[((c[(H&p)+4>>2]|0)+(l*20|0)&p)+8>>2]=w;c[((c[(H&p)+24>>2]|0)&p)+88>>2]=w+-1}w=wh(H,106,E,I,0)|0;it(H,c[(g&p)+12>>2]|0,F);wh(H,100,E,m,q)|0;l=0;m=q}x=w+1|0;if((s|0)>0){w=l+r|0;l=0;do{wh(H,47,m,w+l|0,l+u|0)|0;l=l+1|0}while((l|0)!=(s|0))}do if((B|0)==12|(B|0)==14){wh(H,74,D,k,0)|0;wh(H,75,D,u,k)|0;t=c[(H&p)+4>>2]|0;if(!t)break;a[(t+(((c[(H&p)+32>>2]|0)+-1|0)*20|0)&n)+3>>0]=8}else if((B|0)==11){xh(H,wh(H,49,u,1,k)|0,h+1|0,1);dt(f,u,1);wh(H,110,D,k,0)|0}else if((B|0)!=10)if(t){ea=h+8|0;wh(H,35,c[(ea&p)>>2]|0,A,0)|0;dt(f,c[(ea&p)>>2]|0,A);break}else{wh(H,22,c[(C&p)>>2]|0,0,0)|0;break}else{wh(c[(v&p)>>2]|0,32,u,D,1)|0;dt(f,u,1)}while(0);if(k){_r(f,u);_r(f,k)}s=H+24|0;u=c[(s&p)>>2]|0;v=~F;do if((F|0)<0){t=c[(u&p)+112>>2]|0;if(!t)break;c[(t+(v<<2)&p)>>2]=c[(H&p)+32>>2]}while(0);v=H+32|0;c[(u&p)+88>>2]=(c[(v&p)>>2]|0)+-1;if(!(a[(z&n)>>0]&1))wh(H,9,E,x,0)|0;else wh(H,5,E,x,0)|0;r=c[(va&p)+12>>2]|0;if(r)wh(H,18,r,0,0)|0;r=c[(s&p)>>2]|0;q=~I;do if((I|0)<0){m=c[(r&p)+112>>2]|0;if(!m)break;c[(m+(q<<2)&p)>>2]=c[(v&p)>>2]}while(0);c[(r&p)+88>>2]=(c[(v&p)>>2]|0)+-1}l=c[(wa&p)+24>>2]|0;m=~qa;do if((qa|0)<0){k=c[(l&p)+112>>2]|0;if(!k)break;c[(k+(m<<2)&p)>>2]=c[(wa&p)+32>>2]}while(0);c[(l&p)+88>>2]=(c[(wa&p)+32>>2]|0)+-1;c[(Aa&p)>>2]=Ba;if((a[(h&n)>>0]|0)!=9){k=0;break}Ns(f,U,T);k=0}else za=444;while(0);if((za|0)==444){c[(Aa&p)>>2]=Ba;k=1}mg(xa,c[(ya&p)+28>>2]|0);mg(xa,c[(ya&p)+40>>2]|0)}else k=1;while(0);i=Ca;return k|0}function jr(a,b,d,e,f,g,h,k){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;var l=0,m=0,n=0,o=0,q=0,r=0;r=i;i=i+16|0;if((i|0)>=(j|0))fa();m=r;o=c[(a&p)>>2]|0;if((b|0)==0?(l=(h|0)!=0,l|(k|0)!=0):0){c[(m&p)>>2]=l?34792:34800;th(a,34752,m);q=9}else{b=pr(o,b,d,e)|0;if((b|0)!=0?(n=c[(b&p)>>2]|0,(n|0)!=0):0){l=n+-1|0;if(c[(f&p)+4>>2]|0)c[(b+(l*72|0)&p)+20>>2]=Wq(o,f)|0;c[(b+(l*72|0)&p)+28>>2]=g;c[(b+(l*72|0)&p)+52>>2]=h;c[(b+(l*72|0)&p)+56>>2]=k}else q=9}if((q|0)==9){Gk(o,h);Hk(o,k);Mk(o,g,1);b=0}i=r;return b|0}function kr(d,e,f,g,h,k,l,m,q,r){d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;m=m|0;q=q|0;r=r|0;var s=0,t=0,u=0,v=0,w=0,x=0,y=0;y=i;i=i+80|0;if((i|0)>=(j|0))fa();t=y+72|0;x=y;w=c[(d&p)>>2]|0;s=mh(w,72,0)|0;if(!s){u=x+0|0;v=u+72|0;do{c[(u&p)>>2]=0;u=u+4|0}while((u|0)<(v|0));s=x}else{u=s+0|0;v=u+72|0;do{a[(u&n)>>0]=0;u=u+1|0}while((u|0)<(v|0))}if(!e){c[(t&p)>>2]=0;c[(t&p)+4>>2]=0;e=lr(d,0,nr(w,116,t,0)|0)|0}c[(s&p)>>2]=e;if(!f){f=mh(w,80,0)|0;if(f){u=f+0|0;v=u+80|0;do{a[(u&n)>>0]=0;u=u+1|0}while((u|0)<(v|0))}}c[(s&p)+32>>2]=f;c[(s&p)+36>>2]=g;c[(s&p)+40>>2]=h;c[(s&p)+44>>2]=k;c[(s&p)+48>>2]=l;b[(s&o)+6>>1]=m;a[(s&n)+4>>0]=119;c[(s&p)+60>>2]=q;c[(s&p)+64>>2]=r;c[(s&p)+16>>2]=-1;c[(s&p)+20>>2]=-1;if(a[(w&n)+65>>0]|0){Mk(w,s,(s|0)!=(x|0)&1);s=0}i=y;return s|0}function lr(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0;g=c[(b&p)>>2]|0;if(!d){d=mh(g,8,0)|0;if(d){b=d;f=b;a[(f&n)>>0]=0;a[(f&n)+1>>0]=0;a[(f&n)+2>>0]=0;a[(f&n)+3>>0]=0;b=b+4|0;a[(b&n)>>0]=0;a[(b&n)+1>>0]=0;a[(b&n)+2>>0]=0;a[(b&n)+3>>0]=0;b=mh(g,20,0)|0;c[(d&p)+4>>2]=b;if(!b)f=8;else f=7}else{d=0;f=8}}else{b=c[(d&p)>>2]|0;if(!(b+-1&b)){f=d+4|0;b=ro(g,c[(f&p)>>2]|0,b*40|0,0)|0;if(!b)f=8;else{c[(f&p)>>2]=b;f=7}}else f=7}if((f|0)==7){b=c[(d&p)>>2]|0;c[(d&p)>>2]=b+1;b=(c[(d&p)+4>>2]|0)+(b*20|0)|0;c[(b&p)>>2]=0;c[(b&p)+4>>2]=0;c[(b&p)+8>>2]=0;c[(b&p)+12>>2]=0;c[(b&p)+16>>2]=0;c[(b&p)>>2]=e}else if((f|0)==8){Gk(g,e);Nk(g,d);d=0}return d|0}function mr(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0;do if(d){j=(c[(d&p)>>2]|0)+-1|0;g=c[(d&p)+4>>2]|0;h=c[(e&p)>>2]|0;d=c[(e&p)+4>>2]|0;if((h|0)!=0?(e=c[(b&p)>>2]|0,i=jw(d|0,0,1,0)|0,i=mh(e,i,G)|0,(i|0)!=0):0){kw(i|0,h|0,d|0)|0;a[(i+d&n)>>0]=0;c[(g+(j*20|0)&p)+4>>2]=i;if(!f)break;lo(i);break}c[(g+(j*20|0)&p)+4>>2]=0}while(0);return}function nr(d,e,f,g){d=d|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,q=0,r=0,s=0,t=0;t=i;i=i+16|0;if((i|0)>=(j|0))fa();m=t;c[(m&p)>>2]=0;k=(f|0)!=0;do if(k){if(((e|0)==132?(h=c[(f&p)>>2]|0,(h|0)!=0):0)?(Dn(h,m)|0)!=0:0){r=0;break}r=(c[(f&p)+4>>2]|0)+1|0}else r=0;while(0);l=r+48|0;q=mh(d,l,0)|0;if(q){fw(q|0,0,l|0)|0;a[(q&n)>>0]=e;b[(q&o)+34>>1]=-1;do if(k){if(!r){g=q+4|0;c[(g&p)>>2]=c[(g&p)>>2]|1024;c[(q&p)+8>>2]=c[(m&p)>>2];break}h=q+48|0;l=q+8|0;c[(l&p)>>2]=h;k=f+4|0;d=c[(k&p)>>2]|0;if(!d)h=48;else{kw(h|0,c[(f&p)>>2]|0,d|0)|0;h=(c[(k&p)>>2]|0)+48|0}a[(q+h&n)>>0]=0;if(((g|0)!=0&(r|0)>2?(g=a[(c[(f&p)>>2]&n)>>0]|0,s=g<<24>>24==34,g<<24>>24==34|g<<24>>24==39|g<<24>>24==91|g<<24>>24==96):0)?(lo(c[(l&p)>>2]|0),s):0){g=q+4|0;c[(g&p)>>2]=c[(g&p)>>2]|64}}while(0);c[(q&p)+24>>2]=1}i=t;return q|0}function or(b,d,e){b=b|0;d=d|0;e=e|0;var f=0;do if((d|0)!=0?(f=c[(d&p)>>2]|0,(f|0)>0):0){f=f+-1|0;if((c[(e&p)+4>>2]|0)==1?(c[(e&p)>>2]|0)==0:0){f=d+(f*72|0)+45|0;a[(f&n)>>0]=a[(f&n)>>0]|1;break}c[(d+(f*72|0)&p)+72>>2]=Wq(c[(b&p)>>2]|0,e)|0}while(0);return}function pr(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0;if(!d){d=mh(b,80,0)|0;if(!d)d=0;else{h=d+0|0;g=h+80|0;do{a[(h&n)>>0]=0;h=h+1|0}while((h|0)<(g|0));c[(d&p)+4>>2]=1;h=4}}else h=4;do if((h|0)==4){d=Fs(b,d,1,c[(d&p)>>2]|0)|0;if(a[(b&n)+65>>0]|0){Do(b,d);d=0;break}h=(c[(d&p)>>2]|0)+-1|0;if(!f)g=0;else g=(c[(f&p)>>2]|0)==0?0:f;f=(g|0)==0;c[(d+(h*72|0)&p)+16>>2]=Wq(b,f?e:g)|0;c[(d+(h*72|0)&p)+12>>2]=Wq(b,f?0:e)|0}while(0);return d|0}function qr(a,b,e,f){a=a|0;b=b|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,o=0,q=0,r=0,s=0;s=i;i=i+32|0;if((i|0)>=(j|0))fa();q=s;m=s+16|0;c[(m&p)>>2]=b;c[(m&p)+4>>2]=e;c[(m&p)+8>>2]=f;l=b;o=1;g=0;a:while(1){if(!l)break;k=c[(l&p)+4>>2]|0;h=0;while(1){if((k|0)==(d[((h*3|0)&n)+34625>>0]|0|0)?(Fc(c[(l&p)>>2]|0,34584+(d[((h*3|0)&n)+34624>>0]|0)|0,k)|0)==0:0)break;h=h+1|0;if((h|0)>=7){r=10;break a}}g=d[((h*3|0)&n)+34626>>0]|0|g;if((h|0)>6){r=10;break}if((o|0)>=3)break;l=c[(m+(o<<2)&p)>>2]|0;o=o+1|0}if((r|0)==10)g=g|64;if((g&33|0)!=33&(g&64|0)==0){if(!((g&32|0)==0|(g&24|0)==8)){th(a,34696,q);g=1}}else{c[(q&p)>>2]=b;c[(q&p)+4>>2]=e;c[(q&p)+8>>2]=(f|0)==0?20377|0:20376;c[(q&p)+12>>2]=f;th(a,34648,q);g=1}i=s;return g|0}function rr(e,f,g){e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=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;T=i;i=i+48|0;if((i|0)>=(j|0))fa();Q=T+36|0;R=T+32|0;r=T;c[(Q&p)>>2]=0;c[(R&p)>>2]=0;S=c[(e&p)>>2]|0;if(((((c[(e&p)+64>>2]|0)==0?(a[(S&n)+65>>0]|0)==0:0)?(H=Jr(e,f)|0,(H|0)!=0):0)?(G=jt(e,H,109,0,0)|0,P=(c[(H&p)+12>>2]|0)!=0,(hr(e,H)|0)==0):0)?(t=(G|0)!=0,(kt(e,H,t&1)|0)==0):0){l=c[(H&p)+68>>2]|0;a:do if(l){k=c[(S&p)+20>>2]|0;if((k|0)>0){h=c[(S&p)+16>>2]|0;q=0;while(1){m=q+1|0;if((c[(h+(q<<4)&p)+12>>2]|0)==(l|0)){m=q;break a}if((m|0)<(k|0))q=m;else break}}else m=0}else m=-1e6;while(0);h=Sq(e,9,c[(H&p)>>2]|0,0,c[((c[(S&p)+16>>2]|0)+(m<<4)&p)>>2]|0)|0;if((h|0)!=1){s=e+68|0;C=c[(s&p)>>2]|0;u=C+1|0;c[(s&p)>>2]=u;c[(f&p)+48>>2]=C;I=H+8|0;l=c[(I&p)>>2]|0;if(!l)q=0;else{k=u;q=0;do{k=k+1|0;c[(s&p)>>2]=k;q=q+1|0;l=c[(l&p)+20>>2]|0}while((l|0)!=0)}if(P){N=e+492|0;O=c[(N&p)>>2]|0;c[(N&p)>>2]=c[(H&p)>>2];N=e}else{N=0;O=0}L=Oq(e)|0;b:do if(L){M=e+18|0;if(!(a[(M&n)>>0]|0)){E=L+88|0;b[(E&o)>>1]=b[(E&o)>>1]|4}D=e+408|0;E=c[(D&p)>>2]|0;E=(E|0)==0?e:E;Ar(e,m);B=E+328|0;c[(B&p)>>2]=c[(B&p)>>2]|1<>0]=d[(E&n)>>0]|1;if(P){lt(e,H,g,C);c[(R&p)>>2]=C;c[(Q&p)>>2]=C};c[(r&p)>>2]=0;c[(r&p)+4>>2]=0;c[(r&p)+8>>2]=0;c[(r&p)+12>>2]=0;c[(r&p)+16>>2]=0;c[(r&p)+20>>2]=0;c[(r&p)+24>>2]=0;c[(r&p)+28>>2]=0;c[(r&p)>>2]=e;c[(r&p)+4>>2]=f;if(!(ls(r,g)|0)){J=S+24|0;if(!(c[(J&p)>>2]&128))K=-1;else{E=e+72|0;K=(c[(E&p)>>2]|0)+1|0;c[(E&p)>>2]=K;wh(L,25,0,K,0)|0}E=H+44|0;do if((!((g|0)!=0|(h|0)!=0|t)?(a[(E&n)>>0]&16)==0:0)?(mt(e,H,0,0)|0)==0:0){l=H+32|0;gs(e,m,c[(l&p)>>2]|0,1,c[(H&p)>>2]|0);if(!(a[(E&n)>>0]&32)){H=c[(H&p)>>2]|0;xh(L,wh(L,118,c[(l&p)>>2]|0,m,K)|0,H,-2)}h=c[(I&p)>>2]|0;if(!h){h=0;break}do{wh(L,118,c[(h&p)+40>>2]|0,m,0)|0;h=c[(h&p)+20>>2]|0}while((h|0)!=0);h=0}else F=31;while(0);do if((F|0)==31){if(!(a[(E&n)>>0]&32)){v=e+72|0;z=(c[(v&p)>>2]|0)+1|0;c[(v&p)>>2]=z;wh(L,28,0,z,0)|0;v=0;A=0;h=0;x=1;m=0}else{m=c[(I&p)>>2]|0;c:do if(!m)m=0;else while(1){if((a[(m&n)+51>>0]&3)==2)break c;m=c[(m&p)+20>>2]|0;if(!m){m=0;break}}while(0);x=b[(m&o)+46>>1]|0;A=e+72|0;h=c[(A&p)>>2]|0;v=x<<16>>16;c[(A&p)>>2]=h+v;A=c[(s&p)>>2]|0;c[(s&p)>>2]=A+1;v=wh(L,57,A,v,0)|0;z=c[(e&p)+8>>2]|0;xh(z,-1,hs(e,m)|0,-6);h=h+1|0;z=0}w=Vs(e,f,g,0,0,12,u)|0;if(!w){h=0;break b}u=w+60|0;t=c[(u&p)>>2]|0;u=c[(u&p)+4>>2]|0;y=a[(w&n)+38>>0]|0;if(c[(J&p)>>2]&128)wh(L,37,K,1,0)|0;B=(m|0)!=0;do if(B){if(x<<16>>16<=0){k=h;break}r=m+4|0;l=x<<16>>16;s=0;do{nt(L,H,C,b[((c[(r&p)>>2]|0)+(s<<1)&o)>>1]|0,s+h|0);s=s+1|0}while((s|0)!=(l|0));k=h}else{l=e+72|0;k=ct(e,H,-1,C,(c[(l&p)>>2]|0)+1|0,0)|0;if((k|0)<=(c[(l&p)>>2]|0))break;c[(l&p)>>2]=k}while(0);r=y<<24>>24!=0;do if(!r)if(B){l=e+72|0;k=(c[(l&p)>>2]|0)+1|0;c[(l&p)>>2]=k;l=x<<16>>16;s=ot(L,m)|0;xh(L,wh(L,49,h,l,k)|0,s,l);wh(L,110,A,k,0)|0;h=0;l=0;s=0;F=59;break}else{wh(L,128,z,k,0)|0;Xs(w);h=0;u=0;m=1;break}else{h=q+2|0;h=mh(S,h,((h|0)<0)<<31>>31)|0;if(!h){Xs(w);h=0;break b}F=q+1|0;fw(h|0,1,F|0)|0;a[(h+F&n)>>0]=0;if((t|0)>-1)a[(h+(t-C)&n)>>0]=0;if((u|0)>-1)a[(h+(u-C)&n)>>0]=0;if(v)zh(L,v);l=wh(L,16,0,0,0)|0;s=x;F=59}while(0);do if((F|0)==59){Xs(w);if(!r){u=0;m=s;break}m=xs(L)|0;wh(L,16,0,m,0)|0;q=c[(L&p)+32>>2]|0;if(q>>>0>l>>>0)c[((c[(L&p)+4>>2]|0)+(l*20|0)&p)+8>>2]=q;c[((c[(L&p)+24>>2]|0)&p)+88>>2]=q+-1;u=m;m=s}while(0);if(!P)pt(e,H,55,C,h,Q,R)|0;do if(!r)if(B){l=wh(L,108,A,0,0)|0;wh(L,101,A,k,0)|0;break}else{l=wh(L,129,z,0,k)|0;break}else{q=c[(Q&p)>>2]|0;if(!(a[(h+(q-C)&n)>>0]|0)){l=0;break}xh(L,wh(L,68,q,u,k)|0,m<<16>>16,-14);l=0}while(0);if(!(a[(E&n)>>0]&16))rt(e,H,G,c[(Q&p)>>2]|0,c[(R&p)>>2]|0,k,m,(a[(M&n)>>0]|0)==0&1,10,y);else{q=c[(H&p)+60>>2]|0;d:do if(!q)q=0;else while(1){if((c[(q&p)>>2]|0)==(S|0))break d;q=c[(q&p)+24>>2]|0;if(!q){q=0;break}}while(0);qt(e,H);xh(L,wh(L,15,0,1,k)|0,q,-10);q=c[(L&p)+4>>2]|0;if(q)a[(q+(((c[(L&p)+32>>2]|0)+-1|0)*20|0)&n)+3>>0]=2;H=c[(D&p)>>2]|0;a[(((H|0)==0?e:H)&n)+21>>0]=1}do if(!r)if(B){wh(L,9,A,l+1|0,0)|0;q=c[(L&p)+32>>2]|0;if(q>>>0>l>>>0)c[((c[(L&p)+4>>2]|0)+(l*20|0)&p)+8>>2]=q;c[((c[(L&p)+24>>2]|0)&p)+88>>2]=q+-1;break}else{wh(L,16,0,l,0)|0;q=c[(L&p)+32>>2]|0;if(q>>>0>l>>>0)c[((c[(L&p)+4>>2]|0)+(l*20|0)&p)+8>>2]=q;c[((c[(L&p)+24>>2]|0)&p)+88>>2]=q+-1;break}else{m=c[(L&p)+24>>2]|0;l=~u;do if((u|0)<0){q=c[(m&p)+112>>2]|0;if(!q)break;c[(q+(l<<2)&p)>>2]=c[(L&p)+32>>2]}while(0);c[(m&p)+88>>2]=(c[(L&p)+32>>2]|0)+-1}while(0);if(P)break;if(a[(E&n)>>0]&16)break;if(!B)wh(L,61,c[(Q&p)>>2]|0,0,0)|0;k=c[(I&p)>>2]|0;if(!k)break;else l=0;while(1){wh(L,61,(c[(R&p)>>2]|0)+l|0,0,0)|0;k=c[(k&p)+20>>2]|0;if(!k)break;else l=l+1|0}}while(0);if((a[(M&n)>>0]|0)==0?(c[(e&p)+412>>2]|0)==0:0)st(e);if((c[(J&p)>>2]&128|0)!=0?(a[(M&n)>>0]|0)==0:0){if(c[(e&p)+412>>2]|0)break;wh(L,35,K,1,0)|0;iq(L,1);if(a[((c[(L&p)>>2]|0)&n)+65>>0]|0)break;Xg(c[(L&p)+16>>2]|0,34568,-1,1,0)|0}}else h=0}else h=0;while(0);if(N)c[(N&p)+492>>2]=O}else h=0}else h=0;Do(S,f);Gk(S,g);mg(S,h);i=T;return}function sr(e,f,g,h,k){e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;var l=0,m=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,ga=0,ha=0,ia=0,ja=0,ka=0,la=0,ma=0;ma=i;i=i+64|0;if((i|0)>=(j|0))fa();T=ma;Y=ma+32|0;ea=ma+24|0;ha=ma+20|0;la=c[(e&p)>>2]|0;a:do if(((c[(e&p)+64>>2]|0)==0?(a[(la&n)+65>>0]|0)==0:0)?(ka=Jr(e,f)|0,(ka|0)!=0):0){m=c[(e&p)>>2]|0;r=c[(ka&p)+68>>2]|0;b:do if(r){s=c[(m&p)+20>>2]|0;if((s|0)>0){m=c[(m&p)+16>>2]|0;q=0;while(1){l=q+1|0;if((c[(m+(q<<4)&p)+12>>2]|0)==(r|0))break b;if((l|0)<(s|0))q=l;else{q=l;break}}}else q=0}else q=-1e6;while(0);ga=jt(e,ka,110,g,ea)|0;ca=(c[(ka&p)+12>>2]|0)!=0;if((hr(e,ka)|0)==0?(kt(e,ka,c[(ea&p)>>2]|0)|0)==0:0){_=e+68|0;$=c[(_&p)>>2]|0;ia=$+1|0;c[(_&p)>>2]=ia;r=f+48|0;c[(r&p)>>2]=$;K=ka+44|0;u=c[(ka&p)+8>>2]|0;c:do if(!(a[(K&n)>>0]&32)){s=0;ba=16}else{if(!u){w=ka+8|0;s=0;t=$;v=0;break}else s=u;while(1){if((a[(s&n)+51>>0]&3)==2){ba=16;break c}s=c[(s&p)+20>>2]|0;if(!s){s=0;ba=16;break}}}while(0);if((ba|0)==16){w=ka+8|0;if(!u){t=$;v=0}else{l=(s|0)!=0;m=ia;t=$;v=0;do{if((a[(u&n)+51>>0]&3)==2&l){c[(r&p)>>2]=m;t=m}m=m+1|0;c[(_&p)>>2]=m;v=v+1|0;u=c[(u&p)+20>>2]|0}while((u|0)!=0)}}ja=ka+38|0;l=mh(la,v+2+((b[(ja&o)>>1]|0)+v<<2)|0,0)|0;if(l){I=b[(ja&o)>>1]|0;aa=l+(I<<2)|0;da=l+(I+v<<2)|0;Z=v+1|0;fw(da|0,1,Z|0)|0;a[(da+Z&n)>>0]=0;v=b[(ja&o)>>1]|0;if(v<<16>>16>0)fw(l|0,-1,(v<<16>>16>1?v<<16>>16<<2:4)|0)|0;c[(Y&p)>>2]=0;c[(Y&p)+4>>2]=0;c[(Y&p)+8>>2]=0;c[(Y&p)+12>>2]=0;c[(Y&p)+16>>2]=0;c[(Y&p)+20>>2]=0;c[(Y&p)+24>>2]=0;c[(Y&p)+28>>2]=0;c[(Y&p)>>2]=e;c[(Y&p)+4>>2]=f;d:do if((c[(g&p)>>2]|0)>0){E=g+4|0;D=ka+4|0;C=la+16|0;F=(s|0)==0;G=ka+36|0;y=0;x=0;H=0;m=0;while(1){if(ls(Y,c[((c[(E&p)>>2]|0)+(H*20|0)&p)>>2]|0)|0)break a;A=b[(ja&o)>>1]|0;e:do if(A<<16>>16>0){v=c[(D&p)>>2]|0;B=c[(E&p)>>2]|0;r=c[(B+(H*20|0)&p)+4>>2]|0;u=0;while(1){z=u+1|0;if(!(dd(c[(v+(u*24|0)&p)>>2]|0,r)|0))break;if((z|0)<(A<<16>>16|0))u=z;else{u=z;r=m;break e}}if((u|0)!=(b[(G&o)>>1]|0)){if(!F)y=(a[(v+(u*24|0)&n)+23>>0]&1)==0?y:1}else{x=1;m=c[(B+(H*20|0)&p)>>2]|0}c[(l+(u<<2)&p)>>2]=H;r=m}else{u=0;r=m}while(0);if((u|0)<(A<<16>>16|0)){m=c[(ka&p)>>2]|0;if((u|0)<0)v=12944;else v=c[((c[(D&p)>>2]|0)+(u*24|0)&p)>>2]|0}else{r=c[(E&p)>>2]|0;m=c[(r+(H*20|0)&p)+4>>2]|0;if(!F)break;if(!($h(m)|0))break;m=c[(ka&p)>>2]|0;v=12944;x=1;u=-1;r=c[(r+(H*20|0)&p)>>2]|0}m=Sq(e,23,m,v,c[((c[(C&p)>>2]|0)+(q<<4)&p)>>2]|0)|0;if((m|0)==2)c[(l+(u<<2)&p)>>2]=-1;else if((m|0)==1)break a;H=H+1|0;if((H|0)>=(c[(g&p)>>2]|0)){R=r;break d}else m=r}c[(T&p)>>2]=m;th(e,34496,T);a[(e&n)+17>>0]=1;break a}else{y=0;x=0;R=0}while(0);X=(y&255)+(x&255)|0;U=X&255;C=f+64|0;c[(C&p)>>2]=0;c[(C&p)+4>>2]=0;X=X&255;C=mt(e,ka,l,X)|0;m=c[(w&p)>>2]|0;if(m){z=(C|X|0)==0;A=e+72|0;B=0;while(1){f:do if(z?!((c[(m&p)+36>>2]|0)!=0|(m|0)==(s|0)):0){r=b[(m&o)+46>>1]|0;if(!(r<<16>>16))ba=56;else{u=c[(m&p)+4>>2]|0;v=0;while(1){if((c[(l+(b[(u+(v<<1)&o)>>1]<<2)&p)>>2]|0)>-1){ba=54;break f}v=v+1|0;if((v|0)>=(r&65535|0)){ba=56;break}}}}else ba=54;while(0);if((ba|0)==54){ba=0;r=(c[(A&p)>>2]|0)+1|0;c[(A&p)>>2]=r;if(!r)ba=56;else u=B+1|0}if((ba|0)==56){ba=0;u=B+1|0;a[(da+u&n)>>0]=0;r=0}c[(l+(B+I<<2)&p)>>2]=r;m=c[(m&p)+20>>2]|0;if(!m)break;else B=u}}V=Oq(e)|0;if(V){W=e+18|0;if(!(a[(W&n)>>0]|0)){S=V+88|0;b[(S&o)>>1]=b[(S&o)>>1]|4}H=e+408|0;S=c[(H&p)>>2]|0;S=(S|0)==0?e:S;Ar(e,q);Q=S+328|0;c[(Q&p)>>2]=c[(Q&p)>>2]|1<>0]=d[(S&n)>>0]|1;if(a[(K&n)>>0]&16){x=c[(e&p)+8>>2]|0;y=c[(e&p)>>2]|0;m=c[(ka&p)+60>>2]|0;g:do if(!m)m=0;else while(1){if((c[(m&p)>>2]|0)==(y|0))break g;m=c[(m&p)+24>>2]|0;if(!m){m=0;break}}while(0);q=lr(e,0,tt(y,27,34536)|0)|0;w=(R|0)!=0;if(w)q=lr(e,q,Mr(y,R,0,0)|0)|0;if((b[(ja&o)>>1]|0)>0){r=g+4|0;t=ka+4|0;u=0;do{s=c[(l+(u<<2)&p)>>2]|0;if((s|0)>-1)s=Mr(y,c[((c[(r&p)>>2]|0)+(s*20|0)&p)>>2]|0,0,0)|0;else s=tt(y,27,c[((c[(t&p)>>2]|0)+(u*24|0)&p)>>2]|0)|0;q=lr(e,q,s)|0;u=u+1|0}while((u|0)<(b[(ja&o)>>1]|0))}t=kr(e,q,f,h,0,0,0,0,0,0)|0;v=c[(_&p)>>2]|0;c[(_&p)>>2]=v+1;f=w&1;wh(x,57,v,(b[(ja&o)>>1]|0)+(w?2:1)|0,0)|0;u=x+4|0;h=c[(u&p)>>2]|0;if(h)a[(h+(((c[(x&p)+32>>2]|0)+-1|0)*20|0)&n)+3>>0]=8;a[(T&n)>>0]=14;c[(T&p)+4>>2]=v;a[(T&n)+1>>0]=0;c[(T&p)+8>>2]=0;c[(T&p)+12>>2]=0;ir(e,t,T)|0;h=e+72|0;s=c[(h&p)>>2]|0;q=s+1|0;da=s+2|0;c[(h&p)>>2]=(b[(ja&o)>>1]|0)+da;h=wh(x,108,v,0,0)|0;wh(x,47,v,0,q)|0;wh(x,47,v,f,da)|0;if((b[(ja&o)>>1]|0)>0){s=s+3|0;r=0;do{da=r;r=r+1|0;wh(x,47,v,r+f|0,s+da|0)|0}while((r|0)<(b[(ja&o)>>1]|0))}qt(e,ka);xh(x,wh(x,15,0,(b[(ja&o)>>1]|0)+2|0,q)|0,m,-10);m=c[(u&p)>>2]|0;if(!m)m=x+32|0;else{da=x+32|0;a[(m+(((c[(da&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=(k|0)==10?2:k&255;m=da}da=c[(H&p)>>2]|0;a[(((da|0)==0?e:da)&n)+21>>0]=1;wh(x,9,v,h+1|0,0)|0;m=c[(m&p)>>2]|0;if(m>>>0>h>>>0)c[((c[(u&p)>>2]|0)+(h*20|0)&p)+8>>2]=m;c[((c[(x&p)+24>>2]|0)&p)+88>>2]=m+-1;wh(x,61,v,0,0)|0;Mk(y,t,1);h=0;f=0;break}H=e+72|0;m=c[(H&p)>>2]|0;G=m+1|0;Q=m+2|0;c[(H&p)>>2]=Q;I=y<<24>>24!=0;J=(ga|0)!=0;P=(C|0)!=0;if(I|J|P){q=(b[(ja&o)>>1]|0)+Q|0;c[(H&p)>>2]=q;L=m+3|0}else{q=Q;L=0}N=(X|0)!=0;if(N|J|P){O=q+1|0;c[(H&p)>>2]=O;q=O}else O=Q;M=q+1|0;c[(H&p)>>2]=(b[(ja&o)>>1]|0)+q;if(ca){S=e+492|0;T=c[(S&p)>>2]|0;c[(S&p)>>2]=c[(ka&p)>>2];lt(e,ka,h,t);S=e}else{S=0;T=0}do if(!(ls(Y,h)|0)){if(!(a[(K&n)>>0]&32)){wh(V,28,0,G,Q)|0;y=Vs(e,f,h,0,0,4,ia)|0;if(!y)break;A=y+60|0;m=c[(A&p)>>2]|0;A=c[(A&p)+4>>2]|0;B=a[(y&n)+38>>0]|0;wh(V,103,t,Q,0)|0;if(!(B<<24>>24))wh(V,128,G,Q,0)|0;Xs(y);D=0;C=0;z=B&255;E=0}else{B=b[(s&o)+46>>1]|0;y=c[(H&p)>>2]|0;u=y+1|0;C=B<<16>>16;y=C+1+y|0;c[(H&p)>>2]=y;D=c[(_&p)>>2]|0;c[(_&p)>>2]=D+1;wh(V,28,0,u,0)|0;q=wh(V,57,D,C,0)|0;v=c[(e&p)+8>>2]|0;xh(v,-1,hs(e,s)|0,-6);v=Vs(e,f,h,0,0,4,ia)|0;if(!v)break;A=v+60|0;m=c[(A&p)>>2]|0;A=c[(A&p)+4>>2]|0;r=a[(v&n)+38>>0]|0;E=r&255;if(B<<16>>16>0){B=s+4|0;z=0;do{nt(V,ka,t,b[((c[(B&p)>>2]|0)+(z<<1)&o)>>1]|0,z+u|0);z=z+1|0}while((z|0)!=(C|0))}if(!(r<<24>>24)){B=ot(V,s)|0;xh(V,wh(V,49,u,C,y)|0,B,C);wh(V,110,D,y,0)|0;B=0}else{zh(V,q);B=C;y=u}Xs(v);C=B;z=E;E=y}K=la+24|0;do if(!(c[(K&p)>>2]&128))v=0;else{if(c[(e&p)+412>>2]|0){v=0;break}v=(c[(H&p)>>2]|0)+1|0;c[(H&p)>>2]=v;wh(V,25,0,v,0)|0}while(0);u=xs(V)|0;if(!ca){h:do if((k|0)==5)fw(da|0,1,Z|0)|0;else{B=c[(w&p)>>2]|0;if(!B)break;while(1){if((a[(B&n)+50>>0]|0)==5)break;B=c[(B&p)+20>>2]|0;if(!B)break h}fw(da|0,1,Z|0)|0}while(0);do if(z){if((m|0)>-1)a[(da+(m-$)&n)>>0]=0;if((A|0)<=-1)break;a[(da+(A-$)&n)>>0]=0}while(0);pt(e,ka,55,$,da,0,0)|0}H=(z|0)!=0;do if(!H)if(!s){G=wh(V,129,G,u,Q)|0;wh(V,70,t,G,Q)|0;F=0;break}else{G=xs(V)|0;wh(V,108,D,u,0)|0;F=wh(V,101,D,E,0)|0;xh(V,wh(V,68,t,G,E)|0,0,-14);break}else{if(!((a[(da+(t-$)&n)>>0]|0)==0|ca))xh(V,wh(V,68,t,u,E)|0,C,-14);wh(V,76,(s|0)!=0?E:Q,u,0)|0;F=0;G=u}while(0);x=x<<24>>24==0;if(!x){Rq(e,R,O);wh(V,38,O,0,0)|0}do if(I|P|J){if(P)y=ut(e,ka)|0;else y=0;B=vt(e,ga,g,0,3,ka,k)|0|y;if((b[(ja&o)>>1]|0)>0){A=(B|0)==-1;z=ka+4|0;y=0;do{do if(A)ba=138;else{if((y|0)<32?(1<>2]|0)+(y*24|0)&n)+23>>0]&1){ba=138;break}wh(V,28,0,y+L|0,0)|0}while(0);if((ba|0)==138){ba=0;nt(V,ka,t,y,y+L|0)}y=y+1|0}while((y|0)<(b[(ja&o)>>1]|0))}if(!(x&(s|0)==0))break;wh(V,33,Q,O,0)|0}while(0);y=vt(e,ga,g,1,1,ka,k)|0;if((b[(ja&o)>>1]|0)>0){x=ka+36|0;m=g+4|0;r=0;do{i:do if((r|0)==(b[(x&o)>>1]|0))wh(V,28,0,r+M|0,0)|0;else{q=c[(l+(r<<2)&p)>>2]|0;if((q|0)>-1){Rq(e,c[((c[(m&p)>>2]|0)+(q*20|0)&p)>>2]|0,r+M|0);break}do if(!((c[(ea&p)>>2]&1|0)==0|(r|0)>31)){if(1<>1]|0))}do if(c[(ea&p)>>2]&1){wt(V,ka,M);xt(e,ga,110,g,1,ka,Q,k,G);if(!s)wh(V,70,t,G,Q)|0;else xh(V,wh(V,68,t,G,E)|0,C,-14);m=b[(ja&o)>>1]|0;if(m<<16>>16<=0)break;x=ka+36|0;y=0;do{do if((c[(l+(y<<2)&p)>>2]|0)<0){if((y|0)==(b[(x&o)>>1]|0))break;nt(V,ka,t,y,y+M|0);m=b[(ja&o)>>1]|0}while(0);y=y+1|0}while((y|0)<(m<<16>>16|0))}while(0);do if(!ca){c[(ha&p)>>2]=0;yt(e,ka,aa,t,ia,O,Q,U,k&255,G,ha);if(P)zt(e,ka,Q,0,l,X);m=(c[(ha&p)>>2]|X|0)==0;do if(!m)if(!s){q=wh(V,70,t,0,Q)|0;break}else{q=wh(V,68,t,0,E)|0;xh(V,q,C,-14);break}else q=0;while(0);At(e,ka,t,ia,aa);if(P|(N|(s|0)!=0))wh(V,95,t,0,0)|0;if(!m){m=c[(V&p)+32>>2]|0;if(m>>>0>q>>>0)c[((c[(V&p)+4>>2]|0)+(q*20|0)&p)+8>>2]=m;c[((c[(V&p)+24>>2]|0)&p)+88>>2]=m+-1}if(P){zt(e,ka,0,O,l,X);Bt(e,ka,t,ia,O,aa,1,0,0);Ct(e,ka,g,Q,l,X);break}else{Bt(e,ka,t,ia,O,aa,1,0,0);break}}while(0);do if(c[(K&p)>>2]&128){if(c[(e&p)+412>>2]|0)break;wh(V,37,v,1,0)|0}while(0);xt(e,ga,110,g,2,ka,Q,k,G);do if(!H){if(!s){wh(V,16,0,G,0)|0;break}r=c[(V&p)+24>>2]|0;q=~G;do if((G|0)<0){s=c[(r&p)+112>>2]|0;if(!s)break;c[(s+(q<<2)&p)>>2]=c[(V&p)+32>>2]}while(0);c[(r&p)+88>>2]=(c[(V&p)+32>>2]|0)+-1;wh(V,9,D,F,0)|0}while(0);r=c[(V&p)+24>>2]|0;q=~u;do if((u|0)<0){s=c[(r&p)+112>>2]|0;if(!s)break;c[(s+(q<<2)&p)>>2]=c[(V&p)+32>>2]}while(0);c[(r&p)+88>>2]=(c[(V&p)+32>>2]|0)+-1;q=c[(w&p)>>2]|0;if(q){r=0;do{s=r;r=r+1|0;if(a[(da+r&n)>>0]|0)wh(V,61,s+ia|0,0,0)|0;q=c[(q&p)+20>>2]|0}while((q|0)!=0)}if((t|0)<(ia|0))wh(V,61,t,0,0)|0;do if(!(a[(W&n)>>0]|0)){if(c[(e&p)+412>>2]|0)break;st(e)}while(0);if(!(c[(K&p)>>2]&128))break;if(c[(e&p)+412>>2]|0)break;if(a[(W&n)>>0]|0)break;wh(V,35,v,1,0)|0;iq(V,1);if(a[((c[(V&p)>>2]|0)&n)+65>>0]|0)break;Xg(c[(V&p)+16>>2]|0,34520,-1,1,0)|0}while(0);if(S)c[(S&p)+492>>2]=T}}}else l=0}else l=0;while(0);mg(la,l);Do(la,f);Nk(la,g);Gk(la,h);i=ma;return}function tr(e,f,g,h,k){e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;var l=0,m=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,ga=0,ha=0,ia=0,ja=0,ka=0,la=0,ma=0,na=0,oa=0;oa=i;i=i+96|0;if((i|0)>=(j|0))fa();ca=oa;ja=oa+92|0;la=oa+88|0;L=oa+68|0;Y=oa+64|0;O=oa+32|0;ba=oa+28|0;c[(ja&p)>>2]=0;c[(la&p)>>2]=0;na=c[(e&p)>>2]|0;c[(L&p)>>2]=0;c[(L&p)+4>>2]=0;c[(L&p)+8>>2]=0;c[(L&p)+12>>2]=0;c[(L&p)+16>>2]=0;a:do if((c[(e&p)+64>>2]|0)==0?(N=na+65|0,(a[(N&n)>>0]|0)==0):0){if(g)if((b[(g&o)+6>>1]&128)!=0?(c[(g&p)+52>>2]|0)==0:0){l=c[(g&p)>>2]|0;c[(g&p)>>2]=0;Mk(na,g,1);g=0}else l=0;else{g=0;l=0}if((c[(f&p)+16>>2]|0)!=0?(ka=Jr(e,f)|0,(ka|0)!=0):0){u=c[(ka&p)+68>>2]|0;b:do if(u){t=c[(na&p)+20>>2]|0;if((t|0)>0){s=c[(na&p)+16>>2]|0;q=0;while(1){r=q+1|0;if((c[(s+(q<<4)&p)+12>>2]|0)==(u|0)){r=q;break b}if((r|0)<(t|0))q=r;else break}}else r=0}else r=-1e6;while(0);if((((Sq(e,18,c[(ka&p)>>2]|0,0,c[((c[(na&p)+16>>2]|0)+(r<<4)&p)>>2]|0)|0)==0?(ga=ka+44|0,Z=(d[(ga&n)>>0]|0)>>>5&1,ea=jt(e,ka,108,0,Y)|0,ha=(c[(ka&p)+12>>2]|0)!=0,(hr(e,ka)|0)==0):0)?(kt(e,ka,c[(Y&p)>>2]|0)|0)==0:0)?(ma=Oq(e)|0,(ma|0)!=0):0){ia=e+18|0;if(!(a[(ia&n)>>0]|0)){da=ma+88|0;b[(da&o)>>1]=b[(da&o)>>1]|4}da=(g|0)!=0;aa=e+408|0;$=c[(aa&p)>>2]|0;$=($|0)==0?e:$;Ar(e,r);X=$+328|0;c[(X&p)>>2]=c[(X&p)>>2]|1<>0]=d[($&n)>>0]|(da|(ea|0)!=0)&1;$=(h|0)==0;c:do if((((!((g|0)==0|$^1)?(c[(e&p)+532>>2]|0)==0:0)?(c[(g&p)+68>>2]|0)==0:0)?(As(e,ka)|0)==0:0)?(a[(ga&n)>>0]&16)==0:0){if((k|0)==10){if((b[(ka&o)+36>>1]|0)>-1)u=d[(ka&n)+45>>0]|0;else u=10;y=(u|0)==10?2:u}else y=k;t=c[(g&p)+32>>2]|0;if((c[(t&p)>>2]|0)==1){if(c[(t&p)+28>>2]|0){_=117;break}if(c[(g&p)+36>>2]|0){_=117;break}if(c[(g&p)+48>>2]|0){_=117;break}if(c[(g&p)+40>>2]|0){_=117;break}if(c[(g&p)+60>>2]|0){_=117;break}if(c[(g&p)+52>>2]|0){_=117;break}if(b[(g&o)+6>>1]&1){_=117;break}u=c[(g&p)>>2]|0;if((c[(u&p)>>2]|0)!=1){_=117;break}if((a[(c[(c[(u&p)+4>>2]&p)>>2]&n)>>0]|0)!=116){_=117;break}x=Ur(e,0,t+8|0)|0;if((x|0)==0|(x|0)==(ka|0)){_=117;break}B=x+44|0;X=d[(B&n)>>0]|0;if(!((X&16|0)==0?(((d[(ga&n)>>0]|0)>>>5&1^1)&255|0)==(X>>>5&1^1|0):0)){_=117;break}if(c[(x&p)+12>>2]|0){_=117;break}v=b[(ka&o)+38>>1]|0;if(v<<16>>16!=(b[(x&o)+38>>1]|0)){_=117;break}A=ka+36|0;if((b[(A&o)>>1]|0)!=(b[(x&o)+36>>1]|0)){_=117;break}if(v<<16>>16>0){q=c[(ka&p)+4>>2]|0;m=c[(x&p)+4>>2]|0;w=0;do{if((a[(q+(w*24|0)&n)+21>>0]|0)!=(a[(m+(w*24|0)&n)+21>>0]|0)){_=117;break c}u=c[(q+(w*24|0)&p)+16>>2]|0;t=c[(m+(w*24|0)&p)+16>>2]|0;s=(t|0)==0;if(!u){if(!s){_=117;break c}}else{if(s){_=117;break c}if(dd(u,t)|0){_=117;break c}}if((a[(q+(w*24|0)&n)+20>>0]|0)!=0?(a[(m+(w*24|0)&n)+20>>0]|0)==0:0){_=117;break c}do if((w|0)>0){u=c[(q+(w*24|0)&p)+8>>2]|0;t=(u|0)==0;s=c[(m+(w*24|0)&p)+8>>2]|0;if(t^(s|0)==0){_=117;break c}if(t)break;if(_v(u,s)|0){_=117;break c}}while(0);w=w+1|0}while((w|0)<(v<<16>>16|0))}E=ka+8|0;u=c[(E&p)>>2]|0;if(!u)t=0;else{v=c[(x&p)+8>>2]|0;if(!v){_=117;break}else t=0;do{t=(a[(u&n)+50>>0]|0)==0?t:1;s=v;while(1){if(Dt(u,s)|0)break;s=c[(s&p)+20>>2]|0;if(!s){_=117;break c}}if(!s){_=117;break c}u=c[(u&p)+20>>2]|0}while((u|0)!=0)}u=c[(ka&p)+24>>2]|0;if((u|0)!=0?(Ts(c[(x&p)+24>>2]|0,u,-1)|0)!=0:0){_=117;break}s=c[(e&p)>>2]|0;u=c[(s&p)+24>>2]|0;if(!(u&524288)){if(u&128){_=117;break}}else if(!((c[(ka&p)+16>>2]|0)==0&(u&128|0)==0)){_=117;break}m=c[(x&p)+68>>2]|0;d:do if(!m)s=-1e6;else{v=c[(s&p)+20>>2]|0;if((v|0)<=0){s=0;break}u=c[(s&p)+16>>2]|0;q=0;while(1){s=q+1|0;if((c[(u+(q<<4)&p)+12>>2]|0)==(m|0)){s=q;break d}if((s|0)<(v|0))q=s;else break}}while(0);D=Oq(e)|0;Ar(e,s);z=e+68|0;F=c[(z&p)>>2]|0;C=F+1|0;c[(z&p)>>2]=F+2;z=Et(e,r,ka)|0;v=e+19|0;q=a[(v&n)>>0]|0;do if(!(q<<24>>24)){_=e+72|0;u=(c[(_&p)>>2]|0)+1|0;c[(_&p)>>2]=u;_=78}else{X=q+-1<<24>>24;a[(v&n)>>0]=X;u=c[(e+((X&255)<<2)&p)+24>>2]|0;if(!(X<<24>>24)){_=78;break}G=q+-2<<24>>24;a[(v&n)>>0]=G;H=u;G=c[(e+((G&255)<<2)&p)+24>>2]|0}while(0);if((_|0)==78){H=e+72|0;G=(c[(H&p)>>2]|0)+1|0;c[(H&p)>>2]=G;H=u}Qq(e,C,r,ka,55);if((b[(A&o)>>1]|0)<0)if((c[(E&p)>>2]|0)!=0|(t|0)!=0|(y+-1|0)>>>0>1)_=83;else I=0;else if((t|0)!=0|(y+-1|0)>>>0>1)_=83;else I=0;if((_|0)==83){w=wh(D,108,C,0,0)|0;v=wh(D,16,0,0,0)|0;u=c[(D&p)+32>>2]|0;if(u>>>0>w>>>0)c[((c[(D&p)+4>>2]|0)+(w*20|0)&p)+8>>2]=u;c[((c[(D&p)+24>>2]|0)&p)+88>>2]=u+-1;I=v}if(!(a[(B&n)>>0]&32)){Qq(e,F,s,x,54);t=wh(D,108,F,0,0)|0;do if((b[(A&o)>>1]|0)<=-1)if(!(c[(E&p)>>2]|0)){u=wh(D,74,C,G,0)|0;break}else{u=wh(D,103,F,G,0)|0;break}else{u=wh(D,103,F,G,0)|0;w=wh(D,70,C,0,G)|0;Ft(e,y,ka);v=c[(D&p)+32>>2]|0;if(v>>>0>w>>>0)c[((c[(D&p)+4>>2]|0)+(w*20|0)&p)+8>>2]=v;c[((c[(D&p)+24>>2]|0)&p)+88>>2]=v+-1;if((z|0)<=0)break;wh(c[(e&p)+8>>2]|0,136,z,G,0)|0}while(0);wh(D,102,F,H,0)|0;wh(D,75,C,H,G)|0;v=c[(D&p)+4>>2]|0;if(v)a[(v+(((c[(D&p)+32>>2]|0)+-1|0)*20|0)&n)+3>>0]=11;xh(D,-1,c[(ka&p)>>2]|0,0);wh(D,9,F,u,0)|0;wh(D,61,F,0,0)|0;wh(D,61,C,0,0)|0}else{gs(e,r,c[(ka&p)+32>>2]|0,1,c[(ka&p)>>2]|0);gs(e,s,c[(x&p)+32>>2]|0,0,c[(x&p)>>2]|0);t=0}w=c[(E&p)>>2]|0;if(w){q=x+8|0;m=e+8|0;x=D+4|0;y=D+32|0;z=D+24|0;u=w;do{w=q;while(1){w=c[(w&p)>>2]|0;if(Dt(u,w)|0)break;w=w+20|0}wh(D,54,F,c[(w&p)+40>>2]|0,s)|0;X=c[(m&p)>>2]|0;xh(X,-1,hs(e,w)|0,-6);wh(D,55,C,c[(u&p)+40>>2]|0,r)|0;w=c[(m&p)>>2]|0;xh(w,-1,hs(e,u)|0,-6);w=c[(x&p)>>2]|0;if(w)a[(w+(((c[(y&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=1;w=wh(D,108,F,0,0)|0;wh(D,101,F,H,0)|0;wh(D,110,C,H,1)|0;wh(D,9,F,w+1|0,0)|0;v=c[(y&p)>>2]|0;if(v>>>0>w>>>0)c[((c[(x&p)>>2]|0)+(w*20|0)&p)+8>>2]=v;c[((c[(z&p)>>2]|0)&p)+88>>2]=v+-1;wh(D,61,F,0,0)|0;wh(D,61,C,0,0)|0;u=c[(u&p)+20>>2]|0}while((u|0)!=0)}if(t){u=c[(D&p)+32>>2]|0;if(u>>>0>t>>>0)c[((c[(D&p)+4>>2]|0)+(t*20|0)&p)+8>>2]=u;c[((c[(D&p)+24>>2]|0)&p)+88>>2]=u+-1}_r(e,G);_r(e,H);if(!I){m=0;q=0;break}wh(D,24,0,0,0)|0;u=c[(D&p)+32>>2]|0;if(u>>>0>I>>>0)c[((c[(D&p)+4>>2]|0)+(I*20|0)&p)+8>>2]=u;c[((c[(D&p)+24>>2]|0)&p)+88>>2]=u+-1;wh(D,61,C,0,0)|0;_=117}else _=117}else _=117;while(0);do if((_|0)==117){S=Et(e,r,ka)|0;R=e+72|0;t=c[(R&p)>>2]|0;W=t+1|0;X=ka+38|0;I=b[(X&o)>>1]|0;H=I<<16>>16;u=W+H|0;c[(R&p)>>2]=u;if(!(a[(ga&n)>>0]&16))V=W;else{u=u+1|0;c[(R&p)>>2]=u;V=t+2|0}T=V+1|0;U=(h|0)!=0;e:do if(U?(P=c[(h&p)+4>>2]|0,Q=(P|0)>0,Q):0){v=c[(h&p)>>2]|0;t=0;do{c[(v+(t<<3)&p)+4>>2]=-1;t=t+1|0}while((t|0)<(P|0));if(Q){D=Z<<24>>24!=0;C=ka+4|0;B=ka+36|0;t=1;A=0;v=-1;while(1){f:do if(I<<16>>16>0){z=c[(h&p)>>2]|0;s=c[(z+(A<<3)&p)>>2]|0;q=c[(C&p)>>2]|0;m=0;while(1){w=m+1|0;if(!(dd(s,c[(q+(m*24|0)&p)>>2]|0)|0)){w=m;break}if((w|0)<(H|0))m=w;else break f}c[(z+(A<<3)&p)+4>>2]=w;t=(A|0)==(w|0)?t:0;v=(w|0)==(b[(B&o)>>1]|0)?A:v}else w=0;while(0);if((w|0)>=(H|0)){m=c[((c[(h&p)>>2]|0)+(A<<3)&p)>>2]|0;if(($h(m)|0)==0|D)break;else{t=0;w=A}}else w=v;A=A+1|0;if((A|0)>=(P|0)){E=w;break e}else v=w}c[(ca&p)>>2]=f;c[(ca&p)+4>>2]=0;c[(ca&p)+8>>2]=m;th(e,33368,ca);a[(e&n)+17>>0]=1;m=0;break a}else{t=1;E=-1}}else{t=1;E=-1}while(0);g:do if(!da){c[(O&p)>>2]=0;c[(O&p)+4>>2]=0;c[(O&p)+8>>2]=0;c[(O&p)+12>>2]=0;c[(O&p)+16>>2]=0;c[(O&p)+20>>2]=0;c[(O&p)+24>>2]=0;c[(O&p)+28>>2]=0;c[(O&p)>>2]=e;if(l){s=c[(l&p)>>2]|0;if((s|0)>0){u=l+4|0;t=0;while(1){if(ls(O,c[((c[(u&p)>>2]|0)+(t*20|0)&p)>>2]|0)|0){g=0;m=0;break a}t=t+1|0;if((t|0)>=(s|0)){u=0;t=-1;r=0;_=169;break}}}else{P=E;O=0;Q=-1;z=0}}else{P=E;s=0;O=0;Q=-1;z=0}}else{u=u+1|0;c[(R&p)>>2]=u;G=ma+32|0;v=c[(G&p)>>2]|0;wh(ma,20,u,0,v+1|0)|0;a[(L&n)>>0]=13;H=L+4|0;c[(H&p)>>2]=u;a[(L&n)+1>>0]=0;F=L+8|0;c[(F&p)>>2]=t<<24>>24!=0?T:0;c[(L&p)+12>>2]=b[(X&o)>>1];Q=ir(e,g,L)|0;F=c[(F&p)>>2]|0;if(Q){m=0;break a}if(a[(N&n)>>0]|0){m=0;break a}wh(ma,21,u,0,0)|0;u=c[(G&p)>>2]|0;if(u>>>0>v>>>0)c[((c[(ma&p)+4>>2]|0)+(v*20|0)&p)+8>>2]=u;I=ma+24|0;c[((c[(I&p)>>2]|0)&p)+88>>2]=u+-1;s=c[(c[(g&p)>>2]&p)>>2]|0;h:do if(!ea){w=Oq(e)|0;t=c[(w&p)+32>>2]|0;i:do if(!(a[(ga&n)>>0]&16))v=0;else{u=c[(e&p)>>2]|0;v=c[(ka&p)+60>>2]|0;if(!v){v=0;break}while(1){if((c[(v&p)>>2]|0)==(u|0))break i;v=c[(v&p)+24>>2]|0;if(!v){v=0;break}}}while(0);if((t|0)<=1){u=F;t=0;r=0;_=169;break g}q=(a[((c[(w&p)>>2]|0)&n)+65>>0]|0)==0;z=w+4|0;y=ka+32|0;x=ka+8|0;m=1;while(1){if(q)w=(c[(z&p)>>2]|0)+(m*20|0)|0;else w=29120;u=a[(w&n)>>0]|0;do if(u<<24>>24==54){if((c[(w&p)+12>>2]|0)!=(r|0))break;u=c[(w&p)+8>>2]|0;if((u|0)==(c[(y&p)>>2]|0))break h;w=c[(x&p)>>2]|0;if(!w)break;do{if((u|0)==(c[(w&p)+40>>2]|0))break h;w=c[(w&p)+20>>2]|0}while((w|0)!=0)}else if(u<<24>>24==-107?(c[(w&p)+16>>2]|0)==(v|0):0)break h;while(0);m=m+1|0;if((m|0)>=(t|0)){u=F;t=0;r=0;_=169;break g}}}while(0);v=e+68|0;w=c[(v&p)>>2]|0;c[(v&p)>>2]=w+1;v=e+19|0;t=a[(v&n)>>0]|0;do if(!(t<<24>>24)){u=(c[(R&p)>>2]|0)+1|0;c[(R&p)>>2]=u;_=159}else{Q=t+-1<<24>>24;a[(v&n)>>0]=Q;u=c[(e+((Q&255)<<2)&p)+24>>2]|0;if(!(Q<<24>>24)){_=159;break}Q=t+-2<<24>>24;a[(v&n)>>0]=Q;v=c[(e+((Q&255)<<2)&p)+24>>2]|0}while(0);if((_|0)==159){v=(c[(R&p)>>2]|0)+1|0;c[(R&p)>>2]=v}wh(ma,57,w,s,0)|0;r=wh(ma,22,c[(H&p)>>2]|0,0,0)|0;wh(ma,49,F,s,u)|0;wh(ma,74,w,v,0)|0;wh(ma,75,w,u,v)|0;wh(ma,16,0,r,0)|0;t=c[(G&p)>>2]|0;if(t>>>0>r>>>0)c[((c[(ma&p)+4>>2]|0)+(r*20|0)&p)+8>>2]=t;c[((c[(I&p)>>2]|0)&p)+88>>2]=t+-1;_r(e,u);_r(e,v);u=F;t=w;r=1;_=169}while(0);if((_|0)==169)if($&(s|0)>0){P=b[(ka&o)+36>>1]|0;O=u;Q=t;z=r}else{P=E;O=u;Q=t;z=r}if((a[(ga&n)>>0]&16)!=0?(M=b[(X&o)>>1]|0,M<<16>>16>0):0){v=c[(ka&p)+4>>2]|0;t=M<<16>>16;r=0;u=0;do{u=((d[(v+(r*24|0)&n)+23>>0]|0)>>>1&1)+u|0;r=r+1|0}while((r|0)<(t|0))}else u=0;do if($&(s|0)!=0){u=(b[(X&o)>>1]|0)-u|0;if((s|0)==(u|0))break;c[(ca&p)>>2]=f;c[(ca&p)+4>>2]=0;c[(ca&p)+8>>2]=u;c[(ca&p)+12>>2]=s;th(e,33400,ca);m=0;break a}while(0);do if(U){u=c[(h&p)+4>>2]|0;if((s|0)==(u|0))break;c[(ca&p)>>2]=s;c[(ca&p)+4>>2]=u;th(e,33456,ca);m=0;break a}while(0);K=na+24|0;if(!(c[(K&p)>>2]&128))q=0;else{q=(c[(R&p)>>2]|0)+1|0;c[(R&p)>>2]=q;wh(ma,25,0,q,0)|0}do if(ha)m=0;else{u=pt(e,ka,55,-1,0,ja,la)|0;m=mh(na,(u<<2)+4|0,0)|0;if(!m)break a;if((u|0)>0)t=0;else break;do{N=(c[(R&p)>>2]|0)+1|0;c[(R&p)>>2]=N;c[(m+(t<<2)&p)>>2]=N;t=t+1|0}while((t|0)!=(u|0))}while(0);M=z<<24>>24!=0;do if(M){N=wh(ma,108,Q,0,0)|0;L=c[(ma&p)+32>>2]|0}else{if(!da){L=0;N=0;break}N=wh(ma,22,c[(L&p)+4>>2]|0,0,0)|0;L=N}while(0);J=xs(ma)|0;do if(c[(Y&p)>>2]&1){w=(b[(X&o)>>1]|0)+1|0;H=e+60|0;v=c[(H&p)>>2]|0;G=e+56|0;u=c[(G&p)>>2]|0;if((u|0)<(w|0)){I=c[(R&p)>>2]|0;c[(R&p)>>2]=I+w;I=I+1|0}else{c[(H&p)>>2]=w+v;c[(G&p)>>2]=u-w;I=v}if((P|0)<0)wh(ma,25,-1,I,0)|0;else{if(M)wh(ma,47,Q,P,I)|0;else Rq(e,c[((c[(l&p)+4>>2]|0)+(P*20|0)&p)>>2]|0,I);w=wh(ma,77,I,0,0)|0;wh(ma,25,-1,I,0)|0;v=c[(ma&p)+32>>2]|0;if(v>>>0>w>>>0)c[((c[(ma&p)+4>>2]|0)+(w*20|0)&p)+8>>2]=v;c[((c[(ma&p)+24>>2]|0)&p)+88>>2]=v+-1;wh(ma,38,I,0,0)|0}v=b[(X&o)>>1]|0;if(v<<16>>16>0){D=M|(l|0)!=0;t=h+4|0;u=I+1|0;w=l+4|0;A=e+8|0;B=ka+4|0;C=0;do{j:do if($)z=C;else{y=c[(t&p)>>2]|0;if((y|0)<=0){z=0;break}x=c[(h&p)>>2]|0;r=0;while(1){z=r+1|0;if((c[(x+(r<<3)&p)+4>>2]|0)==(C|0)){z=r;break j}if((z|0)<(y|0))r=z;else break}}while(0);do if(D){if(U?(z|0)>=(c[(t&p)>>2]|0):0){_=213;break}if(M){wh(ma,47,Q,z,u+C|0)|0;break}else{Y=c[((c[(w&p)>>2]|0)+(z*20|0)&p)>>2]|0;r=u+C|0;x=c[(A&p)>>2]|0;Rq(e,Y,r);v=(c[(R&p)>>2]|0)+1|0;c[(R&p)>>2]=v;wh(x,33,r,v,0)|0;a[(Y&n)+38>>0]=a[(Y&n)>>0]|0;a[(Y&n)>>0]=-97;c[(Y&p)+28>>2]=v;Y=Y+4|0;c[(Y&p)>>2]=c[(Y&p)>>2]&-4097;break}}else _=213;while(0);if((_|0)==213){_=0;Rq(e,c[((c[(B&p)>>2]|0)+(C*24|0)&p)+4>>2]|0,u+C|0)}C=C+1|0;v=b[(X&o)>>1]|0}while((C|0)<(v<<16>>16|0))}if(!ha){wt(ma,ka,I+1|0);v=b[(X&o)>>1]|0}xt(e,ea,108,0,1,ka,I+-1-(v<<16>>16)|0,k,J);v=(b[(X&o)>>1]|0)+1|0;dt(e,I,v);if((c[(G&p)>>2]|0)>=(v|0))break;c[(G&p)>>2]=v;c[(H&p)>>2]=I}while(0);do if(!ha){if(a[(ga&n)>>0]&16)wh(ma,28,0,W,0)|0;k:do if((P|0)<=-1)if(!((a[(ga&n)>>0]&16|Z)<<24>>24)){wh(ma,74,c[(ja&p)>>2]|0,V,S)|0;I=1;break}else{wh(ma,28,0,V,0)|0;I=0;break}else{do if(M)wh(ma,47,Q,P,V)|0;else{if(da){wh(ma,33,P+O|0,V,0)|0;break}Rq(e,c[((c[(l&p)+4>>2]|0)+(P*20|0)&p)>>2]|0,V);if(!(a[((c[(ma&p)>>2]|0)&n)+65>>0]|0)){u=(c[(ma&p)+4>>2]|0)+(((c[(ma&p)+32>>2]|0)+-1|0)*20|0)|0;if(!u)break}else u=29120;if((a[(u&n)>>0]|0)!=28)break;if(a[(ga&n)>>0]&16)break;a[(u&n)>>0]=74;c[(u&p)+4>>2]=c[(ja&p)>>2];c[(u&p)+8>>2]=V;c[(u&p)+12>>2]=S;I=1;break k}while(0);if(!(a[(ga&n)>>0]&16)){u=wh(ma,77,V,0,0)|0;wh(ma,74,c[(ja&p)>>2]|0,V,S)|0;t=c[(ma&p)+32>>2]|0;if(t>>>0>u>>>0)c[((c[(ma&p)+4>>2]|0)+(u*20|0)&p)+8>>2]=t;c[((c[(ma&p)+24>>2]|0)&p)+88>>2]=t+-1}else wh(ma,76,V,(c[(ma&p)+32>>2]|0)+2|0,0)|0;wh(ma,38,V,0,0)|0;I=0}while(0);if((S|0)>0)wh(c[(e&p)+8>>2]|0,136,S,V,0)|0;if((b[(X&o)>>1]|0)>0){G=ka+36|0;H=ka+4|0;C=(s|0)==0;B=h+4|0;A=(O|0)==(T|0);s=l+4|0;t=e+23|0;u=ca+20|0;v=ca+4|0;E=ca+24|0;F=0;w=0;do{D=F+T|0;l:do if((F|0)==(b[(G&o)>>1]|0))wh(ma,29,D,0,0)|0;else{m:do if($)if(!(a[((c[(H&p)>>2]|0)+(F*24|0)&n)+23>>0]&2)){z=F-w|0;_=258;break}else{w=w+1|0;break}else{y=c[(B&p)>>2]|0;if((y|0)<=0){z=0;_=258;break}x=c[(h&p)>>2]|0;r=0;while(1){z=r+1|0;if((c[(x+(r<<3)&p)+4>>2]|0)==(F|0)){z=r;_=258;break m}if((z|0)<(y|0))r=z;else{_=258;break}}}while(0);do if((_|0)==258){_=0;if((z|0)<0|C)break;if(U?(z|0)>=(c[(B&p)>>2]|0):0)break;if(M){wh(ma,47,Q,z,D)|0;break l}if(!da){Rq(e,c[((c[(s&p)>>2]|0)+(z*20|0)&p)>>2]|0,D);break l}if(A)break l;wh(ma,34,z+O|0,D,0)|0;break l}while(0);z=c[((c[(H&p)>>2]|0)+(F*24|0)&p)+4>>2]|0;do if(a[(t&n)>>0]|0){c[(ca&p)>>2]=0;c[(ca&p)+4>>2]=0;c[(ca&p)+8>>2]=0;c[(ca&p)+12>>2]=0;c[(ca&p)+16>>2]=0;c[(ca&p)+20>>2]=0;a[(u&n)>>0]=1;c[(ca&p)>>2]=78;c[(v&p)>>2]=79;c[(E&p)>>2]=0;rs(ca,z)|0;if(!(a[(u&n)>>0]|0))break;Gt(e,z,D,0);break l}while(0);Rq(e,z,D)}while(0);F=F+1|0}while((F|0)<(b[(X&o)>>1]|0))}if(!(a[(ga&n)>>0]&16)){yt(e,ka,m,c[(ja&p)>>2]|0,c[(la&p)>>2]|0,W,0,P>>>31&255^1,k&255,J,ba);zt(e,ka,0,W,0,0);Bt(e,ka,c[(ja&p)>>2]|0,c[(la&p)>>2]|0,W,m,0,I,(c[(ba&p)>>2]|0)==0&1);break}u=c[(ka&p)+60>>2]|0;n:do if(!u)u=0;else while(1){if((c[(u&p)>>2]|0)==(na|0))break n;u=c[(u&p)+24>>2]|0;if(!u){u=0;break}}while(0);qt(e,ka);xh(ma,wh(ma,15,1,(b[(X&o)>>1]|0)+2|0,W)|0,u,-10);t=c[(ma&p)+4>>2]|0;if(t)a[(t+(((c[(ma&p)+32>>2]|0)+-1|0)*20|0)&n)+3>>0]=(k|0)==10?2:k&255;ca=c[(aa&p)>>2]|0;a[(((ca|0)==0?e:ca)&n)+21>>0]=1}while(0);if(c[(K&p)>>2]&128)wh(ma,37,q,1,0)|0;if(ea)xt(e,ea,108,0,2,ka,V+-1-(b[(X&o)>>1]|0)|0,k,J);u=ma+24|0;t=c[(u&p)>>2]|0;r=~J;do if((J|0)<0){s=c[(t&p)+112>>2]|0;if(!s)break;c[(s+(r<<2)&p)>>2]=c[(ma&p)+32>>2]}while(0);s=ma+32|0;c[(t&p)+88>>2]=(c[(s&p)>>2]|0)+-1;do if(M){wh(ma,9,Q,L,0)|0;s=c[(s&p)>>2]|0;if(s>>>0>N>>>0)c[((c[(ma&p)+4>>2]|0)+(N*20|0)&p)+8>>2]=s;c[((c[(u&p)>>2]|0)&p)+88>>2]=s+-1;wh(ma,61,Q,0,0)|0}else{if(!da)break;wh(ma,16,0,L,0)|0;s=c[(s&p)>>2]|0;if(s>>>0>N>>>0)c[((c[(ma&p)+4>>2]|0)+(N*20|0)&p)+8>>2]=s;c[((c[(u&p)>>2]|0)&p)+88>>2]=s+-1}while(0);if((a[(ga&n)>>0]&16)!=0|ha)break;r=c[(ja&p)>>2]|0;if((r|0)<(c[(la&p)>>2]|0))wh(ma,61,r,0,0)|0;r=c[(ka&p)+8>>2]|0;if(!r)break;else s=0;while(1){wh(ma,61,(c[(la&p)>>2]|0)+s|0,0,0)|0;r=c[(r&p)+20>>2]|0;if(!r)break;else s=s+1|0}}while(0);if((a[(ia&n)>>0]|0)==0?(c[(e&p)+412>>2]|0)==0:0)st(e);if((((c[(na&p)+24>>2]&128|0)!=0?(a[(ia&n)>>0]|0)==0:0)?(c[(e&p)+412>>2]|0)==0:0)?(wh(ma,35,q,1,0)|0,iq(ma,1),(a[((c[(ma&p)>>2]|0)&n)+65>>0]|0)==0):0)Xg(c[(ma&p)+16>>2]|0,33488,-1,1,0)|0}else m=0}else m=0}else{m=0;l=0}while(0);Do(na,f);Nk(na,l);Mk(na,g,1);Hk(na,h);mg(na,m);i=oa;return}function ur(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0;h=i;i=i+16|0;if((i|0)>=(j|0))fa();f=h;if(!d){d=mh(b,8,0)|0;if(!d)d=0;else{g=d;k=g;a[(k&n)>>0]=0;a[(k&n)+1>>0]=0;a[(k&n)+2>>0]=0;a[(k&n)+3>>0]=0;g=g+4|0;a[(g&n)>>0]=0;a[(g&n)+1>>0]=0;a[(g&n)+2>>0]=0;a[(g&n)+3>>0]=0;g=4}}else g=4;do if((g|0)==4){c[(d&p)>>2]=Ht(b,c[(d&p)>>2]|0,8,d+4|0,f)|0;f=c[(f&p)>>2]|0;if((f|0)<0){Hk(b,d);d=0;break}else{b=Wq(b,e)|0;c[((c[(d&p)>>2]|0)+(f<<3)&p)>>2]=b;break}}while(0);i=h;return d|0}function vr(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0;if((c[(d&p)+4>>2]|0)!=0?(f=nr(c[(a&p)>>2]|0,95,d,e)|0,(f|0)!=0):0){c[(f&p)+12>>2]=b;b=f+4|0;c[(b&p)>>2]=c[(b&p)>>2]|4352;b=f}return b|0}function wr(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;e=c[(a&p)>>2]|0;d=nr(e,153,d,1)|0;if(!d){Nk(e,b);d=0}else{c[(d&p)+20>>2]=b;yr(a,d)}return d|0}function xr(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;b=c[(b&p)>>2]|0;if((d|0)!=0&(e|0)!=0?(a[(d&n)>>0]|0)==101:0){a[(e&n)>>0]=f;f=e+16|0;Gk(b,c[(f&p)>>2]|0);c[(f&p)>>2]=0}return}function yr(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;f=i;i=i+16|0;if((i|0)>=(j|0))fa();e=f;if((c[(a&p)+64>>2]|0)==0?(It(b),d=c[((c[(a&p)>>2]|0)&p)+100>>2]|0,(d|0)<(c[(b&p)+24>>2]|0)):0){c[(e&p)>>2]=d;th(a,27152,e)}i=f;return}function zr(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,i=0;d=c[(a&p)>>2]|0;i=d+20|0;e=c[(i&p)>>2]|0;if((e|0)>0){g=d+16|0;h=(b|0)==0;d=e;f=0;do{e=c[(g&p)>>2]|0;do if(c[(e+(f<<4)&p)+4>>2]|0){if(!h?(dd(b,c[(e+(f<<4)&p)>>2]|0)|0)!=0:0)break;Ar(a,f);d=c[(i&p)>>2]|0}while(0);f=f+1|0}while((f|0)<(d|0))}return}function Ar(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;f=c[(a&p)+408>>2]|0;f=(f|0)==0?a:f;a=f+332|0;d=c[(a&p)>>2]|0;e=1<>2]|0,c[(a&p)>>2]=d|e,c[(f+(b<<2)&p)+336>>2]=c[(c[((c[(g&p)+16>>2]|0)+(b<<4)&p)+12>>2]&p)>>2],(b|0)==1):0)_k(f)|0;return}function Br(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,o=0,q=0;q=i;i=i+128|0;if((i|0)>=(j|0))fa();f=q+8|0;o=q;m=q+24|0;c[(o&p)>>2]=0;k=c[(b&p)>>2]|0;if((c[(b&p)+64>>2]|0)==0?(c[(f&p)>>2]=e,l=Wk(k,d,f)|0,(l|0)!=0):0){d=b+18|0;a[(d&n)>>0]=(a[(d&n)>>0]|0)+1<<24>>24;e=b+440|0;f=m+0|0;g=e+0|0;h=f+96|0;do{a[(f&n)>>0]=a[(g&n)>>0]|0;f=f+1|0;g=g+1|0}while((f|0)<(h|0));f=e+0|0;h=f+96|0;do{c[(f&p)>>2]=0;f=f+4|0}while((f|0)<(h|0));Lh(b,l,o)|0;mg(k,c[(o&p)>>2]|0);mg(k,l);f=e+0|0;g=m+0|0;h=f+96|0;do{a[(f&n)>>0]=a[(g&n)>>0]|0;f=f+1|0;g=g+1|0}while((f|0)<(h|0));a[(d&n)>>0]=(a[(d&n)>>0]|0)+-1<<24>>24}i=q;return}function Cr(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0;k=i;i=i+48|0;if((i|0)>=(j|0))fa();g=k;h=k+16|0;b=c[((c[((c[(a&p)>>2]|0)&p)+16>>2]|0)+(b<<4)&p)>>2]|0;f=1;do{c[(g&p)>>2]=f;ad(24,h,33272,g)|0;if(_h(c[(a&p)>>2]|0,h,b)|0){c[(g&p)>>2]=b;c[(g&p)+4>>2]=h;c[(g&p)+8>>2]=d;c[(g&p)+12>>2]=e;Br(a,28840,g)}f=f+1|0}while((f|0)!=5);i=k;return}function Dr(b,d){b=b|0;d=d|0;var e=0,f=0;e=b+19|0;f=a[(e&n)>>0]|0;if(!(f<<24>>24)){f=b+72|0;e=(c[(f&p)>>2]|0)+1|0;c[(f&p)>>2]=e}else{f=f+-1<<24>>24;a[(e&n)>>0]=f;e=c[(b+((f&255)<<2)&p)+24>>2]|0}f=c[(b&p)+8>>2]|0;wh(f,25,(c[(c[((c[((c[(b&p)>>2]|0)&p)+16>>2]|0)+(d<<4)&p)+12>>2]&p)>>2]|0)+1|0,e,0)|0;wh(f,52,d,1,e)|0;_r(b,e);return}function Er(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0;l=i;i=i+32|0;if((i|0)>=(j|0))fa();k=l;h=Oq(b)|0;f=b+19|0;g=a[(f&n)>>0]|0;if(!(g<<24>>24)){g=b+72|0;f=(c[(g&p)>>2]|0)+1|0;c[(g&p)>>2]=f}else{g=g+-1<<24>>24;a[(f&n)>>0]=g;f=c[(b+((g&255)<<2)&p)+24>>2]|0}wh(h,117,d,f,e)|0;g=c[(b&p)+408>>2]|0;a[(((g|0)==0?b:g)&n)+21>>0]=1;c[(k&p)>>2]=c[((c[((c[(b&p)>>2]|0)&p)+16>>2]|0)+(e<<4)&p)>>2];c[(k&p)+4>>2]=(e|0)==1?13184:13208;c[(k&p)+8>>2]=d;c[(k&p)+12>>2]=f;c[(k&p)+16>>2]=f;Br(b,33216,k);_r(b,f);i=l;return}function Fr(f,g,h,k,l){f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;var m=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;X=i;i=i+96|0;if((i|0)>=(j|0))fa();G=X+24|0;w=X+80|0;q=X+64|0;A=X+16|0;t=X+60|0;u=X+56|0;O=X+52|0;N=X+48|0;z=X+44|0;D=X+40|0;E=X+36|0;F=X+32|0;x=X+8|0;s=X;W=c[(f&p)>>2]|0;T=Oq(f)|0;do if((T|0)!=0?(S=T+88|0,b[(S&o)>>1]=b[(S&o)>>1]|16,S=f+72|0,c[(S&p)>>2]=2,Q=er(f,g,h,w)|0,(Q|0)>=0):0){R=W+16|0;C=c[(R&p)>>2]|0;if((Q|0)==1?(_k(f)|0)!=0:0)break;V=Wq(W,c[(w&p)>>2]|0)|0;if(V){if(!l)U=Wq(W,k)|0;else{c[(G&p)>>2]=k;U=uh(W,30104,G)|0}B=h+4|0;if(!(c[(B&p)>>2]|0))L=0;else L=c[(C+(Q<<4)&p)>>2]|0;a:do if(!(Sq(f,19,V,U,L)|0)){c[(q&p)>>2]=0;c[(q&p)+4>>2]=V;c[(q&p)+8>>2]=U;c[(q&p)+12>>2]=0;r=W+452|0;c[(r&p)>>2]=0;g=cg(W,L,14,q)|0;if(!g){k=c[(q&p)>>2]|0;if(!k)break;m=(c[(S&p)>>2]|0)+1|0;c[(S&p)>>2]=m;xh(T,wh(T,97,0,m,0)|0,k,0);iq(T,1);if(!(a[((c[(T&p)>>2]|0)&n)+65>>0]|0))Xg(c[(T&p)+16>>2]|0,30112,-1,1,0)|0;wh(T,35,m,1,0)|0;Wc(c[(q&p)>>2]|0);break}else if((g|0)==12){w=0;q=56;b:while(1){while(1){l=(w+q|0)/2|0;g=c[((l*12|0)&p)+30120>>2]|0;k=dd(V,g)|0;if(!k){w=l;break b}if((k|0)<0){g=l;break}if((l|0)<(q|0))w=l+1|0;else break a}g=g+-1|0;if((w|0)>(g|0))break a;else q=g}if((a[((w*12|0)&n)+30125>>0]&1)!=0?(Gn(f)|0)!=0:0)break;do switch(d[((w*12|0)&n)+30124>>0]|0){case 10:{q=1<>2]=c[(F&p)>>2]|q;if(U){c[(G&p)>>2]=0;Dn(U,G)|0;k=c[(G&p)>>2]|0;if((k|0)<=-1)k=(k|0)==-2147483648?2147483647:0-k|0;G=c[(f&p)+408>>2]|0;Ar(f,Q);G=((G|0)==0?f:G)+328|0;c[(G&p)>>2]=c[(G&p)>>2]|q;wh(T,25,k,1,0)|0;wh(T,52,Q,3,1)|0;c[((c[(C+(Q<<4)&p)+12>>2]|0)&p)+80>>2]=k;pq(c[(C+(Q<<4)&p)+4>>2]|0,k);break a}iq(T,1);if(!(a[((c[(T&p)>>2]|0)&n)+65>>0]|0))Xg(c[(T&p)+16>>2]|0,30848,-1,1,0)|0;c[(S&p)>>2]=(c[(S&p)>>2]|0)+2;k=yh(T,9,30808)|0;l=c[(T&p)+32>>2]|0;if(l>>>0>k>>>0)c[((c[(T&p)+4>>2]|0)+(k*20|0)&p)+4>>2]=Q;m=k+1|0;if(l>>>0>m>>>0)c[((c[(T&p)+4>>2]|0)+(m*20|0)&p)+4>>2]=Q;m=k+6|0;if(l>>>0<=m>>>0)break a;c[((c[(T&p)+4>>2]|0)+(m*20|0)&p)+4>>2]=2e3;break a}case 19:{k=c[(c[((c[(C+(Q<<4)&p)+4>>2]|0)&p)+4>>2]&p)>>2]|0;G=A;c[(G&p)>>2]=-2;c[(G&p)+4>>2]=-1;if(U){ji(U,A)|0;m=A;l=c[(m&p)>>2]|0;m=c[(m&p)+4>>2]|0;if((m|0)<-1|(m|0)==-1&l>>>0<4294967295){l=A;c[(l&p)>>2]=-1;c[(l&p)+4>>2]=-1;l=-1;m=-1}G=k+160|0;c[(G&p)>>2]=l;c[(G&p)+4>>2]=m;k=c[(k&p)+208>>2]|0;if(k){G=k+16|0;c[(G&p)>>2]=l;c[(G&p)+4>>2]=m}}else{m=k+160|0;l=c[(m&p)>>2]|0;m=c[(m&p)+4>>2]|0}G=A;c[(G&p)>>2]=l;c[(G&p)+4>>2]=m;Jt(f,30952,l,m);break a}case 28:{q=Oq(f)|0;iq(q,4);c[(S&p)>>2]=4;Ar(f,Q);if((((a[((c[(q&p)>>2]|0)&n)+65>>0]|0)==0?(Xg(c[(q&p)+16>>2]|0,31232,-1,1,0)|0,(a[((c[(q&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(q&p)+16>>2]|0)+40|0,20632,-1,1,0)|0,(a[((c[(q&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(q&p)+16>>2]|0)+80|0,31240,-1,1,0)|0,(a[((c[(q&p)>>2]|0)&n)+65>>0]|0)==0):0)Xg((c[(q&p)+16>>2]|0)+120|0,31248,-1,1,0)|0;l=c[((c[(C+(Q<<4)&p)+12>>2]|0)&p)+16>>2]|0;if(!l)break a;do{m=c[(l&p)+8>>2]|0;G=c[(m&p)>>2]|0;xh(q,wh(q,97,0,1,0)|0,G,0);wh(q,28,0,2,0)|0;G=Ws(b[(m&o)+42>>1]|0)|0;wh(q,25,G,3,0)|0;G=Ws(b[(m&o)+28>>1]|0)|0;wh(q,25,G,4,0)|0;wh(q,35,1,4,0)|0;m=c[(m&p)+8>>2]|0;if(m)do{G=c[(m&p)>>2]|0;xh(q,wh(q,97,0,2,0)|0,G,0);G=Ws(b[(m&o)+44>>1]|0)|0;wh(q,25,G,3,0)|0;G=Ws(b[(c[(m&p)+8>>2]&o)>>1]|0)|0;wh(q,25,G,4,0)|0;wh(q,35,1,4,0)|0;m=c[(m&p)+20>>2]|0}while((m|0)!=0);l=c[(l&p)>>2]|0}while((l|0)!=0);break}case 15:{if(!U)break a;s=bq(W,U,L)|0;if(!s)break a;w=(c[((w*12|0)&p)+30128>>2]|0)==0;t=s+46|0;G=w?3:6;r=b[((w?t:s+48|0)&o)>>1]|0;u=r&65535;c[(S&p)>>2]=G;q=c[(s&p)+12>>2]|0;iq(T,G);Ar(f,Q);if(((a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0?(Xg(c[(T&p)+16>>2]|0,31256,-1,1,0)|0,(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(T&p)+16>>2]|0)+40|0,31176,-1,1,0)|0,(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0):0)Xg((c[(T&p)+16>>2]|0)+80|0,31184,-1,1,0)|0;if(((!w?(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0:0)?(Xg((c[(T&p)+16>>2]|0)+120|0,31264,-1,1,0)|0,(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(T&p)+16>>2]|0)+160|0,31272,-1,1,0)|0,(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0):0)Xg((c[(T&p)+16>>2]|0)+200|0,31280,-1,1,0)|0;if(!(r<<16>>16))break a;m=s+4|0;l=s+28|0;k=s+32|0;s=q+4|0;q=0;do{G=b[((c[(m&p)>>2]|0)+(q<<1)&o)>>1]|0;wh(T,25,q,1,0)|0;r=G<<16>>16;wh(T,25,r,2,0)|0;if(G<<16>>16<0)wh(T,28,0,3,0)|0;else{G=c[((c[(s&p)>>2]|0)+(r*24|0)&p)>>2]|0;xh(T,wh(T,97,0,3,0)|0,G,0)}if(!w){wh(T,25,d[((c[(l&p)>>2]|0)+q&n)>>0]|0,4,0)|0;G=c[((c[(k&p)>>2]|0)+(q<<2)&p)>>2]|0;xh(T,wh(T,97,0,5,0)|0,G,0);wh(T,25,(q|0)<(e[(t&o)>>1]|0)&1,6,0)|0}wh(T,35,1,c[(S&p)>>2]|0,0)|0;q=q+1|0}while((q|0)<(u|0));break}case 22:{Ar(f,Q);k=(c[(S&p)>>2]|0)+1|0;c[(S&p)>>2]=k;if((a[(V&n)>>0]&-33)<<24>>24==80)wh(T,153,Q,k,0)|0;else{c[(G&p)>>2]=0;if(U){Dn(U,G)|0;m=c[(G&p)>>2]|0;if((m|0)<=-1)m=(m|0)==-2147483648?2147483647:0-m|0}else m=0;wh(T,154,Q,k,m)|0}wh(T,35,k,1,0)|0;iq(T,1);if(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)break a;Xg(c[(T&p)+16>>2]|0,V,-1,1,-1)|0;break a}case 24:{l=c[(C+(Q<<4)&p)+4>>2]|0;if(U){c[(G&p)>>2]=0;Dn(U,G)|0;G=c[(G&p)>>2]|0;c[(W&p)+72>>2]=G;if((xg(l,G,-1,0)|0)!=7)break a;a[(W&n)+65>>0]=1;break a}if(!l){l=0;m=0}else{m=c[((c[(l&p)+4>>2]|0)&p)+32>>2]|0;l=m;m=((m|0)<0)<<31>>31}Jt(f,30864,l,m);break a}case 25:{l=c[(C+(Q<<4)&p)+4>>2]|0;if(U){m=(ii(U,1,0)|0)<<24>>24!=0&1;if((c[(B&p)>>2]|0)==0?(y=W+20|0,(c[(y&p)>>2]|0)>0):0){k=0;do{so(c[((c[(R&p)>>2]|0)+(k<<4)&p)+4>>2]|0,m)|0;k=k+1|0}while((k|0)<(c[(y&p)>>2]|0))}}else m=-1;G=so(l,m)|0;Jt(f,30880,G,((G|0)<0)<<31>>31);break a}case 18:{iq(T,1);if(!(a[((c[(T&p)>>2]|0)&n)+65>>0]|0))Xg(c[(T&p)+16>>2]|0,30936,-1,1,0)|0;c:do if(U){k=U;while(1)if(!(a[(k&n)>>0]|0))break;else k=k+1|0;m=k-U&1073741823;k=0;while(1){if(!(Fc(U,c[(k<<2&p)+32216>>2]|0,m)|0))break;k=k+1|0;if((k|0)==6){P=91;break c}}if((k|0)!=-1)q=Q;else P=91}else P=91;while(0);if((P|0)==91)if(!(c[(B&p)>>2]|0)){c[(B&p)>>2]=1;k=-1;q=0}else{k=-1;q=Q}m=c[(W&p)+20>>2]|0;if((m|0)>0){l=T+96|0;do{m=m+-1|0;do if(c[((c[(R&p)>>2]|0)+(m<<4)&p)+4>>2]|0){if((m|0)!=(q|0)?(c[(B&p)>>2]|0)!=0:0)break;c[(l&p)>>2]=c[(l&p)>>2]|1<0)}wh(T,35,1,1,0)|0;break a}case 32:{if(!U){if(!(c[2708]|0))break a;iq(T,1);if(!(a[((c[(T&p)>>2]|0)&n)+65>>0]|0))Xg(c[(T&p)+16>>2]|0,31048,-1,1,0)|0;G=c[2708]|0;xh(T,wh(T,97,0,1,0)|0,G,0);wh(T,35,1,1,0)|0;break a}if((a[(U&n)>>0]|0)!=0?(F=c[(W&p)>>2]|0,F=(pc[c[(F&p)+32>>2]&31](F,U,1,u)|0)!=0,F|(c[(u&p)>>2]|0)==0):0){th(f,31072,G);break a}if((d[(W&n)+64>>0]|0)<2)Kt(f)|0;Wc(c[2708]|0);if(!(a[(U&n)>>0]|0)){c[2708]=0;break a}else{c[(G&p)>>2]=U;c[2708]=_c(10344,G)|0;break a}}case 14:{if(!((U|0)!=0?(G=(Dn(U,t)|0)==0,m=c[(t&p)>>2]|0,!(G|(m|0)<1)):0)){c[(t&p)>>2]=2147483647;m=2147483647}l=c[(f&p)+408>>2]|0;Ar(f,Q);l=((l|0)==0?f:l)+328|0;c[(l&p)>>2]=c[(l&p)>>2]|1<>2]|0;if(l>>>0>m>>>0)c[((c[(T&p)+4>>2]|0)+(m*20|0)&p)+8>>2]=l;c[((c[(T&p)+24>>2]|0)&p)+88>>2]=l+-1;break a}case 30:{if(!U)break a;h=_h(W,U,L)|0;if(!h)break a;k=c[(h&p)+8>>2]|0;d:do if(!k)k=0;else while(1){if((a[(k&n)+51>>0]&3)==2)break d;k=c[(k&p)+20>>2]|0;if(!k){k=0;break}}while(0);iq(T,6);c[(S&p)>>2]=6;Ar(f,Q);do if((((a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0?(Xg(c[(T&p)+16>>2]|0,31176,-1,1,0)|0,(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(T&p)+16>>2]|0)+40|0,31184,-1,1,0)|0,(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(T&p)+16>>2]|0)+80|0,31192,-1,1,0)|0,(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0):0){Xg((c[(T&p)+16>>2]|0)+120|0,31200,-1,1,0)|0;if(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)break;Xg((c[(T&p)+16>>2]|0)+160|0,31208,-1,1,0)|0;if(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)break;Xg((c[(T&p)+16>>2]|0)+200|0,31224,-1,1,0)|0}while(0);hr(f,h)|0;t=h+38|0;m=b[(t&o)>>1]|0;if(m<<16>>16<=0)break a;u=(k|0)==0;l=k+4|0;w=0;r=0;g=c[(h&p)+4>>2]|0;while(1){s=g+23|0;if(!(a[(s&n)>>0]&2)){wh(T,25,w-r|0,1,0)|0;q=c[(g&p)>>2]|0;xh(T,wh(T,97,0,2,0)|0,q,0);q=c[(g&p)+12>>2]|0;xh(T,wh(T,97,0,3,0)|0,(q|0)==0?10360:q,0);wh(T,25,(a[(g&n)+20>>0]|0)!=0&1,4,0)|0;q=c[(g&p)+8>>2]|0;if(!q)wh(T,28,0,5,0)|0;else xh(T,wh(T,97,0,5,0)|0,q,0);k=a[(s&n)>>0]&1;e:do if(k<<24>>24==0|u)q=(k^1)&255^1;else{q=b[(t&o)>>1]|0;if(q<<16>>16<1){q=1;break}m=c[(l&p)>>2]|0;s=q<<16>>16;k=1;while(1){q=k+1|0;if((b[(m+(k+-1<<1)&o)>>1]|0)==(w|0)){q=k;break e}if((k|0)<(s|0))k=q;else break}}while(0);wh(T,25,q,6,0)|0;wh(T,35,1,6,0)|0;m=b[(t&o)>>1]|0}else r=r+1|0;w=w+1|0;if((w|0)>=(m<<16>>16|0))break;else g=g+24|0}break}case 2:{if(!U){Jt(f,g,(c[((w*12|0)&p)+30128>>2]&c[(W&p)+24>>2]|0)!=0&1,0);break a}l=c[((w*12|0)&p)+30128>>2]|0;l=(a[(W&n)+63>>0]|0)==0?l&-524289:l;if(!((ii(U,1,0)|0)<<24>>24)){G=W+24|0;c[(G&p)>>2]=c[(G&p)>>2]&~l;if((l|0)==16777216){G=W+512|0;c[(G&p)>>2]=0;c[(G&p)+4>>2]=0}}else{G=W+24|0;c[(G&p)>>2]=c[(G&p)>>2]|l}wh(T,144,0,0,0)|0;Lt(W);break a}case 5:{if(!U)break a;G=(ii(U,1,0)|0)<<24>>24!=0;F=G?32e3:19240;Qh(W,19248,2,1,F,40,0,0,0)|0;Qh(W,19248,3,1,F,40,0,0,0)|0;Qh(W,19232,2,1,10352,40,0,0,0)|0;Ot(W,19232,12);Ot(W,19248,G?12:4);break a}case 17:{g=a[(V&n)>>0]|0;A=(c[(h&p)>>2]|0)==0?-1:Q;c[(S&p)>>2]=6;iq(T,1);if(!(a[((c[(T&p)>>2]|0)&n)+65>>0]|0))Xg(c[(T&p)+16>>2]|0,31464,-1,1,0)|0;c[(z&p)>>2]=100;if(U){Dn(U,z)|0;s=c[(z&p)>>2]|0;if((s|0)<1){c[(z&p)>>2]=100;s=100}}else s=100;wh(T,25,s,1,0)|0;M=W+20|0;w=c[(M&p)>>2]|0;if((w|0)>0){L=(A|0)<0;m=T+32|0;I=T+4|0;H=T+24|0;N=(g&-33)<<24>>24==81;O=0;do{if(L|(O|0)==(A|0)){Ar(f,O);w=wh(T,137,1,0,0)|0;wh(T,24,0,0,0)|0;l=c[(m&p)>>2]|0;if(l>>>0>w>>>0)c[((c[(I&p)>>2]|0)+(w*20|0)&p)+8>>2]=l;c[((c[(H&p)>>2]|0)&p)+88>>2]=l+-1;k=(c[((c[(R&p)>>2]|0)+(O<<4)&p)+12>>2]|0)+16|0;w=c[(k&p)>>2]|0;if(!w)g=0;else{g=0;do{l=c[(w&p)+8>>2]|0;if(!(a[(l&n)+44>>0]&32)){wh(T,25,c[(l&p)+32>>2]|0,g+2|0,0)|0;g=g+1|0}l=c[(l&p)+8>>2]|0;if(l)do{wh(T,25,c[(l&p)+40>>2]|0,g+2|0,0)|0;g=g+1|0;l=c[(l&p)+20>>2]|0}while((l|0)!=0);w=c[(w&p)>>2]|0}while((w|0)!=0)}C=c[(S&p)>>2]|0;w=g+8|0;c[(S&p)>>2]=(C|0)>(w|0)?C:w;wh(T,127,2,g,1)|0;w=c[(I&p)>>2]|0;if(w)a[(w+(((c[(m&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=O;g=wh(T,76,2,0,0)|0;c[(G&p)>>2]=c[((c[(R&p)>>2]|0)+(O<<4)&p)>>2];w=uh(W,31480,G)|0;xh(T,wh(T,97,0,3,0)|0,w,-1);wh(T,32,2,4,1)|0;wh(T,94,4,3,2)|0;wh(T,35,2,1,0)|0;w=c[(m&p)>>2]|0;if(w>>>0>g>>>0)c[((c[(I&p)>>2]|0)+(g*20|0)&p)+8>>2]=w;c[((c[(H&p)>>2]|0)&p)+88>>2]=w+-1;w=c[(k&p)>>2]|0;if(!((w|0)==0|N))do{x=c[(w&p)+8>>2]|0;J=x+8|0;g=c[(J&p)>>2]|0;do if(g){f:do if(!(a[(x&n)+44>>0]&32))g=0;else while(1){if((a[(g&n)+51>>0]&3)==2)break f;g=c[(g&p)+20>>2]|0;if(!g){g=0;break}}while(0);l=wh(T,137,1,0,0)|0;wh(T,24,0,0,0)|0;k=c[(m&p)>>2]|0;if(k>>>0>l>>>0)c[((c[(I&p)>>2]|0)+(l*20|0)&p)+8>>2]=k;c[((c[(H&p)>>2]|0)&p)+88>>2]=k+-1;at(f);pt(f,x,54,1,0,D,E)|0;wh(T,25,0,7,0)|0;k=c[(J&p)>>2]|0;if(!k)l=8;else{l=0;while(1){wh(T,25,0,l+8|0,0)|0;k=c[(k&p)+20>>2]|0;if(!k)break;else l=l+1|0}l=l+9|0}K=c[(S&p)>>2]|0;c[(S&p)>>2]=(K|0)>(l|0)?K:l;wh(T,108,c[(D&p)>>2]|0,0,0)|0;K=wh(T,37,7,1,0)|0;u=x+38|0;l=b[(u&o)>>1]|0;if(l<<16>>16>0){h=x+36|0;v=x+4|0;t=0;do{do if((t|0)!=(b[(h&o)>>1]|0)){if(!(a[((c[(v&p)>>2]|0)+(t*24|0)&n)+20>>0]|0))break;nt(T,x,c[(D&p)>>2]|0,t,3);l=c[(I&p)>>2]|0;if(l)a[(l+(((c[(m&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=-128;l=wh(T,77,3,0,0)|0;wh(T,37,1,-1,0)|0;q=c[((c[(v&p)>>2]|0)+(t*24|0)&p)>>2]|0;c[(G&p)>>2]=c[(x&p)>>2];c[(G&p)+4>>2]=q;q=uh(W,31504,G)|0;xh(T,wh(T,97,0,3,0)|0,q,-1);wh(T,35,3,1,0)|0;q=wh(T,137,1,0,0)|0;wh(T,24,0,0,0)|0;r=c[(m&p)>>2]|0;if(r>>>0>l>>>0)c[((c[(I&p)>>2]|0)+(l*20|0)&p)+8>>2]=r;l=r+-1|0;k=(c[(H&p)>>2]|0)+88|0;c[(k&p)>>2]=l;if(r>>>0>q>>>0)c[((c[(I&p)>>2]|0)+(q*20|0)&p)+8>>2]=r;c[(k&p)>>2]=l;l=b[(u&o)>>1]|0}while(0);t=t+1|0}while((t|0)<(l<<16>>16|0))}l=c[(J&p)>>2]|0;if(l){z=x+4|0;y=0;r=0;k=-1;while(1){q=xs(T)|0;if((g|0)!=(l|0)){k=Pt(f,l,c[(D&p)>>2]|0,0,0,F,r,k)|0;wh(T,37,y+8|0,1,0)|0;x=e[(l&o)+48>>1]|0;q=wh(T,69,(c[(E&p)>>2]|0)+y|0,q,k)|0;xh(T,q,x,-14);wh(T,37,1,-1,0)|0;xh(T,wh(T,97,0,3,0)|0,31528,-2);wh(T,94,7,3,3)|0;xh(T,wh(T,97,0,4,0)|0,31536,-2);wh(T,94,4,3,3)|0;x=c[(l&p)>>2]|0;v=wh(T,97,0,4,0)|0;xh(T,v,x,0);wh(T,94,4,3,3)|0;wh(T,35,3,1,0)|0;x=wh(T,137,1,0,0)|0;wh(T,24,0,0,0)|0;r=c[(m&p)>>2]|0;if(r>>>0>q>>>0)c[((c[(I&p)>>2]|0)+(q*20|0)&p)+8>>2]=r;q=c[(H&p)>>2]|0;c[(q&p)+88>>2]=r+-1;if(a[(l&n)+50>>0]|0){h=xs(T)|0;u=l+46|0;q=b[(u&o)>>1]|0;if(q<<16>>16){t=l+4|0;r=0;do{if(!(a[((c[(z&p)>>2]|0)+((b[((c[(t&p)>>2]|0)+(r<<1)&o)>>1]|0)*24|0)&n)+20>>0]|0)){wh(T,76,r+k|0,h,0)|0;q=b[(u&o)>>1]|0}r=r+1|0}while((r|0)<(q&65535|0))}q=wh(T,9,(c[(E&p)>>2]|0)+y|0,0,0)|0;wh(T,16,0,h,0)|0;r=c[(m&p)>>2]|0;if(r>>>0>q>>>0)c[((c[(I&p)>>2]|0)+(q*20|0)&p)+8>>2]=r;c[((c[(H&p)>>2]|0)&p)+88>>2]=r+-1;q=e[(u&o)>>1]|0;xh(T,wh(T,114,(c[(E&p)>>2]|0)+y|0,h,k)|0,q,-14);wh(T,37,1,-1,0)|0;xh(T,wh(T,97,0,3,0)|0,31560,-2);wh(T,16,0,v,0)|0;q=c[(H&p)>>2]|0;t=~h;do if((h|0)<0){r=c[(q&p)+112>>2]|0;if(!r)break;c[(r+(t<<2)&p)>>2]=c[(m&p)>>2]}while(0);r=c[(m&p)>>2]|0;c[(q&p)+88>>2]=r+-1}if(r>>>0>x>>>0)c[((c[(I&p)>>2]|0)+(x*20|0)&p)+8>>2]=r;c[(q&p)+88>>2]=r+-1;Qt(f,c[(F&p)>>2]|0);r=l}l=c[(l&p)+20>>2]|0;if(!l)break;else y=y+1|0}}wh(T,9,c[(D&p)>>2]|0,K,0)|0;l=K+-1|0;k=c[(m&p)>>2]|0;if(k>>>0>l>>>0)c[((c[(I&p)>>2]|0)+(l*20|0)&p)+8>>2]=k;c[((c[(H&p)>>2]|0)&p)+88>>2]=k+-1;xh(T,wh(T,97,0,2,0)|0,31592,-2);l=c[(J&p)>>2]|0;if(!l)break;else q=0;while(1){if((g|0)!=(l|0)){k=c[(m&p)>>2]|0;wh(T,137,1,k+2|0,0)|0;wh(T,24,0,0,0)|0;wh(T,50,(c[(E&p)>>2]|0)+q|0,3,0)|0;wh(T,79,q+8|0,k+8|0,3)|0;k=c[(I&p)>>2]|0;if(k)a[(k+(((c[(m&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=-112;wh(T,37,1,-1,0)|0;C=c[(l&p)>>2]|0;xh(T,wh(T,97,0,3,0)|0,C,0);wh(T,94,3,2,7)|0;wh(T,35,7,1,0)|0}l=c[(l&p)+20>>2]|0;if(!l)break;else q=q+1|0}}while(0);w=c[(w&p)>>2]|0}while((w|0)!=0);w=c[(M&p)>>2]|0}O=O+1|0}while((O|0)<(w|0))}else m=T+32|0;l=yh(T,3,31448)|0;m=c[(m&p)>>2]|0;if(m>>>0>l>>>0){c[((c[(T&p)+4>>2]|0)+(l*20|0)&p)+12>>2]=0-s;c[((c[(T&p)+4>>2]|0)+(l*20|0)&p)+8>>2]=m}c[((c[(T&p)+24>>2]|0)&p)+88>>2]=m+-1;xh(T,l+1|0,31624,-2);break a}case 21:{do if(U){if(dd(U,30904)|0)if(!(dd(U,30896)|0))k=0;else{P=66;break}else k=1;if(!(c[(B&p)>>2]|0)){s=c[(W&p)+20>>2]|0;if((s|0)>2){q=c[(R&p)>>2]|0;m=k&255;r=2;do{l=c[(c[((c[(q+(r<<4)&p)+4>>2]|0)&p)+4>>2]&p)>>2]|0;do if(!(a[(l&n)+12>>0]|0)){G=c[(l&p)+208>>2]|0;if((G|0)!=0?(a[(G&n)+43>>0]|0)==2:0)break;a[(l&n)+4>>0]=m}while(0);r=r+1|0}while((r|0)<(s|0))}else m=k&255;a[(W&n)+66>>0]=m;P=74}else P=74}else P=66;while(0);if((P|0)==66)if(!(c[(B&p)>>2]|0))l=W+66|0;else{k=-1;P=74}if((P|0)==74){m=c[(c[((c[(C+(Q<<4)&p)+4>>2]|0)&p)+4>>2]&p)>>2]|0;do if((k|0)>-1?(a[(m&n)+12>>0]|0)==0:0){G=c[(m&p)+208>>2]|0;if((G|0)!=0?(a[(G&n)+43>>0]|0)==2:0)break;a[(m&n)+4>>0]=k}while(0);l=m+4|0}l=(a[(l&n)>>0]|0)==1?30904:30896;iq(T,1);if(!(a[((c[(T&p)>>2]|0)&n)+65>>0]|0))Xg(c[(T&p)+16>>2]|0,30920,-1,1,0)|0;xh(T,wh(T,97,0,1,0)|0,l,0);wh(T,35,1,1,0)|0;break a}case 16:{if(!U)break a;k=_h(W,U,L)|0;if(!k)break a;q=Oq(f)|0;iq(q,5);c[(S&p)>>2]=5;Ar(f,Q);if(((((a[((c[(q&p)>>2]|0)&n)+65>>0]|0)==0?(Xg(c[(q&p)+16>>2]|0,31288,-1,1,0)|0,(a[((c[(q&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(q&p)+16>>2]|0)+40|0,31184,-1,1,0)|0,(a[((c[(q&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(q&p)+16>>2]|0)+80|0,31296,-1,1,0)|0,(a[((c[(q&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(q&p)+16>>2]|0)+120|0,31304,-1,1,0)|0,(a[((c[(q&p)>>2]|0)&n)+65>>0]|0)==0):0)Xg((c[(q&p)+16>>2]|0)+160|0,31312,-1,1,0)|0;m=c[(k&p)+8>>2]|0;if(!m)break a;else l=0;while(1){wh(q,25,l,1,0)|0;G=c[(m&p)>>2]|0;xh(q,wh(q,97,0,2,0)|0,G,0);wh(q,25,(a[(m&n)+50>>0]|0)!=0&1,3,0)|0;G=c[((a[(m&n)+51>>0]&3)<<2&p)+31336>>2]|0;xh(q,wh(q,97,0,4,0)|0,G,0);wh(q,25,(c[(m&p)+36>>2]|0)!=0&1,5,0)|0;wh(q,35,1,5,0)|0;m=c[(m&p)+20>>2]|0;if(!m)break;else l=l+1|0}break}case 1:{k=c[(C+(Q<<4)&p)+4>>2]|0;if(!U){m=c[(k&p)+4>>2]|0;c[(m&p)+4>>2]=c[(k&p)>>2];if(!(a[(m&n)+17>>0]|0)){m=0;l=0}else{l=(a[(m&n)+18>>0]|0)==0;m=l?1:2;l=l?0:0}Jt(f,30976,m,l);break a}if(dd(U,32192)|0)if(dd(U,31880)|0)if(!(dd(U,32200)|0))m=2;else{c[(G&p)>>2]=0;Dn(U,G)|0;m=c[(G&p)>>2]|0;m=m>>>0<3?m&255:0}else m=1;else m=0;a[(W&n)+67>>0]=m;r=m+-1|0;if(!((vn(k,m)|0)==0&r>>>0<2))break a;l=yh(T,6,30992)|0;q=c[(T&p)+32>>2]|0;if(q>>>0>l>>>0)c[((c[(T&p)+4>>2]|0)+(l*20|0)&p)+4>>2]=Q;k=l+1|0;if(q>>>0>k>>>0)c[((c[(T&p)+4>>2]|0)+(k*20|0)&p)+4>>2]=Q;k=l+2|0;m=l+4|0;if(q>>>0>k>>>0)c[((c[(T&p)+4>>2]|0)+(k*20|0)&p)+8>>2]=m;if(q>>>0>m>>>0)c[((c[(T&p)+4>>2]|0)+(m*20|0)&p)+4>>2]=r;m=l+5|0;if(q>>>0>m>>>0)c[((c[(T&p)+4>>2]|0)+(m*20|0)&p)+4>>2]=Q;G=T+96|0;c[(G&p)>>2]=c[(G&p)>>2]|1<>2]=3;if(((a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0?(Xg(c[(T&p)+16>>2]|0,31288,-1,1,0)|0,(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(T&p)+16>>2]|0)+40|0,31184,-1,1,0)|0,(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0):0)Xg((c[(T&p)+16>>2]|0)+80|0,31352,-1,1,0)|0;l=W+20|0;m=c[(l&p)>>2]|0;if((m|0)>0)q=0;else break a;do{if(c[((c[(R&p)>>2]|0)+(q<<4)&p)+4>>2]|0){wh(T,25,q,1,0)|0;k=c[((c[(R&p)>>2]|0)+(q<<4)&p)>>2]|0;xh(T,wh(T,97,0,2,0)|0,k,0);k=c[(c[((c[((c[(R&p)>>2]|0)+(q<<4)&p)+4>>2]|0)&p)+4>>2]&p)>>2]|0;if(!(a[(k&n)+15>>0]|0))k=c[(k&p)+168>>2]|0;else k=10360;xh(T,wh(T,97,0,3,0)|0,k,0);wh(T,35,1,3,0)|0;m=c[(l&p)>>2]|0}q=q+1|0}while((q|0)<(m|0));break}case 6:{iq(T,2);c[(S&p)>>2]=2;if((a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0?(Xg(c[(T&p)+16>>2]|0,31288,-1,1,0)|0,(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0):0)Xg((c[(T&p)+16>>2]|0)+40|0,31184,-1,1,0)|0;m=c[(W&p)+436>>2]|0;if(!m)break a;else l=0;while(1){G=c[(m&p)+8>>2]|0;wh(T,25,l,1,0)|0;G=c[(G&p)>>2]|0;xh(T,wh(T,97,0,2,0)|0,G,0);wh(T,35,1,2,0)|0;m=c[(m&p)>>2]|0;if(!m)break;else l=l+1|0}break}case 13:{if(!U)break a;k=_h(W,U,L)|0;if(!k)break a;g=Oq(f)|0;q=c[(k&p)+16>>2]|0;if(!q)break a;iq(g,8);c[(S&p)>>2]=8;Ar(f,Q);do if((((a[((c[(g&p)>>2]|0)&n)+65>>0]|0)==0?(Xg(c[(g&p)+16>>2]|0,31360,-1,1,0)|0,(a[((c[(g&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(g&p)+16>>2]|0)+40|0,31288,-1,1,0)|0,(a[((c[(g&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(g&p)+16>>2]|0)+80|0,31232,-1,1,0)|0,(a[((c[(g&p)>>2]|0)&n)+65>>0]|0)==0):0){Xg((c[(g&p)+16>>2]|0)+120|0,31368,-1,1,0)|0;if(a[((c[(g&p)>>2]|0)&n)+65>>0]|0)break;Xg((c[(g&p)+16>>2]|0)+160|0,31376,-1,1,0)|0;if(a[((c[(g&p)>>2]|0)&n)+65>>0]|0)break;Xg((c[(g&p)+16>>2]|0)+200|0,31384,-1,1,0)|0;if(a[((c[(g&p)>>2]|0)&n)+65>>0]|0)break;Xg((c[(g&p)+16>>2]|0)+240|0,31400,-1,1,0)|0;if(a[((c[(g&p)>>2]|0)&n)+65>>0]|0)break;Xg((c[(g&p)+16>>2]|0)+280|0,31416,-1,1,0)|0}while(0);v=k+4|0;w=0;while(1){k=q+20|0;if((c[(k&p)>>2]|0)>0){m=q+25|0;l=q+26|0;t=q+8|0;h=0;do{u=c[(q+(h<<3)&p)+40>>2]|0;s=d[(m&n)>>0]|0;if((s|0)==8)r=32072;else if((s|0)==9)r=32088;else if((s|0)==6)r=32096;else if((s|0)==7)r=32056;else r=32112;s=d[(l&n)>>0]|0;if((s|0)==8)s=32072;else if((s|0)==9)s=32088;else if((s|0)==6)s=32096;else if((s|0)==7)s=32056;else s=32112;wh(g,25,w,1,0)|0;wh(g,25,h,2,0)|0;G=c[(t&p)>>2]|0;xh(g,wh(g,97,0,3,0)|0,G,0);G=c[((c[(v&p)>>2]|0)+((c[(q+(h<<3)&p)+36>>2]|0)*24|0)&p)>>2]|0;xh(g,wh(g,97,0,4,0)|0,G,0);xh(g,wh(g,(u|0)!=0?97:28,0,5,0)|0,u,0);xh(g,wh(g,97,0,6,0)|0,s,0);xh(g,wh(g,97,0,7,0)|0,r,0);xh(g,wh(g,97,0,8,0)|0,31424,0);wh(g,35,1,8,0)|0;h=h+1|0}while((h|0)<(c[(k&p)>>2]|0))}q=c[(q&p)+4>>2]|0;if(!q)break;else w=w+1|0}break}case 11:{if(!U){if(Gn(f)|0)break a;iq(T,1);if(!(a[((c[(T&p)>>2]|0)&n)+65>>0]|0))Xg(c[(T&p)+16>>2]|0,31784,-1,1,0)|0;wh(T,97,0,1,0)|0;xh(T,-1,c[(d[((c[(f&p)>>2]|0)&n)+62>>0]<<3&p)+31632>>2]|0,-2);wh(T,35,1,1,0)|0;break a}k=c[((c[(R&p)>>2]|0)&p)+12>>2]|0;if((b[(k&o)+78>>1]&5)==1)break a;else{m=31632;l=31704}do{if(!(dd(U,l)|0)){v=m;P=415;break}m=m+8|0;l=c[(m&p)>>2]|0}while((l|0)!=0);if((P|0)==415?(F=a[(v&n)+4>>0]|0,F=F<<24>>24==0?2:F,a[(W&n)+62>>0]=F,a[(k&n)+77>>0]=F,(c[(v&p)>>2]|0)!=0):0)break a;c[(G&p)>>2]=U;th(f,31800,G);break a}case 0:{s=c[((w*12|0)&p)+30128>>2]|0;F=T+96|0;c[(F&p)>>2]=c[(F&p)>>2]|1<>2]|0)>>>0>m>>>0)c[((c[(T&p)+4>>2]|0)+(m*20|0)&p)+4>>2]=Q;l=m+1|0;c[(G&p)>>2]=0;Dn(U,G)|0;k=c[(k&p)>>2]|0;if(k>>>0>l>>>0)c[((c[(T&p)+4>>2]|0)+(l*20|0)&p)+4>>2]=c[(G&p)>>2];m=m+2|0;if(k>>>0<=m>>>0)break a;c[((c[(T&p)+4>>2]|0)+(m*20|0)&p)+4>>2]=Q;c[((c[(T&p)+4>>2]|0)+(m*20|0)&p)+8>>2]=s;break a}m=yh(T,3,31848)|0;k=c[(T&p)+32>>2]|0;if(k>>>0>m>>>0)c[((c[(T&p)+4>>2]|0)+(m*20|0)&p)+4>>2]=Q;m=m+1|0;if(k>>>0>m>>>0){c[((c[(T&p)+4>>2]|0)+(m*20|0)&p)+4>>2]=Q;c[((c[(T&p)+4>>2]|0)+(m*20|0)&p)+12>>2]=s}iq(T,1);if(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)break a;Xg(c[(T&p)+16>>2]|0,V,-1,1,-1)|0;break a}case 7:{iq(T,1);c[(S&p)>>2]=1;if(!(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)){Xg(c[(T&p)+16>>2]|0,31864,-1,1,0)|0;l=0}else l=0;do{G=c[(l<<2&p)+8648>>2]|0;l=l+1|0;xh(T,wh(T,97,0,1,0)|0,G,0);wh(T,35,1,1,0)|0}while((l|0)!=4);break}case 35:{m=(c[(h&p)>>2]|0)!=0?Q:10;if(U)if(dd(U,31880)|0)if(!(dd(U,31888)|0))l=2;else{l=(dd(U,31896)|0)==0;l=l?3:0}else l=1;else l=0;iq(T,3);c[(S&p)>>2]=3;if(((a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0?(Xg(c[(T&p)+16>>2]|0,31912,-1,1,0)|0,(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(T&p)+16>>2]|0)+40|0,31920,-1,1,0)|0,(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0):0)Xg((c[(T&p)+16>>2]|0)+80|0,31928,-1,1,0)|0;wh(T,11,m,l,1)|0;wh(T,35,1,3,0)|0;break a}case 26:{of(W)|0;break a}case 34:{if(!U)l=c[(W&p)+216>>2]|0;else{c[(G&p)>>2]=0;Dn(U,G)|0;l=c[(G&p)>>2]|0;if((l|0)>0)m=21;else{l=0;m=0}c[(W&p)+216>>2]=m;c[(W&p)+220>>2]=l;l=m}if((l|0)==21){l=c[(W&p)+220>>2]|0;m=l;l=((l|0)<0)<<31>>31}else{m=0;l=0}Jt(f,31944,m,l);break a}case 27:{if((U|0)!=0?(ji(U,x)|0)==0:0){G=x;Pc(c[(G&p)>>2]|0,c[(G&p)+4>>2]|0)|0}F=(Lc()|0)==0;G=9032;Jt(f,31976,F?c[(G&p)>>2]|0:-1,F?c[(G&p)+4>>2]|0:-1);break a}case 33:{if((U|0)!=0?(E=(ji(U,s)|0)==0,G=s,F=c[(G&p)+4>>2]|0,E&((F|0)>-1|(F|0)==-1&(c[(G&p)>>2]|0)>>>0>4294967295)):0)c[(W&p)+132>>2]=0;G=c[(W&p)+132>>2]|0;Jt(f,31992,G,((G|0)<0)<<31>>31);break a}case 12:{g=c[(S&p)>>2]|0;H=g+1|0;I=g+5|0;J=g+6|0;c[(S&p)>>2]=J;K=Oq(f)|0;iq(K,4);if((((a[((c[(K&p)>>2]|0)&n)+65>>0]|0)==0?(Xg(c[(K&p)+16>>2]|0,31232,-1,1,0)|0,(a[((c[(K&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(K&p)+16>>2]|0)+40|0,20456,-1,1,0)|0,(a[((c[(K&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(K&p)+16>>2]|0)+80|0,31432,-1,1,0)|0,(a[((c[(K&p)>>2]|0)&n)+65>>0]|0)==0):0)Xg((c[(K&p)+16>>2]|0)+120|0,31440,-1,1,0)|0;Ar(f,Q);w=c[((c[((c[(R&p)>>2]|0)+(Q<<4)&p)+12>>2]|0)&p)+16>>2]|0;if(!w)break a;u=(U|0)==0;h=f+68|0;v=K+32|0;D=K+4|0;E=K+24|0;F=g+2|0;G=g+3|0;A=g+4|0;t=f+8|0;while(1){if(u){B=c[(w&p)>>2]|0;C=c[(w&p)+8>>2]|0}else{B=0;C=sh(f,0,U,L)|0}if((C|0)!=0?(M=C+16|0,(c[(M&p)>>2]|0)!=0):0){gs(f,Q,c[(C&p)+32>>2]|0,0,c[(C&p)>>2]|0);g=(b[(C&o)+38>>1]|0)+J|0;if((g|0)>(c[(S&p)>>2]|0))c[(S&p)>>2]=g;Qq(f,0,Q,C,54);w=c[(C&p)>>2]|0;xh(K,wh(K,97,0,H,0)|0,w,0);w=c[(M&p)>>2]|0;if(!w)g=1;else{g=1;do{l=_h(W,c[(w&p)+8>>2]|0,L)|0;do if(l){c[(O&p)>>2]=0;gs(f,Q,c[(l&p)+32>>2]|0,0,c[(l&p)>>2]|0);if(Mt(f,l,w,O,0)|0)break a;m=c[(O&p)>>2]|0;if(!m){Qq(f,g,Q,l,54);break}else{wh(K,54,g,c[(m&p)+40>>2]|0,Q)|0;z=c[(t&p)>>2]|0;xh(z,-1,hs(f,m)|0,-6);break}}while(0);g=g+1|0;w=c[(w&p)+4>>2]|0}while((w|0)!=0)}if((c[(h&p)>>2]|0)<(g|0))c[(h&p)>>2]=g;s=wh(K,108,0,0,0)|0;g=c[(M&p)>>2]|0;if(g){z=C+36|0;y=1;while(1){x=g+8|0;w=_h(W,c[(x&p)>>2]|0,L)|0;c[(O&p)>>2]=0;c[(N&p)>>2]=0;r=(w|0)!=0;do if(r){Mt(f,w,g,O,N)|0;l=c[(O&p)>>2]|0;m=xs(K)|0;if(!(r&(l|0)==0)){w=m;P=306;break}w=c[(g&p)+36>>2]|0;if((w|0)==(b[(z&o)>>1]|0))wh(K,103,0,J,0)|0;else{wh(K,47,0,w,J)|0;Nt(K,C,w,J);wh(K,76,J,m,0)|0;wh(K,38,J,(c[(v&p)>>2]|0)+3|0,0)|0}wh(K,70,y,0,J)|0;wh(K,16,0,m,0)|0;w=c[(v&p)>>2]|0;if(w>>>0>1)c[((c[(D&p)>>2]|0)+((w+-2|0)*20|0)&p)+8>>2]=w;c[((c[(E&p)>>2]|0)&p)+88>>2]=w+-1;w=m}else{w=xs(K)|0;l=0;P=306}while(0);do if((P|0)==306){P=0;q=g+20|0;m=c[(q&p)>>2]|0;if((m|0)>0){k=0;do{m=c[(N&p)>>2]|0;if(!m)m=g+(k<<3)+36|0;else m=m+(k<<2)|0;R=k+J|0;nt(K,C,0,c[(m&p)>>2]|0,R);wh(K,76,R,w,0)|0;k=k+1|0;m=c[(q&p)>>2]|0}while((k|0)<(m|0))}if(!r)break;k=ot(K,l)|0;l=c[(q&p)>>2]|0;xh(K,wh(K,49,J,m,I)|0,k,l);xh(K,wh(K,69,y,w,I)|0,0,-14)}while(0);wh(K,103,0,F,0)|0;l=c[(x&p)>>2]|0;xh(K,wh(K,97,0,G,0)|0,l,0);wh(K,25,y+-1|0,A,0)|0;wh(K,35,H,4,0)|0;l=c[(E&p)>>2]|0;m=~w;do if((w|0)<0){w=c[(l&p)+112>>2]|0;if(!w)break;c[(w+(m<<2)&p)>>2]=c[(v&p)>>2]}while(0);c[(l&p)+88>>2]=(c[(v&p)>>2]|0)+-1;mg(W,c[(N&p)>>2]|0);g=c[(g&p)+4>>2]|0;if(!g)break;else y=y+1|0}}wh(K,9,0,s+1|0,0)|0;g=c[(v&p)>>2]|0;if(g>>>0>s>>>0)c[((c[(D&p)>>2]|0)+(s*20|0)&p)+8>>2]=g;c[((c[(E&p)>>2]|0)&p)+88>>2]=g+-1}if(!B)break;else w=B}break}case 23:{Jt(f,31016,0,0);break a}case 31:{if(!U){Jt(f,31032,d[(W&n)+64>>0]|0,0);break a}l=a[(U&n)>>0]|0;if((l+-48&255)>=3)if(!(dd(U,31352)|0))l=1;else{l=(dd(U,15168)|0)==0;l=l?2:0}else l=(l<<24>>24)+-48|0;m=(c[(f&p)>>2]|0)+64|0;if((d[(m&n)>>0]|0)==(l|0))break a;if(Kt(f)|0)break a;a[(m&n)>>0]=l;break a}case 29:{if(!U){G=(d[(C+(Q<<4)&n)+8>>0]|0)+-1|0;Jt(f,31104,G,((G|0)<0)<<31>>31);break a}if(!(a[(W&n)+63>>0]|0)){th(f,31120,G);break a}else{a[(C+(Q<<4)&n)+8>>0]=((ii(U,0,1)|0)&255)+1;Lt(W);break a}}case 4:if(!U){G=c[((c[(C+(Q<<4)&p)+12>>2]|0)&p)+80>>2]|0;Jt(f,30848,G,((G|0)<0)<<31>>31);break a}else{c[(G&p)>>2]=0;Dn(U,G)|0;G=c[(G&p)>>2]|0;c[((c[(C+(Q<<4)&p)+12>>2]|0)&p)+80>>2]=G;pq(c[(C+(Q<<4)&p)+4>>2]|0,G);break a}default:{if(!U)l=c[(W&p)+492>>2]|0;else{c[(G&p)>>2]=0;Dn(U,G)|0;l=c[(G&p)>>2]|0;G=(l|0)>0;l=G?l:0;c[(W&p)+444>>2]=G?74:0;c[(W&p)+448>>2]=G?W:0;c[(r&p)>>2]=0;c[(W&p)+492>>2]=l}Jt(f,31968,l,((l|0)<0)<<31>>31);break a}}while(0)}else{k=c[(q&p)>>2]|0;if(k){c[(G&p)>>2]=k;th(f,10344,G);Wc(c[(q&p)>>2]|0)}G=f+64|0;c[(G&p)>>2]=(c[(G&p)>>2]|0)+1;c[(f&p)+12>>2]=g;break}}while(0);mg(W,V);mg(W,U)}}while(0);i=X;return}function Gr(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0;h=i;i=i+16|0;if((i|0)>=(j|0))fa();g=h;a:do if(!d)d=0;else{f=d;while(1){if((a[(f&n)>>0]|0)==-121){d=c[(b&p)>>2]|0;if(!(a[((c[(d&p)>>2]|0)&n)+145>>0]|0))break;a[(f&n)>>0]=101}d=c[(f&p)+4>>2]|0;if(d&16384){d=0;break a}e=f+20|0;if(!(d&2048)){if(Hr(b,c[(e&p)>>2]|0)|0){d=1;break a}}else if(fr(b,c[(e&p)>>2]|0)|0){d=1;break a}if(Gr(b,c[(f&p)+16>>2]|0)|0){d=1;break a}f=c[(f&p)+12>>2]|0;if(!f){d=0;break a}}c[(g&p)>>2]=c[(b&p)+16>>2];th(d,29984,g);d=1}while(0);i=h;return d|0}function Hr(a,b){a=a|0;b=b|0;var d=0,e=0;a:do if((b|0)!=0?(c[(b&p)>>2]|0)>0:0){d=0;e=c[(b&p)+4>>2]|0;while(1){if(Gr(a,c[(e&p)>>2]|0)|0){d=1;break a}d=d+1|0;if((d|0)>=(c[(b&p)>>2]|0)){d=0;break}else e=e+20|0}}else d=0;while(0);return d|0}function Ir(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;xh(a,wh(a,122,b,0,0)|0,d,-1);d=c[((c[(a&p)>>2]|0)&p)+20>>2]|0;if((d|0)>0){e=a+96|0;b=c[(e&p)>>2]|0;a=0;do{b=b|1<>2]=b}return}function Jr(a,d){a=a|0;d=d|0;var e=0,f=0;e=d+8|0;f=Ur(a,0,e)|0;d=d+24|0;kg(c[(a&p)>>2]|0,c[(d&p)>>2]|0);c[(d&p)>>2]=f;if(f){d=f+40|0;b[(d&o)>>1]=(b[(d&o)>>1]|0)+1<<16>>16}e=(Rt(a,e)|0)==0;return (e?f:0)|0}function Kr(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0;n=i;i=i+16|0;if((i|0)>=(j|0))fa();m=n;a:do if((b|0)!=0?(f=c[(a&p)+12>>2]|0,(c[(b&p)>>2]|0)>0):0){g=a+8|0;h=a+4|0;k=0;l=b+8|0;while(1){if(!(c[(g&p)>>2]|0)){e=l+4|0;d=c[(e&p)>>2]|0;if((d|0)!=0?(dd(d,f)|0)!=0:0)break;mg(c[(c[(a&p)>>2]&p)>>2]|0,d);c[(e&p)>>2]=0;c[(l&p)>>2]=c[(h&p)>>2]}if(fr(a,c[(l&p)+20>>2]|0)|0){d=1;break a}if(Gr(a,c[(l&p)+44>>2]|0)|0){d=1;break a}k=k+1|0;if((k|0)>=(c[(b&p)>>2]|0)){d=0;break a}else l=l+72|0}b=c[(a&p)>>2]|0;l=c[(a&p)+20>>2]|0;c[(m&p)>>2]=c[(a&p)+16>>2];c[(m&p)+4>>2]=l;c[(m&p)+8>>2]=d;th(b,29936,m);d=1}else d=0;while(0);i=n;return d|0}function Lr(b,d){b=b|0;d=d|0;var e=0,f=0,g=0;f=i;i=i+16|0;if((i|0)>=(j|0))fa();e=f;g=c[(b&p)>>2]|0;if((((a[(g&n)+145>>0]|0)==0?(a[(b&n)+18>>0]|0)==0:0)?(c[(g&p)+24>>2]&2048|0)==0:0)?(Fc(d,25568,7)|0)==0:0){c[(e&p)>>2]=d;th(b,28440,e);b=1}else b=0;i=f;return b|0}function Mr(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,o=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0;x=i;i=i+16|0;if((i|0)>=(j|0))fa();w=x;do if(d){t=e&1;v=(f|0)!=0;if(v){g=c[(f&p)>>2]|0;r=32768}else{g=St(d,e)|0;g=mh(b,g,((g|0)<0)<<31>>31)|0;r=0}c[(w&p)>>2]=g;if(g){l=(t|0)==0;if(!l)if(!(c[(d&p)+12>>2]|0))q=(c[(d&p)+20>>2]|0)==0?16396:8220;else q=8220;else q=48;s=q&60;u=d+4|0;m=c[(u&p)>>2]|0;if((m&1024|0)==0?(h=c[(d&p)+8>>2]|0,(h|0)!=0):0){k=h;while(1)if(!(a[(k&n)>>0]|0))break;else k=k+1|0;o=(k-h&1073741823)+1|0}else o=0;if(l){if(!(m&16384))k=(m&8192|0)==0?48:28;else k=12;kw(g|0,d|0,k|0)|0;fw(g+k|0,0,48-k|0)|0}else kw(g|0,d|0,s|0)|0;m=g+4|0;h=q&24576|r|c[(m&p)>>2]&-122881;c[(m&p)>>2]=h;if(o){h=g+s|0;c[(g&p)+8>>2]=h;kw(h|0,c[(d&p)+8>>2]|0,o|0)|0;h=c[(m&p)>>2]|0}k=c[(u&p)>>2]|0;do if(!((h|k)&16384)){h=d+20|0;if(!(k&2048)){c[(g&p)+20>>2]=Pr(b,c[(h&p)>>2]|0,t)|0;break}else{c[(g&p)+20>>2]=gr(b,c[(h&p)>>2]|0,t)|0;break}}while(0);h=c[(m&p)>>2]|0;if(!(h&24576)){if(c[(u&p)>>2]&16384)break;c[(g&p)+12>>2]=Mr(b,c[(d&p)+12>>2]|0,0,0)|0;c[(g&p)+16>>2]=Mr(b,c[(d&p)+16>>2]|0,0,0)|0;break}t=Tt(d,e)|0;c[(w&p)>>2]=(c[(w&p)>>2]|0)+t;if(h&8192){c[(g&p)+12>>2]=Mr(b,c[(d&p)+12>>2]|0,1,w)|0;c[(g&p)+16>>2]=Mr(b,c[(d&p)+16>>2]|0,1,w)|0}if(v)c[(f&p)>>2]=c[(w&p)>>2]}}else g=0;while(0);i=x;return g|0}function Nr(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;a:do if((b|0)!=0?(d=mh(a,8,0)|0,(d|0)!=0):0){g=b+4|0;c[(d&p)+4>>2]=c[(g&p)>>2];e=mh(a,c[(g&p)>>2]<<3,0)|0;c[(d&p)>>2]=e;if(!e){mg(a,d);d=0;break}if((c[(g&p)>>2]|0)>0){f=0;while(1){h=c[(b&p)>>2]|0;c[(e+(f<<3)&p)>>2]=kh(a,c[(h+(f<<3)&p)>>2]|0)|0;c[(e+(f<<3)&p)+4>>2]=c[(h+(f<<3)&p)+4>>2];f=f+1|0;if((f|0)>=(c[(g&p)>>2]|0))break a;e=c[(d&p)>>2]|0}}}else d=0;while(0);return d|0}function Or(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0;f=e+4|0;g=(c[(f&p)>>2]|0)+40|0;b=mh(b,g,0)|0;if(b){fw(b|0,0,g|0)|0;g=b+40|0;kw(g|0,c[(e&p)>>2]|0,c[(f&p)>>2]|0)|0;c[(b&p)+12>>2]=g;c[(b&p)+16>>2]=c[(f&p)>>2];a[(b&n)>>0]=d}return b|0}function Pr(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0;do if((d|0)!=0?(f=mh(b,8,0)|0,(f|0)!=0):0){g=c[(d&p)>>2]|0;c[(f&p)>>2]=g;if(!(e&1)){h=c[(d&p)>>2]|0;g=1;while(1)if((g|0)<(h|0))g=g<<1;else break}g=mh(b,g*20|0,0)|0;c[(f&p)+4>>2]=g;if(!g){mg(b,f);f=0;break}if((c[(d&p)>>2]|0)>0){i=0;h=c[(d&p)+4>>2]|0;while(1){c[(g&p)>>2]=Mr(b,c[(h&p)>>2]|0,e,0)|0;c[(g&p)+4>>2]=kh(b,c[(h&p)+4>>2]|0)|0;c[(g&p)+8>>2]=kh(b,c[(h&p)+8>>2]|0)|0;a[(g&n)+12>>0]=a[(h&n)+12>>0]|0;j=g+13|0;k=a[(j&n)>>0]|0;a[(j&n)>>0]=k&-2;a[(j&n)>>0]=a[(h&n)+13>>0]&2|k&-4;c[(g&p)+16>>2]=c[(h&p)+16>>2];i=i+1|0;if((i|0)>=(c[(d&p)>>2]|0))break;else{g=g+20|0;h=h+20|0}}}}else f=0;while(0);return f|0}function Qr(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0;o=i;i=i+16|0;if((i|0)>=(j|0))fa();k=o;l=c[(a&p)>>2]|0;f=c[(b&p)+20>>2]|0;a:do if(f){e=c[(l&p)+20>>2]|0;if((e|0)>0){d=c[(l&p)+16>>2]|0;h=0;while(1){g=h+1|0;if((c[(d+(h<<4)&p)+12>>2]|0)==(f|0)){g=h;break a}if((g|0)<(e|0))h=g;else break}}else g=0}else g=-1e6;while(0);d=bn((c[(b&p)+24>>2]|0)+8|0,c[(b&p)+4>>2]|0,k)|0;if(!d)f=0;else f=c[(d&p)+8>>2]|0;d=c[((c[(l&p)+16>>2]|0)+(g<<4)&p)>>2]|0;e=(g|0)==1;if((((Sq(a,e?14:16,c[(b&p)>>2]|0,c[(f&p)>>2]|0,d)|0)==0?(Sq(a,9,e?13184:13208,0,d)|0)==0:0)?(m=Oq(a)|0,(m|0)!=0):0)?(n=c[(a&p)+408>>2]|0,Ar(a,g),n=((n|0)==0?a:n)+328|0,c[(n&p)>>2]=c[(n&p)>>2]|1<>2]|0,0),xh(m,n+4|0,10720,-2),Dr(a,g),wh(m,61,0,0,0)|0,n=c[(b&p)>>2]|0,xh(m,wh(m,126,g,0,0)|0,n,0),n=a+72|0,(c[(n&p)>>2]|0)<3):0)c[(n&p)>>2]=3;i=o;return}function Rr(d,e,f,g,h,k,l){d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;var m=0,q=0,r=0,s=0,t=0,u=0,v=0;v=i;i=i+32|0;if((i|0)>=(j|0))fa();m=v;t=c[(d&p)>>2]|0;c[(m&p)>>2]=0;c[(m&p)+4>>2]=0;c[(m&p)+8>>2]=0;c[(m&p)+12>>2]=0;c[(m&p)+16>>2]=0;c[(m&p)+20>>2]=0;c[(m&p)+24>>2]=0;c[(m&p)+28>>2]=0;c[(m&p)>>2]=d;do if(h)if((a[(h&n)>>0]|0)!=27)if(!(ls(m,h)|0)){u=5;break}else{u=13;break}else{a[(h&n)>>0]=97;u=5;break}else u=5;while(0);a:do if((u|0)==5){do if(k)if((a[(k&n)>>0]|0)!=27)if(!(ls(m,k)|0))break;else{u=13;break a}else{a[(k&n)>>0]=97;break}while(0);do if(l)if((a[(l&n)>>0]|0)!=27)if(!(ls(m,l)|0))break;else{u=13;break a}else{a[(l&n)>>0]=97;break}while(0);if(g){if((a[(g&n)>>0]|0)==97)g=c[(g&p)+8>>2]|0;else g=0;if(Sq(d,e,g,0,0)|0)break}s=Oq(d)|0;m=d+60|0;g=c[(m&p)>>2]|0;q=d+56|0;r=c[(q&p)>>2]|0;if((r|0)<4){r=d+72|0;g=c[(r&p)>>2]|0;c[(r&p)>>2]=g+4;g=g+1|0}else{c[(m&p)>>2]=g+4;c[(q&p)>>2]=r+-4}Rq(d,h,g);Rq(d,k,g+1|0);Rq(d,l,g+2|0);if(s){g=g+3|0;wh(s,1,0,g-(b[(f&o)>>1]|0)|0,g)|0;g=c[(s&p)+4>>2]|0;if(g)a[(g+(((c[(s&p)+32>>2]|0)+-1|0)*20|0)&n)+3>>0]=b[(f&o)>>1];xh(s,-1,f,-5);wh(s,144,(e|0)==24&1,0,0)|0}}while(0);if((u|0)==13){f=d+64|0;c[(f&p)>>2]=(c[(f&p)>>2]|0)+1}Gk(t,h);Gk(t,k);Gk(t,l);i=v;return}function Sr(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0;m=i;i=i+16|0;if((i|0)>=(j|0))fa();l=m;g=m+4|0;h=c[(b&p)>>2]|0;a:do if(!(Gn(b)|0)){if(!d){Ut(b,0);break}if(!((e|0)!=0?(c[(e&p)>>2]|0)!=0:0))f=6;do if((f|0)==6){f=Wq(c[(b&p)>>2]|0,d)|0;if(!f)break a;if(!(Yn(h,a[(h&n)+62>>0]|0,f,0)|0)){mg(h,f);break}else{Ut(b,f);mg(h,f);break a}}while(0);d=er(b,d,e,g)|0;if((d|0)>=0?(k=Wq(h,c[(g&p)>>2]|0)|0,(k|0)!=0):0){e=c[((c[(h&p)+16>>2]|0)+(d<<4)&p)>>2]|0;f=_h(h,k,e)|0;if(f){Vt(b,f,0);mg(h,k);break}e=bq(h,k,e)|0;mg(h,k);if(!e){th(b,28872,l);break}else{f=c[(b&p)+408>>2]|0;Ar(b,d);f=((f|0)==0?b:f)+328|0;c[(f&p)>>2]=c[(f&p)>>2]|1<=(j|0))fa();f=h;g=c[(a&p)>>2]|0;if(!(Gn(a)|0)){do if(!b){b=g+20|0;e=c[(b&p)>>2]|0;if((e|0)>0){d=0;do{if((d|0)!=1){Wt(a,d);e=c[(b&p)>>2]|0}d=d+1|0}while((d|0)<(e|0))}}else{if(c[(d&p)+4>>2]|0){e=er(a,b,d,f)|0;if((e|0)<=-1)break;e=c[((c[(g&p)+16>>2]|0)+(e<<4)&p)>>2]|0;b=Wq(g,c[(f&p)>>2]|0)|0;if(!b)break;d=bq(g,b,e)|0;if(!d){e=sh(a,0,b,e)|0;if(e)Xt(a,e,0)}else Xt(a,c[(d&p)+12>>2]|0,d);mg(g,b);break}d=Wq(g,b)|0;e=Vh(g,d)|0;mg(g,d);if((e|0)>-1){Wt(a,e);break}d=Wq(g,b)|0;if(d){e=bq(g,d,0)|0;if(!e){e=sh(a,0,d,0)|0;if(e)Xt(a,e,0)}else Xt(a,c[(e&p)+12>>2]|0,e);mg(g,d)}}while(0);e=Oq(a)|0;if(e)wh(e,144,0,0,0)|0}i=h;return}function Ur(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,i=0;f=c[(d&p)>>2]|0;if(!f)e=d+4|0;else{i=c[(a&p)>>2]|0;g=c[(i&p)+20>>2]|0;i=c[(i&p)+16>>2]|0;a:do if((g|0)>0){h=0;while(1){e=h+1|0;if((c[(i+(h<<4)&p)+12>>2]|0)==(f|0)){e=h;break a}if((e|0)<(g|0))h=e;else break}}else e=0;while(0);e=i+(e<<4)|0}return sh(a,b,c[(d&p)+8>>2]|0,c[(e&p)>>2]|0)|0}function Vr(b,d){b=b|0;d=d|0;var e=0,f=0,g=0;g=i;i=i+16|0;if((i|0)>=(j|0))fa();f=g;if(d){e=d;while(1)if(!(a[(e&n)>>0]|0))break;else e=e+1|0;if((e-d&1073741823)>>>0>6?(Fc(d,25568,7)|0)==0:0){c[(f&p)>>2]=d;th(b,25576,f);e=1}else e=0}else e=0;i=g;return e|0}function Wr(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;f=i;i=i+16|0;if((i|0)>=(j|0))fa();e=f;if(!b){c[(e&p)>>2]=d;a=uh(a,25992,e)|0}else{c[(e&p)>>2]=b;c[(e&p)+4>>2]=d;e=uh(a,26e3,e)|0;mg(a,b);a=e}i=f;return a|0}function Xr(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;h=i;i=i+16|0;if((i|0)>=(j|0))fa();g=h;e=c[(a&p)>>2]|0;f=c[((c[(e&p)+16>>2]|0)&p)+28>>2]|0;if((c[(b&p)+68>>2]|0)!=(f|0)?(d=As(a,b)|0,(d|0)!=0):0){b=d;d=0;do{if((c[(b&p)+20>>2]|0)==(f|0))d=Wr(e,d,c[(b&p)>>2]|0)|0;b=c[(b&p)+32>>2]|0}while((b|0)!=0);if(d){b=c[(a&p)>>2]|0;c[(g&p)>>2]=d;b=uh(b,25968,g)|0;mg(c[(a&p)>>2]|0,d);d=b}else d=0}else d=0;i=h;return d|0}function Yr(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,q=0,r=0;r=i;i=i+16|0;if((i|0)>=(j|0))fa();n=r;o=Oq(a)|0;if(o){e=c[(a&p)>>2]|0;h=c[(b&p)+68>>2]|0;a:do if(h){k=c[(e&p)+20>>2]|0;if((k|0)>0){f=c[(e&p)+16>>2]|0;g=0;while(1){e=g+1|0;if((c[(f+(g<<4)&p)+12>>2]|0)==(h|0))break a;if((e|0)<(k|0))g=e;else{g=e;break}}}else g=0}else g=-1e6;while(0);e=As(a,b)|0;if(e)do{f=c[(a&p)>>2]|0;l=c[(e&p)+20>>2]|0;b:do if(l){m=c[(f&p)+20>>2]|0;if((m|0)>0){k=c[(f&p)+16>>2]|0;h=0;while(1){f=h+1|0;if((c[(k+(h<<4)&p)+12>>2]|0)==(l|0)){f=h;break b}if((f|0)<(m|0))h=f;else break}}else f=0}else f=-1e6;while(0);m=c[(e&p)>>2]|0;xh(o,wh(o,126,f,0,0)|0,m,0);e=c[(e&p)+32>>2]|0}while((e|0)!=0);e=c[(b&p)>>2]|0;xh(o,wh(o,124,g,0,0)|0,e,0);e=c[(a&p)>>2]|0;c[(n&p)>>2]=d;e=uh(e,25952,n)|0;if((e|0)!=0?(Ir(o,g,e),q=Xr(a,b)|0,(q|0)!=0):0)Ir(o,1,q)}i=r;return} function gh(f){f=f|0;var g=0,l=0,m=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,E=0,F=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ea=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,cc=0,dc=0,ec=0,fc=0,gc=0,hc=0,ic=0,kc=0,nc=0,oc=0,qc=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,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,Xc=0,Yc=0,Zc=0,_c=0,$c=0,ad=0,ed=0,fd=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,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,ee=0,fe=0,ge=0,he=0,ie=0,je=0,ke=0,le=0,me=0,ne=0,oe=0,pe=0,qe=0;oe=i;i=i+1040|0;if((i|0)>=(j|0))fa();ke=oe+400|0;Tc=oe+792|0;id=oe+392|0;ad=oe+788|0;Sd=oe+320|0;md=oe+784|0;pd=oe+780|0;qd=oe+280|0;Nd=oe+680|0;$c=oe+240|0;Qd=oe+200|0;_c=oe+676|0;Xc=oe+672|0;Od=oe+160|0;Uc=oe+644|0;td=oe+152|0;Jd=oe+112|0;kd=oe+640|0;Ld=oe+636|0;Yc=oe+632|0;ud=oe+628|0;Ad=oe+624|0;wd=oe+604|0;Bd=oe+600|0;od=oe+596|0;xd=oe+576|0;Sc=oe+840|0;Cd=oe+572|0;Pd=oe+104|0;Dd=oe+568|0;ed=oe+564|0;fd=oe+96|0;Rd=oe+88|0;Ed=oe+560|0;Fd=oe+556|0;Gd=oe+552|0;yd=oe+532|0;zd=oe+512|0;jd=oe+508|0;vd=oe+504|0;Zc=oe+488|0;Md=oe+48|0;Vc=oe+456|0;Rc=oe+444|0;Kd=oe+8|0;sd=oe+440|0;Id=oe+412|0;Hd=oe;zc=f+4|0;s=c[(zc&p)>>2]|0;le=c[(f&p)>>2]|0;Jc=a[(le&n)+62>>0]|0;Nc=f+8|0;z=c[(Nc&p)>>2]|0;ne=le+32|0;l=ne;m=c[(l&p)>>2]|0;l=c[(l&p)+4>>2]|0;me=f+80|0;a:do if((c[(me&p)>>2]|0)==7){y=le+65|0;z=f+44|0;r=m;g=0;t=0;m=0;ie=1317}else{c[(me&p)>>2]=0;de=f+136|0;c[(de&p)>>2]=0;c[(de&p)+4>>2]=0;de=f+20|0;c[(de&p)>>2]=0;c[(le&p)+452>>2]=0;Cc=le+240|0;b:do if(!(c[(Cc&p)>>2]|0)){be=le+292|0;if(c[(be&p)>>2]|0){r=c[(f&p)+124>>2]|0;g=le+300|0;y=c[(g&p)>>2]|0;if(!r)yc=g;else{yc=g;y=(r>>>0)%(y>>>0)|0}}else{yc=le+300|0;y=0}he=f+76|0;ge=le+65|0;Zd=le+296|0;sb=f+176|0;tb=f+184|0;ub=f+92|0;vb=le+80|0;wb=le+84|0;xb=Jc&255;yb=Jc<<24>>24==1;zb=le+88|0;Ab=f+60|0;_d=f+144|0;fe=f+86|0;je=f+44|0;Bb=f+12|0;Cb=Uc+4|0;Db=Uc+16|0;Eb=Uc+12|0;Fb=Uc+25|0;Gb=Uc+20|0;Hb=f+200|0;Ib=f+56|0;$d=f+72|0;Jb=Jd+16|0;Kb=Jd+8|0;Lb=Jd+24|0;Mb=f+87|0;ae=le+156|0;Nb=le+500|0;Ob=le+496|0;ee=le+63|0;Pb=le+488|0;Qb=le+504|0;Rb=le+512|0;Sb=le+70|0;Tb=le+24|0;Ub=le+20|0;Xd=le+16|0;Vb=le+4|0;Yd=f+88|0;Wb=f+104|0;Xb=f+152|0;Yb=f+160|0;Zb=le+152|0;_b=le+64|0;$b=wd+4|0;cc=wd+6|0;dc=wd+8|0;ec=xd+4|0;fc=xd+8|0;gc=le+212|0;hc=le+208|0;ic=f+116|0;kc=yd+4|0;nc=yd+6|0;oc=yd+8|0;qc=$c+8|0;sc=$c+32|0;uc=$c+24|0;vc=$c+16|0;wc=$c+12|0;xc=zd+4|0;Y=zd+6|0;Z=zd+8|0;_=qd+8|0;$=qd+32|0;aa=qd+24|0;ea=qd+12|0;ga=qd+16|0;ha=le+164|0;ia=Zc+8|0;ja=Zc+4|0;ka=le+145|0;la=Zc+12|0;ma=Sd+4|0;na=Sd+12|0;oa=Sd+16|0;pa=Sd+20|0;qa=Sd+24|0;ra=Sd+28|0;sa=Sd+8|0;ta=Sd+40|0;ua=Sd+44|0;va=Sd+48|0;wa=Sd+52|0;xa=Sd+56|0;ya=Sd+60|0;za=Sd+64|0;Aa=Sd+65|0;Ba=le+128|0;Ca=f+28|0;Da=f+36|0;Ea=f+32|0;Fa=f+196|0;Ga=Vc+4|0;Ha=Vc+8|0;Ia=Md+8|0;Ja=Md+32|0;Ka=Md+24|0;La=Vc+20|0;Ma=Vc+12|0;Na=Vc+16|0;Oa=Vc+24|0;Pa=Rc+8|0;Qa=Rc+4|0;Ra=le+148|0;Sa=le+176|0;Ta=le+72|0;Ua=le+67|0;Va=Tc+20|0;Wa=Tc+24|0;Xa=Tc+4|0;Ya=Tc+16|0;Za=le+304|0;_a=le+328|0;$a=Kd+32|0;ab=Kd+8|0;bb=Kd+24|0;cb=le+308|0;db=Id+20|0;eb=le+69|0;ce=f+168|0;fb=qd+4|0;gb=qd+8|0;hb=qd+12|0;ib=qd+16|0;jb=qd+20|0;kb=qd+24|0;lb=qd+25|0;mb=le+180|0;nb=Od+32|0;ob=Od+8|0;pb=Od+12|0;qb=Od+16|0;rb=Od+24|0;W=0;X=0;g=0;u=0;t=c[(he&p)>>2]|0;x=0;c:while(1){r=m;d:while(1){if(a[(ge&n)>>0]|0){y=ge;z=je;m=x;ie=1317;break a}m=g+1|0;if(!(a[(s+(t*20|0)&n)+2>>0]&2))L=u;else{u=c[(s+(t*20|0)&p)+8>>2]|0;g=z+(u*40|0)|0;u=z+(u*40|0)+8|0;if(b[(u&o)>>1]&9312)vg(g);b[(u&o)>>1]=4;L=g}C=s+(t*20|0)|0;J=a[(C&n)>>0]|0;u=J&255;e:do switch(u|0){case 17:{g=m;m=r;u=L;ie=22;break d}case 18:{g=m;m=r;u=L;ie=23;break d}case 20:{g=m;m=r;ie=24;break d}case 21:{g=m;m=r;u=L;ie=25;break d}case 22:{g=m;m=r;u=L;ie=26;break d}case 23:{g=m;m=r;u=L;r=t;ie=27;break d}case 29:{g=m;m=r;r=t;ie=65;break d}case 30:{g=m;m=r;u=L;r=t;ie=66;break d}case 28:{g=m;m=r;u=L;r=t;ie=60;break d}case 32:{g=m;m=r;r=t;ie=72;break d}case 24:{g=m;m=r;u=L;r=t;ie=28;break d}case 25:{g=m;m=r;u=L;r=t;ie=44;break d}case 26:{g=m;m=r;u=L;r=t;ie=45;break d}case 133:{g=m;m=r;u=L;r=t;ie=46;break d}case 97:{a[(C&n)>>0]=27;C=s+(t*20|0)+16|0;v=c[(C&p)>>2]|0;if(!v)g=0;else{g=v;while(1)if(!(a[(g&n)>>0]|0))break;else g=g+1|0;g=g-v&1073741823}w=s+(t*20|0)+4|0;c[(w&p)>>2]=g;if(yb)u=0;else{u=Xg(L,v,-1,1,0)|0;if((u|0)==18){g=m;m=r;u=x;ie=1316;break c}if(Yl(L,xb)|0){y=ge;z=je;g=m;m=x;ie=1317;break a}c[(L&p)+24>>2]=0;g=L+8|0;b[(g&o)>>1]=e[(g&o)>>1]|2048;g=s+(t*20|0)+1|0;if((a[(g&n)>>0]|0)==-1)mg(le,c[(C&p)>>2]|0);a[(g&n)>>0]=-1;v=c[(L&p)+16>>2]|0;c[(C&p)>>2]=v;g=c[(L&p)+12>>2]|0;c[(w&p)>>2]=g}if((g|0)>(c[(zb&p)>>2]|0)){g=m;m=r;u=x;ie=1316;break c}else ie=57;break}case 31:{g=m;m=r;u=L;r=t;ie=67;break d}case 34:{g=m;m=r;r=t;ie=79;break d}case 35:{g=m;m=r;u=x;ie=80;break c}case 33:{g=m;m=r;ie=74;break d}case 94:{g=m;m=r;ie=94;break d}case 93:case 92:case 91:case 90:case 89:{g=m;P=C;m=r;r=t;ie=112;break d}case 27:{v=c[(s+(t*20|0)&p)+16>>2]|0;g=c[(s+(t*20|0)&p)+4>>2]|0;u=0;ie=57;break}case 16:{t=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;u=0;ie=19;break}case 36:{g=m;m=r;J=L;r=t;ie=166;break d}case 1:{V=a[(s+(t*20|0)&n)+3>>0]|0;C=V&255;A=c[(Bb&p)>>2]|0;g=z+((c[(s+(t*20|0)&p)+12>>2]|0)*40|0)|0;c[(Uc&p)>>2]=g;if(V<<24>>24){g=0;u=z+((c[(s+(t*20|0)&p)+8>>2]|0)*40|0)|0;while(1){c[(A+(g<<2)&p)>>2]=u;if((b[(u&o)+8>>1]&4096)!=0?(Vl(u)|0)!=0:0){y=ge;z=je;g=m;m=x;ie=1317;break a}g=g+1|0;if((g|0)>=(C|0))break;else u=u+40|0}g=c[(Uc&p)>>2]|0}V=c[(s+(t*20|0)&p)+16>>2]|0;c[(Cb&p)>>2]=V;c[(Db&p)>>2]=t;c[(Eb&p)>>2]=f;U=g+8|0;b[(U&o)>>1]=e[(U&o)>>1]&48640|1;a[(Fb&n)>>0]=0;U=ne;c[(U&p)>>2]=r;c[(U&p)+4>>2]=l;mc[c[(V&p)+12>>2]&63](Uc,C,A);l=ne;r=c[(l&p)>>2]|0;l=c[(l&p)+4>>2]|0;if(!(a[(Fb&n)>>0]|0))g=0;else{if(!(c[(Gb&p)>>2]|0))g=0;else{c[(ke&p)>>2]=Sg(c[(Uc&p)>>2]|0,1)|0;dh(je,le,10344,ke);g=c[(Gb&p)>>2]|0}em(f,t,c[(s+(t*20|0)&p)+4>>2]|0)}Yl(c[(Uc&p)>>2]|0,xb)|0;w=c[(Uc&p)>>2]|0;v=e[(w&o)+8>>1]|0;if(v&18){u=c[(w&p)+12>>2]|0;if(v&16384)u=(c[(w&p)>>2]|0)+u|0;if((u|0)>(c[((c[(w&p)+32>>2]|0)&p)+88>>2]|0)){g=m;m=r;u=x;ie=1316;break c}else{C=L;T=t;u=g}}else{C=L;T=t;u=g}break}case 88:case 87:case 86:case 85:{g=m;H=C;m=r;r=t;ie=184;break d}case 39:{g=m;m=r;J=L;r=t;ie=208;break d}case 37:{g=m;m=r;u=L;r=t;ie=202;break d}case 38:{g=m;m=r;J=L;r=t;ie=203;break d}case 83:case 80:case 81:case 82:case 78:case 79:{g=m;I=J;m=r;u=L;ie=213;break d}case 40:{V=c[(s+(t*20|0)&p)+4>>2]|0;g=z+(V*40|0)|0;if(!(b[(z+(V*40|0)&o)+8>>1]&16384))u=0;else u=Rg(g)|0;gm(g,c[(s+(t*20|0)&p)+8>>2]&255,Jc);C=L;T=t;break}case 41:{g=m;m=r;u=L;r=t;ie=248;break d}case 42:{g=m;m=r;u=L;r=t;ie=249;break d}case 43:{g=m;m=r;u=L;ie=256;break d}case 71:case 72:{g=m;m=r;r=t;ie=261;break d}case 76:{g=m;m=r;u=L;r=t;ie=286;break d}case 19:{g=m;m=r;r=t;ie=268;break d}case 96:{g=m;m=r;r=t;ie=273;break d}case 44:{g=m;m=r;u=L;r=t;ie=278;break d}case 46:case 45:{g=m;m=r;u=L;r=t;ie=281;break d}case 77:{g=m;m=r;u=L;r=t;ie=288;break d}case 47:{g=m;m=r;u=L;ie=290;break d}case 48:{g=m;m=r;u=L;r=t;ie=368;break d}case 49:{g=m;m=r;ie=371;break d}case 50:{E=c[(c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]&p)>>2]|0;f:do if(c[(E&p)+60>>2]|0){g=qm(E)|0;if(!g){K=E+76|0;H=E+44|0;F=E+72|0;v=0;u=0;g:while(1){C=b[(K&o)>>1]|0;J=c[(E+(C<<16>>16<<2)&p)+120>>2]|0;if(!(a[(J&n)+5>>0]|0)){if(!(a[(J&n)+2>>0]|0)){v=jw(e[(J&o)+18>>1]|0,0,v|0,u|0)|0;u=G}}else{v=jw(e[(J&o)+18>>1]|0,0,v|0,u|0)|0;u=G;while(1){if(!(C<<16>>16))break g;if(J){Bg(c[(J&p)+68>>2]|0);C=b[(K&o)>>1]|0}C=C+-1<<16>>16;b[(K&o)>>1]=C;b[(H&o)>>1]=0;a[(F&n)>>0]=d[(F&n)>>0]&249;J=C<<16>>16;A=E+(J<<1)+78|0;I=b[(A&o)>>1]|0;J=c[(E+(J<<2)&p)+120>>2]|0;if((I&65535)<(e[(J&o)+18>>1]|0)){C=I;break}}b[(A&o)>>1]=C+1<<16>>16;J=b[(K&o)>>1]|0;C=J;J=c[(E+(J<<16>>16<<2)&p)+120>>2]|0}C=b[(E+(C<<16>>16<<1)&o)+78>>1]|0;A=c[(J&p)+56>>2]|0;if(C<<16>>16==(b[(J&o)+18>>1]|0)){g=d[(J&n)+6>>0]|0;g=rm(E,d[(A+g&n)+9>>0]<<16|d[(A+g&n)+8>>0]<<24|d[(A+g&n)+10>>0]<<8|d[(A+g&n)+11>>0])|0}else{g=(C&65535)<<1;V=c[(J&p)+64>>2]|0;g=(d[(V+g&n)>>0]<<8|d[(V+(g|1)&n)>>0])&e[(J&o)+20>>1];g=rm(E,d[(A+g&n)+1>>0]<<16|d[(A+g&n)>>0]<<24|d[(A+g&n)+2>>0]<<8|d[(A+g&n)+3>>0])|0}if(g){v=0;u=0;break f}}g=qm(E)|0}else{v=0;u=0}}else{g=0;v=0;u=0}while(0);C=L;c[(C&p)>>2]=v;c[(C&p)+4>>2]=u;C=L;T=t;u=g;break}case 2:{O=c[(s+(t*20|0)&p)+4>>2]|0;v=c[(s+(t*20|0)&p)+16>>2]|0;if(!O){g=m;m=r;r=t;ie=446;break d}g=c[(Pb&p)>>2]|0;if(!g){s=v;g=m;m=r;u=x;ie=460;break c}else u=0;while(1){if(!(dd(c[(g&p)>>2]|0,v)|0)){M=g;break}g=c[(g&p)+24>>2]|0;if(!g){s=v;g=m;m=r;u=x;ie=460;break c}else u=u+1|0}H=(O|0)==1;if((c[(ae&p)>>2]|0)>0&H){g=m;m=r;u=x;ie=462;break c}F=M+24|0;if(!(c[(F&p)>>2]|0)){A=(a[(Sb&n)>>0]|0)!=0;if(A&H){g=tm(f,1)|0;if(g)break a;a[(ee&n)>>0]=1;if((Rl(f)|0)==5){g=t;ie=467;break c}a[(Sb&n)>>0]=0;A=1;K=u;u=c[(me&p)>>2]|0}else ie=469}else{A=0;ie=469}if((ie|0)==469){ie=0;K=(c[(Ob&p)>>2]|0)-u+-1|0;if((O|0)==2){C=(c[(Tb&p)>>2]|0)>>>1&1;if((c[(Ub&p)>>2]|0)>0){J=C^1;I=0;while(1){u=Il(c[((c[(Xd&p)>>2]|0)+(I<<4)&p)+4>>2]|0,516,J)|0;I=I+1|0;if(u){g=m;m=r;ie=1318;break c}g=c[(Ub&p)>>2]|0;if((I|0)>=(g|0)){ie=475;break}}}}else{g=c[(Ub&p)>>2]|0;C=0;ie=475}if((ie|0)==475){ie=0;if((g|0)>0){E=0;do{u=um(c[((c[(Xd&p)>>2]|0)+(E<<4)&p)+4>>2]|0,O,K)|0;E=E+1|0;if(u){g=m;m=r;ie=1318;break c}}while((E|0)<(c[(Ub&p)>>2]|0))}}if(!C)u=0;else{C=c[(Vb&p)>>2]|0;if(C)do{V=C+88|0;b[(V&o)>>1]=b[(V&o)>>1]|8;C=c[(C&p)+52>>2]|0}while((C|0)!=0);Eg(le);c[(Tb&p)>>2]=c[(Tb&p)>>2]|2;u=0}}C=c[(Pb&p)>>2]|0;if((C|0)!=(M|0))do{c[(Pb&p)>>2]=c[(C&p)+24>>2];mg(le,C);c[(Ob&p)>>2]=(c[(Ob&p)>>2]|0)+-1;C=c[(Pb&p)>>2]|0}while((C|0)!=(M|0));if(H){c[(Pb&p)>>2]=c[(F&p)>>2];mg(le,M);if(A){C=L;T=t;break e}else{g=m;C=O;m=r;A=K;E=L;r=t;ie=486;break d}}else{V=M+8|0;U=c[(V&p)+4>>2]|0;T=Qb;c[(T&p)>>2]=c[(V&p)>>2];c[(T&p)+4>>2]=U;T=M+16|0;U=c[(T&p)+4>>2]|0;V=Rb;c[(V&p)>>2]=c[(T&p)>>2];c[(V&p)+4>>2]=U;if(A){C=L;T=t;break e}else{C=O;g=m;m=r;A=K;E=L;r=t;ie=488;break d}}}case 3:{u=x;ie=489;break c}case 4:{v=s+(t*20|0)+8|0;g=c[(v&p)>>2]|0;if((g|0)!=0?(c[(Tb&p)>>2]&33554432|0)!=0:0){g=m;m=r;u=8;ie=1318;break c}I=s+(t*20|0)+4|0;J=c[((c[(Xd&p)>>2]|0)+(c[(I&p)>>2]<<4)&p)+4>>2]|0;if(!J){v=0;u=0;g=0}else{u=yg(J,g)|0;if((u|0)==5){g=t;ie=508;break c}else if(u){g=m;m=r;ie=1318;break c}do if((c[(v&p)>>2]|0)!=0?(b[(Yd&o)>>1]&32)!=0:0){if((a[(ee&n)>>0]|0)!=0?(c[(Zb&p)>>2]|0)<=1:0){g=0;break}g=c[(Wb&p)>>2]|0;if(!g){g=(c[(Nb&p)>>2]|0)+1|0;c[(Nb&p)>>2]=g;g=(c[(Ob&p)>>2]|0)+g|0;c[(Wb&p)>>2]=g}g=sm(le,0,g+-1|0)|0;if(!g){g=c[(Wb&p)>>2]|0;V=c[(J&p)+4>>2]|0;c[(V&p)+4>>2]=c[(J&p)>>2];g=hl(c[(V&p)>>2]|0,g)|0}V=Qb;U=c[(V&p)+4>>2]|0;T=Xb;c[(T&p)>>2]=c[(V&p)>>2];c[(T&p)+4>>2]=U;T=Rb;U=c[(T&p)+4>>2]|0;V=Yb;c[(V&p)>>2]=c[(T&p)>>2];c[(V&p)+4>>2]=U}else g=0;while(0);v=c[(J&p)+4>>2]|0;c[(v&p)+4>>2]=c[(J&p)>>2];v=c[((c[(v&p)+12>>2]|0)&p)+56>>2]|0;v=d[(v&n)+41>>0]<<16|d[(v&n)+40>>0]<<24|d[(v&n)+42>>0]<<8|d[(v&n)+43>>0];u=c[((c[((c[(Xd&p)>>2]|0)+(c[(I&p)>>2]<<4)&p)+12>>2]|0)&p)+4>>2]|0}if(a[(s+(t*20|0)&n)+3>>0]|0){if((v|0)!=(c[(s+(t*20|0)&p)+12>>2]|0)){g=m;s=I;m=r;u=x;ie=522;break c}if((u|0)!=(c[(s+(t*20|0)&p)+16>>2]|0)){g=m;s=I;m=r;u=x;ie=522;break c}else{C=L;T=t;u=g}}else{C=L;T=t;u=g}break}case 53:{g=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;if((g|0)!=0?(c[(g&p)+28>>2]|0)==(c[(s+(t*20|0)&p)+8>>2]|0):0){v=s+(t*20|0)+3|0;u=0;ie=548}else ie=536;break}case 51:{g=m;m=r;u=L;r=t;ie=525;break d}case 52:{A=s+(t*20|0)+4|0;g=c[(A&p)>>2]|0;v=c[(Xd&p)>>2]|0;C=c[(s+(t*20|0)&p)+12>>2]|0;w=z+(C*40|0)|0;u=Vg(w)|0;V=w;c[(V&p)>>2]=u;c[(V&p)+4>>2]=G;C=z+(C*40|0)+8|0;b[(C&o)>>1]=e[(C&o)>>1]&48640|4;C=s+(t*20|0)+8|0;u=Dg(c[(v+(g<<4)&p)+4>>2]|0,c[(C&p)>>2]|0,u)|0;C=c[(C&p)>>2]|0;if((C|0)==1){c[(c[(v+(g<<4)&p)+12>>2]&p)>>2]=c[(w&p)>>2];c[(Tb&p)>>2]=c[(Tb&p)>>2]|2}else if((C|0)==2)a[((c[(v+(g<<4)&p)+12>>2]|0)&n)+76>>0]=c[(w&p)>>2];if((c[(A&p)>>2]|0)==1){g=c[(Vb&p)>>2]|0;if(g)do{V=g+88|0;b[(V&o)>>1]=b[(V&o)>>1]|8;g=c[(g&p)+52>>2]|0}while((g|0)!=0);b[(Yd&o)>>1]=b[(Yd&o)>>1]&-9;C=L;T=t}else{C=L;T=t}break}case 55:case 54:{ie=536;break}case 57:case 56:{g=xm(f,c[(s+(t*20|0)&p)+4>>2]|0,c[(s+(t*20|0)&p)+8>>2]|0,-1,1)|0;if(!g){y=ge;z=je;g=m;m=x;ie=1317;break a}a[(g&n)+25>>0]=1;J=g+27|0;a[(J&n)>>0]=a[(J&n)>>0]|1;v=g+4|0;I=s+(t*20|0)+3|0;u=zm(c[(le&p)>>2]|0,0,le,v,d[(I&n)>>0]|5,1054)|0;do if(!u){u=yg(c[(v&p)>>2]|0,1)|0;if(!u){A=c[(s+(t*20|0)&p)+16>>2]|0;C=c[(v&p)>>2]|0;if(!A){u=ym(C,1,1,0,c[(g&p)>>2]|0)|0;a[(J&n)>>0]=a[(J&n)>>0]|4;break}u=Am(C,ud,d[(I&n)>>0]|2)|0;if(!u){c[(g&p)+8>>2]=A;u=ym(c[(v&p)>>2]|0,c[(ud&p)>>2]|0,1,A,c[(g&p)>>2]|0)|0}a[(J&n)>>0]=a[(J&n)>>0]&-5}}while(0);a[(J&n)>>0]=((a[(I&n)>>0]|0)!=8&1)<<3&255|a[(J&n)>>0]&-9;C=L;T=t;break}case 58:{g=m;m=r;ie=558;break d}case 60:{g=m;m=r;u=L;ie=568;break d}case 61:{g=m;m=r;u=L;r=t;ie=570;break d}case 59:{g=m;m=r;u=L;r=t;ie=566;break d}case 65:case 64:case 63:case 62:{g=m;K=u;m=r;r=t;ie=571;break d}case 66:{g=m;m=r;u=L;r=t;ie=596;break d}case 69:case 68:case 67:{g=m;H=C;m=r;u=L;ie=597;break d}case 73:{g=m;m=r;u=L;r=t;ie=624;break d}case 70:{V=c[(s+(t*20|0)&p)+12>>2]|0;g=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;u=c[(g&p)>>2]|0;c[(Cd&p)>>2]=0;V=z+(V*40|0)|0;U=c[(V&p)>>2]|0;V=c[(V&p)+4>>2]|0;u=Cm(u,0,U,V,0,Cd)|0;v=g+48|0;c[(v&p)>>2]=U;c[(v&p)+4>>2]=V;a[(g&n)+25>>0]=0;c[(g&p)+60>>2]=0;a[(g&n)+26>>0]=0;v=c[(Cd&p)>>2]|0;if(v)t=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;c[(g&p)+12>>2]=v;C=L;T=t;break}case 74:{H=Pd;c[(H&p)>>2]=0;c[(H&p)+4>>2]=0;c[(Dd&p)>>2]=0;H=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;g=c[(H&p)>>2]|0;if(!g){u=0;v=0;g=0}else{K=H+27|0;do if(!(a[(K&n)>>0]&2)){u=Hm(g,Dd)|0;if(u){g=m;m=r;ie=1318;break c}if(c[(Dd&p)>>2]|0){V=Pd;c[(V&p)>>2]=1;c[(V&p)+4>>2]=0;break}km(c[(H&p)>>2]|0,Pd);u=Pd;g=c[(u&p)>>2]|0;u=c[(u&p)+4>>2]|0;if((g|0)==-1&(u|0)==2147483647){a[(K&n)>>0]=a[(K&n)>>0]|2;break}else{U=jw(g|0,u|0,1,0)|0;V=Pd;c[(V&p)>>2]=U;c[(V&p)+4>>2]=G;break}}while(0);J=c[(s+(t*20|0)&p)+12>>2]|0;if(J){g=c[(sb&p)>>2]|0;if(!g)C=z;else{while(1){u=c[(g&p)+4>>2]|0;if(!u)break;else g=u}C=c[(g&p)+16>>2]|0}I=C+(J*40|0)|0;A=Vg(I)|0;g=G;V=I;c[(V&p)>>2]=A;c[(V&p)+4>>2]=g;V=C+(J*40|0)+8|0;b[(V&o)>>1]=e[(V&o)>>1]&48640|4;if((A|0)==-1&(g|0)==2147483647){g=m;m=r;u=13;ie=1318;break c}if(a[(K&n)>>0]&2){g=m;m=r;u=13;ie=1318;break c}J=Pd;u=c[(J&p)>>2]|0;J=c[(J&p)+4>>2]|0;C=jw(A|0,g|0,1,0)|0;g=G;if((J|0)<(g|0)|(J|0)==(g|0)&u>>>0>>0){V=Pd;c[(V&p)>>2]=C;c[(V&p)+4>>2]=g}else{C=u;g=J}V=I;c[(V&p)>>2]=C;c[(V&p)+4>>2]=g}h:do if(!(a[(K&n)>>0]&2))g=0;else{u=0;while(1){cd(8,Pd);V=Pd;V=jw(c[(V&p)>>2]|0,c[(V&p)+4>>2]&1073741823|0,1,0)|0;g=G;U=Pd;c[(U&p)>>2]=V;c[(U&p)+4>>2]=g;g=Cm(c[(H&p)>>2]|0,0,V,g,0,Dd)|0;if(c[(Dd&p)>>2]|g)break h;u=u+1|0;if((u|0)>=100){g=m;m=r;u=13;ie=1318;break c}}}while(0);a[(H&n)+26>>0]=0;c[(H&p)+60>>2]=0;v=Pd;u=c[(v&p)>>2]|0;v=c[(v&p)+4>>2]|0}C=L;c[(C&p)>>2]=u;c[(C&p)+4>>2]=v;C=L;T=t;u=g;break}case 84:case 75:{g=m;C=J;m=r;u=L;r=t;ie=647;break d}case 95:{g=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;u=Jm(c[(g&p)>>2]|0)|0;c[(g&p)+60>>2]=0;if((((u|0)==0?(Gc=c[(gc&p)>>2]|0,(Gc|0)!=0):0)?(Hc=c[(s+(t*20|0)&p)+16>>2]|0,(Hc|0)!=0):0)?(a[(g&n)+27>>0]&4)!=0:0){V=g+48|0;bc[Gc&1](c[(hc&p)>>2]|0,9,c[((c[(Xd&p)>>2]|0)+(a[(g&n)+24>>0]<<4)&p)>>2]|0,Hc,c[(V&p)>>2]|0,c[(V&p)+4>>2]|0)}if(!(c[(s+(t*20|0)&p)+8>>2]&1)){C=L;T=t}else{c[(ub&p)>>2]=(c[(ub&p)>>2]|0)+1;C=L;T=t}break}case 98:{g=m;m=r;u=L;r=t;ie=671;break d}case 99:{g=m;m=r;u=L;r=t;ie=672;break d}case 100:{v=c[(s+(t*20|0)&p)+8>>2]|0;C=z+(v*40|0)|0;g=c[((c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0)&p)+56>>2]|0;if(!(a[(g&n)+56>>0]|0)){u=c[(g&p)+36>>2]|0;g=u;u=u+8|0}else{V=c[(g&p)+20>>2]|0;u=c[((c[(V&p)+8>>2]|0)&p)+4>>2]|0;V=c[(V&p)+12>>2]|0;g=V+(u*56|0)+20|0;u=c[(V+(u*56|0)&p)+32>>2]|0}g=c[(g&p)>>2]|0;if(!(fh(C,g)|0)){c[(z+(v*40|0)&p)+12>>2]=g;V=z+(v*40|0)+8|0;b[(V&o)>>1]=e[(V&o)>>1]&48640|16;kw(c[(z+(v*40|0)&p)+16>>2]|0,u|0,g|0)|0;u=0}else u=7;c[((c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+12>>2]<<2)&p)>>2]|0)&p)+60>>2]=0;T=t;break}case 102:case 101:{v=c[(s+(t*20|0)&p)+8>>2]|0;J=z+(v*40|0)|0;A=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;C=c[(A&p)>>2]|0;A=A+27|0;if(a[(A&n)>>0]&4){lm(C,ed);g=c[(ed&p)>>2]|0;if(g>>>0>(c[(zb&p)>>2]|0)>>>0){g=m;m=r;u=x;ie=1316;break c}}else{km(C,fd);T=fd;g=c[(T&p)>>2]|0;T=c[(T&p)+4>>2]|0;V=c[(zb&p)>>2]|0;U=((V|0)<0)<<31>>31;if((T|0)>(U|0)|(T|0)==(U|0)&g>>>0>V>>>0){g=m;m=r;u=x;ie=1316;break c}c[(ed&p)>>2]=g}if(fh(J,g>>>0>32?g:32)|0){y=ge;z=je;g=m;m=x;ie=1317;break a}c[(z+(v*40|0)&p)+12>>2]=g;g=z+(v*40|0)+8|0;b[(g&o)>>1]=e[(g&o)>>1]&48640|16;g=c[(ed&p)>>2]|0;u=c[(z+(v*40|0)&p)+16>>2]|0;if(!(a[(A&n)>>0]&4))u=Lm(C,0,g,u,0)|0;else u=Dh(C,0,g,u)|0;a[(z+(v*40|0)&n)+10>>0]=1;C=J;T=t;break}case 103:{v=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;w=v+25|0;if(a[(w&n)>>0]|0){g=m;m=r;u=L;r=t;ie=700;break d}do if(!(a[(v&n)+26>>0]|0)){g=c[(v&p)+32>>2]|0;if(g){V=c[(g&p)>>2]|0;u=rc[c[((c[(V&p)>>2]|0)&p)+48>>2]&127](g,Rd)|0;Mm(f,V);break}if((a[((c[(v&p)>>2]|0)&n)+73>>0]|0)!=1){u=jm(v)|0;if(u){g=m;m=r;ie=1318;break c}if(a[(w&n)>>0]|0){g=m;m=r;u=L;r=t;ie=708;break d}}km(c[(v&p)>>2]|0,Rd);u=0}else{U=v+48|0;V=c[(U&p)+4>>2]|0;u=Rd;c[(u&p)>>2]=c[(U&p)>>2];c[(u&p)+4>>2]=V;u=0}while(0);V=Rd;T=c[(V&p)+4>>2]|0;C=L;c[(C&p)>>2]=c[(V&p)>>2];c[(C&p)+4>>2]=T;C=L;T=t;break}case 108:{ie=715;break}case 104:{g=m;m=r;u=L;r=t;ie=711;break d}case 107:case 106:{c[(ic&p)>>2]=(c[(ic&p)>>2]|0)+1;ie=715;break}case 105:{T=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;u=c[(T&p)>>2]|0;c[(Ed&p)>>2]=0;u=Hm(u,Ed)|0;V=c[(Ed&p)>>2]|0;a[(T&n)+25>>0]=V;a[(T&n)+26>>0]=0;c[(T&p)+60>>2]=0;T=c[(s+(t*20|0)&p)+8>>2]|0;C=L;T=(T|0)>0&(V|0)!=0?T+-1|0:t;break}case 7:case 6:{if(!(c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0)){g=m;m=r;S=z;T=s;U=W;V=X;u=L;r=t;break d}else ie=765;break}case 5:{g=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;c[(Fd&p)>>2]=0;w=c[(g&p)+56>>2]|0;if(a[(w&n)+56>>0]|0){u=Wm(c[(w&p)+20>>2]|0,Fd)|0;ie=766;break e}u=w+36|0;v=c[(u&p)>>2]|0;V=v+4|0;c[(u&p)>>2]=c[(V&p)>>2];c[(V&p)>>2]=0;if(!((c[(w&p)+40>>2]|0)!=0|(v|0)==0))mg(le,v);c[(Fd&p)>>2]=(c[(u&p)>>2]|0)==0&1;u=0;ie=766;break}case 9:case 8:{ie=765;break}case 110:case 109:{A=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;S=c[(s+(t*20|0)&p)+8>>2]|0;u=c[(A&p)>>2]|0;C=s+(t*20|0)+3|0;if(a[(C&n)>>0]&1)c[(ub&p)>>2]=(c[(ub&p)>>2]|0)+1;if((b[(z+(S*40|0)&o)+8>>1]&16384)!=0?(Ud=Rg(z+(S*40|0)|0)|0,(Ud|0)!=0):0){g=m;m=r;s=Ud;u=x;ie=1309;break c}H=c[(A&p)+56>>2]|0;T=z+(S*40|0)+12|0;P=c[(T&p)>>2]|0;if(!H){if(!(a[(C&n)>>0]&16))g=0;else g=c[(A&p)+12>>2]|0;u=Im(u,c[(z+(S*40|0)&p)+16>>2]|0,P,((P|0)<0)<<31>>31,10360,0,0,c[(s+(t*20|0)&p)+12>>2]|0,g)|0;c[(A&p)+60>>2]=0;C=L;T=t;break e}C=P;g=((P|0)<0)<<31>>31;A=0;do{A=A+1|0;C=mw(C|0,g|0,7)|0;g=G}while(((C|0)!=0|(g|0)!=0)&(A|0)<9);K=P+8|0;I=A+P|0;M=H+4|0;A=c[(M&p)>>2]|0;do if(!A)u=0;else{if(!(c[(H&p)+40>>2]|0)){C=H+44|0;V=c[(C&p)>>2]|0;if((V|0)<=(A|0)?!((c[2265]|0)!=0?(V|0)>(c[(H&p)>>2]|0):0):0){u=0;break}}else{V=c[(H&p)+48>>2]|0;if(!((V|0)!=0&(V+K|0)>(A|0))){u=0;break}C=H+44|0}u=Om(H)|0;c[(C&p)>>2]=0;c[(H&p)+48>>2]=0}while(0);C=H+36|0;J=H+44|0;c[(J&p)>>2]=(c[(J&p)>>2]|0)+I;J=H+8|0;if((I|0)>(c[(J&p)>>2]|0))c[(J&p)>>2]=I;E=H+40|0;J=c[(E&p)>>2]|0;if(!J){g=qg(K,((K|0)<0)<<31>>31)|0;if(!g){g=m;m=r;s=7;u=x;ie=1309;break c}c[(g&p)+4>>2]=c[(C&p)>>2]}else{g=H+48|0;I=c[(g&p)>>2]|0;K=I+K|0;F=H+52|0;H=c[(F&p)>>2]|0;if((K|0)>(H|0)){I=H;do I=I<<1;while((I|0)<(K|0));V=c[(M&p)>>2]|0;I=(I|0)>(V|0)?V:I;I=(I|0)<(K|0)?K:I;J=rg(J,I,((I|0)<0)<<31>>31)|0;if(!J){g=m;m=r;s=7;u=x;ie=1309;break c}A=J+((c[(C&p)>>2]|0)-(c[(E&p)>>2]|0))|0;c[(C&p)>>2]=A;c[(E&p)>>2]=J;c[(F&p)>>2]=I;I=c[(g&p)>>2]|0}else A=c[(C&p)>>2]|0;c[(g&p)>>2]=I+(P+15&-8);c[(J+I&p)+4>>2]=A-J;g=J+I|0}kw(g+8|0,c[(z+(S*40|0)&p)+16>>2]|0,c[(T&p)>>2]|0)|0;c[(g&p)>>2]=c[(T&p)>>2];c[(C&p)>>2]=g;C=L;T=t;break}case 112:{g=m;m=r;r=t;ie=801;break d}case 111:{v=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;g=c[(v&p)>>2]|0;c[(yd&p)>>2]=c[(v&p)+8>>2];b[(kc&o)>>1]=c[(s+(t*20|0)&p)+12>>2];a[(nc&n)>>0]=0;c[(oc&p)>>2]=z+((c[(s+(t*20|0)&p)+8>>2]|0)*40|0);u=Cm(g,yd,0,0,0,Gd)|0;if(!(c[(Gd&p)>>2]|u))u=Jm(g)|0;c[(v&p)+60>>2]=0;C=L;T=t;break}case 116:case 115:case 114:case 113:{u=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;c[(zd&p)>>2]=c[(u&p)+8>>2];b[(xc&o)>>1]=c[(s+(t*20|0)&p)+16>>2];a[(Y&n)>>0]=((J&255)<115)<<31>>31;c[(Z&p)>>2]=z+((c[(s+(t*20|0)&p)+12>>2]|0)*40|0);V=Sd;c[(V&p)>>2]=0;c[(V&p)+4>>2]=0;km(c[(u&p)>>2]|0,Sd);V=Sd;g=c[(V&p)>>2]|0;V=jw(g|0,c[(V&p)+4>>2]|0,-1,-1)|0;U=G;if(!(U>>>0>0|(U|0)==0&V>>>0>2147483646)){b[(_&o)>>1]=0;c[($&p)>>2]=le;c[(aa&p)>>2]=0;g=nm(c[(u&p)>>2]|0,0,g,1,qd)|0;if(!g){u=Km(c[(ea&p)>>2]|0,c[(ga&p)>>2]|0,zd,0)|0;if((b[(_&o)>>1]&9312)==0&(c[(aa&p)>>2]|0)==0)g=0;else{Qg(qd);g=0}}else u=0}else{c[(ke&p)>>2]=68730;c[(ke&p)+4>>2]=10788;bd(11,13600,ke);g=11;u=0}if((((a[(C&n)>>0]&1)==0?u+1|0:0-u|0)|0)>0){C=L;T=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;u=g}else{C=L;T=t;u=g}break}case 117:{O=L+8|0;b[(O&o)>>1]=1;if((c[(Zb&p)>>2]|0)>((c[(ha&p)>>2]|0)+1|0)){g=m;m=r;u=x;ie=832;break c}N=c[(s+(t*20|0)&p)+12>>2]|0;M=c[((c[(Xd&p)>>2]|0)+(N<<4)&p)+4>>2]|0;P=s+(t*20|0)+4|0;I=c[(P&p)>>2]|0;C=M+4|0;K=c[(C&p)>>2]|0;c[(K&p)+4>>2]=c[(M&p)>>2];c[(ke&p)>>2]=0;do if(!(c[(K&p)+8>>2]|0)){u=dl(K,I,ke,0)|0;if(!u){u=Xm(M,I,0)|0;if(u){g=c[(ke&p)>>2]|0;if(!g){A=0;break}Bg(c[(g&p)+68>>2]|0);A=0;break}if(I>>>0<=1){g=c[(ke&p)>>2]|0;pl(g,9);if(!g){u=0;A=0;break}Bg(c[(g&p)+68>>2]|0);u=0;A=0;break}if(!(a[(K&n)+17>>0]|0)){g=c[(ke&p)>>2]|0;u=Ym(c[(g&p)+52>>2]|0,g,c[(g&p)+72>>2]|0)|0;if(!g){A=0;break}Bg(c[(g&p)+68>>2]|0);A=0;break}J=c[(C&p)>>2]|0;c[(J&p)+4>>2]=c[(M&p)>>2];J=c[((c[(J&p)+12>>2]|0)&p)+56>>2]|0;J=d[(J&n)+53>>0]<<16|d[(J&n)+52>>0]<<24|d[(J&n)+54>>0]<<8|d[(J&n)+55>>0];C=c[(ke&p)>>2]|0;if((J|0)==(I|0)){u=Ym(c[(C&p)+52>>2]|0,C,c[(C&p)+72>>2]|0)|0;if(C)Bg(c[(C&p)+68>>2]|0);if(!u)A=0;else{A=0;break}}else{if(C)Bg(c[(C&p)+68>>2]|0);u=dl(K,J,Sd,0)|0;if(u){A=0;break}C=c[(Sd&p)>>2]|0;u=Zm(K,C,1,0,I,0)|0;if(C)Bg(c[(C&p)+68>>2]|0);if(u){A=0;break}c[(Sd&p)>>2]=0;u=dl(K,J,Sd,0)|0;C=c[(Sd&p)>>2]|0;if(u){if(!C){A=0;break}}else u=Ym(c[(C&p)+52>>2]|0,C,c[(C&p)+72>>2]|0)|0;Bg(c[(C&p)+68>>2]|0);if(!u)A=J;else{A=0;break}}H=((c[2514]|0)>>>0)/((c[(K&p)+32>>2]|0)>>>0)|0;F=H+1|0;I=K+36|0;while(1){C=J+-1|0;if((C|0)==(F|0)){J=C;continue}if(C>>>0<2)E=0;else{E=J+-3|0;E=E-((E>>>0)%(((((c[(I&p)>>2]|0)>>>0)/5|0)+1|0)>>>0)|0)|0;E=((E+1|0)==(H|0)?3:2)+E|0}if((E|0)==(C|0))J=C;else break}u=Dg(M,4,C)|0}else A=0}else{u=262;A=0}while(0);b[(O&o)>>1]=4;V=L;c[(V&p)>>2]=A;c[(V&p)+4>>2]=((A|0)<0)<<31>>31;if((u|0)==0&(A|0)!=0){g=m;K=N;C=P;m=r;u=L;r=t;ie=865;break d}else{C=L;T=t}break}case 118:{c[(jd&p)>>2]=0;g=s+(t*20|0)+12|0;u=Xm(c[((c[(Xd&p)>>2]|0)+(c[(s+(t*20|0)&p)+8>>2]<<4)&p)+4>>2]|0,c[(s+(t*20|0)&p)+4>>2]|0,(c[(g&p)>>2]|0)!=0?jd:0)|0;g=c[(g&p)>>2]|0;if((g|0)!=0?(Ic=c[(jd&p)>>2]|0,c[(ub&p)>>2]=(c[(ub&p)>>2]|0)+Ic,(g|0)>0):0){C=z+(g*40|0)|0;T=C;T=jw(c[(T&p)>>2]|0,c[(T&p)+4>>2]|0,Ic|0,((Ic|0)<0)<<31>>31|0)|0;c[(C&p)>>2]=T;c[(C&p)+4>>2]=G;C=L;T=t}else{C=L;T=t}break}case 121:case 120:{c[(vd&p)>>2]=0;u=Am(c[((c[(Xd&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<4)&p)+4>>2]|0,vd,J<<24>>24==121?1:2)|0;T=c[(vd&p)>>2]|0;C=L;c[(C&p)>>2]=T;c[(C&p)+4>>2]=((T|0)<0)<<31>>31;C=L;T=t;break}case 119:{g=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;u=c[(g&p)+56>>2]|0;if(u){g=m;m=r;J=L;r=t;ie=878;break d}u=c[(g&p)>>2]|0;C=L;T=t;u=Xm(c[(u&p)>>2]|0,c[(u&p)+60>>2]|0,0)|0;break}case 123:{C=L;T=t;u=an(le,c[(s+(t*20|0)&p)+4>>2]|0)|0;break}case 124:{g=m;m=r;u=L;r=t;ie=886;break d}case 122:{g=m;m=r;J=L;r=t;ie=881;break d}case 126:{g=m;m=r;u=L;r=t;ie=895;break d}case 125:{g=m;m=r;J=L;r=t;ie=887;break d}case 127:{g=m;m=r;u=L;ie=903;break d}case 128:{g=m;m=r;J=L;ie=947;break d}case 129:{w=c[(s+(t*20|0)&p)+4>>2]|0;v=z+(w*40|0)|0;w=z+(w*40|0)+8|0;g=b[(w&o)>>1]|0;do if(g&32){E=c[(v&p)>>2]|0;u=E+26|0;g=b[(u&o)>>1]|0;if(!(g&2)){if(!(g&1)){g=E+8|0;c[(g&p)>>2]=kn(c[(g&p)>>2]|0)|0;g=b[(u&o)>>1]|0}b[(u&o)>>1]=g&65535|2}C=E+8|0;A=c[(C&p)>>2]|0;if(!A){g=b[(w&o)>>1]|0;break}w=A;v=c[(w&p)>>2]|0;w=c[(w&p)+4>>2]|0;V=c[(A&p)+8>>2]|0;c[(C&p)>>2]=V;if(!V)Zk(E);u=c[(s+(t*20|0)&p)+12>>2]|0;g=z+(u*40|0)|0;u=z+(u*40|0)+8|0;if(!(b[(u&o)>>1]&9312)){ie=g;c[(ie&p)>>2]=v;c[(ie&p)+4>>2]=w;b[(u&o)>>1]=4;u=0;ie=19;break e}else{Zg(g,v,w);u=0;ie=19;break e}}while(0);if(!(g&9312))b[(w&o)>>1]=1;else vg(v);t=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;u=0;ie=19;break}case 130:{g=m;m=r;u=L;ie=966;break d}case 131:{g=m;m=r;u=L;r=t;ie=993;break d}case 132:{g=m;m=r;u=L;r=t;ie=1009;break d}case 134:{g=m;m=r;J=L;r=t;ie=1010;break d}case 135:{g=m;m=r;u=L;r=t;ie=1015;break d}case 136:{g=m;m=r;r=t;ie=1022;break d}case 137:{g=m;m=r;u=L;r=t;ie=1028;break d}case 138:{g=m;m=r;u=L;r=t;ie=1030;break d}case 139:{g=m;m=r;J=L;r=t;ie=1032;break d}case 140:{g=m;m=r;u=L;r=t;ie=1034;break d}case 141:{g=m;m=r;u=L;r=t;ie=1036;break d}case 10:{V=a[(s+(t*20|0)&n)+3>>0]|0;g=V&255;u=c[(Bb&p)>>2]|0;if(V<<24>>24){v=0;w=z+((c[(s+(t*20|0)&p)+8>>2]|0)*40|0)|0;while(1){c[(u+(v<<2)&p)>>2]=w;v=v+1|0;if((v|0)>=(g|0))break;else w=w+40|0}}V=c[(s+(t*20|0)&p)+16>>2]|0;c[(Ga&p)>>2]=V;U=c[(s+(t*20|0)&p)+12>>2]|0;c[(Ha&p)>>2]=z+(U*40|0);U=z+(U*40|0)+12|0;c[(U&p)>>2]=(c[(U&p)>>2]|0)+1;b[(Ia&o)>>1]=1;c[(Ja&p)>>2]=le;c[(Ka&p)>>2]=0;c[(Vc&p)>>2]=Md;c[(La&p)>>2]=0;c[(Ma&p)>>2]=f;c[(Na&p)>>2]=t;a[(Oa&n)>>0]=0;mc[c[(V&p)+16>>2]&63](Vc,g,u);if(!(c[(La&p)>>2]|0))u=0;else{c[(ke&p)>>2]=Sg(Md,1)|0;dh(je,le,10344,ke);u=c[(La&p)>>2]|0}do if((a[(Oa&n)>>0]|0)!=0?(Mc=c[(s+((t+-1|0)*20|0)&p)+4>>2]|0,(Mc|0)!=0):0){g=z+(Mc*40|0)|0;v=z+(Mc*40|0)+8|0;if(!(b[(v&o)>>1]&9312)){V=g;c[(V&p)>>2]=1;c[(V&p)+4>>2]=0;b[(v&o)>>1]=4;break}else{Zg(g,1,0);break}}while(0);if((b[(Ia&o)>>1]&9312)==0&(c[(Ka&p)>>2]|0)==0){C=L;T=t}else{Qg(Md);C=L;T=t}break}case 11:{c[(Rc&p)>>2]=0;c[(Pa&p)>>2]=-1;c[(Qa&p)>>2]=-1;g=Wh(le,c[(s+(t*20|0)&p)+4>>2]|0,c[(s+(t*20|0)&p)+8>>2]|0,Qa,Pa)|0;if((g|0)==5){c[(Rc&p)>>2]=1;g=0}v=0;w=z+((c[(s+(t*20|0)&p)+12>>2]|0)*40|0)|0;while(1){C=c[(Rc+(v<<2)&p)>>2]|0;A=((C|0)<0)<<31>>31;u=w+8|0;if(!(b[(u&o)>>1]&9312)){V=w;c[(V&p)>>2]=C;c[(V&p)+4>>2]=A;b[(u&o)>>1]=4}else Zg(w,C,A);v=v+1|0;if((v|0)==3){C=L;T=t;u=g;break}else w=w+40|0}break}case 142:{C=c[(s+(t*20|0)&p)+4>>2]|0;v=z+(C*40|0)|0;u=Yk(v,c[(s+(t*20|0)&p)+16>>2]|0)|0;if(u){c[(ke&p)>>2]=Sg(v,1)|0;dh(je,le,10344,ke)}Yl(v,xb)|0;w=e[(z+(C*40|0)&o)+8>>1]|0;if(w&18){g=c[(z+(C*40|0)&p)+12>>2]|0;if(w&16384)g=(c[(v&p)>>2]|0)+g|0;if((g|0)>(c[((c[(z+(C*40|0)&p)+32>>2]|0)&p)+88>>2]|0)){g=m;m=r;u=x;ie=1316;break c}else{C=L;T=t}}else{C=L;T=t}break}case 12:{g=c[(s+(t*20|0)&p)+12>>2]|0;L=c[((c[(Xd&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<4)&p)+4>>2]|0;I=c[(c[(L&p)+4>>2]&p)>>2]|0;J=a[(I&n)+5>>0]|0;H=J&255;g=(g|0)==-1?H:g;do if((d[(I&n)+16>>0]|0)>2)g=H;else if((c[(c[(I&p)+64>>2]&p)>>2]|0)!=0?(V=I+72|0,U=c[(V&p)+4>>2]|0,(U|0)>0|(U|0)==0&(c[(V&p)>>2]|0)>>>0>0):0){g=H;break}while(0);if(!(a[(I&n)+15>>0]|0))A=c[(I&p)+168>>2]|0;else A=10360;K=(g|0)==5;if(K)if(A){C=A;while(1)if(!(a[(C&n)>>0]|0))break;else C=C+1|0;if(C-A&1073741823){C=c[(c[(I&p)+60>>2]&p)>>2]|0;if(!(a[(I&n)+4>>0]|0))if((c[(C&p)>>2]|0)>1?!((c[(C&p)+52>>2]|0)==0|(g|0)==(H|0)):0)ie=1077;else{g=H;u=0}else ie=1076}else{g=H;u=0}}else{g=H;u=0}else ie=1076;if((ie|0)==1076){ie=0;if((g|0)==(H|0)){g=H;u=0}else ie=1077}do if((ie|0)==1077){ie=0;C=J<<24>>24==5;if(C|K){if(!(a[(ee&n)>>0]|0)){g=m;s=K;m=r;u=x;ie=1080;break c}if((c[(Zb&p)>>2]|0)>1){g=m;s=K;m=r;u=x;ie=1080;break c}if(!C){if(J<<24>>24==4)sn(I,2)|0}else{J=I+208|0;if(!(c[(J&p)>>2]|0)){c[(_c&p)>>2]=0;u=fl(I,1)|0;if(u)break;u=c[(I&p)>>2]|0;u=pc[c[(u&p)+32>>2]&31](u,c[(I&p)+212>>2]|0,0,_c)|0;if((u|0)==0&(c[(_c&p)>>2]|0)!=0)u=pn(I)|0;if(u)break;if(c[(J&p)>>2]|0)ie=1088}else ie=1088;if((ie|0)==1088){ie=0;u=qn(I)|0;if(u)break;u=rn(c[(J&p)>>2]|0,d[(I&n)+9>>0]|0,c[(I&p)+152>>2]|0,c[(I&p)+200>>2]|0)|0;c[(J&p)>>2]=0;if(u)break}sn(I,g)|0}u=Fg(L,K?2:1)|0}else u=0}while(0);g=sn(I,(u|0)==0?g:H)|0;C=c[(s+(t*20|0)&p)+8>>2]|0;J=z+(C*40|0)|0;b[(z+(C*40|0)&o)+8>>1]=2562;if((g|0)==6){c[(z+(C*40|0)&p)+16>>2]=0;g=0}else{v=c[(g<<2&p)+32216>>2]|0;c[(z+(C*40|0)&p)+16>>2]=v;g=v;while(1)if(!(a[(g&n)>>0]|0))break;else g=g+1|0;g=g-v&1073741823}c[(z+(C*40|0)&p)+12>>2]=g;a[(z+(C*40|0)&n)+10>>0]=1;Yl(J,xb)|0;C=J;T=t;break}case 13:{if(!(a[(ee&n)>>0]|0)){g=m;m=r;u=x;ie=1101;break c}if((c[(Ra&p)>>2]|0)>1){g=m;m=r;u=x;ie=1103;break c}S=c[(Tb&p)>>2]|0;N=c[(vb&p)>>2]|0;w=c[(wb&p)>>2]|0;v=c[(Sa&p)>>2]|0;c[(Tb&p)>>2]=S&-2762753|2107392;c[(Sa&p)>>2]=0;g=c[((c[(Xd&p)>>2]|0)&p)+4>>2]|0;P=g+4|0;I=a[((c[(c[(P&p)>>2]&p)>>2]|0)&n)+15>>0]|0;V=c[(Ub&p)>>2]|0;u=tn(le,je,(a[(_b&n)>>0]|0)==2?42432:42464)|0;J=c[(Ub&p)>>2]|0;if((J|0)>(V|0))M=(c[(Xd&p)>>2]|0)+(J+-1<<4)|0;else M=0;i:do if(!u){O=c[((c[(Xd&p)>>2]|0)+(J+-1<<4)&p)+4>>2]|0;un(O)|0;T=c[(P&p)>>2]|0;c[(T&p)+4>>2]=c[(g&p)>>2];T=(c[(T&p)+32>>2]|0)-(c[(T&p)+36>>2]|0)|0;u=tn(le,je,42488)|0;if(!u){u=tn(le,je,42528)|0;if(!u){u=yg(g,2)|0;if(!u){J=c[(P&p)>>2]|0;if((a[((c[(J&p)>>2]|0)&n)+5>>0]|0)==5)c[(Ta&p)>>2]=0;if(!(xg(O,c[(J&p)+32>>2]|0,T,0)|0)){if(I<<24>>24==0?(xg(O,c[(Ta&p)>>2]|0,T,0)|0)!=0:0){u=7;break}if(a[(ge&n)>>0]|0){u=7;break}J=a[(Ua&n)>>0]|0;do if(J<<24>>24>-1)J=J<<24>>24;else{J=c[(P&p)>>2]|0;c[(J&p)+4>>2]=c[(g&p)>>2];if(!(a[(J&n)+17>>0]|0)){J=0;break}J=(a[(J&n)+18>>0]|0)==0?1:2}while(0);vn(O,J)|0;u=wn(le,je,42536)|0;if(u)break;u=wn(le,je,42688)|0;if(u)break;u=wn(le,je,42792)|0;if(u)break;u=wn(le,je,42912)|0;if(u)break;u=wn(le,je,43112)|0;if(u)break;u=wn(le,je,43232)|0;if(u)break;u=tn(le,je,43392)|0;if(!u)J=0;else break;do{u=d[(J&n)+43576>>0]|0;wm(g,u,ad);u=Dg(O,u,(d[((J|1)&n)+43576>>0]|0)+(c[(ad&p)>>2]|0)|0)|0;J=J+2|0;if(u)break i}while((J|0)<10);H=c[(P&p)>>2]|0;c[(H&p)+4>>2]=c[(g&p)>>2];J=c[(O&p)>>2]|0;K=O+4|0;I=c[(K&p)>>2]|0;c[(I&p)+4>>2]=J;H=c[((c[(H&p)>>2]|0)&p)+60>>2]|0;F=c[(H&p)>>2]|0;if(F){V=c[(I&p)+32>>2]|0;V=sw(c[(I&p)+44>>2]|0,0,V|0,((V|0)<0)<<31>>31|0)|0;u=id;c[(u&p)>>2]=V;c[(u&p)+4>>2]=G;u=ac[c[(F&p)+40>>2]&63](H,11,id)|0;u=(u|0)==12?0:u;if(u)break;J=c[(O&p)>>2]|0}U=Tc+0|0;V=U+48|0;do{c[(U&p)>>2]=0;U=U+4|0}while((U|0)<(V|0));c[(Va&p)>>2]=J;c[(Wa&p)>>2]=O;c[(Xa&p)>>2]=g;c[(Ya&p)>>2]=1;gd(Tc,2147483647)|0;u=hd(Tc)|0;if(u){C=c[(c[((c[(Xa&p)>>2]|0)&p)+4>>2]&p)>>2]|0;if(a[(C&n)+15>>0]|0)break;if(a[(C&n)+12>>0]|0)break;xn(C);break}u=(c[(P&p)>>2]|0)+22|0;b[(u&o)>>1]=e[(u&o)>>1]&65533;u=un(O)|0;if(u)break;J=c[(K&p)>>2]|0;c[(J&p)+4>>2]=c[(O&p)>>2];if(!(a[(J&n)+17>>0]|0))E=0;else E=(a[(J&n)+18>>0]|0)==0?1:2;vn(g,E)|0;u=xg(g,c[((c[(K&p)>>2]|0)&p)+32>>2]|0,T,1)|0}else u=7}}}}while(0);c[(Tb&p)>>2]=S;c[(vb&p)>>2]=N;c[(wb&p)>>2]=w;c[(Sa&p)>>2]=v;xg(g,-1,-1,1)|0;a[(ee&n)>>0]=1;if(M){V=M+4|0;Ml(c[(V&p)>>2]|0);c[(V&p)>>2]=0;c[(M&p)+12>>2]=0}Eg(le);C=L;T=t;break}case 143:{V=c[((c[(Xd&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<4)&p)+4>>2]|0;I=c[(V&p)+4>>2]|0;c[(I&p)+4>>2]=c[(V&p)>>2];if(!(a[(I&n)+17>>0]|0)){g=m;m=r;u=L;ie=1157;break d}E=I+44|0;H=c[(E&p)>>2]|0;A=I+12|0;C=c[((c[(A&p)>>2]|0)&p)+56>>2]|0;C=d[(C&n)+37>>0]<<16|d[(C&n)+36>>0]<<24|d[(C&n)+38>>0]<<8|d[(C&n)+39>>0];F=El(I,H,C)|0;if(H>>>0>>0){g=m;m=r;u=x;ie=1145;break c}if(!C){g=m;m=r;u=L;ie=1157;break d}J=I+8|0;g=c[(J&p)>>2]|0;do if(g){C=g;do{if(C){ie=1150;break}C=c[2]|0}while((C|0)!=0);if((ie|0)==1150){ie=0;u=Fl(C,0,0)|0;if(u)break;g=c[(J&p)>>2]|0}if(g){do{V=g+72|0;a[(V&n)>>0]=d[(V&n)>>0]&251;g=c[(g&p)+8>>2]|0}while((g|0)!=0);ie=1154}else ie=1154}else ie=1154;while(0);if((ie|0)==1154){ie=0;u=Gl(I,F,H,0)|0;if(!u){u=Gg(c[((c[(A&p)>>2]|0)&p)+68>>2]|0)|0;V=c[((c[(A&p)>>2]|0)&p)+56>>2]|0;U=c[(E&p)>>2]|0;a[(V&n)+28>>0]=U>>>24;a[(V&n)+29>>0]=U>>>16;a[(V&n)+30>>0]=U>>>8;a[(V&n)+31>>0]=U}}if((u|0)==101){g=m;m=r;u=L;ie=1157;break d}else{C=L;T=t}break}case 145:{g=c[(s+(t*20|0)&p)+12>>2]|0;if((g&255|0)==0?(c[(Tb&p)>>2]&16384|0)!=0:0){g=m;m=r;S=z;T=s;U=W;V=X;u=L;r=t;break d}C=c[((c[(Xd&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<4)&p)+4>>2]|0;A=c[(s+(t*20|0)&p)+8>>2]|0;if(!(a[(C&n)+9>>0]|0)){g=m;m=r;S=z;T=s;U=W;V=X;u=L;r=t;break d}v=g+1&255;w=C+4|0;c[((c[(w&p)>>2]|0)&p)+4>>2]=c[(C&p)>>2];u=bl(C,A,v)|0;if(!u){g=m;m=r;u=L;r=t;ie=1166;break d}if((u&255|0)!=6){g=m;m=r;s=u;u=x;ie=1309;break c}c[(ke&p)>>2]=c[(s+(t*20|0)&p)+16>>2];dh(je,le,42224,ke);C=L;T=t;break}case 144:{g=m;m=r;u=L;r=t;ie=1158;break d}case 146:{J=c[(s+(t*20|0)&p)+16>>2]|0;v=c[(Za&p)>>2]|0;u=(v|0)>0;if(u?(c[(_a&p)>>2]|0)==0:0){u=6;ie=1188}else ie=1179;j:do if((ie|0)==1179){ie=0;if(!J){g=m;m=r;S=z;T=s;U=W;V=X;u=L;r=t;break d}g=J+8|0;w=(c[(c[(g&p)>>2]&p)>>2]|0)+56|0;if(c[(w&p)>>2]|0){if(u){C=c[(_a&p)>>2]|0;A=0;do{if((c[(C+(A<<2)&p)>>2]|0)==(J|0)){u=0;ie=1188;break j}A=A+1|0}while((A|0)<(v|0))}u=yn(le)|0;if(!u){u=lc[c[(w&p)>>2]&127](c[(g&p)>>2]|0)|0;if(!u){u=c[(Za&p)>>2]|0;c[(Za&p)>>2]=u+1;c[((c[(_a&p)>>2]|0)+(u<<2)&p)>>2]=J;u=J+12|0;c[(u&p)>>2]=(c[(u&p)>>2]|0)+1;u=0}}else ie=1188}else u=0}while(0);if((ie|0)==1188){ie=0;if(!J){C=L;T=t;break e}g=J+8|0}Mm(f,c[(g&p)>>2]|0);C=L;T=t;break}case 147:{U=Kd+0|0;V=U+40|0;do{c[(U&p)>>2]=0;U=U+4|0}while((U|0)<(V|0));c[($a&p)>>2]=le;g=_g(Kd,z+((c[(s+(t*20|0)&p)+8>>2]|0)*40|0)|0)|0;u=Sg(Kd,1)|0;k:do if(u){v=_h(le,u,c[((c[(Xd&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<4)&p)>>2]|0)|0;g=c[(c[(v&p)+56>>2]&p)>>2]|0;u=bn(cb,g,Xc)|0;if((u|0)!=0?(Oc=c[(u&p)+8>>2]|0,(Oc|0)!=0):0){g=zn(le,v,Oc,c[((c[(Oc&p)>>2]|0)&p)+4>>2]|0,je)|0;if(g)break;u=v+60|0;g=c[(u&p)>>2]|0;if(!g){g=0;break}while(1){if((c[(g&p)>>2]|0)==(le|0))break;g=c[(g&p)+24>>2]|0;if(!g){g=0;break k}}g=yn(le)|0;if(g)break;g=c[(u&p)>>2]|0;l:do if(!g)g=0;else while(1){if((c[(g&p)>>2]|0)==(le|0))break l;g=c[(g&p)+24>>2]|0;if(!g){g=0;break}}while(0);V=c[(Za&p)>>2]|0;c[(Za&p)>>2]=V+1;c[((c[(_a&p)>>2]|0)+(V<<2)&p)>>2]=g;g=g+12|0;c[(g&p)>>2]=(c[(g&p)>>2]|0)+1;g=0;break}c[(ke&p)>>2]=g;c[(je&p)>>2]=uh(le,28320,ke)|0;g=1}while(0);if((b[(ab&o)>>1]&9312)==0&(c[(bb&p)>>2]|0)==0){C=L;T=t;u=g}else{Qg(Kd);C=L;T=t;u=g}break}case 148:{c[(ha&p)>>2]=(c[(ha&p)>>2]|0)+1;g=_h(le,c[(s+(t*20|0)&p)+16>>2]|0,c[((c[(Xd&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<4)&p)>>2]|0)|0;m:do if((g|0)!=0?(Pc=g+60|0,Qc=c[(Pc&p)>>2]|0,(Qc|0)!=0):0){u=Qc;do{if((c[((c[(u&p)+8>>2]|0)&p)+4>>2]|0)>0){u=6;break m}u=c[(u&p)+24>>2]|0}while((u|0)!=0);g=Ok(le,g)|0;v=g+8|0;u=lc[c[((c[(c[(g&p)+4>>2]&p)>>2]|0)&p)+20>>2]&127](c[(v&p)>>2]|0)|0;if(!u){c[(v&p)>>2]=0;c[(Pc&p)>>2]=0;An(g);u=0}}else u=0;while(0);c[(ha&p)>>2]=(c[(ha&p)>>2]|0)+-1;C=L;T=t;break}case 149:{g=m;m=r;u=L;r=t;ie=1213;break d}case 150:{g=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;C=c[(s+(t*20|0)&p)+12>>2]|0;A=z+(C*40|0)|0;if(a[(g&n)+25>>0]|0){g=m;m=r;u=L;r=t;ie=1226;break d}V=g+32|0;u=c[(c[(V&p)>>2]&p)>>2]|0;U=c[(u&p)>>2]|0;c[(Id&p)>>2]=0;c[(Id&p)+4>>2]=0;c[(Id&p)+8>>2]=0;c[(Id&p)+12>>2]=0;c[(Id&p)+16>>2]=0;c[(Id&p)+20>>2]=0;c[(Id&p)+24>>2]=0;c[(Id&p)>>2]=A;v=z+(C*40|0)+8|0;b[(v&o)>>1]=e[(v&o)>>1]&48640|1;V=ac[c[(U&p)+44>>2]&63](c[(V&p)>>2]|0,Id,c[(s+(t*20|0)&p)+8>>2]|0)|0;Mm(f,u);u=c[(db&p)>>2]|0;u=(u|0)==0?V:u;Yl(A,xb)|0;v=e[(v&o)>>1]|0;if(v&18){g=c[(z+(C*40|0)&p)+12>>2]|0;if(v&16384)g=(c[(A&p)>>2]|0)+g|0;if((g|0)>(c[((c[(z+(C*40|0)&p)+32>>2]|0)&p)+88>>2]|0)){g=m;m=r;u=x;ie=1316;break c}else{C=L;T=t}}else{C=L;T=t}break}case 14:{A=c[(s+(t*20|0)&p)+12>>2]|0;C=A+1|0;F=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;J=c[(F&p)+32>>2]|0;I=c[(J&p)>>2]|0;H=c[(I&p)>>2]|0;E=c[(z+(C*40|0)&p)>>2]|0;A=c[(z+(A*40|0)&p)>>2]|0;g=c[(Bb&p)>>2]|0;if((E|0)>0){u=0;do{V=u;u=u+1|0;c[(g+(V<<2)&p)>>2]=z+((u+C|0)*40|0)}while((u|0)!=(E|0))}u=tc[c[(H&p)+32>>2]&31](J,A,c[(s+(t*20|0)&p)+16>>2]|0,E,g)|0;Mm(f,I);if((u|0)==0?(lc[c[(H&p)+40>>2]&127](J)|0)!=0:0)t=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;a[(F&n)+25>>0]=0;C=L;T=t;break}case 151:{g=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;if(a[(g&n)+25>>0]|0){g=m;m=r;S=z;T=s;U=W;V=X;u=L;r=t;break d}g=g+32|0;v=c[(g&p)>>2]|0;V=c[(v&p)>>2]|0;u=c[(V&p)>>2]|0;v=lc[c[(u&p)+36>>2]&127](v)|0;Mm(f,V);if((v|0)==0?(lc[c[(u&p)+40>>2]&127](c[(g&p)>>2]|0)|0)!=0:0){u=0;ie=19;break e}t=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;u=v;ie=19;break}case 15:{F=s+(t*20|0)+16|0;v=c[((c[(F&p)>>2]|0)&p)+8>>2]|0;if(!v){g=m;m=r;s=6;u=x;ie=1309;break c}g=c[(v&p)>>2]|0;if(!g){g=m;m=r;s=6;u=x;ie=1309;break c}I=c[(s+(t*20|0)&p)+8>>2]|0;E=g+52|0;C=c[(E&p)>>2]|0;if(!C){g=m;m=r;S=z;T=s;U=W;V=X;u=L;r=t;break d}H=a[(eb&n)>>0]|0;J=c[(Bb&p)>>2]|0;if((I|0)>0){C=0;A=z+((c[(s+(t*20|0)&p)+12>>2]|0)*40|0)|0;while(1){c[(J+(C<<2)&p)>>2]=A;C=C+1|0;if((C|0)==(I|0))break;else A=A+40|0}C=c[(E&p)>>2]|0}A=s+(t*20|0)+3|0;a[(eb&n)>>0]=a[(A&n)>>0]|0;u=pc[C&31](v,I,J,Hd)|0;a[(eb&n)>>0]=H;Mm(f,v);if(!u){if(c[(s+(t*20|0)&p)+4>>2]|0){l=Hd;r=c[(l&p)>>2]|0;l=c[(l&p)+4>>2]|0;V=ne;c[(V&p)>>2]=r;c[(V&p)+4>>2]=l}}else if((u&255|0)==19?(a[((c[(F&p)>>2]|0)&n)+16>>0]|0)!=0:0){g=a[(A&n)>>0]|0;if(g<<24>>24==5)g=2;else if(g<<24>>24==4){g=m;m=r;S=z;T=s;U=W;V=X;u=L;r=t;break d}a[(fe&n)>>0]=g;C=L;T=t;break e}c[(ub&p)>>2]=(c[(ub&p)>>2]|0)+1;C=L;T=t;break}case 152:{g=c[((c[(s+(t*20|0)&p)+16>>2]|0)&p)+8>>2]|0;u=c[(s+(t*20|0)&p)+4>>2]|0;v=z+(u*40|0)|0;if(((b[(z+(u*40|0)&o)+8>>1]&2)!=0?(a[(z+(u*40|0)&n)+10>>0]|0)!=1:0)?(Wd=Bn(v,1)|0,(Wd|0)!=0):0){g=m;m=r;s=Wd;u=x;ie=1309;break c}u=rc[c[((c[(g&p)>>2]|0)&p)+76>>2]&127](g,c[(z+(u*40|0)&p)+16>>2]|0)|0;Mm(f,g);b[(Yd&o)>>1]=b[(Yd&o)>>1]&-9;C=L;T=t;break}case 153:{g=m;m=r;u=L;r=t;ie=1257;break d}case 155:{g=m;m=r;ie=1264;break d}case 154:{g=m;m=r;J=L;r=t;ie=1258;break d}default:{g=m;m=r;S=z;T=s;U=W;V=X;u=L;r=t;break d}}while(0);n:do if((ie|0)==57){ie=0;w=L+8|0;b[(w&o)>>1]=2562;c[(L&p)+16>>2]=v;c[(L&p)+12>>2]=g;a[(L&n)+10>>0]=Jc;if((a[(s+(t*20|0)&n)+3>>0]|0)!=0?(V=z+((c[(s+(t*20|0)&p)+12>>2]|0)*40|0)|0,!((c[(V&p)>>2]|0)==0&(c[(V&p)+4>>2]|0)==0)):0){b[(w&o)>>1]=2576;C=L;T=t}else{C=L;T=t}}else if((ie|0)==536){if(b[(Yd&o)>>1]&8){g=m;m=r;s=516;u=x;ie=1309;break c}C=c[(s+(t*20|0)&p)+8>>2]|0;I=c[(s+(t*20|0)&p)+12>>2]|0;g=c[(Xd&p)>>2]|0;H=c[(g+(I<<4)&p)+4>>2]|0;if(J<<24>>24==55){g=a[((c[(g+(I<<4)&p)+12>>2]|0)&n)+76>>0]|0;if((g&255)<(d[(Mb&n)>>0]|0)){a[(Mb&n)>>0]=g;J=1}else J=1}else J=0;v=s+(t*20|0)+3|0;if(a[(v&n)>>0]&4){V=z+(C*40|0)|0;g=Vg(V)|0;c[(V&p)>>2]=g;c[(V&p)+4>>2]=G;V=z+(C*40|0)+8|0;b[(V&o)>>1]=e[(V&o)>>1]&48640|4;if((g|0)<2){g=m;m=r;s=x;ie=542;break c}else E=g}else E=C;u=s+(t*20|0)+1|0;C=a[(u&n)>>0]|0;if(C<<24>>24==-6){A=c[(s+(t*20|0)&p)+16>>2]|0;C=(e[(A&o)+8>>1]|0)+(e[(A&o)+6>>1]|0)|0}else if(C<<24>>24==-14){C=c[(s+(t*20|0)&p)+16>>2]|0;A=0}else{C=0;A=0}g=xm(f,c[(s+(t*20|0)&p)+4>>2]|0,C,I,1)|0;if(!g){y=ge;z=je;g=m;m=x;ie=1317;break a}a[(g&n)+25>>0]=1;V=g+27|0;a[(V&n)>>0]=a[(V&n)>>0]|8;c[(g&p)+28>>2]=E;ie=ym(H,E,J,A,c[(g&p)>>2]|0)|0;c[(g&p)+8>>2]=A;a[(V&n)>>0]=((a[(u&n)>>0]|0)!=-6&1)<<2&255|a[(V&n)>>0]&-5;u=ie;ie=548}else if((ie|0)==715){ie=0;M=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;V=c[(M&p)+56>>2]|0;do if(!V){u=c[(M&p)>>2]|0;g=qm(u)|0;if(!g)if(!(a[(u&n)+73>>0]|0)){v=1;g=0}else{v=0;g=Vm(u)|0}else v=1;a[(M&n)+26>>0]=0;c[(M&p)+60>>2]=0;a[(M&n)+25>>0]=v;if(!v){C=L;T=t;u=g;break n}}else{do if(!(a[(V&n)+56>>0]|0)){g=V+36|0;if(!(c[(g&p)>>2]|0)){g=0;ie=756}else{g=Nm(V+64|0,g)|0;ie=755}}else{g=Om(V)|0;if(!g){U=V+59|0;o:do if(!(a[(U&n)>>0]|0)){u=0;g=0}else{w=0;v=0;p:while(1){T=V+(w<<6)+64|0;c[(ke&p)>>2]=0;S=V+(w<<6)+92|0;C=c[(S&p)>>2]|0;J=((C|0)<0)<<31>>31;do if((C|0)>16){I=16;H=0;E=0;while(1){I=iw(I|0,H|0,4)|0;H=G;F=E+1|0;if(!((H|0)<(J|0)|(H|0)==(J|0)&I>>>0>>0)){H=E;break}else E=F}P=Sd;c[(P&p)>>2]=0;c[(P&p)+4>>2]=0;if((C|0)<17){ie=726;break}u=Qm(16)|0;c[(ke&p)>>2]=u;J=(u|0)==0;I=c[(S&p)>>2]|0;if(!((I|0)>0&(J^1))){g=J?7:0;break}N=(H|0)>0;P=0;O=0;do{c[(qd&p)>>2]=0;g=I-P|0;g=Pm(T,(g|0)<16?g:16,Sd,qd)|0;if(g){ie=747;break p}g=Rm(T,c[(qd&p)>>2]|0,pd)|0;do if(N){I=1;J=1;do{J=J<<4;I=I+1|0}while((I|0)!=(F|0));if(!g){H=1;I=u}else{J=c[(pd&p)>>2]|0;ie=743;break}while(1){K=(c[(I&p)+12>>2]|0)+((((O|0)/(J|0)|0|0)%16|0)*56|0)+48|0;I=c[(K&p)>>2]|0;if(!I){I=Qm(16)|0;if(!I){g=7;ie=738;break}g=Rm(T,I,K)|0;if(g){ie=738;break}I=c[(K&p)>>2]|0}I=c[(I&p)+4>>2]|0;H=H+1|0;if((H|0)>=(F|0)){ie=740;break}else J=(J|0)/16|0}if((ie|0)==738){J=c[(pd&p)>>2]|0;ie=743;break}else if((ie|0)==740){J=c[(pd&p)>>2]|0;ie=742;break}}else{J=c[(pd&p)>>2]|0;if(!g){I=u;ie=742}else ie=743}while(0);if((ie|0)==742){ie=0;c[((c[(I&p)+12>>2]|0)+(((O|0)%16|0)*56|0)&p)+48>>2]=J;g=0}else if((ie|0)==743){ie=0;Sm(J)}O=O+1|0;P=P+16|0;I=c[(S&p)>>2]|0}while((P|0)<(I|0)&(g|0)==0)}else{ie=Sd;c[(ie&p)>>2]=0;c[(ie&p)+4>>2]=0;ie=726}while(0);if((ie|0)==726){ie=0;g=Pm(T,C,Sd,ke)|0;u=c[(ke&p)>>2]|0}w=w+1|0;if(g){ie=746;break}if((w|0)>=(d[(U&n)>>0]|0)){g=0;break o}else v=u}if((ie|0)==746)Tm(u);else if((ie|0)==747)Tm(u);Tm(v);u=0}while(0);if(!g){g=Um(V+64|0,u)|0;c[(V&p)+20>>2]=u;if(!g){g=0;ie=755;break}else u=0}Tm(u);ie=755}else ie=756}while(0);if((ie|0)==755){ie=0;a[(M&n)+25>>0]=0;C=L;T=t;u=g;break n}else if((ie|0)==756){ie=0;a[(M&n)+25>>0]=1;break}}while(0);C=L;T=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;u=g}else if((ie|0)==765){u=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;c[(Fd&p)>>2]=c[(s+(t*20|0)&p)+12>>2];g=u;u=rc[c[(s+(t*20|0)&p)+16>>2]&127](c[(u&p)>>2]|0,Fd)|0;ie=766}while(0);do if((ie|0)==548){ie=0;a[((c[(g&p)>>2]|0)&n)+74>>0]=d[(v&n)>>0]&3;C=L;T=t}else if((ie|0)==766){c[(g&p)+60>>2]=0;g=g+25|0;if(!(c[(Fd&p)>>2]|0)){a[(g&n)>>0]=0;ie=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;t=f+(d[(s+(t*20|0)&n)+3>>0]<<2)+108|0;c[(t&p)>>2]=(c[(t&p)>>2]|0)+1;t=ie;ie=19;break}else{a[(g&n)>>0]=1;ie=19;break}}while(0);if((ie|0)==19){ie=0;if(c[(Cc&p)>>2]|0){u=je;g=m;m=x;break b}g=c[(be&p)>>2]|0;if(!((g|0)==0|m>>>0>>0)){y=c[(yc&p)>>2]|0;if(!(lc[g&127](c[(Zd&p)>>2]|0)|0)){y=y+m-((m>>>0)%(y>>>0)|0)|0;C=L;T=t}else{g=m;s=9;m=x;ie=1311;break a}}else{C=L;T=t}}t=T+1|0;if(!u){g=m;u=C}else{g=m;s=u;m=x;ie=1311;break a}}q:switch(ie|0){case 22:{ie=0;S=c[(s+(t*20|0)&p)+4>>2]|0;b[(z+(S*40|0)&o)+8>>1]=4;S=z+(S*40|0)|0;c[(S&p)>>2]=t;c[(S&p)+4>>2]=((t|0)<0)<<31>>31;S=z;T=s;U=W;V=X;r=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;break}case 23:{ie=0;S=c[(s+(t*20|0)&p)+4>>2]|0;r=c[(z+(S*40|0)&p)>>2]|0;b[(z+(S*40|0)&o)+8>>1]=128;S=z;T=s;U=W;V=X;break}case 24:{ie=0;r=c[(s+(t*20|0)&p)+4>>2]|0;u=z+(r*40|0)|0;T=(c[(s+(t*20|0)&p)+12>>2]|0)+-1|0;S=u;c[(S&p)>>2]=T;c[(S&p)+4>>2]=((T|0)<0)<<31>>31;b[(z+(r*40|0)&o)+8>>1]=4;r=c[(s+(t*20|0)&p)+8>>2]|0;S=z;T=s;U=W;V=X;r=(r|0)==0?t:r+-1|0;break}case 25:{ie=0;S=c[(s+(t*20|0)&p)+4>>2]|0;r=(c[(s+((c[(z+(S*40|0)&p)>>2]|0)*20|0)&p)+8>>2]|0)+-1|0;b[(z+(S*40|0)&o)+8>>1]=128;S=z;T=s;U=W;V=X;break}case 26:{ie=0;S=c[(s+(t*20|0)&p)+4>>2]|0;b[(z+(S*40|0)&o)+8>>1]=4;S=z+(S*40|0)|0;r=c[(S&p)>>2]|0;c[(S&p)>>2]=t;c[(S&p)+4>>2]=((t|0)<0)<<31>>31;S=z;T=s;U=W;V=X;break}case 27:{ie=0;if(!(b[(z+((c[(s+(r*20|0)&p)+12>>2]|0)*40|0)&o)+8>>1]&1)){S=z;T=s;U=W;V=X}else ie=28;break}case 44:{ie=0;T=c[(s+(r*20|0)&p)+4>>2]|0;S=u;c[(S&p)>>2]=T;c[(S&p)+4>>2]=((T|0)<0)<<31>>31;S=z;T=s;U=W;V=X;break}case 45:{ie=0;U=c[(s+(r*20|0)&p)+16>>2]|0;T=c[(U&p)+4>>2]|0;S=u;c[(S&p)>>2]=c[(U&p)>>2];c[(S&p)+4>>2]=T;S=z;T=s;U=W;V=X;break}case 46:{ie=0;b[(u&o)+8>>1]=8;h[(u&q)>>3]=+h[(c[(s+(r*20|0)&p)+16>>2]&q)>>3];S=z;T=s;U=W;V=X;break}case 60:{ie=0;J=(c[(s+(r*20|0)&p)+12>>2]|0)-(c[(s+(r*20|0)&p)+8>>2]|0)|0;t=(c[(s+(r*20|0)&p)+4>>2]|0)!=0?257:1;b[(u&o)+8>>1]=t;if((J|0)>0){w=J;A=u;do{v=A+48|0;A=A+40|0;if(!(b[(v&o)>>1]&9312))b[(v&o)>>1]=1;else vg(A);b[(v&o)>>1]=t;w=w+-1|0}while((w|0)>0);S=z;T=s;U=W;V=X;u=u+(J*40|0)|0}else{S=z;T=s;U=W;V=X}break}case 65:{ie=0;u=c[(s+(r*20|0)&p)+4>>2]|0;S=z+(u*40|0)+8|0;b[(S&o)>>1]=e[(S&o)>>1]&65406|1;S=z;T=s;U=W;V=X;u=z+(u*40|0)|0;break}case 66:{ie=0;Xg(u,c[(s+(r*20|0)&p)+16>>2]|0,c[(s+(r*20|0)&p)+4>>2]|0,0,0)|0;a[(u&n)+10>>0]=Jc;S=z;T=s;U=W;V=X;break}case 67:{ie=0;C=(c[(s+(r*20|0)&p)+4>>2]|0)+-1|0;A=c[(Ab&p)>>2]|0;w=A+(C*40|0)|0;v=e[(A+(C*40|0)&o)+8>>1]|0;if(v&18){t=c[(A+(C*40|0)&p)+12>>2]|0;if(v&16384)t=(c[(w&p)>>2]|0)+t|0;if((t|0)>(c[((c[(A+(C*40|0)&p)+32>>2]|0)&p)+88>>2]|0)){t=r;u=x;ie=1316;break c}}Zl(u,w,2048);S=z;T=s;U=W;V=X;break}case 72:{ie=0;t=c[(s+(r*20|0)&p)+12>>2]|0;v=c[(s+(r*20|0)&p)+8>>2]|0;J=t+v|0;u=z+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)|0;v=z+(v*40|0)|0;while(1){_l(v,u);t=t+-1|0;if(!t)break;else{u=u+40|0;v=v+40|0}}S=z;T=s;U=W;V=X;u=z+(J*40|0)|0;break}case 74:{ie=0;r=c[(s+(t*20|0)&p)+12>>2]|0;u=z+((c[(s+(t*20|0)&p)+4>>2]|0)*40|0)|0;J=z+((c[(s+(t*20|0)&p)+8>>2]|0)*40|0)|0;while(1){Zl(J,u,4096);if((b[(J&o)+8>>1]&4096)!=0?(Vl(J)|0)!=0:0){y=ge;z=je;r=m;m=x;ie=1317;break a}if(!r){S=z;T=s;U=W;V=X;u=J;r=t;break q}r=r+-1|0;u=u+40|0;J=J+40|0}}case 79:{ie=0;u=z+((c[(s+(r*20|0)&p)+8>>2]|0)*40|0)|0;Zl(u,z+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)|0,4096);S=z;T=s;U=W;V=X;break}case 94:{ie=0;K=c[(s+(t*20|0)&p)+4>>2]|0;J=z+(K*40|0)|0;L=c[(s+(t*20|0)&p)+8>>2]|0;I=z+(L*40|0)|0;M=c[(s+(t*20|0)&p)+12>>2]|0;u=z+(M*40|0)|0;H=z+(K*40|0)+8|0;E=b[(H&o)>>1]|0;F=z+(L*40|0)+8|0;C=b[(F&o)>>1]|0;if((C|E)&1){r=z+(M*40|0)+8|0;if(!(b[(r&o)>>1]&9312)){b[(r&o)>>1]=1;S=z;T=s;U=W;V=X;r=t;break}else{vg(u);S=z;T=s;U=W;V=X;r=t;break}}if(E&16384){if(Rg(J)|0){y=ge;z=je;r=m;m=x;ie=1317;break a}C=b[(F&o)>>1]|0}if((C&16384)!=0?(Rg(I)|0)!=0:0){y=ge;z=je;r=m;m=x;ie=1317;break a}if((b[(H&o)>>1]&18)==0?(bm(J,Jc,0)|0)!=0:0){y=ge;z=je;r=m;m=x;ie=1317;break a}if((b[(F&o)>>1]&18)==0?(bm(I,Jc,0)|0)!=0:0){y=ge;z=je;r=m;m=x;ie=1317;break a}E=z+(K*40|0)+12|0;A=z+(L*40|0)+12|0;r=(c[(A&p)>>2]|0)+(c[(E&p)>>2]|0)|0;if((r|0)>(c[(zb&p)>>2]|0)){u=x;ie=1316;break c}v=(M|0)==(L|0);if(eh(u,r+2|0,v&1)|0){y=ge;z=je;r=m;m=x;ie=1317;break a}w=z+(M*40|0)+8|0;b[(w&o)>>1]=e[(w&o)>>1]&48640|2;C=z+(M*40|0)+16|0;if(!v)kw(c[(C&p)>>2]|0,c[(z+(L*40|0)&p)+16>>2]|0,c[(A&p)>>2]|0)|0;kw((c[(C&p)>>2]|0)+(c[(A&p)>>2]|0)|0,c[(z+(K*40|0)&p)+16>>2]|0,c[(E&p)>>2]|0)|0;a[((c[(C&p)>>2]|0)+r&n)>>0]=0;a[((c[(C&p)>>2]|0)+r&n)+1>>0]=0;b[(w&o)>>1]=e[(w&o)>>1]|512;c[(z+(M*40|0)&p)+12>>2]=r;a[(z+(M*40|0)&n)+10>>0]=Jc;S=z;T=s;U=W;V=X;r=t;break}case 112:{ie=0;V=c[(s+(r*20|0)&p)+4>>2]|0;N=z+(V*40|0)|0;S=cm(N)|0;w=c[(s+(r*20|0)&p)+8>>2]|0;O=z+(w*40|0)|0;T=cm(O)|0;U=c[(s+(r*20|0)&p)+12>>2]|0;u=z+(U*40|0)|0;r:do if(!((b[(z+(w*40|0)&o)+8>>1]|b[(z+(V*40|0)&o)+8>>1])&1)){s:do if(!((S&4&T)<<16>>16))L=0;else{t=N;C=c[(t&p)>>2]|0;t=c[(t&p)+4>>2]|0;F=O;v=c[(F&p)>>2]|0;F=c[(F&p)+4>>2]|0;J=d[(P&n)>>0]|0;t:do if((J|0)==89){if((t|0)>-1|(t|0)==-1&C>>>0>4294967295){V=dw(-1,2147483647,v|0,F|0)|0;w=G;if(((F|0)>0|(F|0)==0&v>>>0>0)&((w|0)<(t|0)|(w|0)==(t|0)&V>>>0>>0)){L=1;break s}}else if((F|0)<0?(w=dw(1,-2147483648,v|0,F|0)|0,A=G,V=jw(C|0,t|0,1,0)|0,M=G,(A|0)>(M|0)|(A|0)==(M|0)&w>>>0>V>>>0):0){L=1;break s}v=jw(v|0,F|0,C|0,t|0)|0;t=G}else if((J|0)==91){L=qw(v|0,F|0,0,1)|0;K=G;E=rw(v|0,F|0,0,1)|0;A=G;J=qw(C|0,t|0,0,1)|0;I=G;M=rw(C|0,t|0,0,1)|0;w=G;V=jw(v|0,F|0,-1,0)|0;pe=G;H=jw(C|0,t|0,-1,0)|0;qe=G;H=qe>>>0<1|(qe|0)==1&H>>>0<4294967295;do if(pe>>>0<1|(pe|0)==1&V>>>0<4294967295)if(H){v=sw(v|0,F|0,C|0,t|0)|0;t=G;break t}else{H=sw(J|0,I|0,E|0,A|0)|0;F=G;break}else{if(!H){L=1;break s}H=sw(M|0,w|0,L|0,K|0)|0;F=G}while(0);V=jw(H|0,F|0,-2147483648,0)|0;v=G;if(v>>>0>0|(v|0)==0&V>>>0>4294967295){L=1;break s}J=sw(M|0,w|0,E|0,A|0)|0;I=G;if((I|0)>-1|(I|0)==-1&J>>>0>4294967295){V=dw(-1,2147483647,0,H|0)|0;w=G;if(((F|0)>0|(F|0)==0&H>>>0>0)&((w|0)<(I|0)|(w|0)==(I|0)&V>>>0>>0)){L=1;break s}}else if((F|0)<0?(w=dw(1,-2147483648,0,H|0)|0,t=G,V=jw(J|0,I|0,1,0)|0,v=G,(t|0)>(v|0)|(t|0)==(v|0)&w>>>0>V>>>0):0){L=1;break s}v=jw(0,H|0,J|0,I|0)|0;t=G}else if((J|0)==90){if((C|0)==0&(t|0)==-2147483648){if((F|0)>-1|(F|0)==-1&v>>>0>4294967295){L=1;break s}t=F^-2147483648;break}if((t|0)<0|(t|0)==0&C>>>0<1){V=dw(0,0,C|0,t|0)|0;M=G;w=dw(-1,2147483647,v|0,F|0)|0;A=G;if(((F|0)>0|(F|0)==0&v>>>0>0)&((A|0)<(M|0)|(A|0)==(M|0)&w>>>0>>0)){L=1;break s}}else if((F|0)<0?(w=dw(1,-2147483648,v|0,F|0)|0,A=G,V=dw(1,0,C|0,t|0)|0,M=G,(A|0)>(M|0)|(A|0)==(M|0)&w>>>0>V>>>0):0){L=1;break s}v=dw(v|0,F|0,C|0,t|0)|0;t=G}else if((J|0)==92){if((C|0)==0&(t|0)==0)break r;if((C|0)==-1&(t|0)==-1&((v|0)==0&(F|0)==-2147483648)){L=1;break s}v=qw(v|0,F|0,C|0,t|0)|0;t=G}else{if((C|0)==-1){if((t|0)==-1){C=1;t=0}}else if((C|0)==0?(t|0)==0:0)break r;v=rw(v|0,F|0,C|0,t|0)|0;t=G}while(0);S=u;c[(S&p)>>2]=v;c[(S&p)+4>>2]=t;S=z+(U*40|0)+8|0;b[(S&o)>>1]=e[(S&o)>>1]&48640|4;S=z;T=s;U=W;V=X;break q}while(0);D=+Ug(N);B=+Ug(O);C=d[(P&n)>>0]|0;if((C|0)==89)B=D+B;else if((C|0)==90)B=B-D;else if((C|0)==91)B=D*B;else if((C|0)==92){if(D==0.0)break;B=B/D}else{E=~~D>>>0;C=+R(D)>=1.0?(D>0.0?~~+da(+Q(D/4294967296.0),4294967295.0)>>>0:~~+ba((D-+(~~D>>>0))/4294967296.0)>>>0):0;I=~~B>>>0;J=+R(B)>=1.0?(B>0.0?~~+da(+Q(B/4294967296.0),4294967295.0)>>>0:~~+ba((B-+(~~B>>>0))/4294967296.0)>>>0):0;if(!E){if(!C)break}else if((E|0)==-1?(C|0)==-1:0){E=1;C=0}V=rw(I|0,J|0,E|0,C|0)|0;B=+(V>>>0)+4294967296.0*+(G|0)}h[(ke&q)>>3]=B;h[(Sd&q)>>3]=+h[(ke&q)>>3];if(!(+h[(ke&q)>>3]!=+h[(Sd&q)>>3])){h[(u&q)>>3]=B;V=z+(U*40|0)+8|0;b[(V&o)>>1]=e[(V&o)>>1]&48640|8;if(((T|S)&8)!=0|L<<24>>24!=0){S=z;T=s;U=W;V=X;break q}dm(u);S=z;T=s;U=W;V=X;break q}}while(0);t=z+(U*40|0)+8|0;if(!(b[(t&o)>>1]&9312)){b[(t&o)>>1]=1;S=z;T=s;U=W;V=X;break}else{vg(u);S=z;T=s;U=W;V=X;break}}case 166:{ie=0;t=c[(s+(r*20|0)&p)+4>>2]|0;if(t){u=z+(t*40|0)|0;t=z+(t*40|0)+8|0;if(!(b[(t&o)>>1]&9312)){S=u;c[(S&p)>>2]=0;c[(S&p)+4>>2]=0;b[(t&o)>>1]=4;S=z;T=s;U=W;V=X;u=J;break}else{Zg(u,0,0);S=z;T=s;U=W;V=X;u=J;break}}else{S=z;T=s;U=W;V=X;u=J}break}case 184:{ie=0;C=c[(s+(r*20|0)&p)+4>>2]|0;t=c[(s+(r*20|0)&p)+8>>2]|0;K=c[(s+(r*20|0)&p)+12>>2]|0;u=z+(K*40|0)|0;if((b[(z+(t*40|0)&o)+8>>1]|b[(z+(C*40|0)&o)+8>>1])&1){t=z+(K*40|0)+8|0;if(!(b[(t&o)>>1]&9312)){b[(t&o)>>1]=1;S=z;T=s;U=W;V=X;break}else{vg(u);S=z;T=s;U=W;V=X;break}}A=Vg(z+(t*40|0)|0)|0;L=G;J=Vg(z+(C*40|0)|0)|0;I=G;t=a[(H&n)>>0]|0;C=t&255;do if(t<<24>>24==86){A=J|A;t=I|L}else if(t<<24>>24!=85)if(!((J|0)==0&(I|0)==0)){if((I|0)<0){t=175-C&255;C=dw(0,0,J|0,I|0)|0;if((I|0)>-1|(I|0)==-1&J>>>0>4294967232){I=G;ie=194}}else{C=J;ie=194}if((ie|0)==194){ie=0;if(!((I|0)>0|(I|0)==0&C>>>0>63)){if(t<<24>>24==87){A=iw(A|0,L|0,C|0)|0;t=G;break}A=mw(A|0,L|0,C|0)|0;t=G;if((L|0)>=0)break;V=dw(64,0,C|0,I|0)|0;V=iw(-1,-1,V|0)|0;A=V|A;t=G|t;break}}if((L|0)>-1|(L|0)==-1&A>>>0>4294967295){A=0;t=0}else{t=(t<<24>>24!=87)<<31>>31;A=t;t=((t|0)<0)<<31>>31}}else t=L;else{A=J&A;t=I&L}while(0);S=u;c[(S&p)>>2]=A;c[(S&p)+4>>2]=t;S=z+(K*40|0)+8|0;b[(S&o)>>1]=e[(S&o)>>1]&48640|4;S=z;T=s;U=W;V=X;break}case 202:{ie=0;T=c[(s+(r*20|0)&p)+4>>2]|0;S=z+(T*40|0)|0;U=Vg(S)|0;T=z+(T*40|0)+8|0;b[(T&o)>>1]=e[(T&o)>>1]&48640|4;T=c[(s+(r*20|0)&p)+8>>2]|0;T=jw(U|0,G|0,T|0,((T|0)<0)<<31>>31|0)|0;c[(S&p)>>2]=T;c[(S&p)+4>>2]=G;S=z;T=s;U=W;V=X;break}case 203:{ie=0;u=c[(s+(r*20|0)&p)+4>>2]|0;v=z+(u*40|0)+8|0;t=b[(v&o)>>1]|0;if(!(t&4)){fm(z+(u*40|0)|0,67,Jc);t=b[(v&o)>>1]|0;if(!(t&4)){E=c[(s+(r*20|0)&p)+8>>2]|0;if(!E){t=r;u=20;ie=1318;break c}S=z;T=s;U=W;V=X;u=J;r=E+-1|0;break}}b[(v&o)>>1]=t&48640|4;S=z;T=s;U=W;V=X;u=J;break}case 208:{ie=0;t=c[(s+(r*20|0)&p)+4>>2]|0;u=z+(t*40|0)+8|0;if(!(b[(u&o)>>1]&4)){S=z;T=s;U=W;V=X;u=J}else{S=z+(t*40|0)|0;h[(S&q)>>3]=+Ug(S);b[(u&o)>>1]=e[(u&o)>>1]&48640|8;S=z;T=s;U=W;V=X;u=J}break}case 213:{ie=0;N=c[(s+(t*20|0)&p)+4>>2]|0;L=z+(N*40|0)|0;w=c[(s+(t*20|0)&p)+12>>2]|0;K=z+(w*40|0)|0;N=z+(N*40|0)+8|0;F=b[(N&o)>>1]|0;w=z+(w*40|0)+8|0;M=b[(w&o)>>1]|0;H=F&65535;A=M&65535;v=s+(t*20|0)+3|0;J=d[(v&n)>>0]|0;do if(!((M|F)&1)){J=J&71;if(J>>>0>66){if((H&14|0)==2){rh(L,0);A=b[(w&o)>>1]|0}else A=M;if((A&14)==2){rh(K,0);J=F;E=M}else{J=F;E=M}}else if((J|0)==66){if((H&2|0)!=0|(H&12|0)==0){I=M;J=F}else{bm(L,Jc,1)|0;I=b[(w&o)>>1]|0;J=(e[(N&o)>>1]&65024|H&511)&65535}V=I&65535;if((V&2|0)!=0|(V&12|0)==0)E=M;else{bm(K,Jc,1)|0;E=(e[(w&o)>>1]&65024|A&511)&65535}}else{J=F;E=M}if(b[(N&o)>>1]&16384){Rg(L)|0;J=J&49151}if(b[(w&o)>>1]&16384){Rg(K)|0;E=E&49151}if(a[(ge&n)>>0]|0){y=ge;z=je;r=m;m=x;ie=1317;break a}V=hm(K,L,c[(s+(t*20|0)&p)+16>>2]|0)|0;I=a[(C&n)>>0]|0;r=t;C=V}else{if(J&128){J=F;E=M;r=t;C=(F&1&M)<<16>>16!=0&(A&256|0)==0&1^1;break}if(J&32){u=c[(s+(t*20|0)&p)+8>>2]|0;S=z+(u*40|0)+8|0;b[(S&o)>>1]=e[(S&o)>>1]&48640|1;S=z;T=s;U=W;V=X;u=z+(u*40|0)|0;r=t;break q}if(!(J&16)){S=z;T=s;U=W;V=X;r=t;break q}S=z;T=s;U=W;V=X;r=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;break q}while(0);switch(I&255|0){case 79:{C=(C|0)==0&1;break}case 78:{C=(C|0)!=0&1;break}case 82:{C=C>>>31;break}case 81:{C=(C|0)<1&1;break}case 80:{C=(C|0)>0&1;break}default:C=C>>>31^1}if(!(a[(v&n)>>0]&32)){if(C)r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0}else{V=c[(s+(r*20|0)&p)+8>>2]|0;u=z+(V*40|0)|0;V=z+(V*40|0)+8|0;b[(V&o)>>1]=e[(V&o)>>1]&48640|4;V=u;c[(V&p)>>2]=C;c[(V&p)+4>>2]=0}b[(N&o)>>1]=J;b[(w&o)>>1]=E;S=z;T=s;U=W;V=X;break}case 248:{ie=0;S=z;T=s;U=c[(s+(r*20|0)&p)+16>>2]|0;V=X;break}case 249:{ie=0;w=(a[(s+(r*20|0)&n)+3>>0]&1)==0?0:W;F=c[(s+(r*20|0)&p)+12>>2]|0;H=c[(s+(r*20|0)&p)+16>>2]|0;I=c[(s+(r*20|0)&p)+4>>2]|0;J=c[(s+(r*20|0)&p)+8>>2]|0;if((F|0)>0){t=(w|0)==0;v=H+16|0;E=0;while(1){if(t)A=E;else A=c[(w+(E<<2)&p)>>2]|0;C=a[((c[(v&p)>>2]|0)+E&n)>>0]|0;A=hm(z+((A+I|0)*40|0)|0,z+((A+J|0)*40|0)|0,c[(H+(E<<2)&p)+20>>2]|0)|0;E=E+1|0;if(A)break;if((E|0)>=(F|0)){S=z;T=s;U=0;V=0;break q}}S=z;T=s;U=0;V=C<<24>>24==0?A:0-A|0}else{S=z;T=s;U=0;V=X}break}case 256:{ie=0;if((X|0)<0){S=z;T=s;U=W;V=X;r=(c[(s+(t*20|0)&p)+4>>2]|0)+-1|0;break}if(!X){S=z;T=s;U=W;V=0;r=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;break}else{S=z;T=s;U=W;V=X;r=(c[(s+(t*20|0)&p)+12>>2]|0)+-1|0;break}}case 261:{ie=0;t=c[(s+(r*20|0)&p)+4>>2]|0;if(!(b[(z+(t*40|0)&o)+8>>1]&1)){u=Vg(z+(t*40|0)|0)|0;u=(u|0)!=0|(G|0)!=0?3:0}else u=6;t=c[(s+(r*20|0)&p)+8>>2]|0;if(!(b[(z+(t*40|0)&o)+8>>1]&1)){t=Vg(z+(t*40|0)|0)|0;t=((t|0)!=0|(G|0)!=0)&1}else t=2;t=a[(((a[(C&n)>>0]|0)==72?41680:41696)+t+u&n)>>0]|0;u=c[(s+(r*20|0)&p)+12>>2]|0;J=z+(u*40|0)|0;if(t<<24>>24==2){S=z+(u*40|0)+8|0;b[(S&o)>>1]=e[(S&o)>>1]&48640|1;S=z;T=s;U=W;V=X;u=J;break}else{S=J;c[(S&p)>>2]=t&255;c[(S&p)+4>>2]=0;S=z+(u*40|0)+8|0;b[(S&o)>>1]=e[(S&o)>>1]&48640|4;S=z;T=s;U=W;V=X;u=J;break}}case 268:{ie=0;t=c[(s+(r*20|0)&p)+4>>2]|0;u=c[(s+(r*20|0)&p)+8>>2]|0;J=z+(u*40|0)|0;u=z+(u*40|0)+8|0;if(!(b[(u&o)>>1]&9312))b[(u&o)>>1]=1;else vg(J);if(!(b[(z+(t*40|0)&o)+8>>1]&1)){b[(u&o)>>1]=4;T=Vg(z+(t*40|0)|0)|0;S=J;c[(S&p)>>2]=(T|0)==0&(G|0)==0&1;c[(S&p)+4>>2]=0;S=z;T=s;U=W;V=X;u=J}else{S=z;T=s;U=W;V=X;u=J}break}case 273:{ie=0;t=c[(s+(r*20|0)&p)+4>>2]|0;u=c[(s+(r*20|0)&p)+8>>2]|0;J=z+(u*40|0)|0;u=z+(u*40|0)+8|0;if(!(b[(u&o)>>1]&9312))b[(u&o)>>1]=1;else vg(J);if(!(b[(z+(t*40|0)&o)+8>>1]&1)){b[(u&o)>>1]=4;T=Vg(z+(t*40|0)|0)|0;S=J;c[(S&p)>>2]=~T;c[(S&p)+4>>2]=~G;S=z;T=s;U=W;V=X;u=J}else{S=z;T=s;U=W;V=X;u=J}break}case 278:{ie=0;t=(c[(Hb&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]|0)|0;if(!(a[(t&n)>>0]|0)){a[(t&n)>>0]=1;S=z;T=s;U=W;V=X;break}else{S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0;break}}case 281:{ie=0;t=c[(s+(r*20|0)&p)+4>>2]|0;if(!(b[(z+(t*40|0)&o)+8>>1]&1)){t=+Ug(z+(t*40|0)|0)!=0.0;t=(t^(a[(C&n)>>0]|0)==46)&1}else t=c[(s+(r*20|0)&p)+12>>2]|0;if(!t){S=z;T=s;U=W;V=X}else{S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0}break}case 286:{ie=0;if(!(b[(z+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)&o)+8>>1]&1)){S=z;T=s;U=W;V=X}else{S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0}break}case 288:{ie=0;if(!(b[(z+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)&o)+8>>1]&1)){S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0}else{S=z;T=s;U=W;V=X}break}case 290:{ie=0;T=c[(s+(t*20|0)&p)+8>>2]|0;M=c[(s+(t*20|0)&p)+12>>2]|0;A=z+(M*40|0)|0;S=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;w=c[(S&p)+80>>2]|0;v=c[(S&p)>>2]|0;if(!(a[(S&n)+26>>0]|0)){if((v|0)!=0?(a[(v&n)+73>>0]|0)!=1:0){Td=jm(S)|0;ie=295}}else{Td=im(S)|0;ie=295}if((ie|0)==295?(ie=0,(Td|0)!=0):0){u=Td;ie=1318;break c}L=S+60|0;C=c[($d&p)>>2]|0;u:do if((c[(L&p)>>2]|0)==(C|0)){C=b[(S&o)+22>>1]|0;if((C&65535|0)>(T|0))ie=350;else{I=S+72|0;ie=318}}else{do if(a[(S&n)+25>>0]|0){if(!v){J=c[(S&p)+16>>2]|0;F=c[(z+(J*40|0)&p)+12>>2]|0;c[(S&p)+68>>2]=F;c[(S&p)+64>>2]=F;J=c[(z+(J*40|0)&p)+16>>2]|0;K=S+76|0;c[(K&p)>>2]=J;break}r=z+(M*40|0)+8|0;if(!(b[(r&o)>>1]&9312)){b[(r&o)>>1]=1;break u}else{vg(A);break u}}else{if(!(a[(S&n)+27>>0]&4)){km(v,td);I=e[(v&o)+40>>1]|0;J=c[(v&p)+32>>2]|0;c[(S&p)+76>>2]=J;C=c[(td&p)>>2]|0;c[(S&p)+64>>2]=C}else{C=S+64|0;lm(v,C);I=e[(v&o)+40>>1]|0;J=c[(v&p)+32>>2]|0;c[(S&p)+76>>2]=J;C=c[(C&p)>>2]|0}c[(S&p)+68>>2]=C>>>0>I>>>0?I:C;if(C>>>0>(c[(zb&p)>>2]|0)>>>0){u=x;ie=1316;break c}K=S+76|0;C=c[($d&p)>>2]|0;F=I}while(0);c[(L&p)>>2]=C;C=a[(J&n)>>0]|0;if(C<<24>>24>-1){H=C&255;c[(kd&p)>>2]=H;J=1}else{J=mm(J,kd)|0;H=c[(kd&p)>>2]|0}I=S+72|0;c[(I&p)>>2]=J&255;b[(S&o)+22>>1]=0;c[(w&p)>>2]=H;if(H>>>0>98307){u=x;ie=313;break c}if(H>>>0>(c[(S&p)+64>>2]|0)>>>0){u=x;ie=313;break c}if(F>>>0>>0){c[(K&p)>>2]=0;c[(S&p)+68>>2]=0;C=0;ie=318}else{C=0;ie=318}}while(0);do if((ie|0)==318){ie=0;J=c[(I&p)>>2]|0;H=c[(w&p)>>2]|0;if(J>>>0>>0){P=S+76|0;F=c[(P&p)>>2]|0;if(!F){U=Jd+0|0;V=U+40|0;do{c[(U&p)>>2]=0;U=U+4|0}while((U|0)<(V|0));J=nm(v,0,c[(w&p)>>2]|0,((d[(S&n)+27>>0]|0)>>>2&1^1)&255,Jd)|0;if(J){s=J;u=x;ie=1309;break c}C=S+22|0;O=C;C=b[(C&o)>>1]|0;J=c[(I&p)>>2]|0;H=c[(w&p)>>2]|0;N=c[(Jb&p)>>2]|0}else{O=S+22|0;N=F}E=C&65535;K=c[(w+(E<<2)&p)>>2]|0;c[(kd&p)>>2]=K;C=N+H|0;J=N+J|0;while(1){F=a[(J&n)>>0]|0;if(F<<24>>24>-1){L=F&255;c[(Ld&p)>>2]=L;J=J+1|0}else{J=J+((mm(J,Ld)|0)&255)|0;L=c[(Ld&p)>>2]|0}c[(S+(E<<2)&p)+84>>2]=L;if(L>>>0>11)F=(L+-12|0)>>>1;else F=d[(L&n)+34336>>0]|0;L=K+F|0;c[(kd&p)>>2]=L;if(L>>>0>>0){J=L;F=E;ie=331;break}F=E+1|0;c[(w+(F<<2)&p)>>2]=L;if((E|0)<(T|0)&J>>>0>>0){K=L;E=F}else break}if((ie|0)==331){ie=0;L=J;J=N+(H+1)|0}b[(O&o)>>1]=F;c[(I&p)>>2]=J-N;if(!(c[(P&p)>>2]|0)){if(!((b[(Kb&o)>>1]&9312)==0&(c[(Lb&p)>>2]|0)==0))Qg(Jd);b[(Kb&o)>>1]=1}if(J>>>0>=C>>>0){if(J>>>0>C>>>0){u=x;ie=343;break c}if((L|0)==(c[(S&p)+64>>2]|0))C=L;else{u=x;ie=343;break c}}else C=c[(S&p)+64>>2]|0;if(L>>>0>C>>>0){u=x;ie=343;break c}C=b[(O&o)>>1]|0}if((C&65535|0)<=(T|0)){if((a[(s+(t*20|0)&n)+1>>0]|0)==-8){Zl(A,c[(s+(t*20|0)&p)+16>>2]|0,2048);r=z+(M*40|0)+8|0;break}r=z+(M*40|0)+8|0;if(!(b[(r&o)>>1]&9312)){b[(r&o)>>1]=1;break}else{vg(A);break}}else ie=350}while(0);if((ie|0)==350){ie=0;r=z+(M*40|0)+8|0;if(b[(r&o)>>1]&9312)vg(A);J=c[(S+(T<<2)&p)+84>>2]|0;c[(Ld&p)>>2]=J;do if((c[(S&p)+68>>2]|0)>>>0<(c[(w+(T+1<<2)&p)>>2]|0)>>>0){V=a[(s+(t*20|0)&n)+3>>0]|0;if(!((V&255)>63?J>>>0>11&(J&1|0)==0|V<<24>>24<0:0)){if(J>>>0>11)C=(J+-12|0)>>>1;else C=d[(J&n)+34336>>0]|0;if(C){C=nm(v,c[(w+(T<<2)&p)>>2]|0,C,((d[(S&n)+27>>0]|0)>>>2&1^1)&255,A)|0;if(C){s=C;u=x;ie=1309;break c}om(c[(z+(M*40|0)&p)+16>>2]|0,J,A)|0;b[(r&o)>>1]=e[(r&o)>>1]&61439;break}}om(J>>>0<14?td:0,J,A)|0}else om((c[(S&p)+76>>2]|0)+(c[(w+(T<<2)&p)>>2]|0)|0,J,A)|0;while(0);a[(z+(M*40|0)&n)+10>>0]=Jc}w=e[(r&o)>>1]|0;if((w&4096|0)!=0?(Ac=z+(M*40|0)+16|0,Bc=c[(Ac&p)>>2]|0,(Bc|0)!=0):0){v=c[(z+(M*40|0)&p)+12>>2]|0;if(fh(A,v+2|0)|0){y=ge;z=je;r=m;m=x;ie=1317;break a}kw(c[(Ac&p)>>2]|0,Bc|0,v|0)|0;a[((c[(Ac&p)>>2]|0)+v&n)>>0]=0;a[((c[(Ac&p)>>2]|0)+v&n)+1>>0]=0;b[(r&o)>>1]=w&18|512;S=z;T=s;U=W;V=X;r=t}else{S=z;T=s;U=W;V=X;r=t}break}case 368:{ie=0;v=c[(s+(r*20|0)&p)+16>>2]|0;t=a[(v&n)>>0]|0;if(!(t<<24>>24)){S=z;T=s;U=W;V=X}else{w=z+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)|0;while(1){v=v+1|0;fm(w,t,Jc);t=a[(v&n)>>0]|0;if(!(t<<24>>24)){S=z;T=s;U=W;V=X;break}else w=w+40|0}}break}case 371:{ie=0;U=c[(s+(t*20|0)&p)+4>>2]|0;C=c[(s+(t*20|0)&p)+16>>2]|0;V=z+(U*40|0)|0;U=z+((U+-1+(c[(s+(t*20|0)&p)+8>>2]|0)|0)*40|0)|0;A=a[(Mb&n)>>0]|0;T=c[(s+(t*20|0)&p)+12>>2]|0;u=z+(T*40|0)|0;if(C){r=a[(C&n)>>0]|0;v=V;while(1){C=C+1|0;fm(v,r,Jc);r=a[(C&n)>>0]|0;if(!(r<<24>>24))break;else v=v+40|0}}N=(A&255)>3;L=0;K=0;O=0;C=0;w=U;while(1){E=b[(w&o)+8>>1]|0;I=E&65535;v:do if(!(I&1)){do if(!(I&4)){if(I&8){J=7;ie=388;break v}J=c[(w&p)+12>>2]|0;if(I&16384)J=(c[(w&p)>>2]|0)+J|0;J=(J<<1)+12|I>>>1&1}else{I=w;J=c[(I&p)>>2]|0;I=c[(I&p)+4>>2]|0;H=ew(J|0,I|0,63)|0;H=H^J;F=G^I;if(F>>>0<0|(F|0)==0&H>>>0<128){if(!((J&1|0)==(J|0)&0==(I|0)&N)){J=1;ie=388;break v}J=H+8|0;break}if(F>>>0<0|(F|0)==0&H>>>0<32768){J=2;ie=388;break v}if(F>>>0<0|(F|0)==0&H>>>0<8388608){J=3;ie=388;break v}if(F>>>0<0|(F|0)==0&H>>>0<2147483648){J=4;ie=388;break v}J=F>>>0<32768|(F|0)==32768&H>>>0<0?5:6;ie=388;break v}while(0);c[(w&p)+28>>2]=J;if(J>>>0>11){I=J;J=(J+-12|0)>>>1}else ie=391}else{J=0;ie=388}while(0);if((ie|0)==388){c[(w&p)+28>>2]=J;ie=391}if((ie|0)==391){ie=0;I=J;J=d[(J&n)+34336>>0]|0}do if(E&16384)if((L|0)==0&(K|0)==0){E=c[(w&p)>>2]|0;J=J-E|0;E=E+C|0;break}else{Rg(w)|0;E=C;break}else E=C;while(0);L=jw(J|0,((J|0)<0)<<31>>31|0,L|0,K|0)|0;K=G;if(I>>>0<128)J=1;else{H=0;J=0;do{J=J+1|0;I=mw(I|0,H|0,7)|0;H=G}while(((I|0)!=0|(H|0)!=0)&(J|0)<9)}J=J+O|0;w=w+-40|0;if(w>>>0>>0){F=J;P=E;break}else{O=J;C=E}}if((F|0)<127)I=F+1|0;else{I=F;H=((F|0)<0)<<31>>31;J=0;do{J=J+1|0;I=mw(I|0,H|0,7)|0;H=G}while(((I|0)!=0|(H|0)!=0)&(J|0)<9);F=J+F|0;I=F;H=((F|0)<0)<<31>>31;C=0;do{C=C+1|0;I=mw(I|0,H|0,7)|0;H=G}while(((I|0)!=0|(H|0)!=0)&(C|0)<9);I=((J|0)<(C|0)&1)+F|0}J=((I|0)<0)<<31>>31;E=jw(I|0,J|0,L|0,K|0)|0;N=G;S=c[(zb&p)>>2]|0;O=((S|0)<0)<<31>>31;if((N|0)>(O|0)|(N|0)==(O|0)&E>>>0>S>>>0){u=x;ie=1316;break c}if(fh(u,E)|0){y=ge;z=je;r=m;m=x;ie=1317;break a}A=c[(z+(T*40|0)&p)+16>>2]|0;if(I>>>0<128){a[(A&n)>>0]=I;K=1;L=V}else{K=(pm(A,I,J)|0)&255;L=V}while(1){H=c[(L&p)+28>>2]|0;if(H>>>0<128){a[(A+K&n)>>0]=H;J=1}else J=(pm(A+K|0,H,0)|0)&255;K=J+K|0;J=A+I|0;if(!(H>>>0<8&(H|0)!=0))if(H>>>0>11){C=c[(L&p)+12>>2]|0;kw(J|0,c[(L&p)+16>>2]|0,C|0)|0}else C=0;else{J=L;if(H>>>0>11)C=(H+-12|0)>>>1;else C=d[(H&n)+34336>>0]|0;F=c[(J&p)>>2]|0;J=c[(J&p)+4>>2]|0;H=C;while(1){H=H+-1|0;a[(A+H+I&n)>>0]=F;F=mw(F|0,J|0,8)|0;if(!H)break;else J=G}}L=L+40|0;if(L>>>0>U>>>0)break;else I=C+I|0}c[(z+(T*40|0)&p)+12>>2]=E;r=z+(T*40|0)+8|0;b[(r&o)>>1]=16;if(P){c[(u&p)>>2]=P;b[(r&o)>>1]=16400}a[(z+(T*40|0)&n)+10>>0]=1;S=z;T=s;U=W;V=X;r=t;break}case 446:{ie=0;if((c[(ae&p)>>2]|0)>0){u=x;ie=447;break c}if(!v)w=0;else{t=v;while(1)if(!(a[(t&n)>>0]|0))break;else t=t+1|0;w=t-v&1073741823}u=sm(le,0,(c[(Ob&p)>>2]|0)+(c[(Nb&p)>>2]|0)|0)|0;if(u){t=r;ie=1318;break c}t=mh(le,w+33|0,0)|0;if(!t){S=z;T=s;U=W;V=X;u=L}else{V=t+32|0;c[(t&p)>>2]=V;kw(V|0,v|0,w+1|0)|0;if(!(a[(ee&n)>>0]|0))c[(Ob&p)>>2]=(c[(Ob&p)>>2]|0)+1;else{a[(ee&n)>>0]=0;a[(Sb&n)>>0]=1}c[(t&p)+24>>2]=c[(Pb&p)>>2];c[(Pb&p)>>2]=t;S=Qb;T=c[(S&p)+4>>2]|0;U=t+8|0;c[(U&p)>>2]=c[(S&p)>>2];c[(U&p)+4>>2]=T;U=Rb;T=c[(U&p)+4>>2]|0;S=t+16|0;c[(S&p)>>2]=c[(U&p)>>2];c[(S&p)+4>>2]=T;S=z;T=s;U=W;V=X;u=L}break}case 486:{c[(Ob&p)>>2]=(c[(Ob&p)>>2]|0)+-1;ie=488;break}case 525:{ie=0;wm(c[((c[(Xd&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<4)&p)+4>>2]|0,c[(s+(r*20|0)&p)+12>>2]|0,Yc);T=c[(Yc&p)>>2]|0;S=u;c[(S&p)>>2]=T;c[(S&p)+4>>2]=((T|0)<0)<<31>>31;S=z;T=s;U=W;V=X;break}case 558:{ie=0;v=xm(f,c[(s+(t*20|0)&p)+4>>2]|0,c[(s+(t*20|0)&p)+8>>2]|0,-1,1)|0;if(!v){y=ge;z=je;r=m;m=x;ie=1317;break a}r=c[(s+(t*20|0)&p)+16>>2]|0;C=v+8|0;c[(C&p)>>2]=r;A=c[(s+(t*20|0)&p)+12>>2]|0;r=e[(r&o)+6>>1]<<2;u=r+148|0;w=mh(le,u,0)|0;if(!w){s=v;u=x;ie=560;break c}fw(w|0,0,u|0)|0;c[(v&p)+56>>2]=w;V=w+128|0;c[(w&p)+28>>2]=V;kw(V|0,c[(C&p)>>2]|0,r+20|0)|0;c[(w&p)+140>>2]=0;if(A)b[(w&o)+134>>1]=A;r=c[(Xd&p)>>2]|0;u=c[((c[((c[(r&p)+4>>2]|0)&p)+4>>2]|0)&p)+32>>2]|0;c[(w&p)+12>>2]=u;a[(w&n)+59>>0]=1;a[(w&n)+57>>0]=0;c[(w&p)+24>>2]=le;c[(w&p)+72>>2]=w;if(((a[(_b&n)>>0]|0)!=2?(Dc=c[2242]|0,c[(w&p)>>2]=ca(Dc,u)|0,V=c[((c[(r&p)+12>>2]|0)&p)+80>>2]|0,V=(V|0)<(Dc|0)?Dc:V,Dc=((u|0)<0)<<31>>31,V=sw(V|0,((V|0)<0)<<31>>31|0,u|0,Dc|0)|0,U=G,c[(w&p)+4>>2]=(U|0)<0|(U|0)==0&V>>>0<536870912?V:536870912,(c[2234]|0)==0):0)?(c[(w&p)+52>>2]=u,V=qg(u,Dc)|0,c[(w&p)+40>>2]=V,(V|0)==0):0){s=7;u=x;ie=1309;break c}else{S=z;T=s;U=W;V=X;u=L;r=t}break}case 566:{ie=0;T=(c[((c[(Ib&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<2)&p)>>2]|0)+40|0;V=T;U=c[(V&p)>>2]|0;V=c[(V&p)+4>>2]|0;S=jw(U|0,V|0,1,0)|0;c[(T&p)>>2]=S;c[(T&p)+4>>2]=G;if((U|0)==0&(V|0)==0){S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0}else{S=z;T=s;U=W;V=X}break}case 568:{ie=0;r=xm(f,c[(s+(t*20|0)&p)+4>>2]|0,c[(s+(t*20|0)&p)+12>>2]|0,-1,0)|0;if(!r){y=ge;z=je;r=m;m=x;ie=1317;break a}a[(r&n)+25>>0]=1;c[(r&p)+16>>2]=c[(s+(t*20|0)&p)+8>>2];S=r+27|0;a[(S&n)>>0]=a[(S&n)>>0]|4;S=z;T=s;U=W;V=X;r=t;break}case 570:{ie=0;S=s+(r*20|0)+4|0;Bm(f,c[((c[(Ib&p)>>2]|0)+(c[(S&p)>>2]<<2)&p)>>2]|0);c[((c[(Ib&p)>>2]|0)+(c[(S&p)>>2]<<2)&p)>>2]=0;S=z;T=s;U=W;V=X;break}case 571:{ie=0;H=c[((c[(Ib&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<2)&p)>>2]|0;a[(H&n)+25>>0]=0;if(!(a[(H&n)+27>>0]&4)){V=c[(s+(r*20|0)&p)+16>>2]|0;c[(wd&p)>>2]=c[(H&p)+8>>2];b[($b&o)>>1]=V;a[(cc&n)>>0]=(K<<1&2^2)+255;V=c[(s+(r*20|0)&p)+12>>2]|0;t=z+(V*40|0)|0;c[(dc&p)>>2]=t;if(b[(z+(V*40|0)&o)+8>>1]&16384)Rg(t)|0;u=Cm(c[(H&p)>>2]|0,wd,0,0,0,Ad)|0;if(!u){u=K;J=L}else{t=r;ie=1318;break c}}else{C=c[(s+(r*20|0)&p)+12>>2]|0;A=z+(C*40|0)|0;C=z+(C*40|0)+8|0;if((b[(C&o)>>1]&14)==2)rh(A,0);J=Vg(A)|0;I=G;C=e[(C&o)>>1]|0;do if(!(C&4)){if(!(C&8)){S=z;T=s;U=W;V=X;u=L;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0;break q}B=+h[(A&q)>>3];D=+(J>>>0)+4294967296.0*+(I|0);if(B>31)+K|0;break}else{C=(B>D&(K&1|0)==0&1)+K|0;break}}else C=K;while(0);u=Cm(c[(H&p)>>2]|0,0,J,I,0,Ad)|0;V=H+48|0;c[(V&p)>>2]=J;c[(V&p)+4>>2]=I;if(!u){u=C;J=L}else{t=r;ie=1318;break c}}a[(H&n)+26>>0]=0;c[(H&p)+60>>2]=0;t=c[(Ad&p)>>2]|0;do if((u|0)>63){if((t|0)>=0?!((t|0)==0&(u|0)==65):0){c[(Ad&p)>>2]=0;S=z;T=s;U=W;V=X;u=J;break q}c[(Ad&p)>>2]=0;u=Dm(c[(H&p)>>2]|0,Ad)|0;if(!u)ie=593;else{t=r;ie=1318;break c}}else{if((t|0)<=0?!((t|0)==0&(u|0)==62):0){t=(a[((c[(H&p)>>2]|0)&n)+73>>0]|0)!=1&1;c[(Ad&p)>>2]=t;break}c[(Ad&p)>>2]=0;u=Em(c[(H&p)>>2]|0,Ad)|0;if(!u)ie=593;else{t=r;ie=1318;break c}}while(0);if((ie|0)==593){ie=0;t=c[(Ad&p)>>2]|0}if(!t){S=z;T=s;U=W;V=X;u=J}else{S=z;T=s;U=W;V=X;u=J;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0}break}case 596:{ie=0;S=c[((c[(Ib&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<2)&p)>>2]|0;a[(S&n)+25>>0]=0;U=Vg(z+((c[(s+(r*20|0)&p)+8>>2]|0)*40|0)|0)|0;T=S+48|0;c[(T&p)>>2]=U;c[(T&p)+4>>2]=G;a[(S&n)+26>>0]=1;S=z;T=s;U=W;V=X;break}case 597:{ie=0;I=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;r=c[(s+(t*20|0)&p)+12>>2]|0;J=z+(r*40|0)|0;c[(od&p)>>2]=0;K=s+(t*20|0)+16|0;C=c[(K&p)>>2]|0;v=I+8|0;A=c[(v&p)>>2]|0;w:do if((C|0)>0){c[(xd&p)>>2]=A;C=C&65535;b[(ec&o)>>1]=C;c[(fc&p)>>2]=J;if(!(C<<16>>16))v=xd;else{r=J;A=0;while(1){if(b[(r+(A*40|0)&o)+8>>1]&16384){Rg(r+(A*40|0)|0)|0;C=b[(ec&o)>>1]|0}A=A+1|0;if((A|0)>=(C&65535|0)){v=xd;break w}r=c[(fc&p)>>2]|0}}}else{C=Fm(A,Sc,191,od)|0;if(!C){y=ge;z=je;r=m;m=x;ie=1317;break a}if(b[(z+(r*40|0)&o)+8>>1]&16384)Rg(J)|0;Gm(c[(v&p)>>2]|0,c[(z+(r*40|0)&p)+12>>2]|0,c[(z+(r*40|0)&p)+16>>2]|0,C);v=C}while(0);a[(v&n)+6>>0]=0;x:do if((a[(H&n)>>0]|0)==67?(Ec=b[(v&o)+4>>1]|0,Ec<<16>>16!=0):0){C=c[(v&p)+8>>2]|0;A=0;while(1){if(b[(C+(A*40|0)&o)+8>>1]&1)break;A=A+1|0;if((A|0)>=(Ec&65535|0)){L=t;r=t;break x}}L=t;r=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0}else{L=t;r=t}while(0);C=Cm(c[(I&p)>>2]|0,v,0,0,0,Bd)|0;if(!(c[(K&p)>>2]|0))mg(le,c[(od&p)>>2]|0);if(C){t=r;s=C;u=x;ie=1309;break c}t=c[(Bd&p)>>2]|0;c[(I&p)+12>>2]=t;t=(t|0)==0;a[(I&n)+25>>0]=t&1^1;a[(I&n)+26>>0]=0;c[(I&p)+60>>2]=0;if((a[(H&n)>>0]|0)==69){if(!t){S=z;T=s;U=W;V=X;break}S=z;T=s;U=W;V=X;r=(c[(s+(L*20|0)&p)+8>>2]|0)+-1|0;break}else{if(t){S=z;T=s;U=W;V=X;break}S=z;T=s;U=W;V=X;r=(c[(s+(L*20|0)&p)+8>>2]|0)+-1|0;break}}case 624:{ie=0;S=(c[((c[(Ib&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<2)&p)>>2]|0)+40|0;T=S;U=c[(T&p)>>2]|0;T=c[(T&p)+4>>2]|0;V=jw(U|0,T|0,1,0)|0;c[(S&p)>>2]=V;c[(S&p)+4>>2]=G;S=u;c[(S&p)>>2]=U;c[(S&p)+4>>2]=T;S=z;T=s;U=W;V=X;break}case 647:{ie=0;I=c[(s+(r*20|0)&p)+8>>2]|0;v=c[((c[(Ib&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<2)&p)>>2]|0;t=c[(s+(r*20|0)&p)+12>>2]|0;if(C<<24>>24==75){F=z+(t*40|0)|0;E=c[(F&p)>>2]|0;F=c[(F&p)+4>>2]|0}else{E=t;F=((t|0)<0)<<31>>31}H=s+(r*20|0)+3|0;J=a[(H&n)>>0]|0;if(J&1)c[(ub&p)>>2]=(c[(ub&p)>>2]|0)+1;if(J&2){m=ne;c[(m&p)>>2]=E;c[(m&p)+4>>2]=F;m=E;l=F}C=b[(z+(I*40|0)&o)+8>>1]|0;if(C&1){c[(z+(I*40|0)&p)+16>>2]=0;c[(z+(I*40|0)&p)+12>>2]=0}if(!(J&16))A=0;else A=c[(v&p)+12>>2]|0;if(!(C&16384))C=0;else C=c[(z+(I*40|0)&p)>>2]|0;C=Im(c[(v&p)>>2]|0,0,E,F,c[(z+(I*40|0)&p)+16>>2]|0,c[(z+(I*40|0)&p)+12>>2]|0,C,(J&255)>>>3&1,A)|0;a[(v&n)+26>>0]=0;c[(v&p)+60>>2]=0;if(C){t=r;s=C;u=x;ie=1309;break c}t=c[(gc&p)>>2]|0;if((t|0)!=0?(Fc=c[(s+(r*20|0)&p)+16>>2]|0,(Fc|0)!=0):0){bc[t&1](c[(hc&p)>>2]|0,(a[(H&n)>>0]&4)!=0?23:18,c[((c[(Xd&p)>>2]|0)+(a[(v&n)+24>>0]<<4)&p)>>2]|0,Fc,E,F);S=z;T=s;U=W;V=X}else{S=z;T=s;U=W;V=X}break}case 671:{ie=0;S=c[(ub&p)>>2]|0;c[(vb&p)>>2]=S;c[(wb&p)>>2]=(c[(wb&p)>>2]|0)+S;c[(ub&p)>>2]=0;S=z;T=s;U=W;V=X;break}case 672:{ie=0;J=c[((c[(Ib&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<2)&p)>>2]|0;I=c[(s+(r*20|0)&p)+12>>2]|0;H=c[(s+(r*20|0)&p)+16>>2]|0;t=c[(J&p)+56>>2]|0;A=t+32|0;C=c[(A&p)>>2]|0;J=c[(J&p)+8>>2]|0;if(!C){C=Fm(J,0,0,md)|0;c[(A&p)>>2]=C;if(!C){t=r;s=7;u=x;ie=1309;break c}b[(C&o)+4>>1]=H}if(!(a[(t&n)+56>>0]|0)){t=c[(t&p)+36>>2]|0;A=t;t=t+8|0}else{V=c[(t&p)+20>>2]|0;t=c[((c[(V&p)+8>>2]|0)&p)+4>>2]|0;V=c[(V&p)+12>>2]|0;A=V+(t*56|0)+20|0;t=c[(V+(t*56|0)&p)+32>>2]|0}Gm(J,c[(A&p)>>2]|0,t,C);y:do if((H|0)>0){t=c[(C&p)+8>>2]|0;v=0;while(1){if(b[(t+(v*40|0)&o)+8>>1]&1)break y;v=v+1|0;if((v|0)>=(H|0)){ie=682;break}}}else ie=682;while(0);if((ie|0)==682){ie=0;if(!(Km(c[(z+(I*40|0)&p)+12>>2]|0,c[(z+(I*40|0)&p)+16>>2]|0,C,0)|0)){S=z;T=s;U=W;V=X;break}}S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0;break}case 700:{ie=0;b[(u&o)+8>>1]=1;S=z;T=s;U=W;V=X;break}case 708:{ie=0;b[(u&o)+8>>1]=1;S=z;T=s;U=W;V=X;break}case 711:{ie=0;t=c[((c[(Ib&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<2)&p)>>2]|0;a[(t&n)+25>>0]=1;c[(t&p)+60>>2]=0;t=c[(t&p)>>2]|0;if(!t){S=z;T=s;U=W;V=X}else{S=t+56|0;Wc(c[(S&p)>>2]|0);c[(S&p)>>2]=0;a[(t&n)+73>>0]=0;S=z;T=s;U=W;V=X}break}case 801:{ie=0;t=c[((c[(Ib&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<2)&p)>>2]|0;u=c[(t&p)>>2]|0;K=L+8|0;b[(K&o)>>1]=1;if((a[(u&n)+73>>0]|0)!=1?(Vd=jm(t)|0,(Vd|0)!=0):0){t=r;u=Vd;ie=1318;break c}if(!(a[(t&n)+25>>0]|0)){V=Sd;c[(V&p)>>2]=0;c[(V&p)+4>>2]=0;km(u,Sd);b[(qc&o)>>1]=0;c[(sc&p)>>2]=le;c[(uc&p)>>2]=0;u=nm(u,0,c[(Sd&p)>>2]|0,1,$c)|0;do if(!u){t=c[(vc&p)>>2]|0;u=a[(t&n)>>0]|0;if(u<<24>>24>-1){C=u&255;c[(qd&p)>>2]=C}else{mm(t,qd)|0;C=c[(qd&p)>>2]|0}if(!(C>>>0<3?1:(C|0)>(c[(wc&p)>>2]|0))){t=(c[(vc&p)>>2]|0)+(C+-1)|0;u=a[(t&n)>>0]|0;if(u<<24>>24>-1){u=u&255;c[(Nd&p)>>2]=u}else{mm(t,Nd)|0;u=c[(Nd&p)>>2]|0}if(!((u+-1|0)>>>0>8|(u|0)==7)){if(u>>>0>11)t=(u+-12|0)>>>1;else t=d[(u&n)+34336>>0]|0;v=c[(wc&p)>>2]|0;if(v>>>0>=(t+C|0)>>>0){om((c[(vc&p)>>2]|0)+(v-t)|0,u,Qd)|0;v=Qd;t=c[(v&p)>>2]|0;v=c[(v&p)+4>>2]|0;if((b[(qc&o)>>1]&9312)==0&(c[(uc&p)>>2]|0)==0){u=0;break}Qg($c);u=0;break}}}if(!((b[(qc&o)>>1]&9312)==0&(c[(uc&p)>>2]|0)==0))Qg($c);c[(ke&p)>>2]=68698;c[(ke&p)+4>>2]=10788;bd(11,13600,ke);u=11;t=0;v=0}else{t=0;v=0}while(0);if(u){t=r;ie=1318;break c}S=L;c[(S&p)>>2]=t;c[(S&p)+4>>2]=v;b[(K&o)>>1]=4;S=z;T=s;U=W;V=X;u=L}else{S=z;T=s;U=W;V=X;u=L}break}case 865:{ie=0;w=c[(C&p)>>2]|0;C=c[((c[(Xd&p)>>2]|0)+(K<<4)&p)+12>>2]|0;t=c[(C&p)+16>>2]|0;if(t)do{v=(c[(t&p)+8>>2]|0)+32|0;if((c[(v&p)>>2]|0)==(A|0))c[(v&p)>>2]=w;t=c[(t&p)>>2]|0}while((t|0)!=0);t=c[(C&p)+32>>2]|0;if(t)do{v=(c[(t&p)+8>>2]|0)+40|0;if((c[(v&p)>>2]|0)==(A|0))c[(v&p)>>2]=w;t=c[(t&p)>>2]|0}while((t|0)!=0);S=z;T=s;U=W;V=X;x=K+1&255;break}case 878:{ie=0;_m(le,u);S=z;T=s;U=W;V=X;u=J;break}case 881:{ie=0;V=c[(s+(r*20|0)&p)+4>>2]|0;c[(Zc&p)>>2]=le;c[(ia&p)>>2]=V;c[(ja&p)>>2]=je;u=c[(s+(r*20|0)&p)+16>>2]|0;c[(ke&p)>>2]=c[((c[(Xd&p)>>2]|0)+(V<<4)&p)>>2];c[(ke&p)+4>>2]=(V|0)==1?13184:13208;c[(ke&p)+8>>2]=u;u=uh(le,42048,ke)|0;if(!u){t=r;u=x;ie=882;break c}a[(ka&n)>>0]=1;c[(la&p)>>2]=0;t=Qe(le,u,22,Zc,0)|0;t=(t|0)==0?c[(la&p)>>2]|0:t;mg(le,u);a[(ka&n)>>0]=0;if(!t){S=z;T=s;U=W;V=X;u=J}else{s=t;t=r;u=x;ie=884;break c}break}case 886:{ie=0;kg(le,Ik((c[((c[(Xd&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<4)&p)+12>>2]|0)+8|0,c[(s+(r*20|0)&p)+16>>2]|0,0)|0);c[(Tb&p)>>2]=c[(Tb&p)>>2]|2;S=z;T=s;U=W;V=X;break}case 887:{ie=0;C=Ik((c[((c[(Xd&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<4)&p)+12>>2]|0)+24|0,c[(s+(r*20|0)&p)+16>>2]|0,0)|0;if(C){t=(c[(C&p)+12>>2]|0)+8|0;u=c[(t&p)>>2]|0;z:do if((u|0)==(C|0))c[(t&p)>>2]=c[(C&p)+20>>2];else{do{if(!u)break z;t=u+20|0;u=c[(t&p)>>2]|0}while((u|0)!=(C|0));c[(t&p)>>2]=c[(C&p)+20>>2]}while(0);Jk(le,C)}c[(Tb&p)>>2]=c[(Tb&p)>>2]|2;S=z;T=s;U=W;V=X;u=J;break}case 895:{ie=0;C=Ik((c[((c[(Xd&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<4)&p)+12>>2]|0)+40|0,c[(s+(r*20|0)&p)+16>>2]|0,0)|0;if(!C){S=z;T=s;U=W;V=X}else{t=c[(C&p)+20>>2]|0;if((t|0)==(c[(C&p)+24>>2]|0)){t=bn(t+8|0,c[(C&p)+4>>2]|0,ke)|0;if(!t)t=0;else t=c[(t&p)+8>>2]|0;v=t+64|0;while(1){V=c[(v&p)>>2]|0;t=V+32|0;if((V|0)==(C|0))break;else v=t}c[(v&p)>>2]=c[(t&p)>>2]}jg(le,C);c[(Tb&p)>>2]=c[(Tb&p)>>2]|2;S=z;T=s;U=W;V=X}break}case 903:{ie=0;L=c[(s+(t*20|0)&p)+8>>2]|0;v=mh(le,(L<<2)+4|0,0)|0;if(!v){y=ge;z=je;r=m;m=x;ie=1317;break a}A=c[(s+(t*20|0)&p)+12>>2]|0;r=c[(s+(t*20|0)&p)+4>>2]|0;M=z+(r*40|0)|0;if((L|0)>0){C=0;do{V=Vg(z+((C+r|0)*40|0)|0)|0;c[(v+(C<<2)&p)>>2]=V;C=C+1|0}while((C|0)!=(L|0));C=L}else C=0;c[(v+(C<<2)&p)>>2]=0;I=c[((c[(Xd&p)>>2]|0)+(d[(s+(t*20|0)&n)+3>>0]<<4)&p)+4>>2]|0;P=z+(A*40|0)|0;V=c[(P&p)>>2]|0;O=c[(I&p)+4>>2]|0;c[(O&p)+4>>2]=c[(I&p)>>2];I=c[(O&p)>>2]|0;w=c[((c[(I&p)+204>>2]|0)&p)+12>>2]|0;c[(Sd&p)>>2]=O;c[(ma&p)>>2]=I;I=c[(O&p)+44>>2]|0;c[(na&p)>>2]=I;c[(oa&p)>>2]=V;c[(pa&p)>>2]=0;c[(pa&p)+4>>2]=0;c[(pa&p)+8>>2]=0;c[(pa&p)+12>>2]=0;c[(pa&p)+16>>2]=0;do if(!I){A=0;C=0}else{J=(I>>>3)+1|0;H=qg(J,0)|0;if(!H){c[(sa&p)>>2]=0;A=0;C=1;break}fw(H|0,0,J|0)|0;c[(sa&p)>>2]=H;N=O+32|0;J=(((c[2514]|0)>>>0)/((c[(N&p)>>2]|0)>>>0)|0)+1|0;if(J>>>0<=I>>>0){V=H+(J>>>3)|0;a[(V&n)>>0]=d[(V&n)>>0]|1<<(J&7)}c[(ua&p)>>2]=Nd;c[(va&p)>>2]=Nd;c[(ta&p)>>2]=0;c[(wa&p)>>2]=0;c[(xa&p)>>2]=100;c[(ya&p)>>2]=1e9;a[(Aa&n)>>0]=0;a[(za&n)>>0]=2;c[(ra&p)>>2]=43592;C=c[((c[(O&p)+12>>2]|0)&p)+56>>2]|0;cn(Sd,1,d[(C&n)+33>>0]<<16|d[(C&n)+32>>0]<<24|d[(C&n)+34>>0]<<8|d[(C&n)+35>>0],d[(C&n)+37>>0]<<16|d[(C&n)+36>>0]<<24|d[(C&n)+38>>0]<<8|d[(C&n)+39>>0]);c[(ra&p)>>2]=0;C=c[(oa&p)>>2]|0;if(!((L|0)<1|(C|0)==0)){F=O+17|0;H=0;do{I=v+(H<<2)|0;J=c[(I&p)>>2]|0;if(J){if((a[(F&n)>>0]|0)!=0&(J|0)>1){dn(Sd,J,1,0);J=c[(I&p)>>2]|0}c[(ra&p)>>2]=43608;en(Sd,J,0,0)|0;c[(ra&p)>>2]=0;C=c[(oa&p)>>2]|0}H=H+1|0}while(!((H|0)>=(L|0)|(C|0)==0))}if(!((c[(na&p)>>2]|0)==0|(C|0)==0)){E=O+17|0;C=O+36|0;L=1;do{H=L>>>3;J=a[((c[(sa&p)>>2]|0)+H&n)>>0]|0;F=1<<(L&7);do if(!(J&255&F)){if(L>>>0<2)I=0;else{I=L+-2|0;I=I-((I>>>0)%(((((c[(C&p)>>2]|0)>>>0)/5|0)+1|0)>>>0)|0)|0;I=((I+1|0)==(((c[2514]|0)>>>0)/((c[(N&p)>>2]|0)>>>0)|0|0)?3:2)+I|0}if((I|0)==(L|0)?(a[(E&n)>>0]|0)!=0:0)break;c[(ke&p)>>2]=L;fn(Sd,43632,ke);J=a[((c[(sa&p)>>2]|0)+H&n)>>0]|0}while(0);do if(J&255&F){if(L>>>0<2)J=0;else{J=L+-2|0;J=J-((J>>>0)%(((((c[(C&p)>>2]|0)>>>0)/5|0)+1|0)>>>0)|0)|0;J=((J+1|0)==(((c[2514]|0)>>>0)/((c[(N&p)>>2]|0)>>>0)|0|0)?3:2)+J|0}if((J|0)!=(L|0))break;if(!(a[(E&n)>>0]|0))break;c[(ke&p)>>2]=L;fn(Sd,43656,ke)}while(0);L=L+1|0}while(!((c[(oa&p)>>2]|0)==0?1:L>>>0>(c[(na&p)>>2]|0)>>>0))}C=c[((c[((c[(O&p)>>2]|0)&p)+204>>2]|0)&p)+12>>2]|0;if((w|0)!=(C|0)){c[(ke&p)>>2]=w;c[(ke&p)+4>>2]=C;fn(Sd,43696,ke)}Wc(c[(sa&p)>>2]|0);if(c[(qa&p)>>2]|0){gn(ta);A=0;C=(c[(pa&p)>>2]|0)+1|0;break}C=c[(pa&p)>>2]|0;if(!C)gn(ta);A=tg(ta)|0}while(0);mg(le,v);U=P;U=dw(c[(U&p)>>2]|0,c[(U&p)+4>>2]|0,C|0,((C|0)<0)<<31>>31|0)|0;V=P;c[(V&p)>>2]=U;c[(V&p)+4>>2]=G;r=z+(r*40|0)+8|0;if(!(b[(r&o)>>1]&9312))b[(r&o)>>1]=1;else vg(M);if(C){if(!A){y=ge;z=je;r=m;m=x;ie=1317;break a}Xg(M,A,-1,1,1)|0}Yl(M,xb)|0;S=z;T=s;U=W;V=X;r=t;break}case 947:{ie=0;v=c[(s+(t*20|0)&p)+4>>2]|0;r=z+(v*40|0)|0;u=c[(s+(t*20|0)&p)+8>>2]|0;v=z+(v*40|0)+8|0;if((b[(v&o)>>1]&32)==0?(hn(r),(b[(v&o)>>1]&32)==0):0){y=ge;z=je;r=m;m=x;ie=1317;break a}S=z+(u*40|0)|0;jn(c[(r&p)>>2]|0,c[(S&p)>>2]|0,c[(S&p)+4>>2]|0);S=z;T=s;U=W;V=X;u=J;r=t;break}case 966:{ie=0;r=c[(s+(t*20|0)&p)+4>>2]|0;P=z+(r*40|0)|0;O=z+((c[(s+(t*20|0)&p)+12>>2]|0)*40|0)|0;N=c[(s+(t*20|0)&p)+16>>2]|0;r=z+(r*40|0)+8|0;if((b[(r&o)>>1]&32)==0?(hn(P),(b[(r&o)>>1]&32)==0):0){y=ge;z=je;r=m;m=x;ie=1317;break a}if(N){L=c[(P&p)>>2]|0;v=O;M=c[(v&p)>>2]|0;v=c[(v&p)+4>>2]|0;K=L+28|0;if((c[(K&p)>>2]|0)!=(N|0)){C=L+8|0;J=c[(C&p)>>2]|0;if(J){I=L+20|0;A=L+26|0;if(!(b[(A&o)>>1]&1))J=kn(J)|0;H=c[(I&p)>>2]|0;A:do if(!H){ld=J;rd=I;ie=978}else{while(1){I=H+12|0;F=c[(I&p)>>2]|0;if(!F)break;E=H+8|0;ln(F,ke,Sd);c[(I&p)>>2]=0;J=mn(c[(ke&p)>>2]|0,J)|0;H=c[(E&p)>>2]|0;if(!H){ld=J;rd=E;ie=978;break A}}c[(I&p)>>2]=nn(J)|0}while(0);if((ie|0)==978?(ie=0,Kc=on(L)|0,c[(rd&p)>>2]=Kc,(Kc|0)!=0):0){V=Kc;c[(V&p)>>2]=0;c[(V&p)+4>>2]=0;c[(Kc&p)+8>>2]=0;c[(Kc&p)+12>>2]=nn(ld)|0}c[(C&p)>>2]=0;c[(L&p)+12>>2]=0;b[(A&o)>>1]=e[(A&o)>>1]|1}c[(K&p)>>2]=N}C=c[(L&p)+20>>2]|0;B:do if(C){C:while(1){A=c[(C&p)+12>>2]|0;if(A)do{r=A;E=c[(r&p)>>2]|0;r=c[(r&p)+4>>2]|0;if((r|0)<(v|0)|(r|0)==(v|0)&E>>>0>>0)A=A+8|0;else{if(!((r|0)>(v|0)|(r|0)==(v|0)&E>>>0>M>>>0))break C;A=A+12|0}A=c[(A&p)>>2]|0}while((A|0)!=0);C=c[(C&p)+8>>2]|0;if(!C)break B}S=z;T=s;U=W;V=X;r=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;break q}while(0);if((N|0)>-1)C=O;else{S=z;T=s;U=W;V=X;r=t;break}}else C=O;S=C;jn(c[(P&p)>>2]|0,c[(S&p)>>2]|0,c[(S&p)+4>>2]|0);S=z;T=s;U=W;V=X;r=t;break}case 993:{ie=0;K=c[(s+(r*20|0)&p)+16>>2]|0;I=c[(s+(r*20|0)&p)+12>>2]|0;L=z+(I*40|0)|0;if((a[(s+(r*20|0)&n)+3>>0]|0)!=0?(Lc=c[(K&p)+20>>2]|0,nd=c[(sb&p)>>2]|0,(nd|0)!=0):0){t=nd;while(1){if((c[(t&p)+28>>2]|0)==(Lc|0)){S=z;T=s;U=W;V=X;break q}t=c[(t&p)+4>>2]|0;if(!t){t=r;break}}}else t=r;r=c[(tb&p)>>2]|0;if((r|0)>=(c[(Ba&p)>>2]|0)){u=x;ie=998;break c}E=z+(I*40|0)+8|0;if(!(b[(E&o)>>1]&64)){C=K+12|0;A=c[(C&p)>>2]|0;r=A+(c[(K&p)+8>>2]|0)|0;s=K+16|0;A=(A<<2)+80+(c[(s&p)>>2]|0)+(r*40|0)|0;J=mh(le,A,((A|0)<0)<<31>>31)|0;if(!J){y=ge;z=je;r=m;m=x;ie=1317;break a}fw(J|0,0,A|0)|0;if(!((b[(E&o)>>1]&9312)==0?(c[(z+(I*40|0)&p)+24>>2]|0)==0:0))Qg(L);b[(E&o)>>1]=64;c[(L&p)>>2]=J;c[(J&p)>>2]=f;c[(J&p)+60>>2]=r;c[(J&p)+64>>2]=c[(C&p)>>2];c[(J&p)+44>>2]=t;c[(J&p)+16>>2]=c[(Nc&p)>>2];c[(J&p)+52>>2]=c[(Ca&p)>>2];c[(J&p)+24>>2]=c[(Ib&p)>>2];c[(J&p)+40>>2]=c[(Da&p)>>2];c[(J&p)+8>>2]=c[(zc&p)>>2];c[(J&p)+48>>2]=c[(Ea&p)>>2];c[(J&p)+28>>2]=c[(K&p)+20>>2];c[(J&p)+20>>2]=c[(Hb&p)>>2];c[(J&p)+56>>2]=c[(Fa&p)>>2];z=J+80|0;r=z+(r*40|0)|0;if((z|0)!=(r|0))do{b[(z&o)+8>>1]=128;c[(z&p)+32>>2]=le;z=z+40|0}while((z|0)!=(r|0));r=c[(tb&p)>>2]|0;z=J}else{s=K+16|0;z=c[(L&p)>>2]|0}c[(tb&p)>>2]=r+1;c[(z&p)+4>>2]=c[(sb&p)>>2];S=z+32|0;c[(S&p)>>2]=m;c[(S&p)+4>>2]=l;c[(z&p)+68>>2]=c[(ub&p)>>2];c[(z&p)+72>>2]=c[((c[(f&p)>>2]|0)&p)+80>>2];c[(ub&p)>>2]=0;c[(sb&p)>>2]=z;S=z+40|0;c[(Nc&p)>>2]=S;U=c[(z&p)+60>>2]|0;c[(Ca&p)>>2]=U;V=c[(z&p)+64>>2]&65535;c[(Da&p)>>2]=V;U=S+((U+1|0)*40|0)|0;c[(Ib&p)>>2]=U;T=c[(K&p)>>2]|0;c[(zc&p)>>2]=T;c[(Ea&p)>>2]=c[(K&p)+4>>2];V=U+(V<<2)|0;c[(Hb&p)>>2]=V;U=c[(s&p)>>2]|0;c[(Fa&p)>>2]=U;fw(V|0,0,U|0)|0;U=W;V=X;r=-1;break}case 1009:{ie=0;S=c[(sb&p)>>2]|0;Zl(u,(c[(S&p)+16>>2]|0)+(((c[((c[(S&p)+8>>2]|0)+((c[(S&p)+44>>2]|0)*20|0)&p)+4>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]|0)|0)*40|0)|0,4096);S=z;T=s;U=W;V=X;break}case 1010:{ie=0;if(c[(Tb&p)>>2]&16777216){T=c[(s+(r*20|0)&p)+8>>2]|0;S=Rb;T=jw(c[(S&p)>>2]|0,c[(S&p)+4>>2]|0,T|0,((T|0)<0)<<31>>31|0)|0;S=Rb;c[(S&p)>>2]=T;c[(S&p)+4>>2]=G;S=z;T=s;U=W;V=X;u=J;break}t=c[(s+(r*20|0)&p)+8>>2]|0;u=((t|0)<0)<<31>>31;if(!(c[(s+(r*20|0)&p)+4>>2]|0)){T=_d;T=jw(c[(T&p)>>2]|0,c[(T&p)+4>>2]|0,t|0,u|0)|0;S=_d;c[(S&p)>>2]=T;c[(S&p)+4>>2]=G;S=z;T=s;U=W;V=X;u=J;break}else{T=Qb;T=jw(c[(T&p)>>2]|0,c[(T&p)+4>>2]|0,t|0,u|0)|0;S=Qb;c[(S&p)>>2]=T;c[(S&p)+4>>2]=G;S=z;T=s;U=W;V=X;u=J;break}}case 1015:{ie=0;if(!(c[(s+(r*20|0)&p)+4>>2]|0)){V=_d;if(!((c[(V&p)>>2]|0)==0&(c[(V&p)+4>>2]|0)==0)){S=z;T=s;U=W;V=X;break}V=Rb;if(!((c[(V&p)>>2]|0)==0&(c[(V&p)+4>>2]|0)==0)){S=z;T=s;U=W;V=X;break}S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0;break}else{V=Qb;if(!((c[(V&p)>>2]|0)==0&(c[(V&p)+4>>2]|0)==0)){S=z;T=s;U=W;V=X;break}V=Rb;if(!((c[(V&p)>>2]|0)==0&(c[(V&p)+4>>2]|0)==0)){S=z;T=s;U=W;V=X;break}S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0;break}}case 1022:{ie=0;t=c[(sb&p)>>2]|0;if(!t)v=z+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)|0;else{while(1){u=c[(t&p)+4>>2]|0;if(!u)break;else t=u}v=(c[(t&p)+16>>2]|0)+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)|0}U=Vg(v)|0;V=v;c[(V&p)>>2]=U;c[(V&p)+4>>2]=G;V=v+8|0;b[(V&o)>>1]=e[(V&o)>>1]&48640|4;V=c[(s+(r*20|0)&p)+8>>2]|0;U=z+(V*40|0)|0;t=Vg(U)|0;u=G;c[(U&p)>>2]=t;c[(U&p)+4>>2]=u;V=z+(V*40|0)+8|0;b[(V&o)>>1]=e[(V&o)>>1]&48640|4;V=v;U=c[(V&p)+4>>2]|0;if((U|0)<(u|0)|((U|0)==(u|0)?(c[(V&p)>>2]|0)>>>0>>0:0)){S=v;c[(S&p)>>2]=t;c[(S&p)+4>>2]=u;S=z;T=s;U=W;V=X;u=L}else{S=z;T=s;U=W;V=X;u=L}break}case 1028:{ie=0;V=z+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)|0;U=c[(V&p)+4>>2]|0;if((U|0)>0|(U|0)==0&(c[(V&p)>>2]|0)>>>0>0){S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0}else{S=z;T=s;U=W;V=X}break}case 1030:{ie=0;T=c[(s+(r*20|0)&p)+12>>2]|0;U=z+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)|0;V=U;T=jw(c[(V&p)>>2]|0,c[(V&p)+4>>2]|0,T|0,((T|0)<0)<<31>>31|0)|0;V=G;c[(U&p)>>2]=T;c[(U&p)+4>>2]=V;if((V|0)<0){S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0}else{S=z;T=s;U=W;V=X}break}case 1032:{ie=0;t=z+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)|0;v=t;u=c[(v&p)>>2]|0;v=c[(v&p)+4>>2]|0;if((u|0)==0&(v|0)==0){S=z;T=s;U=W;V=X;u=J}else{T=c[(s+(r*20|0)&p)+12>>2]|0;T=jw(T|0,((T|0)<0)<<31>>31|0,u|0,v|0)|0;S=t;c[(S&p)>>2]=T;c[(S&p)+4>>2]=G;S=z;T=s;U=W;V=X;u=J;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0}break}case 1034:{ie=0;T=z+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)|0;U=T;U=jw(c[(U&p)>>2]|0,c[(U&p)+4>>2]|0,-1,-1)|0;V=G;c[(T&p)>>2]=U;c[(T&p)+4>>2]=V;if((U|0)==0&(V|0)==0){S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0}else{S=z;T=s;U=W;V=X}break}case 1036:{ie=0;T=z+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)|0;V=T;U=c[(V&p)>>2]|0;V=c[(V&p)+4>>2]|0;S=jw(U|0,V|0,1,0)|0;c[(T&p)>>2]=S;c[(T&p)+4>>2]=G;if((U|0)==0&(V|0)==0){S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0}else{S=z;T=s;U=W;V=X}break}case 1157:{ie=0;S=z;T=s;U=W;V=X;r=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;break}case 1158:{ie=0;if(c[(s+(r*20|0)&p)+4>>2]|0){b[(Yd&o)>>1]=b[(Yd&o)>>1]|8;S=z;T=s;U=W;V=X;break}t=c[(Vb&p)>>2]|0;if(!t){S=z;T=s;U=W;V=X}else{do{V=t+88|0;b[(V&o)>>1]=b[(V&o)>>1]|8;t=c[(t&p)+52>>2]|0}while((t|0)!=0);S=z;T=s;U=W;V=X}break}case 1166:{ie=0;J=(c[(w&p)>>2]|0)+72|0;t=c[(J&p)>>2]|0;D:do if(t){while(1){if((c[(t&p)+4>>2]|0)==(A|0)?(c[(t&p)>>2]|0)==(C|0):0)break;t=c[(t&p)+12>>2]|0;if(!t){ie=1171;break D}}if(!t)ie=1171}else ie=1171;while(0);if((ie|0)==1171){ie=0;t=qg(16,0)|0;if(!t){t=r;s=7;u=x;ie=1309;break c}U=t+0|0;V=U+12|0;do{a[(U&n)>>0]=0;U=U+1|0}while((U|0)<(V|0));c[(t&p)+4>>2]=A;c[(t&p)>>2]=C;c[(t&p)+12>>2]=c[(J&p)>>2];c[(J&p)>>2]=t}t=t+8|0;if((d[(t&n)>>0]|0)<(v&255)){a[(t&n)>>0]=v;S=z;T=s;U=W;V=X}else{S=z;T=s;U=W;V=X}break}case 1213:{ie=0;c[(sd&p)>>2]=0;v=c[((c[(s+(r*20|0)&p)+16>>2]|0)&p)+8>>2]|0;if(!v){t=r;s=6;u=x;ie=1309;break c}w=c[(v&p)>>2]|0;if(!w){t=r;s=6;u=x;ie=1309;break c}C=rc[c[(w&p)+24>>2]&127](v,sd)|0;Mm(f,v);if(C){t=r;s=C;u=x;ie=1309;break c}c[(c[(sd&p)>>2]&p)>>2]=v;t=xm(f,c[(s+(r*20|0)&p)+4>>2]|0,0,-1,0)|0;if(!t){a[(ge&n)>>0]=1;lc[c[(w&p)+28>>2]&127](c[(sd&p)>>2]|0)|0;S=z;T=s;U=W;V=X;break}else{c[(t&p)+32>>2]=c[(sd&p)>>2];S=v+4|0;c[(S&p)>>2]=(c[(S&p)>>2]|0)+1;S=z;T=s;U=W;V=X;break}}case 1226:{ie=0;t=z+(C*40|0)+8|0;if(!(b[(t&o)>>1]&9312)){b[(t&o)>>1]=1;S=z;T=s;U=W;V=X;break}else{vg(A);S=z;T=s;U=W;V=X;break}}case 1257:{ie=0;S=u;c[(S&p)>>2]=c[((c[((c[((c[(Xd&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<4)&p)+4>>2]|0)&p)+4>>2]|0)&p)+44>>2];c[(S&p)+4>>2]=0;S=z;T=s;U=W;V=X;break}case 1258:{ie=0;v=c[((c[(Xd&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<4)&p)+4>>2]|0;t=c[(s+(r*20|0)&p)+12>>2]|0;u=c[(v&p)+4>>2]|0;if(!t)t=0;else{V=c[(u&p)+44>>2]|0;t=V>>>0>>0?t:V}c[(u&p)+4>>2]=c[(v&p)>>2];u=(c[(u&p)>>2]|0)+156|0;if((t|0)>0)c[(u&p)>>2]=t;else t=c[(u&p)>>2]|0;S=J;c[(S&p)>>2]=t;c[(S&p)+4>>2]=((t|0)<0)<<31>>31;S=z;T=s;U=W;V=X;u=J;break}case 1264:{ie=0;r=c[(s+(t*20|0)&p)+8>>2]|0;r=(r|0)==0?t:r+-1|0;if((c[(Sa&p)>>2]|0)!=0?(b[(Yd&o)>>1]&512)==0:0){t=c[(s+(t*20|0)&p)+16>>2]|0;if(!t){t=c[(ce&p)>>2]|0;if(!t){S=z;T=s;U=W;V=X;u=L;break}}c[(Sd&p)>>2]=0;F=c[(f&p)>>2]|0;v=c[(F&p)+88>>2]|0;c[(fb&p)>>2]=Nd;c[(gb&p)>>2]=Nd;c[(hb&p)>>2]=0;c[(ib&p)>>2]=100;c[(jb&p)>>2]=v;a[(kb&n)>>0]=1;a[(lb&n)>>0]=0;c[(qd&p)>>2]=F;v=a[(t&n)>>0]|0;u=v<<24>>24==0;E:do if((c[(F&p)+160>>2]|0)>1){if(!u)while(1){u=t;do{u=u+1|0;if(v<<24>>24==10)break;v=a[(u&n)>>0]|0}while(v<<24>>24!=0);Sk(qd,42288,3);Sk(qd,t,u-t|0);v=a[(u&n)>>0]|0;if(!(v<<24>>24))break;else t=u}}else if(!u){H=F+62|0;K=1;do{F:do if(!(v<<24>>24)){A=0;u=0}else{C=t;u=0;while(1){A=Cn(C,ke)|0;if((c[(ke&p)>>2]|0)==135)break F;u=A+u|0;C=C+A|0;if(!(a[(C&n)>>0]|0)){A=0;break}}}while(0);Sk(qd,t,u);C=t+u|0;if(!A)break E;do if((a[(C&n)>>0]|0)==63)if((A|0)>1){Dn(t+(u+1)|0,Sd)|0;C=c[(Sd&p)>>2]|0;break}else{c[(Sd&p)>>2]=K;C=K;break}else{C=qh(f,C,A)|0;c[(Sd&p)>>2]=C}while(0);t=t+(u+A)|0;K=C+1|0;J=C+-1|0;I=c[(Ab&p)>>2]|0;C=I+(J*40|0)|0;A=e[(I+(J*40|0)&o)+8>>1]|0;do if(!(A&1)){if(A&4){T=C;U=c[(T&p)+4>>2]|0;V=ke;c[(V&p)>>2]=c[(T&p)>>2];c[(V&p)+4>>2]=U;En(qd,0,19920,ke);break}if(A&8){h[(k&q)>>3]=+h[(C&q)>>3];c[(ke&p)>>2]=c[(k&p)>>2];c[(ke&p)+4>>2]=c[(k&p)+4>>2];En(qd,0,20272,ke);break}if(!(A&2)){if(A&16384){c[(ke&p)>>2]=c[(C&p)>>2];En(qd,0,42304,ke);break}Sk(qd,42320,2);E=c[(I+(J*40|0)&p)+12>>2]|0;if((E|0)>0){C=I+(J*40|0)+16|0;A=0;do{c[(ke&p)>>2]=d[((c[(C&p)>>2]|0)+A&n)>>0];En(qd,0,42328,ke);A=A+1|0}while((A|0)!=(E|0))}Sk(qd,42336,1);break}else{E=a[(H&n)>>0]|0;if(E<<24>>24==1){V=c[(I+(J*40|0)&p)+16>>2]|0;c[(ke&p)>>2]=c[(I+(J*40|0)&p)+12>>2];c[(ke&p)+4>>2]=V;En(qd,0,42296,ke);break}U=Od+0|0;V=U+40|0;do{c[(U&p)>>2]=0;U=U+4|0}while((U|0)<(V|0));c[(nb&p)>>2]=F;Xg(Od,c[(I+(J*40|0)&p)+16>>2]|0,c[(I+(J*40|0)&p)+12>>2]|0,E,0)|0;V=c[(ob&p)>>2]|0;if(!((V&2|0)==0|(V&16711680|0)==65536))Bn(Od,1)|0;V=c[(qb&p)>>2]|0;c[(ke&p)>>2]=c[(pb&p)>>2];c[(ke&p)+4>>2]=V;En(qd,0,42296,ke);if((b[(ob&o)>>1]&9312)==0&(c[(rb&p)>>2]|0)==0)break;Qg(Od);break}}else Sk(qd,20304,4);while(0);v=a[(t&n)>>0]|0}while(v<<24>>24!=0)}while(0);S=tg(qd)|0;jc[c[(Sa&p)>>2]&15](c[(mb&p)>>2]|0,S);mg(le,S);S=z;T=s;U=W;V=X;u=L}else{S=z;T=s;U=W;V=X;u=L}break}}if((ie|0)==28){ie=0;z=s+(r*20|0)+4|0;t=c[(z&p)>>2]|0;if(t){y=z;ie=34;break}z=c[(sb&p)>>2]|0;if(!z){ie=30;break}c[(sb&p)>>2]=c[(z&p)+4>>2];c[(tb&p)>>2]=(c[(tb&p)>>2]|0)+-1;l=c[(ub&p)>>2]|0;c[(vb&p)>>2]=l;c[(wb&p)>>2]=(c[(wb&p)>>2]|0)+l;z=Xl(z)|0;l=ne;t=c[(zc&p)>>2]|0;if((c[(s+(r*20|0)&p)+8>>2]|0)==4)r=(c[(t+(z*20|0)&p)+8>>2]|0)+-1|0;else r=z;m=c[(l&p)>>2]|0;l=c[(l&p)+4>>2]|0;S=c[(Nc&p)>>2]|0;T=t;U=W;V=X}else if((ie|0)==488){ie=0;u=sm(le,C,A)|0;if(!u){S=z;T=s;U=W;V=X;u=E}else{t=r;ie=1318;break}}z=S;s=T;W=U;X=V;t=r+1|0}switch(ie|0){case 30:{c[(me&p)>>2]=t;a[(fe&n)>>0]=c[(s+(r*20|0)&p)+8>>2];c[(he&p)>>2]=r;ie=41;break}case 34:{c[(me&p)>>2]=t;a[(fe&n)>>0]=c[(s+(r*20|0)&p)+8>>2];c[(he&p)>>2]=r;t=a[(s+(r*20|0)&n)+3>>0]|0;if(!(t<<24>>24)){s=c[(s+(r*20|0)&p)+16>>2]|0;if(!s){s=0;ie=39}else{c[(ke&p)>>2]=s;dh(je,le,10344,ke)}}else{u=c[((t&255)+-1<<2&p)+41536>>2]|0;t=c[(s+(r*20|0)&p)+16>>2]|0;if(!t){s=u;ie=39}else{c[(ke&p)>>2]=u;c[(ke&p)+4>>2]=t;dh(je,le,41624,ke)}}if((ie|0)==39){c[(ke&p)>>2]=s;dh(je,le,41656,ke)}ie=c[(y&p)>>2]|0;qd=c[(ce&p)>>2]|0;rd=c[(je&p)>>2]|0;c[(ke&p)>>2]=r;c[(ke&p)+4>>2]=qd;c[(ke&p)+8>>2]=rd;bd(ie,41600,ke);ie=41;break}case 80:{x=c[(be&p)>>2]|0;if(!((x|0)==0|g>>>0>>0)?(lc[x&127](c[(Zd&p)>>2]|0)|0)!=0:0){r=m;s=9;m=u;ie=1311;break a}rd=_d;qd=c[(rd&p)+4>>2]|0;if((qd|0)>0|(qd|0)==0&(c[(rd&p)>>2]|0)>>>0>0){s=c[(f&p)>>2]|0;c[(me&p)>>2]=787;a[(fe&n)>>0]=2;dh(je,s,34376,ke);s=1;ie=1309;break}x=$l(f,1)|0;if(!x){c[($d&p)>>2]=(c[($d&p)>>2]|0)+2|1;y=c[(s+(t*20|0)&p)+4>>2]|0;c[(de&p)>>2]=z+(y*40|0);r=s+(t*20|0)+8|0;if((c[(r&p)>>2]|0)>0){x=0;do{v=x+y|0;w=z+(v*40|0)|0;v=z+(v*40|0)+8|0;s=b[(v&o)>>1]|0;if(s&4096){if(Vl(w)|0){y=ge;z=je;r=m;m=u;ie=1317;break a}s=b[(v&o)>>1]|0}if((s&514)==2)am(w)|0;x=x+1|0}while((x|0)<(c[(r&p)>>2]|0))}if(a[(ge&n)>>0]|0){y=ge;z=je;r=m;m=u;ie=1317;break a}c[(he&p)>>2]=t+1;r=m;m=g;g=100;break a}else{s=x;ie=1309}break}case 313:{c[(ke&p)>>2]=73058;c[(ke&p)+4>>2]=10788;bd(11,13600,ke);s=11;ie=1309;break}case 343:{c[(ke&p)>>2]=73142;c[(ke&p)+4>>2]=10788;bd(11,13600,ke);s=11;ie=1309;break}case 447:{dh(je,le,41712,ke);t=r;s=5;ie=1309;break}case 460:{c[(ke&p)>>2]=s;dh(je,le,41768,ke);s=1;ie=1309;break}case 462:{dh(je,le,41792,ke);s=5;ie=1309;break}case 467:{c[(he&p)>>2]=g;a[(ee&n)>>0]=0;c[(me&p)>>2]=5;g=5;break a}case 489:{v=c[(s+(t*20|0)&p)+4>>2]|0;s=c[(s+(t*20|0)&p)+8>>2]|0;g=(v|0)!=0;if(g){s=(s|0)!=0;if(!(s|(a[(ee&n)>>0]|0)!=0))if((c[(ae&p)>>2]|0)>0){dh(je,le,41848,ke);g=m;m=r;s=5;ie=1309;break}else s=0}else s=(s|0)!=0;if((v|0)==(d[(ee&n)>>0]|0)){if(g)g=s?41952:42e3;else g=41904;dh(je,le,g,ke);g=m;m=r;s=1;ie=1309;break}if(!s){g=tm(f,1)|0;if(g)break a;a[(ee&n)>>0]=v;if((Rl(f)|0)==5){c[(he&p)>>2]=t;a[(ee&n)>>0]=1-v;c[(me&p)>>2]=5;g=5;break a}}else{Kl(le,516);a[(ee&n)>>0]=1}Ll(le);g=(c[(me&p)>>2]|0)==0?101:1;break a}case 508:{c[(he&p)>>2]=g;c[(me&p)>>2]=5;g=5;break a}case 522:{mg(le,c[(je&p)>>2]|0);c[(je&p)>>2]=kh(le,16040)|0;s=c[(s&p)>>2]|0;if((c[(c[((c[(Xd&p)>>2]|0)+(s<<4)&p)+12>>2]&p)>>2]|0)!=(v|0))vm(le,s);b[(Yd&o)>>1]=b[(Yd&o)>>1]|8;s=17;ie=1309;break}case 542:{c[(ke&p)>>2]=73997;c[(ke&p)+4>>2]=10788;bd(11,13600,ke);u=11;x=s;ie=1318;break}case 560:{c[(s&p)+56>>2]=0;s=7;ie=1309;break}case 832:{a[(fe&n)>>0]=2;s=6;ie=1309;break}case 882:{Eg(le);y=ge;z=je;r=m;m=u;ie=1317;break a}case 884:{Eg(le);if((s|0)==7){y=ge;z=je;r=m;m=u;ie=1317;break a}else ie=1309;break}case 998:{dh(je,le,42112,ke);s=1;ie=1309;break}case 1080:{c[(ke&p)>>2]=s?42208:42216;dh(je,le,42152,ke);s=1;ie=1309;break}case 1101:{dh(je,le,42344,ke);s=1;ie=1309;break}case 1103:{dh(je,le,42384,ke);s=1;ie=1309;break}case 1145:{c[(ke&p)>>2]=56343;c[(ke&p)+4>>2]=10788;bd(11,13600,ke);s=11;ie=1309;break}case 1316:{dh(je,le,10096,ke);r=m;s=18;m=u;ie=1311;break a}}if((ie|0)==41)if((Rl(f)|0)==5){c[(me&p)>>2]=5;r=m;m=g;g=5;break a}else{r=m;m=g;g=(c[(me&p)>>2]|0)!=0?1:101;break a}else if((ie|0)==1309){r=m;t=t+1|0;m=u;ie=1311;break a}else if((ie|0)==1318){u=(a[(ge&n)>>0]|0)==0?u:7;if((u|0)==3082){r=m;s=3082;m=x;ie=1311;break a}else if((u|0)!=516){r=u&255;if(r>>>0>26|(r|0)==2)s=16328;else s=c[(r<<2&p)+15488>>2]|0}else s=16344;c[(ke&p)>>2]=s;dh(je,le,10344,ke);r=m;s=u;m=x;ie=1311;break a}}else{u=f+44|0;r=m;g=0;t=0;m=0}while(0);c[(me&p)>>2]=9;c[(ke&p)>>2]=15832;dh(u,le,10344,ke);s=9;ie=1311}while(0);if((ie|0)==1317){a[(y&n)>>0]=1;dh(z,le,15776,ke);s=7;ie=1311}if((ie|0)==1311){c[(me&p)>>2]=s;qd=c[(f&p)+168>>2]|0;rd=c[(f&p)+44>>2]|0;c[(ke&p)>>2]=t;c[(ke&p)+4>>2]=qd;c[(ke&p)+8>>2]=rd;bd(s,42256,ke);Rl(f)|0;if((s|0)==3082)a[(le&n)+65>>0]=1;if(!(m<<24>>24)){m=g;g=1}else{vm(le,(m&255)+-1|0);m=g;g=1}}rd=ne;c[(rd&p)>>2]=r;c[(rd&p)+4>>2]=l;rd=f+124|0;c[(rd&p)>>2]=(c[(rd&p)>>2]|0)+m;i=oe;return g|0} function Ev(e){e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=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=e+20|0;u=e+14|0;f=a[(u&n)>>0]|0;z=e+13|0;g=a[(z&n)>>0]|0;a:do if((f&255)>(g&255))f=0;else{B=e+4|0;C=e+16|0;v=e+8|0;w=e+12|0;x=e+24|0;y=e+28|0;i=f&255;j=c[(B&p)>>2]|0;h=c[(D&p)>>2]|0;b:while(1){t=c[(e+(i+-2<<2)&p)+24>>2]|0;s=c[(e+(i+-1<<2)&p)+24>>2]|0;if(j){while(1){r=j+12|0;if((h|0)<(c[(r&p)>>2]|0)){g=h;f=(c[(j&p)+20>>2]|0)+(h*48|0)|0;while(1){do if((c[(f&p)+8>>2]|0)==(t|0)?(c[(f&p)+12>>2]|0)==(s|0):0){if((d[(u&n)>>0]|0)>=3?(c[((c[(f&p)>>2]|0)&p)+4>>2]&1|0)!=0:0)break;q=f+18|0;h=b[(q&o)>>1]|0;if((h&1024)!=0?(A=a[(z&n)>>0]|0,(A&255)<22):0){i=c[((c[(f&p)>>2]|0)&p)+16>>2]|0;c:do if(!i)i=0;else while(1){k=c[(i&p)+4>>2]|0;if(!(k&4096))break c;if(!(k&262144))i=i+12|0;else i=c[((c[(i&p)+20>>2]|0)&p)+4>>2]|0;i=c[(i&p)>>2]|0;if(!i){i=0;break}}while(0);d:do if(!(A<<24>>24)){m=0;k=0}else{l=c[(i&p)+28>>2]|0;m=i+32|0;k=0;while(1){if((c[(e+(k<<2)&p)+24>>2]|0)==(l|0)?(c[(e+((k|1)<<2)&p)+24>>2]|0)==(b[(m&o)>>1]|0):0){m=A;break d}k=k+2|0;if((k|0)>=(A&255|0)){m=A;break}}}while(0);if((k|0)==(m&255|0)){c[(e+(k<<2)&p)+24>>2]=c[(i&p)+28>>2];c[(e+((k|1)<<2)&p)+24>>2]=b[(i&o)+32>>1];a[(z&n)>>0]=(d[(z&n)>>0]|0)+2}}i=h&65535;if(i&c[(C&p)>>2]){if((c[(v&p)>>2]|0)!=0&(i&128|0)==0){l=c[(c[(j&p)>>2]&p)>>2]|0;k=c[(f&p)>>2]|0;i=a[(w&n)>>0]|0;h=(nv(k)|0)<<24>>24;if((h|0)==66){if(i<<24>>24!=66)break}else if((h|0)!=65?i<<24>>24<=66:0)break;h=Ou(l,c[(k&p)+12>>2]|0,c[(k&p)+16>>2]|0)|0;if(!h)h=c[((c[(l&p)>>2]|0)&p)+8>>2]|0;if(dd(c[(h&p)>>2]|0,c[(v&p)>>2]|0)|0)break;h=b[(q&o)>>1]|0}if(!(h&2))break b;h=c[((c[(f&p)>>2]|0)&p)+16>>2]|0;if((a[(h&n)>>0]|0)!=-102)break b;if((c[(h&p)+28>>2]|0)!=(c[(x&p)>>2]|0))break b;if((b[(h&o)+32>>1]|0)!=(c[(y&p)>>2]|0))break b}}while(0);g=g+1|0;if((g|0)>=(c[(r&p)>>2]|0))break;else f=f+48|0}g=c[(B&p)>>2]|0}else g=j;j=c[(g&p)+4>>2]|0;c[(B&p)>>2]=j;if(!j)break;else h=0}f=a[(u&n)>>0]|0;g=a[(z&n)>>0]|0}j=c[(e&p)>>2]|0;c[(B&p)>>2]=j;h=(f&255)+2|0;f=h&255;a[(u&n)>>0]=f;if((f&255)>(g&255)){f=0;break a}else{i=h&255;h=0}}c[(D&p)>>2]=g+1}while(0);return f|0}function Fv(d,f){d=d|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0,m=0,q=0;g=c[(d&p)>>2]|0;l=c[(c[(g&p)>>2]&p)>>2]|0;d=c[(d&p)+16>>2]|0;a:do if(!d){g=g+16|0;i=c[(g&p)>>2]|0;k=f+36|0;if((c[(k&p)>>2]&512|0)!=0&(i|0)!=0){d=f+20|0;j=f+22|0;h=a[(f&n)+16>>0]|0;do{do if((a[(i&n)+16>>0]|0)==h<<24>>24?(c[(i&p)+36>>2]&512|0)!=0:0){if(Tv(i,f)|0){b[(d&o)>>1]=b[(i&o)+20>>1]|0;b[(j&o)>>1]=(e[(i&o)+22>>1]|0)+65535;break}if(Tv(f,i)|0){b[(d&o)>>1]=b[(i&o)+20>>1]|0;b[(j&o)>>1]=(e[(i&o)+22>>1]|0)+1}}while(0);i=c[(i&p)+52>>2]|0}while((i|0)!=0)}d=Uv(g,f)|0;if(d){g=c[(d&p)>>2]|0;b:do if(g){d=g+52|0;if(c[(d&p)>>2]|0)do{d=Uv(d,f)|0;if(!d)break b;h=c[(d&p)>>2]|0;if(!h)break b;c[(d&p)>>2]=c[(h&p)+52>>2];Ju(l,h);mg(l,h)}while((c[(d&p)>>2]|0)!=0)}else{g=mh(l,72,0)|0;c[(d&p)>>2]=g;if(!g){d=7;break a}c[(g&p)+48>>2]=g+56;b[(g&o)+40>>1]=0;b[(g&o)+44>>1]=3;c[(g&p)+36>>2]=0;c[(g&p)+52>>2]=0}while(0);Lv(l,g);do if(!(Nu(l,g,e[(f&o)+40>>1]|0)|0)){h=g+0|0;d=f+0|0;i=h+44|0;do{c[(h&p)>>2]=c[(d&p)>>2];h=h+4|0;d=d+4|0}while((h|0)<(i|0));kw(c[(g&p)+48>>2]|0,c[(f&p)+48>>2]|0,e[(g&o)+40>>1]<<2|0)|0;d=c[(k&p)>>2]|0;if(d&1024){a[(f&n)+28>>0]=0;break}if(d&16384)c[(f&p)+28>>2]=0}else{d=g+24|0;c[(d&p)>>2]=0;c[(d&p)+4>>2]=0;c[(d&p)+8>>2]=0}while(0);if(((c[(g&p)+36>>2]&1024|0)==0?(m=g+28|0,q=c[(m&p)>>2]|0,(q|0)!=0):0)?(c[(q&p)+40>>2]|0)==0:0){c[(m&p)>>2]=0;d=0}else d=0}else d=0}else{g=f;Kv(d,c[(g&p)>>2]|0,c[(g&p)+4>>2]|0,b[(f&o)+20>>1]|0,b[(f&o)+22>>1]|0);d=0}while(0);return d|0}function Gv(a,b){a=a|0;b=b|0;var c=0,e=0;c=a<<16>>16;e=b<<16>>16;do if(a<<16>>16>16)if((e|0)<=(c+49|0))if((e|0)>(c+31|0)){a=e+1&65535;break}else{a=(d[(e-c&n)+34032>>0]|0)+e&65535;break}else a=b;else if((c|0)<=(e+49|0))if((c|0)>(e+31|0)){a=c+1&65535;break}else{a=(d[(c-e&n)+34032>>0]|0)+c&65535;break}while(0);return a|0}function Hv(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0;do if(!(Cu(b,d,e)|0))f=1;else{f=a[(d&n)>>0]|0;if(f<<24>>24==71){if(Hv(b,c[(d&p)+12>>2]|0,e)|0){f=1;break}if(Hv(b,c[(d&p)+16>>2]|0,e)|0){f=1;break}if(f<<24>>24==77)g=6}else if(f<<24>>24==77)g=6;if(((g|0)==6?(Cu(c[(b&p)+12>>2]|0,c[(d&p)+12>>2]|0,e)|0)==0:0)?(f=a[(b&n)>>0]|0,!(f<<24>>24==73|f<<24>>24==76)):0){f=1;break}f=0}while(0);return f|0}function Iv(a,d,f){a=a|0;d=d|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0;x=i;i=i+16|0;if((i|0)>=(j|0))fa();w=x;u=d;v=d+8|0;g=v;t=~(c[(g&p)>>2]|c[(u&p)>>2]);u=~(c[(g&p)+4>>2]|c[(u&p)+4>>2]);g=c[(a&p)+12>>2]|0;r=a+20|0;a:do if((g|0)>0){s=d+40|0;a=d+22|0;q=d+48|0;d=0;n=c[(r&p)>>2]|0;while(1){if(b[(n&o)+20>>1]&2)break a;m=n+40|0;l=c[(m&p)>>2]|0;m=c[(m&p)+4>>2]|0;k=v;b:do if(((c[(k&p)>>2]&l|0)!=0?1:(c[(k&p)+4>>2]&m|0)!=0)&((l&t|0)==0&(m&u|0)==0)){h=b[(s&o)>>1]|0;c:do if(h<<16>>16){m=c[(q&p)>>2]|0;l=h&65535;while(1){h=l;l=l+-1|0;k=c[(m+(l<<2)&p)>>2]|0;if(k){if((k|0)==(n|0))break;k=c[(k&p)+4>>2]|0;if((k|0)>-1?((c[(r&p)>>2]|0)+(k*48|0)|0)==(n|0):0)break}if((l|0)<=0)break c}if((h|0)>=1)break b}while(0);h=b[(n&o)+16>>1]|0;if(h<<16>>16<1){b[(a&o)>>1]=(e[(a&o)>>1]|0)+(h&65535);break}b[(a&o)>>1]=(b[(a&o)>>1]|0)+-1<<16>>16;if(b[(n&o)+18>>1]&2){l=(Ms(c[((c[(n&p)>>2]|0)&p)+16>>2]|0,w)|0)!=0;m=c[(w&p)>>2]|0;m=l&(m|0)>-2&(m|0)<2?10:20;c[(w&p)>>2]=m;d=(d<<16>>16|0)<(m|0)?m&65535:d}}while(0);g=g+-1|0;if((g|0)<=0)break;else n=n+48|0}}else{a=d+22|0;d=0}while(0);d=(f<<16>>16)-(d<<16>>16)|0;if((b[(a&o)>>1]|0)>(d|0))b[(a&o)>>1]=d;i=x;return}function Jv(d,f,g,h){d=d|0;f=f|0;g=g|0;h=h|0;var k=0,l=0,m=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,ga=0,ha=0;ha=i;i=i+112|0;if((i|0)>=(j|0))fa();R=ha;V=c[(c[(c[(d&p)>>2]&p)>>2]&p)>>2]|0;ea=c[(d&p)+12>>2]|0;if(!(a[(V&n)+65>>0]|0)){ga=ea+36|0;if(!(c[(ga&p)>>2]&32))if((c[(g&p)+40>>2]|0)<1)k=63;else k=(a[(f&n)+36>>0]&8)<<4^191;else k=24;W=g+51|0;ca=ea+24|0;l=b[((c[(g&p)+4>>2]|0)+(e[(ca&o)>>1]<<1)&o)>>1]|0;N=l<<16>>16;O=d+4|0;k=Dv(R,c[(O&p)>>2]|0,c[(f&p)+40>>2]|0,N,(a[(W&n)>>0]&4)==0?k:k&131,g)|0;X=b[(ca&o)>>1]|0;Y=ea+42|0;T=b[(Y&o)>>1]|0;Z=ea+40|0;U=b[(Z&o)>>1]|0;_=c[(ga&p)>>2]|0;Q=ea;P=c[(Q&p)>>2]|0;Q=c[(Q&p)+4>>2]|0;$=ea+22|0;aa=b[($&o)>>1]|0;b[(ea&o)+18>>1]=0;ba=g+8|0;D=b[(c[(ba&p)>>2]&o)>>1]|0;if(D<<16>>16<11)C=0;else{C=D<<16>>16;C=((fs(C,((C|0)<0)<<31>>31)|0)&65535)+65503&65535}a:do if(!k)k=0;else{E=l<<16>>16<0;F=f+16|0;G=ea+8|0;H=(U&65535)+1|0;I=ea+48|0;J=h<<16>>16==0;K=g+46|0;w=l<<16>>16>-1;x=g+50|0;y=g+44|0;z=ea+20|0;A=h<<16>>16;B=g+48|0;r=0;u=k;s=0;while(1){l=b[(u&o)+18>>1]|0;t=l&65535;if(l<<16>>16==128)if(!E?(a[((c[((c[(F&p)>>2]|0)&p)+4>>2]|0)+(N*24|0)&n)+20>>0]|0)==0:0)S=12;else{m=r;l=s;k=0}else S=12;if((S|0)==12){S=0;m=u+32|0;v=m;q=G;if(((c[(q&p)>>2]&c[(v&p)>>2]|0)==0?(c[(q&p)+4>>2]&c[(v&p)+4>>2]|0)==0:0)?(L=u+20|0,!((b[(L&o)>>1]&256)!=0&l<<16>>16==16)):0){c[(ga&p)>>2]=_;b[(ca&o)>>1]=X;b[(Z&o)>>1]=U;if(Nu(V,ea,H)|0){k=0;break a}k=b[(Z&o)>>1]|0;q=k+1<<16>>16;b[(Z&o)>>1]=q;c[((c[(I&p)>>2]|0)+((k&65535)<<2)&p)>>2]=u;k=m;l=G;m=(c[(k&p)+4>>2]|Q)&~c[(l&p)+4>>2];v=ea;c[(v&p)>>2]=(c[(k&p)>>2]|P)&~c[(l&p)>>2];c[(v&p)+4>>2]=m;b:do if(!(t&1)){if(t&2){k=c[(ga&p)>>2]|0;l=k|1;c[(ga&p)>>2]=l;do if(!E){if(!J){v=0;break b}if((e[(ca&o)>>1]|0)!=((e[(K&o)>>1]|0)+-1|0)){v=0;break b}if(!w)break;if(a[(x&n)>>0]|0)break;l=k|65537;c[(ga&p)>>2]=l;v=0;break b}while(0);l=k|4097;c[(ga&p)>>2]=l;v=0;break}if(t&128){l=c[(ga&p)>>2]|8;c[(ga&p)>>2]=l;v=0;break}k=c[(ga&p)>>2]|0;if(!(t&36)){l=k|18;c[(ga&p)>>2]=l;if(!(k&32)){v=0;r=0;s=u;break}v=0;r=c[((c[(I&p)>>2]|0)+((q&65535)+-2<<2)&p)>>2]|0;s=u;break}l=k|34;c[(ga&p)>>2]=l;if(!(b[(L&o)>>1]&256)){v=0;r=u;s=0}else{k=u+48|0;if(Nu(V,ea,(q&65535)+1|0)|0){k=0;break a}l=b[(Z&o)>>1]|0;b[(Z&o)>>1]=l+1<<16>>16;c[((c[(I&p)>>2]|0)+((l&65535)<<2)&p)>>2]=k;l=c[(ga&p)>>2]|16;c[(ga&p)>>2]=l;v=0;r=u;s=k}}else{k=c[(u&p)>>2]|0;l=c[(ga&p)>>2]|4;c[(ga&p)>>2]=l;if(!(c[(k&p)+4>>2]&2048)){k=c[(k&p)+20>>2]|0;if((k|0)!=0?(M=c[(k&p)>>2]|0,(M|0)!=0):0)v=(fs(M,((M|0)<0)<<31>>31)|0)<<16>>16;else v=0}else v=46}while(0);do if(!(l&2)){k=(b[(ca&o)>>1]|0)+1<<16>>16;b[(ca&o)>>1]=k;k=k&65535;m=b[(u&o)+16>>1]|0;if(m<<16>>16<1&w){q=(m&65535)-v+(e[($&o)>>1]|0)&65535;b[($&o)>>1]=q;break}m=c[(ba&p)>>2]|0;m=(e[($&o)>>1]|0)+((e[(m+(k<<1)&o)>>1]|0)-(e[(m+(k+-1<<1)&o)>>1]|0))|0;k=m&65535;b[($&o)>>1]=k;if(!(t&128))q=k;else{q=m+10&65535;b[($&o)>>1]=q}}else{k=b[($&o)>>1]|0;q=k<<16>>16;do if(r){m=b[(r&o)+16>>1]|0;if(m<<16>>16<1){k=(m&65535)+(k&65535)&65535;break}else{k=(k&65535)+65516&65535;break}}while(0);do if(s){m=b[(s&o)+16>>1]|0;if(m<<16>>16<1){k=(m&65535)+(k&65535)&65535;break}else{k=(k&65535)+65516&65535;break}}while(0);m=(r|0)!=0;do if(m?(b[(r&o)+16>>1]|0)>0&(s|0)!=0:0){if((b[(s&o)+16>>1]|0)<=0)break;k=(k&65535)+65516&65535}while(0);q=(((s|0)!=0)<<31>>31)+(m<<31>>31)+q|0;u=k<<16>>16<10?10:k<<16>>16;q=((u|0)<(q|0)?u:q)&65535;b[($&o)>>1]=q}while(0);k=q&65535;m=Gv(C,k+1+(((b[(y&o)>>1]|0)*15|0)/(b[((c[(F&p)>>2]|0)&o)+42>>1]|0)|0)&65535)|0;if(!(l&320))m=Gv(m,k+16&65535)|0;l=v+A|0;b[(z&o)>>1]=(m&65535)+l;b[($&o)>>1]=k+l;Iv(c[(O&p)>>2]|0,ea,D);k=Fv(d,ea)|0;v=c[(ga&p)>>2]|0;b[($&o)>>1]=(v&2|0)==0?q:aa;if((v&16|0)==0?(e[(ca&o)>>1]|0)<(e[(B&o)>>1]|0):0)Jv(d,f,g,l&65535)|0;b[($&o)>>1]=aa;m=r;l=s}else{m=r;l=s;k=0}}u=Ev(R)|0;if(!((k|0)==0&(u|0)!=0))break;else{r=m;s=l}}}while(0);l=ea;c[(l&p)>>2]=P;c[(l&p)+4>>2]=Q;b[(ca&o)>>1]=X;b[(Y&o)>>1]=T;c[(ga&p)>>2]=_;b[($&o)>>1]=aa;b[(Z&o)>>1]=U;l=X&65535;if(((X<<16>>16==T<<16>>16?(da=l+1|0,da>>>0<(e[(g&o)+46>>1]|0)>>>0):0)?(a[(W&n)>>0]&64)==0:0)?(b[((c[(ba&p)>>2]|0)+(da<<1)&o)>>1]|0)>41:0){k=Nu(V,ea,(U&65535)+1|0)|0;if(!k){b[(ca&o)>>1]=(b[(ca&o)>>1]|0)+1<<16>>16;b[(Y&o)>>1]=(b[(Y&o)>>1]|0)+1<<16>>16;k=b[(Z&o)>>1]|0;b[(Z&o)>>1]=k+1<<16>>16;c[((c[(ea&p)+48>>2]|0)+((k&65535)<<2)&p)>>2]=0;c[(ga&p)>>2]=c[(ga&p)>>2]|32768;k=c[(ba&p)>>2]|0;k=(e[(k+(l<<1)&o)>>1]|0)-(e[(k+(da<<1)&o)>>1]|0)|0;b[($&o)>>1]=(e[($&o)>>1]|0)-k;Jv(d,f,g,(((k<<16)+327680|0)>>>16)+(h&65535)&65535)|0;b[($&o)>>1]=aa;b[(ca&o)>>1]=X;b[(Y&o)>>1]=X;c[(ga&p)>>2]=_;k=0}}}else k=7;i=ha;return k|0}function Kv(a,d,e,f,g){a=a|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,i=0,j=0,k=0,l=0,m=0,n=0,q=0,r=0;l=b[(a&o)>>1]|0;h=a+8|0;a:do if(l<<16>>16){j=l;k=h;while(1){i=b[(k&o)+8>>1]|0;if(i<<16>>16>=f<<16>>16?(r=k,(c[(r&p)>>2]&d|0)==(d|0)?(c[(r&p)+4>>2]&e|0)==(e|0):0):0){n=k;q=14;break a}if(i<<16>>16<=f<<16>>16?(i=k,r=c[(i&p)>>2]|0,i=c[(i&p)+4>>2]|0,(r&d|0)==(r|0)&(i&e|0)==(i|0)):0)break a;j=j+-1<<16>>16;if(!(j<<16>>16))break;else k=k+16|0}if((l&65535)>=3){i=b[(a&o)+16>>1]|0;k=1;do{if(i<<16>>16>(b[(a+(k<<4)&o)+16>>1]|0))h=a+(k<<4)+8|0;k=k+1|0;i=b[(h&o)+8>>1]|0}while((k&65535)<(l&65535));if(i<<16>>16>f<<16>>16){n=h;q=14}}else q=9}else q=9;while(0);if((q|0)==9){n=l&65535;b[(a&o)>>1]=l+1<<16>>16;b[(a+(n<<4)&o)+18>>1]=g;n=a+(n<<4)+8|0;q=14}if((q|0)==14?(m=n,c[(m&p)>>2]=d,c[(m&p)+4>>2]=e,b[(n&o)+8>>1]=f,m=n+10|0,(b[(m&o)>>1]|0)>g<<16>>16):0)b[(m&o)>>1]=g;return}function Lv(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0;e=c[(d&p)+36>>2]|0;do if(e&17408){if((e&1024|0)!=0?(h=d+28|0,(a[(h&n)>>0]|0)!=0):0){e=d+32|0;Wc(c[(e&p)>>2]|0);a[(h&n)>>0]=0;c[(e&p)>>2]=0;break}if((e&16384|0)!=0?(f=d+28|0,g=c[(f&p)>>2]|0,(g|0)!=0):0){mg(b,c[(g&p)+16>>2]|0);mg(b,c[(f&p)>>2]|0);c[(f&p)>>2]=0}}while(0);return}function Mv(f,g,h,k,l,m,q){f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;m=m|0;q=q|0;var 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,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,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;ta=i;i=i+32|0;if((i|0)>=(j|0))fa();oa=ta;s=c[(c[(f&p)>>2]&p)>>2]|0;na=l&65535;if(l<<16>>16!=0?(b[(s&o)+60>>1]&128)!=0:0)r=0;else pa=3;a:do if((pa|0)==3){sa=c[(g&p)>>2]|0;r=sa&65535;if(r>>>0<=63){qa=iw(1,0,r|0)|0;qa=jw(qa|0,G|0,-1,-1)|0;ra=G;b:do if((qa|0)==0&(ra|0)==0){g=0;h=0;s=1}else{ha=h+24|0;ia=f+4|0;ja=(r|0)==0;ea=g+4|0;ga=(k&768)==0;da=s+8|0;W=(k&256)==0;X=f+68|0;Y=oa+20|0;Z=oa+4|0;aa=oa+24|0;ba=f+328|0;_=0;$=0;g=0;h=0;k=0;t=0;ca=0;s=1;l=0;while(1){if((ca|0)>0){U=l+8|0;V=c[(U&p)>>2]|k;t=c[(U&p)+4>>2]|t}else V=k;if((ca|0)<(na|0))l=c[((c[(ha&p)>>2]|0)+(ca<<2)&p)>>2]|0;else l=m;B=l+36|0;k=c[(B&p)>>2]|0;if(k&1024)break;U=c[((c[(ia&p)>>2]|0)+((d[(l&n)+16>>0]|0)*72|0)&p)+48>>2]|0;if(!ja){k=~V;v=~t;y=0;do{A=iw(1,0,y|0)|0;z=G;c:do if((A&g|0)==0&(z&h|0)==0){u=c[((c[(ea&p)>>2]|0)+(y*20|0)&p)>>2]|0;x=c[(u&p)+4>>2]|0;if(x&4096)do{if(!(x&262144))u=u+12|0;else u=c[((c[(u&p)+20>>2]|0)&p)+4>>2]|0;u=c[(u&p)>>2]|0;x=c[(u&p)+4>>2]|0}while((x&4096|0)!=0);if(((a[(u&n)>>0]|0)==-102?(c[(u&p)+28>>2]|0)==(U|0):0)?(ka=u+32|0,la=Fu(ba,U,b[(ka&o)>>1]|0,k,v,130,0)|0,(la|0)!=0):0){do if(b[(la&o)+18>>1]&2){if((b[(ka&o)>>1]|0)<=-1)break;u=cu(c[(f&p)>>2]|0,c[((c[(ea&p)>>2]|0)+(y*20|0)&p)>>2]|0)|0;if(!u)u=c[(da&p)>>2]|0;x=c[(u&p)>>2]|0;w=cu(c[(f&p)>>2]|0,c[(la&p)>>2]|0)|0;if(!w)w=c[(da&p)>>2]|0;if(dd(x,c[(w&p)>>2]|0)|0)break c}while(0);g=A|g;h=z|h}}while(0);y=y+1|0}while((y|0)<(r|0));k=c[(B&p)>>2]|0}do if(!(k&4096)){if(!(k&256)){u=c[(l&p)+28>>2]|0;if(!u){r=0;break a}if(a[(u&n)+51>>0]&4){r=0;break a}k=b[(u&o)+48>>1]|0;s=(a[(u&n)+50>>0]|0)!=0&1;if(!(k<<16>>16)){pa=71;break}else{S=k&65535;T=b[(u&o)+46>>1]|0}}else{S=1;T=0;u=0}J=l+24|0;K=l+42|0;L=l+48|0;M=(u|0)==0;N=u+32|0;O=iw(1,0,ca|0)|0;P=G;Q=u+4|0;R=u+28|0;I=u+12|0;k=0;u=0;A=0;H=0;d:while(1){z=(u|0)<(e[(J&o)>>1]|0);if((z?(b[(K&o)>>1]|0)==0:0)?(ma=e[((c[((c[(L&p)>>2]|0)+(u<<2)&p)>>2]|0)&o)+18>>1]|0,(ma&130|0)!=0):0){s=(ma&128|0)==0?s:0;z=H}else{if(!M){x=b[((c[(Q&p)>>2]|0)+(u<<1)&o)>>1]|0;w=a[((c[(R&p)>>2]|0)+u&n)>>0]|0;v=c[(I&p)>>2]|0;x=x<<16>>16==(b[(v&o)+36>>1]|0)?-1:x<<16>>16;y=(x|0)>-1;if(s<<24>>24!=0&y)if(z){y=1;F=x}else{y=1;F=x;s=(a[((c[(v&p)+4>>2]|0)+(x*24|0)&n)+20>>0]|0)==0?0:s}else F=x}else{y=0;F=-1;w=0}if(ja){pa=68;break}else{z=1;E=0}e:while(1){C=iw(1,0,E|0)|0;D=G;do if((C&g|0)==0&(D&h|0)==0){v=c[((c[(ea&p)>>2]|0)+(E*20|0)&p)>>2]|0;x=c[(v&p)+4>>2]|0;if(!(x&4096))B=v;else{B=v;do{if(!(x&262144))x=B+12|0;else x=c[((c[(B&p)+20>>2]|0)&p)+4>>2]|0;B=c[(x&p)>>2]|0;x=c[(B&p)+4>>2]|0}while((x&4096|0)!=0)}z=ga?0:z;if((a[(B&n)>>0]|0)!=-102)break;if((c[(B&p)+28>>2]|0)!=(U|0))break;if((b[(B&o)+32>>1]|0)!=(F|0))break;if(!y){B=C;y=D;z=E;break e}x=cu(c[(f&p)>>2]|0,v)|0;if(!x)x=c[(da&p)>>2]|0;if(!(dd(c[(x&p)>>2]|0,c[((c[(N&p)>>2]|0)+(u<<2)&p)>>2]|0)|0)){B=C;y=D;z=E;break e}}while(0);E=E+1|0;if(!(z<<24>>24!=0&(E|0)<(r|0))){pa=68;break d}}do if(W){if(H<<24>>24)if((w^A)<<24>>24==(a[((c[(ea&p)>>2]|0)+(z*20|0)&n)+12>>0]|0)){z=H;break}else{pa=68;break d}v=a[((c[(ea&p)>>2]|0)+(z*20|0)&n)+12>>0]|0;A=v^w;if(w<<24>>24==v<<24>>24){z=1;break}v=q;w=c[(v&p)+4>>2]|P;z=q;c[(z&p)>>2]=c[(v&p)>>2]|O;c[(z&p)+4>>2]=w;z=1}else z=H;while(0);g=B|g;h=y|h;k=(F|0)<0?1:k}u=u+1|0;if((u|0)>=(S|0))break;else H=z}if((pa|0)==68){pa=0;s=(u|0)==0|(u|0)<(T&65535|0)?0:s}if(!(k<<24>>24))pa=71;else s=1}else pa=71;while(0);if((pa|0)==71){pa=0;if(!(s<<24>>24)){s=0;break b}}U=l+8|0;_=c[(U&p)>>2]|_;$=c[(U&p)+4>>2]|$;if(!ja){z=~_;A=~$;y=0;do{u=iw(1,0,y|0)|0;x=G;do if((u&g|0)==0&(x&h|0)==0){k=c[((c[(ea&p)>>2]|0)+(y*20|0)&p)>>2]|0;v=Av(X,k)|0;w=G;if((v|0)==0&(w|0)==0?(c[(oa&p)>>2]=0,c[(oa&p)+4>>2]=0,c[(oa&p)+8>>2]=0,c[(oa&p)+12>>2]=0,c[(oa&p)+16>>2]=0,c[(oa&p)+20>>2]=0,a[(Y&n)>>0]=1,c[(oa&p)>>2]=78,c[(Z&p)>>2]=79,c[(aa&p)>>2]=0,rs(oa,k)|0,(a[(Y&n)>>0]|0)==0):0)break;U=(v&z|0)==0&(w&A|0)==0;g=(U?u:0)|g;h=(U?x:0)|h}while(0);y=y+1|0}while((y|0)<(r|0))}if(h>>>0>ra>>>0|(h|0)==(ra|0)&g>>>0>=qa>>>0|s<<24>>24==0|(ca|0)>=(na|0))break b;else{k=V;ca=ca+1|0}}ga=(a[(l&n)+29>>0]|0)==0;g=ga?g:qa;h=ga?h:ra}while(0);if((g|0)==(qa|0)&(h|0)==(ra|0)){r=sa&255;break}if(!(s<<24>>24)){do{r=r+-1|0;if((r|0)<=0){r=0;break a}ea=iw(1,0,r|0)|0;ea=jw(ea|0,G|0,-1,-1)|0;ga=G}while(!((ea&g|0)==(ea|0)&(ga&h|0)==(ga|0)));r=r&255}else r=-1}else r=0}while(0);i=ta;return r|0}function Nv(b,c,d,e){b=b|0;c=c|0;d=d|0;e=e|0;if(c)Sk(b,33920,5);if(!d)c=0;else{c=d;while(1)if(!(a[(c&n)>>0]|0))break;else c=c+1|0;c=c-d&1073741823}Sk(b,d,c);Sk(b,e,1);Sk(b,13552,1);return}function Ov(a){a=a|0;var d=0,e=0,f=0,g=0,h=0,i=0;i=c[(c[(c[(a&p)>>2]&p)>>2]&p)>>2]|0;d=c[(a&p)+12>>2]|0;g=a+20|0;if((d|0)>0){h=c[(g&p)>>2]|0;while(1){d=d+-1|0;f=h+20|0;e=b[(f&o)>>1]|0;if(e&1){Gk(i,c[(h&p)>>2]|0);e=b[(f&o)>>1]|0}e=e&65535;if(!(e&16)){if(e&32){e=c[(h&p)+12>>2]|0;Ov(e);mg(i,e)}}else{e=c[(h&p)+12>>2]|0;Ov(e);mg(i,e)}if((d|0)<=0)break;else h=h+48|0}}d=c[(g&p)>>2]|0;if((d|0)!=(a+24|0))mg(i,d);return}function Pv(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,o=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0;u=i;i=i+32|0;if((i|0)>=(j|0))fa();t=u;h=c[(b&p)+8>>2]|0;k=c[(b&p)>>2]|0;if(e){l=(f|0)==10;m=b+437|0;o=t+4|0;q=t+1|0;r=t+8|0;s=t+12|0;g=f&255;do{if(l)f=a[(e&n)+1>>0]|0;else f=g;a[(m&n)>>0]=f;f=d[(e&n)>>0]|0;if((f|0)==108){w=Vv(b,e)|0;v=gr(k,c[(e&p)+8>>2]|0,0)|0;f=Nr(k,c[(e&p)+28>>2]|0)|0;tr(b,w,v,f,d[(m&n)>>0]|0)}else if((f|0)==109){f=Vv(b,e)|0;rr(b,f,Mr(k,c[(e&p)+20>>2]|0,0,0)|0)}else if((f|0)==110){w=Vv(b,e)|0;v=Pr(k,c[(e&p)+24>>2]|0,0)|0;f=Mr(k,c[(e&p)+20>>2]|0,0,0)|0;sr(b,w,v,f,d[(m&n)>>0]|0)}else{f=gr(k,c[(e&p)+8>>2]|0,0)|0;a[(t&n)>>0]=4;c[(o&p)>>2]=0;a[(q&n)>>0]=0;c[(r&p)>>2]=0;c[(s&p)>>2]=0;ir(b,f,t)|0;Mk(k,f,1)}if((a[(e&n)>>0]|0)!=119)wh(h,98,0,0,0)|0;e=c[(e&p)+32>>2]|0}while((e|0)!=0)}i=u;return}function Qv(d,e,f,g){d=d|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0;m=i;i=i+16|0;if((i|0)>=(j|0))fa();h=m;l=c[(d&p)>>2]|0;c[(h&p)>>2]=0;c[(h&p)+4>>2]=0;h=nr(l,159,h,0)|0;do if(!h)h=0;else{k=g<<16>>16;if(g<<16>>16>-1?(b[(e&o)+36>>1]|0)!=g<<16>>16:0){g=c[(e&p)+4>>2]|0;c[(h&p)+28>>2]=f+1+k;a[(h&n)+1>>0]=a[(g+(k*24|0)&n)+21>>0]|0;k=c[(g+(k*24|0)&p)+16>>2]|0;if(!k)k=c[(c[(l&p)+8>>2]&p)>>2]|0;h=xv(d,h,k)|0;break}c[(h&p)+28>>2]=f;a[(h&n)+1>>0]=68}while(0);i=m;return h|0}function Rv(d,e,f,g){d=d|0;e=e|0;f=f|0;g=g|0;var h=0,i=0,j=0;d=mh(d,48,0)|0;if(d){h=d+0|0;i=h+44|0;do{a[(h&n)>>0]=0;h=h+1|0}while((h|0)<(i|0));a[(d&n)>>0]=-102;b[(d&o)+34>>1]=-1;c[(d&p)+24>>2]=1;h=c[(e+(f*72|0)&p)+24>>2]|0;c[(d&p)+44>>2]=h;c[(d&p)+28>>2]=c[(e+(f*72|0)&p)+48>>2];if((b[(h&o)+36>>1]|0)==(g|0))b[(d&o)+32>>1]=-1;else{b[(d&o)+32>>1]=g;j=(g|0)>63;g=iw(1,0,g|0)|0;h=e+(f*72|0)+64|0;f=h;i=c[(f&p)+4>>2]|(j?-2147483648:G);c[(h&p)>>2]=c[(f&p)>>2]|(j?0:g);c[(h&p)+4>>2]=i}h=d+4|0;c[(h&p)>>2]=c[(h&p)>>2]|4}return d|0}function Sv(b,e){b=b|0;e=e|0;if((a[(e&n)>>0]|0)==-101){e=e+38|0;a[(e&n)>>0]=(d[(e&n)>>0]|0)+(c[(b&p)+24>>2]|0)}return 0}function Tv(a,d){a=a|0;d=d|0;var f=0,g=0,h=0,i=0,j=0,k=0;f=b[(a&o)+40>>1]|0;i=f&65535;h=b[(a&o)+42>>1]|0;k=e[(d&o)+40>>1]|0;g=b[(d&o)+42>>1]|0;a:do if(!((g&65535)>(h&65535)?1:(i-(h&65535)|0)>=(k-(g&65535)|0))){g=b[(a&o)+20>>1]|0;h=b[(d&o)+20>>1]|0;if(g<<16>>16>=h<<16>>16){if(g<<16>>16>h<<16>>16){f=0;break}if((b[(a&o)+22>>1]|0)>(b[(d&o)+22>>1]|0)){f=0;break}}if(!(f<<16>>16))f=1;else{j=c[(a&p)+48>>2]|0;d=d+48|0;a=i;while(1){a=a+-1|0;h=c[(j+(a<<2)&p)>>2]|0;if(h){f=k;while(1){g=f+-1|0;if((f|0)<=0){f=0;break a}if((c[((c[(d&p)>>2]|0)+(g<<2)&p)>>2]|0)==(h|0))break;else f=g}if((f|0)<1){f=0;break a}}if((a|0)<=0){f=1;break}}}}else f=0;while(0);return f|0}function Uv(d,e){d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0,v=0;f=c[(d&p)>>2]|0;a:do if(f){k=a[(e&n)+16>>0]|0;l=e+17|0;m=e+18|0;q=e+20|0;r=e+22|0;s=e+42|0;t=e+36|0;do{if((a[(f&n)+16>>0]|0)==k<<24>>24?(a[(f&n)+17>>0]|0)==(a[(l&n)>>0]|0):0){if((((c[(f&p)+36>>2]&16384|0)!=0?(b[(s&o)>>1]|0)==0:0)?(c[(t&p)>>2]&513|0)==513:0)?(i=f,j=e,h=c[(j&p)>>2]|0,j=c[(j&p)+4>>2]|0,(h&c[(i&p)>>2]|0)==(h|0)?(j&c[(i&p)+4>>2]|0)==(j|0):0):0)break a;u=f;v=c[(u&p)>>2]|0;u=c[(u&p)+4>>2]|0;h=e;g=c[(h&p)>>2]|0;h=c[(h&p)+4>>2]|0;i=g&v;j=h&u;if((((i|0)==(v|0)&(j|0)==(u|0)?(b[(f&o)+18>>1]|0)<=(b[(m&o)>>1]|0):0)?(b[(f&o)+20>>1]|0)<=(b[(q&o)>>1]|0):0)?(b[(f&o)+22>>1]|0)<=(b[(r&o)>>1]|0):0){d=0;break a}if(((i|0)==(g|0)&(j|0)==(h|0)?(b[(f&o)+20>>1]|0)>=(b[(q&o)>>1]|0):0)?(b[(f&o)+22>>1]|0)>=(b[(r&o)>>1]|0):0)break a}d=f+52|0;f=c[(d&p)>>2]|0}while((f|0)!=0)}while(0);return d|0}function Vv(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;h=pr(c[(a&p)>>2]|0,0,b+12|0,0)|0;do if(h){g=c[(a&p)>>2]|0;f=c[((c[(b&p)+4>>2]|0)&p)+20>>2]|0;a:do if(f){e=c[(g&p)+20>>2]|0;if((e|0)>0){b=c[(g&p)+16>>2]|0;d=0;while(1){a=d+1|0;if((c[(b+(d<<4)&p)+12>>2]|0)==(f|0)){a=d;d=7;break a}if((a|0)<(e|0))d=a;else{d=7;break}}}else a=0}else{a=-1e6;d=7}while(0);if((d|0)==7)if(!((a|0)==0|(a|0)>1))break;a=kh(g,c[((c[(g&p)+16>>2]|0)+(a<<4)&p)>>2]|0)|0;c[(h+(((c[(h&p)>>2]|0)+-1|0)*72|0)&p)+12>>2]=a}while(0);return h|0}function Wv(a){a=a|0;var b=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,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;do if(a>>>0<245){if(a>>>0<11)q=16;else q=a+11&-8;a=q>>>3;l=c[12266]|0;i=l>>>a;if(i&3){e=(i&1^1)+a|0;f=e<<1;b=49104+(f<<2)|0;f=49104+(f+2<<2)|0;g=c[(f&p)>>2]|0;h=g+8|0;i=c[(h&p)>>2]|0;do if((b|0)!=(i|0)){if(i>>>0<(c[12270]|0)>>>0)Ob();d=i+12|0;if((c[(d&p)>>2]|0)==(g|0)){c[(d&p)>>2]=b;c[(f&p)>>2]=i;break}else Ob()}else c[12266]=l&~(1<>2]=x|3;x=g+(x|4)|0;c[(x&p)>>2]=c[(x&p)>>2]|1;x=h;return x|0}k=c[12268]|0;if(q>>>0>k>>>0){if(i){f=2<>>12&16;f=f>>>a;e=f>>>5&8;f=f>>>e;d=f>>>2&4;f=f>>>d;g=f>>>1&2;f=f>>>g;h=f>>>1&1;h=(e|a|d|g|h)+(f>>>h)|0;f=h<<1;g=49104+(f<<2)|0;f=49104+(f+2<<2)|0;d=c[(f&p)>>2]|0;a=d+8|0;e=c[(a&p)>>2]|0;do if((g|0)!=(e|0)){if(e>>>0<(c[12270]|0)>>>0)Ob();i=e+12|0;if((c[(i&p)>>2]|0)==(d|0)){c[(i&p)>>2]=g;c[(f&p)>>2]=e;m=c[12268]|0;break}else Ob()}else{c[12266]=l&~(1<>2]=q|3;j=d+q|0;c[(d+(q|4)&p)>>2]=b|1;c[(d+x&p)>>2]=b;if(m){e=c[12271]|0;g=m>>>3;i=g<<1;f=49104+(i<<2)|0;h=c[12266]|0;g=1<>2]|0;if(i>>>0<(c[12270]|0)>>>0)Ob();else{n=h;o=i}}else{c[12266]=h|g;n=49104+(i+2<<2)|0;o=f}c[(n&p)>>2]=e;c[(o&p)+12>>2]=e;c[(e&p)+8>>2]=o;c[(e&p)+12>>2]=f}c[12268]=b;c[12271]=j;x=a;return x|0}a=c[12267]|0;if(a){h=(a&0-a)+-1|0;w=h>>>12&16;h=h>>>w;v=h>>>5&8;h=h>>>v;x=h>>>2&4;h=h>>>x;i=h>>>1&2;h=h>>>i;g=h>>>1&1;g=c[((v|w|x|i|g)+(h>>>g)<<2&p)+49368>>2]|0;h=(c[(g&p)+4>>2]&-8)-q|0;i=g;while(1){d=c[(i&p)+16>>2]|0;if(!d){d=c[(i&p)+20>>2]|0;if(!d){l=h;k=g;break}}i=(c[(d&p)+4>>2]&-8)-q|0;x=i>>>0>>0;h=x?i:h;i=d;g=x?d:g}a=c[12270]|0;if(k>>>0>>0)Ob();b=k+q|0;if(k>>>0>=b>>>0)Ob();j=c[(k&p)+24>>2]|0;g=c[(k&p)+12>>2]|0;do if((g|0)==(k|0)){h=k+20|0;i=c[(h&p)>>2]|0;if(!i){h=k+16|0;i=c[(h&p)>>2]|0;if(!i){e=0;break}}while(1){g=i+20|0;f=c[(g&p)>>2]|0;if(f){i=f;h=g;continue}g=i+16|0;f=c[(g&p)>>2]|0;if(!f)break;else{i=f;h=g}}if(h>>>0>>0)Ob();else{c[(h&p)>>2]=0;e=i;break}}else{f=c[(k&p)+8>>2]|0;if(f>>>0>>0)Ob();i=f+12|0;if((c[(i&p)>>2]|0)!=(k|0))Ob();h=g+8|0;if((c[(h&p)>>2]|0)==(k|0)){c[(i&p)>>2]=g;c[(h&p)>>2]=f;e=g;break}else Ob()}while(0);do if(j){i=c[(k&p)+28>>2]|0;h=49368+(i<<2)|0;if((k|0)==(c[(h&p)>>2]|0)){c[(h&p)>>2]=e;if(!e){c[12267]=c[12267]&~(1<>>0<(c[12270]|0)>>>0)Ob();i=j+16|0;if((c[(i&p)>>2]|0)==(k|0))c[(i&p)>>2]=e;else c[(j&p)+20>>2]=e;if(!e)break}h=c[12270]|0;if(e>>>0>>0)Ob();c[(e&p)+24>>2]=j;i=c[(k&p)+16>>2]|0;do if(i)if(i>>>0>>0)Ob();else{c[(e&p)+16>>2]=i;c[(i&p)+24>>2]=e;break}while(0);i=c[(k&p)+20>>2]|0;if(i)if(i>>>0<(c[12270]|0)>>>0)Ob();else{c[(e&p)+20>>2]=i;c[(i&p)+24>>2]=e;break}}while(0);if(l>>>0<16){x=l+q|0;c[(k&p)+4>>2]=x|3;x=k+(x+4)|0;c[(x&p)>>2]=c[(x&p)>>2]|1}else{c[(k&p)+4>>2]=q|3;c[(k+(q|4)&p)>>2]=l|1;c[(k+l+q&p)>>2]=l;d=c[12268]|0;if(d){e=c[12271]|0;g=d>>>3;i=g<<1;f=49104+(i<<2)|0;h=c[12266]|0;g=1<>2]|0;if(h>>>0<(c[12270]|0)>>>0)Ob();else{r=i;s=h}}else{c[12266]=h|g;r=49104+(i+2<<2)|0;s=f}c[(r&p)>>2]=e;c[(s&p)+12>>2]=e;c[(e&p)+8>>2]=s;c[(e&p)+12>>2]=f}c[12268]=l;c[12271]=b}x=k+8|0;return x|0}else s=q}else s=q}else if(a>>>0<=4294967231){a=a+11|0;s=a&-8;k=c[12267]|0;if(k){h=0-s|0;a=a>>>8;if(a)if(s>>>0>16777215)d=31;else{q=(a+1048320|0)>>>16&8;r=a<>>16&4;r=r<>>16&2;d=14-(o|q|d)+(r<>>15)|0;d=s>>>(d+7|0)&1|d<<1}else d=0;f=c[(d<<2&p)+49368>>2]|0;a:do if(!f){a=0;i=0}else{if((d|0)==31)i=0;else i=25-(d>>>1)|0;l=h;a=0;b=s<>2]&-8;h=e-s|0;if(h>>>0>>0)if((e|0)==(s|0)){a=f;i=f;break a}else i=f;else h=l;r=c[(f&p)+20>>2]|0;f=c[(f+(b>>>31<<2)&p)+16>>2]|0;a=(r|0)==0|(r|0)==(f|0)?a:r;if(!f)break;else{l=h;b=b<<1}}}while(0);if((a|0)==0&(i|0)==0){a=2<>>12&16;r=r>>>n;m=r>>>5&8;r=r>>>m;o=r>>>2&4;r=r>>>o;q=r>>>1&2;r=r>>>q;a=r>>>1&1;a=c[((m|n|o|q|a)+(r>>>a)<<2&p)+49368>>2]|0}if(!a){o=h;q=i}else while(1){r=(c[(a&p)+4>>2]&-8)-s|0;f=r>>>0>>0;h=f?r:h;i=f?a:i;f=c[(a&p)+16>>2]|0;if(f){a=f;continue}a=c[(a&p)+20>>2]|0;if(!a){o=h;q=i;break}}if((q|0)!=0?o>>>0<((c[12268]|0)-s|0)>>>0:0){a=c[12270]|0;if(q>>>0>>0)Ob();m=q+s|0;if(q>>>0>=m>>>0)Ob();j=c[(q&p)+24>>2]|0;g=c[(q&p)+12>>2]|0;do if((g|0)==(q|0)){h=q+20|0;i=c[(h&p)>>2]|0;if(!i){h=q+16|0;i=c[(h&p)>>2]|0;if(!i){u=0;break}}while(1){g=i+20|0;f=c[(g&p)>>2]|0;if(f){i=f;h=g;continue}g=i+16|0;f=c[(g&p)>>2]|0;if(!f)break;else{i=f;h=g}}if(h>>>0>>0)Ob();else{c[(h&p)>>2]=0;u=i;break}}else{f=c[(q&p)+8>>2]|0;if(f>>>0>>0)Ob();i=f+12|0;if((c[(i&p)>>2]|0)!=(q|0))Ob();h=g+8|0;if((c[(h&p)>>2]|0)==(q|0)){c[(i&p)>>2]=g;c[(h&p)>>2]=f;u=g;break}else Ob()}while(0);do if(j){i=c[(q&p)+28>>2]|0;h=49368+(i<<2)|0;if((q|0)==(c[(h&p)>>2]|0)){c[(h&p)>>2]=u;if(!u){c[12267]=c[12267]&~(1<>>0<(c[12270]|0)>>>0)Ob();i=j+16|0;if((c[(i&p)>>2]|0)==(q|0))c[(i&p)>>2]=u;else c[(j&p)+20>>2]=u;if(!u)break}h=c[12270]|0;if(u>>>0>>0)Ob();c[(u&p)+24>>2]=j;i=c[(q&p)+16>>2]|0;do if(i)if(i>>>0>>0)Ob();else{c[(u&p)+16>>2]=i;c[(i&p)+24>>2]=u;break}while(0);i=c[(q&p)+20>>2]|0;if(i)if(i>>>0<(c[12270]|0)>>>0)Ob();else{c[(u&p)+20>>2]=i;c[(i&p)+24>>2]=u;break}}while(0);b:do if(o>>>0>=16){c[(q&p)+4>>2]=s|3;c[(q+(s|4)&p)>>2]=o|1;c[(q+o+s&p)>>2]=o;i=o>>>3;if(o>>>0<256){h=i<<1;f=49104+(h<<2)|0;g=c[12266]|0;i=1<>2]|0;if(h>>>0>=(c[12270]|0)>>>0){v=i;w=h;break}Ob()}while(0);c[(v&p)>>2]=m;c[(w&p)+12>>2]=m;c[(q+s&p)+8>>2]=w;c[(q+s&p)+12>>2]=f;break}d=o>>>8;if(d)if(o>>>0>16777215)f=31;else{w=(d+1048320|0)>>>16&8;x=d<>>16&4;x=x<>>16&2;f=14-(v|w|f)+(x<>>15)|0;f=o>>>(f+7|0)&1|f<<1}else f=0;i=49368+(f<<2)|0;c[(q+s&p)+28>>2]=f;c[(q+s&p)+20>>2]=0;c[(q+s&p)+16>>2]=0;h=c[12267]|0;g=1<>2]=m;c[(q+s&p)+24>>2]=i;c[(q+s&p)+12>>2]=m;c[(q+s&p)+8>>2]=m;break}d=c[(i&p)>>2]|0;if((f|0)==31)b=0;else b=25-(f>>>1)|0;c:do if((c[(d&p)+4>>2]&-8|0)!=(o|0)){h=o<>>31<<2)+16|0;i=c[(b&p)>>2]|0;if(!i)break;if((c[(i&p)+4>>2]&-8|0)==(o|0)){C=i;break c}else{h=h<<1;d=i}}if(b>>>0<(c[12270]|0)>>>0)Ob();else{c[(b&p)>>2]=m;c[(q+s&p)+24>>2]=d;c[(q+s&p)+12>>2]=m;c[(q+s&p)+8>>2]=m;break b}}else C=d;while(0);d=C+8|0;b=c[(d&p)>>2]|0;x=c[12270]|0;if(C>>>0>=x>>>0&b>>>0>=x>>>0){c[(b&p)+12>>2]=m;c[(d&p)>>2]=m;c[(q+s&p)+8>>2]=b;c[(q+s&p)+12>>2]=C;c[(q+s&p)+24>>2]=0;break}else Ob()}else{x=o+s|0;c[(q&p)+4>>2]=x|3;x=q+(x+4)|0;c[(x&p)>>2]=c[(x&p)>>2]|1}while(0);x=q+8|0;return x|0}}}else s=-1;while(0);a=c[12268]|0;if(a>>>0>=s>>>0){b=a-s|0;d=c[12271]|0;if(b>>>0>15){c[12271]=d+s;c[12268]=b;c[(d+s&p)+4>>2]=b|1;c[(d+a&p)>>2]=b;c[(d&p)+4>>2]=s|3}else{c[12268]=0;c[12271]=0;c[(d&p)+4>>2]=a|3;x=d+(a+4)|0;c[(x&p)>>2]=c[(x&p)>>2]|1}x=d+8|0;return x|0}a=c[12269]|0;if(a>>>0>s>>>0){w=a-s|0;c[12269]=w;x=c[12272]|0;c[12272]=x+s;c[(x+s&p)+4>>2]=w|1;c[(x&p)+4>>2]=s|3;x=x+8|0;return x|0}do if(!(c[12384]|0)){a=wb(30)|0;if(!(a+-1&a)){c[12386]=a;c[12385]=a;c[12387]=-1;c[12388]=-1;c[12389]=0;c[12377]=0;c[12384]=(Pb(0)|0)&-16^1431655768;break}else Ob()}while(0);l=s+48|0;b=c[12386]|0;k=s+47|0;d=b+k|0;b=0-b|0;m=d&b;if(m>>>0<=s>>>0){x=0;return x|0}a=c[12376]|0;if((a|0)!=0?(v=c[12374]|0,w=v+m|0,w>>>0<=v>>>0|w>>>0>a>>>0):0){x=0;return x|0}d:do if(!(c[12377]&4)){a=c[12272]|0;e:do if(a){f=49512|0;while(1){i=c[(f&p)>>2]|0;if(i>>>0<=a>>>0?(t=f+4|0,(i+(c[(t&p)>>2]|0)|0)>>>0>a>>>0):0){e=f;h=t;a=f;break}f=c[(f&p)+8>>2]|0;if(!f){H=181;break e}}if(a){a=d-(c[12269]|0)&b;if(a>>>0<2147483647){i=sb(a|0)|0;if((i|0)==((c[(e&p)>>2]|0)+(c[(h&p)>>2]|0)|0))H=190;else H=191}else a=0}else H=181}else H=181;while(0);do if((H|0)==181){i=sb(0)|0;if((i|0)!=(-1|0)){a=i;h=c[12385]|0;f=h+-1|0;if(!(f&a))a=m;else a=m-a+(f+a&0-h)|0;h=c[12374]|0;f=h+a|0;if(a>>>0>s>>>0&a>>>0<2147483647){w=c[12376]|0;if((w|0)!=0?f>>>0<=h>>>0|f>>>0>w>>>0:0){a=0;break}h=sb(a|0)|0;if((h|0)==(i|0))H=190;else{i=h;H=191}}else a=0}else a=0}while(0);f:do if((H|0)==190){if((i|0)!=(-1|0)){y=i;H=201;break d}}else if((H|0)==191){h=0-a|0;do if((i|0)!=(-1|0)&a>>>0<2147483647&l>>>0>a>>>0?(x=c[12386]|0,x=k-a+x&0-x,x>>>0<2147483647):0)if((sb(x|0)|0)==(-1|0)){sb(h|0)|0;a=0;break f}else{a=x+a|0;break}while(0);if((i|0)==(-1|0))a=0;else{y=i;H=201;break d}}while(0);c[12377]=c[12377]|4;H=198}else{a=0;H=198}while(0);if((((H|0)==198?m>>>0<2147483647:0)?(y=sb(m|0)|0,z=sb(0)|0,(y|0)!=(-1|0)&(z|0)!=(-1|0)&y>>>0>>0):0)?(A=z-y|0,B=A>>>0>(s+40|0)>>>0,B):0){a=B?A:a;H=201}if((H|0)==201){i=(c[12374]|0)+a|0;c[12374]=i;if(i>>>0>(c[12375]|0)>>>0)c[12375]=i;l=c[12272]|0;g:do if(l){e=49512|0;do{i=c[(e&p)>>2]|0;h=e+4|0;f=c[(h&p)>>2]|0;if((y|0)==(i+f|0)){D=i;E=h;F=f;G=e;H=213;break}e=c[(e&p)+8>>2]|0}while((e|0)!=0);if(((H|0)==213?(c[(G&p)+12>>2]&8|0)==0:0)?l>>>0>=D>>>0&l>>>0>>0:0){c[(E&p)>>2]=F+a;b=(c[12269]|0)+a|0;d=l+8|0;if(!(d&7))d=0;else d=0-d&7;x=b-d|0;c[12272]=l+d;c[12269]=x;c[(l+d&p)+4>>2]=x|1;c[(l+b&p)+4>>2]=40;c[12273]=c[12388];break}i=c[12270]|0;if(y>>>0>>0){c[12270]=y;k=y}else k=i;i=y+a|0;h=49512|0;do{if((c[(h&p)>>2]|0)==(i|0)){I=h;J=h;H=223;break}h=c[(h&p)+8>>2]|0}while((h|0)!=0);if((H|0)==223?(c[(J&p)+12>>2]&8|0)==0:0){c[(I&p)>>2]=y;i=J+4|0;c[(i&p)>>2]=(c[(i&p)>>2]|0)+a;i=y+8|0;if(!(i&7))q=0;else q=0-i&7;i=y+(a+8)|0;if(!(i&7))d=0;else d=0-i&7;i=y+(d+a)|0;o=q+s|0;n=y+o|0;m=i-(y+q)-s|0;c[(y+q&p)+4>>2]=s|3;h:do if((i|0)!=(l|0)){if((i|0)==(c[12271]|0)){x=(c[12268]|0)+m|0;c[12268]=x;c[12271]=n;c[(y+o&p)+4>>2]=x|1;c[(y+x+o&p)>>2]=x;break}l=a+4|0;j=c[(y+l+d&p)>>2]|0;if((j&3|0)==1){b=j&-8;f=j>>>3;i:do if(j>>>0>=256){e=c[(y+(d|24)+a&p)>>2]|0;g=c[(y+a+d&p)+12>>2]|0;do if((g|0)==(i|0)){g=d|16;h=y+(l+g)|0;j=c[(h&p)>>2]|0;if(!j){h=y+(g+a)|0;j=c[(h&p)>>2]|0;if(!j){O=0;break}}while(1){g=j+20|0;f=c[(g&p)>>2]|0;if(f){j=f;h=g;continue}g=j+16|0;f=c[(g&p)>>2]|0;if(!f)break;else{j=f;h=g}}if(h>>>0>>0)Ob();else{c[(h&p)>>2]=0;O=j;break}}else{f=c[(y+(d|8)+a&p)>>2]|0;if(f>>>0>>0)Ob();j=f+12|0;if((c[(j&p)>>2]|0)!=(i|0))Ob();h=g+8|0;if((c[(h&p)>>2]|0)==(i|0)){c[(j&p)>>2]=g;c[(h&p)>>2]=f;O=g;break}else Ob()}while(0);if(!e)break;j=c[(y+a+d&p)+28>>2]|0;h=49368+(j<<2)|0;do if((i|0)!=(c[(h&p)>>2]|0)){if(e>>>0<(c[12270]|0)>>>0)Ob();j=e+16|0;if((c[(j&p)>>2]|0)==(i|0))c[(j&p)>>2]=O;else c[(e&p)+20>>2]=O;if(!O)break i}else{c[(h&p)>>2]=O;if(O)break;c[12267]=c[12267]&~(1<
>>0){k=(k<<10&983040)+65536|j<<10&64512|d[(l&n)>>0]|d[(h&n)+3>>0]<<8&768;h=h+4|0}else h=l;do if(k>>>0>=128){if(k>>>0<2048){a[(i&n)>>0]=k>>>6&31|192;a[(i&n)+1>>0]=k&63|128;i=i+2|0;break}if(k>>>0<65536){a[(i&n)>>0]=k>>>12&15|224;a[(i&n)+1>>0]=k>>>6&63|128;a[(i&n)+2>>0]=k&63|128;i=i+3|0;break}else{a[(i&n)>>0]=k>>>18&7|240;a[(i&n)+1>>0]=k>>>12&63|128;a[(i&n)+2>>0]=k>>>6&63|128;a[(i&n)+3>>0]=k&63|128;i=i+4|0;break}}else{a[(i&n)>>0]=k;i=i+1|0}while(0)}while(h>>>0>>0);m=55}else{i=u;m=55}else if(i<<24>>24!=1)if((l|0)>0){i=u;do{m=d[(h&n)>>0]<<8;l=h+2|0;k=d[(h&n)+1>>0]|0;j=m|k;if((m&63488|0)==55296&l>>>0>>0){j=(j<<10&983040)+65536|k<<10&64512|d[(h&n)+3>>0]|d[(l&n)>>0]<<8&768;h=h+4|0}else h=l;do if(j>>>0>=128){if(j>>>0<2048){a[(i&n)>>0]=j>>>6&31|192;a[(i&n)+1>>0]=j&63|128;i=i+2|0;break}if(j>>>0<65536){a[(i&n)>>0]=j>>>12&15|224;a[(i&n)+1>>0]=j>>>6&63|128;a[(i&n)+2>>0]=j&63|128;i=i+3|0;break}else{a[(i&n)>>0]=j>>>18&7|240;a[(i&n)+1>>0]=j>>>12&63|128;a[(i&n)+2>>0]=j>>>6&63|128;a[(i&n)+3>>0]=j&63|128;i=i+4|0;break}}else{a[(i&n)>>0]=j;i=i+1|0}while(0)}while(h>>>0>>0);m=55}else{i=u;m=55}else{i=(l|0)>0;if(g<<24>>24==2)if(i){i=u;l=h;while(1){h=l+1|0;j=a[(l&n)>>0]|0;k=j&255;if((j&255)>191){k=d[(k+-192&n)+15360>>0]|0;a:do if((h|0)==(q|0))h=q;else while(1){j=a[(h&n)>>0]|0;if((j&-64)<<24>>24!=-128)break a;l=l+2|0;k=j&63|k<<6;if((l|0)==(q|0)){h=q;break}else{j=h;h=l;l=j}}while(0);if(!(k>>>0<128|(k&-2048|0)==55296|(k&-2|0)==65534))if(k>>>0<65536)m=22;else{l=k+-65536|0;a[(i&n)>>0]=l>>>10&192|k>>>10&63;a[(i&n)+1>>0]=l>>>18&3|216;a[(i&n)+2>>0]=k;a[(i&n)+3>>0]=k>>>8&3|220;i=i+4|0}else{k=65533;m=22}}else m=22;if((m|0)==22){m=0;a[(i&n)>>0]=k;a[(i&n)+1>>0]=k>>>8;i=i+2|0}if(h>>>0>>0)l=h;else break}}else i=u;else if(i){i=u;do{l=h+1|0;k=a[(h&n)>>0]|0;j=k&255;if((k&255)>191){j=d[(j+-192&n)+15360>>0]|0;b:do if((l|0)==(q|0))h=q;else{k=h;h=l;while(1){l=a[(h&n)>>0]|0;if((l&-64)<<24>>24!=-128)break b;k=k+2|0;j=l&63|j<<6;if((k|0)==(q|0)){h=q;break}else{l=h;h=k;k=l}}}while(0);if(!(j>>>0<128|(j&-2048|0)==55296|(j&-2|0)==65534))if(j>>>0<65536)m=31;else{l=j+-65536|0;a[(i&n)>>0]=l>>>18&3|216;a[(i&n)+1>>0]=l>>>10&192|j>>>10&63;a[(i&n)+2>>0]=j>>>8&3|220;a[(i&n)+3>>0]=j;i=i+4|0}else{j=65533;m=31}}else{h=l;m=31}if((m|0)==31){m=0;a[(i&n)>>0]=j>>>8;a[(i&n)+1>>0]=j;i=i+2|0}}while(h>>>0>>0)}else i=u;c[(r&p)>>2]=i-u;a[(i&n)>>0]=0;i=i+1|0}if((m|0)==55)c[(r&p)>>2]=i-u;a[(i&n)>>0]=0;i=f+8|0;r=b[(i&o)>>1]|0;h=r&65535;if(!((r&9312)==0?(c[(f&p)+24>>2]|0)==0:0))Qg(f);b[(i&o)>>1]=h&29|514;a[(v&n)>>0]=g;c[(s&p)>>2]=u;c[(f&p)+20>>2]=u;h=c[(t&p)>>2]|0;do if(!h)h=lc[c[8792>>2]&127](u)|0;else{if((c[(h&p)+276>>2]|0)>>>0<=u>>>0?(c[(h&p)+280>>2]|0)>>>0>u>>>0:0){h=e[(h&o)+248>>1]|0;break}h=lc[c[8792>>2]&127](u)|0}while(0);c[(f&p)+24>>2]=h;h=0}}else if(!(Vl(f)|0)){h=c[(f&p)+16>>2]|0;t=c[(f&p)+12>>2]&-2;i=h+t|0;if((t|0)>0)do{s=a[(h&n)>>0]|0;t=h+1|0;a[(h&n)>>0]=a[(t&n)>>0]|0;h=h+2|0;a[(t&n)>>0]=s}while(h>>>0>>0);a[(v&n)>>0]=g;h=0}else h=7;return h|0}function Cn(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,i=0,j=0;i=a[(b&n)>>0]|0;g=i&255;a:do switch(g|0){case 46:{if(((d[(b&n)+1>>0]|0)+-48|0)>>>0<10)j=51;else{c[(e&p)>>2]=122;f=1}break}case 47:{if((a[(b&n)+1>>0]|0)==42?(f=a[(b&n)+2>>0]|0,f<<24>>24!=0):0){f=f&255;g=3;while(1){i=a[(b+g&n)>>0]|0;if((f|0)==42&i<<24>>24==47){f=42;break}f=i&255;if(!(i<<24>>24))break;else g=g+1|0}c[(e&p)>>2]=151;f=((f|0)!=0&1)+g|0;break a}c[(e&p)>>2]=92;f=1;break}case 45:{if((a[(b&n)+1>>0]|0)==45)f=2;else{c[(e&p)>>2]=90;f=1;break a}while(1){g=a[(b+f&n)>>0]|0;if(g<<24>>24==0|g<<24>>24==10)break;f=f+1|0}c[(e&p)>>2]=151;break}case 41:{c[(e&p)>>2]=23;f=1;break}case 59:{c[(e&p)>>2]=1;f=1;break}case 43:{c[(e&p)>>2]=89;f=1;break}case 42:{c[(e&p)>>2]=91;f=1;break}case 40:{c[(e&p)>>2]=22;f=1;break}case 124:if((a[(b&n)+1>>0]|0)==124){c[(e&p)>>2]=94;f=2;break a}else{c[(e&p)>>2]=86;f=1;break a}case 91:{f=1;while(1){g=a[(b+f&n)>>0]|0;if(!(g<<24>>24)){g=g&255;break}f=f+1|0;if(g<<24>>24==93){g=93;break}}c[(e&p)>>2]=(g|0)==93?27:150;break}case 44:{c[(e&p)>>2]=26;f=1;break}case 38:{c[(e&p)>>2]=85;f=1;break}case 126:{c[(e&p)>>2]=96;f=1;break}case 34:case 39:case 96:{g=a[(b&n)+1>>0]|0;b:do if(g<<24>>24){f=1;while(1){if(g<<24>>24==i<<24>>24){f=f+1|0;if((a[(b+f&n)>>0]|0)!=i<<24>>24)break}f=f+1|0;g=a[(b+f&n)>>0]|0;if(!(g<<24>>24))break b}if(i<<24>>24==39){c[(e&p)>>2]=97;break a}else{c[(e&p)>>2]=27;break a}}else f=1;while(0);c[(e&p)>>2]=150;break}case 88:case 120:{if((a[(b&n)+1>>0]|0)==39){c[(e&p)>>2]=134;f=2;while(1){g=a[(b+f&n)>>0]|0;if(!(a[(g&255&n)+10368>>0]&8))break;else f=f+1|0}if(g<<24>>24==39&(f&1|0)==0)g=1;else{c[(e&p)>>2]=150;while(1){g=a[(b+f&n)>>0]|0;if(g<<24>>24==39|g<<24>>24==0)break;f=f+1|0}g=g<<24>>24!=0}f=(g&1)+f|0}else j=98;break}case 61:{c[(e&p)>>2]=79;f=(a[(b&n)+1>>0]|0)==61?2:1;break}case 60:{f=a[(b&n)+1>>0]|0;if(f<<24>>24==62){c[(e&p)>>2]=78;f=2;break a}else if(f<<24>>24==60){c[(e&p)>>2]=87;f=2;break a}else if(f<<24>>24==61){c[(e&p)>>2]=81;f=2;break a}else{c[(e&p)>>2]=82;f=1;break a}}case 57:case 56:case 55:case 54:case 53:case 52:case 51:case 50:case 49:case 48:{j=51;break}case 62:{f=a[(b&n)+1>>0]|0;if(f<<24>>24==61){c[(e&p)>>2]=83;f=2;break a}else if(f<<24>>24==62){c[(e&p)>>2]=88;f=2;break a}else{c[(e&p)>>2]=80;f=1;break a}}case 63:{c[(e&p)>>2]=135;f=1;while(1)if(((d[(b+f&n)>>0]|0)+-48|0)>>>0<10)f=f+1|0;else break;break}case 33:if((a[(b&n)+1>>0]|0)==61){c[(e&p)>>2]=78;f=2;break a}else{c[(e&p)>>2]=150;f=2;break a}case 58:case 35:case 64:case 36:{c[(e&p)>>2]=135;g=a[(b&n)+1>>0]|0;if(g<<24>>24){f=1;i=0;while(1){if(!(a[(g&255&n)+10368>>0]&70)){if(g<<24>>24==40&(i|0)>0){g=i;j=78;break}if(g<<24>>24!=58){g=i;break}g=f+1|0;if((a[(b+g&n)>>0]|0)==58)f=g;else{g=i;break}}else i=i+1|0;f=f+1|0;g=a[(b+f&n)>>0]|0;if(!(g<<24>>24)){g=i;break}}do if((j|0)==78){h=f;while(1){f=h+1|0;i=a[(b+f&n)>>0]|0;if(!(i<<24>>24))break;if(i<<24>>24!=41?(a[(i&255&n)+10368>>0]&1)==0:0)h=f;else{j=81;break}}if((j|0)==81)if(i<<24>>24==41){f=h+2|0;break}c[(e&p)>>2]=150}while(0);if(g)break a}else f=1;c[(e&p)>>2]=150;break}case 37:{c[(e&p)>>2]=93;f=1;break}case 13:case 12:case 10:case 9:case 32:{f=1;while(1)if(!(a[((d[(b+f&n)>>0]|0)&n)+10368>>0]&1))break;else f=f+1|0;c[(e&p)>>2]=151;break}default:j=98}while(0);c:do if((j|0)==51){c[(e&p)>>2]=132;f=a[(b&n)>>0]|0;if(f<<24>>24==48){g=a[(b&n)+1>>0]|0;if(g<<24>>24==88|g<<24>>24==120)if(!(a[((d[(b&n)+2>>0]|0)&n)+10368>>0]&8))h=0;else{f=3;while(1)if(!(a[((d[(b+f&n)>>0]|0)&n)+10368>>0]&8))break c;else f=f+1|0}else{f=48;h=0}}else h=0;while(1){g=h+1|0;if(((f&255)+-48|0)>>>0>=10){g=h;break}f=a[(b+g&n)>>0]|0;h=g}if(f<<24>>24==46){f=g;do{f=f+1|0;g=b+f|0}while(((d[(g&n)>>0]|0)+-48|0)>>>0<10);c[(e&p)>>2]=133;h=a[(g&n)>>0]|0;i=f}else{h=f;i=g}do if(h<<24>>24==69|h<<24>>24==101){g=a[(b+i&n)+1>>0]|0;if(((g&255)+-48|0)>>>0>=10){if(!(g<<24>>24==45|g<<24>>24==43)){g=h;f=i;break}f=i+2|0;if(((d[(b+f&n)>>0]|0)+-48|0)>>>0>=10){g=h;f=i;break}}else f=i+2|0;while(1){g=b+f|0;if(((d[(g&n)>>0]|0)+-48|0)>>>0<10)f=f+1|0;else break}c[(e&p)>>2]=133;g=a[(g&n)>>0]|0}else{g=h;f=i}while(0);if(a[(g&255&n)+10368>>0]&70)do{c[(e&p)>>2]=150;f=f+1|0}while((a[((d[(b+f&n)>>0]|0)&n)+10368>>0]&70)!=0)}else if((j|0)==98){if(!(a[(g&n)+10368>>0]&70)){c[(e&p)>>2]=150;f=1;break}else f=1;while(1)if(!(a[((d[(b+f&n)>>0]|0)&n)+10368>>0]&70))break;else f=f+1|0;c[(e&p)>>2]=fi(b,f)|0}while(0);return f|0}function Dn(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,i=0,j=0;f=a[(b&n)>>0]|0;if(f<<24>>24==43){b=b+1|0;i=0;j=13}else if(f<<24>>24==45){b=b+1|0;i=1;j=13}else if((f<<24>>24==48?(f=a[(b&n)+1>>0]|0,f<<24>>24==88|f<<24>>24==120):0)?(g=b+2|0,e=a[(g&n)>>0]|0,(a[(e&255&n)+10368>>0]&8)!=0):0){while(1){f=g+1|0;if(e<<24>>24!=48)break;g=f;e=a[(f&n)>>0]|0}if(!(a[(e&255&n)+10368>>0]&8)){e=0;f=0}else{h=e;b=0;f=0;do{e=h<<24>>24;f=(0-(e>>>6&1)&9)+e&15|f<<4;b=b+1|0;h=a[(g+b&n)>>0]|0;e=(a[(h&255&n)+10368>>0]&8)==0}while((b|0)<8&(e^1));e=e^1}if((f|0)<0|e)e=0;else{c[(d&p)>>2]=f;e=1}}else{i=0;j=13}a:do if((j|0)==13){e=0;f=0;h=0;while(1){g=(a[(b+h&n)>>0]|0)+-48|0;if(g>>>0>=10)break;f=sw(e|0,f|0,10,0)|0;e=jw(g|0,((g|0)<0)<<31>>31|0,f|0,G|0)|0;h=h+1|0;if((h|0)>=11){e=0;break a}else f=G}g=dw(e|0,f|0,i|0,0)|0;b=G;if((b|0)>0|(b|0)==0&g>>>0>2147483647)e=0;else{if(i)e=dw(0,0,e|0,f|0)|0;c[(d&p)>>2]=e;e=1}}while(0);return e|0}function En(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0;f=i;i=i+16|0;if((i|0)>=(j|0))fa();g=f;c[(g&p)>>2]=e;sg(a,b,d,g);i=f;return}function Fn(e,f,g,h,k,l,m){e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;m=m|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,H=0,I=0;I=i;i=i+16|0;if((i|0)>=(j|0))fa();F=I;D=I+4|0;c[(D&p)>>2]=0;H=mh(e,536,0)|0;a:do if(H){fw(H|0,0,536)|0;c[(H&p)+476>>2]=k;u=e+20|0;k=c[(u&p)>>2]|0;b:do if((k|0)>0){v=e+16|0;s=0;while(1){t=c[((c[(v&p)>>2]|0)+(s<<4)&p)+4>>2]|0;if(t){c[((c[(t&p)+4>>2]|0)&p)+4>>2]=c[(t&p)>>2];q=bl(t,1,1)|0;if(q)break;k=c[(u&p)>>2]|0}s=s+1|0;if((s|0)>=(k|0))break b}c[(F&p)>>2]=c[((c[(v&p)>>2]|0)+(s<<4)&p)>>2];ug(e,q,40984,F);s=H;break a}while(0);rl(e);c[(H&p)>>2]=e;c[(H&p)+424>>2]=0;do if((g|0)>-1){if((g|0)!=0?(a[(f+g+-1&n)>>0]|0)==0:0){E=21;break}if((c[(e&p)+92>>2]|0)<(g|0)){ug(e,18,41016,F);if(!e){s=H;q=18;break a}if(!(a[(e&n)+65>>0]|0)){s=H;q=c[(e&p)+56>>2]&18;break a}else{Ql(e);s=H;q=7;break a}}else{if((f|0)!=0?(r=jw(g|0,((g|0)<0)<<31>>31|0,1,0)|0,r=mh(e,r,G)|0,(r|0)!=0):0){kw(r|0,f|0,g|0)|0;a[(r+g&n)>>0]=0;Lh(H,r,D)|0;mg(e,r);q=H+480|0;c[(q&p)>>2]=f+((c[(q&p)>>2]|0)-r);break}c[(H&p)+480>>2]=f+g;break}}else E=21;while(0);if((E|0)==21)Lh(H,f,D)|0;v=e+65|0;k=H+12|0;if(!(a[(v&n)>>0]|0)){s=H+12|0;if((c[(k&p)>>2]|0)==101)c[(s&p)>>2]=0}else{c[(k&p)>>2]=7;s=H+12|0}c:do if((a[(H&n)+17>>0]|0)!=0?(w=c[(H&p)>>2]|0,x=w+20|0,(c[(x&p)>>2]|0)>0):0){r=w+16|0;u=0;while(1){k=c[(r&p)>>2]|0;q=c[(k+(u<<4)&p)+4>>2]|0;if(q){if(!(a[(q&n)+8>>0]|0)){k=yg(q,0)|0;if((k|0)==7|(k|0)==3082)break;else if(k)break c;k=c[(r&p)>>2]|0;t=1}else t=0;g=c[(q&p)+4>>2]|0;c[(g&p)+4>>2]=c[(q&p)>>2];g=c[((c[(g&p)+12>>2]|0)&p)+56>>2]|0;if((d[(g&n)+41>>0]<<16|d[(g&n)+40>>0]<<24|d[(g&n)+42>>0]<<8|d[(g&n)+43>>0]|0)!=(c[(c[(k+(u<<4)&p)+12>>2]&p)>>2]|0)){vm(w,u);c[(s&p)>>2]=17}if(t)un(q)|0}u=u+1|0;if((u|0)>=(c[(x&p)>>2]|0))break c}a[(w&n)+65>>0]=1}while(0);if(a[(v&n)>>0]|0)c[(s&p)>>2]=7;if(m)c[(m&p)>>2]=c[(H&p)+480>>2];q=c[(s&p)>>2]|0;t=(q|0)==0;do if(t?(z=H+8|0,y=c[(z&p)>>2]|0,(y|0)!=0):0){s=a[(H&n)+450>>0]|0;if(!(s<<24>>24))break;else if(s<<24>>24==2){iq(y,4);r=8;k=12}else{iq(y,8);r=0;k=8}s=r;do{jq(c[(z&p)>>2]|0,s-r|0,0,c[(s<<2&p)+41040>>2]|0,0);s=s+1|0}while((s|0)<(k|0))}while(0);r=H+8|0;if((a[(e&n)+145>>0]|0)==0?(C=c[(r&p)>>2]|0,A=(c[(H&p)+480>>2]|0)-f|0,(C|0)!=0):0){if((f|0)!=0?(z=c[(C&p)>>2]|0,B=jw(A|0,((A|0)<0)<<31>>31|0,1,0)|0,B=mh(z,B,G)|0,(B|0)!=0):0){kw(B|0,f|0,A|0)|0;a[(B+A&n)>>0]=0;s=B}else s=0;c[(C&p)+168>>2]=s;C=C+88|0;b[(C&o)>>1]=b[(C&o)>>1]&-257|(h&65535)<<8&256}s=c[(r&p)>>2]|0;do if(!s)E=60;else{if(t?(a[(v&n)>>0]|0)==0:0){E=60;break}Ng(s)|0}while(0);if((E|0)==60)c[(l&p)>>2]=s;r=c[(D&p)>>2]|0;do if(!r){c[(e&p)+52>>2]=q;r=c[(e&p)+236>>2]|0;if(r){s=r+8|0;if(!(b[(s&o)>>1]&9312)){b[(s&o)>>1]=1;break}else{vg(r);break}}}else{c[(F&p)>>2]=r;ug(e,q,10344,F);mg(e,r)}while(0);r=H+528|0;s=c[(r&p)>>2]|0;if(!s)s=H;else{do{c[(r&p)>>2]=c[(s&p)+4>>2];mg(e,s);s=c[(r&p)>>2]|0}while((s|0)!=0);s=H}}else{s=0;q=7}while(0);Ch(s);mg(e,H);F=Og(e,q)|0;i=I;return F|0}function Gn(b){b=b|0;var d=0,e=0;e=c[(b&p)>>2]|0;if((a[(e&n)+145>>0]|0)==0?(d=Zh(e,b+4|0)|0,(d|0)!=0):0){c[(b&p)+12>>2]=d;e=b+64|0;c[(e&p)>>2]=(c[(e&p)>>2]|0)+1}else d=0;return d|0}function Hn(a){a=a|0;var b=0,d=0,f=0,g=0,h=0;f=c[(a&p)+24>>2]|0;h=f+84|0;b=c[(h&p)>>2]|0;if(!b){b=1020;d=0}else{b=b*40|0;d=0}g=a+4|0;a=ro(c[(f&p)>>2]|0,c[(g&p)>>2]|0,b,d)|0;d=(a|0)!=0;if(d){b=c[(f&p)>>2]|0;do if(!b)b=lc[c[8792>>2]&127](a)|0;else{if((c[(b&p)+276>>2]|0)>>>0<=a>>>0?(c[(b&p)+280>>2]|0)>>>0>a>>>0:0){b=e[(b&o)+248>>1]|0;break}b=lc[c[8792>>2]&127](a)|0}while(0);c[(h&p)>>2]=(b>>>0)/20|0;c[(g&p)>>2]=a}return (d?0:7)|0}function In(a,d,e){a=a|0;d=d|0;e=e|0;a:do if(e)switch(d|0){case -6:{if(c[(a&p)+520>>2]|0)break a;a=(c[(e&p)>>2]|0)+-1|0;c[(e&p)>>2]=a;if(a)break a;Wc(e);break a}case -8:{if(!(c[(a&p)+520>>2]|0)){Mh(e);break a}if(c[(e&p)+24>>2]|0)mg(a,c[(e&p)+20>>2]|0);mg(a,e);break a}case -10:{if(c[(a&p)+520>>2]|0)break a;An(e);break a}case -15:case -1:case -13:case -12:{mg(a,e);break a}case -11:{if(c[(a&p)+520>>2]|0)break a;Wc(e);break a}case -5:{if(!(b[(e&o)+2>>1]&16))break a;mg(a,e);break a}default:break a}while(0);return}function Jn(e,f){e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0;g=c[(f&p)>>2]|0;s=c[(e&p)+24>>2]|0;t=s+112|0;k=c[(t&p)>>2]|0;q=e+88|0;b[(q&o)>>1]=b[(q&o)>>1]&-193|64;h=c[(e&p)+32>>2]|0;a:do if((h|0)>0){j=c[(e&p)+4>>2]|0;while(1){h=h+-1|0;i=d[(j&n)>>0]|0;switch(i|0){case 5:case 7:case 9:{c[(j&p)+16>>2]=76;a[(j&n)+1>>0]=-19;break}case 6:case 8:{c[(j&p)+16>>2]=77;a[(j&n)+1>>0]=-19;break}case 14:{u=c[(j+-16&p)>>2]|0;g=(u|0)>(g|0)?u:g;break}case 2:case 3:{r=7;break}case 4:{if(!(c[(j&p)+8>>2]|0))r=7;else{b[(q&o)>>1]=b[(q&o)>>1]&-65;r=7}break}case 12:case 13:case 11:{b[(q&o)>>1]=b[(q&o)>>1]&-193|128;break}case 15:{u=c[(j&p)+8>>2]|0;g=(u|0)>(g|0)?u:g;break}case 10:case 1:{u=d[(j&n)+3>>0]|0;g=(u|0)>(g|0)?u:g;break}default:{}}if((r|0)==7){r=0;b[(q&o)>>1]=b[(q&o)>>1]|128}i=a[(i&n)+34168>>0]|0;a[(j&n)+2>>0]=i;if((i&1)!=0?(l=j+8|0,m=c[(l&p)>>2]|0,(m|0)<0):0)c[(l&p)>>2]=c[(k+(~m<<2)&p)>>2];if((h|0)<=0)break a;else j=j+20|0}}while(0);mg(c[(e&p)>>2]|0,c[(t&p)>>2]|0);c[(t&p)>>2]=0;c[(s&p)+108>>2]=0;c[(f&p)>>2]=g;return}function Kn(b){b=b|0;var d=0,e=0,f=0,g=0,h=0;h=i;i=i+16|0;if((i|0)>=(j|0))fa();g=h;e=b+73|0;if((a[(e&n)>>0]|0)!=4){a[(e&n)>>0]=0;f=b+56|0;d=b+48|0;d=Gp(b,c[(f&p)>>2]|0,c[(d&p)>>2]|0,c[(d&p)+4>>2]|0,0,g)|0;if(!d){Wc(c[(f&p)>>2]|0);c[(f&p)>>2]=0;f=b+68|0;d=c[(f&p)>>2]|c[(g&p)>>2];c[(f&p)>>2]=d;if((d|0)!=0?(a[(e&n)>>0]|0)==1:0){a[(e&n)>>0]=2;d=0}else d=0}}else d=c[(b&p)+68>>2]|0;i=h;return d|0}function Ln(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;a=c[(a&p)+8>>2]|0;a:do if(!a)a=0;else{e=(b|0)==0;while(1){if((a|0)!=(d|0)){if(e)break;if((c[(a&p)+60>>2]|0)==(b|0))break}a=c[(a&p)+8>>2]|0;if(!a){a=0;break a}}a=Fl(a,b,d)|0}while(0);return a|0}function Mn(b){b=b|0;var e=0,f=0,g=0,h=0;f=c[(b&p)>>2]|0;g=f+1|0;c[(b&p)>>2]=g;h=a[(f&n)>>0]|0;e=h&255;if((h&255)<=191)return e|0;e=d[(e+-192&n)+15360>>0]|0;if((a[(g&n)>>0]&-64)<<24>>24==-128)while(1){f=f+2|0;c[(b&p)>>2]=f;e=(d[(g&n)>>0]|0)&63|e<<6;if((a[(f&n)>>0]&-64)<<24>>24==-128){h=g;g=f;f=h}else break}return (e>>>0<128|(e&-2048|0)==55296|(e&-2|0)==65534?65533:e)|0}function Nn(b,c){b=b|0;c=c|0;var d=0,e=0,f=0,g=0;if((c|0)>-1)g=b+c|0;else g=-1;c=a[(b&n)>>0]|0;if(c<<24>>24!=0&g>>>0>b>>>0){d=c;c=0;do{f=b+1|0;if((d&255)>191){e=b;b=f;while(1){d=a[(b&n)>>0]|0;if((d&-64)<<24>>24==-128){d=b;b=e+2|0;e=d}else break}}else{d=a[(f&n)>>0]|0;b=f}c=c+1|0}while(d<<24>>24!=0&b>>>0>>0)}else c=0;return c|0}function On(d,f,g,h){d=d|0;f=f|0;g=g|0;h=h|0;var k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0;A=i;i=i+48|0;if((i|0)>=(j|0))fa();w=A+32|0;x=A+16|0;y=A;k=c[(d&p)>>2]|0;if((k|0)<0){c[(d&p)>>2]=0;c[(d&p)+4>>2]=-1;b[(d&o)+12>>1]=0;a[(d&n)+14>>0]=0;k=0}s=g;r=c[(s&p)+4>>2]|0;t=y;c[(t&p)>>2]=c[(s&p)>>2];c[(t&p)+4>>2]=r;t=d+8|0;c[(t&p)>>2]=h;r=f&255;s=(f|0)==254;do{q=b[(d+(k<<4)&o)+12>>1]|0;h=q&65535;g=37184+(h<<1)|0;a:do if((q&65535)>429)z=6;else{q=r;while(1){m=b[(g&o)>>1]|0;l=m<<16>>16;if(m<<16>>16==-86){z=6;break a}m=q&255;k=l+m|0;if(k>>>0<=1496?(a[(k&n)+39336>>0]|0)==q<<24>>24:0){z=16;break}if(!(q<<24>>24))break;if((q&255)>=70){u=l;z=12;break}q=a[(m&n)+40840>>0]|0;if(!(q<<24>>24)){u=l;z=12;break}}if((z|0)==16){z=0;k=e[(k<<1&o)+22184>>1]|0;break}if(((z|0)==12?(z=0,v=u+70|0,(v|0)>-1):0)?(a[(v&n)+39336>>0]|0)==70:0){k=e[(v<<1&o)+22184>>1]|0;break}k=e[(h<<1&o)+38048>>1]|0}while(0);if((z|0)==6){z=0;k=e[(h<<1&o)+38048>>1]|0}if(k>>>0<642){z=18;break}if(k>>>0>=969){z=20;break}mq(d,k+-642|0);if(s)break;k=c[(d&p)>>2]|0}while((k|0)>-1);if((z|0)==18){kq(d,k,f,y);u=d+4|0;c[(u&p)>>2]=(c[(u&p)>>2]|0)+-1}else if((z|0)==20){c[(x&p)>>2]=c[(y&p)>>2];c[(x&p)+4>>2]=c[(y&p)+4>>2];c[(x&p)+8>>2]=c[(y&p)+8>>2];u=c[(t&p)>>2]|0;c[(w&p)>>2]=x;th(u,20432,w);c[(t&p)>>2]=u;lq(d,r,y)}i=A;return}function Pn(b){b=b|0;var d=0;d=c[(b&p)>>2]|0;if((d|0)>=0){lq(b,a[(b+(d<<4)&n)+14>>0]|0,b+(d<<4)+16|0);c[(b&p)>>2]=(c[(b&p)>>2]|0)+-1}return}function Qn(a,b){a=a|0;b=b|0;var d=0;if(b){if((c[(b&p)>>2]|0)>0){d=0;do{Nk(a,c[(b+(d<<4)&p)+12>>2]|0);Mk(a,c[(b+(d<<4)&p)+16>>2]|0,1);mg(a,c[(b+(d<<4)&p)+8>>2]|0);d=d+1|0}while((d|0)<(c[(b&p)>>2]|0))}mg(a,b)}return}function Rn(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,i=0;h=a+328|0;d=c[(h&p)>>2]|0;if(d){i=a+304|0;if((c[(i&p)>>2]|0)>0){f=0;do{e=c[(d+(f<<2)&p)>>2]|0;d=c[(e&p)+8>>2]|0;if((d|0)!=0?(g=c[((c[(d&p)>>2]|0)+b&p)>>2]|0,(g|0)!=0):0)lc[g&127](d)|0;c[(e&p)+20>>2]=0;An(e);f=f+1|0;d=c[(h&p)>>2]|0}while((f|0)<(c[(i&p)>>2]|0))}mg(a,d);c[(i&p)>>2]=0;c[(h&p)>>2]=0}return}function Sn(a,d,f){a=a|0;d=d|0;f=f|0;var g=0,h=0;do if((d|0)==-2)if(!(c[(a&p)+12>>2]|0))d=(c[(a&p)+16>>2]|0)==0?0:6;else d=6;else{h=b[(a&o)>>1]|0;g=h<<16>>16;if(!((g|0)!=(d|0)&h<<16>>16>-1)){h=(g|0)==(d|0)?4:1;g=f&255;d=e[(a&o)+2>>1]|0;if((g|0)==(d&3|0)){d=h|2;break}else return ((d&g)>>>1&1)+h|0}else d=0}while(0);return d|0} function uc(a){a=a|0;var b=0;b=i;i=i+a|0;i=i+15&-16;if((i|0)>=(j|0))fa();return b|0}function vc(){return i|0}function wc(a){a=a|0;i=a}function xc(a,b){a=a|0;b=b|0;if(!r){r=a;s=b}}function yc(b){b=b|0;a[(k&n)>>0]=a[(b&n)>>0];a[(k&n)+1>>0]=a[(b&n)+1>>0];a[(k&n)+2>>0]=a[(b&n)+2>>0];a[(k&n)+3>>0]=a[(b&n)+3>>0]}function zc(b){b=b|0;a[(k&n)>>0]=a[(b&n)>>0];a[(k&n)+1>>0]=a[(b&n)+1>>0];a[(k&n)+2>>0]=a[(b&n)+2>>0];a[(k&n)+3>>0]=a[(b&n)+3>>0];a[(k&n)+4>>0]=a[(b&n)+4>>0];a[(k&n)+5>>0]=a[(b&n)+5>>0];a[(k&n)+6>>0]=a[(b&n)+6>>0];a[(k&n)+7>>0]=a[(b&n)+7>>0]}function Ac(a){a=a|0;G=a}function Bc(){return G|0}function Cc(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0;h=i;i=i+16|0;if((i|0)>=(j|0))fa();e=h+4|0;f=h;g=0;a:while(1){c[(e&p)>>2]=0;c[(f&p)>>2]=0;a[280]=0;if(Rf(14640,e)|0){d=4;break}d=c[(e&p)>>2]|0;b=0;do{if(Qe(d,c[(b<<2&p)+8>>2]|0,17,0,f)|0){d=7;break a}b=b+1|0;d=c[(e&p)>>2]|0}while((b|0)!=5);tf(d)|0;if(_v(280,8504)|0){d=9;break}g=g+1|0;if((g|0)>=3){d=11;break}}if((d|0)==4)ib(8472,8488,47,8496);else if((d|0)==7)ib(8472,8488,50,8496);else if((d|0)==9)ib(8600,8488,53,8496);else if((d|0)==11){i=h;return 0}return 0}function Dc(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;if((d|0)>0)while(1){d=d+-1|0;hw(280,c[(f&p)>>2]|0)|0;b=280+(gw(280)|0)|0;a[(b&n)>>0]=61;a[(b&n)+1>>0]=0;b=c[(e&p)>>2]|0;hw(280,((b|0)==0?20304:b)|0)|0;if((d|0)<=0)break;else{e=e+4|0;f=f+4|0}}return 0}function Ec(b){b=b|0;var e=0,f=0,g=0;g=(Fc(b,8640,7)|0)==0;g=g?b+7|0:b;if(!g)b=0;else{b=g;while(1)if(!(a[(b&n)>>0]|0))break;else b=b+1|0;b=b-g&1073741823}f=0;while(1){e=c[(f<<2&p)+8648>>2]|0;if((Fc(g,e,b)|0)==0?(a[((d[(e+b&n)>>0]|0)&n)+10368>>0]&70)==0:0){b=1;break}f=f+1|0;if((f|0)>=4){b=0;break}}return b|0}function Fc(b,c,e){b=b|0;c=c|0;e=e|0;var f=0;a:do if(b)if(c)if((e|0)>0){f=b;while(1){b=a[(f&n)>>0]|0;if(!(b<<24>>24))break;if((a[(b&255&n)+9328>>0]|0)!=(a[((d[(c&n)>>0]|0)&n)+9328>>0]|0))break;e=e+-1|0;if((e|0)<=0){e=0;break a}else{f=f+1|0;c=c+1|0}}if((e|0)>=1)e=(d[(b&255&n)+9328>>0]|0)-(d[((d[(c&n)>>0]|0)&n)+9328>>0]|0)|0;else e=0}else e=0;else e=1;else e=((c|0)!=0)<<31>>31;while(0);return e|0}function Gc(a){a=a|0;if(a>>>0<4)a=c[(a<<2&p)+8648>>2]|0;else a=0;return a|0}function Hc(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0;h=i;i=i+16|0;if((i|0)>=(j|0))fa();f=h;if(a>>>0<=9){g=c[(a<<2&p)+8664>>2]|0;f=b;c[(f&p)>>2]=g;c[(f&p)+4>>2]=0;f=8704+(a<<2)|0;a=d;c[(a&p)>>2]=c[(f&p)>>2];c[(a&p)+4>>2]=0;if(!e)f=0;else{c[(f&p)>>2]=g;f=0}}else{c[(f&p)>>2]=15033;c[(f&p)+4>>2]=10788;bd(21,13648,f);f=21}i=h;return f|0}function Ic(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0;h=i;i=i+16|0;if((i|0)>=(j|0))fa();f=h+8|0;g=h;a=Hc(a,f,g,e)|0;if(!a){c[(b&p)>>2]=c[(f&p)>>2];c[(d&p)>>2]=c[(g&p)>>2]}i=h;return a|0}function Jc(a,b,d,f,g){a=a|0;b=b|0;d=d|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,n=0,q=0,r=0;r=i;i=i+16|0;if((i|0)>=(j|0))fa();n=r+4|0;l=r;switch(b|0){case 2:{c[(n&p)>>2]=0;q=a+20|0;g=c[(q&p)>>2]|0;h=(g|0)>0;if(h){l=c[(a&p)+16>>2]|0;k=0;do{b=c[(l+(k<<4)&p)+4>>2]|0;if(b)c[((c[(b&p)+4>>2]|0)&p)+4>>2]=c[(b&p)>>2];k=k+1|0}while((k|0)!=(g|0));k=a+520|0;c[(k&p)>>2]=n;if(h){m=a+16|0;h=0;do{b=c[((c[(m&p)>>2]|0)+(h<<4)&p)+12>>2]|0;if(b){l=lc[c[8796>>2]&127](16)|0;l=ca((c[(b&p)+44>>2]|0)+(c[(b&p)+12>>2]|0)+(c[(b&p)+28>>2]|0)+(c[(b&p)+60>>2]|0)|0,l)|0;c[(n&p)>>2]=l+(c[(n&p)>>2]|0);l=lc[c[8792>>2]&127](c[(b&p)+20>>2]|0)|0;c[(n&p)>>2]=(c[(n&p)>>2]|0)+l;l=lc[c[8792>>2]&127](c[(b&p)+52>>2]|0)|0;c[(n&p)>>2]=(c[(n&p)>>2]|0)+l;l=lc[c[8792>>2]&127](c[(b&p)+36>>2]|0)|0;c[(n&p)>>2]=(c[(n&p)>>2]|0)+l;l=lc[c[8792>>2]&127](c[(b&p)+68>>2]|0)|0;c[(n&p)>>2]=(c[(n&p)>>2]|0)+l;l=c[(b&p)+48>>2]|0;if(l)do{jg(a,c[(l&p)+8>>2]|0);l=c[(l&p)>>2]|0}while((l|0)!=0);l=c[(b&p)+16>>2]|0;if(l)do{kg(a,c[(l&p)+8>>2]|0);l=c[(l&p)>>2]|0}while((l|0)!=0);g=c[(q&p)>>2]|0}h=h+1|0}while((h|0)<(g|0));h=c[(n&p)>>2]|0}else h=0}else{k=a+520|0;c[(k&p)>>2]=n;h=0}c[(k&p)>>2]=0;c[(f&p)>>2]=0;c[(d&p)>>2]=h;h=0;break}case 9:case 8:case 7:{q=a+20|0;l=c[(q&p)>>2]|0;if((l|0)>0){n=c[(a&p)+16>>2]|0;m=b+-7|0;k=(g|0)==0;h=0;b=l;g=0;while(1){l=c[(n+(g<<4)&p)+4>>2]|0;if(l){l=(c[(c[(l&p)+4>>2]&p)>>2]|0)+(m<<2)+184|0;h=(c[(l&p)>>2]|0)+h|0;if(k)l=b;else{c[(l&p)>>2]=0;l=c[(q&p)>>2]|0}}else l=b;g=g+1|0;if((g|0)>=(l|0))break;else b=l}}else h=0;c[(f&p)>>2]=0;c[(d&p)>>2]=h;h=0;break}case 0:{k=a+252|0;c[(d&p)>>2]=c[(k&p)>>2];h=a+256|0;c[(f&p)>>2]=c[(h&p)>>2];if(!g)h=0;else{c[(h&p)>>2]=c[(k&p)>>2];h=0}break}case 6:case 5:case 4:{c[(d&p)>>2]=0;h=a+(b+-4<<2)+260|0;c[(f&p)>>2]=c[(h&p)>>2];if(!g)h=0;else{c[(h&p)>>2]=0;h=0}break}case 1:{m=a+20|0;k=c[(m&p)>>2]|0;g=(k|0)>0;if(g){h=c[(a&p)+16>>2]|0;l=0;do{b=c[(h+(l<<4)&p)+4>>2]|0;if(b)c[((c[(b&p)+4>>2]|0)&p)+4>>2]=c[(b&p)>>2];l=l+1|0}while((l|0)!=(k|0));if(g){b=a+16|0;l=0;h=0;while(1){g=c[((c[(b&p)>>2]|0)+(l<<4)&p)+4>>2]|0;if(!g)g=k;else{q=c[(c[(g&p)+4>>2]&p)>>2]|0;a=q+152|0;n=(c[(a&p)>>2]|0)+60+(e[(q&o)+140>>1]|0)|0;n=ca(lc[c[8872>>2]&127](c[((c[(q&p)+204>>2]|0)&p)+40>>2]|0)|0,n)|0;q=lc[c[8792>>2]&127](q)|0;g=c[(m&p)>>2]|0;h=n+h+q+(c[(a&p)>>2]|0)|0}l=l+1|0;if((l|0)>=(g|0))break;else k=g}}else h=0}else h=0;c[(d&p)>>2]=h;c[(f&p)>>2]=0;h=0;break}case 3:{c[(l&p)>>2]=0;g=a+520|0;c[(g&p)>>2]=l;k=c[(a&p)+4>>2]|0;if(!k)h=0;else{do{lg(a,k);mg(a,k);k=c[(k&p)+52>>2]|0}while((k|0)!=0);h=c[(l&p)>>2]|0}c[(g&p)>>2]=0;c[(f&p)>>2]=0;c[(d&p)>>2]=h;h=0;break}case 10:{c[(f&p)>>2]=0;q=a+512|0;n=c[(q&p)+4>>2]|0;if((n|0)>0|(n|0)==0&(c[(q&p)>>2]|0)>>>0>0)h=1;else{h=a+504|0;a=c[(h&p)+4>>2]|0;h=(a|0)>0|(a|0)==0&(c[(h&p)>>2]|0)>>>0>0}c[(d&p)>>2]=h&1;h=0;break}default:h=1}i=r;return h|0}function Kc(a){a=a|0;var b=0;a:do if(!(Lc()|0)){b=c[2254]|0;if(!((b|0)==0|(a|0)==0))while(1){if(!(_v(a,c[(b&p)+16>>2]|0)|0))break a;b=c[(b&p)+12>>2]|0;if(!b){b=0;break}}}else b=0;while(0);return b|0}function Lc(){var a=0,b=0,d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0;m=i;i=i+16|0;if((i|0)>=(j|0))fa();k=m;do if(!(c[2243]|0)){c[2245]=1;if(!(c[2246]|0)){if(!(c[2195]|0)){c[(k&p)>>2]=16496;mf(4,k)|0}b=9024|0;d=b+40|0;do{c[(b&p)>>2]=0;b=b+4|0}while((b|0)<(d|0));if(c[2187]|0)c[2256]=8;h=c[2234]|0;d=c[2235]|0;b=c[2236]|0;if((h|0)!=0&(d|0)>99&(b|0)>0){g=d&-8;c[2235]=g;c[2263]=h;c[2264]=b;f=b+-1|0;if((f|0)>0){b=h+(ca(d>>>3,(b<<3)+-8|0)|0)|0;e=0;d=h;do{a=d;d=d+g|0;c[(a&p)>>2]=d;e=e+1|0}while((e|0)!=(f|0))}else b=h;c[(b&p)>>2]=0;c[2262]=b+4}else{c[2262]=0;c[2234]=0;c[2235]=0;c[2236]=0}if((c[2237]|0)==0|(c[2238]|0)<512|(c[2239]|0)<1){c[2237]=0;c[2238]=0;c[2239]=0}a=lc[c[8800>>2]&127](c[2202]|0)|0;if(a){b=9024|0;d=b+40|0;do{c[(b&p)>>2]=0;b=b+4|0}while((b|0)<(d|0));break}}c[2246]=1;if(!(c[2249]|0))c[2249]=8;a=(c[2248]|0)+1|0;c[2248]=a;if(!(c[2244]|c[2243])){c[2244]=1;b=10840|0;d=b+92|0;do{c[(b&p)>>2]=0;b=b+4|0}while((b|0)<(d|0));b=0;do{ng(10840,16608+(b*36|0)|0);b=b+1|0}while((b|0)!=59);b=0;do{ng(10840,19480+(b*36|0)|0);b=b+1|0}while((b|0)!=8);ng(10840,19256);ng(10840,19292|0);ng(10840,19328|0);if(!(c[2247]|0)){a=c[2214]|0;if(!a){c[(k&p)>>2]=16440;mf(18,k)|0;a=c[2214]|0}a=lc[a&127](c[2213]|0)|0;if(!a)l=28}else l=28;if((l|0)==28){c[2247]=1;a=Tc(10)|0;if(!a)a=7;else{Wc(a);Mc(9584,1)|0;Mc(9672|0,0)|0;Mc(9760|0,0)|0;Mc(9848|0,0)|0;a=c[2237]|0;b=c[2238]|0;d=c[2239]|0;if(c[3153]|0){k=b&-8;c[3154]=k;c[3161]=d;c[3155]=d;if((d|0)<=90){c[3156]=((d|0)/10|0)+1;c[3157]=a;c[3160]=0;c[3162]=0;if(d)l=33}else{c[3156]=10;c[3157]=a;c[3160]=0;c[3162]=0;l=33}if((l|0)==33){f=b>>>3;g=d<<3;h=ca(f<<3,d+-1|0)|0;b=a;e=0;while(1){d=d+-1|0;c[(b&p)>>2]=e;if(!d)break;else{e=b;b=b+k|0}}b=a+(ca(g,f)|0)|0;c[3160]=a+h;a=b}c[3158]=a}c[2243]=1;a=0}}c[2244]=0;b=c[2248]|0}else{b=a;a=0}c[2248]=b+-1;if((b|0)<2)c[2249]=0}else a=0;while(0);i=m;return a|0}function Mc(a,b){a=a|0;b=b|0;var d=0;d=Lc()|0;do if(!d){og(a);d=c[2254]|0;if((b|0)!=0|(d|0)==0){c[(a&p)+12>>2]=d;c[2254]=a;d=0;break}else{c[(a&p)+12>>2]=c[(d&p)+12>>2];c[((c[2254]|0)&p)+12>>2]=a;d=0;break}}while(0);return d|0}function Nc(a){a=a|0;og(a);return 0}function Oc(a){a=a|0;return 0}function Pc(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;do if(!(Lc()|0)){e=9032|0;d=c[(e&p)>>2]|0;e=c[(e&p)+4>>2]|0;if((b|0)>=0)if((b|0)>0|(b|0)==0&a>>>0>0){c[2260]=9;c[2261]=0;f=9032|0;c[(f&p)>>2]=a;c[(f&p)+4>>2]=b;c[2265]=(0>(b|0)|0==(b|0)&(c[2166]|0)>>>0>=a>>>0)&1;break}else{c[2265]=0;c[2258]=0;c[2259]=0;c[2260]=0;c[2261]=0;break}}else{e=-1;d=-1}while(0);G=e;return d|0}function Qc(){var a=0;a=c[2166]|0;G=((a|0)<0)<<31>>31;return a|0}function Rc(a){a=a|0;var b=0;b=(a|0)<0;Pc(b?0:a,b?0:((a|0)<0)<<31>>31)|0;return}function Sc(a){a=a|0;var b=0;b=c[2176]|0;if(a)c[2176]=c[2166];G=((b|0)<0)<<31>>31;return b|0}function Tc(a){a=a|0;if((Lc()|0)!=0|(a|0)<1)a=0;else a=qg(a,((a|0)<0)<<31>>31)|0;return a|0}function Uc(a,b){a=a|0;b=b|0;if(!(Lc()|0))a=qg(a,b)|0;else a=0;return a|0}function Vc(a){a=a|0;a=lc[c[8792>>2]&127](a)|0;G=((a|0)<0)<<31>>31;return a|0}function Wc(a){a=a|0;var b=0;do if(a)if(!(c[2186]|0)){cc[c[8784>>2]&31](a);break}else{b=lc[c[8792>>2]&127](a)|0;c[2166]=(c[2166]|0)-b;c[2175]=(c[2175]|0)+-1;cc[c[8784>>2]&31](a);break}while(0);return}function Xc(a,b){a=a|0;b=b|0;var c=0;if(!(Lc()|0)){c=(b|0)<0;b=rg(a,c?0:b,c?0:((b|0)<0)<<31>>31)|0}else b=0;return b|0}function Yc(a,b,c){a=a|0;b=b|0;c=c|0;if(!(Lc()|0))b=rg(a,b,c)|0;else b=0;return b|0}function Zc(b,d){b=b|0;d=d|0;var e=0,f=0,g=0;g=i;i=i+112|0;if((i|0)>=(j|0))fa();f=g+28|0;e=g;if(!(Lc()|0)){c[(e&p)+4>>2]=f;c[(e&p)+8>>2]=f;c[(e&p)>>2]=0;c[(e&p)+12>>2]=0;c[(e&p)+16>>2]=70;c[(e&p)+20>>2]=1e9;a[(e&n)+25>>0]=0;a[(e&n)+24>>0]=2;sg(e,0,b,d);e=tg(e)|0}else e=0;i=g;return e|0}function _c(a,b){a=a|0;b=b|0;var d=0,e=0;e=i;i=i+16|0;if((i|0)>=(j|0))fa();d=e;if(!(Lc()|0)){c[(d&p)>>2]=b;d=Zc(a,d)|0}else d=0;i=e;return d|0}function $c(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0;h=i;i=i+32|0;if((i|0)>=(j|0))fa();g=h;if((b|0)>=1){c[(g&p)+4>>2]=d;c[(g&p)+8>>2]=d;c[(g&p)>>2]=0;c[(g&p)+12>>2]=0;c[(g&p)+16>>2]=b;c[(g&p)+20>>2]=0;a[(g&n)+25>>0]=0;a[(g&n)+24>>0]=0;sg(g,0,e,f);d=tg(g)|0}i=h;return d|0}function ad(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0;f=i;i=i+16|0;if((i|0)>=(j|0))fa();g=f;c[(g&p)>>2]=e;a=$c(a,b,d,g)|0;i=f;return a|0}function bd(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0;k=i;i=i+256|0;if((i|0)>=(j|0))fa();f=k+16|0;h=k+44|0;g=k;if(c[2250]|0){c[(g&p)>>2]=e;c[(f&p)+4>>2]=h;c[(f&p)+8>>2]=h;c[(f&p)>>2]=0;c[(f&p)+12>>2]=0;c[(f&p)+16>>2]=210;c[(f&p)+20>>2]=0;a[(f&n)+25>>0]=0;a[(f&n)+24>>0]=0;sg(f,0,d,g);e=c[2250]|0;g=c[2251]|0;f=tg(f)|0;mc[e&63](g,b,f)}i=k;return}function cd(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0;h=i;i=i+256|0;if((i|0)>=(j|0))fa();g=h;do if(!(Lc()|0)){if((b|0)<1|(e|0)==0){a[9064]=0;break}if(!(a[9064]|0)){a[9066]=0;a[9065]=0;f=(Lc()|0)==0;f=f?c[2254]|0:0;ac[c[(f&p)+56>>2]&63](f,256,g)|0;f=0;do{a[(f&n)+9067>>0]=f;f=f+1|0}while((f|0)!=256);f=0;do{k=9067+f|0;m=(d[(g+f&n)>>0]|0)+(d[(k&n)>>0]|0)+(d[9066]|0)|0;a[9066]=m;m=9067+(m&255)|0;l=a[(m&n)>>0]|0;a[(m&n)>>0]=a[(k&n)>>0]|0;a[(k&n)>>0]=l;f=f+1|0}while((f|0)!=256);a[9064]=1}while(1){k=(a[9065]|0)+1<<24>>24;a[9065]=k;k=9067+(k&255)|0;g=a[(k&n)>>0]|0;f=g&255;l=(d[9066]|0)+f|0;a[9066]=l;a[(k&n)>>0]=a[(l&255&n)+9067>>0]|0;a[((d[9066]|0)&n)+9067>>0]=g;a[(e&n)>>0]=a[((d[((d[9065]|0)&n)+9067>>0]|0)+f&255&n)+9067>>0]|0;b=b+-1|0;if(!b)break;else e=e+1|0}}while(0);i=h;return}function dd(b,c){b=b|0;c=c|0;var e=0;if(b)if(!c)c=1;else{e=a[(b&n)>>0]|0;a:do if(!(e<<24>>24))e=0;else while(1){if((a[(e&255&n)+9328>>0]|0)!=(a[((d[(c&n)>>0]|0)&n)+9328>>0]|0))break a;b=b+1|0;c=c+1|0;e=a[(b&n)>>0]|0;if(!(e<<24>>24)){e=0;break}}while(0);c=(d[(e&255&n)+9328>>0]|0)-(d[((d[(c&n)>>0]|0)&n)+9328>>0]|0)|0}else c=((c|0)!=0)<<31>>31;return c|0}function ed(a){a=a|0;c[2241]=a;return 0}function fd(d,e,f,g){d=d|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,q=0,r=0;r=i;i=i+16|0;if((i|0)>=(j|0))fa();q=r;a:do if((f|0)==(d|0)){ug(f,1,10016,q);h=0}else{h=qg(48,0)|0;if(!h){c[(d&p)+52>>2]=7;h=c[(d&p)+236>>2]|0;if(!h){h=0;break}e=h+8|0;if(!(b[(e&o)>>1]&9312)){b[(e&o)>>1]=1;h=0;break}else{vg(h);h=0;break}}l=h+0|0;k=l+48|0;do{a[(l&n)>>0]=0;l=l+1|0}while((l|0)<(k|0));m=h+24|0;c[(m&p)>>2]=wg(d,f,g)|0;k=wg(d,d,e)|0;l=h+4|0;c[(l&p)>>2]=k;c[(h&p)>>2]=d;c[(h&p)+20>>2]=f;c[(h&p)+16>>2]=1;c[(h&p)+40>>2]=0;e=c[(m&p)>>2]|0;do if(!((e|0)==0|(k|0)==0)?(xg(k,c[((c[(e&p)+4>>2]|0)&p)+32>>2]|0,-1,0)|0)!=7:0)if(!(a[((c[(l&p)>>2]|0)&n)+8>>0]|0)){e=(c[(m&p)>>2]|0)+16|0;c[(e&p)>>2]=(c[(e&p)>>2]|0)+1;break a}else{ug(d,1,47416,q);break}while(0);Wc(h);h=0}while(0);i=r;return h|0}function gd(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,o=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0;F=i;i=i+32|0;if((i|0)>=(j|0))fa();B=F;r=F+16|0;u=F+12|0;y=F+8|0;D=b+24|0;g=c[(D&p)>>2]|0;h=c[(g&p)+4>>2]|0;c[(h&p)+4>>2]=c[(g&p)>>2];E=b+28|0;f=c[(E&p)>>2]|0;if(f>>>0<7?(30>>>(f&127)&1)==0:0){x=c[(h&p)>>2]|0;C=b+4|0;f=c[(C&p)>>2]|0;A=c[(c[(f&p)+4>>2]&p)>>2]|0;if((c[(b&p)>>2]|0)!=0?(a[(h&n)+20>>0]|0)==2:0){z=0;g=5}else v=5;do if((v|0)==5){h=b+12|0;if(!(c[(h&p)>>2]|0)){g=yg(f,2)|0;if(g){z=0;break}c[(h&p)>>2]=1;z=c[(C&p)>>2]|0;g=c[(z&p)+4>>2]|0;c[(g&p)+4>>2]=c[(z&p)>>2];g=c[((c[(g&p)+12>>2]|0)&p)+56>>2]|0;c[(b&p)+8>>2]=d[(g&n)+41>>0]<<16|d[(g&n)+40>>0]<<24|d[(g&n)+42>>0]<<8|d[(g&n)+43>>0];g=c[(D&p)>>2]|0}if(!(a[(g&n)+8>>0]|0)){z=1;g=yg(g,0)|0}else{z=0;g=0}}while(0);l=c[((c[(D&p)>>2]|0)&p)+4>>2]|0;w=c[(l&p)+32>>2]|0;q=c[((c[(C&p)>>2]|0)&p)+4>>2]|0;t=c[(q&p)+32>>2]|0;q=(a[((c[(q&p)>>2]|0)&n)+5>>0]|0)==5;f=(w|0)==(t|0)|(g|0)==0&q^1?g:8;l=c[(l&p)+44>>2]|0;h=(e|0)<0;a:do if(e){g=b+16|0;m=c[(g&p)>>2]|0;o=0;do{if(!(m>>>0<=l>>>0&(f|0)==0))break a;if((m|0)!=((((c[2514]|0)>>>0)/((c[((c[((c[(D&p)>>2]|0)&p)+4>>2]|0)&p)+32>>2]|0)>>>0)|0)+1|0)){f=zg(x,m,r,2)|0;if(!f){k=c[(r&p)>>2]|0;f=Ag(b,m,c[(k&p)+4>>2]|0,0)|0;if(k)Bg(k)}}else f=0;m=(c[(g&p)>>2]|0)+1|0;c[(g&p)>>2]=m;o=o+1|0}while(h|(o|0)<(e|0))}while(0);if(!f){c[(b&p)+36>>2]=l;f=c[(b&p)+16>>2]|0;c[(b&p)+32>>2]=l+1-f;if(f>>>0<=l>>>0){f=b+40|0;if(!(c[(f&p)>>2]|0)){C=(c[(c[((c[(D&p)>>2]|0)&p)+4>>2]&p)>>2]|0)+88|0;c[(b&p)+44>>2]=c[(C&p)>>2];c[(C&p)>>2]=b;c[(f&p)>>2]=1;f=0}else f=0}else v=22}else if((f|0)==101)v=22;do if((v|0)==22){if(!l){g=c[(C&p)>>2]|0;f=c[(g&p)+4>>2]|0;c[(f&p)+4>>2]=c[(g&p)>>2];c[(f&p)+44>>2]=0;f=Cg(f)|0;if((f|0)==0|(f|0)==101)l=1;else break}f=Dg(c[(C&p)>>2]|0,1,(c[(b&p)+8>>2]|0)+1|0)|0;if(!f){g=c[(b&p)>>2]|0;if(g)Eg(g);if(q?(s=Fg(c[(C&p)>>2]|0,2)|0,(s|0)!=0):0){f=s;break}if((w|0)<(t|0)){g=(t|0)/(w|0)|0;g=(l+-1+g|0)/(g|0)|0;h=c[2514]|0;k=c[((c[((c[(C&p)>>2]|0)&p)+4>>2]|0)&p)+32>>2]|0;g=(((g|0)==(((h>>>0)/(k>>>0)|0)+1|0))<<31>>31)+g|0;b=((w|0)<0)<<31>>31;s=sw(l|0,((l|0)<0)<<31>>31|0,w|0,b|0)|0;q=G;e=c[(A&p)+60>>2]|0;o=c[(A&p)+24>>2]|0;b:do if(g>>>0<=o>>>0){f=0;while(1){if((g|0)!=(((h>>>0)/(k>>>0)|0)+1|0)){f=zg(A,g,u,0)|0;if(f)break b;h=c[(u&p)>>2]|0;f=Gg(h)|0;if(h)Bg(h)}g=g+1|0;h=(f|0)==0;if(g>>>0>o>>>0|h^1)break;k=c[((c[((c[(C&p)>>2]|0)&p)+4>>2]|0)&p)+32>>2]|0;h=c[2514]|0}if(h)v=38}else v=38;while(0);if((v|0)==38)f=Hg(A,0,1)|0;h=c[2514]|0;l=h+t|0;m=((l|0)<0)<<31>>31;k=(m|0)<(q|0)|(m|0)==(q|0)&l>>>0>>0;l=k?l:s;m=k?m:q;h=h+w|0;k=((h|0)<0)<<31>>31;g=(f|0)==0;if(g&((k|0)<(m|0)|(k|0)==(m|0)&h>>>0>>0))do{c[(y&p)>>2]=0;f=qw(h|0,k|0,w|0,b|0)|0;f=jw(f|0,G|0,1,0)|0;f=zg(x,f,y,0)|0;g=c[(y&p)>>2]|0;if(!f)f=tc[c[((c[(e&p)>>2]|0)&p)+12>>2]&31](e,c[(g&p)+4>>2]|0,w,h,k)|0;if(g)Bg(g);h=jw(h|0,k|0,w|0,b|0)|0;k=G;g=(f|0)==0}while(g&((k|0)<(m|0)|(k|0)==(m|0)&h>>>0>>0));if(!g)break;f=rc[c[((c[(e&p)>>2]|0)&p)+24>>2]&127](e,B)|0;y=c[(B&p)+4>>2]|0;if((f|0)==0&((y|0)>(q|0)|((y|0)==(q|0)?(c[(B&p)>>2]|0)>>>0>s>>>0:0)))f=ac[c[((c[(e&p)>>2]|0)&p)+16>>2]&63](e,s,q)|0;if(f)break;f=Ig(A,0)|0}else{c[(A&p)+24>>2]=ca((w|0)/(t|0)|0,l)|0;f=Hg(A,0,0)|0}if(!f){f=Jg(c[(C&p)>>2]|0,0)|0;f=(f|0)==0?101:f}}}while(0);if(z){Kg(c[(D&p)>>2]|0,0)|0;Jg(c[(D&p)>>2]|0,0)|0}f=(f|0)==3082?7:f;c[(E&p)>>2]=f}i=F;return f|0}function hd(a){a=a|0;var d=0,e=0,f=0,g=0,h=0;if(!a)d=0;else{h=c[(a&p)+20>>2]|0;e=c[(a&p)+24>>2]|0;d=c[(e&p)+4>>2]|0;c[(d&p)+4>>2]=c[(e&p)>>2];if(c[(a&p)>>2]|0){e=e+16|0;c[(e&p)>>2]=(c[(e&p)>>2]|0)+-1}if(c[(a&p)+40>>2]|0){d=(c[(d&p)>>2]|0)+88|0;while(1){e=c[(d&p)>>2]|0;if((e|0)==(a|0))break;else d=e+44|0}c[(d&p)>>2]=c[(a&p)+44>>2]}Lg(c[(a&p)+4>>2]|0,0,0);d=c[(a&p)+28>>2]|0;d=(d|0)==101?0:d;e=c[(a&p)>>2]|0;if(e){c[(e&p)+52>>2]=d;f=c[(e&p)+236>>2]|0;do if(f){g=f+8|0;if(!(b[(g&o)>>1]&9312)){b[(g&o)>>1]=1;break}else{vg(f);e=c[(a&p)>>2]|0;break}}while(0);Mg(e);if(c[(a&p)>>2]|0)Wc(a)}Mg(h)}return d|0}function id(a){a=a|0;return c[(a&p)+32>>2]|0}function jd(a){a=a|0;return c[(a&p)+36>>2]|0}function kd(a){a=a|0;if((a|0)!=0?(b[(a&o)+88>>1]&256)!=0:0)a=c[(a&p)+168>>2]|0;else a=0;return a|0}function ld(a){a=a|0;if(!a)a=1;else a=(b[(a&o)+88>>1]&8)!=0;return a&1|0}function md(a){a=a|0;var b=0,d=0,e=0;e=i;i=i+16|0;if((i|0)>=(j|0))fa();d=e;do if(a){b=c[(a&p)>>2]|0;if(!b){bd(21,47360,d);c[(d&p)>>2]=68910;c[(d&p)+4>>2]=10788;bd(21,13648,d);b=21;break}else{a=Og(b,Ng(a)|0)|0;Mg(b);b=a;break}}else b=0;while(0);i=e;return b|0}function nd(b){b=b|0;var d=0,e=0;if(!b)b=0;else{d=Pg(b)|0;c[(b&p)+76>>2]=-1;c[(b&p)+80>>2]=0;a[(b&n)+86>>0]=2;c[(b&p)+40>>2]=-1108210269;c[(b&p)+92>>2]=0;c[(b&p)+72>>2]=1;a[(b&n)+87>>0]=-1;c[(b&p)+104>>2]=0;e=b+144|0;c[(e&p)>>2]=0;c[(e&p)+4>>2]=0;b=Og(c[(b&p)>>2]|0,d)|0}return b|0}function od(a){a=a|0;var d=0,e=0,f=0,g=0,h=0,i=0;h=a+68|0;e=b[(h&o)>>1]|0;if(e<<16>>16>0){i=a+60|0;d=c[(i&p)>>2]|0;g=0;do{f=d+(g*40|0)|0;if(!((b[(d+(g*40|0)&o)+8>>1]&9312)==0?(c[(d+(g*40|0)&p)+24>>2]|0)==0:0)){Qg(f);d=c[(i&p)>>2]|0;e=b[(h&o)>>1]|0}b[(d+(g*40|0)&o)+8>>1]=1;g=g+1|0}while((g|0)<(e<<16>>16|0))}d=a+88|0;e=b[(d&o)>>1]|0;if((e&256)!=0?(c[(a&p)+188>>2]|0)!=0:0)b[(d&o)>>1]=e|8;return 0}function pd(a){a=a|0;var d=0;d=a+8|0;if(b[(d&o)>>1]&18){Rg(a)|0;b[(d&o)>>1]=e[(d&o)>>1]|0|16;if(!(c[(a&p)+12>>2]|0))d=0;else d=c[(a&p)+16>>2]|0}else d=Sg(a,1)|0;return d|0}function qd(a){a=a|0;return Sg(a,1)|0}function rd(a){a=a|0;return Tg(a,1)|0}function sd(a){a=a|0;return Tg(a,2)|0}function td(a){a=a|0;return +(+Ug(a))}function ud(a){a=a|0;a=Vg(a)|0;return a|0}function vd(a){a=a|0;a=Vg(a)|0;return a|0}function wd(a){a=a|0;return Sg(a,2)|0}function xd(a){a=a|0;return Sg(a,3)|0}function yd(a){a=a|0;return Sg(a,2)|0}function zd(a){a=a|0;return d[((e[(a&o)+8>>1]|0)&31&n)+10064>>0]|0|0}function Ad(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;Wg(a,b,c,0,d);return}function Bd(b,d,e,f,g){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;if(f>>>0>0|(f|0)==0&e>>>0>2147483647){e=g;if(!((e|0)==0|(e|0)==-1))cc[g&31](d);if(b){c[(b&p)+20>>2]=18;a[(b&n)+25>>0]=1;Xg(c[(b&p)>>2]|0,10096,-1,1,0)|0}}else Wg(b,d,e,0,g);return}function Cd(a,b){a=a|0;b=+b;Yg(c[(a&p)>>2]|0,b);return}function Dd(b,d,e){b=b|0;d=d|0;e=e|0;c[(b&p)+20>>2]=1;a[(b&n)+25>>0]=1;Xg(c[(b&p)>>2]|0,d,e,1,-1)|0;return}function Ed(b,d,e){b=b|0;d=d|0;e=e|0;c[(b&p)+20>>2]=1;a[(b&n)+25>>0]=1;Xg(c[(b&p)>>2]|0,d,e,2,-1)|0;return}function Fd(a,d){a=a|0;d=d|0;var e=0,f=0;a=c[(a&p)>>2]|0;e=((d|0)<0)<<31>>31;f=a+8|0;if(!(b[(f&o)>>1]&9312)){c[(a&p)>>2]=d;c[(a&p)+4>>2]=e;b[(f&o)>>1]=4}else Zg(a,d,e);return}function Gd(a,d,e){a=a|0;d=d|0;e=e|0;var f=0;a=c[(a&p)>>2]|0;f=a+8|0;if(!(b[(f&o)>>1]&9312)){c[(a&p)>>2]=d;c[(a&p)+4>>2]=e;b[(f&o)>>1]=4}else Zg(a,d,e);return}function Hd(a){a=a|0;var d=0;a=c[(a&p)>>2]|0;d=a+8|0;if(!(b[(d&o)>>1]&9312))b[(d&o)>>1]=1;else vg(a);return}function Id(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;Wg(a,b,c,1,d);return}function Jd(b,d,e,f,g,h){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;if(f>>>0>0|(f|0)==0&e>>>0>2147483647){e=g;if(!((e|0)==0|(e|0)==-1))cc[g&31](d);if(b){c[(b&p)+20>>2]=18;a[(b&n)+25>>0]=1;Xg(c[(b&p)>>2]|0,10096,-1,1,0)|0}}else Wg(b,d,e,h<<24>>24==4?2:h,g);return}function Kd(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;Wg(a,b,c,2,d);return}function Ld(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;Wg(a,b,c,3,d);return}function Md(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;Wg(a,b,c,2,d);return}function Nd(a,b){a=a|0;b=b|0;_g(c[(a&p)>>2]|0,b)|0;return}function Od(a,b){a=a|0;b=b|0;$g(c[(a&p)>>2]|0,b);return}function Pd(d,e){d=d|0;e=e|0;var f=0;c[(d&p)+20>>2]=e;a[(d&n)+25>>0]=1;f=c[(d&p)>>2]|0;if(b[(f&o)+8>>1]&1){if((e|0)!=516){d=e&255;if(d>>>0>26|(d|0)==2)d=16328;else d=c[(d<<2&p)+15488>>2]|0}else d=16344;Xg(f,d,-1,1,0)|0}return}function Qd(b){b=b|0;c[(b&p)+20>>2]=18;a[(b&n)+25>>0]=1;Xg(c[(b&p)>>2]|0,10096,-1,1,0)|0;return}function Rd(d){d=d|0;var e=0,f=0;e=c[(d&p)>>2]|0;f=e+8|0;if(!(b[(f&o)>>1]&9312))b[(f&o)>>1]=1;else{vg(e);e=c[(d&p)>>2]|0}c[(d&p)+20>>2]=7;a[(d&n)+25>>0]=1;a[((c[(e&p)+32>>2]|0)&n)+65>>0]=1;return}function Sd(f){f=f|0;var g=0,l=0,m=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,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;_=i;i=i+224|0;if((i|0)>=(j|0))fa();V=_+8|0;U=_;if(!(ah(f)|0)){Z=c[(f&p)>>2]|0;N=f+88|0;b[(N&o)>>1]=b[(N&o)>>1]&-513;R=f+40|0;S=f+76|0;T=f+128|0;Y=f+80|0;D=f+168|0;E=f+8|0;F=f+20|0;H=f+32|0;I=f+4|0;J=f+84|0;X=f+44|0;K=(f|0)==0;L=f+52|0;M=f+48|0;C=0;while(1){if((c[(R&p)>>2]|0)!=-1108210269)nd(f)|0;B=c[(f&p)>>2]|0;if(a[(B&n)+65>>0]|0){W=7;break}l=c[(S&p)>>2]|0;do if((l|0)<1){if(b[(N&o)>>1]&8){c[(Y&p)>>2]=17;l=1;break}if((l|0)<0){l=B+148|0;if(!(c[(l&p)>>2]|0))c[(B&p)+240>>2]=0;if((c[(B&p)+184>>2]|0)!=0?(a[(B&n)+145>>0]|0)==0:0)bh(c[(B&p)>>2]|0,T)|0;c[(l&p)>>2]=(c[(l&p)>>2]|0)+1;l=b[(N&o)>>1]|0;if(!(l&64)){l=B+156|0;c[(l&p)>>2]=(c[(l&p)>>2]|0)+1;l=b[(N&o)>>1]|0}if(l&128){A=B+152|0;c[(A&p)>>2]=(c[(A&p)>>2]|0)+1}c[(S&p)>>2]=0;W=22}else W=22}else W=22;while(0);if((W|0)==22){W=0;do if(!(b[(N&o)>>1]&3)){A=B+160|0;c[(A&p)>>2]=(c[(A&p)>>2]|0)+1;l=gh(f)|0;c[(A&p)>>2]=(c[(A&p)>>2]|0)+-1;if((l|0)==100)l=100;else W=101}else{t=c[(f&p)>>2]|0;z=c[(E&p)>>2]|0;y=z+40|0;ch(y,8);c[(F&p)>>2]=0;if((c[(Y&p)>>2]|0)==7){a[(t&n)+65>>0]=1;l=1;W=101;break}r=c[(H&p)>>2]|0;u=b[(N&o)>>1]&3;if(u<<16>>16==1){s=c[(E&p)>>2]|0;v=s+360|0;if(b[(s&o)+368>>1]&16){w=(c[(s&p)+372>>2]|0)>>>2;m=c[(s&p)+376>>2]|0;if(!w){x=m;s=r;g=0}else{l=0;s=r;do{s=(c[((c[(m+(l<<2)&p)>>2]|0)&p)+4>>2]|0)+s|0;l=l+1|0}while((l|0)<(w|0));x=m;g=w}}else{x=0;s=r;g=0}}else{x=0;s=r;g=0;v=0}r=u<<16>>16==2;m=c[(S&p)>>2]|0;while(1){l=m+1|0;if((m|0)>=(s|0)){W=33;break}if(!r)break;if((a[((c[(I&p)>>2]|0)+(m*20|0)&n)>>0]|0)==-99)break;else m=l}if((W|0)==33){c[(S&p)>>2]=l;c[(Y&p)>>2]=0;l=101;W=101;break}c[(S&p)>>2]=l;if(c[(t&p)+240>>2]|0){c[(Y&p)>>2]=9;c[(V&p)>>2]=15832;dh(X,t,10344,V);l=1;W=101;break}s=c[(H&p)>>2]|0;if((m|0)<(s|0)){l=m;A=(c[(I&p)>>2]|0)+(m*20|0)|0}else{m=m-s|0;s=c[(x&p)>>2]|0;r=c[(s&p)+4>>2]|0;if((m|0)<(r|0))r=m;else{s=m;l=0;while(1){m=s-r|0;l=l+1|0;s=c[(x+(l<<2)&p)>>2]|0;r=c[(s&p)+4>>2]|0;if((m|0)<(r|0)){r=m;break}else s=m}}l=r;A=(c[(s&p)>>2]|0)+(r*20|0)|0}if((b[(N&o)>>1]&3)==1){b[(z&o)+48>>1]=4;r=y;c[(r&p)>>2]=l;c[(r&p)+4>>2]=((l|0)<0)<<31>>31;b[(z&o)+88>>1]=2562;r=c[(d[(A&n)>>0]<<2&p)+44856>>2]|0;c[(z&p)+96>>2]=r;s=r;while(1)if(!(a[(s&n)>>0]|0))break;else s=s+1|0;w=z+80|0;c[(z&p)+92>>2]=s-r&1073741823;a[(z&n)+90>>0]=1;if((a[(A&n)+1>>0]|0)==-18){l=(g<<2)+4|0;a:do if(!g)s=0;else{r=c[(A&p)+16>>2]|0;m=0;while(1){s=m+1|0;if((c[(x+(m<<2)&p)>>2]|0)==(r|0)){s=m;break a}if((s|0)<(g|0))m=s;else break}}while(0);if((s|0)==(g|0)?(eh(v,l,(g|0)!=0&1)|0)==0:0){c[((c[(v&p)+16>>2]|0)+(g<<2)&p)>>2]=c[(A&p)+16>>2];z=v+8|0;b[(z&o)>>1]=e[(z&o)>>1]|16;c[(v&p)+12>>2]=l;z=w}else z=w}else z=w}b[(z&o)+48>>1]=4;y=c[(A&p)+4>>2]|0;x=z+40|0;c[(x&p)>>2]=y;c[(x&p)+4>>2]=((y|0)<0)<<31>>31;b[(z&o)+88>>1]=4;x=c[(A&p)+8>>2]|0;y=z+80|0;c[(y&p)>>2]=x;c[(y&p)+4>>2]=((x|0)<0)<<31>>31;b[(z&o)+128>>1]=4;y=c[(A&p)+12>>2]|0;x=z+120|0;c[(x&p)>>2]=y;c[(x&p)+4>>2]=((y|0)<0)<<31>>31;x=z+160|0;if(!(fh(x,32)|0)){b[(z&o)+168>>1]=514;y=z+176|0;g=c[(y&p)>>2]|0;b:do switch(a[(A&n)+1>>0]|0){case -6:{t=c[(A&p)+16>>2]|0;l=t+6|0;c[(V&p)>>2]=e[(l&o)>>1];ad(32,g,44768,V)|0;if(!g)s=0;else{s=g;while(1)if(!(a[(s&n)>>0]|0))break;else s=s+1|0;s=s-g&1073741823}c:do if(b[(l&o)>>1]|0){u=t+16|0;v=0;while(1){r=c[(t+(v<<2)&p)+20>>2]|0;if(r){r=c[(r&p)>>2]|0;if(!r){m=0;r=0}else W=61}else{r=44776;W=61}do if((W|0)==61){W=0;w=r;while(1)if(!(a[(w&n)>>0]|0))break;else w=w+1|0;m=w-r&1073741823;if((m|0)!=6)break;w=(Zv(r,11152,6)|0)==0;m=w?1:6;r=w?44784:r}while(0);if((m+s|0)>26)break;w=s+1|0;a[(g+s&n)>>0]=44;if(a[((c[(u&p)>>2]|0)+v&n)>>0]|0){a[(g+w&n)>>0]=45;w=s+2|0}kw(g+w|0,r|0,m+1|0)|0;s=w+m|0;v=v+1|0;if((v|0)>=(e[(l&o)>>1]|0))break c}l=g+s|0;a[(l&n)>>0]=44;a[(l&n)+1>>0]=46;a[(l&n)+2>>0]=46;a[(l&n)+3>>0]=46}while(0);a[(g+s&n)>>0]=41;a[(g+s&n)+1>>0]=0;r=g;break}case -15:{ad(32,g,44832,V)|0;r=g;break}case -18:{ad(32,g,44848,V)|0;r=g;break}case -4:{c[(V&p)>>2]=c[(c[(A&p)+16>>2]&p)>>2];ad(32,g,44792,V)|0;r=g;break}case -5:{l=c[(A&p)+16>>2]|0;r=b[(l&o)>>1]|0;c[(V&p)>>2]=c[(l&p)+24>>2];c[(V&p)+4>>2]=r;ad(32,g,44800,V)|0;r=g;break}case -13:{m=c[(A&p)+16>>2]|0;l=c[(m&p)+4>>2]|0;r=V;c[(r&p)>>2]=c[(m&p)>>2];c[(r&p)+4>>2]=l;ad(32,g,19920,V)|0;r=g;break}case -14:{c[(V&p)>>2]=c[(A&p)+16>>2];ad(32,g,44808,V)|0;r=g;break}case -12:{h[(k&q)>>3]=+h[(c[(A&p)+16>>2]&q)>>3];c[(V&p)>>2]=c[(k&p)>>2];c[(V&p)+4>>2]=c[(k&p)+4>>2];ad(32,g,19912,V)|0;r=g;break}case -8:{s=c[(A&p)+16>>2]|0;r=e[(s&o)+8>>1]|0;if(r&2){r=c[(s&p)+16>>2]|0;break b}if(r&4){m=s;l=c[(m&p)+4>>2]|0;r=V;c[(r&p)>>2]=c[(m&p)>>2];c[(r&p)+4>>2]=l;ad(32,g,19920,V)|0;r=g;break b}if(r&8){h[(k&q)>>3]=+h[(s&q)>>3];c[(V&p)>>2]=c[(k&p)>>2];c[(V&p)+4>>2]=c[(k&p)+4>>2];ad(32,g,19912,V)|0;r=g;break b}if(!(r&1))r=44816;else{ad(32,g,20304,V)|0;r=g}break}case -19:{a[(g&n)>>0]=0;r=g;break}case -10:{c[(V&p)>>2]=c[((c[(A&p)+16>>2]|0)&p)+8>>2];ad(32,g,44824,V)|0;r=g;break}default:{s=c[(A&p)+16>>2]|0;if(!s){a[(g&n)>>0]=0;r=g}else r=s}}while(0);if((r|0)==(c[(y&p)>>2]|0)){if(!r)l=0;else{s=r;while(1)if(!(a[(s&n)>>0]|0))break;else s=s+1|0;l=s-r&1073741823}c[(z&p)+172>>2]=l;a[(z&n)+170>>0]=1}else Xg(x,r,-1,1,0)|0;l=b[(N&o)>>1]|0;if((l&3)==1){if(fh(z+200|0,4)|0){l=1;W=101;break}b[(z&o)+208>>1]=514;c[(z&p)+212>>2]=2;l=c[(z&p)+216>>2]|0;c[(V&p)>>2]=d[(A&n)+3>>0];ad(3,l,44760,V)|0;a[(z&n)+210>>0]=1;b[(z&o)+248>>1]=1;l=b[(N&o)>>1]|0}b[(J&o)>>1]=12-((l&3)<<2);c[(F&p)>>2]=(c[(E&p)>>2]|0)+40;c[(Y&p)>>2]=0;l=100}else{l=1;W=101}}while(0);if((W|0)==101){W=0;g=B+184|0;if(((c[(g&p)>>2]|0)!=0?(a[(B&n)+145>>0]|0)==0:0)?(c[(D&p)>>2]|0)!=0:0){bh(c[(B&p)>>2]|0,U)|0;g=c[(g&p)>>2]|0;y=c[(B&p)+188>>2]|0;z=c[(D&p)>>2]|0;m=U;A=T;A=dw(c[(m&p)>>2]|0,c[(m&p)+4>>2]|0,c[(A&p)>>2]|0,c[(A&p)+4>>2]|0)|0;A=sw(A|0,G|0,1e6,0)|0;qc[g&15](y,z,A,G)}if((l|0)==101){t=B+20|0;s=c[(t&p)>>2]|0;if((s|0)>0){u=B+16|0;v=B+216|0;w=B+220|0;g=0;l=0;do{r=c[(u&p)>>2]|0;m=c[(r+(g<<4)&p)+4>>2]|0;if(((m|0)!=0?(O=c[(m&p)+4>>2]|0,c[(O&p)+4>>2]=c[(m&p)>>2],O=c[((c[(O&p)>>2]|0)&p)+208>>2]|0,(O|0)!=0):0)?(Q=O+12|0,P=c[(Q&p)>>2]|0,c[(Q&p)>>2]=0,Q=c[(v&p)>>2]|0,(Q|0)!=0&(P|0)>0&(l|0)==0):0){l=pc[Q&31](c[(w&p)>>2]|0,B,c[(r+(g<<4)&p)>>2]|0,P)|0;s=c[(t&p)>>2]|0}g=g+1|0}while((g|0)<(s|0))}else l=0;c[(Y&p)>>2]=l;l=(l|0)==0?101:1}}c[(B&p)+52>>2]=l;if((Og(c[(f&p)>>2]|0,c[(Y&p)>>2]|0)|0)==7)c[(Y&p)>>2]=7}if((b[(N&o)>>1]&256)!=0&(l|0)!=100&(l|0)!=101)l=hh(f)|0;g=c[(B&p)+56>>2]&l;if((g|0)!=17)break;s=C+1|0;if((C|0)>=50){g=17;break}m=c[(S&p)>>2]|0;if(!K?(b[(N&o)>>1]&256)!=0:0)l=c[(D&p)>>2]|0;else l=0;r=c[(f&p)>>2]|0;g=ih(r,l,-1,0,f,U,0)|0;if((g|0)==7){g=r;W=124;break}else if(g){W=127;break}C=c[(U&p)>>2]|0;kw(V|0,C|0,208)|0;kw(C|0,f|0,208)|0;kw(f|0,V|0,208)|0;A=C+52|0;B=c[(A&p)>>2]|0;c[(A&p)>>2]=c[(L&p)>>2];c[(L&p)>>2]=B;B=C+48|0;A=c[(B&p)>>2]|0;c[(B&p)>>2]=c[(M&p)>>2];c[(M&p)>>2]=A;A=C+168|0;B=c[(A&p)>>2]|0;c[(A&p)>>2]=c[(D&p)>>2];c[(D&p)>>2]=B;b[(N&o)>>1]=b[(N&o)>>1]&-257|b[(C&o)+88>>1]&256;jh(C,f);c[(C&p)+80>>2]=0;Ng(C)|0;nd(f)|0;if((m|0)<=-1){C=s;continue}b[(N&o)>>1]=b[(N&o)>>1]|512;C=s}if((W|0)==7){c[(Y&p)>>2]=7;g=7}else if((W|0)==124){a[(g&n)+65>>0]=1;g=7;W=127}do if((W|0)==127){l=Sg(c[(Z&p)+236>>2]|0,1)|0;mg(Z,c[(X&p)>>2]|0);if(!(a[(Z&n)+65>>0]|0)){c[(X&p)>>2]=kh(Z,l)|0;c[(Y&p)>>2]=g;break}else{c[(X&p)>>2]=0;c[(Y&p)>>2]=7;g=7;break}}while(0);g=Og(Z,g)|0}else{c[(V&p)>>2]=69408;c[(V&p)+4>>2]=10788;bd(21,13648,V);g=21}i=_;return g|0}function Td(a){a=a|0;return c[((c[(a&p)+4>>2]|0)&p)+4>>2]|0}function Ud(a){a=a|0;return c[((c[(a&p)>>2]|0)&p)+32>>2]|0}function Vd(a,d){a=a|0;d=d|0;var e=0;e=c[(a&p)+8>>2]|0;if(!(b[(e&o)+8>>1]&8192))e=lh(a,d)|0;else e=c[(e&p)+16>>2]|0;return e|0}function Wd(a,b){a=a|0;b=b|0;var d=0;d=c[((c[(a&p)+12>>2]|0)&p)+204>>2]|0;a:do if(!d)d=0;else{a=c[(a&p)+16>>2]|0;while(1){if((c[(d&p)>>2]|0)==(a|0)?(c[(d&p)+4>>2]|0)==(b|0):0)break;d=c[(d&p)+16>>2]|0;if(!d){d=0;break a}}d=c[(d&p)+8>>2]|0}while(0);return d|0}function Xd(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0;h=c[(b&p)+12>>2]|0;do if((d|0)<0)k=14;else{j=h+204|0;g=c[(j&p)>>2]|0;a:do if(g){i=c[(b&p)+16>>2]|0;while(1){if((c[(g&p)>>2]|0)==(i|0)?(c[(g&p)+4>>2]|0)==(d|0):0)break;g=c[(g&p)+16>>2]|0;if(!g){k=8;break a}}if(g){h=c[(g&p)+12>>2]|0;if(h)cc[h&31](c[(g&p)+8>>2]|0)}else k=8}else k=8;while(0);if((k|0)==8){g=mh(c[(h&p)>>2]|0,20,0)|0;if(!g){k=14;break}h=g+0|0;i=h+16|0;do{a[(h&n)>>0]=0;h=h+1|0}while((h|0)<(i|0));c[(g&p)>>2]=c[(b&p)+16>>2];c[(g&p)+4>>2]=d;c[(g&p)+16>>2]=c[(j&p)>>2];c[(j&p)>>2]=g;h=b+25|0;if(!(a[(h&n)>>0]|0)){c[(b&p)+20>>2]=0;a[(h&n)>>0]=1}}c[(g&p)+8>>2]=e;c[(g&p)+12>>2]=f}while(0);if((k|0)==14?(f|0)!=0:0)cc[f&31](e);return}function Yd(a){a=a|0;return c[((c[(a&p)+8>>2]|0)&p)+12>>2]|0}function Zd(a){a=a|0;if(!a)a=0;else a=e[(a&o)+84>>1]|0;return a|0}function _d(a){a=a|0;if((a|0)!=0?(c[(a&p)+20>>2]|0)!=0:0)a=e[(a&o)+84>>1]|0;else a=0;return a|0}function $d(a,b){a=a|0;b=b|0;var d=0;b=pd(nh(a,b)|0)|0;if(a){d=a+80|0;c[(d&p)>>2]=Og(c[(a&p)>>2]|0,c[(d&p)>>2]|0)|0}return b|0}function ae(a,b){a=a|0;b=b|0;var d=0;b=Tg(nh(a,b)|0,1)|0;if(a){d=a+80|0;c[(d&p)>>2]=Og(c[(a&p)>>2]|0,c[(d&p)>>2]|0)|0}return b|0}function be(a,b){a=a|0;b=b|0;var d=0;b=Tg(nh(a,b)|0,2)|0;if(a){d=a+80|0;c[(d&p)>>2]=Og(c[(a&p)>>2]|0,c[(d&p)>>2]|0)|0}return b|0}function ce(a,b){a=a|0;b=b|0;var d=0.0;d=+Ug(nh(a,b)|0);if(a){b=a+80|0;c[(b&p)>>2]=Og(c[(a&p)>>2]|0,c[(b&p)>>2]|0)|0}return +d}function de(a,b){a=a|0;b=b|0;var d=0;b=Vg(nh(a,b)|0)|0;if(a){d=a+80|0;c[(d&p)>>2]=Og(c[(a&p)>>2]|0,c[(d&p)>>2]|0)|0}return b|0}function ee(a,b){a=a|0;b=b|0;var d=0,e=0;b=Vg(nh(a,b)|0)|0;d=G;if(a){e=a+80|0;c[(e&p)>>2]=Og(c[(a&p)>>2]|0,c[(e&p)>>2]|0)|0}G=d;return b|0}function fe(a,b){a=a|0;b=b|0;var d=0;b=Sg(nh(a,b)|0,1)|0;if(a){d=a+80|0;c[(d&p)>>2]=Og(c[(a&p)>>2]|0,c[(d&p)>>2]|0)|0}return b|0}function ge(a,d){a=a|0;d=d|0;var f=0,g=0;d=nh(a,d)|0;f=d+8|0;g=e[(f&o)>>1]|0;if(g&2048)b[(f&o)>>1]=g&59391|4096;if(a){f=a+80|0;c[(f&p)>>2]=Og(c[(a&p)>>2]|0,c[(f&p)>>2]|0)|0}return d|0}function he(a,b){a=a|0;b=b|0;var d=0;b=Sg(nh(a,b)|0,2)|0;if(a){d=a+80|0;c[(d&p)>>2]=Og(c[(a&p)>>2]|0,c[(d&p)>>2]|0)|0}return b|0}function ie(a,b){a=a|0;b=b|0;var f=0;b=d[((e[((nh(a,b)|0)&o)+8>>1]|0)&31&n)+10064>>0]|0;if(a){f=a+80|0;c[(f&p)>>2]=Og(c[(a&p)>>2]|0,c[(f&p)>>2]|0)|0}return b|0}function je(b,d){b=b|0;d=d|0;var f=0,g=0;g=c[(b&p)>>2]|0;if(!b)f=0;else f=e[(b&o)+84>>1]|0;if((f|0)>(d|0)&(d|0)>-1){d=Sg((c[(b&p)+16>>2]|0)+(d*40|0)|0,1)|0;f=g+65|0;if(a[(f&n)>>0]|0){a[(f&n)>>0]=0;d=0}}else d=0;return d|0}function ke(b,d){b=b|0;d=d|0;var f=0,g=0;g=c[(b&p)>>2]|0;if(!b)f=0;else f=e[(b&o)+84>>1]|0;if((f|0)>(d|0)&(d|0)>-1){d=Sg((c[(b&p)+16>>2]|0)+(d*40|0)|0,2)|0;f=g+65|0;if(a[(f&n)>>0]|0){a[(f&n)>>0]=0;d=0}}else d=0;return d|0}function le(b,d){b=b|0;d=d|0;var f=0,g=0;g=c[(b&p)>>2]|0;if(!b)f=0;else f=e[(b&o)+84>>1]|0;if((f|0)>(d|0)&(d|0)>-1){d=Sg((c[(b&p)+16>>2]|0)+((f+d|0)*40|0)|0,1)|0;f=g+65|0;if(a[(f&n)>>0]|0){a[(f&n)>>0]=0;d=0}}else d=0;return d|0}function me(b,d){b=b|0;d=d|0;var f=0,g=0;g=c[(b&p)>>2]|0;if(!b)f=0;else f=e[(b&o)+84>>1]|0;if((f|0)>(d|0)&(d|0)>-1){d=Sg((c[(b&p)+16>>2]|0)+((f+d|0)*40|0)|0,2)|0;f=g+65|0;if(a[(f&n)>>0]|0){a[(f&n)>>0]=0;d=0}}else d=0;return d|0}function ne(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;return oh(a,b,c,d,e,0)|0}function oe(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;if(e>>>0>0|(e|0)==0&d>>>0>2147483647){d=f;if((d|0)==0|(d|0)==-1)d=18;else{cc[f&31](c);d=18}}else d=oh(a,b,c,d,f,0)|0;return d|0}function pe(a,b,d){a=a|0;b=b|0;d=+d;var e=0;e=ph(a,b)|0;if(!e)Yg((c[(a&p)+60>>2]|0)+((b+-1|0)*40|0)|0,d);return e|0}function qe(a,b,c){a=a|0;b=b|0;c=c|0;return re(a,b,c,((c|0)<0)<<31>>31)|0}function re(a,d,e,f){a=a|0;d=d|0;e=e|0;f=f|0;var g=0,h=0;g=ph(a,d)|0;do if(!g){d=d+-1|0;h=c[(a&p)+60>>2]|0;a=h+(d*40|0)|0;d=h+(d*40|0)+8|0;if(!(b[(d&o)>>1]&9312)){c[(a&p)>>2]=e;c[(a&p)+4>>2]=f;b[(d&o)>>1]=4;break}else{Zg(a,e,f);break}}while(0);return g|0}function se(a,b){a=a|0;b=b|0;return ph(a,b)|0}function te(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;return oh(a,b,c,d,e,1)|0}function ue(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;if(e>>>0>0|(e|0)==0&d>>>0>2147483647){d=f;if((d|0)==0|(d|0)==-1)d=18;else{cc[f&31](c);d=18}}else d=oh(a,b,c,d,f,g<<24>>24==4?2:g)|0;return d|0}function ve(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;return oh(a,b,c,d,e,2)|0}function we(e,f,g){e=e|0;f=f|0;g=g|0;var i=0,j=0;i=b[(g&o)+8>>1]|0;j=d[(i&31&n)+10064>>0]|0;do if((j|0)==3)i=oh(e,f,c[(g&p)+16>>2]|0,c[(g&p)+12>>2]|0,-1,a[(g&n)+10>>0]|0)|0;else if((j|0)==1){i=g;i=re(e,f,c[(i&p)>>2]|0,c[(i&p)+4>>2]|0)|0}else if((j|0)==2)i=pe(e,f,+h[(g&q)>>3])|0;else if((j|0)==4)if(!(i&16384)){i=oh(e,f,c[(g&p)+16>>2]|0,c[(g&p)+12>>2]|0,-1,0)|0;break}else{i=xe(e,f,c[(g&p)>>2]|0)|0;break}else i=ph(e,f)|0;while(0);return i|0}function xe(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;e=ph(a,b)|0;if(!e)$g((c[(a&p)+60>>2]|0)+((b+-1|0)*40|0)|0,d);return e|0}function ye(a){a=a|0;if(!a)a=0;else a=b[(a&o)+68>>1]|0;return a|0}function ze(a,d){a=a|0;d=d|0;if(!((a|0)==0|(d|0)<1)?(b[(a&o)+70>>1]|0)>=(d|0):0)d=c[((c[(a&p)+64>>2]|0)+(d+-1<<2)&p)>>2]|0;else d=0;return d|0}function Ae(b,c){b=b|0;c=c|0;var d=0;if(!c)d=0;else{d=c;while(1)if(!(a[(d&n)>>0]|0))break;else d=d+1|0;d=d-c&1073741823}return qh(b,c,d)|0}function Be(a,d){a=a|0;d=d|0;var e=0,f=0;if((b[(a&o)+68>>1]|0)==(b[(d&o)+68>>1]|0)){f=d+88|0;e=b[(f&o)>>1]|0;if((e&256)!=0?(c[(d&p)+188>>2]|0)!=0:0)b[(f&o)>>1]=e|8;e=a+88|0;f=b[(e&o)>>1]|0;if((f&256)!=0?(c[(a&p)+188>>2]|0)!=0:0)b[(e&o)>>1]=f|8;jh(a,d);e=0}else e=1;return e|0}function Ce(a){a=a|0;if(!a)a=0;else a=c[(a&p)>>2]|0;return a|0}function De(a){a=a|0;if(!a)a=1;else a=(e[(a&o)+88>>1]|0)>>>6&1;return a|0}function Ee(a){a=a|0;if((a|0)!=0?(c[(a&p)+76>>2]|0)>-1:0)a=(c[(a&p)+40>>2]|0)==-1108210269;else a=0;return a&1|0}function Fe(a,b){a=a|0;b=b|0;if(!b)a=a+4|0;else a=b+52|0;return c[(a&p)>>2]|0}function Ge(a,b,d){a=a|0;b=b|0;d=d|0;a=a+(b<<2)+108|0;b=c[(a&p)>>2]|0;if(d)c[(a&p)>>2]=0;return b|0}function He(a){a=a|0;var b=0,c=0,f=0;c=a+8|0;f=e[(c&o)>>1]|0;b=d[(f&31&n)+10064>>0]|0;if((f&15|0)==2){rh(a,0);b=d[((e[(c&o)>>1]|0)&31&n)+10064>>0]|0}return b|0}function Ie(d,e,f,g,h,k,l,m){d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;m=m|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,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;U=i;i=i+16|0;if((i|0)>=(j|0))fa();S=U;T=U+4|0;c[(T&p)>>2]=0;c[(m&p)>>2]=0;N=(l|0)!=0;O=N&1;Q=mh(d,28,0)|0;do if(Q){l=Q+0|0;s=l+28|0;do{a[(l&n)>>0]=0;l=l+1|0}while((l|0)<(s|0));s=mh(d,536,0)|0;if(s){K=d+20|0;L=d+16|0;B=d+24|0;l=Q+20|0;C=Q+12|0;D=Q+24|0;E=d+65|0;F=O^3;G=O|2;H=s+440|0;I=s+72|0;J=s+68|0;r=0;M=1;q=0;while(1){fw(s|0,0,536)|0;c[(s&p)>>2]=d;mg(d,r);c[(T&p)>>2]=0;r=c[(K&p)>>2]|0;if((r|0)>0){t=c[(L&p)>>2]|0;v=0;do{u=c[(t+(v<<4)&p)+4>>2]|0;if(u)c[((c[(u&p)+4>>2]|0)&p)+4>>2]=c[(u&p)>>2];v=v+1|0}while((v|0)!=(r|0))}A=sh(s,0,f,e)|0;if(!A)break;r=a[(A&n)+44>>0]|0;if(r&16){R=11;break}if(r&32){R=13;break}if(c[(A&p)+12>>2]|0){R=17;break}z=A+38|0;w=b[(z&o)>>1]|0;a:do if(w<<16>>16>0){v=c[(A&p)+4>>2]|0;u=w<<16>>16;r=0;while(1){t=r+1|0;if(!(dd(c[(v+(r*24|0)&p)>>2]|0,g)|0)){t=r;break a}if((t|0)<(u|0))r=t;else break}}else t=0;while(0);if((t|0)==(w<<16>>16|0)){R=23;break}if(N){if((c[(B&p)>>2]&524288|0)!=0?(P=c[(A&p)+16>>2]|0,(P|0)!=0):0){x=P;r=0;do{w=c[(x&p)+20>>2]|0;if((w|0)>0){v=0;do{r=(c[(x+(v<<3)&p)+36>>2]|0)==(t|0)?10280:r;v=v+1|0}while((v|0)<(w|0))}x=c[(x&p)+4>>2]|0}while((x|0)!=0)}else r=0;v=c[(A&p)+8>>2]|0;if(v)do{u=b[(v&o)+46>>1]|0;if(u<<16>>16){y=c[(v&p)+4>>2]|0;w=u&65535;x=0;do{r=(b[(y+(x<<1)&o)>>1]|0)==(t|0)?10296:r;x=x+1|0}while((x|0)<(w|0))}v=c[(v&p)+20>>2]|0}while((v|0)!=0);if(r){R=36;break}}y=vh(s)|0;c[(l&p)>>2]=y;if(y){x=c[(A&p)+68>>2]|0;b:do if(x){w=c[(K&p)>>2]|0;if((w|0)>0){v=c[(L&p)>>2]|0;r=0;while(1){u=r+1|0;if((c[(v+(r<<4)&p)+12>>2]|0)==(x|0)){u=r;break b}if((u|0)<(w|0))r=u;else break}}else u=0}else u=-1e6;while(0);r=c[(x&p)+4>>2]|0;xh(y,wh(y,4,u,O,c[(x&p)>>2]|0)|0,r,-14);r=y+4|0;v=c[(r&p)>>2]|0;w=y+32|0;if(v)a[(v+(((c[(w&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=1;yh(y,10,10120)|0;v=y+96|0;c[(v&p)>>2]=c[(v&p)>>2]|1<>2]|0)>>>0>1){x=c[(r&p)>>2]|0;c[(x&p)+24>>2]=u;v=A+32|0;c[(x&p)+28>>2]=c[(v&p)>>2];c[((c[(r&p)>>2]|0)&p)+32>>2]=O}else v=A+32|0;xh(y,1,c[(A&p)>>2]|0,0);zh(y,F);if((c[(w&p)>>2]|0)>>>0>G>>>0){c[((c[(r&p)>>2]|0)+(G*20|0)&p)+8>>2]=c[(v&p)>>2];c[((c[(r&p)>>2]|0)+(G*20|0)&p)+12>>2]=u}xh(y,G,(b[(z&o)>>1]|0)+1|0,-14);if((c[(w&p)>>2]|0)>>>0>6)c[((c[(r&p)>>2]|0)&p)+128>>2]=b[(z&o)>>1];if(!(a[(E&n)>>0]|0)){c[(H&p)>>2]=1;c[(I&p)>>2]=1;c[(J&p)>>2]=1;Ah(y,s)}}c[(Q&p)>>2]=O;c[(C&p)>>2]=t;c[(D&p)>>2]=d;if(a[(E&n)>>0]|0){R=57;break}re(c[(l&p)>>2]|0,1,h,k)|0;q=Bh(Q,h,k,T)|0;if(!((M|0)<50&(q|0)==17)){R=57;break}r=c[(T&p)>>2]|0;M=M+1|0;q=17}if((R|0)==11){c[(S&p)>>2]=f;th(s,10160,S)}else if((R|0)==13){c[(S&p)>>2]=f;th(s,10192,S)}else if((R|0)==17){c[(S&p)>>2]=f;th(s,10232,S)}else if((R|0)==23){mg(d,0);c[(S&p)>>2]=g;c[(T&p)>>2]=uh(d,10256,S)|0;q=1;R=62;break}else if((R|0)==36){mg(d,0);c[(S&p)>>2]=r;c[(T&p)>>2]=uh(d,10304,S)|0;q=1;R=62;break}else if((R|0)==57)if(!q){q=1;r=s;R=58;break}else{r=s;R=61;break}r=s+4|0;if(!(c[(r&p)>>2]|0)){q=1;R=62}else{mg(d,0);c[(T&p)>>2]=c[(r&p)>>2];c[(r&p)>>2]=0;q=1;R=62}}else{q=1;r=s;R=58}}else{q=0;r=0;R=58}while(0);do if((R|0)==58)if(a[(d&n)+65>>0]|0)if(q){q=0;R=61;break}else{q=0;R=64;break}else{c[(m&p)>>2]=Q;q=0;break}while(0);if((R|0)==61){l=Q+20|0;s=r;R=62}if((R|0)==62){r=c[(l&p)>>2]|0;if(!r){r=s;R=64}else{Ng(r)|0;r=s;R=64}}if((R|0)==64)mg(d,Q);K=c[(T&p)>>2]|0;c[(S&p)>>2]=K;ug(d,q,(K|0)!=0?10344:0,S);mg(d,K);Ch(r);mg(d,r);K=Og(d,q)|0;i=U;return K|0}function Je(a){a=a|0;var b=0,d=0;if(!a)a=0;else{d=c[(a&p)+24>>2]|0;b=md(c[(a&p)+20>>2]|0)|0;mg(d,a);a=b}return a|0}function Ke(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return Eh(a,b,c,d,18)|0}function Le(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return Eh(a,b,c,d,19)|0}function Me(a){a=a|0;if((a|0)!=0?(c[(a&p)+20>>2]|0)!=0:0)a=c[(a&p)+4>>2]|0;else a=0;return a|0}function Ne(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0;h=i;i=i+16|0;if((i|0)>=(j|0))fa();e=h;f=h+8|0;if(!a){c[(e&p)>>2]=77720;c[(e&p)+4>>2]=10788;bd(21,13648,e);b=21}else{g=c[(a&p)+24>>2]|0;if(c[(a&p)+20>>2]|0){b=Bh(a,b,d,f)|0;if(!b)b=0;else{d=c[(f&p)>>2]|0;c[(e&p)>>2]=d;ug(g,b,(d|0)!=0?10344:0,e);mg(g,d)}}else b=4;b=Og(g,b)|0}i=h;return b|0}function Oe(a,d,e){a=a|0;d=d|0;e=e|0;c[(a&p)+284>>2]=d;c[(a&p)+288>>2]=e;a=c[(a&p)+4>>2]|0;if(a)do{e=a+88|0;b[(e&o)>>1]=b[(e&o)>>1]|8;a=c[(a&p)+52>>2]|0}while((a|0)!=0);return 0}function Pe(a,b){a=a|0;b=b|0;return (Gh(a,b,10352,0)|0)==0|0}function Qe(e,f,g,h,k){e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;var l=0,m=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;E=i;i=i+16|0;if((i|0)>=(j|0))fa();m=E;A=E+12|0;B=E+8|0;c[(B&p)>>2]=0;do if(Hh(e)|0){l=(f|0)==0?10360:f;C=e+52|0;c[(C&p)>>2]=0;D=e+236|0;m=c[(D&p)>>2]|0;do if(m){f=m+8|0;if(!(b[(f&o)>>1]&9312)){b[(f&o)>>1]=1;break}else{vg(m);break}}while(0);x=(g|0)==0;y=e+24|0;m=0;a:while(1){do{if(m){q=39;break a}if(!(a[(l&n)>>0]|0)){m=0;q=39;break a}c[(B&p)>>2]=0;m=ih(e,l,-1,1,0,B,A)|0}while((m|0)!=0);l=c[(B&p)>>2]|0;if(!l){l=c[(A&p)>>2]|0;m=0;continue}w=b[(l&o)+84>>1]|0;u=w&65535;v=u<<3|1;w=w<<16>>16==0;f=0;q=0;r=0;b:do{m=Sd(l)|0;do if(!x){s=(m|0)==100;if(!s){if((m|0)!=101|(r|0)!=0)break b;if(!(c[(y&p)>>2]&256)){r=0;break}}if(!r){f=mh(e,v,0)|0;if(!f){f=0;q=40;break a}fw(f|0,0,v|0)|0;if(w)t=1;else{r=0;do{c[(f+(r<<2)&p)>>2]=je(l,r)|0;r=r+1|0}while((r|0)<(u|0));t=1}}else t=r;c:do if(s){q=f+(u<<2)|0;if(!w){r=0;while(1){s=fe(l,r)|0;c[(f+(r+u<<2)&p)>>2]=s;if((s|0)==0?(z=c[(B&p)>>2]|0,(ie(z,r)|0)!=5):0){m=z;q=27;break a}r=r+1|0;if((r|0)>=(u|0))break c;l=c[(B&p)>>2]|0}}}while(0);if(!(pc[g&31](h,u,q,f)|0))r=t;else{l=f;q=31;break a}}while(0);l=c[(B&p)>>2]|0}while((m|0)==100);m=Ng(l)|0;c[(B&p)>>2]=0;l=c[(A&p)>>2]|0;while(1)if(!(a[((d[(l&n)>>0]|0)&n)+10368>>0]&1))break;else l=l+1|0;mg(e,f)}do if((q|0)==27){a[(e&n)+65>>0]=1;l=m;m=100;q=40}else if((q|0)==31){Ng(c[(B&p)>>2]|0)|0;c[(B&p)>>2]=0;c[(C&p)>>2]=4;m=c[(D&p)>>2]|0;if(m){f=m+8|0;if(!(b[(f&o)>>1]&9312)){b[(f&o)>>1]=1;f=l;m=4;break}else{vg(m);f=l;m=4;break}}else{f=l;m=4}}else if((q|0)==39){l=c[(B&p)>>2]|0;f=0;q=40}while(0);if((q|0)==40)if(l)Ng(l)|0;mg(e,f);l=Og(e,m)|0;f=(k|0)!=0;if(!((l|0)!=0&f)){if(!f)break;c[(k&p)>>2]=0;break}f=Se(e)|0;if(!f)f=1;else{m=f;while(1)if(!(a[(m&n)>>0]|0))break;else m=m+1|0;f=(m-f&1073741823)+1|0}m=qg(f,((f|0)<0)<<31>>31)|0;c[(k&p)>>2]=m;if(m){kw(m|0,Se(e)|0,f|0)|0;break}c[(C&p)>>2]=7;l=c[(D&p)>>2]|0;if(l){f=l+8|0;if(!(b[(f&o)>>1]&9312)){b[(f&o)>>1]=1;l=7;break}else{vg(l);l=7;break}}else l=7}else{c[(m&p)>>2]=101334;c[(m&p)+4>>2]=10788;bd(21,13648,m);l=21}while(0);i=E;return l|0}function Re(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;return ih(a,b,c,1,0,d,e)|0}function Se(b){b=b|0;var d=0,e=0,f=0;e=i;i=i+16|0;if((i|0)>=(j|0))fa();d=e;do if(b){f=c[(b&p)+76>>2]|0;if(!((f|0)==1266094736|(f|0)==-1607883113|(f|0)==-264537850)){c[(d&p)>>2]=15248;bd(21,15256,d);c[(d&p)>>2]=129635;c[(d&p)+4>>2]=10788;bd(21,13648,d);d=16120;break}if(!(a[(b&n)+65>>0]|0)){d=Sg(c[(b&p)+236>>2]|0,1)|0;if(!d){d=c[(b&p)+52>>2]|0;if((d|0)!=516){d=d&255;if(d>>>0>26|(d|0)==2)d=16328;else d=c[(d<<2&p)+15488>>2]|0}else d=16344}}else d=15776}else d=15776;while(0);i=e;return d|0}function Te(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,o=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0;w=i;i=i+16|0;if((i|0)>=(j|0))fa();u=w;v=w+8|0;t=c[(b&p)>>2]|0;c[(v&p)>>2]=0;m=(d|0)==0;if(m)g=0;else{l=d;while(1)if(!(a[(l&n)>>0]|0))break;else l=l+1|0;g=l-d&1073741823}r=g+300|0;q=(f|0)!=0;if(q)c[(f&p)>>2]=0;do if(!(c[(b&p)+24>>2]&4194304))if(q){c[(f&p)>>2]=_c(25216,u)|0;g=1}else g=1;else{o=(e|0)!=0?e:41192;k=t+40|0;l=rc[c[(k&p)>>2]&127](t,d)|0;if(!l){c[(u&p)>>2]=d;c[(u&p)+4>>2]=41184;h=_c(27824,u)|0;if(!h){g=7;break}l=rc[c[(k&p)>>2]&127](t,h)|0;Wc(h);if(!l){if(!q){g=1;break}l=Tc(r)|0;c[(v&p)>>2]=l;c[(f&p)>>2]=l;if(!l){g=1;break}c[(u&p)>>2]=d;ad(r,l,41216,u)|0;mc[c[(t&p)+44>>2]&63](t,g+299|0,l);g=1;break}else s=l}else s=l;g=t+48|0;l=ac[c[(g&p)>>2]&63](t,s,o)|0;if((l|0)==0&(e|0)==0){if(m)l=0;else{l=d;while(1)if(!(a[(l&n)>>0]|0))break;else l=l+1|0;l=l-d&1073741823}e=Tc(l+30|0)|0;if(!e){jc[c[(t&p)+52>>2]&15](t,s);g=7;break}o=e;m=o;a[(m&n)>>0]=115;a[(m&n)+1>>0]=113;a[(m&n)+2>>0]=108;a[(m&n)+3>>0]=105;o=o+4|0;a[(o&n)>>0]=116;a[(o&n)+1>>0]=101;a[(o&n)+2>>0]=51;a[(o&n)+3>>0]=95;while(1){k=l+-1|0;if((l|0)<=0)break;if((a[(d+k&n)>>0]|0)==47)break;else l=k}h=(Fc(d+l|0,41256,3)|0)==0;k=8;h=h?l+3|0:l;while(1){l=a[(d+h&n)>>0]|0;if(l<<24>>24==0|l<<24>>24==46){l=k;break}if(!(a[(l&255&n)+10368>>0]&2))l=k;else{a[(e+k&n)>>0]=a[(l<<24>>24&n)+9328>>0]|0;l=k+1|0}k=l;h=h+1|0}l=e+l|0;a[(l&n)>>0]=a[41264]|0;a[(l&n)+1>>0]=a[41265]|0;a[(l&n)+2>>0]=a[41266]|0;a[(l&n)+3>>0]=a[41267]|0;a[(l&n)+4>>0]=a[41268]|0;a[(l&n)+5>>0]=a[41269]|0;l=ac[c[(g&p)>>2]&63](t,s,e)|0;g=e;h=e}else{g=0;h=o}if(!l){if(q){if(!h)l=0;else{l=h;while(1)if(!(a[(l&n)>>0]|0))break;else l=l+1|0;l=l-h&1073741823}l=l+r|0;k=Tc(l)|0;c[(v&p)>>2]=k;c[(f&p)>>2]=k;if(k){c[(u&p)>>2]=h;c[(u&p)+4>>2]=d;ad(l,k,41272,u)|0;mc[c[(t&p)+44>>2]&63](t,l+-1|0,k)}}jc[c[(t&p)+52>>2]&15](t,s);Wc(g);g=1;break}Wc(g);if(ac[l&63](b,v,13776)|0){if(q){c[(u&p)>>2]=c[(v&p)>>2];c[(f&p)>>2]=_c(41320,u)|0}Wc(c[(v&p)>>2]|0);jc[c[(t&p)+52>>2]&15](t,s);g=1;break}k=b+168|0;g=(c[(k&p)>>2]<<2)+4|0;l=mh(b,g,0)|0;if(!l)g=7;else{fw(l|0,0,g|0)|0;g=c[(k&p)>>2]|0;h=b+172|0;if((g|0)>0)kw(l|0,c[(h&p)>>2]|0,g<<2|0)|0;mg(b,c[(h&p)>>2]|0);c[(h&p)>>2]=l;g=c[(k&p)>>2]|0;c[(k&p)>>2]=g+1;c[(l+(g<<2)&p)>>2]=s;g=0}}while(0);s=Og(b,g)|0;i=w;return s|0}function Ue(a){a=a|0;var b=0,d=0,e=0,f=0;b=Lc()|0;if(!b){f=c[2656]|0;a:do if((f|0)>0){d=c[2658]|0;e=0;while(1){b=e+1|0;if((c[(d+(e<<2)&p)>>2]|0)==(a|0)){b=e;break a}if((b|0)<(f|0))e=b;else break}}else b=0;while(0);if((b|0)==(f|0)){b=Xc(c[2658]|0,(f<<2)+4|0)|0;if(!b)b=7;else{c[2658]=b;d=c[2656]|0;c[(b+(d<<2)&p)>>2]=a;c[2656]=d+1;b=0}}else b=0}return b|0}function Ve(a){a=a|0;var b=0,d=0,e=0,f=0,g=0;e=c[2656]|0;f=c[2658]|0;d=e;while(1){if((d|0)<=0){b=0;break}d=d+-1|0;b=f+(d<<2)|0;if((c[(b&p)>>2]|0)==(a|0)){g=4;break}}if((g|0)==4){d=e+-1|0;c[2656]=d;c[(b&p)>>2]=c[(f+(d<<2)&p)>>2];b=1}return b|0}function We(){if(!(Lc()|0)){Wc(c[2658]|0);c[2658]=0;c[2656]=0}return}function Xe(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;return ih(a,b,c,0,0,d,e)|0}function Ye(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;return Ih(a,b,c,0,d,e)|0}function Ze(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;return Ih(a,b,c,1,d,e)|0}function _e(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,k=0,l=0,m=0,n=0,o=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0;w=i;i=i+32|0;if((i|0)>=(j|0))fa();n=w;r=w+4|0;c[(d&p)>>2]=0;s=(f|0)!=0;if(s)c[(f&p)>>2]=0;t=(e|0)!=0;if(t)c[(e&p)>>2]=0;l=(g|0)!=0;if(l)c[(g&p)>>2]=0;m=r+4|0;c[(m&p)>>2]=0;u=r+12|0;c[(u&p)>>2]=0;v=r+16|0;c[(v&p)>>2]=0;k=r+20|0;c[(k&p)>>2]=1;o=r+8|0;c[(o&p)>>2]=20;q=r+24|0;c[(q&p)>>2]=0;h=Tc(80)|0;c[(r&p)>>2]=h;a:do if(h){c[(h&p)>>2]=0;b=Qe(a,b,20,r,g)|0;c[(c[(r&p)>>2]&p)>>2]=c[(k&p)>>2];if((b&255|0)==4){$e((c[(r&p)>>2]|0)+4|0);b=c[(m&p)>>2]|0;if(b){if(l){Wc(c[(g&p)>>2]|0);c[(n&p)>>2]=c[(m&p)>>2];c[(g&p)>>2]=_c(10344,n)|0;b=c[(m&p)>>2]|0}Wc(b)}b=c[(q&p)>>2]|0;c[(a&p)+52>>2]=b;break}Wc(c[(m&p)>>2]|0);if(b){$e((c[(r&p)>>2]|0)+4|0);break}h=c[(k&p)>>2]|0;b=c[(r&p)>>2]|0;do if((c[(o&p)>>2]|0)>>>0>h>>>0){b=Xc(b,h<<2)|0;if(!b){$e((c[(r&p)>>2]|0)+4|0);c[(a&p)+52>>2]=7;b=7;break a}else{c[(r&p)>>2]=b;break}}while(0);c[(d&p)>>2]=b+4;if(s)c[(f&p)>>2]=c[(v&p)>>2];if(t){c[(e&p)>>2]=c[(u&p)>>2];b=0}else b=0}else{c[(a&p)+52>>2]=7;b=7}while(0);i=w;return b|0}function $e(a){a=a|0;var b=0,d=0,e=0,f=0;if(a){b=a+-4|0;e=c[(b&p)>>2]|0;d=e;if((e|0)>1){f=1;do{e=c[(a+(f+-1<<2)&p)>>2]|0;if(e)Wc(e);f=f+1|0}while((f|0)<(d|0))}Wc(b)}return}function af(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return Kh(a,b,c,d,0)|0}function bf(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;return Kh(a,b,c,d,e)|0}function cf(d,e){d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,q=0,r=0,s=0;s=i;i=i+16|0;if((i|0)>=(j|0))fa();r=s;g=s+8|0;c[(g&p)>>2]=0;h=d+324|0;f=c[(h&p)>>2]|0;if((f|0)!=0?(m=c[(f&p)+4>>2]|0,(m|0)!=0):0){q=mh(d,536,0)|0;if(!q)e=7;else{fw(q|0,0,536)|0;k=q+451|0;a[(k&n)>>0]=1;c[(q&p)>>2]=d;c[(q&p)+424>>2]=1;if(((((Lh(q,e,g)|0)==0?(l=c[(q&p)+484>>2]|0,(l|0)!=0):0)?(a[(d&n)+65>>0]|0)==0:0)?(c[(l&p)+12>>2]|0)==0:0)?(a[(l&n)+44>>0]&16)==0:0){f=m+4|0;if(!(c[(f&p)>>2]|0)){r=l+4|0;c[(f&p)>>2]=c[(r&p)>>2];l=l+38|0;b[(m&o)+38>>1]=b[(l&o)>>1]|0;b[(l&o)>>1]=0;c[(r&p)>>2]=0}c[((c[(h&p)>>2]|0)&p)+4>>2]=0;e=0}else{e=c[(g&p)>>2]|0;c[(r&p)>>2]=e;ug(d,1,(e|0)!=0?10344:0,r);mg(d,e);e=1}a[(k&n)>>0]=0;f=c[(q&p)+8>>2]|0;if(f)Ng(f)|0;kg(d,c[(q&p)+484>>2]|0);Ch(q);mg(d,q)}e=Og(d,e)|0}else{c[(d&p)+52>>2]=21;f=c[(d&p)+236>>2]|0;do if(f){e=f+8|0;if(!(b[(e&o)>>1]&9312)){b[(e&o)>>1]=1;break}else{vg(f);break}}while(0);c[(r&p)>>2]=114865;c[(r&p)+4>>2]=10788;bd(21,13648,r);e=21}i=s;return e|0}function df(a){a=a|0;return d[((d[(a&n)+69>>0]|0)+-1&n)+10640>>0]|0|0}function ef(d,e,f){d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0;l=i;i=i+32|0;if((i|0)>=(j|0))fa();h=l;g=l+8|0;c[(g&p)>>2]=f;do if((e|0)==1){e=c[(d&p)+324>>2]|0;if(!e){c[(h&p)>>2]=115248;c[(h&p)+4>>2]=10788;bd(21,13648,h);k=6;break}else{d=c[(g&p)>>2]|0;f=c[(d&p)>>2]|0;c[(g&p)>>2]=d+4;a[((c[(e&p)>>2]|0)&n)+16>>0]=f;e=0;break}}else{c[(h&p)>>2]=115256;c[(h&p)+4>>2]=10788;bd(21,13648,h);k=6}while(0);do if((k|0)==6){c[(d&p)+52>>2]=21;e=c[(d&p)+236>>2]|0;if(e){f=e+8|0;if(!(b[(f&o)>>1]&9312)){b[(f&o)>>1]=1;e=21;break}else{vg(e);e=21;break}}else e=21}while(0);i=l;return e|0}function ff(b){b=b|0;var c=0,e=0,f=0,g=0,h=0;c=a[(b&n)>>0]|0;a:do if(c<<24>>24){g=c;c=0;b:while(1){f=g<<24>>24;switch(f|0){case 45:{if((a[(b&n)+1>>0]|0)==45){e=g;while(1){f=e<<24>>24==0;g=b+1|0;if(!(e<<24>>24!=10&(f^1)))break;b=g;e=a[(g&n)>>0]|0}if(f){h=13;break b}else e=1}else e=2;break}case 59:{e=0;break}case 91:{do{b=b+1|0;f=a[(b&n)>>0]|0;e=f<<24>>24==0}while(f<<24>>24!=93&(e^1));if(e){c=0;break a}else e=2;break}case 39:case 34:case 96:{do{b=b+1|0;f=a[(b&n)>>0]|0;e=f<<24>>24==0}while(f<<24>>24!=g<<24>>24&(e^1));if(e){c=0;break a}else e=2;break}case 47:{if((a[(b&n)+1>>0]|0)==42){b=b+2|0;while(1){e=a[(b&n)>>0]|0;if(e<<24>>24==42){b=b+1|0;if((a[(b&n)>>0]|0)==47){e=1;break}else continue}else if(!(e<<24>>24)){c=0;break a}else{b=b+1|0;continue}}}else e=2;break}case 12:case 10:case 9:case 13:case 32:{e=1;break}default:if(!(a[(g&255&n)+10368>>0]&70))e=2;else{e=1;while(1)if(!(a[((d[(b+e&n)>>0]|0)&n)+10368>>0]&70)){g=e;break}else e=e+1|0;c:do switch(f|0){case 67:case 99:{if((g|0)==6?(Fc(b,10712,6)|0)==0:0){e=4;break c}e=2;break}case 69:case 101:{if((g|0)==3){if(!(Fc(b,10752,3)|0)){e=7;break c}}else if((g|0)==7?(Fc(b,10760,7)|0)==0:0){e=3;break c}e=2;break}case 84:case 116:{if((g|0)==7){if(!(Fc(b,10720,7)|0)){e=6;break c}}else if((g|0)==4){if(!(Fc(b,10728,4)|0)){e=5;break c}}else if((g|0)==9?(Fc(b,10736,9)|0)==0:0){e=5;break c}e=2;break}default:e=2}while(0);b=b+(g+-1)|0}}c=a[((e&255)+((c&255)<<3)&n)+10648>>0]|0;b=b+1|0;g=a[(b&n)>>0]|0;if(!(g<<24>>24)){h=35;break}}if((h|0)==13){c=c<<24>>24==1&1;break}else if((h|0)==35){c=c<<24>>24==1;h=36;break}}else{c=0;h=36}while(0);if((h|0)==36)c=c&1;return c|0}function gf(d){d=d|0;var e=0,f=0,g=0;e=Lc()|0;if(!e){f=qg(40,0)|0;if(f){e=f+0|0;g=e+40|0;do{a[(e&n)>>0]=0;e=e+1|0}while((e|0)<(g|0));b[(f&o)+8>>1]=1;c[(f&p)+32>>2]=0;Xg(f,d,-1,2,0)|0}e=Sg(f,1)|0;if(!e)e=7;else e=(ff(e)|0)&255;Mh(f)}return e|0}function hf(){return 8632}function jf(){return 10768}function kf(){return 3008009}function lf(){return 0}function mf(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;f=i;i=i+32|0;if((i|0)>=(j|0))fa();d=f;e=f+8|0;if(!(c[2243]|0)){c[(e&p)>>2]=b;do switch(a|0){case 22:{c[(e&p)>>2]=(c[(e&p)>>2]|0)+8;c[(e&p)>>2]=(c[(e&p)>>2]|0)+8;c[2230]=0;c[2231]=0;c[2232]=0;c[2233]=0;d=0;break}case 25:{a=c[(e&p)>>2]|0;d=c[(a&p)>>2]|0;c[(e&p)>>2]=a+4;c[2242]=d;d=0;break}case 19:{if(!(c[2214]|0)){c[(d&p)>>2]=16440;mf(18,d)|0}a=c[(e&p)>>2]|0;d=c[(a&p)>>2]|0;c[(e&p)>>2]=a+4;d=d+0|0;a=8848|0;e=d+52|0;do{c[(d&p)>>2]=c[(a&p)>>2];d=d+4|0;a=a+4|0}while((d|0)<(e|0));d=0;break}case 18:{d=c[(e&p)>>2]|0;a=c[(d&p)>>2]|0;c[(e&p)>>2]=d+4;d=8848|0;a=a+0|0;e=d+52|0;do{c[(d&p)>>2]=c[(a&p)>>2];d=d+4|0;a=a+4|0}while((d|0)<(e|0));d=0;break}case 20:{a=c[(e&p)>>2]|0;d=c[(a&p)>>2]|0;c[(e&p)>>2]=a+4;c[2190]=d;d=0;break}case 13:{d=c[(e&p)>>2]|0;a=c[(d&p)>>2]|0;c[(e&p)>>2]=d+4;c[2193]=a;a=c[(e&p)>>2]|0;d=c[(a&p)>>2]|0;c[(e&p)>>2]=a+4;c[2194]=d;d=0;break}case 17:{a=c[(e&p)>>2]|0;d=c[(a&p)>>2]|0;c[(e&p)>>2]=a+4;c[2189]=d;d=0;break}case 15:{d=1;break}case 6:{a=c[(e&p)>>2]|0;d=c[(a&p)>>2]|0;c[(e&p)>>2]=a+4;c[2234]=d;d=c[(e&p)>>2]|0;a=c[(d&p)>>2]|0;c[(e&p)>>2]=d+4;c[2235]=a;a=c[(e&p)>>2]|0;d=c[(a&p)>>2]|0;c[(e&p)>>2]=a+4;c[2236]=d;d=0;break}case 24:{a=c[(e&p)>>2]|0;d=c[(a&p)>>2]|0;c[(e&p)>>2]=a+4;c[(d&p)>>2]=152;d=0;break}case 9:{a=c[(e&p)>>2]|0;d=c[(a&p)>>2]|0;c[(e&p)>>2]=a+4;c[2186]=d;d=0;break}case 7:{a=c[(e&p)>>2]|0;d=c[(a&p)>>2]|0;c[(e&p)>>2]=a+4;c[2237]=d;d=c[(e&p)>>2]|0;a=c[(d&p)>>2]|0;c[(e&p)>>2]=d+4;c[2238]=a;a=c[(e&p)>>2]|0;d=c[(a&p)>>2]|0;c[(e&p)>>2]=a+4;c[2239]=d;d=0;break}case 4:{a=c[(e&p)>>2]|0;d=c[(a&p)>>2]|0;c[(e&p)>>2]=a+4;c[2195]=c[(d&p)>>2];c[2196]=c[(d&p)+4>>2];c[2197]=c[(d&p)+8>>2];c[2198]=c[(d&p)+12>>2];c[2199]=c[(d&p)+16>>2];c[2200]=c[(d&p)+20>>2];c[2201]=c[(d&p)+24>>2];c[2202]=c[(d&p)+28>>2];d=0;break}case 16:{d=c[(e&p)>>2]|0;a=c[(d&p)>>2]|0;c[(e&p)>>2]=d+4;c[2250]=a;a=c[(e&p)>>2]|0;d=c[(a&p)>>2]|0;c[(e&p)>>2]=a+4;c[2251]=d;d=0;break}case 5:{if(!(c[2195]|0)){c[(d&p)>>2]=16496;mf(4,d)|0}a=c[(e&p)>>2]|0;d=c[(a&p)>>2]|0;c[(e&p)>>2]=a+4;c[(d&p)>>2]=c[2195];c[(d&p)+4>>2]=c[2196];c[(d&p)+8>>2]=c[2197];c[(d&p)+12>>2]=c[2198];c[(d&p)+16>>2]=c[2199];c[(d&p)+20>>2]=c[2200];c[(d&p)+24>>2]=c[2201];c[(d&p)+28>>2]=c[2202];d=0;break}case 14:{d=0;break}default:d=1}while(0)}else{c[(d&p)>>2]=127883;c[(d&p)+4>>2]=10788;bd(21,13648,d);d=21}i=f;return d|0}function nf(a){a=a|0;return c[(a&p)+12>>2]|0}function of(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0;h=a+20|0;b=c[(h&p)>>2]|0;f=(b|0)>0;if(f){e=c[(a&p)+16>>2]|0;g=0;do{d=c[(e+(g<<4)&p)+4>>2]|0;if(d)c[((c[(d&p)+4>>2]|0)&p)+4>>2]=c[(d&p)>>2];g=g+1|0}while((g|0)!=(b|0));if(f){f=a+16|0;e=0;do{d=c[((c[(f&p)>>2]|0)+(e<<4)&p)+4>>2]|0;if(d){cc[c[8896>>2]&31](c[((c[((c[(c[(d&p)+4>>2]&p)>>2]|0)&p)+204>>2]|0)&p)+40>>2]|0);b=c[(h&p)>>2]|0}e=e+1|0}while((e|0)<(b|0))}}return 0}function pf(a,d,e){a=a|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0;l=i;i=i+16|0;if((i|0)>=(j|0))fa();h=l;c[(h&p)>>2]=e;a:do if((d|0)!=1001){e=0;while(1){if((c[(e<<3&p)+10936>>2]|0)==(d|0))break;e=e+1|0;if(e>>>0>=2){f=1;break a}}g=c[(h&p)>>2]|0;d=c[(g&p)>>2]|0;c[(h&p)>>2]=g+4;g=c[(h&p)>>2]|0;k=c[(g&p)>>2]|0;c[(h&p)>>2]=g+4;h=a+24|0;g=c[(h&p)>>2]|0;if((d|0)<=0)if(!d){d=g&~c[(e<<3&p)+10940>>2];c[(h&p)>>2]=d}else d=g;else{d=c[(e<<3&p)+10940>>2]|g;c[(h&p)>>2]=d}if((g|0)!=(d|0)?(f=c[(a&p)+4>>2]|0,(f|0)!=0):0)do{d=f+88|0;b[(d&o)>>1]=b[(d&o)>>1]|8;f=c[(f&p)+52>>2]|0}while((f|0)!=0);if(!k)f=0;else{c[(k&p)>>2]=(c[(e<<3&p)+10940>>2]&c[(h&p)>>2]|0)!=0&1;f=0}}else{g=c[(h&p)>>2]|0;d=c[(g&p)>>2]|0;c[(h&p)>>2]=g+4;g=c[(h&p)>>2]|0;e=c[(g&p)>>2]|0;c[(h&p)>>2]=g+4;g=c[(h&p)>>2]|0;f=c[(g&p)>>2]|0;c[(h&p)>>2]=g+4;f=Nh(a,d,e,f)|0}while(0);i=l;return f|0}function qf(a){a=a|0;a=a+32|0;G=c[(a&p)+4>>2]|0;return c[(a&p)>>2]|0}function rf(a){a=a|0;return c[(a&p)+80>>2]|0}function sf(a){a=a|0;return c[(a&p)+84>>2]|0}function tf(a){a=a|0;return Oh(a,0)|0}function uf(a){a=a|0;return Oh(a,1)|0}function vf(a,b,d){a=a|0;b=b|0;d=d|0;c[(a&p)+444>>2]=b;c[(a&p)+448>>2]=d;c[(a&p)+452>>2]=0;c[(a&p)+492>>2]=0;return 0}function wf(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0;f=(b|0)>0;c[(a&p)+292>>2]=f?d:0;c[(a&p)+300>>2]=f?b:0;c[(a&p)+296>>2]=f?e:0;return}function xf(a,b){a=a|0;b=b|0;var d=0;d=(b|0)>0;c[(a&p)+444>>2]=d?74:0;c[(a&p)+448>>2]=d?a:0;c[(a&p)+452>>2]=0;c[(a&p)+492>>2]=d?b:0;return 0}function yf(a){a=a|0;c[(a&p)+240>>2]=1;return}function zf(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 Og(a,Qh(a,b,c,d,e,f,g,h,0)|0)|0}function Af(b,d,e,f,g,h,i,j,k){b=b|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;var l=0,m=0,o=0;do if(k){l=mh(b,12,0)|0;if(!l){cc[k&31](g);f=1;break}m=l;o=m;a[(o&n)>>0]=0;a[(o&n)+1>>0]=0;a[(o&n)+2>>0]=0;a[(o&n)+3>>0]=0;m=m+4|0;a[(m&n)>>0]=0;a[(m&n)+1>>0]=0;a[(m&n)+2>>0]=0;a[(m&n)+3>>0]=0;c[(l&p)+4>>2]=k;c[(l&p)+8>>2]=g;f=Qh(b,d,e,f,g,h,i,j,l)|0;if(!(c[(l&p)>>2]|0)){cc[k&31](g);mg(b,l)}}else f=Qh(b,d,e,f,g,h,i,j,0)|0;while(0);return Og(b,f)|0}function Bf(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;b=Rh(a,b,-1)|0;d=Qh(a,b,c,d,e,f,g,h,0)|0;mg(a,b);return Og(a,d)|0}function Cf(b,c,d){b=b|0;c=c|0;d=d|0;var e=0;if(!c)e=0;else{e=c;while(1)if(!(a[(e&n)>>0]|0))break;else e=e+1|0;e=e-c&1073741823}if(!(Sh(b,c,e,d,1,0)|0))e=Qh(b,c,d,1,0,57,0,0,0)|0;else e=0;return Og(b,e)|0}function Df(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;f=a+180|0;e=c[(f&p)>>2]|0;c[(a&p)+176>>2]=b;c[(f&p)>>2]=d;return e|0}function Ef(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;f=a+188|0;e=c[(f&p)>>2]|0;c[(a&p)+184>>2]=b;c[(f&p)>>2]=d;return e|0}function Ff(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;f=a+192|0;e=c[(f&p)>>2]|0;c[(a&p)+196>>2]=b;c[(f&p)>>2]=d;return e|0}function Gf(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;f=a+208|0;e=c[(f&p)>>2]|0;c[(a&p)+212>>2]=b;c[(f&p)>>2]=d;return e|0}function Hf(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;f=a+200|0;e=c[(f&p)>>2]|0;c[(a&p)+204>>2]=b;c[(f&p)>>2]=d;return e|0}function If(a,b){a=a|0;b=b|0;var d=0;if((b|0)>0)d=21;else{b=0;d=0}c[(a&p)+216>>2]=d;c[(a&p)+220>>2]=b;return 0}function Jf(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;f=a+220|0;e=c[(f&p)>>2]|0;c[(a&p)+216>>2]=b;c[(f&p)>>2]=d;return e|0}function Kf(d,e,f,g,h){d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var k=0,l=0,m=0,q=0;q=i;i=i+16|0;if((i|0)>=(j|0))fa();k=q;if(g)c[(g&p)>>2]=-1;if(h)c[(h&p)>>2]=-1;if(f>>>0>3)e=21;else{if((e|0)!=0?(a[(e&n)>>0]|0)!=0:0){l=Vh(d,e)|0;if((l|0)<0){c[(k&p)>>2]=e;ug(d,1,10952,k);e=1}else m=10}else{l=10;m=10}do if((m|0)==10){c[(d&p)+452>>2]=0;e=Wh(d,l,f,g,h)|0;c[(d&p)+52>>2]=e;k=c[(d&p)+236>>2]|0;if(k){l=k+8|0;if(!(b[(l&o)>>1]&9312)){b[(l&o)>>1]=1;break}else{vg(k);break}}}while(0);e=Og(d,e)|0}i=q;return e|0}function Lf(a,b){a=a|0;b=b|0;return Kf(a,b,0,0,0)|0}function Mf(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,k=0;k=i;i=i+16|0;if((i|0)>=(j|0))fa();g=k;do if(b){d=c[(b&p)+76>>2]|0;if(!((d|0)==1266094736|(d|0)==-1607883113|(d|0)==-264537850)){c[(g&p)>>2]=15248;bd(21,15256,g);d=11008;break}h=b+65|0;if(!(a[(h&n)>>0]|0)){f=b+236|0;d=Sg(c[(f&p)>>2]|0,2)|0;if(!d){e=c[(b&p)+52>>2]|0;if((e|0)!=516){d=e&255;if(d>>>0>26|(d|0)==2)d=16328;else d=c[(d<<2&p)+15488>>2]|0}else d=16344;ug(b,e,d,g);d=Sg(c[(f&p)>>2]|0,2)|0}a[(h&n)>>0]=0}else d=10976}else d=10976;while(0);i=k;return d|0}function Nf(b){b=b|0;var d=0,e=0,f=0;e=i;i=i+16|0;if((i|0)>=(j|0))fa();d=e;do if(b){f=c[(b&p)+76>>2]|0;if(!((f|0)==1266094736|(f|0)==-1607883113|(f|0)==-264537850)){c[(d&p)>>2]=15248;bd(21,15256,d);c[(d&p)>>2]=129704;c[(d&p)+4>>2]=10788;bd(21,13648,d);b=21;break}if(!(a[(b&n)+65>>0]|0))b=c[(b&p)+56>>2]&c[(b&p)+52>>2];else b=7}else b=7;while(0);i=e;return b|0}function Of(b){b=b|0;var d=0,e=0,f=0;e=i;i=i+16|0;if((i|0)>=(j|0))fa();d=e;do if(b){f=c[(b&p)+76>>2]|0;if(!((f|0)==1266094736|(f|0)==-1607883113|(f|0)==-264537850)){c[(d&p)>>2]=15248;bd(21,15256,d);c[(d&p)>>2]=129713;c[(d&p)+4>>2]=10788;bd(21,13648,d);b=21;break}if(!(a[(b&n)+65>>0]|0))b=c[(b&p)+52>>2]|0;else b=7}else b=7;while(0);i=e;return b|0}function Pf(a){a=a|0;if((a|0)!=516){a=a&255;if(a>>>0>26|(a|0)==2)a=16328;else a=c[(a<<2&p)+15488>>2]|0}else a=16344;return a|0}function Qf(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;if(b>>>0<=11){e=a+(b<<2)+88|0;a=c[(e&p)>>2]|0;if((d|0)>-1){b=c[(b<<2&p)+11088>>2]|0;c[(e&p)>>2]=(b|0)<(d|0)?b:d}}else a=-1;return a|0}function Rf(a,b){a=a|0;b=b|0;return Xh(a,b,6,0)|0}function Sf(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return Xh(a,b,c,d)|0}function Tf(d,e){d=d|0;e=e|0;var f=0,g=0,h=0;c[(e&p)>>2]=0;f=Lc()|0;if(!f){h=qg(40,0)|0;if(h){d=(d|0)==0?11136:d;f=h+0|0;g=f+40|0;do{a[(f&n)>>0]=0;f=f+1|0}while((f|0)<(g|0));b[(h&o)+8>>1]=1;c[(h&p)+32>>2]=0;Xg(h,d,-1,2,0)|0}d=Sg(h,1)|0;if(d){f=Xh(d,e,6,0)|0;if(!f){f=c[(e&p)>>2]|0;d=c[((c[(f&p)+16>>2]|0)&p)+12>>2]|0;if(!(b[(d&o)+78>>1]&1)){a[(f&n)+62>>0]=2;a[(d&n)+77>>0]=2;f=0}else f=0}}else f=7;Mh(h);f=f&255}return f|0}function Uf(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;return Og(a,Yh(a,b,c&255,d,e,0)|0)|0}function Vf(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 Og(a,Yh(a,b,c&255,d,e,f)|0)|0}function Wf(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;b=Rh(a,b,-1)|0;if(!b)b=0;else{c=Yh(a,b,c&255,d,e,0)|0;mg(a,b);b=c}return Og(a,b)|0}function Xf(a,b,d){a=a|0;b=b|0;d=d|0;c[(a&p)+224>>2]=d;c[(a&p)+228>>2]=0;c[(a&p)+232>>2]=b;return 0}function Yf(a,b,d){a=a|0;b=b|0;d=d|0;c[(a&p)+224>>2]=0;c[(a&p)+228>>2]=d;c[(a&p)+232>>2]=b;return 0}function Zf(a){a=a|0;return d[(a&n)+63>>0]|0|0}function _f(){return}function $f(d,e,f,g,h,k,l,m,q){d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;m=m|0;q=q|0;var r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0;C=i;i=i+16|0;if((i|0)>=(j|0))fa();A=C;B=C+8|0;c[(B&p)>>2]=0;s=c[(d&p)+20>>2]|0;if((s|0)>0){r=c[(d&p)+16>>2]|0;u=0;do{t=c[(r+(u<<4)&p)+4>>2]|0;if(t)c[((c[(t&p)+4>>2]|0)&p)+4>>2]=c[(t&p)>>2];u=u+1|0}while((u|0)!=(s|0))}r=Zh(d,B)|0;z=(r|0)!=0;a:do if((!z?(x=_h(d,f,e)|0,(x|0)!=0):0)?(c[(x&p)+12>>2]|0)==0:0){do if(g){w=b[(x&o)+38>>1]|0;b:do if(w<<16>>16>0){e=c[(x&p)+4>>2]|0;s=w<<16>>16;v=0;while(1){t=e+(v*24|0)|0;u=v+1|0;if(!(dd(c[(t&p)>>2]|0,g)|0)){u=v;break b}if((u|0)<(s|0))v=u;else break}}else{u=0;t=0}while(0);if((u|0)==(w<<16>>16|0)){if(a[(x&n)+44>>0]&32){e=0;w=0;x=0;t=0;v=0;u=0;break a}if(!($h(g)|0)){e=0;w=0;x=0;t=0;v=0;u=0;break a}y=b[(x&o)+36>>1]|0;s=y<<16>>16;if(y<<16>>16<=-1){e=0;v=0;s=1;y=0;u=11144;break}u=s;t=(c[(x&p)+4>>2]|0)+(s*24|0)|0}if(t){if((b[(x&o)+36>>1]|0)==(u|0))s=(a[(x&n)+44>>0]&8)!=0;else s=0;e=s&1;v=(a[(t&n)+20>>0]|0)!=0&1;s=a[(t&n)+23>>0]&1;y=c[(t&p)+16>>2]|0;u=c[(t&p)+12>>2]|0}else{e=0;v=0;s=1;y=0;u=11144}}else{e=0;v=0;s=1;y=0;u=11144}while(0);w=v;t=s;v=(y|0)==0?11152:y}else{e=0;w=0;x=0;t=0;v=0;u=0}while(0);if(h)c[(h&p)>>2]=u;if(k)c[(k&p)>>2]=v;if(l)c[(l&p)>>2]=w;if(m)c[(m&p)>>2]=t;if(q)c[(q&p)>>2]=e;s=c[(B&p)>>2]|0;if(!(z|(x|0)!=0)){mg(d,s);c[(A&p)>>2]=f;c[(A&p)+4>>2]=g;s=uh(d,11160,A)|0;c[(B&p)>>2]=s;r=1}c[(A&p)>>2]=s;ug(d,r,(s|0)!=0?10344:0,A);mg(d,c[(B&p)>>2]|0);z=Og(d,r)|0;i=C;return z|0}function ag(a){a=a|0;var b=0;if((Lc()|0)==0?(b=c[2254]|0,(b|0)!=0):0)a=(rc[c[(b&p)+60>>2]&127](b,a*1e3|0)|0)/1e3|0;else a=0;return a|0}function bg(a,b){a=a|0;b=b|0;c[(a&p)+56>>2]=(b|0)!=0?-1:255;return 0}function cg(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;b=ai(a,b)|0;do if(b){a=c[(b&p)+4>>2]|0;c[(a&p)+4>>2]=c[(b&p)>>2];a=c[((c[(a&p)>>2]|0)&p)+60>>2]|0;if((d|0)==7){c[(e&p)>>2]=a;b=0;break}b=c[(a&p)>>2]|0;if(!b)b=12;else b=ac[c[(b&p)+40>>2]&63](a,d,e)|0}else b=1;while(0);return b|0}function dg(e,f){e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0,v=0;t=i;i=i+32|0;if((i|0)>=(j|0))fa();s=t+24|0;h=t+8|0;g=t;c[(h&p)>>2]=f;do switch(e|0){case 11:{g=c[2514]|0;s=c[(h&p)>>2]|0;f=c[(s&p)>>2]|0;c[(h&p)>>2]=s+4;if(f)c[2514]=f;break}case 12:{c[(g&p)>>2]=0;g=c[(g&p)>>2]|0;break}case 13:{s=c[(h&p)>>2]|0;g=c[(s&p)>>2]|0;c[(h&p)>>2]=s+4;break}case 22:{g=10;break}case 5:{kw(12672,9064,259)|0;g=0;break}case 7:{if(!(Lc()|0)){a[9064]=0;g=0}else g=0;break}case 8:{r=c[(h&p)>>2]|0;q=c[(r&p)>>2]|0;c[(h&p)>>2]=r+4;r=c[(h&p)>>2]|0;k=c[(r&p)>>2]|0;c[(h&p)>>2]=r+4;r=qg(512,0)|0;g=(r|0)==0;if(!g){fw(r|0,0,512)|0;c[(r&p)>>2]=q}e=((q+7|0)/8|0)+1|0;m=qg(e,((e|0)<0)<<31>>31)|0;f=(m|0)==0;if(!f)fw(m|0,0,e|0)|0;l=Tc(512)|0;a:do if(!(g|f|(l|0)==0)){h=0;while(1){g=c[(k+(h<<2)&p)>>2]|0;if(!g)break;else if((g|0)==5|(g|0)==2|(g|0)==1){f=k+(h+2<<2)|0;u=c[(f&p)>>2]|0;e=u+-1|0;c[(s&p)>>2]=e;c[(f&p)>>2]=(c[(k+(h+3<<2)&p)>>2]|0)+u;f=4}else{cd(4,s);e=c[(s&p)>>2]|0;f=2}v=k+((h|1)<<2)|0;u=(c[(v&p)>>2]|0)+-1|0;c[(v&p)>>2]=u;h=((u|0)>0?0:f)+h|0;e=(e&2147483647|0)%(q|0)|0;c[(s&p)>>2]=e;e=e+1|0;f=1<<(e&7);if(!(g&1)){e=m+(e>>>3)|0;a[(e&n)>>0]=d[(e&n)>>0]&(f^255);ci(r,(c[(s&p)>>2]|0)+1|0,l);continue}e=m+(e>>>3)|0;a[(e&n)>>0]=d[(e&n)>>0]|f;if((g|0)==5)continue;if(bi(r,(c[(s&p)>>2]|0)+1|0)|0){g=-1;break a}}k=di(r,q+1|0)|0;e=di(r,0)|0;e=k-q+e+(c[(r&p)>>2]|0)|0;c[(s&p)>>2]=1;if((q|0)<1)g=e;else{f=1;while(1){k=(d[(m+(f>>3)&n)>>0]&1<<(f&7)|0)!=0&1;g=f;f=f+1|0;if((k|0)!=(di(r,g)|0))break a;c[(s&p)>>2]=f;if((g|0)>=(q|0)){g=e;break}}}}else g=-1;while(0);Wc(l);Wc(m);ei(r);break}case 6:{kw(9064,12672,259)|0;g=0;break}case 23:{g=(c[2243]|0)==0&1;break}case 25:{q=c[(h&p)>>2]|0;g=c[(q&p)>>2]|0;c[(h&p)>>2]=q+4;q=c[(h&p)>>2]|0;r=c[(q&p)>>2]|0;c[(h&p)>>2]=q+4;a[(g&n)+144>>0]=Vh(g,r)|0;r=c[(h&p)>>2]|0;q=c[(r&p)>>2]|0;c[(h&p)>>2]=r+4;q=q&255;a[(g&n)+147>>0]=q;r=g+145|0;a[(r&n)>>0]=q;q=c[(h&p)>>2]|0;s=c[(q&p)>>2]|0;c[(h&p)>>2]=q+4;c[(g&p)+140>>2]=s;if((a[(r&n)>>0]|0)==0&(s|0)>0){Eg(g);g=0}else g=0;break}case 14:{r=c[(h&p)>>2]|0;s=c[(r&p)>>2]|0;c[(h&p)>>2]=r+4;r=c[(h&p)>>2]|0;g=c[(r&p)>>2]|0;c[(h&p)>>2]=r+4;xg(c[((c[(s&p)+16>>2]|0)&p)+4>>2]|0,0,g,0)|0;g=0;break}case 15:{r=c[(h&p)>>2]|0;g=c[(r&p)>>2]|0;c[(h&p)>>2]=r+4;r=c[(h&p)>>2]|0;s=c[(r&p)>>2]|0;c[(h&p)>>2]=r+4;b[(g&o)+60>>1]=s;g=0;break}case 16:{s=c[(h&p)>>2]|0;e=c[(s&p)>>2]|0;c[(h&p)>>2]=s+4;if(!e)g=0;else{g=e;while(1)if(!(a[(g&n)>>0]|0))break;else g=g+1|0;g=g-e&1073741823}g=(fi(e,g)|0)!=27;g=g?124:0;break}case 24:{r=c[(h&p)>>2]|0;g=c[(r&p)>>2]|0;c[(h&p)>>2]=r+4;r=c[(h&p)>>2]|0;s=c[(r&p)>>2]|0;c[(h&p)>>2]=r+4;c[(g&p)+136>>2]=s;g=0;break}case 17:{s=c[(h&p)>>2]|0;f=c[(s&p)>>2]|0;c[(h&p)>>2]=s+4;s=c[(h&p)>>2]|0;g=c[(s&p)>>2]|0;c[(h&p)>>2]=s+4;s=c[(h&p)>>2]|0;e=c[(s&p)>>2]|0;c[(h&p)>>2]=s+4;if(f)c[(g&p)>>2]=gi(f)|0;hi(e);g=0;break}case 18:{s=c[(h&p)>>2]|0;g=c[(s&p)>>2]|0;c[(h&p)>>2]=s+4;c[2253]=g;g=0;break}case 20:{s=c[(h&p)>>2]|0;g=c[(s&p)>>2]|0;c[(h&p)>>2]=s+4;c[2192]=g;g=0;break}case 9:{s=c[(h&p)>>2]|0;g=c[(s&p)>>2]|0;c[(h&p)>>2]=s+4;c[2252]=g;if(!g)g=0;else g=lc[g&127](0)|0;break}case 10:{r=c[(h&p)>>2]|0;s=c[(r&p)>>2]|0;c[(h&p)>>2]=r+4;r=c[(h&p)>>2]|0;g=c[(r&p)>>2]|0;c[(h&p)>>2]=r+4;c[3164]=s;c[3166]=g;g=0;break}default:g=0}while(0);i=t;return g|0}function eg(b,c){b=b|0;c=c|0;var d=0,e=0,f=0,g=0;a:do if(!((b|0)==0|(c|0)==0)){d=b;while(1)if(!(a[(d&n)>>0]|0))break;else d=d+1|0;e=(d-b&1073741823)+1|0;d=a[(b+e&n)>>0]|0;if(d<<24>>24){g=b+e|0;while(1){f=_v(g,c)|0;e=g;while(1){b=e+1|0;if(!(d<<24>>24))break;d=a[(b&n)>>0]|0;e=b}b=e-g&1073741823;d=g+(b+1)|0;if(!f)break a;else e=d;while(1)if(!(a[(e&n)>>0]|0))break;else e=e+1|0;g=g+(b+2+(e-d&1073741823))|0;d=a[(g&n)>>0]|0;if(!(d<<24>>24)){d=0;break}}}else d=0}else d=0;while(0);return d|0}function fg(a,b,c){a=a|0;b=b|0;c=c|0;a=eg(a,b)|0;b=(c|0)!=0;if(a)b=(ii(a,1,b&1)|0)<<24>>24!=0;return b&1|0}function gg(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+16|0;if((i|0)>=(j|0))fa();f=g;a=eg(a,b)|0;if(!a){G=e;i=g;return d|0}else{b=(ji(a,f)|0)==0;a=f;G=b?c[(a&p)+4>>2]|0:e;i=g;return (b?c[(a&p)>>2]|0:d)|0}return 0}function hg(b,d){b=b|0;d=d|0;b=ai(b,d)|0;if(b){b=c[(c[(b&p)+4>>2]&p)>>2]|0;if(!(a[(b&n)+15>>0]|0))b=c[(b&p)+168>>2]|0;else b=10360}else b=0;return b|0}function ig(a,d){a=a|0;d=d|0;a=ai(a,d)|0;if(!a)a=-1;else a=b[((c[(a&p)+4>>2]|0)&o)+22>>1]&1;return a|0}function jg(a,b){a=a|0;b=b|0;if(b){Fk(a,c[(b&p)+28>>2]|0);mg(a,c[(b&p)>>2]|0);mg(a,c[(b&p)+4>>2]|0);Gk(a,c[(b&p)+12>>2]|0);Hk(a,c[(b&p)+16>>2]|0);mg(a,b)}return}function kg(a,d){a=a|0;d=d|0;var e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;do if(d){h=(a|0)!=0;if(!(h?(c[(a&p)+520>>2]|0)!=0:0))e=4;if((e|0)==4?(f=d+40|0,e=(b[(f&o)>>1]|0)+-1<<16>>16,b[(f&o)>>1]=e,e<<16>>16!=0):0)break;e=c[(d&p)+8>>2]|0;if(e){g=a+520|0;do{f=e;e=c[(e&p)+20>>2]|0;if(!(h?(c[(g&p)>>2]|0)!=0:0))Ik((c[(f&p)+24>>2]|0)+24|0,c[(f&p)>>2]|0,0)|0;Jk(a,f)}while((e|0)!=0)}e=c[(d&p)+16>>2]|0;if(e){j=(a|0)==0;k=d+68|0;l=a+520|0;do{if(!(!j?(c[(l&p)>>2]|0)!=0:0)){f=e+16|0;i=c[(f&p)>>2]|0;h=e+12|0;g=c[(h&p)>>2]|0;if(!i)Ik((c[(k&p)>>2]|0)+56|0,c[(((g|0)==0?e:g)&p)+8>>2]|0,g)|0;else c[(i&p)+12>>2]=g;h=c[(h&p)>>2]|0;if(h)c[(h&p)+16>>2]=c[(f&p)>>2]}Kk(a,c[(e&p)+28>>2]|0);Kk(a,c[(e&p)+32>>2]|0);f=e;e=c[(e&p)+4>>2]|0;mg(a,f)}while((e|0)!=0)}Lk(a,d);mg(a,c[(d&p)>>2]|0);mg(a,c[(d&p)+20>>2]|0);Mk(a,c[(d&p)+12>>2]|0,1);Nk(a,c[(d&p)+24>>2]|0);if(!((a|0)!=0?(c[(a&p)+520>>2]|0)!=0:0))Ok(0,d)|0;h=d+56|0;e=c[(h&p)>>2]|0;if(e){i=d+52|0;f=c[(i&p)>>2]|0;if((f|0)>0){g=0;do{if((g|0)!=1){mg(a,c[((c[(h&p)>>2]|0)+(g<<2)&p)>>2]|0);f=c[(i&p)>>2]|0}g=g+1|0}while((g|0)<(f|0));e=c[(h&p)>>2]|0}mg(a,e)}mg(a,d)}while(0);return}function lg(a,d){a=a|0;d=d|0;var f=0,g=0,h=0;ch(c[(d&p)+60>>2]|0,b[(d&o)+68>>1]|0);h=d+16|0;ch(c[(h&p)>>2]|0,e[(d&o)+84>>1]<<1);f=c[(d&p)+192>>2]|0;if(f)do{g=f;f=c[(f&p)+24>>2]|0;Pk(a,c[(g&p)>>2]|0,c[(g&p)+4>>2]|0);mg(a,g)}while((f|0)!=0);f=b[(d&o)+70>>1]|0;if(f<<16>>16>0){g=d+64|0;f=f<<16>>16;do{f=f+-1|0;mg(a,c[((c[(g&p)>>2]|0)+(f<<2)&p)>>2]|0)}while((f|0)>0)}Pk(a,c[(d&p)+4>>2]|0,c[(d&p)+32>>2]|0);mg(a,c[(h&p)>>2]|0);mg(a,c[(d&p)+168>>2]|0);mg(a,c[(d&p)+172>>2]|0);return}function mg(a,b){a=a|0;b=b|0;var d=0;do if(b){if(a){if(c[(a&p)+520>>2]|0){Qk(a,b);break}if((c[(a&p)+276>>2]|0)>>>0<=b>>>0?(c[(a&p)+280>>2]|0)>>>0>b>>>0:0){d=a+272|0;c[(b&p)>>2]=c[(d&p)>>2];c[(d&p)>>2]=b;a=a+252|0;c[(a&p)>>2]=(c[(a&p)>>2]|0)+-1;break}}Wc(b)}while(0);return}function ng(b,e){b=b|0;e=e|0;var f=0,g=0,h=0;h=c[(e&p)+24>>2]|0;if(!h)f=0;else{f=h;while(1)if(!(a[(f&n)>>0]|0))break;else f=f+1|0;f=f-h&1073741823}g=(((d[((d[(h&n)>>0]|0)&n)+9328>>0]|0)+f|0)>>>0)%23|0;f=Rk(b,g,h,f)|0;if(!f){c[(e&p)+8>>2]=0;f=b+(g<<2)|0;c[(e&p)+28>>2]=c[(f&p)>>2];c[(f&p)>>2]=e}else{f=f+8|0;c[(e&p)+8>>2]=c[(f&p)>>2];c[(f&p)>>2]=e}return}function og(a){a=a|0;var b=0,d=0;do if(a){b=c[2254]|0;if((b|0)==(a|0)){c[2254]=c[(a&p)+12>>2];break}if(b){do{d=b+12|0;b=c[(d&p)>>2]|0}while((b|0)!=(a|0)&(b|0)!=0);if((b|0)==(a|0))c[(d&p)>>2]=c[(a&p)+12>>2]}}while(0);return}function pg(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return}function qg(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;b=jw(a|0,b|0,-1,-1)|0;d=G;do if(!(d>>>0>0|(d|0)==0&b>>>0>2147483390)){if(!(c[2186]|0)){b=lc[c[8780>>2]&127](a)|0;break}d=lc[c[8796>>2]&127](a)|0;c[2171]=a;if((c[2181]|0)>>>0>>0)c[2181]=a;a=c[2260]|0;do if(a){b=c[2166]|0;e=9032|0;e=dw(c[(e&p)>>2]|0,c[(e&p)+4>>2]|0,d|0,((d|0)<0)<<31>>31|0)|0;f=G;if(0<(f|0)|0==(f|0)&b>>>0>>0){c[2265]=0;break}else{c[2265]=1;e=c[2261]|0;c[2260]=0;qc[a&15](e,b,0,d);c[2260]=a;c[2261]=e;break}}while(0);b=lc[c[8780>>2]&127](d)|0;if(b){a=lc[c[8792>>2]&127](b)|0;a=(c[2166]|0)+a|0;c[2166]=a;if(a>>>0>(c[2176]|0)>>>0)c[2176]=a;a=(c[2175]|0)+1|0;c[2175]=a;if(a>>>0>(c[2185]|0)>>>0)c[2185]=a}else b=0}else b=0;while(0);return b|0}function rg(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,i=0,j=0;do if(a){if((b|0)==0&(d|0)==0){Wc(a);e=0;break}if(!(d>>>0>0|(d|0)==0&b>>>0>2147483391)){h=lc[c[8792>>2]&127](a)|0;g=lc[c[8796>>2]&127](b)|0;if((g|0)!=(h|0)){if(!(c[2186]|0)){e=rc[c[8788>>2]&127](a,g)|0;break}c[2171]=b;if((c[2181]|0)>>>0>>0)c[2181]=b;d=g-h|0;e=c[2166]|0;i=9032|0;i=dw(c[(i&p)>>2]|0,c[(i&p)+4>>2]|0,d|0,((d|0)<0)<<31>>31|0)|0;j=G;if(!(0<(j|0)|0==(j|0)&e>>>0>>0)?(f=c[2260]|0,(f|0)!=0):0){i=c[2261]|0;c[2260]=0;qc[f&15](i,e,0,d);c[2260]=f;c[2261]=i}e=rc[c[8788>>2]&127](a,g)|0;d=c[2260]|0;if((e|0)==0&(d|0)!=0){f=c[2166]|0;e=c[2261]|0;c[2260]=0;qc[d&15](e,f,0,b);c[2260]=d;c[2261]=e;e=rc[c[8788>>2]&127](a,g)|0}if(e){d=(lc[c[8792>>2]&127](e)|0)-h|0;d=(c[2166]|0)+d|0;c[2166]=d;if(d>>>0>(c[2176]|0)>>>0)c[2176]=d}else e=0}else e=a}else e=0}else e=qg(b,d)|0;while(0);return e|0}function sg(b,e,f,g){b=b|0;e=e|0;f=f|0;g=g|0;var l=0,m=0,o=0,r=0,s=0,t=0.0,u=0.0,v=0,w=0.0,x=0.0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=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;$=i;i=i+96|0;if((i|0)>=(j|0))fa();Z=$+8|0;_=$;Y=$+16|0;if(!e){l=0;m=0;T=0}else{l=e&2;if(!l)m=0;else{J=c[(g&p)>>2]|0;m=c[(J&p)>>2]|0;c[(g&p)>>2]=J+4}l=l&255;T=(e&1|0)!=0}S=l<<24>>24==0;P=l<<24>>24!=0;Q=m+4|0;R=m+8|0;O=b+12|0;l=0;a:while(1){e=a[(f&n)>>0]|0;if(e<<24>>24==37){e=f;f=l}else if(e<<24>>24){e=f;do{e=e+1|0;J=a[(e&n)>>0]|0}while(!(J<<24>>24==37|J<<24>>24==0));Sk(b,f,e-f|0);if(!(a[(e&n)>>0]|0))break}else break;l=e+1|0;o=a[(l&n)>>0]|0;if(!(o<<24>>24)){U=10;break}r=o<<24>>24;v=0;s=0;y=0;o=0;A=0;B=0;b:while(1){switch(r|0){case 43:{z=s;A=1;break}case 32:{z=s;y=1;break}case 35:{v=1;z=s;break}case 33:{z=1;break}case 48:{z=s;B=1;break}case 45:{z=s;o=1;break}default:{C=v;z=s;break b}}s=e+2|0;J=a[(s&n)>>0]|0;r=J<<24>>24;if(!(J<<24>>24)){l=s;C=v;break}else{e=l;l=s;s=z}}if((r|0)!=42)if((r+-48|0)>>>0<10){s=0;do{s=r+-48+(s*10|0)|0;l=l+1|0;r=a[(l&n)>>0]|0}while((r+-48|0)>>>0<10);N=o;M=s&2147483647}else{N=o;M=0}else{if(S){J=c[(g&p)>>2]|0;s=c[(J&p)>>2]|0;c[(g&p)>>2]=J+4}else s=Tk(m)|0;if((s|0)<0){o=1;s=(s|0)==-2147483648?0:0-s|0}r=l+1|0;l=r;r=a[(r&n)>>0]|0;N=o;M=s}do if((r|0)==46){s=l+1|0;o=a[(s&n)>>0]|0;if(o<<24>>24!=42){r=o<<24>>24;if((o+-48&255)<10)o=0;else{l=s;F=0;break}while(1){o=r+-48+(o*10|0)|0;l=l+2|0;J=a[(l&n)>>0]|0;r=J<<24>>24;if((J+-48&255)<10){J=s;s=l;l=J}else break}F=o&2147483647;break}if(S){J=c[(g&p)>>2]|0;s=c[(J&p)>>2]|0;c[(g&p)>>2]=J+4}else s=Tk(m)|0;l=l+2|0;r=a[(l&n)>>0]|0;if((s|0)<0)F=(s|0)==-2147483648?-1:0-s|0;else F=s}else F=-1;while(0);do if((r|0)==108){s=l+1|0;r=a[(s&n)>>0]|0;if(r<<24>>24==108){r=l+2|0;l=r;r=a[(r&n)>>0]|0;s=1;break}else{l=s;r=r<<24>>24;s=0;break}}else s=0;while(0);v=0;while(1){o=48752+(v*6|0)|0;if((r|0)==(a[(o&n)>>0]|0)){r=o;o=v;U=46;break}v=v+1|0;if((v|0)>=23){L=48752;J=0;break}}if((U|0)==46){U=0;if(!(T|o>>>0<20))break;L=r;J=a[((o*6|0)&n)+48755>>0]|0}c:do switch(J&255|0){case 13:{s=c[(g&p)>>2]|0;e=c[(s&p)>>2]|0;c[(g&p)>>2]=s+4;s=c[(g&p)>>2]|0;r=c[(s&p)>>2]|0;c[(g&p)>>2]=s+4;s=c[(e+(r*72|0)&p)+12>>2]|0;if(s){o=s;while(1)if(!(a[(o&n)>>0]|0))break;else o=o+1|0;Sk(b,s,o-s&1073741823);Sk(b,28928,1)}o=c[(e+(r*72|0)&p)+16>>2]|0;if(!o)e=0;else{e=o;while(1)if(!(a[(e&n)>>0]|0))break;else e=e+1|0;e=e-o&1073741823}Sk(b,o,e);y=f;r=0;e=0;s=0;break}case 14:{s=0;U=50;break}case 1:case 16:{U=50;break}case 4:case 3:case 2:{do if(!S){s=c[(Q&p)>>2]|0;if((c[(m&p)>>2]|0)>(s|0)){c[(Q&p)>>2]=s+1;t=+Ug(c[((c[(R&p)>>2]|0)+(s<<2)&p)>>2]|0);U=92;break}else{s=(F|0)<0?6:F;t=0.0;U=94;break}}else{U=c[(g&p)>>2]|0;c[(k&p)>>2]=c[(U&p)>>2];c[(k&p)+4>>2]=c[(U&p)+4>>2];t=+h[(k&q)>>3];c[(g&p)>>2]=U+8;U=92}while(0);if((U|0)==92){U=0;s=(F|0)<0?6:F;if(t<0.0){t=-t;K=45}else U=94}if((U|0)==94){U=0;if(!(A<<24>>24))K=y<<24>>24==0?0:32;else K=43}F=J<<24>>24==4;o=((F&(s|0)>0)<<31>>31)+s|0;s=o&4095;if(!s)u=.5;else{u=.5;do{s=s+-1|0;u=u*.1}while((s|0)>0)}E=J<<24>>24==2;if(E)t=t+u;h[(Z&q)>>3]=t;h[(_&q)>>3]=+h[(Z&q)>>3];if(+h[(Z&q)>>3]!=+h[(_&q)>>3]){y=48960;r=3;e=M;s=0}else{if(t>0.0){v=0;w=1.0;while(1){x=w*1.e+100;if(t>=x&(v|0)<351){v=v+100|0;w=x}else break}while(1){x=w*1.e+64;if(t>=x&(v|0)<351){v=v+64|0;w=x}else break}while(1){x=w*1.0e8;if(t>=x&(v|0)<351){v=v+8|0;w=x}else break}while(1){x=w*10.0;if((v|0)<351&t>=x){v=v+1|0;w=x}else break}t=t/w;if(t<1.0e-08)do{t=t*1.0e8;v=v+-8|0}while(t<1.0e-08);if(t<1.0)do{t=t*10.0;v=v+-1|0}while(t<1.0);if((v|0)>350){if(K<<24>>24==43)o=48976;else if(K<<24>>24==45)o=48968;else o=48984;f=o;while(1)if(!(a[(f&n)>>0]|0))break;else f=f+1|0;y=o;r=f-o&1073741823;e=M;s=0;break c}}else v=0;if(!E){t=u+t;if(!(t>=10.0))I=v;else{t=t*.1;I=v+1|0}}else I=v;if(F){s=(I|0)<-4|(o|0)<(I|0);F=C<<24>>24==0&1;o=o-(s?0:I)|0;s=s?3:2}else{F=z;s=J}H=s<<24>>24==3;f=H?0:I;v=(f|0)>0;s=jw(o|0,((o|0)<0)<<31>>31|0,M|0,((M|0)<0)<<31>>31|0)|0;v=jw(s|0,G|0,(v?f:0)|0,(v?((f|0)<0)<<31>>31:0)|0)|0;s=G;if((s|0)>0|(s|0)==0&v>>>0>55){v=jw(v|0,s|0,15,0)|0;v=qg(v,G)|0;if(!v){U=124;break a}else{y=v;J=v}}else{y=Y;J=0}v=((z&255)*10|0)+16|0;D=(z|C)&255|(o|0)>0;if(!(K<<24>>24))E=y;else{a[(y&n)>>0]=K;E=y+1|0}if((f|0)<0){a[(E&n)>>0]=48;e=2;s=E+1|0;A=f}else{C=~f;C=(C|0)>-1?C:-1;A=-2-C|0;C=f+C|0;r=E;while(1){if((v|0)<1)e=48;else{s=~~t;e=s+48&255;t=(t-+(s|0))*10.0;v=v+-1|0}a[(r&n)>>0]=e;if((f|0)>0){r=r+1|0;f=f+-1|0}else break}e=C+3|0;s=E+(C+2)|0}r=(D|0)==0;if(!r){a[(s&n)>>0]=46;s=E+e|0}if((A+1|0)<0){fw(s|0,48,~A|0)|0;s=s+~A|0;o=o+1+A|0}if((o|0)>0){e=s;f=o;while(1){f=f+-1|0;if((v|0)<1)A=48;else{E=~~t;A=E+48&255;t=(t-+(E|0))*10.0;v=v+-1|0}a[(e&n)>>0]=A;if((f|0)<=0)break;else e=e+1|0}s=s+o|0}d:do if(!(F<<24>>24==0|r)){while(1){r=s+-1|0;o=a[(r&n)>>0]|0;if(o<<24>>24==46)break;else if(o<<24>>24!=48)break d;a[(r&n)>>0]=0;s=r}if(!(z<<24>>24)){a[(r&n)>>0]=0;s=r;break}else{a[(s&n)>>0]=48;s=s+1|0;break}}while(0);if(H){r=s+1|0;a[(s&n)>>0]=a[((d[(L&n)+4>>0]|0)&n)+48912>>0]|0;o=s+2|0;if((I|0)<0){a[(r&n)>>0]=45;r=0-I|0}else{a[(r&n)>>0]=43;r=I}if((r|0)>99){a[(o&n)>>0]=((r|0)/100|0)+48;f=4;e=5;o=s+3|0;r=(r|0)%100|0}else{f=3;e=4}a[(o&n)>>0]=((r|0)/10|0)+48;a[(s+f&n)>>0]=((r|0)%10|0)+48;s=s+e|0}a[(s&n)>>0]=0;e=y;r=s-e|0;if(!(N<<24>>24==0&B<<24>>24!=0&(M|0)>(r|0))){e=M;s=J;break c}o=M-r|0;if((r|0)>=0){f=M;while(1){a[(y+f&n)>>0]=a[(y+(f-o)&n)>>0]|0;if((f|0)>(o|0))f=f+-1|0;else break}}if((M|0)==(r|0)){r=M;e=M;s=J;break c}fw(y+(K<<24>>24!=0&1)|0,48,M+e-s|0)|0;r=M;e=M;s=J}break}case 5:{if(S){r=c[(O&p)>>2]|0;e=c[(g&p)>>2]|0;y=c[(e&p)>>2]|0;c[(g&p)>>2]=e+4;c[(y&p)>>2]=r;y=f;r=0;e=0;s=0}else{y=f;r=0;e=0;s=0}break}case 8:{a[(Y&n)>>0]=37;y=Y;r=1;e=M;s=0;break}case 9:{if(!S){e=Uk(m)|0;if(!e)s=0;else s=a[(e&n)>>0]|0}else{J=c[(g&p)>>2]|0;s=c[(J&p)>>2]|0;c[(g&p)>>2]=J+4}if((F|0)>1){o=F+-1|0;e=M-o|0;if(!((e|0)<2|N<<24>>24!=0)){Vk(b,e+-1|0,32);e=0}f=s&255;Vk(b,o,f)}else{f=s&255;e=M}a[(Y&n)>>0]=f;y=Y;r=1;s=0;break}case 7:case 6:{if(P)o=Uk(m)|0;else{I=c[(g&p)>>2]|0;o=c[(I&p)>>2]|0;c[(g&p)>>2]=I+4}if(!o){f=10360;s=0}else{f=o;s=J<<24>>24!=7|P?0:o}if((F|0)>-1){if((F|0)>0)o=0;else{y=f;r=0;e=M;break c}while(1){r=o+1|0;if(!(a[(f+o&n)>>0]|0)){y=f;r=o;e=M;break c}if((r|0)<(F|0))o=r;else{y=f;e=M;break}}}else{if(!f){y=0;r=0;e=M;break c}else o=f;while(1)if(!(a[(o&n)>>0]|0))break;else o=o+1|0;y=f;r=o-f&1073741823;e=M;break c}break}case 15:case 11:case 10:{C=J<<24>>24==15?34:39;if(S){I=c[(g&p)>>2]|0;s=c[(I&p)>>2]|0;c[(g&p)>>2]=I+4}else s=Uk(m)|0;y=(s|0)==0;if(y)s=J<<24>>24==11?20304:48992;e:do if(!F){B=0;r=0}else{v=C&255;o=0;e=F;r=0;while(1){f=a[(s+o&n)>>0]|0;if(!(f<<24>>24)){B=o;break e}r=((f<<24>>24|0)==(v|0)&1)+r|0;o=o+1|0;e=e+-1|0;if(!e){B=o;break}}}while(0);z=J<<24>>24==11&(y^1);o=((z&1)<<1|1)+B+r|0;if((o|0)>70){r=qg(o,((o|0)<0)<<31>>31)|0;if(!r){U=197;break a}else{y=r;A=r}}else{y=Y;A=0}if(z){a[(y&n)>>0]=C;o=1}else o=0;if((B|0)>0){v=C&255;e=0;do{r=a[(s+e&n)>>0]|0;f=o+1|0;a[(y+o&n)>>0]=r;if((r<<24>>24|0)==(v|0)){a[(y+f&n)>>0]=r;o=o+2|0}else o=f;e=e+1|0}while((e|0)!=(B|0))}if(z){a[(y+o&n)>>0]=C;o=o+1|0}a[(y+o&n)>>0]=0;r=o;e=M;s=A;break}case 12:{J=c[(g&p)>>2]|0;e=c[(J&p)>>2]|0;c[(g&p)>>2]=J+4;if((e|0)!=0?(X=c[(e&p)+4>>2]|0,(X|0)!=0):0){Sk(b,c[(e&p)>>2]|0,X);y=f;r=0;e=0;s=0}else{y=f;r=0;e=0;s=0}break}default:break a}while(0);if((U|0)==50){U=0;do if(!(a[(L&n)+2>>0]&1)){if(P){f=Tk(m)|0;v=G;E=0;break}if(!(s<<24>>24)){v=c[(g&p)>>2]|0;f=c[(v&p)>>2]|0;c[(g&p)>>2]=v+4;v=0;E=0;break}else{E=c[(g&p)>>2]|0;v=E;f=c[(v&p)>>2]|0;v=c[(v&p)+4>>2]|0;c[(g&p)>>2]=E+8;E=0;break}}else{do if(!P)if(!(s<<24>>24)){r=c[(g&p)>>2]|0;s=c[(r&p)>>2]|0;c[(g&p)>>2]=r+4;r=((s|0)<0)<<31>>31;break}else{I=c[(g&p)>>2]|0;r=I;s=c[(r&p)>>2]|0;r=c[(r&p)+4>>2]|0;c[(g&p)>>2]=I+8;break}else{s=Tk(m)|0;r=G}while(0);if((r|0)<0){f=dw(0,0,s|0,r|0)|0;v=G;E=45;break}if(!(A<<24>>24)){f=s;v=r;E=y<<24>>24==0?0:32}else{f=s;v=r;E=43}}while(0);D=(f|0)==0&(v|0)==0;if(!(B<<24>>24))A=F;else{A=M-(E<<24>>24!=0&1)|0;A=(F|0)<(A|0)?A:F}if((A|0)>=60){s=A+10|0;r=qg(s,((s|0)<0)<<31>>31)|0;if(!r){U=69;break}else{e=s;s=r;o=r}}else{e=70;s=0;o=Y}B=o+(e+-1)|0;if(J<<24>>24==16){r=uw(f|0,v|0,10,0)|0;if(!(r>>>0<=3?(J=tw(f|0,v|0,10,0)|0,J=uw(J|0,G|0,10,0)|0,!((J|0)==1&(G|0)==0)):0))r=0;J=r<<1;a[(o+e+-2&n)>>0]=a[((J|1)&n)+48896>>0]|0;r=o+(e+-3)|0;a[(r&n)>>0]=a[(J&n)+48896>>0]|0}else r=B;e=d[(L&n)+4>>0]|0;y=d[(L&n)+1>>0]|0;while(1){J=uw(f|0,v|0,y|0,0)|0;o=r+-1|0;a[(o&n)>>0]=a[(J+e&n)+48912>>0]|0;f=tw(f|0,v|0,y|0,0)|0;v=G;if((f|0)==0&(v|0)==0)break;else r=o}f=A-B+o|0;if((f|0)>0){e=r;r=o;while(1){o=e+-2|0;a[(o&n)>>0]=48;f=f+-1|0;if((f|0)<=0)break;else{e=r;r=o}}}if(E<<24>>24){o=r+-2|0;a[(o&n)>>0]=E}if((!(D|C<<24>>24==0)?(V=a[(L&n)+5>>0]|0,V<<24>>24!=0):0)?(W=48952+(V&255)|0,!(V<<24>>24==3|V<<24>>24==6)):0){f=a[(W&n)>>0]|0;r=W;do{o=o+-1|0;a[(o&n)>>0]=f;r=r+1|0;f=a[(r&n)>>0]|0}while(f<<24>>24!=0)}y=o;r=B-o|0;e=M}o=e-r|0;f=(o|0)<1;if(!(f|N<<24>>24!=0))Vk(b,o,32);Sk(b,y,r);if(!(f|N<<24>>24==0))Vk(b,o,32);if(s)Wc(s);f=l+1|0;l=y}if((U|0)==10)Sk(b,48744,1);else if((U|0)==69){a[(b&n)+25>>0]=1;c[(b&p)+16>>2]=0}else if((U|0)==124){a[(b&n)+25>>0]=1;c[(b&p)+16>>2]=0}else if((U|0)==197){a[(b&n)+25>>0]=1;c[(b&p)+16>>2]=0}i=$;return}function tg(b){b=b|0;var d=0,e=0,f=0,g=0,h=0;f=b+8|0;d=c[(f&p)>>2]|0;do if(((d|0)!=0?(h=b+12|0,a[(d+(c[(h&p)>>2]|0)&n)>>0]=0,e=a[(b&n)+24>>0]|0,e<<24>>24!=0):0)?(g=b+4|0,(c[(f&p)>>2]|0)==(c[(g&p)>>2]|0)):0){if(e<<24>>24==1){d=(c[(h&p)>>2]|0)+1|0;d=mh(c[(b&p)>>2]|0,d,((d|0)<0)<<31>>31)|0}else d=Tc((c[(h&p)>>2]|0)+1|0)|0;c[(f&p)>>2]=d;if(!d){a[(b&n)+25>>0]=1;c[(b&p)+16>>2]=0;break}else{kw(d|0,c[(g&p)>>2]|0,(c[(h&p)>>2]|0)+1|0)|0;break}}while(0);return c[(f&p)>>2]|0}function ug(d,e,f,g){d=d|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,q=0;q=i;i=i+16|0;if((i|0)>=(j|0))fa();m=q;h=d+52|0;c[(h&p)>>2]=e;a:do if(!f){c[(h&p)>>2]=e;e=c[(d&p)+236>>2]|0;if(e){h=e+8|0;if(!(b[(h&o)>>1]&9312)){b[(h&o)>>1]=1;break}else{vg(e);break}}}else{l=d+236|0;do if(!(c[(l&p)>>2]|0)){h=mh(d,40,0)|0;if(!h){c[(l&p)>>2]=h;break a}else{e=h+0|0;k=e+40|0;do{a[(e&n)>>0]=0;e=e+1|0}while((e|0)<(k|0));b[(h&o)+8>>1]=1;c[(h&p)+32>>2]=d;c[(l&p)>>2]=h;break}}while(0);c[(m&p)>>2]=g;h=Wk(d,f,m)|0;e=c[(l&p)>>2]|0;if(e)Xg(e,h,-1,1,75)|0}while(0);i=q;return}function vg(a){a=a|0;var d=0,e=0;e=a+8|0;d=b[(e&o)>>1]|0;if(d&8192){Yk(a,c[(a&p)>>2]|0)|0;d=b[(e&o)>>1]|0}d=d&65535;do if(!(d&1024)){if(d&32){Zk(c[(a&p)>>2]|0);break}if(d&64){a=c[(a&p)>>2]|0;d=(c[(a&p)>>2]|0)+180|0;c[(a&p)+4>>2]=c[(d&p)>>2];c[(d&p)>>2]=a}}else cc[c[(a&p)+36>>2]&31](c[(a&p)+16>>2]|0);while(0);b[(e&o)>>1]=1;return}function wg(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0;k=i;i=i+16|0;if((i|0)>=(j|0))fa();g=k;e=Vh(b,d)|0;do if((e|0)==1){f=mh(a,536,0)|0;if(!f){ug(a,7,15776,g);e=0;break}fw(f|0,0,536)|0;c[(f&p)>>2]=b;if(!(_k(f)|0)){mg(a,c[(f&p)+4>>2]|0);Ch(f);mg(a,f);h=7;break}else{b=c[(f&p)+12>>2]|0;e=f+4|0;c[(g&p)>>2]=c[(e&p)>>2];ug(a,b,10344,g);mg(a,c[(e&p)>>2]|0);Ch(f);mg(a,f);e=0;break}}else h=7;while(0);do if((h|0)==7)if((e|0)<0){c[(g&p)>>2]=d;ug(a,1,47448,g);e=0;break}else{e=c[((c[(b&p)+16>>2]|0)+(e<<4)&p)+4>>2]|0;break}while(0);i=k;return e|0}function xg(a,d,f,g){a=a|0;d=d|0;f=f|0;g=g|0;var h=0,i=0,j=0,k=0;k=c[(a&p)+4>>2]|0;c[(k&p)+4>>2]=c[(a&p)>>2];j=k+22|0;if(!(b[(j&o)>>1]&2)){if((f|0)<0)f=(c[(k&p)+32>>2]|0)-(c[(k&p)+36>>2]|0)|0;if(((d+-512|0)>>>0<65025?(d+-1&d|0)==0:0)?(c[(k&p)+32>>2]=d,h=k+80|0,i=c[(h&p)>>2]|0,(i|0)!=0):0){a=i+-4|0;c[(h&p)>>2]=a;$k(a);c[(h&p)>>2]=0}h=k+32|0;a=al(c[(k&p)>>2]|0,h,f)|0;c[(k&p)+36>>2]=(c[(h&p)>>2]|0)-(f&65535);if(g)b[(j&o)>>1]=e[(j&o)>>1]|0|2}else a=8;return a|0}function yg(f,g){f=f|0;g=g|0;var h=0,k=0,l=0,m=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;T=i;i=i+16|0;if((i|0)>=(j|0))fa();N=T;M=T+12|0;L=T+8|0;R=c[(f&p)+4>>2]|0;I=R+4|0;c[(I&p)>>2]=c[(f&p)>>2];O=f+8|0;l=a[(O&n)>>0]|0;do if(l<<24>>24!=2?(P=(g|0)!=0,l<<24>>24!=1|P):0){Q=R+22|0;l=b[(Q&o)>>1]|0;if(!((l&1)!=0&P)){if(P)if((a[(R&n)+20>>0]|0)!=2&(l&64)==0)S=8;else S=7;else if(!(l&64))S=8;else S=7;a:do if((S|0)==7){h=c[(R&p)+76>>2]|0;S=12}else if(((S|0)==8?(g|0)>1:0)?(k=c[(R&p)+72>>2]|0,(k|0)!=0):0)do{l=c[(k&p)>>2]|0;if((l|0)!=(f|0)){h=l;S=12;break a}k=c[(k&p)+12>>2]|0}while((k|0)!=0);while(0);if((S|0)==12?(c[(h&p)>>2]|0)!=0:0){h=262;break}h=bl(f,1,1)|0;if(!h){l=e[(Q&o)>>1]|0;b[(Q&o)>>1]=l&65527;K=R+44|0;if(!(c[(K&p)>>2]|0))b[(Q&o)>>1]=l|8;E=R+12|0;u=R+32|0;v=R+36|0;w=R+17|0;x=R+18|0;y=R+80|0;z=R+24|0;A=R+26|0;B=R+28|0;C=R+30|0;D=R+21|0;F=R+20|0;G=(g|0)>1;h=0;b:while(1){c:do if(!(c[(E&p)>>2]|0)){h=cl(c[(R&p)>>2]|0)|0;if(!h){h=dl(R,1,M,0)|0;if(!h){t=c[(M&p)>>2]|0;q=c[(t&p)+56>>2]|0;l=d[(q&n)+29>>0]<<16|d[(q&n)+28>>0]<<24|d[(q&n)+30>>0]<<8|d[(q&n)+31>>0];m=c[(R&p)>>2]|0;r=c[(m&p)+24>>2]|0;if((l|0)!=0?(Zv(q+24|0,q+92|0,4)|0)==0:0)s=l;else s=r;d:do if((s|0)>0){e:do if(!(Zv(q,44680,16)|0)){if((d[(q&n)+18>>0]|0)>2)b[(Q&o)>>1]=e[(Q&o)>>1]|1;l=a[(q&n)+19>>0]|0;if((l&255)<=2){do if(l<<24>>24==2){if(b[(Q&o)>>1]&16)break;c[(L&p)>>2]=0;h=el(m,L)|0;if(h){S=48;break e}if(c[(L&p)>>2]|0)break;if(!t){h=0;continue b}Bg(c[(t&p)+68>>2]|0);h=0;continue b}while(0);if(Zv(q+21|0,47408,3)|0){h=26;S=48;break}k=d[(q&n)+17>>0]<<16|d[(q&n)+16>>0]<<8;if((k+16777215&k|0)!=0|k>>>0>65536|k>>>0<257){h=26;S=48;break}m=d[(q&n)+20>>0]|0;l=k-m|0;if((k|0)==(c[(u&p)>>2]|0)){if((s|0)>(r|0)?(c[((c[(I&p)>>2]|0)&p)+24>>2]&65536|0)==0:0){c[(N&p)>>2]=55672;c[(N&p)+4>>2]=10788;bd(11,13600,N);h=11;S=48;break}if(l>>>0<480){h=26;S=48;break}c[(u&p)>>2]=k;c[(v&p)>>2]=l;a[(w&n)>>0]=(d[(q&n)+53>>0]<<16|d[(q&n)+52>>0]<<24|d[(q&n)+54>>0]<<8|d[(q&n)+55>>0]|0)!=0&1;a[(x&n)>>0]=(d[(q&n)+65>>0]<<16|d[(q&n)+64>>0]<<24|d[(q&n)+66>>0]<<8|d[(q&n)+67>>0]|0)!=0&1;break d}if(t)Bg(c[(t&p)+68>>2]|0);c[(v&p)>>2]=l;c[(u&p)>>2]=k;l=c[(y&p)>>2]|0;if(l){h=l+-4|0;c[(y&p)>>2]=h;$k(h);c[(y&p)>>2]=0}h=al(c[(R&p)>>2]|0,u,m)|0}else{h=26;S=48}}else{h=26;S=48}while(0);if((S|0)==48){S=0;if(t)Bg(c[(t&p)+68>>2]|0);c[(E&p)>>2]=0}if(!h){h=0;continue b}else{S=77;break c}}else l=c[(v&p)>>2]|0;while(0);h=((((l<<6)+-768|0)>>>0)/255|0)+65513|0;k=h&65535;b[(z&o)>>1]=k;m=((((l<<5)+-384|0)>>>0)/255|0)+65513&65535;b[(A&o)>>1]=m;b[(B&o)>>1]=l+65501;b[(C&o)>>1]=m;a[(D&n)>>0]=(k&65535)>127?127:h&255;c[(E&p)>>2]=t;c[(K&p)>>2]=s;h=0;continue b}else l=0}else l=0}else{f:do if((h|0)==0&P){if(b[(Q&o)>>1]&1){h=8;S=77;break c}s=c[(R&p)>>2]|0;h=c[(s&p)+40>>2]|0;g:do if(!h){a[(s&n)+21>>0]=(a[((c[(f&p)>>2]|0)&n)+64>>0]|0)==2&1;t=s+16|0;if((a[(t&n)>>0]|0)==1){m=s+208|0;l=c[(m&p)>>2]|0;do if(!l){h=fl(s,2)|0;h:do if((h|0)==0&G){l=s+176|0;k=s+180|0;while(1){h=fl(s,4)|0;if((h|0)!=5)break h;if(!(lc[c[(l&p)>>2]&127](c[(k&p)>>2]|0)|0)){h=5;break g}}}while(0);if(h)break g}else{do if(a[(s&n)+4>>0]|0){if(a[(l&n)+43>>0]|0)break;h=fl(s,4)|0;if(h)break g;l=c[(m&p)>>2]|0;k=l+43|0;if(!(a[(k&n)>>0]|0)){h=c[(l&p)+4>>2]|0;pc[c[((c[(h&p)>>2]|0)&p)+56>>2]&31](h,(b[(l&o)+40>>1]|0)+3|0,1,5)|0;l=c[(m&p)>>2]|0}a[(k&n)>>0]=1}while(0);if(a[(l&n)+46>>0]|0){h=8;break g}k=l+43|0;if((a[(k&n)>>0]|0)==0?(H=c[(l&p)+4>>2]|0,H=pc[c[((c[(H&p)>>2]|0)&p)+56>>2]&31](H,0,1,10)|0,(H|0)!=0):0){h=H;break g}h=l+44|0;a[(h&n)>>0]=1;if(!(Zv(l+52|0,c[(c[(l&p)+32>>2]&p)>>2]|0,48)|0))break;if(!(a[(k&n)>>0]|0)){k=c[(l&p)+4>>2]|0;pc[c[((c[(k&p)>>2]|0)&p)+56>>2]&31](k,0,1,9)|0}a[(h&n)>>0]=0;h=517;break g}while(0);a[(t&n)>>0]=2;h=c[(s&p)+24>>2]|0;c[(s&p)+36>>2]=h;c[(s&p)+32>>2]=h;c[(s&p)+28>>2]=h;h=s+72|0;c[(h&p)>>2]=0;c[(h&p)+4>>2]=0}h=Cg(R)|0;break f}while(0);l=(h|0)==0;break c}while(0);if(!h){h=0;break b}else l=0}while(0);if((S|0)==77){S=0;l=(h|0)==0}if((a[(F&n)>>0]|0)==0?(J=c[(E&p)>>2]|0,(J|0)!=0):0){c[(E&p)>>2]=0;Bg(c[(J&p)+68>>2]|0)}if((h&255|0)!=5){S=86;break}if(a[(F&n)>>0]|0){S=86;break}if(!(gl(R)|0)){S=86;break}}if((S|0)==86)if(!l){S=96;break}if((a[(O&n)>>0]|0)==0?(H=R+40|0,c[(H&p)>>2]=(c[(H&p)>>2]|0)+1,(a[(f&n)+9>>0]|0)!=0):0){a[(f&n)+40>>0]=1;H=R+72|0;c[(f&p)+44>>2]=c[(H&p)>>2];c[(H&p)>>2]=f+32}l=P?2:1;a[(O&n)>>0]=l;if((l&255)>(d[(F&n)>>0]|0))a[(F&n)>>0]=l;if(P){l=c[(E&p)>>2]|0;c[(R&p)+76>>2]=f;k=e[(Q&o)>>1]|0;b[(Q&o)>>1]=G?k|32:k&65503;k=l+56|0;H=c[(k&p)>>2]|0;if((c[(K&p)>>2]|0)!=(d[(H&n)+29>>0]<<16|d[(H&n)+28>>0]<<24|d[(H&n)+30>>0]<<8|d[(H&n)+31>>0]|0)){h=Gg(c[(l&p)+68>>2]|0)|0;if(!h){h=c[(k&p)>>2]|0;S=c[(K&p)>>2]|0;a[(h&n)+28>>0]=S>>>24;a[(h&n)+29>>0]=S>>>16;a[(h&n)+30>>0]=S>>>8;a[(h&n)+31>>0]=S;h=0;S=96}}else S=96}}}else h=8}else{h=0;S=96}while(0);if((S|0)==96)if((h|0)==0&(g|0)!=0)h=hl(c[(R&p)>>2]|0,c[((c[(f&p)>>2]|0)&p)+496>>2]|0)|0;i=T;return h|0}function zg(e,f,g,h){e=e|0;f=f|0;g=g|0;h=h|0;var k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0;y=i;i=i+16|0;if((i|0)>=(j|0))fa();u=y;w=y+8|0;c[(w&p)>>2]=0;t=h&1;a:do if(!f){c[(u&p)>>2]=46865;c[(u&p)+4>>2]=10788;bd(11,13600,u);k=11}else{a[(e&n)+23>>0]=1;h=c[(e&p)+40>>2]|0;do if(!h){s=e+204|0;h=c[(s&p)>>2]|0;h=ac[c[8876>>2]&63](c[(h&p)+40>>2]|0,f,d[(h&n)+29>>0]&3)|0;if(!h){m=c[(s&p)>>2]|0;if((a[(m&n)+29>>0]|0)!=2){l=m+8|0;h=c[(l&p)>>2]|0;b:do if(!h)x=11;else{while(1){if((b[(h&o)+26>>1]|0)==0?(b[(h&o)+24>>1]&4)==0:0)break;h=c[(h&p)+36>>2]|0;if(!h){x=11;break b}}c[(l&p)>>2]=h;r=h;x=14}while(0);c:do if((x|0)==11?(c[(l&p)>>2]=0,q=c[(m&p)+4>>2]|0,(q|0)!=0):0){h=q;do{if(!(b[(h&o)+26>>1]|0)){r=h;x=14;break c}h=c[(h&p)+36>>2]|0}while((h|0)!=0)}while(0);if((x|0)==14?(k=rc[c[(m&p)+32>>2]&127](c[(m&p)+36>>2]|0,r)|0,!((k|0)==0|(k|0)==5)):0)break;k=ac[c[8876>>2]&63](c[(m&p)+40>>2]|0,f,2)|0;if(!k){k=7;break}}else k=0}else k=h;m=il(c[(s&p)>>2]|0,f,k)|0;c[(g&p)>>2]=m;if(!m)k=7;else{h=m+16|0;k=(t|0)!=0;if(!((c[(h&p)>>2]|0)==0|k)){k=e+184|0;c[(k&p)>>2]=(c[(k&p)>>2]|0)+1;k=0;break a}c[(h&p)>>2]=e;do if((f|0)>=0?(v=e+152|0,(((c[2514]|0)/(c[(v&p)>>2]|0)|0)+1|0)!=(f|0)):0){if(((a[(e&n)+15>>0]|0)==0?!((c[(e&p)+24>>2]|0)>>>0>>0|k):0)?(c[(c[(e&p)+60>>2]&p)>>2]|0)!=0:0){k=c[(e&p)+208>>2]|0;if(!k)k=0;else{k=kl(k,f,w)|0;if(k)break;k=c[(w&p)>>2]|0}v=e+188|0;c[(v&p)>>2]=(c[(v&p)>>2]|0)+1;k=ll(m,k)|0;if(!k){k=0;break a}else break}if((c[(e&p)+156>>2]|0)>>>0>>0)k=13;else{if(k){k=c[3164]|0;if(k)nc[k&3]();if((c[(e&p)+28>>2]|0)>>>0>=f>>>0)bi(c[(e&p)+56>>2]|0,f)|0;jl(e,f)|0;k=c[3166]|0;if(k)nc[k&3]()}fw(c[(m&p)+4>>2]|0,0,c[(v&p)>>2]|0)|0;k=0;break a}}else x=21;while(0);if((x|0)==21){c[(u&p)>>2]=46945;c[(u&p)+4>>2]=10788;bd(11,13600,u);k=11}ml(m)}}else k=h;while(0);if((c[(e&p)+120>>2]|0)==0?(c[((c[(e&p)+204>>2]|0)&p)+12>>2]|0)==0:0)nl(e);c[(g&p)>>2]=0}while(0);i=y;return k|0}function Ag(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,o=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0;y=i;i=i+16|0;if((i|0)>=(j|0))fa();x=y;v=b+4|0;r=c[((c[(v&p)>>2]|0)&p)+4>>2]|0;w=c[(r&p)>>2]|0;u=b+24|0;q=c[((c[((c[(u&p)>>2]|0)&p)+4>>2]|0)&p)+32>>2]|0;r=c[(r&p)+32>>2]|0;s=(q|0)<(r|0)?q:r;t=((q|0)<0)<<31>>31;m=sw(q|0,t|0,d|0,0)|0;o=G;if((q|0)==(r|0))b=0;else b=(a[(w&n)+15>>0]|0)==0?0:8;a:do if((b|0)==0&(q|0)>0){d=dw(m|0,o|0,q|0,t|0)|0;l=((r|0)<0)<<31>>31;k=(f|0)==0;h=G;b=r;while(1){c[(x&p)>>2]=0;f=qw(d|0,h|0,r|0,l|0)|0;if((f|0)!=(((c[2514]|0)>>>0)/(b>>>0)|0|0)){b=zg(w,f+1|0,x,0)|0;g=c[(x&p)>>2]|0;if(!b){b=Gg(g)|0;if(!b){z=rw(d|0,h|0,q|0,t|0)|0;f=c[(g&p)+4>>2]|0;b=rw(d|0,h|0,r|0,l|0)|0;kw(f+b|0,e+z|0,s|0)|0;a[(c[(g&p)+8>>2]&n)>>0]=0;if((d|0)==0&(h|0)==0&k){z=c[((c[((c[(u&p)>>2]|0)&p)+4>>2]|0)&p)+44>>2]|0;a[(f+b&n)+28>>0]=z>>>24;a[(f+b&n)+29>>0]=z>>>16;a[(f+b&n)+30>>0]=z>>>8;a[(f+b&n)+31>>0]=z;b=0}else b=0}}if(g)Bg(g)}else b=0;d=jw(d|0,h|0,r|0,l|0)|0;f=G;if(!((b|0)==0&((f|0)<(o|0)|(f|0)==(o|0)&d>>>0>>0)))break a;h=f;b=c[((c[((c[(v&p)>>2]|0)&p)+4>>2]|0)&p)+32>>2]|0}}while(0);i=y;return b|0}function Bg(a){a=a|0;var d=0,e=0,f=0;d=c[(a&p)+16>>2]|0;if(!(b[(a&o)+24>>1]&64)){ol(a);a=c[(d&p)+120>>2]|0}else{f=d+120|0;e=(c[(f&p)>>2]|0)+-1|0;c[(f&p)>>2]=e;f=d+136|0;c[(a&p)+12>>2]=c[(f&p)>>2];c[(f&p)>>2]=a;a=e}if((a|0)==0?(c[((c[(d&p)+204>>2]|0)&p)+12>>2]|0)==0:0)nl(d);return}function Cg(d){d=d|0;var f=0,g=0,h=0,i=0,j=0,k=0;i=d+44|0;if(!(c[(i&p)>>2]|0)){j=c[(d&p)+12>>2]|0;k=c[(j&p)+56>>2]|0;f=Gg(c[(j&p)+68>>2]|0)|0;if(!f){f=k+0|0;g=44680|0;h=f+16|0;do{a[(f&n)>>0]=a[(g&n)>>0]|0;f=f+1|0;g=g+1|0}while((f|0)<(h|0));f=d+32|0;a[(k&n)+16>>0]=(c[(f&p)>>2]|0)>>>8;a[(k&n)+17>>0]=(c[(f&p)>>2]|0)>>>16;a[(k&n)+18>>0]=1;a[(k&n)+19>>0]=1;a[(k&n)+20>>0]=(c[(f&p)>>2]|0)-(c[(d&p)+36>>2]|0);a[(k&n)+21>>0]=64;a[(k&n)+22>>0]=32;a[(k&n)+23>>0]=32;f=k+24|0;h=f+76|0;do{a[(f&n)>>0]=0;f=f+1|0}while((f|0)<(h|0));pl(j,13);f=d+22|0;b[(f&o)>>1]=e[(f&o)>>1]|0|2;f=a[(d&n)+17>>0]|0;a[(k&n)+52>>0]=0;a[(k&n)+53>>0]=0;a[(k&n)+54>>0]=0;a[(k&n)+55>>0]=f;f=a[(d&n)+18>>0]|0;a[(k&n)+64>>0]=0;a[(k&n)+65>>0]=0;a[(k&n)+66>>0]=0;a[(k&n)+67>>0]=f;c[(i&p)>>2]=1;a[(k&n)+31>>0]=1;f=0}}else f=0;return f|0}function Dg(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0;g=c[(b&p)+4>>2]|0;c[(g&p)+4>>2]=c[(b&p)>>2];b=c[(g&p)+12>>2]|0;f=c[(b&p)+56>>2]|0;b=Gg(c[(b&p)+68>>2]|0)|0;if((b|0)==0?(i=d<<2,a[(f+i&n)+36>>0]=e>>>24,a[(f+i&n)+37>>0]=e>>>16,a[(f+i&n)+38>>0]=e>>>8,h=e&255,a[(f+i&n)+39>>0]=h,(d|0)==7):0)a[(g&n)+18>>0]=h;return b|0}function Eg(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0;h=a+20|0;b=c[(h&p)>>2]|0;d=(b|0)>0;if(d){e=c[(a&p)+16>>2]|0;g=0;do{f=c[(e+(g<<4)&p)+4>>2]|0;if(f)c[((c[(f&p)+4>>2]|0)&p)+4>>2]=c[(f&p)>>2];g=g+1|0}while((g|0)!=(b|0));if(d){g=a+16|0;f=0;do{d=c[((c[(g&p)>>2]|0)+(f<<4)&p)+12>>2]|0;if(d){ql(d);b=c[(h&p)>>2]|0}f=f+1|0}while((f|0)<(b|0))}}b=a+24|0;c[(b&p)>>2]=c[(b&p)>>2]&-3;rl(a);sl(a);return}function Fg(d,f){d=d|0;f=f|0;var g=0,h=0,i=0,j=0,k=0;h=c[(d&p)+4>>2]|0;k=h+22|0;g=e[(k&o)>>1]|0;b[(k&o)>>1]=(f|0)==1?g|16:g&65519;g=yg(d,0)|0;do if(!g){h=h+12|0;i=c[((c[(h&p)>>2]|0)&p)+56>>2]|0;j=i+18|0;g=a[(j&n)>>0]|0;f=f&255;if(g<<24>>24==f<<24>>24?(a[(i&n)+19>>0]|0)==g<<24>>24:0){g=0;break}g=yg(d,2)|0;if(!g){g=Gg(c[((c[(h&p)>>2]|0)&p)+68>>2]|0)|0;if(!g){a[(j&n)>>0]=f;a[(i&n)+19>>0]=f;g=0}}}while(0);b[(k&o)>>1]=e[(k&o)>>1]&65519;return g|0}function Gg(a){a=a|0;var b=0;b=c[(a&p)+16>>2]|0;if((c[(b&p)+148>>2]|0)>>>0>(c[(b&p)+152>>2]|0)>>>0)a=tl(a)|0;else a=ul(a)|0;return a|0}function Hg(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,o=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0;A=i;i=i+32|0;if((i|0)>=(j|0))fa();u=A+16|0;v=A;k=A+12|0;m=A+8|0;g=c[(b&p)+40>>2]|0;a:do if(!g){z=b+16|0;if((d[(z&n)>>0]|0)>=3){b:do if(!(a[(b&n)+15>>0]|0)){if(c[(b&p)+208>>2]|0){l=b+204|0;h=vl(c[(l&p)>>2]|0)|0;c[(m&p)>>2]=0;if(!h){g=zg(b,1,m,0)|0;h=c[(m&p)>>2]|0;c[(h&p)+12>>2]=0;if(h){k=h;y=9}}else{k=0;y=9}if((y|0)==9){g=wl(b,h,c[(b&p)+24>>2]|0,1)|0;if(k)Bg(k)}if(g)break a;h=c[(l&p)>>2]|0;g=c[(h&p)>>2]|0;if(!g)break;while(1){xl(g);g=c[(h&p)>>2]|0;if(!g)break b}}l=b+18|0;if((a[(l&n)>>0]|0)==0?(c[(b&p)+24>>2]|0)!=0:0){g=zg(b,1,k,0)|0;k=c[(k&p)>>2]|0;if(!g){g=Gg(k)|0;if(!g){yl(k);a[(l&n)>>0]=1;g=0}}if(k)Bg(k);if(g)break a}if(((e|0)!=0?(a[(b&n)+5>>0]|0)!=4:0)?(x=b+64|0,t=c[(x&p)>>2]|0,(c[(t&p)>>2]|0)!=0):0){a[(b&n)+19>>0]=1;k=a[(e&n)>>0]|0;if(!(k<<24>>24)){l=0;h=0}else{l=0;h=0;do{l=(k<<24>>24)+l|0;h=h+1|0;k=a[(e+h&n)>>0]|0}while(k<<24>>24!=0)}s=b+72|0;g=s;k=c[(g&p)>>2]|0;g=c[(g&p)+4>>2]|0;if(!(a[(b&n)+8>>0]|0))m=g;else{if((k|0)==0&(g|0)==0){k=0;g=0}else{g=jw(k|0,g|0,-1,-1)|0;k=c[(b&p)+148>>2]|0;g=qw(g|0,G|0,k|0,0)|0;g=jw(g|0,G|0,1,0)|0;k=sw(g|0,G|0,k|0,0)|0;g=G}m=s;c[(m&p)>>2]=k;c[(m&p)+4>>2]=g;m=g}g=((c[2514]|0)/(c[(b&p)+152>>2]|0)|0)+1|0;a[(u&n)>>0]=g>>>24;o=u+1|0;a[(o&n)>>0]=g>>>16;q=u+2|0;a[(q&n)>>0]=g>>>8;r=u+3|0;a[(r&n)>>0]=g;g=tc[c[((c[(t&p)>>2]|0)&p)+12>>2]&31](t,u,4,k,m)|0;if(g)break a;g=c[(x&p)>>2]|0;m=jw(k|0,m|0,4,0)|0;k=G;g=tc[c[((c[(g&p)>>2]|0)&p)+12>>2]&31](g,e,h,m,k)|0;if(g)break a;g=c[(x&p)>>2]|0;m=jw(m|0,k|0,h|0,((h|0)<0)<<31>>31|0)|0;k=G;a[(u&n)>>0]=h>>>24;a[(o&n)>>0]=h>>>16;a[(q&n)>>0]=h>>>8;a[(r&n)>>0]=h;g=tc[c[((c[(g&p)>>2]|0)&p)+12>>2]&31](g,u,4,m,k)|0;if(g)break a;t=c[(x&p)>>2]|0;g=jw(m|0,k|0,4,0)|0;a[(u&n)>>0]=l>>>24;a[(o&n)>>0]=l>>>16;a[(q&n)>>0]=l>>>8;a[(r&n)>>0]=l;g=tc[c[((c[(t&p)>>2]|0)&p)+12>>2]&31](t,u,4,g,G)|0;if(g)break a;t=c[(x&p)>>2]|0;g=jw(m|0,k|0,8,0)|0;g=tc[c[((c[(t&p)>>2]|0)&p)+12>>2]&31](t,14808,8,g,G)|0;if(g)break a;t=h+20|0;g=s;t=jw(c[(g&p)>>2]|0,c[(g&p)+4>>2]|0,t|0,((t|0)<0)<<31>>31|0)|0;g=s;c[(g&p)>>2]=t;c[(g&p)+4>>2]=G;g=c[(x&p)>>2]|0;g=rc[c[((c[(g&p)>>2]|0)&p)+24>>2]&127](g,v)|0;if(g)break a;t=v;r=c[(t&p)+4>>2]|0;g=s;h=c[(g&p)>>2]|0;g=c[(g&p)+4>>2]|0;if((r|0)>(g|0)|((r|0)==(g|0)?(c[(t&p)>>2]|0)>>>0>h>>>0:0)?(w=c[(x&p)>>2]|0,w=ac[c[((c[(w&p)>>2]|0)&p)+16>>2]&63](w,h,g)|0,(w|0)!=0):0){g=w;break a}}g=zl(b,0)|0;if(g)break a;h=b+204|0;g=Al(b,vl(c[(h&p)>>2]|0)|0)|0;if(g)break a;g=c[(h&p)>>2]|0;h=c[(g&p)>>2]|0;if(h)do{xl(h);h=c[(g&p)>>2]|0}while((h|0)!=0);h=c[(b&p)+24>>2]|0;if(h>>>0>(c[(b&p)+32>>2]|0)>>>0){g=Bl(b,h-((h|0)==(((c[2514]|0)/(c[(b&p)+152>>2]|0)|0)+1|0)&1)|0)|0;if(!(g|f))y=46}else if(!f)y=46;else break;if((y|0)==46)g=Ig(b,e)|0;if(g)break a}else{g=c[(b&p)+88>>2]|0;if(g)do{c[(g&p)+16>>2]=1;g=c[(g&p)+44>>2]|0}while((g|0)!=0)}while(0);if(!(c[(b&p)+208>>2]|0)){a[(z&n)>>0]=5;g=0}else g=0}else g=0}while(0);i=A;return g|0}function Ig(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,i=0;g=b+60|0;h=c[(g&p)>>2]|0;i=c[(h&p)>>2]|0;if(!((i|0)!=0?(f=ac[c[(i&p)+40>>2]&63](h,21,e)|0,!((f|0)==0|(f|0)==12)):0))if(!(a[(b&n)+7>>0]|0)){f=c[(g&p)>>2]|0;f=rc[c[((c[(f&p)>>2]|0)&p)+20>>2]&127](f,d[(b&n)+11>>0]|0)|0}else f=0;return f|0}function Jg(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0;g=a[(b&n)+8>>0]|0;do if(!(g<<24>>24))f=0;else{k=c[(b&p)+4>>2]|0;c[(k&p)+4>>2]=c[(b&p)>>2];if(g<<24>>24==2){h=c[(k&p)>>2]|0;i=h+40|0;g=c[(i&p)>>2]|0;do if(!g){g=h+16|0;if(((a[(g&n)>>0]|0)==2?(a[(h&n)+4>>0]|0)!=0:0)?(a[(h&n)+5>>0]|0)==1:0){a[(g&n)>>0]=1;break}f=h+100|0;c[(f&p)>>2]=(c[(f&p)>>2]|0)+1;f=Cl(h,d[(h&n)+19>>0]|0,1)|0;h=f&255;if((h|0)==10|(h|0)==13){c[(i&p)>>2]=f;a[(g&n)>>0]=6;j=10}else j=10}else{f=g;j=10}while(0);if((j|0)==10?(f|0)!=0&(e|0)==0:0)break;f=b+20|0;c[(f&p)>>2]=(c[(f&p)>>2]|0)+-1;a[(k&n)+20>>0]=1;f=k+60|0;ei(c[(f&p)>>2]|0);c[(f&p)>>2]=0}Dl(b);f=0}while(0);return f|0}function Kg(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,o=0,q=0,r=0,s=0;s=i;i=i+16|0;if((i|0)>=(j|0))fa();h=s;a:do if((a[(b&n)+8>>0]|0)==2){r=c[(b&p)+4>>2]|0;c[(r&p)+4>>2]=c[(b&p)>>2];do if(a[(r&n)+17>>0]|0){q=c[(r&p)>>2]|0;f=r+8|0;b=c[(f&p)>>2]|0;if(b)do{o=b+72|0;a[(o&n)>>0]=d[(o&n)>>0]&251;b=c[(b&p)+8>>2]|0}while((b|0)!=0);if(!(a[(r&n)+18>>0]|0)){o=r+44|0;g=c[(o&p)>>2]|0;if(g>>>0<2)b=0;else{b=g+-2|0;b=b-((b>>>0)%(((((c[(r&p)+36>>2]|0)>>>0)/5|0)+1|0)>>>0)|0)|0;b=((b+1|0)==(((c[2514]|0)>>>0)/((c[(r&p)+32>>2]|0)>>>0)|0|0)?3:2)+b|0}if((b|0)!=(g|0)?(g|0)!=((((c[2514]|0)>>>0)/((c[(r&p)+32>>2]|0)>>>0)|0)+1|0):0){k=r+12|0;l=c[((c[(k&p)>>2]|0)&p)+56>>2]|0;l=d[(l&n)+37>>0]<<16|d[(l&n)+36>>0]<<24|d[(l&n)+38>>0]<<8|d[(l&n)+39>>0];m=El(r,g,l)|0;if(m>>>0>g>>>0){c[(h&p)>>2]=56396;c[(h&p)+4>>2]=10788;bd(11,13600,h);b=11;break a}b:do if(m>>>0>>0){b=c[(f&p)>>2]|0;c:do if(b){while(1){if(b)break;b=c[2]|0;if(!b)break c}b=Fl(b,0,0)|0;if(b){f=0;break b}}while(0);do{b=Gl(r,m,g,1)|0;g=g+-1|0;f=(b|0)==0}while(g>>>0>m>>>0&f)}else{f=1;b=0}while(0);if(((b|0)==101|f)&(l|0)!=0){b=Gg(c[((c[(k&p)>>2]|0)&p)+68>>2]|0)|0;l=(c[((c[(k&p)>>2]|0)&p)+56>>2]|0)+32|0;a[(l&n)>>0]=0;a[(l&n)+1>>0]=0;a[(l&n)+2>>0]=0;a[(l&n)+3>>0]=0;l=(c[((c[(k&p)>>2]|0)&p)+56>>2]|0)+36|0;a[(l&n)>>0]=0;a[(l&n)+1>>0]=0;a[(l&n)+2>>0]=0;a[(l&n)+3>>0]=0;l=c[((c[(k&p)>>2]|0)&p)+56>>2]|0;a[(l&n)+28>>0]=m>>>24;a[(l&n)+29>>0]=m>>>16;a[(l&n)+30>>0]=m>>>8;a[(l&n)+31>>0]=m;a[(r&n)+19>>0]=1;c[(o&p)>>2]=m}if(!b)break;Hl(q)|0;break a}c[(h&p)>>2]=56391;c[(h&p)+4>>2]=10788;bd(11,13600,h);b=11;break a}}while(0);b=c[(r&p)>>2]|0;if(a[(r&n)+19>>0]|0)c[(b&p)+24>>2]=c[(r&p)+44>>2];b=Hg(b,e,0)|0}else b=0;while(0);i=s;return b|0}function Lg(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0;m=i;i=i+16|0;if((i|0)>=(j|0))fa();h=m;l=c[(b&p)+4>>2]|0;c[(l&p)+4>>2]=c[(b&p)>>2];a:do if(!e){e=c[(l&p)+8>>2]|0;if(e){while(1){if(e)break;e=c[2]|0;if(!e)break a}e=Fl(e,0,0)|0;g=(e|0)==0;if(!g){g=g?f:0;k=6}}}else{g=f;k=6}while(0);if((k|0)==6)Il(b,e,g)|0;if((a[(b&n)+8>>0]|0)==2){Hl(c[(l&p)>>2]|0)|0;if(!(dl(l,1,h,0)|0)){e=c[(h&p)>>2]|0;g=c[(e&p)+56>>2]|0;g=d[(g&n)+29>>0]<<16|d[(g&n)+28>>0]<<24|d[(g&n)+30>>0]<<8|d[(g&n)+31>>0];if(!g)g=c[((c[(l&p)>>2]|0)&p)+24>>2]|0;c[(l&p)+44>>2]=g;if(e)Bg(c[(e&p)+68>>2]|0)}a[(l&n)+20>>0]=1;g=l+60|0;ei(c[(g&p)>>2]|0);c[(g&p)>>2]=0}Dl(b);i=m;return}function Mg(d){d=d|0;var e=0,f=0,g=0,h=0,i=0,j=0,k=0;j=d+76|0;if((c[(j&p)>>2]|0)==1691352191?(Jl(d)|0)==0:0){Kl(d,0);Ll(d);i=d+20|0;k=d+16|0;e=c[(k&p)>>2]|0;if((c[(i&p)>>2]|0)>0){h=0;do{g=e+(h<<4)+4|0;f=c[(g&p)>>2]|0;if((f|0)!=0?(Ml(f),c[(g&p)>>2]=0,(h|0)!=1):0)c[(e+(h<<4)&p)+12>>2]=0;h=h+1|0;e=c[(k&p)>>2]|0}while((h|0)<(c[(i&p)>>2]|0))}e=c[(e&p)+28>>2]|0;if(e)ql(e);rl(d);sl(d);h=0;do{e=c[(d+(h<<2)&p)+336>>2]|0;if(e)do{g=e;e=c[(e&p)+28>>2]|0;if(g)do{Nl(d,g);f=g;g=c[(g&p)+8>>2]|0;mg(d,f)}while((g|0)!=0)}while((e|0)!=0);h=h+1|0}while((h|0)!=23);f=d+428|0;e=c[(d&p)+436>>2]|0;if(e)do{h=c[(e&p)+8>>2]|0;g=c[(h&p)+16>>2]|0;if(g)cc[g&31](c[(h&p)+8>>2]|0);g=c[(h&p)+36>>2]|0;if(g)cc[g&31](c[(h&p)+28>>2]|0);g=c[(h&p)+56>>2]|0;if(g)cc[g&31](c[(h&p)+48>>2]|0);mg(d,h);e=c[(e&p)>>2]|0}while((e|0)!=0);Ol(f);h=d+308|0;e=c[(d&p)+316>>2]|0;if(e)do{g=c[(e&p)+8>>2]|0;f=c[(g&p)+12>>2]|0;if(f)cc[f&31](c[(g&p)+8>>2]|0);mg(d,g);e=c[(e&p)>>2]|0}while((e|0)!=0);Ol(h);c[(d&p)+52>>2]=0;f=d+236|0;e=c[(f&p)>>2]|0;do if(e){g=e+8|0;if(!(b[(g&o)>>1]&9312)){b[(g&o)>>1]=1;break}else{vg(e);e=c[(f&p)>>2]|0;break}}else e=0;while(0);Mh(e);g=d+168|0;if((c[(g&p)>>2]|0)>0){e=d+172|0;f=0;do{h=c[(d&p)>>2]|0;jc[c[(h&p)+52>>2]&15](h,c[((c[(e&p)>>2]|0)+(f<<2)&p)>>2]|0);f=f+1|0}while((f|0)<(c[(g&p)>>2]|0))}else e=d+172|0;mg(d,c[(e&p)>>2]|0);c[(j&p)>>2]=-1254786768;mg(d,c[((c[(k&p)>>2]|0)&p)+28>>2]|0);c[(j&p)>>2]=-1623446221;if(a[(d&n)+251>>0]|0)Wc(c[(d&p)+276>>2]|0);Wc(d)}return}function Ng(a){a=a|0;var b=0;b=c[(a&p)+40>>2]|0;if((b|0)==1369188723|(b|0)==-1108210269)b=Pg(a)|0;else b=0;Pl(a);return b|0}function Og(b,d){b=b|0;d=d|0;do if(b)if((a[(b&n)+65>>0]|0)!=0|(d|0)==3082){Ql(b);b=7;break}else{b=c[(b&p)+56>>2]&d;break}else b=d&255;while(0);return b|0}function Pg(a){a=a|0;var d=0,e=0,f=0,g=0,h=0,k=0;g=i;i=i+16|0;if((i|0)>=(j|0))fa();e=g;f=c[(a&p)>>2]|0;Rl(a)|0;if((c[(a&p)+76>>2]|0)>-1){hh(a)|0;d=a+44|0;mg(f,c[(d&p)>>2]|0);c[(d&p)>>2]=0;d=a+88|0;e=b[(d&o)>>1]|0;if(e&16)b[(d&o)>>1]=e|8}else{d=c[(a&p)+80>>2]|0;if((d|0)!=0?(b[(a&o)+88>>1]&8)!=0:0){h=a+44|0;k=c[(h&p)>>2]|0;c[(e&p)>>2]=k;ug(f,d,(k|0)!=0?10344:0,e);mg(f,c[(h&p)>>2]|0);c[(h&p)>>2]=0}}d=a+44|0;mg(c[(a&p)>>2]|0,c[(d&p)>>2]|0);c[(d&p)>>2]=0;c[(a&p)+20>>2]=0;d=a+136|0;c[(d&p)>>2]=0;c[(d&p)+4>>2]=0;c[(a&p)+40>>2]=649915045;i=g;return c[(f&p)+56>>2]&c[(a&p)+80>>2]|0}function Qg(a){a=a|0;var d=0;if(b[(a&o)+8>>1]&9312)vg(a);d=a+24|0;if(c[(d&p)>>2]|0){mg(c[(a&p)+32>>2]|0,c[(a&p)+20>>2]|0);c[(d&p)>>2]=0}c[(a&p)+16>>2]=0;return}function Rg(a){a=a|0;var d=0,f=0,g=0;d=a+8|0;if(b[(d&o)>>1]&16384){f=a+12|0;g=(c[(a&p)>>2]|0)+(c[(f&p)>>2]|0)|0;if(!(eh(a,(g|0)<1?1:g,1)|0)){fw((c[(a&p)+16>>2]|0)+(c[(f&p)>>2]|0)|0,0,c[(a&p)>>2]|0)|0;c[(f&p)>>2]=(c[(f&p)>>2]|0)+(c[(a&p)>>2]|0);b[(d&o)>>1]=(e[(d&o)>>1]|0)&48639;d=0}else d=7}else d=0;return d|0}function Sg(d,e){d=d|0;e=e|0;var f=0;do if(d){f=b[(d&o)+8>>1]|0;if((f&514)==514?(a[(d&n)+10>>0]|0)==e<<24>>24:0){f=c[(d&p)+16>>2]|0;break}if(!(f&1))f=Sl(d,e)|0;else f=0}else f=0;while(0);return f|0}function Tg(a,d){a=a|0;d=d|0;var e=0,f=0,g=0;e=a+8|0;f=b[(e&o)>>1]|0;if(!(f&16))if(!(Sg(a,d)|0))e=0;else{f=b[(e&o)>>1]|0;g=4}else g=4;if((g|0)==4){e=c[(a&p)+12>>2]|0;if(f&16384)e=(c[(a&p)>>2]|0)+e|0}return e|0}function Ug(b){b=b|0;var d=0.0,f=0,g=0,k=0;k=i;i=i+16|0;if((i|0)>=(j|0))fa();g=k;f=e[(b&o)+8>>1]|0;do if(!(f&8)){if(f&4){f=b;d=+((c[(f&p)>>2]|0)>>>0)+4294967296.0*+(c[(f&p)+4>>2]|0);break}if(!(f&18))d=0.0;else{h[(g&q)>>3]=0.0;Tl(c[(b&p)+16>>2]|0,g,c[(b&p)+12>>2]|0,a[(b&n)+10>>0]|0)|0;d=+h[(g&q)>>3]}}else d=+h[(b&q)>>3];while(0);i=k;return +d}function Vg(b){b=b|0;var d=0.0,f=0,g=0,k=0;k=i;i=i+16|0;if((i|0)>=(j|0))fa();g=k;f=e[(b&o)+8>>1]|0;do if(!(f&4)){if(!(f&8)){if(!(f&18)){b=0;f=0;break}f=g;c[(f&p)>>2]=0;c[(f&p)+4>>2]=0;Ul(c[(b&p)+16>>2]|0,g,c[(b&p)+12>>2]|0,a[(b&n)+10>>0]|0)|0;f=g;b=c[(f&p)+4>>2]|0;f=c[(f&p)>>2]|0;break}d=+h[(b&q)>>3];if(!(d<=-9223372036854775808.0))if(!(d>=9223372036854775808.0)){b=+R(d)>=1.0?(d>0.0?~~+da(+Q(d/4294967296.0),4294967295.0)>>>0:~~+ba((d-+(~~d>>>0))/4294967296.0)>>>0):0;f=~~d>>>0}else{b=2147483647;f=-1}else{b=-2147483648;f=0}}else{f=b;b=c[(f&p)+4>>2]|0;f=c[(f&p)>>2]|0}while(0);G=b;i=k;return f|0}function Wg(b,d,e,f,g){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;if((Xg(c[(b&p)>>2]|0,d,e,f,g)|0)==18){c[(b&p)+20>>2]=18;a[(b&n)+25>>0]=1;Xg(c[(b&p)>>2]|0,10096,-1,1,0)|0}return}function Xg(d,f,g,h,i){d=d|0;f=f|0;g=g|0;h=h|0;i=i|0;var j=0,k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0;a:do if(!f){j=d+8|0;if(!(b[(j&o)>>1]&9312)){b[(j&o)>>1]=1;j=0;break}else{vg(d);j=0;break}}else{r=d+32|0;j=c[(r&p)>>2]|0;if(!j)u=1e9;else u=c[(j&p)+88>>2]|0;t=h<<24>>24==0;q=t?16:2;if((g|0)<0){b:do if(h<<24>>24!=1)if((u|0)<0)k=0;else{g=0;while(1){k=g+2|0;if(!((a[(f+(g|1)&n)>>0]|a[(f+g&n)>>0])<<24>>24)){k=g;break b}if((k|0)>(u|0))break;else g=k}}else{k=f;while(1)if(!(a[(k&n)>>0]|0))break;else k=k+1|0;k=k-f&1073741823;k=(k|0)>(u|0)?u+1|0:k}while(0);s=k;m=(q&65535|512)&65535}else{s=g;m=q}do if((i|0)==(-1|0)){if(!(m&512))j=s;else j=s+(h<<24>>24==1?1:2)|0;if((s|0)>(u|0)){j=18;break a}if(fh(d,(j|0)>32?j:32)|0){j=7;break a}kw(c[(d&p)+16>>2]|0,f|0,j|0)|0;q=d+8|0;j=m}else{g=(i|0)==75;l=d+8|0;if(!((b[(l&o)>>1]&9312)==0?(c[(d&p)+24>>2]|0)==0:0))Qg(d);c[(d&p)+16>>2]=f;if(!g){c[(d&p)+36>>2]=i;q=l;j=(m&65535|((i|0)==0?2048:1024))&65535;break}c[(d&p)+20>>2]=f;j=c[(r&p)>>2]|0;do if(!j)j=lc[c[8792>>2]&127](f)|0;else{if((c[(j&p)+276>>2]|0)>>>0<=f>>>0?(c[(j&p)+280>>2]|0)>>>0>f>>>0:0){j=e[(j&o)+248>>1]|0;break}j=lc[c[8792>>2]&127](f)|0}while(0);c[(d&p)+24>>2]=j;q=l;j=m}while(0);m=d+12|0;c[(m&p)>>2]=s;b[(q&o)>>1]=j;f=t?1:h;l=d+10|0;a[(l&n)>>0]=f;do if(f<<24>>24!=1&(s|0)>1){g=d+16|0;k=c[(g&p)>>2]|0;j=a[(k&n)>>0]|0;k=a[(k&n)+1>>0]|0;if(!(j<<24>>24==-1&k<<24>>24==-2))if(k<<24>>24!=-1|j<<24>>24!=-2)break;else j=3;else j=2;if(Vl(d)|0){j=7;break a}f=(c[(m&p)>>2]|0)+-2|0;c[(m&p)>>2]=f;i=c[(g&p)>>2]|0;lw(i|0,i+2|0,f|0)|0;a[((c[(g&p)>>2]|0)+(c[(m&p)>>2]|0)&n)>>0]=0;a[((c[(g&p)>>2]|0)+(c[(m&p)>>2]|0)&n)+1>>0]=0;b[(q&o)>>1]=e[(q&o)>>1]|512;a[(l&n)>>0]=j}while(0);j=(s|0)>(u|0)?18:0}while(0);return j|0}function Yg(a,c){a=a|0;c=+c;var d=0,e=0,f=0,g=0;g=i;i=i+16|0;if((i|0)>=(j|0))fa();e=g+8|0;f=g;d=a+8|0;if(!(b[(d&o)>>1]&9312))b[(d&o)>>1]=1;else vg(a);h[(e&q)>>3]=c;h[(f&q)>>3]=+h[(e&q)>>3];if(!(+h[(e&q)>>3]!=+h[(f&q)>>3])){h[(a&q)>>3]=c;b[(d&o)>>1]=8}i=g;return}function Zg(a,d,e){a=a|0;d=d|0;e=e|0;var f=0;f=a+8|0;if(!(b[(f&o)>>1]&9312))b[(f&o)>>1]=1;else vg(a);c[(a&p)>>2]=d;c[(a&p)+4>>2]=e;b[(f&o)>>1]=4;return}function _g(a,d){a=a|0;d=d|0;var f=0,g=0,h=0;f=a+8|0;if(b[(f&o)>>1]&9312)vg(a);c[(a&p)>>2]=c[(d&p)>>2];c[(a&p)+4>>2]=c[(d&p)+4>>2];c[(a&p)+8>>2]=c[(d&p)+8>>2];c[(a&p)+12>>2]=c[(d&p)+12>>2];c[(a&p)+16>>2]=c[(d&p)+16>>2];h=e[(f&o)>>1]|0;g=h&64511;b[(f&o)>>1]=g;if((h&18|0)!=0?(b[(d&o)+8>>1]&2048)==0:0){b[(f&o)>>1]=g|4096;f=Vl(a)|0}else f=0;return f|0}function $g(d,e){d=d|0;e=e|0;var f=0;f=d+8|0;if(!((b[(f&o)>>1]&9312)==0?(c[(d&p)+24>>2]|0)==0:0))Qg(d);b[(f&o)>>1]=16400;c[(d&p)+12>>2]=0;c[(d&p)>>2]=(e|0)<0?0:e;a[(d&n)+10>>0]=1;c[(d&p)+16>>2]=0;return}function ah(a){a=a|0;var b=0,d=0;d=i;i=i+16|0;if((i|0)>=(j|0))fa();b=d;if(a)if(!(c[(a&p)>>2]|0)){bd(21,47360,b);a=1}else a=0;else{bd(21,47320,b);a=1}i=d;return a|0}function bh(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0.0;f=i;i=i+16|0;if((i|0)>=(j|0))fa();e=f;if((c[(a&p)>>2]|0)>1?(d=c[(a&p)+72>>2]|0,(d|0)!=0):0)d=rc[d&127](a,b)|0;else{d=rc[c[(a&p)+64>>2]&127](a,e)|0;g=+h[(e&q)>>3]*864.0e5;a=+R(g)>=1.0?(g>0.0?~~+da(+Q(g/4294967296.0),4294967295.0)>>>0:~~+ba((g-+(~~g>>>0))/4294967296.0)>>>0):0;c[(b&p)>>2]=~~g>>>0;c[(b&p)+4>>2]=a}i=f;return d|0}function ch(d,e){d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0;a:do if((d|0)!=0&(e|0)!=0){i=d+(e*40|0)|0;j=c[(d&p)+32>>2]|0;g=j+65|0;h=a[(g&n)>>0]|0;if(c[(j&p)+520>>2]|0){e=d;while(1){if(c[(e&p)+24>>2]|0)mg(j,c[(e&p)+20>>2]|0);e=e+40|0;if(e>>>0>=i>>>0)break a}}do{e=d+8|0;if(!(b[(e&o)>>1]&9312)){f=d+24|0;if(c[(f&p)>>2]|0){mg(j,c[(d&p)+20>>2]|0);c[(f&p)>>2]=0}}else Qg(d);b[(e&o)>>1]=128;d=d+40|0}while(d>>>0>>0);a[(g&n)>>0]=h}while(0);return}function dh(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0;f=i;i=i+16|0;if((i|0)>=(j|0))fa();g=f;c[(g&p)>>2]=e;e=Wk(b,d,g)|0;mg(b,c[(a&p)>>2]|0);c[(a&p)>>2]=e;i=f;return}function eh(a,d,f){a=a|0;d=d|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,q=0;l=a+24|0;g=c[(l&p)>>2]|0;do if((g|0)<(d|0)){k=(d|0)<32?32:d;d=(g|0)>0;if((f|0)!=0&d?(h=a+16|0,i=c[(h&p)>>2]|0,j=a+20|0,(i|0)==(c[(j&p)>>2]|0)):0){g=Wl(c[(a&p)+32>>2]|0,i,k,((k|0)<0)<<31>>31)|0;c[(j&p)>>2]=g;c[(h&p)>>2]=g;f=0}else{g=a+32|0;if(d){d=a+20|0;mg(c[(g&p)>>2]|0,c[(d&p)>>2]|0)}else d=a+20|0;g=mh(c[(g&p)>>2]|0,k,((k|0)<0)<<31>>31)|0;c[(d&p)>>2]=g}if(!g){f=a+8|0;if(!(b[(f&o)>>1]&9312))b[(f&o)>>1]=1;else vg(a);c[(a&p)+16>>2]=0;c[(l&p)>>2]=0;f=7;break}d=c[(a&p)+32>>2]|0;do if(!d)d=lc[c[8792>>2]&127](g)|0;else{if((c[(d&p)+276>>2]|0)>>>0<=g>>>0?(c[(d&p)+280>>2]|0)>>>0>g>>>0:0){d=e[(d&o)+248>>1]|0;break}d=lc[c[8792>>2]&127](g)|0}while(0);c[(l&p)>>2]=d;q=21}else q=21;while(0);if((q|0)==21){if(((f|0)!=0?(m=c[(a&p)+16>>2]|0,(m|0)!=0):0)?(n=c[(a&p)+20>>2]|0,(m|0)!=(n|0)):0)kw(n|0,m|0,c[(a&p)+12>>2]|0)|0;d=a+8|0;f=b[(d&o)>>1]|0;if(!(f&1024))g=a+16|0;else{g=a+16|0;cc[c[(a&p)+36>>2]&31](c[(g&p)>>2]|0);f=b[(d&o)>>1]|0}c[(g&p)>>2]=c[(a&p)+20>>2];b[(d&o)>>1]=f&58367;f=0}return f|0}function fh(a,d){a=a|0;d=d|0;if((c[(a&p)+24>>2]|0)<(d|0))a=eh(a,d,0)|0;else{c[(a&p)+16>>2]=c[(a&p)+20>>2];a=a+8|0;b[(a&o)>>1]=(e[(a&o)>>1]|0)&13;a=0}return a|0} function mq(f,g){f=f|0;g=g|0;var h=0,k=0,l=0,m=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,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,ga=0,ha=0;ha=i;i=i+192|0;if((i|0)>=(j|0))fa();ba=ha+48|0;$=ha+24|0;_=ha+160|0;I=ha+156|0;S=ha+152|0;L=ha+148|0;V=ha+144|0;O=ha+140|0;H=ha+16|0;ea=ha;y=ha+128|0;x=ha+116|0;z=ha+96|0;l=ha+88|0;ga=f+8|0;ca=c[(ga&p)>>2]|0;da=c[(f&p)>>2]|0;c[(ea&p)>>2]=c[9286];c[(ea&p)+4>>2]=c[9287];c[(ea&p)+8>>2]=c[9288];a:do switch(g|0){case 9:{l=c[(f+(da+-1<<4)&p)+16>>2]|0;k=c[(ca&p)>>2]|0;if((Sq(ca,22,37104,0,0)|0)==0?(E=Oq(ca)|0,(E|0)!=0):0){if((l|0)!=7?(F=k+20|0,(c[(F&p)>>2]|0)>0):0){l=(l|0)==9?2:1;k=E+96|0;q=0;do{wh(E,4,q,l,0)|0;c[(k&p)>>2]=c[(k&p)>>2]|1<>2]|0))}wh(E,3,0,0,0)|0}break}case 8:{y=c[(ca&p)>>2]|0;C=y+65|0;if(((a[(C&n)>>0]|0)==0?(a[(ca&n)+18>>0]|0)==0:0)?(Y=ca+64|0,(c[(Y&p)>>2]|0)==0):0){B=Oq(ca)|0;if(B){do{}while((Pq(B,61)|0)!=0);wh(B,24,0,0,0)|0;do if(!(a[(C&n)>>0]|0)){r=ca+332|0;v=c[(r&p)>>2]|0;if((v|0)==0?(c[(ca&p)+316>>2]|0)==0:0)break;s=B+32|0;t=c[(s&p)>>2]|0;if(t)c[((c[(B&p)+4>>2]|0)&p)+8>>2]=t;c[((c[(B&p)+24>>2]|0)&p)+88>>2]=t+-1;w=y+20|0;b:do if((c[(w&p)>>2]|0)>0){h=B+96|0;k=ca+328|0;l=y+16|0;m=y+145|0;q=B+4|0;u=0;while(1){x=1<>2]=c[(h&p)>>2]|x,ba=c[((c[((c[(l&p)>>2]|0)+(u<<4)&p)+12>>2]|0)&p)+4>>2]|0,xh(B,wh(B,4,u,(c[(k&p)>>2]&x|0)!=0&1,c[(ca+(u<<2)&p)+336>>2]|0)|0,ba,-14),(a[(m&n)>>0]|0)==0):0)?(N=c[(q&p)>>2]|0,(N|0)!=0):0)a[(N+(((c[(s&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=1;u=u+1|0;if((u|0)>=(c[(w&p)>>2]|0))break b;v=c[(r&p)>>2]|0}}while(0);s=ca+452|0;if((c[(s&p)>>2]|0)>0){r=ca+520|0;q=0;do{t=c[((c[((c[(r&p)>>2]|0)+(q<<2)&p)>>2]|0)&p)+60>>2]|0;c:do if(!t)t=0;else while(1){if((c[(t&p)>>2]|0)==(y|0))break c;t=c[(t&p)+24>>2]|0;if(!t){t=0;break}}while(0);xh(B,wh(B,146,0,0,0)|0,t,-10);q=q+1|0}while((q|0)<(c[(s&p)>>2]|0))}c[(s&p)>>2]=0;s=Oq(ca)|0;r=ca+396|0;if((c[(r&p)>>2]|0)>0){q=ca+400|0;m=0;do{$=c[(q&p)>>2]|0;ba=c[($+(m<<4)&p)+12>>2]|0;xh(s,wh(s,145,c[($+(m<<4)&p)>>2]|0,c[($+(m<<4)&p)+4>>2]|0,d[($+(m<<4)&n)+8>>0]|0)|0,ba,-2);m=m+1|0}while((m|0)<(c[(r&p)>>2]|0))}k=c[(ca&p)+8>>2]|0;t=c[(ca&p)+404>>2]|0;if(t){h=(c[(ca&p)>>2]|0)+16|0;u=k+32|0;v=k+4|0;do{r=c[(t&p)+8>>2]|0;s=c[(t&p)+12>>2]|0;Qq(ca,0,r,c[((c[((c[(h&p)>>2]|0)+(r<<4)&p)+12>>2]|0)&p)+72>>2]|0,54);r=s+1|0;wh(k,28,0,s,r)|0;q=c[(u&p)>>2]|0;l=s+-1|0;m=c[(c[(t&p)+4>>2]&p)>>2]|0;xh(k,wh(k,97,0,l,0)|0,m,0);m=q+9|0;wh(k,108,0,m,0)|0;wh(k,47,0,0,s)|0;wh(k,78,l,q+7|0,s)|0;l=c[(v&p)>>2]|0;if(l)a[(l+(((c[(u&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=16;wh(k,103,0,r,0)|0;wh(k,47,0,1,s)|0;wh(k,16,0,m,0)|0;wh(k,9,0,q+2|0,0)|0;wh(k,25,0,s,0)|0;wh(k,61,0,0,0)|0;t=c[(t&p)>>2]|0}while((t|0)!=0)}s=c[(ca&p)+316>>2]|0;if((s|0)!=0?(a[(ca&n)+23>>0]=0,(c[(s&p)>>2]|0)>0):0){r=s+4|0;q=0;do{ba=c[(r&p)>>2]|0;Rq(ca,c[(ba+(q*20|0)&p)>>2]|0,c[(ba+(q*20|0)&p)+16>>2]|0);q=q+1|0}while((q|0)<(c[(s&p)>>2]|0))}wh(B,16,0,1,0)|0}while(0);if((c[(Y&p)>>2]|0)==0?(a[(C&n)>>0]|0)==0:0){if((c[(ca&p)+404>>2]|0)!=0?(Z=ca+68|0,(c[(Z&p)>>2]|0)==0):0)c[(Z&p)>>2]=1;Ah(B,ca);c[(ca&p)+12>>2]=101;a[(ca&n)+16>>0]=0}else aa=48}else aa=48;if((aa|0)==48)c[(ca&p)+12>>2]=1;c[(ca&p)+68>>2]=0;c[(ca&p)+72>>2]=0;c[(ca&p)+76>>2]=0;c[(ca&p)+440>>2]=0;c[(ca&p)+332>>2]=0}break}case 5:{a[(ca&n)+450>>0]=0;c[(ca&p)+440>>2]=0;break}case 6:{a[(ca&n)+450>>0]=1;c[(ca&p)+440>>2]=0;break}case 221:case 218:case 108:case 97:case 85:case 83:case 81:case 68:case 31:case 28:{c[(ea&p)>>2]=0;break}case 27:{a[((c[(ca&p)>>2]|0)&n)+250>>0]=0;aa=f+(da<<4)+16|0;ba=c[(aa&p)+4>>2]|0;ca=ea;c[(ca&p)>>2]=c[(aa&p)>>2];c[(ca&p)+4>>2]=ba;break}case 222:case 219:case 107:case 84:case 69:case 30:case 29:{c[(ea&p)>>2]=1;break}case 32:{Vq(ca,f+(da+-2<<4)+16|0,f+(da+-1<<4)+16|0,a[(f+(da<<4)&n)+16>>0]|0,0);break}case 33:{ba=f+(da<<4)+16|0;Vq(ca,0,0,0,c[(ba&p)>>2]|0);Mk(c[(ca&p)>>2]|0,c[(ba&p)>>2]|0,1);break}case 34:{a[(ea&n)>>0]=0;break}case 35:{l=c[(f+(da<<4)&p)+20>>2]|0;k=c[(f+(da<<4)&p)+16>>2]|0;if((l|0)==5?(Fc(k,20456,5)|0)==0:0){a[(ea&n)>>0]=32;break a}a[(ea&n)>>0]=0;c[(ba&p)>>2]=l;c[(ba&p)+4>>2]=k;th(ca,20464,ba);break}case 59:{ba=f+(da<<4)+16|0;c[(x&p)>>2]=Zq(ca,97,0,0,ba)|0;ba=c[(ba&p)>>2]|0;c[(x&p)+4>>2]=ba;c[(x&p)+8>>2]=ba+(c[(f+(da<<4)&p)+20>>2]|0);Yq(ca,x);break}case 61:{k=c[(f+(da<<4)&p)+16>>2]|0;l=c[(ca&p)+484>>2]|0;if((l|0)!=0?(v=b[(l&o)+38>>1]|0,v<<16>>16>=1):0)a[((c[(l&p)+4>>2]|0)+(((v<<16>>16)+-1|0)*24|0)&n)+20>>0]=k;break}case 70:{c[(ea&p)>>2]=0;break}case 71:{c[(ea&p)>>2]=c[(f+(da+-1<<4)&p)+16>>2]&~c[(f+(da<<4)&p)+20>>2]|c[(f+(da<<4)&p)+16>>2];break}case 73:case 72:{c[(ea&p)>>2]=0;c[(ea&p)+4>>2]=0;break}case 74:{c[(ea&p)>>2]=c[(f+(da<<4)&p)+16>>2];c[(ea&p)+4>>2]=255;break}case 76:{c[(ea&p)>>2]=7;break}case 75:{c[(ea&p)>>2]=c[(f+(da<<4)&p)+16>>2]<<8;c[(ea&p)+4>>2]=65280;break}case 65:{br(ca,0,f+(da+-2<<4)+16|0,c[(f+(da+-1<<4)&p)+16>>2]|0,c[(f+(da<<4)&p)+16>>2]|0);break}case 66:{k=c[(f+(da<<4)&p)+16>>2]|0;l=c[(ca&p)+484>>2]|0;if((l|0)!=0?(u=c[(l&p)+16>>2]|0,(u|0)!=0):0)a[(u&n)+24>>0]=k;break}case 67:{q=c[(ca&p)+484>>2]|0;if((q|0)!=0?(D=(b[(q&o)+38>>1]|0)+-1|0,r=c[(ca&p)>>2]|0,m=Wq(r,f+(da<<4)+16|0)|0,(m|0)!=0):0){if(!(cr(ca,m)|0)){mg(r,m);break a}s=q+4|0;mg(r,c[((c[(s&p)>>2]|0)+(D*24|0)&p)+16>>2]|0);c[((c[(s&p)>>2]|0)+(D*24|0)&p)+16>>2]=m;l=c[(q&p)+8>>2]|0;if(l)do{if((b[(c[(l&p)+4>>2]&o)>>1]|0)==(D|0))c[(c[(l&p)+32>>2]&p)>>2]=c[((c[(s&p)>>2]|0)+(D*24|0)&p)+16>>2];l=c[(l&p)+20>>2]|0}while((l|0)!=0)}break}case 13:{c[(ea&p)>>2]=7;break}case 117:case 115:case 16:case 15:case 14:{c[(ea&p)>>2]=d[(f+(da<<4)&n)+14>>0];break}case 46:{ca=c[(f+(da+-3<<4)&p)+16>>2]|0;c[(ea&p)>>2]=ca;c[(ea&p)+4>>2]=(c[(f+(da<<4)&p)+16>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0)-ca;break}case 47:{ca=c[(f+(da+-5<<4)&p)+16>>2]|0;c[(ea&p)>>2]=ca;c[(ea&p)+4>>2]=(c[(f+(da<<4)&p)+16>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0)-ca;break}case 49:{ca=c[(f+(da+-1<<4)&p)+16>>2]|0;c[(ea&p)>>2]=ca;c[(ea&p)+4>>2]=(c[(f+(da<<4)&p)+16>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0)-ca;break}case 92:case 54:{aa=f+(da<<4)+16|0;ba=c[(aa&p)+4>>2]|0;ca=ca+320|0;c[(ca&p)>>2]=c[(aa&p)>>2];c[(ca&p)+4>>2]=ba;break}case 57:case 55:{Yq(ca,f+(da<<4)+16|0);break}case 56:{Yq(ca,f+(da+-1<<4)+16|0);break}case 58:{c[(y&p)>>2]=Zq(ca,157,c[(f+(da<<4)&p)+16>>2]|0,0,0)|0;c[(y&p)+4>>2]=c[(f+(da+-1<<4)&p)+16>>2];c[(y&p)+8>>2]=c[(f+(da<<4)&p)+24>>2];Yq(ca,y);break}case 18:case 17:{if((Sq(ca,22,37136,0,0)|0)==0?(B=Oq(ca)|0,(B|0)!=0):0)wh(B,3,1,0,0)|0;break}case 19:{if((Sq(ca,22,37120,0,0)|0)==0?(A=Oq(ca)|0,(A|0)!=0):0)wh(A,3,1,1,0)|0;break}case 22:{Tq(ca,0,f+(da<<4)+16|0);break}case 38:{ba=c[(f+(da+-2<<4)&p)+16>>2]|0;c[(ea&p)>>2]=ba;c[(ea&p)+4>>2]=(c[(ca&p)+504>>2]|0)-ba+(c[(ca&p)+508>>2]|0);break}case 39:{x=f+(da<<4)+16|0;v=c[(ca&p)>>2]|0;k=c[(ca&p)+484>>2]|0;d:do if(k){w=k+38|0;if((b[(w&o)>>1]|0)>=(c[(v&p)+96>>2]|0)){c[(ba&p)>>2]=c[(k&p)>>2];th(ca,36528,ba);break}u=Wq(v,x)|0;if(u){s=b[(w&o)>>1]|0;h=s<<16>>16;e:do if(s<<16>>16>0){t=a[((d[(u&n)>>0]|0)&n)+9328>>0]|0;q=c[(k&p)+4>>2]|0;r=u+1|0;l=0;while(1){m=c[(q+(l*24|0)&p)>>2]|0;if(t<<24>>24==(a[((d[(m&n)>>0]|0)&n)+9328>>0]|0)?(dd(r,m+1|0)|0)==0:0)break;l=l+1|0;if((l|0)>=(h|0))break e}c[(ba&p)>>2]=u;th(ca,36552,ba);mg(v,u);break d}else q=c[(k&p)+4>>2]|0;while(0);r=k+4|0;do if(!(h&7)){q=ro(v,q,(h*24|0)+192|0,0)|0;if(!q){mg(v,u);break d}else{c[(r&p)>>2]=q;s=b[(w&o)>>1]|0;break}}while(0);ba=s<<16>>16;aa=q+(ba*24|0)|0;c[(aa&p)>>2]=0;c[(aa&p)+4>>2]=0;c[(aa&p)+8>>2]=0;c[(aa&p)+12>>2]=0;c[(aa&p)+16>>2]=0;c[(aa&p)+20>>2]=0;c[(aa&p)>>2]=u;a[(q+(ba*24|0)&n)+21>>0]=65;a[(q+(ba*24|0)&n)+22>>0]=1;b[(w&o)>>1]=(b[(w&o)>>1]|0)+1<<16>>16}}while(0);$=x;aa=c[($&p)+4>>2]|0;ba=ea;c[(ba&p)>>2]=c[($&p)>>2];c[(ba&p)+4>>2]=aa;c[(ca&p)+324>>2]=0;break}case 62:{_q(ca,0,c[(f+(da+-1<<4)&p)+16>>2]|0,c[(f+(da<<4)&p)+16>>2]|0,c[(f+(da+-2<<4)&p)+16>>2]|0);break}case 63:{$q(ca,0,0,0,0,c[(f+(da<<4)&p)+16>>2]|0,0,0,0,0)|0;break}case 64:{ar(ca,c[(f+(da+-1<<4)&p)+16>>2]|0);break}case 279:case 263:case 262:case 261:case 260:case 259:case 258:case 257:case 256:case 247:case 150:case 141:case 131:case 130:case 48:case 45:case 42:case 41:case 40:{aa=f+(da<<4)+16|0;ba=c[(aa&p)+4>>2]|0;ca=ea;c[(ca&p)>>2]=c[(aa&p)>>2];c[(ca&p)+4>>2]=ba;break}case 44:{l=f+(da<<4)+16|0;k=c[(ca&p)+484>>2]|0;if((k|0)!=0?(J=b[(k&o)+38>>1]|0,J<<16>>16>=1):0){ba=(J<<16>>16)+-1|0;aa=c[(k&p)+4>>2]|0;ca=Wq(c[(ca&p)>>2]|0,l)|0;c[(aa+(ba*24|0)&p)+12>>2]=ca;a[(aa+(ba*24|0)&n)+21>>0]=Xq(ca,aa+(ba*24|0)+22|0)|0}break}case 226:{l=da+-1|0;k=f+(l<<4)+16|0;r=f+(da<<4)+16|0;q=pr(c[(ca&p)>>2]|0,0,k,r)|0;s=da+-3|0;m=Zq(ca,75,c[(f+(s<<4)&p)+16>>2]|0,0,0)|0;c[(ea&p)>>2]=m;if(!m){Do(c[(ca&p)>>2]|0,q);q=0}else{c[(m&p)+20>>2]=kr(ca,0,q,0,0,0,0,0,0,0)|0;q=c[(ea&p)>>2]|0;ba=q+4|0;c[(ba&p)>>2]=c[(ba&p)>>2]|2099200;yr(ca,q)}if(c[(f+(da+-2<<4)&p)+16>>2]|0)c[(ea&p)>>2]=Zq(ca,19,q,0,0)|0;c[(ea&p)+4>>2]=c[(f+(s<<4)&p)+20>>2];h=c[(r&p)>>2]|0;if(!h)h=(c[(k&p)>>2]|0)+(c[(f+(l<<4)&p)+20>>2]|0)|0;else h=h+(c[(f+(da<<4)&p)+20>>2]|0)|0;c[(ea&p)+8>>2]=h;break}case 225:{l=da+-4|0;h=Zq(ca,75,c[(f+(l<<4)&p)+16>>2]|0,0,0)|0;c[(ea&p)>>2]=h;if(!h){Mk(c[(ca&p)>>2]|0,c[(f+(da+-1<<4)&p)+16>>2]|0,1);h=0}else{c[(h&p)+20>>2]=c[(f+(da+-1<<4)&p)+16>>2];h=c[(ea&p)>>2]|0;ba=h+4|0;c[(ba&p)>>2]=c[(ba&p)>>2]|2099200;yr(ca,h)}if(c[(f+(da+-3<<4)&p)+16>>2]|0)c[(ea&p)>>2]=Zq(ca,19,h,0,0)|0;c[(ea&p)+4>>2]=c[(f+(l<<4)&p)+20>>2];c[(ea&p)+8>>2]=(c[(f+(da<<4)&p)+16>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0);break}case 227:{h=Zq(ca,20,0,0,0)|0;c[(ea&p)>>2]=h;if(!h)Mk(c[(ca&p)>>2]|0,c[(f+(da+-1<<4)&p)+16>>2]|0,1);else{c[(h&p)+20>>2]=c[(f+(da+-1<<4)&p)+16>>2];ba=h+4|0;c[(ba&p)>>2]=c[(ba&p)>>2]|2099200;yr(ca,h)}c[(ea&p)+4>>2]=c[(f+(da+-3<<4)&p)+16>>2];c[(ea&p)+8>>2]=(c[(f+(da<<4)&p)+16>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0);break}case 228:{k=Zq(ca,136,c[(f+(da+-3<<4)&p)+16>>2]|0,0,0)|0;c[(ea&p)>>2]=k;if(!k){Nk(c[(ca&p)>>2]|0,c[(f+(da+-2<<4)&p)+16>>2]|0);Gk(c[(ca&p)>>2]|0,c[(f+(da+-1<<4)&p)+16>>2]|0)}else{l=c[(f+(da+-1<<4)&p)+16>>2]|0;h=c[(f+(da+-2<<4)&p)+16>>2]|0;if(l)h=lr(ca,h,l)|0;c[(k&p)+20>>2]=h;yr(ca,c[(ea&p)>>2]|0)}c[(ea&p)+4>>2]=c[(f+(da+-4<<4)&p)+16>>2];c[(ea&p)+8>>2]=(c[(f+(da<<4)&p)+16>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0);break}case 291:case 240:{c[(ea&p)>>2]=2;break}case 241:{c[(ea&p)>>2]=0;break}case 239:{$q(ca,f+(da+-7<<4)+16|0,f+(da+-6<<4)+16|0,pr(c[(ca&p)>>2]|0,0,f+(da+-4<<4)+16|0,0)|0,c[(f+(da+-2<<4)&p)+16>>2]|0,c[(f+(da+-10<<4)&p)+16>>2]|0,f+(da+-11<<4)+16|0,c[(f+(da<<4)&p)+16>>2]|0,0,c[(f+(da+-8<<4)&p)+16>>2]|0)|0;break}case 229:{c[(ea&p)>>2]=lr(ca,lr(ca,c[(f+(da+-4<<4)&p)+16>>2]|0,c[(f+(da+-2<<4)&p)+16>>2]|0)|0,c[(f+(da<<4)&p)+16>>2]|0)|0;break}case 230:{c[(ea&p)>>2]=lr(ca,lr(ca,0,c[(f+(da+-2<<4)&p)+16>>2]|0)|0,c[(f+(da<<4)&p)+16>>2]|0)|0;break}case 237:{c[(ea&p)>>2]=lr(ca,c[(f+(da+-2<<4)&p)+16>>2]|0,c[(f+(da<<4)&p)+16>>2]|0)|0;break}case 238:{c[(ea&p)>>2]=lr(ca,0,c[(f+(da<<4)&p)+16>>2]|0)|0;break}case 245:{h=lr(ca,0,vr(ca,0,f+(da+-1<<4)+16|0,1)|0)|0;c[(ea&p)>>2]=h;mr(ca,h,f+(da+-2<<4)+16|0,1);if(h){if((c[(h&p)>>2]|0)>(c[((c[(ca&p)>>2]|0)&p)+96>>2]|0)){c[(ba&p)>>2]=20632;th(ca,34544,ba)}a[((c[(h&p)+4>>2]|0)+(((c[(h&p)>>2]|0)+-1|0)*20|0)&n)+12>>0]=c[(f+(da<<4)&p)+16>>2]}break}case 244:{h=vr(ca,0,f+(da+-1<<4)+16|0,1)|0;h=lr(ca,c[(f+(da+-4<<4)&p)+16>>2]|0,h)|0;c[(ea&p)>>2]=h;mr(ca,h,f+(da+-2<<4)+16|0,1);if(h){if((c[(h&p)>>2]|0)>(c[((c[(ca&p)>>2]|0)&p)+96>>2]|0)){c[(ba&p)>>2]=20632;th(ca,34544,ba)}a[((c[(h&p)+4>>2]|0)+(((c[(h&p)>>2]|0)+-1|0)*20|0)&n)+12>>0]=c[(f+(da<<4)&p)+16>>2]}break}case 248:{v=c[(f+(da<<4)&p)+16>>2]|0;s=c[(f+(da+-1<<4)&p)+16>>2]|0;u=c[(ca&p)>>2]|0;do if((a[(u&n)+65>>0]|0)==0?(Gn(ca)|0)==0:0){r=v+12|0;k=bq(u,c[(v&p)+16>>2]|0,c[(r&p)>>2]|0)|0;if(!k){if(!s){c[(ba&p)>>2]=v;c[(ba&p)+4>>2]=0;th(ca,33056,ba)}else zr(ca,c[(r&p)>>2]|0);a[(ca&n)+17>>0]=1;break}if(a[(k&n)+51>>0]&3){c[(ba&p)>>2]=0;th(ca,33080,ba);break}s=c[(k&p)+24>>2]|0;f:do if(s){r=c[(u&p)+20>>2]|0;if((r|0)>0){q=c[(u&p)+16>>2]|0;t=0;while(1){m=t+1|0;if((c[(q+(t<<4)&p)+12>>2]|0)==(s|0)){m=t;break f}if((m|0)<(r|0))t=m;else break}}else m=0}else m=-1e6;while(0);s=c[(k&p)+12>>2]|0;r=u+16|0;q=c[((c[(r&p)>>2]|0)+(m<<4)&p)>>2]|0;l=(m|0)==1?13184:13208;if(((Sq(ca,9,l,0,q)|0)==0?(Sq(ca,(m|0)==0?10:12,c[(k&p)>>2]|0,c[(s&p)>>2]|0,q)|0)==0:0)?(K=Oq(ca)|0,(K|0)!=0):0){aa=c[(ca&p)+408>>2]|0;aa=(aa|0)==0?ca:aa;Ar(ca,m);$=aa+328|0;c[($&p)>>2]=c[($&p)>>2]|1<>0]=d[(aa&n)>>0]|1;aa=c[(k&p)>>2]|0;c[(ba&p)>>2]=c[((c[(r&p)>>2]|0)+(m<<4)&p)>>2];c[(ba&p)+4>>2]=l;c[(ba&p)+8>>2]=aa;Br(ca,33160,ba);Cr(ca,m,28536,c[(k&p)>>2]|0);Dr(ca,m);Er(ca,c[(k&p)+40>>2]|0,m);ca=c[(k&p)>>2]|0;xh(K,wh(K,125,m,0,0)|0,ca,0)}}while(0);Do(u,v);break}case 246:{c[(ea&p)>>2]=0;c[(ea&p)+4>>2]=0;break}case 250:case 249:{h=Oq(ca)|0;if(h){wh(h,13,0,0,0)|0;ca=h+96|0;c[(ca&p)>>2]=c[(ca&p)>>2]|1}break}case 251:{Fr(ca,f+(da+-1<<4)+16|0,f+(da<<4)+16|0,0,0);break}case 252:{Fr(ca,f+(da+-3<<4)+16|0,f+(da+-2<<4)+16|0,f+(da<<4)+16|0,0);break}case 253:{Fr(ca,f+(da+-4<<4)+16|0,f+(da+-3<<4)+16|0,f+(da+-1<<4)+16|0,0);break}case 254:{Fr(ca,f+(da+-3<<4)+16|0,f+(da+-2<<4)+16|0,f+(da<<4)+16|0,1);break}case 255:{Fr(ca,f+(da+-4<<4)+16|0,f+(da+-3<<4)+16|0,f+(da+-1<<4)+16|0,1);break}case 264:{h=c[(f+(da+-3<<4)&p)+16>>2]|0;l=(c[(f+(da<<4)&p)+16>>2]|0)-h+(c[(f+(da<<4)&p)+20>>2]|0)|0;k=c[(f+(da+-1<<4)&p)+16>>2]|0;aa=ca+488|0;z=c[(aa&p)>>2]|0;A=c[(ca&p)>>2]|0;c[(aa&p)>>2]=0;g:do if((c[(ca&p)+64>>2]|0)==0&(z|0)!=0){y=c[(z&p)>>2]|0;m=z+20|0;v=c[(m&p)>>2]|0;h:do if(v){u=c[(A&p)+20>>2]|0;if((u|0)>0){s=c[(A&p)+16>>2]|0;q=0;while(1){r=q+1|0;if((c[(s+(q<<4)&p)+12>>2]|0)==(v|0))break h;if((r|0)<(u|0))q=r;else{q=r;break}}}else q=0}else q=-1e6;while(0);c[(z&p)+28>>2]=k;x=(k|0)==0;if(!x){s=k;do{c[(s&p)+4>>2]=z;s=c[(s&p)+32>>2]|0}while((s|0)!=0)}c[(_&p)>>2]=y;if(!y)s=0;else{s=y;while(1)if(!(a[(s&n)>>0]|0))break;else s=s+1|0;s=s-y&1073741823}c[(_&p)+4>>2]=s;c[($&p)>>2]=ca;w=A+16|0;v=c[(w&p)>>2]|0;c[($&p)+12>>2]=c[(v+(q<<4)&p)>>2];c[($&p)+4>>2]=c[(v+(q<<4)&p)+12>>2];c[($&p)+16>>2]=10720;c[($&p)+20>>2]=_;v=(q|0)==1;c[($&p)+8>>2]=v&1;if(!x)do{if(fr($,c[(k&p)+8>>2]|0)|0){k=0;l=z;break g}if(Gr($,c[(k&p)+20>>2]|0)|0){k=0;l=z;break g}if(Hr($,c[(k&p)+24>>2]|0)|0){k=0;l=z;break g}k=c[(k&p)+32>>2]|0}while((k|0)!=0);if(!(Gr($,c[(z&p)+12>>2]|0)|0)){s=A+145|0;if(!(a[(s&n)>>0]|0)){r=Oq(ca)|0;if(!r){k=0;l=z;break}aa=c[(ca&p)+408>>2]|0;Ar(ca,q);aa=((aa|0)==0?ca:aa)+328|0;c[(aa&p)>>2]=c[(aa&p)>>2]|1<>0]=0}else t=0;aa=c[(z&p)+4>>2]|0;c[(ba&p)>>2]=c[((c[(w&p)>>2]|0)+(q<<4)&p)>>2];c[(ba&p)+4>>2]=v?13184:13208;c[(ba&p)+8>>2]=y;c[(ba&p)+12>>2]=aa;c[(ba&p)+16>>2]=t;Br(ca,30008,ba);mg(A,t);Dr(ca,q);c[(ba&p)>>2]=y;Ir(r,q,uh(A,30072,ba)|0);if(!(a[(s&n)>>0]|0)){k=0;l=z;break}}l=Ik((c[((c[(w&p)>>2]|0)+(q<<4)&p)+12>>2]|0)+40|0,y,z)|0;if(l){a[(A&n)+65>>0]=1;k=0;break}k=c[(m&p)>>2]|0;if((k|0)==(c[(z&p)+24>>2]|0)){k=bn(k+8|0,c[(z&p)+4>>2]|0,ba)|0;if(!k)k=0;else k=c[(k&p)+8>>2]|0;k=k+64|0;c[(z&p)+32>>2]=c[(k&p)>>2];c[(k&p)>>2]=z;k=0}else k=0}else{k=0;l=z}}else l=z;while(0);jg(A,l);Fk(A,k);break}case 265:{D=f+(da+-7<<4)+16|0;C=da+-6|0;E=f+(C<<4)+16|0;r=c[(f+(da+-5<<4)&p)+16>>2]|0;F=da+-4|0;B=c[(f+(F<<4)&p)+16>>2]|0;F=c[(f+(F<<4)&p)+20>>2]|0;H=c[(f+(da+-2<<4)&p)+16>>2]|0;I=c[(f+(da<<4)&p)+16>>2]|0;k=c[(f+(da+-8<<4)&p)+16>>2]|0;J=c[(ca&p)>>2]|0;z=(c[(f+(da+-10<<4)&p)+16>>2]|0)!=0;do if(z)if(!(c[(f+(C<<4)&p)+20>>2]|0)){c[($&p)>>2]=D;if(!H){s=0;t=0;break}else{v=1;aa=483;break}}else{th(ca,29664,ba);s=0;t=0;break}else{v=er(ca,D,E,$)|0;if((v|0)>-1&(H|0)!=0)aa=483;else{s=0;t=0}}while(0);do if((aa|0)==483){h=J+65|0;if(!(a[(h&n)>>0]|0)){x=J+145|0;if((a[(x&n)>>0]|0)!=0&(v|0)!=1){aa=H+12|0;mg(J,c[(aa&p)>>2]|0);c[(aa&p)>>2]=0}w=Jr(ca,H)|0;if((a[(x&n)>>0]|0)==0?((w|0)!=0?(c[(f+(C<<4)&p)+20>>2]|0)==0:0):0)v=(c[(w&p)+68>>2]|0)==(c[((c[(J&p)+16>>2]|0)&p)+28>>2]|0)?1:v;if((a[(h&n)>>0]|0)==0?(R=c[($&p)>>2]|0,aa=c[(ca&p)>>2]|0,c[(_&p)>>2]=ca,aa=c[(aa&p)+16>>2]|0,c[(_&p)+12>>2]=c[(aa+(v<<4)&p)>>2],c[(_&p)+4>>2]=c[(aa+(v<<4)&p)+12>>2],c[(_&p)+16>>2]=10720,c[(_&p)+20>>2]=R,c[(_&p)+8>>2]=(v|0)==1&1,(Kr(_,H)|0)==0):0){x=Jr(ca,H)|0;if(!x){if((a[(J&n)+144>>0]|0)!=1){s=0;t=0;break}a[(J&n)+146>>0]=1;s=0;t=0;break}if(a[(x&n)+44>>0]&16){th(ca,29712,ba);s=0;t=0;break}t=Wq(J,R)|0;if(t)if(!(Lr(ca,t)|0)){A=J+16|0;aa=bn((c[((c[(A&p)>>2]|0)+(v<<4)&p)+12>>2]|0)+40|0,t,S)|0;if((aa|0)!=0?(c[(aa&p)+8>>2]|0)!=0:0)if(!k){c[(ba&p)>>2]=R;th(ca,29760,ba);s=0;break}else{Ar(ca,v);s=0;break}y=c[(x&p)>>2]|0;if(!(Fc(y,25568,7)|0)){th(ca,29792,ba);s=ca+64|0;c[(s&p)>>2]=(c[(s&p)>>2]|0)+1;s=0;break}u=c[(x&p)+12>>2]|0;if((u|0)!=0&(r|0)!=49){c[(ba&p)>>2]=(r|0)==35?29872:29880;c[(ba&p)+4>>2]=H;c[(ba&p)+8>>2]=0;th(ca,29832,ba);s=0;break}q=(r|0)==49;if((u|0)==0&q){c[(ba&p)>>2]=H;c[(ba&p)+4>>2]=0;th(ca,29888,ba);s=0;break}m=x+68|0;x=c[(m&p)>>2]|0;i:do if(x){w=c[(J&p)+20>>2]|0;if((w|0)>0){k=c[(A&p)>>2]|0;l=0;while(1){h=l+1|0;if((c[(k+(l<<4)&p)+12>>2]|0)==(x|0)){h=l;break i}if((h|0)<(w|0))l=h;else break}}else h=0}else h=-1e6;while(0);x=c[(A&p)>>2]|0;k=c[(x+(h<<4)&p)>>2]|0;if(z)w=c[(x&p)+16>>2]|0;else w=k;x=(h|0)==1;if((Sq(ca,x|z?5:7,t,y,w)|0)==0?(Sq(ca,18,x?13184:13208,0,k)|0)==0:0){s=mh(J,36,0)|0;if(!s){s=0;break}y=s+0|0;k=y+36|0;do{a[(y&n)>>0]=0;y=y+1|0}while((y|0)<(k|0));c[(s&p)>>2]=t;c[(s&p)+4>>2]=kh(J,c[(H&p)+16>>2]|0)|0;c[(s&p)+20>>2]=c[((c[(A&p)>>2]|0)+(v<<4)&p)+12>>2];c[(s&p)+24>>2]=c[(m&p)>>2];a[(s&n)+8>>0]=B;a[(s&n)+9>>0]=q|(r|0)==35?1:2;c[(s&p)+12>>2]=Mr(J,I,1,0)|0;c[(s&p)+16>>2]=Nr(J,F)|0;c[(ca&p)+488>>2]=s;t=0}else s=0}else s=0;else{s=0;t=0}}else{s=0;t=0}}else{s=0;t=0}}while(0);mg(J,t);Do(J,H);Hk(J,F);Gk(J,I);if(!(c[(ca&p)+488>>2]|0))jg(J,s);if(!(c[(f+(C<<4)&p)+20>>2]|0)){aa=D;ba=c[(aa&p)+4>>2]|0;ca=ea;c[(ca&p)>>2]=c[(aa&p)>>2];c[(ca&p)+4>>2]=ba;break a}else{aa=E;ba=c[(aa&p)+4>>2]|0;ca=ea;c[(ca&p)>>2]=c[(aa&p)>>2];c[(ca&p)+4>>2]=ba;break a}}case 269:case 266:{c[(ea&p)>>2]=35;break}case 267:{c[(ea&p)>>2]=31;break}case 268:{c[(ea&p)>>2]=49;break}case 284:{l=c[(ca&p)>>2]|0;k=c[(f+(da+-1<<4)&p)+16>>2]|0;h=c[(f+(da<<4)&p)+16>>2]|0;m=a[(f+(da+-5<<4)&n)+16>>0]|0;q=Or(l,110,f+(da+-4<<4)+16|0)|0;if(q){c[(q&p)+24>>2]=Pr(l,k,1)|0;c[(q&p)+20>>2]=Mr(l,h,1,0)|0;a[(q&n)+1>>0]=m}Nk(l,k);Gk(l,h);c[(ea&p)>>2]=q;break}case 271:case 270:{c[(ea&p)>>2]=d[(f+(da<<4)&n)+14>>0];c[(ea&p)+4>>2]=0;break}case 272:{c[(ea&p)>>2]=110;c[(ea&p)+4>>2]=c[(f+(da<<4)&p)+16>>2];break}case 296:case 275:{c[(ea&p)>>2]=0;break}case 297:case 276:{c[(ea&p)>>2]=c[(f+(da<<4)&p)+16>>2];break}case 277:{ba=f+(da+-1<<4)+16|0;ca=f+(da+-2<<4)+16|0;c[((c[((c[(ca&p)>>2]|0)&p)+36>>2]|0)&p)+32>>2]=c[(ba&p)>>2];c[((c[(ca&p)>>2]|0)&p)+36>>2]=c[(ba&p)>>2];c[(ea&p)>>2]=c[(ca&p)>>2];break}case 278:{ca=f+(da+-1<<4)+16|0;ba=c[(ca&p)>>2]|0;c[(ba&p)+36>>2]=ba;c[(ea&p)>>2]=c[(ca&p)>>2];break}case 282:{th(ca,20736,ba);break}case 280:{_=f+(da<<4)+16|0;$=c[(_&p)+4>>2]|0;aa=ea;c[(aa&p)>>2]=c[(_&p)>>2];c[(aa&p)+4>>2]=$;th(ca,20640,ba);break}case 283:{th(ca,20824,ba);break}case 286:{h=c[(ca&p)>>2]|0;k=c[(f+(da<<4)&p)+16>>2]|0;l=Or(h,109,f+(da+-2<<4)+16|0)|0;if(l){c[(l&p)+20>>2]=Mr(h,k,1,0)|0;a[(l&n)+1>>0]=10}Gk(h,k);c[(ea&p)>>2]=l;break}case 287:{l=c[(ca&p)>>2]|0;q=c[(f+(da<<4)&p)+16>>2]|0;h=mh(l,40,0)|0;if(!h){Mk(l,q,1);h=0}else{y=h+0|0;k=y+40|0;do{a[(y&n)>>0]=0;y=y+1|0}while((y|0)<(k|0));a[(h&n)>>0]=119;c[(h&p)+8>>2]=q;a[(h&n)+1>>0]=10}c[(ea&p)>>2]=h;break}case 285:{q=c[(ca&p)>>2]|0;m=c[(f+(da+-1<<4)&p)+16>>2]|0;l=c[(f+(da<<4)&p)+16>>2]|0;k=a[(f+(da+-4<<4)&n)+16>>0]|0;h=Or(q,108,f+(da+-2<<4)+16|0)|0;if(!h)Hk(q,m);else{c[(h&p)+8>>2]=gr(q,l,1)|0;c[(h&p)+28>>2]=m;a[(h&n)+1>>0]=k}Mk(q,l,1);c[(ea&p)>>2]=h;break}case 288:{h=Zq(ca,57,0,0,0)|0;c[(ea&p)>>2]=h;if(h)a[(h&n)+1>>0]=4;c[(ea&p)+4>>2]=c[(f+(da+-3<<4)&p)+16>>2];c[(ea&p)+8>>2]=(c[(f+(da<<4)&p)+16>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0);break}case 289:{h=Zq(ca,57,0,0,f+(da+-1<<4)+16|0)|0;c[(ea&p)>>2]=h;if(h)a[(h&n)+1>>0]=c[(f+(da+-3<<4)&p)+16>>2];c[(ea&p)+4>>2]=c[(f+(da+-5<<4)&p)+16>>2];c[(ea&p)+8>>2]=(c[(f+(da<<4)&p)+16>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0);break}case 290:{c[(ea&p)>>2]=1;break}case 292:{c[(ea&p)>>2]=3;break}case 293:{k=c[(f+(da<<4)&p)+16>>2]|0;h=c[(f+(da+-1<<4)&p)+16>>2]|0;w=c[(ca&p)>>2]|0;do if((a[(w&n)+65>>0]|0)==0?(Gn(ca)|0)==0:0){x=c[(k&p)+12>>2]|0;v=c[(k&p)+16>>2]|0;u=w+20|0;if((c[(u&p)>>2]|0)>0){q=(x|0)==0;m=w+16|0;l=0;s=0;do{r=(l|0)<2^l;t=c[(m&p)>>2]|0;if(!(!q?(dd(c[(t+(r<<4)&p)>>2]|0,x)|0)!=0:0)){t=bn((c[(t+(r<<4)&p)+12>>2]|0)+40|0,v,L)|0;if(t){s=c[(t&p)+8>>2]|0;if(s)break}else s=0}l=l+1|0}while((l|0)<(c[(u&p)>>2]|0));if(s){Qr(ca,s);break}}if(!h){c[(ba&p)>>2]=k;c[(ba&p)+4>>2]=0;th(ca,29600,ba)}else zr(ca,x);a[(ca&n)+17>>0]=1}while(0);Do(w,k);break}case 294:{ba=c[(f+(da+-3<<4)&p)+16>>2]|0;Rr(ca,24,29360,ba,ba,c[(f+(da+-1<<4)&p)+16>>2]|0,c[(f+(da<<4)&p)+16>>2]|0);break}case 303:{Tr(ca,f+(da+-1<<4)+16|0,f+(da<<4)+16|0);break}case 304:{z=c[(f+(da+-3<<4)&p)+16>>2]|0;x=f+(da<<4)+16|0;y=c[(ca&p)>>2]|0;k=y+24|0;l=c[(k&p)>>2]|0;do if((a[(y&n)+65>>0]|0)==0?(X=Ur(ca,0,z+8|0)|0,(X|0)!=0):0){t=c[(ca&p)>>2]|0;A=X+68|0;v=c[(A&p)>>2]|0;j:do if(v){u=c[(t&p)+20>>2]|0;if((u|0)>0){t=c[(t&p)+16>>2]|0;r=0;while(1){s=r+1|0;if((c[(t+(r<<4)&p)+12>>2]|0)==(v|0)){s=r;break j}if((s|0)<(u|0))r=s;else break}}else s=0}else s=-1e6;while(0);h=c[((c[(y&p)+16>>2]|0)+(s<<4)&p)>>2]|0;c[(k&p)>>2]=c[(k&p)>>2]|2097152;q=Wq(y,x)|0;if(q){if((_h(y,q,h)|0)==0?(bq(y,q,h)|0)==0:0){if(Vr(ca,c[(X&p)>>2]|0)|0)break;if(Lr(ca,q)|0)break;t=c[(X&p)>>2]|0;if(c[(X&p)+12>>2]|0){c[(ba&p)>>2]=t;th(ca,26088,ba);break}if(Sq(ca,26,h,t,0)|0)break;if(hr(ca,X)|0)break;if(!(a[(X&n)+44>>0]&16))m=0;else{t=c[(X&p)+60>>2]|0;k:do if(!t)t=0;else while(1){if((c[(t&p)>>2]|0)==(y|0))break k;t=c[(t&p)+24>>2]|0;if(!t){t=0;break}}while(0);m=(c[((c[(c[(t&p)+8>>2]&p)>>2]|0)&p)+76>>2]|0)==0?0:t}t=Oq(ca)|0;if(!t)break;aa=(m|0)!=0;r=ca+408|0;$=c[(r&p)>>2]|0;$=($|0)==0?ca:$;Ar(ca,s);_=$+328|0;c[(_&p)>>2]=c[(_&p)>>2]|1<>0]=d[($&n)>>0]|aa&1;Dr(ca,s);if(aa){$=ca+72|0;aa=(c[($&p)>>2]|0)+1|0;c[($&p)>>2]=aa;xh(t,wh(t,97,0,aa,0)|0,q,0);xh(t,wh(t,152,aa,0,0)|0,m,-10);aa=c[(r&p)>>2]|0;a[(((aa|0)==0?ca:aa)&n)+21>>0]=1}x=c[(X&p)>>2]|0;w=Nn(x,-1)|0;do if((c[(k&p)>>2]&524288|0)!=0?(T=bn((c[(A&p)>>2]|0)+56|0,x,V)|0,(T|0)!=0):0){t=c[(T&p)+8>>2]|0;if(!t)break;r=t;t=0;do{t=Wr(c[(ca&p)>>2]|0,t,c[(c[(r&p)>>2]&p)>>2]|0)|0;r=c[(r&p)+12>>2]|0}while((r|0)!=0);if(!t)break;c[(ba&p)>>2]=h;c[(ba&p)+4>>2]=(s|0)==1?13184:13208;c[(ba&p)+8>>2]=x;c[(ba&p)+12>>2]=q;c[(ba&p)+16>>2]=t;Br(ca,26120,ba);mg(y,t)}while(0);c[(ba&p)>>2]=h;c[(ba&p)+4>>2]=(s|0)==1?13184:13208;c[(ba&p)+8>>2]=q;c[(ba&p)+12>>2]=q;c[(ba&p)+16>>2]=q;c[(ba&p)+20>>2]=q;c[(ba&p)+24>>2]=q;c[(ba&p)+28>>2]=w;c[(ba&p)+32>>2]=x;Br(ca,26192,ba);if(_h(y,26576,h)|0){aa=c[(X&p)>>2]|0;c[(ba&p)>>2]=h;c[(ba&p)+4>>2]=q;c[(ba&p)+8>>2]=aa;Br(ca,26592,ba)}s=Xr(ca,X)|0;if(s){c[(ba&p)>>2]=q;c[(ba&p)+4>>2]=q;c[(ba&p)+8>>2]=s;Br(ca,26656,ba);mg(y,s)}do if(c[(k&p)>>2]&524288){s=bn((c[(A&p)>>2]|0)+56|0,c[(X&p)>>2]|0,ba)|0;if(!s)break;s=c[(s&p)+8>>2]|0;if(!s)break;do{r=c[(s&p)>>2]|0;if((r|0)!=(X|0))Yr(ca,r,c[(r&p)>>2]|0);s=c[(s&p)+12>>2]|0}while((s|0)!=0)}while(0);Yr(ca,X,q);break}c[(ba&p)>>2]=q;th(ca,26024,ba)}else q=0}else q=0;while(0);Do(y,z);mg(y,q);c[(k&p)>>2]=l;break}case 295:{ba=c[(f+(da<<4)&p)+16>>2]|0;Rr(ca,25,29176,ba,0,0,ba);break}case 300:{Sr(ca,0,0);break}case 302:{Tr(ca,0,0);break}case 301:{Sr(ca,f+(da+-1<<4)+16|0,f+(da<<4)+16|0);break}case 305:{y=c[(ca&p)>>2]|0;if((c[(ca&p)+64>>2]|0)==0?(M=y+65|0,(a[(M&n)>>0]|0)==0):0){l=c[(ca&p)+484>>2]|0;t=c[(l&p)+68>>2]|0;l:do if(t){s=c[(y&p)+20>>2]|0;if((s|0)>0){r=c[(y&p)+16>>2]|0;m=0;while(1){q=m+1|0;if((c[(r+(m<<4)&p)+12>>2]|0)==(t|0)){A=m;break l}if((q|0)<(s|0))m=q;else{A=q;break}}}else A=0}else A=-1e6;while(0);h=c[((c[(y&p)+16>>2]|0)+(A<<4)&p)>>2]|0;k=(c[(l&p)>>2]|0)+16|0;u=(b[(l&o)+38>>1]|0)+-1|0;s=c[(l&p)+4>>2]|0;t=c[(s+(u*24|0)&p)+4>>2]|0;z=_h(y,k,h)|0;if(!(Sq(ca,26,h,c[(z&p)>>2]|0,0)|0)){if(!t)v=0;else v=(a[(t&n)>>0]|0)==101?0:t;if(a[(s+(u*24|0)&n)+23>>0]&1){th(ca,25608,ba);break a}if(c[(l&p)+8>>2]|0){th(ca,25640,ba);break a}x=y+24|0;if((c[(x&p)>>2]&524288|0)!=0?(c[(l&p)+16>>2]|0)!=0&(v|0)!=0:0){th(ca,25672,ba);break a}w=(v|0)!=0;if(!((a[(s+(u*24|0)&n)+20>>0]|0)==0|w)){th(ca,25736,ba);break a}do if(w){c[(O&p)>>2]=0;if(Zr(y,v,1,65,O)|0){a[(M&n)>>0]=1;break a}t=c[(O&p)>>2]|0;if(!t){th(ca,25792,ba);break a}else{Mh(t);break}}while(0);t=c[(f+(da<<4)&p)+16>>2]|0;s=f+(da<<4)+20|0;r=c[(s&p)>>2]|0;if((t|0)!=0?(U=jw(r|0,0,1,0)|0,U=mh(y,U,G)|0,(U|0)!=0):0){kw(U|0,t|0,r|0)|0;a[(U+r&n)>>0]=0;t=(c[(s&p)>>2]|0)+-1|0;s=c[(x&p)>>2]|0;m:do if((t|0)>0){t=U+t|0;do{$=a[(t&n)>>0]|0;if($<<24>>24!=59?(a[($&255&n)+10368>>0]&1)==0:0)break m;a[(t&n)>>0]=0;t=t+-1|0}while(t>>>0>U>>>0)}while(0);c[(x&p)>>2]=c[(x&p)>>2]|2097152;$=c[(l&p)+48>>2]|0;c[(ba&p)>>2]=h;c[(ba&p)+4>>2]=(A|0)==1?13184:13208;c[(ba&p)+8>>2]=$;c[(ba&p)+12>>2]=U;c[(ba&p)+16>>2]=$+1;c[(ba&p)+20>>2]=k;Br(ca,25840,ba);mg(y,U);c[(x&p)>>2]=s}t=w?3:2;v=Oq(ca)|0;if(v){s=ca+19|0;q=a[(s&n)>>0]|0;do if(q<<24>>24){ba=q+-1<<24>>24;a[(s&n)>>0]=ba;r=c[(ca+((ba&255)<<2)&p)+24>>2]|0;if(!(ba<<24>>24)){s=c[(ca&p)+72>>2]|0;aa=663;break}else{k=q+-2<<24>>24;a[(s&n)>>0]=k;k=c[(ca+((k&255)<<2)&p)+24>>2]|0;break}}else{r=ca+72|0;s=(c[(r&p)>>2]|0)+1|0;c[(r&p)>>2]=s;r=s;aa=663}while(0);if((aa|0)==663){k=s+1|0;c[(ca&p)+72>>2]=k}wh(v,51,A,r,2)|0;m=v+96|0;c[(m&p)>>2]=c[(m&p)>>2]|1<>2]|0;s=v+32|0;if(q)a[(q+(((c[(s&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=-112;wh(v,52,A,2,k)|0;s=c[(s&p)>>2]|0;if(s>>>0>m>>>0)c[((c[(l&p)>>2]|0)+(m*20|0)&p)+8>>2]=s;c[((c[(v&p)+24>>2]|0)&p)+88>>2]=s+-1;_r(ca,r);_r(ca,k)}Yr(ca,z,c[(z&p)>>2]|0)}}break}case 306:{w=c[(ca&p)>>2]|0;a[(w&n)+250>>0]=0;h=c[(f+(da<<4)&p)+16>>2]|0;x=w+65|0;do if((a[(x&n)>>0]|0)==0?(Q=Ur(ca,0,h+8|0)|0,(Q|0)!=0):0){if(a[(Q&n)+44>>0]&16){th(ca,25400,ba);break}if(c[(Q&p)+12>>2]|0){th(ca,25440,ba);break}if(!(Vr(ca,c[(Q&p)>>2]|0)|0)){s=c[(Q&p)+68>>2]|0;n:do if(s){r=c[(w&p)+20>>2]|0;if((r|0)>0){q=c[(w&p)+16>>2]|0;t=0;while(1){m=t+1|0;if((c[(q+(t<<4)&p)+12>>2]|0)==(s|0)){m=t;break n}if((m|0)<(r|0))t=m;else break}}else m=0}else m=-1e6;while(0);v=mh(w,76,0)|0;if(v){y=v+0|0;k=y+76|0;do{a[(y&n)>>0]=0;y=y+1|0}while((y|0)<(k|0));c[(ca&p)+484>>2]=v;r=v+40|0;b[(r&o)>>1]=1;t=b[(Q&o)+38>>1]|0;q=v+38|0;b[(q&o)>>1]=t;t=((((t<<16>>16)+-1|0)/8|0)*192|0)+192|0;s=mh(w,t,0)|0;if(s)fw(s|0,0,t|0)|0;t=v+4|0;c[(t&p)>>2]=s;c[(ba&p)>>2]=c[(Q&p)>>2];ba=uh(w,25472,ba)|0;c[(v&p)>>2]=ba;s=c[(t&p)>>2]|0;if((s|0)==0|(ba|0)==0){a[(x&n)>>0]=1;break}kw(s|0,c[(Q&p)+4>>2]|0,(b[(q&o)>>1]|0)*24|0)|0;if((b[(q&o)>>1]|0)>0){s=0;do{ba=c[(t&p)>>2]|0;aa=ba+(s*24|0)|0;c[(aa&p)>>2]=kh(w,c[(aa&p)>>2]|0)|0;ba=ba+(s*24|0)+4|0;s=s+1|0;c[(ba&p)>>2]=0;c[(ba&p)+4>>2]=0;c[(ba&p)+8>>2]=0;c[(ba&p)+12>>2]=0}while((s|0)<(b[(q&o)>>1]|0))}c[(v&p)+68>>2]=c[((c[(w&p)+16>>2]|0)+(m<<4)&p)+12>>2];c[(v&p)+48>>2]=c[(Q&p)+48>>2];b[(r&o)>>1]=1;ba=c[(ca&p)+408>>2]|0;Ar(ca,m);ba=((ba|0)==0?ca:ba)+328|0;c[(ba&p)>>2]=c[(ba&p)>>2]|1<>2]|0);t=c[(ca&p)+484>>2]|0;if(t){h=c[(ca&p)>>2]|0;s=c[(t&p)+68>>2]|0;o:do if(s){r=c[(h&p)+20>>2]|0;if((r|0)>0){m=c[(h&p)+16>>2]|0;l=0;while(1){q=l+1|0;if((c[(m+(l<<4)&p)+12>>2]|0)==(s|0)){q=l;break o}if((q|0)<(r|0))l=q;else break}}else q=0}else q=-1e6;while(0);l=t+44|0;a[(l&n)>>0]=d[(l&n)>>0]|16;c[(t&p)+52>>2]=0;as(h,t,Wq(h,k)|0);as(h,t,0);as(h,t,kh(h,c[(t&p)>>2]|0)|0);c[(ca&p)+500>>2]=(c[(k&p)>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0)-(c[(ca&p)+496>>2]|0);l=c[(t&p)+56>>2]|0;if(l)Sq(ca,29,c[(t&p)>>2]|0,c[(l&p)>>2]|0,c[((c[((c[(ca&p)>>2]|0)&p)+16>>2]|0)+(q<<4)&p)>>2]|0)|0}break}case 322:{c[(ea&p)>>2]=0;break}case 324:case 323:{c[(ea&p)>>2]=c[(f+(da<<4)&p)+16>>2];break}case 325:{c[(ea&p)>>2]=cs(ca,0,f+(da+-5<<4)+16|0,c[(f+(da+-4<<4)&p)+16>>2]|0,c[(f+(da+-1<<4)&p)+16>>2]|0)|0;break}case 326:{c[(ea&p)>>2]=cs(ca,c[(f+(da+-7<<4)&p)+16>>2]|0,f+(da+-5<<4)+16|0,c[(f+(da+-4<<4)&p)+16>>2]|0,c[(f+(da+-1<<4)&p)+16>>2]|0)|0;break}case 314:{bs(ca);c[(ca&p)+512>>2]=0;c[(ca&p)+516>>2]=0;break}case 318:case 317:case 316:{l=ca+512|0;k=c[(l&p)>>2]|0;h=c[(f+(da<<4)&p)+16>>2]|0;if(!k){c[(l&p)>>2]=h;h=c[(f+(da<<4)&p)+20>>2]|0}else h=h+(c[(f+(da<<4)&p)+20>>2]|0)-k|0;c[(ca&p)+516>>2]=h;break}case 77:{c[(ea&p)>>2]=8;break}case 78:{c[(ea&p)>>2]=9;break}case 79:{c[(ea&p)>>2]=6;break}case 80:{c[(ea&p)>>2]=0;break}case 103:case 100:case 98:case 82:{c[(ea&p)>>2]=c[(f+(da<<4)&p)+16>>2];break}case 86:{c[(ea&p)+4>>2]=0;c[(ea&p)>>2]=0;break}case 87:{aa=f+(da+-1<<4)+16|0;ba=c[(aa&p)+4>>2]|0;ca=ea;c[(ca&p)>>2]=c[(aa&p)>>2];c[(ca&p)+4>>2]=ba;break}case 90:{c[(ca&p)+324>>2]=0;break}case 109:{h=da+-7|0;r=f+(da+-3<<4)+16|0;q=f+(da+-2<<4)+16|0;x=c[(f+(da<<4)&p)+16>>2]|0;t=c[(f+(da+-6<<4)&p)+16>>2]|0;s=c[(f+(da+-4<<4)&p)+16>>2]|0;c[(I&p)>>2]=0;w=c[(ca&p)>>2]|0;if((c[(ca&p)+440>>2]|0)>0){th(ca,35440,ba);Mk(w,x,1);break a}Uq(ca,r,q,t,1,0,s);l=c[(ca&p)+484>>2]|0;if((l|0)!=0?(c[(ca&p)+64>>2]|0)==0:0){er(ca,r,q,I)|0;t=c[(l&p)+68>>2]|0;p:do if(t){r=c[(w&p)+20>>2]|0;if((r|0)>0){q=c[(w&p)+16>>2]|0;m=0;while(1){s=m+1|0;if((c[(q+(m<<4)&p)+12>>2]|0)==(t|0)){s=m;break p}if((s|0)<(r|0))m=s;else break}}else s=0}else s=-1e6;while(0);ba=c[(I&p)>>2]|0;aa=c[(ca&p)>>2]|0;c[(_&p)>>2]=ca;aa=c[(aa&p)+16>>2]|0;c[(_&p)+12>>2]=c[(aa+(s<<4)&p)>>2];c[(_&p)+4>>2]=c[(aa+(s<<4)&p)+12>>2];c[(_&p)+16>>2]=35480;c[(_&p)+20>>2]=ba;c[(_&p)+8>>2]=(s|0)==1&1;if(fr(_,x)|0){Mk(w,x,1);break a}c[(l&p)+12>>2]=gr(w,x,1)|0;Mk(w,x,1);if(a[(w&n)+65>>0]|0)break a;if(!(a[(w&n)+145>>0]|0))hr(ca,l)|0;q=ca+504|0;m=c[(q&p)>>2]|0;q=c[(q&p)+4>>2]|0;ba=$;c[(ba&p)>>2]=m;c[(ba&p)+4>>2]=q;ba=a[(m&n)>>0]|0;if(!(ba<<24>>24==59|ba<<24>>24==0)){m=m+q|0;c[($&p)>>2]=m}r=$+4|0;c[(r&p)>>2]=0;s=c[(f+(h<<4)&p)+16>>2]|0;q=m-s|0;do{ba=q;q=q+-1|0;l=s+q|0;if((ba|0)<=0)break}while((a[((d[(l&n)>>0]|0)&n)+10368>>0]&1)!=0);c[($&p)>>2]=l;c[(r&p)>>2]=1;Vq(ca,0,$,0,0);break a}Mk(w,x,1);break}case 93:{_q(ca,c[(f+(da+-3<<4)&p)+16>>2]|0,c[(f+(da<<4)&p)+16>>2]|0,c[(f+(da+-2<<4)&p)+16>>2]|0,0);break}case 94:{$q(ca,0,0,0,c[(f+(da+-2<<4)&p)+16>>2]|0,c[(f+(da<<4)&p)+16>>2]|0,0,0,0,0)|0;break}case 95:{ar(ca,c[(f+(da+-2<<4)&p)+16>>2]|0);break}case 96:{br(ca,c[(f+(da+-6<<4)&p)+16>>2]|0,f+(da+-3<<4)+16|0,c[(f+(da+-2<<4)&p)+16>>2]|0,c[(f+(da+-1<<4)&p)+16>>2]|0);k=c[(f+(da<<4)&p)+16>>2]|0;l=c[(ca&p)+484>>2]|0;if((l|0)!=0?(q=c[(l&p)+16>>2]|0,(q|0)!=0):0)a[(q&n)+24>>0]=k;break}case 99:{c[(ea&p)>>2]=10;break}case 101:{a[(ea&n)>>0]=10;break}case 102:{a[(ea&n)>>0]=c[(f+(da<<4)&p)+16>>2];break}case 104:{c[(ea&p)>>2]=4;break}case 105:{c[(ea&p)>>2]=5;break}case 106:{dr(ca,c[(f+(da<<4)&p)+16>>2]|0,0,c[(f+(da+-1<<4)&p)+16>>2]|0);break}case 110:{dr(ca,c[(f+(da<<4)&p)+16>>2]|0,1,c[(f+(da+-1<<4)&p)+16>>2]|0);break}case 111:{c[(z&p)>>2]=c[5124];c[(z&p)+4>>2]=c[5125];c[(z&p)+8>>2]=c[5126];c[(z&p)+12>>2]=c[5127];c[(z&p)+16>>2]=c[5128];ba=f+(da<<4)+16|0;ir(ca,c[(ba&p)>>2]|0,z)|0;Mk(c[(ca&p)>>2]|0,c[(ba&p)>>2]|0,1);break}case 112:{t=c[(f+(da<<4)&p)+16>>2]|0;do if(t){c[(t&p)+68>>2]=c[(f+(da+-1<<4)&p)+16>>2];l=c[(t&p)+52>>2]|0;if(l){m=128;q=1;r=t;s=0;while(1){c[(r&p)+56>>2]=s;$=r+6|0;aa=e[($&o)>>1]|64;b[($&o)>>1]=aa;m=aa&m;if(!l)break;aa=l;l=c[(l&p)+52>>2]|0;q=q+1|0;s=r;r=aa}if(m){ca=t+6|0;b[(ca&o)>>1]=e[(ca&o)>>1]|256;break}aa=c[((c[(ca&p)>>2]|0)&p)+104>>2]|0;if((aa|0)>0&(q|0)>(aa|0))th(ca,20520,ba)}}else Qn(c[(ca&p)>>2]|0,c[(f+(da+-1<<4)&p)+16>>2]|0);while(0);c[(ea&p)>>2]=t;break}case 116:{c[(ea&p)>>2]=116;break}case 119:case 113:{c[(ea&p)>>2]=c[(f+(da<<4)&p)+16>>2];break}case 114:{h=c[(f+(da<<4)&p)+16>>2]|0;do if(h){if(c[(h&p)+52>>2]|0){c[(l&p)+4>>2]=0;h=kr(ca,0,jr(ca,0,0,0,l,h,0,0)|0,0,0,0,0,0,0,0)|0;if(!h){aa=192;break}}ba=c[(f+(da+-1<<4)&p)+16>>2]|0;a[(h&n)+4>>0]=ba;c[(h&p)+52>>2]=c[(f+(da+-2<<4)&p)+16>>2];if((ba|0)!=116)a[(ca&n)+22>>0]=1}else aa=192;while(0);if((aa|0)==192){Mk(c[(ca&p)>>2]|0,c[(f+(da+-2<<4)&p)+16>>2]|0,1);h=0}c[(ea&p)>>2]=h;break}case 121:{h=kr(ca,c[(f+(da+-1<<4)&p)+16>>2]|0,0,0,0,0,0,128,0,0)|0;if(!h){c[(ea&p)>>2]=c[(f+(da+-4<<4)&p)+16>>2];break a}else{a[(h&n)+4>>0]=116;c[(h&p)+52>>2]=c[(f+(da+-4<<4)&p)+16>>2];c[(ea&p)>>2]=h;break a}}case 122:{b[(ea&o)>>1]=1;break}case 124:case 123:{b[(ea&o)>>1]=0;break}case 242:case 236:case 161:case 154:case 126:{c[(ea&p)>>2]=0;break}case 243:case 125:{c[(ea&p)>>2]=c[(f+(da+-1<<4)&p)+16>>2];break}case 167:{c[(ea&p)>>2]=c[(f+(da+-2<<4)&p)+16>>2];c[(ea&p)+4>>2]=c[(f+(da<<4)&p)+16>>2];break}case 168:{c[(ea&p)+4>>2]=c[(f+(da+-2<<4)&p)+16>>2];c[(ea&p)>>2]=c[(f+(da<<4)&p)+16>>2];break}case 169:{h=c[(f+(da+-5<<4)&p)+16>>2]|0;if(h){ba=ca+532|0;c[(h&p)+4>>2]=c[(ba&p)>>2];c[(ba&p)>>2]=h;a[(ca&n)+449>>0]=1}ba=f+(da+-2<<4)+16|0;or(ca,c[(ba&p)>>2]|0,f+(da+-1<<4)+16|0);rr(ca,c[(ba&p)>>2]|0,c[(f+(da<<4)&p)+16>>2]|0);break}case 176:{h=c[(f+(da+-6<<4)&p)+16>>2]|0;if(h){ba=ca+532|0;c[(h&p)+4>>2]=c[(ba&p)>>2];c[(ba&p)>>2]=h;a[(ca&n)+449>>0]=1}tr(ca,c[(f+(da+-3<<4)&p)+16>>2]|0,0,c[(f+(da+-2<<4)&p)+16>>2]|0,d[(f+(da+-5<<4)&n)+16>>0]|0);break}case 173:{ba=lr(ca,c[(f+(da+-4<<4)&p)+16>>2]|0,c[(f+(da<<4)&p)+16>>2]|0)|0;c[(ea&p)>>2]=ba;mr(ca,ba,f+(da+-2<<4)+16|0,1);break}case 174:{ba=lr(ca,0,c[(f+(da<<4)&p)+16>>2]|0)|0;c[(ea&p)>>2]=ba;mr(ca,ba,f+(da+-2<<4)+16|0,1);break}case 175:{h=c[(f+(da+-5<<4)&p)+16>>2]|0;if(h){ba=ca+532|0;c[(h&p)+4>>2]=c[(ba&p)>>2];c[(ba&p)>>2]=h;a[(ca&n)+449>>0]=1}tr(ca,c[(f+(da+-2<<4)&p)+16>>2]|0,c[(f+(da<<4)&p)+16>>2]|0,c[(f+(da+-1<<4)&p)+16>>2]|0,d[(f+(da+-4<<4)&n)+16>>0]|0);break}case 181:{c[(ea&p)>>2]=ur(c[(ca&p)>>2]|0,c[(f+(da+-2<<4)&p)+16>>2]|0,f+(da<<4)+16|0)|0;break}case 182:{c[(ea&p)>>2]=ur(c[(ca&p)>>2]|0,0,f+(da<<4)+16|0)|0;break}case 183:{ca=f+(da<<4)+16|0;c[(ea&p)>>2]=c[(ca&p)>>2];c[(ea&p)+4>>2]=c[(ca&p)+4>>2];c[(ea&p)+8>>2]=c[(ca&p)+8>>2];break}case 177:{a[(ea&n)>>0]=a[(f+(da<<4)&n)+16>>0]|0;break}case 178:{a[(ea&n)>>0]=5;break}case 184:{c[(ea&p)>>2]=c[(f+(da+-1<<4)&p)+16>>2];c[(ea&p)+4>>2]=c[(f+(da+-2<<4)&p)+16>>2];c[(ea&p)+8>>2]=(c[(f+(da<<4)&p)+16>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0);break}case 191:case 190:case 185:{ba=f+(da<<4)+16|0;c[(ea&p)>>2]=Zq(ca,d[(f+(da<<4)&n)+14>>0]|0,0,0,ba)|0;ca=c[(ba&p)>>2]|0;c[(ea&p)+4>>2]=ca;c[(ea&p)+8>>2]=ca+(c[(f+(da<<4)&p)+20>>2]|0);break}case 187:case 186:{ba=f+(da<<4)+16|0;c[(ea&p)>>2]=Zq(ca,27,0,0,ba)|0;ca=c[(ba&p)>>2]|0;c[(ea&p)+4>>2]=ca;c[(ea&p)+8>>2]=ca+(c[(f+(da<<4)&p)+20>>2]|0);break}case 188:{aa=f+(da+-2<<4)+16|0;ba=f+(da<<4)+16|0;c[(ea&p)>>2]=Zq(ca,122,Zq(ca,27,0,0,aa)|0,Zq(ca,27,0,0,ba)|0,0)|0;c[(ea&p)+4>>2]=c[(aa&p)>>2];c[(ea&p)+8>>2]=(c[(ba&p)>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0);break}case 189:{aa=f+(da+-4<<4)+16|0;ba=f+(da<<4)+16|0;c[(ea&p)>>2]=Zq(ca,122,Zq(ca,27,0,0,aa)|0,Zq(ca,122,Zq(ca,27,0,0,f+(da+-2<<4)+16|0)|0,Zq(ca,27,0,0,ba)|0,0)|0,0)|0;c[(ea&p)+4>>2]=c[(aa&p)>>2];c[(ea&p)+8>>2]=(c[(ba&p)>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0);break}case 192:{x=f+(da<<4)+16|0;w=f+(da<<4)+20|0;do if(((c[(w&p)>>2]|0)>>>0>1?(C=c[(x&p)>>2]|0,(a[(C&n)>>0]|0)==35):0)?((d[(C&n)+1>>0]|0)+-48|0)>>>0<10:0){if(!(a[(ca&n)+18>>0]|0)){c[(ba&p)>>2]=x;th(ca,20432,ba);c[(ea&p)>>2]=0;break}r=Zq(ca,159,0,0,x)|0;c[(ea&p)>>2]=r;if(r)Dn((c[(x&p)>>2]|0)+1|0,r+28|0)|0}else aa=298;while(0);q:do if((aa|0)==298?(P=Zq(ca,135,0,0,x)|0,c[(ea&p)>>2]=P,W=c[(x&p)>>2]|0,c[(ea&p)+4>>2]=W,c[(ea&p)+8>>2]=W+(c[(w&p)>>2]|0),W=c[(ca&p)>>2]|0,(P|0)!=0):0){z=c[(P&p)+8>>2]|0;r=z+1|0;do if(a[(r&n)>>0]|0){y=(z|0)==0;if(y)A=0;else{t=z;while(1)if(!(a[(t&n)>>0]|0))break;else t=t+1|0;A=t-z&1073741823}r:do if((a[(z&n)>>0]|0)==63){$=Ul(r,H,A+-1|0,1)|0;m=H;q=c[(m&p)>>2]|0;m=c[(m&p)+4>>2]|0;t=q&65535;b[(P&o)+32>>1]=t;r=c[(W&p)+124>>2]|0;aa=((r|0)<0)<<31>>31;if((m|0)<0|(m|0)==0&q>>>0<1|($|0)!=0|((m|0)>(aa|0)|(m|0)==(aa|0)&q>>>0>r>>>0)){c[(ba&p)>>2]=r;th(ca,33296,ba);t=0}r=ca+440|0;aa=c[(r&p)>>2]|0;$=((aa|0)<0)<<31>>31;if((m|0)>($|0)|(m|0)==($|0)&q>>>0>aa>>>0)c[(r&p)>>2]=q}else{r=c[(ca&p)+444>>2]|0;s:do if((r|0)>0){q=c[(ca&p)+472>>2]|0;t=0;l=0;while(1){m=c[(q+(t<<2)&p)>>2]|0;if((m|0)!=0?(_v(m,z)|0)==0:0)break;l=l+1<<16>>16;t=l<<16>>16;if((t|0)>=(r|0)){aa=315;break s}}t=t+1&65535;r=P+32|0;b[(r&o)>>1]=t;if(t<<16>>16)break r}else aa=315;while(0);if((aa|0)==315)r=P+32|0;aa=ca+440|0;t=(c[(aa&p)>>2]|0)+1|0;c[(aa&p)>>2]=t;t=t&65535;b[(r&o)>>1]=t}while(0);m=t<<16>>16;if(t<<16>>16>0){t=ca+444|0;if((m|0)>(c[(t&p)>>2]|0)){r=ca+472|0;q=ro(W,c[(r&p)>>2]|0,m<<2,0)|0;if(!q)break q;c[(r&p)>>2]=q;aa=c[(t&p)>>2]|0;fw(q+(aa<<2)|0,0,m-aa<<2|0)|0;c[(t&p)>>2]=m}if((a[(z&n)>>0]|0)==63){r=m+-1|0;if(!(c[((c[(ca&p)+472>>2]|0)+(r<<2)&p)>>2]|0))t=0;else break}else{t=m+-1|0;r=t;t=c[((c[(ca&p)+472>>2]|0)+(t<<2)&p)>>2]|0}q=ca+472|0;mg(W,t);if(!y?(s=jw(A|0,0,1,0)|0,s=mh(W,s,G)|0,(s|0)!=0):0){kw(s|0,z|0,A|0)|0;a[(s+A&n)>>0]=0}else s=0;c[((c[(q&p)>>2]|0)+(r<<2)&p)>>2]=s}}else{$=ca+440|0;aa=(c[($&p)>>2]|0)+1|0;c[($&p)>>2]=aa;b[(P&o)+32>>1]=aa}while(0);if((c[(ca&p)+64>>2]|0)==0?(c[(ca&p)+440>>2]|0)>(c[(W&p)+124>>2]|0):0)th(ca,33344,ba)}while(0);ca=c[(x&p)>>2]|0;c[(ea&p)+4>>2]=ca;c[(ea&p)+8>>2]=ca+(c[(w&p)>>2]|0);break}case 196:{ba=f+(da+-3<<4)+16|0;c[(ea&p)>>2]=wr(ca,0,ba)|0;c[(ea&p)+4>>2]=c[(ba&p)>>2];c[(ea&p)+8>>2]=(c[(f+(da<<4)&p)+16>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0);break}case 197:{ba=f+(da<<4)+16|0;c[(ea&p)>>2]=wr(ca,0,ba)|0;ca=c[(ba&p)>>2]|0;c[(ea&p)+4>>2]=ca;c[(ea&p)+8>>2]=ca+(c[(f+(da<<4)&p)+20>>2]|0);break}case 193:{aa=da+-2|0;ba=f+(da<<4)+16|0;c[(ea&p)>>2]=vr(ca,c[(f+(aa<<4)&p)+16>>2]|0,ba,1)|0;c[(ea&p)+4>>2]=c[(f+(aa<<4)&p)+20>>2];c[(ea&p)+8>>2]=(c[(ba&p)>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0);break}case 194:{c[(ea&p)>>2]=Zq(ca,38,c[(f+(da+-3<<4)&p)+16>>2]|0,0,f+(da+-1<<4)+16|0)|0;c[(ea&p)+4>>2]=c[(f+(da+-5<<4)&p)+16>>2];c[(ea&p)+8>>2]=(c[(f+(da<<4)&p)+16>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0);break}case 195:{l=f+(da+-1<<4)+16|0;h=c[(l&p)>>2]|0;if(h){if((c[(h&p)>>2]|0)>(c[((c[(ca&p)>>2]|0)&p)+112>>2]|0)){c[(ba&p)>>2]=f+(da+-4<<4)+16;th(ca,20576,ba);h=c[(l&p)>>2]|0}}else h=0;ba=f+(da+-4<<4)+16|0;h=wr(ca,h,ba)|0;c[(ea&p)>>2]=h;c[(ea&p)+4>>2]=c[(ba&p)>>2];c[(ea&p)+8>>2]=(c[(f+(da<<4)&p)+16>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0);if(!((h|0)==0?1:(b[(f+(da+-2<<4)&o)+16>>1]|0)==0)){ca=h+4|0;c[(ca&p)>>2]=c[(ca&p)>>2]|16}break}case 205:case 204:case 203:case 202:case 201:case 200:case 199:case 198:{ba=da+-2|0;c[(ea&p)>>2]=Zq(ca,d[(f+(da+-1<<4)&n)+14>>0]|0,c[(f+(ba<<4)&p)+16>>2]|0,c[(f+(da<<4)&p)+16>>2]|0,0)|0;c[(ea&p)+4>>2]=c[(f+(ba<<4)&p)+20>>2];c[(ea&p)+8>>2]=c[(f+(da<<4)&p)+24>>2];break}case 206:{aa=f+(da<<4)+16|0;ba=c[(aa&p)+4>>2]|0;ca=ea;c[(ca&p)>>2]=c[(aa&p)>>2];c[(ca&p)+4>>2]=ba;c[(ea&p)+8>>2]=0;break}case 207:{aa=f+(da<<4)+16|0;ba=c[(aa&p)+4>>2]|0;ca=ea;c[(ca&p)>>2]=c[(aa&p)>>2];c[(ca&p)+4>>2]=ba;c[(ea&p)+8>>2]=1;break}case 208:{l=da+-2|0;ba=da+-1|0;h=wr(ca,lr(ca,lr(ca,0,c[(f+(da<<4)&p)+16>>2]|0)|0,c[(f+(l<<4)&p)+16>>2]|0)|0,f+(ba<<4)+16|0)|0;c[(ea&p)>>2]=h;if(c[(f+(ba<<4)&p)+24>>2]|0){h=Zq(ca,19,h,0,0)|0;c[(ea&p)>>2]=h}c[(ea&p)+4>>2]=c[(f+(l<<4)&p)+20>>2];c[(ea&p)+8>>2]=c[(f+(da<<4)&p)+24>>2];if(h){ca=h+4|0;c[(ca&p)>>2]=c[(ca&p)>>2]|128}break}case 210:{ba=da+-1|0;c[(ea&p)>>2]=Zq(ca,d[(f+(da<<4)&n)+14>>0]|0,c[(f+(ba<<4)&p)+16>>2]|0,0,0)|0;c[(ea&p)+4>>2]=c[(f+(ba<<4)&p)+20>>2];c[(ea&p)+8>>2]=(c[(f+(da<<4)&p)+16>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0);break}case 209:{l=da+-4|0;ba=da+-3|0;h=wr(ca,lr(ca,lr(ca,lr(ca,0,c[(f+(da+-2<<4)&p)+16>>2]|0)|0,c[(f+(l<<4)&p)+16>>2]|0)|0,c[(f+(da<<4)&p)+16>>2]|0)|0,f+(ba<<4)+16|0)|0;c[(ea&p)>>2]=h;if(c[(f+(ba<<4)&p)+24>>2]|0){h=Zq(ca,19,h,0,0)|0;c[(ea&p)>>2]=h}c[(ea&p)+4>>2]=c[(f+(l<<4)&p)+20>>2];c[(ea&p)+8>>2]=c[(f+(da<<4)&p)+24>>2];if(h){ca=h+4|0;c[(ca&p)>>2]=c[(ca&p)>>2]|128}break}case 223:{l=f+(da+-1<<4)+16|0;h=c[(l&p)>>2]|0;do if(h){if((c[(h&p)>>2]|0)==1){ba=c[(h&p)+4>>2]|0;h=c[(ba&p)>>2]|0;c[(ba&p)>>2]=0;Nk(c[(ca&p)>>2]|0,c[(l&p)>>2]|0);if(h){ba=h+4|0;c[(ba&p)>>2]=c[(ba&p)>>2]&-769|512}c[(ea&p)>>2]=Zq(ca,(c[(f+(da+-3<<4)&p)+16>>2]|0)!=0?78:79,c[(f+(da+-4<<4)&p)+16>>2]|0,h,0)|0;break}h=Zq(ca,75,c[(f+(da+-4<<4)&p)+16>>2]|0,0,0)|0;c[(ea&p)>>2]=h;if(!h){Nk(c[(ca&p)>>2]|0,c[(l&p)>>2]|0);h=0}else{c[(h&p)+20>>2]=c[(l&p)>>2];h=c[(ea&p)>>2]|0;yr(ca,h)}if(c[(f+(da+-3<<4)&p)+16>>2]|0)c[(ea&p)>>2]=Zq(ca,19,h,0,0)|0}else{c[(ea&p)>>2]=Zq(ca,132,0,0,20616+(c[(f+(da+-3<<4)&p)+16>>2]<<3)|0)|0;Gk(c[(ca&p)>>2]|0,c[(f+(da+-4<<4)&p)+16>>2]|0)}while(0);c[(ea&p)+4>>2]=c[(f+(da+-4<<4)&p)+20>>2];c[(ea&p)+8>>2]=(c[(f+(da<<4)&p)+16>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0);break}case 211:{ba=da+-2|0;c[(ea&p)>>2]=Zq(ca,77,c[(f+(ba<<4)&p)+16>>2]|0,0,0)|0;c[(ea&p)+4>>2]=c[(f+(ba<<4)&p)+20>>2];c[(ea&p)+8>>2]=(c[(f+(da<<4)&p)+16>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0);break}case 212:{$=da+-2|0;aa=f+(da<<4)+16|0;ba=Zq(ca,73,c[(f+($<<4)&p)+16>>2]|0,c[(aa&p)>>2]|0,0)|0;c[(ea&p)>>2]=ba;c[(ea&p)+4>>2]=c[(f+($<<4)&p)+20>>2];c[(ea&p)+8>>2]=c[(f+(da<<4)&p)+24>>2];xr(ca,c[(aa&p)>>2]|0,ba,76);break}case 213:{$=da+-3|0;aa=f+(da<<4)+16|0;ba=Zq(ca,148,c[(f+($<<4)&p)+16>>2]|0,c[(aa&p)>>2]|0,0)|0;c[(ea&p)>>2]=ba;c[(ea&p)+4>>2]=c[(f+($<<4)&p)+20>>2];c[(ea&p)+8>>2]=c[(f+(da<<4)&p)+24>>2];xr(ca,c[(aa&p)>>2]|0,ba,77);break}case 215:case 214:{ba=da+-1|0;c[(ea&p)>>2]=Zq(ca,d[(f+(ba<<4)&n)+14>>0]|0,c[(f+(da<<4)&p)+16>>2]|0,0,0)|0;c[(ea&p)+4>>2]=c[(f+(ba<<4)&p)+16>>2];c[(ea&p)+8>>2]=c[(f+(da<<4)&p)+24>>2];break}case 216:{c[(ea&p)>>2]=Zq(ca,157,c[(f+(da<<4)&p)+16>>2]|0,0,0)|0;c[(ea&p)+4>>2]=c[(f+(da+-1<<4)&p)+16>>2];c[(ea&p)+8>>2]=c[(f+(da<<4)&p)+24>>2];break}case 217:{c[(ea&p)>>2]=Zq(ca,158,c[(f+(da<<4)&p)+16>>2]|0,0,0)|0;c[(ea&p)+4>>2]=c[(f+(da+-1<<4)&p)+16>>2];c[(ea&p)+8>>2]=c[(f+(da<<4)&p)+24>>2];break}case 220:{k=lr(ca,lr(ca,0,c[(f+(da+-2<<4)&p)+16>>2]|0)|0,c[(f+(da<<4)&p)+16>>2]|0)|0;l=da+-4|0;h=Zq(ca,74,c[(f+(l<<4)&p)+16>>2]|0,0,0)|0;c[(ea&p)>>2]=h;if(!h)Nk(c[(ca&p)>>2]|0,k);else c[(h&p)+20>>2]=k;if(c[(f+(da+-3<<4)&p)+16>>2]|0)c[(ea&p)>>2]=Zq(ca,19,c[(ea&p)>>2]|0,0,0)|0;c[(ea&p)+4>>2]=c[(f+(l<<4)&p)+20>>2];c[(ea&p)+8>>2]=c[(f+(da<<4)&p)+24>>2];break}case 224:{h=Zq(ca,119,0,0,0)|0;c[(ea&p)>>2]=h;if(!h)Mk(c[(ca&p)>>2]|0,c[(f+(da+-1<<4)&p)+16>>2]|0,1);else{c[(h&p)+20>>2]=c[(f+(da+-1<<4)&p)+16>>2];ba=c[(ea&p)>>2]|0;aa=ba+4|0;c[(aa&p)>>2]=c[(aa&p)>>2]|2099200;yr(ca,ba)}c[(ea&p)+4>>2]=c[(f+(da+-2<<4)&p)+16>>2];c[(ea&p)+8>>2]=(c[(f+(da<<4)&p)+16>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0);break}case 118:{c[(ea&p)>>2]=kr(ca,c[(f+(da+-6<<4)&p)+16>>2]|0,c[(f+(da+-5<<4)&p)+16>>2]|0,c[(f+(da+-4<<4)&p)+16>>2]|0,c[(f+(da+-3<<4)&p)+16>>2]|0,c[(f+(da+-2<<4)&p)+16>>2]|0,c[(f+(da+-1<<4)&p)+16>>2]|0,b[(f+(da+-7<<4)&o)+16>>1]|0,c[(f+(da<<4)&p)+16>>2]|0,c[(f+(da<<4)&p)+20>>2]|0)|0;break}case 120:{c[(ea&p)>>2]=kr(ca,c[(f+(da+-1<<4)&p)+16>>2]|0,0,0,0,0,0,128,0,0)|0;break}case 127:{l=da+-1|0;q=lr(ca,c[(f+(da+-2<<4)&p)+16>>2]|0,c[(f+(l<<4)&p)+16>>2]|0)|0;c[(ea&p)>>2]=q;if(c[(f+(da<<4)&p)+20>>2]|0)mr(ca,q,f+(da<<4)+16|0,1);s=c[(ca&p)>>2]|0;if(q){r=(c[(q&p)+4>>2]|0)+(((c[(q&p)>>2]|0)+-1|0)*20|0)+8|0;mg(s,c[(r&p)>>2]|0);m=c[(f+(l<<4)&p)+20>>2]|0;q=(c[(f+(l<<4)&p)+24>>2]|0)-m|0;if((m|0)!=0?(h=jw(q|0,((q|0)<0)<<31>>31|0,1,0)|0,h=mh(s,h,G)|0,(h|0)!=0):0){kw(h|0,m|0,q|0)|0;a[(h+q&n)>>0]=0}else h=0;c[(r&p)>>2]=h}break}case 133:{l=mh(c[(ca&p)>>2]|0,80,0)|0;if(l){y=l+0|0;k=y+80|0;do{a[(y&n)>>0]=0;y=y+1|0}while((y|0)<(k|0))}c[(ea&p)>>2]=l;break}case 134:{q=c[(f+(da<<4)&p)+16>>2]|0;c[(ea&p)>>2]=q;if(q){l=c[(q&p)>>2]|0;k=l+-1|0;if((k|0)>0)while(1){a[(q+(k*72|0)&n)+44>>0]=a[(q+((l+-2|0)*72|0)&n)+44>>0]|0;l=k+-1|0;if((l|0)>0){ca=k;k=l;l=ca}else break}a[(q&n)+44>>0]=0}break}case 128:{aa=c[(ca&p)>>2]|0;c[(ba&p)>>2]=0;c[(ba&p)+4>>2]=0;ba=nr(aa,116,ba,0)|0;c[(ea&p)>>2]=lr(ca,c[(f+(da+-1<<4)&p)+16>>2]|0,ba)|0;break}case 132:{c[(ea&p)+4>>2]=0;break}case 129:{ba=Zq(ca,116,0,0,f+(da<<4)+16|0)|0;ba=Zq(ca,122,Zq(ca,27,0,0,f+(da+-2<<4)+16|0)|0,ba,0)|0;c[(ea&p)>>2]=lr(ca,c[(f+(da+-3<<4)&p)+16>>2]|0,ba)|0;break}case 136:{c[(ea&p)>>2]=0;break}case 137:{ba=jr(ca,c[(f+(da+-6<<4)&p)+16>>2]|0,f+(da+-5<<4)+16|0,f+(da+-4<<4)+16|0,f+(da+-3<<4)+16|0,0,c[(f+(da+-1<<4)&p)+16>>2]|0,c[(f+(da<<4)&p)+16>>2]|0)|0;c[(ea&p)>>2]=ba;or(ca,ba,f+(da+-2<<4)+16|0);break}case 135:{h=c[(f+(da+-1<<4)&p)+16>>2]|0;c[(ea&p)>>2]=h;if((h|0)!=0?(w=c[(h&p)>>2]|0,(w|0)>0):0)a[(h+((w+-1|0)*72|0)&n)+44>>0]=c[(f+(da<<4)&p)+16>>2];break}case 138:{c[(ea&p)>>2]=jr(ca,c[(f+(da+-6<<4)&p)+16>>2]|0,0,0,f+(da+-2<<4)+16|0,c[(f+(da+-4<<4)&p)+16>>2]|0,c[(f+(da+-1<<4)&p)+16>>2]|0,c[(f+(da<<4)&p)+16>>2]|0)|0;break}case 139:{l=f+(da+-6<<4)+16|0;q=c[(l&p)>>2]|0;if((((q|0)==0?(c[(f+(da+-2<<4)&p)+20>>2]|0)==0:0)?(c[(f+(da+-1<<4)&p)+16>>2]|0)==0:0)?(c[(f+(da<<4)&p)+16>>2]|0)==0:0){c[(ea&p)>>2]=c[(f+(da+-4<<4)&p)+16>>2];break a}s=f+(da+-4<<4)+16|0;k=c[(s&p)>>2]|0;r=c[(k&p)>>2]|0;if((r|0)==1){l=jr(ca,q,0,0,f+(da+-2<<4)+16|0,0,c[(f+(da+-1<<4)&p)+16>>2]|0,c[(f+(da<<4)&p)+16>>2]|0)|0;c[(ea&p)>>2]=l;if(l){_=(c[(l&p)>>2]|0)+-1|0;ba=c[(s&p)>>2]|0;aa=ba+16|0;c[(l+(_*72|0)&p)+16>>2]=c[(aa&p)>>2];$=ba+12|0;c[(l+(_*72|0)&p)+12>>2]=c[($&p)>>2];ba=ba+28|0;c[(l+(_*72|0)&p)+28>>2]=c[(ba&p)>>2];c[($&p)>>2]=0;c[(aa&p)>>2]=0;c[(ba&p)>>2]=0}Do(c[(ca&p)>>2]|0,c[(s&p)>>2]|0);break a}if(k){m=r+-1|0;if((m|0)>0){q=r;while(1){a[(k+(m*72|0)&n)+44>>0]=a[(k+((q+-2|0)*72|0)&n)+44>>0]|0;q=m+-1|0;if((q|0)>0){ba=m;m=q;q=ba}else break}}a[(k&n)+44>>0]=0}ba=kr(ca,0,k,0,0,0,0,512,0,0)|0;c[(ea&p)>>2]=jr(ca,c[(l&p)>>2]|0,0,0,f+(da+-2<<4)+16|0,ba,c[(f+(da+-1<<4)&p)+16>>2]|0,c[(f+(da<<4)&p)+16>>2]|0)|0;break}case 149:case 140:{c[(ea&p)>>2]=0;c[(ea&p)+4>>2]=0;break}case 144:{c[(ea&p)>>2]=qr(ca,f+(da+-1<<4)+16|0,0,0)|0;break}case 145:{c[(ea&p)>>2]=qr(ca,f+(da+-2<<4)+16|0,f+(da+-1<<4)+16|0,0)|0;break}case 146:{c[(ea&p)>>2]=qr(ca,f+(da+-3<<4)+16|0,f+(da+-2<<4)+16|0,f+(da+-1<<4)+16|0)|0;break}case 233:case 231:case 171:case 164:case 147:{c[(ea&p)>>2]=c[(f+(da<<4)&p)+16>>2];break}case 234:case 232:case 170:case 163:case 148:{c[(ea&p)>>2]=0;break}case 151:{c[(ea&p)>>2]=0;c[(ea&p)+4>>2]=1;break}case 143:{c[(ea&p)>>2]=1;break}case 142:{c[(ea&p)>>2]=pr(c[(ca&p)>>2]|0,0,f+(da+-1<<4)+16|0,f+(da<<4)+16|0)|0;break}case 157:{h=lr(ca,0,c[(f+(da+-1<<4)&p)+16>>2]|0)|0;c[(ea&p)>>2]=h;if((h|0)!=0?(k=c[(h&p)+4>>2]|0,(k|0)!=0):0)a[(k&n)+12>>0]=c[(f+(da<<4)&p)+16>>2];break}case 160:case 158:{c[(ea&p)>>2]=0;break}case 159:{c[(ea&p)>>2]=1;break}case 165:{c[(ea&p)>>2]=0;c[(ea&p)+4>>2]=0;break}case 166:{c[(ea&p)>>2]=c[(f+(da<<4)&p)+16>>2];c[(ea&p)+4>>2]=0;break}case 179:case 153:{c[(ea&p)>>2]=0;break}case 180:case 152:{c[(ea&p)>>2]=c[(f+(da+-1<<4)&p)+16>>2];break}case 172:{l=c[(f+(da+-7<<4)&p)+16>>2]|0;if(l){aa=ca+532|0;c[(l&p)+4>>2]=c[(aa&p)>>2];c[(aa&p)>>2]=l;a[(ca&n)+449>>0]=1}m=f+(da+-4<<4)+16|0;or(ca,c[(m&p)>>2]|0,f+(da+-3<<4)+16|0);q=f+(da+-1<<4)+16|0;l=c[(q&p)>>2]|0;if(l){if((c[(l&p)>>2]|0)>(c[((c[(ca&p)>>2]|0)&p)+96>>2]|0)){c[(ba&p)>>2]=20560;th(ca,34544,ba);l=c[(q&p)>>2]|0}}else l=0;sr(ca,c[(m&p)>>2]|0,l,c[(f+(da<<4)&p)+16>>2]|0,d[(f+(da+-5<<4)&n)+16>>0]|0);break}case 235:case 162:case 155:{c[(ea&p)>>2]=c[(f+(da<<4)&p)+16>>2];break}case 156:{h=lr(ca,c[(f+(da+-3<<4)&p)+16>>2]|0,c[(f+(da+-1<<4)&p)+16>>2]|0)|0;c[(ea&p)>>2]=h;if(h)a[((c[(h&p)+4>>2]|0)+(((c[(h&p)>>2]|0)+-1|0)*20|0)&n)+12>>0]=c[(f+(da<<4)&p)+16>>2];break}case 7:{a[(ca&n)+450>>0]=2;c[(ca&p)+440>>2]=0;break}case 23:{Tq(ca,1,f+(da<<4)+16|0);break}case 24:{Tq(ca,2,f+(da<<4)+16|0);break}case 26:{Uq(ca,f+(da+-1<<4)+16|0,f+(da<<4)+16|0,c[(f+(da+-4<<4)&p)+16>>2]|0,0,0,c[(f+(da+-2<<4)&p)+16>>2]|0);break}default:{}}while(0);h=a[(g<<1&n)+20912>>0]|0;r=h&255;q=a[(g<<1&n)+20913>>0]|0;m=q&255;s=(c[(f&p)>>2]|0)-m|0;c[(f&p)>>2]=s;l=b[((b[(e[(f+(da-m<<4)&o)+12>>1]<<1&o)+21568>>1]|0)+r<<1&o)+22184>>1]|0;k=l&65535;do if((l&65535)<642)if(!(q<<24>>24)){kq(f,k,r,ea);break}else{c[(f&p)>>2]=s+1;da=1-m+da|0;b[(f+(da<<4)&o)+12>>1]=l;a[(f+(da<<4)&n)+14>>0]=h;da=f+(da<<4)+16|0;c[(da&p)>>2]=c[(ea&p)>>2];c[(da&p)+4>>2]=c[(ea&p)+4>>2];c[(da&p)+8>>2]=c[(ea&p)+8>>2];break}else{h=c[(ga&p)>>2]|0;if((s|0)>-1)do Pn(f);while((c[(f&p)>>2]|0)>-1);c[(ga&p)>>2]=h}while(0);i=ha;return}function nq(e,f){e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=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,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,ga=0;da=i;i=i+64|0;if((i|0)>=(j|0))fa();ca=da+8|0;Z=da;q=da+24|0;h=da+16|0;l=xq(e,0,h)|0;do if(!l){if(c[(h&p)>>2]|0){l=ds(e,f)|0;if(!l)g=0;else k=4}else{l=1;k=4}if((k|0)==4){ba=e+43|0;k=(a[(ba&n)>>0]|0)==0;do if(!(a[(e&n)+46>>0]&2)){if(k?(m=e+4|0,aa=c[(m&p)>>2]|0,ac[c[((c[(aa&p)>>2]|0)&p)+40>>2]&63](aa,24,0)|0,m=c[(m&p)>>2]|0,m=pc[c[((c[(m&p)>>2]|0)&p)+56>>2]&31](m,0,1,10)|0,(m|0)!=0):0){h=l;g=m;break}aa=e+44|0;a[(aa&n)>>0]=1;k=xq(e,0,h)|0;if(!k){h=ds(e,f)|0;if(!h){h=0;g=0}else{$=d[(e&n)+45>>0]|0;_=$+1|0;$=7-$|0;if(!((a[(ba&n)>>0]|0)==0?(g=c[(e&p)+4>>2]|0,g=pc[c[((c[(g&p)>>2]|0)&p)+56>>2]&31](g,_,$,10)|0,(g|0)!=0):0)){l=e+52|0;k=l+48|0;do{c[(l&p)>>2]=0;l=l+4|0}while((l|0)<(k|0));T=e+8|0;g=c[(T&p)>>2]|0;g=rc[c[((c[(g&p)>>2]|0)&p)+24>>2]&127](g,Z)|0;a:do if(!g){U=Z;S=c[(U&p)+4>>2]|0;b:do if((S|0)>0|(S|0)==0&(c[(U&p)>>2]|0)>>>0>32){g=c[(T&p)>>2]|0;g=tc[c[((c[(g&p)>>2]|0)&p)+8>>2]&31](g,q,32,0,0)|0;if(g)break a;m=d[(q&n)+3>>0]|0;k=d[(q&n)+9>>0]<<16|d[(q&n)+8>>0]<<24;g=d[(q&n)+10>>0]<<8;l=k|g|d[(q&n)+11>>0];if(((d[(q&n)+1>>0]<<16|d[(q&n)>>0]<<24|d[(q&n)+2>>0]<<8|m&254|0)==931071618?!((l+-1&l|0)!=0|(l|0)>65536|(l|0)<512):0)?(U=m&1,V=e+65|0,a[(V&n)>>0]=U,W=e+36|0,c[(W&p)>>2]=l,c[(e&p)+104>>2]=d[(q&n)+13>>0]<<16|d[(q&n)+12>>0]<<24|d[(q&n)+14>>0]<<8|d[(q&n)+15>>0],X=e+84|0,S=q+16|0,Q=S,Q=d[(Q&n)>>0]|d[(Q&n)+1>>0]<<8|d[(Q&n)+2>>0]<<16|d[(Q&n)+3>>0]<<24,S=S+4|0,S=d[(S&n)>>0]|d[(S&n)+1>>0]<<8|d[(S&n)+2>>0]<<16|d[(S&n)+3>>0]<<24,Y=X,R=Y,a[(R&n)>>0]=Q,a[(R&n)+1>>0]=Q>>8,a[(R&n)+2>>0]=Q>>16,a[(R&n)+3>>0]=Q>>24,Y=Y+4|0,a[(Y&n)>>0]=S,a[(Y&n)+1>>0]=S>>8,a[(Y&n)+2>>0]=S>>16,a[(Y&n)+3>>0]=S>>24,Y=e+76|0,yq(U^1,q,24,0,Y),(c[(Y&p)>>2]|0)==(d[(q&n)+25>>0]<<16|d[(q&n)+24>>0]<<24|d[(q&n)+26>>0]<<8|d[(q&n)+27>>0]|0)):0){S=e+80|0;if((c[(S&p)>>2]|0)!=(d[(q&n)+29>>0]<<16|d[(q&n)+28>>0]<<24|d[(q&n)+30>>0]<<8|d[(q&n)+31>>0]|0)){l=0;g=0;break}if((d[(q&n)+5>>0]<<16|d[(q&n)+4>>0]<<24|d[(q&n)+6>>0]<<8|d[(q&n)+7>>0]|0)!=3007e3){c[(ca&p)>>2]=49983;c[(ca&p)+4>>2]=10788;bd(14,14848,ca);g=14;break a}w=l+24|0;U=Tc(w)|0;if(!U){g=7;break a}x=U+24|0;y=((w|0)<0)<<31>>31;q=jw(w|0,y|0,32,0)|0;m=G;R=Z;Q=c[(R&p)+4>>2]|0;c:do if(!((m|0)>(Q|0)|((m|0)==(Q|0)?q>>>0>(c[(R&p)>>2]|0)>>>0:0))){z=U+8|0;A=U+1|0;B=U+2|0;C=U+3|0;D=U+16|0;E=U+17|0;F=U+18|0;H=U+19|0;I=U+20|0;J=U+21|0;K=U+22|0;L=U+23|0;M=U+4|0;N=U+5|0;O=U+6|0;P=U+7|0;Q=e+68|0;R=e+72|0;u=(k>>>16|g)&65535;v=e+66|0;r=32;k=0;l=0;s=0;t=1;while(1){g=c[(T&p)>>2]|0;g=tc[c[((c[(g&p)>>2]|0)&p)+8>>2]&31](g,U,w,r,k)|0;if(g){k=36;break}if(Zv(X,z,8)|0){g=s;k=37;break}k=d[(A&n)>>0]<<16|d[(U&n)>>0]<<24|d[(B&n)>>0]<<8|d[(C&n)>>0];if(!k){g=s;k=37;break}r=(a[(V&n)>>0]|0)==0&1;yq(r,U,8,Y,Y);yq(r,x,c[(W&p)>>2]|0,Y,Y);if((c[(Y&p)>>2]|0)!=(d[(E&n)>>0]<<16|d[(D&n)>>0]<<24|d[(F&n)>>0]<<8|d[(H&n)>>0]|0)){g=s;k=37;break}if((c[(S&p)>>2]|0)!=(d[(J&n)>>0]<<16|d[(I&n)>>0]<<24|d[(K&n)>>0]<<8|d[(L&n)>>0]|0)){g=s;break c}r=d[(N&n)>>0]<<16|d[(M&n)>>0]<<24|d[(O&n)>>0]<<8|d[(P&n)>>0];g=_o(e,t,k)|0;if(g){k=36;break}if(!r)g=s;else{c[(Q&p)>>2]=t;c[(R&p)>>2]=r;b[(v&o)>>1]=u;l=c[(Y&p)>>2]|0;g=c[(S&p)>>2]|0}k=jw(q|0,m|0,w|0,y|0)|0;r=G;s=Z;ea=c[(s&p)+4>>2]|0;if((r|0)>(ea|0)|((r|0)==(ea|0)?k>>>0>(c[(s&p)>>2]|0)>>>0:0))break c;else{ga=m;ea=q;q=k;m=r;s=g;t=t+1|0;k=ga;r=ea}}if((k|0)==36){Wc(U);break a}else if((k|0)==37){Wc(U);break b}}else{l=0;g=0}while(0);Wc(U)}else{l=0;g=0}}else{l=0;g=0}while(0);c[(e&p)+76>>2]=l;c[(e&p)+80>>2]=g;$o(e);k=c[(c[(e&p)+32>>2]&p)>>2]|0;c[(k&p)+96>>2]=0;c[(k&p)+100>>2]=0;g=k+104|0;c[(g&p)>>2]=-1;c[(k&p)+108>>2]=-1;c[(k&p)+112>>2]=-1;c[(k&p)+116>>2]=-1;k=e+68|0;l=c[(k&p)>>2]|0;if(l)c[(g&p)>>2]=l;if(!(c[(e&p)+72>>2]|0))g=0;else{g=c[(e&p)+100>>2]|0;c[(ca&p)>>2]=c[(k&p)>>2];c[(ca&p)+4>>2]=g;bd(283,14888,ca);g=0}}while(0);if(!(a[(ba&n)>>0]|0)){Z=c[(e&p)+4>>2]|0;pc[c[((c[(Z&p)>>2]|0)&p)+56>>2]&31](Z,_,$,9)|0}}c[(f&p)>>2]=1}}else{h=l;g=k}a[(aa&n)>>0]=0;if(!(a[(ba&n)>>0]|0)){ba=c[(e&p)+4>>2]|0;pc[c[((c[(ba&p)>>2]|0)&p)+56>>2]&31](ba,0,1,9)|0}}else if(k){h=e+4|0;g=c[(h&p)>>2]|0;g=pc[c[((c[(g&p)>>2]|0)&p)+56>>2]&31](g,0,1,6)|0;if(!g)if(!(a[(ba&n)>>0]|0)){h=c[(h&p)>>2]|0;pc[c[((c[(h&p)>>2]|0)&p)+56>>2]&31](h,0,1,5)|0;h=l;g=264}else{h=l;g=264}else h=l}else{h=l;g=264}while(0);if(h)break}if((c[(e&p)+52>>2]|0)!=3007e3){c[(ca&p)>>2]=50909;c[(ca&p)+4>>2]=10788;bd(14,14848,ca);g=14}}else g=l;while(0);i=da;return g|0}function oq(a,d,f,g,h,i){a=a|0;d=d|0;f=f|0;g=g|0;h=h|0;i=i|0;var j=0,k=0,l=0,m=0,n=0,q=0,r=0,s=0,t=0,u=0;r=c[(h&p)>>2]|0;s=c[(g&p)>>2]|0;k=(r|0)>0;j=(f|0)>0;if(k|j){n=j;l=0;q=0;m=0;while(1){do if(n){j=d+(l<<1)|0;if(k?(t=s+(m<<1)|0,(c[(a+((e[(j&o)>>1]|0)<<2)&p)>>2]|0)>>>0>=(c[(a+((e[(t&o)>>1]|0)<<2)&p)>>2]|0)>>>0):0){k=t;u=7;break}l=l+1|0;k=j}else{k=s+(m<<1)|0;u=7}while(0);if((u|0)==7){u=0;m=m+1|0}n=b[(k&o)>>1]|0;k=c[(a+((n&65535)<<2)&p)>>2]|0;j=q+1|0;b[(i+(q<<1)&o)>>1]=n;if((l|0)<(f|0))l=((c[(a+((e[(d+(l<<1)&o)>>1]|0)<<2)&p)>>2]|0)==(k|0)&1)+l|0;k=(m|0)<(r|0);n=(l|0)<(f|0);if(!(k|n))break;else q=j}}else j=0;c[(g&p)>>2]=d;c[(h&p)>>2]=j;kw(d|0,i|0,j<<1|0)|0;return}function pq(a,b){a=a|0;b=b|0;var d=0,e=0;e=c[(a&p)+4>>2]|0;c[(e&p)+4>>2]=c[(a&p)>>2];a=c[((c[(e&p)>>2]|0)&p)+204>>2]|0;c[(a&p)+16>>2]=b;e=c[2217]|0;d=c[(a&p)+40>>2]|0;if((b|0)>-1)a=b;else{b=sw(b|0,((b|0)<0)<<31>>31|0,-1024,-1)|0;a=(c[(a&p)+24>>2]|0)+(c[(a&p)+20>>2]|0)|0;a=qw(b|0,G|0,a|0,((a|0)<0)<<31>>31|0)|0}jc[e&15](d,a);return}function qq(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0;g=(c[(b&p)+12>>2]|0)+136|0;e=g;f=c[(e&p)>>2]|0;e=c[(e&p)+4>>2]|0;do if((f|0)==0&(e|0)==0)if(!(bh(c[(c[((c[(b&p)>>2]|0)&p)+32>>2]&p)>>2]|0,g)|0)){e=g;f=c[(e&p)>>2]|0;e=c[(e&p)+4>>2]|0;h=5;break}else{e=g;c[(e&p)>>2]=0;c[(e&p)+4>>2]=0;e=d;c[(e&p)>>2]=0;c[(e&p)+4>>2]=0;e=1;break}else h=5;while(0);if((h|0)==5){g=d;c[(g&p)>>2]=f;c[(g&p)+4>>2]=e;if((e|0)>0|(e|0)==0&f>>>0>0){a[(d&n)+42>>0]=1;e=0}else e=1}return e|0}function rq(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,o=0,q=0,r=0;r=i;i=i+16|0;if((i|0)>=(j|0))fa();o=r;c[(o&p)>>2]=d;d=b;b=0;a:while(1){h=c[(o&p)>>2]|0;g=c[(h&p)>>2]|0;c[(o&p)>>2]=h+4;h=c[(o&p)>>2]|0;k=c[(h&p)>>2]|0;c[(o&p)>>2]=h+4;h=c[(o&p)>>2]|0;l=c[(h&p)>>2]|0;c[(o&p)>>2]=h+4;h=c[(o&p)>>2]|0;m=c[(h&p)>>2]|0;c[(o&p)>>2]=h+4;h=c[(o&p)>>2]|0;e=c[(h&p)>>2]|0;c[(o&p)>>2]=h+4;if(!g){f=d;d=0}else{f=d;d=0;do{g=g+-1|0;h=a[(f&n)>>0]|0;if(((h&255)+-48|0)>>>0>=10)break a;d=(d*10|0)+-48+(h<<24>>24)|0;f=f+1|0}while((g|0)!=0)}if((d|0)<(k|0)|(d|0)>(l|0))break;if(!m){q=9;break}if((m|0)!=(a[(f&n)>>0]|0))break;c[(e&p)>>2]=d;d=f+1|0;b=b+1|0}if((q|0)==9){c[(e&p)>>2]=d;b=b+1|0}i=r;return b|0}function sq(b,e){b=b|0;e=e|0;var f=0,g=0,k=0,l=0.0,m=0,o=0.0,r=0,s=0,t=0,u=0,v=0,w=0,x=0;x=i;i=i+64|0;if((i|0)>=(j|0))fa();v=x;t=x+56|0;u=x+52|0;f=x+48|0;r=x+44|0;s=x+40|0;c[(v&p)>>2]=2;c[(v&p)+4>>2]=0;c[(v&p)+8>>2]=24;c[(v&p)+12>>2]=58;c[(v&p)+16>>2]=f;c[(v&p)+20>>2]=2;c[(v&p)+24>>2]=0;c[(v&p)+28>>2]=59;c[(v&p)+32>>2]=0;c[(v&p)+36>>2]=r;do if((rq(b,v)|0)==2){m=b+5|0;if((a[(m&n)>>0]|0)==58){c[(v&p)>>2]=2;c[(v&p)+4>>2]=0;c[(v&p)+8>>2]=59;c[(v&p)+12>>2]=0;c[(v&p)+16>>2]=s;if((rq(b+6|0,v)|0)!=1){f=1;break}m=b+8|0;if((a[(m&n)>>0]|0)==46?(g=b+9|0,k=a[(g&n)>>0]|0,((k&255)+-48|0)>>>0<10):0){o=0.0;l=1.0;do{o=o*10.0+ +(k<<24>>24)+-48.0;l=l*10.0;g=g+1|0;k=a[(g&n)>>0]|0}while(((k&255)+-48|0)>>>0<10);l=o/l}else{g=m;l=0.0}}else{c[(s&p)>>2]=0;g=m;l=0.0}a[(e&n)+42>>0]=0;a[(e&n)+41>>0]=1;c[(e&p)+20>>2]=c[(f&p)>>2];c[(e&p)+24>>2]=c[(r&p)>>2];h[(e&q)+32>>3]=l+ +(c[(s&p)>>2]|0);while(1){f=g+1|0;if(!(a[((d[(g&n)>>0]|0)&n)+10368>>0]&1)){m=g;break}else g=f}b=e+28|0;c[(b&p)>>2]=0;g=a[(m&n)>>0]|0;if(g<<24>>24==43){k=1;w=14}else if(g<<24>>24!=45)if((g&-33)<<24>>24==90){k=0;w=16}else f=0;else{k=-1;w=14}if((w|0)==14){c[(v&p)>>2]=2;c[(v&p)+4>>2]=0;c[(v&p)+8>>2]=14;c[(v&p)+12>>2]=58;c[(v&p)+16>>2]=t;c[(v&p)+20>>2]=2;c[(v&p)+24>>2]=0;c[(v&p)+28>>2]=59;c[(v&p)+32>>2]=0;c[(v&p)+36>>2]=u;if((rq(f,v)|0)!=2){f=1;break}k=ca(((c[(t&p)>>2]|0)*60|0)+(c[(u&p)>>2]|0)|0,k)|0;c[(b&p)>>2]=k;f=m+6|0;w=16}if((w|0)==16)while(1){g=a[(f&n)>>0]|0;if(!(a[(g&255&n)+10368>>0]&1)){f=k;break}else f=f+1|0}if(!(g<<24>>24)){a[(e&n)+43>>0]=(f|0)!=0&1;f=0}else f=1}else f=1;while(0);i=x;return f|0}function tq(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,k=0,l=0,m=0,o=0,r=0.0,s=0;o=i;i=i+112|0;if((i|0)>=(j|0))fa();k=o+48|0;m=o;l=o+96|0;f=k+0|0;b=b+0|0;g=f+48|0;do{c[(f&p)>>2]=c[(b&p)>>2];f=f+4|0;b=b+4|0}while((f|0)<(g|0));oo(k);po(k);g=k+8|0;if(((c[(g&p)>>2]|0)+-1971|0)>>>0>66){c[(g&p)>>2]=2e3;c[(k&p)+12>>2]=1;c[(k&p)+16>>2]=1;c[(k&p)+20>>2]=0;c[(k&p)+24>>2]=0;h[(k&q)+32>>3]=0.0}else{f=k+32|0;h[(f&q)>>3]=+(~~(+h[(f&q)>>3]+.5)|0)}c[(k&p)+28>>2]=0;a[(k&n)+42>>0]=0;no(k);b=k;f=c[(b&p)>>2]|0;b=c[(b&p)+4>>2]|0;g=qw(f|0,b|0,1e3,0)|0;g=jw(g|0,G|0,-413362496,0)|0;c[(l&p)>>2]=g;g=Vb(l|0)|0;g=(c[2253]|0)!=0?0:g;if(!g){c[(d&p)+20>>2]=1;a[(d&n)+25>>0]=1;Xg(c[(d&p)>>2]|0,20056,-1,1,-1)|0;c[(e&p)>>2]=1;f=0;g=0}else{k=c[(g&p)+4>>2]|0;l=c[(g&p)+8>>2]|0;d=c[(g&p)+12>>2]|0;s=(c[(g&p)+16>>2]|0)+1|0;r=+(c[(g&p)>>2]|0);c[(m&p)+8>>2]=(c[(g&p)+20>>2]|0)+1900;c[(m&p)+12>>2]=s;c[(m&p)+16>>2]=d;c[(m&p)+20>>2]=l;c[(m&p)+24>>2]=k;h[(m&q)+32>>3]=r;a[(m&n)+40>>0]=1;a[(m&n)+41>>0]=1;a[(m&n)+42>>0]=0;a[(m&n)+43>>0]=0;no(m);c[(e&p)>>2]=0;g=m;g=dw(c[(g&p)>>2]|0,c[(g&p)+4>>2]|0,f|0,b|0)|0;f=G}G=f;i=o;return g|0}function uq(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,o=0,q=0,r=0;r=i;i=i+32|0;if((i|0)>=(j|0))fa();q=r+12|0;l=r;o=r+8|0;k=r+16|0;a[(d&n)>>0]=0;f=rc[c[((c[(b&p)>>2]|0)&p)+24>>2]&127](b,l)|0;h=l;g=c[(h&p)>>2]|0;h=c[(h&p)+4>>2]|0;if(!((f|0)!=0|((h|0)<0|(h|0)==0&g>>>0<16))){f=jw(g|0,h|0,-16,-1)|0;f=es(b,f,G,q)|0;if(!f){m=c[(q&p)>>2]|0;if(!(m>>>0>=e>>>0|(m|0)==0)){f=l;f=jw(c[(f&p)>>2]|0,c[(f&p)+4>>2]|0,-12,-1)|0;f=es(b,f,G,o)|0;if(!f){f=l;f=jw(c[(f&p)>>2]|0,c[(f&p)+4>>2]|0,-8,-1)|0;f=tc[c[((c[(b&p)>>2]|0)&p)+8>>2]&31](b,k,8,f,G)|0;if(!f)if(!(Zv(k,14808,8)|0)){f=l;f=jw(c[(f&p)>>2]|0,c[(f&p)+4>>2]|0,-16,-1)|0;f=dw(f|0,G|0,m|0,0)|0;f=tc[c[((c[(b&p)>>2]|0)&p)+8>>2]&31](b,d,m,f,G)|0;if(!f){g=c[(o&p)>>2]|0;h=0;while(1){e=a[(d+h&n)>>0]|0;f=g-e|0;h=h+1|0;if(h>>>0>=m>>>0)break;else g=f}c[(o&p)>>2]=f;if((g|0)==(e|0))f=m;else{c[(q&p)>>2]=0;f=0}a[(d+f&n)>>0]=0;f=0}}else f=0}}else f=0}}i=r;return f|0}function vq(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,k=0,l=0,m=0,n=0,o=0,q=0,r=0,s=0,t=0;t=i;i=i+16|0;if((i|0)>=(j|0))fa();l=t+8|0;r=t+4|0;o=t;s=a+72|0;h=s;k=c[(h&p)>>2]|0;h=c[(h&p)+4>>2]|0;if((k|0)==0&(h|0)==0){m=0;n=0;k=c[(a&p)+148>>2]|0}else{m=jw(k|0,h|0,-1,-1)|0;k=c[(a&p)+148>>2]|0;m=qw(m|0,G|0,k|0,0)|0;m=jw(m|0,G|0,1,0)|0;m=sw(m|0,G|0,k|0,0)|0;n=G}q=s;c[(q&p)>>2]=m;c[(q&p)+4>>2]=n;q=a+148|0;k=jw(k|0,0,m|0,n|0)|0;h=G;do if(!((h|0)>(e|0)|(h|0)==(e|0)&k>>>0>d>>>0)){if((b|0)==0?(b=a+80|0,(m|0)==(c[(b&p)>>2]|0)?(n|0)==(c[(b&p)+4>>2]|0):0):0)d=a+64|0;else{k=a+64|0;e=c[(k&p)>>2]|0;e=tc[c[((c[(e&p)>>2]|0)&p)+8>>2]&31](e,l,8,m,n)|0;if(e)break;if(!(Zv(l,14808,8)|0))d=k;else{e=101;break}}l=c[(d&p)>>2]|0;e=jw(m|0,n|0,8,0)|0;e=es(l,e,G,f)|0;if(!e){f=c[(d&p)>>2]|0;e=jw(m|0,n|0,12,0)|0;e=es(f,e,G,a+48|0)|0;if(!e){f=c[(d&p)>>2]|0;e=jw(m|0,n|0,16,0)|0;e=es(f,e,G,g)|0;if(!e){h=s;k=c[(h&p)>>2]|0;h=c[(h&p)+4>>2]|0;if((k|0)==0&(h|0)==0){g=c[(d&p)>>2]|0;e=jw(m|0,n|0,20,0)|0;e=es(g,e,G,o)|0;if(e)break;g=c[(d&p)>>2]|0;e=jw(m|0,n|0,24,0)|0;e=es(g,e,G,r)|0;if(e)break;d=c[(r&p)>>2]|0;if(!d){h=c[(a&p)+152>>2]|0;c[(r&p)>>2]=h}else h=d;d=c[(o&p)>>2]|0;if(h>>>0<512|d>>>0<32|h>>>0>65536|d>>>0>65536){e=101;break}if(h+-1&h){e=101;break}if(d+-1&d){e=101;break}e=al(a,r,-1)|0;c[(q&p)>>2]=d;h=s;k=c[(h&p)>>2]|0;h=c[(h&p)+4>>2]|0}else{d=c[(q&p)>>2]|0;e=0}m=jw(k|0,h|0,d|0,0)|0;n=s;c[(n&p)>>2]=m;c[(n&p)+4>>2]=G}}}}else e=101;while(0);i=t;return e|0}function wq(f,g,h,k,l){f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;var m=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;D=i;i=i+16|0;if((i|0)>=(j|0))fa();y=D+8|0;r=D+4|0;u=D;B=c[(f&p)+200>>2]|0;C=(k|0)!=0;q=c[((C?f+64|0:f+68|0)&p)>>2]|0;t=g;t=es(q,c[(t&p)>>2]|0,c[(t&p)+4>>2]|0,r)|0;do if(!t){A=f+152|0;x=c[(A&p)>>2]|0;t=g;t=jw(c[(t&p)>>2]|0,c[(t&p)+4>>2]|0,4,0)|0;t=tc[c[((c[(q&p)>>2]|0)&p)+8>>2]&31](q,B,x,t,G)|0;if(!t){E=c[(A&p)>>2]|0;s=(k<<2)+4+E|0;t=g;t=jw(s|0,((s|0)<0)<<31>>31|0,c[(t&p)>>2]|0,c[(t&p)+4>>2]|0)|0;s=G;x=g;c[(x&p)>>2]=t;c[(x&p)+4>>2]=s;x=c[(r&p)>>2]|0;if((x|0)!=0?(x|0)!=(((c[2514]|0)/(E|0)|0)+1|0):0)if(x>>>0<=(c[(f&p)+24>>2]|0)>>>0?(di(h,x)|0)==0:0){if(C){t=jw(t|0,s|0,-4,-1)|0;t=es(q,t,G,u)|0;if(t){m=t;break}if(!l){t=c[(f&p)+48>>2]|0;s=(c[(A&p)>>2]|0)+-200|0;if((s|0)>0)do{t=(d[(B+s&n)>>0]|0)+t|0;s=s+-200|0}while((s|0)>0);if((t|0)!=(c[(u&p)>>2]|0)){m=101;break}}}if((h|0)!=0?(m=bi(h,x)|0,(m|0)!=0):0)break;u=(x|0)==1;if(u?(v=f+142|0,w=a[(B&n)+20>>0]|0,(b[(v&o)>>1]|0)!=(w&255|0)):0)b[(v&o)>>1]=w&255;if(!(c[(f&p)+208>>2]|0)){w=f+204|0;t=ac[c[8876>>2]&63](c[((c[(w&p)>>2]|0)&p)+40>>2]|0,x,0)|0;t=il(c[(w&p)>>2]|0,x,t)|0}else t=0;c[(y&p)>>2]=t;if(C)if(!(a[(f&n)+7>>0]|0)){w=g;h=c[(w&p)+4>>2]|0;s=f+80|0;v=c[(s&p)+4>>2]|0;s=(h|0)<(v|0)|((h|0)==(v|0)?(c[(w&p)>>2]|0)>>>0<=(c[(s&p)>>2]|0)>>>0:0)}else s=1;else if(!t)s=1;else s=(b[(t&o)+24>>1]&4)==0;r=c[(f&p)+60>>2]|0;q=c[(r&p)>>2]|0;do if(q){m=a[(f&n)+16>>0]|0;if((m&255)>3){if(!s){z=33;break}}else if(!(m<<24>>24==0&s)){z=33;break}s=c[(A&p)>>2]|0;m=sw(s|0,((s|0)<0)<<31>>31|0,x+-1|0,0)|0;m=tc[c[(q&p)+12>>2]&31](r,B,s,m,G)|0;s=f+32|0;if(x>>>0>(c[(s&p)>>2]|0)>>>0)c[(s&p)>>2]=x;s=c[(f&p)+88>>2]|0;if(s)ap(s,x,B)}else z=33;while(0);if((z|0)==33)if((k|0)==0&(t|0)==0){w=f+20|0;a[(w&n)>>0]=d[(w&n)>>0]|2;m=zg(f,x,y,1)|0;a[(w&n)>>0]=d[(w&n)>>0]&253;if(m)break;t=c[(y&p)>>2]|0;m=t+24|0;b[(m&o)>>1]=e[(m&o)>>1]&65527;To(t);m=0}else m=0;if(t){r=c[(t&p)+4>>2]|0;kw(r|0,B|0,c[(A&p)>>2]|0)|0;cc[c[(f&p)+196>>2]&31](t);do if(C){if((l|0)!=0?(w=g,h=c[(w&p)+4>>2]|0,x=f+80|0,v=c[(x&p)+4>>2]|0,(h|0)>(v|0)|((h|0)==(v|0)?(c[(w&p)>>2]|0)>>>0>(c[(x&p)>>2]|0)>>>0:0)):0)break;xl(t)}while(0);if(u){s=f+104|0;q=r+24|0;r=s+16|0;do{a[(s&n)>>0]=a[(q&n)>>0]|0;s=s+1|0;q=q+1|0}while((s|0)<(r|0))}ol(t)}}else m=0;else m=101}else m=t}else m=t;while(0);i=D;return m|0}function xq(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0;g=b+24|0;if((c[(g&p)>>2]|0)<=(e|0)){i=e+1|0;j=b+32|0;h=Xc(c[(j&p)>>2]|0,i<<2)|0;if(!h){g=7;h=0}else{k=c[(g&p)>>2]|0;fw(h+(k<<2)|0,0,i-k<<2|0)|0;c[(j&p)>>2]=h;c[(g&p)>>2]=i;k=5}}else{h=c[(b&p)+32>>2]|0;k=5}if((k|0)==5){j=b+32|0;h=h+(e<<2)|0;do if(!(c[(h&p)>>2]|0)){if((a[(b&n)+43>>0]|0)!=2){g=c[(b&p)+4>>2]|0;g=tc[c[((c[(g&p)>>2]|0)&p)+52>>2]&31](g,e,32768,d[(b&n)+44>>0]|0,h)|0;if((g|0)!=8)break;g=b+46|0;a[(g&n)>>0]=d[(g&n)>>0]|2;g=0;break}g=qg(32768,0)|0;if(g)fw(g|0,0,32768)|0;c[((c[(j&p)>>2]|0)+(e<<2)&p)>>2]=g;g=(c[((c[(j&p)>>2]|0)+(e<<2)&p)>>2]|0)==0?7:0}else g=0;while(0);h=c[((c[(j&p)>>2]|0)+(e<<2)&p)>>2]|0}c[(f&p)>>2]=h;return g|0}function yq(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;h=b+d|0;if(!e){g=0;d=0}else{g=c[(e&p)>>2]|0;d=c[(e&p)+4>>2]|0}if(!a)do{g=g+d+(nw(c[(b&p)>>2]|0)|0)|0;d=g+d+(nw(c[(b&p)+4>>2]|0)|0)|0;b=b+8|0}while(b>>>0>>0);else do{g=g+d+(c[(b&p)>>2]|0)|0;d=g+d+(c[(b&p)+4>>2]|0)|0;b=b+8|0}while(b>>>0>>0);c[(f&p)>>2]=g;c[(f&p)+4>>2]=d;return}function zq(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;h=a+8|0;g=c[(h&p)>>2]|0;h=c[(h&p)+4>>2]|0;if((h|0)>(f|0)|(h|0)==(f|0)&g>>>0>e>>>0?(i=jw(d|0,((d|0)<0)<<31>>31|0,e|0,f|0)|0,k=G,!((k|0)<(h|0)|(k|0)==(h|0)&i>>>0>>0)):0){i=dw(g|0,h|0,e|0,f|0)|0;h=a+4|0;g=c[(h&p)>>2]|0;g=tc[c[((c[(g&p)>>2]|0)&p)+12>>2]&31](g,b,i,e,f)|0;if(!g){e=jw(i|0,((i|0)<0)<<31>>31|0,e|0,f|0)|0;f=G;g=c[(h&p)>>2]|0;g=rc[c[((c[(g&p)>>2]|0)&p)+20>>2]&127](g,c[(a&p)+16>>2]&19)|0;if(!((i|0)==(d|0)|(g|0)!=0)){d=d-i|0;h=b+i|0;g=f;j=5}}}else{h=b;g=f;j=5}if((j|0)==5){f=c[(a&p)+4>>2]|0;g=tc[c[((c[(f&p)>>2]|0)&p)+12>>2]&31](f,h,d,e,g)|0}return g|0}function Aq(a){a=a|0;var d=0,f=0,g=0,h=0,k=0,l=0;l=i;i=i+16|0;if((i|0)>=(j|0))fa();h=l+8|0;k=l+4|0;g=l;c[(h&p)>>2]=0;c[(k&p)>>2]=0;c[(g&p)>>2]=0;f=a+68|0;d=c[(f&p)>>2]|0;if(d){Po(a,(d+33|0)>>>12,h,k,g)|0;g=(c[(f&p)>>2]|0)-(c[(g&p)>>2]|0)|0;a=c[(h&p)>>2]|0;f=0;do{d=a+(f<<1)|0;if((e[(d&o)>>1]|0|0)>(g|0))b[(d&o)>>1]=0;f=f+1|0}while((f|0)!=8192);d=(c[(k&p)>>2]|0)+(g+1<<2)|0;fw(d|0,0,a-d|0)|0}i=l;return}function Bq(a,d){a=a|0;d=d|0;var e=0,f=0,g=0,h=0;g=i;i=i+16|0;if((i|0)>=(j|0))fa();e=g;h=a+204|0;f=ac[c[8876>>2]&63](c[((c[(h&p)>>2]|0)&p)+40>>2]|0,d,0)|0;f=il(c[(h&p)>>2]|0,d,f)|0;do if(!f)e=0;else{if((b[(f&o)+26>>1]|0)==1){ml(f);e=0;break}c[(e&p)>>2]=0;d=kl(c[(a&p)+208>>2]|0,c[(f&p)+20>>2]|0,e)|0;if(!d){d=ll(f,c[(e&p)>>2]|0)|0;if(!d){cc[c[(a&p)+196>>2]&31](f);d=0}}Bg(f);e=d}while(0);d=c[(a&p)+88>>2]|0;if(d)do{c[(d&p)+16>>2]=1;d=c[(d&p)+44>>2]|0}while((d|0)!=0);i=g;return e|0}function Cq(f,g,h){f=f|0;g=g|0;h=h|0;var k=0,l=0,m=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;G=i;i=i+16|0;if((i|0)>=(j|0))fa();F=G;C=c[(f&p)+52>>2]|0;t=(c[(C&p)+36>>2]|0)+-4|0;y=g&65535;D=h&65535;x=D+y|0;E=c[(f&p)+56>>2]|0;if(b[(C&o)+22>>1]&4)fw(E+y|0,0,D|0)|0;B=d[(f&n)+6>>0]|0;C=B+1|0;q=C&65535;A=C&65535;if((a[(E+A&n)+1>>0]|0)==0?(a[(E+A&n)>>0]|0)==0:0){v=h&255;t=(h&65535)>>>8&255;u=x;s=0;r=0;A=23}else{v=q;A=6}a:do if((A|0)==6){while(1){A=0;m=v&65535;r=a[(E+m&n)+1>>0]|0;l=r&255;u=d[(E+m&n)>>0]<<8|l;q=v;v=u&65535;if(!(u>>>0>>0&(u|0)!=0)){s=r;w=u;break}if(u>>>0<(m+4|0)>>>0){A=8;break}else A=6}if((A|0)==8){c[(F&p)>>2]=54420;c[(F&p)+4>>2]=10788;bd(11,13600,F);k=11;break}if(w>>>0>t>>>0){c[(F&p)>>2]=54423;c[(F&p)+4>>2]=10788;bd(11,13600,F);k=11;break}k=h&255;t=(h&65535)>>>8&255;r=(v&65535)>>>8&255;do if((w+-1|0)>>>0<(x+3|0)>>>0)if(x>>>0>w>>>0){c[(F&p)>>2]=54434;c[(F&p)+4>>2]=10788;bd(11,13600,F);k=11;break a}else{u=(d[(E+w&n)+2>>0]<<8|d[(E+w&n)+3>>0])+w|0;t=u-y|0;v=t&255;t=(t&65535)>>>8&255;s=a[(E+w&n)+1>>0]|0;r=a[(E+w&n)>>0]|0;k=l-x&255;break}else{v=k;u=x;k=0}while(0);do if(m>>>0>C>>>0?(z=(d[(E+m&n)+2>>0]<<8|d[(E+m&n)+3>>0])+m|0,(z+3|0)>=(y|0)):0)if((y|0)<(z|0)){c[(F&p)>>2]=54447;c[(F&p)+4>>2]=10788;bd(11,13600,F);k=11;break a}else{t=u-m|0;g=q;v=t&255;t=(t&65535)>>>8&255;k=(k&255)+y-z&255;break}while(0);m=E+(B+7)|0;l=a[(m&n)>>0]|0;if((l&255)<(k&255)){c[(F&p)>>2]=54453;c[(F&p)+4>>2]=10788;bd(11,13600,F);k=11;break}else{a[(m&n)>>0]=(l&255)-(k&255);A=23;break}}while(0);b:do if((A|0)==23){k=g&65535;l=E+(B+5)|0;m=E+(B+6)|0;do if((k|0)==(d[(l&n)>>0]<<8|d[(m&n)>>0]|0))if((q&65535|0)==(C|0)){a[(E+C&n)>>0]=r;a[(E+B&n)+2>>0]=s;a[(l&n)>>0]=u>>>8;a[(m&n)>>0]=u;break}else{c[(F&p)>>2]=54460;c[(F&p)+4>>2]=10788;bd(11,13600,F);k=11;break b}else{F=q&65535;a[(E+F&n)>>0]=(g&65535)>>>8;a[(E+F&n)+1>>0]=g;a[(E+k&n)>>0]=r;a[(E+k&n)+1>>0]=s;a[(E+k&n)+2>>0]=t;a[(E+k&n)+3>>0]=v}while(0);k=f+16|0;b[(k&o)>>1]=(e[(k&o)>>1]|0)+D;k=0}while(0);i=G;return k|0}function Dq(b,e,f,g){b=b|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,o=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0;w=i;i=i+16|0;if((i|0)>=(j|0))fa();t=w;s=d[(b&n)+6>>0]|0;v=c[(b&p)+56>>2]|0;r=c[((c[(b&p)+52>>2]|0)&p)+36>>2]|0;l=r+-4|0;b=s+1|0;while(1){m=v+b|0;o=(d[(m&n)>>0]|0)<<8|(d[(v+b&n)+1>>0]|0);if(!o){b=0;break}if((o|0)>(l|0)|(o|0)<(b+4|0)){u=4;break}h=v+(o+2)|0;k=v+(o+3)|0;b=(d[(h&n)>>0]|0)<<8|(d[(k&n)>>0]|0);if((b|0)<(e|0))b=o;else{q=h;l=o;u=6;break}}a:do if((u|0)==4){c[(t&p)>>2]=54252;c[(t&p)+4>>2]=10788;bd(11,13600,t);c[(f&p)>>2]=11;b=0}else if((u|0)==6){h=b-e|0;do if((h|0)>=4)if((b+l|0)>(r|0)){c[(t&p)>>2]=54275;c[(t&p)+4>>2]=10788;bd(11,13600,t);c[(f&p)>>2]=11;b=0;break a}else{a[(q&n)>>0]=h>>>8;a[(k&n)>>0]=h;break}else{b=v+(s+7)|0;if((d[(b&n)>>0]|0)<=59){s=v+l|0;s=d[(s&n)>>0]|d[(s&n)+1>>0]<<8;a[(m&n)>>0]=s;a[(m&n)+1>>0]=s>>8;a[(b&n)>>0]=(d[(b&n)>>0]|0)+h;break}if(!g){b=0;break a}c[(g&p)>>2]=1;b=0;break a}while(0);b=v+(h+l)|0}while(0);i=w;return b|0}function Eq(f){f=f|0;var g=0,h=0,k=0,l=0,m=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;G=i;i=i+16|0;if((i|0)>=(j|0))fa();E=G;B=c[(f&p)+56>>2]|0;D=d[(f&n)+6>>0]|0;x=e[(f&o)+14>>1]|0;y=b[(f&o)+18>>1]|0;t=y&65535;u=f+52|0;v=c[((c[(u&p)>>2]|0)&p)+36>>2]|0;C=(t<<1)+x|0;w=v+-4|0;z=B+(D+5)|0;A=B+(D+6)|0;a:do if(y<<16>>16){s=v;y=0;h=B;k=0;while(1){m=(y<<1)+x|0;l=B+m|0;m=B+(m+1)|0;q=(d[(l&n)>>0]|0)<<8|(d[(m&n)>>0]|0);if((q|0)<(C|0)|(q|0)>(w|0)){F=3;break}r=(Lp(f,h+q|0)|0)&65535;g=s-r|0;if((g|0)<(C|0)|(r+q|0)>(v|0)){F=5;break}a[(l&n)>>0]=g>>>8;a[(m&n)>>0]=g;if(!k)if((g|0)==(q|0))k=0;else{k=c[((c[(c[(u&p)>>2]&p)>>2]|0)&p)+200>>2]|0;h=(d[(z&n)>>0]|0)<<8|(d[(A&n)>>0]|0);kw(k+h|0,B+h|0,s-h|0)|0;h=k;F=9}else F=9;if((F|0)==9){F=0;kw(B+g|0,h+q|0,r|0)|0}y=y+1|0;if((y|0)>=(t|0)){F=11;break a}else s=g}if((F|0)==3){c[(E&p)>>2]=54184;c[(E&p)+4>>2]=10788;bd(11,13600,E);g=11;break}else if((F|0)==5){c[(E&p)>>2]=54196;c[(E&p)+4>>2]=10788;bd(11,13600,E);g=11;break}}else{g=v;F=11}while(0);if((F|0)==11){a[(z&n)>>0]=g>>>8;a[(A&n)>>0]=g;a[(B+D&n)+1>>0]=0;a[(B+D&n)+2>>0]=0;a[(B+D&n)+7>>0]=0;F=g-C|0;fw(B+C|0,0,F|0)|0;if((F|0)==(e[(f&o)+16>>1]|0|0))g=0;else{c[(E&p)>>2]=54221;c[(E&p)+4>>2]=10788;bd(11,13600,E);g=11}}i=G;return g|0}function Fq(a,e,f){a=a|0;e=e|0;f=f|0;var g=0,h=0,k=0;k=i;i=i+32|0;if((i|0)>=(j|0))fa();h=k;if((c[(f&p)>>2]|0)==0?(rp(a,e,h),g=b[(h&o)+18>>1]|0,g<<16>>16!=0):0){g=g&65535;zp(c[(a&p)+52>>2]|0,(d[(e+g&n)+1>>0]|0)<<16|(d[(e+g&n)>>0]|0)<<24|(d[(e+g&n)+2>>0]|0)<<8|(d[(e+g&n)+3>>0]|0),3,c[(a&p)+72>>2]|0,f)}i=k;return}function Gq(b,f,g){b=b|0;f=f|0;g=g|0;var h=0,i=0,j=0,k=0,l=0,m=0;do if(!(c[(g&p)>>2]|0)){h=c[(b&p)+52>>2]|0;j=c[(b&p)+56>>2]|0;l=c[(f&p)+56>>2]|0;i=d[(b&n)+6>>0]|0;k=(c[(f&p)+72>>2]|0)==1?100:0;m=d[(j+i&n)+5>>0]<<8|d[(j+i&n)+6>>0];kw(l+m|0,j+m|0,(c[(h&p)+36>>2]|0)-m|0)|0;kw(l+k|0,j+i|0,(e[(b&o)+18>>1]<<1)+(e[(b&o)+14>>1]|0)|0)|0;a[(f&n)>>0]=0;b=$p(f)|0;if(b){c[(g&p)>>2]=b;break}if(a[(h&n)+17>>0]|0)c[(g&p)>>2]=_p(f)|0}while(0);return}function Hq(f,g,h,i){f=f|0;g=g|0;h=h|0;i=i|0;var j=0,k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0;t=d[(f&n)+6>>0]|0;w=c[(f&p)+56>>2]|0;m=c[(f&p)+52>>2]|0;r=c[(m&p)+36>>2]|0;q=w+r|0;j=c[(f&p)+64>>2]|0;m=c[((c[(m&p)>>2]|0)&p)+200>>2]|0;s=w+(t+5)|0;u=w+(t+6)|0;v=(d[(s&n)>>0]|0)<<8|(d[(u&n)>>0]|0);kw(m+v|0,w+v|0,r-v|0)|0;v=w;if((g|0)>0){r=0;l=j;j=q;while(1){k=c[(h+(r<<2)&p)>>2]|0;if(k>>>0>w>>>0&k>>>0>>0)k=m+(k-v)|0;x=e[(i+(r<<1)&o)>>1]|0;j=j+(0-x)|0;kw(j|0,k|0,x|0)|0;k=j-v|0;a[(l&n)>>0]=k>>>8;a[(l&n)+1>>0]=k;r=r+1|0;if((r|0)==(g|0))break;else l=l+2|0}}else j=q;i=f+18|0;b[(i&o)>>1]=g;a[(f&n)+1>>0]=0;a[(w+t&n)+1>>0]=0;a[(w+t&n)+2>>0]=0;a[(w+t&n)+3>>0]=(e[(i&o)>>1]|0)>>>8;a[(w+t&n)+4>>0]=b[(i&o)>>1];i=j-v|0;a[(s&n)>>0]=i>>>8;a[(u&n)>>0]=i;a[(w+t&n)+7>>0]=0;return}function Iq(a,b,f,g){a=a|0;b=b|0;f=f|0;g=g|0;var h=0,i=0,j=0,k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0;u=c[(a&p)+56>>2]|0;s=u+(c[((c[(a&p)+52>>2]|0)&p)+36>>2]|0)|0;q=u+((d[(a&n)+6>>0]|0)+8+(d[(a&n)+7>>0]|0))|0;a:do if((b|0)>0){r=u;t=0;h=0;l=0;m=0;while(1){j=c[(f+(t<<2)&p)>>2]|0;if(j>>>0>=q>>>0&j>>>0>>0){i=e[(g+(t<<1)&o)>>1]|0;k=j+i|0;if((l|0)!=(k|0)){if(l)Cq(a,l-r&65535,m&65535)|0;if(k>>>0>s>>>0){h=0;break a}}else i=i+m|0;h=h+1|0}else{j=l;i=m}t=t+1|0;if((t|0)>=(b|0))break;else{l=j;m=i}}if(j)Cq(a,j-u&65535,i&65535)|0}else h=0;while(0);return h|0}function Jq(b,d,f,g,h,k,l){b=b|0;d=d|0;f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;var m=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0;y=i;i=i+16|0;if((i|0)>=(j|0))fa();w=y;q=c[(b&p)+56>>2]|0;m=c[(f&p)>>2]|0;if(!(a[(q&n)+1>>0]|0))v=(a[(q&n)+2>>0]|0)!=0;else v=1;a:do if((h|0)>0){t=0;while(1){s=e[(l+(t<<1)&o)>>1]|0;if(v?(u=Dq(b,s,w,0)|0,(u|0)!=0):0)r=u;else{r=m+(0-s)|0;if(r>>>0>>0){m=1;break a}else m=r}kw(r|0,c[(k+(t<<2)&p)>>2]|0,s|0)|0;s=r-q|0;a[(g&n)>>0]=s>>>8;a[(g&n)+1>>0]=s;t=t+1|0;if((t|0)>=(h|0)){x=9;break}else g=g+2|0}}else x=9;while(0);if((x|0)==9){c[(f&p)>>2]=m;m=0}i=y;return m|0}function Kq(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,q=0,r=0;o=i;i=i+16|0;if((i|0)>=(j|0))fa();n=o;e=c[(a&p)+44>>2]|0;h=a;f=c[(h&p)>>2]|0;h=c[(h&p)+4>>2]|0;a:do if(!e){m=a+40|0;e=c[(m&p)>>2]|0;g=((e|0)<0)<<31>>31;l=rw(f|0,h|0,e|0,g|0)|0;if(!l){k=a+8|0;k=dw(c[(k&p)>>2]|0,c[(k&p)+4>>2]|0,f|0,h|0)|0;q=G;r=c[(a&p)+24>>2]|0;e=tc[c[((c[(r&p)>>2]|0)&p)+8>>2]&31](r,c[(a&p)+36>>2]|0,(q|0)>(g|0)|(q|0)==(g|0)&k>>>0>e>>>0?e:k,f,h)|0;if(e)break;e=c[(m&p)>>2]|0}k=e-l|0;if((k|0)>=(b|0)){c[(d&p)>>2]=(c[(a&p)+36>>2]|0)+l;e=a;b=jw(c[(e&p)>>2]|0,c[(e&p)+4>>2]|0,b|0,((b|0)<0)<<31>>31|0)|0;e=a;c[(e&p)>>2]=b;c[(e&p)+4>>2]=G;e=0;break}e=a+16|0;f=c[(e&p)>>2]|0;if((f|0)<(b|0)){f=f<<1;f=(f|0)<128?128:f;while(1)if((f|0)<(b|0))f=f<<1;else{h=f;break}g=a+28|0;f=rg(c[(g&p)>>2]|0,h,((h|0)<0)<<31>>31)|0;if(!f){e=7;break}c[(e&p)>>2]=h;c[(g&p)>>2]=f}else f=c[(a&p)+28>>2]|0;h=a+28|0;kw(f|0,(c[(a&p)+36>>2]|0)+l|0,k|0)|0;l=a;l=jw(c[(l&p)>>2]|0,c[(l&p)+4>>2]|0,k|0,((k|0)<0)<<31>>31|0)|0;e=a;c[(e&p)>>2]=l;c[(e&p)+4>>2]=G;e=b-k|0;if((e|0)>0){g=e;do{f=c[(m&p)>>2]|0;f=(g|0)>(f|0)?f:g;e=Kq(a,f,n)|0;if(e)break a;kw((c[(h&p)>>2]|0)+(b-g)|0,c[(n&p)>>2]|0,f|0)|0;g=g-f|0}while((g|0)>0)}c[(d&p)>>2]=c[(h&p)>>2];e=0}else{c[(d&p)>>2]=e+f;b=jw(f|0,h|0,b|0,((b|0)<0)<<31>>31|0)|0;e=a;c[(e&p)>>2]=b;c[(e&p)+4>>2]=G;e=0}while(0);i=o;return e|0}function Lq(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=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,x=0,y=0,z=0,A=0;A=i;i=i+64|0;if((i|0)>=(j|0))fa();x=A+44|0;z=A;y=A+40|0;v=a+8|0;u=c[(v&p)>>2]|0;v=c[(v&p)+4>>2]|0;w=a+4|0;q=c[(w&p)>>2]|0;Pp(c[(a&p)+48>>2]|0,z,c[((c[((c[(a&p)>>2]|0)&p)+8>>2]|0)&p)+12>>2]|0,u,v);o=q+8|0;q=q+12|0;r=z+24|0;s=z+16|0;t=a+16|0;while(1){f=c[((c[(o&p)>>2]|0)&p)+4>>2]|0;g=c[(q&p)>>2]|0;h=c[(g+(f*56|0)&p)+20>>2]|0;if(!(c[(g+(f*56|0)&p)+24>>2]|0)){d=1;b=0;break}l=r;k=c[(l&p)>>2]|0;l=c[(l&p)+4>>2]|0;m=c[(s&p)>>2]|0;n=((h|0)<0)<<31>>31;b=h;e=n;d=0;do{d=d+1|0;b=mw(b|0,e|0,7)|0;e=G}while(((b|0)!=0|(e|0)!=0)&(d|0)<9);k=jw(k|0,l|0,h|0,n|0)|0;k=jw(k|0,G|0,m|0,((m|0)<0)<<31>>31|0)|0;d=jw(k|0,G|0,d|0,((d|0)<0)<<31>>31|0)|0;k=G;b=c[(t&p)>>2]|0;b=jw(b|0,((b|0)<0)<<31>>31|0,u|0,v|0)|0;e=G;if((k|0)>(e|0)|(k|0)==(e|0)&d>>>0>b>>>0){d=1;b=0;break}Qp(z,x,pm(x,h,n)|0);Qp(z,c[(g+(f*56|0)&p)+32>>2]|0,h);b=Wm(c[(w&p)>>2]|0,y)|0;if(b){d=0;break}}z=Rp(z,a+56|0)|0;i=A;return (d?z:b)|0}function Mq(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0;d=i;i=i+16|0;if((i|0)>=(j|0))fa();f=d;c[(f&p)>>2]=e;e=Wk(a,13592,f)|0;mg(a,b);i=d;return e|0}function Nq(d,e,f,g){d=d|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,q=0;q=i;i=i+16|0;if((i|0)>=(j|0))fa();m=q;h=a[(d&n)>>0]|0;if(h<<24>>24!=0&(e|0)>0){l=0;do{if((h+-48&255)<10){k=0;do{k=(k*10|0)+-48+(h<<24>>24)|0;d=d+1|0;h=a[(d&n)>>0]|0}while((h+-48&255)<10);h=0}else{k=0;h=0}b[(f+(l<<1)&o)>>1]=fs(k,h)|0;d=(a[(d&n)>>0]|0)==32?d+1|0:d;l=l+1|0;h=a[(d&n)>>0]|0}while(h<<24>>24!=0&(l|0)<(e|0))}l=g+51|0;a[(l&n)>>0]=a[(l&n)>>0]&-69;a:do if(a[(d&n)>>0]|0){f=g+44|0;b:while(1){do if(!(Gh(13448,d,10352,0)|0)){if(Gh(13464,d,10352,0)|0){c[(m&p)>>2]=0;Dn(d+3|0,m)|0;h=c[(m&p)>>2]|0;b[(f&o)>>1]=fs(h,((h|0)<0)<<31>>31)|0;break}if(Gh(13480,d,10352,0)|0)a[(l&n)>>0]=a[(l&n)>>0]|64}else a[(l&n)>>0]=a[(l&n)>>0]|4;while(0);while(1){h=a[(d&n)>>0]|0;if(h<<24>>24==32|h<<24>>24==0)break;d=d+1|0}while(1){k=d+1|0;if(!(h<<24>>24))break a;else if(h<<24>>24!=32)continue b;h=a[(k&n)>>0]|0;d=k}}}while(0);i=q;return}function Oq(d){d=d|0;var e=0,f=0;f=d+8|0;e=c[(f&p)>>2]|0;if(!e){e=vh(d)|0;c[(f&p)>>2]=e;if(e)wh(e,155,0,0,0)|0;if((c[(d&p)+408>>2]|0)==0?(b[((c[(d&p)>>2]|0)&o)+60>>1]&8)==0:0)a[(d&n)+23>>0]=1}return e|0}function Pq(b,d){b=b|0;d=d|0;var e=0;e=(c[(b&p)+32>>2]|0)+-1|0;if((e|0)>(c[((c[(b&p)+24>>2]|0)&p)+88>>2]|0)?(a[((c[(b&p)+4>>2]|0)+(e*20|0)&n)>>0]|0)==d<<24>>24:0){zh(b,e);e=1}else e=0;return e|0}function Qq(d,e,f,g,h){d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var i=0,j=0;j=Oq(d)|0;i=g+32|0;gs(d,f,c[(i&p)>>2]|0,(h|0)==55&1,c[(g&p)>>2]|0);if(!(a[(g&n)+44>>0]&32)){g=b[(g&o)+38>>1]|0;xh(j,wh(j,h,e,c[(i&p)>>2]|0,f)|0,g,-14)}else{i=c[(g&p)+8>>2]|0;a:do if(!i)i=0;else while(1){if((a[(i&n)+51>>0]&3)==2)break a;i=c[(i&p)+20>>2]|0;if(!i){i=0;break}}while(0);wh(j,h,e,c[(i&p)+40>>2]|0,f)|0;g=c[(d&p)+8>>2]|0;xh(g,-1,hs(d,i)|0,-6)}return}function Rq(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0;if((d|0)!=0?(a[(d&n)>>0]|0)==-97:0)wh(c[(b&p)+8>>2]|0,33,c[(d&p)+28>>2]|0,e,0)|0;else h=4;if(((h|0)==4?(g=is(b,d,e)|0,(g|0)!=(e|0)):0)?(f=c[(b&p)+8>>2]|0,(f|0)!=0):0)wh(f,34,g,e,0)|0;return}function Sq(b,d,e,f,g){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0;m=i;i=i+16|0;if((i|0)>=(j|0))fa();l=m;h=c[(b&p)>>2]|0;do if(((a[(h&n)+145>>0]|0)==0?(a[(b&n)+451>>0]|0)==0:0)?(k=c[(h&p)+284>>2]|0,(k|0)!=0):0){h=kc[k&7](c[(h&p)+288>>2]|0,d,e,f,g,c[(b&p)+492>>2]|0)|0;if((h|0)==1){th(b,25216,l);c[(b&p)+12>>2]=23;h=1;break}else if((h|0)==0|(h|0)==2)break;else{th(b,25232,l);c[(b&p)+12>>2]=1;h=1;break}}else h=0;while(0);i=m;return h|0}function Tq(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;d=Wq(c[(a&p)>>2]|0,d)|0;do if(d){e=Oq(a)|0;if((e|0)!=0?(Sq(a,32,c[(b<<2&p)+37088>>2]|0,d,0)|0)==0:0){xh(e,wh(e,2,b,0,0)|0,d,-1);break}mg(c[(a&p)>>2]|0,d)}while(0);return}function Uq(e,f,g,h,k,l,m){e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;m=m|0;var q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0;y=i;i=i+16|0;if((i|0)>=(j|0))fa();u=y;s=y+4|0;x=c[(e&p)>>2]|0;f=er(e,f,g,s)|0;a:do if((f|0)>=0){t=(h|0)!=0;if(t?(c[(g&p)+4>>2]|0)!=0&(f|0)!=1:0){th(e,36976,u);break}w=t?1:f;g=c[(s&p)>>2]|0;t=g;f=c[(t&p)+4>>2]|0;s=e+496|0;c[(s&p)>>2]=c[(t&p)>>2];c[(s&p)+4>>2]=f;s=Wq(x,g)|0;if(s){b:do if((Lr(e,s)|0)==0?(r=(a[(x&n)+144>>0]|0)==1?1:h,v=x+16|0,q=c[((c[(v&p)>>2]|0)+(w<<4)&p)>>2]|0,(Sq(e,18,(r|0)==1?13184:13208,0,q)|0)==0):0){h=(r|0)!=0;if(!k)f=h?4:2;else f=h?6:8;t=(l|0)!=0;if(!t?(Sq(e,f,s,0,q)|0)!=0:0)break;do if(!(a[(e&n)+451>>0]|0)){h=c[((c[(v&p)>>2]|0)+(w<<4)&p)>>2]|0;if(Gn(e)|0)break b;if(!(_h(x,s,h)|0)){if(!(bq(x,s,h)|0))break;c[(u&p)>>2]=s;th(e,37048,u);break b}if(!m){c[(u&p)>>2]=g;th(e,37024,u);break b}else{Ar(e,w);break b}}while(0);r=mh(x,76,0)|0;if(!r){a[(x&n)+65>>0]=1;c[(e&p)+12>>2]=7;v=e+64|0;c[(v&p)>>2]=(c[(v&p)>>2]|0)+1;break}q=r+0|0;h=q+76|0;do{a[(q&n)>>0]=0;q=q+1|0}while((q|0)<(h|0));c[(r&p)>>2]=s;b[(r&o)+36>>1]=-1;q=c[((c[(v&p)>>2]|0)+(w<<4)&p)+12>>2]|0;c[(r&p)+68>>2]=q;b[(r&o)+40>>1]=1;b[(r&o)+28>>1]=200;c[(e&p)+484>>2]=r;if((a[(e&n)+18>>0]|0)==0?(_v(s,26576)|0)==0:0)c[(q&p)+72>>2]=r;if(a[(x&n)+145>>0]|0)break a;g=Oq(e)|0;if(!g)break a;v=c[(e&p)+408>>2]|0;Ar(e,w);q=1<>2]=c[(v&p)>>2]|q;if(t)wh(g,146,0,0,0)|0;r=e+72|0;f=c[(r&p)>>2]|0;s=f+1|0;c[(e&p)+384>>2]=s;t=f+2|0;c[(e&p)+388>>2]=t;f=f+3|0;c[(r&p)>>2]=f;wh(g,51,w,f,2)|0;r=g+96|0;c[(r&p)>>2]=c[(r&p)>>2]|q;r=wh(g,45,f,0,0)|0;wh(g,25,(c[(x&p)+24>>2]&32768|0)!=0?1:4,f,0)|0;wh(g,52,w,2,f)|0;wh(g,25,d[(x&n)+62>>0]|0,f,0)|0;wh(g,52,w,5,f)|0;h=g+32|0;q=c[(h&p)>>2]|0;if(q>>>0>r>>>0)c[((c[(g&p)+4>>2]|0)+(r*20|0)&p)+8>>2]=q;c[((c[(g&p)+24>>2]|0)&p)+88>>2]=q+-1;if(!(l|k))c[(e&p)+416>>2]=wh(g,121,w,t,0)|0;else wh(g,25,0,t,0)|0;js(e,w);wh(g,74,0,s,0)|0;wh(g,28,0,f,0)|0;wh(g,75,0,f,s)|0;q=c[(g&p)+4>>2]|0;if(q)a[(q+(((c[(h&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=8;wh(g,61,0,0,0)|0;break a}while(0);mg(x,s)}}while(0);i=y;return}function Vq(f,g,h,k,l){f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;var m=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;R=i;i=i+176|0;if((i|0)>=(j|0))fa();M=R+80|0;J=R+168|0;G=R;H=R+136|0;I=R+112|0;N=c[(f&p)>>2]|0;a:do if((!((h|0)==0&(l|0)==0)?(O=N+65|0,(a[(O&n)>>0]|0)==0):0)?(P=f+484|0,Q=c[(P&p)>>2]|0,(Q|0)!=0):0){L=N+145|0;if(a[(L&n)>>0]|0)c[(Q&p)+32>>2]=c[(N&p)+140>>2];b:do if(k&32){s=Q+44|0;r=d[(s&n)>>0]|0;if(r&8){th(f,36584,M);break a}if(!(r&4)){c[(M&p)>>2]=c[(Q&p)>>2];th(f,36640,M);break}a[(s&n)>>0]=r|32;t=c[(f&p)+8>>2]|0;s=c[(f&p)+416>>2]|0;if(s){if((s|0)<0)s=(c[(t&p)+32>>2]|0)+-1|0;if(!(a[((c[(t&p)>>2]|0)&n)+65>>0]|0))s=(c[(t&p)+4>>2]|0)+(s*20|0)|0;else s=29120;a[(s&n)>>0]=120}s=c[(f&p)+420>>2]|0;if(s){if((s|0)<0)s=(c[(t&p)+32>>2]|0)+-1|0;if(!(a[((c[(t&p)>>2]|0)&n)+65>>0]|0))r=(c[(t&p)+4>>2]|0)+(s*20|0)|0;else r=29120;a[(r&n)>>0]=16}r=Q+36|0;if((b[(r&o)>>1]|0)>-1){s=lr(f,0,0)|0;if(!s)break;C=kh(c[(f&p)>>2]|0,c[((c[(Q&p)+4>>2]|0)+((b[(r&o)>>1]|0)*24|0)&p)>>2]|0)|0;D=c[(s&p)+4>>2]|0;c[(D&p)+4>>2]=C;a[(D&n)+12>>0]=a[(f&n)+448>>0]|0;s=$q(f,0,0,0,s,d[(Q&n)+45>>0]|0,0,0,0,0)|0;if(!s)break;x=s+51|0;a[(x&n)>>0]=a[(x&n)>>0]&-4|2;b[(r&o)>>1]=-1;x=b[(s&o)+46>>1]|0}else{s=c[(Q&p)+8>>2]|0;c:do if(!s)s=0;else while(1){if((a[(s&n)+51>>0]&3)==2)break c;s=c[(s&p)+20>>2]|0;if(!s){s=0;break}}while(0);y=s+46|0;t=b[(y&o)>>1]|0;if((t&65535)>1){w=c[(s&p)+4>>2]|0;v=s+48|0;x=1;r=1;do{m=b[(w+(x<<1)&o)>>1]|0;u=r;q=w;while(1){if((u|0)<=0){F=36;break}if((b[(q&o)>>1]|0)==m<<16>>16){F=35;break}else{u=u+-1|0;q=q+2|0}}if((F|0)==35){F=0;b[(v&o)>>1]=(b[(v&o)>>1]|0)+-1<<16>>16}else if((F|0)==36){F=0;b[(w+(r<<1)&o)>>1]=m;t=b[(y&o)>>1]|0;r=r+1|0}x=x+1|0}while((x|0)<(t&65535|0))}else r=1;x=r&65535;b[(y&o)>>1]=x}u=s+51|0;t=a[(u&n)>>0]|32;a[(u&n)>>0]=t;D=x&65535;if(!(a[(N&n)+147>>0]|0)){if(x<<16>>16){t=c[(s&p)+4>>2]|0;r=c[(Q&p)+4>>2]|0;q=0;do{a[(r+((b[(t+(q<<1)&o)>>1]|0)*24|0)&n)+20>>0]=1;q=q+1|0}while((q|0)<(D|0));t=a[(u&n)>>0]|0}a[(u&n)>>0]=t|8}c[(s&p)+40>>2]=c[(Q&p)+32>>2];u=c[(Q&p)+8>>2]|0;if(u){A=x<<16>>16==0;B=s+4|0;C=s+32|0;do{d:do if((a[(u&n)+51>>0]&3)!=2){do if(A)t=b[(u&o)+46>>1]|0;else{v=c[(u&p)+4>>2]|0;t=b[(u&o)+46>>1]|0;q=t&65535;m=c[(B&p)>>2]|0;z=0;r=0;do{w=b[(m+(z<<1)&o)>>1]|0;y=q;x=v;while(1){if((y|0)<=0){x=1;break}if((b[(x&o)>>1]|0)==w<<16>>16){x=0;break}else{y=y+-1|0;x=x+2|0}}r=x+r|0;z=z+1|0}while((z|0)<(D|0));q=u+46|0;if(!r)break;if(ks(N,u,(t&65535)+r|0)|0)break b;if(A)break d;w=b[(q&o)>>1]|0;z=u+4|0;m=u+32|0;y=w;x=0;w=w&65535;while(1){t=c[(z&p)>>2]|0;r=b[((c[(B&p)>>2]|0)+(x<<1)&o)>>1]|0;y=y&65535;v=t;while(1){if((y|0)<=0){F=63;break}if((b[(v&o)>>1]|0)==r<<16>>16)break;else{y=y+-1|0;v=v+2|0}}if((F|0)==63){F=0;b[(t+(w<<1)&o)>>1]=r;c[((c[(m&p)>>2]|0)+(w<<2)&p)>>2]=c[((c[(C&p)>>2]|0)+(x<<2)&p)>>2];w=w+1|0}x=x+1|0;if((x|0)>=(D|0))break d;y=b[(q&o)>>1]|0}}while(0);b[(u&o)+48>>1]=t}while(0);u=c[(u&p)+20>>2]|0}while((u|0)!=0)}y=Q+38|0;t=b[(y&o)>>1]|0;r=t<<16>>16;if((D|0)>=(r|0)){b[(s&o)+48>>1]=t;break}if((ks(N,s,r)|0)==0?(E=b[(y&o)>>1]|0,E<<16>>16>0):0){v=s+4|0;x=s+32|0;t=E;w=0;s=D;do{q=c[(v&p)>>2]|0;u=s;r=q;while(1){if((u|0)<=0){F=74;break}if((b[(r&o)>>1]|0)==(w|0))break;else{u=u+-1|0;r=r+2|0}}if((F|0)==74){F=0;b[(q+(s<<1)&o)>>1]=w;c[((c[(x&p)>>2]|0)+(s<<2)&p)>>2]=11152;t=b[(y&o)>>1]|0;s=s+1|0}w=w+1|0}while((w|0)<(t<<16>>16|0))}}while(0);F=Q+68|0;s=c[(F&p)>>2]|0;e:do if(s){r=c[(N&p)+20>>2]|0;if((r|0)>0){q=c[(N&p)+16>>2]|0;t=0;while(1){m=t+1|0;if((c[(q+(t<<4)&p)+12>>2]|0)==(s|0))break e;if((m|0)<(r|0))t=m;else{t=m;break}}}else t=0}else t=-1e6;while(0);q=c[(Q&p)+24>>2]|0;f:do if(q){c[(H&p)>>2]=0;c[(H&p)+4>>2]=0;c[(H&p)+8>>2]=0;c[(H&p)+12>>2]=0;c[(H&p)+16>>2]=0;c[(H&p)+20>>2]=0;c[(H&p)+24>>2]=0;c[(H&p)+28>>2]=0;s=G+0|0;r=s+80|0;do{c[(s&p)>>2]=0;s=s+4|0}while((s|0)<(r|0));c[(G&p)>>2]=1;c[(G&p)+16>>2]=c[(Q&p)>>2];c[(G&p)+24>>2]=Q;c[(G&p)+48>>2]=-1;c[(H&p)>>2]=f;c[(H&p)+4>>2]=G;b[(H&o)+28>>1]=4;s=q+4|0;if((c[(q&p)>>2]|0)>0){r=0;do{if(ls(H,c[((c[(s&p)>>2]|0)+(r*20|0)&p)>>2]|0)|0)break f;r=r+1|0}while((r|0)<(c[(q&p)>>2]|0))}}while(0);D=Q+38|0;m=b[(D&o)>>1]|0;if(m<<16>>16>0){s=m<<16>>16;r=c[(Q&p)+4>>2]|0;q=0;while(1){q=(d[(r&n)+22>>0]|0)+q|0;s=s+-1|0;if((s|0)<=0)break;else r=r+24|0}}else q=0;b[(Q&o)+42>>1]=fs(((e[(Q&o)+36>>1]|0)>>>15&65535)+q<<2,0)|0;q=c[(Q&p)+8>>2]|0;if(q)do{ms(q);q=c[(q&p)+20>>2]|0}while((q|0)!=0);if(!(a[(L&n)>>0]|0)){E=Oq(f)|0;if(!E)break;wh(E,61,0,0,0)|0;B=(c[(Q&p)+12>>2]|0)==0;r=B?36672:36680;B=B?31232:35480;do if(!l){q=k<<24>>24==0?h:f+504|0;l=c[(q&p)>>2]|0;s=c[(f&p)+496>>2]|0;m=l-s|0;if((a[(l&n)>>0]|0)!=59)m=(c[(q&p)+4>>2]|0)+m|0;c[(M&p)>>2]=r;c[(M&p)+4>>2]=m;c[(M&p)+8>>2]=s;s=f+388|0;m=Q;r=uh(N,36688,M)|0}else{s=f+388|0;wh(E,55,1,c[(s&p)>>2]|0,t)|0;r=c[(E&p)+4>>2]|0;if(r)a[(r+(((c[(E&p)+32>>2]|0)+-1|0)*20|0)&n)+3>>0]=4;c[(f&p)+68>>2]=2;a[(I&n)>>0]=14;c[(I&p)+4>>2]=1;a[(I&n)+1>>0]=0;c[(I&p)+8>>2]=0;c[(I&p)+12>>2]=0;ir(f,l,I)|0;wh(E,61,1,0,0)|0;if(!(c[(f&p)+64>>2]|0)){m=ns(f,l)|0;if(!m)break a;I=m+38|0;b[(D&o)>>1]=b[(I&o)>>1]|0;l=m+4|0;c[(Q&p)+4>>2]=c[(l&p)>>2];b[(I&o)>>1]=0;c[(l&p)>>2]=0;kg(N,m)}C=Q+4|0;z=b[(D&o)>>1]|0;if(z<<16>>16>0){v=z<<16>>16;w=0;r=0;x=c[(C&p)>>2]|0;while(1){m=c[(x&p)>>2]|0;q=0;while(1){u=a[(m&n)>>0]|0;if(u<<24>>24==34)q=q+1|0;else if(!(u<<24>>24))break;m=m+1|0;q=q+1|0}r=r+7+q|0;w=w+1|0;if((w|0)==(v|0))break;else x=x+24|0}u=r+2|0}else u=2;m=c[(Q&p)>>2]|0;r=0;while(1){q=a[(m&n)>>0]|0;if(q<<24>>24==34)r=r+1|0;else if(!(q<<24>>24))break;m=m+1|0;r=r+1|0}x=r+u|0;A=(x|0)<50;u=A?10360:36880;y=A?20240:36888;A=A?33952:36896;x=((z<<16>>16)*6|0)+35+x|0;r=qg(x,((x|0)<0)<<31>>31)|0;if(!r){a[(O&n)>>0]=1;m=Q;r=0;break}ad(x,r,36904,M)|0;q=r;while(1)if(!(a[(q&n)>>0]|0))break;else q=q+1|0;c[(J&p)>>2]=q-r&1073741823;os(r,J,c[(Q&p)>>2]|0);m=c[(J&p)>>2]|0;v=m+1|0;c[(J&p)>>2]=v;a[(r+m&n)>>0]=40;m=x-v|0;q=r+v|0;if((b[(D&o)>>1]|0)>0){z=0;w=c[(C&p)>>2]|0;while(1){ad(m,q,u,M)|0;q=r+v|0;if(!q)q=0;else{u=q;while(1)if(!(a[(u&n)>>0]|0))break;else u=u+1|0;q=u-q&1073741823}c[(J&p)>>2]=q+v;os(r,J,c[(w&p)>>2]|0);q=c[((a[(w&n)+21>>0]|0)+-65<<2&p)+36920>>2]|0;u=q;while(1)if(!(a[(u&n)>>0]|0))break;else u=u+1|0;v=u-q&1073741823;u=c[(J&p)>>2]|0;kw(r+u|0,q|0,v|0)|0;v=u+v|0;c[(J&p)>>2]=v;u=z+1|0;m=x-v|0;q=r+v|0;if((u|0)<(b[(D&o)>>1]|0)){z=u;w=w+24|0;u=y}else break}}c[(M&p)>>2]=A;ad(m,q,10344,M)|0;m=Q}while(0);q=N+16|0;k=c[(m&p)>>2]|0;I=c[(s&p)>>2]|0;l=c[(f&p)+384>>2]|0;c[(M&p)>>2]=c[((c[(q&p)>>2]|0)+(t<<4)&p)>>2];c[(M&p)+4>>2]=(t|0)==1?13184:13208;c[(M&p)+8>>2]=B;c[(M&p)+12>>2]=k;c[(M&p)+16>>2]=k;c[(M&p)+20>>2]=I;c[(M&p)+24>>2]=r;c[(M&p)+28>>2]=l;Br(f,36704,M);mg(N,r);Dr(f,t);if((a[(Q&n)+44>>0]&8)!=0?(K=c[(q&p)>>2]|0,(c[((c[(K+(t<<4)&p)+12>>2]|0)&p)+72>>2]|0)==0):0){c[(M&p)>>2]=c[(K+(t<<4)&p)>>2];Br(f,36792,M)}c[(M&p)>>2]=c[(m&p)>>2];Ir(E,t,uh(N,36840,M)|0);if(!(a[(L&n)>>0]|0))break}else m=Q;if(Ik((c[(F&p)>>2]|0)+8|0,c[(m&p)>>2]|0,Q)|0){a[(O&n)>>0]=1;break}c[(P&p)>>2]=0;l=N+24|0;c[(l&p)>>2]=c[(l&p)>>2]|2;if(!(c[(Q&p)+12>>2]|0)){l=c[(f&p)+496>>2]|0;c[(Q&p)+48>>2]=(Nn(l,(c[(((c[(g&p)>>2]|0)==0?h:g)&p)>>2]|0)-l|0)|0)+13}}while(0);i=R;return}function Wq(b,d){b=b|0;d=d|0;var e=0,f=0;if(!d)e=0;else{f=c[(d&p)>>2]|0;d=c[(d&p)+4>>2]|0;if((f|0)!=0?(e=jw(d|0,0,1,0)|0,e=mh(b,e,G)|0,(e|0)!=0):0){kw(e|0,f|0,d|0)|0;a[(e+d&n)>>0]=0}else e=0;lo(e)}return e|0}function Xq(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,o=0,q=0;o=i;i=i+16|0;if((i|0)>=(j|0))fa();m=o;a:do if(b){g=a[(b&n)>>0]|0;b:do if(!(g<<24>>24)){f=67;g=0}else{k=g;f=67;h=0;g=0;do{h=d[(k&255&n)+9328>>0]|0|h<<8;b=b+1|0;if((h|0)==1685026146)if(f<<24>>24==67){f=69;h=1685026146;l=5}else l=13;else if((h|0)==1668050786){f=66;l=5}else if((h|0)==1718382433)if(f<<24>>24==67){f=69;h=1718382433;l=5}else l=13;else if((h|0)==1919246700)if(f<<24>>24==67){f=69;h=1919246700;l=5}else l=14;else if((h|0)==1952807028){f=66;l=5}else if((h|0)==1651273570)if(f<<24>>24==69|f<<24>>24==67){q=a[(b&n)>>0]|0;k=q;f=65;h=1651273570;g=q<<24>>24==40?b:g}else l=14;else if((h|0)!=1667785074)if((h&16777215|0)==6909556){f=68;break b}else l=5;else{f=66;h=1667785074;g=b;l=5}if((l|0)==13)l=5;else if((l|0)==14)l=5;if((l|0)==5){l=0;k=a[(b&n)>>0]|0}}while(k<<24>>24!=0)}while(0);if((e|0)!=0?(a[(e&n)>>0]=1,f<<24>>24<67):0){if(!g){a[(e&n)>>0]=5;break}b=a[(g&n)>>0]|0;if(b<<24>>24){while(1){if(((b&255)+-48|0)>>>0<10)break;g=g+1|0;b=a[(g&n)>>0]|0;if(!(b<<24>>24))break a}c[(m&p)>>2]=0;Dn(g,m)|0;g=((c[(m&p)>>2]|0)/4|0)+1|0;g=(g|0)>255?255:g;c[(m&p)>>2]=g;a[(e&n)>>0]=g}}}else f=67;while(0);i=o;return f|0}function Yq(e,f){e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,q=0,r=0,s=0,t=0;r=i;i=i+32|0;if((i|0)>=(j|0))fa();m=r;q=c[(e&p)>>2]|0;k=c[(e&p)+484>>2]|0;do if(k){h=(b[(k&o)+38>>1]|0)+-1|0;l=c[(k&p)+4>>2]|0;s=c[(f&p)>>2]|0;t=(d[(q&n)+145>>0]|0)+4|0;c[(m&p)>>2]=0;c[(m&p)+4>>2]=0;c[(m&p)+8>>2]=0;c[(m&p)+12>>2]=0;c[(m&p)+16>>2]=0;c[(m&p)+20>>2]=0;k=m+20|0;a[(k&n)>>0]=t;c[(m&p)>>2]=78;c[(m&p)+4>>2]=79;c[(m&p)+24>>2]=0;rs(m,s)|0;if(!(a[(k&n)>>0]|0)){c[(m&p)>>2]=c[(l+(h*24|0)&p)>>2];th(e,36480,m);break}k=l+(h*24|0)+4|0;Gk(q,c[(k&p)>>2]|0);c[(k&p)>>2]=Mr(q,c[(f&p)>>2]|0,1,0)|0;l=l+(h*24|0)+8|0;mg(q,c[(l&p)>>2]|0);h=c[(f&p)+4>>2]|0;k=(c[(f&p)+8>>2]|0)-h|0;if((h|0)!=0?(g=jw(k|0,((k|0)<0)<<31>>31|0,1,0)|0,g=mh(q,g,G)|0,(g|0)!=0):0){kw(g|0,h|0,k|0)|0;a[(g+k&n)>>0]=0}else g=0;c[(l&p)>>2]=g}while(0);Gk(q,c[(f&p)>>2]|0);i=r;return}function Zq(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,k=0;k=i;i=i+16|0;if((i|0)>=(j|0))fa();h=k;if((b|0)==72&(d|0)!=0&(e|0)!=0?(c[(a&p)+64>>2]|0)==0:0)b=ss(c[(a&p)>>2]|0,d,e)|0;else{b=nr(c[(a&p)>>2]|0,b,f,1)|0;ts(c[(a&p)>>2]|0,b,d,e)}if((b|0)!=0?(g=c[((c[(a&p)>>2]|0)&p)+100>>2]|0,(g|0)<(c[(b&p)+24>>2]|0)):0){c[(h&p)>>2]=g;th(a,27152,h)}i=k;return b|0}function _q(e,f,g,h,k){e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;var l=0,m=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;i=i+16|0;if((i|0)>=(j|0))fa();C=D;A=c[(e&p)+484>>2]|0;do if((A|0)!=0?(a[(e&n)+451>>0]|0)==0:0){B=A+44|0;m=d[(B&n)>>0]|0;if(m&4){c[(C&p)>>2]=c[(A&p)>>2];th(e,36376,C);break}y=m|4;a[(B&n)>>0]=y;z=(f|0)==0;if(z){m=(b[(A&o)+38>>1]|0)+-1|0;w=c[(A&p)+4>>2]|0;l=w+(m*24|0)+23|0;a[(l&n)>>0]=d[(l&n)>>0]|1;l=m;q=1;m=c[(w+(m*24|0)&p)+12>>2]|0}else{x=c[(f&p)>>2]|0;if((x|0)>0){u=f+4|0;v=A+4|0;t=b[(A&o)+38>>1]|0;w=0;m=0;do{a:do if(t<<16>>16>0){r=c[((c[(u&p)>>2]|0)+(w*20|0)&p)+4>>2]|0;s=c[(v&p)>>2]|0;q=0;while(1){l=q+1|0;if(!(dd(r,c[(s+(q*24|0)&p)>>2]|0)|0))break;if((l|0)<(t<<16>>16|0))q=l;else break a}l=s+(q*24|0)+23|0;a[(l&n)>>0]=d[(l&n)>>0]|1;l=q;m=c[(s+(q*24|0)&p)+12>>2]|0}else l=0;while(0);w=w+1|0}while((w|0)!=(x|0))}else{l=-1;m=0}q=(x|0)==1}if(q&(m|0)!=0?(dd(m,11144)|0|k|0)==0:0){b[(A&o)+36>>1]=l;a[(A&n)+45>>0]=g;a[(B&n)>>0]=y|h<<3;if(z){f=0;break}a[(e&n)+448>>0]=a[((c[(f&p)+4>>2]|0)&n)+12>>0]|0;break}if(h){th(e,36424,C);break}m=c[(e&p)+8>>2]|0;l=(m|0)!=0;if(l)c[(e&p)+420>>2]=wh(m,156,0,0,0)|0;f=$q(e,0,0,0,f,g,0,0,k,0)|0;if((f|0)!=0?(w=f+51|0,a[(w&n)>>0]=a[(w&n)>>0]&-4|2,l):0){f=c[(e&p)+420>>2]|0;l=c[(m&p)+32>>2]|0;if(l>>>0>f>>>0)c[((c[(m&p)+4>>2]|0)+(f*20|0)&p)+8>>2]=l;c[((c[(m&p)+24>>2]|0)&p)+88>>2]=l+-1;f=0}else f=0}while(0);Nk(c[(e&p)>>2]|0,f);i=D;return}function $q(f,g,h,k,l,m,q,r,s,t){f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;m=m|0;q=q|0;r=r|0;s=s|0;t=t|0;var 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;Y=i;i=i+144|0;if((i|0)>=(j|0))fa();V=Y;E=Y+112|0;x=Y+88|0;T=Y+84|0;N=Y+80|0;X=c[(f&p)>>2]|0;c[(T&p)>>2]=0;c[(N&p)>>2]=0;S=X+65|0;a:do if(((a[(S&n)>>0]|0)==0?(a[(f&n)+451>>0]|0)==0:0)?(Gn(f)|0)==0:0){U=(k|0)!=0;b:do if(U){g=er(f,g,h,T)|0;if((g|0)<0){u=0;h=0;break a}if((a[(X&n)+145>>0]|0)==0?(u=Jr(f,k)|0,(c[(h&p)+4>>2]|0)==0&(u|0)!=0):0)g=(c[(u&p)+68>>2]|0)==(c[((c[(X&p)+16>>2]|0)&p)+28>>2]|0)?1:g;h=c[(T&p)>>2]|0;u=c[(f&p)>>2]|0;c[(x&p)>>2]=f;u=c[(u&p)+16>>2]|0;c[(x&p)+12>>2]=c[(u+(g<<4)&p)>>2];c[(x&p)+4>>2]=c[(u+(g<<4)&p)+12>>2];c[(x&p)+16>>2]=20632;c[(x&p)+20>>2]=h;u=(g|0)==1;c[(x&p)+8>>2]=u&1;Kr(x,k)|0;w=Ur(f,0,k+8|0)|0;if(!w){u=0;h=0;break a}if(u?(c[((c[(X&p)+16>>2]|0)&p)+28>>2]|0)!=(c[(w&p)+68>>2]|0):0){c[(V&p)>>2]=c[(w&p)>>2];th(f,35920,V);u=0;h=0;break a}if((a[(w&n)+44>>0]&32)!=0?(v=c[(w&p)+8>>2]|0,(v|0)!=0):0){u=v;while(1){if((a[(u&n)+51>>0]&3)==2){v=g;M=u;x=w;break b}u=c[(u&p)+20>>2]|0;if(!u){v=g;M=0;x=w;break}}}else{v=g;M=0;x=w}}else{x=c[(f&p)+484>>2]|0;if(!x){u=0;h=0;break a}g=c[(x&p)+68>>2]|0;if(g){u=c[(X&p)+20>>2]|0;if((u|0)>0){h=c[(X&p)+16>>2]|0;w=0;while(1){v=w+1|0;if((c[(h+(w<<4)&p)+12>>2]|0)==(g|0)){h=0;v=w;M=0;break b}if((v|0)<(u|0))w=v;else{h=0;M=0;break}}}else{h=0;v=0;M=0}}else{h=0;v=-1e6;M=0}}while(0);R=X+16|0;F=c[(R&p)>>2]|0;g=F+(v<<4)|0;A=c[(x&p)>>2]|0;if(((Fc(A,25568,7)|0)==0?(a[(X&n)+145>>0]|0)==0:0)?(Fc(A+7|0,35976,9)|0)!=0:0){c[(V&p)>>2]=A;th(f,35992,V);u=0;h=0;break}if(c[(x&p)+12>>2]|0){th(f,36024,V);u=0;h=0;break}Q=x+44|0;if(a[(Q&n)>>0]&16){th(f,36056,V);u=0;h=0;break}G=(h|0)==0;if(!G){h=Wq(X,h)|0;if(!h){u=0;h=0;break}if(Lr(f,h)|0){u=0;break}if((a[(X&n)+145>>0]|0)==0?(_h(X,h,0)|0)!=0:0){c[(V&p)>>2]=h;th(f,36096,V);u=0;break}if(bq(X,h,c[(g&p)>>2]|0)|0)if(!t){c[(V&p)>>2]=h;th(f,36136,V);u=0;break}else{Ar(f,v);u=0;break}else w=h}else{u=c[(x&p)+8>>2]|0;if(!u)w=1;else{w=1;do{w=w+1|0;u=c[(u&p)+20>>2]|0}while((u|0)!=0)}c[(V&p)>>2]=A;c[(V&p)+4>>2]=w;w=uh(X,36160,V)|0;if(!w){u=0;h=0;break}}g=c[(g&p)>>2]|0;u=(v|0)==1;O=u?13184:13208;if((Sq(f,18,O,0,g)|0)==0?(Sq(f,u?3:1,w,c[(x&p)>>2]|0,g)|0)==0:0){if(!l){l=lr(f,0,0)|0;if(!l){l=0;u=0;h=w;break}I=kh(c[(f&p)>>2]|0,c[((c[(x&p)+4>>2]|0)+(((b[(x&o)+38>>1]|0)+-1|0)*24|0)&p)>>2]|0)|0;J=c[(l&p)+4>>2]|0;c[(J&p)+4>>2]=I;a[(J&n)+12>>0]=s}D=c[(l&p)>>2]|0;if((D|0)>0){A=c[(l&p)+4>>2]|0;y=0;g=0;do{u=c[(A+(y*20|0)&p)>>2]|0;if(u){h=c[(u&p)+8>>2]|0;if(!h)u=1;else{u=h;while(1)if(!(a[(u&n)>>0]|0))break;else u=u+1|0;u=(u-h&1073741823)+1|0}g=u+g|0}y=y+1|0}while((y|0)<(D|0));h=g}else h=0;if(!w)u=0;else{g=w;while(1)if(!(a[(g&n)>>0]|0))break;else g=g+1|0;u=g-w&1073741823}I=(M|0)!=0;if(I)g=e[(M&o)+46>>1]|0;else g=1;P=us(X,D+g&65535,h+1+u|0,N)|0;c:do if(!(a[(S&n)>>0]|0)){H=c[(N&p)>>2]|0;c[(P&p)>>2]=H;L=u+1|0;C=H+L|0;c[(N&p)>>2]=C;kw(H|0,w|0,L|0)|0;c[(P&p)+12>>2]=x;L=P+50|0;a[(L&n)>>0]=m;H=P+51|0;a[(H&n)>>0]=a[(H&n)>>0]&-12|((m|0)!=0&1)<<3&255|G&1;K=P+24|0;c[(K&p)>>2]=c[((c[(R&p)>>2]|0)+(v<<4)&p)+12>>2];g=c[(l&p)>>2]|0;J=P+46|0;b[(J&o)>>1]=g;if(r){c[(E&p)>>2]=0;c[(E&p)+4>>2]=0;c[(E&p)+8>>2]=0;c[(E&p)+12>>2]=0;c[(E&p)+16>>2]=0;c[(E&p)+20>>2]=0;c[(E&p)+24>>2]=0;c[(E&p)+28>>2]=0;A=V+0|0;h=A+80|0;do{c[(A&p)>>2]=0;A=A+4|0}while((A|0)<(h|0));c[(V&p)>>2]=1;c[(V&p)+16>>2]=c[(x&p)>>2];c[(V&p)+24>>2]=x;c[(V&p)+48>>2]=-1;c[(E&p)>>2]=f;c[(E&p)+4>>2]=V;b[(E&o)+28>>1]=16;ls(E,r)|0;c[(P&p)+36>>2]=r;g=c[(l&p)>>2]|0}z=(d[((c[(F+(v<<4)&p)+12>>2]|0)&n)+76>>0]|0)>3;d:do if((g|0)>0){G=x+4|0;F=x+38|0;E=P+4|0;r=X+145|0;g=P+32|0;y=P+28|0;h=0;s=c[(l&p)+4>>2]|0;while(1){u=c[(s&p)+4>>2]|0;A=b[(F&o)>>1]|0;e:do if(A<<16>>16>0){D=0;B=c[(G&p)>>2]|0;while(1){if(!(dd(u,c[(B&p)>>2]|0)|0)){t=D;break e}D=D+1|0;if((D|0)<(A<<16>>16|0))B=B+24|0;else{t=D;break}}}else t=0;while(0);if((t|0)>=(A<<16>>16|0))break;b[((c[(E&p)>>2]|0)+(h<<1)&o)>>1]=t;D=c[(s&p)>>2]|0;if(!D){D=c[((c[(G&p)>>2]|0)+(t*24|0)&p)+16>>2]|0;D=(D|0)!=0?D:11152}else{B=c[(D&p)+8>>2]|0;if(!B)D=1;else{D=B;while(1)if(!(a[(D&n)>>0]|0))break;else D=D+1|0;D=(D-B&1073741823)+1|0}kw(C|0,B|0,D|0)|0;B=c[(N&p)>>2]|0;C=B+D|0;c[(N&p)>>2]=C;D=B}if((a[(r&n)>>0]|0)==0?(cr(f,D)|0)==0:0){h=0;u=0;W=134;break c}c[((c[(g&p)>>2]|0)+(h<<2)&p)>>2]=D;a[((c[(y&p)>>2]|0)+h&n)>>0]=z?a[(s&n)+12>>0]|0:0;if(!(a[((c[(G&p)>>2]|0)+(t*24|0)&n)+20>>0]|0))a[(H&n)>>0]=a[(H&n)>>0]&-9;h=h+1|0;if((h|0)<(c[(l&p)>>2]|0))s=s+20|0;else break d}c[(V&p)>>2]=c[(x&p)>>2];c[(V&p)+4>>2]=u;th(f,36184,V);a[(f&n)+17>>0]=1;h=0;u=0;W=134;break c}else h=0;while(0);do if(I){z=M+46|0;A=b[(z&o)>>1]|0;if(!(A<<16>>16))break;E=M+4|0;F=P+4|0;G=P+48|0;s=M+32|0;t=P+32|0;g=M+28|0;y=P+28|0;r=0;do{B=b[((c[(E&p)>>2]|0)+(r<<1)&o)>>1]|0;u=c[(F&p)>>2]|0;D=e[(J&o)>>1]|0;C=u;while(1){if((D|0)<=0){W=92;break}if((b[(C&o)>>1]|0)==B<<16>>16){W=91;break}else{D=D+-1|0;C=C+2|0}}if((W|0)==91){W=0;b[(G&o)>>1]=(b[(G&o)>>1]|0)+-1<<16>>16}else if((W|0)==92){W=0;b[(u+(h<<1)&o)>>1]=B;c[((c[(t&p)>>2]|0)+(h<<2)&p)>>2]=c[((c[(s&p)>>2]|0)+(r<<2)&p)>>2];a[((c[(y&p)>>2]|0)+h&n)>>0]=a[((c[(g&p)>>2]|0)+r&n)>>0]|0;A=b[(z&o)>>1]|0;h=h+1|0}r=r+1|0}while((r|0)<(A&65535|0))}else{b[((c[(P&p)+4>>2]|0)+(h<<1)&o)>>1]=-1;c[((c[(P&p)+32>>2]|0)+(h<<2)&p)>>2]=11152}while(0);cq(P);r=f+484|0;g=c[(r&p)>>2]|0;if(!g){ms(P);g=c[(r&p)>>2]|0}f:do if((x|0)==(g|0)){u=c[(x&p)+8>>2]|0;if(!u)break;B=b[(J&o)>>1]|0;C=P+4|0;D=P+32|0;while(1){if((b[(u&o)+46>>1]|0)==B<<16>>16){g:do if(!(B<<16>>16)){r=0;g=0}else{y=c[(u&p)+4>>2]|0;z=c[(C&p)>>2]|0;A=u+32|0;g=0;while(1){if((b[(y+(g<<1)&o)>>1]|0)!=(b[(z+(g<<1)&o)>>1]|0)){r=B;break g}r=c[((c[(A&p)>>2]|0)+(g<<2)&p)>>2]|0;h=c[((c[(D&p)>>2]|0)+(g<<2)&p)>>2]|0;if((r|0)!=(h|0)?(dd(r,h)|0)!=0:0){r=B;break g}g=g+1|0;if((g|0)>=(B&65535|0)){r=B;break}}}while(0);if((g|0)==(r&65535|0))break}u=c[(u&p)+20>>2]|0;if(!u)break f}g=u+50|0;h=a[(g&n)>>0]|0;r=a[(L&n)>>0]|0;if(h<<24>>24==r<<24>>24){h=0;break c}if(!(h<<24>>24==10|r<<24>>24==10)){c[(V&p)>>2]=0;th(f,36216,V);h=a[(g&n)>>0]|0}if(h<<24>>24!=10){h=0;W=134;break c}a[(g&n)>>0]=a[(L&n)>>0]|0;h=0;break c}while(0);h=X+145|0;do if(!(a[(h&n)>>0]|0)){if(c[(f&p)+64>>2]|0){W=126;break}if(!((a[(Q&n)>>0]&32)==0|U)){W=126;break}u=f+72|0;r=(c[(u&p)>>2]|0)+1|0;c[(u&p)>>2]=r;u=Oq(f)|0;if(!u){h=0;u=0;W=134;break c}J=c[(f&p)+408>>2]|0;J=(J|0)==0?f:J;Ar(f,v);I=J+328|0;c[(I&p)>>2]=c[(I&p)>>2]|1<>0]=d[(J&n)>>0]|1;wh(u,120,v,r,0)|0;if(!q)g=0;else{g=c[(c[(T&p)>>2]&p)>>2]|0;J=(c[(f&p)+504>>2]|0)-g+(c[(f&p)+508>>2]|0)|0;I=J+-1|0;J=(a[(g+I&n)>>0]|0)==59?I:J;c[(V&p)>>2]=(m|0)==0?10360:36288;c[(V&p)+4>>2]=J;c[(V&p)+8>>2]=g;g=uh(X,36264,V)|0}I=c[(P&p)>>2]|0;J=c[(x&p)>>2]|0;c[(V&p)>>2]=c[((c[(R&p)>>2]|0)+(v<<4)&p)>>2];c[(V&p)+4>>2]=O;c[(V&p)+8>>2]=I;c[(V&p)+12>>2]=J;c[(V&p)+16>>2]=r;c[(V&p)+20>>2]=g;Br(f,36296,V);mg(X,g);if(!U)break;vs(f,P,r);Dr(f,v);c[(V&p)>>2]=c[(P&p)>>2];Ir(u,v,uh(X,36344,V)|0);wh(u,144,0,0,0)|0;W=126}else{if(Ik((c[(K&p)>>2]|0)+24|0,c[(P&p)>>2]|0,P)|0){a[(S&n)>>0]=1;h=0;u=0;W=134;break c}J=X+24|0;c[(J&p)>>2]=c[(J&p)>>2]|2;if(!U)break;c[(P&p)+40>>2]=c[(X&p)+140>>2];W=126}while(0);if((W|0)==126?!((a[(h&n)>>0]|0)!=0|(k|0)==0):0){h=0;u=0;W=134;break}h=c[(x&p)+8>>2]|0;do if((m|0)==5){if(!h){h=0;break}if((a[(h&n)+50>>0]|0)==5)break;do{u=h+20|0;h=c[(u&p)>>2]|0;if(!h){h=0;break}}while((a[(h&n)+50>>0]|0)!=5);c[(P&p)+20>>2]=h;c[(u&p)>>2]=P;r=0;u=P;h=w;break a}while(0);c[(P&p)+20>>2]=h;c[(x&p)+8>>2]=P;r=0;u=P;h=w;break a}else{h=r;u=0;W=134}while(0);if((W|0)==134)if(!P){r=h;h=w;break}Jk(X,P);r=h;h=w}else{u=0;h=w}}else{u=0;h=0}while(0);Gk(X,r);Nk(X,l);Do(X,k);mg(X,h);i=Y;return u|0}function ar(e,f){e=e|0;f=f|0;var g=0,h=0;g=c[(e&p)+484>>2]|0;h=c[(e&p)>>2]|0;if(((g|0)!=0?(a[(e&n)+451>>0]|0)==0:0)?(b[((c[((c[((c[(h&p)+16>>2]|0)+(d[(h&n)+144>>0]<<4)&p)+4>>2]|0)&p)+4>>2]|0)&o)+22>>1]&1)==0:0){h=g+24|0;g=lr(e,c[(h&p)>>2]|0,f)|0;c[(h&p)>>2]=g;if(c[(e&p)+324>>2]|0)mr(e,g,e+320|0,1)}else Gk(h,f);return}function br(d,e,f,g,h){d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0;F=i;i=i+16|0;if((i|0)>=(j|0))fa();C=F;E=c[(d&p)>>2]|0;D=c[(d&p)+484>>2]|0;a:do if((D|0)!=0?(a[(d&n)+451>>0]|0)==0:0){z=(e|0)==0;do if(z){B=b[(D&o)+38>>1]|0;l=(B<<16>>16)+-1|0;if(B<<16>>16<1){k=0;break a}if(g)if((c[(g&p)>>2]|0)==1){l=1;k=13}else{c[(C&p)>>2]=c[((c[(D&p)+4>>2]|0)+(l*24|0)&p)>>2];c[(C&p)+4>>2]=f;th(d,35712,C);k=0;break a}else{l=1;k=12}}else{if(!g){l=c[(e&p)>>2]|0;k=12;break}l=c[(g&p)>>2]|0;if((l|0)==(c[(e&p)>>2]|0))k=13;else{th(d,35776,C);k=0;break a}}while(0);if((k|0)==12){m=f+4|0;s=m;w=0;m=(l<<3)+37+(c[(m&p)>>2]|0)|0;B=l}else if((k|0)==13){s=f+4|0;m=(l<<3)+37+(c[(s&p)>>2]|0)|0;t=c[(g&p)>>2]|0;if((t|0)>0){u=c[(g&p)+4>>2]|0;v=0;do{r=c[(u+(v*20|0)&p)+4>>2]|0;if(!r)k=1;else{q=r;while(1)if(!(a[(q&n)>>0]|0))break;else q=q+1|0;k=(q-r&1073741823)+1|0}m=k+m|0;v=v+1|0}while((v|0)<(t|0));w=1;B=l}else{w=1;B=l}}k=mh(E,m,((m|0)<0)<<31>>31)|0;if(k){fw(k|0,0,m|0)|0;c[(k&p)>>2]=D;A=D+16|0;c[(k&p)+4>>2]=c[(A&p)>>2];x=k+36|0;q=x+(B<<3)|0;y=k+8|0;c[(y&p)>>2]=q;kw(q|0,c[(f&p)>>2]|0,c[(s&p)>>2]|0)|0;a[(q+(c[(s&p)>>2]|0)&n)>>0]=0;lo(q);q=q+((c[(s&p)>>2]|0)+1)|0;c[(k&p)+20>>2]=B;b:do if(!z){if((B|0)>0){m=D+4|0;f=e+4|0;r=b[(D&o)+38>>1]|0;l=0;while(1){c:do if(r<<16>>16>0){v=c[(m&p)>>2]|0;u=c[((c[(f&p)>>2]|0)+(l*20|0)&p)+4>>2]|0;t=0;while(1){s=t+1|0;if(!(dd(c[(v+(t*24|0)&p)>>2]|0,u)|0)){s=t;break}if((s|0)<(r<<16>>16|0))t=s;else break c}c[(x+(l<<3)&p)>>2]=s}else s=0;while(0);if((s|0)>=(r<<16>>16|0))break;l=l+1|0;if((l|0)>=(B|0))break b}c[(C&p)>>2]=c[((c[(f&p)>>2]|0)+(l*20|0)&p)+4>>2];th(d,35872,C);break a}}else c[(x&p)>>2]=(b[(D&o)+38>>1]|0)+-1;while(0);if(w&(B|0)>0){r=g+4|0;s=0;while(1){m=c[((c[(r&p)>>2]|0)+(s*20|0)&p)+4>>2]|0;if(!m)l=0;else{l=m;while(1)if(!(a[(l&n)>>0]|0))break;else l=l+1|0;l=l-m&1073741823}c[(x+(s<<3)&p)+4>>2]=q;kw(q|0,m|0,l|0)|0;a[(q+l&n)>>0]=0;s=s+1|0;if((s|0)==(B|0))break;else q=q+(l+1)|0}}a[(k&n)+24>>0]=0;a[(k&n)+25>>0]=h;a[(k&n)+26>>0]=h>>>8;l=Ik((c[(D&p)+68>>2]|0)+56|0,c[(y&p)>>2]|0,k)|0;if((l|0)==(k|0)){a[(E&n)+65>>0]=1;break}if(l){c[(k&p)+12>>2]=l;c[(l&p)+16>>2]=k}c[(A&p)>>2]=k;k=0}else k=0}else k=0;while(0);mg(E,k);Nk(E,e);Nk(E,g);i=F;return}function cr(b,d){b=b|0;d=d|0;var e=0,f=0,g=0;e=c[(b&p)>>2]|0;f=a[(e&n)+62>>0]|0;g=a[(e&n)+145>>0]|0;e=Yn(e,f,d,g&255)|0;do if(!(g<<24>>24)){if((e|0)!=0?(c[(e&p)+12>>2]|0)!=0:0)break;e=ws(b,f,e,d)|0}while(0);return e|0}function dr(e,f,g,h){e=e|0;f=f|0;g=g|0;h=h|0;var k=0,l=0,m=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;i=i+16|0;if((i|0)>=(j|0))fa();z=B;v=B+12|0;A=c[(e&p)>>2]|0;do if(!(a[(A&n)+65>>0]|0)){h=(h|0)!=0;if(h){u=A+68|0;a[(u&n)>>0]=(a[(u&n)>>0]|0)+1<<24>>24;y=Ur(e,g,f+8|0)|0;a[(u&n)>>0]=(a[(u&n)>>0]|0)+-1<<24>>24}else y=Ur(e,g,f+8|0)|0;if(!y){if(!h)break;zr(e,c[(f&p)+12>>2]|0);break}s=y+68|0;l=c[(s&p)>>2]|0;a:do if(l){h=c[(A&p)+20>>2]|0;if((h|0)>0){k=c[(A&p)+16>>2]|0;q=0;while(1){m=q+1|0;if((c[(k+(q<<4)&p)+12>>2]|0)==(l|0)){m=q;break a}if((m|0)<(h|0))q=m;else break}}else m=0}else m=-1e6;while(0);w=y+44|0;if((a[(w&n)>>0]&16)!=0?(hr(e,y)|0)!=0:0)break;q=(m|0)==1;x=q?13184:13208;h=c[((c[(A&p)+16>>2]|0)+(m<<4)&p)>>2]|0;if(!(Sq(e,9,x,0,h)|0)){k=(g|0)!=0;do if(k){l=q?15:17;q=0}else{if(!(a[(w&n)>>0]&16)){l=q?13:11;q=0;break}q=y+60|0;while(1){q=c[(q&p)>>2]|0;if((c[(q&p)>>2]|0)==(A|0))break;else q=q+24|0}l=30;q=c[((c[(q&p)+4>>2]|0)&p)+4>>2]|0}while(0);if((Sq(e,l,c[(y&p)>>2]|0,q,h)|0)==0?(Sq(e,9,c[(y&p)>>2]|0,0,h)|0)==0:0){q=c[(y&p)>>2]|0;if((Fc(q,25568,7)|0)==0?(Fc(q,35488,11)|0)!=0:0){c[(z&p)>>2]=q;th(e,35504,z);break}h=y+12|0;l=(c[(h&p)>>2]|0)==0;if(k){if(l){c[(z&p)>>2]=q;th(e,35536,z);break}}else if(!l){c[(z&p)>>2]=q;th(e,35576,z);break}if(Oq(e)|0){t=e+408|0;l=c[(t&p)>>2]|0;l=(l|0)==0?e:l;Ar(e,m);u=1<>2]=c[(k&p)>>2]|u;l=l+20|0;a[(l&n)>>0]=d[(l&n)>>0]|1;Cr(e,m,28544,c[(y&p)>>2]|0);l=c[(e&p)>>2]|0;k=l+24|0;b:do if(((c[(k&p)>>2]&524288|0)!=0?(a[(w&n)>>0]&16)==0:0)?(c[(h&p)>>2]|0)==0:0){r=Oq(e)|0;v=bn((c[(s&p)>>2]|0)+56|0,c[(y&p)>>2]|0,v)|0;if((v|0)!=0?(c[(v&p)+8>>2]|0)!=0:0)q=0;else{q=c[(y&p)+16>>2]|0;if(!q)break;while(1){if(a[(q&n)+24>>0]|0)break;if(c[(k&p)>>2]&16777216)break;q=c[(q&p)+4>>2]|0;if(!q)break b}q=xs(r)|0;wh(r,135,1,q,0)|0}v=e+438|0;a[(v&n)>>0]=1;rr(e,ys(l,f,0)|0,0);a[(v&n)>>0]=0;if(!(c[(k&p)>>2]&16777216)){wh(r,135,0,(c[(r&p)+32>>2]|0)+2|0,0)|0;zs(e,787,2,0,-2,4)}if(q){l=c[(r&p)+24>>2]|0;h=~q;do if((q|0)<0){q=c[(l&p)+112>>2]|0;if(!q)break;c[(q+(h<<2)&p)>>2]=c[(r&p)+32>>2]}while(0);c[(l&p)+88>>2]=(c[(r&p)+32>>2]|0)+-1}}while(0);r=c[(e&p)>>2]|0;s=r+16|0;l=c[(s&p)>>2]|0;h=Oq(e)|0;v=c[(t&p)>>2]|0;v=(v|0)==0?e:v;Ar(e,m);t=v+328|0;c[(t&p)>>2]=c[(t&p)>>2]|u;v=v+20|0;a[(v&n)>>0]=d[(v&n)>>0]|1;if(a[(w&n)>>0]&16)wh(h,146,0,0,0)|0;q=As(e,y)|0;if(q)do{Qr(e,q);q=c[(q&p)+32>>2]|0}while((q|0)!=0);l=l+(m<<4)|0;if(a[(w&n)>>0]&8){v=c[(y&p)>>2]|0;c[(z&p)>>2]=c[(l&p)>>2];c[(z&p)+4>>2]=v;Br(e,35608,z)}v=c[(y&p)>>2]|0;c[(z&p)>>2]=c[(l&p)>>2];c[(z&p)+4>>2]=x;c[(z&p)+8>>2]=v;Br(e,35656,z);if((g|0)==0?(a[(w&n)>>0]&16)==0:0)Bs(e,y);if(a[(w&n)>>0]&16){v=c[(y&p)>>2]|0;xh(h,wh(h,148,m,0,0)|0,v,0)}k=c[(y&p)>>2]|0;xh(h,wh(h,124,m,0,0)|0,k,0);Dr(e,m);h=c[((c[(s&p)>>2]|0)+(m<<4)&p)+12>>2]|0;k=b[(h&o)+78>>1]|0;if(k&2){l=c[(h&p)+16>>2]|0;if(l){k=l;do{h=c[(k&p)+8>>2]|0;if(c[(h&p)+12>>2]|0){Lk(r,h);c[(h&p)+4>>2]=0;b[(h&o)+38>>1]=0}k=c[(k&p)>>2]|0}while((k|0)!=0);k=c[((c[(s&p)>>2]|0)+(m<<4)&p)+12>>2]|0;h=k;k=b[(k&o)+78>>1]|0}b[(h&o)+78>>1]=k&65533}}}}}while(0);Do(A,f);i=B;return}function er(b,e,f,g){b=b|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0;m=i;i=i+16|0;if((i|0)>=(j|0))fa();k=m;h=c[(b&p)>>2]|0;do if((f|0)!=0?(c[(f&p)+4>>2]|0)!=0:0){if(a[(h&n)+145>>0]|0){th(b,28488,k);f=b+64|0;c[(f&p)>>2]=(c[(f&p)>>2]|0)+1;f=-1;break}c[(g&p)>>2]=f;g=Wq(h,e)|0;f=Vh(h,g)|0;mg(h,g);if((f|0)<0){c[(k&p)>>2]=e;th(b,28512,k);f=b+64|0;c[(f&p)>>2]=(c[(f&p)>>2]|0)+1;f=-1}}else l=7;while(0);if((l|0)==7){f=d[(h&n)+144>>0]|0;c[(g&p)>>2]=e}i=m;return f|0}function fr(a,b){a=a|0;b=b|0;a:do if(!b)b=0;else while(1){if(Hr(a,c[(b&p)>>2]|0)|0){b=1;break a}if(Kr(a,c[(b&p)+32>>2]|0)|0){b=1;break a}if(Gr(a,c[(b&p)+36>>2]|0)|0){b=1;break a}if(Hr(a,c[(b&p)+40>>2]|0)|0){b=1;break a}if(Gr(a,c[(b&p)+44>>2]|0)|0){b=1;break a}if(Hr(a,c[(b&p)+48>>2]|0)|0){b=1;break a}if(Gr(a,c[(b&p)+60>>2]|0)|0){b=1;break a}if(Gr(a,c[(b&p)+64>>2]|0)|0){b=1;break a}b=c[(b&p)+52>>2]|0;if(!b){b=0;break}}while(0);return b|0}function gr(d,f,g){d=d|0;f=f|0;g=g|0;var h=0,i=0,j=0,k=0,l=0;if((f|0)!=0?(h=mh(d,72,0)|0,(h|0)!=0):0){c[(h&p)>>2]=Pr(d,c[(f&p)>>2]|0,g)|0;c[(h&p)+32>>2]=ys(d,c[(f&p)+32>>2]|0,g)|0;c[(h&p)+36>>2]=Mr(d,c[(f&p)+36>>2]|0,g,0)|0;c[(h&p)+40>>2]=Pr(d,c[(f&p)+40>>2]|0,g)|0;c[(h&p)+44>>2]=Mr(d,c[(f&p)+44>>2]|0,g,0)|0;c[(h&p)+48>>2]=Pr(d,c[(f&p)+48>>2]|0,g)|0;a[(h&n)+4>>0]=a[(f&n)+4>>0]|0;j=gr(d,c[(f&p)+52>>2]|0,g)|0;c[(h&p)+52>>2]=j;if(j)c[(j&p)+56>>2]=h;c[(h&p)+56>>2]=0;c[(h&p)+60>>2]=Mr(d,c[(f&p)+60>>2]|0,g,0)|0;c[(h&p)+64>>2]=Mr(d,c[(f&p)+64>>2]|0,g,0)|0;c[(h&p)+8>>2]=0;c[(h&p)+12>>2]=0;b[(h&o)+6>>1]=(e[(f&o)+6>>1]|0)&65527;c[(h&p)+16>>2]=-1;c[(h&p)+20>>2]=-1;l=f+24|0;j=c[(l&p)+4>>2]|0;g=h+24|0;c[(g&p)>>2]=c[(l&p)>>2];c[(g&p)+4>>2]=j;g=c[(f&p)+68>>2]|0;if((g|0)!=0?(k=c[(g&p)>>2]<<4|8,i=mh(d,k,((k|0)<0)<<31>>31)|0,(i|0)!=0):0){fw(i|0,0,k|0)|0;c[(i&p)>>2]=c[(g&p)>>2];if((c[(g&p)>>2]|0)>0){f=i+8|0;j=0;do{c[(f+(j<<4)&p)+8>>2]=gr(d,c[(g+(j<<4)&p)+16>>2]|0,0)|0;c[(f+(j<<4)&p)+4>>2]=Pr(d,c[(g+(j<<4)&p)+12>>2]|0,0)|0;c[(f+(j<<4)&p)>>2]=kh(d,c[(g+(j<<4)&p)+8>>2]|0)|0;j=j+1|0}while((j|0)<(c[(g&p)>>2]|0))}}else i=0;c[(h&p)+68>>2]=i}else h=0;return h|0}function hr(d,f){d=d|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0;w=i;i=i+16|0;if((i|0)>=(j|0))fa();s=w;k=w+8|0;m=w+4|0;v=c[(d&p)>>2]|0;q=f+44|0;h=a[(q&n)>>0]|0;a:do if(!(h&16))t=11;else{g=c[(f&p)+60>>2]|0;if(g)do{if((c[(g&p)>>2]|0)==(v|0)){t=11;break a}g=c[(g&p)+24>>2]|0}while((g|0)!=0);g=f+56|0;h=bn(v+308|0,c[(c[(g&p)>>2]&p)>>2]|0,k)|0;if((h|0)!=0?(l=c[(h&p)+8>>2]|0,(l|0)!=0):0){c[(m&p)>>2]=0;l=(zn(v,f,l,c[((c[(l&p)>>2]|0)&p)+8>>2]|0,m)|0)==0;h=c[(m&p)>>2]|0;if(l){mg(v,h);h=a[(q&n)>>0]|0;t=11;break}else{c[(s&p)>>2]=h;th(d,10344,s);mg(v,h);g=1;break}}c[(s&p)>>2]=c[(c[(g&p)>>2]&p)>>2];th(d,28320,s);g=1}while(0);do if((t|0)==11)if((h&16)==0?(u=f+38|0,r=b[(u&o)>>1]|0,r<<16>>16<=0):0){if(r<<16>>16<0){c[(s&p)>>2]=c[(f&p)>>2];th(d,26752,s);g=1;break}h=gr(v,c[(f&p)+12>>2]|0,0)|0;if(!h)g=1;else{r=v+250|0;q=a[(r&n)>>0]|0;t=d+68|0;s=c[(t&p)>>2]|0;Cs(d,c[(h&p)+32>>2]|0);b[(u&o)>>1]=-1;a[(r&n)>>0]=0;m=v+284|0;l=c[(m&p)>>2]|0;c[(m&p)>>2]=0;g=ns(d,h)|0;c[(m&p)>>2]=l;a[(r&n)>>0]=q;c[(t&p)>>2]=s;if(!g){b[(u&o)>>1]=0;g=1}else{d=g+38|0;b[(u&o)>>1]=b[(d&o)>>1]|0;t=g+4|0;c[(f&p)+4>>2]=c[(t&p)>>2];b[(d&o)>>1]=0;c[(t&p)>>2]=0;kg(v,g);g=(c[(f&p)+68>>2]|0)+78|0;b[(g&o)>>1]=e[(g&o)>>1]|0|2;g=0}Mk(v,h,1)}}else g=0;while(0);i=w;return g|0} function ir(f,g,h){f=f|0;g=g|0;h=h|0;var k=0,l=0,m=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,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,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;Ca=i;i=i+240|0;if((i|0)>=(j|0))fa();ra=Ca;sa=Ca+220|0;ka=Ca+216|0;ia=Ca+196|0;ja=Ca+176|0;ua=Ca+164|0;va=Ca+136|0;ya=Ca+88|0;ga=Ca+64|0;ma=Ca+32|0;Aa=f+464|0;Ba=c[(Aa&p)>>2]|0;oa=f+468|0;xa=c[(oa&p)>>2]|0;c[(oa&p)>>2]=xa+1;c[(Aa&p)>>2]=xa;xa=c[(f&p)>>2]|0;a:do if((((g|0)!=0?(pa=xa+65|0,(a[(pa&n)>>0]|0)==0):0)?(k=f+64|0,(c[(k&p)>>2]|0)==0):0)?(Sq(f,21,0,0,0)|0)==0:0){D=ya+0|0;C=D+48|0;do{c[(D&p)>>2]=0;D=D+4|0}while((D|0)<(C|0));la=g+48|0;if((d[(h&n)>>0]|0)<9){Nk(xa,c[(la&p)>>2]|0);c[(la&p)>>2]=0;ea=g+6|0;b[(ea&o)>>1]=e[(ea&o)>>1]&65534}Ds(f,g,0);c[(va&p)>>2]=0;c[(va&p)+4>>2]=0;c[(va&p)+8>>2]=0;c[(va&p)+12>>2]=0;c[(va&p)+16>>2]=0;c[(va&p)+20>>2]=0;c[(va&p)+24>>2]=0;c[(va&p)>>2]=c[(la&p)>>2];na=g+32|0;x=c[(na&p)>>2]|0;w=c[(g&p)>>2]|0;b:do if(((c[(k&p)>>2]|0)==0?(a[(pa&n)>>0]|0)==0:0)?(ta=g+6|0,z=(e[(ta&o)>>1]|0)>>>2&1,wa=Oq(f)|0,(wa|0)!=0):0){if((c[(w&p)>>2]|0)>1?(a[(h&n)>>0]&-2)<<24>>24==10:0){th(f,35368,ra);za=444;break}qa=g+52|0;w=c[(qa&p)>>2]|0;c:do if(!w){r=f+460|0;q=f+492|0;m=g+36|0;l=f+408|0;k=g+60|0;T=g+64|0;U=g+4|0;V=xa+60|0;W=wa+32|0;X=f+72|0;Y=ga+4|0;Z=ga+1|0;_=ga+8|0;$=ga+12|0;aa=wa+4|0;ba=wa+24|0;ca=f+19|0;da=f+56|0;ea=f+80|0;S=0;y=z;while(1){if((S|0)>=(c[(x&p)>>2]|0)){H=m;Q=0;z=y;U=x;break c}N=c[(x+(S*72|0)&p)+28>>2]|0;do if(!N)z=S;else{P=x+(S*72|0)+32|0;A=c[(P&p)>>2]|0;if(A){if(a[(x+(S*72|0)&n)+45>>0]&4){z=S;break}wh(wa,17,c[(x+(S*72|0)&p)+36>>2]|0,A,0)|0;z=S;break}c[(ra&p)>>2]=0;Es(g,ra);c[(r&p)>>2]=(c[(r&p)>>2]|0)+(c[(ra&p)>>2]|0);v=b[(N&o)+6>>1]&4;Q=c[(q&p)>>2]|0;u=c[(f&p)>>2]|0;d:do if(!(b[(u&o)+60>>1]&1)){L=c[(na&p)>>2]|0;t=c[(L+(S*72|0)&p)+48>>2]|0;K=L+(S*72|0)+28|0;O=c[(K&p)>>2]|0;s=v<<16>>16!=0;do if(s){if(y){za=120;break d}if((c[(L&p)>>2]|0)>1){za=120;break d}R=c[(m&p)>>2]|0;if((R|0)!=0?(c[(R&p)+4>>2]&2097152|0)!=0:0){za=120;break d}H=c[(g&p)>>2]|0;do if(H){E=c[(H&p)>>2]|0;if((E|0)<=0)break;I=c[(H&p)+4>>2]|0;H=0;F=0;do{F=c[((c[(I+(H*20|0)&p)>>2]|0)&p)+4>>2]|F;H=H+1|0}while((H|0)!=(E|0));if(F&2097152){za=120;break d}}while(0);H=c[(la&p)>>2]|0;if(!H)break;E=c[(H&p)>>2]|0;if((E|0)<=0)break;I=c[(H&p)+4>>2]|0;H=0;F=0;do{F=c[((c[(I+(H*20|0)&p)>>2]|0)&p)+4>>2]|F;H=H+1|0}while((H|0)!=(E|0));if(F&2097152){za=120;break d}}while(0);I=c[(O&p)+32>>2]|0;H=(c[(O&p)+60>>2]|0)==0;if(!H?(c[(k&p)>>2]|0)!=0:0){za=120;break}if(c[(O&p)+64>>2]|0){za=120;break}E=b[(ta&o)>>1]|0;F=(E&64)==0;if(!(F|H)){za=120;break}if(!(c[(I&p)>>2]|0)){za=120;break}D=b[(O&o)+6>>1]|0;if(D&1){za=120;break}I=H|F^1;if(!I?(c[(L&p)>>2]|0)>1|(y|0)!=0:0){za=120;break}H=E&1;if(H<<16>>16!=0&s){za=120;break}B=c[(la&p)>>2]|0;C=(B|0)==0;if(!C?(c[(O&p)+48>>2]|0)!=0:0){za=120;break}J=(y|0)!=0;if(J?(c[(O&p)+48>>2]|0)!=0:0){za=120;break}if(I){if(D&6144){za=120;break}}else if(!((c[(m&p)>>2]|0)==0&H<<16>>16==0&(D&6144)==0)){za=120;break}if((E&2048)!=0?(c[(O&p)+52>>2]|0)!=0:0){za=120;break}R=L+(S*72|0)+44|0;if(a[(R&n)>>0]&32){za=120;break}E=O+52|0;I=c[(E&p)>>2]|0;do if(I){if(!(H<<16>>16==0&(((c[(O&p)+48>>2]|0)!=0|J)^1))){za=120;break d}if((c[(L&p)>>2]|0)!=1){za=120;break d}e:do if(O){if(!(D&5))F=O;else{za=120;break d}while(1){H=(I|0)==0;if(!H?(a[(F&n)+4>>0]|0)!=116:0){za=120;break d}if((c[(c[(F&p)+32>>2]&p)>>2]|0)<1){za=120;break d}if((c[(c[(O&p)>>2]&p)>>2]|0)!=(c[(c[(F&p)>>2]&p)>>2]|0)){za=120;break d}if(H)break e;if(b[(I&o)+6>>1]&5){za=120;break d}F=I;I=c[(I&p)+52>>2]|0}}while(0);if(C)break;F=c[(B&p)>>2]|0;if((F|0)<=0)break;I=c[(B&p)+4>>2]|0;H=0;do{if(!(b[(I+(H*20|0)&o)+16>>1]|0)){za=120;break d}H=H+1|0}while((H|0)<(F|0))}while(0);A=L+(S*72|0)+16|0;c[(q&p)>>2]=c[(A&p)>>2];Sq(f,21,0,0,0)|0;c[(q&p)>>2]=Q;I=c[(E&p)>>2]|0;f:do if(!I)za=81;else{B=u+65|0;E=c[(la&p)>>2]|0;D=c[(k&p)>>2]|0;C=c[(T&p)>>2]|0;F=c[(qa&p)>>2]|0;while(1){c[(la&p)>>2]=0;c[(na&p)>>2]=0;c[(qa&p)>>2]=0;c[(k&p)>>2]=0;c[(T&p)>>2]=0;H=gr(u,g,0)|0;c[(T&p)>>2]=C;c[(k&p)>>2]=D;c[(la&p)>>2]=E;c[(na&p)>>2]=L;a[(U&n)>>0]=116;if(!H)H=F;else{c[(H&p)+52>>2]=F;if(F)c[(F&p)+56>>2]=H;c[(H&p)+56>>2]=g}c[(qa&p)>>2]=H;if(a[(B&n)>>0]|0)break f;I=c[(I&p)+52>>2]|0;if(!I){za=81;break}else F=H}}while(0);if((za|0)==81){za=0;M=c[(K&p)>>2]|0;E=L+(S*72|0)+12|0;mg(u,c[(E&p)>>2]|0);mg(u,c[(A&p)>>2]|0);F=L+(S*72|0)+20|0;mg(u,c[(F&p)>>2]|0);c[(E&p)>>2]=0;c[(A&p)>>2]=0;c[(F&p)>>2]=0;c[(K&p)>>2]=0;F=L+(S*72|0)+24|0;E=c[(F&p)>>2]|0;if(E){D=E+40|0;C=b[(D&o)>>1]|0;if(C<<16>>16==1){Q=c[(l&p)>>2]|0;Q=((Q|0)==0?f:Q)+524|0;c[(E&p)+72>>2]=c[(Q&p)>>2];c[(Q&p)>>2]=E}else b[(D&o)>>1]=C+-1<<16>>16;c[(F&p)>>2]=0}Q=S+1|0;P=u+65|0;O=g;N=M;while(1){B=c[(N&p)+32>>2]|0;A=c[(B&p)>>2]|0;H=O+32|0;I=c[(H&p)>>2]|0;if(!I){I=pr(u,0,0,0)|0;c[(H&p)>>2]=I;if(!I)break;else z=0}else z=a[(R&n)>>0]|0;if((A|0)>1){I=Fs(u,I,A+-1|0,Q)|0;c[(H&p)>>2]=I;if(a[(P&n)>>0]|0)break}if((A|0)>0){F=0;do{D=F+S|0;Hk(u,c[(I+(D*72|0)&p)+56>>2]|0);H=B+(F*72|0)+8|0;D=I+(D*72|0)+8|0;E=H+0|0;C=D+72|0;do{c[(D&p)>>2]=c[(E&p)>>2];D=D+4|0;E=E+4|0}while((D|0)<(C|0));D=H+0|0;C=D+72|0;do{c[(D&p)>>2]=0;D=D+4|0}while((D|0)<(C|0));F=F+1|0}while((F|0)!=(A|0))}a[(I+(S*72|0)&n)+44>>0]=z;H=c[(O&p)>>2]|0;I=c[(H&p)>>2]|0;if((I|0)>0){D=H+4|0;F=c[(D&p)>>2]|0;E=0;do{if(!(c[(F+(E*20|0)&p)+4>>2]|0)){I=kh(u,c[(F+(E*20|0)&p)+8>>2]|0)|0;lo(I);F=c[(D&p)>>2]|0;c[(F+(E*20|0)&p)+4>>2]=I;I=c[(H&p)>>2]|0}E=E+1|0}while((E|0)<(I|0));H=c[(O&p)>>2]|0}Gs(u,H,t,c[(N&p)>>2]|0);if(J){Gs(u,c[(O&p)+40>>2]|0,t,c[(N&p)>>2]|0);L=O+44|0;c[(L&p)>>2]=Hs(u,c[(L&p)>>2]|0,t,c[(N&p)>>2]|0)|0}I=N+48|0;H=c[(I&p)>>2]|0;do if(!H){H=c[(O&p)+48>>2]|0;if(!H)break;Gs(u,H,t,c[(N&p)>>2]|0)}else{F=c[(H&p)>>2]|0;if((F|0)>0){E=c[(H&p)+4>>2]|0;D=0;do{b[(E+(D*20|0)&o)+16>>1]=0;D=D+1|0}while((D|0)!=(F|0))}c[(O&p)+48>>2]=H;c[(I&p)>>2]=0}while(0);H=c[(N&p)+36>>2]|0;if(!H)F=0;else F=Mr(u,H,0,0)|0;I=O+36|0;H=c[(I&p)>>2]|0;if(s){L=O+44|0;c[(L&p)>>2]=H;c[(I&p)>>2]=F;K=Hs(u,H,t,c[(N&p)>>2]|0)|0;c[(L&p)>>2]=K;c[(L&p)>>2]=ss(u,K,Mr(u,c[(N&p)+44>>2]|0,0,0)|0)|0;c[(O&p)+40>>2]=Pr(u,c[(N&p)+40>>2]|0,0)|0}else{L=Hs(u,H,t,c[(N&p)>>2]|0)|0;c[(I&p)>>2]=L;c[(I&p)>>2]=ss(u,L,F)|0}H=O+6|0;b[(H&o)>>1]=e[(H&o)>>1]|e[(N&o)+6>>1]&1;H=N+60|0;F=c[(H&p)>>2]|0;if(F){c[(O&p)+60>>2]=F;c[(H&p)>>2]=0}O=c[(O&p)+52>>2]|0;if(!O)break;else N=c[(N&p)+52>>2]|0}Mk(u,M,1)}if(!(v<<16>>16)){z=-1;break}b[(ta&o)>>1]=e[(ta&o)>>1]|4;z=-1;y=1}else za=120;while(0);g:do if((za|0)==120){za=0;do if((c[(x&p)>>2]|0)==1){if(b[(V&o)>>1]&256)break;D=c[(W&p)>>2]|0;R=D+1|0;Q=(c[(X&p)>>2]|0)+1|0;c[(X&p)>>2]=Q;z=x+(S*72|0)+36|0;c[(z&p)>>2]=Q;wh(wa,20,Q,0,R)|0;c[(P&p)>>2]=R;R=c[(z&p)>>2]|0;a[(ga&n)>>0]=13;c[(Y&p)>>2]=R;a[(Z&n)>>0]=0;c[(_&p)>>2]=0;c[($&p)>>2]=0;a[(x+(S*72|0)&n)+46>>0]=c[(oa&p)>>2];ir(f,N,ga)|0;R=N+24|0;R=fs(c[(R&p)>>2]|0,c[(R&p)+4>>2]|0)|0;b[((c[(x+(S*72|0)&p)+24>>2]|0)&o)+28>>1]=R;R=x+(S*72|0)+45|0;a[(R&n)>>0]=a[(R&n)>>0]|4;c[(x+(S*72|0)&p)+40>>2]=c[(_&p)>>2];wh(wa,21,c[(z&p)>>2]|0,0,0)|0;z=c[(W&p)>>2]|0;if(z>>>0>D>>>0)c[((c[(aa&p)>>2]|0)+(D*20|0)&p)+8>>2]=z;c[((c[(ba&p)>>2]|0)&p)+88>>2]=z+-1;a[(ca&n)>>0]=0;c[(da&p)>>2]=0;z=S;break g}while(0);C=(c[(X&p)>>2]|0)+1|0;c[(X&p)>>2]=C;E=x+(S*72|0)+36|0;c[(E&p)>>2]=C;C=wh(wa,25,0,C,0)|0;c[(P&p)>>2]=C+1;if(!(a[(x+(S*72|0)&n)+45>>0]&2)){R=Oq(f)|0;D=c[(ea&p)>>2]|0;c[(ea&p)>>2]=D+1;D=wh(R,44,D,0,0)|0}else D=0;R=c[(x+(S*72|0)&p)+48>>2]|0;a[(ga&n)>>0]=12;c[(Y&p)>>2]=R;a[(Z&n)>>0]=0;c[(_&p)>>2]=0;c[($&p)>>2]=0;a[(x+(S*72|0)&n)+46>>0]=c[(oa&p)>>2];ir(f,N,ga)|0;R=N+24|0;R=fs(c[(R&p)>>2]|0,c[(R&p)+4>>2]|0)|0;b[((c[(x+(S*72|0)&p)+24>>2]|0)&o)+28>>1]=R;if(D){A=c[(W&p)>>2]|0;if(A>>>0>D>>>0)c[((c[(aa&p)>>2]|0)+(D*20|0)&p)+8>>2]=A;c[((c[(ba&p)>>2]|0)&p)+88>>2]=A+-1}z=wh(wa,18,c[(E&p)>>2]|0,0,0)|0;if((c[(W&p)>>2]|0)>>>0>C>>>0)c[((c[(aa&p)>>2]|0)+(C*20|0)&p)+4>>2]=z;a[(ca&n)>>0]=0;c[(da&p)>>2]=0;z=S}while(0);if(a[(pa&n)>>0]|0){za=444;break b}c[(ra&p)>>2]=0;Es(g,ra);c[(r&p)>>2]=(c[(r&p)>>2]|0)-(c[(ra&p)>>2]|0);x=c[(na&p)>>2]|0;if((d[(h&n)>>0]|0)<9)break;c[(va&p)>>2]=c[(la&p)>>2]}while(0);w=c[(qa&p)>>2]|0;if(!w)S=z+1|0;else{H=m;Q=w;z=y;U=x;break}}}else{H=g+36|0;Q=w;U=x}while(0);T=c[(g&p)>>2]|0;B=c[(H&p)>>2]|0;l=g+40|0;w=c[(l&p)>>2]|0;I=g+44|0;ga=c[(I&p)>>2]|0;m=b[(ta&o)>>1]|0;a[(ua&n)>>0]=m&1;if(Q){O=c[(f&p)>>2]|0;c[(sa&p)>>2]=c[(h&p)>>2];c[(sa&p)+4>>2]=c[(h&p)+4>>2];c[(sa&p)+8>>2]=c[(h&p)+8>>2];c[(sa&p)+12>>2]=c[(h&p)+12>>2];c[(sa&p)+16>>2]=c[(h&p)+16>>2];h:do if(!(c[(Q&p)+48>>2]|0)){x=Q+60|0;if(c[(x&p)>>2]|0){k=d[(g&n)+4>>0]|0;if((k|0)==118)k=35336;else if((k|0)==117)k=35352;else if((k|0)==116)k=35320;else k=35360;c[(ra&p)>>2]=k;th(f,35072,ra);m=0;k=1;za=227;break}R=Oq(f)|0;t=a[(sa&n)>>0]|0;if(t<<24>>24==12){wh(R,57,c[(sa&p)+4>>2]|0,c[(c[(g&p)>>2]&p)>>2]|0,0)|0;t=c[(R&p)+4>>2]|0;if(t)a[(t+(((c[(R&p)+32>>2]|0)+-1|0)*20|0)&n)+3>>0]=8;a[(sa&n)>>0]=14;t=14}s=e[(ta&o)>>1]|0;if(s&256){m=0;k=Is(f,g,sa)|0;za=227;break}if((c[(c[(g&p)>>2]&p)>>2]|0)!=(c[(c[(Q&p)>>2]&p)>>2]|0)){Js(f,g);m=0;k=1;za=227;break}do if(!(s&2048)){if(c[(la&p)>>2]|0){k=Ls(f,g,h)|0;break h}P=g+4|0;s=d[(P&n)>>0]|0;if((s|0)==116){v=g+8|0;t=Q+8|0;c[(t&p)>>2]=c[(v&p)>>2];u=g+12|0;s=Q+12|0;c[(s&p)>>2]=c[(u&p)>>2];da=g+60|0;c[(x&p)>>2]=c[(da&p)>>2];ea=g+64|0;c[(Q&p)+64>>2]=c[(ea&p)>>2];q=c[(oa&p)>>2]|0;k=ir(f,Q,sa)|0;c[(da&p)>>2]=0;c[(ea&p)>>2]=0;if(k){m=0;za=227;break h}c[(qa&p)>>2]=0;t=c[(t&p)>>2]|0;c[(v&p)>>2]=t;c[(u&p)>>2]=c[(s&p)>>2];if(!t)w=0;else w=wh(R,46,t,0,0)|0;l=c[(oa&p)>>2]|0;k=ir(f,g,sa)|0;m=c[(qa&p)>>2]|0;c[(qa&p)>>2]=Q;ea=Q+24|0;r=g+24|0;t=r;ea=jw(c[(t&p)>>2]|0,c[(t&p)+4>>2]|0,c[(ea&p)>>2]|0,c[(ea&p)+4>>2]|0)|0;t=r;c[(t&p)>>2]=ea;c[(t&p)+4>>2]=G;t=c[(x&p)>>2]|0;do if(t){ea=(Ms(t,ka)|0)!=0;t=c[(ka&p)>>2]|0;if(!(ea&(t|0)>0))break;ea=r;da=c[(ea&p)+4>>2]|0;s=((t|0)<0)<<31>>31;if(!(da>>>0>s>>>0|((da|0)==(s|0)?(c[(ea&p)>>2]|0)>>>0>t>>>0:0)))break;ea=r;c[(ea&p)>>2]=t;c[(ea&p)+4>>2]=s}while(0);if(!w){w=P;v=q;t=l;break}r=c[(R&p)+32>>2]|0;if(r>>>0>w>>>0)c[((c[(R&p)+4>>2]|0)+(w*20|0)&p)+8>>2]=r;c[((c[(R&p)+24>>2]|0)&p)+88>>2]=r+-1;w=P;v=q;t=l;break}else if((s|0)==115|(s|0)==117){if(t<<24>>24==1)s=c[(sa&p)+4>>2]|0;else{r=f+68|0;s=c[(r&p)>>2]|0;c[(r&p)>>2]=s+1;c[(g&p)+16>>2]=wh(R,57,s,0,0)|0;r=g;while(1){t=c[(r&p)+56>>2]|0;if(!t)break;else r=t}ea=r+6|0;b[(ea&o)>>1]=e[(ea&o)>>1]|8}a[(ia&n)>>0]=1;c[(ia&p)+4>>2]=s;a[(ia&n)+1>>0]=0;c[(ia&p)+8>>2]=0;c[(ia&p)+12>>2]=0;y=c[(oa&p)>>2]|0;k=ir(f,Q,ia)|0;if(k){m=0;za=227;break h}x=(a[(P&n)>>0]|0)==117?2:1;c[(qa&p)>>2]=0;v=g+60|0;u=c[(v&p)>>2]|0;c[(v&p)>>2]=0;t=g+64|0;r=c[(t&p)>>2]|0;c[(t&p)>>2]=0;a[(ia&n)>>0]=x;x=c[(oa&p)>>2]|0;k=ir(f,g,ia)|0;Nk(O,c[(la&p)>>2]|0);m=c[(qa&p)>>2]|0;c[(qa&p)>>2]=Q;c[(la&p)>>2]=0;if((a[(P&n)>>0]|0)==115){da=Q+24|0;ea=g+24|0;ca=ea;da=jw(c[(ca&p)>>2]|0,c[(ca&p)+4>>2]|0,c[(da&p)>>2]|0,c[(da&p)+4>>2]|0)|0;c[(ea&p)>>2]=da;c[(ea&p)+4>>2]=G}Gk(O,c[(v&p)>>2]|0);c[(v&p)>>2]=u;c[(t&p)>>2]=r;c[(g&p)+8>>2]=0;c[(g&p)+12>>2]=0;r=a[(sa&n)>>0]|0;if(r<<24>>24==9){r=g;while(1){q=c[(r&p)+52>>2]|0;if(!q)break;else r=q}Ns(f,0,c[(r&p)>>2]|0)}else if(r<<24>>24==1){w=P;v=y;t=x;break}l=xs(R)|0;ea=xs(R)|0;Os(f,g,l);wh(R,108,s,l,0)|0;w=R+32|0;v=c[(w&p)>>2]|0;Ps(f,g,c[(g&p)>>2]|0,s,0,0,sa,ea,l);u=R+24|0;t=c[(u&p)>>2]|0;r=~ea;do if((ea|0)<0){q=c[(t&p)+112>>2]|0;if(!q)break;c[(q+(r<<2)&p)>>2]=c[(w&p)>>2]}while(0);c[(t&p)+88>>2]=(c[(w&p)>>2]|0)+-1;wh(R,9,s,v,0)|0;r=c[(u&p)>>2]|0;q=~l;do if((l|0)<0){t=c[(r&p)+112>>2]|0;if(!t)break;c[(t+(q<<2)&p)>>2]=c[(w&p)>>2]}while(0);c[(r&p)+88>>2]=(c[(w&p)>>2]|0)+-1;wh(R,61,s,0,0)|0;w=P;v=y;t=x;break}else{r=f+68|0;A=c[(r&p)>>2]|0;c[(r&p)>>2]=A+2;c[(g&p)+16>>2]=wh(R,57,A,0,0)|0;r=g;while(1){q=c[(r&p)+56>>2]|0;if(!q)break;else r=q}y=A+1|0;v=r+6|0;b[(v&o)>>1]=e[(v&o)>>1]|8;a[(ja&n)>>0]=1;v=ja+4|0;c[(v&p)>>2]=A;a[(ja&n)+1>>0]=0;c[(ja&p)+8>>2]=0;c[(ja&p)+12>>2]=0;x=c[(oa&p)>>2]|0;k=ir(f,Q,ja)|0;if(k){m=0;za=227;break h}c[(g&p)+20>>2]=wh(R,57,y,0,0)|0;c[(qa&p)>>2]=0;w=g+60|0;l=c[(w&p)>>2]|0;c[(w&p)>>2]=0;q=g+64|0;r=c[(q&p)>>2]|0;c[(q&p)>>2]=0;c[(v&p)>>2]=y;z=c[(oa&p)>>2]|0;k=ir(f,g,ja)|0;m=c[(qa&p)>>2]|0;c[(qa&p)>>2]=Q;t=g+24|0;ea=t;da=c[(ea&p)+4>>2]|0;u=Q+24|0;v=c[(u&p)>>2]|0;u=c[(u&p)+4>>2]|0;if(da>>>0>u>>>0|((da|0)==(u|0)?(c[(ea&p)>>2]|0)>>>0>v>>>0:0)){ea=t;c[(ea&p)>>2]=v;c[(ea&p)+4>>2]=u}Gk(O,c[(w&p)>>2]|0);c[(w&p)>>2]=l;c[(q&p)>>2]=r;if((a[(sa&n)>>0]|0)==9){t=g;while(1){s=c[(t&p)+52>>2]|0;if(!s)break;else t=s}Ns(f,0,c[(t&p)>>2]|0)}q=xs(R)|0;w=xs(R)|0;Os(f,g,q);wh(R,108,A,q,0)|0;t=f+19|0;s=a[(t&n)>>0]|0;if(!(s<<24>>24)){ea=f+72|0;t=(c[(ea&p)>>2]|0)+1|0;c[(ea&p)>>2]=t}else{ea=s+-1<<24>>24;a[(t&n)>>0]=ea;t=c[(f+((ea&255)<<2)&p)+24>>2]|0}l=wh(R,101,A,t,0)|0;xh(R,wh(R,68,y,w,t)|0,0,-14);_r(f,t);Ps(f,g,c[(g&p)>>2]|0,A,0,0,sa,w,q);t=R+24|0;s=c[(t&p)>>2]|0;u=~w;do if((w|0)<0){v=c[(s&p)+112>>2]|0;if(!v)break;c[(v+(u<<2)&p)>>2]=c[(R&p)+32>>2]}while(0);v=R+32|0;c[(s&p)+88>>2]=(c[(v&p)>>2]|0)+-1;wh(R,9,A,l,0)|0;s=c[(t&p)>>2]|0;r=~q;do if((q|0)<0){t=c[(s&p)+112>>2]|0;if(!t)break;c[(t+(r<<2)&p)>>2]=c[(v&p)>>2]}while(0);c[(s&p)+88>>2]=(c[(v&p)>>2]|0)+-1;wh(R,61,y,0,0)|0;wh(R,61,A,0,0)|0;w=P;v=x;t=z;break}}else{Ks(f,g,sa);w=g+4|0;v=0;t=0;m=0;k=0}while(0);ea=a[(w&n)>>0]|0;Qs(f,ea&255,v,t,ea<<24>>24!=116&1);if(!(b[(ta&o)>>1]&8)){za=227;break}u=c[(c[(g&p)>>2]&p)>>2]|0;v=Rs(O,u,1)|0;if(!v){k=7;za=227;break}if((u|0)>0){l=O+8|0;q=v+20|0;r=0;while(1){ea=Ss(f,g,r)|0;c[(q&p)>>2]=ea;if(!ea)c[(q&p)>>2]=c[(l&p)>>2];r=r+1|0;if((r|0)==(u|0))break;else q=q+4|0}}s=R+32|0;t=R+4|0;do{l=0;do{r=g+(l<<2)+16|0;q=c[(r&p)>>2]|0;if((q|0)<0)break;if((c[(s&p)>>2]|0)>>>0>q>>>0)c[((c[(t&p)>>2]|0)+(q*20|0)&p)+8>>2]=u;c[(v&p)>>2]=(c[(v&p)>>2]|0)+1;xh(R,q,v,-6);c[(r&p)>>2]=-1;l=l+1|0}while((l|0)<2);g=c[(g&p)+52>>2]|0}while((g|0)!=0);ea=(c[(v&p)>>2]|0)+-1|0;c[(v&p)>>2]=ea;if(ea){za=227;break}Wc(v);za=227}else{k=d[(g&n)+4>>0]|0;if((k|0)==118)k=35336;else if((k|0)==117)k=35352;else if((k|0)==116)k=35320;else k=35360;c[(ra&p)>>2]=k;th(f,35024,ra);m=0;k=1;za=227}while(0);if((za|0)==227){c[(h&p)+8>>2]=c[(sa&p)+8>>2];c[(h&p)+12>>2]=c[(sa&p)+12>>2];Mk(O,m,1)}c[(Aa&p)>>2]=Ba;break a}if((m&5)==1){k=c[(va&p)>>2]|0;if(!(Ts(k,T,-1)|0)){b[(ta&o)>>1]=m&65534;w=Pr(xa,T,0)|0;c[(l&p)>>2]=w;za=232}}else za=232;if((za|0)==232)k=c[(va&p)>>2]|0;if(!k)k=-1;else{ea=Us(f,k,0,c[(T&p)>>2]|0)|0;da=f+68|0;k=c[(da&p)>>2]|0;c[(da&p)>>2]=k+1;c[(va&p)+8>>2]=k;k=wh(wa,57,k,(c[(c[(va&p)>>2]&p)>>2]|0)+1+(c[(T&p)>>2]|0)|0,0)|0;xh(wa,k,ea,-6)}R=va+20|0;c[(R&p)>>2]=k;if((a[(h&n)>>0]|0)==12)wh(wa,57,c[(h&p)+4>>2]|0,c[(T&p)>>2]|0,0)|0;qa=xs(wa)|0;y=g+24|0;ea=y;c[(ea&p)>>2]=-1;c[(ea&p)+4>>2]=2147483647;Os(f,g,qa);if((c[(g&p)+8>>2]|0)==0?(ha=c[(R&p)>>2]|0,(ha|0)>-1):0){if(!(a[((c[(wa&p)>>2]|0)&n)+65>>0]|0))k=(c[(wa&p)+4>>2]|0)+(ha*20|0)|0;else k=29120;a[(k&n)>>0]=58;ea=va+24|0;a[(ea&n)>>0]=d[(ea&n)>>0]|1}if(!(b[(ta&o)>>1]&1))a[(ua&n)+1>>0]=0;else{ea=f+68|0;k=c[(ea&p)>>2]|0;c[(ea&p)>>2]=k+1;c[(ua&p)+4>>2]=k;ea=Us(f,c[(g&p)>>2]|0,0,0)|0;k=wh(wa,57,k,0,0)|0;xh(wa,k,ea,-6);c[(ua&p)+8>>2]=k;k=c[(wa&p)+4>>2]|0;if(k)a[(k+(((c[(wa&p)+32>>2]|0)+-1|0)*20|0)&n)+3>>0]=8;a[(ua&n)+1>>0]=3}if((z|0)==0&(w|0)==0){v=Vs(f,U,B,c[(va&p)>>2]|0,c[(g&p)>>2]|0,(a[(ua&n)>>0]|0)!=0?1024:0,0)|0;if(!v){za=444;break}t=Ws(b[(v&o)+32>>1]|0)|0;s=G;ea=y;da=c[(ea&p)+4>>2]|0;if(s>>>0>>0|((s|0)==(da|0)?t>>>0<(c[(ea&p)>>2]|0)>>>0:0)){ea=y;c[(ea&p)>>2]=t;c[(ea&p)+4>>2]=s}do if(a[(ua&n)>>0]|0){t=a[(v&n)+40>>0]|0;if(!(t<<24>>24))break;a[(ua&n)+1>>0]=t}while(0);t=c[(va&p)>>2]|0;do if(!t)za=257;else{ea=a[(v&n)+36>>0]|0;c[(va&p)+4>>2]=ea;if((ea|0)!=(c[(t&p)>>2]|0))break;c[(va&p)>>2]=0;za=257}while(0);do if((za|0)==257){r=c[(R&p)>>2]|0;if((r|0)<=-1)break;zh(wa,r)}while(0);Ps(f,g,T,-1,va,ua,h,c[(v&p)+48>>2]|0,c[(v&p)+52>>2]|0);Xs(v)}else{z=(w|0)!=0;do if(z){l=c[(g&p)>>2]|0;k=c[(l&p)>>2]|0;if((k|0)>0){l=c[(l&p)+4>>2]|0;while(1){b[(l&o)+18>>1]=0;k=k+-1|0;if((k|0)<=0)break;else l=l+20|0}}k=c[(w&p)>>2]|0;if((k|0)>0){l=c[(w&p)+4>>2]|0;while(1){b[(l&o)+18>>1]=0;k=k+-1|0;if((k|0)<=0)break;else l=l+20|0}}ea=y;da=c[(ea&p)+4>>2]|0;if(!(da>>>0>0|(da|0)==0&(c[(ea&p)>>2]|0)>>>0>100))break;ea=y;c[(ea&p)>>2]=100;c[(ea&p)+4>>2]=0}else{ea=y;c[(ea&p)>>2]=1;c[(ea&p)+4>>2]=0}while(0);P=(Ts(w,c[(va&p)>>2]|0,-1)|0)==0;S=xs(wa)|0;c[(ma&p)>>2]=0;c[(ma&p)+4>>2]=0;c[(ma&p)+8>>2]=0;c[(ma&p)+12>>2]=0;c[(ma&p)+16>>2]=0;c[(ma&p)+20>>2]=0;c[(ma&p)+24>>2]=0;c[(ma&p)+28>>2]=0;c[(ma&p)>>2]=f;c[(ma&p)+4>>2]=U;c[(ma&p)+12>>2]=ya;K=f+72|0;c[(ya&p)+16>>2]=(c[(K&p)>>2]|0)+1;if(z)k=c[(w&p)>>2]|0;else k=0;y=ya+12|0;c[(y&p)>>2]=k;c[(ya&p)+24>>2]=w;Ys(ma,T);Ys(ma,c[(va&p)>>2]|0);if(ga){c[(ra&p)>>2]=0;c[(ra&p)+4>>2]=0;c[(ra&p)+8>>2]=0;c[(ra&p)+12>>2]=0;c[(ra&p)+16>>2]=0;c[(ra&p)+20>>2]=0;c[(ra&p)>>2]=80;c[(ra&p)+4>>2]=81;c[(ra&p)+24>>2]=ma;rs(ra,ga)|0}A=ya+32|0;c[(ya&p)+36>>2]=c[(A&p)>>2];r=ya+44|0;k=c[(r&p)>>2]|0;if((k|0)>0){x=ma+28|0;l=ya+40|0;m=b[(x&o)>>1]|0;q=0;do{b[(x&o)>>1]=m&65535|8;Ys(ma,c[((c[((c[(l&p)>>2]|0)+(q<<4)&p)>>2]|0)&p)+20>>2]|0);m=e[(x&o)>>1]&65527;b[(x&o)>>1]=m;q=q+1|0;k=c[(r&p)>>2]|0}while((q|0)<(k|0))}c[(ya&p)+20>>2]=c[(K&p)>>2];if(a[(pa&n)>>0]|0){za=444;break}if(z){I=f+68|0;H=c[(I&p)>>2]|0;c[(I&p)>>2]=H+1;v=ya+4|0;c[(v&p)>>2]=H;H=Us(f,w,0,c[(A&p)>>2]|0)|0;u=wh(wa,58,c[(v&p)>>2]|0,c[(y&p)>>2]|0,0)|0;xh(wa,u,H,-6);N=c[(K&p)>>2]|0;M=N+1|0;J=N+2|0;N=N+3|0;c[(K&p)>>2]=N;L=xs(wa)|0;Q=(c[(K&p)>>2]|0)+1|0;c[(K&p)>>2]=Q;O=xs(wa)|0;t=c[(K&p)>>2]|0;r=t+1|0;ea=c[(w&p)>>2]|0;da=ea+t|0;s=da+1|0;c[(K&p)>>2]=da+ea;wh(wa,25,0,J,0)|0;wh(wa,25,0,M,0)|0;wh(wa,28,0,r,(c[(w&p)>>2]|0)+t|0)|0;wh(wa,17,Q,O,0)|0;t=Vs(f,U,B,w,0,P?2304:256,0)|0;if(!t){za=444;break}if((a[(t&n)+36>>0]|0)==(c[(w&p)>>2]|0)){x=0;k=0;y=0}else{if(!(a[(ua&n)>>0]|0))k=34824;else k=(b[(ta&o)>>1]&1)==0?34808:34824;$s(f,k);D=c[(w&p)>>2]|0;k=c[(A&p)>>2]|0;if((k|0)>0){l=c[(ya&p)+28>>2]|0;m=0;y=D;x=D;do{if((c[(l+(m*24|0)&p)+12>>2]|0)>=(y|0)){y=y+1|0;x=x+1|0}m=m+1|0}while((m|0)<(k|0));F=x}else F=D;E=f+60|0;x=c[(E&p)>>2]|0;B=f+56|0;k=c[(B&p)>>2]|0;if((k|0)<(F|0)){C=c[(K&p)>>2]|0;c[(K&p)>>2]=C+F;C=C+1|0}else{c[(E&p)>>2]=x+F;c[(B&p)>>2]=k-F;C=x}at(f);bt(f,w,C,0);y=c[(A&p)>>2]|0;if((y|0)>0){m=ya+28|0;z=0;x=D;do{k=c[(m&p)>>2]|0;if((c[(k+(z*24|0)&p)+12>>2]|0)>=(x|0)){l=x+C|0;y=ct(f,c[(k+(z*24|0)&p)>>2]|0,c[(k+(z*24|0)&p)+8>>2]|0,c[(k+(z*24|0)&p)+4>>2]|0,l,0)|0;if((l|0)!=(y|0))wh(wa,34,y,l,0)|0;y=c[(A&p)>>2]|0;x=x+1|0}z=z+1|0}while((z|0)<(y|0))}y=f+19|0;x=a[(y&n)>>0]|0;if(!(x<<24>>24)){x=(c[(K&p)>>2]|0)+1|0;c[(K&p)>>2]=x}else{x=x+-1<<24>>24;a[(y&n)>>0]=x;x=c[(f+((x&255)<<2)&p)+24>>2]|0}wh(wa,49,C,F,x)|0;wh(wa,109,c[(v&p)>>2]|0,x,0)|0;_r(f,x);dt(f,C,F);if((c[(B&p)>>2]|0)<(F|0)){c[(B&p)>>2]=F;c[(E&p)>>2]=C}Xs(t);l=c[(I&p)>>2]|0;c[(I&p)>>2]=l+1;c[(ya&p)+8>>2]=l;k=a[(y&n)>>0]|0;if(!(k<<24>>24)){k=(c[(K&p)>>2]|0)+1|0;c[(K&p)>>2]=k}else{k=k+-1<<24>>24;a[(y&n)>>0]=k;k=c[(f+((k&255)<<2)&p)+24>>2]|0}wh(wa,60,l,k,F)|0;wh(wa,106,c[(v&p)>>2]|0,S,0)|0;a[(ya&n)+1>>0]=1;at(f);x=1;y=l}do if(P){if(b[(xa&o)+60>>1]&4)break;if((x|0)==0?(a[(t&n)+37>>0]|0)==0:0)break;c[(va&p)>>2]=0;zh(wa,c[(R&p)>>2]|0)}while(0);A=wa+32|0;q=c[(A&p)>>2]|0;at(f);x=(x|0)!=0;if(x)wh(wa,100,c[(v&p)>>2]|0,k,y)|0;k=c[(w&p)>>2]|0;if((k|0)>0){l=w+4|0;m=0;do{if(x)wh(wa,47,y,m,m+s|0)|0;else{a[(ya&n)>>0]=1;Rq(f,c[((c[(l&p)>>2]|0)+(m*20|0)&p)>>2]|0,m+s|0)}m=m+1|0;k=c[(w&p)>>2]|0}while((m|0)<(k|0))}if(H)c[(H&p)>>2]=(c[(H&p)>>2]|0)+1;xh(wa,wh(wa,42,r,s,k)|0,H,-6);k=c[(A&p)>>2]|0;ea=k+1|0;wh(wa,43,ea,0,ea)|0;w=c[(w&p)>>2]|0;wh(c[(f&p)+8>>2]|0,32,s,r,w)|0;dt(f,s,w);wh(wa,17,N,L,0)|0;wh(wa,137,J,S,0)|0;wh(wa,17,Q,O,0)|0;w=c[(A&p)>>2]|0;if(w>>>0>k>>>0)c[((c[(wa&p)+4>>2]|0)+(k*20|0)&p)+8>>2]=w;r=wa+24|0;c[((c[(r&p)>>2]|0)&p)+88>>2]=w+-1;et(f,ya);wh(wa,25,1,M,0)|0;if(x)wh(wa,5,c[(v&p)>>2]|0,q,0)|0;else{Xs(t);zh(wa,u)}wh(wa,17,N,L,0)|0;wh(wa,16,0,S,0)|0;m=c[(A&p)>>2]|0;wh(wa,25,1,J,0)|0;wh(wa,18,N,0,0)|0;k=c[(r&p)>>2]|0;l=~L;do if((L|0)<0){w=c[(k&p)+112>>2]|0;if(!w)break;c[(w+(l<<2)&p)>>2]=c[(A&p)>>2]}while(0);v=c[(A&p)>>2]|0;c[(k&p)+88>>2]=v+-1;wh(wa,137,M,v+2|0,0)|0;wh(wa,18,N,0,0)|0;ft(f,ya);v=v+1|0;gt(f,ga,v,16);Ps(f,g,c[(g&p)>>2]|0,-1,va,ua,h,v,m);wh(wa,18,N,0,0)|0;v=c[(r&p)>>2]|0;u=~O;do if((O|0)<0){t=c[(v&p)+112>>2]|0;if(!t)break;c[(t+(u<<2)&p)>>2]=c[(A&p)>>2]}while(0);c[(v&p)+88>>2]=(c[(A&p)>>2]|0)+-1;ht(f,ya);wh(wa,18,Q,0,0)|0}else{do if(!(c[(H&p)>>2]|0)){u=c[(g&p)>>2]|0;if((c[(u&p)>>2]|0)!=1){za=372;break}v=c[(na&p)>>2]|0;if((c[(v&p)>>2]|0)!=1){za=372;break}if(c[(v&p)+28>>2]|0){za=372;break}A=c[(v&p)+24>>2]|0;v=c[(c[(u&p)+4>>2]&p)>>2]|0;z=A+44|0;if(a[(z&n)>>0]&16){za=372;break}if((a[(v&n)>>0]|0)!=-101|(k|0)==0){za=372;break}y=ya+40|0;if(!(b[((c[((c[(y&p)>>2]|0)&p)+4>>2]|0)&o)+2>>1]&256)){za=372;break}if((A|0)==0?1:(c[(v&p)+4>>2]&16|0)!=0){za=372;break}v=c[(f&p)>>2]|0;k=c[(A&p)+68>>2]|0;i:do if(!k)u=-1e6;else{l=c[(v&p)+20>>2]|0;if((l|0)<=0){u=0;break}v=c[(v&p)+16>>2]|0;w=0;while(1){u=w+1|0;if((c[(v+(w<<4)&p)+12>>2]|0)==(k|0)){u=w;break i}if((u|0)<(l|0))w=u;else break}}while(0);w=f+68|0;q=c[(w&p)>>2]|0;c[(w&p)>>2]=q+1;w=A+32|0;k=c[(w&p)>>2]|0;Ar(f,u);gs(f,u,c[(w&p)>>2]|0,0,c[(A&p)>>2]|0);w=c[(A&p)+8>>2]|0;j:do if(!(a[(z&n)>>0]&32)){v=0;za=351}else{if(!w){l=1;m=0;w=0;break}else v=w;while(1){if((a[(v&n)+51>>0]&3)==2){za=351;break j}v=c[(v&p)+20>>2]|0;if(!v){v=0;za=351;break}}}while(0);do if((za|0)==351){if(w){m=A+42|0;l=w;do{do if(!(a[(l&n)+51>>0]&4)){w=b[(l&o)+44>>1]|0;if(w<<16>>16>=(b[(m&o)>>1]|0))break;if(c[(l&p)+36>>2]|0)break;if((v|0)!=0?w<<16>>16>=(b[(v&o)+44>>1]|0):0)break;v=l}while(0);l=c[(l&p)+20>>2]|0}while((l|0)!=0)}if(!v){l=1;m=0;w=0;break}k=c[(v&p)+40>>2]|0;l=0;m=v;w=hs(f,v)|0}while(0);xh(wa,wh(wa,54,q,k,u)|0,1,-14);if(w)xh(wa,-1,w,-6);wh(wa,50,q,c[((c[(y&p)>>2]|0)&p)+8>>2]|0,0)|0;wh(wa,61,q,0,0)|0;if((a[(f&n)+450>>0]|0)!=2){t=0;break}do if(l){v=c[(A&p)>>2]|0;u=10360;s=10360;t=c[(f&p)>>2]|0}else{if(a[(z&n)>>0]&32){ea=(a[(m&n)+51>>0]&3)!=2;t=c[(f&p)>>2]|0;v=c[(A&p)>>2]|0;u=ea?34920:10360;if(!ea){s=10360;break}}else{u=34920;v=c[(A&p)>>2]|0;t=c[(f&p)>>2]|0}s=c[(m&p)>>2]|0}while(0);c[(ra&p)>>2]=v;c[(ra&p)+4>>2]=u;c[(ra&p)+8>>2]=s;t=uh(t,34896,ra)|0;ea=c[(f&p)+8>>2]|0;xh(ea,wh(ea,157,c[(Aa&p)>>2]|0,0,0)|0,t,-1);t=0}else za=372;while(0);if((za|0)==372){do if((c[(I&p)>>2]|0)==0&(k|0)==1){t=c[(c[(ya&p)+40>>2]&p)>>2]|0;v=c[(t&p)+20>>2]|0;if(!v){t=0;s=0;break}if((c[(v&p)>>2]|0)!=1){t=0;s=0;break}if((a[(c[(c[(v&p)+4>>2]&p)>>2]&n)>>0]|0)!=-100){t=0;s=0;break}t=c[(t&p)+8>>2]|0;if(dd(t,18760)|0)if(!(dd(t,18768)|0))s=2;else{t=0;s=0;break}else s=1;t=Pr(xa,v,0)|0;if(!t){t=0;break}if(a[(pa&n)>>0]|0)break;ea=c[(t&p)+4>>2]|0;a[(ea&n)+12>>0]=s<<24>>24!=1&1;a[(c[(ea&p)>>2]&n)>>0]=-102}else{t=0;s=0}while(0);ht(f,ya);s=Vs(f,U,B,t,0,s&255,0)|0;if(!s){Nk(xa,t);za=444;break}et(f,ya);if((a[(s&n)+36>>0]|0)>0)wh(wa,16,0,c[(s&p)+52>>2]|0,0)|0;Xs(s);ft(f,ya)}c[(va&p)>>2]=0;gt(f,ga,S,16);Ps(f,g,c[(g&p)>>2]|0,-1,0,0,h,S,S);Nk(xa,t);r=wa+24|0}t=c[(r&p)>>2]|0;s=~S;do if((S|0)<0){r=c[(t&p)+112>>2]|0;if(!r)break;c[(r+(s<<2)&p)>>2]=c[(wa&p)+32>>2]}while(0);c[(t&p)+88>>2]=(c[(wa&p)+32>>2]|0)+-1}if((a[(ua&n)+1>>0]|0)==3)$s(f,34808);if(c[(va&p)>>2]|0){x=va+4|0;$s(f,(c[(x&p)>>2]|0)>0?34840:34864);A=c[(T&p)>>2]|0;v=f+8|0;H=c[(v&p)>>2]|0;I=xs(H)|0;F=xs(H)|0;q=c[(va&p)>>2]|0;m=a[(h&n)>>0]|0;B=m&255;C=h+4|0;D=c[(C&p)>>2]|0;y=va+16|0;w=c[(y&p)>>2]|0;if(w){wh(H,17,c[(va&p)+12>>2]|0,w,0)|0;wh(H,16,0,I,0)|0;ea=c[(y&p)>>2]|0;w=c[(H&p)+24>>2]|0;k=~ea;do if((ea|0)<0){l=c[(w&p)+112>>2]|0;if(!l)break;c[(l+(k<<2)&p)>>2]=c[(H&p)+32>>2]}while(0);c[(w&p)+88>>2]=(c[(H&p)+32>>2]|0)+-1}E=c[(va&p)+8>>2]|0;t=m<<24>>24==9;k:do if((m&-5)<<24>>24==9){s=A;u=c[(h&p)+8>>2]|0;k=0}else{w=f+19|0;k=a[(w&n)>>0]|0;do if(k<<24>>24){ea=k+-1<<24>>24;a[(w&n)>>0]=ea;l=c[(f+((ea&255)<<2)&p)+24>>2]|0;if(!(ea<<24>>24)){k=l;w=c[(f&p)+72>>2]|0;break}else{u=k+-2<<24>>24;a[(w&n)>>0]=u;s=1;u=c[(f+((u&255)<<2)&p)+24>>2]|0;k=l;break k}}else{k=f+72|0;w=(c[(k&p)>>2]|0)+1|0;c[(k&p)>>2]=w;k=w}while(0);u=w+1|0;c[(f&p)+72>>2]=u;s=1}while(0);r=(c[(q&p)>>2]|0)-(c[(x&p)>>2]|0)|0;z=va+24|0;if(!(a[(z&n)>>0]&1)){w=wh(H,107,E,I,0)|0;it(H,c[(g&p)+12>>2]|0,F);l=1;m=E}else{ea=f+72|0;m=(c[(ea&p)>>2]|0)+1|0;c[(ea&p)>>2]=m;ea=f+68|0;q=c[(ea&p)>>2]|0;c[(ea&p)>>2]=q+1;if(!(c[(y&p)>>2]|0))l=0;else{ea=Oq(f)|0;da=f+80|0;l=c[(da&p)>>2]|0;c[(da&p)>>2]=l+1;l=wh(ea,44,l,0,0)|0}wh(H,60,q,m,s+1+r|0)|0;if(l){w=c[(H&p)+32>>2]|0;if(w>>>0>l>>>0)c[((c[(H&p)+4>>2]|0)+(l*20|0)&p)+8>>2]=w;c[((c[(H&p)+24>>2]|0)&p)+88>>2]=w+-1}w=wh(H,106,E,I,0)|0;it(H,c[(g&p)+12>>2]|0,F);wh(H,100,E,m,q)|0;l=0;m=q}x=w+1|0;if((s|0)>0){w=l+r|0;l=0;do{wh(H,47,m,w+l|0,l+u|0)|0;l=l+1|0}while((l|0)!=(s|0))}do if((B|0)==12|(B|0)==14){wh(H,74,D,k,0)|0;wh(H,75,D,u,k)|0;t=c[(H&p)+4>>2]|0;if(!t)break;a[(t+(((c[(H&p)+32>>2]|0)+-1|0)*20|0)&n)+3>>0]=8}else if((B|0)==11){xh(H,wh(H,49,u,1,k)|0,h+1|0,1);dt(f,u,1);wh(H,110,D,k,0)|0}else if((B|0)!=10)if(t){ea=h+8|0;wh(H,35,c[(ea&p)>>2]|0,A,0)|0;dt(f,c[(ea&p)>>2]|0,A);break}else{wh(H,22,c[(C&p)>>2]|0,0,0)|0;break}else{wh(c[(v&p)>>2]|0,32,u,D,1)|0;dt(f,u,1)}while(0);if(k){_r(f,u);_r(f,k)}s=H+24|0;u=c[(s&p)>>2]|0;v=~F;do if((F|0)<0){t=c[(u&p)+112>>2]|0;if(!t)break;c[(t+(v<<2)&p)>>2]=c[(H&p)+32>>2]}while(0);v=H+32|0;c[(u&p)+88>>2]=(c[(v&p)>>2]|0)+-1;if(!(a[(z&n)>>0]&1))wh(H,9,E,x,0)|0;else wh(H,5,E,x,0)|0;r=c[(va&p)+12>>2]|0;if(r)wh(H,18,r,0,0)|0;r=c[(s&p)>>2]|0;q=~I;do if((I|0)<0){m=c[(r&p)+112>>2]|0;if(!m)break;c[(m+(q<<2)&p)>>2]=c[(v&p)>>2]}while(0);c[(r&p)+88>>2]=(c[(v&p)>>2]|0)+-1}l=c[(wa&p)+24>>2]|0;m=~qa;do if((qa|0)<0){k=c[(l&p)+112>>2]|0;if(!k)break;c[(k+(m<<2)&p)>>2]=c[(wa&p)+32>>2]}while(0);c[(l&p)+88>>2]=(c[(wa&p)+32>>2]|0)+-1;c[(Aa&p)>>2]=Ba;if((a[(h&n)>>0]|0)!=9){k=0;break}Ns(f,U,T);k=0}else za=444;while(0);if((za|0)==444){c[(Aa&p)>>2]=Ba;k=1}mg(xa,c[(ya&p)+28>>2]|0);mg(xa,c[(ya&p)+40>>2]|0)}else k=1;while(0);i=Ca;return k|0}function jr(a,b,d,e,f,g,h,k){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;var l=0,m=0,n=0,o=0,q=0,r=0;r=i;i=i+16|0;if((i|0)>=(j|0))fa();m=r;o=c[(a&p)>>2]|0;if((b|0)==0?(l=(h|0)!=0,l|(k|0)!=0):0){c[(m&p)>>2]=l?34792:34800;th(a,34752,m);q=9}else{b=pr(o,b,d,e)|0;if((b|0)!=0?(n=c[(b&p)>>2]|0,(n|0)!=0):0){l=n+-1|0;if(c[(f&p)+4>>2]|0)c[(b+(l*72|0)&p)+20>>2]=Wq(o,f)|0;c[(b+(l*72|0)&p)+28>>2]=g;c[(b+(l*72|0)&p)+52>>2]=h;c[(b+(l*72|0)&p)+56>>2]=k}else q=9}if((q|0)==9){Gk(o,h);Hk(o,k);Mk(o,g,1);b=0}i=r;return b|0}function kr(d,e,f,g,h,k,l,m,q,r){d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;m=m|0;q=q|0;r=r|0;var s=0,t=0,u=0,v=0,w=0,x=0,y=0;y=i;i=i+80|0;if((i|0)>=(j|0))fa();t=y+72|0;x=y;w=c[(d&p)>>2]|0;s=mh(w,72,0)|0;if(!s){u=x+0|0;v=u+72|0;do{c[(u&p)>>2]=0;u=u+4|0}while((u|0)<(v|0));s=x}else{u=s+0|0;v=u+72|0;do{a[(u&n)>>0]=0;u=u+1|0}while((u|0)<(v|0))}if(!e){c[(t&p)>>2]=0;c[(t&p)+4>>2]=0;e=lr(d,0,nr(w,116,t,0)|0)|0}c[(s&p)>>2]=e;if(!f){f=mh(w,80,0)|0;if(f){u=f+0|0;v=u+80|0;do{a[(u&n)>>0]=0;u=u+1|0}while((u|0)<(v|0))}}c[(s&p)+32>>2]=f;c[(s&p)+36>>2]=g;c[(s&p)+40>>2]=h;c[(s&p)+44>>2]=k;c[(s&p)+48>>2]=l;b[(s&o)+6>>1]=m;a[(s&n)+4>>0]=119;c[(s&p)+60>>2]=q;c[(s&p)+64>>2]=r;c[(s&p)+16>>2]=-1;c[(s&p)+20>>2]=-1;if(a[(w&n)+65>>0]|0){Mk(w,s,(s|0)!=(x|0)&1);s=0}i=y;return s|0}function lr(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0;g=c[(b&p)>>2]|0;if(!d){d=mh(g,8,0)|0;if(d){b=d;f=b;a[(f&n)>>0]=0;a[(f&n)+1>>0]=0;a[(f&n)+2>>0]=0;a[(f&n)+3>>0]=0;b=b+4|0;a[(b&n)>>0]=0;a[(b&n)+1>>0]=0;a[(b&n)+2>>0]=0;a[(b&n)+3>>0]=0;b=mh(g,20,0)|0;c[(d&p)+4>>2]=b;if(!b)f=8;else f=7}else{d=0;f=8}}else{b=c[(d&p)>>2]|0;if(!(b+-1&b)){f=d+4|0;b=ro(g,c[(f&p)>>2]|0,b*40|0,0)|0;if(!b)f=8;else{c[(f&p)>>2]=b;f=7}}else f=7}if((f|0)==7){b=c[(d&p)>>2]|0;c[(d&p)>>2]=b+1;b=(c[(d&p)+4>>2]|0)+(b*20|0)|0;c[(b&p)>>2]=0;c[(b&p)+4>>2]=0;c[(b&p)+8>>2]=0;c[(b&p)+12>>2]=0;c[(b&p)+16>>2]=0;c[(b&p)>>2]=e}else if((f|0)==8){Gk(g,e);Nk(g,d);d=0}return d|0}function mr(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0;do if(d){j=(c[(d&p)>>2]|0)+-1|0;g=c[(d&p)+4>>2]|0;h=c[(e&p)>>2]|0;d=c[(e&p)+4>>2]|0;if((h|0)!=0?(e=c[(b&p)>>2]|0,i=jw(d|0,0,1,0)|0,i=mh(e,i,G)|0,(i|0)!=0):0){kw(i|0,h|0,d|0)|0;a[(i+d&n)>>0]=0;c[(g+(j*20|0)&p)+4>>2]=i;if(!f)break;lo(i);break}c[(g+(j*20|0)&p)+4>>2]=0}while(0);return}function nr(d,e,f,g){d=d|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,q=0,r=0,s=0,t=0;t=i;i=i+16|0;if((i|0)>=(j|0))fa();m=t;c[(m&p)>>2]=0;k=(f|0)!=0;do if(k){if(((e|0)==132?(h=c[(f&p)>>2]|0,(h|0)!=0):0)?(Dn(h,m)|0)!=0:0){r=0;break}r=(c[(f&p)+4>>2]|0)+1|0}else r=0;while(0);l=r+48|0;q=mh(d,l,0)|0;if(q){fw(q|0,0,l|0)|0;a[(q&n)>>0]=e;b[(q&o)+34>>1]=-1;do if(k){if(!r){g=q+4|0;c[(g&p)>>2]=c[(g&p)>>2]|1024;c[(q&p)+8>>2]=c[(m&p)>>2];break}h=q+48|0;l=q+8|0;c[(l&p)>>2]=h;k=f+4|0;d=c[(k&p)>>2]|0;if(!d)h=48;else{kw(h|0,c[(f&p)>>2]|0,d|0)|0;h=(c[(k&p)>>2]|0)+48|0}a[(q+h&n)>>0]=0;if(((g|0)!=0&(r|0)>2?(g=a[(c[(f&p)>>2]&n)>>0]|0,s=g<<24>>24==34,g<<24>>24==34|g<<24>>24==39|g<<24>>24==91|g<<24>>24==96):0)?(lo(c[(l&p)>>2]|0),s):0){g=q+4|0;c[(g&p)>>2]=c[(g&p)>>2]|64}}while(0);c[(q&p)+24>>2]=1}i=t;return q|0}function or(b,d,e){b=b|0;d=d|0;e=e|0;var f=0;do if((d|0)!=0?(f=c[(d&p)>>2]|0,(f|0)>0):0){f=f+-1|0;if((c[(e&p)+4>>2]|0)==1?(c[(e&p)>>2]|0)==0:0){f=d+(f*72|0)+45|0;a[(f&n)>>0]=a[(f&n)>>0]|1;break}c[(d+(f*72|0)&p)+72>>2]=Wq(c[(b&p)>>2]|0,e)|0}while(0);return}function pr(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0;if(!d){d=mh(b,80,0)|0;if(!d)d=0;else{h=d+0|0;g=h+80|0;do{a[(h&n)>>0]=0;h=h+1|0}while((h|0)<(g|0));c[(d&p)+4>>2]=1;h=4}}else h=4;do if((h|0)==4){d=Fs(b,d,1,c[(d&p)>>2]|0)|0;if(a[(b&n)+65>>0]|0){Do(b,d);d=0;break}h=(c[(d&p)>>2]|0)+-1|0;if(!f)g=0;else g=(c[(f&p)>>2]|0)==0?0:f;f=(g|0)==0;c[(d+(h*72|0)&p)+16>>2]=Wq(b,f?e:g)|0;c[(d+(h*72|0)&p)+12>>2]=Wq(b,f?0:e)|0}while(0);return d|0}function qr(a,b,e,f){a=a|0;b=b|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,o=0,q=0,r=0,s=0;s=i;i=i+32|0;if((i|0)>=(j|0))fa();q=s;m=s+16|0;c[(m&p)>>2]=b;c[(m&p)+4>>2]=e;c[(m&p)+8>>2]=f;l=b;o=1;g=0;a:while(1){if(!l)break;k=c[(l&p)+4>>2]|0;h=0;while(1){if((k|0)==(d[((h*3|0)&n)+34625>>0]|0|0)?(Fc(c[(l&p)>>2]|0,34584+(d[((h*3|0)&n)+34624>>0]|0)|0,k)|0)==0:0)break;h=h+1|0;if((h|0)>=7){r=10;break a}}g=d[((h*3|0)&n)+34626>>0]|0|g;if((h|0)>6){r=10;break}if((o|0)>=3)break;l=c[(m+(o<<2)&p)>>2]|0;o=o+1|0}if((r|0)==10)g=g|64;if((g&33|0)!=33&(g&64|0)==0){if(!((g&32|0)==0|(g&24|0)==8)){th(a,34696,q);g=1}}else{c[(q&p)>>2]=b;c[(q&p)+4>>2]=e;c[(q&p)+8>>2]=(f|0)==0?20377|0:20376;c[(q&p)+12>>2]=f;th(a,34648,q);g=1}i=s;return g|0}function rr(e,f,g){e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=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;T=i;i=i+48|0;if((i|0)>=(j|0))fa();Q=T+36|0;R=T+32|0;r=T;c[(Q&p)>>2]=0;c[(R&p)>>2]=0;S=c[(e&p)>>2]|0;if(((((c[(e&p)+64>>2]|0)==0?(a[(S&n)+65>>0]|0)==0:0)?(H=Jr(e,f)|0,(H|0)!=0):0)?(G=jt(e,H,109,0,0)|0,P=(c[(H&p)+12>>2]|0)!=0,(hr(e,H)|0)==0):0)?(t=(G|0)!=0,(kt(e,H,t&1)|0)==0):0){l=c[(H&p)+68>>2]|0;a:do if(l){k=c[(S&p)+20>>2]|0;if((k|0)>0){h=c[(S&p)+16>>2]|0;q=0;while(1){m=q+1|0;if((c[(h+(q<<4)&p)+12>>2]|0)==(l|0)){m=q;break a}if((m|0)<(k|0))q=m;else break}}else m=0}else m=-1e6;while(0);h=Sq(e,9,c[(H&p)>>2]|0,0,c[((c[(S&p)+16>>2]|0)+(m<<4)&p)>>2]|0)|0;if((h|0)!=1){s=e+68|0;C=c[(s&p)>>2]|0;u=C+1|0;c[(s&p)>>2]=u;c[(f&p)+48>>2]=C;I=H+8|0;l=c[(I&p)>>2]|0;if(!l)q=0;else{k=u;q=0;do{k=k+1|0;c[(s&p)>>2]=k;q=q+1|0;l=c[(l&p)+20>>2]|0}while((l|0)!=0)}if(P){N=e+492|0;O=c[(N&p)>>2]|0;c[(N&p)>>2]=c[(H&p)>>2];N=e}else{N=0;O=0}L=Oq(e)|0;b:do if(L){M=e+18|0;if(!(a[(M&n)>>0]|0)){E=L+88|0;b[(E&o)>>1]=b[(E&o)>>1]|4}D=e+408|0;E=c[(D&p)>>2]|0;E=(E|0)==0?e:E;Ar(e,m);B=E+328|0;c[(B&p)>>2]=c[(B&p)>>2]|1<>0]=d[(E&n)>>0]|1;if(P){lt(e,H,g,C);c[(R&p)>>2]=C;c[(Q&p)>>2]=C};c[(r&p)>>2]=0;c[(r&p)+4>>2]=0;c[(r&p)+8>>2]=0;c[(r&p)+12>>2]=0;c[(r&p)+16>>2]=0;c[(r&p)+20>>2]=0;c[(r&p)+24>>2]=0;c[(r&p)+28>>2]=0;c[(r&p)>>2]=e;c[(r&p)+4>>2]=f;if(!(ls(r,g)|0)){J=S+24|0;if(!(c[(J&p)>>2]&128))K=-1;else{E=e+72|0;K=(c[(E&p)>>2]|0)+1|0;c[(E&p)>>2]=K;wh(L,25,0,K,0)|0}E=H+44|0;do if((!((g|0)!=0|(h|0)!=0|t)?(a[(E&n)>>0]&16)==0:0)?(mt(e,H,0,0)|0)==0:0){l=H+32|0;gs(e,m,c[(l&p)>>2]|0,1,c[(H&p)>>2]|0);if(!(a[(E&n)>>0]&32)){H=c[(H&p)>>2]|0;xh(L,wh(L,118,c[(l&p)>>2]|0,m,K)|0,H,-2)}h=c[(I&p)>>2]|0;if(!h){h=0;break}do{wh(L,118,c[(h&p)+40>>2]|0,m,0)|0;h=c[(h&p)+20>>2]|0}while((h|0)!=0);h=0}else F=31;while(0);do if((F|0)==31){if(!(a[(E&n)>>0]&32)){v=e+72|0;z=(c[(v&p)>>2]|0)+1|0;c[(v&p)>>2]=z;wh(L,28,0,z,0)|0;v=0;A=0;h=0;x=1;m=0}else{m=c[(I&p)>>2]|0;c:do if(!m)m=0;else while(1){if((a[(m&n)+51>>0]&3)==2)break c;m=c[(m&p)+20>>2]|0;if(!m){m=0;break}}while(0);x=b[(m&o)+46>>1]|0;A=e+72|0;h=c[(A&p)>>2]|0;v=x<<16>>16;c[(A&p)>>2]=h+v;A=c[(s&p)>>2]|0;c[(s&p)>>2]=A+1;v=wh(L,57,A,v,0)|0;z=c[(e&p)+8>>2]|0;xh(z,-1,hs(e,m)|0,-6);h=h+1|0;z=0}w=Vs(e,f,g,0,0,12,u)|0;if(!w){h=0;break b}u=w+60|0;t=c[(u&p)>>2]|0;u=c[(u&p)+4>>2]|0;y=a[(w&n)+38>>0]|0;if(c[(J&p)>>2]&128)wh(L,37,K,1,0)|0;B=(m|0)!=0;do if(B){if(x<<16>>16<=0){k=h;break}r=m+4|0;l=x<<16>>16;s=0;do{nt(L,H,C,b[((c[(r&p)>>2]|0)+(s<<1)&o)>>1]|0,s+h|0);s=s+1|0}while((s|0)!=(l|0));k=h}else{l=e+72|0;k=ct(e,H,-1,C,(c[(l&p)>>2]|0)+1|0,0)|0;if((k|0)<=(c[(l&p)>>2]|0))break;c[(l&p)>>2]=k}while(0);r=y<<24>>24!=0;do if(!r)if(B){l=e+72|0;k=(c[(l&p)>>2]|0)+1|0;c[(l&p)>>2]=k;l=x<<16>>16;s=ot(L,m)|0;xh(L,wh(L,49,h,l,k)|0,s,l);wh(L,110,A,k,0)|0;h=0;l=0;s=0;F=59;break}else{wh(L,128,z,k,0)|0;Xs(w);h=0;u=0;m=1;break}else{h=q+2|0;h=mh(S,h,((h|0)<0)<<31>>31)|0;if(!h){Xs(w);h=0;break b}F=q+1|0;fw(h|0,1,F|0)|0;a[(h+F&n)>>0]=0;if((t|0)>-1)a[(h+(t-C)&n)>>0]=0;if((u|0)>-1)a[(h+(u-C)&n)>>0]=0;if(v)zh(L,v);l=wh(L,16,0,0,0)|0;s=x;F=59}while(0);do if((F|0)==59){Xs(w);if(!r){u=0;m=s;break}m=xs(L)|0;wh(L,16,0,m,0)|0;q=c[(L&p)+32>>2]|0;if(q>>>0>l>>>0)c[((c[(L&p)+4>>2]|0)+(l*20|0)&p)+8>>2]=q;c[((c[(L&p)+24>>2]|0)&p)+88>>2]=q+-1;u=m;m=s}while(0);if(!P)pt(e,H,55,C,h,Q,R)|0;do if(!r)if(B){l=wh(L,108,A,0,0)|0;wh(L,101,A,k,0)|0;break}else{l=wh(L,129,z,0,k)|0;break}else{q=c[(Q&p)>>2]|0;if(!(a[(h+(q-C)&n)>>0]|0)){l=0;break}xh(L,wh(L,68,q,u,k)|0,m<<16>>16,-14);l=0}while(0);if(!(a[(E&n)>>0]&16))rt(e,H,G,c[(Q&p)>>2]|0,c[(R&p)>>2]|0,k,m,(a[(M&n)>>0]|0)==0&1,10,y);else{q=c[(H&p)+60>>2]|0;d:do if(!q)q=0;else while(1){if((c[(q&p)>>2]|0)==(S|0))break d;q=c[(q&p)+24>>2]|0;if(!q){q=0;break}}while(0);qt(e,H);xh(L,wh(L,15,0,1,k)|0,q,-10);q=c[(L&p)+4>>2]|0;if(q)a[(q+(((c[(L&p)+32>>2]|0)+-1|0)*20|0)&n)+3>>0]=2;H=c[(D&p)>>2]|0;a[(((H|0)==0?e:H)&n)+21>>0]=1}do if(!r)if(B){wh(L,9,A,l+1|0,0)|0;q=c[(L&p)+32>>2]|0;if(q>>>0>l>>>0)c[((c[(L&p)+4>>2]|0)+(l*20|0)&p)+8>>2]=q;c[((c[(L&p)+24>>2]|0)&p)+88>>2]=q+-1;break}else{wh(L,16,0,l,0)|0;q=c[(L&p)+32>>2]|0;if(q>>>0>l>>>0)c[((c[(L&p)+4>>2]|0)+(l*20|0)&p)+8>>2]=q;c[((c[(L&p)+24>>2]|0)&p)+88>>2]=q+-1;break}else{m=c[(L&p)+24>>2]|0;l=~u;do if((u|0)<0){q=c[(m&p)+112>>2]|0;if(!q)break;c[(q+(l<<2)&p)>>2]=c[(L&p)+32>>2]}while(0);c[(m&p)+88>>2]=(c[(L&p)+32>>2]|0)+-1}while(0);if(P)break;if(a[(E&n)>>0]&16)break;if(!B)wh(L,61,c[(Q&p)>>2]|0,0,0)|0;k=c[(I&p)>>2]|0;if(!k)break;else l=0;while(1){wh(L,61,(c[(R&p)>>2]|0)+l|0,0,0)|0;k=c[(k&p)+20>>2]|0;if(!k)break;else l=l+1|0}}while(0);if((a[(M&n)>>0]|0)==0?(c[(e&p)+412>>2]|0)==0:0)st(e);if((c[(J&p)>>2]&128|0)!=0?(a[(M&n)>>0]|0)==0:0){if(c[(e&p)+412>>2]|0)break;wh(L,35,K,1,0)|0;iq(L,1);if(a[((c[(L&p)>>2]|0)&n)+65>>0]|0)break;Xg(c[(L&p)+16>>2]|0,34568,-1,1,0)|0}}else h=0}else h=0;while(0);if(N)c[(N&p)+492>>2]=O}else h=0}else h=0;Do(S,f);Gk(S,g);mg(S,h);i=T;return}function sr(e,f,g,h,k){e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;var l=0,m=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,ga=0,ha=0,ia=0,ja=0,ka=0,la=0,ma=0;ma=i;i=i+64|0;if((i|0)>=(j|0))fa();T=ma;Y=ma+32|0;ea=ma+24|0;ha=ma+20|0;la=c[(e&p)>>2]|0;a:do if(((c[(e&p)+64>>2]|0)==0?(a[(la&n)+65>>0]|0)==0:0)?(ka=Jr(e,f)|0,(ka|0)!=0):0){m=c[(e&p)>>2]|0;r=c[(ka&p)+68>>2]|0;b:do if(r){s=c[(m&p)+20>>2]|0;if((s|0)>0){m=c[(m&p)+16>>2]|0;q=0;while(1){l=q+1|0;if((c[(m+(q<<4)&p)+12>>2]|0)==(r|0))break b;if((l|0)<(s|0))q=l;else{q=l;break}}}else q=0}else q=-1e6;while(0);ga=jt(e,ka,110,g,ea)|0;ca=(c[(ka&p)+12>>2]|0)!=0;if((hr(e,ka)|0)==0?(kt(e,ka,c[(ea&p)>>2]|0)|0)==0:0){_=e+68|0;$=c[(_&p)>>2]|0;ia=$+1|0;c[(_&p)>>2]=ia;r=f+48|0;c[(r&p)>>2]=$;K=ka+44|0;u=c[(ka&p)+8>>2]|0;c:do if(!(a[(K&n)>>0]&32)){s=0;ba=16}else{if(!u){w=ka+8|0;s=0;t=$;v=0;break}else s=u;while(1){if((a[(s&n)+51>>0]&3)==2){ba=16;break c}s=c[(s&p)+20>>2]|0;if(!s){s=0;ba=16;break}}}while(0);if((ba|0)==16){w=ka+8|0;if(!u){t=$;v=0}else{l=(s|0)!=0;m=ia;t=$;v=0;do{if((a[(u&n)+51>>0]&3)==2&l){c[(r&p)>>2]=m;t=m}m=m+1|0;c[(_&p)>>2]=m;v=v+1|0;u=c[(u&p)+20>>2]|0}while((u|0)!=0)}}ja=ka+38|0;l=mh(la,v+2+((b[(ja&o)>>1]|0)+v<<2)|0,0)|0;if(l){I=b[(ja&o)>>1]|0;aa=l+(I<<2)|0;da=l+(I+v<<2)|0;Z=v+1|0;fw(da|0,1,Z|0)|0;a[(da+Z&n)>>0]=0;v=b[(ja&o)>>1]|0;if(v<<16>>16>0)fw(l|0,-1,(v<<16>>16>1?v<<16>>16<<2:4)|0)|0;c[(Y&p)>>2]=0;c[(Y&p)+4>>2]=0;c[(Y&p)+8>>2]=0;c[(Y&p)+12>>2]=0;c[(Y&p)+16>>2]=0;c[(Y&p)+20>>2]=0;c[(Y&p)+24>>2]=0;c[(Y&p)+28>>2]=0;c[(Y&p)>>2]=e;c[(Y&p)+4>>2]=f;d:do if((c[(g&p)>>2]|0)>0){E=g+4|0;D=ka+4|0;C=la+16|0;F=(s|0)==0;G=ka+36|0;y=0;x=0;H=0;m=0;while(1){if(ls(Y,c[((c[(E&p)>>2]|0)+(H*20|0)&p)>>2]|0)|0)break a;A=b[(ja&o)>>1]|0;e:do if(A<<16>>16>0){v=c[(D&p)>>2]|0;B=c[(E&p)>>2]|0;r=c[(B+(H*20|0)&p)+4>>2]|0;u=0;while(1){z=u+1|0;if(!(dd(c[(v+(u*24|0)&p)>>2]|0,r)|0))break;if((z|0)<(A<<16>>16|0))u=z;else{u=z;r=m;break e}}if((u|0)!=(b[(G&o)>>1]|0)){if(!F)y=(a[(v+(u*24|0)&n)+23>>0]&1)==0?y:1}else{x=1;m=c[(B+(H*20|0)&p)>>2]|0}c[(l+(u<<2)&p)>>2]=H;r=m}else{u=0;r=m}while(0);if((u|0)<(A<<16>>16|0)){m=c[(ka&p)>>2]|0;if((u|0)<0)v=12944;else v=c[((c[(D&p)>>2]|0)+(u*24|0)&p)>>2]|0}else{r=c[(E&p)>>2]|0;m=c[(r+(H*20|0)&p)+4>>2]|0;if(!F)break;if(!($h(m)|0))break;m=c[(ka&p)>>2]|0;v=12944;x=1;u=-1;r=c[(r+(H*20|0)&p)>>2]|0}m=Sq(e,23,m,v,c[((c[(C&p)>>2]|0)+(q<<4)&p)>>2]|0)|0;if((m|0)==2)c[(l+(u<<2)&p)>>2]=-1;else if((m|0)==1)break a;H=H+1|0;if((H|0)>=(c[(g&p)>>2]|0)){R=r;break d}else m=r}c[(T&p)>>2]=m;th(e,34496,T);a[(e&n)+17>>0]=1;break a}else{y=0;x=0;R=0}while(0);X=(y&255)+(x&255)|0;U=X&255;C=f+64|0;c[(C&p)>>2]=0;c[(C&p)+4>>2]=0;X=X&255;C=mt(e,ka,l,X)|0;m=c[(w&p)>>2]|0;if(m){z=(C|X|0)==0;A=e+72|0;B=0;while(1){f:do if(z?!((c[(m&p)+36>>2]|0)!=0|(m|0)==(s|0)):0){r=b[(m&o)+46>>1]|0;if(!(r<<16>>16))ba=56;else{u=c[(m&p)+4>>2]|0;v=0;while(1){if((c[(l+(b[(u+(v<<1)&o)>>1]<<2)&p)>>2]|0)>-1){ba=54;break f}v=v+1|0;if((v|0)>=(r&65535|0)){ba=56;break}}}}else ba=54;while(0);if((ba|0)==54){ba=0;r=(c[(A&p)>>2]|0)+1|0;c[(A&p)>>2]=r;if(!r)ba=56;else u=B+1|0}if((ba|0)==56){ba=0;u=B+1|0;a[(da+u&n)>>0]=0;r=0}c[(l+(B+I<<2)&p)>>2]=r;m=c[(m&p)+20>>2]|0;if(!m)break;else B=u}}V=Oq(e)|0;if(V){W=e+18|0;if(!(a[(W&n)>>0]|0)){S=V+88|0;b[(S&o)>>1]=b[(S&o)>>1]|4}H=e+408|0;S=c[(H&p)>>2]|0;S=(S|0)==0?e:S;Ar(e,q);Q=S+328|0;c[(Q&p)>>2]=c[(Q&p)>>2]|1<>0]=d[(S&n)>>0]|1;if(a[(K&n)>>0]&16){x=c[(e&p)+8>>2]|0;y=c[(e&p)>>2]|0;m=c[(ka&p)+60>>2]|0;g:do if(!m)m=0;else while(1){if((c[(m&p)>>2]|0)==(y|0))break g;m=c[(m&p)+24>>2]|0;if(!m){m=0;break}}while(0);q=lr(e,0,tt(y,27,34536)|0)|0;w=(R|0)!=0;if(w)q=lr(e,q,Mr(y,R,0,0)|0)|0;if((b[(ja&o)>>1]|0)>0){r=g+4|0;t=ka+4|0;u=0;do{s=c[(l+(u<<2)&p)>>2]|0;if((s|0)>-1)s=Mr(y,c[((c[(r&p)>>2]|0)+(s*20|0)&p)>>2]|0,0,0)|0;else s=tt(y,27,c[((c[(t&p)>>2]|0)+(u*24|0)&p)>>2]|0)|0;q=lr(e,q,s)|0;u=u+1|0}while((u|0)<(b[(ja&o)>>1]|0))}t=kr(e,q,f,h,0,0,0,0,0,0)|0;v=c[(_&p)>>2]|0;c[(_&p)>>2]=v+1;f=w&1;wh(x,57,v,(b[(ja&o)>>1]|0)+(w?2:1)|0,0)|0;u=x+4|0;h=c[(u&p)>>2]|0;if(h)a[(h+(((c[(x&p)+32>>2]|0)+-1|0)*20|0)&n)+3>>0]=8;a[(T&n)>>0]=14;c[(T&p)+4>>2]=v;a[(T&n)+1>>0]=0;c[(T&p)+8>>2]=0;c[(T&p)+12>>2]=0;ir(e,t,T)|0;h=e+72|0;s=c[(h&p)>>2]|0;q=s+1|0;da=s+2|0;c[(h&p)>>2]=(b[(ja&o)>>1]|0)+da;h=wh(x,108,v,0,0)|0;wh(x,47,v,0,q)|0;wh(x,47,v,f,da)|0;if((b[(ja&o)>>1]|0)>0){s=s+3|0;r=0;do{da=r;r=r+1|0;wh(x,47,v,r+f|0,s+da|0)|0}while((r|0)<(b[(ja&o)>>1]|0))}qt(e,ka);xh(x,wh(x,15,0,(b[(ja&o)>>1]|0)+2|0,q)|0,m,-10);m=c[(u&p)>>2]|0;if(!m)m=x+32|0;else{da=x+32|0;a[(m+(((c[(da&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=(k|0)==10?2:k&255;m=da}da=c[(H&p)>>2]|0;a[(((da|0)==0?e:da)&n)+21>>0]=1;wh(x,9,v,h+1|0,0)|0;m=c[(m&p)>>2]|0;if(m>>>0>h>>>0)c[((c[(u&p)>>2]|0)+(h*20|0)&p)+8>>2]=m;c[((c[(x&p)+24>>2]|0)&p)+88>>2]=m+-1;wh(x,61,v,0,0)|0;Mk(y,t,1);h=0;f=0;break}H=e+72|0;m=c[(H&p)>>2]|0;G=m+1|0;Q=m+2|0;c[(H&p)>>2]=Q;I=y<<24>>24!=0;J=(ga|0)!=0;P=(C|0)!=0;if(I|J|P){q=(b[(ja&o)>>1]|0)+Q|0;c[(H&p)>>2]=q;L=m+3|0}else{q=Q;L=0}N=(X|0)!=0;if(N|J|P){O=q+1|0;c[(H&p)>>2]=O;q=O}else O=Q;M=q+1|0;c[(H&p)>>2]=(b[(ja&o)>>1]|0)+q;if(ca){S=e+492|0;T=c[(S&p)>>2]|0;c[(S&p)>>2]=c[(ka&p)>>2];lt(e,ka,h,t);S=e}else{S=0;T=0}do if(!(ls(Y,h)|0)){if(!(a[(K&n)>>0]&32)){wh(V,28,0,G,Q)|0;y=Vs(e,f,h,0,0,4,ia)|0;if(!y)break;A=y+60|0;m=c[(A&p)>>2]|0;A=c[(A&p)+4>>2]|0;B=a[(y&n)+38>>0]|0;wh(V,103,t,Q,0)|0;if(!(B<<24>>24))wh(V,128,G,Q,0)|0;Xs(y);D=0;C=0;z=B&255;E=0}else{B=b[(s&o)+46>>1]|0;y=c[(H&p)>>2]|0;u=y+1|0;C=B<<16>>16;y=C+1+y|0;c[(H&p)>>2]=y;D=c[(_&p)>>2]|0;c[(_&p)>>2]=D+1;wh(V,28,0,u,0)|0;q=wh(V,57,D,C,0)|0;v=c[(e&p)+8>>2]|0;xh(v,-1,hs(e,s)|0,-6);v=Vs(e,f,h,0,0,4,ia)|0;if(!v)break;A=v+60|0;m=c[(A&p)>>2]|0;A=c[(A&p)+4>>2]|0;r=a[(v&n)+38>>0]|0;E=r&255;if(B<<16>>16>0){B=s+4|0;z=0;do{nt(V,ka,t,b[((c[(B&p)>>2]|0)+(z<<1)&o)>>1]|0,z+u|0);z=z+1|0}while((z|0)!=(C|0))}if(!(r<<24>>24)){B=ot(V,s)|0;xh(V,wh(V,49,u,C,y)|0,B,C);wh(V,110,D,y,0)|0;B=0}else{zh(V,q);B=C;y=u}Xs(v);C=B;z=E;E=y}K=la+24|0;do if(!(c[(K&p)>>2]&128))v=0;else{if(c[(e&p)+412>>2]|0){v=0;break}v=(c[(H&p)>>2]|0)+1|0;c[(H&p)>>2]=v;wh(V,25,0,v,0)|0}while(0);u=xs(V)|0;if(!ca){h:do if((k|0)==5)fw(da|0,1,Z|0)|0;else{B=c[(w&p)>>2]|0;if(!B)break;while(1){if((a[(B&n)+50>>0]|0)==5)break;B=c[(B&p)+20>>2]|0;if(!B)break h}fw(da|0,1,Z|0)|0}while(0);do if(z){if((m|0)>-1)a[(da+(m-$)&n)>>0]=0;if((A|0)<=-1)break;a[(da+(A-$)&n)>>0]=0}while(0);pt(e,ka,55,$,da,0,0)|0}H=(z|0)!=0;do if(!H)if(!s){G=wh(V,129,G,u,Q)|0;wh(V,70,t,G,Q)|0;F=0;break}else{G=xs(V)|0;wh(V,108,D,u,0)|0;F=wh(V,101,D,E,0)|0;xh(V,wh(V,68,t,G,E)|0,0,-14);break}else{if(!((a[(da+(t-$)&n)>>0]|0)==0|ca))xh(V,wh(V,68,t,u,E)|0,C,-14);wh(V,76,(s|0)!=0?E:Q,u,0)|0;F=0;G=u}while(0);x=x<<24>>24==0;if(!x){Rq(e,R,O);wh(V,38,O,0,0)|0}do if(I|P|J){if(P)y=ut(e,ka)|0;else y=0;B=vt(e,ga,g,0,3,ka,k)|0|y;if((b[(ja&o)>>1]|0)>0){A=(B|0)==-1;z=ka+4|0;y=0;do{do if(A)ba=138;else{if((y|0)<32?(1<>2]|0)+(y*24|0)&n)+23>>0]&1){ba=138;break}wh(V,28,0,y+L|0,0)|0}while(0);if((ba|0)==138){ba=0;nt(V,ka,t,y,y+L|0)}y=y+1|0}while((y|0)<(b[(ja&o)>>1]|0))}if(!(x&(s|0)==0))break;wh(V,33,Q,O,0)|0}while(0);y=vt(e,ga,g,1,1,ka,k)|0;if((b[(ja&o)>>1]|0)>0){x=ka+36|0;m=g+4|0;r=0;do{i:do if((r|0)==(b[(x&o)>>1]|0))wh(V,28,0,r+M|0,0)|0;else{q=c[(l+(r<<2)&p)>>2]|0;if((q|0)>-1){Rq(e,c[((c[(m&p)>>2]|0)+(q*20|0)&p)>>2]|0,r+M|0);break}do if(!((c[(ea&p)>>2]&1|0)==0|(r|0)>31)){if(1<>1]|0))}do if(c[(ea&p)>>2]&1){wt(V,ka,M);xt(e,ga,110,g,1,ka,Q,k,G);if(!s)wh(V,70,t,G,Q)|0;else xh(V,wh(V,68,t,G,E)|0,C,-14);m=b[(ja&o)>>1]|0;if(m<<16>>16<=0)break;x=ka+36|0;y=0;do{do if((c[(l+(y<<2)&p)>>2]|0)<0){if((y|0)==(b[(x&o)>>1]|0))break;nt(V,ka,t,y,y+M|0);m=b[(ja&o)>>1]|0}while(0);y=y+1|0}while((y|0)<(m<<16>>16|0))}while(0);do if(!ca){c[(ha&p)>>2]=0;yt(e,ka,aa,t,ia,O,Q,U,k&255,G,ha);if(P)zt(e,ka,Q,0,l,X);m=(c[(ha&p)>>2]|X|0)==0;do if(!m)if(!s){q=wh(V,70,t,0,Q)|0;break}else{q=wh(V,68,t,0,E)|0;xh(V,q,C,-14);break}else q=0;while(0);At(e,ka,t,ia,aa);if(P|(N|(s|0)!=0))wh(V,95,t,0,0)|0;if(!m){m=c[(V&p)+32>>2]|0;if(m>>>0>q>>>0)c[((c[(V&p)+4>>2]|0)+(q*20|0)&p)+8>>2]=m;c[((c[(V&p)+24>>2]|0)&p)+88>>2]=m+-1}if(P){zt(e,ka,0,O,l,X);Bt(e,ka,t,ia,O,aa,1,0,0);Ct(e,ka,g,Q,l,X);break}else{Bt(e,ka,t,ia,O,aa,1,0,0);break}}while(0);do if(c[(K&p)>>2]&128){if(c[(e&p)+412>>2]|0)break;wh(V,37,v,1,0)|0}while(0);xt(e,ga,110,g,2,ka,Q,k,G);do if(!H){if(!s){wh(V,16,0,G,0)|0;break}r=c[(V&p)+24>>2]|0;q=~G;do if((G|0)<0){s=c[(r&p)+112>>2]|0;if(!s)break;c[(s+(q<<2)&p)>>2]=c[(V&p)+32>>2]}while(0);c[(r&p)+88>>2]=(c[(V&p)+32>>2]|0)+-1;wh(V,9,D,F,0)|0}while(0);r=c[(V&p)+24>>2]|0;q=~u;do if((u|0)<0){s=c[(r&p)+112>>2]|0;if(!s)break;c[(s+(q<<2)&p)>>2]=c[(V&p)+32>>2]}while(0);c[(r&p)+88>>2]=(c[(V&p)+32>>2]|0)+-1;q=c[(w&p)>>2]|0;if(q){r=0;do{s=r;r=r+1|0;if(a[(da+r&n)>>0]|0)wh(V,61,s+ia|0,0,0)|0;q=c[(q&p)+20>>2]|0}while((q|0)!=0)}if((t|0)<(ia|0))wh(V,61,t,0,0)|0;do if(!(a[(W&n)>>0]|0)){if(c[(e&p)+412>>2]|0)break;st(e)}while(0);if(!(c[(K&p)>>2]&128))break;if(c[(e&p)+412>>2]|0)break;if(a[(W&n)>>0]|0)break;wh(V,35,v,1,0)|0;iq(V,1);if(a[((c[(V&p)>>2]|0)&n)+65>>0]|0)break;Xg(c[(V&p)+16>>2]|0,34520,-1,1,0)|0}while(0);if(S)c[(S&p)+492>>2]=T}}}else l=0}else l=0;while(0);mg(la,l);Do(la,f);Nk(la,g);Gk(la,h);i=ma;return}function tr(e,f,g,h,k){e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;var l=0,m=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,ga=0,ha=0,ia=0,ja=0,ka=0,la=0,ma=0,na=0,oa=0;oa=i;i=i+96|0;if((i|0)>=(j|0))fa();ca=oa;ja=oa+92|0;la=oa+88|0;L=oa+68|0;Y=oa+64|0;O=oa+32|0;ba=oa+28|0;c[(ja&p)>>2]=0;c[(la&p)>>2]=0;na=c[(e&p)>>2]|0;c[(L&p)>>2]=0;c[(L&p)+4>>2]=0;c[(L&p)+8>>2]=0;c[(L&p)+12>>2]=0;c[(L&p)+16>>2]=0;a:do if((c[(e&p)+64>>2]|0)==0?(N=na+65|0,(a[(N&n)>>0]|0)==0):0){if(g)if((b[(g&o)+6>>1]&128)!=0?(c[(g&p)+52>>2]|0)==0:0){l=c[(g&p)>>2]|0;c[(g&p)>>2]=0;Mk(na,g,1);g=0}else l=0;else{g=0;l=0}if((c[(f&p)+16>>2]|0)!=0?(ka=Jr(e,f)|0,(ka|0)!=0):0){u=c[(ka&p)+68>>2]|0;b:do if(u){t=c[(na&p)+20>>2]|0;if((t|0)>0){s=c[(na&p)+16>>2]|0;q=0;while(1){r=q+1|0;if((c[(s+(q<<4)&p)+12>>2]|0)==(u|0)){r=q;break b}if((r|0)<(t|0))q=r;else break}}else r=0}else r=-1e6;while(0);if((((Sq(e,18,c[(ka&p)>>2]|0,0,c[((c[(na&p)+16>>2]|0)+(r<<4)&p)>>2]|0)|0)==0?(ga=ka+44|0,Z=(d[(ga&n)>>0]|0)>>>5&1,ea=jt(e,ka,108,0,Y)|0,ha=(c[(ka&p)+12>>2]|0)!=0,(hr(e,ka)|0)==0):0)?(kt(e,ka,c[(Y&p)>>2]|0)|0)==0:0)?(ma=Oq(e)|0,(ma|0)!=0):0){ia=e+18|0;if(!(a[(ia&n)>>0]|0)){da=ma+88|0;b[(da&o)>>1]=b[(da&o)>>1]|4}da=(g|0)!=0;aa=e+408|0;$=c[(aa&p)>>2]|0;$=($|0)==0?e:$;Ar(e,r);X=$+328|0;c[(X&p)>>2]=c[(X&p)>>2]|1<>0]=d[($&n)>>0]|(da|(ea|0)!=0)&1;$=(h|0)==0;c:do if((((!((g|0)==0|$^1)?(c[(e&p)+532>>2]|0)==0:0)?(c[(g&p)+68>>2]|0)==0:0)?(As(e,ka)|0)==0:0)?(a[(ga&n)>>0]&16)==0:0){if((k|0)==10){if((b[(ka&o)+36>>1]|0)>-1)u=d[(ka&n)+45>>0]|0;else u=10;y=(u|0)==10?2:u}else y=k;t=c[(g&p)+32>>2]|0;if((c[(t&p)>>2]|0)==1){if(c[(t&p)+28>>2]|0){_=117;break}if(c[(g&p)+36>>2]|0){_=117;break}if(c[(g&p)+48>>2]|0){_=117;break}if(c[(g&p)+40>>2]|0){_=117;break}if(c[(g&p)+60>>2]|0){_=117;break}if(c[(g&p)+52>>2]|0){_=117;break}if(b[(g&o)+6>>1]&1){_=117;break}u=c[(g&p)>>2]|0;if((c[(u&p)>>2]|0)!=1){_=117;break}if((a[(c[(c[(u&p)+4>>2]&p)>>2]&n)>>0]|0)!=116){_=117;break}x=Ur(e,0,t+8|0)|0;if((x|0)==0|(x|0)==(ka|0)){_=117;break}B=x+44|0;X=d[(B&n)>>0]|0;if(!((X&16|0)==0?(((d[(ga&n)>>0]|0)>>>5&1^1)&255|0)==(X>>>5&1^1|0):0)){_=117;break}if(c[(x&p)+12>>2]|0){_=117;break}v=b[(ka&o)+38>>1]|0;if(v<<16>>16!=(b[(x&o)+38>>1]|0)){_=117;break}A=ka+36|0;if((b[(A&o)>>1]|0)!=(b[(x&o)+36>>1]|0)){_=117;break}if(v<<16>>16>0){q=c[(ka&p)+4>>2]|0;m=c[(x&p)+4>>2]|0;w=0;do{if((a[(q+(w*24|0)&n)+21>>0]|0)!=(a[(m+(w*24|0)&n)+21>>0]|0)){_=117;break c}u=c[(q+(w*24|0)&p)+16>>2]|0;t=c[(m+(w*24|0)&p)+16>>2]|0;s=(t|0)==0;if(!u){if(!s){_=117;break c}}else{if(s){_=117;break c}if(dd(u,t)|0){_=117;break c}}if((a[(q+(w*24|0)&n)+20>>0]|0)!=0?(a[(m+(w*24|0)&n)+20>>0]|0)==0:0){_=117;break c}do if((w|0)>0){u=c[(q+(w*24|0)&p)+8>>2]|0;t=(u|0)==0;s=c[(m+(w*24|0)&p)+8>>2]|0;if(t^(s|0)==0){_=117;break c}if(t)break;if(_v(u,s)|0){_=117;break c}}while(0);w=w+1|0}while((w|0)<(v<<16>>16|0))}E=ka+8|0;u=c[(E&p)>>2]|0;if(!u)t=0;else{v=c[(x&p)+8>>2]|0;if(!v){_=117;break}else t=0;do{t=(a[(u&n)+50>>0]|0)==0?t:1;s=v;while(1){if(Dt(u,s)|0)break;s=c[(s&p)+20>>2]|0;if(!s){_=117;break c}}if(!s){_=117;break c}u=c[(u&p)+20>>2]|0}while((u|0)!=0)}u=c[(ka&p)+24>>2]|0;if((u|0)!=0?(Ts(c[(x&p)+24>>2]|0,u,-1)|0)!=0:0){_=117;break}s=c[(e&p)>>2]|0;u=c[(s&p)+24>>2]|0;if(!(u&524288)){if(u&128){_=117;break}}else if(!((c[(ka&p)+16>>2]|0)==0&(u&128|0)==0)){_=117;break}m=c[(x&p)+68>>2]|0;d:do if(!m)s=-1e6;else{v=c[(s&p)+20>>2]|0;if((v|0)<=0){s=0;break}u=c[(s&p)+16>>2]|0;q=0;while(1){s=q+1|0;if((c[(u+(q<<4)&p)+12>>2]|0)==(m|0)){s=q;break d}if((s|0)<(v|0))q=s;else break}}while(0);D=Oq(e)|0;Ar(e,s);z=e+68|0;F=c[(z&p)>>2]|0;C=F+1|0;c[(z&p)>>2]=F+2;z=Et(e,r,ka)|0;v=e+19|0;q=a[(v&n)>>0]|0;do if(!(q<<24>>24)){_=e+72|0;u=(c[(_&p)>>2]|0)+1|0;c[(_&p)>>2]=u;_=78}else{X=q+-1<<24>>24;a[(v&n)>>0]=X;u=c[(e+((X&255)<<2)&p)+24>>2]|0;if(!(X<<24>>24)){_=78;break}G=q+-2<<24>>24;a[(v&n)>>0]=G;H=u;G=c[(e+((G&255)<<2)&p)+24>>2]|0}while(0);if((_|0)==78){H=e+72|0;G=(c[(H&p)>>2]|0)+1|0;c[(H&p)>>2]=G;H=u}Qq(e,C,r,ka,55);if((b[(A&o)>>1]|0)<0)if((c[(E&p)>>2]|0)!=0|(t|0)!=0|(y+-1|0)>>>0>1)_=83;else I=0;else if((t|0)!=0|(y+-1|0)>>>0>1)_=83;else I=0;if((_|0)==83){w=wh(D,108,C,0,0)|0;v=wh(D,16,0,0,0)|0;u=c[(D&p)+32>>2]|0;if(u>>>0>w>>>0)c[((c[(D&p)+4>>2]|0)+(w*20|0)&p)+8>>2]=u;c[((c[(D&p)+24>>2]|0)&p)+88>>2]=u+-1;I=v}if(!(a[(B&n)>>0]&32)){Qq(e,F,s,x,54);t=wh(D,108,F,0,0)|0;do if((b[(A&o)>>1]|0)<=-1)if(!(c[(E&p)>>2]|0)){u=wh(D,74,C,G,0)|0;break}else{u=wh(D,103,F,G,0)|0;break}else{u=wh(D,103,F,G,0)|0;w=wh(D,70,C,0,G)|0;Ft(e,y,ka);v=c[(D&p)+32>>2]|0;if(v>>>0>w>>>0)c[((c[(D&p)+4>>2]|0)+(w*20|0)&p)+8>>2]=v;c[((c[(D&p)+24>>2]|0)&p)+88>>2]=v+-1;if((z|0)<=0)break;wh(c[(e&p)+8>>2]|0,136,z,G,0)|0}while(0);wh(D,102,F,H,0)|0;wh(D,75,C,H,G)|0;v=c[(D&p)+4>>2]|0;if(v)a[(v+(((c[(D&p)+32>>2]|0)+-1|0)*20|0)&n)+3>>0]=11;xh(D,-1,c[(ka&p)>>2]|0,0);wh(D,9,F,u,0)|0;wh(D,61,F,0,0)|0;wh(D,61,C,0,0)|0}else{gs(e,r,c[(ka&p)+32>>2]|0,1,c[(ka&p)>>2]|0);gs(e,s,c[(x&p)+32>>2]|0,0,c[(x&p)>>2]|0);t=0}w=c[(E&p)>>2]|0;if(w){q=x+8|0;m=e+8|0;x=D+4|0;y=D+32|0;z=D+24|0;u=w;do{w=q;while(1){w=c[(w&p)>>2]|0;if(Dt(u,w)|0)break;w=w+20|0}wh(D,54,F,c[(w&p)+40>>2]|0,s)|0;X=c[(m&p)>>2]|0;xh(X,-1,hs(e,w)|0,-6);wh(D,55,C,c[(u&p)+40>>2]|0,r)|0;w=c[(m&p)>>2]|0;xh(w,-1,hs(e,u)|0,-6);w=c[(x&p)>>2]|0;if(w)a[(w+(((c[(y&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=1;w=wh(D,108,F,0,0)|0;wh(D,101,F,H,0)|0;wh(D,110,C,H,1)|0;wh(D,9,F,w+1|0,0)|0;v=c[(y&p)>>2]|0;if(v>>>0>w>>>0)c[((c[(x&p)>>2]|0)+(w*20|0)&p)+8>>2]=v;c[((c[(z&p)>>2]|0)&p)+88>>2]=v+-1;wh(D,61,F,0,0)|0;wh(D,61,C,0,0)|0;u=c[(u&p)+20>>2]|0}while((u|0)!=0)}if(t){u=c[(D&p)+32>>2]|0;if(u>>>0>t>>>0)c[((c[(D&p)+4>>2]|0)+(t*20|0)&p)+8>>2]=u;c[((c[(D&p)+24>>2]|0)&p)+88>>2]=u+-1}_r(e,G);_r(e,H);if(!I){m=0;q=0;break}wh(D,24,0,0,0)|0;u=c[(D&p)+32>>2]|0;if(u>>>0>I>>>0)c[((c[(D&p)+4>>2]|0)+(I*20|0)&p)+8>>2]=u;c[((c[(D&p)+24>>2]|0)&p)+88>>2]=u+-1;wh(D,61,C,0,0)|0;_=117}else _=117}else _=117;while(0);do if((_|0)==117){S=Et(e,r,ka)|0;R=e+72|0;t=c[(R&p)>>2]|0;W=t+1|0;X=ka+38|0;I=b[(X&o)>>1]|0;H=I<<16>>16;u=W+H|0;c[(R&p)>>2]=u;if(!(a[(ga&n)>>0]&16))V=W;else{u=u+1|0;c[(R&p)>>2]=u;V=t+2|0}T=V+1|0;U=(h|0)!=0;e:do if(U?(P=c[(h&p)+4>>2]|0,Q=(P|0)>0,Q):0){v=c[(h&p)>>2]|0;t=0;do{c[(v+(t<<3)&p)+4>>2]=-1;t=t+1|0}while((t|0)<(P|0));if(Q){D=Z<<24>>24!=0;C=ka+4|0;B=ka+36|0;t=1;A=0;v=-1;while(1){f:do if(I<<16>>16>0){z=c[(h&p)>>2]|0;s=c[(z+(A<<3)&p)>>2]|0;q=c[(C&p)>>2]|0;m=0;while(1){w=m+1|0;if(!(dd(s,c[(q+(m*24|0)&p)>>2]|0)|0)){w=m;break}if((w|0)<(H|0))m=w;else break f}c[(z+(A<<3)&p)+4>>2]=w;t=(A|0)==(w|0)?t:0;v=(w|0)==(b[(B&o)>>1]|0)?A:v}else w=0;while(0);if((w|0)>=(H|0)){m=c[((c[(h&p)>>2]|0)+(A<<3)&p)>>2]|0;if(($h(m)|0)==0|D)break;else{t=0;w=A}}else w=v;A=A+1|0;if((A|0)>=(P|0)){E=w;break e}else v=w}c[(ca&p)>>2]=f;c[(ca&p)+4>>2]=0;c[(ca&p)+8>>2]=m;th(e,33368,ca);a[(e&n)+17>>0]=1;m=0;break a}else{t=1;E=-1}}else{t=1;E=-1}while(0);g:do if(!da){c[(O&p)>>2]=0;c[(O&p)+4>>2]=0;c[(O&p)+8>>2]=0;c[(O&p)+12>>2]=0;c[(O&p)+16>>2]=0;c[(O&p)+20>>2]=0;c[(O&p)+24>>2]=0;c[(O&p)+28>>2]=0;c[(O&p)>>2]=e;if(l){s=c[(l&p)>>2]|0;if((s|0)>0){u=l+4|0;t=0;while(1){if(ls(O,c[((c[(u&p)>>2]|0)+(t*20|0)&p)>>2]|0)|0){g=0;m=0;break a}t=t+1|0;if((t|0)>=(s|0)){u=0;t=-1;r=0;_=169;break}}}else{P=E;O=0;Q=-1;z=0}}else{P=E;s=0;O=0;Q=-1;z=0}}else{u=u+1|0;c[(R&p)>>2]=u;G=ma+32|0;v=c[(G&p)>>2]|0;wh(ma,20,u,0,v+1|0)|0;a[(L&n)>>0]=13;H=L+4|0;c[(H&p)>>2]=u;a[(L&n)+1>>0]=0;F=L+8|0;c[(F&p)>>2]=t<<24>>24!=0?T:0;c[(L&p)+12>>2]=b[(X&o)>>1];Q=ir(e,g,L)|0;F=c[(F&p)>>2]|0;if(Q){m=0;break a}if(a[(N&n)>>0]|0){m=0;break a}wh(ma,21,u,0,0)|0;u=c[(G&p)>>2]|0;if(u>>>0>v>>>0)c[((c[(ma&p)+4>>2]|0)+(v*20|0)&p)+8>>2]=u;I=ma+24|0;c[((c[(I&p)>>2]|0)&p)+88>>2]=u+-1;s=c[(c[(g&p)>>2]&p)>>2]|0;h:do if(!ea){w=Oq(e)|0;t=c[(w&p)+32>>2]|0;i:do if(!(a[(ga&n)>>0]&16))v=0;else{u=c[(e&p)>>2]|0;v=c[(ka&p)+60>>2]|0;if(!v){v=0;break}while(1){if((c[(v&p)>>2]|0)==(u|0))break i;v=c[(v&p)+24>>2]|0;if(!v){v=0;break}}}while(0);if((t|0)<=1){u=F;t=0;r=0;_=169;break g}q=(a[((c[(w&p)>>2]|0)&n)+65>>0]|0)==0;z=w+4|0;y=ka+32|0;x=ka+8|0;m=1;while(1){if(q)w=(c[(z&p)>>2]|0)+(m*20|0)|0;else w=29120;u=a[(w&n)>>0]|0;do if(u<<24>>24==54){if((c[(w&p)+12>>2]|0)!=(r|0))break;u=c[(w&p)+8>>2]|0;if((u|0)==(c[(y&p)>>2]|0))break h;w=c[(x&p)>>2]|0;if(!w)break;do{if((u|0)==(c[(w&p)+40>>2]|0))break h;w=c[(w&p)+20>>2]|0}while((w|0)!=0)}else if(u<<24>>24==-107?(c[(w&p)+16>>2]|0)==(v|0):0)break h;while(0);m=m+1|0;if((m|0)>=(t|0)){u=F;t=0;r=0;_=169;break g}}}while(0);v=e+68|0;w=c[(v&p)>>2]|0;c[(v&p)>>2]=w+1;v=e+19|0;t=a[(v&n)>>0]|0;do if(!(t<<24>>24)){u=(c[(R&p)>>2]|0)+1|0;c[(R&p)>>2]=u;_=159}else{Q=t+-1<<24>>24;a[(v&n)>>0]=Q;u=c[(e+((Q&255)<<2)&p)+24>>2]|0;if(!(Q<<24>>24)){_=159;break}Q=t+-2<<24>>24;a[(v&n)>>0]=Q;v=c[(e+((Q&255)<<2)&p)+24>>2]|0}while(0);if((_|0)==159){v=(c[(R&p)>>2]|0)+1|0;c[(R&p)>>2]=v}wh(ma,57,w,s,0)|0;r=wh(ma,22,c[(H&p)>>2]|0,0,0)|0;wh(ma,49,F,s,u)|0;wh(ma,74,w,v,0)|0;wh(ma,75,w,u,v)|0;wh(ma,16,0,r,0)|0;t=c[(G&p)>>2]|0;if(t>>>0>r>>>0)c[((c[(ma&p)+4>>2]|0)+(r*20|0)&p)+8>>2]=t;c[((c[(I&p)>>2]|0)&p)+88>>2]=t+-1;_r(e,u);_r(e,v);u=F;t=w;r=1;_=169}while(0);if((_|0)==169)if($&(s|0)>0){P=b[(ka&o)+36>>1]|0;O=u;Q=t;z=r}else{P=E;O=u;Q=t;z=r}if((a[(ga&n)>>0]&16)!=0?(M=b[(X&o)>>1]|0,M<<16>>16>0):0){v=c[(ka&p)+4>>2]|0;t=M<<16>>16;r=0;u=0;do{u=((d[(v+(r*24|0)&n)+23>>0]|0)>>>1&1)+u|0;r=r+1|0}while((r|0)<(t|0))}else u=0;do if($&(s|0)!=0){u=(b[(X&o)>>1]|0)-u|0;if((s|0)==(u|0))break;c[(ca&p)>>2]=f;c[(ca&p)+4>>2]=0;c[(ca&p)+8>>2]=u;c[(ca&p)+12>>2]=s;th(e,33400,ca);m=0;break a}while(0);do if(U){u=c[(h&p)+4>>2]|0;if((s|0)==(u|0))break;c[(ca&p)>>2]=s;c[(ca&p)+4>>2]=u;th(e,33456,ca);m=0;break a}while(0);K=na+24|0;if(!(c[(K&p)>>2]&128))q=0;else{q=(c[(R&p)>>2]|0)+1|0;c[(R&p)>>2]=q;wh(ma,25,0,q,0)|0}do if(ha)m=0;else{u=pt(e,ka,55,-1,0,ja,la)|0;m=mh(na,(u<<2)+4|0,0)|0;if(!m)break a;if((u|0)>0)t=0;else break;do{N=(c[(R&p)>>2]|0)+1|0;c[(R&p)>>2]=N;c[(m+(t<<2)&p)>>2]=N;t=t+1|0}while((t|0)!=(u|0))}while(0);M=z<<24>>24!=0;do if(M){N=wh(ma,108,Q,0,0)|0;L=c[(ma&p)+32>>2]|0}else{if(!da){L=0;N=0;break}N=wh(ma,22,c[(L&p)+4>>2]|0,0,0)|0;L=N}while(0);J=xs(ma)|0;do if(c[(Y&p)>>2]&1){w=(b[(X&o)>>1]|0)+1|0;H=e+60|0;v=c[(H&p)>>2]|0;G=e+56|0;u=c[(G&p)>>2]|0;if((u|0)<(w|0)){I=c[(R&p)>>2]|0;c[(R&p)>>2]=I+w;I=I+1|0}else{c[(H&p)>>2]=w+v;c[(G&p)>>2]=u-w;I=v}if((P|0)<0)wh(ma,25,-1,I,0)|0;else{if(M)wh(ma,47,Q,P,I)|0;else Rq(e,c[((c[(l&p)+4>>2]|0)+(P*20|0)&p)>>2]|0,I);w=wh(ma,77,I,0,0)|0;wh(ma,25,-1,I,0)|0;v=c[(ma&p)+32>>2]|0;if(v>>>0>w>>>0)c[((c[(ma&p)+4>>2]|0)+(w*20|0)&p)+8>>2]=v;c[((c[(ma&p)+24>>2]|0)&p)+88>>2]=v+-1;wh(ma,38,I,0,0)|0}v=b[(X&o)>>1]|0;if(v<<16>>16>0){D=M|(l|0)!=0;t=h+4|0;u=I+1|0;w=l+4|0;A=e+8|0;B=ka+4|0;C=0;do{j:do if($)z=C;else{y=c[(t&p)>>2]|0;if((y|0)<=0){z=0;break}x=c[(h&p)>>2]|0;r=0;while(1){z=r+1|0;if((c[(x+(r<<3)&p)+4>>2]|0)==(C|0)){z=r;break j}if((z|0)<(y|0))r=z;else break}}while(0);do if(D){if(U?(z|0)>=(c[(t&p)>>2]|0):0){_=213;break}if(M){wh(ma,47,Q,z,u+C|0)|0;break}else{Y=c[((c[(w&p)>>2]|0)+(z*20|0)&p)>>2]|0;r=u+C|0;x=c[(A&p)>>2]|0;Rq(e,Y,r);v=(c[(R&p)>>2]|0)+1|0;c[(R&p)>>2]=v;wh(x,33,r,v,0)|0;a[(Y&n)+38>>0]=a[(Y&n)>>0]|0;a[(Y&n)>>0]=-97;c[(Y&p)+28>>2]=v;Y=Y+4|0;c[(Y&p)>>2]=c[(Y&p)>>2]&-4097;break}}else _=213;while(0);if((_|0)==213){_=0;Rq(e,c[((c[(B&p)>>2]|0)+(C*24|0)&p)+4>>2]|0,u+C|0)}C=C+1|0;v=b[(X&o)>>1]|0}while((C|0)<(v<<16>>16|0))}if(!ha){wt(ma,ka,I+1|0);v=b[(X&o)>>1]|0}xt(e,ea,108,0,1,ka,I+-1-(v<<16>>16)|0,k,J);v=(b[(X&o)>>1]|0)+1|0;dt(e,I,v);if((c[(G&p)>>2]|0)>=(v|0))break;c[(G&p)>>2]=v;c[(H&p)>>2]=I}while(0);do if(!ha){if(a[(ga&n)>>0]&16)wh(ma,28,0,W,0)|0;k:do if((P|0)<=-1)if(!((a[(ga&n)>>0]&16|Z)<<24>>24)){wh(ma,74,c[(ja&p)>>2]|0,V,S)|0;I=1;break}else{wh(ma,28,0,V,0)|0;I=0;break}else{do if(M)wh(ma,47,Q,P,V)|0;else{if(da){wh(ma,33,P+O|0,V,0)|0;break}Rq(e,c[((c[(l&p)+4>>2]|0)+(P*20|0)&p)>>2]|0,V);if(!(a[((c[(ma&p)>>2]|0)&n)+65>>0]|0)){u=(c[(ma&p)+4>>2]|0)+(((c[(ma&p)+32>>2]|0)+-1|0)*20|0)|0;if(!u)break}else u=29120;if((a[(u&n)>>0]|0)!=28)break;if(a[(ga&n)>>0]&16)break;a[(u&n)>>0]=74;c[(u&p)+4>>2]=c[(ja&p)>>2];c[(u&p)+8>>2]=V;c[(u&p)+12>>2]=S;I=1;break k}while(0);if(!(a[(ga&n)>>0]&16)){u=wh(ma,77,V,0,0)|0;wh(ma,74,c[(ja&p)>>2]|0,V,S)|0;t=c[(ma&p)+32>>2]|0;if(t>>>0>u>>>0)c[((c[(ma&p)+4>>2]|0)+(u*20|0)&p)+8>>2]=t;c[((c[(ma&p)+24>>2]|0)&p)+88>>2]=t+-1}else wh(ma,76,V,(c[(ma&p)+32>>2]|0)+2|0,0)|0;wh(ma,38,V,0,0)|0;I=0}while(0);if((S|0)>0)wh(c[(e&p)+8>>2]|0,136,S,V,0)|0;if((b[(X&o)>>1]|0)>0){G=ka+36|0;H=ka+4|0;C=(s|0)==0;B=h+4|0;A=(O|0)==(T|0);s=l+4|0;t=e+23|0;u=ca+20|0;v=ca+4|0;E=ca+24|0;F=0;w=0;do{D=F+T|0;l:do if((F|0)==(b[(G&o)>>1]|0))wh(ma,29,D,0,0)|0;else{m:do if($)if(!(a[((c[(H&p)>>2]|0)+(F*24|0)&n)+23>>0]&2)){z=F-w|0;_=258;break}else{w=w+1|0;break}else{y=c[(B&p)>>2]|0;if((y|0)<=0){z=0;_=258;break}x=c[(h&p)>>2]|0;r=0;while(1){z=r+1|0;if((c[(x+(r<<3)&p)+4>>2]|0)==(F|0)){z=r;_=258;break m}if((z|0)<(y|0))r=z;else{_=258;break}}}while(0);do if((_|0)==258){_=0;if((z|0)<0|C)break;if(U?(z|0)>=(c[(B&p)>>2]|0):0)break;if(M){wh(ma,47,Q,z,D)|0;break l}if(!da){Rq(e,c[((c[(s&p)>>2]|0)+(z*20|0)&p)>>2]|0,D);break l}if(A)break l;wh(ma,34,z+O|0,D,0)|0;break l}while(0);z=c[((c[(H&p)>>2]|0)+(F*24|0)&p)+4>>2]|0;do if(a[(t&n)>>0]|0){c[(ca&p)>>2]=0;c[(ca&p)+4>>2]=0;c[(ca&p)+8>>2]=0;c[(ca&p)+12>>2]=0;c[(ca&p)+16>>2]=0;c[(ca&p)+20>>2]=0;a[(u&n)>>0]=1;c[(ca&p)>>2]=78;c[(v&p)>>2]=79;c[(E&p)>>2]=0;rs(ca,z)|0;if(!(a[(u&n)>>0]|0))break;Gt(e,z,D,0);break l}while(0);Rq(e,z,D)}while(0);F=F+1|0}while((F|0)<(b[(X&o)>>1]|0))}if(!(a[(ga&n)>>0]&16)){yt(e,ka,m,c[(ja&p)>>2]|0,c[(la&p)>>2]|0,W,0,P>>>31&255^1,k&255,J,ba);zt(e,ka,0,W,0,0);Bt(e,ka,c[(ja&p)>>2]|0,c[(la&p)>>2]|0,W,m,0,I,(c[(ba&p)>>2]|0)==0&1);break}u=c[(ka&p)+60>>2]|0;n:do if(!u)u=0;else while(1){if((c[(u&p)>>2]|0)==(na|0))break n;u=c[(u&p)+24>>2]|0;if(!u){u=0;break}}while(0);qt(e,ka);xh(ma,wh(ma,15,1,(b[(X&o)>>1]|0)+2|0,W)|0,u,-10);t=c[(ma&p)+4>>2]|0;if(t)a[(t+(((c[(ma&p)+32>>2]|0)+-1|0)*20|0)&n)+3>>0]=(k|0)==10?2:k&255;ca=c[(aa&p)>>2]|0;a[(((ca|0)==0?e:ca)&n)+21>>0]=1}while(0);if(c[(K&p)>>2]&128)wh(ma,37,q,1,0)|0;if(ea)xt(e,ea,108,0,2,ka,V+-1-(b[(X&o)>>1]|0)|0,k,J);u=ma+24|0;t=c[(u&p)>>2]|0;r=~J;do if((J|0)<0){s=c[(t&p)+112>>2]|0;if(!s)break;c[(s+(r<<2)&p)>>2]=c[(ma&p)+32>>2]}while(0);s=ma+32|0;c[(t&p)+88>>2]=(c[(s&p)>>2]|0)+-1;do if(M){wh(ma,9,Q,L,0)|0;s=c[(s&p)>>2]|0;if(s>>>0>N>>>0)c[((c[(ma&p)+4>>2]|0)+(N*20|0)&p)+8>>2]=s;c[((c[(u&p)>>2]|0)&p)+88>>2]=s+-1;wh(ma,61,Q,0,0)|0}else{if(!da)break;wh(ma,16,0,L,0)|0;s=c[(s&p)>>2]|0;if(s>>>0>N>>>0)c[((c[(ma&p)+4>>2]|0)+(N*20|0)&p)+8>>2]=s;c[((c[(u&p)>>2]|0)&p)+88>>2]=s+-1}while(0);if((a[(ga&n)>>0]&16)!=0|ha)break;r=c[(ja&p)>>2]|0;if((r|0)<(c[(la&p)>>2]|0))wh(ma,61,r,0,0)|0;r=c[(ka&p)+8>>2]|0;if(!r)break;else s=0;while(1){wh(ma,61,(c[(la&p)>>2]|0)+s|0,0,0)|0;r=c[(r&p)+20>>2]|0;if(!r)break;else s=s+1|0}}while(0);if((a[(ia&n)>>0]|0)==0?(c[(e&p)+412>>2]|0)==0:0)st(e);if((((c[(na&p)+24>>2]&128|0)!=0?(a[(ia&n)>>0]|0)==0:0)?(c[(e&p)+412>>2]|0)==0:0)?(wh(ma,35,q,1,0)|0,iq(ma,1),(a[((c[(ma&p)>>2]|0)&n)+65>>0]|0)==0):0)Xg(c[(ma&p)+16>>2]|0,33488,-1,1,0)|0}else m=0}else m=0}else{m=0;l=0}while(0);Do(na,f);Nk(na,l);Mk(na,g,1);Hk(na,h);mg(na,m);i=oa;return}function ur(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0;h=i;i=i+16|0;if((i|0)>=(j|0))fa();f=h;if(!d){d=mh(b,8,0)|0;if(!d)d=0;else{g=d;k=g;a[(k&n)>>0]=0;a[(k&n)+1>>0]=0;a[(k&n)+2>>0]=0;a[(k&n)+3>>0]=0;g=g+4|0;a[(g&n)>>0]=0;a[(g&n)+1>>0]=0;a[(g&n)+2>>0]=0;a[(g&n)+3>>0]=0;g=4}}else g=4;do if((g|0)==4){c[(d&p)>>2]=Ht(b,c[(d&p)>>2]|0,8,d+4|0,f)|0;f=c[(f&p)>>2]|0;if((f|0)<0){Hk(b,d);d=0;break}else{b=Wq(b,e)|0;c[((c[(d&p)>>2]|0)+(f<<3)&p)>>2]=b;break}}while(0);i=h;return d|0}function vr(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0;if((c[(d&p)+4>>2]|0)!=0?(f=nr(c[(a&p)>>2]|0,95,d,e)|0,(f|0)!=0):0){c[(f&p)+12>>2]=b;b=f+4|0;c[(b&p)>>2]=c[(b&p)>>2]|4352;b=f}return b|0}function wr(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;e=c[(a&p)>>2]|0;d=nr(e,153,d,1)|0;if(!d){Nk(e,b);d=0}else{c[(d&p)+20>>2]=b;yr(a,d)}return d|0}function xr(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;b=c[(b&p)>>2]|0;if((d|0)!=0&(e|0)!=0?(a[(d&n)>>0]|0)==101:0){a[(e&n)>>0]=f;f=e+16|0;Gk(b,c[(f&p)>>2]|0);c[(f&p)>>2]=0}return}function yr(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;f=i;i=i+16|0;if((i|0)>=(j|0))fa();e=f;if((c[(a&p)+64>>2]|0)==0?(It(b),d=c[((c[(a&p)>>2]|0)&p)+100>>2]|0,(d|0)<(c[(b&p)+24>>2]|0)):0){c[(e&p)>>2]=d;th(a,27152,e)}i=f;return}function zr(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,i=0;d=c[(a&p)>>2]|0;i=d+20|0;e=c[(i&p)>>2]|0;if((e|0)>0){g=d+16|0;h=(b|0)==0;d=e;f=0;do{e=c[(g&p)>>2]|0;do if(c[(e+(f<<4)&p)+4>>2]|0){if(!h?(dd(b,c[(e+(f<<4)&p)>>2]|0)|0)!=0:0)break;Ar(a,f);d=c[(i&p)>>2]|0}while(0);f=f+1|0}while((f|0)<(d|0))}return}function Ar(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;f=c[(a&p)+408>>2]|0;f=(f|0)==0?a:f;a=f+332|0;d=c[(a&p)>>2]|0;e=1<>2]|0,c[(a&p)>>2]=d|e,c[(f+(b<<2)&p)+336>>2]=c[(c[((c[(g&p)+16>>2]|0)+(b<<4)&p)+12>>2]&p)>>2],(b|0)==1):0)_k(f)|0;return}function Br(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,o=0,q=0;q=i;i=i+128|0;if((i|0)>=(j|0))fa();f=q+8|0;o=q;m=q+24|0;c[(o&p)>>2]=0;k=c[(b&p)>>2]|0;if((c[(b&p)+64>>2]|0)==0?(c[(f&p)>>2]=e,l=Wk(k,d,f)|0,(l|0)!=0):0){d=b+18|0;a[(d&n)>>0]=(a[(d&n)>>0]|0)+1<<24>>24;e=b+440|0;f=m+0|0;g=e+0|0;h=f+96|0;do{a[(f&n)>>0]=a[(g&n)>>0]|0;f=f+1|0;g=g+1|0}while((f|0)<(h|0));f=e+0|0;h=f+96|0;do{c[(f&p)>>2]=0;f=f+4|0}while((f|0)<(h|0));Lh(b,l,o)|0;mg(k,c[(o&p)>>2]|0);mg(k,l);f=e+0|0;g=m+0|0;h=f+96|0;do{a[(f&n)>>0]=a[(g&n)>>0]|0;f=f+1|0;g=g+1|0}while((f|0)<(h|0));a[(d&n)>>0]=(a[(d&n)>>0]|0)+-1<<24>>24}i=q;return}function Cr(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0;k=i;i=i+48|0;if((i|0)>=(j|0))fa();g=k;h=k+16|0;b=c[((c[((c[(a&p)>>2]|0)&p)+16>>2]|0)+(b<<4)&p)>>2]|0;f=1;do{c[(g&p)>>2]=f;ad(24,h,33272,g)|0;if(_h(c[(a&p)>>2]|0,h,b)|0){c[(g&p)>>2]=b;c[(g&p)+4>>2]=h;c[(g&p)+8>>2]=d;c[(g&p)+12>>2]=e;Br(a,28840,g)}f=f+1|0}while((f|0)!=5);i=k;return}function Dr(b,d){b=b|0;d=d|0;var e=0,f=0;e=b+19|0;f=a[(e&n)>>0]|0;if(!(f<<24>>24)){f=b+72|0;e=(c[(f&p)>>2]|0)+1|0;c[(f&p)>>2]=e}else{f=f+-1<<24>>24;a[(e&n)>>0]=f;e=c[(b+((f&255)<<2)&p)+24>>2]|0}f=c[(b&p)+8>>2]|0;wh(f,25,(c[(c[((c[((c[(b&p)>>2]|0)&p)+16>>2]|0)+(d<<4)&p)+12>>2]&p)>>2]|0)+1|0,e,0)|0;wh(f,52,d,1,e)|0;_r(b,e);return}function Er(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0;l=i;i=i+32|0;if((i|0)>=(j|0))fa();k=l;h=Oq(b)|0;f=b+19|0;g=a[(f&n)>>0]|0;if(!(g<<24>>24)){g=b+72|0;f=(c[(g&p)>>2]|0)+1|0;c[(g&p)>>2]=f}else{g=g+-1<<24>>24;a[(f&n)>>0]=g;f=c[(b+((g&255)<<2)&p)+24>>2]|0}wh(h,117,d,f,e)|0;g=c[(b&p)+408>>2]|0;a[(((g|0)==0?b:g)&n)+21>>0]=1;c[(k&p)>>2]=c[((c[((c[(b&p)>>2]|0)&p)+16>>2]|0)+(e<<4)&p)>>2];c[(k&p)+4>>2]=(e|0)==1?13184:13208;c[(k&p)+8>>2]=d;c[(k&p)+12>>2]=f;c[(k&p)+16>>2]=f;Br(b,33216,k);_r(b,f);i=l;return}function Fr(f,g,h,k,l){f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;var m=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;X=i;i=i+96|0;if((i|0)>=(j|0))fa();G=X+24|0;w=X+80|0;q=X+64|0;A=X+16|0;t=X+60|0;u=X+56|0;O=X+52|0;N=X+48|0;z=X+44|0;D=X+40|0;E=X+36|0;F=X+32|0;x=X+8|0;s=X;W=c[(f&p)>>2]|0;T=Oq(f)|0;do if((T|0)!=0?(S=T+88|0,b[(S&o)>>1]=b[(S&o)>>1]|16,S=f+72|0,c[(S&p)>>2]=2,Q=er(f,g,h,w)|0,(Q|0)>=0):0){R=W+16|0;C=c[(R&p)>>2]|0;if((Q|0)==1?(_k(f)|0)!=0:0)break;V=Wq(W,c[(w&p)>>2]|0)|0;if(V){if(!l)U=Wq(W,k)|0;else{c[(G&p)>>2]=k;U=uh(W,30104,G)|0}B=h+4|0;if(!(c[(B&p)>>2]|0))L=0;else L=c[(C+(Q<<4)&p)>>2]|0;a:do if(!(Sq(f,19,V,U,L)|0)){c[(q&p)>>2]=0;c[(q&p)+4>>2]=V;c[(q&p)+8>>2]=U;c[(q&p)+12>>2]=0;r=W+452|0;c[(r&p)>>2]=0;g=cg(W,L,14,q)|0;if(!g){k=c[(q&p)>>2]|0;if(!k)break;m=(c[(S&p)>>2]|0)+1|0;c[(S&p)>>2]=m;xh(T,wh(T,97,0,m,0)|0,k,0);iq(T,1);if(!(a[((c[(T&p)>>2]|0)&n)+65>>0]|0))Xg(c[(T&p)+16>>2]|0,30112,-1,1,0)|0;wh(T,35,m,1,0)|0;Wc(c[(q&p)>>2]|0);break}else if((g|0)==12){w=0;q=56;b:while(1){while(1){l=(w+q|0)/2|0;g=c[((l*12|0)&p)+30120>>2]|0;k=dd(V,g)|0;if(!k){w=l;break b}if((k|0)<0){g=l;break}if((l|0)<(q|0))w=l+1|0;else break a}g=g+-1|0;if((w|0)>(g|0))break a;else q=g}if((a[((w*12|0)&n)+30125>>0]&1)!=0?(Gn(f)|0)!=0:0)break;do switch(d[((w*12|0)&n)+30124>>0]|0){case 10:{q=1<>2]=c[(F&p)>>2]|q;if(U){c[(G&p)>>2]=0;Dn(U,G)|0;k=c[(G&p)>>2]|0;if((k|0)<=-1)k=(k|0)==-2147483648?2147483647:0-k|0;G=c[(f&p)+408>>2]|0;Ar(f,Q);G=((G|0)==0?f:G)+328|0;c[(G&p)>>2]=c[(G&p)>>2]|q;wh(T,25,k,1,0)|0;wh(T,52,Q,3,1)|0;c[((c[(C+(Q<<4)&p)+12>>2]|0)&p)+80>>2]=k;pq(c[(C+(Q<<4)&p)+4>>2]|0,k);break a}iq(T,1);if(!(a[((c[(T&p)>>2]|0)&n)+65>>0]|0))Xg(c[(T&p)+16>>2]|0,30848,-1,1,0)|0;c[(S&p)>>2]=(c[(S&p)>>2]|0)+2;k=yh(T,9,30808)|0;l=c[(T&p)+32>>2]|0;if(l>>>0>k>>>0)c[((c[(T&p)+4>>2]|0)+(k*20|0)&p)+4>>2]=Q;m=k+1|0;if(l>>>0>m>>>0)c[((c[(T&p)+4>>2]|0)+(m*20|0)&p)+4>>2]=Q;m=k+6|0;if(l>>>0<=m>>>0)break a;c[((c[(T&p)+4>>2]|0)+(m*20|0)&p)+4>>2]=2e3;break a}case 19:{k=c[(c[((c[(C+(Q<<4)&p)+4>>2]|0)&p)+4>>2]&p)>>2]|0;G=A;c[(G&p)>>2]=-2;c[(G&p)+4>>2]=-1;if(U){ji(U,A)|0;m=A;l=c[(m&p)>>2]|0;m=c[(m&p)+4>>2]|0;if((m|0)<-1|(m|0)==-1&l>>>0<4294967295){l=A;c[(l&p)>>2]=-1;c[(l&p)+4>>2]=-1;l=-1;m=-1}G=k+160|0;c[(G&p)>>2]=l;c[(G&p)+4>>2]=m;k=c[(k&p)+208>>2]|0;if(k){G=k+16|0;c[(G&p)>>2]=l;c[(G&p)+4>>2]=m}}else{m=k+160|0;l=c[(m&p)>>2]|0;m=c[(m&p)+4>>2]|0}G=A;c[(G&p)>>2]=l;c[(G&p)+4>>2]=m;Jt(f,30952,l,m);break a}case 28:{q=Oq(f)|0;iq(q,4);c[(S&p)>>2]=4;Ar(f,Q);if((((a[((c[(q&p)>>2]|0)&n)+65>>0]|0)==0?(Xg(c[(q&p)+16>>2]|0,31232,-1,1,0)|0,(a[((c[(q&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(q&p)+16>>2]|0)+40|0,20632,-1,1,0)|0,(a[((c[(q&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(q&p)+16>>2]|0)+80|0,31240,-1,1,0)|0,(a[((c[(q&p)>>2]|0)&n)+65>>0]|0)==0):0)Xg((c[(q&p)+16>>2]|0)+120|0,31248,-1,1,0)|0;l=c[((c[(C+(Q<<4)&p)+12>>2]|0)&p)+16>>2]|0;if(!l)break a;do{m=c[(l&p)+8>>2]|0;G=c[(m&p)>>2]|0;xh(q,wh(q,97,0,1,0)|0,G,0);wh(q,28,0,2,0)|0;G=Ws(b[(m&o)+42>>1]|0)|0;wh(q,25,G,3,0)|0;G=Ws(b[(m&o)+28>>1]|0)|0;wh(q,25,G,4,0)|0;wh(q,35,1,4,0)|0;m=c[(m&p)+8>>2]|0;if(m)do{G=c[(m&p)>>2]|0;xh(q,wh(q,97,0,2,0)|0,G,0);G=Ws(b[(m&o)+44>>1]|0)|0;wh(q,25,G,3,0)|0;G=Ws(b[(c[(m&p)+8>>2]&o)>>1]|0)|0;wh(q,25,G,4,0)|0;wh(q,35,1,4,0)|0;m=c[(m&p)+20>>2]|0}while((m|0)!=0);l=c[(l&p)>>2]|0}while((l|0)!=0);break}case 15:{if(!U)break a;s=bq(W,U,L)|0;if(!s)break a;w=(c[((w*12|0)&p)+30128>>2]|0)==0;t=s+46|0;G=w?3:6;r=b[((w?t:s+48|0)&o)>>1]|0;u=r&65535;c[(S&p)>>2]=G;q=c[(s&p)+12>>2]|0;iq(T,G);Ar(f,Q);if(((a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0?(Xg(c[(T&p)+16>>2]|0,31256,-1,1,0)|0,(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(T&p)+16>>2]|0)+40|0,31176,-1,1,0)|0,(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0):0)Xg((c[(T&p)+16>>2]|0)+80|0,31184,-1,1,0)|0;if(((!w?(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0:0)?(Xg((c[(T&p)+16>>2]|0)+120|0,31264,-1,1,0)|0,(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(T&p)+16>>2]|0)+160|0,31272,-1,1,0)|0,(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0):0)Xg((c[(T&p)+16>>2]|0)+200|0,31280,-1,1,0)|0;if(!(r<<16>>16))break a;m=s+4|0;l=s+28|0;k=s+32|0;s=q+4|0;q=0;do{G=b[((c[(m&p)>>2]|0)+(q<<1)&o)>>1]|0;wh(T,25,q,1,0)|0;r=G<<16>>16;wh(T,25,r,2,0)|0;if(G<<16>>16<0)wh(T,28,0,3,0)|0;else{G=c[((c[(s&p)>>2]|0)+(r*24|0)&p)>>2]|0;xh(T,wh(T,97,0,3,0)|0,G,0)}if(!w){wh(T,25,d[((c[(l&p)>>2]|0)+q&n)>>0]|0,4,0)|0;G=c[((c[(k&p)>>2]|0)+(q<<2)&p)>>2]|0;xh(T,wh(T,97,0,5,0)|0,G,0);wh(T,25,(q|0)<(e[(t&o)>>1]|0)&1,6,0)|0}wh(T,35,1,c[(S&p)>>2]|0,0)|0;q=q+1|0}while((q|0)<(u|0));break}case 22:{Ar(f,Q);k=(c[(S&p)>>2]|0)+1|0;c[(S&p)>>2]=k;if((a[(V&n)>>0]&-33)<<24>>24==80)wh(T,153,Q,k,0)|0;else{c[(G&p)>>2]=0;if(U){Dn(U,G)|0;m=c[(G&p)>>2]|0;if((m|0)<=-1)m=(m|0)==-2147483648?2147483647:0-m|0}else m=0;wh(T,154,Q,k,m)|0}wh(T,35,k,1,0)|0;iq(T,1);if(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)break a;Xg(c[(T&p)+16>>2]|0,V,-1,1,-1)|0;break a}case 24:{l=c[(C+(Q<<4)&p)+4>>2]|0;if(U){c[(G&p)>>2]=0;Dn(U,G)|0;G=c[(G&p)>>2]|0;c[(W&p)+72>>2]=G;if((xg(l,G,-1,0)|0)!=7)break a;a[(W&n)+65>>0]=1;break a}if(!l){l=0;m=0}else{m=c[((c[(l&p)+4>>2]|0)&p)+32>>2]|0;l=m;m=((m|0)<0)<<31>>31}Jt(f,30864,l,m);break a}case 25:{l=c[(C+(Q<<4)&p)+4>>2]|0;if(U){m=(ii(U,1,0)|0)<<24>>24!=0&1;if((c[(B&p)>>2]|0)==0?(y=W+20|0,(c[(y&p)>>2]|0)>0):0){k=0;do{so(c[((c[(R&p)>>2]|0)+(k<<4)&p)+4>>2]|0,m)|0;k=k+1|0}while((k|0)<(c[(y&p)>>2]|0))}}else m=-1;G=so(l,m)|0;Jt(f,30880,G,((G|0)<0)<<31>>31);break a}case 18:{iq(T,1);if(!(a[((c[(T&p)>>2]|0)&n)+65>>0]|0))Xg(c[(T&p)+16>>2]|0,30936,-1,1,0)|0;c:do if(U){k=U;while(1)if(!(a[(k&n)>>0]|0))break;else k=k+1|0;m=k-U&1073741823;k=0;while(1){if(!(Fc(U,c[(k<<2&p)+32216>>2]|0,m)|0))break;k=k+1|0;if((k|0)==6){P=91;break c}}if((k|0)!=-1)q=Q;else P=91}else P=91;while(0);if((P|0)==91)if(!(c[(B&p)>>2]|0)){c[(B&p)>>2]=1;k=-1;q=0}else{k=-1;q=Q}m=c[(W&p)+20>>2]|0;if((m|0)>0){l=T+96|0;do{m=m+-1|0;do if(c[((c[(R&p)>>2]|0)+(m<<4)&p)+4>>2]|0){if((m|0)!=(q|0)?(c[(B&p)>>2]|0)!=0:0)break;c[(l&p)>>2]=c[(l&p)>>2]|1<0)}wh(T,35,1,1,0)|0;break a}case 32:{if(!U){if(!(c[2708]|0))break a;iq(T,1);if(!(a[((c[(T&p)>>2]|0)&n)+65>>0]|0))Xg(c[(T&p)+16>>2]|0,31048,-1,1,0)|0;G=c[2708]|0;xh(T,wh(T,97,0,1,0)|0,G,0);wh(T,35,1,1,0)|0;break a}if((a[(U&n)>>0]|0)!=0?(F=c[(W&p)>>2]|0,F=(pc[c[(F&p)+32>>2]&31](F,U,1,u)|0)!=0,F|(c[(u&p)>>2]|0)==0):0){th(f,31072,G);break a}if((d[(W&n)+64>>0]|0)<2)Kt(f)|0;Wc(c[2708]|0);if(!(a[(U&n)>>0]|0)){c[2708]=0;break a}else{c[(G&p)>>2]=U;c[2708]=_c(10344,G)|0;break a}}case 14:{if(!((U|0)!=0?(G=(Dn(U,t)|0)==0,m=c[(t&p)>>2]|0,!(G|(m|0)<1)):0)){c[(t&p)>>2]=2147483647;m=2147483647}l=c[(f&p)+408>>2]|0;Ar(f,Q);l=((l|0)==0?f:l)+328|0;c[(l&p)>>2]=c[(l&p)>>2]|1<>2]|0;if(l>>>0>m>>>0)c[((c[(T&p)+4>>2]|0)+(m*20|0)&p)+8>>2]=l;c[((c[(T&p)+24>>2]|0)&p)+88>>2]=l+-1;break a}case 30:{if(!U)break a;h=_h(W,U,L)|0;if(!h)break a;k=c[(h&p)+8>>2]|0;d:do if(!k)k=0;else while(1){if((a[(k&n)+51>>0]&3)==2)break d;k=c[(k&p)+20>>2]|0;if(!k){k=0;break}}while(0);iq(T,6);c[(S&p)>>2]=6;Ar(f,Q);do if((((a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0?(Xg(c[(T&p)+16>>2]|0,31176,-1,1,0)|0,(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(T&p)+16>>2]|0)+40|0,31184,-1,1,0)|0,(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(T&p)+16>>2]|0)+80|0,31192,-1,1,0)|0,(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0):0){Xg((c[(T&p)+16>>2]|0)+120|0,31200,-1,1,0)|0;if(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)break;Xg((c[(T&p)+16>>2]|0)+160|0,31208,-1,1,0)|0;if(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)break;Xg((c[(T&p)+16>>2]|0)+200|0,31224,-1,1,0)|0}while(0);hr(f,h)|0;t=h+38|0;m=b[(t&o)>>1]|0;if(m<<16>>16<=0)break a;u=(k|0)==0;l=k+4|0;w=0;r=0;g=c[(h&p)+4>>2]|0;while(1){s=g+23|0;if(!(a[(s&n)>>0]&2)){wh(T,25,w-r|0,1,0)|0;q=c[(g&p)>>2]|0;xh(T,wh(T,97,0,2,0)|0,q,0);q=c[(g&p)+12>>2]|0;xh(T,wh(T,97,0,3,0)|0,(q|0)==0?10360:q,0);wh(T,25,(a[(g&n)+20>>0]|0)!=0&1,4,0)|0;q=c[(g&p)+8>>2]|0;if(!q)wh(T,28,0,5,0)|0;else xh(T,wh(T,97,0,5,0)|0,q,0);k=a[(s&n)>>0]&1;e:do if(k<<24>>24==0|u)q=(k^1)&255^1;else{q=b[(t&o)>>1]|0;if(q<<16>>16<1){q=1;break}m=c[(l&p)>>2]|0;s=q<<16>>16;k=1;while(1){q=k+1|0;if((b[(m+(k+-1<<1)&o)>>1]|0)==(w|0)){q=k;break e}if((k|0)<(s|0))k=q;else break}}while(0);wh(T,25,q,6,0)|0;wh(T,35,1,6,0)|0;m=b[(t&o)>>1]|0}else r=r+1|0;w=w+1|0;if((w|0)>=(m<<16>>16|0))break;else g=g+24|0}break}case 2:{if(!U){Jt(f,g,(c[((w*12|0)&p)+30128>>2]&c[(W&p)+24>>2]|0)!=0&1,0);break a}l=c[((w*12|0)&p)+30128>>2]|0;l=(a[(W&n)+63>>0]|0)==0?l&-524289:l;if(!((ii(U,1,0)|0)<<24>>24)){G=W+24|0;c[(G&p)>>2]=c[(G&p)>>2]&~l;if((l|0)==16777216){G=W+512|0;c[(G&p)>>2]=0;c[(G&p)+4>>2]=0}}else{G=W+24|0;c[(G&p)>>2]=c[(G&p)>>2]|l}wh(T,144,0,0,0)|0;Lt(W);break a}case 5:{if(!U)break a;G=(ii(U,1,0)|0)<<24>>24!=0;F=G?32e3:19240;Qh(W,19248,2,1,F,40,0,0,0)|0;Qh(W,19248,3,1,F,40,0,0,0)|0;Qh(W,19232,2,1,10352,40,0,0,0)|0;Ot(W,19232,12);Ot(W,19248,G?12:4);break a}case 17:{g=a[(V&n)>>0]|0;A=(c[(h&p)>>2]|0)==0?-1:Q;c[(S&p)>>2]=6;iq(T,1);if(!(a[((c[(T&p)>>2]|0)&n)+65>>0]|0))Xg(c[(T&p)+16>>2]|0,31464,-1,1,0)|0;c[(z&p)>>2]=100;if(U){Dn(U,z)|0;s=c[(z&p)>>2]|0;if((s|0)<1){c[(z&p)>>2]=100;s=100}}else s=100;wh(T,25,s,1,0)|0;M=W+20|0;w=c[(M&p)>>2]|0;if((w|0)>0){L=(A|0)<0;m=T+32|0;I=T+4|0;H=T+24|0;N=(g&-33)<<24>>24==81;O=0;do{if(L|(O|0)==(A|0)){Ar(f,O);w=wh(T,137,1,0,0)|0;wh(T,24,0,0,0)|0;l=c[(m&p)>>2]|0;if(l>>>0>w>>>0)c[((c[(I&p)>>2]|0)+(w*20|0)&p)+8>>2]=l;c[((c[(H&p)>>2]|0)&p)+88>>2]=l+-1;k=(c[((c[(R&p)>>2]|0)+(O<<4)&p)+12>>2]|0)+16|0;w=c[(k&p)>>2]|0;if(!w)g=0;else{g=0;do{l=c[(w&p)+8>>2]|0;if(!(a[(l&n)+44>>0]&32)){wh(T,25,c[(l&p)+32>>2]|0,g+2|0,0)|0;g=g+1|0}l=c[(l&p)+8>>2]|0;if(l)do{wh(T,25,c[(l&p)+40>>2]|0,g+2|0,0)|0;g=g+1|0;l=c[(l&p)+20>>2]|0}while((l|0)!=0);w=c[(w&p)>>2]|0}while((w|0)!=0)}C=c[(S&p)>>2]|0;w=g+8|0;c[(S&p)>>2]=(C|0)>(w|0)?C:w;wh(T,127,2,g,1)|0;w=c[(I&p)>>2]|0;if(w)a[(w+(((c[(m&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=O;g=wh(T,76,2,0,0)|0;c[(G&p)>>2]=c[((c[(R&p)>>2]|0)+(O<<4)&p)>>2];w=uh(W,31480,G)|0;xh(T,wh(T,97,0,3,0)|0,w,-1);wh(T,32,2,4,1)|0;wh(T,94,4,3,2)|0;wh(T,35,2,1,0)|0;w=c[(m&p)>>2]|0;if(w>>>0>g>>>0)c[((c[(I&p)>>2]|0)+(g*20|0)&p)+8>>2]=w;c[((c[(H&p)>>2]|0)&p)+88>>2]=w+-1;w=c[(k&p)>>2]|0;if(!((w|0)==0|N))do{x=c[(w&p)+8>>2]|0;J=x+8|0;g=c[(J&p)>>2]|0;do if(g){f:do if(!(a[(x&n)+44>>0]&32))g=0;else while(1){if((a[(g&n)+51>>0]&3)==2)break f;g=c[(g&p)+20>>2]|0;if(!g){g=0;break}}while(0);l=wh(T,137,1,0,0)|0;wh(T,24,0,0,0)|0;k=c[(m&p)>>2]|0;if(k>>>0>l>>>0)c[((c[(I&p)>>2]|0)+(l*20|0)&p)+8>>2]=k;c[((c[(H&p)>>2]|0)&p)+88>>2]=k+-1;at(f);pt(f,x,54,1,0,D,E)|0;wh(T,25,0,7,0)|0;k=c[(J&p)>>2]|0;if(!k)l=8;else{l=0;while(1){wh(T,25,0,l+8|0,0)|0;k=c[(k&p)+20>>2]|0;if(!k)break;else l=l+1|0}l=l+9|0}K=c[(S&p)>>2]|0;c[(S&p)>>2]=(K|0)>(l|0)?K:l;wh(T,108,c[(D&p)>>2]|0,0,0)|0;K=wh(T,37,7,1,0)|0;u=x+38|0;l=b[(u&o)>>1]|0;if(l<<16>>16>0){h=x+36|0;v=x+4|0;t=0;do{do if((t|0)!=(b[(h&o)>>1]|0)){if(!(a[((c[(v&p)>>2]|0)+(t*24|0)&n)+20>>0]|0))break;nt(T,x,c[(D&p)>>2]|0,t,3);l=c[(I&p)>>2]|0;if(l)a[(l+(((c[(m&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=-128;l=wh(T,77,3,0,0)|0;wh(T,37,1,-1,0)|0;q=c[((c[(v&p)>>2]|0)+(t*24|0)&p)>>2]|0;c[(G&p)>>2]=c[(x&p)>>2];c[(G&p)+4>>2]=q;q=uh(W,31504,G)|0;xh(T,wh(T,97,0,3,0)|0,q,-1);wh(T,35,3,1,0)|0;q=wh(T,137,1,0,0)|0;wh(T,24,0,0,0)|0;r=c[(m&p)>>2]|0;if(r>>>0>l>>>0)c[((c[(I&p)>>2]|0)+(l*20|0)&p)+8>>2]=r;l=r+-1|0;k=(c[(H&p)>>2]|0)+88|0;c[(k&p)>>2]=l;if(r>>>0>q>>>0)c[((c[(I&p)>>2]|0)+(q*20|0)&p)+8>>2]=r;c[(k&p)>>2]=l;l=b[(u&o)>>1]|0}while(0);t=t+1|0}while((t|0)<(l<<16>>16|0))}l=c[(J&p)>>2]|0;if(l){z=x+4|0;y=0;r=0;k=-1;while(1){q=xs(T)|0;if((g|0)!=(l|0)){k=Pt(f,l,c[(D&p)>>2]|0,0,0,F,r,k)|0;wh(T,37,y+8|0,1,0)|0;x=e[(l&o)+48>>1]|0;q=wh(T,69,(c[(E&p)>>2]|0)+y|0,q,k)|0;xh(T,q,x,-14);wh(T,37,1,-1,0)|0;xh(T,wh(T,97,0,3,0)|0,31528,-2);wh(T,94,7,3,3)|0;xh(T,wh(T,97,0,4,0)|0,31536,-2);wh(T,94,4,3,3)|0;x=c[(l&p)>>2]|0;v=wh(T,97,0,4,0)|0;xh(T,v,x,0);wh(T,94,4,3,3)|0;wh(T,35,3,1,0)|0;x=wh(T,137,1,0,0)|0;wh(T,24,0,0,0)|0;r=c[(m&p)>>2]|0;if(r>>>0>q>>>0)c[((c[(I&p)>>2]|0)+(q*20|0)&p)+8>>2]=r;q=c[(H&p)>>2]|0;c[(q&p)+88>>2]=r+-1;if(a[(l&n)+50>>0]|0){h=xs(T)|0;u=l+46|0;q=b[(u&o)>>1]|0;if(q<<16>>16){t=l+4|0;r=0;do{if(!(a[((c[(z&p)>>2]|0)+((b[((c[(t&p)>>2]|0)+(r<<1)&o)>>1]|0)*24|0)&n)+20>>0]|0)){wh(T,76,r+k|0,h,0)|0;q=b[(u&o)>>1]|0}r=r+1|0}while((r|0)<(q&65535|0))}q=wh(T,9,(c[(E&p)>>2]|0)+y|0,0,0)|0;wh(T,16,0,h,0)|0;r=c[(m&p)>>2]|0;if(r>>>0>q>>>0)c[((c[(I&p)>>2]|0)+(q*20|0)&p)+8>>2]=r;c[((c[(H&p)>>2]|0)&p)+88>>2]=r+-1;q=e[(u&o)>>1]|0;xh(T,wh(T,114,(c[(E&p)>>2]|0)+y|0,h,k)|0,q,-14);wh(T,37,1,-1,0)|0;xh(T,wh(T,97,0,3,0)|0,31560,-2);wh(T,16,0,v,0)|0;q=c[(H&p)>>2]|0;t=~h;do if((h|0)<0){r=c[(q&p)+112>>2]|0;if(!r)break;c[(r+(t<<2)&p)>>2]=c[(m&p)>>2]}while(0);r=c[(m&p)>>2]|0;c[(q&p)+88>>2]=r+-1}if(r>>>0>x>>>0)c[((c[(I&p)>>2]|0)+(x*20|0)&p)+8>>2]=r;c[(q&p)+88>>2]=r+-1;Qt(f,c[(F&p)>>2]|0);r=l}l=c[(l&p)+20>>2]|0;if(!l)break;else y=y+1|0}}wh(T,9,c[(D&p)>>2]|0,K,0)|0;l=K+-1|0;k=c[(m&p)>>2]|0;if(k>>>0>l>>>0)c[((c[(I&p)>>2]|0)+(l*20|0)&p)+8>>2]=k;c[((c[(H&p)>>2]|0)&p)+88>>2]=k+-1;xh(T,wh(T,97,0,2,0)|0,31592,-2);l=c[(J&p)>>2]|0;if(!l)break;else q=0;while(1){if((g|0)!=(l|0)){k=c[(m&p)>>2]|0;wh(T,137,1,k+2|0,0)|0;wh(T,24,0,0,0)|0;wh(T,50,(c[(E&p)>>2]|0)+q|0,3,0)|0;wh(T,79,q+8|0,k+8|0,3)|0;k=c[(I&p)>>2]|0;if(k)a[(k+(((c[(m&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=-112;wh(T,37,1,-1,0)|0;C=c[(l&p)>>2]|0;xh(T,wh(T,97,0,3,0)|0,C,0);wh(T,94,3,2,7)|0;wh(T,35,7,1,0)|0}l=c[(l&p)+20>>2]|0;if(!l)break;else q=q+1|0}}while(0);w=c[(w&p)>>2]|0}while((w|0)!=0);w=c[(M&p)>>2]|0}O=O+1|0}while((O|0)<(w|0))}else m=T+32|0;l=yh(T,3,31448)|0;m=c[(m&p)>>2]|0;if(m>>>0>l>>>0){c[((c[(T&p)+4>>2]|0)+(l*20|0)&p)+12>>2]=0-s;c[((c[(T&p)+4>>2]|0)+(l*20|0)&p)+8>>2]=m}c[((c[(T&p)+24>>2]|0)&p)+88>>2]=m+-1;xh(T,l+1|0,31624,-2);break a}case 21:{do if(U){if(dd(U,30904)|0)if(!(dd(U,30896)|0))k=0;else{P=66;break}else k=1;if(!(c[(B&p)>>2]|0)){s=c[(W&p)+20>>2]|0;if((s|0)>2){q=c[(R&p)>>2]|0;m=k&255;r=2;do{l=c[(c[((c[(q+(r<<4)&p)+4>>2]|0)&p)+4>>2]&p)>>2]|0;do if(!(a[(l&n)+12>>0]|0)){G=c[(l&p)+208>>2]|0;if((G|0)!=0?(a[(G&n)+43>>0]|0)==2:0)break;a[(l&n)+4>>0]=m}while(0);r=r+1|0}while((r|0)<(s|0))}else m=k&255;a[(W&n)+66>>0]=m;P=74}else P=74}else P=66;while(0);if((P|0)==66)if(!(c[(B&p)>>2]|0))l=W+66|0;else{k=-1;P=74}if((P|0)==74){m=c[(c[((c[(C+(Q<<4)&p)+4>>2]|0)&p)+4>>2]&p)>>2]|0;do if((k|0)>-1?(a[(m&n)+12>>0]|0)==0:0){G=c[(m&p)+208>>2]|0;if((G|0)!=0?(a[(G&n)+43>>0]|0)==2:0)break;a[(m&n)+4>>0]=k}while(0);l=m+4|0}l=(a[(l&n)>>0]|0)==1?30904:30896;iq(T,1);if(!(a[((c[(T&p)>>2]|0)&n)+65>>0]|0))Xg(c[(T&p)+16>>2]|0,30920,-1,1,0)|0;xh(T,wh(T,97,0,1,0)|0,l,0);wh(T,35,1,1,0)|0;break a}case 16:{if(!U)break a;k=_h(W,U,L)|0;if(!k)break a;q=Oq(f)|0;iq(q,5);c[(S&p)>>2]=5;Ar(f,Q);if(((((a[((c[(q&p)>>2]|0)&n)+65>>0]|0)==0?(Xg(c[(q&p)+16>>2]|0,31288,-1,1,0)|0,(a[((c[(q&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(q&p)+16>>2]|0)+40|0,31184,-1,1,0)|0,(a[((c[(q&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(q&p)+16>>2]|0)+80|0,31296,-1,1,0)|0,(a[((c[(q&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(q&p)+16>>2]|0)+120|0,31304,-1,1,0)|0,(a[((c[(q&p)>>2]|0)&n)+65>>0]|0)==0):0)Xg((c[(q&p)+16>>2]|0)+160|0,31312,-1,1,0)|0;m=c[(k&p)+8>>2]|0;if(!m)break a;else l=0;while(1){wh(q,25,l,1,0)|0;G=c[(m&p)>>2]|0;xh(q,wh(q,97,0,2,0)|0,G,0);wh(q,25,(a[(m&n)+50>>0]|0)!=0&1,3,0)|0;G=c[((a[(m&n)+51>>0]&3)<<2&p)+31336>>2]|0;xh(q,wh(q,97,0,4,0)|0,G,0);wh(q,25,(c[(m&p)+36>>2]|0)!=0&1,5,0)|0;wh(q,35,1,5,0)|0;m=c[(m&p)+20>>2]|0;if(!m)break;else l=l+1|0}break}case 1:{k=c[(C+(Q<<4)&p)+4>>2]|0;if(!U){m=c[(k&p)+4>>2]|0;c[(m&p)+4>>2]=c[(k&p)>>2];if(!(a[(m&n)+17>>0]|0)){m=0;l=0}else{l=(a[(m&n)+18>>0]|0)==0;m=l?1:2;l=l?0:0}Jt(f,30976,m,l);break a}if(dd(U,32192)|0)if(dd(U,31880)|0)if(!(dd(U,32200)|0))m=2;else{c[(G&p)>>2]=0;Dn(U,G)|0;m=c[(G&p)>>2]|0;m=m>>>0<3?m&255:0}else m=1;else m=0;a[(W&n)+67>>0]=m;r=m+-1|0;if(!((vn(k,m)|0)==0&r>>>0<2))break a;l=yh(T,6,30992)|0;q=c[(T&p)+32>>2]|0;if(q>>>0>l>>>0)c[((c[(T&p)+4>>2]|0)+(l*20|0)&p)+4>>2]=Q;k=l+1|0;if(q>>>0>k>>>0)c[((c[(T&p)+4>>2]|0)+(k*20|0)&p)+4>>2]=Q;k=l+2|0;m=l+4|0;if(q>>>0>k>>>0)c[((c[(T&p)+4>>2]|0)+(k*20|0)&p)+8>>2]=m;if(q>>>0>m>>>0)c[((c[(T&p)+4>>2]|0)+(m*20|0)&p)+4>>2]=r;m=l+5|0;if(q>>>0>m>>>0)c[((c[(T&p)+4>>2]|0)+(m*20|0)&p)+4>>2]=Q;G=T+96|0;c[(G&p)>>2]=c[(G&p)>>2]|1<>2]=3;if(((a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0?(Xg(c[(T&p)+16>>2]|0,31288,-1,1,0)|0,(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(T&p)+16>>2]|0)+40|0,31184,-1,1,0)|0,(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0):0)Xg((c[(T&p)+16>>2]|0)+80|0,31352,-1,1,0)|0;l=W+20|0;m=c[(l&p)>>2]|0;if((m|0)>0)q=0;else break a;do{if(c[((c[(R&p)>>2]|0)+(q<<4)&p)+4>>2]|0){wh(T,25,q,1,0)|0;k=c[((c[(R&p)>>2]|0)+(q<<4)&p)>>2]|0;xh(T,wh(T,97,0,2,0)|0,k,0);k=c[(c[((c[((c[(R&p)>>2]|0)+(q<<4)&p)+4>>2]|0)&p)+4>>2]&p)>>2]|0;if(!(a[(k&n)+15>>0]|0))k=c[(k&p)+168>>2]|0;else k=10360;xh(T,wh(T,97,0,3,0)|0,k,0);wh(T,35,1,3,0)|0;m=c[(l&p)>>2]|0}q=q+1|0}while((q|0)<(m|0));break}case 6:{iq(T,2);c[(S&p)>>2]=2;if((a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0?(Xg(c[(T&p)+16>>2]|0,31288,-1,1,0)|0,(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0):0)Xg((c[(T&p)+16>>2]|0)+40|0,31184,-1,1,0)|0;m=c[(W&p)+436>>2]|0;if(!m)break a;else l=0;while(1){G=c[(m&p)+8>>2]|0;wh(T,25,l,1,0)|0;G=c[(G&p)>>2]|0;xh(T,wh(T,97,0,2,0)|0,G,0);wh(T,35,1,2,0)|0;m=c[(m&p)>>2]|0;if(!m)break;else l=l+1|0}break}case 13:{if(!U)break a;k=_h(W,U,L)|0;if(!k)break a;g=Oq(f)|0;q=c[(k&p)+16>>2]|0;if(!q)break a;iq(g,8);c[(S&p)>>2]=8;Ar(f,Q);do if((((a[((c[(g&p)>>2]|0)&n)+65>>0]|0)==0?(Xg(c[(g&p)+16>>2]|0,31360,-1,1,0)|0,(a[((c[(g&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(g&p)+16>>2]|0)+40|0,31288,-1,1,0)|0,(a[((c[(g&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(g&p)+16>>2]|0)+80|0,31232,-1,1,0)|0,(a[((c[(g&p)>>2]|0)&n)+65>>0]|0)==0):0){Xg((c[(g&p)+16>>2]|0)+120|0,31368,-1,1,0)|0;if(a[((c[(g&p)>>2]|0)&n)+65>>0]|0)break;Xg((c[(g&p)+16>>2]|0)+160|0,31376,-1,1,0)|0;if(a[((c[(g&p)>>2]|0)&n)+65>>0]|0)break;Xg((c[(g&p)+16>>2]|0)+200|0,31384,-1,1,0)|0;if(a[((c[(g&p)>>2]|0)&n)+65>>0]|0)break;Xg((c[(g&p)+16>>2]|0)+240|0,31400,-1,1,0)|0;if(a[((c[(g&p)>>2]|0)&n)+65>>0]|0)break;Xg((c[(g&p)+16>>2]|0)+280|0,31416,-1,1,0)|0}while(0);v=k+4|0;w=0;while(1){k=q+20|0;if((c[(k&p)>>2]|0)>0){m=q+25|0;l=q+26|0;t=q+8|0;h=0;do{u=c[(q+(h<<3)&p)+40>>2]|0;s=d[(m&n)>>0]|0;if((s|0)==8)r=32072;else if((s|0)==9)r=32088;else if((s|0)==6)r=32096;else if((s|0)==7)r=32056;else r=32112;s=d[(l&n)>>0]|0;if((s|0)==8)s=32072;else if((s|0)==9)s=32088;else if((s|0)==6)s=32096;else if((s|0)==7)s=32056;else s=32112;wh(g,25,w,1,0)|0;wh(g,25,h,2,0)|0;G=c[(t&p)>>2]|0;xh(g,wh(g,97,0,3,0)|0,G,0);G=c[((c[(v&p)>>2]|0)+((c[(q+(h<<3)&p)+36>>2]|0)*24|0)&p)>>2]|0;xh(g,wh(g,97,0,4,0)|0,G,0);xh(g,wh(g,(u|0)!=0?97:28,0,5,0)|0,u,0);xh(g,wh(g,97,0,6,0)|0,s,0);xh(g,wh(g,97,0,7,0)|0,r,0);xh(g,wh(g,97,0,8,0)|0,31424,0);wh(g,35,1,8,0)|0;h=h+1|0}while((h|0)<(c[(k&p)>>2]|0))}q=c[(q&p)+4>>2]|0;if(!q)break;else w=w+1|0}break}case 11:{if(!U){if(Gn(f)|0)break a;iq(T,1);if(!(a[((c[(T&p)>>2]|0)&n)+65>>0]|0))Xg(c[(T&p)+16>>2]|0,31784,-1,1,0)|0;wh(T,97,0,1,0)|0;xh(T,-1,c[(d[((c[(f&p)>>2]|0)&n)+62>>0]<<3&p)+31632>>2]|0,-2);wh(T,35,1,1,0)|0;break a}k=c[((c[(R&p)>>2]|0)&p)+12>>2]|0;if((b[(k&o)+78>>1]&5)==1)break a;else{m=31632;l=31704}do{if(!(dd(U,l)|0)){v=m;P=415;break}m=m+8|0;l=c[(m&p)>>2]|0}while((l|0)!=0);if((P|0)==415?(F=a[(v&n)+4>>0]|0,F=F<<24>>24==0?2:F,a[(W&n)+62>>0]=F,a[(k&n)+77>>0]=F,(c[(v&p)>>2]|0)!=0):0)break a;c[(G&p)>>2]=U;th(f,31800,G);break a}case 0:{s=c[((w*12|0)&p)+30128>>2]|0;F=T+96|0;c[(F&p)>>2]=c[(F&p)>>2]|1<>2]|0)>>>0>m>>>0)c[((c[(T&p)+4>>2]|0)+(m*20|0)&p)+4>>2]=Q;l=m+1|0;c[(G&p)>>2]=0;Dn(U,G)|0;k=c[(k&p)>>2]|0;if(k>>>0>l>>>0)c[((c[(T&p)+4>>2]|0)+(l*20|0)&p)+4>>2]=c[(G&p)>>2];m=m+2|0;if(k>>>0<=m>>>0)break a;c[((c[(T&p)+4>>2]|0)+(m*20|0)&p)+4>>2]=Q;c[((c[(T&p)+4>>2]|0)+(m*20|0)&p)+8>>2]=s;break a}m=yh(T,3,31848)|0;k=c[(T&p)+32>>2]|0;if(k>>>0>m>>>0)c[((c[(T&p)+4>>2]|0)+(m*20|0)&p)+4>>2]=Q;m=m+1|0;if(k>>>0>m>>>0){c[((c[(T&p)+4>>2]|0)+(m*20|0)&p)+4>>2]=Q;c[((c[(T&p)+4>>2]|0)+(m*20|0)&p)+12>>2]=s}iq(T,1);if(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)break a;Xg(c[(T&p)+16>>2]|0,V,-1,1,-1)|0;break a}case 7:{iq(T,1);c[(S&p)>>2]=1;if(!(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)){Xg(c[(T&p)+16>>2]|0,31864,-1,1,0)|0;l=0}else l=0;do{G=c[(l<<2&p)+8648>>2]|0;l=l+1|0;xh(T,wh(T,97,0,1,0)|0,G,0);wh(T,35,1,1,0)|0}while((l|0)!=4);break}case 35:{m=(c[(h&p)>>2]|0)!=0?Q:10;if(U)if(dd(U,31880)|0)if(!(dd(U,31888)|0))l=2;else{l=(dd(U,31896)|0)==0;l=l?3:0}else l=1;else l=0;iq(T,3);c[(S&p)>>2]=3;if(((a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0?(Xg(c[(T&p)+16>>2]|0,31912,-1,1,0)|0,(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(T&p)+16>>2]|0)+40|0,31920,-1,1,0)|0,(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0):0)Xg((c[(T&p)+16>>2]|0)+80|0,31928,-1,1,0)|0;wh(T,11,m,l,1)|0;wh(T,35,1,3,0)|0;break a}case 26:{of(W)|0;break a}case 34:{if(!U)l=c[(W&p)+216>>2]|0;else{c[(G&p)>>2]=0;Dn(U,G)|0;l=c[(G&p)>>2]|0;if((l|0)>0)m=21;else{l=0;m=0}c[(W&p)+216>>2]=m;c[(W&p)+220>>2]=l;l=m}if((l|0)==21){l=c[(W&p)+220>>2]|0;m=l;l=((l|0)<0)<<31>>31}else{m=0;l=0}Jt(f,31944,m,l);break a}case 27:{if((U|0)!=0?(ji(U,x)|0)==0:0){G=x;Pc(c[(G&p)>>2]|0,c[(G&p)+4>>2]|0)|0}F=(Lc()|0)==0;G=9032;Jt(f,31976,F?c[(G&p)>>2]|0:-1,F?c[(G&p)+4>>2]|0:-1);break a}case 33:{if((U|0)!=0?(E=(ji(U,s)|0)==0,G=s,F=c[(G&p)+4>>2]|0,E&((F|0)>-1|(F|0)==-1&(c[(G&p)>>2]|0)>>>0>4294967295)):0)c[(W&p)+132>>2]=0;G=c[(W&p)+132>>2]|0;Jt(f,31992,G,((G|0)<0)<<31>>31);break a}case 12:{g=c[(S&p)>>2]|0;H=g+1|0;I=g+5|0;J=g+6|0;c[(S&p)>>2]=J;K=Oq(f)|0;iq(K,4);if((((a[((c[(K&p)>>2]|0)&n)+65>>0]|0)==0?(Xg(c[(K&p)+16>>2]|0,31232,-1,1,0)|0,(a[((c[(K&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(K&p)+16>>2]|0)+40|0,20456,-1,1,0)|0,(a[((c[(K&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(K&p)+16>>2]|0)+80|0,31432,-1,1,0)|0,(a[((c[(K&p)>>2]|0)&n)+65>>0]|0)==0):0)Xg((c[(K&p)+16>>2]|0)+120|0,31440,-1,1,0)|0;Ar(f,Q);w=c[((c[((c[(R&p)>>2]|0)+(Q<<4)&p)+12>>2]|0)&p)+16>>2]|0;if(!w)break a;u=(U|0)==0;h=f+68|0;v=K+32|0;D=K+4|0;E=K+24|0;F=g+2|0;G=g+3|0;A=g+4|0;t=f+8|0;while(1){if(u){B=c[(w&p)>>2]|0;C=c[(w&p)+8>>2]|0}else{B=0;C=sh(f,0,U,L)|0}if((C|0)!=0?(M=C+16|0,(c[(M&p)>>2]|0)!=0):0){gs(f,Q,c[(C&p)+32>>2]|0,0,c[(C&p)>>2]|0);g=(b[(C&o)+38>>1]|0)+J|0;if((g|0)>(c[(S&p)>>2]|0))c[(S&p)>>2]=g;Qq(f,0,Q,C,54);w=c[(C&p)>>2]|0;xh(K,wh(K,97,0,H,0)|0,w,0);w=c[(M&p)>>2]|0;if(!w)g=1;else{g=1;do{l=_h(W,c[(w&p)+8>>2]|0,L)|0;do if(l){c[(O&p)>>2]=0;gs(f,Q,c[(l&p)+32>>2]|0,0,c[(l&p)>>2]|0);if(Mt(f,l,w,O,0)|0)break a;m=c[(O&p)>>2]|0;if(!m){Qq(f,g,Q,l,54);break}else{wh(K,54,g,c[(m&p)+40>>2]|0,Q)|0;z=c[(t&p)>>2]|0;xh(z,-1,hs(f,m)|0,-6);break}}while(0);g=g+1|0;w=c[(w&p)+4>>2]|0}while((w|0)!=0)}if((c[(h&p)>>2]|0)<(g|0))c[(h&p)>>2]=g;s=wh(K,108,0,0,0)|0;g=c[(M&p)>>2]|0;if(g){z=C+36|0;y=1;while(1){x=g+8|0;w=_h(W,c[(x&p)>>2]|0,L)|0;c[(O&p)>>2]=0;c[(N&p)>>2]=0;r=(w|0)!=0;do if(r){Mt(f,w,g,O,N)|0;l=c[(O&p)>>2]|0;m=xs(K)|0;if(!(r&(l|0)==0)){w=m;P=306;break}w=c[(g&p)+36>>2]|0;if((w|0)==(b[(z&o)>>1]|0))wh(K,103,0,J,0)|0;else{wh(K,47,0,w,J)|0;Nt(K,C,w,J);wh(K,76,J,m,0)|0;wh(K,38,J,(c[(v&p)>>2]|0)+3|0,0)|0}wh(K,70,y,0,J)|0;wh(K,16,0,m,0)|0;w=c[(v&p)>>2]|0;if(w>>>0>1)c[((c[(D&p)>>2]|0)+((w+-2|0)*20|0)&p)+8>>2]=w;c[((c[(E&p)>>2]|0)&p)+88>>2]=w+-1;w=m}else{w=xs(K)|0;l=0;P=306}while(0);do if((P|0)==306){P=0;q=g+20|0;m=c[(q&p)>>2]|0;if((m|0)>0){k=0;do{m=c[(N&p)>>2]|0;if(!m)m=g+(k<<3)+36|0;else m=m+(k<<2)|0;R=k+J|0;nt(K,C,0,c[(m&p)>>2]|0,R);wh(K,76,R,w,0)|0;k=k+1|0;m=c[(q&p)>>2]|0}while((k|0)<(m|0))}if(!r)break;k=ot(K,l)|0;l=c[(q&p)>>2]|0;xh(K,wh(K,49,J,m,I)|0,k,l);xh(K,wh(K,69,y,w,I)|0,0,-14)}while(0);wh(K,103,0,F,0)|0;l=c[(x&p)>>2]|0;xh(K,wh(K,97,0,G,0)|0,l,0);wh(K,25,y+-1|0,A,0)|0;wh(K,35,H,4,0)|0;l=c[(E&p)>>2]|0;m=~w;do if((w|0)<0){w=c[(l&p)+112>>2]|0;if(!w)break;c[(w+(m<<2)&p)>>2]=c[(v&p)>>2]}while(0);c[(l&p)+88>>2]=(c[(v&p)>>2]|0)+-1;mg(W,c[(N&p)>>2]|0);g=c[(g&p)+4>>2]|0;if(!g)break;else y=y+1|0}}wh(K,9,0,s+1|0,0)|0;g=c[(v&p)>>2]|0;if(g>>>0>s>>>0)c[((c[(D&p)>>2]|0)+(s*20|0)&p)+8>>2]=g;c[((c[(E&p)>>2]|0)&p)+88>>2]=g+-1}if(!B)break;else w=B}break}case 23:{Jt(f,31016,0,0);break a}case 31:{if(!U){Jt(f,31032,d[(W&n)+64>>0]|0,0);break a}l=a[(U&n)>>0]|0;if((l+-48&255)>=3)if(!(dd(U,31352)|0))l=1;else{l=(dd(U,15168)|0)==0;l=l?2:0}else l=(l<<24>>24)+-48|0;m=(c[(f&p)>>2]|0)+64|0;if((d[(m&n)>>0]|0)==(l|0))break a;if(Kt(f)|0)break a;a[(m&n)>>0]=l;break a}case 29:{if(!U){G=(d[(C+(Q<<4)&n)+8>>0]|0)+-1|0;Jt(f,31104,G,((G|0)<0)<<31>>31);break a}if(!(a[(W&n)+63>>0]|0)){th(f,31120,G);break a}else{a[(C+(Q<<4)&n)+8>>0]=((ii(U,0,1)|0)&255)+1;Lt(W);break a}}case 4:if(!U){G=c[((c[(C+(Q<<4)&p)+12>>2]|0)&p)+80>>2]|0;Jt(f,30848,G,((G|0)<0)<<31>>31);break a}else{c[(G&p)>>2]=0;Dn(U,G)|0;G=c[(G&p)>>2]|0;c[((c[(C+(Q<<4)&p)+12>>2]|0)&p)+80>>2]=G;pq(c[(C+(Q<<4)&p)+4>>2]|0,G);break a}default:{if(!U)l=c[(W&p)+492>>2]|0;else{c[(G&p)>>2]=0;Dn(U,G)|0;l=c[(G&p)>>2]|0;G=(l|0)>0;l=G?l:0;c[(W&p)+444>>2]=G?74:0;c[(W&p)+448>>2]=G?W:0;c[(r&p)>>2]=0;c[(W&p)+492>>2]=l}Jt(f,31968,l,((l|0)<0)<<31>>31);break a}}while(0)}else{k=c[(q&p)>>2]|0;if(k){c[(G&p)>>2]=k;th(f,10344,G);Wc(c[(q&p)>>2]|0)}G=f+64|0;c[(G&p)>>2]=(c[(G&p)>>2]|0)+1;c[(f&p)+12>>2]=g;break}}while(0);mg(W,V);mg(W,U)}}while(0);i=X;return}function Gr(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0;h=i;i=i+16|0;if((i|0)>=(j|0))fa();g=h;a:do if(!d)d=0;else{f=d;while(1){if((a[(f&n)>>0]|0)==-121){d=c[(b&p)>>2]|0;if(!(a[((c[(d&p)>>2]|0)&n)+145>>0]|0))break;a[(f&n)>>0]=101}d=c[(f&p)+4>>2]|0;if(d&16384){d=0;break a}e=f+20|0;if(!(d&2048)){if(Hr(b,c[(e&p)>>2]|0)|0){d=1;break a}}else if(fr(b,c[(e&p)>>2]|0)|0){d=1;break a}if(Gr(b,c[(f&p)+16>>2]|0)|0){d=1;break a}f=c[(f&p)+12>>2]|0;if(!f){d=0;break a}}c[(g&p)>>2]=c[(b&p)+16>>2];th(d,29984,g);d=1}while(0);i=h;return d|0}function Hr(a,b){a=a|0;b=b|0;var d=0,e=0;a:do if((b|0)!=0?(c[(b&p)>>2]|0)>0:0){d=0;e=c[(b&p)+4>>2]|0;while(1){if(Gr(a,c[(e&p)>>2]|0)|0){d=1;break a}d=d+1|0;if((d|0)>=(c[(b&p)>>2]|0)){d=0;break}else e=e+20|0}}else d=0;while(0);return d|0}function Ir(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;xh(a,wh(a,122,b,0,0)|0,d,-1);d=c[((c[(a&p)>>2]|0)&p)+20>>2]|0;if((d|0)>0){e=a+96|0;b=c[(e&p)>>2]|0;a=0;do{b=b|1<>2]=b}return}function Jr(a,d){a=a|0;d=d|0;var e=0,f=0;e=d+8|0;f=Ur(a,0,e)|0;d=d+24|0;kg(c[(a&p)>>2]|0,c[(d&p)>>2]|0);c[(d&p)>>2]=f;if(f){d=f+40|0;b[(d&o)>>1]=(b[(d&o)>>1]|0)+1<<16>>16}e=(Rt(a,e)|0)==0;return (e?f:0)|0}function Kr(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0;n=i;i=i+16|0;if((i|0)>=(j|0))fa();m=n;a:do if((b|0)!=0?(f=c[(a&p)+12>>2]|0,(c[(b&p)>>2]|0)>0):0){g=a+8|0;h=a+4|0;k=0;l=b+8|0;while(1){if(!(c[(g&p)>>2]|0)){e=l+4|0;d=c[(e&p)>>2]|0;if((d|0)!=0?(dd(d,f)|0)!=0:0)break;mg(c[(c[(a&p)>>2]&p)>>2]|0,d);c[(e&p)>>2]=0;c[(l&p)>>2]=c[(h&p)>>2]}if(fr(a,c[(l&p)+20>>2]|0)|0){d=1;break a}if(Gr(a,c[(l&p)+44>>2]|0)|0){d=1;break a}k=k+1|0;if((k|0)>=(c[(b&p)>>2]|0)){d=0;break a}else l=l+72|0}b=c[(a&p)>>2]|0;l=c[(a&p)+20>>2]|0;c[(m&p)>>2]=c[(a&p)+16>>2];c[(m&p)+4>>2]=l;c[(m&p)+8>>2]=d;th(b,29936,m);d=1}else d=0;while(0);i=n;return d|0}function Lr(b,d){b=b|0;d=d|0;var e=0,f=0,g=0;f=i;i=i+16|0;if((i|0)>=(j|0))fa();e=f;g=c[(b&p)>>2]|0;if((((a[(g&n)+145>>0]|0)==0?(a[(b&n)+18>>0]|0)==0:0)?(c[(g&p)+24>>2]&2048|0)==0:0)?(Fc(d,25568,7)|0)==0:0){c[(e&p)>>2]=d;th(b,28440,e);b=1}else b=0;i=f;return b|0}function Mr(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,o=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0;x=i;i=i+16|0;if((i|0)>=(j|0))fa();w=x;do if(d){t=e&1;v=(f|0)!=0;if(v){g=c[(f&p)>>2]|0;r=32768}else{g=St(d,e)|0;g=mh(b,g,((g|0)<0)<<31>>31)|0;r=0}c[(w&p)>>2]=g;if(g){l=(t|0)==0;if(!l)if(!(c[(d&p)+12>>2]|0))q=(c[(d&p)+20>>2]|0)==0?16396:8220;else q=8220;else q=48;s=q&60;u=d+4|0;m=c[(u&p)>>2]|0;if((m&1024|0)==0?(h=c[(d&p)+8>>2]|0,(h|0)!=0):0){k=h;while(1)if(!(a[(k&n)>>0]|0))break;else k=k+1|0;o=(k-h&1073741823)+1|0}else o=0;if(l){if(!(m&16384))k=(m&8192|0)==0?48:28;else k=12;kw(g|0,d|0,k|0)|0;fw(g+k|0,0,48-k|0)|0}else kw(g|0,d|0,s|0)|0;m=g+4|0;h=q&24576|r|c[(m&p)>>2]&-122881;c[(m&p)>>2]=h;if(o){h=g+s|0;c[(g&p)+8>>2]=h;kw(h|0,c[(d&p)+8>>2]|0,o|0)|0;h=c[(m&p)>>2]|0}k=c[(u&p)>>2]|0;do if(!((h|k)&16384)){h=d+20|0;if(!(k&2048)){c[(g&p)+20>>2]=Pr(b,c[(h&p)>>2]|0,t)|0;break}else{c[(g&p)+20>>2]=gr(b,c[(h&p)>>2]|0,t)|0;break}}while(0);h=c[(m&p)>>2]|0;if(!(h&24576)){if(c[(u&p)>>2]&16384)break;c[(g&p)+12>>2]=Mr(b,c[(d&p)+12>>2]|0,0,0)|0;c[(g&p)+16>>2]=Mr(b,c[(d&p)+16>>2]|0,0,0)|0;break}t=Tt(d,e)|0;c[(w&p)>>2]=(c[(w&p)>>2]|0)+t;if(h&8192){c[(g&p)+12>>2]=Mr(b,c[(d&p)+12>>2]|0,1,w)|0;c[(g&p)+16>>2]=Mr(b,c[(d&p)+16>>2]|0,1,w)|0}if(v)c[(f&p)>>2]=c[(w&p)>>2]}}else g=0;while(0);i=x;return g|0}function Nr(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;a:do if((b|0)!=0?(d=mh(a,8,0)|0,(d|0)!=0):0){g=b+4|0;c[(d&p)+4>>2]=c[(g&p)>>2];e=mh(a,c[(g&p)>>2]<<3,0)|0;c[(d&p)>>2]=e;if(!e){mg(a,d);d=0;break}if((c[(g&p)>>2]|0)>0){f=0;while(1){h=c[(b&p)>>2]|0;c[(e+(f<<3)&p)>>2]=kh(a,c[(h+(f<<3)&p)>>2]|0)|0;c[(e+(f<<3)&p)+4>>2]=c[(h+(f<<3)&p)+4>>2];f=f+1|0;if((f|0)>=(c[(g&p)>>2]|0))break a;e=c[(d&p)>>2]|0}}}else d=0;while(0);return d|0}function Or(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0;f=e+4|0;g=(c[(f&p)>>2]|0)+40|0;b=mh(b,g,0)|0;if(b){fw(b|0,0,g|0)|0;g=b+40|0;kw(g|0,c[(e&p)>>2]|0,c[(f&p)>>2]|0)|0;c[(b&p)+12>>2]=g;c[(b&p)+16>>2]=c[(f&p)>>2];a[(b&n)>>0]=d}return b|0}function Pr(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0;do if((d|0)!=0?(f=mh(b,8,0)|0,(f|0)!=0):0){g=c[(d&p)>>2]|0;c[(f&p)>>2]=g;if(!(e&1)){h=c[(d&p)>>2]|0;g=1;while(1)if((g|0)<(h|0))g=g<<1;else break}g=mh(b,g*20|0,0)|0;c[(f&p)+4>>2]=g;if(!g){mg(b,f);f=0;break}if((c[(d&p)>>2]|0)>0){i=0;h=c[(d&p)+4>>2]|0;while(1){c[(g&p)>>2]=Mr(b,c[(h&p)>>2]|0,e,0)|0;c[(g&p)+4>>2]=kh(b,c[(h&p)+4>>2]|0)|0;c[(g&p)+8>>2]=kh(b,c[(h&p)+8>>2]|0)|0;a[(g&n)+12>>0]=a[(h&n)+12>>0]|0;j=g+13|0;k=a[(j&n)>>0]|0;a[(j&n)>>0]=k&-2;a[(j&n)>>0]=a[(h&n)+13>>0]&2|k&-4;c[(g&p)+16>>2]=c[(h&p)+16>>2];i=i+1|0;if((i|0)>=(c[(d&p)>>2]|0))break;else{g=g+20|0;h=h+20|0}}}}else f=0;while(0);return f|0}function Qr(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0;o=i;i=i+16|0;if((i|0)>=(j|0))fa();k=o;l=c[(a&p)>>2]|0;f=c[(b&p)+20>>2]|0;a:do if(f){e=c[(l&p)+20>>2]|0;if((e|0)>0){d=c[(l&p)+16>>2]|0;h=0;while(1){g=h+1|0;if((c[(d+(h<<4)&p)+12>>2]|0)==(f|0)){g=h;break a}if((g|0)<(e|0))h=g;else break}}else g=0}else g=-1e6;while(0);d=bn((c[(b&p)+24>>2]|0)+8|0,c[(b&p)+4>>2]|0,k)|0;if(!d)f=0;else f=c[(d&p)+8>>2]|0;d=c[((c[(l&p)+16>>2]|0)+(g<<4)&p)>>2]|0;e=(g|0)==1;if((((Sq(a,e?14:16,c[(b&p)>>2]|0,c[(f&p)>>2]|0,d)|0)==0?(Sq(a,9,e?13184:13208,0,d)|0)==0:0)?(m=Oq(a)|0,(m|0)!=0):0)?(n=c[(a&p)+408>>2]|0,Ar(a,g),n=((n|0)==0?a:n)+328|0,c[(n&p)>>2]=c[(n&p)>>2]|1<>2]|0,0),xh(m,n+4|0,10720,-2),Dr(a,g),wh(m,61,0,0,0)|0,n=c[(b&p)>>2]|0,xh(m,wh(m,126,g,0,0)|0,n,0),n=a+72|0,(c[(n&p)>>2]|0)<3):0)c[(n&p)>>2]=3;i=o;return}function Rr(d,e,f,g,h,k,l){d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;var m=0,q=0,r=0,s=0,t=0,u=0,v=0;v=i;i=i+32|0;if((i|0)>=(j|0))fa();m=v;t=c[(d&p)>>2]|0;c[(m&p)>>2]=0;c[(m&p)+4>>2]=0;c[(m&p)+8>>2]=0;c[(m&p)+12>>2]=0;c[(m&p)+16>>2]=0;c[(m&p)+20>>2]=0;c[(m&p)+24>>2]=0;c[(m&p)+28>>2]=0;c[(m&p)>>2]=d;do if(h)if((a[(h&n)>>0]|0)!=27)if(!(ls(m,h)|0)){u=5;break}else{u=13;break}else{a[(h&n)>>0]=97;u=5;break}else u=5;while(0);a:do if((u|0)==5){do if(k)if((a[(k&n)>>0]|0)!=27)if(!(ls(m,k)|0))break;else{u=13;break a}else{a[(k&n)>>0]=97;break}while(0);do if(l)if((a[(l&n)>>0]|0)!=27)if(!(ls(m,l)|0))break;else{u=13;break a}else{a[(l&n)>>0]=97;break}while(0);if(g){if((a[(g&n)>>0]|0)==97)g=c[(g&p)+8>>2]|0;else g=0;if(Sq(d,e,g,0,0)|0)break}s=Oq(d)|0;m=d+60|0;g=c[(m&p)>>2]|0;q=d+56|0;r=c[(q&p)>>2]|0;if((r|0)<4){r=d+72|0;g=c[(r&p)>>2]|0;c[(r&p)>>2]=g+4;g=g+1|0}else{c[(m&p)>>2]=g+4;c[(q&p)>>2]=r+-4}Rq(d,h,g);Rq(d,k,g+1|0);Rq(d,l,g+2|0);if(s){g=g+3|0;wh(s,1,0,g-(b[(f&o)>>1]|0)|0,g)|0;g=c[(s&p)+4>>2]|0;if(g)a[(g+(((c[(s&p)+32>>2]|0)+-1|0)*20|0)&n)+3>>0]=b[(f&o)>>1];xh(s,-1,f,-5);wh(s,144,(e|0)==24&1,0,0)|0}}while(0);if((u|0)==13){f=d+64|0;c[(f&p)>>2]=(c[(f&p)>>2]|0)+1}Gk(t,h);Gk(t,k);Gk(t,l);i=v;return}function Sr(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0;m=i;i=i+16|0;if((i|0)>=(j|0))fa();l=m;g=m+4|0;h=c[(b&p)>>2]|0;a:do if(!(Gn(b)|0)){if(!d){Ut(b,0);break}if(!((e|0)!=0?(c[(e&p)>>2]|0)!=0:0))f=6;do if((f|0)==6){f=Wq(c[(b&p)>>2]|0,d)|0;if(!f)break a;if(!(Yn(h,a[(h&n)+62>>0]|0,f,0)|0)){mg(h,f);break}else{Ut(b,f);mg(h,f);break a}}while(0);d=er(b,d,e,g)|0;if((d|0)>=0?(k=Wq(h,c[(g&p)>>2]|0)|0,(k|0)!=0):0){e=c[((c[(h&p)+16>>2]|0)+(d<<4)&p)>>2]|0;f=_h(h,k,e)|0;if(f){Vt(b,f,0);mg(h,k);break}e=bq(h,k,e)|0;mg(h,k);if(!e){th(b,28872,l);break}else{f=c[(b&p)+408>>2]|0;Ar(b,d);f=((f|0)==0?b:f)+328|0;c[(f&p)>>2]=c[(f&p)>>2]|1<=(j|0))fa();f=h;g=c[(a&p)>>2]|0;if(!(Gn(a)|0)){do if(!b){b=g+20|0;e=c[(b&p)>>2]|0;if((e|0)>0){d=0;do{if((d|0)!=1){Wt(a,d);e=c[(b&p)>>2]|0}d=d+1|0}while((d|0)<(e|0))}}else{if(c[(d&p)+4>>2]|0){e=er(a,b,d,f)|0;if((e|0)<=-1)break;e=c[((c[(g&p)+16>>2]|0)+(e<<4)&p)>>2]|0;b=Wq(g,c[(f&p)>>2]|0)|0;if(!b)break;d=bq(g,b,e)|0;if(!d){e=sh(a,0,b,e)|0;if(e)Xt(a,e,0)}else Xt(a,c[(d&p)+12>>2]|0,d);mg(g,b);break}d=Wq(g,b)|0;e=Vh(g,d)|0;mg(g,d);if((e|0)>-1){Wt(a,e);break}d=Wq(g,b)|0;if(d){e=bq(g,d,0)|0;if(!e){e=sh(a,0,d,0)|0;if(e)Xt(a,e,0)}else Xt(a,c[(e&p)+12>>2]|0,e);mg(g,d)}}while(0);e=Oq(a)|0;if(e)wh(e,144,0,0,0)|0}i=h;return}function Ur(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,i=0;f=c[(d&p)>>2]|0;if(!f)e=d+4|0;else{i=c[(a&p)>>2]|0;g=c[(i&p)+20>>2]|0;i=c[(i&p)+16>>2]|0;a:do if((g|0)>0){h=0;while(1){e=h+1|0;if((c[(i+(h<<4)&p)+12>>2]|0)==(f|0)){e=h;break a}if((e|0)<(g|0))h=e;else break}}else e=0;while(0);e=i+(e<<4)|0}return sh(a,b,c[(d&p)+8>>2]|0,c[(e&p)>>2]|0)|0}function Vr(b,d){b=b|0;d=d|0;var e=0,f=0,g=0;g=i;i=i+16|0;if((i|0)>=(j|0))fa();f=g;if(d){e=d;while(1)if(!(a[(e&n)>>0]|0))break;else e=e+1|0;if((e-d&1073741823)>>>0>6?(Fc(d,25568,7)|0)==0:0){c[(f&p)>>2]=d;th(b,25576,f);e=1}else e=0}else e=0;i=g;return e|0}function Wr(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;f=i;i=i+16|0;if((i|0)>=(j|0))fa();e=f;if(!b){c[(e&p)>>2]=d;a=uh(a,25992,e)|0}else{c[(e&p)>>2]=b;c[(e&p)+4>>2]=d;e=uh(a,26e3,e)|0;mg(a,b);a=e}i=f;return a|0}function Xr(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;h=i;i=i+16|0;if((i|0)>=(j|0))fa();g=h;e=c[(a&p)>>2]|0;f=c[((c[(e&p)+16>>2]|0)&p)+28>>2]|0;if((c[(b&p)+68>>2]|0)!=(f|0)?(d=As(a,b)|0,(d|0)!=0):0){b=d;d=0;do{if((c[(b&p)+20>>2]|0)==(f|0))d=Wr(e,d,c[(b&p)>>2]|0)|0;b=c[(b&p)+32>>2]|0}while((b|0)!=0);if(d){b=c[(a&p)>>2]|0;c[(g&p)>>2]=d;b=uh(b,25968,g)|0;mg(c[(a&p)>>2]|0,d);d=b}else d=0}else d=0;i=h;return d|0}function Yr(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,q=0,r=0;r=i;i=i+16|0;if((i|0)>=(j|0))fa();n=r;o=Oq(a)|0;if(o){e=c[(a&p)>>2]|0;h=c[(b&p)+68>>2]|0;a:do if(h){k=c[(e&p)+20>>2]|0;if((k|0)>0){f=c[(e&p)+16>>2]|0;g=0;while(1){e=g+1|0;if((c[(f+(g<<4)&p)+12>>2]|0)==(h|0))break a;if((e|0)<(k|0))g=e;else{g=e;break}}}else g=0}else g=-1e6;while(0);e=As(a,b)|0;if(e)do{f=c[(a&p)>>2]|0;l=c[(e&p)+20>>2]|0;b:do if(l){m=c[(f&p)+20>>2]|0;if((m|0)>0){k=c[(f&p)+16>>2]|0;h=0;while(1){f=h+1|0;if((c[(k+(h<<4)&p)+12>>2]|0)==(l|0)){f=h;break b}if((f|0)<(m|0))h=f;else break}}else f=0}else f=-1e6;while(0);m=c[(e&p)>>2]|0;xh(o,wh(o,126,f,0,0)|0,m,0);e=c[(e&p)+32>>2]|0}while((e|0)!=0);e=c[(b&p)>>2]|0;xh(o,wh(o,124,g,0,0)|0,e,0);e=c[(a&p)>>2]|0;c[(n&p)>>2]=d;e=uh(e,25952,n)|0;if((e|0)!=0?(Ir(o,g,e),q=Xr(a,b)|0,(q|0)!=0):0)Ir(o,1,q)}i=r;return} function gh(f){f=f|0;var g=0,l=0,m=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,E=0,F=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ea=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,cc=0,dc=0,ec=0,fc=0,gc=0,hc=0,ic=0,kc=0,nc=0,oc=0,qc=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,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,Xc=0,Yc=0,Zc=0,_c=0,$c=0,ad=0,ed=0,fd=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,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,ee=0,fe=0,ge=0,he=0,ie=0,je=0,ke=0,le=0,me=0,ne=0,oe=0,pe=0,qe=0;oe=i;i=i+1040|0;if((i|0)>=(j|0))fa();ke=oe+400|0;Tc=oe+792|0;id=oe+392|0;ad=oe+788|0;Sd=oe+320|0;md=oe+784|0;pd=oe+780|0;qd=oe+280|0;Nd=oe+680|0;$c=oe+240|0;Qd=oe+200|0;_c=oe+676|0;Xc=oe+672|0;Od=oe+160|0;Uc=oe+644|0;td=oe+152|0;Jd=oe+112|0;kd=oe+640|0;Ld=oe+636|0;Yc=oe+632|0;ud=oe+628|0;Ad=oe+624|0;wd=oe+604|0;Bd=oe+600|0;od=oe+596|0;xd=oe+576|0;Sc=oe+840|0;Cd=oe+572|0;Pd=oe+104|0;Dd=oe+568|0;ed=oe+564|0;fd=oe+96|0;Rd=oe+88|0;Ed=oe+560|0;Fd=oe+556|0;Gd=oe+552|0;yd=oe+532|0;zd=oe+512|0;jd=oe+508|0;vd=oe+504|0;Zc=oe+488|0;Md=oe+48|0;Vc=oe+456|0;Rc=oe+444|0;Kd=oe+8|0;sd=oe+440|0;Id=oe+412|0;Hd=oe;zc=f+4|0;s=c[(zc&p)>>2]|0;le=c[(f&p)>>2]|0;Jc=a[(le&n)+62>>0]|0;Nc=f+8|0;z=c[(Nc&p)>>2]|0;ne=le+32|0;l=ne;m=c[(l&p)>>2]|0;l=c[(l&p)+4>>2]|0;me=f+80|0;a:do if((c[(me&p)>>2]|0)==7){y=le+65|0;z=f+44|0;r=m;g=0;t=0;m=0;ie=1317}else{c[(me&p)>>2]=0;de=f+136|0;c[(de&p)>>2]=0;c[(de&p)+4>>2]=0;de=f+20|0;c[(de&p)>>2]=0;c[(le&p)+452>>2]=0;Cc=le+240|0;b:do if(!(c[(Cc&p)>>2]|0)){be=le+292|0;if(c[(be&p)>>2]|0){r=c[(f&p)+124>>2]|0;g=le+300|0;y=c[(g&p)>>2]|0;if(!r)yc=g;else{yc=g;y=(r>>>0)%(y>>>0)|0}}else{yc=le+300|0;y=0}he=f+76|0;ge=le+65|0;Zd=le+296|0;sb=f+176|0;tb=f+184|0;ub=f+92|0;vb=le+80|0;wb=le+84|0;xb=Jc&255;yb=Jc<<24>>24==1;zb=le+88|0;Ab=f+60|0;_d=f+144|0;fe=f+86|0;je=f+44|0;Bb=f+12|0;Cb=Uc+4|0;Db=Uc+16|0;Eb=Uc+12|0;Fb=Uc+25|0;Gb=Uc+20|0;Hb=f+200|0;Ib=f+56|0;$d=f+72|0;Jb=Jd+16|0;Kb=Jd+8|0;Lb=Jd+24|0;Mb=f+87|0;ae=le+156|0;Nb=le+500|0;Ob=le+496|0;ee=le+63|0;Pb=le+488|0;Qb=le+504|0;Rb=le+512|0;Sb=le+70|0;Tb=le+24|0;Ub=le+20|0;Xd=le+16|0;Vb=le+4|0;Yd=f+88|0;Wb=f+104|0;Xb=f+152|0;Yb=f+160|0;Zb=le+152|0;_b=le+64|0;$b=wd+4|0;cc=wd+6|0;dc=wd+8|0;ec=xd+4|0;fc=xd+8|0;gc=le+212|0;hc=le+208|0;ic=f+116|0;kc=yd+4|0;nc=yd+6|0;oc=yd+8|0;qc=$c+8|0;sc=$c+32|0;uc=$c+24|0;vc=$c+16|0;wc=$c+12|0;xc=zd+4|0;Y=zd+6|0;Z=zd+8|0;_=qd+8|0;$=qd+32|0;aa=qd+24|0;ea=qd+12|0;ga=qd+16|0;ha=le+164|0;ia=Zc+8|0;ja=Zc+4|0;ka=le+145|0;la=Zc+12|0;ma=Sd+4|0;na=Sd+12|0;oa=Sd+16|0;pa=Sd+20|0;qa=Sd+24|0;ra=Sd+28|0;sa=Sd+8|0;ta=Sd+40|0;ua=Sd+44|0;va=Sd+48|0;wa=Sd+52|0;xa=Sd+56|0;ya=Sd+60|0;za=Sd+64|0;Aa=Sd+65|0;Ba=le+128|0;Ca=f+28|0;Da=f+36|0;Ea=f+32|0;Fa=f+196|0;Ga=Vc+4|0;Ha=Vc+8|0;Ia=Md+8|0;Ja=Md+32|0;Ka=Md+24|0;La=Vc+20|0;Ma=Vc+12|0;Na=Vc+16|0;Oa=Vc+24|0;Pa=Rc+8|0;Qa=Rc+4|0;Ra=le+148|0;Sa=le+176|0;Ta=le+72|0;Ua=le+67|0;Va=Tc+20|0;Wa=Tc+24|0;Xa=Tc+4|0;Ya=Tc+16|0;Za=le+304|0;_a=le+328|0;$a=Kd+32|0;ab=Kd+8|0;bb=Kd+24|0;cb=le+308|0;db=Id+20|0;eb=le+69|0;ce=f+168|0;fb=qd+4|0;gb=qd+8|0;hb=qd+12|0;ib=qd+16|0;jb=qd+20|0;kb=qd+24|0;lb=qd+25|0;mb=le+180|0;nb=Od+32|0;ob=Od+8|0;pb=Od+12|0;qb=Od+16|0;rb=Od+24|0;W=0;X=0;g=0;u=0;t=c[(he&p)>>2]|0;x=0;c:while(1){r=m;d:while(1){if(a[(ge&n)>>0]|0){y=ge;z=je;m=x;ie=1317;break a}m=g+1|0;if(!(a[(s+(t*20|0)&n)+2>>0]&2))L=u;else{u=c[(s+(t*20|0)&p)+8>>2]|0;g=z+(u*40|0)|0;u=z+(u*40|0)+8|0;if(b[(u&o)>>1]&9312)vg(g);b[(u&o)>>1]=4;L=g}C=s+(t*20|0)|0;J=a[(C&n)>>0]|0;u=J&255;e:do switch(u|0){case 17:{g=m;m=r;u=L;ie=22;break d}case 18:{g=m;m=r;u=L;ie=23;break d}case 20:{g=m;m=r;ie=24;break d}case 21:{g=m;m=r;u=L;ie=25;break d}case 22:{g=m;m=r;u=L;ie=26;break d}case 23:{g=m;m=r;u=L;r=t;ie=27;break d}case 29:{g=m;m=r;r=t;ie=65;break d}case 30:{g=m;m=r;u=L;r=t;ie=66;break d}case 28:{g=m;m=r;u=L;r=t;ie=60;break d}case 32:{g=m;m=r;r=t;ie=72;break d}case 24:{g=m;m=r;u=L;r=t;ie=28;break d}case 25:{g=m;m=r;u=L;r=t;ie=44;break d}case 26:{g=m;m=r;u=L;r=t;ie=45;break d}case 133:{g=m;m=r;u=L;r=t;ie=46;break d}case 97:{a[(C&n)>>0]=27;C=s+(t*20|0)+16|0;v=c[(C&p)>>2]|0;if(!v)g=0;else{g=v;while(1)if(!(a[(g&n)>>0]|0))break;else g=g+1|0;g=g-v&1073741823}w=s+(t*20|0)+4|0;c[(w&p)>>2]=g;if(yb)u=0;else{u=Xg(L,v,-1,1,0)|0;if((u|0)==18){g=m;m=r;u=x;ie=1316;break c}if(Yl(L,xb)|0){y=ge;z=je;g=m;m=x;ie=1317;break a}c[(L&p)+24>>2]=0;g=L+8|0;b[(g&o)>>1]=e[(g&o)>>1]|2048;g=s+(t*20|0)+1|0;if((a[(g&n)>>0]|0)==-1)mg(le,c[(C&p)>>2]|0);a[(g&n)>>0]=-1;v=c[(L&p)+16>>2]|0;c[(C&p)>>2]=v;g=c[(L&p)+12>>2]|0;c[(w&p)>>2]=g}if((g|0)>(c[(zb&p)>>2]|0)){g=m;m=r;u=x;ie=1316;break c}else ie=57;break}case 31:{g=m;m=r;u=L;r=t;ie=67;break d}case 34:{g=m;m=r;r=t;ie=79;break d}case 35:{g=m;m=r;u=x;ie=80;break c}case 33:{g=m;m=r;ie=74;break d}case 94:{g=m;m=r;ie=94;break d}case 93:case 92:case 91:case 90:case 89:{g=m;P=C;m=r;r=t;ie=112;break d}case 27:{v=c[(s+(t*20|0)&p)+16>>2]|0;g=c[(s+(t*20|0)&p)+4>>2]|0;u=0;ie=57;break}case 16:{t=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;u=0;ie=19;break}case 36:{g=m;m=r;J=L;r=t;ie=166;break d}case 1:{V=a[(s+(t*20|0)&n)+3>>0]|0;C=V&255;A=c[(Bb&p)>>2]|0;g=z+((c[(s+(t*20|0)&p)+12>>2]|0)*40|0)|0;c[(Uc&p)>>2]=g;if(V<<24>>24){g=0;u=z+((c[(s+(t*20|0)&p)+8>>2]|0)*40|0)|0;while(1){c[(A+(g<<2)&p)>>2]=u;if((b[(u&o)+8>>1]&4096)!=0?(Vl(u)|0)!=0:0){y=ge;z=je;g=m;m=x;ie=1317;break a}g=g+1|0;if((g|0)>=(C|0))break;else u=u+40|0}g=c[(Uc&p)>>2]|0}V=c[(s+(t*20|0)&p)+16>>2]|0;c[(Cb&p)>>2]=V;c[(Db&p)>>2]=t;c[(Eb&p)>>2]=f;U=g+8|0;b[(U&o)>>1]=e[(U&o)>>1]&48640|1;a[(Fb&n)>>0]=0;U=ne;c[(U&p)>>2]=r;c[(U&p)+4>>2]=l;mc[c[(V&p)+12>>2]&63](Uc,C,A);l=ne;r=c[(l&p)>>2]|0;l=c[(l&p)+4>>2]|0;if(!(a[(Fb&n)>>0]|0))g=0;else{if(!(c[(Gb&p)>>2]|0))g=0;else{c[(ke&p)>>2]=Sg(c[(Uc&p)>>2]|0,1)|0;dh(je,le,10344,ke);g=c[(Gb&p)>>2]|0}em(f,t,c[(s+(t*20|0)&p)+4>>2]|0)}Yl(c[(Uc&p)>>2]|0,xb)|0;w=c[(Uc&p)>>2]|0;v=e[(w&o)+8>>1]|0;if(v&18){u=c[(w&p)+12>>2]|0;if(v&16384)u=(c[(w&p)>>2]|0)+u|0;if((u|0)>(c[((c[(w&p)+32>>2]|0)&p)+88>>2]|0)){g=m;m=r;u=x;ie=1316;break c}else{C=L;T=t;u=g}}else{C=L;T=t;u=g}break}case 88:case 87:case 86:case 85:{g=m;H=C;m=r;r=t;ie=184;break d}case 39:{g=m;m=r;J=L;r=t;ie=208;break d}case 37:{g=m;m=r;u=L;r=t;ie=202;break d}case 38:{g=m;m=r;J=L;r=t;ie=203;break d}case 83:case 80:case 81:case 82:case 78:case 79:{g=m;I=J;m=r;u=L;ie=213;break d}case 40:{V=c[(s+(t*20|0)&p)+4>>2]|0;g=z+(V*40|0)|0;if(!(b[(z+(V*40|0)&o)+8>>1]&16384))u=0;else u=Rg(g)|0;gm(g,c[(s+(t*20|0)&p)+8>>2]&255,Jc);C=L;T=t;break}case 41:{g=m;m=r;u=L;r=t;ie=248;break d}case 42:{g=m;m=r;u=L;r=t;ie=249;break d}case 43:{g=m;m=r;u=L;ie=256;break d}case 71:case 72:{g=m;m=r;r=t;ie=261;break d}case 76:{g=m;m=r;u=L;r=t;ie=286;break d}case 19:{g=m;m=r;r=t;ie=268;break d}case 96:{g=m;m=r;r=t;ie=273;break d}case 44:{g=m;m=r;u=L;r=t;ie=278;break d}case 46:case 45:{g=m;m=r;u=L;r=t;ie=281;break d}case 77:{g=m;m=r;u=L;r=t;ie=288;break d}case 47:{g=m;m=r;u=L;ie=290;break d}case 48:{g=m;m=r;u=L;r=t;ie=368;break d}case 49:{g=m;m=r;ie=371;break d}case 50:{E=c[(c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]&p)>>2]|0;f:do if(c[(E&p)+60>>2]|0){g=qm(E)|0;if(!g){K=E+76|0;H=E+44|0;F=E+72|0;v=0;u=0;g:while(1){C=b[(K&o)>>1]|0;J=c[(E+(C<<16>>16<<2)&p)+120>>2]|0;if(!(a[(J&n)+5>>0]|0)){if(!(a[(J&n)+2>>0]|0)){v=jw(e[(J&o)+18>>1]|0,0,v|0,u|0)|0;u=G}}else{v=jw(e[(J&o)+18>>1]|0,0,v|0,u|0)|0;u=G;while(1){if(!(C<<16>>16))break g;if(J){Bg(c[(J&p)+68>>2]|0);C=b[(K&o)>>1]|0}C=C+-1<<16>>16;b[(K&o)>>1]=C;b[(H&o)>>1]=0;a[(F&n)>>0]=d[(F&n)>>0]&249;J=C<<16>>16;A=E+(J<<1)+78|0;I=b[(A&o)>>1]|0;J=c[(E+(J<<2)&p)+120>>2]|0;if((I&65535)<(e[(J&o)+18>>1]|0)){C=I;break}}b[(A&o)>>1]=C+1<<16>>16;J=b[(K&o)>>1]|0;C=J;J=c[(E+(J<<16>>16<<2)&p)+120>>2]|0}C=b[(E+(C<<16>>16<<1)&o)+78>>1]|0;A=c[(J&p)+56>>2]|0;if(C<<16>>16==(b[(J&o)+18>>1]|0)){g=d[(J&n)+6>>0]|0;g=rm(E,d[(A+g&n)+9>>0]<<16|d[(A+g&n)+8>>0]<<24|d[(A+g&n)+10>>0]<<8|d[(A+g&n)+11>>0])|0}else{g=(C&65535)<<1;V=c[(J&p)+64>>2]|0;g=(d[(V+g&n)>>0]<<8|d[(V+(g|1)&n)>>0])&e[(J&o)+20>>1];g=rm(E,d[(A+g&n)+1>>0]<<16|d[(A+g&n)>>0]<<24|d[(A+g&n)+2>>0]<<8|d[(A+g&n)+3>>0])|0}if(g){v=0;u=0;break f}}g=qm(E)|0}else{v=0;u=0}}else{g=0;v=0;u=0}while(0);C=L;c[(C&p)>>2]=v;c[(C&p)+4>>2]=u;C=L;T=t;u=g;break}case 2:{O=c[(s+(t*20|0)&p)+4>>2]|0;v=c[(s+(t*20|0)&p)+16>>2]|0;if(!O){g=m;m=r;r=t;ie=446;break d}g=c[(Pb&p)>>2]|0;if(!g){s=v;g=m;m=r;u=x;ie=460;break c}else u=0;while(1){if(!(dd(c[(g&p)>>2]|0,v)|0)){M=g;break}g=c[(g&p)+24>>2]|0;if(!g){s=v;g=m;m=r;u=x;ie=460;break c}else u=u+1|0}H=(O|0)==1;if((c[(ae&p)>>2]|0)>0&H){g=m;m=r;u=x;ie=462;break c}F=M+24|0;if(!(c[(F&p)>>2]|0)){A=(a[(Sb&n)>>0]|0)!=0;if(A&H){g=tm(f,1)|0;if(g)break a;a[(ee&n)>>0]=1;if((Rl(f)|0)==5){g=t;ie=467;break c}a[(Sb&n)>>0]=0;A=1;K=u;u=c[(me&p)>>2]|0}else ie=469}else{A=0;ie=469}if((ie|0)==469){ie=0;K=(c[(Ob&p)>>2]|0)-u+-1|0;if((O|0)==2){C=(c[(Tb&p)>>2]|0)>>>1&1;if((c[(Ub&p)>>2]|0)>0){J=C^1;I=0;while(1){u=Il(c[((c[(Xd&p)>>2]|0)+(I<<4)&p)+4>>2]|0,516,J)|0;I=I+1|0;if(u){g=m;m=r;ie=1318;break c}g=c[(Ub&p)>>2]|0;if((I|0)>=(g|0)){ie=475;break}}}}else{g=c[(Ub&p)>>2]|0;C=0;ie=475}if((ie|0)==475){ie=0;if((g|0)>0){E=0;do{u=um(c[((c[(Xd&p)>>2]|0)+(E<<4)&p)+4>>2]|0,O,K)|0;E=E+1|0;if(u){g=m;m=r;ie=1318;break c}}while((E|0)<(c[(Ub&p)>>2]|0))}}if(!C)u=0;else{C=c[(Vb&p)>>2]|0;if(C)do{V=C+88|0;b[(V&o)>>1]=b[(V&o)>>1]|8;C=c[(C&p)+52>>2]|0}while((C|0)!=0);Eg(le);c[(Tb&p)>>2]=c[(Tb&p)>>2]|2;u=0}}C=c[(Pb&p)>>2]|0;if((C|0)!=(M|0))do{c[(Pb&p)>>2]=c[(C&p)+24>>2];mg(le,C);c[(Ob&p)>>2]=(c[(Ob&p)>>2]|0)+-1;C=c[(Pb&p)>>2]|0}while((C|0)!=(M|0));if(H){c[(Pb&p)>>2]=c[(F&p)>>2];mg(le,M);if(A){C=L;T=t;break e}else{g=m;C=O;m=r;A=K;E=L;r=t;ie=486;break d}}else{V=M+8|0;U=c[(V&p)+4>>2]|0;T=Qb;c[(T&p)>>2]=c[(V&p)>>2];c[(T&p)+4>>2]=U;T=M+16|0;U=c[(T&p)+4>>2]|0;V=Rb;c[(V&p)>>2]=c[(T&p)>>2];c[(V&p)+4>>2]=U;if(A){C=L;T=t;break e}else{C=O;g=m;m=r;A=K;E=L;r=t;ie=488;break d}}}case 3:{u=x;ie=489;break c}case 4:{v=s+(t*20|0)+8|0;g=c[(v&p)>>2]|0;if((g|0)!=0?(c[(Tb&p)>>2]&33554432|0)!=0:0){g=m;m=r;u=8;ie=1318;break c}I=s+(t*20|0)+4|0;J=c[((c[(Xd&p)>>2]|0)+(c[(I&p)>>2]<<4)&p)+4>>2]|0;if(!J){v=0;u=0;g=0}else{u=yg(J,g)|0;if((u|0)==5){g=t;ie=508;break c}else if(u){g=m;m=r;ie=1318;break c}do if((c[(v&p)>>2]|0)!=0?(b[(Yd&o)>>1]&32)!=0:0){if((a[(ee&n)>>0]|0)!=0?(c[(Zb&p)>>2]|0)<=1:0){g=0;break}g=c[(Wb&p)>>2]|0;if(!g){g=(c[(Nb&p)>>2]|0)+1|0;c[(Nb&p)>>2]=g;g=(c[(Ob&p)>>2]|0)+g|0;c[(Wb&p)>>2]=g}g=sm(le,0,g+-1|0)|0;if(!g){g=c[(Wb&p)>>2]|0;V=c[(J&p)+4>>2]|0;c[(V&p)+4>>2]=c[(J&p)>>2];g=hl(c[(V&p)>>2]|0,g)|0}V=Qb;U=c[(V&p)+4>>2]|0;T=Xb;c[(T&p)>>2]=c[(V&p)>>2];c[(T&p)+4>>2]=U;T=Rb;U=c[(T&p)+4>>2]|0;V=Yb;c[(V&p)>>2]=c[(T&p)>>2];c[(V&p)+4>>2]=U}else g=0;while(0);v=c[(J&p)+4>>2]|0;c[(v&p)+4>>2]=c[(J&p)>>2];v=c[((c[(v&p)+12>>2]|0)&p)+56>>2]|0;v=d[(v&n)+41>>0]<<16|d[(v&n)+40>>0]<<24|d[(v&n)+42>>0]<<8|d[(v&n)+43>>0];u=c[((c[((c[(Xd&p)>>2]|0)+(c[(I&p)>>2]<<4)&p)+12>>2]|0)&p)+4>>2]|0}if(a[(s+(t*20|0)&n)+3>>0]|0){if((v|0)!=(c[(s+(t*20|0)&p)+12>>2]|0)){g=m;s=I;m=r;u=x;ie=522;break c}if((u|0)!=(c[(s+(t*20|0)&p)+16>>2]|0)){g=m;s=I;m=r;u=x;ie=522;break c}else{C=L;T=t;u=g}}else{C=L;T=t;u=g}break}case 53:{g=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;if((g|0)!=0?(c[(g&p)+28>>2]|0)==(c[(s+(t*20|0)&p)+8>>2]|0):0){v=s+(t*20|0)+3|0;u=0;ie=548}else ie=536;break}case 51:{g=m;m=r;u=L;r=t;ie=525;break d}case 52:{A=s+(t*20|0)+4|0;g=c[(A&p)>>2]|0;v=c[(Xd&p)>>2]|0;C=c[(s+(t*20|0)&p)+12>>2]|0;w=z+(C*40|0)|0;u=Vg(w)|0;V=w;c[(V&p)>>2]=u;c[(V&p)+4>>2]=G;C=z+(C*40|0)+8|0;b[(C&o)>>1]=e[(C&o)>>1]&48640|4;C=s+(t*20|0)+8|0;u=Dg(c[(v+(g<<4)&p)+4>>2]|0,c[(C&p)>>2]|0,u)|0;C=c[(C&p)>>2]|0;if((C|0)==1){c[(c[(v+(g<<4)&p)+12>>2]&p)>>2]=c[(w&p)>>2];c[(Tb&p)>>2]=c[(Tb&p)>>2]|2}else if((C|0)==2)a[((c[(v+(g<<4)&p)+12>>2]|0)&n)+76>>0]=c[(w&p)>>2];if((c[(A&p)>>2]|0)==1){g=c[(Vb&p)>>2]|0;if(g)do{V=g+88|0;b[(V&o)>>1]=b[(V&o)>>1]|8;g=c[(g&p)+52>>2]|0}while((g|0)!=0);b[(Yd&o)>>1]=b[(Yd&o)>>1]&-9;C=L;T=t}else{C=L;T=t}break}case 55:case 54:{ie=536;break}case 57:case 56:{g=xm(f,c[(s+(t*20|0)&p)+4>>2]|0,c[(s+(t*20|0)&p)+8>>2]|0,-1,1)|0;if(!g){y=ge;z=je;g=m;m=x;ie=1317;break a}a[(g&n)+25>>0]=1;J=g+27|0;a[(J&n)>>0]=a[(J&n)>>0]|1;v=g+4|0;I=s+(t*20|0)+3|0;u=zm(c[(le&p)>>2]|0,0,le,v,d[(I&n)>>0]|5,1054)|0;do if(!u){u=yg(c[(v&p)>>2]|0,1)|0;if(!u){A=c[(s+(t*20|0)&p)+16>>2]|0;C=c[(v&p)>>2]|0;if(!A){u=ym(C,1,1,0,c[(g&p)>>2]|0)|0;a[(J&n)>>0]=a[(J&n)>>0]|4;break}u=Am(C,ud,d[(I&n)>>0]|2)|0;if(!u){c[(g&p)+8>>2]=A;u=ym(c[(v&p)>>2]|0,c[(ud&p)>>2]|0,1,A,c[(g&p)>>2]|0)|0}a[(J&n)>>0]=a[(J&n)>>0]&-5}}while(0);a[(J&n)>>0]=((a[(I&n)>>0]|0)!=8&1)<<3&255|a[(J&n)>>0]&-9;C=L;T=t;break}case 58:{g=m;m=r;ie=558;break d}case 60:{g=m;m=r;u=L;ie=568;break d}case 61:{g=m;m=r;u=L;r=t;ie=570;break d}case 59:{g=m;m=r;u=L;r=t;ie=566;break d}case 65:case 64:case 63:case 62:{g=m;K=u;m=r;r=t;ie=571;break d}case 66:{g=m;m=r;u=L;r=t;ie=596;break d}case 69:case 68:case 67:{g=m;H=C;m=r;u=L;ie=597;break d}case 73:{g=m;m=r;u=L;r=t;ie=624;break d}case 70:{V=c[(s+(t*20|0)&p)+12>>2]|0;g=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;u=c[(g&p)>>2]|0;c[(Cd&p)>>2]=0;V=z+(V*40|0)|0;U=c[(V&p)>>2]|0;V=c[(V&p)+4>>2]|0;u=Cm(u,0,U,V,0,Cd)|0;v=g+48|0;c[(v&p)>>2]=U;c[(v&p)+4>>2]=V;a[(g&n)+25>>0]=0;c[(g&p)+60>>2]=0;a[(g&n)+26>>0]=0;v=c[(Cd&p)>>2]|0;if(v)t=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;c[(g&p)+12>>2]=v;C=L;T=t;break}case 74:{H=Pd;c[(H&p)>>2]=0;c[(H&p)+4>>2]=0;c[(Dd&p)>>2]=0;H=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;g=c[(H&p)>>2]|0;if(!g){u=0;v=0;g=0}else{K=H+27|0;do if(!(a[(K&n)>>0]&2)){u=Hm(g,Dd)|0;if(u){g=m;m=r;ie=1318;break c}if(c[(Dd&p)>>2]|0){V=Pd;c[(V&p)>>2]=1;c[(V&p)+4>>2]=0;break}km(c[(H&p)>>2]|0,Pd);u=Pd;g=c[(u&p)>>2]|0;u=c[(u&p)+4>>2]|0;if((g|0)==-1&(u|0)==2147483647){a[(K&n)>>0]=a[(K&n)>>0]|2;break}else{U=jw(g|0,u|0,1,0)|0;V=Pd;c[(V&p)>>2]=U;c[(V&p)+4>>2]=G;break}}while(0);J=c[(s+(t*20|0)&p)+12>>2]|0;if(J){g=c[(sb&p)>>2]|0;if(!g)C=z;else{while(1){u=c[(g&p)+4>>2]|0;if(!u)break;else g=u}C=c[(g&p)+16>>2]|0}I=C+(J*40|0)|0;A=Vg(I)|0;g=G;V=I;c[(V&p)>>2]=A;c[(V&p)+4>>2]=g;V=C+(J*40|0)+8|0;b[(V&o)>>1]=e[(V&o)>>1]&48640|4;if((A|0)==-1&(g|0)==2147483647){g=m;m=r;u=13;ie=1318;break c}if(a[(K&n)>>0]&2){g=m;m=r;u=13;ie=1318;break c}J=Pd;u=c[(J&p)>>2]|0;J=c[(J&p)+4>>2]|0;C=jw(A|0,g|0,1,0)|0;g=G;if((J|0)<(g|0)|(J|0)==(g|0)&u>>>0>>0){V=Pd;c[(V&p)>>2]=C;c[(V&p)+4>>2]=g}else{C=u;g=J}V=I;c[(V&p)>>2]=C;c[(V&p)+4>>2]=g}h:do if(!(a[(K&n)>>0]&2))g=0;else{u=0;while(1){cd(8,Pd);V=Pd;V=jw(c[(V&p)>>2]|0,c[(V&p)+4>>2]&1073741823|0,1,0)|0;g=G;U=Pd;c[(U&p)>>2]=V;c[(U&p)+4>>2]=g;g=Cm(c[(H&p)>>2]|0,0,V,g,0,Dd)|0;if(c[(Dd&p)>>2]|g)break h;u=u+1|0;if((u|0)>=100){g=m;m=r;u=13;ie=1318;break c}}}while(0);a[(H&n)+26>>0]=0;c[(H&p)+60>>2]=0;v=Pd;u=c[(v&p)>>2]|0;v=c[(v&p)+4>>2]|0}C=L;c[(C&p)>>2]=u;c[(C&p)+4>>2]=v;C=L;T=t;u=g;break}case 84:case 75:{g=m;C=J;m=r;u=L;r=t;ie=647;break d}case 95:{g=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;u=Jm(c[(g&p)>>2]|0)|0;c[(g&p)+60>>2]=0;if((((u|0)==0?(Gc=c[(gc&p)>>2]|0,(Gc|0)!=0):0)?(Hc=c[(s+(t*20|0)&p)+16>>2]|0,(Hc|0)!=0):0)?(a[(g&n)+27>>0]&4)!=0:0){V=g+48|0;bc[Gc&1](c[(hc&p)>>2]|0,9,c[((c[(Xd&p)>>2]|0)+(a[(g&n)+24>>0]<<4)&p)>>2]|0,Hc,c[(V&p)>>2]|0,c[(V&p)+4>>2]|0)}if(!(c[(s+(t*20|0)&p)+8>>2]&1)){C=L;T=t}else{c[(ub&p)>>2]=(c[(ub&p)>>2]|0)+1;C=L;T=t}break}case 98:{g=m;m=r;u=L;r=t;ie=671;break d}case 99:{g=m;m=r;u=L;r=t;ie=672;break d}case 100:{v=c[(s+(t*20|0)&p)+8>>2]|0;C=z+(v*40|0)|0;g=c[((c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0)&p)+56>>2]|0;if(!(a[(g&n)+56>>0]|0)){u=c[(g&p)+36>>2]|0;g=u;u=u+8|0}else{V=c[(g&p)+20>>2]|0;u=c[((c[(V&p)+8>>2]|0)&p)+4>>2]|0;V=c[(V&p)+12>>2]|0;g=V+(u*56|0)+20|0;u=c[(V+(u*56|0)&p)+32>>2]|0}g=c[(g&p)>>2]|0;if(!(fh(C,g)|0)){c[(z+(v*40|0)&p)+12>>2]=g;V=z+(v*40|0)+8|0;b[(V&o)>>1]=e[(V&o)>>1]&48640|16;kw(c[(z+(v*40|0)&p)+16>>2]|0,u|0,g|0)|0;u=0}else u=7;c[((c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+12>>2]<<2)&p)>>2]|0)&p)+60>>2]=0;T=t;break}case 102:case 101:{v=c[(s+(t*20|0)&p)+8>>2]|0;J=z+(v*40|0)|0;A=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;C=c[(A&p)>>2]|0;A=A+27|0;if(a[(A&n)>>0]&4){lm(C,ed);g=c[(ed&p)>>2]|0;if(g>>>0>(c[(zb&p)>>2]|0)>>>0){g=m;m=r;u=x;ie=1316;break c}}else{km(C,fd);T=fd;g=c[(T&p)>>2]|0;T=c[(T&p)+4>>2]|0;V=c[(zb&p)>>2]|0;U=((V|0)<0)<<31>>31;if((T|0)>(U|0)|(T|0)==(U|0)&g>>>0>V>>>0){g=m;m=r;u=x;ie=1316;break c}c[(ed&p)>>2]=g}if(fh(J,g>>>0>32?g:32)|0){y=ge;z=je;g=m;m=x;ie=1317;break a}c[(z+(v*40|0)&p)+12>>2]=g;g=z+(v*40|0)+8|0;b[(g&o)>>1]=e[(g&o)>>1]&48640|16;g=c[(ed&p)>>2]|0;u=c[(z+(v*40|0)&p)+16>>2]|0;if(!(a[(A&n)>>0]&4))u=Lm(C,0,g,u,0)|0;else u=Dh(C,0,g,u)|0;a[(z+(v*40|0)&n)+10>>0]=1;C=J;T=t;break}case 103:{v=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;w=v+25|0;if(a[(w&n)>>0]|0){g=m;m=r;u=L;r=t;ie=700;break d}do if(!(a[(v&n)+26>>0]|0)){g=c[(v&p)+32>>2]|0;if(g){V=c[(g&p)>>2]|0;u=rc[c[((c[(V&p)>>2]|0)&p)+48>>2]&127](g,Rd)|0;Mm(f,V);break}if((a[((c[(v&p)>>2]|0)&n)+73>>0]|0)!=1){u=jm(v)|0;if(u){g=m;m=r;ie=1318;break c}if(a[(w&n)>>0]|0){g=m;m=r;u=L;r=t;ie=708;break d}}km(c[(v&p)>>2]|0,Rd);u=0}else{U=v+48|0;V=c[(U&p)+4>>2]|0;u=Rd;c[(u&p)>>2]=c[(U&p)>>2];c[(u&p)+4>>2]=V;u=0}while(0);V=Rd;T=c[(V&p)+4>>2]|0;C=L;c[(C&p)>>2]=c[(V&p)>>2];c[(C&p)+4>>2]=T;C=L;T=t;break}case 108:{ie=715;break}case 104:{g=m;m=r;u=L;r=t;ie=711;break d}case 107:case 106:{c[(ic&p)>>2]=(c[(ic&p)>>2]|0)+1;ie=715;break}case 105:{T=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;u=c[(T&p)>>2]|0;c[(Ed&p)>>2]=0;u=Hm(u,Ed)|0;V=c[(Ed&p)>>2]|0;a[(T&n)+25>>0]=V;a[(T&n)+26>>0]=0;c[(T&p)+60>>2]=0;T=c[(s+(t*20|0)&p)+8>>2]|0;C=L;T=(T|0)>0&(V|0)!=0?T+-1|0:t;break}case 7:case 6:{if(!(c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0)){g=m;m=r;S=z;T=s;U=W;V=X;u=L;r=t;break d}else ie=765;break}case 5:{g=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;c[(Fd&p)>>2]=0;w=c[(g&p)+56>>2]|0;if(a[(w&n)+56>>0]|0){u=Wm(c[(w&p)+20>>2]|0,Fd)|0;ie=766;break e}u=w+36|0;v=c[(u&p)>>2]|0;V=v+4|0;c[(u&p)>>2]=c[(V&p)>>2];c[(V&p)>>2]=0;if(!((c[(w&p)+40>>2]|0)!=0|(v|0)==0))mg(le,v);c[(Fd&p)>>2]=(c[(u&p)>>2]|0)==0&1;u=0;ie=766;break}case 9:case 8:{ie=765;break}case 110:case 109:{A=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;S=c[(s+(t*20|0)&p)+8>>2]|0;u=c[(A&p)>>2]|0;C=s+(t*20|0)+3|0;if(a[(C&n)>>0]&1)c[(ub&p)>>2]=(c[(ub&p)>>2]|0)+1;if((b[(z+(S*40|0)&o)+8>>1]&16384)!=0?(Ud=Rg(z+(S*40|0)|0)|0,(Ud|0)!=0):0){g=m;m=r;s=Ud;u=x;ie=1309;break c}H=c[(A&p)+56>>2]|0;T=z+(S*40|0)+12|0;P=c[(T&p)>>2]|0;if(!H){if(!(a[(C&n)>>0]&16))g=0;else g=c[(A&p)+12>>2]|0;u=Im(u,c[(z+(S*40|0)&p)+16>>2]|0,P,((P|0)<0)<<31>>31,10360,0,0,c[(s+(t*20|0)&p)+12>>2]|0,g)|0;c[(A&p)+60>>2]=0;C=L;T=t;break e}C=P;g=((P|0)<0)<<31>>31;A=0;do{A=A+1|0;C=mw(C|0,g|0,7)|0;g=G}while(((C|0)!=0|(g|0)!=0)&(A|0)<9);K=P+8|0;I=A+P|0;M=H+4|0;A=c[(M&p)>>2]|0;do if(!A)u=0;else{if(!(c[(H&p)+40>>2]|0)){C=H+44|0;V=c[(C&p)>>2]|0;if((V|0)<=(A|0)?!((c[2265]|0)!=0?(V|0)>(c[(H&p)>>2]|0):0):0){u=0;break}}else{V=c[(H&p)+48>>2]|0;if(!((V|0)!=0&(V+K|0)>(A|0))){u=0;break}C=H+44|0}u=Om(H)|0;c[(C&p)>>2]=0;c[(H&p)+48>>2]=0}while(0);C=H+36|0;J=H+44|0;c[(J&p)>>2]=(c[(J&p)>>2]|0)+I;J=H+8|0;if((I|0)>(c[(J&p)>>2]|0))c[(J&p)>>2]=I;E=H+40|0;J=c[(E&p)>>2]|0;if(!J){g=qg(K,((K|0)<0)<<31>>31)|0;if(!g){g=m;m=r;s=7;u=x;ie=1309;break c}c[(g&p)+4>>2]=c[(C&p)>>2]}else{g=H+48|0;I=c[(g&p)>>2]|0;K=I+K|0;F=H+52|0;H=c[(F&p)>>2]|0;if((K|0)>(H|0)){I=H;do I=I<<1;while((I|0)<(K|0));V=c[(M&p)>>2]|0;I=(I|0)>(V|0)?V:I;I=(I|0)<(K|0)?K:I;J=rg(J,I,((I|0)<0)<<31>>31)|0;if(!J){g=m;m=r;s=7;u=x;ie=1309;break c}A=J+((c[(C&p)>>2]|0)-(c[(E&p)>>2]|0))|0;c[(C&p)>>2]=A;c[(E&p)>>2]=J;c[(F&p)>>2]=I;I=c[(g&p)>>2]|0}else A=c[(C&p)>>2]|0;c[(g&p)>>2]=I+(P+15&-8);c[(J+I&p)+4>>2]=A-J;g=J+I|0}kw(g+8|0,c[(z+(S*40|0)&p)+16>>2]|0,c[(T&p)>>2]|0)|0;c[(g&p)>>2]=c[(T&p)>>2];c[(C&p)>>2]=g;C=L;T=t;break}case 112:{g=m;m=r;r=t;ie=801;break d}case 111:{v=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;g=c[(v&p)>>2]|0;c[(yd&p)>>2]=c[(v&p)+8>>2];b[(kc&o)>>1]=c[(s+(t*20|0)&p)+12>>2];a[(nc&n)>>0]=0;c[(oc&p)>>2]=z+((c[(s+(t*20|0)&p)+8>>2]|0)*40|0);u=Cm(g,yd,0,0,0,Gd)|0;if(!(c[(Gd&p)>>2]|u))u=Jm(g)|0;c[(v&p)+60>>2]=0;C=L;T=t;break}case 116:case 115:case 114:case 113:{u=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;c[(zd&p)>>2]=c[(u&p)+8>>2];b[(xc&o)>>1]=c[(s+(t*20|0)&p)+16>>2];a[(Y&n)>>0]=((J&255)<115)<<31>>31;c[(Z&p)>>2]=z+((c[(s+(t*20|0)&p)+12>>2]|0)*40|0);V=Sd;c[(V&p)>>2]=0;c[(V&p)+4>>2]=0;km(c[(u&p)>>2]|0,Sd);V=Sd;g=c[(V&p)>>2]|0;V=jw(g|0,c[(V&p)+4>>2]|0,-1,-1)|0;U=G;if(!(U>>>0>0|(U|0)==0&V>>>0>2147483646)){b[(_&o)>>1]=0;c[($&p)>>2]=le;c[(aa&p)>>2]=0;g=nm(c[(u&p)>>2]|0,0,g,1,qd)|0;if(!g){u=Km(c[(ea&p)>>2]|0,c[(ga&p)>>2]|0,zd,0)|0;if((b[(_&o)>>1]&9312)==0&(c[(aa&p)>>2]|0)==0)g=0;else{Qg(qd);g=0}}else u=0}else{c[(ke&p)>>2]=68730;c[(ke&p)+4>>2]=10788;bd(11,13600,ke);g=11;u=0}if((((a[(C&n)>>0]&1)==0?u+1|0:0-u|0)|0)>0){C=L;T=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;u=g}else{C=L;T=t;u=g}break}case 117:{O=L+8|0;b[(O&o)>>1]=1;if((c[(Zb&p)>>2]|0)>((c[(ha&p)>>2]|0)+1|0)){g=m;m=r;u=x;ie=832;break c}N=c[(s+(t*20|0)&p)+12>>2]|0;M=c[((c[(Xd&p)>>2]|0)+(N<<4)&p)+4>>2]|0;P=s+(t*20|0)+4|0;I=c[(P&p)>>2]|0;C=M+4|0;K=c[(C&p)>>2]|0;c[(K&p)+4>>2]=c[(M&p)>>2];c[(ke&p)>>2]=0;do if(!(c[(K&p)+8>>2]|0)){u=dl(K,I,ke,0)|0;if(!u){u=Xm(M,I,0)|0;if(u){g=c[(ke&p)>>2]|0;if(!g){A=0;break}Bg(c[(g&p)+68>>2]|0);A=0;break}if(I>>>0<=1){g=c[(ke&p)>>2]|0;pl(g,9);if(!g){u=0;A=0;break}Bg(c[(g&p)+68>>2]|0);u=0;A=0;break}if(!(a[(K&n)+17>>0]|0)){g=c[(ke&p)>>2]|0;u=Ym(c[(g&p)+52>>2]|0,g,c[(g&p)+72>>2]|0)|0;if(!g){A=0;break}Bg(c[(g&p)+68>>2]|0);A=0;break}J=c[(C&p)>>2]|0;c[(J&p)+4>>2]=c[(M&p)>>2];J=c[((c[(J&p)+12>>2]|0)&p)+56>>2]|0;J=d[(J&n)+53>>0]<<16|d[(J&n)+52>>0]<<24|d[(J&n)+54>>0]<<8|d[(J&n)+55>>0];C=c[(ke&p)>>2]|0;if((J|0)==(I|0)){u=Ym(c[(C&p)+52>>2]|0,C,c[(C&p)+72>>2]|0)|0;if(C)Bg(c[(C&p)+68>>2]|0);if(!u)A=0;else{A=0;break}}else{if(C)Bg(c[(C&p)+68>>2]|0);u=dl(K,J,Sd,0)|0;if(u){A=0;break}C=c[(Sd&p)>>2]|0;u=Zm(K,C,1,0,I,0)|0;if(C)Bg(c[(C&p)+68>>2]|0);if(u){A=0;break}c[(Sd&p)>>2]=0;u=dl(K,J,Sd,0)|0;C=c[(Sd&p)>>2]|0;if(u){if(!C){A=0;break}}else u=Ym(c[(C&p)+52>>2]|0,C,c[(C&p)+72>>2]|0)|0;Bg(c[(C&p)+68>>2]|0);if(!u)A=J;else{A=0;break}}H=((c[2514]|0)>>>0)/((c[(K&p)+32>>2]|0)>>>0)|0;F=H+1|0;I=K+36|0;while(1){C=J+-1|0;if((C|0)==(F|0)){J=C;continue}if(C>>>0<2)E=0;else{E=J+-3|0;E=E-((E>>>0)%(((((c[(I&p)>>2]|0)>>>0)/5|0)+1|0)>>>0)|0)|0;E=((E+1|0)==(H|0)?3:2)+E|0}if((E|0)==(C|0))J=C;else break}u=Dg(M,4,C)|0}else A=0}else{u=262;A=0}while(0);b[(O&o)>>1]=4;V=L;c[(V&p)>>2]=A;c[(V&p)+4>>2]=((A|0)<0)<<31>>31;if((u|0)==0&(A|0)!=0){g=m;K=N;C=P;m=r;u=L;r=t;ie=865;break d}else{C=L;T=t}break}case 118:{c[(jd&p)>>2]=0;g=s+(t*20|0)+12|0;u=Xm(c[((c[(Xd&p)>>2]|0)+(c[(s+(t*20|0)&p)+8>>2]<<4)&p)+4>>2]|0,c[(s+(t*20|0)&p)+4>>2]|0,(c[(g&p)>>2]|0)!=0?jd:0)|0;g=c[(g&p)>>2]|0;if((g|0)!=0?(Ic=c[(jd&p)>>2]|0,c[(ub&p)>>2]=(c[(ub&p)>>2]|0)+Ic,(g|0)>0):0){C=z+(g*40|0)|0;T=C;T=jw(c[(T&p)>>2]|0,c[(T&p)+4>>2]|0,Ic|0,((Ic|0)<0)<<31>>31|0)|0;c[(C&p)>>2]=T;c[(C&p)+4>>2]=G;C=L;T=t}else{C=L;T=t}break}case 121:case 120:{c[(vd&p)>>2]=0;u=Am(c[((c[(Xd&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<4)&p)+4>>2]|0,vd,J<<24>>24==121?1:2)|0;T=c[(vd&p)>>2]|0;C=L;c[(C&p)>>2]=T;c[(C&p)+4>>2]=((T|0)<0)<<31>>31;C=L;T=t;break}case 119:{g=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;u=c[(g&p)+56>>2]|0;if(u){g=m;m=r;J=L;r=t;ie=878;break d}u=c[(g&p)>>2]|0;C=L;T=t;u=Xm(c[(u&p)>>2]|0,c[(u&p)+60>>2]|0,0)|0;break}case 123:{C=L;T=t;u=an(le,c[(s+(t*20|0)&p)+4>>2]|0)|0;break}case 124:{g=m;m=r;u=L;r=t;ie=886;break d}case 122:{g=m;m=r;J=L;r=t;ie=881;break d}case 126:{g=m;m=r;u=L;r=t;ie=895;break d}case 125:{g=m;m=r;J=L;r=t;ie=887;break d}case 127:{g=m;m=r;u=L;ie=903;break d}case 128:{g=m;m=r;J=L;ie=947;break d}case 129:{w=c[(s+(t*20|0)&p)+4>>2]|0;v=z+(w*40|0)|0;w=z+(w*40|0)+8|0;g=b[(w&o)>>1]|0;do if(g&32){E=c[(v&p)>>2]|0;u=E+26|0;g=b[(u&o)>>1]|0;if(!(g&2)){if(!(g&1)){g=E+8|0;c[(g&p)>>2]=kn(c[(g&p)>>2]|0)|0;g=b[(u&o)>>1]|0}b[(u&o)>>1]=g&65535|2}C=E+8|0;A=c[(C&p)>>2]|0;if(!A){g=b[(w&o)>>1]|0;break}w=A;v=c[(w&p)>>2]|0;w=c[(w&p)+4>>2]|0;V=c[(A&p)+8>>2]|0;c[(C&p)>>2]=V;if(!V)Zk(E);u=c[(s+(t*20|0)&p)+12>>2]|0;g=z+(u*40|0)|0;u=z+(u*40|0)+8|0;if(!(b[(u&o)>>1]&9312)){ie=g;c[(ie&p)>>2]=v;c[(ie&p)+4>>2]=w;b[(u&o)>>1]=4;u=0;ie=19;break e}else{Zg(g,v,w);u=0;ie=19;break e}}while(0);if(!(g&9312))b[(w&o)>>1]=1;else vg(v);t=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;u=0;ie=19;break}case 130:{g=m;m=r;u=L;ie=966;break d}case 131:{g=m;m=r;u=L;r=t;ie=993;break d}case 132:{g=m;m=r;u=L;r=t;ie=1009;break d}case 134:{g=m;m=r;J=L;r=t;ie=1010;break d}case 135:{g=m;m=r;u=L;r=t;ie=1015;break d}case 136:{g=m;m=r;r=t;ie=1022;break d}case 137:{g=m;m=r;u=L;r=t;ie=1028;break d}case 138:{g=m;m=r;u=L;r=t;ie=1030;break d}case 139:{g=m;m=r;J=L;r=t;ie=1032;break d}case 140:{g=m;m=r;u=L;r=t;ie=1034;break d}case 141:{g=m;m=r;u=L;r=t;ie=1036;break d}case 10:{V=a[(s+(t*20|0)&n)+3>>0]|0;g=V&255;u=c[(Bb&p)>>2]|0;if(V<<24>>24){v=0;w=z+((c[(s+(t*20|0)&p)+8>>2]|0)*40|0)|0;while(1){c[(u+(v<<2)&p)>>2]=w;v=v+1|0;if((v|0)>=(g|0))break;else w=w+40|0}}V=c[(s+(t*20|0)&p)+16>>2]|0;c[(Ga&p)>>2]=V;U=c[(s+(t*20|0)&p)+12>>2]|0;c[(Ha&p)>>2]=z+(U*40|0);U=z+(U*40|0)+12|0;c[(U&p)>>2]=(c[(U&p)>>2]|0)+1;b[(Ia&o)>>1]=1;c[(Ja&p)>>2]=le;c[(Ka&p)>>2]=0;c[(Vc&p)>>2]=Md;c[(La&p)>>2]=0;c[(Ma&p)>>2]=f;c[(Na&p)>>2]=t;a[(Oa&n)>>0]=0;mc[c[(V&p)+16>>2]&63](Vc,g,u);if(!(c[(La&p)>>2]|0))u=0;else{c[(ke&p)>>2]=Sg(Md,1)|0;dh(je,le,10344,ke);u=c[(La&p)>>2]|0}do if((a[(Oa&n)>>0]|0)!=0?(Mc=c[(s+((t+-1|0)*20|0)&p)+4>>2]|0,(Mc|0)!=0):0){g=z+(Mc*40|0)|0;v=z+(Mc*40|0)+8|0;if(!(b[(v&o)>>1]&9312)){V=g;c[(V&p)>>2]=1;c[(V&p)+4>>2]=0;b[(v&o)>>1]=4;break}else{Zg(g,1,0);break}}while(0);if((b[(Ia&o)>>1]&9312)==0&(c[(Ka&p)>>2]|0)==0){C=L;T=t}else{Qg(Md);C=L;T=t}break}case 11:{c[(Rc&p)>>2]=0;c[(Pa&p)>>2]=-1;c[(Qa&p)>>2]=-1;g=Wh(le,c[(s+(t*20|0)&p)+4>>2]|0,c[(s+(t*20|0)&p)+8>>2]|0,Qa,Pa)|0;if((g|0)==5){c[(Rc&p)>>2]=1;g=0}v=0;w=z+((c[(s+(t*20|0)&p)+12>>2]|0)*40|0)|0;while(1){C=c[(Rc+(v<<2)&p)>>2]|0;A=((C|0)<0)<<31>>31;u=w+8|0;if(!(b[(u&o)>>1]&9312)){V=w;c[(V&p)>>2]=C;c[(V&p)+4>>2]=A;b[(u&o)>>1]=4}else Zg(w,C,A);v=v+1|0;if((v|0)==3){C=L;T=t;u=g;break}else w=w+40|0}break}case 142:{C=c[(s+(t*20|0)&p)+4>>2]|0;v=z+(C*40|0)|0;u=Yk(v,c[(s+(t*20|0)&p)+16>>2]|0)|0;if(u){c[(ke&p)>>2]=Sg(v,1)|0;dh(je,le,10344,ke)}Yl(v,xb)|0;w=e[(z+(C*40|0)&o)+8>>1]|0;if(w&18){g=c[(z+(C*40|0)&p)+12>>2]|0;if(w&16384)g=(c[(v&p)>>2]|0)+g|0;if((g|0)>(c[((c[(z+(C*40|0)&p)+32>>2]|0)&p)+88>>2]|0)){g=m;m=r;u=x;ie=1316;break c}else{C=L;T=t}}else{C=L;T=t}break}case 12:{g=c[(s+(t*20|0)&p)+12>>2]|0;L=c[((c[(Xd&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<4)&p)+4>>2]|0;I=c[(c[(L&p)+4>>2]&p)>>2]|0;J=a[(I&n)+5>>0]|0;H=J&255;g=(g|0)==-1?H:g;do if((d[(I&n)+16>>0]|0)>2)g=H;else if((c[(c[(I&p)+64>>2]&p)>>2]|0)!=0?(V=I+72|0,U=c[(V&p)+4>>2]|0,(U|0)>0|(U|0)==0&(c[(V&p)>>2]|0)>>>0>0):0){g=H;break}while(0);if(!(a[(I&n)+15>>0]|0))A=c[(I&p)+168>>2]|0;else A=10360;K=(g|0)==5;if(K)if(A){C=A;while(1)if(!(a[(C&n)>>0]|0))break;else C=C+1|0;if(C-A&1073741823){C=c[(c[(I&p)+60>>2]&p)>>2]|0;if(!(a[(I&n)+4>>0]|0))if((c[(C&p)>>2]|0)>1?!((c[(C&p)+52>>2]|0)==0|(g|0)==(H|0)):0)ie=1077;else{g=H;u=0}else ie=1076}else{g=H;u=0}}else{g=H;u=0}else ie=1076;if((ie|0)==1076){ie=0;if((g|0)==(H|0)){g=H;u=0}else ie=1077}do if((ie|0)==1077){ie=0;C=J<<24>>24==5;if(C|K){if(!(a[(ee&n)>>0]|0)){g=m;s=K;m=r;u=x;ie=1080;break c}if((c[(Zb&p)>>2]|0)>1){g=m;s=K;m=r;u=x;ie=1080;break c}if(!C){if(J<<24>>24==4)sn(I,2)|0}else{J=I+208|0;if(!(c[(J&p)>>2]|0)){c[(_c&p)>>2]=0;u=fl(I,1)|0;if(u)break;u=c[(I&p)>>2]|0;u=pc[c[(u&p)+32>>2]&31](u,c[(I&p)+212>>2]|0,0,_c)|0;if((u|0)==0&(c[(_c&p)>>2]|0)!=0)u=pn(I)|0;if(u)break;if(c[(J&p)>>2]|0)ie=1088}else ie=1088;if((ie|0)==1088){ie=0;u=qn(I)|0;if(u)break;u=rn(c[(J&p)>>2]|0,d[(I&n)+9>>0]|0,c[(I&p)+152>>2]|0,c[(I&p)+200>>2]|0)|0;c[(J&p)>>2]=0;if(u)break}sn(I,g)|0}u=Fg(L,K?2:1)|0}else u=0}while(0);g=sn(I,(u|0)==0?g:H)|0;C=c[(s+(t*20|0)&p)+8>>2]|0;J=z+(C*40|0)|0;b[(z+(C*40|0)&o)+8>>1]=2562;if((g|0)==6){c[(z+(C*40|0)&p)+16>>2]=0;g=0}else{v=c[(g<<2&p)+32216>>2]|0;c[(z+(C*40|0)&p)+16>>2]=v;g=v;while(1)if(!(a[(g&n)>>0]|0))break;else g=g+1|0;g=g-v&1073741823}c[(z+(C*40|0)&p)+12>>2]=g;a[(z+(C*40|0)&n)+10>>0]=1;Yl(J,xb)|0;C=J;T=t;break}case 13:{if(!(a[(ee&n)>>0]|0)){g=m;m=r;u=x;ie=1101;break c}if((c[(Ra&p)>>2]|0)>1){g=m;m=r;u=x;ie=1103;break c}S=c[(Tb&p)>>2]|0;N=c[(vb&p)>>2]|0;w=c[(wb&p)>>2]|0;v=c[(Sa&p)>>2]|0;c[(Tb&p)>>2]=S&-2762753|2107392;c[(Sa&p)>>2]=0;g=c[((c[(Xd&p)>>2]|0)&p)+4>>2]|0;P=g+4|0;I=a[((c[(c[(P&p)>>2]&p)>>2]|0)&n)+15>>0]|0;V=c[(Ub&p)>>2]|0;u=tn(le,je,(a[(_b&n)>>0]|0)==2?42432:42464)|0;J=c[(Ub&p)>>2]|0;if((J|0)>(V|0))M=(c[(Xd&p)>>2]|0)+(J+-1<<4)|0;else M=0;i:do if(!u){O=c[((c[(Xd&p)>>2]|0)+(J+-1<<4)&p)+4>>2]|0;un(O)|0;T=c[(P&p)>>2]|0;c[(T&p)+4>>2]=c[(g&p)>>2];T=(c[(T&p)+32>>2]|0)-(c[(T&p)+36>>2]|0)|0;u=tn(le,je,42488)|0;if(!u){u=tn(le,je,42528)|0;if(!u){u=yg(g,2)|0;if(!u){J=c[(P&p)>>2]|0;if((a[((c[(J&p)>>2]|0)&n)+5>>0]|0)==5)c[(Ta&p)>>2]=0;if(!(xg(O,c[(J&p)+32>>2]|0,T,0)|0)){if(I<<24>>24==0?(xg(O,c[(Ta&p)>>2]|0,T,0)|0)!=0:0){u=7;break}if(a[(ge&n)>>0]|0){u=7;break}J=a[(Ua&n)>>0]|0;do if(J<<24>>24>-1)J=J<<24>>24;else{J=c[(P&p)>>2]|0;c[(J&p)+4>>2]=c[(g&p)>>2];if(!(a[(J&n)+17>>0]|0)){J=0;break}J=(a[(J&n)+18>>0]|0)==0?1:2}while(0);vn(O,J)|0;u=wn(le,je,42536)|0;if(u)break;u=wn(le,je,42688)|0;if(u)break;u=wn(le,je,42792)|0;if(u)break;u=wn(le,je,42912)|0;if(u)break;u=wn(le,je,43112)|0;if(u)break;u=wn(le,je,43232)|0;if(u)break;u=tn(le,je,43392)|0;if(!u)J=0;else break;do{u=d[(J&n)+43576>>0]|0;wm(g,u,ad);u=Dg(O,u,(d[((J|1)&n)+43576>>0]|0)+(c[(ad&p)>>2]|0)|0)|0;J=J+2|0;if(u)break i}while((J|0)<10);H=c[(P&p)>>2]|0;c[(H&p)+4>>2]=c[(g&p)>>2];J=c[(O&p)>>2]|0;K=O+4|0;I=c[(K&p)>>2]|0;c[(I&p)+4>>2]=J;H=c[((c[(H&p)>>2]|0)&p)+60>>2]|0;F=c[(H&p)>>2]|0;if(F){V=c[(I&p)+32>>2]|0;V=sw(c[(I&p)+44>>2]|0,0,V|0,((V|0)<0)<<31>>31|0)|0;u=id;c[(u&p)>>2]=V;c[(u&p)+4>>2]=G;u=ac[c[(F&p)+40>>2]&63](H,11,id)|0;u=(u|0)==12?0:u;if(u)break;J=c[(O&p)>>2]|0}U=Tc+0|0;V=U+48|0;do{c[(U&p)>>2]=0;U=U+4|0}while((U|0)<(V|0));c[(Va&p)>>2]=J;c[(Wa&p)>>2]=O;c[(Xa&p)>>2]=g;c[(Ya&p)>>2]=1;gd(Tc,2147483647)|0;u=hd(Tc)|0;if(u){C=c[(c[((c[(Xa&p)>>2]|0)&p)+4>>2]&p)>>2]|0;if(a[(C&n)+15>>0]|0)break;if(a[(C&n)+12>>0]|0)break;xn(C);break}u=(c[(P&p)>>2]|0)+22|0;b[(u&o)>>1]=e[(u&o)>>1]&65533;u=un(O)|0;if(u)break;J=c[(K&p)>>2]|0;c[(J&p)+4>>2]=c[(O&p)>>2];if(!(a[(J&n)+17>>0]|0))E=0;else E=(a[(J&n)+18>>0]|0)==0?1:2;vn(g,E)|0;u=xg(g,c[((c[(K&p)>>2]|0)&p)+32>>2]|0,T,1)|0}else u=7}}}}while(0);c[(Tb&p)>>2]=S;c[(vb&p)>>2]=N;c[(wb&p)>>2]=w;c[(Sa&p)>>2]=v;xg(g,-1,-1,1)|0;a[(ee&n)>>0]=1;if(M){V=M+4|0;Ml(c[(V&p)>>2]|0);c[(V&p)>>2]=0;c[(M&p)+12>>2]=0}Eg(le);C=L;T=t;break}case 143:{V=c[((c[(Xd&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<4)&p)+4>>2]|0;I=c[(V&p)+4>>2]|0;c[(I&p)+4>>2]=c[(V&p)>>2];if(!(a[(I&n)+17>>0]|0)){g=m;m=r;u=L;ie=1157;break d}E=I+44|0;H=c[(E&p)>>2]|0;A=I+12|0;C=c[((c[(A&p)>>2]|0)&p)+56>>2]|0;C=d[(C&n)+37>>0]<<16|d[(C&n)+36>>0]<<24|d[(C&n)+38>>0]<<8|d[(C&n)+39>>0];F=El(I,H,C)|0;if(H>>>0>>0){g=m;m=r;u=x;ie=1145;break c}if(!C){g=m;m=r;u=L;ie=1157;break d}J=I+8|0;g=c[(J&p)>>2]|0;do if(g){C=g;do{if(C){ie=1150;break}C=c[2]|0}while((C|0)!=0);if((ie|0)==1150){ie=0;u=Fl(C,0,0)|0;if(u)break;g=c[(J&p)>>2]|0}if(g){do{V=g+72|0;a[(V&n)>>0]=d[(V&n)>>0]&251;g=c[(g&p)+8>>2]|0}while((g|0)!=0);ie=1154}else ie=1154}else ie=1154;while(0);if((ie|0)==1154){ie=0;u=Gl(I,F,H,0)|0;if(!u){u=Gg(c[((c[(A&p)>>2]|0)&p)+68>>2]|0)|0;V=c[((c[(A&p)>>2]|0)&p)+56>>2]|0;U=c[(E&p)>>2]|0;a[(V&n)+28>>0]=U>>>24;a[(V&n)+29>>0]=U>>>16;a[(V&n)+30>>0]=U>>>8;a[(V&n)+31>>0]=U}}if((u|0)==101){g=m;m=r;u=L;ie=1157;break d}else{C=L;T=t}break}case 145:{g=c[(s+(t*20|0)&p)+12>>2]|0;if((g&255|0)==0?(c[(Tb&p)>>2]&16384|0)!=0:0){g=m;m=r;S=z;T=s;U=W;V=X;u=L;r=t;break d}C=c[((c[(Xd&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<4)&p)+4>>2]|0;A=c[(s+(t*20|0)&p)+8>>2]|0;if(!(a[(C&n)+9>>0]|0)){g=m;m=r;S=z;T=s;U=W;V=X;u=L;r=t;break d}v=g+1&255;w=C+4|0;c[((c[(w&p)>>2]|0)&p)+4>>2]=c[(C&p)>>2];u=bl(C,A,v)|0;if(!u){g=m;m=r;u=L;r=t;ie=1166;break d}if((u&255|0)!=6){g=m;m=r;s=u;u=x;ie=1309;break c}c[(ke&p)>>2]=c[(s+(t*20|0)&p)+16>>2];dh(je,le,42224,ke);C=L;T=t;break}case 144:{g=m;m=r;u=L;r=t;ie=1158;break d}case 146:{J=c[(s+(t*20|0)&p)+16>>2]|0;v=c[(Za&p)>>2]|0;u=(v|0)>0;if(u?(c[(_a&p)>>2]|0)==0:0){u=6;ie=1188}else ie=1179;j:do if((ie|0)==1179){ie=0;if(!J){g=m;m=r;S=z;T=s;U=W;V=X;u=L;r=t;break d}g=J+8|0;w=(c[(c[(g&p)>>2]&p)>>2]|0)+56|0;if(c[(w&p)>>2]|0){if(u){C=c[(_a&p)>>2]|0;A=0;do{if((c[(C+(A<<2)&p)>>2]|0)==(J|0)){u=0;ie=1188;break j}A=A+1|0}while((A|0)<(v|0))}u=yn(le)|0;if(!u){u=lc[c[(w&p)>>2]&127](c[(g&p)>>2]|0)|0;if(!u){u=c[(Za&p)>>2]|0;c[(Za&p)>>2]=u+1;c[((c[(_a&p)>>2]|0)+(u<<2)&p)>>2]=J;u=J+12|0;c[(u&p)>>2]=(c[(u&p)>>2]|0)+1;u=0}}else ie=1188}else u=0}while(0);if((ie|0)==1188){ie=0;if(!J){C=L;T=t;break e}g=J+8|0}Mm(f,c[(g&p)>>2]|0);C=L;T=t;break}case 147:{U=Kd+0|0;V=U+40|0;do{c[(U&p)>>2]=0;U=U+4|0}while((U|0)<(V|0));c[($a&p)>>2]=le;g=_g(Kd,z+((c[(s+(t*20|0)&p)+8>>2]|0)*40|0)|0)|0;u=Sg(Kd,1)|0;k:do if(u){v=_h(le,u,c[((c[(Xd&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<4)&p)>>2]|0)|0;g=c[(c[(v&p)+56>>2]&p)>>2]|0;u=bn(cb,g,Xc)|0;if((u|0)!=0?(Oc=c[(u&p)+8>>2]|0,(Oc|0)!=0):0){g=zn(le,v,Oc,c[((c[(Oc&p)>>2]|0)&p)+4>>2]|0,je)|0;if(g)break;u=v+60|0;g=c[(u&p)>>2]|0;if(!g){g=0;break}while(1){if((c[(g&p)>>2]|0)==(le|0))break;g=c[(g&p)+24>>2]|0;if(!g){g=0;break k}}g=yn(le)|0;if(g)break;g=c[(u&p)>>2]|0;l:do if(!g)g=0;else while(1){if((c[(g&p)>>2]|0)==(le|0))break l;g=c[(g&p)+24>>2]|0;if(!g){g=0;break}}while(0);V=c[(Za&p)>>2]|0;c[(Za&p)>>2]=V+1;c[((c[(_a&p)>>2]|0)+(V<<2)&p)>>2]=g;g=g+12|0;c[(g&p)>>2]=(c[(g&p)>>2]|0)+1;g=0;break}c[(ke&p)>>2]=g;c[(je&p)>>2]=uh(le,28320,ke)|0;g=1}while(0);if((b[(ab&o)>>1]&9312)==0&(c[(bb&p)>>2]|0)==0){C=L;T=t;u=g}else{Qg(Kd);C=L;T=t;u=g}break}case 148:{c[(ha&p)>>2]=(c[(ha&p)>>2]|0)+1;g=_h(le,c[(s+(t*20|0)&p)+16>>2]|0,c[((c[(Xd&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<4)&p)>>2]|0)|0;m:do if((g|0)!=0?(Pc=g+60|0,Qc=c[(Pc&p)>>2]|0,(Qc|0)!=0):0){u=Qc;do{if((c[((c[(u&p)+8>>2]|0)&p)+4>>2]|0)>0){u=6;break m}u=c[(u&p)+24>>2]|0}while((u|0)!=0);g=Ok(le,g)|0;v=g+8|0;u=lc[c[((c[(c[(g&p)+4>>2]&p)>>2]|0)&p)+20>>2]&127](c[(v&p)>>2]|0)|0;if(!u){c[(v&p)>>2]=0;c[(Pc&p)>>2]=0;An(g);u=0}}else u=0;while(0);c[(ha&p)>>2]=(c[(ha&p)>>2]|0)+-1;C=L;T=t;break}case 149:{g=m;m=r;u=L;r=t;ie=1213;break d}case 150:{g=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;C=c[(s+(t*20|0)&p)+12>>2]|0;A=z+(C*40|0)|0;if(a[(g&n)+25>>0]|0){g=m;m=r;u=L;r=t;ie=1226;break d}V=g+32|0;u=c[(c[(V&p)>>2]&p)>>2]|0;U=c[(u&p)>>2]|0;c[(Id&p)>>2]=0;c[(Id&p)+4>>2]=0;c[(Id&p)+8>>2]=0;c[(Id&p)+12>>2]=0;c[(Id&p)+16>>2]=0;c[(Id&p)+20>>2]=0;c[(Id&p)+24>>2]=0;c[(Id&p)>>2]=A;v=z+(C*40|0)+8|0;b[(v&o)>>1]=e[(v&o)>>1]&48640|1;V=ac[c[(U&p)+44>>2]&63](c[(V&p)>>2]|0,Id,c[(s+(t*20|0)&p)+8>>2]|0)|0;Mm(f,u);u=c[(db&p)>>2]|0;u=(u|0)==0?V:u;Yl(A,xb)|0;v=e[(v&o)>>1]|0;if(v&18){g=c[(z+(C*40|0)&p)+12>>2]|0;if(v&16384)g=(c[(A&p)>>2]|0)+g|0;if((g|0)>(c[((c[(z+(C*40|0)&p)+32>>2]|0)&p)+88>>2]|0)){g=m;m=r;u=x;ie=1316;break c}else{C=L;T=t}}else{C=L;T=t}break}case 14:{A=c[(s+(t*20|0)&p)+12>>2]|0;C=A+1|0;F=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;J=c[(F&p)+32>>2]|0;I=c[(J&p)>>2]|0;H=c[(I&p)>>2]|0;E=c[(z+(C*40|0)&p)>>2]|0;A=c[(z+(A*40|0)&p)>>2]|0;g=c[(Bb&p)>>2]|0;if((E|0)>0){u=0;do{V=u;u=u+1|0;c[(g+(V<<2)&p)>>2]=z+((u+C|0)*40|0)}while((u|0)!=(E|0))}u=tc[c[(H&p)+32>>2]&31](J,A,c[(s+(t*20|0)&p)+16>>2]|0,E,g)|0;Mm(f,I);if((u|0)==0?(lc[c[(H&p)+40>>2]&127](J)|0)!=0:0)t=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;a[(F&n)+25>>0]=0;C=L;T=t;break}case 151:{g=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;if(a[(g&n)+25>>0]|0){g=m;m=r;S=z;T=s;U=W;V=X;u=L;r=t;break d}g=g+32|0;v=c[(g&p)>>2]|0;V=c[(v&p)>>2]|0;u=c[(V&p)>>2]|0;v=lc[c[(u&p)+36>>2]&127](v)|0;Mm(f,V);if((v|0)==0?(lc[c[(u&p)+40>>2]&127](c[(g&p)>>2]|0)|0)!=0:0){u=0;ie=19;break e}t=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;u=v;ie=19;break}case 15:{F=s+(t*20|0)+16|0;v=c[((c[(F&p)>>2]|0)&p)+8>>2]|0;if(!v){g=m;m=r;s=6;u=x;ie=1309;break c}g=c[(v&p)>>2]|0;if(!g){g=m;m=r;s=6;u=x;ie=1309;break c}I=c[(s+(t*20|0)&p)+8>>2]|0;E=g+52|0;C=c[(E&p)>>2]|0;if(!C){g=m;m=r;S=z;T=s;U=W;V=X;u=L;r=t;break d}H=a[(eb&n)>>0]|0;J=c[(Bb&p)>>2]|0;if((I|0)>0){C=0;A=z+((c[(s+(t*20|0)&p)+12>>2]|0)*40|0)|0;while(1){c[(J+(C<<2)&p)>>2]=A;C=C+1|0;if((C|0)==(I|0))break;else A=A+40|0}C=c[(E&p)>>2]|0}A=s+(t*20|0)+3|0;a[(eb&n)>>0]=a[(A&n)>>0]|0;u=pc[C&31](v,I,J,Hd)|0;a[(eb&n)>>0]=H;Mm(f,v);if(!u){if(c[(s+(t*20|0)&p)+4>>2]|0){l=Hd;r=c[(l&p)>>2]|0;l=c[(l&p)+4>>2]|0;V=ne;c[(V&p)>>2]=r;c[(V&p)+4>>2]=l}}else if((u&255|0)==19?(a[((c[(F&p)>>2]|0)&n)+16>>0]|0)!=0:0){g=a[(A&n)>>0]|0;if(g<<24>>24==5)g=2;else if(g<<24>>24==4){g=m;m=r;S=z;T=s;U=W;V=X;u=L;r=t;break d}a[(fe&n)>>0]=g;C=L;T=t;break e}c[(ub&p)>>2]=(c[(ub&p)>>2]|0)+1;C=L;T=t;break}case 152:{g=c[((c[(s+(t*20|0)&p)+16>>2]|0)&p)+8>>2]|0;u=c[(s+(t*20|0)&p)+4>>2]|0;v=z+(u*40|0)|0;if(((b[(z+(u*40|0)&o)+8>>1]&2)!=0?(a[(z+(u*40|0)&n)+10>>0]|0)!=1:0)?(Wd=Bn(v,1)|0,(Wd|0)!=0):0){g=m;m=r;s=Wd;u=x;ie=1309;break c}u=rc[c[((c[(g&p)>>2]|0)&p)+76>>2]&127](g,c[(z+(u*40|0)&p)+16>>2]|0)|0;Mm(f,g);b[(Yd&o)>>1]=b[(Yd&o)>>1]&-9;C=L;T=t;break}case 153:{g=m;m=r;u=L;r=t;ie=1257;break d}case 155:{g=m;m=r;ie=1264;break d}case 154:{g=m;m=r;J=L;r=t;ie=1258;break d}default:{g=m;m=r;S=z;T=s;U=W;V=X;u=L;r=t;break d}}while(0);n:do if((ie|0)==57){ie=0;w=L+8|0;b[(w&o)>>1]=2562;c[(L&p)+16>>2]=v;c[(L&p)+12>>2]=g;a[(L&n)+10>>0]=Jc;if((a[(s+(t*20|0)&n)+3>>0]|0)!=0?(V=z+((c[(s+(t*20|0)&p)+12>>2]|0)*40|0)|0,!((c[(V&p)>>2]|0)==0&(c[(V&p)+4>>2]|0)==0)):0){b[(w&o)>>1]=2576;C=L;T=t}else{C=L;T=t}}else if((ie|0)==536){if(b[(Yd&o)>>1]&8){g=m;m=r;s=516;u=x;ie=1309;break c}C=c[(s+(t*20|0)&p)+8>>2]|0;I=c[(s+(t*20|0)&p)+12>>2]|0;g=c[(Xd&p)>>2]|0;H=c[(g+(I<<4)&p)+4>>2]|0;if(J<<24>>24==55){g=a[((c[(g+(I<<4)&p)+12>>2]|0)&n)+76>>0]|0;if((g&255)<(d[(Mb&n)>>0]|0)){a[(Mb&n)>>0]=g;J=1}else J=1}else J=0;v=s+(t*20|0)+3|0;if(a[(v&n)>>0]&4){V=z+(C*40|0)|0;g=Vg(V)|0;c[(V&p)>>2]=g;c[(V&p)+4>>2]=G;V=z+(C*40|0)+8|0;b[(V&o)>>1]=e[(V&o)>>1]&48640|4;if((g|0)<2){g=m;m=r;s=x;ie=542;break c}else E=g}else E=C;u=s+(t*20|0)+1|0;C=a[(u&n)>>0]|0;if(C<<24>>24==-6){A=c[(s+(t*20|0)&p)+16>>2]|0;C=(e[(A&o)+8>>1]|0)+(e[(A&o)+6>>1]|0)|0}else if(C<<24>>24==-14){C=c[(s+(t*20|0)&p)+16>>2]|0;A=0}else{C=0;A=0}g=xm(f,c[(s+(t*20|0)&p)+4>>2]|0,C,I,1)|0;if(!g){y=ge;z=je;g=m;m=x;ie=1317;break a}a[(g&n)+25>>0]=1;V=g+27|0;a[(V&n)>>0]=a[(V&n)>>0]|8;c[(g&p)+28>>2]=E;ie=ym(H,E,J,A,c[(g&p)>>2]|0)|0;c[(g&p)+8>>2]=A;a[(V&n)>>0]=((a[(u&n)>>0]|0)!=-6&1)<<2&255|a[(V&n)>>0]&-5;u=ie;ie=548}else if((ie|0)==715){ie=0;M=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;V=c[(M&p)+56>>2]|0;do if(!V){u=c[(M&p)>>2]|0;g=qm(u)|0;if(!g)if(!(a[(u&n)+73>>0]|0)){v=1;g=0}else{v=0;g=Vm(u)|0}else v=1;a[(M&n)+26>>0]=0;c[(M&p)+60>>2]=0;a[(M&n)+25>>0]=v;if(!v){C=L;T=t;u=g;break n}}else{do if(!(a[(V&n)+56>>0]|0)){g=V+36|0;if(!(c[(g&p)>>2]|0)){g=0;ie=756}else{g=Nm(V+64|0,g)|0;ie=755}}else{g=Om(V)|0;if(!g){U=V+59|0;o:do if(!(a[(U&n)>>0]|0)){u=0;g=0}else{w=0;v=0;p:while(1){T=V+(w<<6)+64|0;c[(ke&p)>>2]=0;S=V+(w<<6)+92|0;C=c[(S&p)>>2]|0;J=((C|0)<0)<<31>>31;do if((C|0)>16){I=16;H=0;E=0;while(1){I=iw(I|0,H|0,4)|0;H=G;F=E+1|0;if(!((H|0)<(J|0)|(H|0)==(J|0)&I>>>0>>0)){H=E;break}else E=F}P=Sd;c[(P&p)>>2]=0;c[(P&p)+4>>2]=0;if((C|0)<17){ie=726;break}u=Qm(16)|0;c[(ke&p)>>2]=u;J=(u|0)==0;I=c[(S&p)>>2]|0;if(!((I|0)>0&(J^1))){g=J?7:0;break}N=(H|0)>0;P=0;O=0;do{c[(qd&p)>>2]=0;g=I-P|0;g=Pm(T,(g|0)<16?g:16,Sd,qd)|0;if(g){ie=747;break p}g=Rm(T,c[(qd&p)>>2]|0,pd)|0;do if(N){I=1;J=1;do{J=J<<4;I=I+1|0}while((I|0)!=(F|0));if(!g){H=1;I=u}else{J=c[(pd&p)>>2]|0;ie=743;break}while(1){K=(c[(I&p)+12>>2]|0)+((((O|0)/(J|0)|0|0)%16|0)*56|0)+48|0;I=c[(K&p)>>2]|0;if(!I){I=Qm(16)|0;if(!I){g=7;ie=738;break}g=Rm(T,I,K)|0;if(g){ie=738;break}I=c[(K&p)>>2]|0}I=c[(I&p)+4>>2]|0;H=H+1|0;if((H|0)>=(F|0)){ie=740;break}else J=(J|0)/16|0}if((ie|0)==738){J=c[(pd&p)>>2]|0;ie=743;break}else if((ie|0)==740){J=c[(pd&p)>>2]|0;ie=742;break}}else{J=c[(pd&p)>>2]|0;if(!g){I=u;ie=742}else ie=743}while(0);if((ie|0)==742){ie=0;c[((c[(I&p)+12>>2]|0)+(((O|0)%16|0)*56|0)&p)+48>>2]=J;g=0}else if((ie|0)==743){ie=0;Sm(J)}O=O+1|0;P=P+16|0;I=c[(S&p)>>2]|0}while((P|0)<(I|0)&(g|0)==0)}else{ie=Sd;c[(ie&p)>>2]=0;c[(ie&p)+4>>2]=0;ie=726}while(0);if((ie|0)==726){ie=0;g=Pm(T,C,Sd,ke)|0;u=c[(ke&p)>>2]|0}w=w+1|0;if(g){ie=746;break}if((w|0)>=(d[(U&n)>>0]|0)){g=0;break o}else v=u}if((ie|0)==746)Tm(u);else if((ie|0)==747)Tm(u);Tm(v);u=0}while(0);if(!g){g=Um(V+64|0,u)|0;c[(V&p)+20>>2]=u;if(!g){g=0;ie=755;break}else u=0}Tm(u);ie=755}else ie=756}while(0);if((ie|0)==755){ie=0;a[(M&n)+25>>0]=0;C=L;T=t;u=g;break n}else if((ie|0)==756){ie=0;a[(M&n)+25>>0]=1;break}}while(0);C=L;T=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;u=g}else if((ie|0)==765){u=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;c[(Fd&p)>>2]=c[(s+(t*20|0)&p)+12>>2];g=u;u=rc[c[(s+(t*20|0)&p)+16>>2]&127](c[(u&p)>>2]|0,Fd)|0;ie=766}while(0);do if((ie|0)==548){ie=0;a[((c[(g&p)>>2]|0)&n)+74>>0]=d[(v&n)>>0]&3;C=L;T=t}else if((ie|0)==766){c[(g&p)+60>>2]=0;g=g+25|0;if(!(c[(Fd&p)>>2]|0)){a[(g&n)>>0]=0;ie=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;t=f+(d[(s+(t*20|0)&n)+3>>0]<<2)+108|0;c[(t&p)>>2]=(c[(t&p)>>2]|0)+1;t=ie;ie=19;break}else{a[(g&n)>>0]=1;ie=19;break}}while(0);if((ie|0)==19){ie=0;if(c[(Cc&p)>>2]|0){u=je;g=m;m=x;break b}g=c[(be&p)>>2]|0;if(!((g|0)==0|m>>>0>>0)){y=c[(yc&p)>>2]|0;if(!(lc[g&127](c[(Zd&p)>>2]|0)|0)){y=y+m-((m>>>0)%(y>>>0)|0)|0;C=L;T=t}else{g=m;s=9;m=x;ie=1311;break a}}else{C=L;T=t}}t=T+1|0;if(!u){g=m;u=C}else{g=m;s=u;m=x;ie=1311;break a}}q:switch(ie|0){case 22:{ie=0;S=c[(s+(t*20|0)&p)+4>>2]|0;b[(z+(S*40|0)&o)+8>>1]=4;S=z+(S*40|0)|0;c[(S&p)>>2]=t;c[(S&p)+4>>2]=((t|0)<0)<<31>>31;S=z;T=s;U=W;V=X;r=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;break}case 23:{ie=0;S=c[(s+(t*20|0)&p)+4>>2]|0;r=c[(z+(S*40|0)&p)>>2]|0;b[(z+(S*40|0)&o)+8>>1]=128;S=z;T=s;U=W;V=X;break}case 24:{ie=0;r=c[(s+(t*20|0)&p)+4>>2]|0;u=z+(r*40|0)|0;T=(c[(s+(t*20|0)&p)+12>>2]|0)+-1|0;S=u;c[(S&p)>>2]=T;c[(S&p)+4>>2]=((T|0)<0)<<31>>31;b[(z+(r*40|0)&o)+8>>1]=4;r=c[(s+(t*20|0)&p)+8>>2]|0;S=z;T=s;U=W;V=X;r=(r|0)==0?t:r+-1|0;break}case 25:{ie=0;S=c[(s+(t*20|0)&p)+4>>2]|0;r=(c[(s+((c[(z+(S*40|0)&p)>>2]|0)*20|0)&p)+8>>2]|0)+-1|0;b[(z+(S*40|0)&o)+8>>1]=128;S=z;T=s;U=W;V=X;break}case 26:{ie=0;S=c[(s+(t*20|0)&p)+4>>2]|0;b[(z+(S*40|0)&o)+8>>1]=4;S=z+(S*40|0)|0;r=c[(S&p)>>2]|0;c[(S&p)>>2]=t;c[(S&p)+4>>2]=((t|0)<0)<<31>>31;S=z;T=s;U=W;V=X;break}case 27:{ie=0;if(!(b[(z+((c[(s+(r*20|0)&p)+12>>2]|0)*40|0)&o)+8>>1]&1)){S=z;T=s;U=W;V=X}else ie=28;break}case 44:{ie=0;T=c[(s+(r*20|0)&p)+4>>2]|0;S=u;c[(S&p)>>2]=T;c[(S&p)+4>>2]=((T|0)<0)<<31>>31;S=z;T=s;U=W;V=X;break}case 45:{ie=0;U=c[(s+(r*20|0)&p)+16>>2]|0;T=c[(U&p)+4>>2]|0;S=u;c[(S&p)>>2]=c[(U&p)>>2];c[(S&p)+4>>2]=T;S=z;T=s;U=W;V=X;break}case 46:{ie=0;b[(u&o)+8>>1]=8;h[(u&q)>>3]=+h[(c[(s+(r*20|0)&p)+16>>2]&q)>>3];S=z;T=s;U=W;V=X;break}case 60:{ie=0;J=(c[(s+(r*20|0)&p)+12>>2]|0)-(c[(s+(r*20|0)&p)+8>>2]|0)|0;t=(c[(s+(r*20|0)&p)+4>>2]|0)!=0?257:1;b[(u&o)+8>>1]=t;if((J|0)>0){w=J;A=u;do{v=A+48|0;A=A+40|0;if(!(b[(v&o)>>1]&9312))b[(v&o)>>1]=1;else vg(A);b[(v&o)>>1]=t;w=w+-1|0}while((w|0)>0);S=z;T=s;U=W;V=X;u=u+(J*40|0)|0}else{S=z;T=s;U=W;V=X}break}case 65:{ie=0;u=c[(s+(r*20|0)&p)+4>>2]|0;S=z+(u*40|0)+8|0;b[(S&o)>>1]=e[(S&o)>>1]&65406|1;S=z;T=s;U=W;V=X;u=z+(u*40|0)|0;break}case 66:{ie=0;Xg(u,c[(s+(r*20|0)&p)+16>>2]|0,c[(s+(r*20|0)&p)+4>>2]|0,0,0)|0;a[(u&n)+10>>0]=Jc;S=z;T=s;U=W;V=X;break}case 67:{ie=0;C=(c[(s+(r*20|0)&p)+4>>2]|0)+-1|0;A=c[(Ab&p)>>2]|0;w=A+(C*40|0)|0;v=e[(A+(C*40|0)&o)+8>>1]|0;if(v&18){t=c[(A+(C*40|0)&p)+12>>2]|0;if(v&16384)t=(c[(w&p)>>2]|0)+t|0;if((t|0)>(c[((c[(A+(C*40|0)&p)+32>>2]|0)&p)+88>>2]|0)){t=r;u=x;ie=1316;break c}}Zl(u,w,2048);S=z;T=s;U=W;V=X;break}case 72:{ie=0;t=c[(s+(r*20|0)&p)+12>>2]|0;v=c[(s+(r*20|0)&p)+8>>2]|0;J=t+v|0;u=z+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)|0;v=z+(v*40|0)|0;while(1){_l(v,u);t=t+-1|0;if(!t)break;else{u=u+40|0;v=v+40|0}}S=z;T=s;U=W;V=X;u=z+(J*40|0)|0;break}case 74:{ie=0;r=c[(s+(t*20|0)&p)+12>>2]|0;u=z+((c[(s+(t*20|0)&p)+4>>2]|0)*40|0)|0;J=z+((c[(s+(t*20|0)&p)+8>>2]|0)*40|0)|0;while(1){Zl(J,u,4096);if((b[(J&o)+8>>1]&4096)!=0?(Vl(J)|0)!=0:0){y=ge;z=je;r=m;m=x;ie=1317;break a}if(!r){S=z;T=s;U=W;V=X;u=J;r=t;break q}r=r+-1|0;u=u+40|0;J=J+40|0}}case 79:{ie=0;u=z+((c[(s+(r*20|0)&p)+8>>2]|0)*40|0)|0;Zl(u,z+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)|0,4096);S=z;T=s;U=W;V=X;break}case 94:{ie=0;K=c[(s+(t*20|0)&p)+4>>2]|0;J=z+(K*40|0)|0;L=c[(s+(t*20|0)&p)+8>>2]|0;I=z+(L*40|0)|0;M=c[(s+(t*20|0)&p)+12>>2]|0;u=z+(M*40|0)|0;H=z+(K*40|0)+8|0;E=b[(H&o)>>1]|0;F=z+(L*40|0)+8|0;C=b[(F&o)>>1]|0;if((C|E)&1){r=z+(M*40|0)+8|0;if(!(b[(r&o)>>1]&9312)){b[(r&o)>>1]=1;S=z;T=s;U=W;V=X;r=t;break}else{vg(u);S=z;T=s;U=W;V=X;r=t;break}}if(E&16384){if(Rg(J)|0){y=ge;z=je;r=m;m=x;ie=1317;break a}C=b[(F&o)>>1]|0}if((C&16384)!=0?(Rg(I)|0)!=0:0){y=ge;z=je;r=m;m=x;ie=1317;break a}if((b[(H&o)>>1]&18)==0?(bm(J,Jc,0)|0)!=0:0){y=ge;z=je;r=m;m=x;ie=1317;break a}if((b[(F&o)>>1]&18)==0?(bm(I,Jc,0)|0)!=0:0){y=ge;z=je;r=m;m=x;ie=1317;break a}E=z+(K*40|0)+12|0;A=z+(L*40|0)+12|0;r=(c[(A&p)>>2]|0)+(c[(E&p)>>2]|0)|0;if((r|0)>(c[(zb&p)>>2]|0)){u=x;ie=1316;break c}v=(M|0)==(L|0);if(eh(u,r+2|0,v&1)|0){y=ge;z=je;r=m;m=x;ie=1317;break a}w=z+(M*40|0)+8|0;b[(w&o)>>1]=e[(w&o)>>1]&48640|2;C=z+(M*40|0)+16|0;if(!v)kw(c[(C&p)>>2]|0,c[(z+(L*40|0)&p)+16>>2]|0,c[(A&p)>>2]|0)|0;kw((c[(C&p)>>2]|0)+(c[(A&p)>>2]|0)|0,c[(z+(K*40|0)&p)+16>>2]|0,c[(E&p)>>2]|0)|0;a[((c[(C&p)>>2]|0)+r&n)>>0]=0;a[((c[(C&p)>>2]|0)+r&n)+1>>0]=0;b[(w&o)>>1]=e[(w&o)>>1]|512;c[(z+(M*40|0)&p)+12>>2]=r;a[(z+(M*40|0)&n)+10>>0]=Jc;S=z;T=s;U=W;V=X;r=t;break}case 112:{ie=0;V=c[(s+(r*20|0)&p)+4>>2]|0;N=z+(V*40|0)|0;S=cm(N)|0;w=c[(s+(r*20|0)&p)+8>>2]|0;O=z+(w*40|0)|0;T=cm(O)|0;U=c[(s+(r*20|0)&p)+12>>2]|0;u=z+(U*40|0)|0;r:do if(!((b[(z+(w*40|0)&o)+8>>1]|b[(z+(V*40|0)&o)+8>>1])&1)){s:do if(!((S&4&T)<<16>>16))L=0;else{t=N;C=c[(t&p)>>2]|0;t=c[(t&p)+4>>2]|0;F=O;v=c[(F&p)>>2]|0;F=c[(F&p)+4>>2]|0;J=d[(P&n)>>0]|0;t:do if((J|0)==89){if((t|0)>-1|(t|0)==-1&C>>>0>4294967295){V=dw(-1,2147483647,v|0,F|0)|0;w=G;if(((F|0)>0|(F|0)==0&v>>>0>0)&((w|0)<(t|0)|(w|0)==(t|0)&V>>>0>>0)){L=1;break s}}else if((F|0)<0?(w=dw(1,-2147483648,v|0,F|0)|0,A=G,V=jw(C|0,t|0,1,0)|0,M=G,(A|0)>(M|0)|(A|0)==(M|0)&w>>>0>V>>>0):0){L=1;break s}v=jw(v|0,F|0,C|0,t|0)|0;t=G}else if((J|0)==91){L=qw(v|0,F|0,0,1)|0;K=G;E=rw(v|0,F|0,0,1)|0;A=G;J=qw(C|0,t|0,0,1)|0;I=G;M=rw(C|0,t|0,0,1)|0;w=G;V=jw(v|0,F|0,-1,0)|0;pe=G;H=jw(C|0,t|0,-1,0)|0;qe=G;H=qe>>>0<1|(qe|0)==1&H>>>0<4294967295;do if(pe>>>0<1|(pe|0)==1&V>>>0<4294967295)if(H){v=sw(v|0,F|0,C|0,t|0)|0;t=G;break t}else{H=sw(J|0,I|0,E|0,A|0)|0;F=G;break}else{if(!H){L=1;break s}H=sw(M|0,w|0,L|0,K|0)|0;F=G}while(0);V=jw(H|0,F|0,-2147483648,0)|0;v=G;if(v>>>0>0|(v|0)==0&V>>>0>4294967295){L=1;break s}J=sw(M|0,w|0,E|0,A|0)|0;I=G;if((I|0)>-1|(I|0)==-1&J>>>0>4294967295){V=dw(-1,2147483647,0,H|0)|0;w=G;if(((F|0)>0|(F|0)==0&H>>>0>0)&((w|0)<(I|0)|(w|0)==(I|0)&V>>>0>>0)){L=1;break s}}else if((F|0)<0?(w=dw(1,-2147483648,0,H|0)|0,t=G,V=jw(J|0,I|0,1,0)|0,v=G,(t|0)>(v|0)|(t|0)==(v|0)&w>>>0>V>>>0):0){L=1;break s}v=jw(0,H|0,J|0,I|0)|0;t=G}else if((J|0)==90){if((C|0)==0&(t|0)==-2147483648){if((F|0)>-1|(F|0)==-1&v>>>0>4294967295){L=1;break s}t=F^-2147483648;break}if((t|0)<0|(t|0)==0&C>>>0<1){V=dw(0,0,C|0,t|0)|0;M=G;w=dw(-1,2147483647,v|0,F|0)|0;A=G;if(((F|0)>0|(F|0)==0&v>>>0>0)&((A|0)<(M|0)|(A|0)==(M|0)&w>>>0>>0)){L=1;break s}}else if((F|0)<0?(w=dw(1,-2147483648,v|0,F|0)|0,A=G,V=dw(1,0,C|0,t|0)|0,M=G,(A|0)>(M|0)|(A|0)==(M|0)&w>>>0>V>>>0):0){L=1;break s}v=dw(v|0,F|0,C|0,t|0)|0;t=G}else if((J|0)==92){if((C|0)==0&(t|0)==0)break r;if((C|0)==-1&(t|0)==-1&((v|0)==0&(F|0)==-2147483648)){L=1;break s}v=qw(v|0,F|0,C|0,t|0)|0;t=G}else{if((C|0)==-1){if((t|0)==-1){C=1;t=0}}else if((C|0)==0?(t|0)==0:0)break r;v=rw(v|0,F|0,C|0,t|0)|0;t=G}while(0);S=u;c[(S&p)>>2]=v;c[(S&p)+4>>2]=t;S=z+(U*40|0)+8|0;b[(S&o)>>1]=e[(S&o)>>1]&48640|4;S=z;T=s;U=W;V=X;break q}while(0);D=+Ug(N);B=+Ug(O);C=d[(P&n)>>0]|0;if((C|0)==89)B=D+B;else if((C|0)==90)B=B-D;else if((C|0)==91)B=D*B;else if((C|0)==92){if(D==0.0)break;B=B/D}else{E=~~D>>>0;C=+R(D)>=1.0?(D>0.0?~~+da(+Q(D/4294967296.0),4294967295.0)>>>0:~~+ba((D-+(~~D>>>0))/4294967296.0)>>>0):0;I=~~B>>>0;J=+R(B)>=1.0?(B>0.0?~~+da(+Q(B/4294967296.0),4294967295.0)>>>0:~~+ba((B-+(~~B>>>0))/4294967296.0)>>>0):0;if(!E){if(!C)break}else if((E|0)==-1?(C|0)==-1:0){E=1;C=0}V=rw(I|0,J|0,E|0,C|0)|0;B=+(V>>>0)+4294967296.0*+(G|0)}h[(ke&q)>>3]=B;h[(Sd&q)>>3]=+h[(ke&q)>>3];if(!(+h[(ke&q)>>3]!=+h[(Sd&q)>>3])){h[(u&q)>>3]=B;V=z+(U*40|0)+8|0;b[(V&o)>>1]=e[(V&o)>>1]&48640|8;if(((T|S)&8)!=0|L<<24>>24!=0){S=z;T=s;U=W;V=X;break q}dm(u);S=z;T=s;U=W;V=X;break q}}while(0);t=z+(U*40|0)+8|0;if(!(b[(t&o)>>1]&9312)){b[(t&o)>>1]=1;S=z;T=s;U=W;V=X;break}else{vg(u);S=z;T=s;U=W;V=X;break}}case 166:{ie=0;t=c[(s+(r*20|0)&p)+4>>2]|0;if(t){u=z+(t*40|0)|0;t=z+(t*40|0)+8|0;if(!(b[(t&o)>>1]&9312)){S=u;c[(S&p)>>2]=0;c[(S&p)+4>>2]=0;b[(t&o)>>1]=4;S=z;T=s;U=W;V=X;u=J;break}else{Zg(u,0,0);S=z;T=s;U=W;V=X;u=J;break}}else{S=z;T=s;U=W;V=X;u=J}break}case 184:{ie=0;C=c[(s+(r*20|0)&p)+4>>2]|0;t=c[(s+(r*20|0)&p)+8>>2]|0;K=c[(s+(r*20|0)&p)+12>>2]|0;u=z+(K*40|0)|0;if((b[(z+(t*40|0)&o)+8>>1]|b[(z+(C*40|0)&o)+8>>1])&1){t=z+(K*40|0)+8|0;if(!(b[(t&o)>>1]&9312)){b[(t&o)>>1]=1;S=z;T=s;U=W;V=X;break}else{vg(u);S=z;T=s;U=W;V=X;break}}A=Vg(z+(t*40|0)|0)|0;L=G;J=Vg(z+(C*40|0)|0)|0;I=G;t=a[(H&n)>>0]|0;C=t&255;do if(t<<24>>24==86){A=J|A;t=I|L}else if(t<<24>>24!=85)if(!((J|0)==0&(I|0)==0)){if((I|0)<0){t=175-C&255;C=dw(0,0,J|0,I|0)|0;if((I|0)>-1|(I|0)==-1&J>>>0>4294967232){I=G;ie=194}}else{C=J;ie=194}if((ie|0)==194){ie=0;if(!((I|0)>0|(I|0)==0&C>>>0>63)){if(t<<24>>24==87){A=iw(A|0,L|0,C|0)|0;t=G;break}A=mw(A|0,L|0,C|0)|0;t=G;if((L|0)>=0)break;V=dw(64,0,C|0,I|0)|0;V=iw(-1,-1,V|0)|0;A=V|A;t=G|t;break}}if((L|0)>-1|(L|0)==-1&A>>>0>4294967295){A=0;t=0}else{t=(t<<24>>24!=87)<<31>>31;A=t;t=((t|0)<0)<<31>>31}}else t=L;else{A=J&A;t=I&L}while(0);S=u;c[(S&p)>>2]=A;c[(S&p)+4>>2]=t;S=z+(K*40|0)+8|0;b[(S&o)>>1]=e[(S&o)>>1]&48640|4;S=z;T=s;U=W;V=X;break}case 202:{ie=0;T=c[(s+(r*20|0)&p)+4>>2]|0;S=z+(T*40|0)|0;U=Vg(S)|0;T=z+(T*40|0)+8|0;b[(T&o)>>1]=e[(T&o)>>1]&48640|4;T=c[(s+(r*20|0)&p)+8>>2]|0;T=jw(U|0,G|0,T|0,((T|0)<0)<<31>>31|0)|0;c[(S&p)>>2]=T;c[(S&p)+4>>2]=G;S=z;T=s;U=W;V=X;break}case 203:{ie=0;u=c[(s+(r*20|0)&p)+4>>2]|0;v=z+(u*40|0)+8|0;t=b[(v&o)>>1]|0;if(!(t&4)){fm(z+(u*40|0)|0,67,Jc);t=b[(v&o)>>1]|0;if(!(t&4)){E=c[(s+(r*20|0)&p)+8>>2]|0;if(!E){t=r;u=20;ie=1318;break c}S=z;T=s;U=W;V=X;u=J;r=E+-1|0;break}}b[(v&o)>>1]=t&48640|4;S=z;T=s;U=W;V=X;u=J;break}case 208:{ie=0;t=c[(s+(r*20|0)&p)+4>>2]|0;u=z+(t*40|0)+8|0;if(!(b[(u&o)>>1]&4)){S=z;T=s;U=W;V=X;u=J}else{S=z+(t*40|0)|0;h[(S&q)>>3]=+Ug(S);b[(u&o)>>1]=e[(u&o)>>1]&48640|8;S=z;T=s;U=W;V=X;u=J}break}case 213:{ie=0;N=c[(s+(t*20|0)&p)+4>>2]|0;L=z+(N*40|0)|0;w=c[(s+(t*20|0)&p)+12>>2]|0;K=z+(w*40|0)|0;N=z+(N*40|0)+8|0;F=b[(N&o)>>1]|0;w=z+(w*40|0)+8|0;M=b[(w&o)>>1]|0;H=F&65535;A=M&65535;v=s+(t*20|0)+3|0;J=d[(v&n)>>0]|0;do if(!((M|F)&1)){J=J&71;if(J>>>0>66){if((H&14|0)==2){rh(L,0);A=b[(w&o)>>1]|0}else A=M;if((A&14)==2){rh(K,0);J=F;E=M}else{J=F;E=M}}else if((J|0)==66){if((H&2|0)!=0|(H&12|0)==0){I=M;J=F}else{bm(L,Jc,1)|0;I=b[(w&o)>>1]|0;J=(e[(N&o)>>1]&65024|H&511)&65535}V=I&65535;if((V&2|0)!=0|(V&12|0)==0)E=M;else{bm(K,Jc,1)|0;E=(e[(w&o)>>1]&65024|A&511)&65535}}else{J=F;E=M}if(b[(N&o)>>1]&16384){Rg(L)|0;J=J&49151}if(b[(w&o)>>1]&16384){Rg(K)|0;E=E&49151}if(a[(ge&n)>>0]|0){y=ge;z=je;r=m;m=x;ie=1317;break a}V=hm(K,L,c[(s+(t*20|0)&p)+16>>2]|0)|0;I=a[(C&n)>>0]|0;r=t;C=V}else{if(J&128){J=F;E=M;r=t;C=(F&1&M)<<16>>16!=0&(A&256|0)==0&1^1;break}if(J&32){u=c[(s+(t*20|0)&p)+8>>2]|0;S=z+(u*40|0)+8|0;b[(S&o)>>1]=e[(S&o)>>1]&48640|1;S=z;T=s;U=W;V=X;u=z+(u*40|0)|0;r=t;break q}if(!(J&16)){S=z;T=s;U=W;V=X;r=t;break q}S=z;T=s;U=W;V=X;r=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;break q}while(0);switch(I&255|0){case 79:{C=(C|0)==0&1;break}case 78:{C=(C|0)!=0&1;break}case 82:{C=C>>>31;break}case 81:{C=(C|0)<1&1;break}case 80:{C=(C|0)>0&1;break}default:C=C>>>31^1}if(!(a[(v&n)>>0]&32)){if(C)r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0}else{V=c[(s+(r*20|0)&p)+8>>2]|0;u=z+(V*40|0)|0;V=z+(V*40|0)+8|0;b[(V&o)>>1]=e[(V&o)>>1]&48640|4;V=u;c[(V&p)>>2]=C;c[(V&p)+4>>2]=0}b[(N&o)>>1]=J;b[(w&o)>>1]=E;S=z;T=s;U=W;V=X;break}case 248:{ie=0;S=z;T=s;U=c[(s+(r*20|0)&p)+16>>2]|0;V=X;break}case 249:{ie=0;w=(a[(s+(r*20|0)&n)+3>>0]&1)==0?0:W;F=c[(s+(r*20|0)&p)+12>>2]|0;H=c[(s+(r*20|0)&p)+16>>2]|0;I=c[(s+(r*20|0)&p)+4>>2]|0;J=c[(s+(r*20|0)&p)+8>>2]|0;if((F|0)>0){t=(w|0)==0;v=H+16|0;E=0;while(1){if(t)A=E;else A=c[(w+(E<<2)&p)>>2]|0;C=a[((c[(v&p)>>2]|0)+E&n)>>0]|0;A=hm(z+((A+I|0)*40|0)|0,z+((A+J|0)*40|0)|0,c[(H+(E<<2)&p)+20>>2]|0)|0;E=E+1|0;if(A)break;if((E|0)>=(F|0)){S=z;T=s;U=0;V=0;break q}}S=z;T=s;U=0;V=C<<24>>24==0?A:0-A|0}else{S=z;T=s;U=0;V=X}break}case 256:{ie=0;if((X|0)<0){S=z;T=s;U=W;V=X;r=(c[(s+(t*20|0)&p)+4>>2]|0)+-1|0;break}if(!X){S=z;T=s;U=W;V=0;r=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;break}else{S=z;T=s;U=W;V=X;r=(c[(s+(t*20|0)&p)+12>>2]|0)+-1|0;break}}case 261:{ie=0;t=c[(s+(r*20|0)&p)+4>>2]|0;if(!(b[(z+(t*40|0)&o)+8>>1]&1)){u=Vg(z+(t*40|0)|0)|0;u=(u|0)!=0|(G|0)!=0?3:0}else u=6;t=c[(s+(r*20|0)&p)+8>>2]|0;if(!(b[(z+(t*40|0)&o)+8>>1]&1)){t=Vg(z+(t*40|0)|0)|0;t=((t|0)!=0|(G|0)!=0)&1}else t=2;t=a[(((a[(C&n)>>0]|0)==72?41680:41696)+t+u&n)>>0]|0;u=c[(s+(r*20|0)&p)+12>>2]|0;J=z+(u*40|0)|0;if(t<<24>>24==2){S=z+(u*40|0)+8|0;b[(S&o)>>1]=e[(S&o)>>1]&48640|1;S=z;T=s;U=W;V=X;u=J;break}else{S=J;c[(S&p)>>2]=t&255;c[(S&p)+4>>2]=0;S=z+(u*40|0)+8|0;b[(S&o)>>1]=e[(S&o)>>1]&48640|4;S=z;T=s;U=W;V=X;u=J;break}}case 268:{ie=0;t=c[(s+(r*20|0)&p)+4>>2]|0;u=c[(s+(r*20|0)&p)+8>>2]|0;J=z+(u*40|0)|0;u=z+(u*40|0)+8|0;if(!(b[(u&o)>>1]&9312))b[(u&o)>>1]=1;else vg(J);if(!(b[(z+(t*40|0)&o)+8>>1]&1)){b[(u&o)>>1]=4;T=Vg(z+(t*40|0)|0)|0;S=J;c[(S&p)>>2]=(T|0)==0&(G|0)==0&1;c[(S&p)+4>>2]=0;S=z;T=s;U=W;V=X;u=J}else{S=z;T=s;U=W;V=X;u=J}break}case 273:{ie=0;t=c[(s+(r*20|0)&p)+4>>2]|0;u=c[(s+(r*20|0)&p)+8>>2]|0;J=z+(u*40|0)|0;u=z+(u*40|0)+8|0;if(!(b[(u&o)>>1]&9312))b[(u&o)>>1]=1;else vg(J);if(!(b[(z+(t*40|0)&o)+8>>1]&1)){b[(u&o)>>1]=4;T=Vg(z+(t*40|0)|0)|0;S=J;c[(S&p)>>2]=~T;c[(S&p)+4>>2]=~G;S=z;T=s;U=W;V=X;u=J}else{S=z;T=s;U=W;V=X;u=J}break}case 278:{ie=0;t=(c[(Hb&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]|0)|0;if(!(a[(t&n)>>0]|0)){a[(t&n)>>0]=1;S=z;T=s;U=W;V=X;break}else{S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0;break}}case 281:{ie=0;t=c[(s+(r*20|0)&p)+4>>2]|0;if(!(b[(z+(t*40|0)&o)+8>>1]&1)){t=+Ug(z+(t*40|0)|0)!=0.0;t=(t^(a[(C&n)>>0]|0)==46)&1}else t=c[(s+(r*20|0)&p)+12>>2]|0;if(!t){S=z;T=s;U=W;V=X}else{S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0}break}case 286:{ie=0;if(!(b[(z+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)&o)+8>>1]&1)){S=z;T=s;U=W;V=X}else{S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0}break}case 288:{ie=0;if(!(b[(z+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)&o)+8>>1]&1)){S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0}else{S=z;T=s;U=W;V=X}break}case 290:{ie=0;T=c[(s+(t*20|0)&p)+8>>2]|0;M=c[(s+(t*20|0)&p)+12>>2]|0;A=z+(M*40|0)|0;S=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;w=c[(S&p)+80>>2]|0;v=c[(S&p)>>2]|0;if(!(a[(S&n)+26>>0]|0)){if((v|0)!=0?(a[(v&n)+73>>0]|0)!=1:0){Td=jm(S)|0;ie=295}}else{Td=im(S)|0;ie=295}if((ie|0)==295?(ie=0,(Td|0)!=0):0){u=Td;ie=1318;break c}L=S+60|0;C=c[($d&p)>>2]|0;u:do if((c[(L&p)>>2]|0)==(C|0)){C=b[(S&o)+22>>1]|0;if((C&65535|0)>(T|0))ie=350;else{I=S+72|0;ie=318}}else{do if(a[(S&n)+25>>0]|0){if(!v){J=c[(S&p)+16>>2]|0;F=c[(z+(J*40|0)&p)+12>>2]|0;c[(S&p)+68>>2]=F;c[(S&p)+64>>2]=F;J=c[(z+(J*40|0)&p)+16>>2]|0;K=S+76|0;c[(K&p)>>2]=J;break}r=z+(M*40|0)+8|0;if(!(b[(r&o)>>1]&9312)){b[(r&o)>>1]=1;break u}else{vg(A);break u}}else{if(!(a[(S&n)+27>>0]&4)){km(v,td);I=e[(v&o)+40>>1]|0;J=c[(v&p)+32>>2]|0;c[(S&p)+76>>2]=J;C=c[(td&p)>>2]|0;c[(S&p)+64>>2]=C}else{C=S+64|0;lm(v,C);I=e[(v&o)+40>>1]|0;J=c[(v&p)+32>>2]|0;c[(S&p)+76>>2]=J;C=c[(C&p)>>2]|0}c[(S&p)+68>>2]=C>>>0>I>>>0?I:C;if(C>>>0>(c[(zb&p)>>2]|0)>>>0){u=x;ie=1316;break c}K=S+76|0;C=c[($d&p)>>2]|0;F=I}while(0);c[(L&p)>>2]=C;C=a[(J&n)>>0]|0;if(C<<24>>24>-1){H=C&255;c[(kd&p)>>2]=H;J=1}else{J=mm(J,kd)|0;H=c[(kd&p)>>2]|0}I=S+72|0;c[(I&p)>>2]=J&255;b[(S&o)+22>>1]=0;c[(w&p)>>2]=H;if(H>>>0>98307){u=x;ie=313;break c}if(H>>>0>(c[(S&p)+64>>2]|0)>>>0){u=x;ie=313;break c}if(F>>>0>>0){c[(K&p)>>2]=0;c[(S&p)+68>>2]=0;C=0;ie=318}else{C=0;ie=318}}while(0);do if((ie|0)==318){ie=0;J=c[(I&p)>>2]|0;H=c[(w&p)>>2]|0;if(J>>>0>>0){P=S+76|0;F=c[(P&p)>>2]|0;if(!F){U=Jd+0|0;V=U+40|0;do{c[(U&p)>>2]=0;U=U+4|0}while((U|0)<(V|0));J=nm(v,0,c[(w&p)>>2]|0,((d[(S&n)+27>>0]|0)>>>2&1^1)&255,Jd)|0;if(J){s=J;u=x;ie=1309;break c}C=S+22|0;O=C;C=b[(C&o)>>1]|0;J=c[(I&p)>>2]|0;H=c[(w&p)>>2]|0;N=c[(Jb&p)>>2]|0}else{O=S+22|0;N=F}E=C&65535;K=c[(w+(E<<2)&p)>>2]|0;c[(kd&p)>>2]=K;C=N+H|0;J=N+J|0;while(1){F=a[(J&n)>>0]|0;if(F<<24>>24>-1){L=F&255;c[(Ld&p)>>2]=L;J=J+1|0}else{J=J+((mm(J,Ld)|0)&255)|0;L=c[(Ld&p)>>2]|0}c[(S+(E<<2)&p)+84>>2]=L;if(L>>>0>11)F=(L+-12|0)>>>1;else F=d[(L&n)+34336>>0]|0;L=K+F|0;c[(kd&p)>>2]=L;if(L>>>0>>0){J=L;F=E;ie=331;break}F=E+1|0;c[(w+(F<<2)&p)>>2]=L;if((E|0)<(T|0)&J>>>0>>0){K=L;E=F}else break}if((ie|0)==331){ie=0;L=J;J=N+(H+1)|0}b[(O&o)>>1]=F;c[(I&p)>>2]=J-N;if(!(c[(P&p)>>2]|0)){if(!((b[(Kb&o)>>1]&9312)==0&(c[(Lb&p)>>2]|0)==0))Qg(Jd);b[(Kb&o)>>1]=1}if(J>>>0>=C>>>0){if(J>>>0>C>>>0){u=x;ie=343;break c}if((L|0)==(c[(S&p)+64>>2]|0))C=L;else{u=x;ie=343;break c}}else C=c[(S&p)+64>>2]|0;if(L>>>0>C>>>0){u=x;ie=343;break c}C=b[(O&o)>>1]|0}if((C&65535|0)<=(T|0)){if((a[(s+(t*20|0)&n)+1>>0]|0)==-8){Zl(A,c[(s+(t*20|0)&p)+16>>2]|0,2048);r=z+(M*40|0)+8|0;break}r=z+(M*40|0)+8|0;if(!(b[(r&o)>>1]&9312)){b[(r&o)>>1]=1;break}else{vg(A);break}}else ie=350}while(0);if((ie|0)==350){ie=0;r=z+(M*40|0)+8|0;if(b[(r&o)>>1]&9312)vg(A);J=c[(S+(T<<2)&p)+84>>2]|0;c[(Ld&p)>>2]=J;do if((c[(S&p)+68>>2]|0)>>>0<(c[(w+(T+1<<2)&p)>>2]|0)>>>0){V=a[(s+(t*20|0)&n)+3>>0]|0;if(!((V&255)>63?J>>>0>11&(J&1|0)==0|V<<24>>24<0:0)){if(J>>>0>11)C=(J+-12|0)>>>1;else C=d[(J&n)+34336>>0]|0;if(C){C=nm(v,c[(w+(T<<2)&p)>>2]|0,C,((d[(S&n)+27>>0]|0)>>>2&1^1)&255,A)|0;if(C){s=C;u=x;ie=1309;break c}om(c[(z+(M*40|0)&p)+16>>2]|0,J,A)|0;b[(r&o)>>1]=e[(r&o)>>1]&61439;break}}om(J>>>0<14?td:0,J,A)|0}else om((c[(S&p)+76>>2]|0)+(c[(w+(T<<2)&p)>>2]|0)|0,J,A)|0;while(0);a[(z+(M*40|0)&n)+10>>0]=Jc}w=e[(r&o)>>1]|0;if((w&4096|0)!=0?(Ac=z+(M*40|0)+16|0,Bc=c[(Ac&p)>>2]|0,(Bc|0)!=0):0){v=c[(z+(M*40|0)&p)+12>>2]|0;if(fh(A,v+2|0)|0){y=ge;z=je;r=m;m=x;ie=1317;break a}kw(c[(Ac&p)>>2]|0,Bc|0,v|0)|0;a[((c[(Ac&p)>>2]|0)+v&n)>>0]=0;a[((c[(Ac&p)>>2]|0)+v&n)+1>>0]=0;b[(r&o)>>1]=w&18|512;S=z;T=s;U=W;V=X;r=t}else{S=z;T=s;U=W;V=X;r=t}break}case 368:{ie=0;v=c[(s+(r*20|0)&p)+16>>2]|0;t=a[(v&n)>>0]|0;if(!(t<<24>>24)){S=z;T=s;U=W;V=X}else{w=z+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)|0;while(1){v=v+1|0;fm(w,t,Jc);t=a[(v&n)>>0]|0;if(!(t<<24>>24)){S=z;T=s;U=W;V=X;break}else w=w+40|0}}break}case 371:{ie=0;U=c[(s+(t*20|0)&p)+4>>2]|0;C=c[(s+(t*20|0)&p)+16>>2]|0;V=z+(U*40|0)|0;U=z+((U+-1+(c[(s+(t*20|0)&p)+8>>2]|0)|0)*40|0)|0;A=a[(Mb&n)>>0]|0;T=c[(s+(t*20|0)&p)+12>>2]|0;u=z+(T*40|0)|0;if(C){r=a[(C&n)>>0]|0;v=V;while(1){C=C+1|0;fm(v,r,Jc);r=a[(C&n)>>0]|0;if(!(r<<24>>24))break;else v=v+40|0}}N=(A&255)>3;L=0;K=0;O=0;C=0;w=U;while(1){E=b[(w&o)+8>>1]|0;I=E&65535;v:do if(!(I&1)){do if(!(I&4)){if(I&8){J=7;ie=388;break v}J=c[(w&p)+12>>2]|0;if(I&16384)J=(c[(w&p)>>2]|0)+J|0;J=(J<<1)+12|I>>>1&1}else{I=w;J=c[(I&p)>>2]|0;I=c[(I&p)+4>>2]|0;H=ew(J|0,I|0,63)|0;H=H^J;F=G^I;if(F>>>0<0|(F|0)==0&H>>>0<128){if(!((J&1|0)==(J|0)&0==(I|0)&N)){J=1;ie=388;break v}J=H+8|0;break}if(F>>>0<0|(F|0)==0&H>>>0<32768){J=2;ie=388;break v}if(F>>>0<0|(F|0)==0&H>>>0<8388608){J=3;ie=388;break v}if(F>>>0<0|(F|0)==0&H>>>0<2147483648){J=4;ie=388;break v}J=F>>>0<32768|(F|0)==32768&H>>>0<0?5:6;ie=388;break v}while(0);c[(w&p)+28>>2]=J;if(J>>>0>11){I=J;J=(J+-12|0)>>>1}else ie=391}else{J=0;ie=388}while(0);if((ie|0)==388){c[(w&p)+28>>2]=J;ie=391}if((ie|0)==391){ie=0;I=J;J=d[(J&n)+34336>>0]|0}do if(E&16384)if((L|0)==0&(K|0)==0){E=c[(w&p)>>2]|0;J=J-E|0;E=E+C|0;break}else{Rg(w)|0;E=C;break}else E=C;while(0);L=jw(J|0,((J|0)<0)<<31>>31|0,L|0,K|0)|0;K=G;if(I>>>0<128)J=1;else{H=0;J=0;do{J=J+1|0;I=mw(I|0,H|0,7)|0;H=G}while(((I|0)!=0|(H|0)!=0)&(J|0)<9)}J=J+O|0;w=w+-40|0;if(w>>>0>>0){F=J;P=E;break}else{O=J;C=E}}if((F|0)<127)I=F+1|0;else{I=F;H=((F|0)<0)<<31>>31;J=0;do{J=J+1|0;I=mw(I|0,H|0,7)|0;H=G}while(((I|0)!=0|(H|0)!=0)&(J|0)<9);F=J+F|0;I=F;H=((F|0)<0)<<31>>31;C=0;do{C=C+1|0;I=mw(I|0,H|0,7)|0;H=G}while(((I|0)!=0|(H|0)!=0)&(C|0)<9);I=((J|0)<(C|0)&1)+F|0}J=((I|0)<0)<<31>>31;E=jw(I|0,J|0,L|0,K|0)|0;N=G;S=c[(zb&p)>>2]|0;O=((S|0)<0)<<31>>31;if((N|0)>(O|0)|(N|0)==(O|0)&E>>>0>S>>>0){u=x;ie=1316;break c}if(fh(u,E)|0){y=ge;z=je;r=m;m=x;ie=1317;break a}A=c[(z+(T*40|0)&p)+16>>2]|0;if(I>>>0<128){a[(A&n)>>0]=I;K=1;L=V}else{K=(pm(A,I,J)|0)&255;L=V}while(1){H=c[(L&p)+28>>2]|0;if(H>>>0<128){a[(A+K&n)>>0]=H;J=1}else J=(pm(A+K|0,H,0)|0)&255;K=J+K|0;J=A+I|0;if(!(H>>>0<8&(H|0)!=0))if(H>>>0>11){C=c[(L&p)+12>>2]|0;kw(J|0,c[(L&p)+16>>2]|0,C|0)|0}else C=0;else{J=L;if(H>>>0>11)C=(H+-12|0)>>>1;else C=d[(H&n)+34336>>0]|0;F=c[(J&p)>>2]|0;J=c[(J&p)+4>>2]|0;H=C;while(1){H=H+-1|0;a[(A+H+I&n)>>0]=F;F=mw(F|0,J|0,8)|0;if(!H)break;else J=G}}L=L+40|0;if(L>>>0>U>>>0)break;else I=C+I|0}c[(z+(T*40|0)&p)+12>>2]=E;r=z+(T*40|0)+8|0;b[(r&o)>>1]=16;if(P){c[(u&p)>>2]=P;b[(r&o)>>1]=16400}a[(z+(T*40|0)&n)+10>>0]=1;S=z;T=s;U=W;V=X;r=t;break}case 446:{ie=0;if((c[(ae&p)>>2]|0)>0){u=x;ie=447;break c}if(!v)w=0;else{t=v;while(1)if(!(a[(t&n)>>0]|0))break;else t=t+1|0;w=t-v&1073741823}u=sm(le,0,(c[(Ob&p)>>2]|0)+(c[(Nb&p)>>2]|0)|0)|0;if(u){t=r;ie=1318;break c}t=mh(le,w+33|0,0)|0;if(!t){S=z;T=s;U=W;V=X;u=L}else{V=t+32|0;c[(t&p)>>2]=V;kw(V|0,v|0,w+1|0)|0;if(!(a[(ee&n)>>0]|0))c[(Ob&p)>>2]=(c[(Ob&p)>>2]|0)+1;else{a[(ee&n)>>0]=0;a[(Sb&n)>>0]=1}c[(t&p)+24>>2]=c[(Pb&p)>>2];c[(Pb&p)>>2]=t;S=Qb;T=c[(S&p)+4>>2]|0;U=t+8|0;c[(U&p)>>2]=c[(S&p)>>2];c[(U&p)+4>>2]=T;U=Rb;T=c[(U&p)+4>>2]|0;S=t+16|0;c[(S&p)>>2]=c[(U&p)>>2];c[(S&p)+4>>2]=T;S=z;T=s;U=W;V=X;u=L}break}case 486:{c[(Ob&p)>>2]=(c[(Ob&p)>>2]|0)+-1;ie=488;break}case 525:{ie=0;wm(c[((c[(Xd&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<4)&p)+4>>2]|0,c[(s+(r*20|0)&p)+12>>2]|0,Yc);T=c[(Yc&p)>>2]|0;S=u;c[(S&p)>>2]=T;c[(S&p)+4>>2]=((T|0)<0)<<31>>31;S=z;T=s;U=W;V=X;break}case 558:{ie=0;v=xm(f,c[(s+(t*20|0)&p)+4>>2]|0,c[(s+(t*20|0)&p)+8>>2]|0,-1,1)|0;if(!v){y=ge;z=je;r=m;m=x;ie=1317;break a}r=c[(s+(t*20|0)&p)+16>>2]|0;C=v+8|0;c[(C&p)>>2]=r;A=c[(s+(t*20|0)&p)+12>>2]|0;r=e[(r&o)+6>>1]<<2;u=r+148|0;w=mh(le,u,0)|0;if(!w){s=v;u=x;ie=560;break c}fw(w|0,0,u|0)|0;c[(v&p)+56>>2]=w;V=w+128|0;c[(w&p)+28>>2]=V;kw(V|0,c[(C&p)>>2]|0,r+20|0)|0;c[(w&p)+140>>2]=0;if(A)b[(w&o)+134>>1]=A;r=c[(Xd&p)>>2]|0;u=c[((c[((c[(r&p)+4>>2]|0)&p)+4>>2]|0)&p)+32>>2]|0;c[(w&p)+12>>2]=u;a[(w&n)+59>>0]=1;a[(w&n)+57>>0]=0;c[(w&p)+24>>2]=le;c[(w&p)+72>>2]=w;if(((a[(_b&n)>>0]|0)!=2?(Dc=c[2242]|0,c[(w&p)>>2]=ca(Dc,u)|0,V=c[((c[(r&p)+12>>2]|0)&p)+80>>2]|0,V=(V|0)<(Dc|0)?Dc:V,Dc=((u|0)<0)<<31>>31,V=sw(V|0,((V|0)<0)<<31>>31|0,u|0,Dc|0)|0,U=G,c[(w&p)+4>>2]=(U|0)<0|(U|0)==0&V>>>0<536870912?V:536870912,(c[2234]|0)==0):0)?(c[(w&p)+52>>2]=u,V=qg(u,Dc)|0,c[(w&p)+40>>2]=V,(V|0)==0):0){s=7;u=x;ie=1309;break c}else{S=z;T=s;U=W;V=X;u=L;r=t}break}case 566:{ie=0;T=(c[((c[(Ib&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<2)&p)>>2]|0)+40|0;V=T;U=c[(V&p)>>2]|0;V=c[(V&p)+4>>2]|0;S=jw(U|0,V|0,1,0)|0;c[(T&p)>>2]=S;c[(T&p)+4>>2]=G;if((U|0)==0&(V|0)==0){S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0}else{S=z;T=s;U=W;V=X}break}case 568:{ie=0;r=xm(f,c[(s+(t*20|0)&p)+4>>2]|0,c[(s+(t*20|0)&p)+12>>2]|0,-1,0)|0;if(!r){y=ge;z=je;r=m;m=x;ie=1317;break a}a[(r&n)+25>>0]=1;c[(r&p)+16>>2]=c[(s+(t*20|0)&p)+8>>2];S=r+27|0;a[(S&n)>>0]=a[(S&n)>>0]|4;S=z;T=s;U=W;V=X;r=t;break}case 570:{ie=0;S=s+(r*20|0)+4|0;Bm(f,c[((c[(Ib&p)>>2]|0)+(c[(S&p)>>2]<<2)&p)>>2]|0);c[((c[(Ib&p)>>2]|0)+(c[(S&p)>>2]<<2)&p)>>2]=0;S=z;T=s;U=W;V=X;break}case 571:{ie=0;H=c[((c[(Ib&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<2)&p)>>2]|0;a[(H&n)+25>>0]=0;if(!(a[(H&n)+27>>0]&4)){V=c[(s+(r*20|0)&p)+16>>2]|0;c[(wd&p)>>2]=c[(H&p)+8>>2];b[($b&o)>>1]=V;a[(cc&n)>>0]=(K<<1&2^2)+255;V=c[(s+(r*20|0)&p)+12>>2]|0;t=z+(V*40|0)|0;c[(dc&p)>>2]=t;if(b[(z+(V*40|0)&o)+8>>1]&16384)Rg(t)|0;u=Cm(c[(H&p)>>2]|0,wd,0,0,0,Ad)|0;if(!u){u=K;J=L}else{t=r;ie=1318;break c}}else{C=c[(s+(r*20|0)&p)+12>>2]|0;A=z+(C*40|0)|0;C=z+(C*40|0)+8|0;if((b[(C&o)>>1]&14)==2)rh(A,0);J=Vg(A)|0;I=G;C=e[(C&o)>>1]|0;do if(!(C&4)){if(!(C&8)){S=z;T=s;U=W;V=X;u=L;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0;break q}B=+h[(A&q)>>3];D=+(J>>>0)+4294967296.0*+(I|0);if(B>31)+K|0;break}else{C=(B>D&(K&1|0)==0&1)+K|0;break}}else C=K;while(0);u=Cm(c[(H&p)>>2]|0,0,J,I,0,Ad)|0;V=H+48|0;c[(V&p)>>2]=J;c[(V&p)+4>>2]=I;if(!u){u=C;J=L}else{t=r;ie=1318;break c}}a[(H&n)+26>>0]=0;c[(H&p)+60>>2]=0;t=c[(Ad&p)>>2]|0;do if((u|0)>63){if((t|0)>=0?!((t|0)==0&(u|0)==65):0){c[(Ad&p)>>2]=0;S=z;T=s;U=W;V=X;u=J;break q}c[(Ad&p)>>2]=0;u=Dm(c[(H&p)>>2]|0,Ad)|0;if(!u)ie=593;else{t=r;ie=1318;break c}}else{if((t|0)<=0?!((t|0)==0&(u|0)==62):0){t=(a[((c[(H&p)>>2]|0)&n)+73>>0]|0)!=1&1;c[(Ad&p)>>2]=t;break}c[(Ad&p)>>2]=0;u=Em(c[(H&p)>>2]|0,Ad)|0;if(!u)ie=593;else{t=r;ie=1318;break c}}while(0);if((ie|0)==593){ie=0;t=c[(Ad&p)>>2]|0}if(!t){S=z;T=s;U=W;V=X;u=J}else{S=z;T=s;U=W;V=X;u=J;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0}break}case 596:{ie=0;S=c[((c[(Ib&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<2)&p)>>2]|0;a[(S&n)+25>>0]=0;U=Vg(z+((c[(s+(r*20|0)&p)+8>>2]|0)*40|0)|0)|0;T=S+48|0;c[(T&p)>>2]=U;c[(T&p)+4>>2]=G;a[(S&n)+26>>0]=1;S=z;T=s;U=W;V=X;break}case 597:{ie=0;I=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;r=c[(s+(t*20|0)&p)+12>>2]|0;J=z+(r*40|0)|0;c[(od&p)>>2]=0;K=s+(t*20|0)+16|0;C=c[(K&p)>>2]|0;v=I+8|0;A=c[(v&p)>>2]|0;w:do if((C|0)>0){c[(xd&p)>>2]=A;C=C&65535;b[(ec&o)>>1]=C;c[(fc&p)>>2]=J;if(!(C<<16>>16))v=xd;else{r=J;A=0;while(1){if(b[(r+(A*40|0)&o)+8>>1]&16384){Rg(r+(A*40|0)|0)|0;C=b[(ec&o)>>1]|0}A=A+1|0;if((A|0)>=(C&65535|0)){v=xd;break w}r=c[(fc&p)>>2]|0}}}else{C=Fm(A,Sc,191,od)|0;if(!C){y=ge;z=je;r=m;m=x;ie=1317;break a}if(b[(z+(r*40|0)&o)+8>>1]&16384)Rg(J)|0;Gm(c[(v&p)>>2]|0,c[(z+(r*40|0)&p)+12>>2]|0,c[(z+(r*40|0)&p)+16>>2]|0,C);v=C}while(0);a[(v&n)+6>>0]=0;x:do if((a[(H&n)>>0]|0)==67?(Ec=b[(v&o)+4>>1]|0,Ec<<16>>16!=0):0){C=c[(v&p)+8>>2]|0;A=0;while(1){if(b[(C+(A*40|0)&o)+8>>1]&1)break;A=A+1|0;if((A|0)>=(Ec&65535|0)){L=t;r=t;break x}}L=t;r=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0}else{L=t;r=t}while(0);C=Cm(c[(I&p)>>2]|0,v,0,0,0,Bd)|0;if(!(c[(K&p)>>2]|0))mg(le,c[(od&p)>>2]|0);if(C){t=r;s=C;u=x;ie=1309;break c}t=c[(Bd&p)>>2]|0;c[(I&p)+12>>2]=t;t=(t|0)==0;a[(I&n)+25>>0]=t&1^1;a[(I&n)+26>>0]=0;c[(I&p)+60>>2]=0;if((a[(H&n)>>0]|0)==69){if(!t){S=z;T=s;U=W;V=X;break}S=z;T=s;U=W;V=X;r=(c[(s+(L*20|0)&p)+8>>2]|0)+-1|0;break}else{if(t){S=z;T=s;U=W;V=X;break}S=z;T=s;U=W;V=X;r=(c[(s+(L*20|0)&p)+8>>2]|0)+-1|0;break}}case 624:{ie=0;S=(c[((c[(Ib&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<2)&p)>>2]|0)+40|0;T=S;U=c[(T&p)>>2]|0;T=c[(T&p)+4>>2]|0;V=jw(U|0,T|0,1,0)|0;c[(S&p)>>2]=V;c[(S&p)+4>>2]=G;S=u;c[(S&p)>>2]=U;c[(S&p)+4>>2]=T;S=z;T=s;U=W;V=X;break}case 647:{ie=0;I=c[(s+(r*20|0)&p)+8>>2]|0;v=c[((c[(Ib&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<2)&p)>>2]|0;t=c[(s+(r*20|0)&p)+12>>2]|0;if(C<<24>>24==75){F=z+(t*40|0)|0;E=c[(F&p)>>2]|0;F=c[(F&p)+4>>2]|0}else{E=t;F=((t|0)<0)<<31>>31}H=s+(r*20|0)+3|0;J=a[(H&n)>>0]|0;if(J&1)c[(ub&p)>>2]=(c[(ub&p)>>2]|0)+1;if(J&2){m=ne;c[(m&p)>>2]=E;c[(m&p)+4>>2]=F;m=E;l=F}C=b[(z+(I*40|0)&o)+8>>1]|0;if(C&1){c[(z+(I*40|0)&p)+16>>2]=0;c[(z+(I*40|0)&p)+12>>2]=0}if(!(J&16))A=0;else A=c[(v&p)+12>>2]|0;if(!(C&16384))C=0;else C=c[(z+(I*40|0)&p)>>2]|0;C=Im(c[(v&p)>>2]|0,0,E,F,c[(z+(I*40|0)&p)+16>>2]|0,c[(z+(I*40|0)&p)+12>>2]|0,C,(J&255)>>>3&1,A)|0;a[(v&n)+26>>0]=0;c[(v&p)+60>>2]=0;if(C){t=r;s=C;u=x;ie=1309;break c}t=c[(gc&p)>>2]|0;if((t|0)!=0?(Fc=c[(s+(r*20|0)&p)+16>>2]|0,(Fc|0)!=0):0){bc[t&1](c[(hc&p)>>2]|0,(a[(H&n)>>0]&4)!=0?23:18,c[((c[(Xd&p)>>2]|0)+(a[(v&n)+24>>0]<<4)&p)>>2]|0,Fc,E,F);S=z;T=s;U=W;V=X}else{S=z;T=s;U=W;V=X}break}case 671:{ie=0;S=c[(ub&p)>>2]|0;c[(vb&p)>>2]=S;c[(wb&p)>>2]=(c[(wb&p)>>2]|0)+S;c[(ub&p)>>2]=0;S=z;T=s;U=W;V=X;break}case 672:{ie=0;J=c[((c[(Ib&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<2)&p)>>2]|0;I=c[(s+(r*20|0)&p)+12>>2]|0;H=c[(s+(r*20|0)&p)+16>>2]|0;t=c[(J&p)+56>>2]|0;A=t+32|0;C=c[(A&p)>>2]|0;J=c[(J&p)+8>>2]|0;if(!C){C=Fm(J,0,0,md)|0;c[(A&p)>>2]=C;if(!C){t=r;s=7;u=x;ie=1309;break c}b[(C&o)+4>>1]=H}if(!(a[(t&n)+56>>0]|0)){t=c[(t&p)+36>>2]|0;A=t;t=t+8|0}else{V=c[(t&p)+20>>2]|0;t=c[((c[(V&p)+8>>2]|0)&p)+4>>2]|0;V=c[(V&p)+12>>2]|0;A=V+(t*56|0)+20|0;t=c[(V+(t*56|0)&p)+32>>2]|0}Gm(J,c[(A&p)>>2]|0,t,C);y:do if((H|0)>0){t=c[(C&p)+8>>2]|0;v=0;while(1){if(b[(t+(v*40|0)&o)+8>>1]&1)break y;v=v+1|0;if((v|0)>=(H|0)){ie=682;break}}}else ie=682;while(0);if((ie|0)==682){ie=0;if(!(Km(c[(z+(I*40|0)&p)+12>>2]|0,c[(z+(I*40|0)&p)+16>>2]|0,C,0)|0)){S=z;T=s;U=W;V=X;break}}S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0;break}case 700:{ie=0;b[(u&o)+8>>1]=1;S=z;T=s;U=W;V=X;break}case 708:{ie=0;b[(u&o)+8>>1]=1;S=z;T=s;U=W;V=X;break}case 711:{ie=0;t=c[((c[(Ib&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<2)&p)>>2]|0;a[(t&n)+25>>0]=1;c[(t&p)+60>>2]=0;t=c[(t&p)>>2]|0;if(!t){S=z;T=s;U=W;V=X}else{S=t+56|0;Wc(c[(S&p)>>2]|0);c[(S&p)>>2]=0;a[(t&n)+73>>0]=0;S=z;T=s;U=W;V=X}break}case 801:{ie=0;t=c[((c[(Ib&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<2)&p)>>2]|0;u=c[(t&p)>>2]|0;K=L+8|0;b[(K&o)>>1]=1;if((a[(u&n)+73>>0]|0)!=1?(Vd=jm(t)|0,(Vd|0)!=0):0){t=r;u=Vd;ie=1318;break c}if(!(a[(t&n)+25>>0]|0)){V=Sd;c[(V&p)>>2]=0;c[(V&p)+4>>2]=0;km(u,Sd);b[(qc&o)>>1]=0;c[(sc&p)>>2]=le;c[(uc&p)>>2]=0;u=nm(u,0,c[(Sd&p)>>2]|0,1,$c)|0;do if(!u){t=c[(vc&p)>>2]|0;u=a[(t&n)>>0]|0;if(u<<24>>24>-1){C=u&255;c[(qd&p)>>2]=C}else{mm(t,qd)|0;C=c[(qd&p)>>2]|0}if(!(C>>>0<3?1:(C|0)>(c[(wc&p)>>2]|0))){t=(c[(vc&p)>>2]|0)+(C+-1)|0;u=a[(t&n)>>0]|0;if(u<<24>>24>-1){u=u&255;c[(Nd&p)>>2]=u}else{mm(t,Nd)|0;u=c[(Nd&p)>>2]|0}if(!((u+-1|0)>>>0>8|(u|0)==7)){if(u>>>0>11)t=(u+-12|0)>>>1;else t=d[(u&n)+34336>>0]|0;v=c[(wc&p)>>2]|0;if(v>>>0>=(t+C|0)>>>0){om((c[(vc&p)>>2]|0)+(v-t)|0,u,Qd)|0;v=Qd;t=c[(v&p)>>2]|0;v=c[(v&p)+4>>2]|0;if((b[(qc&o)>>1]&9312)==0&(c[(uc&p)>>2]|0)==0){u=0;break}Qg($c);u=0;break}}}if(!((b[(qc&o)>>1]&9312)==0&(c[(uc&p)>>2]|0)==0))Qg($c);c[(ke&p)>>2]=68698;c[(ke&p)+4>>2]=10788;bd(11,13600,ke);u=11;t=0;v=0}else{t=0;v=0}while(0);if(u){t=r;ie=1318;break c}S=L;c[(S&p)>>2]=t;c[(S&p)+4>>2]=v;b[(K&o)>>1]=4;S=z;T=s;U=W;V=X;u=L}else{S=z;T=s;U=W;V=X;u=L}break}case 865:{ie=0;w=c[(C&p)>>2]|0;C=c[((c[(Xd&p)>>2]|0)+(K<<4)&p)+12>>2]|0;t=c[(C&p)+16>>2]|0;if(t)do{v=(c[(t&p)+8>>2]|0)+32|0;if((c[(v&p)>>2]|0)==(A|0))c[(v&p)>>2]=w;t=c[(t&p)>>2]|0}while((t|0)!=0);t=c[(C&p)+32>>2]|0;if(t)do{v=(c[(t&p)+8>>2]|0)+40|0;if((c[(v&p)>>2]|0)==(A|0))c[(v&p)>>2]=w;t=c[(t&p)>>2]|0}while((t|0)!=0);S=z;T=s;U=W;V=X;x=K+1&255;break}case 878:{ie=0;_m(le,u);S=z;T=s;U=W;V=X;u=J;break}case 881:{ie=0;V=c[(s+(r*20|0)&p)+4>>2]|0;c[(Zc&p)>>2]=le;c[(ia&p)>>2]=V;c[(ja&p)>>2]=je;u=c[(s+(r*20|0)&p)+16>>2]|0;c[(ke&p)>>2]=c[((c[(Xd&p)>>2]|0)+(V<<4)&p)>>2];c[(ke&p)+4>>2]=(V|0)==1?13184:13208;c[(ke&p)+8>>2]=u;u=uh(le,42048,ke)|0;if(!u){t=r;u=x;ie=882;break c}a[(ka&n)>>0]=1;c[(la&p)>>2]=0;t=Qe(le,u,22,Zc,0)|0;t=(t|0)==0?c[(la&p)>>2]|0:t;mg(le,u);a[(ka&n)>>0]=0;if(!t){S=z;T=s;U=W;V=X;u=J}else{s=t;t=r;u=x;ie=884;break c}break}case 886:{ie=0;kg(le,Ik((c[((c[(Xd&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<4)&p)+12>>2]|0)+8|0,c[(s+(r*20|0)&p)+16>>2]|0,0)|0);c[(Tb&p)>>2]=c[(Tb&p)>>2]|2;S=z;T=s;U=W;V=X;break}case 887:{ie=0;C=Ik((c[((c[(Xd&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<4)&p)+12>>2]|0)+24|0,c[(s+(r*20|0)&p)+16>>2]|0,0)|0;if(C){t=(c[(C&p)+12>>2]|0)+8|0;u=c[(t&p)>>2]|0;z:do if((u|0)==(C|0))c[(t&p)>>2]=c[(C&p)+20>>2];else{do{if(!u)break z;t=u+20|0;u=c[(t&p)>>2]|0}while((u|0)!=(C|0));c[(t&p)>>2]=c[(C&p)+20>>2]}while(0);Jk(le,C)}c[(Tb&p)>>2]=c[(Tb&p)>>2]|2;S=z;T=s;U=W;V=X;u=J;break}case 895:{ie=0;C=Ik((c[((c[(Xd&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<4)&p)+12>>2]|0)+40|0,c[(s+(r*20|0)&p)+16>>2]|0,0)|0;if(!C){S=z;T=s;U=W;V=X}else{t=c[(C&p)+20>>2]|0;if((t|0)==(c[(C&p)+24>>2]|0)){t=bn(t+8|0,c[(C&p)+4>>2]|0,ke)|0;if(!t)t=0;else t=c[(t&p)+8>>2]|0;v=t+64|0;while(1){V=c[(v&p)>>2]|0;t=V+32|0;if((V|0)==(C|0))break;else v=t}c[(v&p)>>2]=c[(t&p)>>2]}jg(le,C);c[(Tb&p)>>2]=c[(Tb&p)>>2]|2;S=z;T=s;U=W;V=X}break}case 903:{ie=0;L=c[(s+(t*20|0)&p)+8>>2]|0;v=mh(le,(L<<2)+4|0,0)|0;if(!v){y=ge;z=je;r=m;m=x;ie=1317;break a}A=c[(s+(t*20|0)&p)+12>>2]|0;r=c[(s+(t*20|0)&p)+4>>2]|0;M=z+(r*40|0)|0;if((L|0)>0){C=0;do{V=Vg(z+((C+r|0)*40|0)|0)|0;c[(v+(C<<2)&p)>>2]=V;C=C+1|0}while((C|0)!=(L|0));C=L}else C=0;c[(v+(C<<2)&p)>>2]=0;I=c[((c[(Xd&p)>>2]|0)+(d[(s+(t*20|0)&n)+3>>0]<<4)&p)+4>>2]|0;P=z+(A*40|0)|0;V=c[(P&p)>>2]|0;O=c[(I&p)+4>>2]|0;c[(O&p)+4>>2]=c[(I&p)>>2];I=c[(O&p)>>2]|0;w=c[((c[(I&p)+204>>2]|0)&p)+12>>2]|0;c[(Sd&p)>>2]=O;c[(ma&p)>>2]=I;I=c[(O&p)+44>>2]|0;c[(na&p)>>2]=I;c[(oa&p)>>2]=V;c[(pa&p)>>2]=0;c[(pa&p)+4>>2]=0;c[(pa&p)+8>>2]=0;c[(pa&p)+12>>2]=0;c[(pa&p)+16>>2]=0;do if(!I){A=0;C=0}else{J=(I>>>3)+1|0;H=qg(J,0)|0;if(!H){c[(sa&p)>>2]=0;A=0;C=1;break}fw(H|0,0,J|0)|0;c[(sa&p)>>2]=H;N=O+32|0;J=(((c[2514]|0)>>>0)/((c[(N&p)>>2]|0)>>>0)|0)+1|0;if(J>>>0<=I>>>0){V=H+(J>>>3)|0;a[(V&n)>>0]=d[(V&n)>>0]|1<<(J&7)}c[(ua&p)>>2]=Nd;c[(va&p)>>2]=Nd;c[(ta&p)>>2]=0;c[(wa&p)>>2]=0;c[(xa&p)>>2]=100;c[(ya&p)>>2]=1e9;a[(Aa&n)>>0]=0;a[(za&n)>>0]=2;c[(ra&p)>>2]=43592;C=c[((c[(O&p)+12>>2]|0)&p)+56>>2]|0;cn(Sd,1,d[(C&n)+33>>0]<<16|d[(C&n)+32>>0]<<24|d[(C&n)+34>>0]<<8|d[(C&n)+35>>0],d[(C&n)+37>>0]<<16|d[(C&n)+36>>0]<<24|d[(C&n)+38>>0]<<8|d[(C&n)+39>>0]);c[(ra&p)>>2]=0;C=c[(oa&p)>>2]|0;if(!((L|0)<1|(C|0)==0)){F=O+17|0;H=0;do{I=v+(H<<2)|0;J=c[(I&p)>>2]|0;if(J){if((a[(F&n)>>0]|0)!=0&(J|0)>1){dn(Sd,J,1,0);J=c[(I&p)>>2]|0}c[(ra&p)>>2]=43608;en(Sd,J,0,0)|0;c[(ra&p)>>2]=0;C=c[(oa&p)>>2]|0}H=H+1|0}while(!((H|0)>=(L|0)|(C|0)==0))}if(!((c[(na&p)>>2]|0)==0|(C|0)==0)){E=O+17|0;C=O+36|0;L=1;do{H=L>>>3;J=a[((c[(sa&p)>>2]|0)+H&n)>>0]|0;F=1<<(L&7);do if(!(J&255&F)){if(L>>>0<2)I=0;else{I=L+-2|0;I=I-((I>>>0)%(((((c[(C&p)>>2]|0)>>>0)/5|0)+1|0)>>>0)|0)|0;I=((I+1|0)==(((c[2514]|0)>>>0)/((c[(N&p)>>2]|0)>>>0)|0|0)?3:2)+I|0}if((I|0)==(L|0)?(a[(E&n)>>0]|0)!=0:0)break;c[(ke&p)>>2]=L;fn(Sd,43632,ke);J=a[((c[(sa&p)>>2]|0)+H&n)>>0]|0}while(0);do if(J&255&F){if(L>>>0<2)J=0;else{J=L+-2|0;J=J-((J>>>0)%(((((c[(C&p)>>2]|0)>>>0)/5|0)+1|0)>>>0)|0)|0;J=((J+1|0)==(((c[2514]|0)>>>0)/((c[(N&p)>>2]|0)>>>0)|0|0)?3:2)+J|0}if((J|0)!=(L|0))break;if(!(a[(E&n)>>0]|0))break;c[(ke&p)>>2]=L;fn(Sd,43656,ke)}while(0);L=L+1|0}while(!((c[(oa&p)>>2]|0)==0?1:L>>>0>(c[(na&p)>>2]|0)>>>0))}C=c[((c[((c[(O&p)>>2]|0)&p)+204>>2]|0)&p)+12>>2]|0;if((w|0)!=(C|0)){c[(ke&p)>>2]=w;c[(ke&p)+4>>2]=C;fn(Sd,43696,ke)}Wc(c[(sa&p)>>2]|0);if(c[(qa&p)>>2]|0){gn(ta);A=0;C=(c[(pa&p)>>2]|0)+1|0;break}C=c[(pa&p)>>2]|0;if(!C)gn(ta);A=tg(ta)|0}while(0);mg(le,v);U=P;U=dw(c[(U&p)>>2]|0,c[(U&p)+4>>2]|0,C|0,((C|0)<0)<<31>>31|0)|0;V=P;c[(V&p)>>2]=U;c[(V&p)+4>>2]=G;r=z+(r*40|0)+8|0;if(!(b[(r&o)>>1]&9312))b[(r&o)>>1]=1;else vg(M);if(C){if(!A){y=ge;z=je;r=m;m=x;ie=1317;break a}Xg(M,A,-1,1,1)|0}Yl(M,xb)|0;S=z;T=s;U=W;V=X;r=t;break}case 947:{ie=0;v=c[(s+(t*20|0)&p)+4>>2]|0;r=z+(v*40|0)|0;u=c[(s+(t*20|0)&p)+8>>2]|0;v=z+(v*40|0)+8|0;if((b[(v&o)>>1]&32)==0?(hn(r),(b[(v&o)>>1]&32)==0):0){y=ge;z=je;r=m;m=x;ie=1317;break a}S=z+(u*40|0)|0;jn(c[(r&p)>>2]|0,c[(S&p)>>2]|0,c[(S&p)+4>>2]|0);S=z;T=s;U=W;V=X;u=J;r=t;break}case 966:{ie=0;r=c[(s+(t*20|0)&p)+4>>2]|0;P=z+(r*40|0)|0;O=z+((c[(s+(t*20|0)&p)+12>>2]|0)*40|0)|0;N=c[(s+(t*20|0)&p)+16>>2]|0;r=z+(r*40|0)+8|0;if((b[(r&o)>>1]&32)==0?(hn(P),(b[(r&o)>>1]&32)==0):0){y=ge;z=je;r=m;m=x;ie=1317;break a}if(N){L=c[(P&p)>>2]|0;v=O;M=c[(v&p)>>2]|0;v=c[(v&p)+4>>2]|0;K=L+28|0;if((c[(K&p)>>2]|0)!=(N|0)){C=L+8|0;J=c[(C&p)>>2]|0;if(J){I=L+20|0;A=L+26|0;if(!(b[(A&o)>>1]&1))J=kn(J)|0;H=c[(I&p)>>2]|0;A:do if(!H){ld=J;rd=I;ie=978}else{while(1){I=H+12|0;F=c[(I&p)>>2]|0;if(!F)break;E=H+8|0;ln(F,ke,Sd);c[(I&p)>>2]=0;J=mn(c[(ke&p)>>2]|0,J)|0;H=c[(E&p)>>2]|0;if(!H){ld=J;rd=E;ie=978;break A}}c[(I&p)>>2]=nn(J)|0}while(0);if((ie|0)==978?(ie=0,Kc=on(L)|0,c[(rd&p)>>2]=Kc,(Kc|0)!=0):0){V=Kc;c[(V&p)>>2]=0;c[(V&p)+4>>2]=0;c[(Kc&p)+8>>2]=0;c[(Kc&p)+12>>2]=nn(ld)|0}c[(C&p)>>2]=0;c[(L&p)+12>>2]=0;b[(A&o)>>1]=e[(A&o)>>1]|1}c[(K&p)>>2]=N}C=c[(L&p)+20>>2]|0;B:do if(C){C:while(1){A=c[(C&p)+12>>2]|0;if(A)do{r=A;E=c[(r&p)>>2]|0;r=c[(r&p)+4>>2]|0;if((r|0)<(v|0)|(r|0)==(v|0)&E>>>0>>0)A=A+8|0;else{if(!((r|0)>(v|0)|(r|0)==(v|0)&E>>>0>M>>>0))break C;A=A+12|0}A=c[(A&p)>>2]|0}while((A|0)!=0);C=c[(C&p)+8>>2]|0;if(!C)break B}S=z;T=s;U=W;V=X;r=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;break q}while(0);if((N|0)>-1)C=O;else{S=z;T=s;U=W;V=X;r=t;break}}else C=O;S=C;jn(c[(P&p)>>2]|0,c[(S&p)>>2]|0,c[(S&p)+4>>2]|0);S=z;T=s;U=W;V=X;r=t;break}case 993:{ie=0;K=c[(s+(r*20|0)&p)+16>>2]|0;I=c[(s+(r*20|0)&p)+12>>2]|0;L=z+(I*40|0)|0;if((a[(s+(r*20|0)&n)+3>>0]|0)!=0?(Lc=c[(K&p)+20>>2]|0,nd=c[(sb&p)>>2]|0,(nd|0)!=0):0){t=nd;while(1){if((c[(t&p)+28>>2]|0)==(Lc|0)){S=z;T=s;U=W;V=X;break q}t=c[(t&p)+4>>2]|0;if(!t){t=r;break}}}else t=r;r=c[(tb&p)>>2]|0;if((r|0)>=(c[(Ba&p)>>2]|0)){u=x;ie=998;break c}E=z+(I*40|0)+8|0;if(!(b[(E&o)>>1]&64)){C=K+12|0;A=c[(C&p)>>2]|0;r=A+(c[(K&p)+8>>2]|0)|0;s=K+16|0;A=(A<<2)+80+(c[(s&p)>>2]|0)+(r*40|0)|0;J=mh(le,A,((A|0)<0)<<31>>31)|0;if(!J){y=ge;z=je;r=m;m=x;ie=1317;break a}fw(J|0,0,A|0)|0;if(!((b[(E&o)>>1]&9312)==0?(c[(z+(I*40|0)&p)+24>>2]|0)==0:0))Qg(L);b[(E&o)>>1]=64;c[(L&p)>>2]=J;c[(J&p)>>2]=f;c[(J&p)+60>>2]=r;c[(J&p)+64>>2]=c[(C&p)>>2];c[(J&p)+44>>2]=t;c[(J&p)+16>>2]=c[(Nc&p)>>2];c[(J&p)+52>>2]=c[(Ca&p)>>2];c[(J&p)+24>>2]=c[(Ib&p)>>2];c[(J&p)+40>>2]=c[(Da&p)>>2];c[(J&p)+8>>2]=c[(zc&p)>>2];c[(J&p)+48>>2]=c[(Ea&p)>>2];c[(J&p)+28>>2]=c[(K&p)+20>>2];c[(J&p)+20>>2]=c[(Hb&p)>>2];c[(J&p)+56>>2]=c[(Fa&p)>>2];z=J+80|0;r=z+(r*40|0)|0;if((z|0)!=(r|0))do{b[(z&o)+8>>1]=128;c[(z&p)+32>>2]=le;z=z+40|0}while((z|0)!=(r|0));r=c[(tb&p)>>2]|0;z=J}else{s=K+16|0;z=c[(L&p)>>2]|0}c[(tb&p)>>2]=r+1;c[(z&p)+4>>2]=c[(sb&p)>>2];S=z+32|0;c[(S&p)>>2]=m;c[(S&p)+4>>2]=l;c[(z&p)+68>>2]=c[(ub&p)>>2];c[(z&p)+72>>2]=c[((c[(f&p)>>2]|0)&p)+80>>2];c[(ub&p)>>2]=0;c[(sb&p)>>2]=z;S=z+40|0;c[(Nc&p)>>2]=S;U=c[(z&p)+60>>2]|0;c[(Ca&p)>>2]=U;V=c[(z&p)+64>>2]&65535;c[(Da&p)>>2]=V;U=S+((U+1|0)*40|0)|0;c[(Ib&p)>>2]=U;T=c[(K&p)>>2]|0;c[(zc&p)>>2]=T;c[(Ea&p)>>2]=c[(K&p)+4>>2];V=U+(V<<2)|0;c[(Hb&p)>>2]=V;U=c[(s&p)>>2]|0;c[(Fa&p)>>2]=U;fw(V|0,0,U|0)|0;U=W;V=X;r=-1;break}case 1009:{ie=0;S=c[(sb&p)>>2]|0;Zl(u,(c[(S&p)+16>>2]|0)+(((c[((c[(S&p)+8>>2]|0)+((c[(S&p)+44>>2]|0)*20|0)&p)+4>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]|0)|0)*40|0)|0,4096);S=z;T=s;U=W;V=X;break}case 1010:{ie=0;if(c[(Tb&p)>>2]&16777216){T=c[(s+(r*20|0)&p)+8>>2]|0;S=Rb;T=jw(c[(S&p)>>2]|0,c[(S&p)+4>>2]|0,T|0,((T|0)<0)<<31>>31|0)|0;S=Rb;c[(S&p)>>2]=T;c[(S&p)+4>>2]=G;S=z;T=s;U=W;V=X;u=J;break}t=c[(s+(r*20|0)&p)+8>>2]|0;u=((t|0)<0)<<31>>31;if(!(c[(s+(r*20|0)&p)+4>>2]|0)){T=_d;T=jw(c[(T&p)>>2]|0,c[(T&p)+4>>2]|0,t|0,u|0)|0;S=_d;c[(S&p)>>2]=T;c[(S&p)+4>>2]=G;S=z;T=s;U=W;V=X;u=J;break}else{T=Qb;T=jw(c[(T&p)>>2]|0,c[(T&p)+4>>2]|0,t|0,u|0)|0;S=Qb;c[(S&p)>>2]=T;c[(S&p)+4>>2]=G;S=z;T=s;U=W;V=X;u=J;break}}case 1015:{ie=0;if(!(c[(s+(r*20|0)&p)+4>>2]|0)){V=_d;if(!((c[(V&p)>>2]|0)==0&(c[(V&p)+4>>2]|0)==0)){S=z;T=s;U=W;V=X;break}V=Rb;if(!((c[(V&p)>>2]|0)==0&(c[(V&p)+4>>2]|0)==0)){S=z;T=s;U=W;V=X;break}S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0;break}else{V=Qb;if(!((c[(V&p)>>2]|0)==0&(c[(V&p)+4>>2]|0)==0)){S=z;T=s;U=W;V=X;break}V=Rb;if(!((c[(V&p)>>2]|0)==0&(c[(V&p)+4>>2]|0)==0)){S=z;T=s;U=W;V=X;break}S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0;break}}case 1022:{ie=0;t=c[(sb&p)>>2]|0;if(!t)v=z+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)|0;else{while(1){u=c[(t&p)+4>>2]|0;if(!u)break;else t=u}v=(c[(t&p)+16>>2]|0)+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)|0}U=Vg(v)|0;V=v;c[(V&p)>>2]=U;c[(V&p)+4>>2]=G;V=v+8|0;b[(V&o)>>1]=e[(V&o)>>1]&48640|4;V=c[(s+(r*20|0)&p)+8>>2]|0;U=z+(V*40|0)|0;t=Vg(U)|0;u=G;c[(U&p)>>2]=t;c[(U&p)+4>>2]=u;V=z+(V*40|0)+8|0;b[(V&o)>>1]=e[(V&o)>>1]&48640|4;V=v;U=c[(V&p)+4>>2]|0;if((U|0)<(u|0)|((U|0)==(u|0)?(c[(V&p)>>2]|0)>>>0>>0:0)){S=v;c[(S&p)>>2]=t;c[(S&p)+4>>2]=u;S=z;T=s;U=W;V=X;u=L}else{S=z;T=s;U=W;V=X;u=L}break}case 1028:{ie=0;V=z+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)|0;U=c[(V&p)+4>>2]|0;if((U|0)>0|(U|0)==0&(c[(V&p)>>2]|0)>>>0>0){S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0}else{S=z;T=s;U=W;V=X}break}case 1030:{ie=0;T=c[(s+(r*20|0)&p)+12>>2]|0;U=z+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)|0;V=U;T=jw(c[(V&p)>>2]|0,c[(V&p)+4>>2]|0,T|0,((T|0)<0)<<31>>31|0)|0;V=G;c[(U&p)>>2]=T;c[(U&p)+4>>2]=V;if((V|0)<0){S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0}else{S=z;T=s;U=W;V=X}break}case 1032:{ie=0;t=z+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)|0;v=t;u=c[(v&p)>>2]|0;v=c[(v&p)+4>>2]|0;if((u|0)==0&(v|0)==0){S=z;T=s;U=W;V=X;u=J}else{T=c[(s+(r*20|0)&p)+12>>2]|0;T=jw(T|0,((T|0)<0)<<31>>31|0,u|0,v|0)|0;S=t;c[(S&p)>>2]=T;c[(S&p)+4>>2]=G;S=z;T=s;U=W;V=X;u=J;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0}break}case 1034:{ie=0;T=z+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)|0;U=T;U=jw(c[(U&p)>>2]|0,c[(U&p)+4>>2]|0,-1,-1)|0;V=G;c[(T&p)>>2]=U;c[(T&p)+4>>2]=V;if((U|0)==0&(V|0)==0){S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0}else{S=z;T=s;U=W;V=X}break}case 1036:{ie=0;T=z+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)|0;V=T;U=c[(V&p)>>2]|0;V=c[(V&p)+4>>2]|0;S=jw(U|0,V|0,1,0)|0;c[(T&p)>>2]=S;c[(T&p)+4>>2]=G;if((U|0)==0&(V|0)==0){S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0}else{S=z;T=s;U=W;V=X}break}case 1157:{ie=0;S=z;T=s;U=W;V=X;r=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;break}case 1158:{ie=0;if(c[(s+(r*20|0)&p)+4>>2]|0){b[(Yd&o)>>1]=b[(Yd&o)>>1]|8;S=z;T=s;U=W;V=X;break}t=c[(Vb&p)>>2]|0;if(!t){S=z;T=s;U=W;V=X}else{do{V=t+88|0;b[(V&o)>>1]=b[(V&o)>>1]|8;t=c[(t&p)+52>>2]|0}while((t|0)!=0);S=z;T=s;U=W;V=X}break}case 1166:{ie=0;J=(c[(w&p)>>2]|0)+72|0;t=c[(J&p)>>2]|0;D:do if(t){while(1){if((c[(t&p)+4>>2]|0)==(A|0)?(c[(t&p)>>2]|0)==(C|0):0)break;t=c[(t&p)+12>>2]|0;if(!t){ie=1171;break D}}if(!t)ie=1171}else ie=1171;while(0);if((ie|0)==1171){ie=0;t=qg(16,0)|0;if(!t){t=r;s=7;u=x;ie=1309;break c}U=t+0|0;V=U+12|0;do{a[(U&n)>>0]=0;U=U+1|0}while((U|0)<(V|0));c[(t&p)+4>>2]=A;c[(t&p)>>2]=C;c[(t&p)+12>>2]=c[(J&p)>>2];c[(J&p)>>2]=t}t=t+8|0;if((d[(t&n)>>0]|0)<(v&255)){a[(t&n)>>0]=v;S=z;T=s;U=W;V=X}else{S=z;T=s;U=W;V=X}break}case 1213:{ie=0;c[(sd&p)>>2]=0;v=c[((c[(s+(r*20|0)&p)+16>>2]|0)&p)+8>>2]|0;if(!v){t=r;s=6;u=x;ie=1309;break c}w=c[(v&p)>>2]|0;if(!w){t=r;s=6;u=x;ie=1309;break c}C=rc[c[(w&p)+24>>2]&127](v,sd)|0;Mm(f,v);if(C){t=r;s=C;u=x;ie=1309;break c}c[(c[(sd&p)>>2]&p)>>2]=v;t=xm(f,c[(s+(r*20|0)&p)+4>>2]|0,0,-1,0)|0;if(!t){a[(ge&n)>>0]=1;lc[c[(w&p)+28>>2]&127](c[(sd&p)>>2]|0)|0;S=z;T=s;U=W;V=X;break}else{c[(t&p)+32>>2]=c[(sd&p)>>2];S=v+4|0;c[(S&p)>>2]=(c[(S&p)>>2]|0)+1;S=z;T=s;U=W;V=X;break}}case 1226:{ie=0;t=z+(C*40|0)+8|0;if(!(b[(t&o)>>1]&9312)){b[(t&o)>>1]=1;S=z;T=s;U=W;V=X;break}else{vg(A);S=z;T=s;U=W;V=X;break}}case 1257:{ie=0;S=u;c[(S&p)>>2]=c[((c[((c[((c[(Xd&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<4)&p)+4>>2]|0)&p)+4>>2]|0)&p)+44>>2];c[(S&p)+4>>2]=0;S=z;T=s;U=W;V=X;break}case 1258:{ie=0;v=c[((c[(Xd&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<4)&p)+4>>2]|0;t=c[(s+(r*20|0)&p)+12>>2]|0;u=c[(v&p)+4>>2]|0;if(!t)t=0;else{V=c[(u&p)+44>>2]|0;t=V>>>0>>0?t:V}c[(u&p)+4>>2]=c[(v&p)>>2];u=(c[(u&p)>>2]|0)+156|0;if((t|0)>0)c[(u&p)>>2]=t;else t=c[(u&p)>>2]|0;S=J;c[(S&p)>>2]=t;c[(S&p)+4>>2]=((t|0)<0)<<31>>31;S=z;T=s;U=W;V=X;u=J;break}case 1264:{ie=0;r=c[(s+(t*20|0)&p)+8>>2]|0;r=(r|0)==0?t:r+-1|0;if((c[(Sa&p)>>2]|0)!=0?(b[(Yd&o)>>1]&512)==0:0){t=c[(s+(t*20|0)&p)+16>>2]|0;if(!t){t=c[(ce&p)>>2]|0;if(!t){S=z;T=s;U=W;V=X;u=L;break}}c[(Sd&p)>>2]=0;F=c[(f&p)>>2]|0;v=c[(F&p)+88>>2]|0;c[(fb&p)>>2]=Nd;c[(gb&p)>>2]=Nd;c[(hb&p)>>2]=0;c[(ib&p)>>2]=100;c[(jb&p)>>2]=v;a[(kb&n)>>0]=1;a[(lb&n)>>0]=0;c[(qd&p)>>2]=F;v=a[(t&n)>>0]|0;u=v<<24>>24==0;E:do if((c[(F&p)+160>>2]|0)>1){if(!u)while(1){u=t;do{u=u+1|0;if(v<<24>>24==10)break;v=a[(u&n)>>0]|0}while(v<<24>>24!=0);Sk(qd,42288,3);Sk(qd,t,u-t|0);v=a[(u&n)>>0]|0;if(!(v<<24>>24))break;else t=u}}else if(!u){H=F+62|0;K=1;do{F:do if(!(v<<24>>24)){A=0;u=0}else{C=t;u=0;while(1){A=Cn(C,ke)|0;if((c[(ke&p)>>2]|0)==135)break F;u=A+u|0;C=C+A|0;if(!(a[(C&n)>>0]|0)){A=0;break}}}while(0);Sk(qd,t,u);C=t+u|0;if(!A)break E;do if((a[(C&n)>>0]|0)==63)if((A|0)>1){Dn(t+(u+1)|0,Sd)|0;C=c[(Sd&p)>>2]|0;break}else{c[(Sd&p)>>2]=K;C=K;break}else{C=qh(f,C,A)|0;c[(Sd&p)>>2]=C}while(0);t=t+(u+A)|0;K=C+1|0;J=C+-1|0;I=c[(Ab&p)>>2]|0;C=I+(J*40|0)|0;A=e[(I+(J*40|0)&o)+8>>1]|0;do if(!(A&1)){if(A&4){T=C;U=c[(T&p)+4>>2]|0;V=ke;c[(V&p)>>2]=c[(T&p)>>2];c[(V&p)+4>>2]=U;En(qd,0,19920,ke);break}if(A&8){h[(k&q)>>3]=+h[(C&q)>>3];c[(ke&p)>>2]=c[(k&p)>>2];c[(ke&p)+4>>2]=c[(k&p)+4>>2];En(qd,0,20272,ke);break}if(!(A&2)){if(A&16384){c[(ke&p)>>2]=c[(C&p)>>2];En(qd,0,42304,ke);break}Sk(qd,42320,2);E=c[(I+(J*40|0)&p)+12>>2]|0;if((E|0)>0){C=I+(J*40|0)+16|0;A=0;do{c[(ke&p)>>2]=d[((c[(C&p)>>2]|0)+A&n)>>0];En(qd,0,42328,ke);A=A+1|0}while((A|0)!=(E|0))}Sk(qd,42336,1);break}else{E=a[(H&n)>>0]|0;if(E<<24>>24==1){V=c[(I+(J*40|0)&p)+16>>2]|0;c[(ke&p)>>2]=c[(I+(J*40|0)&p)+12>>2];c[(ke&p)+4>>2]=V;En(qd,0,42296,ke);break}U=Od+0|0;V=U+40|0;do{c[(U&p)>>2]=0;U=U+4|0}while((U|0)<(V|0));c[(nb&p)>>2]=F;Xg(Od,c[(I+(J*40|0)&p)+16>>2]|0,c[(I+(J*40|0)&p)+12>>2]|0,E,0)|0;V=c[(ob&p)>>2]|0;if(!((V&2|0)==0|(V&16711680|0)==65536))Bn(Od,1)|0;V=c[(qb&p)>>2]|0;c[(ke&p)>>2]=c[(pb&p)>>2];c[(ke&p)+4>>2]=V;En(qd,0,42296,ke);if((b[(ob&o)>>1]&9312)==0&(c[(rb&p)>>2]|0)==0)break;Qg(Od);break}}else Sk(qd,20304,4);while(0);v=a[(t&n)>>0]|0}while(v<<24>>24!=0)}while(0);S=tg(qd)|0;jc[c[(Sa&p)>>2]&15](c[(mb&p)>>2]|0,S);mg(le,S);S=z;T=s;U=W;V=X;u=L}else{S=z;T=s;U=W;V=X;u=L}break}}if((ie|0)==28){ie=0;z=s+(r*20|0)+4|0;t=c[(z&p)>>2]|0;if(t){y=z;ie=34;break}z=c[(sb&p)>>2]|0;if(!z){ie=30;break}c[(sb&p)>>2]=c[(z&p)+4>>2];c[(tb&p)>>2]=(c[(tb&p)>>2]|0)+-1;l=c[(ub&p)>>2]|0;c[(vb&p)>>2]=l;c[(wb&p)>>2]=(c[(wb&p)>>2]|0)+l;z=Xl(z)|0;l=ne;t=c[(zc&p)>>2]|0;if((c[(s+(r*20|0)&p)+8>>2]|0)==4)r=(c[(t+(z*20|0)&p)+8>>2]|0)+-1|0;else r=z;m=c[(l&p)>>2]|0;l=c[(l&p)+4>>2]|0;S=c[(Nc&p)>>2]|0;T=t;U=W;V=X}else if((ie|0)==488){ie=0;u=sm(le,C,A)|0;if(!u){S=z;T=s;U=W;V=X;u=E}else{t=r;ie=1318;break}}z=S;s=T;W=U;X=V;t=r+1|0}switch(ie|0){case 30:{c[(me&p)>>2]=t;a[(fe&n)>>0]=c[(s+(r*20|0)&p)+8>>2];c[(he&p)>>2]=r;ie=41;break}case 34:{c[(me&p)>>2]=t;a[(fe&n)>>0]=c[(s+(r*20|0)&p)+8>>2];c[(he&p)>>2]=r;t=a[(s+(r*20|0)&n)+3>>0]|0;if(!(t<<24>>24)){s=c[(s+(r*20|0)&p)+16>>2]|0;if(!s){s=0;ie=39}else{c[(ke&p)>>2]=s;dh(je,le,10344,ke)}}else{u=c[((t&255)+-1<<2&p)+41536>>2]|0;t=c[(s+(r*20|0)&p)+16>>2]|0;if(!t){s=u;ie=39}else{c[(ke&p)>>2]=u;c[(ke&p)+4>>2]=t;dh(je,le,41624,ke)}}if((ie|0)==39){c[(ke&p)>>2]=s;dh(je,le,41656,ke)}ie=c[(y&p)>>2]|0;qd=c[(ce&p)>>2]|0;rd=c[(je&p)>>2]|0;c[(ke&p)>>2]=r;c[(ke&p)+4>>2]=qd;c[(ke&p)+8>>2]=rd;bd(ie,41600,ke);ie=41;break}case 80:{x=c[(be&p)>>2]|0;if(!((x|0)==0|g>>>0>>0)?(lc[x&127](c[(Zd&p)>>2]|0)|0)!=0:0){r=m;s=9;m=u;ie=1311;break a}rd=_d;qd=c[(rd&p)+4>>2]|0;if((qd|0)>0|(qd|0)==0&(c[(rd&p)>>2]|0)>>>0>0){s=c[(f&p)>>2]|0;c[(me&p)>>2]=787;a[(fe&n)>>0]=2;dh(je,s,34376,ke);s=1;ie=1309;break}x=$l(f,1)|0;if(!x){c[($d&p)>>2]=(c[($d&p)>>2]|0)+2|1;y=c[(s+(t*20|0)&p)+4>>2]|0;c[(de&p)>>2]=z+(y*40|0);r=s+(t*20|0)+8|0;if((c[(r&p)>>2]|0)>0){x=0;do{v=x+y|0;w=z+(v*40|0)|0;v=z+(v*40|0)+8|0;s=b[(v&o)>>1]|0;if(s&4096){if(Vl(w)|0){y=ge;z=je;r=m;m=u;ie=1317;break a}s=b[(v&o)>>1]|0}if((s&514)==2)am(w)|0;x=x+1|0}while((x|0)<(c[(r&p)>>2]|0))}if(a[(ge&n)>>0]|0){y=ge;z=je;r=m;m=u;ie=1317;break a}c[(he&p)>>2]=t+1;r=m;m=g;g=100;break a}else{s=x;ie=1309}break}case 313:{c[(ke&p)>>2]=73058;c[(ke&p)+4>>2]=10788;bd(11,13600,ke);s=11;ie=1309;break}case 343:{c[(ke&p)>>2]=73142;c[(ke&p)+4>>2]=10788;bd(11,13600,ke);s=11;ie=1309;break}case 447:{dh(je,le,41712,ke);t=r;s=5;ie=1309;break}case 460:{c[(ke&p)>>2]=s;dh(je,le,41768,ke);s=1;ie=1309;break}case 462:{dh(je,le,41792,ke);s=5;ie=1309;break}case 467:{c[(he&p)>>2]=g;a[(ee&n)>>0]=0;c[(me&p)>>2]=5;g=5;break a}case 489:{v=c[(s+(t*20|0)&p)+4>>2]|0;s=c[(s+(t*20|0)&p)+8>>2]|0;g=(v|0)!=0;if(g){s=(s|0)!=0;if(!(s|(a[(ee&n)>>0]|0)!=0))if((c[(ae&p)>>2]|0)>0){dh(je,le,41848,ke);g=m;m=r;s=5;ie=1309;break}else s=0}else s=(s|0)!=0;if((v|0)==(d[(ee&n)>>0]|0)){if(g)g=s?41952:42e3;else g=41904;dh(je,le,g,ke);g=m;m=r;s=1;ie=1309;break}if(!s){g=tm(f,1)|0;if(g)break a;a[(ee&n)>>0]=v;if((Rl(f)|0)==5){c[(he&p)>>2]=t;a[(ee&n)>>0]=1-v;c[(me&p)>>2]=5;g=5;break a}}else{Kl(le,516);a[(ee&n)>>0]=1}Ll(le);g=(c[(me&p)>>2]|0)==0?101:1;break a}case 508:{c[(he&p)>>2]=g;c[(me&p)>>2]=5;g=5;break a}case 522:{mg(le,c[(je&p)>>2]|0);c[(je&p)>>2]=kh(le,16040)|0;s=c[(s&p)>>2]|0;if((c[(c[((c[(Xd&p)>>2]|0)+(s<<4)&p)+12>>2]&p)>>2]|0)!=(v|0))vm(le,s);b[(Yd&o)>>1]=b[(Yd&o)>>1]|8;s=17;ie=1309;break}case 542:{c[(ke&p)>>2]=73997;c[(ke&p)+4>>2]=10788;bd(11,13600,ke);u=11;x=s;ie=1318;break}case 560:{c[(s&p)+56>>2]=0;s=7;ie=1309;break}case 832:{a[(fe&n)>>0]=2;s=6;ie=1309;break}case 882:{Eg(le);y=ge;z=je;r=m;m=u;ie=1317;break a}case 884:{Eg(le);if((s|0)==7){y=ge;z=je;r=m;m=u;ie=1317;break a}else ie=1309;break}case 998:{dh(je,le,42112,ke);s=1;ie=1309;break}case 1080:{c[(ke&p)>>2]=s?42208:42216;dh(je,le,42152,ke);s=1;ie=1309;break}case 1101:{dh(je,le,42344,ke);s=1;ie=1309;break}case 1103:{dh(je,le,42384,ke);s=1;ie=1309;break}case 1145:{c[(ke&p)>>2]=56343;c[(ke&p)+4>>2]=10788;bd(11,13600,ke);s=11;ie=1309;break}case 1316:{dh(je,le,10096,ke);r=m;s=18;m=u;ie=1311;break a}}if((ie|0)==41)if((Rl(f)|0)==5){c[(me&p)>>2]=5;r=m;m=g;g=5;break a}else{r=m;m=g;g=(c[(me&p)>>2]|0)!=0?1:101;break a}else if((ie|0)==1309){r=m;t=t+1|0;m=u;ie=1311;break a}else if((ie|0)==1318){u=(a[(ge&n)>>0]|0)==0?u:7;if((u|0)==3082){r=m;s=3082;m=x;ie=1311;break a}else if((u|0)!=516){r=u&255;if(r>>>0>26|(r|0)==2)s=16328;else s=c[(r<<2&p)+15488>>2]|0}else s=16344;c[(ke&p)>>2]=s;dh(je,le,10344,ke);r=m;s=u;m=x;ie=1311;break a}}else{u=f+44|0;r=m;g=0;t=0;m=0}while(0);c[(me&p)>>2]=9;c[(ke&p)>>2]=15832;dh(u,le,10344,ke);s=9;ie=1311}while(0);if((ie|0)==1317){a[(y&n)>>0]=1;dh(z,le,15776,ke);s=7;ie=1311}if((ie|0)==1311){c[(me&p)>>2]=s;qd=c[(f&p)+168>>2]|0;rd=c[(f&p)+44>>2]|0;c[(ke&p)>>2]=t;c[(ke&p)+4>>2]=qd;c[(ke&p)+8>>2]=rd;bd(s,42256,ke);Rl(f)|0;if((s|0)==3082)a[(le&n)+65>>0]=1;if(!(m<<24>>24)){m=g;g=1}else{vm(le,(m&255)+-1|0);m=g;g=1}}rd=ne;c[(rd&p)>>2]=r;c[(rd&p)+4>>2]=l;rd=f+124|0;c[(rd&p)>>2]=(c[(rd&p)>>2]|0)+m;i=oe;return g|0} function Ev(e){e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=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=e+20|0;u=e+14|0;f=a[(u&n)>>0]|0;z=e+13|0;g=a[(z&n)>>0]|0;a:do if((f&255)>(g&255))f=0;else{B=e+4|0;C=e+16|0;v=e+8|0;w=e+12|0;x=e+24|0;y=e+28|0;i=f&255;j=c[(B&p)>>2]|0;h=c[(D&p)>>2]|0;b:while(1){t=c[(e+(i+-2<<2)&p)+24>>2]|0;s=c[(e+(i+-1<<2)&p)+24>>2]|0;if(j){while(1){r=j+12|0;if((h|0)<(c[(r&p)>>2]|0)){g=h;f=(c[(j&p)+20>>2]|0)+(h*48|0)|0;while(1){do if((c[(f&p)+8>>2]|0)==(t|0)?(c[(f&p)+12>>2]|0)==(s|0):0){if((d[(u&n)>>0]|0)>=3?(c[((c[(f&p)>>2]|0)&p)+4>>2]&1|0)!=0:0)break;q=f+18|0;h=b[(q&o)>>1]|0;if((h&1024)!=0?(A=a[(z&n)>>0]|0,(A&255)<22):0){i=c[((c[(f&p)>>2]|0)&p)+16>>2]|0;c:do if(!i)i=0;else while(1){k=c[(i&p)+4>>2]|0;if(!(k&4096))break c;if(!(k&262144))i=i+12|0;else i=c[((c[(i&p)+20>>2]|0)&p)+4>>2]|0;i=c[(i&p)>>2]|0;if(!i){i=0;break}}while(0);d:do if(!(A<<24>>24)){m=0;k=0}else{l=c[(i&p)+28>>2]|0;m=i+32|0;k=0;while(1){if((c[(e+(k<<2)&p)+24>>2]|0)==(l|0)?(c[(e+((k|1)<<2)&p)+24>>2]|0)==(b[(m&o)>>1]|0):0){m=A;break d}k=k+2|0;if((k|0)>=(A&255|0)){m=A;break}}}while(0);if((k|0)==(m&255|0)){c[(e+(k<<2)&p)+24>>2]=c[(i&p)+28>>2];c[(e+((k|1)<<2)&p)+24>>2]=b[(i&o)+32>>1];a[(z&n)>>0]=(d[(z&n)>>0]|0)+2}}i=h&65535;if(i&c[(C&p)>>2]){if((c[(v&p)>>2]|0)!=0&(i&128|0)==0){l=c[(c[(j&p)>>2]&p)>>2]|0;k=c[(f&p)>>2]|0;i=a[(w&n)>>0]|0;h=(nv(k)|0)<<24>>24;if((h|0)==66){if(i<<24>>24!=66)break}else if((h|0)!=65?i<<24>>24<=66:0)break;h=Ou(l,c[(k&p)+12>>2]|0,c[(k&p)+16>>2]|0)|0;if(!h)h=c[((c[(l&p)>>2]|0)&p)+8>>2]|0;if(dd(c[(h&p)>>2]|0,c[(v&p)>>2]|0)|0)break;h=b[(q&o)>>1]|0}if(!(h&2))break b;h=c[((c[(f&p)>>2]|0)&p)+16>>2]|0;if((a[(h&n)>>0]|0)!=-102)break b;if((c[(h&p)+28>>2]|0)!=(c[(x&p)>>2]|0))break b;if((b[(h&o)+32>>1]|0)!=(c[(y&p)>>2]|0))break b}}while(0);g=g+1|0;if((g|0)>=(c[(r&p)>>2]|0))break;else f=f+48|0}g=c[(B&p)>>2]|0}else g=j;j=c[(g&p)+4>>2]|0;c[(B&p)>>2]=j;if(!j)break;else h=0}f=a[(u&n)>>0]|0;g=a[(z&n)>>0]|0}j=c[(e&p)>>2]|0;c[(B&p)>>2]=j;h=(f&255)+2|0;f=h&255;a[(u&n)>>0]=f;if((f&255)>(g&255)){f=0;break a}else{i=h&255;h=0}}c[(D&p)>>2]=g+1}while(0);return f|0}function Fv(d,f){d=d|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0,m=0,q=0;g=c[(d&p)>>2]|0;l=c[(c[(g&p)>>2]&p)>>2]|0;d=c[(d&p)+16>>2]|0;a:do if(!d){g=g+16|0;i=c[(g&p)>>2]|0;k=f+36|0;if((c[(k&p)>>2]&512|0)!=0&(i|0)!=0){d=f+20|0;j=f+22|0;h=a[(f&n)+16>>0]|0;do{do if((a[(i&n)+16>>0]|0)==h<<24>>24?(c[(i&p)+36>>2]&512|0)!=0:0){if(Tv(i,f)|0){b[(d&o)>>1]=b[(i&o)+20>>1]|0;b[(j&o)>>1]=(e[(i&o)+22>>1]|0)+65535;break}if(Tv(f,i)|0){b[(d&o)>>1]=b[(i&o)+20>>1]|0;b[(j&o)>>1]=(e[(i&o)+22>>1]|0)+1}}while(0);i=c[(i&p)+52>>2]|0}while((i|0)!=0)}d=Uv(g,f)|0;if(d){g=c[(d&p)>>2]|0;b:do if(g){d=g+52|0;if(c[(d&p)>>2]|0)do{d=Uv(d,f)|0;if(!d)break b;h=c[(d&p)>>2]|0;if(!h)break b;c[(d&p)>>2]=c[(h&p)+52>>2];Ju(l,h);mg(l,h)}while((c[(d&p)>>2]|0)!=0)}else{g=mh(l,72,0)|0;c[(d&p)>>2]=g;if(!g){d=7;break a}c[(g&p)+48>>2]=g+56;b[(g&o)+40>>1]=0;b[(g&o)+44>>1]=3;c[(g&p)+36>>2]=0;c[(g&p)+52>>2]=0}while(0);Lv(l,g);do if(!(Nu(l,g,e[(f&o)+40>>1]|0)|0)){h=g+0|0;d=f+0|0;i=h+44|0;do{c[(h&p)>>2]=c[(d&p)>>2];h=h+4|0;d=d+4|0}while((h|0)<(i|0));kw(c[(g&p)+48>>2]|0,c[(f&p)+48>>2]|0,e[(g&o)+40>>1]<<2|0)|0;d=c[(k&p)>>2]|0;if(d&1024){a[(f&n)+28>>0]=0;break}if(d&16384)c[(f&p)+28>>2]=0}else{d=g+24|0;c[(d&p)>>2]=0;c[(d&p)+4>>2]=0;c[(d&p)+8>>2]=0}while(0);if(((c[(g&p)+36>>2]&1024|0)==0?(m=g+28|0,q=c[(m&p)>>2]|0,(q|0)!=0):0)?(c[(q&p)+40>>2]|0)==0:0){c[(m&p)>>2]=0;d=0}else d=0}else d=0}else{g=f;Kv(d,c[(g&p)>>2]|0,c[(g&p)+4>>2]|0,b[(f&o)+20>>1]|0,b[(f&o)+22>>1]|0);d=0}while(0);return d|0}function Gv(a,b){a=a|0;b=b|0;var c=0,e=0;c=a<<16>>16;e=b<<16>>16;do if(a<<16>>16>16)if((e|0)<=(c+49|0))if((e|0)>(c+31|0)){a=e+1&65535;break}else{a=(d[(e-c&n)+34032>>0]|0)+e&65535;break}else a=b;else if((c|0)<=(e+49|0))if((c|0)>(e+31|0)){a=c+1&65535;break}else{a=(d[(c-e&n)+34032>>0]|0)+c&65535;break}while(0);return a|0}function Hv(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0;do if(!(Cu(b,d,e)|0))f=1;else{f=a[(d&n)>>0]|0;if(f<<24>>24==71){if(Hv(b,c[(d&p)+12>>2]|0,e)|0){f=1;break}if(Hv(b,c[(d&p)+16>>2]|0,e)|0){f=1;break}if(f<<24>>24==77)g=6}else if(f<<24>>24==77)g=6;if(((g|0)==6?(Cu(c[(b&p)+12>>2]|0,c[(d&p)+12>>2]|0,e)|0)==0:0)?(f=a[(b&n)>>0]|0,!(f<<24>>24==73|f<<24>>24==76)):0){f=1;break}f=0}while(0);return f|0}function Iv(a,d,f){a=a|0;d=d|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0;x=i;i=i+16|0;if((i|0)>=(j|0))fa();w=x;u=d;v=d+8|0;g=v;t=~(c[(g&p)>>2]|c[(u&p)>>2]);u=~(c[(g&p)+4>>2]|c[(u&p)+4>>2]);g=c[(a&p)+12>>2]|0;r=a+20|0;a:do if((g|0)>0){s=d+40|0;a=d+22|0;q=d+48|0;d=0;n=c[(r&p)>>2]|0;while(1){if(b[(n&o)+20>>1]&2)break a;m=n+40|0;l=c[(m&p)>>2]|0;m=c[(m&p)+4>>2]|0;k=v;b:do if(((c[(k&p)>>2]&l|0)!=0?1:(c[(k&p)+4>>2]&m|0)!=0)&((l&t|0)==0&(m&u|0)==0)){h=b[(s&o)>>1]|0;c:do if(h<<16>>16){m=c[(q&p)>>2]|0;l=h&65535;while(1){h=l;l=l+-1|0;k=c[(m+(l<<2)&p)>>2]|0;if(k){if((k|0)==(n|0))break;k=c[(k&p)+4>>2]|0;if((k|0)>-1?((c[(r&p)>>2]|0)+(k*48|0)|0)==(n|0):0)break}if((l|0)<=0)break c}if((h|0)>=1)break b}while(0);h=b[(n&o)+16>>1]|0;if(h<<16>>16<1){b[(a&o)>>1]=(e[(a&o)>>1]|0)+(h&65535);break}b[(a&o)>>1]=(b[(a&o)>>1]|0)+-1<<16>>16;if(b[(n&o)+18>>1]&2){l=(Ms(c[((c[(n&p)>>2]|0)&p)+16>>2]|0,w)|0)!=0;m=c[(w&p)>>2]|0;m=l&(m|0)>-2&(m|0)<2?10:20;c[(w&p)>>2]=m;d=(d<<16>>16|0)<(m|0)?m&65535:d}}while(0);g=g+-1|0;if((g|0)<=0)break;else n=n+48|0}}else{a=d+22|0;d=0}while(0);d=(f<<16>>16)-(d<<16>>16)|0;if((b[(a&o)>>1]|0)>(d|0))b[(a&o)>>1]=d;i=x;return}function Jv(d,f,g,h){d=d|0;f=f|0;g=g|0;h=h|0;var k=0,l=0,m=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,ga=0,ha=0;ha=i;i=i+112|0;if((i|0)>=(j|0))fa();R=ha;V=c[(c[(c[(d&p)>>2]&p)>>2]&p)>>2]|0;ea=c[(d&p)+12>>2]|0;if(!(a[(V&n)+65>>0]|0)){ga=ea+36|0;if(!(c[(ga&p)>>2]&32))if((c[(g&p)+40>>2]|0)<1)k=63;else k=(a[(f&n)+36>>0]&8)<<4^191;else k=24;W=g+51|0;ca=ea+24|0;l=b[((c[(g&p)+4>>2]|0)+(e[(ca&o)>>1]<<1)&o)>>1]|0;N=l<<16>>16;O=d+4|0;k=Dv(R,c[(O&p)>>2]|0,c[(f&p)+40>>2]|0,N,(a[(W&n)>>0]&4)==0?k:k&131,g)|0;X=b[(ca&o)>>1]|0;Y=ea+42|0;T=b[(Y&o)>>1]|0;Z=ea+40|0;U=b[(Z&o)>>1]|0;_=c[(ga&p)>>2]|0;Q=ea;P=c[(Q&p)>>2]|0;Q=c[(Q&p)+4>>2]|0;$=ea+22|0;aa=b[($&o)>>1]|0;b[(ea&o)+18>>1]=0;ba=g+8|0;D=b[(c[(ba&p)>>2]&o)>>1]|0;if(D<<16>>16<11)C=0;else{C=D<<16>>16;C=((fs(C,((C|0)<0)<<31>>31)|0)&65535)+65503&65535}a:do if(!k)k=0;else{E=l<<16>>16<0;F=f+16|0;G=ea+8|0;H=(U&65535)+1|0;I=ea+48|0;J=h<<16>>16==0;K=g+46|0;w=l<<16>>16>-1;x=g+50|0;y=g+44|0;z=ea+20|0;A=h<<16>>16;B=g+48|0;r=0;u=k;s=0;while(1){l=b[(u&o)+18>>1]|0;t=l&65535;if(l<<16>>16==128)if(!E?(a[((c[((c[(F&p)>>2]|0)&p)+4>>2]|0)+(N*24|0)&n)+20>>0]|0)==0:0)S=12;else{m=r;l=s;k=0}else S=12;if((S|0)==12){S=0;m=u+32|0;v=m;q=G;if(((c[(q&p)>>2]&c[(v&p)>>2]|0)==0?(c[(q&p)+4>>2]&c[(v&p)+4>>2]|0)==0:0)?(L=u+20|0,!((b[(L&o)>>1]&256)!=0&l<<16>>16==16)):0){c[(ga&p)>>2]=_;b[(ca&o)>>1]=X;b[(Z&o)>>1]=U;if(Nu(V,ea,H)|0){k=0;break a}k=b[(Z&o)>>1]|0;q=k+1<<16>>16;b[(Z&o)>>1]=q;c[((c[(I&p)>>2]|0)+((k&65535)<<2)&p)>>2]=u;k=m;l=G;m=(c[(k&p)+4>>2]|Q)&~c[(l&p)+4>>2];v=ea;c[(v&p)>>2]=(c[(k&p)>>2]|P)&~c[(l&p)>>2];c[(v&p)+4>>2]=m;b:do if(!(t&1)){if(t&2){k=c[(ga&p)>>2]|0;l=k|1;c[(ga&p)>>2]=l;do if(!E){if(!J){v=0;break b}if((e[(ca&o)>>1]|0)!=((e[(K&o)>>1]|0)+-1|0)){v=0;break b}if(!w)break;if(a[(x&n)>>0]|0)break;l=k|65537;c[(ga&p)>>2]=l;v=0;break b}while(0);l=k|4097;c[(ga&p)>>2]=l;v=0;break}if(t&128){l=c[(ga&p)>>2]|8;c[(ga&p)>>2]=l;v=0;break}k=c[(ga&p)>>2]|0;if(!(t&36)){l=k|18;c[(ga&p)>>2]=l;if(!(k&32)){v=0;r=0;s=u;break}v=0;r=c[((c[(I&p)>>2]|0)+((q&65535)+-2<<2)&p)>>2]|0;s=u;break}l=k|34;c[(ga&p)>>2]=l;if(!(b[(L&o)>>1]&256)){v=0;r=u;s=0}else{k=u+48|0;if(Nu(V,ea,(q&65535)+1|0)|0){k=0;break a}l=b[(Z&o)>>1]|0;b[(Z&o)>>1]=l+1<<16>>16;c[((c[(I&p)>>2]|0)+((l&65535)<<2)&p)>>2]=k;l=c[(ga&p)>>2]|16;c[(ga&p)>>2]=l;v=0;r=u;s=k}}else{k=c[(u&p)>>2]|0;l=c[(ga&p)>>2]|4;c[(ga&p)>>2]=l;if(!(c[(k&p)+4>>2]&2048)){k=c[(k&p)+20>>2]|0;if((k|0)!=0?(M=c[(k&p)>>2]|0,(M|0)!=0):0)v=(fs(M,((M|0)<0)<<31>>31)|0)<<16>>16;else v=0}else v=46}while(0);do if(!(l&2)){k=(b[(ca&o)>>1]|0)+1<<16>>16;b[(ca&o)>>1]=k;k=k&65535;m=b[(u&o)+16>>1]|0;if(m<<16>>16<1&w){q=(m&65535)-v+(e[($&o)>>1]|0)&65535;b[($&o)>>1]=q;break}m=c[(ba&p)>>2]|0;m=(e[($&o)>>1]|0)+((e[(m+(k<<1)&o)>>1]|0)-(e[(m+(k+-1<<1)&o)>>1]|0))|0;k=m&65535;b[($&o)>>1]=k;if(!(t&128))q=k;else{q=m+10&65535;b[($&o)>>1]=q}}else{k=b[($&o)>>1]|0;q=k<<16>>16;do if(r){m=b[(r&o)+16>>1]|0;if(m<<16>>16<1){k=(m&65535)+(k&65535)&65535;break}else{k=(k&65535)+65516&65535;break}}while(0);do if(s){m=b[(s&o)+16>>1]|0;if(m<<16>>16<1){k=(m&65535)+(k&65535)&65535;break}else{k=(k&65535)+65516&65535;break}}while(0);m=(r|0)!=0;do if(m?(b[(r&o)+16>>1]|0)>0&(s|0)!=0:0){if((b[(s&o)+16>>1]|0)<=0)break;k=(k&65535)+65516&65535}while(0);q=(((s|0)!=0)<<31>>31)+(m<<31>>31)+q|0;u=k<<16>>16<10?10:k<<16>>16;q=((u|0)<(q|0)?u:q)&65535;b[($&o)>>1]=q}while(0);k=q&65535;m=Gv(C,k+1+(((b[(y&o)>>1]|0)*15|0)/(b[((c[(F&p)>>2]|0)&o)+42>>1]|0)|0)&65535)|0;if(!(l&320))m=Gv(m,k+16&65535)|0;l=v+A|0;b[(z&o)>>1]=(m&65535)+l;b[($&o)>>1]=k+l;Iv(c[(O&p)>>2]|0,ea,D);k=Fv(d,ea)|0;v=c[(ga&p)>>2]|0;b[($&o)>>1]=(v&2|0)==0?q:aa;if((v&16|0)==0?(e[(ca&o)>>1]|0)<(e[(B&o)>>1]|0):0)Jv(d,f,g,l&65535)|0;b[($&o)>>1]=aa;m=r;l=s}else{m=r;l=s;k=0}}u=Ev(R)|0;if(!((k|0)==0&(u|0)!=0))break;else{r=m;s=l}}}while(0);l=ea;c[(l&p)>>2]=P;c[(l&p)+4>>2]=Q;b[(ca&o)>>1]=X;b[(Y&o)>>1]=T;c[(ga&p)>>2]=_;b[($&o)>>1]=aa;b[(Z&o)>>1]=U;l=X&65535;if(((X<<16>>16==T<<16>>16?(da=l+1|0,da>>>0<(e[(g&o)+46>>1]|0)>>>0):0)?(a[(W&n)>>0]&64)==0:0)?(b[((c[(ba&p)>>2]|0)+(da<<1)&o)>>1]|0)>41:0){k=Nu(V,ea,(U&65535)+1|0)|0;if(!k){b[(ca&o)>>1]=(b[(ca&o)>>1]|0)+1<<16>>16;b[(Y&o)>>1]=(b[(Y&o)>>1]|0)+1<<16>>16;k=b[(Z&o)>>1]|0;b[(Z&o)>>1]=k+1<<16>>16;c[((c[(ea&p)+48>>2]|0)+((k&65535)<<2)&p)>>2]=0;c[(ga&p)>>2]=c[(ga&p)>>2]|32768;k=c[(ba&p)>>2]|0;k=(e[(k+(l<<1)&o)>>1]|0)-(e[(k+(da<<1)&o)>>1]|0)|0;b[($&o)>>1]=(e[($&o)>>1]|0)-k;Jv(d,f,g,(((k<<16)+327680|0)>>>16)+(h&65535)&65535)|0;b[($&o)>>1]=aa;b[(ca&o)>>1]=X;b[(Y&o)>>1]=X;c[(ga&p)>>2]=_;k=0}}}else k=7;i=ha;return k|0}function Kv(a,d,e,f,g){a=a|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,i=0,j=0,k=0,l=0,m=0,n=0,q=0,r=0;l=b[(a&o)>>1]|0;h=a+8|0;a:do if(l<<16>>16){j=l;k=h;while(1){i=b[(k&o)+8>>1]|0;if(i<<16>>16>=f<<16>>16?(r=k,(c[(r&p)>>2]&d|0)==(d|0)?(c[(r&p)+4>>2]&e|0)==(e|0):0):0){n=k;q=14;break a}if(i<<16>>16<=f<<16>>16?(i=k,r=c[(i&p)>>2]|0,i=c[(i&p)+4>>2]|0,(r&d|0)==(r|0)&(i&e|0)==(i|0)):0)break a;j=j+-1<<16>>16;if(!(j<<16>>16))break;else k=k+16|0}if((l&65535)>=3){i=b[(a&o)+16>>1]|0;k=1;do{if(i<<16>>16>(b[(a+(k<<4)&o)+16>>1]|0))h=a+(k<<4)+8|0;k=k+1|0;i=b[(h&o)+8>>1]|0}while((k&65535)<(l&65535));if(i<<16>>16>f<<16>>16){n=h;q=14}}else q=9}else q=9;while(0);if((q|0)==9){n=l&65535;b[(a&o)>>1]=l+1<<16>>16;b[(a+(n<<4)&o)+18>>1]=g;n=a+(n<<4)+8|0;q=14}if((q|0)==14?(m=n,c[(m&p)>>2]=d,c[(m&p)+4>>2]=e,b[(n&o)+8>>1]=f,m=n+10|0,(b[(m&o)>>1]|0)>g<<16>>16):0)b[(m&o)>>1]=g;return}function Lv(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0;e=c[(d&p)+36>>2]|0;do if(e&17408){if((e&1024|0)!=0?(h=d+28|0,(a[(h&n)>>0]|0)!=0):0){e=d+32|0;Wc(c[(e&p)>>2]|0);a[(h&n)>>0]=0;c[(e&p)>>2]=0;break}if((e&16384|0)!=0?(f=d+28|0,g=c[(f&p)>>2]|0,(g|0)!=0):0){mg(b,c[(g&p)+16>>2]|0);mg(b,c[(f&p)>>2]|0);c[(f&p)>>2]=0}}while(0);return}function Mv(f,g,h,k,l,m,q){f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;m=m|0;q=q|0;var 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,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,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;ta=i;i=i+32|0;if((i|0)>=(j|0))fa();oa=ta;s=c[(c[(f&p)>>2]&p)>>2]|0;na=l&65535;if(l<<16>>16!=0?(b[(s&o)+60>>1]&128)!=0:0)r=0;else pa=3;a:do if((pa|0)==3){sa=c[(g&p)>>2]|0;r=sa&65535;if(r>>>0<=63){qa=iw(1,0,r|0)|0;qa=jw(qa|0,G|0,-1,-1)|0;ra=G;b:do if((qa|0)==0&(ra|0)==0){g=0;h=0;s=1}else{ha=h+24|0;ia=f+4|0;ja=(r|0)==0;ea=g+4|0;ga=(k&768)==0;da=s+8|0;W=(k&256)==0;X=f+68|0;Y=oa+20|0;Z=oa+4|0;aa=oa+24|0;ba=f+328|0;_=0;$=0;g=0;h=0;k=0;t=0;ca=0;s=1;l=0;while(1){if((ca|0)>0){U=l+8|0;V=c[(U&p)>>2]|k;t=c[(U&p)+4>>2]|t}else V=k;if((ca|0)<(na|0))l=c[((c[(ha&p)>>2]|0)+(ca<<2)&p)>>2]|0;else l=m;B=l+36|0;k=c[(B&p)>>2]|0;if(k&1024)break;U=c[((c[(ia&p)>>2]|0)+((d[(l&n)+16>>0]|0)*72|0)&p)+48>>2]|0;if(!ja){k=~V;v=~t;y=0;do{A=iw(1,0,y|0)|0;z=G;c:do if((A&g|0)==0&(z&h|0)==0){u=c[((c[(ea&p)>>2]|0)+(y*20|0)&p)>>2]|0;x=c[(u&p)+4>>2]|0;if(x&4096)do{if(!(x&262144))u=u+12|0;else u=c[((c[(u&p)+20>>2]|0)&p)+4>>2]|0;u=c[(u&p)>>2]|0;x=c[(u&p)+4>>2]|0}while((x&4096|0)!=0);if(((a[(u&n)>>0]|0)==-102?(c[(u&p)+28>>2]|0)==(U|0):0)?(ka=u+32|0,la=Fu(ba,U,b[(ka&o)>>1]|0,k,v,130,0)|0,(la|0)!=0):0){do if(b[(la&o)+18>>1]&2){if((b[(ka&o)>>1]|0)<=-1)break;u=cu(c[(f&p)>>2]|0,c[((c[(ea&p)>>2]|0)+(y*20|0)&p)>>2]|0)|0;if(!u)u=c[(da&p)>>2]|0;x=c[(u&p)>>2]|0;w=cu(c[(f&p)>>2]|0,c[(la&p)>>2]|0)|0;if(!w)w=c[(da&p)>>2]|0;if(dd(x,c[(w&p)>>2]|0)|0)break c}while(0);g=A|g;h=z|h}}while(0);y=y+1|0}while((y|0)<(r|0));k=c[(B&p)>>2]|0}do if(!(k&4096)){if(!(k&256)){u=c[(l&p)+28>>2]|0;if(!u){r=0;break a}if(a[(u&n)+51>>0]&4){r=0;break a}k=b[(u&o)+48>>1]|0;s=(a[(u&n)+50>>0]|0)!=0&1;if(!(k<<16>>16)){pa=71;break}else{S=k&65535;T=b[(u&o)+46>>1]|0}}else{S=1;T=0;u=0}J=l+24|0;K=l+42|0;L=l+48|0;M=(u|0)==0;N=u+32|0;O=iw(1,0,ca|0)|0;P=G;Q=u+4|0;R=u+28|0;I=u+12|0;k=0;u=0;A=0;H=0;d:while(1){z=(u|0)<(e[(J&o)>>1]|0);if((z?(b[(K&o)>>1]|0)==0:0)?(ma=e[((c[((c[(L&p)>>2]|0)+(u<<2)&p)>>2]|0)&o)+18>>1]|0,(ma&130|0)!=0):0){s=(ma&128|0)==0?s:0;z=H}else{if(!M){x=b[((c[(Q&p)>>2]|0)+(u<<1)&o)>>1]|0;w=a[((c[(R&p)>>2]|0)+u&n)>>0]|0;v=c[(I&p)>>2]|0;x=x<<16>>16==(b[(v&o)+36>>1]|0)?-1:x<<16>>16;y=(x|0)>-1;if(s<<24>>24!=0&y)if(z){y=1;F=x}else{y=1;F=x;s=(a[((c[(v&p)+4>>2]|0)+(x*24|0)&n)+20>>0]|0)==0?0:s}else F=x}else{y=0;F=-1;w=0}if(ja){pa=68;break}else{z=1;E=0}e:while(1){C=iw(1,0,E|0)|0;D=G;do if((C&g|0)==0&(D&h|0)==0){v=c[((c[(ea&p)>>2]|0)+(E*20|0)&p)>>2]|0;x=c[(v&p)+4>>2]|0;if(!(x&4096))B=v;else{B=v;do{if(!(x&262144))x=B+12|0;else x=c[((c[(B&p)+20>>2]|0)&p)+4>>2]|0;B=c[(x&p)>>2]|0;x=c[(B&p)+4>>2]|0}while((x&4096|0)!=0)}z=ga?0:z;if((a[(B&n)>>0]|0)!=-102)break;if((c[(B&p)+28>>2]|0)!=(U|0))break;if((b[(B&o)+32>>1]|0)!=(F|0))break;if(!y){B=C;y=D;z=E;break e}x=cu(c[(f&p)>>2]|0,v)|0;if(!x)x=c[(da&p)>>2]|0;if(!(dd(c[(x&p)>>2]|0,c[((c[(N&p)>>2]|0)+(u<<2)&p)>>2]|0)|0)){B=C;y=D;z=E;break e}}while(0);E=E+1|0;if(!(z<<24>>24!=0&(E|0)<(r|0))){pa=68;break d}}do if(W){if(H<<24>>24)if((w^A)<<24>>24==(a[((c[(ea&p)>>2]|0)+(z*20|0)&n)+12>>0]|0)){z=H;break}else{pa=68;break d}v=a[((c[(ea&p)>>2]|0)+(z*20|0)&n)+12>>0]|0;A=v^w;if(w<<24>>24==v<<24>>24){z=1;break}v=q;w=c[(v&p)+4>>2]|P;z=q;c[(z&p)>>2]=c[(v&p)>>2]|O;c[(z&p)+4>>2]=w;z=1}else z=H;while(0);g=B|g;h=y|h;k=(F|0)<0?1:k}u=u+1|0;if((u|0)>=(S|0))break;else H=z}if((pa|0)==68){pa=0;s=(u|0)==0|(u|0)<(T&65535|0)?0:s}if(!(k<<24>>24))pa=71;else s=1}else pa=71;while(0);if((pa|0)==71){pa=0;if(!(s<<24>>24)){s=0;break b}}U=l+8|0;_=c[(U&p)>>2]|_;$=c[(U&p)+4>>2]|$;if(!ja){z=~_;A=~$;y=0;do{u=iw(1,0,y|0)|0;x=G;do if((u&g|0)==0&(x&h|0)==0){k=c[((c[(ea&p)>>2]|0)+(y*20|0)&p)>>2]|0;v=Av(X,k)|0;w=G;if((v|0)==0&(w|0)==0?(c[(oa&p)>>2]=0,c[(oa&p)+4>>2]=0,c[(oa&p)+8>>2]=0,c[(oa&p)+12>>2]=0,c[(oa&p)+16>>2]=0,c[(oa&p)+20>>2]=0,a[(Y&n)>>0]=1,c[(oa&p)>>2]=78,c[(Z&p)>>2]=79,c[(aa&p)>>2]=0,rs(oa,k)|0,(a[(Y&n)>>0]|0)==0):0)break;U=(v&z|0)==0&(w&A|0)==0;g=(U?u:0)|g;h=(U?x:0)|h}while(0);y=y+1|0}while((y|0)<(r|0))}if(h>>>0>ra>>>0|(h|0)==(ra|0)&g>>>0>=qa>>>0|s<<24>>24==0|(ca|0)>=(na|0))break b;else{k=V;ca=ca+1|0}}ga=(a[(l&n)+29>>0]|0)==0;g=ga?g:qa;h=ga?h:ra}while(0);if((g|0)==(qa|0)&(h|0)==(ra|0)){r=sa&255;break}if(!(s<<24>>24)){do{r=r+-1|0;if((r|0)<=0){r=0;break a}ea=iw(1,0,r|0)|0;ea=jw(ea|0,G|0,-1,-1)|0;ga=G}while(!((ea&g|0)==(ea|0)&(ga&h|0)==(ga|0)));r=r&255}else r=-1}else r=0}while(0);i=ta;return r|0}function Nv(b,c,d,e){b=b|0;c=c|0;d=d|0;e=e|0;if(c)Sk(b,33920,5);if(!d)c=0;else{c=d;while(1)if(!(a[(c&n)>>0]|0))break;else c=c+1|0;c=c-d&1073741823}Sk(b,d,c);Sk(b,e,1);Sk(b,13552,1);return}function Ov(a){a=a|0;var d=0,e=0,f=0,g=0,h=0,i=0;i=c[(c[(c[(a&p)>>2]&p)>>2]&p)>>2]|0;d=c[(a&p)+12>>2]|0;g=a+20|0;if((d|0)>0){h=c[(g&p)>>2]|0;while(1){d=d+-1|0;f=h+20|0;e=b[(f&o)>>1]|0;if(e&1){Gk(i,c[(h&p)>>2]|0);e=b[(f&o)>>1]|0}e=e&65535;if(!(e&16)){if(e&32){e=c[(h&p)+12>>2]|0;Ov(e);mg(i,e)}}else{e=c[(h&p)+12>>2]|0;Ov(e);mg(i,e)}if((d|0)<=0)break;else h=h+48|0}}d=c[(g&p)>>2]|0;if((d|0)!=(a+24|0))mg(i,d);return}function Pv(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,o=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0;u=i;i=i+32|0;if((i|0)>=(j|0))fa();t=u;h=c[(b&p)+8>>2]|0;k=c[(b&p)>>2]|0;if(e){l=(f|0)==10;m=b+437|0;o=t+4|0;q=t+1|0;r=t+8|0;s=t+12|0;g=f&255;do{if(l)f=a[(e&n)+1>>0]|0;else f=g;a[(m&n)>>0]=f;f=d[(e&n)>>0]|0;if((f|0)==108){w=Vv(b,e)|0;v=gr(k,c[(e&p)+8>>2]|0,0)|0;f=Nr(k,c[(e&p)+28>>2]|0)|0;tr(b,w,v,f,d[(m&n)>>0]|0)}else if((f|0)==109){f=Vv(b,e)|0;rr(b,f,Mr(k,c[(e&p)+20>>2]|0,0,0)|0)}else if((f|0)==110){w=Vv(b,e)|0;v=Pr(k,c[(e&p)+24>>2]|0,0)|0;f=Mr(k,c[(e&p)+20>>2]|0,0,0)|0;sr(b,w,v,f,d[(m&n)>>0]|0)}else{f=gr(k,c[(e&p)+8>>2]|0,0)|0;a[(t&n)>>0]=4;c[(o&p)>>2]=0;a[(q&n)>>0]=0;c[(r&p)>>2]=0;c[(s&p)>>2]=0;ir(b,f,t)|0;Mk(k,f,1)}if((a[(e&n)>>0]|0)!=119)wh(h,98,0,0,0)|0;e=c[(e&p)+32>>2]|0}while((e|0)!=0)}i=u;return}function Qv(d,e,f,g){d=d|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0;m=i;i=i+16|0;if((i|0)>=(j|0))fa();h=m;l=c[(d&p)>>2]|0;c[(h&p)>>2]=0;c[(h&p)+4>>2]=0;h=nr(l,159,h,0)|0;do if(!h)h=0;else{k=g<<16>>16;if(g<<16>>16>-1?(b[(e&o)+36>>1]|0)!=g<<16>>16:0){g=c[(e&p)+4>>2]|0;c[(h&p)+28>>2]=f+1+k;a[(h&n)+1>>0]=a[(g+(k*24|0)&n)+21>>0]|0;k=c[(g+(k*24|0)&p)+16>>2]|0;if(!k)k=c[(c[(l&p)+8>>2]&p)>>2]|0;h=xv(d,h,k)|0;break}c[(h&p)+28>>2]=f;a[(h&n)+1>>0]=68}while(0);i=m;return h|0}function Rv(d,e,f,g){d=d|0;e=e|0;f=f|0;g=g|0;var h=0,i=0,j=0;d=mh(d,48,0)|0;if(d){h=d+0|0;i=h+44|0;do{a[(h&n)>>0]=0;h=h+1|0}while((h|0)<(i|0));a[(d&n)>>0]=-102;b[(d&o)+34>>1]=-1;c[(d&p)+24>>2]=1;h=c[(e+(f*72|0)&p)+24>>2]|0;c[(d&p)+44>>2]=h;c[(d&p)+28>>2]=c[(e+(f*72|0)&p)+48>>2];if((b[(h&o)+36>>1]|0)==(g|0))b[(d&o)+32>>1]=-1;else{b[(d&o)+32>>1]=g;j=(g|0)>63;g=iw(1,0,g|0)|0;h=e+(f*72|0)+64|0;f=h;i=c[(f&p)+4>>2]|(j?-2147483648:G);c[(h&p)>>2]=c[(f&p)>>2]|(j?0:g);c[(h&p)+4>>2]=i}h=d+4|0;c[(h&p)>>2]=c[(h&p)>>2]|4}return d|0}function Sv(b,e){b=b|0;e=e|0;if((a[(e&n)>>0]|0)==-101){e=e+38|0;a[(e&n)>>0]=(d[(e&n)>>0]|0)+(c[(b&p)+24>>2]|0)}return 0}function Tv(a,d){a=a|0;d=d|0;var f=0,g=0,h=0,i=0,j=0,k=0;f=b[(a&o)+40>>1]|0;i=f&65535;h=b[(a&o)+42>>1]|0;k=e[(d&o)+40>>1]|0;g=b[(d&o)+42>>1]|0;a:do if(!((g&65535)>(h&65535)?1:(i-(h&65535)|0)>=(k-(g&65535)|0))){g=b[(a&o)+20>>1]|0;h=b[(d&o)+20>>1]|0;if(g<<16>>16>=h<<16>>16){if(g<<16>>16>h<<16>>16){f=0;break}if((b[(a&o)+22>>1]|0)>(b[(d&o)+22>>1]|0)){f=0;break}}if(!(f<<16>>16))f=1;else{j=c[(a&p)+48>>2]|0;d=d+48|0;a=i;while(1){a=a+-1|0;h=c[(j+(a<<2)&p)>>2]|0;if(h){f=k;while(1){g=f+-1|0;if((f|0)<=0){f=0;break a}if((c[((c[(d&p)>>2]|0)+(g<<2)&p)>>2]|0)==(h|0))break;else f=g}if((f|0)<1){f=0;break a}}if((a|0)<=0){f=1;break}}}}else f=0;while(0);return f|0}function Uv(d,e){d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0,v=0;f=c[(d&p)>>2]|0;a:do if(f){k=a[(e&n)+16>>0]|0;l=e+17|0;m=e+18|0;q=e+20|0;r=e+22|0;s=e+42|0;t=e+36|0;do{if((a[(f&n)+16>>0]|0)==k<<24>>24?(a[(f&n)+17>>0]|0)==(a[(l&n)>>0]|0):0){if((((c[(f&p)+36>>2]&16384|0)!=0?(b[(s&o)>>1]|0)==0:0)?(c[(t&p)>>2]&513|0)==513:0)?(i=f,j=e,h=c[(j&p)>>2]|0,j=c[(j&p)+4>>2]|0,(h&c[(i&p)>>2]|0)==(h|0)?(j&c[(i&p)+4>>2]|0)==(j|0):0):0)break a;u=f;v=c[(u&p)>>2]|0;u=c[(u&p)+4>>2]|0;h=e;g=c[(h&p)>>2]|0;h=c[(h&p)+4>>2]|0;i=g&v;j=h&u;if((((i|0)==(v|0)&(j|0)==(u|0)?(b[(f&o)+18>>1]|0)<=(b[(m&o)>>1]|0):0)?(b[(f&o)+20>>1]|0)<=(b[(q&o)>>1]|0):0)?(b[(f&o)+22>>1]|0)<=(b[(r&o)>>1]|0):0){d=0;break a}if(((i|0)==(g|0)&(j|0)==(h|0)?(b[(f&o)+20>>1]|0)>=(b[(q&o)>>1]|0):0)?(b[(f&o)+22>>1]|0)>=(b[(r&o)>>1]|0):0)break a}d=f+52|0;f=c[(d&p)>>2]|0}while((f|0)!=0)}while(0);return d|0}function Vv(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;h=pr(c[(a&p)>>2]|0,0,b+12|0,0)|0;do if(h){g=c[(a&p)>>2]|0;f=c[((c[(b&p)+4>>2]|0)&p)+20>>2]|0;a:do if(f){e=c[(g&p)+20>>2]|0;if((e|0)>0){b=c[(g&p)+16>>2]|0;d=0;while(1){a=d+1|0;if((c[(b+(d<<4)&p)+12>>2]|0)==(f|0)){a=d;d=7;break a}if((a|0)<(e|0))d=a;else{d=7;break}}}else a=0}else{a=-1e6;d=7}while(0);if((d|0)==7)if(!((a|0)==0|(a|0)>1))break;a=kh(g,c[((c[(g&p)+16>>2]|0)+(a<<4)&p)>>2]|0)|0;c[(h+(((c[(h&p)>>2]|0)+-1|0)*72|0)&p)+12>>2]=a}while(0);return h|0}function Wv(a){a=a|0;var b=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,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;do if(a>>>0<245){if(a>>>0<11)q=16;else q=a+11&-8;a=q>>>3;l=c[12266]|0;i=l>>>a;if(i&3){e=(i&1^1)+a|0;f=e<<1;b=49104+(f<<2)|0;f=49104+(f+2<<2)|0;g=c[(f&p)>>2]|0;h=g+8|0;i=c[(h&p)>>2]|0;do if((b|0)!=(i|0)){if(i>>>0<(c[12270]|0)>>>0)Ob();d=i+12|0;if((c[(d&p)>>2]|0)==(g|0)){c[(d&p)>>2]=b;c[(f&p)>>2]=i;break}else Ob()}else c[12266]=l&~(1<>2]=x|3;x=g+(x|4)|0;c[(x&p)>>2]=c[(x&p)>>2]|1;x=h;return x|0}k=c[12268]|0;if(q>>>0>k>>>0){if(i){f=2<>>12&16;f=f>>>a;e=f>>>5&8;f=f>>>e;d=f>>>2&4;f=f>>>d;g=f>>>1&2;f=f>>>g;h=f>>>1&1;h=(e|a|d|g|h)+(f>>>h)|0;f=h<<1;g=49104+(f<<2)|0;f=49104+(f+2<<2)|0;d=c[(f&p)>>2]|0;a=d+8|0;e=c[(a&p)>>2]|0;do if((g|0)!=(e|0)){if(e>>>0<(c[12270]|0)>>>0)Ob();i=e+12|0;if((c[(i&p)>>2]|0)==(d|0)){c[(i&p)>>2]=g;c[(f&p)>>2]=e;m=c[12268]|0;break}else Ob()}else{c[12266]=l&~(1<>2]=q|3;j=d+q|0;c[(d+(q|4)&p)>>2]=b|1;c[(d+x&p)>>2]=b;if(m){e=c[12271]|0;g=m>>>3;i=g<<1;f=49104+(i<<2)|0;h=c[12266]|0;g=1<>2]|0;if(i>>>0<(c[12270]|0)>>>0)Ob();else{n=h;o=i}}else{c[12266]=h|g;n=49104+(i+2<<2)|0;o=f}c[(n&p)>>2]=e;c[(o&p)+12>>2]=e;c[(e&p)+8>>2]=o;c[(e&p)+12>>2]=f}c[12268]=b;c[12271]=j;x=a;return x|0}a=c[12267]|0;if(a){h=(a&0-a)+-1|0;w=h>>>12&16;h=h>>>w;v=h>>>5&8;h=h>>>v;x=h>>>2&4;h=h>>>x;i=h>>>1&2;h=h>>>i;g=h>>>1&1;g=c[((v|w|x|i|g)+(h>>>g)<<2&p)+49368>>2]|0;h=(c[(g&p)+4>>2]&-8)-q|0;i=g;while(1){d=c[(i&p)+16>>2]|0;if(!d){d=c[(i&p)+20>>2]|0;if(!d){l=h;k=g;break}}i=(c[(d&p)+4>>2]&-8)-q|0;x=i>>>0>>0;h=x?i:h;i=d;g=x?d:g}a=c[12270]|0;if(k>>>0>>0)Ob();b=k+q|0;if(k>>>0>=b>>>0)Ob();j=c[(k&p)+24>>2]|0;g=c[(k&p)+12>>2]|0;do if((g|0)==(k|0)){h=k+20|0;i=c[(h&p)>>2]|0;if(!i){h=k+16|0;i=c[(h&p)>>2]|0;if(!i){e=0;break}}while(1){g=i+20|0;f=c[(g&p)>>2]|0;if(f){i=f;h=g;continue}g=i+16|0;f=c[(g&p)>>2]|0;if(!f)break;else{i=f;h=g}}if(h>>>0>>0)Ob();else{c[(h&p)>>2]=0;e=i;break}}else{f=c[(k&p)+8>>2]|0;if(f>>>0>>0)Ob();i=f+12|0;if((c[(i&p)>>2]|0)!=(k|0))Ob();h=g+8|0;if((c[(h&p)>>2]|0)==(k|0)){c[(i&p)>>2]=g;c[(h&p)>>2]=f;e=g;break}else Ob()}while(0);do if(j){i=c[(k&p)+28>>2]|0;h=49368+(i<<2)|0;if((k|0)==(c[(h&p)>>2]|0)){c[(h&p)>>2]=e;if(!e){c[12267]=c[12267]&~(1<>>0<(c[12270]|0)>>>0)Ob();i=j+16|0;if((c[(i&p)>>2]|0)==(k|0))c[(i&p)>>2]=e;else c[(j&p)+20>>2]=e;if(!e)break}h=c[12270]|0;if(e>>>0>>0)Ob();c[(e&p)+24>>2]=j;i=c[(k&p)+16>>2]|0;do if(i)if(i>>>0>>0)Ob();else{c[(e&p)+16>>2]=i;c[(i&p)+24>>2]=e;break}while(0);i=c[(k&p)+20>>2]|0;if(i)if(i>>>0<(c[12270]|0)>>>0)Ob();else{c[(e&p)+20>>2]=i;c[(i&p)+24>>2]=e;break}}while(0);if(l>>>0<16){x=l+q|0;c[(k&p)+4>>2]=x|3;x=k+(x+4)|0;c[(x&p)>>2]=c[(x&p)>>2]|1}else{c[(k&p)+4>>2]=q|3;c[(k+(q|4)&p)>>2]=l|1;c[(k+l+q&p)>>2]=l;d=c[12268]|0;if(d){e=c[12271]|0;g=d>>>3;i=g<<1;f=49104+(i<<2)|0;h=c[12266]|0;g=1<>2]|0;if(h>>>0<(c[12270]|0)>>>0)Ob();else{r=i;s=h}}else{c[12266]=h|g;r=49104+(i+2<<2)|0;s=f}c[(r&p)>>2]=e;c[(s&p)+12>>2]=e;c[(e&p)+8>>2]=s;c[(e&p)+12>>2]=f}c[12268]=l;c[12271]=b}x=k+8|0;return x|0}else s=q}else s=q}else if(a>>>0<=4294967231){a=a+11|0;s=a&-8;k=c[12267]|0;if(k){h=0-s|0;a=a>>>8;if(a)if(s>>>0>16777215)d=31;else{q=(a+1048320|0)>>>16&8;r=a<>>16&4;r=r<>>16&2;d=14-(o|q|d)+(r<>>15)|0;d=s>>>(d+7|0)&1|d<<1}else d=0;f=c[(d<<2&p)+49368>>2]|0;a:do if(!f){a=0;i=0}else{if((d|0)==31)i=0;else i=25-(d>>>1)|0;l=h;a=0;b=s<>2]&-8;h=e-s|0;if(h>>>0>>0)if((e|0)==(s|0)){a=f;i=f;break a}else i=f;else h=l;r=c[(f&p)+20>>2]|0;f=c[(f+(b>>>31<<2)&p)+16>>2]|0;a=(r|0)==0|(r|0)==(f|0)?a:r;if(!f)break;else{l=h;b=b<<1}}}while(0);if((a|0)==0&(i|0)==0){a=2<>>12&16;r=r>>>n;m=r>>>5&8;r=r>>>m;o=r>>>2&4;r=r>>>o;q=r>>>1&2;r=r>>>q;a=r>>>1&1;a=c[((m|n|o|q|a)+(r>>>a)<<2&p)+49368>>2]|0}if(!a){o=h;q=i}else while(1){r=(c[(a&p)+4>>2]&-8)-s|0;f=r>>>0>>0;h=f?r:h;i=f?a:i;f=c[(a&p)+16>>2]|0;if(f){a=f;continue}a=c[(a&p)+20>>2]|0;if(!a){o=h;q=i;break}}if((q|0)!=0?o>>>0<((c[12268]|0)-s|0)>>>0:0){a=c[12270]|0;if(q>>>0>>0)Ob();m=q+s|0;if(q>>>0>=m>>>0)Ob();j=c[(q&p)+24>>2]|0;g=c[(q&p)+12>>2]|0;do if((g|0)==(q|0)){h=q+20|0;i=c[(h&p)>>2]|0;if(!i){h=q+16|0;i=c[(h&p)>>2]|0;if(!i){u=0;break}}while(1){g=i+20|0;f=c[(g&p)>>2]|0;if(f){i=f;h=g;continue}g=i+16|0;f=c[(g&p)>>2]|0;if(!f)break;else{i=f;h=g}}if(h>>>0>>0)Ob();else{c[(h&p)>>2]=0;u=i;break}}else{f=c[(q&p)+8>>2]|0;if(f>>>0>>0)Ob();i=f+12|0;if((c[(i&p)>>2]|0)!=(q|0))Ob();h=g+8|0;if((c[(h&p)>>2]|0)==(q|0)){c[(i&p)>>2]=g;c[(h&p)>>2]=f;u=g;break}else Ob()}while(0);do if(j){i=c[(q&p)+28>>2]|0;h=49368+(i<<2)|0;if((q|0)==(c[(h&p)>>2]|0)){c[(h&p)>>2]=u;if(!u){c[12267]=c[12267]&~(1<>>0<(c[12270]|0)>>>0)Ob();i=j+16|0;if((c[(i&p)>>2]|0)==(q|0))c[(i&p)>>2]=u;else c[(j&p)+20>>2]=u;if(!u)break}h=c[12270]|0;if(u>>>0>>0)Ob();c[(u&p)+24>>2]=j;i=c[(q&p)+16>>2]|0;do if(i)if(i>>>0>>0)Ob();else{c[(u&p)+16>>2]=i;c[(i&p)+24>>2]=u;break}while(0);i=c[(q&p)+20>>2]|0;if(i)if(i>>>0<(c[12270]|0)>>>0)Ob();else{c[(u&p)+20>>2]=i;c[(i&p)+24>>2]=u;break}}while(0);b:do if(o>>>0>=16){c[(q&p)+4>>2]=s|3;c[(q+(s|4)&p)>>2]=o|1;c[(q+o+s&p)>>2]=o;i=o>>>3;if(o>>>0<256){h=i<<1;f=49104+(h<<2)|0;g=c[12266]|0;i=1<>2]|0;if(h>>>0>=(c[12270]|0)>>>0){v=i;w=h;break}Ob()}while(0);c[(v&p)>>2]=m;c[(w&p)+12>>2]=m;c[(q+s&p)+8>>2]=w;c[(q+s&p)+12>>2]=f;break}d=o>>>8;if(d)if(o>>>0>16777215)f=31;else{w=(d+1048320|0)>>>16&8;x=d<>>16&4;x=x<>>16&2;f=14-(v|w|f)+(x<>>15)|0;f=o>>>(f+7|0)&1|f<<1}else f=0;i=49368+(f<<2)|0;c[(q+s&p)+28>>2]=f;c[(q+s&p)+20>>2]=0;c[(q+s&p)+16>>2]=0;h=c[12267]|0;g=1<>2]=m;c[(q+s&p)+24>>2]=i;c[(q+s&p)+12>>2]=m;c[(q+s&p)+8>>2]=m;break}d=c[(i&p)>>2]|0;if((f|0)==31)b=0;else b=25-(f>>>1)|0;c:do if((c[(d&p)+4>>2]&-8|0)!=(o|0)){h=o<>>31<<2)+16|0;i=c[(b&p)>>2]|0;if(!i)break;if((c[(i&p)+4>>2]&-8|0)==(o|0)){C=i;break c}else{h=h<<1;d=i}}if(b>>>0<(c[12270]|0)>>>0)Ob();else{c[(b&p)>>2]=m;c[(q+s&p)+24>>2]=d;c[(q+s&p)+12>>2]=m;c[(q+s&p)+8>>2]=m;break b}}else C=d;while(0);d=C+8|0;b=c[(d&p)>>2]|0;x=c[12270]|0;if(C>>>0>=x>>>0&b>>>0>=x>>>0){c[(b&p)+12>>2]=m;c[(d&p)>>2]=m;c[(q+s&p)+8>>2]=b;c[(q+s&p)+12>>2]=C;c[(q+s&p)+24>>2]=0;break}else Ob()}else{x=o+s|0;c[(q&p)+4>>2]=x|3;x=q+(x+4)|0;c[(x&p)>>2]=c[(x&p)>>2]|1}while(0);x=q+8|0;return x|0}}}else s=-1;while(0);a=c[12268]|0;if(a>>>0>=s>>>0){b=a-s|0;d=c[12271]|0;if(b>>>0>15){c[12271]=d+s;c[12268]=b;c[(d+s&p)+4>>2]=b|1;c[(d+a&p)>>2]=b;c[(d&p)+4>>2]=s|3}else{c[12268]=0;c[12271]=0;c[(d&p)+4>>2]=a|3;x=d+(a+4)|0;c[(x&p)>>2]=c[(x&p)>>2]|1}x=d+8|0;return x|0}a=c[12269]|0;if(a>>>0>s>>>0){w=a-s|0;c[12269]=w;x=c[12272]|0;c[12272]=x+s;c[(x+s&p)+4>>2]=w|1;c[(x&p)+4>>2]=s|3;x=x+8|0;return x|0}do if(!(c[12384]|0)){a=wb(30)|0;if(!(a+-1&a)){c[12386]=a;c[12385]=a;c[12387]=-1;c[12388]=-1;c[12389]=0;c[12377]=0;c[12384]=(Pb(0)|0)&-16^1431655768;break}else Ob()}while(0);l=s+48|0;b=c[12386]|0;k=s+47|0;d=b+k|0;b=0-b|0;m=d&b;if(m>>>0<=s>>>0){x=0;return x|0}a=c[12376]|0;if((a|0)!=0?(v=c[12374]|0,w=v+m|0,w>>>0<=v>>>0|w>>>0>a>>>0):0){x=0;return x|0}d:do if(!(c[12377]&4)){a=c[12272]|0;e:do if(a){f=49512|0;while(1){i=c[(f&p)>>2]|0;if(i>>>0<=a>>>0?(t=f+4|0,(i+(c[(t&p)>>2]|0)|0)>>>0>a>>>0):0){e=f;h=t;a=f;break}f=c[(f&p)+8>>2]|0;if(!f){H=181;break e}}if(a){a=d-(c[12269]|0)&b;if(a>>>0<2147483647){i=sb(a|0)|0;if((i|0)==((c[(e&p)>>2]|0)+(c[(h&p)>>2]|0)|0))H=190;else H=191}else a=0}else H=181}else H=181;while(0);do if((H|0)==181){i=sb(0)|0;if((i|0)!=(-1|0)){a=i;h=c[12385]|0;f=h+-1|0;if(!(f&a))a=m;else a=m-a+(f+a&0-h)|0;h=c[12374]|0;f=h+a|0;if(a>>>0>s>>>0&a>>>0<2147483647){w=c[12376]|0;if((w|0)!=0?f>>>0<=h>>>0|f>>>0>w>>>0:0){a=0;break}h=sb(a|0)|0;if((h|0)==(i|0))H=190;else{i=h;H=191}}else a=0}else a=0}while(0);f:do if((H|0)==190){if((i|0)!=(-1|0)){y=i;H=201;break d}}else if((H|0)==191){h=0-a|0;do if((i|0)!=(-1|0)&a>>>0<2147483647&l>>>0>a>>>0?(x=c[12386]|0,x=k-a+x&0-x,x>>>0<2147483647):0)if((sb(x|0)|0)==(-1|0)){sb(h|0)|0;a=0;break f}else{a=x+a|0;break}while(0);if((i|0)==(-1|0))a=0;else{y=i;H=201;break d}}while(0);c[12377]=c[12377]|4;H=198}else{a=0;H=198}while(0);if((((H|0)==198?m>>>0<2147483647:0)?(y=sb(m|0)|0,z=sb(0)|0,(y|0)!=(-1|0)&(z|0)!=(-1|0)&y>>>0>>0):0)?(A=z-y|0,B=A>>>0>(s+40|0)>>>0,B):0){a=B?A:a;H=201}if((H|0)==201){i=(c[12374]|0)+a|0;c[12374]=i;if(i>>>0>(c[12375]|0)>>>0)c[12375]=i;l=c[12272]|0;g:do if(l){e=49512|0;do{i=c[(e&p)>>2]|0;h=e+4|0;f=c[(h&p)>>2]|0;if((y|0)==(i+f|0)){D=i;E=h;F=f;G=e;H=213;break}e=c[(e&p)+8>>2]|0}while((e|0)!=0);if(((H|0)==213?(c[(G&p)+12>>2]&8|0)==0:0)?l>>>0>=D>>>0&l>>>0>>0:0){c[(E&p)>>2]=F+a;b=(c[12269]|0)+a|0;d=l+8|0;if(!(d&7))d=0;else d=0-d&7;x=b-d|0;c[12272]=l+d;c[12269]=x;c[(l+d&p)+4>>2]=x|1;c[(l+b&p)+4>>2]=40;c[12273]=c[12388];break}i=c[12270]|0;if(y>>>0>>0){c[12270]=y;k=y}else k=i;i=y+a|0;h=49512|0;do{if((c[(h&p)>>2]|0)==(i|0)){I=h;J=h;H=223;break}h=c[(h&p)+8>>2]|0}while((h|0)!=0);if((H|0)==223?(c[(J&p)+12>>2]&8|0)==0:0){c[(I&p)>>2]=y;i=J+4|0;c[(i&p)>>2]=(c[(i&p)>>2]|0)+a;i=y+8|0;if(!(i&7))q=0;else q=0-i&7;i=y+(a+8)|0;if(!(i&7))d=0;else d=0-i&7;i=y+(d+a)|0;o=q+s|0;n=y+o|0;m=i-(y+q)-s|0;c[(y+q&p)+4>>2]=s|3;h:do if((i|0)!=(l|0)){if((i|0)==(c[12271]|0)){x=(c[12268]|0)+m|0;c[12268]=x;c[12271]=n;c[(y+o&p)+4>>2]=x|1;c[(y+x+o&p)>>2]=x;break}l=a+4|0;j=c[(y+l+d&p)>>2]|0;if((j&3|0)==1){b=j&-8;f=j>>>3;i:do if(j>>>0>=256){e=c[(y+(d|24)+a&p)>>2]|0;g=c[(y+a+d&p)+12>>2]|0;do if((g|0)==(i|0)){g=d|16;h=y+(l+g)|0;j=c[(h&p)>>2]|0;if(!j){h=y+(g+a)|0;j=c[(h&p)>>2]|0;if(!j){O=0;break}}while(1){g=j+20|0;f=c[(g&p)>>2]|0;if(f){j=f;h=g;continue}g=j+16|0;f=c[(g&p)>>2]|0;if(!f)break;else{j=f;h=g}}if(h>>>0>>0)Ob();else{c[(h&p)>>2]=0;O=j;break}}else{f=c[(y+(d|8)+a&p)>>2]|0;if(f>>>0>>0)Ob();j=f+12|0;if((c[(j&p)>>2]|0)!=(i|0))Ob();h=g+8|0;if((c[(h&p)>>2]|0)==(i|0)){c[(j&p)>>2]=g;c[(h&p)>>2]=f;O=g;break}else Ob()}while(0);if(!e)break;j=c[(y+a+d&p)+28>>2]|0;h=49368+(j<<2)|0;do if((i|0)!=(c[(h&p)>>2]|0)){if(e>>>0<(c[12270]|0)>>>0)Ob();j=e+16|0;if((c[(j&p)>>2]|0)==(i|0))c[(j&p)>>2]=O;else c[(e&p)+20>>2]=O;if(!O)break i}else{c[(h&p)>>2]=O;if(O)break;c[12267]=c[12267]&~(1<
>>0);m=55}else{i=u;m=55}else if(i<<24>>24!=1)if((l|0)>0){i=u;do{m=d[(h&n)>>0]<<8;l=h+2|0;k=d[(h&n)+1>>0]|0;j=m|k;if((m&63488|0)==55296&l>>>0>>0){j=(j<<10&983040)+65536|k<<10&64512|d[(h&n)+3>>0]|d[(l&n)>>0]<<8&768;h=h+4|0}else h=l;do if(j>>>0>=128){if(j>>>0<2048){a[(i&n)>>0]=j>>>6&31|192;a[(i&n)+1>>0]=j&63|128;i=i+2|0;break}if(j>>>0<65536){a[(i&n)>>0]=j>>>12&15|224;a[(i&n)+1>>0]=j>>>6&63|128;a[(i&n)+2>>0]=j&63|128;i=i+3|0;break}else{a[(i&n)>>0]=j>>>18&7|240;a[(i&n)+1>>0]=j>>>12&63|128;a[(i&n)+2>>0]=j>>>6&63|128;a[(i&n)+3>>0]=j&63|128;i=i+4|0;break}}else{a[(i&n)>>0]=j;i=i+1|0}while(0)}while(h>>>0>>0);m=55}else{i=u;m=55}else{i=(l|0)>0;if(g<<24>>24==2)if(i){i=u;l=h;while(1){h=l+1|0;j=a[(l&n)>>0]|0;k=j&255;if((j&255)>191){k=d[(k+-192&n)+15360>>0]|0;a:do if((h|0)==(q|0))h=q;else while(1){j=a[(h&n)>>0]|0;if((j&-64)<<24>>24!=-128)break a;l=l+2|0;k=j&63|k<<6;if((l|0)==(q|0)){h=q;break}else{j=h;h=l;l=j}}while(0);if(!(k>>>0<128|(k&-2048|0)==55296|(k&-2|0)==65534))if(k>>>0<65536)m=22;else{l=k+-65536|0;a[(i&n)>>0]=l>>>10&192|k>>>10&63;a[(i&n)+1>>0]=l>>>18&3|216;a[(i&n)+2>>0]=k;a[(i&n)+3>>0]=k>>>8&3|220;i=i+4|0}else{k=65533;m=22}}else m=22;if((m|0)==22){m=0;a[(i&n)>>0]=k;a[(i&n)+1>>0]=k>>>8;i=i+2|0}if(h>>>0>>0)l=h;else break}}else i=u;else if(i){i=u;do{l=h+1|0;k=a[(h&n)>>0]|0;j=k&255;if((k&255)>191){j=d[(j+-192&n)+15360>>0]|0;b:do if((l|0)==(q|0))h=q;else{k=h;h=l;while(1){l=a[(h&n)>>0]|0;if((l&-64)<<24>>24!=-128)break b;k=k+2|0;j=l&63|j<<6;if((k|0)==(q|0)){h=q;break}else{l=h;h=k;k=l}}}while(0);if(!(j>>>0<128|(j&-2048|0)==55296|(j&-2|0)==65534))if(j>>>0<65536)m=31;else{l=j+-65536|0;a[(i&n)>>0]=l>>>18&3|216;a[(i&n)+1>>0]=l>>>10&192|j>>>10&63;a[(i&n)+2>>0]=j>>>8&3|220;a[(i&n)+3>>0]=j;i=i+4|0}else{j=65533;m=31}}else{h=l;m=31}if((m|0)==31){m=0;a[(i&n)>>0]=j>>>8;a[(i&n)+1>>0]=j;i=i+2|0}}while(h>>>0>>0)}else i=u;c[(r&p)>>2]=i-u;a[(i&n)>>0]=0;i=i+1|0}if((m|0)==55)c[(r&p)>>2]=i-u;a[(i&n)>>0]=0;i=f+8|0;r=b[(i&o)>>1]|0;h=r&65535;if(!((r&9312)==0?(c[(f&p)+24>>2]|0)==0:0))Qg(f);b[(i&o)>>1]=h&29|514;a[(v&n)>>0]=g;c[(s&p)>>2]=u;c[(f&p)+20>>2]=u;h=c[(t&p)>>2]|0;do if(!h)h=lc[c[8792>>2]&127](u)|0;else{if((c[(h&p)+276>>2]|0)>>>0<=u>>>0?(c[(h&p)+280>>2]|0)>>>0>u>>>0:0){h=e[(h&o)+248>>1]|0;break}h=lc[c[8792>>2]&127](u)|0}while(0);c[(f&p)+24>>2]=h;h=0}}else if(!(Vl(f)|0)){h=c[(f&p)+16>>2]|0;t=c[(f&p)+12>>2]&-2;i=h+t|0;if((t|0)>0)do{s=a[(h&n)>>0]|0;t=h+1|0;a[(h&n)>>0]=a[(t&n)>>0]|0;h=h+2|0;a[(t&n)>>0]=s}while(h>>>0>>0);a[(v&n)>>0]=g;h=0}else h=7;return h|0}function Cn(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,i=0,j=0;i=a[(b&n)>>0]|0;g=i&255;a:do switch(g|0){case 46:{if(((d[(b&n)+1>>0]|0)+-48|0)>>>0<10)j=51;else{c[(e&p)>>2]=122;f=1}break}case 47:{if((a[(b&n)+1>>0]|0)==42?(f=a[(b&n)+2>>0]|0,f<<24>>24!=0):0){f=f&255;g=3;while(1){i=a[(b+g&n)>>0]|0;if((f|0)==42&i<<24>>24==47){f=42;break}f=i&255;if(!(i<<24>>24))break;else g=g+1|0}c[(e&p)>>2]=151;f=((f|0)!=0&1)+g|0;break a}c[(e&p)>>2]=92;f=1;break}case 45:{if((a[(b&n)+1>>0]|0)==45)f=2;else{c[(e&p)>>2]=90;f=1;break a}while(1){g=a[(b+f&n)>>0]|0;if(g<<24>>24==0|g<<24>>24==10)break;f=f+1|0}c[(e&p)>>2]=151;break}case 41:{c[(e&p)>>2]=23;f=1;break}case 59:{c[(e&p)>>2]=1;f=1;break}case 43:{c[(e&p)>>2]=89;f=1;break}case 42:{c[(e&p)>>2]=91;f=1;break}case 40:{c[(e&p)>>2]=22;f=1;break}case 124:if((a[(b&n)+1>>0]|0)==124){c[(e&p)>>2]=94;f=2;break a}else{c[(e&p)>>2]=86;f=1;break a}case 91:{f=1;while(1){g=a[(b+f&n)>>0]|0;if(!(g<<24>>24)){g=g&255;break}f=f+1|0;if(g<<24>>24==93){g=93;break}}c[(e&p)>>2]=(g|0)==93?27:150;break}case 44:{c[(e&p)>>2]=26;f=1;break}case 38:{c[(e&p)>>2]=85;f=1;break}case 126:{c[(e&p)>>2]=96;f=1;break}case 34:case 39:case 96:{g=a[(b&n)+1>>0]|0;b:do if(g<<24>>24){f=1;while(1){if(g<<24>>24==i<<24>>24){f=f+1|0;if((a[(b+f&n)>>0]|0)!=i<<24>>24)break}f=f+1|0;g=a[(b+f&n)>>0]|0;if(!(g<<24>>24))break b}if(i<<24>>24==39){c[(e&p)>>2]=97;break a}else{c[(e&p)>>2]=27;break a}}else f=1;while(0);c[(e&p)>>2]=150;break}case 88:case 120:{if((a[(b&n)+1>>0]|0)==39){c[(e&p)>>2]=134;f=2;while(1){g=a[(b+f&n)>>0]|0;if(!(a[(g&255&n)+10368>>0]&8))break;else f=f+1|0}if(g<<24>>24==39&(f&1|0)==0)g=1;else{c[(e&p)>>2]=150;while(1){g=a[(b+f&n)>>0]|0;if(g<<24>>24==39|g<<24>>24==0)break;f=f+1|0}g=g<<24>>24!=0}f=(g&1)+f|0}else j=98;break}case 61:{c[(e&p)>>2]=79;f=(a[(b&n)+1>>0]|0)==61?2:1;break}case 60:{f=a[(b&n)+1>>0]|0;if(f<<24>>24==62){c[(e&p)>>2]=78;f=2;break a}else if(f<<24>>24==60){c[(e&p)>>2]=87;f=2;break a}else if(f<<24>>24==61){c[(e&p)>>2]=81;f=2;break a}else{c[(e&p)>>2]=82;f=1;break a}}case 57:case 56:case 55:case 54:case 53:case 52:case 51:case 50:case 49:case 48:{j=51;break}case 62:{f=a[(b&n)+1>>0]|0;if(f<<24>>24==61){c[(e&p)>>2]=83;f=2;break a}else if(f<<24>>24==62){c[(e&p)>>2]=88;f=2;break a}else{c[(e&p)>>2]=80;f=1;break a}}case 63:{c[(e&p)>>2]=135;f=1;while(1)if(((d[(b+f&n)>>0]|0)+-48|0)>>>0<10)f=f+1|0;else break;break}case 33:if((a[(b&n)+1>>0]|0)==61){c[(e&p)>>2]=78;f=2;break a}else{c[(e&p)>>2]=150;f=2;break a}case 58:case 35:case 64:case 36:{c[(e&p)>>2]=135;g=a[(b&n)+1>>0]|0;if(g<<24>>24){f=1;i=0;while(1){if(!(a[(g&255&n)+10368>>0]&70)){if(g<<24>>24==40&(i|0)>0){g=i;j=78;break}if(g<<24>>24!=58){g=i;break}g=f+1|0;if((a[(b+g&n)>>0]|0)==58)f=g;else{g=i;break}}else i=i+1|0;f=f+1|0;g=a[(b+f&n)>>0]|0;if(!(g<<24>>24)){g=i;break}}do if((j|0)==78){h=f;while(1){f=h+1|0;i=a[(b+f&n)>>0]|0;if(!(i<<24>>24))break;if(i<<24>>24!=41?(a[(i&255&n)+10368>>0]&1)==0:0)h=f;else{j=81;break}}if((j|0)==81)if(i<<24>>24==41){f=h+2|0;break}c[(e&p)>>2]=150}while(0);if(g)break a}else f=1;c[(e&p)>>2]=150;break}case 37:{c[(e&p)>>2]=93;f=1;break}case 13:case 12:case 10:case 9:case 32:{f=1;while(1)if(!(a[((d[(b+f&n)>>0]|0)&n)+10368>>0]&1))break;else f=f+1|0;c[(e&p)>>2]=151;break}default:j=98}while(0);c:do if((j|0)==51){c[(e&p)>>2]=132;f=a[(b&n)>>0]|0;if(f<<24>>24==48){g=a[(b&n)+1>>0]|0;if(g<<24>>24==88|g<<24>>24==120)if(!(a[((d[(b&n)+2>>0]|0)&n)+10368>>0]&8))h=0;else{f=3;while(1)if(!(a[((d[(b+f&n)>>0]|0)&n)+10368>>0]&8))break c;else f=f+1|0}else{f=48;h=0}}else h=0;while(1){g=h+1|0;if(((f&255)+-48|0)>>>0>=10){g=h;break}f=a[(b+g&n)>>0]|0;h=g}if(f<<24>>24==46){f=g;do{f=f+1|0;g=b+f|0}while(((d[(g&n)>>0]|0)+-48|0)>>>0<10);c[(e&p)>>2]=133;h=a[(g&n)>>0]|0;i=f}else{h=f;i=g}do if(h<<24>>24==69|h<<24>>24==101){g=a[(b+i&n)+1>>0]|0;if(((g&255)+-48|0)>>>0>=10){if(!(g<<24>>24==45|g<<24>>24==43)){g=h;f=i;break}f=i+2|0;if(((d[(b+f&n)>>0]|0)+-48|0)>>>0>=10){g=h;f=i;break}}else f=i+2|0;while(1){g=b+f|0;if(((d[(g&n)>>0]|0)+-48|0)>>>0<10)f=f+1|0;else break}c[(e&p)>>2]=133;g=a[(g&n)>>0]|0}else{g=h;f=i}while(0);if(a[(g&255&n)+10368>>0]&70)do{c[(e&p)>>2]=150;f=f+1|0}while((a[((d[(b+f&n)>>0]|0)&n)+10368>>0]&70)!=0)}else if((j|0)==98){if(!(a[(g&n)+10368>>0]&70)){c[(e&p)>>2]=150;f=1;break}else f=1;while(1)if(!(a[((d[(b+f&n)>>0]|0)&n)+10368>>0]&70))break;else f=f+1|0;c[(e&p)>>2]=fi(b,f)|0}while(0);return f|0}function Dn(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,i=0,j=0;f=a[(b&n)>>0]|0;if(f<<24>>24==43){b=b+1|0;i=0;j=13}else if(f<<24>>24==45){b=b+1|0;i=1;j=13}else if((f<<24>>24==48?(f=a[(b&n)+1>>0]|0,f<<24>>24==88|f<<24>>24==120):0)?(g=b+2|0,e=a[(g&n)>>0]|0,(a[(e&255&n)+10368>>0]&8)!=0):0){while(1){f=g+1|0;if(e<<24>>24!=48)break;g=f;e=a[(f&n)>>0]|0}if(!(a[(e&255&n)+10368>>0]&8)){e=0;f=0}else{h=e;b=0;f=0;do{e=h<<24>>24;f=(0-(e>>>6&1)&9)+e&15|f<<4;b=b+1|0;h=a[(g+b&n)>>0]|0;e=(a[(h&255&n)+10368>>0]&8)==0}while((b|0)<8&(e^1));e=e^1}if((f|0)<0|e)e=0;else{c[(d&p)>>2]=f;e=1}}else{i=0;j=13}a:do if((j|0)==13){e=0;f=0;h=0;while(1){g=(a[(b+h&n)>>0]|0)+-48|0;if(g>>>0>=10)break;f=sw(e|0,f|0,10,0)|0;e=jw(g|0,((g|0)<0)<<31>>31|0,f|0,G|0)|0;h=h+1|0;if((h|0)>=11){e=0;break a}else f=G}g=dw(e|0,f|0,i|0,0)|0;b=G;if((b|0)>0|(b|0)==0&g>>>0>2147483647)e=0;else{if(i)e=dw(0,0,e|0,f|0)|0;c[(d&p)>>2]=e;e=1}}while(0);return e|0}function En(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0;f=i;i=i+16|0;if((i|0)>=(j|0))fa();g=f;c[(g&p)>>2]=e;sg(a,b,d,g);i=f;return}function Fn(e,f,g,h,k,l,m){e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;m=m|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,H=0,I=0;I=i;i=i+16|0;if((i|0)>=(j|0))fa();F=I;D=I+4|0;c[(D&p)>>2]=0;H=mh(e,536,0)|0;a:do if(H){fw(H|0,0,536)|0;c[(H&p)+476>>2]=k;u=e+20|0;k=c[(u&p)>>2]|0;b:do if((k|0)>0){v=e+16|0;s=0;while(1){t=c[((c[(v&p)>>2]|0)+(s<<4)&p)+4>>2]|0;if(t){c[((c[(t&p)+4>>2]|0)&p)+4>>2]=c[(t&p)>>2];q=bl(t,1,1)|0;if(q)break;k=c[(u&p)>>2]|0}s=s+1|0;if((s|0)>=(k|0))break b}c[(F&p)>>2]=c[((c[(v&p)>>2]|0)+(s<<4)&p)>>2];ug(e,q,40984,F);s=H;break a}while(0);rl(e);c[(H&p)>>2]=e;c[(H&p)+424>>2]=0;do if((g|0)>-1){if((g|0)!=0?(a[(f+g+-1&n)>>0]|0)==0:0){E=21;break}if((c[(e&p)+92>>2]|0)<(g|0)){ug(e,18,41016,F);if(!e){s=H;q=18;break a}if(!(a[(e&n)+65>>0]|0)){s=H;q=c[(e&p)+56>>2]&18;break a}else{Ql(e);s=H;q=7;break a}}else{if((f|0)!=0?(r=jw(g|0,((g|0)<0)<<31>>31|0,1,0)|0,r=mh(e,r,G)|0,(r|0)!=0):0){kw(r|0,f|0,g|0)|0;a[(r+g&n)>>0]=0;Lh(H,r,D)|0;mg(e,r);q=H+480|0;c[(q&p)>>2]=f+((c[(q&p)>>2]|0)-r);break}c[(H&p)+480>>2]=f+g;break}}else E=21;while(0);if((E|0)==21)Lh(H,f,D)|0;v=e+65|0;k=H+12|0;if(!(a[(v&n)>>0]|0)){s=H+12|0;if((c[(k&p)>>2]|0)==101)c[(s&p)>>2]=0}else{c[(k&p)>>2]=7;s=H+12|0}c:do if((a[(H&n)+17>>0]|0)!=0?(w=c[(H&p)>>2]|0,x=w+20|0,(c[(x&p)>>2]|0)>0):0){r=w+16|0;u=0;while(1){k=c[(r&p)>>2]|0;q=c[(k+(u<<4)&p)+4>>2]|0;if(q){if(!(a[(q&n)+8>>0]|0)){k=yg(q,0)|0;if((k|0)==7|(k|0)==3082)break;else if(k)break c;k=c[(r&p)>>2]|0;t=1}else t=0;g=c[(q&p)+4>>2]|0;c[(g&p)+4>>2]=c[(q&p)>>2];g=c[((c[(g&p)+12>>2]|0)&p)+56>>2]|0;if((d[(g&n)+41>>0]<<16|d[(g&n)+40>>0]<<24|d[(g&n)+42>>0]<<8|d[(g&n)+43>>0]|0)!=(c[(c[(k+(u<<4)&p)+12>>2]&p)>>2]|0)){vm(w,u);c[(s&p)>>2]=17}if(t)un(q)|0}u=u+1|0;if((u|0)>=(c[(x&p)>>2]|0))break c}a[(w&n)+65>>0]=1}while(0);if(a[(v&n)>>0]|0)c[(s&p)>>2]=7;if(m)c[(m&p)>>2]=c[(H&p)+480>>2];q=c[(s&p)>>2]|0;t=(q|0)==0;do if(t?(z=H+8|0,y=c[(z&p)>>2]|0,(y|0)!=0):0){s=a[(H&n)+450>>0]|0;if(!(s<<24>>24))break;else if(s<<24>>24==2){iq(y,4);r=8;k=12}else{iq(y,8);r=0;k=8}s=r;do{jq(c[(z&p)>>2]|0,s-r|0,0,c[(s<<2&p)+41040>>2]|0,0);s=s+1|0}while((s|0)<(k|0))}while(0);r=H+8|0;if((a[(e&n)+145>>0]|0)==0?(C=c[(r&p)>>2]|0,A=(c[(H&p)+480>>2]|0)-f|0,(C|0)!=0):0){if((f|0)!=0?(z=c[(C&p)>>2]|0,B=jw(A|0,((A|0)<0)<<31>>31|0,1,0)|0,B=mh(z,B,G)|0,(B|0)!=0):0){kw(B|0,f|0,A|0)|0;a[(B+A&n)>>0]=0;s=B}else s=0;c[(C&p)+168>>2]=s;C=C+88|0;b[(C&o)>>1]=b[(C&o)>>1]&-257|(h&65535)<<8&256}s=c[(r&p)>>2]|0;do if(!s)E=60;else{if(t?(a[(v&n)>>0]|0)==0:0){E=60;break}Ng(s)|0}while(0);if((E|0)==60)c[(l&p)>>2]=s;r=c[(D&p)>>2]|0;do if(!r){c[(e&p)+52>>2]=q;r=c[(e&p)+236>>2]|0;if(r){s=r+8|0;if(!(b[(s&o)>>1]&9312)){b[(s&o)>>1]=1;break}else{vg(r);break}}}else{c[(F&p)>>2]=r;ug(e,q,10344,F);mg(e,r)}while(0);r=H+528|0;s=c[(r&p)>>2]|0;if(!s)s=H;else{do{c[(r&p)>>2]=c[(s&p)+4>>2];mg(e,s);s=c[(r&p)>>2]|0}while((s|0)!=0);s=H}}else{s=0;q=7}while(0);Ch(s);mg(e,H);F=Og(e,q)|0;i=I;return F|0}function Gn(b){b=b|0;var d=0,e=0;e=c[(b&p)>>2]|0;if((a[(e&n)+145>>0]|0)==0?(d=Zh(e,b+4|0)|0,(d|0)!=0):0){c[(b&p)+12>>2]=d;e=b+64|0;c[(e&p)>>2]=(c[(e&p)>>2]|0)+1}else d=0;return d|0}function Hn(a){a=a|0;var b=0,d=0,f=0,g=0,h=0;f=c[(a&p)+24>>2]|0;h=f+84|0;b=c[(h&p)>>2]|0;if(!b){b=1020;d=0}else{b=b*40|0;d=0}g=a+4|0;a=ro(c[(f&p)>>2]|0,c[(g&p)>>2]|0,b,d)|0;d=(a|0)!=0;if(d){b=c[(f&p)>>2]|0;do if(!b)b=lc[c[8792>>2]&127](a)|0;else{if((c[(b&p)+276>>2]|0)>>>0<=a>>>0?(c[(b&p)+280>>2]|0)>>>0>a>>>0:0){b=e[(b&o)+248>>1]|0;break}b=lc[c[8792>>2]&127](a)|0}while(0);c[(h&p)>>2]=(b>>>0)/20|0;c[(g&p)>>2]=a}return (d?0:7)|0}function In(a,d,e){a=a|0;d=d|0;e=e|0;a:do if(e)switch(d|0){case -6:{if(c[(a&p)+520>>2]|0)break a;a=(c[(e&p)>>2]|0)+-1|0;c[(e&p)>>2]=a;if(a)break a;Wc(e);break a}case -8:{if(!(c[(a&p)+520>>2]|0)){Mh(e);break a}if(c[(e&p)+24>>2]|0)mg(a,c[(e&p)+20>>2]|0);mg(a,e);break a}case -10:{if(c[(a&p)+520>>2]|0)break a;An(e);break a}case -15:case -1:case -13:case -12:{mg(a,e);break a}case -11:{if(c[(a&p)+520>>2]|0)break a;Wc(e);break a}case -5:{if(!(b[(e&o)+2>>1]&16))break a;mg(a,e);break a}default:break a}while(0);return}function Jn(e,f){e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0;g=c[(f&p)>>2]|0;s=c[(e&p)+24>>2]|0;t=s+112|0;k=c[(t&p)>>2]|0;q=e+88|0;b[(q&o)>>1]=b[(q&o)>>1]&-193|64;h=c[(e&p)+32>>2]|0;a:do if((h|0)>0){j=c[(e&p)+4>>2]|0;while(1){h=h+-1|0;i=d[(j&n)>>0]|0;switch(i|0){case 5:case 7:case 9:{c[(j&p)+16>>2]=76;a[(j&n)+1>>0]=-19;break}case 6:case 8:{c[(j&p)+16>>2]=77;a[(j&n)+1>>0]=-19;break}case 14:{u=c[(j+-16&p)>>2]|0;g=(u|0)>(g|0)?u:g;break}case 2:case 3:{r=7;break}case 4:{if(!(c[(j&p)+8>>2]|0))r=7;else{b[(q&o)>>1]=b[(q&o)>>1]&-65;r=7}break}case 12:case 13:case 11:{b[(q&o)>>1]=b[(q&o)>>1]&-193|128;break}case 15:{u=c[(j&p)+8>>2]|0;g=(u|0)>(g|0)?u:g;break}case 10:case 1:{u=d[(j&n)+3>>0]|0;g=(u|0)>(g|0)?u:g;break}default:{}}if((r|0)==7){r=0;b[(q&o)>>1]=b[(q&o)>>1]|128}i=a[(i&n)+34168>>0]|0;a[(j&n)+2>>0]=i;if((i&1)!=0?(l=j+8|0,m=c[(l&p)>>2]|0,(m|0)<0):0)c[(l&p)>>2]=c[(k+(~m<<2)&p)>>2];if((h|0)<=0)break a;else j=j+20|0}}while(0);mg(c[(e&p)>>2]|0,c[(t&p)>>2]|0);c[(t&p)>>2]=0;c[(s&p)+108>>2]=0;c[(f&p)>>2]=g;return}function Kn(b){b=b|0;var d=0,e=0,f=0,g=0,h=0;h=i;i=i+16|0;if((i|0)>=(j|0))fa();g=h;e=b+73|0;if((a[(e&n)>>0]|0)!=4){a[(e&n)>>0]=0;f=b+56|0;d=b+48|0;d=Gp(b,c[(f&p)>>2]|0,c[(d&p)>>2]|0,c[(d&p)+4>>2]|0,0,g)|0;if(!d){Wc(c[(f&p)>>2]|0);c[(f&p)>>2]=0;f=b+68|0;d=c[(f&p)>>2]|c[(g&p)>>2];c[(f&p)>>2]=d;if((d|0)!=0?(a[(e&n)>>0]|0)==1:0){a[(e&n)>>0]=2;d=0}else d=0}}else d=c[(b&p)+68>>2]|0;i=h;return d|0}function Ln(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;a=c[(a&p)+8>>2]|0;a:do if(!a)a=0;else{e=(b|0)==0;while(1){if((a|0)!=(d|0)){if(e)break;if((c[(a&p)+60>>2]|0)==(b|0))break}a=c[(a&p)+8>>2]|0;if(!a){a=0;break a}}a=Fl(a,b,d)|0}while(0);return a|0}function Mn(b){b=b|0;var e=0,f=0,g=0,h=0;f=c[(b&p)>>2]|0;g=f+1|0;c[(b&p)>>2]=g;h=a[(f&n)>>0]|0;e=h&255;if((h&255)<=191)return e|0;e=d[(e+-192&n)+15360>>0]|0;if((a[(g&n)>>0]&-64)<<24>>24==-128)while(1){f=f+2|0;c[(b&p)>>2]=f;e=(d[(g&n)>>0]|0)&63|e<<6;if((a[(f&n)>>0]&-64)<<24>>24==-128){h=g;g=f;f=h}else break}return (e>>>0<128|(e&-2048|0)==55296|(e&-2|0)==65534?65533:e)|0}function Nn(b,c){b=b|0;c=c|0;var d=0,e=0,f=0,g=0;if((c|0)>-1)g=b+c|0;else g=-1;c=a[(b&n)>>0]|0;if(c<<24>>24!=0&g>>>0>b>>>0){d=c;c=0;do{f=b+1|0;if((d&255)>191){e=b;b=f;while(1){d=a[(b&n)>>0]|0;if((d&-64)<<24>>24==-128){d=b;b=e+2|0;e=d}else break}}else{d=a[(f&n)>>0]|0;b=f}c=c+1|0}while(d<<24>>24!=0&b>>>0>>0)}else c=0;return c|0}function On(d,f,g,h){d=d|0;f=f|0;g=g|0;h=h|0;var k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0;A=i;i=i+48|0;if((i|0)>=(j|0))fa();w=A+32|0;x=A+16|0;y=A;k=c[(d&p)>>2]|0;if((k|0)<0){c[(d&p)>>2]=0;c[(d&p)+4>>2]=-1;b[(d&o)+12>>1]=0;a[(d&n)+14>>0]=0;k=0}s=g;r=c[(s&p)+4>>2]|0;t=y;c[(t&p)>>2]=c[(s&p)>>2];c[(t&p)+4>>2]=r;t=d+8|0;c[(t&p)>>2]=h;r=f&255;s=(f|0)==254;do{q=b[(d+(k<<4)&o)+12>>1]|0;h=q&65535;g=37184+(h<<1)|0;a:do if((q&65535)>429)z=6;else{q=r;while(1){m=b[(g&o)>>1]|0;l=m<<16>>16;if(m<<16>>16==-86){z=6;break a}m=q&255;k=l+m|0;if(k>>>0<=1496?(a[(k&n)+39336>>0]|0)==q<<24>>24:0){z=16;break}if(!(q<<24>>24))break;if((q&255)>=70){u=l;z=12;break}q=a[(m&n)+40840>>0]|0;if(!(q<<24>>24)){u=l;z=12;break}}if((z|0)==16){z=0;k=e[(k<<1&o)+22184>>1]|0;break}if(((z|0)==12?(z=0,v=u+70|0,(v|0)>-1):0)?(a[(v&n)+39336>>0]|0)==70:0){k=e[(v<<1&o)+22184>>1]|0;break}k=e[(h<<1&o)+38048>>1]|0}while(0);if((z|0)==6){z=0;k=e[(h<<1&o)+38048>>1]|0}if(k>>>0<642){z=18;break}if(k>>>0>=969){z=20;break}mq(d,k+-642|0);if(s)break;k=c[(d&p)>>2]|0}while((k|0)>-1);if((z|0)==18){kq(d,k,f,y);u=d+4|0;c[(u&p)>>2]=(c[(u&p)>>2]|0)+-1}else if((z|0)==20){c[(x&p)>>2]=c[(y&p)>>2];c[(x&p)+4>>2]=c[(y&p)+4>>2];c[(x&p)+8>>2]=c[(y&p)+8>>2];u=c[(t&p)>>2]|0;c[(w&p)>>2]=x;th(u,20432,w);c[(t&p)>>2]=u;lq(d,r,y)}i=A;return}function Pn(b){b=b|0;var d=0;d=c[(b&p)>>2]|0;if((d|0)>=0){lq(b,a[(b+(d<<4)&n)+14>>0]|0,b+(d<<4)+16|0);c[(b&p)>>2]=(c[(b&p)>>2]|0)+-1}return}function Qn(a,b){a=a|0;b=b|0;var d=0;if(b){if((c[(b&p)>>2]|0)>0){d=0;do{Nk(a,c[(b+(d<<4)&p)+12>>2]|0);Mk(a,c[(b+(d<<4)&p)+16>>2]|0,1);mg(a,c[(b+(d<<4)&p)+8>>2]|0);d=d+1|0}while((d|0)<(c[(b&p)>>2]|0))}mg(a,b)}return}function Rn(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,i=0;h=a+328|0;d=c[(h&p)>>2]|0;if(d){i=a+304|0;if((c[(i&p)>>2]|0)>0){f=0;do{e=c[(d+(f<<2)&p)>>2]|0;d=c[(e&p)+8>>2]|0;if((d|0)!=0?(g=c[((c[(d&p)>>2]|0)+b&p)>>2]|0,(g|0)!=0):0)lc[g&127](d)|0;c[(e&p)+20>>2]=0;An(e);f=f+1|0;d=c[(h&p)>>2]|0}while((f|0)<(c[(i&p)>>2]|0))}mg(a,d);c[(i&p)>>2]=0;c[(h&p)>>2]=0}return}function Sn(a,d,f){a=a|0;d=d|0;f=f|0;var g=0,h=0;do if((d|0)==-2)if(!(c[(a&p)+12>>2]|0))d=(c[(a&p)+16>>2]|0)==0?0:6;else d=6;else{h=b[(a&o)>>1]|0;g=h<<16>>16;if(!((g|0)!=(d|0)&h<<16>>16>-1)){h=(g|0)==(d|0)?4:1;g=f&255;d=e[(a&o)+2>>1]|0;if((g|0)==(d&3|0)){d=h|2;break}else return ((d&g)>>>1&1)+h|0}else d=0}while(0);return d|0} function uc(a){a=a|0;var b=0;b=i;i=i+a|0;i=i+15&-16;if((i|0)>=(j|0))fa();return b|0}function vc(){return i|0}function wc(a){a=a|0;i=a}function xc(a,b){a=a|0;b=b|0;if(!r){r=a;s=b}}function yc(b){b=b|0;a[(k&n)>>0]=a[(b&n)>>0];a[(k&n)+1>>0]=a[(b&n)+1>>0];a[(k&n)+2>>0]=a[(b&n)+2>>0];a[(k&n)+3>>0]=a[(b&n)+3>>0]}function zc(b){b=b|0;a[(k&n)>>0]=a[(b&n)>>0];a[(k&n)+1>>0]=a[(b&n)+1>>0];a[(k&n)+2>>0]=a[(b&n)+2>>0];a[(k&n)+3>>0]=a[(b&n)+3>>0];a[(k&n)+4>>0]=a[(b&n)+4>>0];a[(k&n)+5>>0]=a[(b&n)+5>>0];a[(k&n)+6>>0]=a[(b&n)+6>>0];a[(k&n)+7>>0]=a[(b&n)+7>>0]}function Ac(a){a=a|0;G=a}function Bc(){return G|0}function Cc(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0;h=i;i=i+16|0;if((i|0)>=(j|0))fa();e=h+4|0;f=h;g=0;a:while(1){c[(e&p)>>2]=0;c[(f&p)>>2]=0;a[280]=0;if(Rf(14640,e)|0){d=4;break}d=c[(e&p)>>2]|0;b=0;do{if(Qe(d,c[(b<<2&p)+8>>2]|0,17,0,f)|0){d=7;break a}b=b+1|0;d=c[(e&p)>>2]|0}while((b|0)!=5);tf(d)|0;if(_v(280,8504)|0){d=9;break}g=g+1|0;if((g|0)>=3){d=11;break}}if((d|0)==4)ib(8472,8488,47,8496);else if((d|0)==7)ib(8472,8488,50,8496);else if((d|0)==9)ib(8600,8488,53,8496);else if((d|0)==11){i=h;return 0}return 0}function Dc(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;if((d|0)>0)while(1){d=d+-1|0;hw(280,c[(f&p)>>2]|0)|0;b=280+(gw(280)|0)|0;a[(b&n)>>0]=61;a[(b&n)+1>>0]=0;b=c[(e&p)>>2]|0;hw(280,((b|0)==0?20304:b)|0)|0;if((d|0)<=0)break;else{e=e+4|0;f=f+4|0}}return 0}function Ec(b){b=b|0;var e=0,f=0,g=0;g=(Fc(b,8640,7)|0)==0;g=g?b+7|0:b;if(!g)b=0;else{b=g;while(1)if(!(a[(b&n)>>0]|0))break;else b=b+1|0;b=b-g&1073741823}f=0;while(1){e=c[(f<<2&p)+8648>>2]|0;if((Fc(g,e,b)|0)==0?(a[((d[(e+b&n)>>0]|0)&n)+10368>>0]&70)==0:0){b=1;break}f=f+1|0;if((f|0)>=4){b=0;break}}return b|0}function Fc(b,c,e){b=b|0;c=c|0;e=e|0;var f=0;a:do if(b)if(c)if((e|0)>0){f=b;while(1){b=a[(f&n)>>0]|0;if(!(b<<24>>24))break;if((a[(b&255&n)+9328>>0]|0)!=(a[((d[(c&n)>>0]|0)&n)+9328>>0]|0))break;e=e+-1|0;if((e|0)<=0){e=0;break a}else{f=f+1|0;c=c+1|0}}if((e|0)>=1)e=(d[(b&255&n)+9328>>0]|0)-(d[((d[(c&n)>>0]|0)&n)+9328>>0]|0)|0;else e=0}else e=0;else e=1;else e=((c|0)!=0)<<31>>31;while(0);return e|0}function Gc(a){a=a|0;if(a>>>0<4)a=c[(a<<2&p)+8648>>2]|0;else a=0;return a|0}function Hc(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0;h=i;i=i+16|0;if((i|0)>=(j|0))fa();f=h;if(a>>>0<=9){g=c[(a<<2&p)+8664>>2]|0;f=b;c[(f&p)>>2]=g;c[(f&p)+4>>2]=0;f=8704+(a<<2)|0;a=d;c[(a&p)>>2]=c[(f&p)>>2];c[(a&p)+4>>2]=0;if(!e)f=0;else{c[(f&p)>>2]=g;f=0}}else{c[(f&p)>>2]=15033;c[(f&p)+4>>2]=10788;bd(21,13648,f);f=21}i=h;return f|0}function Ic(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0;h=i;i=i+16|0;if((i|0)>=(j|0))fa();f=h+8|0;g=h;a=Hc(a,f,g,e)|0;if(!a){c[(b&p)>>2]=c[(f&p)>>2];c[(d&p)>>2]=c[(g&p)>>2]}i=h;return a|0}function Jc(a,b,d,f,g){a=a|0;b=b|0;d=d|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,n=0,q=0,r=0;r=i;i=i+16|0;if((i|0)>=(j|0))fa();n=r+4|0;l=r;switch(b|0){case 2:{c[(n&p)>>2]=0;q=a+20|0;g=c[(q&p)>>2]|0;h=(g|0)>0;if(h){l=c[(a&p)+16>>2]|0;k=0;do{b=c[(l+(k<<4)&p)+4>>2]|0;if(b)c[((c[(b&p)+4>>2]|0)&p)+4>>2]=c[(b&p)>>2];k=k+1|0}while((k|0)!=(g|0));k=a+520|0;c[(k&p)>>2]=n;if(h){m=a+16|0;h=0;do{b=c[((c[(m&p)>>2]|0)+(h<<4)&p)+12>>2]|0;if(b){l=lc[c[8796>>2]&127](16)|0;l=ca((c[(b&p)+44>>2]|0)+(c[(b&p)+12>>2]|0)+(c[(b&p)+28>>2]|0)+(c[(b&p)+60>>2]|0)|0,l)|0;c[(n&p)>>2]=l+(c[(n&p)>>2]|0);l=lc[c[8792>>2]&127](c[(b&p)+20>>2]|0)|0;c[(n&p)>>2]=(c[(n&p)>>2]|0)+l;l=lc[c[8792>>2]&127](c[(b&p)+52>>2]|0)|0;c[(n&p)>>2]=(c[(n&p)>>2]|0)+l;l=lc[c[8792>>2]&127](c[(b&p)+36>>2]|0)|0;c[(n&p)>>2]=(c[(n&p)>>2]|0)+l;l=lc[c[8792>>2]&127](c[(b&p)+68>>2]|0)|0;c[(n&p)>>2]=(c[(n&p)>>2]|0)+l;l=c[(b&p)+48>>2]|0;if(l)do{jg(a,c[(l&p)+8>>2]|0);l=c[(l&p)>>2]|0}while((l|0)!=0);l=c[(b&p)+16>>2]|0;if(l)do{kg(a,c[(l&p)+8>>2]|0);l=c[(l&p)>>2]|0}while((l|0)!=0);g=c[(q&p)>>2]|0}h=h+1|0}while((h|0)<(g|0));h=c[(n&p)>>2]|0}else h=0}else{k=a+520|0;c[(k&p)>>2]=n;h=0}c[(k&p)>>2]=0;c[(f&p)>>2]=0;c[(d&p)>>2]=h;h=0;break}case 9:case 8:case 7:{q=a+20|0;l=c[(q&p)>>2]|0;if((l|0)>0){n=c[(a&p)+16>>2]|0;m=b+-7|0;k=(g|0)==0;h=0;b=l;g=0;while(1){l=c[(n+(g<<4)&p)+4>>2]|0;if(l){l=(c[(c[(l&p)+4>>2]&p)>>2]|0)+(m<<2)+184|0;h=(c[(l&p)>>2]|0)+h|0;if(k)l=b;else{c[(l&p)>>2]=0;l=c[(q&p)>>2]|0}}else l=b;g=g+1|0;if((g|0)>=(l|0))break;else b=l}}else h=0;c[(f&p)>>2]=0;c[(d&p)>>2]=h;h=0;break}case 0:{k=a+252|0;c[(d&p)>>2]=c[(k&p)>>2];h=a+256|0;c[(f&p)>>2]=c[(h&p)>>2];if(!g)h=0;else{c[(h&p)>>2]=c[(k&p)>>2];h=0}break}case 6:case 5:case 4:{c[(d&p)>>2]=0;h=a+(b+-4<<2)+260|0;c[(f&p)>>2]=c[(h&p)>>2];if(!g)h=0;else{c[(h&p)>>2]=0;h=0}break}case 1:{m=a+20|0;k=c[(m&p)>>2]|0;g=(k|0)>0;if(g){h=c[(a&p)+16>>2]|0;l=0;do{b=c[(h+(l<<4)&p)+4>>2]|0;if(b)c[((c[(b&p)+4>>2]|0)&p)+4>>2]=c[(b&p)>>2];l=l+1|0}while((l|0)!=(k|0));if(g){b=a+16|0;l=0;h=0;while(1){g=c[((c[(b&p)>>2]|0)+(l<<4)&p)+4>>2]|0;if(!g)g=k;else{q=c[(c[(g&p)+4>>2]&p)>>2]|0;a=q+152|0;n=(c[(a&p)>>2]|0)+60+(e[(q&o)+140>>1]|0)|0;n=ca(lc[c[8872>>2]&127](c[((c[(q&p)+204>>2]|0)&p)+40>>2]|0)|0,n)|0;q=lc[c[8792>>2]&127](q)|0;g=c[(m&p)>>2]|0;h=n+h+q+(c[(a&p)>>2]|0)|0}l=l+1|0;if((l|0)>=(g|0))break;else k=g}}else h=0}else h=0;c[(d&p)>>2]=h;c[(f&p)>>2]=0;h=0;break}case 3:{c[(l&p)>>2]=0;g=a+520|0;c[(g&p)>>2]=l;k=c[(a&p)+4>>2]|0;if(!k)h=0;else{do{lg(a,k);mg(a,k);k=c[(k&p)+52>>2]|0}while((k|0)!=0);h=c[(l&p)>>2]|0}c[(g&p)>>2]=0;c[(f&p)>>2]=0;c[(d&p)>>2]=h;h=0;break}case 10:{c[(f&p)>>2]=0;q=a+512|0;n=c[(q&p)+4>>2]|0;if((n|0)>0|(n|0)==0&(c[(q&p)>>2]|0)>>>0>0)h=1;else{h=a+504|0;a=c[(h&p)+4>>2]|0;h=(a|0)>0|(a|0)==0&(c[(h&p)>>2]|0)>>>0>0}c[(d&p)>>2]=h&1;h=0;break}default:h=1}i=r;return h|0}function Kc(a){a=a|0;var b=0;a:do if(!(Lc()|0)){b=c[2254]|0;if(!((b|0)==0|(a|0)==0))while(1){if(!(_v(a,c[(b&p)+16>>2]|0)|0))break a;b=c[(b&p)+12>>2]|0;if(!b){b=0;break}}}else b=0;while(0);return b|0}function Lc(){var a=0,b=0,d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0;m=i;i=i+16|0;if((i|0)>=(j|0))fa();k=m;do if(!(c[2243]|0)){c[2245]=1;if(!(c[2246]|0)){if(!(c[2195]|0)){c[(k&p)>>2]=16496;mf(4,k)|0}b=9024|0;d=b+40|0;do{c[(b&p)>>2]=0;b=b+4|0}while((b|0)<(d|0));if(c[2187]|0)c[2256]=8;h=c[2234]|0;d=c[2235]|0;b=c[2236]|0;if((h|0)!=0&(d|0)>99&(b|0)>0){g=d&-8;c[2235]=g;c[2263]=h;c[2264]=b;f=b+-1|0;if((f|0)>0){b=h+(ca(d>>>3,(b<<3)+-8|0)|0)|0;e=0;d=h;do{a=d;d=d+g|0;c[(a&p)>>2]=d;e=e+1|0}while((e|0)!=(f|0))}else b=h;c[(b&p)>>2]=0;c[2262]=b+4}else{c[2262]=0;c[2234]=0;c[2235]=0;c[2236]=0}if((c[2237]|0)==0|(c[2238]|0)<512|(c[2239]|0)<1){c[2237]=0;c[2238]=0;c[2239]=0}a=lc[c[8800>>2]&127](c[2202]|0)|0;if(a){b=9024|0;d=b+40|0;do{c[(b&p)>>2]=0;b=b+4|0}while((b|0)<(d|0));break}}c[2246]=1;if(!(c[2249]|0))c[2249]=8;a=(c[2248]|0)+1|0;c[2248]=a;if(!(c[2244]|c[2243])){c[2244]=1;b=10840|0;d=b+92|0;do{c[(b&p)>>2]=0;b=b+4|0}while((b|0)<(d|0));b=0;do{ng(10840,16608+(b*36|0)|0);b=b+1|0}while((b|0)!=59);b=0;do{ng(10840,19480+(b*36|0)|0);b=b+1|0}while((b|0)!=8);ng(10840,19256);ng(10840,19292|0);ng(10840,19328|0);if(!(c[2247]|0)){a=c[2214]|0;if(!a){c[(k&p)>>2]=16440;mf(18,k)|0;a=c[2214]|0}a=lc[a&127](c[2213]|0)|0;if(!a)l=28}else l=28;if((l|0)==28){c[2247]=1;a=Tc(10)|0;if(!a)a=7;else{Wc(a);Mc(9584,1)|0;Mc(9672|0,0)|0;Mc(9760|0,0)|0;Mc(9848|0,0)|0;a=c[2237]|0;b=c[2238]|0;d=c[2239]|0;if(c[3153]|0){k=b&-8;c[3154]=k;c[3161]=d;c[3155]=d;if((d|0)<=90){c[3156]=((d|0)/10|0)+1;c[3157]=a;c[3160]=0;c[3162]=0;if(d)l=33}else{c[3156]=10;c[3157]=a;c[3160]=0;c[3162]=0;l=33}if((l|0)==33){f=b>>>3;g=d<<3;h=ca(f<<3,d+-1|0)|0;b=a;e=0;while(1){d=d+-1|0;c[(b&p)>>2]=e;if(!d)break;else{e=b;b=b+k|0}}b=a+(ca(g,f)|0)|0;c[3160]=a+h;a=b}c[3158]=a}c[2243]=1;a=0}}c[2244]=0;b=c[2248]|0}else{b=a;a=0}c[2248]=b+-1;if((b|0)<2)c[2249]=0}else a=0;while(0);i=m;return a|0}function Mc(a,b){a=a|0;b=b|0;var d=0;d=Lc()|0;do if(!d){og(a);d=c[2254]|0;if((b|0)!=0|(d|0)==0){c[(a&p)+12>>2]=d;c[2254]=a;d=0;break}else{c[(a&p)+12>>2]=c[(d&p)+12>>2];c[((c[2254]|0)&p)+12>>2]=a;d=0;break}}while(0);return d|0}function Nc(a){a=a|0;og(a);return 0}function Oc(a){a=a|0;return 0}function Pc(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;do if(!(Lc()|0)){e=9032|0;d=c[(e&p)>>2]|0;e=c[(e&p)+4>>2]|0;if((b|0)>=0)if((b|0)>0|(b|0)==0&a>>>0>0){c[2260]=9;c[2261]=0;f=9032|0;c[(f&p)>>2]=a;c[(f&p)+4>>2]=b;c[2265]=(0>(b|0)|0==(b|0)&(c[2166]|0)>>>0>=a>>>0)&1;break}else{c[2265]=0;c[2258]=0;c[2259]=0;c[2260]=0;c[2261]=0;break}}else{e=-1;d=-1}while(0);G=e;return d|0}function Qc(){var a=0;a=c[2166]|0;G=((a|0)<0)<<31>>31;return a|0}function Rc(a){a=a|0;var b=0;b=(a|0)<0;Pc(b?0:a,b?0:((a|0)<0)<<31>>31)|0;return}function Sc(a){a=a|0;var b=0;b=c[2176]|0;if(a)c[2176]=c[2166];G=((b|0)<0)<<31>>31;return b|0}function Tc(a){a=a|0;if((Lc()|0)!=0|(a|0)<1)a=0;else a=qg(a,((a|0)<0)<<31>>31)|0;return a|0}function Uc(a,b){a=a|0;b=b|0;if(!(Lc()|0))a=qg(a,b)|0;else a=0;return a|0}function Vc(a){a=a|0;a=lc[c[8792>>2]&127](a)|0;G=((a|0)<0)<<31>>31;return a|0}function Wc(a){a=a|0;var b=0;do if(a)if(!(c[2186]|0)){cc[c[8784>>2]&31](a);break}else{b=lc[c[8792>>2]&127](a)|0;c[2166]=(c[2166]|0)-b;c[2175]=(c[2175]|0)+-1;cc[c[8784>>2]&31](a);break}while(0);return}function Xc(a,b){a=a|0;b=b|0;var c=0;if(!(Lc()|0)){c=(b|0)<0;b=rg(a,c?0:b,c?0:((b|0)<0)<<31>>31)|0}else b=0;return b|0}function Yc(a,b,c){a=a|0;b=b|0;c=c|0;if(!(Lc()|0))b=rg(a,b,c)|0;else b=0;return b|0}function Zc(b,d){b=b|0;d=d|0;var e=0,f=0,g=0;g=i;i=i+112|0;if((i|0)>=(j|0))fa();f=g+28|0;e=g;if(!(Lc()|0)){c[(e&p)+4>>2]=f;c[(e&p)+8>>2]=f;c[(e&p)>>2]=0;c[(e&p)+12>>2]=0;c[(e&p)+16>>2]=70;c[(e&p)+20>>2]=1e9;a[(e&n)+25>>0]=0;a[(e&n)+24>>0]=2;sg(e,0,b,d);e=tg(e)|0}else e=0;i=g;return e|0}function _c(a,b){a=a|0;b=b|0;var d=0,e=0;e=i;i=i+16|0;if((i|0)>=(j|0))fa();d=e;if(!(Lc()|0)){c[(d&p)>>2]=b;d=Zc(a,d)|0}else d=0;i=e;return d|0}function $c(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0;h=i;i=i+32|0;if((i|0)>=(j|0))fa();g=h;if((b|0)>=1){c[(g&p)+4>>2]=d;c[(g&p)+8>>2]=d;c[(g&p)>>2]=0;c[(g&p)+12>>2]=0;c[(g&p)+16>>2]=b;c[(g&p)+20>>2]=0;a[(g&n)+25>>0]=0;a[(g&n)+24>>0]=0;sg(g,0,e,f);d=tg(g)|0}i=h;return d|0}function ad(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0;f=i;i=i+16|0;if((i|0)>=(j|0))fa();g=f;c[(g&p)>>2]=e;a=$c(a,b,d,g)|0;i=f;return a|0}function bd(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0;k=i;i=i+256|0;if((i|0)>=(j|0))fa();f=k+16|0;h=k+44|0;g=k;if(c[2250]|0){c[(g&p)>>2]=e;c[(f&p)+4>>2]=h;c[(f&p)+8>>2]=h;c[(f&p)>>2]=0;c[(f&p)+12>>2]=0;c[(f&p)+16>>2]=210;c[(f&p)+20>>2]=0;a[(f&n)+25>>0]=0;a[(f&n)+24>>0]=0;sg(f,0,d,g);e=c[2250]|0;g=c[2251]|0;f=tg(f)|0;mc[e&63](g,b,f)}i=k;return}function cd(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0;h=i;i=i+256|0;if((i|0)>=(j|0))fa();g=h;do if(!(Lc()|0)){if((b|0)<1|(e|0)==0){a[9064]=0;break}if(!(a[9064]|0)){a[9066]=0;a[9065]=0;f=(Lc()|0)==0;f=f?c[2254]|0:0;ac[c[(f&p)+56>>2]&63](f,256,g)|0;f=0;do{a[(f&n)+9067>>0]=f;f=f+1|0}while((f|0)!=256);f=0;do{k=9067+f|0;m=(d[(g+f&n)>>0]|0)+(d[(k&n)>>0]|0)+(d[9066]|0)|0;a[9066]=m;m=9067+(m&255)|0;l=a[(m&n)>>0]|0;a[(m&n)>>0]=a[(k&n)>>0]|0;a[(k&n)>>0]=l;f=f+1|0}while((f|0)!=256);a[9064]=1}while(1){k=(a[9065]|0)+1<<24>>24;a[9065]=k;k=9067+(k&255)|0;g=a[(k&n)>>0]|0;f=g&255;l=(d[9066]|0)+f|0;a[9066]=l;a[(k&n)>>0]=a[(l&255&n)+9067>>0]|0;a[((d[9066]|0)&n)+9067>>0]=g;a[(e&n)>>0]=a[((d[((d[9065]|0)&n)+9067>>0]|0)+f&255&n)+9067>>0]|0;b=b+-1|0;if(!b)break;else e=e+1|0}}while(0);i=h;return}function dd(b,c){b=b|0;c=c|0;var e=0;if(b)if(!c)c=1;else{e=a[(b&n)>>0]|0;a:do if(!(e<<24>>24))e=0;else while(1){if((a[(e&255&n)+9328>>0]|0)!=(a[((d[(c&n)>>0]|0)&n)+9328>>0]|0))break a;b=b+1|0;c=c+1|0;e=a[(b&n)>>0]|0;if(!(e<<24>>24)){e=0;break}}while(0);c=(d[(e&255&n)+9328>>0]|0)-(d[((d[(c&n)>>0]|0)&n)+9328>>0]|0)|0}else c=((c|0)!=0)<<31>>31;return c|0}function ed(a){a=a|0;c[2241]=a;return 0}function fd(d,e,f,g){d=d|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,q=0,r=0;r=i;i=i+16|0;if((i|0)>=(j|0))fa();q=r;a:do if((f|0)==(d|0)){ug(f,1,10016,q);h=0}else{h=qg(48,0)|0;if(!h){c[(d&p)+52>>2]=7;h=c[(d&p)+236>>2]|0;if(!h){h=0;break}e=h+8|0;if(!(b[(e&o)>>1]&9312)){b[(e&o)>>1]=1;h=0;break}else{vg(h);h=0;break}}l=h+0|0;k=l+48|0;do{a[(l&n)>>0]=0;l=l+1|0}while((l|0)<(k|0));m=h+24|0;c[(m&p)>>2]=wg(d,f,g)|0;k=wg(d,d,e)|0;l=h+4|0;c[(l&p)>>2]=k;c[(h&p)>>2]=d;c[(h&p)+20>>2]=f;c[(h&p)+16>>2]=1;c[(h&p)+40>>2]=0;e=c[(m&p)>>2]|0;do if(!((e|0)==0|(k|0)==0)?(xg(k,c[((c[(e&p)+4>>2]|0)&p)+32>>2]|0,-1,0)|0)!=7:0)if(!(a[((c[(l&p)>>2]|0)&n)+8>>0]|0)){e=(c[(m&p)>>2]|0)+16|0;c[(e&p)>>2]=(c[(e&p)>>2]|0)+1;break a}else{ug(d,1,47416,q);break}while(0);Wc(h);h=0}while(0);i=r;return h|0}function gd(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,o=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0;F=i;i=i+32|0;if((i|0)>=(j|0))fa();B=F;r=F+16|0;u=F+12|0;y=F+8|0;D=b+24|0;g=c[(D&p)>>2]|0;h=c[(g&p)+4>>2]|0;c[(h&p)+4>>2]=c[(g&p)>>2];E=b+28|0;f=c[(E&p)>>2]|0;if(f>>>0<7?(30>>>(f&127)&1)==0:0){x=c[(h&p)>>2]|0;C=b+4|0;f=c[(C&p)>>2]|0;A=c[(c[(f&p)+4>>2]&p)>>2]|0;if((c[(b&p)>>2]|0)!=0?(a[(h&n)+20>>0]|0)==2:0){z=0;g=5}else v=5;do if((v|0)==5){h=b+12|0;if(!(c[(h&p)>>2]|0)){g=yg(f,2)|0;if(g){z=0;break}c[(h&p)>>2]=1;z=c[(C&p)>>2]|0;g=c[(z&p)+4>>2]|0;c[(g&p)+4>>2]=c[(z&p)>>2];g=c[((c[(g&p)+12>>2]|0)&p)+56>>2]|0;c[(b&p)+8>>2]=d[(g&n)+41>>0]<<16|d[(g&n)+40>>0]<<24|d[(g&n)+42>>0]<<8|d[(g&n)+43>>0];g=c[(D&p)>>2]|0}if(!(a[(g&n)+8>>0]|0)){z=1;g=yg(g,0)|0}else{z=0;g=0}}while(0);l=c[((c[(D&p)>>2]|0)&p)+4>>2]|0;w=c[(l&p)+32>>2]|0;q=c[((c[(C&p)>>2]|0)&p)+4>>2]|0;t=c[(q&p)+32>>2]|0;q=(a[((c[(q&p)>>2]|0)&n)+5>>0]|0)==5;f=(w|0)==(t|0)|(g|0)==0&q^1?g:8;l=c[(l&p)+44>>2]|0;h=(e|0)<0;a:do if(e){g=b+16|0;m=c[(g&p)>>2]|0;o=0;do{if(!(m>>>0<=l>>>0&(f|0)==0))break a;if((m|0)!=((((c[2514]|0)>>>0)/((c[((c[((c[(D&p)>>2]|0)&p)+4>>2]|0)&p)+32>>2]|0)>>>0)|0)+1|0)){f=zg(x,m,r,2)|0;if(!f){k=c[(r&p)>>2]|0;f=Ag(b,m,c[(k&p)+4>>2]|0,0)|0;if(k)Bg(k)}}else f=0;m=(c[(g&p)>>2]|0)+1|0;c[(g&p)>>2]=m;o=o+1|0}while(h|(o|0)<(e|0))}while(0);if(!f){c[(b&p)+36>>2]=l;f=c[(b&p)+16>>2]|0;c[(b&p)+32>>2]=l+1-f;if(f>>>0<=l>>>0){f=b+40|0;if(!(c[(f&p)>>2]|0)){C=(c[(c[((c[(D&p)>>2]|0)&p)+4>>2]&p)>>2]|0)+88|0;c[(b&p)+44>>2]=c[(C&p)>>2];c[(C&p)>>2]=b;c[(f&p)>>2]=1;f=0}else f=0}else v=22}else if((f|0)==101)v=22;do if((v|0)==22){if(!l){g=c[(C&p)>>2]|0;f=c[(g&p)+4>>2]|0;c[(f&p)+4>>2]=c[(g&p)>>2];c[(f&p)+44>>2]=0;f=Cg(f)|0;if((f|0)==0|(f|0)==101)l=1;else break}f=Dg(c[(C&p)>>2]|0,1,(c[(b&p)+8>>2]|0)+1|0)|0;if(!f){g=c[(b&p)>>2]|0;if(g)Eg(g);if(q?(s=Fg(c[(C&p)>>2]|0,2)|0,(s|0)!=0):0){f=s;break}if((w|0)<(t|0)){g=(t|0)/(w|0)|0;g=(l+-1+g|0)/(g|0)|0;h=c[2514]|0;k=c[((c[((c[(C&p)>>2]|0)&p)+4>>2]|0)&p)+32>>2]|0;g=(((g|0)==(((h>>>0)/(k>>>0)|0)+1|0))<<31>>31)+g|0;b=((w|0)<0)<<31>>31;s=sw(l|0,((l|0)<0)<<31>>31|0,w|0,b|0)|0;q=G;e=c[(A&p)+60>>2]|0;o=c[(A&p)+24>>2]|0;b:do if(g>>>0<=o>>>0){f=0;while(1){if((g|0)!=(((h>>>0)/(k>>>0)|0)+1|0)){f=zg(A,g,u,0)|0;if(f)break b;h=c[(u&p)>>2]|0;f=Gg(h)|0;if(h)Bg(h)}g=g+1|0;h=(f|0)==0;if(g>>>0>o>>>0|h^1)break;k=c[((c[((c[(C&p)>>2]|0)&p)+4>>2]|0)&p)+32>>2]|0;h=c[2514]|0}if(h)v=38}else v=38;while(0);if((v|0)==38)f=Hg(A,0,1)|0;h=c[2514]|0;l=h+t|0;m=((l|0)<0)<<31>>31;k=(m|0)<(q|0)|(m|0)==(q|0)&l>>>0>>0;l=k?l:s;m=k?m:q;h=h+w|0;k=((h|0)<0)<<31>>31;g=(f|0)==0;if(g&((k|0)<(m|0)|(k|0)==(m|0)&h>>>0>>0))do{c[(y&p)>>2]=0;f=qw(h|0,k|0,w|0,b|0)|0;f=jw(f|0,G|0,1,0)|0;f=zg(x,f,y,0)|0;g=c[(y&p)>>2]|0;if(!f)f=tc[c[((c[(e&p)>>2]|0)&p)+12>>2]&31](e,c[(g&p)+4>>2]|0,w,h,k)|0;if(g)Bg(g);h=jw(h|0,k|0,w|0,b|0)|0;k=G;g=(f|0)==0}while(g&((k|0)<(m|0)|(k|0)==(m|0)&h>>>0>>0));if(!g)break;f=rc[c[((c[(e&p)>>2]|0)&p)+24>>2]&127](e,B)|0;y=c[(B&p)+4>>2]|0;if((f|0)==0&((y|0)>(q|0)|((y|0)==(q|0)?(c[(B&p)>>2]|0)>>>0>s>>>0:0)))f=ac[c[((c[(e&p)>>2]|0)&p)+16>>2]&63](e,s,q)|0;if(f)break;f=Ig(A,0)|0}else{c[(A&p)+24>>2]=ca((w|0)/(t|0)|0,l)|0;f=Hg(A,0,0)|0}if(!f){f=Jg(c[(C&p)>>2]|0,0)|0;f=(f|0)==0?101:f}}}while(0);if(z){Kg(c[(D&p)>>2]|0,0)|0;Jg(c[(D&p)>>2]|0,0)|0}f=(f|0)==3082?7:f;c[(E&p)>>2]=f}i=F;return f|0}function hd(a){a=a|0;var d=0,e=0,f=0,g=0,h=0;if(!a)d=0;else{h=c[(a&p)+20>>2]|0;e=c[(a&p)+24>>2]|0;d=c[(e&p)+4>>2]|0;c[(d&p)+4>>2]=c[(e&p)>>2];if(c[(a&p)>>2]|0){e=e+16|0;c[(e&p)>>2]=(c[(e&p)>>2]|0)+-1}if(c[(a&p)+40>>2]|0){d=(c[(d&p)>>2]|0)+88|0;while(1){e=c[(d&p)>>2]|0;if((e|0)==(a|0))break;else d=e+44|0}c[(d&p)>>2]=c[(a&p)+44>>2]}Lg(c[(a&p)+4>>2]|0,0,0);d=c[(a&p)+28>>2]|0;d=(d|0)==101?0:d;e=c[(a&p)>>2]|0;if(e){c[(e&p)+52>>2]=d;f=c[(e&p)+236>>2]|0;do if(f){g=f+8|0;if(!(b[(g&o)>>1]&9312)){b[(g&o)>>1]=1;break}else{vg(f);e=c[(a&p)>>2]|0;break}}while(0);Mg(e);if(c[(a&p)>>2]|0)Wc(a)}Mg(h)}return d|0}function id(a){a=a|0;return c[(a&p)+32>>2]|0}function jd(a){a=a|0;return c[(a&p)+36>>2]|0}function kd(a){a=a|0;if((a|0)!=0?(b[(a&o)+88>>1]&256)!=0:0)a=c[(a&p)+168>>2]|0;else a=0;return a|0}function ld(a){a=a|0;if(!a)a=1;else a=(b[(a&o)+88>>1]&8)!=0;return a&1|0}function md(a){a=a|0;var b=0,d=0,e=0;e=i;i=i+16|0;if((i|0)>=(j|0))fa();d=e;do if(a){b=c[(a&p)>>2]|0;if(!b){bd(21,47360,d);c[(d&p)>>2]=68910;c[(d&p)+4>>2]=10788;bd(21,13648,d);b=21;break}else{a=Og(b,Ng(a)|0)|0;Mg(b);b=a;break}}else b=0;while(0);i=e;return b|0}function nd(b){b=b|0;var d=0,e=0;if(!b)b=0;else{d=Pg(b)|0;c[(b&p)+76>>2]=-1;c[(b&p)+80>>2]=0;a[(b&n)+86>>0]=2;c[(b&p)+40>>2]=-1108210269;c[(b&p)+92>>2]=0;c[(b&p)+72>>2]=1;a[(b&n)+87>>0]=-1;c[(b&p)+104>>2]=0;e=b+144|0;c[(e&p)>>2]=0;c[(e&p)+4>>2]=0;b=Og(c[(b&p)>>2]|0,d)|0}return b|0}function od(a){a=a|0;var d=0,e=0,f=0,g=0,h=0,i=0;h=a+68|0;e=b[(h&o)>>1]|0;if(e<<16>>16>0){i=a+60|0;d=c[(i&p)>>2]|0;g=0;do{f=d+(g*40|0)|0;if(!((b[(d+(g*40|0)&o)+8>>1]&9312)==0?(c[(d+(g*40|0)&p)+24>>2]|0)==0:0)){Qg(f);d=c[(i&p)>>2]|0;e=b[(h&o)>>1]|0}b[(d+(g*40|0)&o)+8>>1]=1;g=g+1|0}while((g|0)<(e<<16>>16|0))}d=a+88|0;e=b[(d&o)>>1]|0;if((e&256)!=0?(c[(a&p)+188>>2]|0)!=0:0)b[(d&o)>>1]=e|8;return 0}function pd(a){a=a|0;var d=0;d=a+8|0;if(b[(d&o)>>1]&18){Rg(a)|0;b[(d&o)>>1]=e[(d&o)>>1]|0|16;if(!(c[(a&p)+12>>2]|0))d=0;else d=c[(a&p)+16>>2]|0}else d=Sg(a,1)|0;return d|0}function qd(a){a=a|0;return Sg(a,1)|0}function rd(a){a=a|0;return Tg(a,1)|0}function sd(a){a=a|0;return Tg(a,2)|0}function td(a){a=a|0;return +(+Ug(a))}function ud(a){a=a|0;a=Vg(a)|0;return a|0}function vd(a){a=a|0;a=Vg(a)|0;return a|0}function wd(a){a=a|0;return Sg(a,2)|0}function xd(a){a=a|0;return Sg(a,3)|0}function yd(a){a=a|0;return Sg(a,2)|0}function zd(a){a=a|0;return d[((e[(a&o)+8>>1]|0)&31&n)+10064>>0]|0|0}function Ad(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;Wg(a,b,c,0,d);return}function Bd(b,d,e,f,g){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;if(f>>>0>0|(f|0)==0&e>>>0>2147483647){e=g;if(!((e|0)==0|(e|0)==-1))cc[g&31](d);if(b){c[(b&p)+20>>2]=18;a[(b&n)+25>>0]=1;Xg(c[(b&p)>>2]|0,10096,-1,1,0)|0}}else Wg(b,d,e,0,g);return}function Cd(a,b){a=a|0;b=+b;Yg(c[(a&p)>>2]|0,b);return}function Dd(b,d,e){b=b|0;d=d|0;e=e|0;c[(b&p)+20>>2]=1;a[(b&n)+25>>0]=1;Xg(c[(b&p)>>2]|0,d,e,1,-1)|0;return}function Ed(b,d,e){b=b|0;d=d|0;e=e|0;c[(b&p)+20>>2]=1;a[(b&n)+25>>0]=1;Xg(c[(b&p)>>2]|0,d,e,2,-1)|0;return}function Fd(a,d){a=a|0;d=d|0;var e=0,f=0;a=c[(a&p)>>2]|0;e=((d|0)<0)<<31>>31;f=a+8|0;if(!(b[(f&o)>>1]&9312)){c[(a&p)>>2]=d;c[(a&p)+4>>2]=e;b[(f&o)>>1]=4}else Zg(a,d,e);return}function Gd(a,d,e){a=a|0;d=d|0;e=e|0;var f=0;a=c[(a&p)>>2]|0;f=a+8|0;if(!(b[(f&o)>>1]&9312)){c[(a&p)>>2]=d;c[(a&p)+4>>2]=e;b[(f&o)>>1]=4}else Zg(a,d,e);return}function Hd(a){a=a|0;var d=0;a=c[(a&p)>>2]|0;d=a+8|0;if(!(b[(d&o)>>1]&9312))b[(d&o)>>1]=1;else vg(a);return}function Id(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;Wg(a,b,c,1,d);return}function Jd(b,d,e,f,g,h){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;if(f>>>0>0|(f|0)==0&e>>>0>2147483647){e=g;if(!((e|0)==0|(e|0)==-1))cc[g&31](d);if(b){c[(b&p)+20>>2]=18;a[(b&n)+25>>0]=1;Xg(c[(b&p)>>2]|0,10096,-1,1,0)|0}}else Wg(b,d,e,h<<24>>24==4?2:h,g);return}function Kd(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;Wg(a,b,c,2,d);return}function Ld(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;Wg(a,b,c,3,d);return}function Md(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;Wg(a,b,c,2,d);return}function Nd(a,b){a=a|0;b=b|0;_g(c[(a&p)>>2]|0,b)|0;return}function Od(a,b){a=a|0;b=b|0;$g(c[(a&p)>>2]|0,b);return}function Pd(d,e){d=d|0;e=e|0;var f=0;c[(d&p)+20>>2]=e;a[(d&n)+25>>0]=1;f=c[(d&p)>>2]|0;if(b[(f&o)+8>>1]&1){if((e|0)!=516){d=e&255;if(d>>>0>26|(d|0)==2)d=16328;else d=c[(d<<2&p)+15488>>2]|0}else d=16344;Xg(f,d,-1,1,0)|0}return}function Qd(b){b=b|0;c[(b&p)+20>>2]=18;a[(b&n)+25>>0]=1;Xg(c[(b&p)>>2]|0,10096,-1,1,0)|0;return}function Rd(d){d=d|0;var e=0,f=0;e=c[(d&p)>>2]|0;f=e+8|0;if(!(b[(f&o)>>1]&9312))b[(f&o)>>1]=1;else{vg(e);e=c[(d&p)>>2]|0}c[(d&p)+20>>2]=7;a[(d&n)+25>>0]=1;a[((c[(e&p)+32>>2]|0)&n)+65>>0]=1;return}function Sd(f){f=f|0;var g=0,l=0,m=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,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;_=i;i=i+224|0;if((i|0)>=(j|0))fa();V=_+8|0;U=_;if(!(ah(f)|0)){Z=c[(f&p)>>2]|0;N=f+88|0;b[(N&o)>>1]=b[(N&o)>>1]&-513;R=f+40|0;S=f+76|0;T=f+128|0;Y=f+80|0;D=f+168|0;E=f+8|0;F=f+20|0;H=f+32|0;I=f+4|0;J=f+84|0;X=f+44|0;K=(f|0)==0;L=f+52|0;M=f+48|0;C=0;while(1){if((c[(R&p)>>2]|0)!=-1108210269)nd(f)|0;B=c[(f&p)>>2]|0;if(a[(B&n)+65>>0]|0){W=7;break}l=c[(S&p)>>2]|0;do if((l|0)<1){if(b[(N&o)>>1]&8){c[(Y&p)>>2]=17;l=1;break}if((l|0)<0){l=B+148|0;if(!(c[(l&p)>>2]|0))c[(B&p)+240>>2]=0;if((c[(B&p)+184>>2]|0)!=0?(a[(B&n)+145>>0]|0)==0:0)bh(c[(B&p)>>2]|0,T)|0;c[(l&p)>>2]=(c[(l&p)>>2]|0)+1;l=b[(N&o)>>1]|0;if(!(l&64)){l=B+156|0;c[(l&p)>>2]=(c[(l&p)>>2]|0)+1;l=b[(N&o)>>1]|0}if(l&128){A=B+152|0;c[(A&p)>>2]=(c[(A&p)>>2]|0)+1}c[(S&p)>>2]=0;W=22}else W=22}else W=22;while(0);if((W|0)==22){W=0;do if(!(b[(N&o)>>1]&3)){A=B+160|0;c[(A&p)>>2]=(c[(A&p)>>2]|0)+1;l=gh(f)|0;c[(A&p)>>2]=(c[(A&p)>>2]|0)+-1;if((l|0)==100)l=100;else W=101}else{t=c[(f&p)>>2]|0;z=c[(E&p)>>2]|0;y=z+40|0;ch(y,8);c[(F&p)>>2]=0;if((c[(Y&p)>>2]|0)==7){a[(t&n)+65>>0]=1;l=1;W=101;break}r=c[(H&p)>>2]|0;u=b[(N&o)>>1]&3;if(u<<16>>16==1){s=c[(E&p)>>2]|0;v=s+360|0;if(b[(s&o)+368>>1]&16){w=(c[(s&p)+372>>2]|0)>>>2;m=c[(s&p)+376>>2]|0;if(!w){x=m;s=r;g=0}else{l=0;s=r;do{s=(c[((c[(m+(l<<2)&p)>>2]|0)&p)+4>>2]|0)+s|0;l=l+1|0}while((l|0)<(w|0));x=m;g=w}}else{x=0;s=r;g=0}}else{x=0;s=r;g=0;v=0}r=u<<16>>16==2;m=c[(S&p)>>2]|0;while(1){l=m+1|0;if((m|0)>=(s|0)){W=33;break}if(!r)break;if((a[((c[(I&p)>>2]|0)+(m*20|0)&n)>>0]|0)==-99)break;else m=l}if((W|0)==33){c[(S&p)>>2]=l;c[(Y&p)>>2]=0;l=101;W=101;break}c[(S&p)>>2]=l;if(c[(t&p)+240>>2]|0){c[(Y&p)>>2]=9;c[(V&p)>>2]=15832;dh(X,t,10344,V);l=1;W=101;break}s=c[(H&p)>>2]|0;if((m|0)<(s|0)){l=m;A=(c[(I&p)>>2]|0)+(m*20|0)|0}else{m=m-s|0;s=c[(x&p)>>2]|0;r=c[(s&p)+4>>2]|0;if((m|0)<(r|0))r=m;else{s=m;l=0;while(1){m=s-r|0;l=l+1|0;s=c[(x+(l<<2)&p)>>2]|0;r=c[(s&p)+4>>2]|0;if((m|0)<(r|0)){r=m;break}else s=m}}l=r;A=(c[(s&p)>>2]|0)+(r*20|0)|0}if((b[(N&o)>>1]&3)==1){b[(z&o)+48>>1]=4;r=y;c[(r&p)>>2]=l;c[(r&p)+4>>2]=((l|0)<0)<<31>>31;b[(z&o)+88>>1]=2562;r=c[(d[(A&n)>>0]<<2&p)+44856>>2]|0;c[(z&p)+96>>2]=r;s=r;while(1)if(!(a[(s&n)>>0]|0))break;else s=s+1|0;w=z+80|0;c[(z&p)+92>>2]=s-r&1073741823;a[(z&n)+90>>0]=1;if((a[(A&n)+1>>0]|0)==-18){l=(g<<2)+4|0;a:do if(!g)s=0;else{r=c[(A&p)+16>>2]|0;m=0;while(1){s=m+1|0;if((c[(x+(m<<2)&p)>>2]|0)==(r|0)){s=m;break a}if((s|0)<(g|0))m=s;else break}}while(0);if((s|0)==(g|0)?(eh(v,l,(g|0)!=0&1)|0)==0:0){c[((c[(v&p)+16>>2]|0)+(g<<2)&p)>>2]=c[(A&p)+16>>2];z=v+8|0;b[(z&o)>>1]=e[(z&o)>>1]|16;c[(v&p)+12>>2]=l;z=w}else z=w}else z=w}b[(z&o)+48>>1]=4;y=c[(A&p)+4>>2]|0;x=z+40|0;c[(x&p)>>2]=y;c[(x&p)+4>>2]=((y|0)<0)<<31>>31;b[(z&o)+88>>1]=4;x=c[(A&p)+8>>2]|0;y=z+80|0;c[(y&p)>>2]=x;c[(y&p)+4>>2]=((x|0)<0)<<31>>31;b[(z&o)+128>>1]=4;y=c[(A&p)+12>>2]|0;x=z+120|0;c[(x&p)>>2]=y;c[(x&p)+4>>2]=((y|0)<0)<<31>>31;x=z+160|0;if(!(fh(x,32)|0)){b[(z&o)+168>>1]=514;y=z+176|0;g=c[(y&p)>>2]|0;b:do switch(a[(A&n)+1>>0]|0){case -6:{t=c[(A&p)+16>>2]|0;l=t+6|0;c[(V&p)>>2]=e[(l&o)>>1];ad(32,g,44768,V)|0;if(!g)s=0;else{s=g;while(1)if(!(a[(s&n)>>0]|0))break;else s=s+1|0;s=s-g&1073741823}c:do if(b[(l&o)>>1]|0){u=t+16|0;v=0;while(1){r=c[(t+(v<<2)&p)+20>>2]|0;if(r){r=c[(r&p)>>2]|0;if(!r){m=0;r=0}else W=61}else{r=44776;W=61}do if((W|0)==61){W=0;w=r;while(1)if(!(a[(w&n)>>0]|0))break;else w=w+1|0;m=w-r&1073741823;if((m|0)!=6)break;w=(Zv(r,11152,6)|0)==0;m=w?1:6;r=w?44784:r}while(0);if((m+s|0)>26)break;w=s+1|0;a[(g+s&n)>>0]=44;if(a[((c[(u&p)>>2]|0)+v&n)>>0]|0){a[(g+w&n)>>0]=45;w=s+2|0}kw(g+w|0,r|0,m+1|0)|0;s=w+m|0;v=v+1|0;if((v|0)>=(e[(l&o)>>1]|0))break c}l=g+s|0;a[(l&n)>>0]=44;a[(l&n)+1>>0]=46;a[(l&n)+2>>0]=46;a[(l&n)+3>>0]=46}while(0);a[(g+s&n)>>0]=41;a[(g+s&n)+1>>0]=0;r=g;break}case -15:{ad(32,g,44832,V)|0;r=g;break}case -18:{ad(32,g,44848,V)|0;r=g;break}case -4:{c[(V&p)>>2]=c[(c[(A&p)+16>>2]&p)>>2];ad(32,g,44792,V)|0;r=g;break}case -5:{l=c[(A&p)+16>>2]|0;r=b[(l&o)>>1]|0;c[(V&p)>>2]=c[(l&p)+24>>2];c[(V&p)+4>>2]=r;ad(32,g,44800,V)|0;r=g;break}case -13:{m=c[(A&p)+16>>2]|0;l=c[(m&p)+4>>2]|0;r=V;c[(r&p)>>2]=c[(m&p)>>2];c[(r&p)+4>>2]=l;ad(32,g,19920,V)|0;r=g;break}case -14:{c[(V&p)>>2]=c[(A&p)+16>>2];ad(32,g,44808,V)|0;r=g;break}case -12:{h[(k&q)>>3]=+h[(c[(A&p)+16>>2]&q)>>3];c[(V&p)>>2]=c[(k&p)>>2];c[(V&p)+4>>2]=c[(k&p)+4>>2];ad(32,g,19912,V)|0;r=g;break}case -8:{s=c[(A&p)+16>>2]|0;r=e[(s&o)+8>>1]|0;if(r&2){r=c[(s&p)+16>>2]|0;break b}if(r&4){m=s;l=c[(m&p)+4>>2]|0;r=V;c[(r&p)>>2]=c[(m&p)>>2];c[(r&p)+4>>2]=l;ad(32,g,19920,V)|0;r=g;break b}if(r&8){h[(k&q)>>3]=+h[(s&q)>>3];c[(V&p)>>2]=c[(k&p)>>2];c[(V&p)+4>>2]=c[(k&p)+4>>2];ad(32,g,19912,V)|0;r=g;break b}if(!(r&1))r=44816;else{ad(32,g,20304,V)|0;r=g}break}case -19:{a[(g&n)>>0]=0;r=g;break}case -10:{c[(V&p)>>2]=c[((c[(A&p)+16>>2]|0)&p)+8>>2];ad(32,g,44824,V)|0;r=g;break}default:{s=c[(A&p)+16>>2]|0;if(!s){a[(g&n)>>0]=0;r=g}else r=s}}while(0);if((r|0)==(c[(y&p)>>2]|0)){if(!r)l=0;else{s=r;while(1)if(!(a[(s&n)>>0]|0))break;else s=s+1|0;l=s-r&1073741823}c[(z&p)+172>>2]=l;a[(z&n)+170>>0]=1}else Xg(x,r,-1,1,0)|0;l=b[(N&o)>>1]|0;if((l&3)==1){if(fh(z+200|0,4)|0){l=1;W=101;break}b[(z&o)+208>>1]=514;c[(z&p)+212>>2]=2;l=c[(z&p)+216>>2]|0;c[(V&p)>>2]=d[(A&n)+3>>0];ad(3,l,44760,V)|0;a[(z&n)+210>>0]=1;b[(z&o)+248>>1]=1;l=b[(N&o)>>1]|0}b[(J&o)>>1]=12-((l&3)<<2);c[(F&p)>>2]=(c[(E&p)>>2]|0)+40;c[(Y&p)>>2]=0;l=100}else{l=1;W=101}}while(0);if((W|0)==101){W=0;g=B+184|0;if(((c[(g&p)>>2]|0)!=0?(a[(B&n)+145>>0]|0)==0:0)?(c[(D&p)>>2]|0)!=0:0){bh(c[(B&p)>>2]|0,U)|0;g=c[(g&p)>>2]|0;y=c[(B&p)+188>>2]|0;z=c[(D&p)>>2]|0;m=U;A=T;A=dw(c[(m&p)>>2]|0,c[(m&p)+4>>2]|0,c[(A&p)>>2]|0,c[(A&p)+4>>2]|0)|0;A=sw(A|0,G|0,1e6,0)|0;qc[g&15](y,z,A,G)}if((l|0)==101){t=B+20|0;s=c[(t&p)>>2]|0;if((s|0)>0){u=B+16|0;v=B+216|0;w=B+220|0;g=0;l=0;do{r=c[(u&p)>>2]|0;m=c[(r+(g<<4)&p)+4>>2]|0;if(((m|0)!=0?(O=c[(m&p)+4>>2]|0,c[(O&p)+4>>2]=c[(m&p)>>2],O=c[((c[(O&p)>>2]|0)&p)+208>>2]|0,(O|0)!=0):0)?(Q=O+12|0,P=c[(Q&p)>>2]|0,c[(Q&p)>>2]=0,Q=c[(v&p)>>2]|0,(Q|0)!=0&(P|0)>0&(l|0)==0):0){l=pc[Q&31](c[(w&p)>>2]|0,B,c[(r+(g<<4)&p)>>2]|0,P)|0;s=c[(t&p)>>2]|0}g=g+1|0}while((g|0)<(s|0))}else l=0;c[(Y&p)>>2]=l;l=(l|0)==0?101:1}}c[(B&p)+52>>2]=l;if((Og(c[(f&p)>>2]|0,c[(Y&p)>>2]|0)|0)==7)c[(Y&p)>>2]=7}if((b[(N&o)>>1]&256)!=0&(l|0)!=100&(l|0)!=101)l=hh(f)|0;g=c[(B&p)+56>>2]&l;if((g|0)!=17)break;s=C+1|0;if((C|0)>=50){g=17;break}m=c[(S&p)>>2]|0;if(!K?(b[(N&o)>>1]&256)!=0:0)l=c[(D&p)>>2]|0;else l=0;r=c[(f&p)>>2]|0;g=ih(r,l,-1,0,f,U,0)|0;if((g|0)==7){g=r;W=124;break}else if(g){W=127;break}C=c[(U&p)>>2]|0;kw(V|0,C|0,208)|0;kw(C|0,f|0,208)|0;kw(f|0,V|0,208)|0;A=C+52|0;B=c[(A&p)>>2]|0;c[(A&p)>>2]=c[(L&p)>>2];c[(L&p)>>2]=B;B=C+48|0;A=c[(B&p)>>2]|0;c[(B&p)>>2]=c[(M&p)>>2];c[(M&p)>>2]=A;A=C+168|0;B=c[(A&p)>>2]|0;c[(A&p)>>2]=c[(D&p)>>2];c[(D&p)>>2]=B;b[(N&o)>>1]=b[(N&o)>>1]&-257|b[(C&o)+88>>1]&256;jh(C,f);c[(C&p)+80>>2]=0;Ng(C)|0;nd(f)|0;if((m|0)<=-1){C=s;continue}b[(N&o)>>1]=b[(N&o)>>1]|512;C=s}if((W|0)==7){c[(Y&p)>>2]=7;g=7}else if((W|0)==124){a[(g&n)+65>>0]=1;g=7;W=127}do if((W|0)==127){l=Sg(c[(Z&p)+236>>2]|0,1)|0;mg(Z,c[(X&p)>>2]|0);if(!(a[(Z&n)+65>>0]|0)){c[(X&p)>>2]=kh(Z,l)|0;c[(Y&p)>>2]=g;break}else{c[(X&p)>>2]=0;c[(Y&p)>>2]=7;g=7;break}}while(0);g=Og(Z,g)|0}else{c[(V&p)>>2]=69408;c[(V&p)+4>>2]=10788;bd(21,13648,V);g=21}i=_;return g|0}function Td(a){a=a|0;return c[((c[(a&p)+4>>2]|0)&p)+4>>2]|0}function Ud(a){a=a|0;return c[((c[(a&p)>>2]|0)&p)+32>>2]|0}function Vd(a,d){a=a|0;d=d|0;var e=0;e=c[(a&p)+8>>2]|0;if(!(b[(e&o)+8>>1]&8192))e=lh(a,d)|0;else e=c[(e&p)+16>>2]|0;return e|0}function Wd(a,b){a=a|0;b=b|0;var d=0;d=c[((c[(a&p)+12>>2]|0)&p)+204>>2]|0;a:do if(!d)d=0;else{a=c[(a&p)+16>>2]|0;while(1){if((c[(d&p)>>2]|0)==(a|0)?(c[(d&p)+4>>2]|0)==(b|0):0)break;d=c[(d&p)+16>>2]|0;if(!d){d=0;break a}}d=c[(d&p)+8>>2]|0}while(0);return d|0}function Xd(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0;h=c[(b&p)+12>>2]|0;do if((d|0)<0)k=14;else{j=h+204|0;g=c[(j&p)>>2]|0;a:do if(g){i=c[(b&p)+16>>2]|0;while(1){if((c[(g&p)>>2]|0)==(i|0)?(c[(g&p)+4>>2]|0)==(d|0):0)break;g=c[(g&p)+16>>2]|0;if(!g){k=8;break a}}if(g){h=c[(g&p)+12>>2]|0;if(h)cc[h&31](c[(g&p)+8>>2]|0)}else k=8}else k=8;while(0);if((k|0)==8){g=mh(c[(h&p)>>2]|0,20,0)|0;if(!g){k=14;break}h=g+0|0;i=h+16|0;do{a[(h&n)>>0]=0;h=h+1|0}while((h|0)<(i|0));c[(g&p)>>2]=c[(b&p)+16>>2];c[(g&p)+4>>2]=d;c[(g&p)+16>>2]=c[(j&p)>>2];c[(j&p)>>2]=g;h=b+25|0;if(!(a[(h&n)>>0]|0)){c[(b&p)+20>>2]=0;a[(h&n)>>0]=1}}c[(g&p)+8>>2]=e;c[(g&p)+12>>2]=f}while(0);if((k|0)==14?(f|0)!=0:0)cc[f&31](e);return}function Yd(a){a=a|0;return c[((c[(a&p)+8>>2]|0)&p)+12>>2]|0}function Zd(a){a=a|0;if(!a)a=0;else a=e[(a&o)+84>>1]|0;return a|0}function _d(a){a=a|0;if((a|0)!=0?(c[(a&p)+20>>2]|0)!=0:0)a=e[(a&o)+84>>1]|0;else a=0;return a|0}function $d(a,b){a=a|0;b=b|0;var d=0;b=pd(nh(a,b)|0)|0;if(a){d=a+80|0;c[(d&p)>>2]=Og(c[(a&p)>>2]|0,c[(d&p)>>2]|0)|0}return b|0}function ae(a,b){a=a|0;b=b|0;var d=0;b=Tg(nh(a,b)|0,1)|0;if(a){d=a+80|0;c[(d&p)>>2]=Og(c[(a&p)>>2]|0,c[(d&p)>>2]|0)|0}return b|0}function be(a,b){a=a|0;b=b|0;var d=0;b=Tg(nh(a,b)|0,2)|0;if(a){d=a+80|0;c[(d&p)>>2]=Og(c[(a&p)>>2]|0,c[(d&p)>>2]|0)|0}return b|0}function ce(a,b){a=a|0;b=b|0;var d=0.0;d=+Ug(nh(a,b)|0);if(a){b=a+80|0;c[(b&p)>>2]=Og(c[(a&p)>>2]|0,c[(b&p)>>2]|0)|0}return +d}function de(a,b){a=a|0;b=b|0;var d=0;b=Vg(nh(a,b)|0)|0;if(a){d=a+80|0;c[(d&p)>>2]=Og(c[(a&p)>>2]|0,c[(d&p)>>2]|0)|0}return b|0}function ee(a,b){a=a|0;b=b|0;var d=0,e=0;b=Vg(nh(a,b)|0)|0;d=G;if(a){e=a+80|0;c[(e&p)>>2]=Og(c[(a&p)>>2]|0,c[(e&p)>>2]|0)|0}G=d;return b|0}function fe(a,b){a=a|0;b=b|0;var d=0;b=Sg(nh(a,b)|0,1)|0;if(a){d=a+80|0;c[(d&p)>>2]=Og(c[(a&p)>>2]|0,c[(d&p)>>2]|0)|0}return b|0}function ge(a,d){a=a|0;d=d|0;var f=0,g=0;d=nh(a,d)|0;f=d+8|0;g=e[(f&o)>>1]|0;if(g&2048)b[(f&o)>>1]=g&59391|4096;if(a){f=a+80|0;c[(f&p)>>2]=Og(c[(a&p)>>2]|0,c[(f&p)>>2]|0)|0}return d|0}function he(a,b){a=a|0;b=b|0;var d=0;b=Sg(nh(a,b)|0,2)|0;if(a){d=a+80|0;c[(d&p)>>2]=Og(c[(a&p)>>2]|0,c[(d&p)>>2]|0)|0}return b|0}function ie(a,b){a=a|0;b=b|0;var f=0;b=d[((e[((nh(a,b)|0)&o)+8>>1]|0)&31&n)+10064>>0]|0;if(a){f=a+80|0;c[(f&p)>>2]=Og(c[(a&p)>>2]|0,c[(f&p)>>2]|0)|0}return b|0}function je(b,d){b=b|0;d=d|0;var f=0,g=0;g=c[(b&p)>>2]|0;if(!b)f=0;else f=e[(b&o)+84>>1]|0;if((f|0)>(d|0)&(d|0)>-1){d=Sg((c[(b&p)+16>>2]|0)+(d*40|0)|0,1)|0;f=g+65|0;if(a[(f&n)>>0]|0){a[(f&n)>>0]=0;d=0}}else d=0;return d|0}function ke(b,d){b=b|0;d=d|0;var f=0,g=0;g=c[(b&p)>>2]|0;if(!b)f=0;else f=e[(b&o)+84>>1]|0;if((f|0)>(d|0)&(d|0)>-1){d=Sg((c[(b&p)+16>>2]|0)+(d*40|0)|0,2)|0;f=g+65|0;if(a[(f&n)>>0]|0){a[(f&n)>>0]=0;d=0}}else d=0;return d|0}function le(b,d){b=b|0;d=d|0;var f=0,g=0;g=c[(b&p)>>2]|0;if(!b)f=0;else f=e[(b&o)+84>>1]|0;if((f|0)>(d|0)&(d|0)>-1){d=Sg((c[(b&p)+16>>2]|0)+((f+d|0)*40|0)|0,1)|0;f=g+65|0;if(a[(f&n)>>0]|0){a[(f&n)>>0]=0;d=0}}else d=0;return d|0}function me(b,d){b=b|0;d=d|0;var f=0,g=0;g=c[(b&p)>>2]|0;if(!b)f=0;else f=e[(b&o)+84>>1]|0;if((f|0)>(d|0)&(d|0)>-1){d=Sg((c[(b&p)+16>>2]|0)+((f+d|0)*40|0)|0,2)|0;f=g+65|0;if(a[(f&n)>>0]|0){a[(f&n)>>0]=0;d=0}}else d=0;return d|0}function ne(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;return oh(a,b,c,d,e,0)|0}function oe(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;if(e>>>0>0|(e|0)==0&d>>>0>2147483647){d=f;if((d|0)==0|(d|0)==-1)d=18;else{cc[f&31](c);d=18}}else d=oh(a,b,c,d,f,0)|0;return d|0}function pe(a,b,d){a=a|0;b=b|0;d=+d;var e=0;e=ph(a,b)|0;if(!e)Yg((c[(a&p)+60>>2]|0)+((b+-1|0)*40|0)|0,d);return e|0}function qe(a,b,c){a=a|0;b=b|0;c=c|0;return re(a,b,c,((c|0)<0)<<31>>31)|0}function re(a,d,e,f){a=a|0;d=d|0;e=e|0;f=f|0;var g=0,h=0;g=ph(a,d)|0;do if(!g){d=d+-1|0;h=c[(a&p)+60>>2]|0;a=h+(d*40|0)|0;d=h+(d*40|0)+8|0;if(!(b[(d&o)>>1]&9312)){c[(a&p)>>2]=e;c[(a&p)+4>>2]=f;b[(d&o)>>1]=4;break}else{Zg(a,e,f);break}}while(0);return g|0}function se(a,b){a=a|0;b=b|0;return ph(a,b)|0}function te(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;return oh(a,b,c,d,e,1)|0}function ue(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;if(e>>>0>0|(e|0)==0&d>>>0>2147483647){d=f;if((d|0)==0|(d|0)==-1)d=18;else{cc[f&31](c);d=18}}else d=oh(a,b,c,d,f,g<<24>>24==4?2:g)|0;return d|0}function ve(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;return oh(a,b,c,d,e,2)|0}function we(e,f,g){e=e|0;f=f|0;g=g|0;var i=0,j=0;i=b[(g&o)+8>>1]|0;j=d[(i&31&n)+10064>>0]|0;do if((j|0)==3)i=oh(e,f,c[(g&p)+16>>2]|0,c[(g&p)+12>>2]|0,-1,a[(g&n)+10>>0]|0)|0;else if((j|0)==1){i=g;i=re(e,f,c[(i&p)>>2]|0,c[(i&p)+4>>2]|0)|0}else if((j|0)==2)i=pe(e,f,+h[(g&q)>>3])|0;else if((j|0)==4)if(!(i&16384)){i=oh(e,f,c[(g&p)+16>>2]|0,c[(g&p)+12>>2]|0,-1,0)|0;break}else{i=xe(e,f,c[(g&p)>>2]|0)|0;break}else i=ph(e,f)|0;while(0);return i|0}function xe(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;e=ph(a,b)|0;if(!e)$g((c[(a&p)+60>>2]|0)+((b+-1|0)*40|0)|0,d);return e|0}function ye(a){a=a|0;if(!a)a=0;else a=b[(a&o)+68>>1]|0;return a|0}function ze(a,d){a=a|0;d=d|0;if(!((a|0)==0|(d|0)<1)?(b[(a&o)+70>>1]|0)>=(d|0):0)d=c[((c[(a&p)+64>>2]|0)+(d+-1<<2)&p)>>2]|0;else d=0;return d|0}function Ae(b,c){b=b|0;c=c|0;var d=0;if(!c)d=0;else{d=c;while(1)if(!(a[(d&n)>>0]|0))break;else d=d+1|0;d=d-c&1073741823}return qh(b,c,d)|0}function Be(a,d){a=a|0;d=d|0;var e=0,f=0;if((b[(a&o)+68>>1]|0)==(b[(d&o)+68>>1]|0)){f=d+88|0;e=b[(f&o)>>1]|0;if((e&256)!=0?(c[(d&p)+188>>2]|0)!=0:0)b[(f&o)>>1]=e|8;e=a+88|0;f=b[(e&o)>>1]|0;if((f&256)!=0?(c[(a&p)+188>>2]|0)!=0:0)b[(e&o)>>1]=f|8;jh(a,d);e=0}else e=1;return e|0}function Ce(a){a=a|0;if(!a)a=0;else a=c[(a&p)>>2]|0;return a|0}function De(a){a=a|0;if(!a)a=1;else a=(e[(a&o)+88>>1]|0)>>>6&1;return a|0}function Ee(a){a=a|0;if((a|0)!=0?(c[(a&p)+76>>2]|0)>-1:0)a=(c[(a&p)+40>>2]|0)==-1108210269;else a=0;return a&1|0}function Fe(a,b){a=a|0;b=b|0;if(!b)a=a+4|0;else a=b+52|0;return c[(a&p)>>2]|0}function Ge(a,b,d){a=a|0;b=b|0;d=d|0;a=a+(b<<2)+108|0;b=c[(a&p)>>2]|0;if(d)c[(a&p)>>2]=0;return b|0}function He(a){a=a|0;var b=0,c=0,f=0;c=a+8|0;f=e[(c&o)>>1]|0;b=d[(f&31&n)+10064>>0]|0;if((f&15|0)==2){rh(a,0);b=d[((e[(c&o)>>1]|0)&31&n)+10064>>0]|0}return b|0}function Ie(d,e,f,g,h,k,l,m){d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;m=m|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,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;U=i;i=i+16|0;if((i|0)>=(j|0))fa();S=U;T=U+4|0;c[(T&p)>>2]=0;c[(m&p)>>2]=0;N=(l|0)!=0;O=N&1;Q=mh(d,28,0)|0;do if(Q){l=Q+0|0;s=l+28|0;do{a[(l&n)>>0]=0;l=l+1|0}while((l|0)<(s|0));s=mh(d,536,0)|0;if(s){K=d+20|0;L=d+16|0;B=d+24|0;l=Q+20|0;C=Q+12|0;D=Q+24|0;E=d+65|0;F=O^3;G=O|2;H=s+440|0;I=s+72|0;J=s+68|0;r=0;M=1;q=0;while(1){fw(s|0,0,536)|0;c[(s&p)>>2]=d;mg(d,r);c[(T&p)>>2]=0;r=c[(K&p)>>2]|0;if((r|0)>0){t=c[(L&p)>>2]|0;v=0;do{u=c[(t+(v<<4)&p)+4>>2]|0;if(u)c[((c[(u&p)+4>>2]|0)&p)+4>>2]=c[(u&p)>>2];v=v+1|0}while((v|0)!=(r|0))}A=sh(s,0,f,e)|0;if(!A)break;r=a[(A&n)+44>>0]|0;if(r&16){R=11;break}if(r&32){R=13;break}if(c[(A&p)+12>>2]|0){R=17;break}z=A+38|0;w=b[(z&o)>>1]|0;a:do if(w<<16>>16>0){v=c[(A&p)+4>>2]|0;u=w<<16>>16;r=0;while(1){t=r+1|0;if(!(dd(c[(v+(r*24|0)&p)>>2]|0,g)|0)){t=r;break a}if((t|0)<(u|0))r=t;else break}}else t=0;while(0);if((t|0)==(w<<16>>16|0)){R=23;break}if(N){if((c[(B&p)>>2]&524288|0)!=0?(P=c[(A&p)+16>>2]|0,(P|0)!=0):0){x=P;r=0;do{w=c[(x&p)+20>>2]|0;if((w|0)>0){v=0;do{r=(c[(x+(v<<3)&p)+36>>2]|0)==(t|0)?10280:r;v=v+1|0}while((v|0)<(w|0))}x=c[(x&p)+4>>2]|0}while((x|0)!=0)}else r=0;v=c[(A&p)+8>>2]|0;if(v)do{u=b[(v&o)+46>>1]|0;if(u<<16>>16){y=c[(v&p)+4>>2]|0;w=u&65535;x=0;do{r=(b[(y+(x<<1)&o)>>1]|0)==(t|0)?10296:r;x=x+1|0}while((x|0)<(w|0))}v=c[(v&p)+20>>2]|0}while((v|0)!=0);if(r){R=36;break}}y=vh(s)|0;c[(l&p)>>2]=y;if(y){x=c[(A&p)+68>>2]|0;b:do if(x){w=c[(K&p)>>2]|0;if((w|0)>0){v=c[(L&p)>>2]|0;r=0;while(1){u=r+1|0;if((c[(v+(r<<4)&p)+12>>2]|0)==(x|0)){u=r;break b}if((u|0)<(w|0))r=u;else break}}else u=0}else u=-1e6;while(0);r=c[(x&p)+4>>2]|0;xh(y,wh(y,4,u,O,c[(x&p)>>2]|0)|0,r,-14);r=y+4|0;v=c[(r&p)>>2]|0;w=y+32|0;if(v)a[(v+(((c[(w&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=1;yh(y,10,10120)|0;v=y+96|0;c[(v&p)>>2]=c[(v&p)>>2]|1<>2]|0)>>>0>1){x=c[(r&p)>>2]|0;c[(x&p)+24>>2]=u;v=A+32|0;c[(x&p)+28>>2]=c[(v&p)>>2];c[((c[(r&p)>>2]|0)&p)+32>>2]=O}else v=A+32|0;xh(y,1,c[(A&p)>>2]|0,0);zh(y,F);if((c[(w&p)>>2]|0)>>>0>G>>>0){c[((c[(r&p)>>2]|0)+(G*20|0)&p)+8>>2]=c[(v&p)>>2];c[((c[(r&p)>>2]|0)+(G*20|0)&p)+12>>2]=u}xh(y,G,(b[(z&o)>>1]|0)+1|0,-14);if((c[(w&p)>>2]|0)>>>0>6)c[((c[(r&p)>>2]|0)&p)+128>>2]=b[(z&o)>>1];if(!(a[(E&n)>>0]|0)){c[(H&p)>>2]=1;c[(I&p)>>2]=1;c[(J&p)>>2]=1;Ah(y,s)}}c[(Q&p)>>2]=O;c[(C&p)>>2]=t;c[(D&p)>>2]=d;if(a[(E&n)>>0]|0){R=57;break}re(c[(l&p)>>2]|0,1,h,k)|0;q=Bh(Q,h,k,T)|0;if(!((M|0)<50&(q|0)==17)){R=57;break}r=c[(T&p)>>2]|0;M=M+1|0;q=17}if((R|0)==11){c[(S&p)>>2]=f;th(s,10160,S)}else if((R|0)==13){c[(S&p)>>2]=f;th(s,10192,S)}else if((R|0)==17){c[(S&p)>>2]=f;th(s,10232,S)}else if((R|0)==23){mg(d,0);c[(S&p)>>2]=g;c[(T&p)>>2]=uh(d,10256,S)|0;q=1;R=62;break}else if((R|0)==36){mg(d,0);c[(S&p)>>2]=r;c[(T&p)>>2]=uh(d,10304,S)|0;q=1;R=62;break}else if((R|0)==57)if(!q){q=1;r=s;R=58;break}else{r=s;R=61;break}r=s+4|0;if(!(c[(r&p)>>2]|0)){q=1;R=62}else{mg(d,0);c[(T&p)>>2]=c[(r&p)>>2];c[(r&p)>>2]=0;q=1;R=62}}else{q=1;r=s;R=58}}else{q=0;r=0;R=58}while(0);do if((R|0)==58)if(a[(d&n)+65>>0]|0)if(q){q=0;R=61;break}else{q=0;R=64;break}else{c[(m&p)>>2]=Q;q=0;break}while(0);if((R|0)==61){l=Q+20|0;s=r;R=62}if((R|0)==62){r=c[(l&p)>>2]|0;if(!r){r=s;R=64}else{Ng(r)|0;r=s;R=64}}if((R|0)==64)mg(d,Q);K=c[(T&p)>>2]|0;c[(S&p)>>2]=K;ug(d,q,(K|0)!=0?10344:0,S);mg(d,K);Ch(r);mg(d,r);K=Og(d,q)|0;i=U;return K|0}function Je(a){a=a|0;var b=0,d=0;if(!a)a=0;else{d=c[(a&p)+24>>2]|0;b=md(c[(a&p)+20>>2]|0)|0;mg(d,a);a=b}return a|0}function Ke(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return Eh(a,b,c,d,18)|0}function Le(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return Eh(a,b,c,d,19)|0}function Me(a){a=a|0;if((a|0)!=0?(c[(a&p)+20>>2]|0)!=0:0)a=c[(a&p)+4>>2]|0;else a=0;return a|0}function Ne(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0;h=i;i=i+16|0;if((i|0)>=(j|0))fa();e=h;f=h+8|0;if(!a){c[(e&p)>>2]=77720;c[(e&p)+4>>2]=10788;bd(21,13648,e);b=21}else{g=c[(a&p)+24>>2]|0;if(c[(a&p)+20>>2]|0){b=Bh(a,b,d,f)|0;if(!b)b=0;else{d=c[(f&p)>>2]|0;c[(e&p)>>2]=d;ug(g,b,(d|0)!=0?10344:0,e);mg(g,d)}}else b=4;b=Og(g,b)|0}i=h;return b|0}function Oe(a,d,e){a=a|0;d=d|0;e=e|0;c[(a&p)+284>>2]=d;c[(a&p)+288>>2]=e;a=c[(a&p)+4>>2]|0;if(a)do{e=a+88|0;b[(e&o)>>1]=b[(e&o)>>1]|8;a=c[(a&p)+52>>2]|0}while((a|0)!=0);return 0}function Pe(a,b){a=a|0;b=b|0;return (Gh(a,b,10352,0)|0)==0|0}function Qe(e,f,g,h,k){e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;var l=0,m=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;E=i;i=i+16|0;if((i|0)>=(j|0))fa();m=E;A=E+12|0;B=E+8|0;c[(B&p)>>2]=0;do if(Hh(e)|0){l=(f|0)==0?10360:f;C=e+52|0;c[(C&p)>>2]=0;D=e+236|0;m=c[(D&p)>>2]|0;do if(m){f=m+8|0;if(!(b[(f&o)>>1]&9312)){b[(f&o)>>1]=1;break}else{vg(m);break}}while(0);x=(g|0)==0;y=e+24|0;m=0;a:while(1){do{if(m){q=39;break a}if(!(a[(l&n)>>0]|0)){m=0;q=39;break a}c[(B&p)>>2]=0;m=ih(e,l,-1,1,0,B,A)|0}while((m|0)!=0);l=c[(B&p)>>2]|0;if(!l){l=c[(A&p)>>2]|0;m=0;continue}w=b[(l&o)+84>>1]|0;u=w&65535;v=u<<3|1;w=w<<16>>16==0;f=0;q=0;r=0;b:do{m=Sd(l)|0;do if(!x){s=(m|0)==100;if(!s){if((m|0)!=101|(r|0)!=0)break b;if(!(c[(y&p)>>2]&256)){r=0;break}}if(!r){f=mh(e,v,0)|0;if(!f){f=0;q=40;break a}fw(f|0,0,v|0)|0;if(w)t=1;else{r=0;do{c[(f+(r<<2)&p)>>2]=je(l,r)|0;r=r+1|0}while((r|0)<(u|0));t=1}}else t=r;c:do if(s){q=f+(u<<2)|0;if(!w){r=0;while(1){s=fe(l,r)|0;c[(f+(r+u<<2)&p)>>2]=s;if((s|0)==0?(z=c[(B&p)>>2]|0,(ie(z,r)|0)!=5):0){m=z;q=27;break a}r=r+1|0;if((r|0)>=(u|0))break c;l=c[(B&p)>>2]|0}}}while(0);if(!(pc[g&31](h,u,q,f)|0))r=t;else{l=f;q=31;break a}}while(0);l=c[(B&p)>>2]|0}while((m|0)==100);m=Ng(l)|0;c[(B&p)>>2]=0;l=c[(A&p)>>2]|0;while(1)if(!(a[((d[(l&n)>>0]|0)&n)+10368>>0]&1))break;else l=l+1|0;mg(e,f)}do if((q|0)==27){a[(e&n)+65>>0]=1;l=m;m=100;q=40}else if((q|0)==31){Ng(c[(B&p)>>2]|0)|0;c[(B&p)>>2]=0;c[(C&p)>>2]=4;m=c[(D&p)>>2]|0;if(m){f=m+8|0;if(!(b[(f&o)>>1]&9312)){b[(f&o)>>1]=1;f=l;m=4;break}else{vg(m);f=l;m=4;break}}else{f=l;m=4}}else if((q|0)==39){l=c[(B&p)>>2]|0;f=0;q=40}while(0);if((q|0)==40)if(l)Ng(l)|0;mg(e,f);l=Og(e,m)|0;f=(k|0)!=0;if(!((l|0)!=0&f)){if(!f)break;c[(k&p)>>2]=0;break}f=Se(e)|0;if(!f)f=1;else{m=f;while(1)if(!(a[(m&n)>>0]|0))break;else m=m+1|0;f=(m-f&1073741823)+1|0}m=qg(f,((f|0)<0)<<31>>31)|0;c[(k&p)>>2]=m;if(m){kw(m|0,Se(e)|0,f|0)|0;break}c[(C&p)>>2]=7;l=c[(D&p)>>2]|0;if(l){f=l+8|0;if(!(b[(f&o)>>1]&9312)){b[(f&o)>>1]=1;l=7;break}else{vg(l);l=7;break}}else l=7}else{c[(m&p)>>2]=101334;c[(m&p)+4>>2]=10788;bd(21,13648,m);l=21}while(0);i=E;return l|0}function Re(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;return ih(a,b,c,1,0,d,e)|0}function Se(b){b=b|0;var d=0,e=0,f=0;e=i;i=i+16|0;if((i|0)>=(j|0))fa();d=e;do if(b){f=c[(b&p)+76>>2]|0;if(!((f|0)==1266094736|(f|0)==-1607883113|(f|0)==-264537850)){c[(d&p)>>2]=15248;bd(21,15256,d);c[(d&p)>>2]=129635;c[(d&p)+4>>2]=10788;bd(21,13648,d);d=16120;break}if(!(a[(b&n)+65>>0]|0)){d=Sg(c[(b&p)+236>>2]|0,1)|0;if(!d){d=c[(b&p)+52>>2]|0;if((d|0)!=516){d=d&255;if(d>>>0>26|(d|0)==2)d=16328;else d=c[(d<<2&p)+15488>>2]|0}else d=16344}}else d=15776}else d=15776;while(0);i=e;return d|0}function Te(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,o=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0;w=i;i=i+16|0;if((i|0)>=(j|0))fa();u=w;v=w+8|0;t=c[(b&p)>>2]|0;c[(v&p)>>2]=0;m=(d|0)==0;if(m)g=0;else{l=d;while(1)if(!(a[(l&n)>>0]|0))break;else l=l+1|0;g=l-d&1073741823}r=g+300|0;q=(f|0)!=0;if(q)c[(f&p)>>2]=0;do if(!(c[(b&p)+24>>2]&4194304))if(q){c[(f&p)>>2]=_c(25216,u)|0;g=1}else g=1;else{o=(e|0)!=0?e:41192;k=t+40|0;l=rc[c[(k&p)>>2]&127](t,d)|0;if(!l){c[(u&p)>>2]=d;c[(u&p)+4>>2]=41184;h=_c(27824,u)|0;if(!h){g=7;break}l=rc[c[(k&p)>>2]&127](t,h)|0;Wc(h);if(!l){if(!q){g=1;break}l=Tc(r)|0;c[(v&p)>>2]=l;c[(f&p)>>2]=l;if(!l){g=1;break}c[(u&p)>>2]=d;ad(r,l,41216,u)|0;mc[c[(t&p)+44>>2]&63](t,g+299|0,l);g=1;break}else s=l}else s=l;g=t+48|0;l=ac[c[(g&p)>>2]&63](t,s,o)|0;if((l|0)==0&(e|0)==0){if(m)l=0;else{l=d;while(1)if(!(a[(l&n)>>0]|0))break;else l=l+1|0;l=l-d&1073741823}e=Tc(l+30|0)|0;if(!e){jc[c[(t&p)+52>>2]&15](t,s);g=7;break}o=e;m=o;a[(m&n)>>0]=115;a[(m&n)+1>>0]=113;a[(m&n)+2>>0]=108;a[(m&n)+3>>0]=105;o=o+4|0;a[(o&n)>>0]=116;a[(o&n)+1>>0]=101;a[(o&n)+2>>0]=51;a[(o&n)+3>>0]=95;while(1){k=l+-1|0;if((l|0)<=0)break;if((a[(d+k&n)>>0]|0)==47)break;else l=k}h=(Fc(d+l|0,41256,3)|0)==0;k=8;h=h?l+3|0:l;while(1){l=a[(d+h&n)>>0]|0;if(l<<24>>24==0|l<<24>>24==46){l=k;break}if(!(a[(l&255&n)+10368>>0]&2))l=k;else{a[(e+k&n)>>0]=a[(l<<24>>24&n)+9328>>0]|0;l=k+1|0}k=l;h=h+1|0}l=e+l|0;a[(l&n)>>0]=a[41264]|0;a[(l&n)+1>>0]=a[41265]|0;a[(l&n)+2>>0]=a[41266]|0;a[(l&n)+3>>0]=a[41267]|0;a[(l&n)+4>>0]=a[41268]|0;a[(l&n)+5>>0]=a[41269]|0;l=ac[c[(g&p)>>2]&63](t,s,e)|0;g=e;h=e}else{g=0;h=o}if(!l){if(q){if(!h)l=0;else{l=h;while(1)if(!(a[(l&n)>>0]|0))break;else l=l+1|0;l=l-h&1073741823}l=l+r|0;k=Tc(l)|0;c[(v&p)>>2]=k;c[(f&p)>>2]=k;if(k){c[(u&p)>>2]=h;c[(u&p)+4>>2]=d;ad(l,k,41272,u)|0;mc[c[(t&p)+44>>2]&63](t,l+-1|0,k)}}jc[c[(t&p)+52>>2]&15](t,s);Wc(g);g=1;break}Wc(g);if(ac[l&63](b,v,13776)|0){if(q){c[(u&p)>>2]=c[(v&p)>>2];c[(f&p)>>2]=_c(41320,u)|0}Wc(c[(v&p)>>2]|0);jc[c[(t&p)+52>>2]&15](t,s);g=1;break}k=b+168|0;g=(c[(k&p)>>2]<<2)+4|0;l=mh(b,g,0)|0;if(!l)g=7;else{fw(l|0,0,g|0)|0;g=c[(k&p)>>2]|0;h=b+172|0;if((g|0)>0)kw(l|0,c[(h&p)>>2]|0,g<<2|0)|0;mg(b,c[(h&p)>>2]|0);c[(h&p)>>2]=l;g=c[(k&p)>>2]|0;c[(k&p)>>2]=g+1;c[(l+(g<<2)&p)>>2]=s;g=0}}while(0);s=Og(b,g)|0;i=w;return s|0}function Ue(a){a=a|0;var b=0,d=0,e=0,f=0;b=Lc()|0;if(!b){f=c[2656]|0;a:do if((f|0)>0){d=c[2658]|0;e=0;while(1){b=e+1|0;if((c[(d+(e<<2)&p)>>2]|0)==(a|0)){b=e;break a}if((b|0)<(f|0))e=b;else break}}else b=0;while(0);if((b|0)==(f|0)){b=Xc(c[2658]|0,(f<<2)+4|0)|0;if(!b)b=7;else{c[2658]=b;d=c[2656]|0;c[(b+(d<<2)&p)>>2]=a;c[2656]=d+1;b=0}}else b=0}return b|0}function Ve(a){a=a|0;var b=0,d=0,e=0,f=0,g=0;e=c[2656]|0;f=c[2658]|0;d=e;while(1){if((d|0)<=0){b=0;break}d=d+-1|0;b=f+(d<<2)|0;if((c[(b&p)>>2]|0)==(a|0)){g=4;break}}if((g|0)==4){d=e+-1|0;c[2656]=d;c[(b&p)>>2]=c[(f+(d<<2)&p)>>2];b=1}return b|0}function We(){if(!(Lc()|0)){Wc(c[2658]|0);c[2658]=0;c[2656]=0}return}function Xe(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;return ih(a,b,c,0,0,d,e)|0}function Ye(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;return Ih(a,b,c,0,d,e)|0}function Ze(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;return Ih(a,b,c,1,d,e)|0}function _e(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,k=0,l=0,m=0,n=0,o=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0;w=i;i=i+32|0;if((i|0)>=(j|0))fa();n=w;r=w+4|0;c[(d&p)>>2]=0;s=(f|0)!=0;if(s)c[(f&p)>>2]=0;t=(e|0)!=0;if(t)c[(e&p)>>2]=0;l=(g|0)!=0;if(l)c[(g&p)>>2]=0;m=r+4|0;c[(m&p)>>2]=0;u=r+12|0;c[(u&p)>>2]=0;v=r+16|0;c[(v&p)>>2]=0;k=r+20|0;c[(k&p)>>2]=1;o=r+8|0;c[(o&p)>>2]=20;q=r+24|0;c[(q&p)>>2]=0;h=Tc(80)|0;c[(r&p)>>2]=h;a:do if(h){c[(h&p)>>2]=0;b=Qe(a,b,20,r,g)|0;c[(c[(r&p)>>2]&p)>>2]=c[(k&p)>>2];if((b&255|0)==4){$e((c[(r&p)>>2]|0)+4|0);b=c[(m&p)>>2]|0;if(b){if(l){Wc(c[(g&p)>>2]|0);c[(n&p)>>2]=c[(m&p)>>2];c[(g&p)>>2]=_c(10344,n)|0;b=c[(m&p)>>2]|0}Wc(b)}b=c[(q&p)>>2]|0;c[(a&p)+52>>2]=b;break}Wc(c[(m&p)>>2]|0);if(b){$e((c[(r&p)>>2]|0)+4|0);break}h=c[(k&p)>>2]|0;b=c[(r&p)>>2]|0;do if((c[(o&p)>>2]|0)>>>0>h>>>0){b=Xc(b,h<<2)|0;if(!b){$e((c[(r&p)>>2]|0)+4|0);c[(a&p)+52>>2]=7;b=7;break a}else{c[(r&p)>>2]=b;break}}while(0);c[(d&p)>>2]=b+4;if(s)c[(f&p)>>2]=c[(v&p)>>2];if(t){c[(e&p)>>2]=c[(u&p)>>2];b=0}else b=0}else{c[(a&p)+52>>2]=7;b=7}while(0);i=w;return b|0}function $e(a){a=a|0;var b=0,d=0,e=0,f=0;if(a){b=a+-4|0;e=c[(b&p)>>2]|0;d=e;if((e|0)>1){f=1;do{e=c[(a+(f+-1<<2)&p)>>2]|0;if(e)Wc(e);f=f+1|0}while((f|0)<(d|0))}Wc(b)}return}function af(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return Kh(a,b,c,d,0)|0}function bf(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;return Kh(a,b,c,d,e)|0}function cf(d,e){d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,q=0,r=0,s=0;s=i;i=i+16|0;if((i|0)>=(j|0))fa();r=s;g=s+8|0;c[(g&p)>>2]=0;h=d+324|0;f=c[(h&p)>>2]|0;if((f|0)!=0?(m=c[(f&p)+4>>2]|0,(m|0)!=0):0){q=mh(d,536,0)|0;if(!q)e=7;else{fw(q|0,0,536)|0;k=q+451|0;a[(k&n)>>0]=1;c[(q&p)>>2]=d;c[(q&p)+424>>2]=1;if(((((Lh(q,e,g)|0)==0?(l=c[(q&p)+484>>2]|0,(l|0)!=0):0)?(a[(d&n)+65>>0]|0)==0:0)?(c[(l&p)+12>>2]|0)==0:0)?(a[(l&n)+44>>0]&16)==0:0){f=m+4|0;if(!(c[(f&p)>>2]|0)){r=l+4|0;c[(f&p)>>2]=c[(r&p)>>2];l=l+38|0;b[(m&o)+38>>1]=b[(l&o)>>1]|0;b[(l&o)>>1]=0;c[(r&p)>>2]=0}c[((c[(h&p)>>2]|0)&p)+4>>2]=0;e=0}else{e=c[(g&p)>>2]|0;c[(r&p)>>2]=e;ug(d,1,(e|0)!=0?10344:0,r);mg(d,e);e=1}a[(k&n)>>0]=0;f=c[(q&p)+8>>2]|0;if(f)Ng(f)|0;kg(d,c[(q&p)+484>>2]|0);Ch(q);mg(d,q)}e=Og(d,e)|0}else{c[(d&p)+52>>2]=21;f=c[(d&p)+236>>2]|0;do if(f){e=f+8|0;if(!(b[(e&o)>>1]&9312)){b[(e&o)>>1]=1;break}else{vg(f);break}}while(0);c[(r&p)>>2]=114865;c[(r&p)+4>>2]=10788;bd(21,13648,r);e=21}i=s;return e|0}function df(a){a=a|0;return d[((d[(a&n)+69>>0]|0)+-1&n)+10640>>0]|0|0}function ef(d,e,f){d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0;l=i;i=i+32|0;if((i|0)>=(j|0))fa();h=l;g=l+8|0;c[(g&p)>>2]=f;do if((e|0)==1){e=c[(d&p)+324>>2]|0;if(!e){c[(h&p)>>2]=115248;c[(h&p)+4>>2]=10788;bd(21,13648,h);k=6;break}else{d=c[(g&p)>>2]|0;f=c[(d&p)>>2]|0;c[(g&p)>>2]=d+4;a[((c[(e&p)>>2]|0)&n)+16>>0]=f;e=0;break}}else{c[(h&p)>>2]=115256;c[(h&p)+4>>2]=10788;bd(21,13648,h);k=6}while(0);do if((k|0)==6){c[(d&p)+52>>2]=21;e=c[(d&p)+236>>2]|0;if(e){f=e+8|0;if(!(b[(f&o)>>1]&9312)){b[(f&o)>>1]=1;e=21;break}else{vg(e);e=21;break}}else e=21}while(0);i=l;return e|0}function ff(b){b=b|0;var c=0,e=0,f=0,g=0,h=0;c=a[(b&n)>>0]|0;a:do if(c<<24>>24){g=c;c=0;b:while(1){f=g<<24>>24;switch(f|0){case 45:{if((a[(b&n)+1>>0]|0)==45){e=g;while(1){f=e<<24>>24==0;g=b+1|0;if(!(e<<24>>24!=10&(f^1)))break;b=g;e=a[(g&n)>>0]|0}if(f){h=13;break b}else e=1}else e=2;break}case 59:{e=0;break}case 91:{do{b=b+1|0;f=a[(b&n)>>0]|0;e=f<<24>>24==0}while(f<<24>>24!=93&(e^1));if(e){c=0;break a}else e=2;break}case 39:case 34:case 96:{do{b=b+1|0;f=a[(b&n)>>0]|0;e=f<<24>>24==0}while(f<<24>>24!=g<<24>>24&(e^1));if(e){c=0;break a}else e=2;break}case 47:{if((a[(b&n)+1>>0]|0)==42){b=b+2|0;while(1){e=a[(b&n)>>0]|0;if(e<<24>>24==42){b=b+1|0;if((a[(b&n)>>0]|0)==47){e=1;break}else continue}else if(!(e<<24>>24)){c=0;break a}else{b=b+1|0;continue}}}else e=2;break}case 12:case 10:case 9:case 13:case 32:{e=1;break}default:if(!(a[(g&255&n)+10368>>0]&70))e=2;else{e=1;while(1)if(!(a[((d[(b+e&n)>>0]|0)&n)+10368>>0]&70)){g=e;break}else e=e+1|0;c:do switch(f|0){case 67:case 99:{if((g|0)==6?(Fc(b,10712,6)|0)==0:0){e=4;break c}e=2;break}case 69:case 101:{if((g|0)==3){if(!(Fc(b,10752,3)|0)){e=7;break c}}else if((g|0)==7?(Fc(b,10760,7)|0)==0:0){e=3;break c}e=2;break}case 84:case 116:{if((g|0)==7){if(!(Fc(b,10720,7)|0)){e=6;break c}}else if((g|0)==4){if(!(Fc(b,10728,4)|0)){e=5;break c}}else if((g|0)==9?(Fc(b,10736,9)|0)==0:0){e=5;break c}e=2;break}default:e=2}while(0);b=b+(g+-1)|0}}c=a[((e&255)+((c&255)<<3)&n)+10648>>0]|0;b=b+1|0;g=a[(b&n)>>0]|0;if(!(g<<24>>24)){h=35;break}}if((h|0)==13){c=c<<24>>24==1&1;break}else if((h|0)==35){c=c<<24>>24==1;h=36;break}}else{c=0;h=36}while(0);if((h|0)==36)c=c&1;return c|0}function gf(d){d=d|0;var e=0,f=0,g=0;e=Lc()|0;if(!e){f=qg(40,0)|0;if(f){e=f+0|0;g=e+40|0;do{a[(e&n)>>0]=0;e=e+1|0}while((e|0)<(g|0));b[(f&o)+8>>1]=1;c[(f&p)+32>>2]=0;Xg(f,d,-1,2,0)|0}e=Sg(f,1)|0;if(!e)e=7;else e=(ff(e)|0)&255;Mh(f)}return e|0}function hf(){return 8632}function jf(){return 10768}function kf(){return 3008009}function lf(){return 0}function mf(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;f=i;i=i+32|0;if((i|0)>=(j|0))fa();d=f;e=f+8|0;if(!(c[2243]|0)){c[(e&p)>>2]=b;do switch(a|0){case 22:{c[(e&p)>>2]=(c[(e&p)>>2]|0)+8;c[(e&p)>>2]=(c[(e&p)>>2]|0)+8;c[2230]=0;c[2231]=0;c[2232]=0;c[2233]=0;d=0;break}case 25:{a=c[(e&p)>>2]|0;d=c[(a&p)>>2]|0;c[(e&p)>>2]=a+4;c[2242]=d;d=0;break}case 19:{if(!(c[2214]|0)){c[(d&p)>>2]=16440;mf(18,d)|0}a=c[(e&p)>>2]|0;d=c[(a&p)>>2]|0;c[(e&p)>>2]=a+4;d=d+0|0;a=8848|0;e=d+52|0;do{c[(d&p)>>2]=c[(a&p)>>2];d=d+4|0;a=a+4|0}while((d|0)<(e|0));d=0;break}case 18:{d=c[(e&p)>>2]|0;a=c[(d&p)>>2]|0;c[(e&p)>>2]=d+4;d=8848|0;a=a+0|0;e=d+52|0;do{c[(d&p)>>2]=c[(a&p)>>2];d=d+4|0;a=a+4|0}while((d|0)<(e|0));d=0;break}case 20:{a=c[(e&p)>>2]|0;d=c[(a&p)>>2]|0;c[(e&p)>>2]=a+4;c[2190]=d;d=0;break}case 13:{d=c[(e&p)>>2]|0;a=c[(d&p)>>2]|0;c[(e&p)>>2]=d+4;c[2193]=a;a=c[(e&p)>>2]|0;d=c[(a&p)>>2]|0;c[(e&p)>>2]=a+4;c[2194]=d;d=0;break}case 17:{a=c[(e&p)>>2]|0;d=c[(a&p)>>2]|0;c[(e&p)>>2]=a+4;c[2189]=d;d=0;break}case 15:{d=1;break}case 6:{a=c[(e&p)>>2]|0;d=c[(a&p)>>2]|0;c[(e&p)>>2]=a+4;c[2234]=d;d=c[(e&p)>>2]|0;a=c[(d&p)>>2]|0;c[(e&p)>>2]=d+4;c[2235]=a;a=c[(e&p)>>2]|0;d=c[(a&p)>>2]|0;c[(e&p)>>2]=a+4;c[2236]=d;d=0;break}case 24:{a=c[(e&p)>>2]|0;d=c[(a&p)>>2]|0;c[(e&p)>>2]=a+4;c[(d&p)>>2]=152;d=0;break}case 9:{a=c[(e&p)>>2]|0;d=c[(a&p)>>2]|0;c[(e&p)>>2]=a+4;c[2186]=d;d=0;break}case 7:{a=c[(e&p)>>2]|0;d=c[(a&p)>>2]|0;c[(e&p)>>2]=a+4;c[2237]=d;d=c[(e&p)>>2]|0;a=c[(d&p)>>2]|0;c[(e&p)>>2]=d+4;c[2238]=a;a=c[(e&p)>>2]|0;d=c[(a&p)>>2]|0;c[(e&p)>>2]=a+4;c[2239]=d;d=0;break}case 4:{a=c[(e&p)>>2]|0;d=c[(a&p)>>2]|0;c[(e&p)>>2]=a+4;c[2195]=c[(d&p)>>2];c[2196]=c[(d&p)+4>>2];c[2197]=c[(d&p)+8>>2];c[2198]=c[(d&p)+12>>2];c[2199]=c[(d&p)+16>>2];c[2200]=c[(d&p)+20>>2];c[2201]=c[(d&p)+24>>2];c[2202]=c[(d&p)+28>>2];d=0;break}case 16:{d=c[(e&p)>>2]|0;a=c[(d&p)>>2]|0;c[(e&p)>>2]=d+4;c[2250]=a;a=c[(e&p)>>2]|0;d=c[(a&p)>>2]|0;c[(e&p)>>2]=a+4;c[2251]=d;d=0;break}case 5:{if(!(c[2195]|0)){c[(d&p)>>2]=16496;mf(4,d)|0}a=c[(e&p)>>2]|0;d=c[(a&p)>>2]|0;c[(e&p)>>2]=a+4;c[(d&p)>>2]=c[2195];c[(d&p)+4>>2]=c[2196];c[(d&p)+8>>2]=c[2197];c[(d&p)+12>>2]=c[2198];c[(d&p)+16>>2]=c[2199];c[(d&p)+20>>2]=c[2200];c[(d&p)+24>>2]=c[2201];c[(d&p)+28>>2]=c[2202];d=0;break}case 14:{d=0;break}default:d=1}while(0)}else{c[(d&p)>>2]=127883;c[(d&p)+4>>2]=10788;bd(21,13648,d);d=21}i=f;return d|0}function nf(a){a=a|0;return c[(a&p)+12>>2]|0}function of(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0;h=a+20|0;b=c[(h&p)>>2]|0;f=(b|0)>0;if(f){e=c[(a&p)+16>>2]|0;g=0;do{d=c[(e+(g<<4)&p)+4>>2]|0;if(d)c[((c[(d&p)+4>>2]|0)&p)+4>>2]=c[(d&p)>>2];g=g+1|0}while((g|0)!=(b|0));if(f){f=a+16|0;e=0;do{d=c[((c[(f&p)>>2]|0)+(e<<4)&p)+4>>2]|0;if(d){cc[c[8896>>2]&31](c[((c[((c[(c[(d&p)+4>>2]&p)>>2]|0)&p)+204>>2]|0)&p)+40>>2]|0);b=c[(h&p)>>2]|0}e=e+1|0}while((e|0)<(b|0))}}return 0}function pf(a,d,e){a=a|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0;l=i;i=i+16|0;if((i|0)>=(j|0))fa();h=l;c[(h&p)>>2]=e;a:do if((d|0)!=1001){e=0;while(1){if((c[(e<<3&p)+10936>>2]|0)==(d|0))break;e=e+1|0;if(e>>>0>=2){f=1;break a}}g=c[(h&p)>>2]|0;d=c[(g&p)>>2]|0;c[(h&p)>>2]=g+4;g=c[(h&p)>>2]|0;k=c[(g&p)>>2]|0;c[(h&p)>>2]=g+4;h=a+24|0;g=c[(h&p)>>2]|0;if((d|0)<=0)if(!d){d=g&~c[(e<<3&p)+10940>>2];c[(h&p)>>2]=d}else d=g;else{d=c[(e<<3&p)+10940>>2]|g;c[(h&p)>>2]=d}if((g|0)!=(d|0)?(f=c[(a&p)+4>>2]|0,(f|0)!=0):0)do{d=f+88|0;b[(d&o)>>1]=b[(d&o)>>1]|8;f=c[(f&p)+52>>2]|0}while((f|0)!=0);if(!k)f=0;else{c[(k&p)>>2]=(c[(e<<3&p)+10940>>2]&c[(h&p)>>2]|0)!=0&1;f=0}}else{g=c[(h&p)>>2]|0;d=c[(g&p)>>2]|0;c[(h&p)>>2]=g+4;g=c[(h&p)>>2]|0;e=c[(g&p)>>2]|0;c[(h&p)>>2]=g+4;g=c[(h&p)>>2]|0;f=c[(g&p)>>2]|0;c[(h&p)>>2]=g+4;f=Nh(a,d,e,f)|0}while(0);i=l;return f|0}function qf(a){a=a|0;a=a+32|0;G=c[(a&p)+4>>2]|0;return c[(a&p)>>2]|0}function rf(a){a=a|0;return c[(a&p)+80>>2]|0}function sf(a){a=a|0;return c[(a&p)+84>>2]|0}function tf(a){a=a|0;return Oh(a,0)|0}function uf(a){a=a|0;return Oh(a,1)|0}function vf(a,b,d){a=a|0;b=b|0;d=d|0;c[(a&p)+444>>2]=b;c[(a&p)+448>>2]=d;c[(a&p)+452>>2]=0;c[(a&p)+492>>2]=0;return 0}function wf(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0;f=(b|0)>0;c[(a&p)+292>>2]=f?d:0;c[(a&p)+300>>2]=f?b:0;c[(a&p)+296>>2]=f?e:0;return}function xf(a,b){a=a|0;b=b|0;var d=0;d=(b|0)>0;c[(a&p)+444>>2]=d?74:0;c[(a&p)+448>>2]=d?a:0;c[(a&p)+452>>2]=0;c[(a&p)+492>>2]=d?b:0;return 0}function yf(a){a=a|0;c[(a&p)+240>>2]=1;return}function zf(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 Og(a,Qh(a,b,c,d,e,f,g,h,0)|0)|0}function Af(b,d,e,f,g,h,i,j,k){b=b|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;var l=0,m=0,o=0;do if(k){l=mh(b,12,0)|0;if(!l){cc[k&31](g);f=1;break}m=l;o=m;a[(o&n)>>0]=0;a[(o&n)+1>>0]=0;a[(o&n)+2>>0]=0;a[(o&n)+3>>0]=0;m=m+4|0;a[(m&n)>>0]=0;a[(m&n)+1>>0]=0;a[(m&n)+2>>0]=0;a[(m&n)+3>>0]=0;c[(l&p)+4>>2]=k;c[(l&p)+8>>2]=g;f=Qh(b,d,e,f,g,h,i,j,l)|0;if(!(c[(l&p)>>2]|0)){cc[k&31](g);mg(b,l)}}else f=Qh(b,d,e,f,g,h,i,j,0)|0;while(0);return Og(b,f)|0}function Bf(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;b=Rh(a,b,-1)|0;d=Qh(a,b,c,d,e,f,g,h,0)|0;mg(a,b);return Og(a,d)|0}function Cf(b,c,d){b=b|0;c=c|0;d=d|0;var e=0;if(!c)e=0;else{e=c;while(1)if(!(a[(e&n)>>0]|0))break;else e=e+1|0;e=e-c&1073741823}if(!(Sh(b,c,e,d,1,0)|0))e=Qh(b,c,d,1,0,57,0,0,0)|0;else e=0;return Og(b,e)|0}function Df(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;f=a+180|0;e=c[(f&p)>>2]|0;c[(a&p)+176>>2]=b;c[(f&p)>>2]=d;return e|0}function Ef(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;f=a+188|0;e=c[(f&p)>>2]|0;c[(a&p)+184>>2]=b;c[(f&p)>>2]=d;return e|0}function Ff(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;f=a+192|0;e=c[(f&p)>>2]|0;c[(a&p)+196>>2]=b;c[(f&p)>>2]=d;return e|0}function Gf(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;f=a+208|0;e=c[(f&p)>>2]|0;c[(a&p)+212>>2]=b;c[(f&p)>>2]=d;return e|0}function Hf(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;f=a+200|0;e=c[(f&p)>>2]|0;c[(a&p)+204>>2]=b;c[(f&p)>>2]=d;return e|0}function If(a,b){a=a|0;b=b|0;var d=0;if((b|0)>0)d=21;else{b=0;d=0}c[(a&p)+216>>2]=d;c[(a&p)+220>>2]=b;return 0}function Jf(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;f=a+220|0;e=c[(f&p)>>2]|0;c[(a&p)+216>>2]=b;c[(f&p)>>2]=d;return e|0}function Kf(d,e,f,g,h){d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var k=0,l=0,m=0,q=0;q=i;i=i+16|0;if((i|0)>=(j|0))fa();k=q;if(g)c[(g&p)>>2]=-1;if(h)c[(h&p)>>2]=-1;if(f>>>0>3)e=21;else{if((e|0)!=0?(a[(e&n)>>0]|0)!=0:0){l=Vh(d,e)|0;if((l|0)<0){c[(k&p)>>2]=e;ug(d,1,10952,k);e=1}else m=10}else{l=10;m=10}do if((m|0)==10){c[(d&p)+452>>2]=0;e=Wh(d,l,f,g,h)|0;c[(d&p)+52>>2]=e;k=c[(d&p)+236>>2]|0;if(k){l=k+8|0;if(!(b[(l&o)>>1]&9312)){b[(l&o)>>1]=1;break}else{vg(k);break}}}while(0);e=Og(d,e)|0}i=q;return e|0}function Lf(a,b){a=a|0;b=b|0;return Kf(a,b,0,0,0)|0}function Mf(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,k=0;k=i;i=i+16|0;if((i|0)>=(j|0))fa();g=k;do if(b){d=c[(b&p)+76>>2]|0;if(!((d|0)==1266094736|(d|0)==-1607883113|(d|0)==-264537850)){c[(g&p)>>2]=15248;bd(21,15256,g);d=11008;break}h=b+65|0;if(!(a[(h&n)>>0]|0)){f=b+236|0;d=Sg(c[(f&p)>>2]|0,2)|0;if(!d){e=c[(b&p)+52>>2]|0;if((e|0)!=516){d=e&255;if(d>>>0>26|(d|0)==2)d=16328;else d=c[(d<<2&p)+15488>>2]|0}else d=16344;ug(b,e,d,g);d=Sg(c[(f&p)>>2]|0,2)|0}a[(h&n)>>0]=0}else d=10976}else d=10976;while(0);i=k;return d|0}function Nf(b){b=b|0;var d=0,e=0,f=0;e=i;i=i+16|0;if((i|0)>=(j|0))fa();d=e;do if(b){f=c[(b&p)+76>>2]|0;if(!((f|0)==1266094736|(f|0)==-1607883113|(f|0)==-264537850)){c[(d&p)>>2]=15248;bd(21,15256,d);c[(d&p)>>2]=129704;c[(d&p)+4>>2]=10788;bd(21,13648,d);b=21;break}if(!(a[(b&n)+65>>0]|0))b=c[(b&p)+56>>2]&c[(b&p)+52>>2];else b=7}else b=7;while(0);i=e;return b|0}function Of(b){b=b|0;var d=0,e=0,f=0;e=i;i=i+16|0;if((i|0)>=(j|0))fa();d=e;do if(b){f=c[(b&p)+76>>2]|0;if(!((f|0)==1266094736|(f|0)==-1607883113|(f|0)==-264537850)){c[(d&p)>>2]=15248;bd(21,15256,d);c[(d&p)>>2]=129713;c[(d&p)+4>>2]=10788;bd(21,13648,d);b=21;break}if(!(a[(b&n)+65>>0]|0))b=c[(b&p)+52>>2]|0;else b=7}else b=7;while(0);i=e;return b|0}function Pf(a){a=a|0;if((a|0)!=516){a=a&255;if(a>>>0>26|(a|0)==2)a=16328;else a=c[(a<<2&p)+15488>>2]|0}else a=16344;return a|0}function Qf(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;if(b>>>0<=11){e=a+(b<<2)+88|0;a=c[(e&p)>>2]|0;if((d|0)>-1){b=c[(b<<2&p)+11088>>2]|0;c[(e&p)>>2]=(b|0)<(d|0)?b:d}}else a=-1;return a|0}function Rf(a,b){a=a|0;b=b|0;return Xh(a,b,6,0)|0}function Sf(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return Xh(a,b,c,d)|0}function Tf(d,e){d=d|0;e=e|0;var f=0,g=0,h=0;c[(e&p)>>2]=0;f=Lc()|0;if(!f){h=qg(40,0)|0;if(h){d=(d|0)==0?11136:d;f=h+0|0;g=f+40|0;do{a[(f&n)>>0]=0;f=f+1|0}while((f|0)<(g|0));b[(h&o)+8>>1]=1;c[(h&p)+32>>2]=0;Xg(h,d,-1,2,0)|0}d=Sg(h,1)|0;if(d){f=Xh(d,e,6,0)|0;if(!f){f=c[(e&p)>>2]|0;d=c[((c[(f&p)+16>>2]|0)&p)+12>>2]|0;if(!(b[(d&o)+78>>1]&1)){a[(f&n)+62>>0]=2;a[(d&n)+77>>0]=2;f=0}else f=0}}else f=7;Mh(h);f=f&255}return f|0}function Uf(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;return Og(a,Yh(a,b,c&255,d,e,0)|0)|0}function Vf(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 Og(a,Yh(a,b,c&255,d,e,f)|0)|0}function Wf(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;b=Rh(a,b,-1)|0;if(!b)b=0;else{c=Yh(a,b,c&255,d,e,0)|0;mg(a,b);b=c}return Og(a,b)|0}function Xf(a,b,d){a=a|0;b=b|0;d=d|0;c[(a&p)+224>>2]=d;c[(a&p)+228>>2]=0;c[(a&p)+232>>2]=b;return 0}function Yf(a,b,d){a=a|0;b=b|0;d=d|0;c[(a&p)+224>>2]=0;c[(a&p)+228>>2]=d;c[(a&p)+232>>2]=b;return 0}function Zf(a){a=a|0;return d[(a&n)+63>>0]|0|0}function _f(){return}function $f(d,e,f,g,h,k,l,m,q){d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;m=m|0;q=q|0;var r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0;C=i;i=i+16|0;if((i|0)>=(j|0))fa();A=C;B=C+8|0;c[(B&p)>>2]=0;s=c[(d&p)+20>>2]|0;if((s|0)>0){r=c[(d&p)+16>>2]|0;u=0;do{t=c[(r+(u<<4)&p)+4>>2]|0;if(t)c[((c[(t&p)+4>>2]|0)&p)+4>>2]=c[(t&p)>>2];u=u+1|0}while((u|0)!=(s|0))}r=Zh(d,B)|0;z=(r|0)!=0;a:do if((!z?(x=_h(d,f,e)|0,(x|0)!=0):0)?(c[(x&p)+12>>2]|0)==0:0){do if(g){w=b[(x&o)+38>>1]|0;b:do if(w<<16>>16>0){e=c[(x&p)+4>>2]|0;s=w<<16>>16;v=0;while(1){t=e+(v*24|0)|0;u=v+1|0;if(!(dd(c[(t&p)>>2]|0,g)|0)){u=v;break b}if((u|0)<(s|0))v=u;else break}}else{u=0;t=0}while(0);if((u|0)==(w<<16>>16|0)){if(a[(x&n)+44>>0]&32){e=0;w=0;x=0;t=0;v=0;u=0;break a}if(!($h(g)|0)){e=0;w=0;x=0;t=0;v=0;u=0;break a}y=b[(x&o)+36>>1]|0;s=y<<16>>16;if(y<<16>>16<=-1){e=0;v=0;s=1;y=0;u=11144;break}u=s;t=(c[(x&p)+4>>2]|0)+(s*24|0)|0}if(t){if((b[(x&o)+36>>1]|0)==(u|0))s=(a[(x&n)+44>>0]&8)!=0;else s=0;e=s&1;v=(a[(t&n)+20>>0]|0)!=0&1;s=a[(t&n)+23>>0]&1;y=c[(t&p)+16>>2]|0;u=c[(t&p)+12>>2]|0}else{e=0;v=0;s=1;y=0;u=11144}}else{e=0;v=0;s=1;y=0;u=11144}while(0);w=v;t=s;v=(y|0)==0?11152:y}else{e=0;w=0;x=0;t=0;v=0;u=0}while(0);if(h)c[(h&p)>>2]=u;if(k)c[(k&p)>>2]=v;if(l)c[(l&p)>>2]=w;if(m)c[(m&p)>>2]=t;if(q)c[(q&p)>>2]=e;s=c[(B&p)>>2]|0;if(!(z|(x|0)!=0)){mg(d,s);c[(A&p)>>2]=f;c[(A&p)+4>>2]=g;s=uh(d,11160,A)|0;c[(B&p)>>2]=s;r=1}c[(A&p)>>2]=s;ug(d,r,(s|0)!=0?10344:0,A);mg(d,c[(B&p)>>2]|0);z=Og(d,r)|0;i=C;return z|0}function ag(a){a=a|0;var b=0;if((Lc()|0)==0?(b=c[2254]|0,(b|0)!=0):0)a=(rc[c[(b&p)+60>>2]&127](b,a*1e3|0)|0)/1e3|0;else a=0;return a|0}function bg(a,b){a=a|0;b=b|0;c[(a&p)+56>>2]=(b|0)!=0?-1:255;return 0}function cg(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;b=ai(a,b)|0;do if(b){a=c[(b&p)+4>>2]|0;c[(a&p)+4>>2]=c[(b&p)>>2];a=c[((c[(a&p)>>2]|0)&p)+60>>2]|0;if((d|0)==7){c[(e&p)>>2]=a;b=0;break}b=c[(a&p)>>2]|0;if(!b)b=12;else b=ac[c[(b&p)+40>>2]&63](a,d,e)|0}else b=1;while(0);return b|0}function dg(e,f){e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0,v=0;t=i;i=i+32|0;if((i|0)>=(j|0))fa();s=t+24|0;h=t+8|0;g=t;c[(h&p)>>2]=f;do switch(e|0){case 11:{g=c[2514]|0;s=c[(h&p)>>2]|0;f=c[(s&p)>>2]|0;c[(h&p)>>2]=s+4;if(f)c[2514]=f;break}case 12:{c[(g&p)>>2]=0;g=c[(g&p)>>2]|0;break}case 13:{s=c[(h&p)>>2]|0;g=c[(s&p)>>2]|0;c[(h&p)>>2]=s+4;break}case 22:{g=10;break}case 5:{kw(12672,9064,259)|0;g=0;break}case 7:{if(!(Lc()|0)){a[9064]=0;g=0}else g=0;break}case 8:{r=c[(h&p)>>2]|0;q=c[(r&p)>>2]|0;c[(h&p)>>2]=r+4;r=c[(h&p)>>2]|0;k=c[(r&p)>>2]|0;c[(h&p)>>2]=r+4;r=qg(512,0)|0;g=(r|0)==0;if(!g){fw(r|0,0,512)|0;c[(r&p)>>2]=q}e=((q+7|0)/8|0)+1|0;m=qg(e,((e|0)<0)<<31>>31)|0;f=(m|0)==0;if(!f)fw(m|0,0,e|0)|0;l=Tc(512)|0;a:do if(!(g|f|(l|0)==0)){h=0;while(1){g=c[(k+(h<<2)&p)>>2]|0;if(!g)break;else if((g|0)==5|(g|0)==2|(g|0)==1){f=k+(h+2<<2)|0;u=c[(f&p)>>2]|0;e=u+-1|0;c[(s&p)>>2]=e;c[(f&p)>>2]=(c[(k+(h+3<<2)&p)>>2]|0)+u;f=4}else{cd(4,s);e=c[(s&p)>>2]|0;f=2}v=k+((h|1)<<2)|0;u=(c[(v&p)>>2]|0)+-1|0;c[(v&p)>>2]=u;h=((u|0)>0?0:f)+h|0;e=(e&2147483647|0)%(q|0)|0;c[(s&p)>>2]=e;e=e+1|0;f=1<<(e&7);if(!(g&1)){e=m+(e>>>3)|0;a[(e&n)>>0]=d[(e&n)>>0]&(f^255);ci(r,(c[(s&p)>>2]|0)+1|0,l);continue}e=m+(e>>>3)|0;a[(e&n)>>0]=d[(e&n)>>0]|f;if((g|0)==5)continue;if(bi(r,(c[(s&p)>>2]|0)+1|0)|0){g=-1;break a}}k=di(r,q+1|0)|0;e=di(r,0)|0;e=k-q+e+(c[(r&p)>>2]|0)|0;c[(s&p)>>2]=1;if((q|0)<1)g=e;else{f=1;while(1){k=(d[(m+(f>>3)&n)>>0]&1<<(f&7)|0)!=0&1;g=f;f=f+1|0;if((k|0)!=(di(r,g)|0))break a;c[(s&p)>>2]=f;if((g|0)>=(q|0)){g=e;break}}}}else g=-1;while(0);Wc(l);Wc(m);ei(r);break}case 6:{kw(9064,12672,259)|0;g=0;break}case 23:{g=(c[2243]|0)==0&1;break}case 25:{q=c[(h&p)>>2]|0;g=c[(q&p)>>2]|0;c[(h&p)>>2]=q+4;q=c[(h&p)>>2]|0;r=c[(q&p)>>2]|0;c[(h&p)>>2]=q+4;a[(g&n)+144>>0]=Vh(g,r)|0;r=c[(h&p)>>2]|0;q=c[(r&p)>>2]|0;c[(h&p)>>2]=r+4;q=q&255;a[(g&n)+147>>0]=q;r=g+145|0;a[(r&n)>>0]=q;q=c[(h&p)>>2]|0;s=c[(q&p)>>2]|0;c[(h&p)>>2]=q+4;c[(g&p)+140>>2]=s;if((a[(r&n)>>0]|0)==0&(s|0)>0){Eg(g);g=0}else g=0;break}case 14:{r=c[(h&p)>>2]|0;s=c[(r&p)>>2]|0;c[(h&p)>>2]=r+4;r=c[(h&p)>>2]|0;g=c[(r&p)>>2]|0;c[(h&p)>>2]=r+4;xg(c[((c[(s&p)+16>>2]|0)&p)+4>>2]|0,0,g,0)|0;g=0;break}case 15:{r=c[(h&p)>>2]|0;g=c[(r&p)>>2]|0;c[(h&p)>>2]=r+4;r=c[(h&p)>>2]|0;s=c[(r&p)>>2]|0;c[(h&p)>>2]=r+4;b[(g&o)+60>>1]=s;g=0;break}case 16:{s=c[(h&p)>>2]|0;e=c[(s&p)>>2]|0;c[(h&p)>>2]=s+4;if(!e)g=0;else{g=e;while(1)if(!(a[(g&n)>>0]|0))break;else g=g+1|0;g=g-e&1073741823}g=(fi(e,g)|0)!=27;g=g?124:0;break}case 24:{r=c[(h&p)>>2]|0;g=c[(r&p)>>2]|0;c[(h&p)>>2]=r+4;r=c[(h&p)>>2]|0;s=c[(r&p)>>2]|0;c[(h&p)>>2]=r+4;c[(g&p)+136>>2]=s;g=0;break}case 17:{s=c[(h&p)>>2]|0;f=c[(s&p)>>2]|0;c[(h&p)>>2]=s+4;s=c[(h&p)>>2]|0;g=c[(s&p)>>2]|0;c[(h&p)>>2]=s+4;s=c[(h&p)>>2]|0;e=c[(s&p)>>2]|0;c[(h&p)>>2]=s+4;if(f)c[(g&p)>>2]=gi(f)|0;hi(e);g=0;break}case 18:{s=c[(h&p)>>2]|0;g=c[(s&p)>>2]|0;c[(h&p)>>2]=s+4;c[2253]=g;g=0;break}case 20:{s=c[(h&p)>>2]|0;g=c[(s&p)>>2]|0;c[(h&p)>>2]=s+4;c[2192]=g;g=0;break}case 9:{s=c[(h&p)>>2]|0;g=c[(s&p)>>2]|0;c[(h&p)>>2]=s+4;c[2252]=g;if(!g)g=0;else g=lc[g&127](0)|0;break}case 10:{r=c[(h&p)>>2]|0;s=c[(r&p)>>2]|0;c[(h&p)>>2]=r+4;r=c[(h&p)>>2]|0;g=c[(r&p)>>2]|0;c[(h&p)>>2]=r+4;c[3164]=s;c[3166]=g;g=0;break}default:g=0}while(0);i=t;return g|0}function eg(b,c){b=b|0;c=c|0;var d=0,e=0,f=0,g=0;a:do if(!((b|0)==0|(c|0)==0)){d=b;while(1)if(!(a[(d&n)>>0]|0))break;else d=d+1|0;e=(d-b&1073741823)+1|0;d=a[(b+e&n)>>0]|0;if(d<<24>>24){g=b+e|0;while(1){f=_v(g,c)|0;e=g;while(1){b=e+1|0;if(!(d<<24>>24))break;d=a[(b&n)>>0]|0;e=b}b=e-g&1073741823;d=g+(b+1)|0;if(!f)break a;else e=d;while(1)if(!(a[(e&n)>>0]|0))break;else e=e+1|0;g=g+(b+2+(e-d&1073741823))|0;d=a[(g&n)>>0]|0;if(!(d<<24>>24)){d=0;break}}}else d=0}else d=0;while(0);return d|0}function fg(a,b,c){a=a|0;b=b|0;c=c|0;a=eg(a,b)|0;b=(c|0)!=0;if(a)b=(ii(a,1,b&1)|0)<<24>>24!=0;return b&1|0}function gg(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+16|0;if((i|0)>=(j|0))fa();f=g;a=eg(a,b)|0;if(!a){G=e;i=g;return d|0}else{b=(ji(a,f)|0)==0;a=f;G=b?c[(a&p)+4>>2]|0:e;i=g;return (b?c[(a&p)>>2]|0:d)|0}return 0}function hg(b,d){b=b|0;d=d|0;b=ai(b,d)|0;if(b){b=c[(c[(b&p)+4>>2]&p)>>2]|0;if(!(a[(b&n)+15>>0]|0))b=c[(b&p)+168>>2]|0;else b=10360}else b=0;return b|0}function ig(a,d){a=a|0;d=d|0;a=ai(a,d)|0;if(!a)a=-1;else a=b[((c[(a&p)+4>>2]|0)&o)+22>>1]&1;return a|0}function jg(a,b){a=a|0;b=b|0;if(b){Fk(a,c[(b&p)+28>>2]|0);mg(a,c[(b&p)>>2]|0);mg(a,c[(b&p)+4>>2]|0);Gk(a,c[(b&p)+12>>2]|0);Hk(a,c[(b&p)+16>>2]|0);mg(a,b)}return}function kg(a,d){a=a|0;d=d|0;var e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;do if(d){h=(a|0)!=0;if(!(h?(c[(a&p)+520>>2]|0)!=0:0))e=4;if((e|0)==4?(f=d+40|0,e=(b[(f&o)>>1]|0)+-1<<16>>16,b[(f&o)>>1]=e,e<<16>>16!=0):0)break;e=c[(d&p)+8>>2]|0;if(e){g=a+520|0;do{f=e;e=c[(e&p)+20>>2]|0;if(!(h?(c[(g&p)>>2]|0)!=0:0))Ik((c[(f&p)+24>>2]|0)+24|0,c[(f&p)>>2]|0,0)|0;Jk(a,f)}while((e|0)!=0)}e=c[(d&p)+16>>2]|0;if(e){j=(a|0)==0;k=d+68|0;l=a+520|0;do{if(!(!j?(c[(l&p)>>2]|0)!=0:0)){f=e+16|0;i=c[(f&p)>>2]|0;h=e+12|0;g=c[(h&p)>>2]|0;if(!i)Ik((c[(k&p)>>2]|0)+56|0,c[(((g|0)==0?e:g)&p)+8>>2]|0,g)|0;else c[(i&p)+12>>2]=g;h=c[(h&p)>>2]|0;if(h)c[(h&p)+16>>2]=c[(f&p)>>2]}Kk(a,c[(e&p)+28>>2]|0);Kk(a,c[(e&p)+32>>2]|0);f=e;e=c[(e&p)+4>>2]|0;mg(a,f)}while((e|0)!=0)}Lk(a,d);mg(a,c[(d&p)>>2]|0);mg(a,c[(d&p)+20>>2]|0);Mk(a,c[(d&p)+12>>2]|0,1);Nk(a,c[(d&p)+24>>2]|0);if(!((a|0)!=0?(c[(a&p)+520>>2]|0)!=0:0))Ok(0,d)|0;h=d+56|0;e=c[(h&p)>>2]|0;if(e){i=d+52|0;f=c[(i&p)>>2]|0;if((f|0)>0){g=0;do{if((g|0)!=1){mg(a,c[((c[(h&p)>>2]|0)+(g<<2)&p)>>2]|0);f=c[(i&p)>>2]|0}g=g+1|0}while((g|0)<(f|0));e=c[(h&p)>>2]|0}mg(a,e)}mg(a,d)}while(0);return}function lg(a,d){a=a|0;d=d|0;var f=0,g=0,h=0;ch(c[(d&p)+60>>2]|0,b[(d&o)+68>>1]|0);h=d+16|0;ch(c[(h&p)>>2]|0,e[(d&o)+84>>1]<<1);f=c[(d&p)+192>>2]|0;if(f)do{g=f;f=c[(f&p)+24>>2]|0;Pk(a,c[(g&p)>>2]|0,c[(g&p)+4>>2]|0);mg(a,g)}while((f|0)!=0);f=b[(d&o)+70>>1]|0;if(f<<16>>16>0){g=d+64|0;f=f<<16>>16;do{f=f+-1|0;mg(a,c[((c[(g&p)>>2]|0)+(f<<2)&p)>>2]|0)}while((f|0)>0)}Pk(a,c[(d&p)+4>>2]|0,c[(d&p)+32>>2]|0);mg(a,c[(h&p)>>2]|0);mg(a,c[(d&p)+168>>2]|0);mg(a,c[(d&p)+172>>2]|0);return}function mg(a,b){a=a|0;b=b|0;var d=0;do if(b){if(a){if(c[(a&p)+520>>2]|0){Qk(a,b);break}if((c[(a&p)+276>>2]|0)>>>0<=b>>>0?(c[(a&p)+280>>2]|0)>>>0>b>>>0:0){d=a+272|0;c[(b&p)>>2]=c[(d&p)>>2];c[(d&p)>>2]=b;a=a+252|0;c[(a&p)>>2]=(c[(a&p)>>2]|0)+-1;break}}Wc(b)}while(0);return}function ng(b,e){b=b|0;e=e|0;var f=0,g=0,h=0;h=c[(e&p)+24>>2]|0;if(!h)f=0;else{f=h;while(1)if(!(a[(f&n)>>0]|0))break;else f=f+1|0;f=f-h&1073741823}g=(((d[((d[(h&n)>>0]|0)&n)+9328>>0]|0)+f|0)>>>0)%23|0;f=Rk(b,g,h,f)|0;if(!f){c[(e&p)+8>>2]=0;f=b+(g<<2)|0;c[(e&p)+28>>2]=c[(f&p)>>2];c[(f&p)>>2]=e}else{f=f+8|0;c[(e&p)+8>>2]=c[(f&p)>>2];c[(f&p)>>2]=e}return}function og(a){a=a|0;var b=0,d=0;do if(a){b=c[2254]|0;if((b|0)==(a|0)){c[2254]=c[(a&p)+12>>2];break}if(b){do{d=b+12|0;b=c[(d&p)>>2]|0}while((b|0)!=(a|0)&(b|0)!=0);if((b|0)==(a|0))c[(d&p)>>2]=c[(a&p)+12>>2]}}while(0);return}function pg(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return}function qg(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;b=jw(a|0,b|0,-1,-1)|0;d=G;do if(!(d>>>0>0|(d|0)==0&b>>>0>2147483390)){if(!(c[2186]|0)){b=lc[c[8780>>2]&127](a)|0;break}d=lc[c[8796>>2]&127](a)|0;c[2171]=a;if((c[2181]|0)>>>0>>0)c[2181]=a;a=c[2260]|0;do if(a){b=c[2166]|0;e=9032|0;e=dw(c[(e&p)>>2]|0,c[(e&p)+4>>2]|0,d|0,((d|0)<0)<<31>>31|0)|0;f=G;if(0<(f|0)|0==(f|0)&b>>>0>>0){c[2265]=0;break}else{c[2265]=1;e=c[2261]|0;c[2260]=0;qc[a&15](e,b,0,d);c[2260]=a;c[2261]=e;break}}while(0);b=lc[c[8780>>2]&127](d)|0;if(b){a=lc[c[8792>>2]&127](b)|0;a=(c[2166]|0)+a|0;c[2166]=a;if(a>>>0>(c[2176]|0)>>>0)c[2176]=a;a=(c[2175]|0)+1|0;c[2175]=a;if(a>>>0>(c[2185]|0)>>>0)c[2185]=a}else b=0}else b=0;while(0);return b|0}function rg(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,i=0,j=0;do if(a){if((b|0)==0&(d|0)==0){Wc(a);e=0;break}if(!(d>>>0>0|(d|0)==0&b>>>0>2147483391)){h=lc[c[8792>>2]&127](a)|0;g=lc[c[8796>>2]&127](b)|0;if((g|0)!=(h|0)){if(!(c[2186]|0)){e=rc[c[8788>>2]&127](a,g)|0;break}c[2171]=b;if((c[2181]|0)>>>0>>0)c[2181]=b;d=g-h|0;e=c[2166]|0;i=9032|0;i=dw(c[(i&p)>>2]|0,c[(i&p)+4>>2]|0,d|0,((d|0)<0)<<31>>31|0)|0;j=G;if(!(0<(j|0)|0==(j|0)&e>>>0>>0)?(f=c[2260]|0,(f|0)!=0):0){i=c[2261]|0;c[2260]=0;qc[f&15](i,e,0,d);c[2260]=f;c[2261]=i}e=rc[c[8788>>2]&127](a,g)|0;d=c[2260]|0;if((e|0)==0&(d|0)!=0){f=c[2166]|0;e=c[2261]|0;c[2260]=0;qc[d&15](e,f,0,b);c[2260]=d;c[2261]=e;e=rc[c[8788>>2]&127](a,g)|0}if(e){d=(lc[c[8792>>2]&127](e)|0)-h|0;d=(c[2166]|0)+d|0;c[2166]=d;if(d>>>0>(c[2176]|0)>>>0)c[2176]=d}else e=0}else e=a}else e=0}else e=qg(b,d)|0;while(0);return e|0}function sg(b,e,f,g){b=b|0;e=e|0;f=f|0;g=g|0;var l=0,m=0,o=0,r=0,s=0,t=0.0,u=0.0,v=0,w=0.0,x=0.0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=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;$=i;i=i+96|0;if((i|0)>=(j|0))fa();Z=$+8|0;_=$;Y=$+16|0;if(!e){l=0;m=0;T=0}else{l=e&2;if(!l)m=0;else{J=c[(g&p)>>2]|0;m=c[(J&p)>>2]|0;c[(g&p)>>2]=J+4}l=l&255;T=(e&1|0)!=0}S=l<<24>>24==0;P=l<<24>>24!=0;Q=m+4|0;R=m+8|0;O=b+12|0;l=0;a:while(1){e=a[(f&n)>>0]|0;if(e<<24>>24==37){e=f;f=l}else if(e<<24>>24){e=f;do{e=e+1|0;J=a[(e&n)>>0]|0}while(!(J<<24>>24==37|J<<24>>24==0));Sk(b,f,e-f|0);if(!(a[(e&n)>>0]|0))break}else break;l=e+1|0;o=a[(l&n)>>0]|0;if(!(o<<24>>24)){U=10;break}r=o<<24>>24;v=0;s=0;y=0;o=0;A=0;B=0;b:while(1){switch(r|0){case 43:{z=s;A=1;break}case 32:{z=s;y=1;break}case 35:{v=1;z=s;break}case 33:{z=1;break}case 48:{z=s;B=1;break}case 45:{z=s;o=1;break}default:{C=v;z=s;break b}}s=e+2|0;J=a[(s&n)>>0]|0;r=J<<24>>24;if(!(J<<24>>24)){l=s;C=v;break}else{e=l;l=s;s=z}}if((r|0)!=42)if((r+-48|0)>>>0<10){s=0;do{s=r+-48+(s*10|0)|0;l=l+1|0;r=a[(l&n)>>0]|0}while((r+-48|0)>>>0<10);N=o;M=s&2147483647}else{N=o;M=0}else{if(S){J=c[(g&p)>>2]|0;s=c[(J&p)>>2]|0;c[(g&p)>>2]=J+4}else s=Tk(m)|0;if((s|0)<0){o=1;s=(s|0)==-2147483648?0:0-s|0}r=l+1|0;l=r;r=a[(r&n)>>0]|0;N=o;M=s}do if((r|0)==46){s=l+1|0;o=a[(s&n)>>0]|0;if(o<<24>>24!=42){r=o<<24>>24;if((o+-48&255)<10)o=0;else{l=s;F=0;break}while(1){o=r+-48+(o*10|0)|0;l=l+2|0;J=a[(l&n)>>0]|0;r=J<<24>>24;if((J+-48&255)<10){J=s;s=l;l=J}else break}F=o&2147483647;break}if(S){J=c[(g&p)>>2]|0;s=c[(J&p)>>2]|0;c[(g&p)>>2]=J+4}else s=Tk(m)|0;l=l+2|0;r=a[(l&n)>>0]|0;if((s|0)<0)F=(s|0)==-2147483648?-1:0-s|0;else F=s}else F=-1;while(0);do if((r|0)==108){s=l+1|0;r=a[(s&n)>>0]|0;if(r<<24>>24==108){r=l+2|0;l=r;r=a[(r&n)>>0]|0;s=1;break}else{l=s;r=r<<24>>24;s=0;break}}else s=0;while(0);v=0;while(1){o=48752+(v*6|0)|0;if((r|0)==(a[(o&n)>>0]|0)){r=o;o=v;U=46;break}v=v+1|0;if((v|0)>=23){L=48752;J=0;break}}if((U|0)==46){U=0;if(!(T|o>>>0<20))break;L=r;J=a[((o*6|0)&n)+48755>>0]|0}c:do switch(J&255|0){case 13:{s=c[(g&p)>>2]|0;e=c[(s&p)>>2]|0;c[(g&p)>>2]=s+4;s=c[(g&p)>>2]|0;r=c[(s&p)>>2]|0;c[(g&p)>>2]=s+4;s=c[(e+(r*72|0)&p)+12>>2]|0;if(s){o=s;while(1)if(!(a[(o&n)>>0]|0))break;else o=o+1|0;Sk(b,s,o-s&1073741823);Sk(b,28928,1)}o=c[(e+(r*72|0)&p)+16>>2]|0;if(!o)e=0;else{e=o;while(1)if(!(a[(e&n)>>0]|0))break;else e=e+1|0;e=e-o&1073741823}Sk(b,o,e);y=f;r=0;e=0;s=0;break}case 14:{s=0;U=50;break}case 1:case 16:{U=50;break}case 4:case 3:case 2:{do if(!S){s=c[(Q&p)>>2]|0;if((c[(m&p)>>2]|0)>(s|0)){c[(Q&p)>>2]=s+1;t=+Ug(c[((c[(R&p)>>2]|0)+(s<<2)&p)>>2]|0);U=92;break}else{s=(F|0)<0?6:F;t=0.0;U=94;break}}else{U=c[(g&p)>>2]|0;c[(k&p)>>2]=c[(U&p)>>2];c[(k&p)+4>>2]=c[(U&p)+4>>2];t=+h[(k&q)>>3];c[(g&p)>>2]=U+8;U=92}while(0);if((U|0)==92){U=0;s=(F|0)<0?6:F;if(t<0.0){t=-t;K=45}else U=94}if((U|0)==94){U=0;if(!(A<<24>>24))K=y<<24>>24==0?0:32;else K=43}F=J<<24>>24==4;o=((F&(s|0)>0)<<31>>31)+s|0;s=o&4095;if(!s)u=.5;else{u=.5;do{s=s+-1|0;u=u*.1}while((s|0)>0)}E=J<<24>>24==2;if(E)t=t+u;h[(Z&q)>>3]=t;h[(_&q)>>3]=+h[(Z&q)>>3];if(+h[(Z&q)>>3]!=+h[(_&q)>>3]){y=48960;r=3;e=M;s=0}else{if(t>0.0){v=0;w=1.0;while(1){x=w*1.e+100;if(t>=x&(v|0)<351){v=v+100|0;w=x}else break}while(1){x=w*1.e+64;if(t>=x&(v|0)<351){v=v+64|0;w=x}else break}while(1){x=w*1.0e8;if(t>=x&(v|0)<351){v=v+8|0;w=x}else break}while(1){x=w*10.0;if((v|0)<351&t>=x){v=v+1|0;w=x}else break}t=t/w;if(t<1.0e-08)do{t=t*1.0e8;v=v+-8|0}while(t<1.0e-08);if(t<1.0)do{t=t*10.0;v=v+-1|0}while(t<1.0);if((v|0)>350){if(K<<24>>24==43)o=48976;else if(K<<24>>24==45)o=48968;else o=48984;f=o;while(1)if(!(a[(f&n)>>0]|0))break;else f=f+1|0;y=o;r=f-o&1073741823;e=M;s=0;break c}}else v=0;if(!E){t=u+t;if(!(t>=10.0))I=v;else{t=t*.1;I=v+1|0}}else I=v;if(F){s=(I|0)<-4|(o|0)<(I|0);F=C<<24>>24==0&1;o=o-(s?0:I)|0;s=s?3:2}else{F=z;s=J}H=s<<24>>24==3;f=H?0:I;v=(f|0)>0;s=jw(o|0,((o|0)<0)<<31>>31|0,M|0,((M|0)<0)<<31>>31|0)|0;v=jw(s|0,G|0,(v?f:0)|0,(v?((f|0)<0)<<31>>31:0)|0)|0;s=G;if((s|0)>0|(s|0)==0&v>>>0>55){v=jw(v|0,s|0,15,0)|0;v=qg(v,G)|0;if(!v){U=124;break a}else{y=v;J=v}}else{y=Y;J=0}v=((z&255)*10|0)+16|0;D=(z|C)&255|(o|0)>0;if(!(K<<24>>24))E=y;else{a[(y&n)>>0]=K;E=y+1|0}if((f|0)<0){a[(E&n)>>0]=48;e=2;s=E+1|0;A=f}else{C=~f;C=(C|0)>-1?C:-1;A=-2-C|0;C=f+C|0;r=E;while(1){if((v|0)<1)e=48;else{s=~~t;e=s+48&255;t=(t-+(s|0))*10.0;v=v+-1|0}a[(r&n)>>0]=e;if((f|0)>0){r=r+1|0;f=f+-1|0}else break}e=C+3|0;s=E+(C+2)|0}r=(D|0)==0;if(!r){a[(s&n)>>0]=46;s=E+e|0}if((A+1|0)<0){fw(s|0,48,~A|0)|0;s=s+~A|0;o=o+1+A|0}if((o|0)>0){e=s;f=o;while(1){f=f+-1|0;if((v|0)<1)A=48;else{E=~~t;A=E+48&255;t=(t-+(E|0))*10.0;v=v+-1|0}a[(e&n)>>0]=A;if((f|0)<=0)break;else e=e+1|0}s=s+o|0}d:do if(!(F<<24>>24==0|r)){while(1){r=s+-1|0;o=a[(r&n)>>0]|0;if(o<<24>>24==46)break;else if(o<<24>>24!=48)break d;a[(r&n)>>0]=0;s=r}if(!(z<<24>>24)){a[(r&n)>>0]=0;s=r;break}else{a[(s&n)>>0]=48;s=s+1|0;break}}while(0);if(H){r=s+1|0;a[(s&n)>>0]=a[((d[(L&n)+4>>0]|0)&n)+48912>>0]|0;o=s+2|0;if((I|0)<0){a[(r&n)>>0]=45;r=0-I|0}else{a[(r&n)>>0]=43;r=I}if((r|0)>99){a[(o&n)>>0]=((r|0)/100|0)+48;f=4;e=5;o=s+3|0;r=(r|0)%100|0}else{f=3;e=4}a[(o&n)>>0]=((r|0)/10|0)+48;a[(s+f&n)>>0]=((r|0)%10|0)+48;s=s+e|0}a[(s&n)>>0]=0;e=y;r=s-e|0;if(!(N<<24>>24==0&B<<24>>24!=0&(M|0)>(r|0))){e=M;s=J;break c}o=M-r|0;if((r|0)>=0){f=M;while(1){a[(y+f&n)>>0]=a[(y+(f-o)&n)>>0]|0;if((f|0)>(o|0))f=f+-1|0;else break}}if((M|0)==(r|0)){r=M;e=M;s=J;break c}fw(y+(K<<24>>24!=0&1)|0,48,M+e-s|0)|0;r=M;e=M;s=J}break}case 5:{if(S){r=c[(O&p)>>2]|0;e=c[(g&p)>>2]|0;y=c[(e&p)>>2]|0;c[(g&p)>>2]=e+4;c[(y&p)>>2]=r;y=f;r=0;e=0;s=0}else{y=f;r=0;e=0;s=0}break}case 8:{a[(Y&n)>>0]=37;y=Y;r=1;e=M;s=0;break}case 9:{if(!S){e=Uk(m)|0;if(!e)s=0;else s=a[(e&n)>>0]|0}else{J=c[(g&p)>>2]|0;s=c[(J&p)>>2]|0;c[(g&p)>>2]=J+4}if((F|0)>1){o=F+-1|0;e=M-o|0;if(!((e|0)<2|N<<24>>24!=0)){Vk(b,e+-1|0,32);e=0}f=s&255;Vk(b,o,f)}else{f=s&255;e=M}a[(Y&n)>>0]=f;y=Y;r=1;s=0;break}case 7:case 6:{if(P)o=Uk(m)|0;else{I=c[(g&p)>>2]|0;o=c[(I&p)>>2]|0;c[(g&p)>>2]=I+4}if(!o){f=10360;s=0}else{f=o;s=J<<24>>24!=7|P?0:o}if((F|0)>-1){if((F|0)>0)o=0;else{y=f;r=0;e=M;break c}while(1){r=o+1|0;if(!(a[(f+o&n)>>0]|0)){y=f;r=o;e=M;break c}if((r|0)<(F|0))o=r;else{y=f;e=M;break}}}else{if(!f){y=0;r=0;e=M;break c}else o=f;while(1)if(!(a[(o&n)>>0]|0))break;else o=o+1|0;y=f;r=o-f&1073741823;e=M;break c}break}case 15:case 11:case 10:{C=J<<24>>24==15?34:39;if(S){I=c[(g&p)>>2]|0;s=c[(I&p)>>2]|0;c[(g&p)>>2]=I+4}else s=Uk(m)|0;y=(s|0)==0;if(y)s=J<<24>>24==11?20304:48992;e:do if(!F){B=0;r=0}else{v=C&255;o=0;e=F;r=0;while(1){f=a[(s+o&n)>>0]|0;if(!(f<<24>>24)){B=o;break e}r=((f<<24>>24|0)==(v|0)&1)+r|0;o=o+1|0;e=e+-1|0;if(!e){B=o;break}}}while(0);z=J<<24>>24==11&(y^1);o=((z&1)<<1|1)+B+r|0;if((o|0)>70){r=qg(o,((o|0)<0)<<31>>31)|0;if(!r){U=197;break a}else{y=r;A=r}}else{y=Y;A=0}if(z){a[(y&n)>>0]=C;o=1}else o=0;if((B|0)>0){v=C&255;e=0;do{r=a[(s+e&n)>>0]|0;f=o+1|0;a[(y+o&n)>>0]=r;if((r<<24>>24|0)==(v|0)){a[(y+f&n)>>0]=r;o=o+2|0}else o=f;e=e+1|0}while((e|0)!=(B|0))}if(z){a[(y+o&n)>>0]=C;o=o+1|0}a[(y+o&n)>>0]=0;r=o;e=M;s=A;break}case 12:{J=c[(g&p)>>2]|0;e=c[(J&p)>>2]|0;c[(g&p)>>2]=J+4;if((e|0)!=0?(X=c[(e&p)+4>>2]|0,(X|0)!=0):0){Sk(b,c[(e&p)>>2]|0,X);y=f;r=0;e=0;s=0}else{y=f;r=0;e=0;s=0}break}default:break a}while(0);if((U|0)==50){U=0;do if(!(a[(L&n)+2>>0]&1)){if(P){f=Tk(m)|0;v=G;E=0;break}if(!(s<<24>>24)){v=c[(g&p)>>2]|0;f=c[(v&p)>>2]|0;c[(g&p)>>2]=v+4;v=0;E=0;break}else{E=c[(g&p)>>2]|0;v=E;f=c[(v&p)>>2]|0;v=c[(v&p)+4>>2]|0;c[(g&p)>>2]=E+8;E=0;break}}else{do if(!P)if(!(s<<24>>24)){r=c[(g&p)>>2]|0;s=c[(r&p)>>2]|0;c[(g&p)>>2]=r+4;r=((s|0)<0)<<31>>31;break}else{I=c[(g&p)>>2]|0;r=I;s=c[(r&p)>>2]|0;r=c[(r&p)+4>>2]|0;c[(g&p)>>2]=I+8;break}else{s=Tk(m)|0;r=G}while(0);if((r|0)<0){f=dw(0,0,s|0,r|0)|0;v=G;E=45;break}if(!(A<<24>>24)){f=s;v=r;E=y<<24>>24==0?0:32}else{f=s;v=r;E=43}}while(0);D=(f|0)==0&(v|0)==0;if(!(B<<24>>24))A=F;else{A=M-(E<<24>>24!=0&1)|0;A=(F|0)<(A|0)?A:F}if((A|0)>=60){s=A+10|0;r=qg(s,((s|0)<0)<<31>>31)|0;if(!r){U=69;break}else{e=s;s=r;o=r}}else{e=70;s=0;o=Y}B=o+(e+-1)|0;if(J<<24>>24==16){r=uw(f|0,v|0,10,0)|0;if(!(r>>>0<=3?(J=tw(f|0,v|0,10,0)|0,J=uw(J|0,G|0,10,0)|0,!((J|0)==1&(G|0)==0)):0))r=0;J=r<<1;a[(o+e+-2&n)>>0]=a[((J|1)&n)+48896>>0]|0;r=o+(e+-3)|0;a[(r&n)>>0]=a[(J&n)+48896>>0]|0}else r=B;e=d[(L&n)+4>>0]|0;y=d[(L&n)+1>>0]|0;while(1){J=uw(f|0,v|0,y|0,0)|0;o=r+-1|0;a[(o&n)>>0]=a[(J+e&n)+48912>>0]|0;f=tw(f|0,v|0,y|0,0)|0;v=G;if((f|0)==0&(v|0)==0)break;else r=o}f=A-B+o|0;if((f|0)>0){e=r;r=o;while(1){o=e+-2|0;a[(o&n)>>0]=48;f=f+-1|0;if((f|0)<=0)break;else{e=r;r=o}}}if(E<<24>>24){o=r+-2|0;a[(o&n)>>0]=E}if((!(D|C<<24>>24==0)?(V=a[(L&n)+5>>0]|0,V<<24>>24!=0):0)?(W=48952+(V&255)|0,!(V<<24>>24==3|V<<24>>24==6)):0){f=a[(W&n)>>0]|0;r=W;do{o=o+-1|0;a[(o&n)>>0]=f;r=r+1|0;f=a[(r&n)>>0]|0}while(f<<24>>24!=0)}y=o;r=B-o|0;e=M}o=e-r|0;f=(o|0)<1;if(!(f|N<<24>>24!=0))Vk(b,o,32);Sk(b,y,r);if(!(f|N<<24>>24==0))Vk(b,o,32);if(s)Wc(s);f=l+1|0;l=y}if((U|0)==10)Sk(b,48744,1);else if((U|0)==69){a[(b&n)+25>>0]=1;c[(b&p)+16>>2]=0}else if((U|0)==124){a[(b&n)+25>>0]=1;c[(b&p)+16>>2]=0}else if((U|0)==197){a[(b&n)+25>>0]=1;c[(b&p)+16>>2]=0}i=$;return}function tg(b){b=b|0;var d=0,e=0,f=0,g=0,h=0;f=b+8|0;d=c[(f&p)>>2]|0;do if(((d|0)!=0?(h=b+12|0,a[(d+(c[(h&p)>>2]|0)&n)>>0]=0,e=a[(b&n)+24>>0]|0,e<<24>>24!=0):0)?(g=b+4|0,(c[(f&p)>>2]|0)==(c[(g&p)>>2]|0)):0){if(e<<24>>24==1){d=(c[(h&p)>>2]|0)+1|0;d=mh(c[(b&p)>>2]|0,d,((d|0)<0)<<31>>31)|0}else d=Tc((c[(h&p)>>2]|0)+1|0)|0;c[(f&p)>>2]=d;if(!d){a[(b&n)+25>>0]=1;c[(b&p)+16>>2]=0;break}else{kw(d|0,c[(g&p)>>2]|0,(c[(h&p)>>2]|0)+1|0)|0;break}}while(0);return c[(f&p)>>2]|0}function ug(d,e,f,g){d=d|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,q=0;q=i;i=i+16|0;if((i|0)>=(j|0))fa();m=q;h=d+52|0;c[(h&p)>>2]=e;a:do if(!f){c[(h&p)>>2]=e;e=c[(d&p)+236>>2]|0;if(e){h=e+8|0;if(!(b[(h&o)>>1]&9312)){b[(h&o)>>1]=1;break}else{vg(e);break}}}else{l=d+236|0;do if(!(c[(l&p)>>2]|0)){h=mh(d,40,0)|0;if(!h){c[(l&p)>>2]=h;break a}else{e=h+0|0;k=e+40|0;do{a[(e&n)>>0]=0;e=e+1|0}while((e|0)<(k|0));b[(h&o)+8>>1]=1;c[(h&p)+32>>2]=d;c[(l&p)>>2]=h;break}}while(0);c[(m&p)>>2]=g;h=Wk(d,f,m)|0;e=c[(l&p)>>2]|0;if(e)Xg(e,h,-1,1,75)|0}while(0);i=q;return}function vg(a){a=a|0;var d=0,e=0;e=a+8|0;d=b[(e&o)>>1]|0;if(d&8192){Yk(a,c[(a&p)>>2]|0)|0;d=b[(e&o)>>1]|0}d=d&65535;do if(!(d&1024)){if(d&32){Zk(c[(a&p)>>2]|0);break}if(d&64){a=c[(a&p)>>2]|0;d=(c[(a&p)>>2]|0)+180|0;c[(a&p)+4>>2]=c[(d&p)>>2];c[(d&p)>>2]=a}}else cc[c[(a&p)+36>>2]&31](c[(a&p)+16>>2]|0);while(0);b[(e&o)>>1]=1;return}function wg(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0;k=i;i=i+16|0;if((i|0)>=(j|0))fa();g=k;e=Vh(b,d)|0;do if((e|0)==1){f=mh(a,536,0)|0;if(!f){ug(a,7,15776,g);e=0;break}fw(f|0,0,536)|0;c[(f&p)>>2]=b;if(!(_k(f)|0)){mg(a,c[(f&p)+4>>2]|0);Ch(f);mg(a,f);h=7;break}else{b=c[(f&p)+12>>2]|0;e=f+4|0;c[(g&p)>>2]=c[(e&p)>>2];ug(a,b,10344,g);mg(a,c[(e&p)>>2]|0);Ch(f);mg(a,f);e=0;break}}else h=7;while(0);do if((h|0)==7)if((e|0)<0){c[(g&p)>>2]=d;ug(a,1,47448,g);e=0;break}else{e=c[((c[(b&p)+16>>2]|0)+(e<<4)&p)+4>>2]|0;break}while(0);i=k;return e|0}function xg(a,d,f,g){a=a|0;d=d|0;f=f|0;g=g|0;var h=0,i=0,j=0,k=0;k=c[(a&p)+4>>2]|0;c[(k&p)+4>>2]=c[(a&p)>>2];j=k+22|0;if(!(b[(j&o)>>1]&2)){if((f|0)<0)f=(c[(k&p)+32>>2]|0)-(c[(k&p)+36>>2]|0)|0;if(((d+-512|0)>>>0<65025?(d+-1&d|0)==0:0)?(c[(k&p)+32>>2]=d,h=k+80|0,i=c[(h&p)>>2]|0,(i|0)!=0):0){a=i+-4|0;c[(h&p)>>2]=a;$k(a);c[(h&p)>>2]=0}h=k+32|0;a=al(c[(k&p)>>2]|0,h,f)|0;c[(k&p)+36>>2]=(c[(h&p)>>2]|0)-(f&65535);if(g)b[(j&o)>>1]=e[(j&o)>>1]|0|2}else a=8;return a|0}function yg(f,g){f=f|0;g=g|0;var h=0,k=0,l=0,m=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;T=i;i=i+16|0;if((i|0)>=(j|0))fa();N=T;M=T+12|0;L=T+8|0;R=c[(f&p)+4>>2]|0;I=R+4|0;c[(I&p)>>2]=c[(f&p)>>2];O=f+8|0;l=a[(O&n)>>0]|0;do if(l<<24>>24!=2?(P=(g|0)!=0,l<<24>>24!=1|P):0){Q=R+22|0;l=b[(Q&o)>>1]|0;if(!((l&1)!=0&P)){if(P)if((a[(R&n)+20>>0]|0)!=2&(l&64)==0)S=8;else S=7;else if(!(l&64))S=8;else S=7;a:do if((S|0)==7){h=c[(R&p)+76>>2]|0;S=12}else if(((S|0)==8?(g|0)>1:0)?(k=c[(R&p)+72>>2]|0,(k|0)!=0):0)do{l=c[(k&p)>>2]|0;if((l|0)!=(f|0)){h=l;S=12;break a}k=c[(k&p)+12>>2]|0}while((k|0)!=0);while(0);if((S|0)==12?(c[(h&p)>>2]|0)!=0:0){h=262;break}h=bl(f,1,1)|0;if(!h){l=e[(Q&o)>>1]|0;b[(Q&o)>>1]=l&65527;K=R+44|0;if(!(c[(K&p)>>2]|0))b[(Q&o)>>1]=l|8;E=R+12|0;u=R+32|0;v=R+36|0;w=R+17|0;x=R+18|0;y=R+80|0;z=R+24|0;A=R+26|0;B=R+28|0;C=R+30|0;D=R+21|0;F=R+20|0;G=(g|0)>1;h=0;b:while(1){c:do if(!(c[(E&p)>>2]|0)){h=cl(c[(R&p)>>2]|0)|0;if(!h){h=dl(R,1,M,0)|0;if(!h){t=c[(M&p)>>2]|0;q=c[(t&p)+56>>2]|0;l=d[(q&n)+29>>0]<<16|d[(q&n)+28>>0]<<24|d[(q&n)+30>>0]<<8|d[(q&n)+31>>0];m=c[(R&p)>>2]|0;r=c[(m&p)+24>>2]|0;if((l|0)!=0?(Zv(q+24|0,q+92|0,4)|0)==0:0)s=l;else s=r;d:do if((s|0)>0){e:do if(!(Zv(q,44680,16)|0)){if((d[(q&n)+18>>0]|0)>2)b[(Q&o)>>1]=e[(Q&o)>>1]|1;l=a[(q&n)+19>>0]|0;if((l&255)<=2){do if(l<<24>>24==2){if(b[(Q&o)>>1]&16)break;c[(L&p)>>2]=0;h=el(m,L)|0;if(h){S=48;break e}if(c[(L&p)>>2]|0)break;if(!t){h=0;continue b}Bg(c[(t&p)+68>>2]|0);h=0;continue b}while(0);if(Zv(q+21|0,47408,3)|0){h=26;S=48;break}k=d[(q&n)+17>>0]<<16|d[(q&n)+16>>0]<<8;if((k+16777215&k|0)!=0|k>>>0>65536|k>>>0<257){h=26;S=48;break}m=d[(q&n)+20>>0]|0;l=k-m|0;if((k|0)==(c[(u&p)>>2]|0)){if((s|0)>(r|0)?(c[((c[(I&p)>>2]|0)&p)+24>>2]&65536|0)==0:0){c[(N&p)>>2]=55672;c[(N&p)+4>>2]=10788;bd(11,13600,N);h=11;S=48;break}if(l>>>0<480){h=26;S=48;break}c[(u&p)>>2]=k;c[(v&p)>>2]=l;a[(w&n)>>0]=(d[(q&n)+53>>0]<<16|d[(q&n)+52>>0]<<24|d[(q&n)+54>>0]<<8|d[(q&n)+55>>0]|0)!=0&1;a[(x&n)>>0]=(d[(q&n)+65>>0]<<16|d[(q&n)+64>>0]<<24|d[(q&n)+66>>0]<<8|d[(q&n)+67>>0]|0)!=0&1;break d}if(t)Bg(c[(t&p)+68>>2]|0);c[(v&p)>>2]=l;c[(u&p)>>2]=k;l=c[(y&p)>>2]|0;if(l){h=l+-4|0;c[(y&p)>>2]=h;$k(h);c[(y&p)>>2]=0}h=al(c[(R&p)>>2]|0,u,m)|0}else{h=26;S=48}}else{h=26;S=48}while(0);if((S|0)==48){S=0;if(t)Bg(c[(t&p)+68>>2]|0);c[(E&p)>>2]=0}if(!h){h=0;continue b}else{S=77;break c}}else l=c[(v&p)>>2]|0;while(0);h=((((l<<6)+-768|0)>>>0)/255|0)+65513|0;k=h&65535;b[(z&o)>>1]=k;m=((((l<<5)+-384|0)>>>0)/255|0)+65513&65535;b[(A&o)>>1]=m;b[(B&o)>>1]=l+65501;b[(C&o)>>1]=m;a[(D&n)>>0]=(k&65535)>127?127:h&255;c[(E&p)>>2]=t;c[(K&p)>>2]=s;h=0;continue b}else l=0}else l=0}else{f:do if((h|0)==0&P){if(b[(Q&o)>>1]&1){h=8;S=77;break c}s=c[(R&p)>>2]|0;h=c[(s&p)+40>>2]|0;g:do if(!h){a[(s&n)+21>>0]=(a[((c[(f&p)>>2]|0)&n)+64>>0]|0)==2&1;t=s+16|0;if((a[(t&n)>>0]|0)==1){m=s+208|0;l=c[(m&p)>>2]|0;do if(!l){h=fl(s,2)|0;h:do if((h|0)==0&G){l=s+176|0;k=s+180|0;while(1){h=fl(s,4)|0;if((h|0)!=5)break h;if(!(lc[c[(l&p)>>2]&127](c[(k&p)>>2]|0)|0)){h=5;break g}}}while(0);if(h)break g}else{do if(a[(s&n)+4>>0]|0){if(a[(l&n)+43>>0]|0)break;h=fl(s,4)|0;if(h)break g;l=c[(m&p)>>2]|0;k=l+43|0;if(!(a[(k&n)>>0]|0)){h=c[(l&p)+4>>2]|0;pc[c[((c[(h&p)>>2]|0)&p)+56>>2]&31](h,(b[(l&o)+40>>1]|0)+3|0,1,5)|0;l=c[(m&p)>>2]|0}a[(k&n)>>0]=1}while(0);if(a[(l&n)+46>>0]|0){h=8;break g}k=l+43|0;if((a[(k&n)>>0]|0)==0?(H=c[(l&p)+4>>2]|0,H=pc[c[((c[(H&p)>>2]|0)&p)+56>>2]&31](H,0,1,10)|0,(H|0)!=0):0){h=H;break g}h=l+44|0;a[(h&n)>>0]=1;if(!(Zv(l+52|0,c[(c[(l&p)+32>>2]&p)>>2]|0,48)|0))break;if(!(a[(k&n)>>0]|0)){k=c[(l&p)+4>>2]|0;pc[c[((c[(k&p)>>2]|0)&p)+56>>2]&31](k,0,1,9)|0}a[(h&n)>>0]=0;h=517;break g}while(0);a[(t&n)>>0]=2;h=c[(s&p)+24>>2]|0;c[(s&p)+36>>2]=h;c[(s&p)+32>>2]=h;c[(s&p)+28>>2]=h;h=s+72|0;c[(h&p)>>2]=0;c[(h&p)+4>>2]=0}h=Cg(R)|0;break f}while(0);l=(h|0)==0;break c}while(0);if(!h){h=0;break b}else l=0}while(0);if((S|0)==77){S=0;l=(h|0)==0}if((a[(F&n)>>0]|0)==0?(J=c[(E&p)>>2]|0,(J|0)!=0):0){c[(E&p)>>2]=0;Bg(c[(J&p)+68>>2]|0)}if((h&255|0)!=5){S=86;break}if(a[(F&n)>>0]|0){S=86;break}if(!(gl(R)|0)){S=86;break}}if((S|0)==86)if(!l){S=96;break}if((a[(O&n)>>0]|0)==0?(H=R+40|0,c[(H&p)>>2]=(c[(H&p)>>2]|0)+1,(a[(f&n)+9>>0]|0)!=0):0){a[(f&n)+40>>0]=1;H=R+72|0;c[(f&p)+44>>2]=c[(H&p)>>2];c[(H&p)>>2]=f+32}l=P?2:1;a[(O&n)>>0]=l;if((l&255)>(d[(F&n)>>0]|0))a[(F&n)>>0]=l;if(P){l=c[(E&p)>>2]|0;c[(R&p)+76>>2]=f;k=e[(Q&o)>>1]|0;b[(Q&o)>>1]=G?k|32:k&65503;k=l+56|0;H=c[(k&p)>>2]|0;if((c[(K&p)>>2]|0)!=(d[(H&n)+29>>0]<<16|d[(H&n)+28>>0]<<24|d[(H&n)+30>>0]<<8|d[(H&n)+31>>0]|0)){h=Gg(c[(l&p)+68>>2]|0)|0;if(!h){h=c[(k&p)>>2]|0;S=c[(K&p)>>2]|0;a[(h&n)+28>>0]=S>>>24;a[(h&n)+29>>0]=S>>>16;a[(h&n)+30>>0]=S>>>8;a[(h&n)+31>>0]=S;h=0;S=96}}else S=96}}}else h=8}else{h=0;S=96}while(0);if((S|0)==96)if((h|0)==0&(g|0)!=0)h=hl(c[(R&p)>>2]|0,c[((c[(f&p)>>2]|0)&p)+496>>2]|0)|0;i=T;return h|0}function zg(e,f,g,h){e=e|0;f=f|0;g=g|0;h=h|0;var k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0;y=i;i=i+16|0;if((i|0)>=(j|0))fa();u=y;w=y+8|0;c[(w&p)>>2]=0;t=h&1;a:do if(!f){c[(u&p)>>2]=46865;c[(u&p)+4>>2]=10788;bd(11,13600,u);k=11}else{a[(e&n)+23>>0]=1;h=c[(e&p)+40>>2]|0;do if(!h){s=e+204|0;h=c[(s&p)>>2]|0;h=ac[c[8876>>2]&63](c[(h&p)+40>>2]|0,f,d[(h&n)+29>>0]&3)|0;if(!h){m=c[(s&p)>>2]|0;if((a[(m&n)+29>>0]|0)!=2){l=m+8|0;h=c[(l&p)>>2]|0;b:do if(!h)x=11;else{while(1){if((b[(h&o)+26>>1]|0)==0?(b[(h&o)+24>>1]&4)==0:0)break;h=c[(h&p)+36>>2]|0;if(!h){x=11;break b}}c[(l&p)>>2]=h;r=h;x=14}while(0);c:do if((x|0)==11?(c[(l&p)>>2]=0,q=c[(m&p)+4>>2]|0,(q|0)!=0):0){h=q;do{if(!(b[(h&o)+26>>1]|0)){r=h;x=14;break c}h=c[(h&p)+36>>2]|0}while((h|0)!=0)}while(0);if((x|0)==14?(k=rc[c[(m&p)+32>>2]&127](c[(m&p)+36>>2]|0,r)|0,!((k|0)==0|(k|0)==5)):0)break;k=ac[c[8876>>2]&63](c[(m&p)+40>>2]|0,f,2)|0;if(!k){k=7;break}}else k=0}else k=h;m=il(c[(s&p)>>2]|0,f,k)|0;c[(g&p)>>2]=m;if(!m)k=7;else{h=m+16|0;k=(t|0)!=0;if(!((c[(h&p)>>2]|0)==0|k)){k=e+184|0;c[(k&p)>>2]=(c[(k&p)>>2]|0)+1;k=0;break a}c[(h&p)>>2]=e;do if((f|0)>=0?(v=e+152|0,(((c[2514]|0)/(c[(v&p)>>2]|0)|0)+1|0)!=(f|0)):0){if(((a[(e&n)+15>>0]|0)==0?!((c[(e&p)+24>>2]|0)>>>0>>0|k):0)?(c[(c[(e&p)+60>>2]&p)>>2]|0)!=0:0){k=c[(e&p)+208>>2]|0;if(!k)k=0;else{k=kl(k,f,w)|0;if(k)break;k=c[(w&p)>>2]|0}v=e+188|0;c[(v&p)>>2]=(c[(v&p)>>2]|0)+1;k=ll(m,k)|0;if(!k){k=0;break a}else break}if((c[(e&p)+156>>2]|0)>>>0>>0)k=13;else{if(k){k=c[3164]|0;if(k)nc[k&3]();if((c[(e&p)+28>>2]|0)>>>0>=f>>>0)bi(c[(e&p)+56>>2]|0,f)|0;jl(e,f)|0;k=c[3166]|0;if(k)nc[k&3]()}fw(c[(m&p)+4>>2]|0,0,c[(v&p)>>2]|0)|0;k=0;break a}}else x=21;while(0);if((x|0)==21){c[(u&p)>>2]=46945;c[(u&p)+4>>2]=10788;bd(11,13600,u);k=11}ml(m)}}else k=h;while(0);if((c[(e&p)+120>>2]|0)==0?(c[((c[(e&p)+204>>2]|0)&p)+12>>2]|0)==0:0)nl(e);c[(g&p)>>2]=0}while(0);i=y;return k|0}function Ag(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,o=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0;y=i;i=i+16|0;if((i|0)>=(j|0))fa();x=y;v=b+4|0;r=c[((c[(v&p)>>2]|0)&p)+4>>2]|0;w=c[(r&p)>>2]|0;u=b+24|0;q=c[((c[((c[(u&p)>>2]|0)&p)+4>>2]|0)&p)+32>>2]|0;r=c[(r&p)+32>>2]|0;s=(q|0)<(r|0)?q:r;t=((q|0)<0)<<31>>31;m=sw(q|0,t|0,d|0,0)|0;o=G;if((q|0)==(r|0))b=0;else b=(a[(w&n)+15>>0]|0)==0?0:8;a:do if((b|0)==0&(q|0)>0){d=dw(m|0,o|0,q|0,t|0)|0;l=((r|0)<0)<<31>>31;k=(f|0)==0;h=G;b=r;while(1){c[(x&p)>>2]=0;f=qw(d|0,h|0,r|0,l|0)|0;if((f|0)!=(((c[2514]|0)>>>0)/(b>>>0)|0|0)){b=zg(w,f+1|0,x,0)|0;g=c[(x&p)>>2]|0;if(!b){b=Gg(g)|0;if(!b){z=rw(d|0,h|0,q|0,t|0)|0;f=c[(g&p)+4>>2]|0;b=rw(d|0,h|0,r|0,l|0)|0;kw(f+b|0,e+z|0,s|0)|0;a[(c[(g&p)+8>>2]&n)>>0]=0;if((d|0)==0&(h|0)==0&k){z=c[((c[((c[(u&p)>>2]|0)&p)+4>>2]|0)&p)+44>>2]|0;a[(f+b&n)+28>>0]=z>>>24;a[(f+b&n)+29>>0]=z>>>16;a[(f+b&n)+30>>0]=z>>>8;a[(f+b&n)+31>>0]=z;b=0}else b=0}}if(g)Bg(g)}else b=0;d=jw(d|0,h|0,r|0,l|0)|0;f=G;if(!((b|0)==0&((f|0)<(o|0)|(f|0)==(o|0)&d>>>0>>0)))break a;h=f;b=c[((c[((c[(v&p)>>2]|0)&p)+4>>2]|0)&p)+32>>2]|0}}while(0);i=y;return b|0}function Bg(a){a=a|0;var d=0,e=0,f=0;d=c[(a&p)+16>>2]|0;if(!(b[(a&o)+24>>1]&64)){ol(a);a=c[(d&p)+120>>2]|0}else{f=d+120|0;e=(c[(f&p)>>2]|0)+-1|0;c[(f&p)>>2]=e;f=d+136|0;c[(a&p)+12>>2]=c[(f&p)>>2];c[(f&p)>>2]=a;a=e}if((a|0)==0?(c[((c[(d&p)+204>>2]|0)&p)+12>>2]|0)==0:0)nl(d);return}function Cg(d){d=d|0;var f=0,g=0,h=0,i=0,j=0,k=0;i=d+44|0;if(!(c[(i&p)>>2]|0)){j=c[(d&p)+12>>2]|0;k=c[(j&p)+56>>2]|0;f=Gg(c[(j&p)+68>>2]|0)|0;if(!f){f=k+0|0;g=44680|0;h=f+16|0;do{a[(f&n)>>0]=a[(g&n)>>0]|0;f=f+1|0;g=g+1|0}while((f|0)<(h|0));f=d+32|0;a[(k&n)+16>>0]=(c[(f&p)>>2]|0)>>>8;a[(k&n)+17>>0]=(c[(f&p)>>2]|0)>>>16;a[(k&n)+18>>0]=1;a[(k&n)+19>>0]=1;a[(k&n)+20>>0]=(c[(f&p)>>2]|0)-(c[(d&p)+36>>2]|0);a[(k&n)+21>>0]=64;a[(k&n)+22>>0]=32;a[(k&n)+23>>0]=32;f=k+24|0;h=f+76|0;do{a[(f&n)>>0]=0;f=f+1|0}while((f|0)<(h|0));pl(j,13);f=d+22|0;b[(f&o)>>1]=e[(f&o)>>1]|0|2;f=a[(d&n)+17>>0]|0;a[(k&n)+52>>0]=0;a[(k&n)+53>>0]=0;a[(k&n)+54>>0]=0;a[(k&n)+55>>0]=f;f=a[(d&n)+18>>0]|0;a[(k&n)+64>>0]=0;a[(k&n)+65>>0]=0;a[(k&n)+66>>0]=0;a[(k&n)+67>>0]=f;c[(i&p)>>2]=1;a[(k&n)+31>>0]=1;f=0}}else f=0;return f|0}function Dg(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0;g=c[(b&p)+4>>2]|0;c[(g&p)+4>>2]=c[(b&p)>>2];b=c[(g&p)+12>>2]|0;f=c[(b&p)+56>>2]|0;b=Gg(c[(b&p)+68>>2]|0)|0;if((b|0)==0?(i=d<<2,a[(f+i&n)+36>>0]=e>>>24,a[(f+i&n)+37>>0]=e>>>16,a[(f+i&n)+38>>0]=e>>>8,h=e&255,a[(f+i&n)+39>>0]=h,(d|0)==7):0)a[(g&n)+18>>0]=h;return b|0}function Eg(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0;h=a+20|0;b=c[(h&p)>>2]|0;d=(b|0)>0;if(d){e=c[(a&p)+16>>2]|0;g=0;do{f=c[(e+(g<<4)&p)+4>>2]|0;if(f)c[((c[(f&p)+4>>2]|0)&p)+4>>2]=c[(f&p)>>2];g=g+1|0}while((g|0)!=(b|0));if(d){g=a+16|0;f=0;do{d=c[((c[(g&p)>>2]|0)+(f<<4)&p)+12>>2]|0;if(d){ql(d);b=c[(h&p)>>2]|0}f=f+1|0}while((f|0)<(b|0))}}b=a+24|0;c[(b&p)>>2]=c[(b&p)>>2]&-3;rl(a);sl(a);return}function Fg(d,f){d=d|0;f=f|0;var g=0,h=0,i=0,j=0,k=0;h=c[(d&p)+4>>2]|0;k=h+22|0;g=e[(k&o)>>1]|0;b[(k&o)>>1]=(f|0)==1?g|16:g&65519;g=yg(d,0)|0;do if(!g){h=h+12|0;i=c[((c[(h&p)>>2]|0)&p)+56>>2]|0;j=i+18|0;g=a[(j&n)>>0]|0;f=f&255;if(g<<24>>24==f<<24>>24?(a[(i&n)+19>>0]|0)==g<<24>>24:0){g=0;break}g=yg(d,2)|0;if(!g){g=Gg(c[((c[(h&p)>>2]|0)&p)+68>>2]|0)|0;if(!g){a[(j&n)>>0]=f;a[(i&n)+19>>0]=f;g=0}}}while(0);b[(k&o)>>1]=e[(k&o)>>1]&65519;return g|0}function Gg(a){a=a|0;var b=0;b=c[(a&p)+16>>2]|0;if((c[(b&p)+148>>2]|0)>>>0>(c[(b&p)+152>>2]|0)>>>0)a=tl(a)|0;else a=ul(a)|0;return a|0}function Hg(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,o=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0;A=i;i=i+32|0;if((i|0)>=(j|0))fa();u=A+16|0;v=A;k=A+12|0;m=A+8|0;g=c[(b&p)+40>>2]|0;a:do if(!g){z=b+16|0;if((d[(z&n)>>0]|0)>=3){b:do if(!(a[(b&n)+15>>0]|0)){if(c[(b&p)+208>>2]|0){l=b+204|0;h=vl(c[(l&p)>>2]|0)|0;c[(m&p)>>2]=0;if(!h){g=zg(b,1,m,0)|0;h=c[(m&p)>>2]|0;c[(h&p)+12>>2]=0;if(h){k=h;y=9}}else{k=0;y=9}if((y|0)==9){g=wl(b,h,c[(b&p)+24>>2]|0,1)|0;if(k)Bg(k)}if(g)break a;h=c[(l&p)>>2]|0;g=c[(h&p)>>2]|0;if(!g)break;while(1){xl(g);g=c[(h&p)>>2]|0;if(!g)break b}}l=b+18|0;if((a[(l&n)>>0]|0)==0?(c[(b&p)+24>>2]|0)!=0:0){g=zg(b,1,k,0)|0;k=c[(k&p)>>2]|0;if(!g){g=Gg(k)|0;if(!g){yl(k);a[(l&n)>>0]=1;g=0}}if(k)Bg(k);if(g)break a}if(((e|0)!=0?(a[(b&n)+5>>0]|0)!=4:0)?(x=b+64|0,t=c[(x&p)>>2]|0,(c[(t&p)>>2]|0)!=0):0){a[(b&n)+19>>0]=1;k=a[(e&n)>>0]|0;if(!(k<<24>>24)){l=0;h=0}else{l=0;h=0;do{l=(k<<24>>24)+l|0;h=h+1|0;k=a[(e+h&n)>>0]|0}while(k<<24>>24!=0)}s=b+72|0;g=s;k=c[(g&p)>>2]|0;g=c[(g&p)+4>>2]|0;if(!(a[(b&n)+8>>0]|0))m=g;else{if((k|0)==0&(g|0)==0){k=0;g=0}else{g=jw(k|0,g|0,-1,-1)|0;k=c[(b&p)+148>>2]|0;g=qw(g|0,G|0,k|0,0)|0;g=jw(g|0,G|0,1,0)|0;k=sw(g|0,G|0,k|0,0)|0;g=G}m=s;c[(m&p)>>2]=k;c[(m&p)+4>>2]=g;m=g}g=((c[2514]|0)/(c[(b&p)+152>>2]|0)|0)+1|0;a[(u&n)>>0]=g>>>24;o=u+1|0;a[(o&n)>>0]=g>>>16;q=u+2|0;a[(q&n)>>0]=g>>>8;r=u+3|0;a[(r&n)>>0]=g;g=tc[c[((c[(t&p)>>2]|0)&p)+12>>2]&31](t,u,4,k,m)|0;if(g)break a;g=c[(x&p)>>2]|0;m=jw(k|0,m|0,4,0)|0;k=G;g=tc[c[((c[(g&p)>>2]|0)&p)+12>>2]&31](g,e,h,m,k)|0;if(g)break a;g=c[(x&p)>>2]|0;m=jw(m|0,k|0,h|0,((h|0)<0)<<31>>31|0)|0;k=G;a[(u&n)>>0]=h>>>24;a[(o&n)>>0]=h>>>16;a[(q&n)>>0]=h>>>8;a[(r&n)>>0]=h;g=tc[c[((c[(g&p)>>2]|0)&p)+12>>2]&31](g,u,4,m,k)|0;if(g)break a;t=c[(x&p)>>2]|0;g=jw(m|0,k|0,4,0)|0;a[(u&n)>>0]=l>>>24;a[(o&n)>>0]=l>>>16;a[(q&n)>>0]=l>>>8;a[(r&n)>>0]=l;g=tc[c[((c[(t&p)>>2]|0)&p)+12>>2]&31](t,u,4,g,G)|0;if(g)break a;t=c[(x&p)>>2]|0;g=jw(m|0,k|0,8,0)|0;g=tc[c[((c[(t&p)>>2]|0)&p)+12>>2]&31](t,14808,8,g,G)|0;if(g)break a;t=h+20|0;g=s;t=jw(c[(g&p)>>2]|0,c[(g&p)+4>>2]|0,t|0,((t|0)<0)<<31>>31|0)|0;g=s;c[(g&p)>>2]=t;c[(g&p)+4>>2]=G;g=c[(x&p)>>2]|0;g=rc[c[((c[(g&p)>>2]|0)&p)+24>>2]&127](g,v)|0;if(g)break a;t=v;r=c[(t&p)+4>>2]|0;g=s;h=c[(g&p)>>2]|0;g=c[(g&p)+4>>2]|0;if((r|0)>(g|0)|((r|0)==(g|0)?(c[(t&p)>>2]|0)>>>0>h>>>0:0)?(w=c[(x&p)>>2]|0,w=ac[c[((c[(w&p)>>2]|0)&p)+16>>2]&63](w,h,g)|0,(w|0)!=0):0){g=w;break a}}g=zl(b,0)|0;if(g)break a;h=b+204|0;g=Al(b,vl(c[(h&p)>>2]|0)|0)|0;if(g)break a;g=c[(h&p)>>2]|0;h=c[(g&p)>>2]|0;if(h)do{xl(h);h=c[(g&p)>>2]|0}while((h|0)!=0);h=c[(b&p)+24>>2]|0;if(h>>>0>(c[(b&p)+32>>2]|0)>>>0){g=Bl(b,h-((h|0)==(((c[2514]|0)/(c[(b&p)+152>>2]|0)|0)+1|0)&1)|0)|0;if(!(g|f))y=46}else if(!f)y=46;else break;if((y|0)==46)g=Ig(b,e)|0;if(g)break a}else{g=c[(b&p)+88>>2]|0;if(g)do{c[(g&p)+16>>2]=1;g=c[(g&p)+44>>2]|0}while((g|0)!=0)}while(0);if(!(c[(b&p)+208>>2]|0)){a[(z&n)>>0]=5;g=0}else g=0}else g=0}while(0);i=A;return g|0}function Ig(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,i=0;g=b+60|0;h=c[(g&p)>>2]|0;i=c[(h&p)>>2]|0;if(!((i|0)!=0?(f=ac[c[(i&p)+40>>2]&63](h,21,e)|0,!((f|0)==0|(f|0)==12)):0))if(!(a[(b&n)+7>>0]|0)){f=c[(g&p)>>2]|0;f=rc[c[((c[(f&p)>>2]|0)&p)+20>>2]&127](f,d[(b&n)+11>>0]|0)|0}else f=0;return f|0}function Jg(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0;g=a[(b&n)+8>>0]|0;do if(!(g<<24>>24))f=0;else{k=c[(b&p)+4>>2]|0;c[(k&p)+4>>2]=c[(b&p)>>2];if(g<<24>>24==2){h=c[(k&p)>>2]|0;i=h+40|0;g=c[(i&p)>>2]|0;do if(!g){g=h+16|0;if(((a[(g&n)>>0]|0)==2?(a[(h&n)+4>>0]|0)!=0:0)?(a[(h&n)+5>>0]|0)==1:0){a[(g&n)>>0]=1;break}f=h+100|0;c[(f&p)>>2]=(c[(f&p)>>2]|0)+1;f=Cl(h,d[(h&n)+19>>0]|0,1)|0;h=f&255;if((h|0)==10|(h|0)==13){c[(i&p)>>2]=f;a[(g&n)>>0]=6;j=10}else j=10}else{f=g;j=10}while(0);if((j|0)==10?(f|0)!=0&(e|0)==0:0)break;f=b+20|0;c[(f&p)>>2]=(c[(f&p)>>2]|0)+-1;a[(k&n)+20>>0]=1;f=k+60|0;ei(c[(f&p)>>2]|0);c[(f&p)>>2]=0}Dl(b);f=0}while(0);return f|0}function Kg(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,o=0,q=0,r=0,s=0;s=i;i=i+16|0;if((i|0)>=(j|0))fa();h=s;a:do if((a[(b&n)+8>>0]|0)==2){r=c[(b&p)+4>>2]|0;c[(r&p)+4>>2]=c[(b&p)>>2];do if(a[(r&n)+17>>0]|0){q=c[(r&p)>>2]|0;f=r+8|0;b=c[(f&p)>>2]|0;if(b)do{o=b+72|0;a[(o&n)>>0]=d[(o&n)>>0]&251;b=c[(b&p)+8>>2]|0}while((b|0)!=0);if(!(a[(r&n)+18>>0]|0)){o=r+44|0;g=c[(o&p)>>2]|0;if(g>>>0<2)b=0;else{b=g+-2|0;b=b-((b>>>0)%(((((c[(r&p)+36>>2]|0)>>>0)/5|0)+1|0)>>>0)|0)|0;b=((b+1|0)==(((c[2514]|0)>>>0)/((c[(r&p)+32>>2]|0)>>>0)|0|0)?3:2)+b|0}if((b|0)!=(g|0)?(g|0)!=((((c[2514]|0)>>>0)/((c[(r&p)+32>>2]|0)>>>0)|0)+1|0):0){k=r+12|0;l=c[((c[(k&p)>>2]|0)&p)+56>>2]|0;l=d[(l&n)+37>>0]<<16|d[(l&n)+36>>0]<<24|d[(l&n)+38>>0]<<8|d[(l&n)+39>>0];m=El(r,g,l)|0;if(m>>>0>g>>>0){c[(h&p)>>2]=56396;c[(h&p)+4>>2]=10788;bd(11,13600,h);b=11;break a}b:do if(m>>>0>>0){b=c[(f&p)>>2]|0;c:do if(b){while(1){if(b)break;b=c[2]|0;if(!b)break c}b=Fl(b,0,0)|0;if(b){f=0;break b}}while(0);do{b=Gl(r,m,g,1)|0;g=g+-1|0;f=(b|0)==0}while(g>>>0>m>>>0&f)}else{f=1;b=0}while(0);if(((b|0)==101|f)&(l|0)!=0){b=Gg(c[((c[(k&p)>>2]|0)&p)+68>>2]|0)|0;l=(c[((c[(k&p)>>2]|0)&p)+56>>2]|0)+32|0;a[(l&n)>>0]=0;a[(l&n)+1>>0]=0;a[(l&n)+2>>0]=0;a[(l&n)+3>>0]=0;l=(c[((c[(k&p)>>2]|0)&p)+56>>2]|0)+36|0;a[(l&n)>>0]=0;a[(l&n)+1>>0]=0;a[(l&n)+2>>0]=0;a[(l&n)+3>>0]=0;l=c[((c[(k&p)>>2]|0)&p)+56>>2]|0;a[(l&n)+28>>0]=m>>>24;a[(l&n)+29>>0]=m>>>16;a[(l&n)+30>>0]=m>>>8;a[(l&n)+31>>0]=m;a[(r&n)+19>>0]=1;c[(o&p)>>2]=m}if(!b)break;Hl(q)|0;break a}c[(h&p)>>2]=56391;c[(h&p)+4>>2]=10788;bd(11,13600,h);b=11;break a}}while(0);b=c[(r&p)>>2]|0;if(a[(r&n)+19>>0]|0)c[(b&p)+24>>2]=c[(r&p)+44>>2];b=Hg(b,e,0)|0}else b=0;while(0);i=s;return b|0}function Lg(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0;m=i;i=i+16|0;if((i|0)>=(j|0))fa();h=m;l=c[(b&p)+4>>2]|0;c[(l&p)+4>>2]=c[(b&p)>>2];a:do if(!e){e=c[(l&p)+8>>2]|0;if(e){while(1){if(e)break;e=c[2]|0;if(!e)break a}e=Fl(e,0,0)|0;g=(e|0)==0;if(!g){g=g?f:0;k=6}}}else{g=f;k=6}while(0);if((k|0)==6)Il(b,e,g)|0;if((a[(b&n)+8>>0]|0)==2){Hl(c[(l&p)>>2]|0)|0;if(!(dl(l,1,h,0)|0)){e=c[(h&p)>>2]|0;g=c[(e&p)+56>>2]|0;g=d[(g&n)+29>>0]<<16|d[(g&n)+28>>0]<<24|d[(g&n)+30>>0]<<8|d[(g&n)+31>>0];if(!g)g=c[((c[(l&p)>>2]|0)&p)+24>>2]|0;c[(l&p)+44>>2]=g;if(e)Bg(c[(e&p)+68>>2]|0)}a[(l&n)+20>>0]=1;g=l+60|0;ei(c[(g&p)>>2]|0);c[(g&p)>>2]=0}Dl(b);i=m;return}function Mg(d){d=d|0;var e=0,f=0,g=0,h=0,i=0,j=0,k=0;j=d+76|0;if((c[(j&p)>>2]|0)==1691352191?(Jl(d)|0)==0:0){Kl(d,0);Ll(d);i=d+20|0;k=d+16|0;e=c[(k&p)>>2]|0;if((c[(i&p)>>2]|0)>0){h=0;do{g=e+(h<<4)+4|0;f=c[(g&p)>>2]|0;if((f|0)!=0?(Ml(f),c[(g&p)>>2]=0,(h|0)!=1):0)c[(e+(h<<4)&p)+12>>2]=0;h=h+1|0;e=c[(k&p)>>2]|0}while((h|0)<(c[(i&p)>>2]|0))}e=c[(e&p)+28>>2]|0;if(e)ql(e);rl(d);sl(d);h=0;do{e=c[(d+(h<<2)&p)+336>>2]|0;if(e)do{g=e;e=c[(e&p)+28>>2]|0;if(g)do{Nl(d,g);f=g;g=c[(g&p)+8>>2]|0;mg(d,f)}while((g|0)!=0)}while((e|0)!=0);h=h+1|0}while((h|0)!=23);f=d+428|0;e=c[(d&p)+436>>2]|0;if(e)do{h=c[(e&p)+8>>2]|0;g=c[(h&p)+16>>2]|0;if(g)cc[g&31](c[(h&p)+8>>2]|0);g=c[(h&p)+36>>2]|0;if(g)cc[g&31](c[(h&p)+28>>2]|0);g=c[(h&p)+56>>2]|0;if(g)cc[g&31](c[(h&p)+48>>2]|0);mg(d,h);e=c[(e&p)>>2]|0}while((e|0)!=0);Ol(f);h=d+308|0;e=c[(d&p)+316>>2]|0;if(e)do{g=c[(e&p)+8>>2]|0;f=c[(g&p)+12>>2]|0;if(f)cc[f&31](c[(g&p)+8>>2]|0);mg(d,g);e=c[(e&p)>>2]|0}while((e|0)!=0);Ol(h);c[(d&p)+52>>2]=0;f=d+236|0;e=c[(f&p)>>2]|0;do if(e){g=e+8|0;if(!(b[(g&o)>>1]&9312)){b[(g&o)>>1]=1;break}else{vg(e);e=c[(f&p)>>2]|0;break}}else e=0;while(0);Mh(e);g=d+168|0;if((c[(g&p)>>2]|0)>0){e=d+172|0;f=0;do{h=c[(d&p)>>2]|0;jc[c[(h&p)+52>>2]&15](h,c[((c[(e&p)>>2]|0)+(f<<2)&p)>>2]|0);f=f+1|0}while((f|0)<(c[(g&p)>>2]|0))}else e=d+172|0;mg(d,c[(e&p)>>2]|0);c[(j&p)>>2]=-1254786768;mg(d,c[((c[(k&p)>>2]|0)&p)+28>>2]|0);c[(j&p)>>2]=-1623446221;if(a[(d&n)+251>>0]|0)Wc(c[(d&p)+276>>2]|0);Wc(d)}return}function Ng(a){a=a|0;var b=0;b=c[(a&p)+40>>2]|0;if((b|0)==1369188723|(b|0)==-1108210269)b=Pg(a)|0;else b=0;Pl(a);return b|0}function Og(b,d){b=b|0;d=d|0;do if(b)if((a[(b&n)+65>>0]|0)!=0|(d|0)==3082){Ql(b);b=7;break}else{b=c[(b&p)+56>>2]&d;break}else b=d&255;while(0);return b|0}function Pg(a){a=a|0;var d=0,e=0,f=0,g=0,h=0,k=0;g=i;i=i+16|0;if((i|0)>=(j|0))fa();e=g;f=c[(a&p)>>2]|0;Rl(a)|0;if((c[(a&p)+76>>2]|0)>-1){hh(a)|0;d=a+44|0;mg(f,c[(d&p)>>2]|0);c[(d&p)>>2]=0;d=a+88|0;e=b[(d&o)>>1]|0;if(e&16)b[(d&o)>>1]=e|8}else{d=c[(a&p)+80>>2]|0;if((d|0)!=0?(b[(a&o)+88>>1]&8)!=0:0){h=a+44|0;k=c[(h&p)>>2]|0;c[(e&p)>>2]=k;ug(f,d,(k|0)!=0?10344:0,e);mg(f,c[(h&p)>>2]|0);c[(h&p)>>2]=0}}d=a+44|0;mg(c[(a&p)>>2]|0,c[(d&p)>>2]|0);c[(d&p)>>2]=0;c[(a&p)+20>>2]=0;d=a+136|0;c[(d&p)>>2]=0;c[(d&p)+4>>2]=0;c[(a&p)+40>>2]=649915045;i=g;return c[(f&p)+56>>2]&c[(a&p)+80>>2]|0}function Qg(a){a=a|0;var d=0;if(b[(a&o)+8>>1]&9312)vg(a);d=a+24|0;if(c[(d&p)>>2]|0){mg(c[(a&p)+32>>2]|0,c[(a&p)+20>>2]|0);c[(d&p)>>2]=0}c[(a&p)+16>>2]=0;return}function Rg(a){a=a|0;var d=0,f=0,g=0;d=a+8|0;if(b[(d&o)>>1]&16384){f=a+12|0;g=(c[(a&p)>>2]|0)+(c[(f&p)>>2]|0)|0;if(!(eh(a,(g|0)<1?1:g,1)|0)){fw((c[(a&p)+16>>2]|0)+(c[(f&p)>>2]|0)|0,0,c[(a&p)>>2]|0)|0;c[(f&p)>>2]=(c[(f&p)>>2]|0)+(c[(a&p)>>2]|0);b[(d&o)>>1]=(e[(d&o)>>1]|0)&48639;d=0}else d=7}else d=0;return d|0}function Sg(d,e){d=d|0;e=e|0;var f=0;do if(d){f=b[(d&o)+8>>1]|0;if((f&514)==514?(a[(d&n)+10>>0]|0)==e<<24>>24:0){f=c[(d&p)+16>>2]|0;break}if(!(f&1))f=Sl(d,e)|0;else f=0}else f=0;while(0);return f|0}function Tg(a,d){a=a|0;d=d|0;var e=0,f=0,g=0;e=a+8|0;f=b[(e&o)>>1]|0;if(!(f&16))if(!(Sg(a,d)|0))e=0;else{f=b[(e&o)>>1]|0;g=4}else g=4;if((g|0)==4){e=c[(a&p)+12>>2]|0;if(f&16384)e=(c[(a&p)>>2]|0)+e|0}return e|0}function Ug(b){b=b|0;var d=0.0,f=0,g=0,k=0;k=i;i=i+16|0;if((i|0)>=(j|0))fa();g=k;f=e[(b&o)+8>>1]|0;do if(!(f&8)){if(f&4){f=b;d=+((c[(f&p)>>2]|0)>>>0)+4294967296.0*+(c[(f&p)+4>>2]|0);break}if(!(f&18))d=0.0;else{h[(g&q)>>3]=0.0;Tl(c[(b&p)+16>>2]|0,g,c[(b&p)+12>>2]|0,a[(b&n)+10>>0]|0)|0;d=+h[(g&q)>>3]}}else d=+h[(b&q)>>3];while(0);i=k;return +d}function Vg(b){b=b|0;var d=0.0,f=0,g=0,k=0;k=i;i=i+16|0;if((i|0)>=(j|0))fa();g=k;f=e[(b&o)+8>>1]|0;do if(!(f&4)){if(!(f&8)){if(!(f&18)){b=0;f=0;break}f=g;c[(f&p)>>2]=0;c[(f&p)+4>>2]=0;Ul(c[(b&p)+16>>2]|0,g,c[(b&p)+12>>2]|0,a[(b&n)+10>>0]|0)|0;f=g;b=c[(f&p)+4>>2]|0;f=c[(f&p)>>2]|0;break}d=+h[(b&q)>>3];if(!(d<=-9223372036854775808.0))if(!(d>=9223372036854775808.0)){b=+R(d)>=1.0?(d>0.0?~~+da(+Q(d/4294967296.0),4294967295.0)>>>0:~~+ba((d-+(~~d>>>0))/4294967296.0)>>>0):0;f=~~d>>>0}else{b=2147483647;f=-1}else{b=-2147483648;f=0}}else{f=b;b=c[(f&p)+4>>2]|0;f=c[(f&p)>>2]|0}while(0);G=b;i=k;return f|0}function Wg(b,d,e,f,g){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;if((Xg(c[(b&p)>>2]|0,d,e,f,g)|0)==18){c[(b&p)+20>>2]=18;a[(b&n)+25>>0]=1;Xg(c[(b&p)>>2]|0,10096,-1,1,0)|0}return}function Xg(d,f,g,h,i){d=d|0;f=f|0;g=g|0;h=h|0;i=i|0;var j=0,k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0;a:do if(!f){j=d+8|0;if(!(b[(j&o)>>1]&9312)){b[(j&o)>>1]=1;j=0;break}else{vg(d);j=0;break}}else{r=d+32|0;j=c[(r&p)>>2]|0;if(!j)u=1e9;else u=c[(j&p)+88>>2]|0;t=h<<24>>24==0;q=t?16:2;if((g|0)<0){b:do if(h<<24>>24!=1)if((u|0)<0)k=0;else{g=0;while(1){k=g+2|0;if(!((a[(f+(g|1)&n)>>0]|a[(f+g&n)>>0])<<24>>24)){k=g;break b}if((k|0)>(u|0))break;else g=k}}else{k=f;while(1)if(!(a[(k&n)>>0]|0))break;else k=k+1|0;k=k-f&1073741823;k=(k|0)>(u|0)?u+1|0:k}while(0);s=k;m=(q&65535|512)&65535}else{s=g;m=q}do if((i|0)==(-1|0)){if(!(m&512))j=s;else j=s+(h<<24>>24==1?1:2)|0;if((s|0)>(u|0)){j=18;break a}if(fh(d,(j|0)>32?j:32)|0){j=7;break a}kw(c[(d&p)+16>>2]|0,f|0,j|0)|0;q=d+8|0;j=m}else{g=(i|0)==75;l=d+8|0;if(!((b[(l&o)>>1]&9312)==0?(c[(d&p)+24>>2]|0)==0:0))Qg(d);c[(d&p)+16>>2]=f;if(!g){c[(d&p)+36>>2]=i;q=l;j=(m&65535|((i|0)==0?2048:1024))&65535;break}c[(d&p)+20>>2]=f;j=c[(r&p)>>2]|0;do if(!j)j=lc[c[8792>>2]&127](f)|0;else{if((c[(j&p)+276>>2]|0)>>>0<=f>>>0?(c[(j&p)+280>>2]|0)>>>0>f>>>0:0){j=e[(j&o)+248>>1]|0;break}j=lc[c[8792>>2]&127](f)|0}while(0);c[(d&p)+24>>2]=j;q=l;j=m}while(0);m=d+12|0;c[(m&p)>>2]=s;b[(q&o)>>1]=j;f=t?1:h;l=d+10|0;a[(l&n)>>0]=f;do if(f<<24>>24!=1&(s|0)>1){g=d+16|0;k=c[(g&p)>>2]|0;j=a[(k&n)>>0]|0;k=a[(k&n)+1>>0]|0;if(!(j<<24>>24==-1&k<<24>>24==-2))if(k<<24>>24!=-1|j<<24>>24!=-2)break;else j=3;else j=2;if(Vl(d)|0){j=7;break a}f=(c[(m&p)>>2]|0)+-2|0;c[(m&p)>>2]=f;i=c[(g&p)>>2]|0;lw(i|0,i+2|0,f|0)|0;a[((c[(g&p)>>2]|0)+(c[(m&p)>>2]|0)&n)>>0]=0;a[((c[(g&p)>>2]|0)+(c[(m&p)>>2]|0)&n)+1>>0]=0;b[(q&o)>>1]=e[(q&o)>>1]|512;a[(l&n)>>0]=j}while(0);j=(s|0)>(u|0)?18:0}while(0);return j|0}function Yg(a,c){a=a|0;c=+c;var d=0,e=0,f=0,g=0;g=i;i=i+16|0;if((i|0)>=(j|0))fa();e=g+8|0;f=g;d=a+8|0;if(!(b[(d&o)>>1]&9312))b[(d&o)>>1]=1;else vg(a);h[(e&q)>>3]=c;h[(f&q)>>3]=+h[(e&q)>>3];if(!(+h[(e&q)>>3]!=+h[(f&q)>>3])){h[(a&q)>>3]=c;b[(d&o)>>1]=8}i=g;return}function Zg(a,d,e){a=a|0;d=d|0;e=e|0;var f=0;f=a+8|0;if(!(b[(f&o)>>1]&9312))b[(f&o)>>1]=1;else vg(a);c[(a&p)>>2]=d;c[(a&p)+4>>2]=e;b[(f&o)>>1]=4;return}function _g(a,d){a=a|0;d=d|0;var f=0,g=0,h=0;f=a+8|0;if(b[(f&o)>>1]&9312)vg(a);c[(a&p)>>2]=c[(d&p)>>2];c[(a&p)+4>>2]=c[(d&p)+4>>2];c[(a&p)+8>>2]=c[(d&p)+8>>2];c[(a&p)+12>>2]=c[(d&p)+12>>2];c[(a&p)+16>>2]=c[(d&p)+16>>2];h=e[(f&o)>>1]|0;g=h&64511;b[(f&o)>>1]=g;if((h&18|0)!=0?(b[(d&o)+8>>1]&2048)==0:0){b[(f&o)>>1]=g|4096;f=Vl(a)|0}else f=0;return f|0}function $g(d,e){d=d|0;e=e|0;var f=0;f=d+8|0;if(!((b[(f&o)>>1]&9312)==0?(c[(d&p)+24>>2]|0)==0:0))Qg(d);b[(f&o)>>1]=16400;c[(d&p)+12>>2]=0;c[(d&p)>>2]=(e|0)<0?0:e;a[(d&n)+10>>0]=1;c[(d&p)+16>>2]=0;return}function ah(a){a=a|0;var b=0,d=0;d=i;i=i+16|0;if((i|0)>=(j|0))fa();b=d;if(a)if(!(c[(a&p)>>2]|0)){bd(21,47360,b);a=1}else a=0;else{bd(21,47320,b);a=1}i=d;return a|0}function bh(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0.0;f=i;i=i+16|0;if((i|0)>=(j|0))fa();e=f;if((c[(a&p)>>2]|0)>1?(d=c[(a&p)+72>>2]|0,(d|0)!=0):0)d=rc[d&127](a,b)|0;else{d=rc[c[(a&p)+64>>2]&127](a,e)|0;g=+h[(e&q)>>3]*864.0e5;a=+R(g)>=1.0?(g>0.0?~~+da(+Q(g/4294967296.0),4294967295.0)>>>0:~~+ba((g-+(~~g>>>0))/4294967296.0)>>>0):0;c[(b&p)>>2]=~~g>>>0;c[(b&p)+4>>2]=a}i=f;return d|0}function ch(d,e){d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0;a:do if((d|0)!=0&(e|0)!=0){i=d+(e*40|0)|0;j=c[(d&p)+32>>2]|0;g=j+65|0;h=a[(g&n)>>0]|0;if(c[(j&p)+520>>2]|0){e=d;while(1){if(c[(e&p)+24>>2]|0)mg(j,c[(e&p)+20>>2]|0);e=e+40|0;if(e>>>0>=i>>>0)break a}}do{e=d+8|0;if(!(b[(e&o)>>1]&9312)){f=d+24|0;if(c[(f&p)>>2]|0){mg(j,c[(d&p)+20>>2]|0);c[(f&p)>>2]=0}}else Qg(d);b[(e&o)>>1]=128;d=d+40|0}while(d>>>0>>0);a[(g&n)>>0]=h}while(0);return}function dh(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0;f=i;i=i+16|0;if((i|0)>=(j|0))fa();g=f;c[(g&p)>>2]=e;e=Wk(b,d,g)|0;mg(b,c[(a&p)>>2]|0);c[(a&p)>>2]=e;i=f;return}function eh(a,d,f){a=a|0;d=d|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,q=0;l=a+24|0;g=c[(l&p)>>2]|0;do if((g|0)<(d|0)){k=(d|0)<32?32:d;d=(g|0)>0;if((f|0)!=0&d?(h=a+16|0,i=c[(h&p)>>2]|0,j=a+20|0,(i|0)==(c[(j&p)>>2]|0)):0){g=Wl(c[(a&p)+32>>2]|0,i,k,((k|0)<0)<<31>>31)|0;c[(j&p)>>2]=g;c[(h&p)>>2]=g;f=0}else{g=a+32|0;if(d){d=a+20|0;mg(c[(g&p)>>2]|0,c[(d&p)>>2]|0)}else d=a+20|0;g=mh(c[(g&p)>>2]|0,k,((k|0)<0)<<31>>31)|0;c[(d&p)>>2]=g}if(!g){f=a+8|0;if(!(b[(f&o)>>1]&9312))b[(f&o)>>1]=1;else vg(a);c[(a&p)+16>>2]=0;c[(l&p)>>2]=0;f=7;break}d=c[(a&p)+32>>2]|0;do if(!d)d=lc[c[8792>>2]&127](g)|0;else{if((c[(d&p)+276>>2]|0)>>>0<=g>>>0?(c[(d&p)+280>>2]|0)>>>0>g>>>0:0){d=e[(d&o)+248>>1]|0;break}d=lc[c[8792>>2]&127](g)|0}while(0);c[(l&p)>>2]=d;q=21}else q=21;while(0);if((q|0)==21){if(((f|0)!=0?(m=c[(a&p)+16>>2]|0,(m|0)!=0):0)?(n=c[(a&p)+20>>2]|0,(m|0)!=(n|0)):0)kw(n|0,m|0,c[(a&p)+12>>2]|0)|0;d=a+8|0;f=b[(d&o)>>1]|0;if(!(f&1024))g=a+16|0;else{g=a+16|0;cc[c[(a&p)+36>>2]&31](c[(g&p)>>2]|0);f=b[(d&o)>>1]|0}c[(g&p)>>2]=c[(a&p)+20>>2];b[(d&o)>>1]=f&58367;f=0}return f|0}function fh(a,d){a=a|0;d=d|0;if((c[(a&p)+24>>2]|0)<(d|0))a=eh(a,d,0)|0;else{c[(a&p)+16>>2]=c[(a&p)+20>>2];a=a+8|0;b[(a&o)>>1]=(e[(a&o)>>1]|0)&13;a=0}return a|0} function mq(f,g){f=f|0;g=g|0;var h=0,k=0,l=0,m=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,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,ga=0,ha=0;ha=i;i=i+192|0;if((i|0)>=(j|0))fa();ba=ha+48|0;$=ha+24|0;_=ha+160|0;I=ha+156|0;S=ha+152|0;L=ha+148|0;V=ha+144|0;O=ha+140|0;H=ha+16|0;ea=ha;y=ha+128|0;x=ha+116|0;z=ha+96|0;l=ha+88|0;ga=f+8|0;ca=c[(ga&p)>>2]|0;da=c[(f&p)>>2]|0;c[(ea&p)>>2]=c[9286];c[(ea&p)+4>>2]=c[9287];c[(ea&p)+8>>2]=c[9288];a:do switch(g|0){case 9:{l=c[(f+(da+-1<<4)&p)+16>>2]|0;k=c[(ca&p)>>2]|0;if((Sq(ca,22,37104,0,0)|0)==0?(E=Oq(ca)|0,(E|0)!=0):0){if((l|0)!=7?(F=k+20|0,(c[(F&p)>>2]|0)>0):0){l=(l|0)==9?2:1;k=E+96|0;q=0;do{wh(E,4,q,l,0)|0;c[(k&p)>>2]=c[(k&p)>>2]|1<>2]|0))}wh(E,3,0,0,0)|0}break}case 8:{y=c[(ca&p)>>2]|0;C=y+65|0;if(((a[(C&n)>>0]|0)==0?(a[(ca&n)+18>>0]|0)==0:0)?(Y=ca+64|0,(c[(Y&p)>>2]|0)==0):0){B=Oq(ca)|0;if(B){do{}while((Pq(B,61)|0)!=0);wh(B,24,0,0,0)|0;do if(!(a[(C&n)>>0]|0)){r=ca+332|0;v=c[(r&p)>>2]|0;if((v|0)==0?(c[(ca&p)+316>>2]|0)==0:0)break;s=B+32|0;t=c[(s&p)>>2]|0;if(t)c[((c[(B&p)+4>>2]|0)&p)+8>>2]=t;c[((c[(B&p)+24>>2]|0)&p)+88>>2]=t+-1;w=y+20|0;b:do if((c[(w&p)>>2]|0)>0){h=B+96|0;k=ca+328|0;l=y+16|0;m=y+145|0;q=B+4|0;u=0;while(1){x=1<>2]=c[(h&p)>>2]|x,ba=c[((c[((c[(l&p)>>2]|0)+(u<<4)&p)+12>>2]|0)&p)+4>>2]|0,xh(B,wh(B,4,u,(c[(k&p)>>2]&x|0)!=0&1,c[(ca+(u<<2)&p)+336>>2]|0)|0,ba,-14),(a[(m&n)>>0]|0)==0):0)?(N=c[(q&p)>>2]|0,(N|0)!=0):0)a[(N+(((c[(s&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=1;u=u+1|0;if((u|0)>=(c[(w&p)>>2]|0))break b;v=c[(r&p)>>2]|0}}while(0);s=ca+452|0;if((c[(s&p)>>2]|0)>0){r=ca+520|0;q=0;do{t=c[((c[((c[(r&p)>>2]|0)+(q<<2)&p)>>2]|0)&p)+60>>2]|0;c:do if(!t)t=0;else while(1){if((c[(t&p)>>2]|0)==(y|0))break c;t=c[(t&p)+24>>2]|0;if(!t){t=0;break}}while(0);xh(B,wh(B,146,0,0,0)|0,t,-10);q=q+1|0}while((q|0)<(c[(s&p)>>2]|0))}c[(s&p)>>2]=0;s=Oq(ca)|0;r=ca+396|0;if((c[(r&p)>>2]|0)>0){q=ca+400|0;m=0;do{$=c[(q&p)>>2]|0;ba=c[($+(m<<4)&p)+12>>2]|0;xh(s,wh(s,145,c[($+(m<<4)&p)>>2]|0,c[($+(m<<4)&p)+4>>2]|0,d[($+(m<<4)&n)+8>>0]|0)|0,ba,-2);m=m+1|0}while((m|0)<(c[(r&p)>>2]|0))}k=c[(ca&p)+8>>2]|0;t=c[(ca&p)+404>>2]|0;if(t){h=(c[(ca&p)>>2]|0)+16|0;u=k+32|0;v=k+4|0;do{r=c[(t&p)+8>>2]|0;s=c[(t&p)+12>>2]|0;Qq(ca,0,r,c[((c[((c[(h&p)>>2]|0)+(r<<4)&p)+12>>2]|0)&p)+72>>2]|0,54);r=s+1|0;wh(k,28,0,s,r)|0;q=c[(u&p)>>2]|0;l=s+-1|0;m=c[(c[(t&p)+4>>2]&p)>>2]|0;xh(k,wh(k,97,0,l,0)|0,m,0);m=q+9|0;wh(k,108,0,m,0)|0;wh(k,47,0,0,s)|0;wh(k,78,l,q+7|0,s)|0;l=c[(v&p)>>2]|0;if(l)a[(l+(((c[(u&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=16;wh(k,103,0,r,0)|0;wh(k,47,0,1,s)|0;wh(k,16,0,m,0)|0;wh(k,9,0,q+2|0,0)|0;wh(k,25,0,s,0)|0;wh(k,61,0,0,0)|0;t=c[(t&p)>>2]|0}while((t|0)!=0)}s=c[(ca&p)+316>>2]|0;if((s|0)!=0?(a[(ca&n)+23>>0]=0,(c[(s&p)>>2]|0)>0):0){r=s+4|0;q=0;do{ba=c[(r&p)>>2]|0;Rq(ca,c[(ba+(q*20|0)&p)>>2]|0,c[(ba+(q*20|0)&p)+16>>2]|0);q=q+1|0}while((q|0)<(c[(s&p)>>2]|0))}wh(B,16,0,1,0)|0}while(0);if((c[(Y&p)>>2]|0)==0?(a[(C&n)>>0]|0)==0:0){if((c[(ca&p)+404>>2]|0)!=0?(Z=ca+68|0,(c[(Z&p)>>2]|0)==0):0)c[(Z&p)>>2]=1;Ah(B,ca);c[(ca&p)+12>>2]=101;a[(ca&n)+16>>0]=0}else aa=48}else aa=48;if((aa|0)==48)c[(ca&p)+12>>2]=1;c[(ca&p)+68>>2]=0;c[(ca&p)+72>>2]=0;c[(ca&p)+76>>2]=0;c[(ca&p)+440>>2]=0;c[(ca&p)+332>>2]=0}break}case 5:{a[(ca&n)+450>>0]=0;c[(ca&p)+440>>2]=0;break}case 6:{a[(ca&n)+450>>0]=1;c[(ca&p)+440>>2]=0;break}case 221:case 218:case 108:case 97:case 85:case 83:case 81:case 68:case 31:case 28:{c[(ea&p)>>2]=0;break}case 27:{a[((c[(ca&p)>>2]|0)&n)+250>>0]=0;aa=f+(da<<4)+16|0;ba=c[(aa&p)+4>>2]|0;ca=ea;c[(ca&p)>>2]=c[(aa&p)>>2];c[(ca&p)+4>>2]=ba;break}case 222:case 219:case 107:case 84:case 69:case 30:case 29:{c[(ea&p)>>2]=1;break}case 32:{Vq(ca,f+(da+-2<<4)+16|0,f+(da+-1<<4)+16|0,a[(f+(da<<4)&n)+16>>0]|0,0);break}case 33:{ba=f+(da<<4)+16|0;Vq(ca,0,0,0,c[(ba&p)>>2]|0);Mk(c[(ca&p)>>2]|0,c[(ba&p)>>2]|0,1);break}case 34:{a[(ea&n)>>0]=0;break}case 35:{l=c[(f+(da<<4)&p)+20>>2]|0;k=c[(f+(da<<4)&p)+16>>2]|0;if((l|0)==5?(Fc(k,20456,5)|0)==0:0){a[(ea&n)>>0]=32;break a}a[(ea&n)>>0]=0;c[(ba&p)>>2]=l;c[(ba&p)+4>>2]=k;th(ca,20464,ba);break}case 59:{ba=f+(da<<4)+16|0;c[(x&p)>>2]=Zq(ca,97,0,0,ba)|0;ba=c[(ba&p)>>2]|0;c[(x&p)+4>>2]=ba;c[(x&p)+8>>2]=ba+(c[(f+(da<<4)&p)+20>>2]|0);Yq(ca,x);break}case 61:{k=c[(f+(da<<4)&p)+16>>2]|0;l=c[(ca&p)+484>>2]|0;if((l|0)!=0?(v=b[(l&o)+38>>1]|0,v<<16>>16>=1):0)a[((c[(l&p)+4>>2]|0)+(((v<<16>>16)+-1|0)*24|0)&n)+20>>0]=k;break}case 70:{c[(ea&p)>>2]=0;break}case 71:{c[(ea&p)>>2]=c[(f+(da+-1<<4)&p)+16>>2]&~c[(f+(da<<4)&p)+20>>2]|c[(f+(da<<4)&p)+16>>2];break}case 73:case 72:{c[(ea&p)>>2]=0;c[(ea&p)+4>>2]=0;break}case 74:{c[(ea&p)>>2]=c[(f+(da<<4)&p)+16>>2];c[(ea&p)+4>>2]=255;break}case 76:{c[(ea&p)>>2]=7;break}case 75:{c[(ea&p)>>2]=c[(f+(da<<4)&p)+16>>2]<<8;c[(ea&p)+4>>2]=65280;break}case 65:{br(ca,0,f+(da+-2<<4)+16|0,c[(f+(da+-1<<4)&p)+16>>2]|0,c[(f+(da<<4)&p)+16>>2]|0);break}case 66:{k=c[(f+(da<<4)&p)+16>>2]|0;l=c[(ca&p)+484>>2]|0;if((l|0)!=0?(u=c[(l&p)+16>>2]|0,(u|0)!=0):0)a[(u&n)+24>>0]=k;break}case 67:{q=c[(ca&p)+484>>2]|0;if((q|0)!=0?(D=(b[(q&o)+38>>1]|0)+-1|0,r=c[(ca&p)>>2]|0,m=Wq(r,f+(da<<4)+16|0)|0,(m|0)!=0):0){if(!(cr(ca,m)|0)){mg(r,m);break a}s=q+4|0;mg(r,c[((c[(s&p)>>2]|0)+(D*24|0)&p)+16>>2]|0);c[((c[(s&p)>>2]|0)+(D*24|0)&p)+16>>2]=m;l=c[(q&p)+8>>2]|0;if(l)do{if((b[(c[(l&p)+4>>2]&o)>>1]|0)==(D|0))c[(c[(l&p)+32>>2]&p)>>2]=c[((c[(s&p)>>2]|0)+(D*24|0)&p)+16>>2];l=c[(l&p)+20>>2]|0}while((l|0)!=0)}break}case 13:{c[(ea&p)>>2]=7;break}case 117:case 115:case 16:case 15:case 14:{c[(ea&p)>>2]=d[(f+(da<<4)&n)+14>>0];break}case 46:{ca=c[(f+(da+-3<<4)&p)+16>>2]|0;c[(ea&p)>>2]=ca;c[(ea&p)+4>>2]=(c[(f+(da<<4)&p)+16>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0)-ca;break}case 47:{ca=c[(f+(da+-5<<4)&p)+16>>2]|0;c[(ea&p)>>2]=ca;c[(ea&p)+4>>2]=(c[(f+(da<<4)&p)+16>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0)-ca;break}case 49:{ca=c[(f+(da+-1<<4)&p)+16>>2]|0;c[(ea&p)>>2]=ca;c[(ea&p)+4>>2]=(c[(f+(da<<4)&p)+16>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0)-ca;break}case 92:case 54:{aa=f+(da<<4)+16|0;ba=c[(aa&p)+4>>2]|0;ca=ca+320|0;c[(ca&p)>>2]=c[(aa&p)>>2];c[(ca&p)+4>>2]=ba;break}case 57:case 55:{Yq(ca,f+(da<<4)+16|0);break}case 56:{Yq(ca,f+(da+-1<<4)+16|0);break}case 58:{c[(y&p)>>2]=Zq(ca,157,c[(f+(da<<4)&p)+16>>2]|0,0,0)|0;c[(y&p)+4>>2]=c[(f+(da+-1<<4)&p)+16>>2];c[(y&p)+8>>2]=c[(f+(da<<4)&p)+24>>2];Yq(ca,y);break}case 18:case 17:{if((Sq(ca,22,37136,0,0)|0)==0?(B=Oq(ca)|0,(B|0)!=0):0)wh(B,3,1,0,0)|0;break}case 19:{if((Sq(ca,22,37120,0,0)|0)==0?(A=Oq(ca)|0,(A|0)!=0):0)wh(A,3,1,1,0)|0;break}case 22:{Tq(ca,0,f+(da<<4)+16|0);break}case 38:{ba=c[(f+(da+-2<<4)&p)+16>>2]|0;c[(ea&p)>>2]=ba;c[(ea&p)+4>>2]=(c[(ca&p)+504>>2]|0)-ba+(c[(ca&p)+508>>2]|0);break}case 39:{x=f+(da<<4)+16|0;v=c[(ca&p)>>2]|0;k=c[(ca&p)+484>>2]|0;d:do if(k){w=k+38|0;if((b[(w&o)>>1]|0)>=(c[(v&p)+96>>2]|0)){c[(ba&p)>>2]=c[(k&p)>>2];th(ca,36528,ba);break}u=Wq(v,x)|0;if(u){s=b[(w&o)>>1]|0;h=s<<16>>16;e:do if(s<<16>>16>0){t=a[((d[(u&n)>>0]|0)&n)+9328>>0]|0;q=c[(k&p)+4>>2]|0;r=u+1|0;l=0;while(1){m=c[(q+(l*24|0)&p)>>2]|0;if(t<<24>>24==(a[((d[(m&n)>>0]|0)&n)+9328>>0]|0)?(dd(r,m+1|0)|0)==0:0)break;l=l+1|0;if((l|0)>=(h|0))break e}c[(ba&p)>>2]=u;th(ca,36552,ba);mg(v,u);break d}else q=c[(k&p)+4>>2]|0;while(0);r=k+4|0;do if(!(h&7)){q=ro(v,q,(h*24|0)+192|0,0)|0;if(!q){mg(v,u);break d}else{c[(r&p)>>2]=q;s=b[(w&o)>>1]|0;break}}while(0);ba=s<<16>>16;aa=q+(ba*24|0)|0;c[(aa&p)>>2]=0;c[(aa&p)+4>>2]=0;c[(aa&p)+8>>2]=0;c[(aa&p)+12>>2]=0;c[(aa&p)+16>>2]=0;c[(aa&p)+20>>2]=0;c[(aa&p)>>2]=u;a[(q+(ba*24|0)&n)+21>>0]=65;a[(q+(ba*24|0)&n)+22>>0]=1;b[(w&o)>>1]=(b[(w&o)>>1]|0)+1<<16>>16}}while(0);$=x;aa=c[($&p)+4>>2]|0;ba=ea;c[(ba&p)>>2]=c[($&p)>>2];c[(ba&p)+4>>2]=aa;c[(ca&p)+324>>2]=0;break}case 62:{_q(ca,0,c[(f+(da+-1<<4)&p)+16>>2]|0,c[(f+(da<<4)&p)+16>>2]|0,c[(f+(da+-2<<4)&p)+16>>2]|0);break}case 63:{$q(ca,0,0,0,0,c[(f+(da<<4)&p)+16>>2]|0,0,0,0,0)|0;break}case 64:{ar(ca,c[(f+(da+-1<<4)&p)+16>>2]|0);break}case 279:case 263:case 262:case 261:case 260:case 259:case 258:case 257:case 256:case 247:case 150:case 141:case 131:case 130:case 48:case 45:case 42:case 41:case 40:{aa=f+(da<<4)+16|0;ba=c[(aa&p)+4>>2]|0;ca=ea;c[(ca&p)>>2]=c[(aa&p)>>2];c[(ca&p)+4>>2]=ba;break}case 44:{l=f+(da<<4)+16|0;k=c[(ca&p)+484>>2]|0;if((k|0)!=0?(J=b[(k&o)+38>>1]|0,J<<16>>16>=1):0){ba=(J<<16>>16)+-1|0;aa=c[(k&p)+4>>2]|0;ca=Wq(c[(ca&p)>>2]|0,l)|0;c[(aa+(ba*24|0)&p)+12>>2]=ca;a[(aa+(ba*24|0)&n)+21>>0]=Xq(ca,aa+(ba*24|0)+22|0)|0}break}case 226:{l=da+-1|0;k=f+(l<<4)+16|0;r=f+(da<<4)+16|0;q=pr(c[(ca&p)>>2]|0,0,k,r)|0;s=da+-3|0;m=Zq(ca,75,c[(f+(s<<4)&p)+16>>2]|0,0,0)|0;c[(ea&p)>>2]=m;if(!m){Do(c[(ca&p)>>2]|0,q);q=0}else{c[(m&p)+20>>2]=kr(ca,0,q,0,0,0,0,0,0,0)|0;q=c[(ea&p)>>2]|0;ba=q+4|0;c[(ba&p)>>2]=c[(ba&p)>>2]|2099200;yr(ca,q)}if(c[(f+(da+-2<<4)&p)+16>>2]|0)c[(ea&p)>>2]=Zq(ca,19,q,0,0)|0;c[(ea&p)+4>>2]=c[(f+(s<<4)&p)+20>>2];h=c[(r&p)>>2]|0;if(!h)h=(c[(k&p)>>2]|0)+(c[(f+(l<<4)&p)+20>>2]|0)|0;else h=h+(c[(f+(da<<4)&p)+20>>2]|0)|0;c[(ea&p)+8>>2]=h;break}case 225:{l=da+-4|0;h=Zq(ca,75,c[(f+(l<<4)&p)+16>>2]|0,0,0)|0;c[(ea&p)>>2]=h;if(!h){Mk(c[(ca&p)>>2]|0,c[(f+(da+-1<<4)&p)+16>>2]|0,1);h=0}else{c[(h&p)+20>>2]=c[(f+(da+-1<<4)&p)+16>>2];h=c[(ea&p)>>2]|0;ba=h+4|0;c[(ba&p)>>2]=c[(ba&p)>>2]|2099200;yr(ca,h)}if(c[(f+(da+-3<<4)&p)+16>>2]|0)c[(ea&p)>>2]=Zq(ca,19,h,0,0)|0;c[(ea&p)+4>>2]=c[(f+(l<<4)&p)+20>>2];c[(ea&p)+8>>2]=(c[(f+(da<<4)&p)+16>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0);break}case 227:{h=Zq(ca,20,0,0,0)|0;c[(ea&p)>>2]=h;if(!h)Mk(c[(ca&p)>>2]|0,c[(f+(da+-1<<4)&p)+16>>2]|0,1);else{c[(h&p)+20>>2]=c[(f+(da+-1<<4)&p)+16>>2];ba=h+4|0;c[(ba&p)>>2]=c[(ba&p)>>2]|2099200;yr(ca,h)}c[(ea&p)+4>>2]=c[(f+(da+-3<<4)&p)+16>>2];c[(ea&p)+8>>2]=(c[(f+(da<<4)&p)+16>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0);break}case 228:{k=Zq(ca,136,c[(f+(da+-3<<4)&p)+16>>2]|0,0,0)|0;c[(ea&p)>>2]=k;if(!k){Nk(c[(ca&p)>>2]|0,c[(f+(da+-2<<4)&p)+16>>2]|0);Gk(c[(ca&p)>>2]|0,c[(f+(da+-1<<4)&p)+16>>2]|0)}else{l=c[(f+(da+-1<<4)&p)+16>>2]|0;h=c[(f+(da+-2<<4)&p)+16>>2]|0;if(l)h=lr(ca,h,l)|0;c[(k&p)+20>>2]=h;yr(ca,c[(ea&p)>>2]|0)}c[(ea&p)+4>>2]=c[(f+(da+-4<<4)&p)+16>>2];c[(ea&p)+8>>2]=(c[(f+(da<<4)&p)+16>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0);break}case 291:case 240:{c[(ea&p)>>2]=2;break}case 241:{c[(ea&p)>>2]=0;break}case 239:{$q(ca,f+(da+-7<<4)+16|0,f+(da+-6<<4)+16|0,pr(c[(ca&p)>>2]|0,0,f+(da+-4<<4)+16|0,0)|0,c[(f+(da+-2<<4)&p)+16>>2]|0,c[(f+(da+-10<<4)&p)+16>>2]|0,f+(da+-11<<4)+16|0,c[(f+(da<<4)&p)+16>>2]|0,0,c[(f+(da+-8<<4)&p)+16>>2]|0)|0;break}case 229:{c[(ea&p)>>2]=lr(ca,lr(ca,c[(f+(da+-4<<4)&p)+16>>2]|0,c[(f+(da+-2<<4)&p)+16>>2]|0)|0,c[(f+(da<<4)&p)+16>>2]|0)|0;break}case 230:{c[(ea&p)>>2]=lr(ca,lr(ca,0,c[(f+(da+-2<<4)&p)+16>>2]|0)|0,c[(f+(da<<4)&p)+16>>2]|0)|0;break}case 237:{c[(ea&p)>>2]=lr(ca,c[(f+(da+-2<<4)&p)+16>>2]|0,c[(f+(da<<4)&p)+16>>2]|0)|0;break}case 238:{c[(ea&p)>>2]=lr(ca,0,c[(f+(da<<4)&p)+16>>2]|0)|0;break}case 245:{h=lr(ca,0,vr(ca,0,f+(da+-1<<4)+16|0,1)|0)|0;c[(ea&p)>>2]=h;mr(ca,h,f+(da+-2<<4)+16|0,1);if(h){if((c[(h&p)>>2]|0)>(c[((c[(ca&p)>>2]|0)&p)+96>>2]|0)){c[(ba&p)>>2]=20632;th(ca,34544,ba)}a[((c[(h&p)+4>>2]|0)+(((c[(h&p)>>2]|0)+-1|0)*20|0)&n)+12>>0]=c[(f+(da<<4)&p)+16>>2]}break}case 244:{h=vr(ca,0,f+(da+-1<<4)+16|0,1)|0;h=lr(ca,c[(f+(da+-4<<4)&p)+16>>2]|0,h)|0;c[(ea&p)>>2]=h;mr(ca,h,f+(da+-2<<4)+16|0,1);if(h){if((c[(h&p)>>2]|0)>(c[((c[(ca&p)>>2]|0)&p)+96>>2]|0)){c[(ba&p)>>2]=20632;th(ca,34544,ba)}a[((c[(h&p)+4>>2]|0)+(((c[(h&p)>>2]|0)+-1|0)*20|0)&n)+12>>0]=c[(f+(da<<4)&p)+16>>2]}break}case 248:{v=c[(f+(da<<4)&p)+16>>2]|0;s=c[(f+(da+-1<<4)&p)+16>>2]|0;u=c[(ca&p)>>2]|0;do if((a[(u&n)+65>>0]|0)==0?(Gn(ca)|0)==0:0){r=v+12|0;k=bq(u,c[(v&p)+16>>2]|0,c[(r&p)>>2]|0)|0;if(!k){if(!s){c[(ba&p)>>2]=v;c[(ba&p)+4>>2]=0;th(ca,33056,ba)}else zr(ca,c[(r&p)>>2]|0);a[(ca&n)+17>>0]=1;break}if(a[(k&n)+51>>0]&3){c[(ba&p)>>2]=0;th(ca,33080,ba);break}s=c[(k&p)+24>>2]|0;f:do if(s){r=c[(u&p)+20>>2]|0;if((r|0)>0){q=c[(u&p)+16>>2]|0;t=0;while(1){m=t+1|0;if((c[(q+(t<<4)&p)+12>>2]|0)==(s|0)){m=t;break f}if((m|0)<(r|0))t=m;else break}}else m=0}else m=-1e6;while(0);s=c[(k&p)+12>>2]|0;r=u+16|0;q=c[((c[(r&p)>>2]|0)+(m<<4)&p)>>2]|0;l=(m|0)==1?13184:13208;if(((Sq(ca,9,l,0,q)|0)==0?(Sq(ca,(m|0)==0?10:12,c[(k&p)>>2]|0,c[(s&p)>>2]|0,q)|0)==0:0)?(K=Oq(ca)|0,(K|0)!=0):0){aa=c[(ca&p)+408>>2]|0;aa=(aa|0)==0?ca:aa;Ar(ca,m);$=aa+328|0;c[($&p)>>2]=c[($&p)>>2]|1<>0]=d[(aa&n)>>0]|1;aa=c[(k&p)>>2]|0;c[(ba&p)>>2]=c[((c[(r&p)>>2]|0)+(m<<4)&p)>>2];c[(ba&p)+4>>2]=l;c[(ba&p)+8>>2]=aa;Br(ca,33160,ba);Cr(ca,m,28536,c[(k&p)>>2]|0);Dr(ca,m);Er(ca,c[(k&p)+40>>2]|0,m);ca=c[(k&p)>>2]|0;xh(K,wh(K,125,m,0,0)|0,ca,0)}}while(0);Do(u,v);break}case 246:{c[(ea&p)>>2]=0;c[(ea&p)+4>>2]=0;break}case 250:case 249:{h=Oq(ca)|0;if(h){wh(h,13,0,0,0)|0;ca=h+96|0;c[(ca&p)>>2]=c[(ca&p)>>2]|1}break}case 251:{Fr(ca,f+(da+-1<<4)+16|0,f+(da<<4)+16|0,0,0);break}case 252:{Fr(ca,f+(da+-3<<4)+16|0,f+(da+-2<<4)+16|0,f+(da<<4)+16|0,0);break}case 253:{Fr(ca,f+(da+-4<<4)+16|0,f+(da+-3<<4)+16|0,f+(da+-1<<4)+16|0,0);break}case 254:{Fr(ca,f+(da+-3<<4)+16|0,f+(da+-2<<4)+16|0,f+(da<<4)+16|0,1);break}case 255:{Fr(ca,f+(da+-4<<4)+16|0,f+(da+-3<<4)+16|0,f+(da+-1<<4)+16|0,1);break}case 264:{h=c[(f+(da+-3<<4)&p)+16>>2]|0;l=(c[(f+(da<<4)&p)+16>>2]|0)-h+(c[(f+(da<<4)&p)+20>>2]|0)|0;k=c[(f+(da+-1<<4)&p)+16>>2]|0;aa=ca+488|0;z=c[(aa&p)>>2]|0;A=c[(ca&p)>>2]|0;c[(aa&p)>>2]=0;g:do if((c[(ca&p)+64>>2]|0)==0&(z|0)!=0){y=c[(z&p)>>2]|0;m=z+20|0;v=c[(m&p)>>2]|0;h:do if(v){u=c[(A&p)+20>>2]|0;if((u|0)>0){s=c[(A&p)+16>>2]|0;q=0;while(1){r=q+1|0;if((c[(s+(q<<4)&p)+12>>2]|0)==(v|0))break h;if((r|0)<(u|0))q=r;else{q=r;break}}}else q=0}else q=-1e6;while(0);c[(z&p)+28>>2]=k;x=(k|0)==0;if(!x){s=k;do{c[(s&p)+4>>2]=z;s=c[(s&p)+32>>2]|0}while((s|0)!=0)}c[(_&p)>>2]=y;if(!y)s=0;else{s=y;while(1)if(!(a[(s&n)>>0]|0))break;else s=s+1|0;s=s-y&1073741823}c[(_&p)+4>>2]=s;c[($&p)>>2]=ca;w=A+16|0;v=c[(w&p)>>2]|0;c[($&p)+12>>2]=c[(v+(q<<4)&p)>>2];c[($&p)+4>>2]=c[(v+(q<<4)&p)+12>>2];c[($&p)+16>>2]=10720;c[($&p)+20>>2]=_;v=(q|0)==1;c[($&p)+8>>2]=v&1;if(!x)do{if(fr($,c[(k&p)+8>>2]|0)|0){k=0;l=z;break g}if(Gr($,c[(k&p)+20>>2]|0)|0){k=0;l=z;break g}if(Hr($,c[(k&p)+24>>2]|0)|0){k=0;l=z;break g}k=c[(k&p)+32>>2]|0}while((k|0)!=0);if(!(Gr($,c[(z&p)+12>>2]|0)|0)){s=A+145|0;if(!(a[(s&n)>>0]|0)){r=Oq(ca)|0;if(!r){k=0;l=z;break}aa=c[(ca&p)+408>>2]|0;Ar(ca,q);aa=((aa|0)==0?ca:aa)+328|0;c[(aa&p)>>2]=c[(aa&p)>>2]|1<>0]=0}else t=0;aa=c[(z&p)+4>>2]|0;c[(ba&p)>>2]=c[((c[(w&p)>>2]|0)+(q<<4)&p)>>2];c[(ba&p)+4>>2]=v?13184:13208;c[(ba&p)+8>>2]=y;c[(ba&p)+12>>2]=aa;c[(ba&p)+16>>2]=t;Br(ca,30008,ba);mg(A,t);Dr(ca,q);c[(ba&p)>>2]=y;Ir(r,q,uh(A,30072,ba)|0);if(!(a[(s&n)>>0]|0)){k=0;l=z;break}}l=Ik((c[((c[(w&p)>>2]|0)+(q<<4)&p)+12>>2]|0)+40|0,y,z)|0;if(l){a[(A&n)+65>>0]=1;k=0;break}k=c[(m&p)>>2]|0;if((k|0)==(c[(z&p)+24>>2]|0)){k=bn(k+8|0,c[(z&p)+4>>2]|0,ba)|0;if(!k)k=0;else k=c[(k&p)+8>>2]|0;k=k+64|0;c[(z&p)+32>>2]=c[(k&p)>>2];c[(k&p)>>2]=z;k=0}else k=0}else{k=0;l=z}}else l=z;while(0);jg(A,l);Fk(A,k);break}case 265:{D=f+(da+-7<<4)+16|0;C=da+-6|0;E=f+(C<<4)+16|0;r=c[(f+(da+-5<<4)&p)+16>>2]|0;F=da+-4|0;B=c[(f+(F<<4)&p)+16>>2]|0;F=c[(f+(F<<4)&p)+20>>2]|0;H=c[(f+(da+-2<<4)&p)+16>>2]|0;I=c[(f+(da<<4)&p)+16>>2]|0;k=c[(f+(da+-8<<4)&p)+16>>2]|0;J=c[(ca&p)>>2]|0;z=(c[(f+(da+-10<<4)&p)+16>>2]|0)!=0;do if(z)if(!(c[(f+(C<<4)&p)+20>>2]|0)){c[($&p)>>2]=D;if(!H){s=0;t=0;break}else{v=1;aa=483;break}}else{th(ca,29664,ba);s=0;t=0;break}else{v=er(ca,D,E,$)|0;if((v|0)>-1&(H|0)!=0)aa=483;else{s=0;t=0}}while(0);do if((aa|0)==483){h=J+65|0;if(!(a[(h&n)>>0]|0)){x=J+145|0;if((a[(x&n)>>0]|0)!=0&(v|0)!=1){aa=H+12|0;mg(J,c[(aa&p)>>2]|0);c[(aa&p)>>2]=0}w=Jr(ca,H)|0;if((a[(x&n)>>0]|0)==0?((w|0)!=0?(c[(f+(C<<4)&p)+20>>2]|0)==0:0):0)v=(c[(w&p)+68>>2]|0)==(c[((c[(J&p)+16>>2]|0)&p)+28>>2]|0)?1:v;if((a[(h&n)>>0]|0)==0?(R=c[($&p)>>2]|0,aa=c[(ca&p)>>2]|0,c[(_&p)>>2]=ca,aa=c[(aa&p)+16>>2]|0,c[(_&p)+12>>2]=c[(aa+(v<<4)&p)>>2],c[(_&p)+4>>2]=c[(aa+(v<<4)&p)+12>>2],c[(_&p)+16>>2]=10720,c[(_&p)+20>>2]=R,c[(_&p)+8>>2]=(v|0)==1&1,(Kr(_,H)|0)==0):0){x=Jr(ca,H)|0;if(!x){if((a[(J&n)+144>>0]|0)!=1){s=0;t=0;break}a[(J&n)+146>>0]=1;s=0;t=0;break}if(a[(x&n)+44>>0]&16){th(ca,29712,ba);s=0;t=0;break}t=Wq(J,R)|0;if(t)if(!(Lr(ca,t)|0)){A=J+16|0;aa=bn((c[((c[(A&p)>>2]|0)+(v<<4)&p)+12>>2]|0)+40|0,t,S)|0;if((aa|0)!=0?(c[(aa&p)+8>>2]|0)!=0:0)if(!k){c[(ba&p)>>2]=R;th(ca,29760,ba);s=0;break}else{Ar(ca,v);s=0;break}y=c[(x&p)>>2]|0;if(!(Fc(y,25568,7)|0)){th(ca,29792,ba);s=ca+64|0;c[(s&p)>>2]=(c[(s&p)>>2]|0)+1;s=0;break}u=c[(x&p)+12>>2]|0;if((u|0)!=0&(r|0)!=49){c[(ba&p)>>2]=(r|0)==35?29872:29880;c[(ba&p)+4>>2]=H;c[(ba&p)+8>>2]=0;th(ca,29832,ba);s=0;break}q=(r|0)==49;if((u|0)==0&q){c[(ba&p)>>2]=H;c[(ba&p)+4>>2]=0;th(ca,29888,ba);s=0;break}m=x+68|0;x=c[(m&p)>>2]|0;i:do if(x){w=c[(J&p)+20>>2]|0;if((w|0)>0){k=c[(A&p)>>2]|0;l=0;while(1){h=l+1|0;if((c[(k+(l<<4)&p)+12>>2]|0)==(x|0)){h=l;break i}if((h|0)<(w|0))l=h;else break}}else h=0}else h=-1e6;while(0);x=c[(A&p)>>2]|0;k=c[(x+(h<<4)&p)>>2]|0;if(z)w=c[(x&p)+16>>2]|0;else w=k;x=(h|0)==1;if((Sq(ca,x|z?5:7,t,y,w)|0)==0?(Sq(ca,18,x?13184:13208,0,k)|0)==0:0){s=mh(J,36,0)|0;if(!s){s=0;break}y=s+0|0;k=y+36|0;do{a[(y&n)>>0]=0;y=y+1|0}while((y|0)<(k|0));c[(s&p)>>2]=t;c[(s&p)+4>>2]=kh(J,c[(H&p)+16>>2]|0)|0;c[(s&p)+20>>2]=c[((c[(A&p)>>2]|0)+(v<<4)&p)+12>>2];c[(s&p)+24>>2]=c[(m&p)>>2];a[(s&n)+8>>0]=B;a[(s&n)+9>>0]=q|(r|0)==35?1:2;c[(s&p)+12>>2]=Mr(J,I,1,0)|0;c[(s&p)+16>>2]=Nr(J,F)|0;c[(ca&p)+488>>2]=s;t=0}else s=0}else s=0;else{s=0;t=0}}else{s=0;t=0}}else{s=0;t=0}}while(0);mg(J,t);Do(J,H);Hk(J,F);Gk(J,I);if(!(c[(ca&p)+488>>2]|0))jg(J,s);if(!(c[(f+(C<<4)&p)+20>>2]|0)){aa=D;ba=c[(aa&p)+4>>2]|0;ca=ea;c[(ca&p)>>2]=c[(aa&p)>>2];c[(ca&p)+4>>2]=ba;break a}else{aa=E;ba=c[(aa&p)+4>>2]|0;ca=ea;c[(ca&p)>>2]=c[(aa&p)>>2];c[(ca&p)+4>>2]=ba;break a}}case 269:case 266:{c[(ea&p)>>2]=35;break}case 267:{c[(ea&p)>>2]=31;break}case 268:{c[(ea&p)>>2]=49;break}case 284:{l=c[(ca&p)>>2]|0;k=c[(f+(da+-1<<4)&p)+16>>2]|0;h=c[(f+(da<<4)&p)+16>>2]|0;m=a[(f+(da+-5<<4)&n)+16>>0]|0;q=Or(l,110,f+(da+-4<<4)+16|0)|0;if(q){c[(q&p)+24>>2]=Pr(l,k,1)|0;c[(q&p)+20>>2]=Mr(l,h,1,0)|0;a[(q&n)+1>>0]=m}Nk(l,k);Gk(l,h);c[(ea&p)>>2]=q;break}case 271:case 270:{c[(ea&p)>>2]=d[(f+(da<<4)&n)+14>>0];c[(ea&p)+4>>2]=0;break}case 272:{c[(ea&p)>>2]=110;c[(ea&p)+4>>2]=c[(f+(da<<4)&p)+16>>2];break}case 296:case 275:{c[(ea&p)>>2]=0;break}case 297:case 276:{c[(ea&p)>>2]=c[(f+(da<<4)&p)+16>>2];break}case 277:{ba=f+(da+-1<<4)+16|0;ca=f+(da+-2<<4)+16|0;c[((c[((c[(ca&p)>>2]|0)&p)+36>>2]|0)&p)+32>>2]=c[(ba&p)>>2];c[((c[(ca&p)>>2]|0)&p)+36>>2]=c[(ba&p)>>2];c[(ea&p)>>2]=c[(ca&p)>>2];break}case 278:{ca=f+(da+-1<<4)+16|0;ba=c[(ca&p)>>2]|0;c[(ba&p)+36>>2]=ba;c[(ea&p)>>2]=c[(ca&p)>>2];break}case 282:{th(ca,20736,ba);break}case 280:{_=f+(da<<4)+16|0;$=c[(_&p)+4>>2]|0;aa=ea;c[(aa&p)>>2]=c[(_&p)>>2];c[(aa&p)+4>>2]=$;th(ca,20640,ba);break}case 283:{th(ca,20824,ba);break}case 286:{h=c[(ca&p)>>2]|0;k=c[(f+(da<<4)&p)+16>>2]|0;l=Or(h,109,f+(da+-2<<4)+16|0)|0;if(l){c[(l&p)+20>>2]=Mr(h,k,1,0)|0;a[(l&n)+1>>0]=10}Gk(h,k);c[(ea&p)>>2]=l;break}case 287:{l=c[(ca&p)>>2]|0;q=c[(f+(da<<4)&p)+16>>2]|0;h=mh(l,40,0)|0;if(!h){Mk(l,q,1);h=0}else{y=h+0|0;k=y+40|0;do{a[(y&n)>>0]=0;y=y+1|0}while((y|0)<(k|0));a[(h&n)>>0]=119;c[(h&p)+8>>2]=q;a[(h&n)+1>>0]=10}c[(ea&p)>>2]=h;break}case 285:{q=c[(ca&p)>>2]|0;m=c[(f+(da+-1<<4)&p)+16>>2]|0;l=c[(f+(da<<4)&p)+16>>2]|0;k=a[(f+(da+-4<<4)&n)+16>>0]|0;h=Or(q,108,f+(da+-2<<4)+16|0)|0;if(!h)Hk(q,m);else{c[(h&p)+8>>2]=gr(q,l,1)|0;c[(h&p)+28>>2]=m;a[(h&n)+1>>0]=k}Mk(q,l,1);c[(ea&p)>>2]=h;break}case 288:{h=Zq(ca,57,0,0,0)|0;c[(ea&p)>>2]=h;if(h)a[(h&n)+1>>0]=4;c[(ea&p)+4>>2]=c[(f+(da+-3<<4)&p)+16>>2];c[(ea&p)+8>>2]=(c[(f+(da<<4)&p)+16>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0);break}case 289:{h=Zq(ca,57,0,0,f+(da+-1<<4)+16|0)|0;c[(ea&p)>>2]=h;if(h)a[(h&n)+1>>0]=c[(f+(da+-3<<4)&p)+16>>2];c[(ea&p)+4>>2]=c[(f+(da+-5<<4)&p)+16>>2];c[(ea&p)+8>>2]=(c[(f+(da<<4)&p)+16>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0);break}case 290:{c[(ea&p)>>2]=1;break}case 292:{c[(ea&p)>>2]=3;break}case 293:{k=c[(f+(da<<4)&p)+16>>2]|0;h=c[(f+(da+-1<<4)&p)+16>>2]|0;w=c[(ca&p)>>2]|0;do if((a[(w&n)+65>>0]|0)==0?(Gn(ca)|0)==0:0){x=c[(k&p)+12>>2]|0;v=c[(k&p)+16>>2]|0;u=w+20|0;if((c[(u&p)>>2]|0)>0){q=(x|0)==0;m=w+16|0;l=0;s=0;do{r=(l|0)<2^l;t=c[(m&p)>>2]|0;if(!(!q?(dd(c[(t+(r<<4)&p)>>2]|0,x)|0)!=0:0)){t=bn((c[(t+(r<<4)&p)+12>>2]|0)+40|0,v,L)|0;if(t){s=c[(t&p)+8>>2]|0;if(s)break}else s=0}l=l+1|0}while((l|0)<(c[(u&p)>>2]|0));if(s){Qr(ca,s);break}}if(!h){c[(ba&p)>>2]=k;c[(ba&p)+4>>2]=0;th(ca,29600,ba)}else zr(ca,x);a[(ca&n)+17>>0]=1}while(0);Do(w,k);break}case 294:{ba=c[(f+(da+-3<<4)&p)+16>>2]|0;Rr(ca,24,29360,ba,ba,c[(f+(da+-1<<4)&p)+16>>2]|0,c[(f+(da<<4)&p)+16>>2]|0);break}case 303:{Tr(ca,f+(da+-1<<4)+16|0,f+(da<<4)+16|0);break}case 304:{z=c[(f+(da+-3<<4)&p)+16>>2]|0;x=f+(da<<4)+16|0;y=c[(ca&p)>>2]|0;k=y+24|0;l=c[(k&p)>>2]|0;do if((a[(y&n)+65>>0]|0)==0?(X=Ur(ca,0,z+8|0)|0,(X|0)!=0):0){t=c[(ca&p)>>2]|0;A=X+68|0;v=c[(A&p)>>2]|0;j:do if(v){u=c[(t&p)+20>>2]|0;if((u|0)>0){t=c[(t&p)+16>>2]|0;r=0;while(1){s=r+1|0;if((c[(t+(r<<4)&p)+12>>2]|0)==(v|0)){s=r;break j}if((s|0)<(u|0))r=s;else break}}else s=0}else s=-1e6;while(0);h=c[((c[(y&p)+16>>2]|0)+(s<<4)&p)>>2]|0;c[(k&p)>>2]=c[(k&p)>>2]|2097152;q=Wq(y,x)|0;if(q){if((_h(y,q,h)|0)==0?(bq(y,q,h)|0)==0:0){if(Vr(ca,c[(X&p)>>2]|0)|0)break;if(Lr(ca,q)|0)break;t=c[(X&p)>>2]|0;if(c[(X&p)+12>>2]|0){c[(ba&p)>>2]=t;th(ca,26088,ba);break}if(Sq(ca,26,h,t,0)|0)break;if(hr(ca,X)|0)break;if(!(a[(X&n)+44>>0]&16))m=0;else{t=c[(X&p)+60>>2]|0;k:do if(!t)t=0;else while(1){if((c[(t&p)>>2]|0)==(y|0))break k;t=c[(t&p)+24>>2]|0;if(!t){t=0;break}}while(0);m=(c[((c[(c[(t&p)+8>>2]&p)>>2]|0)&p)+76>>2]|0)==0?0:t}t=Oq(ca)|0;if(!t)break;aa=(m|0)!=0;r=ca+408|0;$=c[(r&p)>>2]|0;$=($|0)==0?ca:$;Ar(ca,s);_=$+328|0;c[(_&p)>>2]=c[(_&p)>>2]|1<>0]=d[($&n)>>0]|aa&1;Dr(ca,s);if(aa){$=ca+72|0;aa=(c[($&p)>>2]|0)+1|0;c[($&p)>>2]=aa;xh(t,wh(t,97,0,aa,0)|0,q,0);xh(t,wh(t,152,aa,0,0)|0,m,-10);aa=c[(r&p)>>2]|0;a[(((aa|0)==0?ca:aa)&n)+21>>0]=1}x=c[(X&p)>>2]|0;w=Nn(x,-1)|0;do if((c[(k&p)>>2]&524288|0)!=0?(T=bn((c[(A&p)>>2]|0)+56|0,x,V)|0,(T|0)!=0):0){t=c[(T&p)+8>>2]|0;if(!t)break;r=t;t=0;do{t=Wr(c[(ca&p)>>2]|0,t,c[(c[(r&p)>>2]&p)>>2]|0)|0;r=c[(r&p)+12>>2]|0}while((r|0)!=0);if(!t)break;c[(ba&p)>>2]=h;c[(ba&p)+4>>2]=(s|0)==1?13184:13208;c[(ba&p)+8>>2]=x;c[(ba&p)+12>>2]=q;c[(ba&p)+16>>2]=t;Br(ca,26120,ba);mg(y,t)}while(0);c[(ba&p)>>2]=h;c[(ba&p)+4>>2]=(s|0)==1?13184:13208;c[(ba&p)+8>>2]=q;c[(ba&p)+12>>2]=q;c[(ba&p)+16>>2]=q;c[(ba&p)+20>>2]=q;c[(ba&p)+24>>2]=q;c[(ba&p)+28>>2]=w;c[(ba&p)+32>>2]=x;Br(ca,26192,ba);if(_h(y,26576,h)|0){aa=c[(X&p)>>2]|0;c[(ba&p)>>2]=h;c[(ba&p)+4>>2]=q;c[(ba&p)+8>>2]=aa;Br(ca,26592,ba)}s=Xr(ca,X)|0;if(s){c[(ba&p)>>2]=q;c[(ba&p)+4>>2]=q;c[(ba&p)+8>>2]=s;Br(ca,26656,ba);mg(y,s)}do if(c[(k&p)>>2]&524288){s=bn((c[(A&p)>>2]|0)+56|0,c[(X&p)>>2]|0,ba)|0;if(!s)break;s=c[(s&p)+8>>2]|0;if(!s)break;do{r=c[(s&p)>>2]|0;if((r|0)!=(X|0))Yr(ca,r,c[(r&p)>>2]|0);s=c[(s&p)+12>>2]|0}while((s|0)!=0)}while(0);Yr(ca,X,q);break}c[(ba&p)>>2]=q;th(ca,26024,ba)}else q=0}else q=0;while(0);Do(y,z);mg(y,q);c[(k&p)>>2]=l;break}case 295:{ba=c[(f+(da<<4)&p)+16>>2]|0;Rr(ca,25,29176,ba,0,0,ba);break}case 300:{Sr(ca,0,0);break}case 302:{Tr(ca,0,0);break}case 301:{Sr(ca,f+(da+-1<<4)+16|0,f+(da<<4)+16|0);break}case 305:{y=c[(ca&p)>>2]|0;if((c[(ca&p)+64>>2]|0)==0?(M=y+65|0,(a[(M&n)>>0]|0)==0):0){l=c[(ca&p)+484>>2]|0;t=c[(l&p)+68>>2]|0;l:do if(t){s=c[(y&p)+20>>2]|0;if((s|0)>0){r=c[(y&p)+16>>2]|0;m=0;while(1){q=m+1|0;if((c[(r+(m<<4)&p)+12>>2]|0)==(t|0)){A=m;break l}if((q|0)<(s|0))m=q;else{A=q;break}}}else A=0}else A=-1e6;while(0);h=c[((c[(y&p)+16>>2]|0)+(A<<4)&p)>>2]|0;k=(c[(l&p)>>2]|0)+16|0;u=(b[(l&o)+38>>1]|0)+-1|0;s=c[(l&p)+4>>2]|0;t=c[(s+(u*24|0)&p)+4>>2]|0;z=_h(y,k,h)|0;if(!(Sq(ca,26,h,c[(z&p)>>2]|0,0)|0)){if(!t)v=0;else v=(a[(t&n)>>0]|0)==101?0:t;if(a[(s+(u*24|0)&n)+23>>0]&1){th(ca,25608,ba);break a}if(c[(l&p)+8>>2]|0){th(ca,25640,ba);break a}x=y+24|0;if((c[(x&p)>>2]&524288|0)!=0?(c[(l&p)+16>>2]|0)!=0&(v|0)!=0:0){th(ca,25672,ba);break a}w=(v|0)!=0;if(!((a[(s+(u*24|0)&n)+20>>0]|0)==0|w)){th(ca,25736,ba);break a}do if(w){c[(O&p)>>2]=0;if(Zr(y,v,1,65,O)|0){a[(M&n)>>0]=1;break a}t=c[(O&p)>>2]|0;if(!t){th(ca,25792,ba);break a}else{Mh(t);break}}while(0);t=c[(f+(da<<4)&p)+16>>2]|0;s=f+(da<<4)+20|0;r=c[(s&p)>>2]|0;if((t|0)!=0?(U=jw(r|0,0,1,0)|0,U=mh(y,U,G)|0,(U|0)!=0):0){kw(U|0,t|0,r|0)|0;a[(U+r&n)>>0]=0;t=(c[(s&p)>>2]|0)+-1|0;s=c[(x&p)>>2]|0;m:do if((t|0)>0){t=U+t|0;do{$=a[(t&n)>>0]|0;if($<<24>>24!=59?(a[($&255&n)+10368>>0]&1)==0:0)break m;a[(t&n)>>0]=0;t=t+-1|0}while(t>>>0>U>>>0)}while(0);c[(x&p)>>2]=c[(x&p)>>2]|2097152;$=c[(l&p)+48>>2]|0;c[(ba&p)>>2]=h;c[(ba&p)+4>>2]=(A|0)==1?13184:13208;c[(ba&p)+8>>2]=$;c[(ba&p)+12>>2]=U;c[(ba&p)+16>>2]=$+1;c[(ba&p)+20>>2]=k;Br(ca,25840,ba);mg(y,U);c[(x&p)>>2]=s}t=w?3:2;v=Oq(ca)|0;if(v){s=ca+19|0;q=a[(s&n)>>0]|0;do if(q<<24>>24){ba=q+-1<<24>>24;a[(s&n)>>0]=ba;r=c[(ca+((ba&255)<<2)&p)+24>>2]|0;if(!(ba<<24>>24)){s=c[(ca&p)+72>>2]|0;aa=663;break}else{k=q+-2<<24>>24;a[(s&n)>>0]=k;k=c[(ca+((k&255)<<2)&p)+24>>2]|0;break}}else{r=ca+72|0;s=(c[(r&p)>>2]|0)+1|0;c[(r&p)>>2]=s;r=s;aa=663}while(0);if((aa|0)==663){k=s+1|0;c[(ca&p)+72>>2]=k}wh(v,51,A,r,2)|0;m=v+96|0;c[(m&p)>>2]=c[(m&p)>>2]|1<>2]|0;s=v+32|0;if(q)a[(q+(((c[(s&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=-112;wh(v,52,A,2,k)|0;s=c[(s&p)>>2]|0;if(s>>>0>m>>>0)c[((c[(l&p)>>2]|0)+(m*20|0)&p)+8>>2]=s;c[((c[(v&p)+24>>2]|0)&p)+88>>2]=s+-1;_r(ca,r);_r(ca,k)}Yr(ca,z,c[(z&p)>>2]|0)}}break}case 306:{w=c[(ca&p)>>2]|0;a[(w&n)+250>>0]=0;h=c[(f+(da<<4)&p)+16>>2]|0;x=w+65|0;do if((a[(x&n)>>0]|0)==0?(Q=Ur(ca,0,h+8|0)|0,(Q|0)!=0):0){if(a[(Q&n)+44>>0]&16){th(ca,25400,ba);break}if(c[(Q&p)+12>>2]|0){th(ca,25440,ba);break}if(!(Vr(ca,c[(Q&p)>>2]|0)|0)){s=c[(Q&p)+68>>2]|0;n:do if(s){r=c[(w&p)+20>>2]|0;if((r|0)>0){q=c[(w&p)+16>>2]|0;t=0;while(1){m=t+1|0;if((c[(q+(t<<4)&p)+12>>2]|0)==(s|0)){m=t;break n}if((m|0)<(r|0))t=m;else break}}else m=0}else m=-1e6;while(0);v=mh(w,76,0)|0;if(v){y=v+0|0;k=y+76|0;do{a[(y&n)>>0]=0;y=y+1|0}while((y|0)<(k|0));c[(ca&p)+484>>2]=v;r=v+40|0;b[(r&o)>>1]=1;t=b[(Q&o)+38>>1]|0;q=v+38|0;b[(q&o)>>1]=t;t=((((t<<16>>16)+-1|0)/8|0)*192|0)+192|0;s=mh(w,t,0)|0;if(s)fw(s|0,0,t|0)|0;t=v+4|0;c[(t&p)>>2]=s;c[(ba&p)>>2]=c[(Q&p)>>2];ba=uh(w,25472,ba)|0;c[(v&p)>>2]=ba;s=c[(t&p)>>2]|0;if((s|0)==0|(ba|0)==0){a[(x&n)>>0]=1;break}kw(s|0,c[(Q&p)+4>>2]|0,(b[(q&o)>>1]|0)*24|0)|0;if((b[(q&o)>>1]|0)>0){s=0;do{ba=c[(t&p)>>2]|0;aa=ba+(s*24|0)|0;c[(aa&p)>>2]=kh(w,c[(aa&p)>>2]|0)|0;ba=ba+(s*24|0)+4|0;s=s+1|0;c[(ba&p)>>2]=0;c[(ba&p)+4>>2]=0;c[(ba&p)+8>>2]=0;c[(ba&p)+12>>2]=0}while((s|0)<(b[(q&o)>>1]|0))}c[(v&p)+68>>2]=c[((c[(w&p)+16>>2]|0)+(m<<4)&p)+12>>2];c[(v&p)+48>>2]=c[(Q&p)+48>>2];b[(r&o)>>1]=1;ba=c[(ca&p)+408>>2]|0;Ar(ca,m);ba=((ba|0)==0?ca:ba)+328|0;c[(ba&p)>>2]=c[(ba&p)>>2]|1<>2]|0);t=c[(ca&p)+484>>2]|0;if(t){h=c[(ca&p)>>2]|0;s=c[(t&p)+68>>2]|0;o:do if(s){r=c[(h&p)+20>>2]|0;if((r|0)>0){m=c[(h&p)+16>>2]|0;l=0;while(1){q=l+1|0;if((c[(m+(l<<4)&p)+12>>2]|0)==(s|0)){q=l;break o}if((q|0)<(r|0))l=q;else break}}else q=0}else q=-1e6;while(0);l=t+44|0;a[(l&n)>>0]=d[(l&n)>>0]|16;c[(t&p)+52>>2]=0;as(h,t,Wq(h,k)|0);as(h,t,0);as(h,t,kh(h,c[(t&p)>>2]|0)|0);c[(ca&p)+500>>2]=(c[(k&p)>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0)-(c[(ca&p)+496>>2]|0);l=c[(t&p)+56>>2]|0;if(l)Sq(ca,29,c[(t&p)>>2]|0,c[(l&p)>>2]|0,c[((c[((c[(ca&p)>>2]|0)&p)+16>>2]|0)+(q<<4)&p)>>2]|0)|0}break}case 322:{c[(ea&p)>>2]=0;break}case 324:case 323:{c[(ea&p)>>2]=c[(f+(da<<4)&p)+16>>2];break}case 325:{c[(ea&p)>>2]=cs(ca,0,f+(da+-5<<4)+16|0,c[(f+(da+-4<<4)&p)+16>>2]|0,c[(f+(da+-1<<4)&p)+16>>2]|0)|0;break}case 326:{c[(ea&p)>>2]=cs(ca,c[(f+(da+-7<<4)&p)+16>>2]|0,f+(da+-5<<4)+16|0,c[(f+(da+-4<<4)&p)+16>>2]|0,c[(f+(da+-1<<4)&p)+16>>2]|0)|0;break}case 314:{bs(ca);c[(ca&p)+512>>2]=0;c[(ca&p)+516>>2]=0;break}case 318:case 317:case 316:{l=ca+512|0;k=c[(l&p)>>2]|0;h=c[(f+(da<<4)&p)+16>>2]|0;if(!k){c[(l&p)>>2]=h;h=c[(f+(da<<4)&p)+20>>2]|0}else h=h+(c[(f+(da<<4)&p)+20>>2]|0)-k|0;c[(ca&p)+516>>2]=h;break}case 77:{c[(ea&p)>>2]=8;break}case 78:{c[(ea&p)>>2]=9;break}case 79:{c[(ea&p)>>2]=6;break}case 80:{c[(ea&p)>>2]=0;break}case 103:case 100:case 98:case 82:{c[(ea&p)>>2]=c[(f+(da<<4)&p)+16>>2];break}case 86:{c[(ea&p)+4>>2]=0;c[(ea&p)>>2]=0;break}case 87:{aa=f+(da+-1<<4)+16|0;ba=c[(aa&p)+4>>2]|0;ca=ea;c[(ca&p)>>2]=c[(aa&p)>>2];c[(ca&p)+4>>2]=ba;break}case 90:{c[(ca&p)+324>>2]=0;break}case 109:{h=da+-7|0;r=f+(da+-3<<4)+16|0;q=f+(da+-2<<4)+16|0;x=c[(f+(da<<4)&p)+16>>2]|0;t=c[(f+(da+-6<<4)&p)+16>>2]|0;s=c[(f+(da+-4<<4)&p)+16>>2]|0;c[(I&p)>>2]=0;w=c[(ca&p)>>2]|0;if((c[(ca&p)+440>>2]|0)>0){th(ca,35440,ba);Mk(w,x,1);break a}Uq(ca,r,q,t,1,0,s);l=c[(ca&p)+484>>2]|0;if((l|0)!=0?(c[(ca&p)+64>>2]|0)==0:0){er(ca,r,q,I)|0;t=c[(l&p)+68>>2]|0;p:do if(t){r=c[(w&p)+20>>2]|0;if((r|0)>0){q=c[(w&p)+16>>2]|0;m=0;while(1){s=m+1|0;if((c[(q+(m<<4)&p)+12>>2]|0)==(t|0)){s=m;break p}if((s|0)<(r|0))m=s;else break}}else s=0}else s=-1e6;while(0);ba=c[(I&p)>>2]|0;aa=c[(ca&p)>>2]|0;c[(_&p)>>2]=ca;aa=c[(aa&p)+16>>2]|0;c[(_&p)+12>>2]=c[(aa+(s<<4)&p)>>2];c[(_&p)+4>>2]=c[(aa+(s<<4)&p)+12>>2];c[(_&p)+16>>2]=35480;c[(_&p)+20>>2]=ba;c[(_&p)+8>>2]=(s|0)==1&1;if(fr(_,x)|0){Mk(w,x,1);break a}c[(l&p)+12>>2]=gr(w,x,1)|0;Mk(w,x,1);if(a[(w&n)+65>>0]|0)break a;if(!(a[(w&n)+145>>0]|0))hr(ca,l)|0;q=ca+504|0;m=c[(q&p)>>2]|0;q=c[(q&p)+4>>2]|0;ba=$;c[(ba&p)>>2]=m;c[(ba&p)+4>>2]=q;ba=a[(m&n)>>0]|0;if(!(ba<<24>>24==59|ba<<24>>24==0)){m=m+q|0;c[($&p)>>2]=m}r=$+4|0;c[(r&p)>>2]=0;s=c[(f+(h<<4)&p)+16>>2]|0;q=m-s|0;do{ba=q;q=q+-1|0;l=s+q|0;if((ba|0)<=0)break}while((a[((d[(l&n)>>0]|0)&n)+10368>>0]&1)!=0);c[($&p)>>2]=l;c[(r&p)>>2]=1;Vq(ca,0,$,0,0);break a}Mk(w,x,1);break}case 93:{_q(ca,c[(f+(da+-3<<4)&p)+16>>2]|0,c[(f+(da<<4)&p)+16>>2]|0,c[(f+(da+-2<<4)&p)+16>>2]|0,0);break}case 94:{$q(ca,0,0,0,c[(f+(da+-2<<4)&p)+16>>2]|0,c[(f+(da<<4)&p)+16>>2]|0,0,0,0,0)|0;break}case 95:{ar(ca,c[(f+(da+-2<<4)&p)+16>>2]|0);break}case 96:{br(ca,c[(f+(da+-6<<4)&p)+16>>2]|0,f+(da+-3<<4)+16|0,c[(f+(da+-2<<4)&p)+16>>2]|0,c[(f+(da+-1<<4)&p)+16>>2]|0);k=c[(f+(da<<4)&p)+16>>2]|0;l=c[(ca&p)+484>>2]|0;if((l|0)!=0?(q=c[(l&p)+16>>2]|0,(q|0)!=0):0)a[(q&n)+24>>0]=k;break}case 99:{c[(ea&p)>>2]=10;break}case 101:{a[(ea&n)>>0]=10;break}case 102:{a[(ea&n)>>0]=c[(f+(da<<4)&p)+16>>2];break}case 104:{c[(ea&p)>>2]=4;break}case 105:{c[(ea&p)>>2]=5;break}case 106:{dr(ca,c[(f+(da<<4)&p)+16>>2]|0,0,c[(f+(da+-1<<4)&p)+16>>2]|0);break}case 110:{dr(ca,c[(f+(da<<4)&p)+16>>2]|0,1,c[(f+(da+-1<<4)&p)+16>>2]|0);break}case 111:{c[(z&p)>>2]=c[5124];c[(z&p)+4>>2]=c[5125];c[(z&p)+8>>2]=c[5126];c[(z&p)+12>>2]=c[5127];c[(z&p)+16>>2]=c[5128];ba=f+(da<<4)+16|0;ir(ca,c[(ba&p)>>2]|0,z)|0;Mk(c[(ca&p)>>2]|0,c[(ba&p)>>2]|0,1);break}case 112:{t=c[(f+(da<<4)&p)+16>>2]|0;do if(t){c[(t&p)+68>>2]=c[(f+(da+-1<<4)&p)+16>>2];l=c[(t&p)+52>>2]|0;if(l){m=128;q=1;r=t;s=0;while(1){c[(r&p)+56>>2]=s;$=r+6|0;aa=e[($&o)>>1]|64;b[($&o)>>1]=aa;m=aa&m;if(!l)break;aa=l;l=c[(l&p)+52>>2]|0;q=q+1|0;s=r;r=aa}if(m){ca=t+6|0;b[(ca&o)>>1]=e[(ca&o)>>1]|256;break}aa=c[((c[(ca&p)>>2]|0)&p)+104>>2]|0;if((aa|0)>0&(q|0)>(aa|0))th(ca,20520,ba)}}else Qn(c[(ca&p)>>2]|0,c[(f+(da+-1<<4)&p)+16>>2]|0);while(0);c[(ea&p)>>2]=t;break}case 116:{c[(ea&p)>>2]=116;break}case 119:case 113:{c[(ea&p)>>2]=c[(f+(da<<4)&p)+16>>2];break}case 114:{h=c[(f+(da<<4)&p)+16>>2]|0;do if(h){if(c[(h&p)+52>>2]|0){c[(l&p)+4>>2]=0;h=kr(ca,0,jr(ca,0,0,0,l,h,0,0)|0,0,0,0,0,0,0,0)|0;if(!h){aa=192;break}}ba=c[(f+(da+-1<<4)&p)+16>>2]|0;a[(h&n)+4>>0]=ba;c[(h&p)+52>>2]=c[(f+(da+-2<<4)&p)+16>>2];if((ba|0)!=116)a[(ca&n)+22>>0]=1}else aa=192;while(0);if((aa|0)==192){Mk(c[(ca&p)>>2]|0,c[(f+(da+-2<<4)&p)+16>>2]|0,1);h=0}c[(ea&p)>>2]=h;break}case 121:{h=kr(ca,c[(f+(da+-1<<4)&p)+16>>2]|0,0,0,0,0,0,128,0,0)|0;if(!h){c[(ea&p)>>2]=c[(f+(da+-4<<4)&p)+16>>2];break a}else{a[(h&n)+4>>0]=116;c[(h&p)+52>>2]=c[(f+(da+-4<<4)&p)+16>>2];c[(ea&p)>>2]=h;break a}}case 122:{b[(ea&o)>>1]=1;break}case 124:case 123:{b[(ea&o)>>1]=0;break}case 242:case 236:case 161:case 154:case 126:{c[(ea&p)>>2]=0;break}case 243:case 125:{c[(ea&p)>>2]=c[(f+(da+-1<<4)&p)+16>>2];break}case 167:{c[(ea&p)>>2]=c[(f+(da+-2<<4)&p)+16>>2];c[(ea&p)+4>>2]=c[(f+(da<<4)&p)+16>>2];break}case 168:{c[(ea&p)+4>>2]=c[(f+(da+-2<<4)&p)+16>>2];c[(ea&p)>>2]=c[(f+(da<<4)&p)+16>>2];break}case 169:{h=c[(f+(da+-5<<4)&p)+16>>2]|0;if(h){ba=ca+532|0;c[(h&p)+4>>2]=c[(ba&p)>>2];c[(ba&p)>>2]=h;a[(ca&n)+449>>0]=1}ba=f+(da+-2<<4)+16|0;or(ca,c[(ba&p)>>2]|0,f+(da+-1<<4)+16|0);rr(ca,c[(ba&p)>>2]|0,c[(f+(da<<4)&p)+16>>2]|0);break}case 176:{h=c[(f+(da+-6<<4)&p)+16>>2]|0;if(h){ba=ca+532|0;c[(h&p)+4>>2]=c[(ba&p)>>2];c[(ba&p)>>2]=h;a[(ca&n)+449>>0]=1}tr(ca,c[(f+(da+-3<<4)&p)+16>>2]|0,0,c[(f+(da+-2<<4)&p)+16>>2]|0,d[(f+(da+-5<<4)&n)+16>>0]|0);break}case 173:{ba=lr(ca,c[(f+(da+-4<<4)&p)+16>>2]|0,c[(f+(da<<4)&p)+16>>2]|0)|0;c[(ea&p)>>2]=ba;mr(ca,ba,f+(da+-2<<4)+16|0,1);break}case 174:{ba=lr(ca,0,c[(f+(da<<4)&p)+16>>2]|0)|0;c[(ea&p)>>2]=ba;mr(ca,ba,f+(da+-2<<4)+16|0,1);break}case 175:{h=c[(f+(da+-5<<4)&p)+16>>2]|0;if(h){ba=ca+532|0;c[(h&p)+4>>2]=c[(ba&p)>>2];c[(ba&p)>>2]=h;a[(ca&n)+449>>0]=1}tr(ca,c[(f+(da+-2<<4)&p)+16>>2]|0,c[(f+(da<<4)&p)+16>>2]|0,c[(f+(da+-1<<4)&p)+16>>2]|0,d[(f+(da+-4<<4)&n)+16>>0]|0);break}case 181:{c[(ea&p)>>2]=ur(c[(ca&p)>>2]|0,c[(f+(da+-2<<4)&p)+16>>2]|0,f+(da<<4)+16|0)|0;break}case 182:{c[(ea&p)>>2]=ur(c[(ca&p)>>2]|0,0,f+(da<<4)+16|0)|0;break}case 183:{ca=f+(da<<4)+16|0;c[(ea&p)>>2]=c[(ca&p)>>2];c[(ea&p)+4>>2]=c[(ca&p)+4>>2];c[(ea&p)+8>>2]=c[(ca&p)+8>>2];break}case 177:{a[(ea&n)>>0]=a[(f+(da<<4)&n)+16>>0]|0;break}case 178:{a[(ea&n)>>0]=5;break}case 184:{c[(ea&p)>>2]=c[(f+(da+-1<<4)&p)+16>>2];c[(ea&p)+4>>2]=c[(f+(da+-2<<4)&p)+16>>2];c[(ea&p)+8>>2]=(c[(f+(da<<4)&p)+16>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0);break}case 191:case 190:case 185:{ba=f+(da<<4)+16|0;c[(ea&p)>>2]=Zq(ca,d[(f+(da<<4)&n)+14>>0]|0,0,0,ba)|0;ca=c[(ba&p)>>2]|0;c[(ea&p)+4>>2]=ca;c[(ea&p)+8>>2]=ca+(c[(f+(da<<4)&p)+20>>2]|0);break}case 187:case 186:{ba=f+(da<<4)+16|0;c[(ea&p)>>2]=Zq(ca,27,0,0,ba)|0;ca=c[(ba&p)>>2]|0;c[(ea&p)+4>>2]=ca;c[(ea&p)+8>>2]=ca+(c[(f+(da<<4)&p)+20>>2]|0);break}case 188:{aa=f+(da+-2<<4)+16|0;ba=f+(da<<4)+16|0;c[(ea&p)>>2]=Zq(ca,122,Zq(ca,27,0,0,aa)|0,Zq(ca,27,0,0,ba)|0,0)|0;c[(ea&p)+4>>2]=c[(aa&p)>>2];c[(ea&p)+8>>2]=(c[(ba&p)>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0);break}case 189:{aa=f+(da+-4<<4)+16|0;ba=f+(da<<4)+16|0;c[(ea&p)>>2]=Zq(ca,122,Zq(ca,27,0,0,aa)|0,Zq(ca,122,Zq(ca,27,0,0,f+(da+-2<<4)+16|0)|0,Zq(ca,27,0,0,ba)|0,0)|0,0)|0;c[(ea&p)+4>>2]=c[(aa&p)>>2];c[(ea&p)+8>>2]=(c[(ba&p)>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0);break}case 192:{x=f+(da<<4)+16|0;w=f+(da<<4)+20|0;do if(((c[(w&p)>>2]|0)>>>0>1?(C=c[(x&p)>>2]|0,(a[(C&n)>>0]|0)==35):0)?((d[(C&n)+1>>0]|0)+-48|0)>>>0<10:0){if(!(a[(ca&n)+18>>0]|0)){c[(ba&p)>>2]=x;th(ca,20432,ba);c[(ea&p)>>2]=0;break}r=Zq(ca,159,0,0,x)|0;c[(ea&p)>>2]=r;if(r)Dn((c[(x&p)>>2]|0)+1|0,r+28|0)|0}else aa=298;while(0);q:do if((aa|0)==298?(P=Zq(ca,135,0,0,x)|0,c[(ea&p)>>2]=P,W=c[(x&p)>>2]|0,c[(ea&p)+4>>2]=W,c[(ea&p)+8>>2]=W+(c[(w&p)>>2]|0),W=c[(ca&p)>>2]|0,(P|0)!=0):0){z=c[(P&p)+8>>2]|0;r=z+1|0;do if(a[(r&n)>>0]|0){y=(z|0)==0;if(y)A=0;else{t=z;while(1)if(!(a[(t&n)>>0]|0))break;else t=t+1|0;A=t-z&1073741823}r:do if((a[(z&n)>>0]|0)==63){$=Ul(r,H,A+-1|0,1)|0;m=H;q=c[(m&p)>>2]|0;m=c[(m&p)+4>>2]|0;t=q&65535;b[(P&o)+32>>1]=t;r=c[(W&p)+124>>2]|0;aa=((r|0)<0)<<31>>31;if((m|0)<0|(m|0)==0&q>>>0<1|($|0)!=0|((m|0)>(aa|0)|(m|0)==(aa|0)&q>>>0>r>>>0)){c[(ba&p)>>2]=r;th(ca,33296,ba);t=0}r=ca+440|0;aa=c[(r&p)>>2]|0;$=((aa|0)<0)<<31>>31;if((m|0)>($|0)|(m|0)==($|0)&q>>>0>aa>>>0)c[(r&p)>>2]=q}else{r=c[(ca&p)+444>>2]|0;s:do if((r|0)>0){q=c[(ca&p)+472>>2]|0;t=0;l=0;while(1){m=c[(q+(t<<2)&p)>>2]|0;if((m|0)!=0?(_v(m,z)|0)==0:0)break;l=l+1<<16>>16;t=l<<16>>16;if((t|0)>=(r|0)){aa=315;break s}}t=t+1&65535;r=P+32|0;b[(r&o)>>1]=t;if(t<<16>>16)break r}else aa=315;while(0);if((aa|0)==315)r=P+32|0;aa=ca+440|0;t=(c[(aa&p)>>2]|0)+1|0;c[(aa&p)>>2]=t;t=t&65535;b[(r&o)>>1]=t}while(0);m=t<<16>>16;if(t<<16>>16>0){t=ca+444|0;if((m|0)>(c[(t&p)>>2]|0)){r=ca+472|0;q=ro(W,c[(r&p)>>2]|0,m<<2,0)|0;if(!q)break q;c[(r&p)>>2]=q;aa=c[(t&p)>>2]|0;fw(q+(aa<<2)|0,0,m-aa<<2|0)|0;c[(t&p)>>2]=m}if((a[(z&n)>>0]|0)==63){r=m+-1|0;if(!(c[((c[(ca&p)+472>>2]|0)+(r<<2)&p)>>2]|0))t=0;else break}else{t=m+-1|0;r=t;t=c[((c[(ca&p)+472>>2]|0)+(t<<2)&p)>>2]|0}q=ca+472|0;mg(W,t);if(!y?(s=jw(A|0,0,1,0)|0,s=mh(W,s,G)|0,(s|0)!=0):0){kw(s|0,z|0,A|0)|0;a[(s+A&n)>>0]=0}else s=0;c[((c[(q&p)>>2]|0)+(r<<2)&p)>>2]=s}}else{$=ca+440|0;aa=(c[($&p)>>2]|0)+1|0;c[($&p)>>2]=aa;b[(P&o)+32>>1]=aa}while(0);if((c[(ca&p)+64>>2]|0)==0?(c[(ca&p)+440>>2]|0)>(c[(W&p)+124>>2]|0):0)th(ca,33344,ba)}while(0);ca=c[(x&p)>>2]|0;c[(ea&p)+4>>2]=ca;c[(ea&p)+8>>2]=ca+(c[(w&p)>>2]|0);break}case 196:{ba=f+(da+-3<<4)+16|0;c[(ea&p)>>2]=wr(ca,0,ba)|0;c[(ea&p)+4>>2]=c[(ba&p)>>2];c[(ea&p)+8>>2]=(c[(f+(da<<4)&p)+16>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0);break}case 197:{ba=f+(da<<4)+16|0;c[(ea&p)>>2]=wr(ca,0,ba)|0;ca=c[(ba&p)>>2]|0;c[(ea&p)+4>>2]=ca;c[(ea&p)+8>>2]=ca+(c[(f+(da<<4)&p)+20>>2]|0);break}case 193:{aa=da+-2|0;ba=f+(da<<4)+16|0;c[(ea&p)>>2]=vr(ca,c[(f+(aa<<4)&p)+16>>2]|0,ba,1)|0;c[(ea&p)+4>>2]=c[(f+(aa<<4)&p)+20>>2];c[(ea&p)+8>>2]=(c[(ba&p)>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0);break}case 194:{c[(ea&p)>>2]=Zq(ca,38,c[(f+(da+-3<<4)&p)+16>>2]|0,0,f+(da+-1<<4)+16|0)|0;c[(ea&p)+4>>2]=c[(f+(da+-5<<4)&p)+16>>2];c[(ea&p)+8>>2]=(c[(f+(da<<4)&p)+16>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0);break}case 195:{l=f+(da+-1<<4)+16|0;h=c[(l&p)>>2]|0;if(h){if((c[(h&p)>>2]|0)>(c[((c[(ca&p)>>2]|0)&p)+112>>2]|0)){c[(ba&p)>>2]=f+(da+-4<<4)+16;th(ca,20576,ba);h=c[(l&p)>>2]|0}}else h=0;ba=f+(da+-4<<4)+16|0;h=wr(ca,h,ba)|0;c[(ea&p)>>2]=h;c[(ea&p)+4>>2]=c[(ba&p)>>2];c[(ea&p)+8>>2]=(c[(f+(da<<4)&p)+16>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0);if(!((h|0)==0?1:(b[(f+(da+-2<<4)&o)+16>>1]|0)==0)){ca=h+4|0;c[(ca&p)>>2]=c[(ca&p)>>2]|16}break}case 205:case 204:case 203:case 202:case 201:case 200:case 199:case 198:{ba=da+-2|0;c[(ea&p)>>2]=Zq(ca,d[(f+(da+-1<<4)&n)+14>>0]|0,c[(f+(ba<<4)&p)+16>>2]|0,c[(f+(da<<4)&p)+16>>2]|0,0)|0;c[(ea&p)+4>>2]=c[(f+(ba<<4)&p)+20>>2];c[(ea&p)+8>>2]=c[(f+(da<<4)&p)+24>>2];break}case 206:{aa=f+(da<<4)+16|0;ba=c[(aa&p)+4>>2]|0;ca=ea;c[(ca&p)>>2]=c[(aa&p)>>2];c[(ca&p)+4>>2]=ba;c[(ea&p)+8>>2]=0;break}case 207:{aa=f+(da<<4)+16|0;ba=c[(aa&p)+4>>2]|0;ca=ea;c[(ca&p)>>2]=c[(aa&p)>>2];c[(ca&p)+4>>2]=ba;c[(ea&p)+8>>2]=1;break}case 208:{l=da+-2|0;ba=da+-1|0;h=wr(ca,lr(ca,lr(ca,0,c[(f+(da<<4)&p)+16>>2]|0)|0,c[(f+(l<<4)&p)+16>>2]|0)|0,f+(ba<<4)+16|0)|0;c[(ea&p)>>2]=h;if(c[(f+(ba<<4)&p)+24>>2]|0){h=Zq(ca,19,h,0,0)|0;c[(ea&p)>>2]=h}c[(ea&p)+4>>2]=c[(f+(l<<4)&p)+20>>2];c[(ea&p)+8>>2]=c[(f+(da<<4)&p)+24>>2];if(h){ca=h+4|0;c[(ca&p)>>2]=c[(ca&p)>>2]|128}break}case 210:{ba=da+-1|0;c[(ea&p)>>2]=Zq(ca,d[(f+(da<<4)&n)+14>>0]|0,c[(f+(ba<<4)&p)+16>>2]|0,0,0)|0;c[(ea&p)+4>>2]=c[(f+(ba<<4)&p)+20>>2];c[(ea&p)+8>>2]=(c[(f+(da<<4)&p)+16>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0);break}case 209:{l=da+-4|0;ba=da+-3|0;h=wr(ca,lr(ca,lr(ca,lr(ca,0,c[(f+(da+-2<<4)&p)+16>>2]|0)|0,c[(f+(l<<4)&p)+16>>2]|0)|0,c[(f+(da<<4)&p)+16>>2]|0)|0,f+(ba<<4)+16|0)|0;c[(ea&p)>>2]=h;if(c[(f+(ba<<4)&p)+24>>2]|0){h=Zq(ca,19,h,0,0)|0;c[(ea&p)>>2]=h}c[(ea&p)+4>>2]=c[(f+(l<<4)&p)+20>>2];c[(ea&p)+8>>2]=c[(f+(da<<4)&p)+24>>2];if(h){ca=h+4|0;c[(ca&p)>>2]=c[(ca&p)>>2]|128}break}case 223:{l=f+(da+-1<<4)+16|0;h=c[(l&p)>>2]|0;do if(h){if((c[(h&p)>>2]|0)==1){ba=c[(h&p)+4>>2]|0;h=c[(ba&p)>>2]|0;c[(ba&p)>>2]=0;Nk(c[(ca&p)>>2]|0,c[(l&p)>>2]|0);if(h){ba=h+4|0;c[(ba&p)>>2]=c[(ba&p)>>2]&-769|512}c[(ea&p)>>2]=Zq(ca,(c[(f+(da+-3<<4)&p)+16>>2]|0)!=0?78:79,c[(f+(da+-4<<4)&p)+16>>2]|0,h,0)|0;break}h=Zq(ca,75,c[(f+(da+-4<<4)&p)+16>>2]|0,0,0)|0;c[(ea&p)>>2]=h;if(!h){Nk(c[(ca&p)>>2]|0,c[(l&p)>>2]|0);h=0}else{c[(h&p)+20>>2]=c[(l&p)>>2];h=c[(ea&p)>>2]|0;yr(ca,h)}if(c[(f+(da+-3<<4)&p)+16>>2]|0)c[(ea&p)>>2]=Zq(ca,19,h,0,0)|0}else{c[(ea&p)>>2]=Zq(ca,132,0,0,20616+(c[(f+(da+-3<<4)&p)+16>>2]<<3)|0)|0;Gk(c[(ca&p)>>2]|0,c[(f+(da+-4<<4)&p)+16>>2]|0)}while(0);c[(ea&p)+4>>2]=c[(f+(da+-4<<4)&p)+20>>2];c[(ea&p)+8>>2]=(c[(f+(da<<4)&p)+16>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0);break}case 211:{ba=da+-2|0;c[(ea&p)>>2]=Zq(ca,77,c[(f+(ba<<4)&p)+16>>2]|0,0,0)|0;c[(ea&p)+4>>2]=c[(f+(ba<<4)&p)+20>>2];c[(ea&p)+8>>2]=(c[(f+(da<<4)&p)+16>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0);break}case 212:{$=da+-2|0;aa=f+(da<<4)+16|0;ba=Zq(ca,73,c[(f+($<<4)&p)+16>>2]|0,c[(aa&p)>>2]|0,0)|0;c[(ea&p)>>2]=ba;c[(ea&p)+4>>2]=c[(f+($<<4)&p)+20>>2];c[(ea&p)+8>>2]=c[(f+(da<<4)&p)+24>>2];xr(ca,c[(aa&p)>>2]|0,ba,76);break}case 213:{$=da+-3|0;aa=f+(da<<4)+16|0;ba=Zq(ca,148,c[(f+($<<4)&p)+16>>2]|0,c[(aa&p)>>2]|0,0)|0;c[(ea&p)>>2]=ba;c[(ea&p)+4>>2]=c[(f+($<<4)&p)+20>>2];c[(ea&p)+8>>2]=c[(f+(da<<4)&p)+24>>2];xr(ca,c[(aa&p)>>2]|0,ba,77);break}case 215:case 214:{ba=da+-1|0;c[(ea&p)>>2]=Zq(ca,d[(f+(ba<<4)&n)+14>>0]|0,c[(f+(da<<4)&p)+16>>2]|0,0,0)|0;c[(ea&p)+4>>2]=c[(f+(ba<<4)&p)+16>>2];c[(ea&p)+8>>2]=c[(f+(da<<4)&p)+24>>2];break}case 216:{c[(ea&p)>>2]=Zq(ca,157,c[(f+(da<<4)&p)+16>>2]|0,0,0)|0;c[(ea&p)+4>>2]=c[(f+(da+-1<<4)&p)+16>>2];c[(ea&p)+8>>2]=c[(f+(da<<4)&p)+24>>2];break}case 217:{c[(ea&p)>>2]=Zq(ca,158,c[(f+(da<<4)&p)+16>>2]|0,0,0)|0;c[(ea&p)+4>>2]=c[(f+(da+-1<<4)&p)+16>>2];c[(ea&p)+8>>2]=c[(f+(da<<4)&p)+24>>2];break}case 220:{k=lr(ca,lr(ca,0,c[(f+(da+-2<<4)&p)+16>>2]|0)|0,c[(f+(da<<4)&p)+16>>2]|0)|0;l=da+-4|0;h=Zq(ca,74,c[(f+(l<<4)&p)+16>>2]|0,0,0)|0;c[(ea&p)>>2]=h;if(!h)Nk(c[(ca&p)>>2]|0,k);else c[(h&p)+20>>2]=k;if(c[(f+(da+-3<<4)&p)+16>>2]|0)c[(ea&p)>>2]=Zq(ca,19,c[(ea&p)>>2]|0,0,0)|0;c[(ea&p)+4>>2]=c[(f+(l<<4)&p)+20>>2];c[(ea&p)+8>>2]=c[(f+(da<<4)&p)+24>>2];break}case 224:{h=Zq(ca,119,0,0,0)|0;c[(ea&p)>>2]=h;if(!h)Mk(c[(ca&p)>>2]|0,c[(f+(da+-1<<4)&p)+16>>2]|0,1);else{c[(h&p)+20>>2]=c[(f+(da+-1<<4)&p)+16>>2];ba=c[(ea&p)>>2]|0;aa=ba+4|0;c[(aa&p)>>2]=c[(aa&p)>>2]|2099200;yr(ca,ba)}c[(ea&p)+4>>2]=c[(f+(da+-2<<4)&p)+16>>2];c[(ea&p)+8>>2]=(c[(f+(da<<4)&p)+16>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0);break}case 118:{c[(ea&p)>>2]=kr(ca,c[(f+(da+-6<<4)&p)+16>>2]|0,c[(f+(da+-5<<4)&p)+16>>2]|0,c[(f+(da+-4<<4)&p)+16>>2]|0,c[(f+(da+-3<<4)&p)+16>>2]|0,c[(f+(da+-2<<4)&p)+16>>2]|0,c[(f+(da+-1<<4)&p)+16>>2]|0,b[(f+(da+-7<<4)&o)+16>>1]|0,c[(f+(da<<4)&p)+16>>2]|0,c[(f+(da<<4)&p)+20>>2]|0)|0;break}case 120:{c[(ea&p)>>2]=kr(ca,c[(f+(da+-1<<4)&p)+16>>2]|0,0,0,0,0,0,128,0,0)|0;break}case 127:{l=da+-1|0;q=lr(ca,c[(f+(da+-2<<4)&p)+16>>2]|0,c[(f+(l<<4)&p)+16>>2]|0)|0;c[(ea&p)>>2]=q;if(c[(f+(da<<4)&p)+20>>2]|0)mr(ca,q,f+(da<<4)+16|0,1);s=c[(ca&p)>>2]|0;if(q){r=(c[(q&p)+4>>2]|0)+(((c[(q&p)>>2]|0)+-1|0)*20|0)+8|0;mg(s,c[(r&p)>>2]|0);m=c[(f+(l<<4)&p)+20>>2]|0;q=(c[(f+(l<<4)&p)+24>>2]|0)-m|0;if((m|0)!=0?(h=jw(q|0,((q|0)<0)<<31>>31|0,1,0)|0,h=mh(s,h,G)|0,(h|0)!=0):0){kw(h|0,m|0,q|0)|0;a[(h+q&n)>>0]=0}else h=0;c[(r&p)>>2]=h}break}case 133:{l=mh(c[(ca&p)>>2]|0,80,0)|0;if(l){y=l+0|0;k=y+80|0;do{a[(y&n)>>0]=0;y=y+1|0}while((y|0)<(k|0))}c[(ea&p)>>2]=l;break}case 134:{q=c[(f+(da<<4)&p)+16>>2]|0;c[(ea&p)>>2]=q;if(q){l=c[(q&p)>>2]|0;k=l+-1|0;if((k|0)>0)while(1){a[(q+(k*72|0)&n)+44>>0]=a[(q+((l+-2|0)*72|0)&n)+44>>0]|0;l=k+-1|0;if((l|0)>0){ca=k;k=l;l=ca}else break}a[(q&n)+44>>0]=0}break}case 128:{aa=c[(ca&p)>>2]|0;c[(ba&p)>>2]=0;c[(ba&p)+4>>2]=0;ba=nr(aa,116,ba,0)|0;c[(ea&p)>>2]=lr(ca,c[(f+(da+-1<<4)&p)+16>>2]|0,ba)|0;break}case 132:{c[(ea&p)+4>>2]=0;break}case 129:{ba=Zq(ca,116,0,0,f+(da<<4)+16|0)|0;ba=Zq(ca,122,Zq(ca,27,0,0,f+(da+-2<<4)+16|0)|0,ba,0)|0;c[(ea&p)>>2]=lr(ca,c[(f+(da+-3<<4)&p)+16>>2]|0,ba)|0;break}case 136:{c[(ea&p)>>2]=0;break}case 137:{ba=jr(ca,c[(f+(da+-6<<4)&p)+16>>2]|0,f+(da+-5<<4)+16|0,f+(da+-4<<4)+16|0,f+(da+-3<<4)+16|0,0,c[(f+(da+-1<<4)&p)+16>>2]|0,c[(f+(da<<4)&p)+16>>2]|0)|0;c[(ea&p)>>2]=ba;or(ca,ba,f+(da+-2<<4)+16|0);break}case 135:{h=c[(f+(da+-1<<4)&p)+16>>2]|0;c[(ea&p)>>2]=h;if((h|0)!=0?(w=c[(h&p)>>2]|0,(w|0)>0):0)a[(h+((w+-1|0)*72|0)&n)+44>>0]=c[(f+(da<<4)&p)+16>>2];break}case 138:{c[(ea&p)>>2]=jr(ca,c[(f+(da+-6<<4)&p)+16>>2]|0,0,0,f+(da+-2<<4)+16|0,c[(f+(da+-4<<4)&p)+16>>2]|0,c[(f+(da+-1<<4)&p)+16>>2]|0,c[(f+(da<<4)&p)+16>>2]|0)|0;break}case 139:{l=f+(da+-6<<4)+16|0;q=c[(l&p)>>2]|0;if((((q|0)==0?(c[(f+(da+-2<<4)&p)+20>>2]|0)==0:0)?(c[(f+(da+-1<<4)&p)+16>>2]|0)==0:0)?(c[(f+(da<<4)&p)+16>>2]|0)==0:0){c[(ea&p)>>2]=c[(f+(da+-4<<4)&p)+16>>2];break a}s=f+(da+-4<<4)+16|0;k=c[(s&p)>>2]|0;r=c[(k&p)>>2]|0;if((r|0)==1){l=jr(ca,q,0,0,f+(da+-2<<4)+16|0,0,c[(f+(da+-1<<4)&p)+16>>2]|0,c[(f+(da<<4)&p)+16>>2]|0)|0;c[(ea&p)>>2]=l;if(l){_=(c[(l&p)>>2]|0)+-1|0;ba=c[(s&p)>>2]|0;aa=ba+16|0;c[(l+(_*72|0)&p)+16>>2]=c[(aa&p)>>2];$=ba+12|0;c[(l+(_*72|0)&p)+12>>2]=c[($&p)>>2];ba=ba+28|0;c[(l+(_*72|0)&p)+28>>2]=c[(ba&p)>>2];c[($&p)>>2]=0;c[(aa&p)>>2]=0;c[(ba&p)>>2]=0}Do(c[(ca&p)>>2]|0,c[(s&p)>>2]|0);break a}if(k){m=r+-1|0;if((m|0)>0){q=r;while(1){a[(k+(m*72|0)&n)+44>>0]=a[(k+((q+-2|0)*72|0)&n)+44>>0]|0;q=m+-1|0;if((q|0)>0){ba=m;m=q;q=ba}else break}}a[(k&n)+44>>0]=0}ba=kr(ca,0,k,0,0,0,0,512,0,0)|0;c[(ea&p)>>2]=jr(ca,c[(l&p)>>2]|0,0,0,f+(da+-2<<4)+16|0,ba,c[(f+(da+-1<<4)&p)+16>>2]|0,c[(f+(da<<4)&p)+16>>2]|0)|0;break}case 149:case 140:{c[(ea&p)>>2]=0;c[(ea&p)+4>>2]=0;break}case 144:{c[(ea&p)>>2]=qr(ca,f+(da+-1<<4)+16|0,0,0)|0;break}case 145:{c[(ea&p)>>2]=qr(ca,f+(da+-2<<4)+16|0,f+(da+-1<<4)+16|0,0)|0;break}case 146:{c[(ea&p)>>2]=qr(ca,f+(da+-3<<4)+16|0,f+(da+-2<<4)+16|0,f+(da+-1<<4)+16|0)|0;break}case 233:case 231:case 171:case 164:case 147:{c[(ea&p)>>2]=c[(f+(da<<4)&p)+16>>2];break}case 234:case 232:case 170:case 163:case 148:{c[(ea&p)>>2]=0;break}case 151:{c[(ea&p)>>2]=0;c[(ea&p)+4>>2]=1;break}case 143:{c[(ea&p)>>2]=1;break}case 142:{c[(ea&p)>>2]=pr(c[(ca&p)>>2]|0,0,f+(da+-1<<4)+16|0,f+(da<<4)+16|0)|0;break}case 157:{h=lr(ca,0,c[(f+(da+-1<<4)&p)+16>>2]|0)|0;c[(ea&p)>>2]=h;if((h|0)!=0?(k=c[(h&p)+4>>2]|0,(k|0)!=0):0)a[(k&n)+12>>0]=c[(f+(da<<4)&p)+16>>2];break}case 160:case 158:{c[(ea&p)>>2]=0;break}case 159:{c[(ea&p)>>2]=1;break}case 165:{c[(ea&p)>>2]=0;c[(ea&p)+4>>2]=0;break}case 166:{c[(ea&p)>>2]=c[(f+(da<<4)&p)+16>>2];c[(ea&p)+4>>2]=0;break}case 179:case 153:{c[(ea&p)>>2]=0;break}case 180:case 152:{c[(ea&p)>>2]=c[(f+(da+-1<<4)&p)+16>>2];break}case 172:{l=c[(f+(da+-7<<4)&p)+16>>2]|0;if(l){aa=ca+532|0;c[(l&p)+4>>2]=c[(aa&p)>>2];c[(aa&p)>>2]=l;a[(ca&n)+449>>0]=1}m=f+(da+-4<<4)+16|0;or(ca,c[(m&p)>>2]|0,f+(da+-3<<4)+16|0);q=f+(da+-1<<4)+16|0;l=c[(q&p)>>2]|0;if(l){if((c[(l&p)>>2]|0)>(c[((c[(ca&p)>>2]|0)&p)+96>>2]|0)){c[(ba&p)>>2]=20560;th(ca,34544,ba);l=c[(q&p)>>2]|0}}else l=0;sr(ca,c[(m&p)>>2]|0,l,c[(f+(da<<4)&p)+16>>2]|0,d[(f+(da+-5<<4)&n)+16>>0]|0);break}case 235:case 162:case 155:{c[(ea&p)>>2]=c[(f+(da<<4)&p)+16>>2];break}case 156:{h=lr(ca,c[(f+(da+-3<<4)&p)+16>>2]|0,c[(f+(da+-1<<4)&p)+16>>2]|0)|0;c[(ea&p)>>2]=h;if(h)a[((c[(h&p)+4>>2]|0)+(((c[(h&p)>>2]|0)+-1|0)*20|0)&n)+12>>0]=c[(f+(da<<4)&p)+16>>2];break}case 7:{a[(ca&n)+450>>0]=2;c[(ca&p)+440>>2]=0;break}case 23:{Tq(ca,1,f+(da<<4)+16|0);break}case 24:{Tq(ca,2,f+(da<<4)+16|0);break}case 26:{Uq(ca,f+(da+-1<<4)+16|0,f+(da<<4)+16|0,c[(f+(da+-4<<4)&p)+16>>2]|0,0,0,c[(f+(da+-2<<4)&p)+16>>2]|0);break}default:{}}while(0);h=a[(g<<1&n)+20912>>0]|0;r=h&255;q=a[(g<<1&n)+20913>>0]|0;m=q&255;s=(c[(f&p)>>2]|0)-m|0;c[(f&p)>>2]=s;l=b[((b[(e[(f+(da-m<<4)&o)+12>>1]<<1&o)+21568>>1]|0)+r<<1&o)+22184>>1]|0;k=l&65535;do if((l&65535)<642)if(!(q<<24>>24)){kq(f,k,r,ea);break}else{c[(f&p)>>2]=s+1;da=1-m+da|0;b[(f+(da<<4)&o)+12>>1]=l;a[(f+(da<<4)&n)+14>>0]=h;da=f+(da<<4)+16|0;c[(da&p)>>2]=c[(ea&p)>>2];c[(da&p)+4>>2]=c[(ea&p)+4>>2];c[(da&p)+8>>2]=c[(ea&p)+8>>2];break}else{h=c[(ga&p)>>2]|0;if((s|0)>-1)do Pn(f);while((c[(f&p)>>2]|0)>-1);c[(ga&p)>>2]=h}while(0);i=ha;return}function nq(e,f){e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=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,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,ga=0;da=i;i=i+64|0;if((i|0)>=(j|0))fa();ca=da+8|0;Z=da;q=da+24|0;h=da+16|0;l=xq(e,0,h)|0;do if(!l){if(c[(h&p)>>2]|0){l=ds(e,f)|0;if(!l)g=0;else k=4}else{l=1;k=4}if((k|0)==4){ba=e+43|0;k=(a[(ba&n)>>0]|0)==0;do if(!(a[(e&n)+46>>0]&2)){if(k?(m=e+4|0,aa=c[(m&p)>>2]|0,ac[c[((c[(aa&p)>>2]|0)&p)+40>>2]&63](aa,24,0)|0,m=c[(m&p)>>2]|0,m=pc[c[((c[(m&p)>>2]|0)&p)+56>>2]&31](m,0,1,10)|0,(m|0)!=0):0){h=l;g=m;break}aa=e+44|0;a[(aa&n)>>0]=1;k=xq(e,0,h)|0;if(!k){h=ds(e,f)|0;if(!h){h=0;g=0}else{$=d[(e&n)+45>>0]|0;_=$+1|0;$=7-$|0;if(!((a[(ba&n)>>0]|0)==0?(g=c[(e&p)+4>>2]|0,g=pc[c[((c[(g&p)>>2]|0)&p)+56>>2]&31](g,_,$,10)|0,(g|0)!=0):0)){l=e+52|0;k=l+48|0;do{c[(l&p)>>2]=0;l=l+4|0}while((l|0)<(k|0));T=e+8|0;g=c[(T&p)>>2]|0;g=rc[c[((c[(g&p)>>2]|0)&p)+24>>2]&127](g,Z)|0;a:do if(!g){U=Z;S=c[(U&p)+4>>2]|0;b:do if((S|0)>0|(S|0)==0&(c[(U&p)>>2]|0)>>>0>32){g=c[(T&p)>>2]|0;g=tc[c[((c[(g&p)>>2]|0)&p)+8>>2]&31](g,q,32,0,0)|0;if(g)break a;m=d[(q&n)+3>>0]|0;k=d[(q&n)+9>>0]<<16|d[(q&n)+8>>0]<<24;g=d[(q&n)+10>>0]<<8;l=k|g|d[(q&n)+11>>0];if(((d[(q&n)+1>>0]<<16|d[(q&n)>>0]<<24|d[(q&n)+2>>0]<<8|m&254|0)==931071618?!((l+-1&l|0)!=0|(l|0)>65536|(l|0)<512):0)?(U=m&1,V=e+65|0,a[(V&n)>>0]=U,W=e+36|0,c[(W&p)>>2]=l,c[(e&p)+104>>2]=d[(q&n)+13>>0]<<16|d[(q&n)+12>>0]<<24|d[(q&n)+14>>0]<<8|d[(q&n)+15>>0],X=e+84|0,S=q+16|0,Q=S,Q=d[(Q&n)>>0]|d[(Q&n)+1>>0]<<8|d[(Q&n)+2>>0]<<16|d[(Q&n)+3>>0]<<24,S=S+4|0,S=d[(S&n)>>0]|d[(S&n)+1>>0]<<8|d[(S&n)+2>>0]<<16|d[(S&n)+3>>0]<<24,Y=X,R=Y,a[(R&n)>>0]=Q,a[(R&n)+1>>0]=Q>>8,a[(R&n)+2>>0]=Q>>16,a[(R&n)+3>>0]=Q>>24,Y=Y+4|0,a[(Y&n)>>0]=S,a[(Y&n)+1>>0]=S>>8,a[(Y&n)+2>>0]=S>>16,a[(Y&n)+3>>0]=S>>24,Y=e+76|0,yq(U^1,q,24,0,Y),(c[(Y&p)>>2]|0)==(d[(q&n)+25>>0]<<16|d[(q&n)+24>>0]<<24|d[(q&n)+26>>0]<<8|d[(q&n)+27>>0]|0)):0){S=e+80|0;if((c[(S&p)>>2]|0)!=(d[(q&n)+29>>0]<<16|d[(q&n)+28>>0]<<24|d[(q&n)+30>>0]<<8|d[(q&n)+31>>0]|0)){l=0;g=0;break}if((d[(q&n)+5>>0]<<16|d[(q&n)+4>>0]<<24|d[(q&n)+6>>0]<<8|d[(q&n)+7>>0]|0)!=3007e3){c[(ca&p)>>2]=49983;c[(ca&p)+4>>2]=10788;bd(14,14848,ca);g=14;break a}w=l+24|0;U=Tc(w)|0;if(!U){g=7;break a}x=U+24|0;y=((w|0)<0)<<31>>31;q=jw(w|0,y|0,32,0)|0;m=G;R=Z;Q=c[(R&p)+4>>2]|0;c:do if(!((m|0)>(Q|0)|((m|0)==(Q|0)?q>>>0>(c[(R&p)>>2]|0)>>>0:0))){z=U+8|0;A=U+1|0;B=U+2|0;C=U+3|0;D=U+16|0;E=U+17|0;F=U+18|0;H=U+19|0;I=U+20|0;J=U+21|0;K=U+22|0;L=U+23|0;M=U+4|0;N=U+5|0;O=U+6|0;P=U+7|0;Q=e+68|0;R=e+72|0;u=(k>>>16|g)&65535;v=e+66|0;r=32;k=0;l=0;s=0;t=1;while(1){g=c[(T&p)>>2]|0;g=tc[c[((c[(g&p)>>2]|0)&p)+8>>2]&31](g,U,w,r,k)|0;if(g){k=36;break}if(Zv(X,z,8)|0){g=s;k=37;break}k=d[(A&n)>>0]<<16|d[(U&n)>>0]<<24|d[(B&n)>>0]<<8|d[(C&n)>>0];if(!k){g=s;k=37;break}r=(a[(V&n)>>0]|0)==0&1;yq(r,U,8,Y,Y);yq(r,x,c[(W&p)>>2]|0,Y,Y);if((c[(Y&p)>>2]|0)!=(d[(E&n)>>0]<<16|d[(D&n)>>0]<<24|d[(F&n)>>0]<<8|d[(H&n)>>0]|0)){g=s;k=37;break}if((c[(S&p)>>2]|0)!=(d[(J&n)>>0]<<16|d[(I&n)>>0]<<24|d[(K&n)>>0]<<8|d[(L&n)>>0]|0)){g=s;break c}r=d[(N&n)>>0]<<16|d[(M&n)>>0]<<24|d[(O&n)>>0]<<8|d[(P&n)>>0];g=_o(e,t,k)|0;if(g){k=36;break}if(!r)g=s;else{c[(Q&p)>>2]=t;c[(R&p)>>2]=r;b[(v&o)>>1]=u;l=c[(Y&p)>>2]|0;g=c[(S&p)>>2]|0}k=jw(q|0,m|0,w|0,y|0)|0;r=G;s=Z;ea=c[(s&p)+4>>2]|0;if((r|0)>(ea|0)|((r|0)==(ea|0)?k>>>0>(c[(s&p)>>2]|0)>>>0:0))break c;else{ga=m;ea=q;q=k;m=r;s=g;t=t+1|0;k=ga;r=ea}}if((k|0)==36){Wc(U);break a}else if((k|0)==37){Wc(U);break b}}else{l=0;g=0}while(0);Wc(U)}else{l=0;g=0}}else{l=0;g=0}while(0);c[(e&p)+76>>2]=l;c[(e&p)+80>>2]=g;$o(e);k=c[(c[(e&p)+32>>2]&p)>>2]|0;c[(k&p)+96>>2]=0;c[(k&p)+100>>2]=0;g=k+104|0;c[(g&p)>>2]=-1;c[(k&p)+108>>2]=-1;c[(k&p)+112>>2]=-1;c[(k&p)+116>>2]=-1;k=e+68|0;l=c[(k&p)>>2]|0;if(l)c[(g&p)>>2]=l;if(!(c[(e&p)+72>>2]|0))g=0;else{g=c[(e&p)+100>>2]|0;c[(ca&p)>>2]=c[(k&p)>>2];c[(ca&p)+4>>2]=g;bd(283,14888,ca);g=0}}while(0);if(!(a[(ba&n)>>0]|0)){Z=c[(e&p)+4>>2]|0;pc[c[((c[(Z&p)>>2]|0)&p)+56>>2]&31](Z,_,$,9)|0}}c[(f&p)>>2]=1}}else{h=l;g=k}a[(aa&n)>>0]=0;if(!(a[(ba&n)>>0]|0)){ba=c[(e&p)+4>>2]|0;pc[c[((c[(ba&p)>>2]|0)&p)+56>>2]&31](ba,0,1,9)|0}}else if(k){h=e+4|0;g=c[(h&p)>>2]|0;g=pc[c[((c[(g&p)>>2]|0)&p)+56>>2]&31](g,0,1,6)|0;if(!g)if(!(a[(ba&n)>>0]|0)){h=c[(h&p)>>2]|0;pc[c[((c[(h&p)>>2]|0)&p)+56>>2]&31](h,0,1,5)|0;h=l;g=264}else{h=l;g=264}else h=l}else{h=l;g=264}while(0);if(h)break}if((c[(e&p)+52>>2]|0)!=3007e3){c[(ca&p)>>2]=50909;c[(ca&p)+4>>2]=10788;bd(14,14848,ca);g=14}}else g=l;while(0);i=da;return g|0}function oq(a,d,f,g,h,i){a=a|0;d=d|0;f=f|0;g=g|0;h=h|0;i=i|0;var j=0,k=0,l=0,m=0,n=0,q=0,r=0,s=0,t=0,u=0;r=c[(h&p)>>2]|0;s=c[(g&p)>>2]|0;k=(r|0)>0;j=(f|0)>0;if(k|j){n=j;l=0;q=0;m=0;while(1){do if(n){j=d+(l<<1)|0;if(k?(t=s+(m<<1)|0,(c[(a+((e[(j&o)>>1]|0)<<2)&p)>>2]|0)>>>0>=(c[(a+((e[(t&o)>>1]|0)<<2)&p)>>2]|0)>>>0):0){k=t;u=7;break}l=l+1|0;k=j}else{k=s+(m<<1)|0;u=7}while(0);if((u|0)==7){u=0;m=m+1|0}n=b[(k&o)>>1]|0;k=c[(a+((n&65535)<<2)&p)>>2]|0;j=q+1|0;b[(i+(q<<1)&o)>>1]=n;if((l|0)<(f|0))l=((c[(a+((e[(d+(l<<1)&o)>>1]|0)<<2)&p)>>2]|0)==(k|0)&1)+l|0;k=(m|0)<(r|0);n=(l|0)<(f|0);if(!(k|n))break;else q=j}}else j=0;c[(g&p)>>2]=d;c[(h&p)>>2]=j;kw(d|0,i|0,j<<1|0)|0;return}function pq(a,b){a=a|0;b=b|0;var d=0,e=0;e=c[(a&p)+4>>2]|0;c[(e&p)+4>>2]=c[(a&p)>>2];a=c[((c[(e&p)>>2]|0)&p)+204>>2]|0;c[(a&p)+16>>2]=b;e=c[2217]|0;d=c[(a&p)+40>>2]|0;if((b|0)>-1)a=b;else{b=sw(b|0,((b|0)<0)<<31>>31|0,-1024,-1)|0;a=(c[(a&p)+24>>2]|0)+(c[(a&p)+20>>2]|0)|0;a=qw(b|0,G|0,a|0,((a|0)<0)<<31>>31|0)|0}jc[e&15](d,a);return}function qq(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0;g=(c[(b&p)+12>>2]|0)+136|0;e=g;f=c[(e&p)>>2]|0;e=c[(e&p)+4>>2]|0;do if((f|0)==0&(e|0)==0)if(!(bh(c[(c[((c[(b&p)>>2]|0)&p)+32>>2]&p)>>2]|0,g)|0)){e=g;f=c[(e&p)>>2]|0;e=c[(e&p)+4>>2]|0;h=5;break}else{e=g;c[(e&p)>>2]=0;c[(e&p)+4>>2]=0;e=d;c[(e&p)>>2]=0;c[(e&p)+4>>2]=0;e=1;break}else h=5;while(0);if((h|0)==5){g=d;c[(g&p)>>2]=f;c[(g&p)+4>>2]=e;if((e|0)>0|(e|0)==0&f>>>0>0){a[(d&n)+42>>0]=1;e=0}else e=1}return e|0}function rq(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,o=0,q=0,r=0;r=i;i=i+16|0;if((i|0)>=(j|0))fa();o=r;c[(o&p)>>2]=d;d=b;b=0;a:while(1){h=c[(o&p)>>2]|0;g=c[(h&p)>>2]|0;c[(o&p)>>2]=h+4;h=c[(o&p)>>2]|0;k=c[(h&p)>>2]|0;c[(o&p)>>2]=h+4;h=c[(o&p)>>2]|0;l=c[(h&p)>>2]|0;c[(o&p)>>2]=h+4;h=c[(o&p)>>2]|0;m=c[(h&p)>>2]|0;c[(o&p)>>2]=h+4;h=c[(o&p)>>2]|0;e=c[(h&p)>>2]|0;c[(o&p)>>2]=h+4;if(!g){f=d;d=0}else{f=d;d=0;do{g=g+-1|0;h=a[(f&n)>>0]|0;if(((h&255)+-48|0)>>>0>=10)break a;d=(d*10|0)+-48+(h<<24>>24)|0;f=f+1|0}while((g|0)!=0)}if((d|0)<(k|0)|(d|0)>(l|0))break;if(!m){q=9;break}if((m|0)!=(a[(f&n)>>0]|0))break;c[(e&p)>>2]=d;d=f+1|0;b=b+1|0}if((q|0)==9){c[(e&p)>>2]=d;b=b+1|0}i=r;return b|0}function sq(b,e){b=b|0;e=e|0;var f=0,g=0,k=0,l=0.0,m=0,o=0.0,r=0,s=0,t=0,u=0,v=0,w=0,x=0;x=i;i=i+64|0;if((i|0)>=(j|0))fa();v=x;t=x+56|0;u=x+52|0;f=x+48|0;r=x+44|0;s=x+40|0;c[(v&p)>>2]=2;c[(v&p)+4>>2]=0;c[(v&p)+8>>2]=24;c[(v&p)+12>>2]=58;c[(v&p)+16>>2]=f;c[(v&p)+20>>2]=2;c[(v&p)+24>>2]=0;c[(v&p)+28>>2]=59;c[(v&p)+32>>2]=0;c[(v&p)+36>>2]=r;do if((rq(b,v)|0)==2){m=b+5|0;if((a[(m&n)>>0]|0)==58){c[(v&p)>>2]=2;c[(v&p)+4>>2]=0;c[(v&p)+8>>2]=59;c[(v&p)+12>>2]=0;c[(v&p)+16>>2]=s;if((rq(b+6|0,v)|0)!=1){f=1;break}m=b+8|0;if((a[(m&n)>>0]|0)==46?(g=b+9|0,k=a[(g&n)>>0]|0,((k&255)+-48|0)>>>0<10):0){o=0.0;l=1.0;do{o=o*10.0+ +(k<<24>>24)+-48.0;l=l*10.0;g=g+1|0;k=a[(g&n)>>0]|0}while(((k&255)+-48|0)>>>0<10);l=o/l}else{g=m;l=0.0}}else{c[(s&p)>>2]=0;g=m;l=0.0}a[(e&n)+42>>0]=0;a[(e&n)+41>>0]=1;c[(e&p)+20>>2]=c[(f&p)>>2];c[(e&p)+24>>2]=c[(r&p)>>2];h[(e&q)+32>>3]=l+ +(c[(s&p)>>2]|0);while(1){f=g+1|0;if(!(a[((d[(g&n)>>0]|0)&n)+10368>>0]&1)){m=g;break}else g=f}b=e+28|0;c[(b&p)>>2]=0;g=a[(m&n)>>0]|0;if(g<<24>>24==43){k=1;w=14}else if(g<<24>>24!=45)if((g&-33)<<24>>24==90){k=0;w=16}else f=0;else{k=-1;w=14}if((w|0)==14){c[(v&p)>>2]=2;c[(v&p)+4>>2]=0;c[(v&p)+8>>2]=14;c[(v&p)+12>>2]=58;c[(v&p)+16>>2]=t;c[(v&p)+20>>2]=2;c[(v&p)+24>>2]=0;c[(v&p)+28>>2]=59;c[(v&p)+32>>2]=0;c[(v&p)+36>>2]=u;if((rq(f,v)|0)!=2){f=1;break}k=ca(((c[(t&p)>>2]|0)*60|0)+(c[(u&p)>>2]|0)|0,k)|0;c[(b&p)>>2]=k;f=m+6|0;w=16}if((w|0)==16)while(1){g=a[(f&n)>>0]|0;if(!(a[(g&255&n)+10368>>0]&1)){f=k;break}else f=f+1|0}if(!(g<<24>>24)){a[(e&n)+43>>0]=(f|0)!=0&1;f=0}else f=1}else f=1;while(0);i=x;return f|0}function tq(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,k=0,l=0,m=0,o=0,r=0.0,s=0;o=i;i=i+112|0;if((i|0)>=(j|0))fa();k=o+48|0;m=o;l=o+96|0;f=k+0|0;b=b+0|0;g=f+48|0;do{c[(f&p)>>2]=c[(b&p)>>2];f=f+4|0;b=b+4|0}while((f|0)<(g|0));oo(k);po(k);g=k+8|0;if(((c[(g&p)>>2]|0)+-1971|0)>>>0>66){c[(g&p)>>2]=2e3;c[(k&p)+12>>2]=1;c[(k&p)+16>>2]=1;c[(k&p)+20>>2]=0;c[(k&p)+24>>2]=0;h[(k&q)+32>>3]=0.0}else{f=k+32|0;h[(f&q)>>3]=+(~~(+h[(f&q)>>3]+.5)|0)}c[(k&p)+28>>2]=0;a[(k&n)+42>>0]=0;no(k);b=k;f=c[(b&p)>>2]|0;b=c[(b&p)+4>>2]|0;g=qw(f|0,b|0,1e3,0)|0;g=jw(g|0,G|0,-413362496,0)|0;c[(l&p)>>2]=g;g=Vb(l|0)|0;g=(c[2253]|0)!=0?0:g;if(!g){c[(d&p)+20>>2]=1;a[(d&n)+25>>0]=1;Xg(c[(d&p)>>2]|0,20056,-1,1,-1)|0;c[(e&p)>>2]=1;f=0;g=0}else{k=c[(g&p)+4>>2]|0;l=c[(g&p)+8>>2]|0;d=c[(g&p)+12>>2]|0;s=(c[(g&p)+16>>2]|0)+1|0;r=+(c[(g&p)>>2]|0);c[(m&p)+8>>2]=(c[(g&p)+20>>2]|0)+1900;c[(m&p)+12>>2]=s;c[(m&p)+16>>2]=d;c[(m&p)+20>>2]=l;c[(m&p)+24>>2]=k;h[(m&q)+32>>3]=r;a[(m&n)+40>>0]=1;a[(m&n)+41>>0]=1;a[(m&n)+42>>0]=0;a[(m&n)+43>>0]=0;no(m);c[(e&p)>>2]=0;g=m;g=dw(c[(g&p)>>2]|0,c[(g&p)+4>>2]|0,f|0,b|0)|0;f=G}G=f;i=o;return g|0}function uq(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,o=0,q=0,r=0;r=i;i=i+32|0;if((i|0)>=(j|0))fa();q=r+12|0;l=r;o=r+8|0;k=r+16|0;a[(d&n)>>0]=0;f=rc[c[((c[(b&p)>>2]|0)&p)+24>>2]&127](b,l)|0;h=l;g=c[(h&p)>>2]|0;h=c[(h&p)+4>>2]|0;if(!((f|0)!=0|((h|0)<0|(h|0)==0&g>>>0<16))){f=jw(g|0,h|0,-16,-1)|0;f=es(b,f,G,q)|0;if(!f){m=c[(q&p)>>2]|0;if(!(m>>>0>=e>>>0|(m|0)==0)){f=l;f=jw(c[(f&p)>>2]|0,c[(f&p)+4>>2]|0,-12,-1)|0;f=es(b,f,G,o)|0;if(!f){f=l;f=jw(c[(f&p)>>2]|0,c[(f&p)+4>>2]|0,-8,-1)|0;f=tc[c[((c[(b&p)>>2]|0)&p)+8>>2]&31](b,k,8,f,G)|0;if(!f)if(!(Zv(k,14808,8)|0)){f=l;f=jw(c[(f&p)>>2]|0,c[(f&p)+4>>2]|0,-16,-1)|0;f=dw(f|0,G|0,m|0,0)|0;f=tc[c[((c[(b&p)>>2]|0)&p)+8>>2]&31](b,d,m,f,G)|0;if(!f){g=c[(o&p)>>2]|0;h=0;while(1){e=a[(d+h&n)>>0]|0;f=g-e|0;h=h+1|0;if(h>>>0>=m>>>0)break;else g=f}c[(o&p)>>2]=f;if((g|0)==(e|0))f=m;else{c[(q&p)>>2]=0;f=0}a[(d+f&n)>>0]=0;f=0}}else f=0}}else f=0}}i=r;return f|0}function vq(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,k=0,l=0,m=0,n=0,o=0,q=0,r=0,s=0,t=0;t=i;i=i+16|0;if((i|0)>=(j|0))fa();l=t+8|0;r=t+4|0;o=t;s=a+72|0;h=s;k=c[(h&p)>>2]|0;h=c[(h&p)+4>>2]|0;if((k|0)==0&(h|0)==0){m=0;n=0;k=c[(a&p)+148>>2]|0}else{m=jw(k|0,h|0,-1,-1)|0;k=c[(a&p)+148>>2]|0;m=qw(m|0,G|0,k|0,0)|0;m=jw(m|0,G|0,1,0)|0;m=sw(m|0,G|0,k|0,0)|0;n=G}q=s;c[(q&p)>>2]=m;c[(q&p)+4>>2]=n;q=a+148|0;k=jw(k|0,0,m|0,n|0)|0;h=G;do if(!((h|0)>(e|0)|(h|0)==(e|0)&k>>>0>d>>>0)){if((b|0)==0?(b=a+80|0,(m|0)==(c[(b&p)>>2]|0)?(n|0)==(c[(b&p)+4>>2]|0):0):0)d=a+64|0;else{k=a+64|0;e=c[(k&p)>>2]|0;e=tc[c[((c[(e&p)>>2]|0)&p)+8>>2]&31](e,l,8,m,n)|0;if(e)break;if(!(Zv(l,14808,8)|0))d=k;else{e=101;break}}l=c[(d&p)>>2]|0;e=jw(m|0,n|0,8,0)|0;e=es(l,e,G,f)|0;if(!e){f=c[(d&p)>>2]|0;e=jw(m|0,n|0,12,0)|0;e=es(f,e,G,a+48|0)|0;if(!e){f=c[(d&p)>>2]|0;e=jw(m|0,n|0,16,0)|0;e=es(f,e,G,g)|0;if(!e){h=s;k=c[(h&p)>>2]|0;h=c[(h&p)+4>>2]|0;if((k|0)==0&(h|0)==0){g=c[(d&p)>>2]|0;e=jw(m|0,n|0,20,0)|0;e=es(g,e,G,o)|0;if(e)break;g=c[(d&p)>>2]|0;e=jw(m|0,n|0,24,0)|0;e=es(g,e,G,r)|0;if(e)break;d=c[(r&p)>>2]|0;if(!d){h=c[(a&p)+152>>2]|0;c[(r&p)>>2]=h}else h=d;d=c[(o&p)>>2]|0;if(h>>>0<512|d>>>0<32|h>>>0>65536|d>>>0>65536){e=101;break}if(h+-1&h){e=101;break}if(d+-1&d){e=101;break}e=al(a,r,-1)|0;c[(q&p)>>2]=d;h=s;k=c[(h&p)>>2]|0;h=c[(h&p)+4>>2]|0}else{d=c[(q&p)>>2]|0;e=0}m=jw(k|0,h|0,d|0,0)|0;n=s;c[(n&p)>>2]=m;c[(n&p)+4>>2]=G}}}}else e=101;while(0);i=t;return e|0}function wq(f,g,h,k,l){f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;var m=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;D=i;i=i+16|0;if((i|0)>=(j|0))fa();y=D+8|0;r=D+4|0;u=D;B=c[(f&p)+200>>2]|0;C=(k|0)!=0;q=c[((C?f+64|0:f+68|0)&p)>>2]|0;t=g;t=es(q,c[(t&p)>>2]|0,c[(t&p)+4>>2]|0,r)|0;do if(!t){A=f+152|0;x=c[(A&p)>>2]|0;t=g;t=jw(c[(t&p)>>2]|0,c[(t&p)+4>>2]|0,4,0)|0;t=tc[c[((c[(q&p)>>2]|0)&p)+8>>2]&31](q,B,x,t,G)|0;if(!t){E=c[(A&p)>>2]|0;s=(k<<2)+4+E|0;t=g;t=jw(s|0,((s|0)<0)<<31>>31|0,c[(t&p)>>2]|0,c[(t&p)+4>>2]|0)|0;s=G;x=g;c[(x&p)>>2]=t;c[(x&p)+4>>2]=s;x=c[(r&p)>>2]|0;if((x|0)!=0?(x|0)!=(((c[2514]|0)/(E|0)|0)+1|0):0)if(x>>>0<=(c[(f&p)+24>>2]|0)>>>0?(di(h,x)|0)==0:0){if(C){t=jw(t|0,s|0,-4,-1)|0;t=es(q,t,G,u)|0;if(t){m=t;break}if(!l){t=c[(f&p)+48>>2]|0;s=(c[(A&p)>>2]|0)+-200|0;if((s|0)>0)do{t=(d[(B+s&n)>>0]|0)+t|0;s=s+-200|0}while((s|0)>0);if((t|0)!=(c[(u&p)>>2]|0)){m=101;break}}}if((h|0)!=0?(m=bi(h,x)|0,(m|0)!=0):0)break;u=(x|0)==1;if(u?(v=f+142|0,w=a[(B&n)+20>>0]|0,(b[(v&o)>>1]|0)!=(w&255|0)):0)b[(v&o)>>1]=w&255;if(!(c[(f&p)+208>>2]|0)){w=f+204|0;t=ac[c[8876>>2]&63](c[((c[(w&p)>>2]|0)&p)+40>>2]|0,x,0)|0;t=il(c[(w&p)>>2]|0,x,t)|0}else t=0;c[(y&p)>>2]=t;if(C)if(!(a[(f&n)+7>>0]|0)){w=g;h=c[(w&p)+4>>2]|0;s=f+80|0;v=c[(s&p)+4>>2]|0;s=(h|0)<(v|0)|((h|0)==(v|0)?(c[(w&p)>>2]|0)>>>0<=(c[(s&p)>>2]|0)>>>0:0)}else s=1;else if(!t)s=1;else s=(b[(t&o)+24>>1]&4)==0;r=c[(f&p)+60>>2]|0;q=c[(r&p)>>2]|0;do if(q){m=a[(f&n)+16>>0]|0;if((m&255)>3){if(!s){z=33;break}}else if(!(m<<24>>24==0&s)){z=33;break}s=c[(A&p)>>2]|0;m=sw(s|0,((s|0)<0)<<31>>31|0,x+-1|0,0)|0;m=tc[c[(q&p)+12>>2]&31](r,B,s,m,G)|0;s=f+32|0;if(x>>>0>(c[(s&p)>>2]|0)>>>0)c[(s&p)>>2]=x;s=c[(f&p)+88>>2]|0;if(s)ap(s,x,B)}else z=33;while(0);if((z|0)==33)if((k|0)==0&(t|0)==0){w=f+20|0;a[(w&n)>>0]=d[(w&n)>>0]|2;m=zg(f,x,y,1)|0;a[(w&n)>>0]=d[(w&n)>>0]&253;if(m)break;t=c[(y&p)>>2]|0;m=t+24|0;b[(m&o)>>1]=e[(m&o)>>1]&65527;To(t);m=0}else m=0;if(t){r=c[(t&p)+4>>2]|0;kw(r|0,B|0,c[(A&p)>>2]|0)|0;cc[c[(f&p)+196>>2]&31](t);do if(C){if((l|0)!=0?(w=g,h=c[(w&p)+4>>2]|0,x=f+80|0,v=c[(x&p)+4>>2]|0,(h|0)>(v|0)|((h|0)==(v|0)?(c[(w&p)>>2]|0)>>>0>(c[(x&p)>>2]|0)>>>0:0)):0)break;xl(t)}while(0);if(u){s=f+104|0;q=r+24|0;r=s+16|0;do{a[(s&n)>>0]=a[(q&n)>>0]|0;s=s+1|0;q=q+1|0}while((s|0)<(r|0))}ol(t)}}else m=0;else m=101}else m=t}else m=t;while(0);i=D;return m|0}function xq(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0;g=b+24|0;if((c[(g&p)>>2]|0)<=(e|0)){i=e+1|0;j=b+32|0;h=Xc(c[(j&p)>>2]|0,i<<2)|0;if(!h){g=7;h=0}else{k=c[(g&p)>>2]|0;fw(h+(k<<2)|0,0,i-k<<2|0)|0;c[(j&p)>>2]=h;c[(g&p)>>2]=i;k=5}}else{h=c[(b&p)+32>>2]|0;k=5}if((k|0)==5){j=b+32|0;h=h+(e<<2)|0;do if(!(c[(h&p)>>2]|0)){if((a[(b&n)+43>>0]|0)!=2){g=c[(b&p)+4>>2]|0;g=tc[c[((c[(g&p)>>2]|0)&p)+52>>2]&31](g,e,32768,d[(b&n)+44>>0]|0,h)|0;if((g|0)!=8)break;g=b+46|0;a[(g&n)>>0]=d[(g&n)>>0]|2;g=0;break}g=qg(32768,0)|0;if(g)fw(g|0,0,32768)|0;c[((c[(j&p)>>2]|0)+(e<<2)&p)>>2]=g;g=(c[((c[(j&p)>>2]|0)+(e<<2)&p)>>2]|0)==0?7:0}else g=0;while(0);h=c[((c[(j&p)>>2]|0)+(e<<2)&p)>>2]|0}c[(f&p)>>2]=h;return g|0}function yq(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;h=b+d|0;if(!e){g=0;d=0}else{g=c[(e&p)>>2]|0;d=c[(e&p)+4>>2]|0}if(!a)do{g=g+d+(nw(c[(b&p)>>2]|0)|0)|0;d=g+d+(nw(c[(b&p)+4>>2]|0)|0)|0;b=b+8|0}while(b>>>0>>0);else do{g=g+d+(c[(b&p)>>2]|0)|0;d=g+d+(c[(b&p)+4>>2]|0)|0;b=b+8|0}while(b>>>0>>0);c[(f&p)>>2]=g;c[(f&p)+4>>2]=d;return}function zq(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;h=a+8|0;g=c[(h&p)>>2]|0;h=c[(h&p)+4>>2]|0;if((h|0)>(f|0)|(h|0)==(f|0)&g>>>0>e>>>0?(i=jw(d|0,((d|0)<0)<<31>>31|0,e|0,f|0)|0,k=G,!((k|0)<(h|0)|(k|0)==(h|0)&i>>>0>>0)):0){i=dw(g|0,h|0,e|0,f|0)|0;h=a+4|0;g=c[(h&p)>>2]|0;g=tc[c[((c[(g&p)>>2]|0)&p)+12>>2]&31](g,b,i,e,f)|0;if(!g){e=jw(i|0,((i|0)<0)<<31>>31|0,e|0,f|0)|0;f=G;g=c[(h&p)>>2]|0;g=rc[c[((c[(g&p)>>2]|0)&p)+20>>2]&127](g,c[(a&p)+16>>2]&19)|0;if(!((i|0)==(d|0)|(g|0)!=0)){d=d-i|0;h=b+i|0;g=f;j=5}}}else{h=b;g=f;j=5}if((j|0)==5){f=c[(a&p)+4>>2]|0;g=tc[c[((c[(f&p)>>2]|0)&p)+12>>2]&31](f,h,d,e,g)|0}return g|0}function Aq(a){a=a|0;var d=0,f=0,g=0,h=0,k=0,l=0;l=i;i=i+16|0;if((i|0)>=(j|0))fa();h=l+8|0;k=l+4|0;g=l;c[(h&p)>>2]=0;c[(k&p)>>2]=0;c[(g&p)>>2]=0;f=a+68|0;d=c[(f&p)>>2]|0;if(d){Po(a,(d+33|0)>>>12,h,k,g)|0;g=(c[(f&p)>>2]|0)-(c[(g&p)>>2]|0)|0;a=c[(h&p)>>2]|0;f=0;do{d=a+(f<<1)|0;if((e[(d&o)>>1]|0|0)>(g|0))b[(d&o)>>1]=0;f=f+1|0}while((f|0)!=8192);d=(c[(k&p)>>2]|0)+(g+1<<2)|0;fw(d|0,0,a-d|0)|0}i=l;return}function Bq(a,d){a=a|0;d=d|0;var e=0,f=0,g=0,h=0;g=i;i=i+16|0;if((i|0)>=(j|0))fa();e=g;h=a+204|0;f=ac[c[8876>>2]&63](c[((c[(h&p)>>2]|0)&p)+40>>2]|0,d,0)|0;f=il(c[(h&p)>>2]|0,d,f)|0;do if(!f)e=0;else{if((b[(f&o)+26>>1]|0)==1){ml(f);e=0;break}c[(e&p)>>2]=0;d=kl(c[(a&p)+208>>2]|0,c[(f&p)+20>>2]|0,e)|0;if(!d){d=ll(f,c[(e&p)>>2]|0)|0;if(!d){cc[c[(a&p)+196>>2]&31](f);d=0}}Bg(f);e=d}while(0);d=c[(a&p)+88>>2]|0;if(d)do{c[(d&p)+16>>2]=1;d=c[(d&p)+44>>2]|0}while((d|0)!=0);i=g;return e|0}function Cq(f,g,h){f=f|0;g=g|0;h=h|0;var k=0,l=0,m=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;G=i;i=i+16|0;if((i|0)>=(j|0))fa();F=G;C=c[(f&p)+52>>2]|0;t=(c[(C&p)+36>>2]|0)+-4|0;y=g&65535;D=h&65535;x=D+y|0;E=c[(f&p)+56>>2]|0;if(b[(C&o)+22>>1]&4)fw(E+y|0,0,D|0)|0;B=d[(f&n)+6>>0]|0;C=B+1|0;q=C&65535;A=C&65535;if((a[(E+A&n)+1>>0]|0)==0?(a[(E+A&n)>>0]|0)==0:0){v=h&255;t=(h&65535)>>>8&255;u=x;s=0;r=0;A=23}else{v=q;A=6}a:do if((A|0)==6){while(1){A=0;m=v&65535;r=a[(E+m&n)+1>>0]|0;l=r&255;u=d[(E+m&n)>>0]<<8|l;q=v;v=u&65535;if(!(u>>>0>>0&(u|0)!=0)){s=r;w=u;break}if(u>>>0<(m+4|0)>>>0){A=8;break}else A=6}if((A|0)==8){c[(F&p)>>2]=54420;c[(F&p)+4>>2]=10788;bd(11,13600,F);k=11;break}if(w>>>0>t>>>0){c[(F&p)>>2]=54423;c[(F&p)+4>>2]=10788;bd(11,13600,F);k=11;break}k=h&255;t=(h&65535)>>>8&255;r=(v&65535)>>>8&255;do if((w+-1|0)>>>0<(x+3|0)>>>0)if(x>>>0>w>>>0){c[(F&p)>>2]=54434;c[(F&p)+4>>2]=10788;bd(11,13600,F);k=11;break a}else{u=(d[(E+w&n)+2>>0]<<8|d[(E+w&n)+3>>0])+w|0;t=u-y|0;v=t&255;t=(t&65535)>>>8&255;s=a[(E+w&n)+1>>0]|0;r=a[(E+w&n)>>0]|0;k=l-x&255;break}else{v=k;u=x;k=0}while(0);do if(m>>>0>C>>>0?(z=(d[(E+m&n)+2>>0]<<8|d[(E+m&n)+3>>0])+m|0,(z+3|0)>=(y|0)):0)if((y|0)<(z|0)){c[(F&p)>>2]=54447;c[(F&p)+4>>2]=10788;bd(11,13600,F);k=11;break a}else{t=u-m|0;g=q;v=t&255;t=(t&65535)>>>8&255;k=(k&255)+y-z&255;break}while(0);m=E+(B+7)|0;l=a[(m&n)>>0]|0;if((l&255)<(k&255)){c[(F&p)>>2]=54453;c[(F&p)+4>>2]=10788;bd(11,13600,F);k=11;break}else{a[(m&n)>>0]=(l&255)-(k&255);A=23;break}}while(0);b:do if((A|0)==23){k=g&65535;l=E+(B+5)|0;m=E+(B+6)|0;do if((k|0)==(d[(l&n)>>0]<<8|d[(m&n)>>0]|0))if((q&65535|0)==(C|0)){a[(E+C&n)>>0]=r;a[(E+B&n)+2>>0]=s;a[(l&n)>>0]=u>>>8;a[(m&n)>>0]=u;break}else{c[(F&p)>>2]=54460;c[(F&p)+4>>2]=10788;bd(11,13600,F);k=11;break b}else{F=q&65535;a[(E+F&n)>>0]=(g&65535)>>>8;a[(E+F&n)+1>>0]=g;a[(E+k&n)>>0]=r;a[(E+k&n)+1>>0]=s;a[(E+k&n)+2>>0]=t;a[(E+k&n)+3>>0]=v}while(0);k=f+16|0;b[(k&o)>>1]=(e[(k&o)>>1]|0)+D;k=0}while(0);i=G;return k|0}function Dq(b,e,f,g){b=b|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,o=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0;w=i;i=i+16|0;if((i|0)>=(j|0))fa();t=w;s=d[(b&n)+6>>0]|0;v=c[(b&p)+56>>2]|0;r=c[((c[(b&p)+52>>2]|0)&p)+36>>2]|0;l=r+-4|0;b=s+1|0;while(1){m=v+b|0;o=(d[(m&n)>>0]|0)<<8|(d[(v+b&n)+1>>0]|0);if(!o){b=0;break}if((o|0)>(l|0)|(o|0)<(b+4|0)){u=4;break}h=v+(o+2)|0;k=v+(o+3)|0;b=(d[(h&n)>>0]|0)<<8|(d[(k&n)>>0]|0);if((b|0)<(e|0))b=o;else{q=h;l=o;u=6;break}}a:do if((u|0)==4){c[(t&p)>>2]=54252;c[(t&p)+4>>2]=10788;bd(11,13600,t);c[(f&p)>>2]=11;b=0}else if((u|0)==6){h=b-e|0;do if((h|0)>=4)if((b+l|0)>(r|0)){c[(t&p)>>2]=54275;c[(t&p)+4>>2]=10788;bd(11,13600,t);c[(f&p)>>2]=11;b=0;break a}else{a[(q&n)>>0]=h>>>8;a[(k&n)>>0]=h;break}else{b=v+(s+7)|0;if((d[(b&n)>>0]|0)<=59){s=v+l|0;s=d[(s&n)>>0]|d[(s&n)+1>>0]<<8;a[(m&n)>>0]=s;a[(m&n)+1>>0]=s>>8;a[(b&n)>>0]=(d[(b&n)>>0]|0)+h;break}if(!g){b=0;break a}c[(g&p)>>2]=1;b=0;break a}while(0);b=v+(h+l)|0}while(0);i=w;return b|0}function Eq(f){f=f|0;var g=0,h=0,k=0,l=0,m=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;G=i;i=i+16|0;if((i|0)>=(j|0))fa();E=G;B=c[(f&p)+56>>2]|0;D=d[(f&n)+6>>0]|0;x=e[(f&o)+14>>1]|0;y=b[(f&o)+18>>1]|0;t=y&65535;u=f+52|0;v=c[((c[(u&p)>>2]|0)&p)+36>>2]|0;C=(t<<1)+x|0;w=v+-4|0;z=B+(D+5)|0;A=B+(D+6)|0;a:do if(y<<16>>16){s=v;y=0;h=B;k=0;while(1){m=(y<<1)+x|0;l=B+m|0;m=B+(m+1)|0;q=(d[(l&n)>>0]|0)<<8|(d[(m&n)>>0]|0);if((q|0)<(C|0)|(q|0)>(w|0)){F=3;break}r=(Lp(f,h+q|0)|0)&65535;g=s-r|0;if((g|0)<(C|0)|(r+q|0)>(v|0)){F=5;break}a[(l&n)>>0]=g>>>8;a[(m&n)>>0]=g;if(!k)if((g|0)==(q|0))k=0;else{k=c[((c[(c[(u&p)>>2]&p)>>2]|0)&p)+200>>2]|0;h=(d[(z&n)>>0]|0)<<8|(d[(A&n)>>0]|0);kw(k+h|0,B+h|0,s-h|0)|0;h=k;F=9}else F=9;if((F|0)==9){F=0;kw(B+g|0,h+q|0,r|0)|0}y=y+1|0;if((y|0)>=(t|0)){F=11;break a}else s=g}if((F|0)==3){c[(E&p)>>2]=54184;c[(E&p)+4>>2]=10788;bd(11,13600,E);g=11;break}else if((F|0)==5){c[(E&p)>>2]=54196;c[(E&p)+4>>2]=10788;bd(11,13600,E);g=11;break}}else{g=v;F=11}while(0);if((F|0)==11){a[(z&n)>>0]=g>>>8;a[(A&n)>>0]=g;a[(B+D&n)+1>>0]=0;a[(B+D&n)+2>>0]=0;a[(B+D&n)+7>>0]=0;F=g-C|0;fw(B+C|0,0,F|0)|0;if((F|0)==(e[(f&o)+16>>1]|0|0))g=0;else{c[(E&p)>>2]=54221;c[(E&p)+4>>2]=10788;bd(11,13600,E);g=11}}i=G;return g|0}function Fq(a,e,f){a=a|0;e=e|0;f=f|0;var g=0,h=0,k=0;k=i;i=i+32|0;if((i|0)>=(j|0))fa();h=k;if((c[(f&p)>>2]|0)==0?(rp(a,e,h),g=b[(h&o)+18>>1]|0,g<<16>>16!=0):0){g=g&65535;zp(c[(a&p)+52>>2]|0,(d[(e+g&n)+1>>0]|0)<<16|(d[(e+g&n)>>0]|0)<<24|(d[(e+g&n)+2>>0]|0)<<8|(d[(e+g&n)+3>>0]|0),3,c[(a&p)+72>>2]|0,f)}i=k;return}function Gq(b,f,g){b=b|0;f=f|0;g=g|0;var h=0,i=0,j=0,k=0,l=0,m=0;do if(!(c[(g&p)>>2]|0)){h=c[(b&p)+52>>2]|0;j=c[(b&p)+56>>2]|0;l=c[(f&p)+56>>2]|0;i=d[(b&n)+6>>0]|0;k=(c[(f&p)+72>>2]|0)==1?100:0;m=d[(j+i&n)+5>>0]<<8|d[(j+i&n)+6>>0];kw(l+m|0,j+m|0,(c[(h&p)+36>>2]|0)-m|0)|0;kw(l+k|0,j+i|0,(e[(b&o)+18>>1]<<1)+(e[(b&o)+14>>1]|0)|0)|0;a[(f&n)>>0]=0;b=$p(f)|0;if(b){c[(g&p)>>2]=b;break}if(a[(h&n)+17>>0]|0)c[(g&p)>>2]=_p(f)|0}while(0);return}function Hq(f,g,h,i){f=f|0;g=g|0;h=h|0;i=i|0;var j=0,k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0;t=d[(f&n)+6>>0]|0;w=c[(f&p)+56>>2]|0;m=c[(f&p)+52>>2]|0;r=c[(m&p)+36>>2]|0;q=w+r|0;j=c[(f&p)+64>>2]|0;m=c[((c[(m&p)>>2]|0)&p)+200>>2]|0;s=w+(t+5)|0;u=w+(t+6)|0;v=(d[(s&n)>>0]|0)<<8|(d[(u&n)>>0]|0);kw(m+v|0,w+v|0,r-v|0)|0;v=w;if((g|0)>0){r=0;l=j;j=q;while(1){k=c[(h+(r<<2)&p)>>2]|0;if(k>>>0>w>>>0&k>>>0>>0)k=m+(k-v)|0;x=e[(i+(r<<1)&o)>>1]|0;j=j+(0-x)|0;kw(j|0,k|0,x|0)|0;k=j-v|0;a[(l&n)>>0]=k>>>8;a[(l&n)+1>>0]=k;r=r+1|0;if((r|0)==(g|0))break;else l=l+2|0}}else j=q;i=f+18|0;b[(i&o)>>1]=g;a[(f&n)+1>>0]=0;a[(w+t&n)+1>>0]=0;a[(w+t&n)+2>>0]=0;a[(w+t&n)+3>>0]=(e[(i&o)>>1]|0)>>>8;a[(w+t&n)+4>>0]=b[(i&o)>>1];i=j-v|0;a[(s&n)>>0]=i>>>8;a[(u&n)>>0]=i;a[(w+t&n)+7>>0]=0;return}function Iq(a,b,f,g){a=a|0;b=b|0;f=f|0;g=g|0;var h=0,i=0,j=0,k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0;u=c[(a&p)+56>>2]|0;s=u+(c[((c[(a&p)+52>>2]|0)&p)+36>>2]|0)|0;q=u+((d[(a&n)+6>>0]|0)+8+(d[(a&n)+7>>0]|0))|0;a:do if((b|0)>0){r=u;t=0;h=0;l=0;m=0;while(1){j=c[(f+(t<<2)&p)>>2]|0;if(j>>>0>=q>>>0&j>>>0>>0){i=e[(g+(t<<1)&o)>>1]|0;k=j+i|0;if((l|0)!=(k|0)){if(l)Cq(a,l-r&65535,m&65535)|0;if(k>>>0>s>>>0){h=0;break a}}else i=i+m|0;h=h+1|0}else{j=l;i=m}t=t+1|0;if((t|0)>=(b|0))break;else{l=j;m=i}}if(j)Cq(a,j-u&65535,i&65535)|0}else h=0;while(0);return h|0}function Jq(b,d,f,g,h,k,l){b=b|0;d=d|0;f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;var m=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0;y=i;i=i+16|0;if((i|0)>=(j|0))fa();w=y;q=c[(b&p)+56>>2]|0;m=c[(f&p)>>2]|0;if(!(a[(q&n)+1>>0]|0))v=(a[(q&n)+2>>0]|0)!=0;else v=1;a:do if((h|0)>0){t=0;while(1){s=e[(l+(t<<1)&o)>>1]|0;if(v?(u=Dq(b,s,w,0)|0,(u|0)!=0):0)r=u;else{r=m+(0-s)|0;if(r>>>0>>0){m=1;break a}else m=r}kw(r|0,c[(k+(t<<2)&p)>>2]|0,s|0)|0;s=r-q|0;a[(g&n)>>0]=s>>>8;a[(g&n)+1>>0]=s;t=t+1|0;if((t|0)>=(h|0)){x=9;break}else g=g+2|0}}else x=9;while(0);if((x|0)==9){c[(f&p)>>2]=m;m=0}i=y;return m|0}function Kq(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,q=0,r=0;o=i;i=i+16|0;if((i|0)>=(j|0))fa();n=o;e=c[(a&p)+44>>2]|0;h=a;f=c[(h&p)>>2]|0;h=c[(h&p)+4>>2]|0;a:do if(!e){m=a+40|0;e=c[(m&p)>>2]|0;g=((e|0)<0)<<31>>31;l=rw(f|0,h|0,e|0,g|0)|0;if(!l){k=a+8|0;k=dw(c[(k&p)>>2]|0,c[(k&p)+4>>2]|0,f|0,h|0)|0;q=G;r=c[(a&p)+24>>2]|0;e=tc[c[((c[(r&p)>>2]|0)&p)+8>>2]&31](r,c[(a&p)+36>>2]|0,(q|0)>(g|0)|(q|0)==(g|0)&k>>>0>e>>>0?e:k,f,h)|0;if(e)break;e=c[(m&p)>>2]|0}k=e-l|0;if((k|0)>=(b|0)){c[(d&p)>>2]=(c[(a&p)+36>>2]|0)+l;e=a;b=jw(c[(e&p)>>2]|0,c[(e&p)+4>>2]|0,b|0,((b|0)<0)<<31>>31|0)|0;e=a;c[(e&p)>>2]=b;c[(e&p)+4>>2]=G;e=0;break}e=a+16|0;f=c[(e&p)>>2]|0;if((f|0)<(b|0)){f=f<<1;f=(f|0)<128?128:f;while(1)if((f|0)<(b|0))f=f<<1;else{h=f;break}g=a+28|0;f=rg(c[(g&p)>>2]|0,h,((h|0)<0)<<31>>31)|0;if(!f){e=7;break}c[(e&p)>>2]=h;c[(g&p)>>2]=f}else f=c[(a&p)+28>>2]|0;h=a+28|0;kw(f|0,(c[(a&p)+36>>2]|0)+l|0,k|0)|0;l=a;l=jw(c[(l&p)>>2]|0,c[(l&p)+4>>2]|0,k|0,((k|0)<0)<<31>>31|0)|0;e=a;c[(e&p)>>2]=l;c[(e&p)+4>>2]=G;e=b-k|0;if((e|0)>0){g=e;do{f=c[(m&p)>>2]|0;f=(g|0)>(f|0)?f:g;e=Kq(a,f,n)|0;if(e)break a;kw((c[(h&p)>>2]|0)+(b-g)|0,c[(n&p)>>2]|0,f|0)|0;g=g-f|0}while((g|0)>0)}c[(d&p)>>2]=c[(h&p)>>2];e=0}else{c[(d&p)>>2]=e+f;b=jw(f|0,h|0,b|0,((b|0)<0)<<31>>31|0)|0;e=a;c[(e&p)>>2]=b;c[(e&p)+4>>2]=G;e=0}while(0);i=o;return e|0}function Lq(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=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,x=0,y=0,z=0,A=0;A=i;i=i+64|0;if((i|0)>=(j|0))fa();x=A+44|0;z=A;y=A+40|0;v=a+8|0;u=c[(v&p)>>2]|0;v=c[(v&p)+4>>2]|0;w=a+4|0;q=c[(w&p)>>2]|0;Pp(c[(a&p)+48>>2]|0,z,c[((c[((c[(a&p)>>2]|0)&p)+8>>2]|0)&p)+12>>2]|0,u,v);o=q+8|0;q=q+12|0;r=z+24|0;s=z+16|0;t=a+16|0;while(1){f=c[((c[(o&p)>>2]|0)&p)+4>>2]|0;g=c[(q&p)>>2]|0;h=c[(g+(f*56|0)&p)+20>>2]|0;if(!(c[(g+(f*56|0)&p)+24>>2]|0)){d=1;b=0;break}l=r;k=c[(l&p)>>2]|0;l=c[(l&p)+4>>2]|0;m=c[(s&p)>>2]|0;n=((h|0)<0)<<31>>31;b=h;e=n;d=0;do{d=d+1|0;b=mw(b|0,e|0,7)|0;e=G}while(((b|0)!=0|(e|0)!=0)&(d|0)<9);k=jw(k|0,l|0,h|0,n|0)|0;k=jw(k|0,G|0,m|0,((m|0)<0)<<31>>31|0)|0;d=jw(k|0,G|0,d|0,((d|0)<0)<<31>>31|0)|0;k=G;b=c[(t&p)>>2]|0;b=jw(b|0,((b|0)<0)<<31>>31|0,u|0,v|0)|0;e=G;if((k|0)>(e|0)|(k|0)==(e|0)&d>>>0>b>>>0){d=1;b=0;break}Qp(z,x,pm(x,h,n)|0);Qp(z,c[(g+(f*56|0)&p)+32>>2]|0,h);b=Wm(c[(w&p)>>2]|0,y)|0;if(b){d=0;break}}z=Rp(z,a+56|0)|0;i=A;return (d?z:b)|0}function Mq(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0;d=i;i=i+16|0;if((i|0)>=(j|0))fa();f=d;c[(f&p)>>2]=e;e=Wk(a,13592,f)|0;mg(a,b);i=d;return e|0}function Nq(d,e,f,g){d=d|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,q=0;q=i;i=i+16|0;if((i|0)>=(j|0))fa();m=q;h=a[(d&n)>>0]|0;if(h<<24>>24!=0&(e|0)>0){l=0;do{if((h+-48&255)<10){k=0;do{k=(k*10|0)+-48+(h<<24>>24)|0;d=d+1|0;h=a[(d&n)>>0]|0}while((h+-48&255)<10);h=0}else{k=0;h=0}b[(f+(l<<1)&o)>>1]=fs(k,h)|0;d=(a[(d&n)>>0]|0)==32?d+1|0:d;l=l+1|0;h=a[(d&n)>>0]|0}while(h<<24>>24!=0&(l|0)<(e|0))}l=g+51|0;a[(l&n)>>0]=a[(l&n)>>0]&-69;a:do if(a[(d&n)>>0]|0){f=g+44|0;b:while(1){do if(!(Gh(13448,d,10352,0)|0)){if(Gh(13464,d,10352,0)|0){c[(m&p)>>2]=0;Dn(d+3|0,m)|0;h=c[(m&p)>>2]|0;b[(f&o)>>1]=fs(h,((h|0)<0)<<31>>31)|0;break}if(Gh(13480,d,10352,0)|0)a[(l&n)>>0]=a[(l&n)>>0]|64}else a[(l&n)>>0]=a[(l&n)>>0]|4;while(0);while(1){h=a[(d&n)>>0]|0;if(h<<24>>24==32|h<<24>>24==0)break;d=d+1|0}while(1){k=d+1|0;if(!(h<<24>>24))break a;else if(h<<24>>24!=32)continue b;h=a[(k&n)>>0]|0;d=k}}}while(0);i=q;return}function Oq(d){d=d|0;var e=0,f=0;f=d+8|0;e=c[(f&p)>>2]|0;if(!e){e=vh(d)|0;c[(f&p)>>2]=e;if(e)wh(e,155,0,0,0)|0;if((c[(d&p)+408>>2]|0)==0?(b[((c[(d&p)>>2]|0)&o)+60>>1]&8)==0:0)a[(d&n)+23>>0]=1}return e|0}function Pq(b,d){b=b|0;d=d|0;var e=0;e=(c[(b&p)+32>>2]|0)+-1|0;if((e|0)>(c[((c[(b&p)+24>>2]|0)&p)+88>>2]|0)?(a[((c[(b&p)+4>>2]|0)+(e*20|0)&n)>>0]|0)==d<<24>>24:0){zh(b,e);e=1}else e=0;return e|0}function Qq(d,e,f,g,h){d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var i=0,j=0;j=Oq(d)|0;i=g+32|0;gs(d,f,c[(i&p)>>2]|0,(h|0)==55&1,c[(g&p)>>2]|0);if(!(a[(g&n)+44>>0]&32)){g=b[(g&o)+38>>1]|0;xh(j,wh(j,h,e,c[(i&p)>>2]|0,f)|0,g,-14)}else{i=c[(g&p)+8>>2]|0;a:do if(!i)i=0;else while(1){if((a[(i&n)+51>>0]&3)==2)break a;i=c[(i&p)+20>>2]|0;if(!i){i=0;break}}while(0);wh(j,h,e,c[(i&p)+40>>2]|0,f)|0;g=c[(d&p)+8>>2]|0;xh(g,-1,hs(d,i)|0,-6)}return}function Rq(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0;if((d|0)!=0?(a[(d&n)>>0]|0)==-97:0)wh(c[(b&p)+8>>2]|0,33,c[(d&p)+28>>2]|0,e,0)|0;else h=4;if(((h|0)==4?(g=is(b,d,e)|0,(g|0)!=(e|0)):0)?(f=c[(b&p)+8>>2]|0,(f|0)!=0):0)wh(f,34,g,e,0)|0;return}function Sq(b,d,e,f,g){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0;m=i;i=i+16|0;if((i|0)>=(j|0))fa();l=m;h=c[(b&p)>>2]|0;do if(((a[(h&n)+145>>0]|0)==0?(a[(b&n)+451>>0]|0)==0:0)?(k=c[(h&p)+284>>2]|0,(k|0)!=0):0){h=kc[k&7](c[(h&p)+288>>2]|0,d,e,f,g,c[(b&p)+492>>2]|0)|0;if((h|0)==1){th(b,25216,l);c[(b&p)+12>>2]=23;h=1;break}else if((h|0)==0|(h|0)==2)break;else{th(b,25232,l);c[(b&p)+12>>2]=1;h=1;break}}else h=0;while(0);i=m;return h|0}function Tq(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;d=Wq(c[(a&p)>>2]|0,d)|0;do if(d){e=Oq(a)|0;if((e|0)!=0?(Sq(a,32,c[(b<<2&p)+37088>>2]|0,d,0)|0)==0:0){xh(e,wh(e,2,b,0,0)|0,d,-1);break}mg(c[(a&p)>>2]|0,d)}while(0);return}function Uq(e,f,g,h,k,l,m){e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;m=m|0;var q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0;y=i;i=i+16|0;if((i|0)>=(j|0))fa();u=y;s=y+4|0;x=c[(e&p)>>2]|0;f=er(e,f,g,s)|0;a:do if((f|0)>=0){t=(h|0)!=0;if(t?(c[(g&p)+4>>2]|0)!=0&(f|0)!=1:0){th(e,36976,u);break}w=t?1:f;g=c[(s&p)>>2]|0;t=g;f=c[(t&p)+4>>2]|0;s=e+496|0;c[(s&p)>>2]=c[(t&p)>>2];c[(s&p)+4>>2]=f;s=Wq(x,g)|0;if(s){b:do if((Lr(e,s)|0)==0?(r=(a[(x&n)+144>>0]|0)==1?1:h,v=x+16|0,q=c[((c[(v&p)>>2]|0)+(w<<4)&p)>>2]|0,(Sq(e,18,(r|0)==1?13184:13208,0,q)|0)==0):0){h=(r|0)!=0;if(!k)f=h?4:2;else f=h?6:8;t=(l|0)!=0;if(!t?(Sq(e,f,s,0,q)|0)!=0:0)break;do if(!(a[(e&n)+451>>0]|0)){h=c[((c[(v&p)>>2]|0)+(w<<4)&p)>>2]|0;if(Gn(e)|0)break b;if(!(_h(x,s,h)|0)){if(!(bq(x,s,h)|0))break;c[(u&p)>>2]=s;th(e,37048,u);break b}if(!m){c[(u&p)>>2]=g;th(e,37024,u);break b}else{Ar(e,w);break b}}while(0);r=mh(x,76,0)|0;if(!r){a[(x&n)+65>>0]=1;c[(e&p)+12>>2]=7;v=e+64|0;c[(v&p)>>2]=(c[(v&p)>>2]|0)+1;break}q=r+0|0;h=q+76|0;do{a[(q&n)>>0]=0;q=q+1|0}while((q|0)<(h|0));c[(r&p)>>2]=s;b[(r&o)+36>>1]=-1;q=c[((c[(v&p)>>2]|0)+(w<<4)&p)+12>>2]|0;c[(r&p)+68>>2]=q;b[(r&o)+40>>1]=1;b[(r&o)+28>>1]=200;c[(e&p)+484>>2]=r;if((a[(e&n)+18>>0]|0)==0?(_v(s,26576)|0)==0:0)c[(q&p)+72>>2]=r;if(a[(x&n)+145>>0]|0)break a;g=Oq(e)|0;if(!g)break a;v=c[(e&p)+408>>2]|0;Ar(e,w);q=1<>2]=c[(v&p)>>2]|q;if(t)wh(g,146,0,0,0)|0;r=e+72|0;f=c[(r&p)>>2]|0;s=f+1|0;c[(e&p)+384>>2]=s;t=f+2|0;c[(e&p)+388>>2]=t;f=f+3|0;c[(r&p)>>2]=f;wh(g,51,w,f,2)|0;r=g+96|0;c[(r&p)>>2]=c[(r&p)>>2]|q;r=wh(g,45,f,0,0)|0;wh(g,25,(c[(x&p)+24>>2]&32768|0)!=0?1:4,f,0)|0;wh(g,52,w,2,f)|0;wh(g,25,d[(x&n)+62>>0]|0,f,0)|0;wh(g,52,w,5,f)|0;h=g+32|0;q=c[(h&p)>>2]|0;if(q>>>0>r>>>0)c[((c[(g&p)+4>>2]|0)+(r*20|0)&p)+8>>2]=q;c[((c[(g&p)+24>>2]|0)&p)+88>>2]=q+-1;if(!(l|k))c[(e&p)+416>>2]=wh(g,121,w,t,0)|0;else wh(g,25,0,t,0)|0;js(e,w);wh(g,74,0,s,0)|0;wh(g,28,0,f,0)|0;wh(g,75,0,f,s)|0;q=c[(g&p)+4>>2]|0;if(q)a[(q+(((c[(h&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=8;wh(g,61,0,0,0)|0;break a}while(0);mg(x,s)}}while(0);i=y;return}function Vq(f,g,h,k,l){f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;var m=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;R=i;i=i+176|0;if((i|0)>=(j|0))fa();M=R+80|0;J=R+168|0;G=R;H=R+136|0;I=R+112|0;N=c[(f&p)>>2]|0;a:do if((!((h|0)==0&(l|0)==0)?(O=N+65|0,(a[(O&n)>>0]|0)==0):0)?(P=f+484|0,Q=c[(P&p)>>2]|0,(Q|0)!=0):0){L=N+145|0;if(a[(L&n)>>0]|0)c[(Q&p)+32>>2]=c[(N&p)+140>>2];b:do if(k&32){s=Q+44|0;r=d[(s&n)>>0]|0;if(r&8){th(f,36584,M);break a}if(!(r&4)){c[(M&p)>>2]=c[(Q&p)>>2];th(f,36640,M);break}a[(s&n)>>0]=r|32;t=c[(f&p)+8>>2]|0;s=c[(f&p)+416>>2]|0;if(s){if((s|0)<0)s=(c[(t&p)+32>>2]|0)+-1|0;if(!(a[((c[(t&p)>>2]|0)&n)+65>>0]|0))s=(c[(t&p)+4>>2]|0)+(s*20|0)|0;else s=29120;a[(s&n)>>0]=120}s=c[(f&p)+420>>2]|0;if(s){if((s|0)<0)s=(c[(t&p)+32>>2]|0)+-1|0;if(!(a[((c[(t&p)>>2]|0)&n)+65>>0]|0))r=(c[(t&p)+4>>2]|0)+(s*20|0)|0;else r=29120;a[(r&n)>>0]=16}r=Q+36|0;if((b[(r&o)>>1]|0)>-1){s=lr(f,0,0)|0;if(!s)break;C=kh(c[(f&p)>>2]|0,c[((c[(Q&p)+4>>2]|0)+((b[(r&o)>>1]|0)*24|0)&p)>>2]|0)|0;D=c[(s&p)+4>>2]|0;c[(D&p)+4>>2]=C;a[(D&n)+12>>0]=a[(f&n)+448>>0]|0;s=$q(f,0,0,0,s,d[(Q&n)+45>>0]|0,0,0,0,0)|0;if(!s)break;x=s+51|0;a[(x&n)>>0]=a[(x&n)>>0]&-4|2;b[(r&o)>>1]=-1;x=b[(s&o)+46>>1]|0}else{s=c[(Q&p)+8>>2]|0;c:do if(!s)s=0;else while(1){if((a[(s&n)+51>>0]&3)==2)break c;s=c[(s&p)+20>>2]|0;if(!s){s=0;break}}while(0);y=s+46|0;t=b[(y&o)>>1]|0;if((t&65535)>1){w=c[(s&p)+4>>2]|0;v=s+48|0;x=1;r=1;do{m=b[(w+(x<<1)&o)>>1]|0;u=r;q=w;while(1){if((u|0)<=0){F=36;break}if((b[(q&o)>>1]|0)==m<<16>>16){F=35;break}else{u=u+-1|0;q=q+2|0}}if((F|0)==35){F=0;b[(v&o)>>1]=(b[(v&o)>>1]|0)+-1<<16>>16}else if((F|0)==36){F=0;b[(w+(r<<1)&o)>>1]=m;t=b[(y&o)>>1]|0;r=r+1|0}x=x+1|0}while((x|0)<(t&65535|0))}else r=1;x=r&65535;b[(y&o)>>1]=x}u=s+51|0;t=a[(u&n)>>0]|32;a[(u&n)>>0]=t;D=x&65535;if(!(a[(N&n)+147>>0]|0)){if(x<<16>>16){t=c[(s&p)+4>>2]|0;r=c[(Q&p)+4>>2]|0;q=0;do{a[(r+((b[(t+(q<<1)&o)>>1]|0)*24|0)&n)+20>>0]=1;q=q+1|0}while((q|0)<(D|0));t=a[(u&n)>>0]|0}a[(u&n)>>0]=t|8}c[(s&p)+40>>2]=c[(Q&p)+32>>2];u=c[(Q&p)+8>>2]|0;if(u){A=x<<16>>16==0;B=s+4|0;C=s+32|0;do{d:do if((a[(u&n)+51>>0]&3)!=2){do if(A)t=b[(u&o)+46>>1]|0;else{v=c[(u&p)+4>>2]|0;t=b[(u&o)+46>>1]|0;q=t&65535;m=c[(B&p)>>2]|0;z=0;r=0;do{w=b[(m+(z<<1)&o)>>1]|0;y=q;x=v;while(1){if((y|0)<=0){x=1;break}if((b[(x&o)>>1]|0)==w<<16>>16){x=0;break}else{y=y+-1|0;x=x+2|0}}r=x+r|0;z=z+1|0}while((z|0)<(D|0));q=u+46|0;if(!r)break;if(ks(N,u,(t&65535)+r|0)|0)break b;if(A)break d;w=b[(q&o)>>1]|0;z=u+4|0;m=u+32|0;y=w;x=0;w=w&65535;while(1){t=c[(z&p)>>2]|0;r=b[((c[(B&p)>>2]|0)+(x<<1)&o)>>1]|0;y=y&65535;v=t;while(1){if((y|0)<=0){F=63;break}if((b[(v&o)>>1]|0)==r<<16>>16)break;else{y=y+-1|0;v=v+2|0}}if((F|0)==63){F=0;b[(t+(w<<1)&o)>>1]=r;c[((c[(m&p)>>2]|0)+(w<<2)&p)>>2]=c[((c[(C&p)>>2]|0)+(x<<2)&p)>>2];w=w+1|0}x=x+1|0;if((x|0)>=(D|0))break d;y=b[(q&o)>>1]|0}}while(0);b[(u&o)+48>>1]=t}while(0);u=c[(u&p)+20>>2]|0}while((u|0)!=0)}y=Q+38|0;t=b[(y&o)>>1]|0;r=t<<16>>16;if((D|0)>=(r|0)){b[(s&o)+48>>1]=t;break}if((ks(N,s,r)|0)==0?(E=b[(y&o)>>1]|0,E<<16>>16>0):0){v=s+4|0;x=s+32|0;t=E;w=0;s=D;do{q=c[(v&p)>>2]|0;u=s;r=q;while(1){if((u|0)<=0){F=74;break}if((b[(r&o)>>1]|0)==(w|0))break;else{u=u+-1|0;r=r+2|0}}if((F|0)==74){F=0;b[(q+(s<<1)&o)>>1]=w;c[((c[(x&p)>>2]|0)+(s<<2)&p)>>2]=11152;t=b[(y&o)>>1]|0;s=s+1|0}w=w+1|0}while((w|0)<(t<<16>>16|0))}}while(0);F=Q+68|0;s=c[(F&p)>>2]|0;e:do if(s){r=c[(N&p)+20>>2]|0;if((r|0)>0){q=c[(N&p)+16>>2]|0;t=0;while(1){m=t+1|0;if((c[(q+(t<<4)&p)+12>>2]|0)==(s|0))break e;if((m|0)<(r|0))t=m;else{t=m;break}}}else t=0}else t=-1e6;while(0);q=c[(Q&p)+24>>2]|0;f:do if(q){c[(H&p)>>2]=0;c[(H&p)+4>>2]=0;c[(H&p)+8>>2]=0;c[(H&p)+12>>2]=0;c[(H&p)+16>>2]=0;c[(H&p)+20>>2]=0;c[(H&p)+24>>2]=0;c[(H&p)+28>>2]=0;s=G+0|0;r=s+80|0;do{c[(s&p)>>2]=0;s=s+4|0}while((s|0)<(r|0));c[(G&p)>>2]=1;c[(G&p)+16>>2]=c[(Q&p)>>2];c[(G&p)+24>>2]=Q;c[(G&p)+48>>2]=-1;c[(H&p)>>2]=f;c[(H&p)+4>>2]=G;b[(H&o)+28>>1]=4;s=q+4|0;if((c[(q&p)>>2]|0)>0){r=0;do{if(ls(H,c[((c[(s&p)>>2]|0)+(r*20|0)&p)>>2]|0)|0)break f;r=r+1|0}while((r|0)<(c[(q&p)>>2]|0))}}while(0);D=Q+38|0;m=b[(D&o)>>1]|0;if(m<<16>>16>0){s=m<<16>>16;r=c[(Q&p)+4>>2]|0;q=0;while(1){q=(d[(r&n)+22>>0]|0)+q|0;s=s+-1|0;if((s|0)<=0)break;else r=r+24|0}}else q=0;b[(Q&o)+42>>1]=fs(((e[(Q&o)+36>>1]|0)>>>15&65535)+q<<2,0)|0;q=c[(Q&p)+8>>2]|0;if(q)do{ms(q);q=c[(q&p)+20>>2]|0}while((q|0)!=0);if(!(a[(L&n)>>0]|0)){E=Oq(f)|0;if(!E)break;wh(E,61,0,0,0)|0;B=(c[(Q&p)+12>>2]|0)==0;r=B?36672:36680;B=B?31232:35480;do if(!l){q=k<<24>>24==0?h:f+504|0;l=c[(q&p)>>2]|0;s=c[(f&p)+496>>2]|0;m=l-s|0;if((a[(l&n)>>0]|0)!=59)m=(c[(q&p)+4>>2]|0)+m|0;c[(M&p)>>2]=r;c[(M&p)+4>>2]=m;c[(M&p)+8>>2]=s;s=f+388|0;m=Q;r=uh(N,36688,M)|0}else{s=f+388|0;wh(E,55,1,c[(s&p)>>2]|0,t)|0;r=c[(E&p)+4>>2]|0;if(r)a[(r+(((c[(E&p)+32>>2]|0)+-1|0)*20|0)&n)+3>>0]=4;c[(f&p)+68>>2]=2;a[(I&n)>>0]=14;c[(I&p)+4>>2]=1;a[(I&n)+1>>0]=0;c[(I&p)+8>>2]=0;c[(I&p)+12>>2]=0;ir(f,l,I)|0;wh(E,61,1,0,0)|0;if(!(c[(f&p)+64>>2]|0)){m=ns(f,l)|0;if(!m)break a;I=m+38|0;b[(D&o)>>1]=b[(I&o)>>1]|0;l=m+4|0;c[(Q&p)+4>>2]=c[(l&p)>>2];b[(I&o)>>1]=0;c[(l&p)>>2]=0;kg(N,m)}C=Q+4|0;z=b[(D&o)>>1]|0;if(z<<16>>16>0){v=z<<16>>16;w=0;r=0;x=c[(C&p)>>2]|0;while(1){m=c[(x&p)>>2]|0;q=0;while(1){u=a[(m&n)>>0]|0;if(u<<24>>24==34)q=q+1|0;else if(!(u<<24>>24))break;m=m+1|0;q=q+1|0}r=r+7+q|0;w=w+1|0;if((w|0)==(v|0))break;else x=x+24|0}u=r+2|0}else u=2;m=c[(Q&p)>>2]|0;r=0;while(1){q=a[(m&n)>>0]|0;if(q<<24>>24==34)r=r+1|0;else if(!(q<<24>>24))break;m=m+1|0;r=r+1|0}x=r+u|0;A=(x|0)<50;u=A?10360:36880;y=A?20240:36888;A=A?33952:36896;x=((z<<16>>16)*6|0)+35+x|0;r=qg(x,((x|0)<0)<<31>>31)|0;if(!r){a[(O&n)>>0]=1;m=Q;r=0;break}ad(x,r,36904,M)|0;q=r;while(1)if(!(a[(q&n)>>0]|0))break;else q=q+1|0;c[(J&p)>>2]=q-r&1073741823;os(r,J,c[(Q&p)>>2]|0);m=c[(J&p)>>2]|0;v=m+1|0;c[(J&p)>>2]=v;a[(r+m&n)>>0]=40;m=x-v|0;q=r+v|0;if((b[(D&o)>>1]|0)>0){z=0;w=c[(C&p)>>2]|0;while(1){ad(m,q,u,M)|0;q=r+v|0;if(!q)q=0;else{u=q;while(1)if(!(a[(u&n)>>0]|0))break;else u=u+1|0;q=u-q&1073741823}c[(J&p)>>2]=q+v;os(r,J,c[(w&p)>>2]|0);q=c[((a[(w&n)+21>>0]|0)+-65<<2&p)+36920>>2]|0;u=q;while(1)if(!(a[(u&n)>>0]|0))break;else u=u+1|0;v=u-q&1073741823;u=c[(J&p)>>2]|0;kw(r+u|0,q|0,v|0)|0;v=u+v|0;c[(J&p)>>2]=v;u=z+1|0;m=x-v|0;q=r+v|0;if((u|0)<(b[(D&o)>>1]|0)){z=u;w=w+24|0;u=y}else break}}c[(M&p)>>2]=A;ad(m,q,10344,M)|0;m=Q}while(0);q=N+16|0;k=c[(m&p)>>2]|0;I=c[(s&p)>>2]|0;l=c[(f&p)+384>>2]|0;c[(M&p)>>2]=c[((c[(q&p)>>2]|0)+(t<<4)&p)>>2];c[(M&p)+4>>2]=(t|0)==1?13184:13208;c[(M&p)+8>>2]=B;c[(M&p)+12>>2]=k;c[(M&p)+16>>2]=k;c[(M&p)+20>>2]=I;c[(M&p)+24>>2]=r;c[(M&p)+28>>2]=l;Br(f,36704,M);mg(N,r);Dr(f,t);if((a[(Q&n)+44>>0]&8)!=0?(K=c[(q&p)>>2]|0,(c[((c[(K+(t<<4)&p)+12>>2]|0)&p)+72>>2]|0)==0):0){c[(M&p)>>2]=c[(K+(t<<4)&p)>>2];Br(f,36792,M)}c[(M&p)>>2]=c[(m&p)>>2];Ir(E,t,uh(N,36840,M)|0);if(!(a[(L&n)>>0]|0))break}else m=Q;if(Ik((c[(F&p)>>2]|0)+8|0,c[(m&p)>>2]|0,Q)|0){a[(O&n)>>0]=1;break}c[(P&p)>>2]=0;l=N+24|0;c[(l&p)>>2]=c[(l&p)>>2]|2;if(!(c[(Q&p)+12>>2]|0)){l=c[(f&p)+496>>2]|0;c[(Q&p)+48>>2]=(Nn(l,(c[(((c[(g&p)>>2]|0)==0?h:g)&p)>>2]|0)-l|0)|0)+13}}while(0);i=R;return}function Wq(b,d){b=b|0;d=d|0;var e=0,f=0;if(!d)e=0;else{f=c[(d&p)>>2]|0;d=c[(d&p)+4>>2]|0;if((f|0)!=0?(e=jw(d|0,0,1,0)|0,e=mh(b,e,G)|0,(e|0)!=0):0){kw(e|0,f|0,d|0)|0;a[(e+d&n)>>0]=0}else e=0;lo(e)}return e|0}function Xq(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,o=0,q=0;o=i;i=i+16|0;if((i|0)>=(j|0))fa();m=o;a:do if(b){g=a[(b&n)>>0]|0;b:do if(!(g<<24>>24)){f=67;g=0}else{k=g;f=67;h=0;g=0;do{h=d[(k&255&n)+9328>>0]|0|h<<8;b=b+1|0;if((h|0)==1685026146)if(f<<24>>24==67){f=69;h=1685026146;l=5}else l=13;else if((h|0)==1668050786){f=66;l=5}else if((h|0)==1718382433)if(f<<24>>24==67){f=69;h=1718382433;l=5}else l=13;else if((h|0)==1919246700)if(f<<24>>24==67){f=69;h=1919246700;l=5}else l=14;else if((h|0)==1952807028){f=66;l=5}else if((h|0)==1651273570)if(f<<24>>24==69|f<<24>>24==67){q=a[(b&n)>>0]|0;k=q;f=65;h=1651273570;g=q<<24>>24==40?b:g}else l=14;else if((h|0)!=1667785074)if((h&16777215|0)==6909556){f=68;break b}else l=5;else{f=66;h=1667785074;g=b;l=5}if((l|0)==13)l=5;else if((l|0)==14)l=5;if((l|0)==5){l=0;k=a[(b&n)>>0]|0}}while(k<<24>>24!=0)}while(0);if((e|0)!=0?(a[(e&n)>>0]=1,f<<24>>24<67):0){if(!g){a[(e&n)>>0]=5;break}b=a[(g&n)>>0]|0;if(b<<24>>24){while(1){if(((b&255)+-48|0)>>>0<10)break;g=g+1|0;b=a[(g&n)>>0]|0;if(!(b<<24>>24))break a}c[(m&p)>>2]=0;Dn(g,m)|0;g=((c[(m&p)>>2]|0)/4|0)+1|0;g=(g|0)>255?255:g;c[(m&p)>>2]=g;a[(e&n)>>0]=g}}}else f=67;while(0);i=o;return f|0}function Yq(e,f){e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,q=0,r=0,s=0,t=0;r=i;i=i+32|0;if((i|0)>=(j|0))fa();m=r;q=c[(e&p)>>2]|0;k=c[(e&p)+484>>2]|0;do if(k){h=(b[(k&o)+38>>1]|0)+-1|0;l=c[(k&p)+4>>2]|0;s=c[(f&p)>>2]|0;t=(d[(q&n)+145>>0]|0)+4|0;c[(m&p)>>2]=0;c[(m&p)+4>>2]=0;c[(m&p)+8>>2]=0;c[(m&p)+12>>2]=0;c[(m&p)+16>>2]=0;c[(m&p)+20>>2]=0;k=m+20|0;a[(k&n)>>0]=t;c[(m&p)>>2]=78;c[(m&p)+4>>2]=79;c[(m&p)+24>>2]=0;rs(m,s)|0;if(!(a[(k&n)>>0]|0)){c[(m&p)>>2]=c[(l+(h*24|0)&p)>>2];th(e,36480,m);break}k=l+(h*24|0)+4|0;Gk(q,c[(k&p)>>2]|0);c[(k&p)>>2]=Mr(q,c[(f&p)>>2]|0,1,0)|0;l=l+(h*24|0)+8|0;mg(q,c[(l&p)>>2]|0);h=c[(f&p)+4>>2]|0;k=(c[(f&p)+8>>2]|0)-h|0;if((h|0)!=0?(g=jw(k|0,((k|0)<0)<<31>>31|0,1,0)|0,g=mh(q,g,G)|0,(g|0)!=0):0){kw(g|0,h|0,k|0)|0;a[(g+k&n)>>0]=0}else g=0;c[(l&p)>>2]=g}while(0);Gk(q,c[(f&p)>>2]|0);i=r;return}function Zq(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,k=0;k=i;i=i+16|0;if((i|0)>=(j|0))fa();h=k;if((b|0)==72&(d|0)!=0&(e|0)!=0?(c[(a&p)+64>>2]|0)==0:0)b=ss(c[(a&p)>>2]|0,d,e)|0;else{b=nr(c[(a&p)>>2]|0,b,f,1)|0;ts(c[(a&p)>>2]|0,b,d,e)}if((b|0)!=0?(g=c[((c[(a&p)>>2]|0)&p)+100>>2]|0,(g|0)<(c[(b&p)+24>>2]|0)):0){c[(h&p)>>2]=g;th(a,27152,h)}i=k;return b|0}function _q(e,f,g,h,k){e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;var l=0,m=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;i=i+16|0;if((i|0)>=(j|0))fa();C=D;A=c[(e&p)+484>>2]|0;do if((A|0)!=0?(a[(e&n)+451>>0]|0)==0:0){B=A+44|0;m=d[(B&n)>>0]|0;if(m&4){c[(C&p)>>2]=c[(A&p)>>2];th(e,36376,C);break}y=m|4;a[(B&n)>>0]=y;z=(f|0)==0;if(z){m=(b[(A&o)+38>>1]|0)+-1|0;w=c[(A&p)+4>>2]|0;l=w+(m*24|0)+23|0;a[(l&n)>>0]=d[(l&n)>>0]|1;l=m;q=1;m=c[(w+(m*24|0)&p)+12>>2]|0}else{x=c[(f&p)>>2]|0;if((x|0)>0){u=f+4|0;v=A+4|0;t=b[(A&o)+38>>1]|0;w=0;m=0;do{a:do if(t<<16>>16>0){r=c[((c[(u&p)>>2]|0)+(w*20|0)&p)+4>>2]|0;s=c[(v&p)>>2]|0;q=0;while(1){l=q+1|0;if(!(dd(r,c[(s+(q*24|0)&p)>>2]|0)|0))break;if((l|0)<(t<<16>>16|0))q=l;else break a}l=s+(q*24|0)+23|0;a[(l&n)>>0]=d[(l&n)>>0]|1;l=q;m=c[(s+(q*24|0)&p)+12>>2]|0}else l=0;while(0);w=w+1|0}while((w|0)!=(x|0))}else{l=-1;m=0}q=(x|0)==1}if(q&(m|0)!=0?(dd(m,11144)|0|k|0)==0:0){b[(A&o)+36>>1]=l;a[(A&n)+45>>0]=g;a[(B&n)>>0]=y|h<<3;if(z){f=0;break}a[(e&n)+448>>0]=a[((c[(f&p)+4>>2]|0)&n)+12>>0]|0;break}if(h){th(e,36424,C);break}m=c[(e&p)+8>>2]|0;l=(m|0)!=0;if(l)c[(e&p)+420>>2]=wh(m,156,0,0,0)|0;f=$q(e,0,0,0,f,g,0,0,k,0)|0;if((f|0)!=0?(w=f+51|0,a[(w&n)>>0]=a[(w&n)>>0]&-4|2,l):0){f=c[(e&p)+420>>2]|0;l=c[(m&p)+32>>2]|0;if(l>>>0>f>>>0)c[((c[(m&p)+4>>2]|0)+(f*20|0)&p)+8>>2]=l;c[((c[(m&p)+24>>2]|0)&p)+88>>2]=l+-1;f=0}else f=0}while(0);Nk(c[(e&p)>>2]|0,f);i=D;return}function $q(f,g,h,k,l,m,q,r,s,t){f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;m=m|0;q=q|0;r=r|0;s=s|0;t=t|0;var 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;Y=i;i=i+144|0;if((i|0)>=(j|0))fa();V=Y;E=Y+112|0;x=Y+88|0;T=Y+84|0;N=Y+80|0;X=c[(f&p)>>2]|0;c[(T&p)>>2]=0;c[(N&p)>>2]=0;S=X+65|0;a:do if(((a[(S&n)>>0]|0)==0?(a[(f&n)+451>>0]|0)==0:0)?(Gn(f)|0)==0:0){U=(k|0)!=0;b:do if(U){g=er(f,g,h,T)|0;if((g|0)<0){u=0;h=0;break a}if((a[(X&n)+145>>0]|0)==0?(u=Jr(f,k)|0,(c[(h&p)+4>>2]|0)==0&(u|0)!=0):0)g=(c[(u&p)+68>>2]|0)==(c[((c[(X&p)+16>>2]|0)&p)+28>>2]|0)?1:g;h=c[(T&p)>>2]|0;u=c[(f&p)>>2]|0;c[(x&p)>>2]=f;u=c[(u&p)+16>>2]|0;c[(x&p)+12>>2]=c[(u+(g<<4)&p)>>2];c[(x&p)+4>>2]=c[(u+(g<<4)&p)+12>>2];c[(x&p)+16>>2]=20632;c[(x&p)+20>>2]=h;u=(g|0)==1;c[(x&p)+8>>2]=u&1;Kr(x,k)|0;w=Ur(f,0,k+8|0)|0;if(!w){u=0;h=0;break a}if(u?(c[((c[(X&p)+16>>2]|0)&p)+28>>2]|0)!=(c[(w&p)+68>>2]|0):0){c[(V&p)>>2]=c[(w&p)>>2];th(f,35920,V);u=0;h=0;break a}if((a[(w&n)+44>>0]&32)!=0?(v=c[(w&p)+8>>2]|0,(v|0)!=0):0){u=v;while(1){if((a[(u&n)+51>>0]&3)==2){v=g;M=u;x=w;break b}u=c[(u&p)+20>>2]|0;if(!u){v=g;M=0;x=w;break}}}else{v=g;M=0;x=w}}else{x=c[(f&p)+484>>2]|0;if(!x){u=0;h=0;break a}g=c[(x&p)+68>>2]|0;if(g){u=c[(X&p)+20>>2]|0;if((u|0)>0){h=c[(X&p)+16>>2]|0;w=0;while(1){v=w+1|0;if((c[(h+(w<<4)&p)+12>>2]|0)==(g|0)){h=0;v=w;M=0;break b}if((v|0)<(u|0))w=v;else{h=0;M=0;break}}}else{h=0;v=0;M=0}}else{h=0;v=-1e6;M=0}}while(0);R=X+16|0;F=c[(R&p)>>2]|0;g=F+(v<<4)|0;A=c[(x&p)>>2]|0;if(((Fc(A,25568,7)|0)==0?(a[(X&n)+145>>0]|0)==0:0)?(Fc(A+7|0,35976,9)|0)!=0:0){c[(V&p)>>2]=A;th(f,35992,V);u=0;h=0;break}if(c[(x&p)+12>>2]|0){th(f,36024,V);u=0;h=0;break}Q=x+44|0;if(a[(Q&n)>>0]&16){th(f,36056,V);u=0;h=0;break}G=(h|0)==0;if(!G){h=Wq(X,h)|0;if(!h){u=0;h=0;break}if(Lr(f,h)|0){u=0;break}if((a[(X&n)+145>>0]|0)==0?(_h(X,h,0)|0)!=0:0){c[(V&p)>>2]=h;th(f,36096,V);u=0;break}if(bq(X,h,c[(g&p)>>2]|0)|0)if(!t){c[(V&p)>>2]=h;th(f,36136,V);u=0;break}else{Ar(f,v);u=0;break}else w=h}else{u=c[(x&p)+8>>2]|0;if(!u)w=1;else{w=1;do{w=w+1|0;u=c[(u&p)+20>>2]|0}while((u|0)!=0)}c[(V&p)>>2]=A;c[(V&p)+4>>2]=w;w=uh(X,36160,V)|0;if(!w){u=0;h=0;break}}g=c[(g&p)>>2]|0;u=(v|0)==1;O=u?13184:13208;if((Sq(f,18,O,0,g)|0)==0?(Sq(f,u?3:1,w,c[(x&p)>>2]|0,g)|0)==0:0){if(!l){l=lr(f,0,0)|0;if(!l){l=0;u=0;h=w;break}I=kh(c[(f&p)>>2]|0,c[((c[(x&p)+4>>2]|0)+(((b[(x&o)+38>>1]|0)+-1|0)*24|0)&p)>>2]|0)|0;J=c[(l&p)+4>>2]|0;c[(J&p)+4>>2]=I;a[(J&n)+12>>0]=s}D=c[(l&p)>>2]|0;if((D|0)>0){A=c[(l&p)+4>>2]|0;y=0;g=0;do{u=c[(A+(y*20|0)&p)>>2]|0;if(u){h=c[(u&p)+8>>2]|0;if(!h)u=1;else{u=h;while(1)if(!(a[(u&n)>>0]|0))break;else u=u+1|0;u=(u-h&1073741823)+1|0}g=u+g|0}y=y+1|0}while((y|0)<(D|0));h=g}else h=0;if(!w)u=0;else{g=w;while(1)if(!(a[(g&n)>>0]|0))break;else g=g+1|0;u=g-w&1073741823}I=(M|0)!=0;if(I)g=e[(M&o)+46>>1]|0;else g=1;P=us(X,D+g&65535,h+1+u|0,N)|0;c:do if(!(a[(S&n)>>0]|0)){H=c[(N&p)>>2]|0;c[(P&p)>>2]=H;L=u+1|0;C=H+L|0;c[(N&p)>>2]=C;kw(H|0,w|0,L|0)|0;c[(P&p)+12>>2]=x;L=P+50|0;a[(L&n)>>0]=m;H=P+51|0;a[(H&n)>>0]=a[(H&n)>>0]&-12|((m|0)!=0&1)<<3&255|G&1;K=P+24|0;c[(K&p)>>2]=c[((c[(R&p)>>2]|0)+(v<<4)&p)+12>>2];g=c[(l&p)>>2]|0;J=P+46|0;b[(J&o)>>1]=g;if(r){c[(E&p)>>2]=0;c[(E&p)+4>>2]=0;c[(E&p)+8>>2]=0;c[(E&p)+12>>2]=0;c[(E&p)+16>>2]=0;c[(E&p)+20>>2]=0;c[(E&p)+24>>2]=0;c[(E&p)+28>>2]=0;A=V+0|0;h=A+80|0;do{c[(A&p)>>2]=0;A=A+4|0}while((A|0)<(h|0));c[(V&p)>>2]=1;c[(V&p)+16>>2]=c[(x&p)>>2];c[(V&p)+24>>2]=x;c[(V&p)+48>>2]=-1;c[(E&p)>>2]=f;c[(E&p)+4>>2]=V;b[(E&o)+28>>1]=16;ls(E,r)|0;c[(P&p)+36>>2]=r;g=c[(l&p)>>2]|0}z=(d[((c[(F+(v<<4)&p)+12>>2]|0)&n)+76>>0]|0)>3;d:do if((g|0)>0){G=x+4|0;F=x+38|0;E=P+4|0;r=X+145|0;g=P+32|0;y=P+28|0;h=0;s=c[(l&p)+4>>2]|0;while(1){u=c[(s&p)+4>>2]|0;A=b[(F&o)>>1]|0;e:do if(A<<16>>16>0){D=0;B=c[(G&p)>>2]|0;while(1){if(!(dd(u,c[(B&p)>>2]|0)|0)){t=D;break e}D=D+1|0;if((D|0)<(A<<16>>16|0))B=B+24|0;else{t=D;break}}}else t=0;while(0);if((t|0)>=(A<<16>>16|0))break;b[((c[(E&p)>>2]|0)+(h<<1)&o)>>1]=t;D=c[(s&p)>>2]|0;if(!D){D=c[((c[(G&p)>>2]|0)+(t*24|0)&p)+16>>2]|0;D=(D|0)!=0?D:11152}else{B=c[(D&p)+8>>2]|0;if(!B)D=1;else{D=B;while(1)if(!(a[(D&n)>>0]|0))break;else D=D+1|0;D=(D-B&1073741823)+1|0}kw(C|0,B|0,D|0)|0;B=c[(N&p)>>2]|0;C=B+D|0;c[(N&p)>>2]=C;D=B}if((a[(r&n)>>0]|0)==0?(cr(f,D)|0)==0:0){h=0;u=0;W=134;break c}c[((c[(g&p)>>2]|0)+(h<<2)&p)>>2]=D;a[((c[(y&p)>>2]|0)+h&n)>>0]=z?a[(s&n)+12>>0]|0:0;if(!(a[((c[(G&p)>>2]|0)+(t*24|0)&n)+20>>0]|0))a[(H&n)>>0]=a[(H&n)>>0]&-9;h=h+1|0;if((h|0)<(c[(l&p)>>2]|0))s=s+20|0;else break d}c[(V&p)>>2]=c[(x&p)>>2];c[(V&p)+4>>2]=u;th(f,36184,V);a[(f&n)+17>>0]=1;h=0;u=0;W=134;break c}else h=0;while(0);do if(I){z=M+46|0;A=b[(z&o)>>1]|0;if(!(A<<16>>16))break;E=M+4|0;F=P+4|0;G=P+48|0;s=M+32|0;t=P+32|0;g=M+28|0;y=P+28|0;r=0;do{B=b[((c[(E&p)>>2]|0)+(r<<1)&o)>>1]|0;u=c[(F&p)>>2]|0;D=e[(J&o)>>1]|0;C=u;while(1){if((D|0)<=0){W=92;break}if((b[(C&o)>>1]|0)==B<<16>>16){W=91;break}else{D=D+-1|0;C=C+2|0}}if((W|0)==91){W=0;b[(G&o)>>1]=(b[(G&o)>>1]|0)+-1<<16>>16}else if((W|0)==92){W=0;b[(u+(h<<1)&o)>>1]=B;c[((c[(t&p)>>2]|0)+(h<<2)&p)>>2]=c[((c[(s&p)>>2]|0)+(r<<2)&p)>>2];a[((c[(y&p)>>2]|0)+h&n)>>0]=a[((c[(g&p)>>2]|0)+r&n)>>0]|0;A=b[(z&o)>>1]|0;h=h+1|0}r=r+1|0}while((r|0)<(A&65535|0))}else{b[((c[(P&p)+4>>2]|0)+(h<<1)&o)>>1]=-1;c[((c[(P&p)+32>>2]|0)+(h<<2)&p)>>2]=11152}while(0);cq(P);r=f+484|0;g=c[(r&p)>>2]|0;if(!g){ms(P);g=c[(r&p)>>2]|0}f:do if((x|0)==(g|0)){u=c[(x&p)+8>>2]|0;if(!u)break;B=b[(J&o)>>1]|0;C=P+4|0;D=P+32|0;while(1){if((b[(u&o)+46>>1]|0)==B<<16>>16){g:do if(!(B<<16>>16)){r=0;g=0}else{y=c[(u&p)+4>>2]|0;z=c[(C&p)>>2]|0;A=u+32|0;g=0;while(1){if((b[(y+(g<<1)&o)>>1]|0)!=(b[(z+(g<<1)&o)>>1]|0)){r=B;break g}r=c[((c[(A&p)>>2]|0)+(g<<2)&p)>>2]|0;h=c[((c[(D&p)>>2]|0)+(g<<2)&p)>>2]|0;if((r|0)!=(h|0)?(dd(r,h)|0)!=0:0){r=B;break g}g=g+1|0;if((g|0)>=(B&65535|0)){r=B;break}}}while(0);if((g|0)==(r&65535|0))break}u=c[(u&p)+20>>2]|0;if(!u)break f}g=u+50|0;h=a[(g&n)>>0]|0;r=a[(L&n)>>0]|0;if(h<<24>>24==r<<24>>24){h=0;break c}if(!(h<<24>>24==10|r<<24>>24==10)){c[(V&p)>>2]=0;th(f,36216,V);h=a[(g&n)>>0]|0}if(h<<24>>24!=10){h=0;W=134;break c}a[(g&n)>>0]=a[(L&n)>>0]|0;h=0;break c}while(0);h=X+145|0;do if(!(a[(h&n)>>0]|0)){if(c[(f&p)+64>>2]|0){W=126;break}if(!((a[(Q&n)>>0]&32)==0|U)){W=126;break}u=f+72|0;r=(c[(u&p)>>2]|0)+1|0;c[(u&p)>>2]=r;u=Oq(f)|0;if(!u){h=0;u=0;W=134;break c}J=c[(f&p)+408>>2]|0;J=(J|0)==0?f:J;Ar(f,v);I=J+328|0;c[(I&p)>>2]=c[(I&p)>>2]|1<>0]=d[(J&n)>>0]|1;wh(u,120,v,r,0)|0;if(!q)g=0;else{g=c[(c[(T&p)>>2]&p)>>2]|0;J=(c[(f&p)+504>>2]|0)-g+(c[(f&p)+508>>2]|0)|0;I=J+-1|0;J=(a[(g+I&n)>>0]|0)==59?I:J;c[(V&p)>>2]=(m|0)==0?10360:36288;c[(V&p)+4>>2]=J;c[(V&p)+8>>2]=g;g=uh(X,36264,V)|0}I=c[(P&p)>>2]|0;J=c[(x&p)>>2]|0;c[(V&p)>>2]=c[((c[(R&p)>>2]|0)+(v<<4)&p)>>2];c[(V&p)+4>>2]=O;c[(V&p)+8>>2]=I;c[(V&p)+12>>2]=J;c[(V&p)+16>>2]=r;c[(V&p)+20>>2]=g;Br(f,36296,V);mg(X,g);if(!U)break;vs(f,P,r);Dr(f,v);c[(V&p)>>2]=c[(P&p)>>2];Ir(u,v,uh(X,36344,V)|0);wh(u,144,0,0,0)|0;W=126}else{if(Ik((c[(K&p)>>2]|0)+24|0,c[(P&p)>>2]|0,P)|0){a[(S&n)>>0]=1;h=0;u=0;W=134;break c}J=X+24|0;c[(J&p)>>2]=c[(J&p)>>2]|2;if(!U)break;c[(P&p)+40>>2]=c[(X&p)+140>>2];W=126}while(0);if((W|0)==126?!((a[(h&n)>>0]|0)!=0|(k|0)==0):0){h=0;u=0;W=134;break}h=c[(x&p)+8>>2]|0;do if((m|0)==5){if(!h){h=0;break}if((a[(h&n)+50>>0]|0)==5)break;do{u=h+20|0;h=c[(u&p)>>2]|0;if(!h){h=0;break}}while((a[(h&n)+50>>0]|0)!=5);c[(P&p)+20>>2]=h;c[(u&p)>>2]=P;r=0;u=P;h=w;break a}while(0);c[(P&p)+20>>2]=h;c[(x&p)+8>>2]=P;r=0;u=P;h=w;break a}else{h=r;u=0;W=134}while(0);if((W|0)==134)if(!P){r=h;h=w;break}Jk(X,P);r=h;h=w}else{u=0;h=w}}else{u=0;h=0}while(0);Gk(X,r);Nk(X,l);Do(X,k);mg(X,h);i=Y;return u|0}function ar(e,f){e=e|0;f=f|0;var g=0,h=0;g=c[(e&p)+484>>2]|0;h=c[(e&p)>>2]|0;if(((g|0)!=0?(a[(e&n)+451>>0]|0)==0:0)?(b[((c[((c[((c[(h&p)+16>>2]|0)+(d[(h&n)+144>>0]<<4)&p)+4>>2]|0)&p)+4>>2]|0)&o)+22>>1]&1)==0:0){h=g+24|0;g=lr(e,c[(h&p)>>2]|0,f)|0;c[(h&p)>>2]=g;if(c[(e&p)+324>>2]|0)mr(e,g,e+320|0,1)}else Gk(h,f);return}function br(d,e,f,g,h){d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0;F=i;i=i+16|0;if((i|0)>=(j|0))fa();C=F;E=c[(d&p)>>2]|0;D=c[(d&p)+484>>2]|0;a:do if((D|0)!=0?(a[(d&n)+451>>0]|0)==0:0){z=(e|0)==0;do if(z){B=b[(D&o)+38>>1]|0;l=(B<<16>>16)+-1|0;if(B<<16>>16<1){k=0;break a}if(g)if((c[(g&p)>>2]|0)==1){l=1;k=13}else{c[(C&p)>>2]=c[((c[(D&p)+4>>2]|0)+(l*24|0)&p)>>2];c[(C&p)+4>>2]=f;th(d,35712,C);k=0;break a}else{l=1;k=12}}else{if(!g){l=c[(e&p)>>2]|0;k=12;break}l=c[(g&p)>>2]|0;if((l|0)==(c[(e&p)>>2]|0))k=13;else{th(d,35776,C);k=0;break a}}while(0);if((k|0)==12){m=f+4|0;s=m;w=0;m=(l<<3)+37+(c[(m&p)>>2]|0)|0;B=l}else if((k|0)==13){s=f+4|0;m=(l<<3)+37+(c[(s&p)>>2]|0)|0;t=c[(g&p)>>2]|0;if((t|0)>0){u=c[(g&p)+4>>2]|0;v=0;do{r=c[(u+(v*20|0)&p)+4>>2]|0;if(!r)k=1;else{q=r;while(1)if(!(a[(q&n)>>0]|0))break;else q=q+1|0;k=(q-r&1073741823)+1|0}m=k+m|0;v=v+1|0}while((v|0)<(t|0));w=1;B=l}else{w=1;B=l}}k=mh(E,m,((m|0)<0)<<31>>31)|0;if(k){fw(k|0,0,m|0)|0;c[(k&p)>>2]=D;A=D+16|0;c[(k&p)+4>>2]=c[(A&p)>>2];x=k+36|0;q=x+(B<<3)|0;y=k+8|0;c[(y&p)>>2]=q;kw(q|0,c[(f&p)>>2]|0,c[(s&p)>>2]|0)|0;a[(q+(c[(s&p)>>2]|0)&n)>>0]=0;lo(q);q=q+((c[(s&p)>>2]|0)+1)|0;c[(k&p)+20>>2]=B;b:do if(!z){if((B|0)>0){m=D+4|0;f=e+4|0;r=b[(D&o)+38>>1]|0;l=0;while(1){c:do if(r<<16>>16>0){v=c[(m&p)>>2]|0;u=c[((c[(f&p)>>2]|0)+(l*20|0)&p)+4>>2]|0;t=0;while(1){s=t+1|0;if(!(dd(c[(v+(t*24|0)&p)>>2]|0,u)|0)){s=t;break}if((s|0)<(r<<16>>16|0))t=s;else break c}c[(x+(l<<3)&p)>>2]=s}else s=0;while(0);if((s|0)>=(r<<16>>16|0))break;l=l+1|0;if((l|0)>=(B|0))break b}c[(C&p)>>2]=c[((c[(f&p)>>2]|0)+(l*20|0)&p)+4>>2];th(d,35872,C);break a}}else c[(x&p)>>2]=(b[(D&o)+38>>1]|0)+-1;while(0);if(w&(B|0)>0){r=g+4|0;s=0;while(1){m=c[((c[(r&p)>>2]|0)+(s*20|0)&p)+4>>2]|0;if(!m)l=0;else{l=m;while(1)if(!(a[(l&n)>>0]|0))break;else l=l+1|0;l=l-m&1073741823}c[(x+(s<<3)&p)+4>>2]=q;kw(q|0,m|0,l|0)|0;a[(q+l&n)>>0]=0;s=s+1|0;if((s|0)==(B|0))break;else q=q+(l+1)|0}}a[(k&n)+24>>0]=0;a[(k&n)+25>>0]=h;a[(k&n)+26>>0]=h>>>8;l=Ik((c[(D&p)+68>>2]|0)+56|0,c[(y&p)>>2]|0,k)|0;if((l|0)==(k|0)){a[(E&n)+65>>0]=1;break}if(l){c[(k&p)+12>>2]=l;c[(l&p)+16>>2]=k}c[(A&p)>>2]=k;k=0}else k=0}else k=0;while(0);mg(E,k);Nk(E,e);Nk(E,g);i=F;return}function cr(b,d){b=b|0;d=d|0;var e=0,f=0,g=0;e=c[(b&p)>>2]|0;f=a[(e&n)+62>>0]|0;g=a[(e&n)+145>>0]|0;e=Yn(e,f,d,g&255)|0;do if(!(g<<24>>24)){if((e|0)!=0?(c[(e&p)+12>>2]|0)!=0:0)break;e=ws(b,f,e,d)|0}while(0);return e|0}function dr(e,f,g,h){e=e|0;f=f|0;g=g|0;h=h|0;var k=0,l=0,m=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;i=i+16|0;if((i|0)>=(j|0))fa();z=B;v=B+12|0;A=c[(e&p)>>2]|0;do if(!(a[(A&n)+65>>0]|0)){h=(h|0)!=0;if(h){u=A+68|0;a[(u&n)>>0]=(a[(u&n)>>0]|0)+1<<24>>24;y=Ur(e,g,f+8|0)|0;a[(u&n)>>0]=(a[(u&n)>>0]|0)+-1<<24>>24}else y=Ur(e,g,f+8|0)|0;if(!y){if(!h)break;zr(e,c[(f&p)+12>>2]|0);break}s=y+68|0;l=c[(s&p)>>2]|0;a:do if(l){h=c[(A&p)+20>>2]|0;if((h|0)>0){k=c[(A&p)+16>>2]|0;q=0;while(1){m=q+1|0;if((c[(k+(q<<4)&p)+12>>2]|0)==(l|0)){m=q;break a}if((m|0)<(h|0))q=m;else break}}else m=0}else m=-1e6;while(0);w=y+44|0;if((a[(w&n)>>0]&16)!=0?(hr(e,y)|0)!=0:0)break;q=(m|0)==1;x=q?13184:13208;h=c[((c[(A&p)+16>>2]|0)+(m<<4)&p)>>2]|0;if(!(Sq(e,9,x,0,h)|0)){k=(g|0)!=0;do if(k){l=q?15:17;q=0}else{if(!(a[(w&n)>>0]&16)){l=q?13:11;q=0;break}q=y+60|0;while(1){q=c[(q&p)>>2]|0;if((c[(q&p)>>2]|0)==(A|0))break;else q=q+24|0}l=30;q=c[((c[(q&p)+4>>2]|0)&p)+4>>2]|0}while(0);if((Sq(e,l,c[(y&p)>>2]|0,q,h)|0)==0?(Sq(e,9,c[(y&p)>>2]|0,0,h)|0)==0:0){q=c[(y&p)>>2]|0;if((Fc(q,25568,7)|0)==0?(Fc(q,35488,11)|0)!=0:0){c[(z&p)>>2]=q;th(e,35504,z);break}h=y+12|0;l=(c[(h&p)>>2]|0)==0;if(k){if(l){c[(z&p)>>2]=q;th(e,35536,z);break}}else if(!l){c[(z&p)>>2]=q;th(e,35576,z);break}if(Oq(e)|0){t=e+408|0;l=c[(t&p)>>2]|0;l=(l|0)==0?e:l;Ar(e,m);u=1<>2]=c[(k&p)>>2]|u;l=l+20|0;a[(l&n)>>0]=d[(l&n)>>0]|1;Cr(e,m,28544,c[(y&p)>>2]|0);l=c[(e&p)>>2]|0;k=l+24|0;b:do if(((c[(k&p)>>2]&524288|0)!=0?(a[(w&n)>>0]&16)==0:0)?(c[(h&p)>>2]|0)==0:0){r=Oq(e)|0;v=bn((c[(s&p)>>2]|0)+56|0,c[(y&p)>>2]|0,v)|0;if((v|0)!=0?(c[(v&p)+8>>2]|0)!=0:0)q=0;else{q=c[(y&p)+16>>2]|0;if(!q)break;while(1){if(a[(q&n)+24>>0]|0)break;if(c[(k&p)>>2]&16777216)break;q=c[(q&p)+4>>2]|0;if(!q)break b}q=xs(r)|0;wh(r,135,1,q,0)|0}v=e+438|0;a[(v&n)>>0]=1;rr(e,ys(l,f,0)|0,0);a[(v&n)>>0]=0;if(!(c[(k&p)>>2]&16777216)){wh(r,135,0,(c[(r&p)+32>>2]|0)+2|0,0)|0;zs(e,787,2,0,-2,4)}if(q){l=c[(r&p)+24>>2]|0;h=~q;do if((q|0)<0){q=c[(l&p)+112>>2]|0;if(!q)break;c[(q+(h<<2)&p)>>2]=c[(r&p)+32>>2]}while(0);c[(l&p)+88>>2]=(c[(r&p)+32>>2]|0)+-1}}while(0);r=c[(e&p)>>2]|0;s=r+16|0;l=c[(s&p)>>2]|0;h=Oq(e)|0;v=c[(t&p)>>2]|0;v=(v|0)==0?e:v;Ar(e,m);t=v+328|0;c[(t&p)>>2]=c[(t&p)>>2]|u;v=v+20|0;a[(v&n)>>0]=d[(v&n)>>0]|1;if(a[(w&n)>>0]&16)wh(h,146,0,0,0)|0;q=As(e,y)|0;if(q)do{Qr(e,q);q=c[(q&p)+32>>2]|0}while((q|0)!=0);l=l+(m<<4)|0;if(a[(w&n)>>0]&8){v=c[(y&p)>>2]|0;c[(z&p)>>2]=c[(l&p)>>2];c[(z&p)+4>>2]=v;Br(e,35608,z)}v=c[(y&p)>>2]|0;c[(z&p)>>2]=c[(l&p)>>2];c[(z&p)+4>>2]=x;c[(z&p)+8>>2]=v;Br(e,35656,z);if((g|0)==0?(a[(w&n)>>0]&16)==0:0)Bs(e,y);if(a[(w&n)>>0]&16){v=c[(y&p)>>2]|0;xh(h,wh(h,148,m,0,0)|0,v,0)}k=c[(y&p)>>2]|0;xh(h,wh(h,124,m,0,0)|0,k,0);Dr(e,m);h=c[((c[(s&p)>>2]|0)+(m<<4)&p)+12>>2]|0;k=b[(h&o)+78>>1]|0;if(k&2){l=c[(h&p)+16>>2]|0;if(l){k=l;do{h=c[(k&p)+8>>2]|0;if(c[(h&p)+12>>2]|0){Lk(r,h);c[(h&p)+4>>2]=0;b[(h&o)+38>>1]=0}k=c[(k&p)>>2]|0}while((k|0)!=0);k=c[((c[(s&p)>>2]|0)+(m<<4)&p)+12>>2]|0;h=k;k=b[(k&o)+78>>1]|0}b[(h&o)+78>>1]=k&65533}}}}}while(0);Do(A,f);i=B;return}function er(b,e,f,g){b=b|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0;m=i;i=i+16|0;if((i|0)>=(j|0))fa();k=m;h=c[(b&p)>>2]|0;do if((f|0)!=0?(c[(f&p)+4>>2]|0)!=0:0){if(a[(h&n)+145>>0]|0){th(b,28488,k);f=b+64|0;c[(f&p)>>2]=(c[(f&p)>>2]|0)+1;f=-1;break}c[(g&p)>>2]=f;g=Wq(h,e)|0;f=Vh(h,g)|0;mg(h,g);if((f|0)<0){c[(k&p)>>2]=e;th(b,28512,k);f=b+64|0;c[(f&p)>>2]=(c[(f&p)>>2]|0)+1;f=-1}}else l=7;while(0);if((l|0)==7){f=d[(h&n)+144>>0]|0;c[(g&p)>>2]=e}i=m;return f|0}function fr(a,b){a=a|0;b=b|0;a:do if(!b)b=0;else while(1){if(Hr(a,c[(b&p)>>2]|0)|0){b=1;break a}if(Kr(a,c[(b&p)+32>>2]|0)|0){b=1;break a}if(Gr(a,c[(b&p)+36>>2]|0)|0){b=1;break a}if(Hr(a,c[(b&p)+40>>2]|0)|0){b=1;break a}if(Gr(a,c[(b&p)+44>>2]|0)|0){b=1;break a}if(Hr(a,c[(b&p)+48>>2]|0)|0){b=1;break a}if(Gr(a,c[(b&p)+60>>2]|0)|0){b=1;break a}if(Gr(a,c[(b&p)+64>>2]|0)|0){b=1;break a}b=c[(b&p)+52>>2]|0;if(!b){b=0;break}}while(0);return b|0}function gr(d,f,g){d=d|0;f=f|0;g=g|0;var h=0,i=0,j=0,k=0,l=0;if((f|0)!=0?(h=mh(d,72,0)|0,(h|0)!=0):0){c[(h&p)>>2]=Pr(d,c[(f&p)>>2]|0,g)|0;c[(h&p)+32>>2]=ys(d,c[(f&p)+32>>2]|0,g)|0;c[(h&p)+36>>2]=Mr(d,c[(f&p)+36>>2]|0,g,0)|0;c[(h&p)+40>>2]=Pr(d,c[(f&p)+40>>2]|0,g)|0;c[(h&p)+44>>2]=Mr(d,c[(f&p)+44>>2]|0,g,0)|0;c[(h&p)+48>>2]=Pr(d,c[(f&p)+48>>2]|0,g)|0;a[(h&n)+4>>0]=a[(f&n)+4>>0]|0;j=gr(d,c[(f&p)+52>>2]|0,g)|0;c[(h&p)+52>>2]=j;if(j)c[(j&p)+56>>2]=h;c[(h&p)+56>>2]=0;c[(h&p)+60>>2]=Mr(d,c[(f&p)+60>>2]|0,g,0)|0;c[(h&p)+64>>2]=Mr(d,c[(f&p)+64>>2]|0,g,0)|0;c[(h&p)+8>>2]=0;c[(h&p)+12>>2]=0;b[(h&o)+6>>1]=(e[(f&o)+6>>1]|0)&65527;c[(h&p)+16>>2]=-1;c[(h&p)+20>>2]=-1;l=f+24|0;j=c[(l&p)+4>>2]|0;g=h+24|0;c[(g&p)>>2]=c[(l&p)>>2];c[(g&p)+4>>2]=j;g=c[(f&p)+68>>2]|0;if((g|0)!=0?(k=c[(g&p)>>2]<<4|8,i=mh(d,k,((k|0)<0)<<31>>31)|0,(i|0)!=0):0){fw(i|0,0,k|0)|0;c[(i&p)>>2]=c[(g&p)>>2];if((c[(g&p)>>2]|0)>0){f=i+8|0;j=0;do{c[(f+(j<<4)&p)+8>>2]=gr(d,c[(g+(j<<4)&p)+16>>2]|0,0)|0;c[(f+(j<<4)&p)+4>>2]=Pr(d,c[(g+(j<<4)&p)+12>>2]|0,0)|0;c[(f+(j<<4)&p)>>2]=kh(d,c[(g+(j<<4)&p)+8>>2]|0)|0;j=j+1|0}while((j|0)<(c[(g&p)>>2]|0))}}else i=0;c[(h&p)+68>>2]=i}else h=0;return h|0}function hr(d,f){d=d|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0;w=i;i=i+16|0;if((i|0)>=(j|0))fa();s=w;k=w+8|0;m=w+4|0;v=c[(d&p)>>2]|0;q=f+44|0;h=a[(q&n)>>0]|0;a:do if(!(h&16))t=11;else{g=c[(f&p)+60>>2]|0;if(g)do{if((c[(g&p)>>2]|0)==(v|0)){t=11;break a}g=c[(g&p)+24>>2]|0}while((g|0)!=0);g=f+56|0;h=bn(v+308|0,c[(c[(g&p)>>2]&p)>>2]|0,k)|0;if((h|0)!=0?(l=c[(h&p)+8>>2]|0,(l|0)!=0):0){c[(m&p)>>2]=0;l=(zn(v,f,l,c[((c[(l&p)>>2]|0)&p)+8>>2]|0,m)|0)==0;h=c[(m&p)>>2]|0;if(l){mg(v,h);h=a[(q&n)>>0]|0;t=11;break}else{c[(s&p)>>2]=h;th(d,10344,s);mg(v,h);g=1;break}}c[(s&p)>>2]=c[(c[(g&p)>>2]&p)>>2];th(d,28320,s);g=1}while(0);do if((t|0)==11)if((h&16)==0?(u=f+38|0,r=b[(u&o)>>1]|0,r<<16>>16<=0):0){if(r<<16>>16<0){c[(s&p)>>2]=c[(f&p)>>2];th(d,26752,s);g=1;break}h=gr(v,c[(f&p)+12>>2]|0,0)|0;if(!h)g=1;else{r=v+250|0;q=a[(r&n)>>0]|0;t=d+68|0;s=c[(t&p)>>2]|0;Cs(d,c[(h&p)+32>>2]|0);b[(u&o)>>1]=-1;a[(r&n)>>0]=0;m=v+284|0;l=c[(m&p)>>2]|0;c[(m&p)>>2]=0;g=ns(d,h)|0;c[(m&p)>>2]=l;a[(r&n)>>0]=q;c[(t&p)>>2]=s;if(!g){b[(u&o)>>1]=0;g=1}else{d=g+38|0;b[(u&o)>>1]=b[(d&o)>>1]|0;t=g+4|0;c[(f&p)+4>>2]=c[(t&p)>>2];b[(d&o)>>1]=0;c[(t&p)>>2]=0;kg(v,g);g=(c[(f&p)+68>>2]|0)+78|0;b[(g&o)>>1]=e[(g&o)>>1]|0|2;g=0}Mk(v,h,1)}}else g=0;while(0);i=w;return g|0} function ir(f,g,h){f=f|0;g=g|0;h=h|0;var k=0,l=0,m=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,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,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;Ca=i;i=i+240|0;if((i|0)>=(j|0))fa();ra=Ca;sa=Ca+220|0;ka=Ca+216|0;ia=Ca+196|0;ja=Ca+176|0;ua=Ca+164|0;va=Ca+136|0;ya=Ca+88|0;ga=Ca+64|0;ma=Ca+32|0;Aa=f+464|0;Ba=c[(Aa&p)>>2]|0;oa=f+468|0;xa=c[(oa&p)>>2]|0;c[(oa&p)>>2]=xa+1;c[(Aa&p)>>2]=xa;xa=c[(f&p)>>2]|0;a:do if((((g|0)!=0?(pa=xa+65|0,(a[(pa&n)>>0]|0)==0):0)?(k=f+64|0,(c[(k&p)>>2]|0)==0):0)?(Sq(f,21,0,0,0)|0)==0:0){D=ya+0|0;C=D+48|0;do{c[(D&p)>>2]=0;D=D+4|0}while((D|0)<(C|0));la=g+48|0;if((d[(h&n)>>0]|0)<9){Nk(xa,c[(la&p)>>2]|0);c[(la&p)>>2]=0;ea=g+6|0;b[(ea&o)>>1]=e[(ea&o)>>1]&65534}Ds(f,g,0);c[(va&p)>>2]=0;c[(va&p)+4>>2]=0;c[(va&p)+8>>2]=0;c[(va&p)+12>>2]=0;c[(va&p)+16>>2]=0;c[(va&p)+20>>2]=0;c[(va&p)+24>>2]=0;c[(va&p)>>2]=c[(la&p)>>2];na=g+32|0;x=c[(na&p)>>2]|0;w=c[(g&p)>>2]|0;b:do if(((c[(k&p)>>2]|0)==0?(a[(pa&n)>>0]|0)==0:0)?(ta=g+6|0,z=(e[(ta&o)>>1]|0)>>>2&1,wa=Oq(f)|0,(wa|0)!=0):0){if((c[(w&p)>>2]|0)>1?(a[(h&n)>>0]&-2)<<24>>24==10:0){th(f,35368,ra);za=444;break}qa=g+52|0;w=c[(qa&p)>>2]|0;c:do if(!w){r=f+460|0;q=f+492|0;m=g+36|0;l=f+408|0;k=g+60|0;T=g+64|0;U=g+4|0;V=xa+60|0;W=wa+32|0;X=f+72|0;Y=ga+4|0;Z=ga+1|0;_=ga+8|0;$=ga+12|0;aa=wa+4|0;ba=wa+24|0;ca=f+19|0;da=f+56|0;ea=f+80|0;S=0;y=z;while(1){if((S|0)>=(c[(x&p)>>2]|0)){H=m;Q=0;z=y;U=x;break c}N=c[(x+(S*72|0)&p)+28>>2]|0;do if(!N)z=S;else{P=x+(S*72|0)+32|0;A=c[(P&p)>>2]|0;if(A){if(a[(x+(S*72|0)&n)+45>>0]&4){z=S;break}wh(wa,17,c[(x+(S*72|0)&p)+36>>2]|0,A,0)|0;z=S;break}c[(ra&p)>>2]=0;Es(g,ra);c[(r&p)>>2]=(c[(r&p)>>2]|0)+(c[(ra&p)>>2]|0);v=b[(N&o)+6>>1]&4;Q=c[(q&p)>>2]|0;u=c[(f&p)>>2]|0;d:do if(!(b[(u&o)+60>>1]&1)){L=c[(na&p)>>2]|0;t=c[(L+(S*72|0)&p)+48>>2]|0;K=L+(S*72|0)+28|0;O=c[(K&p)>>2]|0;s=v<<16>>16!=0;do if(s){if(y){za=120;break d}if((c[(L&p)>>2]|0)>1){za=120;break d}R=c[(m&p)>>2]|0;if((R|0)!=0?(c[(R&p)+4>>2]&2097152|0)!=0:0){za=120;break d}H=c[(g&p)>>2]|0;do if(H){E=c[(H&p)>>2]|0;if((E|0)<=0)break;I=c[(H&p)+4>>2]|0;H=0;F=0;do{F=c[((c[(I+(H*20|0)&p)>>2]|0)&p)+4>>2]|F;H=H+1|0}while((H|0)!=(E|0));if(F&2097152){za=120;break d}}while(0);H=c[(la&p)>>2]|0;if(!H)break;E=c[(H&p)>>2]|0;if((E|0)<=0)break;I=c[(H&p)+4>>2]|0;H=0;F=0;do{F=c[((c[(I+(H*20|0)&p)>>2]|0)&p)+4>>2]|F;H=H+1|0}while((H|0)!=(E|0));if(F&2097152){za=120;break d}}while(0);I=c[(O&p)+32>>2]|0;H=(c[(O&p)+60>>2]|0)==0;if(!H?(c[(k&p)>>2]|0)!=0:0){za=120;break}if(c[(O&p)+64>>2]|0){za=120;break}E=b[(ta&o)>>1]|0;F=(E&64)==0;if(!(F|H)){za=120;break}if(!(c[(I&p)>>2]|0)){za=120;break}D=b[(O&o)+6>>1]|0;if(D&1){za=120;break}I=H|F^1;if(!I?(c[(L&p)>>2]|0)>1|(y|0)!=0:0){za=120;break}H=E&1;if(H<<16>>16!=0&s){za=120;break}B=c[(la&p)>>2]|0;C=(B|0)==0;if(!C?(c[(O&p)+48>>2]|0)!=0:0){za=120;break}J=(y|0)!=0;if(J?(c[(O&p)+48>>2]|0)!=0:0){za=120;break}if(I){if(D&6144){za=120;break}}else if(!((c[(m&p)>>2]|0)==0&H<<16>>16==0&(D&6144)==0)){za=120;break}if((E&2048)!=0?(c[(O&p)+52>>2]|0)!=0:0){za=120;break}R=L+(S*72|0)+44|0;if(a[(R&n)>>0]&32){za=120;break}E=O+52|0;I=c[(E&p)>>2]|0;do if(I){if(!(H<<16>>16==0&(((c[(O&p)+48>>2]|0)!=0|J)^1))){za=120;break d}if((c[(L&p)>>2]|0)!=1){za=120;break d}e:do if(O){if(!(D&5))F=O;else{za=120;break d}while(1){H=(I|0)==0;if(!H?(a[(F&n)+4>>0]|0)!=116:0){za=120;break d}if((c[(c[(F&p)+32>>2]&p)>>2]|0)<1){za=120;break d}if((c[(c[(O&p)>>2]&p)>>2]|0)!=(c[(c[(F&p)>>2]&p)>>2]|0)){za=120;break d}if(H)break e;if(b[(I&o)+6>>1]&5){za=120;break d}F=I;I=c[(I&p)+52>>2]|0}}while(0);if(C)break;F=c[(B&p)>>2]|0;if((F|0)<=0)break;I=c[(B&p)+4>>2]|0;H=0;do{if(!(b[(I+(H*20|0)&o)+16>>1]|0)){za=120;break d}H=H+1|0}while((H|0)<(F|0))}while(0);A=L+(S*72|0)+16|0;c[(q&p)>>2]=c[(A&p)>>2];Sq(f,21,0,0,0)|0;c[(q&p)>>2]=Q;I=c[(E&p)>>2]|0;f:do if(!I)za=81;else{B=u+65|0;E=c[(la&p)>>2]|0;D=c[(k&p)>>2]|0;C=c[(T&p)>>2]|0;F=c[(qa&p)>>2]|0;while(1){c[(la&p)>>2]=0;c[(na&p)>>2]=0;c[(qa&p)>>2]=0;c[(k&p)>>2]=0;c[(T&p)>>2]=0;H=gr(u,g,0)|0;c[(T&p)>>2]=C;c[(k&p)>>2]=D;c[(la&p)>>2]=E;c[(na&p)>>2]=L;a[(U&n)>>0]=116;if(!H)H=F;else{c[(H&p)+52>>2]=F;if(F)c[(F&p)+56>>2]=H;c[(H&p)+56>>2]=g}c[(qa&p)>>2]=H;if(a[(B&n)>>0]|0)break f;I=c[(I&p)+52>>2]|0;if(!I){za=81;break}else F=H}}while(0);if((za|0)==81){za=0;M=c[(K&p)>>2]|0;E=L+(S*72|0)+12|0;mg(u,c[(E&p)>>2]|0);mg(u,c[(A&p)>>2]|0);F=L+(S*72|0)+20|0;mg(u,c[(F&p)>>2]|0);c[(E&p)>>2]=0;c[(A&p)>>2]=0;c[(F&p)>>2]=0;c[(K&p)>>2]=0;F=L+(S*72|0)+24|0;E=c[(F&p)>>2]|0;if(E){D=E+40|0;C=b[(D&o)>>1]|0;if(C<<16>>16==1){Q=c[(l&p)>>2]|0;Q=((Q|0)==0?f:Q)+524|0;c[(E&p)+72>>2]=c[(Q&p)>>2];c[(Q&p)>>2]=E}else b[(D&o)>>1]=C+-1<<16>>16;c[(F&p)>>2]=0}Q=S+1|0;P=u+65|0;O=g;N=M;while(1){B=c[(N&p)+32>>2]|0;A=c[(B&p)>>2]|0;H=O+32|0;I=c[(H&p)>>2]|0;if(!I){I=pr(u,0,0,0)|0;c[(H&p)>>2]=I;if(!I)break;else z=0}else z=a[(R&n)>>0]|0;if((A|0)>1){I=Fs(u,I,A+-1|0,Q)|0;c[(H&p)>>2]=I;if(a[(P&n)>>0]|0)break}if((A|0)>0){F=0;do{D=F+S|0;Hk(u,c[(I+(D*72|0)&p)+56>>2]|0);H=B+(F*72|0)+8|0;D=I+(D*72|0)+8|0;E=H+0|0;C=D+72|0;do{c[(D&p)>>2]=c[(E&p)>>2];D=D+4|0;E=E+4|0}while((D|0)<(C|0));D=H+0|0;C=D+72|0;do{c[(D&p)>>2]=0;D=D+4|0}while((D|0)<(C|0));F=F+1|0}while((F|0)!=(A|0))}a[(I+(S*72|0)&n)+44>>0]=z;H=c[(O&p)>>2]|0;I=c[(H&p)>>2]|0;if((I|0)>0){D=H+4|0;F=c[(D&p)>>2]|0;E=0;do{if(!(c[(F+(E*20|0)&p)+4>>2]|0)){I=kh(u,c[(F+(E*20|0)&p)+8>>2]|0)|0;lo(I);F=c[(D&p)>>2]|0;c[(F+(E*20|0)&p)+4>>2]=I;I=c[(H&p)>>2]|0}E=E+1|0}while((E|0)<(I|0));H=c[(O&p)>>2]|0}Gs(u,H,t,c[(N&p)>>2]|0);if(J){Gs(u,c[(O&p)+40>>2]|0,t,c[(N&p)>>2]|0);L=O+44|0;c[(L&p)>>2]=Hs(u,c[(L&p)>>2]|0,t,c[(N&p)>>2]|0)|0}I=N+48|0;H=c[(I&p)>>2]|0;do if(!H){H=c[(O&p)+48>>2]|0;if(!H)break;Gs(u,H,t,c[(N&p)>>2]|0)}else{F=c[(H&p)>>2]|0;if((F|0)>0){E=c[(H&p)+4>>2]|0;D=0;do{b[(E+(D*20|0)&o)+16>>1]=0;D=D+1|0}while((D|0)!=(F|0))}c[(O&p)+48>>2]=H;c[(I&p)>>2]=0}while(0);H=c[(N&p)+36>>2]|0;if(!H)F=0;else F=Mr(u,H,0,0)|0;I=O+36|0;H=c[(I&p)>>2]|0;if(s){L=O+44|0;c[(L&p)>>2]=H;c[(I&p)>>2]=F;K=Hs(u,H,t,c[(N&p)>>2]|0)|0;c[(L&p)>>2]=K;c[(L&p)>>2]=ss(u,K,Mr(u,c[(N&p)+44>>2]|0,0,0)|0)|0;c[(O&p)+40>>2]=Pr(u,c[(N&p)+40>>2]|0,0)|0}else{L=Hs(u,H,t,c[(N&p)>>2]|0)|0;c[(I&p)>>2]=L;c[(I&p)>>2]=ss(u,L,F)|0}H=O+6|0;b[(H&o)>>1]=e[(H&o)>>1]|e[(N&o)+6>>1]&1;H=N+60|0;F=c[(H&p)>>2]|0;if(F){c[(O&p)+60>>2]=F;c[(H&p)>>2]=0}O=c[(O&p)+52>>2]|0;if(!O)break;else N=c[(N&p)+52>>2]|0}Mk(u,M,1)}if(!(v<<16>>16)){z=-1;break}b[(ta&o)>>1]=e[(ta&o)>>1]|4;z=-1;y=1}else za=120;while(0);g:do if((za|0)==120){za=0;do if((c[(x&p)>>2]|0)==1){if(b[(V&o)>>1]&256)break;D=c[(W&p)>>2]|0;R=D+1|0;Q=(c[(X&p)>>2]|0)+1|0;c[(X&p)>>2]=Q;z=x+(S*72|0)+36|0;c[(z&p)>>2]=Q;wh(wa,20,Q,0,R)|0;c[(P&p)>>2]=R;R=c[(z&p)>>2]|0;a[(ga&n)>>0]=13;c[(Y&p)>>2]=R;a[(Z&n)>>0]=0;c[(_&p)>>2]=0;c[($&p)>>2]=0;a[(x+(S*72|0)&n)+46>>0]=c[(oa&p)>>2];ir(f,N,ga)|0;R=N+24|0;R=fs(c[(R&p)>>2]|0,c[(R&p)+4>>2]|0)|0;b[((c[(x+(S*72|0)&p)+24>>2]|0)&o)+28>>1]=R;R=x+(S*72|0)+45|0;a[(R&n)>>0]=a[(R&n)>>0]|4;c[(x+(S*72|0)&p)+40>>2]=c[(_&p)>>2];wh(wa,21,c[(z&p)>>2]|0,0,0)|0;z=c[(W&p)>>2]|0;if(z>>>0>D>>>0)c[((c[(aa&p)>>2]|0)+(D*20|0)&p)+8>>2]=z;c[((c[(ba&p)>>2]|0)&p)+88>>2]=z+-1;a[(ca&n)>>0]=0;c[(da&p)>>2]=0;z=S;break g}while(0);C=(c[(X&p)>>2]|0)+1|0;c[(X&p)>>2]=C;E=x+(S*72|0)+36|0;c[(E&p)>>2]=C;C=wh(wa,25,0,C,0)|0;c[(P&p)>>2]=C+1;if(!(a[(x+(S*72|0)&n)+45>>0]&2)){R=Oq(f)|0;D=c[(ea&p)>>2]|0;c[(ea&p)>>2]=D+1;D=wh(R,44,D,0,0)|0}else D=0;R=c[(x+(S*72|0)&p)+48>>2]|0;a[(ga&n)>>0]=12;c[(Y&p)>>2]=R;a[(Z&n)>>0]=0;c[(_&p)>>2]=0;c[($&p)>>2]=0;a[(x+(S*72|0)&n)+46>>0]=c[(oa&p)>>2];ir(f,N,ga)|0;R=N+24|0;R=fs(c[(R&p)>>2]|0,c[(R&p)+4>>2]|0)|0;b[((c[(x+(S*72|0)&p)+24>>2]|0)&o)+28>>1]=R;if(D){A=c[(W&p)>>2]|0;if(A>>>0>D>>>0)c[((c[(aa&p)>>2]|0)+(D*20|0)&p)+8>>2]=A;c[((c[(ba&p)>>2]|0)&p)+88>>2]=A+-1}z=wh(wa,18,c[(E&p)>>2]|0,0,0)|0;if((c[(W&p)>>2]|0)>>>0>C>>>0)c[((c[(aa&p)>>2]|0)+(C*20|0)&p)+4>>2]=z;a[(ca&n)>>0]=0;c[(da&p)>>2]=0;z=S}while(0);if(a[(pa&n)>>0]|0){za=444;break b}c[(ra&p)>>2]=0;Es(g,ra);c[(r&p)>>2]=(c[(r&p)>>2]|0)-(c[(ra&p)>>2]|0);x=c[(na&p)>>2]|0;if((d[(h&n)>>0]|0)<9)break;c[(va&p)>>2]=c[(la&p)>>2]}while(0);w=c[(qa&p)>>2]|0;if(!w)S=z+1|0;else{H=m;Q=w;z=y;U=x;break}}}else{H=g+36|0;Q=w;U=x}while(0);T=c[(g&p)>>2]|0;B=c[(H&p)>>2]|0;l=g+40|0;w=c[(l&p)>>2]|0;I=g+44|0;ga=c[(I&p)>>2]|0;m=b[(ta&o)>>1]|0;a[(ua&n)>>0]=m&1;if(Q){O=c[(f&p)>>2]|0;c[(sa&p)>>2]=c[(h&p)>>2];c[(sa&p)+4>>2]=c[(h&p)+4>>2];c[(sa&p)+8>>2]=c[(h&p)+8>>2];c[(sa&p)+12>>2]=c[(h&p)+12>>2];c[(sa&p)+16>>2]=c[(h&p)+16>>2];h:do if(!(c[(Q&p)+48>>2]|0)){x=Q+60|0;if(c[(x&p)>>2]|0){k=d[(g&n)+4>>0]|0;if((k|0)==118)k=35336;else if((k|0)==117)k=35352;else if((k|0)==116)k=35320;else k=35360;c[(ra&p)>>2]=k;th(f,35072,ra);m=0;k=1;za=227;break}R=Oq(f)|0;t=a[(sa&n)>>0]|0;if(t<<24>>24==12){wh(R,57,c[(sa&p)+4>>2]|0,c[(c[(g&p)>>2]&p)>>2]|0,0)|0;t=c[(R&p)+4>>2]|0;if(t)a[(t+(((c[(R&p)+32>>2]|0)+-1|0)*20|0)&n)+3>>0]=8;a[(sa&n)>>0]=14;t=14}s=e[(ta&o)>>1]|0;if(s&256){m=0;k=Is(f,g,sa)|0;za=227;break}if((c[(c[(g&p)>>2]&p)>>2]|0)!=(c[(c[(Q&p)>>2]&p)>>2]|0)){Js(f,g);m=0;k=1;za=227;break}do if(!(s&2048)){if(c[(la&p)>>2]|0){k=Ls(f,g,h)|0;break h}P=g+4|0;s=d[(P&n)>>0]|0;if((s|0)==116){v=g+8|0;t=Q+8|0;c[(t&p)>>2]=c[(v&p)>>2];u=g+12|0;s=Q+12|0;c[(s&p)>>2]=c[(u&p)>>2];da=g+60|0;c[(x&p)>>2]=c[(da&p)>>2];ea=g+64|0;c[(Q&p)+64>>2]=c[(ea&p)>>2];q=c[(oa&p)>>2]|0;k=ir(f,Q,sa)|0;c[(da&p)>>2]=0;c[(ea&p)>>2]=0;if(k){m=0;za=227;break h}c[(qa&p)>>2]=0;t=c[(t&p)>>2]|0;c[(v&p)>>2]=t;c[(u&p)>>2]=c[(s&p)>>2];if(!t)w=0;else w=wh(R,46,t,0,0)|0;l=c[(oa&p)>>2]|0;k=ir(f,g,sa)|0;m=c[(qa&p)>>2]|0;c[(qa&p)>>2]=Q;ea=Q+24|0;r=g+24|0;t=r;ea=jw(c[(t&p)>>2]|0,c[(t&p)+4>>2]|0,c[(ea&p)>>2]|0,c[(ea&p)+4>>2]|0)|0;t=r;c[(t&p)>>2]=ea;c[(t&p)+4>>2]=G;t=c[(x&p)>>2]|0;do if(t){ea=(Ms(t,ka)|0)!=0;t=c[(ka&p)>>2]|0;if(!(ea&(t|0)>0))break;ea=r;da=c[(ea&p)+4>>2]|0;s=((t|0)<0)<<31>>31;if(!(da>>>0>s>>>0|((da|0)==(s|0)?(c[(ea&p)>>2]|0)>>>0>t>>>0:0)))break;ea=r;c[(ea&p)>>2]=t;c[(ea&p)+4>>2]=s}while(0);if(!w){w=P;v=q;t=l;break}r=c[(R&p)+32>>2]|0;if(r>>>0>w>>>0)c[((c[(R&p)+4>>2]|0)+(w*20|0)&p)+8>>2]=r;c[((c[(R&p)+24>>2]|0)&p)+88>>2]=r+-1;w=P;v=q;t=l;break}else if((s|0)==115|(s|0)==117){if(t<<24>>24==1)s=c[(sa&p)+4>>2]|0;else{r=f+68|0;s=c[(r&p)>>2]|0;c[(r&p)>>2]=s+1;c[(g&p)+16>>2]=wh(R,57,s,0,0)|0;r=g;while(1){t=c[(r&p)+56>>2]|0;if(!t)break;else r=t}ea=r+6|0;b[(ea&o)>>1]=e[(ea&o)>>1]|8}a[(ia&n)>>0]=1;c[(ia&p)+4>>2]=s;a[(ia&n)+1>>0]=0;c[(ia&p)+8>>2]=0;c[(ia&p)+12>>2]=0;y=c[(oa&p)>>2]|0;k=ir(f,Q,ia)|0;if(k){m=0;za=227;break h}x=(a[(P&n)>>0]|0)==117?2:1;c[(qa&p)>>2]=0;v=g+60|0;u=c[(v&p)>>2]|0;c[(v&p)>>2]=0;t=g+64|0;r=c[(t&p)>>2]|0;c[(t&p)>>2]=0;a[(ia&n)>>0]=x;x=c[(oa&p)>>2]|0;k=ir(f,g,ia)|0;Nk(O,c[(la&p)>>2]|0);m=c[(qa&p)>>2]|0;c[(qa&p)>>2]=Q;c[(la&p)>>2]=0;if((a[(P&n)>>0]|0)==115){da=Q+24|0;ea=g+24|0;ca=ea;da=jw(c[(ca&p)>>2]|0,c[(ca&p)+4>>2]|0,c[(da&p)>>2]|0,c[(da&p)+4>>2]|0)|0;c[(ea&p)>>2]=da;c[(ea&p)+4>>2]=G}Gk(O,c[(v&p)>>2]|0);c[(v&p)>>2]=u;c[(t&p)>>2]=r;c[(g&p)+8>>2]=0;c[(g&p)+12>>2]=0;r=a[(sa&n)>>0]|0;if(r<<24>>24==9){r=g;while(1){q=c[(r&p)+52>>2]|0;if(!q)break;else r=q}Ns(f,0,c[(r&p)>>2]|0)}else if(r<<24>>24==1){w=P;v=y;t=x;break}l=xs(R)|0;ea=xs(R)|0;Os(f,g,l);wh(R,108,s,l,0)|0;w=R+32|0;v=c[(w&p)>>2]|0;Ps(f,g,c[(g&p)>>2]|0,s,0,0,sa,ea,l);u=R+24|0;t=c[(u&p)>>2]|0;r=~ea;do if((ea|0)<0){q=c[(t&p)+112>>2]|0;if(!q)break;c[(q+(r<<2)&p)>>2]=c[(w&p)>>2]}while(0);c[(t&p)+88>>2]=(c[(w&p)>>2]|0)+-1;wh(R,9,s,v,0)|0;r=c[(u&p)>>2]|0;q=~l;do if((l|0)<0){t=c[(r&p)+112>>2]|0;if(!t)break;c[(t+(q<<2)&p)>>2]=c[(w&p)>>2]}while(0);c[(r&p)+88>>2]=(c[(w&p)>>2]|0)+-1;wh(R,61,s,0,0)|0;w=P;v=y;t=x;break}else{r=f+68|0;A=c[(r&p)>>2]|0;c[(r&p)>>2]=A+2;c[(g&p)+16>>2]=wh(R,57,A,0,0)|0;r=g;while(1){q=c[(r&p)+56>>2]|0;if(!q)break;else r=q}y=A+1|0;v=r+6|0;b[(v&o)>>1]=e[(v&o)>>1]|8;a[(ja&n)>>0]=1;v=ja+4|0;c[(v&p)>>2]=A;a[(ja&n)+1>>0]=0;c[(ja&p)+8>>2]=0;c[(ja&p)+12>>2]=0;x=c[(oa&p)>>2]|0;k=ir(f,Q,ja)|0;if(k){m=0;za=227;break h}c[(g&p)+20>>2]=wh(R,57,y,0,0)|0;c[(qa&p)>>2]=0;w=g+60|0;l=c[(w&p)>>2]|0;c[(w&p)>>2]=0;q=g+64|0;r=c[(q&p)>>2]|0;c[(q&p)>>2]=0;c[(v&p)>>2]=y;z=c[(oa&p)>>2]|0;k=ir(f,g,ja)|0;m=c[(qa&p)>>2]|0;c[(qa&p)>>2]=Q;t=g+24|0;ea=t;da=c[(ea&p)+4>>2]|0;u=Q+24|0;v=c[(u&p)>>2]|0;u=c[(u&p)+4>>2]|0;if(da>>>0>u>>>0|((da|0)==(u|0)?(c[(ea&p)>>2]|0)>>>0>v>>>0:0)){ea=t;c[(ea&p)>>2]=v;c[(ea&p)+4>>2]=u}Gk(O,c[(w&p)>>2]|0);c[(w&p)>>2]=l;c[(q&p)>>2]=r;if((a[(sa&n)>>0]|0)==9){t=g;while(1){s=c[(t&p)+52>>2]|0;if(!s)break;else t=s}Ns(f,0,c[(t&p)>>2]|0)}q=xs(R)|0;w=xs(R)|0;Os(f,g,q);wh(R,108,A,q,0)|0;t=f+19|0;s=a[(t&n)>>0]|0;if(!(s<<24>>24)){ea=f+72|0;t=(c[(ea&p)>>2]|0)+1|0;c[(ea&p)>>2]=t}else{ea=s+-1<<24>>24;a[(t&n)>>0]=ea;t=c[(f+((ea&255)<<2)&p)+24>>2]|0}l=wh(R,101,A,t,0)|0;xh(R,wh(R,68,y,w,t)|0,0,-14);_r(f,t);Ps(f,g,c[(g&p)>>2]|0,A,0,0,sa,w,q);t=R+24|0;s=c[(t&p)>>2]|0;u=~w;do if((w|0)<0){v=c[(s&p)+112>>2]|0;if(!v)break;c[(v+(u<<2)&p)>>2]=c[(R&p)+32>>2]}while(0);v=R+32|0;c[(s&p)+88>>2]=(c[(v&p)>>2]|0)+-1;wh(R,9,A,l,0)|0;s=c[(t&p)>>2]|0;r=~q;do if((q|0)<0){t=c[(s&p)+112>>2]|0;if(!t)break;c[(t+(r<<2)&p)>>2]=c[(v&p)>>2]}while(0);c[(s&p)+88>>2]=(c[(v&p)>>2]|0)+-1;wh(R,61,y,0,0)|0;wh(R,61,A,0,0)|0;w=P;v=x;t=z;break}}else{Ks(f,g,sa);w=g+4|0;v=0;t=0;m=0;k=0}while(0);ea=a[(w&n)>>0]|0;Qs(f,ea&255,v,t,ea<<24>>24!=116&1);if(!(b[(ta&o)>>1]&8)){za=227;break}u=c[(c[(g&p)>>2]&p)>>2]|0;v=Rs(O,u,1)|0;if(!v){k=7;za=227;break}if((u|0)>0){l=O+8|0;q=v+20|0;r=0;while(1){ea=Ss(f,g,r)|0;c[(q&p)>>2]=ea;if(!ea)c[(q&p)>>2]=c[(l&p)>>2];r=r+1|0;if((r|0)==(u|0))break;else q=q+4|0}}s=R+32|0;t=R+4|0;do{l=0;do{r=g+(l<<2)+16|0;q=c[(r&p)>>2]|0;if((q|0)<0)break;if((c[(s&p)>>2]|0)>>>0>q>>>0)c[((c[(t&p)>>2]|0)+(q*20|0)&p)+8>>2]=u;c[(v&p)>>2]=(c[(v&p)>>2]|0)+1;xh(R,q,v,-6);c[(r&p)>>2]=-1;l=l+1|0}while((l|0)<2);g=c[(g&p)+52>>2]|0}while((g|0)!=0);ea=(c[(v&p)>>2]|0)+-1|0;c[(v&p)>>2]=ea;if(ea){za=227;break}Wc(v);za=227}else{k=d[(g&n)+4>>0]|0;if((k|0)==118)k=35336;else if((k|0)==117)k=35352;else if((k|0)==116)k=35320;else k=35360;c[(ra&p)>>2]=k;th(f,35024,ra);m=0;k=1;za=227}while(0);if((za|0)==227){c[(h&p)+8>>2]=c[(sa&p)+8>>2];c[(h&p)+12>>2]=c[(sa&p)+12>>2];Mk(O,m,1)}c[(Aa&p)>>2]=Ba;break a}if((m&5)==1){k=c[(va&p)>>2]|0;if(!(Ts(k,T,-1)|0)){b[(ta&o)>>1]=m&65534;w=Pr(xa,T,0)|0;c[(l&p)>>2]=w;za=232}}else za=232;if((za|0)==232)k=c[(va&p)>>2]|0;if(!k)k=-1;else{ea=Us(f,k,0,c[(T&p)>>2]|0)|0;da=f+68|0;k=c[(da&p)>>2]|0;c[(da&p)>>2]=k+1;c[(va&p)+8>>2]=k;k=wh(wa,57,k,(c[(c[(va&p)>>2]&p)>>2]|0)+1+(c[(T&p)>>2]|0)|0,0)|0;xh(wa,k,ea,-6)}R=va+20|0;c[(R&p)>>2]=k;if((a[(h&n)>>0]|0)==12)wh(wa,57,c[(h&p)+4>>2]|0,c[(T&p)>>2]|0,0)|0;qa=xs(wa)|0;y=g+24|0;ea=y;c[(ea&p)>>2]=-1;c[(ea&p)+4>>2]=2147483647;Os(f,g,qa);if((c[(g&p)+8>>2]|0)==0?(ha=c[(R&p)>>2]|0,(ha|0)>-1):0){if(!(a[((c[(wa&p)>>2]|0)&n)+65>>0]|0))k=(c[(wa&p)+4>>2]|0)+(ha*20|0)|0;else k=29120;a[(k&n)>>0]=58;ea=va+24|0;a[(ea&n)>>0]=d[(ea&n)>>0]|1}if(!(b[(ta&o)>>1]&1))a[(ua&n)+1>>0]=0;else{ea=f+68|0;k=c[(ea&p)>>2]|0;c[(ea&p)>>2]=k+1;c[(ua&p)+4>>2]=k;ea=Us(f,c[(g&p)>>2]|0,0,0)|0;k=wh(wa,57,k,0,0)|0;xh(wa,k,ea,-6);c[(ua&p)+8>>2]=k;k=c[(wa&p)+4>>2]|0;if(k)a[(k+(((c[(wa&p)+32>>2]|0)+-1|0)*20|0)&n)+3>>0]=8;a[(ua&n)+1>>0]=3}if((z|0)==0&(w|0)==0){v=Vs(f,U,B,c[(va&p)>>2]|0,c[(g&p)>>2]|0,(a[(ua&n)>>0]|0)!=0?1024:0,0)|0;if(!v){za=444;break}t=Ws(b[(v&o)+32>>1]|0)|0;s=G;ea=y;da=c[(ea&p)+4>>2]|0;if(s>>>0>>0|((s|0)==(da|0)?t>>>0<(c[(ea&p)>>2]|0)>>>0:0)){ea=y;c[(ea&p)>>2]=t;c[(ea&p)+4>>2]=s}do if(a[(ua&n)>>0]|0){t=a[(v&n)+40>>0]|0;if(!(t<<24>>24))break;a[(ua&n)+1>>0]=t}while(0);t=c[(va&p)>>2]|0;do if(!t)za=257;else{ea=a[(v&n)+36>>0]|0;c[(va&p)+4>>2]=ea;if((ea|0)!=(c[(t&p)>>2]|0))break;c[(va&p)>>2]=0;za=257}while(0);do if((za|0)==257){r=c[(R&p)>>2]|0;if((r|0)<=-1)break;zh(wa,r)}while(0);Ps(f,g,T,-1,va,ua,h,c[(v&p)+48>>2]|0,c[(v&p)+52>>2]|0);Xs(v)}else{z=(w|0)!=0;do if(z){l=c[(g&p)>>2]|0;k=c[(l&p)>>2]|0;if((k|0)>0){l=c[(l&p)+4>>2]|0;while(1){b[(l&o)+18>>1]=0;k=k+-1|0;if((k|0)<=0)break;else l=l+20|0}}k=c[(w&p)>>2]|0;if((k|0)>0){l=c[(w&p)+4>>2]|0;while(1){b[(l&o)+18>>1]=0;k=k+-1|0;if((k|0)<=0)break;else l=l+20|0}}ea=y;da=c[(ea&p)+4>>2]|0;if(!(da>>>0>0|(da|0)==0&(c[(ea&p)>>2]|0)>>>0>100))break;ea=y;c[(ea&p)>>2]=100;c[(ea&p)+4>>2]=0}else{ea=y;c[(ea&p)>>2]=1;c[(ea&p)+4>>2]=0}while(0);P=(Ts(w,c[(va&p)>>2]|0,-1)|0)==0;S=xs(wa)|0;c[(ma&p)>>2]=0;c[(ma&p)+4>>2]=0;c[(ma&p)+8>>2]=0;c[(ma&p)+12>>2]=0;c[(ma&p)+16>>2]=0;c[(ma&p)+20>>2]=0;c[(ma&p)+24>>2]=0;c[(ma&p)+28>>2]=0;c[(ma&p)>>2]=f;c[(ma&p)+4>>2]=U;c[(ma&p)+12>>2]=ya;K=f+72|0;c[(ya&p)+16>>2]=(c[(K&p)>>2]|0)+1;if(z)k=c[(w&p)>>2]|0;else k=0;y=ya+12|0;c[(y&p)>>2]=k;c[(ya&p)+24>>2]=w;Ys(ma,T);Ys(ma,c[(va&p)>>2]|0);if(ga){c[(ra&p)>>2]=0;c[(ra&p)+4>>2]=0;c[(ra&p)+8>>2]=0;c[(ra&p)+12>>2]=0;c[(ra&p)+16>>2]=0;c[(ra&p)+20>>2]=0;c[(ra&p)>>2]=80;c[(ra&p)+4>>2]=81;c[(ra&p)+24>>2]=ma;rs(ra,ga)|0}A=ya+32|0;c[(ya&p)+36>>2]=c[(A&p)>>2];r=ya+44|0;k=c[(r&p)>>2]|0;if((k|0)>0){x=ma+28|0;l=ya+40|0;m=b[(x&o)>>1]|0;q=0;do{b[(x&o)>>1]=m&65535|8;Ys(ma,c[((c[((c[(l&p)>>2]|0)+(q<<4)&p)>>2]|0)&p)+20>>2]|0);m=e[(x&o)>>1]&65527;b[(x&o)>>1]=m;q=q+1|0;k=c[(r&p)>>2]|0}while((q|0)<(k|0))}c[(ya&p)+20>>2]=c[(K&p)>>2];if(a[(pa&n)>>0]|0){za=444;break}if(z){I=f+68|0;H=c[(I&p)>>2]|0;c[(I&p)>>2]=H+1;v=ya+4|0;c[(v&p)>>2]=H;H=Us(f,w,0,c[(A&p)>>2]|0)|0;u=wh(wa,58,c[(v&p)>>2]|0,c[(y&p)>>2]|0,0)|0;xh(wa,u,H,-6);N=c[(K&p)>>2]|0;M=N+1|0;J=N+2|0;N=N+3|0;c[(K&p)>>2]=N;L=xs(wa)|0;Q=(c[(K&p)>>2]|0)+1|0;c[(K&p)>>2]=Q;O=xs(wa)|0;t=c[(K&p)>>2]|0;r=t+1|0;ea=c[(w&p)>>2]|0;da=ea+t|0;s=da+1|0;c[(K&p)>>2]=da+ea;wh(wa,25,0,J,0)|0;wh(wa,25,0,M,0)|0;wh(wa,28,0,r,(c[(w&p)>>2]|0)+t|0)|0;wh(wa,17,Q,O,0)|0;t=Vs(f,U,B,w,0,P?2304:256,0)|0;if(!t){za=444;break}if((a[(t&n)+36>>0]|0)==(c[(w&p)>>2]|0)){x=0;k=0;y=0}else{if(!(a[(ua&n)>>0]|0))k=34824;else k=(b[(ta&o)>>1]&1)==0?34808:34824;$s(f,k);D=c[(w&p)>>2]|0;k=c[(A&p)>>2]|0;if((k|0)>0){l=c[(ya&p)+28>>2]|0;m=0;y=D;x=D;do{if((c[(l+(m*24|0)&p)+12>>2]|0)>=(y|0)){y=y+1|0;x=x+1|0}m=m+1|0}while((m|0)<(k|0));F=x}else F=D;E=f+60|0;x=c[(E&p)>>2]|0;B=f+56|0;k=c[(B&p)>>2]|0;if((k|0)<(F|0)){C=c[(K&p)>>2]|0;c[(K&p)>>2]=C+F;C=C+1|0}else{c[(E&p)>>2]=x+F;c[(B&p)>>2]=k-F;C=x}at(f);bt(f,w,C,0);y=c[(A&p)>>2]|0;if((y|0)>0){m=ya+28|0;z=0;x=D;do{k=c[(m&p)>>2]|0;if((c[(k+(z*24|0)&p)+12>>2]|0)>=(x|0)){l=x+C|0;y=ct(f,c[(k+(z*24|0)&p)>>2]|0,c[(k+(z*24|0)&p)+8>>2]|0,c[(k+(z*24|0)&p)+4>>2]|0,l,0)|0;if((l|0)!=(y|0))wh(wa,34,y,l,0)|0;y=c[(A&p)>>2]|0;x=x+1|0}z=z+1|0}while((z|0)<(y|0))}y=f+19|0;x=a[(y&n)>>0]|0;if(!(x<<24>>24)){x=(c[(K&p)>>2]|0)+1|0;c[(K&p)>>2]=x}else{x=x+-1<<24>>24;a[(y&n)>>0]=x;x=c[(f+((x&255)<<2)&p)+24>>2]|0}wh(wa,49,C,F,x)|0;wh(wa,109,c[(v&p)>>2]|0,x,0)|0;_r(f,x);dt(f,C,F);if((c[(B&p)>>2]|0)<(F|0)){c[(B&p)>>2]=F;c[(E&p)>>2]=C}Xs(t);l=c[(I&p)>>2]|0;c[(I&p)>>2]=l+1;c[(ya&p)+8>>2]=l;k=a[(y&n)>>0]|0;if(!(k<<24>>24)){k=(c[(K&p)>>2]|0)+1|0;c[(K&p)>>2]=k}else{k=k+-1<<24>>24;a[(y&n)>>0]=k;k=c[(f+((k&255)<<2)&p)+24>>2]|0}wh(wa,60,l,k,F)|0;wh(wa,106,c[(v&p)>>2]|0,S,0)|0;a[(ya&n)+1>>0]=1;at(f);x=1;y=l}do if(P){if(b[(xa&o)+60>>1]&4)break;if((x|0)==0?(a[(t&n)+37>>0]|0)==0:0)break;c[(va&p)>>2]=0;zh(wa,c[(R&p)>>2]|0)}while(0);A=wa+32|0;q=c[(A&p)>>2]|0;at(f);x=(x|0)!=0;if(x)wh(wa,100,c[(v&p)>>2]|0,k,y)|0;k=c[(w&p)>>2]|0;if((k|0)>0){l=w+4|0;m=0;do{if(x)wh(wa,47,y,m,m+s|0)|0;else{a[(ya&n)>>0]=1;Rq(f,c[((c[(l&p)>>2]|0)+(m*20|0)&p)>>2]|0,m+s|0)}m=m+1|0;k=c[(w&p)>>2]|0}while((m|0)<(k|0))}if(H)c[(H&p)>>2]=(c[(H&p)>>2]|0)+1;xh(wa,wh(wa,42,r,s,k)|0,H,-6);k=c[(A&p)>>2]|0;ea=k+1|0;wh(wa,43,ea,0,ea)|0;w=c[(w&p)>>2]|0;wh(c[(f&p)+8>>2]|0,32,s,r,w)|0;dt(f,s,w);wh(wa,17,N,L,0)|0;wh(wa,137,J,S,0)|0;wh(wa,17,Q,O,0)|0;w=c[(A&p)>>2]|0;if(w>>>0>k>>>0)c[((c[(wa&p)+4>>2]|0)+(k*20|0)&p)+8>>2]=w;r=wa+24|0;c[((c[(r&p)>>2]|0)&p)+88>>2]=w+-1;et(f,ya);wh(wa,25,1,M,0)|0;if(x)wh(wa,5,c[(v&p)>>2]|0,q,0)|0;else{Xs(t);zh(wa,u)}wh(wa,17,N,L,0)|0;wh(wa,16,0,S,0)|0;m=c[(A&p)>>2]|0;wh(wa,25,1,J,0)|0;wh(wa,18,N,0,0)|0;k=c[(r&p)>>2]|0;l=~L;do if((L|0)<0){w=c[(k&p)+112>>2]|0;if(!w)break;c[(w+(l<<2)&p)>>2]=c[(A&p)>>2]}while(0);v=c[(A&p)>>2]|0;c[(k&p)+88>>2]=v+-1;wh(wa,137,M,v+2|0,0)|0;wh(wa,18,N,0,0)|0;ft(f,ya);v=v+1|0;gt(f,ga,v,16);Ps(f,g,c[(g&p)>>2]|0,-1,va,ua,h,v,m);wh(wa,18,N,0,0)|0;v=c[(r&p)>>2]|0;u=~O;do if((O|0)<0){t=c[(v&p)+112>>2]|0;if(!t)break;c[(t+(u<<2)&p)>>2]=c[(A&p)>>2]}while(0);c[(v&p)+88>>2]=(c[(A&p)>>2]|0)+-1;ht(f,ya);wh(wa,18,Q,0,0)|0}else{do if(!(c[(H&p)>>2]|0)){u=c[(g&p)>>2]|0;if((c[(u&p)>>2]|0)!=1){za=372;break}v=c[(na&p)>>2]|0;if((c[(v&p)>>2]|0)!=1){za=372;break}if(c[(v&p)+28>>2]|0){za=372;break}A=c[(v&p)+24>>2]|0;v=c[(c[(u&p)+4>>2]&p)>>2]|0;z=A+44|0;if(a[(z&n)>>0]&16){za=372;break}if((a[(v&n)>>0]|0)!=-101|(k|0)==0){za=372;break}y=ya+40|0;if(!(b[((c[((c[(y&p)>>2]|0)&p)+4>>2]|0)&o)+2>>1]&256)){za=372;break}if((A|0)==0?1:(c[(v&p)+4>>2]&16|0)!=0){za=372;break}v=c[(f&p)>>2]|0;k=c[(A&p)+68>>2]|0;i:do if(!k)u=-1e6;else{l=c[(v&p)+20>>2]|0;if((l|0)<=0){u=0;break}v=c[(v&p)+16>>2]|0;w=0;while(1){u=w+1|0;if((c[(v+(w<<4)&p)+12>>2]|0)==(k|0)){u=w;break i}if((u|0)<(l|0))w=u;else break}}while(0);w=f+68|0;q=c[(w&p)>>2]|0;c[(w&p)>>2]=q+1;w=A+32|0;k=c[(w&p)>>2]|0;Ar(f,u);gs(f,u,c[(w&p)>>2]|0,0,c[(A&p)>>2]|0);w=c[(A&p)+8>>2]|0;j:do if(!(a[(z&n)>>0]&32)){v=0;za=351}else{if(!w){l=1;m=0;w=0;break}else v=w;while(1){if((a[(v&n)+51>>0]&3)==2){za=351;break j}v=c[(v&p)+20>>2]|0;if(!v){v=0;za=351;break}}}while(0);do if((za|0)==351){if(w){m=A+42|0;l=w;do{do if(!(a[(l&n)+51>>0]&4)){w=b[(l&o)+44>>1]|0;if(w<<16>>16>=(b[(m&o)>>1]|0))break;if(c[(l&p)+36>>2]|0)break;if((v|0)!=0?w<<16>>16>=(b[(v&o)+44>>1]|0):0)break;v=l}while(0);l=c[(l&p)+20>>2]|0}while((l|0)!=0)}if(!v){l=1;m=0;w=0;break}k=c[(v&p)+40>>2]|0;l=0;m=v;w=hs(f,v)|0}while(0);xh(wa,wh(wa,54,q,k,u)|0,1,-14);if(w)xh(wa,-1,w,-6);wh(wa,50,q,c[((c[(y&p)>>2]|0)&p)+8>>2]|0,0)|0;wh(wa,61,q,0,0)|0;if((a[(f&n)+450>>0]|0)!=2){t=0;break}do if(l){v=c[(A&p)>>2]|0;u=10360;s=10360;t=c[(f&p)>>2]|0}else{if(a[(z&n)>>0]&32){ea=(a[(m&n)+51>>0]&3)!=2;t=c[(f&p)>>2]|0;v=c[(A&p)>>2]|0;u=ea?34920:10360;if(!ea){s=10360;break}}else{u=34920;v=c[(A&p)>>2]|0;t=c[(f&p)>>2]|0}s=c[(m&p)>>2]|0}while(0);c[(ra&p)>>2]=v;c[(ra&p)+4>>2]=u;c[(ra&p)+8>>2]=s;t=uh(t,34896,ra)|0;ea=c[(f&p)+8>>2]|0;xh(ea,wh(ea,157,c[(Aa&p)>>2]|0,0,0)|0,t,-1);t=0}else za=372;while(0);if((za|0)==372){do if((c[(I&p)>>2]|0)==0&(k|0)==1){t=c[(c[(ya&p)+40>>2]&p)>>2]|0;v=c[(t&p)+20>>2]|0;if(!v){t=0;s=0;break}if((c[(v&p)>>2]|0)!=1){t=0;s=0;break}if((a[(c[(c[(v&p)+4>>2]&p)>>2]&n)>>0]|0)!=-100){t=0;s=0;break}t=c[(t&p)+8>>2]|0;if(dd(t,18760)|0)if(!(dd(t,18768)|0))s=2;else{t=0;s=0;break}else s=1;t=Pr(xa,v,0)|0;if(!t){t=0;break}if(a[(pa&n)>>0]|0)break;ea=c[(t&p)+4>>2]|0;a[(ea&n)+12>>0]=s<<24>>24!=1&1;a[(c[(ea&p)>>2]&n)>>0]=-102}else{t=0;s=0}while(0);ht(f,ya);s=Vs(f,U,B,t,0,s&255,0)|0;if(!s){Nk(xa,t);za=444;break}et(f,ya);if((a[(s&n)+36>>0]|0)>0)wh(wa,16,0,c[(s&p)+52>>2]|0,0)|0;Xs(s);ft(f,ya)}c[(va&p)>>2]=0;gt(f,ga,S,16);Ps(f,g,c[(g&p)>>2]|0,-1,0,0,h,S,S);Nk(xa,t);r=wa+24|0}t=c[(r&p)>>2]|0;s=~S;do if((S|0)<0){r=c[(t&p)+112>>2]|0;if(!r)break;c[(r+(s<<2)&p)>>2]=c[(wa&p)+32>>2]}while(0);c[(t&p)+88>>2]=(c[(wa&p)+32>>2]|0)+-1}if((a[(ua&n)+1>>0]|0)==3)$s(f,34808);if(c[(va&p)>>2]|0){x=va+4|0;$s(f,(c[(x&p)>>2]|0)>0?34840:34864);A=c[(T&p)>>2]|0;v=f+8|0;H=c[(v&p)>>2]|0;I=xs(H)|0;F=xs(H)|0;q=c[(va&p)>>2]|0;m=a[(h&n)>>0]|0;B=m&255;C=h+4|0;D=c[(C&p)>>2]|0;y=va+16|0;w=c[(y&p)>>2]|0;if(w){wh(H,17,c[(va&p)+12>>2]|0,w,0)|0;wh(H,16,0,I,0)|0;ea=c[(y&p)>>2]|0;w=c[(H&p)+24>>2]|0;k=~ea;do if((ea|0)<0){l=c[(w&p)+112>>2]|0;if(!l)break;c[(l+(k<<2)&p)>>2]=c[(H&p)+32>>2]}while(0);c[(w&p)+88>>2]=(c[(H&p)+32>>2]|0)+-1}E=c[(va&p)+8>>2]|0;t=m<<24>>24==9;k:do if((m&-5)<<24>>24==9){s=A;u=c[(h&p)+8>>2]|0;k=0}else{w=f+19|0;k=a[(w&n)>>0]|0;do if(k<<24>>24){ea=k+-1<<24>>24;a[(w&n)>>0]=ea;l=c[(f+((ea&255)<<2)&p)+24>>2]|0;if(!(ea<<24>>24)){k=l;w=c[(f&p)+72>>2]|0;break}else{u=k+-2<<24>>24;a[(w&n)>>0]=u;s=1;u=c[(f+((u&255)<<2)&p)+24>>2]|0;k=l;break k}}else{k=f+72|0;w=(c[(k&p)>>2]|0)+1|0;c[(k&p)>>2]=w;k=w}while(0);u=w+1|0;c[(f&p)+72>>2]=u;s=1}while(0);r=(c[(q&p)>>2]|0)-(c[(x&p)>>2]|0)|0;z=va+24|0;if(!(a[(z&n)>>0]&1)){w=wh(H,107,E,I,0)|0;it(H,c[(g&p)+12>>2]|0,F);l=1;m=E}else{ea=f+72|0;m=(c[(ea&p)>>2]|0)+1|0;c[(ea&p)>>2]=m;ea=f+68|0;q=c[(ea&p)>>2]|0;c[(ea&p)>>2]=q+1;if(!(c[(y&p)>>2]|0))l=0;else{ea=Oq(f)|0;da=f+80|0;l=c[(da&p)>>2]|0;c[(da&p)>>2]=l+1;l=wh(ea,44,l,0,0)|0}wh(H,60,q,m,s+1+r|0)|0;if(l){w=c[(H&p)+32>>2]|0;if(w>>>0>l>>>0)c[((c[(H&p)+4>>2]|0)+(l*20|0)&p)+8>>2]=w;c[((c[(H&p)+24>>2]|0)&p)+88>>2]=w+-1}w=wh(H,106,E,I,0)|0;it(H,c[(g&p)+12>>2]|0,F);wh(H,100,E,m,q)|0;l=0;m=q}x=w+1|0;if((s|0)>0){w=l+r|0;l=0;do{wh(H,47,m,w+l|0,l+u|0)|0;l=l+1|0}while((l|0)!=(s|0))}do if((B|0)==12|(B|0)==14){wh(H,74,D,k,0)|0;wh(H,75,D,u,k)|0;t=c[(H&p)+4>>2]|0;if(!t)break;a[(t+(((c[(H&p)+32>>2]|0)+-1|0)*20|0)&n)+3>>0]=8}else if((B|0)==11){xh(H,wh(H,49,u,1,k)|0,h+1|0,1);dt(f,u,1);wh(H,110,D,k,0)|0}else if((B|0)!=10)if(t){ea=h+8|0;wh(H,35,c[(ea&p)>>2]|0,A,0)|0;dt(f,c[(ea&p)>>2]|0,A);break}else{wh(H,22,c[(C&p)>>2]|0,0,0)|0;break}else{wh(c[(v&p)>>2]|0,32,u,D,1)|0;dt(f,u,1)}while(0);if(k){_r(f,u);_r(f,k)}s=H+24|0;u=c[(s&p)>>2]|0;v=~F;do if((F|0)<0){t=c[(u&p)+112>>2]|0;if(!t)break;c[(t+(v<<2)&p)>>2]=c[(H&p)+32>>2]}while(0);v=H+32|0;c[(u&p)+88>>2]=(c[(v&p)>>2]|0)+-1;if(!(a[(z&n)>>0]&1))wh(H,9,E,x,0)|0;else wh(H,5,E,x,0)|0;r=c[(va&p)+12>>2]|0;if(r)wh(H,18,r,0,0)|0;r=c[(s&p)>>2]|0;q=~I;do if((I|0)<0){m=c[(r&p)+112>>2]|0;if(!m)break;c[(m+(q<<2)&p)>>2]=c[(v&p)>>2]}while(0);c[(r&p)+88>>2]=(c[(v&p)>>2]|0)+-1}l=c[(wa&p)+24>>2]|0;m=~qa;do if((qa|0)<0){k=c[(l&p)+112>>2]|0;if(!k)break;c[(k+(m<<2)&p)>>2]=c[(wa&p)+32>>2]}while(0);c[(l&p)+88>>2]=(c[(wa&p)+32>>2]|0)+-1;c[(Aa&p)>>2]=Ba;if((a[(h&n)>>0]|0)!=9){k=0;break}Ns(f,U,T);k=0}else za=444;while(0);if((za|0)==444){c[(Aa&p)>>2]=Ba;k=1}mg(xa,c[(ya&p)+28>>2]|0);mg(xa,c[(ya&p)+40>>2]|0)}else k=1;while(0);i=Ca;return k|0}function jr(a,b,d,e,f,g,h,k){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;var l=0,m=0,n=0,o=0,q=0,r=0;r=i;i=i+16|0;if((i|0)>=(j|0))fa();m=r;o=c[(a&p)>>2]|0;if((b|0)==0?(l=(h|0)!=0,l|(k|0)!=0):0){c[(m&p)>>2]=l?34792:34800;th(a,34752,m);q=9}else{b=pr(o,b,d,e)|0;if((b|0)!=0?(n=c[(b&p)>>2]|0,(n|0)!=0):0){l=n+-1|0;if(c[(f&p)+4>>2]|0)c[(b+(l*72|0)&p)+20>>2]=Wq(o,f)|0;c[(b+(l*72|0)&p)+28>>2]=g;c[(b+(l*72|0)&p)+52>>2]=h;c[(b+(l*72|0)&p)+56>>2]=k}else q=9}if((q|0)==9){Gk(o,h);Hk(o,k);Mk(o,g,1);b=0}i=r;return b|0}function kr(d,e,f,g,h,k,l,m,q,r){d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;m=m|0;q=q|0;r=r|0;var s=0,t=0,u=0,v=0,w=0,x=0,y=0;y=i;i=i+80|0;if((i|0)>=(j|0))fa();t=y+72|0;x=y;w=c[(d&p)>>2]|0;s=mh(w,72,0)|0;if(!s){u=x+0|0;v=u+72|0;do{c[(u&p)>>2]=0;u=u+4|0}while((u|0)<(v|0));s=x}else{u=s+0|0;v=u+72|0;do{a[(u&n)>>0]=0;u=u+1|0}while((u|0)<(v|0))}if(!e){c[(t&p)>>2]=0;c[(t&p)+4>>2]=0;e=lr(d,0,nr(w,116,t,0)|0)|0}c[(s&p)>>2]=e;if(!f){f=mh(w,80,0)|0;if(f){u=f+0|0;v=u+80|0;do{a[(u&n)>>0]=0;u=u+1|0}while((u|0)<(v|0))}}c[(s&p)+32>>2]=f;c[(s&p)+36>>2]=g;c[(s&p)+40>>2]=h;c[(s&p)+44>>2]=k;c[(s&p)+48>>2]=l;b[(s&o)+6>>1]=m;a[(s&n)+4>>0]=119;c[(s&p)+60>>2]=q;c[(s&p)+64>>2]=r;c[(s&p)+16>>2]=-1;c[(s&p)+20>>2]=-1;if(a[(w&n)+65>>0]|0){Mk(w,s,(s|0)!=(x|0)&1);s=0}i=y;return s|0}function lr(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0;g=c[(b&p)>>2]|0;if(!d){d=mh(g,8,0)|0;if(d){b=d;f=b;a[(f&n)>>0]=0;a[(f&n)+1>>0]=0;a[(f&n)+2>>0]=0;a[(f&n)+3>>0]=0;b=b+4|0;a[(b&n)>>0]=0;a[(b&n)+1>>0]=0;a[(b&n)+2>>0]=0;a[(b&n)+3>>0]=0;b=mh(g,20,0)|0;c[(d&p)+4>>2]=b;if(!b)f=8;else f=7}else{d=0;f=8}}else{b=c[(d&p)>>2]|0;if(!(b+-1&b)){f=d+4|0;b=ro(g,c[(f&p)>>2]|0,b*40|0,0)|0;if(!b)f=8;else{c[(f&p)>>2]=b;f=7}}else f=7}if((f|0)==7){b=c[(d&p)>>2]|0;c[(d&p)>>2]=b+1;b=(c[(d&p)+4>>2]|0)+(b*20|0)|0;c[(b&p)>>2]=0;c[(b&p)+4>>2]=0;c[(b&p)+8>>2]=0;c[(b&p)+12>>2]=0;c[(b&p)+16>>2]=0;c[(b&p)>>2]=e}else if((f|0)==8){Gk(g,e);Nk(g,d);d=0}return d|0}function mr(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0;do if(d){j=(c[(d&p)>>2]|0)+-1|0;g=c[(d&p)+4>>2]|0;h=c[(e&p)>>2]|0;d=c[(e&p)+4>>2]|0;if((h|0)!=0?(e=c[(b&p)>>2]|0,i=jw(d|0,0,1,0)|0,i=mh(e,i,G)|0,(i|0)!=0):0){kw(i|0,h|0,d|0)|0;a[(i+d&n)>>0]=0;c[(g+(j*20|0)&p)+4>>2]=i;if(!f)break;lo(i);break}c[(g+(j*20|0)&p)+4>>2]=0}while(0);return}function nr(d,e,f,g){d=d|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,q=0,r=0,s=0,t=0;t=i;i=i+16|0;if((i|0)>=(j|0))fa();m=t;c[(m&p)>>2]=0;k=(f|0)!=0;do if(k){if(((e|0)==132?(h=c[(f&p)>>2]|0,(h|0)!=0):0)?(Dn(h,m)|0)!=0:0){r=0;break}r=(c[(f&p)+4>>2]|0)+1|0}else r=0;while(0);l=r+48|0;q=mh(d,l,0)|0;if(q){fw(q|0,0,l|0)|0;a[(q&n)>>0]=e;b[(q&o)+34>>1]=-1;do if(k){if(!r){g=q+4|0;c[(g&p)>>2]=c[(g&p)>>2]|1024;c[(q&p)+8>>2]=c[(m&p)>>2];break}h=q+48|0;l=q+8|0;c[(l&p)>>2]=h;k=f+4|0;d=c[(k&p)>>2]|0;if(!d)h=48;else{kw(h|0,c[(f&p)>>2]|0,d|0)|0;h=(c[(k&p)>>2]|0)+48|0}a[(q+h&n)>>0]=0;if(((g|0)!=0&(r|0)>2?(g=a[(c[(f&p)>>2]&n)>>0]|0,s=g<<24>>24==34,g<<24>>24==34|g<<24>>24==39|g<<24>>24==91|g<<24>>24==96):0)?(lo(c[(l&p)>>2]|0),s):0){g=q+4|0;c[(g&p)>>2]=c[(g&p)>>2]|64}}while(0);c[(q&p)+24>>2]=1}i=t;return q|0}function or(b,d,e){b=b|0;d=d|0;e=e|0;var f=0;do if((d|0)!=0?(f=c[(d&p)>>2]|0,(f|0)>0):0){f=f+-1|0;if((c[(e&p)+4>>2]|0)==1?(c[(e&p)>>2]|0)==0:0){f=d+(f*72|0)+45|0;a[(f&n)>>0]=a[(f&n)>>0]|1;break}c[(d+(f*72|0)&p)+72>>2]=Wq(c[(b&p)>>2]|0,e)|0}while(0);return}function pr(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0;if(!d){d=mh(b,80,0)|0;if(!d)d=0;else{h=d+0|0;g=h+80|0;do{a[(h&n)>>0]=0;h=h+1|0}while((h|0)<(g|0));c[(d&p)+4>>2]=1;h=4}}else h=4;do if((h|0)==4){d=Fs(b,d,1,c[(d&p)>>2]|0)|0;if(a[(b&n)+65>>0]|0){Do(b,d);d=0;break}h=(c[(d&p)>>2]|0)+-1|0;if(!f)g=0;else g=(c[(f&p)>>2]|0)==0?0:f;f=(g|0)==0;c[(d+(h*72|0)&p)+16>>2]=Wq(b,f?e:g)|0;c[(d+(h*72|0)&p)+12>>2]=Wq(b,f?0:e)|0}while(0);return d|0}function qr(a,b,e,f){a=a|0;b=b|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,o=0,q=0,r=0,s=0;s=i;i=i+32|0;if((i|0)>=(j|0))fa();q=s;m=s+16|0;c[(m&p)>>2]=b;c[(m&p)+4>>2]=e;c[(m&p)+8>>2]=f;l=b;o=1;g=0;a:while(1){if(!l)break;k=c[(l&p)+4>>2]|0;h=0;while(1){if((k|0)==(d[((h*3|0)&n)+34625>>0]|0|0)?(Fc(c[(l&p)>>2]|0,34584+(d[((h*3|0)&n)+34624>>0]|0)|0,k)|0)==0:0)break;h=h+1|0;if((h|0)>=7){r=10;break a}}g=d[((h*3|0)&n)+34626>>0]|0|g;if((h|0)>6){r=10;break}if((o|0)>=3)break;l=c[(m+(o<<2)&p)>>2]|0;o=o+1|0}if((r|0)==10)g=g|64;if((g&33|0)!=33&(g&64|0)==0){if(!((g&32|0)==0|(g&24|0)==8)){th(a,34696,q);g=1}}else{c[(q&p)>>2]=b;c[(q&p)+4>>2]=e;c[(q&p)+8>>2]=(f|0)==0?20377|0:20376;c[(q&p)+12>>2]=f;th(a,34648,q);g=1}i=s;return g|0}function rr(e,f,g){e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=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;T=i;i=i+48|0;if((i|0)>=(j|0))fa();Q=T+36|0;R=T+32|0;r=T;c[(Q&p)>>2]=0;c[(R&p)>>2]=0;S=c[(e&p)>>2]|0;if(((((c[(e&p)+64>>2]|0)==0?(a[(S&n)+65>>0]|0)==0:0)?(H=Jr(e,f)|0,(H|0)!=0):0)?(G=jt(e,H,109,0,0)|0,P=(c[(H&p)+12>>2]|0)!=0,(hr(e,H)|0)==0):0)?(t=(G|0)!=0,(kt(e,H,t&1)|0)==0):0){l=c[(H&p)+68>>2]|0;a:do if(l){k=c[(S&p)+20>>2]|0;if((k|0)>0){h=c[(S&p)+16>>2]|0;q=0;while(1){m=q+1|0;if((c[(h+(q<<4)&p)+12>>2]|0)==(l|0)){m=q;break a}if((m|0)<(k|0))q=m;else break}}else m=0}else m=-1e6;while(0);h=Sq(e,9,c[(H&p)>>2]|0,0,c[((c[(S&p)+16>>2]|0)+(m<<4)&p)>>2]|0)|0;if((h|0)!=1){s=e+68|0;C=c[(s&p)>>2]|0;u=C+1|0;c[(s&p)>>2]=u;c[(f&p)+48>>2]=C;I=H+8|0;l=c[(I&p)>>2]|0;if(!l)q=0;else{k=u;q=0;do{k=k+1|0;c[(s&p)>>2]=k;q=q+1|0;l=c[(l&p)+20>>2]|0}while((l|0)!=0)}if(P){N=e+492|0;O=c[(N&p)>>2]|0;c[(N&p)>>2]=c[(H&p)>>2];N=e}else{N=0;O=0}L=Oq(e)|0;b:do if(L){M=e+18|0;if(!(a[(M&n)>>0]|0)){E=L+88|0;b[(E&o)>>1]=b[(E&o)>>1]|4}D=e+408|0;E=c[(D&p)>>2]|0;E=(E|0)==0?e:E;Ar(e,m);B=E+328|0;c[(B&p)>>2]=c[(B&p)>>2]|1<>0]=d[(E&n)>>0]|1;if(P){lt(e,H,g,C);c[(R&p)>>2]=C;c[(Q&p)>>2]=C};c[(r&p)>>2]=0;c[(r&p)+4>>2]=0;c[(r&p)+8>>2]=0;c[(r&p)+12>>2]=0;c[(r&p)+16>>2]=0;c[(r&p)+20>>2]=0;c[(r&p)+24>>2]=0;c[(r&p)+28>>2]=0;c[(r&p)>>2]=e;c[(r&p)+4>>2]=f;if(!(ls(r,g)|0)){J=S+24|0;if(!(c[(J&p)>>2]&128))K=-1;else{E=e+72|0;K=(c[(E&p)>>2]|0)+1|0;c[(E&p)>>2]=K;wh(L,25,0,K,0)|0}E=H+44|0;do if((!((g|0)!=0|(h|0)!=0|t)?(a[(E&n)>>0]&16)==0:0)?(mt(e,H,0,0)|0)==0:0){l=H+32|0;gs(e,m,c[(l&p)>>2]|0,1,c[(H&p)>>2]|0);if(!(a[(E&n)>>0]&32)){H=c[(H&p)>>2]|0;xh(L,wh(L,118,c[(l&p)>>2]|0,m,K)|0,H,-2)}h=c[(I&p)>>2]|0;if(!h){h=0;break}do{wh(L,118,c[(h&p)+40>>2]|0,m,0)|0;h=c[(h&p)+20>>2]|0}while((h|0)!=0);h=0}else F=31;while(0);do if((F|0)==31){if(!(a[(E&n)>>0]&32)){v=e+72|0;z=(c[(v&p)>>2]|0)+1|0;c[(v&p)>>2]=z;wh(L,28,0,z,0)|0;v=0;A=0;h=0;x=1;m=0}else{m=c[(I&p)>>2]|0;c:do if(!m)m=0;else while(1){if((a[(m&n)+51>>0]&3)==2)break c;m=c[(m&p)+20>>2]|0;if(!m){m=0;break}}while(0);x=b[(m&o)+46>>1]|0;A=e+72|0;h=c[(A&p)>>2]|0;v=x<<16>>16;c[(A&p)>>2]=h+v;A=c[(s&p)>>2]|0;c[(s&p)>>2]=A+1;v=wh(L,57,A,v,0)|0;z=c[(e&p)+8>>2]|0;xh(z,-1,hs(e,m)|0,-6);h=h+1|0;z=0}w=Vs(e,f,g,0,0,12,u)|0;if(!w){h=0;break b}u=w+60|0;t=c[(u&p)>>2]|0;u=c[(u&p)+4>>2]|0;y=a[(w&n)+38>>0]|0;if(c[(J&p)>>2]&128)wh(L,37,K,1,0)|0;B=(m|0)!=0;do if(B){if(x<<16>>16<=0){k=h;break}r=m+4|0;l=x<<16>>16;s=0;do{nt(L,H,C,b[((c[(r&p)>>2]|0)+(s<<1)&o)>>1]|0,s+h|0);s=s+1|0}while((s|0)!=(l|0));k=h}else{l=e+72|0;k=ct(e,H,-1,C,(c[(l&p)>>2]|0)+1|0,0)|0;if((k|0)<=(c[(l&p)>>2]|0))break;c[(l&p)>>2]=k}while(0);r=y<<24>>24!=0;do if(!r)if(B){l=e+72|0;k=(c[(l&p)>>2]|0)+1|0;c[(l&p)>>2]=k;l=x<<16>>16;s=ot(L,m)|0;xh(L,wh(L,49,h,l,k)|0,s,l);wh(L,110,A,k,0)|0;h=0;l=0;s=0;F=59;break}else{wh(L,128,z,k,0)|0;Xs(w);h=0;u=0;m=1;break}else{h=q+2|0;h=mh(S,h,((h|0)<0)<<31>>31)|0;if(!h){Xs(w);h=0;break b}F=q+1|0;fw(h|0,1,F|0)|0;a[(h+F&n)>>0]=0;if((t|0)>-1)a[(h+(t-C)&n)>>0]=0;if((u|0)>-1)a[(h+(u-C)&n)>>0]=0;if(v)zh(L,v);l=wh(L,16,0,0,0)|0;s=x;F=59}while(0);do if((F|0)==59){Xs(w);if(!r){u=0;m=s;break}m=xs(L)|0;wh(L,16,0,m,0)|0;q=c[(L&p)+32>>2]|0;if(q>>>0>l>>>0)c[((c[(L&p)+4>>2]|0)+(l*20|0)&p)+8>>2]=q;c[((c[(L&p)+24>>2]|0)&p)+88>>2]=q+-1;u=m;m=s}while(0);if(!P)pt(e,H,55,C,h,Q,R)|0;do if(!r)if(B){l=wh(L,108,A,0,0)|0;wh(L,101,A,k,0)|0;break}else{l=wh(L,129,z,0,k)|0;break}else{q=c[(Q&p)>>2]|0;if(!(a[(h+(q-C)&n)>>0]|0)){l=0;break}xh(L,wh(L,68,q,u,k)|0,m<<16>>16,-14);l=0}while(0);if(!(a[(E&n)>>0]&16))rt(e,H,G,c[(Q&p)>>2]|0,c[(R&p)>>2]|0,k,m,(a[(M&n)>>0]|0)==0&1,10,y);else{q=c[(H&p)+60>>2]|0;d:do if(!q)q=0;else while(1){if((c[(q&p)>>2]|0)==(S|0))break d;q=c[(q&p)+24>>2]|0;if(!q){q=0;break}}while(0);qt(e,H);xh(L,wh(L,15,0,1,k)|0,q,-10);q=c[(L&p)+4>>2]|0;if(q)a[(q+(((c[(L&p)+32>>2]|0)+-1|0)*20|0)&n)+3>>0]=2;H=c[(D&p)>>2]|0;a[(((H|0)==0?e:H)&n)+21>>0]=1}do if(!r)if(B){wh(L,9,A,l+1|0,0)|0;q=c[(L&p)+32>>2]|0;if(q>>>0>l>>>0)c[((c[(L&p)+4>>2]|0)+(l*20|0)&p)+8>>2]=q;c[((c[(L&p)+24>>2]|0)&p)+88>>2]=q+-1;break}else{wh(L,16,0,l,0)|0;q=c[(L&p)+32>>2]|0;if(q>>>0>l>>>0)c[((c[(L&p)+4>>2]|0)+(l*20|0)&p)+8>>2]=q;c[((c[(L&p)+24>>2]|0)&p)+88>>2]=q+-1;break}else{m=c[(L&p)+24>>2]|0;l=~u;do if((u|0)<0){q=c[(m&p)+112>>2]|0;if(!q)break;c[(q+(l<<2)&p)>>2]=c[(L&p)+32>>2]}while(0);c[(m&p)+88>>2]=(c[(L&p)+32>>2]|0)+-1}while(0);if(P)break;if(a[(E&n)>>0]&16)break;if(!B)wh(L,61,c[(Q&p)>>2]|0,0,0)|0;k=c[(I&p)>>2]|0;if(!k)break;else l=0;while(1){wh(L,61,(c[(R&p)>>2]|0)+l|0,0,0)|0;k=c[(k&p)+20>>2]|0;if(!k)break;else l=l+1|0}}while(0);if((a[(M&n)>>0]|0)==0?(c[(e&p)+412>>2]|0)==0:0)st(e);if((c[(J&p)>>2]&128|0)!=0?(a[(M&n)>>0]|0)==0:0){if(c[(e&p)+412>>2]|0)break;wh(L,35,K,1,0)|0;iq(L,1);if(a[((c[(L&p)>>2]|0)&n)+65>>0]|0)break;Xg(c[(L&p)+16>>2]|0,34568,-1,1,0)|0}}else h=0}else h=0;while(0);if(N)c[(N&p)+492>>2]=O}else h=0}else h=0;Do(S,f);Gk(S,g);mg(S,h);i=T;return}function sr(e,f,g,h,k){e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;var l=0,m=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,ga=0,ha=0,ia=0,ja=0,ka=0,la=0,ma=0;ma=i;i=i+64|0;if((i|0)>=(j|0))fa();T=ma;Y=ma+32|0;ea=ma+24|0;ha=ma+20|0;la=c[(e&p)>>2]|0;a:do if(((c[(e&p)+64>>2]|0)==0?(a[(la&n)+65>>0]|0)==0:0)?(ka=Jr(e,f)|0,(ka|0)!=0):0){m=c[(e&p)>>2]|0;r=c[(ka&p)+68>>2]|0;b:do if(r){s=c[(m&p)+20>>2]|0;if((s|0)>0){m=c[(m&p)+16>>2]|0;q=0;while(1){l=q+1|0;if((c[(m+(q<<4)&p)+12>>2]|0)==(r|0))break b;if((l|0)<(s|0))q=l;else{q=l;break}}}else q=0}else q=-1e6;while(0);ga=jt(e,ka,110,g,ea)|0;ca=(c[(ka&p)+12>>2]|0)!=0;if((hr(e,ka)|0)==0?(kt(e,ka,c[(ea&p)>>2]|0)|0)==0:0){_=e+68|0;$=c[(_&p)>>2]|0;ia=$+1|0;c[(_&p)>>2]=ia;r=f+48|0;c[(r&p)>>2]=$;K=ka+44|0;u=c[(ka&p)+8>>2]|0;c:do if(!(a[(K&n)>>0]&32)){s=0;ba=16}else{if(!u){w=ka+8|0;s=0;t=$;v=0;break}else s=u;while(1){if((a[(s&n)+51>>0]&3)==2){ba=16;break c}s=c[(s&p)+20>>2]|0;if(!s){s=0;ba=16;break}}}while(0);if((ba|0)==16){w=ka+8|0;if(!u){t=$;v=0}else{l=(s|0)!=0;m=ia;t=$;v=0;do{if((a[(u&n)+51>>0]&3)==2&l){c[(r&p)>>2]=m;t=m}m=m+1|0;c[(_&p)>>2]=m;v=v+1|0;u=c[(u&p)+20>>2]|0}while((u|0)!=0)}}ja=ka+38|0;l=mh(la,v+2+((b[(ja&o)>>1]|0)+v<<2)|0,0)|0;if(l){I=b[(ja&o)>>1]|0;aa=l+(I<<2)|0;da=l+(I+v<<2)|0;Z=v+1|0;fw(da|0,1,Z|0)|0;a[(da+Z&n)>>0]=0;v=b[(ja&o)>>1]|0;if(v<<16>>16>0)fw(l|0,-1,(v<<16>>16>1?v<<16>>16<<2:4)|0)|0;c[(Y&p)>>2]=0;c[(Y&p)+4>>2]=0;c[(Y&p)+8>>2]=0;c[(Y&p)+12>>2]=0;c[(Y&p)+16>>2]=0;c[(Y&p)+20>>2]=0;c[(Y&p)+24>>2]=0;c[(Y&p)+28>>2]=0;c[(Y&p)>>2]=e;c[(Y&p)+4>>2]=f;d:do if((c[(g&p)>>2]|0)>0){E=g+4|0;D=ka+4|0;C=la+16|0;F=(s|0)==0;G=ka+36|0;y=0;x=0;H=0;m=0;while(1){if(ls(Y,c[((c[(E&p)>>2]|0)+(H*20|0)&p)>>2]|0)|0)break a;A=b[(ja&o)>>1]|0;e:do if(A<<16>>16>0){v=c[(D&p)>>2]|0;B=c[(E&p)>>2]|0;r=c[(B+(H*20|0)&p)+4>>2]|0;u=0;while(1){z=u+1|0;if(!(dd(c[(v+(u*24|0)&p)>>2]|0,r)|0))break;if((z|0)<(A<<16>>16|0))u=z;else{u=z;r=m;break e}}if((u|0)!=(b[(G&o)>>1]|0)){if(!F)y=(a[(v+(u*24|0)&n)+23>>0]&1)==0?y:1}else{x=1;m=c[(B+(H*20|0)&p)>>2]|0}c[(l+(u<<2)&p)>>2]=H;r=m}else{u=0;r=m}while(0);if((u|0)<(A<<16>>16|0)){m=c[(ka&p)>>2]|0;if((u|0)<0)v=12944;else v=c[((c[(D&p)>>2]|0)+(u*24|0)&p)>>2]|0}else{r=c[(E&p)>>2]|0;m=c[(r+(H*20|0)&p)+4>>2]|0;if(!F)break;if(!($h(m)|0))break;m=c[(ka&p)>>2]|0;v=12944;x=1;u=-1;r=c[(r+(H*20|0)&p)>>2]|0}m=Sq(e,23,m,v,c[((c[(C&p)>>2]|0)+(q<<4)&p)>>2]|0)|0;if((m|0)==2)c[(l+(u<<2)&p)>>2]=-1;else if((m|0)==1)break a;H=H+1|0;if((H|0)>=(c[(g&p)>>2]|0)){R=r;break d}else m=r}c[(T&p)>>2]=m;th(e,34496,T);a[(e&n)+17>>0]=1;break a}else{y=0;x=0;R=0}while(0);X=(y&255)+(x&255)|0;U=X&255;C=f+64|0;c[(C&p)>>2]=0;c[(C&p)+4>>2]=0;X=X&255;C=mt(e,ka,l,X)|0;m=c[(w&p)>>2]|0;if(m){z=(C|X|0)==0;A=e+72|0;B=0;while(1){f:do if(z?!((c[(m&p)+36>>2]|0)!=0|(m|0)==(s|0)):0){r=b[(m&o)+46>>1]|0;if(!(r<<16>>16))ba=56;else{u=c[(m&p)+4>>2]|0;v=0;while(1){if((c[(l+(b[(u+(v<<1)&o)>>1]<<2)&p)>>2]|0)>-1){ba=54;break f}v=v+1|0;if((v|0)>=(r&65535|0)){ba=56;break}}}}else ba=54;while(0);if((ba|0)==54){ba=0;r=(c[(A&p)>>2]|0)+1|0;c[(A&p)>>2]=r;if(!r)ba=56;else u=B+1|0}if((ba|0)==56){ba=0;u=B+1|0;a[(da+u&n)>>0]=0;r=0}c[(l+(B+I<<2)&p)>>2]=r;m=c[(m&p)+20>>2]|0;if(!m)break;else B=u}}V=Oq(e)|0;if(V){W=e+18|0;if(!(a[(W&n)>>0]|0)){S=V+88|0;b[(S&o)>>1]=b[(S&o)>>1]|4}H=e+408|0;S=c[(H&p)>>2]|0;S=(S|0)==0?e:S;Ar(e,q);Q=S+328|0;c[(Q&p)>>2]=c[(Q&p)>>2]|1<>0]=d[(S&n)>>0]|1;if(a[(K&n)>>0]&16){x=c[(e&p)+8>>2]|0;y=c[(e&p)>>2]|0;m=c[(ka&p)+60>>2]|0;g:do if(!m)m=0;else while(1){if((c[(m&p)>>2]|0)==(y|0))break g;m=c[(m&p)+24>>2]|0;if(!m){m=0;break}}while(0);q=lr(e,0,tt(y,27,34536)|0)|0;w=(R|0)!=0;if(w)q=lr(e,q,Mr(y,R,0,0)|0)|0;if((b[(ja&o)>>1]|0)>0){r=g+4|0;t=ka+4|0;u=0;do{s=c[(l+(u<<2)&p)>>2]|0;if((s|0)>-1)s=Mr(y,c[((c[(r&p)>>2]|0)+(s*20|0)&p)>>2]|0,0,0)|0;else s=tt(y,27,c[((c[(t&p)>>2]|0)+(u*24|0)&p)>>2]|0)|0;q=lr(e,q,s)|0;u=u+1|0}while((u|0)<(b[(ja&o)>>1]|0))}t=kr(e,q,f,h,0,0,0,0,0,0)|0;v=c[(_&p)>>2]|0;c[(_&p)>>2]=v+1;f=w&1;wh(x,57,v,(b[(ja&o)>>1]|0)+(w?2:1)|0,0)|0;u=x+4|0;h=c[(u&p)>>2]|0;if(h)a[(h+(((c[(x&p)+32>>2]|0)+-1|0)*20|0)&n)+3>>0]=8;a[(T&n)>>0]=14;c[(T&p)+4>>2]=v;a[(T&n)+1>>0]=0;c[(T&p)+8>>2]=0;c[(T&p)+12>>2]=0;ir(e,t,T)|0;h=e+72|0;s=c[(h&p)>>2]|0;q=s+1|0;da=s+2|0;c[(h&p)>>2]=(b[(ja&o)>>1]|0)+da;h=wh(x,108,v,0,0)|0;wh(x,47,v,0,q)|0;wh(x,47,v,f,da)|0;if((b[(ja&o)>>1]|0)>0){s=s+3|0;r=0;do{da=r;r=r+1|0;wh(x,47,v,r+f|0,s+da|0)|0}while((r|0)<(b[(ja&o)>>1]|0))}qt(e,ka);xh(x,wh(x,15,0,(b[(ja&o)>>1]|0)+2|0,q)|0,m,-10);m=c[(u&p)>>2]|0;if(!m)m=x+32|0;else{da=x+32|0;a[(m+(((c[(da&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=(k|0)==10?2:k&255;m=da}da=c[(H&p)>>2]|0;a[(((da|0)==0?e:da)&n)+21>>0]=1;wh(x,9,v,h+1|0,0)|0;m=c[(m&p)>>2]|0;if(m>>>0>h>>>0)c[((c[(u&p)>>2]|0)+(h*20|0)&p)+8>>2]=m;c[((c[(x&p)+24>>2]|0)&p)+88>>2]=m+-1;wh(x,61,v,0,0)|0;Mk(y,t,1);h=0;f=0;break}H=e+72|0;m=c[(H&p)>>2]|0;G=m+1|0;Q=m+2|0;c[(H&p)>>2]=Q;I=y<<24>>24!=0;J=(ga|0)!=0;P=(C|0)!=0;if(I|J|P){q=(b[(ja&o)>>1]|0)+Q|0;c[(H&p)>>2]=q;L=m+3|0}else{q=Q;L=0}N=(X|0)!=0;if(N|J|P){O=q+1|0;c[(H&p)>>2]=O;q=O}else O=Q;M=q+1|0;c[(H&p)>>2]=(b[(ja&o)>>1]|0)+q;if(ca){S=e+492|0;T=c[(S&p)>>2]|0;c[(S&p)>>2]=c[(ka&p)>>2];lt(e,ka,h,t);S=e}else{S=0;T=0}do if(!(ls(Y,h)|0)){if(!(a[(K&n)>>0]&32)){wh(V,28,0,G,Q)|0;y=Vs(e,f,h,0,0,4,ia)|0;if(!y)break;A=y+60|0;m=c[(A&p)>>2]|0;A=c[(A&p)+4>>2]|0;B=a[(y&n)+38>>0]|0;wh(V,103,t,Q,0)|0;if(!(B<<24>>24))wh(V,128,G,Q,0)|0;Xs(y);D=0;C=0;z=B&255;E=0}else{B=b[(s&o)+46>>1]|0;y=c[(H&p)>>2]|0;u=y+1|0;C=B<<16>>16;y=C+1+y|0;c[(H&p)>>2]=y;D=c[(_&p)>>2]|0;c[(_&p)>>2]=D+1;wh(V,28,0,u,0)|0;q=wh(V,57,D,C,0)|0;v=c[(e&p)+8>>2]|0;xh(v,-1,hs(e,s)|0,-6);v=Vs(e,f,h,0,0,4,ia)|0;if(!v)break;A=v+60|0;m=c[(A&p)>>2]|0;A=c[(A&p)+4>>2]|0;r=a[(v&n)+38>>0]|0;E=r&255;if(B<<16>>16>0){B=s+4|0;z=0;do{nt(V,ka,t,b[((c[(B&p)>>2]|0)+(z<<1)&o)>>1]|0,z+u|0);z=z+1|0}while((z|0)!=(C|0))}if(!(r<<24>>24)){B=ot(V,s)|0;xh(V,wh(V,49,u,C,y)|0,B,C);wh(V,110,D,y,0)|0;B=0}else{zh(V,q);B=C;y=u}Xs(v);C=B;z=E;E=y}K=la+24|0;do if(!(c[(K&p)>>2]&128))v=0;else{if(c[(e&p)+412>>2]|0){v=0;break}v=(c[(H&p)>>2]|0)+1|0;c[(H&p)>>2]=v;wh(V,25,0,v,0)|0}while(0);u=xs(V)|0;if(!ca){h:do if((k|0)==5)fw(da|0,1,Z|0)|0;else{B=c[(w&p)>>2]|0;if(!B)break;while(1){if((a[(B&n)+50>>0]|0)==5)break;B=c[(B&p)+20>>2]|0;if(!B)break h}fw(da|0,1,Z|0)|0}while(0);do if(z){if((m|0)>-1)a[(da+(m-$)&n)>>0]=0;if((A|0)<=-1)break;a[(da+(A-$)&n)>>0]=0}while(0);pt(e,ka,55,$,da,0,0)|0}H=(z|0)!=0;do if(!H)if(!s){G=wh(V,129,G,u,Q)|0;wh(V,70,t,G,Q)|0;F=0;break}else{G=xs(V)|0;wh(V,108,D,u,0)|0;F=wh(V,101,D,E,0)|0;xh(V,wh(V,68,t,G,E)|0,0,-14);break}else{if(!((a[(da+(t-$)&n)>>0]|0)==0|ca))xh(V,wh(V,68,t,u,E)|0,C,-14);wh(V,76,(s|0)!=0?E:Q,u,0)|0;F=0;G=u}while(0);x=x<<24>>24==0;if(!x){Rq(e,R,O);wh(V,38,O,0,0)|0}do if(I|P|J){if(P)y=ut(e,ka)|0;else y=0;B=vt(e,ga,g,0,3,ka,k)|0|y;if((b[(ja&o)>>1]|0)>0){A=(B|0)==-1;z=ka+4|0;y=0;do{do if(A)ba=138;else{if((y|0)<32?(1<>2]|0)+(y*24|0)&n)+23>>0]&1){ba=138;break}wh(V,28,0,y+L|0,0)|0}while(0);if((ba|0)==138){ba=0;nt(V,ka,t,y,y+L|0)}y=y+1|0}while((y|0)<(b[(ja&o)>>1]|0))}if(!(x&(s|0)==0))break;wh(V,33,Q,O,0)|0}while(0);y=vt(e,ga,g,1,1,ka,k)|0;if((b[(ja&o)>>1]|0)>0){x=ka+36|0;m=g+4|0;r=0;do{i:do if((r|0)==(b[(x&o)>>1]|0))wh(V,28,0,r+M|0,0)|0;else{q=c[(l+(r<<2)&p)>>2]|0;if((q|0)>-1){Rq(e,c[((c[(m&p)>>2]|0)+(q*20|0)&p)>>2]|0,r+M|0);break}do if(!((c[(ea&p)>>2]&1|0)==0|(r|0)>31)){if(1<>1]|0))}do if(c[(ea&p)>>2]&1){wt(V,ka,M);xt(e,ga,110,g,1,ka,Q,k,G);if(!s)wh(V,70,t,G,Q)|0;else xh(V,wh(V,68,t,G,E)|0,C,-14);m=b[(ja&o)>>1]|0;if(m<<16>>16<=0)break;x=ka+36|0;y=0;do{do if((c[(l+(y<<2)&p)>>2]|0)<0){if((y|0)==(b[(x&o)>>1]|0))break;nt(V,ka,t,y,y+M|0);m=b[(ja&o)>>1]|0}while(0);y=y+1|0}while((y|0)<(m<<16>>16|0))}while(0);do if(!ca){c[(ha&p)>>2]=0;yt(e,ka,aa,t,ia,O,Q,U,k&255,G,ha);if(P)zt(e,ka,Q,0,l,X);m=(c[(ha&p)>>2]|X|0)==0;do if(!m)if(!s){q=wh(V,70,t,0,Q)|0;break}else{q=wh(V,68,t,0,E)|0;xh(V,q,C,-14);break}else q=0;while(0);At(e,ka,t,ia,aa);if(P|(N|(s|0)!=0))wh(V,95,t,0,0)|0;if(!m){m=c[(V&p)+32>>2]|0;if(m>>>0>q>>>0)c[((c[(V&p)+4>>2]|0)+(q*20|0)&p)+8>>2]=m;c[((c[(V&p)+24>>2]|0)&p)+88>>2]=m+-1}if(P){zt(e,ka,0,O,l,X);Bt(e,ka,t,ia,O,aa,1,0,0);Ct(e,ka,g,Q,l,X);break}else{Bt(e,ka,t,ia,O,aa,1,0,0);break}}while(0);do if(c[(K&p)>>2]&128){if(c[(e&p)+412>>2]|0)break;wh(V,37,v,1,0)|0}while(0);xt(e,ga,110,g,2,ka,Q,k,G);do if(!H){if(!s){wh(V,16,0,G,0)|0;break}r=c[(V&p)+24>>2]|0;q=~G;do if((G|0)<0){s=c[(r&p)+112>>2]|0;if(!s)break;c[(s+(q<<2)&p)>>2]=c[(V&p)+32>>2]}while(0);c[(r&p)+88>>2]=(c[(V&p)+32>>2]|0)+-1;wh(V,9,D,F,0)|0}while(0);r=c[(V&p)+24>>2]|0;q=~u;do if((u|0)<0){s=c[(r&p)+112>>2]|0;if(!s)break;c[(s+(q<<2)&p)>>2]=c[(V&p)+32>>2]}while(0);c[(r&p)+88>>2]=(c[(V&p)+32>>2]|0)+-1;q=c[(w&p)>>2]|0;if(q){r=0;do{s=r;r=r+1|0;if(a[(da+r&n)>>0]|0)wh(V,61,s+ia|0,0,0)|0;q=c[(q&p)+20>>2]|0}while((q|0)!=0)}if((t|0)<(ia|0))wh(V,61,t,0,0)|0;do if(!(a[(W&n)>>0]|0)){if(c[(e&p)+412>>2]|0)break;st(e)}while(0);if(!(c[(K&p)>>2]&128))break;if(c[(e&p)+412>>2]|0)break;if(a[(W&n)>>0]|0)break;wh(V,35,v,1,0)|0;iq(V,1);if(a[((c[(V&p)>>2]|0)&n)+65>>0]|0)break;Xg(c[(V&p)+16>>2]|0,34520,-1,1,0)|0}while(0);if(S)c[(S&p)+492>>2]=T}}}else l=0}else l=0;while(0);mg(la,l);Do(la,f);Nk(la,g);Gk(la,h);i=ma;return}function tr(e,f,g,h,k){e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;var l=0,m=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,ga=0,ha=0,ia=0,ja=0,ka=0,la=0,ma=0,na=0,oa=0;oa=i;i=i+96|0;if((i|0)>=(j|0))fa();ca=oa;ja=oa+92|0;la=oa+88|0;L=oa+68|0;Y=oa+64|0;O=oa+32|0;ba=oa+28|0;c[(ja&p)>>2]=0;c[(la&p)>>2]=0;na=c[(e&p)>>2]|0;c[(L&p)>>2]=0;c[(L&p)+4>>2]=0;c[(L&p)+8>>2]=0;c[(L&p)+12>>2]=0;c[(L&p)+16>>2]=0;a:do if((c[(e&p)+64>>2]|0)==0?(N=na+65|0,(a[(N&n)>>0]|0)==0):0){if(g)if((b[(g&o)+6>>1]&128)!=0?(c[(g&p)+52>>2]|0)==0:0){l=c[(g&p)>>2]|0;c[(g&p)>>2]=0;Mk(na,g,1);g=0}else l=0;else{g=0;l=0}if((c[(f&p)+16>>2]|0)!=0?(ka=Jr(e,f)|0,(ka|0)!=0):0){u=c[(ka&p)+68>>2]|0;b:do if(u){t=c[(na&p)+20>>2]|0;if((t|0)>0){s=c[(na&p)+16>>2]|0;q=0;while(1){r=q+1|0;if((c[(s+(q<<4)&p)+12>>2]|0)==(u|0)){r=q;break b}if((r|0)<(t|0))q=r;else break}}else r=0}else r=-1e6;while(0);if((((Sq(e,18,c[(ka&p)>>2]|0,0,c[((c[(na&p)+16>>2]|0)+(r<<4)&p)>>2]|0)|0)==0?(ga=ka+44|0,Z=(d[(ga&n)>>0]|0)>>>5&1,ea=jt(e,ka,108,0,Y)|0,ha=(c[(ka&p)+12>>2]|0)!=0,(hr(e,ka)|0)==0):0)?(kt(e,ka,c[(Y&p)>>2]|0)|0)==0:0)?(ma=Oq(e)|0,(ma|0)!=0):0){ia=e+18|0;if(!(a[(ia&n)>>0]|0)){da=ma+88|0;b[(da&o)>>1]=b[(da&o)>>1]|4}da=(g|0)!=0;aa=e+408|0;$=c[(aa&p)>>2]|0;$=($|0)==0?e:$;Ar(e,r);X=$+328|0;c[(X&p)>>2]=c[(X&p)>>2]|1<>0]=d[($&n)>>0]|(da|(ea|0)!=0)&1;$=(h|0)==0;c:do if((((!((g|0)==0|$^1)?(c[(e&p)+532>>2]|0)==0:0)?(c[(g&p)+68>>2]|0)==0:0)?(As(e,ka)|0)==0:0)?(a[(ga&n)>>0]&16)==0:0){if((k|0)==10){if((b[(ka&o)+36>>1]|0)>-1)u=d[(ka&n)+45>>0]|0;else u=10;y=(u|0)==10?2:u}else y=k;t=c[(g&p)+32>>2]|0;if((c[(t&p)>>2]|0)==1){if(c[(t&p)+28>>2]|0){_=117;break}if(c[(g&p)+36>>2]|0){_=117;break}if(c[(g&p)+48>>2]|0){_=117;break}if(c[(g&p)+40>>2]|0){_=117;break}if(c[(g&p)+60>>2]|0){_=117;break}if(c[(g&p)+52>>2]|0){_=117;break}if(b[(g&o)+6>>1]&1){_=117;break}u=c[(g&p)>>2]|0;if((c[(u&p)>>2]|0)!=1){_=117;break}if((a[(c[(c[(u&p)+4>>2]&p)>>2]&n)>>0]|0)!=116){_=117;break}x=Ur(e,0,t+8|0)|0;if((x|0)==0|(x|0)==(ka|0)){_=117;break}B=x+44|0;X=d[(B&n)>>0]|0;if(!((X&16|0)==0?(((d[(ga&n)>>0]|0)>>>5&1^1)&255|0)==(X>>>5&1^1|0):0)){_=117;break}if(c[(x&p)+12>>2]|0){_=117;break}v=b[(ka&o)+38>>1]|0;if(v<<16>>16!=(b[(x&o)+38>>1]|0)){_=117;break}A=ka+36|0;if((b[(A&o)>>1]|0)!=(b[(x&o)+36>>1]|0)){_=117;break}if(v<<16>>16>0){q=c[(ka&p)+4>>2]|0;m=c[(x&p)+4>>2]|0;w=0;do{if((a[(q+(w*24|0)&n)+21>>0]|0)!=(a[(m+(w*24|0)&n)+21>>0]|0)){_=117;break c}u=c[(q+(w*24|0)&p)+16>>2]|0;t=c[(m+(w*24|0)&p)+16>>2]|0;s=(t|0)==0;if(!u){if(!s){_=117;break c}}else{if(s){_=117;break c}if(dd(u,t)|0){_=117;break c}}if((a[(q+(w*24|0)&n)+20>>0]|0)!=0?(a[(m+(w*24|0)&n)+20>>0]|0)==0:0){_=117;break c}do if((w|0)>0){u=c[(q+(w*24|0)&p)+8>>2]|0;t=(u|0)==0;s=c[(m+(w*24|0)&p)+8>>2]|0;if(t^(s|0)==0){_=117;break c}if(t)break;if(_v(u,s)|0){_=117;break c}}while(0);w=w+1|0}while((w|0)<(v<<16>>16|0))}E=ka+8|0;u=c[(E&p)>>2]|0;if(!u)t=0;else{v=c[(x&p)+8>>2]|0;if(!v){_=117;break}else t=0;do{t=(a[(u&n)+50>>0]|0)==0?t:1;s=v;while(1){if(Dt(u,s)|0)break;s=c[(s&p)+20>>2]|0;if(!s){_=117;break c}}if(!s){_=117;break c}u=c[(u&p)+20>>2]|0}while((u|0)!=0)}u=c[(ka&p)+24>>2]|0;if((u|0)!=0?(Ts(c[(x&p)+24>>2]|0,u,-1)|0)!=0:0){_=117;break}s=c[(e&p)>>2]|0;u=c[(s&p)+24>>2]|0;if(!(u&524288)){if(u&128){_=117;break}}else if(!((c[(ka&p)+16>>2]|0)==0&(u&128|0)==0)){_=117;break}m=c[(x&p)+68>>2]|0;d:do if(!m)s=-1e6;else{v=c[(s&p)+20>>2]|0;if((v|0)<=0){s=0;break}u=c[(s&p)+16>>2]|0;q=0;while(1){s=q+1|0;if((c[(u+(q<<4)&p)+12>>2]|0)==(m|0)){s=q;break d}if((s|0)<(v|0))q=s;else break}}while(0);D=Oq(e)|0;Ar(e,s);z=e+68|0;F=c[(z&p)>>2]|0;C=F+1|0;c[(z&p)>>2]=F+2;z=Et(e,r,ka)|0;v=e+19|0;q=a[(v&n)>>0]|0;do if(!(q<<24>>24)){_=e+72|0;u=(c[(_&p)>>2]|0)+1|0;c[(_&p)>>2]=u;_=78}else{X=q+-1<<24>>24;a[(v&n)>>0]=X;u=c[(e+((X&255)<<2)&p)+24>>2]|0;if(!(X<<24>>24)){_=78;break}G=q+-2<<24>>24;a[(v&n)>>0]=G;H=u;G=c[(e+((G&255)<<2)&p)+24>>2]|0}while(0);if((_|0)==78){H=e+72|0;G=(c[(H&p)>>2]|0)+1|0;c[(H&p)>>2]=G;H=u}Qq(e,C,r,ka,55);if((b[(A&o)>>1]|0)<0)if((c[(E&p)>>2]|0)!=0|(t|0)!=0|(y+-1|0)>>>0>1)_=83;else I=0;else if((t|0)!=0|(y+-1|0)>>>0>1)_=83;else I=0;if((_|0)==83){w=wh(D,108,C,0,0)|0;v=wh(D,16,0,0,0)|0;u=c[(D&p)+32>>2]|0;if(u>>>0>w>>>0)c[((c[(D&p)+4>>2]|0)+(w*20|0)&p)+8>>2]=u;c[((c[(D&p)+24>>2]|0)&p)+88>>2]=u+-1;I=v}if(!(a[(B&n)>>0]&32)){Qq(e,F,s,x,54);t=wh(D,108,F,0,0)|0;do if((b[(A&o)>>1]|0)<=-1)if(!(c[(E&p)>>2]|0)){u=wh(D,74,C,G,0)|0;break}else{u=wh(D,103,F,G,0)|0;break}else{u=wh(D,103,F,G,0)|0;w=wh(D,70,C,0,G)|0;Ft(e,y,ka);v=c[(D&p)+32>>2]|0;if(v>>>0>w>>>0)c[((c[(D&p)+4>>2]|0)+(w*20|0)&p)+8>>2]=v;c[((c[(D&p)+24>>2]|0)&p)+88>>2]=v+-1;if((z|0)<=0)break;wh(c[(e&p)+8>>2]|0,136,z,G,0)|0}while(0);wh(D,102,F,H,0)|0;wh(D,75,C,H,G)|0;v=c[(D&p)+4>>2]|0;if(v)a[(v+(((c[(D&p)+32>>2]|0)+-1|0)*20|0)&n)+3>>0]=11;xh(D,-1,c[(ka&p)>>2]|0,0);wh(D,9,F,u,0)|0;wh(D,61,F,0,0)|0;wh(D,61,C,0,0)|0}else{gs(e,r,c[(ka&p)+32>>2]|0,1,c[(ka&p)>>2]|0);gs(e,s,c[(x&p)+32>>2]|0,0,c[(x&p)>>2]|0);t=0}w=c[(E&p)>>2]|0;if(w){q=x+8|0;m=e+8|0;x=D+4|0;y=D+32|0;z=D+24|0;u=w;do{w=q;while(1){w=c[(w&p)>>2]|0;if(Dt(u,w)|0)break;w=w+20|0}wh(D,54,F,c[(w&p)+40>>2]|0,s)|0;X=c[(m&p)>>2]|0;xh(X,-1,hs(e,w)|0,-6);wh(D,55,C,c[(u&p)+40>>2]|0,r)|0;w=c[(m&p)>>2]|0;xh(w,-1,hs(e,u)|0,-6);w=c[(x&p)>>2]|0;if(w)a[(w+(((c[(y&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=1;w=wh(D,108,F,0,0)|0;wh(D,101,F,H,0)|0;wh(D,110,C,H,1)|0;wh(D,9,F,w+1|0,0)|0;v=c[(y&p)>>2]|0;if(v>>>0>w>>>0)c[((c[(x&p)>>2]|0)+(w*20|0)&p)+8>>2]=v;c[((c[(z&p)>>2]|0)&p)+88>>2]=v+-1;wh(D,61,F,0,0)|0;wh(D,61,C,0,0)|0;u=c[(u&p)+20>>2]|0}while((u|0)!=0)}if(t){u=c[(D&p)+32>>2]|0;if(u>>>0>t>>>0)c[((c[(D&p)+4>>2]|0)+(t*20|0)&p)+8>>2]=u;c[((c[(D&p)+24>>2]|0)&p)+88>>2]=u+-1}_r(e,G);_r(e,H);if(!I){m=0;q=0;break}wh(D,24,0,0,0)|0;u=c[(D&p)+32>>2]|0;if(u>>>0>I>>>0)c[((c[(D&p)+4>>2]|0)+(I*20|0)&p)+8>>2]=u;c[((c[(D&p)+24>>2]|0)&p)+88>>2]=u+-1;wh(D,61,C,0,0)|0;_=117}else _=117}else _=117;while(0);do if((_|0)==117){S=Et(e,r,ka)|0;R=e+72|0;t=c[(R&p)>>2]|0;W=t+1|0;X=ka+38|0;I=b[(X&o)>>1]|0;H=I<<16>>16;u=W+H|0;c[(R&p)>>2]=u;if(!(a[(ga&n)>>0]&16))V=W;else{u=u+1|0;c[(R&p)>>2]=u;V=t+2|0}T=V+1|0;U=(h|0)!=0;e:do if(U?(P=c[(h&p)+4>>2]|0,Q=(P|0)>0,Q):0){v=c[(h&p)>>2]|0;t=0;do{c[(v+(t<<3)&p)+4>>2]=-1;t=t+1|0}while((t|0)<(P|0));if(Q){D=Z<<24>>24!=0;C=ka+4|0;B=ka+36|0;t=1;A=0;v=-1;while(1){f:do if(I<<16>>16>0){z=c[(h&p)>>2]|0;s=c[(z+(A<<3)&p)>>2]|0;q=c[(C&p)>>2]|0;m=0;while(1){w=m+1|0;if(!(dd(s,c[(q+(m*24|0)&p)>>2]|0)|0)){w=m;break}if((w|0)<(H|0))m=w;else break f}c[(z+(A<<3)&p)+4>>2]=w;t=(A|0)==(w|0)?t:0;v=(w|0)==(b[(B&o)>>1]|0)?A:v}else w=0;while(0);if((w|0)>=(H|0)){m=c[((c[(h&p)>>2]|0)+(A<<3)&p)>>2]|0;if(($h(m)|0)==0|D)break;else{t=0;w=A}}else w=v;A=A+1|0;if((A|0)>=(P|0)){E=w;break e}else v=w}c[(ca&p)>>2]=f;c[(ca&p)+4>>2]=0;c[(ca&p)+8>>2]=m;th(e,33368,ca);a[(e&n)+17>>0]=1;m=0;break a}else{t=1;E=-1}}else{t=1;E=-1}while(0);g:do if(!da){c[(O&p)>>2]=0;c[(O&p)+4>>2]=0;c[(O&p)+8>>2]=0;c[(O&p)+12>>2]=0;c[(O&p)+16>>2]=0;c[(O&p)+20>>2]=0;c[(O&p)+24>>2]=0;c[(O&p)+28>>2]=0;c[(O&p)>>2]=e;if(l){s=c[(l&p)>>2]|0;if((s|0)>0){u=l+4|0;t=0;while(1){if(ls(O,c[((c[(u&p)>>2]|0)+(t*20|0)&p)>>2]|0)|0){g=0;m=0;break a}t=t+1|0;if((t|0)>=(s|0)){u=0;t=-1;r=0;_=169;break}}}else{P=E;O=0;Q=-1;z=0}}else{P=E;s=0;O=0;Q=-1;z=0}}else{u=u+1|0;c[(R&p)>>2]=u;G=ma+32|0;v=c[(G&p)>>2]|0;wh(ma,20,u,0,v+1|0)|0;a[(L&n)>>0]=13;H=L+4|0;c[(H&p)>>2]=u;a[(L&n)+1>>0]=0;F=L+8|0;c[(F&p)>>2]=t<<24>>24!=0?T:0;c[(L&p)+12>>2]=b[(X&o)>>1];Q=ir(e,g,L)|0;F=c[(F&p)>>2]|0;if(Q){m=0;break a}if(a[(N&n)>>0]|0){m=0;break a}wh(ma,21,u,0,0)|0;u=c[(G&p)>>2]|0;if(u>>>0>v>>>0)c[((c[(ma&p)+4>>2]|0)+(v*20|0)&p)+8>>2]=u;I=ma+24|0;c[((c[(I&p)>>2]|0)&p)+88>>2]=u+-1;s=c[(c[(g&p)>>2]&p)>>2]|0;h:do if(!ea){w=Oq(e)|0;t=c[(w&p)+32>>2]|0;i:do if(!(a[(ga&n)>>0]&16))v=0;else{u=c[(e&p)>>2]|0;v=c[(ka&p)+60>>2]|0;if(!v){v=0;break}while(1){if((c[(v&p)>>2]|0)==(u|0))break i;v=c[(v&p)+24>>2]|0;if(!v){v=0;break}}}while(0);if((t|0)<=1){u=F;t=0;r=0;_=169;break g}q=(a[((c[(w&p)>>2]|0)&n)+65>>0]|0)==0;z=w+4|0;y=ka+32|0;x=ka+8|0;m=1;while(1){if(q)w=(c[(z&p)>>2]|0)+(m*20|0)|0;else w=29120;u=a[(w&n)>>0]|0;do if(u<<24>>24==54){if((c[(w&p)+12>>2]|0)!=(r|0))break;u=c[(w&p)+8>>2]|0;if((u|0)==(c[(y&p)>>2]|0))break h;w=c[(x&p)>>2]|0;if(!w)break;do{if((u|0)==(c[(w&p)+40>>2]|0))break h;w=c[(w&p)+20>>2]|0}while((w|0)!=0)}else if(u<<24>>24==-107?(c[(w&p)+16>>2]|0)==(v|0):0)break h;while(0);m=m+1|0;if((m|0)>=(t|0)){u=F;t=0;r=0;_=169;break g}}}while(0);v=e+68|0;w=c[(v&p)>>2]|0;c[(v&p)>>2]=w+1;v=e+19|0;t=a[(v&n)>>0]|0;do if(!(t<<24>>24)){u=(c[(R&p)>>2]|0)+1|0;c[(R&p)>>2]=u;_=159}else{Q=t+-1<<24>>24;a[(v&n)>>0]=Q;u=c[(e+((Q&255)<<2)&p)+24>>2]|0;if(!(Q<<24>>24)){_=159;break}Q=t+-2<<24>>24;a[(v&n)>>0]=Q;v=c[(e+((Q&255)<<2)&p)+24>>2]|0}while(0);if((_|0)==159){v=(c[(R&p)>>2]|0)+1|0;c[(R&p)>>2]=v}wh(ma,57,w,s,0)|0;r=wh(ma,22,c[(H&p)>>2]|0,0,0)|0;wh(ma,49,F,s,u)|0;wh(ma,74,w,v,0)|0;wh(ma,75,w,u,v)|0;wh(ma,16,0,r,0)|0;t=c[(G&p)>>2]|0;if(t>>>0>r>>>0)c[((c[(ma&p)+4>>2]|0)+(r*20|0)&p)+8>>2]=t;c[((c[(I&p)>>2]|0)&p)+88>>2]=t+-1;_r(e,u);_r(e,v);u=F;t=w;r=1;_=169}while(0);if((_|0)==169)if($&(s|0)>0){P=b[(ka&o)+36>>1]|0;O=u;Q=t;z=r}else{P=E;O=u;Q=t;z=r}if((a[(ga&n)>>0]&16)!=0?(M=b[(X&o)>>1]|0,M<<16>>16>0):0){v=c[(ka&p)+4>>2]|0;t=M<<16>>16;r=0;u=0;do{u=((d[(v+(r*24|0)&n)+23>>0]|0)>>>1&1)+u|0;r=r+1|0}while((r|0)<(t|0))}else u=0;do if($&(s|0)!=0){u=(b[(X&o)>>1]|0)-u|0;if((s|0)==(u|0))break;c[(ca&p)>>2]=f;c[(ca&p)+4>>2]=0;c[(ca&p)+8>>2]=u;c[(ca&p)+12>>2]=s;th(e,33400,ca);m=0;break a}while(0);do if(U){u=c[(h&p)+4>>2]|0;if((s|0)==(u|0))break;c[(ca&p)>>2]=s;c[(ca&p)+4>>2]=u;th(e,33456,ca);m=0;break a}while(0);K=na+24|0;if(!(c[(K&p)>>2]&128))q=0;else{q=(c[(R&p)>>2]|0)+1|0;c[(R&p)>>2]=q;wh(ma,25,0,q,0)|0}do if(ha)m=0;else{u=pt(e,ka,55,-1,0,ja,la)|0;m=mh(na,(u<<2)+4|0,0)|0;if(!m)break a;if((u|0)>0)t=0;else break;do{N=(c[(R&p)>>2]|0)+1|0;c[(R&p)>>2]=N;c[(m+(t<<2)&p)>>2]=N;t=t+1|0}while((t|0)!=(u|0))}while(0);M=z<<24>>24!=0;do if(M){N=wh(ma,108,Q,0,0)|0;L=c[(ma&p)+32>>2]|0}else{if(!da){L=0;N=0;break}N=wh(ma,22,c[(L&p)+4>>2]|0,0,0)|0;L=N}while(0);J=xs(ma)|0;do if(c[(Y&p)>>2]&1){w=(b[(X&o)>>1]|0)+1|0;H=e+60|0;v=c[(H&p)>>2]|0;G=e+56|0;u=c[(G&p)>>2]|0;if((u|0)<(w|0)){I=c[(R&p)>>2]|0;c[(R&p)>>2]=I+w;I=I+1|0}else{c[(H&p)>>2]=w+v;c[(G&p)>>2]=u-w;I=v}if((P|0)<0)wh(ma,25,-1,I,0)|0;else{if(M)wh(ma,47,Q,P,I)|0;else Rq(e,c[((c[(l&p)+4>>2]|0)+(P*20|0)&p)>>2]|0,I);w=wh(ma,77,I,0,0)|0;wh(ma,25,-1,I,0)|0;v=c[(ma&p)+32>>2]|0;if(v>>>0>w>>>0)c[((c[(ma&p)+4>>2]|0)+(w*20|0)&p)+8>>2]=v;c[((c[(ma&p)+24>>2]|0)&p)+88>>2]=v+-1;wh(ma,38,I,0,0)|0}v=b[(X&o)>>1]|0;if(v<<16>>16>0){D=M|(l|0)!=0;t=h+4|0;u=I+1|0;w=l+4|0;A=e+8|0;B=ka+4|0;C=0;do{j:do if($)z=C;else{y=c[(t&p)>>2]|0;if((y|0)<=0){z=0;break}x=c[(h&p)>>2]|0;r=0;while(1){z=r+1|0;if((c[(x+(r<<3)&p)+4>>2]|0)==(C|0)){z=r;break j}if((z|0)<(y|0))r=z;else break}}while(0);do if(D){if(U?(z|0)>=(c[(t&p)>>2]|0):0){_=213;break}if(M){wh(ma,47,Q,z,u+C|0)|0;break}else{Y=c[((c[(w&p)>>2]|0)+(z*20|0)&p)>>2]|0;r=u+C|0;x=c[(A&p)>>2]|0;Rq(e,Y,r);v=(c[(R&p)>>2]|0)+1|0;c[(R&p)>>2]=v;wh(x,33,r,v,0)|0;a[(Y&n)+38>>0]=a[(Y&n)>>0]|0;a[(Y&n)>>0]=-97;c[(Y&p)+28>>2]=v;Y=Y+4|0;c[(Y&p)>>2]=c[(Y&p)>>2]&-4097;break}}else _=213;while(0);if((_|0)==213){_=0;Rq(e,c[((c[(B&p)>>2]|0)+(C*24|0)&p)+4>>2]|0,u+C|0)}C=C+1|0;v=b[(X&o)>>1]|0}while((C|0)<(v<<16>>16|0))}if(!ha){wt(ma,ka,I+1|0);v=b[(X&o)>>1]|0}xt(e,ea,108,0,1,ka,I+-1-(v<<16>>16)|0,k,J);v=(b[(X&o)>>1]|0)+1|0;dt(e,I,v);if((c[(G&p)>>2]|0)>=(v|0))break;c[(G&p)>>2]=v;c[(H&p)>>2]=I}while(0);do if(!ha){if(a[(ga&n)>>0]&16)wh(ma,28,0,W,0)|0;k:do if((P|0)<=-1)if(!((a[(ga&n)>>0]&16|Z)<<24>>24)){wh(ma,74,c[(ja&p)>>2]|0,V,S)|0;I=1;break}else{wh(ma,28,0,V,0)|0;I=0;break}else{do if(M)wh(ma,47,Q,P,V)|0;else{if(da){wh(ma,33,P+O|0,V,0)|0;break}Rq(e,c[((c[(l&p)+4>>2]|0)+(P*20|0)&p)>>2]|0,V);if(!(a[((c[(ma&p)>>2]|0)&n)+65>>0]|0)){u=(c[(ma&p)+4>>2]|0)+(((c[(ma&p)+32>>2]|0)+-1|0)*20|0)|0;if(!u)break}else u=29120;if((a[(u&n)>>0]|0)!=28)break;if(a[(ga&n)>>0]&16)break;a[(u&n)>>0]=74;c[(u&p)+4>>2]=c[(ja&p)>>2];c[(u&p)+8>>2]=V;c[(u&p)+12>>2]=S;I=1;break k}while(0);if(!(a[(ga&n)>>0]&16)){u=wh(ma,77,V,0,0)|0;wh(ma,74,c[(ja&p)>>2]|0,V,S)|0;t=c[(ma&p)+32>>2]|0;if(t>>>0>u>>>0)c[((c[(ma&p)+4>>2]|0)+(u*20|0)&p)+8>>2]=t;c[((c[(ma&p)+24>>2]|0)&p)+88>>2]=t+-1}else wh(ma,76,V,(c[(ma&p)+32>>2]|0)+2|0,0)|0;wh(ma,38,V,0,0)|0;I=0}while(0);if((S|0)>0)wh(c[(e&p)+8>>2]|0,136,S,V,0)|0;if((b[(X&o)>>1]|0)>0){G=ka+36|0;H=ka+4|0;C=(s|0)==0;B=h+4|0;A=(O|0)==(T|0);s=l+4|0;t=e+23|0;u=ca+20|0;v=ca+4|0;E=ca+24|0;F=0;w=0;do{D=F+T|0;l:do if((F|0)==(b[(G&o)>>1]|0))wh(ma,29,D,0,0)|0;else{m:do if($)if(!(a[((c[(H&p)>>2]|0)+(F*24|0)&n)+23>>0]&2)){z=F-w|0;_=258;break}else{w=w+1|0;break}else{y=c[(B&p)>>2]|0;if((y|0)<=0){z=0;_=258;break}x=c[(h&p)>>2]|0;r=0;while(1){z=r+1|0;if((c[(x+(r<<3)&p)+4>>2]|0)==(F|0)){z=r;_=258;break m}if((z|0)<(y|0))r=z;else{_=258;break}}}while(0);do if((_|0)==258){_=0;if((z|0)<0|C)break;if(U?(z|0)>=(c[(B&p)>>2]|0):0)break;if(M){wh(ma,47,Q,z,D)|0;break l}if(!da){Rq(e,c[((c[(s&p)>>2]|0)+(z*20|0)&p)>>2]|0,D);break l}if(A)break l;wh(ma,34,z+O|0,D,0)|0;break l}while(0);z=c[((c[(H&p)>>2]|0)+(F*24|0)&p)+4>>2]|0;do if(a[(t&n)>>0]|0){c[(ca&p)>>2]=0;c[(ca&p)+4>>2]=0;c[(ca&p)+8>>2]=0;c[(ca&p)+12>>2]=0;c[(ca&p)+16>>2]=0;c[(ca&p)+20>>2]=0;a[(u&n)>>0]=1;c[(ca&p)>>2]=78;c[(v&p)>>2]=79;c[(E&p)>>2]=0;rs(ca,z)|0;if(!(a[(u&n)>>0]|0))break;Gt(e,z,D,0);break l}while(0);Rq(e,z,D)}while(0);F=F+1|0}while((F|0)<(b[(X&o)>>1]|0))}if(!(a[(ga&n)>>0]&16)){yt(e,ka,m,c[(ja&p)>>2]|0,c[(la&p)>>2]|0,W,0,P>>>31&255^1,k&255,J,ba);zt(e,ka,0,W,0,0);Bt(e,ka,c[(ja&p)>>2]|0,c[(la&p)>>2]|0,W,m,0,I,(c[(ba&p)>>2]|0)==0&1);break}u=c[(ka&p)+60>>2]|0;n:do if(!u)u=0;else while(1){if((c[(u&p)>>2]|0)==(na|0))break n;u=c[(u&p)+24>>2]|0;if(!u){u=0;break}}while(0);qt(e,ka);xh(ma,wh(ma,15,1,(b[(X&o)>>1]|0)+2|0,W)|0,u,-10);t=c[(ma&p)+4>>2]|0;if(t)a[(t+(((c[(ma&p)+32>>2]|0)+-1|0)*20|0)&n)+3>>0]=(k|0)==10?2:k&255;ca=c[(aa&p)>>2]|0;a[(((ca|0)==0?e:ca)&n)+21>>0]=1}while(0);if(c[(K&p)>>2]&128)wh(ma,37,q,1,0)|0;if(ea)xt(e,ea,108,0,2,ka,V+-1-(b[(X&o)>>1]|0)|0,k,J);u=ma+24|0;t=c[(u&p)>>2]|0;r=~J;do if((J|0)<0){s=c[(t&p)+112>>2]|0;if(!s)break;c[(s+(r<<2)&p)>>2]=c[(ma&p)+32>>2]}while(0);s=ma+32|0;c[(t&p)+88>>2]=(c[(s&p)>>2]|0)+-1;do if(M){wh(ma,9,Q,L,0)|0;s=c[(s&p)>>2]|0;if(s>>>0>N>>>0)c[((c[(ma&p)+4>>2]|0)+(N*20|0)&p)+8>>2]=s;c[((c[(u&p)>>2]|0)&p)+88>>2]=s+-1;wh(ma,61,Q,0,0)|0}else{if(!da)break;wh(ma,16,0,L,0)|0;s=c[(s&p)>>2]|0;if(s>>>0>N>>>0)c[((c[(ma&p)+4>>2]|0)+(N*20|0)&p)+8>>2]=s;c[((c[(u&p)>>2]|0)&p)+88>>2]=s+-1}while(0);if((a[(ga&n)>>0]&16)!=0|ha)break;r=c[(ja&p)>>2]|0;if((r|0)<(c[(la&p)>>2]|0))wh(ma,61,r,0,0)|0;r=c[(ka&p)+8>>2]|0;if(!r)break;else s=0;while(1){wh(ma,61,(c[(la&p)>>2]|0)+s|0,0,0)|0;r=c[(r&p)+20>>2]|0;if(!r)break;else s=s+1|0}}while(0);if((a[(ia&n)>>0]|0)==0?(c[(e&p)+412>>2]|0)==0:0)st(e);if((((c[(na&p)+24>>2]&128|0)!=0?(a[(ia&n)>>0]|0)==0:0)?(c[(e&p)+412>>2]|0)==0:0)?(wh(ma,35,q,1,0)|0,iq(ma,1),(a[((c[(ma&p)>>2]|0)&n)+65>>0]|0)==0):0)Xg(c[(ma&p)+16>>2]|0,33488,-1,1,0)|0}else m=0}else m=0}else{m=0;l=0}while(0);Do(na,f);Nk(na,l);Mk(na,g,1);Hk(na,h);mg(na,m);i=oa;return}function ur(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0;h=i;i=i+16|0;if((i|0)>=(j|0))fa();f=h;if(!d){d=mh(b,8,0)|0;if(!d)d=0;else{g=d;k=g;a[(k&n)>>0]=0;a[(k&n)+1>>0]=0;a[(k&n)+2>>0]=0;a[(k&n)+3>>0]=0;g=g+4|0;a[(g&n)>>0]=0;a[(g&n)+1>>0]=0;a[(g&n)+2>>0]=0;a[(g&n)+3>>0]=0;g=4}}else g=4;do if((g|0)==4){c[(d&p)>>2]=Ht(b,c[(d&p)>>2]|0,8,d+4|0,f)|0;f=c[(f&p)>>2]|0;if((f|0)<0){Hk(b,d);d=0;break}else{b=Wq(b,e)|0;c[((c[(d&p)>>2]|0)+(f<<3)&p)>>2]=b;break}}while(0);i=h;return d|0}function vr(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0;if((c[(d&p)+4>>2]|0)!=0?(f=nr(c[(a&p)>>2]|0,95,d,e)|0,(f|0)!=0):0){c[(f&p)+12>>2]=b;b=f+4|0;c[(b&p)>>2]=c[(b&p)>>2]|4352;b=f}return b|0}function wr(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;e=c[(a&p)>>2]|0;d=nr(e,153,d,1)|0;if(!d){Nk(e,b);d=0}else{c[(d&p)+20>>2]=b;yr(a,d)}return d|0}function xr(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;b=c[(b&p)>>2]|0;if((d|0)!=0&(e|0)!=0?(a[(d&n)>>0]|0)==101:0){a[(e&n)>>0]=f;f=e+16|0;Gk(b,c[(f&p)>>2]|0);c[(f&p)>>2]=0}return}function yr(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;f=i;i=i+16|0;if((i|0)>=(j|0))fa();e=f;if((c[(a&p)+64>>2]|0)==0?(It(b),d=c[((c[(a&p)>>2]|0)&p)+100>>2]|0,(d|0)<(c[(b&p)+24>>2]|0)):0){c[(e&p)>>2]=d;th(a,27152,e)}i=f;return}function zr(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,i=0;d=c[(a&p)>>2]|0;i=d+20|0;e=c[(i&p)>>2]|0;if((e|0)>0){g=d+16|0;h=(b|0)==0;d=e;f=0;do{e=c[(g&p)>>2]|0;do if(c[(e+(f<<4)&p)+4>>2]|0){if(!h?(dd(b,c[(e+(f<<4)&p)>>2]|0)|0)!=0:0)break;Ar(a,f);d=c[(i&p)>>2]|0}while(0);f=f+1|0}while((f|0)<(d|0))}return}function Ar(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;f=c[(a&p)+408>>2]|0;f=(f|0)==0?a:f;a=f+332|0;d=c[(a&p)>>2]|0;e=1<>2]|0,c[(a&p)>>2]=d|e,c[(f+(b<<2)&p)+336>>2]=c[(c[((c[(g&p)+16>>2]|0)+(b<<4)&p)+12>>2]&p)>>2],(b|0)==1):0)_k(f)|0;return}function Br(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,o=0,q=0;q=i;i=i+128|0;if((i|0)>=(j|0))fa();f=q+8|0;o=q;m=q+24|0;c[(o&p)>>2]=0;k=c[(b&p)>>2]|0;if((c[(b&p)+64>>2]|0)==0?(c[(f&p)>>2]=e,l=Wk(k,d,f)|0,(l|0)!=0):0){d=b+18|0;a[(d&n)>>0]=(a[(d&n)>>0]|0)+1<<24>>24;e=b+440|0;f=m+0|0;g=e+0|0;h=f+96|0;do{a[(f&n)>>0]=a[(g&n)>>0]|0;f=f+1|0;g=g+1|0}while((f|0)<(h|0));f=e+0|0;h=f+96|0;do{c[(f&p)>>2]=0;f=f+4|0}while((f|0)<(h|0));Lh(b,l,o)|0;mg(k,c[(o&p)>>2]|0);mg(k,l);f=e+0|0;g=m+0|0;h=f+96|0;do{a[(f&n)>>0]=a[(g&n)>>0]|0;f=f+1|0;g=g+1|0}while((f|0)<(h|0));a[(d&n)>>0]=(a[(d&n)>>0]|0)+-1<<24>>24}i=q;return}function Cr(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0;k=i;i=i+48|0;if((i|0)>=(j|0))fa();g=k;h=k+16|0;b=c[((c[((c[(a&p)>>2]|0)&p)+16>>2]|0)+(b<<4)&p)>>2]|0;f=1;do{c[(g&p)>>2]=f;ad(24,h,33272,g)|0;if(_h(c[(a&p)>>2]|0,h,b)|0){c[(g&p)>>2]=b;c[(g&p)+4>>2]=h;c[(g&p)+8>>2]=d;c[(g&p)+12>>2]=e;Br(a,28840,g)}f=f+1|0}while((f|0)!=5);i=k;return}function Dr(b,d){b=b|0;d=d|0;var e=0,f=0;e=b+19|0;f=a[(e&n)>>0]|0;if(!(f<<24>>24)){f=b+72|0;e=(c[(f&p)>>2]|0)+1|0;c[(f&p)>>2]=e}else{f=f+-1<<24>>24;a[(e&n)>>0]=f;e=c[(b+((f&255)<<2)&p)+24>>2]|0}f=c[(b&p)+8>>2]|0;wh(f,25,(c[(c[((c[((c[(b&p)>>2]|0)&p)+16>>2]|0)+(d<<4)&p)+12>>2]&p)>>2]|0)+1|0,e,0)|0;wh(f,52,d,1,e)|0;_r(b,e);return}function Er(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0;l=i;i=i+32|0;if((i|0)>=(j|0))fa();k=l;h=Oq(b)|0;f=b+19|0;g=a[(f&n)>>0]|0;if(!(g<<24>>24)){g=b+72|0;f=(c[(g&p)>>2]|0)+1|0;c[(g&p)>>2]=f}else{g=g+-1<<24>>24;a[(f&n)>>0]=g;f=c[(b+((g&255)<<2)&p)+24>>2]|0}wh(h,117,d,f,e)|0;g=c[(b&p)+408>>2]|0;a[(((g|0)==0?b:g)&n)+21>>0]=1;c[(k&p)>>2]=c[((c[((c[(b&p)>>2]|0)&p)+16>>2]|0)+(e<<4)&p)>>2];c[(k&p)+4>>2]=(e|0)==1?13184:13208;c[(k&p)+8>>2]=d;c[(k&p)+12>>2]=f;c[(k&p)+16>>2]=f;Br(b,33216,k);_r(b,f);i=l;return}function Fr(f,g,h,k,l){f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;var m=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;X=i;i=i+96|0;if((i|0)>=(j|0))fa();G=X+24|0;w=X+80|0;q=X+64|0;A=X+16|0;t=X+60|0;u=X+56|0;O=X+52|0;N=X+48|0;z=X+44|0;D=X+40|0;E=X+36|0;F=X+32|0;x=X+8|0;s=X;W=c[(f&p)>>2]|0;T=Oq(f)|0;do if((T|0)!=0?(S=T+88|0,b[(S&o)>>1]=b[(S&o)>>1]|16,S=f+72|0,c[(S&p)>>2]=2,Q=er(f,g,h,w)|0,(Q|0)>=0):0){R=W+16|0;C=c[(R&p)>>2]|0;if((Q|0)==1?(_k(f)|0)!=0:0)break;V=Wq(W,c[(w&p)>>2]|0)|0;if(V){if(!l)U=Wq(W,k)|0;else{c[(G&p)>>2]=k;U=uh(W,30104,G)|0}B=h+4|0;if(!(c[(B&p)>>2]|0))L=0;else L=c[(C+(Q<<4)&p)>>2]|0;a:do if(!(Sq(f,19,V,U,L)|0)){c[(q&p)>>2]=0;c[(q&p)+4>>2]=V;c[(q&p)+8>>2]=U;c[(q&p)+12>>2]=0;r=W+452|0;c[(r&p)>>2]=0;g=cg(W,L,14,q)|0;if(!g){k=c[(q&p)>>2]|0;if(!k)break;m=(c[(S&p)>>2]|0)+1|0;c[(S&p)>>2]=m;xh(T,wh(T,97,0,m,0)|0,k,0);iq(T,1);if(!(a[((c[(T&p)>>2]|0)&n)+65>>0]|0))Xg(c[(T&p)+16>>2]|0,30112,-1,1,0)|0;wh(T,35,m,1,0)|0;Wc(c[(q&p)>>2]|0);break}else if((g|0)==12){w=0;q=56;b:while(1){while(1){l=(w+q|0)/2|0;g=c[((l*12|0)&p)+30120>>2]|0;k=dd(V,g)|0;if(!k){w=l;break b}if((k|0)<0){g=l;break}if((l|0)<(q|0))w=l+1|0;else break a}g=g+-1|0;if((w|0)>(g|0))break a;else q=g}if((a[((w*12|0)&n)+30125>>0]&1)!=0?(Gn(f)|0)!=0:0)break;do switch(d[((w*12|0)&n)+30124>>0]|0){case 10:{q=1<>2]=c[(F&p)>>2]|q;if(U){c[(G&p)>>2]=0;Dn(U,G)|0;k=c[(G&p)>>2]|0;if((k|0)<=-1)k=(k|0)==-2147483648?2147483647:0-k|0;G=c[(f&p)+408>>2]|0;Ar(f,Q);G=((G|0)==0?f:G)+328|0;c[(G&p)>>2]=c[(G&p)>>2]|q;wh(T,25,k,1,0)|0;wh(T,52,Q,3,1)|0;c[((c[(C+(Q<<4)&p)+12>>2]|0)&p)+80>>2]=k;pq(c[(C+(Q<<4)&p)+4>>2]|0,k);break a}iq(T,1);if(!(a[((c[(T&p)>>2]|0)&n)+65>>0]|0))Xg(c[(T&p)+16>>2]|0,30848,-1,1,0)|0;c[(S&p)>>2]=(c[(S&p)>>2]|0)+2;k=yh(T,9,30808)|0;l=c[(T&p)+32>>2]|0;if(l>>>0>k>>>0)c[((c[(T&p)+4>>2]|0)+(k*20|0)&p)+4>>2]=Q;m=k+1|0;if(l>>>0>m>>>0)c[((c[(T&p)+4>>2]|0)+(m*20|0)&p)+4>>2]=Q;m=k+6|0;if(l>>>0<=m>>>0)break a;c[((c[(T&p)+4>>2]|0)+(m*20|0)&p)+4>>2]=2e3;break a}case 19:{k=c[(c[((c[(C+(Q<<4)&p)+4>>2]|0)&p)+4>>2]&p)>>2]|0;G=A;c[(G&p)>>2]=-2;c[(G&p)+4>>2]=-1;if(U){ji(U,A)|0;m=A;l=c[(m&p)>>2]|0;m=c[(m&p)+4>>2]|0;if((m|0)<-1|(m|0)==-1&l>>>0<4294967295){l=A;c[(l&p)>>2]=-1;c[(l&p)+4>>2]=-1;l=-1;m=-1}G=k+160|0;c[(G&p)>>2]=l;c[(G&p)+4>>2]=m;k=c[(k&p)+208>>2]|0;if(k){G=k+16|0;c[(G&p)>>2]=l;c[(G&p)+4>>2]=m}}else{m=k+160|0;l=c[(m&p)>>2]|0;m=c[(m&p)+4>>2]|0}G=A;c[(G&p)>>2]=l;c[(G&p)+4>>2]=m;Jt(f,30952,l,m);break a}case 28:{q=Oq(f)|0;iq(q,4);c[(S&p)>>2]=4;Ar(f,Q);if((((a[((c[(q&p)>>2]|0)&n)+65>>0]|0)==0?(Xg(c[(q&p)+16>>2]|0,31232,-1,1,0)|0,(a[((c[(q&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(q&p)+16>>2]|0)+40|0,20632,-1,1,0)|0,(a[((c[(q&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(q&p)+16>>2]|0)+80|0,31240,-1,1,0)|0,(a[((c[(q&p)>>2]|0)&n)+65>>0]|0)==0):0)Xg((c[(q&p)+16>>2]|0)+120|0,31248,-1,1,0)|0;l=c[((c[(C+(Q<<4)&p)+12>>2]|0)&p)+16>>2]|0;if(!l)break a;do{m=c[(l&p)+8>>2]|0;G=c[(m&p)>>2]|0;xh(q,wh(q,97,0,1,0)|0,G,0);wh(q,28,0,2,0)|0;G=Ws(b[(m&o)+42>>1]|0)|0;wh(q,25,G,3,0)|0;G=Ws(b[(m&o)+28>>1]|0)|0;wh(q,25,G,4,0)|0;wh(q,35,1,4,0)|0;m=c[(m&p)+8>>2]|0;if(m)do{G=c[(m&p)>>2]|0;xh(q,wh(q,97,0,2,0)|0,G,0);G=Ws(b[(m&o)+44>>1]|0)|0;wh(q,25,G,3,0)|0;G=Ws(b[(c[(m&p)+8>>2]&o)>>1]|0)|0;wh(q,25,G,4,0)|0;wh(q,35,1,4,0)|0;m=c[(m&p)+20>>2]|0}while((m|0)!=0);l=c[(l&p)>>2]|0}while((l|0)!=0);break}case 15:{if(!U)break a;s=bq(W,U,L)|0;if(!s)break a;w=(c[((w*12|0)&p)+30128>>2]|0)==0;t=s+46|0;G=w?3:6;r=b[((w?t:s+48|0)&o)>>1]|0;u=r&65535;c[(S&p)>>2]=G;q=c[(s&p)+12>>2]|0;iq(T,G);Ar(f,Q);if(((a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0?(Xg(c[(T&p)+16>>2]|0,31256,-1,1,0)|0,(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(T&p)+16>>2]|0)+40|0,31176,-1,1,0)|0,(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0):0)Xg((c[(T&p)+16>>2]|0)+80|0,31184,-1,1,0)|0;if(((!w?(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0:0)?(Xg((c[(T&p)+16>>2]|0)+120|0,31264,-1,1,0)|0,(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(T&p)+16>>2]|0)+160|0,31272,-1,1,0)|0,(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0):0)Xg((c[(T&p)+16>>2]|0)+200|0,31280,-1,1,0)|0;if(!(r<<16>>16))break a;m=s+4|0;l=s+28|0;k=s+32|0;s=q+4|0;q=0;do{G=b[((c[(m&p)>>2]|0)+(q<<1)&o)>>1]|0;wh(T,25,q,1,0)|0;r=G<<16>>16;wh(T,25,r,2,0)|0;if(G<<16>>16<0)wh(T,28,0,3,0)|0;else{G=c[((c[(s&p)>>2]|0)+(r*24|0)&p)>>2]|0;xh(T,wh(T,97,0,3,0)|0,G,0)}if(!w){wh(T,25,d[((c[(l&p)>>2]|0)+q&n)>>0]|0,4,0)|0;G=c[((c[(k&p)>>2]|0)+(q<<2)&p)>>2]|0;xh(T,wh(T,97,0,5,0)|0,G,0);wh(T,25,(q|0)<(e[(t&o)>>1]|0)&1,6,0)|0}wh(T,35,1,c[(S&p)>>2]|0,0)|0;q=q+1|0}while((q|0)<(u|0));break}case 22:{Ar(f,Q);k=(c[(S&p)>>2]|0)+1|0;c[(S&p)>>2]=k;if((a[(V&n)>>0]&-33)<<24>>24==80)wh(T,153,Q,k,0)|0;else{c[(G&p)>>2]=0;if(U){Dn(U,G)|0;m=c[(G&p)>>2]|0;if((m|0)<=-1)m=(m|0)==-2147483648?2147483647:0-m|0}else m=0;wh(T,154,Q,k,m)|0}wh(T,35,k,1,0)|0;iq(T,1);if(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)break a;Xg(c[(T&p)+16>>2]|0,V,-1,1,-1)|0;break a}case 24:{l=c[(C+(Q<<4)&p)+4>>2]|0;if(U){c[(G&p)>>2]=0;Dn(U,G)|0;G=c[(G&p)>>2]|0;c[(W&p)+72>>2]=G;if((xg(l,G,-1,0)|0)!=7)break a;a[(W&n)+65>>0]=1;break a}if(!l){l=0;m=0}else{m=c[((c[(l&p)+4>>2]|0)&p)+32>>2]|0;l=m;m=((m|0)<0)<<31>>31}Jt(f,30864,l,m);break a}case 25:{l=c[(C+(Q<<4)&p)+4>>2]|0;if(U){m=(ii(U,1,0)|0)<<24>>24!=0&1;if((c[(B&p)>>2]|0)==0?(y=W+20|0,(c[(y&p)>>2]|0)>0):0){k=0;do{so(c[((c[(R&p)>>2]|0)+(k<<4)&p)+4>>2]|0,m)|0;k=k+1|0}while((k|0)<(c[(y&p)>>2]|0))}}else m=-1;G=so(l,m)|0;Jt(f,30880,G,((G|0)<0)<<31>>31);break a}case 18:{iq(T,1);if(!(a[((c[(T&p)>>2]|0)&n)+65>>0]|0))Xg(c[(T&p)+16>>2]|0,30936,-1,1,0)|0;c:do if(U){k=U;while(1)if(!(a[(k&n)>>0]|0))break;else k=k+1|0;m=k-U&1073741823;k=0;while(1){if(!(Fc(U,c[(k<<2&p)+32216>>2]|0,m)|0))break;k=k+1|0;if((k|0)==6){P=91;break c}}if((k|0)!=-1)q=Q;else P=91}else P=91;while(0);if((P|0)==91)if(!(c[(B&p)>>2]|0)){c[(B&p)>>2]=1;k=-1;q=0}else{k=-1;q=Q}m=c[(W&p)+20>>2]|0;if((m|0)>0){l=T+96|0;do{m=m+-1|0;do if(c[((c[(R&p)>>2]|0)+(m<<4)&p)+4>>2]|0){if((m|0)!=(q|0)?(c[(B&p)>>2]|0)!=0:0)break;c[(l&p)>>2]=c[(l&p)>>2]|1<0)}wh(T,35,1,1,0)|0;break a}case 32:{if(!U){if(!(c[2708]|0))break a;iq(T,1);if(!(a[((c[(T&p)>>2]|0)&n)+65>>0]|0))Xg(c[(T&p)+16>>2]|0,31048,-1,1,0)|0;G=c[2708]|0;xh(T,wh(T,97,0,1,0)|0,G,0);wh(T,35,1,1,0)|0;break a}if((a[(U&n)>>0]|0)!=0?(F=c[(W&p)>>2]|0,F=(pc[c[(F&p)+32>>2]&31](F,U,1,u)|0)!=0,F|(c[(u&p)>>2]|0)==0):0){th(f,31072,G);break a}if((d[(W&n)+64>>0]|0)<2)Kt(f)|0;Wc(c[2708]|0);if(!(a[(U&n)>>0]|0)){c[2708]=0;break a}else{c[(G&p)>>2]=U;c[2708]=_c(10344,G)|0;break a}}case 14:{if(!((U|0)!=0?(G=(Dn(U,t)|0)==0,m=c[(t&p)>>2]|0,!(G|(m|0)<1)):0)){c[(t&p)>>2]=2147483647;m=2147483647}l=c[(f&p)+408>>2]|0;Ar(f,Q);l=((l|0)==0?f:l)+328|0;c[(l&p)>>2]=c[(l&p)>>2]|1<>2]|0;if(l>>>0>m>>>0)c[((c[(T&p)+4>>2]|0)+(m*20|0)&p)+8>>2]=l;c[((c[(T&p)+24>>2]|0)&p)+88>>2]=l+-1;break a}case 30:{if(!U)break a;h=_h(W,U,L)|0;if(!h)break a;k=c[(h&p)+8>>2]|0;d:do if(!k)k=0;else while(1){if((a[(k&n)+51>>0]&3)==2)break d;k=c[(k&p)+20>>2]|0;if(!k){k=0;break}}while(0);iq(T,6);c[(S&p)>>2]=6;Ar(f,Q);do if((((a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0?(Xg(c[(T&p)+16>>2]|0,31176,-1,1,0)|0,(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(T&p)+16>>2]|0)+40|0,31184,-1,1,0)|0,(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(T&p)+16>>2]|0)+80|0,31192,-1,1,0)|0,(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0):0){Xg((c[(T&p)+16>>2]|0)+120|0,31200,-1,1,0)|0;if(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)break;Xg((c[(T&p)+16>>2]|0)+160|0,31208,-1,1,0)|0;if(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)break;Xg((c[(T&p)+16>>2]|0)+200|0,31224,-1,1,0)|0}while(0);hr(f,h)|0;t=h+38|0;m=b[(t&o)>>1]|0;if(m<<16>>16<=0)break a;u=(k|0)==0;l=k+4|0;w=0;r=0;g=c[(h&p)+4>>2]|0;while(1){s=g+23|0;if(!(a[(s&n)>>0]&2)){wh(T,25,w-r|0,1,0)|0;q=c[(g&p)>>2]|0;xh(T,wh(T,97,0,2,0)|0,q,0);q=c[(g&p)+12>>2]|0;xh(T,wh(T,97,0,3,0)|0,(q|0)==0?10360:q,0);wh(T,25,(a[(g&n)+20>>0]|0)!=0&1,4,0)|0;q=c[(g&p)+8>>2]|0;if(!q)wh(T,28,0,5,0)|0;else xh(T,wh(T,97,0,5,0)|0,q,0);k=a[(s&n)>>0]&1;e:do if(k<<24>>24==0|u)q=(k^1)&255^1;else{q=b[(t&o)>>1]|0;if(q<<16>>16<1){q=1;break}m=c[(l&p)>>2]|0;s=q<<16>>16;k=1;while(1){q=k+1|0;if((b[(m+(k+-1<<1)&o)>>1]|0)==(w|0)){q=k;break e}if((k|0)<(s|0))k=q;else break}}while(0);wh(T,25,q,6,0)|0;wh(T,35,1,6,0)|0;m=b[(t&o)>>1]|0}else r=r+1|0;w=w+1|0;if((w|0)>=(m<<16>>16|0))break;else g=g+24|0}break}case 2:{if(!U){Jt(f,g,(c[((w*12|0)&p)+30128>>2]&c[(W&p)+24>>2]|0)!=0&1,0);break a}l=c[((w*12|0)&p)+30128>>2]|0;l=(a[(W&n)+63>>0]|0)==0?l&-524289:l;if(!((ii(U,1,0)|0)<<24>>24)){G=W+24|0;c[(G&p)>>2]=c[(G&p)>>2]&~l;if((l|0)==16777216){G=W+512|0;c[(G&p)>>2]=0;c[(G&p)+4>>2]=0}}else{G=W+24|0;c[(G&p)>>2]=c[(G&p)>>2]|l}wh(T,144,0,0,0)|0;Lt(W);break a}case 5:{if(!U)break a;G=(ii(U,1,0)|0)<<24>>24!=0;F=G?32e3:19240;Qh(W,19248,2,1,F,40,0,0,0)|0;Qh(W,19248,3,1,F,40,0,0,0)|0;Qh(W,19232,2,1,10352,40,0,0,0)|0;Ot(W,19232,12);Ot(W,19248,G?12:4);break a}case 17:{g=a[(V&n)>>0]|0;A=(c[(h&p)>>2]|0)==0?-1:Q;c[(S&p)>>2]=6;iq(T,1);if(!(a[((c[(T&p)>>2]|0)&n)+65>>0]|0))Xg(c[(T&p)+16>>2]|0,31464,-1,1,0)|0;c[(z&p)>>2]=100;if(U){Dn(U,z)|0;s=c[(z&p)>>2]|0;if((s|0)<1){c[(z&p)>>2]=100;s=100}}else s=100;wh(T,25,s,1,0)|0;M=W+20|0;w=c[(M&p)>>2]|0;if((w|0)>0){L=(A|0)<0;m=T+32|0;I=T+4|0;H=T+24|0;N=(g&-33)<<24>>24==81;O=0;do{if(L|(O|0)==(A|0)){Ar(f,O);w=wh(T,137,1,0,0)|0;wh(T,24,0,0,0)|0;l=c[(m&p)>>2]|0;if(l>>>0>w>>>0)c[((c[(I&p)>>2]|0)+(w*20|0)&p)+8>>2]=l;c[((c[(H&p)>>2]|0)&p)+88>>2]=l+-1;k=(c[((c[(R&p)>>2]|0)+(O<<4)&p)+12>>2]|0)+16|0;w=c[(k&p)>>2]|0;if(!w)g=0;else{g=0;do{l=c[(w&p)+8>>2]|0;if(!(a[(l&n)+44>>0]&32)){wh(T,25,c[(l&p)+32>>2]|0,g+2|0,0)|0;g=g+1|0}l=c[(l&p)+8>>2]|0;if(l)do{wh(T,25,c[(l&p)+40>>2]|0,g+2|0,0)|0;g=g+1|0;l=c[(l&p)+20>>2]|0}while((l|0)!=0);w=c[(w&p)>>2]|0}while((w|0)!=0)}C=c[(S&p)>>2]|0;w=g+8|0;c[(S&p)>>2]=(C|0)>(w|0)?C:w;wh(T,127,2,g,1)|0;w=c[(I&p)>>2]|0;if(w)a[(w+(((c[(m&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=O;g=wh(T,76,2,0,0)|0;c[(G&p)>>2]=c[((c[(R&p)>>2]|0)+(O<<4)&p)>>2];w=uh(W,31480,G)|0;xh(T,wh(T,97,0,3,0)|0,w,-1);wh(T,32,2,4,1)|0;wh(T,94,4,3,2)|0;wh(T,35,2,1,0)|0;w=c[(m&p)>>2]|0;if(w>>>0>g>>>0)c[((c[(I&p)>>2]|0)+(g*20|0)&p)+8>>2]=w;c[((c[(H&p)>>2]|0)&p)+88>>2]=w+-1;w=c[(k&p)>>2]|0;if(!((w|0)==0|N))do{x=c[(w&p)+8>>2]|0;J=x+8|0;g=c[(J&p)>>2]|0;do if(g){f:do if(!(a[(x&n)+44>>0]&32))g=0;else while(1){if((a[(g&n)+51>>0]&3)==2)break f;g=c[(g&p)+20>>2]|0;if(!g){g=0;break}}while(0);l=wh(T,137,1,0,0)|0;wh(T,24,0,0,0)|0;k=c[(m&p)>>2]|0;if(k>>>0>l>>>0)c[((c[(I&p)>>2]|0)+(l*20|0)&p)+8>>2]=k;c[((c[(H&p)>>2]|0)&p)+88>>2]=k+-1;at(f);pt(f,x,54,1,0,D,E)|0;wh(T,25,0,7,0)|0;k=c[(J&p)>>2]|0;if(!k)l=8;else{l=0;while(1){wh(T,25,0,l+8|0,0)|0;k=c[(k&p)+20>>2]|0;if(!k)break;else l=l+1|0}l=l+9|0}K=c[(S&p)>>2]|0;c[(S&p)>>2]=(K|0)>(l|0)?K:l;wh(T,108,c[(D&p)>>2]|0,0,0)|0;K=wh(T,37,7,1,0)|0;u=x+38|0;l=b[(u&o)>>1]|0;if(l<<16>>16>0){h=x+36|0;v=x+4|0;t=0;do{do if((t|0)!=(b[(h&o)>>1]|0)){if(!(a[((c[(v&p)>>2]|0)+(t*24|0)&n)+20>>0]|0))break;nt(T,x,c[(D&p)>>2]|0,t,3);l=c[(I&p)>>2]|0;if(l)a[(l+(((c[(m&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=-128;l=wh(T,77,3,0,0)|0;wh(T,37,1,-1,0)|0;q=c[((c[(v&p)>>2]|0)+(t*24|0)&p)>>2]|0;c[(G&p)>>2]=c[(x&p)>>2];c[(G&p)+4>>2]=q;q=uh(W,31504,G)|0;xh(T,wh(T,97,0,3,0)|0,q,-1);wh(T,35,3,1,0)|0;q=wh(T,137,1,0,0)|0;wh(T,24,0,0,0)|0;r=c[(m&p)>>2]|0;if(r>>>0>l>>>0)c[((c[(I&p)>>2]|0)+(l*20|0)&p)+8>>2]=r;l=r+-1|0;k=(c[(H&p)>>2]|0)+88|0;c[(k&p)>>2]=l;if(r>>>0>q>>>0)c[((c[(I&p)>>2]|0)+(q*20|0)&p)+8>>2]=r;c[(k&p)>>2]=l;l=b[(u&o)>>1]|0}while(0);t=t+1|0}while((t|0)<(l<<16>>16|0))}l=c[(J&p)>>2]|0;if(l){z=x+4|0;y=0;r=0;k=-1;while(1){q=xs(T)|0;if((g|0)!=(l|0)){k=Pt(f,l,c[(D&p)>>2]|0,0,0,F,r,k)|0;wh(T,37,y+8|0,1,0)|0;x=e[(l&o)+48>>1]|0;q=wh(T,69,(c[(E&p)>>2]|0)+y|0,q,k)|0;xh(T,q,x,-14);wh(T,37,1,-1,0)|0;xh(T,wh(T,97,0,3,0)|0,31528,-2);wh(T,94,7,3,3)|0;xh(T,wh(T,97,0,4,0)|0,31536,-2);wh(T,94,4,3,3)|0;x=c[(l&p)>>2]|0;v=wh(T,97,0,4,0)|0;xh(T,v,x,0);wh(T,94,4,3,3)|0;wh(T,35,3,1,0)|0;x=wh(T,137,1,0,0)|0;wh(T,24,0,0,0)|0;r=c[(m&p)>>2]|0;if(r>>>0>q>>>0)c[((c[(I&p)>>2]|0)+(q*20|0)&p)+8>>2]=r;q=c[(H&p)>>2]|0;c[(q&p)+88>>2]=r+-1;if(a[(l&n)+50>>0]|0){h=xs(T)|0;u=l+46|0;q=b[(u&o)>>1]|0;if(q<<16>>16){t=l+4|0;r=0;do{if(!(a[((c[(z&p)>>2]|0)+((b[((c[(t&p)>>2]|0)+(r<<1)&o)>>1]|0)*24|0)&n)+20>>0]|0)){wh(T,76,r+k|0,h,0)|0;q=b[(u&o)>>1]|0}r=r+1|0}while((r|0)<(q&65535|0))}q=wh(T,9,(c[(E&p)>>2]|0)+y|0,0,0)|0;wh(T,16,0,h,0)|0;r=c[(m&p)>>2]|0;if(r>>>0>q>>>0)c[((c[(I&p)>>2]|0)+(q*20|0)&p)+8>>2]=r;c[((c[(H&p)>>2]|0)&p)+88>>2]=r+-1;q=e[(u&o)>>1]|0;xh(T,wh(T,114,(c[(E&p)>>2]|0)+y|0,h,k)|0,q,-14);wh(T,37,1,-1,0)|0;xh(T,wh(T,97,0,3,0)|0,31560,-2);wh(T,16,0,v,0)|0;q=c[(H&p)>>2]|0;t=~h;do if((h|0)<0){r=c[(q&p)+112>>2]|0;if(!r)break;c[(r+(t<<2)&p)>>2]=c[(m&p)>>2]}while(0);r=c[(m&p)>>2]|0;c[(q&p)+88>>2]=r+-1}if(r>>>0>x>>>0)c[((c[(I&p)>>2]|0)+(x*20|0)&p)+8>>2]=r;c[(q&p)+88>>2]=r+-1;Qt(f,c[(F&p)>>2]|0);r=l}l=c[(l&p)+20>>2]|0;if(!l)break;else y=y+1|0}}wh(T,9,c[(D&p)>>2]|0,K,0)|0;l=K+-1|0;k=c[(m&p)>>2]|0;if(k>>>0>l>>>0)c[((c[(I&p)>>2]|0)+(l*20|0)&p)+8>>2]=k;c[((c[(H&p)>>2]|0)&p)+88>>2]=k+-1;xh(T,wh(T,97,0,2,0)|0,31592,-2);l=c[(J&p)>>2]|0;if(!l)break;else q=0;while(1){if((g|0)!=(l|0)){k=c[(m&p)>>2]|0;wh(T,137,1,k+2|0,0)|0;wh(T,24,0,0,0)|0;wh(T,50,(c[(E&p)>>2]|0)+q|0,3,0)|0;wh(T,79,q+8|0,k+8|0,3)|0;k=c[(I&p)>>2]|0;if(k)a[(k+(((c[(m&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=-112;wh(T,37,1,-1,0)|0;C=c[(l&p)>>2]|0;xh(T,wh(T,97,0,3,0)|0,C,0);wh(T,94,3,2,7)|0;wh(T,35,7,1,0)|0}l=c[(l&p)+20>>2]|0;if(!l)break;else q=q+1|0}}while(0);w=c[(w&p)>>2]|0}while((w|0)!=0);w=c[(M&p)>>2]|0}O=O+1|0}while((O|0)<(w|0))}else m=T+32|0;l=yh(T,3,31448)|0;m=c[(m&p)>>2]|0;if(m>>>0>l>>>0){c[((c[(T&p)+4>>2]|0)+(l*20|0)&p)+12>>2]=0-s;c[((c[(T&p)+4>>2]|0)+(l*20|0)&p)+8>>2]=m}c[((c[(T&p)+24>>2]|0)&p)+88>>2]=m+-1;xh(T,l+1|0,31624,-2);break a}case 21:{do if(U){if(dd(U,30904)|0)if(!(dd(U,30896)|0))k=0;else{P=66;break}else k=1;if(!(c[(B&p)>>2]|0)){s=c[(W&p)+20>>2]|0;if((s|0)>2){q=c[(R&p)>>2]|0;m=k&255;r=2;do{l=c[(c[((c[(q+(r<<4)&p)+4>>2]|0)&p)+4>>2]&p)>>2]|0;do if(!(a[(l&n)+12>>0]|0)){G=c[(l&p)+208>>2]|0;if((G|0)!=0?(a[(G&n)+43>>0]|0)==2:0)break;a[(l&n)+4>>0]=m}while(0);r=r+1|0}while((r|0)<(s|0))}else m=k&255;a[(W&n)+66>>0]=m;P=74}else P=74}else P=66;while(0);if((P|0)==66)if(!(c[(B&p)>>2]|0))l=W+66|0;else{k=-1;P=74}if((P|0)==74){m=c[(c[((c[(C+(Q<<4)&p)+4>>2]|0)&p)+4>>2]&p)>>2]|0;do if((k|0)>-1?(a[(m&n)+12>>0]|0)==0:0){G=c[(m&p)+208>>2]|0;if((G|0)!=0?(a[(G&n)+43>>0]|0)==2:0)break;a[(m&n)+4>>0]=k}while(0);l=m+4|0}l=(a[(l&n)>>0]|0)==1?30904:30896;iq(T,1);if(!(a[((c[(T&p)>>2]|0)&n)+65>>0]|0))Xg(c[(T&p)+16>>2]|0,30920,-1,1,0)|0;xh(T,wh(T,97,0,1,0)|0,l,0);wh(T,35,1,1,0)|0;break a}case 16:{if(!U)break a;k=_h(W,U,L)|0;if(!k)break a;q=Oq(f)|0;iq(q,5);c[(S&p)>>2]=5;Ar(f,Q);if(((((a[((c[(q&p)>>2]|0)&n)+65>>0]|0)==0?(Xg(c[(q&p)+16>>2]|0,31288,-1,1,0)|0,(a[((c[(q&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(q&p)+16>>2]|0)+40|0,31184,-1,1,0)|0,(a[((c[(q&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(q&p)+16>>2]|0)+80|0,31296,-1,1,0)|0,(a[((c[(q&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(q&p)+16>>2]|0)+120|0,31304,-1,1,0)|0,(a[((c[(q&p)>>2]|0)&n)+65>>0]|0)==0):0)Xg((c[(q&p)+16>>2]|0)+160|0,31312,-1,1,0)|0;m=c[(k&p)+8>>2]|0;if(!m)break a;else l=0;while(1){wh(q,25,l,1,0)|0;G=c[(m&p)>>2]|0;xh(q,wh(q,97,0,2,0)|0,G,0);wh(q,25,(a[(m&n)+50>>0]|0)!=0&1,3,0)|0;G=c[((a[(m&n)+51>>0]&3)<<2&p)+31336>>2]|0;xh(q,wh(q,97,0,4,0)|0,G,0);wh(q,25,(c[(m&p)+36>>2]|0)!=0&1,5,0)|0;wh(q,35,1,5,0)|0;m=c[(m&p)+20>>2]|0;if(!m)break;else l=l+1|0}break}case 1:{k=c[(C+(Q<<4)&p)+4>>2]|0;if(!U){m=c[(k&p)+4>>2]|0;c[(m&p)+4>>2]=c[(k&p)>>2];if(!(a[(m&n)+17>>0]|0)){m=0;l=0}else{l=(a[(m&n)+18>>0]|0)==0;m=l?1:2;l=l?0:0}Jt(f,30976,m,l);break a}if(dd(U,32192)|0)if(dd(U,31880)|0)if(!(dd(U,32200)|0))m=2;else{c[(G&p)>>2]=0;Dn(U,G)|0;m=c[(G&p)>>2]|0;m=m>>>0<3?m&255:0}else m=1;else m=0;a[(W&n)+67>>0]=m;r=m+-1|0;if(!((vn(k,m)|0)==0&r>>>0<2))break a;l=yh(T,6,30992)|0;q=c[(T&p)+32>>2]|0;if(q>>>0>l>>>0)c[((c[(T&p)+4>>2]|0)+(l*20|0)&p)+4>>2]=Q;k=l+1|0;if(q>>>0>k>>>0)c[((c[(T&p)+4>>2]|0)+(k*20|0)&p)+4>>2]=Q;k=l+2|0;m=l+4|0;if(q>>>0>k>>>0)c[((c[(T&p)+4>>2]|0)+(k*20|0)&p)+8>>2]=m;if(q>>>0>m>>>0)c[((c[(T&p)+4>>2]|0)+(m*20|0)&p)+4>>2]=r;m=l+5|0;if(q>>>0>m>>>0)c[((c[(T&p)+4>>2]|0)+(m*20|0)&p)+4>>2]=Q;G=T+96|0;c[(G&p)>>2]=c[(G&p)>>2]|1<>2]=3;if(((a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0?(Xg(c[(T&p)+16>>2]|0,31288,-1,1,0)|0,(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(T&p)+16>>2]|0)+40|0,31184,-1,1,0)|0,(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0):0)Xg((c[(T&p)+16>>2]|0)+80|0,31352,-1,1,0)|0;l=W+20|0;m=c[(l&p)>>2]|0;if((m|0)>0)q=0;else break a;do{if(c[((c[(R&p)>>2]|0)+(q<<4)&p)+4>>2]|0){wh(T,25,q,1,0)|0;k=c[((c[(R&p)>>2]|0)+(q<<4)&p)>>2]|0;xh(T,wh(T,97,0,2,0)|0,k,0);k=c[(c[((c[((c[(R&p)>>2]|0)+(q<<4)&p)+4>>2]|0)&p)+4>>2]&p)>>2]|0;if(!(a[(k&n)+15>>0]|0))k=c[(k&p)+168>>2]|0;else k=10360;xh(T,wh(T,97,0,3,0)|0,k,0);wh(T,35,1,3,0)|0;m=c[(l&p)>>2]|0}q=q+1|0}while((q|0)<(m|0));break}case 6:{iq(T,2);c[(S&p)>>2]=2;if((a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0?(Xg(c[(T&p)+16>>2]|0,31288,-1,1,0)|0,(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0):0)Xg((c[(T&p)+16>>2]|0)+40|0,31184,-1,1,0)|0;m=c[(W&p)+436>>2]|0;if(!m)break a;else l=0;while(1){G=c[(m&p)+8>>2]|0;wh(T,25,l,1,0)|0;G=c[(G&p)>>2]|0;xh(T,wh(T,97,0,2,0)|0,G,0);wh(T,35,1,2,0)|0;m=c[(m&p)>>2]|0;if(!m)break;else l=l+1|0}break}case 13:{if(!U)break a;k=_h(W,U,L)|0;if(!k)break a;g=Oq(f)|0;q=c[(k&p)+16>>2]|0;if(!q)break a;iq(g,8);c[(S&p)>>2]=8;Ar(f,Q);do if((((a[((c[(g&p)>>2]|0)&n)+65>>0]|0)==0?(Xg(c[(g&p)+16>>2]|0,31360,-1,1,0)|0,(a[((c[(g&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(g&p)+16>>2]|0)+40|0,31288,-1,1,0)|0,(a[((c[(g&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(g&p)+16>>2]|0)+80|0,31232,-1,1,0)|0,(a[((c[(g&p)>>2]|0)&n)+65>>0]|0)==0):0){Xg((c[(g&p)+16>>2]|0)+120|0,31368,-1,1,0)|0;if(a[((c[(g&p)>>2]|0)&n)+65>>0]|0)break;Xg((c[(g&p)+16>>2]|0)+160|0,31376,-1,1,0)|0;if(a[((c[(g&p)>>2]|0)&n)+65>>0]|0)break;Xg((c[(g&p)+16>>2]|0)+200|0,31384,-1,1,0)|0;if(a[((c[(g&p)>>2]|0)&n)+65>>0]|0)break;Xg((c[(g&p)+16>>2]|0)+240|0,31400,-1,1,0)|0;if(a[((c[(g&p)>>2]|0)&n)+65>>0]|0)break;Xg((c[(g&p)+16>>2]|0)+280|0,31416,-1,1,0)|0}while(0);v=k+4|0;w=0;while(1){k=q+20|0;if((c[(k&p)>>2]|0)>0){m=q+25|0;l=q+26|0;t=q+8|0;h=0;do{u=c[(q+(h<<3)&p)+40>>2]|0;s=d[(m&n)>>0]|0;if((s|0)==8)r=32072;else if((s|0)==9)r=32088;else if((s|0)==6)r=32096;else if((s|0)==7)r=32056;else r=32112;s=d[(l&n)>>0]|0;if((s|0)==8)s=32072;else if((s|0)==9)s=32088;else if((s|0)==6)s=32096;else if((s|0)==7)s=32056;else s=32112;wh(g,25,w,1,0)|0;wh(g,25,h,2,0)|0;G=c[(t&p)>>2]|0;xh(g,wh(g,97,0,3,0)|0,G,0);G=c[((c[(v&p)>>2]|0)+((c[(q+(h<<3)&p)+36>>2]|0)*24|0)&p)>>2]|0;xh(g,wh(g,97,0,4,0)|0,G,0);xh(g,wh(g,(u|0)!=0?97:28,0,5,0)|0,u,0);xh(g,wh(g,97,0,6,0)|0,s,0);xh(g,wh(g,97,0,7,0)|0,r,0);xh(g,wh(g,97,0,8,0)|0,31424,0);wh(g,35,1,8,0)|0;h=h+1|0}while((h|0)<(c[(k&p)>>2]|0))}q=c[(q&p)+4>>2]|0;if(!q)break;else w=w+1|0}break}case 11:{if(!U){if(Gn(f)|0)break a;iq(T,1);if(!(a[((c[(T&p)>>2]|0)&n)+65>>0]|0))Xg(c[(T&p)+16>>2]|0,31784,-1,1,0)|0;wh(T,97,0,1,0)|0;xh(T,-1,c[(d[((c[(f&p)>>2]|0)&n)+62>>0]<<3&p)+31632>>2]|0,-2);wh(T,35,1,1,0)|0;break a}k=c[((c[(R&p)>>2]|0)&p)+12>>2]|0;if((b[(k&o)+78>>1]&5)==1)break a;else{m=31632;l=31704}do{if(!(dd(U,l)|0)){v=m;P=415;break}m=m+8|0;l=c[(m&p)>>2]|0}while((l|0)!=0);if((P|0)==415?(F=a[(v&n)+4>>0]|0,F=F<<24>>24==0?2:F,a[(W&n)+62>>0]=F,a[(k&n)+77>>0]=F,(c[(v&p)>>2]|0)!=0):0)break a;c[(G&p)>>2]=U;th(f,31800,G);break a}case 0:{s=c[((w*12|0)&p)+30128>>2]|0;F=T+96|0;c[(F&p)>>2]=c[(F&p)>>2]|1<>2]|0)>>>0>m>>>0)c[((c[(T&p)+4>>2]|0)+(m*20|0)&p)+4>>2]=Q;l=m+1|0;c[(G&p)>>2]=0;Dn(U,G)|0;k=c[(k&p)>>2]|0;if(k>>>0>l>>>0)c[((c[(T&p)+4>>2]|0)+(l*20|0)&p)+4>>2]=c[(G&p)>>2];m=m+2|0;if(k>>>0<=m>>>0)break a;c[((c[(T&p)+4>>2]|0)+(m*20|0)&p)+4>>2]=Q;c[((c[(T&p)+4>>2]|0)+(m*20|0)&p)+8>>2]=s;break a}m=yh(T,3,31848)|0;k=c[(T&p)+32>>2]|0;if(k>>>0>m>>>0)c[((c[(T&p)+4>>2]|0)+(m*20|0)&p)+4>>2]=Q;m=m+1|0;if(k>>>0>m>>>0){c[((c[(T&p)+4>>2]|0)+(m*20|0)&p)+4>>2]=Q;c[((c[(T&p)+4>>2]|0)+(m*20|0)&p)+12>>2]=s}iq(T,1);if(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)break a;Xg(c[(T&p)+16>>2]|0,V,-1,1,-1)|0;break a}case 7:{iq(T,1);c[(S&p)>>2]=1;if(!(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)){Xg(c[(T&p)+16>>2]|0,31864,-1,1,0)|0;l=0}else l=0;do{G=c[(l<<2&p)+8648>>2]|0;l=l+1|0;xh(T,wh(T,97,0,1,0)|0,G,0);wh(T,35,1,1,0)|0}while((l|0)!=4);break}case 35:{m=(c[(h&p)>>2]|0)!=0?Q:10;if(U)if(dd(U,31880)|0)if(!(dd(U,31888)|0))l=2;else{l=(dd(U,31896)|0)==0;l=l?3:0}else l=1;else l=0;iq(T,3);c[(S&p)>>2]=3;if(((a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0?(Xg(c[(T&p)+16>>2]|0,31912,-1,1,0)|0,(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(T&p)+16>>2]|0)+40|0,31920,-1,1,0)|0,(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0):0)Xg((c[(T&p)+16>>2]|0)+80|0,31928,-1,1,0)|0;wh(T,11,m,l,1)|0;wh(T,35,1,3,0)|0;break a}case 26:{of(W)|0;break a}case 34:{if(!U)l=c[(W&p)+216>>2]|0;else{c[(G&p)>>2]=0;Dn(U,G)|0;l=c[(G&p)>>2]|0;if((l|0)>0)m=21;else{l=0;m=0}c[(W&p)+216>>2]=m;c[(W&p)+220>>2]=l;l=m}if((l|0)==21){l=c[(W&p)+220>>2]|0;m=l;l=((l|0)<0)<<31>>31}else{m=0;l=0}Jt(f,31944,m,l);break a}case 27:{if((U|0)!=0?(ji(U,x)|0)==0:0){G=x;Pc(c[(G&p)>>2]|0,c[(G&p)+4>>2]|0)|0}F=(Lc()|0)==0;G=9032;Jt(f,31976,F?c[(G&p)>>2]|0:-1,F?c[(G&p)+4>>2]|0:-1);break a}case 33:{if((U|0)!=0?(E=(ji(U,s)|0)==0,G=s,F=c[(G&p)+4>>2]|0,E&((F|0)>-1|(F|0)==-1&(c[(G&p)>>2]|0)>>>0>4294967295)):0)c[(W&p)+132>>2]=0;G=c[(W&p)+132>>2]|0;Jt(f,31992,G,((G|0)<0)<<31>>31);break a}case 12:{g=c[(S&p)>>2]|0;H=g+1|0;I=g+5|0;J=g+6|0;c[(S&p)>>2]=J;K=Oq(f)|0;iq(K,4);if((((a[((c[(K&p)>>2]|0)&n)+65>>0]|0)==0?(Xg(c[(K&p)+16>>2]|0,31232,-1,1,0)|0,(a[((c[(K&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(K&p)+16>>2]|0)+40|0,20456,-1,1,0)|0,(a[((c[(K&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(K&p)+16>>2]|0)+80|0,31432,-1,1,0)|0,(a[((c[(K&p)>>2]|0)&n)+65>>0]|0)==0):0)Xg((c[(K&p)+16>>2]|0)+120|0,31440,-1,1,0)|0;Ar(f,Q);w=c[((c[((c[(R&p)>>2]|0)+(Q<<4)&p)+12>>2]|0)&p)+16>>2]|0;if(!w)break a;u=(U|0)==0;h=f+68|0;v=K+32|0;D=K+4|0;E=K+24|0;F=g+2|0;G=g+3|0;A=g+4|0;t=f+8|0;while(1){if(u){B=c[(w&p)>>2]|0;C=c[(w&p)+8>>2]|0}else{B=0;C=sh(f,0,U,L)|0}if((C|0)!=0?(M=C+16|0,(c[(M&p)>>2]|0)!=0):0){gs(f,Q,c[(C&p)+32>>2]|0,0,c[(C&p)>>2]|0);g=(b[(C&o)+38>>1]|0)+J|0;if((g|0)>(c[(S&p)>>2]|0))c[(S&p)>>2]=g;Qq(f,0,Q,C,54);w=c[(C&p)>>2]|0;xh(K,wh(K,97,0,H,0)|0,w,0);w=c[(M&p)>>2]|0;if(!w)g=1;else{g=1;do{l=_h(W,c[(w&p)+8>>2]|0,L)|0;do if(l){c[(O&p)>>2]=0;gs(f,Q,c[(l&p)+32>>2]|0,0,c[(l&p)>>2]|0);if(Mt(f,l,w,O,0)|0)break a;m=c[(O&p)>>2]|0;if(!m){Qq(f,g,Q,l,54);break}else{wh(K,54,g,c[(m&p)+40>>2]|0,Q)|0;z=c[(t&p)>>2]|0;xh(z,-1,hs(f,m)|0,-6);break}}while(0);g=g+1|0;w=c[(w&p)+4>>2]|0}while((w|0)!=0)}if((c[(h&p)>>2]|0)<(g|0))c[(h&p)>>2]=g;s=wh(K,108,0,0,0)|0;g=c[(M&p)>>2]|0;if(g){z=C+36|0;y=1;while(1){x=g+8|0;w=_h(W,c[(x&p)>>2]|0,L)|0;c[(O&p)>>2]=0;c[(N&p)>>2]=0;r=(w|0)!=0;do if(r){Mt(f,w,g,O,N)|0;l=c[(O&p)>>2]|0;m=xs(K)|0;if(!(r&(l|0)==0)){w=m;P=306;break}w=c[(g&p)+36>>2]|0;if((w|0)==(b[(z&o)>>1]|0))wh(K,103,0,J,0)|0;else{wh(K,47,0,w,J)|0;Nt(K,C,w,J);wh(K,76,J,m,0)|0;wh(K,38,J,(c[(v&p)>>2]|0)+3|0,0)|0}wh(K,70,y,0,J)|0;wh(K,16,0,m,0)|0;w=c[(v&p)>>2]|0;if(w>>>0>1)c[((c[(D&p)>>2]|0)+((w+-2|0)*20|0)&p)+8>>2]=w;c[((c[(E&p)>>2]|0)&p)+88>>2]=w+-1;w=m}else{w=xs(K)|0;l=0;P=306}while(0);do if((P|0)==306){P=0;q=g+20|0;m=c[(q&p)>>2]|0;if((m|0)>0){k=0;do{m=c[(N&p)>>2]|0;if(!m)m=g+(k<<3)+36|0;else m=m+(k<<2)|0;R=k+J|0;nt(K,C,0,c[(m&p)>>2]|0,R);wh(K,76,R,w,0)|0;k=k+1|0;m=c[(q&p)>>2]|0}while((k|0)<(m|0))}if(!r)break;k=ot(K,l)|0;l=c[(q&p)>>2]|0;xh(K,wh(K,49,J,m,I)|0,k,l);xh(K,wh(K,69,y,w,I)|0,0,-14)}while(0);wh(K,103,0,F,0)|0;l=c[(x&p)>>2]|0;xh(K,wh(K,97,0,G,0)|0,l,0);wh(K,25,y+-1|0,A,0)|0;wh(K,35,H,4,0)|0;l=c[(E&p)>>2]|0;m=~w;do if((w|0)<0){w=c[(l&p)+112>>2]|0;if(!w)break;c[(w+(m<<2)&p)>>2]=c[(v&p)>>2]}while(0);c[(l&p)+88>>2]=(c[(v&p)>>2]|0)+-1;mg(W,c[(N&p)>>2]|0);g=c[(g&p)+4>>2]|0;if(!g)break;else y=y+1|0}}wh(K,9,0,s+1|0,0)|0;g=c[(v&p)>>2]|0;if(g>>>0>s>>>0)c[((c[(D&p)>>2]|0)+(s*20|0)&p)+8>>2]=g;c[((c[(E&p)>>2]|0)&p)+88>>2]=g+-1}if(!B)break;else w=B}break}case 23:{Jt(f,31016,0,0);break a}case 31:{if(!U){Jt(f,31032,d[(W&n)+64>>0]|0,0);break a}l=a[(U&n)>>0]|0;if((l+-48&255)>=3)if(!(dd(U,31352)|0))l=1;else{l=(dd(U,15168)|0)==0;l=l?2:0}else l=(l<<24>>24)+-48|0;m=(c[(f&p)>>2]|0)+64|0;if((d[(m&n)>>0]|0)==(l|0))break a;if(Kt(f)|0)break a;a[(m&n)>>0]=l;break a}case 29:{if(!U){G=(d[(C+(Q<<4)&n)+8>>0]|0)+-1|0;Jt(f,31104,G,((G|0)<0)<<31>>31);break a}if(!(a[(W&n)+63>>0]|0)){th(f,31120,G);break a}else{a[(C+(Q<<4)&n)+8>>0]=((ii(U,0,1)|0)&255)+1;Lt(W);break a}}case 4:if(!U){G=c[((c[(C+(Q<<4)&p)+12>>2]|0)&p)+80>>2]|0;Jt(f,30848,G,((G|0)<0)<<31>>31);break a}else{c[(G&p)>>2]=0;Dn(U,G)|0;G=c[(G&p)>>2]|0;c[((c[(C+(Q<<4)&p)+12>>2]|0)&p)+80>>2]=G;pq(c[(C+(Q<<4)&p)+4>>2]|0,G);break a}default:{if(!U)l=c[(W&p)+492>>2]|0;else{c[(G&p)>>2]=0;Dn(U,G)|0;l=c[(G&p)>>2]|0;G=(l|0)>0;l=G?l:0;c[(W&p)+444>>2]=G?74:0;c[(W&p)+448>>2]=G?W:0;c[(r&p)>>2]=0;c[(W&p)+492>>2]=l}Jt(f,31968,l,((l|0)<0)<<31>>31);break a}}while(0)}else{k=c[(q&p)>>2]|0;if(k){c[(G&p)>>2]=k;th(f,10344,G);Wc(c[(q&p)>>2]|0)}G=f+64|0;c[(G&p)>>2]=(c[(G&p)>>2]|0)+1;c[(f&p)+12>>2]=g;break}}while(0);mg(W,V);mg(W,U)}}while(0);i=X;return}function Gr(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0;h=i;i=i+16|0;if((i|0)>=(j|0))fa();g=h;a:do if(!d)d=0;else{f=d;while(1){if((a[(f&n)>>0]|0)==-121){d=c[(b&p)>>2]|0;if(!(a[((c[(d&p)>>2]|0)&n)+145>>0]|0))break;a[(f&n)>>0]=101}d=c[(f&p)+4>>2]|0;if(d&16384){d=0;break a}e=f+20|0;if(!(d&2048)){if(Hr(b,c[(e&p)>>2]|0)|0){d=1;break a}}else if(fr(b,c[(e&p)>>2]|0)|0){d=1;break a}if(Gr(b,c[(f&p)+16>>2]|0)|0){d=1;break a}f=c[(f&p)+12>>2]|0;if(!f){d=0;break a}}c[(g&p)>>2]=c[(b&p)+16>>2];th(d,29984,g);d=1}while(0);i=h;return d|0}function Hr(a,b){a=a|0;b=b|0;var d=0,e=0;a:do if((b|0)!=0?(c[(b&p)>>2]|0)>0:0){d=0;e=c[(b&p)+4>>2]|0;while(1){if(Gr(a,c[(e&p)>>2]|0)|0){d=1;break a}d=d+1|0;if((d|0)>=(c[(b&p)>>2]|0)){d=0;break}else e=e+20|0}}else d=0;while(0);return d|0}function Ir(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;xh(a,wh(a,122,b,0,0)|0,d,-1);d=c[((c[(a&p)>>2]|0)&p)+20>>2]|0;if((d|0)>0){e=a+96|0;b=c[(e&p)>>2]|0;a=0;do{b=b|1<>2]=b}return}function Jr(a,d){a=a|0;d=d|0;var e=0,f=0;e=d+8|0;f=Ur(a,0,e)|0;d=d+24|0;kg(c[(a&p)>>2]|0,c[(d&p)>>2]|0);c[(d&p)>>2]=f;if(f){d=f+40|0;b[(d&o)>>1]=(b[(d&o)>>1]|0)+1<<16>>16}e=(Rt(a,e)|0)==0;return (e?f:0)|0}function Kr(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0;n=i;i=i+16|0;if((i|0)>=(j|0))fa();m=n;a:do if((b|0)!=0?(f=c[(a&p)+12>>2]|0,(c[(b&p)>>2]|0)>0):0){g=a+8|0;h=a+4|0;k=0;l=b+8|0;while(1){if(!(c[(g&p)>>2]|0)){e=l+4|0;d=c[(e&p)>>2]|0;if((d|0)!=0?(dd(d,f)|0)!=0:0)break;mg(c[(c[(a&p)>>2]&p)>>2]|0,d);c[(e&p)>>2]=0;c[(l&p)>>2]=c[(h&p)>>2]}if(fr(a,c[(l&p)+20>>2]|0)|0){d=1;break a}if(Gr(a,c[(l&p)+44>>2]|0)|0){d=1;break a}k=k+1|0;if((k|0)>=(c[(b&p)>>2]|0)){d=0;break a}else l=l+72|0}b=c[(a&p)>>2]|0;l=c[(a&p)+20>>2]|0;c[(m&p)>>2]=c[(a&p)+16>>2];c[(m&p)+4>>2]=l;c[(m&p)+8>>2]=d;th(b,29936,m);d=1}else d=0;while(0);i=n;return d|0}function Lr(b,d){b=b|0;d=d|0;var e=0,f=0,g=0;f=i;i=i+16|0;if((i|0)>=(j|0))fa();e=f;g=c[(b&p)>>2]|0;if((((a[(g&n)+145>>0]|0)==0?(a[(b&n)+18>>0]|0)==0:0)?(c[(g&p)+24>>2]&2048|0)==0:0)?(Fc(d,25568,7)|0)==0:0){c[(e&p)>>2]=d;th(b,28440,e);b=1}else b=0;i=f;return b|0}function Mr(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,o=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0;x=i;i=i+16|0;if((i|0)>=(j|0))fa();w=x;do if(d){t=e&1;v=(f|0)!=0;if(v){g=c[(f&p)>>2]|0;r=32768}else{g=St(d,e)|0;g=mh(b,g,((g|0)<0)<<31>>31)|0;r=0}c[(w&p)>>2]=g;if(g){l=(t|0)==0;if(!l)if(!(c[(d&p)+12>>2]|0))q=(c[(d&p)+20>>2]|0)==0?16396:8220;else q=8220;else q=48;s=q&60;u=d+4|0;m=c[(u&p)>>2]|0;if((m&1024|0)==0?(h=c[(d&p)+8>>2]|0,(h|0)!=0):0){k=h;while(1)if(!(a[(k&n)>>0]|0))break;else k=k+1|0;o=(k-h&1073741823)+1|0}else o=0;if(l){if(!(m&16384))k=(m&8192|0)==0?48:28;else k=12;kw(g|0,d|0,k|0)|0;fw(g+k|0,0,48-k|0)|0}else kw(g|0,d|0,s|0)|0;m=g+4|0;h=q&24576|r|c[(m&p)>>2]&-122881;c[(m&p)>>2]=h;if(o){h=g+s|0;c[(g&p)+8>>2]=h;kw(h|0,c[(d&p)+8>>2]|0,o|0)|0;h=c[(m&p)>>2]|0}k=c[(u&p)>>2]|0;do if(!((h|k)&16384)){h=d+20|0;if(!(k&2048)){c[(g&p)+20>>2]=Pr(b,c[(h&p)>>2]|0,t)|0;break}else{c[(g&p)+20>>2]=gr(b,c[(h&p)>>2]|0,t)|0;break}}while(0);h=c[(m&p)>>2]|0;if(!(h&24576)){if(c[(u&p)>>2]&16384)break;c[(g&p)+12>>2]=Mr(b,c[(d&p)+12>>2]|0,0,0)|0;c[(g&p)+16>>2]=Mr(b,c[(d&p)+16>>2]|0,0,0)|0;break}t=Tt(d,e)|0;c[(w&p)>>2]=(c[(w&p)>>2]|0)+t;if(h&8192){c[(g&p)+12>>2]=Mr(b,c[(d&p)+12>>2]|0,1,w)|0;c[(g&p)+16>>2]=Mr(b,c[(d&p)+16>>2]|0,1,w)|0}if(v)c[(f&p)>>2]=c[(w&p)>>2]}}else g=0;while(0);i=x;return g|0}function Nr(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;a:do if((b|0)!=0?(d=mh(a,8,0)|0,(d|0)!=0):0){g=b+4|0;c[(d&p)+4>>2]=c[(g&p)>>2];e=mh(a,c[(g&p)>>2]<<3,0)|0;c[(d&p)>>2]=e;if(!e){mg(a,d);d=0;break}if((c[(g&p)>>2]|0)>0){f=0;while(1){h=c[(b&p)>>2]|0;c[(e+(f<<3)&p)>>2]=kh(a,c[(h+(f<<3)&p)>>2]|0)|0;c[(e+(f<<3)&p)+4>>2]=c[(h+(f<<3)&p)+4>>2];f=f+1|0;if((f|0)>=(c[(g&p)>>2]|0))break a;e=c[(d&p)>>2]|0}}}else d=0;while(0);return d|0}function Or(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0;f=e+4|0;g=(c[(f&p)>>2]|0)+40|0;b=mh(b,g,0)|0;if(b){fw(b|0,0,g|0)|0;g=b+40|0;kw(g|0,c[(e&p)>>2]|0,c[(f&p)>>2]|0)|0;c[(b&p)+12>>2]=g;c[(b&p)+16>>2]=c[(f&p)>>2];a[(b&n)>>0]=d}return b|0}function Pr(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0;do if((d|0)!=0?(f=mh(b,8,0)|0,(f|0)!=0):0){g=c[(d&p)>>2]|0;c[(f&p)>>2]=g;if(!(e&1)){h=c[(d&p)>>2]|0;g=1;while(1)if((g|0)<(h|0))g=g<<1;else break}g=mh(b,g*20|0,0)|0;c[(f&p)+4>>2]=g;if(!g){mg(b,f);f=0;break}if((c[(d&p)>>2]|0)>0){i=0;h=c[(d&p)+4>>2]|0;while(1){c[(g&p)>>2]=Mr(b,c[(h&p)>>2]|0,e,0)|0;c[(g&p)+4>>2]=kh(b,c[(h&p)+4>>2]|0)|0;c[(g&p)+8>>2]=kh(b,c[(h&p)+8>>2]|0)|0;a[(g&n)+12>>0]=a[(h&n)+12>>0]|0;j=g+13|0;k=a[(j&n)>>0]|0;a[(j&n)>>0]=k&-2;a[(j&n)>>0]=a[(h&n)+13>>0]&2|k&-4;c[(g&p)+16>>2]=c[(h&p)+16>>2];i=i+1|0;if((i|0)>=(c[(d&p)>>2]|0))break;else{g=g+20|0;h=h+20|0}}}}else f=0;while(0);return f|0}function Qr(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0;o=i;i=i+16|0;if((i|0)>=(j|0))fa();k=o;l=c[(a&p)>>2]|0;f=c[(b&p)+20>>2]|0;a:do if(f){e=c[(l&p)+20>>2]|0;if((e|0)>0){d=c[(l&p)+16>>2]|0;h=0;while(1){g=h+1|0;if((c[(d+(h<<4)&p)+12>>2]|0)==(f|0)){g=h;break a}if((g|0)<(e|0))h=g;else break}}else g=0}else g=-1e6;while(0);d=bn((c[(b&p)+24>>2]|0)+8|0,c[(b&p)+4>>2]|0,k)|0;if(!d)f=0;else f=c[(d&p)+8>>2]|0;d=c[((c[(l&p)+16>>2]|0)+(g<<4)&p)>>2]|0;e=(g|0)==1;if((((Sq(a,e?14:16,c[(b&p)>>2]|0,c[(f&p)>>2]|0,d)|0)==0?(Sq(a,9,e?13184:13208,0,d)|0)==0:0)?(m=Oq(a)|0,(m|0)!=0):0)?(n=c[(a&p)+408>>2]|0,Ar(a,g),n=((n|0)==0?a:n)+328|0,c[(n&p)>>2]=c[(n&p)>>2]|1<>2]|0,0),xh(m,n+4|0,10720,-2),Dr(a,g),wh(m,61,0,0,0)|0,n=c[(b&p)>>2]|0,xh(m,wh(m,126,g,0,0)|0,n,0),n=a+72|0,(c[(n&p)>>2]|0)<3):0)c[(n&p)>>2]=3;i=o;return}function Rr(d,e,f,g,h,k,l){d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;var m=0,q=0,r=0,s=0,t=0,u=0,v=0;v=i;i=i+32|0;if((i|0)>=(j|0))fa();m=v;t=c[(d&p)>>2]|0;c[(m&p)>>2]=0;c[(m&p)+4>>2]=0;c[(m&p)+8>>2]=0;c[(m&p)+12>>2]=0;c[(m&p)+16>>2]=0;c[(m&p)+20>>2]=0;c[(m&p)+24>>2]=0;c[(m&p)+28>>2]=0;c[(m&p)>>2]=d;do if(h)if((a[(h&n)>>0]|0)!=27)if(!(ls(m,h)|0)){u=5;break}else{u=13;break}else{a[(h&n)>>0]=97;u=5;break}else u=5;while(0);a:do if((u|0)==5){do if(k)if((a[(k&n)>>0]|0)!=27)if(!(ls(m,k)|0))break;else{u=13;break a}else{a[(k&n)>>0]=97;break}while(0);do if(l)if((a[(l&n)>>0]|0)!=27)if(!(ls(m,l)|0))break;else{u=13;break a}else{a[(l&n)>>0]=97;break}while(0);if(g){if((a[(g&n)>>0]|0)==97)g=c[(g&p)+8>>2]|0;else g=0;if(Sq(d,e,g,0,0)|0)break}s=Oq(d)|0;m=d+60|0;g=c[(m&p)>>2]|0;q=d+56|0;r=c[(q&p)>>2]|0;if((r|0)<4){r=d+72|0;g=c[(r&p)>>2]|0;c[(r&p)>>2]=g+4;g=g+1|0}else{c[(m&p)>>2]=g+4;c[(q&p)>>2]=r+-4}Rq(d,h,g);Rq(d,k,g+1|0);Rq(d,l,g+2|0);if(s){g=g+3|0;wh(s,1,0,g-(b[(f&o)>>1]|0)|0,g)|0;g=c[(s&p)+4>>2]|0;if(g)a[(g+(((c[(s&p)+32>>2]|0)+-1|0)*20|0)&n)+3>>0]=b[(f&o)>>1];xh(s,-1,f,-5);wh(s,144,(e|0)==24&1,0,0)|0}}while(0);if((u|0)==13){f=d+64|0;c[(f&p)>>2]=(c[(f&p)>>2]|0)+1}Gk(t,h);Gk(t,k);Gk(t,l);i=v;return}function Sr(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0;m=i;i=i+16|0;if((i|0)>=(j|0))fa();l=m;g=m+4|0;h=c[(b&p)>>2]|0;a:do if(!(Gn(b)|0)){if(!d){Ut(b,0);break}if(!((e|0)!=0?(c[(e&p)>>2]|0)!=0:0))f=6;do if((f|0)==6){f=Wq(c[(b&p)>>2]|0,d)|0;if(!f)break a;if(!(Yn(h,a[(h&n)+62>>0]|0,f,0)|0)){mg(h,f);break}else{Ut(b,f);mg(h,f);break a}}while(0);d=er(b,d,e,g)|0;if((d|0)>=0?(k=Wq(h,c[(g&p)>>2]|0)|0,(k|0)!=0):0){e=c[((c[(h&p)+16>>2]|0)+(d<<4)&p)>>2]|0;f=_h(h,k,e)|0;if(f){Vt(b,f,0);mg(h,k);break}e=bq(h,k,e)|0;mg(h,k);if(!e){th(b,28872,l);break}else{f=c[(b&p)+408>>2]|0;Ar(b,d);f=((f|0)==0?b:f)+328|0;c[(f&p)>>2]=c[(f&p)>>2]|1<=(j|0))fa();f=h;g=c[(a&p)>>2]|0;if(!(Gn(a)|0)){do if(!b){b=g+20|0;e=c[(b&p)>>2]|0;if((e|0)>0){d=0;do{if((d|0)!=1){Wt(a,d);e=c[(b&p)>>2]|0}d=d+1|0}while((d|0)<(e|0))}}else{if(c[(d&p)+4>>2]|0){e=er(a,b,d,f)|0;if((e|0)<=-1)break;e=c[((c[(g&p)+16>>2]|0)+(e<<4)&p)>>2]|0;b=Wq(g,c[(f&p)>>2]|0)|0;if(!b)break;d=bq(g,b,e)|0;if(!d){e=sh(a,0,b,e)|0;if(e)Xt(a,e,0)}else Xt(a,c[(d&p)+12>>2]|0,d);mg(g,b);break}d=Wq(g,b)|0;e=Vh(g,d)|0;mg(g,d);if((e|0)>-1){Wt(a,e);break}d=Wq(g,b)|0;if(d){e=bq(g,d,0)|0;if(!e){e=sh(a,0,d,0)|0;if(e)Xt(a,e,0)}else Xt(a,c[(e&p)+12>>2]|0,e);mg(g,d)}}while(0);e=Oq(a)|0;if(e)wh(e,144,0,0,0)|0}i=h;return}function Ur(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,i=0;f=c[(d&p)>>2]|0;if(!f)e=d+4|0;else{i=c[(a&p)>>2]|0;g=c[(i&p)+20>>2]|0;i=c[(i&p)+16>>2]|0;a:do if((g|0)>0){h=0;while(1){e=h+1|0;if((c[(i+(h<<4)&p)+12>>2]|0)==(f|0)){e=h;break a}if((e|0)<(g|0))h=e;else break}}else e=0;while(0);e=i+(e<<4)|0}return sh(a,b,c[(d&p)+8>>2]|0,c[(e&p)>>2]|0)|0}function Vr(b,d){b=b|0;d=d|0;var e=0,f=0,g=0;g=i;i=i+16|0;if((i|0)>=(j|0))fa();f=g;if(d){e=d;while(1)if(!(a[(e&n)>>0]|0))break;else e=e+1|0;if((e-d&1073741823)>>>0>6?(Fc(d,25568,7)|0)==0:0){c[(f&p)>>2]=d;th(b,25576,f);e=1}else e=0}else e=0;i=g;return e|0}function Wr(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;f=i;i=i+16|0;if((i|0)>=(j|0))fa();e=f;if(!b){c[(e&p)>>2]=d;a=uh(a,25992,e)|0}else{c[(e&p)>>2]=b;c[(e&p)+4>>2]=d;e=uh(a,26e3,e)|0;mg(a,b);a=e}i=f;return a|0}function Xr(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;h=i;i=i+16|0;if((i|0)>=(j|0))fa();g=h;e=c[(a&p)>>2]|0;f=c[((c[(e&p)+16>>2]|0)&p)+28>>2]|0;if((c[(b&p)+68>>2]|0)!=(f|0)?(d=As(a,b)|0,(d|0)!=0):0){b=d;d=0;do{if((c[(b&p)+20>>2]|0)==(f|0))d=Wr(e,d,c[(b&p)>>2]|0)|0;b=c[(b&p)+32>>2]|0}while((b|0)!=0);if(d){b=c[(a&p)>>2]|0;c[(g&p)>>2]=d;b=uh(b,25968,g)|0;mg(c[(a&p)>>2]|0,d);d=b}else d=0}else d=0;i=h;return d|0}function Yr(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,q=0,r=0;r=i;i=i+16|0;if((i|0)>=(j|0))fa();n=r;o=Oq(a)|0;if(o){e=c[(a&p)>>2]|0;h=c[(b&p)+68>>2]|0;a:do if(h){k=c[(e&p)+20>>2]|0;if((k|0)>0){f=c[(e&p)+16>>2]|0;g=0;while(1){e=g+1|0;if((c[(f+(g<<4)&p)+12>>2]|0)==(h|0))break a;if((e|0)<(k|0))g=e;else{g=e;break}}}else g=0}else g=-1e6;while(0);e=As(a,b)|0;if(e)do{f=c[(a&p)>>2]|0;l=c[(e&p)+20>>2]|0;b:do if(l){m=c[(f&p)+20>>2]|0;if((m|0)>0){k=c[(f&p)+16>>2]|0;h=0;while(1){f=h+1|0;if((c[(k+(h<<4)&p)+12>>2]|0)==(l|0)){f=h;break b}if((f|0)<(m|0))h=f;else break}}else f=0}else f=-1e6;while(0);m=c[(e&p)>>2]|0;xh(o,wh(o,126,f,0,0)|0,m,0);e=c[(e&p)+32>>2]|0}while((e|0)!=0);e=c[(b&p)>>2]|0;xh(o,wh(o,124,g,0,0)|0,e,0);e=c[(a&p)>>2]|0;c[(n&p)>>2]=d;e=uh(e,25952,n)|0;if((e|0)!=0?(Ir(o,g,e),q=Xr(a,b)|0,(q|0)!=0):0)Ir(o,1,q)}i=r;return} function gh(f){f=f|0;var g=0,l=0,m=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,E=0,F=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ea=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,cc=0,dc=0,ec=0,fc=0,gc=0,hc=0,ic=0,kc=0,nc=0,oc=0,qc=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,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,Xc=0,Yc=0,Zc=0,_c=0,$c=0,ad=0,ed=0,fd=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,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,ee=0,fe=0,ge=0,he=0,ie=0,je=0,ke=0,le=0,me=0,ne=0,oe=0,pe=0,qe=0;oe=i;i=i+1040|0;if((i|0)>=(j|0))fa();ke=oe+400|0;Tc=oe+792|0;id=oe+392|0;ad=oe+788|0;Sd=oe+320|0;md=oe+784|0;pd=oe+780|0;qd=oe+280|0;Nd=oe+680|0;$c=oe+240|0;Qd=oe+200|0;_c=oe+676|0;Xc=oe+672|0;Od=oe+160|0;Uc=oe+644|0;td=oe+152|0;Jd=oe+112|0;kd=oe+640|0;Ld=oe+636|0;Yc=oe+632|0;ud=oe+628|0;Ad=oe+624|0;wd=oe+604|0;Bd=oe+600|0;od=oe+596|0;xd=oe+576|0;Sc=oe+840|0;Cd=oe+572|0;Pd=oe+104|0;Dd=oe+568|0;ed=oe+564|0;fd=oe+96|0;Rd=oe+88|0;Ed=oe+560|0;Fd=oe+556|0;Gd=oe+552|0;yd=oe+532|0;zd=oe+512|0;jd=oe+508|0;vd=oe+504|0;Zc=oe+488|0;Md=oe+48|0;Vc=oe+456|0;Rc=oe+444|0;Kd=oe+8|0;sd=oe+440|0;Id=oe+412|0;Hd=oe;zc=f+4|0;s=c[(zc&p)>>2]|0;le=c[(f&p)>>2]|0;Jc=a[(le&n)+62>>0]|0;Nc=f+8|0;z=c[(Nc&p)>>2]|0;ne=le+32|0;l=ne;m=c[(l&p)>>2]|0;l=c[(l&p)+4>>2]|0;me=f+80|0;a:do if((c[(me&p)>>2]|0)==7){y=le+65|0;z=f+44|0;r=m;g=0;t=0;m=0;ie=1317}else{c[(me&p)>>2]=0;de=f+136|0;c[(de&p)>>2]=0;c[(de&p)+4>>2]=0;de=f+20|0;c[(de&p)>>2]=0;c[(le&p)+452>>2]=0;Cc=le+240|0;b:do if(!(c[(Cc&p)>>2]|0)){be=le+292|0;if(c[(be&p)>>2]|0){r=c[(f&p)+124>>2]|0;g=le+300|0;y=c[(g&p)>>2]|0;if(!r)yc=g;else{yc=g;y=(r>>>0)%(y>>>0)|0}}else{yc=le+300|0;y=0}he=f+76|0;ge=le+65|0;Zd=le+296|0;sb=f+176|0;tb=f+184|0;ub=f+92|0;vb=le+80|0;wb=le+84|0;xb=Jc&255;yb=Jc<<24>>24==1;zb=le+88|0;Ab=f+60|0;_d=f+144|0;fe=f+86|0;je=f+44|0;Bb=f+12|0;Cb=Uc+4|0;Db=Uc+16|0;Eb=Uc+12|0;Fb=Uc+25|0;Gb=Uc+20|0;Hb=f+200|0;Ib=f+56|0;$d=f+72|0;Jb=Jd+16|0;Kb=Jd+8|0;Lb=Jd+24|0;Mb=f+87|0;ae=le+156|0;Nb=le+500|0;Ob=le+496|0;ee=le+63|0;Pb=le+488|0;Qb=le+504|0;Rb=le+512|0;Sb=le+70|0;Tb=le+24|0;Ub=le+20|0;Xd=le+16|0;Vb=le+4|0;Yd=f+88|0;Wb=f+104|0;Xb=f+152|0;Yb=f+160|0;Zb=le+152|0;_b=le+64|0;$b=wd+4|0;cc=wd+6|0;dc=wd+8|0;ec=xd+4|0;fc=xd+8|0;gc=le+212|0;hc=le+208|0;ic=f+116|0;kc=yd+4|0;nc=yd+6|0;oc=yd+8|0;qc=$c+8|0;sc=$c+32|0;uc=$c+24|0;vc=$c+16|0;wc=$c+12|0;xc=zd+4|0;Y=zd+6|0;Z=zd+8|0;_=qd+8|0;$=qd+32|0;aa=qd+24|0;ea=qd+12|0;ga=qd+16|0;ha=le+164|0;ia=Zc+8|0;ja=Zc+4|0;ka=le+145|0;la=Zc+12|0;ma=Sd+4|0;na=Sd+12|0;oa=Sd+16|0;pa=Sd+20|0;qa=Sd+24|0;ra=Sd+28|0;sa=Sd+8|0;ta=Sd+40|0;ua=Sd+44|0;va=Sd+48|0;wa=Sd+52|0;xa=Sd+56|0;ya=Sd+60|0;za=Sd+64|0;Aa=Sd+65|0;Ba=le+128|0;Ca=f+28|0;Da=f+36|0;Ea=f+32|0;Fa=f+196|0;Ga=Vc+4|0;Ha=Vc+8|0;Ia=Md+8|0;Ja=Md+32|0;Ka=Md+24|0;La=Vc+20|0;Ma=Vc+12|0;Na=Vc+16|0;Oa=Vc+24|0;Pa=Rc+8|0;Qa=Rc+4|0;Ra=le+148|0;Sa=le+176|0;Ta=le+72|0;Ua=le+67|0;Va=Tc+20|0;Wa=Tc+24|0;Xa=Tc+4|0;Ya=Tc+16|0;Za=le+304|0;_a=le+328|0;$a=Kd+32|0;ab=Kd+8|0;bb=Kd+24|0;cb=le+308|0;db=Id+20|0;eb=le+69|0;ce=f+168|0;fb=qd+4|0;gb=qd+8|0;hb=qd+12|0;ib=qd+16|0;jb=qd+20|0;kb=qd+24|0;lb=qd+25|0;mb=le+180|0;nb=Od+32|0;ob=Od+8|0;pb=Od+12|0;qb=Od+16|0;rb=Od+24|0;W=0;X=0;g=0;u=0;t=c[(he&p)>>2]|0;x=0;c:while(1){r=m;d:while(1){if(a[(ge&n)>>0]|0){y=ge;z=je;m=x;ie=1317;break a}m=g+1|0;if(!(a[(s+(t*20|0)&n)+2>>0]&2))L=u;else{u=c[(s+(t*20|0)&p)+8>>2]|0;g=z+(u*40|0)|0;u=z+(u*40|0)+8|0;if(b[(u&o)>>1]&9312)vg(g);b[(u&o)>>1]=4;L=g}C=s+(t*20|0)|0;J=a[(C&n)>>0]|0;u=J&255;e:do switch(u|0){case 17:{g=m;m=r;u=L;ie=22;break d}case 18:{g=m;m=r;u=L;ie=23;break d}case 20:{g=m;m=r;ie=24;break d}case 21:{g=m;m=r;u=L;ie=25;break d}case 22:{g=m;m=r;u=L;ie=26;break d}case 23:{g=m;m=r;u=L;r=t;ie=27;break d}case 29:{g=m;m=r;r=t;ie=65;break d}case 30:{g=m;m=r;u=L;r=t;ie=66;break d}case 28:{g=m;m=r;u=L;r=t;ie=60;break d}case 32:{g=m;m=r;r=t;ie=72;break d}case 24:{g=m;m=r;u=L;r=t;ie=28;break d}case 25:{g=m;m=r;u=L;r=t;ie=44;break d}case 26:{g=m;m=r;u=L;r=t;ie=45;break d}case 133:{g=m;m=r;u=L;r=t;ie=46;break d}case 97:{a[(C&n)>>0]=27;C=s+(t*20|0)+16|0;v=c[(C&p)>>2]|0;if(!v)g=0;else{g=v;while(1)if(!(a[(g&n)>>0]|0))break;else g=g+1|0;g=g-v&1073741823}w=s+(t*20|0)+4|0;c[(w&p)>>2]=g;if(yb)u=0;else{u=Xg(L,v,-1,1,0)|0;if((u|0)==18){g=m;m=r;u=x;ie=1316;break c}if(Yl(L,xb)|0){y=ge;z=je;g=m;m=x;ie=1317;break a}c[(L&p)+24>>2]=0;g=L+8|0;b[(g&o)>>1]=e[(g&o)>>1]|2048;g=s+(t*20|0)+1|0;if((a[(g&n)>>0]|0)==-1)mg(le,c[(C&p)>>2]|0);a[(g&n)>>0]=-1;v=c[(L&p)+16>>2]|0;c[(C&p)>>2]=v;g=c[(L&p)+12>>2]|0;c[(w&p)>>2]=g}if((g|0)>(c[(zb&p)>>2]|0)){g=m;m=r;u=x;ie=1316;break c}else ie=57;break}case 31:{g=m;m=r;u=L;r=t;ie=67;break d}case 34:{g=m;m=r;r=t;ie=79;break d}case 35:{g=m;m=r;u=x;ie=80;break c}case 33:{g=m;m=r;ie=74;break d}case 94:{g=m;m=r;ie=94;break d}case 93:case 92:case 91:case 90:case 89:{g=m;P=C;m=r;r=t;ie=112;break d}case 27:{v=c[(s+(t*20|0)&p)+16>>2]|0;g=c[(s+(t*20|0)&p)+4>>2]|0;u=0;ie=57;break}case 16:{t=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;u=0;ie=19;break}case 36:{g=m;m=r;J=L;r=t;ie=166;break d}case 1:{V=a[(s+(t*20|0)&n)+3>>0]|0;C=V&255;A=c[(Bb&p)>>2]|0;g=z+((c[(s+(t*20|0)&p)+12>>2]|0)*40|0)|0;c[(Uc&p)>>2]=g;if(V<<24>>24){g=0;u=z+((c[(s+(t*20|0)&p)+8>>2]|0)*40|0)|0;while(1){c[(A+(g<<2)&p)>>2]=u;if((b[(u&o)+8>>1]&4096)!=0?(Vl(u)|0)!=0:0){y=ge;z=je;g=m;m=x;ie=1317;break a}g=g+1|0;if((g|0)>=(C|0))break;else u=u+40|0}g=c[(Uc&p)>>2]|0}V=c[(s+(t*20|0)&p)+16>>2]|0;c[(Cb&p)>>2]=V;c[(Db&p)>>2]=t;c[(Eb&p)>>2]=f;U=g+8|0;b[(U&o)>>1]=e[(U&o)>>1]&48640|1;a[(Fb&n)>>0]=0;U=ne;c[(U&p)>>2]=r;c[(U&p)+4>>2]=l;mc[c[(V&p)+12>>2]&63](Uc,C,A);l=ne;r=c[(l&p)>>2]|0;l=c[(l&p)+4>>2]|0;if(!(a[(Fb&n)>>0]|0))g=0;else{if(!(c[(Gb&p)>>2]|0))g=0;else{c[(ke&p)>>2]=Sg(c[(Uc&p)>>2]|0,1)|0;dh(je,le,10344,ke);g=c[(Gb&p)>>2]|0}em(f,t,c[(s+(t*20|0)&p)+4>>2]|0)}Yl(c[(Uc&p)>>2]|0,xb)|0;w=c[(Uc&p)>>2]|0;v=e[(w&o)+8>>1]|0;if(v&18){u=c[(w&p)+12>>2]|0;if(v&16384)u=(c[(w&p)>>2]|0)+u|0;if((u|0)>(c[((c[(w&p)+32>>2]|0)&p)+88>>2]|0)){g=m;m=r;u=x;ie=1316;break c}else{C=L;T=t;u=g}}else{C=L;T=t;u=g}break}case 88:case 87:case 86:case 85:{g=m;H=C;m=r;r=t;ie=184;break d}case 39:{g=m;m=r;J=L;r=t;ie=208;break d}case 37:{g=m;m=r;u=L;r=t;ie=202;break d}case 38:{g=m;m=r;J=L;r=t;ie=203;break d}case 83:case 80:case 81:case 82:case 78:case 79:{g=m;I=J;m=r;u=L;ie=213;break d}case 40:{V=c[(s+(t*20|0)&p)+4>>2]|0;g=z+(V*40|0)|0;if(!(b[(z+(V*40|0)&o)+8>>1]&16384))u=0;else u=Rg(g)|0;gm(g,c[(s+(t*20|0)&p)+8>>2]&255,Jc);C=L;T=t;break}case 41:{g=m;m=r;u=L;r=t;ie=248;break d}case 42:{g=m;m=r;u=L;r=t;ie=249;break d}case 43:{g=m;m=r;u=L;ie=256;break d}case 71:case 72:{g=m;m=r;r=t;ie=261;break d}case 76:{g=m;m=r;u=L;r=t;ie=286;break d}case 19:{g=m;m=r;r=t;ie=268;break d}case 96:{g=m;m=r;r=t;ie=273;break d}case 44:{g=m;m=r;u=L;r=t;ie=278;break d}case 46:case 45:{g=m;m=r;u=L;r=t;ie=281;break d}case 77:{g=m;m=r;u=L;r=t;ie=288;break d}case 47:{g=m;m=r;u=L;ie=290;break d}case 48:{g=m;m=r;u=L;r=t;ie=368;break d}case 49:{g=m;m=r;ie=371;break d}case 50:{E=c[(c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]&p)>>2]|0;f:do if(c[(E&p)+60>>2]|0){g=qm(E)|0;if(!g){K=E+76|0;H=E+44|0;F=E+72|0;v=0;u=0;g:while(1){C=b[(K&o)>>1]|0;J=c[(E+(C<<16>>16<<2)&p)+120>>2]|0;if(!(a[(J&n)+5>>0]|0)){if(!(a[(J&n)+2>>0]|0)){v=jw(e[(J&o)+18>>1]|0,0,v|0,u|0)|0;u=G}}else{v=jw(e[(J&o)+18>>1]|0,0,v|0,u|0)|0;u=G;while(1){if(!(C<<16>>16))break g;if(J){Bg(c[(J&p)+68>>2]|0);C=b[(K&o)>>1]|0}C=C+-1<<16>>16;b[(K&o)>>1]=C;b[(H&o)>>1]=0;a[(F&n)>>0]=d[(F&n)>>0]&249;J=C<<16>>16;A=E+(J<<1)+78|0;I=b[(A&o)>>1]|0;J=c[(E+(J<<2)&p)+120>>2]|0;if((I&65535)<(e[(J&o)+18>>1]|0)){C=I;break}}b[(A&o)>>1]=C+1<<16>>16;J=b[(K&o)>>1]|0;C=J;J=c[(E+(J<<16>>16<<2)&p)+120>>2]|0}C=b[(E+(C<<16>>16<<1)&o)+78>>1]|0;A=c[(J&p)+56>>2]|0;if(C<<16>>16==(b[(J&o)+18>>1]|0)){g=d[(J&n)+6>>0]|0;g=rm(E,d[(A+g&n)+9>>0]<<16|d[(A+g&n)+8>>0]<<24|d[(A+g&n)+10>>0]<<8|d[(A+g&n)+11>>0])|0}else{g=(C&65535)<<1;V=c[(J&p)+64>>2]|0;g=(d[(V+g&n)>>0]<<8|d[(V+(g|1)&n)>>0])&e[(J&o)+20>>1];g=rm(E,d[(A+g&n)+1>>0]<<16|d[(A+g&n)>>0]<<24|d[(A+g&n)+2>>0]<<8|d[(A+g&n)+3>>0])|0}if(g){v=0;u=0;break f}}g=qm(E)|0}else{v=0;u=0}}else{g=0;v=0;u=0}while(0);C=L;c[(C&p)>>2]=v;c[(C&p)+4>>2]=u;C=L;T=t;u=g;break}case 2:{O=c[(s+(t*20|0)&p)+4>>2]|0;v=c[(s+(t*20|0)&p)+16>>2]|0;if(!O){g=m;m=r;r=t;ie=446;break d}g=c[(Pb&p)>>2]|0;if(!g){s=v;g=m;m=r;u=x;ie=460;break c}else u=0;while(1){if(!(dd(c[(g&p)>>2]|0,v)|0)){M=g;break}g=c[(g&p)+24>>2]|0;if(!g){s=v;g=m;m=r;u=x;ie=460;break c}else u=u+1|0}H=(O|0)==1;if((c[(ae&p)>>2]|0)>0&H){g=m;m=r;u=x;ie=462;break c}F=M+24|0;if(!(c[(F&p)>>2]|0)){A=(a[(Sb&n)>>0]|0)!=0;if(A&H){g=tm(f,1)|0;if(g)break a;a[(ee&n)>>0]=1;if((Rl(f)|0)==5){g=t;ie=467;break c}a[(Sb&n)>>0]=0;A=1;K=u;u=c[(me&p)>>2]|0}else ie=469}else{A=0;ie=469}if((ie|0)==469){ie=0;K=(c[(Ob&p)>>2]|0)-u+-1|0;if((O|0)==2){C=(c[(Tb&p)>>2]|0)>>>1&1;if((c[(Ub&p)>>2]|0)>0){J=C^1;I=0;while(1){u=Il(c[((c[(Xd&p)>>2]|0)+(I<<4)&p)+4>>2]|0,516,J)|0;I=I+1|0;if(u){g=m;m=r;ie=1318;break c}g=c[(Ub&p)>>2]|0;if((I|0)>=(g|0)){ie=475;break}}}}else{g=c[(Ub&p)>>2]|0;C=0;ie=475}if((ie|0)==475){ie=0;if((g|0)>0){E=0;do{u=um(c[((c[(Xd&p)>>2]|0)+(E<<4)&p)+4>>2]|0,O,K)|0;E=E+1|0;if(u){g=m;m=r;ie=1318;break c}}while((E|0)<(c[(Ub&p)>>2]|0))}}if(!C)u=0;else{C=c[(Vb&p)>>2]|0;if(C)do{V=C+88|0;b[(V&o)>>1]=b[(V&o)>>1]|8;C=c[(C&p)+52>>2]|0}while((C|0)!=0);Eg(le);c[(Tb&p)>>2]=c[(Tb&p)>>2]|2;u=0}}C=c[(Pb&p)>>2]|0;if((C|0)!=(M|0))do{c[(Pb&p)>>2]=c[(C&p)+24>>2];mg(le,C);c[(Ob&p)>>2]=(c[(Ob&p)>>2]|0)+-1;C=c[(Pb&p)>>2]|0}while((C|0)!=(M|0));if(H){c[(Pb&p)>>2]=c[(F&p)>>2];mg(le,M);if(A){C=L;T=t;break e}else{g=m;C=O;m=r;A=K;E=L;r=t;ie=486;break d}}else{V=M+8|0;U=c[(V&p)+4>>2]|0;T=Qb;c[(T&p)>>2]=c[(V&p)>>2];c[(T&p)+4>>2]=U;T=M+16|0;U=c[(T&p)+4>>2]|0;V=Rb;c[(V&p)>>2]=c[(T&p)>>2];c[(V&p)+4>>2]=U;if(A){C=L;T=t;break e}else{C=O;g=m;m=r;A=K;E=L;r=t;ie=488;break d}}}case 3:{u=x;ie=489;break c}case 4:{v=s+(t*20|0)+8|0;g=c[(v&p)>>2]|0;if((g|0)!=0?(c[(Tb&p)>>2]&33554432|0)!=0:0){g=m;m=r;u=8;ie=1318;break c}I=s+(t*20|0)+4|0;J=c[((c[(Xd&p)>>2]|0)+(c[(I&p)>>2]<<4)&p)+4>>2]|0;if(!J){v=0;u=0;g=0}else{u=yg(J,g)|0;if((u|0)==5){g=t;ie=508;break c}else if(u){g=m;m=r;ie=1318;break c}do if((c[(v&p)>>2]|0)!=0?(b[(Yd&o)>>1]&32)!=0:0){if((a[(ee&n)>>0]|0)!=0?(c[(Zb&p)>>2]|0)<=1:0){g=0;break}g=c[(Wb&p)>>2]|0;if(!g){g=(c[(Nb&p)>>2]|0)+1|0;c[(Nb&p)>>2]=g;g=(c[(Ob&p)>>2]|0)+g|0;c[(Wb&p)>>2]=g}g=sm(le,0,g+-1|0)|0;if(!g){g=c[(Wb&p)>>2]|0;V=c[(J&p)+4>>2]|0;c[(V&p)+4>>2]=c[(J&p)>>2];g=hl(c[(V&p)>>2]|0,g)|0}V=Qb;U=c[(V&p)+4>>2]|0;T=Xb;c[(T&p)>>2]=c[(V&p)>>2];c[(T&p)+4>>2]=U;T=Rb;U=c[(T&p)+4>>2]|0;V=Yb;c[(V&p)>>2]=c[(T&p)>>2];c[(V&p)+4>>2]=U}else g=0;while(0);v=c[(J&p)+4>>2]|0;c[(v&p)+4>>2]=c[(J&p)>>2];v=c[((c[(v&p)+12>>2]|0)&p)+56>>2]|0;v=d[(v&n)+41>>0]<<16|d[(v&n)+40>>0]<<24|d[(v&n)+42>>0]<<8|d[(v&n)+43>>0];u=c[((c[((c[(Xd&p)>>2]|0)+(c[(I&p)>>2]<<4)&p)+12>>2]|0)&p)+4>>2]|0}if(a[(s+(t*20|0)&n)+3>>0]|0){if((v|0)!=(c[(s+(t*20|0)&p)+12>>2]|0)){g=m;s=I;m=r;u=x;ie=522;break c}if((u|0)!=(c[(s+(t*20|0)&p)+16>>2]|0)){g=m;s=I;m=r;u=x;ie=522;break c}else{C=L;T=t;u=g}}else{C=L;T=t;u=g}break}case 53:{g=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;if((g|0)!=0?(c[(g&p)+28>>2]|0)==(c[(s+(t*20|0)&p)+8>>2]|0):0){v=s+(t*20|0)+3|0;u=0;ie=548}else ie=536;break}case 51:{g=m;m=r;u=L;r=t;ie=525;break d}case 52:{A=s+(t*20|0)+4|0;g=c[(A&p)>>2]|0;v=c[(Xd&p)>>2]|0;C=c[(s+(t*20|0)&p)+12>>2]|0;w=z+(C*40|0)|0;u=Vg(w)|0;V=w;c[(V&p)>>2]=u;c[(V&p)+4>>2]=G;C=z+(C*40|0)+8|0;b[(C&o)>>1]=e[(C&o)>>1]&48640|4;C=s+(t*20|0)+8|0;u=Dg(c[(v+(g<<4)&p)+4>>2]|0,c[(C&p)>>2]|0,u)|0;C=c[(C&p)>>2]|0;if((C|0)==1){c[(c[(v+(g<<4)&p)+12>>2]&p)>>2]=c[(w&p)>>2];c[(Tb&p)>>2]=c[(Tb&p)>>2]|2}else if((C|0)==2)a[((c[(v+(g<<4)&p)+12>>2]|0)&n)+76>>0]=c[(w&p)>>2];if((c[(A&p)>>2]|0)==1){g=c[(Vb&p)>>2]|0;if(g)do{V=g+88|0;b[(V&o)>>1]=b[(V&o)>>1]|8;g=c[(g&p)+52>>2]|0}while((g|0)!=0);b[(Yd&o)>>1]=b[(Yd&o)>>1]&-9;C=L;T=t}else{C=L;T=t}break}case 55:case 54:{ie=536;break}case 57:case 56:{g=xm(f,c[(s+(t*20|0)&p)+4>>2]|0,c[(s+(t*20|0)&p)+8>>2]|0,-1,1)|0;if(!g){y=ge;z=je;g=m;m=x;ie=1317;break a}a[(g&n)+25>>0]=1;J=g+27|0;a[(J&n)>>0]=a[(J&n)>>0]|1;v=g+4|0;I=s+(t*20|0)+3|0;u=zm(c[(le&p)>>2]|0,0,le,v,d[(I&n)>>0]|5,1054)|0;do if(!u){u=yg(c[(v&p)>>2]|0,1)|0;if(!u){A=c[(s+(t*20|0)&p)+16>>2]|0;C=c[(v&p)>>2]|0;if(!A){u=ym(C,1,1,0,c[(g&p)>>2]|0)|0;a[(J&n)>>0]=a[(J&n)>>0]|4;break}u=Am(C,ud,d[(I&n)>>0]|2)|0;if(!u){c[(g&p)+8>>2]=A;u=ym(c[(v&p)>>2]|0,c[(ud&p)>>2]|0,1,A,c[(g&p)>>2]|0)|0}a[(J&n)>>0]=a[(J&n)>>0]&-5}}while(0);a[(J&n)>>0]=((a[(I&n)>>0]|0)!=8&1)<<3&255|a[(J&n)>>0]&-9;C=L;T=t;break}case 58:{g=m;m=r;ie=558;break d}case 60:{g=m;m=r;u=L;ie=568;break d}case 61:{g=m;m=r;u=L;r=t;ie=570;break d}case 59:{g=m;m=r;u=L;r=t;ie=566;break d}case 65:case 64:case 63:case 62:{g=m;K=u;m=r;r=t;ie=571;break d}case 66:{g=m;m=r;u=L;r=t;ie=596;break d}case 69:case 68:case 67:{g=m;H=C;m=r;u=L;ie=597;break d}case 73:{g=m;m=r;u=L;r=t;ie=624;break d}case 70:{V=c[(s+(t*20|0)&p)+12>>2]|0;g=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;u=c[(g&p)>>2]|0;c[(Cd&p)>>2]=0;V=z+(V*40|0)|0;U=c[(V&p)>>2]|0;V=c[(V&p)+4>>2]|0;u=Cm(u,0,U,V,0,Cd)|0;v=g+48|0;c[(v&p)>>2]=U;c[(v&p)+4>>2]=V;a[(g&n)+25>>0]=0;c[(g&p)+60>>2]=0;a[(g&n)+26>>0]=0;v=c[(Cd&p)>>2]|0;if(v)t=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;c[(g&p)+12>>2]=v;C=L;T=t;break}case 74:{H=Pd;c[(H&p)>>2]=0;c[(H&p)+4>>2]=0;c[(Dd&p)>>2]=0;H=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;g=c[(H&p)>>2]|0;if(!g){u=0;v=0;g=0}else{K=H+27|0;do if(!(a[(K&n)>>0]&2)){u=Hm(g,Dd)|0;if(u){g=m;m=r;ie=1318;break c}if(c[(Dd&p)>>2]|0){V=Pd;c[(V&p)>>2]=1;c[(V&p)+4>>2]=0;break}km(c[(H&p)>>2]|0,Pd);u=Pd;g=c[(u&p)>>2]|0;u=c[(u&p)+4>>2]|0;if((g|0)==-1&(u|0)==2147483647){a[(K&n)>>0]=a[(K&n)>>0]|2;break}else{U=jw(g|0,u|0,1,0)|0;V=Pd;c[(V&p)>>2]=U;c[(V&p)+4>>2]=G;break}}while(0);J=c[(s+(t*20|0)&p)+12>>2]|0;if(J){g=c[(sb&p)>>2]|0;if(!g)C=z;else{while(1){u=c[(g&p)+4>>2]|0;if(!u)break;else g=u}C=c[(g&p)+16>>2]|0}I=C+(J*40|0)|0;A=Vg(I)|0;g=G;V=I;c[(V&p)>>2]=A;c[(V&p)+4>>2]=g;V=C+(J*40|0)+8|0;b[(V&o)>>1]=e[(V&o)>>1]&48640|4;if((A|0)==-1&(g|0)==2147483647){g=m;m=r;u=13;ie=1318;break c}if(a[(K&n)>>0]&2){g=m;m=r;u=13;ie=1318;break c}J=Pd;u=c[(J&p)>>2]|0;J=c[(J&p)+4>>2]|0;C=jw(A|0,g|0,1,0)|0;g=G;if((J|0)<(g|0)|(J|0)==(g|0)&u>>>0>>0){V=Pd;c[(V&p)>>2]=C;c[(V&p)+4>>2]=g}else{C=u;g=J}V=I;c[(V&p)>>2]=C;c[(V&p)+4>>2]=g}h:do if(!(a[(K&n)>>0]&2))g=0;else{u=0;while(1){cd(8,Pd);V=Pd;V=jw(c[(V&p)>>2]|0,c[(V&p)+4>>2]&1073741823|0,1,0)|0;g=G;U=Pd;c[(U&p)>>2]=V;c[(U&p)+4>>2]=g;g=Cm(c[(H&p)>>2]|0,0,V,g,0,Dd)|0;if(c[(Dd&p)>>2]|g)break h;u=u+1|0;if((u|0)>=100){g=m;m=r;u=13;ie=1318;break c}}}while(0);a[(H&n)+26>>0]=0;c[(H&p)+60>>2]=0;v=Pd;u=c[(v&p)>>2]|0;v=c[(v&p)+4>>2]|0}C=L;c[(C&p)>>2]=u;c[(C&p)+4>>2]=v;C=L;T=t;u=g;break}case 84:case 75:{g=m;C=J;m=r;u=L;r=t;ie=647;break d}case 95:{g=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;u=Jm(c[(g&p)>>2]|0)|0;c[(g&p)+60>>2]=0;if((((u|0)==0?(Gc=c[(gc&p)>>2]|0,(Gc|0)!=0):0)?(Hc=c[(s+(t*20|0)&p)+16>>2]|0,(Hc|0)!=0):0)?(a[(g&n)+27>>0]&4)!=0:0){V=g+48|0;bc[Gc&1](c[(hc&p)>>2]|0,9,c[((c[(Xd&p)>>2]|0)+(a[(g&n)+24>>0]<<4)&p)>>2]|0,Hc,c[(V&p)>>2]|0,c[(V&p)+4>>2]|0)}if(!(c[(s+(t*20|0)&p)+8>>2]&1)){C=L;T=t}else{c[(ub&p)>>2]=(c[(ub&p)>>2]|0)+1;C=L;T=t}break}case 98:{g=m;m=r;u=L;r=t;ie=671;break d}case 99:{g=m;m=r;u=L;r=t;ie=672;break d}case 100:{v=c[(s+(t*20|0)&p)+8>>2]|0;C=z+(v*40|0)|0;g=c[((c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0)&p)+56>>2]|0;if(!(a[(g&n)+56>>0]|0)){u=c[(g&p)+36>>2]|0;g=u;u=u+8|0}else{V=c[(g&p)+20>>2]|0;u=c[((c[(V&p)+8>>2]|0)&p)+4>>2]|0;V=c[(V&p)+12>>2]|0;g=V+(u*56|0)+20|0;u=c[(V+(u*56|0)&p)+32>>2]|0}g=c[(g&p)>>2]|0;if(!(fh(C,g)|0)){c[(z+(v*40|0)&p)+12>>2]=g;V=z+(v*40|0)+8|0;b[(V&o)>>1]=e[(V&o)>>1]&48640|16;kw(c[(z+(v*40|0)&p)+16>>2]|0,u|0,g|0)|0;u=0}else u=7;c[((c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+12>>2]<<2)&p)>>2]|0)&p)+60>>2]=0;T=t;break}case 102:case 101:{v=c[(s+(t*20|0)&p)+8>>2]|0;J=z+(v*40|0)|0;A=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;C=c[(A&p)>>2]|0;A=A+27|0;if(a[(A&n)>>0]&4){lm(C,ed);g=c[(ed&p)>>2]|0;if(g>>>0>(c[(zb&p)>>2]|0)>>>0){g=m;m=r;u=x;ie=1316;break c}}else{km(C,fd);T=fd;g=c[(T&p)>>2]|0;T=c[(T&p)+4>>2]|0;V=c[(zb&p)>>2]|0;U=((V|0)<0)<<31>>31;if((T|0)>(U|0)|(T|0)==(U|0)&g>>>0>V>>>0){g=m;m=r;u=x;ie=1316;break c}c[(ed&p)>>2]=g}if(fh(J,g>>>0>32?g:32)|0){y=ge;z=je;g=m;m=x;ie=1317;break a}c[(z+(v*40|0)&p)+12>>2]=g;g=z+(v*40|0)+8|0;b[(g&o)>>1]=e[(g&o)>>1]&48640|16;g=c[(ed&p)>>2]|0;u=c[(z+(v*40|0)&p)+16>>2]|0;if(!(a[(A&n)>>0]&4))u=Lm(C,0,g,u,0)|0;else u=Dh(C,0,g,u)|0;a[(z+(v*40|0)&n)+10>>0]=1;C=J;T=t;break}case 103:{v=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;w=v+25|0;if(a[(w&n)>>0]|0){g=m;m=r;u=L;r=t;ie=700;break d}do if(!(a[(v&n)+26>>0]|0)){g=c[(v&p)+32>>2]|0;if(g){V=c[(g&p)>>2]|0;u=rc[c[((c[(V&p)>>2]|0)&p)+48>>2]&127](g,Rd)|0;Mm(f,V);break}if((a[((c[(v&p)>>2]|0)&n)+73>>0]|0)!=1){u=jm(v)|0;if(u){g=m;m=r;ie=1318;break c}if(a[(w&n)>>0]|0){g=m;m=r;u=L;r=t;ie=708;break d}}km(c[(v&p)>>2]|0,Rd);u=0}else{U=v+48|0;V=c[(U&p)+4>>2]|0;u=Rd;c[(u&p)>>2]=c[(U&p)>>2];c[(u&p)+4>>2]=V;u=0}while(0);V=Rd;T=c[(V&p)+4>>2]|0;C=L;c[(C&p)>>2]=c[(V&p)>>2];c[(C&p)+4>>2]=T;C=L;T=t;break}case 108:{ie=715;break}case 104:{g=m;m=r;u=L;r=t;ie=711;break d}case 107:case 106:{c[(ic&p)>>2]=(c[(ic&p)>>2]|0)+1;ie=715;break}case 105:{T=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;u=c[(T&p)>>2]|0;c[(Ed&p)>>2]=0;u=Hm(u,Ed)|0;V=c[(Ed&p)>>2]|0;a[(T&n)+25>>0]=V;a[(T&n)+26>>0]=0;c[(T&p)+60>>2]=0;T=c[(s+(t*20|0)&p)+8>>2]|0;C=L;T=(T|0)>0&(V|0)!=0?T+-1|0:t;break}case 7:case 6:{if(!(c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0)){g=m;m=r;S=z;T=s;U=W;V=X;u=L;r=t;break d}else ie=765;break}case 5:{g=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;c[(Fd&p)>>2]=0;w=c[(g&p)+56>>2]|0;if(a[(w&n)+56>>0]|0){u=Wm(c[(w&p)+20>>2]|0,Fd)|0;ie=766;break e}u=w+36|0;v=c[(u&p)>>2]|0;V=v+4|0;c[(u&p)>>2]=c[(V&p)>>2];c[(V&p)>>2]=0;if(!((c[(w&p)+40>>2]|0)!=0|(v|0)==0))mg(le,v);c[(Fd&p)>>2]=(c[(u&p)>>2]|0)==0&1;u=0;ie=766;break}case 9:case 8:{ie=765;break}case 110:case 109:{A=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;S=c[(s+(t*20|0)&p)+8>>2]|0;u=c[(A&p)>>2]|0;C=s+(t*20|0)+3|0;if(a[(C&n)>>0]&1)c[(ub&p)>>2]=(c[(ub&p)>>2]|0)+1;if((b[(z+(S*40|0)&o)+8>>1]&16384)!=0?(Ud=Rg(z+(S*40|0)|0)|0,(Ud|0)!=0):0){g=m;m=r;s=Ud;u=x;ie=1309;break c}H=c[(A&p)+56>>2]|0;T=z+(S*40|0)+12|0;P=c[(T&p)>>2]|0;if(!H){if(!(a[(C&n)>>0]&16))g=0;else g=c[(A&p)+12>>2]|0;u=Im(u,c[(z+(S*40|0)&p)+16>>2]|0,P,((P|0)<0)<<31>>31,10360,0,0,c[(s+(t*20|0)&p)+12>>2]|0,g)|0;c[(A&p)+60>>2]=0;C=L;T=t;break e}C=P;g=((P|0)<0)<<31>>31;A=0;do{A=A+1|0;C=mw(C|0,g|0,7)|0;g=G}while(((C|0)!=0|(g|0)!=0)&(A|0)<9);K=P+8|0;I=A+P|0;M=H+4|0;A=c[(M&p)>>2]|0;do if(!A)u=0;else{if(!(c[(H&p)+40>>2]|0)){C=H+44|0;V=c[(C&p)>>2]|0;if((V|0)<=(A|0)?!((c[2265]|0)!=0?(V|0)>(c[(H&p)>>2]|0):0):0){u=0;break}}else{V=c[(H&p)+48>>2]|0;if(!((V|0)!=0&(V+K|0)>(A|0))){u=0;break}C=H+44|0}u=Om(H)|0;c[(C&p)>>2]=0;c[(H&p)+48>>2]=0}while(0);C=H+36|0;J=H+44|0;c[(J&p)>>2]=(c[(J&p)>>2]|0)+I;J=H+8|0;if((I|0)>(c[(J&p)>>2]|0))c[(J&p)>>2]=I;E=H+40|0;J=c[(E&p)>>2]|0;if(!J){g=qg(K,((K|0)<0)<<31>>31)|0;if(!g){g=m;m=r;s=7;u=x;ie=1309;break c}c[(g&p)+4>>2]=c[(C&p)>>2]}else{g=H+48|0;I=c[(g&p)>>2]|0;K=I+K|0;F=H+52|0;H=c[(F&p)>>2]|0;if((K|0)>(H|0)){I=H;do I=I<<1;while((I|0)<(K|0));V=c[(M&p)>>2]|0;I=(I|0)>(V|0)?V:I;I=(I|0)<(K|0)?K:I;J=rg(J,I,((I|0)<0)<<31>>31)|0;if(!J){g=m;m=r;s=7;u=x;ie=1309;break c}A=J+((c[(C&p)>>2]|0)-(c[(E&p)>>2]|0))|0;c[(C&p)>>2]=A;c[(E&p)>>2]=J;c[(F&p)>>2]=I;I=c[(g&p)>>2]|0}else A=c[(C&p)>>2]|0;c[(g&p)>>2]=I+(P+15&-8);c[(J+I&p)+4>>2]=A-J;g=J+I|0}kw(g+8|0,c[(z+(S*40|0)&p)+16>>2]|0,c[(T&p)>>2]|0)|0;c[(g&p)>>2]=c[(T&p)>>2];c[(C&p)>>2]=g;C=L;T=t;break}case 112:{g=m;m=r;r=t;ie=801;break d}case 111:{v=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;g=c[(v&p)>>2]|0;c[(yd&p)>>2]=c[(v&p)+8>>2];b[(kc&o)>>1]=c[(s+(t*20|0)&p)+12>>2];a[(nc&n)>>0]=0;c[(oc&p)>>2]=z+((c[(s+(t*20|0)&p)+8>>2]|0)*40|0);u=Cm(g,yd,0,0,0,Gd)|0;if(!(c[(Gd&p)>>2]|u))u=Jm(g)|0;c[(v&p)+60>>2]=0;C=L;T=t;break}case 116:case 115:case 114:case 113:{u=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;c[(zd&p)>>2]=c[(u&p)+8>>2];b[(xc&o)>>1]=c[(s+(t*20|0)&p)+16>>2];a[(Y&n)>>0]=((J&255)<115)<<31>>31;c[(Z&p)>>2]=z+((c[(s+(t*20|0)&p)+12>>2]|0)*40|0);V=Sd;c[(V&p)>>2]=0;c[(V&p)+4>>2]=0;km(c[(u&p)>>2]|0,Sd);V=Sd;g=c[(V&p)>>2]|0;V=jw(g|0,c[(V&p)+4>>2]|0,-1,-1)|0;U=G;if(!(U>>>0>0|(U|0)==0&V>>>0>2147483646)){b[(_&o)>>1]=0;c[($&p)>>2]=le;c[(aa&p)>>2]=0;g=nm(c[(u&p)>>2]|0,0,g,1,qd)|0;if(!g){u=Km(c[(ea&p)>>2]|0,c[(ga&p)>>2]|0,zd,0)|0;if((b[(_&o)>>1]&9312)==0&(c[(aa&p)>>2]|0)==0)g=0;else{Qg(qd);g=0}}else u=0}else{c[(ke&p)>>2]=68730;c[(ke&p)+4>>2]=10788;bd(11,13600,ke);g=11;u=0}if((((a[(C&n)>>0]&1)==0?u+1|0:0-u|0)|0)>0){C=L;T=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;u=g}else{C=L;T=t;u=g}break}case 117:{O=L+8|0;b[(O&o)>>1]=1;if((c[(Zb&p)>>2]|0)>((c[(ha&p)>>2]|0)+1|0)){g=m;m=r;u=x;ie=832;break c}N=c[(s+(t*20|0)&p)+12>>2]|0;M=c[((c[(Xd&p)>>2]|0)+(N<<4)&p)+4>>2]|0;P=s+(t*20|0)+4|0;I=c[(P&p)>>2]|0;C=M+4|0;K=c[(C&p)>>2]|0;c[(K&p)+4>>2]=c[(M&p)>>2];c[(ke&p)>>2]=0;do if(!(c[(K&p)+8>>2]|0)){u=dl(K,I,ke,0)|0;if(!u){u=Xm(M,I,0)|0;if(u){g=c[(ke&p)>>2]|0;if(!g){A=0;break}Bg(c[(g&p)+68>>2]|0);A=0;break}if(I>>>0<=1){g=c[(ke&p)>>2]|0;pl(g,9);if(!g){u=0;A=0;break}Bg(c[(g&p)+68>>2]|0);u=0;A=0;break}if(!(a[(K&n)+17>>0]|0)){g=c[(ke&p)>>2]|0;u=Ym(c[(g&p)+52>>2]|0,g,c[(g&p)+72>>2]|0)|0;if(!g){A=0;break}Bg(c[(g&p)+68>>2]|0);A=0;break}J=c[(C&p)>>2]|0;c[(J&p)+4>>2]=c[(M&p)>>2];J=c[((c[(J&p)+12>>2]|0)&p)+56>>2]|0;J=d[(J&n)+53>>0]<<16|d[(J&n)+52>>0]<<24|d[(J&n)+54>>0]<<8|d[(J&n)+55>>0];C=c[(ke&p)>>2]|0;if((J|0)==(I|0)){u=Ym(c[(C&p)+52>>2]|0,C,c[(C&p)+72>>2]|0)|0;if(C)Bg(c[(C&p)+68>>2]|0);if(!u)A=0;else{A=0;break}}else{if(C)Bg(c[(C&p)+68>>2]|0);u=dl(K,J,Sd,0)|0;if(u){A=0;break}C=c[(Sd&p)>>2]|0;u=Zm(K,C,1,0,I,0)|0;if(C)Bg(c[(C&p)+68>>2]|0);if(u){A=0;break}c[(Sd&p)>>2]=0;u=dl(K,J,Sd,0)|0;C=c[(Sd&p)>>2]|0;if(u){if(!C){A=0;break}}else u=Ym(c[(C&p)+52>>2]|0,C,c[(C&p)+72>>2]|0)|0;Bg(c[(C&p)+68>>2]|0);if(!u)A=J;else{A=0;break}}H=((c[2514]|0)>>>0)/((c[(K&p)+32>>2]|0)>>>0)|0;F=H+1|0;I=K+36|0;while(1){C=J+-1|0;if((C|0)==(F|0)){J=C;continue}if(C>>>0<2)E=0;else{E=J+-3|0;E=E-((E>>>0)%(((((c[(I&p)>>2]|0)>>>0)/5|0)+1|0)>>>0)|0)|0;E=((E+1|0)==(H|0)?3:2)+E|0}if((E|0)==(C|0))J=C;else break}u=Dg(M,4,C)|0}else A=0}else{u=262;A=0}while(0);b[(O&o)>>1]=4;V=L;c[(V&p)>>2]=A;c[(V&p)+4>>2]=((A|0)<0)<<31>>31;if((u|0)==0&(A|0)!=0){g=m;K=N;C=P;m=r;u=L;r=t;ie=865;break d}else{C=L;T=t}break}case 118:{c[(jd&p)>>2]=0;g=s+(t*20|0)+12|0;u=Xm(c[((c[(Xd&p)>>2]|0)+(c[(s+(t*20|0)&p)+8>>2]<<4)&p)+4>>2]|0,c[(s+(t*20|0)&p)+4>>2]|0,(c[(g&p)>>2]|0)!=0?jd:0)|0;g=c[(g&p)>>2]|0;if((g|0)!=0?(Ic=c[(jd&p)>>2]|0,c[(ub&p)>>2]=(c[(ub&p)>>2]|0)+Ic,(g|0)>0):0){C=z+(g*40|0)|0;T=C;T=jw(c[(T&p)>>2]|0,c[(T&p)+4>>2]|0,Ic|0,((Ic|0)<0)<<31>>31|0)|0;c[(C&p)>>2]=T;c[(C&p)+4>>2]=G;C=L;T=t}else{C=L;T=t}break}case 121:case 120:{c[(vd&p)>>2]=0;u=Am(c[((c[(Xd&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<4)&p)+4>>2]|0,vd,J<<24>>24==121?1:2)|0;T=c[(vd&p)>>2]|0;C=L;c[(C&p)>>2]=T;c[(C&p)+4>>2]=((T|0)<0)<<31>>31;C=L;T=t;break}case 119:{g=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;u=c[(g&p)+56>>2]|0;if(u){g=m;m=r;J=L;r=t;ie=878;break d}u=c[(g&p)>>2]|0;C=L;T=t;u=Xm(c[(u&p)>>2]|0,c[(u&p)+60>>2]|0,0)|0;break}case 123:{C=L;T=t;u=an(le,c[(s+(t*20|0)&p)+4>>2]|0)|0;break}case 124:{g=m;m=r;u=L;r=t;ie=886;break d}case 122:{g=m;m=r;J=L;r=t;ie=881;break d}case 126:{g=m;m=r;u=L;r=t;ie=895;break d}case 125:{g=m;m=r;J=L;r=t;ie=887;break d}case 127:{g=m;m=r;u=L;ie=903;break d}case 128:{g=m;m=r;J=L;ie=947;break d}case 129:{w=c[(s+(t*20|0)&p)+4>>2]|0;v=z+(w*40|0)|0;w=z+(w*40|0)+8|0;g=b[(w&o)>>1]|0;do if(g&32){E=c[(v&p)>>2]|0;u=E+26|0;g=b[(u&o)>>1]|0;if(!(g&2)){if(!(g&1)){g=E+8|0;c[(g&p)>>2]=kn(c[(g&p)>>2]|0)|0;g=b[(u&o)>>1]|0}b[(u&o)>>1]=g&65535|2}C=E+8|0;A=c[(C&p)>>2]|0;if(!A){g=b[(w&o)>>1]|0;break}w=A;v=c[(w&p)>>2]|0;w=c[(w&p)+4>>2]|0;V=c[(A&p)+8>>2]|0;c[(C&p)>>2]=V;if(!V)Zk(E);u=c[(s+(t*20|0)&p)+12>>2]|0;g=z+(u*40|0)|0;u=z+(u*40|0)+8|0;if(!(b[(u&o)>>1]&9312)){ie=g;c[(ie&p)>>2]=v;c[(ie&p)+4>>2]=w;b[(u&o)>>1]=4;u=0;ie=19;break e}else{Zg(g,v,w);u=0;ie=19;break e}}while(0);if(!(g&9312))b[(w&o)>>1]=1;else vg(v);t=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;u=0;ie=19;break}case 130:{g=m;m=r;u=L;ie=966;break d}case 131:{g=m;m=r;u=L;r=t;ie=993;break d}case 132:{g=m;m=r;u=L;r=t;ie=1009;break d}case 134:{g=m;m=r;J=L;r=t;ie=1010;break d}case 135:{g=m;m=r;u=L;r=t;ie=1015;break d}case 136:{g=m;m=r;r=t;ie=1022;break d}case 137:{g=m;m=r;u=L;r=t;ie=1028;break d}case 138:{g=m;m=r;u=L;r=t;ie=1030;break d}case 139:{g=m;m=r;J=L;r=t;ie=1032;break d}case 140:{g=m;m=r;u=L;r=t;ie=1034;break d}case 141:{g=m;m=r;u=L;r=t;ie=1036;break d}case 10:{V=a[(s+(t*20|0)&n)+3>>0]|0;g=V&255;u=c[(Bb&p)>>2]|0;if(V<<24>>24){v=0;w=z+((c[(s+(t*20|0)&p)+8>>2]|0)*40|0)|0;while(1){c[(u+(v<<2)&p)>>2]=w;v=v+1|0;if((v|0)>=(g|0))break;else w=w+40|0}}V=c[(s+(t*20|0)&p)+16>>2]|0;c[(Ga&p)>>2]=V;U=c[(s+(t*20|0)&p)+12>>2]|0;c[(Ha&p)>>2]=z+(U*40|0);U=z+(U*40|0)+12|0;c[(U&p)>>2]=(c[(U&p)>>2]|0)+1;b[(Ia&o)>>1]=1;c[(Ja&p)>>2]=le;c[(Ka&p)>>2]=0;c[(Vc&p)>>2]=Md;c[(La&p)>>2]=0;c[(Ma&p)>>2]=f;c[(Na&p)>>2]=t;a[(Oa&n)>>0]=0;mc[c[(V&p)+16>>2]&63](Vc,g,u);if(!(c[(La&p)>>2]|0))u=0;else{c[(ke&p)>>2]=Sg(Md,1)|0;dh(je,le,10344,ke);u=c[(La&p)>>2]|0}do if((a[(Oa&n)>>0]|0)!=0?(Mc=c[(s+((t+-1|0)*20|0)&p)+4>>2]|0,(Mc|0)!=0):0){g=z+(Mc*40|0)|0;v=z+(Mc*40|0)+8|0;if(!(b[(v&o)>>1]&9312)){V=g;c[(V&p)>>2]=1;c[(V&p)+4>>2]=0;b[(v&o)>>1]=4;break}else{Zg(g,1,0);break}}while(0);if((b[(Ia&o)>>1]&9312)==0&(c[(Ka&p)>>2]|0)==0){C=L;T=t}else{Qg(Md);C=L;T=t}break}case 11:{c[(Rc&p)>>2]=0;c[(Pa&p)>>2]=-1;c[(Qa&p)>>2]=-1;g=Wh(le,c[(s+(t*20|0)&p)+4>>2]|0,c[(s+(t*20|0)&p)+8>>2]|0,Qa,Pa)|0;if((g|0)==5){c[(Rc&p)>>2]=1;g=0}v=0;w=z+((c[(s+(t*20|0)&p)+12>>2]|0)*40|0)|0;while(1){C=c[(Rc+(v<<2)&p)>>2]|0;A=((C|0)<0)<<31>>31;u=w+8|0;if(!(b[(u&o)>>1]&9312)){V=w;c[(V&p)>>2]=C;c[(V&p)+4>>2]=A;b[(u&o)>>1]=4}else Zg(w,C,A);v=v+1|0;if((v|0)==3){C=L;T=t;u=g;break}else w=w+40|0}break}case 142:{C=c[(s+(t*20|0)&p)+4>>2]|0;v=z+(C*40|0)|0;u=Yk(v,c[(s+(t*20|0)&p)+16>>2]|0)|0;if(u){c[(ke&p)>>2]=Sg(v,1)|0;dh(je,le,10344,ke)}Yl(v,xb)|0;w=e[(z+(C*40|0)&o)+8>>1]|0;if(w&18){g=c[(z+(C*40|0)&p)+12>>2]|0;if(w&16384)g=(c[(v&p)>>2]|0)+g|0;if((g|0)>(c[((c[(z+(C*40|0)&p)+32>>2]|0)&p)+88>>2]|0)){g=m;m=r;u=x;ie=1316;break c}else{C=L;T=t}}else{C=L;T=t}break}case 12:{g=c[(s+(t*20|0)&p)+12>>2]|0;L=c[((c[(Xd&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<4)&p)+4>>2]|0;I=c[(c[(L&p)+4>>2]&p)>>2]|0;J=a[(I&n)+5>>0]|0;H=J&255;g=(g|0)==-1?H:g;do if((d[(I&n)+16>>0]|0)>2)g=H;else if((c[(c[(I&p)+64>>2]&p)>>2]|0)!=0?(V=I+72|0,U=c[(V&p)+4>>2]|0,(U|0)>0|(U|0)==0&(c[(V&p)>>2]|0)>>>0>0):0){g=H;break}while(0);if(!(a[(I&n)+15>>0]|0))A=c[(I&p)+168>>2]|0;else A=10360;K=(g|0)==5;if(K)if(A){C=A;while(1)if(!(a[(C&n)>>0]|0))break;else C=C+1|0;if(C-A&1073741823){C=c[(c[(I&p)+60>>2]&p)>>2]|0;if(!(a[(I&n)+4>>0]|0))if((c[(C&p)>>2]|0)>1?!((c[(C&p)+52>>2]|0)==0|(g|0)==(H|0)):0)ie=1077;else{g=H;u=0}else ie=1076}else{g=H;u=0}}else{g=H;u=0}else ie=1076;if((ie|0)==1076){ie=0;if((g|0)==(H|0)){g=H;u=0}else ie=1077}do if((ie|0)==1077){ie=0;C=J<<24>>24==5;if(C|K){if(!(a[(ee&n)>>0]|0)){g=m;s=K;m=r;u=x;ie=1080;break c}if((c[(Zb&p)>>2]|0)>1){g=m;s=K;m=r;u=x;ie=1080;break c}if(!C){if(J<<24>>24==4)sn(I,2)|0}else{J=I+208|0;if(!(c[(J&p)>>2]|0)){c[(_c&p)>>2]=0;u=fl(I,1)|0;if(u)break;u=c[(I&p)>>2]|0;u=pc[c[(u&p)+32>>2]&31](u,c[(I&p)+212>>2]|0,0,_c)|0;if((u|0)==0&(c[(_c&p)>>2]|0)!=0)u=pn(I)|0;if(u)break;if(c[(J&p)>>2]|0)ie=1088}else ie=1088;if((ie|0)==1088){ie=0;u=qn(I)|0;if(u)break;u=rn(c[(J&p)>>2]|0,d[(I&n)+9>>0]|0,c[(I&p)+152>>2]|0,c[(I&p)+200>>2]|0)|0;c[(J&p)>>2]=0;if(u)break}sn(I,g)|0}u=Fg(L,K?2:1)|0}else u=0}while(0);g=sn(I,(u|0)==0?g:H)|0;C=c[(s+(t*20|0)&p)+8>>2]|0;J=z+(C*40|0)|0;b[(z+(C*40|0)&o)+8>>1]=2562;if((g|0)==6){c[(z+(C*40|0)&p)+16>>2]=0;g=0}else{v=c[(g<<2&p)+32216>>2]|0;c[(z+(C*40|0)&p)+16>>2]=v;g=v;while(1)if(!(a[(g&n)>>0]|0))break;else g=g+1|0;g=g-v&1073741823}c[(z+(C*40|0)&p)+12>>2]=g;a[(z+(C*40|0)&n)+10>>0]=1;Yl(J,xb)|0;C=J;T=t;break}case 13:{if(!(a[(ee&n)>>0]|0)){g=m;m=r;u=x;ie=1101;break c}if((c[(Ra&p)>>2]|0)>1){g=m;m=r;u=x;ie=1103;break c}S=c[(Tb&p)>>2]|0;N=c[(vb&p)>>2]|0;w=c[(wb&p)>>2]|0;v=c[(Sa&p)>>2]|0;c[(Tb&p)>>2]=S&-2762753|2107392;c[(Sa&p)>>2]=0;g=c[((c[(Xd&p)>>2]|0)&p)+4>>2]|0;P=g+4|0;I=a[((c[(c[(P&p)>>2]&p)>>2]|0)&n)+15>>0]|0;V=c[(Ub&p)>>2]|0;u=tn(le,je,(a[(_b&n)>>0]|0)==2?42432:42464)|0;J=c[(Ub&p)>>2]|0;if((J|0)>(V|0))M=(c[(Xd&p)>>2]|0)+(J+-1<<4)|0;else M=0;i:do if(!u){O=c[((c[(Xd&p)>>2]|0)+(J+-1<<4)&p)+4>>2]|0;un(O)|0;T=c[(P&p)>>2]|0;c[(T&p)+4>>2]=c[(g&p)>>2];T=(c[(T&p)+32>>2]|0)-(c[(T&p)+36>>2]|0)|0;u=tn(le,je,42488)|0;if(!u){u=tn(le,je,42528)|0;if(!u){u=yg(g,2)|0;if(!u){J=c[(P&p)>>2]|0;if((a[((c[(J&p)>>2]|0)&n)+5>>0]|0)==5)c[(Ta&p)>>2]=0;if(!(xg(O,c[(J&p)+32>>2]|0,T,0)|0)){if(I<<24>>24==0?(xg(O,c[(Ta&p)>>2]|0,T,0)|0)!=0:0){u=7;break}if(a[(ge&n)>>0]|0){u=7;break}J=a[(Ua&n)>>0]|0;do if(J<<24>>24>-1)J=J<<24>>24;else{J=c[(P&p)>>2]|0;c[(J&p)+4>>2]=c[(g&p)>>2];if(!(a[(J&n)+17>>0]|0)){J=0;break}J=(a[(J&n)+18>>0]|0)==0?1:2}while(0);vn(O,J)|0;u=wn(le,je,42536)|0;if(u)break;u=wn(le,je,42688)|0;if(u)break;u=wn(le,je,42792)|0;if(u)break;u=wn(le,je,42912)|0;if(u)break;u=wn(le,je,43112)|0;if(u)break;u=wn(le,je,43232)|0;if(u)break;u=tn(le,je,43392)|0;if(!u)J=0;else break;do{u=d[(J&n)+43576>>0]|0;wm(g,u,ad);u=Dg(O,u,(d[((J|1)&n)+43576>>0]|0)+(c[(ad&p)>>2]|0)|0)|0;J=J+2|0;if(u)break i}while((J|0)<10);H=c[(P&p)>>2]|0;c[(H&p)+4>>2]=c[(g&p)>>2];J=c[(O&p)>>2]|0;K=O+4|0;I=c[(K&p)>>2]|0;c[(I&p)+4>>2]=J;H=c[((c[(H&p)>>2]|0)&p)+60>>2]|0;F=c[(H&p)>>2]|0;if(F){V=c[(I&p)+32>>2]|0;V=sw(c[(I&p)+44>>2]|0,0,V|0,((V|0)<0)<<31>>31|0)|0;u=id;c[(u&p)>>2]=V;c[(u&p)+4>>2]=G;u=ac[c[(F&p)+40>>2]&63](H,11,id)|0;u=(u|0)==12?0:u;if(u)break;J=c[(O&p)>>2]|0}U=Tc+0|0;V=U+48|0;do{c[(U&p)>>2]=0;U=U+4|0}while((U|0)<(V|0));c[(Va&p)>>2]=J;c[(Wa&p)>>2]=O;c[(Xa&p)>>2]=g;c[(Ya&p)>>2]=1;gd(Tc,2147483647)|0;u=hd(Tc)|0;if(u){C=c[(c[((c[(Xa&p)>>2]|0)&p)+4>>2]&p)>>2]|0;if(a[(C&n)+15>>0]|0)break;if(a[(C&n)+12>>0]|0)break;xn(C);break}u=(c[(P&p)>>2]|0)+22|0;b[(u&o)>>1]=e[(u&o)>>1]&65533;u=un(O)|0;if(u)break;J=c[(K&p)>>2]|0;c[(J&p)+4>>2]=c[(O&p)>>2];if(!(a[(J&n)+17>>0]|0))E=0;else E=(a[(J&n)+18>>0]|0)==0?1:2;vn(g,E)|0;u=xg(g,c[((c[(K&p)>>2]|0)&p)+32>>2]|0,T,1)|0}else u=7}}}}while(0);c[(Tb&p)>>2]=S;c[(vb&p)>>2]=N;c[(wb&p)>>2]=w;c[(Sa&p)>>2]=v;xg(g,-1,-1,1)|0;a[(ee&n)>>0]=1;if(M){V=M+4|0;Ml(c[(V&p)>>2]|0);c[(V&p)>>2]=0;c[(M&p)+12>>2]=0}Eg(le);C=L;T=t;break}case 143:{V=c[((c[(Xd&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<4)&p)+4>>2]|0;I=c[(V&p)+4>>2]|0;c[(I&p)+4>>2]=c[(V&p)>>2];if(!(a[(I&n)+17>>0]|0)){g=m;m=r;u=L;ie=1157;break d}E=I+44|0;H=c[(E&p)>>2]|0;A=I+12|0;C=c[((c[(A&p)>>2]|0)&p)+56>>2]|0;C=d[(C&n)+37>>0]<<16|d[(C&n)+36>>0]<<24|d[(C&n)+38>>0]<<8|d[(C&n)+39>>0];F=El(I,H,C)|0;if(H>>>0>>0){g=m;m=r;u=x;ie=1145;break c}if(!C){g=m;m=r;u=L;ie=1157;break d}J=I+8|0;g=c[(J&p)>>2]|0;do if(g){C=g;do{if(C){ie=1150;break}C=c[2]|0}while((C|0)!=0);if((ie|0)==1150){ie=0;u=Fl(C,0,0)|0;if(u)break;g=c[(J&p)>>2]|0}if(g){do{V=g+72|0;a[(V&n)>>0]=d[(V&n)>>0]&251;g=c[(g&p)+8>>2]|0}while((g|0)!=0);ie=1154}else ie=1154}else ie=1154;while(0);if((ie|0)==1154){ie=0;u=Gl(I,F,H,0)|0;if(!u){u=Gg(c[((c[(A&p)>>2]|0)&p)+68>>2]|0)|0;V=c[((c[(A&p)>>2]|0)&p)+56>>2]|0;U=c[(E&p)>>2]|0;a[(V&n)+28>>0]=U>>>24;a[(V&n)+29>>0]=U>>>16;a[(V&n)+30>>0]=U>>>8;a[(V&n)+31>>0]=U}}if((u|0)==101){g=m;m=r;u=L;ie=1157;break d}else{C=L;T=t}break}case 145:{g=c[(s+(t*20|0)&p)+12>>2]|0;if((g&255|0)==0?(c[(Tb&p)>>2]&16384|0)!=0:0){g=m;m=r;S=z;T=s;U=W;V=X;u=L;r=t;break d}C=c[((c[(Xd&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<4)&p)+4>>2]|0;A=c[(s+(t*20|0)&p)+8>>2]|0;if(!(a[(C&n)+9>>0]|0)){g=m;m=r;S=z;T=s;U=W;V=X;u=L;r=t;break d}v=g+1&255;w=C+4|0;c[((c[(w&p)>>2]|0)&p)+4>>2]=c[(C&p)>>2];u=bl(C,A,v)|0;if(!u){g=m;m=r;u=L;r=t;ie=1166;break d}if((u&255|0)!=6){g=m;m=r;s=u;u=x;ie=1309;break c}c[(ke&p)>>2]=c[(s+(t*20|0)&p)+16>>2];dh(je,le,42224,ke);C=L;T=t;break}case 144:{g=m;m=r;u=L;r=t;ie=1158;break d}case 146:{J=c[(s+(t*20|0)&p)+16>>2]|0;v=c[(Za&p)>>2]|0;u=(v|0)>0;if(u?(c[(_a&p)>>2]|0)==0:0){u=6;ie=1188}else ie=1179;j:do if((ie|0)==1179){ie=0;if(!J){g=m;m=r;S=z;T=s;U=W;V=X;u=L;r=t;break d}g=J+8|0;w=(c[(c[(g&p)>>2]&p)>>2]|0)+56|0;if(c[(w&p)>>2]|0){if(u){C=c[(_a&p)>>2]|0;A=0;do{if((c[(C+(A<<2)&p)>>2]|0)==(J|0)){u=0;ie=1188;break j}A=A+1|0}while((A|0)<(v|0))}u=yn(le)|0;if(!u){u=lc[c[(w&p)>>2]&127](c[(g&p)>>2]|0)|0;if(!u){u=c[(Za&p)>>2]|0;c[(Za&p)>>2]=u+1;c[((c[(_a&p)>>2]|0)+(u<<2)&p)>>2]=J;u=J+12|0;c[(u&p)>>2]=(c[(u&p)>>2]|0)+1;u=0}}else ie=1188}else u=0}while(0);if((ie|0)==1188){ie=0;if(!J){C=L;T=t;break e}g=J+8|0}Mm(f,c[(g&p)>>2]|0);C=L;T=t;break}case 147:{U=Kd+0|0;V=U+40|0;do{c[(U&p)>>2]=0;U=U+4|0}while((U|0)<(V|0));c[($a&p)>>2]=le;g=_g(Kd,z+((c[(s+(t*20|0)&p)+8>>2]|0)*40|0)|0)|0;u=Sg(Kd,1)|0;k:do if(u){v=_h(le,u,c[((c[(Xd&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<4)&p)>>2]|0)|0;g=c[(c[(v&p)+56>>2]&p)>>2]|0;u=bn(cb,g,Xc)|0;if((u|0)!=0?(Oc=c[(u&p)+8>>2]|0,(Oc|0)!=0):0){g=zn(le,v,Oc,c[((c[(Oc&p)>>2]|0)&p)+4>>2]|0,je)|0;if(g)break;u=v+60|0;g=c[(u&p)>>2]|0;if(!g){g=0;break}while(1){if((c[(g&p)>>2]|0)==(le|0))break;g=c[(g&p)+24>>2]|0;if(!g){g=0;break k}}g=yn(le)|0;if(g)break;g=c[(u&p)>>2]|0;l:do if(!g)g=0;else while(1){if((c[(g&p)>>2]|0)==(le|0))break l;g=c[(g&p)+24>>2]|0;if(!g){g=0;break}}while(0);V=c[(Za&p)>>2]|0;c[(Za&p)>>2]=V+1;c[((c[(_a&p)>>2]|0)+(V<<2)&p)>>2]=g;g=g+12|0;c[(g&p)>>2]=(c[(g&p)>>2]|0)+1;g=0;break}c[(ke&p)>>2]=g;c[(je&p)>>2]=uh(le,28320,ke)|0;g=1}while(0);if((b[(ab&o)>>1]&9312)==0&(c[(bb&p)>>2]|0)==0){C=L;T=t;u=g}else{Qg(Kd);C=L;T=t;u=g}break}case 148:{c[(ha&p)>>2]=(c[(ha&p)>>2]|0)+1;g=_h(le,c[(s+(t*20|0)&p)+16>>2]|0,c[((c[(Xd&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<4)&p)>>2]|0)|0;m:do if((g|0)!=0?(Pc=g+60|0,Qc=c[(Pc&p)>>2]|0,(Qc|0)!=0):0){u=Qc;do{if((c[((c[(u&p)+8>>2]|0)&p)+4>>2]|0)>0){u=6;break m}u=c[(u&p)+24>>2]|0}while((u|0)!=0);g=Ok(le,g)|0;v=g+8|0;u=lc[c[((c[(c[(g&p)+4>>2]&p)>>2]|0)&p)+20>>2]&127](c[(v&p)>>2]|0)|0;if(!u){c[(v&p)>>2]=0;c[(Pc&p)>>2]=0;An(g);u=0}}else u=0;while(0);c[(ha&p)>>2]=(c[(ha&p)>>2]|0)+-1;C=L;T=t;break}case 149:{g=m;m=r;u=L;r=t;ie=1213;break d}case 150:{g=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;C=c[(s+(t*20|0)&p)+12>>2]|0;A=z+(C*40|0)|0;if(a[(g&n)+25>>0]|0){g=m;m=r;u=L;r=t;ie=1226;break d}V=g+32|0;u=c[(c[(V&p)>>2]&p)>>2]|0;U=c[(u&p)>>2]|0;c[(Id&p)>>2]=0;c[(Id&p)+4>>2]=0;c[(Id&p)+8>>2]=0;c[(Id&p)+12>>2]=0;c[(Id&p)+16>>2]=0;c[(Id&p)+20>>2]=0;c[(Id&p)+24>>2]=0;c[(Id&p)>>2]=A;v=z+(C*40|0)+8|0;b[(v&o)>>1]=e[(v&o)>>1]&48640|1;V=ac[c[(U&p)+44>>2]&63](c[(V&p)>>2]|0,Id,c[(s+(t*20|0)&p)+8>>2]|0)|0;Mm(f,u);u=c[(db&p)>>2]|0;u=(u|0)==0?V:u;Yl(A,xb)|0;v=e[(v&o)>>1]|0;if(v&18){g=c[(z+(C*40|0)&p)+12>>2]|0;if(v&16384)g=(c[(A&p)>>2]|0)+g|0;if((g|0)>(c[((c[(z+(C*40|0)&p)+32>>2]|0)&p)+88>>2]|0)){g=m;m=r;u=x;ie=1316;break c}else{C=L;T=t}}else{C=L;T=t}break}case 14:{A=c[(s+(t*20|0)&p)+12>>2]|0;C=A+1|0;F=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;J=c[(F&p)+32>>2]|0;I=c[(J&p)>>2]|0;H=c[(I&p)>>2]|0;E=c[(z+(C*40|0)&p)>>2]|0;A=c[(z+(A*40|0)&p)>>2]|0;g=c[(Bb&p)>>2]|0;if((E|0)>0){u=0;do{V=u;u=u+1|0;c[(g+(V<<2)&p)>>2]=z+((u+C|0)*40|0)}while((u|0)!=(E|0))}u=tc[c[(H&p)+32>>2]&31](J,A,c[(s+(t*20|0)&p)+16>>2]|0,E,g)|0;Mm(f,I);if((u|0)==0?(lc[c[(H&p)+40>>2]&127](J)|0)!=0:0)t=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;a[(F&n)+25>>0]=0;C=L;T=t;break}case 151:{g=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;if(a[(g&n)+25>>0]|0){g=m;m=r;S=z;T=s;U=W;V=X;u=L;r=t;break d}g=g+32|0;v=c[(g&p)>>2]|0;V=c[(v&p)>>2]|0;u=c[(V&p)>>2]|0;v=lc[c[(u&p)+36>>2]&127](v)|0;Mm(f,V);if((v|0)==0?(lc[c[(u&p)+40>>2]&127](c[(g&p)>>2]|0)|0)!=0:0){u=0;ie=19;break e}t=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;u=v;ie=19;break}case 15:{F=s+(t*20|0)+16|0;v=c[((c[(F&p)>>2]|0)&p)+8>>2]|0;if(!v){g=m;m=r;s=6;u=x;ie=1309;break c}g=c[(v&p)>>2]|0;if(!g){g=m;m=r;s=6;u=x;ie=1309;break c}I=c[(s+(t*20|0)&p)+8>>2]|0;E=g+52|0;C=c[(E&p)>>2]|0;if(!C){g=m;m=r;S=z;T=s;U=W;V=X;u=L;r=t;break d}H=a[(eb&n)>>0]|0;J=c[(Bb&p)>>2]|0;if((I|0)>0){C=0;A=z+((c[(s+(t*20|0)&p)+12>>2]|0)*40|0)|0;while(1){c[(J+(C<<2)&p)>>2]=A;C=C+1|0;if((C|0)==(I|0))break;else A=A+40|0}C=c[(E&p)>>2]|0}A=s+(t*20|0)+3|0;a[(eb&n)>>0]=a[(A&n)>>0]|0;u=pc[C&31](v,I,J,Hd)|0;a[(eb&n)>>0]=H;Mm(f,v);if(!u){if(c[(s+(t*20|0)&p)+4>>2]|0){l=Hd;r=c[(l&p)>>2]|0;l=c[(l&p)+4>>2]|0;V=ne;c[(V&p)>>2]=r;c[(V&p)+4>>2]=l}}else if((u&255|0)==19?(a[((c[(F&p)>>2]|0)&n)+16>>0]|0)!=0:0){g=a[(A&n)>>0]|0;if(g<<24>>24==5)g=2;else if(g<<24>>24==4){g=m;m=r;S=z;T=s;U=W;V=X;u=L;r=t;break d}a[(fe&n)>>0]=g;C=L;T=t;break e}c[(ub&p)>>2]=(c[(ub&p)>>2]|0)+1;C=L;T=t;break}case 152:{g=c[((c[(s+(t*20|0)&p)+16>>2]|0)&p)+8>>2]|0;u=c[(s+(t*20|0)&p)+4>>2]|0;v=z+(u*40|0)|0;if(((b[(z+(u*40|0)&o)+8>>1]&2)!=0?(a[(z+(u*40|0)&n)+10>>0]|0)!=1:0)?(Wd=Bn(v,1)|0,(Wd|0)!=0):0){g=m;m=r;s=Wd;u=x;ie=1309;break c}u=rc[c[((c[(g&p)>>2]|0)&p)+76>>2]&127](g,c[(z+(u*40|0)&p)+16>>2]|0)|0;Mm(f,g);b[(Yd&o)>>1]=b[(Yd&o)>>1]&-9;C=L;T=t;break}case 153:{g=m;m=r;u=L;r=t;ie=1257;break d}case 155:{g=m;m=r;ie=1264;break d}case 154:{g=m;m=r;J=L;r=t;ie=1258;break d}default:{g=m;m=r;S=z;T=s;U=W;V=X;u=L;r=t;break d}}while(0);n:do if((ie|0)==57){ie=0;w=L+8|0;b[(w&o)>>1]=2562;c[(L&p)+16>>2]=v;c[(L&p)+12>>2]=g;a[(L&n)+10>>0]=Jc;if((a[(s+(t*20|0)&n)+3>>0]|0)!=0?(V=z+((c[(s+(t*20|0)&p)+12>>2]|0)*40|0)|0,!((c[(V&p)>>2]|0)==0&(c[(V&p)+4>>2]|0)==0)):0){b[(w&o)>>1]=2576;C=L;T=t}else{C=L;T=t}}else if((ie|0)==536){if(b[(Yd&o)>>1]&8){g=m;m=r;s=516;u=x;ie=1309;break c}C=c[(s+(t*20|0)&p)+8>>2]|0;I=c[(s+(t*20|0)&p)+12>>2]|0;g=c[(Xd&p)>>2]|0;H=c[(g+(I<<4)&p)+4>>2]|0;if(J<<24>>24==55){g=a[((c[(g+(I<<4)&p)+12>>2]|0)&n)+76>>0]|0;if((g&255)<(d[(Mb&n)>>0]|0)){a[(Mb&n)>>0]=g;J=1}else J=1}else J=0;v=s+(t*20|0)+3|0;if(a[(v&n)>>0]&4){V=z+(C*40|0)|0;g=Vg(V)|0;c[(V&p)>>2]=g;c[(V&p)+4>>2]=G;V=z+(C*40|0)+8|0;b[(V&o)>>1]=e[(V&o)>>1]&48640|4;if((g|0)<2){g=m;m=r;s=x;ie=542;break c}else E=g}else E=C;u=s+(t*20|0)+1|0;C=a[(u&n)>>0]|0;if(C<<24>>24==-6){A=c[(s+(t*20|0)&p)+16>>2]|0;C=(e[(A&o)+8>>1]|0)+(e[(A&o)+6>>1]|0)|0}else if(C<<24>>24==-14){C=c[(s+(t*20|0)&p)+16>>2]|0;A=0}else{C=0;A=0}g=xm(f,c[(s+(t*20|0)&p)+4>>2]|0,C,I,1)|0;if(!g){y=ge;z=je;g=m;m=x;ie=1317;break a}a[(g&n)+25>>0]=1;V=g+27|0;a[(V&n)>>0]=a[(V&n)>>0]|8;c[(g&p)+28>>2]=E;ie=ym(H,E,J,A,c[(g&p)>>2]|0)|0;c[(g&p)+8>>2]=A;a[(V&n)>>0]=((a[(u&n)>>0]|0)!=-6&1)<<2&255|a[(V&n)>>0]&-5;u=ie;ie=548}else if((ie|0)==715){ie=0;M=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;V=c[(M&p)+56>>2]|0;do if(!V){u=c[(M&p)>>2]|0;g=qm(u)|0;if(!g)if(!(a[(u&n)+73>>0]|0)){v=1;g=0}else{v=0;g=Vm(u)|0}else v=1;a[(M&n)+26>>0]=0;c[(M&p)+60>>2]=0;a[(M&n)+25>>0]=v;if(!v){C=L;T=t;u=g;break n}}else{do if(!(a[(V&n)+56>>0]|0)){g=V+36|0;if(!(c[(g&p)>>2]|0)){g=0;ie=756}else{g=Nm(V+64|0,g)|0;ie=755}}else{g=Om(V)|0;if(!g){U=V+59|0;o:do if(!(a[(U&n)>>0]|0)){u=0;g=0}else{w=0;v=0;p:while(1){T=V+(w<<6)+64|0;c[(ke&p)>>2]=0;S=V+(w<<6)+92|0;C=c[(S&p)>>2]|0;J=((C|0)<0)<<31>>31;do if((C|0)>16){I=16;H=0;E=0;while(1){I=iw(I|0,H|0,4)|0;H=G;F=E+1|0;if(!((H|0)<(J|0)|(H|0)==(J|0)&I>>>0>>0)){H=E;break}else E=F}P=Sd;c[(P&p)>>2]=0;c[(P&p)+4>>2]=0;if((C|0)<17){ie=726;break}u=Qm(16)|0;c[(ke&p)>>2]=u;J=(u|0)==0;I=c[(S&p)>>2]|0;if(!((I|0)>0&(J^1))){g=J?7:0;break}N=(H|0)>0;P=0;O=0;do{c[(qd&p)>>2]=0;g=I-P|0;g=Pm(T,(g|0)<16?g:16,Sd,qd)|0;if(g){ie=747;break p}g=Rm(T,c[(qd&p)>>2]|0,pd)|0;do if(N){I=1;J=1;do{J=J<<4;I=I+1|0}while((I|0)!=(F|0));if(!g){H=1;I=u}else{J=c[(pd&p)>>2]|0;ie=743;break}while(1){K=(c[(I&p)+12>>2]|0)+((((O|0)/(J|0)|0|0)%16|0)*56|0)+48|0;I=c[(K&p)>>2]|0;if(!I){I=Qm(16)|0;if(!I){g=7;ie=738;break}g=Rm(T,I,K)|0;if(g){ie=738;break}I=c[(K&p)>>2]|0}I=c[(I&p)+4>>2]|0;H=H+1|0;if((H|0)>=(F|0)){ie=740;break}else J=(J|0)/16|0}if((ie|0)==738){J=c[(pd&p)>>2]|0;ie=743;break}else if((ie|0)==740){J=c[(pd&p)>>2]|0;ie=742;break}}else{J=c[(pd&p)>>2]|0;if(!g){I=u;ie=742}else ie=743}while(0);if((ie|0)==742){ie=0;c[((c[(I&p)+12>>2]|0)+(((O|0)%16|0)*56|0)&p)+48>>2]=J;g=0}else if((ie|0)==743){ie=0;Sm(J)}O=O+1|0;P=P+16|0;I=c[(S&p)>>2]|0}while((P|0)<(I|0)&(g|0)==0)}else{ie=Sd;c[(ie&p)>>2]=0;c[(ie&p)+4>>2]=0;ie=726}while(0);if((ie|0)==726){ie=0;g=Pm(T,C,Sd,ke)|0;u=c[(ke&p)>>2]|0}w=w+1|0;if(g){ie=746;break}if((w|0)>=(d[(U&n)>>0]|0)){g=0;break o}else v=u}if((ie|0)==746)Tm(u);else if((ie|0)==747)Tm(u);Tm(v);u=0}while(0);if(!g){g=Um(V+64|0,u)|0;c[(V&p)+20>>2]=u;if(!g){g=0;ie=755;break}else u=0}Tm(u);ie=755}else ie=756}while(0);if((ie|0)==755){ie=0;a[(M&n)+25>>0]=0;C=L;T=t;u=g;break n}else if((ie|0)==756){ie=0;a[(M&n)+25>>0]=1;break}}while(0);C=L;T=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;u=g}else if((ie|0)==765){u=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;c[(Fd&p)>>2]=c[(s+(t*20|0)&p)+12>>2];g=u;u=rc[c[(s+(t*20|0)&p)+16>>2]&127](c[(u&p)>>2]|0,Fd)|0;ie=766}while(0);do if((ie|0)==548){ie=0;a[((c[(g&p)>>2]|0)&n)+74>>0]=d[(v&n)>>0]&3;C=L;T=t}else if((ie|0)==766){c[(g&p)+60>>2]=0;g=g+25|0;if(!(c[(Fd&p)>>2]|0)){a[(g&n)>>0]=0;ie=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;t=f+(d[(s+(t*20|0)&n)+3>>0]<<2)+108|0;c[(t&p)>>2]=(c[(t&p)>>2]|0)+1;t=ie;ie=19;break}else{a[(g&n)>>0]=1;ie=19;break}}while(0);if((ie|0)==19){ie=0;if(c[(Cc&p)>>2]|0){u=je;g=m;m=x;break b}g=c[(be&p)>>2]|0;if(!((g|0)==0|m>>>0>>0)){y=c[(yc&p)>>2]|0;if(!(lc[g&127](c[(Zd&p)>>2]|0)|0)){y=y+m-((m>>>0)%(y>>>0)|0)|0;C=L;T=t}else{g=m;s=9;m=x;ie=1311;break a}}else{C=L;T=t}}t=T+1|0;if(!u){g=m;u=C}else{g=m;s=u;m=x;ie=1311;break a}}q:switch(ie|0){case 22:{ie=0;S=c[(s+(t*20|0)&p)+4>>2]|0;b[(z+(S*40|0)&o)+8>>1]=4;S=z+(S*40|0)|0;c[(S&p)>>2]=t;c[(S&p)+4>>2]=((t|0)<0)<<31>>31;S=z;T=s;U=W;V=X;r=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;break}case 23:{ie=0;S=c[(s+(t*20|0)&p)+4>>2]|0;r=c[(z+(S*40|0)&p)>>2]|0;b[(z+(S*40|0)&o)+8>>1]=128;S=z;T=s;U=W;V=X;break}case 24:{ie=0;r=c[(s+(t*20|0)&p)+4>>2]|0;u=z+(r*40|0)|0;T=(c[(s+(t*20|0)&p)+12>>2]|0)+-1|0;S=u;c[(S&p)>>2]=T;c[(S&p)+4>>2]=((T|0)<0)<<31>>31;b[(z+(r*40|0)&o)+8>>1]=4;r=c[(s+(t*20|0)&p)+8>>2]|0;S=z;T=s;U=W;V=X;r=(r|0)==0?t:r+-1|0;break}case 25:{ie=0;S=c[(s+(t*20|0)&p)+4>>2]|0;r=(c[(s+((c[(z+(S*40|0)&p)>>2]|0)*20|0)&p)+8>>2]|0)+-1|0;b[(z+(S*40|0)&o)+8>>1]=128;S=z;T=s;U=W;V=X;break}case 26:{ie=0;S=c[(s+(t*20|0)&p)+4>>2]|0;b[(z+(S*40|0)&o)+8>>1]=4;S=z+(S*40|0)|0;r=c[(S&p)>>2]|0;c[(S&p)>>2]=t;c[(S&p)+4>>2]=((t|0)<0)<<31>>31;S=z;T=s;U=W;V=X;break}case 27:{ie=0;if(!(b[(z+((c[(s+(r*20|0)&p)+12>>2]|0)*40|0)&o)+8>>1]&1)){S=z;T=s;U=W;V=X}else ie=28;break}case 44:{ie=0;T=c[(s+(r*20|0)&p)+4>>2]|0;S=u;c[(S&p)>>2]=T;c[(S&p)+4>>2]=((T|0)<0)<<31>>31;S=z;T=s;U=W;V=X;break}case 45:{ie=0;U=c[(s+(r*20|0)&p)+16>>2]|0;T=c[(U&p)+4>>2]|0;S=u;c[(S&p)>>2]=c[(U&p)>>2];c[(S&p)+4>>2]=T;S=z;T=s;U=W;V=X;break}case 46:{ie=0;b[(u&o)+8>>1]=8;h[(u&q)>>3]=+h[(c[(s+(r*20|0)&p)+16>>2]&q)>>3];S=z;T=s;U=W;V=X;break}case 60:{ie=0;J=(c[(s+(r*20|0)&p)+12>>2]|0)-(c[(s+(r*20|0)&p)+8>>2]|0)|0;t=(c[(s+(r*20|0)&p)+4>>2]|0)!=0?257:1;b[(u&o)+8>>1]=t;if((J|0)>0){w=J;A=u;do{v=A+48|0;A=A+40|0;if(!(b[(v&o)>>1]&9312))b[(v&o)>>1]=1;else vg(A);b[(v&o)>>1]=t;w=w+-1|0}while((w|0)>0);S=z;T=s;U=W;V=X;u=u+(J*40|0)|0}else{S=z;T=s;U=W;V=X}break}case 65:{ie=0;u=c[(s+(r*20|0)&p)+4>>2]|0;S=z+(u*40|0)+8|0;b[(S&o)>>1]=e[(S&o)>>1]&65406|1;S=z;T=s;U=W;V=X;u=z+(u*40|0)|0;break}case 66:{ie=0;Xg(u,c[(s+(r*20|0)&p)+16>>2]|0,c[(s+(r*20|0)&p)+4>>2]|0,0,0)|0;a[(u&n)+10>>0]=Jc;S=z;T=s;U=W;V=X;break}case 67:{ie=0;C=(c[(s+(r*20|0)&p)+4>>2]|0)+-1|0;A=c[(Ab&p)>>2]|0;w=A+(C*40|0)|0;v=e[(A+(C*40|0)&o)+8>>1]|0;if(v&18){t=c[(A+(C*40|0)&p)+12>>2]|0;if(v&16384)t=(c[(w&p)>>2]|0)+t|0;if((t|0)>(c[((c[(A+(C*40|0)&p)+32>>2]|0)&p)+88>>2]|0)){t=r;u=x;ie=1316;break c}}Zl(u,w,2048);S=z;T=s;U=W;V=X;break}case 72:{ie=0;t=c[(s+(r*20|0)&p)+12>>2]|0;v=c[(s+(r*20|0)&p)+8>>2]|0;J=t+v|0;u=z+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)|0;v=z+(v*40|0)|0;while(1){_l(v,u);t=t+-1|0;if(!t)break;else{u=u+40|0;v=v+40|0}}S=z;T=s;U=W;V=X;u=z+(J*40|0)|0;break}case 74:{ie=0;r=c[(s+(t*20|0)&p)+12>>2]|0;u=z+((c[(s+(t*20|0)&p)+4>>2]|0)*40|0)|0;J=z+((c[(s+(t*20|0)&p)+8>>2]|0)*40|0)|0;while(1){Zl(J,u,4096);if((b[(J&o)+8>>1]&4096)!=0?(Vl(J)|0)!=0:0){y=ge;z=je;r=m;m=x;ie=1317;break a}if(!r){S=z;T=s;U=W;V=X;u=J;r=t;break q}r=r+-1|0;u=u+40|0;J=J+40|0}}case 79:{ie=0;u=z+((c[(s+(r*20|0)&p)+8>>2]|0)*40|0)|0;Zl(u,z+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)|0,4096);S=z;T=s;U=W;V=X;break}case 94:{ie=0;K=c[(s+(t*20|0)&p)+4>>2]|0;J=z+(K*40|0)|0;L=c[(s+(t*20|0)&p)+8>>2]|0;I=z+(L*40|0)|0;M=c[(s+(t*20|0)&p)+12>>2]|0;u=z+(M*40|0)|0;H=z+(K*40|0)+8|0;E=b[(H&o)>>1]|0;F=z+(L*40|0)+8|0;C=b[(F&o)>>1]|0;if((C|E)&1){r=z+(M*40|0)+8|0;if(!(b[(r&o)>>1]&9312)){b[(r&o)>>1]=1;S=z;T=s;U=W;V=X;r=t;break}else{vg(u);S=z;T=s;U=W;V=X;r=t;break}}if(E&16384){if(Rg(J)|0){y=ge;z=je;r=m;m=x;ie=1317;break a}C=b[(F&o)>>1]|0}if((C&16384)!=0?(Rg(I)|0)!=0:0){y=ge;z=je;r=m;m=x;ie=1317;break a}if((b[(H&o)>>1]&18)==0?(bm(J,Jc,0)|0)!=0:0){y=ge;z=je;r=m;m=x;ie=1317;break a}if((b[(F&o)>>1]&18)==0?(bm(I,Jc,0)|0)!=0:0){y=ge;z=je;r=m;m=x;ie=1317;break a}E=z+(K*40|0)+12|0;A=z+(L*40|0)+12|0;r=(c[(A&p)>>2]|0)+(c[(E&p)>>2]|0)|0;if((r|0)>(c[(zb&p)>>2]|0)){u=x;ie=1316;break c}v=(M|0)==(L|0);if(eh(u,r+2|0,v&1)|0){y=ge;z=je;r=m;m=x;ie=1317;break a}w=z+(M*40|0)+8|0;b[(w&o)>>1]=e[(w&o)>>1]&48640|2;C=z+(M*40|0)+16|0;if(!v)kw(c[(C&p)>>2]|0,c[(z+(L*40|0)&p)+16>>2]|0,c[(A&p)>>2]|0)|0;kw((c[(C&p)>>2]|0)+(c[(A&p)>>2]|0)|0,c[(z+(K*40|0)&p)+16>>2]|0,c[(E&p)>>2]|0)|0;a[((c[(C&p)>>2]|0)+r&n)>>0]=0;a[((c[(C&p)>>2]|0)+r&n)+1>>0]=0;b[(w&o)>>1]=e[(w&o)>>1]|512;c[(z+(M*40|0)&p)+12>>2]=r;a[(z+(M*40|0)&n)+10>>0]=Jc;S=z;T=s;U=W;V=X;r=t;break}case 112:{ie=0;V=c[(s+(r*20|0)&p)+4>>2]|0;N=z+(V*40|0)|0;S=cm(N)|0;w=c[(s+(r*20|0)&p)+8>>2]|0;O=z+(w*40|0)|0;T=cm(O)|0;U=c[(s+(r*20|0)&p)+12>>2]|0;u=z+(U*40|0)|0;r:do if(!((b[(z+(w*40|0)&o)+8>>1]|b[(z+(V*40|0)&o)+8>>1])&1)){s:do if(!((S&4&T)<<16>>16))L=0;else{t=N;C=c[(t&p)>>2]|0;t=c[(t&p)+4>>2]|0;F=O;v=c[(F&p)>>2]|0;F=c[(F&p)+4>>2]|0;J=d[(P&n)>>0]|0;t:do if((J|0)==89){if((t|0)>-1|(t|0)==-1&C>>>0>4294967295){V=dw(-1,2147483647,v|0,F|0)|0;w=G;if(((F|0)>0|(F|0)==0&v>>>0>0)&((w|0)<(t|0)|(w|0)==(t|0)&V>>>0>>0)){L=1;break s}}else if((F|0)<0?(w=dw(1,-2147483648,v|0,F|0)|0,A=G,V=jw(C|0,t|0,1,0)|0,M=G,(A|0)>(M|0)|(A|0)==(M|0)&w>>>0>V>>>0):0){L=1;break s}v=jw(v|0,F|0,C|0,t|0)|0;t=G}else if((J|0)==91){L=qw(v|0,F|0,0,1)|0;K=G;E=rw(v|0,F|0,0,1)|0;A=G;J=qw(C|0,t|0,0,1)|0;I=G;M=rw(C|0,t|0,0,1)|0;w=G;V=jw(v|0,F|0,-1,0)|0;pe=G;H=jw(C|0,t|0,-1,0)|0;qe=G;H=qe>>>0<1|(qe|0)==1&H>>>0<4294967295;do if(pe>>>0<1|(pe|0)==1&V>>>0<4294967295)if(H){v=sw(v|0,F|0,C|0,t|0)|0;t=G;break t}else{H=sw(J|0,I|0,E|0,A|0)|0;F=G;break}else{if(!H){L=1;break s}H=sw(M|0,w|0,L|0,K|0)|0;F=G}while(0);V=jw(H|0,F|0,-2147483648,0)|0;v=G;if(v>>>0>0|(v|0)==0&V>>>0>4294967295){L=1;break s}J=sw(M|0,w|0,E|0,A|0)|0;I=G;if((I|0)>-1|(I|0)==-1&J>>>0>4294967295){V=dw(-1,2147483647,0,H|0)|0;w=G;if(((F|0)>0|(F|0)==0&H>>>0>0)&((w|0)<(I|0)|(w|0)==(I|0)&V>>>0>>0)){L=1;break s}}else if((F|0)<0?(w=dw(1,-2147483648,0,H|0)|0,t=G,V=jw(J|0,I|0,1,0)|0,v=G,(t|0)>(v|0)|(t|0)==(v|0)&w>>>0>V>>>0):0){L=1;break s}v=jw(0,H|0,J|0,I|0)|0;t=G}else if((J|0)==90){if((C|0)==0&(t|0)==-2147483648){if((F|0)>-1|(F|0)==-1&v>>>0>4294967295){L=1;break s}t=F^-2147483648;break}if((t|0)<0|(t|0)==0&C>>>0<1){V=dw(0,0,C|0,t|0)|0;M=G;w=dw(-1,2147483647,v|0,F|0)|0;A=G;if(((F|0)>0|(F|0)==0&v>>>0>0)&((A|0)<(M|0)|(A|0)==(M|0)&w>>>0>>0)){L=1;break s}}else if((F|0)<0?(w=dw(1,-2147483648,v|0,F|0)|0,A=G,V=dw(1,0,C|0,t|0)|0,M=G,(A|0)>(M|0)|(A|0)==(M|0)&w>>>0>V>>>0):0){L=1;break s}v=dw(v|0,F|0,C|0,t|0)|0;t=G}else if((J|0)==92){if((C|0)==0&(t|0)==0)break r;if((C|0)==-1&(t|0)==-1&((v|0)==0&(F|0)==-2147483648)){L=1;break s}v=qw(v|0,F|0,C|0,t|0)|0;t=G}else{if((C|0)==-1){if((t|0)==-1){C=1;t=0}}else if((C|0)==0?(t|0)==0:0)break r;v=rw(v|0,F|0,C|0,t|0)|0;t=G}while(0);S=u;c[(S&p)>>2]=v;c[(S&p)+4>>2]=t;S=z+(U*40|0)+8|0;b[(S&o)>>1]=e[(S&o)>>1]&48640|4;S=z;T=s;U=W;V=X;break q}while(0);D=+Ug(N);B=+Ug(O);C=d[(P&n)>>0]|0;if((C|0)==89)B=D+B;else if((C|0)==90)B=B-D;else if((C|0)==91)B=D*B;else if((C|0)==92){if(D==0.0)break;B=B/D}else{E=~~D>>>0;C=+R(D)>=1.0?(D>0.0?~~+da(+Q(D/4294967296.0),4294967295.0)>>>0:~~+ba((D-+(~~D>>>0))/4294967296.0)>>>0):0;I=~~B>>>0;J=+R(B)>=1.0?(B>0.0?~~+da(+Q(B/4294967296.0),4294967295.0)>>>0:~~+ba((B-+(~~B>>>0))/4294967296.0)>>>0):0;if(!E){if(!C)break}else if((E|0)==-1?(C|0)==-1:0){E=1;C=0}V=rw(I|0,J|0,E|0,C|0)|0;B=+(V>>>0)+4294967296.0*+(G|0)}h[(ke&q)>>3]=B;h[(Sd&q)>>3]=+h[(ke&q)>>3];if(!(+h[(ke&q)>>3]!=+h[(Sd&q)>>3])){h[(u&q)>>3]=B;V=z+(U*40|0)+8|0;b[(V&o)>>1]=e[(V&o)>>1]&48640|8;if(((T|S)&8)!=0|L<<24>>24!=0){S=z;T=s;U=W;V=X;break q}dm(u);S=z;T=s;U=W;V=X;break q}}while(0);t=z+(U*40|0)+8|0;if(!(b[(t&o)>>1]&9312)){b[(t&o)>>1]=1;S=z;T=s;U=W;V=X;break}else{vg(u);S=z;T=s;U=W;V=X;break}}case 166:{ie=0;t=c[(s+(r*20|0)&p)+4>>2]|0;if(t){u=z+(t*40|0)|0;t=z+(t*40|0)+8|0;if(!(b[(t&o)>>1]&9312)){S=u;c[(S&p)>>2]=0;c[(S&p)+4>>2]=0;b[(t&o)>>1]=4;S=z;T=s;U=W;V=X;u=J;break}else{Zg(u,0,0);S=z;T=s;U=W;V=X;u=J;break}}else{S=z;T=s;U=W;V=X;u=J}break}case 184:{ie=0;C=c[(s+(r*20|0)&p)+4>>2]|0;t=c[(s+(r*20|0)&p)+8>>2]|0;K=c[(s+(r*20|0)&p)+12>>2]|0;u=z+(K*40|0)|0;if((b[(z+(t*40|0)&o)+8>>1]|b[(z+(C*40|0)&o)+8>>1])&1){t=z+(K*40|0)+8|0;if(!(b[(t&o)>>1]&9312)){b[(t&o)>>1]=1;S=z;T=s;U=W;V=X;break}else{vg(u);S=z;T=s;U=W;V=X;break}}A=Vg(z+(t*40|0)|0)|0;L=G;J=Vg(z+(C*40|0)|0)|0;I=G;t=a[(H&n)>>0]|0;C=t&255;do if(t<<24>>24==86){A=J|A;t=I|L}else if(t<<24>>24!=85)if(!((J|0)==0&(I|0)==0)){if((I|0)<0){t=175-C&255;C=dw(0,0,J|0,I|0)|0;if((I|0)>-1|(I|0)==-1&J>>>0>4294967232){I=G;ie=194}}else{C=J;ie=194}if((ie|0)==194){ie=0;if(!((I|0)>0|(I|0)==0&C>>>0>63)){if(t<<24>>24==87){A=iw(A|0,L|0,C|0)|0;t=G;break}A=mw(A|0,L|0,C|0)|0;t=G;if((L|0)>=0)break;V=dw(64,0,C|0,I|0)|0;V=iw(-1,-1,V|0)|0;A=V|A;t=G|t;break}}if((L|0)>-1|(L|0)==-1&A>>>0>4294967295){A=0;t=0}else{t=(t<<24>>24!=87)<<31>>31;A=t;t=((t|0)<0)<<31>>31}}else t=L;else{A=J&A;t=I&L}while(0);S=u;c[(S&p)>>2]=A;c[(S&p)+4>>2]=t;S=z+(K*40|0)+8|0;b[(S&o)>>1]=e[(S&o)>>1]&48640|4;S=z;T=s;U=W;V=X;break}case 202:{ie=0;T=c[(s+(r*20|0)&p)+4>>2]|0;S=z+(T*40|0)|0;U=Vg(S)|0;T=z+(T*40|0)+8|0;b[(T&o)>>1]=e[(T&o)>>1]&48640|4;T=c[(s+(r*20|0)&p)+8>>2]|0;T=jw(U|0,G|0,T|0,((T|0)<0)<<31>>31|0)|0;c[(S&p)>>2]=T;c[(S&p)+4>>2]=G;S=z;T=s;U=W;V=X;break}case 203:{ie=0;u=c[(s+(r*20|0)&p)+4>>2]|0;v=z+(u*40|0)+8|0;t=b[(v&o)>>1]|0;if(!(t&4)){fm(z+(u*40|0)|0,67,Jc);t=b[(v&o)>>1]|0;if(!(t&4)){E=c[(s+(r*20|0)&p)+8>>2]|0;if(!E){t=r;u=20;ie=1318;break c}S=z;T=s;U=W;V=X;u=J;r=E+-1|0;break}}b[(v&o)>>1]=t&48640|4;S=z;T=s;U=W;V=X;u=J;break}case 208:{ie=0;t=c[(s+(r*20|0)&p)+4>>2]|0;u=z+(t*40|0)+8|0;if(!(b[(u&o)>>1]&4)){S=z;T=s;U=W;V=X;u=J}else{S=z+(t*40|0)|0;h[(S&q)>>3]=+Ug(S);b[(u&o)>>1]=e[(u&o)>>1]&48640|8;S=z;T=s;U=W;V=X;u=J}break}case 213:{ie=0;N=c[(s+(t*20|0)&p)+4>>2]|0;L=z+(N*40|0)|0;w=c[(s+(t*20|0)&p)+12>>2]|0;K=z+(w*40|0)|0;N=z+(N*40|0)+8|0;F=b[(N&o)>>1]|0;w=z+(w*40|0)+8|0;M=b[(w&o)>>1]|0;H=F&65535;A=M&65535;v=s+(t*20|0)+3|0;J=d[(v&n)>>0]|0;do if(!((M|F)&1)){J=J&71;if(J>>>0>66){if((H&14|0)==2){rh(L,0);A=b[(w&o)>>1]|0}else A=M;if((A&14)==2){rh(K,0);J=F;E=M}else{J=F;E=M}}else if((J|0)==66){if((H&2|0)!=0|(H&12|0)==0){I=M;J=F}else{bm(L,Jc,1)|0;I=b[(w&o)>>1]|0;J=(e[(N&o)>>1]&65024|H&511)&65535}V=I&65535;if((V&2|0)!=0|(V&12|0)==0)E=M;else{bm(K,Jc,1)|0;E=(e[(w&o)>>1]&65024|A&511)&65535}}else{J=F;E=M}if(b[(N&o)>>1]&16384){Rg(L)|0;J=J&49151}if(b[(w&o)>>1]&16384){Rg(K)|0;E=E&49151}if(a[(ge&n)>>0]|0){y=ge;z=je;r=m;m=x;ie=1317;break a}V=hm(K,L,c[(s+(t*20|0)&p)+16>>2]|0)|0;I=a[(C&n)>>0]|0;r=t;C=V}else{if(J&128){J=F;E=M;r=t;C=(F&1&M)<<16>>16!=0&(A&256|0)==0&1^1;break}if(J&32){u=c[(s+(t*20|0)&p)+8>>2]|0;S=z+(u*40|0)+8|0;b[(S&o)>>1]=e[(S&o)>>1]&48640|1;S=z;T=s;U=W;V=X;u=z+(u*40|0)|0;r=t;break q}if(!(J&16)){S=z;T=s;U=W;V=X;r=t;break q}S=z;T=s;U=W;V=X;r=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;break q}while(0);switch(I&255|0){case 79:{C=(C|0)==0&1;break}case 78:{C=(C|0)!=0&1;break}case 82:{C=C>>>31;break}case 81:{C=(C|0)<1&1;break}case 80:{C=(C|0)>0&1;break}default:C=C>>>31^1}if(!(a[(v&n)>>0]&32)){if(C)r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0}else{V=c[(s+(r*20|0)&p)+8>>2]|0;u=z+(V*40|0)|0;V=z+(V*40|0)+8|0;b[(V&o)>>1]=e[(V&o)>>1]&48640|4;V=u;c[(V&p)>>2]=C;c[(V&p)+4>>2]=0}b[(N&o)>>1]=J;b[(w&o)>>1]=E;S=z;T=s;U=W;V=X;break}case 248:{ie=0;S=z;T=s;U=c[(s+(r*20|0)&p)+16>>2]|0;V=X;break}case 249:{ie=0;w=(a[(s+(r*20|0)&n)+3>>0]&1)==0?0:W;F=c[(s+(r*20|0)&p)+12>>2]|0;H=c[(s+(r*20|0)&p)+16>>2]|0;I=c[(s+(r*20|0)&p)+4>>2]|0;J=c[(s+(r*20|0)&p)+8>>2]|0;if((F|0)>0){t=(w|0)==0;v=H+16|0;E=0;while(1){if(t)A=E;else A=c[(w+(E<<2)&p)>>2]|0;C=a[((c[(v&p)>>2]|0)+E&n)>>0]|0;A=hm(z+((A+I|0)*40|0)|0,z+((A+J|0)*40|0)|0,c[(H+(E<<2)&p)+20>>2]|0)|0;E=E+1|0;if(A)break;if((E|0)>=(F|0)){S=z;T=s;U=0;V=0;break q}}S=z;T=s;U=0;V=C<<24>>24==0?A:0-A|0}else{S=z;T=s;U=0;V=X}break}case 256:{ie=0;if((X|0)<0){S=z;T=s;U=W;V=X;r=(c[(s+(t*20|0)&p)+4>>2]|0)+-1|0;break}if(!X){S=z;T=s;U=W;V=0;r=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;break}else{S=z;T=s;U=W;V=X;r=(c[(s+(t*20|0)&p)+12>>2]|0)+-1|0;break}}case 261:{ie=0;t=c[(s+(r*20|0)&p)+4>>2]|0;if(!(b[(z+(t*40|0)&o)+8>>1]&1)){u=Vg(z+(t*40|0)|0)|0;u=(u|0)!=0|(G|0)!=0?3:0}else u=6;t=c[(s+(r*20|0)&p)+8>>2]|0;if(!(b[(z+(t*40|0)&o)+8>>1]&1)){t=Vg(z+(t*40|0)|0)|0;t=((t|0)!=0|(G|0)!=0)&1}else t=2;t=a[(((a[(C&n)>>0]|0)==72?41680:41696)+t+u&n)>>0]|0;u=c[(s+(r*20|0)&p)+12>>2]|0;J=z+(u*40|0)|0;if(t<<24>>24==2){S=z+(u*40|0)+8|0;b[(S&o)>>1]=e[(S&o)>>1]&48640|1;S=z;T=s;U=W;V=X;u=J;break}else{S=J;c[(S&p)>>2]=t&255;c[(S&p)+4>>2]=0;S=z+(u*40|0)+8|0;b[(S&o)>>1]=e[(S&o)>>1]&48640|4;S=z;T=s;U=W;V=X;u=J;break}}case 268:{ie=0;t=c[(s+(r*20|0)&p)+4>>2]|0;u=c[(s+(r*20|0)&p)+8>>2]|0;J=z+(u*40|0)|0;u=z+(u*40|0)+8|0;if(!(b[(u&o)>>1]&9312))b[(u&o)>>1]=1;else vg(J);if(!(b[(z+(t*40|0)&o)+8>>1]&1)){b[(u&o)>>1]=4;T=Vg(z+(t*40|0)|0)|0;S=J;c[(S&p)>>2]=(T|0)==0&(G|0)==0&1;c[(S&p)+4>>2]=0;S=z;T=s;U=W;V=X;u=J}else{S=z;T=s;U=W;V=X;u=J}break}case 273:{ie=0;t=c[(s+(r*20|0)&p)+4>>2]|0;u=c[(s+(r*20|0)&p)+8>>2]|0;J=z+(u*40|0)|0;u=z+(u*40|0)+8|0;if(!(b[(u&o)>>1]&9312))b[(u&o)>>1]=1;else vg(J);if(!(b[(z+(t*40|0)&o)+8>>1]&1)){b[(u&o)>>1]=4;T=Vg(z+(t*40|0)|0)|0;S=J;c[(S&p)>>2]=~T;c[(S&p)+4>>2]=~G;S=z;T=s;U=W;V=X;u=J}else{S=z;T=s;U=W;V=X;u=J}break}case 278:{ie=0;t=(c[(Hb&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]|0)|0;if(!(a[(t&n)>>0]|0)){a[(t&n)>>0]=1;S=z;T=s;U=W;V=X;break}else{S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0;break}}case 281:{ie=0;t=c[(s+(r*20|0)&p)+4>>2]|0;if(!(b[(z+(t*40|0)&o)+8>>1]&1)){t=+Ug(z+(t*40|0)|0)!=0.0;t=(t^(a[(C&n)>>0]|0)==46)&1}else t=c[(s+(r*20|0)&p)+12>>2]|0;if(!t){S=z;T=s;U=W;V=X}else{S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0}break}case 286:{ie=0;if(!(b[(z+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)&o)+8>>1]&1)){S=z;T=s;U=W;V=X}else{S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0}break}case 288:{ie=0;if(!(b[(z+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)&o)+8>>1]&1)){S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0}else{S=z;T=s;U=W;V=X}break}case 290:{ie=0;T=c[(s+(t*20|0)&p)+8>>2]|0;M=c[(s+(t*20|0)&p)+12>>2]|0;A=z+(M*40|0)|0;S=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;w=c[(S&p)+80>>2]|0;v=c[(S&p)>>2]|0;if(!(a[(S&n)+26>>0]|0)){if((v|0)!=0?(a[(v&n)+73>>0]|0)!=1:0){Td=jm(S)|0;ie=295}}else{Td=im(S)|0;ie=295}if((ie|0)==295?(ie=0,(Td|0)!=0):0){u=Td;ie=1318;break c}L=S+60|0;C=c[($d&p)>>2]|0;u:do if((c[(L&p)>>2]|0)==(C|0)){C=b[(S&o)+22>>1]|0;if((C&65535|0)>(T|0))ie=350;else{I=S+72|0;ie=318}}else{do if(a[(S&n)+25>>0]|0){if(!v){J=c[(S&p)+16>>2]|0;F=c[(z+(J*40|0)&p)+12>>2]|0;c[(S&p)+68>>2]=F;c[(S&p)+64>>2]=F;J=c[(z+(J*40|0)&p)+16>>2]|0;K=S+76|0;c[(K&p)>>2]=J;break}r=z+(M*40|0)+8|0;if(!(b[(r&o)>>1]&9312)){b[(r&o)>>1]=1;break u}else{vg(A);break u}}else{if(!(a[(S&n)+27>>0]&4)){km(v,td);I=e[(v&o)+40>>1]|0;J=c[(v&p)+32>>2]|0;c[(S&p)+76>>2]=J;C=c[(td&p)>>2]|0;c[(S&p)+64>>2]=C}else{C=S+64|0;lm(v,C);I=e[(v&o)+40>>1]|0;J=c[(v&p)+32>>2]|0;c[(S&p)+76>>2]=J;C=c[(C&p)>>2]|0}c[(S&p)+68>>2]=C>>>0>I>>>0?I:C;if(C>>>0>(c[(zb&p)>>2]|0)>>>0){u=x;ie=1316;break c}K=S+76|0;C=c[($d&p)>>2]|0;F=I}while(0);c[(L&p)>>2]=C;C=a[(J&n)>>0]|0;if(C<<24>>24>-1){H=C&255;c[(kd&p)>>2]=H;J=1}else{J=mm(J,kd)|0;H=c[(kd&p)>>2]|0}I=S+72|0;c[(I&p)>>2]=J&255;b[(S&o)+22>>1]=0;c[(w&p)>>2]=H;if(H>>>0>98307){u=x;ie=313;break c}if(H>>>0>(c[(S&p)+64>>2]|0)>>>0){u=x;ie=313;break c}if(F>>>0>>0){c[(K&p)>>2]=0;c[(S&p)+68>>2]=0;C=0;ie=318}else{C=0;ie=318}}while(0);do if((ie|0)==318){ie=0;J=c[(I&p)>>2]|0;H=c[(w&p)>>2]|0;if(J>>>0>>0){P=S+76|0;F=c[(P&p)>>2]|0;if(!F){U=Jd+0|0;V=U+40|0;do{c[(U&p)>>2]=0;U=U+4|0}while((U|0)<(V|0));J=nm(v,0,c[(w&p)>>2]|0,((d[(S&n)+27>>0]|0)>>>2&1^1)&255,Jd)|0;if(J){s=J;u=x;ie=1309;break c}C=S+22|0;O=C;C=b[(C&o)>>1]|0;J=c[(I&p)>>2]|0;H=c[(w&p)>>2]|0;N=c[(Jb&p)>>2]|0}else{O=S+22|0;N=F}E=C&65535;K=c[(w+(E<<2)&p)>>2]|0;c[(kd&p)>>2]=K;C=N+H|0;J=N+J|0;while(1){F=a[(J&n)>>0]|0;if(F<<24>>24>-1){L=F&255;c[(Ld&p)>>2]=L;J=J+1|0}else{J=J+((mm(J,Ld)|0)&255)|0;L=c[(Ld&p)>>2]|0}c[(S+(E<<2)&p)+84>>2]=L;if(L>>>0>11)F=(L+-12|0)>>>1;else F=d[(L&n)+34336>>0]|0;L=K+F|0;c[(kd&p)>>2]=L;if(L>>>0>>0){J=L;F=E;ie=331;break}F=E+1|0;c[(w+(F<<2)&p)>>2]=L;if((E|0)<(T|0)&J>>>0>>0){K=L;E=F}else break}if((ie|0)==331){ie=0;L=J;J=N+(H+1)|0}b[(O&o)>>1]=F;c[(I&p)>>2]=J-N;if(!(c[(P&p)>>2]|0)){if(!((b[(Kb&o)>>1]&9312)==0&(c[(Lb&p)>>2]|0)==0))Qg(Jd);b[(Kb&o)>>1]=1}if(J>>>0>=C>>>0){if(J>>>0>C>>>0){u=x;ie=343;break c}if((L|0)==(c[(S&p)+64>>2]|0))C=L;else{u=x;ie=343;break c}}else C=c[(S&p)+64>>2]|0;if(L>>>0>C>>>0){u=x;ie=343;break c}C=b[(O&o)>>1]|0}if((C&65535|0)<=(T|0)){if((a[(s+(t*20|0)&n)+1>>0]|0)==-8){Zl(A,c[(s+(t*20|0)&p)+16>>2]|0,2048);r=z+(M*40|0)+8|0;break}r=z+(M*40|0)+8|0;if(!(b[(r&o)>>1]&9312)){b[(r&o)>>1]=1;break}else{vg(A);break}}else ie=350}while(0);if((ie|0)==350){ie=0;r=z+(M*40|0)+8|0;if(b[(r&o)>>1]&9312)vg(A);J=c[(S+(T<<2)&p)+84>>2]|0;c[(Ld&p)>>2]=J;do if((c[(S&p)+68>>2]|0)>>>0<(c[(w+(T+1<<2)&p)>>2]|0)>>>0){V=a[(s+(t*20|0)&n)+3>>0]|0;if(!((V&255)>63?J>>>0>11&(J&1|0)==0|V<<24>>24<0:0)){if(J>>>0>11)C=(J+-12|0)>>>1;else C=d[(J&n)+34336>>0]|0;if(C){C=nm(v,c[(w+(T<<2)&p)>>2]|0,C,((d[(S&n)+27>>0]|0)>>>2&1^1)&255,A)|0;if(C){s=C;u=x;ie=1309;break c}om(c[(z+(M*40|0)&p)+16>>2]|0,J,A)|0;b[(r&o)>>1]=e[(r&o)>>1]&61439;break}}om(J>>>0<14?td:0,J,A)|0}else om((c[(S&p)+76>>2]|0)+(c[(w+(T<<2)&p)>>2]|0)|0,J,A)|0;while(0);a[(z+(M*40|0)&n)+10>>0]=Jc}w=e[(r&o)>>1]|0;if((w&4096|0)!=0?(Ac=z+(M*40|0)+16|0,Bc=c[(Ac&p)>>2]|0,(Bc|0)!=0):0){v=c[(z+(M*40|0)&p)+12>>2]|0;if(fh(A,v+2|0)|0){y=ge;z=je;r=m;m=x;ie=1317;break a}kw(c[(Ac&p)>>2]|0,Bc|0,v|0)|0;a[((c[(Ac&p)>>2]|0)+v&n)>>0]=0;a[((c[(Ac&p)>>2]|0)+v&n)+1>>0]=0;b[(r&o)>>1]=w&18|512;S=z;T=s;U=W;V=X;r=t}else{S=z;T=s;U=W;V=X;r=t}break}case 368:{ie=0;v=c[(s+(r*20|0)&p)+16>>2]|0;t=a[(v&n)>>0]|0;if(!(t<<24>>24)){S=z;T=s;U=W;V=X}else{w=z+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)|0;while(1){v=v+1|0;fm(w,t,Jc);t=a[(v&n)>>0]|0;if(!(t<<24>>24)){S=z;T=s;U=W;V=X;break}else w=w+40|0}}break}case 371:{ie=0;U=c[(s+(t*20|0)&p)+4>>2]|0;C=c[(s+(t*20|0)&p)+16>>2]|0;V=z+(U*40|0)|0;U=z+((U+-1+(c[(s+(t*20|0)&p)+8>>2]|0)|0)*40|0)|0;A=a[(Mb&n)>>0]|0;T=c[(s+(t*20|0)&p)+12>>2]|0;u=z+(T*40|0)|0;if(C){r=a[(C&n)>>0]|0;v=V;while(1){C=C+1|0;fm(v,r,Jc);r=a[(C&n)>>0]|0;if(!(r<<24>>24))break;else v=v+40|0}}N=(A&255)>3;L=0;K=0;O=0;C=0;w=U;while(1){E=b[(w&o)+8>>1]|0;I=E&65535;v:do if(!(I&1)){do if(!(I&4)){if(I&8){J=7;ie=388;break v}J=c[(w&p)+12>>2]|0;if(I&16384)J=(c[(w&p)>>2]|0)+J|0;J=(J<<1)+12|I>>>1&1}else{I=w;J=c[(I&p)>>2]|0;I=c[(I&p)+4>>2]|0;H=ew(J|0,I|0,63)|0;H=H^J;F=G^I;if(F>>>0<0|(F|0)==0&H>>>0<128){if(!((J&1|0)==(J|0)&0==(I|0)&N)){J=1;ie=388;break v}J=H+8|0;break}if(F>>>0<0|(F|0)==0&H>>>0<32768){J=2;ie=388;break v}if(F>>>0<0|(F|0)==0&H>>>0<8388608){J=3;ie=388;break v}if(F>>>0<0|(F|0)==0&H>>>0<2147483648){J=4;ie=388;break v}J=F>>>0<32768|(F|0)==32768&H>>>0<0?5:6;ie=388;break v}while(0);c[(w&p)+28>>2]=J;if(J>>>0>11){I=J;J=(J+-12|0)>>>1}else ie=391}else{J=0;ie=388}while(0);if((ie|0)==388){c[(w&p)+28>>2]=J;ie=391}if((ie|0)==391){ie=0;I=J;J=d[(J&n)+34336>>0]|0}do if(E&16384)if((L|0)==0&(K|0)==0){E=c[(w&p)>>2]|0;J=J-E|0;E=E+C|0;break}else{Rg(w)|0;E=C;break}else E=C;while(0);L=jw(J|0,((J|0)<0)<<31>>31|0,L|0,K|0)|0;K=G;if(I>>>0<128)J=1;else{H=0;J=0;do{J=J+1|0;I=mw(I|0,H|0,7)|0;H=G}while(((I|0)!=0|(H|0)!=0)&(J|0)<9)}J=J+O|0;w=w+-40|0;if(w>>>0>>0){F=J;P=E;break}else{O=J;C=E}}if((F|0)<127)I=F+1|0;else{I=F;H=((F|0)<0)<<31>>31;J=0;do{J=J+1|0;I=mw(I|0,H|0,7)|0;H=G}while(((I|0)!=0|(H|0)!=0)&(J|0)<9);F=J+F|0;I=F;H=((F|0)<0)<<31>>31;C=0;do{C=C+1|0;I=mw(I|0,H|0,7)|0;H=G}while(((I|0)!=0|(H|0)!=0)&(C|0)<9);I=((J|0)<(C|0)&1)+F|0}J=((I|0)<0)<<31>>31;E=jw(I|0,J|0,L|0,K|0)|0;N=G;S=c[(zb&p)>>2]|0;O=((S|0)<0)<<31>>31;if((N|0)>(O|0)|(N|0)==(O|0)&E>>>0>S>>>0){u=x;ie=1316;break c}if(fh(u,E)|0){y=ge;z=je;r=m;m=x;ie=1317;break a}A=c[(z+(T*40|0)&p)+16>>2]|0;if(I>>>0<128){a[(A&n)>>0]=I;K=1;L=V}else{K=(pm(A,I,J)|0)&255;L=V}while(1){H=c[(L&p)+28>>2]|0;if(H>>>0<128){a[(A+K&n)>>0]=H;J=1}else J=(pm(A+K|0,H,0)|0)&255;K=J+K|0;J=A+I|0;if(!(H>>>0<8&(H|0)!=0))if(H>>>0>11){C=c[(L&p)+12>>2]|0;kw(J|0,c[(L&p)+16>>2]|0,C|0)|0}else C=0;else{J=L;if(H>>>0>11)C=(H+-12|0)>>>1;else C=d[(H&n)+34336>>0]|0;F=c[(J&p)>>2]|0;J=c[(J&p)+4>>2]|0;H=C;while(1){H=H+-1|0;a[(A+H+I&n)>>0]=F;F=mw(F|0,J|0,8)|0;if(!H)break;else J=G}}L=L+40|0;if(L>>>0>U>>>0)break;else I=C+I|0}c[(z+(T*40|0)&p)+12>>2]=E;r=z+(T*40|0)+8|0;b[(r&o)>>1]=16;if(P){c[(u&p)>>2]=P;b[(r&o)>>1]=16400}a[(z+(T*40|0)&n)+10>>0]=1;S=z;T=s;U=W;V=X;r=t;break}case 446:{ie=0;if((c[(ae&p)>>2]|0)>0){u=x;ie=447;break c}if(!v)w=0;else{t=v;while(1)if(!(a[(t&n)>>0]|0))break;else t=t+1|0;w=t-v&1073741823}u=sm(le,0,(c[(Ob&p)>>2]|0)+(c[(Nb&p)>>2]|0)|0)|0;if(u){t=r;ie=1318;break c}t=mh(le,w+33|0,0)|0;if(!t){S=z;T=s;U=W;V=X;u=L}else{V=t+32|0;c[(t&p)>>2]=V;kw(V|0,v|0,w+1|0)|0;if(!(a[(ee&n)>>0]|0))c[(Ob&p)>>2]=(c[(Ob&p)>>2]|0)+1;else{a[(ee&n)>>0]=0;a[(Sb&n)>>0]=1}c[(t&p)+24>>2]=c[(Pb&p)>>2];c[(Pb&p)>>2]=t;S=Qb;T=c[(S&p)+4>>2]|0;U=t+8|0;c[(U&p)>>2]=c[(S&p)>>2];c[(U&p)+4>>2]=T;U=Rb;T=c[(U&p)+4>>2]|0;S=t+16|0;c[(S&p)>>2]=c[(U&p)>>2];c[(S&p)+4>>2]=T;S=z;T=s;U=W;V=X;u=L}break}case 486:{c[(Ob&p)>>2]=(c[(Ob&p)>>2]|0)+-1;ie=488;break}case 525:{ie=0;wm(c[((c[(Xd&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<4)&p)+4>>2]|0,c[(s+(r*20|0)&p)+12>>2]|0,Yc);T=c[(Yc&p)>>2]|0;S=u;c[(S&p)>>2]=T;c[(S&p)+4>>2]=((T|0)<0)<<31>>31;S=z;T=s;U=W;V=X;break}case 558:{ie=0;v=xm(f,c[(s+(t*20|0)&p)+4>>2]|0,c[(s+(t*20|0)&p)+8>>2]|0,-1,1)|0;if(!v){y=ge;z=je;r=m;m=x;ie=1317;break a}r=c[(s+(t*20|0)&p)+16>>2]|0;C=v+8|0;c[(C&p)>>2]=r;A=c[(s+(t*20|0)&p)+12>>2]|0;r=e[(r&o)+6>>1]<<2;u=r+148|0;w=mh(le,u,0)|0;if(!w){s=v;u=x;ie=560;break c}fw(w|0,0,u|0)|0;c[(v&p)+56>>2]=w;V=w+128|0;c[(w&p)+28>>2]=V;kw(V|0,c[(C&p)>>2]|0,r+20|0)|0;c[(w&p)+140>>2]=0;if(A)b[(w&o)+134>>1]=A;r=c[(Xd&p)>>2]|0;u=c[((c[((c[(r&p)+4>>2]|0)&p)+4>>2]|0)&p)+32>>2]|0;c[(w&p)+12>>2]=u;a[(w&n)+59>>0]=1;a[(w&n)+57>>0]=0;c[(w&p)+24>>2]=le;c[(w&p)+72>>2]=w;if(((a[(_b&n)>>0]|0)!=2?(Dc=c[2242]|0,c[(w&p)>>2]=ca(Dc,u)|0,V=c[((c[(r&p)+12>>2]|0)&p)+80>>2]|0,V=(V|0)<(Dc|0)?Dc:V,Dc=((u|0)<0)<<31>>31,V=sw(V|0,((V|0)<0)<<31>>31|0,u|0,Dc|0)|0,U=G,c[(w&p)+4>>2]=(U|0)<0|(U|0)==0&V>>>0<536870912?V:536870912,(c[2234]|0)==0):0)?(c[(w&p)+52>>2]=u,V=qg(u,Dc)|0,c[(w&p)+40>>2]=V,(V|0)==0):0){s=7;u=x;ie=1309;break c}else{S=z;T=s;U=W;V=X;u=L;r=t}break}case 566:{ie=0;T=(c[((c[(Ib&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<2)&p)>>2]|0)+40|0;V=T;U=c[(V&p)>>2]|0;V=c[(V&p)+4>>2]|0;S=jw(U|0,V|0,1,0)|0;c[(T&p)>>2]=S;c[(T&p)+4>>2]=G;if((U|0)==0&(V|0)==0){S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0}else{S=z;T=s;U=W;V=X}break}case 568:{ie=0;r=xm(f,c[(s+(t*20|0)&p)+4>>2]|0,c[(s+(t*20|0)&p)+12>>2]|0,-1,0)|0;if(!r){y=ge;z=je;r=m;m=x;ie=1317;break a}a[(r&n)+25>>0]=1;c[(r&p)+16>>2]=c[(s+(t*20|0)&p)+8>>2];S=r+27|0;a[(S&n)>>0]=a[(S&n)>>0]|4;S=z;T=s;U=W;V=X;r=t;break}case 570:{ie=0;S=s+(r*20|0)+4|0;Bm(f,c[((c[(Ib&p)>>2]|0)+(c[(S&p)>>2]<<2)&p)>>2]|0);c[((c[(Ib&p)>>2]|0)+(c[(S&p)>>2]<<2)&p)>>2]=0;S=z;T=s;U=W;V=X;break}case 571:{ie=0;H=c[((c[(Ib&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<2)&p)>>2]|0;a[(H&n)+25>>0]=0;if(!(a[(H&n)+27>>0]&4)){V=c[(s+(r*20|0)&p)+16>>2]|0;c[(wd&p)>>2]=c[(H&p)+8>>2];b[($b&o)>>1]=V;a[(cc&n)>>0]=(K<<1&2^2)+255;V=c[(s+(r*20|0)&p)+12>>2]|0;t=z+(V*40|0)|0;c[(dc&p)>>2]=t;if(b[(z+(V*40|0)&o)+8>>1]&16384)Rg(t)|0;u=Cm(c[(H&p)>>2]|0,wd,0,0,0,Ad)|0;if(!u){u=K;J=L}else{t=r;ie=1318;break c}}else{C=c[(s+(r*20|0)&p)+12>>2]|0;A=z+(C*40|0)|0;C=z+(C*40|0)+8|0;if((b[(C&o)>>1]&14)==2)rh(A,0);J=Vg(A)|0;I=G;C=e[(C&o)>>1]|0;do if(!(C&4)){if(!(C&8)){S=z;T=s;U=W;V=X;u=L;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0;break q}B=+h[(A&q)>>3];D=+(J>>>0)+4294967296.0*+(I|0);if(B>31)+K|0;break}else{C=(B>D&(K&1|0)==0&1)+K|0;break}}else C=K;while(0);u=Cm(c[(H&p)>>2]|0,0,J,I,0,Ad)|0;V=H+48|0;c[(V&p)>>2]=J;c[(V&p)+4>>2]=I;if(!u){u=C;J=L}else{t=r;ie=1318;break c}}a[(H&n)+26>>0]=0;c[(H&p)+60>>2]=0;t=c[(Ad&p)>>2]|0;do if((u|0)>63){if((t|0)>=0?!((t|0)==0&(u|0)==65):0){c[(Ad&p)>>2]=0;S=z;T=s;U=W;V=X;u=J;break q}c[(Ad&p)>>2]=0;u=Dm(c[(H&p)>>2]|0,Ad)|0;if(!u)ie=593;else{t=r;ie=1318;break c}}else{if((t|0)<=0?!((t|0)==0&(u|0)==62):0){t=(a[((c[(H&p)>>2]|0)&n)+73>>0]|0)!=1&1;c[(Ad&p)>>2]=t;break}c[(Ad&p)>>2]=0;u=Em(c[(H&p)>>2]|0,Ad)|0;if(!u)ie=593;else{t=r;ie=1318;break c}}while(0);if((ie|0)==593){ie=0;t=c[(Ad&p)>>2]|0}if(!t){S=z;T=s;U=W;V=X;u=J}else{S=z;T=s;U=W;V=X;u=J;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0}break}case 596:{ie=0;S=c[((c[(Ib&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<2)&p)>>2]|0;a[(S&n)+25>>0]=0;U=Vg(z+((c[(s+(r*20|0)&p)+8>>2]|0)*40|0)|0)|0;T=S+48|0;c[(T&p)>>2]=U;c[(T&p)+4>>2]=G;a[(S&n)+26>>0]=1;S=z;T=s;U=W;V=X;break}case 597:{ie=0;I=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;r=c[(s+(t*20|0)&p)+12>>2]|0;J=z+(r*40|0)|0;c[(od&p)>>2]=0;K=s+(t*20|0)+16|0;C=c[(K&p)>>2]|0;v=I+8|0;A=c[(v&p)>>2]|0;w:do if((C|0)>0){c[(xd&p)>>2]=A;C=C&65535;b[(ec&o)>>1]=C;c[(fc&p)>>2]=J;if(!(C<<16>>16))v=xd;else{r=J;A=0;while(1){if(b[(r+(A*40|0)&o)+8>>1]&16384){Rg(r+(A*40|0)|0)|0;C=b[(ec&o)>>1]|0}A=A+1|0;if((A|0)>=(C&65535|0)){v=xd;break w}r=c[(fc&p)>>2]|0}}}else{C=Fm(A,Sc,191,od)|0;if(!C){y=ge;z=je;r=m;m=x;ie=1317;break a}if(b[(z+(r*40|0)&o)+8>>1]&16384)Rg(J)|0;Gm(c[(v&p)>>2]|0,c[(z+(r*40|0)&p)+12>>2]|0,c[(z+(r*40|0)&p)+16>>2]|0,C);v=C}while(0);a[(v&n)+6>>0]=0;x:do if((a[(H&n)>>0]|0)==67?(Ec=b[(v&o)+4>>1]|0,Ec<<16>>16!=0):0){C=c[(v&p)+8>>2]|0;A=0;while(1){if(b[(C+(A*40|0)&o)+8>>1]&1)break;A=A+1|0;if((A|0)>=(Ec&65535|0)){L=t;r=t;break x}}L=t;r=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0}else{L=t;r=t}while(0);C=Cm(c[(I&p)>>2]|0,v,0,0,0,Bd)|0;if(!(c[(K&p)>>2]|0))mg(le,c[(od&p)>>2]|0);if(C){t=r;s=C;u=x;ie=1309;break c}t=c[(Bd&p)>>2]|0;c[(I&p)+12>>2]=t;t=(t|0)==0;a[(I&n)+25>>0]=t&1^1;a[(I&n)+26>>0]=0;c[(I&p)+60>>2]=0;if((a[(H&n)>>0]|0)==69){if(!t){S=z;T=s;U=W;V=X;break}S=z;T=s;U=W;V=X;r=(c[(s+(L*20|0)&p)+8>>2]|0)+-1|0;break}else{if(t){S=z;T=s;U=W;V=X;break}S=z;T=s;U=W;V=X;r=(c[(s+(L*20|0)&p)+8>>2]|0)+-1|0;break}}case 624:{ie=0;S=(c[((c[(Ib&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<2)&p)>>2]|0)+40|0;T=S;U=c[(T&p)>>2]|0;T=c[(T&p)+4>>2]|0;V=jw(U|0,T|0,1,0)|0;c[(S&p)>>2]=V;c[(S&p)+4>>2]=G;S=u;c[(S&p)>>2]=U;c[(S&p)+4>>2]=T;S=z;T=s;U=W;V=X;break}case 647:{ie=0;I=c[(s+(r*20|0)&p)+8>>2]|0;v=c[((c[(Ib&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<2)&p)>>2]|0;t=c[(s+(r*20|0)&p)+12>>2]|0;if(C<<24>>24==75){F=z+(t*40|0)|0;E=c[(F&p)>>2]|0;F=c[(F&p)+4>>2]|0}else{E=t;F=((t|0)<0)<<31>>31}H=s+(r*20|0)+3|0;J=a[(H&n)>>0]|0;if(J&1)c[(ub&p)>>2]=(c[(ub&p)>>2]|0)+1;if(J&2){m=ne;c[(m&p)>>2]=E;c[(m&p)+4>>2]=F;m=E;l=F}C=b[(z+(I*40|0)&o)+8>>1]|0;if(C&1){c[(z+(I*40|0)&p)+16>>2]=0;c[(z+(I*40|0)&p)+12>>2]=0}if(!(J&16))A=0;else A=c[(v&p)+12>>2]|0;if(!(C&16384))C=0;else C=c[(z+(I*40|0)&p)>>2]|0;C=Im(c[(v&p)>>2]|0,0,E,F,c[(z+(I*40|0)&p)+16>>2]|0,c[(z+(I*40|0)&p)+12>>2]|0,C,(J&255)>>>3&1,A)|0;a[(v&n)+26>>0]=0;c[(v&p)+60>>2]=0;if(C){t=r;s=C;u=x;ie=1309;break c}t=c[(gc&p)>>2]|0;if((t|0)!=0?(Fc=c[(s+(r*20|0)&p)+16>>2]|0,(Fc|0)!=0):0){bc[t&1](c[(hc&p)>>2]|0,(a[(H&n)>>0]&4)!=0?23:18,c[((c[(Xd&p)>>2]|0)+(a[(v&n)+24>>0]<<4)&p)>>2]|0,Fc,E,F);S=z;T=s;U=W;V=X}else{S=z;T=s;U=W;V=X}break}case 671:{ie=0;S=c[(ub&p)>>2]|0;c[(vb&p)>>2]=S;c[(wb&p)>>2]=(c[(wb&p)>>2]|0)+S;c[(ub&p)>>2]=0;S=z;T=s;U=W;V=X;break}case 672:{ie=0;J=c[((c[(Ib&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<2)&p)>>2]|0;I=c[(s+(r*20|0)&p)+12>>2]|0;H=c[(s+(r*20|0)&p)+16>>2]|0;t=c[(J&p)+56>>2]|0;A=t+32|0;C=c[(A&p)>>2]|0;J=c[(J&p)+8>>2]|0;if(!C){C=Fm(J,0,0,md)|0;c[(A&p)>>2]=C;if(!C){t=r;s=7;u=x;ie=1309;break c}b[(C&o)+4>>1]=H}if(!(a[(t&n)+56>>0]|0)){t=c[(t&p)+36>>2]|0;A=t;t=t+8|0}else{V=c[(t&p)+20>>2]|0;t=c[((c[(V&p)+8>>2]|0)&p)+4>>2]|0;V=c[(V&p)+12>>2]|0;A=V+(t*56|0)+20|0;t=c[(V+(t*56|0)&p)+32>>2]|0}Gm(J,c[(A&p)>>2]|0,t,C);y:do if((H|0)>0){t=c[(C&p)+8>>2]|0;v=0;while(1){if(b[(t+(v*40|0)&o)+8>>1]&1)break y;v=v+1|0;if((v|0)>=(H|0)){ie=682;break}}}else ie=682;while(0);if((ie|0)==682){ie=0;if(!(Km(c[(z+(I*40|0)&p)+12>>2]|0,c[(z+(I*40|0)&p)+16>>2]|0,C,0)|0)){S=z;T=s;U=W;V=X;break}}S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0;break}case 700:{ie=0;b[(u&o)+8>>1]=1;S=z;T=s;U=W;V=X;break}case 708:{ie=0;b[(u&o)+8>>1]=1;S=z;T=s;U=W;V=X;break}case 711:{ie=0;t=c[((c[(Ib&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<2)&p)>>2]|0;a[(t&n)+25>>0]=1;c[(t&p)+60>>2]=0;t=c[(t&p)>>2]|0;if(!t){S=z;T=s;U=W;V=X}else{S=t+56|0;Wc(c[(S&p)>>2]|0);c[(S&p)>>2]=0;a[(t&n)+73>>0]=0;S=z;T=s;U=W;V=X}break}case 801:{ie=0;t=c[((c[(Ib&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<2)&p)>>2]|0;u=c[(t&p)>>2]|0;K=L+8|0;b[(K&o)>>1]=1;if((a[(u&n)+73>>0]|0)!=1?(Vd=jm(t)|0,(Vd|0)!=0):0){t=r;u=Vd;ie=1318;break c}if(!(a[(t&n)+25>>0]|0)){V=Sd;c[(V&p)>>2]=0;c[(V&p)+4>>2]=0;km(u,Sd);b[(qc&o)>>1]=0;c[(sc&p)>>2]=le;c[(uc&p)>>2]=0;u=nm(u,0,c[(Sd&p)>>2]|0,1,$c)|0;do if(!u){t=c[(vc&p)>>2]|0;u=a[(t&n)>>0]|0;if(u<<24>>24>-1){C=u&255;c[(qd&p)>>2]=C}else{mm(t,qd)|0;C=c[(qd&p)>>2]|0}if(!(C>>>0<3?1:(C|0)>(c[(wc&p)>>2]|0))){t=(c[(vc&p)>>2]|0)+(C+-1)|0;u=a[(t&n)>>0]|0;if(u<<24>>24>-1){u=u&255;c[(Nd&p)>>2]=u}else{mm(t,Nd)|0;u=c[(Nd&p)>>2]|0}if(!((u+-1|0)>>>0>8|(u|0)==7)){if(u>>>0>11)t=(u+-12|0)>>>1;else t=d[(u&n)+34336>>0]|0;v=c[(wc&p)>>2]|0;if(v>>>0>=(t+C|0)>>>0){om((c[(vc&p)>>2]|0)+(v-t)|0,u,Qd)|0;v=Qd;t=c[(v&p)>>2]|0;v=c[(v&p)+4>>2]|0;if((b[(qc&o)>>1]&9312)==0&(c[(uc&p)>>2]|0)==0){u=0;break}Qg($c);u=0;break}}}if(!((b[(qc&o)>>1]&9312)==0&(c[(uc&p)>>2]|0)==0))Qg($c);c[(ke&p)>>2]=68698;c[(ke&p)+4>>2]=10788;bd(11,13600,ke);u=11;t=0;v=0}else{t=0;v=0}while(0);if(u){t=r;ie=1318;break c}S=L;c[(S&p)>>2]=t;c[(S&p)+4>>2]=v;b[(K&o)>>1]=4;S=z;T=s;U=W;V=X;u=L}else{S=z;T=s;U=W;V=X;u=L}break}case 865:{ie=0;w=c[(C&p)>>2]|0;C=c[((c[(Xd&p)>>2]|0)+(K<<4)&p)+12>>2]|0;t=c[(C&p)+16>>2]|0;if(t)do{v=(c[(t&p)+8>>2]|0)+32|0;if((c[(v&p)>>2]|0)==(A|0))c[(v&p)>>2]=w;t=c[(t&p)>>2]|0}while((t|0)!=0);t=c[(C&p)+32>>2]|0;if(t)do{v=(c[(t&p)+8>>2]|0)+40|0;if((c[(v&p)>>2]|0)==(A|0))c[(v&p)>>2]=w;t=c[(t&p)>>2]|0}while((t|0)!=0);S=z;T=s;U=W;V=X;x=K+1&255;break}case 878:{ie=0;_m(le,u);S=z;T=s;U=W;V=X;u=J;break}case 881:{ie=0;V=c[(s+(r*20|0)&p)+4>>2]|0;c[(Zc&p)>>2]=le;c[(ia&p)>>2]=V;c[(ja&p)>>2]=je;u=c[(s+(r*20|0)&p)+16>>2]|0;c[(ke&p)>>2]=c[((c[(Xd&p)>>2]|0)+(V<<4)&p)>>2];c[(ke&p)+4>>2]=(V|0)==1?13184:13208;c[(ke&p)+8>>2]=u;u=uh(le,42048,ke)|0;if(!u){t=r;u=x;ie=882;break c}a[(ka&n)>>0]=1;c[(la&p)>>2]=0;t=Qe(le,u,22,Zc,0)|0;t=(t|0)==0?c[(la&p)>>2]|0:t;mg(le,u);a[(ka&n)>>0]=0;if(!t){S=z;T=s;U=W;V=X;u=J}else{s=t;t=r;u=x;ie=884;break c}break}case 886:{ie=0;kg(le,Ik((c[((c[(Xd&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<4)&p)+12>>2]|0)+8|0,c[(s+(r*20|0)&p)+16>>2]|0,0)|0);c[(Tb&p)>>2]=c[(Tb&p)>>2]|2;S=z;T=s;U=W;V=X;break}case 887:{ie=0;C=Ik((c[((c[(Xd&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<4)&p)+12>>2]|0)+24|0,c[(s+(r*20|0)&p)+16>>2]|0,0)|0;if(C){t=(c[(C&p)+12>>2]|0)+8|0;u=c[(t&p)>>2]|0;z:do if((u|0)==(C|0))c[(t&p)>>2]=c[(C&p)+20>>2];else{do{if(!u)break z;t=u+20|0;u=c[(t&p)>>2]|0}while((u|0)!=(C|0));c[(t&p)>>2]=c[(C&p)+20>>2]}while(0);Jk(le,C)}c[(Tb&p)>>2]=c[(Tb&p)>>2]|2;S=z;T=s;U=W;V=X;u=J;break}case 895:{ie=0;C=Ik((c[((c[(Xd&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<4)&p)+12>>2]|0)+40|0,c[(s+(r*20|0)&p)+16>>2]|0,0)|0;if(!C){S=z;T=s;U=W;V=X}else{t=c[(C&p)+20>>2]|0;if((t|0)==(c[(C&p)+24>>2]|0)){t=bn(t+8|0,c[(C&p)+4>>2]|0,ke)|0;if(!t)t=0;else t=c[(t&p)+8>>2]|0;v=t+64|0;while(1){V=c[(v&p)>>2]|0;t=V+32|0;if((V|0)==(C|0))break;else v=t}c[(v&p)>>2]=c[(t&p)>>2]}jg(le,C);c[(Tb&p)>>2]=c[(Tb&p)>>2]|2;S=z;T=s;U=W;V=X}break}case 903:{ie=0;L=c[(s+(t*20|0)&p)+8>>2]|0;v=mh(le,(L<<2)+4|0,0)|0;if(!v){y=ge;z=je;r=m;m=x;ie=1317;break a}A=c[(s+(t*20|0)&p)+12>>2]|0;r=c[(s+(t*20|0)&p)+4>>2]|0;M=z+(r*40|0)|0;if((L|0)>0){C=0;do{V=Vg(z+((C+r|0)*40|0)|0)|0;c[(v+(C<<2)&p)>>2]=V;C=C+1|0}while((C|0)!=(L|0));C=L}else C=0;c[(v+(C<<2)&p)>>2]=0;I=c[((c[(Xd&p)>>2]|0)+(d[(s+(t*20|0)&n)+3>>0]<<4)&p)+4>>2]|0;P=z+(A*40|0)|0;V=c[(P&p)>>2]|0;O=c[(I&p)+4>>2]|0;c[(O&p)+4>>2]=c[(I&p)>>2];I=c[(O&p)>>2]|0;w=c[((c[(I&p)+204>>2]|0)&p)+12>>2]|0;c[(Sd&p)>>2]=O;c[(ma&p)>>2]=I;I=c[(O&p)+44>>2]|0;c[(na&p)>>2]=I;c[(oa&p)>>2]=V;c[(pa&p)>>2]=0;c[(pa&p)+4>>2]=0;c[(pa&p)+8>>2]=0;c[(pa&p)+12>>2]=0;c[(pa&p)+16>>2]=0;do if(!I){A=0;C=0}else{J=(I>>>3)+1|0;H=qg(J,0)|0;if(!H){c[(sa&p)>>2]=0;A=0;C=1;break}fw(H|0,0,J|0)|0;c[(sa&p)>>2]=H;N=O+32|0;J=(((c[2514]|0)>>>0)/((c[(N&p)>>2]|0)>>>0)|0)+1|0;if(J>>>0<=I>>>0){V=H+(J>>>3)|0;a[(V&n)>>0]=d[(V&n)>>0]|1<<(J&7)}c[(ua&p)>>2]=Nd;c[(va&p)>>2]=Nd;c[(ta&p)>>2]=0;c[(wa&p)>>2]=0;c[(xa&p)>>2]=100;c[(ya&p)>>2]=1e9;a[(Aa&n)>>0]=0;a[(za&n)>>0]=2;c[(ra&p)>>2]=43592;C=c[((c[(O&p)+12>>2]|0)&p)+56>>2]|0;cn(Sd,1,d[(C&n)+33>>0]<<16|d[(C&n)+32>>0]<<24|d[(C&n)+34>>0]<<8|d[(C&n)+35>>0],d[(C&n)+37>>0]<<16|d[(C&n)+36>>0]<<24|d[(C&n)+38>>0]<<8|d[(C&n)+39>>0]);c[(ra&p)>>2]=0;C=c[(oa&p)>>2]|0;if(!((L|0)<1|(C|0)==0)){F=O+17|0;H=0;do{I=v+(H<<2)|0;J=c[(I&p)>>2]|0;if(J){if((a[(F&n)>>0]|0)!=0&(J|0)>1){dn(Sd,J,1,0);J=c[(I&p)>>2]|0}c[(ra&p)>>2]=43608;en(Sd,J,0,0)|0;c[(ra&p)>>2]=0;C=c[(oa&p)>>2]|0}H=H+1|0}while(!((H|0)>=(L|0)|(C|0)==0))}if(!((c[(na&p)>>2]|0)==0|(C|0)==0)){E=O+17|0;C=O+36|0;L=1;do{H=L>>>3;J=a[((c[(sa&p)>>2]|0)+H&n)>>0]|0;F=1<<(L&7);do if(!(J&255&F)){if(L>>>0<2)I=0;else{I=L+-2|0;I=I-((I>>>0)%(((((c[(C&p)>>2]|0)>>>0)/5|0)+1|0)>>>0)|0)|0;I=((I+1|0)==(((c[2514]|0)>>>0)/((c[(N&p)>>2]|0)>>>0)|0|0)?3:2)+I|0}if((I|0)==(L|0)?(a[(E&n)>>0]|0)!=0:0)break;c[(ke&p)>>2]=L;fn(Sd,43632,ke);J=a[((c[(sa&p)>>2]|0)+H&n)>>0]|0}while(0);do if(J&255&F){if(L>>>0<2)J=0;else{J=L+-2|0;J=J-((J>>>0)%(((((c[(C&p)>>2]|0)>>>0)/5|0)+1|0)>>>0)|0)|0;J=((J+1|0)==(((c[2514]|0)>>>0)/((c[(N&p)>>2]|0)>>>0)|0|0)?3:2)+J|0}if((J|0)!=(L|0))break;if(!(a[(E&n)>>0]|0))break;c[(ke&p)>>2]=L;fn(Sd,43656,ke)}while(0);L=L+1|0}while(!((c[(oa&p)>>2]|0)==0?1:L>>>0>(c[(na&p)>>2]|0)>>>0))}C=c[((c[((c[(O&p)>>2]|0)&p)+204>>2]|0)&p)+12>>2]|0;if((w|0)!=(C|0)){c[(ke&p)>>2]=w;c[(ke&p)+4>>2]=C;fn(Sd,43696,ke)}Wc(c[(sa&p)>>2]|0);if(c[(qa&p)>>2]|0){gn(ta);A=0;C=(c[(pa&p)>>2]|0)+1|0;break}C=c[(pa&p)>>2]|0;if(!C)gn(ta);A=tg(ta)|0}while(0);mg(le,v);U=P;U=dw(c[(U&p)>>2]|0,c[(U&p)+4>>2]|0,C|0,((C|0)<0)<<31>>31|0)|0;V=P;c[(V&p)>>2]=U;c[(V&p)+4>>2]=G;r=z+(r*40|0)+8|0;if(!(b[(r&o)>>1]&9312))b[(r&o)>>1]=1;else vg(M);if(C){if(!A){y=ge;z=je;r=m;m=x;ie=1317;break a}Xg(M,A,-1,1,1)|0}Yl(M,xb)|0;S=z;T=s;U=W;V=X;r=t;break}case 947:{ie=0;v=c[(s+(t*20|0)&p)+4>>2]|0;r=z+(v*40|0)|0;u=c[(s+(t*20|0)&p)+8>>2]|0;v=z+(v*40|0)+8|0;if((b[(v&o)>>1]&32)==0?(hn(r),(b[(v&o)>>1]&32)==0):0){y=ge;z=je;r=m;m=x;ie=1317;break a}S=z+(u*40|0)|0;jn(c[(r&p)>>2]|0,c[(S&p)>>2]|0,c[(S&p)+4>>2]|0);S=z;T=s;U=W;V=X;u=J;r=t;break}case 966:{ie=0;r=c[(s+(t*20|0)&p)+4>>2]|0;P=z+(r*40|0)|0;O=z+((c[(s+(t*20|0)&p)+12>>2]|0)*40|0)|0;N=c[(s+(t*20|0)&p)+16>>2]|0;r=z+(r*40|0)+8|0;if((b[(r&o)>>1]&32)==0?(hn(P),(b[(r&o)>>1]&32)==0):0){y=ge;z=je;r=m;m=x;ie=1317;break a}if(N){L=c[(P&p)>>2]|0;v=O;M=c[(v&p)>>2]|0;v=c[(v&p)+4>>2]|0;K=L+28|0;if((c[(K&p)>>2]|0)!=(N|0)){C=L+8|0;J=c[(C&p)>>2]|0;if(J){I=L+20|0;A=L+26|0;if(!(b[(A&o)>>1]&1))J=kn(J)|0;H=c[(I&p)>>2]|0;A:do if(!H){ld=J;rd=I;ie=978}else{while(1){I=H+12|0;F=c[(I&p)>>2]|0;if(!F)break;E=H+8|0;ln(F,ke,Sd);c[(I&p)>>2]=0;J=mn(c[(ke&p)>>2]|0,J)|0;H=c[(E&p)>>2]|0;if(!H){ld=J;rd=E;ie=978;break A}}c[(I&p)>>2]=nn(J)|0}while(0);if((ie|0)==978?(ie=0,Kc=on(L)|0,c[(rd&p)>>2]=Kc,(Kc|0)!=0):0){V=Kc;c[(V&p)>>2]=0;c[(V&p)+4>>2]=0;c[(Kc&p)+8>>2]=0;c[(Kc&p)+12>>2]=nn(ld)|0}c[(C&p)>>2]=0;c[(L&p)+12>>2]=0;b[(A&o)>>1]=e[(A&o)>>1]|1}c[(K&p)>>2]=N}C=c[(L&p)+20>>2]|0;B:do if(C){C:while(1){A=c[(C&p)+12>>2]|0;if(A)do{r=A;E=c[(r&p)>>2]|0;r=c[(r&p)+4>>2]|0;if((r|0)<(v|0)|(r|0)==(v|0)&E>>>0>>0)A=A+8|0;else{if(!((r|0)>(v|0)|(r|0)==(v|0)&E>>>0>M>>>0))break C;A=A+12|0}A=c[(A&p)>>2]|0}while((A|0)!=0);C=c[(C&p)+8>>2]|0;if(!C)break B}S=z;T=s;U=W;V=X;r=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;break q}while(0);if((N|0)>-1)C=O;else{S=z;T=s;U=W;V=X;r=t;break}}else C=O;S=C;jn(c[(P&p)>>2]|0,c[(S&p)>>2]|0,c[(S&p)+4>>2]|0);S=z;T=s;U=W;V=X;r=t;break}case 993:{ie=0;K=c[(s+(r*20|0)&p)+16>>2]|0;I=c[(s+(r*20|0)&p)+12>>2]|0;L=z+(I*40|0)|0;if((a[(s+(r*20|0)&n)+3>>0]|0)!=0?(Lc=c[(K&p)+20>>2]|0,nd=c[(sb&p)>>2]|0,(nd|0)!=0):0){t=nd;while(1){if((c[(t&p)+28>>2]|0)==(Lc|0)){S=z;T=s;U=W;V=X;break q}t=c[(t&p)+4>>2]|0;if(!t){t=r;break}}}else t=r;r=c[(tb&p)>>2]|0;if((r|0)>=(c[(Ba&p)>>2]|0)){u=x;ie=998;break c}E=z+(I*40|0)+8|0;if(!(b[(E&o)>>1]&64)){C=K+12|0;A=c[(C&p)>>2]|0;r=A+(c[(K&p)+8>>2]|0)|0;s=K+16|0;A=(A<<2)+80+(c[(s&p)>>2]|0)+(r*40|0)|0;J=mh(le,A,((A|0)<0)<<31>>31)|0;if(!J){y=ge;z=je;r=m;m=x;ie=1317;break a}fw(J|0,0,A|0)|0;if(!((b[(E&o)>>1]&9312)==0?(c[(z+(I*40|0)&p)+24>>2]|0)==0:0))Qg(L);b[(E&o)>>1]=64;c[(L&p)>>2]=J;c[(J&p)>>2]=f;c[(J&p)+60>>2]=r;c[(J&p)+64>>2]=c[(C&p)>>2];c[(J&p)+44>>2]=t;c[(J&p)+16>>2]=c[(Nc&p)>>2];c[(J&p)+52>>2]=c[(Ca&p)>>2];c[(J&p)+24>>2]=c[(Ib&p)>>2];c[(J&p)+40>>2]=c[(Da&p)>>2];c[(J&p)+8>>2]=c[(zc&p)>>2];c[(J&p)+48>>2]=c[(Ea&p)>>2];c[(J&p)+28>>2]=c[(K&p)+20>>2];c[(J&p)+20>>2]=c[(Hb&p)>>2];c[(J&p)+56>>2]=c[(Fa&p)>>2];z=J+80|0;r=z+(r*40|0)|0;if((z|0)!=(r|0))do{b[(z&o)+8>>1]=128;c[(z&p)+32>>2]=le;z=z+40|0}while((z|0)!=(r|0));r=c[(tb&p)>>2]|0;z=J}else{s=K+16|0;z=c[(L&p)>>2]|0}c[(tb&p)>>2]=r+1;c[(z&p)+4>>2]=c[(sb&p)>>2];S=z+32|0;c[(S&p)>>2]=m;c[(S&p)+4>>2]=l;c[(z&p)+68>>2]=c[(ub&p)>>2];c[(z&p)+72>>2]=c[((c[(f&p)>>2]|0)&p)+80>>2];c[(ub&p)>>2]=0;c[(sb&p)>>2]=z;S=z+40|0;c[(Nc&p)>>2]=S;U=c[(z&p)+60>>2]|0;c[(Ca&p)>>2]=U;V=c[(z&p)+64>>2]&65535;c[(Da&p)>>2]=V;U=S+((U+1|0)*40|0)|0;c[(Ib&p)>>2]=U;T=c[(K&p)>>2]|0;c[(zc&p)>>2]=T;c[(Ea&p)>>2]=c[(K&p)+4>>2];V=U+(V<<2)|0;c[(Hb&p)>>2]=V;U=c[(s&p)>>2]|0;c[(Fa&p)>>2]=U;fw(V|0,0,U|0)|0;U=W;V=X;r=-1;break}case 1009:{ie=0;S=c[(sb&p)>>2]|0;Zl(u,(c[(S&p)+16>>2]|0)+(((c[((c[(S&p)+8>>2]|0)+((c[(S&p)+44>>2]|0)*20|0)&p)+4>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]|0)|0)*40|0)|0,4096);S=z;T=s;U=W;V=X;break}case 1010:{ie=0;if(c[(Tb&p)>>2]&16777216){T=c[(s+(r*20|0)&p)+8>>2]|0;S=Rb;T=jw(c[(S&p)>>2]|0,c[(S&p)+4>>2]|0,T|0,((T|0)<0)<<31>>31|0)|0;S=Rb;c[(S&p)>>2]=T;c[(S&p)+4>>2]=G;S=z;T=s;U=W;V=X;u=J;break}t=c[(s+(r*20|0)&p)+8>>2]|0;u=((t|0)<0)<<31>>31;if(!(c[(s+(r*20|0)&p)+4>>2]|0)){T=_d;T=jw(c[(T&p)>>2]|0,c[(T&p)+4>>2]|0,t|0,u|0)|0;S=_d;c[(S&p)>>2]=T;c[(S&p)+4>>2]=G;S=z;T=s;U=W;V=X;u=J;break}else{T=Qb;T=jw(c[(T&p)>>2]|0,c[(T&p)+4>>2]|0,t|0,u|0)|0;S=Qb;c[(S&p)>>2]=T;c[(S&p)+4>>2]=G;S=z;T=s;U=W;V=X;u=J;break}}case 1015:{ie=0;if(!(c[(s+(r*20|0)&p)+4>>2]|0)){V=_d;if(!((c[(V&p)>>2]|0)==0&(c[(V&p)+4>>2]|0)==0)){S=z;T=s;U=W;V=X;break}V=Rb;if(!((c[(V&p)>>2]|0)==0&(c[(V&p)+4>>2]|0)==0)){S=z;T=s;U=W;V=X;break}S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0;break}else{V=Qb;if(!((c[(V&p)>>2]|0)==0&(c[(V&p)+4>>2]|0)==0)){S=z;T=s;U=W;V=X;break}V=Rb;if(!((c[(V&p)>>2]|0)==0&(c[(V&p)+4>>2]|0)==0)){S=z;T=s;U=W;V=X;break}S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0;break}}case 1022:{ie=0;t=c[(sb&p)>>2]|0;if(!t)v=z+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)|0;else{while(1){u=c[(t&p)+4>>2]|0;if(!u)break;else t=u}v=(c[(t&p)+16>>2]|0)+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)|0}U=Vg(v)|0;V=v;c[(V&p)>>2]=U;c[(V&p)+4>>2]=G;V=v+8|0;b[(V&o)>>1]=e[(V&o)>>1]&48640|4;V=c[(s+(r*20|0)&p)+8>>2]|0;U=z+(V*40|0)|0;t=Vg(U)|0;u=G;c[(U&p)>>2]=t;c[(U&p)+4>>2]=u;V=z+(V*40|0)+8|0;b[(V&o)>>1]=e[(V&o)>>1]&48640|4;V=v;U=c[(V&p)+4>>2]|0;if((U|0)<(u|0)|((U|0)==(u|0)?(c[(V&p)>>2]|0)>>>0>>0:0)){S=v;c[(S&p)>>2]=t;c[(S&p)+4>>2]=u;S=z;T=s;U=W;V=X;u=L}else{S=z;T=s;U=W;V=X;u=L}break}case 1028:{ie=0;V=z+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)|0;U=c[(V&p)+4>>2]|0;if((U|0)>0|(U|0)==0&(c[(V&p)>>2]|0)>>>0>0){S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0}else{S=z;T=s;U=W;V=X}break}case 1030:{ie=0;T=c[(s+(r*20|0)&p)+12>>2]|0;U=z+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)|0;V=U;T=jw(c[(V&p)>>2]|0,c[(V&p)+4>>2]|0,T|0,((T|0)<0)<<31>>31|0)|0;V=G;c[(U&p)>>2]=T;c[(U&p)+4>>2]=V;if((V|0)<0){S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0}else{S=z;T=s;U=W;V=X}break}case 1032:{ie=0;t=z+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)|0;v=t;u=c[(v&p)>>2]|0;v=c[(v&p)+4>>2]|0;if((u|0)==0&(v|0)==0){S=z;T=s;U=W;V=X;u=J}else{T=c[(s+(r*20|0)&p)+12>>2]|0;T=jw(T|0,((T|0)<0)<<31>>31|0,u|0,v|0)|0;S=t;c[(S&p)>>2]=T;c[(S&p)+4>>2]=G;S=z;T=s;U=W;V=X;u=J;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0}break}case 1034:{ie=0;T=z+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)|0;U=T;U=jw(c[(U&p)>>2]|0,c[(U&p)+4>>2]|0,-1,-1)|0;V=G;c[(T&p)>>2]=U;c[(T&p)+4>>2]=V;if((U|0)==0&(V|0)==0){S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0}else{S=z;T=s;U=W;V=X}break}case 1036:{ie=0;T=z+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)|0;V=T;U=c[(V&p)>>2]|0;V=c[(V&p)+4>>2]|0;S=jw(U|0,V|0,1,0)|0;c[(T&p)>>2]=S;c[(T&p)+4>>2]=G;if((U|0)==0&(V|0)==0){S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0}else{S=z;T=s;U=W;V=X}break}case 1157:{ie=0;S=z;T=s;U=W;V=X;r=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;break}case 1158:{ie=0;if(c[(s+(r*20|0)&p)+4>>2]|0){b[(Yd&o)>>1]=b[(Yd&o)>>1]|8;S=z;T=s;U=W;V=X;break}t=c[(Vb&p)>>2]|0;if(!t){S=z;T=s;U=W;V=X}else{do{V=t+88|0;b[(V&o)>>1]=b[(V&o)>>1]|8;t=c[(t&p)+52>>2]|0}while((t|0)!=0);S=z;T=s;U=W;V=X}break}case 1166:{ie=0;J=(c[(w&p)>>2]|0)+72|0;t=c[(J&p)>>2]|0;D:do if(t){while(1){if((c[(t&p)+4>>2]|0)==(A|0)?(c[(t&p)>>2]|0)==(C|0):0)break;t=c[(t&p)+12>>2]|0;if(!t){ie=1171;break D}}if(!t)ie=1171}else ie=1171;while(0);if((ie|0)==1171){ie=0;t=qg(16,0)|0;if(!t){t=r;s=7;u=x;ie=1309;break c}U=t+0|0;V=U+12|0;do{a[(U&n)>>0]=0;U=U+1|0}while((U|0)<(V|0));c[(t&p)+4>>2]=A;c[(t&p)>>2]=C;c[(t&p)+12>>2]=c[(J&p)>>2];c[(J&p)>>2]=t}t=t+8|0;if((d[(t&n)>>0]|0)<(v&255)){a[(t&n)>>0]=v;S=z;T=s;U=W;V=X}else{S=z;T=s;U=W;V=X}break}case 1213:{ie=0;c[(sd&p)>>2]=0;v=c[((c[(s+(r*20|0)&p)+16>>2]|0)&p)+8>>2]|0;if(!v){t=r;s=6;u=x;ie=1309;break c}w=c[(v&p)>>2]|0;if(!w){t=r;s=6;u=x;ie=1309;break c}C=rc[c[(w&p)+24>>2]&127](v,sd)|0;Mm(f,v);if(C){t=r;s=C;u=x;ie=1309;break c}c[(c[(sd&p)>>2]&p)>>2]=v;t=xm(f,c[(s+(r*20|0)&p)+4>>2]|0,0,-1,0)|0;if(!t){a[(ge&n)>>0]=1;lc[c[(w&p)+28>>2]&127](c[(sd&p)>>2]|0)|0;S=z;T=s;U=W;V=X;break}else{c[(t&p)+32>>2]=c[(sd&p)>>2];S=v+4|0;c[(S&p)>>2]=(c[(S&p)>>2]|0)+1;S=z;T=s;U=W;V=X;break}}case 1226:{ie=0;t=z+(C*40|0)+8|0;if(!(b[(t&o)>>1]&9312)){b[(t&o)>>1]=1;S=z;T=s;U=W;V=X;break}else{vg(A);S=z;T=s;U=W;V=X;break}}case 1257:{ie=0;S=u;c[(S&p)>>2]=c[((c[((c[((c[(Xd&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<4)&p)+4>>2]|0)&p)+4>>2]|0)&p)+44>>2];c[(S&p)+4>>2]=0;S=z;T=s;U=W;V=X;break}case 1258:{ie=0;v=c[((c[(Xd&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<4)&p)+4>>2]|0;t=c[(s+(r*20|0)&p)+12>>2]|0;u=c[(v&p)+4>>2]|0;if(!t)t=0;else{V=c[(u&p)+44>>2]|0;t=V>>>0>>0?t:V}c[(u&p)+4>>2]=c[(v&p)>>2];u=(c[(u&p)>>2]|0)+156|0;if((t|0)>0)c[(u&p)>>2]=t;else t=c[(u&p)>>2]|0;S=J;c[(S&p)>>2]=t;c[(S&p)+4>>2]=((t|0)<0)<<31>>31;S=z;T=s;U=W;V=X;u=J;break}case 1264:{ie=0;r=c[(s+(t*20|0)&p)+8>>2]|0;r=(r|0)==0?t:r+-1|0;if((c[(Sa&p)>>2]|0)!=0?(b[(Yd&o)>>1]&512)==0:0){t=c[(s+(t*20|0)&p)+16>>2]|0;if(!t){t=c[(ce&p)>>2]|0;if(!t){S=z;T=s;U=W;V=X;u=L;break}}c[(Sd&p)>>2]=0;F=c[(f&p)>>2]|0;v=c[(F&p)+88>>2]|0;c[(fb&p)>>2]=Nd;c[(gb&p)>>2]=Nd;c[(hb&p)>>2]=0;c[(ib&p)>>2]=100;c[(jb&p)>>2]=v;a[(kb&n)>>0]=1;a[(lb&n)>>0]=0;c[(qd&p)>>2]=F;v=a[(t&n)>>0]|0;u=v<<24>>24==0;E:do if((c[(F&p)+160>>2]|0)>1){if(!u)while(1){u=t;do{u=u+1|0;if(v<<24>>24==10)break;v=a[(u&n)>>0]|0}while(v<<24>>24!=0);Sk(qd,42288,3);Sk(qd,t,u-t|0);v=a[(u&n)>>0]|0;if(!(v<<24>>24))break;else t=u}}else if(!u){H=F+62|0;K=1;do{F:do if(!(v<<24>>24)){A=0;u=0}else{C=t;u=0;while(1){A=Cn(C,ke)|0;if((c[(ke&p)>>2]|0)==135)break F;u=A+u|0;C=C+A|0;if(!(a[(C&n)>>0]|0)){A=0;break}}}while(0);Sk(qd,t,u);C=t+u|0;if(!A)break E;do if((a[(C&n)>>0]|0)==63)if((A|0)>1){Dn(t+(u+1)|0,Sd)|0;C=c[(Sd&p)>>2]|0;break}else{c[(Sd&p)>>2]=K;C=K;break}else{C=qh(f,C,A)|0;c[(Sd&p)>>2]=C}while(0);t=t+(u+A)|0;K=C+1|0;J=C+-1|0;I=c[(Ab&p)>>2]|0;C=I+(J*40|0)|0;A=e[(I+(J*40|0)&o)+8>>1]|0;do if(!(A&1)){if(A&4){T=C;U=c[(T&p)+4>>2]|0;V=ke;c[(V&p)>>2]=c[(T&p)>>2];c[(V&p)+4>>2]=U;En(qd,0,19920,ke);break}if(A&8){h[(k&q)>>3]=+h[(C&q)>>3];c[(ke&p)>>2]=c[(k&p)>>2];c[(ke&p)+4>>2]=c[(k&p)+4>>2];En(qd,0,20272,ke);break}if(!(A&2)){if(A&16384){c[(ke&p)>>2]=c[(C&p)>>2];En(qd,0,42304,ke);break}Sk(qd,42320,2);E=c[(I+(J*40|0)&p)+12>>2]|0;if((E|0)>0){C=I+(J*40|0)+16|0;A=0;do{c[(ke&p)>>2]=d[((c[(C&p)>>2]|0)+A&n)>>0];En(qd,0,42328,ke);A=A+1|0}while((A|0)!=(E|0))}Sk(qd,42336,1);break}else{E=a[(H&n)>>0]|0;if(E<<24>>24==1){V=c[(I+(J*40|0)&p)+16>>2]|0;c[(ke&p)>>2]=c[(I+(J*40|0)&p)+12>>2];c[(ke&p)+4>>2]=V;En(qd,0,42296,ke);break}U=Od+0|0;V=U+40|0;do{c[(U&p)>>2]=0;U=U+4|0}while((U|0)<(V|0));c[(nb&p)>>2]=F;Xg(Od,c[(I+(J*40|0)&p)+16>>2]|0,c[(I+(J*40|0)&p)+12>>2]|0,E,0)|0;V=c[(ob&p)>>2]|0;if(!((V&2|0)==0|(V&16711680|0)==65536))Bn(Od,1)|0;V=c[(qb&p)>>2]|0;c[(ke&p)>>2]=c[(pb&p)>>2];c[(ke&p)+4>>2]=V;En(qd,0,42296,ke);if((b[(ob&o)>>1]&9312)==0&(c[(rb&p)>>2]|0)==0)break;Qg(Od);break}}else Sk(qd,20304,4);while(0);v=a[(t&n)>>0]|0}while(v<<24>>24!=0)}while(0);S=tg(qd)|0;jc[c[(Sa&p)>>2]&15](c[(mb&p)>>2]|0,S);mg(le,S);S=z;T=s;U=W;V=X;u=L}else{S=z;T=s;U=W;V=X;u=L}break}}if((ie|0)==28){ie=0;z=s+(r*20|0)+4|0;t=c[(z&p)>>2]|0;if(t){y=z;ie=34;break}z=c[(sb&p)>>2]|0;if(!z){ie=30;break}c[(sb&p)>>2]=c[(z&p)+4>>2];c[(tb&p)>>2]=(c[(tb&p)>>2]|0)+-1;l=c[(ub&p)>>2]|0;c[(vb&p)>>2]=l;c[(wb&p)>>2]=(c[(wb&p)>>2]|0)+l;z=Xl(z)|0;l=ne;t=c[(zc&p)>>2]|0;if((c[(s+(r*20|0)&p)+8>>2]|0)==4)r=(c[(t+(z*20|0)&p)+8>>2]|0)+-1|0;else r=z;m=c[(l&p)>>2]|0;l=c[(l&p)+4>>2]|0;S=c[(Nc&p)>>2]|0;T=t;U=W;V=X}else if((ie|0)==488){ie=0;u=sm(le,C,A)|0;if(!u){S=z;T=s;U=W;V=X;u=E}else{t=r;ie=1318;break}}z=S;s=T;W=U;X=V;t=r+1|0}switch(ie|0){case 30:{c[(me&p)>>2]=t;a[(fe&n)>>0]=c[(s+(r*20|0)&p)+8>>2];c[(he&p)>>2]=r;ie=41;break}case 34:{c[(me&p)>>2]=t;a[(fe&n)>>0]=c[(s+(r*20|0)&p)+8>>2];c[(he&p)>>2]=r;t=a[(s+(r*20|0)&n)+3>>0]|0;if(!(t<<24>>24)){s=c[(s+(r*20|0)&p)+16>>2]|0;if(!s){s=0;ie=39}else{c[(ke&p)>>2]=s;dh(je,le,10344,ke)}}else{u=c[((t&255)+-1<<2&p)+41536>>2]|0;t=c[(s+(r*20|0)&p)+16>>2]|0;if(!t){s=u;ie=39}else{c[(ke&p)>>2]=u;c[(ke&p)+4>>2]=t;dh(je,le,41624,ke)}}if((ie|0)==39){c[(ke&p)>>2]=s;dh(je,le,41656,ke)}ie=c[(y&p)>>2]|0;qd=c[(ce&p)>>2]|0;rd=c[(je&p)>>2]|0;c[(ke&p)>>2]=r;c[(ke&p)+4>>2]=qd;c[(ke&p)+8>>2]=rd;bd(ie,41600,ke);ie=41;break}case 80:{x=c[(be&p)>>2]|0;if(!((x|0)==0|g>>>0>>0)?(lc[x&127](c[(Zd&p)>>2]|0)|0)!=0:0){r=m;s=9;m=u;ie=1311;break a}rd=_d;qd=c[(rd&p)+4>>2]|0;if((qd|0)>0|(qd|0)==0&(c[(rd&p)>>2]|0)>>>0>0){s=c[(f&p)>>2]|0;c[(me&p)>>2]=787;a[(fe&n)>>0]=2;dh(je,s,34376,ke);s=1;ie=1309;break}x=$l(f,1)|0;if(!x){c[($d&p)>>2]=(c[($d&p)>>2]|0)+2|1;y=c[(s+(t*20|0)&p)+4>>2]|0;c[(de&p)>>2]=z+(y*40|0);r=s+(t*20|0)+8|0;if((c[(r&p)>>2]|0)>0){x=0;do{v=x+y|0;w=z+(v*40|0)|0;v=z+(v*40|0)+8|0;s=b[(v&o)>>1]|0;if(s&4096){if(Vl(w)|0){y=ge;z=je;r=m;m=u;ie=1317;break a}s=b[(v&o)>>1]|0}if((s&514)==2)am(w)|0;x=x+1|0}while((x|0)<(c[(r&p)>>2]|0))}if(a[(ge&n)>>0]|0){y=ge;z=je;r=m;m=u;ie=1317;break a}c[(he&p)>>2]=t+1;r=m;m=g;g=100;break a}else{s=x;ie=1309}break}case 313:{c[(ke&p)>>2]=73058;c[(ke&p)+4>>2]=10788;bd(11,13600,ke);s=11;ie=1309;break}case 343:{c[(ke&p)>>2]=73142;c[(ke&p)+4>>2]=10788;bd(11,13600,ke);s=11;ie=1309;break}case 447:{dh(je,le,41712,ke);t=r;s=5;ie=1309;break}case 460:{c[(ke&p)>>2]=s;dh(je,le,41768,ke);s=1;ie=1309;break}case 462:{dh(je,le,41792,ke);s=5;ie=1309;break}case 467:{c[(he&p)>>2]=g;a[(ee&n)>>0]=0;c[(me&p)>>2]=5;g=5;break a}case 489:{v=c[(s+(t*20|0)&p)+4>>2]|0;s=c[(s+(t*20|0)&p)+8>>2]|0;g=(v|0)!=0;if(g){s=(s|0)!=0;if(!(s|(a[(ee&n)>>0]|0)!=0))if((c[(ae&p)>>2]|0)>0){dh(je,le,41848,ke);g=m;m=r;s=5;ie=1309;break}else s=0}else s=(s|0)!=0;if((v|0)==(d[(ee&n)>>0]|0)){if(g)g=s?41952:42e3;else g=41904;dh(je,le,g,ke);g=m;m=r;s=1;ie=1309;break}if(!s){g=tm(f,1)|0;if(g)break a;a[(ee&n)>>0]=v;if((Rl(f)|0)==5){c[(he&p)>>2]=t;a[(ee&n)>>0]=1-v;c[(me&p)>>2]=5;g=5;break a}}else{Kl(le,516);a[(ee&n)>>0]=1}Ll(le);g=(c[(me&p)>>2]|0)==0?101:1;break a}case 508:{c[(he&p)>>2]=g;c[(me&p)>>2]=5;g=5;break a}case 522:{mg(le,c[(je&p)>>2]|0);c[(je&p)>>2]=kh(le,16040)|0;s=c[(s&p)>>2]|0;if((c[(c[((c[(Xd&p)>>2]|0)+(s<<4)&p)+12>>2]&p)>>2]|0)!=(v|0))vm(le,s);b[(Yd&o)>>1]=b[(Yd&o)>>1]|8;s=17;ie=1309;break}case 542:{c[(ke&p)>>2]=73997;c[(ke&p)+4>>2]=10788;bd(11,13600,ke);u=11;x=s;ie=1318;break}case 560:{c[(s&p)+56>>2]=0;s=7;ie=1309;break}case 832:{a[(fe&n)>>0]=2;s=6;ie=1309;break}case 882:{Eg(le);y=ge;z=je;r=m;m=u;ie=1317;break a}case 884:{Eg(le);if((s|0)==7){y=ge;z=je;r=m;m=u;ie=1317;break a}else ie=1309;break}case 998:{dh(je,le,42112,ke);s=1;ie=1309;break}case 1080:{c[(ke&p)>>2]=s?42208:42216;dh(je,le,42152,ke);s=1;ie=1309;break}case 1101:{dh(je,le,42344,ke);s=1;ie=1309;break}case 1103:{dh(je,le,42384,ke);s=1;ie=1309;break}case 1145:{c[(ke&p)>>2]=56343;c[(ke&p)+4>>2]=10788;bd(11,13600,ke);s=11;ie=1309;break}case 1316:{dh(je,le,10096,ke);r=m;s=18;m=u;ie=1311;break a}}if((ie|0)==41)if((Rl(f)|0)==5){c[(me&p)>>2]=5;r=m;m=g;g=5;break a}else{r=m;m=g;g=(c[(me&p)>>2]|0)!=0?1:101;break a}else if((ie|0)==1309){r=m;t=t+1|0;m=u;ie=1311;break a}else if((ie|0)==1318){u=(a[(ge&n)>>0]|0)==0?u:7;if((u|0)==3082){r=m;s=3082;m=x;ie=1311;break a}else if((u|0)!=516){r=u&255;if(r>>>0>26|(r|0)==2)s=16328;else s=c[(r<<2&p)+15488>>2]|0}else s=16344;c[(ke&p)>>2]=s;dh(je,le,10344,ke);r=m;s=u;m=x;ie=1311;break a}}else{u=f+44|0;r=m;g=0;t=0;m=0}while(0);c[(me&p)>>2]=9;c[(ke&p)>>2]=15832;dh(u,le,10344,ke);s=9;ie=1311}while(0);if((ie|0)==1317){a[(y&n)>>0]=1;dh(z,le,15776,ke);s=7;ie=1311}if((ie|0)==1311){c[(me&p)>>2]=s;qd=c[(f&p)+168>>2]|0;rd=c[(f&p)+44>>2]|0;c[(ke&p)>>2]=t;c[(ke&p)+4>>2]=qd;c[(ke&p)+8>>2]=rd;bd(s,42256,ke);Rl(f)|0;if((s|0)==3082)a[(le&n)+65>>0]=1;if(!(m<<24>>24)){m=g;g=1}else{vm(le,(m&255)+-1|0);m=g;g=1}}rd=ne;c[(rd&p)>>2]=r;c[(rd&p)+4>>2]=l;rd=f+124|0;c[(rd&p)>>2]=(c[(rd&p)>>2]|0)+m;i=oe;return g|0} function Ev(e){e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=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=e+20|0;u=e+14|0;f=a[(u&n)>>0]|0;z=e+13|0;g=a[(z&n)>>0]|0;a:do if((f&255)>(g&255))f=0;else{B=e+4|0;C=e+16|0;v=e+8|0;w=e+12|0;x=e+24|0;y=e+28|0;i=f&255;j=c[(B&p)>>2]|0;h=c[(D&p)>>2]|0;b:while(1){t=c[(e+(i+-2<<2)&p)+24>>2]|0;s=c[(e+(i+-1<<2)&p)+24>>2]|0;if(j){while(1){r=j+12|0;if((h|0)<(c[(r&p)>>2]|0)){g=h;f=(c[(j&p)+20>>2]|0)+(h*48|0)|0;while(1){do if((c[(f&p)+8>>2]|0)==(t|0)?(c[(f&p)+12>>2]|0)==(s|0):0){if((d[(u&n)>>0]|0)>=3?(c[((c[(f&p)>>2]|0)&p)+4>>2]&1|0)!=0:0)break;q=f+18|0;h=b[(q&o)>>1]|0;if((h&1024)!=0?(A=a[(z&n)>>0]|0,(A&255)<22):0){i=c[((c[(f&p)>>2]|0)&p)+16>>2]|0;c:do if(!i)i=0;else while(1){k=c[(i&p)+4>>2]|0;if(!(k&4096))break c;if(!(k&262144))i=i+12|0;else i=c[((c[(i&p)+20>>2]|0)&p)+4>>2]|0;i=c[(i&p)>>2]|0;if(!i){i=0;break}}while(0);d:do if(!(A<<24>>24)){m=0;k=0}else{l=c[(i&p)+28>>2]|0;m=i+32|0;k=0;while(1){if((c[(e+(k<<2)&p)+24>>2]|0)==(l|0)?(c[(e+((k|1)<<2)&p)+24>>2]|0)==(b[(m&o)>>1]|0):0){m=A;break d}k=k+2|0;if((k|0)>=(A&255|0)){m=A;break}}}while(0);if((k|0)==(m&255|0)){c[(e+(k<<2)&p)+24>>2]=c[(i&p)+28>>2];c[(e+((k|1)<<2)&p)+24>>2]=b[(i&o)+32>>1];a[(z&n)>>0]=(d[(z&n)>>0]|0)+2}}i=h&65535;if(i&c[(C&p)>>2]){if((c[(v&p)>>2]|0)!=0&(i&128|0)==0){l=c[(c[(j&p)>>2]&p)>>2]|0;k=c[(f&p)>>2]|0;i=a[(w&n)>>0]|0;h=(nv(k)|0)<<24>>24;if((h|0)==66){if(i<<24>>24!=66)break}else if((h|0)!=65?i<<24>>24<=66:0)break;h=Ou(l,c[(k&p)+12>>2]|0,c[(k&p)+16>>2]|0)|0;if(!h)h=c[((c[(l&p)>>2]|0)&p)+8>>2]|0;if(dd(c[(h&p)>>2]|0,c[(v&p)>>2]|0)|0)break;h=b[(q&o)>>1]|0}if(!(h&2))break b;h=c[((c[(f&p)>>2]|0)&p)+16>>2]|0;if((a[(h&n)>>0]|0)!=-102)break b;if((c[(h&p)+28>>2]|0)!=(c[(x&p)>>2]|0))break b;if((b[(h&o)+32>>1]|0)!=(c[(y&p)>>2]|0))break b}}while(0);g=g+1|0;if((g|0)>=(c[(r&p)>>2]|0))break;else f=f+48|0}g=c[(B&p)>>2]|0}else g=j;j=c[(g&p)+4>>2]|0;c[(B&p)>>2]=j;if(!j)break;else h=0}f=a[(u&n)>>0]|0;g=a[(z&n)>>0]|0}j=c[(e&p)>>2]|0;c[(B&p)>>2]=j;h=(f&255)+2|0;f=h&255;a[(u&n)>>0]=f;if((f&255)>(g&255)){f=0;break a}else{i=h&255;h=0}}c[(D&p)>>2]=g+1}while(0);return f|0}function Fv(d,f){d=d|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0,m=0,q=0;g=c[(d&p)>>2]|0;l=c[(c[(g&p)>>2]&p)>>2]|0;d=c[(d&p)+16>>2]|0;a:do if(!d){g=g+16|0;i=c[(g&p)>>2]|0;k=f+36|0;if((c[(k&p)>>2]&512|0)!=0&(i|0)!=0){d=f+20|0;j=f+22|0;h=a[(f&n)+16>>0]|0;do{do if((a[(i&n)+16>>0]|0)==h<<24>>24?(c[(i&p)+36>>2]&512|0)!=0:0){if(Tv(i,f)|0){b[(d&o)>>1]=b[(i&o)+20>>1]|0;b[(j&o)>>1]=(e[(i&o)+22>>1]|0)+65535;break}if(Tv(f,i)|0){b[(d&o)>>1]=b[(i&o)+20>>1]|0;b[(j&o)>>1]=(e[(i&o)+22>>1]|0)+1}}while(0);i=c[(i&p)+52>>2]|0}while((i|0)!=0)}d=Uv(g,f)|0;if(d){g=c[(d&p)>>2]|0;b:do if(g){d=g+52|0;if(c[(d&p)>>2]|0)do{d=Uv(d,f)|0;if(!d)break b;h=c[(d&p)>>2]|0;if(!h)break b;c[(d&p)>>2]=c[(h&p)+52>>2];Ju(l,h);mg(l,h)}while((c[(d&p)>>2]|0)!=0)}else{g=mh(l,72,0)|0;c[(d&p)>>2]=g;if(!g){d=7;break a}c[(g&p)+48>>2]=g+56;b[(g&o)+40>>1]=0;b[(g&o)+44>>1]=3;c[(g&p)+36>>2]=0;c[(g&p)+52>>2]=0}while(0);Lv(l,g);do if(!(Nu(l,g,e[(f&o)+40>>1]|0)|0)){h=g+0|0;d=f+0|0;i=h+44|0;do{c[(h&p)>>2]=c[(d&p)>>2];h=h+4|0;d=d+4|0}while((h|0)<(i|0));kw(c[(g&p)+48>>2]|0,c[(f&p)+48>>2]|0,e[(g&o)+40>>1]<<2|0)|0;d=c[(k&p)>>2]|0;if(d&1024){a[(f&n)+28>>0]=0;break}if(d&16384)c[(f&p)+28>>2]=0}else{d=g+24|0;c[(d&p)>>2]=0;c[(d&p)+4>>2]=0;c[(d&p)+8>>2]=0}while(0);if(((c[(g&p)+36>>2]&1024|0)==0?(m=g+28|0,q=c[(m&p)>>2]|0,(q|0)!=0):0)?(c[(q&p)+40>>2]|0)==0:0){c[(m&p)>>2]=0;d=0}else d=0}else d=0}else{g=f;Kv(d,c[(g&p)>>2]|0,c[(g&p)+4>>2]|0,b[(f&o)+20>>1]|0,b[(f&o)+22>>1]|0);d=0}while(0);return d|0}function Gv(a,b){a=a|0;b=b|0;var c=0,e=0;c=a<<16>>16;e=b<<16>>16;do if(a<<16>>16>16)if((e|0)<=(c+49|0))if((e|0)>(c+31|0)){a=e+1&65535;break}else{a=(d[(e-c&n)+34032>>0]|0)+e&65535;break}else a=b;else if((c|0)<=(e+49|0))if((c|0)>(e+31|0)){a=c+1&65535;break}else{a=(d[(c-e&n)+34032>>0]|0)+c&65535;break}while(0);return a|0}function Hv(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0;do if(!(Cu(b,d,e)|0))f=1;else{f=a[(d&n)>>0]|0;if(f<<24>>24==71){if(Hv(b,c[(d&p)+12>>2]|0,e)|0){f=1;break}if(Hv(b,c[(d&p)+16>>2]|0,e)|0){f=1;break}if(f<<24>>24==77)g=6}else if(f<<24>>24==77)g=6;if(((g|0)==6?(Cu(c[(b&p)+12>>2]|0,c[(d&p)+12>>2]|0,e)|0)==0:0)?(f=a[(b&n)>>0]|0,!(f<<24>>24==73|f<<24>>24==76)):0){f=1;break}f=0}while(0);return f|0}function Iv(a,d,f){a=a|0;d=d|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0;x=i;i=i+16|0;if((i|0)>=(j|0))fa();w=x;u=d;v=d+8|0;g=v;t=~(c[(g&p)>>2]|c[(u&p)>>2]);u=~(c[(g&p)+4>>2]|c[(u&p)+4>>2]);g=c[(a&p)+12>>2]|0;r=a+20|0;a:do if((g|0)>0){s=d+40|0;a=d+22|0;q=d+48|0;d=0;n=c[(r&p)>>2]|0;while(1){if(b[(n&o)+20>>1]&2)break a;m=n+40|0;l=c[(m&p)>>2]|0;m=c[(m&p)+4>>2]|0;k=v;b:do if(((c[(k&p)>>2]&l|0)!=0?1:(c[(k&p)+4>>2]&m|0)!=0)&((l&t|0)==0&(m&u|0)==0)){h=b[(s&o)>>1]|0;c:do if(h<<16>>16){m=c[(q&p)>>2]|0;l=h&65535;while(1){h=l;l=l+-1|0;k=c[(m+(l<<2)&p)>>2]|0;if(k){if((k|0)==(n|0))break;k=c[(k&p)+4>>2]|0;if((k|0)>-1?((c[(r&p)>>2]|0)+(k*48|0)|0)==(n|0):0)break}if((l|0)<=0)break c}if((h|0)>=1)break b}while(0);h=b[(n&o)+16>>1]|0;if(h<<16>>16<1){b[(a&o)>>1]=(e[(a&o)>>1]|0)+(h&65535);break}b[(a&o)>>1]=(b[(a&o)>>1]|0)+-1<<16>>16;if(b[(n&o)+18>>1]&2){l=(Ms(c[((c[(n&p)>>2]|0)&p)+16>>2]|0,w)|0)!=0;m=c[(w&p)>>2]|0;m=l&(m|0)>-2&(m|0)<2?10:20;c[(w&p)>>2]=m;d=(d<<16>>16|0)<(m|0)?m&65535:d}}while(0);g=g+-1|0;if((g|0)<=0)break;else n=n+48|0}}else{a=d+22|0;d=0}while(0);d=(f<<16>>16)-(d<<16>>16)|0;if((b[(a&o)>>1]|0)>(d|0))b[(a&o)>>1]=d;i=x;return}function Jv(d,f,g,h){d=d|0;f=f|0;g=g|0;h=h|0;var k=0,l=0,m=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,ga=0,ha=0;ha=i;i=i+112|0;if((i|0)>=(j|0))fa();R=ha;V=c[(c[(c[(d&p)>>2]&p)>>2]&p)>>2]|0;ea=c[(d&p)+12>>2]|0;if(!(a[(V&n)+65>>0]|0)){ga=ea+36|0;if(!(c[(ga&p)>>2]&32))if((c[(g&p)+40>>2]|0)<1)k=63;else k=(a[(f&n)+36>>0]&8)<<4^191;else k=24;W=g+51|0;ca=ea+24|0;l=b[((c[(g&p)+4>>2]|0)+(e[(ca&o)>>1]<<1)&o)>>1]|0;N=l<<16>>16;O=d+4|0;k=Dv(R,c[(O&p)>>2]|0,c[(f&p)+40>>2]|0,N,(a[(W&n)>>0]&4)==0?k:k&131,g)|0;X=b[(ca&o)>>1]|0;Y=ea+42|0;T=b[(Y&o)>>1]|0;Z=ea+40|0;U=b[(Z&o)>>1]|0;_=c[(ga&p)>>2]|0;Q=ea;P=c[(Q&p)>>2]|0;Q=c[(Q&p)+4>>2]|0;$=ea+22|0;aa=b[($&o)>>1]|0;b[(ea&o)+18>>1]=0;ba=g+8|0;D=b[(c[(ba&p)>>2]&o)>>1]|0;if(D<<16>>16<11)C=0;else{C=D<<16>>16;C=((fs(C,((C|0)<0)<<31>>31)|0)&65535)+65503&65535}a:do if(!k)k=0;else{E=l<<16>>16<0;F=f+16|0;G=ea+8|0;H=(U&65535)+1|0;I=ea+48|0;J=h<<16>>16==0;K=g+46|0;w=l<<16>>16>-1;x=g+50|0;y=g+44|0;z=ea+20|0;A=h<<16>>16;B=g+48|0;r=0;u=k;s=0;while(1){l=b[(u&o)+18>>1]|0;t=l&65535;if(l<<16>>16==128)if(!E?(a[((c[((c[(F&p)>>2]|0)&p)+4>>2]|0)+(N*24|0)&n)+20>>0]|0)==0:0)S=12;else{m=r;l=s;k=0}else S=12;if((S|0)==12){S=0;m=u+32|0;v=m;q=G;if(((c[(q&p)>>2]&c[(v&p)>>2]|0)==0?(c[(q&p)+4>>2]&c[(v&p)+4>>2]|0)==0:0)?(L=u+20|0,!((b[(L&o)>>1]&256)!=0&l<<16>>16==16)):0){c[(ga&p)>>2]=_;b[(ca&o)>>1]=X;b[(Z&o)>>1]=U;if(Nu(V,ea,H)|0){k=0;break a}k=b[(Z&o)>>1]|0;q=k+1<<16>>16;b[(Z&o)>>1]=q;c[((c[(I&p)>>2]|0)+((k&65535)<<2)&p)>>2]=u;k=m;l=G;m=(c[(k&p)+4>>2]|Q)&~c[(l&p)+4>>2];v=ea;c[(v&p)>>2]=(c[(k&p)>>2]|P)&~c[(l&p)>>2];c[(v&p)+4>>2]=m;b:do if(!(t&1)){if(t&2){k=c[(ga&p)>>2]|0;l=k|1;c[(ga&p)>>2]=l;do if(!E){if(!J){v=0;break b}if((e[(ca&o)>>1]|0)!=((e[(K&o)>>1]|0)+-1|0)){v=0;break b}if(!w)break;if(a[(x&n)>>0]|0)break;l=k|65537;c[(ga&p)>>2]=l;v=0;break b}while(0);l=k|4097;c[(ga&p)>>2]=l;v=0;break}if(t&128){l=c[(ga&p)>>2]|8;c[(ga&p)>>2]=l;v=0;break}k=c[(ga&p)>>2]|0;if(!(t&36)){l=k|18;c[(ga&p)>>2]=l;if(!(k&32)){v=0;r=0;s=u;break}v=0;r=c[((c[(I&p)>>2]|0)+((q&65535)+-2<<2)&p)>>2]|0;s=u;break}l=k|34;c[(ga&p)>>2]=l;if(!(b[(L&o)>>1]&256)){v=0;r=u;s=0}else{k=u+48|0;if(Nu(V,ea,(q&65535)+1|0)|0){k=0;break a}l=b[(Z&o)>>1]|0;b[(Z&o)>>1]=l+1<<16>>16;c[((c[(I&p)>>2]|0)+((l&65535)<<2)&p)>>2]=k;l=c[(ga&p)>>2]|16;c[(ga&p)>>2]=l;v=0;r=u;s=k}}else{k=c[(u&p)>>2]|0;l=c[(ga&p)>>2]|4;c[(ga&p)>>2]=l;if(!(c[(k&p)+4>>2]&2048)){k=c[(k&p)+20>>2]|0;if((k|0)!=0?(M=c[(k&p)>>2]|0,(M|0)!=0):0)v=(fs(M,((M|0)<0)<<31>>31)|0)<<16>>16;else v=0}else v=46}while(0);do if(!(l&2)){k=(b[(ca&o)>>1]|0)+1<<16>>16;b[(ca&o)>>1]=k;k=k&65535;m=b[(u&o)+16>>1]|0;if(m<<16>>16<1&w){q=(m&65535)-v+(e[($&o)>>1]|0)&65535;b[($&o)>>1]=q;break}m=c[(ba&p)>>2]|0;m=(e[($&o)>>1]|0)+((e[(m+(k<<1)&o)>>1]|0)-(e[(m+(k+-1<<1)&o)>>1]|0))|0;k=m&65535;b[($&o)>>1]=k;if(!(t&128))q=k;else{q=m+10&65535;b[($&o)>>1]=q}}else{k=b[($&o)>>1]|0;q=k<<16>>16;do if(r){m=b[(r&o)+16>>1]|0;if(m<<16>>16<1){k=(m&65535)+(k&65535)&65535;break}else{k=(k&65535)+65516&65535;break}}while(0);do if(s){m=b[(s&o)+16>>1]|0;if(m<<16>>16<1){k=(m&65535)+(k&65535)&65535;break}else{k=(k&65535)+65516&65535;break}}while(0);m=(r|0)!=0;do if(m?(b[(r&o)+16>>1]|0)>0&(s|0)!=0:0){if((b[(s&o)+16>>1]|0)<=0)break;k=(k&65535)+65516&65535}while(0);q=(((s|0)!=0)<<31>>31)+(m<<31>>31)+q|0;u=k<<16>>16<10?10:k<<16>>16;q=((u|0)<(q|0)?u:q)&65535;b[($&o)>>1]=q}while(0);k=q&65535;m=Gv(C,k+1+(((b[(y&o)>>1]|0)*15|0)/(b[((c[(F&p)>>2]|0)&o)+42>>1]|0)|0)&65535)|0;if(!(l&320))m=Gv(m,k+16&65535)|0;l=v+A|0;b[(z&o)>>1]=(m&65535)+l;b[($&o)>>1]=k+l;Iv(c[(O&p)>>2]|0,ea,D);k=Fv(d,ea)|0;v=c[(ga&p)>>2]|0;b[($&o)>>1]=(v&2|0)==0?q:aa;if((v&16|0)==0?(e[(ca&o)>>1]|0)<(e[(B&o)>>1]|0):0)Jv(d,f,g,l&65535)|0;b[($&o)>>1]=aa;m=r;l=s}else{m=r;l=s;k=0}}u=Ev(R)|0;if(!((k|0)==0&(u|0)!=0))break;else{r=m;s=l}}}while(0);l=ea;c[(l&p)>>2]=P;c[(l&p)+4>>2]=Q;b[(ca&o)>>1]=X;b[(Y&o)>>1]=T;c[(ga&p)>>2]=_;b[($&o)>>1]=aa;b[(Z&o)>>1]=U;l=X&65535;if(((X<<16>>16==T<<16>>16?(da=l+1|0,da>>>0<(e[(g&o)+46>>1]|0)>>>0):0)?(a[(W&n)>>0]&64)==0:0)?(b[((c[(ba&p)>>2]|0)+(da<<1)&o)>>1]|0)>41:0){k=Nu(V,ea,(U&65535)+1|0)|0;if(!k){b[(ca&o)>>1]=(b[(ca&o)>>1]|0)+1<<16>>16;b[(Y&o)>>1]=(b[(Y&o)>>1]|0)+1<<16>>16;k=b[(Z&o)>>1]|0;b[(Z&o)>>1]=k+1<<16>>16;c[((c[(ea&p)+48>>2]|0)+((k&65535)<<2)&p)>>2]=0;c[(ga&p)>>2]=c[(ga&p)>>2]|32768;k=c[(ba&p)>>2]|0;k=(e[(k+(l<<1)&o)>>1]|0)-(e[(k+(da<<1)&o)>>1]|0)|0;b[($&o)>>1]=(e[($&o)>>1]|0)-k;Jv(d,f,g,(((k<<16)+327680|0)>>>16)+(h&65535)&65535)|0;b[($&o)>>1]=aa;b[(ca&o)>>1]=X;b[(Y&o)>>1]=X;c[(ga&p)>>2]=_;k=0}}}else k=7;i=ha;return k|0}function Kv(a,d,e,f,g){a=a|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,i=0,j=0,k=0,l=0,m=0,n=0,q=0,r=0;l=b[(a&o)>>1]|0;h=a+8|0;a:do if(l<<16>>16){j=l;k=h;while(1){i=b[(k&o)+8>>1]|0;if(i<<16>>16>=f<<16>>16?(r=k,(c[(r&p)>>2]&d|0)==(d|0)?(c[(r&p)+4>>2]&e|0)==(e|0):0):0){n=k;q=14;break a}if(i<<16>>16<=f<<16>>16?(i=k,r=c[(i&p)>>2]|0,i=c[(i&p)+4>>2]|0,(r&d|0)==(r|0)&(i&e|0)==(i|0)):0)break a;j=j+-1<<16>>16;if(!(j<<16>>16))break;else k=k+16|0}if((l&65535)>=3){i=b[(a&o)+16>>1]|0;k=1;do{if(i<<16>>16>(b[(a+(k<<4)&o)+16>>1]|0))h=a+(k<<4)+8|0;k=k+1|0;i=b[(h&o)+8>>1]|0}while((k&65535)<(l&65535));if(i<<16>>16>f<<16>>16){n=h;q=14}}else q=9}else q=9;while(0);if((q|0)==9){n=l&65535;b[(a&o)>>1]=l+1<<16>>16;b[(a+(n<<4)&o)+18>>1]=g;n=a+(n<<4)+8|0;q=14}if((q|0)==14?(m=n,c[(m&p)>>2]=d,c[(m&p)+4>>2]=e,b[(n&o)+8>>1]=f,m=n+10|0,(b[(m&o)>>1]|0)>g<<16>>16):0)b[(m&o)>>1]=g;return}function Lv(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0;e=c[(d&p)+36>>2]|0;do if(e&17408){if((e&1024|0)!=0?(h=d+28|0,(a[(h&n)>>0]|0)!=0):0){e=d+32|0;Wc(c[(e&p)>>2]|0);a[(h&n)>>0]=0;c[(e&p)>>2]=0;break}if((e&16384|0)!=0?(f=d+28|0,g=c[(f&p)>>2]|0,(g|0)!=0):0){mg(b,c[(g&p)+16>>2]|0);mg(b,c[(f&p)>>2]|0);c[(f&p)>>2]=0}}while(0);return}function Mv(f,g,h,k,l,m,q){f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;m=m|0;q=q|0;var 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,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,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;ta=i;i=i+32|0;if((i|0)>=(j|0))fa();oa=ta;s=c[(c[(f&p)>>2]&p)>>2]|0;na=l&65535;if(l<<16>>16!=0?(b[(s&o)+60>>1]&128)!=0:0)r=0;else pa=3;a:do if((pa|0)==3){sa=c[(g&p)>>2]|0;r=sa&65535;if(r>>>0<=63){qa=iw(1,0,r|0)|0;qa=jw(qa|0,G|0,-1,-1)|0;ra=G;b:do if((qa|0)==0&(ra|0)==0){g=0;h=0;s=1}else{ha=h+24|0;ia=f+4|0;ja=(r|0)==0;ea=g+4|0;ga=(k&768)==0;da=s+8|0;W=(k&256)==0;X=f+68|0;Y=oa+20|0;Z=oa+4|0;aa=oa+24|0;ba=f+328|0;_=0;$=0;g=0;h=0;k=0;t=0;ca=0;s=1;l=0;while(1){if((ca|0)>0){U=l+8|0;V=c[(U&p)>>2]|k;t=c[(U&p)+4>>2]|t}else V=k;if((ca|0)<(na|0))l=c[((c[(ha&p)>>2]|0)+(ca<<2)&p)>>2]|0;else l=m;B=l+36|0;k=c[(B&p)>>2]|0;if(k&1024)break;U=c[((c[(ia&p)>>2]|0)+((d[(l&n)+16>>0]|0)*72|0)&p)+48>>2]|0;if(!ja){k=~V;v=~t;y=0;do{A=iw(1,0,y|0)|0;z=G;c:do if((A&g|0)==0&(z&h|0)==0){u=c[((c[(ea&p)>>2]|0)+(y*20|0)&p)>>2]|0;x=c[(u&p)+4>>2]|0;if(x&4096)do{if(!(x&262144))u=u+12|0;else u=c[((c[(u&p)+20>>2]|0)&p)+4>>2]|0;u=c[(u&p)>>2]|0;x=c[(u&p)+4>>2]|0}while((x&4096|0)!=0);if(((a[(u&n)>>0]|0)==-102?(c[(u&p)+28>>2]|0)==(U|0):0)?(ka=u+32|0,la=Fu(ba,U,b[(ka&o)>>1]|0,k,v,130,0)|0,(la|0)!=0):0){do if(b[(la&o)+18>>1]&2){if((b[(ka&o)>>1]|0)<=-1)break;u=cu(c[(f&p)>>2]|0,c[((c[(ea&p)>>2]|0)+(y*20|0)&p)>>2]|0)|0;if(!u)u=c[(da&p)>>2]|0;x=c[(u&p)>>2]|0;w=cu(c[(f&p)>>2]|0,c[(la&p)>>2]|0)|0;if(!w)w=c[(da&p)>>2]|0;if(dd(x,c[(w&p)>>2]|0)|0)break c}while(0);g=A|g;h=z|h}}while(0);y=y+1|0}while((y|0)<(r|0));k=c[(B&p)>>2]|0}do if(!(k&4096)){if(!(k&256)){u=c[(l&p)+28>>2]|0;if(!u){r=0;break a}if(a[(u&n)+51>>0]&4){r=0;break a}k=b[(u&o)+48>>1]|0;s=(a[(u&n)+50>>0]|0)!=0&1;if(!(k<<16>>16)){pa=71;break}else{S=k&65535;T=b[(u&o)+46>>1]|0}}else{S=1;T=0;u=0}J=l+24|0;K=l+42|0;L=l+48|0;M=(u|0)==0;N=u+32|0;O=iw(1,0,ca|0)|0;P=G;Q=u+4|0;R=u+28|0;I=u+12|0;k=0;u=0;A=0;H=0;d:while(1){z=(u|0)<(e[(J&o)>>1]|0);if((z?(b[(K&o)>>1]|0)==0:0)?(ma=e[((c[((c[(L&p)>>2]|0)+(u<<2)&p)>>2]|0)&o)+18>>1]|0,(ma&130|0)!=0):0){s=(ma&128|0)==0?s:0;z=H}else{if(!M){x=b[((c[(Q&p)>>2]|0)+(u<<1)&o)>>1]|0;w=a[((c[(R&p)>>2]|0)+u&n)>>0]|0;v=c[(I&p)>>2]|0;x=x<<16>>16==(b[(v&o)+36>>1]|0)?-1:x<<16>>16;y=(x|0)>-1;if(s<<24>>24!=0&y)if(z){y=1;F=x}else{y=1;F=x;s=(a[((c[(v&p)+4>>2]|0)+(x*24|0)&n)+20>>0]|0)==0?0:s}else F=x}else{y=0;F=-1;w=0}if(ja){pa=68;break}else{z=1;E=0}e:while(1){C=iw(1,0,E|0)|0;D=G;do if((C&g|0)==0&(D&h|0)==0){v=c[((c[(ea&p)>>2]|0)+(E*20|0)&p)>>2]|0;x=c[(v&p)+4>>2]|0;if(!(x&4096))B=v;else{B=v;do{if(!(x&262144))x=B+12|0;else x=c[((c[(B&p)+20>>2]|0)&p)+4>>2]|0;B=c[(x&p)>>2]|0;x=c[(B&p)+4>>2]|0}while((x&4096|0)!=0)}z=ga?0:z;if((a[(B&n)>>0]|0)!=-102)break;if((c[(B&p)+28>>2]|0)!=(U|0))break;if((b[(B&o)+32>>1]|0)!=(F|0))break;if(!y){B=C;y=D;z=E;break e}x=cu(c[(f&p)>>2]|0,v)|0;if(!x)x=c[(da&p)>>2]|0;if(!(dd(c[(x&p)>>2]|0,c[((c[(N&p)>>2]|0)+(u<<2)&p)>>2]|0)|0)){B=C;y=D;z=E;break e}}while(0);E=E+1|0;if(!(z<<24>>24!=0&(E|0)<(r|0))){pa=68;break d}}do if(W){if(H<<24>>24)if((w^A)<<24>>24==(a[((c[(ea&p)>>2]|0)+(z*20|0)&n)+12>>0]|0)){z=H;break}else{pa=68;break d}v=a[((c[(ea&p)>>2]|0)+(z*20|0)&n)+12>>0]|0;A=v^w;if(w<<24>>24==v<<24>>24){z=1;break}v=q;w=c[(v&p)+4>>2]|P;z=q;c[(z&p)>>2]=c[(v&p)>>2]|O;c[(z&p)+4>>2]=w;z=1}else z=H;while(0);g=B|g;h=y|h;k=(F|0)<0?1:k}u=u+1|0;if((u|0)>=(S|0))break;else H=z}if((pa|0)==68){pa=0;s=(u|0)==0|(u|0)<(T&65535|0)?0:s}if(!(k<<24>>24))pa=71;else s=1}else pa=71;while(0);if((pa|0)==71){pa=0;if(!(s<<24>>24)){s=0;break b}}U=l+8|0;_=c[(U&p)>>2]|_;$=c[(U&p)+4>>2]|$;if(!ja){z=~_;A=~$;y=0;do{u=iw(1,0,y|0)|0;x=G;do if((u&g|0)==0&(x&h|0)==0){k=c[((c[(ea&p)>>2]|0)+(y*20|0)&p)>>2]|0;v=Av(X,k)|0;w=G;if((v|0)==0&(w|0)==0?(c[(oa&p)>>2]=0,c[(oa&p)+4>>2]=0,c[(oa&p)+8>>2]=0,c[(oa&p)+12>>2]=0,c[(oa&p)+16>>2]=0,c[(oa&p)+20>>2]=0,a[(Y&n)>>0]=1,c[(oa&p)>>2]=78,c[(Z&p)>>2]=79,c[(aa&p)>>2]=0,rs(oa,k)|0,(a[(Y&n)>>0]|0)==0):0)break;U=(v&z|0)==0&(w&A|0)==0;g=(U?u:0)|g;h=(U?x:0)|h}while(0);y=y+1|0}while((y|0)<(r|0))}if(h>>>0>ra>>>0|(h|0)==(ra|0)&g>>>0>=qa>>>0|s<<24>>24==0|(ca|0)>=(na|0))break b;else{k=V;ca=ca+1|0}}ga=(a[(l&n)+29>>0]|0)==0;g=ga?g:qa;h=ga?h:ra}while(0);if((g|0)==(qa|0)&(h|0)==(ra|0)){r=sa&255;break}if(!(s<<24>>24)){do{r=r+-1|0;if((r|0)<=0){r=0;break a}ea=iw(1,0,r|0)|0;ea=jw(ea|0,G|0,-1,-1)|0;ga=G}while(!((ea&g|0)==(ea|0)&(ga&h|0)==(ga|0)));r=r&255}else r=-1}else r=0}while(0);i=ta;return r|0}function Nv(b,c,d,e){b=b|0;c=c|0;d=d|0;e=e|0;if(c)Sk(b,33920,5);if(!d)c=0;else{c=d;while(1)if(!(a[(c&n)>>0]|0))break;else c=c+1|0;c=c-d&1073741823}Sk(b,d,c);Sk(b,e,1);Sk(b,13552,1);return}function Ov(a){a=a|0;var d=0,e=0,f=0,g=0,h=0,i=0;i=c[(c[(c[(a&p)>>2]&p)>>2]&p)>>2]|0;d=c[(a&p)+12>>2]|0;g=a+20|0;if((d|0)>0){h=c[(g&p)>>2]|0;while(1){d=d+-1|0;f=h+20|0;e=b[(f&o)>>1]|0;if(e&1){Gk(i,c[(h&p)>>2]|0);e=b[(f&o)>>1]|0}e=e&65535;if(!(e&16)){if(e&32){e=c[(h&p)+12>>2]|0;Ov(e);mg(i,e)}}else{e=c[(h&p)+12>>2]|0;Ov(e);mg(i,e)}if((d|0)<=0)break;else h=h+48|0}}d=c[(g&p)>>2]|0;if((d|0)!=(a+24|0))mg(i,d);return}function Pv(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,o=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0;u=i;i=i+32|0;if((i|0)>=(j|0))fa();t=u;h=c[(b&p)+8>>2]|0;k=c[(b&p)>>2]|0;if(e){l=(f|0)==10;m=b+437|0;o=t+4|0;q=t+1|0;r=t+8|0;s=t+12|0;g=f&255;do{if(l)f=a[(e&n)+1>>0]|0;else f=g;a[(m&n)>>0]=f;f=d[(e&n)>>0]|0;if((f|0)==108){w=Vv(b,e)|0;v=gr(k,c[(e&p)+8>>2]|0,0)|0;f=Nr(k,c[(e&p)+28>>2]|0)|0;tr(b,w,v,f,d[(m&n)>>0]|0)}else if((f|0)==109){f=Vv(b,e)|0;rr(b,f,Mr(k,c[(e&p)+20>>2]|0,0,0)|0)}else if((f|0)==110){w=Vv(b,e)|0;v=Pr(k,c[(e&p)+24>>2]|0,0)|0;f=Mr(k,c[(e&p)+20>>2]|0,0,0)|0;sr(b,w,v,f,d[(m&n)>>0]|0)}else{f=gr(k,c[(e&p)+8>>2]|0,0)|0;a[(t&n)>>0]=4;c[(o&p)>>2]=0;a[(q&n)>>0]=0;c[(r&p)>>2]=0;c[(s&p)>>2]=0;ir(b,f,t)|0;Mk(k,f,1)}if((a[(e&n)>>0]|0)!=119)wh(h,98,0,0,0)|0;e=c[(e&p)+32>>2]|0}while((e|0)!=0)}i=u;return}function Qv(d,e,f,g){d=d|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0;m=i;i=i+16|0;if((i|0)>=(j|0))fa();h=m;l=c[(d&p)>>2]|0;c[(h&p)>>2]=0;c[(h&p)+4>>2]=0;h=nr(l,159,h,0)|0;do if(!h)h=0;else{k=g<<16>>16;if(g<<16>>16>-1?(b[(e&o)+36>>1]|0)!=g<<16>>16:0){g=c[(e&p)+4>>2]|0;c[(h&p)+28>>2]=f+1+k;a[(h&n)+1>>0]=a[(g+(k*24|0)&n)+21>>0]|0;k=c[(g+(k*24|0)&p)+16>>2]|0;if(!k)k=c[(c[(l&p)+8>>2]&p)>>2]|0;h=xv(d,h,k)|0;break}c[(h&p)+28>>2]=f;a[(h&n)+1>>0]=68}while(0);i=m;return h|0}function Rv(d,e,f,g){d=d|0;e=e|0;f=f|0;g=g|0;var h=0,i=0,j=0;d=mh(d,48,0)|0;if(d){h=d+0|0;i=h+44|0;do{a[(h&n)>>0]=0;h=h+1|0}while((h|0)<(i|0));a[(d&n)>>0]=-102;b[(d&o)+34>>1]=-1;c[(d&p)+24>>2]=1;h=c[(e+(f*72|0)&p)+24>>2]|0;c[(d&p)+44>>2]=h;c[(d&p)+28>>2]=c[(e+(f*72|0)&p)+48>>2];if((b[(h&o)+36>>1]|0)==(g|0))b[(d&o)+32>>1]=-1;else{b[(d&o)+32>>1]=g;j=(g|0)>63;g=iw(1,0,g|0)|0;h=e+(f*72|0)+64|0;f=h;i=c[(f&p)+4>>2]|(j?-2147483648:G);c[(h&p)>>2]=c[(f&p)>>2]|(j?0:g);c[(h&p)+4>>2]=i}h=d+4|0;c[(h&p)>>2]=c[(h&p)>>2]|4}return d|0}function Sv(b,e){b=b|0;e=e|0;if((a[(e&n)>>0]|0)==-101){e=e+38|0;a[(e&n)>>0]=(d[(e&n)>>0]|0)+(c[(b&p)+24>>2]|0)}return 0}function Tv(a,d){a=a|0;d=d|0;var f=0,g=0,h=0,i=0,j=0,k=0;f=b[(a&o)+40>>1]|0;i=f&65535;h=b[(a&o)+42>>1]|0;k=e[(d&o)+40>>1]|0;g=b[(d&o)+42>>1]|0;a:do if(!((g&65535)>(h&65535)?1:(i-(h&65535)|0)>=(k-(g&65535)|0))){g=b[(a&o)+20>>1]|0;h=b[(d&o)+20>>1]|0;if(g<<16>>16>=h<<16>>16){if(g<<16>>16>h<<16>>16){f=0;break}if((b[(a&o)+22>>1]|0)>(b[(d&o)+22>>1]|0)){f=0;break}}if(!(f<<16>>16))f=1;else{j=c[(a&p)+48>>2]|0;d=d+48|0;a=i;while(1){a=a+-1|0;h=c[(j+(a<<2)&p)>>2]|0;if(h){f=k;while(1){g=f+-1|0;if((f|0)<=0){f=0;break a}if((c[((c[(d&p)>>2]|0)+(g<<2)&p)>>2]|0)==(h|0))break;else f=g}if((f|0)<1){f=0;break a}}if((a|0)<=0){f=1;break}}}}else f=0;while(0);return f|0}function Uv(d,e){d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0,v=0;f=c[(d&p)>>2]|0;a:do if(f){k=a[(e&n)+16>>0]|0;l=e+17|0;m=e+18|0;q=e+20|0;r=e+22|0;s=e+42|0;t=e+36|0;do{if((a[(f&n)+16>>0]|0)==k<<24>>24?(a[(f&n)+17>>0]|0)==(a[(l&n)>>0]|0):0){if((((c[(f&p)+36>>2]&16384|0)!=0?(b[(s&o)>>1]|0)==0:0)?(c[(t&p)>>2]&513|0)==513:0)?(i=f,j=e,h=c[(j&p)>>2]|0,j=c[(j&p)+4>>2]|0,(h&c[(i&p)>>2]|0)==(h|0)?(j&c[(i&p)+4>>2]|0)==(j|0):0):0)break a;u=f;v=c[(u&p)>>2]|0;u=c[(u&p)+4>>2]|0;h=e;g=c[(h&p)>>2]|0;h=c[(h&p)+4>>2]|0;i=g&v;j=h&u;if((((i|0)==(v|0)&(j|0)==(u|0)?(b[(f&o)+18>>1]|0)<=(b[(m&o)>>1]|0):0)?(b[(f&o)+20>>1]|0)<=(b[(q&o)>>1]|0):0)?(b[(f&o)+22>>1]|0)<=(b[(r&o)>>1]|0):0){d=0;break a}if(((i|0)==(g|0)&(j|0)==(h|0)?(b[(f&o)+20>>1]|0)>=(b[(q&o)>>1]|0):0)?(b[(f&o)+22>>1]|0)>=(b[(r&o)>>1]|0):0)break a}d=f+52|0;f=c[(d&p)>>2]|0}while((f|0)!=0)}while(0);return d|0}function Vv(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;h=pr(c[(a&p)>>2]|0,0,b+12|0,0)|0;do if(h){g=c[(a&p)>>2]|0;f=c[((c[(b&p)+4>>2]|0)&p)+20>>2]|0;a:do if(f){e=c[(g&p)+20>>2]|0;if((e|0)>0){b=c[(g&p)+16>>2]|0;d=0;while(1){a=d+1|0;if((c[(b+(d<<4)&p)+12>>2]|0)==(f|0)){a=d;d=7;break a}if((a|0)<(e|0))d=a;else{d=7;break}}}else a=0}else{a=-1e6;d=7}while(0);if((d|0)==7)if(!((a|0)==0|(a|0)>1))break;a=kh(g,c[((c[(g&p)+16>>2]|0)+(a<<4)&p)>>2]|0)|0;c[(h+(((c[(h&p)>>2]|0)+-1|0)*72|0)&p)+12>>2]=a}while(0);return h|0}function Wv(a){a=a|0;var b=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,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;do if(a>>>0<245){if(a>>>0<11)q=16;else q=a+11&-8;a=q>>>3;l=c[12266]|0;i=l>>>a;if(i&3){e=(i&1^1)+a|0;f=e<<1;b=49104+(f<<2)|0;f=49104+(f+2<<2)|0;g=c[(f&p)>>2]|0;h=g+8|0;i=c[(h&p)>>2]|0;do if((b|0)!=(i|0)){if(i>>>0<(c[12270]|0)>>>0)Ob();d=i+12|0;if((c[(d&p)>>2]|0)==(g|0)){c[(d&p)>>2]=b;c[(f&p)>>2]=i;break}else Ob()}else c[12266]=l&~(1<>2]=x|3;x=g+(x|4)|0;c[(x&p)>>2]=c[(x&p)>>2]|1;x=h;return x|0}k=c[12268]|0;if(q>>>0>k>>>0){if(i){f=2<>>12&16;f=f>>>a;e=f>>>5&8;f=f>>>e;d=f>>>2&4;f=f>>>d;g=f>>>1&2;f=f>>>g;h=f>>>1&1;h=(e|a|d|g|h)+(f>>>h)|0;f=h<<1;g=49104+(f<<2)|0;f=49104+(f+2<<2)|0;d=c[(f&p)>>2]|0;a=d+8|0;e=c[(a&p)>>2]|0;do if((g|0)!=(e|0)){if(e>>>0<(c[12270]|0)>>>0)Ob();i=e+12|0;if((c[(i&p)>>2]|0)==(d|0)){c[(i&p)>>2]=g;c[(f&p)>>2]=e;m=c[12268]|0;break}else Ob()}else{c[12266]=l&~(1<>2]=q|3;j=d+q|0;c[(d+(q|4)&p)>>2]=b|1;c[(d+x&p)>>2]=b;if(m){e=c[12271]|0;g=m>>>3;i=g<<1;f=49104+(i<<2)|0;h=c[12266]|0;g=1<>2]|0;if(i>>>0<(c[12270]|0)>>>0)Ob();else{n=h;o=i}}else{c[12266]=h|g;n=49104+(i+2<<2)|0;o=f}c[(n&p)>>2]=e;c[(o&p)+12>>2]=e;c[(e&p)+8>>2]=o;c[(e&p)+12>>2]=f}c[12268]=b;c[12271]=j;x=a;return x|0}a=c[12267]|0;if(a){h=(a&0-a)+-1|0;w=h>>>12&16;h=h>>>w;v=h>>>5&8;h=h>>>v;x=h>>>2&4;h=h>>>x;i=h>>>1&2;h=h>>>i;g=h>>>1&1;g=c[((v|w|x|i|g)+(h>>>g)<<2&p)+49368>>2]|0;h=(c[(g&p)+4>>2]&-8)-q|0;i=g;while(1){d=c[(i&p)+16>>2]|0;if(!d){d=c[(i&p)+20>>2]|0;if(!d){l=h;k=g;break}}i=(c[(d&p)+4>>2]&-8)-q|0;x=i>>>0>>0;h=x?i:h;i=d;g=x?d:g}a=c[12270]|0;if(k>>>0>>0)Ob();b=k+q|0;if(k>>>0>=b>>>0)Ob();j=c[(k&p)+24>>2]|0;g=c[(k&p)+12>>2]|0;do if((g|0)==(k|0)){h=k+20|0;i=c[(h&p)>>2]|0;if(!i){h=k+16|0;i=c[(h&p)>>2]|0;if(!i){e=0;break}}while(1){g=i+20|0;f=c[(g&p)>>2]|0;if(f){i=f;h=g;continue}g=i+16|0;f=c[(g&p)>>2]|0;if(!f)break;else{i=f;h=g}}if(h>>>0>>0)Ob();else{c[(h&p)>>2]=0;e=i;break}}else{f=c[(k&p)+8>>2]|0;if(f>>>0>>0)Ob();i=f+12|0;if((c[(i&p)>>2]|0)!=(k|0))Ob();h=g+8|0;if((c[(h&p)>>2]|0)==(k|0)){c[(i&p)>>2]=g;c[(h&p)>>2]=f;e=g;break}else Ob()}while(0);do if(j){i=c[(k&p)+28>>2]|0;h=49368+(i<<2)|0;if((k|0)==(c[(h&p)>>2]|0)){c[(h&p)>>2]=e;if(!e){c[12267]=c[12267]&~(1<>>0<(c[12270]|0)>>>0)Ob();i=j+16|0;if((c[(i&p)>>2]|0)==(k|0))c[(i&p)>>2]=e;else c[(j&p)+20>>2]=e;if(!e)break}h=c[12270]|0;if(e>>>0>>0)Ob();c[(e&p)+24>>2]=j;i=c[(k&p)+16>>2]|0;do if(i)if(i>>>0>>0)Ob();else{c[(e&p)+16>>2]=i;c[(i&p)+24>>2]=e;break}while(0);i=c[(k&p)+20>>2]|0;if(i)if(i>>>0<(c[12270]|0)>>>0)Ob();else{c[(e&p)+20>>2]=i;c[(i&p)+24>>2]=e;break}}while(0);if(l>>>0<16){x=l+q|0;c[(k&p)+4>>2]=x|3;x=k+(x+4)|0;c[(x&p)>>2]=c[(x&p)>>2]|1}else{c[(k&p)+4>>2]=q|3;c[(k+(q|4)&p)>>2]=l|1;c[(k+l+q&p)>>2]=l;d=c[12268]|0;if(d){e=c[12271]|0;g=d>>>3;i=g<<1;f=49104+(i<<2)|0;h=c[12266]|0;g=1<>2]|0;if(h>>>0<(c[12270]|0)>>>0)Ob();else{r=i;s=h}}else{c[12266]=h|g;r=49104+(i+2<<2)|0;s=f}c[(r&p)>>2]=e;c[(s&p)+12>>2]=e;c[(e&p)+8>>2]=s;c[(e&p)+12>>2]=f}c[12268]=l;c[12271]=b}x=k+8|0;return x|0}else s=q}else s=q}else if(a>>>0<=4294967231){a=a+11|0;s=a&-8;k=c[12267]|0;if(k){h=0-s|0;a=a>>>8;if(a)if(s>>>0>16777215)d=31;else{q=(a+1048320|0)>>>16&8;r=a<>>16&4;r=r<>>16&2;d=14-(o|q|d)+(r<>>15)|0;d=s>>>(d+7|0)&1|d<<1}else d=0;f=c[(d<<2&p)+49368>>2]|0;a:do if(!f){a=0;i=0}else{if((d|0)==31)i=0;else i=25-(d>>>1)|0;l=h;a=0;b=s<>2]&-8;h=e-s|0;if(h>>>0>>0)if((e|0)==(s|0)){a=f;i=f;break a}else i=f;else h=l;r=c[(f&p)+20>>2]|0;f=c[(f+(b>>>31<<2)&p)+16>>2]|0;a=(r|0)==0|(r|0)==(f|0)?a:r;if(!f)break;else{l=h;b=b<<1}}}while(0);if((a|0)==0&(i|0)==0){a=2<>>12&16;r=r>>>n;m=r>>>5&8;r=r>>>m;o=r>>>2&4;r=r>>>o;q=r>>>1&2;r=r>>>q;a=r>>>1&1;a=c[((m|n|o|q|a)+(r>>>a)<<2&p)+49368>>2]|0}if(!a){o=h;q=i}else while(1){r=(c[(a&p)+4>>2]&-8)-s|0;f=r>>>0>>0;h=f?r:h;i=f?a:i;f=c[(a&p)+16>>2]|0;if(f){a=f;continue}a=c[(a&p)+20>>2]|0;if(!a){o=h;q=i;break}}if((q|0)!=0?o>>>0<((c[12268]|0)-s|0)>>>0:0){a=c[12270]|0;if(q>>>0>>0)Ob();m=q+s|0;if(q>>>0>=m>>>0)Ob();j=c[(q&p)+24>>2]|0;g=c[(q&p)+12>>2]|0;do if((g|0)==(q|0)){h=q+20|0;i=c[(h&p)>>2]|0;if(!i){h=q+16|0;i=c[(h&p)>>2]|0;if(!i){u=0;break}}while(1){g=i+20|0;f=c[(g&p)>>2]|0;if(f){i=f;h=g;continue}g=i+16|0;f=c[(g&p)>>2]|0;if(!f)break;else{i=f;h=g}}if(h>>>0>>0)Ob();else{c[(h&p)>>2]=0;u=i;break}}else{f=c[(q&p)+8>>2]|0;if(f>>>0>>0)Ob();i=f+12|0;if((c[(i&p)>>2]|0)!=(q|0))Ob();h=g+8|0;if((c[(h&p)>>2]|0)==(q|0)){c[(i&p)>>2]=g;c[(h&p)>>2]=f;u=g;break}else Ob()}while(0);do if(j){i=c[(q&p)+28>>2]|0;h=49368+(i<<2)|0;if((q|0)==(c[(h&p)>>2]|0)){c[(h&p)>>2]=u;if(!u){c[12267]=c[12267]&~(1<>>0<(c[12270]|0)>>>0)Ob();i=j+16|0;if((c[(i&p)>>2]|0)==(q|0))c[(i&p)>>2]=u;else c[(j&p)+20>>2]=u;if(!u)break}h=c[12270]|0;if(u>>>0>>0)Ob();c[(u&p)+24>>2]=j;i=c[(q&p)+16>>2]|0;do if(i)if(i>>>0>>0)Ob();else{c[(u&p)+16>>2]=i;c[(i&p)+24>>2]=u;break}while(0);i=c[(q&p)+20>>2]|0;if(i)if(i>>>0<(c[12270]|0)>>>0)Ob();else{c[(u&p)+20>>2]=i;c[(i&p)+24>>2]=u;break}}while(0);b:do if(o>>>0>=16){c[(q&p)+4>>2]=s|3;c[(q+(s|4)&p)>>2]=o|1;c[(q+o+s&p)>>2]=o;i=o>>>3;if(o>>>0<256){h=i<<1;f=49104+(h<<2)|0;g=c[12266]|0;i=1<>2]|0;if(h>>>0>=(c[12270]|0)>>>0){v=i;w=h;break}Ob()}while(0);c[(v&p)>>2]=m;c[(w&p)+12>>2]=m;c[(q+s&p)+8>>2]=w;c[(q+s&p)+12>>2]=f;break}d=o>>>8;if(d)if(o>>>0>16777215)f=31;else{w=(d+1048320|0)>>>16&8;x=d<>>16&4;x=x<>>16&2;f=14-(v|w|f)+(x<>>15)|0;f=o>>>(f+7|0)&1|f<<1}else f=0;i=49368+(f<<2)|0;c[(q+s&p)+28>>2]=f;c[(q+s&p)+20>>2]=0;c[(q+s&p)+16>>2]=0;h=c[12267]|0;g=1<>2]=m;c[(q+s&p)+24>>2]=i;c[(q+s&p)+12>>2]=m;c[(q+s&p)+8>>2]=m;break}d=c[(i&p)>>2]|0;if((f|0)==31)b=0;else b=25-(f>>>1)|0;c:do if((c[(d&p)+4>>2]&-8|0)!=(o|0)){h=o<>>31<<2)+16|0;i=c[(b&p)>>2]|0;if(!i)break;if((c[(i&p)+4>>2]&-8|0)==(o|0)){C=i;break c}else{h=h<<1;d=i}}if(b>>>0<(c[12270]|0)>>>0)Ob();else{c[(b&p)>>2]=m;c[(q+s&p)+24>>2]=d;c[(q+s&p)+12>>2]=m;c[(q+s&p)+8>>2]=m;break b}}else C=d;while(0);d=C+8|0;b=c[(d&p)>>2]|0;x=c[12270]|0;if(C>>>0>=x>>>0&b>>>0>=x>>>0){c[(b&p)+12>>2]=m;c[(d&p)>>2]=m;c[(q+s&p)+8>>2]=b;c[(q+s&p)+12>>2]=C;c[(q+s&p)+24>>2]=0;break}else Ob()}else{x=o+s|0;c[(q&p)+4>>2]=x|3;x=q+(x+4)|0;c[(x&p)>>2]=c[(x&p)>>2]|1}while(0);x=q+8|0;return x|0}}}else s=-1;while(0);a=c[12268]|0;if(a>>>0>=s>>>0){b=a-s|0;d=c[12271]|0;if(b>>>0>15){c[12271]=d+s;c[12268]=b;c[(d+s&p)+4>>2]=b|1;c[(d+a&p)>>2]=b;c[(d&p)+4>>2]=s|3}else{c[12268]=0;c[12271]=0;c[(d&p)+4>>2]=a|3;x=d+(a+4)|0;c[(x&p)>>2]=c[(x&p)>>2]|1}x=d+8|0;return x|0}a=c[12269]|0;if(a>>>0>s>>>0){w=a-s|0;c[12269]=w;x=c[12272]|0;c[12272]=x+s;c[(x+s&p)+4>>2]=w|1;c[(x&p)+4>>2]=s|3;x=x+8|0;return x|0}do if(!(c[12384]|0)){a=wb(30)|0;if(!(a+-1&a)){c[12386]=a;c[12385]=a;c[12387]=-1;c[12388]=-1;c[12389]=0;c[12377]=0;c[12384]=(Pb(0)|0)&-16^1431655768;break}else Ob()}while(0);l=s+48|0;b=c[12386]|0;k=s+47|0;d=b+k|0;b=0-b|0;m=d&b;if(m>>>0<=s>>>0){x=0;return x|0}a=c[12376]|0;if((a|0)!=0?(v=c[12374]|0,w=v+m|0,w>>>0<=v>>>0|w>>>0>a>>>0):0){x=0;return x|0}d:do if(!(c[12377]&4)){a=c[12272]|0;e:do if(a){f=49512|0;while(1){i=c[(f&p)>>2]|0;if(i>>>0<=a>>>0?(t=f+4|0,(i+(c[(t&p)>>2]|0)|0)>>>0>a>>>0):0){e=f;h=t;a=f;break}f=c[(f&p)+8>>2]|0;if(!f){H=181;break e}}if(a){a=d-(c[12269]|0)&b;if(a>>>0<2147483647){i=sb(a|0)|0;if((i|0)==((c[(e&p)>>2]|0)+(c[(h&p)>>2]|0)|0))H=190;else H=191}else a=0}else H=181}else H=181;while(0);do if((H|0)==181){i=sb(0)|0;if((i|0)!=(-1|0)){a=i;h=c[12385]|0;f=h+-1|0;if(!(f&a))a=m;else a=m-a+(f+a&0-h)|0;h=c[12374]|0;f=h+a|0;if(a>>>0>s>>>0&a>>>0<2147483647){w=c[12376]|0;if((w|0)!=0?f>>>0<=h>>>0|f>>>0>w>>>0:0){a=0;break}h=sb(a|0)|0;if((h|0)==(i|0))H=190;else{i=h;H=191}}else a=0}else a=0}while(0);f:do if((H|0)==190){if((i|0)!=(-1|0)){y=i;H=201;break d}}else if((H|0)==191){h=0-a|0;do if((i|0)!=(-1|0)&a>>>0<2147483647&l>>>0>a>>>0?(x=c[12386]|0,x=k-a+x&0-x,x>>>0<2147483647):0)if((sb(x|0)|0)==(-1|0)){sb(h|0)|0;a=0;break f}else{a=x+a|0;break}while(0);if((i|0)==(-1|0))a=0;else{y=i;H=201;break d}}while(0);c[12377]=c[12377]|4;H=198}else{a=0;H=198}while(0);if((((H|0)==198?m>>>0<2147483647:0)?(y=sb(m|0)|0,z=sb(0)|0,(y|0)!=(-1|0)&(z|0)!=(-1|0)&y>>>0>>0):0)?(A=z-y|0,B=A>>>0>(s+40|0)>>>0,B):0){a=B?A:a;H=201}if((H|0)==201){i=(c[12374]|0)+a|0;c[12374]=i;if(i>>>0>(c[12375]|0)>>>0)c[12375]=i;l=c[12272]|0;g:do if(l){e=49512|0;do{i=c[(e&p)>>2]|0;h=e+4|0;f=c[(h&p)>>2]|0;if((y|0)==(i+f|0)){D=i;E=h;F=f;G=e;H=213;break}e=c[(e&p)+8>>2]|0}while((e|0)!=0);if(((H|0)==213?(c[(G&p)+12>>2]&8|0)==0:0)?l>>>0>=D>>>0&l>>>0>>0:0){c[(E&p)>>2]=F+a;b=(c[12269]|0)+a|0;d=l+8|0;if(!(d&7))d=0;else d=0-d&7;x=b-d|0;c[12272]=l+d;c[12269]=x;c[(l+d&p)+4>>2]=x|1;c[(l+b&p)+4>>2]=40;c[12273]=c[12388];break}i=c[12270]|0;if(y>>>0>>0){c[12270]=y;k=y}else k=i;i=y+a|0;h=49512|0;do{if((c[(h&p)>>2]|0)==(i|0)){I=h;J=h;H=223;break}h=c[(h&p)+8>>2]|0}while((h|0)!=0);if((H|0)==223?(c[(J&p)+12>>2]&8|0)==0:0){c[(I&p)>>2]=y;i=J+4|0;c[(i&p)>>2]=(c[(i&p)>>2]|0)+a;i=y+8|0;if(!(i&7))q=0;else q=0-i&7;i=y+(a+8)|0;if(!(i&7))d=0;else d=0-i&7;i=y+(d+a)|0;o=q+s|0;n=y+o|0;m=i-(y+q)-s|0;c[(y+q&p)+4>>2]=s|3;h:do if((i|0)!=(l|0)){if((i|0)==(c[12271]|0)){x=(c[12268]|0)+m|0;c[12268]=x;c[12271]=n;c[(y+o&p)+4>>2]=x|1;c[(y+x+o&p)>>2]=x;break}l=a+4|0;j=c[(y+l+d&p)>>2]|0;if((j&3|0)==1){b=j&-8;f=j>>>3;i:do if(j>>>0>=256){e=c[(y+(d|24)+a&p)>>2]|0;g=c[(y+a+d&p)+12>>2]|0;do if((g|0)==(i|0)){g=d|16;h=y+(l+g)|0;j=c[(h&p)>>2]|0;if(!j){h=y+(g+a)|0;j=c[(h&p)>>2]|0;if(!j){O=0;break}}while(1){g=j+20|0;f=c[(g&p)>>2]|0;if(f){j=f;h=g;continue}g=j+16|0;f=c[(g&p)>>2]|0;if(!f)break;else{j=f;h=g}}if(h>>>0>>0)Ob();else{c[(h&p)>>2]=0;O=j;break}}else{f=c[(y+(d|8)+a&p)>>2]|0;if(f>>>0>>0)Ob();j=f+12|0;if((c[(j&p)>>2]|0)!=(i|0))Ob();h=g+8|0;if((c[(h&p)>>2]|0)==(i|0)){c[(j&p)>>2]=g;c[(h&p)>>2]=f;O=g;break}else Ob()}while(0);if(!e)break;j=c[(y+a+d&p)+28>>2]|0;h=49368+(j<<2)|0;do if((i|0)!=(c[(h&p)>>2]|0)){if(e>>>0<(c[12270]|0)>>>0)Ob();j=e+16|0;if((c[(j&p)>>2]|0)==(i|0))c[(j&p)>>2]=O;else c[(e&p)+20>>2]=O;if(!O)break i}else{c[(h&p)>>2]=O;if(O)break;c[12267]=c[12267]&~(1<
>>0){j=(j<<10&983040)+65536|k<<10&64512|d[(h&n)+3>>0]|d[(l&n)>>0]<<8&768;h=h+4|0}else h=l;do if(j>>>0>=128){if(j>>>0<2048){a[(i&n)>>0]=j>>>6&31|192;a[(i&n)+1>>0]=j&63|128;i=i+2|0;break}if(j>>>0<65536){a[(i&n)>>0]=j>>>12&15|224;a[(i&n)+1>>0]=j>>>6&63|128;a[(i&n)+2>>0]=j&63|128;i=i+3|0;break}else{a[(i&n)>>0]=j>>>18&7|240;a[(i&n)+1>>0]=j>>>12&63|128;a[(i&n)+2>>0]=j>>>6&63|128;a[(i&n)+3>>0]=j&63|128;i=i+4|0;break}}else{a[(i&n)>>0]=j;i=i+1|0}while(0)}while(h>>>0>>0);m=55}else{i=u;m=55}else{i=(l|0)>0;if(g<<24>>24==2)if(i){i=u;l=h;while(1){h=l+1|0;j=a[(l&n)>>0]|0;k=j&255;if((j&255)>191){k=d[(k+-192&n)+15360>>0]|0;a:do if((h|0)==(q|0))h=q;else while(1){j=a[(h&n)>>0]|0;if((j&-64)<<24>>24!=-128)break a;l=l+2|0;k=j&63|k<<6;if((l|0)==(q|0)){h=q;break}else{j=h;h=l;l=j}}while(0);if(!(k>>>0<128|(k&-2048|0)==55296|(k&-2|0)==65534))if(k>>>0<65536)m=22;else{l=k+-65536|0;a[(i&n)>>0]=l>>>10&192|k>>>10&63;a[(i&n)+1>>0]=l>>>18&3|216;a[(i&n)+2>>0]=k;a[(i&n)+3>>0]=k>>>8&3|220;i=i+4|0}else{k=65533;m=22}}else m=22;if((m|0)==22){m=0;a[(i&n)>>0]=k;a[(i&n)+1>>0]=k>>>8;i=i+2|0}if(h>>>0>>0)l=h;else break}}else i=u;else if(i){i=u;do{l=h+1|0;k=a[(h&n)>>0]|0;j=k&255;if((k&255)>191){j=d[(j+-192&n)+15360>>0]|0;b:do if((l|0)==(q|0))h=q;else{k=h;h=l;while(1){l=a[(h&n)>>0]|0;if((l&-64)<<24>>24!=-128)break b;k=k+2|0;j=l&63|j<<6;if((k|0)==(q|0)){h=q;break}else{l=h;h=k;k=l}}}while(0);if(!(j>>>0<128|(j&-2048|0)==55296|(j&-2|0)==65534))if(j>>>0<65536)m=31;else{l=j+-65536|0;a[(i&n)>>0]=l>>>18&3|216;a[(i&n)+1>>0]=l>>>10&192|j>>>10&63;a[(i&n)+2>>0]=j>>>8&3|220;a[(i&n)+3>>0]=j;i=i+4|0}else{j=65533;m=31}}else{h=l;m=31}if((m|0)==31){m=0;a[(i&n)>>0]=j>>>8;a[(i&n)+1>>0]=j;i=i+2|0}}while(h>>>0>>0)}else i=u;c[(r&p)>>2]=i-u;a[(i&n)>>0]=0;i=i+1|0}if((m|0)==55)c[(r&p)>>2]=i-u;a[(i&n)>>0]=0;i=f+8|0;r=b[(i&o)>>1]|0;h=r&65535;if(!((r&9312)==0?(c[(f&p)+24>>2]|0)==0:0))Qg(f);b[(i&o)>>1]=h&29|514;a[(v&n)>>0]=g;c[(s&p)>>2]=u;c[(f&p)+20>>2]=u;h=c[(t&p)>>2]|0;do if(!h)h=lc[c[8792>>2]&127](u)|0;else{if((c[(h&p)+276>>2]|0)>>>0<=u>>>0?(c[(h&p)+280>>2]|0)>>>0>u>>>0:0){h=e[(h&o)+248>>1]|0;break}h=lc[c[8792>>2]&127](u)|0}while(0);c[(f&p)+24>>2]=h;h=0}}else if(!(Vl(f)|0)){h=c[(f&p)+16>>2]|0;t=c[(f&p)+12>>2]&-2;i=h+t|0;if((t|0)>0)do{s=a[(h&n)>>0]|0;t=h+1|0;a[(h&n)>>0]=a[(t&n)>>0]|0;h=h+2|0;a[(t&n)>>0]=s}while(h>>>0>>0);a[(v&n)>>0]=g;h=0}else h=7;return h|0}function Cn(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,i=0,j=0;i=a[(b&n)>>0]|0;g=i&255;a:do switch(g|0){case 46:{if(((d[(b&n)+1>>0]|0)+-48|0)>>>0<10)j=51;else{c[(e&p)>>2]=122;f=1}break}case 47:{if((a[(b&n)+1>>0]|0)==42?(f=a[(b&n)+2>>0]|0,f<<24>>24!=0):0){f=f&255;g=3;while(1){i=a[(b+g&n)>>0]|0;if((f|0)==42&i<<24>>24==47){f=42;break}f=i&255;if(!(i<<24>>24))break;else g=g+1|0}c[(e&p)>>2]=151;f=((f|0)!=0&1)+g|0;break a}c[(e&p)>>2]=92;f=1;break}case 45:{if((a[(b&n)+1>>0]|0)==45)f=2;else{c[(e&p)>>2]=90;f=1;break a}while(1){g=a[(b+f&n)>>0]|0;if(g<<24>>24==0|g<<24>>24==10)break;f=f+1|0}c[(e&p)>>2]=151;break}case 41:{c[(e&p)>>2]=23;f=1;break}case 59:{c[(e&p)>>2]=1;f=1;break}case 43:{c[(e&p)>>2]=89;f=1;break}case 42:{c[(e&p)>>2]=91;f=1;break}case 40:{c[(e&p)>>2]=22;f=1;break}case 124:if((a[(b&n)+1>>0]|0)==124){c[(e&p)>>2]=94;f=2;break a}else{c[(e&p)>>2]=86;f=1;break a}case 91:{f=1;while(1){g=a[(b+f&n)>>0]|0;if(!(g<<24>>24)){g=g&255;break}f=f+1|0;if(g<<24>>24==93){g=93;break}}c[(e&p)>>2]=(g|0)==93?27:150;break}case 44:{c[(e&p)>>2]=26;f=1;break}case 38:{c[(e&p)>>2]=85;f=1;break}case 126:{c[(e&p)>>2]=96;f=1;break}case 34:case 39:case 96:{g=a[(b&n)+1>>0]|0;b:do if(g<<24>>24){f=1;while(1){if(g<<24>>24==i<<24>>24){f=f+1|0;if((a[(b+f&n)>>0]|0)!=i<<24>>24)break}f=f+1|0;g=a[(b+f&n)>>0]|0;if(!(g<<24>>24))break b}if(i<<24>>24==39){c[(e&p)>>2]=97;break a}else{c[(e&p)>>2]=27;break a}}else f=1;while(0);c[(e&p)>>2]=150;break}case 88:case 120:{if((a[(b&n)+1>>0]|0)==39){c[(e&p)>>2]=134;f=2;while(1){g=a[(b+f&n)>>0]|0;if(!(a[(g&255&n)+10368>>0]&8))break;else f=f+1|0}if(g<<24>>24==39&(f&1|0)==0)g=1;else{c[(e&p)>>2]=150;while(1){g=a[(b+f&n)>>0]|0;if(g<<24>>24==39|g<<24>>24==0)break;f=f+1|0}g=g<<24>>24!=0}f=(g&1)+f|0}else j=98;break}case 61:{c[(e&p)>>2]=79;f=(a[(b&n)+1>>0]|0)==61?2:1;break}case 60:{f=a[(b&n)+1>>0]|0;if(f<<24>>24==62){c[(e&p)>>2]=78;f=2;break a}else if(f<<24>>24==60){c[(e&p)>>2]=87;f=2;break a}else if(f<<24>>24==61){c[(e&p)>>2]=81;f=2;break a}else{c[(e&p)>>2]=82;f=1;break a}}case 57:case 56:case 55:case 54:case 53:case 52:case 51:case 50:case 49:case 48:{j=51;break}case 62:{f=a[(b&n)+1>>0]|0;if(f<<24>>24==61){c[(e&p)>>2]=83;f=2;break a}else if(f<<24>>24==62){c[(e&p)>>2]=88;f=2;break a}else{c[(e&p)>>2]=80;f=1;break a}}case 63:{c[(e&p)>>2]=135;f=1;while(1)if(((d[(b+f&n)>>0]|0)+-48|0)>>>0<10)f=f+1|0;else break;break}case 33:if((a[(b&n)+1>>0]|0)==61){c[(e&p)>>2]=78;f=2;break a}else{c[(e&p)>>2]=150;f=2;break a}case 58:case 35:case 64:case 36:{c[(e&p)>>2]=135;g=a[(b&n)+1>>0]|0;if(g<<24>>24){f=1;i=0;while(1){if(!(a[(g&255&n)+10368>>0]&70)){if(g<<24>>24==40&(i|0)>0){g=i;j=78;break}if(g<<24>>24!=58){g=i;break}g=f+1|0;if((a[(b+g&n)>>0]|0)==58)f=g;else{g=i;break}}else i=i+1|0;f=f+1|0;g=a[(b+f&n)>>0]|0;if(!(g<<24>>24)){g=i;break}}do if((j|0)==78){h=f;while(1){f=h+1|0;i=a[(b+f&n)>>0]|0;if(!(i<<24>>24))break;if(i<<24>>24!=41?(a[(i&255&n)+10368>>0]&1)==0:0)h=f;else{j=81;break}}if((j|0)==81)if(i<<24>>24==41){f=h+2|0;break}c[(e&p)>>2]=150}while(0);if(g)break a}else f=1;c[(e&p)>>2]=150;break}case 37:{c[(e&p)>>2]=93;f=1;break}case 13:case 12:case 10:case 9:case 32:{f=1;while(1)if(!(a[((d[(b+f&n)>>0]|0)&n)+10368>>0]&1))break;else f=f+1|0;c[(e&p)>>2]=151;break}default:j=98}while(0);c:do if((j|0)==51){c[(e&p)>>2]=132;f=a[(b&n)>>0]|0;if(f<<24>>24==48){g=a[(b&n)+1>>0]|0;if(g<<24>>24==88|g<<24>>24==120)if(!(a[((d[(b&n)+2>>0]|0)&n)+10368>>0]&8))h=0;else{f=3;while(1)if(!(a[((d[(b+f&n)>>0]|0)&n)+10368>>0]&8))break c;else f=f+1|0}else{f=48;h=0}}else h=0;while(1){g=h+1|0;if(((f&255)+-48|0)>>>0>=10){g=h;break}f=a[(b+g&n)>>0]|0;h=g}if(f<<24>>24==46){f=g;do{f=f+1|0;g=b+f|0}while(((d[(g&n)>>0]|0)+-48|0)>>>0<10);c[(e&p)>>2]=133;h=a[(g&n)>>0]|0;i=f}else{h=f;i=g}do if(h<<24>>24==69|h<<24>>24==101){g=a[(b+i&n)+1>>0]|0;if(((g&255)+-48|0)>>>0>=10){if(!(g<<24>>24==45|g<<24>>24==43)){g=h;f=i;break}f=i+2|0;if(((d[(b+f&n)>>0]|0)+-48|0)>>>0>=10){g=h;f=i;break}}else f=i+2|0;while(1){g=b+f|0;if(((d[(g&n)>>0]|0)+-48|0)>>>0<10)f=f+1|0;else break}c[(e&p)>>2]=133;g=a[(g&n)>>0]|0}else{g=h;f=i}while(0);if(a[(g&255&n)+10368>>0]&70)do{c[(e&p)>>2]=150;f=f+1|0}while((a[((d[(b+f&n)>>0]|0)&n)+10368>>0]&70)!=0)}else if((j|0)==98){if(!(a[(g&n)+10368>>0]&70)){c[(e&p)>>2]=150;f=1;break}else f=1;while(1)if(!(a[((d[(b+f&n)>>0]|0)&n)+10368>>0]&70))break;else f=f+1|0;c[(e&p)>>2]=fi(b,f)|0}while(0);return f|0}function Dn(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,i=0,j=0;f=a[(b&n)>>0]|0;if(f<<24>>24==43){b=b+1|0;i=0;j=13}else if(f<<24>>24==45){b=b+1|0;i=1;j=13}else if((f<<24>>24==48?(f=a[(b&n)+1>>0]|0,f<<24>>24==88|f<<24>>24==120):0)?(g=b+2|0,e=a[(g&n)>>0]|0,(a[(e&255&n)+10368>>0]&8)!=0):0){while(1){f=g+1|0;if(e<<24>>24!=48)break;g=f;e=a[(f&n)>>0]|0}if(!(a[(e&255&n)+10368>>0]&8)){e=0;f=0}else{h=e;b=0;f=0;do{e=h<<24>>24;f=(0-(e>>>6&1)&9)+e&15|f<<4;b=b+1|0;h=a[(g+b&n)>>0]|0;e=(a[(h&255&n)+10368>>0]&8)==0}while((b|0)<8&(e^1));e=e^1}if((f|0)<0|e)e=0;else{c[(d&p)>>2]=f;e=1}}else{i=0;j=13}a:do if((j|0)==13){e=0;f=0;h=0;while(1){g=(a[(b+h&n)>>0]|0)+-48|0;if(g>>>0>=10)break;f=sw(e|0,f|0,10,0)|0;e=jw(g|0,((g|0)<0)<<31>>31|0,f|0,G|0)|0;h=h+1|0;if((h|0)>=11){e=0;break a}else f=G}g=dw(e|0,f|0,i|0,0)|0;b=G;if((b|0)>0|(b|0)==0&g>>>0>2147483647)e=0;else{if(i)e=dw(0,0,e|0,f|0)|0;c[(d&p)>>2]=e;e=1}}while(0);return e|0}function En(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0;f=i;i=i+16|0;if((i|0)>=(j|0))fa();g=f;c[(g&p)>>2]=e;sg(a,b,d,g);i=f;return}function Fn(e,f,g,h,k,l,m){e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;m=m|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,H=0,I=0;I=i;i=i+16|0;if((i|0)>=(j|0))fa();F=I;D=I+4|0;c[(D&p)>>2]=0;H=mh(e,536,0)|0;a:do if(H){fw(H|0,0,536)|0;c[(H&p)+476>>2]=k;u=e+20|0;k=c[(u&p)>>2]|0;b:do if((k|0)>0){v=e+16|0;s=0;while(1){t=c[((c[(v&p)>>2]|0)+(s<<4)&p)+4>>2]|0;if(t){c[((c[(t&p)+4>>2]|0)&p)+4>>2]=c[(t&p)>>2];q=bl(t,1,1)|0;if(q)break;k=c[(u&p)>>2]|0}s=s+1|0;if((s|0)>=(k|0))break b}c[(F&p)>>2]=c[((c[(v&p)>>2]|0)+(s<<4)&p)>>2];ug(e,q,40984,F);s=H;break a}while(0);rl(e);c[(H&p)>>2]=e;c[(H&p)+424>>2]=0;do if((g|0)>-1){if((g|0)!=0?(a[(f+g+-1&n)>>0]|0)==0:0){E=21;break}if((c[(e&p)+92>>2]|0)<(g|0)){ug(e,18,41016,F);if(!e){s=H;q=18;break a}if(!(a[(e&n)+65>>0]|0)){s=H;q=c[(e&p)+56>>2]&18;break a}else{Ql(e);s=H;q=7;break a}}else{if((f|0)!=0?(r=jw(g|0,((g|0)<0)<<31>>31|0,1,0)|0,r=mh(e,r,G)|0,(r|0)!=0):0){kw(r|0,f|0,g|0)|0;a[(r+g&n)>>0]=0;Lh(H,r,D)|0;mg(e,r);q=H+480|0;c[(q&p)>>2]=f+((c[(q&p)>>2]|0)-r);break}c[(H&p)+480>>2]=f+g;break}}else E=21;while(0);if((E|0)==21)Lh(H,f,D)|0;v=e+65|0;k=H+12|0;if(!(a[(v&n)>>0]|0)){s=H+12|0;if((c[(k&p)>>2]|0)==101)c[(s&p)>>2]=0}else{c[(k&p)>>2]=7;s=H+12|0}c:do if((a[(H&n)+17>>0]|0)!=0?(w=c[(H&p)>>2]|0,x=w+20|0,(c[(x&p)>>2]|0)>0):0){r=w+16|0;u=0;while(1){k=c[(r&p)>>2]|0;q=c[(k+(u<<4)&p)+4>>2]|0;if(q){if(!(a[(q&n)+8>>0]|0)){k=yg(q,0)|0;if((k|0)==7|(k|0)==3082)break;else if(k)break c;k=c[(r&p)>>2]|0;t=1}else t=0;g=c[(q&p)+4>>2]|0;c[(g&p)+4>>2]=c[(q&p)>>2];g=c[((c[(g&p)+12>>2]|0)&p)+56>>2]|0;if((d[(g&n)+41>>0]<<16|d[(g&n)+40>>0]<<24|d[(g&n)+42>>0]<<8|d[(g&n)+43>>0]|0)!=(c[(c[(k+(u<<4)&p)+12>>2]&p)>>2]|0)){vm(w,u);c[(s&p)>>2]=17}if(t)un(q)|0}u=u+1|0;if((u|0)>=(c[(x&p)>>2]|0))break c}a[(w&n)+65>>0]=1}while(0);if(a[(v&n)>>0]|0)c[(s&p)>>2]=7;if(m)c[(m&p)>>2]=c[(H&p)+480>>2];q=c[(s&p)>>2]|0;t=(q|0)==0;do if(t?(z=H+8|0,y=c[(z&p)>>2]|0,(y|0)!=0):0){s=a[(H&n)+450>>0]|0;if(!(s<<24>>24))break;else if(s<<24>>24==2){iq(y,4);r=8;k=12}else{iq(y,8);r=0;k=8}s=r;do{jq(c[(z&p)>>2]|0,s-r|0,0,c[(s<<2&p)+41040>>2]|0,0);s=s+1|0}while((s|0)<(k|0))}while(0);r=H+8|0;if((a[(e&n)+145>>0]|0)==0?(C=c[(r&p)>>2]|0,A=(c[(H&p)+480>>2]|0)-f|0,(C|0)!=0):0){if((f|0)!=0?(z=c[(C&p)>>2]|0,B=jw(A|0,((A|0)<0)<<31>>31|0,1,0)|0,B=mh(z,B,G)|0,(B|0)!=0):0){kw(B|0,f|0,A|0)|0;a[(B+A&n)>>0]=0;s=B}else s=0;c[(C&p)+168>>2]=s;C=C+88|0;b[(C&o)>>1]=b[(C&o)>>1]&-257|(h&65535)<<8&256}s=c[(r&p)>>2]|0;do if(!s)E=60;else{if(t?(a[(v&n)>>0]|0)==0:0){E=60;break}Ng(s)|0}while(0);if((E|0)==60)c[(l&p)>>2]=s;r=c[(D&p)>>2]|0;do if(!r){c[(e&p)+52>>2]=q;r=c[(e&p)+236>>2]|0;if(r){s=r+8|0;if(!(b[(s&o)>>1]&9312)){b[(s&o)>>1]=1;break}else{vg(r);break}}}else{c[(F&p)>>2]=r;ug(e,q,10344,F);mg(e,r)}while(0);r=H+528|0;s=c[(r&p)>>2]|0;if(!s)s=H;else{do{c[(r&p)>>2]=c[(s&p)+4>>2];mg(e,s);s=c[(r&p)>>2]|0}while((s|0)!=0);s=H}}else{s=0;q=7}while(0);Ch(s);mg(e,H);F=Og(e,q)|0;i=I;return F|0}function Gn(b){b=b|0;var d=0,e=0;e=c[(b&p)>>2]|0;if((a[(e&n)+145>>0]|0)==0?(d=Zh(e,b+4|0)|0,(d|0)!=0):0){c[(b&p)+12>>2]=d;e=b+64|0;c[(e&p)>>2]=(c[(e&p)>>2]|0)+1}else d=0;return d|0}function Hn(a){a=a|0;var b=0,d=0,f=0,g=0,h=0;f=c[(a&p)+24>>2]|0;h=f+84|0;b=c[(h&p)>>2]|0;if(!b){b=1020;d=0}else{b=b*40|0;d=0}g=a+4|0;a=ro(c[(f&p)>>2]|0,c[(g&p)>>2]|0,b,d)|0;d=(a|0)!=0;if(d){b=c[(f&p)>>2]|0;do if(!b)b=lc[c[8792>>2]&127](a)|0;else{if((c[(b&p)+276>>2]|0)>>>0<=a>>>0?(c[(b&p)+280>>2]|0)>>>0>a>>>0:0){b=e[(b&o)+248>>1]|0;break}b=lc[c[8792>>2]&127](a)|0}while(0);c[(h&p)>>2]=(b>>>0)/20|0;c[(g&p)>>2]=a}return (d?0:7)|0}function In(a,d,e){a=a|0;d=d|0;e=e|0;a:do if(e)switch(d|0){case -6:{if(c[(a&p)+520>>2]|0)break a;a=(c[(e&p)>>2]|0)+-1|0;c[(e&p)>>2]=a;if(a)break a;Wc(e);break a}case -8:{if(!(c[(a&p)+520>>2]|0)){Mh(e);break a}if(c[(e&p)+24>>2]|0)mg(a,c[(e&p)+20>>2]|0);mg(a,e);break a}case -10:{if(c[(a&p)+520>>2]|0)break a;An(e);break a}case -15:case -1:case -13:case -12:{mg(a,e);break a}case -11:{if(c[(a&p)+520>>2]|0)break a;Wc(e);break a}case -5:{if(!(b[(e&o)+2>>1]&16))break a;mg(a,e);break a}default:break a}while(0);return}function Jn(e,f){e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0;g=c[(f&p)>>2]|0;s=c[(e&p)+24>>2]|0;t=s+112|0;k=c[(t&p)>>2]|0;q=e+88|0;b[(q&o)>>1]=b[(q&o)>>1]&-193|64;h=c[(e&p)+32>>2]|0;a:do if((h|0)>0){j=c[(e&p)+4>>2]|0;while(1){h=h+-1|0;i=d[(j&n)>>0]|0;switch(i|0){case 5:case 7:case 9:{c[(j&p)+16>>2]=76;a[(j&n)+1>>0]=-19;break}case 6:case 8:{c[(j&p)+16>>2]=77;a[(j&n)+1>>0]=-19;break}case 14:{u=c[(j+-16&p)>>2]|0;g=(u|0)>(g|0)?u:g;break}case 2:case 3:{r=7;break}case 4:{if(!(c[(j&p)+8>>2]|0))r=7;else{b[(q&o)>>1]=b[(q&o)>>1]&-65;r=7}break}case 12:case 13:case 11:{b[(q&o)>>1]=b[(q&o)>>1]&-193|128;break}case 15:{u=c[(j&p)+8>>2]|0;g=(u|0)>(g|0)?u:g;break}case 10:case 1:{u=d[(j&n)+3>>0]|0;g=(u|0)>(g|0)?u:g;break}default:{}}if((r|0)==7){r=0;b[(q&o)>>1]=b[(q&o)>>1]|128}i=a[(i&n)+34168>>0]|0;a[(j&n)+2>>0]=i;if((i&1)!=0?(l=j+8|0,m=c[(l&p)>>2]|0,(m|0)<0):0)c[(l&p)>>2]=c[(k+(~m<<2)&p)>>2];if((h|0)<=0)break a;else j=j+20|0}}while(0);mg(c[(e&p)>>2]|0,c[(t&p)>>2]|0);c[(t&p)>>2]=0;c[(s&p)+108>>2]=0;c[(f&p)>>2]=g;return}function Kn(b){b=b|0;var d=0,e=0,f=0,g=0,h=0;h=i;i=i+16|0;if((i|0)>=(j|0))fa();g=h;e=b+73|0;if((a[(e&n)>>0]|0)!=4){a[(e&n)>>0]=0;f=b+56|0;d=b+48|0;d=Gp(b,c[(f&p)>>2]|0,c[(d&p)>>2]|0,c[(d&p)+4>>2]|0,0,g)|0;if(!d){Wc(c[(f&p)>>2]|0);c[(f&p)>>2]=0;f=b+68|0;d=c[(f&p)>>2]|c[(g&p)>>2];c[(f&p)>>2]=d;if((d|0)!=0?(a[(e&n)>>0]|0)==1:0){a[(e&n)>>0]=2;d=0}else d=0}}else d=c[(b&p)+68>>2]|0;i=h;return d|0}function Ln(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;a=c[(a&p)+8>>2]|0;a:do if(!a)a=0;else{e=(b|0)==0;while(1){if((a|0)!=(d|0)){if(e)break;if((c[(a&p)+60>>2]|0)==(b|0))break}a=c[(a&p)+8>>2]|0;if(!a){a=0;break a}}a=Fl(a,b,d)|0}while(0);return a|0}function Mn(b){b=b|0;var e=0,f=0,g=0,h=0;f=c[(b&p)>>2]|0;g=f+1|0;c[(b&p)>>2]=g;h=a[(f&n)>>0]|0;e=h&255;if((h&255)<=191)return e|0;e=d[(e+-192&n)+15360>>0]|0;if((a[(g&n)>>0]&-64)<<24>>24==-128)while(1){f=f+2|0;c[(b&p)>>2]=f;e=(d[(g&n)>>0]|0)&63|e<<6;if((a[(f&n)>>0]&-64)<<24>>24==-128){h=g;g=f;f=h}else break}return (e>>>0<128|(e&-2048|0)==55296|(e&-2|0)==65534?65533:e)|0}function Nn(b,c){b=b|0;c=c|0;var d=0,e=0,f=0,g=0;if((c|0)>-1)g=b+c|0;else g=-1;c=a[(b&n)>>0]|0;if(c<<24>>24!=0&g>>>0>b>>>0){d=c;c=0;do{f=b+1|0;if((d&255)>191){e=b;b=f;while(1){d=a[(b&n)>>0]|0;if((d&-64)<<24>>24==-128){d=b;b=e+2|0;e=d}else break}}else{d=a[(f&n)>>0]|0;b=f}c=c+1|0}while(d<<24>>24!=0&b>>>0>>0)}else c=0;return c|0}function On(d,f,g,h){d=d|0;f=f|0;g=g|0;h=h|0;var k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0;A=i;i=i+48|0;if((i|0)>=(j|0))fa();w=A+32|0;x=A+16|0;y=A;k=c[(d&p)>>2]|0;if((k|0)<0){c[(d&p)>>2]=0;c[(d&p)+4>>2]=-1;b[(d&o)+12>>1]=0;a[(d&n)+14>>0]=0;k=0}s=g;r=c[(s&p)+4>>2]|0;t=y;c[(t&p)>>2]=c[(s&p)>>2];c[(t&p)+4>>2]=r;t=d+8|0;c[(t&p)>>2]=h;r=f&255;s=(f|0)==254;do{q=b[(d+(k<<4)&o)+12>>1]|0;h=q&65535;g=37184+(h<<1)|0;a:do if((q&65535)>429)z=6;else{q=r;while(1){m=b[(g&o)>>1]|0;l=m<<16>>16;if(m<<16>>16==-86){z=6;break a}m=q&255;k=l+m|0;if(k>>>0<=1496?(a[(k&n)+39336>>0]|0)==q<<24>>24:0){z=16;break}if(!(q<<24>>24))break;if((q&255)>=70){u=l;z=12;break}q=a[(m&n)+40840>>0]|0;if(!(q<<24>>24)){u=l;z=12;break}}if((z|0)==16){z=0;k=e[(k<<1&o)+22184>>1]|0;break}if(((z|0)==12?(z=0,v=u+70|0,(v|0)>-1):0)?(a[(v&n)+39336>>0]|0)==70:0){k=e[(v<<1&o)+22184>>1]|0;break}k=e[(h<<1&o)+38048>>1]|0}while(0);if((z|0)==6){z=0;k=e[(h<<1&o)+38048>>1]|0}if(k>>>0<642){z=18;break}if(k>>>0>=969){z=20;break}mq(d,k+-642|0);if(s)break;k=c[(d&p)>>2]|0}while((k|0)>-1);if((z|0)==18){kq(d,k,f,y);u=d+4|0;c[(u&p)>>2]=(c[(u&p)>>2]|0)+-1}else if((z|0)==20){c[(x&p)>>2]=c[(y&p)>>2];c[(x&p)+4>>2]=c[(y&p)+4>>2];c[(x&p)+8>>2]=c[(y&p)+8>>2];u=c[(t&p)>>2]|0;c[(w&p)>>2]=x;th(u,20432,w);c[(t&p)>>2]=u;lq(d,r,y)}i=A;return}function Pn(b){b=b|0;var d=0;d=c[(b&p)>>2]|0;if((d|0)>=0){lq(b,a[(b+(d<<4)&n)+14>>0]|0,b+(d<<4)+16|0);c[(b&p)>>2]=(c[(b&p)>>2]|0)+-1}return}function Qn(a,b){a=a|0;b=b|0;var d=0;if(b){if((c[(b&p)>>2]|0)>0){d=0;do{Nk(a,c[(b+(d<<4)&p)+12>>2]|0);Mk(a,c[(b+(d<<4)&p)+16>>2]|0,1);mg(a,c[(b+(d<<4)&p)+8>>2]|0);d=d+1|0}while((d|0)<(c[(b&p)>>2]|0))}mg(a,b)}return}function Rn(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,i=0;h=a+328|0;d=c[(h&p)>>2]|0;if(d){i=a+304|0;if((c[(i&p)>>2]|0)>0){f=0;do{e=c[(d+(f<<2)&p)>>2]|0;d=c[(e&p)+8>>2]|0;if((d|0)!=0?(g=c[((c[(d&p)>>2]|0)+b&p)>>2]|0,(g|0)!=0):0)lc[g&127](d)|0;c[(e&p)+20>>2]=0;An(e);f=f+1|0;d=c[(h&p)>>2]|0}while((f|0)<(c[(i&p)>>2]|0))}mg(a,d);c[(i&p)>>2]=0;c[(h&p)>>2]=0}return}function Sn(a,d,f){a=a|0;d=d|0;f=f|0;var g=0,h=0;do if((d|0)==-2)if(!(c[(a&p)+12>>2]|0))d=(c[(a&p)+16>>2]|0)==0?0:6;else d=6;else{h=b[(a&o)>>1]|0;g=h<<16>>16;if(!((g|0)!=(d|0)&h<<16>>16>-1)){h=(g|0)==(d|0)?4:1;g=f&255;d=e[(a&o)+2>>1]|0;if((g|0)==(d&3|0)){d=h|2;break}else return ((d&g)>>>1&1)+h|0}else d=0}while(0);return d|0} function uc(a){a=a|0;var b=0;b=i;i=i+a|0;i=i+15&-16;if((i|0)>=(j|0))fa();return b|0}function vc(){return i|0}function wc(a){a=a|0;i=a}function xc(a,b){a=a|0;b=b|0;if(!r){r=a;s=b}}function yc(b){b=b|0;a[(k&n)>>0]=a[(b&n)>>0];a[(k&n)+1>>0]=a[(b&n)+1>>0];a[(k&n)+2>>0]=a[(b&n)+2>>0];a[(k&n)+3>>0]=a[(b&n)+3>>0]}function zc(b){b=b|0;a[(k&n)>>0]=a[(b&n)>>0];a[(k&n)+1>>0]=a[(b&n)+1>>0];a[(k&n)+2>>0]=a[(b&n)+2>>0];a[(k&n)+3>>0]=a[(b&n)+3>>0];a[(k&n)+4>>0]=a[(b&n)+4>>0];a[(k&n)+5>>0]=a[(b&n)+5>>0];a[(k&n)+6>>0]=a[(b&n)+6>>0];a[(k&n)+7>>0]=a[(b&n)+7>>0]}function Ac(a){a=a|0;G=a}function Bc(){return G|0}function Cc(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0;h=i;i=i+16|0;if((i|0)>=(j|0))fa();e=h+4|0;f=h;g=0;a:while(1){c[(e&p)>>2]=0;c[(f&p)>>2]=0;a[280]=0;if(Rf(14640,e)|0){d=4;break}d=c[(e&p)>>2]|0;b=0;do{if(Qe(d,c[(b<<2&p)+8>>2]|0,17,0,f)|0){d=7;break a}b=b+1|0;d=c[(e&p)>>2]|0}while((b|0)!=5);tf(d)|0;if(_v(280,8504)|0){d=9;break}g=g+1|0;if((g|0)>=3){d=11;break}}if((d|0)==4)ib(8472,8488,47,8496);else if((d|0)==7)ib(8472,8488,50,8496);else if((d|0)==9)ib(8600,8488,53,8496);else if((d|0)==11){i=h;return 0}return 0}function Dc(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;if((d|0)>0)while(1){d=d+-1|0;hw(280,c[(f&p)>>2]|0)|0;b=280+(gw(280)|0)|0;a[(b&n)>>0]=61;a[(b&n)+1>>0]=0;b=c[(e&p)>>2]|0;hw(280,((b|0)==0?20304:b)|0)|0;if((d|0)<=0)break;else{e=e+4|0;f=f+4|0}}return 0}function Ec(b){b=b|0;var e=0,f=0,g=0;g=(Fc(b,8640,7)|0)==0;g=g?b+7|0:b;if(!g)b=0;else{b=g;while(1)if(!(a[(b&n)>>0]|0))break;else b=b+1|0;b=b-g&1073741823}f=0;while(1){e=c[(f<<2&p)+8648>>2]|0;if((Fc(g,e,b)|0)==0?(a[((d[(e+b&n)>>0]|0)&n)+10368>>0]&70)==0:0){b=1;break}f=f+1|0;if((f|0)>=4){b=0;break}}return b|0}function Fc(b,c,e){b=b|0;c=c|0;e=e|0;var f=0;a:do if(b)if(c)if((e|0)>0){f=b;while(1){b=a[(f&n)>>0]|0;if(!(b<<24>>24))break;if((a[(b&255&n)+9328>>0]|0)!=(a[((d[(c&n)>>0]|0)&n)+9328>>0]|0))break;e=e+-1|0;if((e|0)<=0){e=0;break a}else{f=f+1|0;c=c+1|0}}if((e|0)>=1)e=(d[(b&255&n)+9328>>0]|0)-(d[((d[(c&n)>>0]|0)&n)+9328>>0]|0)|0;else e=0}else e=0;else e=1;else e=((c|0)!=0)<<31>>31;while(0);return e|0}function Gc(a){a=a|0;if(a>>>0<4)a=c[(a<<2&p)+8648>>2]|0;else a=0;return a|0}function Hc(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0;h=i;i=i+16|0;if((i|0)>=(j|0))fa();f=h;if(a>>>0<=9){g=c[(a<<2&p)+8664>>2]|0;f=b;c[(f&p)>>2]=g;c[(f&p)+4>>2]=0;f=8704+(a<<2)|0;a=d;c[(a&p)>>2]=c[(f&p)>>2];c[(a&p)+4>>2]=0;if(!e)f=0;else{c[(f&p)>>2]=g;f=0}}else{c[(f&p)>>2]=15033;c[(f&p)+4>>2]=10788;bd(21,13648,f);f=21}i=h;return f|0}function Ic(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0;h=i;i=i+16|0;if((i|0)>=(j|0))fa();f=h+8|0;g=h;a=Hc(a,f,g,e)|0;if(!a){c[(b&p)>>2]=c[(f&p)>>2];c[(d&p)>>2]=c[(g&p)>>2]}i=h;return a|0}function Jc(a,b,d,f,g){a=a|0;b=b|0;d=d|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,n=0,q=0,r=0;r=i;i=i+16|0;if((i|0)>=(j|0))fa();n=r+4|0;l=r;switch(b|0){case 2:{c[(n&p)>>2]=0;q=a+20|0;g=c[(q&p)>>2]|0;h=(g|0)>0;if(h){l=c[(a&p)+16>>2]|0;k=0;do{b=c[(l+(k<<4)&p)+4>>2]|0;if(b)c[((c[(b&p)+4>>2]|0)&p)+4>>2]=c[(b&p)>>2];k=k+1|0}while((k|0)!=(g|0));k=a+520|0;c[(k&p)>>2]=n;if(h){m=a+16|0;h=0;do{b=c[((c[(m&p)>>2]|0)+(h<<4)&p)+12>>2]|0;if(b){l=lc[c[8796>>2]&127](16)|0;l=ca((c[(b&p)+44>>2]|0)+(c[(b&p)+12>>2]|0)+(c[(b&p)+28>>2]|0)+(c[(b&p)+60>>2]|0)|0,l)|0;c[(n&p)>>2]=l+(c[(n&p)>>2]|0);l=lc[c[8792>>2]&127](c[(b&p)+20>>2]|0)|0;c[(n&p)>>2]=(c[(n&p)>>2]|0)+l;l=lc[c[8792>>2]&127](c[(b&p)+52>>2]|0)|0;c[(n&p)>>2]=(c[(n&p)>>2]|0)+l;l=lc[c[8792>>2]&127](c[(b&p)+36>>2]|0)|0;c[(n&p)>>2]=(c[(n&p)>>2]|0)+l;l=lc[c[8792>>2]&127](c[(b&p)+68>>2]|0)|0;c[(n&p)>>2]=(c[(n&p)>>2]|0)+l;l=c[(b&p)+48>>2]|0;if(l)do{jg(a,c[(l&p)+8>>2]|0);l=c[(l&p)>>2]|0}while((l|0)!=0);l=c[(b&p)+16>>2]|0;if(l)do{kg(a,c[(l&p)+8>>2]|0);l=c[(l&p)>>2]|0}while((l|0)!=0);g=c[(q&p)>>2]|0}h=h+1|0}while((h|0)<(g|0));h=c[(n&p)>>2]|0}else h=0}else{k=a+520|0;c[(k&p)>>2]=n;h=0}c[(k&p)>>2]=0;c[(f&p)>>2]=0;c[(d&p)>>2]=h;h=0;break}case 9:case 8:case 7:{q=a+20|0;l=c[(q&p)>>2]|0;if((l|0)>0){n=c[(a&p)+16>>2]|0;m=b+-7|0;k=(g|0)==0;h=0;b=l;g=0;while(1){l=c[(n+(g<<4)&p)+4>>2]|0;if(l){l=(c[(c[(l&p)+4>>2]&p)>>2]|0)+(m<<2)+184|0;h=(c[(l&p)>>2]|0)+h|0;if(k)l=b;else{c[(l&p)>>2]=0;l=c[(q&p)>>2]|0}}else l=b;g=g+1|0;if((g|0)>=(l|0))break;else b=l}}else h=0;c[(f&p)>>2]=0;c[(d&p)>>2]=h;h=0;break}case 0:{k=a+252|0;c[(d&p)>>2]=c[(k&p)>>2];h=a+256|0;c[(f&p)>>2]=c[(h&p)>>2];if(!g)h=0;else{c[(h&p)>>2]=c[(k&p)>>2];h=0}break}case 6:case 5:case 4:{c[(d&p)>>2]=0;h=a+(b+-4<<2)+260|0;c[(f&p)>>2]=c[(h&p)>>2];if(!g)h=0;else{c[(h&p)>>2]=0;h=0}break}case 1:{m=a+20|0;k=c[(m&p)>>2]|0;g=(k|0)>0;if(g){h=c[(a&p)+16>>2]|0;l=0;do{b=c[(h+(l<<4)&p)+4>>2]|0;if(b)c[((c[(b&p)+4>>2]|0)&p)+4>>2]=c[(b&p)>>2];l=l+1|0}while((l|0)!=(k|0));if(g){b=a+16|0;l=0;h=0;while(1){g=c[((c[(b&p)>>2]|0)+(l<<4)&p)+4>>2]|0;if(!g)g=k;else{q=c[(c[(g&p)+4>>2]&p)>>2]|0;a=q+152|0;n=(c[(a&p)>>2]|0)+60+(e[(q&o)+140>>1]|0)|0;n=ca(lc[c[8872>>2]&127](c[((c[(q&p)+204>>2]|0)&p)+40>>2]|0)|0,n)|0;q=lc[c[8792>>2]&127](q)|0;g=c[(m&p)>>2]|0;h=n+h+q+(c[(a&p)>>2]|0)|0}l=l+1|0;if((l|0)>=(g|0))break;else k=g}}else h=0}else h=0;c[(d&p)>>2]=h;c[(f&p)>>2]=0;h=0;break}case 3:{c[(l&p)>>2]=0;g=a+520|0;c[(g&p)>>2]=l;k=c[(a&p)+4>>2]|0;if(!k)h=0;else{do{lg(a,k);mg(a,k);k=c[(k&p)+52>>2]|0}while((k|0)!=0);h=c[(l&p)>>2]|0}c[(g&p)>>2]=0;c[(f&p)>>2]=0;c[(d&p)>>2]=h;h=0;break}case 10:{c[(f&p)>>2]=0;q=a+512|0;n=c[(q&p)+4>>2]|0;if((n|0)>0|(n|0)==0&(c[(q&p)>>2]|0)>>>0>0)h=1;else{h=a+504|0;a=c[(h&p)+4>>2]|0;h=(a|0)>0|(a|0)==0&(c[(h&p)>>2]|0)>>>0>0}c[(d&p)>>2]=h&1;h=0;break}default:h=1}i=r;return h|0}function Kc(a){a=a|0;var b=0;a:do if(!(Lc()|0)){b=c[2254]|0;if(!((b|0)==0|(a|0)==0))while(1){if(!(_v(a,c[(b&p)+16>>2]|0)|0))break a;b=c[(b&p)+12>>2]|0;if(!b){b=0;break}}}else b=0;while(0);return b|0}function Lc(){var a=0,b=0,d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0;m=i;i=i+16|0;if((i|0)>=(j|0))fa();k=m;do if(!(c[2243]|0)){c[2245]=1;if(!(c[2246]|0)){if(!(c[2195]|0)){c[(k&p)>>2]=16496;mf(4,k)|0}b=9024|0;d=b+40|0;do{c[(b&p)>>2]=0;b=b+4|0}while((b|0)<(d|0));if(c[2187]|0)c[2256]=8;h=c[2234]|0;d=c[2235]|0;b=c[2236]|0;if((h|0)!=0&(d|0)>99&(b|0)>0){g=d&-8;c[2235]=g;c[2263]=h;c[2264]=b;f=b+-1|0;if((f|0)>0){b=h+(ca(d>>>3,(b<<3)+-8|0)|0)|0;e=0;d=h;do{a=d;d=d+g|0;c[(a&p)>>2]=d;e=e+1|0}while((e|0)!=(f|0))}else b=h;c[(b&p)>>2]=0;c[2262]=b+4}else{c[2262]=0;c[2234]=0;c[2235]=0;c[2236]=0}if((c[2237]|0)==0|(c[2238]|0)<512|(c[2239]|0)<1){c[2237]=0;c[2238]=0;c[2239]=0}a=lc[c[8800>>2]&127](c[2202]|0)|0;if(a){b=9024|0;d=b+40|0;do{c[(b&p)>>2]=0;b=b+4|0}while((b|0)<(d|0));break}}c[2246]=1;if(!(c[2249]|0))c[2249]=8;a=(c[2248]|0)+1|0;c[2248]=a;if(!(c[2244]|c[2243])){c[2244]=1;b=10840|0;d=b+92|0;do{c[(b&p)>>2]=0;b=b+4|0}while((b|0)<(d|0));b=0;do{ng(10840,16608+(b*36|0)|0);b=b+1|0}while((b|0)!=59);b=0;do{ng(10840,19480+(b*36|0)|0);b=b+1|0}while((b|0)!=8);ng(10840,19256);ng(10840,19292|0);ng(10840,19328|0);if(!(c[2247]|0)){a=c[2214]|0;if(!a){c[(k&p)>>2]=16440;mf(18,k)|0;a=c[2214]|0}a=lc[a&127](c[2213]|0)|0;if(!a)l=28}else l=28;if((l|0)==28){c[2247]=1;a=Tc(10)|0;if(!a)a=7;else{Wc(a);Mc(9584,1)|0;Mc(9672|0,0)|0;Mc(9760|0,0)|0;Mc(9848|0,0)|0;a=c[2237]|0;b=c[2238]|0;d=c[2239]|0;if(c[3153]|0){k=b&-8;c[3154]=k;c[3161]=d;c[3155]=d;if((d|0)<=90){c[3156]=((d|0)/10|0)+1;c[3157]=a;c[3160]=0;c[3162]=0;if(d)l=33}else{c[3156]=10;c[3157]=a;c[3160]=0;c[3162]=0;l=33}if((l|0)==33){f=b>>>3;g=d<<3;h=ca(f<<3,d+-1|0)|0;b=a;e=0;while(1){d=d+-1|0;c[(b&p)>>2]=e;if(!d)break;else{e=b;b=b+k|0}}b=a+(ca(g,f)|0)|0;c[3160]=a+h;a=b}c[3158]=a}c[2243]=1;a=0}}c[2244]=0;b=c[2248]|0}else{b=a;a=0}c[2248]=b+-1;if((b|0)<2)c[2249]=0}else a=0;while(0);i=m;return a|0}function Mc(a,b){a=a|0;b=b|0;var d=0;d=Lc()|0;do if(!d){og(a);d=c[2254]|0;if((b|0)!=0|(d|0)==0){c[(a&p)+12>>2]=d;c[2254]=a;d=0;break}else{c[(a&p)+12>>2]=c[(d&p)+12>>2];c[((c[2254]|0)&p)+12>>2]=a;d=0;break}}while(0);return d|0}function Nc(a){a=a|0;og(a);return 0}function Oc(a){a=a|0;return 0}function Pc(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;do if(!(Lc()|0)){e=9032|0;d=c[(e&p)>>2]|0;e=c[(e&p)+4>>2]|0;if((b|0)>=0)if((b|0)>0|(b|0)==0&a>>>0>0){c[2260]=9;c[2261]=0;f=9032|0;c[(f&p)>>2]=a;c[(f&p)+4>>2]=b;c[2265]=(0>(b|0)|0==(b|0)&(c[2166]|0)>>>0>=a>>>0)&1;break}else{c[2265]=0;c[2258]=0;c[2259]=0;c[2260]=0;c[2261]=0;break}}else{e=-1;d=-1}while(0);G=e;return d|0}function Qc(){var a=0;a=c[2166]|0;G=((a|0)<0)<<31>>31;return a|0}function Rc(a){a=a|0;var b=0;b=(a|0)<0;Pc(b?0:a,b?0:((a|0)<0)<<31>>31)|0;return}function Sc(a){a=a|0;var b=0;b=c[2176]|0;if(a)c[2176]=c[2166];G=((b|0)<0)<<31>>31;return b|0}function Tc(a){a=a|0;if((Lc()|0)!=0|(a|0)<1)a=0;else a=qg(a,((a|0)<0)<<31>>31)|0;return a|0}function Uc(a,b){a=a|0;b=b|0;if(!(Lc()|0))a=qg(a,b)|0;else a=0;return a|0}function Vc(a){a=a|0;a=lc[c[8792>>2]&127](a)|0;G=((a|0)<0)<<31>>31;return a|0}function Wc(a){a=a|0;var b=0;do if(a)if(!(c[2186]|0)){cc[c[8784>>2]&31](a);break}else{b=lc[c[8792>>2]&127](a)|0;c[2166]=(c[2166]|0)-b;c[2175]=(c[2175]|0)+-1;cc[c[8784>>2]&31](a);break}while(0);return}function Xc(a,b){a=a|0;b=b|0;var c=0;if(!(Lc()|0)){c=(b|0)<0;b=rg(a,c?0:b,c?0:((b|0)<0)<<31>>31)|0}else b=0;return b|0}function Yc(a,b,c){a=a|0;b=b|0;c=c|0;if(!(Lc()|0))b=rg(a,b,c)|0;else b=0;return b|0}function Zc(b,d){b=b|0;d=d|0;var e=0,f=0,g=0;g=i;i=i+112|0;if((i|0)>=(j|0))fa();f=g+28|0;e=g;if(!(Lc()|0)){c[(e&p)+4>>2]=f;c[(e&p)+8>>2]=f;c[(e&p)>>2]=0;c[(e&p)+12>>2]=0;c[(e&p)+16>>2]=70;c[(e&p)+20>>2]=1e9;a[(e&n)+25>>0]=0;a[(e&n)+24>>0]=2;sg(e,0,b,d);e=tg(e)|0}else e=0;i=g;return e|0}function _c(a,b){a=a|0;b=b|0;var d=0,e=0;e=i;i=i+16|0;if((i|0)>=(j|0))fa();d=e;if(!(Lc()|0)){c[(d&p)>>2]=b;d=Zc(a,d)|0}else d=0;i=e;return d|0}function $c(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0;h=i;i=i+32|0;if((i|0)>=(j|0))fa();g=h;if((b|0)>=1){c[(g&p)+4>>2]=d;c[(g&p)+8>>2]=d;c[(g&p)>>2]=0;c[(g&p)+12>>2]=0;c[(g&p)+16>>2]=b;c[(g&p)+20>>2]=0;a[(g&n)+25>>0]=0;a[(g&n)+24>>0]=0;sg(g,0,e,f);d=tg(g)|0}i=h;return d|0}function ad(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0;f=i;i=i+16|0;if((i|0)>=(j|0))fa();g=f;c[(g&p)>>2]=e;a=$c(a,b,d,g)|0;i=f;return a|0}function bd(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0;k=i;i=i+256|0;if((i|0)>=(j|0))fa();f=k+16|0;h=k+44|0;g=k;if(c[2250]|0){c[(g&p)>>2]=e;c[(f&p)+4>>2]=h;c[(f&p)+8>>2]=h;c[(f&p)>>2]=0;c[(f&p)+12>>2]=0;c[(f&p)+16>>2]=210;c[(f&p)+20>>2]=0;a[(f&n)+25>>0]=0;a[(f&n)+24>>0]=0;sg(f,0,d,g);e=c[2250]|0;g=c[2251]|0;f=tg(f)|0;mc[e&63](g,b,f)}i=k;return}function cd(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0;h=i;i=i+256|0;if((i|0)>=(j|0))fa();g=h;do if(!(Lc()|0)){if((b|0)<1|(e|0)==0){a[9064]=0;break}if(!(a[9064]|0)){a[9066]=0;a[9065]=0;f=(Lc()|0)==0;f=f?c[2254]|0:0;ac[c[(f&p)+56>>2]&63](f,256,g)|0;f=0;do{a[(f&n)+9067>>0]=f;f=f+1|0}while((f|0)!=256);f=0;do{k=9067+f|0;m=(d[(g+f&n)>>0]|0)+(d[(k&n)>>0]|0)+(d[9066]|0)|0;a[9066]=m;m=9067+(m&255)|0;l=a[(m&n)>>0]|0;a[(m&n)>>0]=a[(k&n)>>0]|0;a[(k&n)>>0]=l;f=f+1|0}while((f|0)!=256);a[9064]=1}while(1){k=(a[9065]|0)+1<<24>>24;a[9065]=k;k=9067+(k&255)|0;g=a[(k&n)>>0]|0;f=g&255;l=(d[9066]|0)+f|0;a[9066]=l;a[(k&n)>>0]=a[(l&255&n)+9067>>0]|0;a[((d[9066]|0)&n)+9067>>0]=g;a[(e&n)>>0]=a[((d[((d[9065]|0)&n)+9067>>0]|0)+f&255&n)+9067>>0]|0;b=b+-1|0;if(!b)break;else e=e+1|0}}while(0);i=h;return}function dd(b,c){b=b|0;c=c|0;var e=0;if(b)if(!c)c=1;else{e=a[(b&n)>>0]|0;a:do if(!(e<<24>>24))e=0;else while(1){if((a[(e&255&n)+9328>>0]|0)!=(a[((d[(c&n)>>0]|0)&n)+9328>>0]|0))break a;b=b+1|0;c=c+1|0;e=a[(b&n)>>0]|0;if(!(e<<24>>24)){e=0;break}}while(0);c=(d[(e&255&n)+9328>>0]|0)-(d[((d[(c&n)>>0]|0)&n)+9328>>0]|0)|0}else c=((c|0)!=0)<<31>>31;return c|0}function ed(a){a=a|0;c[2241]=a;return 0}function fd(d,e,f,g){d=d|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,q=0,r=0;r=i;i=i+16|0;if((i|0)>=(j|0))fa();q=r;a:do if((f|0)==(d|0)){ug(f,1,10016,q);h=0}else{h=qg(48,0)|0;if(!h){c[(d&p)+52>>2]=7;h=c[(d&p)+236>>2]|0;if(!h){h=0;break}e=h+8|0;if(!(b[(e&o)>>1]&9312)){b[(e&o)>>1]=1;h=0;break}else{vg(h);h=0;break}}l=h+0|0;k=l+48|0;do{a[(l&n)>>0]=0;l=l+1|0}while((l|0)<(k|0));m=h+24|0;c[(m&p)>>2]=wg(d,f,g)|0;k=wg(d,d,e)|0;l=h+4|0;c[(l&p)>>2]=k;c[(h&p)>>2]=d;c[(h&p)+20>>2]=f;c[(h&p)+16>>2]=1;c[(h&p)+40>>2]=0;e=c[(m&p)>>2]|0;do if(!((e|0)==0|(k|0)==0)?(xg(k,c[((c[(e&p)+4>>2]|0)&p)+32>>2]|0,-1,0)|0)!=7:0)if(!(a[((c[(l&p)>>2]|0)&n)+8>>0]|0)){e=(c[(m&p)>>2]|0)+16|0;c[(e&p)>>2]=(c[(e&p)>>2]|0)+1;break a}else{ug(d,1,47416,q);break}while(0);Wc(h);h=0}while(0);i=r;return h|0}function gd(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,o=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0;F=i;i=i+32|0;if((i|0)>=(j|0))fa();B=F;r=F+16|0;u=F+12|0;y=F+8|0;D=b+24|0;g=c[(D&p)>>2]|0;h=c[(g&p)+4>>2]|0;c[(h&p)+4>>2]=c[(g&p)>>2];E=b+28|0;f=c[(E&p)>>2]|0;if(f>>>0<7?(30>>>(f&127)&1)==0:0){x=c[(h&p)>>2]|0;C=b+4|0;f=c[(C&p)>>2]|0;A=c[(c[(f&p)+4>>2]&p)>>2]|0;if((c[(b&p)>>2]|0)!=0?(a[(h&n)+20>>0]|0)==2:0){z=0;g=5}else v=5;do if((v|0)==5){h=b+12|0;if(!(c[(h&p)>>2]|0)){g=yg(f,2)|0;if(g){z=0;break}c[(h&p)>>2]=1;z=c[(C&p)>>2]|0;g=c[(z&p)+4>>2]|0;c[(g&p)+4>>2]=c[(z&p)>>2];g=c[((c[(g&p)+12>>2]|0)&p)+56>>2]|0;c[(b&p)+8>>2]=d[(g&n)+41>>0]<<16|d[(g&n)+40>>0]<<24|d[(g&n)+42>>0]<<8|d[(g&n)+43>>0];g=c[(D&p)>>2]|0}if(!(a[(g&n)+8>>0]|0)){z=1;g=yg(g,0)|0}else{z=0;g=0}}while(0);l=c[((c[(D&p)>>2]|0)&p)+4>>2]|0;w=c[(l&p)+32>>2]|0;q=c[((c[(C&p)>>2]|0)&p)+4>>2]|0;t=c[(q&p)+32>>2]|0;q=(a[((c[(q&p)>>2]|0)&n)+5>>0]|0)==5;f=(w|0)==(t|0)|(g|0)==0&q^1?g:8;l=c[(l&p)+44>>2]|0;h=(e|0)<0;a:do if(e){g=b+16|0;m=c[(g&p)>>2]|0;o=0;do{if(!(m>>>0<=l>>>0&(f|0)==0))break a;if((m|0)!=((((c[2514]|0)>>>0)/((c[((c[((c[(D&p)>>2]|0)&p)+4>>2]|0)&p)+32>>2]|0)>>>0)|0)+1|0)){f=zg(x,m,r,2)|0;if(!f){k=c[(r&p)>>2]|0;f=Ag(b,m,c[(k&p)+4>>2]|0,0)|0;if(k)Bg(k)}}else f=0;m=(c[(g&p)>>2]|0)+1|0;c[(g&p)>>2]=m;o=o+1|0}while(h|(o|0)<(e|0))}while(0);if(!f){c[(b&p)+36>>2]=l;f=c[(b&p)+16>>2]|0;c[(b&p)+32>>2]=l+1-f;if(f>>>0<=l>>>0){f=b+40|0;if(!(c[(f&p)>>2]|0)){C=(c[(c[((c[(D&p)>>2]|0)&p)+4>>2]&p)>>2]|0)+88|0;c[(b&p)+44>>2]=c[(C&p)>>2];c[(C&p)>>2]=b;c[(f&p)>>2]=1;f=0}else f=0}else v=22}else if((f|0)==101)v=22;do if((v|0)==22){if(!l){g=c[(C&p)>>2]|0;f=c[(g&p)+4>>2]|0;c[(f&p)+4>>2]=c[(g&p)>>2];c[(f&p)+44>>2]=0;f=Cg(f)|0;if((f|0)==0|(f|0)==101)l=1;else break}f=Dg(c[(C&p)>>2]|0,1,(c[(b&p)+8>>2]|0)+1|0)|0;if(!f){g=c[(b&p)>>2]|0;if(g)Eg(g);if(q?(s=Fg(c[(C&p)>>2]|0,2)|0,(s|0)!=0):0){f=s;break}if((w|0)<(t|0)){g=(t|0)/(w|0)|0;g=(l+-1+g|0)/(g|0)|0;h=c[2514]|0;k=c[((c[((c[(C&p)>>2]|0)&p)+4>>2]|0)&p)+32>>2]|0;g=(((g|0)==(((h>>>0)/(k>>>0)|0)+1|0))<<31>>31)+g|0;b=((w|0)<0)<<31>>31;s=sw(l|0,((l|0)<0)<<31>>31|0,w|0,b|0)|0;q=G;e=c[(A&p)+60>>2]|0;o=c[(A&p)+24>>2]|0;b:do if(g>>>0<=o>>>0){f=0;while(1){if((g|0)!=(((h>>>0)/(k>>>0)|0)+1|0)){f=zg(A,g,u,0)|0;if(f)break b;h=c[(u&p)>>2]|0;f=Gg(h)|0;if(h)Bg(h)}g=g+1|0;h=(f|0)==0;if(g>>>0>o>>>0|h^1)break;k=c[((c[((c[(C&p)>>2]|0)&p)+4>>2]|0)&p)+32>>2]|0;h=c[2514]|0}if(h)v=38}else v=38;while(0);if((v|0)==38)f=Hg(A,0,1)|0;h=c[2514]|0;l=h+t|0;m=((l|0)<0)<<31>>31;k=(m|0)<(q|0)|(m|0)==(q|0)&l>>>0>>0;l=k?l:s;m=k?m:q;h=h+w|0;k=((h|0)<0)<<31>>31;g=(f|0)==0;if(g&((k|0)<(m|0)|(k|0)==(m|0)&h>>>0>>0))do{c[(y&p)>>2]=0;f=qw(h|0,k|0,w|0,b|0)|0;f=jw(f|0,G|0,1,0)|0;f=zg(x,f,y,0)|0;g=c[(y&p)>>2]|0;if(!f)f=tc[c[((c[(e&p)>>2]|0)&p)+12>>2]&31](e,c[(g&p)+4>>2]|0,w,h,k)|0;if(g)Bg(g);h=jw(h|0,k|0,w|0,b|0)|0;k=G;g=(f|0)==0}while(g&((k|0)<(m|0)|(k|0)==(m|0)&h>>>0>>0));if(!g)break;f=rc[c[((c[(e&p)>>2]|0)&p)+24>>2]&127](e,B)|0;y=c[(B&p)+4>>2]|0;if((f|0)==0&((y|0)>(q|0)|((y|0)==(q|0)?(c[(B&p)>>2]|0)>>>0>s>>>0:0)))f=ac[c[((c[(e&p)>>2]|0)&p)+16>>2]&63](e,s,q)|0;if(f)break;f=Ig(A,0)|0}else{c[(A&p)+24>>2]=ca((w|0)/(t|0)|0,l)|0;f=Hg(A,0,0)|0}if(!f){f=Jg(c[(C&p)>>2]|0,0)|0;f=(f|0)==0?101:f}}}while(0);if(z){Kg(c[(D&p)>>2]|0,0)|0;Jg(c[(D&p)>>2]|0,0)|0}f=(f|0)==3082?7:f;c[(E&p)>>2]=f}i=F;return f|0}function hd(a){a=a|0;var d=0,e=0,f=0,g=0,h=0;if(!a)d=0;else{h=c[(a&p)+20>>2]|0;e=c[(a&p)+24>>2]|0;d=c[(e&p)+4>>2]|0;c[(d&p)+4>>2]=c[(e&p)>>2];if(c[(a&p)>>2]|0){e=e+16|0;c[(e&p)>>2]=(c[(e&p)>>2]|0)+-1}if(c[(a&p)+40>>2]|0){d=(c[(d&p)>>2]|0)+88|0;while(1){e=c[(d&p)>>2]|0;if((e|0)==(a|0))break;else d=e+44|0}c[(d&p)>>2]=c[(a&p)+44>>2]}Lg(c[(a&p)+4>>2]|0,0,0);d=c[(a&p)+28>>2]|0;d=(d|0)==101?0:d;e=c[(a&p)>>2]|0;if(e){c[(e&p)+52>>2]=d;f=c[(e&p)+236>>2]|0;do if(f){g=f+8|0;if(!(b[(g&o)>>1]&9312)){b[(g&o)>>1]=1;break}else{vg(f);e=c[(a&p)>>2]|0;break}}while(0);Mg(e);if(c[(a&p)>>2]|0)Wc(a)}Mg(h)}return d|0}function id(a){a=a|0;return c[(a&p)+32>>2]|0}function jd(a){a=a|0;return c[(a&p)+36>>2]|0}function kd(a){a=a|0;if((a|0)!=0?(b[(a&o)+88>>1]&256)!=0:0)a=c[(a&p)+168>>2]|0;else a=0;return a|0}function ld(a){a=a|0;if(!a)a=1;else a=(b[(a&o)+88>>1]&8)!=0;return a&1|0}function md(a){a=a|0;var b=0,d=0,e=0;e=i;i=i+16|0;if((i|0)>=(j|0))fa();d=e;do if(a){b=c[(a&p)>>2]|0;if(!b){bd(21,47360,d);c[(d&p)>>2]=68910;c[(d&p)+4>>2]=10788;bd(21,13648,d);b=21;break}else{a=Og(b,Ng(a)|0)|0;Mg(b);b=a;break}}else b=0;while(0);i=e;return b|0}function nd(b){b=b|0;var d=0,e=0;if(!b)b=0;else{d=Pg(b)|0;c[(b&p)+76>>2]=-1;c[(b&p)+80>>2]=0;a[(b&n)+86>>0]=2;c[(b&p)+40>>2]=-1108210269;c[(b&p)+92>>2]=0;c[(b&p)+72>>2]=1;a[(b&n)+87>>0]=-1;c[(b&p)+104>>2]=0;e=b+144|0;c[(e&p)>>2]=0;c[(e&p)+4>>2]=0;b=Og(c[(b&p)>>2]|0,d)|0}return b|0}function od(a){a=a|0;var d=0,e=0,f=0,g=0,h=0,i=0;h=a+68|0;e=b[(h&o)>>1]|0;if(e<<16>>16>0){i=a+60|0;d=c[(i&p)>>2]|0;g=0;do{f=d+(g*40|0)|0;if(!((b[(d+(g*40|0)&o)+8>>1]&9312)==0?(c[(d+(g*40|0)&p)+24>>2]|0)==0:0)){Qg(f);d=c[(i&p)>>2]|0;e=b[(h&o)>>1]|0}b[(d+(g*40|0)&o)+8>>1]=1;g=g+1|0}while((g|0)<(e<<16>>16|0))}d=a+88|0;e=b[(d&o)>>1]|0;if((e&256)!=0?(c[(a&p)+188>>2]|0)!=0:0)b[(d&o)>>1]=e|8;return 0}function pd(a){a=a|0;var d=0;d=a+8|0;if(b[(d&o)>>1]&18){Rg(a)|0;b[(d&o)>>1]=e[(d&o)>>1]|0|16;if(!(c[(a&p)+12>>2]|0))d=0;else d=c[(a&p)+16>>2]|0}else d=Sg(a,1)|0;return d|0}function qd(a){a=a|0;return Sg(a,1)|0}function rd(a){a=a|0;return Tg(a,1)|0}function sd(a){a=a|0;return Tg(a,2)|0}function td(a){a=a|0;return +(+Ug(a))}function ud(a){a=a|0;a=Vg(a)|0;return a|0}function vd(a){a=a|0;a=Vg(a)|0;return a|0}function wd(a){a=a|0;return Sg(a,2)|0}function xd(a){a=a|0;return Sg(a,3)|0}function yd(a){a=a|0;return Sg(a,2)|0}function zd(a){a=a|0;return d[((e[(a&o)+8>>1]|0)&31&n)+10064>>0]|0|0}function Ad(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;Wg(a,b,c,0,d);return}function Bd(b,d,e,f,g){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;if(f>>>0>0|(f|0)==0&e>>>0>2147483647){e=g;if(!((e|0)==0|(e|0)==-1))cc[g&31](d);if(b){c[(b&p)+20>>2]=18;a[(b&n)+25>>0]=1;Xg(c[(b&p)>>2]|0,10096,-1,1,0)|0}}else Wg(b,d,e,0,g);return}function Cd(a,b){a=a|0;b=+b;Yg(c[(a&p)>>2]|0,b);return}function Dd(b,d,e){b=b|0;d=d|0;e=e|0;c[(b&p)+20>>2]=1;a[(b&n)+25>>0]=1;Xg(c[(b&p)>>2]|0,d,e,1,-1)|0;return}function Ed(b,d,e){b=b|0;d=d|0;e=e|0;c[(b&p)+20>>2]=1;a[(b&n)+25>>0]=1;Xg(c[(b&p)>>2]|0,d,e,2,-1)|0;return}function Fd(a,d){a=a|0;d=d|0;var e=0,f=0;a=c[(a&p)>>2]|0;e=((d|0)<0)<<31>>31;f=a+8|0;if(!(b[(f&o)>>1]&9312)){c[(a&p)>>2]=d;c[(a&p)+4>>2]=e;b[(f&o)>>1]=4}else Zg(a,d,e);return}function Gd(a,d,e){a=a|0;d=d|0;e=e|0;var f=0;a=c[(a&p)>>2]|0;f=a+8|0;if(!(b[(f&o)>>1]&9312)){c[(a&p)>>2]=d;c[(a&p)+4>>2]=e;b[(f&o)>>1]=4}else Zg(a,d,e);return}function Hd(a){a=a|0;var d=0;a=c[(a&p)>>2]|0;d=a+8|0;if(!(b[(d&o)>>1]&9312))b[(d&o)>>1]=1;else vg(a);return}function Id(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;Wg(a,b,c,1,d);return}function Jd(b,d,e,f,g,h){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;if(f>>>0>0|(f|0)==0&e>>>0>2147483647){e=g;if(!((e|0)==0|(e|0)==-1))cc[g&31](d);if(b){c[(b&p)+20>>2]=18;a[(b&n)+25>>0]=1;Xg(c[(b&p)>>2]|0,10096,-1,1,0)|0}}else Wg(b,d,e,h<<24>>24==4?2:h,g);return}function Kd(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;Wg(a,b,c,2,d);return}function Ld(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;Wg(a,b,c,3,d);return}function Md(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;Wg(a,b,c,2,d);return}function Nd(a,b){a=a|0;b=b|0;_g(c[(a&p)>>2]|0,b)|0;return}function Od(a,b){a=a|0;b=b|0;$g(c[(a&p)>>2]|0,b);return}function Pd(d,e){d=d|0;e=e|0;var f=0;c[(d&p)+20>>2]=e;a[(d&n)+25>>0]=1;f=c[(d&p)>>2]|0;if(b[(f&o)+8>>1]&1){if((e|0)!=516){d=e&255;if(d>>>0>26|(d|0)==2)d=16328;else d=c[(d<<2&p)+15488>>2]|0}else d=16344;Xg(f,d,-1,1,0)|0}return}function Qd(b){b=b|0;c[(b&p)+20>>2]=18;a[(b&n)+25>>0]=1;Xg(c[(b&p)>>2]|0,10096,-1,1,0)|0;return}function Rd(d){d=d|0;var e=0,f=0;e=c[(d&p)>>2]|0;f=e+8|0;if(!(b[(f&o)>>1]&9312))b[(f&o)>>1]=1;else{vg(e);e=c[(d&p)>>2]|0}c[(d&p)+20>>2]=7;a[(d&n)+25>>0]=1;a[((c[(e&p)+32>>2]|0)&n)+65>>0]=1;return}function Sd(f){f=f|0;var g=0,l=0,m=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,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;_=i;i=i+224|0;if((i|0)>=(j|0))fa();V=_+8|0;U=_;if(!(ah(f)|0)){Z=c[(f&p)>>2]|0;N=f+88|0;b[(N&o)>>1]=b[(N&o)>>1]&-513;R=f+40|0;S=f+76|0;T=f+128|0;Y=f+80|0;D=f+168|0;E=f+8|0;F=f+20|0;H=f+32|0;I=f+4|0;J=f+84|0;X=f+44|0;K=(f|0)==0;L=f+52|0;M=f+48|0;C=0;while(1){if((c[(R&p)>>2]|0)!=-1108210269)nd(f)|0;B=c[(f&p)>>2]|0;if(a[(B&n)+65>>0]|0){W=7;break}l=c[(S&p)>>2]|0;do if((l|0)<1){if(b[(N&o)>>1]&8){c[(Y&p)>>2]=17;l=1;break}if((l|0)<0){l=B+148|0;if(!(c[(l&p)>>2]|0))c[(B&p)+240>>2]=0;if((c[(B&p)+184>>2]|0)!=0?(a[(B&n)+145>>0]|0)==0:0)bh(c[(B&p)>>2]|0,T)|0;c[(l&p)>>2]=(c[(l&p)>>2]|0)+1;l=b[(N&o)>>1]|0;if(!(l&64)){l=B+156|0;c[(l&p)>>2]=(c[(l&p)>>2]|0)+1;l=b[(N&o)>>1]|0}if(l&128){A=B+152|0;c[(A&p)>>2]=(c[(A&p)>>2]|0)+1}c[(S&p)>>2]=0;W=22}else W=22}else W=22;while(0);if((W|0)==22){W=0;do if(!(b[(N&o)>>1]&3)){A=B+160|0;c[(A&p)>>2]=(c[(A&p)>>2]|0)+1;l=gh(f)|0;c[(A&p)>>2]=(c[(A&p)>>2]|0)+-1;if((l|0)==100)l=100;else W=101}else{t=c[(f&p)>>2]|0;z=c[(E&p)>>2]|0;y=z+40|0;ch(y,8);c[(F&p)>>2]=0;if((c[(Y&p)>>2]|0)==7){a[(t&n)+65>>0]=1;l=1;W=101;break}r=c[(H&p)>>2]|0;u=b[(N&o)>>1]&3;if(u<<16>>16==1){s=c[(E&p)>>2]|0;v=s+360|0;if(b[(s&o)+368>>1]&16){w=(c[(s&p)+372>>2]|0)>>>2;m=c[(s&p)+376>>2]|0;if(!w){x=m;s=r;g=0}else{l=0;s=r;do{s=(c[((c[(m+(l<<2)&p)>>2]|0)&p)+4>>2]|0)+s|0;l=l+1|0}while((l|0)<(w|0));x=m;g=w}}else{x=0;s=r;g=0}}else{x=0;s=r;g=0;v=0}r=u<<16>>16==2;m=c[(S&p)>>2]|0;while(1){l=m+1|0;if((m|0)>=(s|0)){W=33;break}if(!r)break;if((a[((c[(I&p)>>2]|0)+(m*20|0)&n)>>0]|0)==-99)break;else m=l}if((W|0)==33){c[(S&p)>>2]=l;c[(Y&p)>>2]=0;l=101;W=101;break}c[(S&p)>>2]=l;if(c[(t&p)+240>>2]|0){c[(Y&p)>>2]=9;c[(V&p)>>2]=15832;dh(X,t,10344,V);l=1;W=101;break}s=c[(H&p)>>2]|0;if((m|0)<(s|0)){l=m;A=(c[(I&p)>>2]|0)+(m*20|0)|0}else{m=m-s|0;s=c[(x&p)>>2]|0;r=c[(s&p)+4>>2]|0;if((m|0)<(r|0))r=m;else{s=m;l=0;while(1){m=s-r|0;l=l+1|0;s=c[(x+(l<<2)&p)>>2]|0;r=c[(s&p)+4>>2]|0;if((m|0)<(r|0)){r=m;break}else s=m}}l=r;A=(c[(s&p)>>2]|0)+(r*20|0)|0}if((b[(N&o)>>1]&3)==1){b[(z&o)+48>>1]=4;r=y;c[(r&p)>>2]=l;c[(r&p)+4>>2]=((l|0)<0)<<31>>31;b[(z&o)+88>>1]=2562;r=c[(d[(A&n)>>0]<<2&p)+44856>>2]|0;c[(z&p)+96>>2]=r;s=r;while(1)if(!(a[(s&n)>>0]|0))break;else s=s+1|0;w=z+80|0;c[(z&p)+92>>2]=s-r&1073741823;a[(z&n)+90>>0]=1;if((a[(A&n)+1>>0]|0)==-18){l=(g<<2)+4|0;a:do if(!g)s=0;else{r=c[(A&p)+16>>2]|0;m=0;while(1){s=m+1|0;if((c[(x+(m<<2)&p)>>2]|0)==(r|0)){s=m;break a}if((s|0)<(g|0))m=s;else break}}while(0);if((s|0)==(g|0)?(eh(v,l,(g|0)!=0&1)|0)==0:0){c[((c[(v&p)+16>>2]|0)+(g<<2)&p)>>2]=c[(A&p)+16>>2];z=v+8|0;b[(z&o)>>1]=e[(z&o)>>1]|16;c[(v&p)+12>>2]=l;z=w}else z=w}else z=w}b[(z&o)+48>>1]=4;y=c[(A&p)+4>>2]|0;x=z+40|0;c[(x&p)>>2]=y;c[(x&p)+4>>2]=((y|0)<0)<<31>>31;b[(z&o)+88>>1]=4;x=c[(A&p)+8>>2]|0;y=z+80|0;c[(y&p)>>2]=x;c[(y&p)+4>>2]=((x|0)<0)<<31>>31;b[(z&o)+128>>1]=4;y=c[(A&p)+12>>2]|0;x=z+120|0;c[(x&p)>>2]=y;c[(x&p)+4>>2]=((y|0)<0)<<31>>31;x=z+160|0;if(!(fh(x,32)|0)){b[(z&o)+168>>1]=514;y=z+176|0;g=c[(y&p)>>2]|0;b:do switch(a[(A&n)+1>>0]|0){case -6:{t=c[(A&p)+16>>2]|0;l=t+6|0;c[(V&p)>>2]=e[(l&o)>>1];ad(32,g,44768,V)|0;if(!g)s=0;else{s=g;while(1)if(!(a[(s&n)>>0]|0))break;else s=s+1|0;s=s-g&1073741823}c:do if(b[(l&o)>>1]|0){u=t+16|0;v=0;while(1){r=c[(t+(v<<2)&p)+20>>2]|0;if(r){r=c[(r&p)>>2]|0;if(!r){m=0;r=0}else W=61}else{r=44776;W=61}do if((W|0)==61){W=0;w=r;while(1)if(!(a[(w&n)>>0]|0))break;else w=w+1|0;m=w-r&1073741823;if((m|0)!=6)break;w=(Zv(r,11152,6)|0)==0;m=w?1:6;r=w?44784:r}while(0);if((m+s|0)>26)break;w=s+1|0;a[(g+s&n)>>0]=44;if(a[((c[(u&p)>>2]|0)+v&n)>>0]|0){a[(g+w&n)>>0]=45;w=s+2|0}kw(g+w|0,r|0,m+1|0)|0;s=w+m|0;v=v+1|0;if((v|0)>=(e[(l&o)>>1]|0))break c}l=g+s|0;a[(l&n)>>0]=44;a[(l&n)+1>>0]=46;a[(l&n)+2>>0]=46;a[(l&n)+3>>0]=46}while(0);a[(g+s&n)>>0]=41;a[(g+s&n)+1>>0]=0;r=g;break}case -15:{ad(32,g,44832,V)|0;r=g;break}case -18:{ad(32,g,44848,V)|0;r=g;break}case -4:{c[(V&p)>>2]=c[(c[(A&p)+16>>2]&p)>>2];ad(32,g,44792,V)|0;r=g;break}case -5:{l=c[(A&p)+16>>2]|0;r=b[(l&o)>>1]|0;c[(V&p)>>2]=c[(l&p)+24>>2];c[(V&p)+4>>2]=r;ad(32,g,44800,V)|0;r=g;break}case -13:{m=c[(A&p)+16>>2]|0;l=c[(m&p)+4>>2]|0;r=V;c[(r&p)>>2]=c[(m&p)>>2];c[(r&p)+4>>2]=l;ad(32,g,19920,V)|0;r=g;break}case -14:{c[(V&p)>>2]=c[(A&p)+16>>2];ad(32,g,44808,V)|0;r=g;break}case -12:{h[(k&q)>>3]=+h[(c[(A&p)+16>>2]&q)>>3];c[(V&p)>>2]=c[(k&p)>>2];c[(V&p)+4>>2]=c[(k&p)+4>>2];ad(32,g,19912,V)|0;r=g;break}case -8:{s=c[(A&p)+16>>2]|0;r=e[(s&o)+8>>1]|0;if(r&2){r=c[(s&p)+16>>2]|0;break b}if(r&4){m=s;l=c[(m&p)+4>>2]|0;r=V;c[(r&p)>>2]=c[(m&p)>>2];c[(r&p)+4>>2]=l;ad(32,g,19920,V)|0;r=g;break b}if(r&8){h[(k&q)>>3]=+h[(s&q)>>3];c[(V&p)>>2]=c[(k&p)>>2];c[(V&p)+4>>2]=c[(k&p)+4>>2];ad(32,g,19912,V)|0;r=g;break b}if(!(r&1))r=44816;else{ad(32,g,20304,V)|0;r=g}break}case -19:{a[(g&n)>>0]=0;r=g;break}case -10:{c[(V&p)>>2]=c[((c[(A&p)+16>>2]|0)&p)+8>>2];ad(32,g,44824,V)|0;r=g;break}default:{s=c[(A&p)+16>>2]|0;if(!s){a[(g&n)>>0]=0;r=g}else r=s}}while(0);if((r|0)==(c[(y&p)>>2]|0)){if(!r)l=0;else{s=r;while(1)if(!(a[(s&n)>>0]|0))break;else s=s+1|0;l=s-r&1073741823}c[(z&p)+172>>2]=l;a[(z&n)+170>>0]=1}else Xg(x,r,-1,1,0)|0;l=b[(N&o)>>1]|0;if((l&3)==1){if(fh(z+200|0,4)|0){l=1;W=101;break}b[(z&o)+208>>1]=514;c[(z&p)+212>>2]=2;l=c[(z&p)+216>>2]|0;c[(V&p)>>2]=d[(A&n)+3>>0];ad(3,l,44760,V)|0;a[(z&n)+210>>0]=1;b[(z&o)+248>>1]=1;l=b[(N&o)>>1]|0}b[(J&o)>>1]=12-((l&3)<<2);c[(F&p)>>2]=(c[(E&p)>>2]|0)+40;c[(Y&p)>>2]=0;l=100}else{l=1;W=101}}while(0);if((W|0)==101){W=0;g=B+184|0;if(((c[(g&p)>>2]|0)!=0?(a[(B&n)+145>>0]|0)==0:0)?(c[(D&p)>>2]|0)!=0:0){bh(c[(B&p)>>2]|0,U)|0;g=c[(g&p)>>2]|0;y=c[(B&p)+188>>2]|0;z=c[(D&p)>>2]|0;m=U;A=T;A=dw(c[(m&p)>>2]|0,c[(m&p)+4>>2]|0,c[(A&p)>>2]|0,c[(A&p)+4>>2]|0)|0;A=sw(A|0,G|0,1e6,0)|0;qc[g&15](y,z,A,G)}if((l|0)==101){t=B+20|0;s=c[(t&p)>>2]|0;if((s|0)>0){u=B+16|0;v=B+216|0;w=B+220|0;g=0;l=0;do{r=c[(u&p)>>2]|0;m=c[(r+(g<<4)&p)+4>>2]|0;if(((m|0)!=0?(O=c[(m&p)+4>>2]|0,c[(O&p)+4>>2]=c[(m&p)>>2],O=c[((c[(O&p)>>2]|0)&p)+208>>2]|0,(O|0)!=0):0)?(Q=O+12|0,P=c[(Q&p)>>2]|0,c[(Q&p)>>2]=0,Q=c[(v&p)>>2]|0,(Q|0)!=0&(P|0)>0&(l|0)==0):0){l=pc[Q&31](c[(w&p)>>2]|0,B,c[(r+(g<<4)&p)>>2]|0,P)|0;s=c[(t&p)>>2]|0}g=g+1|0}while((g|0)<(s|0))}else l=0;c[(Y&p)>>2]=l;l=(l|0)==0?101:1}}c[(B&p)+52>>2]=l;if((Og(c[(f&p)>>2]|0,c[(Y&p)>>2]|0)|0)==7)c[(Y&p)>>2]=7}if((b[(N&o)>>1]&256)!=0&(l|0)!=100&(l|0)!=101)l=hh(f)|0;g=c[(B&p)+56>>2]&l;if((g|0)!=17)break;s=C+1|0;if((C|0)>=50){g=17;break}m=c[(S&p)>>2]|0;if(!K?(b[(N&o)>>1]&256)!=0:0)l=c[(D&p)>>2]|0;else l=0;r=c[(f&p)>>2]|0;g=ih(r,l,-1,0,f,U,0)|0;if((g|0)==7){g=r;W=124;break}else if(g){W=127;break}C=c[(U&p)>>2]|0;kw(V|0,C|0,208)|0;kw(C|0,f|0,208)|0;kw(f|0,V|0,208)|0;A=C+52|0;B=c[(A&p)>>2]|0;c[(A&p)>>2]=c[(L&p)>>2];c[(L&p)>>2]=B;B=C+48|0;A=c[(B&p)>>2]|0;c[(B&p)>>2]=c[(M&p)>>2];c[(M&p)>>2]=A;A=C+168|0;B=c[(A&p)>>2]|0;c[(A&p)>>2]=c[(D&p)>>2];c[(D&p)>>2]=B;b[(N&o)>>1]=b[(N&o)>>1]&-257|b[(C&o)+88>>1]&256;jh(C,f);c[(C&p)+80>>2]=0;Ng(C)|0;nd(f)|0;if((m|0)<=-1){C=s;continue}b[(N&o)>>1]=b[(N&o)>>1]|512;C=s}if((W|0)==7){c[(Y&p)>>2]=7;g=7}else if((W|0)==124){a[(g&n)+65>>0]=1;g=7;W=127}do if((W|0)==127){l=Sg(c[(Z&p)+236>>2]|0,1)|0;mg(Z,c[(X&p)>>2]|0);if(!(a[(Z&n)+65>>0]|0)){c[(X&p)>>2]=kh(Z,l)|0;c[(Y&p)>>2]=g;break}else{c[(X&p)>>2]=0;c[(Y&p)>>2]=7;g=7;break}}while(0);g=Og(Z,g)|0}else{c[(V&p)>>2]=69408;c[(V&p)+4>>2]=10788;bd(21,13648,V);g=21}i=_;return g|0}function Td(a){a=a|0;return c[((c[(a&p)+4>>2]|0)&p)+4>>2]|0}function Ud(a){a=a|0;return c[((c[(a&p)>>2]|0)&p)+32>>2]|0}function Vd(a,d){a=a|0;d=d|0;var e=0;e=c[(a&p)+8>>2]|0;if(!(b[(e&o)+8>>1]&8192))e=lh(a,d)|0;else e=c[(e&p)+16>>2]|0;return e|0}function Wd(a,b){a=a|0;b=b|0;var d=0;d=c[((c[(a&p)+12>>2]|0)&p)+204>>2]|0;a:do if(!d)d=0;else{a=c[(a&p)+16>>2]|0;while(1){if((c[(d&p)>>2]|0)==(a|0)?(c[(d&p)+4>>2]|0)==(b|0):0)break;d=c[(d&p)+16>>2]|0;if(!d){d=0;break a}}d=c[(d&p)+8>>2]|0}while(0);return d|0}function Xd(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0;h=c[(b&p)+12>>2]|0;do if((d|0)<0)k=14;else{j=h+204|0;g=c[(j&p)>>2]|0;a:do if(g){i=c[(b&p)+16>>2]|0;while(1){if((c[(g&p)>>2]|0)==(i|0)?(c[(g&p)+4>>2]|0)==(d|0):0)break;g=c[(g&p)+16>>2]|0;if(!g){k=8;break a}}if(g){h=c[(g&p)+12>>2]|0;if(h)cc[h&31](c[(g&p)+8>>2]|0)}else k=8}else k=8;while(0);if((k|0)==8){g=mh(c[(h&p)>>2]|0,20,0)|0;if(!g){k=14;break}h=g+0|0;i=h+16|0;do{a[(h&n)>>0]=0;h=h+1|0}while((h|0)<(i|0));c[(g&p)>>2]=c[(b&p)+16>>2];c[(g&p)+4>>2]=d;c[(g&p)+16>>2]=c[(j&p)>>2];c[(j&p)>>2]=g;h=b+25|0;if(!(a[(h&n)>>0]|0)){c[(b&p)+20>>2]=0;a[(h&n)>>0]=1}}c[(g&p)+8>>2]=e;c[(g&p)+12>>2]=f}while(0);if((k|0)==14?(f|0)!=0:0)cc[f&31](e);return}function Yd(a){a=a|0;return c[((c[(a&p)+8>>2]|0)&p)+12>>2]|0}function Zd(a){a=a|0;if(!a)a=0;else a=e[(a&o)+84>>1]|0;return a|0}function _d(a){a=a|0;if((a|0)!=0?(c[(a&p)+20>>2]|0)!=0:0)a=e[(a&o)+84>>1]|0;else a=0;return a|0}function $d(a,b){a=a|0;b=b|0;var d=0;b=pd(nh(a,b)|0)|0;if(a){d=a+80|0;c[(d&p)>>2]=Og(c[(a&p)>>2]|0,c[(d&p)>>2]|0)|0}return b|0}function ae(a,b){a=a|0;b=b|0;var d=0;b=Tg(nh(a,b)|0,1)|0;if(a){d=a+80|0;c[(d&p)>>2]=Og(c[(a&p)>>2]|0,c[(d&p)>>2]|0)|0}return b|0}function be(a,b){a=a|0;b=b|0;var d=0;b=Tg(nh(a,b)|0,2)|0;if(a){d=a+80|0;c[(d&p)>>2]=Og(c[(a&p)>>2]|0,c[(d&p)>>2]|0)|0}return b|0}function ce(a,b){a=a|0;b=b|0;var d=0.0;d=+Ug(nh(a,b)|0);if(a){b=a+80|0;c[(b&p)>>2]=Og(c[(a&p)>>2]|0,c[(b&p)>>2]|0)|0}return +d}function de(a,b){a=a|0;b=b|0;var d=0;b=Vg(nh(a,b)|0)|0;if(a){d=a+80|0;c[(d&p)>>2]=Og(c[(a&p)>>2]|0,c[(d&p)>>2]|0)|0}return b|0}function ee(a,b){a=a|0;b=b|0;var d=0,e=0;b=Vg(nh(a,b)|0)|0;d=G;if(a){e=a+80|0;c[(e&p)>>2]=Og(c[(a&p)>>2]|0,c[(e&p)>>2]|0)|0}G=d;return b|0}function fe(a,b){a=a|0;b=b|0;var d=0;b=Sg(nh(a,b)|0,1)|0;if(a){d=a+80|0;c[(d&p)>>2]=Og(c[(a&p)>>2]|0,c[(d&p)>>2]|0)|0}return b|0}function ge(a,d){a=a|0;d=d|0;var f=0,g=0;d=nh(a,d)|0;f=d+8|0;g=e[(f&o)>>1]|0;if(g&2048)b[(f&o)>>1]=g&59391|4096;if(a){f=a+80|0;c[(f&p)>>2]=Og(c[(a&p)>>2]|0,c[(f&p)>>2]|0)|0}return d|0}function he(a,b){a=a|0;b=b|0;var d=0;b=Sg(nh(a,b)|0,2)|0;if(a){d=a+80|0;c[(d&p)>>2]=Og(c[(a&p)>>2]|0,c[(d&p)>>2]|0)|0}return b|0}function ie(a,b){a=a|0;b=b|0;var f=0;b=d[((e[((nh(a,b)|0)&o)+8>>1]|0)&31&n)+10064>>0]|0;if(a){f=a+80|0;c[(f&p)>>2]=Og(c[(a&p)>>2]|0,c[(f&p)>>2]|0)|0}return b|0}function je(b,d){b=b|0;d=d|0;var f=0,g=0;g=c[(b&p)>>2]|0;if(!b)f=0;else f=e[(b&o)+84>>1]|0;if((f|0)>(d|0)&(d|0)>-1){d=Sg((c[(b&p)+16>>2]|0)+(d*40|0)|0,1)|0;f=g+65|0;if(a[(f&n)>>0]|0){a[(f&n)>>0]=0;d=0}}else d=0;return d|0}function ke(b,d){b=b|0;d=d|0;var f=0,g=0;g=c[(b&p)>>2]|0;if(!b)f=0;else f=e[(b&o)+84>>1]|0;if((f|0)>(d|0)&(d|0)>-1){d=Sg((c[(b&p)+16>>2]|0)+(d*40|0)|0,2)|0;f=g+65|0;if(a[(f&n)>>0]|0){a[(f&n)>>0]=0;d=0}}else d=0;return d|0}function le(b,d){b=b|0;d=d|0;var f=0,g=0;g=c[(b&p)>>2]|0;if(!b)f=0;else f=e[(b&o)+84>>1]|0;if((f|0)>(d|0)&(d|0)>-1){d=Sg((c[(b&p)+16>>2]|0)+((f+d|0)*40|0)|0,1)|0;f=g+65|0;if(a[(f&n)>>0]|0){a[(f&n)>>0]=0;d=0}}else d=0;return d|0}function me(b,d){b=b|0;d=d|0;var f=0,g=0;g=c[(b&p)>>2]|0;if(!b)f=0;else f=e[(b&o)+84>>1]|0;if((f|0)>(d|0)&(d|0)>-1){d=Sg((c[(b&p)+16>>2]|0)+((f+d|0)*40|0)|0,2)|0;f=g+65|0;if(a[(f&n)>>0]|0){a[(f&n)>>0]=0;d=0}}else d=0;return d|0}function ne(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;return oh(a,b,c,d,e,0)|0}function oe(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;if(e>>>0>0|(e|0)==0&d>>>0>2147483647){d=f;if((d|0)==0|(d|0)==-1)d=18;else{cc[f&31](c);d=18}}else d=oh(a,b,c,d,f,0)|0;return d|0}function pe(a,b,d){a=a|0;b=b|0;d=+d;var e=0;e=ph(a,b)|0;if(!e)Yg((c[(a&p)+60>>2]|0)+((b+-1|0)*40|0)|0,d);return e|0}function qe(a,b,c){a=a|0;b=b|0;c=c|0;return re(a,b,c,((c|0)<0)<<31>>31)|0}function re(a,d,e,f){a=a|0;d=d|0;e=e|0;f=f|0;var g=0,h=0;g=ph(a,d)|0;do if(!g){d=d+-1|0;h=c[(a&p)+60>>2]|0;a=h+(d*40|0)|0;d=h+(d*40|0)+8|0;if(!(b[(d&o)>>1]&9312)){c[(a&p)>>2]=e;c[(a&p)+4>>2]=f;b[(d&o)>>1]=4;break}else{Zg(a,e,f);break}}while(0);return g|0}function se(a,b){a=a|0;b=b|0;return ph(a,b)|0}function te(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;return oh(a,b,c,d,e,1)|0}function ue(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;if(e>>>0>0|(e|0)==0&d>>>0>2147483647){d=f;if((d|0)==0|(d|0)==-1)d=18;else{cc[f&31](c);d=18}}else d=oh(a,b,c,d,f,g<<24>>24==4?2:g)|0;return d|0}function ve(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;return oh(a,b,c,d,e,2)|0}function we(e,f,g){e=e|0;f=f|0;g=g|0;var i=0,j=0;i=b[(g&o)+8>>1]|0;j=d[(i&31&n)+10064>>0]|0;do if((j|0)==3)i=oh(e,f,c[(g&p)+16>>2]|0,c[(g&p)+12>>2]|0,-1,a[(g&n)+10>>0]|0)|0;else if((j|0)==1){i=g;i=re(e,f,c[(i&p)>>2]|0,c[(i&p)+4>>2]|0)|0}else if((j|0)==2)i=pe(e,f,+h[(g&q)>>3])|0;else if((j|0)==4)if(!(i&16384)){i=oh(e,f,c[(g&p)+16>>2]|0,c[(g&p)+12>>2]|0,-1,0)|0;break}else{i=xe(e,f,c[(g&p)>>2]|0)|0;break}else i=ph(e,f)|0;while(0);return i|0}function xe(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;e=ph(a,b)|0;if(!e)$g((c[(a&p)+60>>2]|0)+((b+-1|0)*40|0)|0,d);return e|0}function ye(a){a=a|0;if(!a)a=0;else a=b[(a&o)+68>>1]|0;return a|0}function ze(a,d){a=a|0;d=d|0;if(!((a|0)==0|(d|0)<1)?(b[(a&o)+70>>1]|0)>=(d|0):0)d=c[((c[(a&p)+64>>2]|0)+(d+-1<<2)&p)>>2]|0;else d=0;return d|0}function Ae(b,c){b=b|0;c=c|0;var d=0;if(!c)d=0;else{d=c;while(1)if(!(a[(d&n)>>0]|0))break;else d=d+1|0;d=d-c&1073741823}return qh(b,c,d)|0}function Be(a,d){a=a|0;d=d|0;var e=0,f=0;if((b[(a&o)+68>>1]|0)==(b[(d&o)+68>>1]|0)){f=d+88|0;e=b[(f&o)>>1]|0;if((e&256)!=0?(c[(d&p)+188>>2]|0)!=0:0)b[(f&o)>>1]=e|8;e=a+88|0;f=b[(e&o)>>1]|0;if((f&256)!=0?(c[(a&p)+188>>2]|0)!=0:0)b[(e&o)>>1]=f|8;jh(a,d);e=0}else e=1;return e|0}function Ce(a){a=a|0;if(!a)a=0;else a=c[(a&p)>>2]|0;return a|0}function De(a){a=a|0;if(!a)a=1;else a=(e[(a&o)+88>>1]|0)>>>6&1;return a|0}function Ee(a){a=a|0;if((a|0)!=0?(c[(a&p)+76>>2]|0)>-1:0)a=(c[(a&p)+40>>2]|0)==-1108210269;else a=0;return a&1|0}function Fe(a,b){a=a|0;b=b|0;if(!b)a=a+4|0;else a=b+52|0;return c[(a&p)>>2]|0}function Ge(a,b,d){a=a|0;b=b|0;d=d|0;a=a+(b<<2)+108|0;b=c[(a&p)>>2]|0;if(d)c[(a&p)>>2]=0;return b|0}function He(a){a=a|0;var b=0,c=0,f=0;c=a+8|0;f=e[(c&o)>>1]|0;b=d[(f&31&n)+10064>>0]|0;if((f&15|0)==2){rh(a,0);b=d[((e[(c&o)>>1]|0)&31&n)+10064>>0]|0}return b|0}function Ie(d,e,f,g,h,k,l,m){d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;m=m|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,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;U=i;i=i+16|0;if((i|0)>=(j|0))fa();S=U;T=U+4|0;c[(T&p)>>2]=0;c[(m&p)>>2]=0;N=(l|0)!=0;O=N&1;Q=mh(d,28,0)|0;do if(Q){l=Q+0|0;s=l+28|0;do{a[(l&n)>>0]=0;l=l+1|0}while((l|0)<(s|0));s=mh(d,536,0)|0;if(s){K=d+20|0;L=d+16|0;B=d+24|0;l=Q+20|0;C=Q+12|0;D=Q+24|0;E=d+65|0;F=O^3;G=O|2;H=s+440|0;I=s+72|0;J=s+68|0;r=0;M=1;q=0;while(1){fw(s|0,0,536)|0;c[(s&p)>>2]=d;mg(d,r);c[(T&p)>>2]=0;r=c[(K&p)>>2]|0;if((r|0)>0){t=c[(L&p)>>2]|0;v=0;do{u=c[(t+(v<<4)&p)+4>>2]|0;if(u)c[((c[(u&p)+4>>2]|0)&p)+4>>2]=c[(u&p)>>2];v=v+1|0}while((v|0)!=(r|0))}A=sh(s,0,f,e)|0;if(!A)break;r=a[(A&n)+44>>0]|0;if(r&16){R=11;break}if(r&32){R=13;break}if(c[(A&p)+12>>2]|0){R=17;break}z=A+38|0;w=b[(z&o)>>1]|0;a:do if(w<<16>>16>0){v=c[(A&p)+4>>2]|0;u=w<<16>>16;r=0;while(1){t=r+1|0;if(!(dd(c[(v+(r*24|0)&p)>>2]|0,g)|0)){t=r;break a}if((t|0)<(u|0))r=t;else break}}else t=0;while(0);if((t|0)==(w<<16>>16|0)){R=23;break}if(N){if((c[(B&p)>>2]&524288|0)!=0?(P=c[(A&p)+16>>2]|0,(P|0)!=0):0){x=P;r=0;do{w=c[(x&p)+20>>2]|0;if((w|0)>0){v=0;do{r=(c[(x+(v<<3)&p)+36>>2]|0)==(t|0)?10280:r;v=v+1|0}while((v|0)<(w|0))}x=c[(x&p)+4>>2]|0}while((x|0)!=0)}else r=0;v=c[(A&p)+8>>2]|0;if(v)do{u=b[(v&o)+46>>1]|0;if(u<<16>>16){y=c[(v&p)+4>>2]|0;w=u&65535;x=0;do{r=(b[(y+(x<<1)&o)>>1]|0)==(t|0)?10296:r;x=x+1|0}while((x|0)<(w|0))}v=c[(v&p)+20>>2]|0}while((v|0)!=0);if(r){R=36;break}}y=vh(s)|0;c[(l&p)>>2]=y;if(y){x=c[(A&p)+68>>2]|0;b:do if(x){w=c[(K&p)>>2]|0;if((w|0)>0){v=c[(L&p)>>2]|0;r=0;while(1){u=r+1|0;if((c[(v+(r<<4)&p)+12>>2]|0)==(x|0)){u=r;break b}if((u|0)<(w|0))r=u;else break}}else u=0}else u=-1e6;while(0);r=c[(x&p)+4>>2]|0;xh(y,wh(y,4,u,O,c[(x&p)>>2]|0)|0,r,-14);r=y+4|0;v=c[(r&p)>>2]|0;w=y+32|0;if(v)a[(v+(((c[(w&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=1;yh(y,10,10120)|0;v=y+96|0;c[(v&p)>>2]=c[(v&p)>>2]|1<>2]|0)>>>0>1){x=c[(r&p)>>2]|0;c[(x&p)+24>>2]=u;v=A+32|0;c[(x&p)+28>>2]=c[(v&p)>>2];c[((c[(r&p)>>2]|0)&p)+32>>2]=O}else v=A+32|0;xh(y,1,c[(A&p)>>2]|0,0);zh(y,F);if((c[(w&p)>>2]|0)>>>0>G>>>0){c[((c[(r&p)>>2]|0)+(G*20|0)&p)+8>>2]=c[(v&p)>>2];c[((c[(r&p)>>2]|0)+(G*20|0)&p)+12>>2]=u}xh(y,G,(b[(z&o)>>1]|0)+1|0,-14);if((c[(w&p)>>2]|0)>>>0>6)c[((c[(r&p)>>2]|0)&p)+128>>2]=b[(z&o)>>1];if(!(a[(E&n)>>0]|0)){c[(H&p)>>2]=1;c[(I&p)>>2]=1;c[(J&p)>>2]=1;Ah(y,s)}}c[(Q&p)>>2]=O;c[(C&p)>>2]=t;c[(D&p)>>2]=d;if(a[(E&n)>>0]|0){R=57;break}re(c[(l&p)>>2]|0,1,h,k)|0;q=Bh(Q,h,k,T)|0;if(!((M|0)<50&(q|0)==17)){R=57;break}r=c[(T&p)>>2]|0;M=M+1|0;q=17}if((R|0)==11){c[(S&p)>>2]=f;th(s,10160,S)}else if((R|0)==13){c[(S&p)>>2]=f;th(s,10192,S)}else if((R|0)==17){c[(S&p)>>2]=f;th(s,10232,S)}else if((R|0)==23){mg(d,0);c[(S&p)>>2]=g;c[(T&p)>>2]=uh(d,10256,S)|0;q=1;R=62;break}else if((R|0)==36){mg(d,0);c[(S&p)>>2]=r;c[(T&p)>>2]=uh(d,10304,S)|0;q=1;R=62;break}else if((R|0)==57)if(!q){q=1;r=s;R=58;break}else{r=s;R=61;break}r=s+4|0;if(!(c[(r&p)>>2]|0)){q=1;R=62}else{mg(d,0);c[(T&p)>>2]=c[(r&p)>>2];c[(r&p)>>2]=0;q=1;R=62}}else{q=1;r=s;R=58}}else{q=0;r=0;R=58}while(0);do if((R|0)==58)if(a[(d&n)+65>>0]|0)if(q){q=0;R=61;break}else{q=0;R=64;break}else{c[(m&p)>>2]=Q;q=0;break}while(0);if((R|0)==61){l=Q+20|0;s=r;R=62}if((R|0)==62){r=c[(l&p)>>2]|0;if(!r){r=s;R=64}else{Ng(r)|0;r=s;R=64}}if((R|0)==64)mg(d,Q);K=c[(T&p)>>2]|0;c[(S&p)>>2]=K;ug(d,q,(K|0)!=0?10344:0,S);mg(d,K);Ch(r);mg(d,r);K=Og(d,q)|0;i=U;return K|0}function Je(a){a=a|0;var b=0,d=0;if(!a)a=0;else{d=c[(a&p)+24>>2]|0;b=md(c[(a&p)+20>>2]|0)|0;mg(d,a);a=b}return a|0}function Ke(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return Eh(a,b,c,d,18)|0}function Le(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return Eh(a,b,c,d,19)|0}function Me(a){a=a|0;if((a|0)!=0?(c[(a&p)+20>>2]|0)!=0:0)a=c[(a&p)+4>>2]|0;else a=0;return a|0}function Ne(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0;h=i;i=i+16|0;if((i|0)>=(j|0))fa();e=h;f=h+8|0;if(!a){c[(e&p)>>2]=77720;c[(e&p)+4>>2]=10788;bd(21,13648,e);b=21}else{g=c[(a&p)+24>>2]|0;if(c[(a&p)+20>>2]|0){b=Bh(a,b,d,f)|0;if(!b)b=0;else{d=c[(f&p)>>2]|0;c[(e&p)>>2]=d;ug(g,b,(d|0)!=0?10344:0,e);mg(g,d)}}else b=4;b=Og(g,b)|0}i=h;return b|0}function Oe(a,d,e){a=a|0;d=d|0;e=e|0;c[(a&p)+284>>2]=d;c[(a&p)+288>>2]=e;a=c[(a&p)+4>>2]|0;if(a)do{e=a+88|0;b[(e&o)>>1]=b[(e&o)>>1]|8;a=c[(a&p)+52>>2]|0}while((a|0)!=0);return 0}function Pe(a,b){a=a|0;b=b|0;return (Gh(a,b,10352,0)|0)==0|0}function Qe(e,f,g,h,k){e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;var l=0,m=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;E=i;i=i+16|0;if((i|0)>=(j|0))fa();m=E;A=E+12|0;B=E+8|0;c[(B&p)>>2]=0;do if(Hh(e)|0){l=(f|0)==0?10360:f;C=e+52|0;c[(C&p)>>2]=0;D=e+236|0;m=c[(D&p)>>2]|0;do if(m){f=m+8|0;if(!(b[(f&o)>>1]&9312)){b[(f&o)>>1]=1;break}else{vg(m);break}}while(0);x=(g|0)==0;y=e+24|0;m=0;a:while(1){do{if(m){q=39;break a}if(!(a[(l&n)>>0]|0)){m=0;q=39;break a}c[(B&p)>>2]=0;m=ih(e,l,-1,1,0,B,A)|0}while((m|0)!=0);l=c[(B&p)>>2]|0;if(!l){l=c[(A&p)>>2]|0;m=0;continue}w=b[(l&o)+84>>1]|0;u=w&65535;v=u<<3|1;w=w<<16>>16==0;f=0;q=0;r=0;b:do{m=Sd(l)|0;do if(!x){s=(m|0)==100;if(!s){if((m|0)!=101|(r|0)!=0)break b;if(!(c[(y&p)>>2]&256)){r=0;break}}if(!r){f=mh(e,v,0)|0;if(!f){f=0;q=40;break a}fw(f|0,0,v|0)|0;if(w)t=1;else{r=0;do{c[(f+(r<<2)&p)>>2]=je(l,r)|0;r=r+1|0}while((r|0)<(u|0));t=1}}else t=r;c:do if(s){q=f+(u<<2)|0;if(!w){r=0;while(1){s=fe(l,r)|0;c[(f+(r+u<<2)&p)>>2]=s;if((s|0)==0?(z=c[(B&p)>>2]|0,(ie(z,r)|0)!=5):0){m=z;q=27;break a}r=r+1|0;if((r|0)>=(u|0))break c;l=c[(B&p)>>2]|0}}}while(0);if(!(pc[g&31](h,u,q,f)|0))r=t;else{l=f;q=31;break a}}while(0);l=c[(B&p)>>2]|0}while((m|0)==100);m=Ng(l)|0;c[(B&p)>>2]=0;l=c[(A&p)>>2]|0;while(1)if(!(a[((d[(l&n)>>0]|0)&n)+10368>>0]&1))break;else l=l+1|0;mg(e,f)}do if((q|0)==27){a[(e&n)+65>>0]=1;l=m;m=100;q=40}else if((q|0)==31){Ng(c[(B&p)>>2]|0)|0;c[(B&p)>>2]=0;c[(C&p)>>2]=4;m=c[(D&p)>>2]|0;if(m){f=m+8|0;if(!(b[(f&o)>>1]&9312)){b[(f&o)>>1]=1;f=l;m=4;break}else{vg(m);f=l;m=4;break}}else{f=l;m=4}}else if((q|0)==39){l=c[(B&p)>>2]|0;f=0;q=40}while(0);if((q|0)==40)if(l)Ng(l)|0;mg(e,f);l=Og(e,m)|0;f=(k|0)!=0;if(!((l|0)!=0&f)){if(!f)break;c[(k&p)>>2]=0;break}f=Se(e)|0;if(!f)f=1;else{m=f;while(1)if(!(a[(m&n)>>0]|0))break;else m=m+1|0;f=(m-f&1073741823)+1|0}m=qg(f,((f|0)<0)<<31>>31)|0;c[(k&p)>>2]=m;if(m){kw(m|0,Se(e)|0,f|0)|0;break}c[(C&p)>>2]=7;l=c[(D&p)>>2]|0;if(l){f=l+8|0;if(!(b[(f&o)>>1]&9312)){b[(f&o)>>1]=1;l=7;break}else{vg(l);l=7;break}}else l=7}else{c[(m&p)>>2]=101334;c[(m&p)+4>>2]=10788;bd(21,13648,m);l=21}while(0);i=E;return l|0}function Re(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;return ih(a,b,c,1,0,d,e)|0}function Se(b){b=b|0;var d=0,e=0,f=0;e=i;i=i+16|0;if((i|0)>=(j|0))fa();d=e;do if(b){f=c[(b&p)+76>>2]|0;if(!((f|0)==1266094736|(f|0)==-1607883113|(f|0)==-264537850)){c[(d&p)>>2]=15248;bd(21,15256,d);c[(d&p)>>2]=129635;c[(d&p)+4>>2]=10788;bd(21,13648,d);d=16120;break}if(!(a[(b&n)+65>>0]|0)){d=Sg(c[(b&p)+236>>2]|0,1)|0;if(!d){d=c[(b&p)+52>>2]|0;if((d|0)!=516){d=d&255;if(d>>>0>26|(d|0)==2)d=16328;else d=c[(d<<2&p)+15488>>2]|0}else d=16344}}else d=15776}else d=15776;while(0);i=e;return d|0}function Te(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,o=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0;w=i;i=i+16|0;if((i|0)>=(j|0))fa();u=w;v=w+8|0;t=c[(b&p)>>2]|0;c[(v&p)>>2]=0;m=(d|0)==0;if(m)g=0;else{l=d;while(1)if(!(a[(l&n)>>0]|0))break;else l=l+1|0;g=l-d&1073741823}r=g+300|0;q=(f|0)!=0;if(q)c[(f&p)>>2]=0;do if(!(c[(b&p)+24>>2]&4194304))if(q){c[(f&p)>>2]=_c(25216,u)|0;g=1}else g=1;else{o=(e|0)!=0?e:41192;k=t+40|0;l=rc[c[(k&p)>>2]&127](t,d)|0;if(!l){c[(u&p)>>2]=d;c[(u&p)+4>>2]=41184;h=_c(27824,u)|0;if(!h){g=7;break}l=rc[c[(k&p)>>2]&127](t,h)|0;Wc(h);if(!l){if(!q){g=1;break}l=Tc(r)|0;c[(v&p)>>2]=l;c[(f&p)>>2]=l;if(!l){g=1;break}c[(u&p)>>2]=d;ad(r,l,41216,u)|0;mc[c[(t&p)+44>>2]&63](t,g+299|0,l);g=1;break}else s=l}else s=l;g=t+48|0;l=ac[c[(g&p)>>2]&63](t,s,o)|0;if((l|0)==0&(e|0)==0){if(m)l=0;else{l=d;while(1)if(!(a[(l&n)>>0]|0))break;else l=l+1|0;l=l-d&1073741823}e=Tc(l+30|0)|0;if(!e){jc[c[(t&p)+52>>2]&15](t,s);g=7;break}o=e;m=o;a[(m&n)>>0]=115;a[(m&n)+1>>0]=113;a[(m&n)+2>>0]=108;a[(m&n)+3>>0]=105;o=o+4|0;a[(o&n)>>0]=116;a[(o&n)+1>>0]=101;a[(o&n)+2>>0]=51;a[(o&n)+3>>0]=95;while(1){k=l+-1|0;if((l|0)<=0)break;if((a[(d+k&n)>>0]|0)==47)break;else l=k}h=(Fc(d+l|0,41256,3)|0)==0;k=8;h=h?l+3|0:l;while(1){l=a[(d+h&n)>>0]|0;if(l<<24>>24==0|l<<24>>24==46){l=k;break}if(!(a[(l&255&n)+10368>>0]&2))l=k;else{a[(e+k&n)>>0]=a[(l<<24>>24&n)+9328>>0]|0;l=k+1|0}k=l;h=h+1|0}l=e+l|0;a[(l&n)>>0]=a[41264]|0;a[(l&n)+1>>0]=a[41265]|0;a[(l&n)+2>>0]=a[41266]|0;a[(l&n)+3>>0]=a[41267]|0;a[(l&n)+4>>0]=a[41268]|0;a[(l&n)+5>>0]=a[41269]|0;l=ac[c[(g&p)>>2]&63](t,s,e)|0;g=e;h=e}else{g=0;h=o}if(!l){if(q){if(!h)l=0;else{l=h;while(1)if(!(a[(l&n)>>0]|0))break;else l=l+1|0;l=l-h&1073741823}l=l+r|0;k=Tc(l)|0;c[(v&p)>>2]=k;c[(f&p)>>2]=k;if(k){c[(u&p)>>2]=h;c[(u&p)+4>>2]=d;ad(l,k,41272,u)|0;mc[c[(t&p)+44>>2]&63](t,l+-1|0,k)}}jc[c[(t&p)+52>>2]&15](t,s);Wc(g);g=1;break}Wc(g);if(ac[l&63](b,v,13776)|0){if(q){c[(u&p)>>2]=c[(v&p)>>2];c[(f&p)>>2]=_c(41320,u)|0}Wc(c[(v&p)>>2]|0);jc[c[(t&p)+52>>2]&15](t,s);g=1;break}k=b+168|0;g=(c[(k&p)>>2]<<2)+4|0;l=mh(b,g,0)|0;if(!l)g=7;else{fw(l|0,0,g|0)|0;g=c[(k&p)>>2]|0;h=b+172|0;if((g|0)>0)kw(l|0,c[(h&p)>>2]|0,g<<2|0)|0;mg(b,c[(h&p)>>2]|0);c[(h&p)>>2]=l;g=c[(k&p)>>2]|0;c[(k&p)>>2]=g+1;c[(l+(g<<2)&p)>>2]=s;g=0}}while(0);s=Og(b,g)|0;i=w;return s|0}function Ue(a){a=a|0;var b=0,d=0,e=0,f=0;b=Lc()|0;if(!b){f=c[2656]|0;a:do if((f|0)>0){d=c[2658]|0;e=0;while(1){b=e+1|0;if((c[(d+(e<<2)&p)>>2]|0)==(a|0)){b=e;break a}if((b|0)<(f|0))e=b;else break}}else b=0;while(0);if((b|0)==(f|0)){b=Xc(c[2658]|0,(f<<2)+4|0)|0;if(!b)b=7;else{c[2658]=b;d=c[2656]|0;c[(b+(d<<2)&p)>>2]=a;c[2656]=d+1;b=0}}else b=0}return b|0}function Ve(a){a=a|0;var b=0,d=0,e=0,f=0,g=0;e=c[2656]|0;f=c[2658]|0;d=e;while(1){if((d|0)<=0){b=0;break}d=d+-1|0;b=f+(d<<2)|0;if((c[(b&p)>>2]|0)==(a|0)){g=4;break}}if((g|0)==4){d=e+-1|0;c[2656]=d;c[(b&p)>>2]=c[(f+(d<<2)&p)>>2];b=1}return b|0}function We(){if(!(Lc()|0)){Wc(c[2658]|0);c[2658]=0;c[2656]=0}return}function Xe(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;return ih(a,b,c,0,0,d,e)|0}function Ye(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;return Ih(a,b,c,0,d,e)|0}function Ze(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;return Ih(a,b,c,1,d,e)|0}function _e(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,k=0,l=0,m=0,n=0,o=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0;w=i;i=i+32|0;if((i|0)>=(j|0))fa();n=w;r=w+4|0;c[(d&p)>>2]=0;s=(f|0)!=0;if(s)c[(f&p)>>2]=0;t=(e|0)!=0;if(t)c[(e&p)>>2]=0;l=(g|0)!=0;if(l)c[(g&p)>>2]=0;m=r+4|0;c[(m&p)>>2]=0;u=r+12|0;c[(u&p)>>2]=0;v=r+16|0;c[(v&p)>>2]=0;k=r+20|0;c[(k&p)>>2]=1;o=r+8|0;c[(o&p)>>2]=20;q=r+24|0;c[(q&p)>>2]=0;h=Tc(80)|0;c[(r&p)>>2]=h;a:do if(h){c[(h&p)>>2]=0;b=Qe(a,b,20,r,g)|0;c[(c[(r&p)>>2]&p)>>2]=c[(k&p)>>2];if((b&255|0)==4){$e((c[(r&p)>>2]|0)+4|0);b=c[(m&p)>>2]|0;if(b){if(l){Wc(c[(g&p)>>2]|0);c[(n&p)>>2]=c[(m&p)>>2];c[(g&p)>>2]=_c(10344,n)|0;b=c[(m&p)>>2]|0}Wc(b)}b=c[(q&p)>>2]|0;c[(a&p)+52>>2]=b;break}Wc(c[(m&p)>>2]|0);if(b){$e((c[(r&p)>>2]|0)+4|0);break}h=c[(k&p)>>2]|0;b=c[(r&p)>>2]|0;do if((c[(o&p)>>2]|0)>>>0>h>>>0){b=Xc(b,h<<2)|0;if(!b){$e((c[(r&p)>>2]|0)+4|0);c[(a&p)+52>>2]=7;b=7;break a}else{c[(r&p)>>2]=b;break}}while(0);c[(d&p)>>2]=b+4;if(s)c[(f&p)>>2]=c[(v&p)>>2];if(t){c[(e&p)>>2]=c[(u&p)>>2];b=0}else b=0}else{c[(a&p)+52>>2]=7;b=7}while(0);i=w;return b|0}function $e(a){a=a|0;var b=0,d=0,e=0,f=0;if(a){b=a+-4|0;e=c[(b&p)>>2]|0;d=e;if((e|0)>1){f=1;do{e=c[(a+(f+-1<<2)&p)>>2]|0;if(e)Wc(e);f=f+1|0}while((f|0)<(d|0))}Wc(b)}return}function af(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return Kh(a,b,c,d,0)|0}function bf(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;return Kh(a,b,c,d,e)|0}function cf(d,e){d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,q=0,r=0,s=0;s=i;i=i+16|0;if((i|0)>=(j|0))fa();r=s;g=s+8|0;c[(g&p)>>2]=0;h=d+324|0;f=c[(h&p)>>2]|0;if((f|0)!=0?(m=c[(f&p)+4>>2]|0,(m|0)!=0):0){q=mh(d,536,0)|0;if(!q)e=7;else{fw(q|0,0,536)|0;k=q+451|0;a[(k&n)>>0]=1;c[(q&p)>>2]=d;c[(q&p)+424>>2]=1;if(((((Lh(q,e,g)|0)==0?(l=c[(q&p)+484>>2]|0,(l|0)!=0):0)?(a[(d&n)+65>>0]|0)==0:0)?(c[(l&p)+12>>2]|0)==0:0)?(a[(l&n)+44>>0]&16)==0:0){f=m+4|0;if(!(c[(f&p)>>2]|0)){r=l+4|0;c[(f&p)>>2]=c[(r&p)>>2];l=l+38|0;b[(m&o)+38>>1]=b[(l&o)>>1]|0;b[(l&o)>>1]=0;c[(r&p)>>2]=0}c[((c[(h&p)>>2]|0)&p)+4>>2]=0;e=0}else{e=c[(g&p)>>2]|0;c[(r&p)>>2]=e;ug(d,1,(e|0)!=0?10344:0,r);mg(d,e);e=1}a[(k&n)>>0]=0;f=c[(q&p)+8>>2]|0;if(f)Ng(f)|0;kg(d,c[(q&p)+484>>2]|0);Ch(q);mg(d,q)}e=Og(d,e)|0}else{c[(d&p)+52>>2]=21;f=c[(d&p)+236>>2]|0;do if(f){e=f+8|0;if(!(b[(e&o)>>1]&9312)){b[(e&o)>>1]=1;break}else{vg(f);break}}while(0);c[(r&p)>>2]=114865;c[(r&p)+4>>2]=10788;bd(21,13648,r);e=21}i=s;return e|0}function df(a){a=a|0;return d[((d[(a&n)+69>>0]|0)+-1&n)+10640>>0]|0|0}function ef(d,e,f){d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0;l=i;i=i+32|0;if((i|0)>=(j|0))fa();h=l;g=l+8|0;c[(g&p)>>2]=f;do if((e|0)==1){e=c[(d&p)+324>>2]|0;if(!e){c[(h&p)>>2]=115248;c[(h&p)+4>>2]=10788;bd(21,13648,h);k=6;break}else{d=c[(g&p)>>2]|0;f=c[(d&p)>>2]|0;c[(g&p)>>2]=d+4;a[((c[(e&p)>>2]|0)&n)+16>>0]=f;e=0;break}}else{c[(h&p)>>2]=115256;c[(h&p)+4>>2]=10788;bd(21,13648,h);k=6}while(0);do if((k|0)==6){c[(d&p)+52>>2]=21;e=c[(d&p)+236>>2]|0;if(e){f=e+8|0;if(!(b[(f&o)>>1]&9312)){b[(f&o)>>1]=1;e=21;break}else{vg(e);e=21;break}}else e=21}while(0);i=l;return e|0}function ff(b){b=b|0;var c=0,e=0,f=0,g=0,h=0;c=a[(b&n)>>0]|0;a:do if(c<<24>>24){g=c;c=0;b:while(1){f=g<<24>>24;switch(f|0){case 45:{if((a[(b&n)+1>>0]|0)==45){e=g;while(1){f=e<<24>>24==0;g=b+1|0;if(!(e<<24>>24!=10&(f^1)))break;b=g;e=a[(g&n)>>0]|0}if(f){h=13;break b}else e=1}else e=2;break}case 59:{e=0;break}case 91:{do{b=b+1|0;f=a[(b&n)>>0]|0;e=f<<24>>24==0}while(f<<24>>24!=93&(e^1));if(e){c=0;break a}else e=2;break}case 39:case 34:case 96:{do{b=b+1|0;f=a[(b&n)>>0]|0;e=f<<24>>24==0}while(f<<24>>24!=g<<24>>24&(e^1));if(e){c=0;break a}else e=2;break}case 47:{if((a[(b&n)+1>>0]|0)==42){b=b+2|0;while(1){e=a[(b&n)>>0]|0;if(e<<24>>24==42){b=b+1|0;if((a[(b&n)>>0]|0)==47){e=1;break}else continue}else if(!(e<<24>>24)){c=0;break a}else{b=b+1|0;continue}}}else e=2;break}case 12:case 10:case 9:case 13:case 32:{e=1;break}default:if(!(a[(g&255&n)+10368>>0]&70))e=2;else{e=1;while(1)if(!(a[((d[(b+e&n)>>0]|0)&n)+10368>>0]&70)){g=e;break}else e=e+1|0;c:do switch(f|0){case 67:case 99:{if((g|0)==6?(Fc(b,10712,6)|0)==0:0){e=4;break c}e=2;break}case 69:case 101:{if((g|0)==3){if(!(Fc(b,10752,3)|0)){e=7;break c}}else if((g|0)==7?(Fc(b,10760,7)|0)==0:0){e=3;break c}e=2;break}case 84:case 116:{if((g|0)==7){if(!(Fc(b,10720,7)|0)){e=6;break c}}else if((g|0)==4){if(!(Fc(b,10728,4)|0)){e=5;break c}}else if((g|0)==9?(Fc(b,10736,9)|0)==0:0){e=5;break c}e=2;break}default:e=2}while(0);b=b+(g+-1)|0}}c=a[((e&255)+((c&255)<<3)&n)+10648>>0]|0;b=b+1|0;g=a[(b&n)>>0]|0;if(!(g<<24>>24)){h=35;break}}if((h|0)==13){c=c<<24>>24==1&1;break}else if((h|0)==35){c=c<<24>>24==1;h=36;break}}else{c=0;h=36}while(0);if((h|0)==36)c=c&1;return c|0}function gf(d){d=d|0;var e=0,f=0,g=0;e=Lc()|0;if(!e){f=qg(40,0)|0;if(f){e=f+0|0;g=e+40|0;do{a[(e&n)>>0]=0;e=e+1|0}while((e|0)<(g|0));b[(f&o)+8>>1]=1;c[(f&p)+32>>2]=0;Xg(f,d,-1,2,0)|0}e=Sg(f,1)|0;if(!e)e=7;else e=(ff(e)|0)&255;Mh(f)}return e|0}function hf(){return 8632}function jf(){return 10768}function kf(){return 3008009}function lf(){return 0}function mf(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;f=i;i=i+32|0;if((i|0)>=(j|0))fa();d=f;e=f+8|0;if(!(c[2243]|0)){c[(e&p)>>2]=b;do switch(a|0){case 22:{c[(e&p)>>2]=(c[(e&p)>>2]|0)+8;c[(e&p)>>2]=(c[(e&p)>>2]|0)+8;c[2230]=0;c[2231]=0;c[2232]=0;c[2233]=0;d=0;break}case 25:{a=c[(e&p)>>2]|0;d=c[(a&p)>>2]|0;c[(e&p)>>2]=a+4;c[2242]=d;d=0;break}case 19:{if(!(c[2214]|0)){c[(d&p)>>2]=16440;mf(18,d)|0}a=c[(e&p)>>2]|0;d=c[(a&p)>>2]|0;c[(e&p)>>2]=a+4;d=d+0|0;a=8848|0;e=d+52|0;do{c[(d&p)>>2]=c[(a&p)>>2];d=d+4|0;a=a+4|0}while((d|0)<(e|0));d=0;break}case 18:{d=c[(e&p)>>2]|0;a=c[(d&p)>>2]|0;c[(e&p)>>2]=d+4;d=8848|0;a=a+0|0;e=d+52|0;do{c[(d&p)>>2]=c[(a&p)>>2];d=d+4|0;a=a+4|0}while((d|0)<(e|0));d=0;break}case 20:{a=c[(e&p)>>2]|0;d=c[(a&p)>>2]|0;c[(e&p)>>2]=a+4;c[2190]=d;d=0;break}case 13:{d=c[(e&p)>>2]|0;a=c[(d&p)>>2]|0;c[(e&p)>>2]=d+4;c[2193]=a;a=c[(e&p)>>2]|0;d=c[(a&p)>>2]|0;c[(e&p)>>2]=a+4;c[2194]=d;d=0;break}case 17:{a=c[(e&p)>>2]|0;d=c[(a&p)>>2]|0;c[(e&p)>>2]=a+4;c[2189]=d;d=0;break}case 15:{d=1;break}case 6:{a=c[(e&p)>>2]|0;d=c[(a&p)>>2]|0;c[(e&p)>>2]=a+4;c[2234]=d;d=c[(e&p)>>2]|0;a=c[(d&p)>>2]|0;c[(e&p)>>2]=d+4;c[2235]=a;a=c[(e&p)>>2]|0;d=c[(a&p)>>2]|0;c[(e&p)>>2]=a+4;c[2236]=d;d=0;break}case 24:{a=c[(e&p)>>2]|0;d=c[(a&p)>>2]|0;c[(e&p)>>2]=a+4;c[(d&p)>>2]=152;d=0;break}case 9:{a=c[(e&p)>>2]|0;d=c[(a&p)>>2]|0;c[(e&p)>>2]=a+4;c[2186]=d;d=0;break}case 7:{a=c[(e&p)>>2]|0;d=c[(a&p)>>2]|0;c[(e&p)>>2]=a+4;c[2237]=d;d=c[(e&p)>>2]|0;a=c[(d&p)>>2]|0;c[(e&p)>>2]=d+4;c[2238]=a;a=c[(e&p)>>2]|0;d=c[(a&p)>>2]|0;c[(e&p)>>2]=a+4;c[2239]=d;d=0;break}case 4:{a=c[(e&p)>>2]|0;d=c[(a&p)>>2]|0;c[(e&p)>>2]=a+4;c[2195]=c[(d&p)>>2];c[2196]=c[(d&p)+4>>2];c[2197]=c[(d&p)+8>>2];c[2198]=c[(d&p)+12>>2];c[2199]=c[(d&p)+16>>2];c[2200]=c[(d&p)+20>>2];c[2201]=c[(d&p)+24>>2];c[2202]=c[(d&p)+28>>2];d=0;break}case 16:{d=c[(e&p)>>2]|0;a=c[(d&p)>>2]|0;c[(e&p)>>2]=d+4;c[2250]=a;a=c[(e&p)>>2]|0;d=c[(a&p)>>2]|0;c[(e&p)>>2]=a+4;c[2251]=d;d=0;break}case 5:{if(!(c[2195]|0)){c[(d&p)>>2]=16496;mf(4,d)|0}a=c[(e&p)>>2]|0;d=c[(a&p)>>2]|0;c[(e&p)>>2]=a+4;c[(d&p)>>2]=c[2195];c[(d&p)+4>>2]=c[2196];c[(d&p)+8>>2]=c[2197];c[(d&p)+12>>2]=c[2198];c[(d&p)+16>>2]=c[2199];c[(d&p)+20>>2]=c[2200];c[(d&p)+24>>2]=c[2201];c[(d&p)+28>>2]=c[2202];d=0;break}case 14:{d=0;break}default:d=1}while(0)}else{c[(d&p)>>2]=127883;c[(d&p)+4>>2]=10788;bd(21,13648,d);d=21}i=f;return d|0}function nf(a){a=a|0;return c[(a&p)+12>>2]|0}function of(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0;h=a+20|0;b=c[(h&p)>>2]|0;f=(b|0)>0;if(f){e=c[(a&p)+16>>2]|0;g=0;do{d=c[(e+(g<<4)&p)+4>>2]|0;if(d)c[((c[(d&p)+4>>2]|0)&p)+4>>2]=c[(d&p)>>2];g=g+1|0}while((g|0)!=(b|0));if(f){f=a+16|0;e=0;do{d=c[((c[(f&p)>>2]|0)+(e<<4)&p)+4>>2]|0;if(d){cc[c[8896>>2]&31](c[((c[((c[(c[(d&p)+4>>2]&p)>>2]|0)&p)+204>>2]|0)&p)+40>>2]|0);b=c[(h&p)>>2]|0}e=e+1|0}while((e|0)<(b|0))}}return 0}function pf(a,d,e){a=a|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0;l=i;i=i+16|0;if((i|0)>=(j|0))fa();h=l;c[(h&p)>>2]=e;a:do if((d|0)!=1001){e=0;while(1){if((c[(e<<3&p)+10936>>2]|0)==(d|0))break;e=e+1|0;if(e>>>0>=2){f=1;break a}}g=c[(h&p)>>2]|0;d=c[(g&p)>>2]|0;c[(h&p)>>2]=g+4;g=c[(h&p)>>2]|0;k=c[(g&p)>>2]|0;c[(h&p)>>2]=g+4;h=a+24|0;g=c[(h&p)>>2]|0;if((d|0)<=0)if(!d){d=g&~c[(e<<3&p)+10940>>2];c[(h&p)>>2]=d}else d=g;else{d=c[(e<<3&p)+10940>>2]|g;c[(h&p)>>2]=d}if((g|0)!=(d|0)?(f=c[(a&p)+4>>2]|0,(f|0)!=0):0)do{d=f+88|0;b[(d&o)>>1]=b[(d&o)>>1]|8;f=c[(f&p)+52>>2]|0}while((f|0)!=0);if(!k)f=0;else{c[(k&p)>>2]=(c[(e<<3&p)+10940>>2]&c[(h&p)>>2]|0)!=0&1;f=0}}else{g=c[(h&p)>>2]|0;d=c[(g&p)>>2]|0;c[(h&p)>>2]=g+4;g=c[(h&p)>>2]|0;e=c[(g&p)>>2]|0;c[(h&p)>>2]=g+4;g=c[(h&p)>>2]|0;f=c[(g&p)>>2]|0;c[(h&p)>>2]=g+4;f=Nh(a,d,e,f)|0}while(0);i=l;return f|0}function qf(a){a=a|0;a=a+32|0;G=c[(a&p)+4>>2]|0;return c[(a&p)>>2]|0}function rf(a){a=a|0;return c[(a&p)+80>>2]|0}function sf(a){a=a|0;return c[(a&p)+84>>2]|0}function tf(a){a=a|0;return Oh(a,0)|0}function uf(a){a=a|0;return Oh(a,1)|0}function vf(a,b,d){a=a|0;b=b|0;d=d|0;c[(a&p)+444>>2]=b;c[(a&p)+448>>2]=d;c[(a&p)+452>>2]=0;c[(a&p)+492>>2]=0;return 0}function wf(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0;f=(b|0)>0;c[(a&p)+292>>2]=f?d:0;c[(a&p)+300>>2]=f?b:0;c[(a&p)+296>>2]=f?e:0;return}function xf(a,b){a=a|0;b=b|0;var d=0;d=(b|0)>0;c[(a&p)+444>>2]=d?74:0;c[(a&p)+448>>2]=d?a:0;c[(a&p)+452>>2]=0;c[(a&p)+492>>2]=d?b:0;return 0}function yf(a){a=a|0;c[(a&p)+240>>2]=1;return}function zf(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 Og(a,Qh(a,b,c,d,e,f,g,h,0)|0)|0}function Af(b,d,e,f,g,h,i,j,k){b=b|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;var l=0,m=0,o=0;do if(k){l=mh(b,12,0)|0;if(!l){cc[k&31](g);f=1;break}m=l;o=m;a[(o&n)>>0]=0;a[(o&n)+1>>0]=0;a[(o&n)+2>>0]=0;a[(o&n)+3>>0]=0;m=m+4|0;a[(m&n)>>0]=0;a[(m&n)+1>>0]=0;a[(m&n)+2>>0]=0;a[(m&n)+3>>0]=0;c[(l&p)+4>>2]=k;c[(l&p)+8>>2]=g;f=Qh(b,d,e,f,g,h,i,j,l)|0;if(!(c[(l&p)>>2]|0)){cc[k&31](g);mg(b,l)}}else f=Qh(b,d,e,f,g,h,i,j,0)|0;while(0);return Og(b,f)|0}function Bf(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;b=Rh(a,b,-1)|0;d=Qh(a,b,c,d,e,f,g,h,0)|0;mg(a,b);return Og(a,d)|0}function Cf(b,c,d){b=b|0;c=c|0;d=d|0;var e=0;if(!c)e=0;else{e=c;while(1)if(!(a[(e&n)>>0]|0))break;else e=e+1|0;e=e-c&1073741823}if(!(Sh(b,c,e,d,1,0)|0))e=Qh(b,c,d,1,0,57,0,0,0)|0;else e=0;return Og(b,e)|0}function Df(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;f=a+180|0;e=c[(f&p)>>2]|0;c[(a&p)+176>>2]=b;c[(f&p)>>2]=d;return e|0}function Ef(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;f=a+188|0;e=c[(f&p)>>2]|0;c[(a&p)+184>>2]=b;c[(f&p)>>2]=d;return e|0}function Ff(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;f=a+192|0;e=c[(f&p)>>2]|0;c[(a&p)+196>>2]=b;c[(f&p)>>2]=d;return e|0}function Gf(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;f=a+208|0;e=c[(f&p)>>2]|0;c[(a&p)+212>>2]=b;c[(f&p)>>2]=d;return e|0}function Hf(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;f=a+200|0;e=c[(f&p)>>2]|0;c[(a&p)+204>>2]=b;c[(f&p)>>2]=d;return e|0}function If(a,b){a=a|0;b=b|0;var d=0;if((b|0)>0)d=21;else{b=0;d=0}c[(a&p)+216>>2]=d;c[(a&p)+220>>2]=b;return 0}function Jf(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;f=a+220|0;e=c[(f&p)>>2]|0;c[(a&p)+216>>2]=b;c[(f&p)>>2]=d;return e|0}function Kf(d,e,f,g,h){d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var k=0,l=0,m=0,q=0;q=i;i=i+16|0;if((i|0)>=(j|0))fa();k=q;if(g)c[(g&p)>>2]=-1;if(h)c[(h&p)>>2]=-1;if(f>>>0>3)e=21;else{if((e|0)!=0?(a[(e&n)>>0]|0)!=0:0){l=Vh(d,e)|0;if((l|0)<0){c[(k&p)>>2]=e;ug(d,1,10952,k);e=1}else m=10}else{l=10;m=10}do if((m|0)==10){c[(d&p)+452>>2]=0;e=Wh(d,l,f,g,h)|0;c[(d&p)+52>>2]=e;k=c[(d&p)+236>>2]|0;if(k){l=k+8|0;if(!(b[(l&o)>>1]&9312)){b[(l&o)>>1]=1;break}else{vg(k);break}}}while(0);e=Og(d,e)|0}i=q;return e|0}function Lf(a,b){a=a|0;b=b|0;return Kf(a,b,0,0,0)|0}function Mf(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,k=0;k=i;i=i+16|0;if((i|0)>=(j|0))fa();g=k;do if(b){d=c[(b&p)+76>>2]|0;if(!((d|0)==1266094736|(d|0)==-1607883113|(d|0)==-264537850)){c[(g&p)>>2]=15248;bd(21,15256,g);d=11008;break}h=b+65|0;if(!(a[(h&n)>>0]|0)){f=b+236|0;d=Sg(c[(f&p)>>2]|0,2)|0;if(!d){e=c[(b&p)+52>>2]|0;if((e|0)!=516){d=e&255;if(d>>>0>26|(d|0)==2)d=16328;else d=c[(d<<2&p)+15488>>2]|0}else d=16344;ug(b,e,d,g);d=Sg(c[(f&p)>>2]|0,2)|0}a[(h&n)>>0]=0}else d=10976}else d=10976;while(0);i=k;return d|0}function Nf(b){b=b|0;var d=0,e=0,f=0;e=i;i=i+16|0;if((i|0)>=(j|0))fa();d=e;do if(b){f=c[(b&p)+76>>2]|0;if(!((f|0)==1266094736|(f|0)==-1607883113|(f|0)==-264537850)){c[(d&p)>>2]=15248;bd(21,15256,d);c[(d&p)>>2]=129704;c[(d&p)+4>>2]=10788;bd(21,13648,d);b=21;break}if(!(a[(b&n)+65>>0]|0))b=c[(b&p)+56>>2]&c[(b&p)+52>>2];else b=7}else b=7;while(0);i=e;return b|0}function Of(b){b=b|0;var d=0,e=0,f=0;e=i;i=i+16|0;if((i|0)>=(j|0))fa();d=e;do if(b){f=c[(b&p)+76>>2]|0;if(!((f|0)==1266094736|(f|0)==-1607883113|(f|0)==-264537850)){c[(d&p)>>2]=15248;bd(21,15256,d);c[(d&p)>>2]=129713;c[(d&p)+4>>2]=10788;bd(21,13648,d);b=21;break}if(!(a[(b&n)+65>>0]|0))b=c[(b&p)+52>>2]|0;else b=7}else b=7;while(0);i=e;return b|0}function Pf(a){a=a|0;if((a|0)!=516){a=a&255;if(a>>>0>26|(a|0)==2)a=16328;else a=c[(a<<2&p)+15488>>2]|0}else a=16344;return a|0}function Qf(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;if(b>>>0<=11){e=a+(b<<2)+88|0;a=c[(e&p)>>2]|0;if((d|0)>-1){b=c[(b<<2&p)+11088>>2]|0;c[(e&p)>>2]=(b|0)<(d|0)?b:d}}else a=-1;return a|0}function Rf(a,b){a=a|0;b=b|0;return Xh(a,b,6,0)|0}function Sf(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return Xh(a,b,c,d)|0}function Tf(d,e){d=d|0;e=e|0;var f=0,g=0,h=0;c[(e&p)>>2]=0;f=Lc()|0;if(!f){h=qg(40,0)|0;if(h){d=(d|0)==0?11136:d;f=h+0|0;g=f+40|0;do{a[(f&n)>>0]=0;f=f+1|0}while((f|0)<(g|0));b[(h&o)+8>>1]=1;c[(h&p)+32>>2]=0;Xg(h,d,-1,2,0)|0}d=Sg(h,1)|0;if(d){f=Xh(d,e,6,0)|0;if(!f){f=c[(e&p)>>2]|0;d=c[((c[(f&p)+16>>2]|0)&p)+12>>2]|0;if(!(b[(d&o)+78>>1]&1)){a[(f&n)+62>>0]=2;a[(d&n)+77>>0]=2;f=0}else f=0}}else f=7;Mh(h);f=f&255}return f|0}function Uf(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;return Og(a,Yh(a,b,c&255,d,e,0)|0)|0}function Vf(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 Og(a,Yh(a,b,c&255,d,e,f)|0)|0}function Wf(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;b=Rh(a,b,-1)|0;if(!b)b=0;else{c=Yh(a,b,c&255,d,e,0)|0;mg(a,b);b=c}return Og(a,b)|0}function Xf(a,b,d){a=a|0;b=b|0;d=d|0;c[(a&p)+224>>2]=d;c[(a&p)+228>>2]=0;c[(a&p)+232>>2]=b;return 0}function Yf(a,b,d){a=a|0;b=b|0;d=d|0;c[(a&p)+224>>2]=0;c[(a&p)+228>>2]=d;c[(a&p)+232>>2]=b;return 0}function Zf(a){a=a|0;return d[(a&n)+63>>0]|0|0}function _f(){return}function $f(d,e,f,g,h,k,l,m,q){d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;m=m|0;q=q|0;var r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0;C=i;i=i+16|0;if((i|0)>=(j|0))fa();A=C;B=C+8|0;c[(B&p)>>2]=0;s=c[(d&p)+20>>2]|0;if((s|0)>0){r=c[(d&p)+16>>2]|0;u=0;do{t=c[(r+(u<<4)&p)+4>>2]|0;if(t)c[((c[(t&p)+4>>2]|0)&p)+4>>2]=c[(t&p)>>2];u=u+1|0}while((u|0)!=(s|0))}r=Zh(d,B)|0;z=(r|0)!=0;a:do if((!z?(x=_h(d,f,e)|0,(x|0)!=0):0)?(c[(x&p)+12>>2]|0)==0:0){do if(g){w=b[(x&o)+38>>1]|0;b:do if(w<<16>>16>0){e=c[(x&p)+4>>2]|0;s=w<<16>>16;v=0;while(1){t=e+(v*24|0)|0;u=v+1|0;if(!(dd(c[(t&p)>>2]|0,g)|0)){u=v;break b}if((u|0)<(s|0))v=u;else break}}else{u=0;t=0}while(0);if((u|0)==(w<<16>>16|0)){if(a[(x&n)+44>>0]&32){e=0;w=0;x=0;t=0;v=0;u=0;break a}if(!($h(g)|0)){e=0;w=0;x=0;t=0;v=0;u=0;break a}y=b[(x&o)+36>>1]|0;s=y<<16>>16;if(y<<16>>16<=-1){e=0;v=0;s=1;y=0;u=11144;break}u=s;t=(c[(x&p)+4>>2]|0)+(s*24|0)|0}if(t){if((b[(x&o)+36>>1]|0)==(u|0))s=(a[(x&n)+44>>0]&8)!=0;else s=0;e=s&1;v=(a[(t&n)+20>>0]|0)!=0&1;s=a[(t&n)+23>>0]&1;y=c[(t&p)+16>>2]|0;u=c[(t&p)+12>>2]|0}else{e=0;v=0;s=1;y=0;u=11144}}else{e=0;v=0;s=1;y=0;u=11144}while(0);w=v;t=s;v=(y|0)==0?11152:y}else{e=0;w=0;x=0;t=0;v=0;u=0}while(0);if(h)c[(h&p)>>2]=u;if(k)c[(k&p)>>2]=v;if(l)c[(l&p)>>2]=w;if(m)c[(m&p)>>2]=t;if(q)c[(q&p)>>2]=e;s=c[(B&p)>>2]|0;if(!(z|(x|0)!=0)){mg(d,s);c[(A&p)>>2]=f;c[(A&p)+4>>2]=g;s=uh(d,11160,A)|0;c[(B&p)>>2]=s;r=1}c[(A&p)>>2]=s;ug(d,r,(s|0)!=0?10344:0,A);mg(d,c[(B&p)>>2]|0);z=Og(d,r)|0;i=C;return z|0}function ag(a){a=a|0;var b=0;if((Lc()|0)==0?(b=c[2254]|0,(b|0)!=0):0)a=(rc[c[(b&p)+60>>2]&127](b,a*1e3|0)|0)/1e3|0;else a=0;return a|0}function bg(a,b){a=a|0;b=b|0;c[(a&p)+56>>2]=(b|0)!=0?-1:255;return 0}function cg(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;b=ai(a,b)|0;do if(b){a=c[(b&p)+4>>2]|0;c[(a&p)+4>>2]=c[(b&p)>>2];a=c[((c[(a&p)>>2]|0)&p)+60>>2]|0;if((d|0)==7){c[(e&p)>>2]=a;b=0;break}b=c[(a&p)>>2]|0;if(!b)b=12;else b=ac[c[(b&p)+40>>2]&63](a,d,e)|0}else b=1;while(0);return b|0}function dg(e,f){e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0,v=0;t=i;i=i+32|0;if((i|0)>=(j|0))fa();s=t+24|0;h=t+8|0;g=t;c[(h&p)>>2]=f;do switch(e|0){case 11:{g=c[2514]|0;s=c[(h&p)>>2]|0;f=c[(s&p)>>2]|0;c[(h&p)>>2]=s+4;if(f)c[2514]=f;break}case 12:{c[(g&p)>>2]=0;g=c[(g&p)>>2]|0;break}case 13:{s=c[(h&p)>>2]|0;g=c[(s&p)>>2]|0;c[(h&p)>>2]=s+4;break}case 22:{g=10;break}case 5:{kw(12672,9064,259)|0;g=0;break}case 7:{if(!(Lc()|0)){a[9064]=0;g=0}else g=0;break}case 8:{r=c[(h&p)>>2]|0;q=c[(r&p)>>2]|0;c[(h&p)>>2]=r+4;r=c[(h&p)>>2]|0;k=c[(r&p)>>2]|0;c[(h&p)>>2]=r+4;r=qg(512,0)|0;g=(r|0)==0;if(!g){fw(r|0,0,512)|0;c[(r&p)>>2]=q}e=((q+7|0)/8|0)+1|0;m=qg(e,((e|0)<0)<<31>>31)|0;f=(m|0)==0;if(!f)fw(m|0,0,e|0)|0;l=Tc(512)|0;a:do if(!(g|f|(l|0)==0)){h=0;while(1){g=c[(k+(h<<2)&p)>>2]|0;if(!g)break;else if((g|0)==5|(g|0)==2|(g|0)==1){f=k+(h+2<<2)|0;u=c[(f&p)>>2]|0;e=u+-1|0;c[(s&p)>>2]=e;c[(f&p)>>2]=(c[(k+(h+3<<2)&p)>>2]|0)+u;f=4}else{cd(4,s);e=c[(s&p)>>2]|0;f=2}v=k+((h|1)<<2)|0;u=(c[(v&p)>>2]|0)+-1|0;c[(v&p)>>2]=u;h=((u|0)>0?0:f)+h|0;e=(e&2147483647|0)%(q|0)|0;c[(s&p)>>2]=e;e=e+1|0;f=1<<(e&7);if(!(g&1)){e=m+(e>>>3)|0;a[(e&n)>>0]=d[(e&n)>>0]&(f^255);ci(r,(c[(s&p)>>2]|0)+1|0,l);continue}e=m+(e>>>3)|0;a[(e&n)>>0]=d[(e&n)>>0]|f;if((g|0)==5)continue;if(bi(r,(c[(s&p)>>2]|0)+1|0)|0){g=-1;break a}}k=di(r,q+1|0)|0;e=di(r,0)|0;e=k-q+e+(c[(r&p)>>2]|0)|0;c[(s&p)>>2]=1;if((q|0)<1)g=e;else{f=1;while(1){k=(d[(m+(f>>3)&n)>>0]&1<<(f&7)|0)!=0&1;g=f;f=f+1|0;if((k|0)!=(di(r,g)|0))break a;c[(s&p)>>2]=f;if((g|0)>=(q|0)){g=e;break}}}}else g=-1;while(0);Wc(l);Wc(m);ei(r);break}case 6:{kw(9064,12672,259)|0;g=0;break}case 23:{g=(c[2243]|0)==0&1;break}case 25:{q=c[(h&p)>>2]|0;g=c[(q&p)>>2]|0;c[(h&p)>>2]=q+4;q=c[(h&p)>>2]|0;r=c[(q&p)>>2]|0;c[(h&p)>>2]=q+4;a[(g&n)+144>>0]=Vh(g,r)|0;r=c[(h&p)>>2]|0;q=c[(r&p)>>2]|0;c[(h&p)>>2]=r+4;q=q&255;a[(g&n)+147>>0]=q;r=g+145|0;a[(r&n)>>0]=q;q=c[(h&p)>>2]|0;s=c[(q&p)>>2]|0;c[(h&p)>>2]=q+4;c[(g&p)+140>>2]=s;if((a[(r&n)>>0]|0)==0&(s|0)>0){Eg(g);g=0}else g=0;break}case 14:{r=c[(h&p)>>2]|0;s=c[(r&p)>>2]|0;c[(h&p)>>2]=r+4;r=c[(h&p)>>2]|0;g=c[(r&p)>>2]|0;c[(h&p)>>2]=r+4;xg(c[((c[(s&p)+16>>2]|0)&p)+4>>2]|0,0,g,0)|0;g=0;break}case 15:{r=c[(h&p)>>2]|0;g=c[(r&p)>>2]|0;c[(h&p)>>2]=r+4;r=c[(h&p)>>2]|0;s=c[(r&p)>>2]|0;c[(h&p)>>2]=r+4;b[(g&o)+60>>1]=s;g=0;break}case 16:{s=c[(h&p)>>2]|0;e=c[(s&p)>>2]|0;c[(h&p)>>2]=s+4;if(!e)g=0;else{g=e;while(1)if(!(a[(g&n)>>0]|0))break;else g=g+1|0;g=g-e&1073741823}g=(fi(e,g)|0)!=27;g=g?124:0;break}case 24:{r=c[(h&p)>>2]|0;g=c[(r&p)>>2]|0;c[(h&p)>>2]=r+4;r=c[(h&p)>>2]|0;s=c[(r&p)>>2]|0;c[(h&p)>>2]=r+4;c[(g&p)+136>>2]=s;g=0;break}case 17:{s=c[(h&p)>>2]|0;f=c[(s&p)>>2]|0;c[(h&p)>>2]=s+4;s=c[(h&p)>>2]|0;g=c[(s&p)>>2]|0;c[(h&p)>>2]=s+4;s=c[(h&p)>>2]|0;e=c[(s&p)>>2]|0;c[(h&p)>>2]=s+4;if(f)c[(g&p)>>2]=gi(f)|0;hi(e);g=0;break}case 18:{s=c[(h&p)>>2]|0;g=c[(s&p)>>2]|0;c[(h&p)>>2]=s+4;c[2253]=g;g=0;break}case 20:{s=c[(h&p)>>2]|0;g=c[(s&p)>>2]|0;c[(h&p)>>2]=s+4;c[2192]=g;g=0;break}case 9:{s=c[(h&p)>>2]|0;g=c[(s&p)>>2]|0;c[(h&p)>>2]=s+4;c[2252]=g;if(!g)g=0;else g=lc[g&127](0)|0;break}case 10:{r=c[(h&p)>>2]|0;s=c[(r&p)>>2]|0;c[(h&p)>>2]=r+4;r=c[(h&p)>>2]|0;g=c[(r&p)>>2]|0;c[(h&p)>>2]=r+4;c[3164]=s;c[3166]=g;g=0;break}default:g=0}while(0);i=t;return g|0}function eg(b,c){b=b|0;c=c|0;var d=0,e=0,f=0,g=0;a:do if(!((b|0)==0|(c|0)==0)){d=b;while(1)if(!(a[(d&n)>>0]|0))break;else d=d+1|0;e=(d-b&1073741823)+1|0;d=a[(b+e&n)>>0]|0;if(d<<24>>24){g=b+e|0;while(1){f=_v(g,c)|0;e=g;while(1){b=e+1|0;if(!(d<<24>>24))break;d=a[(b&n)>>0]|0;e=b}b=e-g&1073741823;d=g+(b+1)|0;if(!f)break a;else e=d;while(1)if(!(a[(e&n)>>0]|0))break;else e=e+1|0;g=g+(b+2+(e-d&1073741823))|0;d=a[(g&n)>>0]|0;if(!(d<<24>>24)){d=0;break}}}else d=0}else d=0;while(0);return d|0}function fg(a,b,c){a=a|0;b=b|0;c=c|0;a=eg(a,b)|0;b=(c|0)!=0;if(a)b=(ii(a,1,b&1)|0)<<24>>24!=0;return b&1|0}function gg(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+16|0;if((i|0)>=(j|0))fa();f=g;a=eg(a,b)|0;if(!a){G=e;i=g;return d|0}else{b=(ji(a,f)|0)==0;a=f;G=b?c[(a&p)+4>>2]|0:e;i=g;return (b?c[(a&p)>>2]|0:d)|0}return 0}function hg(b,d){b=b|0;d=d|0;b=ai(b,d)|0;if(b){b=c[(c[(b&p)+4>>2]&p)>>2]|0;if(!(a[(b&n)+15>>0]|0))b=c[(b&p)+168>>2]|0;else b=10360}else b=0;return b|0}function ig(a,d){a=a|0;d=d|0;a=ai(a,d)|0;if(!a)a=-1;else a=b[((c[(a&p)+4>>2]|0)&o)+22>>1]&1;return a|0}function jg(a,b){a=a|0;b=b|0;if(b){Fk(a,c[(b&p)+28>>2]|0);mg(a,c[(b&p)>>2]|0);mg(a,c[(b&p)+4>>2]|0);Gk(a,c[(b&p)+12>>2]|0);Hk(a,c[(b&p)+16>>2]|0);mg(a,b)}return}function kg(a,d){a=a|0;d=d|0;var e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;do if(d){h=(a|0)!=0;if(!(h?(c[(a&p)+520>>2]|0)!=0:0))e=4;if((e|0)==4?(f=d+40|0,e=(b[(f&o)>>1]|0)+-1<<16>>16,b[(f&o)>>1]=e,e<<16>>16!=0):0)break;e=c[(d&p)+8>>2]|0;if(e){g=a+520|0;do{f=e;e=c[(e&p)+20>>2]|0;if(!(h?(c[(g&p)>>2]|0)!=0:0))Ik((c[(f&p)+24>>2]|0)+24|0,c[(f&p)>>2]|0,0)|0;Jk(a,f)}while((e|0)!=0)}e=c[(d&p)+16>>2]|0;if(e){j=(a|0)==0;k=d+68|0;l=a+520|0;do{if(!(!j?(c[(l&p)>>2]|0)!=0:0)){f=e+16|0;i=c[(f&p)>>2]|0;h=e+12|0;g=c[(h&p)>>2]|0;if(!i)Ik((c[(k&p)>>2]|0)+56|0,c[(((g|0)==0?e:g)&p)+8>>2]|0,g)|0;else c[(i&p)+12>>2]=g;h=c[(h&p)>>2]|0;if(h)c[(h&p)+16>>2]=c[(f&p)>>2]}Kk(a,c[(e&p)+28>>2]|0);Kk(a,c[(e&p)+32>>2]|0);f=e;e=c[(e&p)+4>>2]|0;mg(a,f)}while((e|0)!=0)}Lk(a,d);mg(a,c[(d&p)>>2]|0);mg(a,c[(d&p)+20>>2]|0);Mk(a,c[(d&p)+12>>2]|0,1);Nk(a,c[(d&p)+24>>2]|0);if(!((a|0)!=0?(c[(a&p)+520>>2]|0)!=0:0))Ok(0,d)|0;h=d+56|0;e=c[(h&p)>>2]|0;if(e){i=d+52|0;f=c[(i&p)>>2]|0;if((f|0)>0){g=0;do{if((g|0)!=1){mg(a,c[((c[(h&p)>>2]|0)+(g<<2)&p)>>2]|0);f=c[(i&p)>>2]|0}g=g+1|0}while((g|0)<(f|0));e=c[(h&p)>>2]|0}mg(a,e)}mg(a,d)}while(0);return}function lg(a,d){a=a|0;d=d|0;var f=0,g=0,h=0;ch(c[(d&p)+60>>2]|0,b[(d&o)+68>>1]|0);h=d+16|0;ch(c[(h&p)>>2]|0,e[(d&o)+84>>1]<<1);f=c[(d&p)+192>>2]|0;if(f)do{g=f;f=c[(f&p)+24>>2]|0;Pk(a,c[(g&p)>>2]|0,c[(g&p)+4>>2]|0);mg(a,g)}while((f|0)!=0);f=b[(d&o)+70>>1]|0;if(f<<16>>16>0){g=d+64|0;f=f<<16>>16;do{f=f+-1|0;mg(a,c[((c[(g&p)>>2]|0)+(f<<2)&p)>>2]|0)}while((f|0)>0)}Pk(a,c[(d&p)+4>>2]|0,c[(d&p)+32>>2]|0);mg(a,c[(h&p)>>2]|0);mg(a,c[(d&p)+168>>2]|0);mg(a,c[(d&p)+172>>2]|0);return}function mg(a,b){a=a|0;b=b|0;var d=0;do if(b){if(a){if(c[(a&p)+520>>2]|0){Qk(a,b);break}if((c[(a&p)+276>>2]|0)>>>0<=b>>>0?(c[(a&p)+280>>2]|0)>>>0>b>>>0:0){d=a+272|0;c[(b&p)>>2]=c[(d&p)>>2];c[(d&p)>>2]=b;a=a+252|0;c[(a&p)>>2]=(c[(a&p)>>2]|0)+-1;break}}Wc(b)}while(0);return}function ng(b,e){b=b|0;e=e|0;var f=0,g=0,h=0;h=c[(e&p)+24>>2]|0;if(!h)f=0;else{f=h;while(1)if(!(a[(f&n)>>0]|0))break;else f=f+1|0;f=f-h&1073741823}g=(((d[((d[(h&n)>>0]|0)&n)+9328>>0]|0)+f|0)>>>0)%23|0;f=Rk(b,g,h,f)|0;if(!f){c[(e&p)+8>>2]=0;f=b+(g<<2)|0;c[(e&p)+28>>2]=c[(f&p)>>2];c[(f&p)>>2]=e}else{f=f+8|0;c[(e&p)+8>>2]=c[(f&p)>>2];c[(f&p)>>2]=e}return}function og(a){a=a|0;var b=0,d=0;do if(a){b=c[2254]|0;if((b|0)==(a|0)){c[2254]=c[(a&p)+12>>2];break}if(b){do{d=b+12|0;b=c[(d&p)>>2]|0}while((b|0)!=(a|0)&(b|0)!=0);if((b|0)==(a|0))c[(d&p)>>2]=c[(a&p)+12>>2]}}while(0);return}function pg(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return}function qg(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;b=jw(a|0,b|0,-1,-1)|0;d=G;do if(!(d>>>0>0|(d|0)==0&b>>>0>2147483390)){if(!(c[2186]|0)){b=lc[c[8780>>2]&127](a)|0;break}d=lc[c[8796>>2]&127](a)|0;c[2171]=a;if((c[2181]|0)>>>0>>0)c[2181]=a;a=c[2260]|0;do if(a){b=c[2166]|0;e=9032|0;e=dw(c[(e&p)>>2]|0,c[(e&p)+4>>2]|0,d|0,((d|0)<0)<<31>>31|0)|0;f=G;if(0<(f|0)|0==(f|0)&b>>>0>>0){c[2265]=0;break}else{c[2265]=1;e=c[2261]|0;c[2260]=0;qc[a&15](e,b,0,d);c[2260]=a;c[2261]=e;break}}while(0);b=lc[c[8780>>2]&127](d)|0;if(b){a=lc[c[8792>>2]&127](b)|0;a=(c[2166]|0)+a|0;c[2166]=a;if(a>>>0>(c[2176]|0)>>>0)c[2176]=a;a=(c[2175]|0)+1|0;c[2175]=a;if(a>>>0>(c[2185]|0)>>>0)c[2185]=a}else b=0}else b=0;while(0);return b|0}function rg(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,i=0,j=0;do if(a){if((b|0)==0&(d|0)==0){Wc(a);e=0;break}if(!(d>>>0>0|(d|0)==0&b>>>0>2147483391)){h=lc[c[8792>>2]&127](a)|0;g=lc[c[8796>>2]&127](b)|0;if((g|0)!=(h|0)){if(!(c[2186]|0)){e=rc[c[8788>>2]&127](a,g)|0;break}c[2171]=b;if((c[2181]|0)>>>0>>0)c[2181]=b;d=g-h|0;e=c[2166]|0;i=9032|0;i=dw(c[(i&p)>>2]|0,c[(i&p)+4>>2]|0,d|0,((d|0)<0)<<31>>31|0)|0;j=G;if(!(0<(j|0)|0==(j|0)&e>>>0>>0)?(f=c[2260]|0,(f|0)!=0):0){i=c[2261]|0;c[2260]=0;qc[f&15](i,e,0,d);c[2260]=f;c[2261]=i}e=rc[c[8788>>2]&127](a,g)|0;d=c[2260]|0;if((e|0)==0&(d|0)!=0){f=c[2166]|0;e=c[2261]|0;c[2260]=0;qc[d&15](e,f,0,b);c[2260]=d;c[2261]=e;e=rc[c[8788>>2]&127](a,g)|0}if(e){d=(lc[c[8792>>2]&127](e)|0)-h|0;d=(c[2166]|0)+d|0;c[2166]=d;if(d>>>0>(c[2176]|0)>>>0)c[2176]=d}else e=0}else e=a}else e=0}else e=qg(b,d)|0;while(0);return e|0}function sg(b,e,f,g){b=b|0;e=e|0;f=f|0;g=g|0;var l=0,m=0,o=0,r=0,s=0,t=0.0,u=0.0,v=0,w=0.0,x=0.0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=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;$=i;i=i+96|0;if((i|0)>=(j|0))fa();Z=$+8|0;_=$;Y=$+16|0;if(!e){l=0;m=0;T=0}else{l=e&2;if(!l)m=0;else{J=c[(g&p)>>2]|0;m=c[(J&p)>>2]|0;c[(g&p)>>2]=J+4}l=l&255;T=(e&1|0)!=0}S=l<<24>>24==0;P=l<<24>>24!=0;Q=m+4|0;R=m+8|0;O=b+12|0;l=0;a:while(1){e=a[(f&n)>>0]|0;if(e<<24>>24==37){e=f;f=l}else if(e<<24>>24){e=f;do{e=e+1|0;J=a[(e&n)>>0]|0}while(!(J<<24>>24==37|J<<24>>24==0));Sk(b,f,e-f|0);if(!(a[(e&n)>>0]|0))break}else break;l=e+1|0;o=a[(l&n)>>0]|0;if(!(o<<24>>24)){U=10;break}r=o<<24>>24;v=0;s=0;y=0;o=0;A=0;B=0;b:while(1){switch(r|0){case 43:{z=s;A=1;break}case 32:{z=s;y=1;break}case 35:{v=1;z=s;break}case 33:{z=1;break}case 48:{z=s;B=1;break}case 45:{z=s;o=1;break}default:{C=v;z=s;break b}}s=e+2|0;J=a[(s&n)>>0]|0;r=J<<24>>24;if(!(J<<24>>24)){l=s;C=v;break}else{e=l;l=s;s=z}}if((r|0)!=42)if((r+-48|0)>>>0<10){s=0;do{s=r+-48+(s*10|0)|0;l=l+1|0;r=a[(l&n)>>0]|0}while((r+-48|0)>>>0<10);N=o;M=s&2147483647}else{N=o;M=0}else{if(S){J=c[(g&p)>>2]|0;s=c[(J&p)>>2]|0;c[(g&p)>>2]=J+4}else s=Tk(m)|0;if((s|0)<0){o=1;s=(s|0)==-2147483648?0:0-s|0}r=l+1|0;l=r;r=a[(r&n)>>0]|0;N=o;M=s}do if((r|0)==46){s=l+1|0;o=a[(s&n)>>0]|0;if(o<<24>>24!=42){r=o<<24>>24;if((o+-48&255)<10)o=0;else{l=s;F=0;break}while(1){o=r+-48+(o*10|0)|0;l=l+2|0;J=a[(l&n)>>0]|0;r=J<<24>>24;if((J+-48&255)<10){J=s;s=l;l=J}else break}F=o&2147483647;break}if(S){J=c[(g&p)>>2]|0;s=c[(J&p)>>2]|0;c[(g&p)>>2]=J+4}else s=Tk(m)|0;l=l+2|0;r=a[(l&n)>>0]|0;if((s|0)<0)F=(s|0)==-2147483648?-1:0-s|0;else F=s}else F=-1;while(0);do if((r|0)==108){s=l+1|0;r=a[(s&n)>>0]|0;if(r<<24>>24==108){r=l+2|0;l=r;r=a[(r&n)>>0]|0;s=1;break}else{l=s;r=r<<24>>24;s=0;break}}else s=0;while(0);v=0;while(1){o=48752+(v*6|0)|0;if((r|0)==(a[(o&n)>>0]|0)){r=o;o=v;U=46;break}v=v+1|0;if((v|0)>=23){L=48752;J=0;break}}if((U|0)==46){U=0;if(!(T|o>>>0<20))break;L=r;J=a[((o*6|0)&n)+48755>>0]|0}c:do switch(J&255|0){case 13:{s=c[(g&p)>>2]|0;e=c[(s&p)>>2]|0;c[(g&p)>>2]=s+4;s=c[(g&p)>>2]|0;r=c[(s&p)>>2]|0;c[(g&p)>>2]=s+4;s=c[(e+(r*72|0)&p)+12>>2]|0;if(s){o=s;while(1)if(!(a[(o&n)>>0]|0))break;else o=o+1|0;Sk(b,s,o-s&1073741823);Sk(b,28928,1)}o=c[(e+(r*72|0)&p)+16>>2]|0;if(!o)e=0;else{e=o;while(1)if(!(a[(e&n)>>0]|0))break;else e=e+1|0;e=e-o&1073741823}Sk(b,o,e);y=f;r=0;e=0;s=0;break}case 14:{s=0;U=50;break}case 1:case 16:{U=50;break}case 4:case 3:case 2:{do if(!S){s=c[(Q&p)>>2]|0;if((c[(m&p)>>2]|0)>(s|0)){c[(Q&p)>>2]=s+1;t=+Ug(c[((c[(R&p)>>2]|0)+(s<<2)&p)>>2]|0);U=92;break}else{s=(F|0)<0?6:F;t=0.0;U=94;break}}else{U=c[(g&p)>>2]|0;c[(k&p)>>2]=c[(U&p)>>2];c[(k&p)+4>>2]=c[(U&p)+4>>2];t=+h[(k&q)>>3];c[(g&p)>>2]=U+8;U=92}while(0);if((U|0)==92){U=0;s=(F|0)<0?6:F;if(t<0.0){t=-t;K=45}else U=94}if((U|0)==94){U=0;if(!(A<<24>>24))K=y<<24>>24==0?0:32;else K=43}F=J<<24>>24==4;o=((F&(s|0)>0)<<31>>31)+s|0;s=o&4095;if(!s)u=.5;else{u=.5;do{s=s+-1|0;u=u*.1}while((s|0)>0)}E=J<<24>>24==2;if(E)t=t+u;h[(Z&q)>>3]=t;h[(_&q)>>3]=+h[(Z&q)>>3];if(+h[(Z&q)>>3]!=+h[(_&q)>>3]){y=48960;r=3;e=M;s=0}else{if(t>0.0){v=0;w=1.0;while(1){x=w*1.e+100;if(t>=x&(v|0)<351){v=v+100|0;w=x}else break}while(1){x=w*1.e+64;if(t>=x&(v|0)<351){v=v+64|0;w=x}else break}while(1){x=w*1.0e8;if(t>=x&(v|0)<351){v=v+8|0;w=x}else break}while(1){x=w*10.0;if((v|0)<351&t>=x){v=v+1|0;w=x}else break}t=t/w;if(t<1.0e-08)do{t=t*1.0e8;v=v+-8|0}while(t<1.0e-08);if(t<1.0)do{t=t*10.0;v=v+-1|0}while(t<1.0);if((v|0)>350){if(K<<24>>24==43)o=48976;else if(K<<24>>24==45)o=48968;else o=48984;f=o;while(1)if(!(a[(f&n)>>0]|0))break;else f=f+1|0;y=o;r=f-o&1073741823;e=M;s=0;break c}}else v=0;if(!E){t=u+t;if(!(t>=10.0))I=v;else{t=t*.1;I=v+1|0}}else I=v;if(F){s=(I|0)<-4|(o|0)<(I|0);F=C<<24>>24==0&1;o=o-(s?0:I)|0;s=s?3:2}else{F=z;s=J}H=s<<24>>24==3;f=H?0:I;v=(f|0)>0;s=jw(o|0,((o|0)<0)<<31>>31|0,M|0,((M|0)<0)<<31>>31|0)|0;v=jw(s|0,G|0,(v?f:0)|0,(v?((f|0)<0)<<31>>31:0)|0)|0;s=G;if((s|0)>0|(s|0)==0&v>>>0>55){v=jw(v|0,s|0,15,0)|0;v=qg(v,G)|0;if(!v){U=124;break a}else{y=v;J=v}}else{y=Y;J=0}v=((z&255)*10|0)+16|0;D=(z|C)&255|(o|0)>0;if(!(K<<24>>24))E=y;else{a[(y&n)>>0]=K;E=y+1|0}if((f|0)<0){a[(E&n)>>0]=48;e=2;s=E+1|0;A=f}else{C=~f;C=(C|0)>-1?C:-1;A=-2-C|0;C=f+C|0;r=E;while(1){if((v|0)<1)e=48;else{s=~~t;e=s+48&255;t=(t-+(s|0))*10.0;v=v+-1|0}a[(r&n)>>0]=e;if((f|0)>0){r=r+1|0;f=f+-1|0}else break}e=C+3|0;s=E+(C+2)|0}r=(D|0)==0;if(!r){a[(s&n)>>0]=46;s=E+e|0}if((A+1|0)<0){fw(s|0,48,~A|0)|0;s=s+~A|0;o=o+1+A|0}if((o|0)>0){e=s;f=o;while(1){f=f+-1|0;if((v|0)<1)A=48;else{E=~~t;A=E+48&255;t=(t-+(E|0))*10.0;v=v+-1|0}a[(e&n)>>0]=A;if((f|0)<=0)break;else e=e+1|0}s=s+o|0}d:do if(!(F<<24>>24==0|r)){while(1){r=s+-1|0;o=a[(r&n)>>0]|0;if(o<<24>>24==46)break;else if(o<<24>>24!=48)break d;a[(r&n)>>0]=0;s=r}if(!(z<<24>>24)){a[(r&n)>>0]=0;s=r;break}else{a[(s&n)>>0]=48;s=s+1|0;break}}while(0);if(H){r=s+1|0;a[(s&n)>>0]=a[((d[(L&n)+4>>0]|0)&n)+48912>>0]|0;o=s+2|0;if((I|0)<0){a[(r&n)>>0]=45;r=0-I|0}else{a[(r&n)>>0]=43;r=I}if((r|0)>99){a[(o&n)>>0]=((r|0)/100|0)+48;f=4;e=5;o=s+3|0;r=(r|0)%100|0}else{f=3;e=4}a[(o&n)>>0]=((r|0)/10|0)+48;a[(s+f&n)>>0]=((r|0)%10|0)+48;s=s+e|0}a[(s&n)>>0]=0;e=y;r=s-e|0;if(!(N<<24>>24==0&B<<24>>24!=0&(M|0)>(r|0))){e=M;s=J;break c}o=M-r|0;if((r|0)>=0){f=M;while(1){a[(y+f&n)>>0]=a[(y+(f-o)&n)>>0]|0;if((f|0)>(o|0))f=f+-1|0;else break}}if((M|0)==(r|0)){r=M;e=M;s=J;break c}fw(y+(K<<24>>24!=0&1)|0,48,M+e-s|0)|0;r=M;e=M;s=J}break}case 5:{if(S){r=c[(O&p)>>2]|0;e=c[(g&p)>>2]|0;y=c[(e&p)>>2]|0;c[(g&p)>>2]=e+4;c[(y&p)>>2]=r;y=f;r=0;e=0;s=0}else{y=f;r=0;e=0;s=0}break}case 8:{a[(Y&n)>>0]=37;y=Y;r=1;e=M;s=0;break}case 9:{if(!S){e=Uk(m)|0;if(!e)s=0;else s=a[(e&n)>>0]|0}else{J=c[(g&p)>>2]|0;s=c[(J&p)>>2]|0;c[(g&p)>>2]=J+4}if((F|0)>1){o=F+-1|0;e=M-o|0;if(!((e|0)<2|N<<24>>24!=0)){Vk(b,e+-1|0,32);e=0}f=s&255;Vk(b,o,f)}else{f=s&255;e=M}a[(Y&n)>>0]=f;y=Y;r=1;s=0;break}case 7:case 6:{if(P)o=Uk(m)|0;else{I=c[(g&p)>>2]|0;o=c[(I&p)>>2]|0;c[(g&p)>>2]=I+4}if(!o){f=10360;s=0}else{f=o;s=J<<24>>24!=7|P?0:o}if((F|0)>-1){if((F|0)>0)o=0;else{y=f;r=0;e=M;break c}while(1){r=o+1|0;if(!(a[(f+o&n)>>0]|0)){y=f;r=o;e=M;break c}if((r|0)<(F|0))o=r;else{y=f;e=M;break}}}else{if(!f){y=0;r=0;e=M;break c}else o=f;while(1)if(!(a[(o&n)>>0]|0))break;else o=o+1|0;y=f;r=o-f&1073741823;e=M;break c}break}case 15:case 11:case 10:{C=J<<24>>24==15?34:39;if(S){I=c[(g&p)>>2]|0;s=c[(I&p)>>2]|0;c[(g&p)>>2]=I+4}else s=Uk(m)|0;y=(s|0)==0;if(y)s=J<<24>>24==11?20304:48992;e:do if(!F){B=0;r=0}else{v=C&255;o=0;e=F;r=0;while(1){f=a[(s+o&n)>>0]|0;if(!(f<<24>>24)){B=o;break e}r=((f<<24>>24|0)==(v|0)&1)+r|0;o=o+1|0;e=e+-1|0;if(!e){B=o;break}}}while(0);z=J<<24>>24==11&(y^1);o=((z&1)<<1|1)+B+r|0;if((o|0)>70){r=qg(o,((o|0)<0)<<31>>31)|0;if(!r){U=197;break a}else{y=r;A=r}}else{y=Y;A=0}if(z){a[(y&n)>>0]=C;o=1}else o=0;if((B|0)>0){v=C&255;e=0;do{r=a[(s+e&n)>>0]|0;f=o+1|0;a[(y+o&n)>>0]=r;if((r<<24>>24|0)==(v|0)){a[(y+f&n)>>0]=r;o=o+2|0}else o=f;e=e+1|0}while((e|0)!=(B|0))}if(z){a[(y+o&n)>>0]=C;o=o+1|0}a[(y+o&n)>>0]=0;r=o;e=M;s=A;break}case 12:{J=c[(g&p)>>2]|0;e=c[(J&p)>>2]|0;c[(g&p)>>2]=J+4;if((e|0)!=0?(X=c[(e&p)+4>>2]|0,(X|0)!=0):0){Sk(b,c[(e&p)>>2]|0,X);y=f;r=0;e=0;s=0}else{y=f;r=0;e=0;s=0}break}default:break a}while(0);if((U|0)==50){U=0;do if(!(a[(L&n)+2>>0]&1)){if(P){f=Tk(m)|0;v=G;E=0;break}if(!(s<<24>>24)){v=c[(g&p)>>2]|0;f=c[(v&p)>>2]|0;c[(g&p)>>2]=v+4;v=0;E=0;break}else{E=c[(g&p)>>2]|0;v=E;f=c[(v&p)>>2]|0;v=c[(v&p)+4>>2]|0;c[(g&p)>>2]=E+8;E=0;break}}else{do if(!P)if(!(s<<24>>24)){r=c[(g&p)>>2]|0;s=c[(r&p)>>2]|0;c[(g&p)>>2]=r+4;r=((s|0)<0)<<31>>31;break}else{I=c[(g&p)>>2]|0;r=I;s=c[(r&p)>>2]|0;r=c[(r&p)+4>>2]|0;c[(g&p)>>2]=I+8;break}else{s=Tk(m)|0;r=G}while(0);if((r|0)<0){f=dw(0,0,s|0,r|0)|0;v=G;E=45;break}if(!(A<<24>>24)){f=s;v=r;E=y<<24>>24==0?0:32}else{f=s;v=r;E=43}}while(0);D=(f|0)==0&(v|0)==0;if(!(B<<24>>24))A=F;else{A=M-(E<<24>>24!=0&1)|0;A=(F|0)<(A|0)?A:F}if((A|0)>=60){s=A+10|0;r=qg(s,((s|0)<0)<<31>>31)|0;if(!r){U=69;break}else{e=s;s=r;o=r}}else{e=70;s=0;o=Y}B=o+(e+-1)|0;if(J<<24>>24==16){r=uw(f|0,v|0,10,0)|0;if(!(r>>>0<=3?(J=tw(f|0,v|0,10,0)|0,J=uw(J|0,G|0,10,0)|0,!((J|0)==1&(G|0)==0)):0))r=0;J=r<<1;a[(o+e+-2&n)>>0]=a[((J|1)&n)+48896>>0]|0;r=o+(e+-3)|0;a[(r&n)>>0]=a[(J&n)+48896>>0]|0}else r=B;e=d[(L&n)+4>>0]|0;y=d[(L&n)+1>>0]|0;while(1){J=uw(f|0,v|0,y|0,0)|0;o=r+-1|0;a[(o&n)>>0]=a[(J+e&n)+48912>>0]|0;f=tw(f|0,v|0,y|0,0)|0;v=G;if((f|0)==0&(v|0)==0)break;else r=o}f=A-B+o|0;if((f|0)>0){e=r;r=o;while(1){o=e+-2|0;a[(o&n)>>0]=48;f=f+-1|0;if((f|0)<=0)break;else{e=r;r=o}}}if(E<<24>>24){o=r+-2|0;a[(o&n)>>0]=E}if((!(D|C<<24>>24==0)?(V=a[(L&n)+5>>0]|0,V<<24>>24!=0):0)?(W=48952+(V&255)|0,!(V<<24>>24==3|V<<24>>24==6)):0){f=a[(W&n)>>0]|0;r=W;do{o=o+-1|0;a[(o&n)>>0]=f;r=r+1|0;f=a[(r&n)>>0]|0}while(f<<24>>24!=0)}y=o;r=B-o|0;e=M}o=e-r|0;f=(o|0)<1;if(!(f|N<<24>>24!=0))Vk(b,o,32);Sk(b,y,r);if(!(f|N<<24>>24==0))Vk(b,o,32);if(s)Wc(s);f=l+1|0;l=y}if((U|0)==10)Sk(b,48744,1);else if((U|0)==69){a[(b&n)+25>>0]=1;c[(b&p)+16>>2]=0}else if((U|0)==124){a[(b&n)+25>>0]=1;c[(b&p)+16>>2]=0}else if((U|0)==197){a[(b&n)+25>>0]=1;c[(b&p)+16>>2]=0}i=$;return}function tg(b){b=b|0;var d=0,e=0,f=0,g=0,h=0;f=b+8|0;d=c[(f&p)>>2]|0;do if(((d|0)!=0?(h=b+12|0,a[(d+(c[(h&p)>>2]|0)&n)>>0]=0,e=a[(b&n)+24>>0]|0,e<<24>>24!=0):0)?(g=b+4|0,(c[(f&p)>>2]|0)==(c[(g&p)>>2]|0)):0){if(e<<24>>24==1){d=(c[(h&p)>>2]|0)+1|0;d=mh(c[(b&p)>>2]|0,d,((d|0)<0)<<31>>31)|0}else d=Tc((c[(h&p)>>2]|0)+1|0)|0;c[(f&p)>>2]=d;if(!d){a[(b&n)+25>>0]=1;c[(b&p)+16>>2]=0;break}else{kw(d|0,c[(g&p)>>2]|0,(c[(h&p)>>2]|0)+1|0)|0;break}}while(0);return c[(f&p)>>2]|0}function ug(d,e,f,g){d=d|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,q=0;q=i;i=i+16|0;if((i|0)>=(j|0))fa();m=q;h=d+52|0;c[(h&p)>>2]=e;a:do if(!f){c[(h&p)>>2]=e;e=c[(d&p)+236>>2]|0;if(e){h=e+8|0;if(!(b[(h&o)>>1]&9312)){b[(h&o)>>1]=1;break}else{vg(e);break}}}else{l=d+236|0;do if(!(c[(l&p)>>2]|0)){h=mh(d,40,0)|0;if(!h){c[(l&p)>>2]=h;break a}else{e=h+0|0;k=e+40|0;do{a[(e&n)>>0]=0;e=e+1|0}while((e|0)<(k|0));b[(h&o)+8>>1]=1;c[(h&p)+32>>2]=d;c[(l&p)>>2]=h;break}}while(0);c[(m&p)>>2]=g;h=Wk(d,f,m)|0;e=c[(l&p)>>2]|0;if(e)Xg(e,h,-1,1,75)|0}while(0);i=q;return}function vg(a){a=a|0;var d=0,e=0;e=a+8|0;d=b[(e&o)>>1]|0;if(d&8192){Yk(a,c[(a&p)>>2]|0)|0;d=b[(e&o)>>1]|0}d=d&65535;do if(!(d&1024)){if(d&32){Zk(c[(a&p)>>2]|0);break}if(d&64){a=c[(a&p)>>2]|0;d=(c[(a&p)>>2]|0)+180|0;c[(a&p)+4>>2]=c[(d&p)>>2];c[(d&p)>>2]=a}}else cc[c[(a&p)+36>>2]&31](c[(a&p)+16>>2]|0);while(0);b[(e&o)>>1]=1;return}function wg(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0;k=i;i=i+16|0;if((i|0)>=(j|0))fa();g=k;e=Vh(b,d)|0;do if((e|0)==1){f=mh(a,536,0)|0;if(!f){ug(a,7,15776,g);e=0;break}fw(f|0,0,536)|0;c[(f&p)>>2]=b;if(!(_k(f)|0)){mg(a,c[(f&p)+4>>2]|0);Ch(f);mg(a,f);h=7;break}else{b=c[(f&p)+12>>2]|0;e=f+4|0;c[(g&p)>>2]=c[(e&p)>>2];ug(a,b,10344,g);mg(a,c[(e&p)>>2]|0);Ch(f);mg(a,f);e=0;break}}else h=7;while(0);do if((h|0)==7)if((e|0)<0){c[(g&p)>>2]=d;ug(a,1,47448,g);e=0;break}else{e=c[((c[(b&p)+16>>2]|0)+(e<<4)&p)+4>>2]|0;break}while(0);i=k;return e|0}function xg(a,d,f,g){a=a|0;d=d|0;f=f|0;g=g|0;var h=0,i=0,j=0,k=0;k=c[(a&p)+4>>2]|0;c[(k&p)+4>>2]=c[(a&p)>>2];j=k+22|0;if(!(b[(j&o)>>1]&2)){if((f|0)<0)f=(c[(k&p)+32>>2]|0)-(c[(k&p)+36>>2]|0)|0;if(((d+-512|0)>>>0<65025?(d+-1&d|0)==0:0)?(c[(k&p)+32>>2]=d,h=k+80|0,i=c[(h&p)>>2]|0,(i|0)!=0):0){a=i+-4|0;c[(h&p)>>2]=a;$k(a);c[(h&p)>>2]=0}h=k+32|0;a=al(c[(k&p)>>2]|0,h,f)|0;c[(k&p)+36>>2]=(c[(h&p)>>2]|0)-(f&65535);if(g)b[(j&o)>>1]=e[(j&o)>>1]|0|2}else a=8;return a|0}function yg(f,g){f=f|0;g=g|0;var h=0,k=0,l=0,m=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;T=i;i=i+16|0;if((i|0)>=(j|0))fa();N=T;M=T+12|0;L=T+8|0;R=c[(f&p)+4>>2]|0;I=R+4|0;c[(I&p)>>2]=c[(f&p)>>2];O=f+8|0;l=a[(O&n)>>0]|0;do if(l<<24>>24!=2?(P=(g|0)!=0,l<<24>>24!=1|P):0){Q=R+22|0;l=b[(Q&o)>>1]|0;if(!((l&1)!=0&P)){if(P)if((a[(R&n)+20>>0]|0)!=2&(l&64)==0)S=8;else S=7;else if(!(l&64))S=8;else S=7;a:do if((S|0)==7){h=c[(R&p)+76>>2]|0;S=12}else if(((S|0)==8?(g|0)>1:0)?(k=c[(R&p)+72>>2]|0,(k|0)!=0):0)do{l=c[(k&p)>>2]|0;if((l|0)!=(f|0)){h=l;S=12;break a}k=c[(k&p)+12>>2]|0}while((k|0)!=0);while(0);if((S|0)==12?(c[(h&p)>>2]|0)!=0:0){h=262;break}h=bl(f,1,1)|0;if(!h){l=e[(Q&o)>>1]|0;b[(Q&o)>>1]=l&65527;K=R+44|0;if(!(c[(K&p)>>2]|0))b[(Q&o)>>1]=l|8;E=R+12|0;u=R+32|0;v=R+36|0;w=R+17|0;x=R+18|0;y=R+80|0;z=R+24|0;A=R+26|0;B=R+28|0;C=R+30|0;D=R+21|0;F=R+20|0;G=(g|0)>1;h=0;b:while(1){c:do if(!(c[(E&p)>>2]|0)){h=cl(c[(R&p)>>2]|0)|0;if(!h){h=dl(R,1,M,0)|0;if(!h){t=c[(M&p)>>2]|0;q=c[(t&p)+56>>2]|0;l=d[(q&n)+29>>0]<<16|d[(q&n)+28>>0]<<24|d[(q&n)+30>>0]<<8|d[(q&n)+31>>0];m=c[(R&p)>>2]|0;r=c[(m&p)+24>>2]|0;if((l|0)!=0?(Zv(q+24|0,q+92|0,4)|0)==0:0)s=l;else s=r;d:do if((s|0)>0){e:do if(!(Zv(q,44680,16)|0)){if((d[(q&n)+18>>0]|0)>2)b[(Q&o)>>1]=e[(Q&o)>>1]|1;l=a[(q&n)+19>>0]|0;if((l&255)<=2){do if(l<<24>>24==2){if(b[(Q&o)>>1]&16)break;c[(L&p)>>2]=0;h=el(m,L)|0;if(h){S=48;break e}if(c[(L&p)>>2]|0)break;if(!t){h=0;continue b}Bg(c[(t&p)+68>>2]|0);h=0;continue b}while(0);if(Zv(q+21|0,47408,3)|0){h=26;S=48;break}k=d[(q&n)+17>>0]<<16|d[(q&n)+16>>0]<<8;if((k+16777215&k|0)!=0|k>>>0>65536|k>>>0<257){h=26;S=48;break}m=d[(q&n)+20>>0]|0;l=k-m|0;if((k|0)==(c[(u&p)>>2]|0)){if((s|0)>(r|0)?(c[((c[(I&p)>>2]|0)&p)+24>>2]&65536|0)==0:0){c[(N&p)>>2]=55672;c[(N&p)+4>>2]=10788;bd(11,13600,N);h=11;S=48;break}if(l>>>0<480){h=26;S=48;break}c[(u&p)>>2]=k;c[(v&p)>>2]=l;a[(w&n)>>0]=(d[(q&n)+53>>0]<<16|d[(q&n)+52>>0]<<24|d[(q&n)+54>>0]<<8|d[(q&n)+55>>0]|0)!=0&1;a[(x&n)>>0]=(d[(q&n)+65>>0]<<16|d[(q&n)+64>>0]<<24|d[(q&n)+66>>0]<<8|d[(q&n)+67>>0]|0)!=0&1;break d}if(t)Bg(c[(t&p)+68>>2]|0);c[(v&p)>>2]=l;c[(u&p)>>2]=k;l=c[(y&p)>>2]|0;if(l){h=l+-4|0;c[(y&p)>>2]=h;$k(h);c[(y&p)>>2]=0}h=al(c[(R&p)>>2]|0,u,m)|0}else{h=26;S=48}}else{h=26;S=48}while(0);if((S|0)==48){S=0;if(t)Bg(c[(t&p)+68>>2]|0);c[(E&p)>>2]=0}if(!h){h=0;continue b}else{S=77;break c}}else l=c[(v&p)>>2]|0;while(0);h=((((l<<6)+-768|0)>>>0)/255|0)+65513|0;k=h&65535;b[(z&o)>>1]=k;m=((((l<<5)+-384|0)>>>0)/255|0)+65513&65535;b[(A&o)>>1]=m;b[(B&o)>>1]=l+65501;b[(C&o)>>1]=m;a[(D&n)>>0]=(k&65535)>127?127:h&255;c[(E&p)>>2]=t;c[(K&p)>>2]=s;h=0;continue b}else l=0}else l=0}else{f:do if((h|0)==0&P){if(b[(Q&o)>>1]&1){h=8;S=77;break c}s=c[(R&p)>>2]|0;h=c[(s&p)+40>>2]|0;g:do if(!h){a[(s&n)+21>>0]=(a[((c[(f&p)>>2]|0)&n)+64>>0]|0)==2&1;t=s+16|0;if((a[(t&n)>>0]|0)==1){m=s+208|0;l=c[(m&p)>>2]|0;do if(!l){h=fl(s,2)|0;h:do if((h|0)==0&G){l=s+176|0;k=s+180|0;while(1){h=fl(s,4)|0;if((h|0)!=5)break h;if(!(lc[c[(l&p)>>2]&127](c[(k&p)>>2]|0)|0)){h=5;break g}}}while(0);if(h)break g}else{do if(a[(s&n)+4>>0]|0){if(a[(l&n)+43>>0]|0)break;h=fl(s,4)|0;if(h)break g;l=c[(m&p)>>2]|0;k=l+43|0;if(!(a[(k&n)>>0]|0)){h=c[(l&p)+4>>2]|0;pc[c[((c[(h&p)>>2]|0)&p)+56>>2]&31](h,(b[(l&o)+40>>1]|0)+3|0,1,5)|0;l=c[(m&p)>>2]|0}a[(k&n)>>0]=1}while(0);if(a[(l&n)+46>>0]|0){h=8;break g}k=l+43|0;if((a[(k&n)>>0]|0)==0?(H=c[(l&p)+4>>2]|0,H=pc[c[((c[(H&p)>>2]|0)&p)+56>>2]&31](H,0,1,10)|0,(H|0)!=0):0){h=H;break g}h=l+44|0;a[(h&n)>>0]=1;if(!(Zv(l+52|0,c[(c[(l&p)+32>>2]&p)>>2]|0,48)|0))break;if(!(a[(k&n)>>0]|0)){k=c[(l&p)+4>>2]|0;pc[c[((c[(k&p)>>2]|0)&p)+56>>2]&31](k,0,1,9)|0}a[(h&n)>>0]=0;h=517;break g}while(0);a[(t&n)>>0]=2;h=c[(s&p)+24>>2]|0;c[(s&p)+36>>2]=h;c[(s&p)+32>>2]=h;c[(s&p)+28>>2]=h;h=s+72|0;c[(h&p)>>2]=0;c[(h&p)+4>>2]=0}h=Cg(R)|0;break f}while(0);l=(h|0)==0;break c}while(0);if(!h){h=0;break b}else l=0}while(0);if((S|0)==77){S=0;l=(h|0)==0}if((a[(F&n)>>0]|0)==0?(J=c[(E&p)>>2]|0,(J|0)!=0):0){c[(E&p)>>2]=0;Bg(c[(J&p)+68>>2]|0)}if((h&255|0)!=5){S=86;break}if(a[(F&n)>>0]|0){S=86;break}if(!(gl(R)|0)){S=86;break}}if((S|0)==86)if(!l){S=96;break}if((a[(O&n)>>0]|0)==0?(H=R+40|0,c[(H&p)>>2]=(c[(H&p)>>2]|0)+1,(a[(f&n)+9>>0]|0)!=0):0){a[(f&n)+40>>0]=1;H=R+72|0;c[(f&p)+44>>2]=c[(H&p)>>2];c[(H&p)>>2]=f+32}l=P?2:1;a[(O&n)>>0]=l;if((l&255)>(d[(F&n)>>0]|0))a[(F&n)>>0]=l;if(P){l=c[(E&p)>>2]|0;c[(R&p)+76>>2]=f;k=e[(Q&o)>>1]|0;b[(Q&o)>>1]=G?k|32:k&65503;k=l+56|0;H=c[(k&p)>>2]|0;if((c[(K&p)>>2]|0)!=(d[(H&n)+29>>0]<<16|d[(H&n)+28>>0]<<24|d[(H&n)+30>>0]<<8|d[(H&n)+31>>0]|0)){h=Gg(c[(l&p)+68>>2]|0)|0;if(!h){h=c[(k&p)>>2]|0;S=c[(K&p)>>2]|0;a[(h&n)+28>>0]=S>>>24;a[(h&n)+29>>0]=S>>>16;a[(h&n)+30>>0]=S>>>8;a[(h&n)+31>>0]=S;h=0;S=96}}else S=96}}}else h=8}else{h=0;S=96}while(0);if((S|0)==96)if((h|0)==0&(g|0)!=0)h=hl(c[(R&p)>>2]|0,c[((c[(f&p)>>2]|0)&p)+496>>2]|0)|0;i=T;return h|0}function zg(e,f,g,h){e=e|0;f=f|0;g=g|0;h=h|0;var k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0;y=i;i=i+16|0;if((i|0)>=(j|0))fa();u=y;w=y+8|0;c[(w&p)>>2]=0;t=h&1;a:do if(!f){c[(u&p)>>2]=46865;c[(u&p)+4>>2]=10788;bd(11,13600,u);k=11}else{a[(e&n)+23>>0]=1;h=c[(e&p)+40>>2]|0;do if(!h){s=e+204|0;h=c[(s&p)>>2]|0;h=ac[c[8876>>2]&63](c[(h&p)+40>>2]|0,f,d[(h&n)+29>>0]&3)|0;if(!h){m=c[(s&p)>>2]|0;if((a[(m&n)+29>>0]|0)!=2){l=m+8|0;h=c[(l&p)>>2]|0;b:do if(!h)x=11;else{while(1){if((b[(h&o)+26>>1]|0)==0?(b[(h&o)+24>>1]&4)==0:0)break;h=c[(h&p)+36>>2]|0;if(!h){x=11;break b}}c[(l&p)>>2]=h;r=h;x=14}while(0);c:do if((x|0)==11?(c[(l&p)>>2]=0,q=c[(m&p)+4>>2]|0,(q|0)!=0):0){h=q;do{if(!(b[(h&o)+26>>1]|0)){r=h;x=14;break c}h=c[(h&p)+36>>2]|0}while((h|0)!=0)}while(0);if((x|0)==14?(k=rc[c[(m&p)+32>>2]&127](c[(m&p)+36>>2]|0,r)|0,!((k|0)==0|(k|0)==5)):0)break;k=ac[c[8876>>2]&63](c[(m&p)+40>>2]|0,f,2)|0;if(!k){k=7;break}}else k=0}else k=h;m=il(c[(s&p)>>2]|0,f,k)|0;c[(g&p)>>2]=m;if(!m)k=7;else{h=m+16|0;k=(t|0)!=0;if(!((c[(h&p)>>2]|0)==0|k)){k=e+184|0;c[(k&p)>>2]=(c[(k&p)>>2]|0)+1;k=0;break a}c[(h&p)>>2]=e;do if((f|0)>=0?(v=e+152|0,(((c[2514]|0)/(c[(v&p)>>2]|0)|0)+1|0)!=(f|0)):0){if(((a[(e&n)+15>>0]|0)==0?!((c[(e&p)+24>>2]|0)>>>0>>0|k):0)?(c[(c[(e&p)+60>>2]&p)>>2]|0)!=0:0){k=c[(e&p)+208>>2]|0;if(!k)k=0;else{k=kl(k,f,w)|0;if(k)break;k=c[(w&p)>>2]|0}v=e+188|0;c[(v&p)>>2]=(c[(v&p)>>2]|0)+1;k=ll(m,k)|0;if(!k){k=0;break a}else break}if((c[(e&p)+156>>2]|0)>>>0>>0)k=13;else{if(k){k=c[3164]|0;if(k)nc[k&3]();if((c[(e&p)+28>>2]|0)>>>0>=f>>>0)bi(c[(e&p)+56>>2]|0,f)|0;jl(e,f)|0;k=c[3166]|0;if(k)nc[k&3]()}fw(c[(m&p)+4>>2]|0,0,c[(v&p)>>2]|0)|0;k=0;break a}}else x=21;while(0);if((x|0)==21){c[(u&p)>>2]=46945;c[(u&p)+4>>2]=10788;bd(11,13600,u);k=11}ml(m)}}else k=h;while(0);if((c[(e&p)+120>>2]|0)==0?(c[((c[(e&p)+204>>2]|0)&p)+12>>2]|0)==0:0)nl(e);c[(g&p)>>2]=0}while(0);i=y;return k|0}function Ag(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,o=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0;y=i;i=i+16|0;if((i|0)>=(j|0))fa();x=y;v=b+4|0;r=c[((c[(v&p)>>2]|0)&p)+4>>2]|0;w=c[(r&p)>>2]|0;u=b+24|0;q=c[((c[((c[(u&p)>>2]|0)&p)+4>>2]|0)&p)+32>>2]|0;r=c[(r&p)+32>>2]|0;s=(q|0)<(r|0)?q:r;t=((q|0)<0)<<31>>31;m=sw(q|0,t|0,d|0,0)|0;o=G;if((q|0)==(r|0))b=0;else b=(a[(w&n)+15>>0]|0)==0?0:8;a:do if((b|0)==0&(q|0)>0){d=dw(m|0,o|0,q|0,t|0)|0;l=((r|0)<0)<<31>>31;k=(f|0)==0;h=G;b=r;while(1){c[(x&p)>>2]=0;f=qw(d|0,h|0,r|0,l|0)|0;if((f|0)!=(((c[2514]|0)>>>0)/(b>>>0)|0|0)){b=zg(w,f+1|0,x,0)|0;g=c[(x&p)>>2]|0;if(!b){b=Gg(g)|0;if(!b){z=rw(d|0,h|0,q|0,t|0)|0;f=c[(g&p)+4>>2]|0;b=rw(d|0,h|0,r|0,l|0)|0;kw(f+b|0,e+z|0,s|0)|0;a[(c[(g&p)+8>>2]&n)>>0]=0;if((d|0)==0&(h|0)==0&k){z=c[((c[((c[(u&p)>>2]|0)&p)+4>>2]|0)&p)+44>>2]|0;a[(f+b&n)+28>>0]=z>>>24;a[(f+b&n)+29>>0]=z>>>16;a[(f+b&n)+30>>0]=z>>>8;a[(f+b&n)+31>>0]=z;b=0}else b=0}}if(g)Bg(g)}else b=0;d=jw(d|0,h|0,r|0,l|0)|0;f=G;if(!((b|0)==0&((f|0)<(o|0)|(f|0)==(o|0)&d>>>0>>0)))break a;h=f;b=c[((c[((c[(v&p)>>2]|0)&p)+4>>2]|0)&p)+32>>2]|0}}while(0);i=y;return b|0}function Bg(a){a=a|0;var d=0,e=0,f=0;d=c[(a&p)+16>>2]|0;if(!(b[(a&o)+24>>1]&64)){ol(a);a=c[(d&p)+120>>2]|0}else{f=d+120|0;e=(c[(f&p)>>2]|0)+-1|0;c[(f&p)>>2]=e;f=d+136|0;c[(a&p)+12>>2]=c[(f&p)>>2];c[(f&p)>>2]=a;a=e}if((a|0)==0?(c[((c[(d&p)+204>>2]|0)&p)+12>>2]|0)==0:0)nl(d);return}function Cg(d){d=d|0;var f=0,g=0,h=0,i=0,j=0,k=0;i=d+44|0;if(!(c[(i&p)>>2]|0)){j=c[(d&p)+12>>2]|0;k=c[(j&p)+56>>2]|0;f=Gg(c[(j&p)+68>>2]|0)|0;if(!f){f=k+0|0;g=44680|0;h=f+16|0;do{a[(f&n)>>0]=a[(g&n)>>0]|0;f=f+1|0;g=g+1|0}while((f|0)<(h|0));f=d+32|0;a[(k&n)+16>>0]=(c[(f&p)>>2]|0)>>>8;a[(k&n)+17>>0]=(c[(f&p)>>2]|0)>>>16;a[(k&n)+18>>0]=1;a[(k&n)+19>>0]=1;a[(k&n)+20>>0]=(c[(f&p)>>2]|0)-(c[(d&p)+36>>2]|0);a[(k&n)+21>>0]=64;a[(k&n)+22>>0]=32;a[(k&n)+23>>0]=32;f=k+24|0;h=f+76|0;do{a[(f&n)>>0]=0;f=f+1|0}while((f|0)<(h|0));pl(j,13);f=d+22|0;b[(f&o)>>1]=e[(f&o)>>1]|0|2;f=a[(d&n)+17>>0]|0;a[(k&n)+52>>0]=0;a[(k&n)+53>>0]=0;a[(k&n)+54>>0]=0;a[(k&n)+55>>0]=f;f=a[(d&n)+18>>0]|0;a[(k&n)+64>>0]=0;a[(k&n)+65>>0]=0;a[(k&n)+66>>0]=0;a[(k&n)+67>>0]=f;c[(i&p)>>2]=1;a[(k&n)+31>>0]=1;f=0}}else f=0;return f|0}function Dg(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0;g=c[(b&p)+4>>2]|0;c[(g&p)+4>>2]=c[(b&p)>>2];b=c[(g&p)+12>>2]|0;f=c[(b&p)+56>>2]|0;b=Gg(c[(b&p)+68>>2]|0)|0;if((b|0)==0?(i=d<<2,a[(f+i&n)+36>>0]=e>>>24,a[(f+i&n)+37>>0]=e>>>16,a[(f+i&n)+38>>0]=e>>>8,h=e&255,a[(f+i&n)+39>>0]=h,(d|0)==7):0)a[(g&n)+18>>0]=h;return b|0}function Eg(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0;h=a+20|0;b=c[(h&p)>>2]|0;d=(b|0)>0;if(d){e=c[(a&p)+16>>2]|0;g=0;do{f=c[(e+(g<<4)&p)+4>>2]|0;if(f)c[((c[(f&p)+4>>2]|0)&p)+4>>2]=c[(f&p)>>2];g=g+1|0}while((g|0)!=(b|0));if(d){g=a+16|0;f=0;do{d=c[((c[(g&p)>>2]|0)+(f<<4)&p)+12>>2]|0;if(d){ql(d);b=c[(h&p)>>2]|0}f=f+1|0}while((f|0)<(b|0))}}b=a+24|0;c[(b&p)>>2]=c[(b&p)>>2]&-3;rl(a);sl(a);return}function Fg(d,f){d=d|0;f=f|0;var g=0,h=0,i=0,j=0,k=0;h=c[(d&p)+4>>2]|0;k=h+22|0;g=e[(k&o)>>1]|0;b[(k&o)>>1]=(f|0)==1?g|16:g&65519;g=yg(d,0)|0;do if(!g){h=h+12|0;i=c[((c[(h&p)>>2]|0)&p)+56>>2]|0;j=i+18|0;g=a[(j&n)>>0]|0;f=f&255;if(g<<24>>24==f<<24>>24?(a[(i&n)+19>>0]|0)==g<<24>>24:0){g=0;break}g=yg(d,2)|0;if(!g){g=Gg(c[((c[(h&p)>>2]|0)&p)+68>>2]|0)|0;if(!g){a[(j&n)>>0]=f;a[(i&n)+19>>0]=f;g=0}}}while(0);b[(k&o)>>1]=e[(k&o)>>1]&65519;return g|0}function Gg(a){a=a|0;var b=0;b=c[(a&p)+16>>2]|0;if((c[(b&p)+148>>2]|0)>>>0>(c[(b&p)+152>>2]|0)>>>0)a=tl(a)|0;else a=ul(a)|0;return a|0}function Hg(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,o=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0;A=i;i=i+32|0;if((i|0)>=(j|0))fa();u=A+16|0;v=A;k=A+12|0;m=A+8|0;g=c[(b&p)+40>>2]|0;a:do if(!g){z=b+16|0;if((d[(z&n)>>0]|0)>=3){b:do if(!(a[(b&n)+15>>0]|0)){if(c[(b&p)+208>>2]|0){l=b+204|0;h=vl(c[(l&p)>>2]|0)|0;c[(m&p)>>2]=0;if(!h){g=zg(b,1,m,0)|0;h=c[(m&p)>>2]|0;c[(h&p)+12>>2]=0;if(h){k=h;y=9}}else{k=0;y=9}if((y|0)==9){g=wl(b,h,c[(b&p)+24>>2]|0,1)|0;if(k)Bg(k)}if(g)break a;h=c[(l&p)>>2]|0;g=c[(h&p)>>2]|0;if(!g)break;while(1){xl(g);g=c[(h&p)>>2]|0;if(!g)break b}}l=b+18|0;if((a[(l&n)>>0]|0)==0?(c[(b&p)+24>>2]|0)!=0:0){g=zg(b,1,k,0)|0;k=c[(k&p)>>2]|0;if(!g){g=Gg(k)|0;if(!g){yl(k);a[(l&n)>>0]=1;g=0}}if(k)Bg(k);if(g)break a}if(((e|0)!=0?(a[(b&n)+5>>0]|0)!=4:0)?(x=b+64|0,t=c[(x&p)>>2]|0,(c[(t&p)>>2]|0)!=0):0){a[(b&n)+19>>0]=1;k=a[(e&n)>>0]|0;if(!(k<<24>>24)){l=0;h=0}else{l=0;h=0;do{l=(k<<24>>24)+l|0;h=h+1|0;k=a[(e+h&n)>>0]|0}while(k<<24>>24!=0)}s=b+72|0;g=s;k=c[(g&p)>>2]|0;g=c[(g&p)+4>>2]|0;if(!(a[(b&n)+8>>0]|0))m=g;else{if((k|0)==0&(g|0)==0){k=0;g=0}else{g=jw(k|0,g|0,-1,-1)|0;k=c[(b&p)+148>>2]|0;g=qw(g|0,G|0,k|0,0)|0;g=jw(g|0,G|0,1,0)|0;k=sw(g|0,G|0,k|0,0)|0;g=G}m=s;c[(m&p)>>2]=k;c[(m&p)+4>>2]=g;m=g}g=((c[2514]|0)/(c[(b&p)+152>>2]|0)|0)+1|0;a[(u&n)>>0]=g>>>24;o=u+1|0;a[(o&n)>>0]=g>>>16;q=u+2|0;a[(q&n)>>0]=g>>>8;r=u+3|0;a[(r&n)>>0]=g;g=tc[c[((c[(t&p)>>2]|0)&p)+12>>2]&31](t,u,4,k,m)|0;if(g)break a;g=c[(x&p)>>2]|0;m=jw(k|0,m|0,4,0)|0;k=G;g=tc[c[((c[(g&p)>>2]|0)&p)+12>>2]&31](g,e,h,m,k)|0;if(g)break a;g=c[(x&p)>>2]|0;m=jw(m|0,k|0,h|0,((h|0)<0)<<31>>31|0)|0;k=G;a[(u&n)>>0]=h>>>24;a[(o&n)>>0]=h>>>16;a[(q&n)>>0]=h>>>8;a[(r&n)>>0]=h;g=tc[c[((c[(g&p)>>2]|0)&p)+12>>2]&31](g,u,4,m,k)|0;if(g)break a;t=c[(x&p)>>2]|0;g=jw(m|0,k|0,4,0)|0;a[(u&n)>>0]=l>>>24;a[(o&n)>>0]=l>>>16;a[(q&n)>>0]=l>>>8;a[(r&n)>>0]=l;g=tc[c[((c[(t&p)>>2]|0)&p)+12>>2]&31](t,u,4,g,G)|0;if(g)break a;t=c[(x&p)>>2]|0;g=jw(m|0,k|0,8,0)|0;g=tc[c[((c[(t&p)>>2]|0)&p)+12>>2]&31](t,14808,8,g,G)|0;if(g)break a;t=h+20|0;g=s;t=jw(c[(g&p)>>2]|0,c[(g&p)+4>>2]|0,t|0,((t|0)<0)<<31>>31|0)|0;g=s;c[(g&p)>>2]=t;c[(g&p)+4>>2]=G;g=c[(x&p)>>2]|0;g=rc[c[((c[(g&p)>>2]|0)&p)+24>>2]&127](g,v)|0;if(g)break a;t=v;r=c[(t&p)+4>>2]|0;g=s;h=c[(g&p)>>2]|0;g=c[(g&p)+4>>2]|0;if((r|0)>(g|0)|((r|0)==(g|0)?(c[(t&p)>>2]|0)>>>0>h>>>0:0)?(w=c[(x&p)>>2]|0,w=ac[c[((c[(w&p)>>2]|0)&p)+16>>2]&63](w,h,g)|0,(w|0)!=0):0){g=w;break a}}g=zl(b,0)|0;if(g)break a;h=b+204|0;g=Al(b,vl(c[(h&p)>>2]|0)|0)|0;if(g)break a;g=c[(h&p)>>2]|0;h=c[(g&p)>>2]|0;if(h)do{xl(h);h=c[(g&p)>>2]|0}while((h|0)!=0);h=c[(b&p)+24>>2]|0;if(h>>>0>(c[(b&p)+32>>2]|0)>>>0){g=Bl(b,h-((h|0)==(((c[2514]|0)/(c[(b&p)+152>>2]|0)|0)+1|0)&1)|0)|0;if(!(g|f))y=46}else if(!f)y=46;else break;if((y|0)==46)g=Ig(b,e)|0;if(g)break a}else{g=c[(b&p)+88>>2]|0;if(g)do{c[(g&p)+16>>2]=1;g=c[(g&p)+44>>2]|0}while((g|0)!=0)}while(0);if(!(c[(b&p)+208>>2]|0)){a[(z&n)>>0]=5;g=0}else g=0}else g=0}while(0);i=A;return g|0}function Ig(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,i=0;g=b+60|0;h=c[(g&p)>>2]|0;i=c[(h&p)>>2]|0;if(!((i|0)!=0?(f=ac[c[(i&p)+40>>2]&63](h,21,e)|0,!((f|0)==0|(f|0)==12)):0))if(!(a[(b&n)+7>>0]|0)){f=c[(g&p)>>2]|0;f=rc[c[((c[(f&p)>>2]|0)&p)+20>>2]&127](f,d[(b&n)+11>>0]|0)|0}else f=0;return f|0}function Jg(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0;g=a[(b&n)+8>>0]|0;do if(!(g<<24>>24))f=0;else{k=c[(b&p)+4>>2]|0;c[(k&p)+4>>2]=c[(b&p)>>2];if(g<<24>>24==2){h=c[(k&p)>>2]|0;i=h+40|0;g=c[(i&p)>>2]|0;do if(!g){g=h+16|0;if(((a[(g&n)>>0]|0)==2?(a[(h&n)+4>>0]|0)!=0:0)?(a[(h&n)+5>>0]|0)==1:0){a[(g&n)>>0]=1;break}f=h+100|0;c[(f&p)>>2]=(c[(f&p)>>2]|0)+1;f=Cl(h,d[(h&n)+19>>0]|0,1)|0;h=f&255;if((h|0)==10|(h|0)==13){c[(i&p)>>2]=f;a[(g&n)>>0]=6;j=10}else j=10}else{f=g;j=10}while(0);if((j|0)==10?(f|0)!=0&(e|0)==0:0)break;f=b+20|0;c[(f&p)>>2]=(c[(f&p)>>2]|0)+-1;a[(k&n)+20>>0]=1;f=k+60|0;ei(c[(f&p)>>2]|0);c[(f&p)>>2]=0}Dl(b);f=0}while(0);return f|0}function Kg(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,o=0,q=0,r=0,s=0;s=i;i=i+16|0;if((i|0)>=(j|0))fa();h=s;a:do if((a[(b&n)+8>>0]|0)==2){r=c[(b&p)+4>>2]|0;c[(r&p)+4>>2]=c[(b&p)>>2];do if(a[(r&n)+17>>0]|0){q=c[(r&p)>>2]|0;f=r+8|0;b=c[(f&p)>>2]|0;if(b)do{o=b+72|0;a[(o&n)>>0]=d[(o&n)>>0]&251;b=c[(b&p)+8>>2]|0}while((b|0)!=0);if(!(a[(r&n)+18>>0]|0)){o=r+44|0;g=c[(o&p)>>2]|0;if(g>>>0<2)b=0;else{b=g+-2|0;b=b-((b>>>0)%(((((c[(r&p)+36>>2]|0)>>>0)/5|0)+1|0)>>>0)|0)|0;b=((b+1|0)==(((c[2514]|0)>>>0)/((c[(r&p)+32>>2]|0)>>>0)|0|0)?3:2)+b|0}if((b|0)!=(g|0)?(g|0)!=((((c[2514]|0)>>>0)/((c[(r&p)+32>>2]|0)>>>0)|0)+1|0):0){k=r+12|0;l=c[((c[(k&p)>>2]|0)&p)+56>>2]|0;l=d[(l&n)+37>>0]<<16|d[(l&n)+36>>0]<<24|d[(l&n)+38>>0]<<8|d[(l&n)+39>>0];m=El(r,g,l)|0;if(m>>>0>g>>>0){c[(h&p)>>2]=56396;c[(h&p)+4>>2]=10788;bd(11,13600,h);b=11;break a}b:do if(m>>>0>>0){b=c[(f&p)>>2]|0;c:do if(b){while(1){if(b)break;b=c[2]|0;if(!b)break c}b=Fl(b,0,0)|0;if(b){f=0;break b}}while(0);do{b=Gl(r,m,g,1)|0;g=g+-1|0;f=(b|0)==0}while(g>>>0>m>>>0&f)}else{f=1;b=0}while(0);if(((b|0)==101|f)&(l|0)!=0){b=Gg(c[((c[(k&p)>>2]|0)&p)+68>>2]|0)|0;l=(c[((c[(k&p)>>2]|0)&p)+56>>2]|0)+32|0;a[(l&n)>>0]=0;a[(l&n)+1>>0]=0;a[(l&n)+2>>0]=0;a[(l&n)+3>>0]=0;l=(c[((c[(k&p)>>2]|0)&p)+56>>2]|0)+36|0;a[(l&n)>>0]=0;a[(l&n)+1>>0]=0;a[(l&n)+2>>0]=0;a[(l&n)+3>>0]=0;l=c[((c[(k&p)>>2]|0)&p)+56>>2]|0;a[(l&n)+28>>0]=m>>>24;a[(l&n)+29>>0]=m>>>16;a[(l&n)+30>>0]=m>>>8;a[(l&n)+31>>0]=m;a[(r&n)+19>>0]=1;c[(o&p)>>2]=m}if(!b)break;Hl(q)|0;break a}c[(h&p)>>2]=56391;c[(h&p)+4>>2]=10788;bd(11,13600,h);b=11;break a}}while(0);b=c[(r&p)>>2]|0;if(a[(r&n)+19>>0]|0)c[(b&p)+24>>2]=c[(r&p)+44>>2];b=Hg(b,e,0)|0}else b=0;while(0);i=s;return b|0}function Lg(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0;m=i;i=i+16|0;if((i|0)>=(j|0))fa();h=m;l=c[(b&p)+4>>2]|0;c[(l&p)+4>>2]=c[(b&p)>>2];a:do if(!e){e=c[(l&p)+8>>2]|0;if(e){while(1){if(e)break;e=c[2]|0;if(!e)break a}e=Fl(e,0,0)|0;g=(e|0)==0;if(!g){g=g?f:0;k=6}}}else{g=f;k=6}while(0);if((k|0)==6)Il(b,e,g)|0;if((a[(b&n)+8>>0]|0)==2){Hl(c[(l&p)>>2]|0)|0;if(!(dl(l,1,h,0)|0)){e=c[(h&p)>>2]|0;g=c[(e&p)+56>>2]|0;g=d[(g&n)+29>>0]<<16|d[(g&n)+28>>0]<<24|d[(g&n)+30>>0]<<8|d[(g&n)+31>>0];if(!g)g=c[((c[(l&p)>>2]|0)&p)+24>>2]|0;c[(l&p)+44>>2]=g;if(e)Bg(c[(e&p)+68>>2]|0)}a[(l&n)+20>>0]=1;g=l+60|0;ei(c[(g&p)>>2]|0);c[(g&p)>>2]=0}Dl(b);i=m;return}function Mg(d){d=d|0;var e=0,f=0,g=0,h=0,i=0,j=0,k=0;j=d+76|0;if((c[(j&p)>>2]|0)==1691352191?(Jl(d)|0)==0:0){Kl(d,0);Ll(d);i=d+20|0;k=d+16|0;e=c[(k&p)>>2]|0;if((c[(i&p)>>2]|0)>0){h=0;do{g=e+(h<<4)+4|0;f=c[(g&p)>>2]|0;if((f|0)!=0?(Ml(f),c[(g&p)>>2]=0,(h|0)!=1):0)c[(e+(h<<4)&p)+12>>2]=0;h=h+1|0;e=c[(k&p)>>2]|0}while((h|0)<(c[(i&p)>>2]|0))}e=c[(e&p)+28>>2]|0;if(e)ql(e);rl(d);sl(d);h=0;do{e=c[(d+(h<<2)&p)+336>>2]|0;if(e)do{g=e;e=c[(e&p)+28>>2]|0;if(g)do{Nl(d,g);f=g;g=c[(g&p)+8>>2]|0;mg(d,f)}while((g|0)!=0)}while((e|0)!=0);h=h+1|0}while((h|0)!=23);f=d+428|0;e=c[(d&p)+436>>2]|0;if(e)do{h=c[(e&p)+8>>2]|0;g=c[(h&p)+16>>2]|0;if(g)cc[g&31](c[(h&p)+8>>2]|0);g=c[(h&p)+36>>2]|0;if(g)cc[g&31](c[(h&p)+28>>2]|0);g=c[(h&p)+56>>2]|0;if(g)cc[g&31](c[(h&p)+48>>2]|0);mg(d,h);e=c[(e&p)>>2]|0}while((e|0)!=0);Ol(f);h=d+308|0;e=c[(d&p)+316>>2]|0;if(e)do{g=c[(e&p)+8>>2]|0;f=c[(g&p)+12>>2]|0;if(f)cc[f&31](c[(g&p)+8>>2]|0);mg(d,g);e=c[(e&p)>>2]|0}while((e|0)!=0);Ol(h);c[(d&p)+52>>2]=0;f=d+236|0;e=c[(f&p)>>2]|0;do if(e){g=e+8|0;if(!(b[(g&o)>>1]&9312)){b[(g&o)>>1]=1;break}else{vg(e);e=c[(f&p)>>2]|0;break}}else e=0;while(0);Mh(e);g=d+168|0;if((c[(g&p)>>2]|0)>0){e=d+172|0;f=0;do{h=c[(d&p)>>2]|0;jc[c[(h&p)+52>>2]&15](h,c[((c[(e&p)>>2]|0)+(f<<2)&p)>>2]|0);f=f+1|0}while((f|0)<(c[(g&p)>>2]|0))}else e=d+172|0;mg(d,c[(e&p)>>2]|0);c[(j&p)>>2]=-1254786768;mg(d,c[((c[(k&p)>>2]|0)&p)+28>>2]|0);c[(j&p)>>2]=-1623446221;if(a[(d&n)+251>>0]|0)Wc(c[(d&p)+276>>2]|0);Wc(d)}return}function Ng(a){a=a|0;var b=0;b=c[(a&p)+40>>2]|0;if((b|0)==1369188723|(b|0)==-1108210269)b=Pg(a)|0;else b=0;Pl(a);return b|0}function Og(b,d){b=b|0;d=d|0;do if(b)if((a[(b&n)+65>>0]|0)!=0|(d|0)==3082){Ql(b);b=7;break}else{b=c[(b&p)+56>>2]&d;break}else b=d&255;while(0);return b|0}function Pg(a){a=a|0;var d=0,e=0,f=0,g=0,h=0,k=0;g=i;i=i+16|0;if((i|0)>=(j|0))fa();e=g;f=c[(a&p)>>2]|0;Rl(a)|0;if((c[(a&p)+76>>2]|0)>-1){hh(a)|0;d=a+44|0;mg(f,c[(d&p)>>2]|0);c[(d&p)>>2]=0;d=a+88|0;e=b[(d&o)>>1]|0;if(e&16)b[(d&o)>>1]=e|8}else{d=c[(a&p)+80>>2]|0;if((d|0)!=0?(b[(a&o)+88>>1]&8)!=0:0){h=a+44|0;k=c[(h&p)>>2]|0;c[(e&p)>>2]=k;ug(f,d,(k|0)!=0?10344:0,e);mg(f,c[(h&p)>>2]|0);c[(h&p)>>2]=0}}d=a+44|0;mg(c[(a&p)>>2]|0,c[(d&p)>>2]|0);c[(d&p)>>2]=0;c[(a&p)+20>>2]=0;d=a+136|0;c[(d&p)>>2]=0;c[(d&p)+4>>2]=0;c[(a&p)+40>>2]=649915045;i=g;return c[(f&p)+56>>2]&c[(a&p)+80>>2]|0}function Qg(a){a=a|0;var d=0;if(b[(a&o)+8>>1]&9312)vg(a);d=a+24|0;if(c[(d&p)>>2]|0){mg(c[(a&p)+32>>2]|0,c[(a&p)+20>>2]|0);c[(d&p)>>2]=0}c[(a&p)+16>>2]=0;return}function Rg(a){a=a|0;var d=0,f=0,g=0;d=a+8|0;if(b[(d&o)>>1]&16384){f=a+12|0;g=(c[(a&p)>>2]|0)+(c[(f&p)>>2]|0)|0;if(!(eh(a,(g|0)<1?1:g,1)|0)){fw((c[(a&p)+16>>2]|0)+(c[(f&p)>>2]|0)|0,0,c[(a&p)>>2]|0)|0;c[(f&p)>>2]=(c[(f&p)>>2]|0)+(c[(a&p)>>2]|0);b[(d&o)>>1]=(e[(d&o)>>1]|0)&48639;d=0}else d=7}else d=0;return d|0}function Sg(d,e){d=d|0;e=e|0;var f=0;do if(d){f=b[(d&o)+8>>1]|0;if((f&514)==514?(a[(d&n)+10>>0]|0)==e<<24>>24:0){f=c[(d&p)+16>>2]|0;break}if(!(f&1))f=Sl(d,e)|0;else f=0}else f=0;while(0);return f|0}function Tg(a,d){a=a|0;d=d|0;var e=0,f=0,g=0;e=a+8|0;f=b[(e&o)>>1]|0;if(!(f&16))if(!(Sg(a,d)|0))e=0;else{f=b[(e&o)>>1]|0;g=4}else g=4;if((g|0)==4){e=c[(a&p)+12>>2]|0;if(f&16384)e=(c[(a&p)>>2]|0)+e|0}return e|0}function Ug(b){b=b|0;var d=0.0,f=0,g=0,k=0;k=i;i=i+16|0;if((i|0)>=(j|0))fa();g=k;f=e[(b&o)+8>>1]|0;do if(!(f&8)){if(f&4){f=b;d=+((c[(f&p)>>2]|0)>>>0)+4294967296.0*+(c[(f&p)+4>>2]|0);break}if(!(f&18))d=0.0;else{h[(g&q)>>3]=0.0;Tl(c[(b&p)+16>>2]|0,g,c[(b&p)+12>>2]|0,a[(b&n)+10>>0]|0)|0;d=+h[(g&q)>>3]}}else d=+h[(b&q)>>3];while(0);i=k;return +d}function Vg(b){b=b|0;var d=0.0,f=0,g=0,k=0;k=i;i=i+16|0;if((i|0)>=(j|0))fa();g=k;f=e[(b&o)+8>>1]|0;do if(!(f&4)){if(!(f&8)){if(!(f&18)){b=0;f=0;break}f=g;c[(f&p)>>2]=0;c[(f&p)+4>>2]=0;Ul(c[(b&p)+16>>2]|0,g,c[(b&p)+12>>2]|0,a[(b&n)+10>>0]|0)|0;f=g;b=c[(f&p)+4>>2]|0;f=c[(f&p)>>2]|0;break}d=+h[(b&q)>>3];if(!(d<=-9223372036854775808.0))if(!(d>=9223372036854775808.0)){b=+R(d)>=1.0?(d>0.0?~~+da(+Q(d/4294967296.0),4294967295.0)>>>0:~~+ba((d-+(~~d>>>0))/4294967296.0)>>>0):0;f=~~d>>>0}else{b=2147483647;f=-1}else{b=-2147483648;f=0}}else{f=b;b=c[(f&p)+4>>2]|0;f=c[(f&p)>>2]|0}while(0);G=b;i=k;return f|0}function Wg(b,d,e,f,g){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;if((Xg(c[(b&p)>>2]|0,d,e,f,g)|0)==18){c[(b&p)+20>>2]=18;a[(b&n)+25>>0]=1;Xg(c[(b&p)>>2]|0,10096,-1,1,0)|0}return}function Xg(d,f,g,h,i){d=d|0;f=f|0;g=g|0;h=h|0;i=i|0;var j=0,k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0;a:do if(!f){j=d+8|0;if(!(b[(j&o)>>1]&9312)){b[(j&o)>>1]=1;j=0;break}else{vg(d);j=0;break}}else{r=d+32|0;j=c[(r&p)>>2]|0;if(!j)u=1e9;else u=c[(j&p)+88>>2]|0;t=h<<24>>24==0;q=t?16:2;if((g|0)<0){b:do if(h<<24>>24!=1)if((u|0)<0)k=0;else{g=0;while(1){k=g+2|0;if(!((a[(f+(g|1)&n)>>0]|a[(f+g&n)>>0])<<24>>24)){k=g;break b}if((k|0)>(u|0))break;else g=k}}else{k=f;while(1)if(!(a[(k&n)>>0]|0))break;else k=k+1|0;k=k-f&1073741823;k=(k|0)>(u|0)?u+1|0:k}while(0);s=k;m=(q&65535|512)&65535}else{s=g;m=q}do if((i|0)==(-1|0)){if(!(m&512))j=s;else j=s+(h<<24>>24==1?1:2)|0;if((s|0)>(u|0)){j=18;break a}if(fh(d,(j|0)>32?j:32)|0){j=7;break a}kw(c[(d&p)+16>>2]|0,f|0,j|0)|0;q=d+8|0;j=m}else{g=(i|0)==75;l=d+8|0;if(!((b[(l&o)>>1]&9312)==0?(c[(d&p)+24>>2]|0)==0:0))Qg(d);c[(d&p)+16>>2]=f;if(!g){c[(d&p)+36>>2]=i;q=l;j=(m&65535|((i|0)==0?2048:1024))&65535;break}c[(d&p)+20>>2]=f;j=c[(r&p)>>2]|0;do if(!j)j=lc[c[8792>>2]&127](f)|0;else{if((c[(j&p)+276>>2]|0)>>>0<=f>>>0?(c[(j&p)+280>>2]|0)>>>0>f>>>0:0){j=e[(j&o)+248>>1]|0;break}j=lc[c[8792>>2]&127](f)|0}while(0);c[(d&p)+24>>2]=j;q=l;j=m}while(0);m=d+12|0;c[(m&p)>>2]=s;b[(q&o)>>1]=j;f=t?1:h;l=d+10|0;a[(l&n)>>0]=f;do if(f<<24>>24!=1&(s|0)>1){g=d+16|0;k=c[(g&p)>>2]|0;j=a[(k&n)>>0]|0;k=a[(k&n)+1>>0]|0;if(!(j<<24>>24==-1&k<<24>>24==-2))if(k<<24>>24!=-1|j<<24>>24!=-2)break;else j=3;else j=2;if(Vl(d)|0){j=7;break a}f=(c[(m&p)>>2]|0)+-2|0;c[(m&p)>>2]=f;i=c[(g&p)>>2]|0;lw(i|0,i+2|0,f|0)|0;a[((c[(g&p)>>2]|0)+(c[(m&p)>>2]|0)&n)>>0]=0;a[((c[(g&p)>>2]|0)+(c[(m&p)>>2]|0)&n)+1>>0]=0;b[(q&o)>>1]=e[(q&o)>>1]|512;a[(l&n)>>0]=j}while(0);j=(s|0)>(u|0)?18:0}while(0);return j|0}function Yg(a,c){a=a|0;c=+c;var d=0,e=0,f=0,g=0;g=i;i=i+16|0;if((i|0)>=(j|0))fa();e=g+8|0;f=g;d=a+8|0;if(!(b[(d&o)>>1]&9312))b[(d&o)>>1]=1;else vg(a);h[(e&q)>>3]=c;h[(f&q)>>3]=+h[(e&q)>>3];if(!(+h[(e&q)>>3]!=+h[(f&q)>>3])){h[(a&q)>>3]=c;b[(d&o)>>1]=8}i=g;return}function Zg(a,d,e){a=a|0;d=d|0;e=e|0;var f=0;f=a+8|0;if(!(b[(f&o)>>1]&9312))b[(f&o)>>1]=1;else vg(a);c[(a&p)>>2]=d;c[(a&p)+4>>2]=e;b[(f&o)>>1]=4;return}function _g(a,d){a=a|0;d=d|0;var f=0,g=0,h=0;f=a+8|0;if(b[(f&o)>>1]&9312)vg(a);c[(a&p)>>2]=c[(d&p)>>2];c[(a&p)+4>>2]=c[(d&p)+4>>2];c[(a&p)+8>>2]=c[(d&p)+8>>2];c[(a&p)+12>>2]=c[(d&p)+12>>2];c[(a&p)+16>>2]=c[(d&p)+16>>2];h=e[(f&o)>>1]|0;g=h&64511;b[(f&o)>>1]=g;if((h&18|0)!=0?(b[(d&o)+8>>1]&2048)==0:0){b[(f&o)>>1]=g|4096;f=Vl(a)|0}else f=0;return f|0}function $g(d,e){d=d|0;e=e|0;var f=0;f=d+8|0;if(!((b[(f&o)>>1]&9312)==0?(c[(d&p)+24>>2]|0)==0:0))Qg(d);b[(f&o)>>1]=16400;c[(d&p)+12>>2]=0;c[(d&p)>>2]=(e|0)<0?0:e;a[(d&n)+10>>0]=1;c[(d&p)+16>>2]=0;return}function ah(a){a=a|0;var b=0,d=0;d=i;i=i+16|0;if((i|0)>=(j|0))fa();b=d;if(a)if(!(c[(a&p)>>2]|0)){bd(21,47360,b);a=1}else a=0;else{bd(21,47320,b);a=1}i=d;return a|0}function bh(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0.0;f=i;i=i+16|0;if((i|0)>=(j|0))fa();e=f;if((c[(a&p)>>2]|0)>1?(d=c[(a&p)+72>>2]|0,(d|0)!=0):0)d=rc[d&127](a,b)|0;else{d=rc[c[(a&p)+64>>2]&127](a,e)|0;g=+h[(e&q)>>3]*864.0e5;a=+R(g)>=1.0?(g>0.0?~~+da(+Q(g/4294967296.0),4294967295.0)>>>0:~~+ba((g-+(~~g>>>0))/4294967296.0)>>>0):0;c[(b&p)>>2]=~~g>>>0;c[(b&p)+4>>2]=a}i=f;return d|0}function ch(d,e){d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0;a:do if((d|0)!=0&(e|0)!=0){i=d+(e*40|0)|0;j=c[(d&p)+32>>2]|0;g=j+65|0;h=a[(g&n)>>0]|0;if(c[(j&p)+520>>2]|0){e=d;while(1){if(c[(e&p)+24>>2]|0)mg(j,c[(e&p)+20>>2]|0);e=e+40|0;if(e>>>0>=i>>>0)break a}}do{e=d+8|0;if(!(b[(e&o)>>1]&9312)){f=d+24|0;if(c[(f&p)>>2]|0){mg(j,c[(d&p)+20>>2]|0);c[(f&p)>>2]=0}}else Qg(d);b[(e&o)>>1]=128;d=d+40|0}while(d>>>0>>0);a[(g&n)>>0]=h}while(0);return}function dh(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0;f=i;i=i+16|0;if((i|0)>=(j|0))fa();g=f;c[(g&p)>>2]=e;e=Wk(b,d,g)|0;mg(b,c[(a&p)>>2]|0);c[(a&p)>>2]=e;i=f;return}function eh(a,d,f){a=a|0;d=d|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,q=0;l=a+24|0;g=c[(l&p)>>2]|0;do if((g|0)<(d|0)){k=(d|0)<32?32:d;d=(g|0)>0;if((f|0)!=0&d?(h=a+16|0,i=c[(h&p)>>2]|0,j=a+20|0,(i|0)==(c[(j&p)>>2]|0)):0){g=Wl(c[(a&p)+32>>2]|0,i,k,((k|0)<0)<<31>>31)|0;c[(j&p)>>2]=g;c[(h&p)>>2]=g;f=0}else{g=a+32|0;if(d){d=a+20|0;mg(c[(g&p)>>2]|0,c[(d&p)>>2]|0)}else d=a+20|0;g=mh(c[(g&p)>>2]|0,k,((k|0)<0)<<31>>31)|0;c[(d&p)>>2]=g}if(!g){f=a+8|0;if(!(b[(f&o)>>1]&9312))b[(f&o)>>1]=1;else vg(a);c[(a&p)+16>>2]=0;c[(l&p)>>2]=0;f=7;break}d=c[(a&p)+32>>2]|0;do if(!d)d=lc[c[8792>>2]&127](g)|0;else{if((c[(d&p)+276>>2]|0)>>>0<=g>>>0?(c[(d&p)+280>>2]|0)>>>0>g>>>0:0){d=e[(d&o)+248>>1]|0;break}d=lc[c[8792>>2]&127](g)|0}while(0);c[(l&p)>>2]=d;q=21}else q=21;while(0);if((q|0)==21){if(((f|0)!=0?(m=c[(a&p)+16>>2]|0,(m|0)!=0):0)?(n=c[(a&p)+20>>2]|0,(m|0)!=(n|0)):0)kw(n|0,m|0,c[(a&p)+12>>2]|0)|0;d=a+8|0;f=b[(d&o)>>1]|0;if(!(f&1024))g=a+16|0;else{g=a+16|0;cc[c[(a&p)+36>>2]&31](c[(g&p)>>2]|0);f=b[(d&o)>>1]|0}c[(g&p)>>2]=c[(a&p)+20>>2];b[(d&o)>>1]=f&58367;f=0}return f|0}function fh(a,d){a=a|0;d=d|0;if((c[(a&p)+24>>2]|0)<(d|0))a=eh(a,d,0)|0;else{c[(a&p)+16>>2]=c[(a&p)+20>>2];a=a+8|0;b[(a&o)>>1]=(e[(a&o)>>1]|0)&13;a=0}return a|0} function mq(f,g){f=f|0;g=g|0;var h=0,k=0,l=0,m=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,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,ga=0,ha=0;ha=i;i=i+192|0;if((i|0)>=(j|0))fa();ba=ha+48|0;$=ha+24|0;_=ha+160|0;I=ha+156|0;S=ha+152|0;L=ha+148|0;V=ha+144|0;O=ha+140|0;H=ha+16|0;ea=ha;y=ha+128|0;x=ha+116|0;z=ha+96|0;l=ha+88|0;ga=f+8|0;ca=c[(ga&p)>>2]|0;da=c[(f&p)>>2]|0;c[(ea&p)>>2]=c[9286];c[(ea&p)+4>>2]=c[9287];c[(ea&p)+8>>2]=c[9288];a:do switch(g|0){case 9:{l=c[(f+(da+-1<<4)&p)+16>>2]|0;k=c[(ca&p)>>2]|0;if((Sq(ca,22,37104,0,0)|0)==0?(E=Oq(ca)|0,(E|0)!=0):0){if((l|0)!=7?(F=k+20|0,(c[(F&p)>>2]|0)>0):0){l=(l|0)==9?2:1;k=E+96|0;q=0;do{wh(E,4,q,l,0)|0;c[(k&p)>>2]=c[(k&p)>>2]|1<>2]|0))}wh(E,3,0,0,0)|0}break}case 8:{y=c[(ca&p)>>2]|0;C=y+65|0;if(((a[(C&n)>>0]|0)==0?(a[(ca&n)+18>>0]|0)==0:0)?(Y=ca+64|0,(c[(Y&p)>>2]|0)==0):0){B=Oq(ca)|0;if(B){do{}while((Pq(B,61)|0)!=0);wh(B,24,0,0,0)|0;do if(!(a[(C&n)>>0]|0)){r=ca+332|0;v=c[(r&p)>>2]|0;if((v|0)==0?(c[(ca&p)+316>>2]|0)==0:0)break;s=B+32|0;t=c[(s&p)>>2]|0;if(t)c[((c[(B&p)+4>>2]|0)&p)+8>>2]=t;c[((c[(B&p)+24>>2]|0)&p)+88>>2]=t+-1;w=y+20|0;b:do if((c[(w&p)>>2]|0)>0){h=B+96|0;k=ca+328|0;l=y+16|0;m=y+145|0;q=B+4|0;u=0;while(1){x=1<>2]=c[(h&p)>>2]|x,ba=c[((c[((c[(l&p)>>2]|0)+(u<<4)&p)+12>>2]|0)&p)+4>>2]|0,xh(B,wh(B,4,u,(c[(k&p)>>2]&x|0)!=0&1,c[(ca+(u<<2)&p)+336>>2]|0)|0,ba,-14),(a[(m&n)>>0]|0)==0):0)?(N=c[(q&p)>>2]|0,(N|0)!=0):0)a[(N+(((c[(s&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=1;u=u+1|0;if((u|0)>=(c[(w&p)>>2]|0))break b;v=c[(r&p)>>2]|0}}while(0);s=ca+452|0;if((c[(s&p)>>2]|0)>0){r=ca+520|0;q=0;do{t=c[((c[((c[(r&p)>>2]|0)+(q<<2)&p)>>2]|0)&p)+60>>2]|0;c:do if(!t)t=0;else while(1){if((c[(t&p)>>2]|0)==(y|0))break c;t=c[(t&p)+24>>2]|0;if(!t){t=0;break}}while(0);xh(B,wh(B,146,0,0,0)|0,t,-10);q=q+1|0}while((q|0)<(c[(s&p)>>2]|0))}c[(s&p)>>2]=0;s=Oq(ca)|0;r=ca+396|0;if((c[(r&p)>>2]|0)>0){q=ca+400|0;m=0;do{$=c[(q&p)>>2]|0;ba=c[($+(m<<4)&p)+12>>2]|0;xh(s,wh(s,145,c[($+(m<<4)&p)>>2]|0,c[($+(m<<4)&p)+4>>2]|0,d[($+(m<<4)&n)+8>>0]|0)|0,ba,-2);m=m+1|0}while((m|0)<(c[(r&p)>>2]|0))}k=c[(ca&p)+8>>2]|0;t=c[(ca&p)+404>>2]|0;if(t){h=(c[(ca&p)>>2]|0)+16|0;u=k+32|0;v=k+4|0;do{r=c[(t&p)+8>>2]|0;s=c[(t&p)+12>>2]|0;Qq(ca,0,r,c[((c[((c[(h&p)>>2]|0)+(r<<4)&p)+12>>2]|0)&p)+72>>2]|0,54);r=s+1|0;wh(k,28,0,s,r)|0;q=c[(u&p)>>2]|0;l=s+-1|0;m=c[(c[(t&p)+4>>2]&p)>>2]|0;xh(k,wh(k,97,0,l,0)|0,m,0);m=q+9|0;wh(k,108,0,m,0)|0;wh(k,47,0,0,s)|0;wh(k,78,l,q+7|0,s)|0;l=c[(v&p)>>2]|0;if(l)a[(l+(((c[(u&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=16;wh(k,103,0,r,0)|0;wh(k,47,0,1,s)|0;wh(k,16,0,m,0)|0;wh(k,9,0,q+2|0,0)|0;wh(k,25,0,s,0)|0;wh(k,61,0,0,0)|0;t=c[(t&p)>>2]|0}while((t|0)!=0)}s=c[(ca&p)+316>>2]|0;if((s|0)!=0?(a[(ca&n)+23>>0]=0,(c[(s&p)>>2]|0)>0):0){r=s+4|0;q=0;do{ba=c[(r&p)>>2]|0;Rq(ca,c[(ba+(q*20|0)&p)>>2]|0,c[(ba+(q*20|0)&p)+16>>2]|0);q=q+1|0}while((q|0)<(c[(s&p)>>2]|0))}wh(B,16,0,1,0)|0}while(0);if((c[(Y&p)>>2]|0)==0?(a[(C&n)>>0]|0)==0:0){if((c[(ca&p)+404>>2]|0)!=0?(Z=ca+68|0,(c[(Z&p)>>2]|0)==0):0)c[(Z&p)>>2]=1;Ah(B,ca);c[(ca&p)+12>>2]=101;a[(ca&n)+16>>0]=0}else aa=48}else aa=48;if((aa|0)==48)c[(ca&p)+12>>2]=1;c[(ca&p)+68>>2]=0;c[(ca&p)+72>>2]=0;c[(ca&p)+76>>2]=0;c[(ca&p)+440>>2]=0;c[(ca&p)+332>>2]=0}break}case 5:{a[(ca&n)+450>>0]=0;c[(ca&p)+440>>2]=0;break}case 6:{a[(ca&n)+450>>0]=1;c[(ca&p)+440>>2]=0;break}case 221:case 218:case 108:case 97:case 85:case 83:case 81:case 68:case 31:case 28:{c[(ea&p)>>2]=0;break}case 27:{a[((c[(ca&p)>>2]|0)&n)+250>>0]=0;aa=f+(da<<4)+16|0;ba=c[(aa&p)+4>>2]|0;ca=ea;c[(ca&p)>>2]=c[(aa&p)>>2];c[(ca&p)+4>>2]=ba;break}case 222:case 219:case 107:case 84:case 69:case 30:case 29:{c[(ea&p)>>2]=1;break}case 32:{Vq(ca,f+(da+-2<<4)+16|0,f+(da+-1<<4)+16|0,a[(f+(da<<4)&n)+16>>0]|0,0);break}case 33:{ba=f+(da<<4)+16|0;Vq(ca,0,0,0,c[(ba&p)>>2]|0);Mk(c[(ca&p)>>2]|0,c[(ba&p)>>2]|0,1);break}case 34:{a[(ea&n)>>0]=0;break}case 35:{l=c[(f+(da<<4)&p)+20>>2]|0;k=c[(f+(da<<4)&p)+16>>2]|0;if((l|0)==5?(Fc(k,20456,5)|0)==0:0){a[(ea&n)>>0]=32;break a}a[(ea&n)>>0]=0;c[(ba&p)>>2]=l;c[(ba&p)+4>>2]=k;th(ca,20464,ba);break}case 59:{ba=f+(da<<4)+16|0;c[(x&p)>>2]=Zq(ca,97,0,0,ba)|0;ba=c[(ba&p)>>2]|0;c[(x&p)+4>>2]=ba;c[(x&p)+8>>2]=ba+(c[(f+(da<<4)&p)+20>>2]|0);Yq(ca,x);break}case 61:{k=c[(f+(da<<4)&p)+16>>2]|0;l=c[(ca&p)+484>>2]|0;if((l|0)!=0?(v=b[(l&o)+38>>1]|0,v<<16>>16>=1):0)a[((c[(l&p)+4>>2]|0)+(((v<<16>>16)+-1|0)*24|0)&n)+20>>0]=k;break}case 70:{c[(ea&p)>>2]=0;break}case 71:{c[(ea&p)>>2]=c[(f+(da+-1<<4)&p)+16>>2]&~c[(f+(da<<4)&p)+20>>2]|c[(f+(da<<4)&p)+16>>2];break}case 73:case 72:{c[(ea&p)>>2]=0;c[(ea&p)+4>>2]=0;break}case 74:{c[(ea&p)>>2]=c[(f+(da<<4)&p)+16>>2];c[(ea&p)+4>>2]=255;break}case 76:{c[(ea&p)>>2]=7;break}case 75:{c[(ea&p)>>2]=c[(f+(da<<4)&p)+16>>2]<<8;c[(ea&p)+4>>2]=65280;break}case 65:{br(ca,0,f+(da+-2<<4)+16|0,c[(f+(da+-1<<4)&p)+16>>2]|0,c[(f+(da<<4)&p)+16>>2]|0);break}case 66:{k=c[(f+(da<<4)&p)+16>>2]|0;l=c[(ca&p)+484>>2]|0;if((l|0)!=0?(u=c[(l&p)+16>>2]|0,(u|0)!=0):0)a[(u&n)+24>>0]=k;break}case 67:{q=c[(ca&p)+484>>2]|0;if((q|0)!=0?(D=(b[(q&o)+38>>1]|0)+-1|0,r=c[(ca&p)>>2]|0,m=Wq(r,f+(da<<4)+16|0)|0,(m|0)!=0):0){if(!(cr(ca,m)|0)){mg(r,m);break a}s=q+4|0;mg(r,c[((c[(s&p)>>2]|0)+(D*24|0)&p)+16>>2]|0);c[((c[(s&p)>>2]|0)+(D*24|0)&p)+16>>2]=m;l=c[(q&p)+8>>2]|0;if(l)do{if((b[(c[(l&p)+4>>2]&o)>>1]|0)==(D|0))c[(c[(l&p)+32>>2]&p)>>2]=c[((c[(s&p)>>2]|0)+(D*24|0)&p)+16>>2];l=c[(l&p)+20>>2]|0}while((l|0)!=0)}break}case 13:{c[(ea&p)>>2]=7;break}case 117:case 115:case 16:case 15:case 14:{c[(ea&p)>>2]=d[(f+(da<<4)&n)+14>>0];break}case 46:{ca=c[(f+(da+-3<<4)&p)+16>>2]|0;c[(ea&p)>>2]=ca;c[(ea&p)+4>>2]=(c[(f+(da<<4)&p)+16>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0)-ca;break}case 47:{ca=c[(f+(da+-5<<4)&p)+16>>2]|0;c[(ea&p)>>2]=ca;c[(ea&p)+4>>2]=(c[(f+(da<<4)&p)+16>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0)-ca;break}case 49:{ca=c[(f+(da+-1<<4)&p)+16>>2]|0;c[(ea&p)>>2]=ca;c[(ea&p)+4>>2]=(c[(f+(da<<4)&p)+16>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0)-ca;break}case 92:case 54:{aa=f+(da<<4)+16|0;ba=c[(aa&p)+4>>2]|0;ca=ca+320|0;c[(ca&p)>>2]=c[(aa&p)>>2];c[(ca&p)+4>>2]=ba;break}case 57:case 55:{Yq(ca,f+(da<<4)+16|0);break}case 56:{Yq(ca,f+(da+-1<<4)+16|0);break}case 58:{c[(y&p)>>2]=Zq(ca,157,c[(f+(da<<4)&p)+16>>2]|0,0,0)|0;c[(y&p)+4>>2]=c[(f+(da+-1<<4)&p)+16>>2];c[(y&p)+8>>2]=c[(f+(da<<4)&p)+24>>2];Yq(ca,y);break}case 18:case 17:{if((Sq(ca,22,37136,0,0)|0)==0?(B=Oq(ca)|0,(B|0)!=0):0)wh(B,3,1,0,0)|0;break}case 19:{if((Sq(ca,22,37120,0,0)|0)==0?(A=Oq(ca)|0,(A|0)!=0):0)wh(A,3,1,1,0)|0;break}case 22:{Tq(ca,0,f+(da<<4)+16|0);break}case 38:{ba=c[(f+(da+-2<<4)&p)+16>>2]|0;c[(ea&p)>>2]=ba;c[(ea&p)+4>>2]=(c[(ca&p)+504>>2]|0)-ba+(c[(ca&p)+508>>2]|0);break}case 39:{x=f+(da<<4)+16|0;v=c[(ca&p)>>2]|0;k=c[(ca&p)+484>>2]|0;d:do if(k){w=k+38|0;if((b[(w&o)>>1]|0)>=(c[(v&p)+96>>2]|0)){c[(ba&p)>>2]=c[(k&p)>>2];th(ca,36528,ba);break}u=Wq(v,x)|0;if(u){s=b[(w&o)>>1]|0;h=s<<16>>16;e:do if(s<<16>>16>0){t=a[((d[(u&n)>>0]|0)&n)+9328>>0]|0;q=c[(k&p)+4>>2]|0;r=u+1|0;l=0;while(1){m=c[(q+(l*24|0)&p)>>2]|0;if(t<<24>>24==(a[((d[(m&n)>>0]|0)&n)+9328>>0]|0)?(dd(r,m+1|0)|0)==0:0)break;l=l+1|0;if((l|0)>=(h|0))break e}c[(ba&p)>>2]=u;th(ca,36552,ba);mg(v,u);break d}else q=c[(k&p)+4>>2]|0;while(0);r=k+4|0;do if(!(h&7)){q=ro(v,q,(h*24|0)+192|0,0)|0;if(!q){mg(v,u);break d}else{c[(r&p)>>2]=q;s=b[(w&o)>>1]|0;break}}while(0);ba=s<<16>>16;aa=q+(ba*24|0)|0;c[(aa&p)>>2]=0;c[(aa&p)+4>>2]=0;c[(aa&p)+8>>2]=0;c[(aa&p)+12>>2]=0;c[(aa&p)+16>>2]=0;c[(aa&p)+20>>2]=0;c[(aa&p)>>2]=u;a[(q+(ba*24|0)&n)+21>>0]=65;a[(q+(ba*24|0)&n)+22>>0]=1;b[(w&o)>>1]=(b[(w&o)>>1]|0)+1<<16>>16}}while(0);$=x;aa=c[($&p)+4>>2]|0;ba=ea;c[(ba&p)>>2]=c[($&p)>>2];c[(ba&p)+4>>2]=aa;c[(ca&p)+324>>2]=0;break}case 62:{_q(ca,0,c[(f+(da+-1<<4)&p)+16>>2]|0,c[(f+(da<<4)&p)+16>>2]|0,c[(f+(da+-2<<4)&p)+16>>2]|0);break}case 63:{$q(ca,0,0,0,0,c[(f+(da<<4)&p)+16>>2]|0,0,0,0,0)|0;break}case 64:{ar(ca,c[(f+(da+-1<<4)&p)+16>>2]|0);break}case 279:case 263:case 262:case 261:case 260:case 259:case 258:case 257:case 256:case 247:case 150:case 141:case 131:case 130:case 48:case 45:case 42:case 41:case 40:{aa=f+(da<<4)+16|0;ba=c[(aa&p)+4>>2]|0;ca=ea;c[(ca&p)>>2]=c[(aa&p)>>2];c[(ca&p)+4>>2]=ba;break}case 44:{l=f+(da<<4)+16|0;k=c[(ca&p)+484>>2]|0;if((k|0)!=0?(J=b[(k&o)+38>>1]|0,J<<16>>16>=1):0){ba=(J<<16>>16)+-1|0;aa=c[(k&p)+4>>2]|0;ca=Wq(c[(ca&p)>>2]|0,l)|0;c[(aa+(ba*24|0)&p)+12>>2]=ca;a[(aa+(ba*24|0)&n)+21>>0]=Xq(ca,aa+(ba*24|0)+22|0)|0}break}case 226:{l=da+-1|0;k=f+(l<<4)+16|0;r=f+(da<<4)+16|0;q=pr(c[(ca&p)>>2]|0,0,k,r)|0;s=da+-3|0;m=Zq(ca,75,c[(f+(s<<4)&p)+16>>2]|0,0,0)|0;c[(ea&p)>>2]=m;if(!m){Do(c[(ca&p)>>2]|0,q);q=0}else{c[(m&p)+20>>2]=kr(ca,0,q,0,0,0,0,0,0,0)|0;q=c[(ea&p)>>2]|0;ba=q+4|0;c[(ba&p)>>2]=c[(ba&p)>>2]|2099200;yr(ca,q)}if(c[(f+(da+-2<<4)&p)+16>>2]|0)c[(ea&p)>>2]=Zq(ca,19,q,0,0)|0;c[(ea&p)+4>>2]=c[(f+(s<<4)&p)+20>>2];h=c[(r&p)>>2]|0;if(!h)h=(c[(k&p)>>2]|0)+(c[(f+(l<<4)&p)+20>>2]|0)|0;else h=h+(c[(f+(da<<4)&p)+20>>2]|0)|0;c[(ea&p)+8>>2]=h;break}case 225:{l=da+-4|0;h=Zq(ca,75,c[(f+(l<<4)&p)+16>>2]|0,0,0)|0;c[(ea&p)>>2]=h;if(!h){Mk(c[(ca&p)>>2]|0,c[(f+(da+-1<<4)&p)+16>>2]|0,1);h=0}else{c[(h&p)+20>>2]=c[(f+(da+-1<<4)&p)+16>>2];h=c[(ea&p)>>2]|0;ba=h+4|0;c[(ba&p)>>2]=c[(ba&p)>>2]|2099200;yr(ca,h)}if(c[(f+(da+-3<<4)&p)+16>>2]|0)c[(ea&p)>>2]=Zq(ca,19,h,0,0)|0;c[(ea&p)+4>>2]=c[(f+(l<<4)&p)+20>>2];c[(ea&p)+8>>2]=(c[(f+(da<<4)&p)+16>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0);break}case 227:{h=Zq(ca,20,0,0,0)|0;c[(ea&p)>>2]=h;if(!h)Mk(c[(ca&p)>>2]|0,c[(f+(da+-1<<4)&p)+16>>2]|0,1);else{c[(h&p)+20>>2]=c[(f+(da+-1<<4)&p)+16>>2];ba=h+4|0;c[(ba&p)>>2]=c[(ba&p)>>2]|2099200;yr(ca,h)}c[(ea&p)+4>>2]=c[(f+(da+-3<<4)&p)+16>>2];c[(ea&p)+8>>2]=(c[(f+(da<<4)&p)+16>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0);break}case 228:{k=Zq(ca,136,c[(f+(da+-3<<4)&p)+16>>2]|0,0,0)|0;c[(ea&p)>>2]=k;if(!k){Nk(c[(ca&p)>>2]|0,c[(f+(da+-2<<4)&p)+16>>2]|0);Gk(c[(ca&p)>>2]|0,c[(f+(da+-1<<4)&p)+16>>2]|0)}else{l=c[(f+(da+-1<<4)&p)+16>>2]|0;h=c[(f+(da+-2<<4)&p)+16>>2]|0;if(l)h=lr(ca,h,l)|0;c[(k&p)+20>>2]=h;yr(ca,c[(ea&p)>>2]|0)}c[(ea&p)+4>>2]=c[(f+(da+-4<<4)&p)+16>>2];c[(ea&p)+8>>2]=(c[(f+(da<<4)&p)+16>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0);break}case 291:case 240:{c[(ea&p)>>2]=2;break}case 241:{c[(ea&p)>>2]=0;break}case 239:{$q(ca,f+(da+-7<<4)+16|0,f+(da+-6<<4)+16|0,pr(c[(ca&p)>>2]|0,0,f+(da+-4<<4)+16|0,0)|0,c[(f+(da+-2<<4)&p)+16>>2]|0,c[(f+(da+-10<<4)&p)+16>>2]|0,f+(da+-11<<4)+16|0,c[(f+(da<<4)&p)+16>>2]|0,0,c[(f+(da+-8<<4)&p)+16>>2]|0)|0;break}case 229:{c[(ea&p)>>2]=lr(ca,lr(ca,c[(f+(da+-4<<4)&p)+16>>2]|0,c[(f+(da+-2<<4)&p)+16>>2]|0)|0,c[(f+(da<<4)&p)+16>>2]|0)|0;break}case 230:{c[(ea&p)>>2]=lr(ca,lr(ca,0,c[(f+(da+-2<<4)&p)+16>>2]|0)|0,c[(f+(da<<4)&p)+16>>2]|0)|0;break}case 237:{c[(ea&p)>>2]=lr(ca,c[(f+(da+-2<<4)&p)+16>>2]|0,c[(f+(da<<4)&p)+16>>2]|0)|0;break}case 238:{c[(ea&p)>>2]=lr(ca,0,c[(f+(da<<4)&p)+16>>2]|0)|0;break}case 245:{h=lr(ca,0,vr(ca,0,f+(da+-1<<4)+16|0,1)|0)|0;c[(ea&p)>>2]=h;mr(ca,h,f+(da+-2<<4)+16|0,1);if(h){if((c[(h&p)>>2]|0)>(c[((c[(ca&p)>>2]|0)&p)+96>>2]|0)){c[(ba&p)>>2]=20632;th(ca,34544,ba)}a[((c[(h&p)+4>>2]|0)+(((c[(h&p)>>2]|0)+-1|0)*20|0)&n)+12>>0]=c[(f+(da<<4)&p)+16>>2]}break}case 244:{h=vr(ca,0,f+(da+-1<<4)+16|0,1)|0;h=lr(ca,c[(f+(da+-4<<4)&p)+16>>2]|0,h)|0;c[(ea&p)>>2]=h;mr(ca,h,f+(da+-2<<4)+16|0,1);if(h){if((c[(h&p)>>2]|0)>(c[((c[(ca&p)>>2]|0)&p)+96>>2]|0)){c[(ba&p)>>2]=20632;th(ca,34544,ba)}a[((c[(h&p)+4>>2]|0)+(((c[(h&p)>>2]|0)+-1|0)*20|0)&n)+12>>0]=c[(f+(da<<4)&p)+16>>2]}break}case 248:{v=c[(f+(da<<4)&p)+16>>2]|0;s=c[(f+(da+-1<<4)&p)+16>>2]|0;u=c[(ca&p)>>2]|0;do if((a[(u&n)+65>>0]|0)==0?(Gn(ca)|0)==0:0){r=v+12|0;k=bq(u,c[(v&p)+16>>2]|0,c[(r&p)>>2]|0)|0;if(!k){if(!s){c[(ba&p)>>2]=v;c[(ba&p)+4>>2]=0;th(ca,33056,ba)}else zr(ca,c[(r&p)>>2]|0);a[(ca&n)+17>>0]=1;break}if(a[(k&n)+51>>0]&3){c[(ba&p)>>2]=0;th(ca,33080,ba);break}s=c[(k&p)+24>>2]|0;f:do if(s){r=c[(u&p)+20>>2]|0;if((r|0)>0){q=c[(u&p)+16>>2]|0;t=0;while(1){m=t+1|0;if((c[(q+(t<<4)&p)+12>>2]|0)==(s|0)){m=t;break f}if((m|0)<(r|0))t=m;else break}}else m=0}else m=-1e6;while(0);s=c[(k&p)+12>>2]|0;r=u+16|0;q=c[((c[(r&p)>>2]|0)+(m<<4)&p)>>2]|0;l=(m|0)==1?13184:13208;if(((Sq(ca,9,l,0,q)|0)==0?(Sq(ca,(m|0)==0?10:12,c[(k&p)>>2]|0,c[(s&p)>>2]|0,q)|0)==0:0)?(K=Oq(ca)|0,(K|0)!=0):0){aa=c[(ca&p)+408>>2]|0;aa=(aa|0)==0?ca:aa;Ar(ca,m);$=aa+328|0;c[($&p)>>2]=c[($&p)>>2]|1<>0]=d[(aa&n)>>0]|1;aa=c[(k&p)>>2]|0;c[(ba&p)>>2]=c[((c[(r&p)>>2]|0)+(m<<4)&p)>>2];c[(ba&p)+4>>2]=l;c[(ba&p)+8>>2]=aa;Br(ca,33160,ba);Cr(ca,m,28536,c[(k&p)>>2]|0);Dr(ca,m);Er(ca,c[(k&p)+40>>2]|0,m);ca=c[(k&p)>>2]|0;xh(K,wh(K,125,m,0,0)|0,ca,0)}}while(0);Do(u,v);break}case 246:{c[(ea&p)>>2]=0;c[(ea&p)+4>>2]=0;break}case 250:case 249:{h=Oq(ca)|0;if(h){wh(h,13,0,0,0)|0;ca=h+96|0;c[(ca&p)>>2]=c[(ca&p)>>2]|1}break}case 251:{Fr(ca,f+(da+-1<<4)+16|0,f+(da<<4)+16|0,0,0);break}case 252:{Fr(ca,f+(da+-3<<4)+16|0,f+(da+-2<<4)+16|0,f+(da<<4)+16|0,0);break}case 253:{Fr(ca,f+(da+-4<<4)+16|0,f+(da+-3<<4)+16|0,f+(da+-1<<4)+16|0,0);break}case 254:{Fr(ca,f+(da+-3<<4)+16|0,f+(da+-2<<4)+16|0,f+(da<<4)+16|0,1);break}case 255:{Fr(ca,f+(da+-4<<4)+16|0,f+(da+-3<<4)+16|0,f+(da+-1<<4)+16|0,1);break}case 264:{h=c[(f+(da+-3<<4)&p)+16>>2]|0;l=(c[(f+(da<<4)&p)+16>>2]|0)-h+(c[(f+(da<<4)&p)+20>>2]|0)|0;k=c[(f+(da+-1<<4)&p)+16>>2]|0;aa=ca+488|0;z=c[(aa&p)>>2]|0;A=c[(ca&p)>>2]|0;c[(aa&p)>>2]=0;g:do if((c[(ca&p)+64>>2]|0)==0&(z|0)!=0){y=c[(z&p)>>2]|0;m=z+20|0;v=c[(m&p)>>2]|0;h:do if(v){u=c[(A&p)+20>>2]|0;if((u|0)>0){s=c[(A&p)+16>>2]|0;q=0;while(1){r=q+1|0;if((c[(s+(q<<4)&p)+12>>2]|0)==(v|0))break h;if((r|0)<(u|0))q=r;else{q=r;break}}}else q=0}else q=-1e6;while(0);c[(z&p)+28>>2]=k;x=(k|0)==0;if(!x){s=k;do{c[(s&p)+4>>2]=z;s=c[(s&p)+32>>2]|0}while((s|0)!=0)}c[(_&p)>>2]=y;if(!y)s=0;else{s=y;while(1)if(!(a[(s&n)>>0]|0))break;else s=s+1|0;s=s-y&1073741823}c[(_&p)+4>>2]=s;c[($&p)>>2]=ca;w=A+16|0;v=c[(w&p)>>2]|0;c[($&p)+12>>2]=c[(v+(q<<4)&p)>>2];c[($&p)+4>>2]=c[(v+(q<<4)&p)+12>>2];c[($&p)+16>>2]=10720;c[($&p)+20>>2]=_;v=(q|0)==1;c[($&p)+8>>2]=v&1;if(!x)do{if(fr($,c[(k&p)+8>>2]|0)|0){k=0;l=z;break g}if(Gr($,c[(k&p)+20>>2]|0)|0){k=0;l=z;break g}if(Hr($,c[(k&p)+24>>2]|0)|0){k=0;l=z;break g}k=c[(k&p)+32>>2]|0}while((k|0)!=0);if(!(Gr($,c[(z&p)+12>>2]|0)|0)){s=A+145|0;if(!(a[(s&n)>>0]|0)){r=Oq(ca)|0;if(!r){k=0;l=z;break}aa=c[(ca&p)+408>>2]|0;Ar(ca,q);aa=((aa|0)==0?ca:aa)+328|0;c[(aa&p)>>2]=c[(aa&p)>>2]|1<>0]=0}else t=0;aa=c[(z&p)+4>>2]|0;c[(ba&p)>>2]=c[((c[(w&p)>>2]|0)+(q<<4)&p)>>2];c[(ba&p)+4>>2]=v?13184:13208;c[(ba&p)+8>>2]=y;c[(ba&p)+12>>2]=aa;c[(ba&p)+16>>2]=t;Br(ca,30008,ba);mg(A,t);Dr(ca,q);c[(ba&p)>>2]=y;Ir(r,q,uh(A,30072,ba)|0);if(!(a[(s&n)>>0]|0)){k=0;l=z;break}}l=Ik((c[((c[(w&p)>>2]|0)+(q<<4)&p)+12>>2]|0)+40|0,y,z)|0;if(l){a[(A&n)+65>>0]=1;k=0;break}k=c[(m&p)>>2]|0;if((k|0)==(c[(z&p)+24>>2]|0)){k=bn(k+8|0,c[(z&p)+4>>2]|0,ba)|0;if(!k)k=0;else k=c[(k&p)+8>>2]|0;k=k+64|0;c[(z&p)+32>>2]=c[(k&p)>>2];c[(k&p)>>2]=z;k=0}else k=0}else{k=0;l=z}}else l=z;while(0);jg(A,l);Fk(A,k);break}case 265:{D=f+(da+-7<<4)+16|0;C=da+-6|0;E=f+(C<<4)+16|0;r=c[(f+(da+-5<<4)&p)+16>>2]|0;F=da+-4|0;B=c[(f+(F<<4)&p)+16>>2]|0;F=c[(f+(F<<4)&p)+20>>2]|0;H=c[(f+(da+-2<<4)&p)+16>>2]|0;I=c[(f+(da<<4)&p)+16>>2]|0;k=c[(f+(da+-8<<4)&p)+16>>2]|0;J=c[(ca&p)>>2]|0;z=(c[(f+(da+-10<<4)&p)+16>>2]|0)!=0;do if(z)if(!(c[(f+(C<<4)&p)+20>>2]|0)){c[($&p)>>2]=D;if(!H){s=0;t=0;break}else{v=1;aa=483;break}}else{th(ca,29664,ba);s=0;t=0;break}else{v=er(ca,D,E,$)|0;if((v|0)>-1&(H|0)!=0)aa=483;else{s=0;t=0}}while(0);do if((aa|0)==483){h=J+65|0;if(!(a[(h&n)>>0]|0)){x=J+145|0;if((a[(x&n)>>0]|0)!=0&(v|0)!=1){aa=H+12|0;mg(J,c[(aa&p)>>2]|0);c[(aa&p)>>2]=0}w=Jr(ca,H)|0;if((a[(x&n)>>0]|0)==0?((w|0)!=0?(c[(f+(C<<4)&p)+20>>2]|0)==0:0):0)v=(c[(w&p)+68>>2]|0)==(c[((c[(J&p)+16>>2]|0)&p)+28>>2]|0)?1:v;if((a[(h&n)>>0]|0)==0?(R=c[($&p)>>2]|0,aa=c[(ca&p)>>2]|0,c[(_&p)>>2]=ca,aa=c[(aa&p)+16>>2]|0,c[(_&p)+12>>2]=c[(aa+(v<<4)&p)>>2],c[(_&p)+4>>2]=c[(aa+(v<<4)&p)+12>>2],c[(_&p)+16>>2]=10720,c[(_&p)+20>>2]=R,c[(_&p)+8>>2]=(v|0)==1&1,(Kr(_,H)|0)==0):0){x=Jr(ca,H)|0;if(!x){if((a[(J&n)+144>>0]|0)!=1){s=0;t=0;break}a[(J&n)+146>>0]=1;s=0;t=0;break}if(a[(x&n)+44>>0]&16){th(ca,29712,ba);s=0;t=0;break}t=Wq(J,R)|0;if(t)if(!(Lr(ca,t)|0)){A=J+16|0;aa=bn((c[((c[(A&p)>>2]|0)+(v<<4)&p)+12>>2]|0)+40|0,t,S)|0;if((aa|0)!=0?(c[(aa&p)+8>>2]|0)!=0:0)if(!k){c[(ba&p)>>2]=R;th(ca,29760,ba);s=0;break}else{Ar(ca,v);s=0;break}y=c[(x&p)>>2]|0;if(!(Fc(y,25568,7)|0)){th(ca,29792,ba);s=ca+64|0;c[(s&p)>>2]=(c[(s&p)>>2]|0)+1;s=0;break}u=c[(x&p)+12>>2]|0;if((u|0)!=0&(r|0)!=49){c[(ba&p)>>2]=(r|0)==35?29872:29880;c[(ba&p)+4>>2]=H;c[(ba&p)+8>>2]=0;th(ca,29832,ba);s=0;break}q=(r|0)==49;if((u|0)==0&q){c[(ba&p)>>2]=H;c[(ba&p)+4>>2]=0;th(ca,29888,ba);s=0;break}m=x+68|0;x=c[(m&p)>>2]|0;i:do if(x){w=c[(J&p)+20>>2]|0;if((w|0)>0){k=c[(A&p)>>2]|0;l=0;while(1){h=l+1|0;if((c[(k+(l<<4)&p)+12>>2]|0)==(x|0)){h=l;break i}if((h|0)<(w|0))l=h;else break}}else h=0}else h=-1e6;while(0);x=c[(A&p)>>2]|0;k=c[(x+(h<<4)&p)>>2]|0;if(z)w=c[(x&p)+16>>2]|0;else w=k;x=(h|0)==1;if((Sq(ca,x|z?5:7,t,y,w)|0)==0?(Sq(ca,18,x?13184:13208,0,k)|0)==0:0){s=mh(J,36,0)|0;if(!s){s=0;break}y=s+0|0;k=y+36|0;do{a[(y&n)>>0]=0;y=y+1|0}while((y|0)<(k|0));c[(s&p)>>2]=t;c[(s&p)+4>>2]=kh(J,c[(H&p)+16>>2]|0)|0;c[(s&p)+20>>2]=c[((c[(A&p)>>2]|0)+(v<<4)&p)+12>>2];c[(s&p)+24>>2]=c[(m&p)>>2];a[(s&n)+8>>0]=B;a[(s&n)+9>>0]=q|(r|0)==35?1:2;c[(s&p)+12>>2]=Mr(J,I,1,0)|0;c[(s&p)+16>>2]=Nr(J,F)|0;c[(ca&p)+488>>2]=s;t=0}else s=0}else s=0;else{s=0;t=0}}else{s=0;t=0}}else{s=0;t=0}}while(0);mg(J,t);Do(J,H);Hk(J,F);Gk(J,I);if(!(c[(ca&p)+488>>2]|0))jg(J,s);if(!(c[(f+(C<<4)&p)+20>>2]|0)){aa=D;ba=c[(aa&p)+4>>2]|0;ca=ea;c[(ca&p)>>2]=c[(aa&p)>>2];c[(ca&p)+4>>2]=ba;break a}else{aa=E;ba=c[(aa&p)+4>>2]|0;ca=ea;c[(ca&p)>>2]=c[(aa&p)>>2];c[(ca&p)+4>>2]=ba;break a}}case 269:case 266:{c[(ea&p)>>2]=35;break}case 267:{c[(ea&p)>>2]=31;break}case 268:{c[(ea&p)>>2]=49;break}case 284:{l=c[(ca&p)>>2]|0;k=c[(f+(da+-1<<4)&p)+16>>2]|0;h=c[(f+(da<<4)&p)+16>>2]|0;m=a[(f+(da+-5<<4)&n)+16>>0]|0;q=Or(l,110,f+(da+-4<<4)+16|0)|0;if(q){c[(q&p)+24>>2]=Pr(l,k,1)|0;c[(q&p)+20>>2]=Mr(l,h,1,0)|0;a[(q&n)+1>>0]=m}Nk(l,k);Gk(l,h);c[(ea&p)>>2]=q;break}case 271:case 270:{c[(ea&p)>>2]=d[(f+(da<<4)&n)+14>>0];c[(ea&p)+4>>2]=0;break}case 272:{c[(ea&p)>>2]=110;c[(ea&p)+4>>2]=c[(f+(da<<4)&p)+16>>2];break}case 296:case 275:{c[(ea&p)>>2]=0;break}case 297:case 276:{c[(ea&p)>>2]=c[(f+(da<<4)&p)+16>>2];break}case 277:{ba=f+(da+-1<<4)+16|0;ca=f+(da+-2<<4)+16|0;c[((c[((c[(ca&p)>>2]|0)&p)+36>>2]|0)&p)+32>>2]=c[(ba&p)>>2];c[((c[(ca&p)>>2]|0)&p)+36>>2]=c[(ba&p)>>2];c[(ea&p)>>2]=c[(ca&p)>>2];break}case 278:{ca=f+(da+-1<<4)+16|0;ba=c[(ca&p)>>2]|0;c[(ba&p)+36>>2]=ba;c[(ea&p)>>2]=c[(ca&p)>>2];break}case 282:{th(ca,20736,ba);break}case 280:{_=f+(da<<4)+16|0;$=c[(_&p)+4>>2]|0;aa=ea;c[(aa&p)>>2]=c[(_&p)>>2];c[(aa&p)+4>>2]=$;th(ca,20640,ba);break}case 283:{th(ca,20824,ba);break}case 286:{h=c[(ca&p)>>2]|0;k=c[(f+(da<<4)&p)+16>>2]|0;l=Or(h,109,f+(da+-2<<4)+16|0)|0;if(l){c[(l&p)+20>>2]=Mr(h,k,1,0)|0;a[(l&n)+1>>0]=10}Gk(h,k);c[(ea&p)>>2]=l;break}case 287:{l=c[(ca&p)>>2]|0;q=c[(f+(da<<4)&p)+16>>2]|0;h=mh(l,40,0)|0;if(!h){Mk(l,q,1);h=0}else{y=h+0|0;k=y+40|0;do{a[(y&n)>>0]=0;y=y+1|0}while((y|0)<(k|0));a[(h&n)>>0]=119;c[(h&p)+8>>2]=q;a[(h&n)+1>>0]=10}c[(ea&p)>>2]=h;break}case 285:{q=c[(ca&p)>>2]|0;m=c[(f+(da+-1<<4)&p)+16>>2]|0;l=c[(f+(da<<4)&p)+16>>2]|0;k=a[(f+(da+-4<<4)&n)+16>>0]|0;h=Or(q,108,f+(da+-2<<4)+16|0)|0;if(!h)Hk(q,m);else{c[(h&p)+8>>2]=gr(q,l,1)|0;c[(h&p)+28>>2]=m;a[(h&n)+1>>0]=k}Mk(q,l,1);c[(ea&p)>>2]=h;break}case 288:{h=Zq(ca,57,0,0,0)|0;c[(ea&p)>>2]=h;if(h)a[(h&n)+1>>0]=4;c[(ea&p)+4>>2]=c[(f+(da+-3<<4)&p)+16>>2];c[(ea&p)+8>>2]=(c[(f+(da<<4)&p)+16>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0);break}case 289:{h=Zq(ca,57,0,0,f+(da+-1<<4)+16|0)|0;c[(ea&p)>>2]=h;if(h)a[(h&n)+1>>0]=c[(f+(da+-3<<4)&p)+16>>2];c[(ea&p)+4>>2]=c[(f+(da+-5<<4)&p)+16>>2];c[(ea&p)+8>>2]=(c[(f+(da<<4)&p)+16>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0);break}case 290:{c[(ea&p)>>2]=1;break}case 292:{c[(ea&p)>>2]=3;break}case 293:{k=c[(f+(da<<4)&p)+16>>2]|0;h=c[(f+(da+-1<<4)&p)+16>>2]|0;w=c[(ca&p)>>2]|0;do if((a[(w&n)+65>>0]|0)==0?(Gn(ca)|0)==0:0){x=c[(k&p)+12>>2]|0;v=c[(k&p)+16>>2]|0;u=w+20|0;if((c[(u&p)>>2]|0)>0){q=(x|0)==0;m=w+16|0;l=0;s=0;do{r=(l|0)<2^l;t=c[(m&p)>>2]|0;if(!(!q?(dd(c[(t+(r<<4)&p)>>2]|0,x)|0)!=0:0)){t=bn((c[(t+(r<<4)&p)+12>>2]|0)+40|0,v,L)|0;if(t){s=c[(t&p)+8>>2]|0;if(s)break}else s=0}l=l+1|0}while((l|0)<(c[(u&p)>>2]|0));if(s){Qr(ca,s);break}}if(!h){c[(ba&p)>>2]=k;c[(ba&p)+4>>2]=0;th(ca,29600,ba)}else zr(ca,x);a[(ca&n)+17>>0]=1}while(0);Do(w,k);break}case 294:{ba=c[(f+(da+-3<<4)&p)+16>>2]|0;Rr(ca,24,29360,ba,ba,c[(f+(da+-1<<4)&p)+16>>2]|0,c[(f+(da<<4)&p)+16>>2]|0);break}case 303:{Tr(ca,f+(da+-1<<4)+16|0,f+(da<<4)+16|0);break}case 304:{z=c[(f+(da+-3<<4)&p)+16>>2]|0;x=f+(da<<4)+16|0;y=c[(ca&p)>>2]|0;k=y+24|0;l=c[(k&p)>>2]|0;do if((a[(y&n)+65>>0]|0)==0?(X=Ur(ca,0,z+8|0)|0,(X|0)!=0):0){t=c[(ca&p)>>2]|0;A=X+68|0;v=c[(A&p)>>2]|0;j:do if(v){u=c[(t&p)+20>>2]|0;if((u|0)>0){t=c[(t&p)+16>>2]|0;r=0;while(1){s=r+1|0;if((c[(t+(r<<4)&p)+12>>2]|0)==(v|0)){s=r;break j}if((s|0)<(u|0))r=s;else break}}else s=0}else s=-1e6;while(0);h=c[((c[(y&p)+16>>2]|0)+(s<<4)&p)>>2]|0;c[(k&p)>>2]=c[(k&p)>>2]|2097152;q=Wq(y,x)|0;if(q){if((_h(y,q,h)|0)==0?(bq(y,q,h)|0)==0:0){if(Vr(ca,c[(X&p)>>2]|0)|0)break;if(Lr(ca,q)|0)break;t=c[(X&p)>>2]|0;if(c[(X&p)+12>>2]|0){c[(ba&p)>>2]=t;th(ca,26088,ba);break}if(Sq(ca,26,h,t,0)|0)break;if(hr(ca,X)|0)break;if(!(a[(X&n)+44>>0]&16))m=0;else{t=c[(X&p)+60>>2]|0;k:do if(!t)t=0;else while(1){if((c[(t&p)>>2]|0)==(y|0))break k;t=c[(t&p)+24>>2]|0;if(!t){t=0;break}}while(0);m=(c[((c[(c[(t&p)+8>>2]&p)>>2]|0)&p)+76>>2]|0)==0?0:t}t=Oq(ca)|0;if(!t)break;aa=(m|0)!=0;r=ca+408|0;$=c[(r&p)>>2]|0;$=($|0)==0?ca:$;Ar(ca,s);_=$+328|0;c[(_&p)>>2]=c[(_&p)>>2]|1<>0]=d[($&n)>>0]|aa&1;Dr(ca,s);if(aa){$=ca+72|0;aa=(c[($&p)>>2]|0)+1|0;c[($&p)>>2]=aa;xh(t,wh(t,97,0,aa,0)|0,q,0);xh(t,wh(t,152,aa,0,0)|0,m,-10);aa=c[(r&p)>>2]|0;a[(((aa|0)==0?ca:aa)&n)+21>>0]=1}x=c[(X&p)>>2]|0;w=Nn(x,-1)|0;do if((c[(k&p)>>2]&524288|0)!=0?(T=bn((c[(A&p)>>2]|0)+56|0,x,V)|0,(T|0)!=0):0){t=c[(T&p)+8>>2]|0;if(!t)break;r=t;t=0;do{t=Wr(c[(ca&p)>>2]|0,t,c[(c[(r&p)>>2]&p)>>2]|0)|0;r=c[(r&p)+12>>2]|0}while((r|0)!=0);if(!t)break;c[(ba&p)>>2]=h;c[(ba&p)+4>>2]=(s|0)==1?13184:13208;c[(ba&p)+8>>2]=x;c[(ba&p)+12>>2]=q;c[(ba&p)+16>>2]=t;Br(ca,26120,ba);mg(y,t)}while(0);c[(ba&p)>>2]=h;c[(ba&p)+4>>2]=(s|0)==1?13184:13208;c[(ba&p)+8>>2]=q;c[(ba&p)+12>>2]=q;c[(ba&p)+16>>2]=q;c[(ba&p)+20>>2]=q;c[(ba&p)+24>>2]=q;c[(ba&p)+28>>2]=w;c[(ba&p)+32>>2]=x;Br(ca,26192,ba);if(_h(y,26576,h)|0){aa=c[(X&p)>>2]|0;c[(ba&p)>>2]=h;c[(ba&p)+4>>2]=q;c[(ba&p)+8>>2]=aa;Br(ca,26592,ba)}s=Xr(ca,X)|0;if(s){c[(ba&p)>>2]=q;c[(ba&p)+4>>2]=q;c[(ba&p)+8>>2]=s;Br(ca,26656,ba);mg(y,s)}do if(c[(k&p)>>2]&524288){s=bn((c[(A&p)>>2]|0)+56|0,c[(X&p)>>2]|0,ba)|0;if(!s)break;s=c[(s&p)+8>>2]|0;if(!s)break;do{r=c[(s&p)>>2]|0;if((r|0)!=(X|0))Yr(ca,r,c[(r&p)>>2]|0);s=c[(s&p)+12>>2]|0}while((s|0)!=0)}while(0);Yr(ca,X,q);break}c[(ba&p)>>2]=q;th(ca,26024,ba)}else q=0}else q=0;while(0);Do(y,z);mg(y,q);c[(k&p)>>2]=l;break}case 295:{ba=c[(f+(da<<4)&p)+16>>2]|0;Rr(ca,25,29176,ba,0,0,ba);break}case 300:{Sr(ca,0,0);break}case 302:{Tr(ca,0,0);break}case 301:{Sr(ca,f+(da+-1<<4)+16|0,f+(da<<4)+16|0);break}case 305:{y=c[(ca&p)>>2]|0;if((c[(ca&p)+64>>2]|0)==0?(M=y+65|0,(a[(M&n)>>0]|0)==0):0){l=c[(ca&p)+484>>2]|0;t=c[(l&p)+68>>2]|0;l:do if(t){s=c[(y&p)+20>>2]|0;if((s|0)>0){r=c[(y&p)+16>>2]|0;m=0;while(1){q=m+1|0;if((c[(r+(m<<4)&p)+12>>2]|0)==(t|0)){A=m;break l}if((q|0)<(s|0))m=q;else{A=q;break}}}else A=0}else A=-1e6;while(0);h=c[((c[(y&p)+16>>2]|0)+(A<<4)&p)>>2]|0;k=(c[(l&p)>>2]|0)+16|0;u=(b[(l&o)+38>>1]|0)+-1|0;s=c[(l&p)+4>>2]|0;t=c[(s+(u*24|0)&p)+4>>2]|0;z=_h(y,k,h)|0;if(!(Sq(ca,26,h,c[(z&p)>>2]|0,0)|0)){if(!t)v=0;else v=(a[(t&n)>>0]|0)==101?0:t;if(a[(s+(u*24|0)&n)+23>>0]&1){th(ca,25608,ba);break a}if(c[(l&p)+8>>2]|0){th(ca,25640,ba);break a}x=y+24|0;if((c[(x&p)>>2]&524288|0)!=0?(c[(l&p)+16>>2]|0)!=0&(v|0)!=0:0){th(ca,25672,ba);break a}w=(v|0)!=0;if(!((a[(s+(u*24|0)&n)+20>>0]|0)==0|w)){th(ca,25736,ba);break a}do if(w){c[(O&p)>>2]=0;if(Zr(y,v,1,65,O)|0){a[(M&n)>>0]=1;break a}t=c[(O&p)>>2]|0;if(!t){th(ca,25792,ba);break a}else{Mh(t);break}}while(0);t=c[(f+(da<<4)&p)+16>>2]|0;s=f+(da<<4)+20|0;r=c[(s&p)>>2]|0;if((t|0)!=0?(U=jw(r|0,0,1,0)|0,U=mh(y,U,G)|0,(U|0)!=0):0){kw(U|0,t|0,r|0)|0;a[(U+r&n)>>0]=0;t=(c[(s&p)>>2]|0)+-1|0;s=c[(x&p)>>2]|0;m:do if((t|0)>0){t=U+t|0;do{$=a[(t&n)>>0]|0;if($<<24>>24!=59?(a[($&255&n)+10368>>0]&1)==0:0)break m;a[(t&n)>>0]=0;t=t+-1|0}while(t>>>0>U>>>0)}while(0);c[(x&p)>>2]=c[(x&p)>>2]|2097152;$=c[(l&p)+48>>2]|0;c[(ba&p)>>2]=h;c[(ba&p)+4>>2]=(A|0)==1?13184:13208;c[(ba&p)+8>>2]=$;c[(ba&p)+12>>2]=U;c[(ba&p)+16>>2]=$+1;c[(ba&p)+20>>2]=k;Br(ca,25840,ba);mg(y,U);c[(x&p)>>2]=s}t=w?3:2;v=Oq(ca)|0;if(v){s=ca+19|0;q=a[(s&n)>>0]|0;do if(q<<24>>24){ba=q+-1<<24>>24;a[(s&n)>>0]=ba;r=c[(ca+((ba&255)<<2)&p)+24>>2]|0;if(!(ba<<24>>24)){s=c[(ca&p)+72>>2]|0;aa=663;break}else{k=q+-2<<24>>24;a[(s&n)>>0]=k;k=c[(ca+((k&255)<<2)&p)+24>>2]|0;break}}else{r=ca+72|0;s=(c[(r&p)>>2]|0)+1|0;c[(r&p)>>2]=s;r=s;aa=663}while(0);if((aa|0)==663){k=s+1|0;c[(ca&p)+72>>2]=k}wh(v,51,A,r,2)|0;m=v+96|0;c[(m&p)>>2]=c[(m&p)>>2]|1<>2]|0;s=v+32|0;if(q)a[(q+(((c[(s&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=-112;wh(v,52,A,2,k)|0;s=c[(s&p)>>2]|0;if(s>>>0>m>>>0)c[((c[(l&p)>>2]|0)+(m*20|0)&p)+8>>2]=s;c[((c[(v&p)+24>>2]|0)&p)+88>>2]=s+-1;_r(ca,r);_r(ca,k)}Yr(ca,z,c[(z&p)>>2]|0)}}break}case 306:{w=c[(ca&p)>>2]|0;a[(w&n)+250>>0]=0;h=c[(f+(da<<4)&p)+16>>2]|0;x=w+65|0;do if((a[(x&n)>>0]|0)==0?(Q=Ur(ca,0,h+8|0)|0,(Q|0)!=0):0){if(a[(Q&n)+44>>0]&16){th(ca,25400,ba);break}if(c[(Q&p)+12>>2]|0){th(ca,25440,ba);break}if(!(Vr(ca,c[(Q&p)>>2]|0)|0)){s=c[(Q&p)+68>>2]|0;n:do if(s){r=c[(w&p)+20>>2]|0;if((r|0)>0){q=c[(w&p)+16>>2]|0;t=0;while(1){m=t+1|0;if((c[(q+(t<<4)&p)+12>>2]|0)==(s|0)){m=t;break n}if((m|0)<(r|0))t=m;else break}}else m=0}else m=-1e6;while(0);v=mh(w,76,0)|0;if(v){y=v+0|0;k=y+76|0;do{a[(y&n)>>0]=0;y=y+1|0}while((y|0)<(k|0));c[(ca&p)+484>>2]=v;r=v+40|0;b[(r&o)>>1]=1;t=b[(Q&o)+38>>1]|0;q=v+38|0;b[(q&o)>>1]=t;t=((((t<<16>>16)+-1|0)/8|0)*192|0)+192|0;s=mh(w,t,0)|0;if(s)fw(s|0,0,t|0)|0;t=v+4|0;c[(t&p)>>2]=s;c[(ba&p)>>2]=c[(Q&p)>>2];ba=uh(w,25472,ba)|0;c[(v&p)>>2]=ba;s=c[(t&p)>>2]|0;if((s|0)==0|(ba|0)==0){a[(x&n)>>0]=1;break}kw(s|0,c[(Q&p)+4>>2]|0,(b[(q&o)>>1]|0)*24|0)|0;if((b[(q&o)>>1]|0)>0){s=0;do{ba=c[(t&p)>>2]|0;aa=ba+(s*24|0)|0;c[(aa&p)>>2]=kh(w,c[(aa&p)>>2]|0)|0;ba=ba+(s*24|0)+4|0;s=s+1|0;c[(ba&p)>>2]=0;c[(ba&p)+4>>2]=0;c[(ba&p)+8>>2]=0;c[(ba&p)+12>>2]=0}while((s|0)<(b[(q&o)>>1]|0))}c[(v&p)+68>>2]=c[((c[(w&p)+16>>2]|0)+(m<<4)&p)+12>>2];c[(v&p)+48>>2]=c[(Q&p)+48>>2];b[(r&o)>>1]=1;ba=c[(ca&p)+408>>2]|0;Ar(ca,m);ba=((ba|0)==0?ca:ba)+328|0;c[(ba&p)>>2]=c[(ba&p)>>2]|1<>2]|0);t=c[(ca&p)+484>>2]|0;if(t){h=c[(ca&p)>>2]|0;s=c[(t&p)+68>>2]|0;o:do if(s){r=c[(h&p)+20>>2]|0;if((r|0)>0){m=c[(h&p)+16>>2]|0;l=0;while(1){q=l+1|0;if((c[(m+(l<<4)&p)+12>>2]|0)==(s|0)){q=l;break o}if((q|0)<(r|0))l=q;else break}}else q=0}else q=-1e6;while(0);l=t+44|0;a[(l&n)>>0]=d[(l&n)>>0]|16;c[(t&p)+52>>2]=0;as(h,t,Wq(h,k)|0);as(h,t,0);as(h,t,kh(h,c[(t&p)>>2]|0)|0);c[(ca&p)+500>>2]=(c[(k&p)>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0)-(c[(ca&p)+496>>2]|0);l=c[(t&p)+56>>2]|0;if(l)Sq(ca,29,c[(t&p)>>2]|0,c[(l&p)>>2]|0,c[((c[((c[(ca&p)>>2]|0)&p)+16>>2]|0)+(q<<4)&p)>>2]|0)|0}break}case 322:{c[(ea&p)>>2]=0;break}case 324:case 323:{c[(ea&p)>>2]=c[(f+(da<<4)&p)+16>>2];break}case 325:{c[(ea&p)>>2]=cs(ca,0,f+(da+-5<<4)+16|0,c[(f+(da+-4<<4)&p)+16>>2]|0,c[(f+(da+-1<<4)&p)+16>>2]|0)|0;break}case 326:{c[(ea&p)>>2]=cs(ca,c[(f+(da+-7<<4)&p)+16>>2]|0,f+(da+-5<<4)+16|0,c[(f+(da+-4<<4)&p)+16>>2]|0,c[(f+(da+-1<<4)&p)+16>>2]|0)|0;break}case 314:{bs(ca);c[(ca&p)+512>>2]=0;c[(ca&p)+516>>2]=0;break}case 318:case 317:case 316:{l=ca+512|0;k=c[(l&p)>>2]|0;h=c[(f+(da<<4)&p)+16>>2]|0;if(!k){c[(l&p)>>2]=h;h=c[(f+(da<<4)&p)+20>>2]|0}else h=h+(c[(f+(da<<4)&p)+20>>2]|0)-k|0;c[(ca&p)+516>>2]=h;break}case 77:{c[(ea&p)>>2]=8;break}case 78:{c[(ea&p)>>2]=9;break}case 79:{c[(ea&p)>>2]=6;break}case 80:{c[(ea&p)>>2]=0;break}case 103:case 100:case 98:case 82:{c[(ea&p)>>2]=c[(f+(da<<4)&p)+16>>2];break}case 86:{c[(ea&p)+4>>2]=0;c[(ea&p)>>2]=0;break}case 87:{aa=f+(da+-1<<4)+16|0;ba=c[(aa&p)+4>>2]|0;ca=ea;c[(ca&p)>>2]=c[(aa&p)>>2];c[(ca&p)+4>>2]=ba;break}case 90:{c[(ca&p)+324>>2]=0;break}case 109:{h=da+-7|0;r=f+(da+-3<<4)+16|0;q=f+(da+-2<<4)+16|0;x=c[(f+(da<<4)&p)+16>>2]|0;t=c[(f+(da+-6<<4)&p)+16>>2]|0;s=c[(f+(da+-4<<4)&p)+16>>2]|0;c[(I&p)>>2]=0;w=c[(ca&p)>>2]|0;if((c[(ca&p)+440>>2]|0)>0){th(ca,35440,ba);Mk(w,x,1);break a}Uq(ca,r,q,t,1,0,s);l=c[(ca&p)+484>>2]|0;if((l|0)!=0?(c[(ca&p)+64>>2]|0)==0:0){er(ca,r,q,I)|0;t=c[(l&p)+68>>2]|0;p:do if(t){r=c[(w&p)+20>>2]|0;if((r|0)>0){q=c[(w&p)+16>>2]|0;m=0;while(1){s=m+1|0;if((c[(q+(m<<4)&p)+12>>2]|0)==(t|0)){s=m;break p}if((s|0)<(r|0))m=s;else break}}else s=0}else s=-1e6;while(0);ba=c[(I&p)>>2]|0;aa=c[(ca&p)>>2]|0;c[(_&p)>>2]=ca;aa=c[(aa&p)+16>>2]|0;c[(_&p)+12>>2]=c[(aa+(s<<4)&p)>>2];c[(_&p)+4>>2]=c[(aa+(s<<4)&p)+12>>2];c[(_&p)+16>>2]=35480;c[(_&p)+20>>2]=ba;c[(_&p)+8>>2]=(s|0)==1&1;if(fr(_,x)|0){Mk(w,x,1);break a}c[(l&p)+12>>2]=gr(w,x,1)|0;Mk(w,x,1);if(a[(w&n)+65>>0]|0)break a;if(!(a[(w&n)+145>>0]|0))hr(ca,l)|0;q=ca+504|0;m=c[(q&p)>>2]|0;q=c[(q&p)+4>>2]|0;ba=$;c[(ba&p)>>2]=m;c[(ba&p)+4>>2]=q;ba=a[(m&n)>>0]|0;if(!(ba<<24>>24==59|ba<<24>>24==0)){m=m+q|0;c[($&p)>>2]=m}r=$+4|0;c[(r&p)>>2]=0;s=c[(f+(h<<4)&p)+16>>2]|0;q=m-s|0;do{ba=q;q=q+-1|0;l=s+q|0;if((ba|0)<=0)break}while((a[((d[(l&n)>>0]|0)&n)+10368>>0]&1)!=0);c[($&p)>>2]=l;c[(r&p)>>2]=1;Vq(ca,0,$,0,0);break a}Mk(w,x,1);break}case 93:{_q(ca,c[(f+(da+-3<<4)&p)+16>>2]|0,c[(f+(da<<4)&p)+16>>2]|0,c[(f+(da+-2<<4)&p)+16>>2]|0,0);break}case 94:{$q(ca,0,0,0,c[(f+(da+-2<<4)&p)+16>>2]|0,c[(f+(da<<4)&p)+16>>2]|0,0,0,0,0)|0;break}case 95:{ar(ca,c[(f+(da+-2<<4)&p)+16>>2]|0);break}case 96:{br(ca,c[(f+(da+-6<<4)&p)+16>>2]|0,f+(da+-3<<4)+16|0,c[(f+(da+-2<<4)&p)+16>>2]|0,c[(f+(da+-1<<4)&p)+16>>2]|0);k=c[(f+(da<<4)&p)+16>>2]|0;l=c[(ca&p)+484>>2]|0;if((l|0)!=0?(q=c[(l&p)+16>>2]|0,(q|0)!=0):0)a[(q&n)+24>>0]=k;break}case 99:{c[(ea&p)>>2]=10;break}case 101:{a[(ea&n)>>0]=10;break}case 102:{a[(ea&n)>>0]=c[(f+(da<<4)&p)+16>>2];break}case 104:{c[(ea&p)>>2]=4;break}case 105:{c[(ea&p)>>2]=5;break}case 106:{dr(ca,c[(f+(da<<4)&p)+16>>2]|0,0,c[(f+(da+-1<<4)&p)+16>>2]|0);break}case 110:{dr(ca,c[(f+(da<<4)&p)+16>>2]|0,1,c[(f+(da+-1<<4)&p)+16>>2]|0);break}case 111:{c[(z&p)>>2]=c[5124];c[(z&p)+4>>2]=c[5125];c[(z&p)+8>>2]=c[5126];c[(z&p)+12>>2]=c[5127];c[(z&p)+16>>2]=c[5128];ba=f+(da<<4)+16|0;ir(ca,c[(ba&p)>>2]|0,z)|0;Mk(c[(ca&p)>>2]|0,c[(ba&p)>>2]|0,1);break}case 112:{t=c[(f+(da<<4)&p)+16>>2]|0;do if(t){c[(t&p)+68>>2]=c[(f+(da+-1<<4)&p)+16>>2];l=c[(t&p)+52>>2]|0;if(l){m=128;q=1;r=t;s=0;while(1){c[(r&p)+56>>2]=s;$=r+6|0;aa=e[($&o)>>1]|64;b[($&o)>>1]=aa;m=aa&m;if(!l)break;aa=l;l=c[(l&p)+52>>2]|0;q=q+1|0;s=r;r=aa}if(m){ca=t+6|0;b[(ca&o)>>1]=e[(ca&o)>>1]|256;break}aa=c[((c[(ca&p)>>2]|0)&p)+104>>2]|0;if((aa|0)>0&(q|0)>(aa|0))th(ca,20520,ba)}}else Qn(c[(ca&p)>>2]|0,c[(f+(da+-1<<4)&p)+16>>2]|0);while(0);c[(ea&p)>>2]=t;break}case 116:{c[(ea&p)>>2]=116;break}case 119:case 113:{c[(ea&p)>>2]=c[(f+(da<<4)&p)+16>>2];break}case 114:{h=c[(f+(da<<4)&p)+16>>2]|0;do if(h){if(c[(h&p)+52>>2]|0){c[(l&p)+4>>2]=0;h=kr(ca,0,jr(ca,0,0,0,l,h,0,0)|0,0,0,0,0,0,0,0)|0;if(!h){aa=192;break}}ba=c[(f+(da+-1<<4)&p)+16>>2]|0;a[(h&n)+4>>0]=ba;c[(h&p)+52>>2]=c[(f+(da+-2<<4)&p)+16>>2];if((ba|0)!=116)a[(ca&n)+22>>0]=1}else aa=192;while(0);if((aa|0)==192){Mk(c[(ca&p)>>2]|0,c[(f+(da+-2<<4)&p)+16>>2]|0,1);h=0}c[(ea&p)>>2]=h;break}case 121:{h=kr(ca,c[(f+(da+-1<<4)&p)+16>>2]|0,0,0,0,0,0,128,0,0)|0;if(!h){c[(ea&p)>>2]=c[(f+(da+-4<<4)&p)+16>>2];break a}else{a[(h&n)+4>>0]=116;c[(h&p)+52>>2]=c[(f+(da+-4<<4)&p)+16>>2];c[(ea&p)>>2]=h;break a}}case 122:{b[(ea&o)>>1]=1;break}case 124:case 123:{b[(ea&o)>>1]=0;break}case 242:case 236:case 161:case 154:case 126:{c[(ea&p)>>2]=0;break}case 243:case 125:{c[(ea&p)>>2]=c[(f+(da+-1<<4)&p)+16>>2];break}case 167:{c[(ea&p)>>2]=c[(f+(da+-2<<4)&p)+16>>2];c[(ea&p)+4>>2]=c[(f+(da<<4)&p)+16>>2];break}case 168:{c[(ea&p)+4>>2]=c[(f+(da+-2<<4)&p)+16>>2];c[(ea&p)>>2]=c[(f+(da<<4)&p)+16>>2];break}case 169:{h=c[(f+(da+-5<<4)&p)+16>>2]|0;if(h){ba=ca+532|0;c[(h&p)+4>>2]=c[(ba&p)>>2];c[(ba&p)>>2]=h;a[(ca&n)+449>>0]=1}ba=f+(da+-2<<4)+16|0;or(ca,c[(ba&p)>>2]|0,f+(da+-1<<4)+16|0);rr(ca,c[(ba&p)>>2]|0,c[(f+(da<<4)&p)+16>>2]|0);break}case 176:{h=c[(f+(da+-6<<4)&p)+16>>2]|0;if(h){ba=ca+532|0;c[(h&p)+4>>2]=c[(ba&p)>>2];c[(ba&p)>>2]=h;a[(ca&n)+449>>0]=1}tr(ca,c[(f+(da+-3<<4)&p)+16>>2]|0,0,c[(f+(da+-2<<4)&p)+16>>2]|0,d[(f+(da+-5<<4)&n)+16>>0]|0);break}case 173:{ba=lr(ca,c[(f+(da+-4<<4)&p)+16>>2]|0,c[(f+(da<<4)&p)+16>>2]|0)|0;c[(ea&p)>>2]=ba;mr(ca,ba,f+(da+-2<<4)+16|0,1);break}case 174:{ba=lr(ca,0,c[(f+(da<<4)&p)+16>>2]|0)|0;c[(ea&p)>>2]=ba;mr(ca,ba,f+(da+-2<<4)+16|0,1);break}case 175:{h=c[(f+(da+-5<<4)&p)+16>>2]|0;if(h){ba=ca+532|0;c[(h&p)+4>>2]=c[(ba&p)>>2];c[(ba&p)>>2]=h;a[(ca&n)+449>>0]=1}tr(ca,c[(f+(da+-2<<4)&p)+16>>2]|0,c[(f+(da<<4)&p)+16>>2]|0,c[(f+(da+-1<<4)&p)+16>>2]|0,d[(f+(da+-4<<4)&n)+16>>0]|0);break}case 181:{c[(ea&p)>>2]=ur(c[(ca&p)>>2]|0,c[(f+(da+-2<<4)&p)+16>>2]|0,f+(da<<4)+16|0)|0;break}case 182:{c[(ea&p)>>2]=ur(c[(ca&p)>>2]|0,0,f+(da<<4)+16|0)|0;break}case 183:{ca=f+(da<<4)+16|0;c[(ea&p)>>2]=c[(ca&p)>>2];c[(ea&p)+4>>2]=c[(ca&p)+4>>2];c[(ea&p)+8>>2]=c[(ca&p)+8>>2];break}case 177:{a[(ea&n)>>0]=a[(f+(da<<4)&n)+16>>0]|0;break}case 178:{a[(ea&n)>>0]=5;break}case 184:{c[(ea&p)>>2]=c[(f+(da+-1<<4)&p)+16>>2];c[(ea&p)+4>>2]=c[(f+(da+-2<<4)&p)+16>>2];c[(ea&p)+8>>2]=(c[(f+(da<<4)&p)+16>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0);break}case 191:case 190:case 185:{ba=f+(da<<4)+16|0;c[(ea&p)>>2]=Zq(ca,d[(f+(da<<4)&n)+14>>0]|0,0,0,ba)|0;ca=c[(ba&p)>>2]|0;c[(ea&p)+4>>2]=ca;c[(ea&p)+8>>2]=ca+(c[(f+(da<<4)&p)+20>>2]|0);break}case 187:case 186:{ba=f+(da<<4)+16|0;c[(ea&p)>>2]=Zq(ca,27,0,0,ba)|0;ca=c[(ba&p)>>2]|0;c[(ea&p)+4>>2]=ca;c[(ea&p)+8>>2]=ca+(c[(f+(da<<4)&p)+20>>2]|0);break}case 188:{aa=f+(da+-2<<4)+16|0;ba=f+(da<<4)+16|0;c[(ea&p)>>2]=Zq(ca,122,Zq(ca,27,0,0,aa)|0,Zq(ca,27,0,0,ba)|0,0)|0;c[(ea&p)+4>>2]=c[(aa&p)>>2];c[(ea&p)+8>>2]=(c[(ba&p)>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0);break}case 189:{aa=f+(da+-4<<4)+16|0;ba=f+(da<<4)+16|0;c[(ea&p)>>2]=Zq(ca,122,Zq(ca,27,0,0,aa)|0,Zq(ca,122,Zq(ca,27,0,0,f+(da+-2<<4)+16|0)|0,Zq(ca,27,0,0,ba)|0,0)|0,0)|0;c[(ea&p)+4>>2]=c[(aa&p)>>2];c[(ea&p)+8>>2]=(c[(ba&p)>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0);break}case 192:{x=f+(da<<4)+16|0;w=f+(da<<4)+20|0;do if(((c[(w&p)>>2]|0)>>>0>1?(C=c[(x&p)>>2]|0,(a[(C&n)>>0]|0)==35):0)?((d[(C&n)+1>>0]|0)+-48|0)>>>0<10:0){if(!(a[(ca&n)+18>>0]|0)){c[(ba&p)>>2]=x;th(ca,20432,ba);c[(ea&p)>>2]=0;break}r=Zq(ca,159,0,0,x)|0;c[(ea&p)>>2]=r;if(r)Dn((c[(x&p)>>2]|0)+1|0,r+28|0)|0}else aa=298;while(0);q:do if((aa|0)==298?(P=Zq(ca,135,0,0,x)|0,c[(ea&p)>>2]=P,W=c[(x&p)>>2]|0,c[(ea&p)+4>>2]=W,c[(ea&p)+8>>2]=W+(c[(w&p)>>2]|0),W=c[(ca&p)>>2]|0,(P|0)!=0):0){z=c[(P&p)+8>>2]|0;r=z+1|0;do if(a[(r&n)>>0]|0){y=(z|0)==0;if(y)A=0;else{t=z;while(1)if(!(a[(t&n)>>0]|0))break;else t=t+1|0;A=t-z&1073741823}r:do if((a[(z&n)>>0]|0)==63){$=Ul(r,H,A+-1|0,1)|0;m=H;q=c[(m&p)>>2]|0;m=c[(m&p)+4>>2]|0;t=q&65535;b[(P&o)+32>>1]=t;r=c[(W&p)+124>>2]|0;aa=((r|0)<0)<<31>>31;if((m|0)<0|(m|0)==0&q>>>0<1|($|0)!=0|((m|0)>(aa|0)|(m|0)==(aa|0)&q>>>0>r>>>0)){c[(ba&p)>>2]=r;th(ca,33296,ba);t=0}r=ca+440|0;aa=c[(r&p)>>2]|0;$=((aa|0)<0)<<31>>31;if((m|0)>($|0)|(m|0)==($|0)&q>>>0>aa>>>0)c[(r&p)>>2]=q}else{r=c[(ca&p)+444>>2]|0;s:do if((r|0)>0){q=c[(ca&p)+472>>2]|0;t=0;l=0;while(1){m=c[(q+(t<<2)&p)>>2]|0;if((m|0)!=0?(_v(m,z)|0)==0:0)break;l=l+1<<16>>16;t=l<<16>>16;if((t|0)>=(r|0)){aa=315;break s}}t=t+1&65535;r=P+32|0;b[(r&o)>>1]=t;if(t<<16>>16)break r}else aa=315;while(0);if((aa|0)==315)r=P+32|0;aa=ca+440|0;t=(c[(aa&p)>>2]|0)+1|0;c[(aa&p)>>2]=t;t=t&65535;b[(r&o)>>1]=t}while(0);m=t<<16>>16;if(t<<16>>16>0){t=ca+444|0;if((m|0)>(c[(t&p)>>2]|0)){r=ca+472|0;q=ro(W,c[(r&p)>>2]|0,m<<2,0)|0;if(!q)break q;c[(r&p)>>2]=q;aa=c[(t&p)>>2]|0;fw(q+(aa<<2)|0,0,m-aa<<2|0)|0;c[(t&p)>>2]=m}if((a[(z&n)>>0]|0)==63){r=m+-1|0;if(!(c[((c[(ca&p)+472>>2]|0)+(r<<2)&p)>>2]|0))t=0;else break}else{t=m+-1|0;r=t;t=c[((c[(ca&p)+472>>2]|0)+(t<<2)&p)>>2]|0}q=ca+472|0;mg(W,t);if(!y?(s=jw(A|0,0,1,0)|0,s=mh(W,s,G)|0,(s|0)!=0):0){kw(s|0,z|0,A|0)|0;a[(s+A&n)>>0]=0}else s=0;c[((c[(q&p)>>2]|0)+(r<<2)&p)>>2]=s}}else{$=ca+440|0;aa=(c[($&p)>>2]|0)+1|0;c[($&p)>>2]=aa;b[(P&o)+32>>1]=aa}while(0);if((c[(ca&p)+64>>2]|0)==0?(c[(ca&p)+440>>2]|0)>(c[(W&p)+124>>2]|0):0)th(ca,33344,ba)}while(0);ca=c[(x&p)>>2]|0;c[(ea&p)+4>>2]=ca;c[(ea&p)+8>>2]=ca+(c[(w&p)>>2]|0);break}case 196:{ba=f+(da+-3<<4)+16|0;c[(ea&p)>>2]=wr(ca,0,ba)|0;c[(ea&p)+4>>2]=c[(ba&p)>>2];c[(ea&p)+8>>2]=(c[(f+(da<<4)&p)+16>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0);break}case 197:{ba=f+(da<<4)+16|0;c[(ea&p)>>2]=wr(ca,0,ba)|0;ca=c[(ba&p)>>2]|0;c[(ea&p)+4>>2]=ca;c[(ea&p)+8>>2]=ca+(c[(f+(da<<4)&p)+20>>2]|0);break}case 193:{aa=da+-2|0;ba=f+(da<<4)+16|0;c[(ea&p)>>2]=vr(ca,c[(f+(aa<<4)&p)+16>>2]|0,ba,1)|0;c[(ea&p)+4>>2]=c[(f+(aa<<4)&p)+20>>2];c[(ea&p)+8>>2]=(c[(ba&p)>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0);break}case 194:{c[(ea&p)>>2]=Zq(ca,38,c[(f+(da+-3<<4)&p)+16>>2]|0,0,f+(da+-1<<4)+16|0)|0;c[(ea&p)+4>>2]=c[(f+(da+-5<<4)&p)+16>>2];c[(ea&p)+8>>2]=(c[(f+(da<<4)&p)+16>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0);break}case 195:{l=f+(da+-1<<4)+16|0;h=c[(l&p)>>2]|0;if(h){if((c[(h&p)>>2]|0)>(c[((c[(ca&p)>>2]|0)&p)+112>>2]|0)){c[(ba&p)>>2]=f+(da+-4<<4)+16;th(ca,20576,ba);h=c[(l&p)>>2]|0}}else h=0;ba=f+(da+-4<<4)+16|0;h=wr(ca,h,ba)|0;c[(ea&p)>>2]=h;c[(ea&p)+4>>2]=c[(ba&p)>>2];c[(ea&p)+8>>2]=(c[(f+(da<<4)&p)+16>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0);if(!((h|0)==0?1:(b[(f+(da+-2<<4)&o)+16>>1]|0)==0)){ca=h+4|0;c[(ca&p)>>2]=c[(ca&p)>>2]|16}break}case 205:case 204:case 203:case 202:case 201:case 200:case 199:case 198:{ba=da+-2|0;c[(ea&p)>>2]=Zq(ca,d[(f+(da+-1<<4)&n)+14>>0]|0,c[(f+(ba<<4)&p)+16>>2]|0,c[(f+(da<<4)&p)+16>>2]|0,0)|0;c[(ea&p)+4>>2]=c[(f+(ba<<4)&p)+20>>2];c[(ea&p)+8>>2]=c[(f+(da<<4)&p)+24>>2];break}case 206:{aa=f+(da<<4)+16|0;ba=c[(aa&p)+4>>2]|0;ca=ea;c[(ca&p)>>2]=c[(aa&p)>>2];c[(ca&p)+4>>2]=ba;c[(ea&p)+8>>2]=0;break}case 207:{aa=f+(da<<4)+16|0;ba=c[(aa&p)+4>>2]|0;ca=ea;c[(ca&p)>>2]=c[(aa&p)>>2];c[(ca&p)+4>>2]=ba;c[(ea&p)+8>>2]=1;break}case 208:{l=da+-2|0;ba=da+-1|0;h=wr(ca,lr(ca,lr(ca,0,c[(f+(da<<4)&p)+16>>2]|0)|0,c[(f+(l<<4)&p)+16>>2]|0)|0,f+(ba<<4)+16|0)|0;c[(ea&p)>>2]=h;if(c[(f+(ba<<4)&p)+24>>2]|0){h=Zq(ca,19,h,0,0)|0;c[(ea&p)>>2]=h}c[(ea&p)+4>>2]=c[(f+(l<<4)&p)+20>>2];c[(ea&p)+8>>2]=c[(f+(da<<4)&p)+24>>2];if(h){ca=h+4|0;c[(ca&p)>>2]=c[(ca&p)>>2]|128}break}case 210:{ba=da+-1|0;c[(ea&p)>>2]=Zq(ca,d[(f+(da<<4)&n)+14>>0]|0,c[(f+(ba<<4)&p)+16>>2]|0,0,0)|0;c[(ea&p)+4>>2]=c[(f+(ba<<4)&p)+20>>2];c[(ea&p)+8>>2]=(c[(f+(da<<4)&p)+16>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0);break}case 209:{l=da+-4|0;ba=da+-3|0;h=wr(ca,lr(ca,lr(ca,lr(ca,0,c[(f+(da+-2<<4)&p)+16>>2]|0)|0,c[(f+(l<<4)&p)+16>>2]|0)|0,c[(f+(da<<4)&p)+16>>2]|0)|0,f+(ba<<4)+16|0)|0;c[(ea&p)>>2]=h;if(c[(f+(ba<<4)&p)+24>>2]|0){h=Zq(ca,19,h,0,0)|0;c[(ea&p)>>2]=h}c[(ea&p)+4>>2]=c[(f+(l<<4)&p)+20>>2];c[(ea&p)+8>>2]=c[(f+(da<<4)&p)+24>>2];if(h){ca=h+4|0;c[(ca&p)>>2]=c[(ca&p)>>2]|128}break}case 223:{l=f+(da+-1<<4)+16|0;h=c[(l&p)>>2]|0;do if(h){if((c[(h&p)>>2]|0)==1){ba=c[(h&p)+4>>2]|0;h=c[(ba&p)>>2]|0;c[(ba&p)>>2]=0;Nk(c[(ca&p)>>2]|0,c[(l&p)>>2]|0);if(h){ba=h+4|0;c[(ba&p)>>2]=c[(ba&p)>>2]&-769|512}c[(ea&p)>>2]=Zq(ca,(c[(f+(da+-3<<4)&p)+16>>2]|0)!=0?78:79,c[(f+(da+-4<<4)&p)+16>>2]|0,h,0)|0;break}h=Zq(ca,75,c[(f+(da+-4<<4)&p)+16>>2]|0,0,0)|0;c[(ea&p)>>2]=h;if(!h){Nk(c[(ca&p)>>2]|0,c[(l&p)>>2]|0);h=0}else{c[(h&p)+20>>2]=c[(l&p)>>2];h=c[(ea&p)>>2]|0;yr(ca,h)}if(c[(f+(da+-3<<4)&p)+16>>2]|0)c[(ea&p)>>2]=Zq(ca,19,h,0,0)|0}else{c[(ea&p)>>2]=Zq(ca,132,0,0,20616+(c[(f+(da+-3<<4)&p)+16>>2]<<3)|0)|0;Gk(c[(ca&p)>>2]|0,c[(f+(da+-4<<4)&p)+16>>2]|0)}while(0);c[(ea&p)+4>>2]=c[(f+(da+-4<<4)&p)+20>>2];c[(ea&p)+8>>2]=(c[(f+(da<<4)&p)+16>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0);break}case 211:{ba=da+-2|0;c[(ea&p)>>2]=Zq(ca,77,c[(f+(ba<<4)&p)+16>>2]|0,0,0)|0;c[(ea&p)+4>>2]=c[(f+(ba<<4)&p)+20>>2];c[(ea&p)+8>>2]=(c[(f+(da<<4)&p)+16>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0);break}case 212:{$=da+-2|0;aa=f+(da<<4)+16|0;ba=Zq(ca,73,c[(f+($<<4)&p)+16>>2]|0,c[(aa&p)>>2]|0,0)|0;c[(ea&p)>>2]=ba;c[(ea&p)+4>>2]=c[(f+($<<4)&p)+20>>2];c[(ea&p)+8>>2]=c[(f+(da<<4)&p)+24>>2];xr(ca,c[(aa&p)>>2]|0,ba,76);break}case 213:{$=da+-3|0;aa=f+(da<<4)+16|0;ba=Zq(ca,148,c[(f+($<<4)&p)+16>>2]|0,c[(aa&p)>>2]|0,0)|0;c[(ea&p)>>2]=ba;c[(ea&p)+4>>2]=c[(f+($<<4)&p)+20>>2];c[(ea&p)+8>>2]=c[(f+(da<<4)&p)+24>>2];xr(ca,c[(aa&p)>>2]|0,ba,77);break}case 215:case 214:{ba=da+-1|0;c[(ea&p)>>2]=Zq(ca,d[(f+(ba<<4)&n)+14>>0]|0,c[(f+(da<<4)&p)+16>>2]|0,0,0)|0;c[(ea&p)+4>>2]=c[(f+(ba<<4)&p)+16>>2];c[(ea&p)+8>>2]=c[(f+(da<<4)&p)+24>>2];break}case 216:{c[(ea&p)>>2]=Zq(ca,157,c[(f+(da<<4)&p)+16>>2]|0,0,0)|0;c[(ea&p)+4>>2]=c[(f+(da+-1<<4)&p)+16>>2];c[(ea&p)+8>>2]=c[(f+(da<<4)&p)+24>>2];break}case 217:{c[(ea&p)>>2]=Zq(ca,158,c[(f+(da<<4)&p)+16>>2]|0,0,0)|0;c[(ea&p)+4>>2]=c[(f+(da+-1<<4)&p)+16>>2];c[(ea&p)+8>>2]=c[(f+(da<<4)&p)+24>>2];break}case 220:{k=lr(ca,lr(ca,0,c[(f+(da+-2<<4)&p)+16>>2]|0)|0,c[(f+(da<<4)&p)+16>>2]|0)|0;l=da+-4|0;h=Zq(ca,74,c[(f+(l<<4)&p)+16>>2]|0,0,0)|0;c[(ea&p)>>2]=h;if(!h)Nk(c[(ca&p)>>2]|0,k);else c[(h&p)+20>>2]=k;if(c[(f+(da+-3<<4)&p)+16>>2]|0)c[(ea&p)>>2]=Zq(ca,19,c[(ea&p)>>2]|0,0,0)|0;c[(ea&p)+4>>2]=c[(f+(l<<4)&p)+20>>2];c[(ea&p)+8>>2]=c[(f+(da<<4)&p)+24>>2];break}case 224:{h=Zq(ca,119,0,0,0)|0;c[(ea&p)>>2]=h;if(!h)Mk(c[(ca&p)>>2]|0,c[(f+(da+-1<<4)&p)+16>>2]|0,1);else{c[(h&p)+20>>2]=c[(f+(da+-1<<4)&p)+16>>2];ba=c[(ea&p)>>2]|0;aa=ba+4|0;c[(aa&p)>>2]=c[(aa&p)>>2]|2099200;yr(ca,ba)}c[(ea&p)+4>>2]=c[(f+(da+-2<<4)&p)+16>>2];c[(ea&p)+8>>2]=(c[(f+(da<<4)&p)+16>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0);break}case 118:{c[(ea&p)>>2]=kr(ca,c[(f+(da+-6<<4)&p)+16>>2]|0,c[(f+(da+-5<<4)&p)+16>>2]|0,c[(f+(da+-4<<4)&p)+16>>2]|0,c[(f+(da+-3<<4)&p)+16>>2]|0,c[(f+(da+-2<<4)&p)+16>>2]|0,c[(f+(da+-1<<4)&p)+16>>2]|0,b[(f+(da+-7<<4)&o)+16>>1]|0,c[(f+(da<<4)&p)+16>>2]|0,c[(f+(da<<4)&p)+20>>2]|0)|0;break}case 120:{c[(ea&p)>>2]=kr(ca,c[(f+(da+-1<<4)&p)+16>>2]|0,0,0,0,0,0,128,0,0)|0;break}case 127:{l=da+-1|0;q=lr(ca,c[(f+(da+-2<<4)&p)+16>>2]|0,c[(f+(l<<4)&p)+16>>2]|0)|0;c[(ea&p)>>2]=q;if(c[(f+(da<<4)&p)+20>>2]|0)mr(ca,q,f+(da<<4)+16|0,1);s=c[(ca&p)>>2]|0;if(q){r=(c[(q&p)+4>>2]|0)+(((c[(q&p)>>2]|0)+-1|0)*20|0)+8|0;mg(s,c[(r&p)>>2]|0);m=c[(f+(l<<4)&p)+20>>2]|0;q=(c[(f+(l<<4)&p)+24>>2]|0)-m|0;if((m|0)!=0?(h=jw(q|0,((q|0)<0)<<31>>31|0,1,0)|0,h=mh(s,h,G)|0,(h|0)!=0):0){kw(h|0,m|0,q|0)|0;a[(h+q&n)>>0]=0}else h=0;c[(r&p)>>2]=h}break}case 133:{l=mh(c[(ca&p)>>2]|0,80,0)|0;if(l){y=l+0|0;k=y+80|0;do{a[(y&n)>>0]=0;y=y+1|0}while((y|0)<(k|0))}c[(ea&p)>>2]=l;break}case 134:{q=c[(f+(da<<4)&p)+16>>2]|0;c[(ea&p)>>2]=q;if(q){l=c[(q&p)>>2]|0;k=l+-1|0;if((k|0)>0)while(1){a[(q+(k*72|0)&n)+44>>0]=a[(q+((l+-2|0)*72|0)&n)+44>>0]|0;l=k+-1|0;if((l|0)>0){ca=k;k=l;l=ca}else break}a[(q&n)+44>>0]=0}break}case 128:{aa=c[(ca&p)>>2]|0;c[(ba&p)>>2]=0;c[(ba&p)+4>>2]=0;ba=nr(aa,116,ba,0)|0;c[(ea&p)>>2]=lr(ca,c[(f+(da+-1<<4)&p)+16>>2]|0,ba)|0;break}case 132:{c[(ea&p)+4>>2]=0;break}case 129:{ba=Zq(ca,116,0,0,f+(da<<4)+16|0)|0;ba=Zq(ca,122,Zq(ca,27,0,0,f+(da+-2<<4)+16|0)|0,ba,0)|0;c[(ea&p)>>2]=lr(ca,c[(f+(da+-3<<4)&p)+16>>2]|0,ba)|0;break}case 136:{c[(ea&p)>>2]=0;break}case 137:{ba=jr(ca,c[(f+(da+-6<<4)&p)+16>>2]|0,f+(da+-5<<4)+16|0,f+(da+-4<<4)+16|0,f+(da+-3<<4)+16|0,0,c[(f+(da+-1<<4)&p)+16>>2]|0,c[(f+(da<<4)&p)+16>>2]|0)|0;c[(ea&p)>>2]=ba;or(ca,ba,f+(da+-2<<4)+16|0);break}case 135:{h=c[(f+(da+-1<<4)&p)+16>>2]|0;c[(ea&p)>>2]=h;if((h|0)!=0?(w=c[(h&p)>>2]|0,(w|0)>0):0)a[(h+((w+-1|0)*72|0)&n)+44>>0]=c[(f+(da<<4)&p)+16>>2];break}case 138:{c[(ea&p)>>2]=jr(ca,c[(f+(da+-6<<4)&p)+16>>2]|0,0,0,f+(da+-2<<4)+16|0,c[(f+(da+-4<<4)&p)+16>>2]|0,c[(f+(da+-1<<4)&p)+16>>2]|0,c[(f+(da<<4)&p)+16>>2]|0)|0;break}case 139:{l=f+(da+-6<<4)+16|0;q=c[(l&p)>>2]|0;if((((q|0)==0?(c[(f+(da+-2<<4)&p)+20>>2]|0)==0:0)?(c[(f+(da+-1<<4)&p)+16>>2]|0)==0:0)?(c[(f+(da<<4)&p)+16>>2]|0)==0:0){c[(ea&p)>>2]=c[(f+(da+-4<<4)&p)+16>>2];break a}s=f+(da+-4<<4)+16|0;k=c[(s&p)>>2]|0;r=c[(k&p)>>2]|0;if((r|0)==1){l=jr(ca,q,0,0,f+(da+-2<<4)+16|0,0,c[(f+(da+-1<<4)&p)+16>>2]|0,c[(f+(da<<4)&p)+16>>2]|0)|0;c[(ea&p)>>2]=l;if(l){_=(c[(l&p)>>2]|0)+-1|0;ba=c[(s&p)>>2]|0;aa=ba+16|0;c[(l+(_*72|0)&p)+16>>2]=c[(aa&p)>>2];$=ba+12|0;c[(l+(_*72|0)&p)+12>>2]=c[($&p)>>2];ba=ba+28|0;c[(l+(_*72|0)&p)+28>>2]=c[(ba&p)>>2];c[($&p)>>2]=0;c[(aa&p)>>2]=0;c[(ba&p)>>2]=0}Do(c[(ca&p)>>2]|0,c[(s&p)>>2]|0);break a}if(k){m=r+-1|0;if((m|0)>0){q=r;while(1){a[(k+(m*72|0)&n)+44>>0]=a[(k+((q+-2|0)*72|0)&n)+44>>0]|0;q=m+-1|0;if((q|0)>0){ba=m;m=q;q=ba}else break}}a[(k&n)+44>>0]=0}ba=kr(ca,0,k,0,0,0,0,512,0,0)|0;c[(ea&p)>>2]=jr(ca,c[(l&p)>>2]|0,0,0,f+(da+-2<<4)+16|0,ba,c[(f+(da+-1<<4)&p)+16>>2]|0,c[(f+(da<<4)&p)+16>>2]|0)|0;break}case 149:case 140:{c[(ea&p)>>2]=0;c[(ea&p)+4>>2]=0;break}case 144:{c[(ea&p)>>2]=qr(ca,f+(da+-1<<4)+16|0,0,0)|0;break}case 145:{c[(ea&p)>>2]=qr(ca,f+(da+-2<<4)+16|0,f+(da+-1<<4)+16|0,0)|0;break}case 146:{c[(ea&p)>>2]=qr(ca,f+(da+-3<<4)+16|0,f+(da+-2<<4)+16|0,f+(da+-1<<4)+16|0)|0;break}case 233:case 231:case 171:case 164:case 147:{c[(ea&p)>>2]=c[(f+(da<<4)&p)+16>>2];break}case 234:case 232:case 170:case 163:case 148:{c[(ea&p)>>2]=0;break}case 151:{c[(ea&p)>>2]=0;c[(ea&p)+4>>2]=1;break}case 143:{c[(ea&p)>>2]=1;break}case 142:{c[(ea&p)>>2]=pr(c[(ca&p)>>2]|0,0,f+(da+-1<<4)+16|0,f+(da<<4)+16|0)|0;break}case 157:{h=lr(ca,0,c[(f+(da+-1<<4)&p)+16>>2]|0)|0;c[(ea&p)>>2]=h;if((h|0)!=0?(k=c[(h&p)+4>>2]|0,(k|0)!=0):0)a[(k&n)+12>>0]=c[(f+(da<<4)&p)+16>>2];break}case 160:case 158:{c[(ea&p)>>2]=0;break}case 159:{c[(ea&p)>>2]=1;break}case 165:{c[(ea&p)>>2]=0;c[(ea&p)+4>>2]=0;break}case 166:{c[(ea&p)>>2]=c[(f+(da<<4)&p)+16>>2];c[(ea&p)+4>>2]=0;break}case 179:case 153:{c[(ea&p)>>2]=0;break}case 180:case 152:{c[(ea&p)>>2]=c[(f+(da+-1<<4)&p)+16>>2];break}case 172:{l=c[(f+(da+-7<<4)&p)+16>>2]|0;if(l){aa=ca+532|0;c[(l&p)+4>>2]=c[(aa&p)>>2];c[(aa&p)>>2]=l;a[(ca&n)+449>>0]=1}m=f+(da+-4<<4)+16|0;or(ca,c[(m&p)>>2]|0,f+(da+-3<<4)+16|0);q=f+(da+-1<<4)+16|0;l=c[(q&p)>>2]|0;if(l){if((c[(l&p)>>2]|0)>(c[((c[(ca&p)>>2]|0)&p)+96>>2]|0)){c[(ba&p)>>2]=20560;th(ca,34544,ba);l=c[(q&p)>>2]|0}}else l=0;sr(ca,c[(m&p)>>2]|0,l,c[(f+(da<<4)&p)+16>>2]|0,d[(f+(da+-5<<4)&n)+16>>0]|0);break}case 235:case 162:case 155:{c[(ea&p)>>2]=c[(f+(da<<4)&p)+16>>2];break}case 156:{h=lr(ca,c[(f+(da+-3<<4)&p)+16>>2]|0,c[(f+(da+-1<<4)&p)+16>>2]|0)|0;c[(ea&p)>>2]=h;if(h)a[((c[(h&p)+4>>2]|0)+(((c[(h&p)>>2]|0)+-1|0)*20|0)&n)+12>>0]=c[(f+(da<<4)&p)+16>>2];break}case 7:{a[(ca&n)+450>>0]=2;c[(ca&p)+440>>2]=0;break}case 23:{Tq(ca,1,f+(da<<4)+16|0);break}case 24:{Tq(ca,2,f+(da<<4)+16|0);break}case 26:{Uq(ca,f+(da+-1<<4)+16|0,f+(da<<4)+16|0,c[(f+(da+-4<<4)&p)+16>>2]|0,0,0,c[(f+(da+-2<<4)&p)+16>>2]|0);break}default:{}}while(0);h=a[(g<<1&n)+20912>>0]|0;r=h&255;q=a[(g<<1&n)+20913>>0]|0;m=q&255;s=(c[(f&p)>>2]|0)-m|0;c[(f&p)>>2]=s;l=b[((b[(e[(f+(da-m<<4)&o)+12>>1]<<1&o)+21568>>1]|0)+r<<1&o)+22184>>1]|0;k=l&65535;do if((l&65535)<642)if(!(q<<24>>24)){kq(f,k,r,ea);break}else{c[(f&p)>>2]=s+1;da=1-m+da|0;b[(f+(da<<4)&o)+12>>1]=l;a[(f+(da<<4)&n)+14>>0]=h;da=f+(da<<4)+16|0;c[(da&p)>>2]=c[(ea&p)>>2];c[(da&p)+4>>2]=c[(ea&p)+4>>2];c[(da&p)+8>>2]=c[(ea&p)+8>>2];break}else{h=c[(ga&p)>>2]|0;if((s|0)>-1)do Pn(f);while((c[(f&p)>>2]|0)>-1);c[(ga&p)>>2]=h}while(0);i=ha;return}function nq(e,f){e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=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,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,ga=0;da=i;i=i+64|0;if((i|0)>=(j|0))fa();ca=da+8|0;Z=da;q=da+24|0;h=da+16|0;l=xq(e,0,h)|0;do if(!l){if(c[(h&p)>>2]|0){l=ds(e,f)|0;if(!l)g=0;else k=4}else{l=1;k=4}if((k|0)==4){ba=e+43|0;k=(a[(ba&n)>>0]|0)==0;do if(!(a[(e&n)+46>>0]&2)){if(k?(m=e+4|0,aa=c[(m&p)>>2]|0,ac[c[((c[(aa&p)>>2]|0)&p)+40>>2]&63](aa,24,0)|0,m=c[(m&p)>>2]|0,m=pc[c[((c[(m&p)>>2]|0)&p)+56>>2]&31](m,0,1,10)|0,(m|0)!=0):0){h=l;g=m;break}aa=e+44|0;a[(aa&n)>>0]=1;k=xq(e,0,h)|0;if(!k){h=ds(e,f)|0;if(!h){h=0;g=0}else{$=d[(e&n)+45>>0]|0;_=$+1|0;$=7-$|0;if(!((a[(ba&n)>>0]|0)==0?(g=c[(e&p)+4>>2]|0,g=pc[c[((c[(g&p)>>2]|0)&p)+56>>2]&31](g,_,$,10)|0,(g|0)!=0):0)){l=e+52|0;k=l+48|0;do{c[(l&p)>>2]=0;l=l+4|0}while((l|0)<(k|0));T=e+8|0;g=c[(T&p)>>2]|0;g=rc[c[((c[(g&p)>>2]|0)&p)+24>>2]&127](g,Z)|0;a:do if(!g){U=Z;S=c[(U&p)+4>>2]|0;b:do if((S|0)>0|(S|0)==0&(c[(U&p)>>2]|0)>>>0>32){g=c[(T&p)>>2]|0;g=tc[c[((c[(g&p)>>2]|0)&p)+8>>2]&31](g,q,32,0,0)|0;if(g)break a;m=d[(q&n)+3>>0]|0;k=d[(q&n)+9>>0]<<16|d[(q&n)+8>>0]<<24;g=d[(q&n)+10>>0]<<8;l=k|g|d[(q&n)+11>>0];if(((d[(q&n)+1>>0]<<16|d[(q&n)>>0]<<24|d[(q&n)+2>>0]<<8|m&254|0)==931071618?!((l+-1&l|0)!=0|(l|0)>65536|(l|0)<512):0)?(U=m&1,V=e+65|0,a[(V&n)>>0]=U,W=e+36|0,c[(W&p)>>2]=l,c[(e&p)+104>>2]=d[(q&n)+13>>0]<<16|d[(q&n)+12>>0]<<24|d[(q&n)+14>>0]<<8|d[(q&n)+15>>0],X=e+84|0,S=q+16|0,Q=S,Q=d[(Q&n)>>0]|d[(Q&n)+1>>0]<<8|d[(Q&n)+2>>0]<<16|d[(Q&n)+3>>0]<<24,S=S+4|0,S=d[(S&n)>>0]|d[(S&n)+1>>0]<<8|d[(S&n)+2>>0]<<16|d[(S&n)+3>>0]<<24,Y=X,R=Y,a[(R&n)>>0]=Q,a[(R&n)+1>>0]=Q>>8,a[(R&n)+2>>0]=Q>>16,a[(R&n)+3>>0]=Q>>24,Y=Y+4|0,a[(Y&n)>>0]=S,a[(Y&n)+1>>0]=S>>8,a[(Y&n)+2>>0]=S>>16,a[(Y&n)+3>>0]=S>>24,Y=e+76|0,yq(U^1,q,24,0,Y),(c[(Y&p)>>2]|0)==(d[(q&n)+25>>0]<<16|d[(q&n)+24>>0]<<24|d[(q&n)+26>>0]<<8|d[(q&n)+27>>0]|0)):0){S=e+80|0;if((c[(S&p)>>2]|0)!=(d[(q&n)+29>>0]<<16|d[(q&n)+28>>0]<<24|d[(q&n)+30>>0]<<8|d[(q&n)+31>>0]|0)){l=0;g=0;break}if((d[(q&n)+5>>0]<<16|d[(q&n)+4>>0]<<24|d[(q&n)+6>>0]<<8|d[(q&n)+7>>0]|0)!=3007e3){c[(ca&p)>>2]=49983;c[(ca&p)+4>>2]=10788;bd(14,14848,ca);g=14;break a}w=l+24|0;U=Tc(w)|0;if(!U){g=7;break a}x=U+24|0;y=((w|0)<0)<<31>>31;q=jw(w|0,y|0,32,0)|0;m=G;R=Z;Q=c[(R&p)+4>>2]|0;c:do if(!((m|0)>(Q|0)|((m|0)==(Q|0)?q>>>0>(c[(R&p)>>2]|0)>>>0:0))){z=U+8|0;A=U+1|0;B=U+2|0;C=U+3|0;D=U+16|0;E=U+17|0;F=U+18|0;H=U+19|0;I=U+20|0;J=U+21|0;K=U+22|0;L=U+23|0;M=U+4|0;N=U+5|0;O=U+6|0;P=U+7|0;Q=e+68|0;R=e+72|0;u=(k>>>16|g)&65535;v=e+66|0;r=32;k=0;l=0;s=0;t=1;while(1){g=c[(T&p)>>2]|0;g=tc[c[((c[(g&p)>>2]|0)&p)+8>>2]&31](g,U,w,r,k)|0;if(g){k=36;break}if(Zv(X,z,8)|0){g=s;k=37;break}k=d[(A&n)>>0]<<16|d[(U&n)>>0]<<24|d[(B&n)>>0]<<8|d[(C&n)>>0];if(!k){g=s;k=37;break}r=(a[(V&n)>>0]|0)==0&1;yq(r,U,8,Y,Y);yq(r,x,c[(W&p)>>2]|0,Y,Y);if((c[(Y&p)>>2]|0)!=(d[(E&n)>>0]<<16|d[(D&n)>>0]<<24|d[(F&n)>>0]<<8|d[(H&n)>>0]|0)){g=s;k=37;break}if((c[(S&p)>>2]|0)!=(d[(J&n)>>0]<<16|d[(I&n)>>0]<<24|d[(K&n)>>0]<<8|d[(L&n)>>0]|0)){g=s;break c}r=d[(N&n)>>0]<<16|d[(M&n)>>0]<<24|d[(O&n)>>0]<<8|d[(P&n)>>0];g=_o(e,t,k)|0;if(g){k=36;break}if(!r)g=s;else{c[(Q&p)>>2]=t;c[(R&p)>>2]=r;b[(v&o)>>1]=u;l=c[(Y&p)>>2]|0;g=c[(S&p)>>2]|0}k=jw(q|0,m|0,w|0,y|0)|0;r=G;s=Z;ea=c[(s&p)+4>>2]|0;if((r|0)>(ea|0)|((r|0)==(ea|0)?k>>>0>(c[(s&p)>>2]|0)>>>0:0))break c;else{ga=m;ea=q;q=k;m=r;s=g;t=t+1|0;k=ga;r=ea}}if((k|0)==36){Wc(U);break a}else if((k|0)==37){Wc(U);break b}}else{l=0;g=0}while(0);Wc(U)}else{l=0;g=0}}else{l=0;g=0}while(0);c[(e&p)+76>>2]=l;c[(e&p)+80>>2]=g;$o(e);k=c[(c[(e&p)+32>>2]&p)>>2]|0;c[(k&p)+96>>2]=0;c[(k&p)+100>>2]=0;g=k+104|0;c[(g&p)>>2]=-1;c[(k&p)+108>>2]=-1;c[(k&p)+112>>2]=-1;c[(k&p)+116>>2]=-1;k=e+68|0;l=c[(k&p)>>2]|0;if(l)c[(g&p)>>2]=l;if(!(c[(e&p)+72>>2]|0))g=0;else{g=c[(e&p)+100>>2]|0;c[(ca&p)>>2]=c[(k&p)>>2];c[(ca&p)+4>>2]=g;bd(283,14888,ca);g=0}}while(0);if(!(a[(ba&n)>>0]|0)){Z=c[(e&p)+4>>2]|0;pc[c[((c[(Z&p)>>2]|0)&p)+56>>2]&31](Z,_,$,9)|0}}c[(f&p)>>2]=1}}else{h=l;g=k}a[(aa&n)>>0]=0;if(!(a[(ba&n)>>0]|0)){ba=c[(e&p)+4>>2]|0;pc[c[((c[(ba&p)>>2]|0)&p)+56>>2]&31](ba,0,1,9)|0}}else if(k){h=e+4|0;g=c[(h&p)>>2]|0;g=pc[c[((c[(g&p)>>2]|0)&p)+56>>2]&31](g,0,1,6)|0;if(!g)if(!(a[(ba&n)>>0]|0)){h=c[(h&p)>>2]|0;pc[c[((c[(h&p)>>2]|0)&p)+56>>2]&31](h,0,1,5)|0;h=l;g=264}else{h=l;g=264}else h=l}else{h=l;g=264}while(0);if(h)break}if((c[(e&p)+52>>2]|0)!=3007e3){c[(ca&p)>>2]=50909;c[(ca&p)+4>>2]=10788;bd(14,14848,ca);g=14}}else g=l;while(0);i=da;return g|0}function oq(a,d,f,g,h,i){a=a|0;d=d|0;f=f|0;g=g|0;h=h|0;i=i|0;var j=0,k=0,l=0,m=0,n=0,q=0,r=0,s=0,t=0,u=0;r=c[(h&p)>>2]|0;s=c[(g&p)>>2]|0;k=(r|0)>0;j=(f|0)>0;if(k|j){n=j;l=0;q=0;m=0;while(1){do if(n){j=d+(l<<1)|0;if(k?(t=s+(m<<1)|0,(c[(a+((e[(j&o)>>1]|0)<<2)&p)>>2]|0)>>>0>=(c[(a+((e[(t&o)>>1]|0)<<2)&p)>>2]|0)>>>0):0){k=t;u=7;break}l=l+1|0;k=j}else{k=s+(m<<1)|0;u=7}while(0);if((u|0)==7){u=0;m=m+1|0}n=b[(k&o)>>1]|0;k=c[(a+((n&65535)<<2)&p)>>2]|0;j=q+1|0;b[(i+(q<<1)&o)>>1]=n;if((l|0)<(f|0))l=((c[(a+((e[(d+(l<<1)&o)>>1]|0)<<2)&p)>>2]|0)==(k|0)&1)+l|0;k=(m|0)<(r|0);n=(l|0)<(f|0);if(!(k|n))break;else q=j}}else j=0;c[(g&p)>>2]=d;c[(h&p)>>2]=j;kw(d|0,i|0,j<<1|0)|0;return}function pq(a,b){a=a|0;b=b|0;var d=0,e=0;e=c[(a&p)+4>>2]|0;c[(e&p)+4>>2]=c[(a&p)>>2];a=c[((c[(e&p)>>2]|0)&p)+204>>2]|0;c[(a&p)+16>>2]=b;e=c[2217]|0;d=c[(a&p)+40>>2]|0;if((b|0)>-1)a=b;else{b=sw(b|0,((b|0)<0)<<31>>31|0,-1024,-1)|0;a=(c[(a&p)+24>>2]|0)+(c[(a&p)+20>>2]|0)|0;a=qw(b|0,G|0,a|0,((a|0)<0)<<31>>31|0)|0}jc[e&15](d,a);return}function qq(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0;g=(c[(b&p)+12>>2]|0)+136|0;e=g;f=c[(e&p)>>2]|0;e=c[(e&p)+4>>2]|0;do if((f|0)==0&(e|0)==0)if(!(bh(c[(c[((c[(b&p)>>2]|0)&p)+32>>2]&p)>>2]|0,g)|0)){e=g;f=c[(e&p)>>2]|0;e=c[(e&p)+4>>2]|0;h=5;break}else{e=g;c[(e&p)>>2]=0;c[(e&p)+4>>2]=0;e=d;c[(e&p)>>2]=0;c[(e&p)+4>>2]=0;e=1;break}else h=5;while(0);if((h|0)==5){g=d;c[(g&p)>>2]=f;c[(g&p)+4>>2]=e;if((e|0)>0|(e|0)==0&f>>>0>0){a[(d&n)+42>>0]=1;e=0}else e=1}return e|0}function rq(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,o=0,q=0,r=0;r=i;i=i+16|0;if((i|0)>=(j|0))fa();o=r;c[(o&p)>>2]=d;d=b;b=0;a:while(1){h=c[(o&p)>>2]|0;g=c[(h&p)>>2]|0;c[(o&p)>>2]=h+4;h=c[(o&p)>>2]|0;k=c[(h&p)>>2]|0;c[(o&p)>>2]=h+4;h=c[(o&p)>>2]|0;l=c[(h&p)>>2]|0;c[(o&p)>>2]=h+4;h=c[(o&p)>>2]|0;m=c[(h&p)>>2]|0;c[(o&p)>>2]=h+4;h=c[(o&p)>>2]|0;e=c[(h&p)>>2]|0;c[(o&p)>>2]=h+4;if(!g){f=d;d=0}else{f=d;d=0;do{g=g+-1|0;h=a[(f&n)>>0]|0;if(((h&255)+-48|0)>>>0>=10)break a;d=(d*10|0)+-48+(h<<24>>24)|0;f=f+1|0}while((g|0)!=0)}if((d|0)<(k|0)|(d|0)>(l|0))break;if(!m){q=9;break}if((m|0)!=(a[(f&n)>>0]|0))break;c[(e&p)>>2]=d;d=f+1|0;b=b+1|0}if((q|0)==9){c[(e&p)>>2]=d;b=b+1|0}i=r;return b|0}function sq(b,e){b=b|0;e=e|0;var f=0,g=0,k=0,l=0.0,m=0,o=0.0,r=0,s=0,t=0,u=0,v=0,w=0,x=0;x=i;i=i+64|0;if((i|0)>=(j|0))fa();v=x;t=x+56|0;u=x+52|0;f=x+48|0;r=x+44|0;s=x+40|0;c[(v&p)>>2]=2;c[(v&p)+4>>2]=0;c[(v&p)+8>>2]=24;c[(v&p)+12>>2]=58;c[(v&p)+16>>2]=f;c[(v&p)+20>>2]=2;c[(v&p)+24>>2]=0;c[(v&p)+28>>2]=59;c[(v&p)+32>>2]=0;c[(v&p)+36>>2]=r;do if((rq(b,v)|0)==2){m=b+5|0;if((a[(m&n)>>0]|0)==58){c[(v&p)>>2]=2;c[(v&p)+4>>2]=0;c[(v&p)+8>>2]=59;c[(v&p)+12>>2]=0;c[(v&p)+16>>2]=s;if((rq(b+6|0,v)|0)!=1){f=1;break}m=b+8|0;if((a[(m&n)>>0]|0)==46?(g=b+9|0,k=a[(g&n)>>0]|0,((k&255)+-48|0)>>>0<10):0){o=0.0;l=1.0;do{o=o*10.0+ +(k<<24>>24)+-48.0;l=l*10.0;g=g+1|0;k=a[(g&n)>>0]|0}while(((k&255)+-48|0)>>>0<10);l=o/l}else{g=m;l=0.0}}else{c[(s&p)>>2]=0;g=m;l=0.0}a[(e&n)+42>>0]=0;a[(e&n)+41>>0]=1;c[(e&p)+20>>2]=c[(f&p)>>2];c[(e&p)+24>>2]=c[(r&p)>>2];h[(e&q)+32>>3]=l+ +(c[(s&p)>>2]|0);while(1){f=g+1|0;if(!(a[((d[(g&n)>>0]|0)&n)+10368>>0]&1)){m=g;break}else g=f}b=e+28|0;c[(b&p)>>2]=0;g=a[(m&n)>>0]|0;if(g<<24>>24==43){k=1;w=14}else if(g<<24>>24!=45)if((g&-33)<<24>>24==90){k=0;w=16}else f=0;else{k=-1;w=14}if((w|0)==14){c[(v&p)>>2]=2;c[(v&p)+4>>2]=0;c[(v&p)+8>>2]=14;c[(v&p)+12>>2]=58;c[(v&p)+16>>2]=t;c[(v&p)+20>>2]=2;c[(v&p)+24>>2]=0;c[(v&p)+28>>2]=59;c[(v&p)+32>>2]=0;c[(v&p)+36>>2]=u;if((rq(f,v)|0)!=2){f=1;break}k=ca(((c[(t&p)>>2]|0)*60|0)+(c[(u&p)>>2]|0)|0,k)|0;c[(b&p)>>2]=k;f=m+6|0;w=16}if((w|0)==16)while(1){g=a[(f&n)>>0]|0;if(!(a[(g&255&n)+10368>>0]&1)){f=k;break}else f=f+1|0}if(!(g<<24>>24)){a[(e&n)+43>>0]=(f|0)!=0&1;f=0}else f=1}else f=1;while(0);i=x;return f|0}function tq(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,k=0,l=0,m=0,o=0,r=0.0,s=0;o=i;i=i+112|0;if((i|0)>=(j|0))fa();k=o+48|0;m=o;l=o+96|0;f=k+0|0;b=b+0|0;g=f+48|0;do{c[(f&p)>>2]=c[(b&p)>>2];f=f+4|0;b=b+4|0}while((f|0)<(g|0));oo(k);po(k);g=k+8|0;if(((c[(g&p)>>2]|0)+-1971|0)>>>0>66){c[(g&p)>>2]=2e3;c[(k&p)+12>>2]=1;c[(k&p)+16>>2]=1;c[(k&p)+20>>2]=0;c[(k&p)+24>>2]=0;h[(k&q)+32>>3]=0.0}else{f=k+32|0;h[(f&q)>>3]=+(~~(+h[(f&q)>>3]+.5)|0)}c[(k&p)+28>>2]=0;a[(k&n)+42>>0]=0;no(k);b=k;f=c[(b&p)>>2]|0;b=c[(b&p)+4>>2]|0;g=qw(f|0,b|0,1e3,0)|0;g=jw(g|0,G|0,-413362496,0)|0;c[(l&p)>>2]=g;g=Vb(l|0)|0;g=(c[2253]|0)!=0?0:g;if(!g){c[(d&p)+20>>2]=1;a[(d&n)+25>>0]=1;Xg(c[(d&p)>>2]|0,20056,-1,1,-1)|0;c[(e&p)>>2]=1;f=0;g=0}else{k=c[(g&p)+4>>2]|0;l=c[(g&p)+8>>2]|0;d=c[(g&p)+12>>2]|0;s=(c[(g&p)+16>>2]|0)+1|0;r=+(c[(g&p)>>2]|0);c[(m&p)+8>>2]=(c[(g&p)+20>>2]|0)+1900;c[(m&p)+12>>2]=s;c[(m&p)+16>>2]=d;c[(m&p)+20>>2]=l;c[(m&p)+24>>2]=k;h[(m&q)+32>>3]=r;a[(m&n)+40>>0]=1;a[(m&n)+41>>0]=1;a[(m&n)+42>>0]=0;a[(m&n)+43>>0]=0;no(m);c[(e&p)>>2]=0;g=m;g=dw(c[(g&p)>>2]|0,c[(g&p)+4>>2]|0,f|0,b|0)|0;f=G}G=f;i=o;return g|0}function uq(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,o=0,q=0,r=0;r=i;i=i+32|0;if((i|0)>=(j|0))fa();q=r+12|0;l=r;o=r+8|0;k=r+16|0;a[(d&n)>>0]=0;f=rc[c[((c[(b&p)>>2]|0)&p)+24>>2]&127](b,l)|0;h=l;g=c[(h&p)>>2]|0;h=c[(h&p)+4>>2]|0;if(!((f|0)!=0|((h|0)<0|(h|0)==0&g>>>0<16))){f=jw(g|0,h|0,-16,-1)|0;f=es(b,f,G,q)|0;if(!f){m=c[(q&p)>>2]|0;if(!(m>>>0>=e>>>0|(m|0)==0)){f=l;f=jw(c[(f&p)>>2]|0,c[(f&p)+4>>2]|0,-12,-1)|0;f=es(b,f,G,o)|0;if(!f){f=l;f=jw(c[(f&p)>>2]|0,c[(f&p)+4>>2]|0,-8,-1)|0;f=tc[c[((c[(b&p)>>2]|0)&p)+8>>2]&31](b,k,8,f,G)|0;if(!f)if(!(Zv(k,14808,8)|0)){f=l;f=jw(c[(f&p)>>2]|0,c[(f&p)+4>>2]|0,-16,-1)|0;f=dw(f|0,G|0,m|0,0)|0;f=tc[c[((c[(b&p)>>2]|0)&p)+8>>2]&31](b,d,m,f,G)|0;if(!f){g=c[(o&p)>>2]|0;h=0;while(1){e=a[(d+h&n)>>0]|0;f=g-e|0;h=h+1|0;if(h>>>0>=m>>>0)break;else g=f}c[(o&p)>>2]=f;if((g|0)==(e|0))f=m;else{c[(q&p)>>2]=0;f=0}a[(d+f&n)>>0]=0;f=0}}else f=0}}else f=0}}i=r;return f|0}function vq(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,k=0,l=0,m=0,n=0,o=0,q=0,r=0,s=0,t=0;t=i;i=i+16|0;if((i|0)>=(j|0))fa();l=t+8|0;r=t+4|0;o=t;s=a+72|0;h=s;k=c[(h&p)>>2]|0;h=c[(h&p)+4>>2]|0;if((k|0)==0&(h|0)==0){m=0;n=0;k=c[(a&p)+148>>2]|0}else{m=jw(k|0,h|0,-1,-1)|0;k=c[(a&p)+148>>2]|0;m=qw(m|0,G|0,k|0,0)|0;m=jw(m|0,G|0,1,0)|0;m=sw(m|0,G|0,k|0,0)|0;n=G}q=s;c[(q&p)>>2]=m;c[(q&p)+4>>2]=n;q=a+148|0;k=jw(k|0,0,m|0,n|0)|0;h=G;do if(!((h|0)>(e|0)|(h|0)==(e|0)&k>>>0>d>>>0)){if((b|0)==0?(b=a+80|0,(m|0)==(c[(b&p)>>2]|0)?(n|0)==(c[(b&p)+4>>2]|0):0):0)d=a+64|0;else{k=a+64|0;e=c[(k&p)>>2]|0;e=tc[c[((c[(e&p)>>2]|0)&p)+8>>2]&31](e,l,8,m,n)|0;if(e)break;if(!(Zv(l,14808,8)|0))d=k;else{e=101;break}}l=c[(d&p)>>2]|0;e=jw(m|0,n|0,8,0)|0;e=es(l,e,G,f)|0;if(!e){f=c[(d&p)>>2]|0;e=jw(m|0,n|0,12,0)|0;e=es(f,e,G,a+48|0)|0;if(!e){f=c[(d&p)>>2]|0;e=jw(m|0,n|0,16,0)|0;e=es(f,e,G,g)|0;if(!e){h=s;k=c[(h&p)>>2]|0;h=c[(h&p)+4>>2]|0;if((k|0)==0&(h|0)==0){g=c[(d&p)>>2]|0;e=jw(m|0,n|0,20,0)|0;e=es(g,e,G,o)|0;if(e)break;g=c[(d&p)>>2]|0;e=jw(m|0,n|0,24,0)|0;e=es(g,e,G,r)|0;if(e)break;d=c[(r&p)>>2]|0;if(!d){h=c[(a&p)+152>>2]|0;c[(r&p)>>2]=h}else h=d;d=c[(o&p)>>2]|0;if(h>>>0<512|d>>>0<32|h>>>0>65536|d>>>0>65536){e=101;break}if(h+-1&h){e=101;break}if(d+-1&d){e=101;break}e=al(a,r,-1)|0;c[(q&p)>>2]=d;h=s;k=c[(h&p)>>2]|0;h=c[(h&p)+4>>2]|0}else{d=c[(q&p)>>2]|0;e=0}m=jw(k|0,h|0,d|0,0)|0;n=s;c[(n&p)>>2]=m;c[(n&p)+4>>2]=G}}}}else e=101;while(0);i=t;return e|0}function wq(f,g,h,k,l){f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;var m=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;D=i;i=i+16|0;if((i|0)>=(j|0))fa();y=D+8|0;r=D+4|0;u=D;B=c[(f&p)+200>>2]|0;C=(k|0)!=0;q=c[((C?f+64|0:f+68|0)&p)>>2]|0;t=g;t=es(q,c[(t&p)>>2]|0,c[(t&p)+4>>2]|0,r)|0;do if(!t){A=f+152|0;x=c[(A&p)>>2]|0;t=g;t=jw(c[(t&p)>>2]|0,c[(t&p)+4>>2]|0,4,0)|0;t=tc[c[((c[(q&p)>>2]|0)&p)+8>>2]&31](q,B,x,t,G)|0;if(!t){E=c[(A&p)>>2]|0;s=(k<<2)+4+E|0;t=g;t=jw(s|0,((s|0)<0)<<31>>31|0,c[(t&p)>>2]|0,c[(t&p)+4>>2]|0)|0;s=G;x=g;c[(x&p)>>2]=t;c[(x&p)+4>>2]=s;x=c[(r&p)>>2]|0;if((x|0)!=0?(x|0)!=(((c[2514]|0)/(E|0)|0)+1|0):0)if(x>>>0<=(c[(f&p)+24>>2]|0)>>>0?(di(h,x)|0)==0:0){if(C){t=jw(t|0,s|0,-4,-1)|0;t=es(q,t,G,u)|0;if(t){m=t;break}if(!l){t=c[(f&p)+48>>2]|0;s=(c[(A&p)>>2]|0)+-200|0;if((s|0)>0)do{t=(d[(B+s&n)>>0]|0)+t|0;s=s+-200|0}while((s|0)>0);if((t|0)!=(c[(u&p)>>2]|0)){m=101;break}}}if((h|0)!=0?(m=bi(h,x)|0,(m|0)!=0):0)break;u=(x|0)==1;if(u?(v=f+142|0,w=a[(B&n)+20>>0]|0,(b[(v&o)>>1]|0)!=(w&255|0)):0)b[(v&o)>>1]=w&255;if(!(c[(f&p)+208>>2]|0)){w=f+204|0;t=ac[c[8876>>2]&63](c[((c[(w&p)>>2]|0)&p)+40>>2]|0,x,0)|0;t=il(c[(w&p)>>2]|0,x,t)|0}else t=0;c[(y&p)>>2]=t;if(C)if(!(a[(f&n)+7>>0]|0)){w=g;h=c[(w&p)+4>>2]|0;s=f+80|0;v=c[(s&p)+4>>2]|0;s=(h|0)<(v|0)|((h|0)==(v|0)?(c[(w&p)>>2]|0)>>>0<=(c[(s&p)>>2]|0)>>>0:0)}else s=1;else if(!t)s=1;else s=(b[(t&o)+24>>1]&4)==0;r=c[(f&p)+60>>2]|0;q=c[(r&p)>>2]|0;do if(q){m=a[(f&n)+16>>0]|0;if((m&255)>3){if(!s){z=33;break}}else if(!(m<<24>>24==0&s)){z=33;break}s=c[(A&p)>>2]|0;m=sw(s|0,((s|0)<0)<<31>>31|0,x+-1|0,0)|0;m=tc[c[(q&p)+12>>2]&31](r,B,s,m,G)|0;s=f+32|0;if(x>>>0>(c[(s&p)>>2]|0)>>>0)c[(s&p)>>2]=x;s=c[(f&p)+88>>2]|0;if(s)ap(s,x,B)}else z=33;while(0);if((z|0)==33)if((k|0)==0&(t|0)==0){w=f+20|0;a[(w&n)>>0]=d[(w&n)>>0]|2;m=zg(f,x,y,1)|0;a[(w&n)>>0]=d[(w&n)>>0]&253;if(m)break;t=c[(y&p)>>2]|0;m=t+24|0;b[(m&o)>>1]=e[(m&o)>>1]&65527;To(t);m=0}else m=0;if(t){r=c[(t&p)+4>>2]|0;kw(r|0,B|0,c[(A&p)>>2]|0)|0;cc[c[(f&p)+196>>2]&31](t);do if(C){if((l|0)!=0?(w=g,h=c[(w&p)+4>>2]|0,x=f+80|0,v=c[(x&p)+4>>2]|0,(h|0)>(v|0)|((h|0)==(v|0)?(c[(w&p)>>2]|0)>>>0>(c[(x&p)>>2]|0)>>>0:0)):0)break;xl(t)}while(0);if(u){s=f+104|0;q=r+24|0;r=s+16|0;do{a[(s&n)>>0]=a[(q&n)>>0]|0;s=s+1|0;q=q+1|0}while((s|0)<(r|0))}ol(t)}}else m=0;else m=101}else m=t}else m=t;while(0);i=D;return m|0}function xq(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0;g=b+24|0;if((c[(g&p)>>2]|0)<=(e|0)){i=e+1|0;j=b+32|0;h=Xc(c[(j&p)>>2]|0,i<<2)|0;if(!h){g=7;h=0}else{k=c[(g&p)>>2]|0;fw(h+(k<<2)|0,0,i-k<<2|0)|0;c[(j&p)>>2]=h;c[(g&p)>>2]=i;k=5}}else{h=c[(b&p)+32>>2]|0;k=5}if((k|0)==5){j=b+32|0;h=h+(e<<2)|0;do if(!(c[(h&p)>>2]|0)){if((a[(b&n)+43>>0]|0)!=2){g=c[(b&p)+4>>2]|0;g=tc[c[((c[(g&p)>>2]|0)&p)+52>>2]&31](g,e,32768,d[(b&n)+44>>0]|0,h)|0;if((g|0)!=8)break;g=b+46|0;a[(g&n)>>0]=d[(g&n)>>0]|2;g=0;break}g=qg(32768,0)|0;if(g)fw(g|0,0,32768)|0;c[((c[(j&p)>>2]|0)+(e<<2)&p)>>2]=g;g=(c[((c[(j&p)>>2]|0)+(e<<2)&p)>>2]|0)==0?7:0}else g=0;while(0);h=c[((c[(j&p)>>2]|0)+(e<<2)&p)>>2]|0}c[(f&p)>>2]=h;return g|0}function yq(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;h=b+d|0;if(!e){g=0;d=0}else{g=c[(e&p)>>2]|0;d=c[(e&p)+4>>2]|0}if(!a)do{g=g+d+(nw(c[(b&p)>>2]|0)|0)|0;d=g+d+(nw(c[(b&p)+4>>2]|0)|0)|0;b=b+8|0}while(b>>>0>>0);else do{g=g+d+(c[(b&p)>>2]|0)|0;d=g+d+(c[(b&p)+4>>2]|0)|0;b=b+8|0}while(b>>>0>>0);c[(f&p)>>2]=g;c[(f&p)+4>>2]=d;return}function zq(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;h=a+8|0;g=c[(h&p)>>2]|0;h=c[(h&p)+4>>2]|0;if((h|0)>(f|0)|(h|0)==(f|0)&g>>>0>e>>>0?(i=jw(d|0,((d|0)<0)<<31>>31|0,e|0,f|0)|0,k=G,!((k|0)<(h|0)|(k|0)==(h|0)&i>>>0>>0)):0){i=dw(g|0,h|0,e|0,f|0)|0;h=a+4|0;g=c[(h&p)>>2]|0;g=tc[c[((c[(g&p)>>2]|0)&p)+12>>2]&31](g,b,i,e,f)|0;if(!g){e=jw(i|0,((i|0)<0)<<31>>31|0,e|0,f|0)|0;f=G;g=c[(h&p)>>2]|0;g=rc[c[((c[(g&p)>>2]|0)&p)+20>>2]&127](g,c[(a&p)+16>>2]&19)|0;if(!((i|0)==(d|0)|(g|0)!=0)){d=d-i|0;h=b+i|0;g=f;j=5}}}else{h=b;g=f;j=5}if((j|0)==5){f=c[(a&p)+4>>2]|0;g=tc[c[((c[(f&p)>>2]|0)&p)+12>>2]&31](f,h,d,e,g)|0}return g|0}function Aq(a){a=a|0;var d=0,f=0,g=0,h=0,k=0,l=0;l=i;i=i+16|0;if((i|0)>=(j|0))fa();h=l+8|0;k=l+4|0;g=l;c[(h&p)>>2]=0;c[(k&p)>>2]=0;c[(g&p)>>2]=0;f=a+68|0;d=c[(f&p)>>2]|0;if(d){Po(a,(d+33|0)>>>12,h,k,g)|0;g=(c[(f&p)>>2]|0)-(c[(g&p)>>2]|0)|0;a=c[(h&p)>>2]|0;f=0;do{d=a+(f<<1)|0;if((e[(d&o)>>1]|0|0)>(g|0))b[(d&o)>>1]=0;f=f+1|0}while((f|0)!=8192);d=(c[(k&p)>>2]|0)+(g+1<<2)|0;fw(d|0,0,a-d|0)|0}i=l;return}function Bq(a,d){a=a|0;d=d|0;var e=0,f=0,g=0,h=0;g=i;i=i+16|0;if((i|0)>=(j|0))fa();e=g;h=a+204|0;f=ac[c[8876>>2]&63](c[((c[(h&p)>>2]|0)&p)+40>>2]|0,d,0)|0;f=il(c[(h&p)>>2]|0,d,f)|0;do if(!f)e=0;else{if((b[(f&o)+26>>1]|0)==1){ml(f);e=0;break}c[(e&p)>>2]=0;d=kl(c[(a&p)+208>>2]|0,c[(f&p)+20>>2]|0,e)|0;if(!d){d=ll(f,c[(e&p)>>2]|0)|0;if(!d){cc[c[(a&p)+196>>2]&31](f);d=0}}Bg(f);e=d}while(0);d=c[(a&p)+88>>2]|0;if(d)do{c[(d&p)+16>>2]=1;d=c[(d&p)+44>>2]|0}while((d|0)!=0);i=g;return e|0}function Cq(f,g,h){f=f|0;g=g|0;h=h|0;var k=0,l=0,m=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;G=i;i=i+16|0;if((i|0)>=(j|0))fa();F=G;C=c[(f&p)+52>>2]|0;t=(c[(C&p)+36>>2]|0)+-4|0;y=g&65535;D=h&65535;x=D+y|0;E=c[(f&p)+56>>2]|0;if(b[(C&o)+22>>1]&4)fw(E+y|0,0,D|0)|0;B=d[(f&n)+6>>0]|0;C=B+1|0;q=C&65535;A=C&65535;if((a[(E+A&n)+1>>0]|0)==0?(a[(E+A&n)>>0]|0)==0:0){v=h&255;t=(h&65535)>>>8&255;u=x;s=0;r=0;A=23}else{v=q;A=6}a:do if((A|0)==6){while(1){A=0;m=v&65535;r=a[(E+m&n)+1>>0]|0;l=r&255;u=d[(E+m&n)>>0]<<8|l;q=v;v=u&65535;if(!(u>>>0>>0&(u|0)!=0)){s=r;w=u;break}if(u>>>0<(m+4|0)>>>0){A=8;break}else A=6}if((A|0)==8){c[(F&p)>>2]=54420;c[(F&p)+4>>2]=10788;bd(11,13600,F);k=11;break}if(w>>>0>t>>>0){c[(F&p)>>2]=54423;c[(F&p)+4>>2]=10788;bd(11,13600,F);k=11;break}k=h&255;t=(h&65535)>>>8&255;r=(v&65535)>>>8&255;do if((w+-1|0)>>>0<(x+3|0)>>>0)if(x>>>0>w>>>0){c[(F&p)>>2]=54434;c[(F&p)+4>>2]=10788;bd(11,13600,F);k=11;break a}else{u=(d[(E+w&n)+2>>0]<<8|d[(E+w&n)+3>>0])+w|0;t=u-y|0;v=t&255;t=(t&65535)>>>8&255;s=a[(E+w&n)+1>>0]|0;r=a[(E+w&n)>>0]|0;k=l-x&255;break}else{v=k;u=x;k=0}while(0);do if(m>>>0>C>>>0?(z=(d[(E+m&n)+2>>0]<<8|d[(E+m&n)+3>>0])+m|0,(z+3|0)>=(y|0)):0)if((y|0)<(z|0)){c[(F&p)>>2]=54447;c[(F&p)+4>>2]=10788;bd(11,13600,F);k=11;break a}else{t=u-m|0;g=q;v=t&255;t=(t&65535)>>>8&255;k=(k&255)+y-z&255;break}while(0);m=E+(B+7)|0;l=a[(m&n)>>0]|0;if((l&255)<(k&255)){c[(F&p)>>2]=54453;c[(F&p)+4>>2]=10788;bd(11,13600,F);k=11;break}else{a[(m&n)>>0]=(l&255)-(k&255);A=23;break}}while(0);b:do if((A|0)==23){k=g&65535;l=E+(B+5)|0;m=E+(B+6)|0;do if((k|0)==(d[(l&n)>>0]<<8|d[(m&n)>>0]|0))if((q&65535|0)==(C|0)){a[(E+C&n)>>0]=r;a[(E+B&n)+2>>0]=s;a[(l&n)>>0]=u>>>8;a[(m&n)>>0]=u;break}else{c[(F&p)>>2]=54460;c[(F&p)+4>>2]=10788;bd(11,13600,F);k=11;break b}else{F=q&65535;a[(E+F&n)>>0]=(g&65535)>>>8;a[(E+F&n)+1>>0]=g;a[(E+k&n)>>0]=r;a[(E+k&n)+1>>0]=s;a[(E+k&n)+2>>0]=t;a[(E+k&n)+3>>0]=v}while(0);k=f+16|0;b[(k&o)>>1]=(e[(k&o)>>1]|0)+D;k=0}while(0);i=G;return k|0}function Dq(b,e,f,g){b=b|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,o=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0;w=i;i=i+16|0;if((i|0)>=(j|0))fa();t=w;s=d[(b&n)+6>>0]|0;v=c[(b&p)+56>>2]|0;r=c[((c[(b&p)+52>>2]|0)&p)+36>>2]|0;l=r+-4|0;b=s+1|0;while(1){m=v+b|0;o=(d[(m&n)>>0]|0)<<8|(d[(v+b&n)+1>>0]|0);if(!o){b=0;break}if((o|0)>(l|0)|(o|0)<(b+4|0)){u=4;break}h=v+(o+2)|0;k=v+(o+3)|0;b=(d[(h&n)>>0]|0)<<8|(d[(k&n)>>0]|0);if((b|0)<(e|0))b=o;else{q=h;l=o;u=6;break}}a:do if((u|0)==4){c[(t&p)>>2]=54252;c[(t&p)+4>>2]=10788;bd(11,13600,t);c[(f&p)>>2]=11;b=0}else if((u|0)==6){h=b-e|0;do if((h|0)>=4)if((b+l|0)>(r|0)){c[(t&p)>>2]=54275;c[(t&p)+4>>2]=10788;bd(11,13600,t);c[(f&p)>>2]=11;b=0;break a}else{a[(q&n)>>0]=h>>>8;a[(k&n)>>0]=h;break}else{b=v+(s+7)|0;if((d[(b&n)>>0]|0)<=59){s=v+l|0;s=d[(s&n)>>0]|d[(s&n)+1>>0]<<8;a[(m&n)>>0]=s;a[(m&n)+1>>0]=s>>8;a[(b&n)>>0]=(d[(b&n)>>0]|0)+h;break}if(!g){b=0;break a}c[(g&p)>>2]=1;b=0;break a}while(0);b=v+(h+l)|0}while(0);i=w;return b|0}function Eq(f){f=f|0;var g=0,h=0,k=0,l=0,m=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;G=i;i=i+16|0;if((i|0)>=(j|0))fa();E=G;B=c[(f&p)+56>>2]|0;D=d[(f&n)+6>>0]|0;x=e[(f&o)+14>>1]|0;y=b[(f&o)+18>>1]|0;t=y&65535;u=f+52|0;v=c[((c[(u&p)>>2]|0)&p)+36>>2]|0;C=(t<<1)+x|0;w=v+-4|0;z=B+(D+5)|0;A=B+(D+6)|0;a:do if(y<<16>>16){s=v;y=0;h=B;k=0;while(1){m=(y<<1)+x|0;l=B+m|0;m=B+(m+1)|0;q=(d[(l&n)>>0]|0)<<8|(d[(m&n)>>0]|0);if((q|0)<(C|0)|(q|0)>(w|0)){F=3;break}r=(Lp(f,h+q|0)|0)&65535;g=s-r|0;if((g|0)<(C|0)|(r+q|0)>(v|0)){F=5;break}a[(l&n)>>0]=g>>>8;a[(m&n)>>0]=g;if(!k)if((g|0)==(q|0))k=0;else{k=c[((c[(c[(u&p)>>2]&p)>>2]|0)&p)+200>>2]|0;h=(d[(z&n)>>0]|0)<<8|(d[(A&n)>>0]|0);kw(k+h|0,B+h|0,s-h|0)|0;h=k;F=9}else F=9;if((F|0)==9){F=0;kw(B+g|0,h+q|0,r|0)|0}y=y+1|0;if((y|0)>=(t|0)){F=11;break a}else s=g}if((F|0)==3){c[(E&p)>>2]=54184;c[(E&p)+4>>2]=10788;bd(11,13600,E);g=11;break}else if((F|0)==5){c[(E&p)>>2]=54196;c[(E&p)+4>>2]=10788;bd(11,13600,E);g=11;break}}else{g=v;F=11}while(0);if((F|0)==11){a[(z&n)>>0]=g>>>8;a[(A&n)>>0]=g;a[(B+D&n)+1>>0]=0;a[(B+D&n)+2>>0]=0;a[(B+D&n)+7>>0]=0;F=g-C|0;fw(B+C|0,0,F|0)|0;if((F|0)==(e[(f&o)+16>>1]|0|0))g=0;else{c[(E&p)>>2]=54221;c[(E&p)+4>>2]=10788;bd(11,13600,E);g=11}}i=G;return g|0}function Fq(a,e,f){a=a|0;e=e|0;f=f|0;var g=0,h=0,k=0;k=i;i=i+32|0;if((i|0)>=(j|0))fa();h=k;if((c[(f&p)>>2]|0)==0?(rp(a,e,h),g=b[(h&o)+18>>1]|0,g<<16>>16!=0):0){g=g&65535;zp(c[(a&p)+52>>2]|0,(d[(e+g&n)+1>>0]|0)<<16|(d[(e+g&n)>>0]|0)<<24|(d[(e+g&n)+2>>0]|0)<<8|(d[(e+g&n)+3>>0]|0),3,c[(a&p)+72>>2]|0,f)}i=k;return}function Gq(b,f,g){b=b|0;f=f|0;g=g|0;var h=0,i=0,j=0,k=0,l=0,m=0;do if(!(c[(g&p)>>2]|0)){h=c[(b&p)+52>>2]|0;j=c[(b&p)+56>>2]|0;l=c[(f&p)+56>>2]|0;i=d[(b&n)+6>>0]|0;k=(c[(f&p)+72>>2]|0)==1?100:0;m=d[(j+i&n)+5>>0]<<8|d[(j+i&n)+6>>0];kw(l+m|0,j+m|0,(c[(h&p)+36>>2]|0)-m|0)|0;kw(l+k|0,j+i|0,(e[(b&o)+18>>1]<<1)+(e[(b&o)+14>>1]|0)|0)|0;a[(f&n)>>0]=0;b=$p(f)|0;if(b){c[(g&p)>>2]=b;break}if(a[(h&n)+17>>0]|0)c[(g&p)>>2]=_p(f)|0}while(0);return}function Hq(f,g,h,i){f=f|0;g=g|0;h=h|0;i=i|0;var j=0,k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0;t=d[(f&n)+6>>0]|0;w=c[(f&p)+56>>2]|0;m=c[(f&p)+52>>2]|0;r=c[(m&p)+36>>2]|0;q=w+r|0;j=c[(f&p)+64>>2]|0;m=c[((c[(m&p)>>2]|0)&p)+200>>2]|0;s=w+(t+5)|0;u=w+(t+6)|0;v=(d[(s&n)>>0]|0)<<8|(d[(u&n)>>0]|0);kw(m+v|0,w+v|0,r-v|0)|0;v=w;if((g|0)>0){r=0;l=j;j=q;while(1){k=c[(h+(r<<2)&p)>>2]|0;if(k>>>0>w>>>0&k>>>0>>0)k=m+(k-v)|0;x=e[(i+(r<<1)&o)>>1]|0;j=j+(0-x)|0;kw(j|0,k|0,x|0)|0;k=j-v|0;a[(l&n)>>0]=k>>>8;a[(l&n)+1>>0]=k;r=r+1|0;if((r|0)==(g|0))break;else l=l+2|0}}else j=q;i=f+18|0;b[(i&o)>>1]=g;a[(f&n)+1>>0]=0;a[(w+t&n)+1>>0]=0;a[(w+t&n)+2>>0]=0;a[(w+t&n)+3>>0]=(e[(i&o)>>1]|0)>>>8;a[(w+t&n)+4>>0]=b[(i&o)>>1];i=j-v|0;a[(s&n)>>0]=i>>>8;a[(u&n)>>0]=i;a[(w+t&n)+7>>0]=0;return}function Iq(a,b,f,g){a=a|0;b=b|0;f=f|0;g=g|0;var h=0,i=0,j=0,k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0;u=c[(a&p)+56>>2]|0;s=u+(c[((c[(a&p)+52>>2]|0)&p)+36>>2]|0)|0;q=u+((d[(a&n)+6>>0]|0)+8+(d[(a&n)+7>>0]|0))|0;a:do if((b|0)>0){r=u;t=0;h=0;l=0;m=0;while(1){j=c[(f+(t<<2)&p)>>2]|0;if(j>>>0>=q>>>0&j>>>0>>0){i=e[(g+(t<<1)&o)>>1]|0;k=j+i|0;if((l|0)!=(k|0)){if(l)Cq(a,l-r&65535,m&65535)|0;if(k>>>0>s>>>0){h=0;break a}}else i=i+m|0;h=h+1|0}else{j=l;i=m}t=t+1|0;if((t|0)>=(b|0))break;else{l=j;m=i}}if(j)Cq(a,j-u&65535,i&65535)|0}else h=0;while(0);return h|0}function Jq(b,d,f,g,h,k,l){b=b|0;d=d|0;f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;var m=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0;y=i;i=i+16|0;if((i|0)>=(j|0))fa();w=y;q=c[(b&p)+56>>2]|0;m=c[(f&p)>>2]|0;if(!(a[(q&n)+1>>0]|0))v=(a[(q&n)+2>>0]|0)!=0;else v=1;a:do if((h|0)>0){t=0;while(1){s=e[(l+(t<<1)&o)>>1]|0;if(v?(u=Dq(b,s,w,0)|0,(u|0)!=0):0)r=u;else{r=m+(0-s)|0;if(r>>>0>>0){m=1;break a}else m=r}kw(r|0,c[(k+(t<<2)&p)>>2]|0,s|0)|0;s=r-q|0;a[(g&n)>>0]=s>>>8;a[(g&n)+1>>0]=s;t=t+1|0;if((t|0)>=(h|0)){x=9;break}else g=g+2|0}}else x=9;while(0);if((x|0)==9){c[(f&p)>>2]=m;m=0}i=y;return m|0}function Kq(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,q=0,r=0;o=i;i=i+16|0;if((i|0)>=(j|0))fa();n=o;e=c[(a&p)+44>>2]|0;h=a;f=c[(h&p)>>2]|0;h=c[(h&p)+4>>2]|0;a:do if(!e){m=a+40|0;e=c[(m&p)>>2]|0;g=((e|0)<0)<<31>>31;l=rw(f|0,h|0,e|0,g|0)|0;if(!l){k=a+8|0;k=dw(c[(k&p)>>2]|0,c[(k&p)+4>>2]|0,f|0,h|0)|0;q=G;r=c[(a&p)+24>>2]|0;e=tc[c[((c[(r&p)>>2]|0)&p)+8>>2]&31](r,c[(a&p)+36>>2]|0,(q|0)>(g|0)|(q|0)==(g|0)&k>>>0>e>>>0?e:k,f,h)|0;if(e)break;e=c[(m&p)>>2]|0}k=e-l|0;if((k|0)>=(b|0)){c[(d&p)>>2]=(c[(a&p)+36>>2]|0)+l;e=a;b=jw(c[(e&p)>>2]|0,c[(e&p)+4>>2]|0,b|0,((b|0)<0)<<31>>31|0)|0;e=a;c[(e&p)>>2]=b;c[(e&p)+4>>2]=G;e=0;break}e=a+16|0;f=c[(e&p)>>2]|0;if((f|0)<(b|0)){f=f<<1;f=(f|0)<128?128:f;while(1)if((f|0)<(b|0))f=f<<1;else{h=f;break}g=a+28|0;f=rg(c[(g&p)>>2]|0,h,((h|0)<0)<<31>>31)|0;if(!f){e=7;break}c[(e&p)>>2]=h;c[(g&p)>>2]=f}else f=c[(a&p)+28>>2]|0;h=a+28|0;kw(f|0,(c[(a&p)+36>>2]|0)+l|0,k|0)|0;l=a;l=jw(c[(l&p)>>2]|0,c[(l&p)+4>>2]|0,k|0,((k|0)<0)<<31>>31|0)|0;e=a;c[(e&p)>>2]=l;c[(e&p)+4>>2]=G;e=b-k|0;if((e|0)>0){g=e;do{f=c[(m&p)>>2]|0;f=(g|0)>(f|0)?f:g;e=Kq(a,f,n)|0;if(e)break a;kw((c[(h&p)>>2]|0)+(b-g)|0,c[(n&p)>>2]|0,f|0)|0;g=g-f|0}while((g|0)>0)}c[(d&p)>>2]=c[(h&p)>>2];e=0}else{c[(d&p)>>2]=e+f;b=jw(f|0,h|0,b|0,((b|0)<0)<<31>>31|0)|0;e=a;c[(e&p)>>2]=b;c[(e&p)+4>>2]=G;e=0}while(0);i=o;return e|0}function Lq(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=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,x=0,y=0,z=0,A=0;A=i;i=i+64|0;if((i|0)>=(j|0))fa();x=A+44|0;z=A;y=A+40|0;v=a+8|0;u=c[(v&p)>>2]|0;v=c[(v&p)+4>>2]|0;w=a+4|0;q=c[(w&p)>>2]|0;Pp(c[(a&p)+48>>2]|0,z,c[((c[((c[(a&p)>>2]|0)&p)+8>>2]|0)&p)+12>>2]|0,u,v);o=q+8|0;q=q+12|0;r=z+24|0;s=z+16|0;t=a+16|0;while(1){f=c[((c[(o&p)>>2]|0)&p)+4>>2]|0;g=c[(q&p)>>2]|0;h=c[(g+(f*56|0)&p)+20>>2]|0;if(!(c[(g+(f*56|0)&p)+24>>2]|0)){d=1;b=0;break}l=r;k=c[(l&p)>>2]|0;l=c[(l&p)+4>>2]|0;m=c[(s&p)>>2]|0;n=((h|0)<0)<<31>>31;b=h;e=n;d=0;do{d=d+1|0;b=mw(b|0,e|0,7)|0;e=G}while(((b|0)!=0|(e|0)!=0)&(d|0)<9);k=jw(k|0,l|0,h|0,n|0)|0;k=jw(k|0,G|0,m|0,((m|0)<0)<<31>>31|0)|0;d=jw(k|0,G|0,d|0,((d|0)<0)<<31>>31|0)|0;k=G;b=c[(t&p)>>2]|0;b=jw(b|0,((b|0)<0)<<31>>31|0,u|0,v|0)|0;e=G;if((k|0)>(e|0)|(k|0)==(e|0)&d>>>0>b>>>0){d=1;b=0;break}Qp(z,x,pm(x,h,n)|0);Qp(z,c[(g+(f*56|0)&p)+32>>2]|0,h);b=Wm(c[(w&p)>>2]|0,y)|0;if(b){d=0;break}}z=Rp(z,a+56|0)|0;i=A;return (d?z:b)|0}function Mq(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0;d=i;i=i+16|0;if((i|0)>=(j|0))fa();f=d;c[(f&p)>>2]=e;e=Wk(a,13592,f)|0;mg(a,b);i=d;return e|0}function Nq(d,e,f,g){d=d|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,q=0;q=i;i=i+16|0;if((i|0)>=(j|0))fa();m=q;h=a[(d&n)>>0]|0;if(h<<24>>24!=0&(e|0)>0){l=0;do{if((h+-48&255)<10){k=0;do{k=(k*10|0)+-48+(h<<24>>24)|0;d=d+1|0;h=a[(d&n)>>0]|0}while((h+-48&255)<10);h=0}else{k=0;h=0}b[(f+(l<<1)&o)>>1]=fs(k,h)|0;d=(a[(d&n)>>0]|0)==32?d+1|0:d;l=l+1|0;h=a[(d&n)>>0]|0}while(h<<24>>24!=0&(l|0)<(e|0))}l=g+51|0;a[(l&n)>>0]=a[(l&n)>>0]&-69;a:do if(a[(d&n)>>0]|0){f=g+44|0;b:while(1){do if(!(Gh(13448,d,10352,0)|0)){if(Gh(13464,d,10352,0)|0){c[(m&p)>>2]=0;Dn(d+3|0,m)|0;h=c[(m&p)>>2]|0;b[(f&o)>>1]=fs(h,((h|0)<0)<<31>>31)|0;break}if(Gh(13480,d,10352,0)|0)a[(l&n)>>0]=a[(l&n)>>0]|64}else a[(l&n)>>0]=a[(l&n)>>0]|4;while(0);while(1){h=a[(d&n)>>0]|0;if(h<<24>>24==32|h<<24>>24==0)break;d=d+1|0}while(1){k=d+1|0;if(!(h<<24>>24))break a;else if(h<<24>>24!=32)continue b;h=a[(k&n)>>0]|0;d=k}}}while(0);i=q;return}function Oq(d){d=d|0;var e=0,f=0;f=d+8|0;e=c[(f&p)>>2]|0;if(!e){e=vh(d)|0;c[(f&p)>>2]=e;if(e)wh(e,155,0,0,0)|0;if((c[(d&p)+408>>2]|0)==0?(b[((c[(d&p)>>2]|0)&o)+60>>1]&8)==0:0)a[(d&n)+23>>0]=1}return e|0}function Pq(b,d){b=b|0;d=d|0;var e=0;e=(c[(b&p)+32>>2]|0)+-1|0;if((e|0)>(c[((c[(b&p)+24>>2]|0)&p)+88>>2]|0)?(a[((c[(b&p)+4>>2]|0)+(e*20|0)&n)>>0]|0)==d<<24>>24:0){zh(b,e);e=1}else e=0;return e|0}function Qq(d,e,f,g,h){d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var i=0,j=0;j=Oq(d)|0;i=g+32|0;gs(d,f,c[(i&p)>>2]|0,(h|0)==55&1,c[(g&p)>>2]|0);if(!(a[(g&n)+44>>0]&32)){g=b[(g&o)+38>>1]|0;xh(j,wh(j,h,e,c[(i&p)>>2]|0,f)|0,g,-14)}else{i=c[(g&p)+8>>2]|0;a:do if(!i)i=0;else while(1){if((a[(i&n)+51>>0]&3)==2)break a;i=c[(i&p)+20>>2]|0;if(!i){i=0;break}}while(0);wh(j,h,e,c[(i&p)+40>>2]|0,f)|0;g=c[(d&p)+8>>2]|0;xh(g,-1,hs(d,i)|0,-6)}return}function Rq(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0;if((d|0)!=0?(a[(d&n)>>0]|0)==-97:0)wh(c[(b&p)+8>>2]|0,33,c[(d&p)+28>>2]|0,e,0)|0;else h=4;if(((h|0)==4?(g=is(b,d,e)|0,(g|0)!=(e|0)):0)?(f=c[(b&p)+8>>2]|0,(f|0)!=0):0)wh(f,34,g,e,0)|0;return}function Sq(b,d,e,f,g){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0;m=i;i=i+16|0;if((i|0)>=(j|0))fa();l=m;h=c[(b&p)>>2]|0;do if(((a[(h&n)+145>>0]|0)==0?(a[(b&n)+451>>0]|0)==0:0)?(k=c[(h&p)+284>>2]|0,(k|0)!=0):0){h=kc[k&7](c[(h&p)+288>>2]|0,d,e,f,g,c[(b&p)+492>>2]|0)|0;if((h|0)==1){th(b,25216,l);c[(b&p)+12>>2]=23;h=1;break}else if((h|0)==0|(h|0)==2)break;else{th(b,25232,l);c[(b&p)+12>>2]=1;h=1;break}}else h=0;while(0);i=m;return h|0}function Tq(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;d=Wq(c[(a&p)>>2]|0,d)|0;do if(d){e=Oq(a)|0;if((e|0)!=0?(Sq(a,32,c[(b<<2&p)+37088>>2]|0,d,0)|0)==0:0){xh(e,wh(e,2,b,0,0)|0,d,-1);break}mg(c[(a&p)>>2]|0,d)}while(0);return}function Uq(e,f,g,h,k,l,m){e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;m=m|0;var q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0;y=i;i=i+16|0;if((i|0)>=(j|0))fa();u=y;s=y+4|0;x=c[(e&p)>>2]|0;f=er(e,f,g,s)|0;a:do if((f|0)>=0){t=(h|0)!=0;if(t?(c[(g&p)+4>>2]|0)!=0&(f|0)!=1:0){th(e,36976,u);break}w=t?1:f;g=c[(s&p)>>2]|0;t=g;f=c[(t&p)+4>>2]|0;s=e+496|0;c[(s&p)>>2]=c[(t&p)>>2];c[(s&p)+4>>2]=f;s=Wq(x,g)|0;if(s){b:do if((Lr(e,s)|0)==0?(r=(a[(x&n)+144>>0]|0)==1?1:h,v=x+16|0,q=c[((c[(v&p)>>2]|0)+(w<<4)&p)>>2]|0,(Sq(e,18,(r|0)==1?13184:13208,0,q)|0)==0):0){h=(r|0)!=0;if(!k)f=h?4:2;else f=h?6:8;t=(l|0)!=0;if(!t?(Sq(e,f,s,0,q)|0)!=0:0)break;do if(!(a[(e&n)+451>>0]|0)){h=c[((c[(v&p)>>2]|0)+(w<<4)&p)>>2]|0;if(Gn(e)|0)break b;if(!(_h(x,s,h)|0)){if(!(bq(x,s,h)|0))break;c[(u&p)>>2]=s;th(e,37048,u);break b}if(!m){c[(u&p)>>2]=g;th(e,37024,u);break b}else{Ar(e,w);break b}}while(0);r=mh(x,76,0)|0;if(!r){a[(x&n)+65>>0]=1;c[(e&p)+12>>2]=7;v=e+64|0;c[(v&p)>>2]=(c[(v&p)>>2]|0)+1;break}q=r+0|0;h=q+76|0;do{a[(q&n)>>0]=0;q=q+1|0}while((q|0)<(h|0));c[(r&p)>>2]=s;b[(r&o)+36>>1]=-1;q=c[((c[(v&p)>>2]|0)+(w<<4)&p)+12>>2]|0;c[(r&p)+68>>2]=q;b[(r&o)+40>>1]=1;b[(r&o)+28>>1]=200;c[(e&p)+484>>2]=r;if((a[(e&n)+18>>0]|0)==0?(_v(s,26576)|0)==0:0)c[(q&p)+72>>2]=r;if(a[(x&n)+145>>0]|0)break a;g=Oq(e)|0;if(!g)break a;v=c[(e&p)+408>>2]|0;Ar(e,w);q=1<>2]=c[(v&p)>>2]|q;if(t)wh(g,146,0,0,0)|0;r=e+72|0;f=c[(r&p)>>2]|0;s=f+1|0;c[(e&p)+384>>2]=s;t=f+2|0;c[(e&p)+388>>2]=t;f=f+3|0;c[(r&p)>>2]=f;wh(g,51,w,f,2)|0;r=g+96|0;c[(r&p)>>2]=c[(r&p)>>2]|q;r=wh(g,45,f,0,0)|0;wh(g,25,(c[(x&p)+24>>2]&32768|0)!=0?1:4,f,0)|0;wh(g,52,w,2,f)|0;wh(g,25,d[(x&n)+62>>0]|0,f,0)|0;wh(g,52,w,5,f)|0;h=g+32|0;q=c[(h&p)>>2]|0;if(q>>>0>r>>>0)c[((c[(g&p)+4>>2]|0)+(r*20|0)&p)+8>>2]=q;c[((c[(g&p)+24>>2]|0)&p)+88>>2]=q+-1;if(!(l|k))c[(e&p)+416>>2]=wh(g,121,w,t,0)|0;else wh(g,25,0,t,0)|0;js(e,w);wh(g,74,0,s,0)|0;wh(g,28,0,f,0)|0;wh(g,75,0,f,s)|0;q=c[(g&p)+4>>2]|0;if(q)a[(q+(((c[(h&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=8;wh(g,61,0,0,0)|0;break a}while(0);mg(x,s)}}while(0);i=y;return}function Vq(f,g,h,k,l){f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;var m=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;R=i;i=i+176|0;if((i|0)>=(j|0))fa();M=R+80|0;J=R+168|0;G=R;H=R+136|0;I=R+112|0;N=c[(f&p)>>2]|0;a:do if((!((h|0)==0&(l|0)==0)?(O=N+65|0,(a[(O&n)>>0]|0)==0):0)?(P=f+484|0,Q=c[(P&p)>>2]|0,(Q|0)!=0):0){L=N+145|0;if(a[(L&n)>>0]|0)c[(Q&p)+32>>2]=c[(N&p)+140>>2];b:do if(k&32){s=Q+44|0;r=d[(s&n)>>0]|0;if(r&8){th(f,36584,M);break a}if(!(r&4)){c[(M&p)>>2]=c[(Q&p)>>2];th(f,36640,M);break}a[(s&n)>>0]=r|32;t=c[(f&p)+8>>2]|0;s=c[(f&p)+416>>2]|0;if(s){if((s|0)<0)s=(c[(t&p)+32>>2]|0)+-1|0;if(!(a[((c[(t&p)>>2]|0)&n)+65>>0]|0))s=(c[(t&p)+4>>2]|0)+(s*20|0)|0;else s=29120;a[(s&n)>>0]=120}s=c[(f&p)+420>>2]|0;if(s){if((s|0)<0)s=(c[(t&p)+32>>2]|0)+-1|0;if(!(a[((c[(t&p)>>2]|0)&n)+65>>0]|0))r=(c[(t&p)+4>>2]|0)+(s*20|0)|0;else r=29120;a[(r&n)>>0]=16}r=Q+36|0;if((b[(r&o)>>1]|0)>-1){s=lr(f,0,0)|0;if(!s)break;C=kh(c[(f&p)>>2]|0,c[((c[(Q&p)+4>>2]|0)+((b[(r&o)>>1]|0)*24|0)&p)>>2]|0)|0;D=c[(s&p)+4>>2]|0;c[(D&p)+4>>2]=C;a[(D&n)+12>>0]=a[(f&n)+448>>0]|0;s=$q(f,0,0,0,s,d[(Q&n)+45>>0]|0,0,0,0,0)|0;if(!s)break;x=s+51|0;a[(x&n)>>0]=a[(x&n)>>0]&-4|2;b[(r&o)>>1]=-1;x=b[(s&o)+46>>1]|0}else{s=c[(Q&p)+8>>2]|0;c:do if(!s)s=0;else while(1){if((a[(s&n)+51>>0]&3)==2)break c;s=c[(s&p)+20>>2]|0;if(!s){s=0;break}}while(0);y=s+46|0;t=b[(y&o)>>1]|0;if((t&65535)>1){w=c[(s&p)+4>>2]|0;v=s+48|0;x=1;r=1;do{m=b[(w+(x<<1)&o)>>1]|0;u=r;q=w;while(1){if((u|0)<=0){F=36;break}if((b[(q&o)>>1]|0)==m<<16>>16){F=35;break}else{u=u+-1|0;q=q+2|0}}if((F|0)==35){F=0;b[(v&o)>>1]=(b[(v&o)>>1]|0)+-1<<16>>16}else if((F|0)==36){F=0;b[(w+(r<<1)&o)>>1]=m;t=b[(y&o)>>1]|0;r=r+1|0}x=x+1|0}while((x|0)<(t&65535|0))}else r=1;x=r&65535;b[(y&o)>>1]=x}u=s+51|0;t=a[(u&n)>>0]|32;a[(u&n)>>0]=t;D=x&65535;if(!(a[(N&n)+147>>0]|0)){if(x<<16>>16){t=c[(s&p)+4>>2]|0;r=c[(Q&p)+4>>2]|0;q=0;do{a[(r+((b[(t+(q<<1)&o)>>1]|0)*24|0)&n)+20>>0]=1;q=q+1|0}while((q|0)<(D|0));t=a[(u&n)>>0]|0}a[(u&n)>>0]=t|8}c[(s&p)+40>>2]=c[(Q&p)+32>>2];u=c[(Q&p)+8>>2]|0;if(u){A=x<<16>>16==0;B=s+4|0;C=s+32|0;do{d:do if((a[(u&n)+51>>0]&3)!=2){do if(A)t=b[(u&o)+46>>1]|0;else{v=c[(u&p)+4>>2]|0;t=b[(u&o)+46>>1]|0;q=t&65535;m=c[(B&p)>>2]|0;z=0;r=0;do{w=b[(m+(z<<1)&o)>>1]|0;y=q;x=v;while(1){if((y|0)<=0){x=1;break}if((b[(x&o)>>1]|0)==w<<16>>16){x=0;break}else{y=y+-1|0;x=x+2|0}}r=x+r|0;z=z+1|0}while((z|0)<(D|0));q=u+46|0;if(!r)break;if(ks(N,u,(t&65535)+r|0)|0)break b;if(A)break d;w=b[(q&o)>>1]|0;z=u+4|0;m=u+32|0;y=w;x=0;w=w&65535;while(1){t=c[(z&p)>>2]|0;r=b[((c[(B&p)>>2]|0)+(x<<1)&o)>>1]|0;y=y&65535;v=t;while(1){if((y|0)<=0){F=63;break}if((b[(v&o)>>1]|0)==r<<16>>16)break;else{y=y+-1|0;v=v+2|0}}if((F|0)==63){F=0;b[(t+(w<<1)&o)>>1]=r;c[((c[(m&p)>>2]|0)+(w<<2)&p)>>2]=c[((c[(C&p)>>2]|0)+(x<<2)&p)>>2];w=w+1|0}x=x+1|0;if((x|0)>=(D|0))break d;y=b[(q&o)>>1]|0}}while(0);b[(u&o)+48>>1]=t}while(0);u=c[(u&p)+20>>2]|0}while((u|0)!=0)}y=Q+38|0;t=b[(y&o)>>1]|0;r=t<<16>>16;if((D|0)>=(r|0)){b[(s&o)+48>>1]=t;break}if((ks(N,s,r)|0)==0?(E=b[(y&o)>>1]|0,E<<16>>16>0):0){v=s+4|0;x=s+32|0;t=E;w=0;s=D;do{q=c[(v&p)>>2]|0;u=s;r=q;while(1){if((u|0)<=0){F=74;break}if((b[(r&o)>>1]|0)==(w|0))break;else{u=u+-1|0;r=r+2|0}}if((F|0)==74){F=0;b[(q+(s<<1)&o)>>1]=w;c[((c[(x&p)>>2]|0)+(s<<2)&p)>>2]=11152;t=b[(y&o)>>1]|0;s=s+1|0}w=w+1|0}while((w|0)<(t<<16>>16|0))}}while(0);F=Q+68|0;s=c[(F&p)>>2]|0;e:do if(s){r=c[(N&p)+20>>2]|0;if((r|0)>0){q=c[(N&p)+16>>2]|0;t=0;while(1){m=t+1|0;if((c[(q+(t<<4)&p)+12>>2]|0)==(s|0))break e;if((m|0)<(r|0))t=m;else{t=m;break}}}else t=0}else t=-1e6;while(0);q=c[(Q&p)+24>>2]|0;f:do if(q){c[(H&p)>>2]=0;c[(H&p)+4>>2]=0;c[(H&p)+8>>2]=0;c[(H&p)+12>>2]=0;c[(H&p)+16>>2]=0;c[(H&p)+20>>2]=0;c[(H&p)+24>>2]=0;c[(H&p)+28>>2]=0;s=G+0|0;r=s+80|0;do{c[(s&p)>>2]=0;s=s+4|0}while((s|0)<(r|0));c[(G&p)>>2]=1;c[(G&p)+16>>2]=c[(Q&p)>>2];c[(G&p)+24>>2]=Q;c[(G&p)+48>>2]=-1;c[(H&p)>>2]=f;c[(H&p)+4>>2]=G;b[(H&o)+28>>1]=4;s=q+4|0;if((c[(q&p)>>2]|0)>0){r=0;do{if(ls(H,c[((c[(s&p)>>2]|0)+(r*20|0)&p)>>2]|0)|0)break f;r=r+1|0}while((r|0)<(c[(q&p)>>2]|0))}}while(0);D=Q+38|0;m=b[(D&o)>>1]|0;if(m<<16>>16>0){s=m<<16>>16;r=c[(Q&p)+4>>2]|0;q=0;while(1){q=(d[(r&n)+22>>0]|0)+q|0;s=s+-1|0;if((s|0)<=0)break;else r=r+24|0}}else q=0;b[(Q&o)+42>>1]=fs(((e[(Q&o)+36>>1]|0)>>>15&65535)+q<<2,0)|0;q=c[(Q&p)+8>>2]|0;if(q)do{ms(q);q=c[(q&p)+20>>2]|0}while((q|0)!=0);if(!(a[(L&n)>>0]|0)){E=Oq(f)|0;if(!E)break;wh(E,61,0,0,0)|0;B=(c[(Q&p)+12>>2]|0)==0;r=B?36672:36680;B=B?31232:35480;do if(!l){q=k<<24>>24==0?h:f+504|0;l=c[(q&p)>>2]|0;s=c[(f&p)+496>>2]|0;m=l-s|0;if((a[(l&n)>>0]|0)!=59)m=(c[(q&p)+4>>2]|0)+m|0;c[(M&p)>>2]=r;c[(M&p)+4>>2]=m;c[(M&p)+8>>2]=s;s=f+388|0;m=Q;r=uh(N,36688,M)|0}else{s=f+388|0;wh(E,55,1,c[(s&p)>>2]|0,t)|0;r=c[(E&p)+4>>2]|0;if(r)a[(r+(((c[(E&p)+32>>2]|0)+-1|0)*20|0)&n)+3>>0]=4;c[(f&p)+68>>2]=2;a[(I&n)>>0]=14;c[(I&p)+4>>2]=1;a[(I&n)+1>>0]=0;c[(I&p)+8>>2]=0;c[(I&p)+12>>2]=0;ir(f,l,I)|0;wh(E,61,1,0,0)|0;if(!(c[(f&p)+64>>2]|0)){m=ns(f,l)|0;if(!m)break a;I=m+38|0;b[(D&o)>>1]=b[(I&o)>>1]|0;l=m+4|0;c[(Q&p)+4>>2]=c[(l&p)>>2];b[(I&o)>>1]=0;c[(l&p)>>2]=0;kg(N,m)}C=Q+4|0;z=b[(D&o)>>1]|0;if(z<<16>>16>0){v=z<<16>>16;w=0;r=0;x=c[(C&p)>>2]|0;while(1){m=c[(x&p)>>2]|0;q=0;while(1){u=a[(m&n)>>0]|0;if(u<<24>>24==34)q=q+1|0;else if(!(u<<24>>24))break;m=m+1|0;q=q+1|0}r=r+7+q|0;w=w+1|0;if((w|0)==(v|0))break;else x=x+24|0}u=r+2|0}else u=2;m=c[(Q&p)>>2]|0;r=0;while(1){q=a[(m&n)>>0]|0;if(q<<24>>24==34)r=r+1|0;else if(!(q<<24>>24))break;m=m+1|0;r=r+1|0}x=r+u|0;A=(x|0)<50;u=A?10360:36880;y=A?20240:36888;A=A?33952:36896;x=((z<<16>>16)*6|0)+35+x|0;r=qg(x,((x|0)<0)<<31>>31)|0;if(!r){a[(O&n)>>0]=1;m=Q;r=0;break}ad(x,r,36904,M)|0;q=r;while(1)if(!(a[(q&n)>>0]|0))break;else q=q+1|0;c[(J&p)>>2]=q-r&1073741823;os(r,J,c[(Q&p)>>2]|0);m=c[(J&p)>>2]|0;v=m+1|0;c[(J&p)>>2]=v;a[(r+m&n)>>0]=40;m=x-v|0;q=r+v|0;if((b[(D&o)>>1]|0)>0){z=0;w=c[(C&p)>>2]|0;while(1){ad(m,q,u,M)|0;q=r+v|0;if(!q)q=0;else{u=q;while(1)if(!(a[(u&n)>>0]|0))break;else u=u+1|0;q=u-q&1073741823}c[(J&p)>>2]=q+v;os(r,J,c[(w&p)>>2]|0);q=c[((a[(w&n)+21>>0]|0)+-65<<2&p)+36920>>2]|0;u=q;while(1)if(!(a[(u&n)>>0]|0))break;else u=u+1|0;v=u-q&1073741823;u=c[(J&p)>>2]|0;kw(r+u|0,q|0,v|0)|0;v=u+v|0;c[(J&p)>>2]=v;u=z+1|0;m=x-v|0;q=r+v|0;if((u|0)<(b[(D&o)>>1]|0)){z=u;w=w+24|0;u=y}else break}}c[(M&p)>>2]=A;ad(m,q,10344,M)|0;m=Q}while(0);q=N+16|0;k=c[(m&p)>>2]|0;I=c[(s&p)>>2]|0;l=c[(f&p)+384>>2]|0;c[(M&p)>>2]=c[((c[(q&p)>>2]|0)+(t<<4)&p)>>2];c[(M&p)+4>>2]=(t|0)==1?13184:13208;c[(M&p)+8>>2]=B;c[(M&p)+12>>2]=k;c[(M&p)+16>>2]=k;c[(M&p)+20>>2]=I;c[(M&p)+24>>2]=r;c[(M&p)+28>>2]=l;Br(f,36704,M);mg(N,r);Dr(f,t);if((a[(Q&n)+44>>0]&8)!=0?(K=c[(q&p)>>2]|0,(c[((c[(K+(t<<4)&p)+12>>2]|0)&p)+72>>2]|0)==0):0){c[(M&p)>>2]=c[(K+(t<<4)&p)>>2];Br(f,36792,M)}c[(M&p)>>2]=c[(m&p)>>2];Ir(E,t,uh(N,36840,M)|0);if(!(a[(L&n)>>0]|0))break}else m=Q;if(Ik((c[(F&p)>>2]|0)+8|0,c[(m&p)>>2]|0,Q)|0){a[(O&n)>>0]=1;break}c[(P&p)>>2]=0;l=N+24|0;c[(l&p)>>2]=c[(l&p)>>2]|2;if(!(c[(Q&p)+12>>2]|0)){l=c[(f&p)+496>>2]|0;c[(Q&p)+48>>2]=(Nn(l,(c[(((c[(g&p)>>2]|0)==0?h:g)&p)>>2]|0)-l|0)|0)+13}}while(0);i=R;return}function Wq(b,d){b=b|0;d=d|0;var e=0,f=0;if(!d)e=0;else{f=c[(d&p)>>2]|0;d=c[(d&p)+4>>2]|0;if((f|0)!=0?(e=jw(d|0,0,1,0)|0,e=mh(b,e,G)|0,(e|0)!=0):0){kw(e|0,f|0,d|0)|0;a[(e+d&n)>>0]=0}else e=0;lo(e)}return e|0}function Xq(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,o=0,q=0;o=i;i=i+16|0;if((i|0)>=(j|0))fa();m=o;a:do if(b){g=a[(b&n)>>0]|0;b:do if(!(g<<24>>24)){f=67;g=0}else{k=g;f=67;h=0;g=0;do{h=d[(k&255&n)+9328>>0]|0|h<<8;b=b+1|0;if((h|0)==1685026146)if(f<<24>>24==67){f=69;h=1685026146;l=5}else l=13;else if((h|0)==1668050786){f=66;l=5}else if((h|0)==1718382433)if(f<<24>>24==67){f=69;h=1718382433;l=5}else l=13;else if((h|0)==1919246700)if(f<<24>>24==67){f=69;h=1919246700;l=5}else l=14;else if((h|0)==1952807028){f=66;l=5}else if((h|0)==1651273570)if(f<<24>>24==69|f<<24>>24==67){q=a[(b&n)>>0]|0;k=q;f=65;h=1651273570;g=q<<24>>24==40?b:g}else l=14;else if((h|0)!=1667785074)if((h&16777215|0)==6909556){f=68;break b}else l=5;else{f=66;h=1667785074;g=b;l=5}if((l|0)==13)l=5;else if((l|0)==14)l=5;if((l|0)==5){l=0;k=a[(b&n)>>0]|0}}while(k<<24>>24!=0)}while(0);if((e|0)!=0?(a[(e&n)>>0]=1,f<<24>>24<67):0){if(!g){a[(e&n)>>0]=5;break}b=a[(g&n)>>0]|0;if(b<<24>>24){while(1){if(((b&255)+-48|0)>>>0<10)break;g=g+1|0;b=a[(g&n)>>0]|0;if(!(b<<24>>24))break a}c[(m&p)>>2]=0;Dn(g,m)|0;g=((c[(m&p)>>2]|0)/4|0)+1|0;g=(g|0)>255?255:g;c[(m&p)>>2]=g;a[(e&n)>>0]=g}}}else f=67;while(0);i=o;return f|0}function Yq(e,f){e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,q=0,r=0,s=0,t=0;r=i;i=i+32|0;if((i|0)>=(j|0))fa();m=r;q=c[(e&p)>>2]|0;k=c[(e&p)+484>>2]|0;do if(k){h=(b[(k&o)+38>>1]|0)+-1|0;l=c[(k&p)+4>>2]|0;s=c[(f&p)>>2]|0;t=(d[(q&n)+145>>0]|0)+4|0;c[(m&p)>>2]=0;c[(m&p)+4>>2]=0;c[(m&p)+8>>2]=0;c[(m&p)+12>>2]=0;c[(m&p)+16>>2]=0;c[(m&p)+20>>2]=0;k=m+20|0;a[(k&n)>>0]=t;c[(m&p)>>2]=78;c[(m&p)+4>>2]=79;c[(m&p)+24>>2]=0;rs(m,s)|0;if(!(a[(k&n)>>0]|0)){c[(m&p)>>2]=c[(l+(h*24|0)&p)>>2];th(e,36480,m);break}k=l+(h*24|0)+4|0;Gk(q,c[(k&p)>>2]|0);c[(k&p)>>2]=Mr(q,c[(f&p)>>2]|0,1,0)|0;l=l+(h*24|0)+8|0;mg(q,c[(l&p)>>2]|0);h=c[(f&p)+4>>2]|0;k=(c[(f&p)+8>>2]|0)-h|0;if((h|0)!=0?(g=jw(k|0,((k|0)<0)<<31>>31|0,1,0)|0,g=mh(q,g,G)|0,(g|0)!=0):0){kw(g|0,h|0,k|0)|0;a[(g+k&n)>>0]=0}else g=0;c[(l&p)>>2]=g}while(0);Gk(q,c[(f&p)>>2]|0);i=r;return}function Zq(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,k=0;k=i;i=i+16|0;if((i|0)>=(j|0))fa();h=k;if((b|0)==72&(d|0)!=0&(e|0)!=0?(c[(a&p)+64>>2]|0)==0:0)b=ss(c[(a&p)>>2]|0,d,e)|0;else{b=nr(c[(a&p)>>2]|0,b,f,1)|0;ts(c[(a&p)>>2]|0,b,d,e)}if((b|0)!=0?(g=c[((c[(a&p)>>2]|0)&p)+100>>2]|0,(g|0)<(c[(b&p)+24>>2]|0)):0){c[(h&p)>>2]=g;th(a,27152,h)}i=k;return b|0}function _q(e,f,g,h,k){e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;var l=0,m=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;i=i+16|0;if((i|0)>=(j|0))fa();C=D;A=c[(e&p)+484>>2]|0;do if((A|0)!=0?(a[(e&n)+451>>0]|0)==0:0){B=A+44|0;m=d[(B&n)>>0]|0;if(m&4){c[(C&p)>>2]=c[(A&p)>>2];th(e,36376,C);break}y=m|4;a[(B&n)>>0]=y;z=(f|0)==0;if(z){m=(b[(A&o)+38>>1]|0)+-1|0;w=c[(A&p)+4>>2]|0;l=w+(m*24|0)+23|0;a[(l&n)>>0]=d[(l&n)>>0]|1;l=m;q=1;m=c[(w+(m*24|0)&p)+12>>2]|0}else{x=c[(f&p)>>2]|0;if((x|0)>0){u=f+4|0;v=A+4|0;t=b[(A&o)+38>>1]|0;w=0;m=0;do{a:do if(t<<16>>16>0){r=c[((c[(u&p)>>2]|0)+(w*20|0)&p)+4>>2]|0;s=c[(v&p)>>2]|0;q=0;while(1){l=q+1|0;if(!(dd(r,c[(s+(q*24|0)&p)>>2]|0)|0))break;if((l|0)<(t<<16>>16|0))q=l;else break a}l=s+(q*24|0)+23|0;a[(l&n)>>0]=d[(l&n)>>0]|1;l=q;m=c[(s+(q*24|0)&p)+12>>2]|0}else l=0;while(0);w=w+1|0}while((w|0)!=(x|0))}else{l=-1;m=0}q=(x|0)==1}if(q&(m|0)!=0?(dd(m,11144)|0|k|0)==0:0){b[(A&o)+36>>1]=l;a[(A&n)+45>>0]=g;a[(B&n)>>0]=y|h<<3;if(z){f=0;break}a[(e&n)+448>>0]=a[((c[(f&p)+4>>2]|0)&n)+12>>0]|0;break}if(h){th(e,36424,C);break}m=c[(e&p)+8>>2]|0;l=(m|0)!=0;if(l)c[(e&p)+420>>2]=wh(m,156,0,0,0)|0;f=$q(e,0,0,0,f,g,0,0,k,0)|0;if((f|0)!=0?(w=f+51|0,a[(w&n)>>0]=a[(w&n)>>0]&-4|2,l):0){f=c[(e&p)+420>>2]|0;l=c[(m&p)+32>>2]|0;if(l>>>0>f>>>0)c[((c[(m&p)+4>>2]|0)+(f*20|0)&p)+8>>2]=l;c[((c[(m&p)+24>>2]|0)&p)+88>>2]=l+-1;f=0}else f=0}while(0);Nk(c[(e&p)>>2]|0,f);i=D;return}function $q(f,g,h,k,l,m,q,r,s,t){f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;m=m|0;q=q|0;r=r|0;s=s|0;t=t|0;var 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;Y=i;i=i+144|0;if((i|0)>=(j|0))fa();V=Y;E=Y+112|0;x=Y+88|0;T=Y+84|0;N=Y+80|0;X=c[(f&p)>>2]|0;c[(T&p)>>2]=0;c[(N&p)>>2]=0;S=X+65|0;a:do if(((a[(S&n)>>0]|0)==0?(a[(f&n)+451>>0]|0)==0:0)?(Gn(f)|0)==0:0){U=(k|0)!=0;b:do if(U){g=er(f,g,h,T)|0;if((g|0)<0){u=0;h=0;break a}if((a[(X&n)+145>>0]|0)==0?(u=Jr(f,k)|0,(c[(h&p)+4>>2]|0)==0&(u|0)!=0):0)g=(c[(u&p)+68>>2]|0)==(c[((c[(X&p)+16>>2]|0)&p)+28>>2]|0)?1:g;h=c[(T&p)>>2]|0;u=c[(f&p)>>2]|0;c[(x&p)>>2]=f;u=c[(u&p)+16>>2]|0;c[(x&p)+12>>2]=c[(u+(g<<4)&p)>>2];c[(x&p)+4>>2]=c[(u+(g<<4)&p)+12>>2];c[(x&p)+16>>2]=20632;c[(x&p)+20>>2]=h;u=(g|0)==1;c[(x&p)+8>>2]=u&1;Kr(x,k)|0;w=Ur(f,0,k+8|0)|0;if(!w){u=0;h=0;break a}if(u?(c[((c[(X&p)+16>>2]|0)&p)+28>>2]|0)!=(c[(w&p)+68>>2]|0):0){c[(V&p)>>2]=c[(w&p)>>2];th(f,35920,V);u=0;h=0;break a}if((a[(w&n)+44>>0]&32)!=0?(v=c[(w&p)+8>>2]|0,(v|0)!=0):0){u=v;while(1){if((a[(u&n)+51>>0]&3)==2){v=g;M=u;x=w;break b}u=c[(u&p)+20>>2]|0;if(!u){v=g;M=0;x=w;break}}}else{v=g;M=0;x=w}}else{x=c[(f&p)+484>>2]|0;if(!x){u=0;h=0;break a}g=c[(x&p)+68>>2]|0;if(g){u=c[(X&p)+20>>2]|0;if((u|0)>0){h=c[(X&p)+16>>2]|0;w=0;while(1){v=w+1|0;if((c[(h+(w<<4)&p)+12>>2]|0)==(g|0)){h=0;v=w;M=0;break b}if((v|0)<(u|0))w=v;else{h=0;M=0;break}}}else{h=0;v=0;M=0}}else{h=0;v=-1e6;M=0}}while(0);R=X+16|0;F=c[(R&p)>>2]|0;g=F+(v<<4)|0;A=c[(x&p)>>2]|0;if(((Fc(A,25568,7)|0)==0?(a[(X&n)+145>>0]|0)==0:0)?(Fc(A+7|0,35976,9)|0)!=0:0){c[(V&p)>>2]=A;th(f,35992,V);u=0;h=0;break}if(c[(x&p)+12>>2]|0){th(f,36024,V);u=0;h=0;break}Q=x+44|0;if(a[(Q&n)>>0]&16){th(f,36056,V);u=0;h=0;break}G=(h|0)==0;if(!G){h=Wq(X,h)|0;if(!h){u=0;h=0;break}if(Lr(f,h)|0){u=0;break}if((a[(X&n)+145>>0]|0)==0?(_h(X,h,0)|0)!=0:0){c[(V&p)>>2]=h;th(f,36096,V);u=0;break}if(bq(X,h,c[(g&p)>>2]|0)|0)if(!t){c[(V&p)>>2]=h;th(f,36136,V);u=0;break}else{Ar(f,v);u=0;break}else w=h}else{u=c[(x&p)+8>>2]|0;if(!u)w=1;else{w=1;do{w=w+1|0;u=c[(u&p)+20>>2]|0}while((u|0)!=0)}c[(V&p)>>2]=A;c[(V&p)+4>>2]=w;w=uh(X,36160,V)|0;if(!w){u=0;h=0;break}}g=c[(g&p)>>2]|0;u=(v|0)==1;O=u?13184:13208;if((Sq(f,18,O,0,g)|0)==0?(Sq(f,u?3:1,w,c[(x&p)>>2]|0,g)|0)==0:0){if(!l){l=lr(f,0,0)|0;if(!l){l=0;u=0;h=w;break}I=kh(c[(f&p)>>2]|0,c[((c[(x&p)+4>>2]|0)+(((b[(x&o)+38>>1]|0)+-1|0)*24|0)&p)>>2]|0)|0;J=c[(l&p)+4>>2]|0;c[(J&p)+4>>2]=I;a[(J&n)+12>>0]=s}D=c[(l&p)>>2]|0;if((D|0)>0){A=c[(l&p)+4>>2]|0;y=0;g=0;do{u=c[(A+(y*20|0)&p)>>2]|0;if(u){h=c[(u&p)+8>>2]|0;if(!h)u=1;else{u=h;while(1)if(!(a[(u&n)>>0]|0))break;else u=u+1|0;u=(u-h&1073741823)+1|0}g=u+g|0}y=y+1|0}while((y|0)<(D|0));h=g}else h=0;if(!w)u=0;else{g=w;while(1)if(!(a[(g&n)>>0]|0))break;else g=g+1|0;u=g-w&1073741823}I=(M|0)!=0;if(I)g=e[(M&o)+46>>1]|0;else g=1;P=us(X,D+g&65535,h+1+u|0,N)|0;c:do if(!(a[(S&n)>>0]|0)){H=c[(N&p)>>2]|0;c[(P&p)>>2]=H;L=u+1|0;C=H+L|0;c[(N&p)>>2]=C;kw(H|0,w|0,L|0)|0;c[(P&p)+12>>2]=x;L=P+50|0;a[(L&n)>>0]=m;H=P+51|0;a[(H&n)>>0]=a[(H&n)>>0]&-12|((m|0)!=0&1)<<3&255|G&1;K=P+24|0;c[(K&p)>>2]=c[((c[(R&p)>>2]|0)+(v<<4)&p)+12>>2];g=c[(l&p)>>2]|0;J=P+46|0;b[(J&o)>>1]=g;if(r){c[(E&p)>>2]=0;c[(E&p)+4>>2]=0;c[(E&p)+8>>2]=0;c[(E&p)+12>>2]=0;c[(E&p)+16>>2]=0;c[(E&p)+20>>2]=0;c[(E&p)+24>>2]=0;c[(E&p)+28>>2]=0;A=V+0|0;h=A+80|0;do{c[(A&p)>>2]=0;A=A+4|0}while((A|0)<(h|0));c[(V&p)>>2]=1;c[(V&p)+16>>2]=c[(x&p)>>2];c[(V&p)+24>>2]=x;c[(V&p)+48>>2]=-1;c[(E&p)>>2]=f;c[(E&p)+4>>2]=V;b[(E&o)+28>>1]=16;ls(E,r)|0;c[(P&p)+36>>2]=r;g=c[(l&p)>>2]|0}z=(d[((c[(F+(v<<4)&p)+12>>2]|0)&n)+76>>0]|0)>3;d:do if((g|0)>0){G=x+4|0;F=x+38|0;E=P+4|0;r=X+145|0;g=P+32|0;y=P+28|0;h=0;s=c[(l&p)+4>>2]|0;while(1){u=c[(s&p)+4>>2]|0;A=b[(F&o)>>1]|0;e:do if(A<<16>>16>0){D=0;B=c[(G&p)>>2]|0;while(1){if(!(dd(u,c[(B&p)>>2]|0)|0)){t=D;break e}D=D+1|0;if((D|0)<(A<<16>>16|0))B=B+24|0;else{t=D;break}}}else t=0;while(0);if((t|0)>=(A<<16>>16|0))break;b[((c[(E&p)>>2]|0)+(h<<1)&o)>>1]=t;D=c[(s&p)>>2]|0;if(!D){D=c[((c[(G&p)>>2]|0)+(t*24|0)&p)+16>>2]|0;D=(D|0)!=0?D:11152}else{B=c[(D&p)+8>>2]|0;if(!B)D=1;else{D=B;while(1)if(!(a[(D&n)>>0]|0))break;else D=D+1|0;D=(D-B&1073741823)+1|0}kw(C|0,B|0,D|0)|0;B=c[(N&p)>>2]|0;C=B+D|0;c[(N&p)>>2]=C;D=B}if((a[(r&n)>>0]|0)==0?(cr(f,D)|0)==0:0){h=0;u=0;W=134;break c}c[((c[(g&p)>>2]|0)+(h<<2)&p)>>2]=D;a[((c[(y&p)>>2]|0)+h&n)>>0]=z?a[(s&n)+12>>0]|0:0;if(!(a[((c[(G&p)>>2]|0)+(t*24|0)&n)+20>>0]|0))a[(H&n)>>0]=a[(H&n)>>0]&-9;h=h+1|0;if((h|0)<(c[(l&p)>>2]|0))s=s+20|0;else break d}c[(V&p)>>2]=c[(x&p)>>2];c[(V&p)+4>>2]=u;th(f,36184,V);a[(f&n)+17>>0]=1;h=0;u=0;W=134;break c}else h=0;while(0);do if(I){z=M+46|0;A=b[(z&o)>>1]|0;if(!(A<<16>>16))break;E=M+4|0;F=P+4|0;G=P+48|0;s=M+32|0;t=P+32|0;g=M+28|0;y=P+28|0;r=0;do{B=b[((c[(E&p)>>2]|0)+(r<<1)&o)>>1]|0;u=c[(F&p)>>2]|0;D=e[(J&o)>>1]|0;C=u;while(1){if((D|0)<=0){W=92;break}if((b[(C&o)>>1]|0)==B<<16>>16){W=91;break}else{D=D+-1|0;C=C+2|0}}if((W|0)==91){W=0;b[(G&o)>>1]=(b[(G&o)>>1]|0)+-1<<16>>16}else if((W|0)==92){W=0;b[(u+(h<<1)&o)>>1]=B;c[((c[(t&p)>>2]|0)+(h<<2)&p)>>2]=c[((c[(s&p)>>2]|0)+(r<<2)&p)>>2];a[((c[(y&p)>>2]|0)+h&n)>>0]=a[((c[(g&p)>>2]|0)+r&n)>>0]|0;A=b[(z&o)>>1]|0;h=h+1|0}r=r+1|0}while((r|0)<(A&65535|0))}else{b[((c[(P&p)+4>>2]|0)+(h<<1)&o)>>1]=-1;c[((c[(P&p)+32>>2]|0)+(h<<2)&p)>>2]=11152}while(0);cq(P);r=f+484|0;g=c[(r&p)>>2]|0;if(!g){ms(P);g=c[(r&p)>>2]|0}f:do if((x|0)==(g|0)){u=c[(x&p)+8>>2]|0;if(!u)break;B=b[(J&o)>>1]|0;C=P+4|0;D=P+32|0;while(1){if((b[(u&o)+46>>1]|0)==B<<16>>16){g:do if(!(B<<16>>16)){r=0;g=0}else{y=c[(u&p)+4>>2]|0;z=c[(C&p)>>2]|0;A=u+32|0;g=0;while(1){if((b[(y+(g<<1)&o)>>1]|0)!=(b[(z+(g<<1)&o)>>1]|0)){r=B;break g}r=c[((c[(A&p)>>2]|0)+(g<<2)&p)>>2]|0;h=c[((c[(D&p)>>2]|0)+(g<<2)&p)>>2]|0;if((r|0)!=(h|0)?(dd(r,h)|0)!=0:0){r=B;break g}g=g+1|0;if((g|0)>=(B&65535|0)){r=B;break}}}while(0);if((g|0)==(r&65535|0))break}u=c[(u&p)+20>>2]|0;if(!u)break f}g=u+50|0;h=a[(g&n)>>0]|0;r=a[(L&n)>>0]|0;if(h<<24>>24==r<<24>>24){h=0;break c}if(!(h<<24>>24==10|r<<24>>24==10)){c[(V&p)>>2]=0;th(f,36216,V);h=a[(g&n)>>0]|0}if(h<<24>>24!=10){h=0;W=134;break c}a[(g&n)>>0]=a[(L&n)>>0]|0;h=0;break c}while(0);h=X+145|0;do if(!(a[(h&n)>>0]|0)){if(c[(f&p)+64>>2]|0){W=126;break}if(!((a[(Q&n)>>0]&32)==0|U)){W=126;break}u=f+72|0;r=(c[(u&p)>>2]|0)+1|0;c[(u&p)>>2]=r;u=Oq(f)|0;if(!u){h=0;u=0;W=134;break c}J=c[(f&p)+408>>2]|0;J=(J|0)==0?f:J;Ar(f,v);I=J+328|0;c[(I&p)>>2]=c[(I&p)>>2]|1<>0]=d[(J&n)>>0]|1;wh(u,120,v,r,0)|0;if(!q)g=0;else{g=c[(c[(T&p)>>2]&p)>>2]|0;J=(c[(f&p)+504>>2]|0)-g+(c[(f&p)+508>>2]|0)|0;I=J+-1|0;J=(a[(g+I&n)>>0]|0)==59?I:J;c[(V&p)>>2]=(m|0)==0?10360:36288;c[(V&p)+4>>2]=J;c[(V&p)+8>>2]=g;g=uh(X,36264,V)|0}I=c[(P&p)>>2]|0;J=c[(x&p)>>2]|0;c[(V&p)>>2]=c[((c[(R&p)>>2]|0)+(v<<4)&p)>>2];c[(V&p)+4>>2]=O;c[(V&p)+8>>2]=I;c[(V&p)+12>>2]=J;c[(V&p)+16>>2]=r;c[(V&p)+20>>2]=g;Br(f,36296,V);mg(X,g);if(!U)break;vs(f,P,r);Dr(f,v);c[(V&p)>>2]=c[(P&p)>>2];Ir(u,v,uh(X,36344,V)|0);wh(u,144,0,0,0)|0;W=126}else{if(Ik((c[(K&p)>>2]|0)+24|0,c[(P&p)>>2]|0,P)|0){a[(S&n)>>0]=1;h=0;u=0;W=134;break c}J=X+24|0;c[(J&p)>>2]=c[(J&p)>>2]|2;if(!U)break;c[(P&p)+40>>2]=c[(X&p)+140>>2];W=126}while(0);if((W|0)==126?!((a[(h&n)>>0]|0)!=0|(k|0)==0):0){h=0;u=0;W=134;break}h=c[(x&p)+8>>2]|0;do if((m|0)==5){if(!h){h=0;break}if((a[(h&n)+50>>0]|0)==5)break;do{u=h+20|0;h=c[(u&p)>>2]|0;if(!h){h=0;break}}while((a[(h&n)+50>>0]|0)!=5);c[(P&p)+20>>2]=h;c[(u&p)>>2]=P;r=0;u=P;h=w;break a}while(0);c[(P&p)+20>>2]=h;c[(x&p)+8>>2]=P;r=0;u=P;h=w;break a}else{h=r;u=0;W=134}while(0);if((W|0)==134)if(!P){r=h;h=w;break}Jk(X,P);r=h;h=w}else{u=0;h=w}}else{u=0;h=0}while(0);Gk(X,r);Nk(X,l);Do(X,k);mg(X,h);i=Y;return u|0}function ar(e,f){e=e|0;f=f|0;var g=0,h=0;g=c[(e&p)+484>>2]|0;h=c[(e&p)>>2]|0;if(((g|0)!=0?(a[(e&n)+451>>0]|0)==0:0)?(b[((c[((c[((c[(h&p)+16>>2]|0)+(d[(h&n)+144>>0]<<4)&p)+4>>2]|0)&p)+4>>2]|0)&o)+22>>1]&1)==0:0){h=g+24|0;g=lr(e,c[(h&p)>>2]|0,f)|0;c[(h&p)>>2]=g;if(c[(e&p)+324>>2]|0)mr(e,g,e+320|0,1)}else Gk(h,f);return}function br(d,e,f,g,h){d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0;F=i;i=i+16|0;if((i|0)>=(j|0))fa();C=F;E=c[(d&p)>>2]|0;D=c[(d&p)+484>>2]|0;a:do if((D|0)!=0?(a[(d&n)+451>>0]|0)==0:0){z=(e|0)==0;do if(z){B=b[(D&o)+38>>1]|0;l=(B<<16>>16)+-1|0;if(B<<16>>16<1){k=0;break a}if(g)if((c[(g&p)>>2]|0)==1){l=1;k=13}else{c[(C&p)>>2]=c[((c[(D&p)+4>>2]|0)+(l*24|0)&p)>>2];c[(C&p)+4>>2]=f;th(d,35712,C);k=0;break a}else{l=1;k=12}}else{if(!g){l=c[(e&p)>>2]|0;k=12;break}l=c[(g&p)>>2]|0;if((l|0)==(c[(e&p)>>2]|0))k=13;else{th(d,35776,C);k=0;break a}}while(0);if((k|0)==12){m=f+4|0;s=m;w=0;m=(l<<3)+37+(c[(m&p)>>2]|0)|0;B=l}else if((k|0)==13){s=f+4|0;m=(l<<3)+37+(c[(s&p)>>2]|0)|0;t=c[(g&p)>>2]|0;if((t|0)>0){u=c[(g&p)+4>>2]|0;v=0;do{r=c[(u+(v*20|0)&p)+4>>2]|0;if(!r)k=1;else{q=r;while(1)if(!(a[(q&n)>>0]|0))break;else q=q+1|0;k=(q-r&1073741823)+1|0}m=k+m|0;v=v+1|0}while((v|0)<(t|0));w=1;B=l}else{w=1;B=l}}k=mh(E,m,((m|0)<0)<<31>>31)|0;if(k){fw(k|0,0,m|0)|0;c[(k&p)>>2]=D;A=D+16|0;c[(k&p)+4>>2]=c[(A&p)>>2];x=k+36|0;q=x+(B<<3)|0;y=k+8|0;c[(y&p)>>2]=q;kw(q|0,c[(f&p)>>2]|0,c[(s&p)>>2]|0)|0;a[(q+(c[(s&p)>>2]|0)&n)>>0]=0;lo(q);q=q+((c[(s&p)>>2]|0)+1)|0;c[(k&p)+20>>2]=B;b:do if(!z){if((B|0)>0){m=D+4|0;f=e+4|0;r=b[(D&o)+38>>1]|0;l=0;while(1){c:do if(r<<16>>16>0){v=c[(m&p)>>2]|0;u=c[((c[(f&p)>>2]|0)+(l*20|0)&p)+4>>2]|0;t=0;while(1){s=t+1|0;if(!(dd(c[(v+(t*24|0)&p)>>2]|0,u)|0)){s=t;break}if((s|0)<(r<<16>>16|0))t=s;else break c}c[(x+(l<<3)&p)>>2]=s}else s=0;while(0);if((s|0)>=(r<<16>>16|0))break;l=l+1|0;if((l|0)>=(B|0))break b}c[(C&p)>>2]=c[((c[(f&p)>>2]|0)+(l*20|0)&p)+4>>2];th(d,35872,C);break a}}else c[(x&p)>>2]=(b[(D&o)+38>>1]|0)+-1;while(0);if(w&(B|0)>0){r=g+4|0;s=0;while(1){m=c[((c[(r&p)>>2]|0)+(s*20|0)&p)+4>>2]|0;if(!m)l=0;else{l=m;while(1)if(!(a[(l&n)>>0]|0))break;else l=l+1|0;l=l-m&1073741823}c[(x+(s<<3)&p)+4>>2]=q;kw(q|0,m|0,l|0)|0;a[(q+l&n)>>0]=0;s=s+1|0;if((s|0)==(B|0))break;else q=q+(l+1)|0}}a[(k&n)+24>>0]=0;a[(k&n)+25>>0]=h;a[(k&n)+26>>0]=h>>>8;l=Ik((c[(D&p)+68>>2]|0)+56|0,c[(y&p)>>2]|0,k)|0;if((l|0)==(k|0)){a[(E&n)+65>>0]=1;break}if(l){c[(k&p)+12>>2]=l;c[(l&p)+16>>2]=k}c[(A&p)>>2]=k;k=0}else k=0}else k=0;while(0);mg(E,k);Nk(E,e);Nk(E,g);i=F;return}function cr(b,d){b=b|0;d=d|0;var e=0,f=0,g=0;e=c[(b&p)>>2]|0;f=a[(e&n)+62>>0]|0;g=a[(e&n)+145>>0]|0;e=Yn(e,f,d,g&255)|0;do if(!(g<<24>>24)){if((e|0)!=0?(c[(e&p)+12>>2]|0)!=0:0)break;e=ws(b,f,e,d)|0}while(0);return e|0}function dr(e,f,g,h){e=e|0;f=f|0;g=g|0;h=h|0;var k=0,l=0,m=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;i=i+16|0;if((i|0)>=(j|0))fa();z=B;v=B+12|0;A=c[(e&p)>>2]|0;do if(!(a[(A&n)+65>>0]|0)){h=(h|0)!=0;if(h){u=A+68|0;a[(u&n)>>0]=(a[(u&n)>>0]|0)+1<<24>>24;y=Ur(e,g,f+8|0)|0;a[(u&n)>>0]=(a[(u&n)>>0]|0)+-1<<24>>24}else y=Ur(e,g,f+8|0)|0;if(!y){if(!h)break;zr(e,c[(f&p)+12>>2]|0);break}s=y+68|0;l=c[(s&p)>>2]|0;a:do if(l){h=c[(A&p)+20>>2]|0;if((h|0)>0){k=c[(A&p)+16>>2]|0;q=0;while(1){m=q+1|0;if((c[(k+(q<<4)&p)+12>>2]|0)==(l|0)){m=q;break a}if((m|0)<(h|0))q=m;else break}}else m=0}else m=-1e6;while(0);w=y+44|0;if((a[(w&n)>>0]&16)!=0?(hr(e,y)|0)!=0:0)break;q=(m|0)==1;x=q?13184:13208;h=c[((c[(A&p)+16>>2]|0)+(m<<4)&p)>>2]|0;if(!(Sq(e,9,x,0,h)|0)){k=(g|0)!=0;do if(k){l=q?15:17;q=0}else{if(!(a[(w&n)>>0]&16)){l=q?13:11;q=0;break}q=y+60|0;while(1){q=c[(q&p)>>2]|0;if((c[(q&p)>>2]|0)==(A|0))break;else q=q+24|0}l=30;q=c[((c[(q&p)+4>>2]|0)&p)+4>>2]|0}while(0);if((Sq(e,l,c[(y&p)>>2]|0,q,h)|0)==0?(Sq(e,9,c[(y&p)>>2]|0,0,h)|0)==0:0){q=c[(y&p)>>2]|0;if((Fc(q,25568,7)|0)==0?(Fc(q,35488,11)|0)!=0:0){c[(z&p)>>2]=q;th(e,35504,z);break}h=y+12|0;l=(c[(h&p)>>2]|0)==0;if(k){if(l){c[(z&p)>>2]=q;th(e,35536,z);break}}else if(!l){c[(z&p)>>2]=q;th(e,35576,z);break}if(Oq(e)|0){t=e+408|0;l=c[(t&p)>>2]|0;l=(l|0)==0?e:l;Ar(e,m);u=1<>2]=c[(k&p)>>2]|u;l=l+20|0;a[(l&n)>>0]=d[(l&n)>>0]|1;Cr(e,m,28544,c[(y&p)>>2]|0);l=c[(e&p)>>2]|0;k=l+24|0;b:do if(((c[(k&p)>>2]&524288|0)!=0?(a[(w&n)>>0]&16)==0:0)?(c[(h&p)>>2]|0)==0:0){r=Oq(e)|0;v=bn((c[(s&p)>>2]|0)+56|0,c[(y&p)>>2]|0,v)|0;if((v|0)!=0?(c[(v&p)+8>>2]|0)!=0:0)q=0;else{q=c[(y&p)+16>>2]|0;if(!q)break;while(1){if(a[(q&n)+24>>0]|0)break;if(c[(k&p)>>2]&16777216)break;q=c[(q&p)+4>>2]|0;if(!q)break b}q=xs(r)|0;wh(r,135,1,q,0)|0}v=e+438|0;a[(v&n)>>0]=1;rr(e,ys(l,f,0)|0,0);a[(v&n)>>0]=0;if(!(c[(k&p)>>2]&16777216)){wh(r,135,0,(c[(r&p)+32>>2]|0)+2|0,0)|0;zs(e,787,2,0,-2,4)}if(q){l=c[(r&p)+24>>2]|0;h=~q;do if((q|0)<0){q=c[(l&p)+112>>2]|0;if(!q)break;c[(q+(h<<2)&p)>>2]=c[(r&p)+32>>2]}while(0);c[(l&p)+88>>2]=(c[(r&p)+32>>2]|0)+-1}}while(0);r=c[(e&p)>>2]|0;s=r+16|0;l=c[(s&p)>>2]|0;h=Oq(e)|0;v=c[(t&p)>>2]|0;v=(v|0)==0?e:v;Ar(e,m);t=v+328|0;c[(t&p)>>2]=c[(t&p)>>2]|u;v=v+20|0;a[(v&n)>>0]=d[(v&n)>>0]|1;if(a[(w&n)>>0]&16)wh(h,146,0,0,0)|0;q=As(e,y)|0;if(q)do{Qr(e,q);q=c[(q&p)+32>>2]|0}while((q|0)!=0);l=l+(m<<4)|0;if(a[(w&n)>>0]&8){v=c[(y&p)>>2]|0;c[(z&p)>>2]=c[(l&p)>>2];c[(z&p)+4>>2]=v;Br(e,35608,z)}v=c[(y&p)>>2]|0;c[(z&p)>>2]=c[(l&p)>>2];c[(z&p)+4>>2]=x;c[(z&p)+8>>2]=v;Br(e,35656,z);if((g|0)==0?(a[(w&n)>>0]&16)==0:0)Bs(e,y);if(a[(w&n)>>0]&16){v=c[(y&p)>>2]|0;xh(h,wh(h,148,m,0,0)|0,v,0)}k=c[(y&p)>>2]|0;xh(h,wh(h,124,m,0,0)|0,k,0);Dr(e,m);h=c[((c[(s&p)>>2]|0)+(m<<4)&p)+12>>2]|0;k=b[(h&o)+78>>1]|0;if(k&2){l=c[(h&p)+16>>2]|0;if(l){k=l;do{h=c[(k&p)+8>>2]|0;if(c[(h&p)+12>>2]|0){Lk(r,h);c[(h&p)+4>>2]=0;b[(h&o)+38>>1]=0}k=c[(k&p)>>2]|0}while((k|0)!=0);k=c[((c[(s&p)>>2]|0)+(m<<4)&p)+12>>2]|0;h=k;k=b[(k&o)+78>>1]|0}b[(h&o)+78>>1]=k&65533}}}}}while(0);Do(A,f);i=B;return}function er(b,e,f,g){b=b|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0;m=i;i=i+16|0;if((i|0)>=(j|0))fa();k=m;h=c[(b&p)>>2]|0;do if((f|0)!=0?(c[(f&p)+4>>2]|0)!=0:0){if(a[(h&n)+145>>0]|0){th(b,28488,k);f=b+64|0;c[(f&p)>>2]=(c[(f&p)>>2]|0)+1;f=-1;break}c[(g&p)>>2]=f;g=Wq(h,e)|0;f=Vh(h,g)|0;mg(h,g);if((f|0)<0){c[(k&p)>>2]=e;th(b,28512,k);f=b+64|0;c[(f&p)>>2]=(c[(f&p)>>2]|0)+1;f=-1}}else l=7;while(0);if((l|0)==7){f=d[(h&n)+144>>0]|0;c[(g&p)>>2]=e}i=m;return f|0}function fr(a,b){a=a|0;b=b|0;a:do if(!b)b=0;else while(1){if(Hr(a,c[(b&p)>>2]|0)|0){b=1;break a}if(Kr(a,c[(b&p)+32>>2]|0)|0){b=1;break a}if(Gr(a,c[(b&p)+36>>2]|0)|0){b=1;break a}if(Hr(a,c[(b&p)+40>>2]|0)|0){b=1;break a}if(Gr(a,c[(b&p)+44>>2]|0)|0){b=1;break a}if(Hr(a,c[(b&p)+48>>2]|0)|0){b=1;break a}if(Gr(a,c[(b&p)+60>>2]|0)|0){b=1;break a}if(Gr(a,c[(b&p)+64>>2]|0)|0){b=1;break a}b=c[(b&p)+52>>2]|0;if(!b){b=0;break}}while(0);return b|0}function gr(d,f,g){d=d|0;f=f|0;g=g|0;var h=0,i=0,j=0,k=0,l=0;if((f|0)!=0?(h=mh(d,72,0)|0,(h|0)!=0):0){c[(h&p)>>2]=Pr(d,c[(f&p)>>2]|0,g)|0;c[(h&p)+32>>2]=ys(d,c[(f&p)+32>>2]|0,g)|0;c[(h&p)+36>>2]=Mr(d,c[(f&p)+36>>2]|0,g,0)|0;c[(h&p)+40>>2]=Pr(d,c[(f&p)+40>>2]|0,g)|0;c[(h&p)+44>>2]=Mr(d,c[(f&p)+44>>2]|0,g,0)|0;c[(h&p)+48>>2]=Pr(d,c[(f&p)+48>>2]|0,g)|0;a[(h&n)+4>>0]=a[(f&n)+4>>0]|0;j=gr(d,c[(f&p)+52>>2]|0,g)|0;c[(h&p)+52>>2]=j;if(j)c[(j&p)+56>>2]=h;c[(h&p)+56>>2]=0;c[(h&p)+60>>2]=Mr(d,c[(f&p)+60>>2]|0,g,0)|0;c[(h&p)+64>>2]=Mr(d,c[(f&p)+64>>2]|0,g,0)|0;c[(h&p)+8>>2]=0;c[(h&p)+12>>2]=0;b[(h&o)+6>>1]=(e[(f&o)+6>>1]|0)&65527;c[(h&p)+16>>2]=-1;c[(h&p)+20>>2]=-1;l=f+24|0;j=c[(l&p)+4>>2]|0;g=h+24|0;c[(g&p)>>2]=c[(l&p)>>2];c[(g&p)+4>>2]=j;g=c[(f&p)+68>>2]|0;if((g|0)!=0?(k=c[(g&p)>>2]<<4|8,i=mh(d,k,((k|0)<0)<<31>>31)|0,(i|0)!=0):0){fw(i|0,0,k|0)|0;c[(i&p)>>2]=c[(g&p)>>2];if((c[(g&p)>>2]|0)>0){f=i+8|0;j=0;do{c[(f+(j<<4)&p)+8>>2]=gr(d,c[(g+(j<<4)&p)+16>>2]|0,0)|0;c[(f+(j<<4)&p)+4>>2]=Pr(d,c[(g+(j<<4)&p)+12>>2]|0,0)|0;c[(f+(j<<4)&p)>>2]=kh(d,c[(g+(j<<4)&p)+8>>2]|0)|0;j=j+1|0}while((j|0)<(c[(g&p)>>2]|0))}}else i=0;c[(h&p)+68>>2]=i}else h=0;return h|0}function hr(d,f){d=d|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0;w=i;i=i+16|0;if((i|0)>=(j|0))fa();s=w;k=w+8|0;m=w+4|0;v=c[(d&p)>>2]|0;q=f+44|0;h=a[(q&n)>>0]|0;a:do if(!(h&16))t=11;else{g=c[(f&p)+60>>2]|0;if(g)do{if((c[(g&p)>>2]|0)==(v|0)){t=11;break a}g=c[(g&p)+24>>2]|0}while((g|0)!=0);g=f+56|0;h=bn(v+308|0,c[(c[(g&p)>>2]&p)>>2]|0,k)|0;if((h|0)!=0?(l=c[(h&p)+8>>2]|0,(l|0)!=0):0){c[(m&p)>>2]=0;l=(zn(v,f,l,c[((c[(l&p)>>2]|0)&p)+8>>2]|0,m)|0)==0;h=c[(m&p)>>2]|0;if(l){mg(v,h);h=a[(q&n)>>0]|0;t=11;break}else{c[(s&p)>>2]=h;th(d,10344,s);mg(v,h);g=1;break}}c[(s&p)>>2]=c[(c[(g&p)>>2]&p)>>2];th(d,28320,s);g=1}while(0);do if((t|0)==11)if((h&16)==0?(u=f+38|0,r=b[(u&o)>>1]|0,r<<16>>16<=0):0){if(r<<16>>16<0){c[(s&p)>>2]=c[(f&p)>>2];th(d,26752,s);g=1;break}h=gr(v,c[(f&p)+12>>2]|0,0)|0;if(!h)g=1;else{r=v+250|0;q=a[(r&n)>>0]|0;t=d+68|0;s=c[(t&p)>>2]|0;Cs(d,c[(h&p)+32>>2]|0);b[(u&o)>>1]=-1;a[(r&n)>>0]=0;m=v+284|0;l=c[(m&p)>>2]|0;c[(m&p)>>2]=0;g=ns(d,h)|0;c[(m&p)>>2]=l;a[(r&n)>>0]=q;c[(t&p)>>2]=s;if(!g){b[(u&o)>>1]=0;g=1}else{d=g+38|0;b[(u&o)>>1]=b[(d&o)>>1]|0;t=g+4|0;c[(f&p)+4>>2]=c[(t&p)>>2];b[(d&o)>>1]=0;c[(t&p)>>2]=0;kg(v,g);g=(c[(f&p)+68>>2]|0)+78|0;b[(g&o)>>1]=e[(g&o)>>1]|0|2;g=0}Mk(v,h,1)}}else g=0;while(0);i=w;return g|0} function ir(f,g,h){f=f|0;g=g|0;h=h|0;var k=0,l=0,m=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,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,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;Ca=i;i=i+240|0;if((i|0)>=(j|0))fa();ra=Ca;sa=Ca+220|0;ka=Ca+216|0;ia=Ca+196|0;ja=Ca+176|0;ua=Ca+164|0;va=Ca+136|0;ya=Ca+88|0;ga=Ca+64|0;ma=Ca+32|0;Aa=f+464|0;Ba=c[(Aa&p)>>2]|0;oa=f+468|0;xa=c[(oa&p)>>2]|0;c[(oa&p)>>2]=xa+1;c[(Aa&p)>>2]=xa;xa=c[(f&p)>>2]|0;a:do if((((g|0)!=0?(pa=xa+65|0,(a[(pa&n)>>0]|0)==0):0)?(k=f+64|0,(c[(k&p)>>2]|0)==0):0)?(Sq(f,21,0,0,0)|0)==0:0){D=ya+0|0;C=D+48|0;do{c[(D&p)>>2]=0;D=D+4|0}while((D|0)<(C|0));la=g+48|0;if((d[(h&n)>>0]|0)<9){Nk(xa,c[(la&p)>>2]|0);c[(la&p)>>2]=0;ea=g+6|0;b[(ea&o)>>1]=e[(ea&o)>>1]&65534}Ds(f,g,0);c[(va&p)>>2]=0;c[(va&p)+4>>2]=0;c[(va&p)+8>>2]=0;c[(va&p)+12>>2]=0;c[(va&p)+16>>2]=0;c[(va&p)+20>>2]=0;c[(va&p)+24>>2]=0;c[(va&p)>>2]=c[(la&p)>>2];na=g+32|0;x=c[(na&p)>>2]|0;w=c[(g&p)>>2]|0;b:do if(((c[(k&p)>>2]|0)==0?(a[(pa&n)>>0]|0)==0:0)?(ta=g+6|0,z=(e[(ta&o)>>1]|0)>>>2&1,wa=Oq(f)|0,(wa|0)!=0):0){if((c[(w&p)>>2]|0)>1?(a[(h&n)>>0]&-2)<<24>>24==10:0){th(f,35368,ra);za=444;break}qa=g+52|0;w=c[(qa&p)>>2]|0;c:do if(!w){r=f+460|0;q=f+492|0;m=g+36|0;l=f+408|0;k=g+60|0;T=g+64|0;U=g+4|0;V=xa+60|0;W=wa+32|0;X=f+72|0;Y=ga+4|0;Z=ga+1|0;_=ga+8|0;$=ga+12|0;aa=wa+4|0;ba=wa+24|0;ca=f+19|0;da=f+56|0;ea=f+80|0;S=0;y=z;while(1){if((S|0)>=(c[(x&p)>>2]|0)){H=m;Q=0;z=y;U=x;break c}N=c[(x+(S*72|0)&p)+28>>2]|0;do if(!N)z=S;else{P=x+(S*72|0)+32|0;A=c[(P&p)>>2]|0;if(A){if(a[(x+(S*72|0)&n)+45>>0]&4){z=S;break}wh(wa,17,c[(x+(S*72|0)&p)+36>>2]|0,A,0)|0;z=S;break}c[(ra&p)>>2]=0;Es(g,ra);c[(r&p)>>2]=(c[(r&p)>>2]|0)+(c[(ra&p)>>2]|0);v=b[(N&o)+6>>1]&4;Q=c[(q&p)>>2]|0;u=c[(f&p)>>2]|0;d:do if(!(b[(u&o)+60>>1]&1)){L=c[(na&p)>>2]|0;t=c[(L+(S*72|0)&p)+48>>2]|0;K=L+(S*72|0)+28|0;O=c[(K&p)>>2]|0;s=v<<16>>16!=0;do if(s){if(y){za=120;break d}if((c[(L&p)>>2]|0)>1){za=120;break d}R=c[(m&p)>>2]|0;if((R|0)!=0?(c[(R&p)+4>>2]&2097152|0)!=0:0){za=120;break d}H=c[(g&p)>>2]|0;do if(H){E=c[(H&p)>>2]|0;if((E|0)<=0)break;I=c[(H&p)+4>>2]|0;H=0;F=0;do{F=c[((c[(I+(H*20|0)&p)>>2]|0)&p)+4>>2]|F;H=H+1|0}while((H|0)!=(E|0));if(F&2097152){za=120;break d}}while(0);H=c[(la&p)>>2]|0;if(!H)break;E=c[(H&p)>>2]|0;if((E|0)<=0)break;I=c[(H&p)+4>>2]|0;H=0;F=0;do{F=c[((c[(I+(H*20|0)&p)>>2]|0)&p)+4>>2]|F;H=H+1|0}while((H|0)!=(E|0));if(F&2097152){za=120;break d}}while(0);I=c[(O&p)+32>>2]|0;H=(c[(O&p)+60>>2]|0)==0;if(!H?(c[(k&p)>>2]|0)!=0:0){za=120;break}if(c[(O&p)+64>>2]|0){za=120;break}E=b[(ta&o)>>1]|0;F=(E&64)==0;if(!(F|H)){za=120;break}if(!(c[(I&p)>>2]|0)){za=120;break}D=b[(O&o)+6>>1]|0;if(D&1){za=120;break}I=H|F^1;if(!I?(c[(L&p)>>2]|0)>1|(y|0)!=0:0){za=120;break}H=E&1;if(H<<16>>16!=0&s){za=120;break}B=c[(la&p)>>2]|0;C=(B|0)==0;if(!C?(c[(O&p)+48>>2]|0)!=0:0){za=120;break}J=(y|0)!=0;if(J?(c[(O&p)+48>>2]|0)!=0:0){za=120;break}if(I){if(D&6144){za=120;break}}else if(!((c[(m&p)>>2]|0)==0&H<<16>>16==0&(D&6144)==0)){za=120;break}if((E&2048)!=0?(c[(O&p)+52>>2]|0)!=0:0){za=120;break}R=L+(S*72|0)+44|0;if(a[(R&n)>>0]&32){za=120;break}E=O+52|0;I=c[(E&p)>>2]|0;do if(I){if(!(H<<16>>16==0&(((c[(O&p)+48>>2]|0)!=0|J)^1))){za=120;break d}if((c[(L&p)>>2]|0)!=1){za=120;break d}e:do if(O){if(!(D&5))F=O;else{za=120;break d}while(1){H=(I|0)==0;if(!H?(a[(F&n)+4>>0]|0)!=116:0){za=120;break d}if((c[(c[(F&p)+32>>2]&p)>>2]|0)<1){za=120;break d}if((c[(c[(O&p)>>2]&p)>>2]|0)!=(c[(c[(F&p)>>2]&p)>>2]|0)){za=120;break d}if(H)break e;if(b[(I&o)+6>>1]&5){za=120;break d}F=I;I=c[(I&p)+52>>2]|0}}while(0);if(C)break;F=c[(B&p)>>2]|0;if((F|0)<=0)break;I=c[(B&p)+4>>2]|0;H=0;do{if(!(b[(I+(H*20|0)&o)+16>>1]|0)){za=120;break d}H=H+1|0}while((H|0)<(F|0))}while(0);A=L+(S*72|0)+16|0;c[(q&p)>>2]=c[(A&p)>>2];Sq(f,21,0,0,0)|0;c[(q&p)>>2]=Q;I=c[(E&p)>>2]|0;f:do if(!I)za=81;else{B=u+65|0;E=c[(la&p)>>2]|0;D=c[(k&p)>>2]|0;C=c[(T&p)>>2]|0;F=c[(qa&p)>>2]|0;while(1){c[(la&p)>>2]=0;c[(na&p)>>2]=0;c[(qa&p)>>2]=0;c[(k&p)>>2]=0;c[(T&p)>>2]=0;H=gr(u,g,0)|0;c[(T&p)>>2]=C;c[(k&p)>>2]=D;c[(la&p)>>2]=E;c[(na&p)>>2]=L;a[(U&n)>>0]=116;if(!H)H=F;else{c[(H&p)+52>>2]=F;if(F)c[(F&p)+56>>2]=H;c[(H&p)+56>>2]=g}c[(qa&p)>>2]=H;if(a[(B&n)>>0]|0)break f;I=c[(I&p)+52>>2]|0;if(!I){za=81;break}else F=H}}while(0);if((za|0)==81){za=0;M=c[(K&p)>>2]|0;E=L+(S*72|0)+12|0;mg(u,c[(E&p)>>2]|0);mg(u,c[(A&p)>>2]|0);F=L+(S*72|0)+20|0;mg(u,c[(F&p)>>2]|0);c[(E&p)>>2]=0;c[(A&p)>>2]=0;c[(F&p)>>2]=0;c[(K&p)>>2]=0;F=L+(S*72|0)+24|0;E=c[(F&p)>>2]|0;if(E){D=E+40|0;C=b[(D&o)>>1]|0;if(C<<16>>16==1){Q=c[(l&p)>>2]|0;Q=((Q|0)==0?f:Q)+524|0;c[(E&p)+72>>2]=c[(Q&p)>>2];c[(Q&p)>>2]=E}else b[(D&o)>>1]=C+-1<<16>>16;c[(F&p)>>2]=0}Q=S+1|0;P=u+65|0;O=g;N=M;while(1){B=c[(N&p)+32>>2]|0;A=c[(B&p)>>2]|0;H=O+32|0;I=c[(H&p)>>2]|0;if(!I){I=pr(u,0,0,0)|0;c[(H&p)>>2]=I;if(!I)break;else z=0}else z=a[(R&n)>>0]|0;if((A|0)>1){I=Fs(u,I,A+-1|0,Q)|0;c[(H&p)>>2]=I;if(a[(P&n)>>0]|0)break}if((A|0)>0){F=0;do{D=F+S|0;Hk(u,c[(I+(D*72|0)&p)+56>>2]|0);H=B+(F*72|0)+8|0;D=I+(D*72|0)+8|0;E=H+0|0;C=D+72|0;do{c[(D&p)>>2]=c[(E&p)>>2];D=D+4|0;E=E+4|0}while((D|0)<(C|0));D=H+0|0;C=D+72|0;do{c[(D&p)>>2]=0;D=D+4|0}while((D|0)<(C|0));F=F+1|0}while((F|0)!=(A|0))}a[(I+(S*72|0)&n)+44>>0]=z;H=c[(O&p)>>2]|0;I=c[(H&p)>>2]|0;if((I|0)>0){D=H+4|0;F=c[(D&p)>>2]|0;E=0;do{if(!(c[(F+(E*20|0)&p)+4>>2]|0)){I=kh(u,c[(F+(E*20|0)&p)+8>>2]|0)|0;lo(I);F=c[(D&p)>>2]|0;c[(F+(E*20|0)&p)+4>>2]=I;I=c[(H&p)>>2]|0}E=E+1|0}while((E|0)<(I|0));H=c[(O&p)>>2]|0}Gs(u,H,t,c[(N&p)>>2]|0);if(J){Gs(u,c[(O&p)+40>>2]|0,t,c[(N&p)>>2]|0);L=O+44|0;c[(L&p)>>2]=Hs(u,c[(L&p)>>2]|0,t,c[(N&p)>>2]|0)|0}I=N+48|0;H=c[(I&p)>>2]|0;do if(!H){H=c[(O&p)+48>>2]|0;if(!H)break;Gs(u,H,t,c[(N&p)>>2]|0)}else{F=c[(H&p)>>2]|0;if((F|0)>0){E=c[(H&p)+4>>2]|0;D=0;do{b[(E+(D*20|0)&o)+16>>1]=0;D=D+1|0}while((D|0)!=(F|0))}c[(O&p)+48>>2]=H;c[(I&p)>>2]=0}while(0);H=c[(N&p)+36>>2]|0;if(!H)F=0;else F=Mr(u,H,0,0)|0;I=O+36|0;H=c[(I&p)>>2]|0;if(s){L=O+44|0;c[(L&p)>>2]=H;c[(I&p)>>2]=F;K=Hs(u,H,t,c[(N&p)>>2]|0)|0;c[(L&p)>>2]=K;c[(L&p)>>2]=ss(u,K,Mr(u,c[(N&p)+44>>2]|0,0,0)|0)|0;c[(O&p)+40>>2]=Pr(u,c[(N&p)+40>>2]|0,0)|0}else{L=Hs(u,H,t,c[(N&p)>>2]|0)|0;c[(I&p)>>2]=L;c[(I&p)>>2]=ss(u,L,F)|0}H=O+6|0;b[(H&o)>>1]=e[(H&o)>>1]|e[(N&o)+6>>1]&1;H=N+60|0;F=c[(H&p)>>2]|0;if(F){c[(O&p)+60>>2]=F;c[(H&p)>>2]=0}O=c[(O&p)+52>>2]|0;if(!O)break;else N=c[(N&p)+52>>2]|0}Mk(u,M,1)}if(!(v<<16>>16)){z=-1;break}b[(ta&o)>>1]=e[(ta&o)>>1]|4;z=-1;y=1}else za=120;while(0);g:do if((za|0)==120){za=0;do if((c[(x&p)>>2]|0)==1){if(b[(V&o)>>1]&256)break;D=c[(W&p)>>2]|0;R=D+1|0;Q=(c[(X&p)>>2]|0)+1|0;c[(X&p)>>2]=Q;z=x+(S*72|0)+36|0;c[(z&p)>>2]=Q;wh(wa,20,Q,0,R)|0;c[(P&p)>>2]=R;R=c[(z&p)>>2]|0;a[(ga&n)>>0]=13;c[(Y&p)>>2]=R;a[(Z&n)>>0]=0;c[(_&p)>>2]=0;c[($&p)>>2]=0;a[(x+(S*72|0)&n)+46>>0]=c[(oa&p)>>2];ir(f,N,ga)|0;R=N+24|0;R=fs(c[(R&p)>>2]|0,c[(R&p)+4>>2]|0)|0;b[((c[(x+(S*72|0)&p)+24>>2]|0)&o)+28>>1]=R;R=x+(S*72|0)+45|0;a[(R&n)>>0]=a[(R&n)>>0]|4;c[(x+(S*72|0)&p)+40>>2]=c[(_&p)>>2];wh(wa,21,c[(z&p)>>2]|0,0,0)|0;z=c[(W&p)>>2]|0;if(z>>>0>D>>>0)c[((c[(aa&p)>>2]|0)+(D*20|0)&p)+8>>2]=z;c[((c[(ba&p)>>2]|0)&p)+88>>2]=z+-1;a[(ca&n)>>0]=0;c[(da&p)>>2]=0;z=S;break g}while(0);C=(c[(X&p)>>2]|0)+1|0;c[(X&p)>>2]=C;E=x+(S*72|0)+36|0;c[(E&p)>>2]=C;C=wh(wa,25,0,C,0)|0;c[(P&p)>>2]=C+1;if(!(a[(x+(S*72|0)&n)+45>>0]&2)){R=Oq(f)|0;D=c[(ea&p)>>2]|0;c[(ea&p)>>2]=D+1;D=wh(R,44,D,0,0)|0}else D=0;R=c[(x+(S*72|0)&p)+48>>2]|0;a[(ga&n)>>0]=12;c[(Y&p)>>2]=R;a[(Z&n)>>0]=0;c[(_&p)>>2]=0;c[($&p)>>2]=0;a[(x+(S*72|0)&n)+46>>0]=c[(oa&p)>>2];ir(f,N,ga)|0;R=N+24|0;R=fs(c[(R&p)>>2]|0,c[(R&p)+4>>2]|0)|0;b[((c[(x+(S*72|0)&p)+24>>2]|0)&o)+28>>1]=R;if(D){A=c[(W&p)>>2]|0;if(A>>>0>D>>>0)c[((c[(aa&p)>>2]|0)+(D*20|0)&p)+8>>2]=A;c[((c[(ba&p)>>2]|0)&p)+88>>2]=A+-1}z=wh(wa,18,c[(E&p)>>2]|0,0,0)|0;if((c[(W&p)>>2]|0)>>>0>C>>>0)c[((c[(aa&p)>>2]|0)+(C*20|0)&p)+4>>2]=z;a[(ca&n)>>0]=0;c[(da&p)>>2]=0;z=S}while(0);if(a[(pa&n)>>0]|0){za=444;break b}c[(ra&p)>>2]=0;Es(g,ra);c[(r&p)>>2]=(c[(r&p)>>2]|0)-(c[(ra&p)>>2]|0);x=c[(na&p)>>2]|0;if((d[(h&n)>>0]|0)<9)break;c[(va&p)>>2]=c[(la&p)>>2]}while(0);w=c[(qa&p)>>2]|0;if(!w)S=z+1|0;else{H=m;Q=w;z=y;U=x;break}}}else{H=g+36|0;Q=w;U=x}while(0);T=c[(g&p)>>2]|0;B=c[(H&p)>>2]|0;l=g+40|0;w=c[(l&p)>>2]|0;I=g+44|0;ga=c[(I&p)>>2]|0;m=b[(ta&o)>>1]|0;a[(ua&n)>>0]=m&1;if(Q){O=c[(f&p)>>2]|0;c[(sa&p)>>2]=c[(h&p)>>2];c[(sa&p)+4>>2]=c[(h&p)+4>>2];c[(sa&p)+8>>2]=c[(h&p)+8>>2];c[(sa&p)+12>>2]=c[(h&p)+12>>2];c[(sa&p)+16>>2]=c[(h&p)+16>>2];h:do if(!(c[(Q&p)+48>>2]|0)){x=Q+60|0;if(c[(x&p)>>2]|0){k=d[(g&n)+4>>0]|0;if((k|0)==118)k=35336;else if((k|0)==117)k=35352;else if((k|0)==116)k=35320;else k=35360;c[(ra&p)>>2]=k;th(f,35072,ra);m=0;k=1;za=227;break}R=Oq(f)|0;t=a[(sa&n)>>0]|0;if(t<<24>>24==12){wh(R,57,c[(sa&p)+4>>2]|0,c[(c[(g&p)>>2]&p)>>2]|0,0)|0;t=c[(R&p)+4>>2]|0;if(t)a[(t+(((c[(R&p)+32>>2]|0)+-1|0)*20|0)&n)+3>>0]=8;a[(sa&n)>>0]=14;t=14}s=e[(ta&o)>>1]|0;if(s&256){m=0;k=Is(f,g,sa)|0;za=227;break}if((c[(c[(g&p)>>2]&p)>>2]|0)!=(c[(c[(Q&p)>>2]&p)>>2]|0)){Js(f,g);m=0;k=1;za=227;break}do if(!(s&2048)){if(c[(la&p)>>2]|0){k=Ls(f,g,h)|0;break h}P=g+4|0;s=d[(P&n)>>0]|0;if((s|0)==116){v=g+8|0;t=Q+8|0;c[(t&p)>>2]=c[(v&p)>>2];u=g+12|0;s=Q+12|0;c[(s&p)>>2]=c[(u&p)>>2];da=g+60|0;c[(x&p)>>2]=c[(da&p)>>2];ea=g+64|0;c[(Q&p)+64>>2]=c[(ea&p)>>2];q=c[(oa&p)>>2]|0;k=ir(f,Q,sa)|0;c[(da&p)>>2]=0;c[(ea&p)>>2]=0;if(k){m=0;za=227;break h}c[(qa&p)>>2]=0;t=c[(t&p)>>2]|0;c[(v&p)>>2]=t;c[(u&p)>>2]=c[(s&p)>>2];if(!t)w=0;else w=wh(R,46,t,0,0)|0;l=c[(oa&p)>>2]|0;k=ir(f,g,sa)|0;m=c[(qa&p)>>2]|0;c[(qa&p)>>2]=Q;ea=Q+24|0;r=g+24|0;t=r;ea=jw(c[(t&p)>>2]|0,c[(t&p)+4>>2]|0,c[(ea&p)>>2]|0,c[(ea&p)+4>>2]|0)|0;t=r;c[(t&p)>>2]=ea;c[(t&p)+4>>2]=G;t=c[(x&p)>>2]|0;do if(t){ea=(Ms(t,ka)|0)!=0;t=c[(ka&p)>>2]|0;if(!(ea&(t|0)>0))break;ea=r;da=c[(ea&p)+4>>2]|0;s=((t|0)<0)<<31>>31;if(!(da>>>0>s>>>0|((da|0)==(s|0)?(c[(ea&p)>>2]|0)>>>0>t>>>0:0)))break;ea=r;c[(ea&p)>>2]=t;c[(ea&p)+4>>2]=s}while(0);if(!w){w=P;v=q;t=l;break}r=c[(R&p)+32>>2]|0;if(r>>>0>w>>>0)c[((c[(R&p)+4>>2]|0)+(w*20|0)&p)+8>>2]=r;c[((c[(R&p)+24>>2]|0)&p)+88>>2]=r+-1;w=P;v=q;t=l;break}else if((s|0)==115|(s|0)==117){if(t<<24>>24==1)s=c[(sa&p)+4>>2]|0;else{r=f+68|0;s=c[(r&p)>>2]|0;c[(r&p)>>2]=s+1;c[(g&p)+16>>2]=wh(R,57,s,0,0)|0;r=g;while(1){t=c[(r&p)+56>>2]|0;if(!t)break;else r=t}ea=r+6|0;b[(ea&o)>>1]=e[(ea&o)>>1]|8}a[(ia&n)>>0]=1;c[(ia&p)+4>>2]=s;a[(ia&n)+1>>0]=0;c[(ia&p)+8>>2]=0;c[(ia&p)+12>>2]=0;y=c[(oa&p)>>2]|0;k=ir(f,Q,ia)|0;if(k){m=0;za=227;break h}x=(a[(P&n)>>0]|0)==117?2:1;c[(qa&p)>>2]=0;v=g+60|0;u=c[(v&p)>>2]|0;c[(v&p)>>2]=0;t=g+64|0;r=c[(t&p)>>2]|0;c[(t&p)>>2]=0;a[(ia&n)>>0]=x;x=c[(oa&p)>>2]|0;k=ir(f,g,ia)|0;Nk(O,c[(la&p)>>2]|0);m=c[(qa&p)>>2]|0;c[(qa&p)>>2]=Q;c[(la&p)>>2]=0;if((a[(P&n)>>0]|0)==115){da=Q+24|0;ea=g+24|0;ca=ea;da=jw(c[(ca&p)>>2]|0,c[(ca&p)+4>>2]|0,c[(da&p)>>2]|0,c[(da&p)+4>>2]|0)|0;c[(ea&p)>>2]=da;c[(ea&p)+4>>2]=G}Gk(O,c[(v&p)>>2]|0);c[(v&p)>>2]=u;c[(t&p)>>2]=r;c[(g&p)+8>>2]=0;c[(g&p)+12>>2]=0;r=a[(sa&n)>>0]|0;if(r<<24>>24==9){r=g;while(1){q=c[(r&p)+52>>2]|0;if(!q)break;else r=q}Ns(f,0,c[(r&p)>>2]|0)}else if(r<<24>>24==1){w=P;v=y;t=x;break}l=xs(R)|0;ea=xs(R)|0;Os(f,g,l);wh(R,108,s,l,0)|0;w=R+32|0;v=c[(w&p)>>2]|0;Ps(f,g,c[(g&p)>>2]|0,s,0,0,sa,ea,l);u=R+24|0;t=c[(u&p)>>2]|0;r=~ea;do if((ea|0)<0){q=c[(t&p)+112>>2]|0;if(!q)break;c[(q+(r<<2)&p)>>2]=c[(w&p)>>2]}while(0);c[(t&p)+88>>2]=(c[(w&p)>>2]|0)+-1;wh(R,9,s,v,0)|0;r=c[(u&p)>>2]|0;q=~l;do if((l|0)<0){t=c[(r&p)+112>>2]|0;if(!t)break;c[(t+(q<<2)&p)>>2]=c[(w&p)>>2]}while(0);c[(r&p)+88>>2]=(c[(w&p)>>2]|0)+-1;wh(R,61,s,0,0)|0;w=P;v=y;t=x;break}else{r=f+68|0;A=c[(r&p)>>2]|0;c[(r&p)>>2]=A+2;c[(g&p)+16>>2]=wh(R,57,A,0,0)|0;r=g;while(1){q=c[(r&p)+56>>2]|0;if(!q)break;else r=q}y=A+1|0;v=r+6|0;b[(v&o)>>1]=e[(v&o)>>1]|8;a[(ja&n)>>0]=1;v=ja+4|0;c[(v&p)>>2]=A;a[(ja&n)+1>>0]=0;c[(ja&p)+8>>2]=0;c[(ja&p)+12>>2]=0;x=c[(oa&p)>>2]|0;k=ir(f,Q,ja)|0;if(k){m=0;za=227;break h}c[(g&p)+20>>2]=wh(R,57,y,0,0)|0;c[(qa&p)>>2]=0;w=g+60|0;l=c[(w&p)>>2]|0;c[(w&p)>>2]=0;q=g+64|0;r=c[(q&p)>>2]|0;c[(q&p)>>2]=0;c[(v&p)>>2]=y;z=c[(oa&p)>>2]|0;k=ir(f,g,ja)|0;m=c[(qa&p)>>2]|0;c[(qa&p)>>2]=Q;t=g+24|0;ea=t;da=c[(ea&p)+4>>2]|0;u=Q+24|0;v=c[(u&p)>>2]|0;u=c[(u&p)+4>>2]|0;if(da>>>0>u>>>0|((da|0)==(u|0)?(c[(ea&p)>>2]|0)>>>0>v>>>0:0)){ea=t;c[(ea&p)>>2]=v;c[(ea&p)+4>>2]=u}Gk(O,c[(w&p)>>2]|0);c[(w&p)>>2]=l;c[(q&p)>>2]=r;if((a[(sa&n)>>0]|0)==9){t=g;while(1){s=c[(t&p)+52>>2]|0;if(!s)break;else t=s}Ns(f,0,c[(t&p)>>2]|0)}q=xs(R)|0;w=xs(R)|0;Os(f,g,q);wh(R,108,A,q,0)|0;t=f+19|0;s=a[(t&n)>>0]|0;if(!(s<<24>>24)){ea=f+72|0;t=(c[(ea&p)>>2]|0)+1|0;c[(ea&p)>>2]=t}else{ea=s+-1<<24>>24;a[(t&n)>>0]=ea;t=c[(f+((ea&255)<<2)&p)+24>>2]|0}l=wh(R,101,A,t,0)|0;xh(R,wh(R,68,y,w,t)|0,0,-14);_r(f,t);Ps(f,g,c[(g&p)>>2]|0,A,0,0,sa,w,q);t=R+24|0;s=c[(t&p)>>2]|0;u=~w;do if((w|0)<0){v=c[(s&p)+112>>2]|0;if(!v)break;c[(v+(u<<2)&p)>>2]=c[(R&p)+32>>2]}while(0);v=R+32|0;c[(s&p)+88>>2]=(c[(v&p)>>2]|0)+-1;wh(R,9,A,l,0)|0;s=c[(t&p)>>2]|0;r=~q;do if((q|0)<0){t=c[(s&p)+112>>2]|0;if(!t)break;c[(t+(r<<2)&p)>>2]=c[(v&p)>>2]}while(0);c[(s&p)+88>>2]=(c[(v&p)>>2]|0)+-1;wh(R,61,y,0,0)|0;wh(R,61,A,0,0)|0;w=P;v=x;t=z;break}}else{Ks(f,g,sa);w=g+4|0;v=0;t=0;m=0;k=0}while(0);ea=a[(w&n)>>0]|0;Qs(f,ea&255,v,t,ea<<24>>24!=116&1);if(!(b[(ta&o)>>1]&8)){za=227;break}u=c[(c[(g&p)>>2]&p)>>2]|0;v=Rs(O,u,1)|0;if(!v){k=7;za=227;break}if((u|0)>0){l=O+8|0;q=v+20|0;r=0;while(1){ea=Ss(f,g,r)|0;c[(q&p)>>2]=ea;if(!ea)c[(q&p)>>2]=c[(l&p)>>2];r=r+1|0;if((r|0)==(u|0))break;else q=q+4|0}}s=R+32|0;t=R+4|0;do{l=0;do{r=g+(l<<2)+16|0;q=c[(r&p)>>2]|0;if((q|0)<0)break;if((c[(s&p)>>2]|0)>>>0>q>>>0)c[((c[(t&p)>>2]|0)+(q*20|0)&p)+8>>2]=u;c[(v&p)>>2]=(c[(v&p)>>2]|0)+1;xh(R,q,v,-6);c[(r&p)>>2]=-1;l=l+1|0}while((l|0)<2);g=c[(g&p)+52>>2]|0}while((g|0)!=0);ea=(c[(v&p)>>2]|0)+-1|0;c[(v&p)>>2]=ea;if(ea){za=227;break}Wc(v);za=227}else{k=d[(g&n)+4>>0]|0;if((k|0)==118)k=35336;else if((k|0)==117)k=35352;else if((k|0)==116)k=35320;else k=35360;c[(ra&p)>>2]=k;th(f,35024,ra);m=0;k=1;za=227}while(0);if((za|0)==227){c[(h&p)+8>>2]=c[(sa&p)+8>>2];c[(h&p)+12>>2]=c[(sa&p)+12>>2];Mk(O,m,1)}c[(Aa&p)>>2]=Ba;break a}if((m&5)==1){k=c[(va&p)>>2]|0;if(!(Ts(k,T,-1)|0)){b[(ta&o)>>1]=m&65534;w=Pr(xa,T,0)|0;c[(l&p)>>2]=w;za=232}}else za=232;if((za|0)==232)k=c[(va&p)>>2]|0;if(!k)k=-1;else{ea=Us(f,k,0,c[(T&p)>>2]|0)|0;da=f+68|0;k=c[(da&p)>>2]|0;c[(da&p)>>2]=k+1;c[(va&p)+8>>2]=k;k=wh(wa,57,k,(c[(c[(va&p)>>2]&p)>>2]|0)+1+(c[(T&p)>>2]|0)|0,0)|0;xh(wa,k,ea,-6)}R=va+20|0;c[(R&p)>>2]=k;if((a[(h&n)>>0]|0)==12)wh(wa,57,c[(h&p)+4>>2]|0,c[(T&p)>>2]|0,0)|0;qa=xs(wa)|0;y=g+24|0;ea=y;c[(ea&p)>>2]=-1;c[(ea&p)+4>>2]=2147483647;Os(f,g,qa);if((c[(g&p)+8>>2]|0)==0?(ha=c[(R&p)>>2]|0,(ha|0)>-1):0){if(!(a[((c[(wa&p)>>2]|0)&n)+65>>0]|0))k=(c[(wa&p)+4>>2]|0)+(ha*20|0)|0;else k=29120;a[(k&n)>>0]=58;ea=va+24|0;a[(ea&n)>>0]=d[(ea&n)>>0]|1}if(!(b[(ta&o)>>1]&1))a[(ua&n)+1>>0]=0;else{ea=f+68|0;k=c[(ea&p)>>2]|0;c[(ea&p)>>2]=k+1;c[(ua&p)+4>>2]=k;ea=Us(f,c[(g&p)>>2]|0,0,0)|0;k=wh(wa,57,k,0,0)|0;xh(wa,k,ea,-6);c[(ua&p)+8>>2]=k;k=c[(wa&p)+4>>2]|0;if(k)a[(k+(((c[(wa&p)+32>>2]|0)+-1|0)*20|0)&n)+3>>0]=8;a[(ua&n)+1>>0]=3}if((z|0)==0&(w|0)==0){v=Vs(f,U,B,c[(va&p)>>2]|0,c[(g&p)>>2]|0,(a[(ua&n)>>0]|0)!=0?1024:0,0)|0;if(!v){za=444;break}t=Ws(b[(v&o)+32>>1]|0)|0;s=G;ea=y;da=c[(ea&p)+4>>2]|0;if(s>>>0>>0|((s|0)==(da|0)?t>>>0<(c[(ea&p)>>2]|0)>>>0:0)){ea=y;c[(ea&p)>>2]=t;c[(ea&p)+4>>2]=s}do if(a[(ua&n)>>0]|0){t=a[(v&n)+40>>0]|0;if(!(t<<24>>24))break;a[(ua&n)+1>>0]=t}while(0);t=c[(va&p)>>2]|0;do if(!t)za=257;else{ea=a[(v&n)+36>>0]|0;c[(va&p)+4>>2]=ea;if((ea|0)!=(c[(t&p)>>2]|0))break;c[(va&p)>>2]=0;za=257}while(0);do if((za|0)==257){r=c[(R&p)>>2]|0;if((r|0)<=-1)break;zh(wa,r)}while(0);Ps(f,g,T,-1,va,ua,h,c[(v&p)+48>>2]|0,c[(v&p)+52>>2]|0);Xs(v)}else{z=(w|0)!=0;do if(z){l=c[(g&p)>>2]|0;k=c[(l&p)>>2]|0;if((k|0)>0){l=c[(l&p)+4>>2]|0;while(1){b[(l&o)+18>>1]=0;k=k+-1|0;if((k|0)<=0)break;else l=l+20|0}}k=c[(w&p)>>2]|0;if((k|0)>0){l=c[(w&p)+4>>2]|0;while(1){b[(l&o)+18>>1]=0;k=k+-1|0;if((k|0)<=0)break;else l=l+20|0}}ea=y;da=c[(ea&p)+4>>2]|0;if(!(da>>>0>0|(da|0)==0&(c[(ea&p)>>2]|0)>>>0>100))break;ea=y;c[(ea&p)>>2]=100;c[(ea&p)+4>>2]=0}else{ea=y;c[(ea&p)>>2]=1;c[(ea&p)+4>>2]=0}while(0);P=(Ts(w,c[(va&p)>>2]|0,-1)|0)==0;S=xs(wa)|0;c[(ma&p)>>2]=0;c[(ma&p)+4>>2]=0;c[(ma&p)+8>>2]=0;c[(ma&p)+12>>2]=0;c[(ma&p)+16>>2]=0;c[(ma&p)+20>>2]=0;c[(ma&p)+24>>2]=0;c[(ma&p)+28>>2]=0;c[(ma&p)>>2]=f;c[(ma&p)+4>>2]=U;c[(ma&p)+12>>2]=ya;K=f+72|0;c[(ya&p)+16>>2]=(c[(K&p)>>2]|0)+1;if(z)k=c[(w&p)>>2]|0;else k=0;y=ya+12|0;c[(y&p)>>2]=k;c[(ya&p)+24>>2]=w;Ys(ma,T);Ys(ma,c[(va&p)>>2]|0);if(ga){c[(ra&p)>>2]=0;c[(ra&p)+4>>2]=0;c[(ra&p)+8>>2]=0;c[(ra&p)+12>>2]=0;c[(ra&p)+16>>2]=0;c[(ra&p)+20>>2]=0;c[(ra&p)>>2]=80;c[(ra&p)+4>>2]=81;c[(ra&p)+24>>2]=ma;rs(ra,ga)|0}A=ya+32|0;c[(ya&p)+36>>2]=c[(A&p)>>2];r=ya+44|0;k=c[(r&p)>>2]|0;if((k|0)>0){x=ma+28|0;l=ya+40|0;m=b[(x&o)>>1]|0;q=0;do{b[(x&o)>>1]=m&65535|8;Ys(ma,c[((c[((c[(l&p)>>2]|0)+(q<<4)&p)>>2]|0)&p)+20>>2]|0);m=e[(x&o)>>1]&65527;b[(x&o)>>1]=m;q=q+1|0;k=c[(r&p)>>2]|0}while((q|0)<(k|0))}c[(ya&p)+20>>2]=c[(K&p)>>2];if(a[(pa&n)>>0]|0){za=444;break}if(z){I=f+68|0;H=c[(I&p)>>2]|0;c[(I&p)>>2]=H+1;v=ya+4|0;c[(v&p)>>2]=H;H=Us(f,w,0,c[(A&p)>>2]|0)|0;u=wh(wa,58,c[(v&p)>>2]|0,c[(y&p)>>2]|0,0)|0;xh(wa,u,H,-6);N=c[(K&p)>>2]|0;M=N+1|0;J=N+2|0;N=N+3|0;c[(K&p)>>2]=N;L=xs(wa)|0;Q=(c[(K&p)>>2]|0)+1|0;c[(K&p)>>2]=Q;O=xs(wa)|0;t=c[(K&p)>>2]|0;r=t+1|0;ea=c[(w&p)>>2]|0;da=ea+t|0;s=da+1|0;c[(K&p)>>2]=da+ea;wh(wa,25,0,J,0)|0;wh(wa,25,0,M,0)|0;wh(wa,28,0,r,(c[(w&p)>>2]|0)+t|0)|0;wh(wa,17,Q,O,0)|0;t=Vs(f,U,B,w,0,P?2304:256,0)|0;if(!t){za=444;break}if((a[(t&n)+36>>0]|0)==(c[(w&p)>>2]|0)){x=0;k=0;y=0}else{if(!(a[(ua&n)>>0]|0))k=34824;else k=(b[(ta&o)>>1]&1)==0?34808:34824;$s(f,k);D=c[(w&p)>>2]|0;k=c[(A&p)>>2]|0;if((k|0)>0){l=c[(ya&p)+28>>2]|0;m=0;y=D;x=D;do{if((c[(l+(m*24|0)&p)+12>>2]|0)>=(y|0)){y=y+1|0;x=x+1|0}m=m+1|0}while((m|0)<(k|0));F=x}else F=D;E=f+60|0;x=c[(E&p)>>2]|0;B=f+56|0;k=c[(B&p)>>2]|0;if((k|0)<(F|0)){C=c[(K&p)>>2]|0;c[(K&p)>>2]=C+F;C=C+1|0}else{c[(E&p)>>2]=x+F;c[(B&p)>>2]=k-F;C=x}at(f);bt(f,w,C,0);y=c[(A&p)>>2]|0;if((y|0)>0){m=ya+28|0;z=0;x=D;do{k=c[(m&p)>>2]|0;if((c[(k+(z*24|0)&p)+12>>2]|0)>=(x|0)){l=x+C|0;y=ct(f,c[(k+(z*24|0)&p)>>2]|0,c[(k+(z*24|0)&p)+8>>2]|0,c[(k+(z*24|0)&p)+4>>2]|0,l,0)|0;if((l|0)!=(y|0))wh(wa,34,y,l,0)|0;y=c[(A&p)>>2]|0;x=x+1|0}z=z+1|0}while((z|0)<(y|0))}y=f+19|0;x=a[(y&n)>>0]|0;if(!(x<<24>>24)){x=(c[(K&p)>>2]|0)+1|0;c[(K&p)>>2]=x}else{x=x+-1<<24>>24;a[(y&n)>>0]=x;x=c[(f+((x&255)<<2)&p)+24>>2]|0}wh(wa,49,C,F,x)|0;wh(wa,109,c[(v&p)>>2]|0,x,0)|0;_r(f,x);dt(f,C,F);if((c[(B&p)>>2]|0)<(F|0)){c[(B&p)>>2]=F;c[(E&p)>>2]=C}Xs(t);l=c[(I&p)>>2]|0;c[(I&p)>>2]=l+1;c[(ya&p)+8>>2]=l;k=a[(y&n)>>0]|0;if(!(k<<24>>24)){k=(c[(K&p)>>2]|0)+1|0;c[(K&p)>>2]=k}else{k=k+-1<<24>>24;a[(y&n)>>0]=k;k=c[(f+((k&255)<<2)&p)+24>>2]|0}wh(wa,60,l,k,F)|0;wh(wa,106,c[(v&p)>>2]|0,S,0)|0;a[(ya&n)+1>>0]=1;at(f);x=1;y=l}do if(P){if(b[(xa&o)+60>>1]&4)break;if((x|0)==0?(a[(t&n)+37>>0]|0)==0:0)break;c[(va&p)>>2]=0;zh(wa,c[(R&p)>>2]|0)}while(0);A=wa+32|0;q=c[(A&p)>>2]|0;at(f);x=(x|0)!=0;if(x)wh(wa,100,c[(v&p)>>2]|0,k,y)|0;k=c[(w&p)>>2]|0;if((k|0)>0){l=w+4|0;m=0;do{if(x)wh(wa,47,y,m,m+s|0)|0;else{a[(ya&n)>>0]=1;Rq(f,c[((c[(l&p)>>2]|0)+(m*20|0)&p)>>2]|0,m+s|0)}m=m+1|0;k=c[(w&p)>>2]|0}while((m|0)<(k|0))}if(H)c[(H&p)>>2]=(c[(H&p)>>2]|0)+1;xh(wa,wh(wa,42,r,s,k)|0,H,-6);k=c[(A&p)>>2]|0;ea=k+1|0;wh(wa,43,ea,0,ea)|0;w=c[(w&p)>>2]|0;wh(c[(f&p)+8>>2]|0,32,s,r,w)|0;dt(f,s,w);wh(wa,17,N,L,0)|0;wh(wa,137,J,S,0)|0;wh(wa,17,Q,O,0)|0;w=c[(A&p)>>2]|0;if(w>>>0>k>>>0)c[((c[(wa&p)+4>>2]|0)+(k*20|0)&p)+8>>2]=w;r=wa+24|0;c[((c[(r&p)>>2]|0)&p)+88>>2]=w+-1;et(f,ya);wh(wa,25,1,M,0)|0;if(x)wh(wa,5,c[(v&p)>>2]|0,q,0)|0;else{Xs(t);zh(wa,u)}wh(wa,17,N,L,0)|0;wh(wa,16,0,S,0)|0;m=c[(A&p)>>2]|0;wh(wa,25,1,J,0)|0;wh(wa,18,N,0,0)|0;k=c[(r&p)>>2]|0;l=~L;do if((L|0)<0){w=c[(k&p)+112>>2]|0;if(!w)break;c[(w+(l<<2)&p)>>2]=c[(A&p)>>2]}while(0);v=c[(A&p)>>2]|0;c[(k&p)+88>>2]=v+-1;wh(wa,137,M,v+2|0,0)|0;wh(wa,18,N,0,0)|0;ft(f,ya);v=v+1|0;gt(f,ga,v,16);Ps(f,g,c[(g&p)>>2]|0,-1,va,ua,h,v,m);wh(wa,18,N,0,0)|0;v=c[(r&p)>>2]|0;u=~O;do if((O|0)<0){t=c[(v&p)+112>>2]|0;if(!t)break;c[(t+(u<<2)&p)>>2]=c[(A&p)>>2]}while(0);c[(v&p)+88>>2]=(c[(A&p)>>2]|0)+-1;ht(f,ya);wh(wa,18,Q,0,0)|0}else{do if(!(c[(H&p)>>2]|0)){u=c[(g&p)>>2]|0;if((c[(u&p)>>2]|0)!=1){za=372;break}v=c[(na&p)>>2]|0;if((c[(v&p)>>2]|0)!=1){za=372;break}if(c[(v&p)+28>>2]|0){za=372;break}A=c[(v&p)+24>>2]|0;v=c[(c[(u&p)+4>>2]&p)>>2]|0;z=A+44|0;if(a[(z&n)>>0]&16){za=372;break}if((a[(v&n)>>0]|0)!=-101|(k|0)==0){za=372;break}y=ya+40|0;if(!(b[((c[((c[(y&p)>>2]|0)&p)+4>>2]|0)&o)+2>>1]&256)){za=372;break}if((A|0)==0?1:(c[(v&p)+4>>2]&16|0)!=0){za=372;break}v=c[(f&p)>>2]|0;k=c[(A&p)+68>>2]|0;i:do if(!k)u=-1e6;else{l=c[(v&p)+20>>2]|0;if((l|0)<=0){u=0;break}v=c[(v&p)+16>>2]|0;w=0;while(1){u=w+1|0;if((c[(v+(w<<4)&p)+12>>2]|0)==(k|0)){u=w;break i}if((u|0)<(l|0))w=u;else break}}while(0);w=f+68|0;q=c[(w&p)>>2]|0;c[(w&p)>>2]=q+1;w=A+32|0;k=c[(w&p)>>2]|0;Ar(f,u);gs(f,u,c[(w&p)>>2]|0,0,c[(A&p)>>2]|0);w=c[(A&p)+8>>2]|0;j:do if(!(a[(z&n)>>0]&32)){v=0;za=351}else{if(!w){l=1;m=0;w=0;break}else v=w;while(1){if((a[(v&n)+51>>0]&3)==2){za=351;break j}v=c[(v&p)+20>>2]|0;if(!v){v=0;za=351;break}}}while(0);do if((za|0)==351){if(w){m=A+42|0;l=w;do{do if(!(a[(l&n)+51>>0]&4)){w=b[(l&o)+44>>1]|0;if(w<<16>>16>=(b[(m&o)>>1]|0))break;if(c[(l&p)+36>>2]|0)break;if((v|0)!=0?w<<16>>16>=(b[(v&o)+44>>1]|0):0)break;v=l}while(0);l=c[(l&p)+20>>2]|0}while((l|0)!=0)}if(!v){l=1;m=0;w=0;break}k=c[(v&p)+40>>2]|0;l=0;m=v;w=hs(f,v)|0}while(0);xh(wa,wh(wa,54,q,k,u)|0,1,-14);if(w)xh(wa,-1,w,-6);wh(wa,50,q,c[((c[(y&p)>>2]|0)&p)+8>>2]|0,0)|0;wh(wa,61,q,0,0)|0;if((a[(f&n)+450>>0]|0)!=2){t=0;break}do if(l){v=c[(A&p)>>2]|0;u=10360;s=10360;t=c[(f&p)>>2]|0}else{if(a[(z&n)>>0]&32){ea=(a[(m&n)+51>>0]&3)!=2;t=c[(f&p)>>2]|0;v=c[(A&p)>>2]|0;u=ea?34920:10360;if(!ea){s=10360;break}}else{u=34920;v=c[(A&p)>>2]|0;t=c[(f&p)>>2]|0}s=c[(m&p)>>2]|0}while(0);c[(ra&p)>>2]=v;c[(ra&p)+4>>2]=u;c[(ra&p)+8>>2]=s;t=uh(t,34896,ra)|0;ea=c[(f&p)+8>>2]|0;xh(ea,wh(ea,157,c[(Aa&p)>>2]|0,0,0)|0,t,-1);t=0}else za=372;while(0);if((za|0)==372){do if((c[(I&p)>>2]|0)==0&(k|0)==1){t=c[(c[(ya&p)+40>>2]&p)>>2]|0;v=c[(t&p)+20>>2]|0;if(!v){t=0;s=0;break}if((c[(v&p)>>2]|0)!=1){t=0;s=0;break}if((a[(c[(c[(v&p)+4>>2]&p)>>2]&n)>>0]|0)!=-100){t=0;s=0;break}t=c[(t&p)+8>>2]|0;if(dd(t,18760)|0)if(!(dd(t,18768)|0))s=2;else{t=0;s=0;break}else s=1;t=Pr(xa,v,0)|0;if(!t){t=0;break}if(a[(pa&n)>>0]|0)break;ea=c[(t&p)+4>>2]|0;a[(ea&n)+12>>0]=s<<24>>24!=1&1;a[(c[(ea&p)>>2]&n)>>0]=-102}else{t=0;s=0}while(0);ht(f,ya);s=Vs(f,U,B,t,0,s&255,0)|0;if(!s){Nk(xa,t);za=444;break}et(f,ya);if((a[(s&n)+36>>0]|0)>0)wh(wa,16,0,c[(s&p)+52>>2]|0,0)|0;Xs(s);ft(f,ya)}c[(va&p)>>2]=0;gt(f,ga,S,16);Ps(f,g,c[(g&p)>>2]|0,-1,0,0,h,S,S);Nk(xa,t);r=wa+24|0}t=c[(r&p)>>2]|0;s=~S;do if((S|0)<0){r=c[(t&p)+112>>2]|0;if(!r)break;c[(r+(s<<2)&p)>>2]=c[(wa&p)+32>>2]}while(0);c[(t&p)+88>>2]=(c[(wa&p)+32>>2]|0)+-1}if((a[(ua&n)+1>>0]|0)==3)$s(f,34808);if(c[(va&p)>>2]|0){x=va+4|0;$s(f,(c[(x&p)>>2]|0)>0?34840:34864);A=c[(T&p)>>2]|0;v=f+8|0;H=c[(v&p)>>2]|0;I=xs(H)|0;F=xs(H)|0;q=c[(va&p)>>2]|0;m=a[(h&n)>>0]|0;B=m&255;C=h+4|0;D=c[(C&p)>>2]|0;y=va+16|0;w=c[(y&p)>>2]|0;if(w){wh(H,17,c[(va&p)+12>>2]|0,w,0)|0;wh(H,16,0,I,0)|0;ea=c[(y&p)>>2]|0;w=c[(H&p)+24>>2]|0;k=~ea;do if((ea|0)<0){l=c[(w&p)+112>>2]|0;if(!l)break;c[(l+(k<<2)&p)>>2]=c[(H&p)+32>>2]}while(0);c[(w&p)+88>>2]=(c[(H&p)+32>>2]|0)+-1}E=c[(va&p)+8>>2]|0;t=m<<24>>24==9;k:do if((m&-5)<<24>>24==9){s=A;u=c[(h&p)+8>>2]|0;k=0}else{w=f+19|0;k=a[(w&n)>>0]|0;do if(k<<24>>24){ea=k+-1<<24>>24;a[(w&n)>>0]=ea;l=c[(f+((ea&255)<<2)&p)+24>>2]|0;if(!(ea<<24>>24)){k=l;w=c[(f&p)+72>>2]|0;break}else{u=k+-2<<24>>24;a[(w&n)>>0]=u;s=1;u=c[(f+((u&255)<<2)&p)+24>>2]|0;k=l;break k}}else{k=f+72|0;w=(c[(k&p)>>2]|0)+1|0;c[(k&p)>>2]=w;k=w}while(0);u=w+1|0;c[(f&p)+72>>2]=u;s=1}while(0);r=(c[(q&p)>>2]|0)-(c[(x&p)>>2]|0)|0;z=va+24|0;if(!(a[(z&n)>>0]&1)){w=wh(H,107,E,I,0)|0;it(H,c[(g&p)+12>>2]|0,F);l=1;m=E}else{ea=f+72|0;m=(c[(ea&p)>>2]|0)+1|0;c[(ea&p)>>2]=m;ea=f+68|0;q=c[(ea&p)>>2]|0;c[(ea&p)>>2]=q+1;if(!(c[(y&p)>>2]|0))l=0;else{ea=Oq(f)|0;da=f+80|0;l=c[(da&p)>>2]|0;c[(da&p)>>2]=l+1;l=wh(ea,44,l,0,0)|0}wh(H,60,q,m,s+1+r|0)|0;if(l){w=c[(H&p)+32>>2]|0;if(w>>>0>l>>>0)c[((c[(H&p)+4>>2]|0)+(l*20|0)&p)+8>>2]=w;c[((c[(H&p)+24>>2]|0)&p)+88>>2]=w+-1}w=wh(H,106,E,I,0)|0;it(H,c[(g&p)+12>>2]|0,F);wh(H,100,E,m,q)|0;l=0;m=q}x=w+1|0;if((s|0)>0){w=l+r|0;l=0;do{wh(H,47,m,w+l|0,l+u|0)|0;l=l+1|0}while((l|0)!=(s|0))}do if((B|0)==12|(B|0)==14){wh(H,74,D,k,0)|0;wh(H,75,D,u,k)|0;t=c[(H&p)+4>>2]|0;if(!t)break;a[(t+(((c[(H&p)+32>>2]|0)+-1|0)*20|0)&n)+3>>0]=8}else if((B|0)==11){xh(H,wh(H,49,u,1,k)|0,h+1|0,1);dt(f,u,1);wh(H,110,D,k,0)|0}else if((B|0)!=10)if(t){ea=h+8|0;wh(H,35,c[(ea&p)>>2]|0,A,0)|0;dt(f,c[(ea&p)>>2]|0,A);break}else{wh(H,22,c[(C&p)>>2]|0,0,0)|0;break}else{wh(c[(v&p)>>2]|0,32,u,D,1)|0;dt(f,u,1)}while(0);if(k){_r(f,u);_r(f,k)}s=H+24|0;u=c[(s&p)>>2]|0;v=~F;do if((F|0)<0){t=c[(u&p)+112>>2]|0;if(!t)break;c[(t+(v<<2)&p)>>2]=c[(H&p)+32>>2]}while(0);v=H+32|0;c[(u&p)+88>>2]=(c[(v&p)>>2]|0)+-1;if(!(a[(z&n)>>0]&1))wh(H,9,E,x,0)|0;else wh(H,5,E,x,0)|0;r=c[(va&p)+12>>2]|0;if(r)wh(H,18,r,0,0)|0;r=c[(s&p)>>2]|0;q=~I;do if((I|0)<0){m=c[(r&p)+112>>2]|0;if(!m)break;c[(m+(q<<2)&p)>>2]=c[(v&p)>>2]}while(0);c[(r&p)+88>>2]=(c[(v&p)>>2]|0)+-1}l=c[(wa&p)+24>>2]|0;m=~qa;do if((qa|0)<0){k=c[(l&p)+112>>2]|0;if(!k)break;c[(k+(m<<2)&p)>>2]=c[(wa&p)+32>>2]}while(0);c[(l&p)+88>>2]=(c[(wa&p)+32>>2]|0)+-1;c[(Aa&p)>>2]=Ba;if((a[(h&n)>>0]|0)!=9){k=0;break}Ns(f,U,T);k=0}else za=444;while(0);if((za|0)==444){c[(Aa&p)>>2]=Ba;k=1}mg(xa,c[(ya&p)+28>>2]|0);mg(xa,c[(ya&p)+40>>2]|0)}else k=1;while(0);i=Ca;return k|0}function jr(a,b,d,e,f,g,h,k){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;var l=0,m=0,n=0,o=0,q=0,r=0;r=i;i=i+16|0;if((i|0)>=(j|0))fa();m=r;o=c[(a&p)>>2]|0;if((b|0)==0?(l=(h|0)!=0,l|(k|0)!=0):0){c[(m&p)>>2]=l?34792:34800;th(a,34752,m);q=9}else{b=pr(o,b,d,e)|0;if((b|0)!=0?(n=c[(b&p)>>2]|0,(n|0)!=0):0){l=n+-1|0;if(c[(f&p)+4>>2]|0)c[(b+(l*72|0)&p)+20>>2]=Wq(o,f)|0;c[(b+(l*72|0)&p)+28>>2]=g;c[(b+(l*72|0)&p)+52>>2]=h;c[(b+(l*72|0)&p)+56>>2]=k}else q=9}if((q|0)==9){Gk(o,h);Hk(o,k);Mk(o,g,1);b=0}i=r;return b|0}function kr(d,e,f,g,h,k,l,m,q,r){d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;m=m|0;q=q|0;r=r|0;var s=0,t=0,u=0,v=0,w=0,x=0,y=0;y=i;i=i+80|0;if((i|0)>=(j|0))fa();t=y+72|0;x=y;w=c[(d&p)>>2]|0;s=mh(w,72,0)|0;if(!s){u=x+0|0;v=u+72|0;do{c[(u&p)>>2]=0;u=u+4|0}while((u|0)<(v|0));s=x}else{u=s+0|0;v=u+72|0;do{a[(u&n)>>0]=0;u=u+1|0}while((u|0)<(v|0))}if(!e){c[(t&p)>>2]=0;c[(t&p)+4>>2]=0;e=lr(d,0,nr(w,116,t,0)|0)|0}c[(s&p)>>2]=e;if(!f){f=mh(w,80,0)|0;if(f){u=f+0|0;v=u+80|0;do{a[(u&n)>>0]=0;u=u+1|0}while((u|0)<(v|0))}}c[(s&p)+32>>2]=f;c[(s&p)+36>>2]=g;c[(s&p)+40>>2]=h;c[(s&p)+44>>2]=k;c[(s&p)+48>>2]=l;b[(s&o)+6>>1]=m;a[(s&n)+4>>0]=119;c[(s&p)+60>>2]=q;c[(s&p)+64>>2]=r;c[(s&p)+16>>2]=-1;c[(s&p)+20>>2]=-1;if(a[(w&n)+65>>0]|0){Mk(w,s,(s|0)!=(x|0)&1);s=0}i=y;return s|0}function lr(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0;g=c[(b&p)>>2]|0;if(!d){d=mh(g,8,0)|0;if(d){b=d;f=b;a[(f&n)>>0]=0;a[(f&n)+1>>0]=0;a[(f&n)+2>>0]=0;a[(f&n)+3>>0]=0;b=b+4|0;a[(b&n)>>0]=0;a[(b&n)+1>>0]=0;a[(b&n)+2>>0]=0;a[(b&n)+3>>0]=0;b=mh(g,20,0)|0;c[(d&p)+4>>2]=b;if(!b)f=8;else f=7}else{d=0;f=8}}else{b=c[(d&p)>>2]|0;if(!(b+-1&b)){f=d+4|0;b=ro(g,c[(f&p)>>2]|0,b*40|0,0)|0;if(!b)f=8;else{c[(f&p)>>2]=b;f=7}}else f=7}if((f|0)==7){b=c[(d&p)>>2]|0;c[(d&p)>>2]=b+1;b=(c[(d&p)+4>>2]|0)+(b*20|0)|0;c[(b&p)>>2]=0;c[(b&p)+4>>2]=0;c[(b&p)+8>>2]=0;c[(b&p)+12>>2]=0;c[(b&p)+16>>2]=0;c[(b&p)>>2]=e}else if((f|0)==8){Gk(g,e);Nk(g,d);d=0}return d|0}function mr(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0;do if(d){j=(c[(d&p)>>2]|0)+-1|0;g=c[(d&p)+4>>2]|0;h=c[(e&p)>>2]|0;d=c[(e&p)+4>>2]|0;if((h|0)!=0?(e=c[(b&p)>>2]|0,i=jw(d|0,0,1,0)|0,i=mh(e,i,G)|0,(i|0)!=0):0){kw(i|0,h|0,d|0)|0;a[(i+d&n)>>0]=0;c[(g+(j*20|0)&p)+4>>2]=i;if(!f)break;lo(i);break}c[(g+(j*20|0)&p)+4>>2]=0}while(0);return}function nr(d,e,f,g){d=d|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,q=0,r=0,s=0,t=0;t=i;i=i+16|0;if((i|0)>=(j|0))fa();m=t;c[(m&p)>>2]=0;k=(f|0)!=0;do if(k){if(((e|0)==132?(h=c[(f&p)>>2]|0,(h|0)!=0):0)?(Dn(h,m)|0)!=0:0){r=0;break}r=(c[(f&p)+4>>2]|0)+1|0}else r=0;while(0);l=r+48|0;q=mh(d,l,0)|0;if(q){fw(q|0,0,l|0)|0;a[(q&n)>>0]=e;b[(q&o)+34>>1]=-1;do if(k){if(!r){g=q+4|0;c[(g&p)>>2]=c[(g&p)>>2]|1024;c[(q&p)+8>>2]=c[(m&p)>>2];break}h=q+48|0;l=q+8|0;c[(l&p)>>2]=h;k=f+4|0;d=c[(k&p)>>2]|0;if(!d)h=48;else{kw(h|0,c[(f&p)>>2]|0,d|0)|0;h=(c[(k&p)>>2]|0)+48|0}a[(q+h&n)>>0]=0;if(((g|0)!=0&(r|0)>2?(g=a[(c[(f&p)>>2]&n)>>0]|0,s=g<<24>>24==34,g<<24>>24==34|g<<24>>24==39|g<<24>>24==91|g<<24>>24==96):0)?(lo(c[(l&p)>>2]|0),s):0){g=q+4|0;c[(g&p)>>2]=c[(g&p)>>2]|64}}while(0);c[(q&p)+24>>2]=1}i=t;return q|0}function or(b,d,e){b=b|0;d=d|0;e=e|0;var f=0;do if((d|0)!=0?(f=c[(d&p)>>2]|0,(f|0)>0):0){f=f+-1|0;if((c[(e&p)+4>>2]|0)==1?(c[(e&p)>>2]|0)==0:0){f=d+(f*72|0)+45|0;a[(f&n)>>0]=a[(f&n)>>0]|1;break}c[(d+(f*72|0)&p)+72>>2]=Wq(c[(b&p)>>2]|0,e)|0}while(0);return}function pr(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0;if(!d){d=mh(b,80,0)|0;if(!d)d=0;else{h=d+0|0;g=h+80|0;do{a[(h&n)>>0]=0;h=h+1|0}while((h|0)<(g|0));c[(d&p)+4>>2]=1;h=4}}else h=4;do if((h|0)==4){d=Fs(b,d,1,c[(d&p)>>2]|0)|0;if(a[(b&n)+65>>0]|0){Do(b,d);d=0;break}h=(c[(d&p)>>2]|0)+-1|0;if(!f)g=0;else g=(c[(f&p)>>2]|0)==0?0:f;f=(g|0)==0;c[(d+(h*72|0)&p)+16>>2]=Wq(b,f?e:g)|0;c[(d+(h*72|0)&p)+12>>2]=Wq(b,f?0:e)|0}while(0);return d|0}function qr(a,b,e,f){a=a|0;b=b|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,o=0,q=0,r=0,s=0;s=i;i=i+32|0;if((i|0)>=(j|0))fa();q=s;m=s+16|0;c[(m&p)>>2]=b;c[(m&p)+4>>2]=e;c[(m&p)+8>>2]=f;l=b;o=1;g=0;a:while(1){if(!l)break;k=c[(l&p)+4>>2]|0;h=0;while(1){if((k|0)==(d[((h*3|0)&n)+34625>>0]|0|0)?(Fc(c[(l&p)>>2]|0,34584+(d[((h*3|0)&n)+34624>>0]|0)|0,k)|0)==0:0)break;h=h+1|0;if((h|0)>=7){r=10;break a}}g=d[((h*3|0)&n)+34626>>0]|0|g;if((h|0)>6){r=10;break}if((o|0)>=3)break;l=c[(m+(o<<2)&p)>>2]|0;o=o+1|0}if((r|0)==10)g=g|64;if((g&33|0)!=33&(g&64|0)==0){if(!((g&32|0)==0|(g&24|0)==8)){th(a,34696,q);g=1}}else{c[(q&p)>>2]=b;c[(q&p)+4>>2]=e;c[(q&p)+8>>2]=(f|0)==0?20377|0:20376;c[(q&p)+12>>2]=f;th(a,34648,q);g=1}i=s;return g|0}function rr(e,f,g){e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=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;T=i;i=i+48|0;if((i|0)>=(j|0))fa();Q=T+36|0;R=T+32|0;r=T;c[(Q&p)>>2]=0;c[(R&p)>>2]=0;S=c[(e&p)>>2]|0;if(((((c[(e&p)+64>>2]|0)==0?(a[(S&n)+65>>0]|0)==0:0)?(H=Jr(e,f)|0,(H|0)!=0):0)?(G=jt(e,H,109,0,0)|0,P=(c[(H&p)+12>>2]|0)!=0,(hr(e,H)|0)==0):0)?(t=(G|0)!=0,(kt(e,H,t&1)|0)==0):0){l=c[(H&p)+68>>2]|0;a:do if(l){k=c[(S&p)+20>>2]|0;if((k|0)>0){h=c[(S&p)+16>>2]|0;q=0;while(1){m=q+1|0;if((c[(h+(q<<4)&p)+12>>2]|0)==(l|0)){m=q;break a}if((m|0)<(k|0))q=m;else break}}else m=0}else m=-1e6;while(0);h=Sq(e,9,c[(H&p)>>2]|0,0,c[((c[(S&p)+16>>2]|0)+(m<<4)&p)>>2]|0)|0;if((h|0)!=1){s=e+68|0;C=c[(s&p)>>2]|0;u=C+1|0;c[(s&p)>>2]=u;c[(f&p)+48>>2]=C;I=H+8|0;l=c[(I&p)>>2]|0;if(!l)q=0;else{k=u;q=0;do{k=k+1|0;c[(s&p)>>2]=k;q=q+1|0;l=c[(l&p)+20>>2]|0}while((l|0)!=0)}if(P){N=e+492|0;O=c[(N&p)>>2]|0;c[(N&p)>>2]=c[(H&p)>>2];N=e}else{N=0;O=0}L=Oq(e)|0;b:do if(L){M=e+18|0;if(!(a[(M&n)>>0]|0)){E=L+88|0;b[(E&o)>>1]=b[(E&o)>>1]|4}D=e+408|0;E=c[(D&p)>>2]|0;E=(E|0)==0?e:E;Ar(e,m);B=E+328|0;c[(B&p)>>2]=c[(B&p)>>2]|1<>0]=d[(E&n)>>0]|1;if(P){lt(e,H,g,C);c[(R&p)>>2]=C;c[(Q&p)>>2]=C};c[(r&p)>>2]=0;c[(r&p)+4>>2]=0;c[(r&p)+8>>2]=0;c[(r&p)+12>>2]=0;c[(r&p)+16>>2]=0;c[(r&p)+20>>2]=0;c[(r&p)+24>>2]=0;c[(r&p)+28>>2]=0;c[(r&p)>>2]=e;c[(r&p)+4>>2]=f;if(!(ls(r,g)|0)){J=S+24|0;if(!(c[(J&p)>>2]&128))K=-1;else{E=e+72|0;K=(c[(E&p)>>2]|0)+1|0;c[(E&p)>>2]=K;wh(L,25,0,K,0)|0}E=H+44|0;do if((!((g|0)!=0|(h|0)!=0|t)?(a[(E&n)>>0]&16)==0:0)?(mt(e,H,0,0)|0)==0:0){l=H+32|0;gs(e,m,c[(l&p)>>2]|0,1,c[(H&p)>>2]|0);if(!(a[(E&n)>>0]&32)){H=c[(H&p)>>2]|0;xh(L,wh(L,118,c[(l&p)>>2]|0,m,K)|0,H,-2)}h=c[(I&p)>>2]|0;if(!h){h=0;break}do{wh(L,118,c[(h&p)+40>>2]|0,m,0)|0;h=c[(h&p)+20>>2]|0}while((h|0)!=0);h=0}else F=31;while(0);do if((F|0)==31){if(!(a[(E&n)>>0]&32)){v=e+72|0;z=(c[(v&p)>>2]|0)+1|0;c[(v&p)>>2]=z;wh(L,28,0,z,0)|0;v=0;A=0;h=0;x=1;m=0}else{m=c[(I&p)>>2]|0;c:do if(!m)m=0;else while(1){if((a[(m&n)+51>>0]&3)==2)break c;m=c[(m&p)+20>>2]|0;if(!m){m=0;break}}while(0);x=b[(m&o)+46>>1]|0;A=e+72|0;h=c[(A&p)>>2]|0;v=x<<16>>16;c[(A&p)>>2]=h+v;A=c[(s&p)>>2]|0;c[(s&p)>>2]=A+1;v=wh(L,57,A,v,0)|0;z=c[(e&p)+8>>2]|0;xh(z,-1,hs(e,m)|0,-6);h=h+1|0;z=0}w=Vs(e,f,g,0,0,12,u)|0;if(!w){h=0;break b}u=w+60|0;t=c[(u&p)>>2]|0;u=c[(u&p)+4>>2]|0;y=a[(w&n)+38>>0]|0;if(c[(J&p)>>2]&128)wh(L,37,K,1,0)|0;B=(m|0)!=0;do if(B){if(x<<16>>16<=0){k=h;break}r=m+4|0;l=x<<16>>16;s=0;do{nt(L,H,C,b[((c[(r&p)>>2]|0)+(s<<1)&o)>>1]|0,s+h|0);s=s+1|0}while((s|0)!=(l|0));k=h}else{l=e+72|0;k=ct(e,H,-1,C,(c[(l&p)>>2]|0)+1|0,0)|0;if((k|0)<=(c[(l&p)>>2]|0))break;c[(l&p)>>2]=k}while(0);r=y<<24>>24!=0;do if(!r)if(B){l=e+72|0;k=(c[(l&p)>>2]|0)+1|0;c[(l&p)>>2]=k;l=x<<16>>16;s=ot(L,m)|0;xh(L,wh(L,49,h,l,k)|0,s,l);wh(L,110,A,k,0)|0;h=0;l=0;s=0;F=59;break}else{wh(L,128,z,k,0)|0;Xs(w);h=0;u=0;m=1;break}else{h=q+2|0;h=mh(S,h,((h|0)<0)<<31>>31)|0;if(!h){Xs(w);h=0;break b}F=q+1|0;fw(h|0,1,F|0)|0;a[(h+F&n)>>0]=0;if((t|0)>-1)a[(h+(t-C)&n)>>0]=0;if((u|0)>-1)a[(h+(u-C)&n)>>0]=0;if(v)zh(L,v);l=wh(L,16,0,0,0)|0;s=x;F=59}while(0);do if((F|0)==59){Xs(w);if(!r){u=0;m=s;break}m=xs(L)|0;wh(L,16,0,m,0)|0;q=c[(L&p)+32>>2]|0;if(q>>>0>l>>>0)c[((c[(L&p)+4>>2]|0)+(l*20|0)&p)+8>>2]=q;c[((c[(L&p)+24>>2]|0)&p)+88>>2]=q+-1;u=m;m=s}while(0);if(!P)pt(e,H,55,C,h,Q,R)|0;do if(!r)if(B){l=wh(L,108,A,0,0)|0;wh(L,101,A,k,0)|0;break}else{l=wh(L,129,z,0,k)|0;break}else{q=c[(Q&p)>>2]|0;if(!(a[(h+(q-C)&n)>>0]|0)){l=0;break}xh(L,wh(L,68,q,u,k)|0,m<<16>>16,-14);l=0}while(0);if(!(a[(E&n)>>0]&16))rt(e,H,G,c[(Q&p)>>2]|0,c[(R&p)>>2]|0,k,m,(a[(M&n)>>0]|0)==0&1,10,y);else{q=c[(H&p)+60>>2]|0;d:do if(!q)q=0;else while(1){if((c[(q&p)>>2]|0)==(S|0))break d;q=c[(q&p)+24>>2]|0;if(!q){q=0;break}}while(0);qt(e,H);xh(L,wh(L,15,0,1,k)|0,q,-10);q=c[(L&p)+4>>2]|0;if(q)a[(q+(((c[(L&p)+32>>2]|0)+-1|0)*20|0)&n)+3>>0]=2;H=c[(D&p)>>2]|0;a[(((H|0)==0?e:H)&n)+21>>0]=1}do if(!r)if(B){wh(L,9,A,l+1|0,0)|0;q=c[(L&p)+32>>2]|0;if(q>>>0>l>>>0)c[((c[(L&p)+4>>2]|0)+(l*20|0)&p)+8>>2]=q;c[((c[(L&p)+24>>2]|0)&p)+88>>2]=q+-1;break}else{wh(L,16,0,l,0)|0;q=c[(L&p)+32>>2]|0;if(q>>>0>l>>>0)c[((c[(L&p)+4>>2]|0)+(l*20|0)&p)+8>>2]=q;c[((c[(L&p)+24>>2]|0)&p)+88>>2]=q+-1;break}else{m=c[(L&p)+24>>2]|0;l=~u;do if((u|0)<0){q=c[(m&p)+112>>2]|0;if(!q)break;c[(q+(l<<2)&p)>>2]=c[(L&p)+32>>2]}while(0);c[(m&p)+88>>2]=(c[(L&p)+32>>2]|0)+-1}while(0);if(P)break;if(a[(E&n)>>0]&16)break;if(!B)wh(L,61,c[(Q&p)>>2]|0,0,0)|0;k=c[(I&p)>>2]|0;if(!k)break;else l=0;while(1){wh(L,61,(c[(R&p)>>2]|0)+l|0,0,0)|0;k=c[(k&p)+20>>2]|0;if(!k)break;else l=l+1|0}}while(0);if((a[(M&n)>>0]|0)==0?(c[(e&p)+412>>2]|0)==0:0)st(e);if((c[(J&p)>>2]&128|0)!=0?(a[(M&n)>>0]|0)==0:0){if(c[(e&p)+412>>2]|0)break;wh(L,35,K,1,0)|0;iq(L,1);if(a[((c[(L&p)>>2]|0)&n)+65>>0]|0)break;Xg(c[(L&p)+16>>2]|0,34568,-1,1,0)|0}}else h=0}else h=0;while(0);if(N)c[(N&p)+492>>2]=O}else h=0}else h=0;Do(S,f);Gk(S,g);mg(S,h);i=T;return}function sr(e,f,g,h,k){e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;var l=0,m=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,ga=0,ha=0,ia=0,ja=0,ka=0,la=0,ma=0;ma=i;i=i+64|0;if((i|0)>=(j|0))fa();T=ma;Y=ma+32|0;ea=ma+24|0;ha=ma+20|0;la=c[(e&p)>>2]|0;a:do if(((c[(e&p)+64>>2]|0)==0?(a[(la&n)+65>>0]|0)==0:0)?(ka=Jr(e,f)|0,(ka|0)!=0):0){m=c[(e&p)>>2]|0;r=c[(ka&p)+68>>2]|0;b:do if(r){s=c[(m&p)+20>>2]|0;if((s|0)>0){m=c[(m&p)+16>>2]|0;q=0;while(1){l=q+1|0;if((c[(m+(q<<4)&p)+12>>2]|0)==(r|0))break b;if((l|0)<(s|0))q=l;else{q=l;break}}}else q=0}else q=-1e6;while(0);ga=jt(e,ka,110,g,ea)|0;ca=(c[(ka&p)+12>>2]|0)!=0;if((hr(e,ka)|0)==0?(kt(e,ka,c[(ea&p)>>2]|0)|0)==0:0){_=e+68|0;$=c[(_&p)>>2]|0;ia=$+1|0;c[(_&p)>>2]=ia;r=f+48|0;c[(r&p)>>2]=$;K=ka+44|0;u=c[(ka&p)+8>>2]|0;c:do if(!(a[(K&n)>>0]&32)){s=0;ba=16}else{if(!u){w=ka+8|0;s=0;t=$;v=0;break}else s=u;while(1){if((a[(s&n)+51>>0]&3)==2){ba=16;break c}s=c[(s&p)+20>>2]|0;if(!s){s=0;ba=16;break}}}while(0);if((ba|0)==16){w=ka+8|0;if(!u){t=$;v=0}else{l=(s|0)!=0;m=ia;t=$;v=0;do{if((a[(u&n)+51>>0]&3)==2&l){c[(r&p)>>2]=m;t=m}m=m+1|0;c[(_&p)>>2]=m;v=v+1|0;u=c[(u&p)+20>>2]|0}while((u|0)!=0)}}ja=ka+38|0;l=mh(la,v+2+((b[(ja&o)>>1]|0)+v<<2)|0,0)|0;if(l){I=b[(ja&o)>>1]|0;aa=l+(I<<2)|0;da=l+(I+v<<2)|0;Z=v+1|0;fw(da|0,1,Z|0)|0;a[(da+Z&n)>>0]=0;v=b[(ja&o)>>1]|0;if(v<<16>>16>0)fw(l|0,-1,(v<<16>>16>1?v<<16>>16<<2:4)|0)|0;c[(Y&p)>>2]=0;c[(Y&p)+4>>2]=0;c[(Y&p)+8>>2]=0;c[(Y&p)+12>>2]=0;c[(Y&p)+16>>2]=0;c[(Y&p)+20>>2]=0;c[(Y&p)+24>>2]=0;c[(Y&p)+28>>2]=0;c[(Y&p)>>2]=e;c[(Y&p)+4>>2]=f;d:do if((c[(g&p)>>2]|0)>0){E=g+4|0;D=ka+4|0;C=la+16|0;F=(s|0)==0;G=ka+36|0;y=0;x=0;H=0;m=0;while(1){if(ls(Y,c[((c[(E&p)>>2]|0)+(H*20|0)&p)>>2]|0)|0)break a;A=b[(ja&o)>>1]|0;e:do if(A<<16>>16>0){v=c[(D&p)>>2]|0;B=c[(E&p)>>2]|0;r=c[(B+(H*20|0)&p)+4>>2]|0;u=0;while(1){z=u+1|0;if(!(dd(c[(v+(u*24|0)&p)>>2]|0,r)|0))break;if((z|0)<(A<<16>>16|0))u=z;else{u=z;r=m;break e}}if((u|0)!=(b[(G&o)>>1]|0)){if(!F)y=(a[(v+(u*24|0)&n)+23>>0]&1)==0?y:1}else{x=1;m=c[(B+(H*20|0)&p)>>2]|0}c[(l+(u<<2)&p)>>2]=H;r=m}else{u=0;r=m}while(0);if((u|0)<(A<<16>>16|0)){m=c[(ka&p)>>2]|0;if((u|0)<0)v=12944;else v=c[((c[(D&p)>>2]|0)+(u*24|0)&p)>>2]|0}else{r=c[(E&p)>>2]|0;m=c[(r+(H*20|0)&p)+4>>2]|0;if(!F)break;if(!($h(m)|0))break;m=c[(ka&p)>>2]|0;v=12944;x=1;u=-1;r=c[(r+(H*20|0)&p)>>2]|0}m=Sq(e,23,m,v,c[((c[(C&p)>>2]|0)+(q<<4)&p)>>2]|0)|0;if((m|0)==2)c[(l+(u<<2)&p)>>2]=-1;else if((m|0)==1)break a;H=H+1|0;if((H|0)>=(c[(g&p)>>2]|0)){R=r;break d}else m=r}c[(T&p)>>2]=m;th(e,34496,T);a[(e&n)+17>>0]=1;break a}else{y=0;x=0;R=0}while(0);X=(y&255)+(x&255)|0;U=X&255;C=f+64|0;c[(C&p)>>2]=0;c[(C&p)+4>>2]=0;X=X&255;C=mt(e,ka,l,X)|0;m=c[(w&p)>>2]|0;if(m){z=(C|X|0)==0;A=e+72|0;B=0;while(1){f:do if(z?!((c[(m&p)+36>>2]|0)!=0|(m|0)==(s|0)):0){r=b[(m&o)+46>>1]|0;if(!(r<<16>>16))ba=56;else{u=c[(m&p)+4>>2]|0;v=0;while(1){if((c[(l+(b[(u+(v<<1)&o)>>1]<<2)&p)>>2]|0)>-1){ba=54;break f}v=v+1|0;if((v|0)>=(r&65535|0)){ba=56;break}}}}else ba=54;while(0);if((ba|0)==54){ba=0;r=(c[(A&p)>>2]|0)+1|0;c[(A&p)>>2]=r;if(!r)ba=56;else u=B+1|0}if((ba|0)==56){ba=0;u=B+1|0;a[(da+u&n)>>0]=0;r=0}c[(l+(B+I<<2)&p)>>2]=r;m=c[(m&p)+20>>2]|0;if(!m)break;else B=u}}V=Oq(e)|0;if(V){W=e+18|0;if(!(a[(W&n)>>0]|0)){S=V+88|0;b[(S&o)>>1]=b[(S&o)>>1]|4}H=e+408|0;S=c[(H&p)>>2]|0;S=(S|0)==0?e:S;Ar(e,q);Q=S+328|0;c[(Q&p)>>2]=c[(Q&p)>>2]|1<>0]=d[(S&n)>>0]|1;if(a[(K&n)>>0]&16){x=c[(e&p)+8>>2]|0;y=c[(e&p)>>2]|0;m=c[(ka&p)+60>>2]|0;g:do if(!m)m=0;else while(1){if((c[(m&p)>>2]|0)==(y|0))break g;m=c[(m&p)+24>>2]|0;if(!m){m=0;break}}while(0);q=lr(e,0,tt(y,27,34536)|0)|0;w=(R|0)!=0;if(w)q=lr(e,q,Mr(y,R,0,0)|0)|0;if((b[(ja&o)>>1]|0)>0){r=g+4|0;t=ka+4|0;u=0;do{s=c[(l+(u<<2)&p)>>2]|0;if((s|0)>-1)s=Mr(y,c[((c[(r&p)>>2]|0)+(s*20|0)&p)>>2]|0,0,0)|0;else s=tt(y,27,c[((c[(t&p)>>2]|0)+(u*24|0)&p)>>2]|0)|0;q=lr(e,q,s)|0;u=u+1|0}while((u|0)<(b[(ja&o)>>1]|0))}t=kr(e,q,f,h,0,0,0,0,0,0)|0;v=c[(_&p)>>2]|0;c[(_&p)>>2]=v+1;f=w&1;wh(x,57,v,(b[(ja&o)>>1]|0)+(w?2:1)|0,0)|0;u=x+4|0;h=c[(u&p)>>2]|0;if(h)a[(h+(((c[(x&p)+32>>2]|0)+-1|0)*20|0)&n)+3>>0]=8;a[(T&n)>>0]=14;c[(T&p)+4>>2]=v;a[(T&n)+1>>0]=0;c[(T&p)+8>>2]=0;c[(T&p)+12>>2]=0;ir(e,t,T)|0;h=e+72|0;s=c[(h&p)>>2]|0;q=s+1|0;da=s+2|0;c[(h&p)>>2]=(b[(ja&o)>>1]|0)+da;h=wh(x,108,v,0,0)|0;wh(x,47,v,0,q)|0;wh(x,47,v,f,da)|0;if((b[(ja&o)>>1]|0)>0){s=s+3|0;r=0;do{da=r;r=r+1|0;wh(x,47,v,r+f|0,s+da|0)|0}while((r|0)<(b[(ja&o)>>1]|0))}qt(e,ka);xh(x,wh(x,15,0,(b[(ja&o)>>1]|0)+2|0,q)|0,m,-10);m=c[(u&p)>>2]|0;if(!m)m=x+32|0;else{da=x+32|0;a[(m+(((c[(da&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=(k|0)==10?2:k&255;m=da}da=c[(H&p)>>2]|0;a[(((da|0)==0?e:da)&n)+21>>0]=1;wh(x,9,v,h+1|0,0)|0;m=c[(m&p)>>2]|0;if(m>>>0>h>>>0)c[((c[(u&p)>>2]|0)+(h*20|0)&p)+8>>2]=m;c[((c[(x&p)+24>>2]|0)&p)+88>>2]=m+-1;wh(x,61,v,0,0)|0;Mk(y,t,1);h=0;f=0;break}H=e+72|0;m=c[(H&p)>>2]|0;G=m+1|0;Q=m+2|0;c[(H&p)>>2]=Q;I=y<<24>>24!=0;J=(ga|0)!=0;P=(C|0)!=0;if(I|J|P){q=(b[(ja&o)>>1]|0)+Q|0;c[(H&p)>>2]=q;L=m+3|0}else{q=Q;L=0}N=(X|0)!=0;if(N|J|P){O=q+1|0;c[(H&p)>>2]=O;q=O}else O=Q;M=q+1|0;c[(H&p)>>2]=(b[(ja&o)>>1]|0)+q;if(ca){S=e+492|0;T=c[(S&p)>>2]|0;c[(S&p)>>2]=c[(ka&p)>>2];lt(e,ka,h,t);S=e}else{S=0;T=0}do if(!(ls(Y,h)|0)){if(!(a[(K&n)>>0]&32)){wh(V,28,0,G,Q)|0;y=Vs(e,f,h,0,0,4,ia)|0;if(!y)break;A=y+60|0;m=c[(A&p)>>2]|0;A=c[(A&p)+4>>2]|0;B=a[(y&n)+38>>0]|0;wh(V,103,t,Q,0)|0;if(!(B<<24>>24))wh(V,128,G,Q,0)|0;Xs(y);D=0;C=0;z=B&255;E=0}else{B=b[(s&o)+46>>1]|0;y=c[(H&p)>>2]|0;u=y+1|0;C=B<<16>>16;y=C+1+y|0;c[(H&p)>>2]=y;D=c[(_&p)>>2]|0;c[(_&p)>>2]=D+1;wh(V,28,0,u,0)|0;q=wh(V,57,D,C,0)|0;v=c[(e&p)+8>>2]|0;xh(v,-1,hs(e,s)|0,-6);v=Vs(e,f,h,0,0,4,ia)|0;if(!v)break;A=v+60|0;m=c[(A&p)>>2]|0;A=c[(A&p)+4>>2]|0;r=a[(v&n)+38>>0]|0;E=r&255;if(B<<16>>16>0){B=s+4|0;z=0;do{nt(V,ka,t,b[((c[(B&p)>>2]|0)+(z<<1)&o)>>1]|0,z+u|0);z=z+1|0}while((z|0)!=(C|0))}if(!(r<<24>>24)){B=ot(V,s)|0;xh(V,wh(V,49,u,C,y)|0,B,C);wh(V,110,D,y,0)|0;B=0}else{zh(V,q);B=C;y=u}Xs(v);C=B;z=E;E=y}K=la+24|0;do if(!(c[(K&p)>>2]&128))v=0;else{if(c[(e&p)+412>>2]|0){v=0;break}v=(c[(H&p)>>2]|0)+1|0;c[(H&p)>>2]=v;wh(V,25,0,v,0)|0}while(0);u=xs(V)|0;if(!ca){h:do if((k|0)==5)fw(da|0,1,Z|0)|0;else{B=c[(w&p)>>2]|0;if(!B)break;while(1){if((a[(B&n)+50>>0]|0)==5)break;B=c[(B&p)+20>>2]|0;if(!B)break h}fw(da|0,1,Z|0)|0}while(0);do if(z){if((m|0)>-1)a[(da+(m-$)&n)>>0]=0;if((A|0)<=-1)break;a[(da+(A-$)&n)>>0]=0}while(0);pt(e,ka,55,$,da,0,0)|0}H=(z|0)!=0;do if(!H)if(!s){G=wh(V,129,G,u,Q)|0;wh(V,70,t,G,Q)|0;F=0;break}else{G=xs(V)|0;wh(V,108,D,u,0)|0;F=wh(V,101,D,E,0)|0;xh(V,wh(V,68,t,G,E)|0,0,-14);break}else{if(!((a[(da+(t-$)&n)>>0]|0)==0|ca))xh(V,wh(V,68,t,u,E)|0,C,-14);wh(V,76,(s|0)!=0?E:Q,u,0)|0;F=0;G=u}while(0);x=x<<24>>24==0;if(!x){Rq(e,R,O);wh(V,38,O,0,0)|0}do if(I|P|J){if(P)y=ut(e,ka)|0;else y=0;B=vt(e,ga,g,0,3,ka,k)|0|y;if((b[(ja&o)>>1]|0)>0){A=(B|0)==-1;z=ka+4|0;y=0;do{do if(A)ba=138;else{if((y|0)<32?(1<>2]|0)+(y*24|0)&n)+23>>0]&1){ba=138;break}wh(V,28,0,y+L|0,0)|0}while(0);if((ba|0)==138){ba=0;nt(V,ka,t,y,y+L|0)}y=y+1|0}while((y|0)<(b[(ja&o)>>1]|0))}if(!(x&(s|0)==0))break;wh(V,33,Q,O,0)|0}while(0);y=vt(e,ga,g,1,1,ka,k)|0;if((b[(ja&o)>>1]|0)>0){x=ka+36|0;m=g+4|0;r=0;do{i:do if((r|0)==(b[(x&o)>>1]|0))wh(V,28,0,r+M|0,0)|0;else{q=c[(l+(r<<2)&p)>>2]|0;if((q|0)>-1){Rq(e,c[((c[(m&p)>>2]|0)+(q*20|0)&p)>>2]|0,r+M|0);break}do if(!((c[(ea&p)>>2]&1|0)==0|(r|0)>31)){if(1<>1]|0))}do if(c[(ea&p)>>2]&1){wt(V,ka,M);xt(e,ga,110,g,1,ka,Q,k,G);if(!s)wh(V,70,t,G,Q)|0;else xh(V,wh(V,68,t,G,E)|0,C,-14);m=b[(ja&o)>>1]|0;if(m<<16>>16<=0)break;x=ka+36|0;y=0;do{do if((c[(l+(y<<2)&p)>>2]|0)<0){if((y|0)==(b[(x&o)>>1]|0))break;nt(V,ka,t,y,y+M|0);m=b[(ja&o)>>1]|0}while(0);y=y+1|0}while((y|0)<(m<<16>>16|0))}while(0);do if(!ca){c[(ha&p)>>2]=0;yt(e,ka,aa,t,ia,O,Q,U,k&255,G,ha);if(P)zt(e,ka,Q,0,l,X);m=(c[(ha&p)>>2]|X|0)==0;do if(!m)if(!s){q=wh(V,70,t,0,Q)|0;break}else{q=wh(V,68,t,0,E)|0;xh(V,q,C,-14);break}else q=0;while(0);At(e,ka,t,ia,aa);if(P|(N|(s|0)!=0))wh(V,95,t,0,0)|0;if(!m){m=c[(V&p)+32>>2]|0;if(m>>>0>q>>>0)c[((c[(V&p)+4>>2]|0)+(q*20|0)&p)+8>>2]=m;c[((c[(V&p)+24>>2]|0)&p)+88>>2]=m+-1}if(P){zt(e,ka,0,O,l,X);Bt(e,ka,t,ia,O,aa,1,0,0);Ct(e,ka,g,Q,l,X);break}else{Bt(e,ka,t,ia,O,aa,1,0,0);break}}while(0);do if(c[(K&p)>>2]&128){if(c[(e&p)+412>>2]|0)break;wh(V,37,v,1,0)|0}while(0);xt(e,ga,110,g,2,ka,Q,k,G);do if(!H){if(!s){wh(V,16,0,G,0)|0;break}r=c[(V&p)+24>>2]|0;q=~G;do if((G|0)<0){s=c[(r&p)+112>>2]|0;if(!s)break;c[(s+(q<<2)&p)>>2]=c[(V&p)+32>>2]}while(0);c[(r&p)+88>>2]=(c[(V&p)+32>>2]|0)+-1;wh(V,9,D,F,0)|0}while(0);r=c[(V&p)+24>>2]|0;q=~u;do if((u|0)<0){s=c[(r&p)+112>>2]|0;if(!s)break;c[(s+(q<<2)&p)>>2]=c[(V&p)+32>>2]}while(0);c[(r&p)+88>>2]=(c[(V&p)+32>>2]|0)+-1;q=c[(w&p)>>2]|0;if(q){r=0;do{s=r;r=r+1|0;if(a[(da+r&n)>>0]|0)wh(V,61,s+ia|0,0,0)|0;q=c[(q&p)+20>>2]|0}while((q|0)!=0)}if((t|0)<(ia|0))wh(V,61,t,0,0)|0;do if(!(a[(W&n)>>0]|0)){if(c[(e&p)+412>>2]|0)break;st(e)}while(0);if(!(c[(K&p)>>2]&128))break;if(c[(e&p)+412>>2]|0)break;if(a[(W&n)>>0]|0)break;wh(V,35,v,1,0)|0;iq(V,1);if(a[((c[(V&p)>>2]|0)&n)+65>>0]|0)break;Xg(c[(V&p)+16>>2]|0,34520,-1,1,0)|0}while(0);if(S)c[(S&p)+492>>2]=T}}}else l=0}else l=0;while(0);mg(la,l);Do(la,f);Nk(la,g);Gk(la,h);i=ma;return}function tr(e,f,g,h,k){e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;var l=0,m=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,ga=0,ha=0,ia=0,ja=0,ka=0,la=0,ma=0,na=0,oa=0;oa=i;i=i+96|0;if((i|0)>=(j|0))fa();ca=oa;ja=oa+92|0;la=oa+88|0;L=oa+68|0;Y=oa+64|0;O=oa+32|0;ba=oa+28|0;c[(ja&p)>>2]=0;c[(la&p)>>2]=0;na=c[(e&p)>>2]|0;c[(L&p)>>2]=0;c[(L&p)+4>>2]=0;c[(L&p)+8>>2]=0;c[(L&p)+12>>2]=0;c[(L&p)+16>>2]=0;a:do if((c[(e&p)+64>>2]|0)==0?(N=na+65|0,(a[(N&n)>>0]|0)==0):0){if(g)if((b[(g&o)+6>>1]&128)!=0?(c[(g&p)+52>>2]|0)==0:0){l=c[(g&p)>>2]|0;c[(g&p)>>2]=0;Mk(na,g,1);g=0}else l=0;else{g=0;l=0}if((c[(f&p)+16>>2]|0)!=0?(ka=Jr(e,f)|0,(ka|0)!=0):0){u=c[(ka&p)+68>>2]|0;b:do if(u){t=c[(na&p)+20>>2]|0;if((t|0)>0){s=c[(na&p)+16>>2]|0;q=0;while(1){r=q+1|0;if((c[(s+(q<<4)&p)+12>>2]|0)==(u|0)){r=q;break b}if((r|0)<(t|0))q=r;else break}}else r=0}else r=-1e6;while(0);if((((Sq(e,18,c[(ka&p)>>2]|0,0,c[((c[(na&p)+16>>2]|0)+(r<<4)&p)>>2]|0)|0)==0?(ga=ka+44|0,Z=(d[(ga&n)>>0]|0)>>>5&1,ea=jt(e,ka,108,0,Y)|0,ha=(c[(ka&p)+12>>2]|0)!=0,(hr(e,ka)|0)==0):0)?(kt(e,ka,c[(Y&p)>>2]|0)|0)==0:0)?(ma=Oq(e)|0,(ma|0)!=0):0){ia=e+18|0;if(!(a[(ia&n)>>0]|0)){da=ma+88|0;b[(da&o)>>1]=b[(da&o)>>1]|4}da=(g|0)!=0;aa=e+408|0;$=c[(aa&p)>>2]|0;$=($|0)==0?e:$;Ar(e,r);X=$+328|0;c[(X&p)>>2]=c[(X&p)>>2]|1<>0]=d[($&n)>>0]|(da|(ea|0)!=0)&1;$=(h|0)==0;c:do if((((!((g|0)==0|$^1)?(c[(e&p)+532>>2]|0)==0:0)?(c[(g&p)+68>>2]|0)==0:0)?(As(e,ka)|0)==0:0)?(a[(ga&n)>>0]&16)==0:0){if((k|0)==10){if((b[(ka&o)+36>>1]|0)>-1)u=d[(ka&n)+45>>0]|0;else u=10;y=(u|0)==10?2:u}else y=k;t=c[(g&p)+32>>2]|0;if((c[(t&p)>>2]|0)==1){if(c[(t&p)+28>>2]|0){_=117;break}if(c[(g&p)+36>>2]|0){_=117;break}if(c[(g&p)+48>>2]|0){_=117;break}if(c[(g&p)+40>>2]|0){_=117;break}if(c[(g&p)+60>>2]|0){_=117;break}if(c[(g&p)+52>>2]|0){_=117;break}if(b[(g&o)+6>>1]&1){_=117;break}u=c[(g&p)>>2]|0;if((c[(u&p)>>2]|0)!=1){_=117;break}if((a[(c[(c[(u&p)+4>>2]&p)>>2]&n)>>0]|0)!=116){_=117;break}x=Ur(e,0,t+8|0)|0;if((x|0)==0|(x|0)==(ka|0)){_=117;break}B=x+44|0;X=d[(B&n)>>0]|0;if(!((X&16|0)==0?(((d[(ga&n)>>0]|0)>>>5&1^1)&255|0)==(X>>>5&1^1|0):0)){_=117;break}if(c[(x&p)+12>>2]|0){_=117;break}v=b[(ka&o)+38>>1]|0;if(v<<16>>16!=(b[(x&o)+38>>1]|0)){_=117;break}A=ka+36|0;if((b[(A&o)>>1]|0)!=(b[(x&o)+36>>1]|0)){_=117;break}if(v<<16>>16>0){q=c[(ka&p)+4>>2]|0;m=c[(x&p)+4>>2]|0;w=0;do{if((a[(q+(w*24|0)&n)+21>>0]|0)!=(a[(m+(w*24|0)&n)+21>>0]|0)){_=117;break c}u=c[(q+(w*24|0)&p)+16>>2]|0;t=c[(m+(w*24|0)&p)+16>>2]|0;s=(t|0)==0;if(!u){if(!s){_=117;break c}}else{if(s){_=117;break c}if(dd(u,t)|0){_=117;break c}}if((a[(q+(w*24|0)&n)+20>>0]|0)!=0?(a[(m+(w*24|0)&n)+20>>0]|0)==0:0){_=117;break c}do if((w|0)>0){u=c[(q+(w*24|0)&p)+8>>2]|0;t=(u|0)==0;s=c[(m+(w*24|0)&p)+8>>2]|0;if(t^(s|0)==0){_=117;break c}if(t)break;if(_v(u,s)|0){_=117;break c}}while(0);w=w+1|0}while((w|0)<(v<<16>>16|0))}E=ka+8|0;u=c[(E&p)>>2]|0;if(!u)t=0;else{v=c[(x&p)+8>>2]|0;if(!v){_=117;break}else t=0;do{t=(a[(u&n)+50>>0]|0)==0?t:1;s=v;while(1){if(Dt(u,s)|0)break;s=c[(s&p)+20>>2]|0;if(!s){_=117;break c}}if(!s){_=117;break c}u=c[(u&p)+20>>2]|0}while((u|0)!=0)}u=c[(ka&p)+24>>2]|0;if((u|0)!=0?(Ts(c[(x&p)+24>>2]|0,u,-1)|0)!=0:0){_=117;break}s=c[(e&p)>>2]|0;u=c[(s&p)+24>>2]|0;if(!(u&524288)){if(u&128){_=117;break}}else if(!((c[(ka&p)+16>>2]|0)==0&(u&128|0)==0)){_=117;break}m=c[(x&p)+68>>2]|0;d:do if(!m)s=-1e6;else{v=c[(s&p)+20>>2]|0;if((v|0)<=0){s=0;break}u=c[(s&p)+16>>2]|0;q=0;while(1){s=q+1|0;if((c[(u+(q<<4)&p)+12>>2]|0)==(m|0)){s=q;break d}if((s|0)<(v|0))q=s;else break}}while(0);D=Oq(e)|0;Ar(e,s);z=e+68|0;F=c[(z&p)>>2]|0;C=F+1|0;c[(z&p)>>2]=F+2;z=Et(e,r,ka)|0;v=e+19|0;q=a[(v&n)>>0]|0;do if(!(q<<24>>24)){_=e+72|0;u=(c[(_&p)>>2]|0)+1|0;c[(_&p)>>2]=u;_=78}else{X=q+-1<<24>>24;a[(v&n)>>0]=X;u=c[(e+((X&255)<<2)&p)+24>>2]|0;if(!(X<<24>>24)){_=78;break}G=q+-2<<24>>24;a[(v&n)>>0]=G;H=u;G=c[(e+((G&255)<<2)&p)+24>>2]|0}while(0);if((_|0)==78){H=e+72|0;G=(c[(H&p)>>2]|0)+1|0;c[(H&p)>>2]=G;H=u}Qq(e,C,r,ka,55);if((b[(A&o)>>1]|0)<0)if((c[(E&p)>>2]|0)!=0|(t|0)!=0|(y+-1|0)>>>0>1)_=83;else I=0;else if((t|0)!=0|(y+-1|0)>>>0>1)_=83;else I=0;if((_|0)==83){w=wh(D,108,C,0,0)|0;v=wh(D,16,0,0,0)|0;u=c[(D&p)+32>>2]|0;if(u>>>0>w>>>0)c[((c[(D&p)+4>>2]|0)+(w*20|0)&p)+8>>2]=u;c[((c[(D&p)+24>>2]|0)&p)+88>>2]=u+-1;I=v}if(!(a[(B&n)>>0]&32)){Qq(e,F,s,x,54);t=wh(D,108,F,0,0)|0;do if((b[(A&o)>>1]|0)<=-1)if(!(c[(E&p)>>2]|0)){u=wh(D,74,C,G,0)|0;break}else{u=wh(D,103,F,G,0)|0;break}else{u=wh(D,103,F,G,0)|0;w=wh(D,70,C,0,G)|0;Ft(e,y,ka);v=c[(D&p)+32>>2]|0;if(v>>>0>w>>>0)c[((c[(D&p)+4>>2]|0)+(w*20|0)&p)+8>>2]=v;c[((c[(D&p)+24>>2]|0)&p)+88>>2]=v+-1;if((z|0)<=0)break;wh(c[(e&p)+8>>2]|0,136,z,G,0)|0}while(0);wh(D,102,F,H,0)|0;wh(D,75,C,H,G)|0;v=c[(D&p)+4>>2]|0;if(v)a[(v+(((c[(D&p)+32>>2]|0)+-1|0)*20|0)&n)+3>>0]=11;xh(D,-1,c[(ka&p)>>2]|0,0);wh(D,9,F,u,0)|0;wh(D,61,F,0,0)|0;wh(D,61,C,0,0)|0}else{gs(e,r,c[(ka&p)+32>>2]|0,1,c[(ka&p)>>2]|0);gs(e,s,c[(x&p)+32>>2]|0,0,c[(x&p)>>2]|0);t=0}w=c[(E&p)>>2]|0;if(w){q=x+8|0;m=e+8|0;x=D+4|0;y=D+32|0;z=D+24|0;u=w;do{w=q;while(1){w=c[(w&p)>>2]|0;if(Dt(u,w)|0)break;w=w+20|0}wh(D,54,F,c[(w&p)+40>>2]|0,s)|0;X=c[(m&p)>>2]|0;xh(X,-1,hs(e,w)|0,-6);wh(D,55,C,c[(u&p)+40>>2]|0,r)|0;w=c[(m&p)>>2]|0;xh(w,-1,hs(e,u)|0,-6);w=c[(x&p)>>2]|0;if(w)a[(w+(((c[(y&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=1;w=wh(D,108,F,0,0)|0;wh(D,101,F,H,0)|0;wh(D,110,C,H,1)|0;wh(D,9,F,w+1|0,0)|0;v=c[(y&p)>>2]|0;if(v>>>0>w>>>0)c[((c[(x&p)>>2]|0)+(w*20|0)&p)+8>>2]=v;c[((c[(z&p)>>2]|0)&p)+88>>2]=v+-1;wh(D,61,F,0,0)|0;wh(D,61,C,0,0)|0;u=c[(u&p)+20>>2]|0}while((u|0)!=0)}if(t){u=c[(D&p)+32>>2]|0;if(u>>>0>t>>>0)c[((c[(D&p)+4>>2]|0)+(t*20|0)&p)+8>>2]=u;c[((c[(D&p)+24>>2]|0)&p)+88>>2]=u+-1}_r(e,G);_r(e,H);if(!I){m=0;q=0;break}wh(D,24,0,0,0)|0;u=c[(D&p)+32>>2]|0;if(u>>>0>I>>>0)c[((c[(D&p)+4>>2]|0)+(I*20|0)&p)+8>>2]=u;c[((c[(D&p)+24>>2]|0)&p)+88>>2]=u+-1;wh(D,61,C,0,0)|0;_=117}else _=117}else _=117;while(0);do if((_|0)==117){S=Et(e,r,ka)|0;R=e+72|0;t=c[(R&p)>>2]|0;W=t+1|0;X=ka+38|0;I=b[(X&o)>>1]|0;H=I<<16>>16;u=W+H|0;c[(R&p)>>2]=u;if(!(a[(ga&n)>>0]&16))V=W;else{u=u+1|0;c[(R&p)>>2]=u;V=t+2|0}T=V+1|0;U=(h|0)!=0;e:do if(U?(P=c[(h&p)+4>>2]|0,Q=(P|0)>0,Q):0){v=c[(h&p)>>2]|0;t=0;do{c[(v+(t<<3)&p)+4>>2]=-1;t=t+1|0}while((t|0)<(P|0));if(Q){D=Z<<24>>24!=0;C=ka+4|0;B=ka+36|0;t=1;A=0;v=-1;while(1){f:do if(I<<16>>16>0){z=c[(h&p)>>2]|0;s=c[(z+(A<<3)&p)>>2]|0;q=c[(C&p)>>2]|0;m=0;while(1){w=m+1|0;if(!(dd(s,c[(q+(m*24|0)&p)>>2]|0)|0)){w=m;break}if((w|0)<(H|0))m=w;else break f}c[(z+(A<<3)&p)+4>>2]=w;t=(A|0)==(w|0)?t:0;v=(w|0)==(b[(B&o)>>1]|0)?A:v}else w=0;while(0);if((w|0)>=(H|0)){m=c[((c[(h&p)>>2]|0)+(A<<3)&p)>>2]|0;if(($h(m)|0)==0|D)break;else{t=0;w=A}}else w=v;A=A+1|0;if((A|0)>=(P|0)){E=w;break e}else v=w}c[(ca&p)>>2]=f;c[(ca&p)+4>>2]=0;c[(ca&p)+8>>2]=m;th(e,33368,ca);a[(e&n)+17>>0]=1;m=0;break a}else{t=1;E=-1}}else{t=1;E=-1}while(0);g:do if(!da){c[(O&p)>>2]=0;c[(O&p)+4>>2]=0;c[(O&p)+8>>2]=0;c[(O&p)+12>>2]=0;c[(O&p)+16>>2]=0;c[(O&p)+20>>2]=0;c[(O&p)+24>>2]=0;c[(O&p)+28>>2]=0;c[(O&p)>>2]=e;if(l){s=c[(l&p)>>2]|0;if((s|0)>0){u=l+4|0;t=0;while(1){if(ls(O,c[((c[(u&p)>>2]|0)+(t*20|0)&p)>>2]|0)|0){g=0;m=0;break a}t=t+1|0;if((t|0)>=(s|0)){u=0;t=-1;r=0;_=169;break}}}else{P=E;O=0;Q=-1;z=0}}else{P=E;s=0;O=0;Q=-1;z=0}}else{u=u+1|0;c[(R&p)>>2]=u;G=ma+32|0;v=c[(G&p)>>2]|0;wh(ma,20,u,0,v+1|0)|0;a[(L&n)>>0]=13;H=L+4|0;c[(H&p)>>2]=u;a[(L&n)+1>>0]=0;F=L+8|0;c[(F&p)>>2]=t<<24>>24!=0?T:0;c[(L&p)+12>>2]=b[(X&o)>>1];Q=ir(e,g,L)|0;F=c[(F&p)>>2]|0;if(Q){m=0;break a}if(a[(N&n)>>0]|0){m=0;break a}wh(ma,21,u,0,0)|0;u=c[(G&p)>>2]|0;if(u>>>0>v>>>0)c[((c[(ma&p)+4>>2]|0)+(v*20|0)&p)+8>>2]=u;I=ma+24|0;c[((c[(I&p)>>2]|0)&p)+88>>2]=u+-1;s=c[(c[(g&p)>>2]&p)>>2]|0;h:do if(!ea){w=Oq(e)|0;t=c[(w&p)+32>>2]|0;i:do if(!(a[(ga&n)>>0]&16))v=0;else{u=c[(e&p)>>2]|0;v=c[(ka&p)+60>>2]|0;if(!v){v=0;break}while(1){if((c[(v&p)>>2]|0)==(u|0))break i;v=c[(v&p)+24>>2]|0;if(!v){v=0;break}}}while(0);if((t|0)<=1){u=F;t=0;r=0;_=169;break g}q=(a[((c[(w&p)>>2]|0)&n)+65>>0]|0)==0;z=w+4|0;y=ka+32|0;x=ka+8|0;m=1;while(1){if(q)w=(c[(z&p)>>2]|0)+(m*20|0)|0;else w=29120;u=a[(w&n)>>0]|0;do if(u<<24>>24==54){if((c[(w&p)+12>>2]|0)!=(r|0))break;u=c[(w&p)+8>>2]|0;if((u|0)==(c[(y&p)>>2]|0))break h;w=c[(x&p)>>2]|0;if(!w)break;do{if((u|0)==(c[(w&p)+40>>2]|0))break h;w=c[(w&p)+20>>2]|0}while((w|0)!=0)}else if(u<<24>>24==-107?(c[(w&p)+16>>2]|0)==(v|0):0)break h;while(0);m=m+1|0;if((m|0)>=(t|0)){u=F;t=0;r=0;_=169;break g}}}while(0);v=e+68|0;w=c[(v&p)>>2]|0;c[(v&p)>>2]=w+1;v=e+19|0;t=a[(v&n)>>0]|0;do if(!(t<<24>>24)){u=(c[(R&p)>>2]|0)+1|0;c[(R&p)>>2]=u;_=159}else{Q=t+-1<<24>>24;a[(v&n)>>0]=Q;u=c[(e+((Q&255)<<2)&p)+24>>2]|0;if(!(Q<<24>>24)){_=159;break}Q=t+-2<<24>>24;a[(v&n)>>0]=Q;v=c[(e+((Q&255)<<2)&p)+24>>2]|0}while(0);if((_|0)==159){v=(c[(R&p)>>2]|0)+1|0;c[(R&p)>>2]=v}wh(ma,57,w,s,0)|0;r=wh(ma,22,c[(H&p)>>2]|0,0,0)|0;wh(ma,49,F,s,u)|0;wh(ma,74,w,v,0)|0;wh(ma,75,w,u,v)|0;wh(ma,16,0,r,0)|0;t=c[(G&p)>>2]|0;if(t>>>0>r>>>0)c[((c[(ma&p)+4>>2]|0)+(r*20|0)&p)+8>>2]=t;c[((c[(I&p)>>2]|0)&p)+88>>2]=t+-1;_r(e,u);_r(e,v);u=F;t=w;r=1;_=169}while(0);if((_|0)==169)if($&(s|0)>0){P=b[(ka&o)+36>>1]|0;O=u;Q=t;z=r}else{P=E;O=u;Q=t;z=r}if((a[(ga&n)>>0]&16)!=0?(M=b[(X&o)>>1]|0,M<<16>>16>0):0){v=c[(ka&p)+4>>2]|0;t=M<<16>>16;r=0;u=0;do{u=((d[(v+(r*24|0)&n)+23>>0]|0)>>>1&1)+u|0;r=r+1|0}while((r|0)<(t|0))}else u=0;do if($&(s|0)!=0){u=(b[(X&o)>>1]|0)-u|0;if((s|0)==(u|0))break;c[(ca&p)>>2]=f;c[(ca&p)+4>>2]=0;c[(ca&p)+8>>2]=u;c[(ca&p)+12>>2]=s;th(e,33400,ca);m=0;break a}while(0);do if(U){u=c[(h&p)+4>>2]|0;if((s|0)==(u|0))break;c[(ca&p)>>2]=s;c[(ca&p)+4>>2]=u;th(e,33456,ca);m=0;break a}while(0);K=na+24|0;if(!(c[(K&p)>>2]&128))q=0;else{q=(c[(R&p)>>2]|0)+1|0;c[(R&p)>>2]=q;wh(ma,25,0,q,0)|0}do if(ha)m=0;else{u=pt(e,ka,55,-1,0,ja,la)|0;m=mh(na,(u<<2)+4|0,0)|0;if(!m)break a;if((u|0)>0)t=0;else break;do{N=(c[(R&p)>>2]|0)+1|0;c[(R&p)>>2]=N;c[(m+(t<<2)&p)>>2]=N;t=t+1|0}while((t|0)!=(u|0))}while(0);M=z<<24>>24!=0;do if(M){N=wh(ma,108,Q,0,0)|0;L=c[(ma&p)+32>>2]|0}else{if(!da){L=0;N=0;break}N=wh(ma,22,c[(L&p)+4>>2]|0,0,0)|0;L=N}while(0);J=xs(ma)|0;do if(c[(Y&p)>>2]&1){w=(b[(X&o)>>1]|0)+1|0;H=e+60|0;v=c[(H&p)>>2]|0;G=e+56|0;u=c[(G&p)>>2]|0;if((u|0)<(w|0)){I=c[(R&p)>>2]|0;c[(R&p)>>2]=I+w;I=I+1|0}else{c[(H&p)>>2]=w+v;c[(G&p)>>2]=u-w;I=v}if((P|0)<0)wh(ma,25,-1,I,0)|0;else{if(M)wh(ma,47,Q,P,I)|0;else Rq(e,c[((c[(l&p)+4>>2]|0)+(P*20|0)&p)>>2]|0,I);w=wh(ma,77,I,0,0)|0;wh(ma,25,-1,I,0)|0;v=c[(ma&p)+32>>2]|0;if(v>>>0>w>>>0)c[((c[(ma&p)+4>>2]|0)+(w*20|0)&p)+8>>2]=v;c[((c[(ma&p)+24>>2]|0)&p)+88>>2]=v+-1;wh(ma,38,I,0,0)|0}v=b[(X&o)>>1]|0;if(v<<16>>16>0){D=M|(l|0)!=0;t=h+4|0;u=I+1|0;w=l+4|0;A=e+8|0;B=ka+4|0;C=0;do{j:do if($)z=C;else{y=c[(t&p)>>2]|0;if((y|0)<=0){z=0;break}x=c[(h&p)>>2]|0;r=0;while(1){z=r+1|0;if((c[(x+(r<<3)&p)+4>>2]|0)==(C|0)){z=r;break j}if((z|0)<(y|0))r=z;else break}}while(0);do if(D){if(U?(z|0)>=(c[(t&p)>>2]|0):0){_=213;break}if(M){wh(ma,47,Q,z,u+C|0)|0;break}else{Y=c[((c[(w&p)>>2]|0)+(z*20|0)&p)>>2]|0;r=u+C|0;x=c[(A&p)>>2]|0;Rq(e,Y,r);v=(c[(R&p)>>2]|0)+1|0;c[(R&p)>>2]=v;wh(x,33,r,v,0)|0;a[(Y&n)+38>>0]=a[(Y&n)>>0]|0;a[(Y&n)>>0]=-97;c[(Y&p)+28>>2]=v;Y=Y+4|0;c[(Y&p)>>2]=c[(Y&p)>>2]&-4097;break}}else _=213;while(0);if((_|0)==213){_=0;Rq(e,c[((c[(B&p)>>2]|0)+(C*24|0)&p)+4>>2]|0,u+C|0)}C=C+1|0;v=b[(X&o)>>1]|0}while((C|0)<(v<<16>>16|0))}if(!ha){wt(ma,ka,I+1|0);v=b[(X&o)>>1]|0}xt(e,ea,108,0,1,ka,I+-1-(v<<16>>16)|0,k,J);v=(b[(X&o)>>1]|0)+1|0;dt(e,I,v);if((c[(G&p)>>2]|0)>=(v|0))break;c[(G&p)>>2]=v;c[(H&p)>>2]=I}while(0);do if(!ha){if(a[(ga&n)>>0]&16)wh(ma,28,0,W,0)|0;k:do if((P|0)<=-1)if(!((a[(ga&n)>>0]&16|Z)<<24>>24)){wh(ma,74,c[(ja&p)>>2]|0,V,S)|0;I=1;break}else{wh(ma,28,0,V,0)|0;I=0;break}else{do if(M)wh(ma,47,Q,P,V)|0;else{if(da){wh(ma,33,P+O|0,V,0)|0;break}Rq(e,c[((c[(l&p)+4>>2]|0)+(P*20|0)&p)>>2]|0,V);if(!(a[((c[(ma&p)>>2]|0)&n)+65>>0]|0)){u=(c[(ma&p)+4>>2]|0)+(((c[(ma&p)+32>>2]|0)+-1|0)*20|0)|0;if(!u)break}else u=29120;if((a[(u&n)>>0]|0)!=28)break;if(a[(ga&n)>>0]&16)break;a[(u&n)>>0]=74;c[(u&p)+4>>2]=c[(ja&p)>>2];c[(u&p)+8>>2]=V;c[(u&p)+12>>2]=S;I=1;break k}while(0);if(!(a[(ga&n)>>0]&16)){u=wh(ma,77,V,0,0)|0;wh(ma,74,c[(ja&p)>>2]|0,V,S)|0;t=c[(ma&p)+32>>2]|0;if(t>>>0>u>>>0)c[((c[(ma&p)+4>>2]|0)+(u*20|0)&p)+8>>2]=t;c[((c[(ma&p)+24>>2]|0)&p)+88>>2]=t+-1}else wh(ma,76,V,(c[(ma&p)+32>>2]|0)+2|0,0)|0;wh(ma,38,V,0,0)|0;I=0}while(0);if((S|0)>0)wh(c[(e&p)+8>>2]|0,136,S,V,0)|0;if((b[(X&o)>>1]|0)>0){G=ka+36|0;H=ka+4|0;C=(s|0)==0;B=h+4|0;A=(O|0)==(T|0);s=l+4|0;t=e+23|0;u=ca+20|0;v=ca+4|0;E=ca+24|0;F=0;w=0;do{D=F+T|0;l:do if((F|0)==(b[(G&o)>>1]|0))wh(ma,29,D,0,0)|0;else{m:do if($)if(!(a[((c[(H&p)>>2]|0)+(F*24|0)&n)+23>>0]&2)){z=F-w|0;_=258;break}else{w=w+1|0;break}else{y=c[(B&p)>>2]|0;if((y|0)<=0){z=0;_=258;break}x=c[(h&p)>>2]|0;r=0;while(1){z=r+1|0;if((c[(x+(r<<3)&p)+4>>2]|0)==(F|0)){z=r;_=258;break m}if((z|0)<(y|0))r=z;else{_=258;break}}}while(0);do if((_|0)==258){_=0;if((z|0)<0|C)break;if(U?(z|0)>=(c[(B&p)>>2]|0):0)break;if(M){wh(ma,47,Q,z,D)|0;break l}if(!da){Rq(e,c[((c[(s&p)>>2]|0)+(z*20|0)&p)>>2]|0,D);break l}if(A)break l;wh(ma,34,z+O|0,D,0)|0;break l}while(0);z=c[((c[(H&p)>>2]|0)+(F*24|0)&p)+4>>2]|0;do if(a[(t&n)>>0]|0){c[(ca&p)>>2]=0;c[(ca&p)+4>>2]=0;c[(ca&p)+8>>2]=0;c[(ca&p)+12>>2]=0;c[(ca&p)+16>>2]=0;c[(ca&p)+20>>2]=0;a[(u&n)>>0]=1;c[(ca&p)>>2]=78;c[(v&p)>>2]=79;c[(E&p)>>2]=0;rs(ca,z)|0;if(!(a[(u&n)>>0]|0))break;Gt(e,z,D,0);break l}while(0);Rq(e,z,D)}while(0);F=F+1|0}while((F|0)<(b[(X&o)>>1]|0))}if(!(a[(ga&n)>>0]&16)){yt(e,ka,m,c[(ja&p)>>2]|0,c[(la&p)>>2]|0,W,0,P>>>31&255^1,k&255,J,ba);zt(e,ka,0,W,0,0);Bt(e,ka,c[(ja&p)>>2]|0,c[(la&p)>>2]|0,W,m,0,I,(c[(ba&p)>>2]|0)==0&1);break}u=c[(ka&p)+60>>2]|0;n:do if(!u)u=0;else while(1){if((c[(u&p)>>2]|0)==(na|0))break n;u=c[(u&p)+24>>2]|0;if(!u){u=0;break}}while(0);qt(e,ka);xh(ma,wh(ma,15,1,(b[(X&o)>>1]|0)+2|0,W)|0,u,-10);t=c[(ma&p)+4>>2]|0;if(t)a[(t+(((c[(ma&p)+32>>2]|0)+-1|0)*20|0)&n)+3>>0]=(k|0)==10?2:k&255;ca=c[(aa&p)>>2]|0;a[(((ca|0)==0?e:ca)&n)+21>>0]=1}while(0);if(c[(K&p)>>2]&128)wh(ma,37,q,1,0)|0;if(ea)xt(e,ea,108,0,2,ka,V+-1-(b[(X&o)>>1]|0)|0,k,J);u=ma+24|0;t=c[(u&p)>>2]|0;r=~J;do if((J|0)<0){s=c[(t&p)+112>>2]|0;if(!s)break;c[(s+(r<<2)&p)>>2]=c[(ma&p)+32>>2]}while(0);s=ma+32|0;c[(t&p)+88>>2]=(c[(s&p)>>2]|0)+-1;do if(M){wh(ma,9,Q,L,0)|0;s=c[(s&p)>>2]|0;if(s>>>0>N>>>0)c[((c[(ma&p)+4>>2]|0)+(N*20|0)&p)+8>>2]=s;c[((c[(u&p)>>2]|0)&p)+88>>2]=s+-1;wh(ma,61,Q,0,0)|0}else{if(!da)break;wh(ma,16,0,L,0)|0;s=c[(s&p)>>2]|0;if(s>>>0>N>>>0)c[((c[(ma&p)+4>>2]|0)+(N*20|0)&p)+8>>2]=s;c[((c[(u&p)>>2]|0)&p)+88>>2]=s+-1}while(0);if((a[(ga&n)>>0]&16)!=0|ha)break;r=c[(ja&p)>>2]|0;if((r|0)<(c[(la&p)>>2]|0))wh(ma,61,r,0,0)|0;r=c[(ka&p)+8>>2]|0;if(!r)break;else s=0;while(1){wh(ma,61,(c[(la&p)>>2]|0)+s|0,0,0)|0;r=c[(r&p)+20>>2]|0;if(!r)break;else s=s+1|0}}while(0);if((a[(ia&n)>>0]|0)==0?(c[(e&p)+412>>2]|0)==0:0)st(e);if((((c[(na&p)+24>>2]&128|0)!=0?(a[(ia&n)>>0]|0)==0:0)?(c[(e&p)+412>>2]|0)==0:0)?(wh(ma,35,q,1,0)|0,iq(ma,1),(a[((c[(ma&p)>>2]|0)&n)+65>>0]|0)==0):0)Xg(c[(ma&p)+16>>2]|0,33488,-1,1,0)|0}else m=0}else m=0}else{m=0;l=0}while(0);Do(na,f);Nk(na,l);Mk(na,g,1);Hk(na,h);mg(na,m);i=oa;return}function ur(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0;h=i;i=i+16|0;if((i|0)>=(j|0))fa();f=h;if(!d){d=mh(b,8,0)|0;if(!d)d=0;else{g=d;k=g;a[(k&n)>>0]=0;a[(k&n)+1>>0]=0;a[(k&n)+2>>0]=0;a[(k&n)+3>>0]=0;g=g+4|0;a[(g&n)>>0]=0;a[(g&n)+1>>0]=0;a[(g&n)+2>>0]=0;a[(g&n)+3>>0]=0;g=4}}else g=4;do if((g|0)==4){c[(d&p)>>2]=Ht(b,c[(d&p)>>2]|0,8,d+4|0,f)|0;f=c[(f&p)>>2]|0;if((f|0)<0){Hk(b,d);d=0;break}else{b=Wq(b,e)|0;c[((c[(d&p)>>2]|0)+(f<<3)&p)>>2]=b;break}}while(0);i=h;return d|0}function vr(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0;if((c[(d&p)+4>>2]|0)!=0?(f=nr(c[(a&p)>>2]|0,95,d,e)|0,(f|0)!=0):0){c[(f&p)+12>>2]=b;b=f+4|0;c[(b&p)>>2]=c[(b&p)>>2]|4352;b=f}return b|0}function wr(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;e=c[(a&p)>>2]|0;d=nr(e,153,d,1)|0;if(!d){Nk(e,b);d=0}else{c[(d&p)+20>>2]=b;yr(a,d)}return d|0}function xr(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;b=c[(b&p)>>2]|0;if((d|0)!=0&(e|0)!=0?(a[(d&n)>>0]|0)==101:0){a[(e&n)>>0]=f;f=e+16|0;Gk(b,c[(f&p)>>2]|0);c[(f&p)>>2]=0}return}function yr(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;f=i;i=i+16|0;if((i|0)>=(j|0))fa();e=f;if((c[(a&p)+64>>2]|0)==0?(It(b),d=c[((c[(a&p)>>2]|0)&p)+100>>2]|0,(d|0)<(c[(b&p)+24>>2]|0)):0){c[(e&p)>>2]=d;th(a,27152,e)}i=f;return}function zr(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,i=0;d=c[(a&p)>>2]|0;i=d+20|0;e=c[(i&p)>>2]|0;if((e|0)>0){g=d+16|0;h=(b|0)==0;d=e;f=0;do{e=c[(g&p)>>2]|0;do if(c[(e+(f<<4)&p)+4>>2]|0){if(!h?(dd(b,c[(e+(f<<4)&p)>>2]|0)|0)!=0:0)break;Ar(a,f);d=c[(i&p)>>2]|0}while(0);f=f+1|0}while((f|0)<(d|0))}return}function Ar(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;f=c[(a&p)+408>>2]|0;f=(f|0)==0?a:f;a=f+332|0;d=c[(a&p)>>2]|0;e=1<>2]|0,c[(a&p)>>2]=d|e,c[(f+(b<<2)&p)+336>>2]=c[(c[((c[(g&p)+16>>2]|0)+(b<<4)&p)+12>>2]&p)>>2],(b|0)==1):0)_k(f)|0;return}function Br(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,o=0,q=0;q=i;i=i+128|0;if((i|0)>=(j|0))fa();f=q+8|0;o=q;m=q+24|0;c[(o&p)>>2]=0;k=c[(b&p)>>2]|0;if((c[(b&p)+64>>2]|0)==0?(c[(f&p)>>2]=e,l=Wk(k,d,f)|0,(l|0)!=0):0){d=b+18|0;a[(d&n)>>0]=(a[(d&n)>>0]|0)+1<<24>>24;e=b+440|0;f=m+0|0;g=e+0|0;h=f+96|0;do{a[(f&n)>>0]=a[(g&n)>>0]|0;f=f+1|0;g=g+1|0}while((f|0)<(h|0));f=e+0|0;h=f+96|0;do{c[(f&p)>>2]=0;f=f+4|0}while((f|0)<(h|0));Lh(b,l,o)|0;mg(k,c[(o&p)>>2]|0);mg(k,l);f=e+0|0;g=m+0|0;h=f+96|0;do{a[(f&n)>>0]=a[(g&n)>>0]|0;f=f+1|0;g=g+1|0}while((f|0)<(h|0));a[(d&n)>>0]=(a[(d&n)>>0]|0)+-1<<24>>24}i=q;return}function Cr(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0;k=i;i=i+48|0;if((i|0)>=(j|0))fa();g=k;h=k+16|0;b=c[((c[((c[(a&p)>>2]|0)&p)+16>>2]|0)+(b<<4)&p)>>2]|0;f=1;do{c[(g&p)>>2]=f;ad(24,h,33272,g)|0;if(_h(c[(a&p)>>2]|0,h,b)|0){c[(g&p)>>2]=b;c[(g&p)+4>>2]=h;c[(g&p)+8>>2]=d;c[(g&p)+12>>2]=e;Br(a,28840,g)}f=f+1|0}while((f|0)!=5);i=k;return}function Dr(b,d){b=b|0;d=d|0;var e=0,f=0;e=b+19|0;f=a[(e&n)>>0]|0;if(!(f<<24>>24)){f=b+72|0;e=(c[(f&p)>>2]|0)+1|0;c[(f&p)>>2]=e}else{f=f+-1<<24>>24;a[(e&n)>>0]=f;e=c[(b+((f&255)<<2)&p)+24>>2]|0}f=c[(b&p)+8>>2]|0;wh(f,25,(c[(c[((c[((c[(b&p)>>2]|0)&p)+16>>2]|0)+(d<<4)&p)+12>>2]&p)>>2]|0)+1|0,e,0)|0;wh(f,52,d,1,e)|0;_r(b,e);return}function Er(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0;l=i;i=i+32|0;if((i|0)>=(j|0))fa();k=l;h=Oq(b)|0;f=b+19|0;g=a[(f&n)>>0]|0;if(!(g<<24>>24)){g=b+72|0;f=(c[(g&p)>>2]|0)+1|0;c[(g&p)>>2]=f}else{g=g+-1<<24>>24;a[(f&n)>>0]=g;f=c[(b+((g&255)<<2)&p)+24>>2]|0}wh(h,117,d,f,e)|0;g=c[(b&p)+408>>2]|0;a[(((g|0)==0?b:g)&n)+21>>0]=1;c[(k&p)>>2]=c[((c[((c[(b&p)>>2]|0)&p)+16>>2]|0)+(e<<4)&p)>>2];c[(k&p)+4>>2]=(e|0)==1?13184:13208;c[(k&p)+8>>2]=d;c[(k&p)+12>>2]=f;c[(k&p)+16>>2]=f;Br(b,33216,k);_r(b,f);i=l;return}function Fr(f,g,h,k,l){f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;var m=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;X=i;i=i+96|0;if((i|0)>=(j|0))fa();G=X+24|0;w=X+80|0;q=X+64|0;A=X+16|0;t=X+60|0;u=X+56|0;O=X+52|0;N=X+48|0;z=X+44|0;D=X+40|0;E=X+36|0;F=X+32|0;x=X+8|0;s=X;W=c[(f&p)>>2]|0;T=Oq(f)|0;do if((T|0)!=0?(S=T+88|0,b[(S&o)>>1]=b[(S&o)>>1]|16,S=f+72|0,c[(S&p)>>2]=2,Q=er(f,g,h,w)|0,(Q|0)>=0):0){R=W+16|0;C=c[(R&p)>>2]|0;if((Q|0)==1?(_k(f)|0)!=0:0)break;V=Wq(W,c[(w&p)>>2]|0)|0;if(V){if(!l)U=Wq(W,k)|0;else{c[(G&p)>>2]=k;U=uh(W,30104,G)|0}B=h+4|0;if(!(c[(B&p)>>2]|0))L=0;else L=c[(C+(Q<<4)&p)>>2]|0;a:do if(!(Sq(f,19,V,U,L)|0)){c[(q&p)>>2]=0;c[(q&p)+4>>2]=V;c[(q&p)+8>>2]=U;c[(q&p)+12>>2]=0;r=W+452|0;c[(r&p)>>2]=0;g=cg(W,L,14,q)|0;if(!g){k=c[(q&p)>>2]|0;if(!k)break;m=(c[(S&p)>>2]|0)+1|0;c[(S&p)>>2]=m;xh(T,wh(T,97,0,m,0)|0,k,0);iq(T,1);if(!(a[((c[(T&p)>>2]|0)&n)+65>>0]|0))Xg(c[(T&p)+16>>2]|0,30112,-1,1,0)|0;wh(T,35,m,1,0)|0;Wc(c[(q&p)>>2]|0);break}else if((g|0)==12){w=0;q=56;b:while(1){while(1){l=(w+q|0)/2|0;g=c[((l*12|0)&p)+30120>>2]|0;k=dd(V,g)|0;if(!k){w=l;break b}if((k|0)<0){g=l;break}if((l|0)<(q|0))w=l+1|0;else break a}g=g+-1|0;if((w|0)>(g|0))break a;else q=g}if((a[((w*12|0)&n)+30125>>0]&1)!=0?(Gn(f)|0)!=0:0)break;do switch(d[((w*12|0)&n)+30124>>0]|0){case 10:{q=1<>2]=c[(F&p)>>2]|q;if(U){c[(G&p)>>2]=0;Dn(U,G)|0;k=c[(G&p)>>2]|0;if((k|0)<=-1)k=(k|0)==-2147483648?2147483647:0-k|0;G=c[(f&p)+408>>2]|0;Ar(f,Q);G=((G|0)==0?f:G)+328|0;c[(G&p)>>2]=c[(G&p)>>2]|q;wh(T,25,k,1,0)|0;wh(T,52,Q,3,1)|0;c[((c[(C+(Q<<4)&p)+12>>2]|0)&p)+80>>2]=k;pq(c[(C+(Q<<4)&p)+4>>2]|0,k);break a}iq(T,1);if(!(a[((c[(T&p)>>2]|0)&n)+65>>0]|0))Xg(c[(T&p)+16>>2]|0,30848,-1,1,0)|0;c[(S&p)>>2]=(c[(S&p)>>2]|0)+2;k=yh(T,9,30808)|0;l=c[(T&p)+32>>2]|0;if(l>>>0>k>>>0)c[((c[(T&p)+4>>2]|0)+(k*20|0)&p)+4>>2]=Q;m=k+1|0;if(l>>>0>m>>>0)c[((c[(T&p)+4>>2]|0)+(m*20|0)&p)+4>>2]=Q;m=k+6|0;if(l>>>0<=m>>>0)break a;c[((c[(T&p)+4>>2]|0)+(m*20|0)&p)+4>>2]=2e3;break a}case 19:{k=c[(c[((c[(C+(Q<<4)&p)+4>>2]|0)&p)+4>>2]&p)>>2]|0;G=A;c[(G&p)>>2]=-2;c[(G&p)+4>>2]=-1;if(U){ji(U,A)|0;m=A;l=c[(m&p)>>2]|0;m=c[(m&p)+4>>2]|0;if((m|0)<-1|(m|0)==-1&l>>>0<4294967295){l=A;c[(l&p)>>2]=-1;c[(l&p)+4>>2]=-1;l=-1;m=-1}G=k+160|0;c[(G&p)>>2]=l;c[(G&p)+4>>2]=m;k=c[(k&p)+208>>2]|0;if(k){G=k+16|0;c[(G&p)>>2]=l;c[(G&p)+4>>2]=m}}else{m=k+160|0;l=c[(m&p)>>2]|0;m=c[(m&p)+4>>2]|0}G=A;c[(G&p)>>2]=l;c[(G&p)+4>>2]=m;Jt(f,30952,l,m);break a}case 28:{q=Oq(f)|0;iq(q,4);c[(S&p)>>2]=4;Ar(f,Q);if((((a[((c[(q&p)>>2]|0)&n)+65>>0]|0)==0?(Xg(c[(q&p)+16>>2]|0,31232,-1,1,0)|0,(a[((c[(q&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(q&p)+16>>2]|0)+40|0,20632,-1,1,0)|0,(a[((c[(q&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(q&p)+16>>2]|0)+80|0,31240,-1,1,0)|0,(a[((c[(q&p)>>2]|0)&n)+65>>0]|0)==0):0)Xg((c[(q&p)+16>>2]|0)+120|0,31248,-1,1,0)|0;l=c[((c[(C+(Q<<4)&p)+12>>2]|0)&p)+16>>2]|0;if(!l)break a;do{m=c[(l&p)+8>>2]|0;G=c[(m&p)>>2]|0;xh(q,wh(q,97,0,1,0)|0,G,0);wh(q,28,0,2,0)|0;G=Ws(b[(m&o)+42>>1]|0)|0;wh(q,25,G,3,0)|0;G=Ws(b[(m&o)+28>>1]|0)|0;wh(q,25,G,4,0)|0;wh(q,35,1,4,0)|0;m=c[(m&p)+8>>2]|0;if(m)do{G=c[(m&p)>>2]|0;xh(q,wh(q,97,0,2,0)|0,G,0);G=Ws(b[(m&o)+44>>1]|0)|0;wh(q,25,G,3,0)|0;G=Ws(b[(c[(m&p)+8>>2]&o)>>1]|0)|0;wh(q,25,G,4,0)|0;wh(q,35,1,4,0)|0;m=c[(m&p)+20>>2]|0}while((m|0)!=0);l=c[(l&p)>>2]|0}while((l|0)!=0);break}case 15:{if(!U)break a;s=bq(W,U,L)|0;if(!s)break a;w=(c[((w*12|0)&p)+30128>>2]|0)==0;t=s+46|0;G=w?3:6;r=b[((w?t:s+48|0)&o)>>1]|0;u=r&65535;c[(S&p)>>2]=G;q=c[(s&p)+12>>2]|0;iq(T,G);Ar(f,Q);if(((a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0?(Xg(c[(T&p)+16>>2]|0,31256,-1,1,0)|0,(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(T&p)+16>>2]|0)+40|0,31176,-1,1,0)|0,(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0):0)Xg((c[(T&p)+16>>2]|0)+80|0,31184,-1,1,0)|0;if(((!w?(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0:0)?(Xg((c[(T&p)+16>>2]|0)+120|0,31264,-1,1,0)|0,(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(T&p)+16>>2]|0)+160|0,31272,-1,1,0)|0,(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0):0)Xg((c[(T&p)+16>>2]|0)+200|0,31280,-1,1,0)|0;if(!(r<<16>>16))break a;m=s+4|0;l=s+28|0;k=s+32|0;s=q+4|0;q=0;do{G=b[((c[(m&p)>>2]|0)+(q<<1)&o)>>1]|0;wh(T,25,q,1,0)|0;r=G<<16>>16;wh(T,25,r,2,0)|0;if(G<<16>>16<0)wh(T,28,0,3,0)|0;else{G=c[((c[(s&p)>>2]|0)+(r*24|0)&p)>>2]|0;xh(T,wh(T,97,0,3,0)|0,G,0)}if(!w){wh(T,25,d[((c[(l&p)>>2]|0)+q&n)>>0]|0,4,0)|0;G=c[((c[(k&p)>>2]|0)+(q<<2)&p)>>2]|0;xh(T,wh(T,97,0,5,0)|0,G,0);wh(T,25,(q|0)<(e[(t&o)>>1]|0)&1,6,0)|0}wh(T,35,1,c[(S&p)>>2]|0,0)|0;q=q+1|0}while((q|0)<(u|0));break}case 22:{Ar(f,Q);k=(c[(S&p)>>2]|0)+1|0;c[(S&p)>>2]=k;if((a[(V&n)>>0]&-33)<<24>>24==80)wh(T,153,Q,k,0)|0;else{c[(G&p)>>2]=0;if(U){Dn(U,G)|0;m=c[(G&p)>>2]|0;if((m|0)<=-1)m=(m|0)==-2147483648?2147483647:0-m|0}else m=0;wh(T,154,Q,k,m)|0}wh(T,35,k,1,0)|0;iq(T,1);if(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)break a;Xg(c[(T&p)+16>>2]|0,V,-1,1,-1)|0;break a}case 24:{l=c[(C+(Q<<4)&p)+4>>2]|0;if(U){c[(G&p)>>2]=0;Dn(U,G)|0;G=c[(G&p)>>2]|0;c[(W&p)+72>>2]=G;if((xg(l,G,-1,0)|0)!=7)break a;a[(W&n)+65>>0]=1;break a}if(!l){l=0;m=0}else{m=c[((c[(l&p)+4>>2]|0)&p)+32>>2]|0;l=m;m=((m|0)<0)<<31>>31}Jt(f,30864,l,m);break a}case 25:{l=c[(C+(Q<<4)&p)+4>>2]|0;if(U){m=(ii(U,1,0)|0)<<24>>24!=0&1;if((c[(B&p)>>2]|0)==0?(y=W+20|0,(c[(y&p)>>2]|0)>0):0){k=0;do{so(c[((c[(R&p)>>2]|0)+(k<<4)&p)+4>>2]|0,m)|0;k=k+1|0}while((k|0)<(c[(y&p)>>2]|0))}}else m=-1;G=so(l,m)|0;Jt(f,30880,G,((G|0)<0)<<31>>31);break a}case 18:{iq(T,1);if(!(a[((c[(T&p)>>2]|0)&n)+65>>0]|0))Xg(c[(T&p)+16>>2]|0,30936,-1,1,0)|0;c:do if(U){k=U;while(1)if(!(a[(k&n)>>0]|0))break;else k=k+1|0;m=k-U&1073741823;k=0;while(1){if(!(Fc(U,c[(k<<2&p)+32216>>2]|0,m)|0))break;k=k+1|0;if((k|0)==6){P=91;break c}}if((k|0)!=-1)q=Q;else P=91}else P=91;while(0);if((P|0)==91)if(!(c[(B&p)>>2]|0)){c[(B&p)>>2]=1;k=-1;q=0}else{k=-1;q=Q}m=c[(W&p)+20>>2]|0;if((m|0)>0){l=T+96|0;do{m=m+-1|0;do if(c[((c[(R&p)>>2]|0)+(m<<4)&p)+4>>2]|0){if((m|0)!=(q|0)?(c[(B&p)>>2]|0)!=0:0)break;c[(l&p)>>2]=c[(l&p)>>2]|1<0)}wh(T,35,1,1,0)|0;break a}case 32:{if(!U){if(!(c[2708]|0))break a;iq(T,1);if(!(a[((c[(T&p)>>2]|0)&n)+65>>0]|0))Xg(c[(T&p)+16>>2]|0,31048,-1,1,0)|0;G=c[2708]|0;xh(T,wh(T,97,0,1,0)|0,G,0);wh(T,35,1,1,0)|0;break a}if((a[(U&n)>>0]|0)!=0?(F=c[(W&p)>>2]|0,F=(pc[c[(F&p)+32>>2]&31](F,U,1,u)|0)!=0,F|(c[(u&p)>>2]|0)==0):0){th(f,31072,G);break a}if((d[(W&n)+64>>0]|0)<2)Kt(f)|0;Wc(c[2708]|0);if(!(a[(U&n)>>0]|0)){c[2708]=0;break a}else{c[(G&p)>>2]=U;c[2708]=_c(10344,G)|0;break a}}case 14:{if(!((U|0)!=0?(G=(Dn(U,t)|0)==0,m=c[(t&p)>>2]|0,!(G|(m|0)<1)):0)){c[(t&p)>>2]=2147483647;m=2147483647}l=c[(f&p)+408>>2]|0;Ar(f,Q);l=((l|0)==0?f:l)+328|0;c[(l&p)>>2]=c[(l&p)>>2]|1<>2]|0;if(l>>>0>m>>>0)c[((c[(T&p)+4>>2]|0)+(m*20|0)&p)+8>>2]=l;c[((c[(T&p)+24>>2]|0)&p)+88>>2]=l+-1;break a}case 30:{if(!U)break a;h=_h(W,U,L)|0;if(!h)break a;k=c[(h&p)+8>>2]|0;d:do if(!k)k=0;else while(1){if((a[(k&n)+51>>0]&3)==2)break d;k=c[(k&p)+20>>2]|0;if(!k){k=0;break}}while(0);iq(T,6);c[(S&p)>>2]=6;Ar(f,Q);do if((((a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0?(Xg(c[(T&p)+16>>2]|0,31176,-1,1,0)|0,(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(T&p)+16>>2]|0)+40|0,31184,-1,1,0)|0,(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(T&p)+16>>2]|0)+80|0,31192,-1,1,0)|0,(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0):0){Xg((c[(T&p)+16>>2]|0)+120|0,31200,-1,1,0)|0;if(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)break;Xg((c[(T&p)+16>>2]|0)+160|0,31208,-1,1,0)|0;if(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)break;Xg((c[(T&p)+16>>2]|0)+200|0,31224,-1,1,0)|0}while(0);hr(f,h)|0;t=h+38|0;m=b[(t&o)>>1]|0;if(m<<16>>16<=0)break a;u=(k|0)==0;l=k+4|0;w=0;r=0;g=c[(h&p)+4>>2]|0;while(1){s=g+23|0;if(!(a[(s&n)>>0]&2)){wh(T,25,w-r|0,1,0)|0;q=c[(g&p)>>2]|0;xh(T,wh(T,97,0,2,0)|0,q,0);q=c[(g&p)+12>>2]|0;xh(T,wh(T,97,0,3,0)|0,(q|0)==0?10360:q,0);wh(T,25,(a[(g&n)+20>>0]|0)!=0&1,4,0)|0;q=c[(g&p)+8>>2]|0;if(!q)wh(T,28,0,5,0)|0;else xh(T,wh(T,97,0,5,0)|0,q,0);k=a[(s&n)>>0]&1;e:do if(k<<24>>24==0|u)q=(k^1)&255^1;else{q=b[(t&o)>>1]|0;if(q<<16>>16<1){q=1;break}m=c[(l&p)>>2]|0;s=q<<16>>16;k=1;while(1){q=k+1|0;if((b[(m+(k+-1<<1)&o)>>1]|0)==(w|0)){q=k;break e}if((k|0)<(s|0))k=q;else break}}while(0);wh(T,25,q,6,0)|0;wh(T,35,1,6,0)|0;m=b[(t&o)>>1]|0}else r=r+1|0;w=w+1|0;if((w|0)>=(m<<16>>16|0))break;else g=g+24|0}break}case 2:{if(!U){Jt(f,g,(c[((w*12|0)&p)+30128>>2]&c[(W&p)+24>>2]|0)!=0&1,0);break a}l=c[((w*12|0)&p)+30128>>2]|0;l=(a[(W&n)+63>>0]|0)==0?l&-524289:l;if(!((ii(U,1,0)|0)<<24>>24)){G=W+24|0;c[(G&p)>>2]=c[(G&p)>>2]&~l;if((l|0)==16777216){G=W+512|0;c[(G&p)>>2]=0;c[(G&p)+4>>2]=0}}else{G=W+24|0;c[(G&p)>>2]=c[(G&p)>>2]|l}wh(T,144,0,0,0)|0;Lt(W);break a}case 5:{if(!U)break a;G=(ii(U,1,0)|0)<<24>>24!=0;F=G?32e3:19240;Qh(W,19248,2,1,F,40,0,0,0)|0;Qh(W,19248,3,1,F,40,0,0,0)|0;Qh(W,19232,2,1,10352,40,0,0,0)|0;Ot(W,19232,12);Ot(W,19248,G?12:4);break a}case 17:{g=a[(V&n)>>0]|0;A=(c[(h&p)>>2]|0)==0?-1:Q;c[(S&p)>>2]=6;iq(T,1);if(!(a[((c[(T&p)>>2]|0)&n)+65>>0]|0))Xg(c[(T&p)+16>>2]|0,31464,-1,1,0)|0;c[(z&p)>>2]=100;if(U){Dn(U,z)|0;s=c[(z&p)>>2]|0;if((s|0)<1){c[(z&p)>>2]=100;s=100}}else s=100;wh(T,25,s,1,0)|0;M=W+20|0;w=c[(M&p)>>2]|0;if((w|0)>0){L=(A|0)<0;m=T+32|0;I=T+4|0;H=T+24|0;N=(g&-33)<<24>>24==81;O=0;do{if(L|(O|0)==(A|0)){Ar(f,O);w=wh(T,137,1,0,0)|0;wh(T,24,0,0,0)|0;l=c[(m&p)>>2]|0;if(l>>>0>w>>>0)c[((c[(I&p)>>2]|0)+(w*20|0)&p)+8>>2]=l;c[((c[(H&p)>>2]|0)&p)+88>>2]=l+-1;k=(c[((c[(R&p)>>2]|0)+(O<<4)&p)+12>>2]|0)+16|0;w=c[(k&p)>>2]|0;if(!w)g=0;else{g=0;do{l=c[(w&p)+8>>2]|0;if(!(a[(l&n)+44>>0]&32)){wh(T,25,c[(l&p)+32>>2]|0,g+2|0,0)|0;g=g+1|0}l=c[(l&p)+8>>2]|0;if(l)do{wh(T,25,c[(l&p)+40>>2]|0,g+2|0,0)|0;g=g+1|0;l=c[(l&p)+20>>2]|0}while((l|0)!=0);w=c[(w&p)>>2]|0}while((w|0)!=0)}C=c[(S&p)>>2]|0;w=g+8|0;c[(S&p)>>2]=(C|0)>(w|0)?C:w;wh(T,127,2,g,1)|0;w=c[(I&p)>>2]|0;if(w)a[(w+(((c[(m&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=O;g=wh(T,76,2,0,0)|0;c[(G&p)>>2]=c[((c[(R&p)>>2]|0)+(O<<4)&p)>>2];w=uh(W,31480,G)|0;xh(T,wh(T,97,0,3,0)|0,w,-1);wh(T,32,2,4,1)|0;wh(T,94,4,3,2)|0;wh(T,35,2,1,0)|0;w=c[(m&p)>>2]|0;if(w>>>0>g>>>0)c[((c[(I&p)>>2]|0)+(g*20|0)&p)+8>>2]=w;c[((c[(H&p)>>2]|0)&p)+88>>2]=w+-1;w=c[(k&p)>>2]|0;if(!((w|0)==0|N))do{x=c[(w&p)+8>>2]|0;J=x+8|0;g=c[(J&p)>>2]|0;do if(g){f:do if(!(a[(x&n)+44>>0]&32))g=0;else while(1){if((a[(g&n)+51>>0]&3)==2)break f;g=c[(g&p)+20>>2]|0;if(!g){g=0;break}}while(0);l=wh(T,137,1,0,0)|0;wh(T,24,0,0,0)|0;k=c[(m&p)>>2]|0;if(k>>>0>l>>>0)c[((c[(I&p)>>2]|0)+(l*20|0)&p)+8>>2]=k;c[((c[(H&p)>>2]|0)&p)+88>>2]=k+-1;at(f);pt(f,x,54,1,0,D,E)|0;wh(T,25,0,7,0)|0;k=c[(J&p)>>2]|0;if(!k)l=8;else{l=0;while(1){wh(T,25,0,l+8|0,0)|0;k=c[(k&p)+20>>2]|0;if(!k)break;else l=l+1|0}l=l+9|0}K=c[(S&p)>>2]|0;c[(S&p)>>2]=(K|0)>(l|0)?K:l;wh(T,108,c[(D&p)>>2]|0,0,0)|0;K=wh(T,37,7,1,0)|0;u=x+38|0;l=b[(u&o)>>1]|0;if(l<<16>>16>0){h=x+36|0;v=x+4|0;t=0;do{do if((t|0)!=(b[(h&o)>>1]|0)){if(!(a[((c[(v&p)>>2]|0)+(t*24|0)&n)+20>>0]|0))break;nt(T,x,c[(D&p)>>2]|0,t,3);l=c[(I&p)>>2]|0;if(l)a[(l+(((c[(m&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=-128;l=wh(T,77,3,0,0)|0;wh(T,37,1,-1,0)|0;q=c[((c[(v&p)>>2]|0)+(t*24|0)&p)>>2]|0;c[(G&p)>>2]=c[(x&p)>>2];c[(G&p)+4>>2]=q;q=uh(W,31504,G)|0;xh(T,wh(T,97,0,3,0)|0,q,-1);wh(T,35,3,1,0)|0;q=wh(T,137,1,0,0)|0;wh(T,24,0,0,0)|0;r=c[(m&p)>>2]|0;if(r>>>0>l>>>0)c[((c[(I&p)>>2]|0)+(l*20|0)&p)+8>>2]=r;l=r+-1|0;k=(c[(H&p)>>2]|0)+88|0;c[(k&p)>>2]=l;if(r>>>0>q>>>0)c[((c[(I&p)>>2]|0)+(q*20|0)&p)+8>>2]=r;c[(k&p)>>2]=l;l=b[(u&o)>>1]|0}while(0);t=t+1|0}while((t|0)<(l<<16>>16|0))}l=c[(J&p)>>2]|0;if(l){z=x+4|0;y=0;r=0;k=-1;while(1){q=xs(T)|0;if((g|0)!=(l|0)){k=Pt(f,l,c[(D&p)>>2]|0,0,0,F,r,k)|0;wh(T,37,y+8|0,1,0)|0;x=e[(l&o)+48>>1]|0;q=wh(T,69,(c[(E&p)>>2]|0)+y|0,q,k)|0;xh(T,q,x,-14);wh(T,37,1,-1,0)|0;xh(T,wh(T,97,0,3,0)|0,31528,-2);wh(T,94,7,3,3)|0;xh(T,wh(T,97,0,4,0)|0,31536,-2);wh(T,94,4,3,3)|0;x=c[(l&p)>>2]|0;v=wh(T,97,0,4,0)|0;xh(T,v,x,0);wh(T,94,4,3,3)|0;wh(T,35,3,1,0)|0;x=wh(T,137,1,0,0)|0;wh(T,24,0,0,0)|0;r=c[(m&p)>>2]|0;if(r>>>0>q>>>0)c[((c[(I&p)>>2]|0)+(q*20|0)&p)+8>>2]=r;q=c[(H&p)>>2]|0;c[(q&p)+88>>2]=r+-1;if(a[(l&n)+50>>0]|0){h=xs(T)|0;u=l+46|0;q=b[(u&o)>>1]|0;if(q<<16>>16){t=l+4|0;r=0;do{if(!(a[((c[(z&p)>>2]|0)+((b[((c[(t&p)>>2]|0)+(r<<1)&o)>>1]|0)*24|0)&n)+20>>0]|0)){wh(T,76,r+k|0,h,0)|0;q=b[(u&o)>>1]|0}r=r+1|0}while((r|0)<(q&65535|0))}q=wh(T,9,(c[(E&p)>>2]|0)+y|0,0,0)|0;wh(T,16,0,h,0)|0;r=c[(m&p)>>2]|0;if(r>>>0>q>>>0)c[((c[(I&p)>>2]|0)+(q*20|0)&p)+8>>2]=r;c[((c[(H&p)>>2]|0)&p)+88>>2]=r+-1;q=e[(u&o)>>1]|0;xh(T,wh(T,114,(c[(E&p)>>2]|0)+y|0,h,k)|0,q,-14);wh(T,37,1,-1,0)|0;xh(T,wh(T,97,0,3,0)|0,31560,-2);wh(T,16,0,v,0)|0;q=c[(H&p)>>2]|0;t=~h;do if((h|0)<0){r=c[(q&p)+112>>2]|0;if(!r)break;c[(r+(t<<2)&p)>>2]=c[(m&p)>>2]}while(0);r=c[(m&p)>>2]|0;c[(q&p)+88>>2]=r+-1}if(r>>>0>x>>>0)c[((c[(I&p)>>2]|0)+(x*20|0)&p)+8>>2]=r;c[(q&p)+88>>2]=r+-1;Qt(f,c[(F&p)>>2]|0);r=l}l=c[(l&p)+20>>2]|0;if(!l)break;else y=y+1|0}}wh(T,9,c[(D&p)>>2]|0,K,0)|0;l=K+-1|0;k=c[(m&p)>>2]|0;if(k>>>0>l>>>0)c[((c[(I&p)>>2]|0)+(l*20|0)&p)+8>>2]=k;c[((c[(H&p)>>2]|0)&p)+88>>2]=k+-1;xh(T,wh(T,97,0,2,0)|0,31592,-2);l=c[(J&p)>>2]|0;if(!l)break;else q=0;while(1){if((g|0)!=(l|0)){k=c[(m&p)>>2]|0;wh(T,137,1,k+2|0,0)|0;wh(T,24,0,0,0)|0;wh(T,50,(c[(E&p)>>2]|0)+q|0,3,0)|0;wh(T,79,q+8|0,k+8|0,3)|0;k=c[(I&p)>>2]|0;if(k)a[(k+(((c[(m&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=-112;wh(T,37,1,-1,0)|0;C=c[(l&p)>>2]|0;xh(T,wh(T,97,0,3,0)|0,C,0);wh(T,94,3,2,7)|0;wh(T,35,7,1,0)|0}l=c[(l&p)+20>>2]|0;if(!l)break;else q=q+1|0}}while(0);w=c[(w&p)>>2]|0}while((w|0)!=0);w=c[(M&p)>>2]|0}O=O+1|0}while((O|0)<(w|0))}else m=T+32|0;l=yh(T,3,31448)|0;m=c[(m&p)>>2]|0;if(m>>>0>l>>>0){c[((c[(T&p)+4>>2]|0)+(l*20|0)&p)+12>>2]=0-s;c[((c[(T&p)+4>>2]|0)+(l*20|0)&p)+8>>2]=m}c[((c[(T&p)+24>>2]|0)&p)+88>>2]=m+-1;xh(T,l+1|0,31624,-2);break a}case 21:{do if(U){if(dd(U,30904)|0)if(!(dd(U,30896)|0))k=0;else{P=66;break}else k=1;if(!(c[(B&p)>>2]|0)){s=c[(W&p)+20>>2]|0;if((s|0)>2){q=c[(R&p)>>2]|0;m=k&255;r=2;do{l=c[(c[((c[(q+(r<<4)&p)+4>>2]|0)&p)+4>>2]&p)>>2]|0;do if(!(a[(l&n)+12>>0]|0)){G=c[(l&p)+208>>2]|0;if((G|0)!=0?(a[(G&n)+43>>0]|0)==2:0)break;a[(l&n)+4>>0]=m}while(0);r=r+1|0}while((r|0)<(s|0))}else m=k&255;a[(W&n)+66>>0]=m;P=74}else P=74}else P=66;while(0);if((P|0)==66)if(!(c[(B&p)>>2]|0))l=W+66|0;else{k=-1;P=74}if((P|0)==74){m=c[(c[((c[(C+(Q<<4)&p)+4>>2]|0)&p)+4>>2]&p)>>2]|0;do if((k|0)>-1?(a[(m&n)+12>>0]|0)==0:0){G=c[(m&p)+208>>2]|0;if((G|0)!=0?(a[(G&n)+43>>0]|0)==2:0)break;a[(m&n)+4>>0]=k}while(0);l=m+4|0}l=(a[(l&n)>>0]|0)==1?30904:30896;iq(T,1);if(!(a[((c[(T&p)>>2]|0)&n)+65>>0]|0))Xg(c[(T&p)+16>>2]|0,30920,-1,1,0)|0;xh(T,wh(T,97,0,1,0)|0,l,0);wh(T,35,1,1,0)|0;break a}case 16:{if(!U)break a;k=_h(W,U,L)|0;if(!k)break a;q=Oq(f)|0;iq(q,5);c[(S&p)>>2]=5;Ar(f,Q);if(((((a[((c[(q&p)>>2]|0)&n)+65>>0]|0)==0?(Xg(c[(q&p)+16>>2]|0,31288,-1,1,0)|0,(a[((c[(q&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(q&p)+16>>2]|0)+40|0,31184,-1,1,0)|0,(a[((c[(q&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(q&p)+16>>2]|0)+80|0,31296,-1,1,0)|0,(a[((c[(q&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(q&p)+16>>2]|0)+120|0,31304,-1,1,0)|0,(a[((c[(q&p)>>2]|0)&n)+65>>0]|0)==0):0)Xg((c[(q&p)+16>>2]|0)+160|0,31312,-1,1,0)|0;m=c[(k&p)+8>>2]|0;if(!m)break a;else l=0;while(1){wh(q,25,l,1,0)|0;G=c[(m&p)>>2]|0;xh(q,wh(q,97,0,2,0)|0,G,0);wh(q,25,(a[(m&n)+50>>0]|0)!=0&1,3,0)|0;G=c[((a[(m&n)+51>>0]&3)<<2&p)+31336>>2]|0;xh(q,wh(q,97,0,4,0)|0,G,0);wh(q,25,(c[(m&p)+36>>2]|0)!=0&1,5,0)|0;wh(q,35,1,5,0)|0;m=c[(m&p)+20>>2]|0;if(!m)break;else l=l+1|0}break}case 1:{k=c[(C+(Q<<4)&p)+4>>2]|0;if(!U){m=c[(k&p)+4>>2]|0;c[(m&p)+4>>2]=c[(k&p)>>2];if(!(a[(m&n)+17>>0]|0)){m=0;l=0}else{l=(a[(m&n)+18>>0]|0)==0;m=l?1:2;l=l?0:0}Jt(f,30976,m,l);break a}if(dd(U,32192)|0)if(dd(U,31880)|0)if(!(dd(U,32200)|0))m=2;else{c[(G&p)>>2]=0;Dn(U,G)|0;m=c[(G&p)>>2]|0;m=m>>>0<3?m&255:0}else m=1;else m=0;a[(W&n)+67>>0]=m;r=m+-1|0;if(!((vn(k,m)|0)==0&r>>>0<2))break a;l=yh(T,6,30992)|0;q=c[(T&p)+32>>2]|0;if(q>>>0>l>>>0)c[((c[(T&p)+4>>2]|0)+(l*20|0)&p)+4>>2]=Q;k=l+1|0;if(q>>>0>k>>>0)c[((c[(T&p)+4>>2]|0)+(k*20|0)&p)+4>>2]=Q;k=l+2|0;m=l+4|0;if(q>>>0>k>>>0)c[((c[(T&p)+4>>2]|0)+(k*20|0)&p)+8>>2]=m;if(q>>>0>m>>>0)c[((c[(T&p)+4>>2]|0)+(m*20|0)&p)+4>>2]=r;m=l+5|0;if(q>>>0>m>>>0)c[((c[(T&p)+4>>2]|0)+(m*20|0)&p)+4>>2]=Q;G=T+96|0;c[(G&p)>>2]=c[(G&p)>>2]|1<>2]=3;if(((a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0?(Xg(c[(T&p)+16>>2]|0,31288,-1,1,0)|0,(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(T&p)+16>>2]|0)+40|0,31184,-1,1,0)|0,(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0):0)Xg((c[(T&p)+16>>2]|0)+80|0,31352,-1,1,0)|0;l=W+20|0;m=c[(l&p)>>2]|0;if((m|0)>0)q=0;else break a;do{if(c[((c[(R&p)>>2]|0)+(q<<4)&p)+4>>2]|0){wh(T,25,q,1,0)|0;k=c[((c[(R&p)>>2]|0)+(q<<4)&p)>>2]|0;xh(T,wh(T,97,0,2,0)|0,k,0);k=c[(c[((c[((c[(R&p)>>2]|0)+(q<<4)&p)+4>>2]|0)&p)+4>>2]&p)>>2]|0;if(!(a[(k&n)+15>>0]|0))k=c[(k&p)+168>>2]|0;else k=10360;xh(T,wh(T,97,0,3,0)|0,k,0);wh(T,35,1,3,0)|0;m=c[(l&p)>>2]|0}q=q+1|0}while((q|0)<(m|0));break}case 6:{iq(T,2);c[(S&p)>>2]=2;if((a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0?(Xg(c[(T&p)+16>>2]|0,31288,-1,1,0)|0,(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0):0)Xg((c[(T&p)+16>>2]|0)+40|0,31184,-1,1,0)|0;m=c[(W&p)+436>>2]|0;if(!m)break a;else l=0;while(1){G=c[(m&p)+8>>2]|0;wh(T,25,l,1,0)|0;G=c[(G&p)>>2]|0;xh(T,wh(T,97,0,2,0)|0,G,0);wh(T,35,1,2,0)|0;m=c[(m&p)>>2]|0;if(!m)break;else l=l+1|0}break}case 13:{if(!U)break a;k=_h(W,U,L)|0;if(!k)break a;g=Oq(f)|0;q=c[(k&p)+16>>2]|0;if(!q)break a;iq(g,8);c[(S&p)>>2]=8;Ar(f,Q);do if((((a[((c[(g&p)>>2]|0)&n)+65>>0]|0)==0?(Xg(c[(g&p)+16>>2]|0,31360,-1,1,0)|0,(a[((c[(g&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(g&p)+16>>2]|0)+40|0,31288,-1,1,0)|0,(a[((c[(g&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(g&p)+16>>2]|0)+80|0,31232,-1,1,0)|0,(a[((c[(g&p)>>2]|0)&n)+65>>0]|0)==0):0){Xg((c[(g&p)+16>>2]|0)+120|0,31368,-1,1,0)|0;if(a[((c[(g&p)>>2]|0)&n)+65>>0]|0)break;Xg((c[(g&p)+16>>2]|0)+160|0,31376,-1,1,0)|0;if(a[((c[(g&p)>>2]|0)&n)+65>>0]|0)break;Xg((c[(g&p)+16>>2]|0)+200|0,31384,-1,1,0)|0;if(a[((c[(g&p)>>2]|0)&n)+65>>0]|0)break;Xg((c[(g&p)+16>>2]|0)+240|0,31400,-1,1,0)|0;if(a[((c[(g&p)>>2]|0)&n)+65>>0]|0)break;Xg((c[(g&p)+16>>2]|0)+280|0,31416,-1,1,0)|0}while(0);v=k+4|0;w=0;while(1){k=q+20|0;if((c[(k&p)>>2]|0)>0){m=q+25|0;l=q+26|0;t=q+8|0;h=0;do{u=c[(q+(h<<3)&p)+40>>2]|0;s=d[(m&n)>>0]|0;if((s|0)==8)r=32072;else if((s|0)==9)r=32088;else if((s|0)==6)r=32096;else if((s|0)==7)r=32056;else r=32112;s=d[(l&n)>>0]|0;if((s|0)==8)s=32072;else if((s|0)==9)s=32088;else if((s|0)==6)s=32096;else if((s|0)==7)s=32056;else s=32112;wh(g,25,w,1,0)|0;wh(g,25,h,2,0)|0;G=c[(t&p)>>2]|0;xh(g,wh(g,97,0,3,0)|0,G,0);G=c[((c[(v&p)>>2]|0)+((c[(q+(h<<3)&p)+36>>2]|0)*24|0)&p)>>2]|0;xh(g,wh(g,97,0,4,0)|0,G,0);xh(g,wh(g,(u|0)!=0?97:28,0,5,0)|0,u,0);xh(g,wh(g,97,0,6,0)|0,s,0);xh(g,wh(g,97,0,7,0)|0,r,0);xh(g,wh(g,97,0,8,0)|0,31424,0);wh(g,35,1,8,0)|0;h=h+1|0}while((h|0)<(c[(k&p)>>2]|0))}q=c[(q&p)+4>>2]|0;if(!q)break;else w=w+1|0}break}case 11:{if(!U){if(Gn(f)|0)break a;iq(T,1);if(!(a[((c[(T&p)>>2]|0)&n)+65>>0]|0))Xg(c[(T&p)+16>>2]|0,31784,-1,1,0)|0;wh(T,97,0,1,0)|0;xh(T,-1,c[(d[((c[(f&p)>>2]|0)&n)+62>>0]<<3&p)+31632>>2]|0,-2);wh(T,35,1,1,0)|0;break a}k=c[((c[(R&p)>>2]|0)&p)+12>>2]|0;if((b[(k&o)+78>>1]&5)==1)break a;else{m=31632;l=31704}do{if(!(dd(U,l)|0)){v=m;P=415;break}m=m+8|0;l=c[(m&p)>>2]|0}while((l|0)!=0);if((P|0)==415?(F=a[(v&n)+4>>0]|0,F=F<<24>>24==0?2:F,a[(W&n)+62>>0]=F,a[(k&n)+77>>0]=F,(c[(v&p)>>2]|0)!=0):0)break a;c[(G&p)>>2]=U;th(f,31800,G);break a}case 0:{s=c[((w*12|0)&p)+30128>>2]|0;F=T+96|0;c[(F&p)>>2]=c[(F&p)>>2]|1<>2]|0)>>>0>m>>>0)c[((c[(T&p)+4>>2]|0)+(m*20|0)&p)+4>>2]=Q;l=m+1|0;c[(G&p)>>2]=0;Dn(U,G)|0;k=c[(k&p)>>2]|0;if(k>>>0>l>>>0)c[((c[(T&p)+4>>2]|0)+(l*20|0)&p)+4>>2]=c[(G&p)>>2];m=m+2|0;if(k>>>0<=m>>>0)break a;c[((c[(T&p)+4>>2]|0)+(m*20|0)&p)+4>>2]=Q;c[((c[(T&p)+4>>2]|0)+(m*20|0)&p)+8>>2]=s;break a}m=yh(T,3,31848)|0;k=c[(T&p)+32>>2]|0;if(k>>>0>m>>>0)c[((c[(T&p)+4>>2]|0)+(m*20|0)&p)+4>>2]=Q;m=m+1|0;if(k>>>0>m>>>0){c[((c[(T&p)+4>>2]|0)+(m*20|0)&p)+4>>2]=Q;c[((c[(T&p)+4>>2]|0)+(m*20|0)&p)+12>>2]=s}iq(T,1);if(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)break a;Xg(c[(T&p)+16>>2]|0,V,-1,1,-1)|0;break a}case 7:{iq(T,1);c[(S&p)>>2]=1;if(!(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)){Xg(c[(T&p)+16>>2]|0,31864,-1,1,0)|0;l=0}else l=0;do{G=c[(l<<2&p)+8648>>2]|0;l=l+1|0;xh(T,wh(T,97,0,1,0)|0,G,0);wh(T,35,1,1,0)|0}while((l|0)!=4);break}case 35:{m=(c[(h&p)>>2]|0)!=0?Q:10;if(U)if(dd(U,31880)|0)if(!(dd(U,31888)|0))l=2;else{l=(dd(U,31896)|0)==0;l=l?3:0}else l=1;else l=0;iq(T,3);c[(S&p)>>2]=3;if(((a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0?(Xg(c[(T&p)+16>>2]|0,31912,-1,1,0)|0,(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(T&p)+16>>2]|0)+40|0,31920,-1,1,0)|0,(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0):0)Xg((c[(T&p)+16>>2]|0)+80|0,31928,-1,1,0)|0;wh(T,11,m,l,1)|0;wh(T,35,1,3,0)|0;break a}case 26:{of(W)|0;break a}case 34:{if(!U)l=c[(W&p)+216>>2]|0;else{c[(G&p)>>2]=0;Dn(U,G)|0;l=c[(G&p)>>2]|0;if((l|0)>0)m=21;else{l=0;m=0}c[(W&p)+216>>2]=m;c[(W&p)+220>>2]=l;l=m}if((l|0)==21){l=c[(W&p)+220>>2]|0;m=l;l=((l|0)<0)<<31>>31}else{m=0;l=0}Jt(f,31944,m,l);break a}case 27:{if((U|0)!=0?(ji(U,x)|0)==0:0){G=x;Pc(c[(G&p)>>2]|0,c[(G&p)+4>>2]|0)|0}F=(Lc()|0)==0;G=9032;Jt(f,31976,F?c[(G&p)>>2]|0:-1,F?c[(G&p)+4>>2]|0:-1);break a}case 33:{if((U|0)!=0?(E=(ji(U,s)|0)==0,G=s,F=c[(G&p)+4>>2]|0,E&((F|0)>-1|(F|0)==-1&(c[(G&p)>>2]|0)>>>0>4294967295)):0)c[(W&p)+132>>2]=0;G=c[(W&p)+132>>2]|0;Jt(f,31992,G,((G|0)<0)<<31>>31);break a}case 12:{g=c[(S&p)>>2]|0;H=g+1|0;I=g+5|0;J=g+6|0;c[(S&p)>>2]=J;K=Oq(f)|0;iq(K,4);if((((a[((c[(K&p)>>2]|0)&n)+65>>0]|0)==0?(Xg(c[(K&p)+16>>2]|0,31232,-1,1,0)|0,(a[((c[(K&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(K&p)+16>>2]|0)+40|0,20456,-1,1,0)|0,(a[((c[(K&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(K&p)+16>>2]|0)+80|0,31432,-1,1,0)|0,(a[((c[(K&p)>>2]|0)&n)+65>>0]|0)==0):0)Xg((c[(K&p)+16>>2]|0)+120|0,31440,-1,1,0)|0;Ar(f,Q);w=c[((c[((c[(R&p)>>2]|0)+(Q<<4)&p)+12>>2]|0)&p)+16>>2]|0;if(!w)break a;u=(U|0)==0;h=f+68|0;v=K+32|0;D=K+4|0;E=K+24|0;F=g+2|0;G=g+3|0;A=g+4|0;t=f+8|0;while(1){if(u){B=c[(w&p)>>2]|0;C=c[(w&p)+8>>2]|0}else{B=0;C=sh(f,0,U,L)|0}if((C|0)!=0?(M=C+16|0,(c[(M&p)>>2]|0)!=0):0){gs(f,Q,c[(C&p)+32>>2]|0,0,c[(C&p)>>2]|0);g=(b[(C&o)+38>>1]|0)+J|0;if((g|0)>(c[(S&p)>>2]|0))c[(S&p)>>2]=g;Qq(f,0,Q,C,54);w=c[(C&p)>>2]|0;xh(K,wh(K,97,0,H,0)|0,w,0);w=c[(M&p)>>2]|0;if(!w)g=1;else{g=1;do{l=_h(W,c[(w&p)+8>>2]|0,L)|0;do if(l){c[(O&p)>>2]=0;gs(f,Q,c[(l&p)+32>>2]|0,0,c[(l&p)>>2]|0);if(Mt(f,l,w,O,0)|0)break a;m=c[(O&p)>>2]|0;if(!m){Qq(f,g,Q,l,54);break}else{wh(K,54,g,c[(m&p)+40>>2]|0,Q)|0;z=c[(t&p)>>2]|0;xh(z,-1,hs(f,m)|0,-6);break}}while(0);g=g+1|0;w=c[(w&p)+4>>2]|0}while((w|0)!=0)}if((c[(h&p)>>2]|0)<(g|0))c[(h&p)>>2]=g;s=wh(K,108,0,0,0)|0;g=c[(M&p)>>2]|0;if(g){z=C+36|0;y=1;while(1){x=g+8|0;w=_h(W,c[(x&p)>>2]|0,L)|0;c[(O&p)>>2]=0;c[(N&p)>>2]=0;r=(w|0)!=0;do if(r){Mt(f,w,g,O,N)|0;l=c[(O&p)>>2]|0;m=xs(K)|0;if(!(r&(l|0)==0)){w=m;P=306;break}w=c[(g&p)+36>>2]|0;if((w|0)==(b[(z&o)>>1]|0))wh(K,103,0,J,0)|0;else{wh(K,47,0,w,J)|0;Nt(K,C,w,J);wh(K,76,J,m,0)|0;wh(K,38,J,(c[(v&p)>>2]|0)+3|0,0)|0}wh(K,70,y,0,J)|0;wh(K,16,0,m,0)|0;w=c[(v&p)>>2]|0;if(w>>>0>1)c[((c[(D&p)>>2]|0)+((w+-2|0)*20|0)&p)+8>>2]=w;c[((c[(E&p)>>2]|0)&p)+88>>2]=w+-1;w=m}else{w=xs(K)|0;l=0;P=306}while(0);do if((P|0)==306){P=0;q=g+20|0;m=c[(q&p)>>2]|0;if((m|0)>0){k=0;do{m=c[(N&p)>>2]|0;if(!m)m=g+(k<<3)+36|0;else m=m+(k<<2)|0;R=k+J|0;nt(K,C,0,c[(m&p)>>2]|0,R);wh(K,76,R,w,0)|0;k=k+1|0;m=c[(q&p)>>2]|0}while((k|0)<(m|0))}if(!r)break;k=ot(K,l)|0;l=c[(q&p)>>2]|0;xh(K,wh(K,49,J,m,I)|0,k,l);xh(K,wh(K,69,y,w,I)|0,0,-14)}while(0);wh(K,103,0,F,0)|0;l=c[(x&p)>>2]|0;xh(K,wh(K,97,0,G,0)|0,l,0);wh(K,25,y+-1|0,A,0)|0;wh(K,35,H,4,0)|0;l=c[(E&p)>>2]|0;m=~w;do if((w|0)<0){w=c[(l&p)+112>>2]|0;if(!w)break;c[(w+(m<<2)&p)>>2]=c[(v&p)>>2]}while(0);c[(l&p)+88>>2]=(c[(v&p)>>2]|0)+-1;mg(W,c[(N&p)>>2]|0);g=c[(g&p)+4>>2]|0;if(!g)break;else y=y+1|0}}wh(K,9,0,s+1|0,0)|0;g=c[(v&p)>>2]|0;if(g>>>0>s>>>0)c[((c[(D&p)>>2]|0)+(s*20|0)&p)+8>>2]=g;c[((c[(E&p)>>2]|0)&p)+88>>2]=g+-1}if(!B)break;else w=B}break}case 23:{Jt(f,31016,0,0);break a}case 31:{if(!U){Jt(f,31032,d[(W&n)+64>>0]|0,0);break a}l=a[(U&n)>>0]|0;if((l+-48&255)>=3)if(!(dd(U,31352)|0))l=1;else{l=(dd(U,15168)|0)==0;l=l?2:0}else l=(l<<24>>24)+-48|0;m=(c[(f&p)>>2]|0)+64|0;if((d[(m&n)>>0]|0)==(l|0))break a;if(Kt(f)|0)break a;a[(m&n)>>0]=l;break a}case 29:{if(!U){G=(d[(C+(Q<<4)&n)+8>>0]|0)+-1|0;Jt(f,31104,G,((G|0)<0)<<31>>31);break a}if(!(a[(W&n)+63>>0]|0)){th(f,31120,G);break a}else{a[(C+(Q<<4)&n)+8>>0]=((ii(U,0,1)|0)&255)+1;Lt(W);break a}}case 4:if(!U){G=c[((c[(C+(Q<<4)&p)+12>>2]|0)&p)+80>>2]|0;Jt(f,30848,G,((G|0)<0)<<31>>31);break a}else{c[(G&p)>>2]=0;Dn(U,G)|0;G=c[(G&p)>>2]|0;c[((c[(C+(Q<<4)&p)+12>>2]|0)&p)+80>>2]=G;pq(c[(C+(Q<<4)&p)+4>>2]|0,G);break a}default:{if(!U)l=c[(W&p)+492>>2]|0;else{c[(G&p)>>2]=0;Dn(U,G)|0;l=c[(G&p)>>2]|0;G=(l|0)>0;l=G?l:0;c[(W&p)+444>>2]=G?74:0;c[(W&p)+448>>2]=G?W:0;c[(r&p)>>2]=0;c[(W&p)+492>>2]=l}Jt(f,31968,l,((l|0)<0)<<31>>31);break a}}while(0)}else{k=c[(q&p)>>2]|0;if(k){c[(G&p)>>2]=k;th(f,10344,G);Wc(c[(q&p)>>2]|0)}G=f+64|0;c[(G&p)>>2]=(c[(G&p)>>2]|0)+1;c[(f&p)+12>>2]=g;break}}while(0);mg(W,V);mg(W,U)}}while(0);i=X;return}function Gr(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0;h=i;i=i+16|0;if((i|0)>=(j|0))fa();g=h;a:do if(!d)d=0;else{f=d;while(1){if((a[(f&n)>>0]|0)==-121){d=c[(b&p)>>2]|0;if(!(a[((c[(d&p)>>2]|0)&n)+145>>0]|0))break;a[(f&n)>>0]=101}d=c[(f&p)+4>>2]|0;if(d&16384){d=0;break a}e=f+20|0;if(!(d&2048)){if(Hr(b,c[(e&p)>>2]|0)|0){d=1;break a}}else if(fr(b,c[(e&p)>>2]|0)|0){d=1;break a}if(Gr(b,c[(f&p)+16>>2]|0)|0){d=1;break a}f=c[(f&p)+12>>2]|0;if(!f){d=0;break a}}c[(g&p)>>2]=c[(b&p)+16>>2];th(d,29984,g);d=1}while(0);i=h;return d|0}function Hr(a,b){a=a|0;b=b|0;var d=0,e=0;a:do if((b|0)!=0?(c[(b&p)>>2]|0)>0:0){d=0;e=c[(b&p)+4>>2]|0;while(1){if(Gr(a,c[(e&p)>>2]|0)|0){d=1;break a}d=d+1|0;if((d|0)>=(c[(b&p)>>2]|0)){d=0;break}else e=e+20|0}}else d=0;while(0);return d|0}function Ir(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;xh(a,wh(a,122,b,0,0)|0,d,-1);d=c[((c[(a&p)>>2]|0)&p)+20>>2]|0;if((d|0)>0){e=a+96|0;b=c[(e&p)>>2]|0;a=0;do{b=b|1<>2]=b}return}function Jr(a,d){a=a|0;d=d|0;var e=0,f=0;e=d+8|0;f=Ur(a,0,e)|0;d=d+24|0;kg(c[(a&p)>>2]|0,c[(d&p)>>2]|0);c[(d&p)>>2]=f;if(f){d=f+40|0;b[(d&o)>>1]=(b[(d&o)>>1]|0)+1<<16>>16}e=(Rt(a,e)|0)==0;return (e?f:0)|0}function Kr(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0;n=i;i=i+16|0;if((i|0)>=(j|0))fa();m=n;a:do if((b|0)!=0?(f=c[(a&p)+12>>2]|0,(c[(b&p)>>2]|0)>0):0){g=a+8|0;h=a+4|0;k=0;l=b+8|0;while(1){if(!(c[(g&p)>>2]|0)){e=l+4|0;d=c[(e&p)>>2]|0;if((d|0)!=0?(dd(d,f)|0)!=0:0)break;mg(c[(c[(a&p)>>2]&p)>>2]|0,d);c[(e&p)>>2]=0;c[(l&p)>>2]=c[(h&p)>>2]}if(fr(a,c[(l&p)+20>>2]|0)|0){d=1;break a}if(Gr(a,c[(l&p)+44>>2]|0)|0){d=1;break a}k=k+1|0;if((k|0)>=(c[(b&p)>>2]|0)){d=0;break a}else l=l+72|0}b=c[(a&p)>>2]|0;l=c[(a&p)+20>>2]|0;c[(m&p)>>2]=c[(a&p)+16>>2];c[(m&p)+4>>2]=l;c[(m&p)+8>>2]=d;th(b,29936,m);d=1}else d=0;while(0);i=n;return d|0}function Lr(b,d){b=b|0;d=d|0;var e=0,f=0,g=0;f=i;i=i+16|0;if((i|0)>=(j|0))fa();e=f;g=c[(b&p)>>2]|0;if((((a[(g&n)+145>>0]|0)==0?(a[(b&n)+18>>0]|0)==0:0)?(c[(g&p)+24>>2]&2048|0)==0:0)?(Fc(d,25568,7)|0)==0:0){c[(e&p)>>2]=d;th(b,28440,e);b=1}else b=0;i=f;return b|0}function Mr(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,o=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0;x=i;i=i+16|0;if((i|0)>=(j|0))fa();w=x;do if(d){t=e&1;v=(f|0)!=0;if(v){g=c[(f&p)>>2]|0;r=32768}else{g=St(d,e)|0;g=mh(b,g,((g|0)<0)<<31>>31)|0;r=0}c[(w&p)>>2]=g;if(g){l=(t|0)==0;if(!l)if(!(c[(d&p)+12>>2]|0))q=(c[(d&p)+20>>2]|0)==0?16396:8220;else q=8220;else q=48;s=q&60;u=d+4|0;m=c[(u&p)>>2]|0;if((m&1024|0)==0?(h=c[(d&p)+8>>2]|0,(h|0)!=0):0){k=h;while(1)if(!(a[(k&n)>>0]|0))break;else k=k+1|0;o=(k-h&1073741823)+1|0}else o=0;if(l){if(!(m&16384))k=(m&8192|0)==0?48:28;else k=12;kw(g|0,d|0,k|0)|0;fw(g+k|0,0,48-k|0)|0}else kw(g|0,d|0,s|0)|0;m=g+4|0;h=q&24576|r|c[(m&p)>>2]&-122881;c[(m&p)>>2]=h;if(o){h=g+s|0;c[(g&p)+8>>2]=h;kw(h|0,c[(d&p)+8>>2]|0,o|0)|0;h=c[(m&p)>>2]|0}k=c[(u&p)>>2]|0;do if(!((h|k)&16384)){h=d+20|0;if(!(k&2048)){c[(g&p)+20>>2]=Pr(b,c[(h&p)>>2]|0,t)|0;break}else{c[(g&p)+20>>2]=gr(b,c[(h&p)>>2]|0,t)|0;break}}while(0);h=c[(m&p)>>2]|0;if(!(h&24576)){if(c[(u&p)>>2]&16384)break;c[(g&p)+12>>2]=Mr(b,c[(d&p)+12>>2]|0,0,0)|0;c[(g&p)+16>>2]=Mr(b,c[(d&p)+16>>2]|0,0,0)|0;break}t=Tt(d,e)|0;c[(w&p)>>2]=(c[(w&p)>>2]|0)+t;if(h&8192){c[(g&p)+12>>2]=Mr(b,c[(d&p)+12>>2]|0,1,w)|0;c[(g&p)+16>>2]=Mr(b,c[(d&p)+16>>2]|0,1,w)|0}if(v)c[(f&p)>>2]=c[(w&p)>>2]}}else g=0;while(0);i=x;return g|0}function Nr(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;a:do if((b|0)!=0?(d=mh(a,8,0)|0,(d|0)!=0):0){g=b+4|0;c[(d&p)+4>>2]=c[(g&p)>>2];e=mh(a,c[(g&p)>>2]<<3,0)|0;c[(d&p)>>2]=e;if(!e){mg(a,d);d=0;break}if((c[(g&p)>>2]|0)>0){f=0;while(1){h=c[(b&p)>>2]|0;c[(e+(f<<3)&p)>>2]=kh(a,c[(h+(f<<3)&p)>>2]|0)|0;c[(e+(f<<3)&p)+4>>2]=c[(h+(f<<3)&p)+4>>2];f=f+1|0;if((f|0)>=(c[(g&p)>>2]|0))break a;e=c[(d&p)>>2]|0}}}else d=0;while(0);return d|0}function Or(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0;f=e+4|0;g=(c[(f&p)>>2]|0)+40|0;b=mh(b,g,0)|0;if(b){fw(b|0,0,g|0)|0;g=b+40|0;kw(g|0,c[(e&p)>>2]|0,c[(f&p)>>2]|0)|0;c[(b&p)+12>>2]=g;c[(b&p)+16>>2]=c[(f&p)>>2];a[(b&n)>>0]=d}return b|0}function Pr(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0;do if((d|0)!=0?(f=mh(b,8,0)|0,(f|0)!=0):0){g=c[(d&p)>>2]|0;c[(f&p)>>2]=g;if(!(e&1)){h=c[(d&p)>>2]|0;g=1;while(1)if((g|0)<(h|0))g=g<<1;else break}g=mh(b,g*20|0,0)|0;c[(f&p)+4>>2]=g;if(!g){mg(b,f);f=0;break}if((c[(d&p)>>2]|0)>0){i=0;h=c[(d&p)+4>>2]|0;while(1){c[(g&p)>>2]=Mr(b,c[(h&p)>>2]|0,e,0)|0;c[(g&p)+4>>2]=kh(b,c[(h&p)+4>>2]|0)|0;c[(g&p)+8>>2]=kh(b,c[(h&p)+8>>2]|0)|0;a[(g&n)+12>>0]=a[(h&n)+12>>0]|0;j=g+13|0;k=a[(j&n)>>0]|0;a[(j&n)>>0]=k&-2;a[(j&n)>>0]=a[(h&n)+13>>0]&2|k&-4;c[(g&p)+16>>2]=c[(h&p)+16>>2];i=i+1|0;if((i|0)>=(c[(d&p)>>2]|0))break;else{g=g+20|0;h=h+20|0}}}}else f=0;while(0);return f|0}function Qr(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0;o=i;i=i+16|0;if((i|0)>=(j|0))fa();k=o;l=c[(a&p)>>2]|0;f=c[(b&p)+20>>2]|0;a:do if(f){e=c[(l&p)+20>>2]|0;if((e|0)>0){d=c[(l&p)+16>>2]|0;h=0;while(1){g=h+1|0;if((c[(d+(h<<4)&p)+12>>2]|0)==(f|0)){g=h;break a}if((g|0)<(e|0))h=g;else break}}else g=0}else g=-1e6;while(0);d=bn((c[(b&p)+24>>2]|0)+8|0,c[(b&p)+4>>2]|0,k)|0;if(!d)f=0;else f=c[(d&p)+8>>2]|0;d=c[((c[(l&p)+16>>2]|0)+(g<<4)&p)>>2]|0;e=(g|0)==1;if((((Sq(a,e?14:16,c[(b&p)>>2]|0,c[(f&p)>>2]|0,d)|0)==0?(Sq(a,9,e?13184:13208,0,d)|0)==0:0)?(m=Oq(a)|0,(m|0)!=0):0)?(n=c[(a&p)+408>>2]|0,Ar(a,g),n=((n|0)==0?a:n)+328|0,c[(n&p)>>2]=c[(n&p)>>2]|1<>2]|0,0),xh(m,n+4|0,10720,-2),Dr(a,g),wh(m,61,0,0,0)|0,n=c[(b&p)>>2]|0,xh(m,wh(m,126,g,0,0)|0,n,0),n=a+72|0,(c[(n&p)>>2]|0)<3):0)c[(n&p)>>2]=3;i=o;return}function Rr(d,e,f,g,h,k,l){d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;var m=0,q=0,r=0,s=0,t=0,u=0,v=0;v=i;i=i+32|0;if((i|0)>=(j|0))fa();m=v;t=c[(d&p)>>2]|0;c[(m&p)>>2]=0;c[(m&p)+4>>2]=0;c[(m&p)+8>>2]=0;c[(m&p)+12>>2]=0;c[(m&p)+16>>2]=0;c[(m&p)+20>>2]=0;c[(m&p)+24>>2]=0;c[(m&p)+28>>2]=0;c[(m&p)>>2]=d;do if(h)if((a[(h&n)>>0]|0)!=27)if(!(ls(m,h)|0)){u=5;break}else{u=13;break}else{a[(h&n)>>0]=97;u=5;break}else u=5;while(0);a:do if((u|0)==5){do if(k)if((a[(k&n)>>0]|0)!=27)if(!(ls(m,k)|0))break;else{u=13;break a}else{a[(k&n)>>0]=97;break}while(0);do if(l)if((a[(l&n)>>0]|0)!=27)if(!(ls(m,l)|0))break;else{u=13;break a}else{a[(l&n)>>0]=97;break}while(0);if(g){if((a[(g&n)>>0]|0)==97)g=c[(g&p)+8>>2]|0;else g=0;if(Sq(d,e,g,0,0)|0)break}s=Oq(d)|0;m=d+60|0;g=c[(m&p)>>2]|0;q=d+56|0;r=c[(q&p)>>2]|0;if((r|0)<4){r=d+72|0;g=c[(r&p)>>2]|0;c[(r&p)>>2]=g+4;g=g+1|0}else{c[(m&p)>>2]=g+4;c[(q&p)>>2]=r+-4}Rq(d,h,g);Rq(d,k,g+1|0);Rq(d,l,g+2|0);if(s){g=g+3|0;wh(s,1,0,g-(b[(f&o)>>1]|0)|0,g)|0;g=c[(s&p)+4>>2]|0;if(g)a[(g+(((c[(s&p)+32>>2]|0)+-1|0)*20|0)&n)+3>>0]=b[(f&o)>>1];xh(s,-1,f,-5);wh(s,144,(e|0)==24&1,0,0)|0}}while(0);if((u|0)==13){f=d+64|0;c[(f&p)>>2]=(c[(f&p)>>2]|0)+1}Gk(t,h);Gk(t,k);Gk(t,l);i=v;return}function Sr(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0;m=i;i=i+16|0;if((i|0)>=(j|0))fa();l=m;g=m+4|0;h=c[(b&p)>>2]|0;a:do if(!(Gn(b)|0)){if(!d){Ut(b,0);break}if(!((e|0)!=0?(c[(e&p)>>2]|0)!=0:0))f=6;do if((f|0)==6){f=Wq(c[(b&p)>>2]|0,d)|0;if(!f)break a;if(!(Yn(h,a[(h&n)+62>>0]|0,f,0)|0)){mg(h,f);break}else{Ut(b,f);mg(h,f);break a}}while(0);d=er(b,d,e,g)|0;if((d|0)>=0?(k=Wq(h,c[(g&p)>>2]|0)|0,(k|0)!=0):0){e=c[((c[(h&p)+16>>2]|0)+(d<<4)&p)>>2]|0;f=_h(h,k,e)|0;if(f){Vt(b,f,0);mg(h,k);break}e=bq(h,k,e)|0;mg(h,k);if(!e){th(b,28872,l);break}else{f=c[(b&p)+408>>2]|0;Ar(b,d);f=((f|0)==0?b:f)+328|0;c[(f&p)>>2]=c[(f&p)>>2]|1<=(j|0))fa();f=h;g=c[(a&p)>>2]|0;if(!(Gn(a)|0)){do if(!b){b=g+20|0;e=c[(b&p)>>2]|0;if((e|0)>0){d=0;do{if((d|0)!=1){Wt(a,d);e=c[(b&p)>>2]|0}d=d+1|0}while((d|0)<(e|0))}}else{if(c[(d&p)+4>>2]|0){e=er(a,b,d,f)|0;if((e|0)<=-1)break;e=c[((c[(g&p)+16>>2]|0)+(e<<4)&p)>>2]|0;b=Wq(g,c[(f&p)>>2]|0)|0;if(!b)break;d=bq(g,b,e)|0;if(!d){e=sh(a,0,b,e)|0;if(e)Xt(a,e,0)}else Xt(a,c[(d&p)+12>>2]|0,d);mg(g,b);break}d=Wq(g,b)|0;e=Vh(g,d)|0;mg(g,d);if((e|0)>-1){Wt(a,e);break}d=Wq(g,b)|0;if(d){e=bq(g,d,0)|0;if(!e){e=sh(a,0,d,0)|0;if(e)Xt(a,e,0)}else Xt(a,c[(e&p)+12>>2]|0,e);mg(g,d)}}while(0);e=Oq(a)|0;if(e)wh(e,144,0,0,0)|0}i=h;return}function Ur(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,i=0;f=c[(d&p)>>2]|0;if(!f)e=d+4|0;else{i=c[(a&p)>>2]|0;g=c[(i&p)+20>>2]|0;i=c[(i&p)+16>>2]|0;a:do if((g|0)>0){h=0;while(1){e=h+1|0;if((c[(i+(h<<4)&p)+12>>2]|0)==(f|0)){e=h;break a}if((e|0)<(g|0))h=e;else break}}else e=0;while(0);e=i+(e<<4)|0}return sh(a,b,c[(d&p)+8>>2]|0,c[(e&p)>>2]|0)|0}function Vr(b,d){b=b|0;d=d|0;var e=0,f=0,g=0;g=i;i=i+16|0;if((i|0)>=(j|0))fa();f=g;if(d){e=d;while(1)if(!(a[(e&n)>>0]|0))break;else e=e+1|0;if((e-d&1073741823)>>>0>6?(Fc(d,25568,7)|0)==0:0){c[(f&p)>>2]=d;th(b,25576,f);e=1}else e=0}else e=0;i=g;return e|0}function Wr(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;f=i;i=i+16|0;if((i|0)>=(j|0))fa();e=f;if(!b){c[(e&p)>>2]=d;a=uh(a,25992,e)|0}else{c[(e&p)>>2]=b;c[(e&p)+4>>2]=d;e=uh(a,26e3,e)|0;mg(a,b);a=e}i=f;return a|0}function Xr(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;h=i;i=i+16|0;if((i|0)>=(j|0))fa();g=h;e=c[(a&p)>>2]|0;f=c[((c[(e&p)+16>>2]|0)&p)+28>>2]|0;if((c[(b&p)+68>>2]|0)!=(f|0)?(d=As(a,b)|0,(d|0)!=0):0){b=d;d=0;do{if((c[(b&p)+20>>2]|0)==(f|0))d=Wr(e,d,c[(b&p)>>2]|0)|0;b=c[(b&p)+32>>2]|0}while((b|0)!=0);if(d){b=c[(a&p)>>2]|0;c[(g&p)>>2]=d;b=uh(b,25968,g)|0;mg(c[(a&p)>>2]|0,d);d=b}else d=0}else d=0;i=h;return d|0}function Yr(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,q=0,r=0;r=i;i=i+16|0;if((i|0)>=(j|0))fa();n=r;o=Oq(a)|0;if(o){e=c[(a&p)>>2]|0;h=c[(b&p)+68>>2]|0;a:do if(h){k=c[(e&p)+20>>2]|0;if((k|0)>0){f=c[(e&p)+16>>2]|0;g=0;while(1){e=g+1|0;if((c[(f+(g<<4)&p)+12>>2]|0)==(h|0))break a;if((e|0)<(k|0))g=e;else{g=e;break}}}else g=0}else g=-1e6;while(0);e=As(a,b)|0;if(e)do{f=c[(a&p)>>2]|0;l=c[(e&p)+20>>2]|0;b:do if(l){m=c[(f&p)+20>>2]|0;if((m|0)>0){k=c[(f&p)+16>>2]|0;h=0;while(1){f=h+1|0;if((c[(k+(h<<4)&p)+12>>2]|0)==(l|0)){f=h;break b}if((f|0)<(m|0))h=f;else break}}else f=0}else f=-1e6;while(0);m=c[(e&p)>>2]|0;xh(o,wh(o,126,f,0,0)|0,m,0);e=c[(e&p)+32>>2]|0}while((e|0)!=0);e=c[(b&p)>>2]|0;xh(o,wh(o,124,g,0,0)|0,e,0);e=c[(a&p)>>2]|0;c[(n&p)>>2]=d;e=uh(e,25952,n)|0;if((e|0)!=0?(Ir(o,g,e),q=Xr(a,b)|0,(q|0)!=0):0)Ir(o,1,q)}i=r;return} function gh(f){f=f|0;var g=0,l=0,m=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,E=0,F=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ea=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,cc=0,dc=0,ec=0,fc=0,gc=0,hc=0,ic=0,kc=0,nc=0,oc=0,qc=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,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,Xc=0,Yc=0,Zc=0,_c=0,$c=0,ad=0,ed=0,fd=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,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,ee=0,fe=0,ge=0,he=0,ie=0,je=0,ke=0,le=0,me=0,ne=0,oe=0,pe=0,qe=0;oe=i;i=i+1040|0;if((i|0)>=(j|0))fa();ke=oe+400|0;Tc=oe+792|0;id=oe+392|0;ad=oe+788|0;Sd=oe+320|0;md=oe+784|0;pd=oe+780|0;qd=oe+280|0;Nd=oe+680|0;$c=oe+240|0;Qd=oe+200|0;_c=oe+676|0;Xc=oe+672|0;Od=oe+160|0;Uc=oe+644|0;td=oe+152|0;Jd=oe+112|0;kd=oe+640|0;Ld=oe+636|0;Yc=oe+632|0;ud=oe+628|0;Ad=oe+624|0;wd=oe+604|0;Bd=oe+600|0;od=oe+596|0;xd=oe+576|0;Sc=oe+840|0;Cd=oe+572|0;Pd=oe+104|0;Dd=oe+568|0;ed=oe+564|0;fd=oe+96|0;Rd=oe+88|0;Ed=oe+560|0;Fd=oe+556|0;Gd=oe+552|0;yd=oe+532|0;zd=oe+512|0;jd=oe+508|0;vd=oe+504|0;Zc=oe+488|0;Md=oe+48|0;Vc=oe+456|0;Rc=oe+444|0;Kd=oe+8|0;sd=oe+440|0;Id=oe+412|0;Hd=oe;zc=f+4|0;s=c[(zc&p)>>2]|0;le=c[(f&p)>>2]|0;Jc=a[(le&n)+62>>0]|0;Nc=f+8|0;z=c[(Nc&p)>>2]|0;ne=le+32|0;l=ne;m=c[(l&p)>>2]|0;l=c[(l&p)+4>>2]|0;me=f+80|0;a:do if((c[(me&p)>>2]|0)==7){y=le+65|0;z=f+44|0;r=m;g=0;t=0;m=0;ie=1317}else{c[(me&p)>>2]=0;de=f+136|0;c[(de&p)>>2]=0;c[(de&p)+4>>2]=0;de=f+20|0;c[(de&p)>>2]=0;c[(le&p)+452>>2]=0;Cc=le+240|0;b:do if(!(c[(Cc&p)>>2]|0)){be=le+292|0;if(c[(be&p)>>2]|0){r=c[(f&p)+124>>2]|0;g=le+300|0;y=c[(g&p)>>2]|0;if(!r)yc=g;else{yc=g;y=(r>>>0)%(y>>>0)|0}}else{yc=le+300|0;y=0}he=f+76|0;ge=le+65|0;Zd=le+296|0;sb=f+176|0;tb=f+184|0;ub=f+92|0;vb=le+80|0;wb=le+84|0;xb=Jc&255;yb=Jc<<24>>24==1;zb=le+88|0;Ab=f+60|0;_d=f+144|0;fe=f+86|0;je=f+44|0;Bb=f+12|0;Cb=Uc+4|0;Db=Uc+16|0;Eb=Uc+12|0;Fb=Uc+25|0;Gb=Uc+20|0;Hb=f+200|0;Ib=f+56|0;$d=f+72|0;Jb=Jd+16|0;Kb=Jd+8|0;Lb=Jd+24|0;Mb=f+87|0;ae=le+156|0;Nb=le+500|0;Ob=le+496|0;ee=le+63|0;Pb=le+488|0;Qb=le+504|0;Rb=le+512|0;Sb=le+70|0;Tb=le+24|0;Ub=le+20|0;Xd=le+16|0;Vb=le+4|0;Yd=f+88|0;Wb=f+104|0;Xb=f+152|0;Yb=f+160|0;Zb=le+152|0;_b=le+64|0;$b=wd+4|0;cc=wd+6|0;dc=wd+8|0;ec=xd+4|0;fc=xd+8|0;gc=le+212|0;hc=le+208|0;ic=f+116|0;kc=yd+4|0;nc=yd+6|0;oc=yd+8|0;qc=$c+8|0;sc=$c+32|0;uc=$c+24|0;vc=$c+16|0;wc=$c+12|0;xc=zd+4|0;Y=zd+6|0;Z=zd+8|0;_=qd+8|0;$=qd+32|0;aa=qd+24|0;ea=qd+12|0;ga=qd+16|0;ha=le+164|0;ia=Zc+8|0;ja=Zc+4|0;ka=le+145|0;la=Zc+12|0;ma=Sd+4|0;na=Sd+12|0;oa=Sd+16|0;pa=Sd+20|0;qa=Sd+24|0;ra=Sd+28|0;sa=Sd+8|0;ta=Sd+40|0;ua=Sd+44|0;va=Sd+48|0;wa=Sd+52|0;xa=Sd+56|0;ya=Sd+60|0;za=Sd+64|0;Aa=Sd+65|0;Ba=le+128|0;Ca=f+28|0;Da=f+36|0;Ea=f+32|0;Fa=f+196|0;Ga=Vc+4|0;Ha=Vc+8|0;Ia=Md+8|0;Ja=Md+32|0;Ka=Md+24|0;La=Vc+20|0;Ma=Vc+12|0;Na=Vc+16|0;Oa=Vc+24|0;Pa=Rc+8|0;Qa=Rc+4|0;Ra=le+148|0;Sa=le+176|0;Ta=le+72|0;Ua=le+67|0;Va=Tc+20|0;Wa=Tc+24|0;Xa=Tc+4|0;Ya=Tc+16|0;Za=le+304|0;_a=le+328|0;$a=Kd+32|0;ab=Kd+8|0;bb=Kd+24|0;cb=le+308|0;db=Id+20|0;eb=le+69|0;ce=f+168|0;fb=qd+4|0;gb=qd+8|0;hb=qd+12|0;ib=qd+16|0;jb=qd+20|0;kb=qd+24|0;lb=qd+25|0;mb=le+180|0;nb=Od+32|0;ob=Od+8|0;pb=Od+12|0;qb=Od+16|0;rb=Od+24|0;W=0;X=0;g=0;u=0;t=c[(he&p)>>2]|0;x=0;c:while(1){r=m;d:while(1){if(a[(ge&n)>>0]|0){y=ge;z=je;m=x;ie=1317;break a}m=g+1|0;if(!(a[(s+(t*20|0)&n)+2>>0]&2))L=u;else{u=c[(s+(t*20|0)&p)+8>>2]|0;g=z+(u*40|0)|0;u=z+(u*40|0)+8|0;if(b[(u&o)>>1]&9312)vg(g);b[(u&o)>>1]=4;L=g}C=s+(t*20|0)|0;J=a[(C&n)>>0]|0;u=J&255;e:do switch(u|0){case 17:{g=m;m=r;u=L;ie=22;break d}case 18:{g=m;m=r;u=L;ie=23;break d}case 20:{g=m;m=r;ie=24;break d}case 21:{g=m;m=r;u=L;ie=25;break d}case 22:{g=m;m=r;u=L;ie=26;break d}case 23:{g=m;m=r;u=L;r=t;ie=27;break d}case 29:{g=m;m=r;r=t;ie=65;break d}case 30:{g=m;m=r;u=L;r=t;ie=66;break d}case 28:{g=m;m=r;u=L;r=t;ie=60;break d}case 32:{g=m;m=r;r=t;ie=72;break d}case 24:{g=m;m=r;u=L;r=t;ie=28;break d}case 25:{g=m;m=r;u=L;r=t;ie=44;break d}case 26:{g=m;m=r;u=L;r=t;ie=45;break d}case 133:{g=m;m=r;u=L;r=t;ie=46;break d}case 97:{a[(C&n)>>0]=27;C=s+(t*20|0)+16|0;v=c[(C&p)>>2]|0;if(!v)g=0;else{g=v;while(1)if(!(a[(g&n)>>0]|0))break;else g=g+1|0;g=g-v&1073741823}w=s+(t*20|0)+4|0;c[(w&p)>>2]=g;if(yb)u=0;else{u=Xg(L,v,-1,1,0)|0;if((u|0)==18){g=m;m=r;u=x;ie=1316;break c}if(Yl(L,xb)|0){y=ge;z=je;g=m;m=x;ie=1317;break a}c[(L&p)+24>>2]=0;g=L+8|0;b[(g&o)>>1]=e[(g&o)>>1]|2048;g=s+(t*20|0)+1|0;if((a[(g&n)>>0]|0)==-1)mg(le,c[(C&p)>>2]|0);a[(g&n)>>0]=-1;v=c[(L&p)+16>>2]|0;c[(C&p)>>2]=v;g=c[(L&p)+12>>2]|0;c[(w&p)>>2]=g}if((g|0)>(c[(zb&p)>>2]|0)){g=m;m=r;u=x;ie=1316;break c}else ie=57;break}case 31:{g=m;m=r;u=L;r=t;ie=67;break d}case 34:{g=m;m=r;r=t;ie=79;break d}case 35:{g=m;m=r;u=x;ie=80;break c}case 33:{g=m;m=r;ie=74;break d}case 94:{g=m;m=r;ie=94;break d}case 93:case 92:case 91:case 90:case 89:{g=m;P=C;m=r;r=t;ie=112;break d}case 27:{v=c[(s+(t*20|0)&p)+16>>2]|0;g=c[(s+(t*20|0)&p)+4>>2]|0;u=0;ie=57;break}case 16:{t=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;u=0;ie=19;break}case 36:{g=m;m=r;J=L;r=t;ie=166;break d}case 1:{V=a[(s+(t*20|0)&n)+3>>0]|0;C=V&255;A=c[(Bb&p)>>2]|0;g=z+((c[(s+(t*20|0)&p)+12>>2]|0)*40|0)|0;c[(Uc&p)>>2]=g;if(V<<24>>24){g=0;u=z+((c[(s+(t*20|0)&p)+8>>2]|0)*40|0)|0;while(1){c[(A+(g<<2)&p)>>2]=u;if((b[(u&o)+8>>1]&4096)!=0?(Vl(u)|0)!=0:0){y=ge;z=je;g=m;m=x;ie=1317;break a}g=g+1|0;if((g|0)>=(C|0))break;else u=u+40|0}g=c[(Uc&p)>>2]|0}V=c[(s+(t*20|0)&p)+16>>2]|0;c[(Cb&p)>>2]=V;c[(Db&p)>>2]=t;c[(Eb&p)>>2]=f;U=g+8|0;b[(U&o)>>1]=e[(U&o)>>1]&48640|1;a[(Fb&n)>>0]=0;U=ne;c[(U&p)>>2]=r;c[(U&p)+4>>2]=l;mc[c[(V&p)+12>>2]&63](Uc,C,A);l=ne;r=c[(l&p)>>2]|0;l=c[(l&p)+4>>2]|0;if(!(a[(Fb&n)>>0]|0))g=0;else{if(!(c[(Gb&p)>>2]|0))g=0;else{c[(ke&p)>>2]=Sg(c[(Uc&p)>>2]|0,1)|0;dh(je,le,10344,ke);g=c[(Gb&p)>>2]|0}em(f,t,c[(s+(t*20|0)&p)+4>>2]|0)}Yl(c[(Uc&p)>>2]|0,xb)|0;w=c[(Uc&p)>>2]|0;v=e[(w&o)+8>>1]|0;if(v&18){u=c[(w&p)+12>>2]|0;if(v&16384)u=(c[(w&p)>>2]|0)+u|0;if((u|0)>(c[((c[(w&p)+32>>2]|0)&p)+88>>2]|0)){g=m;m=r;u=x;ie=1316;break c}else{C=L;T=t;u=g}}else{C=L;T=t;u=g}break}case 88:case 87:case 86:case 85:{g=m;H=C;m=r;r=t;ie=184;break d}case 39:{g=m;m=r;J=L;r=t;ie=208;break d}case 37:{g=m;m=r;u=L;r=t;ie=202;break d}case 38:{g=m;m=r;J=L;r=t;ie=203;break d}case 83:case 80:case 81:case 82:case 78:case 79:{g=m;I=J;m=r;u=L;ie=213;break d}case 40:{V=c[(s+(t*20|0)&p)+4>>2]|0;g=z+(V*40|0)|0;if(!(b[(z+(V*40|0)&o)+8>>1]&16384))u=0;else u=Rg(g)|0;gm(g,c[(s+(t*20|0)&p)+8>>2]&255,Jc);C=L;T=t;break}case 41:{g=m;m=r;u=L;r=t;ie=248;break d}case 42:{g=m;m=r;u=L;r=t;ie=249;break d}case 43:{g=m;m=r;u=L;ie=256;break d}case 71:case 72:{g=m;m=r;r=t;ie=261;break d}case 76:{g=m;m=r;u=L;r=t;ie=286;break d}case 19:{g=m;m=r;r=t;ie=268;break d}case 96:{g=m;m=r;r=t;ie=273;break d}case 44:{g=m;m=r;u=L;r=t;ie=278;break d}case 46:case 45:{g=m;m=r;u=L;r=t;ie=281;break d}case 77:{g=m;m=r;u=L;r=t;ie=288;break d}case 47:{g=m;m=r;u=L;ie=290;break d}case 48:{g=m;m=r;u=L;r=t;ie=368;break d}case 49:{g=m;m=r;ie=371;break d}case 50:{E=c[(c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]&p)>>2]|0;f:do if(c[(E&p)+60>>2]|0){g=qm(E)|0;if(!g){K=E+76|0;H=E+44|0;F=E+72|0;v=0;u=0;g:while(1){C=b[(K&o)>>1]|0;J=c[(E+(C<<16>>16<<2)&p)+120>>2]|0;if(!(a[(J&n)+5>>0]|0)){if(!(a[(J&n)+2>>0]|0)){v=jw(e[(J&o)+18>>1]|0,0,v|0,u|0)|0;u=G}}else{v=jw(e[(J&o)+18>>1]|0,0,v|0,u|0)|0;u=G;while(1){if(!(C<<16>>16))break g;if(J){Bg(c[(J&p)+68>>2]|0);C=b[(K&o)>>1]|0}C=C+-1<<16>>16;b[(K&o)>>1]=C;b[(H&o)>>1]=0;a[(F&n)>>0]=d[(F&n)>>0]&249;J=C<<16>>16;A=E+(J<<1)+78|0;I=b[(A&o)>>1]|0;J=c[(E+(J<<2)&p)+120>>2]|0;if((I&65535)<(e[(J&o)+18>>1]|0)){C=I;break}}b[(A&o)>>1]=C+1<<16>>16;J=b[(K&o)>>1]|0;C=J;J=c[(E+(J<<16>>16<<2)&p)+120>>2]|0}C=b[(E+(C<<16>>16<<1)&o)+78>>1]|0;A=c[(J&p)+56>>2]|0;if(C<<16>>16==(b[(J&o)+18>>1]|0)){g=d[(J&n)+6>>0]|0;g=rm(E,d[(A+g&n)+9>>0]<<16|d[(A+g&n)+8>>0]<<24|d[(A+g&n)+10>>0]<<8|d[(A+g&n)+11>>0])|0}else{g=(C&65535)<<1;V=c[(J&p)+64>>2]|0;g=(d[(V+g&n)>>0]<<8|d[(V+(g|1)&n)>>0])&e[(J&o)+20>>1];g=rm(E,d[(A+g&n)+1>>0]<<16|d[(A+g&n)>>0]<<24|d[(A+g&n)+2>>0]<<8|d[(A+g&n)+3>>0])|0}if(g){v=0;u=0;break f}}g=qm(E)|0}else{v=0;u=0}}else{g=0;v=0;u=0}while(0);C=L;c[(C&p)>>2]=v;c[(C&p)+4>>2]=u;C=L;T=t;u=g;break}case 2:{O=c[(s+(t*20|0)&p)+4>>2]|0;v=c[(s+(t*20|0)&p)+16>>2]|0;if(!O){g=m;m=r;r=t;ie=446;break d}g=c[(Pb&p)>>2]|0;if(!g){s=v;g=m;m=r;u=x;ie=460;break c}else u=0;while(1){if(!(dd(c[(g&p)>>2]|0,v)|0)){M=g;break}g=c[(g&p)+24>>2]|0;if(!g){s=v;g=m;m=r;u=x;ie=460;break c}else u=u+1|0}H=(O|0)==1;if((c[(ae&p)>>2]|0)>0&H){g=m;m=r;u=x;ie=462;break c}F=M+24|0;if(!(c[(F&p)>>2]|0)){A=(a[(Sb&n)>>0]|0)!=0;if(A&H){g=tm(f,1)|0;if(g)break a;a[(ee&n)>>0]=1;if((Rl(f)|0)==5){g=t;ie=467;break c}a[(Sb&n)>>0]=0;A=1;K=u;u=c[(me&p)>>2]|0}else ie=469}else{A=0;ie=469}if((ie|0)==469){ie=0;K=(c[(Ob&p)>>2]|0)-u+-1|0;if((O|0)==2){C=(c[(Tb&p)>>2]|0)>>>1&1;if((c[(Ub&p)>>2]|0)>0){J=C^1;I=0;while(1){u=Il(c[((c[(Xd&p)>>2]|0)+(I<<4)&p)+4>>2]|0,516,J)|0;I=I+1|0;if(u){g=m;m=r;ie=1318;break c}g=c[(Ub&p)>>2]|0;if((I|0)>=(g|0)){ie=475;break}}}}else{g=c[(Ub&p)>>2]|0;C=0;ie=475}if((ie|0)==475){ie=0;if((g|0)>0){E=0;do{u=um(c[((c[(Xd&p)>>2]|0)+(E<<4)&p)+4>>2]|0,O,K)|0;E=E+1|0;if(u){g=m;m=r;ie=1318;break c}}while((E|0)<(c[(Ub&p)>>2]|0))}}if(!C)u=0;else{C=c[(Vb&p)>>2]|0;if(C)do{V=C+88|0;b[(V&o)>>1]=b[(V&o)>>1]|8;C=c[(C&p)+52>>2]|0}while((C|0)!=0);Eg(le);c[(Tb&p)>>2]=c[(Tb&p)>>2]|2;u=0}}C=c[(Pb&p)>>2]|0;if((C|0)!=(M|0))do{c[(Pb&p)>>2]=c[(C&p)+24>>2];mg(le,C);c[(Ob&p)>>2]=(c[(Ob&p)>>2]|0)+-1;C=c[(Pb&p)>>2]|0}while((C|0)!=(M|0));if(H){c[(Pb&p)>>2]=c[(F&p)>>2];mg(le,M);if(A){C=L;T=t;break e}else{g=m;C=O;m=r;A=K;E=L;r=t;ie=486;break d}}else{V=M+8|0;U=c[(V&p)+4>>2]|0;T=Qb;c[(T&p)>>2]=c[(V&p)>>2];c[(T&p)+4>>2]=U;T=M+16|0;U=c[(T&p)+4>>2]|0;V=Rb;c[(V&p)>>2]=c[(T&p)>>2];c[(V&p)+4>>2]=U;if(A){C=L;T=t;break e}else{C=O;g=m;m=r;A=K;E=L;r=t;ie=488;break d}}}case 3:{u=x;ie=489;break c}case 4:{v=s+(t*20|0)+8|0;g=c[(v&p)>>2]|0;if((g|0)!=0?(c[(Tb&p)>>2]&33554432|0)!=0:0){g=m;m=r;u=8;ie=1318;break c}I=s+(t*20|0)+4|0;J=c[((c[(Xd&p)>>2]|0)+(c[(I&p)>>2]<<4)&p)+4>>2]|0;if(!J){v=0;u=0;g=0}else{u=yg(J,g)|0;if((u|0)==5){g=t;ie=508;break c}else if(u){g=m;m=r;ie=1318;break c}do if((c[(v&p)>>2]|0)!=0?(b[(Yd&o)>>1]&32)!=0:0){if((a[(ee&n)>>0]|0)!=0?(c[(Zb&p)>>2]|0)<=1:0){g=0;break}g=c[(Wb&p)>>2]|0;if(!g){g=(c[(Nb&p)>>2]|0)+1|0;c[(Nb&p)>>2]=g;g=(c[(Ob&p)>>2]|0)+g|0;c[(Wb&p)>>2]=g}g=sm(le,0,g+-1|0)|0;if(!g){g=c[(Wb&p)>>2]|0;V=c[(J&p)+4>>2]|0;c[(V&p)+4>>2]=c[(J&p)>>2];g=hl(c[(V&p)>>2]|0,g)|0}V=Qb;U=c[(V&p)+4>>2]|0;T=Xb;c[(T&p)>>2]=c[(V&p)>>2];c[(T&p)+4>>2]=U;T=Rb;U=c[(T&p)+4>>2]|0;V=Yb;c[(V&p)>>2]=c[(T&p)>>2];c[(V&p)+4>>2]=U}else g=0;while(0);v=c[(J&p)+4>>2]|0;c[(v&p)+4>>2]=c[(J&p)>>2];v=c[((c[(v&p)+12>>2]|0)&p)+56>>2]|0;v=d[(v&n)+41>>0]<<16|d[(v&n)+40>>0]<<24|d[(v&n)+42>>0]<<8|d[(v&n)+43>>0];u=c[((c[((c[(Xd&p)>>2]|0)+(c[(I&p)>>2]<<4)&p)+12>>2]|0)&p)+4>>2]|0}if(a[(s+(t*20|0)&n)+3>>0]|0){if((v|0)!=(c[(s+(t*20|0)&p)+12>>2]|0)){g=m;s=I;m=r;u=x;ie=522;break c}if((u|0)!=(c[(s+(t*20|0)&p)+16>>2]|0)){g=m;s=I;m=r;u=x;ie=522;break c}else{C=L;T=t;u=g}}else{C=L;T=t;u=g}break}case 53:{g=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;if((g|0)!=0?(c[(g&p)+28>>2]|0)==(c[(s+(t*20|0)&p)+8>>2]|0):0){v=s+(t*20|0)+3|0;u=0;ie=548}else ie=536;break}case 51:{g=m;m=r;u=L;r=t;ie=525;break d}case 52:{A=s+(t*20|0)+4|0;g=c[(A&p)>>2]|0;v=c[(Xd&p)>>2]|0;C=c[(s+(t*20|0)&p)+12>>2]|0;w=z+(C*40|0)|0;u=Vg(w)|0;V=w;c[(V&p)>>2]=u;c[(V&p)+4>>2]=G;C=z+(C*40|0)+8|0;b[(C&o)>>1]=e[(C&o)>>1]&48640|4;C=s+(t*20|0)+8|0;u=Dg(c[(v+(g<<4)&p)+4>>2]|0,c[(C&p)>>2]|0,u)|0;C=c[(C&p)>>2]|0;if((C|0)==1){c[(c[(v+(g<<4)&p)+12>>2]&p)>>2]=c[(w&p)>>2];c[(Tb&p)>>2]=c[(Tb&p)>>2]|2}else if((C|0)==2)a[((c[(v+(g<<4)&p)+12>>2]|0)&n)+76>>0]=c[(w&p)>>2];if((c[(A&p)>>2]|0)==1){g=c[(Vb&p)>>2]|0;if(g)do{V=g+88|0;b[(V&o)>>1]=b[(V&o)>>1]|8;g=c[(g&p)+52>>2]|0}while((g|0)!=0);b[(Yd&o)>>1]=b[(Yd&o)>>1]&-9;C=L;T=t}else{C=L;T=t}break}case 55:case 54:{ie=536;break}case 57:case 56:{g=xm(f,c[(s+(t*20|0)&p)+4>>2]|0,c[(s+(t*20|0)&p)+8>>2]|0,-1,1)|0;if(!g){y=ge;z=je;g=m;m=x;ie=1317;break a}a[(g&n)+25>>0]=1;J=g+27|0;a[(J&n)>>0]=a[(J&n)>>0]|1;v=g+4|0;I=s+(t*20|0)+3|0;u=zm(c[(le&p)>>2]|0,0,le,v,d[(I&n)>>0]|5,1054)|0;do if(!u){u=yg(c[(v&p)>>2]|0,1)|0;if(!u){A=c[(s+(t*20|0)&p)+16>>2]|0;C=c[(v&p)>>2]|0;if(!A){u=ym(C,1,1,0,c[(g&p)>>2]|0)|0;a[(J&n)>>0]=a[(J&n)>>0]|4;break}u=Am(C,ud,d[(I&n)>>0]|2)|0;if(!u){c[(g&p)+8>>2]=A;u=ym(c[(v&p)>>2]|0,c[(ud&p)>>2]|0,1,A,c[(g&p)>>2]|0)|0}a[(J&n)>>0]=a[(J&n)>>0]&-5}}while(0);a[(J&n)>>0]=((a[(I&n)>>0]|0)!=8&1)<<3&255|a[(J&n)>>0]&-9;C=L;T=t;break}case 58:{g=m;m=r;ie=558;break d}case 60:{g=m;m=r;u=L;ie=568;break d}case 61:{g=m;m=r;u=L;r=t;ie=570;break d}case 59:{g=m;m=r;u=L;r=t;ie=566;break d}case 65:case 64:case 63:case 62:{g=m;K=u;m=r;r=t;ie=571;break d}case 66:{g=m;m=r;u=L;r=t;ie=596;break d}case 69:case 68:case 67:{g=m;H=C;m=r;u=L;ie=597;break d}case 73:{g=m;m=r;u=L;r=t;ie=624;break d}case 70:{V=c[(s+(t*20|0)&p)+12>>2]|0;g=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;u=c[(g&p)>>2]|0;c[(Cd&p)>>2]=0;V=z+(V*40|0)|0;U=c[(V&p)>>2]|0;V=c[(V&p)+4>>2]|0;u=Cm(u,0,U,V,0,Cd)|0;v=g+48|0;c[(v&p)>>2]=U;c[(v&p)+4>>2]=V;a[(g&n)+25>>0]=0;c[(g&p)+60>>2]=0;a[(g&n)+26>>0]=0;v=c[(Cd&p)>>2]|0;if(v)t=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;c[(g&p)+12>>2]=v;C=L;T=t;break}case 74:{H=Pd;c[(H&p)>>2]=0;c[(H&p)+4>>2]=0;c[(Dd&p)>>2]=0;H=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;g=c[(H&p)>>2]|0;if(!g){u=0;v=0;g=0}else{K=H+27|0;do if(!(a[(K&n)>>0]&2)){u=Hm(g,Dd)|0;if(u){g=m;m=r;ie=1318;break c}if(c[(Dd&p)>>2]|0){V=Pd;c[(V&p)>>2]=1;c[(V&p)+4>>2]=0;break}km(c[(H&p)>>2]|0,Pd);u=Pd;g=c[(u&p)>>2]|0;u=c[(u&p)+4>>2]|0;if((g|0)==-1&(u|0)==2147483647){a[(K&n)>>0]=a[(K&n)>>0]|2;break}else{U=jw(g|0,u|0,1,0)|0;V=Pd;c[(V&p)>>2]=U;c[(V&p)+4>>2]=G;break}}while(0);J=c[(s+(t*20|0)&p)+12>>2]|0;if(J){g=c[(sb&p)>>2]|0;if(!g)C=z;else{while(1){u=c[(g&p)+4>>2]|0;if(!u)break;else g=u}C=c[(g&p)+16>>2]|0}I=C+(J*40|0)|0;A=Vg(I)|0;g=G;V=I;c[(V&p)>>2]=A;c[(V&p)+4>>2]=g;V=C+(J*40|0)+8|0;b[(V&o)>>1]=e[(V&o)>>1]&48640|4;if((A|0)==-1&(g|0)==2147483647){g=m;m=r;u=13;ie=1318;break c}if(a[(K&n)>>0]&2){g=m;m=r;u=13;ie=1318;break c}J=Pd;u=c[(J&p)>>2]|0;J=c[(J&p)+4>>2]|0;C=jw(A|0,g|0,1,0)|0;g=G;if((J|0)<(g|0)|(J|0)==(g|0)&u>>>0>>0){V=Pd;c[(V&p)>>2]=C;c[(V&p)+4>>2]=g}else{C=u;g=J}V=I;c[(V&p)>>2]=C;c[(V&p)+4>>2]=g}h:do if(!(a[(K&n)>>0]&2))g=0;else{u=0;while(1){cd(8,Pd);V=Pd;V=jw(c[(V&p)>>2]|0,c[(V&p)+4>>2]&1073741823|0,1,0)|0;g=G;U=Pd;c[(U&p)>>2]=V;c[(U&p)+4>>2]=g;g=Cm(c[(H&p)>>2]|0,0,V,g,0,Dd)|0;if(c[(Dd&p)>>2]|g)break h;u=u+1|0;if((u|0)>=100){g=m;m=r;u=13;ie=1318;break c}}}while(0);a[(H&n)+26>>0]=0;c[(H&p)+60>>2]=0;v=Pd;u=c[(v&p)>>2]|0;v=c[(v&p)+4>>2]|0}C=L;c[(C&p)>>2]=u;c[(C&p)+4>>2]=v;C=L;T=t;u=g;break}case 84:case 75:{g=m;C=J;m=r;u=L;r=t;ie=647;break d}case 95:{g=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;u=Jm(c[(g&p)>>2]|0)|0;c[(g&p)+60>>2]=0;if((((u|0)==0?(Gc=c[(gc&p)>>2]|0,(Gc|0)!=0):0)?(Hc=c[(s+(t*20|0)&p)+16>>2]|0,(Hc|0)!=0):0)?(a[(g&n)+27>>0]&4)!=0:0){V=g+48|0;bc[Gc&1](c[(hc&p)>>2]|0,9,c[((c[(Xd&p)>>2]|0)+(a[(g&n)+24>>0]<<4)&p)>>2]|0,Hc,c[(V&p)>>2]|0,c[(V&p)+4>>2]|0)}if(!(c[(s+(t*20|0)&p)+8>>2]&1)){C=L;T=t}else{c[(ub&p)>>2]=(c[(ub&p)>>2]|0)+1;C=L;T=t}break}case 98:{g=m;m=r;u=L;r=t;ie=671;break d}case 99:{g=m;m=r;u=L;r=t;ie=672;break d}case 100:{v=c[(s+(t*20|0)&p)+8>>2]|0;C=z+(v*40|0)|0;g=c[((c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0)&p)+56>>2]|0;if(!(a[(g&n)+56>>0]|0)){u=c[(g&p)+36>>2]|0;g=u;u=u+8|0}else{V=c[(g&p)+20>>2]|0;u=c[((c[(V&p)+8>>2]|0)&p)+4>>2]|0;V=c[(V&p)+12>>2]|0;g=V+(u*56|0)+20|0;u=c[(V+(u*56|0)&p)+32>>2]|0}g=c[(g&p)>>2]|0;if(!(fh(C,g)|0)){c[(z+(v*40|0)&p)+12>>2]=g;V=z+(v*40|0)+8|0;b[(V&o)>>1]=e[(V&o)>>1]&48640|16;kw(c[(z+(v*40|0)&p)+16>>2]|0,u|0,g|0)|0;u=0}else u=7;c[((c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+12>>2]<<2)&p)>>2]|0)&p)+60>>2]=0;T=t;break}case 102:case 101:{v=c[(s+(t*20|0)&p)+8>>2]|0;J=z+(v*40|0)|0;A=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;C=c[(A&p)>>2]|0;A=A+27|0;if(a[(A&n)>>0]&4){lm(C,ed);g=c[(ed&p)>>2]|0;if(g>>>0>(c[(zb&p)>>2]|0)>>>0){g=m;m=r;u=x;ie=1316;break c}}else{km(C,fd);T=fd;g=c[(T&p)>>2]|0;T=c[(T&p)+4>>2]|0;V=c[(zb&p)>>2]|0;U=((V|0)<0)<<31>>31;if((T|0)>(U|0)|(T|0)==(U|0)&g>>>0>V>>>0){g=m;m=r;u=x;ie=1316;break c}c[(ed&p)>>2]=g}if(fh(J,g>>>0>32?g:32)|0){y=ge;z=je;g=m;m=x;ie=1317;break a}c[(z+(v*40|0)&p)+12>>2]=g;g=z+(v*40|0)+8|0;b[(g&o)>>1]=e[(g&o)>>1]&48640|16;g=c[(ed&p)>>2]|0;u=c[(z+(v*40|0)&p)+16>>2]|0;if(!(a[(A&n)>>0]&4))u=Lm(C,0,g,u,0)|0;else u=Dh(C,0,g,u)|0;a[(z+(v*40|0)&n)+10>>0]=1;C=J;T=t;break}case 103:{v=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;w=v+25|0;if(a[(w&n)>>0]|0){g=m;m=r;u=L;r=t;ie=700;break d}do if(!(a[(v&n)+26>>0]|0)){g=c[(v&p)+32>>2]|0;if(g){V=c[(g&p)>>2]|0;u=rc[c[((c[(V&p)>>2]|0)&p)+48>>2]&127](g,Rd)|0;Mm(f,V);break}if((a[((c[(v&p)>>2]|0)&n)+73>>0]|0)!=1){u=jm(v)|0;if(u){g=m;m=r;ie=1318;break c}if(a[(w&n)>>0]|0){g=m;m=r;u=L;r=t;ie=708;break d}}km(c[(v&p)>>2]|0,Rd);u=0}else{U=v+48|0;V=c[(U&p)+4>>2]|0;u=Rd;c[(u&p)>>2]=c[(U&p)>>2];c[(u&p)+4>>2]=V;u=0}while(0);V=Rd;T=c[(V&p)+4>>2]|0;C=L;c[(C&p)>>2]=c[(V&p)>>2];c[(C&p)+4>>2]=T;C=L;T=t;break}case 108:{ie=715;break}case 104:{g=m;m=r;u=L;r=t;ie=711;break d}case 107:case 106:{c[(ic&p)>>2]=(c[(ic&p)>>2]|0)+1;ie=715;break}case 105:{T=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;u=c[(T&p)>>2]|0;c[(Ed&p)>>2]=0;u=Hm(u,Ed)|0;V=c[(Ed&p)>>2]|0;a[(T&n)+25>>0]=V;a[(T&n)+26>>0]=0;c[(T&p)+60>>2]=0;T=c[(s+(t*20|0)&p)+8>>2]|0;C=L;T=(T|0)>0&(V|0)!=0?T+-1|0:t;break}case 7:case 6:{if(!(c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0)){g=m;m=r;S=z;T=s;U=W;V=X;u=L;r=t;break d}else ie=765;break}case 5:{g=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;c[(Fd&p)>>2]=0;w=c[(g&p)+56>>2]|0;if(a[(w&n)+56>>0]|0){u=Wm(c[(w&p)+20>>2]|0,Fd)|0;ie=766;break e}u=w+36|0;v=c[(u&p)>>2]|0;V=v+4|0;c[(u&p)>>2]=c[(V&p)>>2];c[(V&p)>>2]=0;if(!((c[(w&p)+40>>2]|0)!=0|(v|0)==0))mg(le,v);c[(Fd&p)>>2]=(c[(u&p)>>2]|0)==0&1;u=0;ie=766;break}case 9:case 8:{ie=765;break}case 110:case 109:{A=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;S=c[(s+(t*20|0)&p)+8>>2]|0;u=c[(A&p)>>2]|0;C=s+(t*20|0)+3|0;if(a[(C&n)>>0]&1)c[(ub&p)>>2]=(c[(ub&p)>>2]|0)+1;if((b[(z+(S*40|0)&o)+8>>1]&16384)!=0?(Ud=Rg(z+(S*40|0)|0)|0,(Ud|0)!=0):0){g=m;m=r;s=Ud;u=x;ie=1309;break c}H=c[(A&p)+56>>2]|0;T=z+(S*40|0)+12|0;P=c[(T&p)>>2]|0;if(!H){if(!(a[(C&n)>>0]&16))g=0;else g=c[(A&p)+12>>2]|0;u=Im(u,c[(z+(S*40|0)&p)+16>>2]|0,P,((P|0)<0)<<31>>31,10360,0,0,c[(s+(t*20|0)&p)+12>>2]|0,g)|0;c[(A&p)+60>>2]=0;C=L;T=t;break e}C=P;g=((P|0)<0)<<31>>31;A=0;do{A=A+1|0;C=mw(C|0,g|0,7)|0;g=G}while(((C|0)!=0|(g|0)!=0)&(A|0)<9);K=P+8|0;I=A+P|0;M=H+4|0;A=c[(M&p)>>2]|0;do if(!A)u=0;else{if(!(c[(H&p)+40>>2]|0)){C=H+44|0;V=c[(C&p)>>2]|0;if((V|0)<=(A|0)?!((c[2265]|0)!=0?(V|0)>(c[(H&p)>>2]|0):0):0){u=0;break}}else{V=c[(H&p)+48>>2]|0;if(!((V|0)!=0&(V+K|0)>(A|0))){u=0;break}C=H+44|0}u=Om(H)|0;c[(C&p)>>2]=0;c[(H&p)+48>>2]=0}while(0);C=H+36|0;J=H+44|0;c[(J&p)>>2]=(c[(J&p)>>2]|0)+I;J=H+8|0;if((I|0)>(c[(J&p)>>2]|0))c[(J&p)>>2]=I;E=H+40|0;J=c[(E&p)>>2]|0;if(!J){g=qg(K,((K|0)<0)<<31>>31)|0;if(!g){g=m;m=r;s=7;u=x;ie=1309;break c}c[(g&p)+4>>2]=c[(C&p)>>2]}else{g=H+48|0;I=c[(g&p)>>2]|0;K=I+K|0;F=H+52|0;H=c[(F&p)>>2]|0;if((K|0)>(H|0)){I=H;do I=I<<1;while((I|0)<(K|0));V=c[(M&p)>>2]|0;I=(I|0)>(V|0)?V:I;I=(I|0)<(K|0)?K:I;J=rg(J,I,((I|0)<0)<<31>>31)|0;if(!J){g=m;m=r;s=7;u=x;ie=1309;break c}A=J+((c[(C&p)>>2]|0)-(c[(E&p)>>2]|0))|0;c[(C&p)>>2]=A;c[(E&p)>>2]=J;c[(F&p)>>2]=I;I=c[(g&p)>>2]|0}else A=c[(C&p)>>2]|0;c[(g&p)>>2]=I+(P+15&-8);c[(J+I&p)+4>>2]=A-J;g=J+I|0}kw(g+8|0,c[(z+(S*40|0)&p)+16>>2]|0,c[(T&p)>>2]|0)|0;c[(g&p)>>2]=c[(T&p)>>2];c[(C&p)>>2]=g;C=L;T=t;break}case 112:{g=m;m=r;r=t;ie=801;break d}case 111:{v=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;g=c[(v&p)>>2]|0;c[(yd&p)>>2]=c[(v&p)+8>>2];b[(kc&o)>>1]=c[(s+(t*20|0)&p)+12>>2];a[(nc&n)>>0]=0;c[(oc&p)>>2]=z+((c[(s+(t*20|0)&p)+8>>2]|0)*40|0);u=Cm(g,yd,0,0,0,Gd)|0;if(!(c[(Gd&p)>>2]|u))u=Jm(g)|0;c[(v&p)+60>>2]=0;C=L;T=t;break}case 116:case 115:case 114:case 113:{u=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;c[(zd&p)>>2]=c[(u&p)+8>>2];b[(xc&o)>>1]=c[(s+(t*20|0)&p)+16>>2];a[(Y&n)>>0]=((J&255)<115)<<31>>31;c[(Z&p)>>2]=z+((c[(s+(t*20|0)&p)+12>>2]|0)*40|0);V=Sd;c[(V&p)>>2]=0;c[(V&p)+4>>2]=0;km(c[(u&p)>>2]|0,Sd);V=Sd;g=c[(V&p)>>2]|0;V=jw(g|0,c[(V&p)+4>>2]|0,-1,-1)|0;U=G;if(!(U>>>0>0|(U|0)==0&V>>>0>2147483646)){b[(_&o)>>1]=0;c[($&p)>>2]=le;c[(aa&p)>>2]=0;g=nm(c[(u&p)>>2]|0,0,g,1,qd)|0;if(!g){u=Km(c[(ea&p)>>2]|0,c[(ga&p)>>2]|0,zd,0)|0;if((b[(_&o)>>1]&9312)==0&(c[(aa&p)>>2]|0)==0)g=0;else{Qg(qd);g=0}}else u=0}else{c[(ke&p)>>2]=68730;c[(ke&p)+4>>2]=10788;bd(11,13600,ke);g=11;u=0}if((((a[(C&n)>>0]&1)==0?u+1|0:0-u|0)|0)>0){C=L;T=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;u=g}else{C=L;T=t;u=g}break}case 117:{O=L+8|0;b[(O&o)>>1]=1;if((c[(Zb&p)>>2]|0)>((c[(ha&p)>>2]|0)+1|0)){g=m;m=r;u=x;ie=832;break c}N=c[(s+(t*20|0)&p)+12>>2]|0;M=c[((c[(Xd&p)>>2]|0)+(N<<4)&p)+4>>2]|0;P=s+(t*20|0)+4|0;I=c[(P&p)>>2]|0;C=M+4|0;K=c[(C&p)>>2]|0;c[(K&p)+4>>2]=c[(M&p)>>2];c[(ke&p)>>2]=0;do if(!(c[(K&p)+8>>2]|0)){u=dl(K,I,ke,0)|0;if(!u){u=Xm(M,I,0)|0;if(u){g=c[(ke&p)>>2]|0;if(!g){A=0;break}Bg(c[(g&p)+68>>2]|0);A=0;break}if(I>>>0<=1){g=c[(ke&p)>>2]|0;pl(g,9);if(!g){u=0;A=0;break}Bg(c[(g&p)+68>>2]|0);u=0;A=0;break}if(!(a[(K&n)+17>>0]|0)){g=c[(ke&p)>>2]|0;u=Ym(c[(g&p)+52>>2]|0,g,c[(g&p)+72>>2]|0)|0;if(!g){A=0;break}Bg(c[(g&p)+68>>2]|0);A=0;break}J=c[(C&p)>>2]|0;c[(J&p)+4>>2]=c[(M&p)>>2];J=c[((c[(J&p)+12>>2]|0)&p)+56>>2]|0;J=d[(J&n)+53>>0]<<16|d[(J&n)+52>>0]<<24|d[(J&n)+54>>0]<<8|d[(J&n)+55>>0];C=c[(ke&p)>>2]|0;if((J|0)==(I|0)){u=Ym(c[(C&p)+52>>2]|0,C,c[(C&p)+72>>2]|0)|0;if(C)Bg(c[(C&p)+68>>2]|0);if(!u)A=0;else{A=0;break}}else{if(C)Bg(c[(C&p)+68>>2]|0);u=dl(K,J,Sd,0)|0;if(u){A=0;break}C=c[(Sd&p)>>2]|0;u=Zm(K,C,1,0,I,0)|0;if(C)Bg(c[(C&p)+68>>2]|0);if(u){A=0;break}c[(Sd&p)>>2]=0;u=dl(K,J,Sd,0)|0;C=c[(Sd&p)>>2]|0;if(u){if(!C){A=0;break}}else u=Ym(c[(C&p)+52>>2]|0,C,c[(C&p)+72>>2]|0)|0;Bg(c[(C&p)+68>>2]|0);if(!u)A=J;else{A=0;break}}H=((c[2514]|0)>>>0)/((c[(K&p)+32>>2]|0)>>>0)|0;F=H+1|0;I=K+36|0;while(1){C=J+-1|0;if((C|0)==(F|0)){J=C;continue}if(C>>>0<2)E=0;else{E=J+-3|0;E=E-((E>>>0)%(((((c[(I&p)>>2]|0)>>>0)/5|0)+1|0)>>>0)|0)|0;E=((E+1|0)==(H|0)?3:2)+E|0}if((E|0)==(C|0))J=C;else break}u=Dg(M,4,C)|0}else A=0}else{u=262;A=0}while(0);b[(O&o)>>1]=4;V=L;c[(V&p)>>2]=A;c[(V&p)+4>>2]=((A|0)<0)<<31>>31;if((u|0)==0&(A|0)!=0){g=m;K=N;C=P;m=r;u=L;r=t;ie=865;break d}else{C=L;T=t}break}case 118:{c[(jd&p)>>2]=0;g=s+(t*20|0)+12|0;u=Xm(c[((c[(Xd&p)>>2]|0)+(c[(s+(t*20|0)&p)+8>>2]<<4)&p)+4>>2]|0,c[(s+(t*20|0)&p)+4>>2]|0,(c[(g&p)>>2]|0)!=0?jd:0)|0;g=c[(g&p)>>2]|0;if((g|0)!=0?(Ic=c[(jd&p)>>2]|0,c[(ub&p)>>2]=(c[(ub&p)>>2]|0)+Ic,(g|0)>0):0){C=z+(g*40|0)|0;T=C;T=jw(c[(T&p)>>2]|0,c[(T&p)+4>>2]|0,Ic|0,((Ic|0)<0)<<31>>31|0)|0;c[(C&p)>>2]=T;c[(C&p)+4>>2]=G;C=L;T=t}else{C=L;T=t}break}case 121:case 120:{c[(vd&p)>>2]=0;u=Am(c[((c[(Xd&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<4)&p)+4>>2]|0,vd,J<<24>>24==121?1:2)|0;T=c[(vd&p)>>2]|0;C=L;c[(C&p)>>2]=T;c[(C&p)+4>>2]=((T|0)<0)<<31>>31;C=L;T=t;break}case 119:{g=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;u=c[(g&p)+56>>2]|0;if(u){g=m;m=r;J=L;r=t;ie=878;break d}u=c[(g&p)>>2]|0;C=L;T=t;u=Xm(c[(u&p)>>2]|0,c[(u&p)+60>>2]|0,0)|0;break}case 123:{C=L;T=t;u=an(le,c[(s+(t*20|0)&p)+4>>2]|0)|0;break}case 124:{g=m;m=r;u=L;r=t;ie=886;break d}case 122:{g=m;m=r;J=L;r=t;ie=881;break d}case 126:{g=m;m=r;u=L;r=t;ie=895;break d}case 125:{g=m;m=r;J=L;r=t;ie=887;break d}case 127:{g=m;m=r;u=L;ie=903;break d}case 128:{g=m;m=r;J=L;ie=947;break d}case 129:{w=c[(s+(t*20|0)&p)+4>>2]|0;v=z+(w*40|0)|0;w=z+(w*40|0)+8|0;g=b[(w&o)>>1]|0;do if(g&32){E=c[(v&p)>>2]|0;u=E+26|0;g=b[(u&o)>>1]|0;if(!(g&2)){if(!(g&1)){g=E+8|0;c[(g&p)>>2]=kn(c[(g&p)>>2]|0)|0;g=b[(u&o)>>1]|0}b[(u&o)>>1]=g&65535|2}C=E+8|0;A=c[(C&p)>>2]|0;if(!A){g=b[(w&o)>>1]|0;break}w=A;v=c[(w&p)>>2]|0;w=c[(w&p)+4>>2]|0;V=c[(A&p)+8>>2]|0;c[(C&p)>>2]=V;if(!V)Zk(E);u=c[(s+(t*20|0)&p)+12>>2]|0;g=z+(u*40|0)|0;u=z+(u*40|0)+8|0;if(!(b[(u&o)>>1]&9312)){ie=g;c[(ie&p)>>2]=v;c[(ie&p)+4>>2]=w;b[(u&o)>>1]=4;u=0;ie=19;break e}else{Zg(g,v,w);u=0;ie=19;break e}}while(0);if(!(g&9312))b[(w&o)>>1]=1;else vg(v);t=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;u=0;ie=19;break}case 130:{g=m;m=r;u=L;ie=966;break d}case 131:{g=m;m=r;u=L;r=t;ie=993;break d}case 132:{g=m;m=r;u=L;r=t;ie=1009;break d}case 134:{g=m;m=r;J=L;r=t;ie=1010;break d}case 135:{g=m;m=r;u=L;r=t;ie=1015;break d}case 136:{g=m;m=r;r=t;ie=1022;break d}case 137:{g=m;m=r;u=L;r=t;ie=1028;break d}case 138:{g=m;m=r;u=L;r=t;ie=1030;break d}case 139:{g=m;m=r;J=L;r=t;ie=1032;break d}case 140:{g=m;m=r;u=L;r=t;ie=1034;break d}case 141:{g=m;m=r;u=L;r=t;ie=1036;break d}case 10:{V=a[(s+(t*20|0)&n)+3>>0]|0;g=V&255;u=c[(Bb&p)>>2]|0;if(V<<24>>24){v=0;w=z+((c[(s+(t*20|0)&p)+8>>2]|0)*40|0)|0;while(1){c[(u+(v<<2)&p)>>2]=w;v=v+1|0;if((v|0)>=(g|0))break;else w=w+40|0}}V=c[(s+(t*20|0)&p)+16>>2]|0;c[(Ga&p)>>2]=V;U=c[(s+(t*20|0)&p)+12>>2]|0;c[(Ha&p)>>2]=z+(U*40|0);U=z+(U*40|0)+12|0;c[(U&p)>>2]=(c[(U&p)>>2]|0)+1;b[(Ia&o)>>1]=1;c[(Ja&p)>>2]=le;c[(Ka&p)>>2]=0;c[(Vc&p)>>2]=Md;c[(La&p)>>2]=0;c[(Ma&p)>>2]=f;c[(Na&p)>>2]=t;a[(Oa&n)>>0]=0;mc[c[(V&p)+16>>2]&63](Vc,g,u);if(!(c[(La&p)>>2]|0))u=0;else{c[(ke&p)>>2]=Sg(Md,1)|0;dh(je,le,10344,ke);u=c[(La&p)>>2]|0}do if((a[(Oa&n)>>0]|0)!=0?(Mc=c[(s+((t+-1|0)*20|0)&p)+4>>2]|0,(Mc|0)!=0):0){g=z+(Mc*40|0)|0;v=z+(Mc*40|0)+8|0;if(!(b[(v&o)>>1]&9312)){V=g;c[(V&p)>>2]=1;c[(V&p)+4>>2]=0;b[(v&o)>>1]=4;break}else{Zg(g,1,0);break}}while(0);if((b[(Ia&o)>>1]&9312)==0&(c[(Ka&p)>>2]|0)==0){C=L;T=t}else{Qg(Md);C=L;T=t}break}case 11:{c[(Rc&p)>>2]=0;c[(Pa&p)>>2]=-1;c[(Qa&p)>>2]=-1;g=Wh(le,c[(s+(t*20|0)&p)+4>>2]|0,c[(s+(t*20|0)&p)+8>>2]|0,Qa,Pa)|0;if((g|0)==5){c[(Rc&p)>>2]=1;g=0}v=0;w=z+((c[(s+(t*20|0)&p)+12>>2]|0)*40|0)|0;while(1){C=c[(Rc+(v<<2)&p)>>2]|0;A=((C|0)<0)<<31>>31;u=w+8|0;if(!(b[(u&o)>>1]&9312)){V=w;c[(V&p)>>2]=C;c[(V&p)+4>>2]=A;b[(u&o)>>1]=4}else Zg(w,C,A);v=v+1|0;if((v|0)==3){C=L;T=t;u=g;break}else w=w+40|0}break}case 142:{C=c[(s+(t*20|0)&p)+4>>2]|0;v=z+(C*40|0)|0;u=Yk(v,c[(s+(t*20|0)&p)+16>>2]|0)|0;if(u){c[(ke&p)>>2]=Sg(v,1)|0;dh(je,le,10344,ke)}Yl(v,xb)|0;w=e[(z+(C*40|0)&o)+8>>1]|0;if(w&18){g=c[(z+(C*40|0)&p)+12>>2]|0;if(w&16384)g=(c[(v&p)>>2]|0)+g|0;if((g|0)>(c[((c[(z+(C*40|0)&p)+32>>2]|0)&p)+88>>2]|0)){g=m;m=r;u=x;ie=1316;break c}else{C=L;T=t}}else{C=L;T=t}break}case 12:{g=c[(s+(t*20|0)&p)+12>>2]|0;L=c[((c[(Xd&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<4)&p)+4>>2]|0;I=c[(c[(L&p)+4>>2]&p)>>2]|0;J=a[(I&n)+5>>0]|0;H=J&255;g=(g|0)==-1?H:g;do if((d[(I&n)+16>>0]|0)>2)g=H;else if((c[(c[(I&p)+64>>2]&p)>>2]|0)!=0?(V=I+72|0,U=c[(V&p)+4>>2]|0,(U|0)>0|(U|0)==0&(c[(V&p)>>2]|0)>>>0>0):0){g=H;break}while(0);if(!(a[(I&n)+15>>0]|0))A=c[(I&p)+168>>2]|0;else A=10360;K=(g|0)==5;if(K)if(A){C=A;while(1)if(!(a[(C&n)>>0]|0))break;else C=C+1|0;if(C-A&1073741823){C=c[(c[(I&p)+60>>2]&p)>>2]|0;if(!(a[(I&n)+4>>0]|0))if((c[(C&p)>>2]|0)>1?!((c[(C&p)+52>>2]|0)==0|(g|0)==(H|0)):0)ie=1077;else{g=H;u=0}else ie=1076}else{g=H;u=0}}else{g=H;u=0}else ie=1076;if((ie|0)==1076){ie=0;if((g|0)==(H|0)){g=H;u=0}else ie=1077}do if((ie|0)==1077){ie=0;C=J<<24>>24==5;if(C|K){if(!(a[(ee&n)>>0]|0)){g=m;s=K;m=r;u=x;ie=1080;break c}if((c[(Zb&p)>>2]|0)>1){g=m;s=K;m=r;u=x;ie=1080;break c}if(!C){if(J<<24>>24==4)sn(I,2)|0}else{J=I+208|0;if(!(c[(J&p)>>2]|0)){c[(_c&p)>>2]=0;u=fl(I,1)|0;if(u)break;u=c[(I&p)>>2]|0;u=pc[c[(u&p)+32>>2]&31](u,c[(I&p)+212>>2]|0,0,_c)|0;if((u|0)==0&(c[(_c&p)>>2]|0)!=0)u=pn(I)|0;if(u)break;if(c[(J&p)>>2]|0)ie=1088}else ie=1088;if((ie|0)==1088){ie=0;u=qn(I)|0;if(u)break;u=rn(c[(J&p)>>2]|0,d[(I&n)+9>>0]|0,c[(I&p)+152>>2]|0,c[(I&p)+200>>2]|0)|0;c[(J&p)>>2]=0;if(u)break}sn(I,g)|0}u=Fg(L,K?2:1)|0}else u=0}while(0);g=sn(I,(u|0)==0?g:H)|0;C=c[(s+(t*20|0)&p)+8>>2]|0;J=z+(C*40|0)|0;b[(z+(C*40|0)&o)+8>>1]=2562;if((g|0)==6){c[(z+(C*40|0)&p)+16>>2]=0;g=0}else{v=c[(g<<2&p)+32216>>2]|0;c[(z+(C*40|0)&p)+16>>2]=v;g=v;while(1)if(!(a[(g&n)>>0]|0))break;else g=g+1|0;g=g-v&1073741823}c[(z+(C*40|0)&p)+12>>2]=g;a[(z+(C*40|0)&n)+10>>0]=1;Yl(J,xb)|0;C=J;T=t;break}case 13:{if(!(a[(ee&n)>>0]|0)){g=m;m=r;u=x;ie=1101;break c}if((c[(Ra&p)>>2]|0)>1){g=m;m=r;u=x;ie=1103;break c}S=c[(Tb&p)>>2]|0;N=c[(vb&p)>>2]|0;w=c[(wb&p)>>2]|0;v=c[(Sa&p)>>2]|0;c[(Tb&p)>>2]=S&-2762753|2107392;c[(Sa&p)>>2]=0;g=c[((c[(Xd&p)>>2]|0)&p)+4>>2]|0;P=g+4|0;I=a[((c[(c[(P&p)>>2]&p)>>2]|0)&n)+15>>0]|0;V=c[(Ub&p)>>2]|0;u=tn(le,je,(a[(_b&n)>>0]|0)==2?42432:42464)|0;J=c[(Ub&p)>>2]|0;if((J|0)>(V|0))M=(c[(Xd&p)>>2]|0)+(J+-1<<4)|0;else M=0;i:do if(!u){O=c[((c[(Xd&p)>>2]|0)+(J+-1<<4)&p)+4>>2]|0;un(O)|0;T=c[(P&p)>>2]|0;c[(T&p)+4>>2]=c[(g&p)>>2];T=(c[(T&p)+32>>2]|0)-(c[(T&p)+36>>2]|0)|0;u=tn(le,je,42488)|0;if(!u){u=tn(le,je,42528)|0;if(!u){u=yg(g,2)|0;if(!u){J=c[(P&p)>>2]|0;if((a[((c[(J&p)>>2]|0)&n)+5>>0]|0)==5)c[(Ta&p)>>2]=0;if(!(xg(O,c[(J&p)+32>>2]|0,T,0)|0)){if(I<<24>>24==0?(xg(O,c[(Ta&p)>>2]|0,T,0)|0)!=0:0){u=7;break}if(a[(ge&n)>>0]|0){u=7;break}J=a[(Ua&n)>>0]|0;do if(J<<24>>24>-1)J=J<<24>>24;else{J=c[(P&p)>>2]|0;c[(J&p)+4>>2]=c[(g&p)>>2];if(!(a[(J&n)+17>>0]|0)){J=0;break}J=(a[(J&n)+18>>0]|0)==0?1:2}while(0);vn(O,J)|0;u=wn(le,je,42536)|0;if(u)break;u=wn(le,je,42688)|0;if(u)break;u=wn(le,je,42792)|0;if(u)break;u=wn(le,je,42912)|0;if(u)break;u=wn(le,je,43112)|0;if(u)break;u=wn(le,je,43232)|0;if(u)break;u=tn(le,je,43392)|0;if(!u)J=0;else break;do{u=d[(J&n)+43576>>0]|0;wm(g,u,ad);u=Dg(O,u,(d[((J|1)&n)+43576>>0]|0)+(c[(ad&p)>>2]|0)|0)|0;J=J+2|0;if(u)break i}while((J|0)<10);H=c[(P&p)>>2]|0;c[(H&p)+4>>2]=c[(g&p)>>2];J=c[(O&p)>>2]|0;K=O+4|0;I=c[(K&p)>>2]|0;c[(I&p)+4>>2]=J;H=c[((c[(H&p)>>2]|0)&p)+60>>2]|0;F=c[(H&p)>>2]|0;if(F){V=c[(I&p)+32>>2]|0;V=sw(c[(I&p)+44>>2]|0,0,V|0,((V|0)<0)<<31>>31|0)|0;u=id;c[(u&p)>>2]=V;c[(u&p)+4>>2]=G;u=ac[c[(F&p)+40>>2]&63](H,11,id)|0;u=(u|0)==12?0:u;if(u)break;J=c[(O&p)>>2]|0}U=Tc+0|0;V=U+48|0;do{c[(U&p)>>2]=0;U=U+4|0}while((U|0)<(V|0));c[(Va&p)>>2]=J;c[(Wa&p)>>2]=O;c[(Xa&p)>>2]=g;c[(Ya&p)>>2]=1;gd(Tc,2147483647)|0;u=hd(Tc)|0;if(u){C=c[(c[((c[(Xa&p)>>2]|0)&p)+4>>2]&p)>>2]|0;if(a[(C&n)+15>>0]|0)break;if(a[(C&n)+12>>0]|0)break;xn(C);break}u=(c[(P&p)>>2]|0)+22|0;b[(u&o)>>1]=e[(u&o)>>1]&65533;u=un(O)|0;if(u)break;J=c[(K&p)>>2]|0;c[(J&p)+4>>2]=c[(O&p)>>2];if(!(a[(J&n)+17>>0]|0))E=0;else E=(a[(J&n)+18>>0]|0)==0?1:2;vn(g,E)|0;u=xg(g,c[((c[(K&p)>>2]|0)&p)+32>>2]|0,T,1)|0}else u=7}}}}while(0);c[(Tb&p)>>2]=S;c[(vb&p)>>2]=N;c[(wb&p)>>2]=w;c[(Sa&p)>>2]=v;xg(g,-1,-1,1)|0;a[(ee&n)>>0]=1;if(M){V=M+4|0;Ml(c[(V&p)>>2]|0);c[(V&p)>>2]=0;c[(M&p)+12>>2]=0}Eg(le);C=L;T=t;break}case 143:{V=c[((c[(Xd&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<4)&p)+4>>2]|0;I=c[(V&p)+4>>2]|0;c[(I&p)+4>>2]=c[(V&p)>>2];if(!(a[(I&n)+17>>0]|0)){g=m;m=r;u=L;ie=1157;break d}E=I+44|0;H=c[(E&p)>>2]|0;A=I+12|0;C=c[((c[(A&p)>>2]|0)&p)+56>>2]|0;C=d[(C&n)+37>>0]<<16|d[(C&n)+36>>0]<<24|d[(C&n)+38>>0]<<8|d[(C&n)+39>>0];F=El(I,H,C)|0;if(H>>>0>>0){g=m;m=r;u=x;ie=1145;break c}if(!C){g=m;m=r;u=L;ie=1157;break d}J=I+8|0;g=c[(J&p)>>2]|0;do if(g){C=g;do{if(C){ie=1150;break}C=c[2]|0}while((C|0)!=0);if((ie|0)==1150){ie=0;u=Fl(C,0,0)|0;if(u)break;g=c[(J&p)>>2]|0}if(g){do{V=g+72|0;a[(V&n)>>0]=d[(V&n)>>0]&251;g=c[(g&p)+8>>2]|0}while((g|0)!=0);ie=1154}else ie=1154}else ie=1154;while(0);if((ie|0)==1154){ie=0;u=Gl(I,F,H,0)|0;if(!u){u=Gg(c[((c[(A&p)>>2]|0)&p)+68>>2]|0)|0;V=c[((c[(A&p)>>2]|0)&p)+56>>2]|0;U=c[(E&p)>>2]|0;a[(V&n)+28>>0]=U>>>24;a[(V&n)+29>>0]=U>>>16;a[(V&n)+30>>0]=U>>>8;a[(V&n)+31>>0]=U}}if((u|0)==101){g=m;m=r;u=L;ie=1157;break d}else{C=L;T=t}break}case 145:{g=c[(s+(t*20|0)&p)+12>>2]|0;if((g&255|0)==0?(c[(Tb&p)>>2]&16384|0)!=0:0){g=m;m=r;S=z;T=s;U=W;V=X;u=L;r=t;break d}C=c[((c[(Xd&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<4)&p)+4>>2]|0;A=c[(s+(t*20|0)&p)+8>>2]|0;if(!(a[(C&n)+9>>0]|0)){g=m;m=r;S=z;T=s;U=W;V=X;u=L;r=t;break d}v=g+1&255;w=C+4|0;c[((c[(w&p)>>2]|0)&p)+4>>2]=c[(C&p)>>2];u=bl(C,A,v)|0;if(!u){g=m;m=r;u=L;r=t;ie=1166;break d}if((u&255|0)!=6){g=m;m=r;s=u;u=x;ie=1309;break c}c[(ke&p)>>2]=c[(s+(t*20|0)&p)+16>>2];dh(je,le,42224,ke);C=L;T=t;break}case 144:{g=m;m=r;u=L;r=t;ie=1158;break d}case 146:{J=c[(s+(t*20|0)&p)+16>>2]|0;v=c[(Za&p)>>2]|0;u=(v|0)>0;if(u?(c[(_a&p)>>2]|0)==0:0){u=6;ie=1188}else ie=1179;j:do if((ie|0)==1179){ie=0;if(!J){g=m;m=r;S=z;T=s;U=W;V=X;u=L;r=t;break d}g=J+8|0;w=(c[(c[(g&p)>>2]&p)>>2]|0)+56|0;if(c[(w&p)>>2]|0){if(u){C=c[(_a&p)>>2]|0;A=0;do{if((c[(C+(A<<2)&p)>>2]|0)==(J|0)){u=0;ie=1188;break j}A=A+1|0}while((A|0)<(v|0))}u=yn(le)|0;if(!u){u=lc[c[(w&p)>>2]&127](c[(g&p)>>2]|0)|0;if(!u){u=c[(Za&p)>>2]|0;c[(Za&p)>>2]=u+1;c[((c[(_a&p)>>2]|0)+(u<<2)&p)>>2]=J;u=J+12|0;c[(u&p)>>2]=(c[(u&p)>>2]|0)+1;u=0}}else ie=1188}else u=0}while(0);if((ie|0)==1188){ie=0;if(!J){C=L;T=t;break e}g=J+8|0}Mm(f,c[(g&p)>>2]|0);C=L;T=t;break}case 147:{U=Kd+0|0;V=U+40|0;do{c[(U&p)>>2]=0;U=U+4|0}while((U|0)<(V|0));c[($a&p)>>2]=le;g=_g(Kd,z+((c[(s+(t*20|0)&p)+8>>2]|0)*40|0)|0)|0;u=Sg(Kd,1)|0;k:do if(u){v=_h(le,u,c[((c[(Xd&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<4)&p)>>2]|0)|0;g=c[(c[(v&p)+56>>2]&p)>>2]|0;u=bn(cb,g,Xc)|0;if((u|0)!=0?(Oc=c[(u&p)+8>>2]|0,(Oc|0)!=0):0){g=zn(le,v,Oc,c[((c[(Oc&p)>>2]|0)&p)+4>>2]|0,je)|0;if(g)break;u=v+60|0;g=c[(u&p)>>2]|0;if(!g){g=0;break}while(1){if((c[(g&p)>>2]|0)==(le|0))break;g=c[(g&p)+24>>2]|0;if(!g){g=0;break k}}g=yn(le)|0;if(g)break;g=c[(u&p)>>2]|0;l:do if(!g)g=0;else while(1){if((c[(g&p)>>2]|0)==(le|0))break l;g=c[(g&p)+24>>2]|0;if(!g){g=0;break}}while(0);V=c[(Za&p)>>2]|0;c[(Za&p)>>2]=V+1;c[((c[(_a&p)>>2]|0)+(V<<2)&p)>>2]=g;g=g+12|0;c[(g&p)>>2]=(c[(g&p)>>2]|0)+1;g=0;break}c[(ke&p)>>2]=g;c[(je&p)>>2]=uh(le,28320,ke)|0;g=1}while(0);if((b[(ab&o)>>1]&9312)==0&(c[(bb&p)>>2]|0)==0){C=L;T=t;u=g}else{Qg(Kd);C=L;T=t;u=g}break}case 148:{c[(ha&p)>>2]=(c[(ha&p)>>2]|0)+1;g=_h(le,c[(s+(t*20|0)&p)+16>>2]|0,c[((c[(Xd&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<4)&p)>>2]|0)|0;m:do if((g|0)!=0?(Pc=g+60|0,Qc=c[(Pc&p)>>2]|0,(Qc|0)!=0):0){u=Qc;do{if((c[((c[(u&p)+8>>2]|0)&p)+4>>2]|0)>0){u=6;break m}u=c[(u&p)+24>>2]|0}while((u|0)!=0);g=Ok(le,g)|0;v=g+8|0;u=lc[c[((c[(c[(g&p)+4>>2]&p)>>2]|0)&p)+20>>2]&127](c[(v&p)>>2]|0)|0;if(!u){c[(v&p)>>2]=0;c[(Pc&p)>>2]=0;An(g);u=0}}else u=0;while(0);c[(ha&p)>>2]=(c[(ha&p)>>2]|0)+-1;C=L;T=t;break}case 149:{g=m;m=r;u=L;r=t;ie=1213;break d}case 150:{g=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;C=c[(s+(t*20|0)&p)+12>>2]|0;A=z+(C*40|0)|0;if(a[(g&n)+25>>0]|0){g=m;m=r;u=L;r=t;ie=1226;break d}V=g+32|0;u=c[(c[(V&p)>>2]&p)>>2]|0;U=c[(u&p)>>2]|0;c[(Id&p)>>2]=0;c[(Id&p)+4>>2]=0;c[(Id&p)+8>>2]=0;c[(Id&p)+12>>2]=0;c[(Id&p)+16>>2]=0;c[(Id&p)+20>>2]=0;c[(Id&p)+24>>2]=0;c[(Id&p)>>2]=A;v=z+(C*40|0)+8|0;b[(v&o)>>1]=e[(v&o)>>1]&48640|1;V=ac[c[(U&p)+44>>2]&63](c[(V&p)>>2]|0,Id,c[(s+(t*20|0)&p)+8>>2]|0)|0;Mm(f,u);u=c[(db&p)>>2]|0;u=(u|0)==0?V:u;Yl(A,xb)|0;v=e[(v&o)>>1]|0;if(v&18){g=c[(z+(C*40|0)&p)+12>>2]|0;if(v&16384)g=(c[(A&p)>>2]|0)+g|0;if((g|0)>(c[((c[(z+(C*40|0)&p)+32>>2]|0)&p)+88>>2]|0)){g=m;m=r;u=x;ie=1316;break c}else{C=L;T=t}}else{C=L;T=t}break}case 14:{A=c[(s+(t*20|0)&p)+12>>2]|0;C=A+1|0;F=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;J=c[(F&p)+32>>2]|0;I=c[(J&p)>>2]|0;H=c[(I&p)>>2]|0;E=c[(z+(C*40|0)&p)>>2]|0;A=c[(z+(A*40|0)&p)>>2]|0;g=c[(Bb&p)>>2]|0;if((E|0)>0){u=0;do{V=u;u=u+1|0;c[(g+(V<<2)&p)>>2]=z+((u+C|0)*40|0)}while((u|0)!=(E|0))}u=tc[c[(H&p)+32>>2]&31](J,A,c[(s+(t*20|0)&p)+16>>2]|0,E,g)|0;Mm(f,I);if((u|0)==0?(lc[c[(H&p)+40>>2]&127](J)|0)!=0:0)t=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;a[(F&n)+25>>0]=0;C=L;T=t;break}case 151:{g=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;if(a[(g&n)+25>>0]|0){g=m;m=r;S=z;T=s;U=W;V=X;u=L;r=t;break d}g=g+32|0;v=c[(g&p)>>2]|0;V=c[(v&p)>>2]|0;u=c[(V&p)>>2]|0;v=lc[c[(u&p)+36>>2]&127](v)|0;Mm(f,V);if((v|0)==0?(lc[c[(u&p)+40>>2]&127](c[(g&p)>>2]|0)|0)!=0:0){u=0;ie=19;break e}t=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;u=v;ie=19;break}case 15:{F=s+(t*20|0)+16|0;v=c[((c[(F&p)>>2]|0)&p)+8>>2]|0;if(!v){g=m;m=r;s=6;u=x;ie=1309;break c}g=c[(v&p)>>2]|0;if(!g){g=m;m=r;s=6;u=x;ie=1309;break c}I=c[(s+(t*20|0)&p)+8>>2]|0;E=g+52|0;C=c[(E&p)>>2]|0;if(!C){g=m;m=r;S=z;T=s;U=W;V=X;u=L;r=t;break d}H=a[(eb&n)>>0]|0;J=c[(Bb&p)>>2]|0;if((I|0)>0){C=0;A=z+((c[(s+(t*20|0)&p)+12>>2]|0)*40|0)|0;while(1){c[(J+(C<<2)&p)>>2]=A;C=C+1|0;if((C|0)==(I|0))break;else A=A+40|0}C=c[(E&p)>>2]|0}A=s+(t*20|0)+3|0;a[(eb&n)>>0]=a[(A&n)>>0]|0;u=pc[C&31](v,I,J,Hd)|0;a[(eb&n)>>0]=H;Mm(f,v);if(!u){if(c[(s+(t*20|0)&p)+4>>2]|0){l=Hd;r=c[(l&p)>>2]|0;l=c[(l&p)+4>>2]|0;V=ne;c[(V&p)>>2]=r;c[(V&p)+4>>2]=l}}else if((u&255|0)==19?(a[((c[(F&p)>>2]|0)&n)+16>>0]|0)!=0:0){g=a[(A&n)>>0]|0;if(g<<24>>24==5)g=2;else if(g<<24>>24==4){g=m;m=r;S=z;T=s;U=W;V=X;u=L;r=t;break d}a[(fe&n)>>0]=g;C=L;T=t;break e}c[(ub&p)>>2]=(c[(ub&p)>>2]|0)+1;C=L;T=t;break}case 152:{g=c[((c[(s+(t*20|0)&p)+16>>2]|0)&p)+8>>2]|0;u=c[(s+(t*20|0)&p)+4>>2]|0;v=z+(u*40|0)|0;if(((b[(z+(u*40|0)&o)+8>>1]&2)!=0?(a[(z+(u*40|0)&n)+10>>0]|0)!=1:0)?(Wd=Bn(v,1)|0,(Wd|0)!=0):0){g=m;m=r;s=Wd;u=x;ie=1309;break c}u=rc[c[((c[(g&p)>>2]|0)&p)+76>>2]&127](g,c[(z+(u*40|0)&p)+16>>2]|0)|0;Mm(f,g);b[(Yd&o)>>1]=b[(Yd&o)>>1]&-9;C=L;T=t;break}case 153:{g=m;m=r;u=L;r=t;ie=1257;break d}case 155:{g=m;m=r;ie=1264;break d}case 154:{g=m;m=r;J=L;r=t;ie=1258;break d}default:{g=m;m=r;S=z;T=s;U=W;V=X;u=L;r=t;break d}}while(0);n:do if((ie|0)==57){ie=0;w=L+8|0;b[(w&o)>>1]=2562;c[(L&p)+16>>2]=v;c[(L&p)+12>>2]=g;a[(L&n)+10>>0]=Jc;if((a[(s+(t*20|0)&n)+3>>0]|0)!=0?(V=z+((c[(s+(t*20|0)&p)+12>>2]|0)*40|0)|0,!((c[(V&p)>>2]|0)==0&(c[(V&p)+4>>2]|0)==0)):0){b[(w&o)>>1]=2576;C=L;T=t}else{C=L;T=t}}else if((ie|0)==536){if(b[(Yd&o)>>1]&8){g=m;m=r;s=516;u=x;ie=1309;break c}C=c[(s+(t*20|0)&p)+8>>2]|0;I=c[(s+(t*20|0)&p)+12>>2]|0;g=c[(Xd&p)>>2]|0;H=c[(g+(I<<4)&p)+4>>2]|0;if(J<<24>>24==55){g=a[((c[(g+(I<<4)&p)+12>>2]|0)&n)+76>>0]|0;if((g&255)<(d[(Mb&n)>>0]|0)){a[(Mb&n)>>0]=g;J=1}else J=1}else J=0;v=s+(t*20|0)+3|0;if(a[(v&n)>>0]&4){V=z+(C*40|0)|0;g=Vg(V)|0;c[(V&p)>>2]=g;c[(V&p)+4>>2]=G;V=z+(C*40|0)+8|0;b[(V&o)>>1]=e[(V&o)>>1]&48640|4;if((g|0)<2){g=m;m=r;s=x;ie=542;break c}else E=g}else E=C;u=s+(t*20|0)+1|0;C=a[(u&n)>>0]|0;if(C<<24>>24==-6){A=c[(s+(t*20|0)&p)+16>>2]|0;C=(e[(A&o)+8>>1]|0)+(e[(A&o)+6>>1]|0)|0}else if(C<<24>>24==-14){C=c[(s+(t*20|0)&p)+16>>2]|0;A=0}else{C=0;A=0}g=xm(f,c[(s+(t*20|0)&p)+4>>2]|0,C,I,1)|0;if(!g){y=ge;z=je;g=m;m=x;ie=1317;break a}a[(g&n)+25>>0]=1;V=g+27|0;a[(V&n)>>0]=a[(V&n)>>0]|8;c[(g&p)+28>>2]=E;ie=ym(H,E,J,A,c[(g&p)>>2]|0)|0;c[(g&p)+8>>2]=A;a[(V&n)>>0]=((a[(u&n)>>0]|0)!=-6&1)<<2&255|a[(V&n)>>0]&-5;u=ie;ie=548}else if((ie|0)==715){ie=0;M=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;V=c[(M&p)+56>>2]|0;do if(!V){u=c[(M&p)>>2]|0;g=qm(u)|0;if(!g)if(!(a[(u&n)+73>>0]|0)){v=1;g=0}else{v=0;g=Vm(u)|0}else v=1;a[(M&n)+26>>0]=0;c[(M&p)+60>>2]=0;a[(M&n)+25>>0]=v;if(!v){C=L;T=t;u=g;break n}}else{do if(!(a[(V&n)+56>>0]|0)){g=V+36|0;if(!(c[(g&p)>>2]|0)){g=0;ie=756}else{g=Nm(V+64|0,g)|0;ie=755}}else{g=Om(V)|0;if(!g){U=V+59|0;o:do if(!(a[(U&n)>>0]|0)){u=0;g=0}else{w=0;v=0;p:while(1){T=V+(w<<6)+64|0;c[(ke&p)>>2]=0;S=V+(w<<6)+92|0;C=c[(S&p)>>2]|0;J=((C|0)<0)<<31>>31;do if((C|0)>16){I=16;H=0;E=0;while(1){I=iw(I|0,H|0,4)|0;H=G;F=E+1|0;if(!((H|0)<(J|0)|(H|0)==(J|0)&I>>>0>>0)){H=E;break}else E=F}P=Sd;c[(P&p)>>2]=0;c[(P&p)+4>>2]=0;if((C|0)<17){ie=726;break}u=Qm(16)|0;c[(ke&p)>>2]=u;J=(u|0)==0;I=c[(S&p)>>2]|0;if(!((I|0)>0&(J^1))){g=J?7:0;break}N=(H|0)>0;P=0;O=0;do{c[(qd&p)>>2]=0;g=I-P|0;g=Pm(T,(g|0)<16?g:16,Sd,qd)|0;if(g){ie=747;break p}g=Rm(T,c[(qd&p)>>2]|0,pd)|0;do if(N){I=1;J=1;do{J=J<<4;I=I+1|0}while((I|0)!=(F|0));if(!g){H=1;I=u}else{J=c[(pd&p)>>2]|0;ie=743;break}while(1){K=(c[(I&p)+12>>2]|0)+((((O|0)/(J|0)|0|0)%16|0)*56|0)+48|0;I=c[(K&p)>>2]|0;if(!I){I=Qm(16)|0;if(!I){g=7;ie=738;break}g=Rm(T,I,K)|0;if(g){ie=738;break}I=c[(K&p)>>2]|0}I=c[(I&p)+4>>2]|0;H=H+1|0;if((H|0)>=(F|0)){ie=740;break}else J=(J|0)/16|0}if((ie|0)==738){J=c[(pd&p)>>2]|0;ie=743;break}else if((ie|0)==740){J=c[(pd&p)>>2]|0;ie=742;break}}else{J=c[(pd&p)>>2]|0;if(!g){I=u;ie=742}else ie=743}while(0);if((ie|0)==742){ie=0;c[((c[(I&p)+12>>2]|0)+(((O|0)%16|0)*56|0)&p)+48>>2]=J;g=0}else if((ie|0)==743){ie=0;Sm(J)}O=O+1|0;P=P+16|0;I=c[(S&p)>>2]|0}while((P|0)<(I|0)&(g|0)==0)}else{ie=Sd;c[(ie&p)>>2]=0;c[(ie&p)+4>>2]=0;ie=726}while(0);if((ie|0)==726){ie=0;g=Pm(T,C,Sd,ke)|0;u=c[(ke&p)>>2]|0}w=w+1|0;if(g){ie=746;break}if((w|0)>=(d[(U&n)>>0]|0)){g=0;break o}else v=u}if((ie|0)==746)Tm(u);else if((ie|0)==747)Tm(u);Tm(v);u=0}while(0);if(!g){g=Um(V+64|0,u)|0;c[(V&p)+20>>2]=u;if(!g){g=0;ie=755;break}else u=0}Tm(u);ie=755}else ie=756}while(0);if((ie|0)==755){ie=0;a[(M&n)+25>>0]=0;C=L;T=t;u=g;break n}else if((ie|0)==756){ie=0;a[(M&n)+25>>0]=1;break}}while(0);C=L;T=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;u=g}else if((ie|0)==765){u=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;c[(Fd&p)>>2]=c[(s+(t*20|0)&p)+12>>2];g=u;u=rc[c[(s+(t*20|0)&p)+16>>2]&127](c[(u&p)>>2]|0,Fd)|0;ie=766}while(0);do if((ie|0)==548){ie=0;a[((c[(g&p)>>2]|0)&n)+74>>0]=d[(v&n)>>0]&3;C=L;T=t}else if((ie|0)==766){c[(g&p)+60>>2]=0;g=g+25|0;if(!(c[(Fd&p)>>2]|0)){a[(g&n)>>0]=0;ie=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;t=f+(d[(s+(t*20|0)&n)+3>>0]<<2)+108|0;c[(t&p)>>2]=(c[(t&p)>>2]|0)+1;t=ie;ie=19;break}else{a[(g&n)>>0]=1;ie=19;break}}while(0);if((ie|0)==19){ie=0;if(c[(Cc&p)>>2]|0){u=je;g=m;m=x;break b}g=c[(be&p)>>2]|0;if(!((g|0)==0|m>>>0>>0)){y=c[(yc&p)>>2]|0;if(!(lc[g&127](c[(Zd&p)>>2]|0)|0)){y=y+m-((m>>>0)%(y>>>0)|0)|0;C=L;T=t}else{g=m;s=9;m=x;ie=1311;break a}}else{C=L;T=t}}t=T+1|0;if(!u){g=m;u=C}else{g=m;s=u;m=x;ie=1311;break a}}q:switch(ie|0){case 22:{ie=0;S=c[(s+(t*20|0)&p)+4>>2]|0;b[(z+(S*40|0)&o)+8>>1]=4;S=z+(S*40|0)|0;c[(S&p)>>2]=t;c[(S&p)+4>>2]=((t|0)<0)<<31>>31;S=z;T=s;U=W;V=X;r=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;break}case 23:{ie=0;S=c[(s+(t*20|0)&p)+4>>2]|0;r=c[(z+(S*40|0)&p)>>2]|0;b[(z+(S*40|0)&o)+8>>1]=128;S=z;T=s;U=W;V=X;break}case 24:{ie=0;r=c[(s+(t*20|0)&p)+4>>2]|0;u=z+(r*40|0)|0;T=(c[(s+(t*20|0)&p)+12>>2]|0)+-1|0;S=u;c[(S&p)>>2]=T;c[(S&p)+4>>2]=((T|0)<0)<<31>>31;b[(z+(r*40|0)&o)+8>>1]=4;r=c[(s+(t*20|0)&p)+8>>2]|0;S=z;T=s;U=W;V=X;r=(r|0)==0?t:r+-1|0;break}case 25:{ie=0;S=c[(s+(t*20|0)&p)+4>>2]|0;r=(c[(s+((c[(z+(S*40|0)&p)>>2]|0)*20|0)&p)+8>>2]|0)+-1|0;b[(z+(S*40|0)&o)+8>>1]=128;S=z;T=s;U=W;V=X;break}case 26:{ie=0;S=c[(s+(t*20|0)&p)+4>>2]|0;b[(z+(S*40|0)&o)+8>>1]=4;S=z+(S*40|0)|0;r=c[(S&p)>>2]|0;c[(S&p)>>2]=t;c[(S&p)+4>>2]=((t|0)<0)<<31>>31;S=z;T=s;U=W;V=X;break}case 27:{ie=0;if(!(b[(z+((c[(s+(r*20|0)&p)+12>>2]|0)*40|0)&o)+8>>1]&1)){S=z;T=s;U=W;V=X}else ie=28;break}case 44:{ie=0;T=c[(s+(r*20|0)&p)+4>>2]|0;S=u;c[(S&p)>>2]=T;c[(S&p)+4>>2]=((T|0)<0)<<31>>31;S=z;T=s;U=W;V=X;break}case 45:{ie=0;U=c[(s+(r*20|0)&p)+16>>2]|0;T=c[(U&p)+4>>2]|0;S=u;c[(S&p)>>2]=c[(U&p)>>2];c[(S&p)+4>>2]=T;S=z;T=s;U=W;V=X;break}case 46:{ie=0;b[(u&o)+8>>1]=8;h[(u&q)>>3]=+h[(c[(s+(r*20|0)&p)+16>>2]&q)>>3];S=z;T=s;U=W;V=X;break}case 60:{ie=0;J=(c[(s+(r*20|0)&p)+12>>2]|0)-(c[(s+(r*20|0)&p)+8>>2]|0)|0;t=(c[(s+(r*20|0)&p)+4>>2]|0)!=0?257:1;b[(u&o)+8>>1]=t;if((J|0)>0){w=J;A=u;do{v=A+48|0;A=A+40|0;if(!(b[(v&o)>>1]&9312))b[(v&o)>>1]=1;else vg(A);b[(v&o)>>1]=t;w=w+-1|0}while((w|0)>0);S=z;T=s;U=W;V=X;u=u+(J*40|0)|0}else{S=z;T=s;U=W;V=X}break}case 65:{ie=0;u=c[(s+(r*20|0)&p)+4>>2]|0;S=z+(u*40|0)+8|0;b[(S&o)>>1]=e[(S&o)>>1]&65406|1;S=z;T=s;U=W;V=X;u=z+(u*40|0)|0;break}case 66:{ie=0;Xg(u,c[(s+(r*20|0)&p)+16>>2]|0,c[(s+(r*20|0)&p)+4>>2]|0,0,0)|0;a[(u&n)+10>>0]=Jc;S=z;T=s;U=W;V=X;break}case 67:{ie=0;C=(c[(s+(r*20|0)&p)+4>>2]|0)+-1|0;A=c[(Ab&p)>>2]|0;w=A+(C*40|0)|0;v=e[(A+(C*40|0)&o)+8>>1]|0;if(v&18){t=c[(A+(C*40|0)&p)+12>>2]|0;if(v&16384)t=(c[(w&p)>>2]|0)+t|0;if((t|0)>(c[((c[(A+(C*40|0)&p)+32>>2]|0)&p)+88>>2]|0)){t=r;u=x;ie=1316;break c}}Zl(u,w,2048);S=z;T=s;U=W;V=X;break}case 72:{ie=0;t=c[(s+(r*20|0)&p)+12>>2]|0;v=c[(s+(r*20|0)&p)+8>>2]|0;J=t+v|0;u=z+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)|0;v=z+(v*40|0)|0;while(1){_l(v,u);t=t+-1|0;if(!t)break;else{u=u+40|0;v=v+40|0}}S=z;T=s;U=W;V=X;u=z+(J*40|0)|0;break}case 74:{ie=0;r=c[(s+(t*20|0)&p)+12>>2]|0;u=z+((c[(s+(t*20|0)&p)+4>>2]|0)*40|0)|0;J=z+((c[(s+(t*20|0)&p)+8>>2]|0)*40|0)|0;while(1){Zl(J,u,4096);if((b[(J&o)+8>>1]&4096)!=0?(Vl(J)|0)!=0:0){y=ge;z=je;r=m;m=x;ie=1317;break a}if(!r){S=z;T=s;U=W;V=X;u=J;r=t;break q}r=r+-1|0;u=u+40|0;J=J+40|0}}case 79:{ie=0;u=z+((c[(s+(r*20|0)&p)+8>>2]|0)*40|0)|0;Zl(u,z+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)|0,4096);S=z;T=s;U=W;V=X;break}case 94:{ie=0;K=c[(s+(t*20|0)&p)+4>>2]|0;J=z+(K*40|0)|0;L=c[(s+(t*20|0)&p)+8>>2]|0;I=z+(L*40|0)|0;M=c[(s+(t*20|0)&p)+12>>2]|0;u=z+(M*40|0)|0;H=z+(K*40|0)+8|0;E=b[(H&o)>>1]|0;F=z+(L*40|0)+8|0;C=b[(F&o)>>1]|0;if((C|E)&1){r=z+(M*40|0)+8|0;if(!(b[(r&o)>>1]&9312)){b[(r&o)>>1]=1;S=z;T=s;U=W;V=X;r=t;break}else{vg(u);S=z;T=s;U=W;V=X;r=t;break}}if(E&16384){if(Rg(J)|0){y=ge;z=je;r=m;m=x;ie=1317;break a}C=b[(F&o)>>1]|0}if((C&16384)!=0?(Rg(I)|0)!=0:0){y=ge;z=je;r=m;m=x;ie=1317;break a}if((b[(H&o)>>1]&18)==0?(bm(J,Jc,0)|0)!=0:0){y=ge;z=je;r=m;m=x;ie=1317;break a}if((b[(F&o)>>1]&18)==0?(bm(I,Jc,0)|0)!=0:0){y=ge;z=je;r=m;m=x;ie=1317;break a}E=z+(K*40|0)+12|0;A=z+(L*40|0)+12|0;r=(c[(A&p)>>2]|0)+(c[(E&p)>>2]|0)|0;if((r|0)>(c[(zb&p)>>2]|0)){u=x;ie=1316;break c}v=(M|0)==(L|0);if(eh(u,r+2|0,v&1)|0){y=ge;z=je;r=m;m=x;ie=1317;break a}w=z+(M*40|0)+8|0;b[(w&o)>>1]=e[(w&o)>>1]&48640|2;C=z+(M*40|0)+16|0;if(!v)kw(c[(C&p)>>2]|0,c[(z+(L*40|0)&p)+16>>2]|0,c[(A&p)>>2]|0)|0;kw((c[(C&p)>>2]|0)+(c[(A&p)>>2]|0)|0,c[(z+(K*40|0)&p)+16>>2]|0,c[(E&p)>>2]|0)|0;a[((c[(C&p)>>2]|0)+r&n)>>0]=0;a[((c[(C&p)>>2]|0)+r&n)+1>>0]=0;b[(w&o)>>1]=e[(w&o)>>1]|512;c[(z+(M*40|0)&p)+12>>2]=r;a[(z+(M*40|0)&n)+10>>0]=Jc;S=z;T=s;U=W;V=X;r=t;break}case 112:{ie=0;V=c[(s+(r*20|0)&p)+4>>2]|0;N=z+(V*40|0)|0;S=cm(N)|0;w=c[(s+(r*20|0)&p)+8>>2]|0;O=z+(w*40|0)|0;T=cm(O)|0;U=c[(s+(r*20|0)&p)+12>>2]|0;u=z+(U*40|0)|0;r:do if(!((b[(z+(w*40|0)&o)+8>>1]|b[(z+(V*40|0)&o)+8>>1])&1)){s:do if(!((S&4&T)<<16>>16))L=0;else{t=N;C=c[(t&p)>>2]|0;t=c[(t&p)+4>>2]|0;F=O;v=c[(F&p)>>2]|0;F=c[(F&p)+4>>2]|0;J=d[(P&n)>>0]|0;t:do if((J|0)==89){if((t|0)>-1|(t|0)==-1&C>>>0>4294967295){V=dw(-1,2147483647,v|0,F|0)|0;w=G;if(((F|0)>0|(F|0)==0&v>>>0>0)&((w|0)<(t|0)|(w|0)==(t|0)&V>>>0>>0)){L=1;break s}}else if((F|0)<0?(w=dw(1,-2147483648,v|0,F|0)|0,A=G,V=jw(C|0,t|0,1,0)|0,M=G,(A|0)>(M|0)|(A|0)==(M|0)&w>>>0>V>>>0):0){L=1;break s}v=jw(v|0,F|0,C|0,t|0)|0;t=G}else if((J|0)==91){L=qw(v|0,F|0,0,1)|0;K=G;E=rw(v|0,F|0,0,1)|0;A=G;J=qw(C|0,t|0,0,1)|0;I=G;M=rw(C|0,t|0,0,1)|0;w=G;V=jw(v|0,F|0,-1,0)|0;pe=G;H=jw(C|0,t|0,-1,0)|0;qe=G;H=qe>>>0<1|(qe|0)==1&H>>>0<4294967295;do if(pe>>>0<1|(pe|0)==1&V>>>0<4294967295)if(H){v=sw(v|0,F|0,C|0,t|0)|0;t=G;break t}else{H=sw(J|0,I|0,E|0,A|0)|0;F=G;break}else{if(!H){L=1;break s}H=sw(M|0,w|0,L|0,K|0)|0;F=G}while(0);V=jw(H|0,F|0,-2147483648,0)|0;v=G;if(v>>>0>0|(v|0)==0&V>>>0>4294967295){L=1;break s}J=sw(M|0,w|0,E|0,A|0)|0;I=G;if((I|0)>-1|(I|0)==-1&J>>>0>4294967295){V=dw(-1,2147483647,0,H|0)|0;w=G;if(((F|0)>0|(F|0)==0&H>>>0>0)&((w|0)<(I|0)|(w|0)==(I|0)&V>>>0>>0)){L=1;break s}}else if((F|0)<0?(w=dw(1,-2147483648,0,H|0)|0,t=G,V=jw(J|0,I|0,1,0)|0,v=G,(t|0)>(v|0)|(t|0)==(v|0)&w>>>0>V>>>0):0){L=1;break s}v=jw(0,H|0,J|0,I|0)|0;t=G}else if((J|0)==90){if((C|0)==0&(t|0)==-2147483648){if((F|0)>-1|(F|0)==-1&v>>>0>4294967295){L=1;break s}t=F^-2147483648;break}if((t|0)<0|(t|0)==0&C>>>0<1){V=dw(0,0,C|0,t|0)|0;M=G;w=dw(-1,2147483647,v|0,F|0)|0;A=G;if(((F|0)>0|(F|0)==0&v>>>0>0)&((A|0)<(M|0)|(A|0)==(M|0)&w>>>0>>0)){L=1;break s}}else if((F|0)<0?(w=dw(1,-2147483648,v|0,F|0)|0,A=G,V=dw(1,0,C|0,t|0)|0,M=G,(A|0)>(M|0)|(A|0)==(M|0)&w>>>0>V>>>0):0){L=1;break s}v=dw(v|0,F|0,C|0,t|0)|0;t=G}else if((J|0)==92){if((C|0)==0&(t|0)==0)break r;if((C|0)==-1&(t|0)==-1&((v|0)==0&(F|0)==-2147483648)){L=1;break s}v=qw(v|0,F|0,C|0,t|0)|0;t=G}else{if((C|0)==-1){if((t|0)==-1){C=1;t=0}}else if((C|0)==0?(t|0)==0:0)break r;v=rw(v|0,F|0,C|0,t|0)|0;t=G}while(0);S=u;c[(S&p)>>2]=v;c[(S&p)+4>>2]=t;S=z+(U*40|0)+8|0;b[(S&o)>>1]=e[(S&o)>>1]&48640|4;S=z;T=s;U=W;V=X;break q}while(0);D=+Ug(N);B=+Ug(O);C=d[(P&n)>>0]|0;if((C|0)==89)B=D+B;else if((C|0)==90)B=B-D;else if((C|0)==91)B=D*B;else if((C|0)==92){if(D==0.0)break;B=B/D}else{E=~~D>>>0;C=+R(D)>=1.0?(D>0.0?~~+da(+Q(D/4294967296.0),4294967295.0)>>>0:~~+ba((D-+(~~D>>>0))/4294967296.0)>>>0):0;I=~~B>>>0;J=+R(B)>=1.0?(B>0.0?~~+da(+Q(B/4294967296.0),4294967295.0)>>>0:~~+ba((B-+(~~B>>>0))/4294967296.0)>>>0):0;if(!E){if(!C)break}else if((E|0)==-1?(C|0)==-1:0){E=1;C=0}V=rw(I|0,J|0,E|0,C|0)|0;B=+(V>>>0)+4294967296.0*+(G|0)}h[(ke&q)>>3]=B;h[(Sd&q)>>3]=+h[(ke&q)>>3];if(!(+h[(ke&q)>>3]!=+h[(Sd&q)>>3])){h[(u&q)>>3]=B;V=z+(U*40|0)+8|0;b[(V&o)>>1]=e[(V&o)>>1]&48640|8;if(((T|S)&8)!=0|L<<24>>24!=0){S=z;T=s;U=W;V=X;break q}dm(u);S=z;T=s;U=W;V=X;break q}}while(0);t=z+(U*40|0)+8|0;if(!(b[(t&o)>>1]&9312)){b[(t&o)>>1]=1;S=z;T=s;U=W;V=X;break}else{vg(u);S=z;T=s;U=W;V=X;break}}case 166:{ie=0;t=c[(s+(r*20|0)&p)+4>>2]|0;if(t){u=z+(t*40|0)|0;t=z+(t*40|0)+8|0;if(!(b[(t&o)>>1]&9312)){S=u;c[(S&p)>>2]=0;c[(S&p)+4>>2]=0;b[(t&o)>>1]=4;S=z;T=s;U=W;V=X;u=J;break}else{Zg(u,0,0);S=z;T=s;U=W;V=X;u=J;break}}else{S=z;T=s;U=W;V=X;u=J}break}case 184:{ie=0;C=c[(s+(r*20|0)&p)+4>>2]|0;t=c[(s+(r*20|0)&p)+8>>2]|0;K=c[(s+(r*20|0)&p)+12>>2]|0;u=z+(K*40|0)|0;if((b[(z+(t*40|0)&o)+8>>1]|b[(z+(C*40|0)&o)+8>>1])&1){t=z+(K*40|0)+8|0;if(!(b[(t&o)>>1]&9312)){b[(t&o)>>1]=1;S=z;T=s;U=W;V=X;break}else{vg(u);S=z;T=s;U=W;V=X;break}}A=Vg(z+(t*40|0)|0)|0;L=G;J=Vg(z+(C*40|0)|0)|0;I=G;t=a[(H&n)>>0]|0;C=t&255;do if(t<<24>>24==86){A=J|A;t=I|L}else if(t<<24>>24!=85)if(!((J|0)==0&(I|0)==0)){if((I|0)<0){t=175-C&255;C=dw(0,0,J|0,I|0)|0;if((I|0)>-1|(I|0)==-1&J>>>0>4294967232){I=G;ie=194}}else{C=J;ie=194}if((ie|0)==194){ie=0;if(!((I|0)>0|(I|0)==0&C>>>0>63)){if(t<<24>>24==87){A=iw(A|0,L|0,C|0)|0;t=G;break}A=mw(A|0,L|0,C|0)|0;t=G;if((L|0)>=0)break;V=dw(64,0,C|0,I|0)|0;V=iw(-1,-1,V|0)|0;A=V|A;t=G|t;break}}if((L|0)>-1|(L|0)==-1&A>>>0>4294967295){A=0;t=0}else{t=(t<<24>>24!=87)<<31>>31;A=t;t=((t|0)<0)<<31>>31}}else t=L;else{A=J&A;t=I&L}while(0);S=u;c[(S&p)>>2]=A;c[(S&p)+4>>2]=t;S=z+(K*40|0)+8|0;b[(S&o)>>1]=e[(S&o)>>1]&48640|4;S=z;T=s;U=W;V=X;break}case 202:{ie=0;T=c[(s+(r*20|0)&p)+4>>2]|0;S=z+(T*40|0)|0;U=Vg(S)|0;T=z+(T*40|0)+8|0;b[(T&o)>>1]=e[(T&o)>>1]&48640|4;T=c[(s+(r*20|0)&p)+8>>2]|0;T=jw(U|0,G|0,T|0,((T|0)<0)<<31>>31|0)|0;c[(S&p)>>2]=T;c[(S&p)+4>>2]=G;S=z;T=s;U=W;V=X;break}case 203:{ie=0;u=c[(s+(r*20|0)&p)+4>>2]|0;v=z+(u*40|0)+8|0;t=b[(v&o)>>1]|0;if(!(t&4)){fm(z+(u*40|0)|0,67,Jc);t=b[(v&o)>>1]|0;if(!(t&4)){E=c[(s+(r*20|0)&p)+8>>2]|0;if(!E){t=r;u=20;ie=1318;break c}S=z;T=s;U=W;V=X;u=J;r=E+-1|0;break}}b[(v&o)>>1]=t&48640|4;S=z;T=s;U=W;V=X;u=J;break}case 208:{ie=0;t=c[(s+(r*20|0)&p)+4>>2]|0;u=z+(t*40|0)+8|0;if(!(b[(u&o)>>1]&4)){S=z;T=s;U=W;V=X;u=J}else{S=z+(t*40|0)|0;h[(S&q)>>3]=+Ug(S);b[(u&o)>>1]=e[(u&o)>>1]&48640|8;S=z;T=s;U=W;V=X;u=J}break}case 213:{ie=0;N=c[(s+(t*20|0)&p)+4>>2]|0;L=z+(N*40|0)|0;w=c[(s+(t*20|0)&p)+12>>2]|0;K=z+(w*40|0)|0;N=z+(N*40|0)+8|0;F=b[(N&o)>>1]|0;w=z+(w*40|0)+8|0;M=b[(w&o)>>1]|0;H=F&65535;A=M&65535;v=s+(t*20|0)+3|0;J=d[(v&n)>>0]|0;do if(!((M|F)&1)){J=J&71;if(J>>>0>66){if((H&14|0)==2){rh(L,0);A=b[(w&o)>>1]|0}else A=M;if((A&14)==2){rh(K,0);J=F;E=M}else{J=F;E=M}}else if((J|0)==66){if((H&2|0)!=0|(H&12|0)==0){I=M;J=F}else{bm(L,Jc,1)|0;I=b[(w&o)>>1]|0;J=(e[(N&o)>>1]&65024|H&511)&65535}V=I&65535;if((V&2|0)!=0|(V&12|0)==0)E=M;else{bm(K,Jc,1)|0;E=(e[(w&o)>>1]&65024|A&511)&65535}}else{J=F;E=M}if(b[(N&o)>>1]&16384){Rg(L)|0;J=J&49151}if(b[(w&o)>>1]&16384){Rg(K)|0;E=E&49151}if(a[(ge&n)>>0]|0){y=ge;z=je;r=m;m=x;ie=1317;break a}V=hm(K,L,c[(s+(t*20|0)&p)+16>>2]|0)|0;I=a[(C&n)>>0]|0;r=t;C=V}else{if(J&128){J=F;E=M;r=t;C=(F&1&M)<<16>>16!=0&(A&256|0)==0&1^1;break}if(J&32){u=c[(s+(t*20|0)&p)+8>>2]|0;S=z+(u*40|0)+8|0;b[(S&o)>>1]=e[(S&o)>>1]&48640|1;S=z;T=s;U=W;V=X;u=z+(u*40|0)|0;r=t;break q}if(!(J&16)){S=z;T=s;U=W;V=X;r=t;break q}S=z;T=s;U=W;V=X;r=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;break q}while(0);switch(I&255|0){case 79:{C=(C|0)==0&1;break}case 78:{C=(C|0)!=0&1;break}case 82:{C=C>>>31;break}case 81:{C=(C|0)<1&1;break}case 80:{C=(C|0)>0&1;break}default:C=C>>>31^1}if(!(a[(v&n)>>0]&32)){if(C)r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0}else{V=c[(s+(r*20|0)&p)+8>>2]|0;u=z+(V*40|0)|0;V=z+(V*40|0)+8|0;b[(V&o)>>1]=e[(V&o)>>1]&48640|4;V=u;c[(V&p)>>2]=C;c[(V&p)+4>>2]=0}b[(N&o)>>1]=J;b[(w&o)>>1]=E;S=z;T=s;U=W;V=X;break}case 248:{ie=0;S=z;T=s;U=c[(s+(r*20|0)&p)+16>>2]|0;V=X;break}case 249:{ie=0;w=(a[(s+(r*20|0)&n)+3>>0]&1)==0?0:W;F=c[(s+(r*20|0)&p)+12>>2]|0;H=c[(s+(r*20|0)&p)+16>>2]|0;I=c[(s+(r*20|0)&p)+4>>2]|0;J=c[(s+(r*20|0)&p)+8>>2]|0;if((F|0)>0){t=(w|0)==0;v=H+16|0;E=0;while(1){if(t)A=E;else A=c[(w+(E<<2)&p)>>2]|0;C=a[((c[(v&p)>>2]|0)+E&n)>>0]|0;A=hm(z+((A+I|0)*40|0)|0,z+((A+J|0)*40|0)|0,c[(H+(E<<2)&p)+20>>2]|0)|0;E=E+1|0;if(A)break;if((E|0)>=(F|0)){S=z;T=s;U=0;V=0;break q}}S=z;T=s;U=0;V=C<<24>>24==0?A:0-A|0}else{S=z;T=s;U=0;V=X}break}case 256:{ie=0;if((X|0)<0){S=z;T=s;U=W;V=X;r=(c[(s+(t*20|0)&p)+4>>2]|0)+-1|0;break}if(!X){S=z;T=s;U=W;V=0;r=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;break}else{S=z;T=s;U=W;V=X;r=(c[(s+(t*20|0)&p)+12>>2]|0)+-1|0;break}}case 261:{ie=0;t=c[(s+(r*20|0)&p)+4>>2]|0;if(!(b[(z+(t*40|0)&o)+8>>1]&1)){u=Vg(z+(t*40|0)|0)|0;u=(u|0)!=0|(G|0)!=0?3:0}else u=6;t=c[(s+(r*20|0)&p)+8>>2]|0;if(!(b[(z+(t*40|0)&o)+8>>1]&1)){t=Vg(z+(t*40|0)|0)|0;t=((t|0)!=0|(G|0)!=0)&1}else t=2;t=a[(((a[(C&n)>>0]|0)==72?41680:41696)+t+u&n)>>0]|0;u=c[(s+(r*20|0)&p)+12>>2]|0;J=z+(u*40|0)|0;if(t<<24>>24==2){S=z+(u*40|0)+8|0;b[(S&o)>>1]=e[(S&o)>>1]&48640|1;S=z;T=s;U=W;V=X;u=J;break}else{S=J;c[(S&p)>>2]=t&255;c[(S&p)+4>>2]=0;S=z+(u*40|0)+8|0;b[(S&o)>>1]=e[(S&o)>>1]&48640|4;S=z;T=s;U=W;V=X;u=J;break}}case 268:{ie=0;t=c[(s+(r*20|0)&p)+4>>2]|0;u=c[(s+(r*20|0)&p)+8>>2]|0;J=z+(u*40|0)|0;u=z+(u*40|0)+8|0;if(!(b[(u&o)>>1]&9312))b[(u&o)>>1]=1;else vg(J);if(!(b[(z+(t*40|0)&o)+8>>1]&1)){b[(u&o)>>1]=4;T=Vg(z+(t*40|0)|0)|0;S=J;c[(S&p)>>2]=(T|0)==0&(G|0)==0&1;c[(S&p)+4>>2]=0;S=z;T=s;U=W;V=X;u=J}else{S=z;T=s;U=W;V=X;u=J}break}case 273:{ie=0;t=c[(s+(r*20|0)&p)+4>>2]|0;u=c[(s+(r*20|0)&p)+8>>2]|0;J=z+(u*40|0)|0;u=z+(u*40|0)+8|0;if(!(b[(u&o)>>1]&9312))b[(u&o)>>1]=1;else vg(J);if(!(b[(z+(t*40|0)&o)+8>>1]&1)){b[(u&o)>>1]=4;T=Vg(z+(t*40|0)|0)|0;S=J;c[(S&p)>>2]=~T;c[(S&p)+4>>2]=~G;S=z;T=s;U=W;V=X;u=J}else{S=z;T=s;U=W;V=X;u=J}break}case 278:{ie=0;t=(c[(Hb&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]|0)|0;if(!(a[(t&n)>>0]|0)){a[(t&n)>>0]=1;S=z;T=s;U=W;V=X;break}else{S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0;break}}case 281:{ie=0;t=c[(s+(r*20|0)&p)+4>>2]|0;if(!(b[(z+(t*40|0)&o)+8>>1]&1)){t=+Ug(z+(t*40|0)|0)!=0.0;t=(t^(a[(C&n)>>0]|0)==46)&1}else t=c[(s+(r*20|0)&p)+12>>2]|0;if(!t){S=z;T=s;U=W;V=X}else{S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0}break}case 286:{ie=0;if(!(b[(z+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)&o)+8>>1]&1)){S=z;T=s;U=W;V=X}else{S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0}break}case 288:{ie=0;if(!(b[(z+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)&o)+8>>1]&1)){S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0}else{S=z;T=s;U=W;V=X}break}case 290:{ie=0;T=c[(s+(t*20|0)&p)+8>>2]|0;M=c[(s+(t*20|0)&p)+12>>2]|0;A=z+(M*40|0)|0;S=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;w=c[(S&p)+80>>2]|0;v=c[(S&p)>>2]|0;if(!(a[(S&n)+26>>0]|0)){if((v|0)!=0?(a[(v&n)+73>>0]|0)!=1:0){Td=jm(S)|0;ie=295}}else{Td=im(S)|0;ie=295}if((ie|0)==295?(ie=0,(Td|0)!=0):0){u=Td;ie=1318;break c}L=S+60|0;C=c[($d&p)>>2]|0;u:do if((c[(L&p)>>2]|0)==(C|0)){C=b[(S&o)+22>>1]|0;if((C&65535|0)>(T|0))ie=350;else{I=S+72|0;ie=318}}else{do if(a[(S&n)+25>>0]|0){if(!v){J=c[(S&p)+16>>2]|0;F=c[(z+(J*40|0)&p)+12>>2]|0;c[(S&p)+68>>2]=F;c[(S&p)+64>>2]=F;J=c[(z+(J*40|0)&p)+16>>2]|0;K=S+76|0;c[(K&p)>>2]=J;break}r=z+(M*40|0)+8|0;if(!(b[(r&o)>>1]&9312)){b[(r&o)>>1]=1;break u}else{vg(A);break u}}else{if(!(a[(S&n)+27>>0]&4)){km(v,td);I=e[(v&o)+40>>1]|0;J=c[(v&p)+32>>2]|0;c[(S&p)+76>>2]=J;C=c[(td&p)>>2]|0;c[(S&p)+64>>2]=C}else{C=S+64|0;lm(v,C);I=e[(v&o)+40>>1]|0;J=c[(v&p)+32>>2]|0;c[(S&p)+76>>2]=J;C=c[(C&p)>>2]|0}c[(S&p)+68>>2]=C>>>0>I>>>0?I:C;if(C>>>0>(c[(zb&p)>>2]|0)>>>0){u=x;ie=1316;break c}K=S+76|0;C=c[($d&p)>>2]|0;F=I}while(0);c[(L&p)>>2]=C;C=a[(J&n)>>0]|0;if(C<<24>>24>-1){H=C&255;c[(kd&p)>>2]=H;J=1}else{J=mm(J,kd)|0;H=c[(kd&p)>>2]|0}I=S+72|0;c[(I&p)>>2]=J&255;b[(S&o)+22>>1]=0;c[(w&p)>>2]=H;if(H>>>0>98307){u=x;ie=313;break c}if(H>>>0>(c[(S&p)+64>>2]|0)>>>0){u=x;ie=313;break c}if(F>>>0>>0){c[(K&p)>>2]=0;c[(S&p)+68>>2]=0;C=0;ie=318}else{C=0;ie=318}}while(0);do if((ie|0)==318){ie=0;J=c[(I&p)>>2]|0;H=c[(w&p)>>2]|0;if(J>>>0>>0){P=S+76|0;F=c[(P&p)>>2]|0;if(!F){U=Jd+0|0;V=U+40|0;do{c[(U&p)>>2]=0;U=U+4|0}while((U|0)<(V|0));J=nm(v,0,c[(w&p)>>2]|0,((d[(S&n)+27>>0]|0)>>>2&1^1)&255,Jd)|0;if(J){s=J;u=x;ie=1309;break c}C=S+22|0;O=C;C=b[(C&o)>>1]|0;J=c[(I&p)>>2]|0;H=c[(w&p)>>2]|0;N=c[(Jb&p)>>2]|0}else{O=S+22|0;N=F}E=C&65535;K=c[(w+(E<<2)&p)>>2]|0;c[(kd&p)>>2]=K;C=N+H|0;J=N+J|0;while(1){F=a[(J&n)>>0]|0;if(F<<24>>24>-1){L=F&255;c[(Ld&p)>>2]=L;J=J+1|0}else{J=J+((mm(J,Ld)|0)&255)|0;L=c[(Ld&p)>>2]|0}c[(S+(E<<2)&p)+84>>2]=L;if(L>>>0>11)F=(L+-12|0)>>>1;else F=d[(L&n)+34336>>0]|0;L=K+F|0;c[(kd&p)>>2]=L;if(L>>>0>>0){J=L;F=E;ie=331;break}F=E+1|0;c[(w+(F<<2)&p)>>2]=L;if((E|0)<(T|0)&J>>>0>>0){K=L;E=F}else break}if((ie|0)==331){ie=0;L=J;J=N+(H+1)|0}b[(O&o)>>1]=F;c[(I&p)>>2]=J-N;if(!(c[(P&p)>>2]|0)){if(!((b[(Kb&o)>>1]&9312)==0&(c[(Lb&p)>>2]|0)==0))Qg(Jd);b[(Kb&o)>>1]=1}if(J>>>0>=C>>>0){if(J>>>0>C>>>0){u=x;ie=343;break c}if((L|0)==(c[(S&p)+64>>2]|0))C=L;else{u=x;ie=343;break c}}else C=c[(S&p)+64>>2]|0;if(L>>>0>C>>>0){u=x;ie=343;break c}C=b[(O&o)>>1]|0}if((C&65535|0)<=(T|0)){if((a[(s+(t*20|0)&n)+1>>0]|0)==-8){Zl(A,c[(s+(t*20|0)&p)+16>>2]|0,2048);r=z+(M*40|0)+8|0;break}r=z+(M*40|0)+8|0;if(!(b[(r&o)>>1]&9312)){b[(r&o)>>1]=1;break}else{vg(A);break}}else ie=350}while(0);if((ie|0)==350){ie=0;r=z+(M*40|0)+8|0;if(b[(r&o)>>1]&9312)vg(A);J=c[(S+(T<<2)&p)+84>>2]|0;c[(Ld&p)>>2]=J;do if((c[(S&p)+68>>2]|0)>>>0<(c[(w+(T+1<<2)&p)>>2]|0)>>>0){V=a[(s+(t*20|0)&n)+3>>0]|0;if(!((V&255)>63?J>>>0>11&(J&1|0)==0|V<<24>>24<0:0)){if(J>>>0>11)C=(J+-12|0)>>>1;else C=d[(J&n)+34336>>0]|0;if(C){C=nm(v,c[(w+(T<<2)&p)>>2]|0,C,((d[(S&n)+27>>0]|0)>>>2&1^1)&255,A)|0;if(C){s=C;u=x;ie=1309;break c}om(c[(z+(M*40|0)&p)+16>>2]|0,J,A)|0;b[(r&o)>>1]=e[(r&o)>>1]&61439;break}}om(J>>>0<14?td:0,J,A)|0}else om((c[(S&p)+76>>2]|0)+(c[(w+(T<<2)&p)>>2]|0)|0,J,A)|0;while(0);a[(z+(M*40|0)&n)+10>>0]=Jc}w=e[(r&o)>>1]|0;if((w&4096|0)!=0?(Ac=z+(M*40|0)+16|0,Bc=c[(Ac&p)>>2]|0,(Bc|0)!=0):0){v=c[(z+(M*40|0)&p)+12>>2]|0;if(fh(A,v+2|0)|0){y=ge;z=je;r=m;m=x;ie=1317;break a}kw(c[(Ac&p)>>2]|0,Bc|0,v|0)|0;a[((c[(Ac&p)>>2]|0)+v&n)>>0]=0;a[((c[(Ac&p)>>2]|0)+v&n)+1>>0]=0;b[(r&o)>>1]=w&18|512;S=z;T=s;U=W;V=X;r=t}else{S=z;T=s;U=W;V=X;r=t}break}case 368:{ie=0;v=c[(s+(r*20|0)&p)+16>>2]|0;t=a[(v&n)>>0]|0;if(!(t<<24>>24)){S=z;T=s;U=W;V=X}else{w=z+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)|0;while(1){v=v+1|0;fm(w,t,Jc);t=a[(v&n)>>0]|0;if(!(t<<24>>24)){S=z;T=s;U=W;V=X;break}else w=w+40|0}}break}case 371:{ie=0;U=c[(s+(t*20|0)&p)+4>>2]|0;C=c[(s+(t*20|0)&p)+16>>2]|0;V=z+(U*40|0)|0;U=z+((U+-1+(c[(s+(t*20|0)&p)+8>>2]|0)|0)*40|0)|0;A=a[(Mb&n)>>0]|0;T=c[(s+(t*20|0)&p)+12>>2]|0;u=z+(T*40|0)|0;if(C){r=a[(C&n)>>0]|0;v=V;while(1){C=C+1|0;fm(v,r,Jc);r=a[(C&n)>>0]|0;if(!(r<<24>>24))break;else v=v+40|0}}N=(A&255)>3;L=0;K=0;O=0;C=0;w=U;while(1){E=b[(w&o)+8>>1]|0;I=E&65535;v:do if(!(I&1)){do if(!(I&4)){if(I&8){J=7;ie=388;break v}J=c[(w&p)+12>>2]|0;if(I&16384)J=(c[(w&p)>>2]|0)+J|0;J=(J<<1)+12|I>>>1&1}else{I=w;J=c[(I&p)>>2]|0;I=c[(I&p)+4>>2]|0;H=ew(J|0,I|0,63)|0;H=H^J;F=G^I;if(F>>>0<0|(F|0)==0&H>>>0<128){if(!((J&1|0)==(J|0)&0==(I|0)&N)){J=1;ie=388;break v}J=H+8|0;break}if(F>>>0<0|(F|0)==0&H>>>0<32768){J=2;ie=388;break v}if(F>>>0<0|(F|0)==0&H>>>0<8388608){J=3;ie=388;break v}if(F>>>0<0|(F|0)==0&H>>>0<2147483648){J=4;ie=388;break v}J=F>>>0<32768|(F|0)==32768&H>>>0<0?5:6;ie=388;break v}while(0);c[(w&p)+28>>2]=J;if(J>>>0>11){I=J;J=(J+-12|0)>>>1}else ie=391}else{J=0;ie=388}while(0);if((ie|0)==388){c[(w&p)+28>>2]=J;ie=391}if((ie|0)==391){ie=0;I=J;J=d[(J&n)+34336>>0]|0}do if(E&16384)if((L|0)==0&(K|0)==0){E=c[(w&p)>>2]|0;J=J-E|0;E=E+C|0;break}else{Rg(w)|0;E=C;break}else E=C;while(0);L=jw(J|0,((J|0)<0)<<31>>31|0,L|0,K|0)|0;K=G;if(I>>>0<128)J=1;else{H=0;J=0;do{J=J+1|0;I=mw(I|0,H|0,7)|0;H=G}while(((I|0)!=0|(H|0)!=0)&(J|0)<9)}J=J+O|0;w=w+-40|0;if(w>>>0>>0){F=J;P=E;break}else{O=J;C=E}}if((F|0)<127)I=F+1|0;else{I=F;H=((F|0)<0)<<31>>31;J=0;do{J=J+1|0;I=mw(I|0,H|0,7)|0;H=G}while(((I|0)!=0|(H|0)!=0)&(J|0)<9);F=J+F|0;I=F;H=((F|0)<0)<<31>>31;C=0;do{C=C+1|0;I=mw(I|0,H|0,7)|0;H=G}while(((I|0)!=0|(H|0)!=0)&(C|0)<9);I=((J|0)<(C|0)&1)+F|0}J=((I|0)<0)<<31>>31;E=jw(I|0,J|0,L|0,K|0)|0;N=G;S=c[(zb&p)>>2]|0;O=((S|0)<0)<<31>>31;if((N|0)>(O|0)|(N|0)==(O|0)&E>>>0>S>>>0){u=x;ie=1316;break c}if(fh(u,E)|0){y=ge;z=je;r=m;m=x;ie=1317;break a}A=c[(z+(T*40|0)&p)+16>>2]|0;if(I>>>0<128){a[(A&n)>>0]=I;K=1;L=V}else{K=(pm(A,I,J)|0)&255;L=V}while(1){H=c[(L&p)+28>>2]|0;if(H>>>0<128){a[(A+K&n)>>0]=H;J=1}else J=(pm(A+K|0,H,0)|0)&255;K=J+K|0;J=A+I|0;if(!(H>>>0<8&(H|0)!=0))if(H>>>0>11){C=c[(L&p)+12>>2]|0;kw(J|0,c[(L&p)+16>>2]|0,C|0)|0}else C=0;else{J=L;if(H>>>0>11)C=(H+-12|0)>>>1;else C=d[(H&n)+34336>>0]|0;F=c[(J&p)>>2]|0;J=c[(J&p)+4>>2]|0;H=C;while(1){H=H+-1|0;a[(A+H+I&n)>>0]=F;F=mw(F|0,J|0,8)|0;if(!H)break;else J=G}}L=L+40|0;if(L>>>0>U>>>0)break;else I=C+I|0}c[(z+(T*40|0)&p)+12>>2]=E;r=z+(T*40|0)+8|0;b[(r&o)>>1]=16;if(P){c[(u&p)>>2]=P;b[(r&o)>>1]=16400}a[(z+(T*40|0)&n)+10>>0]=1;S=z;T=s;U=W;V=X;r=t;break}case 446:{ie=0;if((c[(ae&p)>>2]|0)>0){u=x;ie=447;break c}if(!v)w=0;else{t=v;while(1)if(!(a[(t&n)>>0]|0))break;else t=t+1|0;w=t-v&1073741823}u=sm(le,0,(c[(Ob&p)>>2]|0)+(c[(Nb&p)>>2]|0)|0)|0;if(u){t=r;ie=1318;break c}t=mh(le,w+33|0,0)|0;if(!t){S=z;T=s;U=W;V=X;u=L}else{V=t+32|0;c[(t&p)>>2]=V;kw(V|0,v|0,w+1|0)|0;if(!(a[(ee&n)>>0]|0))c[(Ob&p)>>2]=(c[(Ob&p)>>2]|0)+1;else{a[(ee&n)>>0]=0;a[(Sb&n)>>0]=1}c[(t&p)+24>>2]=c[(Pb&p)>>2];c[(Pb&p)>>2]=t;S=Qb;T=c[(S&p)+4>>2]|0;U=t+8|0;c[(U&p)>>2]=c[(S&p)>>2];c[(U&p)+4>>2]=T;U=Rb;T=c[(U&p)+4>>2]|0;S=t+16|0;c[(S&p)>>2]=c[(U&p)>>2];c[(S&p)+4>>2]=T;S=z;T=s;U=W;V=X;u=L}break}case 486:{c[(Ob&p)>>2]=(c[(Ob&p)>>2]|0)+-1;ie=488;break}case 525:{ie=0;wm(c[((c[(Xd&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<4)&p)+4>>2]|0,c[(s+(r*20|0)&p)+12>>2]|0,Yc);T=c[(Yc&p)>>2]|0;S=u;c[(S&p)>>2]=T;c[(S&p)+4>>2]=((T|0)<0)<<31>>31;S=z;T=s;U=W;V=X;break}case 558:{ie=0;v=xm(f,c[(s+(t*20|0)&p)+4>>2]|0,c[(s+(t*20|0)&p)+8>>2]|0,-1,1)|0;if(!v){y=ge;z=je;r=m;m=x;ie=1317;break a}r=c[(s+(t*20|0)&p)+16>>2]|0;C=v+8|0;c[(C&p)>>2]=r;A=c[(s+(t*20|0)&p)+12>>2]|0;r=e[(r&o)+6>>1]<<2;u=r+148|0;w=mh(le,u,0)|0;if(!w){s=v;u=x;ie=560;break c}fw(w|0,0,u|0)|0;c[(v&p)+56>>2]=w;V=w+128|0;c[(w&p)+28>>2]=V;kw(V|0,c[(C&p)>>2]|0,r+20|0)|0;c[(w&p)+140>>2]=0;if(A)b[(w&o)+134>>1]=A;r=c[(Xd&p)>>2]|0;u=c[((c[((c[(r&p)+4>>2]|0)&p)+4>>2]|0)&p)+32>>2]|0;c[(w&p)+12>>2]=u;a[(w&n)+59>>0]=1;a[(w&n)+57>>0]=0;c[(w&p)+24>>2]=le;c[(w&p)+72>>2]=w;if(((a[(_b&n)>>0]|0)!=2?(Dc=c[2242]|0,c[(w&p)>>2]=ca(Dc,u)|0,V=c[((c[(r&p)+12>>2]|0)&p)+80>>2]|0,V=(V|0)<(Dc|0)?Dc:V,Dc=((u|0)<0)<<31>>31,V=sw(V|0,((V|0)<0)<<31>>31|0,u|0,Dc|0)|0,U=G,c[(w&p)+4>>2]=(U|0)<0|(U|0)==0&V>>>0<536870912?V:536870912,(c[2234]|0)==0):0)?(c[(w&p)+52>>2]=u,V=qg(u,Dc)|0,c[(w&p)+40>>2]=V,(V|0)==0):0){s=7;u=x;ie=1309;break c}else{S=z;T=s;U=W;V=X;u=L;r=t}break}case 566:{ie=0;T=(c[((c[(Ib&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<2)&p)>>2]|0)+40|0;V=T;U=c[(V&p)>>2]|0;V=c[(V&p)+4>>2]|0;S=jw(U|0,V|0,1,0)|0;c[(T&p)>>2]=S;c[(T&p)+4>>2]=G;if((U|0)==0&(V|0)==0){S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0}else{S=z;T=s;U=W;V=X}break}case 568:{ie=0;r=xm(f,c[(s+(t*20|0)&p)+4>>2]|0,c[(s+(t*20|0)&p)+12>>2]|0,-1,0)|0;if(!r){y=ge;z=je;r=m;m=x;ie=1317;break a}a[(r&n)+25>>0]=1;c[(r&p)+16>>2]=c[(s+(t*20|0)&p)+8>>2];S=r+27|0;a[(S&n)>>0]=a[(S&n)>>0]|4;S=z;T=s;U=W;V=X;r=t;break}case 570:{ie=0;S=s+(r*20|0)+4|0;Bm(f,c[((c[(Ib&p)>>2]|0)+(c[(S&p)>>2]<<2)&p)>>2]|0);c[((c[(Ib&p)>>2]|0)+(c[(S&p)>>2]<<2)&p)>>2]=0;S=z;T=s;U=W;V=X;break}case 571:{ie=0;H=c[((c[(Ib&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<2)&p)>>2]|0;a[(H&n)+25>>0]=0;if(!(a[(H&n)+27>>0]&4)){V=c[(s+(r*20|0)&p)+16>>2]|0;c[(wd&p)>>2]=c[(H&p)+8>>2];b[($b&o)>>1]=V;a[(cc&n)>>0]=(K<<1&2^2)+255;V=c[(s+(r*20|0)&p)+12>>2]|0;t=z+(V*40|0)|0;c[(dc&p)>>2]=t;if(b[(z+(V*40|0)&o)+8>>1]&16384)Rg(t)|0;u=Cm(c[(H&p)>>2]|0,wd,0,0,0,Ad)|0;if(!u){u=K;J=L}else{t=r;ie=1318;break c}}else{C=c[(s+(r*20|0)&p)+12>>2]|0;A=z+(C*40|0)|0;C=z+(C*40|0)+8|0;if((b[(C&o)>>1]&14)==2)rh(A,0);J=Vg(A)|0;I=G;C=e[(C&o)>>1]|0;do if(!(C&4)){if(!(C&8)){S=z;T=s;U=W;V=X;u=L;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0;break q}B=+h[(A&q)>>3];D=+(J>>>0)+4294967296.0*+(I|0);if(B>31)+K|0;break}else{C=(B>D&(K&1|0)==0&1)+K|0;break}}else C=K;while(0);u=Cm(c[(H&p)>>2]|0,0,J,I,0,Ad)|0;V=H+48|0;c[(V&p)>>2]=J;c[(V&p)+4>>2]=I;if(!u){u=C;J=L}else{t=r;ie=1318;break c}}a[(H&n)+26>>0]=0;c[(H&p)+60>>2]=0;t=c[(Ad&p)>>2]|0;do if((u|0)>63){if((t|0)>=0?!((t|0)==0&(u|0)==65):0){c[(Ad&p)>>2]=0;S=z;T=s;U=W;V=X;u=J;break q}c[(Ad&p)>>2]=0;u=Dm(c[(H&p)>>2]|0,Ad)|0;if(!u)ie=593;else{t=r;ie=1318;break c}}else{if((t|0)<=0?!((t|0)==0&(u|0)==62):0){t=(a[((c[(H&p)>>2]|0)&n)+73>>0]|0)!=1&1;c[(Ad&p)>>2]=t;break}c[(Ad&p)>>2]=0;u=Em(c[(H&p)>>2]|0,Ad)|0;if(!u)ie=593;else{t=r;ie=1318;break c}}while(0);if((ie|0)==593){ie=0;t=c[(Ad&p)>>2]|0}if(!t){S=z;T=s;U=W;V=X;u=J}else{S=z;T=s;U=W;V=X;u=J;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0}break}case 596:{ie=0;S=c[((c[(Ib&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<2)&p)>>2]|0;a[(S&n)+25>>0]=0;U=Vg(z+((c[(s+(r*20|0)&p)+8>>2]|0)*40|0)|0)|0;T=S+48|0;c[(T&p)>>2]=U;c[(T&p)+4>>2]=G;a[(S&n)+26>>0]=1;S=z;T=s;U=W;V=X;break}case 597:{ie=0;I=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;r=c[(s+(t*20|0)&p)+12>>2]|0;J=z+(r*40|0)|0;c[(od&p)>>2]=0;K=s+(t*20|0)+16|0;C=c[(K&p)>>2]|0;v=I+8|0;A=c[(v&p)>>2]|0;w:do if((C|0)>0){c[(xd&p)>>2]=A;C=C&65535;b[(ec&o)>>1]=C;c[(fc&p)>>2]=J;if(!(C<<16>>16))v=xd;else{r=J;A=0;while(1){if(b[(r+(A*40|0)&o)+8>>1]&16384){Rg(r+(A*40|0)|0)|0;C=b[(ec&o)>>1]|0}A=A+1|0;if((A|0)>=(C&65535|0)){v=xd;break w}r=c[(fc&p)>>2]|0}}}else{C=Fm(A,Sc,191,od)|0;if(!C){y=ge;z=je;r=m;m=x;ie=1317;break a}if(b[(z+(r*40|0)&o)+8>>1]&16384)Rg(J)|0;Gm(c[(v&p)>>2]|0,c[(z+(r*40|0)&p)+12>>2]|0,c[(z+(r*40|0)&p)+16>>2]|0,C);v=C}while(0);a[(v&n)+6>>0]=0;x:do if((a[(H&n)>>0]|0)==67?(Ec=b[(v&o)+4>>1]|0,Ec<<16>>16!=0):0){C=c[(v&p)+8>>2]|0;A=0;while(1){if(b[(C+(A*40|0)&o)+8>>1]&1)break;A=A+1|0;if((A|0)>=(Ec&65535|0)){L=t;r=t;break x}}L=t;r=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0}else{L=t;r=t}while(0);C=Cm(c[(I&p)>>2]|0,v,0,0,0,Bd)|0;if(!(c[(K&p)>>2]|0))mg(le,c[(od&p)>>2]|0);if(C){t=r;s=C;u=x;ie=1309;break c}t=c[(Bd&p)>>2]|0;c[(I&p)+12>>2]=t;t=(t|0)==0;a[(I&n)+25>>0]=t&1^1;a[(I&n)+26>>0]=0;c[(I&p)+60>>2]=0;if((a[(H&n)>>0]|0)==69){if(!t){S=z;T=s;U=W;V=X;break}S=z;T=s;U=W;V=X;r=(c[(s+(L*20|0)&p)+8>>2]|0)+-1|0;break}else{if(t){S=z;T=s;U=W;V=X;break}S=z;T=s;U=W;V=X;r=(c[(s+(L*20|0)&p)+8>>2]|0)+-1|0;break}}case 624:{ie=0;S=(c[((c[(Ib&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<2)&p)>>2]|0)+40|0;T=S;U=c[(T&p)>>2]|0;T=c[(T&p)+4>>2]|0;V=jw(U|0,T|0,1,0)|0;c[(S&p)>>2]=V;c[(S&p)+4>>2]=G;S=u;c[(S&p)>>2]=U;c[(S&p)+4>>2]=T;S=z;T=s;U=W;V=X;break}case 647:{ie=0;I=c[(s+(r*20|0)&p)+8>>2]|0;v=c[((c[(Ib&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<2)&p)>>2]|0;t=c[(s+(r*20|0)&p)+12>>2]|0;if(C<<24>>24==75){F=z+(t*40|0)|0;E=c[(F&p)>>2]|0;F=c[(F&p)+4>>2]|0}else{E=t;F=((t|0)<0)<<31>>31}H=s+(r*20|0)+3|0;J=a[(H&n)>>0]|0;if(J&1)c[(ub&p)>>2]=(c[(ub&p)>>2]|0)+1;if(J&2){m=ne;c[(m&p)>>2]=E;c[(m&p)+4>>2]=F;m=E;l=F}C=b[(z+(I*40|0)&o)+8>>1]|0;if(C&1){c[(z+(I*40|0)&p)+16>>2]=0;c[(z+(I*40|0)&p)+12>>2]=0}if(!(J&16))A=0;else A=c[(v&p)+12>>2]|0;if(!(C&16384))C=0;else C=c[(z+(I*40|0)&p)>>2]|0;C=Im(c[(v&p)>>2]|0,0,E,F,c[(z+(I*40|0)&p)+16>>2]|0,c[(z+(I*40|0)&p)+12>>2]|0,C,(J&255)>>>3&1,A)|0;a[(v&n)+26>>0]=0;c[(v&p)+60>>2]=0;if(C){t=r;s=C;u=x;ie=1309;break c}t=c[(gc&p)>>2]|0;if((t|0)!=0?(Fc=c[(s+(r*20|0)&p)+16>>2]|0,(Fc|0)!=0):0){bc[t&1](c[(hc&p)>>2]|0,(a[(H&n)>>0]&4)!=0?23:18,c[((c[(Xd&p)>>2]|0)+(a[(v&n)+24>>0]<<4)&p)>>2]|0,Fc,E,F);S=z;T=s;U=W;V=X}else{S=z;T=s;U=W;V=X}break}case 671:{ie=0;S=c[(ub&p)>>2]|0;c[(vb&p)>>2]=S;c[(wb&p)>>2]=(c[(wb&p)>>2]|0)+S;c[(ub&p)>>2]=0;S=z;T=s;U=W;V=X;break}case 672:{ie=0;J=c[((c[(Ib&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<2)&p)>>2]|0;I=c[(s+(r*20|0)&p)+12>>2]|0;H=c[(s+(r*20|0)&p)+16>>2]|0;t=c[(J&p)+56>>2]|0;A=t+32|0;C=c[(A&p)>>2]|0;J=c[(J&p)+8>>2]|0;if(!C){C=Fm(J,0,0,md)|0;c[(A&p)>>2]=C;if(!C){t=r;s=7;u=x;ie=1309;break c}b[(C&o)+4>>1]=H}if(!(a[(t&n)+56>>0]|0)){t=c[(t&p)+36>>2]|0;A=t;t=t+8|0}else{V=c[(t&p)+20>>2]|0;t=c[((c[(V&p)+8>>2]|0)&p)+4>>2]|0;V=c[(V&p)+12>>2]|0;A=V+(t*56|0)+20|0;t=c[(V+(t*56|0)&p)+32>>2]|0}Gm(J,c[(A&p)>>2]|0,t,C);y:do if((H|0)>0){t=c[(C&p)+8>>2]|0;v=0;while(1){if(b[(t+(v*40|0)&o)+8>>1]&1)break y;v=v+1|0;if((v|0)>=(H|0)){ie=682;break}}}else ie=682;while(0);if((ie|0)==682){ie=0;if(!(Km(c[(z+(I*40|0)&p)+12>>2]|0,c[(z+(I*40|0)&p)+16>>2]|0,C,0)|0)){S=z;T=s;U=W;V=X;break}}S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0;break}case 700:{ie=0;b[(u&o)+8>>1]=1;S=z;T=s;U=W;V=X;break}case 708:{ie=0;b[(u&o)+8>>1]=1;S=z;T=s;U=W;V=X;break}case 711:{ie=0;t=c[((c[(Ib&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<2)&p)>>2]|0;a[(t&n)+25>>0]=1;c[(t&p)+60>>2]=0;t=c[(t&p)>>2]|0;if(!t){S=z;T=s;U=W;V=X}else{S=t+56|0;Wc(c[(S&p)>>2]|0);c[(S&p)>>2]=0;a[(t&n)+73>>0]=0;S=z;T=s;U=W;V=X}break}case 801:{ie=0;t=c[((c[(Ib&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<2)&p)>>2]|0;u=c[(t&p)>>2]|0;K=L+8|0;b[(K&o)>>1]=1;if((a[(u&n)+73>>0]|0)!=1?(Vd=jm(t)|0,(Vd|0)!=0):0){t=r;u=Vd;ie=1318;break c}if(!(a[(t&n)+25>>0]|0)){V=Sd;c[(V&p)>>2]=0;c[(V&p)+4>>2]=0;km(u,Sd);b[(qc&o)>>1]=0;c[(sc&p)>>2]=le;c[(uc&p)>>2]=0;u=nm(u,0,c[(Sd&p)>>2]|0,1,$c)|0;do if(!u){t=c[(vc&p)>>2]|0;u=a[(t&n)>>0]|0;if(u<<24>>24>-1){C=u&255;c[(qd&p)>>2]=C}else{mm(t,qd)|0;C=c[(qd&p)>>2]|0}if(!(C>>>0<3?1:(C|0)>(c[(wc&p)>>2]|0))){t=(c[(vc&p)>>2]|0)+(C+-1)|0;u=a[(t&n)>>0]|0;if(u<<24>>24>-1){u=u&255;c[(Nd&p)>>2]=u}else{mm(t,Nd)|0;u=c[(Nd&p)>>2]|0}if(!((u+-1|0)>>>0>8|(u|0)==7)){if(u>>>0>11)t=(u+-12|0)>>>1;else t=d[(u&n)+34336>>0]|0;v=c[(wc&p)>>2]|0;if(v>>>0>=(t+C|0)>>>0){om((c[(vc&p)>>2]|0)+(v-t)|0,u,Qd)|0;v=Qd;t=c[(v&p)>>2]|0;v=c[(v&p)+4>>2]|0;if((b[(qc&o)>>1]&9312)==0&(c[(uc&p)>>2]|0)==0){u=0;break}Qg($c);u=0;break}}}if(!((b[(qc&o)>>1]&9312)==0&(c[(uc&p)>>2]|0)==0))Qg($c);c[(ke&p)>>2]=68698;c[(ke&p)+4>>2]=10788;bd(11,13600,ke);u=11;t=0;v=0}else{t=0;v=0}while(0);if(u){t=r;ie=1318;break c}S=L;c[(S&p)>>2]=t;c[(S&p)+4>>2]=v;b[(K&o)>>1]=4;S=z;T=s;U=W;V=X;u=L}else{S=z;T=s;U=W;V=X;u=L}break}case 865:{ie=0;w=c[(C&p)>>2]|0;C=c[((c[(Xd&p)>>2]|0)+(K<<4)&p)+12>>2]|0;t=c[(C&p)+16>>2]|0;if(t)do{v=(c[(t&p)+8>>2]|0)+32|0;if((c[(v&p)>>2]|0)==(A|0))c[(v&p)>>2]=w;t=c[(t&p)>>2]|0}while((t|0)!=0);t=c[(C&p)+32>>2]|0;if(t)do{v=(c[(t&p)+8>>2]|0)+40|0;if((c[(v&p)>>2]|0)==(A|0))c[(v&p)>>2]=w;t=c[(t&p)>>2]|0}while((t|0)!=0);S=z;T=s;U=W;V=X;x=K+1&255;break}case 878:{ie=0;_m(le,u);S=z;T=s;U=W;V=X;u=J;break}case 881:{ie=0;V=c[(s+(r*20|0)&p)+4>>2]|0;c[(Zc&p)>>2]=le;c[(ia&p)>>2]=V;c[(ja&p)>>2]=je;u=c[(s+(r*20|0)&p)+16>>2]|0;c[(ke&p)>>2]=c[((c[(Xd&p)>>2]|0)+(V<<4)&p)>>2];c[(ke&p)+4>>2]=(V|0)==1?13184:13208;c[(ke&p)+8>>2]=u;u=uh(le,42048,ke)|0;if(!u){t=r;u=x;ie=882;break c}a[(ka&n)>>0]=1;c[(la&p)>>2]=0;t=Qe(le,u,22,Zc,0)|0;t=(t|0)==0?c[(la&p)>>2]|0:t;mg(le,u);a[(ka&n)>>0]=0;if(!t){S=z;T=s;U=W;V=X;u=J}else{s=t;t=r;u=x;ie=884;break c}break}case 886:{ie=0;kg(le,Ik((c[((c[(Xd&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<4)&p)+12>>2]|0)+8|0,c[(s+(r*20|0)&p)+16>>2]|0,0)|0);c[(Tb&p)>>2]=c[(Tb&p)>>2]|2;S=z;T=s;U=W;V=X;break}case 887:{ie=0;C=Ik((c[((c[(Xd&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<4)&p)+12>>2]|0)+24|0,c[(s+(r*20|0)&p)+16>>2]|0,0)|0;if(C){t=(c[(C&p)+12>>2]|0)+8|0;u=c[(t&p)>>2]|0;z:do if((u|0)==(C|0))c[(t&p)>>2]=c[(C&p)+20>>2];else{do{if(!u)break z;t=u+20|0;u=c[(t&p)>>2]|0}while((u|0)!=(C|0));c[(t&p)>>2]=c[(C&p)+20>>2]}while(0);Jk(le,C)}c[(Tb&p)>>2]=c[(Tb&p)>>2]|2;S=z;T=s;U=W;V=X;u=J;break}case 895:{ie=0;C=Ik((c[((c[(Xd&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<4)&p)+12>>2]|0)+40|0,c[(s+(r*20|0)&p)+16>>2]|0,0)|0;if(!C){S=z;T=s;U=W;V=X}else{t=c[(C&p)+20>>2]|0;if((t|0)==(c[(C&p)+24>>2]|0)){t=bn(t+8|0,c[(C&p)+4>>2]|0,ke)|0;if(!t)t=0;else t=c[(t&p)+8>>2]|0;v=t+64|0;while(1){V=c[(v&p)>>2]|0;t=V+32|0;if((V|0)==(C|0))break;else v=t}c[(v&p)>>2]=c[(t&p)>>2]}jg(le,C);c[(Tb&p)>>2]=c[(Tb&p)>>2]|2;S=z;T=s;U=W;V=X}break}case 903:{ie=0;L=c[(s+(t*20|0)&p)+8>>2]|0;v=mh(le,(L<<2)+4|0,0)|0;if(!v){y=ge;z=je;r=m;m=x;ie=1317;break a}A=c[(s+(t*20|0)&p)+12>>2]|0;r=c[(s+(t*20|0)&p)+4>>2]|0;M=z+(r*40|0)|0;if((L|0)>0){C=0;do{V=Vg(z+((C+r|0)*40|0)|0)|0;c[(v+(C<<2)&p)>>2]=V;C=C+1|0}while((C|0)!=(L|0));C=L}else C=0;c[(v+(C<<2)&p)>>2]=0;I=c[((c[(Xd&p)>>2]|0)+(d[(s+(t*20|0)&n)+3>>0]<<4)&p)+4>>2]|0;P=z+(A*40|0)|0;V=c[(P&p)>>2]|0;O=c[(I&p)+4>>2]|0;c[(O&p)+4>>2]=c[(I&p)>>2];I=c[(O&p)>>2]|0;w=c[((c[(I&p)+204>>2]|0)&p)+12>>2]|0;c[(Sd&p)>>2]=O;c[(ma&p)>>2]=I;I=c[(O&p)+44>>2]|0;c[(na&p)>>2]=I;c[(oa&p)>>2]=V;c[(pa&p)>>2]=0;c[(pa&p)+4>>2]=0;c[(pa&p)+8>>2]=0;c[(pa&p)+12>>2]=0;c[(pa&p)+16>>2]=0;do if(!I){A=0;C=0}else{J=(I>>>3)+1|0;H=qg(J,0)|0;if(!H){c[(sa&p)>>2]=0;A=0;C=1;break}fw(H|0,0,J|0)|0;c[(sa&p)>>2]=H;N=O+32|0;J=(((c[2514]|0)>>>0)/((c[(N&p)>>2]|0)>>>0)|0)+1|0;if(J>>>0<=I>>>0){V=H+(J>>>3)|0;a[(V&n)>>0]=d[(V&n)>>0]|1<<(J&7)}c[(ua&p)>>2]=Nd;c[(va&p)>>2]=Nd;c[(ta&p)>>2]=0;c[(wa&p)>>2]=0;c[(xa&p)>>2]=100;c[(ya&p)>>2]=1e9;a[(Aa&n)>>0]=0;a[(za&n)>>0]=2;c[(ra&p)>>2]=43592;C=c[((c[(O&p)+12>>2]|0)&p)+56>>2]|0;cn(Sd,1,d[(C&n)+33>>0]<<16|d[(C&n)+32>>0]<<24|d[(C&n)+34>>0]<<8|d[(C&n)+35>>0],d[(C&n)+37>>0]<<16|d[(C&n)+36>>0]<<24|d[(C&n)+38>>0]<<8|d[(C&n)+39>>0]);c[(ra&p)>>2]=0;C=c[(oa&p)>>2]|0;if(!((L|0)<1|(C|0)==0)){F=O+17|0;H=0;do{I=v+(H<<2)|0;J=c[(I&p)>>2]|0;if(J){if((a[(F&n)>>0]|0)!=0&(J|0)>1){dn(Sd,J,1,0);J=c[(I&p)>>2]|0}c[(ra&p)>>2]=43608;en(Sd,J,0,0)|0;c[(ra&p)>>2]=0;C=c[(oa&p)>>2]|0}H=H+1|0}while(!((H|0)>=(L|0)|(C|0)==0))}if(!((c[(na&p)>>2]|0)==0|(C|0)==0)){E=O+17|0;C=O+36|0;L=1;do{H=L>>>3;J=a[((c[(sa&p)>>2]|0)+H&n)>>0]|0;F=1<<(L&7);do if(!(J&255&F)){if(L>>>0<2)I=0;else{I=L+-2|0;I=I-((I>>>0)%(((((c[(C&p)>>2]|0)>>>0)/5|0)+1|0)>>>0)|0)|0;I=((I+1|0)==(((c[2514]|0)>>>0)/((c[(N&p)>>2]|0)>>>0)|0|0)?3:2)+I|0}if((I|0)==(L|0)?(a[(E&n)>>0]|0)!=0:0)break;c[(ke&p)>>2]=L;fn(Sd,43632,ke);J=a[((c[(sa&p)>>2]|0)+H&n)>>0]|0}while(0);do if(J&255&F){if(L>>>0<2)J=0;else{J=L+-2|0;J=J-((J>>>0)%(((((c[(C&p)>>2]|0)>>>0)/5|0)+1|0)>>>0)|0)|0;J=((J+1|0)==(((c[2514]|0)>>>0)/((c[(N&p)>>2]|0)>>>0)|0|0)?3:2)+J|0}if((J|0)!=(L|0))break;if(!(a[(E&n)>>0]|0))break;c[(ke&p)>>2]=L;fn(Sd,43656,ke)}while(0);L=L+1|0}while(!((c[(oa&p)>>2]|0)==0?1:L>>>0>(c[(na&p)>>2]|0)>>>0))}C=c[((c[((c[(O&p)>>2]|0)&p)+204>>2]|0)&p)+12>>2]|0;if((w|0)!=(C|0)){c[(ke&p)>>2]=w;c[(ke&p)+4>>2]=C;fn(Sd,43696,ke)}Wc(c[(sa&p)>>2]|0);if(c[(qa&p)>>2]|0){gn(ta);A=0;C=(c[(pa&p)>>2]|0)+1|0;break}C=c[(pa&p)>>2]|0;if(!C)gn(ta);A=tg(ta)|0}while(0);mg(le,v);U=P;U=dw(c[(U&p)>>2]|0,c[(U&p)+4>>2]|0,C|0,((C|0)<0)<<31>>31|0)|0;V=P;c[(V&p)>>2]=U;c[(V&p)+4>>2]=G;r=z+(r*40|0)+8|0;if(!(b[(r&o)>>1]&9312))b[(r&o)>>1]=1;else vg(M);if(C){if(!A){y=ge;z=je;r=m;m=x;ie=1317;break a}Xg(M,A,-1,1,1)|0}Yl(M,xb)|0;S=z;T=s;U=W;V=X;r=t;break}case 947:{ie=0;v=c[(s+(t*20|0)&p)+4>>2]|0;r=z+(v*40|0)|0;u=c[(s+(t*20|0)&p)+8>>2]|0;v=z+(v*40|0)+8|0;if((b[(v&o)>>1]&32)==0?(hn(r),(b[(v&o)>>1]&32)==0):0){y=ge;z=je;r=m;m=x;ie=1317;break a}S=z+(u*40|0)|0;jn(c[(r&p)>>2]|0,c[(S&p)>>2]|0,c[(S&p)+4>>2]|0);S=z;T=s;U=W;V=X;u=J;r=t;break}case 966:{ie=0;r=c[(s+(t*20|0)&p)+4>>2]|0;P=z+(r*40|0)|0;O=z+((c[(s+(t*20|0)&p)+12>>2]|0)*40|0)|0;N=c[(s+(t*20|0)&p)+16>>2]|0;r=z+(r*40|0)+8|0;if((b[(r&o)>>1]&32)==0?(hn(P),(b[(r&o)>>1]&32)==0):0){y=ge;z=je;r=m;m=x;ie=1317;break a}if(N){L=c[(P&p)>>2]|0;v=O;M=c[(v&p)>>2]|0;v=c[(v&p)+4>>2]|0;K=L+28|0;if((c[(K&p)>>2]|0)!=(N|0)){C=L+8|0;J=c[(C&p)>>2]|0;if(J){I=L+20|0;A=L+26|0;if(!(b[(A&o)>>1]&1))J=kn(J)|0;H=c[(I&p)>>2]|0;A:do if(!H){ld=J;rd=I;ie=978}else{while(1){I=H+12|0;F=c[(I&p)>>2]|0;if(!F)break;E=H+8|0;ln(F,ke,Sd);c[(I&p)>>2]=0;J=mn(c[(ke&p)>>2]|0,J)|0;H=c[(E&p)>>2]|0;if(!H){ld=J;rd=E;ie=978;break A}}c[(I&p)>>2]=nn(J)|0}while(0);if((ie|0)==978?(ie=0,Kc=on(L)|0,c[(rd&p)>>2]=Kc,(Kc|0)!=0):0){V=Kc;c[(V&p)>>2]=0;c[(V&p)+4>>2]=0;c[(Kc&p)+8>>2]=0;c[(Kc&p)+12>>2]=nn(ld)|0}c[(C&p)>>2]=0;c[(L&p)+12>>2]=0;b[(A&o)>>1]=e[(A&o)>>1]|1}c[(K&p)>>2]=N}C=c[(L&p)+20>>2]|0;B:do if(C){C:while(1){A=c[(C&p)+12>>2]|0;if(A)do{r=A;E=c[(r&p)>>2]|0;r=c[(r&p)+4>>2]|0;if((r|0)<(v|0)|(r|0)==(v|0)&E>>>0>>0)A=A+8|0;else{if(!((r|0)>(v|0)|(r|0)==(v|0)&E>>>0>M>>>0))break C;A=A+12|0}A=c[(A&p)>>2]|0}while((A|0)!=0);C=c[(C&p)+8>>2]|0;if(!C)break B}S=z;T=s;U=W;V=X;r=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;break q}while(0);if((N|0)>-1)C=O;else{S=z;T=s;U=W;V=X;r=t;break}}else C=O;S=C;jn(c[(P&p)>>2]|0,c[(S&p)>>2]|0,c[(S&p)+4>>2]|0);S=z;T=s;U=W;V=X;r=t;break}case 993:{ie=0;K=c[(s+(r*20|0)&p)+16>>2]|0;I=c[(s+(r*20|0)&p)+12>>2]|0;L=z+(I*40|0)|0;if((a[(s+(r*20|0)&n)+3>>0]|0)!=0?(Lc=c[(K&p)+20>>2]|0,nd=c[(sb&p)>>2]|0,(nd|0)!=0):0){t=nd;while(1){if((c[(t&p)+28>>2]|0)==(Lc|0)){S=z;T=s;U=W;V=X;break q}t=c[(t&p)+4>>2]|0;if(!t){t=r;break}}}else t=r;r=c[(tb&p)>>2]|0;if((r|0)>=(c[(Ba&p)>>2]|0)){u=x;ie=998;break c}E=z+(I*40|0)+8|0;if(!(b[(E&o)>>1]&64)){C=K+12|0;A=c[(C&p)>>2]|0;r=A+(c[(K&p)+8>>2]|0)|0;s=K+16|0;A=(A<<2)+80+(c[(s&p)>>2]|0)+(r*40|0)|0;J=mh(le,A,((A|0)<0)<<31>>31)|0;if(!J){y=ge;z=je;r=m;m=x;ie=1317;break a}fw(J|0,0,A|0)|0;if(!((b[(E&o)>>1]&9312)==0?(c[(z+(I*40|0)&p)+24>>2]|0)==0:0))Qg(L);b[(E&o)>>1]=64;c[(L&p)>>2]=J;c[(J&p)>>2]=f;c[(J&p)+60>>2]=r;c[(J&p)+64>>2]=c[(C&p)>>2];c[(J&p)+44>>2]=t;c[(J&p)+16>>2]=c[(Nc&p)>>2];c[(J&p)+52>>2]=c[(Ca&p)>>2];c[(J&p)+24>>2]=c[(Ib&p)>>2];c[(J&p)+40>>2]=c[(Da&p)>>2];c[(J&p)+8>>2]=c[(zc&p)>>2];c[(J&p)+48>>2]=c[(Ea&p)>>2];c[(J&p)+28>>2]=c[(K&p)+20>>2];c[(J&p)+20>>2]=c[(Hb&p)>>2];c[(J&p)+56>>2]=c[(Fa&p)>>2];z=J+80|0;r=z+(r*40|0)|0;if((z|0)!=(r|0))do{b[(z&o)+8>>1]=128;c[(z&p)+32>>2]=le;z=z+40|0}while((z|0)!=(r|0));r=c[(tb&p)>>2]|0;z=J}else{s=K+16|0;z=c[(L&p)>>2]|0}c[(tb&p)>>2]=r+1;c[(z&p)+4>>2]=c[(sb&p)>>2];S=z+32|0;c[(S&p)>>2]=m;c[(S&p)+4>>2]=l;c[(z&p)+68>>2]=c[(ub&p)>>2];c[(z&p)+72>>2]=c[((c[(f&p)>>2]|0)&p)+80>>2];c[(ub&p)>>2]=0;c[(sb&p)>>2]=z;S=z+40|0;c[(Nc&p)>>2]=S;U=c[(z&p)+60>>2]|0;c[(Ca&p)>>2]=U;V=c[(z&p)+64>>2]&65535;c[(Da&p)>>2]=V;U=S+((U+1|0)*40|0)|0;c[(Ib&p)>>2]=U;T=c[(K&p)>>2]|0;c[(zc&p)>>2]=T;c[(Ea&p)>>2]=c[(K&p)+4>>2];V=U+(V<<2)|0;c[(Hb&p)>>2]=V;U=c[(s&p)>>2]|0;c[(Fa&p)>>2]=U;fw(V|0,0,U|0)|0;U=W;V=X;r=-1;break}case 1009:{ie=0;S=c[(sb&p)>>2]|0;Zl(u,(c[(S&p)+16>>2]|0)+(((c[((c[(S&p)+8>>2]|0)+((c[(S&p)+44>>2]|0)*20|0)&p)+4>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]|0)|0)*40|0)|0,4096);S=z;T=s;U=W;V=X;break}case 1010:{ie=0;if(c[(Tb&p)>>2]&16777216){T=c[(s+(r*20|0)&p)+8>>2]|0;S=Rb;T=jw(c[(S&p)>>2]|0,c[(S&p)+4>>2]|0,T|0,((T|0)<0)<<31>>31|0)|0;S=Rb;c[(S&p)>>2]=T;c[(S&p)+4>>2]=G;S=z;T=s;U=W;V=X;u=J;break}t=c[(s+(r*20|0)&p)+8>>2]|0;u=((t|0)<0)<<31>>31;if(!(c[(s+(r*20|0)&p)+4>>2]|0)){T=_d;T=jw(c[(T&p)>>2]|0,c[(T&p)+4>>2]|0,t|0,u|0)|0;S=_d;c[(S&p)>>2]=T;c[(S&p)+4>>2]=G;S=z;T=s;U=W;V=X;u=J;break}else{T=Qb;T=jw(c[(T&p)>>2]|0,c[(T&p)+4>>2]|0,t|0,u|0)|0;S=Qb;c[(S&p)>>2]=T;c[(S&p)+4>>2]=G;S=z;T=s;U=W;V=X;u=J;break}}case 1015:{ie=0;if(!(c[(s+(r*20|0)&p)+4>>2]|0)){V=_d;if(!((c[(V&p)>>2]|0)==0&(c[(V&p)+4>>2]|0)==0)){S=z;T=s;U=W;V=X;break}V=Rb;if(!((c[(V&p)>>2]|0)==0&(c[(V&p)+4>>2]|0)==0)){S=z;T=s;U=W;V=X;break}S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0;break}else{V=Qb;if(!((c[(V&p)>>2]|0)==0&(c[(V&p)+4>>2]|0)==0)){S=z;T=s;U=W;V=X;break}V=Rb;if(!((c[(V&p)>>2]|0)==0&(c[(V&p)+4>>2]|0)==0)){S=z;T=s;U=W;V=X;break}S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0;break}}case 1022:{ie=0;t=c[(sb&p)>>2]|0;if(!t)v=z+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)|0;else{while(1){u=c[(t&p)+4>>2]|0;if(!u)break;else t=u}v=(c[(t&p)+16>>2]|0)+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)|0}U=Vg(v)|0;V=v;c[(V&p)>>2]=U;c[(V&p)+4>>2]=G;V=v+8|0;b[(V&o)>>1]=e[(V&o)>>1]&48640|4;V=c[(s+(r*20|0)&p)+8>>2]|0;U=z+(V*40|0)|0;t=Vg(U)|0;u=G;c[(U&p)>>2]=t;c[(U&p)+4>>2]=u;V=z+(V*40|0)+8|0;b[(V&o)>>1]=e[(V&o)>>1]&48640|4;V=v;U=c[(V&p)+4>>2]|0;if((U|0)<(u|0)|((U|0)==(u|0)?(c[(V&p)>>2]|0)>>>0>>0:0)){S=v;c[(S&p)>>2]=t;c[(S&p)+4>>2]=u;S=z;T=s;U=W;V=X;u=L}else{S=z;T=s;U=W;V=X;u=L}break}case 1028:{ie=0;V=z+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)|0;U=c[(V&p)+4>>2]|0;if((U|0)>0|(U|0)==0&(c[(V&p)>>2]|0)>>>0>0){S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0}else{S=z;T=s;U=W;V=X}break}case 1030:{ie=0;T=c[(s+(r*20|0)&p)+12>>2]|0;U=z+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)|0;V=U;T=jw(c[(V&p)>>2]|0,c[(V&p)+4>>2]|0,T|0,((T|0)<0)<<31>>31|0)|0;V=G;c[(U&p)>>2]=T;c[(U&p)+4>>2]=V;if((V|0)<0){S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0}else{S=z;T=s;U=W;V=X}break}case 1032:{ie=0;t=z+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)|0;v=t;u=c[(v&p)>>2]|0;v=c[(v&p)+4>>2]|0;if((u|0)==0&(v|0)==0){S=z;T=s;U=W;V=X;u=J}else{T=c[(s+(r*20|0)&p)+12>>2]|0;T=jw(T|0,((T|0)<0)<<31>>31|0,u|0,v|0)|0;S=t;c[(S&p)>>2]=T;c[(S&p)+4>>2]=G;S=z;T=s;U=W;V=X;u=J;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0}break}case 1034:{ie=0;T=z+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)|0;U=T;U=jw(c[(U&p)>>2]|0,c[(U&p)+4>>2]|0,-1,-1)|0;V=G;c[(T&p)>>2]=U;c[(T&p)+4>>2]=V;if((U|0)==0&(V|0)==0){S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0}else{S=z;T=s;U=W;V=X}break}case 1036:{ie=0;T=z+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)|0;V=T;U=c[(V&p)>>2]|0;V=c[(V&p)+4>>2]|0;S=jw(U|0,V|0,1,0)|0;c[(T&p)>>2]=S;c[(T&p)+4>>2]=G;if((U|0)==0&(V|0)==0){S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0}else{S=z;T=s;U=W;V=X}break}case 1157:{ie=0;S=z;T=s;U=W;V=X;r=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;break}case 1158:{ie=0;if(c[(s+(r*20|0)&p)+4>>2]|0){b[(Yd&o)>>1]=b[(Yd&o)>>1]|8;S=z;T=s;U=W;V=X;break}t=c[(Vb&p)>>2]|0;if(!t){S=z;T=s;U=W;V=X}else{do{V=t+88|0;b[(V&o)>>1]=b[(V&o)>>1]|8;t=c[(t&p)+52>>2]|0}while((t|0)!=0);S=z;T=s;U=W;V=X}break}case 1166:{ie=0;J=(c[(w&p)>>2]|0)+72|0;t=c[(J&p)>>2]|0;D:do if(t){while(1){if((c[(t&p)+4>>2]|0)==(A|0)?(c[(t&p)>>2]|0)==(C|0):0)break;t=c[(t&p)+12>>2]|0;if(!t){ie=1171;break D}}if(!t)ie=1171}else ie=1171;while(0);if((ie|0)==1171){ie=0;t=qg(16,0)|0;if(!t){t=r;s=7;u=x;ie=1309;break c}U=t+0|0;V=U+12|0;do{a[(U&n)>>0]=0;U=U+1|0}while((U|0)<(V|0));c[(t&p)+4>>2]=A;c[(t&p)>>2]=C;c[(t&p)+12>>2]=c[(J&p)>>2];c[(J&p)>>2]=t}t=t+8|0;if((d[(t&n)>>0]|0)<(v&255)){a[(t&n)>>0]=v;S=z;T=s;U=W;V=X}else{S=z;T=s;U=W;V=X}break}case 1213:{ie=0;c[(sd&p)>>2]=0;v=c[((c[(s+(r*20|0)&p)+16>>2]|0)&p)+8>>2]|0;if(!v){t=r;s=6;u=x;ie=1309;break c}w=c[(v&p)>>2]|0;if(!w){t=r;s=6;u=x;ie=1309;break c}C=rc[c[(w&p)+24>>2]&127](v,sd)|0;Mm(f,v);if(C){t=r;s=C;u=x;ie=1309;break c}c[(c[(sd&p)>>2]&p)>>2]=v;t=xm(f,c[(s+(r*20|0)&p)+4>>2]|0,0,-1,0)|0;if(!t){a[(ge&n)>>0]=1;lc[c[(w&p)+28>>2]&127](c[(sd&p)>>2]|0)|0;S=z;T=s;U=W;V=X;break}else{c[(t&p)+32>>2]=c[(sd&p)>>2];S=v+4|0;c[(S&p)>>2]=(c[(S&p)>>2]|0)+1;S=z;T=s;U=W;V=X;break}}case 1226:{ie=0;t=z+(C*40|0)+8|0;if(!(b[(t&o)>>1]&9312)){b[(t&o)>>1]=1;S=z;T=s;U=W;V=X;break}else{vg(A);S=z;T=s;U=W;V=X;break}}case 1257:{ie=0;S=u;c[(S&p)>>2]=c[((c[((c[((c[(Xd&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<4)&p)+4>>2]|0)&p)+4>>2]|0)&p)+44>>2];c[(S&p)+4>>2]=0;S=z;T=s;U=W;V=X;break}case 1258:{ie=0;v=c[((c[(Xd&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<4)&p)+4>>2]|0;t=c[(s+(r*20|0)&p)+12>>2]|0;u=c[(v&p)+4>>2]|0;if(!t)t=0;else{V=c[(u&p)+44>>2]|0;t=V>>>0>>0?t:V}c[(u&p)+4>>2]=c[(v&p)>>2];u=(c[(u&p)>>2]|0)+156|0;if((t|0)>0)c[(u&p)>>2]=t;else t=c[(u&p)>>2]|0;S=J;c[(S&p)>>2]=t;c[(S&p)+4>>2]=((t|0)<0)<<31>>31;S=z;T=s;U=W;V=X;u=J;break}case 1264:{ie=0;r=c[(s+(t*20|0)&p)+8>>2]|0;r=(r|0)==0?t:r+-1|0;if((c[(Sa&p)>>2]|0)!=0?(b[(Yd&o)>>1]&512)==0:0){t=c[(s+(t*20|0)&p)+16>>2]|0;if(!t){t=c[(ce&p)>>2]|0;if(!t){S=z;T=s;U=W;V=X;u=L;break}}c[(Sd&p)>>2]=0;F=c[(f&p)>>2]|0;v=c[(F&p)+88>>2]|0;c[(fb&p)>>2]=Nd;c[(gb&p)>>2]=Nd;c[(hb&p)>>2]=0;c[(ib&p)>>2]=100;c[(jb&p)>>2]=v;a[(kb&n)>>0]=1;a[(lb&n)>>0]=0;c[(qd&p)>>2]=F;v=a[(t&n)>>0]|0;u=v<<24>>24==0;E:do if((c[(F&p)+160>>2]|0)>1){if(!u)while(1){u=t;do{u=u+1|0;if(v<<24>>24==10)break;v=a[(u&n)>>0]|0}while(v<<24>>24!=0);Sk(qd,42288,3);Sk(qd,t,u-t|0);v=a[(u&n)>>0]|0;if(!(v<<24>>24))break;else t=u}}else if(!u){H=F+62|0;K=1;do{F:do if(!(v<<24>>24)){A=0;u=0}else{C=t;u=0;while(1){A=Cn(C,ke)|0;if((c[(ke&p)>>2]|0)==135)break F;u=A+u|0;C=C+A|0;if(!(a[(C&n)>>0]|0)){A=0;break}}}while(0);Sk(qd,t,u);C=t+u|0;if(!A)break E;do if((a[(C&n)>>0]|0)==63)if((A|0)>1){Dn(t+(u+1)|0,Sd)|0;C=c[(Sd&p)>>2]|0;break}else{c[(Sd&p)>>2]=K;C=K;break}else{C=qh(f,C,A)|0;c[(Sd&p)>>2]=C}while(0);t=t+(u+A)|0;K=C+1|0;J=C+-1|0;I=c[(Ab&p)>>2]|0;C=I+(J*40|0)|0;A=e[(I+(J*40|0)&o)+8>>1]|0;do if(!(A&1)){if(A&4){T=C;U=c[(T&p)+4>>2]|0;V=ke;c[(V&p)>>2]=c[(T&p)>>2];c[(V&p)+4>>2]=U;En(qd,0,19920,ke);break}if(A&8){h[(k&q)>>3]=+h[(C&q)>>3];c[(ke&p)>>2]=c[(k&p)>>2];c[(ke&p)+4>>2]=c[(k&p)+4>>2];En(qd,0,20272,ke);break}if(!(A&2)){if(A&16384){c[(ke&p)>>2]=c[(C&p)>>2];En(qd,0,42304,ke);break}Sk(qd,42320,2);E=c[(I+(J*40|0)&p)+12>>2]|0;if((E|0)>0){C=I+(J*40|0)+16|0;A=0;do{c[(ke&p)>>2]=d[((c[(C&p)>>2]|0)+A&n)>>0];En(qd,0,42328,ke);A=A+1|0}while((A|0)!=(E|0))}Sk(qd,42336,1);break}else{E=a[(H&n)>>0]|0;if(E<<24>>24==1){V=c[(I+(J*40|0)&p)+16>>2]|0;c[(ke&p)>>2]=c[(I+(J*40|0)&p)+12>>2];c[(ke&p)+4>>2]=V;En(qd,0,42296,ke);break}U=Od+0|0;V=U+40|0;do{c[(U&p)>>2]=0;U=U+4|0}while((U|0)<(V|0));c[(nb&p)>>2]=F;Xg(Od,c[(I+(J*40|0)&p)+16>>2]|0,c[(I+(J*40|0)&p)+12>>2]|0,E,0)|0;V=c[(ob&p)>>2]|0;if(!((V&2|0)==0|(V&16711680|0)==65536))Bn(Od,1)|0;V=c[(qb&p)>>2]|0;c[(ke&p)>>2]=c[(pb&p)>>2];c[(ke&p)+4>>2]=V;En(qd,0,42296,ke);if((b[(ob&o)>>1]&9312)==0&(c[(rb&p)>>2]|0)==0)break;Qg(Od);break}}else Sk(qd,20304,4);while(0);v=a[(t&n)>>0]|0}while(v<<24>>24!=0)}while(0);S=tg(qd)|0;jc[c[(Sa&p)>>2]&15](c[(mb&p)>>2]|0,S);mg(le,S);S=z;T=s;U=W;V=X;u=L}else{S=z;T=s;U=W;V=X;u=L}break}}if((ie|0)==28){ie=0;z=s+(r*20|0)+4|0;t=c[(z&p)>>2]|0;if(t){y=z;ie=34;break}z=c[(sb&p)>>2]|0;if(!z){ie=30;break}c[(sb&p)>>2]=c[(z&p)+4>>2];c[(tb&p)>>2]=(c[(tb&p)>>2]|0)+-1;l=c[(ub&p)>>2]|0;c[(vb&p)>>2]=l;c[(wb&p)>>2]=(c[(wb&p)>>2]|0)+l;z=Xl(z)|0;l=ne;t=c[(zc&p)>>2]|0;if((c[(s+(r*20|0)&p)+8>>2]|0)==4)r=(c[(t+(z*20|0)&p)+8>>2]|0)+-1|0;else r=z;m=c[(l&p)>>2]|0;l=c[(l&p)+4>>2]|0;S=c[(Nc&p)>>2]|0;T=t;U=W;V=X}else if((ie|0)==488){ie=0;u=sm(le,C,A)|0;if(!u){S=z;T=s;U=W;V=X;u=E}else{t=r;ie=1318;break}}z=S;s=T;W=U;X=V;t=r+1|0}switch(ie|0){case 30:{c[(me&p)>>2]=t;a[(fe&n)>>0]=c[(s+(r*20|0)&p)+8>>2];c[(he&p)>>2]=r;ie=41;break}case 34:{c[(me&p)>>2]=t;a[(fe&n)>>0]=c[(s+(r*20|0)&p)+8>>2];c[(he&p)>>2]=r;t=a[(s+(r*20|0)&n)+3>>0]|0;if(!(t<<24>>24)){s=c[(s+(r*20|0)&p)+16>>2]|0;if(!s){s=0;ie=39}else{c[(ke&p)>>2]=s;dh(je,le,10344,ke)}}else{u=c[((t&255)+-1<<2&p)+41536>>2]|0;t=c[(s+(r*20|0)&p)+16>>2]|0;if(!t){s=u;ie=39}else{c[(ke&p)>>2]=u;c[(ke&p)+4>>2]=t;dh(je,le,41624,ke)}}if((ie|0)==39){c[(ke&p)>>2]=s;dh(je,le,41656,ke)}ie=c[(y&p)>>2]|0;qd=c[(ce&p)>>2]|0;rd=c[(je&p)>>2]|0;c[(ke&p)>>2]=r;c[(ke&p)+4>>2]=qd;c[(ke&p)+8>>2]=rd;bd(ie,41600,ke);ie=41;break}case 80:{x=c[(be&p)>>2]|0;if(!((x|0)==0|g>>>0>>0)?(lc[x&127](c[(Zd&p)>>2]|0)|0)!=0:0){r=m;s=9;m=u;ie=1311;break a}rd=_d;qd=c[(rd&p)+4>>2]|0;if((qd|0)>0|(qd|0)==0&(c[(rd&p)>>2]|0)>>>0>0){s=c[(f&p)>>2]|0;c[(me&p)>>2]=787;a[(fe&n)>>0]=2;dh(je,s,34376,ke);s=1;ie=1309;break}x=$l(f,1)|0;if(!x){c[($d&p)>>2]=(c[($d&p)>>2]|0)+2|1;y=c[(s+(t*20|0)&p)+4>>2]|0;c[(de&p)>>2]=z+(y*40|0);r=s+(t*20|0)+8|0;if((c[(r&p)>>2]|0)>0){x=0;do{v=x+y|0;w=z+(v*40|0)|0;v=z+(v*40|0)+8|0;s=b[(v&o)>>1]|0;if(s&4096){if(Vl(w)|0){y=ge;z=je;r=m;m=u;ie=1317;break a}s=b[(v&o)>>1]|0}if((s&514)==2)am(w)|0;x=x+1|0}while((x|0)<(c[(r&p)>>2]|0))}if(a[(ge&n)>>0]|0){y=ge;z=je;r=m;m=u;ie=1317;break a}c[(he&p)>>2]=t+1;r=m;m=g;g=100;break a}else{s=x;ie=1309}break}case 313:{c[(ke&p)>>2]=73058;c[(ke&p)+4>>2]=10788;bd(11,13600,ke);s=11;ie=1309;break}case 343:{c[(ke&p)>>2]=73142;c[(ke&p)+4>>2]=10788;bd(11,13600,ke);s=11;ie=1309;break}case 447:{dh(je,le,41712,ke);t=r;s=5;ie=1309;break}case 460:{c[(ke&p)>>2]=s;dh(je,le,41768,ke);s=1;ie=1309;break}case 462:{dh(je,le,41792,ke);s=5;ie=1309;break}case 467:{c[(he&p)>>2]=g;a[(ee&n)>>0]=0;c[(me&p)>>2]=5;g=5;break a}case 489:{v=c[(s+(t*20|0)&p)+4>>2]|0;s=c[(s+(t*20|0)&p)+8>>2]|0;g=(v|0)!=0;if(g){s=(s|0)!=0;if(!(s|(a[(ee&n)>>0]|0)!=0))if((c[(ae&p)>>2]|0)>0){dh(je,le,41848,ke);g=m;m=r;s=5;ie=1309;break}else s=0}else s=(s|0)!=0;if((v|0)==(d[(ee&n)>>0]|0)){if(g)g=s?41952:42e3;else g=41904;dh(je,le,g,ke);g=m;m=r;s=1;ie=1309;break}if(!s){g=tm(f,1)|0;if(g)break a;a[(ee&n)>>0]=v;if((Rl(f)|0)==5){c[(he&p)>>2]=t;a[(ee&n)>>0]=1-v;c[(me&p)>>2]=5;g=5;break a}}else{Kl(le,516);a[(ee&n)>>0]=1}Ll(le);g=(c[(me&p)>>2]|0)==0?101:1;break a}case 508:{c[(he&p)>>2]=g;c[(me&p)>>2]=5;g=5;break a}case 522:{mg(le,c[(je&p)>>2]|0);c[(je&p)>>2]=kh(le,16040)|0;s=c[(s&p)>>2]|0;if((c[(c[((c[(Xd&p)>>2]|0)+(s<<4)&p)+12>>2]&p)>>2]|0)!=(v|0))vm(le,s);b[(Yd&o)>>1]=b[(Yd&o)>>1]|8;s=17;ie=1309;break}case 542:{c[(ke&p)>>2]=73997;c[(ke&p)+4>>2]=10788;bd(11,13600,ke);u=11;x=s;ie=1318;break}case 560:{c[(s&p)+56>>2]=0;s=7;ie=1309;break}case 832:{a[(fe&n)>>0]=2;s=6;ie=1309;break}case 882:{Eg(le);y=ge;z=je;r=m;m=u;ie=1317;break a}case 884:{Eg(le);if((s|0)==7){y=ge;z=je;r=m;m=u;ie=1317;break a}else ie=1309;break}case 998:{dh(je,le,42112,ke);s=1;ie=1309;break}case 1080:{c[(ke&p)>>2]=s?42208:42216;dh(je,le,42152,ke);s=1;ie=1309;break}case 1101:{dh(je,le,42344,ke);s=1;ie=1309;break}case 1103:{dh(je,le,42384,ke);s=1;ie=1309;break}case 1145:{c[(ke&p)>>2]=56343;c[(ke&p)+4>>2]=10788;bd(11,13600,ke);s=11;ie=1309;break}case 1316:{dh(je,le,10096,ke);r=m;s=18;m=u;ie=1311;break a}}if((ie|0)==41)if((Rl(f)|0)==5){c[(me&p)>>2]=5;r=m;m=g;g=5;break a}else{r=m;m=g;g=(c[(me&p)>>2]|0)!=0?1:101;break a}else if((ie|0)==1309){r=m;t=t+1|0;m=u;ie=1311;break a}else if((ie|0)==1318){u=(a[(ge&n)>>0]|0)==0?u:7;if((u|0)==3082){r=m;s=3082;m=x;ie=1311;break a}else if((u|0)!=516){r=u&255;if(r>>>0>26|(r|0)==2)s=16328;else s=c[(r<<2&p)+15488>>2]|0}else s=16344;c[(ke&p)>>2]=s;dh(je,le,10344,ke);r=m;s=u;m=x;ie=1311;break a}}else{u=f+44|0;r=m;g=0;t=0;m=0}while(0);c[(me&p)>>2]=9;c[(ke&p)>>2]=15832;dh(u,le,10344,ke);s=9;ie=1311}while(0);if((ie|0)==1317){a[(y&n)>>0]=1;dh(z,le,15776,ke);s=7;ie=1311}if((ie|0)==1311){c[(me&p)>>2]=s;qd=c[(f&p)+168>>2]|0;rd=c[(f&p)+44>>2]|0;c[(ke&p)>>2]=t;c[(ke&p)+4>>2]=qd;c[(ke&p)+8>>2]=rd;bd(s,42256,ke);Rl(f)|0;if((s|0)==3082)a[(le&n)+65>>0]=1;if(!(m<<24>>24)){m=g;g=1}else{vm(le,(m&255)+-1|0);m=g;g=1}}rd=ne;c[(rd&p)>>2]=r;c[(rd&p)+4>>2]=l;rd=f+124|0;c[(rd&p)>>2]=(c[(rd&p)>>2]|0)+m;i=oe;return g|0} function Ev(e){e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=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=e+20|0;u=e+14|0;f=a[(u&n)>>0]|0;z=e+13|0;g=a[(z&n)>>0]|0;a:do if((f&255)>(g&255))f=0;else{B=e+4|0;C=e+16|0;v=e+8|0;w=e+12|0;x=e+24|0;y=e+28|0;i=f&255;j=c[(B&p)>>2]|0;h=c[(D&p)>>2]|0;b:while(1){t=c[(e+(i+-2<<2)&p)+24>>2]|0;s=c[(e+(i+-1<<2)&p)+24>>2]|0;if(j){while(1){r=j+12|0;if((h|0)<(c[(r&p)>>2]|0)){g=h;f=(c[(j&p)+20>>2]|0)+(h*48|0)|0;while(1){do if((c[(f&p)+8>>2]|0)==(t|0)?(c[(f&p)+12>>2]|0)==(s|0):0){if((d[(u&n)>>0]|0)>=3?(c[((c[(f&p)>>2]|0)&p)+4>>2]&1|0)!=0:0)break;q=f+18|0;h=b[(q&o)>>1]|0;if((h&1024)!=0?(A=a[(z&n)>>0]|0,(A&255)<22):0){i=c[((c[(f&p)>>2]|0)&p)+16>>2]|0;c:do if(!i)i=0;else while(1){k=c[(i&p)+4>>2]|0;if(!(k&4096))break c;if(!(k&262144))i=i+12|0;else i=c[((c[(i&p)+20>>2]|0)&p)+4>>2]|0;i=c[(i&p)>>2]|0;if(!i){i=0;break}}while(0);d:do if(!(A<<24>>24)){m=0;k=0}else{l=c[(i&p)+28>>2]|0;m=i+32|0;k=0;while(1){if((c[(e+(k<<2)&p)+24>>2]|0)==(l|0)?(c[(e+((k|1)<<2)&p)+24>>2]|0)==(b[(m&o)>>1]|0):0){m=A;break d}k=k+2|0;if((k|0)>=(A&255|0)){m=A;break}}}while(0);if((k|0)==(m&255|0)){c[(e+(k<<2)&p)+24>>2]=c[(i&p)+28>>2];c[(e+((k|1)<<2)&p)+24>>2]=b[(i&o)+32>>1];a[(z&n)>>0]=(d[(z&n)>>0]|0)+2}}i=h&65535;if(i&c[(C&p)>>2]){if((c[(v&p)>>2]|0)!=0&(i&128|0)==0){l=c[(c[(j&p)>>2]&p)>>2]|0;k=c[(f&p)>>2]|0;i=a[(w&n)>>0]|0;h=(nv(k)|0)<<24>>24;if((h|0)==66){if(i<<24>>24!=66)break}else if((h|0)!=65?i<<24>>24<=66:0)break;h=Ou(l,c[(k&p)+12>>2]|0,c[(k&p)+16>>2]|0)|0;if(!h)h=c[((c[(l&p)>>2]|0)&p)+8>>2]|0;if(dd(c[(h&p)>>2]|0,c[(v&p)>>2]|0)|0)break;h=b[(q&o)>>1]|0}if(!(h&2))break b;h=c[((c[(f&p)>>2]|0)&p)+16>>2]|0;if((a[(h&n)>>0]|0)!=-102)break b;if((c[(h&p)+28>>2]|0)!=(c[(x&p)>>2]|0))break b;if((b[(h&o)+32>>1]|0)!=(c[(y&p)>>2]|0))break b}}while(0);g=g+1|0;if((g|0)>=(c[(r&p)>>2]|0))break;else f=f+48|0}g=c[(B&p)>>2]|0}else g=j;j=c[(g&p)+4>>2]|0;c[(B&p)>>2]=j;if(!j)break;else h=0}f=a[(u&n)>>0]|0;g=a[(z&n)>>0]|0}j=c[(e&p)>>2]|0;c[(B&p)>>2]=j;h=(f&255)+2|0;f=h&255;a[(u&n)>>0]=f;if((f&255)>(g&255)){f=0;break a}else{i=h&255;h=0}}c[(D&p)>>2]=g+1}while(0);return f|0}function Fv(d,f){d=d|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0,m=0,q=0;g=c[(d&p)>>2]|0;l=c[(c[(g&p)>>2]&p)>>2]|0;d=c[(d&p)+16>>2]|0;a:do if(!d){g=g+16|0;i=c[(g&p)>>2]|0;k=f+36|0;if((c[(k&p)>>2]&512|0)!=0&(i|0)!=0){d=f+20|0;j=f+22|0;h=a[(f&n)+16>>0]|0;do{do if((a[(i&n)+16>>0]|0)==h<<24>>24?(c[(i&p)+36>>2]&512|0)!=0:0){if(Tv(i,f)|0){b[(d&o)>>1]=b[(i&o)+20>>1]|0;b[(j&o)>>1]=(e[(i&o)+22>>1]|0)+65535;break}if(Tv(f,i)|0){b[(d&o)>>1]=b[(i&o)+20>>1]|0;b[(j&o)>>1]=(e[(i&o)+22>>1]|0)+1}}while(0);i=c[(i&p)+52>>2]|0}while((i|0)!=0)}d=Uv(g,f)|0;if(d){g=c[(d&p)>>2]|0;b:do if(g){d=g+52|0;if(c[(d&p)>>2]|0)do{d=Uv(d,f)|0;if(!d)break b;h=c[(d&p)>>2]|0;if(!h)break b;c[(d&p)>>2]=c[(h&p)+52>>2];Ju(l,h);mg(l,h)}while((c[(d&p)>>2]|0)!=0)}else{g=mh(l,72,0)|0;c[(d&p)>>2]=g;if(!g){d=7;break a}c[(g&p)+48>>2]=g+56;b[(g&o)+40>>1]=0;b[(g&o)+44>>1]=3;c[(g&p)+36>>2]=0;c[(g&p)+52>>2]=0}while(0);Lv(l,g);do if(!(Nu(l,g,e[(f&o)+40>>1]|0)|0)){h=g+0|0;d=f+0|0;i=h+44|0;do{c[(h&p)>>2]=c[(d&p)>>2];h=h+4|0;d=d+4|0}while((h|0)<(i|0));kw(c[(g&p)+48>>2]|0,c[(f&p)+48>>2]|0,e[(g&o)+40>>1]<<2|0)|0;d=c[(k&p)>>2]|0;if(d&1024){a[(f&n)+28>>0]=0;break}if(d&16384)c[(f&p)+28>>2]=0}else{d=g+24|0;c[(d&p)>>2]=0;c[(d&p)+4>>2]=0;c[(d&p)+8>>2]=0}while(0);if(((c[(g&p)+36>>2]&1024|0)==0?(m=g+28|0,q=c[(m&p)>>2]|0,(q|0)!=0):0)?(c[(q&p)+40>>2]|0)==0:0){c[(m&p)>>2]=0;d=0}else d=0}else d=0}else{g=f;Kv(d,c[(g&p)>>2]|0,c[(g&p)+4>>2]|0,b[(f&o)+20>>1]|0,b[(f&o)+22>>1]|0);d=0}while(0);return d|0}function Gv(a,b){a=a|0;b=b|0;var c=0,e=0;c=a<<16>>16;e=b<<16>>16;do if(a<<16>>16>16)if((e|0)<=(c+49|0))if((e|0)>(c+31|0)){a=e+1&65535;break}else{a=(d[(e-c&n)+34032>>0]|0)+e&65535;break}else a=b;else if((c|0)<=(e+49|0))if((c|0)>(e+31|0)){a=c+1&65535;break}else{a=(d[(c-e&n)+34032>>0]|0)+c&65535;break}while(0);return a|0}function Hv(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0;do if(!(Cu(b,d,e)|0))f=1;else{f=a[(d&n)>>0]|0;if(f<<24>>24==71){if(Hv(b,c[(d&p)+12>>2]|0,e)|0){f=1;break}if(Hv(b,c[(d&p)+16>>2]|0,e)|0){f=1;break}if(f<<24>>24==77)g=6}else if(f<<24>>24==77)g=6;if(((g|0)==6?(Cu(c[(b&p)+12>>2]|0,c[(d&p)+12>>2]|0,e)|0)==0:0)?(f=a[(b&n)>>0]|0,!(f<<24>>24==73|f<<24>>24==76)):0){f=1;break}f=0}while(0);return f|0}function Iv(a,d,f){a=a|0;d=d|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0;x=i;i=i+16|0;if((i|0)>=(j|0))fa();w=x;u=d;v=d+8|0;g=v;t=~(c[(g&p)>>2]|c[(u&p)>>2]);u=~(c[(g&p)+4>>2]|c[(u&p)+4>>2]);g=c[(a&p)+12>>2]|0;r=a+20|0;a:do if((g|0)>0){s=d+40|0;a=d+22|0;q=d+48|0;d=0;n=c[(r&p)>>2]|0;while(1){if(b[(n&o)+20>>1]&2)break a;m=n+40|0;l=c[(m&p)>>2]|0;m=c[(m&p)+4>>2]|0;k=v;b:do if(((c[(k&p)>>2]&l|0)!=0?1:(c[(k&p)+4>>2]&m|0)!=0)&((l&t|0)==0&(m&u|0)==0)){h=b[(s&o)>>1]|0;c:do if(h<<16>>16){m=c[(q&p)>>2]|0;l=h&65535;while(1){h=l;l=l+-1|0;k=c[(m+(l<<2)&p)>>2]|0;if(k){if((k|0)==(n|0))break;k=c[(k&p)+4>>2]|0;if((k|0)>-1?((c[(r&p)>>2]|0)+(k*48|0)|0)==(n|0):0)break}if((l|0)<=0)break c}if((h|0)>=1)break b}while(0);h=b[(n&o)+16>>1]|0;if(h<<16>>16<1){b[(a&o)>>1]=(e[(a&o)>>1]|0)+(h&65535);break}b[(a&o)>>1]=(b[(a&o)>>1]|0)+-1<<16>>16;if(b[(n&o)+18>>1]&2){l=(Ms(c[((c[(n&p)>>2]|0)&p)+16>>2]|0,w)|0)!=0;m=c[(w&p)>>2]|0;m=l&(m|0)>-2&(m|0)<2?10:20;c[(w&p)>>2]=m;d=(d<<16>>16|0)<(m|0)?m&65535:d}}while(0);g=g+-1|0;if((g|0)<=0)break;else n=n+48|0}}else{a=d+22|0;d=0}while(0);d=(f<<16>>16)-(d<<16>>16)|0;if((b[(a&o)>>1]|0)>(d|0))b[(a&o)>>1]=d;i=x;return}function Jv(d,f,g,h){d=d|0;f=f|0;g=g|0;h=h|0;var k=0,l=0,m=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,ga=0,ha=0;ha=i;i=i+112|0;if((i|0)>=(j|0))fa();R=ha;V=c[(c[(c[(d&p)>>2]&p)>>2]&p)>>2]|0;ea=c[(d&p)+12>>2]|0;if(!(a[(V&n)+65>>0]|0)){ga=ea+36|0;if(!(c[(ga&p)>>2]&32))if((c[(g&p)+40>>2]|0)<1)k=63;else k=(a[(f&n)+36>>0]&8)<<4^191;else k=24;W=g+51|0;ca=ea+24|0;l=b[((c[(g&p)+4>>2]|0)+(e[(ca&o)>>1]<<1)&o)>>1]|0;N=l<<16>>16;O=d+4|0;k=Dv(R,c[(O&p)>>2]|0,c[(f&p)+40>>2]|0,N,(a[(W&n)>>0]&4)==0?k:k&131,g)|0;X=b[(ca&o)>>1]|0;Y=ea+42|0;T=b[(Y&o)>>1]|0;Z=ea+40|0;U=b[(Z&o)>>1]|0;_=c[(ga&p)>>2]|0;Q=ea;P=c[(Q&p)>>2]|0;Q=c[(Q&p)+4>>2]|0;$=ea+22|0;aa=b[($&o)>>1]|0;b[(ea&o)+18>>1]=0;ba=g+8|0;D=b[(c[(ba&p)>>2]&o)>>1]|0;if(D<<16>>16<11)C=0;else{C=D<<16>>16;C=((fs(C,((C|0)<0)<<31>>31)|0)&65535)+65503&65535}a:do if(!k)k=0;else{E=l<<16>>16<0;F=f+16|0;G=ea+8|0;H=(U&65535)+1|0;I=ea+48|0;J=h<<16>>16==0;K=g+46|0;w=l<<16>>16>-1;x=g+50|0;y=g+44|0;z=ea+20|0;A=h<<16>>16;B=g+48|0;r=0;u=k;s=0;while(1){l=b[(u&o)+18>>1]|0;t=l&65535;if(l<<16>>16==128)if(!E?(a[((c[((c[(F&p)>>2]|0)&p)+4>>2]|0)+(N*24|0)&n)+20>>0]|0)==0:0)S=12;else{m=r;l=s;k=0}else S=12;if((S|0)==12){S=0;m=u+32|0;v=m;q=G;if(((c[(q&p)>>2]&c[(v&p)>>2]|0)==0?(c[(q&p)+4>>2]&c[(v&p)+4>>2]|0)==0:0)?(L=u+20|0,!((b[(L&o)>>1]&256)!=0&l<<16>>16==16)):0){c[(ga&p)>>2]=_;b[(ca&o)>>1]=X;b[(Z&o)>>1]=U;if(Nu(V,ea,H)|0){k=0;break a}k=b[(Z&o)>>1]|0;q=k+1<<16>>16;b[(Z&o)>>1]=q;c[((c[(I&p)>>2]|0)+((k&65535)<<2)&p)>>2]=u;k=m;l=G;m=(c[(k&p)+4>>2]|Q)&~c[(l&p)+4>>2];v=ea;c[(v&p)>>2]=(c[(k&p)>>2]|P)&~c[(l&p)>>2];c[(v&p)+4>>2]=m;b:do if(!(t&1)){if(t&2){k=c[(ga&p)>>2]|0;l=k|1;c[(ga&p)>>2]=l;do if(!E){if(!J){v=0;break b}if((e[(ca&o)>>1]|0)!=((e[(K&o)>>1]|0)+-1|0)){v=0;break b}if(!w)break;if(a[(x&n)>>0]|0)break;l=k|65537;c[(ga&p)>>2]=l;v=0;break b}while(0);l=k|4097;c[(ga&p)>>2]=l;v=0;break}if(t&128){l=c[(ga&p)>>2]|8;c[(ga&p)>>2]=l;v=0;break}k=c[(ga&p)>>2]|0;if(!(t&36)){l=k|18;c[(ga&p)>>2]=l;if(!(k&32)){v=0;r=0;s=u;break}v=0;r=c[((c[(I&p)>>2]|0)+((q&65535)+-2<<2)&p)>>2]|0;s=u;break}l=k|34;c[(ga&p)>>2]=l;if(!(b[(L&o)>>1]&256)){v=0;r=u;s=0}else{k=u+48|0;if(Nu(V,ea,(q&65535)+1|0)|0){k=0;break a}l=b[(Z&o)>>1]|0;b[(Z&o)>>1]=l+1<<16>>16;c[((c[(I&p)>>2]|0)+((l&65535)<<2)&p)>>2]=k;l=c[(ga&p)>>2]|16;c[(ga&p)>>2]=l;v=0;r=u;s=k}}else{k=c[(u&p)>>2]|0;l=c[(ga&p)>>2]|4;c[(ga&p)>>2]=l;if(!(c[(k&p)+4>>2]&2048)){k=c[(k&p)+20>>2]|0;if((k|0)!=0?(M=c[(k&p)>>2]|0,(M|0)!=0):0)v=(fs(M,((M|0)<0)<<31>>31)|0)<<16>>16;else v=0}else v=46}while(0);do if(!(l&2)){k=(b[(ca&o)>>1]|0)+1<<16>>16;b[(ca&o)>>1]=k;k=k&65535;m=b[(u&o)+16>>1]|0;if(m<<16>>16<1&w){q=(m&65535)-v+(e[($&o)>>1]|0)&65535;b[($&o)>>1]=q;break}m=c[(ba&p)>>2]|0;m=(e[($&o)>>1]|0)+((e[(m+(k<<1)&o)>>1]|0)-(e[(m+(k+-1<<1)&o)>>1]|0))|0;k=m&65535;b[($&o)>>1]=k;if(!(t&128))q=k;else{q=m+10&65535;b[($&o)>>1]=q}}else{k=b[($&o)>>1]|0;q=k<<16>>16;do if(r){m=b[(r&o)+16>>1]|0;if(m<<16>>16<1){k=(m&65535)+(k&65535)&65535;break}else{k=(k&65535)+65516&65535;break}}while(0);do if(s){m=b[(s&o)+16>>1]|0;if(m<<16>>16<1){k=(m&65535)+(k&65535)&65535;break}else{k=(k&65535)+65516&65535;break}}while(0);m=(r|0)!=0;do if(m?(b[(r&o)+16>>1]|0)>0&(s|0)!=0:0){if((b[(s&o)+16>>1]|0)<=0)break;k=(k&65535)+65516&65535}while(0);q=(((s|0)!=0)<<31>>31)+(m<<31>>31)+q|0;u=k<<16>>16<10?10:k<<16>>16;q=((u|0)<(q|0)?u:q)&65535;b[($&o)>>1]=q}while(0);k=q&65535;m=Gv(C,k+1+(((b[(y&o)>>1]|0)*15|0)/(b[((c[(F&p)>>2]|0)&o)+42>>1]|0)|0)&65535)|0;if(!(l&320))m=Gv(m,k+16&65535)|0;l=v+A|0;b[(z&o)>>1]=(m&65535)+l;b[($&o)>>1]=k+l;Iv(c[(O&p)>>2]|0,ea,D);k=Fv(d,ea)|0;v=c[(ga&p)>>2]|0;b[($&o)>>1]=(v&2|0)==0?q:aa;if((v&16|0)==0?(e[(ca&o)>>1]|0)<(e[(B&o)>>1]|0):0)Jv(d,f,g,l&65535)|0;b[($&o)>>1]=aa;m=r;l=s}else{m=r;l=s;k=0}}u=Ev(R)|0;if(!((k|0)==0&(u|0)!=0))break;else{r=m;s=l}}}while(0);l=ea;c[(l&p)>>2]=P;c[(l&p)+4>>2]=Q;b[(ca&o)>>1]=X;b[(Y&o)>>1]=T;c[(ga&p)>>2]=_;b[($&o)>>1]=aa;b[(Z&o)>>1]=U;l=X&65535;if(((X<<16>>16==T<<16>>16?(da=l+1|0,da>>>0<(e[(g&o)+46>>1]|0)>>>0):0)?(a[(W&n)>>0]&64)==0:0)?(b[((c[(ba&p)>>2]|0)+(da<<1)&o)>>1]|0)>41:0){k=Nu(V,ea,(U&65535)+1|0)|0;if(!k){b[(ca&o)>>1]=(b[(ca&o)>>1]|0)+1<<16>>16;b[(Y&o)>>1]=(b[(Y&o)>>1]|0)+1<<16>>16;k=b[(Z&o)>>1]|0;b[(Z&o)>>1]=k+1<<16>>16;c[((c[(ea&p)+48>>2]|0)+((k&65535)<<2)&p)>>2]=0;c[(ga&p)>>2]=c[(ga&p)>>2]|32768;k=c[(ba&p)>>2]|0;k=(e[(k+(l<<1)&o)>>1]|0)-(e[(k+(da<<1)&o)>>1]|0)|0;b[($&o)>>1]=(e[($&o)>>1]|0)-k;Jv(d,f,g,(((k<<16)+327680|0)>>>16)+(h&65535)&65535)|0;b[($&o)>>1]=aa;b[(ca&o)>>1]=X;b[(Y&o)>>1]=X;c[(ga&p)>>2]=_;k=0}}}else k=7;i=ha;return k|0}function Kv(a,d,e,f,g){a=a|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,i=0,j=0,k=0,l=0,m=0,n=0,q=0,r=0;l=b[(a&o)>>1]|0;h=a+8|0;a:do if(l<<16>>16){j=l;k=h;while(1){i=b[(k&o)+8>>1]|0;if(i<<16>>16>=f<<16>>16?(r=k,(c[(r&p)>>2]&d|0)==(d|0)?(c[(r&p)+4>>2]&e|0)==(e|0):0):0){n=k;q=14;break a}if(i<<16>>16<=f<<16>>16?(i=k,r=c[(i&p)>>2]|0,i=c[(i&p)+4>>2]|0,(r&d|0)==(r|0)&(i&e|0)==(i|0)):0)break a;j=j+-1<<16>>16;if(!(j<<16>>16))break;else k=k+16|0}if((l&65535)>=3){i=b[(a&o)+16>>1]|0;k=1;do{if(i<<16>>16>(b[(a+(k<<4)&o)+16>>1]|0))h=a+(k<<4)+8|0;k=k+1|0;i=b[(h&o)+8>>1]|0}while((k&65535)<(l&65535));if(i<<16>>16>f<<16>>16){n=h;q=14}}else q=9}else q=9;while(0);if((q|0)==9){n=l&65535;b[(a&o)>>1]=l+1<<16>>16;b[(a+(n<<4)&o)+18>>1]=g;n=a+(n<<4)+8|0;q=14}if((q|0)==14?(m=n,c[(m&p)>>2]=d,c[(m&p)+4>>2]=e,b[(n&o)+8>>1]=f,m=n+10|0,(b[(m&o)>>1]|0)>g<<16>>16):0)b[(m&o)>>1]=g;return}function Lv(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0;e=c[(d&p)+36>>2]|0;do if(e&17408){if((e&1024|0)!=0?(h=d+28|0,(a[(h&n)>>0]|0)!=0):0){e=d+32|0;Wc(c[(e&p)>>2]|0);a[(h&n)>>0]=0;c[(e&p)>>2]=0;break}if((e&16384|0)!=0?(f=d+28|0,g=c[(f&p)>>2]|0,(g|0)!=0):0){mg(b,c[(g&p)+16>>2]|0);mg(b,c[(f&p)>>2]|0);c[(f&p)>>2]=0}}while(0);return}function Mv(f,g,h,k,l,m,q){f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;m=m|0;q=q|0;var 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,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,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;ta=i;i=i+32|0;if((i|0)>=(j|0))fa();oa=ta;s=c[(c[(f&p)>>2]&p)>>2]|0;na=l&65535;if(l<<16>>16!=0?(b[(s&o)+60>>1]&128)!=0:0)r=0;else pa=3;a:do if((pa|0)==3){sa=c[(g&p)>>2]|0;r=sa&65535;if(r>>>0<=63){qa=iw(1,0,r|0)|0;qa=jw(qa|0,G|0,-1,-1)|0;ra=G;b:do if((qa|0)==0&(ra|0)==0){g=0;h=0;s=1}else{ha=h+24|0;ia=f+4|0;ja=(r|0)==0;ea=g+4|0;ga=(k&768)==0;da=s+8|0;W=(k&256)==0;X=f+68|0;Y=oa+20|0;Z=oa+4|0;aa=oa+24|0;ba=f+328|0;_=0;$=0;g=0;h=0;k=0;t=0;ca=0;s=1;l=0;while(1){if((ca|0)>0){U=l+8|0;V=c[(U&p)>>2]|k;t=c[(U&p)+4>>2]|t}else V=k;if((ca|0)<(na|0))l=c[((c[(ha&p)>>2]|0)+(ca<<2)&p)>>2]|0;else l=m;B=l+36|0;k=c[(B&p)>>2]|0;if(k&1024)break;U=c[((c[(ia&p)>>2]|0)+((d[(l&n)+16>>0]|0)*72|0)&p)+48>>2]|0;if(!ja){k=~V;v=~t;y=0;do{A=iw(1,0,y|0)|0;z=G;c:do if((A&g|0)==0&(z&h|0)==0){u=c[((c[(ea&p)>>2]|0)+(y*20|0)&p)>>2]|0;x=c[(u&p)+4>>2]|0;if(x&4096)do{if(!(x&262144))u=u+12|0;else u=c[((c[(u&p)+20>>2]|0)&p)+4>>2]|0;u=c[(u&p)>>2]|0;x=c[(u&p)+4>>2]|0}while((x&4096|0)!=0);if(((a[(u&n)>>0]|0)==-102?(c[(u&p)+28>>2]|0)==(U|0):0)?(ka=u+32|0,la=Fu(ba,U,b[(ka&o)>>1]|0,k,v,130,0)|0,(la|0)!=0):0){do if(b[(la&o)+18>>1]&2){if((b[(ka&o)>>1]|0)<=-1)break;u=cu(c[(f&p)>>2]|0,c[((c[(ea&p)>>2]|0)+(y*20|0)&p)>>2]|0)|0;if(!u)u=c[(da&p)>>2]|0;x=c[(u&p)>>2]|0;w=cu(c[(f&p)>>2]|0,c[(la&p)>>2]|0)|0;if(!w)w=c[(da&p)>>2]|0;if(dd(x,c[(w&p)>>2]|0)|0)break c}while(0);g=A|g;h=z|h}}while(0);y=y+1|0}while((y|0)<(r|0));k=c[(B&p)>>2]|0}do if(!(k&4096)){if(!(k&256)){u=c[(l&p)+28>>2]|0;if(!u){r=0;break a}if(a[(u&n)+51>>0]&4){r=0;break a}k=b[(u&o)+48>>1]|0;s=(a[(u&n)+50>>0]|0)!=0&1;if(!(k<<16>>16)){pa=71;break}else{S=k&65535;T=b[(u&o)+46>>1]|0}}else{S=1;T=0;u=0}J=l+24|0;K=l+42|0;L=l+48|0;M=(u|0)==0;N=u+32|0;O=iw(1,0,ca|0)|0;P=G;Q=u+4|0;R=u+28|0;I=u+12|0;k=0;u=0;A=0;H=0;d:while(1){z=(u|0)<(e[(J&o)>>1]|0);if((z?(b[(K&o)>>1]|0)==0:0)?(ma=e[((c[((c[(L&p)>>2]|0)+(u<<2)&p)>>2]|0)&o)+18>>1]|0,(ma&130|0)!=0):0){s=(ma&128|0)==0?s:0;z=H}else{if(!M){x=b[((c[(Q&p)>>2]|0)+(u<<1)&o)>>1]|0;w=a[((c[(R&p)>>2]|0)+u&n)>>0]|0;v=c[(I&p)>>2]|0;x=x<<16>>16==(b[(v&o)+36>>1]|0)?-1:x<<16>>16;y=(x|0)>-1;if(s<<24>>24!=0&y)if(z){y=1;F=x}else{y=1;F=x;s=(a[((c[(v&p)+4>>2]|0)+(x*24|0)&n)+20>>0]|0)==0?0:s}else F=x}else{y=0;F=-1;w=0}if(ja){pa=68;break}else{z=1;E=0}e:while(1){C=iw(1,0,E|0)|0;D=G;do if((C&g|0)==0&(D&h|0)==0){v=c[((c[(ea&p)>>2]|0)+(E*20|0)&p)>>2]|0;x=c[(v&p)+4>>2]|0;if(!(x&4096))B=v;else{B=v;do{if(!(x&262144))x=B+12|0;else x=c[((c[(B&p)+20>>2]|0)&p)+4>>2]|0;B=c[(x&p)>>2]|0;x=c[(B&p)+4>>2]|0}while((x&4096|0)!=0)}z=ga?0:z;if((a[(B&n)>>0]|0)!=-102)break;if((c[(B&p)+28>>2]|0)!=(U|0))break;if((b[(B&o)+32>>1]|0)!=(F|0))break;if(!y){B=C;y=D;z=E;break e}x=cu(c[(f&p)>>2]|0,v)|0;if(!x)x=c[(da&p)>>2]|0;if(!(dd(c[(x&p)>>2]|0,c[((c[(N&p)>>2]|0)+(u<<2)&p)>>2]|0)|0)){B=C;y=D;z=E;break e}}while(0);E=E+1|0;if(!(z<<24>>24!=0&(E|0)<(r|0))){pa=68;break d}}do if(W){if(H<<24>>24)if((w^A)<<24>>24==(a[((c[(ea&p)>>2]|0)+(z*20|0)&n)+12>>0]|0)){z=H;break}else{pa=68;break d}v=a[((c[(ea&p)>>2]|0)+(z*20|0)&n)+12>>0]|0;A=v^w;if(w<<24>>24==v<<24>>24){z=1;break}v=q;w=c[(v&p)+4>>2]|P;z=q;c[(z&p)>>2]=c[(v&p)>>2]|O;c[(z&p)+4>>2]=w;z=1}else z=H;while(0);g=B|g;h=y|h;k=(F|0)<0?1:k}u=u+1|0;if((u|0)>=(S|0))break;else H=z}if((pa|0)==68){pa=0;s=(u|0)==0|(u|0)<(T&65535|0)?0:s}if(!(k<<24>>24))pa=71;else s=1}else pa=71;while(0);if((pa|0)==71){pa=0;if(!(s<<24>>24)){s=0;break b}}U=l+8|0;_=c[(U&p)>>2]|_;$=c[(U&p)+4>>2]|$;if(!ja){z=~_;A=~$;y=0;do{u=iw(1,0,y|0)|0;x=G;do if((u&g|0)==0&(x&h|0)==0){k=c[((c[(ea&p)>>2]|0)+(y*20|0)&p)>>2]|0;v=Av(X,k)|0;w=G;if((v|0)==0&(w|0)==0?(c[(oa&p)>>2]=0,c[(oa&p)+4>>2]=0,c[(oa&p)+8>>2]=0,c[(oa&p)+12>>2]=0,c[(oa&p)+16>>2]=0,c[(oa&p)+20>>2]=0,a[(Y&n)>>0]=1,c[(oa&p)>>2]=78,c[(Z&p)>>2]=79,c[(aa&p)>>2]=0,rs(oa,k)|0,(a[(Y&n)>>0]|0)==0):0)break;U=(v&z|0)==0&(w&A|0)==0;g=(U?u:0)|g;h=(U?x:0)|h}while(0);y=y+1|0}while((y|0)<(r|0))}if(h>>>0>ra>>>0|(h|0)==(ra|0)&g>>>0>=qa>>>0|s<<24>>24==0|(ca|0)>=(na|0))break b;else{k=V;ca=ca+1|0}}ga=(a[(l&n)+29>>0]|0)==0;g=ga?g:qa;h=ga?h:ra}while(0);if((g|0)==(qa|0)&(h|0)==(ra|0)){r=sa&255;break}if(!(s<<24>>24)){do{r=r+-1|0;if((r|0)<=0){r=0;break a}ea=iw(1,0,r|0)|0;ea=jw(ea|0,G|0,-1,-1)|0;ga=G}while(!((ea&g|0)==(ea|0)&(ga&h|0)==(ga|0)));r=r&255}else r=-1}else r=0}while(0);i=ta;return r|0}function Nv(b,c,d,e){b=b|0;c=c|0;d=d|0;e=e|0;if(c)Sk(b,33920,5);if(!d)c=0;else{c=d;while(1)if(!(a[(c&n)>>0]|0))break;else c=c+1|0;c=c-d&1073741823}Sk(b,d,c);Sk(b,e,1);Sk(b,13552,1);return}function Ov(a){a=a|0;var d=0,e=0,f=0,g=0,h=0,i=0;i=c[(c[(c[(a&p)>>2]&p)>>2]&p)>>2]|0;d=c[(a&p)+12>>2]|0;g=a+20|0;if((d|0)>0){h=c[(g&p)>>2]|0;while(1){d=d+-1|0;f=h+20|0;e=b[(f&o)>>1]|0;if(e&1){Gk(i,c[(h&p)>>2]|0);e=b[(f&o)>>1]|0}e=e&65535;if(!(e&16)){if(e&32){e=c[(h&p)+12>>2]|0;Ov(e);mg(i,e)}}else{e=c[(h&p)+12>>2]|0;Ov(e);mg(i,e)}if((d|0)<=0)break;else h=h+48|0}}d=c[(g&p)>>2]|0;if((d|0)!=(a+24|0))mg(i,d);return}function Pv(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,o=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0;u=i;i=i+32|0;if((i|0)>=(j|0))fa();t=u;h=c[(b&p)+8>>2]|0;k=c[(b&p)>>2]|0;if(e){l=(f|0)==10;m=b+437|0;o=t+4|0;q=t+1|0;r=t+8|0;s=t+12|0;g=f&255;do{if(l)f=a[(e&n)+1>>0]|0;else f=g;a[(m&n)>>0]=f;f=d[(e&n)>>0]|0;if((f|0)==108){w=Vv(b,e)|0;v=gr(k,c[(e&p)+8>>2]|0,0)|0;f=Nr(k,c[(e&p)+28>>2]|0)|0;tr(b,w,v,f,d[(m&n)>>0]|0)}else if((f|0)==109){f=Vv(b,e)|0;rr(b,f,Mr(k,c[(e&p)+20>>2]|0,0,0)|0)}else if((f|0)==110){w=Vv(b,e)|0;v=Pr(k,c[(e&p)+24>>2]|0,0)|0;f=Mr(k,c[(e&p)+20>>2]|0,0,0)|0;sr(b,w,v,f,d[(m&n)>>0]|0)}else{f=gr(k,c[(e&p)+8>>2]|0,0)|0;a[(t&n)>>0]=4;c[(o&p)>>2]=0;a[(q&n)>>0]=0;c[(r&p)>>2]=0;c[(s&p)>>2]=0;ir(b,f,t)|0;Mk(k,f,1)}if((a[(e&n)>>0]|0)!=119)wh(h,98,0,0,0)|0;e=c[(e&p)+32>>2]|0}while((e|0)!=0)}i=u;return}function Qv(d,e,f,g){d=d|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0;m=i;i=i+16|0;if((i|0)>=(j|0))fa();h=m;l=c[(d&p)>>2]|0;c[(h&p)>>2]=0;c[(h&p)+4>>2]=0;h=nr(l,159,h,0)|0;do if(!h)h=0;else{k=g<<16>>16;if(g<<16>>16>-1?(b[(e&o)+36>>1]|0)!=g<<16>>16:0){g=c[(e&p)+4>>2]|0;c[(h&p)+28>>2]=f+1+k;a[(h&n)+1>>0]=a[(g+(k*24|0)&n)+21>>0]|0;k=c[(g+(k*24|0)&p)+16>>2]|0;if(!k)k=c[(c[(l&p)+8>>2]&p)>>2]|0;h=xv(d,h,k)|0;break}c[(h&p)+28>>2]=f;a[(h&n)+1>>0]=68}while(0);i=m;return h|0}function Rv(d,e,f,g){d=d|0;e=e|0;f=f|0;g=g|0;var h=0,i=0,j=0;d=mh(d,48,0)|0;if(d){h=d+0|0;i=h+44|0;do{a[(h&n)>>0]=0;h=h+1|0}while((h|0)<(i|0));a[(d&n)>>0]=-102;b[(d&o)+34>>1]=-1;c[(d&p)+24>>2]=1;h=c[(e+(f*72|0)&p)+24>>2]|0;c[(d&p)+44>>2]=h;c[(d&p)+28>>2]=c[(e+(f*72|0)&p)+48>>2];if((b[(h&o)+36>>1]|0)==(g|0))b[(d&o)+32>>1]=-1;else{b[(d&o)+32>>1]=g;j=(g|0)>63;g=iw(1,0,g|0)|0;h=e+(f*72|0)+64|0;f=h;i=c[(f&p)+4>>2]|(j?-2147483648:G);c[(h&p)>>2]=c[(f&p)>>2]|(j?0:g);c[(h&p)+4>>2]=i}h=d+4|0;c[(h&p)>>2]=c[(h&p)>>2]|4}return d|0}function Sv(b,e){b=b|0;e=e|0;if((a[(e&n)>>0]|0)==-101){e=e+38|0;a[(e&n)>>0]=(d[(e&n)>>0]|0)+(c[(b&p)+24>>2]|0)}return 0}function Tv(a,d){a=a|0;d=d|0;var f=0,g=0,h=0,i=0,j=0,k=0;f=b[(a&o)+40>>1]|0;i=f&65535;h=b[(a&o)+42>>1]|0;k=e[(d&o)+40>>1]|0;g=b[(d&o)+42>>1]|0;a:do if(!((g&65535)>(h&65535)?1:(i-(h&65535)|0)>=(k-(g&65535)|0))){g=b[(a&o)+20>>1]|0;h=b[(d&o)+20>>1]|0;if(g<<16>>16>=h<<16>>16){if(g<<16>>16>h<<16>>16){f=0;break}if((b[(a&o)+22>>1]|0)>(b[(d&o)+22>>1]|0)){f=0;break}}if(!(f<<16>>16))f=1;else{j=c[(a&p)+48>>2]|0;d=d+48|0;a=i;while(1){a=a+-1|0;h=c[(j+(a<<2)&p)>>2]|0;if(h){f=k;while(1){g=f+-1|0;if((f|0)<=0){f=0;break a}if((c[((c[(d&p)>>2]|0)+(g<<2)&p)>>2]|0)==(h|0))break;else f=g}if((f|0)<1){f=0;break a}}if((a|0)<=0){f=1;break}}}}else f=0;while(0);return f|0}function Uv(d,e){d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0,v=0;f=c[(d&p)>>2]|0;a:do if(f){k=a[(e&n)+16>>0]|0;l=e+17|0;m=e+18|0;q=e+20|0;r=e+22|0;s=e+42|0;t=e+36|0;do{if((a[(f&n)+16>>0]|0)==k<<24>>24?(a[(f&n)+17>>0]|0)==(a[(l&n)>>0]|0):0){if((((c[(f&p)+36>>2]&16384|0)!=0?(b[(s&o)>>1]|0)==0:0)?(c[(t&p)>>2]&513|0)==513:0)?(i=f,j=e,h=c[(j&p)>>2]|0,j=c[(j&p)+4>>2]|0,(h&c[(i&p)>>2]|0)==(h|0)?(j&c[(i&p)+4>>2]|0)==(j|0):0):0)break a;u=f;v=c[(u&p)>>2]|0;u=c[(u&p)+4>>2]|0;h=e;g=c[(h&p)>>2]|0;h=c[(h&p)+4>>2]|0;i=g&v;j=h&u;if((((i|0)==(v|0)&(j|0)==(u|0)?(b[(f&o)+18>>1]|0)<=(b[(m&o)>>1]|0):0)?(b[(f&o)+20>>1]|0)<=(b[(q&o)>>1]|0):0)?(b[(f&o)+22>>1]|0)<=(b[(r&o)>>1]|0):0){d=0;break a}if(((i|0)==(g|0)&(j|0)==(h|0)?(b[(f&o)+20>>1]|0)>=(b[(q&o)>>1]|0):0)?(b[(f&o)+22>>1]|0)>=(b[(r&o)>>1]|0):0)break a}d=f+52|0;f=c[(d&p)>>2]|0}while((f|0)!=0)}while(0);return d|0}function Vv(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;h=pr(c[(a&p)>>2]|0,0,b+12|0,0)|0;do if(h){g=c[(a&p)>>2]|0;f=c[((c[(b&p)+4>>2]|0)&p)+20>>2]|0;a:do if(f){e=c[(g&p)+20>>2]|0;if((e|0)>0){b=c[(g&p)+16>>2]|0;d=0;while(1){a=d+1|0;if((c[(b+(d<<4)&p)+12>>2]|0)==(f|0)){a=d;d=7;break a}if((a|0)<(e|0))d=a;else{d=7;break}}}else a=0}else{a=-1e6;d=7}while(0);if((d|0)==7)if(!((a|0)==0|(a|0)>1))break;a=kh(g,c[((c[(g&p)+16>>2]|0)+(a<<4)&p)>>2]|0)|0;c[(h+(((c[(h&p)>>2]|0)+-1|0)*72|0)&p)+12>>2]=a}while(0);return h|0}function Wv(a){a=a|0;var b=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,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;do if(a>>>0<245){if(a>>>0<11)q=16;else q=a+11&-8;a=q>>>3;l=c[12266]|0;i=l>>>a;if(i&3){e=(i&1^1)+a|0;f=e<<1;b=49104+(f<<2)|0;f=49104+(f+2<<2)|0;g=c[(f&p)>>2]|0;h=g+8|0;i=c[(h&p)>>2]|0;do if((b|0)!=(i|0)){if(i>>>0<(c[12270]|0)>>>0)Ob();d=i+12|0;if((c[(d&p)>>2]|0)==(g|0)){c[(d&p)>>2]=b;c[(f&p)>>2]=i;break}else Ob()}else c[12266]=l&~(1<>2]=x|3;x=g+(x|4)|0;c[(x&p)>>2]=c[(x&p)>>2]|1;x=h;return x|0}k=c[12268]|0;if(q>>>0>k>>>0){if(i){f=2<>>12&16;f=f>>>a;e=f>>>5&8;f=f>>>e;d=f>>>2&4;f=f>>>d;g=f>>>1&2;f=f>>>g;h=f>>>1&1;h=(e|a|d|g|h)+(f>>>h)|0;f=h<<1;g=49104+(f<<2)|0;f=49104+(f+2<<2)|0;d=c[(f&p)>>2]|0;a=d+8|0;e=c[(a&p)>>2]|0;do if((g|0)!=(e|0)){if(e>>>0<(c[12270]|0)>>>0)Ob();i=e+12|0;if((c[(i&p)>>2]|0)==(d|0)){c[(i&p)>>2]=g;c[(f&p)>>2]=e;m=c[12268]|0;break}else Ob()}else{c[12266]=l&~(1<>2]=q|3;j=d+q|0;c[(d+(q|4)&p)>>2]=b|1;c[(d+x&p)>>2]=b;if(m){e=c[12271]|0;g=m>>>3;i=g<<1;f=49104+(i<<2)|0;h=c[12266]|0;g=1<>2]|0;if(i>>>0<(c[12270]|0)>>>0)Ob();else{n=h;o=i}}else{c[12266]=h|g;n=49104+(i+2<<2)|0;o=f}c[(n&p)>>2]=e;c[(o&p)+12>>2]=e;c[(e&p)+8>>2]=o;c[(e&p)+12>>2]=f}c[12268]=b;c[12271]=j;x=a;return x|0}a=c[12267]|0;if(a){h=(a&0-a)+-1|0;w=h>>>12&16;h=h>>>w;v=h>>>5&8;h=h>>>v;x=h>>>2&4;h=h>>>x;i=h>>>1&2;h=h>>>i;g=h>>>1&1;g=c[((v|w|x|i|g)+(h>>>g)<<2&p)+49368>>2]|0;h=(c[(g&p)+4>>2]&-8)-q|0;i=g;while(1){d=c[(i&p)+16>>2]|0;if(!d){d=c[(i&p)+20>>2]|0;if(!d){l=h;k=g;break}}i=(c[(d&p)+4>>2]&-8)-q|0;x=i>>>0>>0;h=x?i:h;i=d;g=x?d:g}a=c[12270]|0;if(k>>>0>>0)Ob();b=k+q|0;if(k>>>0>=b>>>0)Ob();j=c[(k&p)+24>>2]|0;g=c[(k&p)+12>>2]|0;do if((g|0)==(k|0)){h=k+20|0;i=c[(h&p)>>2]|0;if(!i){h=k+16|0;i=c[(h&p)>>2]|0;if(!i){e=0;break}}while(1){g=i+20|0;f=c[(g&p)>>2]|0;if(f){i=f;h=g;continue}g=i+16|0;f=c[(g&p)>>2]|0;if(!f)break;else{i=f;h=g}}if(h>>>0>>0)Ob();else{c[(h&p)>>2]=0;e=i;break}}else{f=c[(k&p)+8>>2]|0;if(f>>>0>>0)Ob();i=f+12|0;if((c[(i&p)>>2]|0)!=(k|0))Ob();h=g+8|0;if((c[(h&p)>>2]|0)==(k|0)){c[(i&p)>>2]=g;c[(h&p)>>2]=f;e=g;break}else Ob()}while(0);do if(j){i=c[(k&p)+28>>2]|0;h=49368+(i<<2)|0;if((k|0)==(c[(h&p)>>2]|0)){c[(h&p)>>2]=e;if(!e){c[12267]=c[12267]&~(1<>>0<(c[12270]|0)>>>0)Ob();i=j+16|0;if((c[(i&p)>>2]|0)==(k|0))c[(i&p)>>2]=e;else c[(j&p)+20>>2]=e;if(!e)break}h=c[12270]|0;if(e>>>0>>0)Ob();c[(e&p)+24>>2]=j;i=c[(k&p)+16>>2]|0;do if(i)if(i>>>0>>0)Ob();else{c[(e&p)+16>>2]=i;c[(i&p)+24>>2]=e;break}while(0);i=c[(k&p)+20>>2]|0;if(i)if(i>>>0<(c[12270]|0)>>>0)Ob();else{c[(e&p)+20>>2]=i;c[(i&p)+24>>2]=e;break}}while(0);if(l>>>0<16){x=l+q|0;c[(k&p)+4>>2]=x|3;x=k+(x+4)|0;c[(x&p)>>2]=c[(x&p)>>2]|1}else{c[(k&p)+4>>2]=q|3;c[(k+(q|4)&p)>>2]=l|1;c[(k+l+q&p)>>2]=l;d=c[12268]|0;if(d){e=c[12271]|0;g=d>>>3;i=g<<1;f=49104+(i<<2)|0;h=c[12266]|0;g=1<>2]|0;if(h>>>0<(c[12270]|0)>>>0)Ob();else{r=i;s=h}}else{c[12266]=h|g;r=49104+(i+2<<2)|0;s=f}c[(r&p)>>2]=e;c[(s&p)+12>>2]=e;c[(e&p)+8>>2]=s;c[(e&p)+12>>2]=f}c[12268]=l;c[12271]=b}x=k+8|0;return x|0}else s=q}else s=q}else if(a>>>0<=4294967231){a=a+11|0;s=a&-8;k=c[12267]|0;if(k){h=0-s|0;a=a>>>8;if(a)if(s>>>0>16777215)d=31;else{q=(a+1048320|0)>>>16&8;r=a<>>16&4;r=r<>>16&2;d=14-(o|q|d)+(r<>>15)|0;d=s>>>(d+7|0)&1|d<<1}else d=0;f=c[(d<<2&p)+49368>>2]|0;a:do if(!f){a=0;i=0}else{if((d|0)==31)i=0;else i=25-(d>>>1)|0;l=h;a=0;b=s<>2]&-8;h=e-s|0;if(h>>>0>>0)if((e|0)==(s|0)){a=f;i=f;break a}else i=f;else h=l;r=c[(f&p)+20>>2]|0;f=c[(f+(b>>>31<<2)&p)+16>>2]|0;a=(r|0)==0|(r|0)==(f|0)?a:r;if(!f)break;else{l=h;b=b<<1}}}while(0);if((a|0)==0&(i|0)==0){a=2<>>12&16;r=r>>>n;m=r>>>5&8;r=r>>>m;o=r>>>2&4;r=r>>>o;q=r>>>1&2;r=r>>>q;a=r>>>1&1;a=c[((m|n|o|q|a)+(r>>>a)<<2&p)+49368>>2]|0}if(!a){o=h;q=i}else while(1){r=(c[(a&p)+4>>2]&-8)-s|0;f=r>>>0>>0;h=f?r:h;i=f?a:i;f=c[(a&p)+16>>2]|0;if(f){a=f;continue}a=c[(a&p)+20>>2]|0;if(!a){o=h;q=i;break}}if((q|0)!=0?o>>>0<((c[12268]|0)-s|0)>>>0:0){a=c[12270]|0;if(q>>>0>>0)Ob();m=q+s|0;if(q>>>0>=m>>>0)Ob();j=c[(q&p)+24>>2]|0;g=c[(q&p)+12>>2]|0;do if((g|0)==(q|0)){h=q+20|0;i=c[(h&p)>>2]|0;if(!i){h=q+16|0;i=c[(h&p)>>2]|0;if(!i){u=0;break}}while(1){g=i+20|0;f=c[(g&p)>>2]|0;if(f){i=f;h=g;continue}g=i+16|0;f=c[(g&p)>>2]|0;if(!f)break;else{i=f;h=g}}if(h>>>0>>0)Ob();else{c[(h&p)>>2]=0;u=i;break}}else{f=c[(q&p)+8>>2]|0;if(f>>>0>>0)Ob();i=f+12|0;if((c[(i&p)>>2]|0)!=(q|0))Ob();h=g+8|0;if((c[(h&p)>>2]|0)==(q|0)){c[(i&p)>>2]=g;c[(h&p)>>2]=f;u=g;break}else Ob()}while(0);do if(j){i=c[(q&p)+28>>2]|0;h=49368+(i<<2)|0;if((q|0)==(c[(h&p)>>2]|0)){c[(h&p)>>2]=u;if(!u){c[12267]=c[12267]&~(1<>>0<(c[12270]|0)>>>0)Ob();i=j+16|0;if((c[(i&p)>>2]|0)==(q|0))c[(i&p)>>2]=u;else c[(j&p)+20>>2]=u;if(!u)break}h=c[12270]|0;if(u>>>0>>0)Ob();c[(u&p)+24>>2]=j;i=c[(q&p)+16>>2]|0;do if(i)if(i>>>0>>0)Ob();else{c[(u&p)+16>>2]=i;c[(i&p)+24>>2]=u;break}while(0);i=c[(q&p)+20>>2]|0;if(i)if(i>>>0<(c[12270]|0)>>>0)Ob();else{c[(u&p)+20>>2]=i;c[(i&p)+24>>2]=u;break}}while(0);b:do if(o>>>0>=16){c[(q&p)+4>>2]=s|3;c[(q+(s|4)&p)>>2]=o|1;c[(q+o+s&p)>>2]=o;i=o>>>3;if(o>>>0<256){h=i<<1;f=49104+(h<<2)|0;g=c[12266]|0;i=1<>2]|0;if(h>>>0>=(c[12270]|0)>>>0){v=i;w=h;break}Ob()}while(0);c[(v&p)>>2]=m;c[(w&p)+12>>2]=m;c[(q+s&p)+8>>2]=w;c[(q+s&p)+12>>2]=f;break}d=o>>>8;if(d)if(o>>>0>16777215)f=31;else{w=(d+1048320|0)>>>16&8;x=d<>>16&4;x=x<>>16&2;f=14-(v|w|f)+(x<>>15)|0;f=o>>>(f+7|0)&1|f<<1}else f=0;i=49368+(f<<2)|0;c[(q+s&p)+28>>2]=f;c[(q+s&p)+20>>2]=0;c[(q+s&p)+16>>2]=0;h=c[12267]|0;g=1<>2]=m;c[(q+s&p)+24>>2]=i;c[(q+s&p)+12>>2]=m;c[(q+s&p)+8>>2]=m;break}d=c[(i&p)>>2]|0;if((f|0)==31)b=0;else b=25-(f>>>1)|0;c:do if((c[(d&p)+4>>2]&-8|0)!=(o|0)){h=o<>>31<<2)+16|0;i=c[(b&p)>>2]|0;if(!i)break;if((c[(i&p)+4>>2]&-8|0)==(o|0)){C=i;break c}else{h=h<<1;d=i}}if(b>>>0<(c[12270]|0)>>>0)Ob();else{c[(b&p)>>2]=m;c[(q+s&p)+24>>2]=d;c[(q+s&p)+12>>2]=m;c[(q+s&p)+8>>2]=m;break b}}else C=d;while(0);d=C+8|0;b=c[(d&p)>>2]|0;x=c[12270]|0;if(C>>>0>=x>>>0&b>>>0>=x>>>0){c[(b&p)+12>>2]=m;c[(d&p)>>2]=m;c[(q+s&p)+8>>2]=b;c[(q+s&p)+12>>2]=C;c[(q+s&p)+24>>2]=0;break}else Ob()}else{x=o+s|0;c[(q&p)+4>>2]=x|3;x=q+(x+4)|0;c[(x&p)>>2]=c[(x&p)>>2]|1}while(0);x=q+8|0;return x|0}}}else s=-1;while(0);a=c[12268]|0;if(a>>>0>=s>>>0){b=a-s|0;d=c[12271]|0;if(b>>>0>15){c[12271]=d+s;c[12268]=b;c[(d+s&p)+4>>2]=b|1;c[(d+a&p)>>2]=b;c[(d&p)+4>>2]=s|3}else{c[12268]=0;c[12271]=0;c[(d&p)+4>>2]=a|3;x=d+(a+4)|0;c[(x&p)>>2]=c[(x&p)>>2]|1}x=d+8|0;return x|0}a=c[12269]|0;if(a>>>0>s>>>0){w=a-s|0;c[12269]=w;x=c[12272]|0;c[12272]=x+s;c[(x+s&p)+4>>2]=w|1;c[(x&p)+4>>2]=s|3;x=x+8|0;return x|0}do if(!(c[12384]|0)){a=wb(30)|0;if(!(a+-1&a)){c[12386]=a;c[12385]=a;c[12387]=-1;c[12388]=-1;c[12389]=0;c[12377]=0;c[12384]=(Pb(0)|0)&-16^1431655768;break}else Ob()}while(0);l=s+48|0;b=c[12386]|0;k=s+47|0;d=b+k|0;b=0-b|0;m=d&b;if(m>>>0<=s>>>0){x=0;return x|0}a=c[12376]|0;if((a|0)!=0?(v=c[12374]|0,w=v+m|0,w>>>0<=v>>>0|w>>>0>a>>>0):0){x=0;return x|0}d:do if(!(c[12377]&4)){a=c[12272]|0;e:do if(a){f=49512|0;while(1){i=c[(f&p)>>2]|0;if(i>>>0<=a>>>0?(t=f+4|0,(i+(c[(t&p)>>2]|0)|0)>>>0>a>>>0):0){e=f;h=t;a=f;break}f=c[(f&p)+8>>2]|0;if(!f){H=181;break e}}if(a){a=d-(c[12269]|0)&b;if(a>>>0<2147483647){i=sb(a|0)|0;if((i|0)==((c[(e&p)>>2]|0)+(c[(h&p)>>2]|0)|0))H=190;else H=191}else a=0}else H=181}else H=181;while(0);do if((H|0)==181){i=sb(0)|0;if((i|0)!=(-1|0)){a=i;h=c[12385]|0;f=h+-1|0;if(!(f&a))a=m;else a=m-a+(f+a&0-h)|0;h=c[12374]|0;f=h+a|0;if(a>>>0>s>>>0&a>>>0<2147483647){w=c[12376]|0;if((w|0)!=0?f>>>0<=h>>>0|f>>>0>w>>>0:0){a=0;break}h=sb(a|0)|0;if((h|0)==(i|0))H=190;else{i=h;H=191}}else a=0}else a=0}while(0);f:do if((H|0)==190){if((i|0)!=(-1|0)){y=i;H=201;break d}}else if((H|0)==191){h=0-a|0;do if((i|0)!=(-1|0)&a>>>0<2147483647&l>>>0>a>>>0?(x=c[12386]|0,x=k-a+x&0-x,x>>>0<2147483647):0)if((sb(x|0)|0)==(-1|0)){sb(h|0)|0;a=0;break f}else{a=x+a|0;break}while(0);if((i|0)==(-1|0))a=0;else{y=i;H=201;break d}}while(0);c[12377]=c[12377]|4;H=198}else{a=0;H=198}while(0);if((((H|0)==198?m>>>0<2147483647:0)?(y=sb(m|0)|0,z=sb(0)|0,(y|0)!=(-1|0)&(z|0)!=(-1|0)&y>>>0>>0):0)?(A=z-y|0,B=A>>>0>(s+40|0)>>>0,B):0){a=B?A:a;H=201}if((H|0)==201){i=(c[12374]|0)+a|0;c[12374]=i;if(i>>>0>(c[12375]|0)>>>0)c[12375]=i;l=c[12272]|0;g:do if(l){e=49512|0;do{i=c[(e&p)>>2]|0;h=e+4|0;f=c[(h&p)>>2]|0;if((y|0)==(i+f|0)){D=i;E=h;F=f;G=e;H=213;break}e=c[(e&p)+8>>2]|0}while((e|0)!=0);if(((H|0)==213?(c[(G&p)+12>>2]&8|0)==0:0)?l>>>0>=D>>>0&l>>>0>>0:0){c[(E&p)>>2]=F+a;b=(c[12269]|0)+a|0;d=l+8|0;if(!(d&7))d=0;else d=0-d&7;x=b-d|0;c[12272]=l+d;c[12269]=x;c[(l+d&p)+4>>2]=x|1;c[(l+b&p)+4>>2]=40;c[12273]=c[12388];break}i=c[12270]|0;if(y>>>0>>0){c[12270]=y;k=y}else k=i;i=y+a|0;h=49512|0;do{if((c[(h&p)>>2]|0)==(i|0)){I=h;J=h;H=223;break}h=c[(h&p)+8>>2]|0}while((h|0)!=0);if((H|0)==223?(c[(J&p)+12>>2]&8|0)==0:0){c[(I&p)>>2]=y;i=J+4|0;c[(i&p)>>2]=(c[(i&p)>>2]|0)+a;i=y+8|0;if(!(i&7))q=0;else q=0-i&7;i=y+(a+8)|0;if(!(i&7))d=0;else d=0-i&7;i=y+(d+a)|0;o=q+s|0;n=y+o|0;m=i-(y+q)-s|0;c[(y+q&p)+4>>2]=s|3;h:do if((i|0)!=(l|0)){if((i|0)==(c[12271]|0)){x=(c[12268]|0)+m|0;c[12268]=x;c[12271]=n;c[(y+o&p)+4>>2]=x|1;c[(y+x+o&p)>>2]=x;break}l=a+4|0;j=c[(y+l+d&p)>>2]|0;if((j&3|0)==1){b=j&-8;f=j>>>3;i:do if(j>>>0>=256){e=c[(y+(d|24)+a&p)>>2]|0;g=c[(y+a+d&p)+12>>2]|0;do if((g|0)==(i|0)){g=d|16;h=y+(l+g)|0;j=c[(h&p)>>2]|0;if(!j){h=y+(g+a)|0;j=c[(h&p)>>2]|0;if(!j){O=0;break}}while(1){g=j+20|0;f=c[(g&p)>>2]|0;if(f){j=f;h=g;continue}g=j+16|0;f=c[(g&p)>>2]|0;if(!f)break;else{j=f;h=g}}if(h>>>0>>0)Ob();else{c[(h&p)>>2]=0;O=j;break}}else{f=c[(y+(d|8)+a&p)>>2]|0;if(f>>>0>>0)Ob();j=f+12|0;if((c[(j&p)>>2]|0)!=(i|0))Ob();h=g+8|0;if((c[(h&p)>>2]|0)==(i|0)){c[(j&p)>>2]=g;c[(h&p)>>2]=f;O=g;break}else Ob()}while(0);if(!e)break;j=c[(y+a+d&p)+28>>2]|0;h=49368+(j<<2)|0;do if((i|0)!=(c[(h&p)>>2]|0)){if(e>>>0<(c[12270]|0)>>>0)Ob();j=e+16|0;if((c[(j&p)>>2]|0)==(i|0))c[(j&p)>>2]=O;else c[(e&p)+20>>2]=O;if(!O)break i}else{c[(h&p)>>2]=O;if(O)break;c[12267]=c[12267]&~(1<
>>0);m=55}else{i=u;m=55}else{i=(l|0)>0;if(g<<24>>24==2)if(i){i=u;l=h;while(1){h=l+1|0;j=a[(l&n)>>0]|0;k=j&255;if((j&255)>191){k=d[(k+-192&n)+15360>>0]|0;a:do if((h|0)==(q|0))h=q;else while(1){j=a[(h&n)>>0]|0;if((j&-64)<<24>>24!=-128)break a;l=l+2|0;k=j&63|k<<6;if((l|0)==(q|0)){h=q;break}else{j=h;h=l;l=j}}while(0);if(!(k>>>0<128|(k&-2048|0)==55296|(k&-2|0)==65534))if(k>>>0<65536)m=22;else{l=k+-65536|0;a[(i&n)>>0]=l>>>10&192|k>>>10&63;a[(i&n)+1>>0]=l>>>18&3|216;a[(i&n)+2>>0]=k;a[(i&n)+3>>0]=k>>>8&3|220;i=i+4|0}else{k=65533;m=22}}else m=22;if((m|0)==22){m=0;a[(i&n)>>0]=k;a[(i&n)+1>>0]=k>>>8;i=i+2|0}if(h>>>0>>0)l=h;else break}}else i=u;else if(i){i=u;do{l=h+1|0;k=a[(h&n)>>0]|0;j=k&255;if((k&255)>191){j=d[(j+-192&n)+15360>>0]|0;b:do if((l|0)==(q|0))h=q;else{k=h;h=l;while(1){l=a[(h&n)>>0]|0;if((l&-64)<<24>>24!=-128)break b;k=k+2|0;j=l&63|j<<6;if((k|0)==(q|0)){h=q;break}else{l=h;h=k;k=l}}}while(0);if(!(j>>>0<128|(j&-2048|0)==55296|(j&-2|0)==65534))if(j>>>0<65536)m=31;else{l=j+-65536|0;a[(i&n)>>0]=l>>>18&3|216;a[(i&n)+1>>0]=l>>>10&192|j>>>10&63;a[(i&n)+2>>0]=j>>>8&3|220;a[(i&n)+3>>0]=j;i=i+4|0}else{j=65533;m=31}}else{h=l;m=31}if((m|0)==31){m=0;a[(i&n)>>0]=j>>>8;a[(i&n)+1>>0]=j;i=i+2|0}}while(h>>>0>>0)}else i=u;c[(r&p)>>2]=i-u;a[(i&n)>>0]=0;i=i+1|0}if((m|0)==55)c[(r&p)>>2]=i-u;a[(i&n)>>0]=0;i=f+8|0;r=b[(i&o)>>1]|0;h=r&65535;if(!((r&9312)==0?(c[(f&p)+24>>2]|0)==0:0))Qg(f);b[(i&o)>>1]=h&29|514;a[(v&n)>>0]=g;c[(s&p)>>2]=u;c[(f&p)+20>>2]=u;h=c[(t&p)>>2]|0;do if(!h)h=lc[c[8792>>2]&127](u)|0;else{if((c[(h&p)+276>>2]|0)>>>0<=u>>>0?(c[(h&p)+280>>2]|0)>>>0>u>>>0:0){h=e[(h&o)+248>>1]|0;break}h=lc[c[8792>>2]&127](u)|0}while(0);c[(f&p)+24>>2]=h;h=0}}else if(!(Vl(f)|0)){h=c[(f&p)+16>>2]|0;t=c[(f&p)+12>>2]&-2;i=h+t|0;if((t|0)>0)do{s=a[(h&n)>>0]|0;t=h+1|0;a[(h&n)>>0]=a[(t&n)>>0]|0;h=h+2|0;a[(t&n)>>0]=s}while(h>>>0>>0);a[(v&n)>>0]=g;h=0}else h=7;return h|0}function Cn(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,i=0,j=0;i=a[(b&n)>>0]|0;g=i&255;a:do switch(g|0){case 46:{if(((d[(b&n)+1>>0]|0)+-48|0)>>>0<10)j=51;else{c[(e&p)>>2]=122;f=1}break}case 47:{if((a[(b&n)+1>>0]|0)==42?(f=a[(b&n)+2>>0]|0,f<<24>>24!=0):0){f=f&255;g=3;while(1){i=a[(b+g&n)>>0]|0;if((f|0)==42&i<<24>>24==47){f=42;break}f=i&255;if(!(i<<24>>24))break;else g=g+1|0}c[(e&p)>>2]=151;f=((f|0)!=0&1)+g|0;break a}c[(e&p)>>2]=92;f=1;break}case 45:{if((a[(b&n)+1>>0]|0)==45)f=2;else{c[(e&p)>>2]=90;f=1;break a}while(1){g=a[(b+f&n)>>0]|0;if(g<<24>>24==0|g<<24>>24==10)break;f=f+1|0}c[(e&p)>>2]=151;break}case 41:{c[(e&p)>>2]=23;f=1;break}case 59:{c[(e&p)>>2]=1;f=1;break}case 43:{c[(e&p)>>2]=89;f=1;break}case 42:{c[(e&p)>>2]=91;f=1;break}case 40:{c[(e&p)>>2]=22;f=1;break}case 124:if((a[(b&n)+1>>0]|0)==124){c[(e&p)>>2]=94;f=2;break a}else{c[(e&p)>>2]=86;f=1;break a}case 91:{f=1;while(1){g=a[(b+f&n)>>0]|0;if(!(g<<24>>24)){g=g&255;break}f=f+1|0;if(g<<24>>24==93){g=93;break}}c[(e&p)>>2]=(g|0)==93?27:150;break}case 44:{c[(e&p)>>2]=26;f=1;break}case 38:{c[(e&p)>>2]=85;f=1;break}case 126:{c[(e&p)>>2]=96;f=1;break}case 34:case 39:case 96:{g=a[(b&n)+1>>0]|0;b:do if(g<<24>>24){f=1;while(1){if(g<<24>>24==i<<24>>24){f=f+1|0;if((a[(b+f&n)>>0]|0)!=i<<24>>24)break}f=f+1|0;g=a[(b+f&n)>>0]|0;if(!(g<<24>>24))break b}if(i<<24>>24==39){c[(e&p)>>2]=97;break a}else{c[(e&p)>>2]=27;break a}}else f=1;while(0);c[(e&p)>>2]=150;break}case 88:case 120:{if((a[(b&n)+1>>0]|0)==39){c[(e&p)>>2]=134;f=2;while(1){g=a[(b+f&n)>>0]|0;if(!(a[(g&255&n)+10368>>0]&8))break;else f=f+1|0}if(g<<24>>24==39&(f&1|0)==0)g=1;else{c[(e&p)>>2]=150;while(1){g=a[(b+f&n)>>0]|0;if(g<<24>>24==39|g<<24>>24==0)break;f=f+1|0}g=g<<24>>24!=0}f=(g&1)+f|0}else j=98;break}case 61:{c[(e&p)>>2]=79;f=(a[(b&n)+1>>0]|0)==61?2:1;break}case 60:{f=a[(b&n)+1>>0]|0;if(f<<24>>24==62){c[(e&p)>>2]=78;f=2;break a}else if(f<<24>>24==60){c[(e&p)>>2]=87;f=2;break a}else if(f<<24>>24==61){c[(e&p)>>2]=81;f=2;break a}else{c[(e&p)>>2]=82;f=1;break a}}case 57:case 56:case 55:case 54:case 53:case 52:case 51:case 50:case 49:case 48:{j=51;break}case 62:{f=a[(b&n)+1>>0]|0;if(f<<24>>24==61){c[(e&p)>>2]=83;f=2;break a}else if(f<<24>>24==62){c[(e&p)>>2]=88;f=2;break a}else{c[(e&p)>>2]=80;f=1;break a}}case 63:{c[(e&p)>>2]=135;f=1;while(1)if(((d[(b+f&n)>>0]|0)+-48|0)>>>0<10)f=f+1|0;else break;break}case 33:if((a[(b&n)+1>>0]|0)==61){c[(e&p)>>2]=78;f=2;break a}else{c[(e&p)>>2]=150;f=2;break a}case 58:case 35:case 64:case 36:{c[(e&p)>>2]=135;g=a[(b&n)+1>>0]|0;if(g<<24>>24){f=1;i=0;while(1){if(!(a[(g&255&n)+10368>>0]&70)){if(g<<24>>24==40&(i|0)>0){g=i;j=78;break}if(g<<24>>24!=58){g=i;break}g=f+1|0;if((a[(b+g&n)>>0]|0)==58)f=g;else{g=i;break}}else i=i+1|0;f=f+1|0;g=a[(b+f&n)>>0]|0;if(!(g<<24>>24)){g=i;break}}do if((j|0)==78){h=f;while(1){f=h+1|0;i=a[(b+f&n)>>0]|0;if(!(i<<24>>24))break;if(i<<24>>24!=41?(a[(i&255&n)+10368>>0]&1)==0:0)h=f;else{j=81;break}}if((j|0)==81)if(i<<24>>24==41){f=h+2|0;break}c[(e&p)>>2]=150}while(0);if(g)break a}else f=1;c[(e&p)>>2]=150;break}case 37:{c[(e&p)>>2]=93;f=1;break}case 13:case 12:case 10:case 9:case 32:{f=1;while(1)if(!(a[((d[(b+f&n)>>0]|0)&n)+10368>>0]&1))break;else f=f+1|0;c[(e&p)>>2]=151;break}default:j=98}while(0);c:do if((j|0)==51){c[(e&p)>>2]=132;f=a[(b&n)>>0]|0;if(f<<24>>24==48){g=a[(b&n)+1>>0]|0;if(g<<24>>24==88|g<<24>>24==120)if(!(a[((d[(b&n)+2>>0]|0)&n)+10368>>0]&8))h=0;else{f=3;while(1)if(!(a[((d[(b+f&n)>>0]|0)&n)+10368>>0]&8))break c;else f=f+1|0}else{f=48;h=0}}else h=0;while(1){g=h+1|0;if(((f&255)+-48|0)>>>0>=10){g=h;break}f=a[(b+g&n)>>0]|0;h=g}if(f<<24>>24==46){f=g;do{f=f+1|0;g=b+f|0}while(((d[(g&n)>>0]|0)+-48|0)>>>0<10);c[(e&p)>>2]=133;h=a[(g&n)>>0]|0;i=f}else{h=f;i=g}do if(h<<24>>24==69|h<<24>>24==101){g=a[(b+i&n)+1>>0]|0;if(((g&255)+-48|0)>>>0>=10){if(!(g<<24>>24==45|g<<24>>24==43)){g=h;f=i;break}f=i+2|0;if(((d[(b+f&n)>>0]|0)+-48|0)>>>0>=10){g=h;f=i;break}}else f=i+2|0;while(1){g=b+f|0;if(((d[(g&n)>>0]|0)+-48|0)>>>0<10)f=f+1|0;else break}c[(e&p)>>2]=133;g=a[(g&n)>>0]|0}else{g=h;f=i}while(0);if(a[(g&255&n)+10368>>0]&70)do{c[(e&p)>>2]=150;f=f+1|0}while((a[((d[(b+f&n)>>0]|0)&n)+10368>>0]&70)!=0)}else if((j|0)==98){if(!(a[(g&n)+10368>>0]&70)){c[(e&p)>>2]=150;f=1;break}else f=1;while(1)if(!(a[((d[(b+f&n)>>0]|0)&n)+10368>>0]&70))break;else f=f+1|0;c[(e&p)>>2]=fi(b,f)|0}while(0);return f|0}function Dn(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,i=0,j=0;f=a[(b&n)>>0]|0;if(f<<24>>24==43){b=b+1|0;i=0;j=13}else if(f<<24>>24==45){b=b+1|0;i=1;j=13}else if((f<<24>>24==48?(f=a[(b&n)+1>>0]|0,f<<24>>24==88|f<<24>>24==120):0)?(g=b+2|0,e=a[(g&n)>>0]|0,(a[(e&255&n)+10368>>0]&8)!=0):0){while(1){f=g+1|0;if(e<<24>>24!=48)break;g=f;e=a[(f&n)>>0]|0}if(!(a[(e&255&n)+10368>>0]&8)){e=0;f=0}else{h=e;b=0;f=0;do{e=h<<24>>24;f=(0-(e>>>6&1)&9)+e&15|f<<4;b=b+1|0;h=a[(g+b&n)>>0]|0;e=(a[(h&255&n)+10368>>0]&8)==0}while((b|0)<8&(e^1));e=e^1}if((f|0)<0|e)e=0;else{c[(d&p)>>2]=f;e=1}}else{i=0;j=13}a:do if((j|0)==13){e=0;f=0;h=0;while(1){g=(a[(b+h&n)>>0]|0)+-48|0;if(g>>>0>=10)break;f=sw(e|0,f|0,10,0)|0;e=jw(g|0,((g|0)<0)<<31>>31|0,f|0,G|0)|0;h=h+1|0;if((h|0)>=11){e=0;break a}else f=G}g=dw(e|0,f|0,i|0,0)|0;b=G;if((b|0)>0|(b|0)==0&g>>>0>2147483647)e=0;else{if(i)e=dw(0,0,e|0,f|0)|0;c[(d&p)>>2]=e;e=1}}while(0);return e|0}function En(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0;f=i;i=i+16|0;if((i|0)>=(j|0))fa();g=f;c[(g&p)>>2]=e;sg(a,b,d,g);i=f;return}function Fn(e,f,g,h,k,l,m){e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;m=m|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,H=0,I=0;I=i;i=i+16|0;if((i|0)>=(j|0))fa();F=I;D=I+4|0;c[(D&p)>>2]=0;H=mh(e,536,0)|0;a:do if(H){fw(H|0,0,536)|0;c[(H&p)+476>>2]=k;u=e+20|0;k=c[(u&p)>>2]|0;b:do if((k|0)>0){v=e+16|0;s=0;while(1){t=c[((c[(v&p)>>2]|0)+(s<<4)&p)+4>>2]|0;if(t){c[((c[(t&p)+4>>2]|0)&p)+4>>2]=c[(t&p)>>2];q=bl(t,1,1)|0;if(q)break;k=c[(u&p)>>2]|0}s=s+1|0;if((s|0)>=(k|0))break b}c[(F&p)>>2]=c[((c[(v&p)>>2]|0)+(s<<4)&p)>>2];ug(e,q,40984,F);s=H;break a}while(0);rl(e);c[(H&p)>>2]=e;c[(H&p)+424>>2]=0;do if((g|0)>-1){if((g|0)!=0?(a[(f+g+-1&n)>>0]|0)==0:0){E=21;break}if((c[(e&p)+92>>2]|0)<(g|0)){ug(e,18,41016,F);if(!e){s=H;q=18;break a}if(!(a[(e&n)+65>>0]|0)){s=H;q=c[(e&p)+56>>2]&18;break a}else{Ql(e);s=H;q=7;break a}}else{if((f|0)!=0?(r=jw(g|0,((g|0)<0)<<31>>31|0,1,0)|0,r=mh(e,r,G)|0,(r|0)!=0):0){kw(r|0,f|0,g|0)|0;a[(r+g&n)>>0]=0;Lh(H,r,D)|0;mg(e,r);q=H+480|0;c[(q&p)>>2]=f+((c[(q&p)>>2]|0)-r);break}c[(H&p)+480>>2]=f+g;break}}else E=21;while(0);if((E|0)==21)Lh(H,f,D)|0;v=e+65|0;k=H+12|0;if(!(a[(v&n)>>0]|0)){s=H+12|0;if((c[(k&p)>>2]|0)==101)c[(s&p)>>2]=0}else{c[(k&p)>>2]=7;s=H+12|0}c:do if((a[(H&n)+17>>0]|0)!=0?(w=c[(H&p)>>2]|0,x=w+20|0,(c[(x&p)>>2]|0)>0):0){r=w+16|0;u=0;while(1){k=c[(r&p)>>2]|0;q=c[(k+(u<<4)&p)+4>>2]|0;if(q){if(!(a[(q&n)+8>>0]|0)){k=yg(q,0)|0;if((k|0)==7|(k|0)==3082)break;else if(k)break c;k=c[(r&p)>>2]|0;t=1}else t=0;g=c[(q&p)+4>>2]|0;c[(g&p)+4>>2]=c[(q&p)>>2];g=c[((c[(g&p)+12>>2]|0)&p)+56>>2]|0;if((d[(g&n)+41>>0]<<16|d[(g&n)+40>>0]<<24|d[(g&n)+42>>0]<<8|d[(g&n)+43>>0]|0)!=(c[(c[(k+(u<<4)&p)+12>>2]&p)>>2]|0)){vm(w,u);c[(s&p)>>2]=17}if(t)un(q)|0}u=u+1|0;if((u|0)>=(c[(x&p)>>2]|0))break c}a[(w&n)+65>>0]=1}while(0);if(a[(v&n)>>0]|0)c[(s&p)>>2]=7;if(m)c[(m&p)>>2]=c[(H&p)+480>>2];q=c[(s&p)>>2]|0;t=(q|0)==0;do if(t?(z=H+8|0,y=c[(z&p)>>2]|0,(y|0)!=0):0){s=a[(H&n)+450>>0]|0;if(!(s<<24>>24))break;else if(s<<24>>24==2){iq(y,4);r=8;k=12}else{iq(y,8);r=0;k=8}s=r;do{jq(c[(z&p)>>2]|0,s-r|0,0,c[(s<<2&p)+41040>>2]|0,0);s=s+1|0}while((s|0)<(k|0))}while(0);r=H+8|0;if((a[(e&n)+145>>0]|0)==0?(C=c[(r&p)>>2]|0,A=(c[(H&p)+480>>2]|0)-f|0,(C|0)!=0):0){if((f|0)!=0?(z=c[(C&p)>>2]|0,B=jw(A|0,((A|0)<0)<<31>>31|0,1,0)|0,B=mh(z,B,G)|0,(B|0)!=0):0){kw(B|0,f|0,A|0)|0;a[(B+A&n)>>0]=0;s=B}else s=0;c[(C&p)+168>>2]=s;C=C+88|0;b[(C&o)>>1]=b[(C&o)>>1]&-257|(h&65535)<<8&256}s=c[(r&p)>>2]|0;do if(!s)E=60;else{if(t?(a[(v&n)>>0]|0)==0:0){E=60;break}Ng(s)|0}while(0);if((E|0)==60)c[(l&p)>>2]=s;r=c[(D&p)>>2]|0;do if(!r){c[(e&p)+52>>2]=q;r=c[(e&p)+236>>2]|0;if(r){s=r+8|0;if(!(b[(s&o)>>1]&9312)){b[(s&o)>>1]=1;break}else{vg(r);break}}}else{c[(F&p)>>2]=r;ug(e,q,10344,F);mg(e,r)}while(0);r=H+528|0;s=c[(r&p)>>2]|0;if(!s)s=H;else{do{c[(r&p)>>2]=c[(s&p)+4>>2];mg(e,s);s=c[(r&p)>>2]|0}while((s|0)!=0);s=H}}else{s=0;q=7}while(0);Ch(s);mg(e,H);F=Og(e,q)|0;i=I;return F|0}function Gn(b){b=b|0;var d=0,e=0;e=c[(b&p)>>2]|0;if((a[(e&n)+145>>0]|0)==0?(d=Zh(e,b+4|0)|0,(d|0)!=0):0){c[(b&p)+12>>2]=d;e=b+64|0;c[(e&p)>>2]=(c[(e&p)>>2]|0)+1}else d=0;return d|0}function Hn(a){a=a|0;var b=0,d=0,f=0,g=0,h=0;f=c[(a&p)+24>>2]|0;h=f+84|0;b=c[(h&p)>>2]|0;if(!b){b=1020;d=0}else{b=b*40|0;d=0}g=a+4|0;a=ro(c[(f&p)>>2]|0,c[(g&p)>>2]|0,b,d)|0;d=(a|0)!=0;if(d){b=c[(f&p)>>2]|0;do if(!b)b=lc[c[8792>>2]&127](a)|0;else{if((c[(b&p)+276>>2]|0)>>>0<=a>>>0?(c[(b&p)+280>>2]|0)>>>0>a>>>0:0){b=e[(b&o)+248>>1]|0;break}b=lc[c[8792>>2]&127](a)|0}while(0);c[(h&p)>>2]=(b>>>0)/20|0;c[(g&p)>>2]=a}return (d?0:7)|0}function In(a,d,e){a=a|0;d=d|0;e=e|0;a:do if(e)switch(d|0){case -6:{if(c[(a&p)+520>>2]|0)break a;a=(c[(e&p)>>2]|0)+-1|0;c[(e&p)>>2]=a;if(a)break a;Wc(e);break a}case -8:{if(!(c[(a&p)+520>>2]|0)){Mh(e);break a}if(c[(e&p)+24>>2]|0)mg(a,c[(e&p)+20>>2]|0);mg(a,e);break a}case -10:{if(c[(a&p)+520>>2]|0)break a;An(e);break a}case -15:case -1:case -13:case -12:{mg(a,e);break a}case -11:{if(c[(a&p)+520>>2]|0)break a;Wc(e);break a}case -5:{if(!(b[(e&o)+2>>1]&16))break a;mg(a,e);break a}default:break a}while(0);return}function Jn(e,f){e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0;g=c[(f&p)>>2]|0;s=c[(e&p)+24>>2]|0;t=s+112|0;k=c[(t&p)>>2]|0;q=e+88|0;b[(q&o)>>1]=b[(q&o)>>1]&-193|64;h=c[(e&p)+32>>2]|0;a:do if((h|0)>0){j=c[(e&p)+4>>2]|0;while(1){h=h+-1|0;i=d[(j&n)>>0]|0;switch(i|0){case 5:case 7:case 9:{c[(j&p)+16>>2]=76;a[(j&n)+1>>0]=-19;break}case 6:case 8:{c[(j&p)+16>>2]=77;a[(j&n)+1>>0]=-19;break}case 14:{u=c[(j+-16&p)>>2]|0;g=(u|0)>(g|0)?u:g;break}case 2:case 3:{r=7;break}case 4:{if(!(c[(j&p)+8>>2]|0))r=7;else{b[(q&o)>>1]=b[(q&o)>>1]&-65;r=7}break}case 12:case 13:case 11:{b[(q&o)>>1]=b[(q&o)>>1]&-193|128;break}case 15:{u=c[(j&p)+8>>2]|0;g=(u|0)>(g|0)?u:g;break}case 10:case 1:{u=d[(j&n)+3>>0]|0;g=(u|0)>(g|0)?u:g;break}default:{}}if((r|0)==7){r=0;b[(q&o)>>1]=b[(q&o)>>1]|128}i=a[(i&n)+34168>>0]|0;a[(j&n)+2>>0]=i;if((i&1)!=0?(l=j+8|0,m=c[(l&p)>>2]|0,(m|0)<0):0)c[(l&p)>>2]=c[(k+(~m<<2)&p)>>2];if((h|0)<=0)break a;else j=j+20|0}}while(0);mg(c[(e&p)>>2]|0,c[(t&p)>>2]|0);c[(t&p)>>2]=0;c[(s&p)+108>>2]=0;c[(f&p)>>2]=g;return}function Kn(b){b=b|0;var d=0,e=0,f=0,g=0,h=0;h=i;i=i+16|0;if((i|0)>=(j|0))fa();g=h;e=b+73|0;if((a[(e&n)>>0]|0)!=4){a[(e&n)>>0]=0;f=b+56|0;d=b+48|0;d=Gp(b,c[(f&p)>>2]|0,c[(d&p)>>2]|0,c[(d&p)+4>>2]|0,0,g)|0;if(!d){Wc(c[(f&p)>>2]|0);c[(f&p)>>2]=0;f=b+68|0;d=c[(f&p)>>2]|c[(g&p)>>2];c[(f&p)>>2]=d;if((d|0)!=0?(a[(e&n)>>0]|0)==1:0){a[(e&n)>>0]=2;d=0}else d=0}}else d=c[(b&p)+68>>2]|0;i=h;return d|0}function Ln(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;a=c[(a&p)+8>>2]|0;a:do if(!a)a=0;else{e=(b|0)==0;while(1){if((a|0)!=(d|0)){if(e)break;if((c[(a&p)+60>>2]|0)==(b|0))break}a=c[(a&p)+8>>2]|0;if(!a){a=0;break a}}a=Fl(a,b,d)|0}while(0);return a|0}function Mn(b){b=b|0;var e=0,f=0,g=0,h=0;f=c[(b&p)>>2]|0;g=f+1|0;c[(b&p)>>2]=g;h=a[(f&n)>>0]|0;e=h&255;if((h&255)<=191)return e|0;e=d[(e+-192&n)+15360>>0]|0;if((a[(g&n)>>0]&-64)<<24>>24==-128)while(1){f=f+2|0;c[(b&p)>>2]=f;e=(d[(g&n)>>0]|0)&63|e<<6;if((a[(f&n)>>0]&-64)<<24>>24==-128){h=g;g=f;f=h}else break}return (e>>>0<128|(e&-2048|0)==55296|(e&-2|0)==65534?65533:e)|0}function Nn(b,c){b=b|0;c=c|0;var d=0,e=0,f=0,g=0;if((c|0)>-1)g=b+c|0;else g=-1;c=a[(b&n)>>0]|0;if(c<<24>>24!=0&g>>>0>b>>>0){d=c;c=0;do{f=b+1|0;if((d&255)>191){e=b;b=f;while(1){d=a[(b&n)>>0]|0;if((d&-64)<<24>>24==-128){d=b;b=e+2|0;e=d}else break}}else{d=a[(f&n)>>0]|0;b=f}c=c+1|0}while(d<<24>>24!=0&b>>>0>>0)}else c=0;return c|0}function On(d,f,g,h){d=d|0;f=f|0;g=g|0;h=h|0;var k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0;A=i;i=i+48|0;if((i|0)>=(j|0))fa();w=A+32|0;x=A+16|0;y=A;k=c[(d&p)>>2]|0;if((k|0)<0){c[(d&p)>>2]=0;c[(d&p)+4>>2]=-1;b[(d&o)+12>>1]=0;a[(d&n)+14>>0]=0;k=0}s=g;r=c[(s&p)+4>>2]|0;t=y;c[(t&p)>>2]=c[(s&p)>>2];c[(t&p)+4>>2]=r;t=d+8|0;c[(t&p)>>2]=h;r=f&255;s=(f|0)==254;do{q=b[(d+(k<<4)&o)+12>>1]|0;h=q&65535;g=37184+(h<<1)|0;a:do if((q&65535)>429)z=6;else{q=r;while(1){m=b[(g&o)>>1]|0;l=m<<16>>16;if(m<<16>>16==-86){z=6;break a}m=q&255;k=l+m|0;if(k>>>0<=1496?(a[(k&n)+39336>>0]|0)==q<<24>>24:0){z=16;break}if(!(q<<24>>24))break;if((q&255)>=70){u=l;z=12;break}q=a[(m&n)+40840>>0]|0;if(!(q<<24>>24)){u=l;z=12;break}}if((z|0)==16){z=0;k=e[(k<<1&o)+22184>>1]|0;break}if(((z|0)==12?(z=0,v=u+70|0,(v|0)>-1):0)?(a[(v&n)+39336>>0]|0)==70:0){k=e[(v<<1&o)+22184>>1]|0;break}k=e[(h<<1&o)+38048>>1]|0}while(0);if((z|0)==6){z=0;k=e[(h<<1&o)+38048>>1]|0}if(k>>>0<642){z=18;break}if(k>>>0>=969){z=20;break}mq(d,k+-642|0);if(s)break;k=c[(d&p)>>2]|0}while((k|0)>-1);if((z|0)==18){kq(d,k,f,y);u=d+4|0;c[(u&p)>>2]=(c[(u&p)>>2]|0)+-1}else if((z|0)==20){c[(x&p)>>2]=c[(y&p)>>2];c[(x&p)+4>>2]=c[(y&p)+4>>2];c[(x&p)+8>>2]=c[(y&p)+8>>2];u=c[(t&p)>>2]|0;c[(w&p)>>2]=x;th(u,20432,w);c[(t&p)>>2]=u;lq(d,r,y)}i=A;return}function Pn(b){b=b|0;var d=0;d=c[(b&p)>>2]|0;if((d|0)>=0){lq(b,a[(b+(d<<4)&n)+14>>0]|0,b+(d<<4)+16|0);c[(b&p)>>2]=(c[(b&p)>>2]|0)+-1}return}function Qn(a,b){a=a|0;b=b|0;var d=0;if(b){if((c[(b&p)>>2]|0)>0){d=0;do{Nk(a,c[(b+(d<<4)&p)+12>>2]|0);Mk(a,c[(b+(d<<4)&p)+16>>2]|0,1);mg(a,c[(b+(d<<4)&p)+8>>2]|0);d=d+1|0}while((d|0)<(c[(b&p)>>2]|0))}mg(a,b)}return}function Rn(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,i=0;h=a+328|0;d=c[(h&p)>>2]|0;if(d){i=a+304|0;if((c[(i&p)>>2]|0)>0){f=0;do{e=c[(d+(f<<2)&p)>>2]|0;d=c[(e&p)+8>>2]|0;if((d|0)!=0?(g=c[((c[(d&p)>>2]|0)+b&p)>>2]|0,(g|0)!=0):0)lc[g&127](d)|0;c[(e&p)+20>>2]=0;An(e);f=f+1|0;d=c[(h&p)>>2]|0}while((f|0)<(c[(i&p)>>2]|0))}mg(a,d);c[(i&p)>>2]=0;c[(h&p)>>2]=0}return}function Sn(a,d,f){a=a|0;d=d|0;f=f|0;var g=0,h=0;do if((d|0)==-2)if(!(c[(a&p)+12>>2]|0))d=(c[(a&p)+16>>2]|0)==0?0:6;else d=6;else{h=b[(a&o)>>1]|0;g=h<<16>>16;if(!((g|0)!=(d|0)&h<<16>>16>-1)){h=(g|0)==(d|0)?4:1;g=f&255;d=e[(a&o)+2>>1]|0;if((g|0)==(d&3|0)){d=h|2;break}else return ((d&g)>>>1&1)+h|0}else d=0}while(0);return d|0} function uc(a){a=a|0;var b=0;b=i;i=i+a|0;i=i+15&-16;if((i|0)>=(j|0))fa();return b|0}function vc(){return i|0}function wc(a){a=a|0;i=a}function xc(a,b){a=a|0;b=b|0;if(!r){r=a;s=b}}function yc(b){b=b|0;a[(k&n)>>0]=a[(b&n)>>0];a[(k&n)+1>>0]=a[(b&n)+1>>0];a[(k&n)+2>>0]=a[(b&n)+2>>0];a[(k&n)+3>>0]=a[(b&n)+3>>0]}function zc(b){b=b|0;a[(k&n)>>0]=a[(b&n)>>0];a[(k&n)+1>>0]=a[(b&n)+1>>0];a[(k&n)+2>>0]=a[(b&n)+2>>0];a[(k&n)+3>>0]=a[(b&n)+3>>0];a[(k&n)+4>>0]=a[(b&n)+4>>0];a[(k&n)+5>>0]=a[(b&n)+5>>0];a[(k&n)+6>>0]=a[(b&n)+6>>0];a[(k&n)+7>>0]=a[(b&n)+7>>0]}function Ac(a){a=a|0;G=a}function Bc(){return G|0}function Cc(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0;h=i;i=i+16|0;if((i|0)>=(j|0))fa();e=h+4|0;f=h;g=0;a:while(1){c[(e&p)>>2]=0;c[(f&p)>>2]=0;a[280]=0;if(Rf(14640,e)|0){d=4;break}d=c[(e&p)>>2]|0;b=0;do{if(Qe(d,c[(b<<2&p)+8>>2]|0,17,0,f)|0){d=7;break a}b=b+1|0;d=c[(e&p)>>2]|0}while((b|0)!=5);tf(d)|0;if(_v(280,8504)|0){d=9;break}g=g+1|0;if((g|0)>=3){d=11;break}}if((d|0)==4)ib(8472,8488,47,8496);else if((d|0)==7)ib(8472,8488,50,8496);else if((d|0)==9)ib(8600,8488,53,8496);else if((d|0)==11){i=h;return 0}return 0}function Dc(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;if((d|0)>0)while(1){d=d+-1|0;hw(280,c[(f&p)>>2]|0)|0;b=280+(gw(280)|0)|0;a[(b&n)>>0]=61;a[(b&n)+1>>0]=0;b=c[(e&p)>>2]|0;hw(280,((b|0)==0?20304:b)|0)|0;if((d|0)<=0)break;else{e=e+4|0;f=f+4|0}}return 0}function Ec(b){b=b|0;var e=0,f=0,g=0;g=(Fc(b,8640,7)|0)==0;g=g?b+7|0:b;if(!g)b=0;else{b=g;while(1)if(!(a[(b&n)>>0]|0))break;else b=b+1|0;b=b-g&1073741823}f=0;while(1){e=c[(f<<2&p)+8648>>2]|0;if((Fc(g,e,b)|0)==0?(a[((d[(e+b&n)>>0]|0)&n)+10368>>0]&70)==0:0){b=1;break}f=f+1|0;if((f|0)>=4){b=0;break}}return b|0}function Fc(b,c,e){b=b|0;c=c|0;e=e|0;var f=0;a:do if(b)if(c)if((e|0)>0){f=b;while(1){b=a[(f&n)>>0]|0;if(!(b<<24>>24))break;if((a[(b&255&n)+9328>>0]|0)!=(a[((d[(c&n)>>0]|0)&n)+9328>>0]|0))break;e=e+-1|0;if((e|0)<=0){e=0;break a}else{f=f+1|0;c=c+1|0}}if((e|0)>=1)e=(d[(b&255&n)+9328>>0]|0)-(d[((d[(c&n)>>0]|0)&n)+9328>>0]|0)|0;else e=0}else e=0;else e=1;else e=((c|0)!=0)<<31>>31;while(0);return e|0}function Gc(a){a=a|0;if(a>>>0<4)a=c[(a<<2&p)+8648>>2]|0;else a=0;return a|0}function Hc(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0;h=i;i=i+16|0;if((i|0)>=(j|0))fa();f=h;if(a>>>0<=9){g=c[(a<<2&p)+8664>>2]|0;f=b;c[(f&p)>>2]=g;c[(f&p)+4>>2]=0;f=8704+(a<<2)|0;a=d;c[(a&p)>>2]=c[(f&p)>>2];c[(a&p)+4>>2]=0;if(!e)f=0;else{c[(f&p)>>2]=g;f=0}}else{c[(f&p)>>2]=15033;c[(f&p)+4>>2]=10788;bd(21,13648,f);f=21}i=h;return f|0}function Ic(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0;h=i;i=i+16|0;if((i|0)>=(j|0))fa();f=h+8|0;g=h;a=Hc(a,f,g,e)|0;if(!a){c[(b&p)>>2]=c[(f&p)>>2];c[(d&p)>>2]=c[(g&p)>>2]}i=h;return a|0}function Jc(a,b,d,f,g){a=a|0;b=b|0;d=d|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,n=0,q=0,r=0;r=i;i=i+16|0;if((i|0)>=(j|0))fa();n=r+4|0;l=r;switch(b|0){case 2:{c[(n&p)>>2]=0;q=a+20|0;g=c[(q&p)>>2]|0;h=(g|0)>0;if(h){l=c[(a&p)+16>>2]|0;k=0;do{b=c[(l+(k<<4)&p)+4>>2]|0;if(b)c[((c[(b&p)+4>>2]|0)&p)+4>>2]=c[(b&p)>>2];k=k+1|0}while((k|0)!=(g|0));k=a+520|0;c[(k&p)>>2]=n;if(h){m=a+16|0;h=0;do{b=c[((c[(m&p)>>2]|0)+(h<<4)&p)+12>>2]|0;if(b){l=lc[c[8796>>2]&127](16)|0;l=ca((c[(b&p)+44>>2]|0)+(c[(b&p)+12>>2]|0)+(c[(b&p)+28>>2]|0)+(c[(b&p)+60>>2]|0)|0,l)|0;c[(n&p)>>2]=l+(c[(n&p)>>2]|0);l=lc[c[8792>>2]&127](c[(b&p)+20>>2]|0)|0;c[(n&p)>>2]=(c[(n&p)>>2]|0)+l;l=lc[c[8792>>2]&127](c[(b&p)+52>>2]|0)|0;c[(n&p)>>2]=(c[(n&p)>>2]|0)+l;l=lc[c[8792>>2]&127](c[(b&p)+36>>2]|0)|0;c[(n&p)>>2]=(c[(n&p)>>2]|0)+l;l=lc[c[8792>>2]&127](c[(b&p)+68>>2]|0)|0;c[(n&p)>>2]=(c[(n&p)>>2]|0)+l;l=c[(b&p)+48>>2]|0;if(l)do{jg(a,c[(l&p)+8>>2]|0);l=c[(l&p)>>2]|0}while((l|0)!=0);l=c[(b&p)+16>>2]|0;if(l)do{kg(a,c[(l&p)+8>>2]|0);l=c[(l&p)>>2]|0}while((l|0)!=0);g=c[(q&p)>>2]|0}h=h+1|0}while((h|0)<(g|0));h=c[(n&p)>>2]|0}else h=0}else{k=a+520|0;c[(k&p)>>2]=n;h=0}c[(k&p)>>2]=0;c[(f&p)>>2]=0;c[(d&p)>>2]=h;h=0;break}case 9:case 8:case 7:{q=a+20|0;l=c[(q&p)>>2]|0;if((l|0)>0){n=c[(a&p)+16>>2]|0;m=b+-7|0;k=(g|0)==0;h=0;b=l;g=0;while(1){l=c[(n+(g<<4)&p)+4>>2]|0;if(l){l=(c[(c[(l&p)+4>>2]&p)>>2]|0)+(m<<2)+184|0;h=(c[(l&p)>>2]|0)+h|0;if(k)l=b;else{c[(l&p)>>2]=0;l=c[(q&p)>>2]|0}}else l=b;g=g+1|0;if((g|0)>=(l|0))break;else b=l}}else h=0;c[(f&p)>>2]=0;c[(d&p)>>2]=h;h=0;break}case 0:{k=a+252|0;c[(d&p)>>2]=c[(k&p)>>2];h=a+256|0;c[(f&p)>>2]=c[(h&p)>>2];if(!g)h=0;else{c[(h&p)>>2]=c[(k&p)>>2];h=0}break}case 6:case 5:case 4:{c[(d&p)>>2]=0;h=a+(b+-4<<2)+260|0;c[(f&p)>>2]=c[(h&p)>>2];if(!g)h=0;else{c[(h&p)>>2]=0;h=0}break}case 1:{m=a+20|0;k=c[(m&p)>>2]|0;g=(k|0)>0;if(g){h=c[(a&p)+16>>2]|0;l=0;do{b=c[(h+(l<<4)&p)+4>>2]|0;if(b)c[((c[(b&p)+4>>2]|0)&p)+4>>2]=c[(b&p)>>2];l=l+1|0}while((l|0)!=(k|0));if(g){b=a+16|0;l=0;h=0;while(1){g=c[((c[(b&p)>>2]|0)+(l<<4)&p)+4>>2]|0;if(!g)g=k;else{q=c[(c[(g&p)+4>>2]&p)>>2]|0;a=q+152|0;n=(c[(a&p)>>2]|0)+60+(e[(q&o)+140>>1]|0)|0;n=ca(lc[c[8872>>2]&127](c[((c[(q&p)+204>>2]|0)&p)+40>>2]|0)|0,n)|0;q=lc[c[8792>>2]&127](q)|0;g=c[(m&p)>>2]|0;h=n+h+q+(c[(a&p)>>2]|0)|0}l=l+1|0;if((l|0)>=(g|0))break;else k=g}}else h=0}else h=0;c[(d&p)>>2]=h;c[(f&p)>>2]=0;h=0;break}case 3:{c[(l&p)>>2]=0;g=a+520|0;c[(g&p)>>2]=l;k=c[(a&p)+4>>2]|0;if(!k)h=0;else{do{lg(a,k);mg(a,k);k=c[(k&p)+52>>2]|0}while((k|0)!=0);h=c[(l&p)>>2]|0}c[(g&p)>>2]=0;c[(f&p)>>2]=0;c[(d&p)>>2]=h;h=0;break}case 10:{c[(f&p)>>2]=0;q=a+512|0;n=c[(q&p)+4>>2]|0;if((n|0)>0|(n|0)==0&(c[(q&p)>>2]|0)>>>0>0)h=1;else{h=a+504|0;a=c[(h&p)+4>>2]|0;h=(a|0)>0|(a|0)==0&(c[(h&p)>>2]|0)>>>0>0}c[(d&p)>>2]=h&1;h=0;break}default:h=1}i=r;return h|0}function Kc(a){a=a|0;var b=0;a:do if(!(Lc()|0)){b=c[2254]|0;if(!((b|0)==0|(a|0)==0))while(1){if(!(_v(a,c[(b&p)+16>>2]|0)|0))break a;b=c[(b&p)+12>>2]|0;if(!b){b=0;break}}}else b=0;while(0);return b|0}function Lc(){var a=0,b=0,d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0;m=i;i=i+16|0;if((i|0)>=(j|0))fa();k=m;do if(!(c[2243]|0)){c[2245]=1;if(!(c[2246]|0)){if(!(c[2195]|0)){c[(k&p)>>2]=16496;mf(4,k)|0}b=9024|0;d=b+40|0;do{c[(b&p)>>2]=0;b=b+4|0}while((b|0)<(d|0));if(c[2187]|0)c[2256]=8;h=c[2234]|0;d=c[2235]|0;b=c[2236]|0;if((h|0)!=0&(d|0)>99&(b|0)>0){g=d&-8;c[2235]=g;c[2263]=h;c[2264]=b;f=b+-1|0;if((f|0)>0){b=h+(ca(d>>>3,(b<<3)+-8|0)|0)|0;e=0;d=h;do{a=d;d=d+g|0;c[(a&p)>>2]=d;e=e+1|0}while((e|0)!=(f|0))}else b=h;c[(b&p)>>2]=0;c[2262]=b+4}else{c[2262]=0;c[2234]=0;c[2235]=0;c[2236]=0}if((c[2237]|0)==0|(c[2238]|0)<512|(c[2239]|0)<1){c[2237]=0;c[2238]=0;c[2239]=0}a=lc[c[8800>>2]&127](c[2202]|0)|0;if(a){b=9024|0;d=b+40|0;do{c[(b&p)>>2]=0;b=b+4|0}while((b|0)<(d|0));break}}c[2246]=1;if(!(c[2249]|0))c[2249]=8;a=(c[2248]|0)+1|0;c[2248]=a;if(!(c[2244]|c[2243])){c[2244]=1;b=10840|0;d=b+92|0;do{c[(b&p)>>2]=0;b=b+4|0}while((b|0)<(d|0));b=0;do{ng(10840,16608+(b*36|0)|0);b=b+1|0}while((b|0)!=59);b=0;do{ng(10840,19480+(b*36|0)|0);b=b+1|0}while((b|0)!=8);ng(10840,19256);ng(10840,19292|0);ng(10840,19328|0);if(!(c[2247]|0)){a=c[2214]|0;if(!a){c[(k&p)>>2]=16440;mf(18,k)|0;a=c[2214]|0}a=lc[a&127](c[2213]|0)|0;if(!a)l=28}else l=28;if((l|0)==28){c[2247]=1;a=Tc(10)|0;if(!a)a=7;else{Wc(a);Mc(9584,1)|0;Mc(9672|0,0)|0;Mc(9760|0,0)|0;Mc(9848|0,0)|0;a=c[2237]|0;b=c[2238]|0;d=c[2239]|0;if(c[3153]|0){k=b&-8;c[3154]=k;c[3161]=d;c[3155]=d;if((d|0)<=90){c[3156]=((d|0)/10|0)+1;c[3157]=a;c[3160]=0;c[3162]=0;if(d)l=33}else{c[3156]=10;c[3157]=a;c[3160]=0;c[3162]=0;l=33}if((l|0)==33){f=b>>>3;g=d<<3;h=ca(f<<3,d+-1|0)|0;b=a;e=0;while(1){d=d+-1|0;c[(b&p)>>2]=e;if(!d)break;else{e=b;b=b+k|0}}b=a+(ca(g,f)|0)|0;c[3160]=a+h;a=b}c[3158]=a}c[2243]=1;a=0}}c[2244]=0;b=c[2248]|0}else{b=a;a=0}c[2248]=b+-1;if((b|0)<2)c[2249]=0}else a=0;while(0);i=m;return a|0}function Mc(a,b){a=a|0;b=b|0;var d=0;d=Lc()|0;do if(!d){og(a);d=c[2254]|0;if((b|0)!=0|(d|0)==0){c[(a&p)+12>>2]=d;c[2254]=a;d=0;break}else{c[(a&p)+12>>2]=c[(d&p)+12>>2];c[((c[2254]|0)&p)+12>>2]=a;d=0;break}}while(0);return d|0}function Nc(a){a=a|0;og(a);return 0}function Oc(a){a=a|0;return 0}function Pc(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;do if(!(Lc()|0)){e=9032|0;d=c[(e&p)>>2]|0;e=c[(e&p)+4>>2]|0;if((b|0)>=0)if((b|0)>0|(b|0)==0&a>>>0>0){c[2260]=9;c[2261]=0;f=9032|0;c[(f&p)>>2]=a;c[(f&p)+4>>2]=b;c[2265]=(0>(b|0)|0==(b|0)&(c[2166]|0)>>>0>=a>>>0)&1;break}else{c[2265]=0;c[2258]=0;c[2259]=0;c[2260]=0;c[2261]=0;break}}else{e=-1;d=-1}while(0);G=e;return d|0}function Qc(){var a=0;a=c[2166]|0;G=((a|0)<0)<<31>>31;return a|0}function Rc(a){a=a|0;var b=0;b=(a|0)<0;Pc(b?0:a,b?0:((a|0)<0)<<31>>31)|0;return}function Sc(a){a=a|0;var b=0;b=c[2176]|0;if(a)c[2176]=c[2166];G=((b|0)<0)<<31>>31;return b|0}function Tc(a){a=a|0;if((Lc()|0)!=0|(a|0)<1)a=0;else a=qg(a,((a|0)<0)<<31>>31)|0;return a|0}function Uc(a,b){a=a|0;b=b|0;if(!(Lc()|0))a=qg(a,b)|0;else a=0;return a|0}function Vc(a){a=a|0;a=lc[c[8792>>2]&127](a)|0;G=((a|0)<0)<<31>>31;return a|0}function Wc(a){a=a|0;var b=0;do if(a)if(!(c[2186]|0)){cc[c[8784>>2]&31](a);break}else{b=lc[c[8792>>2]&127](a)|0;c[2166]=(c[2166]|0)-b;c[2175]=(c[2175]|0)+-1;cc[c[8784>>2]&31](a);break}while(0);return}function Xc(a,b){a=a|0;b=b|0;var c=0;if(!(Lc()|0)){c=(b|0)<0;b=rg(a,c?0:b,c?0:((b|0)<0)<<31>>31)|0}else b=0;return b|0}function Yc(a,b,c){a=a|0;b=b|0;c=c|0;if(!(Lc()|0))b=rg(a,b,c)|0;else b=0;return b|0}function Zc(b,d){b=b|0;d=d|0;var e=0,f=0,g=0;g=i;i=i+112|0;if((i|0)>=(j|0))fa();f=g+28|0;e=g;if(!(Lc()|0)){c[(e&p)+4>>2]=f;c[(e&p)+8>>2]=f;c[(e&p)>>2]=0;c[(e&p)+12>>2]=0;c[(e&p)+16>>2]=70;c[(e&p)+20>>2]=1e9;a[(e&n)+25>>0]=0;a[(e&n)+24>>0]=2;sg(e,0,b,d);e=tg(e)|0}else e=0;i=g;return e|0}function _c(a,b){a=a|0;b=b|0;var d=0,e=0;e=i;i=i+16|0;if((i|0)>=(j|0))fa();d=e;if(!(Lc()|0)){c[(d&p)>>2]=b;d=Zc(a,d)|0}else d=0;i=e;return d|0}function $c(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0;h=i;i=i+32|0;if((i|0)>=(j|0))fa();g=h;if((b|0)>=1){c[(g&p)+4>>2]=d;c[(g&p)+8>>2]=d;c[(g&p)>>2]=0;c[(g&p)+12>>2]=0;c[(g&p)+16>>2]=b;c[(g&p)+20>>2]=0;a[(g&n)+25>>0]=0;a[(g&n)+24>>0]=0;sg(g,0,e,f);d=tg(g)|0}i=h;return d|0}function ad(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0;f=i;i=i+16|0;if((i|0)>=(j|0))fa();g=f;c[(g&p)>>2]=e;a=$c(a,b,d,g)|0;i=f;return a|0}function bd(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0;k=i;i=i+256|0;if((i|0)>=(j|0))fa();f=k+16|0;h=k+44|0;g=k;if(c[2250]|0){c[(g&p)>>2]=e;c[(f&p)+4>>2]=h;c[(f&p)+8>>2]=h;c[(f&p)>>2]=0;c[(f&p)+12>>2]=0;c[(f&p)+16>>2]=210;c[(f&p)+20>>2]=0;a[(f&n)+25>>0]=0;a[(f&n)+24>>0]=0;sg(f,0,d,g);e=c[2250]|0;g=c[2251]|0;f=tg(f)|0;mc[e&63](g,b,f)}i=k;return}function cd(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0;h=i;i=i+256|0;if((i|0)>=(j|0))fa();g=h;do if(!(Lc()|0)){if((b|0)<1|(e|0)==0){a[9064]=0;break}if(!(a[9064]|0)){a[9066]=0;a[9065]=0;f=(Lc()|0)==0;f=f?c[2254]|0:0;ac[c[(f&p)+56>>2]&63](f,256,g)|0;f=0;do{a[(f&n)+9067>>0]=f;f=f+1|0}while((f|0)!=256);f=0;do{k=9067+f|0;m=(d[(g+f&n)>>0]|0)+(d[(k&n)>>0]|0)+(d[9066]|0)|0;a[9066]=m;m=9067+(m&255)|0;l=a[(m&n)>>0]|0;a[(m&n)>>0]=a[(k&n)>>0]|0;a[(k&n)>>0]=l;f=f+1|0}while((f|0)!=256);a[9064]=1}while(1){k=(a[9065]|0)+1<<24>>24;a[9065]=k;k=9067+(k&255)|0;g=a[(k&n)>>0]|0;f=g&255;l=(d[9066]|0)+f|0;a[9066]=l;a[(k&n)>>0]=a[(l&255&n)+9067>>0]|0;a[((d[9066]|0)&n)+9067>>0]=g;a[(e&n)>>0]=a[((d[((d[9065]|0)&n)+9067>>0]|0)+f&255&n)+9067>>0]|0;b=b+-1|0;if(!b)break;else e=e+1|0}}while(0);i=h;return}function dd(b,c){b=b|0;c=c|0;var e=0;if(b)if(!c)c=1;else{e=a[(b&n)>>0]|0;a:do if(!(e<<24>>24))e=0;else while(1){if((a[(e&255&n)+9328>>0]|0)!=(a[((d[(c&n)>>0]|0)&n)+9328>>0]|0))break a;b=b+1|0;c=c+1|0;e=a[(b&n)>>0]|0;if(!(e<<24>>24)){e=0;break}}while(0);c=(d[(e&255&n)+9328>>0]|0)-(d[((d[(c&n)>>0]|0)&n)+9328>>0]|0)|0}else c=((c|0)!=0)<<31>>31;return c|0}function ed(a){a=a|0;c[2241]=a;return 0}function fd(d,e,f,g){d=d|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,q=0,r=0;r=i;i=i+16|0;if((i|0)>=(j|0))fa();q=r;a:do if((f|0)==(d|0)){ug(f,1,10016,q);h=0}else{h=qg(48,0)|0;if(!h){c[(d&p)+52>>2]=7;h=c[(d&p)+236>>2]|0;if(!h){h=0;break}e=h+8|0;if(!(b[(e&o)>>1]&9312)){b[(e&o)>>1]=1;h=0;break}else{vg(h);h=0;break}}l=h+0|0;k=l+48|0;do{a[(l&n)>>0]=0;l=l+1|0}while((l|0)<(k|0));m=h+24|0;c[(m&p)>>2]=wg(d,f,g)|0;k=wg(d,d,e)|0;l=h+4|0;c[(l&p)>>2]=k;c[(h&p)>>2]=d;c[(h&p)+20>>2]=f;c[(h&p)+16>>2]=1;c[(h&p)+40>>2]=0;e=c[(m&p)>>2]|0;do if(!((e|0)==0|(k|0)==0)?(xg(k,c[((c[(e&p)+4>>2]|0)&p)+32>>2]|0,-1,0)|0)!=7:0)if(!(a[((c[(l&p)>>2]|0)&n)+8>>0]|0)){e=(c[(m&p)>>2]|0)+16|0;c[(e&p)>>2]=(c[(e&p)>>2]|0)+1;break a}else{ug(d,1,47416,q);break}while(0);Wc(h);h=0}while(0);i=r;return h|0}function gd(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,o=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0;F=i;i=i+32|0;if((i|0)>=(j|0))fa();B=F;r=F+16|0;u=F+12|0;y=F+8|0;D=b+24|0;g=c[(D&p)>>2]|0;h=c[(g&p)+4>>2]|0;c[(h&p)+4>>2]=c[(g&p)>>2];E=b+28|0;f=c[(E&p)>>2]|0;if(f>>>0<7?(30>>>(f&127)&1)==0:0){x=c[(h&p)>>2]|0;C=b+4|0;f=c[(C&p)>>2]|0;A=c[(c[(f&p)+4>>2]&p)>>2]|0;if((c[(b&p)>>2]|0)!=0?(a[(h&n)+20>>0]|0)==2:0){z=0;g=5}else v=5;do if((v|0)==5){h=b+12|0;if(!(c[(h&p)>>2]|0)){g=yg(f,2)|0;if(g){z=0;break}c[(h&p)>>2]=1;z=c[(C&p)>>2]|0;g=c[(z&p)+4>>2]|0;c[(g&p)+4>>2]=c[(z&p)>>2];g=c[((c[(g&p)+12>>2]|0)&p)+56>>2]|0;c[(b&p)+8>>2]=d[(g&n)+41>>0]<<16|d[(g&n)+40>>0]<<24|d[(g&n)+42>>0]<<8|d[(g&n)+43>>0];g=c[(D&p)>>2]|0}if(!(a[(g&n)+8>>0]|0)){z=1;g=yg(g,0)|0}else{z=0;g=0}}while(0);l=c[((c[(D&p)>>2]|0)&p)+4>>2]|0;w=c[(l&p)+32>>2]|0;q=c[((c[(C&p)>>2]|0)&p)+4>>2]|0;t=c[(q&p)+32>>2]|0;q=(a[((c[(q&p)>>2]|0)&n)+5>>0]|0)==5;f=(w|0)==(t|0)|(g|0)==0&q^1?g:8;l=c[(l&p)+44>>2]|0;h=(e|0)<0;a:do if(e){g=b+16|0;m=c[(g&p)>>2]|0;o=0;do{if(!(m>>>0<=l>>>0&(f|0)==0))break a;if((m|0)!=((((c[2514]|0)>>>0)/((c[((c[((c[(D&p)>>2]|0)&p)+4>>2]|0)&p)+32>>2]|0)>>>0)|0)+1|0)){f=zg(x,m,r,2)|0;if(!f){k=c[(r&p)>>2]|0;f=Ag(b,m,c[(k&p)+4>>2]|0,0)|0;if(k)Bg(k)}}else f=0;m=(c[(g&p)>>2]|0)+1|0;c[(g&p)>>2]=m;o=o+1|0}while(h|(o|0)<(e|0))}while(0);if(!f){c[(b&p)+36>>2]=l;f=c[(b&p)+16>>2]|0;c[(b&p)+32>>2]=l+1-f;if(f>>>0<=l>>>0){f=b+40|0;if(!(c[(f&p)>>2]|0)){C=(c[(c[((c[(D&p)>>2]|0)&p)+4>>2]&p)>>2]|0)+88|0;c[(b&p)+44>>2]=c[(C&p)>>2];c[(C&p)>>2]=b;c[(f&p)>>2]=1;f=0}else f=0}else v=22}else if((f|0)==101)v=22;do if((v|0)==22){if(!l){g=c[(C&p)>>2]|0;f=c[(g&p)+4>>2]|0;c[(f&p)+4>>2]=c[(g&p)>>2];c[(f&p)+44>>2]=0;f=Cg(f)|0;if((f|0)==0|(f|0)==101)l=1;else break}f=Dg(c[(C&p)>>2]|0,1,(c[(b&p)+8>>2]|0)+1|0)|0;if(!f){g=c[(b&p)>>2]|0;if(g)Eg(g);if(q?(s=Fg(c[(C&p)>>2]|0,2)|0,(s|0)!=0):0){f=s;break}if((w|0)<(t|0)){g=(t|0)/(w|0)|0;g=(l+-1+g|0)/(g|0)|0;h=c[2514]|0;k=c[((c[((c[(C&p)>>2]|0)&p)+4>>2]|0)&p)+32>>2]|0;g=(((g|0)==(((h>>>0)/(k>>>0)|0)+1|0))<<31>>31)+g|0;b=((w|0)<0)<<31>>31;s=sw(l|0,((l|0)<0)<<31>>31|0,w|0,b|0)|0;q=G;e=c[(A&p)+60>>2]|0;o=c[(A&p)+24>>2]|0;b:do if(g>>>0<=o>>>0){f=0;while(1){if((g|0)!=(((h>>>0)/(k>>>0)|0)+1|0)){f=zg(A,g,u,0)|0;if(f)break b;h=c[(u&p)>>2]|0;f=Gg(h)|0;if(h)Bg(h)}g=g+1|0;h=(f|0)==0;if(g>>>0>o>>>0|h^1)break;k=c[((c[((c[(C&p)>>2]|0)&p)+4>>2]|0)&p)+32>>2]|0;h=c[2514]|0}if(h)v=38}else v=38;while(0);if((v|0)==38)f=Hg(A,0,1)|0;h=c[2514]|0;l=h+t|0;m=((l|0)<0)<<31>>31;k=(m|0)<(q|0)|(m|0)==(q|0)&l>>>0>>0;l=k?l:s;m=k?m:q;h=h+w|0;k=((h|0)<0)<<31>>31;g=(f|0)==0;if(g&((k|0)<(m|0)|(k|0)==(m|0)&h>>>0>>0))do{c[(y&p)>>2]=0;f=qw(h|0,k|0,w|0,b|0)|0;f=jw(f|0,G|0,1,0)|0;f=zg(x,f,y,0)|0;g=c[(y&p)>>2]|0;if(!f)f=tc[c[((c[(e&p)>>2]|0)&p)+12>>2]&31](e,c[(g&p)+4>>2]|0,w,h,k)|0;if(g)Bg(g);h=jw(h|0,k|0,w|0,b|0)|0;k=G;g=(f|0)==0}while(g&((k|0)<(m|0)|(k|0)==(m|0)&h>>>0>>0));if(!g)break;f=rc[c[((c[(e&p)>>2]|0)&p)+24>>2]&127](e,B)|0;y=c[(B&p)+4>>2]|0;if((f|0)==0&((y|0)>(q|0)|((y|0)==(q|0)?(c[(B&p)>>2]|0)>>>0>s>>>0:0)))f=ac[c[((c[(e&p)>>2]|0)&p)+16>>2]&63](e,s,q)|0;if(f)break;f=Ig(A,0)|0}else{c[(A&p)+24>>2]=ca((w|0)/(t|0)|0,l)|0;f=Hg(A,0,0)|0}if(!f){f=Jg(c[(C&p)>>2]|0,0)|0;f=(f|0)==0?101:f}}}while(0);if(z){Kg(c[(D&p)>>2]|0,0)|0;Jg(c[(D&p)>>2]|0,0)|0}f=(f|0)==3082?7:f;c[(E&p)>>2]=f}i=F;return f|0}function hd(a){a=a|0;var d=0,e=0,f=0,g=0,h=0;if(!a)d=0;else{h=c[(a&p)+20>>2]|0;e=c[(a&p)+24>>2]|0;d=c[(e&p)+4>>2]|0;c[(d&p)+4>>2]=c[(e&p)>>2];if(c[(a&p)>>2]|0){e=e+16|0;c[(e&p)>>2]=(c[(e&p)>>2]|0)+-1}if(c[(a&p)+40>>2]|0){d=(c[(d&p)>>2]|0)+88|0;while(1){e=c[(d&p)>>2]|0;if((e|0)==(a|0))break;else d=e+44|0}c[(d&p)>>2]=c[(a&p)+44>>2]}Lg(c[(a&p)+4>>2]|0,0,0);d=c[(a&p)+28>>2]|0;d=(d|0)==101?0:d;e=c[(a&p)>>2]|0;if(e){c[(e&p)+52>>2]=d;f=c[(e&p)+236>>2]|0;do if(f){g=f+8|0;if(!(b[(g&o)>>1]&9312)){b[(g&o)>>1]=1;break}else{vg(f);e=c[(a&p)>>2]|0;break}}while(0);Mg(e);if(c[(a&p)>>2]|0)Wc(a)}Mg(h)}return d|0}function id(a){a=a|0;return c[(a&p)+32>>2]|0}function jd(a){a=a|0;return c[(a&p)+36>>2]|0}function kd(a){a=a|0;if((a|0)!=0?(b[(a&o)+88>>1]&256)!=0:0)a=c[(a&p)+168>>2]|0;else a=0;return a|0}function ld(a){a=a|0;if(!a)a=1;else a=(b[(a&o)+88>>1]&8)!=0;return a&1|0}function md(a){a=a|0;var b=0,d=0,e=0;e=i;i=i+16|0;if((i|0)>=(j|0))fa();d=e;do if(a){b=c[(a&p)>>2]|0;if(!b){bd(21,47360,d);c[(d&p)>>2]=68910;c[(d&p)+4>>2]=10788;bd(21,13648,d);b=21;break}else{a=Og(b,Ng(a)|0)|0;Mg(b);b=a;break}}else b=0;while(0);i=e;return b|0}function nd(b){b=b|0;var d=0,e=0;if(!b)b=0;else{d=Pg(b)|0;c[(b&p)+76>>2]=-1;c[(b&p)+80>>2]=0;a[(b&n)+86>>0]=2;c[(b&p)+40>>2]=-1108210269;c[(b&p)+92>>2]=0;c[(b&p)+72>>2]=1;a[(b&n)+87>>0]=-1;c[(b&p)+104>>2]=0;e=b+144|0;c[(e&p)>>2]=0;c[(e&p)+4>>2]=0;b=Og(c[(b&p)>>2]|0,d)|0}return b|0}function od(a){a=a|0;var d=0,e=0,f=0,g=0,h=0,i=0;h=a+68|0;e=b[(h&o)>>1]|0;if(e<<16>>16>0){i=a+60|0;d=c[(i&p)>>2]|0;g=0;do{f=d+(g*40|0)|0;if(!((b[(d+(g*40|0)&o)+8>>1]&9312)==0?(c[(d+(g*40|0)&p)+24>>2]|0)==0:0)){Qg(f);d=c[(i&p)>>2]|0;e=b[(h&o)>>1]|0}b[(d+(g*40|0)&o)+8>>1]=1;g=g+1|0}while((g|0)<(e<<16>>16|0))}d=a+88|0;e=b[(d&o)>>1]|0;if((e&256)!=0?(c[(a&p)+188>>2]|0)!=0:0)b[(d&o)>>1]=e|8;return 0}function pd(a){a=a|0;var d=0;d=a+8|0;if(b[(d&o)>>1]&18){Rg(a)|0;b[(d&o)>>1]=e[(d&o)>>1]|0|16;if(!(c[(a&p)+12>>2]|0))d=0;else d=c[(a&p)+16>>2]|0}else d=Sg(a,1)|0;return d|0}function qd(a){a=a|0;return Sg(a,1)|0}function rd(a){a=a|0;return Tg(a,1)|0}function sd(a){a=a|0;return Tg(a,2)|0}function td(a){a=a|0;return +(+Ug(a))}function ud(a){a=a|0;a=Vg(a)|0;return a|0}function vd(a){a=a|0;a=Vg(a)|0;return a|0}function wd(a){a=a|0;return Sg(a,2)|0}function xd(a){a=a|0;return Sg(a,3)|0}function yd(a){a=a|0;return Sg(a,2)|0}function zd(a){a=a|0;return d[((e[(a&o)+8>>1]|0)&31&n)+10064>>0]|0|0}function Ad(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;Wg(a,b,c,0,d);return}function Bd(b,d,e,f,g){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;if(f>>>0>0|(f|0)==0&e>>>0>2147483647){e=g;if(!((e|0)==0|(e|0)==-1))cc[g&31](d);if(b){c[(b&p)+20>>2]=18;a[(b&n)+25>>0]=1;Xg(c[(b&p)>>2]|0,10096,-1,1,0)|0}}else Wg(b,d,e,0,g);return}function Cd(a,b){a=a|0;b=+b;Yg(c[(a&p)>>2]|0,b);return}function Dd(b,d,e){b=b|0;d=d|0;e=e|0;c[(b&p)+20>>2]=1;a[(b&n)+25>>0]=1;Xg(c[(b&p)>>2]|0,d,e,1,-1)|0;return}function Ed(b,d,e){b=b|0;d=d|0;e=e|0;c[(b&p)+20>>2]=1;a[(b&n)+25>>0]=1;Xg(c[(b&p)>>2]|0,d,e,2,-1)|0;return}function Fd(a,d){a=a|0;d=d|0;var e=0,f=0;a=c[(a&p)>>2]|0;e=((d|0)<0)<<31>>31;f=a+8|0;if(!(b[(f&o)>>1]&9312)){c[(a&p)>>2]=d;c[(a&p)+4>>2]=e;b[(f&o)>>1]=4}else Zg(a,d,e);return}function Gd(a,d,e){a=a|0;d=d|0;e=e|0;var f=0;a=c[(a&p)>>2]|0;f=a+8|0;if(!(b[(f&o)>>1]&9312)){c[(a&p)>>2]=d;c[(a&p)+4>>2]=e;b[(f&o)>>1]=4}else Zg(a,d,e);return}function Hd(a){a=a|0;var d=0;a=c[(a&p)>>2]|0;d=a+8|0;if(!(b[(d&o)>>1]&9312))b[(d&o)>>1]=1;else vg(a);return}function Id(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;Wg(a,b,c,1,d);return}function Jd(b,d,e,f,g,h){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;if(f>>>0>0|(f|0)==0&e>>>0>2147483647){e=g;if(!((e|0)==0|(e|0)==-1))cc[g&31](d);if(b){c[(b&p)+20>>2]=18;a[(b&n)+25>>0]=1;Xg(c[(b&p)>>2]|0,10096,-1,1,0)|0}}else Wg(b,d,e,h<<24>>24==4?2:h,g);return}function Kd(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;Wg(a,b,c,2,d);return}function Ld(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;Wg(a,b,c,3,d);return}function Md(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;Wg(a,b,c,2,d);return}function Nd(a,b){a=a|0;b=b|0;_g(c[(a&p)>>2]|0,b)|0;return}function Od(a,b){a=a|0;b=b|0;$g(c[(a&p)>>2]|0,b);return}function Pd(d,e){d=d|0;e=e|0;var f=0;c[(d&p)+20>>2]=e;a[(d&n)+25>>0]=1;f=c[(d&p)>>2]|0;if(b[(f&o)+8>>1]&1){if((e|0)!=516){d=e&255;if(d>>>0>26|(d|0)==2)d=16328;else d=c[(d<<2&p)+15488>>2]|0}else d=16344;Xg(f,d,-1,1,0)|0}return}function Qd(b){b=b|0;c[(b&p)+20>>2]=18;a[(b&n)+25>>0]=1;Xg(c[(b&p)>>2]|0,10096,-1,1,0)|0;return}function Rd(d){d=d|0;var e=0,f=0;e=c[(d&p)>>2]|0;f=e+8|0;if(!(b[(f&o)>>1]&9312))b[(f&o)>>1]=1;else{vg(e);e=c[(d&p)>>2]|0}c[(d&p)+20>>2]=7;a[(d&n)+25>>0]=1;a[((c[(e&p)+32>>2]|0)&n)+65>>0]=1;return}function Sd(f){f=f|0;var g=0,l=0,m=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,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;_=i;i=i+224|0;if((i|0)>=(j|0))fa();V=_+8|0;U=_;if(!(ah(f)|0)){Z=c[(f&p)>>2]|0;N=f+88|0;b[(N&o)>>1]=b[(N&o)>>1]&-513;R=f+40|0;S=f+76|0;T=f+128|0;Y=f+80|0;D=f+168|0;E=f+8|0;F=f+20|0;H=f+32|0;I=f+4|0;J=f+84|0;X=f+44|0;K=(f|0)==0;L=f+52|0;M=f+48|0;C=0;while(1){if((c[(R&p)>>2]|0)!=-1108210269)nd(f)|0;B=c[(f&p)>>2]|0;if(a[(B&n)+65>>0]|0){W=7;break}l=c[(S&p)>>2]|0;do if((l|0)<1){if(b[(N&o)>>1]&8){c[(Y&p)>>2]=17;l=1;break}if((l|0)<0){l=B+148|0;if(!(c[(l&p)>>2]|0))c[(B&p)+240>>2]=0;if((c[(B&p)+184>>2]|0)!=0?(a[(B&n)+145>>0]|0)==0:0)bh(c[(B&p)>>2]|0,T)|0;c[(l&p)>>2]=(c[(l&p)>>2]|0)+1;l=b[(N&o)>>1]|0;if(!(l&64)){l=B+156|0;c[(l&p)>>2]=(c[(l&p)>>2]|0)+1;l=b[(N&o)>>1]|0}if(l&128){A=B+152|0;c[(A&p)>>2]=(c[(A&p)>>2]|0)+1}c[(S&p)>>2]=0;W=22}else W=22}else W=22;while(0);if((W|0)==22){W=0;do if(!(b[(N&o)>>1]&3)){A=B+160|0;c[(A&p)>>2]=(c[(A&p)>>2]|0)+1;l=gh(f)|0;c[(A&p)>>2]=(c[(A&p)>>2]|0)+-1;if((l|0)==100)l=100;else W=101}else{t=c[(f&p)>>2]|0;z=c[(E&p)>>2]|0;y=z+40|0;ch(y,8);c[(F&p)>>2]=0;if((c[(Y&p)>>2]|0)==7){a[(t&n)+65>>0]=1;l=1;W=101;break}r=c[(H&p)>>2]|0;u=b[(N&o)>>1]&3;if(u<<16>>16==1){s=c[(E&p)>>2]|0;v=s+360|0;if(b[(s&o)+368>>1]&16){w=(c[(s&p)+372>>2]|0)>>>2;m=c[(s&p)+376>>2]|0;if(!w){x=m;s=r;g=0}else{l=0;s=r;do{s=(c[((c[(m+(l<<2)&p)>>2]|0)&p)+4>>2]|0)+s|0;l=l+1|0}while((l|0)<(w|0));x=m;g=w}}else{x=0;s=r;g=0}}else{x=0;s=r;g=0;v=0}r=u<<16>>16==2;m=c[(S&p)>>2]|0;while(1){l=m+1|0;if((m|0)>=(s|0)){W=33;break}if(!r)break;if((a[((c[(I&p)>>2]|0)+(m*20|0)&n)>>0]|0)==-99)break;else m=l}if((W|0)==33){c[(S&p)>>2]=l;c[(Y&p)>>2]=0;l=101;W=101;break}c[(S&p)>>2]=l;if(c[(t&p)+240>>2]|0){c[(Y&p)>>2]=9;c[(V&p)>>2]=15832;dh(X,t,10344,V);l=1;W=101;break}s=c[(H&p)>>2]|0;if((m|0)<(s|0)){l=m;A=(c[(I&p)>>2]|0)+(m*20|0)|0}else{m=m-s|0;s=c[(x&p)>>2]|0;r=c[(s&p)+4>>2]|0;if((m|0)<(r|0))r=m;else{s=m;l=0;while(1){m=s-r|0;l=l+1|0;s=c[(x+(l<<2)&p)>>2]|0;r=c[(s&p)+4>>2]|0;if((m|0)<(r|0)){r=m;break}else s=m}}l=r;A=(c[(s&p)>>2]|0)+(r*20|0)|0}if((b[(N&o)>>1]&3)==1){b[(z&o)+48>>1]=4;r=y;c[(r&p)>>2]=l;c[(r&p)+4>>2]=((l|0)<0)<<31>>31;b[(z&o)+88>>1]=2562;r=c[(d[(A&n)>>0]<<2&p)+44856>>2]|0;c[(z&p)+96>>2]=r;s=r;while(1)if(!(a[(s&n)>>0]|0))break;else s=s+1|0;w=z+80|0;c[(z&p)+92>>2]=s-r&1073741823;a[(z&n)+90>>0]=1;if((a[(A&n)+1>>0]|0)==-18){l=(g<<2)+4|0;a:do if(!g)s=0;else{r=c[(A&p)+16>>2]|0;m=0;while(1){s=m+1|0;if((c[(x+(m<<2)&p)>>2]|0)==(r|0)){s=m;break a}if((s|0)<(g|0))m=s;else break}}while(0);if((s|0)==(g|0)?(eh(v,l,(g|0)!=0&1)|0)==0:0){c[((c[(v&p)+16>>2]|0)+(g<<2)&p)>>2]=c[(A&p)+16>>2];z=v+8|0;b[(z&o)>>1]=e[(z&o)>>1]|16;c[(v&p)+12>>2]=l;z=w}else z=w}else z=w}b[(z&o)+48>>1]=4;y=c[(A&p)+4>>2]|0;x=z+40|0;c[(x&p)>>2]=y;c[(x&p)+4>>2]=((y|0)<0)<<31>>31;b[(z&o)+88>>1]=4;x=c[(A&p)+8>>2]|0;y=z+80|0;c[(y&p)>>2]=x;c[(y&p)+4>>2]=((x|0)<0)<<31>>31;b[(z&o)+128>>1]=4;y=c[(A&p)+12>>2]|0;x=z+120|0;c[(x&p)>>2]=y;c[(x&p)+4>>2]=((y|0)<0)<<31>>31;x=z+160|0;if(!(fh(x,32)|0)){b[(z&o)+168>>1]=514;y=z+176|0;g=c[(y&p)>>2]|0;b:do switch(a[(A&n)+1>>0]|0){case -6:{t=c[(A&p)+16>>2]|0;l=t+6|0;c[(V&p)>>2]=e[(l&o)>>1];ad(32,g,44768,V)|0;if(!g)s=0;else{s=g;while(1)if(!(a[(s&n)>>0]|0))break;else s=s+1|0;s=s-g&1073741823}c:do if(b[(l&o)>>1]|0){u=t+16|0;v=0;while(1){r=c[(t+(v<<2)&p)+20>>2]|0;if(r){r=c[(r&p)>>2]|0;if(!r){m=0;r=0}else W=61}else{r=44776;W=61}do if((W|0)==61){W=0;w=r;while(1)if(!(a[(w&n)>>0]|0))break;else w=w+1|0;m=w-r&1073741823;if((m|0)!=6)break;w=(Zv(r,11152,6)|0)==0;m=w?1:6;r=w?44784:r}while(0);if((m+s|0)>26)break;w=s+1|0;a[(g+s&n)>>0]=44;if(a[((c[(u&p)>>2]|0)+v&n)>>0]|0){a[(g+w&n)>>0]=45;w=s+2|0}kw(g+w|0,r|0,m+1|0)|0;s=w+m|0;v=v+1|0;if((v|0)>=(e[(l&o)>>1]|0))break c}l=g+s|0;a[(l&n)>>0]=44;a[(l&n)+1>>0]=46;a[(l&n)+2>>0]=46;a[(l&n)+3>>0]=46}while(0);a[(g+s&n)>>0]=41;a[(g+s&n)+1>>0]=0;r=g;break}case -15:{ad(32,g,44832,V)|0;r=g;break}case -18:{ad(32,g,44848,V)|0;r=g;break}case -4:{c[(V&p)>>2]=c[(c[(A&p)+16>>2]&p)>>2];ad(32,g,44792,V)|0;r=g;break}case -5:{l=c[(A&p)+16>>2]|0;r=b[(l&o)>>1]|0;c[(V&p)>>2]=c[(l&p)+24>>2];c[(V&p)+4>>2]=r;ad(32,g,44800,V)|0;r=g;break}case -13:{m=c[(A&p)+16>>2]|0;l=c[(m&p)+4>>2]|0;r=V;c[(r&p)>>2]=c[(m&p)>>2];c[(r&p)+4>>2]=l;ad(32,g,19920,V)|0;r=g;break}case -14:{c[(V&p)>>2]=c[(A&p)+16>>2];ad(32,g,44808,V)|0;r=g;break}case -12:{h[(k&q)>>3]=+h[(c[(A&p)+16>>2]&q)>>3];c[(V&p)>>2]=c[(k&p)>>2];c[(V&p)+4>>2]=c[(k&p)+4>>2];ad(32,g,19912,V)|0;r=g;break}case -8:{s=c[(A&p)+16>>2]|0;r=e[(s&o)+8>>1]|0;if(r&2){r=c[(s&p)+16>>2]|0;break b}if(r&4){m=s;l=c[(m&p)+4>>2]|0;r=V;c[(r&p)>>2]=c[(m&p)>>2];c[(r&p)+4>>2]=l;ad(32,g,19920,V)|0;r=g;break b}if(r&8){h[(k&q)>>3]=+h[(s&q)>>3];c[(V&p)>>2]=c[(k&p)>>2];c[(V&p)+4>>2]=c[(k&p)+4>>2];ad(32,g,19912,V)|0;r=g;break b}if(!(r&1))r=44816;else{ad(32,g,20304,V)|0;r=g}break}case -19:{a[(g&n)>>0]=0;r=g;break}case -10:{c[(V&p)>>2]=c[((c[(A&p)+16>>2]|0)&p)+8>>2];ad(32,g,44824,V)|0;r=g;break}default:{s=c[(A&p)+16>>2]|0;if(!s){a[(g&n)>>0]=0;r=g}else r=s}}while(0);if((r|0)==(c[(y&p)>>2]|0)){if(!r)l=0;else{s=r;while(1)if(!(a[(s&n)>>0]|0))break;else s=s+1|0;l=s-r&1073741823}c[(z&p)+172>>2]=l;a[(z&n)+170>>0]=1}else Xg(x,r,-1,1,0)|0;l=b[(N&o)>>1]|0;if((l&3)==1){if(fh(z+200|0,4)|0){l=1;W=101;break}b[(z&o)+208>>1]=514;c[(z&p)+212>>2]=2;l=c[(z&p)+216>>2]|0;c[(V&p)>>2]=d[(A&n)+3>>0];ad(3,l,44760,V)|0;a[(z&n)+210>>0]=1;b[(z&o)+248>>1]=1;l=b[(N&o)>>1]|0}b[(J&o)>>1]=12-((l&3)<<2);c[(F&p)>>2]=(c[(E&p)>>2]|0)+40;c[(Y&p)>>2]=0;l=100}else{l=1;W=101}}while(0);if((W|0)==101){W=0;g=B+184|0;if(((c[(g&p)>>2]|0)!=0?(a[(B&n)+145>>0]|0)==0:0)?(c[(D&p)>>2]|0)!=0:0){bh(c[(B&p)>>2]|0,U)|0;g=c[(g&p)>>2]|0;y=c[(B&p)+188>>2]|0;z=c[(D&p)>>2]|0;m=U;A=T;A=dw(c[(m&p)>>2]|0,c[(m&p)+4>>2]|0,c[(A&p)>>2]|0,c[(A&p)+4>>2]|0)|0;A=sw(A|0,G|0,1e6,0)|0;qc[g&15](y,z,A,G)}if((l|0)==101){t=B+20|0;s=c[(t&p)>>2]|0;if((s|0)>0){u=B+16|0;v=B+216|0;w=B+220|0;g=0;l=0;do{r=c[(u&p)>>2]|0;m=c[(r+(g<<4)&p)+4>>2]|0;if(((m|0)!=0?(O=c[(m&p)+4>>2]|0,c[(O&p)+4>>2]=c[(m&p)>>2],O=c[((c[(O&p)>>2]|0)&p)+208>>2]|0,(O|0)!=0):0)?(Q=O+12|0,P=c[(Q&p)>>2]|0,c[(Q&p)>>2]=0,Q=c[(v&p)>>2]|0,(Q|0)!=0&(P|0)>0&(l|0)==0):0){l=pc[Q&31](c[(w&p)>>2]|0,B,c[(r+(g<<4)&p)>>2]|0,P)|0;s=c[(t&p)>>2]|0}g=g+1|0}while((g|0)<(s|0))}else l=0;c[(Y&p)>>2]=l;l=(l|0)==0?101:1}}c[(B&p)+52>>2]=l;if((Og(c[(f&p)>>2]|0,c[(Y&p)>>2]|0)|0)==7)c[(Y&p)>>2]=7}if((b[(N&o)>>1]&256)!=0&(l|0)!=100&(l|0)!=101)l=hh(f)|0;g=c[(B&p)+56>>2]&l;if((g|0)!=17)break;s=C+1|0;if((C|0)>=50){g=17;break}m=c[(S&p)>>2]|0;if(!K?(b[(N&o)>>1]&256)!=0:0)l=c[(D&p)>>2]|0;else l=0;r=c[(f&p)>>2]|0;g=ih(r,l,-1,0,f,U,0)|0;if((g|0)==7){g=r;W=124;break}else if(g){W=127;break}C=c[(U&p)>>2]|0;kw(V|0,C|0,208)|0;kw(C|0,f|0,208)|0;kw(f|0,V|0,208)|0;A=C+52|0;B=c[(A&p)>>2]|0;c[(A&p)>>2]=c[(L&p)>>2];c[(L&p)>>2]=B;B=C+48|0;A=c[(B&p)>>2]|0;c[(B&p)>>2]=c[(M&p)>>2];c[(M&p)>>2]=A;A=C+168|0;B=c[(A&p)>>2]|0;c[(A&p)>>2]=c[(D&p)>>2];c[(D&p)>>2]=B;b[(N&o)>>1]=b[(N&o)>>1]&-257|b[(C&o)+88>>1]&256;jh(C,f);c[(C&p)+80>>2]=0;Ng(C)|0;nd(f)|0;if((m|0)<=-1){C=s;continue}b[(N&o)>>1]=b[(N&o)>>1]|512;C=s}if((W|0)==7){c[(Y&p)>>2]=7;g=7}else if((W|0)==124){a[(g&n)+65>>0]=1;g=7;W=127}do if((W|0)==127){l=Sg(c[(Z&p)+236>>2]|0,1)|0;mg(Z,c[(X&p)>>2]|0);if(!(a[(Z&n)+65>>0]|0)){c[(X&p)>>2]=kh(Z,l)|0;c[(Y&p)>>2]=g;break}else{c[(X&p)>>2]=0;c[(Y&p)>>2]=7;g=7;break}}while(0);g=Og(Z,g)|0}else{c[(V&p)>>2]=69408;c[(V&p)+4>>2]=10788;bd(21,13648,V);g=21}i=_;return g|0}function Td(a){a=a|0;return c[((c[(a&p)+4>>2]|0)&p)+4>>2]|0}function Ud(a){a=a|0;return c[((c[(a&p)>>2]|0)&p)+32>>2]|0}function Vd(a,d){a=a|0;d=d|0;var e=0;e=c[(a&p)+8>>2]|0;if(!(b[(e&o)+8>>1]&8192))e=lh(a,d)|0;else e=c[(e&p)+16>>2]|0;return e|0}function Wd(a,b){a=a|0;b=b|0;var d=0;d=c[((c[(a&p)+12>>2]|0)&p)+204>>2]|0;a:do if(!d)d=0;else{a=c[(a&p)+16>>2]|0;while(1){if((c[(d&p)>>2]|0)==(a|0)?(c[(d&p)+4>>2]|0)==(b|0):0)break;d=c[(d&p)+16>>2]|0;if(!d){d=0;break a}}d=c[(d&p)+8>>2]|0}while(0);return d|0}function Xd(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0;h=c[(b&p)+12>>2]|0;do if((d|0)<0)k=14;else{j=h+204|0;g=c[(j&p)>>2]|0;a:do if(g){i=c[(b&p)+16>>2]|0;while(1){if((c[(g&p)>>2]|0)==(i|0)?(c[(g&p)+4>>2]|0)==(d|0):0)break;g=c[(g&p)+16>>2]|0;if(!g){k=8;break a}}if(g){h=c[(g&p)+12>>2]|0;if(h)cc[h&31](c[(g&p)+8>>2]|0)}else k=8}else k=8;while(0);if((k|0)==8){g=mh(c[(h&p)>>2]|0,20,0)|0;if(!g){k=14;break}h=g+0|0;i=h+16|0;do{a[(h&n)>>0]=0;h=h+1|0}while((h|0)<(i|0));c[(g&p)>>2]=c[(b&p)+16>>2];c[(g&p)+4>>2]=d;c[(g&p)+16>>2]=c[(j&p)>>2];c[(j&p)>>2]=g;h=b+25|0;if(!(a[(h&n)>>0]|0)){c[(b&p)+20>>2]=0;a[(h&n)>>0]=1}}c[(g&p)+8>>2]=e;c[(g&p)+12>>2]=f}while(0);if((k|0)==14?(f|0)!=0:0)cc[f&31](e);return}function Yd(a){a=a|0;return c[((c[(a&p)+8>>2]|0)&p)+12>>2]|0}function Zd(a){a=a|0;if(!a)a=0;else a=e[(a&o)+84>>1]|0;return a|0}function _d(a){a=a|0;if((a|0)!=0?(c[(a&p)+20>>2]|0)!=0:0)a=e[(a&o)+84>>1]|0;else a=0;return a|0}function $d(a,b){a=a|0;b=b|0;var d=0;b=pd(nh(a,b)|0)|0;if(a){d=a+80|0;c[(d&p)>>2]=Og(c[(a&p)>>2]|0,c[(d&p)>>2]|0)|0}return b|0}function ae(a,b){a=a|0;b=b|0;var d=0;b=Tg(nh(a,b)|0,1)|0;if(a){d=a+80|0;c[(d&p)>>2]=Og(c[(a&p)>>2]|0,c[(d&p)>>2]|0)|0}return b|0}function be(a,b){a=a|0;b=b|0;var d=0;b=Tg(nh(a,b)|0,2)|0;if(a){d=a+80|0;c[(d&p)>>2]=Og(c[(a&p)>>2]|0,c[(d&p)>>2]|0)|0}return b|0}function ce(a,b){a=a|0;b=b|0;var d=0.0;d=+Ug(nh(a,b)|0);if(a){b=a+80|0;c[(b&p)>>2]=Og(c[(a&p)>>2]|0,c[(b&p)>>2]|0)|0}return +d}function de(a,b){a=a|0;b=b|0;var d=0;b=Vg(nh(a,b)|0)|0;if(a){d=a+80|0;c[(d&p)>>2]=Og(c[(a&p)>>2]|0,c[(d&p)>>2]|0)|0}return b|0}function ee(a,b){a=a|0;b=b|0;var d=0,e=0;b=Vg(nh(a,b)|0)|0;d=G;if(a){e=a+80|0;c[(e&p)>>2]=Og(c[(a&p)>>2]|0,c[(e&p)>>2]|0)|0}G=d;return b|0}function fe(a,b){a=a|0;b=b|0;var d=0;b=Sg(nh(a,b)|0,1)|0;if(a){d=a+80|0;c[(d&p)>>2]=Og(c[(a&p)>>2]|0,c[(d&p)>>2]|0)|0}return b|0}function ge(a,d){a=a|0;d=d|0;var f=0,g=0;d=nh(a,d)|0;f=d+8|0;g=e[(f&o)>>1]|0;if(g&2048)b[(f&o)>>1]=g&59391|4096;if(a){f=a+80|0;c[(f&p)>>2]=Og(c[(a&p)>>2]|0,c[(f&p)>>2]|0)|0}return d|0}function he(a,b){a=a|0;b=b|0;var d=0;b=Sg(nh(a,b)|0,2)|0;if(a){d=a+80|0;c[(d&p)>>2]=Og(c[(a&p)>>2]|0,c[(d&p)>>2]|0)|0}return b|0}function ie(a,b){a=a|0;b=b|0;var f=0;b=d[((e[((nh(a,b)|0)&o)+8>>1]|0)&31&n)+10064>>0]|0;if(a){f=a+80|0;c[(f&p)>>2]=Og(c[(a&p)>>2]|0,c[(f&p)>>2]|0)|0}return b|0}function je(b,d){b=b|0;d=d|0;var f=0,g=0;g=c[(b&p)>>2]|0;if(!b)f=0;else f=e[(b&o)+84>>1]|0;if((f|0)>(d|0)&(d|0)>-1){d=Sg((c[(b&p)+16>>2]|0)+(d*40|0)|0,1)|0;f=g+65|0;if(a[(f&n)>>0]|0){a[(f&n)>>0]=0;d=0}}else d=0;return d|0}function ke(b,d){b=b|0;d=d|0;var f=0,g=0;g=c[(b&p)>>2]|0;if(!b)f=0;else f=e[(b&o)+84>>1]|0;if((f|0)>(d|0)&(d|0)>-1){d=Sg((c[(b&p)+16>>2]|0)+(d*40|0)|0,2)|0;f=g+65|0;if(a[(f&n)>>0]|0){a[(f&n)>>0]=0;d=0}}else d=0;return d|0}function le(b,d){b=b|0;d=d|0;var f=0,g=0;g=c[(b&p)>>2]|0;if(!b)f=0;else f=e[(b&o)+84>>1]|0;if((f|0)>(d|0)&(d|0)>-1){d=Sg((c[(b&p)+16>>2]|0)+((f+d|0)*40|0)|0,1)|0;f=g+65|0;if(a[(f&n)>>0]|0){a[(f&n)>>0]=0;d=0}}else d=0;return d|0}function me(b,d){b=b|0;d=d|0;var f=0,g=0;g=c[(b&p)>>2]|0;if(!b)f=0;else f=e[(b&o)+84>>1]|0;if((f|0)>(d|0)&(d|0)>-1){d=Sg((c[(b&p)+16>>2]|0)+((f+d|0)*40|0)|0,2)|0;f=g+65|0;if(a[(f&n)>>0]|0){a[(f&n)>>0]=0;d=0}}else d=0;return d|0}function ne(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;return oh(a,b,c,d,e,0)|0}function oe(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;if(e>>>0>0|(e|0)==0&d>>>0>2147483647){d=f;if((d|0)==0|(d|0)==-1)d=18;else{cc[f&31](c);d=18}}else d=oh(a,b,c,d,f,0)|0;return d|0}function pe(a,b,d){a=a|0;b=b|0;d=+d;var e=0;e=ph(a,b)|0;if(!e)Yg((c[(a&p)+60>>2]|0)+((b+-1|0)*40|0)|0,d);return e|0}function qe(a,b,c){a=a|0;b=b|0;c=c|0;return re(a,b,c,((c|0)<0)<<31>>31)|0}function re(a,d,e,f){a=a|0;d=d|0;e=e|0;f=f|0;var g=0,h=0;g=ph(a,d)|0;do if(!g){d=d+-1|0;h=c[(a&p)+60>>2]|0;a=h+(d*40|0)|0;d=h+(d*40|0)+8|0;if(!(b[(d&o)>>1]&9312)){c[(a&p)>>2]=e;c[(a&p)+4>>2]=f;b[(d&o)>>1]=4;break}else{Zg(a,e,f);break}}while(0);return g|0}function se(a,b){a=a|0;b=b|0;return ph(a,b)|0}function te(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;return oh(a,b,c,d,e,1)|0}function ue(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;if(e>>>0>0|(e|0)==0&d>>>0>2147483647){d=f;if((d|0)==0|(d|0)==-1)d=18;else{cc[f&31](c);d=18}}else d=oh(a,b,c,d,f,g<<24>>24==4?2:g)|0;return d|0}function ve(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;return oh(a,b,c,d,e,2)|0}function we(e,f,g){e=e|0;f=f|0;g=g|0;var i=0,j=0;i=b[(g&o)+8>>1]|0;j=d[(i&31&n)+10064>>0]|0;do if((j|0)==3)i=oh(e,f,c[(g&p)+16>>2]|0,c[(g&p)+12>>2]|0,-1,a[(g&n)+10>>0]|0)|0;else if((j|0)==1){i=g;i=re(e,f,c[(i&p)>>2]|0,c[(i&p)+4>>2]|0)|0}else if((j|0)==2)i=pe(e,f,+h[(g&q)>>3])|0;else if((j|0)==4)if(!(i&16384)){i=oh(e,f,c[(g&p)+16>>2]|0,c[(g&p)+12>>2]|0,-1,0)|0;break}else{i=xe(e,f,c[(g&p)>>2]|0)|0;break}else i=ph(e,f)|0;while(0);return i|0}function xe(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;e=ph(a,b)|0;if(!e)$g((c[(a&p)+60>>2]|0)+((b+-1|0)*40|0)|0,d);return e|0}function ye(a){a=a|0;if(!a)a=0;else a=b[(a&o)+68>>1]|0;return a|0}function ze(a,d){a=a|0;d=d|0;if(!((a|0)==0|(d|0)<1)?(b[(a&o)+70>>1]|0)>=(d|0):0)d=c[((c[(a&p)+64>>2]|0)+(d+-1<<2)&p)>>2]|0;else d=0;return d|0}function Ae(b,c){b=b|0;c=c|0;var d=0;if(!c)d=0;else{d=c;while(1)if(!(a[(d&n)>>0]|0))break;else d=d+1|0;d=d-c&1073741823}return qh(b,c,d)|0}function Be(a,d){a=a|0;d=d|0;var e=0,f=0;if((b[(a&o)+68>>1]|0)==(b[(d&o)+68>>1]|0)){f=d+88|0;e=b[(f&o)>>1]|0;if((e&256)!=0?(c[(d&p)+188>>2]|0)!=0:0)b[(f&o)>>1]=e|8;e=a+88|0;f=b[(e&o)>>1]|0;if((f&256)!=0?(c[(a&p)+188>>2]|0)!=0:0)b[(e&o)>>1]=f|8;jh(a,d);e=0}else e=1;return e|0}function Ce(a){a=a|0;if(!a)a=0;else a=c[(a&p)>>2]|0;return a|0}function De(a){a=a|0;if(!a)a=1;else a=(e[(a&o)+88>>1]|0)>>>6&1;return a|0}function Ee(a){a=a|0;if((a|0)!=0?(c[(a&p)+76>>2]|0)>-1:0)a=(c[(a&p)+40>>2]|0)==-1108210269;else a=0;return a&1|0}function Fe(a,b){a=a|0;b=b|0;if(!b)a=a+4|0;else a=b+52|0;return c[(a&p)>>2]|0}function Ge(a,b,d){a=a|0;b=b|0;d=d|0;a=a+(b<<2)+108|0;b=c[(a&p)>>2]|0;if(d)c[(a&p)>>2]=0;return b|0}function He(a){a=a|0;var b=0,c=0,f=0;c=a+8|0;f=e[(c&o)>>1]|0;b=d[(f&31&n)+10064>>0]|0;if((f&15|0)==2){rh(a,0);b=d[((e[(c&o)>>1]|0)&31&n)+10064>>0]|0}return b|0}function Ie(d,e,f,g,h,k,l,m){d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;m=m|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,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;U=i;i=i+16|0;if((i|0)>=(j|0))fa();S=U;T=U+4|0;c[(T&p)>>2]=0;c[(m&p)>>2]=0;N=(l|0)!=0;O=N&1;Q=mh(d,28,0)|0;do if(Q){l=Q+0|0;s=l+28|0;do{a[(l&n)>>0]=0;l=l+1|0}while((l|0)<(s|0));s=mh(d,536,0)|0;if(s){K=d+20|0;L=d+16|0;B=d+24|0;l=Q+20|0;C=Q+12|0;D=Q+24|0;E=d+65|0;F=O^3;G=O|2;H=s+440|0;I=s+72|0;J=s+68|0;r=0;M=1;q=0;while(1){fw(s|0,0,536)|0;c[(s&p)>>2]=d;mg(d,r);c[(T&p)>>2]=0;r=c[(K&p)>>2]|0;if((r|0)>0){t=c[(L&p)>>2]|0;v=0;do{u=c[(t+(v<<4)&p)+4>>2]|0;if(u)c[((c[(u&p)+4>>2]|0)&p)+4>>2]=c[(u&p)>>2];v=v+1|0}while((v|0)!=(r|0))}A=sh(s,0,f,e)|0;if(!A)break;r=a[(A&n)+44>>0]|0;if(r&16){R=11;break}if(r&32){R=13;break}if(c[(A&p)+12>>2]|0){R=17;break}z=A+38|0;w=b[(z&o)>>1]|0;a:do if(w<<16>>16>0){v=c[(A&p)+4>>2]|0;u=w<<16>>16;r=0;while(1){t=r+1|0;if(!(dd(c[(v+(r*24|0)&p)>>2]|0,g)|0)){t=r;break a}if((t|0)<(u|0))r=t;else break}}else t=0;while(0);if((t|0)==(w<<16>>16|0)){R=23;break}if(N){if((c[(B&p)>>2]&524288|0)!=0?(P=c[(A&p)+16>>2]|0,(P|0)!=0):0){x=P;r=0;do{w=c[(x&p)+20>>2]|0;if((w|0)>0){v=0;do{r=(c[(x+(v<<3)&p)+36>>2]|0)==(t|0)?10280:r;v=v+1|0}while((v|0)<(w|0))}x=c[(x&p)+4>>2]|0}while((x|0)!=0)}else r=0;v=c[(A&p)+8>>2]|0;if(v)do{u=b[(v&o)+46>>1]|0;if(u<<16>>16){y=c[(v&p)+4>>2]|0;w=u&65535;x=0;do{r=(b[(y+(x<<1)&o)>>1]|0)==(t|0)?10296:r;x=x+1|0}while((x|0)<(w|0))}v=c[(v&p)+20>>2]|0}while((v|0)!=0);if(r){R=36;break}}y=vh(s)|0;c[(l&p)>>2]=y;if(y){x=c[(A&p)+68>>2]|0;b:do if(x){w=c[(K&p)>>2]|0;if((w|0)>0){v=c[(L&p)>>2]|0;r=0;while(1){u=r+1|0;if((c[(v+(r<<4)&p)+12>>2]|0)==(x|0)){u=r;break b}if((u|0)<(w|0))r=u;else break}}else u=0}else u=-1e6;while(0);r=c[(x&p)+4>>2]|0;xh(y,wh(y,4,u,O,c[(x&p)>>2]|0)|0,r,-14);r=y+4|0;v=c[(r&p)>>2]|0;w=y+32|0;if(v)a[(v+(((c[(w&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=1;yh(y,10,10120)|0;v=y+96|0;c[(v&p)>>2]=c[(v&p)>>2]|1<>2]|0)>>>0>1){x=c[(r&p)>>2]|0;c[(x&p)+24>>2]=u;v=A+32|0;c[(x&p)+28>>2]=c[(v&p)>>2];c[((c[(r&p)>>2]|0)&p)+32>>2]=O}else v=A+32|0;xh(y,1,c[(A&p)>>2]|0,0);zh(y,F);if((c[(w&p)>>2]|0)>>>0>G>>>0){c[((c[(r&p)>>2]|0)+(G*20|0)&p)+8>>2]=c[(v&p)>>2];c[((c[(r&p)>>2]|0)+(G*20|0)&p)+12>>2]=u}xh(y,G,(b[(z&o)>>1]|0)+1|0,-14);if((c[(w&p)>>2]|0)>>>0>6)c[((c[(r&p)>>2]|0)&p)+128>>2]=b[(z&o)>>1];if(!(a[(E&n)>>0]|0)){c[(H&p)>>2]=1;c[(I&p)>>2]=1;c[(J&p)>>2]=1;Ah(y,s)}}c[(Q&p)>>2]=O;c[(C&p)>>2]=t;c[(D&p)>>2]=d;if(a[(E&n)>>0]|0){R=57;break}re(c[(l&p)>>2]|0,1,h,k)|0;q=Bh(Q,h,k,T)|0;if(!((M|0)<50&(q|0)==17)){R=57;break}r=c[(T&p)>>2]|0;M=M+1|0;q=17}if((R|0)==11){c[(S&p)>>2]=f;th(s,10160,S)}else if((R|0)==13){c[(S&p)>>2]=f;th(s,10192,S)}else if((R|0)==17){c[(S&p)>>2]=f;th(s,10232,S)}else if((R|0)==23){mg(d,0);c[(S&p)>>2]=g;c[(T&p)>>2]=uh(d,10256,S)|0;q=1;R=62;break}else if((R|0)==36){mg(d,0);c[(S&p)>>2]=r;c[(T&p)>>2]=uh(d,10304,S)|0;q=1;R=62;break}else if((R|0)==57)if(!q){q=1;r=s;R=58;break}else{r=s;R=61;break}r=s+4|0;if(!(c[(r&p)>>2]|0)){q=1;R=62}else{mg(d,0);c[(T&p)>>2]=c[(r&p)>>2];c[(r&p)>>2]=0;q=1;R=62}}else{q=1;r=s;R=58}}else{q=0;r=0;R=58}while(0);do if((R|0)==58)if(a[(d&n)+65>>0]|0)if(q){q=0;R=61;break}else{q=0;R=64;break}else{c[(m&p)>>2]=Q;q=0;break}while(0);if((R|0)==61){l=Q+20|0;s=r;R=62}if((R|0)==62){r=c[(l&p)>>2]|0;if(!r){r=s;R=64}else{Ng(r)|0;r=s;R=64}}if((R|0)==64)mg(d,Q);K=c[(T&p)>>2]|0;c[(S&p)>>2]=K;ug(d,q,(K|0)!=0?10344:0,S);mg(d,K);Ch(r);mg(d,r);K=Og(d,q)|0;i=U;return K|0}function Je(a){a=a|0;var b=0,d=0;if(!a)a=0;else{d=c[(a&p)+24>>2]|0;b=md(c[(a&p)+20>>2]|0)|0;mg(d,a);a=b}return a|0}function Ke(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return Eh(a,b,c,d,18)|0}function Le(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return Eh(a,b,c,d,19)|0}function Me(a){a=a|0;if((a|0)!=0?(c[(a&p)+20>>2]|0)!=0:0)a=c[(a&p)+4>>2]|0;else a=0;return a|0}function Ne(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0;h=i;i=i+16|0;if((i|0)>=(j|0))fa();e=h;f=h+8|0;if(!a){c[(e&p)>>2]=77720;c[(e&p)+4>>2]=10788;bd(21,13648,e);b=21}else{g=c[(a&p)+24>>2]|0;if(c[(a&p)+20>>2]|0){b=Bh(a,b,d,f)|0;if(!b)b=0;else{d=c[(f&p)>>2]|0;c[(e&p)>>2]=d;ug(g,b,(d|0)!=0?10344:0,e);mg(g,d)}}else b=4;b=Og(g,b)|0}i=h;return b|0}function Oe(a,d,e){a=a|0;d=d|0;e=e|0;c[(a&p)+284>>2]=d;c[(a&p)+288>>2]=e;a=c[(a&p)+4>>2]|0;if(a)do{e=a+88|0;b[(e&o)>>1]=b[(e&o)>>1]|8;a=c[(a&p)+52>>2]|0}while((a|0)!=0);return 0}function Pe(a,b){a=a|0;b=b|0;return (Gh(a,b,10352,0)|0)==0|0}function Qe(e,f,g,h,k){e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;var l=0,m=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;E=i;i=i+16|0;if((i|0)>=(j|0))fa();m=E;A=E+12|0;B=E+8|0;c[(B&p)>>2]=0;do if(Hh(e)|0){l=(f|0)==0?10360:f;C=e+52|0;c[(C&p)>>2]=0;D=e+236|0;m=c[(D&p)>>2]|0;do if(m){f=m+8|0;if(!(b[(f&o)>>1]&9312)){b[(f&o)>>1]=1;break}else{vg(m);break}}while(0);x=(g|0)==0;y=e+24|0;m=0;a:while(1){do{if(m){q=39;break a}if(!(a[(l&n)>>0]|0)){m=0;q=39;break a}c[(B&p)>>2]=0;m=ih(e,l,-1,1,0,B,A)|0}while((m|0)!=0);l=c[(B&p)>>2]|0;if(!l){l=c[(A&p)>>2]|0;m=0;continue}w=b[(l&o)+84>>1]|0;u=w&65535;v=u<<3|1;w=w<<16>>16==0;f=0;q=0;r=0;b:do{m=Sd(l)|0;do if(!x){s=(m|0)==100;if(!s){if((m|0)!=101|(r|0)!=0)break b;if(!(c[(y&p)>>2]&256)){r=0;break}}if(!r){f=mh(e,v,0)|0;if(!f){f=0;q=40;break a}fw(f|0,0,v|0)|0;if(w)t=1;else{r=0;do{c[(f+(r<<2)&p)>>2]=je(l,r)|0;r=r+1|0}while((r|0)<(u|0));t=1}}else t=r;c:do if(s){q=f+(u<<2)|0;if(!w){r=0;while(1){s=fe(l,r)|0;c[(f+(r+u<<2)&p)>>2]=s;if((s|0)==0?(z=c[(B&p)>>2]|0,(ie(z,r)|0)!=5):0){m=z;q=27;break a}r=r+1|0;if((r|0)>=(u|0))break c;l=c[(B&p)>>2]|0}}}while(0);if(!(pc[g&31](h,u,q,f)|0))r=t;else{l=f;q=31;break a}}while(0);l=c[(B&p)>>2]|0}while((m|0)==100);m=Ng(l)|0;c[(B&p)>>2]=0;l=c[(A&p)>>2]|0;while(1)if(!(a[((d[(l&n)>>0]|0)&n)+10368>>0]&1))break;else l=l+1|0;mg(e,f)}do if((q|0)==27){a[(e&n)+65>>0]=1;l=m;m=100;q=40}else if((q|0)==31){Ng(c[(B&p)>>2]|0)|0;c[(B&p)>>2]=0;c[(C&p)>>2]=4;m=c[(D&p)>>2]|0;if(m){f=m+8|0;if(!(b[(f&o)>>1]&9312)){b[(f&o)>>1]=1;f=l;m=4;break}else{vg(m);f=l;m=4;break}}else{f=l;m=4}}else if((q|0)==39){l=c[(B&p)>>2]|0;f=0;q=40}while(0);if((q|0)==40)if(l)Ng(l)|0;mg(e,f);l=Og(e,m)|0;f=(k|0)!=0;if(!((l|0)!=0&f)){if(!f)break;c[(k&p)>>2]=0;break}f=Se(e)|0;if(!f)f=1;else{m=f;while(1)if(!(a[(m&n)>>0]|0))break;else m=m+1|0;f=(m-f&1073741823)+1|0}m=qg(f,((f|0)<0)<<31>>31)|0;c[(k&p)>>2]=m;if(m){kw(m|0,Se(e)|0,f|0)|0;break}c[(C&p)>>2]=7;l=c[(D&p)>>2]|0;if(l){f=l+8|0;if(!(b[(f&o)>>1]&9312)){b[(f&o)>>1]=1;l=7;break}else{vg(l);l=7;break}}else l=7}else{c[(m&p)>>2]=101334;c[(m&p)+4>>2]=10788;bd(21,13648,m);l=21}while(0);i=E;return l|0}function Re(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;return ih(a,b,c,1,0,d,e)|0}function Se(b){b=b|0;var d=0,e=0,f=0;e=i;i=i+16|0;if((i|0)>=(j|0))fa();d=e;do if(b){f=c[(b&p)+76>>2]|0;if(!((f|0)==1266094736|(f|0)==-1607883113|(f|0)==-264537850)){c[(d&p)>>2]=15248;bd(21,15256,d);c[(d&p)>>2]=129635;c[(d&p)+4>>2]=10788;bd(21,13648,d);d=16120;break}if(!(a[(b&n)+65>>0]|0)){d=Sg(c[(b&p)+236>>2]|0,1)|0;if(!d){d=c[(b&p)+52>>2]|0;if((d|0)!=516){d=d&255;if(d>>>0>26|(d|0)==2)d=16328;else d=c[(d<<2&p)+15488>>2]|0}else d=16344}}else d=15776}else d=15776;while(0);i=e;return d|0}function Te(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,o=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0;w=i;i=i+16|0;if((i|0)>=(j|0))fa();u=w;v=w+8|0;t=c[(b&p)>>2]|0;c[(v&p)>>2]=0;m=(d|0)==0;if(m)g=0;else{l=d;while(1)if(!(a[(l&n)>>0]|0))break;else l=l+1|0;g=l-d&1073741823}r=g+300|0;q=(f|0)!=0;if(q)c[(f&p)>>2]=0;do if(!(c[(b&p)+24>>2]&4194304))if(q){c[(f&p)>>2]=_c(25216,u)|0;g=1}else g=1;else{o=(e|0)!=0?e:41192;k=t+40|0;l=rc[c[(k&p)>>2]&127](t,d)|0;if(!l){c[(u&p)>>2]=d;c[(u&p)+4>>2]=41184;h=_c(27824,u)|0;if(!h){g=7;break}l=rc[c[(k&p)>>2]&127](t,h)|0;Wc(h);if(!l){if(!q){g=1;break}l=Tc(r)|0;c[(v&p)>>2]=l;c[(f&p)>>2]=l;if(!l){g=1;break}c[(u&p)>>2]=d;ad(r,l,41216,u)|0;mc[c[(t&p)+44>>2]&63](t,g+299|0,l);g=1;break}else s=l}else s=l;g=t+48|0;l=ac[c[(g&p)>>2]&63](t,s,o)|0;if((l|0)==0&(e|0)==0){if(m)l=0;else{l=d;while(1)if(!(a[(l&n)>>0]|0))break;else l=l+1|0;l=l-d&1073741823}e=Tc(l+30|0)|0;if(!e){jc[c[(t&p)+52>>2]&15](t,s);g=7;break}o=e;m=o;a[(m&n)>>0]=115;a[(m&n)+1>>0]=113;a[(m&n)+2>>0]=108;a[(m&n)+3>>0]=105;o=o+4|0;a[(o&n)>>0]=116;a[(o&n)+1>>0]=101;a[(o&n)+2>>0]=51;a[(o&n)+3>>0]=95;while(1){k=l+-1|0;if((l|0)<=0)break;if((a[(d+k&n)>>0]|0)==47)break;else l=k}h=(Fc(d+l|0,41256,3)|0)==0;k=8;h=h?l+3|0:l;while(1){l=a[(d+h&n)>>0]|0;if(l<<24>>24==0|l<<24>>24==46){l=k;break}if(!(a[(l&255&n)+10368>>0]&2))l=k;else{a[(e+k&n)>>0]=a[(l<<24>>24&n)+9328>>0]|0;l=k+1|0}k=l;h=h+1|0}l=e+l|0;a[(l&n)>>0]=a[41264]|0;a[(l&n)+1>>0]=a[41265]|0;a[(l&n)+2>>0]=a[41266]|0;a[(l&n)+3>>0]=a[41267]|0;a[(l&n)+4>>0]=a[41268]|0;a[(l&n)+5>>0]=a[41269]|0;l=ac[c[(g&p)>>2]&63](t,s,e)|0;g=e;h=e}else{g=0;h=o}if(!l){if(q){if(!h)l=0;else{l=h;while(1)if(!(a[(l&n)>>0]|0))break;else l=l+1|0;l=l-h&1073741823}l=l+r|0;k=Tc(l)|0;c[(v&p)>>2]=k;c[(f&p)>>2]=k;if(k){c[(u&p)>>2]=h;c[(u&p)+4>>2]=d;ad(l,k,41272,u)|0;mc[c[(t&p)+44>>2]&63](t,l+-1|0,k)}}jc[c[(t&p)+52>>2]&15](t,s);Wc(g);g=1;break}Wc(g);if(ac[l&63](b,v,13776)|0){if(q){c[(u&p)>>2]=c[(v&p)>>2];c[(f&p)>>2]=_c(41320,u)|0}Wc(c[(v&p)>>2]|0);jc[c[(t&p)+52>>2]&15](t,s);g=1;break}k=b+168|0;g=(c[(k&p)>>2]<<2)+4|0;l=mh(b,g,0)|0;if(!l)g=7;else{fw(l|0,0,g|0)|0;g=c[(k&p)>>2]|0;h=b+172|0;if((g|0)>0)kw(l|0,c[(h&p)>>2]|0,g<<2|0)|0;mg(b,c[(h&p)>>2]|0);c[(h&p)>>2]=l;g=c[(k&p)>>2]|0;c[(k&p)>>2]=g+1;c[(l+(g<<2)&p)>>2]=s;g=0}}while(0);s=Og(b,g)|0;i=w;return s|0}function Ue(a){a=a|0;var b=0,d=0,e=0,f=0;b=Lc()|0;if(!b){f=c[2656]|0;a:do if((f|0)>0){d=c[2658]|0;e=0;while(1){b=e+1|0;if((c[(d+(e<<2)&p)>>2]|0)==(a|0)){b=e;break a}if((b|0)<(f|0))e=b;else break}}else b=0;while(0);if((b|0)==(f|0)){b=Xc(c[2658]|0,(f<<2)+4|0)|0;if(!b)b=7;else{c[2658]=b;d=c[2656]|0;c[(b+(d<<2)&p)>>2]=a;c[2656]=d+1;b=0}}else b=0}return b|0}function Ve(a){a=a|0;var b=0,d=0,e=0,f=0,g=0;e=c[2656]|0;f=c[2658]|0;d=e;while(1){if((d|0)<=0){b=0;break}d=d+-1|0;b=f+(d<<2)|0;if((c[(b&p)>>2]|0)==(a|0)){g=4;break}}if((g|0)==4){d=e+-1|0;c[2656]=d;c[(b&p)>>2]=c[(f+(d<<2)&p)>>2];b=1}return b|0}function We(){if(!(Lc()|0)){Wc(c[2658]|0);c[2658]=0;c[2656]=0}return}function Xe(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;return ih(a,b,c,0,0,d,e)|0}function Ye(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;return Ih(a,b,c,0,d,e)|0}function Ze(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;return Ih(a,b,c,1,d,e)|0}function _e(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,k=0,l=0,m=0,n=0,o=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0;w=i;i=i+32|0;if((i|0)>=(j|0))fa();n=w;r=w+4|0;c[(d&p)>>2]=0;s=(f|0)!=0;if(s)c[(f&p)>>2]=0;t=(e|0)!=0;if(t)c[(e&p)>>2]=0;l=(g|0)!=0;if(l)c[(g&p)>>2]=0;m=r+4|0;c[(m&p)>>2]=0;u=r+12|0;c[(u&p)>>2]=0;v=r+16|0;c[(v&p)>>2]=0;k=r+20|0;c[(k&p)>>2]=1;o=r+8|0;c[(o&p)>>2]=20;q=r+24|0;c[(q&p)>>2]=0;h=Tc(80)|0;c[(r&p)>>2]=h;a:do if(h){c[(h&p)>>2]=0;b=Qe(a,b,20,r,g)|0;c[(c[(r&p)>>2]&p)>>2]=c[(k&p)>>2];if((b&255|0)==4){$e((c[(r&p)>>2]|0)+4|0);b=c[(m&p)>>2]|0;if(b){if(l){Wc(c[(g&p)>>2]|0);c[(n&p)>>2]=c[(m&p)>>2];c[(g&p)>>2]=_c(10344,n)|0;b=c[(m&p)>>2]|0}Wc(b)}b=c[(q&p)>>2]|0;c[(a&p)+52>>2]=b;break}Wc(c[(m&p)>>2]|0);if(b){$e((c[(r&p)>>2]|0)+4|0);break}h=c[(k&p)>>2]|0;b=c[(r&p)>>2]|0;do if((c[(o&p)>>2]|0)>>>0>h>>>0){b=Xc(b,h<<2)|0;if(!b){$e((c[(r&p)>>2]|0)+4|0);c[(a&p)+52>>2]=7;b=7;break a}else{c[(r&p)>>2]=b;break}}while(0);c[(d&p)>>2]=b+4;if(s)c[(f&p)>>2]=c[(v&p)>>2];if(t){c[(e&p)>>2]=c[(u&p)>>2];b=0}else b=0}else{c[(a&p)+52>>2]=7;b=7}while(0);i=w;return b|0}function $e(a){a=a|0;var b=0,d=0,e=0,f=0;if(a){b=a+-4|0;e=c[(b&p)>>2]|0;d=e;if((e|0)>1){f=1;do{e=c[(a+(f+-1<<2)&p)>>2]|0;if(e)Wc(e);f=f+1|0}while((f|0)<(d|0))}Wc(b)}return}function af(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return Kh(a,b,c,d,0)|0}function bf(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;return Kh(a,b,c,d,e)|0}function cf(d,e){d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,q=0,r=0,s=0;s=i;i=i+16|0;if((i|0)>=(j|0))fa();r=s;g=s+8|0;c[(g&p)>>2]=0;h=d+324|0;f=c[(h&p)>>2]|0;if((f|0)!=0?(m=c[(f&p)+4>>2]|0,(m|0)!=0):0){q=mh(d,536,0)|0;if(!q)e=7;else{fw(q|0,0,536)|0;k=q+451|0;a[(k&n)>>0]=1;c[(q&p)>>2]=d;c[(q&p)+424>>2]=1;if(((((Lh(q,e,g)|0)==0?(l=c[(q&p)+484>>2]|0,(l|0)!=0):0)?(a[(d&n)+65>>0]|0)==0:0)?(c[(l&p)+12>>2]|0)==0:0)?(a[(l&n)+44>>0]&16)==0:0){f=m+4|0;if(!(c[(f&p)>>2]|0)){r=l+4|0;c[(f&p)>>2]=c[(r&p)>>2];l=l+38|0;b[(m&o)+38>>1]=b[(l&o)>>1]|0;b[(l&o)>>1]=0;c[(r&p)>>2]=0}c[((c[(h&p)>>2]|0)&p)+4>>2]=0;e=0}else{e=c[(g&p)>>2]|0;c[(r&p)>>2]=e;ug(d,1,(e|0)!=0?10344:0,r);mg(d,e);e=1}a[(k&n)>>0]=0;f=c[(q&p)+8>>2]|0;if(f)Ng(f)|0;kg(d,c[(q&p)+484>>2]|0);Ch(q);mg(d,q)}e=Og(d,e)|0}else{c[(d&p)+52>>2]=21;f=c[(d&p)+236>>2]|0;do if(f){e=f+8|0;if(!(b[(e&o)>>1]&9312)){b[(e&o)>>1]=1;break}else{vg(f);break}}while(0);c[(r&p)>>2]=114865;c[(r&p)+4>>2]=10788;bd(21,13648,r);e=21}i=s;return e|0}function df(a){a=a|0;return d[((d[(a&n)+69>>0]|0)+-1&n)+10640>>0]|0|0}function ef(d,e,f){d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0;l=i;i=i+32|0;if((i|0)>=(j|0))fa();h=l;g=l+8|0;c[(g&p)>>2]=f;do if((e|0)==1){e=c[(d&p)+324>>2]|0;if(!e){c[(h&p)>>2]=115248;c[(h&p)+4>>2]=10788;bd(21,13648,h);k=6;break}else{d=c[(g&p)>>2]|0;f=c[(d&p)>>2]|0;c[(g&p)>>2]=d+4;a[((c[(e&p)>>2]|0)&n)+16>>0]=f;e=0;break}}else{c[(h&p)>>2]=115256;c[(h&p)+4>>2]=10788;bd(21,13648,h);k=6}while(0);do if((k|0)==6){c[(d&p)+52>>2]=21;e=c[(d&p)+236>>2]|0;if(e){f=e+8|0;if(!(b[(f&o)>>1]&9312)){b[(f&o)>>1]=1;e=21;break}else{vg(e);e=21;break}}else e=21}while(0);i=l;return e|0}function ff(b){b=b|0;var c=0,e=0,f=0,g=0,h=0;c=a[(b&n)>>0]|0;a:do if(c<<24>>24){g=c;c=0;b:while(1){f=g<<24>>24;switch(f|0){case 45:{if((a[(b&n)+1>>0]|0)==45){e=g;while(1){f=e<<24>>24==0;g=b+1|0;if(!(e<<24>>24!=10&(f^1)))break;b=g;e=a[(g&n)>>0]|0}if(f){h=13;break b}else e=1}else e=2;break}case 59:{e=0;break}case 91:{do{b=b+1|0;f=a[(b&n)>>0]|0;e=f<<24>>24==0}while(f<<24>>24!=93&(e^1));if(e){c=0;break a}else e=2;break}case 39:case 34:case 96:{do{b=b+1|0;f=a[(b&n)>>0]|0;e=f<<24>>24==0}while(f<<24>>24!=g<<24>>24&(e^1));if(e){c=0;break a}else e=2;break}case 47:{if((a[(b&n)+1>>0]|0)==42){b=b+2|0;while(1){e=a[(b&n)>>0]|0;if(e<<24>>24==42){b=b+1|0;if((a[(b&n)>>0]|0)==47){e=1;break}else continue}else if(!(e<<24>>24)){c=0;break a}else{b=b+1|0;continue}}}else e=2;break}case 12:case 10:case 9:case 13:case 32:{e=1;break}default:if(!(a[(g&255&n)+10368>>0]&70))e=2;else{e=1;while(1)if(!(a[((d[(b+e&n)>>0]|0)&n)+10368>>0]&70)){g=e;break}else e=e+1|0;c:do switch(f|0){case 67:case 99:{if((g|0)==6?(Fc(b,10712,6)|0)==0:0){e=4;break c}e=2;break}case 69:case 101:{if((g|0)==3){if(!(Fc(b,10752,3)|0)){e=7;break c}}else if((g|0)==7?(Fc(b,10760,7)|0)==0:0){e=3;break c}e=2;break}case 84:case 116:{if((g|0)==7){if(!(Fc(b,10720,7)|0)){e=6;break c}}else if((g|0)==4){if(!(Fc(b,10728,4)|0)){e=5;break c}}else if((g|0)==9?(Fc(b,10736,9)|0)==0:0){e=5;break c}e=2;break}default:e=2}while(0);b=b+(g+-1)|0}}c=a[((e&255)+((c&255)<<3)&n)+10648>>0]|0;b=b+1|0;g=a[(b&n)>>0]|0;if(!(g<<24>>24)){h=35;break}}if((h|0)==13){c=c<<24>>24==1&1;break}else if((h|0)==35){c=c<<24>>24==1;h=36;break}}else{c=0;h=36}while(0);if((h|0)==36)c=c&1;return c|0}function gf(d){d=d|0;var e=0,f=0,g=0;e=Lc()|0;if(!e){f=qg(40,0)|0;if(f){e=f+0|0;g=e+40|0;do{a[(e&n)>>0]=0;e=e+1|0}while((e|0)<(g|0));b[(f&o)+8>>1]=1;c[(f&p)+32>>2]=0;Xg(f,d,-1,2,0)|0}e=Sg(f,1)|0;if(!e)e=7;else e=(ff(e)|0)&255;Mh(f)}return e|0}function hf(){return 8632}function jf(){return 10768}function kf(){return 3008009}function lf(){return 0}function mf(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;f=i;i=i+32|0;if((i|0)>=(j|0))fa();d=f;e=f+8|0;if(!(c[2243]|0)){c[(e&p)>>2]=b;do switch(a|0){case 22:{c[(e&p)>>2]=(c[(e&p)>>2]|0)+8;c[(e&p)>>2]=(c[(e&p)>>2]|0)+8;c[2230]=0;c[2231]=0;c[2232]=0;c[2233]=0;d=0;break}case 25:{a=c[(e&p)>>2]|0;d=c[(a&p)>>2]|0;c[(e&p)>>2]=a+4;c[2242]=d;d=0;break}case 19:{if(!(c[2214]|0)){c[(d&p)>>2]=16440;mf(18,d)|0}a=c[(e&p)>>2]|0;d=c[(a&p)>>2]|0;c[(e&p)>>2]=a+4;d=d+0|0;a=8848|0;e=d+52|0;do{c[(d&p)>>2]=c[(a&p)>>2];d=d+4|0;a=a+4|0}while((d|0)<(e|0));d=0;break}case 18:{d=c[(e&p)>>2]|0;a=c[(d&p)>>2]|0;c[(e&p)>>2]=d+4;d=8848|0;a=a+0|0;e=d+52|0;do{c[(d&p)>>2]=c[(a&p)>>2];d=d+4|0;a=a+4|0}while((d|0)<(e|0));d=0;break}case 20:{a=c[(e&p)>>2]|0;d=c[(a&p)>>2]|0;c[(e&p)>>2]=a+4;c[2190]=d;d=0;break}case 13:{d=c[(e&p)>>2]|0;a=c[(d&p)>>2]|0;c[(e&p)>>2]=d+4;c[2193]=a;a=c[(e&p)>>2]|0;d=c[(a&p)>>2]|0;c[(e&p)>>2]=a+4;c[2194]=d;d=0;break}case 17:{a=c[(e&p)>>2]|0;d=c[(a&p)>>2]|0;c[(e&p)>>2]=a+4;c[2189]=d;d=0;break}case 15:{d=1;break}case 6:{a=c[(e&p)>>2]|0;d=c[(a&p)>>2]|0;c[(e&p)>>2]=a+4;c[2234]=d;d=c[(e&p)>>2]|0;a=c[(d&p)>>2]|0;c[(e&p)>>2]=d+4;c[2235]=a;a=c[(e&p)>>2]|0;d=c[(a&p)>>2]|0;c[(e&p)>>2]=a+4;c[2236]=d;d=0;break}case 24:{a=c[(e&p)>>2]|0;d=c[(a&p)>>2]|0;c[(e&p)>>2]=a+4;c[(d&p)>>2]=152;d=0;break}case 9:{a=c[(e&p)>>2]|0;d=c[(a&p)>>2]|0;c[(e&p)>>2]=a+4;c[2186]=d;d=0;break}case 7:{a=c[(e&p)>>2]|0;d=c[(a&p)>>2]|0;c[(e&p)>>2]=a+4;c[2237]=d;d=c[(e&p)>>2]|0;a=c[(d&p)>>2]|0;c[(e&p)>>2]=d+4;c[2238]=a;a=c[(e&p)>>2]|0;d=c[(a&p)>>2]|0;c[(e&p)>>2]=a+4;c[2239]=d;d=0;break}case 4:{a=c[(e&p)>>2]|0;d=c[(a&p)>>2]|0;c[(e&p)>>2]=a+4;c[2195]=c[(d&p)>>2];c[2196]=c[(d&p)+4>>2];c[2197]=c[(d&p)+8>>2];c[2198]=c[(d&p)+12>>2];c[2199]=c[(d&p)+16>>2];c[2200]=c[(d&p)+20>>2];c[2201]=c[(d&p)+24>>2];c[2202]=c[(d&p)+28>>2];d=0;break}case 16:{d=c[(e&p)>>2]|0;a=c[(d&p)>>2]|0;c[(e&p)>>2]=d+4;c[2250]=a;a=c[(e&p)>>2]|0;d=c[(a&p)>>2]|0;c[(e&p)>>2]=a+4;c[2251]=d;d=0;break}case 5:{if(!(c[2195]|0)){c[(d&p)>>2]=16496;mf(4,d)|0}a=c[(e&p)>>2]|0;d=c[(a&p)>>2]|0;c[(e&p)>>2]=a+4;c[(d&p)>>2]=c[2195];c[(d&p)+4>>2]=c[2196];c[(d&p)+8>>2]=c[2197];c[(d&p)+12>>2]=c[2198];c[(d&p)+16>>2]=c[2199];c[(d&p)+20>>2]=c[2200];c[(d&p)+24>>2]=c[2201];c[(d&p)+28>>2]=c[2202];d=0;break}case 14:{d=0;break}default:d=1}while(0)}else{c[(d&p)>>2]=127883;c[(d&p)+4>>2]=10788;bd(21,13648,d);d=21}i=f;return d|0}function nf(a){a=a|0;return c[(a&p)+12>>2]|0}function of(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0;h=a+20|0;b=c[(h&p)>>2]|0;f=(b|0)>0;if(f){e=c[(a&p)+16>>2]|0;g=0;do{d=c[(e+(g<<4)&p)+4>>2]|0;if(d)c[((c[(d&p)+4>>2]|0)&p)+4>>2]=c[(d&p)>>2];g=g+1|0}while((g|0)!=(b|0));if(f){f=a+16|0;e=0;do{d=c[((c[(f&p)>>2]|0)+(e<<4)&p)+4>>2]|0;if(d){cc[c[8896>>2]&31](c[((c[((c[(c[(d&p)+4>>2]&p)>>2]|0)&p)+204>>2]|0)&p)+40>>2]|0);b=c[(h&p)>>2]|0}e=e+1|0}while((e|0)<(b|0))}}return 0}function pf(a,d,e){a=a|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0;l=i;i=i+16|0;if((i|0)>=(j|0))fa();h=l;c[(h&p)>>2]=e;a:do if((d|0)!=1001){e=0;while(1){if((c[(e<<3&p)+10936>>2]|0)==(d|0))break;e=e+1|0;if(e>>>0>=2){f=1;break a}}g=c[(h&p)>>2]|0;d=c[(g&p)>>2]|0;c[(h&p)>>2]=g+4;g=c[(h&p)>>2]|0;k=c[(g&p)>>2]|0;c[(h&p)>>2]=g+4;h=a+24|0;g=c[(h&p)>>2]|0;if((d|0)<=0)if(!d){d=g&~c[(e<<3&p)+10940>>2];c[(h&p)>>2]=d}else d=g;else{d=c[(e<<3&p)+10940>>2]|g;c[(h&p)>>2]=d}if((g|0)!=(d|0)?(f=c[(a&p)+4>>2]|0,(f|0)!=0):0)do{d=f+88|0;b[(d&o)>>1]=b[(d&o)>>1]|8;f=c[(f&p)+52>>2]|0}while((f|0)!=0);if(!k)f=0;else{c[(k&p)>>2]=(c[(e<<3&p)+10940>>2]&c[(h&p)>>2]|0)!=0&1;f=0}}else{g=c[(h&p)>>2]|0;d=c[(g&p)>>2]|0;c[(h&p)>>2]=g+4;g=c[(h&p)>>2]|0;e=c[(g&p)>>2]|0;c[(h&p)>>2]=g+4;g=c[(h&p)>>2]|0;f=c[(g&p)>>2]|0;c[(h&p)>>2]=g+4;f=Nh(a,d,e,f)|0}while(0);i=l;return f|0}function qf(a){a=a|0;a=a+32|0;G=c[(a&p)+4>>2]|0;return c[(a&p)>>2]|0}function rf(a){a=a|0;return c[(a&p)+80>>2]|0}function sf(a){a=a|0;return c[(a&p)+84>>2]|0}function tf(a){a=a|0;return Oh(a,0)|0}function uf(a){a=a|0;return Oh(a,1)|0}function vf(a,b,d){a=a|0;b=b|0;d=d|0;c[(a&p)+444>>2]=b;c[(a&p)+448>>2]=d;c[(a&p)+452>>2]=0;c[(a&p)+492>>2]=0;return 0}function wf(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0;f=(b|0)>0;c[(a&p)+292>>2]=f?d:0;c[(a&p)+300>>2]=f?b:0;c[(a&p)+296>>2]=f?e:0;return}function xf(a,b){a=a|0;b=b|0;var d=0;d=(b|0)>0;c[(a&p)+444>>2]=d?74:0;c[(a&p)+448>>2]=d?a:0;c[(a&p)+452>>2]=0;c[(a&p)+492>>2]=d?b:0;return 0}function yf(a){a=a|0;c[(a&p)+240>>2]=1;return}function zf(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 Og(a,Qh(a,b,c,d,e,f,g,h,0)|0)|0}function Af(b,d,e,f,g,h,i,j,k){b=b|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;var l=0,m=0,o=0;do if(k){l=mh(b,12,0)|0;if(!l){cc[k&31](g);f=1;break}m=l;o=m;a[(o&n)>>0]=0;a[(o&n)+1>>0]=0;a[(o&n)+2>>0]=0;a[(o&n)+3>>0]=0;m=m+4|0;a[(m&n)>>0]=0;a[(m&n)+1>>0]=0;a[(m&n)+2>>0]=0;a[(m&n)+3>>0]=0;c[(l&p)+4>>2]=k;c[(l&p)+8>>2]=g;f=Qh(b,d,e,f,g,h,i,j,l)|0;if(!(c[(l&p)>>2]|0)){cc[k&31](g);mg(b,l)}}else f=Qh(b,d,e,f,g,h,i,j,0)|0;while(0);return Og(b,f)|0}function Bf(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;b=Rh(a,b,-1)|0;d=Qh(a,b,c,d,e,f,g,h,0)|0;mg(a,b);return Og(a,d)|0}function Cf(b,c,d){b=b|0;c=c|0;d=d|0;var e=0;if(!c)e=0;else{e=c;while(1)if(!(a[(e&n)>>0]|0))break;else e=e+1|0;e=e-c&1073741823}if(!(Sh(b,c,e,d,1,0)|0))e=Qh(b,c,d,1,0,57,0,0,0)|0;else e=0;return Og(b,e)|0}function Df(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;f=a+180|0;e=c[(f&p)>>2]|0;c[(a&p)+176>>2]=b;c[(f&p)>>2]=d;return e|0}function Ef(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;f=a+188|0;e=c[(f&p)>>2]|0;c[(a&p)+184>>2]=b;c[(f&p)>>2]=d;return e|0}function Ff(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;f=a+192|0;e=c[(f&p)>>2]|0;c[(a&p)+196>>2]=b;c[(f&p)>>2]=d;return e|0}function Gf(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;f=a+208|0;e=c[(f&p)>>2]|0;c[(a&p)+212>>2]=b;c[(f&p)>>2]=d;return e|0}function Hf(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;f=a+200|0;e=c[(f&p)>>2]|0;c[(a&p)+204>>2]=b;c[(f&p)>>2]=d;return e|0}function If(a,b){a=a|0;b=b|0;var d=0;if((b|0)>0)d=21;else{b=0;d=0}c[(a&p)+216>>2]=d;c[(a&p)+220>>2]=b;return 0}function Jf(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;f=a+220|0;e=c[(f&p)>>2]|0;c[(a&p)+216>>2]=b;c[(f&p)>>2]=d;return e|0}function Kf(d,e,f,g,h){d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var k=0,l=0,m=0,q=0;q=i;i=i+16|0;if((i|0)>=(j|0))fa();k=q;if(g)c[(g&p)>>2]=-1;if(h)c[(h&p)>>2]=-1;if(f>>>0>3)e=21;else{if((e|0)!=0?(a[(e&n)>>0]|0)!=0:0){l=Vh(d,e)|0;if((l|0)<0){c[(k&p)>>2]=e;ug(d,1,10952,k);e=1}else m=10}else{l=10;m=10}do if((m|0)==10){c[(d&p)+452>>2]=0;e=Wh(d,l,f,g,h)|0;c[(d&p)+52>>2]=e;k=c[(d&p)+236>>2]|0;if(k){l=k+8|0;if(!(b[(l&o)>>1]&9312)){b[(l&o)>>1]=1;break}else{vg(k);break}}}while(0);e=Og(d,e)|0}i=q;return e|0}function Lf(a,b){a=a|0;b=b|0;return Kf(a,b,0,0,0)|0}function Mf(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,k=0;k=i;i=i+16|0;if((i|0)>=(j|0))fa();g=k;do if(b){d=c[(b&p)+76>>2]|0;if(!((d|0)==1266094736|(d|0)==-1607883113|(d|0)==-264537850)){c[(g&p)>>2]=15248;bd(21,15256,g);d=11008;break}h=b+65|0;if(!(a[(h&n)>>0]|0)){f=b+236|0;d=Sg(c[(f&p)>>2]|0,2)|0;if(!d){e=c[(b&p)+52>>2]|0;if((e|0)!=516){d=e&255;if(d>>>0>26|(d|0)==2)d=16328;else d=c[(d<<2&p)+15488>>2]|0}else d=16344;ug(b,e,d,g);d=Sg(c[(f&p)>>2]|0,2)|0}a[(h&n)>>0]=0}else d=10976}else d=10976;while(0);i=k;return d|0}function Nf(b){b=b|0;var d=0,e=0,f=0;e=i;i=i+16|0;if((i|0)>=(j|0))fa();d=e;do if(b){f=c[(b&p)+76>>2]|0;if(!((f|0)==1266094736|(f|0)==-1607883113|(f|0)==-264537850)){c[(d&p)>>2]=15248;bd(21,15256,d);c[(d&p)>>2]=129704;c[(d&p)+4>>2]=10788;bd(21,13648,d);b=21;break}if(!(a[(b&n)+65>>0]|0))b=c[(b&p)+56>>2]&c[(b&p)+52>>2];else b=7}else b=7;while(0);i=e;return b|0}function Of(b){b=b|0;var d=0,e=0,f=0;e=i;i=i+16|0;if((i|0)>=(j|0))fa();d=e;do if(b){f=c[(b&p)+76>>2]|0;if(!((f|0)==1266094736|(f|0)==-1607883113|(f|0)==-264537850)){c[(d&p)>>2]=15248;bd(21,15256,d);c[(d&p)>>2]=129713;c[(d&p)+4>>2]=10788;bd(21,13648,d);b=21;break}if(!(a[(b&n)+65>>0]|0))b=c[(b&p)+52>>2]|0;else b=7}else b=7;while(0);i=e;return b|0}function Pf(a){a=a|0;if((a|0)!=516){a=a&255;if(a>>>0>26|(a|0)==2)a=16328;else a=c[(a<<2&p)+15488>>2]|0}else a=16344;return a|0}function Qf(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;if(b>>>0<=11){e=a+(b<<2)+88|0;a=c[(e&p)>>2]|0;if((d|0)>-1){b=c[(b<<2&p)+11088>>2]|0;c[(e&p)>>2]=(b|0)<(d|0)?b:d}}else a=-1;return a|0}function Rf(a,b){a=a|0;b=b|0;return Xh(a,b,6,0)|0}function Sf(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return Xh(a,b,c,d)|0}function Tf(d,e){d=d|0;e=e|0;var f=0,g=0,h=0;c[(e&p)>>2]=0;f=Lc()|0;if(!f){h=qg(40,0)|0;if(h){d=(d|0)==0?11136:d;f=h+0|0;g=f+40|0;do{a[(f&n)>>0]=0;f=f+1|0}while((f|0)<(g|0));b[(h&o)+8>>1]=1;c[(h&p)+32>>2]=0;Xg(h,d,-1,2,0)|0}d=Sg(h,1)|0;if(d){f=Xh(d,e,6,0)|0;if(!f){f=c[(e&p)>>2]|0;d=c[((c[(f&p)+16>>2]|0)&p)+12>>2]|0;if(!(b[(d&o)+78>>1]&1)){a[(f&n)+62>>0]=2;a[(d&n)+77>>0]=2;f=0}else f=0}}else f=7;Mh(h);f=f&255}return f|0}function Uf(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;return Og(a,Yh(a,b,c&255,d,e,0)|0)|0}function Vf(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 Og(a,Yh(a,b,c&255,d,e,f)|0)|0}function Wf(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;b=Rh(a,b,-1)|0;if(!b)b=0;else{c=Yh(a,b,c&255,d,e,0)|0;mg(a,b);b=c}return Og(a,b)|0}function Xf(a,b,d){a=a|0;b=b|0;d=d|0;c[(a&p)+224>>2]=d;c[(a&p)+228>>2]=0;c[(a&p)+232>>2]=b;return 0}function Yf(a,b,d){a=a|0;b=b|0;d=d|0;c[(a&p)+224>>2]=0;c[(a&p)+228>>2]=d;c[(a&p)+232>>2]=b;return 0}function Zf(a){a=a|0;return d[(a&n)+63>>0]|0|0}function _f(){return}function $f(d,e,f,g,h,k,l,m,q){d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;m=m|0;q=q|0;var r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0;C=i;i=i+16|0;if((i|0)>=(j|0))fa();A=C;B=C+8|0;c[(B&p)>>2]=0;s=c[(d&p)+20>>2]|0;if((s|0)>0){r=c[(d&p)+16>>2]|0;u=0;do{t=c[(r+(u<<4)&p)+4>>2]|0;if(t)c[((c[(t&p)+4>>2]|0)&p)+4>>2]=c[(t&p)>>2];u=u+1|0}while((u|0)!=(s|0))}r=Zh(d,B)|0;z=(r|0)!=0;a:do if((!z?(x=_h(d,f,e)|0,(x|0)!=0):0)?(c[(x&p)+12>>2]|0)==0:0){do if(g){w=b[(x&o)+38>>1]|0;b:do if(w<<16>>16>0){e=c[(x&p)+4>>2]|0;s=w<<16>>16;v=0;while(1){t=e+(v*24|0)|0;u=v+1|0;if(!(dd(c[(t&p)>>2]|0,g)|0)){u=v;break b}if((u|0)<(s|0))v=u;else break}}else{u=0;t=0}while(0);if((u|0)==(w<<16>>16|0)){if(a[(x&n)+44>>0]&32){e=0;w=0;x=0;t=0;v=0;u=0;break a}if(!($h(g)|0)){e=0;w=0;x=0;t=0;v=0;u=0;break a}y=b[(x&o)+36>>1]|0;s=y<<16>>16;if(y<<16>>16<=-1){e=0;v=0;s=1;y=0;u=11144;break}u=s;t=(c[(x&p)+4>>2]|0)+(s*24|0)|0}if(t){if((b[(x&o)+36>>1]|0)==(u|0))s=(a[(x&n)+44>>0]&8)!=0;else s=0;e=s&1;v=(a[(t&n)+20>>0]|0)!=0&1;s=a[(t&n)+23>>0]&1;y=c[(t&p)+16>>2]|0;u=c[(t&p)+12>>2]|0}else{e=0;v=0;s=1;y=0;u=11144}}else{e=0;v=0;s=1;y=0;u=11144}while(0);w=v;t=s;v=(y|0)==0?11152:y}else{e=0;w=0;x=0;t=0;v=0;u=0}while(0);if(h)c[(h&p)>>2]=u;if(k)c[(k&p)>>2]=v;if(l)c[(l&p)>>2]=w;if(m)c[(m&p)>>2]=t;if(q)c[(q&p)>>2]=e;s=c[(B&p)>>2]|0;if(!(z|(x|0)!=0)){mg(d,s);c[(A&p)>>2]=f;c[(A&p)+4>>2]=g;s=uh(d,11160,A)|0;c[(B&p)>>2]=s;r=1}c[(A&p)>>2]=s;ug(d,r,(s|0)!=0?10344:0,A);mg(d,c[(B&p)>>2]|0);z=Og(d,r)|0;i=C;return z|0}function ag(a){a=a|0;var b=0;if((Lc()|0)==0?(b=c[2254]|0,(b|0)!=0):0)a=(rc[c[(b&p)+60>>2]&127](b,a*1e3|0)|0)/1e3|0;else a=0;return a|0}function bg(a,b){a=a|0;b=b|0;c[(a&p)+56>>2]=(b|0)!=0?-1:255;return 0}function cg(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;b=ai(a,b)|0;do if(b){a=c[(b&p)+4>>2]|0;c[(a&p)+4>>2]=c[(b&p)>>2];a=c[((c[(a&p)>>2]|0)&p)+60>>2]|0;if((d|0)==7){c[(e&p)>>2]=a;b=0;break}b=c[(a&p)>>2]|0;if(!b)b=12;else b=ac[c[(b&p)+40>>2]&63](a,d,e)|0}else b=1;while(0);return b|0}function dg(e,f){e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0,v=0;t=i;i=i+32|0;if((i|0)>=(j|0))fa();s=t+24|0;h=t+8|0;g=t;c[(h&p)>>2]=f;do switch(e|0){case 11:{g=c[2514]|0;s=c[(h&p)>>2]|0;f=c[(s&p)>>2]|0;c[(h&p)>>2]=s+4;if(f)c[2514]=f;break}case 12:{c[(g&p)>>2]=0;g=c[(g&p)>>2]|0;break}case 13:{s=c[(h&p)>>2]|0;g=c[(s&p)>>2]|0;c[(h&p)>>2]=s+4;break}case 22:{g=10;break}case 5:{kw(12672,9064,259)|0;g=0;break}case 7:{if(!(Lc()|0)){a[9064]=0;g=0}else g=0;break}case 8:{r=c[(h&p)>>2]|0;q=c[(r&p)>>2]|0;c[(h&p)>>2]=r+4;r=c[(h&p)>>2]|0;k=c[(r&p)>>2]|0;c[(h&p)>>2]=r+4;r=qg(512,0)|0;g=(r|0)==0;if(!g){fw(r|0,0,512)|0;c[(r&p)>>2]=q}e=((q+7|0)/8|0)+1|0;m=qg(e,((e|0)<0)<<31>>31)|0;f=(m|0)==0;if(!f)fw(m|0,0,e|0)|0;l=Tc(512)|0;a:do if(!(g|f|(l|0)==0)){h=0;while(1){g=c[(k+(h<<2)&p)>>2]|0;if(!g)break;else if((g|0)==5|(g|0)==2|(g|0)==1){f=k+(h+2<<2)|0;u=c[(f&p)>>2]|0;e=u+-1|0;c[(s&p)>>2]=e;c[(f&p)>>2]=(c[(k+(h+3<<2)&p)>>2]|0)+u;f=4}else{cd(4,s);e=c[(s&p)>>2]|0;f=2}v=k+((h|1)<<2)|0;u=(c[(v&p)>>2]|0)+-1|0;c[(v&p)>>2]=u;h=((u|0)>0?0:f)+h|0;e=(e&2147483647|0)%(q|0)|0;c[(s&p)>>2]=e;e=e+1|0;f=1<<(e&7);if(!(g&1)){e=m+(e>>>3)|0;a[(e&n)>>0]=d[(e&n)>>0]&(f^255);ci(r,(c[(s&p)>>2]|0)+1|0,l);continue}e=m+(e>>>3)|0;a[(e&n)>>0]=d[(e&n)>>0]|f;if((g|0)==5)continue;if(bi(r,(c[(s&p)>>2]|0)+1|0)|0){g=-1;break a}}k=di(r,q+1|0)|0;e=di(r,0)|0;e=k-q+e+(c[(r&p)>>2]|0)|0;c[(s&p)>>2]=1;if((q|0)<1)g=e;else{f=1;while(1){k=(d[(m+(f>>3)&n)>>0]&1<<(f&7)|0)!=0&1;g=f;f=f+1|0;if((k|0)!=(di(r,g)|0))break a;c[(s&p)>>2]=f;if((g|0)>=(q|0)){g=e;break}}}}else g=-1;while(0);Wc(l);Wc(m);ei(r);break}case 6:{kw(9064,12672,259)|0;g=0;break}case 23:{g=(c[2243]|0)==0&1;break}case 25:{q=c[(h&p)>>2]|0;g=c[(q&p)>>2]|0;c[(h&p)>>2]=q+4;q=c[(h&p)>>2]|0;r=c[(q&p)>>2]|0;c[(h&p)>>2]=q+4;a[(g&n)+144>>0]=Vh(g,r)|0;r=c[(h&p)>>2]|0;q=c[(r&p)>>2]|0;c[(h&p)>>2]=r+4;q=q&255;a[(g&n)+147>>0]=q;r=g+145|0;a[(r&n)>>0]=q;q=c[(h&p)>>2]|0;s=c[(q&p)>>2]|0;c[(h&p)>>2]=q+4;c[(g&p)+140>>2]=s;if((a[(r&n)>>0]|0)==0&(s|0)>0){Eg(g);g=0}else g=0;break}case 14:{r=c[(h&p)>>2]|0;s=c[(r&p)>>2]|0;c[(h&p)>>2]=r+4;r=c[(h&p)>>2]|0;g=c[(r&p)>>2]|0;c[(h&p)>>2]=r+4;xg(c[((c[(s&p)+16>>2]|0)&p)+4>>2]|0,0,g,0)|0;g=0;break}case 15:{r=c[(h&p)>>2]|0;g=c[(r&p)>>2]|0;c[(h&p)>>2]=r+4;r=c[(h&p)>>2]|0;s=c[(r&p)>>2]|0;c[(h&p)>>2]=r+4;b[(g&o)+60>>1]=s;g=0;break}case 16:{s=c[(h&p)>>2]|0;e=c[(s&p)>>2]|0;c[(h&p)>>2]=s+4;if(!e)g=0;else{g=e;while(1)if(!(a[(g&n)>>0]|0))break;else g=g+1|0;g=g-e&1073741823}g=(fi(e,g)|0)!=27;g=g?124:0;break}case 24:{r=c[(h&p)>>2]|0;g=c[(r&p)>>2]|0;c[(h&p)>>2]=r+4;r=c[(h&p)>>2]|0;s=c[(r&p)>>2]|0;c[(h&p)>>2]=r+4;c[(g&p)+136>>2]=s;g=0;break}case 17:{s=c[(h&p)>>2]|0;f=c[(s&p)>>2]|0;c[(h&p)>>2]=s+4;s=c[(h&p)>>2]|0;g=c[(s&p)>>2]|0;c[(h&p)>>2]=s+4;s=c[(h&p)>>2]|0;e=c[(s&p)>>2]|0;c[(h&p)>>2]=s+4;if(f)c[(g&p)>>2]=gi(f)|0;hi(e);g=0;break}case 18:{s=c[(h&p)>>2]|0;g=c[(s&p)>>2]|0;c[(h&p)>>2]=s+4;c[2253]=g;g=0;break}case 20:{s=c[(h&p)>>2]|0;g=c[(s&p)>>2]|0;c[(h&p)>>2]=s+4;c[2192]=g;g=0;break}case 9:{s=c[(h&p)>>2]|0;g=c[(s&p)>>2]|0;c[(h&p)>>2]=s+4;c[2252]=g;if(!g)g=0;else g=lc[g&127](0)|0;break}case 10:{r=c[(h&p)>>2]|0;s=c[(r&p)>>2]|0;c[(h&p)>>2]=r+4;r=c[(h&p)>>2]|0;g=c[(r&p)>>2]|0;c[(h&p)>>2]=r+4;c[3164]=s;c[3166]=g;g=0;break}default:g=0}while(0);i=t;return g|0}function eg(b,c){b=b|0;c=c|0;var d=0,e=0,f=0,g=0;a:do if(!((b|0)==0|(c|0)==0)){d=b;while(1)if(!(a[(d&n)>>0]|0))break;else d=d+1|0;e=(d-b&1073741823)+1|0;d=a[(b+e&n)>>0]|0;if(d<<24>>24){g=b+e|0;while(1){f=_v(g,c)|0;e=g;while(1){b=e+1|0;if(!(d<<24>>24))break;d=a[(b&n)>>0]|0;e=b}b=e-g&1073741823;d=g+(b+1)|0;if(!f)break a;else e=d;while(1)if(!(a[(e&n)>>0]|0))break;else e=e+1|0;g=g+(b+2+(e-d&1073741823))|0;d=a[(g&n)>>0]|0;if(!(d<<24>>24)){d=0;break}}}else d=0}else d=0;while(0);return d|0}function fg(a,b,c){a=a|0;b=b|0;c=c|0;a=eg(a,b)|0;b=(c|0)!=0;if(a)b=(ii(a,1,b&1)|0)<<24>>24!=0;return b&1|0}function gg(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+16|0;if((i|0)>=(j|0))fa();f=g;a=eg(a,b)|0;if(!a){G=e;i=g;return d|0}else{b=(ji(a,f)|0)==0;a=f;G=b?c[(a&p)+4>>2]|0:e;i=g;return (b?c[(a&p)>>2]|0:d)|0}return 0}function hg(b,d){b=b|0;d=d|0;b=ai(b,d)|0;if(b){b=c[(c[(b&p)+4>>2]&p)>>2]|0;if(!(a[(b&n)+15>>0]|0))b=c[(b&p)+168>>2]|0;else b=10360}else b=0;return b|0}function ig(a,d){a=a|0;d=d|0;a=ai(a,d)|0;if(!a)a=-1;else a=b[((c[(a&p)+4>>2]|0)&o)+22>>1]&1;return a|0}function jg(a,b){a=a|0;b=b|0;if(b){Fk(a,c[(b&p)+28>>2]|0);mg(a,c[(b&p)>>2]|0);mg(a,c[(b&p)+4>>2]|0);Gk(a,c[(b&p)+12>>2]|0);Hk(a,c[(b&p)+16>>2]|0);mg(a,b)}return}function kg(a,d){a=a|0;d=d|0;var e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;do if(d){h=(a|0)!=0;if(!(h?(c[(a&p)+520>>2]|0)!=0:0))e=4;if((e|0)==4?(f=d+40|0,e=(b[(f&o)>>1]|0)+-1<<16>>16,b[(f&o)>>1]=e,e<<16>>16!=0):0)break;e=c[(d&p)+8>>2]|0;if(e){g=a+520|0;do{f=e;e=c[(e&p)+20>>2]|0;if(!(h?(c[(g&p)>>2]|0)!=0:0))Ik((c[(f&p)+24>>2]|0)+24|0,c[(f&p)>>2]|0,0)|0;Jk(a,f)}while((e|0)!=0)}e=c[(d&p)+16>>2]|0;if(e){j=(a|0)==0;k=d+68|0;l=a+520|0;do{if(!(!j?(c[(l&p)>>2]|0)!=0:0)){f=e+16|0;i=c[(f&p)>>2]|0;h=e+12|0;g=c[(h&p)>>2]|0;if(!i)Ik((c[(k&p)>>2]|0)+56|0,c[(((g|0)==0?e:g)&p)+8>>2]|0,g)|0;else c[(i&p)+12>>2]=g;h=c[(h&p)>>2]|0;if(h)c[(h&p)+16>>2]=c[(f&p)>>2]}Kk(a,c[(e&p)+28>>2]|0);Kk(a,c[(e&p)+32>>2]|0);f=e;e=c[(e&p)+4>>2]|0;mg(a,f)}while((e|0)!=0)}Lk(a,d);mg(a,c[(d&p)>>2]|0);mg(a,c[(d&p)+20>>2]|0);Mk(a,c[(d&p)+12>>2]|0,1);Nk(a,c[(d&p)+24>>2]|0);if(!((a|0)!=0?(c[(a&p)+520>>2]|0)!=0:0))Ok(0,d)|0;h=d+56|0;e=c[(h&p)>>2]|0;if(e){i=d+52|0;f=c[(i&p)>>2]|0;if((f|0)>0){g=0;do{if((g|0)!=1){mg(a,c[((c[(h&p)>>2]|0)+(g<<2)&p)>>2]|0);f=c[(i&p)>>2]|0}g=g+1|0}while((g|0)<(f|0));e=c[(h&p)>>2]|0}mg(a,e)}mg(a,d)}while(0);return}function lg(a,d){a=a|0;d=d|0;var f=0,g=0,h=0;ch(c[(d&p)+60>>2]|0,b[(d&o)+68>>1]|0);h=d+16|0;ch(c[(h&p)>>2]|0,e[(d&o)+84>>1]<<1);f=c[(d&p)+192>>2]|0;if(f)do{g=f;f=c[(f&p)+24>>2]|0;Pk(a,c[(g&p)>>2]|0,c[(g&p)+4>>2]|0);mg(a,g)}while((f|0)!=0);f=b[(d&o)+70>>1]|0;if(f<<16>>16>0){g=d+64|0;f=f<<16>>16;do{f=f+-1|0;mg(a,c[((c[(g&p)>>2]|0)+(f<<2)&p)>>2]|0)}while((f|0)>0)}Pk(a,c[(d&p)+4>>2]|0,c[(d&p)+32>>2]|0);mg(a,c[(h&p)>>2]|0);mg(a,c[(d&p)+168>>2]|0);mg(a,c[(d&p)+172>>2]|0);return}function mg(a,b){a=a|0;b=b|0;var d=0;do if(b){if(a){if(c[(a&p)+520>>2]|0){Qk(a,b);break}if((c[(a&p)+276>>2]|0)>>>0<=b>>>0?(c[(a&p)+280>>2]|0)>>>0>b>>>0:0){d=a+272|0;c[(b&p)>>2]=c[(d&p)>>2];c[(d&p)>>2]=b;a=a+252|0;c[(a&p)>>2]=(c[(a&p)>>2]|0)+-1;break}}Wc(b)}while(0);return}function ng(b,e){b=b|0;e=e|0;var f=0,g=0,h=0;h=c[(e&p)+24>>2]|0;if(!h)f=0;else{f=h;while(1)if(!(a[(f&n)>>0]|0))break;else f=f+1|0;f=f-h&1073741823}g=(((d[((d[(h&n)>>0]|0)&n)+9328>>0]|0)+f|0)>>>0)%23|0;f=Rk(b,g,h,f)|0;if(!f){c[(e&p)+8>>2]=0;f=b+(g<<2)|0;c[(e&p)+28>>2]=c[(f&p)>>2];c[(f&p)>>2]=e}else{f=f+8|0;c[(e&p)+8>>2]=c[(f&p)>>2];c[(f&p)>>2]=e}return}function og(a){a=a|0;var b=0,d=0;do if(a){b=c[2254]|0;if((b|0)==(a|0)){c[2254]=c[(a&p)+12>>2];break}if(b){do{d=b+12|0;b=c[(d&p)>>2]|0}while((b|0)!=(a|0)&(b|0)!=0);if((b|0)==(a|0))c[(d&p)>>2]=c[(a&p)+12>>2]}}while(0);return}function pg(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return}function qg(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;b=jw(a|0,b|0,-1,-1)|0;d=G;do if(!(d>>>0>0|(d|0)==0&b>>>0>2147483390)){if(!(c[2186]|0)){b=lc[c[8780>>2]&127](a)|0;break}d=lc[c[8796>>2]&127](a)|0;c[2171]=a;if((c[2181]|0)>>>0>>0)c[2181]=a;a=c[2260]|0;do if(a){b=c[2166]|0;e=9032|0;e=dw(c[(e&p)>>2]|0,c[(e&p)+4>>2]|0,d|0,((d|0)<0)<<31>>31|0)|0;f=G;if(0<(f|0)|0==(f|0)&b>>>0>>0){c[2265]=0;break}else{c[2265]=1;e=c[2261]|0;c[2260]=0;qc[a&15](e,b,0,d);c[2260]=a;c[2261]=e;break}}while(0);b=lc[c[8780>>2]&127](d)|0;if(b){a=lc[c[8792>>2]&127](b)|0;a=(c[2166]|0)+a|0;c[2166]=a;if(a>>>0>(c[2176]|0)>>>0)c[2176]=a;a=(c[2175]|0)+1|0;c[2175]=a;if(a>>>0>(c[2185]|0)>>>0)c[2185]=a}else b=0}else b=0;while(0);return b|0}function rg(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,i=0,j=0;do if(a){if((b|0)==0&(d|0)==0){Wc(a);e=0;break}if(!(d>>>0>0|(d|0)==0&b>>>0>2147483391)){h=lc[c[8792>>2]&127](a)|0;g=lc[c[8796>>2]&127](b)|0;if((g|0)!=(h|0)){if(!(c[2186]|0)){e=rc[c[8788>>2]&127](a,g)|0;break}c[2171]=b;if((c[2181]|0)>>>0>>0)c[2181]=b;d=g-h|0;e=c[2166]|0;i=9032|0;i=dw(c[(i&p)>>2]|0,c[(i&p)+4>>2]|0,d|0,((d|0)<0)<<31>>31|0)|0;j=G;if(!(0<(j|0)|0==(j|0)&e>>>0>>0)?(f=c[2260]|0,(f|0)!=0):0){i=c[2261]|0;c[2260]=0;qc[f&15](i,e,0,d);c[2260]=f;c[2261]=i}e=rc[c[8788>>2]&127](a,g)|0;d=c[2260]|0;if((e|0)==0&(d|0)!=0){f=c[2166]|0;e=c[2261]|0;c[2260]=0;qc[d&15](e,f,0,b);c[2260]=d;c[2261]=e;e=rc[c[8788>>2]&127](a,g)|0}if(e){d=(lc[c[8792>>2]&127](e)|0)-h|0;d=(c[2166]|0)+d|0;c[2166]=d;if(d>>>0>(c[2176]|0)>>>0)c[2176]=d}else e=0}else e=a}else e=0}else e=qg(b,d)|0;while(0);return e|0}function sg(b,e,f,g){b=b|0;e=e|0;f=f|0;g=g|0;var l=0,m=0,o=0,r=0,s=0,t=0.0,u=0.0,v=0,w=0.0,x=0.0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=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;$=i;i=i+96|0;if((i|0)>=(j|0))fa();Z=$+8|0;_=$;Y=$+16|0;if(!e){l=0;m=0;T=0}else{l=e&2;if(!l)m=0;else{J=c[(g&p)>>2]|0;m=c[(J&p)>>2]|0;c[(g&p)>>2]=J+4}l=l&255;T=(e&1|0)!=0}S=l<<24>>24==0;P=l<<24>>24!=0;Q=m+4|0;R=m+8|0;O=b+12|0;l=0;a:while(1){e=a[(f&n)>>0]|0;if(e<<24>>24==37){e=f;f=l}else if(e<<24>>24){e=f;do{e=e+1|0;J=a[(e&n)>>0]|0}while(!(J<<24>>24==37|J<<24>>24==0));Sk(b,f,e-f|0);if(!(a[(e&n)>>0]|0))break}else break;l=e+1|0;o=a[(l&n)>>0]|0;if(!(o<<24>>24)){U=10;break}r=o<<24>>24;v=0;s=0;y=0;o=0;A=0;B=0;b:while(1){switch(r|0){case 43:{z=s;A=1;break}case 32:{z=s;y=1;break}case 35:{v=1;z=s;break}case 33:{z=1;break}case 48:{z=s;B=1;break}case 45:{z=s;o=1;break}default:{C=v;z=s;break b}}s=e+2|0;J=a[(s&n)>>0]|0;r=J<<24>>24;if(!(J<<24>>24)){l=s;C=v;break}else{e=l;l=s;s=z}}if((r|0)!=42)if((r+-48|0)>>>0<10){s=0;do{s=r+-48+(s*10|0)|0;l=l+1|0;r=a[(l&n)>>0]|0}while((r+-48|0)>>>0<10);N=o;M=s&2147483647}else{N=o;M=0}else{if(S){J=c[(g&p)>>2]|0;s=c[(J&p)>>2]|0;c[(g&p)>>2]=J+4}else s=Tk(m)|0;if((s|0)<0){o=1;s=(s|0)==-2147483648?0:0-s|0}r=l+1|0;l=r;r=a[(r&n)>>0]|0;N=o;M=s}do if((r|0)==46){s=l+1|0;o=a[(s&n)>>0]|0;if(o<<24>>24!=42){r=o<<24>>24;if((o+-48&255)<10)o=0;else{l=s;F=0;break}while(1){o=r+-48+(o*10|0)|0;l=l+2|0;J=a[(l&n)>>0]|0;r=J<<24>>24;if((J+-48&255)<10){J=s;s=l;l=J}else break}F=o&2147483647;break}if(S){J=c[(g&p)>>2]|0;s=c[(J&p)>>2]|0;c[(g&p)>>2]=J+4}else s=Tk(m)|0;l=l+2|0;r=a[(l&n)>>0]|0;if((s|0)<0)F=(s|0)==-2147483648?-1:0-s|0;else F=s}else F=-1;while(0);do if((r|0)==108){s=l+1|0;r=a[(s&n)>>0]|0;if(r<<24>>24==108){r=l+2|0;l=r;r=a[(r&n)>>0]|0;s=1;break}else{l=s;r=r<<24>>24;s=0;break}}else s=0;while(0);v=0;while(1){o=48752+(v*6|0)|0;if((r|0)==(a[(o&n)>>0]|0)){r=o;o=v;U=46;break}v=v+1|0;if((v|0)>=23){L=48752;J=0;break}}if((U|0)==46){U=0;if(!(T|o>>>0<20))break;L=r;J=a[((o*6|0)&n)+48755>>0]|0}c:do switch(J&255|0){case 13:{s=c[(g&p)>>2]|0;e=c[(s&p)>>2]|0;c[(g&p)>>2]=s+4;s=c[(g&p)>>2]|0;r=c[(s&p)>>2]|0;c[(g&p)>>2]=s+4;s=c[(e+(r*72|0)&p)+12>>2]|0;if(s){o=s;while(1)if(!(a[(o&n)>>0]|0))break;else o=o+1|0;Sk(b,s,o-s&1073741823);Sk(b,28928,1)}o=c[(e+(r*72|0)&p)+16>>2]|0;if(!o)e=0;else{e=o;while(1)if(!(a[(e&n)>>0]|0))break;else e=e+1|0;e=e-o&1073741823}Sk(b,o,e);y=f;r=0;e=0;s=0;break}case 14:{s=0;U=50;break}case 1:case 16:{U=50;break}case 4:case 3:case 2:{do if(!S){s=c[(Q&p)>>2]|0;if((c[(m&p)>>2]|0)>(s|0)){c[(Q&p)>>2]=s+1;t=+Ug(c[((c[(R&p)>>2]|0)+(s<<2)&p)>>2]|0);U=92;break}else{s=(F|0)<0?6:F;t=0.0;U=94;break}}else{U=c[(g&p)>>2]|0;c[(k&p)>>2]=c[(U&p)>>2];c[(k&p)+4>>2]=c[(U&p)+4>>2];t=+h[(k&q)>>3];c[(g&p)>>2]=U+8;U=92}while(0);if((U|0)==92){U=0;s=(F|0)<0?6:F;if(t<0.0){t=-t;K=45}else U=94}if((U|0)==94){U=0;if(!(A<<24>>24))K=y<<24>>24==0?0:32;else K=43}F=J<<24>>24==4;o=((F&(s|0)>0)<<31>>31)+s|0;s=o&4095;if(!s)u=.5;else{u=.5;do{s=s+-1|0;u=u*.1}while((s|0)>0)}E=J<<24>>24==2;if(E)t=t+u;h[(Z&q)>>3]=t;h[(_&q)>>3]=+h[(Z&q)>>3];if(+h[(Z&q)>>3]!=+h[(_&q)>>3]){y=48960;r=3;e=M;s=0}else{if(t>0.0){v=0;w=1.0;while(1){x=w*1.e+100;if(t>=x&(v|0)<351){v=v+100|0;w=x}else break}while(1){x=w*1.e+64;if(t>=x&(v|0)<351){v=v+64|0;w=x}else break}while(1){x=w*1.0e8;if(t>=x&(v|0)<351){v=v+8|0;w=x}else break}while(1){x=w*10.0;if((v|0)<351&t>=x){v=v+1|0;w=x}else break}t=t/w;if(t<1.0e-08)do{t=t*1.0e8;v=v+-8|0}while(t<1.0e-08);if(t<1.0)do{t=t*10.0;v=v+-1|0}while(t<1.0);if((v|0)>350){if(K<<24>>24==43)o=48976;else if(K<<24>>24==45)o=48968;else o=48984;f=o;while(1)if(!(a[(f&n)>>0]|0))break;else f=f+1|0;y=o;r=f-o&1073741823;e=M;s=0;break c}}else v=0;if(!E){t=u+t;if(!(t>=10.0))I=v;else{t=t*.1;I=v+1|0}}else I=v;if(F){s=(I|0)<-4|(o|0)<(I|0);F=C<<24>>24==0&1;o=o-(s?0:I)|0;s=s?3:2}else{F=z;s=J}H=s<<24>>24==3;f=H?0:I;v=(f|0)>0;s=jw(o|0,((o|0)<0)<<31>>31|0,M|0,((M|0)<0)<<31>>31|0)|0;v=jw(s|0,G|0,(v?f:0)|0,(v?((f|0)<0)<<31>>31:0)|0)|0;s=G;if((s|0)>0|(s|0)==0&v>>>0>55){v=jw(v|0,s|0,15,0)|0;v=qg(v,G)|0;if(!v){U=124;break a}else{y=v;J=v}}else{y=Y;J=0}v=((z&255)*10|0)+16|0;D=(z|C)&255|(o|0)>0;if(!(K<<24>>24))E=y;else{a[(y&n)>>0]=K;E=y+1|0}if((f|0)<0){a[(E&n)>>0]=48;e=2;s=E+1|0;A=f}else{C=~f;C=(C|0)>-1?C:-1;A=-2-C|0;C=f+C|0;r=E;while(1){if((v|0)<1)e=48;else{s=~~t;e=s+48&255;t=(t-+(s|0))*10.0;v=v+-1|0}a[(r&n)>>0]=e;if((f|0)>0){r=r+1|0;f=f+-1|0}else break}e=C+3|0;s=E+(C+2)|0}r=(D|0)==0;if(!r){a[(s&n)>>0]=46;s=E+e|0}if((A+1|0)<0){fw(s|0,48,~A|0)|0;s=s+~A|0;o=o+1+A|0}if((o|0)>0){e=s;f=o;while(1){f=f+-1|0;if((v|0)<1)A=48;else{E=~~t;A=E+48&255;t=(t-+(E|0))*10.0;v=v+-1|0}a[(e&n)>>0]=A;if((f|0)<=0)break;else e=e+1|0}s=s+o|0}d:do if(!(F<<24>>24==0|r)){while(1){r=s+-1|0;o=a[(r&n)>>0]|0;if(o<<24>>24==46)break;else if(o<<24>>24!=48)break d;a[(r&n)>>0]=0;s=r}if(!(z<<24>>24)){a[(r&n)>>0]=0;s=r;break}else{a[(s&n)>>0]=48;s=s+1|0;break}}while(0);if(H){r=s+1|0;a[(s&n)>>0]=a[((d[(L&n)+4>>0]|0)&n)+48912>>0]|0;o=s+2|0;if((I|0)<0){a[(r&n)>>0]=45;r=0-I|0}else{a[(r&n)>>0]=43;r=I}if((r|0)>99){a[(o&n)>>0]=((r|0)/100|0)+48;f=4;e=5;o=s+3|0;r=(r|0)%100|0}else{f=3;e=4}a[(o&n)>>0]=((r|0)/10|0)+48;a[(s+f&n)>>0]=((r|0)%10|0)+48;s=s+e|0}a[(s&n)>>0]=0;e=y;r=s-e|0;if(!(N<<24>>24==0&B<<24>>24!=0&(M|0)>(r|0))){e=M;s=J;break c}o=M-r|0;if((r|0)>=0){f=M;while(1){a[(y+f&n)>>0]=a[(y+(f-o)&n)>>0]|0;if((f|0)>(o|0))f=f+-1|0;else break}}if((M|0)==(r|0)){r=M;e=M;s=J;break c}fw(y+(K<<24>>24!=0&1)|0,48,M+e-s|0)|0;r=M;e=M;s=J}break}case 5:{if(S){r=c[(O&p)>>2]|0;e=c[(g&p)>>2]|0;y=c[(e&p)>>2]|0;c[(g&p)>>2]=e+4;c[(y&p)>>2]=r;y=f;r=0;e=0;s=0}else{y=f;r=0;e=0;s=0}break}case 8:{a[(Y&n)>>0]=37;y=Y;r=1;e=M;s=0;break}case 9:{if(!S){e=Uk(m)|0;if(!e)s=0;else s=a[(e&n)>>0]|0}else{J=c[(g&p)>>2]|0;s=c[(J&p)>>2]|0;c[(g&p)>>2]=J+4}if((F|0)>1){o=F+-1|0;e=M-o|0;if(!((e|0)<2|N<<24>>24!=0)){Vk(b,e+-1|0,32);e=0}f=s&255;Vk(b,o,f)}else{f=s&255;e=M}a[(Y&n)>>0]=f;y=Y;r=1;s=0;break}case 7:case 6:{if(P)o=Uk(m)|0;else{I=c[(g&p)>>2]|0;o=c[(I&p)>>2]|0;c[(g&p)>>2]=I+4}if(!o){f=10360;s=0}else{f=o;s=J<<24>>24!=7|P?0:o}if((F|0)>-1){if((F|0)>0)o=0;else{y=f;r=0;e=M;break c}while(1){r=o+1|0;if(!(a[(f+o&n)>>0]|0)){y=f;r=o;e=M;break c}if((r|0)<(F|0))o=r;else{y=f;e=M;break}}}else{if(!f){y=0;r=0;e=M;break c}else o=f;while(1)if(!(a[(o&n)>>0]|0))break;else o=o+1|0;y=f;r=o-f&1073741823;e=M;break c}break}case 15:case 11:case 10:{C=J<<24>>24==15?34:39;if(S){I=c[(g&p)>>2]|0;s=c[(I&p)>>2]|0;c[(g&p)>>2]=I+4}else s=Uk(m)|0;y=(s|0)==0;if(y)s=J<<24>>24==11?20304:48992;e:do if(!F){B=0;r=0}else{v=C&255;o=0;e=F;r=0;while(1){f=a[(s+o&n)>>0]|0;if(!(f<<24>>24)){B=o;break e}r=((f<<24>>24|0)==(v|0)&1)+r|0;o=o+1|0;e=e+-1|0;if(!e){B=o;break}}}while(0);z=J<<24>>24==11&(y^1);o=((z&1)<<1|1)+B+r|0;if((o|0)>70){r=qg(o,((o|0)<0)<<31>>31)|0;if(!r){U=197;break a}else{y=r;A=r}}else{y=Y;A=0}if(z){a[(y&n)>>0]=C;o=1}else o=0;if((B|0)>0){v=C&255;e=0;do{r=a[(s+e&n)>>0]|0;f=o+1|0;a[(y+o&n)>>0]=r;if((r<<24>>24|0)==(v|0)){a[(y+f&n)>>0]=r;o=o+2|0}else o=f;e=e+1|0}while((e|0)!=(B|0))}if(z){a[(y+o&n)>>0]=C;o=o+1|0}a[(y+o&n)>>0]=0;r=o;e=M;s=A;break}case 12:{J=c[(g&p)>>2]|0;e=c[(J&p)>>2]|0;c[(g&p)>>2]=J+4;if((e|0)!=0?(X=c[(e&p)+4>>2]|0,(X|0)!=0):0){Sk(b,c[(e&p)>>2]|0,X);y=f;r=0;e=0;s=0}else{y=f;r=0;e=0;s=0}break}default:break a}while(0);if((U|0)==50){U=0;do if(!(a[(L&n)+2>>0]&1)){if(P){f=Tk(m)|0;v=G;E=0;break}if(!(s<<24>>24)){v=c[(g&p)>>2]|0;f=c[(v&p)>>2]|0;c[(g&p)>>2]=v+4;v=0;E=0;break}else{E=c[(g&p)>>2]|0;v=E;f=c[(v&p)>>2]|0;v=c[(v&p)+4>>2]|0;c[(g&p)>>2]=E+8;E=0;break}}else{do if(!P)if(!(s<<24>>24)){r=c[(g&p)>>2]|0;s=c[(r&p)>>2]|0;c[(g&p)>>2]=r+4;r=((s|0)<0)<<31>>31;break}else{I=c[(g&p)>>2]|0;r=I;s=c[(r&p)>>2]|0;r=c[(r&p)+4>>2]|0;c[(g&p)>>2]=I+8;break}else{s=Tk(m)|0;r=G}while(0);if((r|0)<0){f=dw(0,0,s|0,r|0)|0;v=G;E=45;break}if(!(A<<24>>24)){f=s;v=r;E=y<<24>>24==0?0:32}else{f=s;v=r;E=43}}while(0);D=(f|0)==0&(v|0)==0;if(!(B<<24>>24))A=F;else{A=M-(E<<24>>24!=0&1)|0;A=(F|0)<(A|0)?A:F}if((A|0)>=60){s=A+10|0;r=qg(s,((s|0)<0)<<31>>31)|0;if(!r){U=69;break}else{e=s;s=r;o=r}}else{e=70;s=0;o=Y}B=o+(e+-1)|0;if(J<<24>>24==16){r=uw(f|0,v|0,10,0)|0;if(!(r>>>0<=3?(J=tw(f|0,v|0,10,0)|0,J=uw(J|0,G|0,10,0)|0,!((J|0)==1&(G|0)==0)):0))r=0;J=r<<1;a[(o+e+-2&n)>>0]=a[((J|1)&n)+48896>>0]|0;r=o+(e+-3)|0;a[(r&n)>>0]=a[(J&n)+48896>>0]|0}else r=B;e=d[(L&n)+4>>0]|0;y=d[(L&n)+1>>0]|0;while(1){J=uw(f|0,v|0,y|0,0)|0;o=r+-1|0;a[(o&n)>>0]=a[(J+e&n)+48912>>0]|0;f=tw(f|0,v|0,y|0,0)|0;v=G;if((f|0)==0&(v|0)==0)break;else r=o}f=A-B+o|0;if((f|0)>0){e=r;r=o;while(1){o=e+-2|0;a[(o&n)>>0]=48;f=f+-1|0;if((f|0)<=0)break;else{e=r;r=o}}}if(E<<24>>24){o=r+-2|0;a[(o&n)>>0]=E}if((!(D|C<<24>>24==0)?(V=a[(L&n)+5>>0]|0,V<<24>>24!=0):0)?(W=48952+(V&255)|0,!(V<<24>>24==3|V<<24>>24==6)):0){f=a[(W&n)>>0]|0;r=W;do{o=o+-1|0;a[(o&n)>>0]=f;r=r+1|0;f=a[(r&n)>>0]|0}while(f<<24>>24!=0)}y=o;r=B-o|0;e=M}o=e-r|0;f=(o|0)<1;if(!(f|N<<24>>24!=0))Vk(b,o,32);Sk(b,y,r);if(!(f|N<<24>>24==0))Vk(b,o,32);if(s)Wc(s);f=l+1|0;l=y}if((U|0)==10)Sk(b,48744,1);else if((U|0)==69){a[(b&n)+25>>0]=1;c[(b&p)+16>>2]=0}else if((U|0)==124){a[(b&n)+25>>0]=1;c[(b&p)+16>>2]=0}else if((U|0)==197){a[(b&n)+25>>0]=1;c[(b&p)+16>>2]=0}i=$;return}function tg(b){b=b|0;var d=0,e=0,f=0,g=0,h=0;f=b+8|0;d=c[(f&p)>>2]|0;do if(((d|0)!=0?(h=b+12|0,a[(d+(c[(h&p)>>2]|0)&n)>>0]=0,e=a[(b&n)+24>>0]|0,e<<24>>24!=0):0)?(g=b+4|0,(c[(f&p)>>2]|0)==(c[(g&p)>>2]|0)):0){if(e<<24>>24==1){d=(c[(h&p)>>2]|0)+1|0;d=mh(c[(b&p)>>2]|0,d,((d|0)<0)<<31>>31)|0}else d=Tc((c[(h&p)>>2]|0)+1|0)|0;c[(f&p)>>2]=d;if(!d){a[(b&n)+25>>0]=1;c[(b&p)+16>>2]=0;break}else{kw(d|0,c[(g&p)>>2]|0,(c[(h&p)>>2]|0)+1|0)|0;break}}while(0);return c[(f&p)>>2]|0}function ug(d,e,f,g){d=d|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,q=0;q=i;i=i+16|0;if((i|0)>=(j|0))fa();m=q;h=d+52|0;c[(h&p)>>2]=e;a:do if(!f){c[(h&p)>>2]=e;e=c[(d&p)+236>>2]|0;if(e){h=e+8|0;if(!(b[(h&o)>>1]&9312)){b[(h&o)>>1]=1;break}else{vg(e);break}}}else{l=d+236|0;do if(!(c[(l&p)>>2]|0)){h=mh(d,40,0)|0;if(!h){c[(l&p)>>2]=h;break a}else{e=h+0|0;k=e+40|0;do{a[(e&n)>>0]=0;e=e+1|0}while((e|0)<(k|0));b[(h&o)+8>>1]=1;c[(h&p)+32>>2]=d;c[(l&p)>>2]=h;break}}while(0);c[(m&p)>>2]=g;h=Wk(d,f,m)|0;e=c[(l&p)>>2]|0;if(e)Xg(e,h,-1,1,75)|0}while(0);i=q;return}function vg(a){a=a|0;var d=0,e=0;e=a+8|0;d=b[(e&o)>>1]|0;if(d&8192){Yk(a,c[(a&p)>>2]|0)|0;d=b[(e&o)>>1]|0}d=d&65535;do if(!(d&1024)){if(d&32){Zk(c[(a&p)>>2]|0);break}if(d&64){a=c[(a&p)>>2]|0;d=(c[(a&p)>>2]|0)+180|0;c[(a&p)+4>>2]=c[(d&p)>>2];c[(d&p)>>2]=a}}else cc[c[(a&p)+36>>2]&31](c[(a&p)+16>>2]|0);while(0);b[(e&o)>>1]=1;return}function wg(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0;k=i;i=i+16|0;if((i|0)>=(j|0))fa();g=k;e=Vh(b,d)|0;do if((e|0)==1){f=mh(a,536,0)|0;if(!f){ug(a,7,15776,g);e=0;break}fw(f|0,0,536)|0;c[(f&p)>>2]=b;if(!(_k(f)|0)){mg(a,c[(f&p)+4>>2]|0);Ch(f);mg(a,f);h=7;break}else{b=c[(f&p)+12>>2]|0;e=f+4|0;c[(g&p)>>2]=c[(e&p)>>2];ug(a,b,10344,g);mg(a,c[(e&p)>>2]|0);Ch(f);mg(a,f);e=0;break}}else h=7;while(0);do if((h|0)==7)if((e|0)<0){c[(g&p)>>2]=d;ug(a,1,47448,g);e=0;break}else{e=c[((c[(b&p)+16>>2]|0)+(e<<4)&p)+4>>2]|0;break}while(0);i=k;return e|0}function xg(a,d,f,g){a=a|0;d=d|0;f=f|0;g=g|0;var h=0,i=0,j=0,k=0;k=c[(a&p)+4>>2]|0;c[(k&p)+4>>2]=c[(a&p)>>2];j=k+22|0;if(!(b[(j&o)>>1]&2)){if((f|0)<0)f=(c[(k&p)+32>>2]|0)-(c[(k&p)+36>>2]|0)|0;if(((d+-512|0)>>>0<65025?(d+-1&d|0)==0:0)?(c[(k&p)+32>>2]=d,h=k+80|0,i=c[(h&p)>>2]|0,(i|0)!=0):0){a=i+-4|0;c[(h&p)>>2]=a;$k(a);c[(h&p)>>2]=0}h=k+32|0;a=al(c[(k&p)>>2]|0,h,f)|0;c[(k&p)+36>>2]=(c[(h&p)>>2]|0)-(f&65535);if(g)b[(j&o)>>1]=e[(j&o)>>1]|0|2}else a=8;return a|0}function yg(f,g){f=f|0;g=g|0;var h=0,k=0,l=0,m=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;T=i;i=i+16|0;if((i|0)>=(j|0))fa();N=T;M=T+12|0;L=T+8|0;R=c[(f&p)+4>>2]|0;I=R+4|0;c[(I&p)>>2]=c[(f&p)>>2];O=f+8|0;l=a[(O&n)>>0]|0;do if(l<<24>>24!=2?(P=(g|0)!=0,l<<24>>24!=1|P):0){Q=R+22|0;l=b[(Q&o)>>1]|0;if(!((l&1)!=0&P)){if(P)if((a[(R&n)+20>>0]|0)!=2&(l&64)==0)S=8;else S=7;else if(!(l&64))S=8;else S=7;a:do if((S|0)==7){h=c[(R&p)+76>>2]|0;S=12}else if(((S|0)==8?(g|0)>1:0)?(k=c[(R&p)+72>>2]|0,(k|0)!=0):0)do{l=c[(k&p)>>2]|0;if((l|0)!=(f|0)){h=l;S=12;break a}k=c[(k&p)+12>>2]|0}while((k|0)!=0);while(0);if((S|0)==12?(c[(h&p)>>2]|0)!=0:0){h=262;break}h=bl(f,1,1)|0;if(!h){l=e[(Q&o)>>1]|0;b[(Q&o)>>1]=l&65527;K=R+44|0;if(!(c[(K&p)>>2]|0))b[(Q&o)>>1]=l|8;E=R+12|0;u=R+32|0;v=R+36|0;w=R+17|0;x=R+18|0;y=R+80|0;z=R+24|0;A=R+26|0;B=R+28|0;C=R+30|0;D=R+21|0;F=R+20|0;G=(g|0)>1;h=0;b:while(1){c:do if(!(c[(E&p)>>2]|0)){h=cl(c[(R&p)>>2]|0)|0;if(!h){h=dl(R,1,M,0)|0;if(!h){t=c[(M&p)>>2]|0;q=c[(t&p)+56>>2]|0;l=d[(q&n)+29>>0]<<16|d[(q&n)+28>>0]<<24|d[(q&n)+30>>0]<<8|d[(q&n)+31>>0];m=c[(R&p)>>2]|0;r=c[(m&p)+24>>2]|0;if((l|0)!=0?(Zv(q+24|0,q+92|0,4)|0)==0:0)s=l;else s=r;d:do if((s|0)>0){e:do if(!(Zv(q,44680,16)|0)){if((d[(q&n)+18>>0]|0)>2)b[(Q&o)>>1]=e[(Q&o)>>1]|1;l=a[(q&n)+19>>0]|0;if((l&255)<=2){do if(l<<24>>24==2){if(b[(Q&o)>>1]&16)break;c[(L&p)>>2]=0;h=el(m,L)|0;if(h){S=48;break e}if(c[(L&p)>>2]|0)break;if(!t){h=0;continue b}Bg(c[(t&p)+68>>2]|0);h=0;continue b}while(0);if(Zv(q+21|0,47408,3)|0){h=26;S=48;break}k=d[(q&n)+17>>0]<<16|d[(q&n)+16>>0]<<8;if((k+16777215&k|0)!=0|k>>>0>65536|k>>>0<257){h=26;S=48;break}m=d[(q&n)+20>>0]|0;l=k-m|0;if((k|0)==(c[(u&p)>>2]|0)){if((s|0)>(r|0)?(c[((c[(I&p)>>2]|0)&p)+24>>2]&65536|0)==0:0){c[(N&p)>>2]=55672;c[(N&p)+4>>2]=10788;bd(11,13600,N);h=11;S=48;break}if(l>>>0<480){h=26;S=48;break}c[(u&p)>>2]=k;c[(v&p)>>2]=l;a[(w&n)>>0]=(d[(q&n)+53>>0]<<16|d[(q&n)+52>>0]<<24|d[(q&n)+54>>0]<<8|d[(q&n)+55>>0]|0)!=0&1;a[(x&n)>>0]=(d[(q&n)+65>>0]<<16|d[(q&n)+64>>0]<<24|d[(q&n)+66>>0]<<8|d[(q&n)+67>>0]|0)!=0&1;break d}if(t)Bg(c[(t&p)+68>>2]|0);c[(v&p)>>2]=l;c[(u&p)>>2]=k;l=c[(y&p)>>2]|0;if(l){h=l+-4|0;c[(y&p)>>2]=h;$k(h);c[(y&p)>>2]=0}h=al(c[(R&p)>>2]|0,u,m)|0}else{h=26;S=48}}else{h=26;S=48}while(0);if((S|0)==48){S=0;if(t)Bg(c[(t&p)+68>>2]|0);c[(E&p)>>2]=0}if(!h){h=0;continue b}else{S=77;break c}}else l=c[(v&p)>>2]|0;while(0);h=((((l<<6)+-768|0)>>>0)/255|0)+65513|0;k=h&65535;b[(z&o)>>1]=k;m=((((l<<5)+-384|0)>>>0)/255|0)+65513&65535;b[(A&o)>>1]=m;b[(B&o)>>1]=l+65501;b[(C&o)>>1]=m;a[(D&n)>>0]=(k&65535)>127?127:h&255;c[(E&p)>>2]=t;c[(K&p)>>2]=s;h=0;continue b}else l=0}else l=0}else{f:do if((h|0)==0&P){if(b[(Q&o)>>1]&1){h=8;S=77;break c}s=c[(R&p)>>2]|0;h=c[(s&p)+40>>2]|0;g:do if(!h){a[(s&n)+21>>0]=(a[((c[(f&p)>>2]|0)&n)+64>>0]|0)==2&1;t=s+16|0;if((a[(t&n)>>0]|0)==1){m=s+208|0;l=c[(m&p)>>2]|0;do if(!l){h=fl(s,2)|0;h:do if((h|0)==0&G){l=s+176|0;k=s+180|0;while(1){h=fl(s,4)|0;if((h|0)!=5)break h;if(!(lc[c[(l&p)>>2]&127](c[(k&p)>>2]|0)|0)){h=5;break g}}}while(0);if(h)break g}else{do if(a[(s&n)+4>>0]|0){if(a[(l&n)+43>>0]|0)break;h=fl(s,4)|0;if(h)break g;l=c[(m&p)>>2]|0;k=l+43|0;if(!(a[(k&n)>>0]|0)){h=c[(l&p)+4>>2]|0;pc[c[((c[(h&p)>>2]|0)&p)+56>>2]&31](h,(b[(l&o)+40>>1]|0)+3|0,1,5)|0;l=c[(m&p)>>2]|0}a[(k&n)>>0]=1}while(0);if(a[(l&n)+46>>0]|0){h=8;break g}k=l+43|0;if((a[(k&n)>>0]|0)==0?(H=c[(l&p)+4>>2]|0,H=pc[c[((c[(H&p)>>2]|0)&p)+56>>2]&31](H,0,1,10)|0,(H|0)!=0):0){h=H;break g}h=l+44|0;a[(h&n)>>0]=1;if(!(Zv(l+52|0,c[(c[(l&p)+32>>2]&p)>>2]|0,48)|0))break;if(!(a[(k&n)>>0]|0)){k=c[(l&p)+4>>2]|0;pc[c[((c[(k&p)>>2]|0)&p)+56>>2]&31](k,0,1,9)|0}a[(h&n)>>0]=0;h=517;break g}while(0);a[(t&n)>>0]=2;h=c[(s&p)+24>>2]|0;c[(s&p)+36>>2]=h;c[(s&p)+32>>2]=h;c[(s&p)+28>>2]=h;h=s+72|0;c[(h&p)>>2]=0;c[(h&p)+4>>2]=0}h=Cg(R)|0;break f}while(0);l=(h|0)==0;break c}while(0);if(!h){h=0;break b}else l=0}while(0);if((S|0)==77){S=0;l=(h|0)==0}if((a[(F&n)>>0]|0)==0?(J=c[(E&p)>>2]|0,(J|0)!=0):0){c[(E&p)>>2]=0;Bg(c[(J&p)+68>>2]|0)}if((h&255|0)!=5){S=86;break}if(a[(F&n)>>0]|0){S=86;break}if(!(gl(R)|0)){S=86;break}}if((S|0)==86)if(!l){S=96;break}if((a[(O&n)>>0]|0)==0?(H=R+40|0,c[(H&p)>>2]=(c[(H&p)>>2]|0)+1,(a[(f&n)+9>>0]|0)!=0):0){a[(f&n)+40>>0]=1;H=R+72|0;c[(f&p)+44>>2]=c[(H&p)>>2];c[(H&p)>>2]=f+32}l=P?2:1;a[(O&n)>>0]=l;if((l&255)>(d[(F&n)>>0]|0))a[(F&n)>>0]=l;if(P){l=c[(E&p)>>2]|0;c[(R&p)+76>>2]=f;k=e[(Q&o)>>1]|0;b[(Q&o)>>1]=G?k|32:k&65503;k=l+56|0;H=c[(k&p)>>2]|0;if((c[(K&p)>>2]|0)!=(d[(H&n)+29>>0]<<16|d[(H&n)+28>>0]<<24|d[(H&n)+30>>0]<<8|d[(H&n)+31>>0]|0)){h=Gg(c[(l&p)+68>>2]|0)|0;if(!h){h=c[(k&p)>>2]|0;S=c[(K&p)>>2]|0;a[(h&n)+28>>0]=S>>>24;a[(h&n)+29>>0]=S>>>16;a[(h&n)+30>>0]=S>>>8;a[(h&n)+31>>0]=S;h=0;S=96}}else S=96}}}else h=8}else{h=0;S=96}while(0);if((S|0)==96)if((h|0)==0&(g|0)!=0)h=hl(c[(R&p)>>2]|0,c[((c[(f&p)>>2]|0)&p)+496>>2]|0)|0;i=T;return h|0}function zg(e,f,g,h){e=e|0;f=f|0;g=g|0;h=h|0;var k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0;y=i;i=i+16|0;if((i|0)>=(j|0))fa();u=y;w=y+8|0;c[(w&p)>>2]=0;t=h&1;a:do if(!f){c[(u&p)>>2]=46865;c[(u&p)+4>>2]=10788;bd(11,13600,u);k=11}else{a[(e&n)+23>>0]=1;h=c[(e&p)+40>>2]|0;do if(!h){s=e+204|0;h=c[(s&p)>>2]|0;h=ac[c[8876>>2]&63](c[(h&p)+40>>2]|0,f,d[(h&n)+29>>0]&3)|0;if(!h){m=c[(s&p)>>2]|0;if((a[(m&n)+29>>0]|0)!=2){l=m+8|0;h=c[(l&p)>>2]|0;b:do if(!h)x=11;else{while(1){if((b[(h&o)+26>>1]|0)==0?(b[(h&o)+24>>1]&4)==0:0)break;h=c[(h&p)+36>>2]|0;if(!h){x=11;break b}}c[(l&p)>>2]=h;r=h;x=14}while(0);c:do if((x|0)==11?(c[(l&p)>>2]=0,q=c[(m&p)+4>>2]|0,(q|0)!=0):0){h=q;do{if(!(b[(h&o)+26>>1]|0)){r=h;x=14;break c}h=c[(h&p)+36>>2]|0}while((h|0)!=0)}while(0);if((x|0)==14?(k=rc[c[(m&p)+32>>2]&127](c[(m&p)+36>>2]|0,r)|0,!((k|0)==0|(k|0)==5)):0)break;k=ac[c[8876>>2]&63](c[(m&p)+40>>2]|0,f,2)|0;if(!k){k=7;break}}else k=0}else k=h;m=il(c[(s&p)>>2]|0,f,k)|0;c[(g&p)>>2]=m;if(!m)k=7;else{h=m+16|0;k=(t|0)!=0;if(!((c[(h&p)>>2]|0)==0|k)){k=e+184|0;c[(k&p)>>2]=(c[(k&p)>>2]|0)+1;k=0;break a}c[(h&p)>>2]=e;do if((f|0)>=0?(v=e+152|0,(((c[2514]|0)/(c[(v&p)>>2]|0)|0)+1|0)!=(f|0)):0){if(((a[(e&n)+15>>0]|0)==0?!((c[(e&p)+24>>2]|0)>>>0>>0|k):0)?(c[(c[(e&p)+60>>2]&p)>>2]|0)!=0:0){k=c[(e&p)+208>>2]|0;if(!k)k=0;else{k=kl(k,f,w)|0;if(k)break;k=c[(w&p)>>2]|0}v=e+188|0;c[(v&p)>>2]=(c[(v&p)>>2]|0)+1;k=ll(m,k)|0;if(!k){k=0;break a}else break}if((c[(e&p)+156>>2]|0)>>>0>>0)k=13;else{if(k){k=c[3164]|0;if(k)nc[k&3]();if((c[(e&p)+28>>2]|0)>>>0>=f>>>0)bi(c[(e&p)+56>>2]|0,f)|0;jl(e,f)|0;k=c[3166]|0;if(k)nc[k&3]()}fw(c[(m&p)+4>>2]|0,0,c[(v&p)>>2]|0)|0;k=0;break a}}else x=21;while(0);if((x|0)==21){c[(u&p)>>2]=46945;c[(u&p)+4>>2]=10788;bd(11,13600,u);k=11}ml(m)}}else k=h;while(0);if((c[(e&p)+120>>2]|0)==0?(c[((c[(e&p)+204>>2]|0)&p)+12>>2]|0)==0:0)nl(e);c[(g&p)>>2]=0}while(0);i=y;return k|0}function Ag(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,o=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0;y=i;i=i+16|0;if((i|0)>=(j|0))fa();x=y;v=b+4|0;r=c[((c[(v&p)>>2]|0)&p)+4>>2]|0;w=c[(r&p)>>2]|0;u=b+24|0;q=c[((c[((c[(u&p)>>2]|0)&p)+4>>2]|0)&p)+32>>2]|0;r=c[(r&p)+32>>2]|0;s=(q|0)<(r|0)?q:r;t=((q|0)<0)<<31>>31;m=sw(q|0,t|0,d|0,0)|0;o=G;if((q|0)==(r|0))b=0;else b=(a[(w&n)+15>>0]|0)==0?0:8;a:do if((b|0)==0&(q|0)>0){d=dw(m|0,o|0,q|0,t|0)|0;l=((r|0)<0)<<31>>31;k=(f|0)==0;h=G;b=r;while(1){c[(x&p)>>2]=0;f=qw(d|0,h|0,r|0,l|0)|0;if((f|0)!=(((c[2514]|0)>>>0)/(b>>>0)|0|0)){b=zg(w,f+1|0,x,0)|0;g=c[(x&p)>>2]|0;if(!b){b=Gg(g)|0;if(!b){z=rw(d|0,h|0,q|0,t|0)|0;f=c[(g&p)+4>>2]|0;b=rw(d|0,h|0,r|0,l|0)|0;kw(f+b|0,e+z|0,s|0)|0;a[(c[(g&p)+8>>2]&n)>>0]=0;if((d|0)==0&(h|0)==0&k){z=c[((c[((c[(u&p)>>2]|0)&p)+4>>2]|0)&p)+44>>2]|0;a[(f+b&n)+28>>0]=z>>>24;a[(f+b&n)+29>>0]=z>>>16;a[(f+b&n)+30>>0]=z>>>8;a[(f+b&n)+31>>0]=z;b=0}else b=0}}if(g)Bg(g)}else b=0;d=jw(d|0,h|0,r|0,l|0)|0;f=G;if(!((b|0)==0&((f|0)<(o|0)|(f|0)==(o|0)&d>>>0>>0)))break a;h=f;b=c[((c[((c[(v&p)>>2]|0)&p)+4>>2]|0)&p)+32>>2]|0}}while(0);i=y;return b|0}function Bg(a){a=a|0;var d=0,e=0,f=0;d=c[(a&p)+16>>2]|0;if(!(b[(a&o)+24>>1]&64)){ol(a);a=c[(d&p)+120>>2]|0}else{f=d+120|0;e=(c[(f&p)>>2]|0)+-1|0;c[(f&p)>>2]=e;f=d+136|0;c[(a&p)+12>>2]=c[(f&p)>>2];c[(f&p)>>2]=a;a=e}if((a|0)==0?(c[((c[(d&p)+204>>2]|0)&p)+12>>2]|0)==0:0)nl(d);return}function Cg(d){d=d|0;var f=0,g=0,h=0,i=0,j=0,k=0;i=d+44|0;if(!(c[(i&p)>>2]|0)){j=c[(d&p)+12>>2]|0;k=c[(j&p)+56>>2]|0;f=Gg(c[(j&p)+68>>2]|0)|0;if(!f){f=k+0|0;g=44680|0;h=f+16|0;do{a[(f&n)>>0]=a[(g&n)>>0]|0;f=f+1|0;g=g+1|0}while((f|0)<(h|0));f=d+32|0;a[(k&n)+16>>0]=(c[(f&p)>>2]|0)>>>8;a[(k&n)+17>>0]=(c[(f&p)>>2]|0)>>>16;a[(k&n)+18>>0]=1;a[(k&n)+19>>0]=1;a[(k&n)+20>>0]=(c[(f&p)>>2]|0)-(c[(d&p)+36>>2]|0);a[(k&n)+21>>0]=64;a[(k&n)+22>>0]=32;a[(k&n)+23>>0]=32;f=k+24|0;h=f+76|0;do{a[(f&n)>>0]=0;f=f+1|0}while((f|0)<(h|0));pl(j,13);f=d+22|0;b[(f&o)>>1]=e[(f&o)>>1]|0|2;f=a[(d&n)+17>>0]|0;a[(k&n)+52>>0]=0;a[(k&n)+53>>0]=0;a[(k&n)+54>>0]=0;a[(k&n)+55>>0]=f;f=a[(d&n)+18>>0]|0;a[(k&n)+64>>0]=0;a[(k&n)+65>>0]=0;a[(k&n)+66>>0]=0;a[(k&n)+67>>0]=f;c[(i&p)>>2]=1;a[(k&n)+31>>0]=1;f=0}}else f=0;return f|0}function Dg(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0;g=c[(b&p)+4>>2]|0;c[(g&p)+4>>2]=c[(b&p)>>2];b=c[(g&p)+12>>2]|0;f=c[(b&p)+56>>2]|0;b=Gg(c[(b&p)+68>>2]|0)|0;if((b|0)==0?(i=d<<2,a[(f+i&n)+36>>0]=e>>>24,a[(f+i&n)+37>>0]=e>>>16,a[(f+i&n)+38>>0]=e>>>8,h=e&255,a[(f+i&n)+39>>0]=h,(d|0)==7):0)a[(g&n)+18>>0]=h;return b|0}function Eg(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0;h=a+20|0;b=c[(h&p)>>2]|0;d=(b|0)>0;if(d){e=c[(a&p)+16>>2]|0;g=0;do{f=c[(e+(g<<4)&p)+4>>2]|0;if(f)c[((c[(f&p)+4>>2]|0)&p)+4>>2]=c[(f&p)>>2];g=g+1|0}while((g|0)!=(b|0));if(d){g=a+16|0;f=0;do{d=c[((c[(g&p)>>2]|0)+(f<<4)&p)+12>>2]|0;if(d){ql(d);b=c[(h&p)>>2]|0}f=f+1|0}while((f|0)<(b|0))}}b=a+24|0;c[(b&p)>>2]=c[(b&p)>>2]&-3;rl(a);sl(a);return}function Fg(d,f){d=d|0;f=f|0;var g=0,h=0,i=0,j=0,k=0;h=c[(d&p)+4>>2]|0;k=h+22|0;g=e[(k&o)>>1]|0;b[(k&o)>>1]=(f|0)==1?g|16:g&65519;g=yg(d,0)|0;do if(!g){h=h+12|0;i=c[((c[(h&p)>>2]|0)&p)+56>>2]|0;j=i+18|0;g=a[(j&n)>>0]|0;f=f&255;if(g<<24>>24==f<<24>>24?(a[(i&n)+19>>0]|0)==g<<24>>24:0){g=0;break}g=yg(d,2)|0;if(!g){g=Gg(c[((c[(h&p)>>2]|0)&p)+68>>2]|0)|0;if(!g){a[(j&n)>>0]=f;a[(i&n)+19>>0]=f;g=0}}}while(0);b[(k&o)>>1]=e[(k&o)>>1]&65519;return g|0}function Gg(a){a=a|0;var b=0;b=c[(a&p)+16>>2]|0;if((c[(b&p)+148>>2]|0)>>>0>(c[(b&p)+152>>2]|0)>>>0)a=tl(a)|0;else a=ul(a)|0;return a|0}function Hg(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,o=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0;A=i;i=i+32|0;if((i|0)>=(j|0))fa();u=A+16|0;v=A;k=A+12|0;m=A+8|0;g=c[(b&p)+40>>2]|0;a:do if(!g){z=b+16|0;if((d[(z&n)>>0]|0)>=3){b:do if(!(a[(b&n)+15>>0]|0)){if(c[(b&p)+208>>2]|0){l=b+204|0;h=vl(c[(l&p)>>2]|0)|0;c[(m&p)>>2]=0;if(!h){g=zg(b,1,m,0)|0;h=c[(m&p)>>2]|0;c[(h&p)+12>>2]=0;if(h){k=h;y=9}}else{k=0;y=9}if((y|0)==9){g=wl(b,h,c[(b&p)+24>>2]|0,1)|0;if(k)Bg(k)}if(g)break a;h=c[(l&p)>>2]|0;g=c[(h&p)>>2]|0;if(!g)break;while(1){xl(g);g=c[(h&p)>>2]|0;if(!g)break b}}l=b+18|0;if((a[(l&n)>>0]|0)==0?(c[(b&p)+24>>2]|0)!=0:0){g=zg(b,1,k,0)|0;k=c[(k&p)>>2]|0;if(!g){g=Gg(k)|0;if(!g){yl(k);a[(l&n)>>0]=1;g=0}}if(k)Bg(k);if(g)break a}if(((e|0)!=0?(a[(b&n)+5>>0]|0)!=4:0)?(x=b+64|0,t=c[(x&p)>>2]|0,(c[(t&p)>>2]|0)!=0):0){a[(b&n)+19>>0]=1;k=a[(e&n)>>0]|0;if(!(k<<24>>24)){l=0;h=0}else{l=0;h=0;do{l=(k<<24>>24)+l|0;h=h+1|0;k=a[(e+h&n)>>0]|0}while(k<<24>>24!=0)}s=b+72|0;g=s;k=c[(g&p)>>2]|0;g=c[(g&p)+4>>2]|0;if(!(a[(b&n)+8>>0]|0))m=g;else{if((k|0)==0&(g|0)==0){k=0;g=0}else{g=jw(k|0,g|0,-1,-1)|0;k=c[(b&p)+148>>2]|0;g=qw(g|0,G|0,k|0,0)|0;g=jw(g|0,G|0,1,0)|0;k=sw(g|0,G|0,k|0,0)|0;g=G}m=s;c[(m&p)>>2]=k;c[(m&p)+4>>2]=g;m=g}g=((c[2514]|0)/(c[(b&p)+152>>2]|0)|0)+1|0;a[(u&n)>>0]=g>>>24;o=u+1|0;a[(o&n)>>0]=g>>>16;q=u+2|0;a[(q&n)>>0]=g>>>8;r=u+3|0;a[(r&n)>>0]=g;g=tc[c[((c[(t&p)>>2]|0)&p)+12>>2]&31](t,u,4,k,m)|0;if(g)break a;g=c[(x&p)>>2]|0;m=jw(k|0,m|0,4,0)|0;k=G;g=tc[c[((c[(g&p)>>2]|0)&p)+12>>2]&31](g,e,h,m,k)|0;if(g)break a;g=c[(x&p)>>2]|0;m=jw(m|0,k|0,h|0,((h|0)<0)<<31>>31|0)|0;k=G;a[(u&n)>>0]=h>>>24;a[(o&n)>>0]=h>>>16;a[(q&n)>>0]=h>>>8;a[(r&n)>>0]=h;g=tc[c[((c[(g&p)>>2]|0)&p)+12>>2]&31](g,u,4,m,k)|0;if(g)break a;t=c[(x&p)>>2]|0;g=jw(m|0,k|0,4,0)|0;a[(u&n)>>0]=l>>>24;a[(o&n)>>0]=l>>>16;a[(q&n)>>0]=l>>>8;a[(r&n)>>0]=l;g=tc[c[((c[(t&p)>>2]|0)&p)+12>>2]&31](t,u,4,g,G)|0;if(g)break a;t=c[(x&p)>>2]|0;g=jw(m|0,k|0,8,0)|0;g=tc[c[((c[(t&p)>>2]|0)&p)+12>>2]&31](t,14808,8,g,G)|0;if(g)break a;t=h+20|0;g=s;t=jw(c[(g&p)>>2]|0,c[(g&p)+4>>2]|0,t|0,((t|0)<0)<<31>>31|0)|0;g=s;c[(g&p)>>2]=t;c[(g&p)+4>>2]=G;g=c[(x&p)>>2]|0;g=rc[c[((c[(g&p)>>2]|0)&p)+24>>2]&127](g,v)|0;if(g)break a;t=v;r=c[(t&p)+4>>2]|0;g=s;h=c[(g&p)>>2]|0;g=c[(g&p)+4>>2]|0;if((r|0)>(g|0)|((r|0)==(g|0)?(c[(t&p)>>2]|0)>>>0>h>>>0:0)?(w=c[(x&p)>>2]|0,w=ac[c[((c[(w&p)>>2]|0)&p)+16>>2]&63](w,h,g)|0,(w|0)!=0):0){g=w;break a}}g=zl(b,0)|0;if(g)break a;h=b+204|0;g=Al(b,vl(c[(h&p)>>2]|0)|0)|0;if(g)break a;g=c[(h&p)>>2]|0;h=c[(g&p)>>2]|0;if(h)do{xl(h);h=c[(g&p)>>2]|0}while((h|0)!=0);h=c[(b&p)+24>>2]|0;if(h>>>0>(c[(b&p)+32>>2]|0)>>>0){g=Bl(b,h-((h|0)==(((c[2514]|0)/(c[(b&p)+152>>2]|0)|0)+1|0)&1)|0)|0;if(!(g|f))y=46}else if(!f)y=46;else break;if((y|0)==46)g=Ig(b,e)|0;if(g)break a}else{g=c[(b&p)+88>>2]|0;if(g)do{c[(g&p)+16>>2]=1;g=c[(g&p)+44>>2]|0}while((g|0)!=0)}while(0);if(!(c[(b&p)+208>>2]|0)){a[(z&n)>>0]=5;g=0}else g=0}else g=0}while(0);i=A;return g|0}function Ig(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,i=0;g=b+60|0;h=c[(g&p)>>2]|0;i=c[(h&p)>>2]|0;if(!((i|0)!=0?(f=ac[c[(i&p)+40>>2]&63](h,21,e)|0,!((f|0)==0|(f|0)==12)):0))if(!(a[(b&n)+7>>0]|0)){f=c[(g&p)>>2]|0;f=rc[c[((c[(f&p)>>2]|0)&p)+20>>2]&127](f,d[(b&n)+11>>0]|0)|0}else f=0;return f|0}function Jg(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0;g=a[(b&n)+8>>0]|0;do if(!(g<<24>>24))f=0;else{k=c[(b&p)+4>>2]|0;c[(k&p)+4>>2]=c[(b&p)>>2];if(g<<24>>24==2){h=c[(k&p)>>2]|0;i=h+40|0;g=c[(i&p)>>2]|0;do if(!g){g=h+16|0;if(((a[(g&n)>>0]|0)==2?(a[(h&n)+4>>0]|0)!=0:0)?(a[(h&n)+5>>0]|0)==1:0){a[(g&n)>>0]=1;break}f=h+100|0;c[(f&p)>>2]=(c[(f&p)>>2]|0)+1;f=Cl(h,d[(h&n)+19>>0]|0,1)|0;h=f&255;if((h|0)==10|(h|0)==13){c[(i&p)>>2]=f;a[(g&n)>>0]=6;j=10}else j=10}else{f=g;j=10}while(0);if((j|0)==10?(f|0)!=0&(e|0)==0:0)break;f=b+20|0;c[(f&p)>>2]=(c[(f&p)>>2]|0)+-1;a[(k&n)+20>>0]=1;f=k+60|0;ei(c[(f&p)>>2]|0);c[(f&p)>>2]=0}Dl(b);f=0}while(0);return f|0}function Kg(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,o=0,q=0,r=0,s=0;s=i;i=i+16|0;if((i|0)>=(j|0))fa();h=s;a:do if((a[(b&n)+8>>0]|0)==2){r=c[(b&p)+4>>2]|0;c[(r&p)+4>>2]=c[(b&p)>>2];do if(a[(r&n)+17>>0]|0){q=c[(r&p)>>2]|0;f=r+8|0;b=c[(f&p)>>2]|0;if(b)do{o=b+72|0;a[(o&n)>>0]=d[(o&n)>>0]&251;b=c[(b&p)+8>>2]|0}while((b|0)!=0);if(!(a[(r&n)+18>>0]|0)){o=r+44|0;g=c[(o&p)>>2]|0;if(g>>>0<2)b=0;else{b=g+-2|0;b=b-((b>>>0)%(((((c[(r&p)+36>>2]|0)>>>0)/5|0)+1|0)>>>0)|0)|0;b=((b+1|0)==(((c[2514]|0)>>>0)/((c[(r&p)+32>>2]|0)>>>0)|0|0)?3:2)+b|0}if((b|0)!=(g|0)?(g|0)!=((((c[2514]|0)>>>0)/((c[(r&p)+32>>2]|0)>>>0)|0)+1|0):0){k=r+12|0;l=c[((c[(k&p)>>2]|0)&p)+56>>2]|0;l=d[(l&n)+37>>0]<<16|d[(l&n)+36>>0]<<24|d[(l&n)+38>>0]<<8|d[(l&n)+39>>0];m=El(r,g,l)|0;if(m>>>0>g>>>0){c[(h&p)>>2]=56396;c[(h&p)+4>>2]=10788;bd(11,13600,h);b=11;break a}b:do if(m>>>0>>0){b=c[(f&p)>>2]|0;c:do if(b){while(1){if(b)break;b=c[2]|0;if(!b)break c}b=Fl(b,0,0)|0;if(b){f=0;break b}}while(0);do{b=Gl(r,m,g,1)|0;g=g+-1|0;f=(b|0)==0}while(g>>>0>m>>>0&f)}else{f=1;b=0}while(0);if(((b|0)==101|f)&(l|0)!=0){b=Gg(c[((c[(k&p)>>2]|0)&p)+68>>2]|0)|0;l=(c[((c[(k&p)>>2]|0)&p)+56>>2]|0)+32|0;a[(l&n)>>0]=0;a[(l&n)+1>>0]=0;a[(l&n)+2>>0]=0;a[(l&n)+3>>0]=0;l=(c[((c[(k&p)>>2]|0)&p)+56>>2]|0)+36|0;a[(l&n)>>0]=0;a[(l&n)+1>>0]=0;a[(l&n)+2>>0]=0;a[(l&n)+3>>0]=0;l=c[((c[(k&p)>>2]|0)&p)+56>>2]|0;a[(l&n)+28>>0]=m>>>24;a[(l&n)+29>>0]=m>>>16;a[(l&n)+30>>0]=m>>>8;a[(l&n)+31>>0]=m;a[(r&n)+19>>0]=1;c[(o&p)>>2]=m}if(!b)break;Hl(q)|0;break a}c[(h&p)>>2]=56391;c[(h&p)+4>>2]=10788;bd(11,13600,h);b=11;break a}}while(0);b=c[(r&p)>>2]|0;if(a[(r&n)+19>>0]|0)c[(b&p)+24>>2]=c[(r&p)+44>>2];b=Hg(b,e,0)|0}else b=0;while(0);i=s;return b|0}function Lg(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0;m=i;i=i+16|0;if((i|0)>=(j|0))fa();h=m;l=c[(b&p)+4>>2]|0;c[(l&p)+4>>2]=c[(b&p)>>2];a:do if(!e){e=c[(l&p)+8>>2]|0;if(e){while(1){if(e)break;e=c[2]|0;if(!e)break a}e=Fl(e,0,0)|0;g=(e|0)==0;if(!g){g=g?f:0;k=6}}}else{g=f;k=6}while(0);if((k|0)==6)Il(b,e,g)|0;if((a[(b&n)+8>>0]|0)==2){Hl(c[(l&p)>>2]|0)|0;if(!(dl(l,1,h,0)|0)){e=c[(h&p)>>2]|0;g=c[(e&p)+56>>2]|0;g=d[(g&n)+29>>0]<<16|d[(g&n)+28>>0]<<24|d[(g&n)+30>>0]<<8|d[(g&n)+31>>0];if(!g)g=c[((c[(l&p)>>2]|0)&p)+24>>2]|0;c[(l&p)+44>>2]=g;if(e)Bg(c[(e&p)+68>>2]|0)}a[(l&n)+20>>0]=1;g=l+60|0;ei(c[(g&p)>>2]|0);c[(g&p)>>2]=0}Dl(b);i=m;return}function Mg(d){d=d|0;var e=0,f=0,g=0,h=0,i=0,j=0,k=0;j=d+76|0;if((c[(j&p)>>2]|0)==1691352191?(Jl(d)|0)==0:0){Kl(d,0);Ll(d);i=d+20|0;k=d+16|0;e=c[(k&p)>>2]|0;if((c[(i&p)>>2]|0)>0){h=0;do{g=e+(h<<4)+4|0;f=c[(g&p)>>2]|0;if((f|0)!=0?(Ml(f),c[(g&p)>>2]=0,(h|0)!=1):0)c[(e+(h<<4)&p)+12>>2]=0;h=h+1|0;e=c[(k&p)>>2]|0}while((h|0)<(c[(i&p)>>2]|0))}e=c[(e&p)+28>>2]|0;if(e)ql(e);rl(d);sl(d);h=0;do{e=c[(d+(h<<2)&p)+336>>2]|0;if(e)do{g=e;e=c[(e&p)+28>>2]|0;if(g)do{Nl(d,g);f=g;g=c[(g&p)+8>>2]|0;mg(d,f)}while((g|0)!=0)}while((e|0)!=0);h=h+1|0}while((h|0)!=23);f=d+428|0;e=c[(d&p)+436>>2]|0;if(e)do{h=c[(e&p)+8>>2]|0;g=c[(h&p)+16>>2]|0;if(g)cc[g&31](c[(h&p)+8>>2]|0);g=c[(h&p)+36>>2]|0;if(g)cc[g&31](c[(h&p)+28>>2]|0);g=c[(h&p)+56>>2]|0;if(g)cc[g&31](c[(h&p)+48>>2]|0);mg(d,h);e=c[(e&p)>>2]|0}while((e|0)!=0);Ol(f);h=d+308|0;e=c[(d&p)+316>>2]|0;if(e)do{g=c[(e&p)+8>>2]|0;f=c[(g&p)+12>>2]|0;if(f)cc[f&31](c[(g&p)+8>>2]|0);mg(d,g);e=c[(e&p)>>2]|0}while((e|0)!=0);Ol(h);c[(d&p)+52>>2]=0;f=d+236|0;e=c[(f&p)>>2]|0;do if(e){g=e+8|0;if(!(b[(g&o)>>1]&9312)){b[(g&o)>>1]=1;break}else{vg(e);e=c[(f&p)>>2]|0;break}}else e=0;while(0);Mh(e);g=d+168|0;if((c[(g&p)>>2]|0)>0){e=d+172|0;f=0;do{h=c[(d&p)>>2]|0;jc[c[(h&p)+52>>2]&15](h,c[((c[(e&p)>>2]|0)+(f<<2)&p)>>2]|0);f=f+1|0}while((f|0)<(c[(g&p)>>2]|0))}else e=d+172|0;mg(d,c[(e&p)>>2]|0);c[(j&p)>>2]=-1254786768;mg(d,c[((c[(k&p)>>2]|0)&p)+28>>2]|0);c[(j&p)>>2]=-1623446221;if(a[(d&n)+251>>0]|0)Wc(c[(d&p)+276>>2]|0);Wc(d)}return}function Ng(a){a=a|0;var b=0;b=c[(a&p)+40>>2]|0;if((b|0)==1369188723|(b|0)==-1108210269)b=Pg(a)|0;else b=0;Pl(a);return b|0}function Og(b,d){b=b|0;d=d|0;do if(b)if((a[(b&n)+65>>0]|0)!=0|(d|0)==3082){Ql(b);b=7;break}else{b=c[(b&p)+56>>2]&d;break}else b=d&255;while(0);return b|0}function Pg(a){a=a|0;var d=0,e=0,f=0,g=0,h=0,k=0;g=i;i=i+16|0;if((i|0)>=(j|0))fa();e=g;f=c[(a&p)>>2]|0;Rl(a)|0;if((c[(a&p)+76>>2]|0)>-1){hh(a)|0;d=a+44|0;mg(f,c[(d&p)>>2]|0);c[(d&p)>>2]=0;d=a+88|0;e=b[(d&o)>>1]|0;if(e&16)b[(d&o)>>1]=e|8}else{d=c[(a&p)+80>>2]|0;if((d|0)!=0?(b[(a&o)+88>>1]&8)!=0:0){h=a+44|0;k=c[(h&p)>>2]|0;c[(e&p)>>2]=k;ug(f,d,(k|0)!=0?10344:0,e);mg(f,c[(h&p)>>2]|0);c[(h&p)>>2]=0}}d=a+44|0;mg(c[(a&p)>>2]|0,c[(d&p)>>2]|0);c[(d&p)>>2]=0;c[(a&p)+20>>2]=0;d=a+136|0;c[(d&p)>>2]=0;c[(d&p)+4>>2]=0;c[(a&p)+40>>2]=649915045;i=g;return c[(f&p)+56>>2]&c[(a&p)+80>>2]|0}function Qg(a){a=a|0;var d=0;if(b[(a&o)+8>>1]&9312)vg(a);d=a+24|0;if(c[(d&p)>>2]|0){mg(c[(a&p)+32>>2]|0,c[(a&p)+20>>2]|0);c[(d&p)>>2]=0}c[(a&p)+16>>2]=0;return}function Rg(a){a=a|0;var d=0,f=0,g=0;d=a+8|0;if(b[(d&o)>>1]&16384){f=a+12|0;g=(c[(a&p)>>2]|0)+(c[(f&p)>>2]|0)|0;if(!(eh(a,(g|0)<1?1:g,1)|0)){fw((c[(a&p)+16>>2]|0)+(c[(f&p)>>2]|0)|0,0,c[(a&p)>>2]|0)|0;c[(f&p)>>2]=(c[(f&p)>>2]|0)+(c[(a&p)>>2]|0);b[(d&o)>>1]=(e[(d&o)>>1]|0)&48639;d=0}else d=7}else d=0;return d|0}function Sg(d,e){d=d|0;e=e|0;var f=0;do if(d){f=b[(d&o)+8>>1]|0;if((f&514)==514?(a[(d&n)+10>>0]|0)==e<<24>>24:0){f=c[(d&p)+16>>2]|0;break}if(!(f&1))f=Sl(d,e)|0;else f=0}else f=0;while(0);return f|0}function Tg(a,d){a=a|0;d=d|0;var e=0,f=0,g=0;e=a+8|0;f=b[(e&o)>>1]|0;if(!(f&16))if(!(Sg(a,d)|0))e=0;else{f=b[(e&o)>>1]|0;g=4}else g=4;if((g|0)==4){e=c[(a&p)+12>>2]|0;if(f&16384)e=(c[(a&p)>>2]|0)+e|0}return e|0}function Ug(b){b=b|0;var d=0.0,f=0,g=0,k=0;k=i;i=i+16|0;if((i|0)>=(j|0))fa();g=k;f=e[(b&o)+8>>1]|0;do if(!(f&8)){if(f&4){f=b;d=+((c[(f&p)>>2]|0)>>>0)+4294967296.0*+(c[(f&p)+4>>2]|0);break}if(!(f&18))d=0.0;else{h[(g&q)>>3]=0.0;Tl(c[(b&p)+16>>2]|0,g,c[(b&p)+12>>2]|0,a[(b&n)+10>>0]|0)|0;d=+h[(g&q)>>3]}}else d=+h[(b&q)>>3];while(0);i=k;return +d}function Vg(b){b=b|0;var d=0.0,f=0,g=0,k=0;k=i;i=i+16|0;if((i|0)>=(j|0))fa();g=k;f=e[(b&o)+8>>1]|0;do if(!(f&4)){if(!(f&8)){if(!(f&18)){b=0;f=0;break}f=g;c[(f&p)>>2]=0;c[(f&p)+4>>2]=0;Ul(c[(b&p)+16>>2]|0,g,c[(b&p)+12>>2]|0,a[(b&n)+10>>0]|0)|0;f=g;b=c[(f&p)+4>>2]|0;f=c[(f&p)>>2]|0;break}d=+h[(b&q)>>3];if(!(d<=-9223372036854775808.0))if(!(d>=9223372036854775808.0)){b=+R(d)>=1.0?(d>0.0?~~+da(+Q(d/4294967296.0),4294967295.0)>>>0:~~+ba((d-+(~~d>>>0))/4294967296.0)>>>0):0;f=~~d>>>0}else{b=2147483647;f=-1}else{b=-2147483648;f=0}}else{f=b;b=c[(f&p)+4>>2]|0;f=c[(f&p)>>2]|0}while(0);G=b;i=k;return f|0}function Wg(b,d,e,f,g){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;if((Xg(c[(b&p)>>2]|0,d,e,f,g)|0)==18){c[(b&p)+20>>2]=18;a[(b&n)+25>>0]=1;Xg(c[(b&p)>>2]|0,10096,-1,1,0)|0}return}function Xg(d,f,g,h,i){d=d|0;f=f|0;g=g|0;h=h|0;i=i|0;var j=0,k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0;a:do if(!f){j=d+8|0;if(!(b[(j&o)>>1]&9312)){b[(j&o)>>1]=1;j=0;break}else{vg(d);j=0;break}}else{r=d+32|0;j=c[(r&p)>>2]|0;if(!j)u=1e9;else u=c[(j&p)+88>>2]|0;t=h<<24>>24==0;q=t?16:2;if((g|0)<0){b:do if(h<<24>>24!=1)if((u|0)<0)k=0;else{g=0;while(1){k=g+2|0;if(!((a[(f+(g|1)&n)>>0]|a[(f+g&n)>>0])<<24>>24)){k=g;break b}if((k|0)>(u|0))break;else g=k}}else{k=f;while(1)if(!(a[(k&n)>>0]|0))break;else k=k+1|0;k=k-f&1073741823;k=(k|0)>(u|0)?u+1|0:k}while(0);s=k;m=(q&65535|512)&65535}else{s=g;m=q}do if((i|0)==(-1|0)){if(!(m&512))j=s;else j=s+(h<<24>>24==1?1:2)|0;if((s|0)>(u|0)){j=18;break a}if(fh(d,(j|0)>32?j:32)|0){j=7;break a}kw(c[(d&p)+16>>2]|0,f|0,j|0)|0;q=d+8|0;j=m}else{g=(i|0)==75;l=d+8|0;if(!((b[(l&o)>>1]&9312)==0?(c[(d&p)+24>>2]|0)==0:0))Qg(d);c[(d&p)+16>>2]=f;if(!g){c[(d&p)+36>>2]=i;q=l;j=(m&65535|((i|0)==0?2048:1024))&65535;break}c[(d&p)+20>>2]=f;j=c[(r&p)>>2]|0;do if(!j)j=lc[c[8792>>2]&127](f)|0;else{if((c[(j&p)+276>>2]|0)>>>0<=f>>>0?(c[(j&p)+280>>2]|0)>>>0>f>>>0:0){j=e[(j&o)+248>>1]|0;break}j=lc[c[8792>>2]&127](f)|0}while(0);c[(d&p)+24>>2]=j;q=l;j=m}while(0);m=d+12|0;c[(m&p)>>2]=s;b[(q&o)>>1]=j;f=t?1:h;l=d+10|0;a[(l&n)>>0]=f;do if(f<<24>>24!=1&(s|0)>1){g=d+16|0;k=c[(g&p)>>2]|0;j=a[(k&n)>>0]|0;k=a[(k&n)+1>>0]|0;if(!(j<<24>>24==-1&k<<24>>24==-2))if(k<<24>>24!=-1|j<<24>>24!=-2)break;else j=3;else j=2;if(Vl(d)|0){j=7;break a}f=(c[(m&p)>>2]|0)+-2|0;c[(m&p)>>2]=f;i=c[(g&p)>>2]|0;lw(i|0,i+2|0,f|0)|0;a[((c[(g&p)>>2]|0)+(c[(m&p)>>2]|0)&n)>>0]=0;a[((c[(g&p)>>2]|0)+(c[(m&p)>>2]|0)&n)+1>>0]=0;b[(q&o)>>1]=e[(q&o)>>1]|512;a[(l&n)>>0]=j}while(0);j=(s|0)>(u|0)?18:0}while(0);return j|0}function Yg(a,c){a=a|0;c=+c;var d=0,e=0,f=0,g=0;g=i;i=i+16|0;if((i|0)>=(j|0))fa();e=g+8|0;f=g;d=a+8|0;if(!(b[(d&o)>>1]&9312))b[(d&o)>>1]=1;else vg(a);h[(e&q)>>3]=c;h[(f&q)>>3]=+h[(e&q)>>3];if(!(+h[(e&q)>>3]!=+h[(f&q)>>3])){h[(a&q)>>3]=c;b[(d&o)>>1]=8}i=g;return}function Zg(a,d,e){a=a|0;d=d|0;e=e|0;var f=0;f=a+8|0;if(!(b[(f&o)>>1]&9312))b[(f&o)>>1]=1;else vg(a);c[(a&p)>>2]=d;c[(a&p)+4>>2]=e;b[(f&o)>>1]=4;return}function _g(a,d){a=a|0;d=d|0;var f=0,g=0,h=0;f=a+8|0;if(b[(f&o)>>1]&9312)vg(a);c[(a&p)>>2]=c[(d&p)>>2];c[(a&p)+4>>2]=c[(d&p)+4>>2];c[(a&p)+8>>2]=c[(d&p)+8>>2];c[(a&p)+12>>2]=c[(d&p)+12>>2];c[(a&p)+16>>2]=c[(d&p)+16>>2];h=e[(f&o)>>1]|0;g=h&64511;b[(f&o)>>1]=g;if((h&18|0)!=0?(b[(d&o)+8>>1]&2048)==0:0){b[(f&o)>>1]=g|4096;f=Vl(a)|0}else f=0;return f|0}function $g(d,e){d=d|0;e=e|0;var f=0;f=d+8|0;if(!((b[(f&o)>>1]&9312)==0?(c[(d&p)+24>>2]|0)==0:0))Qg(d);b[(f&o)>>1]=16400;c[(d&p)+12>>2]=0;c[(d&p)>>2]=(e|0)<0?0:e;a[(d&n)+10>>0]=1;c[(d&p)+16>>2]=0;return}function ah(a){a=a|0;var b=0,d=0;d=i;i=i+16|0;if((i|0)>=(j|0))fa();b=d;if(a)if(!(c[(a&p)>>2]|0)){bd(21,47360,b);a=1}else a=0;else{bd(21,47320,b);a=1}i=d;return a|0}function bh(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0.0;f=i;i=i+16|0;if((i|0)>=(j|0))fa();e=f;if((c[(a&p)>>2]|0)>1?(d=c[(a&p)+72>>2]|0,(d|0)!=0):0)d=rc[d&127](a,b)|0;else{d=rc[c[(a&p)+64>>2]&127](a,e)|0;g=+h[(e&q)>>3]*864.0e5;a=+R(g)>=1.0?(g>0.0?~~+da(+Q(g/4294967296.0),4294967295.0)>>>0:~~+ba((g-+(~~g>>>0))/4294967296.0)>>>0):0;c[(b&p)>>2]=~~g>>>0;c[(b&p)+4>>2]=a}i=f;return d|0}function ch(d,e){d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0;a:do if((d|0)!=0&(e|0)!=0){i=d+(e*40|0)|0;j=c[(d&p)+32>>2]|0;g=j+65|0;h=a[(g&n)>>0]|0;if(c[(j&p)+520>>2]|0){e=d;while(1){if(c[(e&p)+24>>2]|0)mg(j,c[(e&p)+20>>2]|0);e=e+40|0;if(e>>>0>=i>>>0)break a}}do{e=d+8|0;if(!(b[(e&o)>>1]&9312)){f=d+24|0;if(c[(f&p)>>2]|0){mg(j,c[(d&p)+20>>2]|0);c[(f&p)>>2]=0}}else Qg(d);b[(e&o)>>1]=128;d=d+40|0}while(d>>>0>>0);a[(g&n)>>0]=h}while(0);return}function dh(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0;f=i;i=i+16|0;if((i|0)>=(j|0))fa();g=f;c[(g&p)>>2]=e;e=Wk(b,d,g)|0;mg(b,c[(a&p)>>2]|0);c[(a&p)>>2]=e;i=f;return}function eh(a,d,f){a=a|0;d=d|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,q=0;l=a+24|0;g=c[(l&p)>>2]|0;do if((g|0)<(d|0)){k=(d|0)<32?32:d;d=(g|0)>0;if((f|0)!=0&d?(h=a+16|0,i=c[(h&p)>>2]|0,j=a+20|0,(i|0)==(c[(j&p)>>2]|0)):0){g=Wl(c[(a&p)+32>>2]|0,i,k,((k|0)<0)<<31>>31)|0;c[(j&p)>>2]=g;c[(h&p)>>2]=g;f=0}else{g=a+32|0;if(d){d=a+20|0;mg(c[(g&p)>>2]|0,c[(d&p)>>2]|0)}else d=a+20|0;g=mh(c[(g&p)>>2]|0,k,((k|0)<0)<<31>>31)|0;c[(d&p)>>2]=g}if(!g){f=a+8|0;if(!(b[(f&o)>>1]&9312))b[(f&o)>>1]=1;else vg(a);c[(a&p)+16>>2]=0;c[(l&p)>>2]=0;f=7;break}d=c[(a&p)+32>>2]|0;do if(!d)d=lc[c[8792>>2]&127](g)|0;else{if((c[(d&p)+276>>2]|0)>>>0<=g>>>0?(c[(d&p)+280>>2]|0)>>>0>g>>>0:0){d=e[(d&o)+248>>1]|0;break}d=lc[c[8792>>2]&127](g)|0}while(0);c[(l&p)>>2]=d;q=21}else q=21;while(0);if((q|0)==21){if(((f|0)!=0?(m=c[(a&p)+16>>2]|0,(m|0)!=0):0)?(n=c[(a&p)+20>>2]|0,(m|0)!=(n|0)):0)kw(n|0,m|0,c[(a&p)+12>>2]|0)|0;d=a+8|0;f=b[(d&o)>>1]|0;if(!(f&1024))g=a+16|0;else{g=a+16|0;cc[c[(a&p)+36>>2]&31](c[(g&p)>>2]|0);f=b[(d&o)>>1]|0}c[(g&p)>>2]=c[(a&p)+20>>2];b[(d&o)>>1]=f&58367;f=0}return f|0}function fh(a,d){a=a|0;d=d|0;if((c[(a&p)+24>>2]|0)<(d|0))a=eh(a,d,0)|0;else{c[(a&p)+16>>2]=c[(a&p)+20>>2];a=a+8|0;b[(a&o)>>1]=(e[(a&o)>>1]|0)&13;a=0}return a|0} function mq(f,g){f=f|0;g=g|0;var h=0,k=0,l=0,m=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,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,ga=0,ha=0;ha=i;i=i+192|0;if((i|0)>=(j|0))fa();ba=ha+48|0;$=ha+24|0;_=ha+160|0;I=ha+156|0;S=ha+152|0;L=ha+148|0;V=ha+144|0;O=ha+140|0;H=ha+16|0;ea=ha;y=ha+128|0;x=ha+116|0;z=ha+96|0;l=ha+88|0;ga=f+8|0;ca=c[(ga&p)>>2]|0;da=c[(f&p)>>2]|0;c[(ea&p)>>2]=c[9286];c[(ea&p)+4>>2]=c[9287];c[(ea&p)+8>>2]=c[9288];a:do switch(g|0){case 9:{l=c[(f+(da+-1<<4)&p)+16>>2]|0;k=c[(ca&p)>>2]|0;if((Sq(ca,22,37104,0,0)|0)==0?(E=Oq(ca)|0,(E|0)!=0):0){if((l|0)!=7?(F=k+20|0,(c[(F&p)>>2]|0)>0):0){l=(l|0)==9?2:1;k=E+96|0;q=0;do{wh(E,4,q,l,0)|0;c[(k&p)>>2]=c[(k&p)>>2]|1<>2]|0))}wh(E,3,0,0,0)|0}break}case 8:{y=c[(ca&p)>>2]|0;C=y+65|0;if(((a[(C&n)>>0]|0)==0?(a[(ca&n)+18>>0]|0)==0:0)?(Y=ca+64|0,(c[(Y&p)>>2]|0)==0):0){B=Oq(ca)|0;if(B){do{}while((Pq(B,61)|0)!=0);wh(B,24,0,0,0)|0;do if(!(a[(C&n)>>0]|0)){r=ca+332|0;v=c[(r&p)>>2]|0;if((v|0)==0?(c[(ca&p)+316>>2]|0)==0:0)break;s=B+32|0;t=c[(s&p)>>2]|0;if(t)c[((c[(B&p)+4>>2]|0)&p)+8>>2]=t;c[((c[(B&p)+24>>2]|0)&p)+88>>2]=t+-1;w=y+20|0;b:do if((c[(w&p)>>2]|0)>0){h=B+96|0;k=ca+328|0;l=y+16|0;m=y+145|0;q=B+4|0;u=0;while(1){x=1<>2]=c[(h&p)>>2]|x,ba=c[((c[((c[(l&p)>>2]|0)+(u<<4)&p)+12>>2]|0)&p)+4>>2]|0,xh(B,wh(B,4,u,(c[(k&p)>>2]&x|0)!=0&1,c[(ca+(u<<2)&p)+336>>2]|0)|0,ba,-14),(a[(m&n)>>0]|0)==0):0)?(N=c[(q&p)>>2]|0,(N|0)!=0):0)a[(N+(((c[(s&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=1;u=u+1|0;if((u|0)>=(c[(w&p)>>2]|0))break b;v=c[(r&p)>>2]|0}}while(0);s=ca+452|0;if((c[(s&p)>>2]|0)>0){r=ca+520|0;q=0;do{t=c[((c[((c[(r&p)>>2]|0)+(q<<2)&p)>>2]|0)&p)+60>>2]|0;c:do if(!t)t=0;else while(1){if((c[(t&p)>>2]|0)==(y|0))break c;t=c[(t&p)+24>>2]|0;if(!t){t=0;break}}while(0);xh(B,wh(B,146,0,0,0)|0,t,-10);q=q+1|0}while((q|0)<(c[(s&p)>>2]|0))}c[(s&p)>>2]=0;s=Oq(ca)|0;r=ca+396|0;if((c[(r&p)>>2]|0)>0){q=ca+400|0;m=0;do{$=c[(q&p)>>2]|0;ba=c[($+(m<<4)&p)+12>>2]|0;xh(s,wh(s,145,c[($+(m<<4)&p)>>2]|0,c[($+(m<<4)&p)+4>>2]|0,d[($+(m<<4)&n)+8>>0]|0)|0,ba,-2);m=m+1|0}while((m|0)<(c[(r&p)>>2]|0))}k=c[(ca&p)+8>>2]|0;t=c[(ca&p)+404>>2]|0;if(t){h=(c[(ca&p)>>2]|0)+16|0;u=k+32|0;v=k+4|0;do{r=c[(t&p)+8>>2]|0;s=c[(t&p)+12>>2]|0;Qq(ca,0,r,c[((c[((c[(h&p)>>2]|0)+(r<<4)&p)+12>>2]|0)&p)+72>>2]|0,54);r=s+1|0;wh(k,28,0,s,r)|0;q=c[(u&p)>>2]|0;l=s+-1|0;m=c[(c[(t&p)+4>>2]&p)>>2]|0;xh(k,wh(k,97,0,l,0)|0,m,0);m=q+9|0;wh(k,108,0,m,0)|0;wh(k,47,0,0,s)|0;wh(k,78,l,q+7|0,s)|0;l=c[(v&p)>>2]|0;if(l)a[(l+(((c[(u&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=16;wh(k,103,0,r,0)|0;wh(k,47,0,1,s)|0;wh(k,16,0,m,0)|0;wh(k,9,0,q+2|0,0)|0;wh(k,25,0,s,0)|0;wh(k,61,0,0,0)|0;t=c[(t&p)>>2]|0}while((t|0)!=0)}s=c[(ca&p)+316>>2]|0;if((s|0)!=0?(a[(ca&n)+23>>0]=0,(c[(s&p)>>2]|0)>0):0){r=s+4|0;q=0;do{ba=c[(r&p)>>2]|0;Rq(ca,c[(ba+(q*20|0)&p)>>2]|0,c[(ba+(q*20|0)&p)+16>>2]|0);q=q+1|0}while((q|0)<(c[(s&p)>>2]|0))}wh(B,16,0,1,0)|0}while(0);if((c[(Y&p)>>2]|0)==0?(a[(C&n)>>0]|0)==0:0){if((c[(ca&p)+404>>2]|0)!=0?(Z=ca+68|0,(c[(Z&p)>>2]|0)==0):0)c[(Z&p)>>2]=1;Ah(B,ca);c[(ca&p)+12>>2]=101;a[(ca&n)+16>>0]=0}else aa=48}else aa=48;if((aa|0)==48)c[(ca&p)+12>>2]=1;c[(ca&p)+68>>2]=0;c[(ca&p)+72>>2]=0;c[(ca&p)+76>>2]=0;c[(ca&p)+440>>2]=0;c[(ca&p)+332>>2]=0}break}case 5:{a[(ca&n)+450>>0]=0;c[(ca&p)+440>>2]=0;break}case 6:{a[(ca&n)+450>>0]=1;c[(ca&p)+440>>2]=0;break}case 221:case 218:case 108:case 97:case 85:case 83:case 81:case 68:case 31:case 28:{c[(ea&p)>>2]=0;break}case 27:{a[((c[(ca&p)>>2]|0)&n)+250>>0]=0;aa=f+(da<<4)+16|0;ba=c[(aa&p)+4>>2]|0;ca=ea;c[(ca&p)>>2]=c[(aa&p)>>2];c[(ca&p)+4>>2]=ba;break}case 222:case 219:case 107:case 84:case 69:case 30:case 29:{c[(ea&p)>>2]=1;break}case 32:{Vq(ca,f+(da+-2<<4)+16|0,f+(da+-1<<4)+16|0,a[(f+(da<<4)&n)+16>>0]|0,0);break}case 33:{ba=f+(da<<4)+16|0;Vq(ca,0,0,0,c[(ba&p)>>2]|0);Mk(c[(ca&p)>>2]|0,c[(ba&p)>>2]|0,1);break}case 34:{a[(ea&n)>>0]=0;break}case 35:{l=c[(f+(da<<4)&p)+20>>2]|0;k=c[(f+(da<<4)&p)+16>>2]|0;if((l|0)==5?(Fc(k,20456,5)|0)==0:0){a[(ea&n)>>0]=32;break a}a[(ea&n)>>0]=0;c[(ba&p)>>2]=l;c[(ba&p)+4>>2]=k;th(ca,20464,ba);break}case 59:{ba=f+(da<<4)+16|0;c[(x&p)>>2]=Zq(ca,97,0,0,ba)|0;ba=c[(ba&p)>>2]|0;c[(x&p)+4>>2]=ba;c[(x&p)+8>>2]=ba+(c[(f+(da<<4)&p)+20>>2]|0);Yq(ca,x);break}case 61:{k=c[(f+(da<<4)&p)+16>>2]|0;l=c[(ca&p)+484>>2]|0;if((l|0)!=0?(v=b[(l&o)+38>>1]|0,v<<16>>16>=1):0)a[((c[(l&p)+4>>2]|0)+(((v<<16>>16)+-1|0)*24|0)&n)+20>>0]=k;break}case 70:{c[(ea&p)>>2]=0;break}case 71:{c[(ea&p)>>2]=c[(f+(da+-1<<4)&p)+16>>2]&~c[(f+(da<<4)&p)+20>>2]|c[(f+(da<<4)&p)+16>>2];break}case 73:case 72:{c[(ea&p)>>2]=0;c[(ea&p)+4>>2]=0;break}case 74:{c[(ea&p)>>2]=c[(f+(da<<4)&p)+16>>2];c[(ea&p)+4>>2]=255;break}case 76:{c[(ea&p)>>2]=7;break}case 75:{c[(ea&p)>>2]=c[(f+(da<<4)&p)+16>>2]<<8;c[(ea&p)+4>>2]=65280;break}case 65:{br(ca,0,f+(da+-2<<4)+16|0,c[(f+(da+-1<<4)&p)+16>>2]|0,c[(f+(da<<4)&p)+16>>2]|0);break}case 66:{k=c[(f+(da<<4)&p)+16>>2]|0;l=c[(ca&p)+484>>2]|0;if((l|0)!=0?(u=c[(l&p)+16>>2]|0,(u|0)!=0):0)a[(u&n)+24>>0]=k;break}case 67:{q=c[(ca&p)+484>>2]|0;if((q|0)!=0?(D=(b[(q&o)+38>>1]|0)+-1|0,r=c[(ca&p)>>2]|0,m=Wq(r,f+(da<<4)+16|0)|0,(m|0)!=0):0){if(!(cr(ca,m)|0)){mg(r,m);break a}s=q+4|0;mg(r,c[((c[(s&p)>>2]|0)+(D*24|0)&p)+16>>2]|0);c[((c[(s&p)>>2]|0)+(D*24|0)&p)+16>>2]=m;l=c[(q&p)+8>>2]|0;if(l)do{if((b[(c[(l&p)+4>>2]&o)>>1]|0)==(D|0))c[(c[(l&p)+32>>2]&p)>>2]=c[((c[(s&p)>>2]|0)+(D*24|0)&p)+16>>2];l=c[(l&p)+20>>2]|0}while((l|0)!=0)}break}case 13:{c[(ea&p)>>2]=7;break}case 117:case 115:case 16:case 15:case 14:{c[(ea&p)>>2]=d[(f+(da<<4)&n)+14>>0];break}case 46:{ca=c[(f+(da+-3<<4)&p)+16>>2]|0;c[(ea&p)>>2]=ca;c[(ea&p)+4>>2]=(c[(f+(da<<4)&p)+16>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0)-ca;break}case 47:{ca=c[(f+(da+-5<<4)&p)+16>>2]|0;c[(ea&p)>>2]=ca;c[(ea&p)+4>>2]=(c[(f+(da<<4)&p)+16>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0)-ca;break}case 49:{ca=c[(f+(da+-1<<4)&p)+16>>2]|0;c[(ea&p)>>2]=ca;c[(ea&p)+4>>2]=(c[(f+(da<<4)&p)+16>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0)-ca;break}case 92:case 54:{aa=f+(da<<4)+16|0;ba=c[(aa&p)+4>>2]|0;ca=ca+320|0;c[(ca&p)>>2]=c[(aa&p)>>2];c[(ca&p)+4>>2]=ba;break}case 57:case 55:{Yq(ca,f+(da<<4)+16|0);break}case 56:{Yq(ca,f+(da+-1<<4)+16|0);break}case 58:{c[(y&p)>>2]=Zq(ca,157,c[(f+(da<<4)&p)+16>>2]|0,0,0)|0;c[(y&p)+4>>2]=c[(f+(da+-1<<4)&p)+16>>2];c[(y&p)+8>>2]=c[(f+(da<<4)&p)+24>>2];Yq(ca,y);break}case 18:case 17:{if((Sq(ca,22,37136,0,0)|0)==0?(B=Oq(ca)|0,(B|0)!=0):0)wh(B,3,1,0,0)|0;break}case 19:{if((Sq(ca,22,37120,0,0)|0)==0?(A=Oq(ca)|0,(A|0)!=0):0)wh(A,3,1,1,0)|0;break}case 22:{Tq(ca,0,f+(da<<4)+16|0);break}case 38:{ba=c[(f+(da+-2<<4)&p)+16>>2]|0;c[(ea&p)>>2]=ba;c[(ea&p)+4>>2]=(c[(ca&p)+504>>2]|0)-ba+(c[(ca&p)+508>>2]|0);break}case 39:{x=f+(da<<4)+16|0;v=c[(ca&p)>>2]|0;k=c[(ca&p)+484>>2]|0;d:do if(k){w=k+38|0;if((b[(w&o)>>1]|0)>=(c[(v&p)+96>>2]|0)){c[(ba&p)>>2]=c[(k&p)>>2];th(ca,36528,ba);break}u=Wq(v,x)|0;if(u){s=b[(w&o)>>1]|0;h=s<<16>>16;e:do if(s<<16>>16>0){t=a[((d[(u&n)>>0]|0)&n)+9328>>0]|0;q=c[(k&p)+4>>2]|0;r=u+1|0;l=0;while(1){m=c[(q+(l*24|0)&p)>>2]|0;if(t<<24>>24==(a[((d[(m&n)>>0]|0)&n)+9328>>0]|0)?(dd(r,m+1|0)|0)==0:0)break;l=l+1|0;if((l|0)>=(h|0))break e}c[(ba&p)>>2]=u;th(ca,36552,ba);mg(v,u);break d}else q=c[(k&p)+4>>2]|0;while(0);r=k+4|0;do if(!(h&7)){q=ro(v,q,(h*24|0)+192|0,0)|0;if(!q){mg(v,u);break d}else{c[(r&p)>>2]=q;s=b[(w&o)>>1]|0;break}}while(0);ba=s<<16>>16;aa=q+(ba*24|0)|0;c[(aa&p)>>2]=0;c[(aa&p)+4>>2]=0;c[(aa&p)+8>>2]=0;c[(aa&p)+12>>2]=0;c[(aa&p)+16>>2]=0;c[(aa&p)+20>>2]=0;c[(aa&p)>>2]=u;a[(q+(ba*24|0)&n)+21>>0]=65;a[(q+(ba*24|0)&n)+22>>0]=1;b[(w&o)>>1]=(b[(w&o)>>1]|0)+1<<16>>16}}while(0);$=x;aa=c[($&p)+4>>2]|0;ba=ea;c[(ba&p)>>2]=c[($&p)>>2];c[(ba&p)+4>>2]=aa;c[(ca&p)+324>>2]=0;break}case 62:{_q(ca,0,c[(f+(da+-1<<4)&p)+16>>2]|0,c[(f+(da<<4)&p)+16>>2]|0,c[(f+(da+-2<<4)&p)+16>>2]|0);break}case 63:{$q(ca,0,0,0,0,c[(f+(da<<4)&p)+16>>2]|0,0,0,0,0)|0;break}case 64:{ar(ca,c[(f+(da+-1<<4)&p)+16>>2]|0);break}case 279:case 263:case 262:case 261:case 260:case 259:case 258:case 257:case 256:case 247:case 150:case 141:case 131:case 130:case 48:case 45:case 42:case 41:case 40:{aa=f+(da<<4)+16|0;ba=c[(aa&p)+4>>2]|0;ca=ea;c[(ca&p)>>2]=c[(aa&p)>>2];c[(ca&p)+4>>2]=ba;break}case 44:{l=f+(da<<4)+16|0;k=c[(ca&p)+484>>2]|0;if((k|0)!=0?(J=b[(k&o)+38>>1]|0,J<<16>>16>=1):0){ba=(J<<16>>16)+-1|0;aa=c[(k&p)+4>>2]|0;ca=Wq(c[(ca&p)>>2]|0,l)|0;c[(aa+(ba*24|0)&p)+12>>2]=ca;a[(aa+(ba*24|0)&n)+21>>0]=Xq(ca,aa+(ba*24|0)+22|0)|0}break}case 226:{l=da+-1|0;k=f+(l<<4)+16|0;r=f+(da<<4)+16|0;q=pr(c[(ca&p)>>2]|0,0,k,r)|0;s=da+-3|0;m=Zq(ca,75,c[(f+(s<<4)&p)+16>>2]|0,0,0)|0;c[(ea&p)>>2]=m;if(!m){Do(c[(ca&p)>>2]|0,q);q=0}else{c[(m&p)+20>>2]=kr(ca,0,q,0,0,0,0,0,0,0)|0;q=c[(ea&p)>>2]|0;ba=q+4|0;c[(ba&p)>>2]=c[(ba&p)>>2]|2099200;yr(ca,q)}if(c[(f+(da+-2<<4)&p)+16>>2]|0)c[(ea&p)>>2]=Zq(ca,19,q,0,0)|0;c[(ea&p)+4>>2]=c[(f+(s<<4)&p)+20>>2];h=c[(r&p)>>2]|0;if(!h)h=(c[(k&p)>>2]|0)+(c[(f+(l<<4)&p)+20>>2]|0)|0;else h=h+(c[(f+(da<<4)&p)+20>>2]|0)|0;c[(ea&p)+8>>2]=h;break}case 225:{l=da+-4|0;h=Zq(ca,75,c[(f+(l<<4)&p)+16>>2]|0,0,0)|0;c[(ea&p)>>2]=h;if(!h){Mk(c[(ca&p)>>2]|0,c[(f+(da+-1<<4)&p)+16>>2]|0,1);h=0}else{c[(h&p)+20>>2]=c[(f+(da+-1<<4)&p)+16>>2];h=c[(ea&p)>>2]|0;ba=h+4|0;c[(ba&p)>>2]=c[(ba&p)>>2]|2099200;yr(ca,h)}if(c[(f+(da+-3<<4)&p)+16>>2]|0)c[(ea&p)>>2]=Zq(ca,19,h,0,0)|0;c[(ea&p)+4>>2]=c[(f+(l<<4)&p)+20>>2];c[(ea&p)+8>>2]=(c[(f+(da<<4)&p)+16>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0);break}case 227:{h=Zq(ca,20,0,0,0)|0;c[(ea&p)>>2]=h;if(!h)Mk(c[(ca&p)>>2]|0,c[(f+(da+-1<<4)&p)+16>>2]|0,1);else{c[(h&p)+20>>2]=c[(f+(da+-1<<4)&p)+16>>2];ba=h+4|0;c[(ba&p)>>2]=c[(ba&p)>>2]|2099200;yr(ca,h)}c[(ea&p)+4>>2]=c[(f+(da+-3<<4)&p)+16>>2];c[(ea&p)+8>>2]=(c[(f+(da<<4)&p)+16>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0);break}case 228:{k=Zq(ca,136,c[(f+(da+-3<<4)&p)+16>>2]|0,0,0)|0;c[(ea&p)>>2]=k;if(!k){Nk(c[(ca&p)>>2]|0,c[(f+(da+-2<<4)&p)+16>>2]|0);Gk(c[(ca&p)>>2]|0,c[(f+(da+-1<<4)&p)+16>>2]|0)}else{l=c[(f+(da+-1<<4)&p)+16>>2]|0;h=c[(f+(da+-2<<4)&p)+16>>2]|0;if(l)h=lr(ca,h,l)|0;c[(k&p)+20>>2]=h;yr(ca,c[(ea&p)>>2]|0)}c[(ea&p)+4>>2]=c[(f+(da+-4<<4)&p)+16>>2];c[(ea&p)+8>>2]=(c[(f+(da<<4)&p)+16>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0);break}case 291:case 240:{c[(ea&p)>>2]=2;break}case 241:{c[(ea&p)>>2]=0;break}case 239:{$q(ca,f+(da+-7<<4)+16|0,f+(da+-6<<4)+16|0,pr(c[(ca&p)>>2]|0,0,f+(da+-4<<4)+16|0,0)|0,c[(f+(da+-2<<4)&p)+16>>2]|0,c[(f+(da+-10<<4)&p)+16>>2]|0,f+(da+-11<<4)+16|0,c[(f+(da<<4)&p)+16>>2]|0,0,c[(f+(da+-8<<4)&p)+16>>2]|0)|0;break}case 229:{c[(ea&p)>>2]=lr(ca,lr(ca,c[(f+(da+-4<<4)&p)+16>>2]|0,c[(f+(da+-2<<4)&p)+16>>2]|0)|0,c[(f+(da<<4)&p)+16>>2]|0)|0;break}case 230:{c[(ea&p)>>2]=lr(ca,lr(ca,0,c[(f+(da+-2<<4)&p)+16>>2]|0)|0,c[(f+(da<<4)&p)+16>>2]|0)|0;break}case 237:{c[(ea&p)>>2]=lr(ca,c[(f+(da+-2<<4)&p)+16>>2]|0,c[(f+(da<<4)&p)+16>>2]|0)|0;break}case 238:{c[(ea&p)>>2]=lr(ca,0,c[(f+(da<<4)&p)+16>>2]|0)|0;break}case 245:{h=lr(ca,0,vr(ca,0,f+(da+-1<<4)+16|0,1)|0)|0;c[(ea&p)>>2]=h;mr(ca,h,f+(da+-2<<4)+16|0,1);if(h){if((c[(h&p)>>2]|0)>(c[((c[(ca&p)>>2]|0)&p)+96>>2]|0)){c[(ba&p)>>2]=20632;th(ca,34544,ba)}a[((c[(h&p)+4>>2]|0)+(((c[(h&p)>>2]|0)+-1|0)*20|0)&n)+12>>0]=c[(f+(da<<4)&p)+16>>2]}break}case 244:{h=vr(ca,0,f+(da+-1<<4)+16|0,1)|0;h=lr(ca,c[(f+(da+-4<<4)&p)+16>>2]|0,h)|0;c[(ea&p)>>2]=h;mr(ca,h,f+(da+-2<<4)+16|0,1);if(h){if((c[(h&p)>>2]|0)>(c[((c[(ca&p)>>2]|0)&p)+96>>2]|0)){c[(ba&p)>>2]=20632;th(ca,34544,ba)}a[((c[(h&p)+4>>2]|0)+(((c[(h&p)>>2]|0)+-1|0)*20|0)&n)+12>>0]=c[(f+(da<<4)&p)+16>>2]}break}case 248:{v=c[(f+(da<<4)&p)+16>>2]|0;s=c[(f+(da+-1<<4)&p)+16>>2]|0;u=c[(ca&p)>>2]|0;do if((a[(u&n)+65>>0]|0)==0?(Gn(ca)|0)==0:0){r=v+12|0;k=bq(u,c[(v&p)+16>>2]|0,c[(r&p)>>2]|0)|0;if(!k){if(!s){c[(ba&p)>>2]=v;c[(ba&p)+4>>2]=0;th(ca,33056,ba)}else zr(ca,c[(r&p)>>2]|0);a[(ca&n)+17>>0]=1;break}if(a[(k&n)+51>>0]&3){c[(ba&p)>>2]=0;th(ca,33080,ba);break}s=c[(k&p)+24>>2]|0;f:do if(s){r=c[(u&p)+20>>2]|0;if((r|0)>0){q=c[(u&p)+16>>2]|0;t=0;while(1){m=t+1|0;if((c[(q+(t<<4)&p)+12>>2]|0)==(s|0)){m=t;break f}if((m|0)<(r|0))t=m;else break}}else m=0}else m=-1e6;while(0);s=c[(k&p)+12>>2]|0;r=u+16|0;q=c[((c[(r&p)>>2]|0)+(m<<4)&p)>>2]|0;l=(m|0)==1?13184:13208;if(((Sq(ca,9,l,0,q)|0)==0?(Sq(ca,(m|0)==0?10:12,c[(k&p)>>2]|0,c[(s&p)>>2]|0,q)|0)==0:0)?(K=Oq(ca)|0,(K|0)!=0):0){aa=c[(ca&p)+408>>2]|0;aa=(aa|0)==0?ca:aa;Ar(ca,m);$=aa+328|0;c[($&p)>>2]=c[($&p)>>2]|1<>0]=d[(aa&n)>>0]|1;aa=c[(k&p)>>2]|0;c[(ba&p)>>2]=c[((c[(r&p)>>2]|0)+(m<<4)&p)>>2];c[(ba&p)+4>>2]=l;c[(ba&p)+8>>2]=aa;Br(ca,33160,ba);Cr(ca,m,28536,c[(k&p)>>2]|0);Dr(ca,m);Er(ca,c[(k&p)+40>>2]|0,m);ca=c[(k&p)>>2]|0;xh(K,wh(K,125,m,0,0)|0,ca,0)}}while(0);Do(u,v);break}case 246:{c[(ea&p)>>2]=0;c[(ea&p)+4>>2]=0;break}case 250:case 249:{h=Oq(ca)|0;if(h){wh(h,13,0,0,0)|0;ca=h+96|0;c[(ca&p)>>2]=c[(ca&p)>>2]|1}break}case 251:{Fr(ca,f+(da+-1<<4)+16|0,f+(da<<4)+16|0,0,0);break}case 252:{Fr(ca,f+(da+-3<<4)+16|0,f+(da+-2<<4)+16|0,f+(da<<4)+16|0,0);break}case 253:{Fr(ca,f+(da+-4<<4)+16|0,f+(da+-3<<4)+16|0,f+(da+-1<<4)+16|0,0);break}case 254:{Fr(ca,f+(da+-3<<4)+16|0,f+(da+-2<<4)+16|0,f+(da<<4)+16|0,1);break}case 255:{Fr(ca,f+(da+-4<<4)+16|0,f+(da+-3<<4)+16|0,f+(da+-1<<4)+16|0,1);break}case 264:{h=c[(f+(da+-3<<4)&p)+16>>2]|0;l=(c[(f+(da<<4)&p)+16>>2]|0)-h+(c[(f+(da<<4)&p)+20>>2]|0)|0;k=c[(f+(da+-1<<4)&p)+16>>2]|0;aa=ca+488|0;z=c[(aa&p)>>2]|0;A=c[(ca&p)>>2]|0;c[(aa&p)>>2]=0;g:do if((c[(ca&p)+64>>2]|0)==0&(z|0)!=0){y=c[(z&p)>>2]|0;m=z+20|0;v=c[(m&p)>>2]|0;h:do if(v){u=c[(A&p)+20>>2]|0;if((u|0)>0){s=c[(A&p)+16>>2]|0;q=0;while(1){r=q+1|0;if((c[(s+(q<<4)&p)+12>>2]|0)==(v|0))break h;if((r|0)<(u|0))q=r;else{q=r;break}}}else q=0}else q=-1e6;while(0);c[(z&p)+28>>2]=k;x=(k|0)==0;if(!x){s=k;do{c[(s&p)+4>>2]=z;s=c[(s&p)+32>>2]|0}while((s|0)!=0)}c[(_&p)>>2]=y;if(!y)s=0;else{s=y;while(1)if(!(a[(s&n)>>0]|0))break;else s=s+1|0;s=s-y&1073741823}c[(_&p)+4>>2]=s;c[($&p)>>2]=ca;w=A+16|0;v=c[(w&p)>>2]|0;c[($&p)+12>>2]=c[(v+(q<<4)&p)>>2];c[($&p)+4>>2]=c[(v+(q<<4)&p)+12>>2];c[($&p)+16>>2]=10720;c[($&p)+20>>2]=_;v=(q|0)==1;c[($&p)+8>>2]=v&1;if(!x)do{if(fr($,c[(k&p)+8>>2]|0)|0){k=0;l=z;break g}if(Gr($,c[(k&p)+20>>2]|0)|0){k=0;l=z;break g}if(Hr($,c[(k&p)+24>>2]|0)|0){k=0;l=z;break g}k=c[(k&p)+32>>2]|0}while((k|0)!=0);if(!(Gr($,c[(z&p)+12>>2]|0)|0)){s=A+145|0;if(!(a[(s&n)>>0]|0)){r=Oq(ca)|0;if(!r){k=0;l=z;break}aa=c[(ca&p)+408>>2]|0;Ar(ca,q);aa=((aa|0)==0?ca:aa)+328|0;c[(aa&p)>>2]=c[(aa&p)>>2]|1<>0]=0}else t=0;aa=c[(z&p)+4>>2]|0;c[(ba&p)>>2]=c[((c[(w&p)>>2]|0)+(q<<4)&p)>>2];c[(ba&p)+4>>2]=v?13184:13208;c[(ba&p)+8>>2]=y;c[(ba&p)+12>>2]=aa;c[(ba&p)+16>>2]=t;Br(ca,30008,ba);mg(A,t);Dr(ca,q);c[(ba&p)>>2]=y;Ir(r,q,uh(A,30072,ba)|0);if(!(a[(s&n)>>0]|0)){k=0;l=z;break}}l=Ik((c[((c[(w&p)>>2]|0)+(q<<4)&p)+12>>2]|0)+40|0,y,z)|0;if(l){a[(A&n)+65>>0]=1;k=0;break}k=c[(m&p)>>2]|0;if((k|0)==(c[(z&p)+24>>2]|0)){k=bn(k+8|0,c[(z&p)+4>>2]|0,ba)|0;if(!k)k=0;else k=c[(k&p)+8>>2]|0;k=k+64|0;c[(z&p)+32>>2]=c[(k&p)>>2];c[(k&p)>>2]=z;k=0}else k=0}else{k=0;l=z}}else l=z;while(0);jg(A,l);Fk(A,k);break}case 265:{D=f+(da+-7<<4)+16|0;C=da+-6|0;E=f+(C<<4)+16|0;r=c[(f+(da+-5<<4)&p)+16>>2]|0;F=da+-4|0;B=c[(f+(F<<4)&p)+16>>2]|0;F=c[(f+(F<<4)&p)+20>>2]|0;H=c[(f+(da+-2<<4)&p)+16>>2]|0;I=c[(f+(da<<4)&p)+16>>2]|0;k=c[(f+(da+-8<<4)&p)+16>>2]|0;J=c[(ca&p)>>2]|0;z=(c[(f+(da+-10<<4)&p)+16>>2]|0)!=0;do if(z)if(!(c[(f+(C<<4)&p)+20>>2]|0)){c[($&p)>>2]=D;if(!H){s=0;t=0;break}else{v=1;aa=483;break}}else{th(ca,29664,ba);s=0;t=0;break}else{v=er(ca,D,E,$)|0;if((v|0)>-1&(H|0)!=0)aa=483;else{s=0;t=0}}while(0);do if((aa|0)==483){h=J+65|0;if(!(a[(h&n)>>0]|0)){x=J+145|0;if((a[(x&n)>>0]|0)!=0&(v|0)!=1){aa=H+12|0;mg(J,c[(aa&p)>>2]|0);c[(aa&p)>>2]=0}w=Jr(ca,H)|0;if((a[(x&n)>>0]|0)==0?((w|0)!=0?(c[(f+(C<<4)&p)+20>>2]|0)==0:0):0)v=(c[(w&p)+68>>2]|0)==(c[((c[(J&p)+16>>2]|0)&p)+28>>2]|0)?1:v;if((a[(h&n)>>0]|0)==0?(R=c[($&p)>>2]|0,aa=c[(ca&p)>>2]|0,c[(_&p)>>2]=ca,aa=c[(aa&p)+16>>2]|0,c[(_&p)+12>>2]=c[(aa+(v<<4)&p)>>2],c[(_&p)+4>>2]=c[(aa+(v<<4)&p)+12>>2],c[(_&p)+16>>2]=10720,c[(_&p)+20>>2]=R,c[(_&p)+8>>2]=(v|0)==1&1,(Kr(_,H)|0)==0):0){x=Jr(ca,H)|0;if(!x){if((a[(J&n)+144>>0]|0)!=1){s=0;t=0;break}a[(J&n)+146>>0]=1;s=0;t=0;break}if(a[(x&n)+44>>0]&16){th(ca,29712,ba);s=0;t=0;break}t=Wq(J,R)|0;if(t)if(!(Lr(ca,t)|0)){A=J+16|0;aa=bn((c[((c[(A&p)>>2]|0)+(v<<4)&p)+12>>2]|0)+40|0,t,S)|0;if((aa|0)!=0?(c[(aa&p)+8>>2]|0)!=0:0)if(!k){c[(ba&p)>>2]=R;th(ca,29760,ba);s=0;break}else{Ar(ca,v);s=0;break}y=c[(x&p)>>2]|0;if(!(Fc(y,25568,7)|0)){th(ca,29792,ba);s=ca+64|0;c[(s&p)>>2]=(c[(s&p)>>2]|0)+1;s=0;break}u=c[(x&p)+12>>2]|0;if((u|0)!=0&(r|0)!=49){c[(ba&p)>>2]=(r|0)==35?29872:29880;c[(ba&p)+4>>2]=H;c[(ba&p)+8>>2]=0;th(ca,29832,ba);s=0;break}q=(r|0)==49;if((u|0)==0&q){c[(ba&p)>>2]=H;c[(ba&p)+4>>2]=0;th(ca,29888,ba);s=0;break}m=x+68|0;x=c[(m&p)>>2]|0;i:do if(x){w=c[(J&p)+20>>2]|0;if((w|0)>0){k=c[(A&p)>>2]|0;l=0;while(1){h=l+1|0;if((c[(k+(l<<4)&p)+12>>2]|0)==(x|0)){h=l;break i}if((h|0)<(w|0))l=h;else break}}else h=0}else h=-1e6;while(0);x=c[(A&p)>>2]|0;k=c[(x+(h<<4)&p)>>2]|0;if(z)w=c[(x&p)+16>>2]|0;else w=k;x=(h|0)==1;if((Sq(ca,x|z?5:7,t,y,w)|0)==0?(Sq(ca,18,x?13184:13208,0,k)|0)==0:0){s=mh(J,36,0)|0;if(!s){s=0;break}y=s+0|0;k=y+36|0;do{a[(y&n)>>0]=0;y=y+1|0}while((y|0)<(k|0));c[(s&p)>>2]=t;c[(s&p)+4>>2]=kh(J,c[(H&p)+16>>2]|0)|0;c[(s&p)+20>>2]=c[((c[(A&p)>>2]|0)+(v<<4)&p)+12>>2];c[(s&p)+24>>2]=c[(m&p)>>2];a[(s&n)+8>>0]=B;a[(s&n)+9>>0]=q|(r|0)==35?1:2;c[(s&p)+12>>2]=Mr(J,I,1,0)|0;c[(s&p)+16>>2]=Nr(J,F)|0;c[(ca&p)+488>>2]=s;t=0}else s=0}else s=0;else{s=0;t=0}}else{s=0;t=0}}else{s=0;t=0}}while(0);mg(J,t);Do(J,H);Hk(J,F);Gk(J,I);if(!(c[(ca&p)+488>>2]|0))jg(J,s);if(!(c[(f+(C<<4)&p)+20>>2]|0)){aa=D;ba=c[(aa&p)+4>>2]|0;ca=ea;c[(ca&p)>>2]=c[(aa&p)>>2];c[(ca&p)+4>>2]=ba;break a}else{aa=E;ba=c[(aa&p)+4>>2]|0;ca=ea;c[(ca&p)>>2]=c[(aa&p)>>2];c[(ca&p)+4>>2]=ba;break a}}case 269:case 266:{c[(ea&p)>>2]=35;break}case 267:{c[(ea&p)>>2]=31;break}case 268:{c[(ea&p)>>2]=49;break}case 284:{l=c[(ca&p)>>2]|0;k=c[(f+(da+-1<<4)&p)+16>>2]|0;h=c[(f+(da<<4)&p)+16>>2]|0;m=a[(f+(da+-5<<4)&n)+16>>0]|0;q=Or(l,110,f+(da+-4<<4)+16|0)|0;if(q){c[(q&p)+24>>2]=Pr(l,k,1)|0;c[(q&p)+20>>2]=Mr(l,h,1,0)|0;a[(q&n)+1>>0]=m}Nk(l,k);Gk(l,h);c[(ea&p)>>2]=q;break}case 271:case 270:{c[(ea&p)>>2]=d[(f+(da<<4)&n)+14>>0];c[(ea&p)+4>>2]=0;break}case 272:{c[(ea&p)>>2]=110;c[(ea&p)+4>>2]=c[(f+(da<<4)&p)+16>>2];break}case 296:case 275:{c[(ea&p)>>2]=0;break}case 297:case 276:{c[(ea&p)>>2]=c[(f+(da<<4)&p)+16>>2];break}case 277:{ba=f+(da+-1<<4)+16|0;ca=f+(da+-2<<4)+16|0;c[((c[((c[(ca&p)>>2]|0)&p)+36>>2]|0)&p)+32>>2]=c[(ba&p)>>2];c[((c[(ca&p)>>2]|0)&p)+36>>2]=c[(ba&p)>>2];c[(ea&p)>>2]=c[(ca&p)>>2];break}case 278:{ca=f+(da+-1<<4)+16|0;ba=c[(ca&p)>>2]|0;c[(ba&p)+36>>2]=ba;c[(ea&p)>>2]=c[(ca&p)>>2];break}case 282:{th(ca,20736,ba);break}case 280:{_=f+(da<<4)+16|0;$=c[(_&p)+4>>2]|0;aa=ea;c[(aa&p)>>2]=c[(_&p)>>2];c[(aa&p)+4>>2]=$;th(ca,20640,ba);break}case 283:{th(ca,20824,ba);break}case 286:{h=c[(ca&p)>>2]|0;k=c[(f+(da<<4)&p)+16>>2]|0;l=Or(h,109,f+(da+-2<<4)+16|0)|0;if(l){c[(l&p)+20>>2]=Mr(h,k,1,0)|0;a[(l&n)+1>>0]=10}Gk(h,k);c[(ea&p)>>2]=l;break}case 287:{l=c[(ca&p)>>2]|0;q=c[(f+(da<<4)&p)+16>>2]|0;h=mh(l,40,0)|0;if(!h){Mk(l,q,1);h=0}else{y=h+0|0;k=y+40|0;do{a[(y&n)>>0]=0;y=y+1|0}while((y|0)<(k|0));a[(h&n)>>0]=119;c[(h&p)+8>>2]=q;a[(h&n)+1>>0]=10}c[(ea&p)>>2]=h;break}case 285:{q=c[(ca&p)>>2]|0;m=c[(f+(da+-1<<4)&p)+16>>2]|0;l=c[(f+(da<<4)&p)+16>>2]|0;k=a[(f+(da+-4<<4)&n)+16>>0]|0;h=Or(q,108,f+(da+-2<<4)+16|0)|0;if(!h)Hk(q,m);else{c[(h&p)+8>>2]=gr(q,l,1)|0;c[(h&p)+28>>2]=m;a[(h&n)+1>>0]=k}Mk(q,l,1);c[(ea&p)>>2]=h;break}case 288:{h=Zq(ca,57,0,0,0)|0;c[(ea&p)>>2]=h;if(h)a[(h&n)+1>>0]=4;c[(ea&p)+4>>2]=c[(f+(da+-3<<4)&p)+16>>2];c[(ea&p)+8>>2]=(c[(f+(da<<4)&p)+16>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0);break}case 289:{h=Zq(ca,57,0,0,f+(da+-1<<4)+16|0)|0;c[(ea&p)>>2]=h;if(h)a[(h&n)+1>>0]=c[(f+(da+-3<<4)&p)+16>>2];c[(ea&p)+4>>2]=c[(f+(da+-5<<4)&p)+16>>2];c[(ea&p)+8>>2]=(c[(f+(da<<4)&p)+16>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0);break}case 290:{c[(ea&p)>>2]=1;break}case 292:{c[(ea&p)>>2]=3;break}case 293:{k=c[(f+(da<<4)&p)+16>>2]|0;h=c[(f+(da+-1<<4)&p)+16>>2]|0;w=c[(ca&p)>>2]|0;do if((a[(w&n)+65>>0]|0)==0?(Gn(ca)|0)==0:0){x=c[(k&p)+12>>2]|0;v=c[(k&p)+16>>2]|0;u=w+20|0;if((c[(u&p)>>2]|0)>0){q=(x|0)==0;m=w+16|0;l=0;s=0;do{r=(l|0)<2^l;t=c[(m&p)>>2]|0;if(!(!q?(dd(c[(t+(r<<4)&p)>>2]|0,x)|0)!=0:0)){t=bn((c[(t+(r<<4)&p)+12>>2]|0)+40|0,v,L)|0;if(t){s=c[(t&p)+8>>2]|0;if(s)break}else s=0}l=l+1|0}while((l|0)<(c[(u&p)>>2]|0));if(s){Qr(ca,s);break}}if(!h){c[(ba&p)>>2]=k;c[(ba&p)+4>>2]=0;th(ca,29600,ba)}else zr(ca,x);a[(ca&n)+17>>0]=1}while(0);Do(w,k);break}case 294:{ba=c[(f+(da+-3<<4)&p)+16>>2]|0;Rr(ca,24,29360,ba,ba,c[(f+(da+-1<<4)&p)+16>>2]|0,c[(f+(da<<4)&p)+16>>2]|0);break}case 303:{Tr(ca,f+(da+-1<<4)+16|0,f+(da<<4)+16|0);break}case 304:{z=c[(f+(da+-3<<4)&p)+16>>2]|0;x=f+(da<<4)+16|0;y=c[(ca&p)>>2]|0;k=y+24|0;l=c[(k&p)>>2]|0;do if((a[(y&n)+65>>0]|0)==0?(X=Ur(ca,0,z+8|0)|0,(X|0)!=0):0){t=c[(ca&p)>>2]|0;A=X+68|0;v=c[(A&p)>>2]|0;j:do if(v){u=c[(t&p)+20>>2]|0;if((u|0)>0){t=c[(t&p)+16>>2]|0;r=0;while(1){s=r+1|0;if((c[(t+(r<<4)&p)+12>>2]|0)==(v|0)){s=r;break j}if((s|0)<(u|0))r=s;else break}}else s=0}else s=-1e6;while(0);h=c[((c[(y&p)+16>>2]|0)+(s<<4)&p)>>2]|0;c[(k&p)>>2]=c[(k&p)>>2]|2097152;q=Wq(y,x)|0;if(q){if((_h(y,q,h)|0)==0?(bq(y,q,h)|0)==0:0){if(Vr(ca,c[(X&p)>>2]|0)|0)break;if(Lr(ca,q)|0)break;t=c[(X&p)>>2]|0;if(c[(X&p)+12>>2]|0){c[(ba&p)>>2]=t;th(ca,26088,ba);break}if(Sq(ca,26,h,t,0)|0)break;if(hr(ca,X)|0)break;if(!(a[(X&n)+44>>0]&16))m=0;else{t=c[(X&p)+60>>2]|0;k:do if(!t)t=0;else while(1){if((c[(t&p)>>2]|0)==(y|0))break k;t=c[(t&p)+24>>2]|0;if(!t){t=0;break}}while(0);m=(c[((c[(c[(t&p)+8>>2]&p)>>2]|0)&p)+76>>2]|0)==0?0:t}t=Oq(ca)|0;if(!t)break;aa=(m|0)!=0;r=ca+408|0;$=c[(r&p)>>2]|0;$=($|0)==0?ca:$;Ar(ca,s);_=$+328|0;c[(_&p)>>2]=c[(_&p)>>2]|1<>0]=d[($&n)>>0]|aa&1;Dr(ca,s);if(aa){$=ca+72|0;aa=(c[($&p)>>2]|0)+1|0;c[($&p)>>2]=aa;xh(t,wh(t,97,0,aa,0)|0,q,0);xh(t,wh(t,152,aa,0,0)|0,m,-10);aa=c[(r&p)>>2]|0;a[(((aa|0)==0?ca:aa)&n)+21>>0]=1}x=c[(X&p)>>2]|0;w=Nn(x,-1)|0;do if((c[(k&p)>>2]&524288|0)!=0?(T=bn((c[(A&p)>>2]|0)+56|0,x,V)|0,(T|0)!=0):0){t=c[(T&p)+8>>2]|0;if(!t)break;r=t;t=0;do{t=Wr(c[(ca&p)>>2]|0,t,c[(c[(r&p)>>2]&p)>>2]|0)|0;r=c[(r&p)+12>>2]|0}while((r|0)!=0);if(!t)break;c[(ba&p)>>2]=h;c[(ba&p)+4>>2]=(s|0)==1?13184:13208;c[(ba&p)+8>>2]=x;c[(ba&p)+12>>2]=q;c[(ba&p)+16>>2]=t;Br(ca,26120,ba);mg(y,t)}while(0);c[(ba&p)>>2]=h;c[(ba&p)+4>>2]=(s|0)==1?13184:13208;c[(ba&p)+8>>2]=q;c[(ba&p)+12>>2]=q;c[(ba&p)+16>>2]=q;c[(ba&p)+20>>2]=q;c[(ba&p)+24>>2]=q;c[(ba&p)+28>>2]=w;c[(ba&p)+32>>2]=x;Br(ca,26192,ba);if(_h(y,26576,h)|0){aa=c[(X&p)>>2]|0;c[(ba&p)>>2]=h;c[(ba&p)+4>>2]=q;c[(ba&p)+8>>2]=aa;Br(ca,26592,ba)}s=Xr(ca,X)|0;if(s){c[(ba&p)>>2]=q;c[(ba&p)+4>>2]=q;c[(ba&p)+8>>2]=s;Br(ca,26656,ba);mg(y,s)}do if(c[(k&p)>>2]&524288){s=bn((c[(A&p)>>2]|0)+56|0,c[(X&p)>>2]|0,ba)|0;if(!s)break;s=c[(s&p)+8>>2]|0;if(!s)break;do{r=c[(s&p)>>2]|0;if((r|0)!=(X|0))Yr(ca,r,c[(r&p)>>2]|0);s=c[(s&p)+12>>2]|0}while((s|0)!=0)}while(0);Yr(ca,X,q);break}c[(ba&p)>>2]=q;th(ca,26024,ba)}else q=0}else q=0;while(0);Do(y,z);mg(y,q);c[(k&p)>>2]=l;break}case 295:{ba=c[(f+(da<<4)&p)+16>>2]|0;Rr(ca,25,29176,ba,0,0,ba);break}case 300:{Sr(ca,0,0);break}case 302:{Tr(ca,0,0);break}case 301:{Sr(ca,f+(da+-1<<4)+16|0,f+(da<<4)+16|0);break}case 305:{y=c[(ca&p)>>2]|0;if((c[(ca&p)+64>>2]|0)==0?(M=y+65|0,(a[(M&n)>>0]|0)==0):0){l=c[(ca&p)+484>>2]|0;t=c[(l&p)+68>>2]|0;l:do if(t){s=c[(y&p)+20>>2]|0;if((s|0)>0){r=c[(y&p)+16>>2]|0;m=0;while(1){q=m+1|0;if((c[(r+(m<<4)&p)+12>>2]|0)==(t|0)){A=m;break l}if((q|0)<(s|0))m=q;else{A=q;break}}}else A=0}else A=-1e6;while(0);h=c[((c[(y&p)+16>>2]|0)+(A<<4)&p)>>2]|0;k=(c[(l&p)>>2]|0)+16|0;u=(b[(l&o)+38>>1]|0)+-1|0;s=c[(l&p)+4>>2]|0;t=c[(s+(u*24|0)&p)+4>>2]|0;z=_h(y,k,h)|0;if(!(Sq(ca,26,h,c[(z&p)>>2]|0,0)|0)){if(!t)v=0;else v=(a[(t&n)>>0]|0)==101?0:t;if(a[(s+(u*24|0)&n)+23>>0]&1){th(ca,25608,ba);break a}if(c[(l&p)+8>>2]|0){th(ca,25640,ba);break a}x=y+24|0;if((c[(x&p)>>2]&524288|0)!=0?(c[(l&p)+16>>2]|0)!=0&(v|0)!=0:0){th(ca,25672,ba);break a}w=(v|0)!=0;if(!((a[(s+(u*24|0)&n)+20>>0]|0)==0|w)){th(ca,25736,ba);break a}do if(w){c[(O&p)>>2]=0;if(Zr(y,v,1,65,O)|0){a[(M&n)>>0]=1;break a}t=c[(O&p)>>2]|0;if(!t){th(ca,25792,ba);break a}else{Mh(t);break}}while(0);t=c[(f+(da<<4)&p)+16>>2]|0;s=f+(da<<4)+20|0;r=c[(s&p)>>2]|0;if((t|0)!=0?(U=jw(r|0,0,1,0)|0,U=mh(y,U,G)|0,(U|0)!=0):0){kw(U|0,t|0,r|0)|0;a[(U+r&n)>>0]=0;t=(c[(s&p)>>2]|0)+-1|0;s=c[(x&p)>>2]|0;m:do if((t|0)>0){t=U+t|0;do{$=a[(t&n)>>0]|0;if($<<24>>24!=59?(a[($&255&n)+10368>>0]&1)==0:0)break m;a[(t&n)>>0]=0;t=t+-1|0}while(t>>>0>U>>>0)}while(0);c[(x&p)>>2]=c[(x&p)>>2]|2097152;$=c[(l&p)+48>>2]|0;c[(ba&p)>>2]=h;c[(ba&p)+4>>2]=(A|0)==1?13184:13208;c[(ba&p)+8>>2]=$;c[(ba&p)+12>>2]=U;c[(ba&p)+16>>2]=$+1;c[(ba&p)+20>>2]=k;Br(ca,25840,ba);mg(y,U);c[(x&p)>>2]=s}t=w?3:2;v=Oq(ca)|0;if(v){s=ca+19|0;q=a[(s&n)>>0]|0;do if(q<<24>>24){ba=q+-1<<24>>24;a[(s&n)>>0]=ba;r=c[(ca+((ba&255)<<2)&p)+24>>2]|0;if(!(ba<<24>>24)){s=c[(ca&p)+72>>2]|0;aa=663;break}else{k=q+-2<<24>>24;a[(s&n)>>0]=k;k=c[(ca+((k&255)<<2)&p)+24>>2]|0;break}}else{r=ca+72|0;s=(c[(r&p)>>2]|0)+1|0;c[(r&p)>>2]=s;r=s;aa=663}while(0);if((aa|0)==663){k=s+1|0;c[(ca&p)+72>>2]=k}wh(v,51,A,r,2)|0;m=v+96|0;c[(m&p)>>2]=c[(m&p)>>2]|1<>2]|0;s=v+32|0;if(q)a[(q+(((c[(s&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=-112;wh(v,52,A,2,k)|0;s=c[(s&p)>>2]|0;if(s>>>0>m>>>0)c[((c[(l&p)>>2]|0)+(m*20|0)&p)+8>>2]=s;c[((c[(v&p)+24>>2]|0)&p)+88>>2]=s+-1;_r(ca,r);_r(ca,k)}Yr(ca,z,c[(z&p)>>2]|0)}}break}case 306:{w=c[(ca&p)>>2]|0;a[(w&n)+250>>0]=0;h=c[(f+(da<<4)&p)+16>>2]|0;x=w+65|0;do if((a[(x&n)>>0]|0)==0?(Q=Ur(ca,0,h+8|0)|0,(Q|0)!=0):0){if(a[(Q&n)+44>>0]&16){th(ca,25400,ba);break}if(c[(Q&p)+12>>2]|0){th(ca,25440,ba);break}if(!(Vr(ca,c[(Q&p)>>2]|0)|0)){s=c[(Q&p)+68>>2]|0;n:do if(s){r=c[(w&p)+20>>2]|0;if((r|0)>0){q=c[(w&p)+16>>2]|0;t=0;while(1){m=t+1|0;if((c[(q+(t<<4)&p)+12>>2]|0)==(s|0)){m=t;break n}if((m|0)<(r|0))t=m;else break}}else m=0}else m=-1e6;while(0);v=mh(w,76,0)|0;if(v){y=v+0|0;k=y+76|0;do{a[(y&n)>>0]=0;y=y+1|0}while((y|0)<(k|0));c[(ca&p)+484>>2]=v;r=v+40|0;b[(r&o)>>1]=1;t=b[(Q&o)+38>>1]|0;q=v+38|0;b[(q&o)>>1]=t;t=((((t<<16>>16)+-1|0)/8|0)*192|0)+192|0;s=mh(w,t,0)|0;if(s)fw(s|0,0,t|0)|0;t=v+4|0;c[(t&p)>>2]=s;c[(ba&p)>>2]=c[(Q&p)>>2];ba=uh(w,25472,ba)|0;c[(v&p)>>2]=ba;s=c[(t&p)>>2]|0;if((s|0)==0|(ba|0)==0){a[(x&n)>>0]=1;break}kw(s|0,c[(Q&p)+4>>2]|0,(b[(q&o)>>1]|0)*24|0)|0;if((b[(q&o)>>1]|0)>0){s=0;do{ba=c[(t&p)>>2]|0;aa=ba+(s*24|0)|0;c[(aa&p)>>2]=kh(w,c[(aa&p)>>2]|0)|0;ba=ba+(s*24|0)+4|0;s=s+1|0;c[(ba&p)>>2]=0;c[(ba&p)+4>>2]=0;c[(ba&p)+8>>2]=0;c[(ba&p)+12>>2]=0}while((s|0)<(b[(q&o)>>1]|0))}c[(v&p)+68>>2]=c[((c[(w&p)+16>>2]|0)+(m<<4)&p)+12>>2];c[(v&p)+48>>2]=c[(Q&p)+48>>2];b[(r&o)>>1]=1;ba=c[(ca&p)+408>>2]|0;Ar(ca,m);ba=((ba|0)==0?ca:ba)+328|0;c[(ba&p)>>2]=c[(ba&p)>>2]|1<>2]|0);t=c[(ca&p)+484>>2]|0;if(t){h=c[(ca&p)>>2]|0;s=c[(t&p)+68>>2]|0;o:do if(s){r=c[(h&p)+20>>2]|0;if((r|0)>0){m=c[(h&p)+16>>2]|0;l=0;while(1){q=l+1|0;if((c[(m+(l<<4)&p)+12>>2]|0)==(s|0)){q=l;break o}if((q|0)<(r|0))l=q;else break}}else q=0}else q=-1e6;while(0);l=t+44|0;a[(l&n)>>0]=d[(l&n)>>0]|16;c[(t&p)+52>>2]=0;as(h,t,Wq(h,k)|0);as(h,t,0);as(h,t,kh(h,c[(t&p)>>2]|0)|0);c[(ca&p)+500>>2]=(c[(k&p)>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0)-(c[(ca&p)+496>>2]|0);l=c[(t&p)+56>>2]|0;if(l)Sq(ca,29,c[(t&p)>>2]|0,c[(l&p)>>2]|0,c[((c[((c[(ca&p)>>2]|0)&p)+16>>2]|0)+(q<<4)&p)>>2]|0)|0}break}case 322:{c[(ea&p)>>2]=0;break}case 324:case 323:{c[(ea&p)>>2]=c[(f+(da<<4)&p)+16>>2];break}case 325:{c[(ea&p)>>2]=cs(ca,0,f+(da+-5<<4)+16|0,c[(f+(da+-4<<4)&p)+16>>2]|0,c[(f+(da+-1<<4)&p)+16>>2]|0)|0;break}case 326:{c[(ea&p)>>2]=cs(ca,c[(f+(da+-7<<4)&p)+16>>2]|0,f+(da+-5<<4)+16|0,c[(f+(da+-4<<4)&p)+16>>2]|0,c[(f+(da+-1<<4)&p)+16>>2]|0)|0;break}case 314:{bs(ca);c[(ca&p)+512>>2]=0;c[(ca&p)+516>>2]=0;break}case 318:case 317:case 316:{l=ca+512|0;k=c[(l&p)>>2]|0;h=c[(f+(da<<4)&p)+16>>2]|0;if(!k){c[(l&p)>>2]=h;h=c[(f+(da<<4)&p)+20>>2]|0}else h=h+(c[(f+(da<<4)&p)+20>>2]|0)-k|0;c[(ca&p)+516>>2]=h;break}case 77:{c[(ea&p)>>2]=8;break}case 78:{c[(ea&p)>>2]=9;break}case 79:{c[(ea&p)>>2]=6;break}case 80:{c[(ea&p)>>2]=0;break}case 103:case 100:case 98:case 82:{c[(ea&p)>>2]=c[(f+(da<<4)&p)+16>>2];break}case 86:{c[(ea&p)+4>>2]=0;c[(ea&p)>>2]=0;break}case 87:{aa=f+(da+-1<<4)+16|0;ba=c[(aa&p)+4>>2]|0;ca=ea;c[(ca&p)>>2]=c[(aa&p)>>2];c[(ca&p)+4>>2]=ba;break}case 90:{c[(ca&p)+324>>2]=0;break}case 109:{h=da+-7|0;r=f+(da+-3<<4)+16|0;q=f+(da+-2<<4)+16|0;x=c[(f+(da<<4)&p)+16>>2]|0;t=c[(f+(da+-6<<4)&p)+16>>2]|0;s=c[(f+(da+-4<<4)&p)+16>>2]|0;c[(I&p)>>2]=0;w=c[(ca&p)>>2]|0;if((c[(ca&p)+440>>2]|0)>0){th(ca,35440,ba);Mk(w,x,1);break a}Uq(ca,r,q,t,1,0,s);l=c[(ca&p)+484>>2]|0;if((l|0)!=0?(c[(ca&p)+64>>2]|0)==0:0){er(ca,r,q,I)|0;t=c[(l&p)+68>>2]|0;p:do if(t){r=c[(w&p)+20>>2]|0;if((r|0)>0){q=c[(w&p)+16>>2]|0;m=0;while(1){s=m+1|0;if((c[(q+(m<<4)&p)+12>>2]|0)==(t|0)){s=m;break p}if((s|0)<(r|0))m=s;else break}}else s=0}else s=-1e6;while(0);ba=c[(I&p)>>2]|0;aa=c[(ca&p)>>2]|0;c[(_&p)>>2]=ca;aa=c[(aa&p)+16>>2]|0;c[(_&p)+12>>2]=c[(aa+(s<<4)&p)>>2];c[(_&p)+4>>2]=c[(aa+(s<<4)&p)+12>>2];c[(_&p)+16>>2]=35480;c[(_&p)+20>>2]=ba;c[(_&p)+8>>2]=(s|0)==1&1;if(fr(_,x)|0){Mk(w,x,1);break a}c[(l&p)+12>>2]=gr(w,x,1)|0;Mk(w,x,1);if(a[(w&n)+65>>0]|0)break a;if(!(a[(w&n)+145>>0]|0))hr(ca,l)|0;q=ca+504|0;m=c[(q&p)>>2]|0;q=c[(q&p)+4>>2]|0;ba=$;c[(ba&p)>>2]=m;c[(ba&p)+4>>2]=q;ba=a[(m&n)>>0]|0;if(!(ba<<24>>24==59|ba<<24>>24==0)){m=m+q|0;c[($&p)>>2]=m}r=$+4|0;c[(r&p)>>2]=0;s=c[(f+(h<<4)&p)+16>>2]|0;q=m-s|0;do{ba=q;q=q+-1|0;l=s+q|0;if((ba|0)<=0)break}while((a[((d[(l&n)>>0]|0)&n)+10368>>0]&1)!=0);c[($&p)>>2]=l;c[(r&p)>>2]=1;Vq(ca,0,$,0,0);break a}Mk(w,x,1);break}case 93:{_q(ca,c[(f+(da+-3<<4)&p)+16>>2]|0,c[(f+(da<<4)&p)+16>>2]|0,c[(f+(da+-2<<4)&p)+16>>2]|0,0);break}case 94:{$q(ca,0,0,0,c[(f+(da+-2<<4)&p)+16>>2]|0,c[(f+(da<<4)&p)+16>>2]|0,0,0,0,0)|0;break}case 95:{ar(ca,c[(f+(da+-2<<4)&p)+16>>2]|0);break}case 96:{br(ca,c[(f+(da+-6<<4)&p)+16>>2]|0,f+(da+-3<<4)+16|0,c[(f+(da+-2<<4)&p)+16>>2]|0,c[(f+(da+-1<<4)&p)+16>>2]|0);k=c[(f+(da<<4)&p)+16>>2]|0;l=c[(ca&p)+484>>2]|0;if((l|0)!=0?(q=c[(l&p)+16>>2]|0,(q|0)!=0):0)a[(q&n)+24>>0]=k;break}case 99:{c[(ea&p)>>2]=10;break}case 101:{a[(ea&n)>>0]=10;break}case 102:{a[(ea&n)>>0]=c[(f+(da<<4)&p)+16>>2];break}case 104:{c[(ea&p)>>2]=4;break}case 105:{c[(ea&p)>>2]=5;break}case 106:{dr(ca,c[(f+(da<<4)&p)+16>>2]|0,0,c[(f+(da+-1<<4)&p)+16>>2]|0);break}case 110:{dr(ca,c[(f+(da<<4)&p)+16>>2]|0,1,c[(f+(da+-1<<4)&p)+16>>2]|0);break}case 111:{c[(z&p)>>2]=c[5124];c[(z&p)+4>>2]=c[5125];c[(z&p)+8>>2]=c[5126];c[(z&p)+12>>2]=c[5127];c[(z&p)+16>>2]=c[5128];ba=f+(da<<4)+16|0;ir(ca,c[(ba&p)>>2]|0,z)|0;Mk(c[(ca&p)>>2]|0,c[(ba&p)>>2]|0,1);break}case 112:{t=c[(f+(da<<4)&p)+16>>2]|0;do if(t){c[(t&p)+68>>2]=c[(f+(da+-1<<4)&p)+16>>2];l=c[(t&p)+52>>2]|0;if(l){m=128;q=1;r=t;s=0;while(1){c[(r&p)+56>>2]=s;$=r+6|0;aa=e[($&o)>>1]|64;b[($&o)>>1]=aa;m=aa&m;if(!l)break;aa=l;l=c[(l&p)+52>>2]|0;q=q+1|0;s=r;r=aa}if(m){ca=t+6|0;b[(ca&o)>>1]=e[(ca&o)>>1]|256;break}aa=c[((c[(ca&p)>>2]|0)&p)+104>>2]|0;if((aa|0)>0&(q|0)>(aa|0))th(ca,20520,ba)}}else Qn(c[(ca&p)>>2]|0,c[(f+(da+-1<<4)&p)+16>>2]|0);while(0);c[(ea&p)>>2]=t;break}case 116:{c[(ea&p)>>2]=116;break}case 119:case 113:{c[(ea&p)>>2]=c[(f+(da<<4)&p)+16>>2];break}case 114:{h=c[(f+(da<<4)&p)+16>>2]|0;do if(h){if(c[(h&p)+52>>2]|0){c[(l&p)+4>>2]=0;h=kr(ca,0,jr(ca,0,0,0,l,h,0,0)|0,0,0,0,0,0,0,0)|0;if(!h){aa=192;break}}ba=c[(f+(da+-1<<4)&p)+16>>2]|0;a[(h&n)+4>>0]=ba;c[(h&p)+52>>2]=c[(f+(da+-2<<4)&p)+16>>2];if((ba|0)!=116)a[(ca&n)+22>>0]=1}else aa=192;while(0);if((aa|0)==192){Mk(c[(ca&p)>>2]|0,c[(f+(da+-2<<4)&p)+16>>2]|0,1);h=0}c[(ea&p)>>2]=h;break}case 121:{h=kr(ca,c[(f+(da+-1<<4)&p)+16>>2]|0,0,0,0,0,0,128,0,0)|0;if(!h){c[(ea&p)>>2]=c[(f+(da+-4<<4)&p)+16>>2];break a}else{a[(h&n)+4>>0]=116;c[(h&p)+52>>2]=c[(f+(da+-4<<4)&p)+16>>2];c[(ea&p)>>2]=h;break a}}case 122:{b[(ea&o)>>1]=1;break}case 124:case 123:{b[(ea&o)>>1]=0;break}case 242:case 236:case 161:case 154:case 126:{c[(ea&p)>>2]=0;break}case 243:case 125:{c[(ea&p)>>2]=c[(f+(da+-1<<4)&p)+16>>2];break}case 167:{c[(ea&p)>>2]=c[(f+(da+-2<<4)&p)+16>>2];c[(ea&p)+4>>2]=c[(f+(da<<4)&p)+16>>2];break}case 168:{c[(ea&p)+4>>2]=c[(f+(da+-2<<4)&p)+16>>2];c[(ea&p)>>2]=c[(f+(da<<4)&p)+16>>2];break}case 169:{h=c[(f+(da+-5<<4)&p)+16>>2]|0;if(h){ba=ca+532|0;c[(h&p)+4>>2]=c[(ba&p)>>2];c[(ba&p)>>2]=h;a[(ca&n)+449>>0]=1}ba=f+(da+-2<<4)+16|0;or(ca,c[(ba&p)>>2]|0,f+(da+-1<<4)+16|0);rr(ca,c[(ba&p)>>2]|0,c[(f+(da<<4)&p)+16>>2]|0);break}case 176:{h=c[(f+(da+-6<<4)&p)+16>>2]|0;if(h){ba=ca+532|0;c[(h&p)+4>>2]=c[(ba&p)>>2];c[(ba&p)>>2]=h;a[(ca&n)+449>>0]=1}tr(ca,c[(f+(da+-3<<4)&p)+16>>2]|0,0,c[(f+(da+-2<<4)&p)+16>>2]|0,d[(f+(da+-5<<4)&n)+16>>0]|0);break}case 173:{ba=lr(ca,c[(f+(da+-4<<4)&p)+16>>2]|0,c[(f+(da<<4)&p)+16>>2]|0)|0;c[(ea&p)>>2]=ba;mr(ca,ba,f+(da+-2<<4)+16|0,1);break}case 174:{ba=lr(ca,0,c[(f+(da<<4)&p)+16>>2]|0)|0;c[(ea&p)>>2]=ba;mr(ca,ba,f+(da+-2<<4)+16|0,1);break}case 175:{h=c[(f+(da+-5<<4)&p)+16>>2]|0;if(h){ba=ca+532|0;c[(h&p)+4>>2]=c[(ba&p)>>2];c[(ba&p)>>2]=h;a[(ca&n)+449>>0]=1}tr(ca,c[(f+(da+-2<<4)&p)+16>>2]|0,c[(f+(da<<4)&p)+16>>2]|0,c[(f+(da+-1<<4)&p)+16>>2]|0,d[(f+(da+-4<<4)&n)+16>>0]|0);break}case 181:{c[(ea&p)>>2]=ur(c[(ca&p)>>2]|0,c[(f+(da+-2<<4)&p)+16>>2]|0,f+(da<<4)+16|0)|0;break}case 182:{c[(ea&p)>>2]=ur(c[(ca&p)>>2]|0,0,f+(da<<4)+16|0)|0;break}case 183:{ca=f+(da<<4)+16|0;c[(ea&p)>>2]=c[(ca&p)>>2];c[(ea&p)+4>>2]=c[(ca&p)+4>>2];c[(ea&p)+8>>2]=c[(ca&p)+8>>2];break}case 177:{a[(ea&n)>>0]=a[(f+(da<<4)&n)+16>>0]|0;break}case 178:{a[(ea&n)>>0]=5;break}case 184:{c[(ea&p)>>2]=c[(f+(da+-1<<4)&p)+16>>2];c[(ea&p)+4>>2]=c[(f+(da+-2<<4)&p)+16>>2];c[(ea&p)+8>>2]=(c[(f+(da<<4)&p)+16>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0);break}case 191:case 190:case 185:{ba=f+(da<<4)+16|0;c[(ea&p)>>2]=Zq(ca,d[(f+(da<<4)&n)+14>>0]|0,0,0,ba)|0;ca=c[(ba&p)>>2]|0;c[(ea&p)+4>>2]=ca;c[(ea&p)+8>>2]=ca+(c[(f+(da<<4)&p)+20>>2]|0);break}case 187:case 186:{ba=f+(da<<4)+16|0;c[(ea&p)>>2]=Zq(ca,27,0,0,ba)|0;ca=c[(ba&p)>>2]|0;c[(ea&p)+4>>2]=ca;c[(ea&p)+8>>2]=ca+(c[(f+(da<<4)&p)+20>>2]|0);break}case 188:{aa=f+(da+-2<<4)+16|0;ba=f+(da<<4)+16|0;c[(ea&p)>>2]=Zq(ca,122,Zq(ca,27,0,0,aa)|0,Zq(ca,27,0,0,ba)|0,0)|0;c[(ea&p)+4>>2]=c[(aa&p)>>2];c[(ea&p)+8>>2]=(c[(ba&p)>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0);break}case 189:{aa=f+(da+-4<<4)+16|0;ba=f+(da<<4)+16|0;c[(ea&p)>>2]=Zq(ca,122,Zq(ca,27,0,0,aa)|0,Zq(ca,122,Zq(ca,27,0,0,f+(da+-2<<4)+16|0)|0,Zq(ca,27,0,0,ba)|0,0)|0,0)|0;c[(ea&p)+4>>2]=c[(aa&p)>>2];c[(ea&p)+8>>2]=(c[(ba&p)>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0);break}case 192:{x=f+(da<<4)+16|0;w=f+(da<<4)+20|0;do if(((c[(w&p)>>2]|0)>>>0>1?(C=c[(x&p)>>2]|0,(a[(C&n)>>0]|0)==35):0)?((d[(C&n)+1>>0]|0)+-48|0)>>>0<10:0){if(!(a[(ca&n)+18>>0]|0)){c[(ba&p)>>2]=x;th(ca,20432,ba);c[(ea&p)>>2]=0;break}r=Zq(ca,159,0,0,x)|0;c[(ea&p)>>2]=r;if(r)Dn((c[(x&p)>>2]|0)+1|0,r+28|0)|0}else aa=298;while(0);q:do if((aa|0)==298?(P=Zq(ca,135,0,0,x)|0,c[(ea&p)>>2]=P,W=c[(x&p)>>2]|0,c[(ea&p)+4>>2]=W,c[(ea&p)+8>>2]=W+(c[(w&p)>>2]|0),W=c[(ca&p)>>2]|0,(P|0)!=0):0){z=c[(P&p)+8>>2]|0;r=z+1|0;do if(a[(r&n)>>0]|0){y=(z|0)==0;if(y)A=0;else{t=z;while(1)if(!(a[(t&n)>>0]|0))break;else t=t+1|0;A=t-z&1073741823}r:do if((a[(z&n)>>0]|0)==63){$=Ul(r,H,A+-1|0,1)|0;m=H;q=c[(m&p)>>2]|0;m=c[(m&p)+4>>2]|0;t=q&65535;b[(P&o)+32>>1]=t;r=c[(W&p)+124>>2]|0;aa=((r|0)<0)<<31>>31;if((m|0)<0|(m|0)==0&q>>>0<1|($|0)!=0|((m|0)>(aa|0)|(m|0)==(aa|0)&q>>>0>r>>>0)){c[(ba&p)>>2]=r;th(ca,33296,ba);t=0}r=ca+440|0;aa=c[(r&p)>>2]|0;$=((aa|0)<0)<<31>>31;if((m|0)>($|0)|(m|0)==($|0)&q>>>0>aa>>>0)c[(r&p)>>2]=q}else{r=c[(ca&p)+444>>2]|0;s:do if((r|0)>0){q=c[(ca&p)+472>>2]|0;t=0;l=0;while(1){m=c[(q+(t<<2)&p)>>2]|0;if((m|0)!=0?(_v(m,z)|0)==0:0)break;l=l+1<<16>>16;t=l<<16>>16;if((t|0)>=(r|0)){aa=315;break s}}t=t+1&65535;r=P+32|0;b[(r&o)>>1]=t;if(t<<16>>16)break r}else aa=315;while(0);if((aa|0)==315)r=P+32|0;aa=ca+440|0;t=(c[(aa&p)>>2]|0)+1|0;c[(aa&p)>>2]=t;t=t&65535;b[(r&o)>>1]=t}while(0);m=t<<16>>16;if(t<<16>>16>0){t=ca+444|0;if((m|0)>(c[(t&p)>>2]|0)){r=ca+472|0;q=ro(W,c[(r&p)>>2]|0,m<<2,0)|0;if(!q)break q;c[(r&p)>>2]=q;aa=c[(t&p)>>2]|0;fw(q+(aa<<2)|0,0,m-aa<<2|0)|0;c[(t&p)>>2]=m}if((a[(z&n)>>0]|0)==63){r=m+-1|0;if(!(c[((c[(ca&p)+472>>2]|0)+(r<<2)&p)>>2]|0))t=0;else break}else{t=m+-1|0;r=t;t=c[((c[(ca&p)+472>>2]|0)+(t<<2)&p)>>2]|0}q=ca+472|0;mg(W,t);if(!y?(s=jw(A|0,0,1,0)|0,s=mh(W,s,G)|0,(s|0)!=0):0){kw(s|0,z|0,A|0)|0;a[(s+A&n)>>0]=0}else s=0;c[((c[(q&p)>>2]|0)+(r<<2)&p)>>2]=s}}else{$=ca+440|0;aa=(c[($&p)>>2]|0)+1|0;c[($&p)>>2]=aa;b[(P&o)+32>>1]=aa}while(0);if((c[(ca&p)+64>>2]|0)==0?(c[(ca&p)+440>>2]|0)>(c[(W&p)+124>>2]|0):0)th(ca,33344,ba)}while(0);ca=c[(x&p)>>2]|0;c[(ea&p)+4>>2]=ca;c[(ea&p)+8>>2]=ca+(c[(w&p)>>2]|0);break}case 196:{ba=f+(da+-3<<4)+16|0;c[(ea&p)>>2]=wr(ca,0,ba)|0;c[(ea&p)+4>>2]=c[(ba&p)>>2];c[(ea&p)+8>>2]=(c[(f+(da<<4)&p)+16>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0);break}case 197:{ba=f+(da<<4)+16|0;c[(ea&p)>>2]=wr(ca,0,ba)|0;ca=c[(ba&p)>>2]|0;c[(ea&p)+4>>2]=ca;c[(ea&p)+8>>2]=ca+(c[(f+(da<<4)&p)+20>>2]|0);break}case 193:{aa=da+-2|0;ba=f+(da<<4)+16|0;c[(ea&p)>>2]=vr(ca,c[(f+(aa<<4)&p)+16>>2]|0,ba,1)|0;c[(ea&p)+4>>2]=c[(f+(aa<<4)&p)+20>>2];c[(ea&p)+8>>2]=(c[(ba&p)>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0);break}case 194:{c[(ea&p)>>2]=Zq(ca,38,c[(f+(da+-3<<4)&p)+16>>2]|0,0,f+(da+-1<<4)+16|0)|0;c[(ea&p)+4>>2]=c[(f+(da+-5<<4)&p)+16>>2];c[(ea&p)+8>>2]=(c[(f+(da<<4)&p)+16>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0);break}case 195:{l=f+(da+-1<<4)+16|0;h=c[(l&p)>>2]|0;if(h){if((c[(h&p)>>2]|0)>(c[((c[(ca&p)>>2]|0)&p)+112>>2]|0)){c[(ba&p)>>2]=f+(da+-4<<4)+16;th(ca,20576,ba);h=c[(l&p)>>2]|0}}else h=0;ba=f+(da+-4<<4)+16|0;h=wr(ca,h,ba)|0;c[(ea&p)>>2]=h;c[(ea&p)+4>>2]=c[(ba&p)>>2];c[(ea&p)+8>>2]=(c[(f+(da<<4)&p)+16>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0);if(!((h|0)==0?1:(b[(f+(da+-2<<4)&o)+16>>1]|0)==0)){ca=h+4|0;c[(ca&p)>>2]=c[(ca&p)>>2]|16}break}case 205:case 204:case 203:case 202:case 201:case 200:case 199:case 198:{ba=da+-2|0;c[(ea&p)>>2]=Zq(ca,d[(f+(da+-1<<4)&n)+14>>0]|0,c[(f+(ba<<4)&p)+16>>2]|0,c[(f+(da<<4)&p)+16>>2]|0,0)|0;c[(ea&p)+4>>2]=c[(f+(ba<<4)&p)+20>>2];c[(ea&p)+8>>2]=c[(f+(da<<4)&p)+24>>2];break}case 206:{aa=f+(da<<4)+16|0;ba=c[(aa&p)+4>>2]|0;ca=ea;c[(ca&p)>>2]=c[(aa&p)>>2];c[(ca&p)+4>>2]=ba;c[(ea&p)+8>>2]=0;break}case 207:{aa=f+(da<<4)+16|0;ba=c[(aa&p)+4>>2]|0;ca=ea;c[(ca&p)>>2]=c[(aa&p)>>2];c[(ca&p)+4>>2]=ba;c[(ea&p)+8>>2]=1;break}case 208:{l=da+-2|0;ba=da+-1|0;h=wr(ca,lr(ca,lr(ca,0,c[(f+(da<<4)&p)+16>>2]|0)|0,c[(f+(l<<4)&p)+16>>2]|0)|0,f+(ba<<4)+16|0)|0;c[(ea&p)>>2]=h;if(c[(f+(ba<<4)&p)+24>>2]|0){h=Zq(ca,19,h,0,0)|0;c[(ea&p)>>2]=h}c[(ea&p)+4>>2]=c[(f+(l<<4)&p)+20>>2];c[(ea&p)+8>>2]=c[(f+(da<<4)&p)+24>>2];if(h){ca=h+4|0;c[(ca&p)>>2]=c[(ca&p)>>2]|128}break}case 210:{ba=da+-1|0;c[(ea&p)>>2]=Zq(ca,d[(f+(da<<4)&n)+14>>0]|0,c[(f+(ba<<4)&p)+16>>2]|0,0,0)|0;c[(ea&p)+4>>2]=c[(f+(ba<<4)&p)+20>>2];c[(ea&p)+8>>2]=(c[(f+(da<<4)&p)+16>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0);break}case 209:{l=da+-4|0;ba=da+-3|0;h=wr(ca,lr(ca,lr(ca,lr(ca,0,c[(f+(da+-2<<4)&p)+16>>2]|0)|0,c[(f+(l<<4)&p)+16>>2]|0)|0,c[(f+(da<<4)&p)+16>>2]|0)|0,f+(ba<<4)+16|0)|0;c[(ea&p)>>2]=h;if(c[(f+(ba<<4)&p)+24>>2]|0){h=Zq(ca,19,h,0,0)|0;c[(ea&p)>>2]=h}c[(ea&p)+4>>2]=c[(f+(l<<4)&p)+20>>2];c[(ea&p)+8>>2]=c[(f+(da<<4)&p)+24>>2];if(h){ca=h+4|0;c[(ca&p)>>2]=c[(ca&p)>>2]|128}break}case 223:{l=f+(da+-1<<4)+16|0;h=c[(l&p)>>2]|0;do if(h){if((c[(h&p)>>2]|0)==1){ba=c[(h&p)+4>>2]|0;h=c[(ba&p)>>2]|0;c[(ba&p)>>2]=0;Nk(c[(ca&p)>>2]|0,c[(l&p)>>2]|0);if(h){ba=h+4|0;c[(ba&p)>>2]=c[(ba&p)>>2]&-769|512}c[(ea&p)>>2]=Zq(ca,(c[(f+(da+-3<<4)&p)+16>>2]|0)!=0?78:79,c[(f+(da+-4<<4)&p)+16>>2]|0,h,0)|0;break}h=Zq(ca,75,c[(f+(da+-4<<4)&p)+16>>2]|0,0,0)|0;c[(ea&p)>>2]=h;if(!h){Nk(c[(ca&p)>>2]|0,c[(l&p)>>2]|0);h=0}else{c[(h&p)+20>>2]=c[(l&p)>>2];h=c[(ea&p)>>2]|0;yr(ca,h)}if(c[(f+(da+-3<<4)&p)+16>>2]|0)c[(ea&p)>>2]=Zq(ca,19,h,0,0)|0}else{c[(ea&p)>>2]=Zq(ca,132,0,0,20616+(c[(f+(da+-3<<4)&p)+16>>2]<<3)|0)|0;Gk(c[(ca&p)>>2]|0,c[(f+(da+-4<<4)&p)+16>>2]|0)}while(0);c[(ea&p)+4>>2]=c[(f+(da+-4<<4)&p)+20>>2];c[(ea&p)+8>>2]=(c[(f+(da<<4)&p)+16>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0);break}case 211:{ba=da+-2|0;c[(ea&p)>>2]=Zq(ca,77,c[(f+(ba<<4)&p)+16>>2]|0,0,0)|0;c[(ea&p)+4>>2]=c[(f+(ba<<4)&p)+20>>2];c[(ea&p)+8>>2]=(c[(f+(da<<4)&p)+16>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0);break}case 212:{$=da+-2|0;aa=f+(da<<4)+16|0;ba=Zq(ca,73,c[(f+($<<4)&p)+16>>2]|0,c[(aa&p)>>2]|0,0)|0;c[(ea&p)>>2]=ba;c[(ea&p)+4>>2]=c[(f+($<<4)&p)+20>>2];c[(ea&p)+8>>2]=c[(f+(da<<4)&p)+24>>2];xr(ca,c[(aa&p)>>2]|0,ba,76);break}case 213:{$=da+-3|0;aa=f+(da<<4)+16|0;ba=Zq(ca,148,c[(f+($<<4)&p)+16>>2]|0,c[(aa&p)>>2]|0,0)|0;c[(ea&p)>>2]=ba;c[(ea&p)+4>>2]=c[(f+($<<4)&p)+20>>2];c[(ea&p)+8>>2]=c[(f+(da<<4)&p)+24>>2];xr(ca,c[(aa&p)>>2]|0,ba,77);break}case 215:case 214:{ba=da+-1|0;c[(ea&p)>>2]=Zq(ca,d[(f+(ba<<4)&n)+14>>0]|0,c[(f+(da<<4)&p)+16>>2]|0,0,0)|0;c[(ea&p)+4>>2]=c[(f+(ba<<4)&p)+16>>2];c[(ea&p)+8>>2]=c[(f+(da<<4)&p)+24>>2];break}case 216:{c[(ea&p)>>2]=Zq(ca,157,c[(f+(da<<4)&p)+16>>2]|0,0,0)|0;c[(ea&p)+4>>2]=c[(f+(da+-1<<4)&p)+16>>2];c[(ea&p)+8>>2]=c[(f+(da<<4)&p)+24>>2];break}case 217:{c[(ea&p)>>2]=Zq(ca,158,c[(f+(da<<4)&p)+16>>2]|0,0,0)|0;c[(ea&p)+4>>2]=c[(f+(da+-1<<4)&p)+16>>2];c[(ea&p)+8>>2]=c[(f+(da<<4)&p)+24>>2];break}case 220:{k=lr(ca,lr(ca,0,c[(f+(da+-2<<4)&p)+16>>2]|0)|0,c[(f+(da<<4)&p)+16>>2]|0)|0;l=da+-4|0;h=Zq(ca,74,c[(f+(l<<4)&p)+16>>2]|0,0,0)|0;c[(ea&p)>>2]=h;if(!h)Nk(c[(ca&p)>>2]|0,k);else c[(h&p)+20>>2]=k;if(c[(f+(da+-3<<4)&p)+16>>2]|0)c[(ea&p)>>2]=Zq(ca,19,c[(ea&p)>>2]|0,0,0)|0;c[(ea&p)+4>>2]=c[(f+(l<<4)&p)+20>>2];c[(ea&p)+8>>2]=c[(f+(da<<4)&p)+24>>2];break}case 224:{h=Zq(ca,119,0,0,0)|0;c[(ea&p)>>2]=h;if(!h)Mk(c[(ca&p)>>2]|0,c[(f+(da+-1<<4)&p)+16>>2]|0,1);else{c[(h&p)+20>>2]=c[(f+(da+-1<<4)&p)+16>>2];ba=c[(ea&p)>>2]|0;aa=ba+4|0;c[(aa&p)>>2]=c[(aa&p)>>2]|2099200;yr(ca,ba)}c[(ea&p)+4>>2]=c[(f+(da+-2<<4)&p)+16>>2];c[(ea&p)+8>>2]=(c[(f+(da<<4)&p)+16>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0);break}case 118:{c[(ea&p)>>2]=kr(ca,c[(f+(da+-6<<4)&p)+16>>2]|0,c[(f+(da+-5<<4)&p)+16>>2]|0,c[(f+(da+-4<<4)&p)+16>>2]|0,c[(f+(da+-3<<4)&p)+16>>2]|0,c[(f+(da+-2<<4)&p)+16>>2]|0,c[(f+(da+-1<<4)&p)+16>>2]|0,b[(f+(da+-7<<4)&o)+16>>1]|0,c[(f+(da<<4)&p)+16>>2]|0,c[(f+(da<<4)&p)+20>>2]|0)|0;break}case 120:{c[(ea&p)>>2]=kr(ca,c[(f+(da+-1<<4)&p)+16>>2]|0,0,0,0,0,0,128,0,0)|0;break}case 127:{l=da+-1|0;q=lr(ca,c[(f+(da+-2<<4)&p)+16>>2]|0,c[(f+(l<<4)&p)+16>>2]|0)|0;c[(ea&p)>>2]=q;if(c[(f+(da<<4)&p)+20>>2]|0)mr(ca,q,f+(da<<4)+16|0,1);s=c[(ca&p)>>2]|0;if(q){r=(c[(q&p)+4>>2]|0)+(((c[(q&p)>>2]|0)+-1|0)*20|0)+8|0;mg(s,c[(r&p)>>2]|0);m=c[(f+(l<<4)&p)+20>>2]|0;q=(c[(f+(l<<4)&p)+24>>2]|0)-m|0;if((m|0)!=0?(h=jw(q|0,((q|0)<0)<<31>>31|0,1,0)|0,h=mh(s,h,G)|0,(h|0)!=0):0){kw(h|0,m|0,q|0)|0;a[(h+q&n)>>0]=0}else h=0;c[(r&p)>>2]=h}break}case 133:{l=mh(c[(ca&p)>>2]|0,80,0)|0;if(l){y=l+0|0;k=y+80|0;do{a[(y&n)>>0]=0;y=y+1|0}while((y|0)<(k|0))}c[(ea&p)>>2]=l;break}case 134:{q=c[(f+(da<<4)&p)+16>>2]|0;c[(ea&p)>>2]=q;if(q){l=c[(q&p)>>2]|0;k=l+-1|0;if((k|0)>0)while(1){a[(q+(k*72|0)&n)+44>>0]=a[(q+((l+-2|0)*72|0)&n)+44>>0]|0;l=k+-1|0;if((l|0)>0){ca=k;k=l;l=ca}else break}a[(q&n)+44>>0]=0}break}case 128:{aa=c[(ca&p)>>2]|0;c[(ba&p)>>2]=0;c[(ba&p)+4>>2]=0;ba=nr(aa,116,ba,0)|0;c[(ea&p)>>2]=lr(ca,c[(f+(da+-1<<4)&p)+16>>2]|0,ba)|0;break}case 132:{c[(ea&p)+4>>2]=0;break}case 129:{ba=Zq(ca,116,0,0,f+(da<<4)+16|0)|0;ba=Zq(ca,122,Zq(ca,27,0,0,f+(da+-2<<4)+16|0)|0,ba,0)|0;c[(ea&p)>>2]=lr(ca,c[(f+(da+-3<<4)&p)+16>>2]|0,ba)|0;break}case 136:{c[(ea&p)>>2]=0;break}case 137:{ba=jr(ca,c[(f+(da+-6<<4)&p)+16>>2]|0,f+(da+-5<<4)+16|0,f+(da+-4<<4)+16|0,f+(da+-3<<4)+16|0,0,c[(f+(da+-1<<4)&p)+16>>2]|0,c[(f+(da<<4)&p)+16>>2]|0)|0;c[(ea&p)>>2]=ba;or(ca,ba,f+(da+-2<<4)+16|0);break}case 135:{h=c[(f+(da+-1<<4)&p)+16>>2]|0;c[(ea&p)>>2]=h;if((h|0)!=0?(w=c[(h&p)>>2]|0,(w|0)>0):0)a[(h+((w+-1|0)*72|0)&n)+44>>0]=c[(f+(da<<4)&p)+16>>2];break}case 138:{c[(ea&p)>>2]=jr(ca,c[(f+(da+-6<<4)&p)+16>>2]|0,0,0,f+(da+-2<<4)+16|0,c[(f+(da+-4<<4)&p)+16>>2]|0,c[(f+(da+-1<<4)&p)+16>>2]|0,c[(f+(da<<4)&p)+16>>2]|0)|0;break}case 139:{l=f+(da+-6<<4)+16|0;q=c[(l&p)>>2]|0;if((((q|0)==0?(c[(f+(da+-2<<4)&p)+20>>2]|0)==0:0)?(c[(f+(da+-1<<4)&p)+16>>2]|0)==0:0)?(c[(f+(da<<4)&p)+16>>2]|0)==0:0){c[(ea&p)>>2]=c[(f+(da+-4<<4)&p)+16>>2];break a}s=f+(da+-4<<4)+16|0;k=c[(s&p)>>2]|0;r=c[(k&p)>>2]|0;if((r|0)==1){l=jr(ca,q,0,0,f+(da+-2<<4)+16|0,0,c[(f+(da+-1<<4)&p)+16>>2]|0,c[(f+(da<<4)&p)+16>>2]|0)|0;c[(ea&p)>>2]=l;if(l){_=(c[(l&p)>>2]|0)+-1|0;ba=c[(s&p)>>2]|0;aa=ba+16|0;c[(l+(_*72|0)&p)+16>>2]=c[(aa&p)>>2];$=ba+12|0;c[(l+(_*72|0)&p)+12>>2]=c[($&p)>>2];ba=ba+28|0;c[(l+(_*72|0)&p)+28>>2]=c[(ba&p)>>2];c[($&p)>>2]=0;c[(aa&p)>>2]=0;c[(ba&p)>>2]=0}Do(c[(ca&p)>>2]|0,c[(s&p)>>2]|0);break a}if(k){m=r+-1|0;if((m|0)>0){q=r;while(1){a[(k+(m*72|0)&n)+44>>0]=a[(k+((q+-2|0)*72|0)&n)+44>>0]|0;q=m+-1|0;if((q|0)>0){ba=m;m=q;q=ba}else break}}a[(k&n)+44>>0]=0}ba=kr(ca,0,k,0,0,0,0,512,0,0)|0;c[(ea&p)>>2]=jr(ca,c[(l&p)>>2]|0,0,0,f+(da+-2<<4)+16|0,ba,c[(f+(da+-1<<4)&p)+16>>2]|0,c[(f+(da<<4)&p)+16>>2]|0)|0;break}case 149:case 140:{c[(ea&p)>>2]=0;c[(ea&p)+4>>2]=0;break}case 144:{c[(ea&p)>>2]=qr(ca,f+(da+-1<<4)+16|0,0,0)|0;break}case 145:{c[(ea&p)>>2]=qr(ca,f+(da+-2<<4)+16|0,f+(da+-1<<4)+16|0,0)|0;break}case 146:{c[(ea&p)>>2]=qr(ca,f+(da+-3<<4)+16|0,f+(da+-2<<4)+16|0,f+(da+-1<<4)+16|0)|0;break}case 233:case 231:case 171:case 164:case 147:{c[(ea&p)>>2]=c[(f+(da<<4)&p)+16>>2];break}case 234:case 232:case 170:case 163:case 148:{c[(ea&p)>>2]=0;break}case 151:{c[(ea&p)>>2]=0;c[(ea&p)+4>>2]=1;break}case 143:{c[(ea&p)>>2]=1;break}case 142:{c[(ea&p)>>2]=pr(c[(ca&p)>>2]|0,0,f+(da+-1<<4)+16|0,f+(da<<4)+16|0)|0;break}case 157:{h=lr(ca,0,c[(f+(da+-1<<4)&p)+16>>2]|0)|0;c[(ea&p)>>2]=h;if((h|0)!=0?(k=c[(h&p)+4>>2]|0,(k|0)!=0):0)a[(k&n)+12>>0]=c[(f+(da<<4)&p)+16>>2];break}case 160:case 158:{c[(ea&p)>>2]=0;break}case 159:{c[(ea&p)>>2]=1;break}case 165:{c[(ea&p)>>2]=0;c[(ea&p)+4>>2]=0;break}case 166:{c[(ea&p)>>2]=c[(f+(da<<4)&p)+16>>2];c[(ea&p)+4>>2]=0;break}case 179:case 153:{c[(ea&p)>>2]=0;break}case 180:case 152:{c[(ea&p)>>2]=c[(f+(da+-1<<4)&p)+16>>2];break}case 172:{l=c[(f+(da+-7<<4)&p)+16>>2]|0;if(l){aa=ca+532|0;c[(l&p)+4>>2]=c[(aa&p)>>2];c[(aa&p)>>2]=l;a[(ca&n)+449>>0]=1}m=f+(da+-4<<4)+16|0;or(ca,c[(m&p)>>2]|0,f+(da+-3<<4)+16|0);q=f+(da+-1<<4)+16|0;l=c[(q&p)>>2]|0;if(l){if((c[(l&p)>>2]|0)>(c[((c[(ca&p)>>2]|0)&p)+96>>2]|0)){c[(ba&p)>>2]=20560;th(ca,34544,ba);l=c[(q&p)>>2]|0}}else l=0;sr(ca,c[(m&p)>>2]|0,l,c[(f+(da<<4)&p)+16>>2]|0,d[(f+(da+-5<<4)&n)+16>>0]|0);break}case 235:case 162:case 155:{c[(ea&p)>>2]=c[(f+(da<<4)&p)+16>>2];break}case 156:{h=lr(ca,c[(f+(da+-3<<4)&p)+16>>2]|0,c[(f+(da+-1<<4)&p)+16>>2]|0)|0;c[(ea&p)>>2]=h;if(h)a[((c[(h&p)+4>>2]|0)+(((c[(h&p)>>2]|0)+-1|0)*20|0)&n)+12>>0]=c[(f+(da<<4)&p)+16>>2];break}case 7:{a[(ca&n)+450>>0]=2;c[(ca&p)+440>>2]=0;break}case 23:{Tq(ca,1,f+(da<<4)+16|0);break}case 24:{Tq(ca,2,f+(da<<4)+16|0);break}case 26:{Uq(ca,f+(da+-1<<4)+16|0,f+(da<<4)+16|0,c[(f+(da+-4<<4)&p)+16>>2]|0,0,0,c[(f+(da+-2<<4)&p)+16>>2]|0);break}default:{}}while(0);h=a[(g<<1&n)+20912>>0]|0;r=h&255;q=a[(g<<1&n)+20913>>0]|0;m=q&255;s=(c[(f&p)>>2]|0)-m|0;c[(f&p)>>2]=s;l=b[((b[(e[(f+(da-m<<4)&o)+12>>1]<<1&o)+21568>>1]|0)+r<<1&o)+22184>>1]|0;k=l&65535;do if((l&65535)<642)if(!(q<<24>>24)){kq(f,k,r,ea);break}else{c[(f&p)>>2]=s+1;da=1-m+da|0;b[(f+(da<<4)&o)+12>>1]=l;a[(f+(da<<4)&n)+14>>0]=h;da=f+(da<<4)+16|0;c[(da&p)>>2]=c[(ea&p)>>2];c[(da&p)+4>>2]=c[(ea&p)+4>>2];c[(da&p)+8>>2]=c[(ea&p)+8>>2];break}else{h=c[(ga&p)>>2]|0;if((s|0)>-1)do Pn(f);while((c[(f&p)>>2]|0)>-1);c[(ga&p)>>2]=h}while(0);i=ha;return}function nq(e,f){e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=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,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,ga=0;da=i;i=i+64|0;if((i|0)>=(j|0))fa();ca=da+8|0;Z=da;q=da+24|0;h=da+16|0;l=xq(e,0,h)|0;do if(!l){if(c[(h&p)>>2]|0){l=ds(e,f)|0;if(!l)g=0;else k=4}else{l=1;k=4}if((k|0)==4){ba=e+43|0;k=(a[(ba&n)>>0]|0)==0;do if(!(a[(e&n)+46>>0]&2)){if(k?(m=e+4|0,aa=c[(m&p)>>2]|0,ac[c[((c[(aa&p)>>2]|0)&p)+40>>2]&63](aa,24,0)|0,m=c[(m&p)>>2]|0,m=pc[c[((c[(m&p)>>2]|0)&p)+56>>2]&31](m,0,1,10)|0,(m|0)!=0):0){h=l;g=m;break}aa=e+44|0;a[(aa&n)>>0]=1;k=xq(e,0,h)|0;if(!k){h=ds(e,f)|0;if(!h){h=0;g=0}else{$=d[(e&n)+45>>0]|0;_=$+1|0;$=7-$|0;if(!((a[(ba&n)>>0]|0)==0?(g=c[(e&p)+4>>2]|0,g=pc[c[((c[(g&p)>>2]|0)&p)+56>>2]&31](g,_,$,10)|0,(g|0)!=0):0)){l=e+52|0;k=l+48|0;do{c[(l&p)>>2]=0;l=l+4|0}while((l|0)<(k|0));T=e+8|0;g=c[(T&p)>>2]|0;g=rc[c[((c[(g&p)>>2]|0)&p)+24>>2]&127](g,Z)|0;a:do if(!g){U=Z;S=c[(U&p)+4>>2]|0;b:do if((S|0)>0|(S|0)==0&(c[(U&p)>>2]|0)>>>0>32){g=c[(T&p)>>2]|0;g=tc[c[((c[(g&p)>>2]|0)&p)+8>>2]&31](g,q,32,0,0)|0;if(g)break a;m=d[(q&n)+3>>0]|0;k=d[(q&n)+9>>0]<<16|d[(q&n)+8>>0]<<24;g=d[(q&n)+10>>0]<<8;l=k|g|d[(q&n)+11>>0];if(((d[(q&n)+1>>0]<<16|d[(q&n)>>0]<<24|d[(q&n)+2>>0]<<8|m&254|0)==931071618?!((l+-1&l|0)!=0|(l|0)>65536|(l|0)<512):0)?(U=m&1,V=e+65|0,a[(V&n)>>0]=U,W=e+36|0,c[(W&p)>>2]=l,c[(e&p)+104>>2]=d[(q&n)+13>>0]<<16|d[(q&n)+12>>0]<<24|d[(q&n)+14>>0]<<8|d[(q&n)+15>>0],X=e+84|0,S=q+16|0,Q=S,Q=d[(Q&n)>>0]|d[(Q&n)+1>>0]<<8|d[(Q&n)+2>>0]<<16|d[(Q&n)+3>>0]<<24,S=S+4|0,S=d[(S&n)>>0]|d[(S&n)+1>>0]<<8|d[(S&n)+2>>0]<<16|d[(S&n)+3>>0]<<24,Y=X,R=Y,a[(R&n)>>0]=Q,a[(R&n)+1>>0]=Q>>8,a[(R&n)+2>>0]=Q>>16,a[(R&n)+3>>0]=Q>>24,Y=Y+4|0,a[(Y&n)>>0]=S,a[(Y&n)+1>>0]=S>>8,a[(Y&n)+2>>0]=S>>16,a[(Y&n)+3>>0]=S>>24,Y=e+76|0,yq(U^1,q,24,0,Y),(c[(Y&p)>>2]|0)==(d[(q&n)+25>>0]<<16|d[(q&n)+24>>0]<<24|d[(q&n)+26>>0]<<8|d[(q&n)+27>>0]|0)):0){S=e+80|0;if((c[(S&p)>>2]|0)!=(d[(q&n)+29>>0]<<16|d[(q&n)+28>>0]<<24|d[(q&n)+30>>0]<<8|d[(q&n)+31>>0]|0)){l=0;g=0;break}if((d[(q&n)+5>>0]<<16|d[(q&n)+4>>0]<<24|d[(q&n)+6>>0]<<8|d[(q&n)+7>>0]|0)!=3007e3){c[(ca&p)>>2]=49983;c[(ca&p)+4>>2]=10788;bd(14,14848,ca);g=14;break a}w=l+24|0;U=Tc(w)|0;if(!U){g=7;break a}x=U+24|0;y=((w|0)<0)<<31>>31;q=jw(w|0,y|0,32,0)|0;m=G;R=Z;Q=c[(R&p)+4>>2]|0;c:do if(!((m|0)>(Q|0)|((m|0)==(Q|0)?q>>>0>(c[(R&p)>>2]|0)>>>0:0))){z=U+8|0;A=U+1|0;B=U+2|0;C=U+3|0;D=U+16|0;E=U+17|0;F=U+18|0;H=U+19|0;I=U+20|0;J=U+21|0;K=U+22|0;L=U+23|0;M=U+4|0;N=U+5|0;O=U+6|0;P=U+7|0;Q=e+68|0;R=e+72|0;u=(k>>>16|g)&65535;v=e+66|0;r=32;k=0;l=0;s=0;t=1;while(1){g=c[(T&p)>>2]|0;g=tc[c[((c[(g&p)>>2]|0)&p)+8>>2]&31](g,U,w,r,k)|0;if(g){k=36;break}if(Zv(X,z,8)|0){g=s;k=37;break}k=d[(A&n)>>0]<<16|d[(U&n)>>0]<<24|d[(B&n)>>0]<<8|d[(C&n)>>0];if(!k){g=s;k=37;break}r=(a[(V&n)>>0]|0)==0&1;yq(r,U,8,Y,Y);yq(r,x,c[(W&p)>>2]|0,Y,Y);if((c[(Y&p)>>2]|0)!=(d[(E&n)>>0]<<16|d[(D&n)>>0]<<24|d[(F&n)>>0]<<8|d[(H&n)>>0]|0)){g=s;k=37;break}if((c[(S&p)>>2]|0)!=(d[(J&n)>>0]<<16|d[(I&n)>>0]<<24|d[(K&n)>>0]<<8|d[(L&n)>>0]|0)){g=s;break c}r=d[(N&n)>>0]<<16|d[(M&n)>>0]<<24|d[(O&n)>>0]<<8|d[(P&n)>>0];g=_o(e,t,k)|0;if(g){k=36;break}if(!r)g=s;else{c[(Q&p)>>2]=t;c[(R&p)>>2]=r;b[(v&o)>>1]=u;l=c[(Y&p)>>2]|0;g=c[(S&p)>>2]|0}k=jw(q|0,m|0,w|0,y|0)|0;r=G;s=Z;ea=c[(s&p)+4>>2]|0;if((r|0)>(ea|0)|((r|0)==(ea|0)?k>>>0>(c[(s&p)>>2]|0)>>>0:0))break c;else{ga=m;ea=q;q=k;m=r;s=g;t=t+1|0;k=ga;r=ea}}if((k|0)==36){Wc(U);break a}else if((k|0)==37){Wc(U);break b}}else{l=0;g=0}while(0);Wc(U)}else{l=0;g=0}}else{l=0;g=0}while(0);c[(e&p)+76>>2]=l;c[(e&p)+80>>2]=g;$o(e);k=c[(c[(e&p)+32>>2]&p)>>2]|0;c[(k&p)+96>>2]=0;c[(k&p)+100>>2]=0;g=k+104|0;c[(g&p)>>2]=-1;c[(k&p)+108>>2]=-1;c[(k&p)+112>>2]=-1;c[(k&p)+116>>2]=-1;k=e+68|0;l=c[(k&p)>>2]|0;if(l)c[(g&p)>>2]=l;if(!(c[(e&p)+72>>2]|0))g=0;else{g=c[(e&p)+100>>2]|0;c[(ca&p)>>2]=c[(k&p)>>2];c[(ca&p)+4>>2]=g;bd(283,14888,ca);g=0}}while(0);if(!(a[(ba&n)>>0]|0)){Z=c[(e&p)+4>>2]|0;pc[c[((c[(Z&p)>>2]|0)&p)+56>>2]&31](Z,_,$,9)|0}}c[(f&p)>>2]=1}}else{h=l;g=k}a[(aa&n)>>0]=0;if(!(a[(ba&n)>>0]|0)){ba=c[(e&p)+4>>2]|0;pc[c[((c[(ba&p)>>2]|0)&p)+56>>2]&31](ba,0,1,9)|0}}else if(k){h=e+4|0;g=c[(h&p)>>2]|0;g=pc[c[((c[(g&p)>>2]|0)&p)+56>>2]&31](g,0,1,6)|0;if(!g)if(!(a[(ba&n)>>0]|0)){h=c[(h&p)>>2]|0;pc[c[((c[(h&p)>>2]|0)&p)+56>>2]&31](h,0,1,5)|0;h=l;g=264}else{h=l;g=264}else h=l}else{h=l;g=264}while(0);if(h)break}if((c[(e&p)+52>>2]|0)!=3007e3){c[(ca&p)>>2]=50909;c[(ca&p)+4>>2]=10788;bd(14,14848,ca);g=14}}else g=l;while(0);i=da;return g|0}function oq(a,d,f,g,h,i){a=a|0;d=d|0;f=f|0;g=g|0;h=h|0;i=i|0;var j=0,k=0,l=0,m=0,n=0,q=0,r=0,s=0,t=0,u=0;r=c[(h&p)>>2]|0;s=c[(g&p)>>2]|0;k=(r|0)>0;j=(f|0)>0;if(k|j){n=j;l=0;q=0;m=0;while(1){do if(n){j=d+(l<<1)|0;if(k?(t=s+(m<<1)|0,(c[(a+((e[(j&o)>>1]|0)<<2)&p)>>2]|0)>>>0>=(c[(a+((e[(t&o)>>1]|0)<<2)&p)>>2]|0)>>>0):0){k=t;u=7;break}l=l+1|0;k=j}else{k=s+(m<<1)|0;u=7}while(0);if((u|0)==7){u=0;m=m+1|0}n=b[(k&o)>>1]|0;k=c[(a+((n&65535)<<2)&p)>>2]|0;j=q+1|0;b[(i+(q<<1)&o)>>1]=n;if((l|0)<(f|0))l=((c[(a+((e[(d+(l<<1)&o)>>1]|0)<<2)&p)>>2]|0)==(k|0)&1)+l|0;k=(m|0)<(r|0);n=(l|0)<(f|0);if(!(k|n))break;else q=j}}else j=0;c[(g&p)>>2]=d;c[(h&p)>>2]=j;kw(d|0,i|0,j<<1|0)|0;return}function pq(a,b){a=a|0;b=b|0;var d=0,e=0;e=c[(a&p)+4>>2]|0;c[(e&p)+4>>2]=c[(a&p)>>2];a=c[((c[(e&p)>>2]|0)&p)+204>>2]|0;c[(a&p)+16>>2]=b;e=c[2217]|0;d=c[(a&p)+40>>2]|0;if((b|0)>-1)a=b;else{b=sw(b|0,((b|0)<0)<<31>>31|0,-1024,-1)|0;a=(c[(a&p)+24>>2]|0)+(c[(a&p)+20>>2]|0)|0;a=qw(b|0,G|0,a|0,((a|0)<0)<<31>>31|0)|0}jc[e&15](d,a);return}function qq(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0;g=(c[(b&p)+12>>2]|0)+136|0;e=g;f=c[(e&p)>>2]|0;e=c[(e&p)+4>>2]|0;do if((f|0)==0&(e|0)==0)if(!(bh(c[(c[((c[(b&p)>>2]|0)&p)+32>>2]&p)>>2]|0,g)|0)){e=g;f=c[(e&p)>>2]|0;e=c[(e&p)+4>>2]|0;h=5;break}else{e=g;c[(e&p)>>2]=0;c[(e&p)+4>>2]=0;e=d;c[(e&p)>>2]=0;c[(e&p)+4>>2]=0;e=1;break}else h=5;while(0);if((h|0)==5){g=d;c[(g&p)>>2]=f;c[(g&p)+4>>2]=e;if((e|0)>0|(e|0)==0&f>>>0>0){a[(d&n)+42>>0]=1;e=0}else e=1}return e|0}function rq(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,o=0,q=0,r=0;r=i;i=i+16|0;if((i|0)>=(j|0))fa();o=r;c[(o&p)>>2]=d;d=b;b=0;a:while(1){h=c[(o&p)>>2]|0;g=c[(h&p)>>2]|0;c[(o&p)>>2]=h+4;h=c[(o&p)>>2]|0;k=c[(h&p)>>2]|0;c[(o&p)>>2]=h+4;h=c[(o&p)>>2]|0;l=c[(h&p)>>2]|0;c[(o&p)>>2]=h+4;h=c[(o&p)>>2]|0;m=c[(h&p)>>2]|0;c[(o&p)>>2]=h+4;h=c[(o&p)>>2]|0;e=c[(h&p)>>2]|0;c[(o&p)>>2]=h+4;if(!g){f=d;d=0}else{f=d;d=0;do{g=g+-1|0;h=a[(f&n)>>0]|0;if(((h&255)+-48|0)>>>0>=10)break a;d=(d*10|0)+-48+(h<<24>>24)|0;f=f+1|0}while((g|0)!=0)}if((d|0)<(k|0)|(d|0)>(l|0))break;if(!m){q=9;break}if((m|0)!=(a[(f&n)>>0]|0))break;c[(e&p)>>2]=d;d=f+1|0;b=b+1|0}if((q|0)==9){c[(e&p)>>2]=d;b=b+1|0}i=r;return b|0}function sq(b,e){b=b|0;e=e|0;var f=0,g=0,k=0,l=0.0,m=0,o=0.0,r=0,s=0,t=0,u=0,v=0,w=0,x=0;x=i;i=i+64|0;if((i|0)>=(j|0))fa();v=x;t=x+56|0;u=x+52|0;f=x+48|0;r=x+44|0;s=x+40|0;c[(v&p)>>2]=2;c[(v&p)+4>>2]=0;c[(v&p)+8>>2]=24;c[(v&p)+12>>2]=58;c[(v&p)+16>>2]=f;c[(v&p)+20>>2]=2;c[(v&p)+24>>2]=0;c[(v&p)+28>>2]=59;c[(v&p)+32>>2]=0;c[(v&p)+36>>2]=r;do if((rq(b,v)|0)==2){m=b+5|0;if((a[(m&n)>>0]|0)==58){c[(v&p)>>2]=2;c[(v&p)+4>>2]=0;c[(v&p)+8>>2]=59;c[(v&p)+12>>2]=0;c[(v&p)+16>>2]=s;if((rq(b+6|0,v)|0)!=1){f=1;break}m=b+8|0;if((a[(m&n)>>0]|0)==46?(g=b+9|0,k=a[(g&n)>>0]|0,((k&255)+-48|0)>>>0<10):0){o=0.0;l=1.0;do{o=o*10.0+ +(k<<24>>24)+-48.0;l=l*10.0;g=g+1|0;k=a[(g&n)>>0]|0}while(((k&255)+-48|0)>>>0<10);l=o/l}else{g=m;l=0.0}}else{c[(s&p)>>2]=0;g=m;l=0.0}a[(e&n)+42>>0]=0;a[(e&n)+41>>0]=1;c[(e&p)+20>>2]=c[(f&p)>>2];c[(e&p)+24>>2]=c[(r&p)>>2];h[(e&q)+32>>3]=l+ +(c[(s&p)>>2]|0);while(1){f=g+1|0;if(!(a[((d[(g&n)>>0]|0)&n)+10368>>0]&1)){m=g;break}else g=f}b=e+28|0;c[(b&p)>>2]=0;g=a[(m&n)>>0]|0;if(g<<24>>24==43){k=1;w=14}else if(g<<24>>24!=45)if((g&-33)<<24>>24==90){k=0;w=16}else f=0;else{k=-1;w=14}if((w|0)==14){c[(v&p)>>2]=2;c[(v&p)+4>>2]=0;c[(v&p)+8>>2]=14;c[(v&p)+12>>2]=58;c[(v&p)+16>>2]=t;c[(v&p)+20>>2]=2;c[(v&p)+24>>2]=0;c[(v&p)+28>>2]=59;c[(v&p)+32>>2]=0;c[(v&p)+36>>2]=u;if((rq(f,v)|0)!=2){f=1;break}k=ca(((c[(t&p)>>2]|0)*60|0)+(c[(u&p)>>2]|0)|0,k)|0;c[(b&p)>>2]=k;f=m+6|0;w=16}if((w|0)==16)while(1){g=a[(f&n)>>0]|0;if(!(a[(g&255&n)+10368>>0]&1)){f=k;break}else f=f+1|0}if(!(g<<24>>24)){a[(e&n)+43>>0]=(f|0)!=0&1;f=0}else f=1}else f=1;while(0);i=x;return f|0}function tq(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,k=0,l=0,m=0,o=0,r=0.0,s=0;o=i;i=i+112|0;if((i|0)>=(j|0))fa();k=o+48|0;m=o;l=o+96|0;f=k+0|0;b=b+0|0;g=f+48|0;do{c[(f&p)>>2]=c[(b&p)>>2];f=f+4|0;b=b+4|0}while((f|0)<(g|0));oo(k);po(k);g=k+8|0;if(((c[(g&p)>>2]|0)+-1971|0)>>>0>66){c[(g&p)>>2]=2e3;c[(k&p)+12>>2]=1;c[(k&p)+16>>2]=1;c[(k&p)+20>>2]=0;c[(k&p)+24>>2]=0;h[(k&q)+32>>3]=0.0}else{f=k+32|0;h[(f&q)>>3]=+(~~(+h[(f&q)>>3]+.5)|0)}c[(k&p)+28>>2]=0;a[(k&n)+42>>0]=0;no(k);b=k;f=c[(b&p)>>2]|0;b=c[(b&p)+4>>2]|0;g=qw(f|0,b|0,1e3,0)|0;g=jw(g|0,G|0,-413362496,0)|0;c[(l&p)>>2]=g;g=Vb(l|0)|0;g=(c[2253]|0)!=0?0:g;if(!g){c[(d&p)+20>>2]=1;a[(d&n)+25>>0]=1;Xg(c[(d&p)>>2]|0,20056,-1,1,-1)|0;c[(e&p)>>2]=1;f=0;g=0}else{k=c[(g&p)+4>>2]|0;l=c[(g&p)+8>>2]|0;d=c[(g&p)+12>>2]|0;s=(c[(g&p)+16>>2]|0)+1|0;r=+(c[(g&p)>>2]|0);c[(m&p)+8>>2]=(c[(g&p)+20>>2]|0)+1900;c[(m&p)+12>>2]=s;c[(m&p)+16>>2]=d;c[(m&p)+20>>2]=l;c[(m&p)+24>>2]=k;h[(m&q)+32>>3]=r;a[(m&n)+40>>0]=1;a[(m&n)+41>>0]=1;a[(m&n)+42>>0]=0;a[(m&n)+43>>0]=0;no(m);c[(e&p)>>2]=0;g=m;g=dw(c[(g&p)>>2]|0,c[(g&p)+4>>2]|0,f|0,b|0)|0;f=G}G=f;i=o;return g|0}function uq(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,o=0,q=0,r=0;r=i;i=i+32|0;if((i|0)>=(j|0))fa();q=r+12|0;l=r;o=r+8|0;k=r+16|0;a[(d&n)>>0]=0;f=rc[c[((c[(b&p)>>2]|0)&p)+24>>2]&127](b,l)|0;h=l;g=c[(h&p)>>2]|0;h=c[(h&p)+4>>2]|0;if(!((f|0)!=0|((h|0)<0|(h|0)==0&g>>>0<16))){f=jw(g|0,h|0,-16,-1)|0;f=es(b,f,G,q)|0;if(!f){m=c[(q&p)>>2]|0;if(!(m>>>0>=e>>>0|(m|0)==0)){f=l;f=jw(c[(f&p)>>2]|0,c[(f&p)+4>>2]|0,-12,-1)|0;f=es(b,f,G,o)|0;if(!f){f=l;f=jw(c[(f&p)>>2]|0,c[(f&p)+4>>2]|0,-8,-1)|0;f=tc[c[((c[(b&p)>>2]|0)&p)+8>>2]&31](b,k,8,f,G)|0;if(!f)if(!(Zv(k,14808,8)|0)){f=l;f=jw(c[(f&p)>>2]|0,c[(f&p)+4>>2]|0,-16,-1)|0;f=dw(f|0,G|0,m|0,0)|0;f=tc[c[((c[(b&p)>>2]|0)&p)+8>>2]&31](b,d,m,f,G)|0;if(!f){g=c[(o&p)>>2]|0;h=0;while(1){e=a[(d+h&n)>>0]|0;f=g-e|0;h=h+1|0;if(h>>>0>=m>>>0)break;else g=f}c[(o&p)>>2]=f;if((g|0)==(e|0))f=m;else{c[(q&p)>>2]=0;f=0}a[(d+f&n)>>0]=0;f=0}}else f=0}}else f=0}}i=r;return f|0}function vq(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,k=0,l=0,m=0,n=0,o=0,q=0,r=0,s=0,t=0;t=i;i=i+16|0;if((i|0)>=(j|0))fa();l=t+8|0;r=t+4|0;o=t;s=a+72|0;h=s;k=c[(h&p)>>2]|0;h=c[(h&p)+4>>2]|0;if((k|0)==0&(h|0)==0){m=0;n=0;k=c[(a&p)+148>>2]|0}else{m=jw(k|0,h|0,-1,-1)|0;k=c[(a&p)+148>>2]|0;m=qw(m|0,G|0,k|0,0)|0;m=jw(m|0,G|0,1,0)|0;m=sw(m|0,G|0,k|0,0)|0;n=G}q=s;c[(q&p)>>2]=m;c[(q&p)+4>>2]=n;q=a+148|0;k=jw(k|0,0,m|0,n|0)|0;h=G;do if(!((h|0)>(e|0)|(h|0)==(e|0)&k>>>0>d>>>0)){if((b|0)==0?(b=a+80|0,(m|0)==(c[(b&p)>>2]|0)?(n|0)==(c[(b&p)+4>>2]|0):0):0)d=a+64|0;else{k=a+64|0;e=c[(k&p)>>2]|0;e=tc[c[((c[(e&p)>>2]|0)&p)+8>>2]&31](e,l,8,m,n)|0;if(e)break;if(!(Zv(l,14808,8)|0))d=k;else{e=101;break}}l=c[(d&p)>>2]|0;e=jw(m|0,n|0,8,0)|0;e=es(l,e,G,f)|0;if(!e){f=c[(d&p)>>2]|0;e=jw(m|0,n|0,12,0)|0;e=es(f,e,G,a+48|0)|0;if(!e){f=c[(d&p)>>2]|0;e=jw(m|0,n|0,16,0)|0;e=es(f,e,G,g)|0;if(!e){h=s;k=c[(h&p)>>2]|0;h=c[(h&p)+4>>2]|0;if((k|0)==0&(h|0)==0){g=c[(d&p)>>2]|0;e=jw(m|0,n|0,20,0)|0;e=es(g,e,G,o)|0;if(e)break;g=c[(d&p)>>2]|0;e=jw(m|0,n|0,24,0)|0;e=es(g,e,G,r)|0;if(e)break;d=c[(r&p)>>2]|0;if(!d){h=c[(a&p)+152>>2]|0;c[(r&p)>>2]=h}else h=d;d=c[(o&p)>>2]|0;if(h>>>0<512|d>>>0<32|h>>>0>65536|d>>>0>65536){e=101;break}if(h+-1&h){e=101;break}if(d+-1&d){e=101;break}e=al(a,r,-1)|0;c[(q&p)>>2]=d;h=s;k=c[(h&p)>>2]|0;h=c[(h&p)+4>>2]|0}else{d=c[(q&p)>>2]|0;e=0}m=jw(k|0,h|0,d|0,0)|0;n=s;c[(n&p)>>2]=m;c[(n&p)+4>>2]=G}}}}else e=101;while(0);i=t;return e|0}function wq(f,g,h,k,l){f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;var m=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;D=i;i=i+16|0;if((i|0)>=(j|0))fa();y=D+8|0;r=D+4|0;u=D;B=c[(f&p)+200>>2]|0;C=(k|0)!=0;q=c[((C?f+64|0:f+68|0)&p)>>2]|0;t=g;t=es(q,c[(t&p)>>2]|0,c[(t&p)+4>>2]|0,r)|0;do if(!t){A=f+152|0;x=c[(A&p)>>2]|0;t=g;t=jw(c[(t&p)>>2]|0,c[(t&p)+4>>2]|0,4,0)|0;t=tc[c[((c[(q&p)>>2]|0)&p)+8>>2]&31](q,B,x,t,G)|0;if(!t){E=c[(A&p)>>2]|0;s=(k<<2)+4+E|0;t=g;t=jw(s|0,((s|0)<0)<<31>>31|0,c[(t&p)>>2]|0,c[(t&p)+4>>2]|0)|0;s=G;x=g;c[(x&p)>>2]=t;c[(x&p)+4>>2]=s;x=c[(r&p)>>2]|0;if((x|0)!=0?(x|0)!=(((c[2514]|0)/(E|0)|0)+1|0):0)if(x>>>0<=(c[(f&p)+24>>2]|0)>>>0?(di(h,x)|0)==0:0){if(C){t=jw(t|0,s|0,-4,-1)|0;t=es(q,t,G,u)|0;if(t){m=t;break}if(!l){t=c[(f&p)+48>>2]|0;s=(c[(A&p)>>2]|0)+-200|0;if((s|0)>0)do{t=(d[(B+s&n)>>0]|0)+t|0;s=s+-200|0}while((s|0)>0);if((t|0)!=(c[(u&p)>>2]|0)){m=101;break}}}if((h|0)!=0?(m=bi(h,x)|0,(m|0)!=0):0)break;u=(x|0)==1;if(u?(v=f+142|0,w=a[(B&n)+20>>0]|0,(b[(v&o)>>1]|0)!=(w&255|0)):0)b[(v&o)>>1]=w&255;if(!(c[(f&p)+208>>2]|0)){w=f+204|0;t=ac[c[8876>>2]&63](c[((c[(w&p)>>2]|0)&p)+40>>2]|0,x,0)|0;t=il(c[(w&p)>>2]|0,x,t)|0}else t=0;c[(y&p)>>2]=t;if(C)if(!(a[(f&n)+7>>0]|0)){w=g;h=c[(w&p)+4>>2]|0;s=f+80|0;v=c[(s&p)+4>>2]|0;s=(h|0)<(v|0)|((h|0)==(v|0)?(c[(w&p)>>2]|0)>>>0<=(c[(s&p)>>2]|0)>>>0:0)}else s=1;else if(!t)s=1;else s=(b[(t&o)+24>>1]&4)==0;r=c[(f&p)+60>>2]|0;q=c[(r&p)>>2]|0;do if(q){m=a[(f&n)+16>>0]|0;if((m&255)>3){if(!s){z=33;break}}else if(!(m<<24>>24==0&s)){z=33;break}s=c[(A&p)>>2]|0;m=sw(s|0,((s|0)<0)<<31>>31|0,x+-1|0,0)|0;m=tc[c[(q&p)+12>>2]&31](r,B,s,m,G)|0;s=f+32|0;if(x>>>0>(c[(s&p)>>2]|0)>>>0)c[(s&p)>>2]=x;s=c[(f&p)+88>>2]|0;if(s)ap(s,x,B)}else z=33;while(0);if((z|0)==33)if((k|0)==0&(t|0)==0){w=f+20|0;a[(w&n)>>0]=d[(w&n)>>0]|2;m=zg(f,x,y,1)|0;a[(w&n)>>0]=d[(w&n)>>0]&253;if(m)break;t=c[(y&p)>>2]|0;m=t+24|0;b[(m&o)>>1]=e[(m&o)>>1]&65527;To(t);m=0}else m=0;if(t){r=c[(t&p)+4>>2]|0;kw(r|0,B|0,c[(A&p)>>2]|0)|0;cc[c[(f&p)+196>>2]&31](t);do if(C){if((l|0)!=0?(w=g,h=c[(w&p)+4>>2]|0,x=f+80|0,v=c[(x&p)+4>>2]|0,(h|0)>(v|0)|((h|0)==(v|0)?(c[(w&p)>>2]|0)>>>0>(c[(x&p)>>2]|0)>>>0:0)):0)break;xl(t)}while(0);if(u){s=f+104|0;q=r+24|0;r=s+16|0;do{a[(s&n)>>0]=a[(q&n)>>0]|0;s=s+1|0;q=q+1|0}while((s|0)<(r|0))}ol(t)}}else m=0;else m=101}else m=t}else m=t;while(0);i=D;return m|0}function xq(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0;g=b+24|0;if((c[(g&p)>>2]|0)<=(e|0)){i=e+1|0;j=b+32|0;h=Xc(c[(j&p)>>2]|0,i<<2)|0;if(!h){g=7;h=0}else{k=c[(g&p)>>2]|0;fw(h+(k<<2)|0,0,i-k<<2|0)|0;c[(j&p)>>2]=h;c[(g&p)>>2]=i;k=5}}else{h=c[(b&p)+32>>2]|0;k=5}if((k|0)==5){j=b+32|0;h=h+(e<<2)|0;do if(!(c[(h&p)>>2]|0)){if((a[(b&n)+43>>0]|0)!=2){g=c[(b&p)+4>>2]|0;g=tc[c[((c[(g&p)>>2]|0)&p)+52>>2]&31](g,e,32768,d[(b&n)+44>>0]|0,h)|0;if((g|0)!=8)break;g=b+46|0;a[(g&n)>>0]=d[(g&n)>>0]|2;g=0;break}g=qg(32768,0)|0;if(g)fw(g|0,0,32768)|0;c[((c[(j&p)>>2]|0)+(e<<2)&p)>>2]=g;g=(c[((c[(j&p)>>2]|0)+(e<<2)&p)>>2]|0)==0?7:0}else g=0;while(0);h=c[((c[(j&p)>>2]|0)+(e<<2)&p)>>2]|0}c[(f&p)>>2]=h;return g|0}function yq(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;h=b+d|0;if(!e){g=0;d=0}else{g=c[(e&p)>>2]|0;d=c[(e&p)+4>>2]|0}if(!a)do{g=g+d+(nw(c[(b&p)>>2]|0)|0)|0;d=g+d+(nw(c[(b&p)+4>>2]|0)|0)|0;b=b+8|0}while(b>>>0>>0);else do{g=g+d+(c[(b&p)>>2]|0)|0;d=g+d+(c[(b&p)+4>>2]|0)|0;b=b+8|0}while(b>>>0>>0);c[(f&p)>>2]=g;c[(f&p)+4>>2]=d;return}function zq(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;h=a+8|0;g=c[(h&p)>>2]|0;h=c[(h&p)+4>>2]|0;if((h|0)>(f|0)|(h|0)==(f|0)&g>>>0>e>>>0?(i=jw(d|0,((d|0)<0)<<31>>31|0,e|0,f|0)|0,k=G,!((k|0)<(h|0)|(k|0)==(h|0)&i>>>0>>0)):0){i=dw(g|0,h|0,e|0,f|0)|0;h=a+4|0;g=c[(h&p)>>2]|0;g=tc[c[((c[(g&p)>>2]|0)&p)+12>>2]&31](g,b,i,e,f)|0;if(!g){e=jw(i|0,((i|0)<0)<<31>>31|0,e|0,f|0)|0;f=G;g=c[(h&p)>>2]|0;g=rc[c[((c[(g&p)>>2]|0)&p)+20>>2]&127](g,c[(a&p)+16>>2]&19)|0;if(!((i|0)==(d|0)|(g|0)!=0)){d=d-i|0;h=b+i|0;g=f;j=5}}}else{h=b;g=f;j=5}if((j|0)==5){f=c[(a&p)+4>>2]|0;g=tc[c[((c[(f&p)>>2]|0)&p)+12>>2]&31](f,h,d,e,g)|0}return g|0}function Aq(a){a=a|0;var d=0,f=0,g=0,h=0,k=0,l=0;l=i;i=i+16|0;if((i|0)>=(j|0))fa();h=l+8|0;k=l+4|0;g=l;c[(h&p)>>2]=0;c[(k&p)>>2]=0;c[(g&p)>>2]=0;f=a+68|0;d=c[(f&p)>>2]|0;if(d){Po(a,(d+33|0)>>>12,h,k,g)|0;g=(c[(f&p)>>2]|0)-(c[(g&p)>>2]|0)|0;a=c[(h&p)>>2]|0;f=0;do{d=a+(f<<1)|0;if((e[(d&o)>>1]|0|0)>(g|0))b[(d&o)>>1]=0;f=f+1|0}while((f|0)!=8192);d=(c[(k&p)>>2]|0)+(g+1<<2)|0;fw(d|0,0,a-d|0)|0}i=l;return}function Bq(a,d){a=a|0;d=d|0;var e=0,f=0,g=0,h=0;g=i;i=i+16|0;if((i|0)>=(j|0))fa();e=g;h=a+204|0;f=ac[c[8876>>2]&63](c[((c[(h&p)>>2]|0)&p)+40>>2]|0,d,0)|0;f=il(c[(h&p)>>2]|0,d,f)|0;do if(!f)e=0;else{if((b[(f&o)+26>>1]|0)==1){ml(f);e=0;break}c[(e&p)>>2]=0;d=kl(c[(a&p)+208>>2]|0,c[(f&p)+20>>2]|0,e)|0;if(!d){d=ll(f,c[(e&p)>>2]|0)|0;if(!d){cc[c[(a&p)+196>>2]&31](f);d=0}}Bg(f);e=d}while(0);d=c[(a&p)+88>>2]|0;if(d)do{c[(d&p)+16>>2]=1;d=c[(d&p)+44>>2]|0}while((d|0)!=0);i=g;return e|0}function Cq(f,g,h){f=f|0;g=g|0;h=h|0;var k=0,l=0,m=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;G=i;i=i+16|0;if((i|0)>=(j|0))fa();F=G;C=c[(f&p)+52>>2]|0;t=(c[(C&p)+36>>2]|0)+-4|0;y=g&65535;D=h&65535;x=D+y|0;E=c[(f&p)+56>>2]|0;if(b[(C&o)+22>>1]&4)fw(E+y|0,0,D|0)|0;B=d[(f&n)+6>>0]|0;C=B+1|0;q=C&65535;A=C&65535;if((a[(E+A&n)+1>>0]|0)==0?(a[(E+A&n)>>0]|0)==0:0){v=h&255;t=(h&65535)>>>8&255;u=x;s=0;r=0;A=23}else{v=q;A=6}a:do if((A|0)==6){while(1){A=0;m=v&65535;r=a[(E+m&n)+1>>0]|0;l=r&255;u=d[(E+m&n)>>0]<<8|l;q=v;v=u&65535;if(!(u>>>0>>0&(u|0)!=0)){s=r;w=u;break}if(u>>>0<(m+4|0)>>>0){A=8;break}else A=6}if((A|0)==8){c[(F&p)>>2]=54420;c[(F&p)+4>>2]=10788;bd(11,13600,F);k=11;break}if(w>>>0>t>>>0){c[(F&p)>>2]=54423;c[(F&p)+4>>2]=10788;bd(11,13600,F);k=11;break}k=h&255;t=(h&65535)>>>8&255;r=(v&65535)>>>8&255;do if((w+-1|0)>>>0<(x+3|0)>>>0)if(x>>>0>w>>>0){c[(F&p)>>2]=54434;c[(F&p)+4>>2]=10788;bd(11,13600,F);k=11;break a}else{u=(d[(E+w&n)+2>>0]<<8|d[(E+w&n)+3>>0])+w|0;t=u-y|0;v=t&255;t=(t&65535)>>>8&255;s=a[(E+w&n)+1>>0]|0;r=a[(E+w&n)>>0]|0;k=l-x&255;break}else{v=k;u=x;k=0}while(0);do if(m>>>0>C>>>0?(z=(d[(E+m&n)+2>>0]<<8|d[(E+m&n)+3>>0])+m|0,(z+3|0)>=(y|0)):0)if((y|0)<(z|0)){c[(F&p)>>2]=54447;c[(F&p)+4>>2]=10788;bd(11,13600,F);k=11;break a}else{t=u-m|0;g=q;v=t&255;t=(t&65535)>>>8&255;k=(k&255)+y-z&255;break}while(0);m=E+(B+7)|0;l=a[(m&n)>>0]|0;if((l&255)<(k&255)){c[(F&p)>>2]=54453;c[(F&p)+4>>2]=10788;bd(11,13600,F);k=11;break}else{a[(m&n)>>0]=(l&255)-(k&255);A=23;break}}while(0);b:do if((A|0)==23){k=g&65535;l=E+(B+5)|0;m=E+(B+6)|0;do if((k|0)==(d[(l&n)>>0]<<8|d[(m&n)>>0]|0))if((q&65535|0)==(C|0)){a[(E+C&n)>>0]=r;a[(E+B&n)+2>>0]=s;a[(l&n)>>0]=u>>>8;a[(m&n)>>0]=u;break}else{c[(F&p)>>2]=54460;c[(F&p)+4>>2]=10788;bd(11,13600,F);k=11;break b}else{F=q&65535;a[(E+F&n)>>0]=(g&65535)>>>8;a[(E+F&n)+1>>0]=g;a[(E+k&n)>>0]=r;a[(E+k&n)+1>>0]=s;a[(E+k&n)+2>>0]=t;a[(E+k&n)+3>>0]=v}while(0);k=f+16|0;b[(k&o)>>1]=(e[(k&o)>>1]|0)+D;k=0}while(0);i=G;return k|0}function Dq(b,e,f,g){b=b|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,o=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0;w=i;i=i+16|0;if((i|0)>=(j|0))fa();t=w;s=d[(b&n)+6>>0]|0;v=c[(b&p)+56>>2]|0;r=c[((c[(b&p)+52>>2]|0)&p)+36>>2]|0;l=r+-4|0;b=s+1|0;while(1){m=v+b|0;o=(d[(m&n)>>0]|0)<<8|(d[(v+b&n)+1>>0]|0);if(!o){b=0;break}if((o|0)>(l|0)|(o|0)<(b+4|0)){u=4;break}h=v+(o+2)|0;k=v+(o+3)|0;b=(d[(h&n)>>0]|0)<<8|(d[(k&n)>>0]|0);if((b|0)<(e|0))b=o;else{q=h;l=o;u=6;break}}a:do if((u|0)==4){c[(t&p)>>2]=54252;c[(t&p)+4>>2]=10788;bd(11,13600,t);c[(f&p)>>2]=11;b=0}else if((u|0)==6){h=b-e|0;do if((h|0)>=4)if((b+l|0)>(r|0)){c[(t&p)>>2]=54275;c[(t&p)+4>>2]=10788;bd(11,13600,t);c[(f&p)>>2]=11;b=0;break a}else{a[(q&n)>>0]=h>>>8;a[(k&n)>>0]=h;break}else{b=v+(s+7)|0;if((d[(b&n)>>0]|0)<=59){s=v+l|0;s=d[(s&n)>>0]|d[(s&n)+1>>0]<<8;a[(m&n)>>0]=s;a[(m&n)+1>>0]=s>>8;a[(b&n)>>0]=(d[(b&n)>>0]|0)+h;break}if(!g){b=0;break a}c[(g&p)>>2]=1;b=0;break a}while(0);b=v+(h+l)|0}while(0);i=w;return b|0}function Eq(f){f=f|0;var g=0,h=0,k=0,l=0,m=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;G=i;i=i+16|0;if((i|0)>=(j|0))fa();E=G;B=c[(f&p)+56>>2]|0;D=d[(f&n)+6>>0]|0;x=e[(f&o)+14>>1]|0;y=b[(f&o)+18>>1]|0;t=y&65535;u=f+52|0;v=c[((c[(u&p)>>2]|0)&p)+36>>2]|0;C=(t<<1)+x|0;w=v+-4|0;z=B+(D+5)|0;A=B+(D+6)|0;a:do if(y<<16>>16){s=v;y=0;h=B;k=0;while(1){m=(y<<1)+x|0;l=B+m|0;m=B+(m+1)|0;q=(d[(l&n)>>0]|0)<<8|(d[(m&n)>>0]|0);if((q|0)<(C|0)|(q|0)>(w|0)){F=3;break}r=(Lp(f,h+q|0)|0)&65535;g=s-r|0;if((g|0)<(C|0)|(r+q|0)>(v|0)){F=5;break}a[(l&n)>>0]=g>>>8;a[(m&n)>>0]=g;if(!k)if((g|0)==(q|0))k=0;else{k=c[((c[(c[(u&p)>>2]&p)>>2]|0)&p)+200>>2]|0;h=(d[(z&n)>>0]|0)<<8|(d[(A&n)>>0]|0);kw(k+h|0,B+h|0,s-h|0)|0;h=k;F=9}else F=9;if((F|0)==9){F=0;kw(B+g|0,h+q|0,r|0)|0}y=y+1|0;if((y|0)>=(t|0)){F=11;break a}else s=g}if((F|0)==3){c[(E&p)>>2]=54184;c[(E&p)+4>>2]=10788;bd(11,13600,E);g=11;break}else if((F|0)==5){c[(E&p)>>2]=54196;c[(E&p)+4>>2]=10788;bd(11,13600,E);g=11;break}}else{g=v;F=11}while(0);if((F|0)==11){a[(z&n)>>0]=g>>>8;a[(A&n)>>0]=g;a[(B+D&n)+1>>0]=0;a[(B+D&n)+2>>0]=0;a[(B+D&n)+7>>0]=0;F=g-C|0;fw(B+C|0,0,F|0)|0;if((F|0)==(e[(f&o)+16>>1]|0|0))g=0;else{c[(E&p)>>2]=54221;c[(E&p)+4>>2]=10788;bd(11,13600,E);g=11}}i=G;return g|0}function Fq(a,e,f){a=a|0;e=e|0;f=f|0;var g=0,h=0,k=0;k=i;i=i+32|0;if((i|0)>=(j|0))fa();h=k;if((c[(f&p)>>2]|0)==0?(rp(a,e,h),g=b[(h&o)+18>>1]|0,g<<16>>16!=0):0){g=g&65535;zp(c[(a&p)+52>>2]|0,(d[(e+g&n)+1>>0]|0)<<16|(d[(e+g&n)>>0]|0)<<24|(d[(e+g&n)+2>>0]|0)<<8|(d[(e+g&n)+3>>0]|0),3,c[(a&p)+72>>2]|0,f)}i=k;return}function Gq(b,f,g){b=b|0;f=f|0;g=g|0;var h=0,i=0,j=0,k=0,l=0,m=0;do if(!(c[(g&p)>>2]|0)){h=c[(b&p)+52>>2]|0;j=c[(b&p)+56>>2]|0;l=c[(f&p)+56>>2]|0;i=d[(b&n)+6>>0]|0;k=(c[(f&p)+72>>2]|0)==1?100:0;m=d[(j+i&n)+5>>0]<<8|d[(j+i&n)+6>>0];kw(l+m|0,j+m|0,(c[(h&p)+36>>2]|0)-m|0)|0;kw(l+k|0,j+i|0,(e[(b&o)+18>>1]<<1)+(e[(b&o)+14>>1]|0)|0)|0;a[(f&n)>>0]=0;b=$p(f)|0;if(b){c[(g&p)>>2]=b;break}if(a[(h&n)+17>>0]|0)c[(g&p)>>2]=_p(f)|0}while(0);return}function Hq(f,g,h,i){f=f|0;g=g|0;h=h|0;i=i|0;var j=0,k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0;t=d[(f&n)+6>>0]|0;w=c[(f&p)+56>>2]|0;m=c[(f&p)+52>>2]|0;r=c[(m&p)+36>>2]|0;q=w+r|0;j=c[(f&p)+64>>2]|0;m=c[((c[(m&p)>>2]|0)&p)+200>>2]|0;s=w+(t+5)|0;u=w+(t+6)|0;v=(d[(s&n)>>0]|0)<<8|(d[(u&n)>>0]|0);kw(m+v|0,w+v|0,r-v|0)|0;v=w;if((g|0)>0){r=0;l=j;j=q;while(1){k=c[(h+(r<<2)&p)>>2]|0;if(k>>>0>w>>>0&k>>>0>>0)k=m+(k-v)|0;x=e[(i+(r<<1)&o)>>1]|0;j=j+(0-x)|0;kw(j|0,k|0,x|0)|0;k=j-v|0;a[(l&n)>>0]=k>>>8;a[(l&n)+1>>0]=k;r=r+1|0;if((r|0)==(g|0))break;else l=l+2|0}}else j=q;i=f+18|0;b[(i&o)>>1]=g;a[(f&n)+1>>0]=0;a[(w+t&n)+1>>0]=0;a[(w+t&n)+2>>0]=0;a[(w+t&n)+3>>0]=(e[(i&o)>>1]|0)>>>8;a[(w+t&n)+4>>0]=b[(i&o)>>1];i=j-v|0;a[(s&n)>>0]=i>>>8;a[(u&n)>>0]=i;a[(w+t&n)+7>>0]=0;return}function Iq(a,b,f,g){a=a|0;b=b|0;f=f|0;g=g|0;var h=0,i=0,j=0,k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0;u=c[(a&p)+56>>2]|0;s=u+(c[((c[(a&p)+52>>2]|0)&p)+36>>2]|0)|0;q=u+((d[(a&n)+6>>0]|0)+8+(d[(a&n)+7>>0]|0))|0;a:do if((b|0)>0){r=u;t=0;h=0;l=0;m=0;while(1){j=c[(f+(t<<2)&p)>>2]|0;if(j>>>0>=q>>>0&j>>>0>>0){i=e[(g+(t<<1)&o)>>1]|0;k=j+i|0;if((l|0)!=(k|0)){if(l)Cq(a,l-r&65535,m&65535)|0;if(k>>>0>s>>>0){h=0;break a}}else i=i+m|0;h=h+1|0}else{j=l;i=m}t=t+1|0;if((t|0)>=(b|0))break;else{l=j;m=i}}if(j)Cq(a,j-u&65535,i&65535)|0}else h=0;while(0);return h|0}function Jq(b,d,f,g,h,k,l){b=b|0;d=d|0;f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;var m=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0;y=i;i=i+16|0;if((i|0)>=(j|0))fa();w=y;q=c[(b&p)+56>>2]|0;m=c[(f&p)>>2]|0;if(!(a[(q&n)+1>>0]|0))v=(a[(q&n)+2>>0]|0)!=0;else v=1;a:do if((h|0)>0){t=0;while(1){s=e[(l+(t<<1)&o)>>1]|0;if(v?(u=Dq(b,s,w,0)|0,(u|0)!=0):0)r=u;else{r=m+(0-s)|0;if(r>>>0>>0){m=1;break a}else m=r}kw(r|0,c[(k+(t<<2)&p)>>2]|0,s|0)|0;s=r-q|0;a[(g&n)>>0]=s>>>8;a[(g&n)+1>>0]=s;t=t+1|0;if((t|0)>=(h|0)){x=9;break}else g=g+2|0}}else x=9;while(0);if((x|0)==9){c[(f&p)>>2]=m;m=0}i=y;return m|0}function Kq(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,q=0,r=0;o=i;i=i+16|0;if((i|0)>=(j|0))fa();n=o;e=c[(a&p)+44>>2]|0;h=a;f=c[(h&p)>>2]|0;h=c[(h&p)+4>>2]|0;a:do if(!e){m=a+40|0;e=c[(m&p)>>2]|0;g=((e|0)<0)<<31>>31;l=rw(f|0,h|0,e|0,g|0)|0;if(!l){k=a+8|0;k=dw(c[(k&p)>>2]|0,c[(k&p)+4>>2]|0,f|0,h|0)|0;q=G;r=c[(a&p)+24>>2]|0;e=tc[c[((c[(r&p)>>2]|0)&p)+8>>2]&31](r,c[(a&p)+36>>2]|0,(q|0)>(g|0)|(q|0)==(g|0)&k>>>0>e>>>0?e:k,f,h)|0;if(e)break;e=c[(m&p)>>2]|0}k=e-l|0;if((k|0)>=(b|0)){c[(d&p)>>2]=(c[(a&p)+36>>2]|0)+l;e=a;b=jw(c[(e&p)>>2]|0,c[(e&p)+4>>2]|0,b|0,((b|0)<0)<<31>>31|0)|0;e=a;c[(e&p)>>2]=b;c[(e&p)+4>>2]=G;e=0;break}e=a+16|0;f=c[(e&p)>>2]|0;if((f|0)<(b|0)){f=f<<1;f=(f|0)<128?128:f;while(1)if((f|0)<(b|0))f=f<<1;else{h=f;break}g=a+28|0;f=rg(c[(g&p)>>2]|0,h,((h|0)<0)<<31>>31)|0;if(!f){e=7;break}c[(e&p)>>2]=h;c[(g&p)>>2]=f}else f=c[(a&p)+28>>2]|0;h=a+28|0;kw(f|0,(c[(a&p)+36>>2]|0)+l|0,k|0)|0;l=a;l=jw(c[(l&p)>>2]|0,c[(l&p)+4>>2]|0,k|0,((k|0)<0)<<31>>31|0)|0;e=a;c[(e&p)>>2]=l;c[(e&p)+4>>2]=G;e=b-k|0;if((e|0)>0){g=e;do{f=c[(m&p)>>2]|0;f=(g|0)>(f|0)?f:g;e=Kq(a,f,n)|0;if(e)break a;kw((c[(h&p)>>2]|0)+(b-g)|0,c[(n&p)>>2]|0,f|0)|0;g=g-f|0}while((g|0)>0)}c[(d&p)>>2]=c[(h&p)>>2];e=0}else{c[(d&p)>>2]=e+f;b=jw(f|0,h|0,b|0,((b|0)<0)<<31>>31|0)|0;e=a;c[(e&p)>>2]=b;c[(e&p)+4>>2]=G;e=0}while(0);i=o;return e|0}function Lq(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=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,x=0,y=0,z=0,A=0;A=i;i=i+64|0;if((i|0)>=(j|0))fa();x=A+44|0;z=A;y=A+40|0;v=a+8|0;u=c[(v&p)>>2]|0;v=c[(v&p)+4>>2]|0;w=a+4|0;q=c[(w&p)>>2]|0;Pp(c[(a&p)+48>>2]|0,z,c[((c[((c[(a&p)>>2]|0)&p)+8>>2]|0)&p)+12>>2]|0,u,v);o=q+8|0;q=q+12|0;r=z+24|0;s=z+16|0;t=a+16|0;while(1){f=c[((c[(o&p)>>2]|0)&p)+4>>2]|0;g=c[(q&p)>>2]|0;h=c[(g+(f*56|0)&p)+20>>2]|0;if(!(c[(g+(f*56|0)&p)+24>>2]|0)){d=1;b=0;break}l=r;k=c[(l&p)>>2]|0;l=c[(l&p)+4>>2]|0;m=c[(s&p)>>2]|0;n=((h|0)<0)<<31>>31;b=h;e=n;d=0;do{d=d+1|0;b=mw(b|0,e|0,7)|0;e=G}while(((b|0)!=0|(e|0)!=0)&(d|0)<9);k=jw(k|0,l|0,h|0,n|0)|0;k=jw(k|0,G|0,m|0,((m|0)<0)<<31>>31|0)|0;d=jw(k|0,G|0,d|0,((d|0)<0)<<31>>31|0)|0;k=G;b=c[(t&p)>>2]|0;b=jw(b|0,((b|0)<0)<<31>>31|0,u|0,v|0)|0;e=G;if((k|0)>(e|0)|(k|0)==(e|0)&d>>>0>b>>>0){d=1;b=0;break}Qp(z,x,pm(x,h,n)|0);Qp(z,c[(g+(f*56|0)&p)+32>>2]|0,h);b=Wm(c[(w&p)>>2]|0,y)|0;if(b){d=0;break}}z=Rp(z,a+56|0)|0;i=A;return (d?z:b)|0}function Mq(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0;d=i;i=i+16|0;if((i|0)>=(j|0))fa();f=d;c[(f&p)>>2]=e;e=Wk(a,13592,f)|0;mg(a,b);i=d;return e|0}function Nq(d,e,f,g){d=d|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,q=0;q=i;i=i+16|0;if((i|0)>=(j|0))fa();m=q;h=a[(d&n)>>0]|0;if(h<<24>>24!=0&(e|0)>0){l=0;do{if((h+-48&255)<10){k=0;do{k=(k*10|0)+-48+(h<<24>>24)|0;d=d+1|0;h=a[(d&n)>>0]|0}while((h+-48&255)<10);h=0}else{k=0;h=0}b[(f+(l<<1)&o)>>1]=fs(k,h)|0;d=(a[(d&n)>>0]|0)==32?d+1|0:d;l=l+1|0;h=a[(d&n)>>0]|0}while(h<<24>>24!=0&(l|0)<(e|0))}l=g+51|0;a[(l&n)>>0]=a[(l&n)>>0]&-69;a:do if(a[(d&n)>>0]|0){f=g+44|0;b:while(1){do if(!(Gh(13448,d,10352,0)|0)){if(Gh(13464,d,10352,0)|0){c[(m&p)>>2]=0;Dn(d+3|0,m)|0;h=c[(m&p)>>2]|0;b[(f&o)>>1]=fs(h,((h|0)<0)<<31>>31)|0;break}if(Gh(13480,d,10352,0)|0)a[(l&n)>>0]=a[(l&n)>>0]|64}else a[(l&n)>>0]=a[(l&n)>>0]|4;while(0);while(1){h=a[(d&n)>>0]|0;if(h<<24>>24==32|h<<24>>24==0)break;d=d+1|0}while(1){k=d+1|0;if(!(h<<24>>24))break a;else if(h<<24>>24!=32)continue b;h=a[(k&n)>>0]|0;d=k}}}while(0);i=q;return}function Oq(d){d=d|0;var e=0,f=0;f=d+8|0;e=c[(f&p)>>2]|0;if(!e){e=vh(d)|0;c[(f&p)>>2]=e;if(e)wh(e,155,0,0,0)|0;if((c[(d&p)+408>>2]|0)==0?(b[((c[(d&p)>>2]|0)&o)+60>>1]&8)==0:0)a[(d&n)+23>>0]=1}return e|0}function Pq(b,d){b=b|0;d=d|0;var e=0;e=(c[(b&p)+32>>2]|0)+-1|0;if((e|0)>(c[((c[(b&p)+24>>2]|0)&p)+88>>2]|0)?(a[((c[(b&p)+4>>2]|0)+(e*20|0)&n)>>0]|0)==d<<24>>24:0){zh(b,e);e=1}else e=0;return e|0}function Qq(d,e,f,g,h){d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var i=0,j=0;j=Oq(d)|0;i=g+32|0;gs(d,f,c[(i&p)>>2]|0,(h|0)==55&1,c[(g&p)>>2]|0);if(!(a[(g&n)+44>>0]&32)){g=b[(g&o)+38>>1]|0;xh(j,wh(j,h,e,c[(i&p)>>2]|0,f)|0,g,-14)}else{i=c[(g&p)+8>>2]|0;a:do if(!i)i=0;else while(1){if((a[(i&n)+51>>0]&3)==2)break a;i=c[(i&p)+20>>2]|0;if(!i){i=0;break}}while(0);wh(j,h,e,c[(i&p)+40>>2]|0,f)|0;g=c[(d&p)+8>>2]|0;xh(g,-1,hs(d,i)|0,-6)}return}function Rq(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0;if((d|0)!=0?(a[(d&n)>>0]|0)==-97:0)wh(c[(b&p)+8>>2]|0,33,c[(d&p)+28>>2]|0,e,0)|0;else h=4;if(((h|0)==4?(g=is(b,d,e)|0,(g|0)!=(e|0)):0)?(f=c[(b&p)+8>>2]|0,(f|0)!=0):0)wh(f,34,g,e,0)|0;return}function Sq(b,d,e,f,g){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0;m=i;i=i+16|0;if((i|0)>=(j|0))fa();l=m;h=c[(b&p)>>2]|0;do if(((a[(h&n)+145>>0]|0)==0?(a[(b&n)+451>>0]|0)==0:0)?(k=c[(h&p)+284>>2]|0,(k|0)!=0):0){h=kc[k&7](c[(h&p)+288>>2]|0,d,e,f,g,c[(b&p)+492>>2]|0)|0;if((h|0)==1){th(b,25216,l);c[(b&p)+12>>2]=23;h=1;break}else if((h|0)==0|(h|0)==2)break;else{th(b,25232,l);c[(b&p)+12>>2]=1;h=1;break}}else h=0;while(0);i=m;return h|0}function Tq(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;d=Wq(c[(a&p)>>2]|0,d)|0;do if(d){e=Oq(a)|0;if((e|0)!=0?(Sq(a,32,c[(b<<2&p)+37088>>2]|0,d,0)|0)==0:0){xh(e,wh(e,2,b,0,0)|0,d,-1);break}mg(c[(a&p)>>2]|0,d)}while(0);return}function Uq(e,f,g,h,k,l,m){e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;m=m|0;var q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0;y=i;i=i+16|0;if((i|0)>=(j|0))fa();u=y;s=y+4|0;x=c[(e&p)>>2]|0;f=er(e,f,g,s)|0;a:do if((f|0)>=0){t=(h|0)!=0;if(t?(c[(g&p)+4>>2]|0)!=0&(f|0)!=1:0){th(e,36976,u);break}w=t?1:f;g=c[(s&p)>>2]|0;t=g;f=c[(t&p)+4>>2]|0;s=e+496|0;c[(s&p)>>2]=c[(t&p)>>2];c[(s&p)+4>>2]=f;s=Wq(x,g)|0;if(s){b:do if((Lr(e,s)|0)==0?(r=(a[(x&n)+144>>0]|0)==1?1:h,v=x+16|0,q=c[((c[(v&p)>>2]|0)+(w<<4)&p)>>2]|0,(Sq(e,18,(r|0)==1?13184:13208,0,q)|0)==0):0){h=(r|0)!=0;if(!k)f=h?4:2;else f=h?6:8;t=(l|0)!=0;if(!t?(Sq(e,f,s,0,q)|0)!=0:0)break;do if(!(a[(e&n)+451>>0]|0)){h=c[((c[(v&p)>>2]|0)+(w<<4)&p)>>2]|0;if(Gn(e)|0)break b;if(!(_h(x,s,h)|0)){if(!(bq(x,s,h)|0))break;c[(u&p)>>2]=s;th(e,37048,u);break b}if(!m){c[(u&p)>>2]=g;th(e,37024,u);break b}else{Ar(e,w);break b}}while(0);r=mh(x,76,0)|0;if(!r){a[(x&n)+65>>0]=1;c[(e&p)+12>>2]=7;v=e+64|0;c[(v&p)>>2]=(c[(v&p)>>2]|0)+1;break}q=r+0|0;h=q+76|0;do{a[(q&n)>>0]=0;q=q+1|0}while((q|0)<(h|0));c[(r&p)>>2]=s;b[(r&o)+36>>1]=-1;q=c[((c[(v&p)>>2]|0)+(w<<4)&p)+12>>2]|0;c[(r&p)+68>>2]=q;b[(r&o)+40>>1]=1;b[(r&o)+28>>1]=200;c[(e&p)+484>>2]=r;if((a[(e&n)+18>>0]|0)==0?(_v(s,26576)|0)==0:0)c[(q&p)+72>>2]=r;if(a[(x&n)+145>>0]|0)break a;g=Oq(e)|0;if(!g)break a;v=c[(e&p)+408>>2]|0;Ar(e,w);q=1<>2]=c[(v&p)>>2]|q;if(t)wh(g,146,0,0,0)|0;r=e+72|0;f=c[(r&p)>>2]|0;s=f+1|0;c[(e&p)+384>>2]=s;t=f+2|0;c[(e&p)+388>>2]=t;f=f+3|0;c[(r&p)>>2]=f;wh(g,51,w,f,2)|0;r=g+96|0;c[(r&p)>>2]=c[(r&p)>>2]|q;r=wh(g,45,f,0,0)|0;wh(g,25,(c[(x&p)+24>>2]&32768|0)!=0?1:4,f,0)|0;wh(g,52,w,2,f)|0;wh(g,25,d[(x&n)+62>>0]|0,f,0)|0;wh(g,52,w,5,f)|0;h=g+32|0;q=c[(h&p)>>2]|0;if(q>>>0>r>>>0)c[((c[(g&p)+4>>2]|0)+(r*20|0)&p)+8>>2]=q;c[((c[(g&p)+24>>2]|0)&p)+88>>2]=q+-1;if(!(l|k))c[(e&p)+416>>2]=wh(g,121,w,t,0)|0;else wh(g,25,0,t,0)|0;js(e,w);wh(g,74,0,s,0)|0;wh(g,28,0,f,0)|0;wh(g,75,0,f,s)|0;q=c[(g&p)+4>>2]|0;if(q)a[(q+(((c[(h&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=8;wh(g,61,0,0,0)|0;break a}while(0);mg(x,s)}}while(0);i=y;return}function Vq(f,g,h,k,l){f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;var m=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;R=i;i=i+176|0;if((i|0)>=(j|0))fa();M=R+80|0;J=R+168|0;G=R;H=R+136|0;I=R+112|0;N=c[(f&p)>>2]|0;a:do if((!((h|0)==0&(l|0)==0)?(O=N+65|0,(a[(O&n)>>0]|0)==0):0)?(P=f+484|0,Q=c[(P&p)>>2]|0,(Q|0)!=0):0){L=N+145|0;if(a[(L&n)>>0]|0)c[(Q&p)+32>>2]=c[(N&p)+140>>2];b:do if(k&32){s=Q+44|0;r=d[(s&n)>>0]|0;if(r&8){th(f,36584,M);break a}if(!(r&4)){c[(M&p)>>2]=c[(Q&p)>>2];th(f,36640,M);break}a[(s&n)>>0]=r|32;t=c[(f&p)+8>>2]|0;s=c[(f&p)+416>>2]|0;if(s){if((s|0)<0)s=(c[(t&p)+32>>2]|0)+-1|0;if(!(a[((c[(t&p)>>2]|0)&n)+65>>0]|0))s=(c[(t&p)+4>>2]|0)+(s*20|0)|0;else s=29120;a[(s&n)>>0]=120}s=c[(f&p)+420>>2]|0;if(s){if((s|0)<0)s=(c[(t&p)+32>>2]|0)+-1|0;if(!(a[((c[(t&p)>>2]|0)&n)+65>>0]|0))r=(c[(t&p)+4>>2]|0)+(s*20|0)|0;else r=29120;a[(r&n)>>0]=16}r=Q+36|0;if((b[(r&o)>>1]|0)>-1){s=lr(f,0,0)|0;if(!s)break;C=kh(c[(f&p)>>2]|0,c[((c[(Q&p)+4>>2]|0)+((b[(r&o)>>1]|0)*24|0)&p)>>2]|0)|0;D=c[(s&p)+4>>2]|0;c[(D&p)+4>>2]=C;a[(D&n)+12>>0]=a[(f&n)+448>>0]|0;s=$q(f,0,0,0,s,d[(Q&n)+45>>0]|0,0,0,0,0)|0;if(!s)break;x=s+51|0;a[(x&n)>>0]=a[(x&n)>>0]&-4|2;b[(r&o)>>1]=-1;x=b[(s&o)+46>>1]|0}else{s=c[(Q&p)+8>>2]|0;c:do if(!s)s=0;else while(1){if((a[(s&n)+51>>0]&3)==2)break c;s=c[(s&p)+20>>2]|0;if(!s){s=0;break}}while(0);y=s+46|0;t=b[(y&o)>>1]|0;if((t&65535)>1){w=c[(s&p)+4>>2]|0;v=s+48|0;x=1;r=1;do{m=b[(w+(x<<1)&o)>>1]|0;u=r;q=w;while(1){if((u|0)<=0){F=36;break}if((b[(q&o)>>1]|0)==m<<16>>16){F=35;break}else{u=u+-1|0;q=q+2|0}}if((F|0)==35){F=0;b[(v&o)>>1]=(b[(v&o)>>1]|0)+-1<<16>>16}else if((F|0)==36){F=0;b[(w+(r<<1)&o)>>1]=m;t=b[(y&o)>>1]|0;r=r+1|0}x=x+1|0}while((x|0)<(t&65535|0))}else r=1;x=r&65535;b[(y&o)>>1]=x}u=s+51|0;t=a[(u&n)>>0]|32;a[(u&n)>>0]=t;D=x&65535;if(!(a[(N&n)+147>>0]|0)){if(x<<16>>16){t=c[(s&p)+4>>2]|0;r=c[(Q&p)+4>>2]|0;q=0;do{a[(r+((b[(t+(q<<1)&o)>>1]|0)*24|0)&n)+20>>0]=1;q=q+1|0}while((q|0)<(D|0));t=a[(u&n)>>0]|0}a[(u&n)>>0]=t|8}c[(s&p)+40>>2]=c[(Q&p)+32>>2];u=c[(Q&p)+8>>2]|0;if(u){A=x<<16>>16==0;B=s+4|0;C=s+32|0;do{d:do if((a[(u&n)+51>>0]&3)!=2){do if(A)t=b[(u&o)+46>>1]|0;else{v=c[(u&p)+4>>2]|0;t=b[(u&o)+46>>1]|0;q=t&65535;m=c[(B&p)>>2]|0;z=0;r=0;do{w=b[(m+(z<<1)&o)>>1]|0;y=q;x=v;while(1){if((y|0)<=0){x=1;break}if((b[(x&o)>>1]|0)==w<<16>>16){x=0;break}else{y=y+-1|0;x=x+2|0}}r=x+r|0;z=z+1|0}while((z|0)<(D|0));q=u+46|0;if(!r)break;if(ks(N,u,(t&65535)+r|0)|0)break b;if(A)break d;w=b[(q&o)>>1]|0;z=u+4|0;m=u+32|0;y=w;x=0;w=w&65535;while(1){t=c[(z&p)>>2]|0;r=b[((c[(B&p)>>2]|0)+(x<<1)&o)>>1]|0;y=y&65535;v=t;while(1){if((y|0)<=0){F=63;break}if((b[(v&o)>>1]|0)==r<<16>>16)break;else{y=y+-1|0;v=v+2|0}}if((F|0)==63){F=0;b[(t+(w<<1)&o)>>1]=r;c[((c[(m&p)>>2]|0)+(w<<2)&p)>>2]=c[((c[(C&p)>>2]|0)+(x<<2)&p)>>2];w=w+1|0}x=x+1|0;if((x|0)>=(D|0))break d;y=b[(q&o)>>1]|0}}while(0);b[(u&o)+48>>1]=t}while(0);u=c[(u&p)+20>>2]|0}while((u|0)!=0)}y=Q+38|0;t=b[(y&o)>>1]|0;r=t<<16>>16;if((D|0)>=(r|0)){b[(s&o)+48>>1]=t;break}if((ks(N,s,r)|0)==0?(E=b[(y&o)>>1]|0,E<<16>>16>0):0){v=s+4|0;x=s+32|0;t=E;w=0;s=D;do{q=c[(v&p)>>2]|0;u=s;r=q;while(1){if((u|0)<=0){F=74;break}if((b[(r&o)>>1]|0)==(w|0))break;else{u=u+-1|0;r=r+2|0}}if((F|0)==74){F=0;b[(q+(s<<1)&o)>>1]=w;c[((c[(x&p)>>2]|0)+(s<<2)&p)>>2]=11152;t=b[(y&o)>>1]|0;s=s+1|0}w=w+1|0}while((w|0)<(t<<16>>16|0))}}while(0);F=Q+68|0;s=c[(F&p)>>2]|0;e:do if(s){r=c[(N&p)+20>>2]|0;if((r|0)>0){q=c[(N&p)+16>>2]|0;t=0;while(1){m=t+1|0;if((c[(q+(t<<4)&p)+12>>2]|0)==(s|0))break e;if((m|0)<(r|0))t=m;else{t=m;break}}}else t=0}else t=-1e6;while(0);q=c[(Q&p)+24>>2]|0;f:do if(q){c[(H&p)>>2]=0;c[(H&p)+4>>2]=0;c[(H&p)+8>>2]=0;c[(H&p)+12>>2]=0;c[(H&p)+16>>2]=0;c[(H&p)+20>>2]=0;c[(H&p)+24>>2]=0;c[(H&p)+28>>2]=0;s=G+0|0;r=s+80|0;do{c[(s&p)>>2]=0;s=s+4|0}while((s|0)<(r|0));c[(G&p)>>2]=1;c[(G&p)+16>>2]=c[(Q&p)>>2];c[(G&p)+24>>2]=Q;c[(G&p)+48>>2]=-1;c[(H&p)>>2]=f;c[(H&p)+4>>2]=G;b[(H&o)+28>>1]=4;s=q+4|0;if((c[(q&p)>>2]|0)>0){r=0;do{if(ls(H,c[((c[(s&p)>>2]|0)+(r*20|0)&p)>>2]|0)|0)break f;r=r+1|0}while((r|0)<(c[(q&p)>>2]|0))}}while(0);D=Q+38|0;m=b[(D&o)>>1]|0;if(m<<16>>16>0){s=m<<16>>16;r=c[(Q&p)+4>>2]|0;q=0;while(1){q=(d[(r&n)+22>>0]|0)+q|0;s=s+-1|0;if((s|0)<=0)break;else r=r+24|0}}else q=0;b[(Q&o)+42>>1]=fs(((e[(Q&o)+36>>1]|0)>>>15&65535)+q<<2,0)|0;q=c[(Q&p)+8>>2]|0;if(q)do{ms(q);q=c[(q&p)+20>>2]|0}while((q|0)!=0);if(!(a[(L&n)>>0]|0)){E=Oq(f)|0;if(!E)break;wh(E,61,0,0,0)|0;B=(c[(Q&p)+12>>2]|0)==0;r=B?36672:36680;B=B?31232:35480;do if(!l){q=k<<24>>24==0?h:f+504|0;l=c[(q&p)>>2]|0;s=c[(f&p)+496>>2]|0;m=l-s|0;if((a[(l&n)>>0]|0)!=59)m=(c[(q&p)+4>>2]|0)+m|0;c[(M&p)>>2]=r;c[(M&p)+4>>2]=m;c[(M&p)+8>>2]=s;s=f+388|0;m=Q;r=uh(N,36688,M)|0}else{s=f+388|0;wh(E,55,1,c[(s&p)>>2]|0,t)|0;r=c[(E&p)+4>>2]|0;if(r)a[(r+(((c[(E&p)+32>>2]|0)+-1|0)*20|0)&n)+3>>0]=4;c[(f&p)+68>>2]=2;a[(I&n)>>0]=14;c[(I&p)+4>>2]=1;a[(I&n)+1>>0]=0;c[(I&p)+8>>2]=0;c[(I&p)+12>>2]=0;ir(f,l,I)|0;wh(E,61,1,0,0)|0;if(!(c[(f&p)+64>>2]|0)){m=ns(f,l)|0;if(!m)break a;I=m+38|0;b[(D&o)>>1]=b[(I&o)>>1]|0;l=m+4|0;c[(Q&p)+4>>2]=c[(l&p)>>2];b[(I&o)>>1]=0;c[(l&p)>>2]=0;kg(N,m)}C=Q+4|0;z=b[(D&o)>>1]|0;if(z<<16>>16>0){v=z<<16>>16;w=0;r=0;x=c[(C&p)>>2]|0;while(1){m=c[(x&p)>>2]|0;q=0;while(1){u=a[(m&n)>>0]|0;if(u<<24>>24==34)q=q+1|0;else if(!(u<<24>>24))break;m=m+1|0;q=q+1|0}r=r+7+q|0;w=w+1|0;if((w|0)==(v|0))break;else x=x+24|0}u=r+2|0}else u=2;m=c[(Q&p)>>2]|0;r=0;while(1){q=a[(m&n)>>0]|0;if(q<<24>>24==34)r=r+1|0;else if(!(q<<24>>24))break;m=m+1|0;r=r+1|0}x=r+u|0;A=(x|0)<50;u=A?10360:36880;y=A?20240:36888;A=A?33952:36896;x=((z<<16>>16)*6|0)+35+x|0;r=qg(x,((x|0)<0)<<31>>31)|0;if(!r){a[(O&n)>>0]=1;m=Q;r=0;break}ad(x,r,36904,M)|0;q=r;while(1)if(!(a[(q&n)>>0]|0))break;else q=q+1|0;c[(J&p)>>2]=q-r&1073741823;os(r,J,c[(Q&p)>>2]|0);m=c[(J&p)>>2]|0;v=m+1|0;c[(J&p)>>2]=v;a[(r+m&n)>>0]=40;m=x-v|0;q=r+v|0;if((b[(D&o)>>1]|0)>0){z=0;w=c[(C&p)>>2]|0;while(1){ad(m,q,u,M)|0;q=r+v|0;if(!q)q=0;else{u=q;while(1)if(!(a[(u&n)>>0]|0))break;else u=u+1|0;q=u-q&1073741823}c[(J&p)>>2]=q+v;os(r,J,c[(w&p)>>2]|0);q=c[((a[(w&n)+21>>0]|0)+-65<<2&p)+36920>>2]|0;u=q;while(1)if(!(a[(u&n)>>0]|0))break;else u=u+1|0;v=u-q&1073741823;u=c[(J&p)>>2]|0;kw(r+u|0,q|0,v|0)|0;v=u+v|0;c[(J&p)>>2]=v;u=z+1|0;m=x-v|0;q=r+v|0;if((u|0)<(b[(D&o)>>1]|0)){z=u;w=w+24|0;u=y}else break}}c[(M&p)>>2]=A;ad(m,q,10344,M)|0;m=Q}while(0);q=N+16|0;k=c[(m&p)>>2]|0;I=c[(s&p)>>2]|0;l=c[(f&p)+384>>2]|0;c[(M&p)>>2]=c[((c[(q&p)>>2]|0)+(t<<4)&p)>>2];c[(M&p)+4>>2]=(t|0)==1?13184:13208;c[(M&p)+8>>2]=B;c[(M&p)+12>>2]=k;c[(M&p)+16>>2]=k;c[(M&p)+20>>2]=I;c[(M&p)+24>>2]=r;c[(M&p)+28>>2]=l;Br(f,36704,M);mg(N,r);Dr(f,t);if((a[(Q&n)+44>>0]&8)!=0?(K=c[(q&p)>>2]|0,(c[((c[(K+(t<<4)&p)+12>>2]|0)&p)+72>>2]|0)==0):0){c[(M&p)>>2]=c[(K+(t<<4)&p)>>2];Br(f,36792,M)}c[(M&p)>>2]=c[(m&p)>>2];Ir(E,t,uh(N,36840,M)|0);if(!(a[(L&n)>>0]|0))break}else m=Q;if(Ik((c[(F&p)>>2]|0)+8|0,c[(m&p)>>2]|0,Q)|0){a[(O&n)>>0]=1;break}c[(P&p)>>2]=0;l=N+24|0;c[(l&p)>>2]=c[(l&p)>>2]|2;if(!(c[(Q&p)+12>>2]|0)){l=c[(f&p)+496>>2]|0;c[(Q&p)+48>>2]=(Nn(l,(c[(((c[(g&p)>>2]|0)==0?h:g)&p)>>2]|0)-l|0)|0)+13}}while(0);i=R;return}function Wq(b,d){b=b|0;d=d|0;var e=0,f=0;if(!d)e=0;else{f=c[(d&p)>>2]|0;d=c[(d&p)+4>>2]|0;if((f|0)!=0?(e=jw(d|0,0,1,0)|0,e=mh(b,e,G)|0,(e|0)!=0):0){kw(e|0,f|0,d|0)|0;a[(e+d&n)>>0]=0}else e=0;lo(e)}return e|0}function Xq(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,o=0,q=0;o=i;i=i+16|0;if((i|0)>=(j|0))fa();m=o;a:do if(b){g=a[(b&n)>>0]|0;b:do if(!(g<<24>>24)){f=67;g=0}else{k=g;f=67;h=0;g=0;do{h=d[(k&255&n)+9328>>0]|0|h<<8;b=b+1|0;if((h|0)==1685026146)if(f<<24>>24==67){f=69;h=1685026146;l=5}else l=13;else if((h|0)==1668050786){f=66;l=5}else if((h|0)==1718382433)if(f<<24>>24==67){f=69;h=1718382433;l=5}else l=13;else if((h|0)==1919246700)if(f<<24>>24==67){f=69;h=1919246700;l=5}else l=14;else if((h|0)==1952807028){f=66;l=5}else if((h|0)==1651273570)if(f<<24>>24==69|f<<24>>24==67){q=a[(b&n)>>0]|0;k=q;f=65;h=1651273570;g=q<<24>>24==40?b:g}else l=14;else if((h|0)!=1667785074)if((h&16777215|0)==6909556){f=68;break b}else l=5;else{f=66;h=1667785074;g=b;l=5}if((l|0)==13)l=5;else if((l|0)==14)l=5;if((l|0)==5){l=0;k=a[(b&n)>>0]|0}}while(k<<24>>24!=0)}while(0);if((e|0)!=0?(a[(e&n)>>0]=1,f<<24>>24<67):0){if(!g){a[(e&n)>>0]=5;break}b=a[(g&n)>>0]|0;if(b<<24>>24){while(1){if(((b&255)+-48|0)>>>0<10)break;g=g+1|0;b=a[(g&n)>>0]|0;if(!(b<<24>>24))break a}c[(m&p)>>2]=0;Dn(g,m)|0;g=((c[(m&p)>>2]|0)/4|0)+1|0;g=(g|0)>255?255:g;c[(m&p)>>2]=g;a[(e&n)>>0]=g}}}else f=67;while(0);i=o;return f|0}function Yq(e,f){e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,q=0,r=0,s=0,t=0;r=i;i=i+32|0;if((i|0)>=(j|0))fa();m=r;q=c[(e&p)>>2]|0;k=c[(e&p)+484>>2]|0;do if(k){h=(b[(k&o)+38>>1]|0)+-1|0;l=c[(k&p)+4>>2]|0;s=c[(f&p)>>2]|0;t=(d[(q&n)+145>>0]|0)+4|0;c[(m&p)>>2]=0;c[(m&p)+4>>2]=0;c[(m&p)+8>>2]=0;c[(m&p)+12>>2]=0;c[(m&p)+16>>2]=0;c[(m&p)+20>>2]=0;k=m+20|0;a[(k&n)>>0]=t;c[(m&p)>>2]=78;c[(m&p)+4>>2]=79;c[(m&p)+24>>2]=0;rs(m,s)|0;if(!(a[(k&n)>>0]|0)){c[(m&p)>>2]=c[(l+(h*24|0)&p)>>2];th(e,36480,m);break}k=l+(h*24|0)+4|0;Gk(q,c[(k&p)>>2]|0);c[(k&p)>>2]=Mr(q,c[(f&p)>>2]|0,1,0)|0;l=l+(h*24|0)+8|0;mg(q,c[(l&p)>>2]|0);h=c[(f&p)+4>>2]|0;k=(c[(f&p)+8>>2]|0)-h|0;if((h|0)!=0?(g=jw(k|0,((k|0)<0)<<31>>31|0,1,0)|0,g=mh(q,g,G)|0,(g|0)!=0):0){kw(g|0,h|0,k|0)|0;a[(g+k&n)>>0]=0}else g=0;c[(l&p)>>2]=g}while(0);Gk(q,c[(f&p)>>2]|0);i=r;return}function Zq(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,k=0;k=i;i=i+16|0;if((i|0)>=(j|0))fa();h=k;if((b|0)==72&(d|0)!=0&(e|0)!=0?(c[(a&p)+64>>2]|0)==0:0)b=ss(c[(a&p)>>2]|0,d,e)|0;else{b=nr(c[(a&p)>>2]|0,b,f,1)|0;ts(c[(a&p)>>2]|0,b,d,e)}if((b|0)!=0?(g=c[((c[(a&p)>>2]|0)&p)+100>>2]|0,(g|0)<(c[(b&p)+24>>2]|0)):0){c[(h&p)>>2]=g;th(a,27152,h)}i=k;return b|0}function _q(e,f,g,h,k){e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;var l=0,m=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;i=i+16|0;if((i|0)>=(j|0))fa();C=D;A=c[(e&p)+484>>2]|0;do if((A|0)!=0?(a[(e&n)+451>>0]|0)==0:0){B=A+44|0;m=d[(B&n)>>0]|0;if(m&4){c[(C&p)>>2]=c[(A&p)>>2];th(e,36376,C);break}y=m|4;a[(B&n)>>0]=y;z=(f|0)==0;if(z){m=(b[(A&o)+38>>1]|0)+-1|0;w=c[(A&p)+4>>2]|0;l=w+(m*24|0)+23|0;a[(l&n)>>0]=d[(l&n)>>0]|1;l=m;q=1;m=c[(w+(m*24|0)&p)+12>>2]|0}else{x=c[(f&p)>>2]|0;if((x|0)>0){u=f+4|0;v=A+4|0;t=b[(A&o)+38>>1]|0;w=0;m=0;do{a:do if(t<<16>>16>0){r=c[((c[(u&p)>>2]|0)+(w*20|0)&p)+4>>2]|0;s=c[(v&p)>>2]|0;q=0;while(1){l=q+1|0;if(!(dd(r,c[(s+(q*24|0)&p)>>2]|0)|0))break;if((l|0)<(t<<16>>16|0))q=l;else break a}l=s+(q*24|0)+23|0;a[(l&n)>>0]=d[(l&n)>>0]|1;l=q;m=c[(s+(q*24|0)&p)+12>>2]|0}else l=0;while(0);w=w+1|0}while((w|0)!=(x|0))}else{l=-1;m=0}q=(x|0)==1}if(q&(m|0)!=0?(dd(m,11144)|0|k|0)==0:0){b[(A&o)+36>>1]=l;a[(A&n)+45>>0]=g;a[(B&n)>>0]=y|h<<3;if(z){f=0;break}a[(e&n)+448>>0]=a[((c[(f&p)+4>>2]|0)&n)+12>>0]|0;break}if(h){th(e,36424,C);break}m=c[(e&p)+8>>2]|0;l=(m|0)!=0;if(l)c[(e&p)+420>>2]=wh(m,156,0,0,0)|0;f=$q(e,0,0,0,f,g,0,0,k,0)|0;if((f|0)!=0?(w=f+51|0,a[(w&n)>>0]=a[(w&n)>>0]&-4|2,l):0){f=c[(e&p)+420>>2]|0;l=c[(m&p)+32>>2]|0;if(l>>>0>f>>>0)c[((c[(m&p)+4>>2]|0)+(f*20|0)&p)+8>>2]=l;c[((c[(m&p)+24>>2]|0)&p)+88>>2]=l+-1;f=0}else f=0}while(0);Nk(c[(e&p)>>2]|0,f);i=D;return}function $q(f,g,h,k,l,m,q,r,s,t){f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;m=m|0;q=q|0;r=r|0;s=s|0;t=t|0;var 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;Y=i;i=i+144|0;if((i|0)>=(j|0))fa();V=Y;E=Y+112|0;x=Y+88|0;T=Y+84|0;N=Y+80|0;X=c[(f&p)>>2]|0;c[(T&p)>>2]=0;c[(N&p)>>2]=0;S=X+65|0;a:do if(((a[(S&n)>>0]|0)==0?(a[(f&n)+451>>0]|0)==0:0)?(Gn(f)|0)==0:0){U=(k|0)!=0;b:do if(U){g=er(f,g,h,T)|0;if((g|0)<0){u=0;h=0;break a}if((a[(X&n)+145>>0]|0)==0?(u=Jr(f,k)|0,(c[(h&p)+4>>2]|0)==0&(u|0)!=0):0)g=(c[(u&p)+68>>2]|0)==(c[((c[(X&p)+16>>2]|0)&p)+28>>2]|0)?1:g;h=c[(T&p)>>2]|0;u=c[(f&p)>>2]|0;c[(x&p)>>2]=f;u=c[(u&p)+16>>2]|0;c[(x&p)+12>>2]=c[(u+(g<<4)&p)>>2];c[(x&p)+4>>2]=c[(u+(g<<4)&p)+12>>2];c[(x&p)+16>>2]=20632;c[(x&p)+20>>2]=h;u=(g|0)==1;c[(x&p)+8>>2]=u&1;Kr(x,k)|0;w=Ur(f,0,k+8|0)|0;if(!w){u=0;h=0;break a}if(u?(c[((c[(X&p)+16>>2]|0)&p)+28>>2]|0)!=(c[(w&p)+68>>2]|0):0){c[(V&p)>>2]=c[(w&p)>>2];th(f,35920,V);u=0;h=0;break a}if((a[(w&n)+44>>0]&32)!=0?(v=c[(w&p)+8>>2]|0,(v|0)!=0):0){u=v;while(1){if((a[(u&n)+51>>0]&3)==2){v=g;M=u;x=w;break b}u=c[(u&p)+20>>2]|0;if(!u){v=g;M=0;x=w;break}}}else{v=g;M=0;x=w}}else{x=c[(f&p)+484>>2]|0;if(!x){u=0;h=0;break a}g=c[(x&p)+68>>2]|0;if(g){u=c[(X&p)+20>>2]|0;if((u|0)>0){h=c[(X&p)+16>>2]|0;w=0;while(1){v=w+1|0;if((c[(h+(w<<4)&p)+12>>2]|0)==(g|0)){h=0;v=w;M=0;break b}if((v|0)<(u|0))w=v;else{h=0;M=0;break}}}else{h=0;v=0;M=0}}else{h=0;v=-1e6;M=0}}while(0);R=X+16|0;F=c[(R&p)>>2]|0;g=F+(v<<4)|0;A=c[(x&p)>>2]|0;if(((Fc(A,25568,7)|0)==0?(a[(X&n)+145>>0]|0)==0:0)?(Fc(A+7|0,35976,9)|0)!=0:0){c[(V&p)>>2]=A;th(f,35992,V);u=0;h=0;break}if(c[(x&p)+12>>2]|0){th(f,36024,V);u=0;h=0;break}Q=x+44|0;if(a[(Q&n)>>0]&16){th(f,36056,V);u=0;h=0;break}G=(h|0)==0;if(!G){h=Wq(X,h)|0;if(!h){u=0;h=0;break}if(Lr(f,h)|0){u=0;break}if((a[(X&n)+145>>0]|0)==0?(_h(X,h,0)|0)!=0:0){c[(V&p)>>2]=h;th(f,36096,V);u=0;break}if(bq(X,h,c[(g&p)>>2]|0)|0)if(!t){c[(V&p)>>2]=h;th(f,36136,V);u=0;break}else{Ar(f,v);u=0;break}else w=h}else{u=c[(x&p)+8>>2]|0;if(!u)w=1;else{w=1;do{w=w+1|0;u=c[(u&p)+20>>2]|0}while((u|0)!=0)}c[(V&p)>>2]=A;c[(V&p)+4>>2]=w;w=uh(X,36160,V)|0;if(!w){u=0;h=0;break}}g=c[(g&p)>>2]|0;u=(v|0)==1;O=u?13184:13208;if((Sq(f,18,O,0,g)|0)==0?(Sq(f,u?3:1,w,c[(x&p)>>2]|0,g)|0)==0:0){if(!l){l=lr(f,0,0)|0;if(!l){l=0;u=0;h=w;break}I=kh(c[(f&p)>>2]|0,c[((c[(x&p)+4>>2]|0)+(((b[(x&o)+38>>1]|0)+-1|0)*24|0)&p)>>2]|0)|0;J=c[(l&p)+4>>2]|0;c[(J&p)+4>>2]=I;a[(J&n)+12>>0]=s}D=c[(l&p)>>2]|0;if((D|0)>0){A=c[(l&p)+4>>2]|0;y=0;g=0;do{u=c[(A+(y*20|0)&p)>>2]|0;if(u){h=c[(u&p)+8>>2]|0;if(!h)u=1;else{u=h;while(1)if(!(a[(u&n)>>0]|0))break;else u=u+1|0;u=(u-h&1073741823)+1|0}g=u+g|0}y=y+1|0}while((y|0)<(D|0));h=g}else h=0;if(!w)u=0;else{g=w;while(1)if(!(a[(g&n)>>0]|0))break;else g=g+1|0;u=g-w&1073741823}I=(M|0)!=0;if(I)g=e[(M&o)+46>>1]|0;else g=1;P=us(X,D+g&65535,h+1+u|0,N)|0;c:do if(!(a[(S&n)>>0]|0)){H=c[(N&p)>>2]|0;c[(P&p)>>2]=H;L=u+1|0;C=H+L|0;c[(N&p)>>2]=C;kw(H|0,w|0,L|0)|0;c[(P&p)+12>>2]=x;L=P+50|0;a[(L&n)>>0]=m;H=P+51|0;a[(H&n)>>0]=a[(H&n)>>0]&-12|((m|0)!=0&1)<<3&255|G&1;K=P+24|0;c[(K&p)>>2]=c[((c[(R&p)>>2]|0)+(v<<4)&p)+12>>2];g=c[(l&p)>>2]|0;J=P+46|0;b[(J&o)>>1]=g;if(r){c[(E&p)>>2]=0;c[(E&p)+4>>2]=0;c[(E&p)+8>>2]=0;c[(E&p)+12>>2]=0;c[(E&p)+16>>2]=0;c[(E&p)+20>>2]=0;c[(E&p)+24>>2]=0;c[(E&p)+28>>2]=0;A=V+0|0;h=A+80|0;do{c[(A&p)>>2]=0;A=A+4|0}while((A|0)<(h|0));c[(V&p)>>2]=1;c[(V&p)+16>>2]=c[(x&p)>>2];c[(V&p)+24>>2]=x;c[(V&p)+48>>2]=-1;c[(E&p)>>2]=f;c[(E&p)+4>>2]=V;b[(E&o)+28>>1]=16;ls(E,r)|0;c[(P&p)+36>>2]=r;g=c[(l&p)>>2]|0}z=(d[((c[(F+(v<<4)&p)+12>>2]|0)&n)+76>>0]|0)>3;d:do if((g|0)>0){G=x+4|0;F=x+38|0;E=P+4|0;r=X+145|0;g=P+32|0;y=P+28|0;h=0;s=c[(l&p)+4>>2]|0;while(1){u=c[(s&p)+4>>2]|0;A=b[(F&o)>>1]|0;e:do if(A<<16>>16>0){D=0;B=c[(G&p)>>2]|0;while(1){if(!(dd(u,c[(B&p)>>2]|0)|0)){t=D;break e}D=D+1|0;if((D|0)<(A<<16>>16|0))B=B+24|0;else{t=D;break}}}else t=0;while(0);if((t|0)>=(A<<16>>16|0))break;b[((c[(E&p)>>2]|0)+(h<<1)&o)>>1]=t;D=c[(s&p)>>2]|0;if(!D){D=c[((c[(G&p)>>2]|0)+(t*24|0)&p)+16>>2]|0;D=(D|0)!=0?D:11152}else{B=c[(D&p)+8>>2]|0;if(!B)D=1;else{D=B;while(1)if(!(a[(D&n)>>0]|0))break;else D=D+1|0;D=(D-B&1073741823)+1|0}kw(C|0,B|0,D|0)|0;B=c[(N&p)>>2]|0;C=B+D|0;c[(N&p)>>2]=C;D=B}if((a[(r&n)>>0]|0)==0?(cr(f,D)|0)==0:0){h=0;u=0;W=134;break c}c[((c[(g&p)>>2]|0)+(h<<2)&p)>>2]=D;a[((c[(y&p)>>2]|0)+h&n)>>0]=z?a[(s&n)+12>>0]|0:0;if(!(a[((c[(G&p)>>2]|0)+(t*24|0)&n)+20>>0]|0))a[(H&n)>>0]=a[(H&n)>>0]&-9;h=h+1|0;if((h|0)<(c[(l&p)>>2]|0))s=s+20|0;else break d}c[(V&p)>>2]=c[(x&p)>>2];c[(V&p)+4>>2]=u;th(f,36184,V);a[(f&n)+17>>0]=1;h=0;u=0;W=134;break c}else h=0;while(0);do if(I){z=M+46|0;A=b[(z&o)>>1]|0;if(!(A<<16>>16))break;E=M+4|0;F=P+4|0;G=P+48|0;s=M+32|0;t=P+32|0;g=M+28|0;y=P+28|0;r=0;do{B=b[((c[(E&p)>>2]|0)+(r<<1)&o)>>1]|0;u=c[(F&p)>>2]|0;D=e[(J&o)>>1]|0;C=u;while(1){if((D|0)<=0){W=92;break}if((b[(C&o)>>1]|0)==B<<16>>16){W=91;break}else{D=D+-1|0;C=C+2|0}}if((W|0)==91){W=0;b[(G&o)>>1]=(b[(G&o)>>1]|0)+-1<<16>>16}else if((W|0)==92){W=0;b[(u+(h<<1)&o)>>1]=B;c[((c[(t&p)>>2]|0)+(h<<2)&p)>>2]=c[((c[(s&p)>>2]|0)+(r<<2)&p)>>2];a[((c[(y&p)>>2]|0)+h&n)>>0]=a[((c[(g&p)>>2]|0)+r&n)>>0]|0;A=b[(z&o)>>1]|0;h=h+1|0}r=r+1|0}while((r|0)<(A&65535|0))}else{b[((c[(P&p)+4>>2]|0)+(h<<1)&o)>>1]=-1;c[((c[(P&p)+32>>2]|0)+(h<<2)&p)>>2]=11152}while(0);cq(P);r=f+484|0;g=c[(r&p)>>2]|0;if(!g){ms(P);g=c[(r&p)>>2]|0}f:do if((x|0)==(g|0)){u=c[(x&p)+8>>2]|0;if(!u)break;B=b[(J&o)>>1]|0;C=P+4|0;D=P+32|0;while(1){if((b[(u&o)+46>>1]|0)==B<<16>>16){g:do if(!(B<<16>>16)){r=0;g=0}else{y=c[(u&p)+4>>2]|0;z=c[(C&p)>>2]|0;A=u+32|0;g=0;while(1){if((b[(y+(g<<1)&o)>>1]|0)!=(b[(z+(g<<1)&o)>>1]|0)){r=B;break g}r=c[((c[(A&p)>>2]|0)+(g<<2)&p)>>2]|0;h=c[((c[(D&p)>>2]|0)+(g<<2)&p)>>2]|0;if((r|0)!=(h|0)?(dd(r,h)|0)!=0:0){r=B;break g}g=g+1|0;if((g|0)>=(B&65535|0)){r=B;break}}}while(0);if((g|0)==(r&65535|0))break}u=c[(u&p)+20>>2]|0;if(!u)break f}g=u+50|0;h=a[(g&n)>>0]|0;r=a[(L&n)>>0]|0;if(h<<24>>24==r<<24>>24){h=0;break c}if(!(h<<24>>24==10|r<<24>>24==10)){c[(V&p)>>2]=0;th(f,36216,V);h=a[(g&n)>>0]|0}if(h<<24>>24!=10){h=0;W=134;break c}a[(g&n)>>0]=a[(L&n)>>0]|0;h=0;break c}while(0);h=X+145|0;do if(!(a[(h&n)>>0]|0)){if(c[(f&p)+64>>2]|0){W=126;break}if(!((a[(Q&n)>>0]&32)==0|U)){W=126;break}u=f+72|0;r=(c[(u&p)>>2]|0)+1|0;c[(u&p)>>2]=r;u=Oq(f)|0;if(!u){h=0;u=0;W=134;break c}J=c[(f&p)+408>>2]|0;J=(J|0)==0?f:J;Ar(f,v);I=J+328|0;c[(I&p)>>2]=c[(I&p)>>2]|1<>0]=d[(J&n)>>0]|1;wh(u,120,v,r,0)|0;if(!q)g=0;else{g=c[(c[(T&p)>>2]&p)>>2]|0;J=(c[(f&p)+504>>2]|0)-g+(c[(f&p)+508>>2]|0)|0;I=J+-1|0;J=(a[(g+I&n)>>0]|0)==59?I:J;c[(V&p)>>2]=(m|0)==0?10360:36288;c[(V&p)+4>>2]=J;c[(V&p)+8>>2]=g;g=uh(X,36264,V)|0}I=c[(P&p)>>2]|0;J=c[(x&p)>>2]|0;c[(V&p)>>2]=c[((c[(R&p)>>2]|0)+(v<<4)&p)>>2];c[(V&p)+4>>2]=O;c[(V&p)+8>>2]=I;c[(V&p)+12>>2]=J;c[(V&p)+16>>2]=r;c[(V&p)+20>>2]=g;Br(f,36296,V);mg(X,g);if(!U)break;vs(f,P,r);Dr(f,v);c[(V&p)>>2]=c[(P&p)>>2];Ir(u,v,uh(X,36344,V)|0);wh(u,144,0,0,0)|0;W=126}else{if(Ik((c[(K&p)>>2]|0)+24|0,c[(P&p)>>2]|0,P)|0){a[(S&n)>>0]=1;h=0;u=0;W=134;break c}J=X+24|0;c[(J&p)>>2]=c[(J&p)>>2]|2;if(!U)break;c[(P&p)+40>>2]=c[(X&p)+140>>2];W=126}while(0);if((W|0)==126?!((a[(h&n)>>0]|0)!=0|(k|0)==0):0){h=0;u=0;W=134;break}h=c[(x&p)+8>>2]|0;do if((m|0)==5){if(!h){h=0;break}if((a[(h&n)+50>>0]|0)==5)break;do{u=h+20|0;h=c[(u&p)>>2]|0;if(!h){h=0;break}}while((a[(h&n)+50>>0]|0)!=5);c[(P&p)+20>>2]=h;c[(u&p)>>2]=P;r=0;u=P;h=w;break a}while(0);c[(P&p)+20>>2]=h;c[(x&p)+8>>2]=P;r=0;u=P;h=w;break a}else{h=r;u=0;W=134}while(0);if((W|0)==134)if(!P){r=h;h=w;break}Jk(X,P);r=h;h=w}else{u=0;h=w}}else{u=0;h=0}while(0);Gk(X,r);Nk(X,l);Do(X,k);mg(X,h);i=Y;return u|0}function ar(e,f){e=e|0;f=f|0;var g=0,h=0;g=c[(e&p)+484>>2]|0;h=c[(e&p)>>2]|0;if(((g|0)!=0?(a[(e&n)+451>>0]|0)==0:0)?(b[((c[((c[((c[(h&p)+16>>2]|0)+(d[(h&n)+144>>0]<<4)&p)+4>>2]|0)&p)+4>>2]|0)&o)+22>>1]&1)==0:0){h=g+24|0;g=lr(e,c[(h&p)>>2]|0,f)|0;c[(h&p)>>2]=g;if(c[(e&p)+324>>2]|0)mr(e,g,e+320|0,1)}else Gk(h,f);return}function br(d,e,f,g,h){d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0;F=i;i=i+16|0;if((i|0)>=(j|0))fa();C=F;E=c[(d&p)>>2]|0;D=c[(d&p)+484>>2]|0;a:do if((D|0)!=0?(a[(d&n)+451>>0]|0)==0:0){z=(e|0)==0;do if(z){B=b[(D&o)+38>>1]|0;l=(B<<16>>16)+-1|0;if(B<<16>>16<1){k=0;break a}if(g)if((c[(g&p)>>2]|0)==1){l=1;k=13}else{c[(C&p)>>2]=c[((c[(D&p)+4>>2]|0)+(l*24|0)&p)>>2];c[(C&p)+4>>2]=f;th(d,35712,C);k=0;break a}else{l=1;k=12}}else{if(!g){l=c[(e&p)>>2]|0;k=12;break}l=c[(g&p)>>2]|0;if((l|0)==(c[(e&p)>>2]|0))k=13;else{th(d,35776,C);k=0;break a}}while(0);if((k|0)==12){m=f+4|0;s=m;w=0;m=(l<<3)+37+(c[(m&p)>>2]|0)|0;B=l}else if((k|0)==13){s=f+4|0;m=(l<<3)+37+(c[(s&p)>>2]|0)|0;t=c[(g&p)>>2]|0;if((t|0)>0){u=c[(g&p)+4>>2]|0;v=0;do{r=c[(u+(v*20|0)&p)+4>>2]|0;if(!r)k=1;else{q=r;while(1)if(!(a[(q&n)>>0]|0))break;else q=q+1|0;k=(q-r&1073741823)+1|0}m=k+m|0;v=v+1|0}while((v|0)<(t|0));w=1;B=l}else{w=1;B=l}}k=mh(E,m,((m|0)<0)<<31>>31)|0;if(k){fw(k|0,0,m|0)|0;c[(k&p)>>2]=D;A=D+16|0;c[(k&p)+4>>2]=c[(A&p)>>2];x=k+36|0;q=x+(B<<3)|0;y=k+8|0;c[(y&p)>>2]=q;kw(q|0,c[(f&p)>>2]|0,c[(s&p)>>2]|0)|0;a[(q+(c[(s&p)>>2]|0)&n)>>0]=0;lo(q);q=q+((c[(s&p)>>2]|0)+1)|0;c[(k&p)+20>>2]=B;b:do if(!z){if((B|0)>0){m=D+4|0;f=e+4|0;r=b[(D&o)+38>>1]|0;l=0;while(1){c:do if(r<<16>>16>0){v=c[(m&p)>>2]|0;u=c[((c[(f&p)>>2]|0)+(l*20|0)&p)+4>>2]|0;t=0;while(1){s=t+1|0;if(!(dd(c[(v+(t*24|0)&p)>>2]|0,u)|0)){s=t;break}if((s|0)<(r<<16>>16|0))t=s;else break c}c[(x+(l<<3)&p)>>2]=s}else s=0;while(0);if((s|0)>=(r<<16>>16|0))break;l=l+1|0;if((l|0)>=(B|0))break b}c[(C&p)>>2]=c[((c[(f&p)>>2]|0)+(l*20|0)&p)+4>>2];th(d,35872,C);break a}}else c[(x&p)>>2]=(b[(D&o)+38>>1]|0)+-1;while(0);if(w&(B|0)>0){r=g+4|0;s=0;while(1){m=c[((c[(r&p)>>2]|0)+(s*20|0)&p)+4>>2]|0;if(!m)l=0;else{l=m;while(1)if(!(a[(l&n)>>0]|0))break;else l=l+1|0;l=l-m&1073741823}c[(x+(s<<3)&p)+4>>2]=q;kw(q|0,m|0,l|0)|0;a[(q+l&n)>>0]=0;s=s+1|0;if((s|0)==(B|0))break;else q=q+(l+1)|0}}a[(k&n)+24>>0]=0;a[(k&n)+25>>0]=h;a[(k&n)+26>>0]=h>>>8;l=Ik((c[(D&p)+68>>2]|0)+56|0,c[(y&p)>>2]|0,k)|0;if((l|0)==(k|0)){a[(E&n)+65>>0]=1;break}if(l){c[(k&p)+12>>2]=l;c[(l&p)+16>>2]=k}c[(A&p)>>2]=k;k=0}else k=0}else k=0;while(0);mg(E,k);Nk(E,e);Nk(E,g);i=F;return}function cr(b,d){b=b|0;d=d|0;var e=0,f=0,g=0;e=c[(b&p)>>2]|0;f=a[(e&n)+62>>0]|0;g=a[(e&n)+145>>0]|0;e=Yn(e,f,d,g&255)|0;do if(!(g<<24>>24)){if((e|0)!=0?(c[(e&p)+12>>2]|0)!=0:0)break;e=ws(b,f,e,d)|0}while(0);return e|0}function dr(e,f,g,h){e=e|0;f=f|0;g=g|0;h=h|0;var k=0,l=0,m=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;i=i+16|0;if((i|0)>=(j|0))fa();z=B;v=B+12|0;A=c[(e&p)>>2]|0;do if(!(a[(A&n)+65>>0]|0)){h=(h|0)!=0;if(h){u=A+68|0;a[(u&n)>>0]=(a[(u&n)>>0]|0)+1<<24>>24;y=Ur(e,g,f+8|0)|0;a[(u&n)>>0]=(a[(u&n)>>0]|0)+-1<<24>>24}else y=Ur(e,g,f+8|0)|0;if(!y){if(!h)break;zr(e,c[(f&p)+12>>2]|0);break}s=y+68|0;l=c[(s&p)>>2]|0;a:do if(l){h=c[(A&p)+20>>2]|0;if((h|0)>0){k=c[(A&p)+16>>2]|0;q=0;while(1){m=q+1|0;if((c[(k+(q<<4)&p)+12>>2]|0)==(l|0)){m=q;break a}if((m|0)<(h|0))q=m;else break}}else m=0}else m=-1e6;while(0);w=y+44|0;if((a[(w&n)>>0]&16)!=0?(hr(e,y)|0)!=0:0)break;q=(m|0)==1;x=q?13184:13208;h=c[((c[(A&p)+16>>2]|0)+(m<<4)&p)>>2]|0;if(!(Sq(e,9,x,0,h)|0)){k=(g|0)!=0;do if(k){l=q?15:17;q=0}else{if(!(a[(w&n)>>0]&16)){l=q?13:11;q=0;break}q=y+60|0;while(1){q=c[(q&p)>>2]|0;if((c[(q&p)>>2]|0)==(A|0))break;else q=q+24|0}l=30;q=c[((c[(q&p)+4>>2]|0)&p)+4>>2]|0}while(0);if((Sq(e,l,c[(y&p)>>2]|0,q,h)|0)==0?(Sq(e,9,c[(y&p)>>2]|0,0,h)|0)==0:0){q=c[(y&p)>>2]|0;if((Fc(q,25568,7)|0)==0?(Fc(q,35488,11)|0)!=0:0){c[(z&p)>>2]=q;th(e,35504,z);break}h=y+12|0;l=(c[(h&p)>>2]|0)==0;if(k){if(l){c[(z&p)>>2]=q;th(e,35536,z);break}}else if(!l){c[(z&p)>>2]=q;th(e,35576,z);break}if(Oq(e)|0){t=e+408|0;l=c[(t&p)>>2]|0;l=(l|0)==0?e:l;Ar(e,m);u=1<>2]=c[(k&p)>>2]|u;l=l+20|0;a[(l&n)>>0]=d[(l&n)>>0]|1;Cr(e,m,28544,c[(y&p)>>2]|0);l=c[(e&p)>>2]|0;k=l+24|0;b:do if(((c[(k&p)>>2]&524288|0)!=0?(a[(w&n)>>0]&16)==0:0)?(c[(h&p)>>2]|0)==0:0){r=Oq(e)|0;v=bn((c[(s&p)>>2]|0)+56|0,c[(y&p)>>2]|0,v)|0;if((v|0)!=0?(c[(v&p)+8>>2]|0)!=0:0)q=0;else{q=c[(y&p)+16>>2]|0;if(!q)break;while(1){if(a[(q&n)+24>>0]|0)break;if(c[(k&p)>>2]&16777216)break;q=c[(q&p)+4>>2]|0;if(!q)break b}q=xs(r)|0;wh(r,135,1,q,0)|0}v=e+438|0;a[(v&n)>>0]=1;rr(e,ys(l,f,0)|0,0);a[(v&n)>>0]=0;if(!(c[(k&p)>>2]&16777216)){wh(r,135,0,(c[(r&p)+32>>2]|0)+2|0,0)|0;zs(e,787,2,0,-2,4)}if(q){l=c[(r&p)+24>>2]|0;h=~q;do if((q|0)<0){q=c[(l&p)+112>>2]|0;if(!q)break;c[(q+(h<<2)&p)>>2]=c[(r&p)+32>>2]}while(0);c[(l&p)+88>>2]=(c[(r&p)+32>>2]|0)+-1}}while(0);r=c[(e&p)>>2]|0;s=r+16|0;l=c[(s&p)>>2]|0;h=Oq(e)|0;v=c[(t&p)>>2]|0;v=(v|0)==0?e:v;Ar(e,m);t=v+328|0;c[(t&p)>>2]=c[(t&p)>>2]|u;v=v+20|0;a[(v&n)>>0]=d[(v&n)>>0]|1;if(a[(w&n)>>0]&16)wh(h,146,0,0,0)|0;q=As(e,y)|0;if(q)do{Qr(e,q);q=c[(q&p)+32>>2]|0}while((q|0)!=0);l=l+(m<<4)|0;if(a[(w&n)>>0]&8){v=c[(y&p)>>2]|0;c[(z&p)>>2]=c[(l&p)>>2];c[(z&p)+4>>2]=v;Br(e,35608,z)}v=c[(y&p)>>2]|0;c[(z&p)>>2]=c[(l&p)>>2];c[(z&p)+4>>2]=x;c[(z&p)+8>>2]=v;Br(e,35656,z);if((g|0)==0?(a[(w&n)>>0]&16)==0:0)Bs(e,y);if(a[(w&n)>>0]&16){v=c[(y&p)>>2]|0;xh(h,wh(h,148,m,0,0)|0,v,0)}k=c[(y&p)>>2]|0;xh(h,wh(h,124,m,0,0)|0,k,0);Dr(e,m);h=c[((c[(s&p)>>2]|0)+(m<<4)&p)+12>>2]|0;k=b[(h&o)+78>>1]|0;if(k&2){l=c[(h&p)+16>>2]|0;if(l){k=l;do{h=c[(k&p)+8>>2]|0;if(c[(h&p)+12>>2]|0){Lk(r,h);c[(h&p)+4>>2]=0;b[(h&o)+38>>1]=0}k=c[(k&p)>>2]|0}while((k|0)!=0);k=c[((c[(s&p)>>2]|0)+(m<<4)&p)+12>>2]|0;h=k;k=b[(k&o)+78>>1]|0}b[(h&o)+78>>1]=k&65533}}}}}while(0);Do(A,f);i=B;return}function er(b,e,f,g){b=b|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0;m=i;i=i+16|0;if((i|0)>=(j|0))fa();k=m;h=c[(b&p)>>2]|0;do if((f|0)!=0?(c[(f&p)+4>>2]|0)!=0:0){if(a[(h&n)+145>>0]|0){th(b,28488,k);f=b+64|0;c[(f&p)>>2]=(c[(f&p)>>2]|0)+1;f=-1;break}c[(g&p)>>2]=f;g=Wq(h,e)|0;f=Vh(h,g)|0;mg(h,g);if((f|0)<0){c[(k&p)>>2]=e;th(b,28512,k);f=b+64|0;c[(f&p)>>2]=(c[(f&p)>>2]|0)+1;f=-1}}else l=7;while(0);if((l|0)==7){f=d[(h&n)+144>>0]|0;c[(g&p)>>2]=e}i=m;return f|0}function fr(a,b){a=a|0;b=b|0;a:do if(!b)b=0;else while(1){if(Hr(a,c[(b&p)>>2]|0)|0){b=1;break a}if(Kr(a,c[(b&p)+32>>2]|0)|0){b=1;break a}if(Gr(a,c[(b&p)+36>>2]|0)|0){b=1;break a}if(Hr(a,c[(b&p)+40>>2]|0)|0){b=1;break a}if(Gr(a,c[(b&p)+44>>2]|0)|0){b=1;break a}if(Hr(a,c[(b&p)+48>>2]|0)|0){b=1;break a}if(Gr(a,c[(b&p)+60>>2]|0)|0){b=1;break a}if(Gr(a,c[(b&p)+64>>2]|0)|0){b=1;break a}b=c[(b&p)+52>>2]|0;if(!b){b=0;break}}while(0);return b|0}function gr(d,f,g){d=d|0;f=f|0;g=g|0;var h=0,i=0,j=0,k=0,l=0;if((f|0)!=0?(h=mh(d,72,0)|0,(h|0)!=0):0){c[(h&p)>>2]=Pr(d,c[(f&p)>>2]|0,g)|0;c[(h&p)+32>>2]=ys(d,c[(f&p)+32>>2]|0,g)|0;c[(h&p)+36>>2]=Mr(d,c[(f&p)+36>>2]|0,g,0)|0;c[(h&p)+40>>2]=Pr(d,c[(f&p)+40>>2]|0,g)|0;c[(h&p)+44>>2]=Mr(d,c[(f&p)+44>>2]|0,g,0)|0;c[(h&p)+48>>2]=Pr(d,c[(f&p)+48>>2]|0,g)|0;a[(h&n)+4>>0]=a[(f&n)+4>>0]|0;j=gr(d,c[(f&p)+52>>2]|0,g)|0;c[(h&p)+52>>2]=j;if(j)c[(j&p)+56>>2]=h;c[(h&p)+56>>2]=0;c[(h&p)+60>>2]=Mr(d,c[(f&p)+60>>2]|0,g,0)|0;c[(h&p)+64>>2]=Mr(d,c[(f&p)+64>>2]|0,g,0)|0;c[(h&p)+8>>2]=0;c[(h&p)+12>>2]=0;b[(h&o)+6>>1]=(e[(f&o)+6>>1]|0)&65527;c[(h&p)+16>>2]=-1;c[(h&p)+20>>2]=-1;l=f+24|0;j=c[(l&p)+4>>2]|0;g=h+24|0;c[(g&p)>>2]=c[(l&p)>>2];c[(g&p)+4>>2]=j;g=c[(f&p)+68>>2]|0;if((g|0)!=0?(k=c[(g&p)>>2]<<4|8,i=mh(d,k,((k|0)<0)<<31>>31)|0,(i|0)!=0):0){fw(i|0,0,k|0)|0;c[(i&p)>>2]=c[(g&p)>>2];if((c[(g&p)>>2]|0)>0){f=i+8|0;j=0;do{c[(f+(j<<4)&p)+8>>2]=gr(d,c[(g+(j<<4)&p)+16>>2]|0,0)|0;c[(f+(j<<4)&p)+4>>2]=Pr(d,c[(g+(j<<4)&p)+12>>2]|0,0)|0;c[(f+(j<<4)&p)>>2]=kh(d,c[(g+(j<<4)&p)+8>>2]|0)|0;j=j+1|0}while((j|0)<(c[(g&p)>>2]|0))}}else i=0;c[(h&p)+68>>2]=i}else h=0;return h|0}function hr(d,f){d=d|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0;w=i;i=i+16|0;if((i|0)>=(j|0))fa();s=w;k=w+8|0;m=w+4|0;v=c[(d&p)>>2]|0;q=f+44|0;h=a[(q&n)>>0]|0;a:do if(!(h&16))t=11;else{g=c[(f&p)+60>>2]|0;if(g)do{if((c[(g&p)>>2]|0)==(v|0)){t=11;break a}g=c[(g&p)+24>>2]|0}while((g|0)!=0);g=f+56|0;h=bn(v+308|0,c[(c[(g&p)>>2]&p)>>2]|0,k)|0;if((h|0)!=0?(l=c[(h&p)+8>>2]|0,(l|0)!=0):0){c[(m&p)>>2]=0;l=(zn(v,f,l,c[((c[(l&p)>>2]|0)&p)+8>>2]|0,m)|0)==0;h=c[(m&p)>>2]|0;if(l){mg(v,h);h=a[(q&n)>>0]|0;t=11;break}else{c[(s&p)>>2]=h;th(d,10344,s);mg(v,h);g=1;break}}c[(s&p)>>2]=c[(c[(g&p)>>2]&p)>>2];th(d,28320,s);g=1}while(0);do if((t|0)==11)if((h&16)==0?(u=f+38|0,r=b[(u&o)>>1]|0,r<<16>>16<=0):0){if(r<<16>>16<0){c[(s&p)>>2]=c[(f&p)>>2];th(d,26752,s);g=1;break}h=gr(v,c[(f&p)+12>>2]|0,0)|0;if(!h)g=1;else{r=v+250|0;q=a[(r&n)>>0]|0;t=d+68|0;s=c[(t&p)>>2]|0;Cs(d,c[(h&p)+32>>2]|0);b[(u&o)>>1]=-1;a[(r&n)>>0]=0;m=v+284|0;l=c[(m&p)>>2]|0;c[(m&p)>>2]=0;g=ns(d,h)|0;c[(m&p)>>2]=l;a[(r&n)>>0]=q;c[(t&p)>>2]=s;if(!g){b[(u&o)>>1]=0;g=1}else{d=g+38|0;b[(u&o)>>1]=b[(d&o)>>1]|0;t=g+4|0;c[(f&p)+4>>2]=c[(t&p)>>2];b[(d&o)>>1]=0;c[(t&p)>>2]=0;kg(v,g);g=(c[(f&p)+68>>2]|0)+78|0;b[(g&o)>>1]=e[(g&o)>>1]|0|2;g=0}Mk(v,h,1)}}else g=0;while(0);i=w;return g|0} function ir(f,g,h){f=f|0;g=g|0;h=h|0;var k=0,l=0,m=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,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,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;Ca=i;i=i+240|0;if((i|0)>=(j|0))fa();ra=Ca;sa=Ca+220|0;ka=Ca+216|0;ia=Ca+196|0;ja=Ca+176|0;ua=Ca+164|0;va=Ca+136|0;ya=Ca+88|0;ga=Ca+64|0;ma=Ca+32|0;Aa=f+464|0;Ba=c[(Aa&p)>>2]|0;oa=f+468|0;xa=c[(oa&p)>>2]|0;c[(oa&p)>>2]=xa+1;c[(Aa&p)>>2]=xa;xa=c[(f&p)>>2]|0;a:do if((((g|0)!=0?(pa=xa+65|0,(a[(pa&n)>>0]|0)==0):0)?(k=f+64|0,(c[(k&p)>>2]|0)==0):0)?(Sq(f,21,0,0,0)|0)==0:0){D=ya+0|0;C=D+48|0;do{c[(D&p)>>2]=0;D=D+4|0}while((D|0)<(C|0));la=g+48|0;if((d[(h&n)>>0]|0)<9){Nk(xa,c[(la&p)>>2]|0);c[(la&p)>>2]=0;ea=g+6|0;b[(ea&o)>>1]=e[(ea&o)>>1]&65534}Ds(f,g,0);c[(va&p)>>2]=0;c[(va&p)+4>>2]=0;c[(va&p)+8>>2]=0;c[(va&p)+12>>2]=0;c[(va&p)+16>>2]=0;c[(va&p)+20>>2]=0;c[(va&p)+24>>2]=0;c[(va&p)>>2]=c[(la&p)>>2];na=g+32|0;x=c[(na&p)>>2]|0;w=c[(g&p)>>2]|0;b:do if(((c[(k&p)>>2]|0)==0?(a[(pa&n)>>0]|0)==0:0)?(ta=g+6|0,z=(e[(ta&o)>>1]|0)>>>2&1,wa=Oq(f)|0,(wa|0)!=0):0){if((c[(w&p)>>2]|0)>1?(a[(h&n)>>0]&-2)<<24>>24==10:0){th(f,35368,ra);za=444;break}qa=g+52|0;w=c[(qa&p)>>2]|0;c:do if(!w){r=f+460|0;q=f+492|0;m=g+36|0;l=f+408|0;k=g+60|0;T=g+64|0;U=g+4|0;V=xa+60|0;W=wa+32|0;X=f+72|0;Y=ga+4|0;Z=ga+1|0;_=ga+8|0;$=ga+12|0;aa=wa+4|0;ba=wa+24|0;ca=f+19|0;da=f+56|0;ea=f+80|0;S=0;y=z;while(1){if((S|0)>=(c[(x&p)>>2]|0)){H=m;Q=0;z=y;U=x;break c}N=c[(x+(S*72|0)&p)+28>>2]|0;do if(!N)z=S;else{P=x+(S*72|0)+32|0;A=c[(P&p)>>2]|0;if(A){if(a[(x+(S*72|0)&n)+45>>0]&4){z=S;break}wh(wa,17,c[(x+(S*72|0)&p)+36>>2]|0,A,0)|0;z=S;break}c[(ra&p)>>2]=0;Es(g,ra);c[(r&p)>>2]=(c[(r&p)>>2]|0)+(c[(ra&p)>>2]|0);v=b[(N&o)+6>>1]&4;Q=c[(q&p)>>2]|0;u=c[(f&p)>>2]|0;d:do if(!(b[(u&o)+60>>1]&1)){L=c[(na&p)>>2]|0;t=c[(L+(S*72|0)&p)+48>>2]|0;K=L+(S*72|0)+28|0;O=c[(K&p)>>2]|0;s=v<<16>>16!=0;do if(s){if(y){za=120;break d}if((c[(L&p)>>2]|0)>1){za=120;break d}R=c[(m&p)>>2]|0;if((R|0)!=0?(c[(R&p)+4>>2]&2097152|0)!=0:0){za=120;break d}H=c[(g&p)>>2]|0;do if(H){E=c[(H&p)>>2]|0;if((E|0)<=0)break;I=c[(H&p)+4>>2]|0;H=0;F=0;do{F=c[((c[(I+(H*20|0)&p)>>2]|0)&p)+4>>2]|F;H=H+1|0}while((H|0)!=(E|0));if(F&2097152){za=120;break d}}while(0);H=c[(la&p)>>2]|0;if(!H)break;E=c[(H&p)>>2]|0;if((E|0)<=0)break;I=c[(H&p)+4>>2]|0;H=0;F=0;do{F=c[((c[(I+(H*20|0)&p)>>2]|0)&p)+4>>2]|F;H=H+1|0}while((H|0)!=(E|0));if(F&2097152){za=120;break d}}while(0);I=c[(O&p)+32>>2]|0;H=(c[(O&p)+60>>2]|0)==0;if(!H?(c[(k&p)>>2]|0)!=0:0){za=120;break}if(c[(O&p)+64>>2]|0){za=120;break}E=b[(ta&o)>>1]|0;F=(E&64)==0;if(!(F|H)){za=120;break}if(!(c[(I&p)>>2]|0)){za=120;break}D=b[(O&o)+6>>1]|0;if(D&1){za=120;break}I=H|F^1;if(!I?(c[(L&p)>>2]|0)>1|(y|0)!=0:0){za=120;break}H=E&1;if(H<<16>>16!=0&s){za=120;break}B=c[(la&p)>>2]|0;C=(B|0)==0;if(!C?(c[(O&p)+48>>2]|0)!=0:0){za=120;break}J=(y|0)!=0;if(J?(c[(O&p)+48>>2]|0)!=0:0){za=120;break}if(I){if(D&6144){za=120;break}}else if(!((c[(m&p)>>2]|0)==0&H<<16>>16==0&(D&6144)==0)){za=120;break}if((E&2048)!=0?(c[(O&p)+52>>2]|0)!=0:0){za=120;break}R=L+(S*72|0)+44|0;if(a[(R&n)>>0]&32){za=120;break}E=O+52|0;I=c[(E&p)>>2]|0;do if(I){if(!(H<<16>>16==0&(((c[(O&p)+48>>2]|0)!=0|J)^1))){za=120;break d}if((c[(L&p)>>2]|0)!=1){za=120;break d}e:do if(O){if(!(D&5))F=O;else{za=120;break d}while(1){H=(I|0)==0;if(!H?(a[(F&n)+4>>0]|0)!=116:0){za=120;break d}if((c[(c[(F&p)+32>>2]&p)>>2]|0)<1){za=120;break d}if((c[(c[(O&p)>>2]&p)>>2]|0)!=(c[(c[(F&p)>>2]&p)>>2]|0)){za=120;break d}if(H)break e;if(b[(I&o)+6>>1]&5){za=120;break d}F=I;I=c[(I&p)+52>>2]|0}}while(0);if(C)break;F=c[(B&p)>>2]|0;if((F|0)<=0)break;I=c[(B&p)+4>>2]|0;H=0;do{if(!(b[(I+(H*20|0)&o)+16>>1]|0)){za=120;break d}H=H+1|0}while((H|0)<(F|0))}while(0);A=L+(S*72|0)+16|0;c[(q&p)>>2]=c[(A&p)>>2];Sq(f,21,0,0,0)|0;c[(q&p)>>2]=Q;I=c[(E&p)>>2]|0;f:do if(!I)za=81;else{B=u+65|0;E=c[(la&p)>>2]|0;D=c[(k&p)>>2]|0;C=c[(T&p)>>2]|0;F=c[(qa&p)>>2]|0;while(1){c[(la&p)>>2]=0;c[(na&p)>>2]=0;c[(qa&p)>>2]=0;c[(k&p)>>2]=0;c[(T&p)>>2]=0;H=gr(u,g,0)|0;c[(T&p)>>2]=C;c[(k&p)>>2]=D;c[(la&p)>>2]=E;c[(na&p)>>2]=L;a[(U&n)>>0]=116;if(!H)H=F;else{c[(H&p)+52>>2]=F;if(F)c[(F&p)+56>>2]=H;c[(H&p)+56>>2]=g}c[(qa&p)>>2]=H;if(a[(B&n)>>0]|0)break f;I=c[(I&p)+52>>2]|0;if(!I){za=81;break}else F=H}}while(0);if((za|0)==81){za=0;M=c[(K&p)>>2]|0;E=L+(S*72|0)+12|0;mg(u,c[(E&p)>>2]|0);mg(u,c[(A&p)>>2]|0);F=L+(S*72|0)+20|0;mg(u,c[(F&p)>>2]|0);c[(E&p)>>2]=0;c[(A&p)>>2]=0;c[(F&p)>>2]=0;c[(K&p)>>2]=0;F=L+(S*72|0)+24|0;E=c[(F&p)>>2]|0;if(E){D=E+40|0;C=b[(D&o)>>1]|0;if(C<<16>>16==1){Q=c[(l&p)>>2]|0;Q=((Q|0)==0?f:Q)+524|0;c[(E&p)+72>>2]=c[(Q&p)>>2];c[(Q&p)>>2]=E}else b[(D&o)>>1]=C+-1<<16>>16;c[(F&p)>>2]=0}Q=S+1|0;P=u+65|0;O=g;N=M;while(1){B=c[(N&p)+32>>2]|0;A=c[(B&p)>>2]|0;H=O+32|0;I=c[(H&p)>>2]|0;if(!I){I=pr(u,0,0,0)|0;c[(H&p)>>2]=I;if(!I)break;else z=0}else z=a[(R&n)>>0]|0;if((A|0)>1){I=Fs(u,I,A+-1|0,Q)|0;c[(H&p)>>2]=I;if(a[(P&n)>>0]|0)break}if((A|0)>0){F=0;do{D=F+S|0;Hk(u,c[(I+(D*72|0)&p)+56>>2]|0);H=B+(F*72|0)+8|0;D=I+(D*72|0)+8|0;E=H+0|0;C=D+72|0;do{c[(D&p)>>2]=c[(E&p)>>2];D=D+4|0;E=E+4|0}while((D|0)<(C|0));D=H+0|0;C=D+72|0;do{c[(D&p)>>2]=0;D=D+4|0}while((D|0)<(C|0));F=F+1|0}while((F|0)!=(A|0))}a[(I+(S*72|0)&n)+44>>0]=z;H=c[(O&p)>>2]|0;I=c[(H&p)>>2]|0;if((I|0)>0){D=H+4|0;F=c[(D&p)>>2]|0;E=0;do{if(!(c[(F+(E*20|0)&p)+4>>2]|0)){I=kh(u,c[(F+(E*20|0)&p)+8>>2]|0)|0;lo(I);F=c[(D&p)>>2]|0;c[(F+(E*20|0)&p)+4>>2]=I;I=c[(H&p)>>2]|0}E=E+1|0}while((E|0)<(I|0));H=c[(O&p)>>2]|0}Gs(u,H,t,c[(N&p)>>2]|0);if(J){Gs(u,c[(O&p)+40>>2]|0,t,c[(N&p)>>2]|0);L=O+44|0;c[(L&p)>>2]=Hs(u,c[(L&p)>>2]|0,t,c[(N&p)>>2]|0)|0}I=N+48|0;H=c[(I&p)>>2]|0;do if(!H){H=c[(O&p)+48>>2]|0;if(!H)break;Gs(u,H,t,c[(N&p)>>2]|0)}else{F=c[(H&p)>>2]|0;if((F|0)>0){E=c[(H&p)+4>>2]|0;D=0;do{b[(E+(D*20|0)&o)+16>>1]=0;D=D+1|0}while((D|0)!=(F|0))}c[(O&p)+48>>2]=H;c[(I&p)>>2]=0}while(0);H=c[(N&p)+36>>2]|0;if(!H)F=0;else F=Mr(u,H,0,0)|0;I=O+36|0;H=c[(I&p)>>2]|0;if(s){L=O+44|0;c[(L&p)>>2]=H;c[(I&p)>>2]=F;K=Hs(u,H,t,c[(N&p)>>2]|0)|0;c[(L&p)>>2]=K;c[(L&p)>>2]=ss(u,K,Mr(u,c[(N&p)+44>>2]|0,0,0)|0)|0;c[(O&p)+40>>2]=Pr(u,c[(N&p)+40>>2]|0,0)|0}else{L=Hs(u,H,t,c[(N&p)>>2]|0)|0;c[(I&p)>>2]=L;c[(I&p)>>2]=ss(u,L,F)|0}H=O+6|0;b[(H&o)>>1]=e[(H&o)>>1]|e[(N&o)+6>>1]&1;H=N+60|0;F=c[(H&p)>>2]|0;if(F){c[(O&p)+60>>2]=F;c[(H&p)>>2]=0}O=c[(O&p)+52>>2]|0;if(!O)break;else N=c[(N&p)+52>>2]|0}Mk(u,M,1)}if(!(v<<16>>16)){z=-1;break}b[(ta&o)>>1]=e[(ta&o)>>1]|4;z=-1;y=1}else za=120;while(0);g:do if((za|0)==120){za=0;do if((c[(x&p)>>2]|0)==1){if(b[(V&o)>>1]&256)break;D=c[(W&p)>>2]|0;R=D+1|0;Q=(c[(X&p)>>2]|0)+1|0;c[(X&p)>>2]=Q;z=x+(S*72|0)+36|0;c[(z&p)>>2]=Q;wh(wa,20,Q,0,R)|0;c[(P&p)>>2]=R;R=c[(z&p)>>2]|0;a[(ga&n)>>0]=13;c[(Y&p)>>2]=R;a[(Z&n)>>0]=0;c[(_&p)>>2]=0;c[($&p)>>2]=0;a[(x+(S*72|0)&n)+46>>0]=c[(oa&p)>>2];ir(f,N,ga)|0;R=N+24|0;R=fs(c[(R&p)>>2]|0,c[(R&p)+4>>2]|0)|0;b[((c[(x+(S*72|0)&p)+24>>2]|0)&o)+28>>1]=R;R=x+(S*72|0)+45|0;a[(R&n)>>0]=a[(R&n)>>0]|4;c[(x+(S*72|0)&p)+40>>2]=c[(_&p)>>2];wh(wa,21,c[(z&p)>>2]|0,0,0)|0;z=c[(W&p)>>2]|0;if(z>>>0>D>>>0)c[((c[(aa&p)>>2]|0)+(D*20|0)&p)+8>>2]=z;c[((c[(ba&p)>>2]|0)&p)+88>>2]=z+-1;a[(ca&n)>>0]=0;c[(da&p)>>2]=0;z=S;break g}while(0);C=(c[(X&p)>>2]|0)+1|0;c[(X&p)>>2]=C;E=x+(S*72|0)+36|0;c[(E&p)>>2]=C;C=wh(wa,25,0,C,0)|0;c[(P&p)>>2]=C+1;if(!(a[(x+(S*72|0)&n)+45>>0]&2)){R=Oq(f)|0;D=c[(ea&p)>>2]|0;c[(ea&p)>>2]=D+1;D=wh(R,44,D,0,0)|0}else D=0;R=c[(x+(S*72|0)&p)+48>>2]|0;a[(ga&n)>>0]=12;c[(Y&p)>>2]=R;a[(Z&n)>>0]=0;c[(_&p)>>2]=0;c[($&p)>>2]=0;a[(x+(S*72|0)&n)+46>>0]=c[(oa&p)>>2];ir(f,N,ga)|0;R=N+24|0;R=fs(c[(R&p)>>2]|0,c[(R&p)+4>>2]|0)|0;b[((c[(x+(S*72|0)&p)+24>>2]|0)&o)+28>>1]=R;if(D){A=c[(W&p)>>2]|0;if(A>>>0>D>>>0)c[((c[(aa&p)>>2]|0)+(D*20|0)&p)+8>>2]=A;c[((c[(ba&p)>>2]|0)&p)+88>>2]=A+-1}z=wh(wa,18,c[(E&p)>>2]|0,0,0)|0;if((c[(W&p)>>2]|0)>>>0>C>>>0)c[((c[(aa&p)>>2]|0)+(C*20|0)&p)+4>>2]=z;a[(ca&n)>>0]=0;c[(da&p)>>2]=0;z=S}while(0);if(a[(pa&n)>>0]|0){za=444;break b}c[(ra&p)>>2]=0;Es(g,ra);c[(r&p)>>2]=(c[(r&p)>>2]|0)-(c[(ra&p)>>2]|0);x=c[(na&p)>>2]|0;if((d[(h&n)>>0]|0)<9)break;c[(va&p)>>2]=c[(la&p)>>2]}while(0);w=c[(qa&p)>>2]|0;if(!w)S=z+1|0;else{H=m;Q=w;z=y;U=x;break}}}else{H=g+36|0;Q=w;U=x}while(0);T=c[(g&p)>>2]|0;B=c[(H&p)>>2]|0;l=g+40|0;w=c[(l&p)>>2]|0;I=g+44|0;ga=c[(I&p)>>2]|0;m=b[(ta&o)>>1]|0;a[(ua&n)>>0]=m&1;if(Q){O=c[(f&p)>>2]|0;c[(sa&p)>>2]=c[(h&p)>>2];c[(sa&p)+4>>2]=c[(h&p)+4>>2];c[(sa&p)+8>>2]=c[(h&p)+8>>2];c[(sa&p)+12>>2]=c[(h&p)+12>>2];c[(sa&p)+16>>2]=c[(h&p)+16>>2];h:do if(!(c[(Q&p)+48>>2]|0)){x=Q+60|0;if(c[(x&p)>>2]|0){k=d[(g&n)+4>>0]|0;if((k|0)==118)k=35336;else if((k|0)==117)k=35352;else if((k|0)==116)k=35320;else k=35360;c[(ra&p)>>2]=k;th(f,35072,ra);m=0;k=1;za=227;break}R=Oq(f)|0;t=a[(sa&n)>>0]|0;if(t<<24>>24==12){wh(R,57,c[(sa&p)+4>>2]|0,c[(c[(g&p)>>2]&p)>>2]|0,0)|0;t=c[(R&p)+4>>2]|0;if(t)a[(t+(((c[(R&p)+32>>2]|0)+-1|0)*20|0)&n)+3>>0]=8;a[(sa&n)>>0]=14;t=14}s=e[(ta&o)>>1]|0;if(s&256){m=0;k=Is(f,g,sa)|0;za=227;break}if((c[(c[(g&p)>>2]&p)>>2]|0)!=(c[(c[(Q&p)>>2]&p)>>2]|0)){Js(f,g);m=0;k=1;za=227;break}do if(!(s&2048)){if(c[(la&p)>>2]|0){k=Ls(f,g,h)|0;break h}P=g+4|0;s=d[(P&n)>>0]|0;if((s|0)==116){v=g+8|0;t=Q+8|0;c[(t&p)>>2]=c[(v&p)>>2];u=g+12|0;s=Q+12|0;c[(s&p)>>2]=c[(u&p)>>2];da=g+60|0;c[(x&p)>>2]=c[(da&p)>>2];ea=g+64|0;c[(Q&p)+64>>2]=c[(ea&p)>>2];q=c[(oa&p)>>2]|0;k=ir(f,Q,sa)|0;c[(da&p)>>2]=0;c[(ea&p)>>2]=0;if(k){m=0;za=227;break h}c[(qa&p)>>2]=0;t=c[(t&p)>>2]|0;c[(v&p)>>2]=t;c[(u&p)>>2]=c[(s&p)>>2];if(!t)w=0;else w=wh(R,46,t,0,0)|0;l=c[(oa&p)>>2]|0;k=ir(f,g,sa)|0;m=c[(qa&p)>>2]|0;c[(qa&p)>>2]=Q;ea=Q+24|0;r=g+24|0;t=r;ea=jw(c[(t&p)>>2]|0,c[(t&p)+4>>2]|0,c[(ea&p)>>2]|0,c[(ea&p)+4>>2]|0)|0;t=r;c[(t&p)>>2]=ea;c[(t&p)+4>>2]=G;t=c[(x&p)>>2]|0;do if(t){ea=(Ms(t,ka)|0)!=0;t=c[(ka&p)>>2]|0;if(!(ea&(t|0)>0))break;ea=r;da=c[(ea&p)+4>>2]|0;s=((t|0)<0)<<31>>31;if(!(da>>>0>s>>>0|((da|0)==(s|0)?(c[(ea&p)>>2]|0)>>>0>t>>>0:0)))break;ea=r;c[(ea&p)>>2]=t;c[(ea&p)+4>>2]=s}while(0);if(!w){w=P;v=q;t=l;break}r=c[(R&p)+32>>2]|0;if(r>>>0>w>>>0)c[((c[(R&p)+4>>2]|0)+(w*20|0)&p)+8>>2]=r;c[((c[(R&p)+24>>2]|0)&p)+88>>2]=r+-1;w=P;v=q;t=l;break}else if((s|0)==115|(s|0)==117){if(t<<24>>24==1)s=c[(sa&p)+4>>2]|0;else{r=f+68|0;s=c[(r&p)>>2]|0;c[(r&p)>>2]=s+1;c[(g&p)+16>>2]=wh(R,57,s,0,0)|0;r=g;while(1){t=c[(r&p)+56>>2]|0;if(!t)break;else r=t}ea=r+6|0;b[(ea&o)>>1]=e[(ea&o)>>1]|8}a[(ia&n)>>0]=1;c[(ia&p)+4>>2]=s;a[(ia&n)+1>>0]=0;c[(ia&p)+8>>2]=0;c[(ia&p)+12>>2]=0;y=c[(oa&p)>>2]|0;k=ir(f,Q,ia)|0;if(k){m=0;za=227;break h}x=(a[(P&n)>>0]|0)==117?2:1;c[(qa&p)>>2]=0;v=g+60|0;u=c[(v&p)>>2]|0;c[(v&p)>>2]=0;t=g+64|0;r=c[(t&p)>>2]|0;c[(t&p)>>2]=0;a[(ia&n)>>0]=x;x=c[(oa&p)>>2]|0;k=ir(f,g,ia)|0;Nk(O,c[(la&p)>>2]|0);m=c[(qa&p)>>2]|0;c[(qa&p)>>2]=Q;c[(la&p)>>2]=0;if((a[(P&n)>>0]|0)==115){da=Q+24|0;ea=g+24|0;ca=ea;da=jw(c[(ca&p)>>2]|0,c[(ca&p)+4>>2]|0,c[(da&p)>>2]|0,c[(da&p)+4>>2]|0)|0;c[(ea&p)>>2]=da;c[(ea&p)+4>>2]=G}Gk(O,c[(v&p)>>2]|0);c[(v&p)>>2]=u;c[(t&p)>>2]=r;c[(g&p)+8>>2]=0;c[(g&p)+12>>2]=0;r=a[(sa&n)>>0]|0;if(r<<24>>24==9){r=g;while(1){q=c[(r&p)+52>>2]|0;if(!q)break;else r=q}Ns(f,0,c[(r&p)>>2]|0)}else if(r<<24>>24==1){w=P;v=y;t=x;break}l=xs(R)|0;ea=xs(R)|0;Os(f,g,l);wh(R,108,s,l,0)|0;w=R+32|0;v=c[(w&p)>>2]|0;Ps(f,g,c[(g&p)>>2]|0,s,0,0,sa,ea,l);u=R+24|0;t=c[(u&p)>>2]|0;r=~ea;do if((ea|0)<0){q=c[(t&p)+112>>2]|0;if(!q)break;c[(q+(r<<2)&p)>>2]=c[(w&p)>>2]}while(0);c[(t&p)+88>>2]=(c[(w&p)>>2]|0)+-1;wh(R,9,s,v,0)|0;r=c[(u&p)>>2]|0;q=~l;do if((l|0)<0){t=c[(r&p)+112>>2]|0;if(!t)break;c[(t+(q<<2)&p)>>2]=c[(w&p)>>2]}while(0);c[(r&p)+88>>2]=(c[(w&p)>>2]|0)+-1;wh(R,61,s,0,0)|0;w=P;v=y;t=x;break}else{r=f+68|0;A=c[(r&p)>>2]|0;c[(r&p)>>2]=A+2;c[(g&p)+16>>2]=wh(R,57,A,0,0)|0;r=g;while(1){q=c[(r&p)+56>>2]|0;if(!q)break;else r=q}y=A+1|0;v=r+6|0;b[(v&o)>>1]=e[(v&o)>>1]|8;a[(ja&n)>>0]=1;v=ja+4|0;c[(v&p)>>2]=A;a[(ja&n)+1>>0]=0;c[(ja&p)+8>>2]=0;c[(ja&p)+12>>2]=0;x=c[(oa&p)>>2]|0;k=ir(f,Q,ja)|0;if(k){m=0;za=227;break h}c[(g&p)+20>>2]=wh(R,57,y,0,0)|0;c[(qa&p)>>2]=0;w=g+60|0;l=c[(w&p)>>2]|0;c[(w&p)>>2]=0;q=g+64|0;r=c[(q&p)>>2]|0;c[(q&p)>>2]=0;c[(v&p)>>2]=y;z=c[(oa&p)>>2]|0;k=ir(f,g,ja)|0;m=c[(qa&p)>>2]|0;c[(qa&p)>>2]=Q;t=g+24|0;ea=t;da=c[(ea&p)+4>>2]|0;u=Q+24|0;v=c[(u&p)>>2]|0;u=c[(u&p)+4>>2]|0;if(da>>>0>u>>>0|((da|0)==(u|0)?(c[(ea&p)>>2]|0)>>>0>v>>>0:0)){ea=t;c[(ea&p)>>2]=v;c[(ea&p)+4>>2]=u}Gk(O,c[(w&p)>>2]|0);c[(w&p)>>2]=l;c[(q&p)>>2]=r;if((a[(sa&n)>>0]|0)==9){t=g;while(1){s=c[(t&p)+52>>2]|0;if(!s)break;else t=s}Ns(f,0,c[(t&p)>>2]|0)}q=xs(R)|0;w=xs(R)|0;Os(f,g,q);wh(R,108,A,q,0)|0;t=f+19|0;s=a[(t&n)>>0]|0;if(!(s<<24>>24)){ea=f+72|0;t=(c[(ea&p)>>2]|0)+1|0;c[(ea&p)>>2]=t}else{ea=s+-1<<24>>24;a[(t&n)>>0]=ea;t=c[(f+((ea&255)<<2)&p)+24>>2]|0}l=wh(R,101,A,t,0)|0;xh(R,wh(R,68,y,w,t)|0,0,-14);_r(f,t);Ps(f,g,c[(g&p)>>2]|0,A,0,0,sa,w,q);t=R+24|0;s=c[(t&p)>>2]|0;u=~w;do if((w|0)<0){v=c[(s&p)+112>>2]|0;if(!v)break;c[(v+(u<<2)&p)>>2]=c[(R&p)+32>>2]}while(0);v=R+32|0;c[(s&p)+88>>2]=(c[(v&p)>>2]|0)+-1;wh(R,9,A,l,0)|0;s=c[(t&p)>>2]|0;r=~q;do if((q|0)<0){t=c[(s&p)+112>>2]|0;if(!t)break;c[(t+(r<<2)&p)>>2]=c[(v&p)>>2]}while(0);c[(s&p)+88>>2]=(c[(v&p)>>2]|0)+-1;wh(R,61,y,0,0)|0;wh(R,61,A,0,0)|0;w=P;v=x;t=z;break}}else{Ks(f,g,sa);w=g+4|0;v=0;t=0;m=0;k=0}while(0);ea=a[(w&n)>>0]|0;Qs(f,ea&255,v,t,ea<<24>>24!=116&1);if(!(b[(ta&o)>>1]&8)){za=227;break}u=c[(c[(g&p)>>2]&p)>>2]|0;v=Rs(O,u,1)|0;if(!v){k=7;za=227;break}if((u|0)>0){l=O+8|0;q=v+20|0;r=0;while(1){ea=Ss(f,g,r)|0;c[(q&p)>>2]=ea;if(!ea)c[(q&p)>>2]=c[(l&p)>>2];r=r+1|0;if((r|0)==(u|0))break;else q=q+4|0}}s=R+32|0;t=R+4|0;do{l=0;do{r=g+(l<<2)+16|0;q=c[(r&p)>>2]|0;if((q|0)<0)break;if((c[(s&p)>>2]|0)>>>0>q>>>0)c[((c[(t&p)>>2]|0)+(q*20|0)&p)+8>>2]=u;c[(v&p)>>2]=(c[(v&p)>>2]|0)+1;xh(R,q,v,-6);c[(r&p)>>2]=-1;l=l+1|0}while((l|0)<2);g=c[(g&p)+52>>2]|0}while((g|0)!=0);ea=(c[(v&p)>>2]|0)+-1|0;c[(v&p)>>2]=ea;if(ea){za=227;break}Wc(v);za=227}else{k=d[(g&n)+4>>0]|0;if((k|0)==118)k=35336;else if((k|0)==117)k=35352;else if((k|0)==116)k=35320;else k=35360;c[(ra&p)>>2]=k;th(f,35024,ra);m=0;k=1;za=227}while(0);if((za|0)==227){c[(h&p)+8>>2]=c[(sa&p)+8>>2];c[(h&p)+12>>2]=c[(sa&p)+12>>2];Mk(O,m,1)}c[(Aa&p)>>2]=Ba;break a}if((m&5)==1){k=c[(va&p)>>2]|0;if(!(Ts(k,T,-1)|0)){b[(ta&o)>>1]=m&65534;w=Pr(xa,T,0)|0;c[(l&p)>>2]=w;za=232}}else za=232;if((za|0)==232)k=c[(va&p)>>2]|0;if(!k)k=-1;else{ea=Us(f,k,0,c[(T&p)>>2]|0)|0;da=f+68|0;k=c[(da&p)>>2]|0;c[(da&p)>>2]=k+1;c[(va&p)+8>>2]=k;k=wh(wa,57,k,(c[(c[(va&p)>>2]&p)>>2]|0)+1+(c[(T&p)>>2]|0)|0,0)|0;xh(wa,k,ea,-6)}R=va+20|0;c[(R&p)>>2]=k;if((a[(h&n)>>0]|0)==12)wh(wa,57,c[(h&p)+4>>2]|0,c[(T&p)>>2]|0,0)|0;qa=xs(wa)|0;y=g+24|0;ea=y;c[(ea&p)>>2]=-1;c[(ea&p)+4>>2]=2147483647;Os(f,g,qa);if((c[(g&p)+8>>2]|0)==0?(ha=c[(R&p)>>2]|0,(ha|0)>-1):0){if(!(a[((c[(wa&p)>>2]|0)&n)+65>>0]|0))k=(c[(wa&p)+4>>2]|0)+(ha*20|0)|0;else k=29120;a[(k&n)>>0]=58;ea=va+24|0;a[(ea&n)>>0]=d[(ea&n)>>0]|1}if(!(b[(ta&o)>>1]&1))a[(ua&n)+1>>0]=0;else{ea=f+68|0;k=c[(ea&p)>>2]|0;c[(ea&p)>>2]=k+1;c[(ua&p)+4>>2]=k;ea=Us(f,c[(g&p)>>2]|0,0,0)|0;k=wh(wa,57,k,0,0)|0;xh(wa,k,ea,-6);c[(ua&p)+8>>2]=k;k=c[(wa&p)+4>>2]|0;if(k)a[(k+(((c[(wa&p)+32>>2]|0)+-1|0)*20|0)&n)+3>>0]=8;a[(ua&n)+1>>0]=3}if((z|0)==0&(w|0)==0){v=Vs(f,U,B,c[(va&p)>>2]|0,c[(g&p)>>2]|0,(a[(ua&n)>>0]|0)!=0?1024:0,0)|0;if(!v){za=444;break}t=Ws(b[(v&o)+32>>1]|0)|0;s=G;ea=y;da=c[(ea&p)+4>>2]|0;if(s>>>0>>0|((s|0)==(da|0)?t>>>0<(c[(ea&p)>>2]|0)>>>0:0)){ea=y;c[(ea&p)>>2]=t;c[(ea&p)+4>>2]=s}do if(a[(ua&n)>>0]|0){t=a[(v&n)+40>>0]|0;if(!(t<<24>>24))break;a[(ua&n)+1>>0]=t}while(0);t=c[(va&p)>>2]|0;do if(!t)za=257;else{ea=a[(v&n)+36>>0]|0;c[(va&p)+4>>2]=ea;if((ea|0)!=(c[(t&p)>>2]|0))break;c[(va&p)>>2]=0;za=257}while(0);do if((za|0)==257){r=c[(R&p)>>2]|0;if((r|0)<=-1)break;zh(wa,r)}while(0);Ps(f,g,T,-1,va,ua,h,c[(v&p)+48>>2]|0,c[(v&p)+52>>2]|0);Xs(v)}else{z=(w|0)!=0;do if(z){l=c[(g&p)>>2]|0;k=c[(l&p)>>2]|0;if((k|0)>0){l=c[(l&p)+4>>2]|0;while(1){b[(l&o)+18>>1]=0;k=k+-1|0;if((k|0)<=0)break;else l=l+20|0}}k=c[(w&p)>>2]|0;if((k|0)>0){l=c[(w&p)+4>>2]|0;while(1){b[(l&o)+18>>1]=0;k=k+-1|0;if((k|0)<=0)break;else l=l+20|0}}ea=y;da=c[(ea&p)+4>>2]|0;if(!(da>>>0>0|(da|0)==0&(c[(ea&p)>>2]|0)>>>0>100))break;ea=y;c[(ea&p)>>2]=100;c[(ea&p)+4>>2]=0}else{ea=y;c[(ea&p)>>2]=1;c[(ea&p)+4>>2]=0}while(0);P=(Ts(w,c[(va&p)>>2]|0,-1)|0)==0;S=xs(wa)|0;c[(ma&p)>>2]=0;c[(ma&p)+4>>2]=0;c[(ma&p)+8>>2]=0;c[(ma&p)+12>>2]=0;c[(ma&p)+16>>2]=0;c[(ma&p)+20>>2]=0;c[(ma&p)+24>>2]=0;c[(ma&p)+28>>2]=0;c[(ma&p)>>2]=f;c[(ma&p)+4>>2]=U;c[(ma&p)+12>>2]=ya;K=f+72|0;c[(ya&p)+16>>2]=(c[(K&p)>>2]|0)+1;if(z)k=c[(w&p)>>2]|0;else k=0;y=ya+12|0;c[(y&p)>>2]=k;c[(ya&p)+24>>2]=w;Ys(ma,T);Ys(ma,c[(va&p)>>2]|0);if(ga){c[(ra&p)>>2]=0;c[(ra&p)+4>>2]=0;c[(ra&p)+8>>2]=0;c[(ra&p)+12>>2]=0;c[(ra&p)+16>>2]=0;c[(ra&p)+20>>2]=0;c[(ra&p)>>2]=80;c[(ra&p)+4>>2]=81;c[(ra&p)+24>>2]=ma;rs(ra,ga)|0}A=ya+32|0;c[(ya&p)+36>>2]=c[(A&p)>>2];r=ya+44|0;k=c[(r&p)>>2]|0;if((k|0)>0){x=ma+28|0;l=ya+40|0;m=b[(x&o)>>1]|0;q=0;do{b[(x&o)>>1]=m&65535|8;Ys(ma,c[((c[((c[(l&p)>>2]|0)+(q<<4)&p)>>2]|0)&p)+20>>2]|0);m=e[(x&o)>>1]&65527;b[(x&o)>>1]=m;q=q+1|0;k=c[(r&p)>>2]|0}while((q|0)<(k|0))}c[(ya&p)+20>>2]=c[(K&p)>>2];if(a[(pa&n)>>0]|0){za=444;break}if(z){I=f+68|0;H=c[(I&p)>>2]|0;c[(I&p)>>2]=H+1;v=ya+4|0;c[(v&p)>>2]=H;H=Us(f,w,0,c[(A&p)>>2]|0)|0;u=wh(wa,58,c[(v&p)>>2]|0,c[(y&p)>>2]|0,0)|0;xh(wa,u,H,-6);N=c[(K&p)>>2]|0;M=N+1|0;J=N+2|0;N=N+3|0;c[(K&p)>>2]=N;L=xs(wa)|0;Q=(c[(K&p)>>2]|0)+1|0;c[(K&p)>>2]=Q;O=xs(wa)|0;t=c[(K&p)>>2]|0;r=t+1|0;ea=c[(w&p)>>2]|0;da=ea+t|0;s=da+1|0;c[(K&p)>>2]=da+ea;wh(wa,25,0,J,0)|0;wh(wa,25,0,M,0)|0;wh(wa,28,0,r,(c[(w&p)>>2]|0)+t|0)|0;wh(wa,17,Q,O,0)|0;t=Vs(f,U,B,w,0,P?2304:256,0)|0;if(!t){za=444;break}if((a[(t&n)+36>>0]|0)==(c[(w&p)>>2]|0)){x=0;k=0;y=0}else{if(!(a[(ua&n)>>0]|0))k=34824;else k=(b[(ta&o)>>1]&1)==0?34808:34824;$s(f,k);D=c[(w&p)>>2]|0;k=c[(A&p)>>2]|0;if((k|0)>0){l=c[(ya&p)+28>>2]|0;m=0;y=D;x=D;do{if((c[(l+(m*24|0)&p)+12>>2]|0)>=(y|0)){y=y+1|0;x=x+1|0}m=m+1|0}while((m|0)<(k|0));F=x}else F=D;E=f+60|0;x=c[(E&p)>>2]|0;B=f+56|0;k=c[(B&p)>>2]|0;if((k|0)<(F|0)){C=c[(K&p)>>2]|0;c[(K&p)>>2]=C+F;C=C+1|0}else{c[(E&p)>>2]=x+F;c[(B&p)>>2]=k-F;C=x}at(f);bt(f,w,C,0);y=c[(A&p)>>2]|0;if((y|0)>0){m=ya+28|0;z=0;x=D;do{k=c[(m&p)>>2]|0;if((c[(k+(z*24|0)&p)+12>>2]|0)>=(x|0)){l=x+C|0;y=ct(f,c[(k+(z*24|0)&p)>>2]|0,c[(k+(z*24|0)&p)+8>>2]|0,c[(k+(z*24|0)&p)+4>>2]|0,l,0)|0;if((l|0)!=(y|0))wh(wa,34,y,l,0)|0;y=c[(A&p)>>2]|0;x=x+1|0}z=z+1|0}while((z|0)<(y|0))}y=f+19|0;x=a[(y&n)>>0]|0;if(!(x<<24>>24)){x=(c[(K&p)>>2]|0)+1|0;c[(K&p)>>2]=x}else{x=x+-1<<24>>24;a[(y&n)>>0]=x;x=c[(f+((x&255)<<2)&p)+24>>2]|0}wh(wa,49,C,F,x)|0;wh(wa,109,c[(v&p)>>2]|0,x,0)|0;_r(f,x);dt(f,C,F);if((c[(B&p)>>2]|0)<(F|0)){c[(B&p)>>2]=F;c[(E&p)>>2]=C}Xs(t);l=c[(I&p)>>2]|0;c[(I&p)>>2]=l+1;c[(ya&p)+8>>2]=l;k=a[(y&n)>>0]|0;if(!(k<<24>>24)){k=(c[(K&p)>>2]|0)+1|0;c[(K&p)>>2]=k}else{k=k+-1<<24>>24;a[(y&n)>>0]=k;k=c[(f+((k&255)<<2)&p)+24>>2]|0}wh(wa,60,l,k,F)|0;wh(wa,106,c[(v&p)>>2]|0,S,0)|0;a[(ya&n)+1>>0]=1;at(f);x=1;y=l}do if(P){if(b[(xa&o)+60>>1]&4)break;if((x|0)==0?(a[(t&n)+37>>0]|0)==0:0)break;c[(va&p)>>2]=0;zh(wa,c[(R&p)>>2]|0)}while(0);A=wa+32|0;q=c[(A&p)>>2]|0;at(f);x=(x|0)!=0;if(x)wh(wa,100,c[(v&p)>>2]|0,k,y)|0;k=c[(w&p)>>2]|0;if((k|0)>0){l=w+4|0;m=0;do{if(x)wh(wa,47,y,m,m+s|0)|0;else{a[(ya&n)>>0]=1;Rq(f,c[((c[(l&p)>>2]|0)+(m*20|0)&p)>>2]|0,m+s|0)}m=m+1|0;k=c[(w&p)>>2]|0}while((m|0)<(k|0))}if(H)c[(H&p)>>2]=(c[(H&p)>>2]|0)+1;xh(wa,wh(wa,42,r,s,k)|0,H,-6);k=c[(A&p)>>2]|0;ea=k+1|0;wh(wa,43,ea,0,ea)|0;w=c[(w&p)>>2]|0;wh(c[(f&p)+8>>2]|0,32,s,r,w)|0;dt(f,s,w);wh(wa,17,N,L,0)|0;wh(wa,137,J,S,0)|0;wh(wa,17,Q,O,0)|0;w=c[(A&p)>>2]|0;if(w>>>0>k>>>0)c[((c[(wa&p)+4>>2]|0)+(k*20|0)&p)+8>>2]=w;r=wa+24|0;c[((c[(r&p)>>2]|0)&p)+88>>2]=w+-1;et(f,ya);wh(wa,25,1,M,0)|0;if(x)wh(wa,5,c[(v&p)>>2]|0,q,0)|0;else{Xs(t);zh(wa,u)}wh(wa,17,N,L,0)|0;wh(wa,16,0,S,0)|0;m=c[(A&p)>>2]|0;wh(wa,25,1,J,0)|0;wh(wa,18,N,0,0)|0;k=c[(r&p)>>2]|0;l=~L;do if((L|0)<0){w=c[(k&p)+112>>2]|0;if(!w)break;c[(w+(l<<2)&p)>>2]=c[(A&p)>>2]}while(0);v=c[(A&p)>>2]|0;c[(k&p)+88>>2]=v+-1;wh(wa,137,M,v+2|0,0)|0;wh(wa,18,N,0,0)|0;ft(f,ya);v=v+1|0;gt(f,ga,v,16);Ps(f,g,c[(g&p)>>2]|0,-1,va,ua,h,v,m);wh(wa,18,N,0,0)|0;v=c[(r&p)>>2]|0;u=~O;do if((O|0)<0){t=c[(v&p)+112>>2]|0;if(!t)break;c[(t+(u<<2)&p)>>2]=c[(A&p)>>2]}while(0);c[(v&p)+88>>2]=(c[(A&p)>>2]|0)+-1;ht(f,ya);wh(wa,18,Q,0,0)|0}else{do if(!(c[(H&p)>>2]|0)){u=c[(g&p)>>2]|0;if((c[(u&p)>>2]|0)!=1){za=372;break}v=c[(na&p)>>2]|0;if((c[(v&p)>>2]|0)!=1){za=372;break}if(c[(v&p)+28>>2]|0){za=372;break}A=c[(v&p)+24>>2]|0;v=c[(c[(u&p)+4>>2]&p)>>2]|0;z=A+44|0;if(a[(z&n)>>0]&16){za=372;break}if((a[(v&n)>>0]|0)!=-101|(k|0)==0){za=372;break}y=ya+40|0;if(!(b[((c[((c[(y&p)>>2]|0)&p)+4>>2]|0)&o)+2>>1]&256)){za=372;break}if((A|0)==0?1:(c[(v&p)+4>>2]&16|0)!=0){za=372;break}v=c[(f&p)>>2]|0;k=c[(A&p)+68>>2]|0;i:do if(!k)u=-1e6;else{l=c[(v&p)+20>>2]|0;if((l|0)<=0){u=0;break}v=c[(v&p)+16>>2]|0;w=0;while(1){u=w+1|0;if((c[(v+(w<<4)&p)+12>>2]|0)==(k|0)){u=w;break i}if((u|0)<(l|0))w=u;else break}}while(0);w=f+68|0;q=c[(w&p)>>2]|0;c[(w&p)>>2]=q+1;w=A+32|0;k=c[(w&p)>>2]|0;Ar(f,u);gs(f,u,c[(w&p)>>2]|0,0,c[(A&p)>>2]|0);w=c[(A&p)+8>>2]|0;j:do if(!(a[(z&n)>>0]&32)){v=0;za=351}else{if(!w){l=1;m=0;w=0;break}else v=w;while(1){if((a[(v&n)+51>>0]&3)==2){za=351;break j}v=c[(v&p)+20>>2]|0;if(!v){v=0;za=351;break}}}while(0);do if((za|0)==351){if(w){m=A+42|0;l=w;do{do if(!(a[(l&n)+51>>0]&4)){w=b[(l&o)+44>>1]|0;if(w<<16>>16>=(b[(m&o)>>1]|0))break;if(c[(l&p)+36>>2]|0)break;if((v|0)!=0?w<<16>>16>=(b[(v&o)+44>>1]|0):0)break;v=l}while(0);l=c[(l&p)+20>>2]|0}while((l|0)!=0)}if(!v){l=1;m=0;w=0;break}k=c[(v&p)+40>>2]|0;l=0;m=v;w=hs(f,v)|0}while(0);xh(wa,wh(wa,54,q,k,u)|0,1,-14);if(w)xh(wa,-1,w,-6);wh(wa,50,q,c[((c[(y&p)>>2]|0)&p)+8>>2]|0,0)|0;wh(wa,61,q,0,0)|0;if((a[(f&n)+450>>0]|0)!=2){t=0;break}do if(l){v=c[(A&p)>>2]|0;u=10360;s=10360;t=c[(f&p)>>2]|0}else{if(a[(z&n)>>0]&32){ea=(a[(m&n)+51>>0]&3)!=2;t=c[(f&p)>>2]|0;v=c[(A&p)>>2]|0;u=ea?34920:10360;if(!ea){s=10360;break}}else{u=34920;v=c[(A&p)>>2]|0;t=c[(f&p)>>2]|0}s=c[(m&p)>>2]|0}while(0);c[(ra&p)>>2]=v;c[(ra&p)+4>>2]=u;c[(ra&p)+8>>2]=s;t=uh(t,34896,ra)|0;ea=c[(f&p)+8>>2]|0;xh(ea,wh(ea,157,c[(Aa&p)>>2]|0,0,0)|0,t,-1);t=0}else za=372;while(0);if((za|0)==372){do if((c[(I&p)>>2]|0)==0&(k|0)==1){t=c[(c[(ya&p)+40>>2]&p)>>2]|0;v=c[(t&p)+20>>2]|0;if(!v){t=0;s=0;break}if((c[(v&p)>>2]|0)!=1){t=0;s=0;break}if((a[(c[(c[(v&p)+4>>2]&p)>>2]&n)>>0]|0)!=-100){t=0;s=0;break}t=c[(t&p)+8>>2]|0;if(dd(t,18760)|0)if(!(dd(t,18768)|0))s=2;else{t=0;s=0;break}else s=1;t=Pr(xa,v,0)|0;if(!t){t=0;break}if(a[(pa&n)>>0]|0)break;ea=c[(t&p)+4>>2]|0;a[(ea&n)+12>>0]=s<<24>>24!=1&1;a[(c[(ea&p)>>2]&n)>>0]=-102}else{t=0;s=0}while(0);ht(f,ya);s=Vs(f,U,B,t,0,s&255,0)|0;if(!s){Nk(xa,t);za=444;break}et(f,ya);if((a[(s&n)+36>>0]|0)>0)wh(wa,16,0,c[(s&p)+52>>2]|0,0)|0;Xs(s);ft(f,ya)}c[(va&p)>>2]=0;gt(f,ga,S,16);Ps(f,g,c[(g&p)>>2]|0,-1,0,0,h,S,S);Nk(xa,t);r=wa+24|0}t=c[(r&p)>>2]|0;s=~S;do if((S|0)<0){r=c[(t&p)+112>>2]|0;if(!r)break;c[(r+(s<<2)&p)>>2]=c[(wa&p)+32>>2]}while(0);c[(t&p)+88>>2]=(c[(wa&p)+32>>2]|0)+-1}if((a[(ua&n)+1>>0]|0)==3)$s(f,34808);if(c[(va&p)>>2]|0){x=va+4|0;$s(f,(c[(x&p)>>2]|0)>0?34840:34864);A=c[(T&p)>>2]|0;v=f+8|0;H=c[(v&p)>>2]|0;I=xs(H)|0;F=xs(H)|0;q=c[(va&p)>>2]|0;m=a[(h&n)>>0]|0;B=m&255;C=h+4|0;D=c[(C&p)>>2]|0;y=va+16|0;w=c[(y&p)>>2]|0;if(w){wh(H,17,c[(va&p)+12>>2]|0,w,0)|0;wh(H,16,0,I,0)|0;ea=c[(y&p)>>2]|0;w=c[(H&p)+24>>2]|0;k=~ea;do if((ea|0)<0){l=c[(w&p)+112>>2]|0;if(!l)break;c[(l+(k<<2)&p)>>2]=c[(H&p)+32>>2]}while(0);c[(w&p)+88>>2]=(c[(H&p)+32>>2]|0)+-1}E=c[(va&p)+8>>2]|0;t=m<<24>>24==9;k:do if((m&-5)<<24>>24==9){s=A;u=c[(h&p)+8>>2]|0;k=0}else{w=f+19|0;k=a[(w&n)>>0]|0;do if(k<<24>>24){ea=k+-1<<24>>24;a[(w&n)>>0]=ea;l=c[(f+((ea&255)<<2)&p)+24>>2]|0;if(!(ea<<24>>24)){k=l;w=c[(f&p)+72>>2]|0;break}else{u=k+-2<<24>>24;a[(w&n)>>0]=u;s=1;u=c[(f+((u&255)<<2)&p)+24>>2]|0;k=l;break k}}else{k=f+72|0;w=(c[(k&p)>>2]|0)+1|0;c[(k&p)>>2]=w;k=w}while(0);u=w+1|0;c[(f&p)+72>>2]=u;s=1}while(0);r=(c[(q&p)>>2]|0)-(c[(x&p)>>2]|0)|0;z=va+24|0;if(!(a[(z&n)>>0]&1)){w=wh(H,107,E,I,0)|0;it(H,c[(g&p)+12>>2]|0,F);l=1;m=E}else{ea=f+72|0;m=(c[(ea&p)>>2]|0)+1|0;c[(ea&p)>>2]=m;ea=f+68|0;q=c[(ea&p)>>2]|0;c[(ea&p)>>2]=q+1;if(!(c[(y&p)>>2]|0))l=0;else{ea=Oq(f)|0;da=f+80|0;l=c[(da&p)>>2]|0;c[(da&p)>>2]=l+1;l=wh(ea,44,l,0,0)|0}wh(H,60,q,m,s+1+r|0)|0;if(l){w=c[(H&p)+32>>2]|0;if(w>>>0>l>>>0)c[((c[(H&p)+4>>2]|0)+(l*20|0)&p)+8>>2]=w;c[((c[(H&p)+24>>2]|0)&p)+88>>2]=w+-1}w=wh(H,106,E,I,0)|0;it(H,c[(g&p)+12>>2]|0,F);wh(H,100,E,m,q)|0;l=0;m=q}x=w+1|0;if((s|0)>0){w=l+r|0;l=0;do{wh(H,47,m,w+l|0,l+u|0)|0;l=l+1|0}while((l|0)!=(s|0))}do if((B|0)==12|(B|0)==14){wh(H,74,D,k,0)|0;wh(H,75,D,u,k)|0;t=c[(H&p)+4>>2]|0;if(!t)break;a[(t+(((c[(H&p)+32>>2]|0)+-1|0)*20|0)&n)+3>>0]=8}else if((B|0)==11){xh(H,wh(H,49,u,1,k)|0,h+1|0,1);dt(f,u,1);wh(H,110,D,k,0)|0}else if((B|0)!=10)if(t){ea=h+8|0;wh(H,35,c[(ea&p)>>2]|0,A,0)|0;dt(f,c[(ea&p)>>2]|0,A);break}else{wh(H,22,c[(C&p)>>2]|0,0,0)|0;break}else{wh(c[(v&p)>>2]|0,32,u,D,1)|0;dt(f,u,1)}while(0);if(k){_r(f,u);_r(f,k)}s=H+24|0;u=c[(s&p)>>2]|0;v=~F;do if((F|0)<0){t=c[(u&p)+112>>2]|0;if(!t)break;c[(t+(v<<2)&p)>>2]=c[(H&p)+32>>2]}while(0);v=H+32|0;c[(u&p)+88>>2]=(c[(v&p)>>2]|0)+-1;if(!(a[(z&n)>>0]&1))wh(H,9,E,x,0)|0;else wh(H,5,E,x,0)|0;r=c[(va&p)+12>>2]|0;if(r)wh(H,18,r,0,0)|0;r=c[(s&p)>>2]|0;q=~I;do if((I|0)<0){m=c[(r&p)+112>>2]|0;if(!m)break;c[(m+(q<<2)&p)>>2]=c[(v&p)>>2]}while(0);c[(r&p)+88>>2]=(c[(v&p)>>2]|0)+-1}l=c[(wa&p)+24>>2]|0;m=~qa;do if((qa|0)<0){k=c[(l&p)+112>>2]|0;if(!k)break;c[(k+(m<<2)&p)>>2]=c[(wa&p)+32>>2]}while(0);c[(l&p)+88>>2]=(c[(wa&p)+32>>2]|0)+-1;c[(Aa&p)>>2]=Ba;if((a[(h&n)>>0]|0)!=9){k=0;break}Ns(f,U,T);k=0}else za=444;while(0);if((za|0)==444){c[(Aa&p)>>2]=Ba;k=1}mg(xa,c[(ya&p)+28>>2]|0);mg(xa,c[(ya&p)+40>>2]|0)}else k=1;while(0);i=Ca;return k|0}function jr(a,b,d,e,f,g,h,k){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;var l=0,m=0,n=0,o=0,q=0,r=0;r=i;i=i+16|0;if((i|0)>=(j|0))fa();m=r;o=c[(a&p)>>2]|0;if((b|0)==0?(l=(h|0)!=0,l|(k|0)!=0):0){c[(m&p)>>2]=l?34792:34800;th(a,34752,m);q=9}else{b=pr(o,b,d,e)|0;if((b|0)!=0?(n=c[(b&p)>>2]|0,(n|0)!=0):0){l=n+-1|0;if(c[(f&p)+4>>2]|0)c[(b+(l*72|0)&p)+20>>2]=Wq(o,f)|0;c[(b+(l*72|0)&p)+28>>2]=g;c[(b+(l*72|0)&p)+52>>2]=h;c[(b+(l*72|0)&p)+56>>2]=k}else q=9}if((q|0)==9){Gk(o,h);Hk(o,k);Mk(o,g,1);b=0}i=r;return b|0}function kr(d,e,f,g,h,k,l,m,q,r){d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;m=m|0;q=q|0;r=r|0;var s=0,t=0,u=0,v=0,w=0,x=0,y=0;y=i;i=i+80|0;if((i|0)>=(j|0))fa();t=y+72|0;x=y;w=c[(d&p)>>2]|0;s=mh(w,72,0)|0;if(!s){u=x+0|0;v=u+72|0;do{c[(u&p)>>2]=0;u=u+4|0}while((u|0)<(v|0));s=x}else{u=s+0|0;v=u+72|0;do{a[(u&n)>>0]=0;u=u+1|0}while((u|0)<(v|0))}if(!e){c[(t&p)>>2]=0;c[(t&p)+4>>2]=0;e=lr(d,0,nr(w,116,t,0)|0)|0}c[(s&p)>>2]=e;if(!f){f=mh(w,80,0)|0;if(f){u=f+0|0;v=u+80|0;do{a[(u&n)>>0]=0;u=u+1|0}while((u|0)<(v|0))}}c[(s&p)+32>>2]=f;c[(s&p)+36>>2]=g;c[(s&p)+40>>2]=h;c[(s&p)+44>>2]=k;c[(s&p)+48>>2]=l;b[(s&o)+6>>1]=m;a[(s&n)+4>>0]=119;c[(s&p)+60>>2]=q;c[(s&p)+64>>2]=r;c[(s&p)+16>>2]=-1;c[(s&p)+20>>2]=-1;if(a[(w&n)+65>>0]|0){Mk(w,s,(s|0)!=(x|0)&1);s=0}i=y;return s|0}function lr(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0;g=c[(b&p)>>2]|0;if(!d){d=mh(g,8,0)|0;if(d){b=d;f=b;a[(f&n)>>0]=0;a[(f&n)+1>>0]=0;a[(f&n)+2>>0]=0;a[(f&n)+3>>0]=0;b=b+4|0;a[(b&n)>>0]=0;a[(b&n)+1>>0]=0;a[(b&n)+2>>0]=0;a[(b&n)+3>>0]=0;b=mh(g,20,0)|0;c[(d&p)+4>>2]=b;if(!b)f=8;else f=7}else{d=0;f=8}}else{b=c[(d&p)>>2]|0;if(!(b+-1&b)){f=d+4|0;b=ro(g,c[(f&p)>>2]|0,b*40|0,0)|0;if(!b)f=8;else{c[(f&p)>>2]=b;f=7}}else f=7}if((f|0)==7){b=c[(d&p)>>2]|0;c[(d&p)>>2]=b+1;b=(c[(d&p)+4>>2]|0)+(b*20|0)|0;c[(b&p)>>2]=0;c[(b&p)+4>>2]=0;c[(b&p)+8>>2]=0;c[(b&p)+12>>2]=0;c[(b&p)+16>>2]=0;c[(b&p)>>2]=e}else if((f|0)==8){Gk(g,e);Nk(g,d);d=0}return d|0}function mr(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0;do if(d){j=(c[(d&p)>>2]|0)+-1|0;g=c[(d&p)+4>>2]|0;h=c[(e&p)>>2]|0;d=c[(e&p)+4>>2]|0;if((h|0)!=0?(e=c[(b&p)>>2]|0,i=jw(d|0,0,1,0)|0,i=mh(e,i,G)|0,(i|0)!=0):0){kw(i|0,h|0,d|0)|0;a[(i+d&n)>>0]=0;c[(g+(j*20|0)&p)+4>>2]=i;if(!f)break;lo(i);break}c[(g+(j*20|0)&p)+4>>2]=0}while(0);return}function nr(d,e,f,g){d=d|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,q=0,r=0,s=0,t=0;t=i;i=i+16|0;if((i|0)>=(j|0))fa();m=t;c[(m&p)>>2]=0;k=(f|0)!=0;do if(k){if(((e|0)==132?(h=c[(f&p)>>2]|0,(h|0)!=0):0)?(Dn(h,m)|0)!=0:0){r=0;break}r=(c[(f&p)+4>>2]|0)+1|0}else r=0;while(0);l=r+48|0;q=mh(d,l,0)|0;if(q){fw(q|0,0,l|0)|0;a[(q&n)>>0]=e;b[(q&o)+34>>1]=-1;do if(k){if(!r){g=q+4|0;c[(g&p)>>2]=c[(g&p)>>2]|1024;c[(q&p)+8>>2]=c[(m&p)>>2];break}h=q+48|0;l=q+8|0;c[(l&p)>>2]=h;k=f+4|0;d=c[(k&p)>>2]|0;if(!d)h=48;else{kw(h|0,c[(f&p)>>2]|0,d|0)|0;h=(c[(k&p)>>2]|0)+48|0}a[(q+h&n)>>0]=0;if(((g|0)!=0&(r|0)>2?(g=a[(c[(f&p)>>2]&n)>>0]|0,s=g<<24>>24==34,g<<24>>24==34|g<<24>>24==39|g<<24>>24==91|g<<24>>24==96):0)?(lo(c[(l&p)>>2]|0),s):0){g=q+4|0;c[(g&p)>>2]=c[(g&p)>>2]|64}}while(0);c[(q&p)+24>>2]=1}i=t;return q|0}function or(b,d,e){b=b|0;d=d|0;e=e|0;var f=0;do if((d|0)!=0?(f=c[(d&p)>>2]|0,(f|0)>0):0){f=f+-1|0;if((c[(e&p)+4>>2]|0)==1?(c[(e&p)>>2]|0)==0:0){f=d+(f*72|0)+45|0;a[(f&n)>>0]=a[(f&n)>>0]|1;break}c[(d+(f*72|0)&p)+72>>2]=Wq(c[(b&p)>>2]|0,e)|0}while(0);return}function pr(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0;if(!d){d=mh(b,80,0)|0;if(!d)d=0;else{h=d+0|0;g=h+80|0;do{a[(h&n)>>0]=0;h=h+1|0}while((h|0)<(g|0));c[(d&p)+4>>2]=1;h=4}}else h=4;do if((h|0)==4){d=Fs(b,d,1,c[(d&p)>>2]|0)|0;if(a[(b&n)+65>>0]|0){Do(b,d);d=0;break}h=(c[(d&p)>>2]|0)+-1|0;if(!f)g=0;else g=(c[(f&p)>>2]|0)==0?0:f;f=(g|0)==0;c[(d+(h*72|0)&p)+16>>2]=Wq(b,f?e:g)|0;c[(d+(h*72|0)&p)+12>>2]=Wq(b,f?0:e)|0}while(0);return d|0}function qr(a,b,e,f){a=a|0;b=b|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,o=0,q=0,r=0,s=0;s=i;i=i+32|0;if((i|0)>=(j|0))fa();q=s;m=s+16|0;c[(m&p)>>2]=b;c[(m&p)+4>>2]=e;c[(m&p)+8>>2]=f;l=b;o=1;g=0;a:while(1){if(!l)break;k=c[(l&p)+4>>2]|0;h=0;while(1){if((k|0)==(d[((h*3|0)&n)+34625>>0]|0|0)?(Fc(c[(l&p)>>2]|0,34584+(d[((h*3|0)&n)+34624>>0]|0)|0,k)|0)==0:0)break;h=h+1|0;if((h|0)>=7){r=10;break a}}g=d[((h*3|0)&n)+34626>>0]|0|g;if((h|0)>6){r=10;break}if((o|0)>=3)break;l=c[(m+(o<<2)&p)>>2]|0;o=o+1|0}if((r|0)==10)g=g|64;if((g&33|0)!=33&(g&64|0)==0){if(!((g&32|0)==0|(g&24|0)==8)){th(a,34696,q);g=1}}else{c[(q&p)>>2]=b;c[(q&p)+4>>2]=e;c[(q&p)+8>>2]=(f|0)==0?20377|0:20376;c[(q&p)+12>>2]=f;th(a,34648,q);g=1}i=s;return g|0}function rr(e,f,g){e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=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;T=i;i=i+48|0;if((i|0)>=(j|0))fa();Q=T+36|0;R=T+32|0;r=T;c[(Q&p)>>2]=0;c[(R&p)>>2]=0;S=c[(e&p)>>2]|0;if(((((c[(e&p)+64>>2]|0)==0?(a[(S&n)+65>>0]|0)==0:0)?(H=Jr(e,f)|0,(H|0)!=0):0)?(G=jt(e,H,109,0,0)|0,P=(c[(H&p)+12>>2]|0)!=0,(hr(e,H)|0)==0):0)?(t=(G|0)!=0,(kt(e,H,t&1)|0)==0):0){l=c[(H&p)+68>>2]|0;a:do if(l){k=c[(S&p)+20>>2]|0;if((k|0)>0){h=c[(S&p)+16>>2]|0;q=0;while(1){m=q+1|0;if((c[(h+(q<<4)&p)+12>>2]|0)==(l|0)){m=q;break a}if((m|0)<(k|0))q=m;else break}}else m=0}else m=-1e6;while(0);h=Sq(e,9,c[(H&p)>>2]|0,0,c[((c[(S&p)+16>>2]|0)+(m<<4)&p)>>2]|0)|0;if((h|0)!=1){s=e+68|0;C=c[(s&p)>>2]|0;u=C+1|0;c[(s&p)>>2]=u;c[(f&p)+48>>2]=C;I=H+8|0;l=c[(I&p)>>2]|0;if(!l)q=0;else{k=u;q=0;do{k=k+1|0;c[(s&p)>>2]=k;q=q+1|0;l=c[(l&p)+20>>2]|0}while((l|0)!=0)}if(P){N=e+492|0;O=c[(N&p)>>2]|0;c[(N&p)>>2]=c[(H&p)>>2];N=e}else{N=0;O=0}L=Oq(e)|0;b:do if(L){M=e+18|0;if(!(a[(M&n)>>0]|0)){E=L+88|0;b[(E&o)>>1]=b[(E&o)>>1]|4}D=e+408|0;E=c[(D&p)>>2]|0;E=(E|0)==0?e:E;Ar(e,m);B=E+328|0;c[(B&p)>>2]=c[(B&p)>>2]|1<>0]=d[(E&n)>>0]|1;if(P){lt(e,H,g,C);c[(R&p)>>2]=C;c[(Q&p)>>2]=C};c[(r&p)>>2]=0;c[(r&p)+4>>2]=0;c[(r&p)+8>>2]=0;c[(r&p)+12>>2]=0;c[(r&p)+16>>2]=0;c[(r&p)+20>>2]=0;c[(r&p)+24>>2]=0;c[(r&p)+28>>2]=0;c[(r&p)>>2]=e;c[(r&p)+4>>2]=f;if(!(ls(r,g)|0)){J=S+24|0;if(!(c[(J&p)>>2]&128))K=-1;else{E=e+72|0;K=(c[(E&p)>>2]|0)+1|0;c[(E&p)>>2]=K;wh(L,25,0,K,0)|0}E=H+44|0;do if((!((g|0)!=0|(h|0)!=0|t)?(a[(E&n)>>0]&16)==0:0)?(mt(e,H,0,0)|0)==0:0){l=H+32|0;gs(e,m,c[(l&p)>>2]|0,1,c[(H&p)>>2]|0);if(!(a[(E&n)>>0]&32)){H=c[(H&p)>>2]|0;xh(L,wh(L,118,c[(l&p)>>2]|0,m,K)|0,H,-2)}h=c[(I&p)>>2]|0;if(!h){h=0;break}do{wh(L,118,c[(h&p)+40>>2]|0,m,0)|0;h=c[(h&p)+20>>2]|0}while((h|0)!=0);h=0}else F=31;while(0);do if((F|0)==31){if(!(a[(E&n)>>0]&32)){v=e+72|0;z=(c[(v&p)>>2]|0)+1|0;c[(v&p)>>2]=z;wh(L,28,0,z,0)|0;v=0;A=0;h=0;x=1;m=0}else{m=c[(I&p)>>2]|0;c:do if(!m)m=0;else while(1){if((a[(m&n)+51>>0]&3)==2)break c;m=c[(m&p)+20>>2]|0;if(!m){m=0;break}}while(0);x=b[(m&o)+46>>1]|0;A=e+72|0;h=c[(A&p)>>2]|0;v=x<<16>>16;c[(A&p)>>2]=h+v;A=c[(s&p)>>2]|0;c[(s&p)>>2]=A+1;v=wh(L,57,A,v,0)|0;z=c[(e&p)+8>>2]|0;xh(z,-1,hs(e,m)|0,-6);h=h+1|0;z=0}w=Vs(e,f,g,0,0,12,u)|0;if(!w){h=0;break b}u=w+60|0;t=c[(u&p)>>2]|0;u=c[(u&p)+4>>2]|0;y=a[(w&n)+38>>0]|0;if(c[(J&p)>>2]&128)wh(L,37,K,1,0)|0;B=(m|0)!=0;do if(B){if(x<<16>>16<=0){k=h;break}r=m+4|0;l=x<<16>>16;s=0;do{nt(L,H,C,b[((c[(r&p)>>2]|0)+(s<<1)&o)>>1]|0,s+h|0);s=s+1|0}while((s|0)!=(l|0));k=h}else{l=e+72|0;k=ct(e,H,-1,C,(c[(l&p)>>2]|0)+1|0,0)|0;if((k|0)<=(c[(l&p)>>2]|0))break;c[(l&p)>>2]=k}while(0);r=y<<24>>24!=0;do if(!r)if(B){l=e+72|0;k=(c[(l&p)>>2]|0)+1|0;c[(l&p)>>2]=k;l=x<<16>>16;s=ot(L,m)|0;xh(L,wh(L,49,h,l,k)|0,s,l);wh(L,110,A,k,0)|0;h=0;l=0;s=0;F=59;break}else{wh(L,128,z,k,0)|0;Xs(w);h=0;u=0;m=1;break}else{h=q+2|0;h=mh(S,h,((h|0)<0)<<31>>31)|0;if(!h){Xs(w);h=0;break b}F=q+1|0;fw(h|0,1,F|0)|0;a[(h+F&n)>>0]=0;if((t|0)>-1)a[(h+(t-C)&n)>>0]=0;if((u|0)>-1)a[(h+(u-C)&n)>>0]=0;if(v)zh(L,v);l=wh(L,16,0,0,0)|0;s=x;F=59}while(0);do if((F|0)==59){Xs(w);if(!r){u=0;m=s;break}m=xs(L)|0;wh(L,16,0,m,0)|0;q=c[(L&p)+32>>2]|0;if(q>>>0>l>>>0)c[((c[(L&p)+4>>2]|0)+(l*20|0)&p)+8>>2]=q;c[((c[(L&p)+24>>2]|0)&p)+88>>2]=q+-1;u=m;m=s}while(0);if(!P)pt(e,H,55,C,h,Q,R)|0;do if(!r)if(B){l=wh(L,108,A,0,0)|0;wh(L,101,A,k,0)|0;break}else{l=wh(L,129,z,0,k)|0;break}else{q=c[(Q&p)>>2]|0;if(!(a[(h+(q-C)&n)>>0]|0)){l=0;break}xh(L,wh(L,68,q,u,k)|0,m<<16>>16,-14);l=0}while(0);if(!(a[(E&n)>>0]&16))rt(e,H,G,c[(Q&p)>>2]|0,c[(R&p)>>2]|0,k,m,(a[(M&n)>>0]|0)==0&1,10,y);else{q=c[(H&p)+60>>2]|0;d:do if(!q)q=0;else while(1){if((c[(q&p)>>2]|0)==(S|0))break d;q=c[(q&p)+24>>2]|0;if(!q){q=0;break}}while(0);qt(e,H);xh(L,wh(L,15,0,1,k)|0,q,-10);q=c[(L&p)+4>>2]|0;if(q)a[(q+(((c[(L&p)+32>>2]|0)+-1|0)*20|0)&n)+3>>0]=2;H=c[(D&p)>>2]|0;a[(((H|0)==0?e:H)&n)+21>>0]=1}do if(!r)if(B){wh(L,9,A,l+1|0,0)|0;q=c[(L&p)+32>>2]|0;if(q>>>0>l>>>0)c[((c[(L&p)+4>>2]|0)+(l*20|0)&p)+8>>2]=q;c[((c[(L&p)+24>>2]|0)&p)+88>>2]=q+-1;break}else{wh(L,16,0,l,0)|0;q=c[(L&p)+32>>2]|0;if(q>>>0>l>>>0)c[((c[(L&p)+4>>2]|0)+(l*20|0)&p)+8>>2]=q;c[((c[(L&p)+24>>2]|0)&p)+88>>2]=q+-1;break}else{m=c[(L&p)+24>>2]|0;l=~u;do if((u|0)<0){q=c[(m&p)+112>>2]|0;if(!q)break;c[(q+(l<<2)&p)>>2]=c[(L&p)+32>>2]}while(0);c[(m&p)+88>>2]=(c[(L&p)+32>>2]|0)+-1}while(0);if(P)break;if(a[(E&n)>>0]&16)break;if(!B)wh(L,61,c[(Q&p)>>2]|0,0,0)|0;k=c[(I&p)>>2]|0;if(!k)break;else l=0;while(1){wh(L,61,(c[(R&p)>>2]|0)+l|0,0,0)|0;k=c[(k&p)+20>>2]|0;if(!k)break;else l=l+1|0}}while(0);if((a[(M&n)>>0]|0)==0?(c[(e&p)+412>>2]|0)==0:0)st(e);if((c[(J&p)>>2]&128|0)!=0?(a[(M&n)>>0]|0)==0:0){if(c[(e&p)+412>>2]|0)break;wh(L,35,K,1,0)|0;iq(L,1);if(a[((c[(L&p)>>2]|0)&n)+65>>0]|0)break;Xg(c[(L&p)+16>>2]|0,34568,-1,1,0)|0}}else h=0}else h=0;while(0);if(N)c[(N&p)+492>>2]=O}else h=0}else h=0;Do(S,f);Gk(S,g);mg(S,h);i=T;return}function sr(e,f,g,h,k){e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;var l=0,m=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,ga=0,ha=0,ia=0,ja=0,ka=0,la=0,ma=0;ma=i;i=i+64|0;if((i|0)>=(j|0))fa();T=ma;Y=ma+32|0;ea=ma+24|0;ha=ma+20|0;la=c[(e&p)>>2]|0;a:do if(((c[(e&p)+64>>2]|0)==0?(a[(la&n)+65>>0]|0)==0:0)?(ka=Jr(e,f)|0,(ka|0)!=0):0){m=c[(e&p)>>2]|0;r=c[(ka&p)+68>>2]|0;b:do if(r){s=c[(m&p)+20>>2]|0;if((s|0)>0){m=c[(m&p)+16>>2]|0;q=0;while(1){l=q+1|0;if((c[(m+(q<<4)&p)+12>>2]|0)==(r|0))break b;if((l|0)<(s|0))q=l;else{q=l;break}}}else q=0}else q=-1e6;while(0);ga=jt(e,ka,110,g,ea)|0;ca=(c[(ka&p)+12>>2]|0)!=0;if((hr(e,ka)|0)==0?(kt(e,ka,c[(ea&p)>>2]|0)|0)==0:0){_=e+68|0;$=c[(_&p)>>2]|0;ia=$+1|0;c[(_&p)>>2]=ia;r=f+48|0;c[(r&p)>>2]=$;K=ka+44|0;u=c[(ka&p)+8>>2]|0;c:do if(!(a[(K&n)>>0]&32)){s=0;ba=16}else{if(!u){w=ka+8|0;s=0;t=$;v=0;break}else s=u;while(1){if((a[(s&n)+51>>0]&3)==2){ba=16;break c}s=c[(s&p)+20>>2]|0;if(!s){s=0;ba=16;break}}}while(0);if((ba|0)==16){w=ka+8|0;if(!u){t=$;v=0}else{l=(s|0)!=0;m=ia;t=$;v=0;do{if((a[(u&n)+51>>0]&3)==2&l){c[(r&p)>>2]=m;t=m}m=m+1|0;c[(_&p)>>2]=m;v=v+1|0;u=c[(u&p)+20>>2]|0}while((u|0)!=0)}}ja=ka+38|0;l=mh(la,v+2+((b[(ja&o)>>1]|0)+v<<2)|0,0)|0;if(l){I=b[(ja&o)>>1]|0;aa=l+(I<<2)|0;da=l+(I+v<<2)|0;Z=v+1|0;fw(da|0,1,Z|0)|0;a[(da+Z&n)>>0]=0;v=b[(ja&o)>>1]|0;if(v<<16>>16>0)fw(l|0,-1,(v<<16>>16>1?v<<16>>16<<2:4)|0)|0;c[(Y&p)>>2]=0;c[(Y&p)+4>>2]=0;c[(Y&p)+8>>2]=0;c[(Y&p)+12>>2]=0;c[(Y&p)+16>>2]=0;c[(Y&p)+20>>2]=0;c[(Y&p)+24>>2]=0;c[(Y&p)+28>>2]=0;c[(Y&p)>>2]=e;c[(Y&p)+4>>2]=f;d:do if((c[(g&p)>>2]|0)>0){E=g+4|0;D=ka+4|0;C=la+16|0;F=(s|0)==0;G=ka+36|0;y=0;x=0;H=0;m=0;while(1){if(ls(Y,c[((c[(E&p)>>2]|0)+(H*20|0)&p)>>2]|0)|0)break a;A=b[(ja&o)>>1]|0;e:do if(A<<16>>16>0){v=c[(D&p)>>2]|0;B=c[(E&p)>>2]|0;r=c[(B+(H*20|0)&p)+4>>2]|0;u=0;while(1){z=u+1|0;if(!(dd(c[(v+(u*24|0)&p)>>2]|0,r)|0))break;if((z|0)<(A<<16>>16|0))u=z;else{u=z;r=m;break e}}if((u|0)!=(b[(G&o)>>1]|0)){if(!F)y=(a[(v+(u*24|0)&n)+23>>0]&1)==0?y:1}else{x=1;m=c[(B+(H*20|0)&p)>>2]|0}c[(l+(u<<2)&p)>>2]=H;r=m}else{u=0;r=m}while(0);if((u|0)<(A<<16>>16|0)){m=c[(ka&p)>>2]|0;if((u|0)<0)v=12944;else v=c[((c[(D&p)>>2]|0)+(u*24|0)&p)>>2]|0}else{r=c[(E&p)>>2]|0;m=c[(r+(H*20|0)&p)+4>>2]|0;if(!F)break;if(!($h(m)|0))break;m=c[(ka&p)>>2]|0;v=12944;x=1;u=-1;r=c[(r+(H*20|0)&p)>>2]|0}m=Sq(e,23,m,v,c[((c[(C&p)>>2]|0)+(q<<4)&p)>>2]|0)|0;if((m|0)==2)c[(l+(u<<2)&p)>>2]=-1;else if((m|0)==1)break a;H=H+1|0;if((H|0)>=(c[(g&p)>>2]|0)){R=r;break d}else m=r}c[(T&p)>>2]=m;th(e,34496,T);a[(e&n)+17>>0]=1;break a}else{y=0;x=0;R=0}while(0);X=(y&255)+(x&255)|0;U=X&255;C=f+64|0;c[(C&p)>>2]=0;c[(C&p)+4>>2]=0;X=X&255;C=mt(e,ka,l,X)|0;m=c[(w&p)>>2]|0;if(m){z=(C|X|0)==0;A=e+72|0;B=0;while(1){f:do if(z?!((c[(m&p)+36>>2]|0)!=0|(m|0)==(s|0)):0){r=b[(m&o)+46>>1]|0;if(!(r<<16>>16))ba=56;else{u=c[(m&p)+4>>2]|0;v=0;while(1){if((c[(l+(b[(u+(v<<1)&o)>>1]<<2)&p)>>2]|0)>-1){ba=54;break f}v=v+1|0;if((v|0)>=(r&65535|0)){ba=56;break}}}}else ba=54;while(0);if((ba|0)==54){ba=0;r=(c[(A&p)>>2]|0)+1|0;c[(A&p)>>2]=r;if(!r)ba=56;else u=B+1|0}if((ba|0)==56){ba=0;u=B+1|0;a[(da+u&n)>>0]=0;r=0}c[(l+(B+I<<2)&p)>>2]=r;m=c[(m&p)+20>>2]|0;if(!m)break;else B=u}}V=Oq(e)|0;if(V){W=e+18|0;if(!(a[(W&n)>>0]|0)){S=V+88|0;b[(S&o)>>1]=b[(S&o)>>1]|4}H=e+408|0;S=c[(H&p)>>2]|0;S=(S|0)==0?e:S;Ar(e,q);Q=S+328|0;c[(Q&p)>>2]=c[(Q&p)>>2]|1<>0]=d[(S&n)>>0]|1;if(a[(K&n)>>0]&16){x=c[(e&p)+8>>2]|0;y=c[(e&p)>>2]|0;m=c[(ka&p)+60>>2]|0;g:do if(!m)m=0;else while(1){if((c[(m&p)>>2]|0)==(y|0))break g;m=c[(m&p)+24>>2]|0;if(!m){m=0;break}}while(0);q=lr(e,0,tt(y,27,34536)|0)|0;w=(R|0)!=0;if(w)q=lr(e,q,Mr(y,R,0,0)|0)|0;if((b[(ja&o)>>1]|0)>0){r=g+4|0;t=ka+4|0;u=0;do{s=c[(l+(u<<2)&p)>>2]|0;if((s|0)>-1)s=Mr(y,c[((c[(r&p)>>2]|0)+(s*20|0)&p)>>2]|0,0,0)|0;else s=tt(y,27,c[((c[(t&p)>>2]|0)+(u*24|0)&p)>>2]|0)|0;q=lr(e,q,s)|0;u=u+1|0}while((u|0)<(b[(ja&o)>>1]|0))}t=kr(e,q,f,h,0,0,0,0,0,0)|0;v=c[(_&p)>>2]|0;c[(_&p)>>2]=v+1;f=w&1;wh(x,57,v,(b[(ja&o)>>1]|0)+(w?2:1)|0,0)|0;u=x+4|0;h=c[(u&p)>>2]|0;if(h)a[(h+(((c[(x&p)+32>>2]|0)+-1|0)*20|0)&n)+3>>0]=8;a[(T&n)>>0]=14;c[(T&p)+4>>2]=v;a[(T&n)+1>>0]=0;c[(T&p)+8>>2]=0;c[(T&p)+12>>2]=0;ir(e,t,T)|0;h=e+72|0;s=c[(h&p)>>2]|0;q=s+1|0;da=s+2|0;c[(h&p)>>2]=(b[(ja&o)>>1]|0)+da;h=wh(x,108,v,0,0)|0;wh(x,47,v,0,q)|0;wh(x,47,v,f,da)|0;if((b[(ja&o)>>1]|0)>0){s=s+3|0;r=0;do{da=r;r=r+1|0;wh(x,47,v,r+f|0,s+da|0)|0}while((r|0)<(b[(ja&o)>>1]|0))}qt(e,ka);xh(x,wh(x,15,0,(b[(ja&o)>>1]|0)+2|0,q)|0,m,-10);m=c[(u&p)>>2]|0;if(!m)m=x+32|0;else{da=x+32|0;a[(m+(((c[(da&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=(k|0)==10?2:k&255;m=da}da=c[(H&p)>>2]|0;a[(((da|0)==0?e:da)&n)+21>>0]=1;wh(x,9,v,h+1|0,0)|0;m=c[(m&p)>>2]|0;if(m>>>0>h>>>0)c[((c[(u&p)>>2]|0)+(h*20|0)&p)+8>>2]=m;c[((c[(x&p)+24>>2]|0)&p)+88>>2]=m+-1;wh(x,61,v,0,0)|0;Mk(y,t,1);h=0;f=0;break}H=e+72|0;m=c[(H&p)>>2]|0;G=m+1|0;Q=m+2|0;c[(H&p)>>2]=Q;I=y<<24>>24!=0;J=(ga|0)!=0;P=(C|0)!=0;if(I|J|P){q=(b[(ja&o)>>1]|0)+Q|0;c[(H&p)>>2]=q;L=m+3|0}else{q=Q;L=0}N=(X|0)!=0;if(N|J|P){O=q+1|0;c[(H&p)>>2]=O;q=O}else O=Q;M=q+1|0;c[(H&p)>>2]=(b[(ja&o)>>1]|0)+q;if(ca){S=e+492|0;T=c[(S&p)>>2]|0;c[(S&p)>>2]=c[(ka&p)>>2];lt(e,ka,h,t);S=e}else{S=0;T=0}do if(!(ls(Y,h)|0)){if(!(a[(K&n)>>0]&32)){wh(V,28,0,G,Q)|0;y=Vs(e,f,h,0,0,4,ia)|0;if(!y)break;A=y+60|0;m=c[(A&p)>>2]|0;A=c[(A&p)+4>>2]|0;B=a[(y&n)+38>>0]|0;wh(V,103,t,Q,0)|0;if(!(B<<24>>24))wh(V,128,G,Q,0)|0;Xs(y);D=0;C=0;z=B&255;E=0}else{B=b[(s&o)+46>>1]|0;y=c[(H&p)>>2]|0;u=y+1|0;C=B<<16>>16;y=C+1+y|0;c[(H&p)>>2]=y;D=c[(_&p)>>2]|0;c[(_&p)>>2]=D+1;wh(V,28,0,u,0)|0;q=wh(V,57,D,C,0)|0;v=c[(e&p)+8>>2]|0;xh(v,-1,hs(e,s)|0,-6);v=Vs(e,f,h,0,0,4,ia)|0;if(!v)break;A=v+60|0;m=c[(A&p)>>2]|0;A=c[(A&p)+4>>2]|0;r=a[(v&n)+38>>0]|0;E=r&255;if(B<<16>>16>0){B=s+4|0;z=0;do{nt(V,ka,t,b[((c[(B&p)>>2]|0)+(z<<1)&o)>>1]|0,z+u|0);z=z+1|0}while((z|0)!=(C|0))}if(!(r<<24>>24)){B=ot(V,s)|0;xh(V,wh(V,49,u,C,y)|0,B,C);wh(V,110,D,y,0)|0;B=0}else{zh(V,q);B=C;y=u}Xs(v);C=B;z=E;E=y}K=la+24|0;do if(!(c[(K&p)>>2]&128))v=0;else{if(c[(e&p)+412>>2]|0){v=0;break}v=(c[(H&p)>>2]|0)+1|0;c[(H&p)>>2]=v;wh(V,25,0,v,0)|0}while(0);u=xs(V)|0;if(!ca){h:do if((k|0)==5)fw(da|0,1,Z|0)|0;else{B=c[(w&p)>>2]|0;if(!B)break;while(1){if((a[(B&n)+50>>0]|0)==5)break;B=c[(B&p)+20>>2]|0;if(!B)break h}fw(da|0,1,Z|0)|0}while(0);do if(z){if((m|0)>-1)a[(da+(m-$)&n)>>0]=0;if((A|0)<=-1)break;a[(da+(A-$)&n)>>0]=0}while(0);pt(e,ka,55,$,da,0,0)|0}H=(z|0)!=0;do if(!H)if(!s){G=wh(V,129,G,u,Q)|0;wh(V,70,t,G,Q)|0;F=0;break}else{G=xs(V)|0;wh(V,108,D,u,0)|0;F=wh(V,101,D,E,0)|0;xh(V,wh(V,68,t,G,E)|0,0,-14);break}else{if(!((a[(da+(t-$)&n)>>0]|0)==0|ca))xh(V,wh(V,68,t,u,E)|0,C,-14);wh(V,76,(s|0)!=0?E:Q,u,0)|0;F=0;G=u}while(0);x=x<<24>>24==0;if(!x){Rq(e,R,O);wh(V,38,O,0,0)|0}do if(I|P|J){if(P)y=ut(e,ka)|0;else y=0;B=vt(e,ga,g,0,3,ka,k)|0|y;if((b[(ja&o)>>1]|0)>0){A=(B|0)==-1;z=ka+4|0;y=0;do{do if(A)ba=138;else{if((y|0)<32?(1<>2]|0)+(y*24|0)&n)+23>>0]&1){ba=138;break}wh(V,28,0,y+L|0,0)|0}while(0);if((ba|0)==138){ba=0;nt(V,ka,t,y,y+L|0)}y=y+1|0}while((y|0)<(b[(ja&o)>>1]|0))}if(!(x&(s|0)==0))break;wh(V,33,Q,O,0)|0}while(0);y=vt(e,ga,g,1,1,ka,k)|0;if((b[(ja&o)>>1]|0)>0){x=ka+36|0;m=g+4|0;r=0;do{i:do if((r|0)==(b[(x&o)>>1]|0))wh(V,28,0,r+M|0,0)|0;else{q=c[(l+(r<<2)&p)>>2]|0;if((q|0)>-1){Rq(e,c[((c[(m&p)>>2]|0)+(q*20|0)&p)>>2]|0,r+M|0);break}do if(!((c[(ea&p)>>2]&1|0)==0|(r|0)>31)){if(1<>1]|0))}do if(c[(ea&p)>>2]&1){wt(V,ka,M);xt(e,ga,110,g,1,ka,Q,k,G);if(!s)wh(V,70,t,G,Q)|0;else xh(V,wh(V,68,t,G,E)|0,C,-14);m=b[(ja&o)>>1]|0;if(m<<16>>16<=0)break;x=ka+36|0;y=0;do{do if((c[(l+(y<<2)&p)>>2]|0)<0){if((y|0)==(b[(x&o)>>1]|0))break;nt(V,ka,t,y,y+M|0);m=b[(ja&o)>>1]|0}while(0);y=y+1|0}while((y|0)<(m<<16>>16|0))}while(0);do if(!ca){c[(ha&p)>>2]=0;yt(e,ka,aa,t,ia,O,Q,U,k&255,G,ha);if(P)zt(e,ka,Q,0,l,X);m=(c[(ha&p)>>2]|X|0)==0;do if(!m)if(!s){q=wh(V,70,t,0,Q)|0;break}else{q=wh(V,68,t,0,E)|0;xh(V,q,C,-14);break}else q=0;while(0);At(e,ka,t,ia,aa);if(P|(N|(s|0)!=0))wh(V,95,t,0,0)|0;if(!m){m=c[(V&p)+32>>2]|0;if(m>>>0>q>>>0)c[((c[(V&p)+4>>2]|0)+(q*20|0)&p)+8>>2]=m;c[((c[(V&p)+24>>2]|0)&p)+88>>2]=m+-1}if(P){zt(e,ka,0,O,l,X);Bt(e,ka,t,ia,O,aa,1,0,0);Ct(e,ka,g,Q,l,X);break}else{Bt(e,ka,t,ia,O,aa,1,0,0);break}}while(0);do if(c[(K&p)>>2]&128){if(c[(e&p)+412>>2]|0)break;wh(V,37,v,1,0)|0}while(0);xt(e,ga,110,g,2,ka,Q,k,G);do if(!H){if(!s){wh(V,16,0,G,0)|0;break}r=c[(V&p)+24>>2]|0;q=~G;do if((G|0)<0){s=c[(r&p)+112>>2]|0;if(!s)break;c[(s+(q<<2)&p)>>2]=c[(V&p)+32>>2]}while(0);c[(r&p)+88>>2]=(c[(V&p)+32>>2]|0)+-1;wh(V,9,D,F,0)|0}while(0);r=c[(V&p)+24>>2]|0;q=~u;do if((u|0)<0){s=c[(r&p)+112>>2]|0;if(!s)break;c[(s+(q<<2)&p)>>2]=c[(V&p)+32>>2]}while(0);c[(r&p)+88>>2]=(c[(V&p)+32>>2]|0)+-1;q=c[(w&p)>>2]|0;if(q){r=0;do{s=r;r=r+1|0;if(a[(da+r&n)>>0]|0)wh(V,61,s+ia|0,0,0)|0;q=c[(q&p)+20>>2]|0}while((q|0)!=0)}if((t|0)<(ia|0))wh(V,61,t,0,0)|0;do if(!(a[(W&n)>>0]|0)){if(c[(e&p)+412>>2]|0)break;st(e)}while(0);if(!(c[(K&p)>>2]&128))break;if(c[(e&p)+412>>2]|0)break;if(a[(W&n)>>0]|0)break;wh(V,35,v,1,0)|0;iq(V,1);if(a[((c[(V&p)>>2]|0)&n)+65>>0]|0)break;Xg(c[(V&p)+16>>2]|0,34520,-1,1,0)|0}while(0);if(S)c[(S&p)+492>>2]=T}}}else l=0}else l=0;while(0);mg(la,l);Do(la,f);Nk(la,g);Gk(la,h);i=ma;return}function tr(e,f,g,h,k){e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;var l=0,m=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,ga=0,ha=0,ia=0,ja=0,ka=0,la=0,ma=0,na=0,oa=0;oa=i;i=i+96|0;if((i|0)>=(j|0))fa();ca=oa;ja=oa+92|0;la=oa+88|0;L=oa+68|0;Y=oa+64|0;O=oa+32|0;ba=oa+28|0;c[(ja&p)>>2]=0;c[(la&p)>>2]=0;na=c[(e&p)>>2]|0;c[(L&p)>>2]=0;c[(L&p)+4>>2]=0;c[(L&p)+8>>2]=0;c[(L&p)+12>>2]=0;c[(L&p)+16>>2]=0;a:do if((c[(e&p)+64>>2]|0)==0?(N=na+65|0,(a[(N&n)>>0]|0)==0):0){if(g)if((b[(g&o)+6>>1]&128)!=0?(c[(g&p)+52>>2]|0)==0:0){l=c[(g&p)>>2]|0;c[(g&p)>>2]=0;Mk(na,g,1);g=0}else l=0;else{g=0;l=0}if((c[(f&p)+16>>2]|0)!=0?(ka=Jr(e,f)|0,(ka|0)!=0):0){u=c[(ka&p)+68>>2]|0;b:do if(u){t=c[(na&p)+20>>2]|0;if((t|0)>0){s=c[(na&p)+16>>2]|0;q=0;while(1){r=q+1|0;if((c[(s+(q<<4)&p)+12>>2]|0)==(u|0)){r=q;break b}if((r|0)<(t|0))q=r;else break}}else r=0}else r=-1e6;while(0);if((((Sq(e,18,c[(ka&p)>>2]|0,0,c[((c[(na&p)+16>>2]|0)+(r<<4)&p)>>2]|0)|0)==0?(ga=ka+44|0,Z=(d[(ga&n)>>0]|0)>>>5&1,ea=jt(e,ka,108,0,Y)|0,ha=(c[(ka&p)+12>>2]|0)!=0,(hr(e,ka)|0)==0):0)?(kt(e,ka,c[(Y&p)>>2]|0)|0)==0:0)?(ma=Oq(e)|0,(ma|0)!=0):0){ia=e+18|0;if(!(a[(ia&n)>>0]|0)){da=ma+88|0;b[(da&o)>>1]=b[(da&o)>>1]|4}da=(g|0)!=0;aa=e+408|0;$=c[(aa&p)>>2]|0;$=($|0)==0?e:$;Ar(e,r);X=$+328|0;c[(X&p)>>2]=c[(X&p)>>2]|1<>0]=d[($&n)>>0]|(da|(ea|0)!=0)&1;$=(h|0)==0;c:do if((((!((g|0)==0|$^1)?(c[(e&p)+532>>2]|0)==0:0)?(c[(g&p)+68>>2]|0)==0:0)?(As(e,ka)|0)==0:0)?(a[(ga&n)>>0]&16)==0:0){if((k|0)==10){if((b[(ka&o)+36>>1]|0)>-1)u=d[(ka&n)+45>>0]|0;else u=10;y=(u|0)==10?2:u}else y=k;t=c[(g&p)+32>>2]|0;if((c[(t&p)>>2]|0)==1){if(c[(t&p)+28>>2]|0){_=117;break}if(c[(g&p)+36>>2]|0){_=117;break}if(c[(g&p)+48>>2]|0){_=117;break}if(c[(g&p)+40>>2]|0){_=117;break}if(c[(g&p)+60>>2]|0){_=117;break}if(c[(g&p)+52>>2]|0){_=117;break}if(b[(g&o)+6>>1]&1){_=117;break}u=c[(g&p)>>2]|0;if((c[(u&p)>>2]|0)!=1){_=117;break}if((a[(c[(c[(u&p)+4>>2]&p)>>2]&n)>>0]|0)!=116){_=117;break}x=Ur(e,0,t+8|0)|0;if((x|0)==0|(x|0)==(ka|0)){_=117;break}B=x+44|0;X=d[(B&n)>>0]|0;if(!((X&16|0)==0?(((d[(ga&n)>>0]|0)>>>5&1^1)&255|0)==(X>>>5&1^1|0):0)){_=117;break}if(c[(x&p)+12>>2]|0){_=117;break}v=b[(ka&o)+38>>1]|0;if(v<<16>>16!=(b[(x&o)+38>>1]|0)){_=117;break}A=ka+36|0;if((b[(A&o)>>1]|0)!=(b[(x&o)+36>>1]|0)){_=117;break}if(v<<16>>16>0){q=c[(ka&p)+4>>2]|0;m=c[(x&p)+4>>2]|0;w=0;do{if((a[(q+(w*24|0)&n)+21>>0]|0)!=(a[(m+(w*24|0)&n)+21>>0]|0)){_=117;break c}u=c[(q+(w*24|0)&p)+16>>2]|0;t=c[(m+(w*24|0)&p)+16>>2]|0;s=(t|0)==0;if(!u){if(!s){_=117;break c}}else{if(s){_=117;break c}if(dd(u,t)|0){_=117;break c}}if((a[(q+(w*24|0)&n)+20>>0]|0)!=0?(a[(m+(w*24|0)&n)+20>>0]|0)==0:0){_=117;break c}do if((w|0)>0){u=c[(q+(w*24|0)&p)+8>>2]|0;t=(u|0)==0;s=c[(m+(w*24|0)&p)+8>>2]|0;if(t^(s|0)==0){_=117;break c}if(t)break;if(_v(u,s)|0){_=117;break c}}while(0);w=w+1|0}while((w|0)<(v<<16>>16|0))}E=ka+8|0;u=c[(E&p)>>2]|0;if(!u)t=0;else{v=c[(x&p)+8>>2]|0;if(!v){_=117;break}else t=0;do{t=(a[(u&n)+50>>0]|0)==0?t:1;s=v;while(1){if(Dt(u,s)|0)break;s=c[(s&p)+20>>2]|0;if(!s){_=117;break c}}if(!s){_=117;break c}u=c[(u&p)+20>>2]|0}while((u|0)!=0)}u=c[(ka&p)+24>>2]|0;if((u|0)!=0?(Ts(c[(x&p)+24>>2]|0,u,-1)|0)!=0:0){_=117;break}s=c[(e&p)>>2]|0;u=c[(s&p)+24>>2]|0;if(!(u&524288)){if(u&128){_=117;break}}else if(!((c[(ka&p)+16>>2]|0)==0&(u&128|0)==0)){_=117;break}m=c[(x&p)+68>>2]|0;d:do if(!m)s=-1e6;else{v=c[(s&p)+20>>2]|0;if((v|0)<=0){s=0;break}u=c[(s&p)+16>>2]|0;q=0;while(1){s=q+1|0;if((c[(u+(q<<4)&p)+12>>2]|0)==(m|0)){s=q;break d}if((s|0)<(v|0))q=s;else break}}while(0);D=Oq(e)|0;Ar(e,s);z=e+68|0;F=c[(z&p)>>2]|0;C=F+1|0;c[(z&p)>>2]=F+2;z=Et(e,r,ka)|0;v=e+19|0;q=a[(v&n)>>0]|0;do if(!(q<<24>>24)){_=e+72|0;u=(c[(_&p)>>2]|0)+1|0;c[(_&p)>>2]=u;_=78}else{X=q+-1<<24>>24;a[(v&n)>>0]=X;u=c[(e+((X&255)<<2)&p)+24>>2]|0;if(!(X<<24>>24)){_=78;break}G=q+-2<<24>>24;a[(v&n)>>0]=G;H=u;G=c[(e+((G&255)<<2)&p)+24>>2]|0}while(0);if((_|0)==78){H=e+72|0;G=(c[(H&p)>>2]|0)+1|0;c[(H&p)>>2]=G;H=u}Qq(e,C,r,ka,55);if((b[(A&o)>>1]|0)<0)if((c[(E&p)>>2]|0)!=0|(t|0)!=0|(y+-1|0)>>>0>1)_=83;else I=0;else if((t|0)!=0|(y+-1|0)>>>0>1)_=83;else I=0;if((_|0)==83){w=wh(D,108,C,0,0)|0;v=wh(D,16,0,0,0)|0;u=c[(D&p)+32>>2]|0;if(u>>>0>w>>>0)c[((c[(D&p)+4>>2]|0)+(w*20|0)&p)+8>>2]=u;c[((c[(D&p)+24>>2]|0)&p)+88>>2]=u+-1;I=v}if(!(a[(B&n)>>0]&32)){Qq(e,F,s,x,54);t=wh(D,108,F,0,0)|0;do if((b[(A&o)>>1]|0)<=-1)if(!(c[(E&p)>>2]|0)){u=wh(D,74,C,G,0)|0;break}else{u=wh(D,103,F,G,0)|0;break}else{u=wh(D,103,F,G,0)|0;w=wh(D,70,C,0,G)|0;Ft(e,y,ka);v=c[(D&p)+32>>2]|0;if(v>>>0>w>>>0)c[((c[(D&p)+4>>2]|0)+(w*20|0)&p)+8>>2]=v;c[((c[(D&p)+24>>2]|0)&p)+88>>2]=v+-1;if((z|0)<=0)break;wh(c[(e&p)+8>>2]|0,136,z,G,0)|0}while(0);wh(D,102,F,H,0)|0;wh(D,75,C,H,G)|0;v=c[(D&p)+4>>2]|0;if(v)a[(v+(((c[(D&p)+32>>2]|0)+-1|0)*20|0)&n)+3>>0]=11;xh(D,-1,c[(ka&p)>>2]|0,0);wh(D,9,F,u,0)|0;wh(D,61,F,0,0)|0;wh(D,61,C,0,0)|0}else{gs(e,r,c[(ka&p)+32>>2]|0,1,c[(ka&p)>>2]|0);gs(e,s,c[(x&p)+32>>2]|0,0,c[(x&p)>>2]|0);t=0}w=c[(E&p)>>2]|0;if(w){q=x+8|0;m=e+8|0;x=D+4|0;y=D+32|0;z=D+24|0;u=w;do{w=q;while(1){w=c[(w&p)>>2]|0;if(Dt(u,w)|0)break;w=w+20|0}wh(D,54,F,c[(w&p)+40>>2]|0,s)|0;X=c[(m&p)>>2]|0;xh(X,-1,hs(e,w)|0,-6);wh(D,55,C,c[(u&p)+40>>2]|0,r)|0;w=c[(m&p)>>2]|0;xh(w,-1,hs(e,u)|0,-6);w=c[(x&p)>>2]|0;if(w)a[(w+(((c[(y&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=1;w=wh(D,108,F,0,0)|0;wh(D,101,F,H,0)|0;wh(D,110,C,H,1)|0;wh(D,9,F,w+1|0,0)|0;v=c[(y&p)>>2]|0;if(v>>>0>w>>>0)c[((c[(x&p)>>2]|0)+(w*20|0)&p)+8>>2]=v;c[((c[(z&p)>>2]|0)&p)+88>>2]=v+-1;wh(D,61,F,0,0)|0;wh(D,61,C,0,0)|0;u=c[(u&p)+20>>2]|0}while((u|0)!=0)}if(t){u=c[(D&p)+32>>2]|0;if(u>>>0>t>>>0)c[((c[(D&p)+4>>2]|0)+(t*20|0)&p)+8>>2]=u;c[((c[(D&p)+24>>2]|0)&p)+88>>2]=u+-1}_r(e,G);_r(e,H);if(!I){m=0;q=0;break}wh(D,24,0,0,0)|0;u=c[(D&p)+32>>2]|0;if(u>>>0>I>>>0)c[((c[(D&p)+4>>2]|0)+(I*20|0)&p)+8>>2]=u;c[((c[(D&p)+24>>2]|0)&p)+88>>2]=u+-1;wh(D,61,C,0,0)|0;_=117}else _=117}else _=117;while(0);do if((_|0)==117){S=Et(e,r,ka)|0;R=e+72|0;t=c[(R&p)>>2]|0;W=t+1|0;X=ka+38|0;I=b[(X&o)>>1]|0;H=I<<16>>16;u=W+H|0;c[(R&p)>>2]=u;if(!(a[(ga&n)>>0]&16))V=W;else{u=u+1|0;c[(R&p)>>2]=u;V=t+2|0}T=V+1|0;U=(h|0)!=0;e:do if(U?(P=c[(h&p)+4>>2]|0,Q=(P|0)>0,Q):0){v=c[(h&p)>>2]|0;t=0;do{c[(v+(t<<3)&p)+4>>2]=-1;t=t+1|0}while((t|0)<(P|0));if(Q){D=Z<<24>>24!=0;C=ka+4|0;B=ka+36|0;t=1;A=0;v=-1;while(1){f:do if(I<<16>>16>0){z=c[(h&p)>>2]|0;s=c[(z+(A<<3)&p)>>2]|0;q=c[(C&p)>>2]|0;m=0;while(1){w=m+1|0;if(!(dd(s,c[(q+(m*24|0)&p)>>2]|0)|0)){w=m;break}if((w|0)<(H|0))m=w;else break f}c[(z+(A<<3)&p)+4>>2]=w;t=(A|0)==(w|0)?t:0;v=(w|0)==(b[(B&o)>>1]|0)?A:v}else w=0;while(0);if((w|0)>=(H|0)){m=c[((c[(h&p)>>2]|0)+(A<<3)&p)>>2]|0;if(($h(m)|0)==0|D)break;else{t=0;w=A}}else w=v;A=A+1|0;if((A|0)>=(P|0)){E=w;break e}else v=w}c[(ca&p)>>2]=f;c[(ca&p)+4>>2]=0;c[(ca&p)+8>>2]=m;th(e,33368,ca);a[(e&n)+17>>0]=1;m=0;break a}else{t=1;E=-1}}else{t=1;E=-1}while(0);g:do if(!da){c[(O&p)>>2]=0;c[(O&p)+4>>2]=0;c[(O&p)+8>>2]=0;c[(O&p)+12>>2]=0;c[(O&p)+16>>2]=0;c[(O&p)+20>>2]=0;c[(O&p)+24>>2]=0;c[(O&p)+28>>2]=0;c[(O&p)>>2]=e;if(l){s=c[(l&p)>>2]|0;if((s|0)>0){u=l+4|0;t=0;while(1){if(ls(O,c[((c[(u&p)>>2]|0)+(t*20|0)&p)>>2]|0)|0){g=0;m=0;break a}t=t+1|0;if((t|0)>=(s|0)){u=0;t=-1;r=0;_=169;break}}}else{P=E;O=0;Q=-1;z=0}}else{P=E;s=0;O=0;Q=-1;z=0}}else{u=u+1|0;c[(R&p)>>2]=u;G=ma+32|0;v=c[(G&p)>>2]|0;wh(ma,20,u,0,v+1|0)|0;a[(L&n)>>0]=13;H=L+4|0;c[(H&p)>>2]=u;a[(L&n)+1>>0]=0;F=L+8|0;c[(F&p)>>2]=t<<24>>24!=0?T:0;c[(L&p)+12>>2]=b[(X&o)>>1];Q=ir(e,g,L)|0;F=c[(F&p)>>2]|0;if(Q){m=0;break a}if(a[(N&n)>>0]|0){m=0;break a}wh(ma,21,u,0,0)|0;u=c[(G&p)>>2]|0;if(u>>>0>v>>>0)c[((c[(ma&p)+4>>2]|0)+(v*20|0)&p)+8>>2]=u;I=ma+24|0;c[((c[(I&p)>>2]|0)&p)+88>>2]=u+-1;s=c[(c[(g&p)>>2]&p)>>2]|0;h:do if(!ea){w=Oq(e)|0;t=c[(w&p)+32>>2]|0;i:do if(!(a[(ga&n)>>0]&16))v=0;else{u=c[(e&p)>>2]|0;v=c[(ka&p)+60>>2]|0;if(!v){v=0;break}while(1){if((c[(v&p)>>2]|0)==(u|0))break i;v=c[(v&p)+24>>2]|0;if(!v){v=0;break}}}while(0);if((t|0)<=1){u=F;t=0;r=0;_=169;break g}q=(a[((c[(w&p)>>2]|0)&n)+65>>0]|0)==0;z=w+4|0;y=ka+32|0;x=ka+8|0;m=1;while(1){if(q)w=(c[(z&p)>>2]|0)+(m*20|0)|0;else w=29120;u=a[(w&n)>>0]|0;do if(u<<24>>24==54){if((c[(w&p)+12>>2]|0)!=(r|0))break;u=c[(w&p)+8>>2]|0;if((u|0)==(c[(y&p)>>2]|0))break h;w=c[(x&p)>>2]|0;if(!w)break;do{if((u|0)==(c[(w&p)+40>>2]|0))break h;w=c[(w&p)+20>>2]|0}while((w|0)!=0)}else if(u<<24>>24==-107?(c[(w&p)+16>>2]|0)==(v|0):0)break h;while(0);m=m+1|0;if((m|0)>=(t|0)){u=F;t=0;r=0;_=169;break g}}}while(0);v=e+68|0;w=c[(v&p)>>2]|0;c[(v&p)>>2]=w+1;v=e+19|0;t=a[(v&n)>>0]|0;do if(!(t<<24>>24)){u=(c[(R&p)>>2]|0)+1|0;c[(R&p)>>2]=u;_=159}else{Q=t+-1<<24>>24;a[(v&n)>>0]=Q;u=c[(e+((Q&255)<<2)&p)+24>>2]|0;if(!(Q<<24>>24)){_=159;break}Q=t+-2<<24>>24;a[(v&n)>>0]=Q;v=c[(e+((Q&255)<<2)&p)+24>>2]|0}while(0);if((_|0)==159){v=(c[(R&p)>>2]|0)+1|0;c[(R&p)>>2]=v}wh(ma,57,w,s,0)|0;r=wh(ma,22,c[(H&p)>>2]|0,0,0)|0;wh(ma,49,F,s,u)|0;wh(ma,74,w,v,0)|0;wh(ma,75,w,u,v)|0;wh(ma,16,0,r,0)|0;t=c[(G&p)>>2]|0;if(t>>>0>r>>>0)c[((c[(ma&p)+4>>2]|0)+(r*20|0)&p)+8>>2]=t;c[((c[(I&p)>>2]|0)&p)+88>>2]=t+-1;_r(e,u);_r(e,v);u=F;t=w;r=1;_=169}while(0);if((_|0)==169)if($&(s|0)>0){P=b[(ka&o)+36>>1]|0;O=u;Q=t;z=r}else{P=E;O=u;Q=t;z=r}if((a[(ga&n)>>0]&16)!=0?(M=b[(X&o)>>1]|0,M<<16>>16>0):0){v=c[(ka&p)+4>>2]|0;t=M<<16>>16;r=0;u=0;do{u=((d[(v+(r*24|0)&n)+23>>0]|0)>>>1&1)+u|0;r=r+1|0}while((r|0)<(t|0))}else u=0;do if($&(s|0)!=0){u=(b[(X&o)>>1]|0)-u|0;if((s|0)==(u|0))break;c[(ca&p)>>2]=f;c[(ca&p)+4>>2]=0;c[(ca&p)+8>>2]=u;c[(ca&p)+12>>2]=s;th(e,33400,ca);m=0;break a}while(0);do if(U){u=c[(h&p)+4>>2]|0;if((s|0)==(u|0))break;c[(ca&p)>>2]=s;c[(ca&p)+4>>2]=u;th(e,33456,ca);m=0;break a}while(0);K=na+24|0;if(!(c[(K&p)>>2]&128))q=0;else{q=(c[(R&p)>>2]|0)+1|0;c[(R&p)>>2]=q;wh(ma,25,0,q,0)|0}do if(ha)m=0;else{u=pt(e,ka,55,-1,0,ja,la)|0;m=mh(na,(u<<2)+4|0,0)|0;if(!m)break a;if((u|0)>0)t=0;else break;do{N=(c[(R&p)>>2]|0)+1|0;c[(R&p)>>2]=N;c[(m+(t<<2)&p)>>2]=N;t=t+1|0}while((t|0)!=(u|0))}while(0);M=z<<24>>24!=0;do if(M){N=wh(ma,108,Q,0,0)|0;L=c[(ma&p)+32>>2]|0}else{if(!da){L=0;N=0;break}N=wh(ma,22,c[(L&p)+4>>2]|0,0,0)|0;L=N}while(0);J=xs(ma)|0;do if(c[(Y&p)>>2]&1){w=(b[(X&o)>>1]|0)+1|0;H=e+60|0;v=c[(H&p)>>2]|0;G=e+56|0;u=c[(G&p)>>2]|0;if((u|0)<(w|0)){I=c[(R&p)>>2]|0;c[(R&p)>>2]=I+w;I=I+1|0}else{c[(H&p)>>2]=w+v;c[(G&p)>>2]=u-w;I=v}if((P|0)<0)wh(ma,25,-1,I,0)|0;else{if(M)wh(ma,47,Q,P,I)|0;else Rq(e,c[((c[(l&p)+4>>2]|0)+(P*20|0)&p)>>2]|0,I);w=wh(ma,77,I,0,0)|0;wh(ma,25,-1,I,0)|0;v=c[(ma&p)+32>>2]|0;if(v>>>0>w>>>0)c[((c[(ma&p)+4>>2]|0)+(w*20|0)&p)+8>>2]=v;c[((c[(ma&p)+24>>2]|0)&p)+88>>2]=v+-1;wh(ma,38,I,0,0)|0}v=b[(X&o)>>1]|0;if(v<<16>>16>0){D=M|(l|0)!=0;t=h+4|0;u=I+1|0;w=l+4|0;A=e+8|0;B=ka+4|0;C=0;do{j:do if($)z=C;else{y=c[(t&p)>>2]|0;if((y|0)<=0){z=0;break}x=c[(h&p)>>2]|0;r=0;while(1){z=r+1|0;if((c[(x+(r<<3)&p)+4>>2]|0)==(C|0)){z=r;break j}if((z|0)<(y|0))r=z;else break}}while(0);do if(D){if(U?(z|0)>=(c[(t&p)>>2]|0):0){_=213;break}if(M){wh(ma,47,Q,z,u+C|0)|0;break}else{Y=c[((c[(w&p)>>2]|0)+(z*20|0)&p)>>2]|0;r=u+C|0;x=c[(A&p)>>2]|0;Rq(e,Y,r);v=(c[(R&p)>>2]|0)+1|0;c[(R&p)>>2]=v;wh(x,33,r,v,0)|0;a[(Y&n)+38>>0]=a[(Y&n)>>0]|0;a[(Y&n)>>0]=-97;c[(Y&p)+28>>2]=v;Y=Y+4|0;c[(Y&p)>>2]=c[(Y&p)>>2]&-4097;break}}else _=213;while(0);if((_|0)==213){_=0;Rq(e,c[((c[(B&p)>>2]|0)+(C*24|0)&p)+4>>2]|0,u+C|0)}C=C+1|0;v=b[(X&o)>>1]|0}while((C|0)<(v<<16>>16|0))}if(!ha){wt(ma,ka,I+1|0);v=b[(X&o)>>1]|0}xt(e,ea,108,0,1,ka,I+-1-(v<<16>>16)|0,k,J);v=(b[(X&o)>>1]|0)+1|0;dt(e,I,v);if((c[(G&p)>>2]|0)>=(v|0))break;c[(G&p)>>2]=v;c[(H&p)>>2]=I}while(0);do if(!ha){if(a[(ga&n)>>0]&16)wh(ma,28,0,W,0)|0;k:do if((P|0)<=-1)if(!((a[(ga&n)>>0]&16|Z)<<24>>24)){wh(ma,74,c[(ja&p)>>2]|0,V,S)|0;I=1;break}else{wh(ma,28,0,V,0)|0;I=0;break}else{do if(M)wh(ma,47,Q,P,V)|0;else{if(da){wh(ma,33,P+O|0,V,0)|0;break}Rq(e,c[((c[(l&p)+4>>2]|0)+(P*20|0)&p)>>2]|0,V);if(!(a[((c[(ma&p)>>2]|0)&n)+65>>0]|0)){u=(c[(ma&p)+4>>2]|0)+(((c[(ma&p)+32>>2]|0)+-1|0)*20|0)|0;if(!u)break}else u=29120;if((a[(u&n)>>0]|0)!=28)break;if(a[(ga&n)>>0]&16)break;a[(u&n)>>0]=74;c[(u&p)+4>>2]=c[(ja&p)>>2];c[(u&p)+8>>2]=V;c[(u&p)+12>>2]=S;I=1;break k}while(0);if(!(a[(ga&n)>>0]&16)){u=wh(ma,77,V,0,0)|0;wh(ma,74,c[(ja&p)>>2]|0,V,S)|0;t=c[(ma&p)+32>>2]|0;if(t>>>0>u>>>0)c[((c[(ma&p)+4>>2]|0)+(u*20|0)&p)+8>>2]=t;c[((c[(ma&p)+24>>2]|0)&p)+88>>2]=t+-1}else wh(ma,76,V,(c[(ma&p)+32>>2]|0)+2|0,0)|0;wh(ma,38,V,0,0)|0;I=0}while(0);if((S|0)>0)wh(c[(e&p)+8>>2]|0,136,S,V,0)|0;if((b[(X&o)>>1]|0)>0){G=ka+36|0;H=ka+4|0;C=(s|0)==0;B=h+4|0;A=(O|0)==(T|0);s=l+4|0;t=e+23|0;u=ca+20|0;v=ca+4|0;E=ca+24|0;F=0;w=0;do{D=F+T|0;l:do if((F|0)==(b[(G&o)>>1]|0))wh(ma,29,D,0,0)|0;else{m:do if($)if(!(a[((c[(H&p)>>2]|0)+(F*24|0)&n)+23>>0]&2)){z=F-w|0;_=258;break}else{w=w+1|0;break}else{y=c[(B&p)>>2]|0;if((y|0)<=0){z=0;_=258;break}x=c[(h&p)>>2]|0;r=0;while(1){z=r+1|0;if((c[(x+(r<<3)&p)+4>>2]|0)==(F|0)){z=r;_=258;break m}if((z|0)<(y|0))r=z;else{_=258;break}}}while(0);do if((_|0)==258){_=0;if((z|0)<0|C)break;if(U?(z|0)>=(c[(B&p)>>2]|0):0)break;if(M){wh(ma,47,Q,z,D)|0;break l}if(!da){Rq(e,c[((c[(s&p)>>2]|0)+(z*20|0)&p)>>2]|0,D);break l}if(A)break l;wh(ma,34,z+O|0,D,0)|0;break l}while(0);z=c[((c[(H&p)>>2]|0)+(F*24|0)&p)+4>>2]|0;do if(a[(t&n)>>0]|0){c[(ca&p)>>2]=0;c[(ca&p)+4>>2]=0;c[(ca&p)+8>>2]=0;c[(ca&p)+12>>2]=0;c[(ca&p)+16>>2]=0;c[(ca&p)+20>>2]=0;a[(u&n)>>0]=1;c[(ca&p)>>2]=78;c[(v&p)>>2]=79;c[(E&p)>>2]=0;rs(ca,z)|0;if(!(a[(u&n)>>0]|0))break;Gt(e,z,D,0);break l}while(0);Rq(e,z,D)}while(0);F=F+1|0}while((F|0)<(b[(X&o)>>1]|0))}if(!(a[(ga&n)>>0]&16)){yt(e,ka,m,c[(ja&p)>>2]|0,c[(la&p)>>2]|0,W,0,P>>>31&255^1,k&255,J,ba);zt(e,ka,0,W,0,0);Bt(e,ka,c[(ja&p)>>2]|0,c[(la&p)>>2]|0,W,m,0,I,(c[(ba&p)>>2]|0)==0&1);break}u=c[(ka&p)+60>>2]|0;n:do if(!u)u=0;else while(1){if((c[(u&p)>>2]|0)==(na|0))break n;u=c[(u&p)+24>>2]|0;if(!u){u=0;break}}while(0);qt(e,ka);xh(ma,wh(ma,15,1,(b[(X&o)>>1]|0)+2|0,W)|0,u,-10);t=c[(ma&p)+4>>2]|0;if(t)a[(t+(((c[(ma&p)+32>>2]|0)+-1|0)*20|0)&n)+3>>0]=(k|0)==10?2:k&255;ca=c[(aa&p)>>2]|0;a[(((ca|0)==0?e:ca)&n)+21>>0]=1}while(0);if(c[(K&p)>>2]&128)wh(ma,37,q,1,0)|0;if(ea)xt(e,ea,108,0,2,ka,V+-1-(b[(X&o)>>1]|0)|0,k,J);u=ma+24|0;t=c[(u&p)>>2]|0;r=~J;do if((J|0)<0){s=c[(t&p)+112>>2]|0;if(!s)break;c[(s+(r<<2)&p)>>2]=c[(ma&p)+32>>2]}while(0);s=ma+32|0;c[(t&p)+88>>2]=(c[(s&p)>>2]|0)+-1;do if(M){wh(ma,9,Q,L,0)|0;s=c[(s&p)>>2]|0;if(s>>>0>N>>>0)c[((c[(ma&p)+4>>2]|0)+(N*20|0)&p)+8>>2]=s;c[((c[(u&p)>>2]|0)&p)+88>>2]=s+-1;wh(ma,61,Q,0,0)|0}else{if(!da)break;wh(ma,16,0,L,0)|0;s=c[(s&p)>>2]|0;if(s>>>0>N>>>0)c[((c[(ma&p)+4>>2]|0)+(N*20|0)&p)+8>>2]=s;c[((c[(u&p)>>2]|0)&p)+88>>2]=s+-1}while(0);if((a[(ga&n)>>0]&16)!=0|ha)break;r=c[(ja&p)>>2]|0;if((r|0)<(c[(la&p)>>2]|0))wh(ma,61,r,0,0)|0;r=c[(ka&p)+8>>2]|0;if(!r)break;else s=0;while(1){wh(ma,61,(c[(la&p)>>2]|0)+s|0,0,0)|0;r=c[(r&p)+20>>2]|0;if(!r)break;else s=s+1|0}}while(0);if((a[(ia&n)>>0]|0)==0?(c[(e&p)+412>>2]|0)==0:0)st(e);if((((c[(na&p)+24>>2]&128|0)!=0?(a[(ia&n)>>0]|0)==0:0)?(c[(e&p)+412>>2]|0)==0:0)?(wh(ma,35,q,1,0)|0,iq(ma,1),(a[((c[(ma&p)>>2]|0)&n)+65>>0]|0)==0):0)Xg(c[(ma&p)+16>>2]|0,33488,-1,1,0)|0}else m=0}else m=0}else{m=0;l=0}while(0);Do(na,f);Nk(na,l);Mk(na,g,1);Hk(na,h);mg(na,m);i=oa;return}function ur(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0;h=i;i=i+16|0;if((i|0)>=(j|0))fa();f=h;if(!d){d=mh(b,8,0)|0;if(!d)d=0;else{g=d;k=g;a[(k&n)>>0]=0;a[(k&n)+1>>0]=0;a[(k&n)+2>>0]=0;a[(k&n)+3>>0]=0;g=g+4|0;a[(g&n)>>0]=0;a[(g&n)+1>>0]=0;a[(g&n)+2>>0]=0;a[(g&n)+3>>0]=0;g=4}}else g=4;do if((g|0)==4){c[(d&p)>>2]=Ht(b,c[(d&p)>>2]|0,8,d+4|0,f)|0;f=c[(f&p)>>2]|0;if((f|0)<0){Hk(b,d);d=0;break}else{b=Wq(b,e)|0;c[((c[(d&p)>>2]|0)+(f<<3)&p)>>2]=b;break}}while(0);i=h;return d|0}function vr(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0;if((c[(d&p)+4>>2]|0)!=0?(f=nr(c[(a&p)>>2]|0,95,d,e)|0,(f|0)!=0):0){c[(f&p)+12>>2]=b;b=f+4|0;c[(b&p)>>2]=c[(b&p)>>2]|4352;b=f}return b|0}function wr(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;e=c[(a&p)>>2]|0;d=nr(e,153,d,1)|0;if(!d){Nk(e,b);d=0}else{c[(d&p)+20>>2]=b;yr(a,d)}return d|0}function xr(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;b=c[(b&p)>>2]|0;if((d|0)!=0&(e|0)!=0?(a[(d&n)>>0]|0)==101:0){a[(e&n)>>0]=f;f=e+16|0;Gk(b,c[(f&p)>>2]|0);c[(f&p)>>2]=0}return}function yr(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;f=i;i=i+16|0;if((i|0)>=(j|0))fa();e=f;if((c[(a&p)+64>>2]|0)==0?(It(b),d=c[((c[(a&p)>>2]|0)&p)+100>>2]|0,(d|0)<(c[(b&p)+24>>2]|0)):0){c[(e&p)>>2]=d;th(a,27152,e)}i=f;return}function zr(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,i=0;d=c[(a&p)>>2]|0;i=d+20|0;e=c[(i&p)>>2]|0;if((e|0)>0){g=d+16|0;h=(b|0)==0;d=e;f=0;do{e=c[(g&p)>>2]|0;do if(c[(e+(f<<4)&p)+4>>2]|0){if(!h?(dd(b,c[(e+(f<<4)&p)>>2]|0)|0)!=0:0)break;Ar(a,f);d=c[(i&p)>>2]|0}while(0);f=f+1|0}while((f|0)<(d|0))}return}function Ar(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;f=c[(a&p)+408>>2]|0;f=(f|0)==0?a:f;a=f+332|0;d=c[(a&p)>>2]|0;e=1<>2]|0,c[(a&p)>>2]=d|e,c[(f+(b<<2)&p)+336>>2]=c[(c[((c[(g&p)+16>>2]|0)+(b<<4)&p)+12>>2]&p)>>2],(b|0)==1):0)_k(f)|0;return}function Br(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,o=0,q=0;q=i;i=i+128|0;if((i|0)>=(j|0))fa();f=q+8|0;o=q;m=q+24|0;c[(o&p)>>2]=0;k=c[(b&p)>>2]|0;if((c[(b&p)+64>>2]|0)==0?(c[(f&p)>>2]=e,l=Wk(k,d,f)|0,(l|0)!=0):0){d=b+18|0;a[(d&n)>>0]=(a[(d&n)>>0]|0)+1<<24>>24;e=b+440|0;f=m+0|0;g=e+0|0;h=f+96|0;do{a[(f&n)>>0]=a[(g&n)>>0]|0;f=f+1|0;g=g+1|0}while((f|0)<(h|0));f=e+0|0;h=f+96|0;do{c[(f&p)>>2]=0;f=f+4|0}while((f|0)<(h|0));Lh(b,l,o)|0;mg(k,c[(o&p)>>2]|0);mg(k,l);f=e+0|0;g=m+0|0;h=f+96|0;do{a[(f&n)>>0]=a[(g&n)>>0]|0;f=f+1|0;g=g+1|0}while((f|0)<(h|0));a[(d&n)>>0]=(a[(d&n)>>0]|0)+-1<<24>>24}i=q;return}function Cr(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0;k=i;i=i+48|0;if((i|0)>=(j|0))fa();g=k;h=k+16|0;b=c[((c[((c[(a&p)>>2]|0)&p)+16>>2]|0)+(b<<4)&p)>>2]|0;f=1;do{c[(g&p)>>2]=f;ad(24,h,33272,g)|0;if(_h(c[(a&p)>>2]|0,h,b)|0){c[(g&p)>>2]=b;c[(g&p)+4>>2]=h;c[(g&p)+8>>2]=d;c[(g&p)+12>>2]=e;Br(a,28840,g)}f=f+1|0}while((f|0)!=5);i=k;return}function Dr(b,d){b=b|0;d=d|0;var e=0,f=0;e=b+19|0;f=a[(e&n)>>0]|0;if(!(f<<24>>24)){f=b+72|0;e=(c[(f&p)>>2]|0)+1|0;c[(f&p)>>2]=e}else{f=f+-1<<24>>24;a[(e&n)>>0]=f;e=c[(b+((f&255)<<2)&p)+24>>2]|0}f=c[(b&p)+8>>2]|0;wh(f,25,(c[(c[((c[((c[(b&p)>>2]|0)&p)+16>>2]|0)+(d<<4)&p)+12>>2]&p)>>2]|0)+1|0,e,0)|0;wh(f,52,d,1,e)|0;_r(b,e);return}function Er(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0;l=i;i=i+32|0;if((i|0)>=(j|0))fa();k=l;h=Oq(b)|0;f=b+19|0;g=a[(f&n)>>0]|0;if(!(g<<24>>24)){g=b+72|0;f=(c[(g&p)>>2]|0)+1|0;c[(g&p)>>2]=f}else{g=g+-1<<24>>24;a[(f&n)>>0]=g;f=c[(b+((g&255)<<2)&p)+24>>2]|0}wh(h,117,d,f,e)|0;g=c[(b&p)+408>>2]|0;a[(((g|0)==0?b:g)&n)+21>>0]=1;c[(k&p)>>2]=c[((c[((c[(b&p)>>2]|0)&p)+16>>2]|0)+(e<<4)&p)>>2];c[(k&p)+4>>2]=(e|0)==1?13184:13208;c[(k&p)+8>>2]=d;c[(k&p)+12>>2]=f;c[(k&p)+16>>2]=f;Br(b,33216,k);_r(b,f);i=l;return}function Fr(f,g,h,k,l){f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;var m=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;X=i;i=i+96|0;if((i|0)>=(j|0))fa();G=X+24|0;w=X+80|0;q=X+64|0;A=X+16|0;t=X+60|0;u=X+56|0;O=X+52|0;N=X+48|0;z=X+44|0;D=X+40|0;E=X+36|0;F=X+32|0;x=X+8|0;s=X;W=c[(f&p)>>2]|0;T=Oq(f)|0;do if((T|0)!=0?(S=T+88|0,b[(S&o)>>1]=b[(S&o)>>1]|16,S=f+72|0,c[(S&p)>>2]=2,Q=er(f,g,h,w)|0,(Q|0)>=0):0){R=W+16|0;C=c[(R&p)>>2]|0;if((Q|0)==1?(_k(f)|0)!=0:0)break;V=Wq(W,c[(w&p)>>2]|0)|0;if(V){if(!l)U=Wq(W,k)|0;else{c[(G&p)>>2]=k;U=uh(W,30104,G)|0}B=h+4|0;if(!(c[(B&p)>>2]|0))L=0;else L=c[(C+(Q<<4)&p)>>2]|0;a:do if(!(Sq(f,19,V,U,L)|0)){c[(q&p)>>2]=0;c[(q&p)+4>>2]=V;c[(q&p)+8>>2]=U;c[(q&p)+12>>2]=0;r=W+452|0;c[(r&p)>>2]=0;g=cg(W,L,14,q)|0;if(!g){k=c[(q&p)>>2]|0;if(!k)break;m=(c[(S&p)>>2]|0)+1|0;c[(S&p)>>2]=m;xh(T,wh(T,97,0,m,0)|0,k,0);iq(T,1);if(!(a[((c[(T&p)>>2]|0)&n)+65>>0]|0))Xg(c[(T&p)+16>>2]|0,30112,-1,1,0)|0;wh(T,35,m,1,0)|0;Wc(c[(q&p)>>2]|0);break}else if((g|0)==12){w=0;q=56;b:while(1){while(1){l=(w+q|0)/2|0;g=c[((l*12|0)&p)+30120>>2]|0;k=dd(V,g)|0;if(!k){w=l;break b}if((k|0)<0){g=l;break}if((l|0)<(q|0))w=l+1|0;else break a}g=g+-1|0;if((w|0)>(g|0))break a;else q=g}if((a[((w*12|0)&n)+30125>>0]&1)!=0?(Gn(f)|0)!=0:0)break;do switch(d[((w*12|0)&n)+30124>>0]|0){case 10:{q=1<>2]=c[(F&p)>>2]|q;if(U){c[(G&p)>>2]=0;Dn(U,G)|0;k=c[(G&p)>>2]|0;if((k|0)<=-1)k=(k|0)==-2147483648?2147483647:0-k|0;G=c[(f&p)+408>>2]|0;Ar(f,Q);G=((G|0)==0?f:G)+328|0;c[(G&p)>>2]=c[(G&p)>>2]|q;wh(T,25,k,1,0)|0;wh(T,52,Q,3,1)|0;c[((c[(C+(Q<<4)&p)+12>>2]|0)&p)+80>>2]=k;pq(c[(C+(Q<<4)&p)+4>>2]|0,k);break a}iq(T,1);if(!(a[((c[(T&p)>>2]|0)&n)+65>>0]|0))Xg(c[(T&p)+16>>2]|0,30848,-1,1,0)|0;c[(S&p)>>2]=(c[(S&p)>>2]|0)+2;k=yh(T,9,30808)|0;l=c[(T&p)+32>>2]|0;if(l>>>0>k>>>0)c[((c[(T&p)+4>>2]|0)+(k*20|0)&p)+4>>2]=Q;m=k+1|0;if(l>>>0>m>>>0)c[((c[(T&p)+4>>2]|0)+(m*20|0)&p)+4>>2]=Q;m=k+6|0;if(l>>>0<=m>>>0)break a;c[((c[(T&p)+4>>2]|0)+(m*20|0)&p)+4>>2]=2e3;break a}case 19:{k=c[(c[((c[(C+(Q<<4)&p)+4>>2]|0)&p)+4>>2]&p)>>2]|0;G=A;c[(G&p)>>2]=-2;c[(G&p)+4>>2]=-1;if(U){ji(U,A)|0;m=A;l=c[(m&p)>>2]|0;m=c[(m&p)+4>>2]|0;if((m|0)<-1|(m|0)==-1&l>>>0<4294967295){l=A;c[(l&p)>>2]=-1;c[(l&p)+4>>2]=-1;l=-1;m=-1}G=k+160|0;c[(G&p)>>2]=l;c[(G&p)+4>>2]=m;k=c[(k&p)+208>>2]|0;if(k){G=k+16|0;c[(G&p)>>2]=l;c[(G&p)+4>>2]=m}}else{m=k+160|0;l=c[(m&p)>>2]|0;m=c[(m&p)+4>>2]|0}G=A;c[(G&p)>>2]=l;c[(G&p)+4>>2]=m;Jt(f,30952,l,m);break a}case 28:{q=Oq(f)|0;iq(q,4);c[(S&p)>>2]=4;Ar(f,Q);if((((a[((c[(q&p)>>2]|0)&n)+65>>0]|0)==0?(Xg(c[(q&p)+16>>2]|0,31232,-1,1,0)|0,(a[((c[(q&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(q&p)+16>>2]|0)+40|0,20632,-1,1,0)|0,(a[((c[(q&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(q&p)+16>>2]|0)+80|0,31240,-1,1,0)|0,(a[((c[(q&p)>>2]|0)&n)+65>>0]|0)==0):0)Xg((c[(q&p)+16>>2]|0)+120|0,31248,-1,1,0)|0;l=c[((c[(C+(Q<<4)&p)+12>>2]|0)&p)+16>>2]|0;if(!l)break a;do{m=c[(l&p)+8>>2]|0;G=c[(m&p)>>2]|0;xh(q,wh(q,97,0,1,0)|0,G,0);wh(q,28,0,2,0)|0;G=Ws(b[(m&o)+42>>1]|0)|0;wh(q,25,G,3,0)|0;G=Ws(b[(m&o)+28>>1]|0)|0;wh(q,25,G,4,0)|0;wh(q,35,1,4,0)|0;m=c[(m&p)+8>>2]|0;if(m)do{G=c[(m&p)>>2]|0;xh(q,wh(q,97,0,2,0)|0,G,0);G=Ws(b[(m&o)+44>>1]|0)|0;wh(q,25,G,3,0)|0;G=Ws(b[(c[(m&p)+8>>2]&o)>>1]|0)|0;wh(q,25,G,4,0)|0;wh(q,35,1,4,0)|0;m=c[(m&p)+20>>2]|0}while((m|0)!=0);l=c[(l&p)>>2]|0}while((l|0)!=0);break}case 15:{if(!U)break a;s=bq(W,U,L)|0;if(!s)break a;w=(c[((w*12|0)&p)+30128>>2]|0)==0;t=s+46|0;G=w?3:6;r=b[((w?t:s+48|0)&o)>>1]|0;u=r&65535;c[(S&p)>>2]=G;q=c[(s&p)+12>>2]|0;iq(T,G);Ar(f,Q);if(((a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0?(Xg(c[(T&p)+16>>2]|0,31256,-1,1,0)|0,(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(T&p)+16>>2]|0)+40|0,31176,-1,1,0)|0,(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0):0)Xg((c[(T&p)+16>>2]|0)+80|0,31184,-1,1,0)|0;if(((!w?(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0:0)?(Xg((c[(T&p)+16>>2]|0)+120|0,31264,-1,1,0)|0,(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(T&p)+16>>2]|0)+160|0,31272,-1,1,0)|0,(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0):0)Xg((c[(T&p)+16>>2]|0)+200|0,31280,-1,1,0)|0;if(!(r<<16>>16))break a;m=s+4|0;l=s+28|0;k=s+32|0;s=q+4|0;q=0;do{G=b[((c[(m&p)>>2]|0)+(q<<1)&o)>>1]|0;wh(T,25,q,1,0)|0;r=G<<16>>16;wh(T,25,r,2,0)|0;if(G<<16>>16<0)wh(T,28,0,3,0)|0;else{G=c[((c[(s&p)>>2]|0)+(r*24|0)&p)>>2]|0;xh(T,wh(T,97,0,3,0)|0,G,0)}if(!w){wh(T,25,d[((c[(l&p)>>2]|0)+q&n)>>0]|0,4,0)|0;G=c[((c[(k&p)>>2]|0)+(q<<2)&p)>>2]|0;xh(T,wh(T,97,0,5,0)|0,G,0);wh(T,25,(q|0)<(e[(t&o)>>1]|0)&1,6,0)|0}wh(T,35,1,c[(S&p)>>2]|0,0)|0;q=q+1|0}while((q|0)<(u|0));break}case 22:{Ar(f,Q);k=(c[(S&p)>>2]|0)+1|0;c[(S&p)>>2]=k;if((a[(V&n)>>0]&-33)<<24>>24==80)wh(T,153,Q,k,0)|0;else{c[(G&p)>>2]=0;if(U){Dn(U,G)|0;m=c[(G&p)>>2]|0;if((m|0)<=-1)m=(m|0)==-2147483648?2147483647:0-m|0}else m=0;wh(T,154,Q,k,m)|0}wh(T,35,k,1,0)|0;iq(T,1);if(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)break a;Xg(c[(T&p)+16>>2]|0,V,-1,1,-1)|0;break a}case 24:{l=c[(C+(Q<<4)&p)+4>>2]|0;if(U){c[(G&p)>>2]=0;Dn(U,G)|0;G=c[(G&p)>>2]|0;c[(W&p)+72>>2]=G;if((xg(l,G,-1,0)|0)!=7)break a;a[(W&n)+65>>0]=1;break a}if(!l){l=0;m=0}else{m=c[((c[(l&p)+4>>2]|0)&p)+32>>2]|0;l=m;m=((m|0)<0)<<31>>31}Jt(f,30864,l,m);break a}case 25:{l=c[(C+(Q<<4)&p)+4>>2]|0;if(U){m=(ii(U,1,0)|0)<<24>>24!=0&1;if((c[(B&p)>>2]|0)==0?(y=W+20|0,(c[(y&p)>>2]|0)>0):0){k=0;do{so(c[((c[(R&p)>>2]|0)+(k<<4)&p)+4>>2]|0,m)|0;k=k+1|0}while((k|0)<(c[(y&p)>>2]|0))}}else m=-1;G=so(l,m)|0;Jt(f,30880,G,((G|0)<0)<<31>>31);break a}case 18:{iq(T,1);if(!(a[((c[(T&p)>>2]|0)&n)+65>>0]|0))Xg(c[(T&p)+16>>2]|0,30936,-1,1,0)|0;c:do if(U){k=U;while(1)if(!(a[(k&n)>>0]|0))break;else k=k+1|0;m=k-U&1073741823;k=0;while(1){if(!(Fc(U,c[(k<<2&p)+32216>>2]|0,m)|0))break;k=k+1|0;if((k|0)==6){P=91;break c}}if((k|0)!=-1)q=Q;else P=91}else P=91;while(0);if((P|0)==91)if(!(c[(B&p)>>2]|0)){c[(B&p)>>2]=1;k=-1;q=0}else{k=-1;q=Q}m=c[(W&p)+20>>2]|0;if((m|0)>0){l=T+96|0;do{m=m+-1|0;do if(c[((c[(R&p)>>2]|0)+(m<<4)&p)+4>>2]|0){if((m|0)!=(q|0)?(c[(B&p)>>2]|0)!=0:0)break;c[(l&p)>>2]=c[(l&p)>>2]|1<0)}wh(T,35,1,1,0)|0;break a}case 32:{if(!U){if(!(c[2708]|0))break a;iq(T,1);if(!(a[((c[(T&p)>>2]|0)&n)+65>>0]|0))Xg(c[(T&p)+16>>2]|0,31048,-1,1,0)|0;G=c[2708]|0;xh(T,wh(T,97,0,1,0)|0,G,0);wh(T,35,1,1,0)|0;break a}if((a[(U&n)>>0]|0)!=0?(F=c[(W&p)>>2]|0,F=(pc[c[(F&p)+32>>2]&31](F,U,1,u)|0)!=0,F|(c[(u&p)>>2]|0)==0):0){th(f,31072,G);break a}if((d[(W&n)+64>>0]|0)<2)Kt(f)|0;Wc(c[2708]|0);if(!(a[(U&n)>>0]|0)){c[2708]=0;break a}else{c[(G&p)>>2]=U;c[2708]=_c(10344,G)|0;break a}}case 14:{if(!((U|0)!=0?(G=(Dn(U,t)|0)==0,m=c[(t&p)>>2]|0,!(G|(m|0)<1)):0)){c[(t&p)>>2]=2147483647;m=2147483647}l=c[(f&p)+408>>2]|0;Ar(f,Q);l=((l|0)==0?f:l)+328|0;c[(l&p)>>2]=c[(l&p)>>2]|1<>2]|0;if(l>>>0>m>>>0)c[((c[(T&p)+4>>2]|0)+(m*20|0)&p)+8>>2]=l;c[((c[(T&p)+24>>2]|0)&p)+88>>2]=l+-1;break a}case 30:{if(!U)break a;h=_h(W,U,L)|0;if(!h)break a;k=c[(h&p)+8>>2]|0;d:do if(!k)k=0;else while(1){if((a[(k&n)+51>>0]&3)==2)break d;k=c[(k&p)+20>>2]|0;if(!k){k=0;break}}while(0);iq(T,6);c[(S&p)>>2]=6;Ar(f,Q);do if((((a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0?(Xg(c[(T&p)+16>>2]|0,31176,-1,1,0)|0,(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(T&p)+16>>2]|0)+40|0,31184,-1,1,0)|0,(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(T&p)+16>>2]|0)+80|0,31192,-1,1,0)|0,(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0):0){Xg((c[(T&p)+16>>2]|0)+120|0,31200,-1,1,0)|0;if(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)break;Xg((c[(T&p)+16>>2]|0)+160|0,31208,-1,1,0)|0;if(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)break;Xg((c[(T&p)+16>>2]|0)+200|0,31224,-1,1,0)|0}while(0);hr(f,h)|0;t=h+38|0;m=b[(t&o)>>1]|0;if(m<<16>>16<=0)break a;u=(k|0)==0;l=k+4|0;w=0;r=0;g=c[(h&p)+4>>2]|0;while(1){s=g+23|0;if(!(a[(s&n)>>0]&2)){wh(T,25,w-r|0,1,0)|0;q=c[(g&p)>>2]|0;xh(T,wh(T,97,0,2,0)|0,q,0);q=c[(g&p)+12>>2]|0;xh(T,wh(T,97,0,3,0)|0,(q|0)==0?10360:q,0);wh(T,25,(a[(g&n)+20>>0]|0)!=0&1,4,0)|0;q=c[(g&p)+8>>2]|0;if(!q)wh(T,28,0,5,0)|0;else xh(T,wh(T,97,0,5,0)|0,q,0);k=a[(s&n)>>0]&1;e:do if(k<<24>>24==0|u)q=(k^1)&255^1;else{q=b[(t&o)>>1]|0;if(q<<16>>16<1){q=1;break}m=c[(l&p)>>2]|0;s=q<<16>>16;k=1;while(1){q=k+1|0;if((b[(m+(k+-1<<1)&o)>>1]|0)==(w|0)){q=k;break e}if((k|0)<(s|0))k=q;else break}}while(0);wh(T,25,q,6,0)|0;wh(T,35,1,6,0)|0;m=b[(t&o)>>1]|0}else r=r+1|0;w=w+1|0;if((w|0)>=(m<<16>>16|0))break;else g=g+24|0}break}case 2:{if(!U){Jt(f,g,(c[((w*12|0)&p)+30128>>2]&c[(W&p)+24>>2]|0)!=0&1,0);break a}l=c[((w*12|0)&p)+30128>>2]|0;l=(a[(W&n)+63>>0]|0)==0?l&-524289:l;if(!((ii(U,1,0)|0)<<24>>24)){G=W+24|0;c[(G&p)>>2]=c[(G&p)>>2]&~l;if((l|0)==16777216){G=W+512|0;c[(G&p)>>2]=0;c[(G&p)+4>>2]=0}}else{G=W+24|0;c[(G&p)>>2]=c[(G&p)>>2]|l}wh(T,144,0,0,0)|0;Lt(W);break a}case 5:{if(!U)break a;G=(ii(U,1,0)|0)<<24>>24!=0;F=G?32e3:19240;Qh(W,19248,2,1,F,40,0,0,0)|0;Qh(W,19248,3,1,F,40,0,0,0)|0;Qh(W,19232,2,1,10352,40,0,0,0)|0;Ot(W,19232,12);Ot(W,19248,G?12:4);break a}case 17:{g=a[(V&n)>>0]|0;A=(c[(h&p)>>2]|0)==0?-1:Q;c[(S&p)>>2]=6;iq(T,1);if(!(a[((c[(T&p)>>2]|0)&n)+65>>0]|0))Xg(c[(T&p)+16>>2]|0,31464,-1,1,0)|0;c[(z&p)>>2]=100;if(U){Dn(U,z)|0;s=c[(z&p)>>2]|0;if((s|0)<1){c[(z&p)>>2]=100;s=100}}else s=100;wh(T,25,s,1,0)|0;M=W+20|0;w=c[(M&p)>>2]|0;if((w|0)>0){L=(A|0)<0;m=T+32|0;I=T+4|0;H=T+24|0;N=(g&-33)<<24>>24==81;O=0;do{if(L|(O|0)==(A|0)){Ar(f,O);w=wh(T,137,1,0,0)|0;wh(T,24,0,0,0)|0;l=c[(m&p)>>2]|0;if(l>>>0>w>>>0)c[((c[(I&p)>>2]|0)+(w*20|0)&p)+8>>2]=l;c[((c[(H&p)>>2]|0)&p)+88>>2]=l+-1;k=(c[((c[(R&p)>>2]|0)+(O<<4)&p)+12>>2]|0)+16|0;w=c[(k&p)>>2]|0;if(!w)g=0;else{g=0;do{l=c[(w&p)+8>>2]|0;if(!(a[(l&n)+44>>0]&32)){wh(T,25,c[(l&p)+32>>2]|0,g+2|0,0)|0;g=g+1|0}l=c[(l&p)+8>>2]|0;if(l)do{wh(T,25,c[(l&p)+40>>2]|0,g+2|0,0)|0;g=g+1|0;l=c[(l&p)+20>>2]|0}while((l|0)!=0);w=c[(w&p)>>2]|0}while((w|0)!=0)}C=c[(S&p)>>2]|0;w=g+8|0;c[(S&p)>>2]=(C|0)>(w|0)?C:w;wh(T,127,2,g,1)|0;w=c[(I&p)>>2]|0;if(w)a[(w+(((c[(m&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=O;g=wh(T,76,2,0,0)|0;c[(G&p)>>2]=c[((c[(R&p)>>2]|0)+(O<<4)&p)>>2];w=uh(W,31480,G)|0;xh(T,wh(T,97,0,3,0)|0,w,-1);wh(T,32,2,4,1)|0;wh(T,94,4,3,2)|0;wh(T,35,2,1,0)|0;w=c[(m&p)>>2]|0;if(w>>>0>g>>>0)c[((c[(I&p)>>2]|0)+(g*20|0)&p)+8>>2]=w;c[((c[(H&p)>>2]|0)&p)+88>>2]=w+-1;w=c[(k&p)>>2]|0;if(!((w|0)==0|N))do{x=c[(w&p)+8>>2]|0;J=x+8|0;g=c[(J&p)>>2]|0;do if(g){f:do if(!(a[(x&n)+44>>0]&32))g=0;else while(1){if((a[(g&n)+51>>0]&3)==2)break f;g=c[(g&p)+20>>2]|0;if(!g){g=0;break}}while(0);l=wh(T,137,1,0,0)|0;wh(T,24,0,0,0)|0;k=c[(m&p)>>2]|0;if(k>>>0>l>>>0)c[((c[(I&p)>>2]|0)+(l*20|0)&p)+8>>2]=k;c[((c[(H&p)>>2]|0)&p)+88>>2]=k+-1;at(f);pt(f,x,54,1,0,D,E)|0;wh(T,25,0,7,0)|0;k=c[(J&p)>>2]|0;if(!k)l=8;else{l=0;while(1){wh(T,25,0,l+8|0,0)|0;k=c[(k&p)+20>>2]|0;if(!k)break;else l=l+1|0}l=l+9|0}K=c[(S&p)>>2]|0;c[(S&p)>>2]=(K|0)>(l|0)?K:l;wh(T,108,c[(D&p)>>2]|0,0,0)|0;K=wh(T,37,7,1,0)|0;u=x+38|0;l=b[(u&o)>>1]|0;if(l<<16>>16>0){h=x+36|0;v=x+4|0;t=0;do{do if((t|0)!=(b[(h&o)>>1]|0)){if(!(a[((c[(v&p)>>2]|0)+(t*24|0)&n)+20>>0]|0))break;nt(T,x,c[(D&p)>>2]|0,t,3);l=c[(I&p)>>2]|0;if(l)a[(l+(((c[(m&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=-128;l=wh(T,77,3,0,0)|0;wh(T,37,1,-1,0)|0;q=c[((c[(v&p)>>2]|0)+(t*24|0)&p)>>2]|0;c[(G&p)>>2]=c[(x&p)>>2];c[(G&p)+4>>2]=q;q=uh(W,31504,G)|0;xh(T,wh(T,97,0,3,0)|0,q,-1);wh(T,35,3,1,0)|0;q=wh(T,137,1,0,0)|0;wh(T,24,0,0,0)|0;r=c[(m&p)>>2]|0;if(r>>>0>l>>>0)c[((c[(I&p)>>2]|0)+(l*20|0)&p)+8>>2]=r;l=r+-1|0;k=(c[(H&p)>>2]|0)+88|0;c[(k&p)>>2]=l;if(r>>>0>q>>>0)c[((c[(I&p)>>2]|0)+(q*20|0)&p)+8>>2]=r;c[(k&p)>>2]=l;l=b[(u&o)>>1]|0}while(0);t=t+1|0}while((t|0)<(l<<16>>16|0))}l=c[(J&p)>>2]|0;if(l){z=x+4|0;y=0;r=0;k=-1;while(1){q=xs(T)|0;if((g|0)!=(l|0)){k=Pt(f,l,c[(D&p)>>2]|0,0,0,F,r,k)|0;wh(T,37,y+8|0,1,0)|0;x=e[(l&o)+48>>1]|0;q=wh(T,69,(c[(E&p)>>2]|0)+y|0,q,k)|0;xh(T,q,x,-14);wh(T,37,1,-1,0)|0;xh(T,wh(T,97,0,3,0)|0,31528,-2);wh(T,94,7,3,3)|0;xh(T,wh(T,97,0,4,0)|0,31536,-2);wh(T,94,4,3,3)|0;x=c[(l&p)>>2]|0;v=wh(T,97,0,4,0)|0;xh(T,v,x,0);wh(T,94,4,3,3)|0;wh(T,35,3,1,0)|0;x=wh(T,137,1,0,0)|0;wh(T,24,0,0,0)|0;r=c[(m&p)>>2]|0;if(r>>>0>q>>>0)c[((c[(I&p)>>2]|0)+(q*20|0)&p)+8>>2]=r;q=c[(H&p)>>2]|0;c[(q&p)+88>>2]=r+-1;if(a[(l&n)+50>>0]|0){h=xs(T)|0;u=l+46|0;q=b[(u&o)>>1]|0;if(q<<16>>16){t=l+4|0;r=0;do{if(!(a[((c[(z&p)>>2]|0)+((b[((c[(t&p)>>2]|0)+(r<<1)&o)>>1]|0)*24|0)&n)+20>>0]|0)){wh(T,76,r+k|0,h,0)|0;q=b[(u&o)>>1]|0}r=r+1|0}while((r|0)<(q&65535|0))}q=wh(T,9,(c[(E&p)>>2]|0)+y|0,0,0)|0;wh(T,16,0,h,0)|0;r=c[(m&p)>>2]|0;if(r>>>0>q>>>0)c[((c[(I&p)>>2]|0)+(q*20|0)&p)+8>>2]=r;c[((c[(H&p)>>2]|0)&p)+88>>2]=r+-1;q=e[(u&o)>>1]|0;xh(T,wh(T,114,(c[(E&p)>>2]|0)+y|0,h,k)|0,q,-14);wh(T,37,1,-1,0)|0;xh(T,wh(T,97,0,3,0)|0,31560,-2);wh(T,16,0,v,0)|0;q=c[(H&p)>>2]|0;t=~h;do if((h|0)<0){r=c[(q&p)+112>>2]|0;if(!r)break;c[(r+(t<<2)&p)>>2]=c[(m&p)>>2]}while(0);r=c[(m&p)>>2]|0;c[(q&p)+88>>2]=r+-1}if(r>>>0>x>>>0)c[((c[(I&p)>>2]|0)+(x*20|0)&p)+8>>2]=r;c[(q&p)+88>>2]=r+-1;Qt(f,c[(F&p)>>2]|0);r=l}l=c[(l&p)+20>>2]|0;if(!l)break;else y=y+1|0}}wh(T,9,c[(D&p)>>2]|0,K,0)|0;l=K+-1|0;k=c[(m&p)>>2]|0;if(k>>>0>l>>>0)c[((c[(I&p)>>2]|0)+(l*20|0)&p)+8>>2]=k;c[((c[(H&p)>>2]|0)&p)+88>>2]=k+-1;xh(T,wh(T,97,0,2,0)|0,31592,-2);l=c[(J&p)>>2]|0;if(!l)break;else q=0;while(1){if((g|0)!=(l|0)){k=c[(m&p)>>2]|0;wh(T,137,1,k+2|0,0)|0;wh(T,24,0,0,0)|0;wh(T,50,(c[(E&p)>>2]|0)+q|0,3,0)|0;wh(T,79,q+8|0,k+8|0,3)|0;k=c[(I&p)>>2]|0;if(k)a[(k+(((c[(m&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=-112;wh(T,37,1,-1,0)|0;C=c[(l&p)>>2]|0;xh(T,wh(T,97,0,3,0)|0,C,0);wh(T,94,3,2,7)|0;wh(T,35,7,1,0)|0}l=c[(l&p)+20>>2]|0;if(!l)break;else q=q+1|0}}while(0);w=c[(w&p)>>2]|0}while((w|0)!=0);w=c[(M&p)>>2]|0}O=O+1|0}while((O|0)<(w|0))}else m=T+32|0;l=yh(T,3,31448)|0;m=c[(m&p)>>2]|0;if(m>>>0>l>>>0){c[((c[(T&p)+4>>2]|0)+(l*20|0)&p)+12>>2]=0-s;c[((c[(T&p)+4>>2]|0)+(l*20|0)&p)+8>>2]=m}c[((c[(T&p)+24>>2]|0)&p)+88>>2]=m+-1;xh(T,l+1|0,31624,-2);break a}case 21:{do if(U){if(dd(U,30904)|0)if(!(dd(U,30896)|0))k=0;else{P=66;break}else k=1;if(!(c[(B&p)>>2]|0)){s=c[(W&p)+20>>2]|0;if((s|0)>2){q=c[(R&p)>>2]|0;m=k&255;r=2;do{l=c[(c[((c[(q+(r<<4)&p)+4>>2]|0)&p)+4>>2]&p)>>2]|0;do if(!(a[(l&n)+12>>0]|0)){G=c[(l&p)+208>>2]|0;if((G|0)!=0?(a[(G&n)+43>>0]|0)==2:0)break;a[(l&n)+4>>0]=m}while(0);r=r+1|0}while((r|0)<(s|0))}else m=k&255;a[(W&n)+66>>0]=m;P=74}else P=74}else P=66;while(0);if((P|0)==66)if(!(c[(B&p)>>2]|0))l=W+66|0;else{k=-1;P=74}if((P|0)==74){m=c[(c[((c[(C+(Q<<4)&p)+4>>2]|0)&p)+4>>2]&p)>>2]|0;do if((k|0)>-1?(a[(m&n)+12>>0]|0)==0:0){G=c[(m&p)+208>>2]|0;if((G|0)!=0?(a[(G&n)+43>>0]|0)==2:0)break;a[(m&n)+4>>0]=k}while(0);l=m+4|0}l=(a[(l&n)>>0]|0)==1?30904:30896;iq(T,1);if(!(a[((c[(T&p)>>2]|0)&n)+65>>0]|0))Xg(c[(T&p)+16>>2]|0,30920,-1,1,0)|0;xh(T,wh(T,97,0,1,0)|0,l,0);wh(T,35,1,1,0)|0;break a}case 16:{if(!U)break a;k=_h(W,U,L)|0;if(!k)break a;q=Oq(f)|0;iq(q,5);c[(S&p)>>2]=5;Ar(f,Q);if(((((a[((c[(q&p)>>2]|0)&n)+65>>0]|0)==0?(Xg(c[(q&p)+16>>2]|0,31288,-1,1,0)|0,(a[((c[(q&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(q&p)+16>>2]|0)+40|0,31184,-1,1,0)|0,(a[((c[(q&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(q&p)+16>>2]|0)+80|0,31296,-1,1,0)|0,(a[((c[(q&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(q&p)+16>>2]|0)+120|0,31304,-1,1,0)|0,(a[((c[(q&p)>>2]|0)&n)+65>>0]|0)==0):0)Xg((c[(q&p)+16>>2]|0)+160|0,31312,-1,1,0)|0;m=c[(k&p)+8>>2]|0;if(!m)break a;else l=0;while(1){wh(q,25,l,1,0)|0;G=c[(m&p)>>2]|0;xh(q,wh(q,97,0,2,0)|0,G,0);wh(q,25,(a[(m&n)+50>>0]|0)!=0&1,3,0)|0;G=c[((a[(m&n)+51>>0]&3)<<2&p)+31336>>2]|0;xh(q,wh(q,97,0,4,0)|0,G,0);wh(q,25,(c[(m&p)+36>>2]|0)!=0&1,5,0)|0;wh(q,35,1,5,0)|0;m=c[(m&p)+20>>2]|0;if(!m)break;else l=l+1|0}break}case 1:{k=c[(C+(Q<<4)&p)+4>>2]|0;if(!U){m=c[(k&p)+4>>2]|0;c[(m&p)+4>>2]=c[(k&p)>>2];if(!(a[(m&n)+17>>0]|0)){m=0;l=0}else{l=(a[(m&n)+18>>0]|0)==0;m=l?1:2;l=l?0:0}Jt(f,30976,m,l);break a}if(dd(U,32192)|0)if(dd(U,31880)|0)if(!(dd(U,32200)|0))m=2;else{c[(G&p)>>2]=0;Dn(U,G)|0;m=c[(G&p)>>2]|0;m=m>>>0<3?m&255:0}else m=1;else m=0;a[(W&n)+67>>0]=m;r=m+-1|0;if(!((vn(k,m)|0)==0&r>>>0<2))break a;l=yh(T,6,30992)|0;q=c[(T&p)+32>>2]|0;if(q>>>0>l>>>0)c[((c[(T&p)+4>>2]|0)+(l*20|0)&p)+4>>2]=Q;k=l+1|0;if(q>>>0>k>>>0)c[((c[(T&p)+4>>2]|0)+(k*20|0)&p)+4>>2]=Q;k=l+2|0;m=l+4|0;if(q>>>0>k>>>0)c[((c[(T&p)+4>>2]|0)+(k*20|0)&p)+8>>2]=m;if(q>>>0>m>>>0)c[((c[(T&p)+4>>2]|0)+(m*20|0)&p)+4>>2]=r;m=l+5|0;if(q>>>0>m>>>0)c[((c[(T&p)+4>>2]|0)+(m*20|0)&p)+4>>2]=Q;G=T+96|0;c[(G&p)>>2]=c[(G&p)>>2]|1<>2]=3;if(((a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0?(Xg(c[(T&p)+16>>2]|0,31288,-1,1,0)|0,(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(T&p)+16>>2]|0)+40|0,31184,-1,1,0)|0,(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0):0)Xg((c[(T&p)+16>>2]|0)+80|0,31352,-1,1,0)|0;l=W+20|0;m=c[(l&p)>>2]|0;if((m|0)>0)q=0;else break a;do{if(c[((c[(R&p)>>2]|0)+(q<<4)&p)+4>>2]|0){wh(T,25,q,1,0)|0;k=c[((c[(R&p)>>2]|0)+(q<<4)&p)>>2]|0;xh(T,wh(T,97,0,2,0)|0,k,0);k=c[(c[((c[((c[(R&p)>>2]|0)+(q<<4)&p)+4>>2]|0)&p)+4>>2]&p)>>2]|0;if(!(a[(k&n)+15>>0]|0))k=c[(k&p)+168>>2]|0;else k=10360;xh(T,wh(T,97,0,3,0)|0,k,0);wh(T,35,1,3,0)|0;m=c[(l&p)>>2]|0}q=q+1|0}while((q|0)<(m|0));break}case 6:{iq(T,2);c[(S&p)>>2]=2;if((a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0?(Xg(c[(T&p)+16>>2]|0,31288,-1,1,0)|0,(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0):0)Xg((c[(T&p)+16>>2]|0)+40|0,31184,-1,1,0)|0;m=c[(W&p)+436>>2]|0;if(!m)break a;else l=0;while(1){G=c[(m&p)+8>>2]|0;wh(T,25,l,1,0)|0;G=c[(G&p)>>2]|0;xh(T,wh(T,97,0,2,0)|0,G,0);wh(T,35,1,2,0)|0;m=c[(m&p)>>2]|0;if(!m)break;else l=l+1|0}break}case 13:{if(!U)break a;k=_h(W,U,L)|0;if(!k)break a;g=Oq(f)|0;q=c[(k&p)+16>>2]|0;if(!q)break a;iq(g,8);c[(S&p)>>2]=8;Ar(f,Q);do if((((a[((c[(g&p)>>2]|0)&n)+65>>0]|0)==0?(Xg(c[(g&p)+16>>2]|0,31360,-1,1,0)|0,(a[((c[(g&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(g&p)+16>>2]|0)+40|0,31288,-1,1,0)|0,(a[((c[(g&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(g&p)+16>>2]|0)+80|0,31232,-1,1,0)|0,(a[((c[(g&p)>>2]|0)&n)+65>>0]|0)==0):0){Xg((c[(g&p)+16>>2]|0)+120|0,31368,-1,1,0)|0;if(a[((c[(g&p)>>2]|0)&n)+65>>0]|0)break;Xg((c[(g&p)+16>>2]|0)+160|0,31376,-1,1,0)|0;if(a[((c[(g&p)>>2]|0)&n)+65>>0]|0)break;Xg((c[(g&p)+16>>2]|0)+200|0,31384,-1,1,0)|0;if(a[((c[(g&p)>>2]|0)&n)+65>>0]|0)break;Xg((c[(g&p)+16>>2]|0)+240|0,31400,-1,1,0)|0;if(a[((c[(g&p)>>2]|0)&n)+65>>0]|0)break;Xg((c[(g&p)+16>>2]|0)+280|0,31416,-1,1,0)|0}while(0);v=k+4|0;w=0;while(1){k=q+20|0;if((c[(k&p)>>2]|0)>0){m=q+25|0;l=q+26|0;t=q+8|0;h=0;do{u=c[(q+(h<<3)&p)+40>>2]|0;s=d[(m&n)>>0]|0;if((s|0)==8)r=32072;else if((s|0)==9)r=32088;else if((s|0)==6)r=32096;else if((s|0)==7)r=32056;else r=32112;s=d[(l&n)>>0]|0;if((s|0)==8)s=32072;else if((s|0)==9)s=32088;else if((s|0)==6)s=32096;else if((s|0)==7)s=32056;else s=32112;wh(g,25,w,1,0)|0;wh(g,25,h,2,0)|0;G=c[(t&p)>>2]|0;xh(g,wh(g,97,0,3,0)|0,G,0);G=c[((c[(v&p)>>2]|0)+((c[(q+(h<<3)&p)+36>>2]|0)*24|0)&p)>>2]|0;xh(g,wh(g,97,0,4,0)|0,G,0);xh(g,wh(g,(u|0)!=0?97:28,0,5,0)|0,u,0);xh(g,wh(g,97,0,6,0)|0,s,0);xh(g,wh(g,97,0,7,0)|0,r,0);xh(g,wh(g,97,0,8,0)|0,31424,0);wh(g,35,1,8,0)|0;h=h+1|0}while((h|0)<(c[(k&p)>>2]|0))}q=c[(q&p)+4>>2]|0;if(!q)break;else w=w+1|0}break}case 11:{if(!U){if(Gn(f)|0)break a;iq(T,1);if(!(a[((c[(T&p)>>2]|0)&n)+65>>0]|0))Xg(c[(T&p)+16>>2]|0,31784,-1,1,0)|0;wh(T,97,0,1,0)|0;xh(T,-1,c[(d[((c[(f&p)>>2]|0)&n)+62>>0]<<3&p)+31632>>2]|0,-2);wh(T,35,1,1,0)|0;break a}k=c[((c[(R&p)>>2]|0)&p)+12>>2]|0;if((b[(k&o)+78>>1]&5)==1)break a;else{m=31632;l=31704}do{if(!(dd(U,l)|0)){v=m;P=415;break}m=m+8|0;l=c[(m&p)>>2]|0}while((l|0)!=0);if((P|0)==415?(F=a[(v&n)+4>>0]|0,F=F<<24>>24==0?2:F,a[(W&n)+62>>0]=F,a[(k&n)+77>>0]=F,(c[(v&p)>>2]|0)!=0):0)break a;c[(G&p)>>2]=U;th(f,31800,G);break a}case 0:{s=c[((w*12|0)&p)+30128>>2]|0;F=T+96|0;c[(F&p)>>2]=c[(F&p)>>2]|1<>2]|0)>>>0>m>>>0)c[((c[(T&p)+4>>2]|0)+(m*20|0)&p)+4>>2]=Q;l=m+1|0;c[(G&p)>>2]=0;Dn(U,G)|0;k=c[(k&p)>>2]|0;if(k>>>0>l>>>0)c[((c[(T&p)+4>>2]|0)+(l*20|0)&p)+4>>2]=c[(G&p)>>2];m=m+2|0;if(k>>>0<=m>>>0)break a;c[((c[(T&p)+4>>2]|0)+(m*20|0)&p)+4>>2]=Q;c[((c[(T&p)+4>>2]|0)+(m*20|0)&p)+8>>2]=s;break a}m=yh(T,3,31848)|0;k=c[(T&p)+32>>2]|0;if(k>>>0>m>>>0)c[((c[(T&p)+4>>2]|0)+(m*20|0)&p)+4>>2]=Q;m=m+1|0;if(k>>>0>m>>>0){c[((c[(T&p)+4>>2]|0)+(m*20|0)&p)+4>>2]=Q;c[((c[(T&p)+4>>2]|0)+(m*20|0)&p)+12>>2]=s}iq(T,1);if(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)break a;Xg(c[(T&p)+16>>2]|0,V,-1,1,-1)|0;break a}case 7:{iq(T,1);c[(S&p)>>2]=1;if(!(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)){Xg(c[(T&p)+16>>2]|0,31864,-1,1,0)|0;l=0}else l=0;do{G=c[(l<<2&p)+8648>>2]|0;l=l+1|0;xh(T,wh(T,97,0,1,0)|0,G,0);wh(T,35,1,1,0)|0}while((l|0)!=4);break}case 35:{m=(c[(h&p)>>2]|0)!=0?Q:10;if(U)if(dd(U,31880)|0)if(!(dd(U,31888)|0))l=2;else{l=(dd(U,31896)|0)==0;l=l?3:0}else l=1;else l=0;iq(T,3);c[(S&p)>>2]=3;if(((a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0?(Xg(c[(T&p)+16>>2]|0,31912,-1,1,0)|0,(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(T&p)+16>>2]|0)+40|0,31920,-1,1,0)|0,(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0):0)Xg((c[(T&p)+16>>2]|0)+80|0,31928,-1,1,0)|0;wh(T,11,m,l,1)|0;wh(T,35,1,3,0)|0;break a}case 26:{of(W)|0;break a}case 34:{if(!U)l=c[(W&p)+216>>2]|0;else{c[(G&p)>>2]=0;Dn(U,G)|0;l=c[(G&p)>>2]|0;if((l|0)>0)m=21;else{l=0;m=0}c[(W&p)+216>>2]=m;c[(W&p)+220>>2]=l;l=m}if((l|0)==21){l=c[(W&p)+220>>2]|0;m=l;l=((l|0)<0)<<31>>31}else{m=0;l=0}Jt(f,31944,m,l);break a}case 27:{if((U|0)!=0?(ji(U,x)|0)==0:0){G=x;Pc(c[(G&p)>>2]|0,c[(G&p)+4>>2]|0)|0}F=(Lc()|0)==0;G=9032;Jt(f,31976,F?c[(G&p)>>2]|0:-1,F?c[(G&p)+4>>2]|0:-1);break a}case 33:{if((U|0)!=0?(E=(ji(U,s)|0)==0,G=s,F=c[(G&p)+4>>2]|0,E&((F|0)>-1|(F|0)==-1&(c[(G&p)>>2]|0)>>>0>4294967295)):0)c[(W&p)+132>>2]=0;G=c[(W&p)+132>>2]|0;Jt(f,31992,G,((G|0)<0)<<31>>31);break a}case 12:{g=c[(S&p)>>2]|0;H=g+1|0;I=g+5|0;J=g+6|0;c[(S&p)>>2]=J;K=Oq(f)|0;iq(K,4);if((((a[((c[(K&p)>>2]|0)&n)+65>>0]|0)==0?(Xg(c[(K&p)+16>>2]|0,31232,-1,1,0)|0,(a[((c[(K&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(K&p)+16>>2]|0)+40|0,20456,-1,1,0)|0,(a[((c[(K&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(K&p)+16>>2]|0)+80|0,31432,-1,1,0)|0,(a[((c[(K&p)>>2]|0)&n)+65>>0]|0)==0):0)Xg((c[(K&p)+16>>2]|0)+120|0,31440,-1,1,0)|0;Ar(f,Q);w=c[((c[((c[(R&p)>>2]|0)+(Q<<4)&p)+12>>2]|0)&p)+16>>2]|0;if(!w)break a;u=(U|0)==0;h=f+68|0;v=K+32|0;D=K+4|0;E=K+24|0;F=g+2|0;G=g+3|0;A=g+4|0;t=f+8|0;while(1){if(u){B=c[(w&p)>>2]|0;C=c[(w&p)+8>>2]|0}else{B=0;C=sh(f,0,U,L)|0}if((C|0)!=0?(M=C+16|0,(c[(M&p)>>2]|0)!=0):0){gs(f,Q,c[(C&p)+32>>2]|0,0,c[(C&p)>>2]|0);g=(b[(C&o)+38>>1]|0)+J|0;if((g|0)>(c[(S&p)>>2]|0))c[(S&p)>>2]=g;Qq(f,0,Q,C,54);w=c[(C&p)>>2]|0;xh(K,wh(K,97,0,H,0)|0,w,0);w=c[(M&p)>>2]|0;if(!w)g=1;else{g=1;do{l=_h(W,c[(w&p)+8>>2]|0,L)|0;do if(l){c[(O&p)>>2]=0;gs(f,Q,c[(l&p)+32>>2]|0,0,c[(l&p)>>2]|0);if(Mt(f,l,w,O,0)|0)break a;m=c[(O&p)>>2]|0;if(!m){Qq(f,g,Q,l,54);break}else{wh(K,54,g,c[(m&p)+40>>2]|0,Q)|0;z=c[(t&p)>>2]|0;xh(z,-1,hs(f,m)|0,-6);break}}while(0);g=g+1|0;w=c[(w&p)+4>>2]|0}while((w|0)!=0)}if((c[(h&p)>>2]|0)<(g|0))c[(h&p)>>2]=g;s=wh(K,108,0,0,0)|0;g=c[(M&p)>>2]|0;if(g){z=C+36|0;y=1;while(1){x=g+8|0;w=_h(W,c[(x&p)>>2]|0,L)|0;c[(O&p)>>2]=0;c[(N&p)>>2]=0;r=(w|0)!=0;do if(r){Mt(f,w,g,O,N)|0;l=c[(O&p)>>2]|0;m=xs(K)|0;if(!(r&(l|0)==0)){w=m;P=306;break}w=c[(g&p)+36>>2]|0;if((w|0)==(b[(z&o)>>1]|0))wh(K,103,0,J,0)|0;else{wh(K,47,0,w,J)|0;Nt(K,C,w,J);wh(K,76,J,m,0)|0;wh(K,38,J,(c[(v&p)>>2]|0)+3|0,0)|0}wh(K,70,y,0,J)|0;wh(K,16,0,m,0)|0;w=c[(v&p)>>2]|0;if(w>>>0>1)c[((c[(D&p)>>2]|0)+((w+-2|0)*20|0)&p)+8>>2]=w;c[((c[(E&p)>>2]|0)&p)+88>>2]=w+-1;w=m}else{w=xs(K)|0;l=0;P=306}while(0);do if((P|0)==306){P=0;q=g+20|0;m=c[(q&p)>>2]|0;if((m|0)>0){k=0;do{m=c[(N&p)>>2]|0;if(!m)m=g+(k<<3)+36|0;else m=m+(k<<2)|0;R=k+J|0;nt(K,C,0,c[(m&p)>>2]|0,R);wh(K,76,R,w,0)|0;k=k+1|0;m=c[(q&p)>>2]|0}while((k|0)<(m|0))}if(!r)break;k=ot(K,l)|0;l=c[(q&p)>>2]|0;xh(K,wh(K,49,J,m,I)|0,k,l);xh(K,wh(K,69,y,w,I)|0,0,-14)}while(0);wh(K,103,0,F,0)|0;l=c[(x&p)>>2]|0;xh(K,wh(K,97,0,G,0)|0,l,0);wh(K,25,y+-1|0,A,0)|0;wh(K,35,H,4,0)|0;l=c[(E&p)>>2]|0;m=~w;do if((w|0)<0){w=c[(l&p)+112>>2]|0;if(!w)break;c[(w+(m<<2)&p)>>2]=c[(v&p)>>2]}while(0);c[(l&p)+88>>2]=(c[(v&p)>>2]|0)+-1;mg(W,c[(N&p)>>2]|0);g=c[(g&p)+4>>2]|0;if(!g)break;else y=y+1|0}}wh(K,9,0,s+1|0,0)|0;g=c[(v&p)>>2]|0;if(g>>>0>s>>>0)c[((c[(D&p)>>2]|0)+(s*20|0)&p)+8>>2]=g;c[((c[(E&p)>>2]|0)&p)+88>>2]=g+-1}if(!B)break;else w=B}break}case 23:{Jt(f,31016,0,0);break a}case 31:{if(!U){Jt(f,31032,d[(W&n)+64>>0]|0,0);break a}l=a[(U&n)>>0]|0;if((l+-48&255)>=3)if(!(dd(U,31352)|0))l=1;else{l=(dd(U,15168)|0)==0;l=l?2:0}else l=(l<<24>>24)+-48|0;m=(c[(f&p)>>2]|0)+64|0;if((d[(m&n)>>0]|0)==(l|0))break a;if(Kt(f)|0)break a;a[(m&n)>>0]=l;break a}case 29:{if(!U){G=(d[(C+(Q<<4)&n)+8>>0]|0)+-1|0;Jt(f,31104,G,((G|0)<0)<<31>>31);break a}if(!(a[(W&n)+63>>0]|0)){th(f,31120,G);break a}else{a[(C+(Q<<4)&n)+8>>0]=((ii(U,0,1)|0)&255)+1;Lt(W);break a}}case 4:if(!U){G=c[((c[(C+(Q<<4)&p)+12>>2]|0)&p)+80>>2]|0;Jt(f,30848,G,((G|0)<0)<<31>>31);break a}else{c[(G&p)>>2]=0;Dn(U,G)|0;G=c[(G&p)>>2]|0;c[((c[(C+(Q<<4)&p)+12>>2]|0)&p)+80>>2]=G;pq(c[(C+(Q<<4)&p)+4>>2]|0,G);break a}default:{if(!U)l=c[(W&p)+492>>2]|0;else{c[(G&p)>>2]=0;Dn(U,G)|0;l=c[(G&p)>>2]|0;G=(l|0)>0;l=G?l:0;c[(W&p)+444>>2]=G?74:0;c[(W&p)+448>>2]=G?W:0;c[(r&p)>>2]=0;c[(W&p)+492>>2]=l}Jt(f,31968,l,((l|0)<0)<<31>>31);break a}}while(0)}else{k=c[(q&p)>>2]|0;if(k){c[(G&p)>>2]=k;th(f,10344,G);Wc(c[(q&p)>>2]|0)}G=f+64|0;c[(G&p)>>2]=(c[(G&p)>>2]|0)+1;c[(f&p)+12>>2]=g;break}}while(0);mg(W,V);mg(W,U)}}while(0);i=X;return}function Gr(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0;h=i;i=i+16|0;if((i|0)>=(j|0))fa();g=h;a:do if(!d)d=0;else{f=d;while(1){if((a[(f&n)>>0]|0)==-121){d=c[(b&p)>>2]|0;if(!(a[((c[(d&p)>>2]|0)&n)+145>>0]|0))break;a[(f&n)>>0]=101}d=c[(f&p)+4>>2]|0;if(d&16384){d=0;break a}e=f+20|0;if(!(d&2048)){if(Hr(b,c[(e&p)>>2]|0)|0){d=1;break a}}else if(fr(b,c[(e&p)>>2]|0)|0){d=1;break a}if(Gr(b,c[(f&p)+16>>2]|0)|0){d=1;break a}f=c[(f&p)+12>>2]|0;if(!f){d=0;break a}}c[(g&p)>>2]=c[(b&p)+16>>2];th(d,29984,g);d=1}while(0);i=h;return d|0}function Hr(a,b){a=a|0;b=b|0;var d=0,e=0;a:do if((b|0)!=0?(c[(b&p)>>2]|0)>0:0){d=0;e=c[(b&p)+4>>2]|0;while(1){if(Gr(a,c[(e&p)>>2]|0)|0){d=1;break a}d=d+1|0;if((d|0)>=(c[(b&p)>>2]|0)){d=0;break}else e=e+20|0}}else d=0;while(0);return d|0}function Ir(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;xh(a,wh(a,122,b,0,0)|0,d,-1);d=c[((c[(a&p)>>2]|0)&p)+20>>2]|0;if((d|0)>0){e=a+96|0;b=c[(e&p)>>2]|0;a=0;do{b=b|1<>2]=b}return}function Jr(a,d){a=a|0;d=d|0;var e=0,f=0;e=d+8|0;f=Ur(a,0,e)|0;d=d+24|0;kg(c[(a&p)>>2]|0,c[(d&p)>>2]|0);c[(d&p)>>2]=f;if(f){d=f+40|0;b[(d&o)>>1]=(b[(d&o)>>1]|0)+1<<16>>16}e=(Rt(a,e)|0)==0;return (e?f:0)|0}function Kr(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0;n=i;i=i+16|0;if((i|0)>=(j|0))fa();m=n;a:do if((b|0)!=0?(f=c[(a&p)+12>>2]|0,(c[(b&p)>>2]|0)>0):0){g=a+8|0;h=a+4|0;k=0;l=b+8|0;while(1){if(!(c[(g&p)>>2]|0)){e=l+4|0;d=c[(e&p)>>2]|0;if((d|0)!=0?(dd(d,f)|0)!=0:0)break;mg(c[(c[(a&p)>>2]&p)>>2]|0,d);c[(e&p)>>2]=0;c[(l&p)>>2]=c[(h&p)>>2]}if(fr(a,c[(l&p)+20>>2]|0)|0){d=1;break a}if(Gr(a,c[(l&p)+44>>2]|0)|0){d=1;break a}k=k+1|0;if((k|0)>=(c[(b&p)>>2]|0)){d=0;break a}else l=l+72|0}b=c[(a&p)>>2]|0;l=c[(a&p)+20>>2]|0;c[(m&p)>>2]=c[(a&p)+16>>2];c[(m&p)+4>>2]=l;c[(m&p)+8>>2]=d;th(b,29936,m);d=1}else d=0;while(0);i=n;return d|0}function Lr(b,d){b=b|0;d=d|0;var e=0,f=0,g=0;f=i;i=i+16|0;if((i|0)>=(j|0))fa();e=f;g=c[(b&p)>>2]|0;if((((a[(g&n)+145>>0]|0)==0?(a[(b&n)+18>>0]|0)==0:0)?(c[(g&p)+24>>2]&2048|0)==0:0)?(Fc(d,25568,7)|0)==0:0){c[(e&p)>>2]=d;th(b,28440,e);b=1}else b=0;i=f;return b|0}function Mr(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,o=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0;x=i;i=i+16|0;if((i|0)>=(j|0))fa();w=x;do if(d){t=e&1;v=(f|0)!=0;if(v){g=c[(f&p)>>2]|0;r=32768}else{g=St(d,e)|0;g=mh(b,g,((g|0)<0)<<31>>31)|0;r=0}c[(w&p)>>2]=g;if(g){l=(t|0)==0;if(!l)if(!(c[(d&p)+12>>2]|0))q=(c[(d&p)+20>>2]|0)==0?16396:8220;else q=8220;else q=48;s=q&60;u=d+4|0;m=c[(u&p)>>2]|0;if((m&1024|0)==0?(h=c[(d&p)+8>>2]|0,(h|0)!=0):0){k=h;while(1)if(!(a[(k&n)>>0]|0))break;else k=k+1|0;o=(k-h&1073741823)+1|0}else o=0;if(l){if(!(m&16384))k=(m&8192|0)==0?48:28;else k=12;kw(g|0,d|0,k|0)|0;fw(g+k|0,0,48-k|0)|0}else kw(g|0,d|0,s|0)|0;m=g+4|0;h=q&24576|r|c[(m&p)>>2]&-122881;c[(m&p)>>2]=h;if(o){h=g+s|0;c[(g&p)+8>>2]=h;kw(h|0,c[(d&p)+8>>2]|0,o|0)|0;h=c[(m&p)>>2]|0}k=c[(u&p)>>2]|0;do if(!((h|k)&16384)){h=d+20|0;if(!(k&2048)){c[(g&p)+20>>2]=Pr(b,c[(h&p)>>2]|0,t)|0;break}else{c[(g&p)+20>>2]=gr(b,c[(h&p)>>2]|0,t)|0;break}}while(0);h=c[(m&p)>>2]|0;if(!(h&24576)){if(c[(u&p)>>2]&16384)break;c[(g&p)+12>>2]=Mr(b,c[(d&p)+12>>2]|0,0,0)|0;c[(g&p)+16>>2]=Mr(b,c[(d&p)+16>>2]|0,0,0)|0;break}t=Tt(d,e)|0;c[(w&p)>>2]=(c[(w&p)>>2]|0)+t;if(h&8192){c[(g&p)+12>>2]=Mr(b,c[(d&p)+12>>2]|0,1,w)|0;c[(g&p)+16>>2]=Mr(b,c[(d&p)+16>>2]|0,1,w)|0}if(v)c[(f&p)>>2]=c[(w&p)>>2]}}else g=0;while(0);i=x;return g|0}function Nr(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;a:do if((b|0)!=0?(d=mh(a,8,0)|0,(d|0)!=0):0){g=b+4|0;c[(d&p)+4>>2]=c[(g&p)>>2];e=mh(a,c[(g&p)>>2]<<3,0)|0;c[(d&p)>>2]=e;if(!e){mg(a,d);d=0;break}if((c[(g&p)>>2]|0)>0){f=0;while(1){h=c[(b&p)>>2]|0;c[(e+(f<<3)&p)>>2]=kh(a,c[(h+(f<<3)&p)>>2]|0)|0;c[(e+(f<<3)&p)+4>>2]=c[(h+(f<<3)&p)+4>>2];f=f+1|0;if((f|0)>=(c[(g&p)>>2]|0))break a;e=c[(d&p)>>2]|0}}}else d=0;while(0);return d|0}function Or(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0;f=e+4|0;g=(c[(f&p)>>2]|0)+40|0;b=mh(b,g,0)|0;if(b){fw(b|0,0,g|0)|0;g=b+40|0;kw(g|0,c[(e&p)>>2]|0,c[(f&p)>>2]|0)|0;c[(b&p)+12>>2]=g;c[(b&p)+16>>2]=c[(f&p)>>2];a[(b&n)>>0]=d}return b|0}function Pr(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0;do if((d|0)!=0?(f=mh(b,8,0)|0,(f|0)!=0):0){g=c[(d&p)>>2]|0;c[(f&p)>>2]=g;if(!(e&1)){h=c[(d&p)>>2]|0;g=1;while(1)if((g|0)<(h|0))g=g<<1;else break}g=mh(b,g*20|0,0)|0;c[(f&p)+4>>2]=g;if(!g){mg(b,f);f=0;break}if((c[(d&p)>>2]|0)>0){i=0;h=c[(d&p)+4>>2]|0;while(1){c[(g&p)>>2]=Mr(b,c[(h&p)>>2]|0,e,0)|0;c[(g&p)+4>>2]=kh(b,c[(h&p)+4>>2]|0)|0;c[(g&p)+8>>2]=kh(b,c[(h&p)+8>>2]|0)|0;a[(g&n)+12>>0]=a[(h&n)+12>>0]|0;j=g+13|0;k=a[(j&n)>>0]|0;a[(j&n)>>0]=k&-2;a[(j&n)>>0]=a[(h&n)+13>>0]&2|k&-4;c[(g&p)+16>>2]=c[(h&p)+16>>2];i=i+1|0;if((i|0)>=(c[(d&p)>>2]|0))break;else{g=g+20|0;h=h+20|0}}}}else f=0;while(0);return f|0}function Qr(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0;o=i;i=i+16|0;if((i|0)>=(j|0))fa();k=o;l=c[(a&p)>>2]|0;f=c[(b&p)+20>>2]|0;a:do if(f){e=c[(l&p)+20>>2]|0;if((e|0)>0){d=c[(l&p)+16>>2]|0;h=0;while(1){g=h+1|0;if((c[(d+(h<<4)&p)+12>>2]|0)==(f|0)){g=h;break a}if((g|0)<(e|0))h=g;else break}}else g=0}else g=-1e6;while(0);d=bn((c[(b&p)+24>>2]|0)+8|0,c[(b&p)+4>>2]|0,k)|0;if(!d)f=0;else f=c[(d&p)+8>>2]|0;d=c[((c[(l&p)+16>>2]|0)+(g<<4)&p)>>2]|0;e=(g|0)==1;if((((Sq(a,e?14:16,c[(b&p)>>2]|0,c[(f&p)>>2]|0,d)|0)==0?(Sq(a,9,e?13184:13208,0,d)|0)==0:0)?(m=Oq(a)|0,(m|0)!=0):0)?(n=c[(a&p)+408>>2]|0,Ar(a,g),n=((n|0)==0?a:n)+328|0,c[(n&p)>>2]=c[(n&p)>>2]|1<>2]|0,0),xh(m,n+4|0,10720,-2),Dr(a,g),wh(m,61,0,0,0)|0,n=c[(b&p)>>2]|0,xh(m,wh(m,126,g,0,0)|0,n,0),n=a+72|0,(c[(n&p)>>2]|0)<3):0)c[(n&p)>>2]=3;i=o;return}function Rr(d,e,f,g,h,k,l){d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;var m=0,q=0,r=0,s=0,t=0,u=0,v=0;v=i;i=i+32|0;if((i|0)>=(j|0))fa();m=v;t=c[(d&p)>>2]|0;c[(m&p)>>2]=0;c[(m&p)+4>>2]=0;c[(m&p)+8>>2]=0;c[(m&p)+12>>2]=0;c[(m&p)+16>>2]=0;c[(m&p)+20>>2]=0;c[(m&p)+24>>2]=0;c[(m&p)+28>>2]=0;c[(m&p)>>2]=d;do if(h)if((a[(h&n)>>0]|0)!=27)if(!(ls(m,h)|0)){u=5;break}else{u=13;break}else{a[(h&n)>>0]=97;u=5;break}else u=5;while(0);a:do if((u|0)==5){do if(k)if((a[(k&n)>>0]|0)!=27)if(!(ls(m,k)|0))break;else{u=13;break a}else{a[(k&n)>>0]=97;break}while(0);do if(l)if((a[(l&n)>>0]|0)!=27)if(!(ls(m,l)|0))break;else{u=13;break a}else{a[(l&n)>>0]=97;break}while(0);if(g){if((a[(g&n)>>0]|0)==97)g=c[(g&p)+8>>2]|0;else g=0;if(Sq(d,e,g,0,0)|0)break}s=Oq(d)|0;m=d+60|0;g=c[(m&p)>>2]|0;q=d+56|0;r=c[(q&p)>>2]|0;if((r|0)<4){r=d+72|0;g=c[(r&p)>>2]|0;c[(r&p)>>2]=g+4;g=g+1|0}else{c[(m&p)>>2]=g+4;c[(q&p)>>2]=r+-4}Rq(d,h,g);Rq(d,k,g+1|0);Rq(d,l,g+2|0);if(s){g=g+3|0;wh(s,1,0,g-(b[(f&o)>>1]|0)|0,g)|0;g=c[(s&p)+4>>2]|0;if(g)a[(g+(((c[(s&p)+32>>2]|0)+-1|0)*20|0)&n)+3>>0]=b[(f&o)>>1];xh(s,-1,f,-5);wh(s,144,(e|0)==24&1,0,0)|0}}while(0);if((u|0)==13){f=d+64|0;c[(f&p)>>2]=(c[(f&p)>>2]|0)+1}Gk(t,h);Gk(t,k);Gk(t,l);i=v;return}function Sr(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0;m=i;i=i+16|0;if((i|0)>=(j|0))fa();l=m;g=m+4|0;h=c[(b&p)>>2]|0;a:do if(!(Gn(b)|0)){if(!d){Ut(b,0);break}if(!((e|0)!=0?(c[(e&p)>>2]|0)!=0:0))f=6;do if((f|0)==6){f=Wq(c[(b&p)>>2]|0,d)|0;if(!f)break a;if(!(Yn(h,a[(h&n)+62>>0]|0,f,0)|0)){mg(h,f);break}else{Ut(b,f);mg(h,f);break a}}while(0);d=er(b,d,e,g)|0;if((d|0)>=0?(k=Wq(h,c[(g&p)>>2]|0)|0,(k|0)!=0):0){e=c[((c[(h&p)+16>>2]|0)+(d<<4)&p)>>2]|0;f=_h(h,k,e)|0;if(f){Vt(b,f,0);mg(h,k);break}e=bq(h,k,e)|0;mg(h,k);if(!e){th(b,28872,l);break}else{f=c[(b&p)+408>>2]|0;Ar(b,d);f=((f|0)==0?b:f)+328|0;c[(f&p)>>2]=c[(f&p)>>2]|1<=(j|0))fa();f=h;g=c[(a&p)>>2]|0;if(!(Gn(a)|0)){do if(!b){b=g+20|0;e=c[(b&p)>>2]|0;if((e|0)>0){d=0;do{if((d|0)!=1){Wt(a,d);e=c[(b&p)>>2]|0}d=d+1|0}while((d|0)<(e|0))}}else{if(c[(d&p)+4>>2]|0){e=er(a,b,d,f)|0;if((e|0)<=-1)break;e=c[((c[(g&p)+16>>2]|0)+(e<<4)&p)>>2]|0;b=Wq(g,c[(f&p)>>2]|0)|0;if(!b)break;d=bq(g,b,e)|0;if(!d){e=sh(a,0,b,e)|0;if(e)Xt(a,e,0)}else Xt(a,c[(d&p)+12>>2]|0,d);mg(g,b);break}d=Wq(g,b)|0;e=Vh(g,d)|0;mg(g,d);if((e|0)>-1){Wt(a,e);break}d=Wq(g,b)|0;if(d){e=bq(g,d,0)|0;if(!e){e=sh(a,0,d,0)|0;if(e)Xt(a,e,0)}else Xt(a,c[(e&p)+12>>2]|0,e);mg(g,d)}}while(0);e=Oq(a)|0;if(e)wh(e,144,0,0,0)|0}i=h;return}function Ur(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,i=0;f=c[(d&p)>>2]|0;if(!f)e=d+4|0;else{i=c[(a&p)>>2]|0;g=c[(i&p)+20>>2]|0;i=c[(i&p)+16>>2]|0;a:do if((g|0)>0){h=0;while(1){e=h+1|0;if((c[(i+(h<<4)&p)+12>>2]|0)==(f|0)){e=h;break a}if((e|0)<(g|0))h=e;else break}}else e=0;while(0);e=i+(e<<4)|0}return sh(a,b,c[(d&p)+8>>2]|0,c[(e&p)>>2]|0)|0}function Vr(b,d){b=b|0;d=d|0;var e=0,f=0,g=0;g=i;i=i+16|0;if((i|0)>=(j|0))fa();f=g;if(d){e=d;while(1)if(!(a[(e&n)>>0]|0))break;else e=e+1|0;if((e-d&1073741823)>>>0>6?(Fc(d,25568,7)|0)==0:0){c[(f&p)>>2]=d;th(b,25576,f);e=1}else e=0}else e=0;i=g;return e|0}function Wr(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;f=i;i=i+16|0;if((i|0)>=(j|0))fa();e=f;if(!b){c[(e&p)>>2]=d;a=uh(a,25992,e)|0}else{c[(e&p)>>2]=b;c[(e&p)+4>>2]=d;e=uh(a,26e3,e)|0;mg(a,b);a=e}i=f;return a|0}function Xr(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;h=i;i=i+16|0;if((i|0)>=(j|0))fa();g=h;e=c[(a&p)>>2]|0;f=c[((c[(e&p)+16>>2]|0)&p)+28>>2]|0;if((c[(b&p)+68>>2]|0)!=(f|0)?(d=As(a,b)|0,(d|0)!=0):0){b=d;d=0;do{if((c[(b&p)+20>>2]|0)==(f|0))d=Wr(e,d,c[(b&p)>>2]|0)|0;b=c[(b&p)+32>>2]|0}while((b|0)!=0);if(d){b=c[(a&p)>>2]|0;c[(g&p)>>2]=d;b=uh(b,25968,g)|0;mg(c[(a&p)>>2]|0,d);d=b}else d=0}else d=0;i=h;return d|0}function Yr(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,q=0,r=0;r=i;i=i+16|0;if((i|0)>=(j|0))fa();n=r;o=Oq(a)|0;if(o){e=c[(a&p)>>2]|0;h=c[(b&p)+68>>2]|0;a:do if(h){k=c[(e&p)+20>>2]|0;if((k|0)>0){f=c[(e&p)+16>>2]|0;g=0;while(1){e=g+1|0;if((c[(f+(g<<4)&p)+12>>2]|0)==(h|0))break a;if((e|0)<(k|0))g=e;else{g=e;break}}}else g=0}else g=-1e6;while(0);e=As(a,b)|0;if(e)do{f=c[(a&p)>>2]|0;l=c[(e&p)+20>>2]|0;b:do if(l){m=c[(f&p)+20>>2]|0;if((m|0)>0){k=c[(f&p)+16>>2]|0;h=0;while(1){f=h+1|0;if((c[(k+(h<<4)&p)+12>>2]|0)==(l|0)){f=h;break b}if((f|0)<(m|0))h=f;else break}}else f=0}else f=-1e6;while(0);m=c[(e&p)>>2]|0;xh(o,wh(o,126,f,0,0)|0,m,0);e=c[(e&p)+32>>2]|0}while((e|0)!=0);e=c[(b&p)>>2]|0;xh(o,wh(o,124,g,0,0)|0,e,0);e=c[(a&p)>>2]|0;c[(n&p)>>2]=d;e=uh(e,25952,n)|0;if((e|0)!=0?(Ir(o,g,e),q=Xr(a,b)|0,(q|0)!=0):0)Ir(o,1,q)}i=r;return} function gh(f){f=f|0;var g=0,l=0,m=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,E=0,F=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ea=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,cc=0,dc=0,ec=0,fc=0,gc=0,hc=0,ic=0,kc=0,nc=0,oc=0,qc=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,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,Xc=0,Yc=0,Zc=0,_c=0,$c=0,ad=0,ed=0,fd=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,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,ee=0,fe=0,ge=0,he=0,ie=0,je=0,ke=0,le=0,me=0,ne=0,oe=0,pe=0,qe=0;oe=i;i=i+1040|0;if((i|0)>=(j|0))fa();ke=oe+400|0;Tc=oe+792|0;id=oe+392|0;ad=oe+788|0;Sd=oe+320|0;md=oe+784|0;pd=oe+780|0;qd=oe+280|0;Nd=oe+680|0;$c=oe+240|0;Qd=oe+200|0;_c=oe+676|0;Xc=oe+672|0;Od=oe+160|0;Uc=oe+644|0;td=oe+152|0;Jd=oe+112|0;kd=oe+640|0;Ld=oe+636|0;Yc=oe+632|0;ud=oe+628|0;Ad=oe+624|0;wd=oe+604|0;Bd=oe+600|0;od=oe+596|0;xd=oe+576|0;Sc=oe+840|0;Cd=oe+572|0;Pd=oe+104|0;Dd=oe+568|0;ed=oe+564|0;fd=oe+96|0;Rd=oe+88|0;Ed=oe+560|0;Fd=oe+556|0;Gd=oe+552|0;yd=oe+532|0;zd=oe+512|0;jd=oe+508|0;vd=oe+504|0;Zc=oe+488|0;Md=oe+48|0;Vc=oe+456|0;Rc=oe+444|0;Kd=oe+8|0;sd=oe+440|0;Id=oe+412|0;Hd=oe;zc=f+4|0;s=c[(zc&p)>>2]|0;le=c[(f&p)>>2]|0;Jc=a[(le&n)+62>>0]|0;Nc=f+8|0;z=c[(Nc&p)>>2]|0;ne=le+32|0;l=ne;m=c[(l&p)>>2]|0;l=c[(l&p)+4>>2]|0;me=f+80|0;a:do if((c[(me&p)>>2]|0)==7){y=le+65|0;z=f+44|0;r=m;g=0;t=0;m=0;ie=1317}else{c[(me&p)>>2]=0;de=f+136|0;c[(de&p)>>2]=0;c[(de&p)+4>>2]=0;de=f+20|0;c[(de&p)>>2]=0;c[(le&p)+452>>2]=0;Cc=le+240|0;b:do if(!(c[(Cc&p)>>2]|0)){be=le+292|0;if(c[(be&p)>>2]|0){r=c[(f&p)+124>>2]|0;g=le+300|0;y=c[(g&p)>>2]|0;if(!r)yc=g;else{yc=g;y=(r>>>0)%(y>>>0)|0}}else{yc=le+300|0;y=0}he=f+76|0;ge=le+65|0;Zd=le+296|0;sb=f+176|0;tb=f+184|0;ub=f+92|0;vb=le+80|0;wb=le+84|0;xb=Jc&255;yb=Jc<<24>>24==1;zb=le+88|0;Ab=f+60|0;_d=f+144|0;fe=f+86|0;je=f+44|0;Bb=f+12|0;Cb=Uc+4|0;Db=Uc+16|0;Eb=Uc+12|0;Fb=Uc+25|0;Gb=Uc+20|0;Hb=f+200|0;Ib=f+56|0;$d=f+72|0;Jb=Jd+16|0;Kb=Jd+8|0;Lb=Jd+24|0;Mb=f+87|0;ae=le+156|0;Nb=le+500|0;Ob=le+496|0;ee=le+63|0;Pb=le+488|0;Qb=le+504|0;Rb=le+512|0;Sb=le+70|0;Tb=le+24|0;Ub=le+20|0;Xd=le+16|0;Vb=le+4|0;Yd=f+88|0;Wb=f+104|0;Xb=f+152|0;Yb=f+160|0;Zb=le+152|0;_b=le+64|0;$b=wd+4|0;cc=wd+6|0;dc=wd+8|0;ec=xd+4|0;fc=xd+8|0;gc=le+212|0;hc=le+208|0;ic=f+116|0;kc=yd+4|0;nc=yd+6|0;oc=yd+8|0;qc=$c+8|0;sc=$c+32|0;uc=$c+24|0;vc=$c+16|0;wc=$c+12|0;xc=zd+4|0;Y=zd+6|0;Z=zd+8|0;_=qd+8|0;$=qd+32|0;aa=qd+24|0;ea=qd+12|0;ga=qd+16|0;ha=le+164|0;ia=Zc+8|0;ja=Zc+4|0;ka=le+145|0;la=Zc+12|0;ma=Sd+4|0;na=Sd+12|0;oa=Sd+16|0;pa=Sd+20|0;qa=Sd+24|0;ra=Sd+28|0;sa=Sd+8|0;ta=Sd+40|0;ua=Sd+44|0;va=Sd+48|0;wa=Sd+52|0;xa=Sd+56|0;ya=Sd+60|0;za=Sd+64|0;Aa=Sd+65|0;Ba=le+128|0;Ca=f+28|0;Da=f+36|0;Ea=f+32|0;Fa=f+196|0;Ga=Vc+4|0;Ha=Vc+8|0;Ia=Md+8|0;Ja=Md+32|0;Ka=Md+24|0;La=Vc+20|0;Ma=Vc+12|0;Na=Vc+16|0;Oa=Vc+24|0;Pa=Rc+8|0;Qa=Rc+4|0;Ra=le+148|0;Sa=le+176|0;Ta=le+72|0;Ua=le+67|0;Va=Tc+20|0;Wa=Tc+24|0;Xa=Tc+4|0;Ya=Tc+16|0;Za=le+304|0;_a=le+328|0;$a=Kd+32|0;ab=Kd+8|0;bb=Kd+24|0;cb=le+308|0;db=Id+20|0;eb=le+69|0;ce=f+168|0;fb=qd+4|0;gb=qd+8|0;hb=qd+12|0;ib=qd+16|0;jb=qd+20|0;kb=qd+24|0;lb=qd+25|0;mb=le+180|0;nb=Od+32|0;ob=Od+8|0;pb=Od+12|0;qb=Od+16|0;rb=Od+24|0;W=0;X=0;g=0;u=0;t=c[(he&p)>>2]|0;x=0;c:while(1){r=m;d:while(1){if(a[(ge&n)>>0]|0){y=ge;z=je;m=x;ie=1317;break a}m=g+1|0;if(!(a[(s+(t*20|0)&n)+2>>0]&2))L=u;else{u=c[(s+(t*20|0)&p)+8>>2]|0;g=z+(u*40|0)|0;u=z+(u*40|0)+8|0;if(b[(u&o)>>1]&9312)vg(g);b[(u&o)>>1]=4;L=g}C=s+(t*20|0)|0;J=a[(C&n)>>0]|0;u=J&255;e:do switch(u|0){case 17:{g=m;m=r;u=L;ie=22;break d}case 18:{g=m;m=r;u=L;ie=23;break d}case 20:{g=m;m=r;ie=24;break d}case 21:{g=m;m=r;u=L;ie=25;break d}case 22:{g=m;m=r;u=L;ie=26;break d}case 23:{g=m;m=r;u=L;r=t;ie=27;break d}case 29:{g=m;m=r;r=t;ie=65;break d}case 30:{g=m;m=r;u=L;r=t;ie=66;break d}case 28:{g=m;m=r;u=L;r=t;ie=60;break d}case 32:{g=m;m=r;r=t;ie=72;break d}case 24:{g=m;m=r;u=L;r=t;ie=28;break d}case 25:{g=m;m=r;u=L;r=t;ie=44;break d}case 26:{g=m;m=r;u=L;r=t;ie=45;break d}case 133:{g=m;m=r;u=L;r=t;ie=46;break d}case 97:{a[(C&n)>>0]=27;C=s+(t*20|0)+16|0;v=c[(C&p)>>2]|0;if(!v)g=0;else{g=v;while(1)if(!(a[(g&n)>>0]|0))break;else g=g+1|0;g=g-v&1073741823}w=s+(t*20|0)+4|0;c[(w&p)>>2]=g;if(yb)u=0;else{u=Xg(L,v,-1,1,0)|0;if((u|0)==18){g=m;m=r;u=x;ie=1316;break c}if(Yl(L,xb)|0){y=ge;z=je;g=m;m=x;ie=1317;break a}c[(L&p)+24>>2]=0;g=L+8|0;b[(g&o)>>1]=e[(g&o)>>1]|2048;g=s+(t*20|0)+1|0;if((a[(g&n)>>0]|0)==-1)mg(le,c[(C&p)>>2]|0);a[(g&n)>>0]=-1;v=c[(L&p)+16>>2]|0;c[(C&p)>>2]=v;g=c[(L&p)+12>>2]|0;c[(w&p)>>2]=g}if((g|0)>(c[(zb&p)>>2]|0)){g=m;m=r;u=x;ie=1316;break c}else ie=57;break}case 31:{g=m;m=r;u=L;r=t;ie=67;break d}case 34:{g=m;m=r;r=t;ie=79;break d}case 35:{g=m;m=r;u=x;ie=80;break c}case 33:{g=m;m=r;ie=74;break d}case 94:{g=m;m=r;ie=94;break d}case 93:case 92:case 91:case 90:case 89:{g=m;P=C;m=r;r=t;ie=112;break d}case 27:{v=c[(s+(t*20|0)&p)+16>>2]|0;g=c[(s+(t*20|0)&p)+4>>2]|0;u=0;ie=57;break}case 16:{t=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;u=0;ie=19;break}case 36:{g=m;m=r;J=L;r=t;ie=166;break d}case 1:{V=a[(s+(t*20|0)&n)+3>>0]|0;C=V&255;A=c[(Bb&p)>>2]|0;g=z+((c[(s+(t*20|0)&p)+12>>2]|0)*40|0)|0;c[(Uc&p)>>2]=g;if(V<<24>>24){g=0;u=z+((c[(s+(t*20|0)&p)+8>>2]|0)*40|0)|0;while(1){c[(A+(g<<2)&p)>>2]=u;if((b[(u&o)+8>>1]&4096)!=0?(Vl(u)|0)!=0:0){y=ge;z=je;g=m;m=x;ie=1317;break a}g=g+1|0;if((g|0)>=(C|0))break;else u=u+40|0}g=c[(Uc&p)>>2]|0}V=c[(s+(t*20|0)&p)+16>>2]|0;c[(Cb&p)>>2]=V;c[(Db&p)>>2]=t;c[(Eb&p)>>2]=f;U=g+8|0;b[(U&o)>>1]=e[(U&o)>>1]&48640|1;a[(Fb&n)>>0]=0;U=ne;c[(U&p)>>2]=r;c[(U&p)+4>>2]=l;mc[c[(V&p)+12>>2]&63](Uc,C,A);l=ne;r=c[(l&p)>>2]|0;l=c[(l&p)+4>>2]|0;if(!(a[(Fb&n)>>0]|0))g=0;else{if(!(c[(Gb&p)>>2]|0))g=0;else{c[(ke&p)>>2]=Sg(c[(Uc&p)>>2]|0,1)|0;dh(je,le,10344,ke);g=c[(Gb&p)>>2]|0}em(f,t,c[(s+(t*20|0)&p)+4>>2]|0)}Yl(c[(Uc&p)>>2]|0,xb)|0;w=c[(Uc&p)>>2]|0;v=e[(w&o)+8>>1]|0;if(v&18){u=c[(w&p)+12>>2]|0;if(v&16384)u=(c[(w&p)>>2]|0)+u|0;if((u|0)>(c[((c[(w&p)+32>>2]|0)&p)+88>>2]|0)){g=m;m=r;u=x;ie=1316;break c}else{C=L;T=t;u=g}}else{C=L;T=t;u=g}break}case 88:case 87:case 86:case 85:{g=m;H=C;m=r;r=t;ie=184;break d}case 39:{g=m;m=r;J=L;r=t;ie=208;break d}case 37:{g=m;m=r;u=L;r=t;ie=202;break d}case 38:{g=m;m=r;J=L;r=t;ie=203;break d}case 83:case 80:case 81:case 82:case 78:case 79:{g=m;I=J;m=r;u=L;ie=213;break d}case 40:{V=c[(s+(t*20|0)&p)+4>>2]|0;g=z+(V*40|0)|0;if(!(b[(z+(V*40|0)&o)+8>>1]&16384))u=0;else u=Rg(g)|0;gm(g,c[(s+(t*20|0)&p)+8>>2]&255,Jc);C=L;T=t;break}case 41:{g=m;m=r;u=L;r=t;ie=248;break d}case 42:{g=m;m=r;u=L;r=t;ie=249;break d}case 43:{g=m;m=r;u=L;ie=256;break d}case 71:case 72:{g=m;m=r;r=t;ie=261;break d}case 76:{g=m;m=r;u=L;r=t;ie=286;break d}case 19:{g=m;m=r;r=t;ie=268;break d}case 96:{g=m;m=r;r=t;ie=273;break d}case 44:{g=m;m=r;u=L;r=t;ie=278;break d}case 46:case 45:{g=m;m=r;u=L;r=t;ie=281;break d}case 77:{g=m;m=r;u=L;r=t;ie=288;break d}case 47:{g=m;m=r;u=L;ie=290;break d}case 48:{g=m;m=r;u=L;r=t;ie=368;break d}case 49:{g=m;m=r;ie=371;break d}case 50:{E=c[(c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]&p)>>2]|0;f:do if(c[(E&p)+60>>2]|0){g=qm(E)|0;if(!g){K=E+76|0;H=E+44|0;F=E+72|0;v=0;u=0;g:while(1){C=b[(K&o)>>1]|0;J=c[(E+(C<<16>>16<<2)&p)+120>>2]|0;if(!(a[(J&n)+5>>0]|0)){if(!(a[(J&n)+2>>0]|0)){v=jw(e[(J&o)+18>>1]|0,0,v|0,u|0)|0;u=G}}else{v=jw(e[(J&o)+18>>1]|0,0,v|0,u|0)|0;u=G;while(1){if(!(C<<16>>16))break g;if(J){Bg(c[(J&p)+68>>2]|0);C=b[(K&o)>>1]|0}C=C+-1<<16>>16;b[(K&o)>>1]=C;b[(H&o)>>1]=0;a[(F&n)>>0]=d[(F&n)>>0]&249;J=C<<16>>16;A=E+(J<<1)+78|0;I=b[(A&o)>>1]|0;J=c[(E+(J<<2)&p)+120>>2]|0;if((I&65535)<(e[(J&o)+18>>1]|0)){C=I;break}}b[(A&o)>>1]=C+1<<16>>16;J=b[(K&o)>>1]|0;C=J;J=c[(E+(J<<16>>16<<2)&p)+120>>2]|0}C=b[(E+(C<<16>>16<<1)&o)+78>>1]|0;A=c[(J&p)+56>>2]|0;if(C<<16>>16==(b[(J&o)+18>>1]|0)){g=d[(J&n)+6>>0]|0;g=rm(E,d[(A+g&n)+9>>0]<<16|d[(A+g&n)+8>>0]<<24|d[(A+g&n)+10>>0]<<8|d[(A+g&n)+11>>0])|0}else{g=(C&65535)<<1;V=c[(J&p)+64>>2]|0;g=(d[(V+g&n)>>0]<<8|d[(V+(g|1)&n)>>0])&e[(J&o)+20>>1];g=rm(E,d[(A+g&n)+1>>0]<<16|d[(A+g&n)>>0]<<24|d[(A+g&n)+2>>0]<<8|d[(A+g&n)+3>>0])|0}if(g){v=0;u=0;break f}}g=qm(E)|0}else{v=0;u=0}}else{g=0;v=0;u=0}while(0);C=L;c[(C&p)>>2]=v;c[(C&p)+4>>2]=u;C=L;T=t;u=g;break}case 2:{O=c[(s+(t*20|0)&p)+4>>2]|0;v=c[(s+(t*20|0)&p)+16>>2]|0;if(!O){g=m;m=r;r=t;ie=446;break d}g=c[(Pb&p)>>2]|0;if(!g){s=v;g=m;m=r;u=x;ie=460;break c}else u=0;while(1){if(!(dd(c[(g&p)>>2]|0,v)|0)){M=g;break}g=c[(g&p)+24>>2]|0;if(!g){s=v;g=m;m=r;u=x;ie=460;break c}else u=u+1|0}H=(O|0)==1;if((c[(ae&p)>>2]|0)>0&H){g=m;m=r;u=x;ie=462;break c}F=M+24|0;if(!(c[(F&p)>>2]|0)){A=(a[(Sb&n)>>0]|0)!=0;if(A&H){g=tm(f,1)|0;if(g)break a;a[(ee&n)>>0]=1;if((Rl(f)|0)==5){g=t;ie=467;break c}a[(Sb&n)>>0]=0;A=1;K=u;u=c[(me&p)>>2]|0}else ie=469}else{A=0;ie=469}if((ie|0)==469){ie=0;K=(c[(Ob&p)>>2]|0)-u+-1|0;if((O|0)==2){C=(c[(Tb&p)>>2]|0)>>>1&1;if((c[(Ub&p)>>2]|0)>0){J=C^1;I=0;while(1){u=Il(c[((c[(Xd&p)>>2]|0)+(I<<4)&p)+4>>2]|0,516,J)|0;I=I+1|0;if(u){g=m;m=r;ie=1318;break c}g=c[(Ub&p)>>2]|0;if((I|0)>=(g|0)){ie=475;break}}}}else{g=c[(Ub&p)>>2]|0;C=0;ie=475}if((ie|0)==475){ie=0;if((g|0)>0){E=0;do{u=um(c[((c[(Xd&p)>>2]|0)+(E<<4)&p)+4>>2]|0,O,K)|0;E=E+1|0;if(u){g=m;m=r;ie=1318;break c}}while((E|0)<(c[(Ub&p)>>2]|0))}}if(!C)u=0;else{C=c[(Vb&p)>>2]|0;if(C)do{V=C+88|0;b[(V&o)>>1]=b[(V&o)>>1]|8;C=c[(C&p)+52>>2]|0}while((C|0)!=0);Eg(le);c[(Tb&p)>>2]=c[(Tb&p)>>2]|2;u=0}}C=c[(Pb&p)>>2]|0;if((C|0)!=(M|0))do{c[(Pb&p)>>2]=c[(C&p)+24>>2];mg(le,C);c[(Ob&p)>>2]=(c[(Ob&p)>>2]|0)+-1;C=c[(Pb&p)>>2]|0}while((C|0)!=(M|0));if(H){c[(Pb&p)>>2]=c[(F&p)>>2];mg(le,M);if(A){C=L;T=t;break e}else{g=m;C=O;m=r;A=K;E=L;r=t;ie=486;break d}}else{V=M+8|0;U=c[(V&p)+4>>2]|0;T=Qb;c[(T&p)>>2]=c[(V&p)>>2];c[(T&p)+4>>2]=U;T=M+16|0;U=c[(T&p)+4>>2]|0;V=Rb;c[(V&p)>>2]=c[(T&p)>>2];c[(V&p)+4>>2]=U;if(A){C=L;T=t;break e}else{C=O;g=m;m=r;A=K;E=L;r=t;ie=488;break d}}}case 3:{u=x;ie=489;break c}case 4:{v=s+(t*20|0)+8|0;g=c[(v&p)>>2]|0;if((g|0)!=0?(c[(Tb&p)>>2]&33554432|0)!=0:0){g=m;m=r;u=8;ie=1318;break c}I=s+(t*20|0)+4|0;J=c[((c[(Xd&p)>>2]|0)+(c[(I&p)>>2]<<4)&p)+4>>2]|0;if(!J){v=0;u=0;g=0}else{u=yg(J,g)|0;if((u|0)==5){g=t;ie=508;break c}else if(u){g=m;m=r;ie=1318;break c}do if((c[(v&p)>>2]|0)!=0?(b[(Yd&o)>>1]&32)!=0:0){if((a[(ee&n)>>0]|0)!=0?(c[(Zb&p)>>2]|0)<=1:0){g=0;break}g=c[(Wb&p)>>2]|0;if(!g){g=(c[(Nb&p)>>2]|0)+1|0;c[(Nb&p)>>2]=g;g=(c[(Ob&p)>>2]|0)+g|0;c[(Wb&p)>>2]=g}g=sm(le,0,g+-1|0)|0;if(!g){g=c[(Wb&p)>>2]|0;V=c[(J&p)+4>>2]|0;c[(V&p)+4>>2]=c[(J&p)>>2];g=hl(c[(V&p)>>2]|0,g)|0}V=Qb;U=c[(V&p)+4>>2]|0;T=Xb;c[(T&p)>>2]=c[(V&p)>>2];c[(T&p)+4>>2]=U;T=Rb;U=c[(T&p)+4>>2]|0;V=Yb;c[(V&p)>>2]=c[(T&p)>>2];c[(V&p)+4>>2]=U}else g=0;while(0);v=c[(J&p)+4>>2]|0;c[(v&p)+4>>2]=c[(J&p)>>2];v=c[((c[(v&p)+12>>2]|0)&p)+56>>2]|0;v=d[(v&n)+41>>0]<<16|d[(v&n)+40>>0]<<24|d[(v&n)+42>>0]<<8|d[(v&n)+43>>0];u=c[((c[((c[(Xd&p)>>2]|0)+(c[(I&p)>>2]<<4)&p)+12>>2]|0)&p)+4>>2]|0}if(a[(s+(t*20|0)&n)+3>>0]|0){if((v|0)!=(c[(s+(t*20|0)&p)+12>>2]|0)){g=m;s=I;m=r;u=x;ie=522;break c}if((u|0)!=(c[(s+(t*20|0)&p)+16>>2]|0)){g=m;s=I;m=r;u=x;ie=522;break c}else{C=L;T=t;u=g}}else{C=L;T=t;u=g}break}case 53:{g=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;if((g|0)!=0?(c[(g&p)+28>>2]|0)==(c[(s+(t*20|0)&p)+8>>2]|0):0){v=s+(t*20|0)+3|0;u=0;ie=548}else ie=536;break}case 51:{g=m;m=r;u=L;r=t;ie=525;break d}case 52:{A=s+(t*20|0)+4|0;g=c[(A&p)>>2]|0;v=c[(Xd&p)>>2]|0;C=c[(s+(t*20|0)&p)+12>>2]|0;w=z+(C*40|0)|0;u=Vg(w)|0;V=w;c[(V&p)>>2]=u;c[(V&p)+4>>2]=G;C=z+(C*40|0)+8|0;b[(C&o)>>1]=e[(C&o)>>1]&48640|4;C=s+(t*20|0)+8|0;u=Dg(c[(v+(g<<4)&p)+4>>2]|0,c[(C&p)>>2]|0,u)|0;C=c[(C&p)>>2]|0;if((C|0)==1){c[(c[(v+(g<<4)&p)+12>>2]&p)>>2]=c[(w&p)>>2];c[(Tb&p)>>2]=c[(Tb&p)>>2]|2}else if((C|0)==2)a[((c[(v+(g<<4)&p)+12>>2]|0)&n)+76>>0]=c[(w&p)>>2];if((c[(A&p)>>2]|0)==1){g=c[(Vb&p)>>2]|0;if(g)do{V=g+88|0;b[(V&o)>>1]=b[(V&o)>>1]|8;g=c[(g&p)+52>>2]|0}while((g|0)!=0);b[(Yd&o)>>1]=b[(Yd&o)>>1]&-9;C=L;T=t}else{C=L;T=t}break}case 55:case 54:{ie=536;break}case 57:case 56:{g=xm(f,c[(s+(t*20|0)&p)+4>>2]|0,c[(s+(t*20|0)&p)+8>>2]|0,-1,1)|0;if(!g){y=ge;z=je;g=m;m=x;ie=1317;break a}a[(g&n)+25>>0]=1;J=g+27|0;a[(J&n)>>0]=a[(J&n)>>0]|1;v=g+4|0;I=s+(t*20|0)+3|0;u=zm(c[(le&p)>>2]|0,0,le,v,d[(I&n)>>0]|5,1054)|0;do if(!u){u=yg(c[(v&p)>>2]|0,1)|0;if(!u){A=c[(s+(t*20|0)&p)+16>>2]|0;C=c[(v&p)>>2]|0;if(!A){u=ym(C,1,1,0,c[(g&p)>>2]|0)|0;a[(J&n)>>0]=a[(J&n)>>0]|4;break}u=Am(C,ud,d[(I&n)>>0]|2)|0;if(!u){c[(g&p)+8>>2]=A;u=ym(c[(v&p)>>2]|0,c[(ud&p)>>2]|0,1,A,c[(g&p)>>2]|0)|0}a[(J&n)>>0]=a[(J&n)>>0]&-5}}while(0);a[(J&n)>>0]=((a[(I&n)>>0]|0)!=8&1)<<3&255|a[(J&n)>>0]&-9;C=L;T=t;break}case 58:{g=m;m=r;ie=558;break d}case 60:{g=m;m=r;u=L;ie=568;break d}case 61:{g=m;m=r;u=L;r=t;ie=570;break d}case 59:{g=m;m=r;u=L;r=t;ie=566;break d}case 65:case 64:case 63:case 62:{g=m;K=u;m=r;r=t;ie=571;break d}case 66:{g=m;m=r;u=L;r=t;ie=596;break d}case 69:case 68:case 67:{g=m;H=C;m=r;u=L;ie=597;break d}case 73:{g=m;m=r;u=L;r=t;ie=624;break d}case 70:{V=c[(s+(t*20|0)&p)+12>>2]|0;g=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;u=c[(g&p)>>2]|0;c[(Cd&p)>>2]=0;V=z+(V*40|0)|0;U=c[(V&p)>>2]|0;V=c[(V&p)+4>>2]|0;u=Cm(u,0,U,V,0,Cd)|0;v=g+48|0;c[(v&p)>>2]=U;c[(v&p)+4>>2]=V;a[(g&n)+25>>0]=0;c[(g&p)+60>>2]=0;a[(g&n)+26>>0]=0;v=c[(Cd&p)>>2]|0;if(v)t=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;c[(g&p)+12>>2]=v;C=L;T=t;break}case 74:{H=Pd;c[(H&p)>>2]=0;c[(H&p)+4>>2]=0;c[(Dd&p)>>2]=0;H=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;g=c[(H&p)>>2]|0;if(!g){u=0;v=0;g=0}else{K=H+27|0;do if(!(a[(K&n)>>0]&2)){u=Hm(g,Dd)|0;if(u){g=m;m=r;ie=1318;break c}if(c[(Dd&p)>>2]|0){V=Pd;c[(V&p)>>2]=1;c[(V&p)+4>>2]=0;break}km(c[(H&p)>>2]|0,Pd);u=Pd;g=c[(u&p)>>2]|0;u=c[(u&p)+4>>2]|0;if((g|0)==-1&(u|0)==2147483647){a[(K&n)>>0]=a[(K&n)>>0]|2;break}else{U=jw(g|0,u|0,1,0)|0;V=Pd;c[(V&p)>>2]=U;c[(V&p)+4>>2]=G;break}}while(0);J=c[(s+(t*20|0)&p)+12>>2]|0;if(J){g=c[(sb&p)>>2]|0;if(!g)C=z;else{while(1){u=c[(g&p)+4>>2]|0;if(!u)break;else g=u}C=c[(g&p)+16>>2]|0}I=C+(J*40|0)|0;A=Vg(I)|0;g=G;V=I;c[(V&p)>>2]=A;c[(V&p)+4>>2]=g;V=C+(J*40|0)+8|0;b[(V&o)>>1]=e[(V&o)>>1]&48640|4;if((A|0)==-1&(g|0)==2147483647){g=m;m=r;u=13;ie=1318;break c}if(a[(K&n)>>0]&2){g=m;m=r;u=13;ie=1318;break c}J=Pd;u=c[(J&p)>>2]|0;J=c[(J&p)+4>>2]|0;C=jw(A|0,g|0,1,0)|0;g=G;if((J|0)<(g|0)|(J|0)==(g|0)&u>>>0>>0){V=Pd;c[(V&p)>>2]=C;c[(V&p)+4>>2]=g}else{C=u;g=J}V=I;c[(V&p)>>2]=C;c[(V&p)+4>>2]=g}h:do if(!(a[(K&n)>>0]&2))g=0;else{u=0;while(1){cd(8,Pd);V=Pd;V=jw(c[(V&p)>>2]|0,c[(V&p)+4>>2]&1073741823|0,1,0)|0;g=G;U=Pd;c[(U&p)>>2]=V;c[(U&p)+4>>2]=g;g=Cm(c[(H&p)>>2]|0,0,V,g,0,Dd)|0;if(c[(Dd&p)>>2]|g)break h;u=u+1|0;if((u|0)>=100){g=m;m=r;u=13;ie=1318;break c}}}while(0);a[(H&n)+26>>0]=0;c[(H&p)+60>>2]=0;v=Pd;u=c[(v&p)>>2]|0;v=c[(v&p)+4>>2]|0}C=L;c[(C&p)>>2]=u;c[(C&p)+4>>2]=v;C=L;T=t;u=g;break}case 84:case 75:{g=m;C=J;m=r;u=L;r=t;ie=647;break d}case 95:{g=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;u=Jm(c[(g&p)>>2]|0)|0;c[(g&p)+60>>2]=0;if((((u|0)==0?(Gc=c[(gc&p)>>2]|0,(Gc|0)!=0):0)?(Hc=c[(s+(t*20|0)&p)+16>>2]|0,(Hc|0)!=0):0)?(a[(g&n)+27>>0]&4)!=0:0){V=g+48|0;bc[Gc&1](c[(hc&p)>>2]|0,9,c[((c[(Xd&p)>>2]|0)+(a[(g&n)+24>>0]<<4)&p)>>2]|0,Hc,c[(V&p)>>2]|0,c[(V&p)+4>>2]|0)}if(!(c[(s+(t*20|0)&p)+8>>2]&1)){C=L;T=t}else{c[(ub&p)>>2]=(c[(ub&p)>>2]|0)+1;C=L;T=t}break}case 98:{g=m;m=r;u=L;r=t;ie=671;break d}case 99:{g=m;m=r;u=L;r=t;ie=672;break d}case 100:{v=c[(s+(t*20|0)&p)+8>>2]|0;C=z+(v*40|0)|0;g=c[((c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0)&p)+56>>2]|0;if(!(a[(g&n)+56>>0]|0)){u=c[(g&p)+36>>2]|0;g=u;u=u+8|0}else{V=c[(g&p)+20>>2]|0;u=c[((c[(V&p)+8>>2]|0)&p)+4>>2]|0;V=c[(V&p)+12>>2]|0;g=V+(u*56|0)+20|0;u=c[(V+(u*56|0)&p)+32>>2]|0}g=c[(g&p)>>2]|0;if(!(fh(C,g)|0)){c[(z+(v*40|0)&p)+12>>2]=g;V=z+(v*40|0)+8|0;b[(V&o)>>1]=e[(V&o)>>1]&48640|16;kw(c[(z+(v*40|0)&p)+16>>2]|0,u|0,g|0)|0;u=0}else u=7;c[((c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+12>>2]<<2)&p)>>2]|0)&p)+60>>2]=0;T=t;break}case 102:case 101:{v=c[(s+(t*20|0)&p)+8>>2]|0;J=z+(v*40|0)|0;A=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;C=c[(A&p)>>2]|0;A=A+27|0;if(a[(A&n)>>0]&4){lm(C,ed);g=c[(ed&p)>>2]|0;if(g>>>0>(c[(zb&p)>>2]|0)>>>0){g=m;m=r;u=x;ie=1316;break c}}else{km(C,fd);T=fd;g=c[(T&p)>>2]|0;T=c[(T&p)+4>>2]|0;V=c[(zb&p)>>2]|0;U=((V|0)<0)<<31>>31;if((T|0)>(U|0)|(T|0)==(U|0)&g>>>0>V>>>0){g=m;m=r;u=x;ie=1316;break c}c[(ed&p)>>2]=g}if(fh(J,g>>>0>32?g:32)|0){y=ge;z=je;g=m;m=x;ie=1317;break a}c[(z+(v*40|0)&p)+12>>2]=g;g=z+(v*40|0)+8|0;b[(g&o)>>1]=e[(g&o)>>1]&48640|16;g=c[(ed&p)>>2]|0;u=c[(z+(v*40|0)&p)+16>>2]|0;if(!(a[(A&n)>>0]&4))u=Lm(C,0,g,u,0)|0;else u=Dh(C,0,g,u)|0;a[(z+(v*40|0)&n)+10>>0]=1;C=J;T=t;break}case 103:{v=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;w=v+25|0;if(a[(w&n)>>0]|0){g=m;m=r;u=L;r=t;ie=700;break d}do if(!(a[(v&n)+26>>0]|0)){g=c[(v&p)+32>>2]|0;if(g){V=c[(g&p)>>2]|0;u=rc[c[((c[(V&p)>>2]|0)&p)+48>>2]&127](g,Rd)|0;Mm(f,V);break}if((a[((c[(v&p)>>2]|0)&n)+73>>0]|0)!=1){u=jm(v)|0;if(u){g=m;m=r;ie=1318;break c}if(a[(w&n)>>0]|0){g=m;m=r;u=L;r=t;ie=708;break d}}km(c[(v&p)>>2]|0,Rd);u=0}else{U=v+48|0;V=c[(U&p)+4>>2]|0;u=Rd;c[(u&p)>>2]=c[(U&p)>>2];c[(u&p)+4>>2]=V;u=0}while(0);V=Rd;T=c[(V&p)+4>>2]|0;C=L;c[(C&p)>>2]=c[(V&p)>>2];c[(C&p)+4>>2]=T;C=L;T=t;break}case 108:{ie=715;break}case 104:{g=m;m=r;u=L;r=t;ie=711;break d}case 107:case 106:{c[(ic&p)>>2]=(c[(ic&p)>>2]|0)+1;ie=715;break}case 105:{T=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;u=c[(T&p)>>2]|0;c[(Ed&p)>>2]=0;u=Hm(u,Ed)|0;V=c[(Ed&p)>>2]|0;a[(T&n)+25>>0]=V;a[(T&n)+26>>0]=0;c[(T&p)+60>>2]=0;T=c[(s+(t*20|0)&p)+8>>2]|0;C=L;T=(T|0)>0&(V|0)!=0?T+-1|0:t;break}case 7:case 6:{if(!(c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0)){g=m;m=r;S=z;T=s;U=W;V=X;u=L;r=t;break d}else ie=765;break}case 5:{g=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;c[(Fd&p)>>2]=0;w=c[(g&p)+56>>2]|0;if(a[(w&n)+56>>0]|0){u=Wm(c[(w&p)+20>>2]|0,Fd)|0;ie=766;break e}u=w+36|0;v=c[(u&p)>>2]|0;V=v+4|0;c[(u&p)>>2]=c[(V&p)>>2];c[(V&p)>>2]=0;if(!((c[(w&p)+40>>2]|0)!=0|(v|0)==0))mg(le,v);c[(Fd&p)>>2]=(c[(u&p)>>2]|0)==0&1;u=0;ie=766;break}case 9:case 8:{ie=765;break}case 110:case 109:{A=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;S=c[(s+(t*20|0)&p)+8>>2]|0;u=c[(A&p)>>2]|0;C=s+(t*20|0)+3|0;if(a[(C&n)>>0]&1)c[(ub&p)>>2]=(c[(ub&p)>>2]|0)+1;if((b[(z+(S*40|0)&o)+8>>1]&16384)!=0?(Ud=Rg(z+(S*40|0)|0)|0,(Ud|0)!=0):0){g=m;m=r;s=Ud;u=x;ie=1309;break c}H=c[(A&p)+56>>2]|0;T=z+(S*40|0)+12|0;P=c[(T&p)>>2]|0;if(!H){if(!(a[(C&n)>>0]&16))g=0;else g=c[(A&p)+12>>2]|0;u=Im(u,c[(z+(S*40|0)&p)+16>>2]|0,P,((P|0)<0)<<31>>31,10360,0,0,c[(s+(t*20|0)&p)+12>>2]|0,g)|0;c[(A&p)+60>>2]=0;C=L;T=t;break e}C=P;g=((P|0)<0)<<31>>31;A=0;do{A=A+1|0;C=mw(C|0,g|0,7)|0;g=G}while(((C|0)!=0|(g|0)!=0)&(A|0)<9);K=P+8|0;I=A+P|0;M=H+4|0;A=c[(M&p)>>2]|0;do if(!A)u=0;else{if(!(c[(H&p)+40>>2]|0)){C=H+44|0;V=c[(C&p)>>2]|0;if((V|0)<=(A|0)?!((c[2265]|0)!=0?(V|0)>(c[(H&p)>>2]|0):0):0){u=0;break}}else{V=c[(H&p)+48>>2]|0;if(!((V|0)!=0&(V+K|0)>(A|0))){u=0;break}C=H+44|0}u=Om(H)|0;c[(C&p)>>2]=0;c[(H&p)+48>>2]=0}while(0);C=H+36|0;J=H+44|0;c[(J&p)>>2]=(c[(J&p)>>2]|0)+I;J=H+8|0;if((I|0)>(c[(J&p)>>2]|0))c[(J&p)>>2]=I;E=H+40|0;J=c[(E&p)>>2]|0;if(!J){g=qg(K,((K|0)<0)<<31>>31)|0;if(!g){g=m;m=r;s=7;u=x;ie=1309;break c}c[(g&p)+4>>2]=c[(C&p)>>2]}else{g=H+48|0;I=c[(g&p)>>2]|0;K=I+K|0;F=H+52|0;H=c[(F&p)>>2]|0;if((K|0)>(H|0)){I=H;do I=I<<1;while((I|0)<(K|0));V=c[(M&p)>>2]|0;I=(I|0)>(V|0)?V:I;I=(I|0)<(K|0)?K:I;J=rg(J,I,((I|0)<0)<<31>>31)|0;if(!J){g=m;m=r;s=7;u=x;ie=1309;break c}A=J+((c[(C&p)>>2]|0)-(c[(E&p)>>2]|0))|0;c[(C&p)>>2]=A;c[(E&p)>>2]=J;c[(F&p)>>2]=I;I=c[(g&p)>>2]|0}else A=c[(C&p)>>2]|0;c[(g&p)>>2]=I+(P+15&-8);c[(J+I&p)+4>>2]=A-J;g=J+I|0}kw(g+8|0,c[(z+(S*40|0)&p)+16>>2]|0,c[(T&p)>>2]|0)|0;c[(g&p)>>2]=c[(T&p)>>2];c[(C&p)>>2]=g;C=L;T=t;break}case 112:{g=m;m=r;r=t;ie=801;break d}case 111:{v=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;g=c[(v&p)>>2]|0;c[(yd&p)>>2]=c[(v&p)+8>>2];b[(kc&o)>>1]=c[(s+(t*20|0)&p)+12>>2];a[(nc&n)>>0]=0;c[(oc&p)>>2]=z+((c[(s+(t*20|0)&p)+8>>2]|0)*40|0);u=Cm(g,yd,0,0,0,Gd)|0;if(!(c[(Gd&p)>>2]|u))u=Jm(g)|0;c[(v&p)+60>>2]=0;C=L;T=t;break}case 116:case 115:case 114:case 113:{u=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;c[(zd&p)>>2]=c[(u&p)+8>>2];b[(xc&o)>>1]=c[(s+(t*20|0)&p)+16>>2];a[(Y&n)>>0]=((J&255)<115)<<31>>31;c[(Z&p)>>2]=z+((c[(s+(t*20|0)&p)+12>>2]|0)*40|0);V=Sd;c[(V&p)>>2]=0;c[(V&p)+4>>2]=0;km(c[(u&p)>>2]|0,Sd);V=Sd;g=c[(V&p)>>2]|0;V=jw(g|0,c[(V&p)+4>>2]|0,-1,-1)|0;U=G;if(!(U>>>0>0|(U|0)==0&V>>>0>2147483646)){b[(_&o)>>1]=0;c[($&p)>>2]=le;c[(aa&p)>>2]=0;g=nm(c[(u&p)>>2]|0,0,g,1,qd)|0;if(!g){u=Km(c[(ea&p)>>2]|0,c[(ga&p)>>2]|0,zd,0)|0;if((b[(_&o)>>1]&9312)==0&(c[(aa&p)>>2]|0)==0)g=0;else{Qg(qd);g=0}}else u=0}else{c[(ke&p)>>2]=68730;c[(ke&p)+4>>2]=10788;bd(11,13600,ke);g=11;u=0}if((((a[(C&n)>>0]&1)==0?u+1|0:0-u|0)|0)>0){C=L;T=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;u=g}else{C=L;T=t;u=g}break}case 117:{O=L+8|0;b[(O&o)>>1]=1;if((c[(Zb&p)>>2]|0)>((c[(ha&p)>>2]|0)+1|0)){g=m;m=r;u=x;ie=832;break c}N=c[(s+(t*20|0)&p)+12>>2]|0;M=c[((c[(Xd&p)>>2]|0)+(N<<4)&p)+4>>2]|0;P=s+(t*20|0)+4|0;I=c[(P&p)>>2]|0;C=M+4|0;K=c[(C&p)>>2]|0;c[(K&p)+4>>2]=c[(M&p)>>2];c[(ke&p)>>2]=0;do if(!(c[(K&p)+8>>2]|0)){u=dl(K,I,ke,0)|0;if(!u){u=Xm(M,I,0)|0;if(u){g=c[(ke&p)>>2]|0;if(!g){A=0;break}Bg(c[(g&p)+68>>2]|0);A=0;break}if(I>>>0<=1){g=c[(ke&p)>>2]|0;pl(g,9);if(!g){u=0;A=0;break}Bg(c[(g&p)+68>>2]|0);u=0;A=0;break}if(!(a[(K&n)+17>>0]|0)){g=c[(ke&p)>>2]|0;u=Ym(c[(g&p)+52>>2]|0,g,c[(g&p)+72>>2]|0)|0;if(!g){A=0;break}Bg(c[(g&p)+68>>2]|0);A=0;break}J=c[(C&p)>>2]|0;c[(J&p)+4>>2]=c[(M&p)>>2];J=c[((c[(J&p)+12>>2]|0)&p)+56>>2]|0;J=d[(J&n)+53>>0]<<16|d[(J&n)+52>>0]<<24|d[(J&n)+54>>0]<<8|d[(J&n)+55>>0];C=c[(ke&p)>>2]|0;if((J|0)==(I|0)){u=Ym(c[(C&p)+52>>2]|0,C,c[(C&p)+72>>2]|0)|0;if(C)Bg(c[(C&p)+68>>2]|0);if(!u)A=0;else{A=0;break}}else{if(C)Bg(c[(C&p)+68>>2]|0);u=dl(K,J,Sd,0)|0;if(u){A=0;break}C=c[(Sd&p)>>2]|0;u=Zm(K,C,1,0,I,0)|0;if(C)Bg(c[(C&p)+68>>2]|0);if(u){A=0;break}c[(Sd&p)>>2]=0;u=dl(K,J,Sd,0)|0;C=c[(Sd&p)>>2]|0;if(u){if(!C){A=0;break}}else u=Ym(c[(C&p)+52>>2]|0,C,c[(C&p)+72>>2]|0)|0;Bg(c[(C&p)+68>>2]|0);if(!u)A=J;else{A=0;break}}H=((c[2514]|0)>>>0)/((c[(K&p)+32>>2]|0)>>>0)|0;F=H+1|0;I=K+36|0;while(1){C=J+-1|0;if((C|0)==(F|0)){J=C;continue}if(C>>>0<2)E=0;else{E=J+-3|0;E=E-((E>>>0)%(((((c[(I&p)>>2]|0)>>>0)/5|0)+1|0)>>>0)|0)|0;E=((E+1|0)==(H|0)?3:2)+E|0}if((E|0)==(C|0))J=C;else break}u=Dg(M,4,C)|0}else A=0}else{u=262;A=0}while(0);b[(O&o)>>1]=4;V=L;c[(V&p)>>2]=A;c[(V&p)+4>>2]=((A|0)<0)<<31>>31;if((u|0)==0&(A|0)!=0){g=m;K=N;C=P;m=r;u=L;r=t;ie=865;break d}else{C=L;T=t}break}case 118:{c[(jd&p)>>2]=0;g=s+(t*20|0)+12|0;u=Xm(c[((c[(Xd&p)>>2]|0)+(c[(s+(t*20|0)&p)+8>>2]<<4)&p)+4>>2]|0,c[(s+(t*20|0)&p)+4>>2]|0,(c[(g&p)>>2]|0)!=0?jd:0)|0;g=c[(g&p)>>2]|0;if((g|0)!=0?(Ic=c[(jd&p)>>2]|0,c[(ub&p)>>2]=(c[(ub&p)>>2]|0)+Ic,(g|0)>0):0){C=z+(g*40|0)|0;T=C;T=jw(c[(T&p)>>2]|0,c[(T&p)+4>>2]|0,Ic|0,((Ic|0)<0)<<31>>31|0)|0;c[(C&p)>>2]=T;c[(C&p)+4>>2]=G;C=L;T=t}else{C=L;T=t}break}case 121:case 120:{c[(vd&p)>>2]=0;u=Am(c[((c[(Xd&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<4)&p)+4>>2]|0,vd,J<<24>>24==121?1:2)|0;T=c[(vd&p)>>2]|0;C=L;c[(C&p)>>2]=T;c[(C&p)+4>>2]=((T|0)<0)<<31>>31;C=L;T=t;break}case 119:{g=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;u=c[(g&p)+56>>2]|0;if(u){g=m;m=r;J=L;r=t;ie=878;break d}u=c[(g&p)>>2]|0;C=L;T=t;u=Xm(c[(u&p)>>2]|0,c[(u&p)+60>>2]|0,0)|0;break}case 123:{C=L;T=t;u=an(le,c[(s+(t*20|0)&p)+4>>2]|0)|0;break}case 124:{g=m;m=r;u=L;r=t;ie=886;break d}case 122:{g=m;m=r;J=L;r=t;ie=881;break d}case 126:{g=m;m=r;u=L;r=t;ie=895;break d}case 125:{g=m;m=r;J=L;r=t;ie=887;break d}case 127:{g=m;m=r;u=L;ie=903;break d}case 128:{g=m;m=r;J=L;ie=947;break d}case 129:{w=c[(s+(t*20|0)&p)+4>>2]|0;v=z+(w*40|0)|0;w=z+(w*40|0)+8|0;g=b[(w&o)>>1]|0;do if(g&32){E=c[(v&p)>>2]|0;u=E+26|0;g=b[(u&o)>>1]|0;if(!(g&2)){if(!(g&1)){g=E+8|0;c[(g&p)>>2]=kn(c[(g&p)>>2]|0)|0;g=b[(u&o)>>1]|0}b[(u&o)>>1]=g&65535|2}C=E+8|0;A=c[(C&p)>>2]|0;if(!A){g=b[(w&o)>>1]|0;break}w=A;v=c[(w&p)>>2]|0;w=c[(w&p)+4>>2]|0;V=c[(A&p)+8>>2]|0;c[(C&p)>>2]=V;if(!V)Zk(E);u=c[(s+(t*20|0)&p)+12>>2]|0;g=z+(u*40|0)|0;u=z+(u*40|0)+8|0;if(!(b[(u&o)>>1]&9312)){ie=g;c[(ie&p)>>2]=v;c[(ie&p)+4>>2]=w;b[(u&o)>>1]=4;u=0;ie=19;break e}else{Zg(g,v,w);u=0;ie=19;break e}}while(0);if(!(g&9312))b[(w&o)>>1]=1;else vg(v);t=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;u=0;ie=19;break}case 130:{g=m;m=r;u=L;ie=966;break d}case 131:{g=m;m=r;u=L;r=t;ie=993;break d}case 132:{g=m;m=r;u=L;r=t;ie=1009;break d}case 134:{g=m;m=r;J=L;r=t;ie=1010;break d}case 135:{g=m;m=r;u=L;r=t;ie=1015;break d}case 136:{g=m;m=r;r=t;ie=1022;break d}case 137:{g=m;m=r;u=L;r=t;ie=1028;break d}case 138:{g=m;m=r;u=L;r=t;ie=1030;break d}case 139:{g=m;m=r;J=L;r=t;ie=1032;break d}case 140:{g=m;m=r;u=L;r=t;ie=1034;break d}case 141:{g=m;m=r;u=L;r=t;ie=1036;break d}case 10:{V=a[(s+(t*20|0)&n)+3>>0]|0;g=V&255;u=c[(Bb&p)>>2]|0;if(V<<24>>24){v=0;w=z+((c[(s+(t*20|0)&p)+8>>2]|0)*40|0)|0;while(1){c[(u+(v<<2)&p)>>2]=w;v=v+1|0;if((v|0)>=(g|0))break;else w=w+40|0}}V=c[(s+(t*20|0)&p)+16>>2]|0;c[(Ga&p)>>2]=V;U=c[(s+(t*20|0)&p)+12>>2]|0;c[(Ha&p)>>2]=z+(U*40|0);U=z+(U*40|0)+12|0;c[(U&p)>>2]=(c[(U&p)>>2]|0)+1;b[(Ia&o)>>1]=1;c[(Ja&p)>>2]=le;c[(Ka&p)>>2]=0;c[(Vc&p)>>2]=Md;c[(La&p)>>2]=0;c[(Ma&p)>>2]=f;c[(Na&p)>>2]=t;a[(Oa&n)>>0]=0;mc[c[(V&p)+16>>2]&63](Vc,g,u);if(!(c[(La&p)>>2]|0))u=0;else{c[(ke&p)>>2]=Sg(Md,1)|0;dh(je,le,10344,ke);u=c[(La&p)>>2]|0}do if((a[(Oa&n)>>0]|0)!=0?(Mc=c[(s+((t+-1|0)*20|0)&p)+4>>2]|0,(Mc|0)!=0):0){g=z+(Mc*40|0)|0;v=z+(Mc*40|0)+8|0;if(!(b[(v&o)>>1]&9312)){V=g;c[(V&p)>>2]=1;c[(V&p)+4>>2]=0;b[(v&o)>>1]=4;break}else{Zg(g,1,0);break}}while(0);if((b[(Ia&o)>>1]&9312)==0&(c[(Ka&p)>>2]|0)==0){C=L;T=t}else{Qg(Md);C=L;T=t}break}case 11:{c[(Rc&p)>>2]=0;c[(Pa&p)>>2]=-1;c[(Qa&p)>>2]=-1;g=Wh(le,c[(s+(t*20|0)&p)+4>>2]|0,c[(s+(t*20|0)&p)+8>>2]|0,Qa,Pa)|0;if((g|0)==5){c[(Rc&p)>>2]=1;g=0}v=0;w=z+((c[(s+(t*20|0)&p)+12>>2]|0)*40|0)|0;while(1){C=c[(Rc+(v<<2)&p)>>2]|0;A=((C|0)<0)<<31>>31;u=w+8|0;if(!(b[(u&o)>>1]&9312)){V=w;c[(V&p)>>2]=C;c[(V&p)+4>>2]=A;b[(u&o)>>1]=4}else Zg(w,C,A);v=v+1|0;if((v|0)==3){C=L;T=t;u=g;break}else w=w+40|0}break}case 142:{C=c[(s+(t*20|0)&p)+4>>2]|0;v=z+(C*40|0)|0;u=Yk(v,c[(s+(t*20|0)&p)+16>>2]|0)|0;if(u){c[(ke&p)>>2]=Sg(v,1)|0;dh(je,le,10344,ke)}Yl(v,xb)|0;w=e[(z+(C*40|0)&o)+8>>1]|0;if(w&18){g=c[(z+(C*40|0)&p)+12>>2]|0;if(w&16384)g=(c[(v&p)>>2]|0)+g|0;if((g|0)>(c[((c[(z+(C*40|0)&p)+32>>2]|0)&p)+88>>2]|0)){g=m;m=r;u=x;ie=1316;break c}else{C=L;T=t}}else{C=L;T=t}break}case 12:{g=c[(s+(t*20|0)&p)+12>>2]|0;L=c[((c[(Xd&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<4)&p)+4>>2]|0;I=c[(c[(L&p)+4>>2]&p)>>2]|0;J=a[(I&n)+5>>0]|0;H=J&255;g=(g|0)==-1?H:g;do if((d[(I&n)+16>>0]|0)>2)g=H;else if((c[(c[(I&p)+64>>2]&p)>>2]|0)!=0?(V=I+72|0,U=c[(V&p)+4>>2]|0,(U|0)>0|(U|0)==0&(c[(V&p)>>2]|0)>>>0>0):0){g=H;break}while(0);if(!(a[(I&n)+15>>0]|0))A=c[(I&p)+168>>2]|0;else A=10360;K=(g|0)==5;if(K)if(A){C=A;while(1)if(!(a[(C&n)>>0]|0))break;else C=C+1|0;if(C-A&1073741823){C=c[(c[(I&p)+60>>2]&p)>>2]|0;if(!(a[(I&n)+4>>0]|0))if((c[(C&p)>>2]|0)>1?!((c[(C&p)+52>>2]|0)==0|(g|0)==(H|0)):0)ie=1077;else{g=H;u=0}else ie=1076}else{g=H;u=0}}else{g=H;u=0}else ie=1076;if((ie|0)==1076){ie=0;if((g|0)==(H|0)){g=H;u=0}else ie=1077}do if((ie|0)==1077){ie=0;C=J<<24>>24==5;if(C|K){if(!(a[(ee&n)>>0]|0)){g=m;s=K;m=r;u=x;ie=1080;break c}if((c[(Zb&p)>>2]|0)>1){g=m;s=K;m=r;u=x;ie=1080;break c}if(!C){if(J<<24>>24==4)sn(I,2)|0}else{J=I+208|0;if(!(c[(J&p)>>2]|0)){c[(_c&p)>>2]=0;u=fl(I,1)|0;if(u)break;u=c[(I&p)>>2]|0;u=pc[c[(u&p)+32>>2]&31](u,c[(I&p)+212>>2]|0,0,_c)|0;if((u|0)==0&(c[(_c&p)>>2]|0)!=0)u=pn(I)|0;if(u)break;if(c[(J&p)>>2]|0)ie=1088}else ie=1088;if((ie|0)==1088){ie=0;u=qn(I)|0;if(u)break;u=rn(c[(J&p)>>2]|0,d[(I&n)+9>>0]|0,c[(I&p)+152>>2]|0,c[(I&p)+200>>2]|0)|0;c[(J&p)>>2]=0;if(u)break}sn(I,g)|0}u=Fg(L,K?2:1)|0}else u=0}while(0);g=sn(I,(u|0)==0?g:H)|0;C=c[(s+(t*20|0)&p)+8>>2]|0;J=z+(C*40|0)|0;b[(z+(C*40|0)&o)+8>>1]=2562;if((g|0)==6){c[(z+(C*40|0)&p)+16>>2]=0;g=0}else{v=c[(g<<2&p)+32216>>2]|0;c[(z+(C*40|0)&p)+16>>2]=v;g=v;while(1)if(!(a[(g&n)>>0]|0))break;else g=g+1|0;g=g-v&1073741823}c[(z+(C*40|0)&p)+12>>2]=g;a[(z+(C*40|0)&n)+10>>0]=1;Yl(J,xb)|0;C=J;T=t;break}case 13:{if(!(a[(ee&n)>>0]|0)){g=m;m=r;u=x;ie=1101;break c}if((c[(Ra&p)>>2]|0)>1){g=m;m=r;u=x;ie=1103;break c}S=c[(Tb&p)>>2]|0;N=c[(vb&p)>>2]|0;w=c[(wb&p)>>2]|0;v=c[(Sa&p)>>2]|0;c[(Tb&p)>>2]=S&-2762753|2107392;c[(Sa&p)>>2]=0;g=c[((c[(Xd&p)>>2]|0)&p)+4>>2]|0;P=g+4|0;I=a[((c[(c[(P&p)>>2]&p)>>2]|0)&n)+15>>0]|0;V=c[(Ub&p)>>2]|0;u=tn(le,je,(a[(_b&n)>>0]|0)==2?42432:42464)|0;J=c[(Ub&p)>>2]|0;if((J|0)>(V|0))M=(c[(Xd&p)>>2]|0)+(J+-1<<4)|0;else M=0;i:do if(!u){O=c[((c[(Xd&p)>>2]|0)+(J+-1<<4)&p)+4>>2]|0;un(O)|0;T=c[(P&p)>>2]|0;c[(T&p)+4>>2]=c[(g&p)>>2];T=(c[(T&p)+32>>2]|0)-(c[(T&p)+36>>2]|0)|0;u=tn(le,je,42488)|0;if(!u){u=tn(le,je,42528)|0;if(!u){u=yg(g,2)|0;if(!u){J=c[(P&p)>>2]|0;if((a[((c[(J&p)>>2]|0)&n)+5>>0]|0)==5)c[(Ta&p)>>2]=0;if(!(xg(O,c[(J&p)+32>>2]|0,T,0)|0)){if(I<<24>>24==0?(xg(O,c[(Ta&p)>>2]|0,T,0)|0)!=0:0){u=7;break}if(a[(ge&n)>>0]|0){u=7;break}J=a[(Ua&n)>>0]|0;do if(J<<24>>24>-1)J=J<<24>>24;else{J=c[(P&p)>>2]|0;c[(J&p)+4>>2]=c[(g&p)>>2];if(!(a[(J&n)+17>>0]|0)){J=0;break}J=(a[(J&n)+18>>0]|0)==0?1:2}while(0);vn(O,J)|0;u=wn(le,je,42536)|0;if(u)break;u=wn(le,je,42688)|0;if(u)break;u=wn(le,je,42792)|0;if(u)break;u=wn(le,je,42912)|0;if(u)break;u=wn(le,je,43112)|0;if(u)break;u=wn(le,je,43232)|0;if(u)break;u=tn(le,je,43392)|0;if(!u)J=0;else break;do{u=d[(J&n)+43576>>0]|0;wm(g,u,ad);u=Dg(O,u,(d[((J|1)&n)+43576>>0]|0)+(c[(ad&p)>>2]|0)|0)|0;J=J+2|0;if(u)break i}while((J|0)<10);H=c[(P&p)>>2]|0;c[(H&p)+4>>2]=c[(g&p)>>2];J=c[(O&p)>>2]|0;K=O+4|0;I=c[(K&p)>>2]|0;c[(I&p)+4>>2]=J;H=c[((c[(H&p)>>2]|0)&p)+60>>2]|0;F=c[(H&p)>>2]|0;if(F){V=c[(I&p)+32>>2]|0;V=sw(c[(I&p)+44>>2]|0,0,V|0,((V|0)<0)<<31>>31|0)|0;u=id;c[(u&p)>>2]=V;c[(u&p)+4>>2]=G;u=ac[c[(F&p)+40>>2]&63](H,11,id)|0;u=(u|0)==12?0:u;if(u)break;J=c[(O&p)>>2]|0}U=Tc+0|0;V=U+48|0;do{c[(U&p)>>2]=0;U=U+4|0}while((U|0)<(V|0));c[(Va&p)>>2]=J;c[(Wa&p)>>2]=O;c[(Xa&p)>>2]=g;c[(Ya&p)>>2]=1;gd(Tc,2147483647)|0;u=hd(Tc)|0;if(u){C=c[(c[((c[(Xa&p)>>2]|0)&p)+4>>2]&p)>>2]|0;if(a[(C&n)+15>>0]|0)break;if(a[(C&n)+12>>0]|0)break;xn(C);break}u=(c[(P&p)>>2]|0)+22|0;b[(u&o)>>1]=e[(u&o)>>1]&65533;u=un(O)|0;if(u)break;J=c[(K&p)>>2]|0;c[(J&p)+4>>2]=c[(O&p)>>2];if(!(a[(J&n)+17>>0]|0))E=0;else E=(a[(J&n)+18>>0]|0)==0?1:2;vn(g,E)|0;u=xg(g,c[((c[(K&p)>>2]|0)&p)+32>>2]|0,T,1)|0}else u=7}}}}while(0);c[(Tb&p)>>2]=S;c[(vb&p)>>2]=N;c[(wb&p)>>2]=w;c[(Sa&p)>>2]=v;xg(g,-1,-1,1)|0;a[(ee&n)>>0]=1;if(M){V=M+4|0;Ml(c[(V&p)>>2]|0);c[(V&p)>>2]=0;c[(M&p)+12>>2]=0}Eg(le);C=L;T=t;break}case 143:{V=c[((c[(Xd&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<4)&p)+4>>2]|0;I=c[(V&p)+4>>2]|0;c[(I&p)+4>>2]=c[(V&p)>>2];if(!(a[(I&n)+17>>0]|0)){g=m;m=r;u=L;ie=1157;break d}E=I+44|0;H=c[(E&p)>>2]|0;A=I+12|0;C=c[((c[(A&p)>>2]|0)&p)+56>>2]|0;C=d[(C&n)+37>>0]<<16|d[(C&n)+36>>0]<<24|d[(C&n)+38>>0]<<8|d[(C&n)+39>>0];F=El(I,H,C)|0;if(H>>>0>>0){g=m;m=r;u=x;ie=1145;break c}if(!C){g=m;m=r;u=L;ie=1157;break d}J=I+8|0;g=c[(J&p)>>2]|0;do if(g){C=g;do{if(C){ie=1150;break}C=c[2]|0}while((C|0)!=0);if((ie|0)==1150){ie=0;u=Fl(C,0,0)|0;if(u)break;g=c[(J&p)>>2]|0}if(g){do{V=g+72|0;a[(V&n)>>0]=d[(V&n)>>0]&251;g=c[(g&p)+8>>2]|0}while((g|0)!=0);ie=1154}else ie=1154}else ie=1154;while(0);if((ie|0)==1154){ie=0;u=Gl(I,F,H,0)|0;if(!u){u=Gg(c[((c[(A&p)>>2]|0)&p)+68>>2]|0)|0;V=c[((c[(A&p)>>2]|0)&p)+56>>2]|0;U=c[(E&p)>>2]|0;a[(V&n)+28>>0]=U>>>24;a[(V&n)+29>>0]=U>>>16;a[(V&n)+30>>0]=U>>>8;a[(V&n)+31>>0]=U}}if((u|0)==101){g=m;m=r;u=L;ie=1157;break d}else{C=L;T=t}break}case 145:{g=c[(s+(t*20|0)&p)+12>>2]|0;if((g&255|0)==0?(c[(Tb&p)>>2]&16384|0)!=0:0){g=m;m=r;S=z;T=s;U=W;V=X;u=L;r=t;break d}C=c[((c[(Xd&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<4)&p)+4>>2]|0;A=c[(s+(t*20|0)&p)+8>>2]|0;if(!(a[(C&n)+9>>0]|0)){g=m;m=r;S=z;T=s;U=W;V=X;u=L;r=t;break d}v=g+1&255;w=C+4|0;c[((c[(w&p)>>2]|0)&p)+4>>2]=c[(C&p)>>2];u=bl(C,A,v)|0;if(!u){g=m;m=r;u=L;r=t;ie=1166;break d}if((u&255|0)!=6){g=m;m=r;s=u;u=x;ie=1309;break c}c[(ke&p)>>2]=c[(s+(t*20|0)&p)+16>>2];dh(je,le,42224,ke);C=L;T=t;break}case 144:{g=m;m=r;u=L;r=t;ie=1158;break d}case 146:{J=c[(s+(t*20|0)&p)+16>>2]|0;v=c[(Za&p)>>2]|0;u=(v|0)>0;if(u?(c[(_a&p)>>2]|0)==0:0){u=6;ie=1188}else ie=1179;j:do if((ie|0)==1179){ie=0;if(!J){g=m;m=r;S=z;T=s;U=W;V=X;u=L;r=t;break d}g=J+8|0;w=(c[(c[(g&p)>>2]&p)>>2]|0)+56|0;if(c[(w&p)>>2]|0){if(u){C=c[(_a&p)>>2]|0;A=0;do{if((c[(C+(A<<2)&p)>>2]|0)==(J|0)){u=0;ie=1188;break j}A=A+1|0}while((A|0)<(v|0))}u=yn(le)|0;if(!u){u=lc[c[(w&p)>>2]&127](c[(g&p)>>2]|0)|0;if(!u){u=c[(Za&p)>>2]|0;c[(Za&p)>>2]=u+1;c[((c[(_a&p)>>2]|0)+(u<<2)&p)>>2]=J;u=J+12|0;c[(u&p)>>2]=(c[(u&p)>>2]|0)+1;u=0}}else ie=1188}else u=0}while(0);if((ie|0)==1188){ie=0;if(!J){C=L;T=t;break e}g=J+8|0}Mm(f,c[(g&p)>>2]|0);C=L;T=t;break}case 147:{U=Kd+0|0;V=U+40|0;do{c[(U&p)>>2]=0;U=U+4|0}while((U|0)<(V|0));c[($a&p)>>2]=le;g=_g(Kd,z+((c[(s+(t*20|0)&p)+8>>2]|0)*40|0)|0)|0;u=Sg(Kd,1)|0;k:do if(u){v=_h(le,u,c[((c[(Xd&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<4)&p)>>2]|0)|0;g=c[(c[(v&p)+56>>2]&p)>>2]|0;u=bn(cb,g,Xc)|0;if((u|0)!=0?(Oc=c[(u&p)+8>>2]|0,(Oc|0)!=0):0){g=zn(le,v,Oc,c[((c[(Oc&p)>>2]|0)&p)+4>>2]|0,je)|0;if(g)break;u=v+60|0;g=c[(u&p)>>2]|0;if(!g){g=0;break}while(1){if((c[(g&p)>>2]|0)==(le|0))break;g=c[(g&p)+24>>2]|0;if(!g){g=0;break k}}g=yn(le)|0;if(g)break;g=c[(u&p)>>2]|0;l:do if(!g)g=0;else while(1){if((c[(g&p)>>2]|0)==(le|0))break l;g=c[(g&p)+24>>2]|0;if(!g){g=0;break}}while(0);V=c[(Za&p)>>2]|0;c[(Za&p)>>2]=V+1;c[((c[(_a&p)>>2]|0)+(V<<2)&p)>>2]=g;g=g+12|0;c[(g&p)>>2]=(c[(g&p)>>2]|0)+1;g=0;break}c[(ke&p)>>2]=g;c[(je&p)>>2]=uh(le,28320,ke)|0;g=1}while(0);if((b[(ab&o)>>1]&9312)==0&(c[(bb&p)>>2]|0)==0){C=L;T=t;u=g}else{Qg(Kd);C=L;T=t;u=g}break}case 148:{c[(ha&p)>>2]=(c[(ha&p)>>2]|0)+1;g=_h(le,c[(s+(t*20|0)&p)+16>>2]|0,c[((c[(Xd&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<4)&p)>>2]|0)|0;m:do if((g|0)!=0?(Pc=g+60|0,Qc=c[(Pc&p)>>2]|0,(Qc|0)!=0):0){u=Qc;do{if((c[((c[(u&p)+8>>2]|0)&p)+4>>2]|0)>0){u=6;break m}u=c[(u&p)+24>>2]|0}while((u|0)!=0);g=Ok(le,g)|0;v=g+8|0;u=lc[c[((c[(c[(g&p)+4>>2]&p)>>2]|0)&p)+20>>2]&127](c[(v&p)>>2]|0)|0;if(!u){c[(v&p)>>2]=0;c[(Pc&p)>>2]=0;An(g);u=0}}else u=0;while(0);c[(ha&p)>>2]=(c[(ha&p)>>2]|0)+-1;C=L;T=t;break}case 149:{g=m;m=r;u=L;r=t;ie=1213;break d}case 150:{g=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;C=c[(s+(t*20|0)&p)+12>>2]|0;A=z+(C*40|0)|0;if(a[(g&n)+25>>0]|0){g=m;m=r;u=L;r=t;ie=1226;break d}V=g+32|0;u=c[(c[(V&p)>>2]&p)>>2]|0;U=c[(u&p)>>2]|0;c[(Id&p)>>2]=0;c[(Id&p)+4>>2]=0;c[(Id&p)+8>>2]=0;c[(Id&p)+12>>2]=0;c[(Id&p)+16>>2]=0;c[(Id&p)+20>>2]=0;c[(Id&p)+24>>2]=0;c[(Id&p)>>2]=A;v=z+(C*40|0)+8|0;b[(v&o)>>1]=e[(v&o)>>1]&48640|1;V=ac[c[(U&p)+44>>2]&63](c[(V&p)>>2]|0,Id,c[(s+(t*20|0)&p)+8>>2]|0)|0;Mm(f,u);u=c[(db&p)>>2]|0;u=(u|0)==0?V:u;Yl(A,xb)|0;v=e[(v&o)>>1]|0;if(v&18){g=c[(z+(C*40|0)&p)+12>>2]|0;if(v&16384)g=(c[(A&p)>>2]|0)+g|0;if((g|0)>(c[((c[(z+(C*40|0)&p)+32>>2]|0)&p)+88>>2]|0)){g=m;m=r;u=x;ie=1316;break c}else{C=L;T=t}}else{C=L;T=t}break}case 14:{A=c[(s+(t*20|0)&p)+12>>2]|0;C=A+1|0;F=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;J=c[(F&p)+32>>2]|0;I=c[(J&p)>>2]|0;H=c[(I&p)>>2]|0;E=c[(z+(C*40|0)&p)>>2]|0;A=c[(z+(A*40|0)&p)>>2]|0;g=c[(Bb&p)>>2]|0;if((E|0)>0){u=0;do{V=u;u=u+1|0;c[(g+(V<<2)&p)>>2]=z+((u+C|0)*40|0)}while((u|0)!=(E|0))}u=tc[c[(H&p)+32>>2]&31](J,A,c[(s+(t*20|0)&p)+16>>2]|0,E,g)|0;Mm(f,I);if((u|0)==0?(lc[c[(H&p)+40>>2]&127](J)|0)!=0:0)t=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;a[(F&n)+25>>0]=0;C=L;T=t;break}case 151:{g=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;if(a[(g&n)+25>>0]|0){g=m;m=r;S=z;T=s;U=W;V=X;u=L;r=t;break d}g=g+32|0;v=c[(g&p)>>2]|0;V=c[(v&p)>>2]|0;u=c[(V&p)>>2]|0;v=lc[c[(u&p)+36>>2]&127](v)|0;Mm(f,V);if((v|0)==0?(lc[c[(u&p)+40>>2]&127](c[(g&p)>>2]|0)|0)!=0:0){u=0;ie=19;break e}t=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;u=v;ie=19;break}case 15:{F=s+(t*20|0)+16|0;v=c[((c[(F&p)>>2]|0)&p)+8>>2]|0;if(!v){g=m;m=r;s=6;u=x;ie=1309;break c}g=c[(v&p)>>2]|0;if(!g){g=m;m=r;s=6;u=x;ie=1309;break c}I=c[(s+(t*20|0)&p)+8>>2]|0;E=g+52|0;C=c[(E&p)>>2]|0;if(!C){g=m;m=r;S=z;T=s;U=W;V=X;u=L;r=t;break d}H=a[(eb&n)>>0]|0;J=c[(Bb&p)>>2]|0;if((I|0)>0){C=0;A=z+((c[(s+(t*20|0)&p)+12>>2]|0)*40|0)|0;while(1){c[(J+(C<<2)&p)>>2]=A;C=C+1|0;if((C|0)==(I|0))break;else A=A+40|0}C=c[(E&p)>>2]|0}A=s+(t*20|0)+3|0;a[(eb&n)>>0]=a[(A&n)>>0]|0;u=pc[C&31](v,I,J,Hd)|0;a[(eb&n)>>0]=H;Mm(f,v);if(!u){if(c[(s+(t*20|0)&p)+4>>2]|0){l=Hd;r=c[(l&p)>>2]|0;l=c[(l&p)+4>>2]|0;V=ne;c[(V&p)>>2]=r;c[(V&p)+4>>2]=l}}else if((u&255|0)==19?(a[((c[(F&p)>>2]|0)&n)+16>>0]|0)!=0:0){g=a[(A&n)>>0]|0;if(g<<24>>24==5)g=2;else if(g<<24>>24==4){g=m;m=r;S=z;T=s;U=W;V=X;u=L;r=t;break d}a[(fe&n)>>0]=g;C=L;T=t;break e}c[(ub&p)>>2]=(c[(ub&p)>>2]|0)+1;C=L;T=t;break}case 152:{g=c[((c[(s+(t*20|0)&p)+16>>2]|0)&p)+8>>2]|0;u=c[(s+(t*20|0)&p)+4>>2]|0;v=z+(u*40|0)|0;if(((b[(z+(u*40|0)&o)+8>>1]&2)!=0?(a[(z+(u*40|0)&n)+10>>0]|0)!=1:0)?(Wd=Bn(v,1)|0,(Wd|0)!=0):0){g=m;m=r;s=Wd;u=x;ie=1309;break c}u=rc[c[((c[(g&p)>>2]|0)&p)+76>>2]&127](g,c[(z+(u*40|0)&p)+16>>2]|0)|0;Mm(f,g);b[(Yd&o)>>1]=b[(Yd&o)>>1]&-9;C=L;T=t;break}case 153:{g=m;m=r;u=L;r=t;ie=1257;break d}case 155:{g=m;m=r;ie=1264;break d}case 154:{g=m;m=r;J=L;r=t;ie=1258;break d}default:{g=m;m=r;S=z;T=s;U=W;V=X;u=L;r=t;break d}}while(0);n:do if((ie|0)==57){ie=0;w=L+8|0;b[(w&o)>>1]=2562;c[(L&p)+16>>2]=v;c[(L&p)+12>>2]=g;a[(L&n)+10>>0]=Jc;if((a[(s+(t*20|0)&n)+3>>0]|0)!=0?(V=z+((c[(s+(t*20|0)&p)+12>>2]|0)*40|0)|0,!((c[(V&p)>>2]|0)==0&(c[(V&p)+4>>2]|0)==0)):0){b[(w&o)>>1]=2576;C=L;T=t}else{C=L;T=t}}else if((ie|0)==536){if(b[(Yd&o)>>1]&8){g=m;m=r;s=516;u=x;ie=1309;break c}C=c[(s+(t*20|0)&p)+8>>2]|0;I=c[(s+(t*20|0)&p)+12>>2]|0;g=c[(Xd&p)>>2]|0;H=c[(g+(I<<4)&p)+4>>2]|0;if(J<<24>>24==55){g=a[((c[(g+(I<<4)&p)+12>>2]|0)&n)+76>>0]|0;if((g&255)<(d[(Mb&n)>>0]|0)){a[(Mb&n)>>0]=g;J=1}else J=1}else J=0;v=s+(t*20|0)+3|0;if(a[(v&n)>>0]&4){V=z+(C*40|0)|0;g=Vg(V)|0;c[(V&p)>>2]=g;c[(V&p)+4>>2]=G;V=z+(C*40|0)+8|0;b[(V&o)>>1]=e[(V&o)>>1]&48640|4;if((g|0)<2){g=m;m=r;s=x;ie=542;break c}else E=g}else E=C;u=s+(t*20|0)+1|0;C=a[(u&n)>>0]|0;if(C<<24>>24==-6){A=c[(s+(t*20|0)&p)+16>>2]|0;C=(e[(A&o)+8>>1]|0)+(e[(A&o)+6>>1]|0)|0}else if(C<<24>>24==-14){C=c[(s+(t*20|0)&p)+16>>2]|0;A=0}else{C=0;A=0}g=xm(f,c[(s+(t*20|0)&p)+4>>2]|0,C,I,1)|0;if(!g){y=ge;z=je;g=m;m=x;ie=1317;break a}a[(g&n)+25>>0]=1;V=g+27|0;a[(V&n)>>0]=a[(V&n)>>0]|8;c[(g&p)+28>>2]=E;ie=ym(H,E,J,A,c[(g&p)>>2]|0)|0;c[(g&p)+8>>2]=A;a[(V&n)>>0]=((a[(u&n)>>0]|0)!=-6&1)<<2&255|a[(V&n)>>0]&-5;u=ie;ie=548}else if((ie|0)==715){ie=0;M=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;V=c[(M&p)+56>>2]|0;do if(!V){u=c[(M&p)>>2]|0;g=qm(u)|0;if(!g)if(!(a[(u&n)+73>>0]|0)){v=1;g=0}else{v=0;g=Vm(u)|0}else v=1;a[(M&n)+26>>0]=0;c[(M&p)+60>>2]=0;a[(M&n)+25>>0]=v;if(!v){C=L;T=t;u=g;break n}}else{do if(!(a[(V&n)+56>>0]|0)){g=V+36|0;if(!(c[(g&p)>>2]|0)){g=0;ie=756}else{g=Nm(V+64|0,g)|0;ie=755}}else{g=Om(V)|0;if(!g){U=V+59|0;o:do if(!(a[(U&n)>>0]|0)){u=0;g=0}else{w=0;v=0;p:while(1){T=V+(w<<6)+64|0;c[(ke&p)>>2]=0;S=V+(w<<6)+92|0;C=c[(S&p)>>2]|0;J=((C|0)<0)<<31>>31;do if((C|0)>16){I=16;H=0;E=0;while(1){I=iw(I|0,H|0,4)|0;H=G;F=E+1|0;if(!((H|0)<(J|0)|(H|0)==(J|0)&I>>>0>>0)){H=E;break}else E=F}P=Sd;c[(P&p)>>2]=0;c[(P&p)+4>>2]=0;if((C|0)<17){ie=726;break}u=Qm(16)|0;c[(ke&p)>>2]=u;J=(u|0)==0;I=c[(S&p)>>2]|0;if(!((I|0)>0&(J^1))){g=J?7:0;break}N=(H|0)>0;P=0;O=0;do{c[(qd&p)>>2]=0;g=I-P|0;g=Pm(T,(g|0)<16?g:16,Sd,qd)|0;if(g){ie=747;break p}g=Rm(T,c[(qd&p)>>2]|0,pd)|0;do if(N){I=1;J=1;do{J=J<<4;I=I+1|0}while((I|0)!=(F|0));if(!g){H=1;I=u}else{J=c[(pd&p)>>2]|0;ie=743;break}while(1){K=(c[(I&p)+12>>2]|0)+((((O|0)/(J|0)|0|0)%16|0)*56|0)+48|0;I=c[(K&p)>>2]|0;if(!I){I=Qm(16)|0;if(!I){g=7;ie=738;break}g=Rm(T,I,K)|0;if(g){ie=738;break}I=c[(K&p)>>2]|0}I=c[(I&p)+4>>2]|0;H=H+1|0;if((H|0)>=(F|0)){ie=740;break}else J=(J|0)/16|0}if((ie|0)==738){J=c[(pd&p)>>2]|0;ie=743;break}else if((ie|0)==740){J=c[(pd&p)>>2]|0;ie=742;break}}else{J=c[(pd&p)>>2]|0;if(!g){I=u;ie=742}else ie=743}while(0);if((ie|0)==742){ie=0;c[((c[(I&p)+12>>2]|0)+(((O|0)%16|0)*56|0)&p)+48>>2]=J;g=0}else if((ie|0)==743){ie=0;Sm(J)}O=O+1|0;P=P+16|0;I=c[(S&p)>>2]|0}while((P|0)<(I|0)&(g|0)==0)}else{ie=Sd;c[(ie&p)>>2]=0;c[(ie&p)+4>>2]=0;ie=726}while(0);if((ie|0)==726){ie=0;g=Pm(T,C,Sd,ke)|0;u=c[(ke&p)>>2]|0}w=w+1|0;if(g){ie=746;break}if((w|0)>=(d[(U&n)>>0]|0)){g=0;break o}else v=u}if((ie|0)==746)Tm(u);else if((ie|0)==747)Tm(u);Tm(v);u=0}while(0);if(!g){g=Um(V+64|0,u)|0;c[(V&p)+20>>2]=u;if(!g){g=0;ie=755;break}else u=0}Tm(u);ie=755}else ie=756}while(0);if((ie|0)==755){ie=0;a[(M&n)+25>>0]=0;C=L;T=t;u=g;break n}else if((ie|0)==756){ie=0;a[(M&n)+25>>0]=1;break}}while(0);C=L;T=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;u=g}else if((ie|0)==765){u=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;c[(Fd&p)>>2]=c[(s+(t*20|0)&p)+12>>2];g=u;u=rc[c[(s+(t*20|0)&p)+16>>2]&127](c[(u&p)>>2]|0,Fd)|0;ie=766}while(0);do if((ie|0)==548){ie=0;a[((c[(g&p)>>2]|0)&n)+74>>0]=d[(v&n)>>0]&3;C=L;T=t}else if((ie|0)==766){c[(g&p)+60>>2]=0;g=g+25|0;if(!(c[(Fd&p)>>2]|0)){a[(g&n)>>0]=0;ie=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;t=f+(d[(s+(t*20|0)&n)+3>>0]<<2)+108|0;c[(t&p)>>2]=(c[(t&p)>>2]|0)+1;t=ie;ie=19;break}else{a[(g&n)>>0]=1;ie=19;break}}while(0);if((ie|0)==19){ie=0;if(c[(Cc&p)>>2]|0){u=je;g=m;m=x;break b}g=c[(be&p)>>2]|0;if(!((g|0)==0|m>>>0>>0)){y=c[(yc&p)>>2]|0;if(!(lc[g&127](c[(Zd&p)>>2]|0)|0)){y=y+m-((m>>>0)%(y>>>0)|0)|0;C=L;T=t}else{g=m;s=9;m=x;ie=1311;break a}}else{C=L;T=t}}t=T+1|0;if(!u){g=m;u=C}else{g=m;s=u;m=x;ie=1311;break a}}q:switch(ie|0){case 22:{ie=0;S=c[(s+(t*20|0)&p)+4>>2]|0;b[(z+(S*40|0)&o)+8>>1]=4;S=z+(S*40|0)|0;c[(S&p)>>2]=t;c[(S&p)+4>>2]=((t|0)<0)<<31>>31;S=z;T=s;U=W;V=X;r=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;break}case 23:{ie=0;S=c[(s+(t*20|0)&p)+4>>2]|0;r=c[(z+(S*40|0)&p)>>2]|0;b[(z+(S*40|0)&o)+8>>1]=128;S=z;T=s;U=W;V=X;break}case 24:{ie=0;r=c[(s+(t*20|0)&p)+4>>2]|0;u=z+(r*40|0)|0;T=(c[(s+(t*20|0)&p)+12>>2]|0)+-1|0;S=u;c[(S&p)>>2]=T;c[(S&p)+4>>2]=((T|0)<0)<<31>>31;b[(z+(r*40|0)&o)+8>>1]=4;r=c[(s+(t*20|0)&p)+8>>2]|0;S=z;T=s;U=W;V=X;r=(r|0)==0?t:r+-1|0;break}case 25:{ie=0;S=c[(s+(t*20|0)&p)+4>>2]|0;r=(c[(s+((c[(z+(S*40|0)&p)>>2]|0)*20|0)&p)+8>>2]|0)+-1|0;b[(z+(S*40|0)&o)+8>>1]=128;S=z;T=s;U=W;V=X;break}case 26:{ie=0;S=c[(s+(t*20|0)&p)+4>>2]|0;b[(z+(S*40|0)&o)+8>>1]=4;S=z+(S*40|0)|0;r=c[(S&p)>>2]|0;c[(S&p)>>2]=t;c[(S&p)+4>>2]=((t|0)<0)<<31>>31;S=z;T=s;U=W;V=X;break}case 27:{ie=0;if(!(b[(z+((c[(s+(r*20|0)&p)+12>>2]|0)*40|0)&o)+8>>1]&1)){S=z;T=s;U=W;V=X}else ie=28;break}case 44:{ie=0;T=c[(s+(r*20|0)&p)+4>>2]|0;S=u;c[(S&p)>>2]=T;c[(S&p)+4>>2]=((T|0)<0)<<31>>31;S=z;T=s;U=W;V=X;break}case 45:{ie=0;U=c[(s+(r*20|0)&p)+16>>2]|0;T=c[(U&p)+4>>2]|0;S=u;c[(S&p)>>2]=c[(U&p)>>2];c[(S&p)+4>>2]=T;S=z;T=s;U=W;V=X;break}case 46:{ie=0;b[(u&o)+8>>1]=8;h[(u&q)>>3]=+h[(c[(s+(r*20|0)&p)+16>>2]&q)>>3];S=z;T=s;U=W;V=X;break}case 60:{ie=0;J=(c[(s+(r*20|0)&p)+12>>2]|0)-(c[(s+(r*20|0)&p)+8>>2]|0)|0;t=(c[(s+(r*20|0)&p)+4>>2]|0)!=0?257:1;b[(u&o)+8>>1]=t;if((J|0)>0){w=J;A=u;do{v=A+48|0;A=A+40|0;if(!(b[(v&o)>>1]&9312))b[(v&o)>>1]=1;else vg(A);b[(v&o)>>1]=t;w=w+-1|0}while((w|0)>0);S=z;T=s;U=W;V=X;u=u+(J*40|0)|0}else{S=z;T=s;U=W;V=X}break}case 65:{ie=0;u=c[(s+(r*20|0)&p)+4>>2]|0;S=z+(u*40|0)+8|0;b[(S&o)>>1]=e[(S&o)>>1]&65406|1;S=z;T=s;U=W;V=X;u=z+(u*40|0)|0;break}case 66:{ie=0;Xg(u,c[(s+(r*20|0)&p)+16>>2]|0,c[(s+(r*20|0)&p)+4>>2]|0,0,0)|0;a[(u&n)+10>>0]=Jc;S=z;T=s;U=W;V=X;break}case 67:{ie=0;C=(c[(s+(r*20|0)&p)+4>>2]|0)+-1|0;A=c[(Ab&p)>>2]|0;w=A+(C*40|0)|0;v=e[(A+(C*40|0)&o)+8>>1]|0;if(v&18){t=c[(A+(C*40|0)&p)+12>>2]|0;if(v&16384)t=(c[(w&p)>>2]|0)+t|0;if((t|0)>(c[((c[(A+(C*40|0)&p)+32>>2]|0)&p)+88>>2]|0)){t=r;u=x;ie=1316;break c}}Zl(u,w,2048);S=z;T=s;U=W;V=X;break}case 72:{ie=0;t=c[(s+(r*20|0)&p)+12>>2]|0;v=c[(s+(r*20|0)&p)+8>>2]|0;J=t+v|0;u=z+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)|0;v=z+(v*40|0)|0;while(1){_l(v,u);t=t+-1|0;if(!t)break;else{u=u+40|0;v=v+40|0}}S=z;T=s;U=W;V=X;u=z+(J*40|0)|0;break}case 74:{ie=0;r=c[(s+(t*20|0)&p)+12>>2]|0;u=z+((c[(s+(t*20|0)&p)+4>>2]|0)*40|0)|0;J=z+((c[(s+(t*20|0)&p)+8>>2]|0)*40|0)|0;while(1){Zl(J,u,4096);if((b[(J&o)+8>>1]&4096)!=0?(Vl(J)|0)!=0:0){y=ge;z=je;r=m;m=x;ie=1317;break a}if(!r){S=z;T=s;U=W;V=X;u=J;r=t;break q}r=r+-1|0;u=u+40|0;J=J+40|0}}case 79:{ie=0;u=z+((c[(s+(r*20|0)&p)+8>>2]|0)*40|0)|0;Zl(u,z+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)|0,4096);S=z;T=s;U=W;V=X;break}case 94:{ie=0;K=c[(s+(t*20|0)&p)+4>>2]|0;J=z+(K*40|0)|0;L=c[(s+(t*20|0)&p)+8>>2]|0;I=z+(L*40|0)|0;M=c[(s+(t*20|0)&p)+12>>2]|0;u=z+(M*40|0)|0;H=z+(K*40|0)+8|0;E=b[(H&o)>>1]|0;F=z+(L*40|0)+8|0;C=b[(F&o)>>1]|0;if((C|E)&1){r=z+(M*40|0)+8|0;if(!(b[(r&o)>>1]&9312)){b[(r&o)>>1]=1;S=z;T=s;U=W;V=X;r=t;break}else{vg(u);S=z;T=s;U=W;V=X;r=t;break}}if(E&16384){if(Rg(J)|0){y=ge;z=je;r=m;m=x;ie=1317;break a}C=b[(F&o)>>1]|0}if((C&16384)!=0?(Rg(I)|0)!=0:0){y=ge;z=je;r=m;m=x;ie=1317;break a}if((b[(H&o)>>1]&18)==0?(bm(J,Jc,0)|0)!=0:0){y=ge;z=je;r=m;m=x;ie=1317;break a}if((b[(F&o)>>1]&18)==0?(bm(I,Jc,0)|0)!=0:0){y=ge;z=je;r=m;m=x;ie=1317;break a}E=z+(K*40|0)+12|0;A=z+(L*40|0)+12|0;r=(c[(A&p)>>2]|0)+(c[(E&p)>>2]|0)|0;if((r|0)>(c[(zb&p)>>2]|0)){u=x;ie=1316;break c}v=(M|0)==(L|0);if(eh(u,r+2|0,v&1)|0){y=ge;z=je;r=m;m=x;ie=1317;break a}w=z+(M*40|0)+8|0;b[(w&o)>>1]=e[(w&o)>>1]&48640|2;C=z+(M*40|0)+16|0;if(!v)kw(c[(C&p)>>2]|0,c[(z+(L*40|0)&p)+16>>2]|0,c[(A&p)>>2]|0)|0;kw((c[(C&p)>>2]|0)+(c[(A&p)>>2]|0)|0,c[(z+(K*40|0)&p)+16>>2]|0,c[(E&p)>>2]|0)|0;a[((c[(C&p)>>2]|0)+r&n)>>0]=0;a[((c[(C&p)>>2]|0)+r&n)+1>>0]=0;b[(w&o)>>1]=e[(w&o)>>1]|512;c[(z+(M*40|0)&p)+12>>2]=r;a[(z+(M*40|0)&n)+10>>0]=Jc;S=z;T=s;U=W;V=X;r=t;break}case 112:{ie=0;V=c[(s+(r*20|0)&p)+4>>2]|0;N=z+(V*40|0)|0;S=cm(N)|0;w=c[(s+(r*20|0)&p)+8>>2]|0;O=z+(w*40|0)|0;T=cm(O)|0;U=c[(s+(r*20|0)&p)+12>>2]|0;u=z+(U*40|0)|0;r:do if(!((b[(z+(w*40|0)&o)+8>>1]|b[(z+(V*40|0)&o)+8>>1])&1)){s:do if(!((S&4&T)<<16>>16))L=0;else{t=N;C=c[(t&p)>>2]|0;t=c[(t&p)+4>>2]|0;F=O;v=c[(F&p)>>2]|0;F=c[(F&p)+4>>2]|0;J=d[(P&n)>>0]|0;t:do if((J|0)==89){if((t|0)>-1|(t|0)==-1&C>>>0>4294967295){V=dw(-1,2147483647,v|0,F|0)|0;w=G;if(((F|0)>0|(F|0)==0&v>>>0>0)&((w|0)<(t|0)|(w|0)==(t|0)&V>>>0>>0)){L=1;break s}}else if((F|0)<0?(w=dw(1,-2147483648,v|0,F|0)|0,A=G,V=jw(C|0,t|0,1,0)|0,M=G,(A|0)>(M|0)|(A|0)==(M|0)&w>>>0>V>>>0):0){L=1;break s}v=jw(v|0,F|0,C|0,t|0)|0;t=G}else if((J|0)==91){L=qw(v|0,F|0,0,1)|0;K=G;E=rw(v|0,F|0,0,1)|0;A=G;J=qw(C|0,t|0,0,1)|0;I=G;M=rw(C|0,t|0,0,1)|0;w=G;V=jw(v|0,F|0,-1,0)|0;pe=G;H=jw(C|0,t|0,-1,0)|0;qe=G;H=qe>>>0<1|(qe|0)==1&H>>>0<4294967295;do if(pe>>>0<1|(pe|0)==1&V>>>0<4294967295)if(H){v=sw(v|0,F|0,C|0,t|0)|0;t=G;break t}else{H=sw(J|0,I|0,E|0,A|0)|0;F=G;break}else{if(!H){L=1;break s}H=sw(M|0,w|0,L|0,K|0)|0;F=G}while(0);V=jw(H|0,F|0,-2147483648,0)|0;v=G;if(v>>>0>0|(v|0)==0&V>>>0>4294967295){L=1;break s}J=sw(M|0,w|0,E|0,A|0)|0;I=G;if((I|0)>-1|(I|0)==-1&J>>>0>4294967295){V=dw(-1,2147483647,0,H|0)|0;w=G;if(((F|0)>0|(F|0)==0&H>>>0>0)&((w|0)<(I|0)|(w|0)==(I|0)&V>>>0>>0)){L=1;break s}}else if((F|0)<0?(w=dw(1,-2147483648,0,H|0)|0,t=G,V=jw(J|0,I|0,1,0)|0,v=G,(t|0)>(v|0)|(t|0)==(v|0)&w>>>0>V>>>0):0){L=1;break s}v=jw(0,H|0,J|0,I|0)|0;t=G}else if((J|0)==90){if((C|0)==0&(t|0)==-2147483648){if((F|0)>-1|(F|0)==-1&v>>>0>4294967295){L=1;break s}t=F^-2147483648;break}if((t|0)<0|(t|0)==0&C>>>0<1){V=dw(0,0,C|0,t|0)|0;M=G;w=dw(-1,2147483647,v|0,F|0)|0;A=G;if(((F|0)>0|(F|0)==0&v>>>0>0)&((A|0)<(M|0)|(A|0)==(M|0)&w>>>0>>0)){L=1;break s}}else if((F|0)<0?(w=dw(1,-2147483648,v|0,F|0)|0,A=G,V=dw(1,0,C|0,t|0)|0,M=G,(A|0)>(M|0)|(A|0)==(M|0)&w>>>0>V>>>0):0){L=1;break s}v=dw(v|0,F|0,C|0,t|0)|0;t=G}else if((J|0)==92){if((C|0)==0&(t|0)==0)break r;if((C|0)==-1&(t|0)==-1&((v|0)==0&(F|0)==-2147483648)){L=1;break s}v=qw(v|0,F|0,C|0,t|0)|0;t=G}else{if((C|0)==-1){if((t|0)==-1){C=1;t=0}}else if((C|0)==0?(t|0)==0:0)break r;v=rw(v|0,F|0,C|0,t|0)|0;t=G}while(0);S=u;c[(S&p)>>2]=v;c[(S&p)+4>>2]=t;S=z+(U*40|0)+8|0;b[(S&o)>>1]=e[(S&o)>>1]&48640|4;S=z;T=s;U=W;V=X;break q}while(0);D=+Ug(N);B=+Ug(O);C=d[(P&n)>>0]|0;if((C|0)==89)B=D+B;else if((C|0)==90)B=B-D;else if((C|0)==91)B=D*B;else if((C|0)==92){if(D==0.0)break;B=B/D}else{E=~~D>>>0;C=+R(D)>=1.0?(D>0.0?~~+da(+Q(D/4294967296.0),4294967295.0)>>>0:~~+ba((D-+(~~D>>>0))/4294967296.0)>>>0):0;I=~~B>>>0;J=+R(B)>=1.0?(B>0.0?~~+da(+Q(B/4294967296.0),4294967295.0)>>>0:~~+ba((B-+(~~B>>>0))/4294967296.0)>>>0):0;if(!E){if(!C)break}else if((E|0)==-1?(C|0)==-1:0){E=1;C=0}V=rw(I|0,J|0,E|0,C|0)|0;B=+(V>>>0)+4294967296.0*+(G|0)}h[(ke&q)>>3]=B;h[(Sd&q)>>3]=+h[(ke&q)>>3];if(!(+h[(ke&q)>>3]!=+h[(Sd&q)>>3])){h[(u&q)>>3]=B;V=z+(U*40|0)+8|0;b[(V&o)>>1]=e[(V&o)>>1]&48640|8;if(((T|S)&8)!=0|L<<24>>24!=0){S=z;T=s;U=W;V=X;break q}dm(u);S=z;T=s;U=W;V=X;break q}}while(0);t=z+(U*40|0)+8|0;if(!(b[(t&o)>>1]&9312)){b[(t&o)>>1]=1;S=z;T=s;U=W;V=X;break}else{vg(u);S=z;T=s;U=W;V=X;break}}case 166:{ie=0;t=c[(s+(r*20|0)&p)+4>>2]|0;if(t){u=z+(t*40|0)|0;t=z+(t*40|0)+8|0;if(!(b[(t&o)>>1]&9312)){S=u;c[(S&p)>>2]=0;c[(S&p)+4>>2]=0;b[(t&o)>>1]=4;S=z;T=s;U=W;V=X;u=J;break}else{Zg(u,0,0);S=z;T=s;U=W;V=X;u=J;break}}else{S=z;T=s;U=W;V=X;u=J}break}case 184:{ie=0;C=c[(s+(r*20|0)&p)+4>>2]|0;t=c[(s+(r*20|0)&p)+8>>2]|0;K=c[(s+(r*20|0)&p)+12>>2]|0;u=z+(K*40|0)|0;if((b[(z+(t*40|0)&o)+8>>1]|b[(z+(C*40|0)&o)+8>>1])&1){t=z+(K*40|0)+8|0;if(!(b[(t&o)>>1]&9312)){b[(t&o)>>1]=1;S=z;T=s;U=W;V=X;break}else{vg(u);S=z;T=s;U=W;V=X;break}}A=Vg(z+(t*40|0)|0)|0;L=G;J=Vg(z+(C*40|0)|0)|0;I=G;t=a[(H&n)>>0]|0;C=t&255;do if(t<<24>>24==86){A=J|A;t=I|L}else if(t<<24>>24!=85)if(!((J|0)==0&(I|0)==0)){if((I|0)<0){t=175-C&255;C=dw(0,0,J|0,I|0)|0;if((I|0)>-1|(I|0)==-1&J>>>0>4294967232){I=G;ie=194}}else{C=J;ie=194}if((ie|0)==194){ie=0;if(!((I|0)>0|(I|0)==0&C>>>0>63)){if(t<<24>>24==87){A=iw(A|0,L|0,C|0)|0;t=G;break}A=mw(A|0,L|0,C|0)|0;t=G;if((L|0)>=0)break;V=dw(64,0,C|0,I|0)|0;V=iw(-1,-1,V|0)|0;A=V|A;t=G|t;break}}if((L|0)>-1|(L|0)==-1&A>>>0>4294967295){A=0;t=0}else{t=(t<<24>>24!=87)<<31>>31;A=t;t=((t|0)<0)<<31>>31}}else t=L;else{A=J&A;t=I&L}while(0);S=u;c[(S&p)>>2]=A;c[(S&p)+4>>2]=t;S=z+(K*40|0)+8|0;b[(S&o)>>1]=e[(S&o)>>1]&48640|4;S=z;T=s;U=W;V=X;break}case 202:{ie=0;T=c[(s+(r*20|0)&p)+4>>2]|0;S=z+(T*40|0)|0;U=Vg(S)|0;T=z+(T*40|0)+8|0;b[(T&o)>>1]=e[(T&o)>>1]&48640|4;T=c[(s+(r*20|0)&p)+8>>2]|0;T=jw(U|0,G|0,T|0,((T|0)<0)<<31>>31|0)|0;c[(S&p)>>2]=T;c[(S&p)+4>>2]=G;S=z;T=s;U=W;V=X;break}case 203:{ie=0;u=c[(s+(r*20|0)&p)+4>>2]|0;v=z+(u*40|0)+8|0;t=b[(v&o)>>1]|0;if(!(t&4)){fm(z+(u*40|0)|0,67,Jc);t=b[(v&o)>>1]|0;if(!(t&4)){E=c[(s+(r*20|0)&p)+8>>2]|0;if(!E){t=r;u=20;ie=1318;break c}S=z;T=s;U=W;V=X;u=J;r=E+-1|0;break}}b[(v&o)>>1]=t&48640|4;S=z;T=s;U=W;V=X;u=J;break}case 208:{ie=0;t=c[(s+(r*20|0)&p)+4>>2]|0;u=z+(t*40|0)+8|0;if(!(b[(u&o)>>1]&4)){S=z;T=s;U=W;V=X;u=J}else{S=z+(t*40|0)|0;h[(S&q)>>3]=+Ug(S);b[(u&o)>>1]=e[(u&o)>>1]&48640|8;S=z;T=s;U=W;V=X;u=J}break}case 213:{ie=0;N=c[(s+(t*20|0)&p)+4>>2]|0;L=z+(N*40|0)|0;w=c[(s+(t*20|0)&p)+12>>2]|0;K=z+(w*40|0)|0;N=z+(N*40|0)+8|0;F=b[(N&o)>>1]|0;w=z+(w*40|0)+8|0;M=b[(w&o)>>1]|0;H=F&65535;A=M&65535;v=s+(t*20|0)+3|0;J=d[(v&n)>>0]|0;do if(!((M|F)&1)){J=J&71;if(J>>>0>66){if((H&14|0)==2){rh(L,0);A=b[(w&o)>>1]|0}else A=M;if((A&14)==2){rh(K,0);J=F;E=M}else{J=F;E=M}}else if((J|0)==66){if((H&2|0)!=0|(H&12|0)==0){I=M;J=F}else{bm(L,Jc,1)|0;I=b[(w&o)>>1]|0;J=(e[(N&o)>>1]&65024|H&511)&65535}V=I&65535;if((V&2|0)!=0|(V&12|0)==0)E=M;else{bm(K,Jc,1)|0;E=(e[(w&o)>>1]&65024|A&511)&65535}}else{J=F;E=M}if(b[(N&o)>>1]&16384){Rg(L)|0;J=J&49151}if(b[(w&o)>>1]&16384){Rg(K)|0;E=E&49151}if(a[(ge&n)>>0]|0){y=ge;z=je;r=m;m=x;ie=1317;break a}V=hm(K,L,c[(s+(t*20|0)&p)+16>>2]|0)|0;I=a[(C&n)>>0]|0;r=t;C=V}else{if(J&128){J=F;E=M;r=t;C=(F&1&M)<<16>>16!=0&(A&256|0)==0&1^1;break}if(J&32){u=c[(s+(t*20|0)&p)+8>>2]|0;S=z+(u*40|0)+8|0;b[(S&o)>>1]=e[(S&o)>>1]&48640|1;S=z;T=s;U=W;V=X;u=z+(u*40|0)|0;r=t;break q}if(!(J&16)){S=z;T=s;U=W;V=X;r=t;break q}S=z;T=s;U=W;V=X;r=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;break q}while(0);switch(I&255|0){case 79:{C=(C|0)==0&1;break}case 78:{C=(C|0)!=0&1;break}case 82:{C=C>>>31;break}case 81:{C=(C|0)<1&1;break}case 80:{C=(C|0)>0&1;break}default:C=C>>>31^1}if(!(a[(v&n)>>0]&32)){if(C)r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0}else{V=c[(s+(r*20|0)&p)+8>>2]|0;u=z+(V*40|0)|0;V=z+(V*40|0)+8|0;b[(V&o)>>1]=e[(V&o)>>1]&48640|4;V=u;c[(V&p)>>2]=C;c[(V&p)+4>>2]=0}b[(N&o)>>1]=J;b[(w&o)>>1]=E;S=z;T=s;U=W;V=X;break}case 248:{ie=0;S=z;T=s;U=c[(s+(r*20|0)&p)+16>>2]|0;V=X;break}case 249:{ie=0;w=(a[(s+(r*20|0)&n)+3>>0]&1)==0?0:W;F=c[(s+(r*20|0)&p)+12>>2]|0;H=c[(s+(r*20|0)&p)+16>>2]|0;I=c[(s+(r*20|0)&p)+4>>2]|0;J=c[(s+(r*20|0)&p)+8>>2]|0;if((F|0)>0){t=(w|0)==0;v=H+16|0;E=0;while(1){if(t)A=E;else A=c[(w+(E<<2)&p)>>2]|0;C=a[((c[(v&p)>>2]|0)+E&n)>>0]|0;A=hm(z+((A+I|0)*40|0)|0,z+((A+J|0)*40|0)|0,c[(H+(E<<2)&p)+20>>2]|0)|0;E=E+1|0;if(A)break;if((E|0)>=(F|0)){S=z;T=s;U=0;V=0;break q}}S=z;T=s;U=0;V=C<<24>>24==0?A:0-A|0}else{S=z;T=s;U=0;V=X}break}case 256:{ie=0;if((X|0)<0){S=z;T=s;U=W;V=X;r=(c[(s+(t*20|0)&p)+4>>2]|0)+-1|0;break}if(!X){S=z;T=s;U=W;V=0;r=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;break}else{S=z;T=s;U=W;V=X;r=(c[(s+(t*20|0)&p)+12>>2]|0)+-1|0;break}}case 261:{ie=0;t=c[(s+(r*20|0)&p)+4>>2]|0;if(!(b[(z+(t*40|0)&o)+8>>1]&1)){u=Vg(z+(t*40|0)|0)|0;u=(u|0)!=0|(G|0)!=0?3:0}else u=6;t=c[(s+(r*20|0)&p)+8>>2]|0;if(!(b[(z+(t*40|0)&o)+8>>1]&1)){t=Vg(z+(t*40|0)|0)|0;t=((t|0)!=0|(G|0)!=0)&1}else t=2;t=a[(((a[(C&n)>>0]|0)==72?41680:41696)+t+u&n)>>0]|0;u=c[(s+(r*20|0)&p)+12>>2]|0;J=z+(u*40|0)|0;if(t<<24>>24==2){S=z+(u*40|0)+8|0;b[(S&o)>>1]=e[(S&o)>>1]&48640|1;S=z;T=s;U=W;V=X;u=J;break}else{S=J;c[(S&p)>>2]=t&255;c[(S&p)+4>>2]=0;S=z+(u*40|0)+8|0;b[(S&o)>>1]=e[(S&o)>>1]&48640|4;S=z;T=s;U=W;V=X;u=J;break}}case 268:{ie=0;t=c[(s+(r*20|0)&p)+4>>2]|0;u=c[(s+(r*20|0)&p)+8>>2]|0;J=z+(u*40|0)|0;u=z+(u*40|0)+8|0;if(!(b[(u&o)>>1]&9312))b[(u&o)>>1]=1;else vg(J);if(!(b[(z+(t*40|0)&o)+8>>1]&1)){b[(u&o)>>1]=4;T=Vg(z+(t*40|0)|0)|0;S=J;c[(S&p)>>2]=(T|0)==0&(G|0)==0&1;c[(S&p)+4>>2]=0;S=z;T=s;U=W;V=X;u=J}else{S=z;T=s;U=W;V=X;u=J}break}case 273:{ie=0;t=c[(s+(r*20|0)&p)+4>>2]|0;u=c[(s+(r*20|0)&p)+8>>2]|0;J=z+(u*40|0)|0;u=z+(u*40|0)+8|0;if(!(b[(u&o)>>1]&9312))b[(u&o)>>1]=1;else vg(J);if(!(b[(z+(t*40|0)&o)+8>>1]&1)){b[(u&o)>>1]=4;T=Vg(z+(t*40|0)|0)|0;S=J;c[(S&p)>>2]=~T;c[(S&p)+4>>2]=~G;S=z;T=s;U=W;V=X;u=J}else{S=z;T=s;U=W;V=X;u=J}break}case 278:{ie=0;t=(c[(Hb&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]|0)|0;if(!(a[(t&n)>>0]|0)){a[(t&n)>>0]=1;S=z;T=s;U=W;V=X;break}else{S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0;break}}case 281:{ie=0;t=c[(s+(r*20|0)&p)+4>>2]|0;if(!(b[(z+(t*40|0)&o)+8>>1]&1)){t=+Ug(z+(t*40|0)|0)!=0.0;t=(t^(a[(C&n)>>0]|0)==46)&1}else t=c[(s+(r*20|0)&p)+12>>2]|0;if(!t){S=z;T=s;U=W;V=X}else{S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0}break}case 286:{ie=0;if(!(b[(z+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)&o)+8>>1]&1)){S=z;T=s;U=W;V=X}else{S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0}break}case 288:{ie=0;if(!(b[(z+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)&o)+8>>1]&1)){S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0}else{S=z;T=s;U=W;V=X}break}case 290:{ie=0;T=c[(s+(t*20|0)&p)+8>>2]|0;M=c[(s+(t*20|0)&p)+12>>2]|0;A=z+(M*40|0)|0;S=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;w=c[(S&p)+80>>2]|0;v=c[(S&p)>>2]|0;if(!(a[(S&n)+26>>0]|0)){if((v|0)!=0?(a[(v&n)+73>>0]|0)!=1:0){Td=jm(S)|0;ie=295}}else{Td=im(S)|0;ie=295}if((ie|0)==295?(ie=0,(Td|0)!=0):0){u=Td;ie=1318;break c}L=S+60|0;C=c[($d&p)>>2]|0;u:do if((c[(L&p)>>2]|0)==(C|0)){C=b[(S&o)+22>>1]|0;if((C&65535|0)>(T|0))ie=350;else{I=S+72|0;ie=318}}else{do if(a[(S&n)+25>>0]|0){if(!v){J=c[(S&p)+16>>2]|0;F=c[(z+(J*40|0)&p)+12>>2]|0;c[(S&p)+68>>2]=F;c[(S&p)+64>>2]=F;J=c[(z+(J*40|0)&p)+16>>2]|0;K=S+76|0;c[(K&p)>>2]=J;break}r=z+(M*40|0)+8|0;if(!(b[(r&o)>>1]&9312)){b[(r&o)>>1]=1;break u}else{vg(A);break u}}else{if(!(a[(S&n)+27>>0]&4)){km(v,td);I=e[(v&o)+40>>1]|0;J=c[(v&p)+32>>2]|0;c[(S&p)+76>>2]=J;C=c[(td&p)>>2]|0;c[(S&p)+64>>2]=C}else{C=S+64|0;lm(v,C);I=e[(v&o)+40>>1]|0;J=c[(v&p)+32>>2]|0;c[(S&p)+76>>2]=J;C=c[(C&p)>>2]|0}c[(S&p)+68>>2]=C>>>0>I>>>0?I:C;if(C>>>0>(c[(zb&p)>>2]|0)>>>0){u=x;ie=1316;break c}K=S+76|0;C=c[($d&p)>>2]|0;F=I}while(0);c[(L&p)>>2]=C;C=a[(J&n)>>0]|0;if(C<<24>>24>-1){H=C&255;c[(kd&p)>>2]=H;J=1}else{J=mm(J,kd)|0;H=c[(kd&p)>>2]|0}I=S+72|0;c[(I&p)>>2]=J&255;b[(S&o)+22>>1]=0;c[(w&p)>>2]=H;if(H>>>0>98307){u=x;ie=313;break c}if(H>>>0>(c[(S&p)+64>>2]|0)>>>0){u=x;ie=313;break c}if(F>>>0>>0){c[(K&p)>>2]=0;c[(S&p)+68>>2]=0;C=0;ie=318}else{C=0;ie=318}}while(0);do if((ie|0)==318){ie=0;J=c[(I&p)>>2]|0;H=c[(w&p)>>2]|0;if(J>>>0>>0){P=S+76|0;F=c[(P&p)>>2]|0;if(!F){U=Jd+0|0;V=U+40|0;do{c[(U&p)>>2]=0;U=U+4|0}while((U|0)<(V|0));J=nm(v,0,c[(w&p)>>2]|0,((d[(S&n)+27>>0]|0)>>>2&1^1)&255,Jd)|0;if(J){s=J;u=x;ie=1309;break c}C=S+22|0;O=C;C=b[(C&o)>>1]|0;J=c[(I&p)>>2]|0;H=c[(w&p)>>2]|0;N=c[(Jb&p)>>2]|0}else{O=S+22|0;N=F}E=C&65535;K=c[(w+(E<<2)&p)>>2]|0;c[(kd&p)>>2]=K;C=N+H|0;J=N+J|0;while(1){F=a[(J&n)>>0]|0;if(F<<24>>24>-1){L=F&255;c[(Ld&p)>>2]=L;J=J+1|0}else{J=J+((mm(J,Ld)|0)&255)|0;L=c[(Ld&p)>>2]|0}c[(S+(E<<2)&p)+84>>2]=L;if(L>>>0>11)F=(L+-12|0)>>>1;else F=d[(L&n)+34336>>0]|0;L=K+F|0;c[(kd&p)>>2]=L;if(L>>>0>>0){J=L;F=E;ie=331;break}F=E+1|0;c[(w+(F<<2)&p)>>2]=L;if((E|0)<(T|0)&J>>>0>>0){K=L;E=F}else break}if((ie|0)==331){ie=0;L=J;J=N+(H+1)|0}b[(O&o)>>1]=F;c[(I&p)>>2]=J-N;if(!(c[(P&p)>>2]|0)){if(!((b[(Kb&o)>>1]&9312)==0&(c[(Lb&p)>>2]|0)==0))Qg(Jd);b[(Kb&o)>>1]=1}if(J>>>0>=C>>>0){if(J>>>0>C>>>0){u=x;ie=343;break c}if((L|0)==(c[(S&p)+64>>2]|0))C=L;else{u=x;ie=343;break c}}else C=c[(S&p)+64>>2]|0;if(L>>>0>C>>>0){u=x;ie=343;break c}C=b[(O&o)>>1]|0}if((C&65535|0)<=(T|0)){if((a[(s+(t*20|0)&n)+1>>0]|0)==-8){Zl(A,c[(s+(t*20|0)&p)+16>>2]|0,2048);r=z+(M*40|0)+8|0;break}r=z+(M*40|0)+8|0;if(!(b[(r&o)>>1]&9312)){b[(r&o)>>1]=1;break}else{vg(A);break}}else ie=350}while(0);if((ie|0)==350){ie=0;r=z+(M*40|0)+8|0;if(b[(r&o)>>1]&9312)vg(A);J=c[(S+(T<<2)&p)+84>>2]|0;c[(Ld&p)>>2]=J;do if((c[(S&p)+68>>2]|0)>>>0<(c[(w+(T+1<<2)&p)>>2]|0)>>>0){V=a[(s+(t*20|0)&n)+3>>0]|0;if(!((V&255)>63?J>>>0>11&(J&1|0)==0|V<<24>>24<0:0)){if(J>>>0>11)C=(J+-12|0)>>>1;else C=d[(J&n)+34336>>0]|0;if(C){C=nm(v,c[(w+(T<<2)&p)>>2]|0,C,((d[(S&n)+27>>0]|0)>>>2&1^1)&255,A)|0;if(C){s=C;u=x;ie=1309;break c}om(c[(z+(M*40|0)&p)+16>>2]|0,J,A)|0;b[(r&o)>>1]=e[(r&o)>>1]&61439;break}}om(J>>>0<14?td:0,J,A)|0}else om((c[(S&p)+76>>2]|0)+(c[(w+(T<<2)&p)>>2]|0)|0,J,A)|0;while(0);a[(z+(M*40|0)&n)+10>>0]=Jc}w=e[(r&o)>>1]|0;if((w&4096|0)!=0?(Ac=z+(M*40|0)+16|0,Bc=c[(Ac&p)>>2]|0,(Bc|0)!=0):0){v=c[(z+(M*40|0)&p)+12>>2]|0;if(fh(A,v+2|0)|0){y=ge;z=je;r=m;m=x;ie=1317;break a}kw(c[(Ac&p)>>2]|0,Bc|0,v|0)|0;a[((c[(Ac&p)>>2]|0)+v&n)>>0]=0;a[((c[(Ac&p)>>2]|0)+v&n)+1>>0]=0;b[(r&o)>>1]=w&18|512;S=z;T=s;U=W;V=X;r=t}else{S=z;T=s;U=W;V=X;r=t}break}case 368:{ie=0;v=c[(s+(r*20|0)&p)+16>>2]|0;t=a[(v&n)>>0]|0;if(!(t<<24>>24)){S=z;T=s;U=W;V=X}else{w=z+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)|0;while(1){v=v+1|0;fm(w,t,Jc);t=a[(v&n)>>0]|0;if(!(t<<24>>24)){S=z;T=s;U=W;V=X;break}else w=w+40|0}}break}case 371:{ie=0;U=c[(s+(t*20|0)&p)+4>>2]|0;C=c[(s+(t*20|0)&p)+16>>2]|0;V=z+(U*40|0)|0;U=z+((U+-1+(c[(s+(t*20|0)&p)+8>>2]|0)|0)*40|0)|0;A=a[(Mb&n)>>0]|0;T=c[(s+(t*20|0)&p)+12>>2]|0;u=z+(T*40|0)|0;if(C){r=a[(C&n)>>0]|0;v=V;while(1){C=C+1|0;fm(v,r,Jc);r=a[(C&n)>>0]|0;if(!(r<<24>>24))break;else v=v+40|0}}N=(A&255)>3;L=0;K=0;O=0;C=0;w=U;while(1){E=b[(w&o)+8>>1]|0;I=E&65535;v:do if(!(I&1)){do if(!(I&4)){if(I&8){J=7;ie=388;break v}J=c[(w&p)+12>>2]|0;if(I&16384)J=(c[(w&p)>>2]|0)+J|0;J=(J<<1)+12|I>>>1&1}else{I=w;J=c[(I&p)>>2]|0;I=c[(I&p)+4>>2]|0;H=ew(J|0,I|0,63)|0;H=H^J;F=G^I;if(F>>>0<0|(F|0)==0&H>>>0<128){if(!((J&1|0)==(J|0)&0==(I|0)&N)){J=1;ie=388;break v}J=H+8|0;break}if(F>>>0<0|(F|0)==0&H>>>0<32768){J=2;ie=388;break v}if(F>>>0<0|(F|0)==0&H>>>0<8388608){J=3;ie=388;break v}if(F>>>0<0|(F|0)==0&H>>>0<2147483648){J=4;ie=388;break v}J=F>>>0<32768|(F|0)==32768&H>>>0<0?5:6;ie=388;break v}while(0);c[(w&p)+28>>2]=J;if(J>>>0>11){I=J;J=(J+-12|0)>>>1}else ie=391}else{J=0;ie=388}while(0);if((ie|0)==388){c[(w&p)+28>>2]=J;ie=391}if((ie|0)==391){ie=0;I=J;J=d[(J&n)+34336>>0]|0}do if(E&16384)if((L|0)==0&(K|0)==0){E=c[(w&p)>>2]|0;J=J-E|0;E=E+C|0;break}else{Rg(w)|0;E=C;break}else E=C;while(0);L=jw(J|0,((J|0)<0)<<31>>31|0,L|0,K|0)|0;K=G;if(I>>>0<128)J=1;else{H=0;J=0;do{J=J+1|0;I=mw(I|0,H|0,7)|0;H=G}while(((I|0)!=0|(H|0)!=0)&(J|0)<9)}J=J+O|0;w=w+-40|0;if(w>>>0>>0){F=J;P=E;break}else{O=J;C=E}}if((F|0)<127)I=F+1|0;else{I=F;H=((F|0)<0)<<31>>31;J=0;do{J=J+1|0;I=mw(I|0,H|0,7)|0;H=G}while(((I|0)!=0|(H|0)!=0)&(J|0)<9);F=J+F|0;I=F;H=((F|0)<0)<<31>>31;C=0;do{C=C+1|0;I=mw(I|0,H|0,7)|0;H=G}while(((I|0)!=0|(H|0)!=0)&(C|0)<9);I=((J|0)<(C|0)&1)+F|0}J=((I|0)<0)<<31>>31;E=jw(I|0,J|0,L|0,K|0)|0;N=G;S=c[(zb&p)>>2]|0;O=((S|0)<0)<<31>>31;if((N|0)>(O|0)|(N|0)==(O|0)&E>>>0>S>>>0){u=x;ie=1316;break c}if(fh(u,E)|0){y=ge;z=je;r=m;m=x;ie=1317;break a}A=c[(z+(T*40|0)&p)+16>>2]|0;if(I>>>0<128){a[(A&n)>>0]=I;K=1;L=V}else{K=(pm(A,I,J)|0)&255;L=V}while(1){H=c[(L&p)+28>>2]|0;if(H>>>0<128){a[(A+K&n)>>0]=H;J=1}else J=(pm(A+K|0,H,0)|0)&255;K=J+K|0;J=A+I|0;if(!(H>>>0<8&(H|0)!=0))if(H>>>0>11){C=c[(L&p)+12>>2]|0;kw(J|0,c[(L&p)+16>>2]|0,C|0)|0}else C=0;else{J=L;if(H>>>0>11)C=(H+-12|0)>>>1;else C=d[(H&n)+34336>>0]|0;F=c[(J&p)>>2]|0;J=c[(J&p)+4>>2]|0;H=C;while(1){H=H+-1|0;a[(A+H+I&n)>>0]=F;F=mw(F|0,J|0,8)|0;if(!H)break;else J=G}}L=L+40|0;if(L>>>0>U>>>0)break;else I=C+I|0}c[(z+(T*40|0)&p)+12>>2]=E;r=z+(T*40|0)+8|0;b[(r&o)>>1]=16;if(P){c[(u&p)>>2]=P;b[(r&o)>>1]=16400}a[(z+(T*40|0)&n)+10>>0]=1;S=z;T=s;U=W;V=X;r=t;break}case 446:{ie=0;if((c[(ae&p)>>2]|0)>0){u=x;ie=447;break c}if(!v)w=0;else{t=v;while(1)if(!(a[(t&n)>>0]|0))break;else t=t+1|0;w=t-v&1073741823}u=sm(le,0,(c[(Ob&p)>>2]|0)+(c[(Nb&p)>>2]|0)|0)|0;if(u){t=r;ie=1318;break c}t=mh(le,w+33|0,0)|0;if(!t){S=z;T=s;U=W;V=X;u=L}else{V=t+32|0;c[(t&p)>>2]=V;kw(V|0,v|0,w+1|0)|0;if(!(a[(ee&n)>>0]|0))c[(Ob&p)>>2]=(c[(Ob&p)>>2]|0)+1;else{a[(ee&n)>>0]=0;a[(Sb&n)>>0]=1}c[(t&p)+24>>2]=c[(Pb&p)>>2];c[(Pb&p)>>2]=t;S=Qb;T=c[(S&p)+4>>2]|0;U=t+8|0;c[(U&p)>>2]=c[(S&p)>>2];c[(U&p)+4>>2]=T;U=Rb;T=c[(U&p)+4>>2]|0;S=t+16|0;c[(S&p)>>2]=c[(U&p)>>2];c[(S&p)+4>>2]=T;S=z;T=s;U=W;V=X;u=L}break}case 486:{c[(Ob&p)>>2]=(c[(Ob&p)>>2]|0)+-1;ie=488;break}case 525:{ie=0;wm(c[((c[(Xd&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<4)&p)+4>>2]|0,c[(s+(r*20|0)&p)+12>>2]|0,Yc);T=c[(Yc&p)>>2]|0;S=u;c[(S&p)>>2]=T;c[(S&p)+4>>2]=((T|0)<0)<<31>>31;S=z;T=s;U=W;V=X;break}case 558:{ie=0;v=xm(f,c[(s+(t*20|0)&p)+4>>2]|0,c[(s+(t*20|0)&p)+8>>2]|0,-1,1)|0;if(!v){y=ge;z=je;r=m;m=x;ie=1317;break a}r=c[(s+(t*20|0)&p)+16>>2]|0;C=v+8|0;c[(C&p)>>2]=r;A=c[(s+(t*20|0)&p)+12>>2]|0;r=e[(r&o)+6>>1]<<2;u=r+148|0;w=mh(le,u,0)|0;if(!w){s=v;u=x;ie=560;break c}fw(w|0,0,u|0)|0;c[(v&p)+56>>2]=w;V=w+128|0;c[(w&p)+28>>2]=V;kw(V|0,c[(C&p)>>2]|0,r+20|0)|0;c[(w&p)+140>>2]=0;if(A)b[(w&o)+134>>1]=A;r=c[(Xd&p)>>2]|0;u=c[((c[((c[(r&p)+4>>2]|0)&p)+4>>2]|0)&p)+32>>2]|0;c[(w&p)+12>>2]=u;a[(w&n)+59>>0]=1;a[(w&n)+57>>0]=0;c[(w&p)+24>>2]=le;c[(w&p)+72>>2]=w;if(((a[(_b&n)>>0]|0)!=2?(Dc=c[2242]|0,c[(w&p)>>2]=ca(Dc,u)|0,V=c[((c[(r&p)+12>>2]|0)&p)+80>>2]|0,V=(V|0)<(Dc|0)?Dc:V,Dc=((u|0)<0)<<31>>31,V=sw(V|0,((V|0)<0)<<31>>31|0,u|0,Dc|0)|0,U=G,c[(w&p)+4>>2]=(U|0)<0|(U|0)==0&V>>>0<536870912?V:536870912,(c[2234]|0)==0):0)?(c[(w&p)+52>>2]=u,V=qg(u,Dc)|0,c[(w&p)+40>>2]=V,(V|0)==0):0){s=7;u=x;ie=1309;break c}else{S=z;T=s;U=W;V=X;u=L;r=t}break}case 566:{ie=0;T=(c[((c[(Ib&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<2)&p)>>2]|0)+40|0;V=T;U=c[(V&p)>>2]|0;V=c[(V&p)+4>>2]|0;S=jw(U|0,V|0,1,0)|0;c[(T&p)>>2]=S;c[(T&p)+4>>2]=G;if((U|0)==0&(V|0)==0){S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0}else{S=z;T=s;U=W;V=X}break}case 568:{ie=0;r=xm(f,c[(s+(t*20|0)&p)+4>>2]|0,c[(s+(t*20|0)&p)+12>>2]|0,-1,0)|0;if(!r){y=ge;z=je;r=m;m=x;ie=1317;break a}a[(r&n)+25>>0]=1;c[(r&p)+16>>2]=c[(s+(t*20|0)&p)+8>>2];S=r+27|0;a[(S&n)>>0]=a[(S&n)>>0]|4;S=z;T=s;U=W;V=X;r=t;break}case 570:{ie=0;S=s+(r*20|0)+4|0;Bm(f,c[((c[(Ib&p)>>2]|0)+(c[(S&p)>>2]<<2)&p)>>2]|0);c[((c[(Ib&p)>>2]|0)+(c[(S&p)>>2]<<2)&p)>>2]=0;S=z;T=s;U=W;V=X;break}case 571:{ie=0;H=c[((c[(Ib&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<2)&p)>>2]|0;a[(H&n)+25>>0]=0;if(!(a[(H&n)+27>>0]&4)){V=c[(s+(r*20|0)&p)+16>>2]|0;c[(wd&p)>>2]=c[(H&p)+8>>2];b[($b&o)>>1]=V;a[(cc&n)>>0]=(K<<1&2^2)+255;V=c[(s+(r*20|0)&p)+12>>2]|0;t=z+(V*40|0)|0;c[(dc&p)>>2]=t;if(b[(z+(V*40|0)&o)+8>>1]&16384)Rg(t)|0;u=Cm(c[(H&p)>>2]|0,wd,0,0,0,Ad)|0;if(!u){u=K;J=L}else{t=r;ie=1318;break c}}else{C=c[(s+(r*20|0)&p)+12>>2]|0;A=z+(C*40|0)|0;C=z+(C*40|0)+8|0;if((b[(C&o)>>1]&14)==2)rh(A,0);J=Vg(A)|0;I=G;C=e[(C&o)>>1]|0;do if(!(C&4)){if(!(C&8)){S=z;T=s;U=W;V=X;u=L;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0;break q}B=+h[(A&q)>>3];D=+(J>>>0)+4294967296.0*+(I|0);if(B>31)+K|0;break}else{C=(B>D&(K&1|0)==0&1)+K|0;break}}else C=K;while(0);u=Cm(c[(H&p)>>2]|0,0,J,I,0,Ad)|0;V=H+48|0;c[(V&p)>>2]=J;c[(V&p)+4>>2]=I;if(!u){u=C;J=L}else{t=r;ie=1318;break c}}a[(H&n)+26>>0]=0;c[(H&p)+60>>2]=0;t=c[(Ad&p)>>2]|0;do if((u|0)>63){if((t|0)>=0?!((t|0)==0&(u|0)==65):0){c[(Ad&p)>>2]=0;S=z;T=s;U=W;V=X;u=J;break q}c[(Ad&p)>>2]=0;u=Dm(c[(H&p)>>2]|0,Ad)|0;if(!u)ie=593;else{t=r;ie=1318;break c}}else{if((t|0)<=0?!((t|0)==0&(u|0)==62):0){t=(a[((c[(H&p)>>2]|0)&n)+73>>0]|0)!=1&1;c[(Ad&p)>>2]=t;break}c[(Ad&p)>>2]=0;u=Em(c[(H&p)>>2]|0,Ad)|0;if(!u)ie=593;else{t=r;ie=1318;break c}}while(0);if((ie|0)==593){ie=0;t=c[(Ad&p)>>2]|0}if(!t){S=z;T=s;U=W;V=X;u=J}else{S=z;T=s;U=W;V=X;u=J;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0}break}case 596:{ie=0;S=c[((c[(Ib&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<2)&p)>>2]|0;a[(S&n)+25>>0]=0;U=Vg(z+((c[(s+(r*20|0)&p)+8>>2]|0)*40|0)|0)|0;T=S+48|0;c[(T&p)>>2]=U;c[(T&p)+4>>2]=G;a[(S&n)+26>>0]=1;S=z;T=s;U=W;V=X;break}case 597:{ie=0;I=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;r=c[(s+(t*20|0)&p)+12>>2]|0;J=z+(r*40|0)|0;c[(od&p)>>2]=0;K=s+(t*20|0)+16|0;C=c[(K&p)>>2]|0;v=I+8|0;A=c[(v&p)>>2]|0;w:do if((C|0)>0){c[(xd&p)>>2]=A;C=C&65535;b[(ec&o)>>1]=C;c[(fc&p)>>2]=J;if(!(C<<16>>16))v=xd;else{r=J;A=0;while(1){if(b[(r+(A*40|0)&o)+8>>1]&16384){Rg(r+(A*40|0)|0)|0;C=b[(ec&o)>>1]|0}A=A+1|0;if((A|0)>=(C&65535|0)){v=xd;break w}r=c[(fc&p)>>2]|0}}}else{C=Fm(A,Sc,191,od)|0;if(!C){y=ge;z=je;r=m;m=x;ie=1317;break a}if(b[(z+(r*40|0)&o)+8>>1]&16384)Rg(J)|0;Gm(c[(v&p)>>2]|0,c[(z+(r*40|0)&p)+12>>2]|0,c[(z+(r*40|0)&p)+16>>2]|0,C);v=C}while(0);a[(v&n)+6>>0]=0;x:do if((a[(H&n)>>0]|0)==67?(Ec=b[(v&o)+4>>1]|0,Ec<<16>>16!=0):0){C=c[(v&p)+8>>2]|0;A=0;while(1){if(b[(C+(A*40|0)&o)+8>>1]&1)break;A=A+1|0;if((A|0)>=(Ec&65535|0)){L=t;r=t;break x}}L=t;r=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0}else{L=t;r=t}while(0);C=Cm(c[(I&p)>>2]|0,v,0,0,0,Bd)|0;if(!(c[(K&p)>>2]|0))mg(le,c[(od&p)>>2]|0);if(C){t=r;s=C;u=x;ie=1309;break c}t=c[(Bd&p)>>2]|0;c[(I&p)+12>>2]=t;t=(t|0)==0;a[(I&n)+25>>0]=t&1^1;a[(I&n)+26>>0]=0;c[(I&p)+60>>2]=0;if((a[(H&n)>>0]|0)==69){if(!t){S=z;T=s;U=W;V=X;break}S=z;T=s;U=W;V=X;r=(c[(s+(L*20|0)&p)+8>>2]|0)+-1|0;break}else{if(t){S=z;T=s;U=W;V=X;break}S=z;T=s;U=W;V=X;r=(c[(s+(L*20|0)&p)+8>>2]|0)+-1|0;break}}case 624:{ie=0;S=(c[((c[(Ib&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<2)&p)>>2]|0)+40|0;T=S;U=c[(T&p)>>2]|0;T=c[(T&p)+4>>2]|0;V=jw(U|0,T|0,1,0)|0;c[(S&p)>>2]=V;c[(S&p)+4>>2]=G;S=u;c[(S&p)>>2]=U;c[(S&p)+4>>2]=T;S=z;T=s;U=W;V=X;break}case 647:{ie=0;I=c[(s+(r*20|0)&p)+8>>2]|0;v=c[((c[(Ib&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<2)&p)>>2]|0;t=c[(s+(r*20|0)&p)+12>>2]|0;if(C<<24>>24==75){F=z+(t*40|0)|0;E=c[(F&p)>>2]|0;F=c[(F&p)+4>>2]|0}else{E=t;F=((t|0)<0)<<31>>31}H=s+(r*20|0)+3|0;J=a[(H&n)>>0]|0;if(J&1)c[(ub&p)>>2]=(c[(ub&p)>>2]|0)+1;if(J&2){m=ne;c[(m&p)>>2]=E;c[(m&p)+4>>2]=F;m=E;l=F}C=b[(z+(I*40|0)&o)+8>>1]|0;if(C&1){c[(z+(I*40|0)&p)+16>>2]=0;c[(z+(I*40|0)&p)+12>>2]=0}if(!(J&16))A=0;else A=c[(v&p)+12>>2]|0;if(!(C&16384))C=0;else C=c[(z+(I*40|0)&p)>>2]|0;C=Im(c[(v&p)>>2]|0,0,E,F,c[(z+(I*40|0)&p)+16>>2]|0,c[(z+(I*40|0)&p)+12>>2]|0,C,(J&255)>>>3&1,A)|0;a[(v&n)+26>>0]=0;c[(v&p)+60>>2]=0;if(C){t=r;s=C;u=x;ie=1309;break c}t=c[(gc&p)>>2]|0;if((t|0)!=0?(Fc=c[(s+(r*20|0)&p)+16>>2]|0,(Fc|0)!=0):0){bc[t&1](c[(hc&p)>>2]|0,(a[(H&n)>>0]&4)!=0?23:18,c[((c[(Xd&p)>>2]|0)+(a[(v&n)+24>>0]<<4)&p)>>2]|0,Fc,E,F);S=z;T=s;U=W;V=X}else{S=z;T=s;U=W;V=X}break}case 671:{ie=0;S=c[(ub&p)>>2]|0;c[(vb&p)>>2]=S;c[(wb&p)>>2]=(c[(wb&p)>>2]|0)+S;c[(ub&p)>>2]=0;S=z;T=s;U=W;V=X;break}case 672:{ie=0;J=c[((c[(Ib&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<2)&p)>>2]|0;I=c[(s+(r*20|0)&p)+12>>2]|0;H=c[(s+(r*20|0)&p)+16>>2]|0;t=c[(J&p)+56>>2]|0;A=t+32|0;C=c[(A&p)>>2]|0;J=c[(J&p)+8>>2]|0;if(!C){C=Fm(J,0,0,md)|0;c[(A&p)>>2]=C;if(!C){t=r;s=7;u=x;ie=1309;break c}b[(C&o)+4>>1]=H}if(!(a[(t&n)+56>>0]|0)){t=c[(t&p)+36>>2]|0;A=t;t=t+8|0}else{V=c[(t&p)+20>>2]|0;t=c[((c[(V&p)+8>>2]|0)&p)+4>>2]|0;V=c[(V&p)+12>>2]|0;A=V+(t*56|0)+20|0;t=c[(V+(t*56|0)&p)+32>>2]|0}Gm(J,c[(A&p)>>2]|0,t,C);y:do if((H|0)>0){t=c[(C&p)+8>>2]|0;v=0;while(1){if(b[(t+(v*40|0)&o)+8>>1]&1)break y;v=v+1|0;if((v|0)>=(H|0)){ie=682;break}}}else ie=682;while(0);if((ie|0)==682){ie=0;if(!(Km(c[(z+(I*40|0)&p)+12>>2]|0,c[(z+(I*40|0)&p)+16>>2]|0,C,0)|0)){S=z;T=s;U=W;V=X;break}}S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0;break}case 700:{ie=0;b[(u&o)+8>>1]=1;S=z;T=s;U=W;V=X;break}case 708:{ie=0;b[(u&o)+8>>1]=1;S=z;T=s;U=W;V=X;break}case 711:{ie=0;t=c[((c[(Ib&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<2)&p)>>2]|0;a[(t&n)+25>>0]=1;c[(t&p)+60>>2]=0;t=c[(t&p)>>2]|0;if(!t){S=z;T=s;U=W;V=X}else{S=t+56|0;Wc(c[(S&p)>>2]|0);c[(S&p)>>2]=0;a[(t&n)+73>>0]=0;S=z;T=s;U=W;V=X}break}case 801:{ie=0;t=c[((c[(Ib&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<2)&p)>>2]|0;u=c[(t&p)>>2]|0;K=L+8|0;b[(K&o)>>1]=1;if((a[(u&n)+73>>0]|0)!=1?(Vd=jm(t)|0,(Vd|0)!=0):0){t=r;u=Vd;ie=1318;break c}if(!(a[(t&n)+25>>0]|0)){V=Sd;c[(V&p)>>2]=0;c[(V&p)+4>>2]=0;km(u,Sd);b[(qc&o)>>1]=0;c[(sc&p)>>2]=le;c[(uc&p)>>2]=0;u=nm(u,0,c[(Sd&p)>>2]|0,1,$c)|0;do if(!u){t=c[(vc&p)>>2]|0;u=a[(t&n)>>0]|0;if(u<<24>>24>-1){C=u&255;c[(qd&p)>>2]=C}else{mm(t,qd)|0;C=c[(qd&p)>>2]|0}if(!(C>>>0<3?1:(C|0)>(c[(wc&p)>>2]|0))){t=(c[(vc&p)>>2]|0)+(C+-1)|0;u=a[(t&n)>>0]|0;if(u<<24>>24>-1){u=u&255;c[(Nd&p)>>2]=u}else{mm(t,Nd)|0;u=c[(Nd&p)>>2]|0}if(!((u+-1|0)>>>0>8|(u|0)==7)){if(u>>>0>11)t=(u+-12|0)>>>1;else t=d[(u&n)+34336>>0]|0;v=c[(wc&p)>>2]|0;if(v>>>0>=(t+C|0)>>>0){om((c[(vc&p)>>2]|0)+(v-t)|0,u,Qd)|0;v=Qd;t=c[(v&p)>>2]|0;v=c[(v&p)+4>>2]|0;if((b[(qc&o)>>1]&9312)==0&(c[(uc&p)>>2]|0)==0){u=0;break}Qg($c);u=0;break}}}if(!((b[(qc&o)>>1]&9312)==0&(c[(uc&p)>>2]|0)==0))Qg($c);c[(ke&p)>>2]=68698;c[(ke&p)+4>>2]=10788;bd(11,13600,ke);u=11;t=0;v=0}else{t=0;v=0}while(0);if(u){t=r;ie=1318;break c}S=L;c[(S&p)>>2]=t;c[(S&p)+4>>2]=v;b[(K&o)>>1]=4;S=z;T=s;U=W;V=X;u=L}else{S=z;T=s;U=W;V=X;u=L}break}case 865:{ie=0;w=c[(C&p)>>2]|0;C=c[((c[(Xd&p)>>2]|0)+(K<<4)&p)+12>>2]|0;t=c[(C&p)+16>>2]|0;if(t)do{v=(c[(t&p)+8>>2]|0)+32|0;if((c[(v&p)>>2]|0)==(A|0))c[(v&p)>>2]=w;t=c[(t&p)>>2]|0}while((t|0)!=0);t=c[(C&p)+32>>2]|0;if(t)do{v=(c[(t&p)+8>>2]|0)+40|0;if((c[(v&p)>>2]|0)==(A|0))c[(v&p)>>2]=w;t=c[(t&p)>>2]|0}while((t|0)!=0);S=z;T=s;U=W;V=X;x=K+1&255;break}case 878:{ie=0;_m(le,u);S=z;T=s;U=W;V=X;u=J;break}case 881:{ie=0;V=c[(s+(r*20|0)&p)+4>>2]|0;c[(Zc&p)>>2]=le;c[(ia&p)>>2]=V;c[(ja&p)>>2]=je;u=c[(s+(r*20|0)&p)+16>>2]|0;c[(ke&p)>>2]=c[((c[(Xd&p)>>2]|0)+(V<<4)&p)>>2];c[(ke&p)+4>>2]=(V|0)==1?13184:13208;c[(ke&p)+8>>2]=u;u=uh(le,42048,ke)|0;if(!u){t=r;u=x;ie=882;break c}a[(ka&n)>>0]=1;c[(la&p)>>2]=0;t=Qe(le,u,22,Zc,0)|0;t=(t|0)==0?c[(la&p)>>2]|0:t;mg(le,u);a[(ka&n)>>0]=0;if(!t){S=z;T=s;U=W;V=X;u=J}else{s=t;t=r;u=x;ie=884;break c}break}case 886:{ie=0;kg(le,Ik((c[((c[(Xd&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<4)&p)+12>>2]|0)+8|0,c[(s+(r*20|0)&p)+16>>2]|0,0)|0);c[(Tb&p)>>2]=c[(Tb&p)>>2]|2;S=z;T=s;U=W;V=X;break}case 887:{ie=0;C=Ik((c[((c[(Xd&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<4)&p)+12>>2]|0)+24|0,c[(s+(r*20|0)&p)+16>>2]|0,0)|0;if(C){t=(c[(C&p)+12>>2]|0)+8|0;u=c[(t&p)>>2]|0;z:do if((u|0)==(C|0))c[(t&p)>>2]=c[(C&p)+20>>2];else{do{if(!u)break z;t=u+20|0;u=c[(t&p)>>2]|0}while((u|0)!=(C|0));c[(t&p)>>2]=c[(C&p)+20>>2]}while(0);Jk(le,C)}c[(Tb&p)>>2]=c[(Tb&p)>>2]|2;S=z;T=s;U=W;V=X;u=J;break}case 895:{ie=0;C=Ik((c[((c[(Xd&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<4)&p)+12>>2]|0)+40|0,c[(s+(r*20|0)&p)+16>>2]|0,0)|0;if(!C){S=z;T=s;U=W;V=X}else{t=c[(C&p)+20>>2]|0;if((t|0)==(c[(C&p)+24>>2]|0)){t=bn(t+8|0,c[(C&p)+4>>2]|0,ke)|0;if(!t)t=0;else t=c[(t&p)+8>>2]|0;v=t+64|0;while(1){V=c[(v&p)>>2]|0;t=V+32|0;if((V|0)==(C|0))break;else v=t}c[(v&p)>>2]=c[(t&p)>>2]}jg(le,C);c[(Tb&p)>>2]=c[(Tb&p)>>2]|2;S=z;T=s;U=W;V=X}break}case 903:{ie=0;L=c[(s+(t*20|0)&p)+8>>2]|0;v=mh(le,(L<<2)+4|0,0)|0;if(!v){y=ge;z=je;r=m;m=x;ie=1317;break a}A=c[(s+(t*20|0)&p)+12>>2]|0;r=c[(s+(t*20|0)&p)+4>>2]|0;M=z+(r*40|0)|0;if((L|0)>0){C=0;do{V=Vg(z+((C+r|0)*40|0)|0)|0;c[(v+(C<<2)&p)>>2]=V;C=C+1|0}while((C|0)!=(L|0));C=L}else C=0;c[(v+(C<<2)&p)>>2]=0;I=c[((c[(Xd&p)>>2]|0)+(d[(s+(t*20|0)&n)+3>>0]<<4)&p)+4>>2]|0;P=z+(A*40|0)|0;V=c[(P&p)>>2]|0;O=c[(I&p)+4>>2]|0;c[(O&p)+4>>2]=c[(I&p)>>2];I=c[(O&p)>>2]|0;w=c[((c[(I&p)+204>>2]|0)&p)+12>>2]|0;c[(Sd&p)>>2]=O;c[(ma&p)>>2]=I;I=c[(O&p)+44>>2]|0;c[(na&p)>>2]=I;c[(oa&p)>>2]=V;c[(pa&p)>>2]=0;c[(pa&p)+4>>2]=0;c[(pa&p)+8>>2]=0;c[(pa&p)+12>>2]=0;c[(pa&p)+16>>2]=0;do if(!I){A=0;C=0}else{J=(I>>>3)+1|0;H=qg(J,0)|0;if(!H){c[(sa&p)>>2]=0;A=0;C=1;break}fw(H|0,0,J|0)|0;c[(sa&p)>>2]=H;N=O+32|0;J=(((c[2514]|0)>>>0)/((c[(N&p)>>2]|0)>>>0)|0)+1|0;if(J>>>0<=I>>>0){V=H+(J>>>3)|0;a[(V&n)>>0]=d[(V&n)>>0]|1<<(J&7)}c[(ua&p)>>2]=Nd;c[(va&p)>>2]=Nd;c[(ta&p)>>2]=0;c[(wa&p)>>2]=0;c[(xa&p)>>2]=100;c[(ya&p)>>2]=1e9;a[(Aa&n)>>0]=0;a[(za&n)>>0]=2;c[(ra&p)>>2]=43592;C=c[((c[(O&p)+12>>2]|0)&p)+56>>2]|0;cn(Sd,1,d[(C&n)+33>>0]<<16|d[(C&n)+32>>0]<<24|d[(C&n)+34>>0]<<8|d[(C&n)+35>>0],d[(C&n)+37>>0]<<16|d[(C&n)+36>>0]<<24|d[(C&n)+38>>0]<<8|d[(C&n)+39>>0]);c[(ra&p)>>2]=0;C=c[(oa&p)>>2]|0;if(!((L|0)<1|(C|0)==0)){F=O+17|0;H=0;do{I=v+(H<<2)|0;J=c[(I&p)>>2]|0;if(J){if((a[(F&n)>>0]|0)!=0&(J|0)>1){dn(Sd,J,1,0);J=c[(I&p)>>2]|0}c[(ra&p)>>2]=43608;en(Sd,J,0,0)|0;c[(ra&p)>>2]=0;C=c[(oa&p)>>2]|0}H=H+1|0}while(!((H|0)>=(L|0)|(C|0)==0))}if(!((c[(na&p)>>2]|0)==0|(C|0)==0)){E=O+17|0;C=O+36|0;L=1;do{H=L>>>3;J=a[((c[(sa&p)>>2]|0)+H&n)>>0]|0;F=1<<(L&7);do if(!(J&255&F)){if(L>>>0<2)I=0;else{I=L+-2|0;I=I-((I>>>0)%(((((c[(C&p)>>2]|0)>>>0)/5|0)+1|0)>>>0)|0)|0;I=((I+1|0)==(((c[2514]|0)>>>0)/((c[(N&p)>>2]|0)>>>0)|0|0)?3:2)+I|0}if((I|0)==(L|0)?(a[(E&n)>>0]|0)!=0:0)break;c[(ke&p)>>2]=L;fn(Sd,43632,ke);J=a[((c[(sa&p)>>2]|0)+H&n)>>0]|0}while(0);do if(J&255&F){if(L>>>0<2)J=0;else{J=L+-2|0;J=J-((J>>>0)%(((((c[(C&p)>>2]|0)>>>0)/5|0)+1|0)>>>0)|0)|0;J=((J+1|0)==(((c[2514]|0)>>>0)/((c[(N&p)>>2]|0)>>>0)|0|0)?3:2)+J|0}if((J|0)!=(L|0))break;if(!(a[(E&n)>>0]|0))break;c[(ke&p)>>2]=L;fn(Sd,43656,ke)}while(0);L=L+1|0}while(!((c[(oa&p)>>2]|0)==0?1:L>>>0>(c[(na&p)>>2]|0)>>>0))}C=c[((c[((c[(O&p)>>2]|0)&p)+204>>2]|0)&p)+12>>2]|0;if((w|0)!=(C|0)){c[(ke&p)>>2]=w;c[(ke&p)+4>>2]=C;fn(Sd,43696,ke)}Wc(c[(sa&p)>>2]|0);if(c[(qa&p)>>2]|0){gn(ta);A=0;C=(c[(pa&p)>>2]|0)+1|0;break}C=c[(pa&p)>>2]|0;if(!C)gn(ta);A=tg(ta)|0}while(0);mg(le,v);U=P;U=dw(c[(U&p)>>2]|0,c[(U&p)+4>>2]|0,C|0,((C|0)<0)<<31>>31|0)|0;V=P;c[(V&p)>>2]=U;c[(V&p)+4>>2]=G;r=z+(r*40|0)+8|0;if(!(b[(r&o)>>1]&9312))b[(r&o)>>1]=1;else vg(M);if(C){if(!A){y=ge;z=je;r=m;m=x;ie=1317;break a}Xg(M,A,-1,1,1)|0}Yl(M,xb)|0;S=z;T=s;U=W;V=X;r=t;break}case 947:{ie=0;v=c[(s+(t*20|0)&p)+4>>2]|0;r=z+(v*40|0)|0;u=c[(s+(t*20|0)&p)+8>>2]|0;v=z+(v*40|0)+8|0;if((b[(v&o)>>1]&32)==0?(hn(r),(b[(v&o)>>1]&32)==0):0){y=ge;z=je;r=m;m=x;ie=1317;break a}S=z+(u*40|0)|0;jn(c[(r&p)>>2]|0,c[(S&p)>>2]|0,c[(S&p)+4>>2]|0);S=z;T=s;U=W;V=X;u=J;r=t;break}case 966:{ie=0;r=c[(s+(t*20|0)&p)+4>>2]|0;P=z+(r*40|0)|0;O=z+((c[(s+(t*20|0)&p)+12>>2]|0)*40|0)|0;N=c[(s+(t*20|0)&p)+16>>2]|0;r=z+(r*40|0)+8|0;if((b[(r&o)>>1]&32)==0?(hn(P),(b[(r&o)>>1]&32)==0):0){y=ge;z=je;r=m;m=x;ie=1317;break a}if(N){L=c[(P&p)>>2]|0;v=O;M=c[(v&p)>>2]|0;v=c[(v&p)+4>>2]|0;K=L+28|0;if((c[(K&p)>>2]|0)!=(N|0)){C=L+8|0;J=c[(C&p)>>2]|0;if(J){I=L+20|0;A=L+26|0;if(!(b[(A&o)>>1]&1))J=kn(J)|0;H=c[(I&p)>>2]|0;A:do if(!H){ld=J;rd=I;ie=978}else{while(1){I=H+12|0;F=c[(I&p)>>2]|0;if(!F)break;E=H+8|0;ln(F,ke,Sd);c[(I&p)>>2]=0;J=mn(c[(ke&p)>>2]|0,J)|0;H=c[(E&p)>>2]|0;if(!H){ld=J;rd=E;ie=978;break A}}c[(I&p)>>2]=nn(J)|0}while(0);if((ie|0)==978?(ie=0,Kc=on(L)|0,c[(rd&p)>>2]=Kc,(Kc|0)!=0):0){V=Kc;c[(V&p)>>2]=0;c[(V&p)+4>>2]=0;c[(Kc&p)+8>>2]=0;c[(Kc&p)+12>>2]=nn(ld)|0}c[(C&p)>>2]=0;c[(L&p)+12>>2]=0;b[(A&o)>>1]=e[(A&o)>>1]|1}c[(K&p)>>2]=N}C=c[(L&p)+20>>2]|0;B:do if(C){C:while(1){A=c[(C&p)+12>>2]|0;if(A)do{r=A;E=c[(r&p)>>2]|0;r=c[(r&p)+4>>2]|0;if((r|0)<(v|0)|(r|0)==(v|0)&E>>>0>>0)A=A+8|0;else{if(!((r|0)>(v|0)|(r|0)==(v|0)&E>>>0>M>>>0))break C;A=A+12|0}A=c[(A&p)>>2]|0}while((A|0)!=0);C=c[(C&p)+8>>2]|0;if(!C)break B}S=z;T=s;U=W;V=X;r=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;break q}while(0);if((N|0)>-1)C=O;else{S=z;T=s;U=W;V=X;r=t;break}}else C=O;S=C;jn(c[(P&p)>>2]|0,c[(S&p)>>2]|0,c[(S&p)+4>>2]|0);S=z;T=s;U=W;V=X;r=t;break}case 993:{ie=0;K=c[(s+(r*20|0)&p)+16>>2]|0;I=c[(s+(r*20|0)&p)+12>>2]|0;L=z+(I*40|0)|0;if((a[(s+(r*20|0)&n)+3>>0]|0)!=0?(Lc=c[(K&p)+20>>2]|0,nd=c[(sb&p)>>2]|0,(nd|0)!=0):0){t=nd;while(1){if((c[(t&p)+28>>2]|0)==(Lc|0)){S=z;T=s;U=W;V=X;break q}t=c[(t&p)+4>>2]|0;if(!t){t=r;break}}}else t=r;r=c[(tb&p)>>2]|0;if((r|0)>=(c[(Ba&p)>>2]|0)){u=x;ie=998;break c}E=z+(I*40|0)+8|0;if(!(b[(E&o)>>1]&64)){C=K+12|0;A=c[(C&p)>>2]|0;r=A+(c[(K&p)+8>>2]|0)|0;s=K+16|0;A=(A<<2)+80+(c[(s&p)>>2]|0)+(r*40|0)|0;J=mh(le,A,((A|0)<0)<<31>>31)|0;if(!J){y=ge;z=je;r=m;m=x;ie=1317;break a}fw(J|0,0,A|0)|0;if(!((b[(E&o)>>1]&9312)==0?(c[(z+(I*40|0)&p)+24>>2]|0)==0:0))Qg(L);b[(E&o)>>1]=64;c[(L&p)>>2]=J;c[(J&p)>>2]=f;c[(J&p)+60>>2]=r;c[(J&p)+64>>2]=c[(C&p)>>2];c[(J&p)+44>>2]=t;c[(J&p)+16>>2]=c[(Nc&p)>>2];c[(J&p)+52>>2]=c[(Ca&p)>>2];c[(J&p)+24>>2]=c[(Ib&p)>>2];c[(J&p)+40>>2]=c[(Da&p)>>2];c[(J&p)+8>>2]=c[(zc&p)>>2];c[(J&p)+48>>2]=c[(Ea&p)>>2];c[(J&p)+28>>2]=c[(K&p)+20>>2];c[(J&p)+20>>2]=c[(Hb&p)>>2];c[(J&p)+56>>2]=c[(Fa&p)>>2];z=J+80|0;r=z+(r*40|0)|0;if((z|0)!=(r|0))do{b[(z&o)+8>>1]=128;c[(z&p)+32>>2]=le;z=z+40|0}while((z|0)!=(r|0));r=c[(tb&p)>>2]|0;z=J}else{s=K+16|0;z=c[(L&p)>>2]|0}c[(tb&p)>>2]=r+1;c[(z&p)+4>>2]=c[(sb&p)>>2];S=z+32|0;c[(S&p)>>2]=m;c[(S&p)+4>>2]=l;c[(z&p)+68>>2]=c[(ub&p)>>2];c[(z&p)+72>>2]=c[((c[(f&p)>>2]|0)&p)+80>>2];c[(ub&p)>>2]=0;c[(sb&p)>>2]=z;S=z+40|0;c[(Nc&p)>>2]=S;U=c[(z&p)+60>>2]|0;c[(Ca&p)>>2]=U;V=c[(z&p)+64>>2]&65535;c[(Da&p)>>2]=V;U=S+((U+1|0)*40|0)|0;c[(Ib&p)>>2]=U;T=c[(K&p)>>2]|0;c[(zc&p)>>2]=T;c[(Ea&p)>>2]=c[(K&p)+4>>2];V=U+(V<<2)|0;c[(Hb&p)>>2]=V;U=c[(s&p)>>2]|0;c[(Fa&p)>>2]=U;fw(V|0,0,U|0)|0;U=W;V=X;r=-1;break}case 1009:{ie=0;S=c[(sb&p)>>2]|0;Zl(u,(c[(S&p)+16>>2]|0)+(((c[((c[(S&p)+8>>2]|0)+((c[(S&p)+44>>2]|0)*20|0)&p)+4>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]|0)|0)*40|0)|0,4096);S=z;T=s;U=W;V=X;break}case 1010:{ie=0;if(c[(Tb&p)>>2]&16777216){T=c[(s+(r*20|0)&p)+8>>2]|0;S=Rb;T=jw(c[(S&p)>>2]|0,c[(S&p)+4>>2]|0,T|0,((T|0)<0)<<31>>31|0)|0;S=Rb;c[(S&p)>>2]=T;c[(S&p)+4>>2]=G;S=z;T=s;U=W;V=X;u=J;break}t=c[(s+(r*20|0)&p)+8>>2]|0;u=((t|0)<0)<<31>>31;if(!(c[(s+(r*20|0)&p)+4>>2]|0)){T=_d;T=jw(c[(T&p)>>2]|0,c[(T&p)+4>>2]|0,t|0,u|0)|0;S=_d;c[(S&p)>>2]=T;c[(S&p)+4>>2]=G;S=z;T=s;U=W;V=X;u=J;break}else{T=Qb;T=jw(c[(T&p)>>2]|0,c[(T&p)+4>>2]|0,t|0,u|0)|0;S=Qb;c[(S&p)>>2]=T;c[(S&p)+4>>2]=G;S=z;T=s;U=W;V=X;u=J;break}}case 1015:{ie=0;if(!(c[(s+(r*20|0)&p)+4>>2]|0)){V=_d;if(!((c[(V&p)>>2]|0)==0&(c[(V&p)+4>>2]|0)==0)){S=z;T=s;U=W;V=X;break}V=Rb;if(!((c[(V&p)>>2]|0)==0&(c[(V&p)+4>>2]|0)==0)){S=z;T=s;U=W;V=X;break}S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0;break}else{V=Qb;if(!((c[(V&p)>>2]|0)==0&(c[(V&p)+4>>2]|0)==0)){S=z;T=s;U=W;V=X;break}V=Rb;if(!((c[(V&p)>>2]|0)==0&(c[(V&p)+4>>2]|0)==0)){S=z;T=s;U=W;V=X;break}S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0;break}}case 1022:{ie=0;t=c[(sb&p)>>2]|0;if(!t)v=z+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)|0;else{while(1){u=c[(t&p)+4>>2]|0;if(!u)break;else t=u}v=(c[(t&p)+16>>2]|0)+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)|0}U=Vg(v)|0;V=v;c[(V&p)>>2]=U;c[(V&p)+4>>2]=G;V=v+8|0;b[(V&o)>>1]=e[(V&o)>>1]&48640|4;V=c[(s+(r*20|0)&p)+8>>2]|0;U=z+(V*40|0)|0;t=Vg(U)|0;u=G;c[(U&p)>>2]=t;c[(U&p)+4>>2]=u;V=z+(V*40|0)+8|0;b[(V&o)>>1]=e[(V&o)>>1]&48640|4;V=v;U=c[(V&p)+4>>2]|0;if((U|0)<(u|0)|((U|0)==(u|0)?(c[(V&p)>>2]|0)>>>0>>0:0)){S=v;c[(S&p)>>2]=t;c[(S&p)+4>>2]=u;S=z;T=s;U=W;V=X;u=L}else{S=z;T=s;U=W;V=X;u=L}break}case 1028:{ie=0;V=z+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)|0;U=c[(V&p)+4>>2]|0;if((U|0)>0|(U|0)==0&(c[(V&p)>>2]|0)>>>0>0){S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0}else{S=z;T=s;U=W;V=X}break}case 1030:{ie=0;T=c[(s+(r*20|0)&p)+12>>2]|0;U=z+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)|0;V=U;T=jw(c[(V&p)>>2]|0,c[(V&p)+4>>2]|0,T|0,((T|0)<0)<<31>>31|0)|0;V=G;c[(U&p)>>2]=T;c[(U&p)+4>>2]=V;if((V|0)<0){S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0}else{S=z;T=s;U=W;V=X}break}case 1032:{ie=0;t=z+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)|0;v=t;u=c[(v&p)>>2]|0;v=c[(v&p)+4>>2]|0;if((u|0)==0&(v|0)==0){S=z;T=s;U=W;V=X;u=J}else{T=c[(s+(r*20|0)&p)+12>>2]|0;T=jw(T|0,((T|0)<0)<<31>>31|0,u|0,v|0)|0;S=t;c[(S&p)>>2]=T;c[(S&p)+4>>2]=G;S=z;T=s;U=W;V=X;u=J;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0}break}case 1034:{ie=0;T=z+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)|0;U=T;U=jw(c[(U&p)>>2]|0,c[(U&p)+4>>2]|0,-1,-1)|0;V=G;c[(T&p)>>2]=U;c[(T&p)+4>>2]=V;if((U|0)==0&(V|0)==0){S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0}else{S=z;T=s;U=W;V=X}break}case 1036:{ie=0;T=z+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)|0;V=T;U=c[(V&p)>>2]|0;V=c[(V&p)+4>>2]|0;S=jw(U|0,V|0,1,0)|0;c[(T&p)>>2]=S;c[(T&p)+4>>2]=G;if((U|0)==0&(V|0)==0){S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0}else{S=z;T=s;U=W;V=X}break}case 1157:{ie=0;S=z;T=s;U=W;V=X;r=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;break}case 1158:{ie=0;if(c[(s+(r*20|0)&p)+4>>2]|0){b[(Yd&o)>>1]=b[(Yd&o)>>1]|8;S=z;T=s;U=W;V=X;break}t=c[(Vb&p)>>2]|0;if(!t){S=z;T=s;U=W;V=X}else{do{V=t+88|0;b[(V&o)>>1]=b[(V&o)>>1]|8;t=c[(t&p)+52>>2]|0}while((t|0)!=0);S=z;T=s;U=W;V=X}break}case 1166:{ie=0;J=(c[(w&p)>>2]|0)+72|0;t=c[(J&p)>>2]|0;D:do if(t){while(1){if((c[(t&p)+4>>2]|0)==(A|0)?(c[(t&p)>>2]|0)==(C|0):0)break;t=c[(t&p)+12>>2]|0;if(!t){ie=1171;break D}}if(!t)ie=1171}else ie=1171;while(0);if((ie|0)==1171){ie=0;t=qg(16,0)|0;if(!t){t=r;s=7;u=x;ie=1309;break c}U=t+0|0;V=U+12|0;do{a[(U&n)>>0]=0;U=U+1|0}while((U|0)<(V|0));c[(t&p)+4>>2]=A;c[(t&p)>>2]=C;c[(t&p)+12>>2]=c[(J&p)>>2];c[(J&p)>>2]=t}t=t+8|0;if((d[(t&n)>>0]|0)<(v&255)){a[(t&n)>>0]=v;S=z;T=s;U=W;V=X}else{S=z;T=s;U=W;V=X}break}case 1213:{ie=0;c[(sd&p)>>2]=0;v=c[((c[(s+(r*20|0)&p)+16>>2]|0)&p)+8>>2]|0;if(!v){t=r;s=6;u=x;ie=1309;break c}w=c[(v&p)>>2]|0;if(!w){t=r;s=6;u=x;ie=1309;break c}C=rc[c[(w&p)+24>>2]&127](v,sd)|0;Mm(f,v);if(C){t=r;s=C;u=x;ie=1309;break c}c[(c[(sd&p)>>2]&p)>>2]=v;t=xm(f,c[(s+(r*20|0)&p)+4>>2]|0,0,-1,0)|0;if(!t){a[(ge&n)>>0]=1;lc[c[(w&p)+28>>2]&127](c[(sd&p)>>2]|0)|0;S=z;T=s;U=W;V=X;break}else{c[(t&p)+32>>2]=c[(sd&p)>>2];S=v+4|0;c[(S&p)>>2]=(c[(S&p)>>2]|0)+1;S=z;T=s;U=W;V=X;break}}case 1226:{ie=0;t=z+(C*40|0)+8|0;if(!(b[(t&o)>>1]&9312)){b[(t&o)>>1]=1;S=z;T=s;U=W;V=X;break}else{vg(A);S=z;T=s;U=W;V=X;break}}case 1257:{ie=0;S=u;c[(S&p)>>2]=c[((c[((c[((c[(Xd&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<4)&p)+4>>2]|0)&p)+4>>2]|0)&p)+44>>2];c[(S&p)+4>>2]=0;S=z;T=s;U=W;V=X;break}case 1258:{ie=0;v=c[((c[(Xd&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<4)&p)+4>>2]|0;t=c[(s+(r*20|0)&p)+12>>2]|0;u=c[(v&p)+4>>2]|0;if(!t)t=0;else{V=c[(u&p)+44>>2]|0;t=V>>>0>>0?t:V}c[(u&p)+4>>2]=c[(v&p)>>2];u=(c[(u&p)>>2]|0)+156|0;if((t|0)>0)c[(u&p)>>2]=t;else t=c[(u&p)>>2]|0;S=J;c[(S&p)>>2]=t;c[(S&p)+4>>2]=((t|0)<0)<<31>>31;S=z;T=s;U=W;V=X;u=J;break}case 1264:{ie=0;r=c[(s+(t*20|0)&p)+8>>2]|0;r=(r|0)==0?t:r+-1|0;if((c[(Sa&p)>>2]|0)!=0?(b[(Yd&o)>>1]&512)==0:0){t=c[(s+(t*20|0)&p)+16>>2]|0;if(!t){t=c[(ce&p)>>2]|0;if(!t){S=z;T=s;U=W;V=X;u=L;break}}c[(Sd&p)>>2]=0;F=c[(f&p)>>2]|0;v=c[(F&p)+88>>2]|0;c[(fb&p)>>2]=Nd;c[(gb&p)>>2]=Nd;c[(hb&p)>>2]=0;c[(ib&p)>>2]=100;c[(jb&p)>>2]=v;a[(kb&n)>>0]=1;a[(lb&n)>>0]=0;c[(qd&p)>>2]=F;v=a[(t&n)>>0]|0;u=v<<24>>24==0;E:do if((c[(F&p)+160>>2]|0)>1){if(!u)while(1){u=t;do{u=u+1|0;if(v<<24>>24==10)break;v=a[(u&n)>>0]|0}while(v<<24>>24!=0);Sk(qd,42288,3);Sk(qd,t,u-t|0);v=a[(u&n)>>0]|0;if(!(v<<24>>24))break;else t=u}}else if(!u){H=F+62|0;K=1;do{F:do if(!(v<<24>>24)){A=0;u=0}else{C=t;u=0;while(1){A=Cn(C,ke)|0;if((c[(ke&p)>>2]|0)==135)break F;u=A+u|0;C=C+A|0;if(!(a[(C&n)>>0]|0)){A=0;break}}}while(0);Sk(qd,t,u);C=t+u|0;if(!A)break E;do if((a[(C&n)>>0]|0)==63)if((A|0)>1){Dn(t+(u+1)|0,Sd)|0;C=c[(Sd&p)>>2]|0;break}else{c[(Sd&p)>>2]=K;C=K;break}else{C=qh(f,C,A)|0;c[(Sd&p)>>2]=C}while(0);t=t+(u+A)|0;K=C+1|0;J=C+-1|0;I=c[(Ab&p)>>2]|0;C=I+(J*40|0)|0;A=e[(I+(J*40|0)&o)+8>>1]|0;do if(!(A&1)){if(A&4){T=C;U=c[(T&p)+4>>2]|0;V=ke;c[(V&p)>>2]=c[(T&p)>>2];c[(V&p)+4>>2]=U;En(qd,0,19920,ke);break}if(A&8){h[(k&q)>>3]=+h[(C&q)>>3];c[(ke&p)>>2]=c[(k&p)>>2];c[(ke&p)+4>>2]=c[(k&p)+4>>2];En(qd,0,20272,ke);break}if(!(A&2)){if(A&16384){c[(ke&p)>>2]=c[(C&p)>>2];En(qd,0,42304,ke);break}Sk(qd,42320,2);E=c[(I+(J*40|0)&p)+12>>2]|0;if((E|0)>0){C=I+(J*40|0)+16|0;A=0;do{c[(ke&p)>>2]=d[((c[(C&p)>>2]|0)+A&n)>>0];En(qd,0,42328,ke);A=A+1|0}while((A|0)!=(E|0))}Sk(qd,42336,1);break}else{E=a[(H&n)>>0]|0;if(E<<24>>24==1){V=c[(I+(J*40|0)&p)+16>>2]|0;c[(ke&p)>>2]=c[(I+(J*40|0)&p)+12>>2];c[(ke&p)+4>>2]=V;En(qd,0,42296,ke);break}U=Od+0|0;V=U+40|0;do{c[(U&p)>>2]=0;U=U+4|0}while((U|0)<(V|0));c[(nb&p)>>2]=F;Xg(Od,c[(I+(J*40|0)&p)+16>>2]|0,c[(I+(J*40|0)&p)+12>>2]|0,E,0)|0;V=c[(ob&p)>>2]|0;if(!((V&2|0)==0|(V&16711680|0)==65536))Bn(Od,1)|0;V=c[(qb&p)>>2]|0;c[(ke&p)>>2]=c[(pb&p)>>2];c[(ke&p)+4>>2]=V;En(qd,0,42296,ke);if((b[(ob&o)>>1]&9312)==0&(c[(rb&p)>>2]|0)==0)break;Qg(Od);break}}else Sk(qd,20304,4);while(0);v=a[(t&n)>>0]|0}while(v<<24>>24!=0)}while(0);S=tg(qd)|0;jc[c[(Sa&p)>>2]&15](c[(mb&p)>>2]|0,S);mg(le,S);S=z;T=s;U=W;V=X;u=L}else{S=z;T=s;U=W;V=X;u=L}break}}if((ie|0)==28){ie=0;z=s+(r*20|0)+4|0;t=c[(z&p)>>2]|0;if(t){y=z;ie=34;break}z=c[(sb&p)>>2]|0;if(!z){ie=30;break}c[(sb&p)>>2]=c[(z&p)+4>>2];c[(tb&p)>>2]=(c[(tb&p)>>2]|0)+-1;l=c[(ub&p)>>2]|0;c[(vb&p)>>2]=l;c[(wb&p)>>2]=(c[(wb&p)>>2]|0)+l;z=Xl(z)|0;l=ne;t=c[(zc&p)>>2]|0;if((c[(s+(r*20|0)&p)+8>>2]|0)==4)r=(c[(t+(z*20|0)&p)+8>>2]|0)+-1|0;else r=z;m=c[(l&p)>>2]|0;l=c[(l&p)+4>>2]|0;S=c[(Nc&p)>>2]|0;T=t;U=W;V=X}else if((ie|0)==488){ie=0;u=sm(le,C,A)|0;if(!u){S=z;T=s;U=W;V=X;u=E}else{t=r;ie=1318;break}}z=S;s=T;W=U;X=V;t=r+1|0}switch(ie|0){case 30:{c[(me&p)>>2]=t;a[(fe&n)>>0]=c[(s+(r*20|0)&p)+8>>2];c[(he&p)>>2]=r;ie=41;break}case 34:{c[(me&p)>>2]=t;a[(fe&n)>>0]=c[(s+(r*20|0)&p)+8>>2];c[(he&p)>>2]=r;t=a[(s+(r*20|0)&n)+3>>0]|0;if(!(t<<24>>24)){s=c[(s+(r*20|0)&p)+16>>2]|0;if(!s){s=0;ie=39}else{c[(ke&p)>>2]=s;dh(je,le,10344,ke)}}else{u=c[((t&255)+-1<<2&p)+41536>>2]|0;t=c[(s+(r*20|0)&p)+16>>2]|0;if(!t){s=u;ie=39}else{c[(ke&p)>>2]=u;c[(ke&p)+4>>2]=t;dh(je,le,41624,ke)}}if((ie|0)==39){c[(ke&p)>>2]=s;dh(je,le,41656,ke)}ie=c[(y&p)>>2]|0;qd=c[(ce&p)>>2]|0;rd=c[(je&p)>>2]|0;c[(ke&p)>>2]=r;c[(ke&p)+4>>2]=qd;c[(ke&p)+8>>2]=rd;bd(ie,41600,ke);ie=41;break}case 80:{x=c[(be&p)>>2]|0;if(!((x|0)==0|g>>>0>>0)?(lc[x&127](c[(Zd&p)>>2]|0)|0)!=0:0){r=m;s=9;m=u;ie=1311;break a}rd=_d;qd=c[(rd&p)+4>>2]|0;if((qd|0)>0|(qd|0)==0&(c[(rd&p)>>2]|0)>>>0>0){s=c[(f&p)>>2]|0;c[(me&p)>>2]=787;a[(fe&n)>>0]=2;dh(je,s,34376,ke);s=1;ie=1309;break}x=$l(f,1)|0;if(!x){c[($d&p)>>2]=(c[($d&p)>>2]|0)+2|1;y=c[(s+(t*20|0)&p)+4>>2]|0;c[(de&p)>>2]=z+(y*40|0);r=s+(t*20|0)+8|0;if((c[(r&p)>>2]|0)>0){x=0;do{v=x+y|0;w=z+(v*40|0)|0;v=z+(v*40|0)+8|0;s=b[(v&o)>>1]|0;if(s&4096){if(Vl(w)|0){y=ge;z=je;r=m;m=u;ie=1317;break a}s=b[(v&o)>>1]|0}if((s&514)==2)am(w)|0;x=x+1|0}while((x|0)<(c[(r&p)>>2]|0))}if(a[(ge&n)>>0]|0){y=ge;z=je;r=m;m=u;ie=1317;break a}c[(he&p)>>2]=t+1;r=m;m=g;g=100;break a}else{s=x;ie=1309}break}case 313:{c[(ke&p)>>2]=73058;c[(ke&p)+4>>2]=10788;bd(11,13600,ke);s=11;ie=1309;break}case 343:{c[(ke&p)>>2]=73142;c[(ke&p)+4>>2]=10788;bd(11,13600,ke);s=11;ie=1309;break}case 447:{dh(je,le,41712,ke);t=r;s=5;ie=1309;break}case 460:{c[(ke&p)>>2]=s;dh(je,le,41768,ke);s=1;ie=1309;break}case 462:{dh(je,le,41792,ke);s=5;ie=1309;break}case 467:{c[(he&p)>>2]=g;a[(ee&n)>>0]=0;c[(me&p)>>2]=5;g=5;break a}case 489:{v=c[(s+(t*20|0)&p)+4>>2]|0;s=c[(s+(t*20|0)&p)+8>>2]|0;g=(v|0)!=0;if(g){s=(s|0)!=0;if(!(s|(a[(ee&n)>>0]|0)!=0))if((c[(ae&p)>>2]|0)>0){dh(je,le,41848,ke);g=m;m=r;s=5;ie=1309;break}else s=0}else s=(s|0)!=0;if((v|0)==(d[(ee&n)>>0]|0)){if(g)g=s?41952:42e3;else g=41904;dh(je,le,g,ke);g=m;m=r;s=1;ie=1309;break}if(!s){g=tm(f,1)|0;if(g)break a;a[(ee&n)>>0]=v;if((Rl(f)|0)==5){c[(he&p)>>2]=t;a[(ee&n)>>0]=1-v;c[(me&p)>>2]=5;g=5;break a}}else{Kl(le,516);a[(ee&n)>>0]=1}Ll(le);g=(c[(me&p)>>2]|0)==0?101:1;break a}case 508:{c[(he&p)>>2]=g;c[(me&p)>>2]=5;g=5;break a}case 522:{mg(le,c[(je&p)>>2]|0);c[(je&p)>>2]=kh(le,16040)|0;s=c[(s&p)>>2]|0;if((c[(c[((c[(Xd&p)>>2]|0)+(s<<4)&p)+12>>2]&p)>>2]|0)!=(v|0))vm(le,s);b[(Yd&o)>>1]=b[(Yd&o)>>1]|8;s=17;ie=1309;break}case 542:{c[(ke&p)>>2]=73997;c[(ke&p)+4>>2]=10788;bd(11,13600,ke);u=11;x=s;ie=1318;break}case 560:{c[(s&p)+56>>2]=0;s=7;ie=1309;break}case 832:{a[(fe&n)>>0]=2;s=6;ie=1309;break}case 882:{Eg(le);y=ge;z=je;r=m;m=u;ie=1317;break a}case 884:{Eg(le);if((s|0)==7){y=ge;z=je;r=m;m=u;ie=1317;break a}else ie=1309;break}case 998:{dh(je,le,42112,ke);s=1;ie=1309;break}case 1080:{c[(ke&p)>>2]=s?42208:42216;dh(je,le,42152,ke);s=1;ie=1309;break}case 1101:{dh(je,le,42344,ke);s=1;ie=1309;break}case 1103:{dh(je,le,42384,ke);s=1;ie=1309;break}case 1145:{c[(ke&p)>>2]=56343;c[(ke&p)+4>>2]=10788;bd(11,13600,ke);s=11;ie=1309;break}case 1316:{dh(je,le,10096,ke);r=m;s=18;m=u;ie=1311;break a}}if((ie|0)==41)if((Rl(f)|0)==5){c[(me&p)>>2]=5;r=m;m=g;g=5;break a}else{r=m;m=g;g=(c[(me&p)>>2]|0)!=0?1:101;break a}else if((ie|0)==1309){r=m;t=t+1|0;m=u;ie=1311;break a}else if((ie|0)==1318){u=(a[(ge&n)>>0]|0)==0?u:7;if((u|0)==3082){r=m;s=3082;m=x;ie=1311;break a}else if((u|0)!=516){r=u&255;if(r>>>0>26|(r|0)==2)s=16328;else s=c[(r<<2&p)+15488>>2]|0}else s=16344;c[(ke&p)>>2]=s;dh(je,le,10344,ke);r=m;s=u;m=x;ie=1311;break a}}else{u=f+44|0;r=m;g=0;t=0;m=0}while(0);c[(me&p)>>2]=9;c[(ke&p)>>2]=15832;dh(u,le,10344,ke);s=9;ie=1311}while(0);if((ie|0)==1317){a[(y&n)>>0]=1;dh(z,le,15776,ke);s=7;ie=1311}if((ie|0)==1311){c[(me&p)>>2]=s;qd=c[(f&p)+168>>2]|0;rd=c[(f&p)+44>>2]|0;c[(ke&p)>>2]=t;c[(ke&p)+4>>2]=qd;c[(ke&p)+8>>2]=rd;bd(s,42256,ke);Rl(f)|0;if((s|0)==3082)a[(le&n)+65>>0]=1;if(!(m<<24>>24)){m=g;g=1}else{vm(le,(m&255)+-1|0);m=g;g=1}}rd=ne;c[(rd&p)>>2]=r;c[(rd&p)+4>>2]=l;rd=f+124|0;c[(rd&p)>>2]=(c[(rd&p)>>2]|0)+m;i=oe;return g|0} function Ev(e){e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=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=e+20|0;u=e+14|0;f=a[(u&n)>>0]|0;z=e+13|0;g=a[(z&n)>>0]|0;a:do if((f&255)>(g&255))f=0;else{B=e+4|0;C=e+16|0;v=e+8|0;w=e+12|0;x=e+24|0;y=e+28|0;i=f&255;j=c[(B&p)>>2]|0;h=c[(D&p)>>2]|0;b:while(1){t=c[(e+(i+-2<<2)&p)+24>>2]|0;s=c[(e+(i+-1<<2)&p)+24>>2]|0;if(j){while(1){r=j+12|0;if((h|0)<(c[(r&p)>>2]|0)){g=h;f=(c[(j&p)+20>>2]|0)+(h*48|0)|0;while(1){do if((c[(f&p)+8>>2]|0)==(t|0)?(c[(f&p)+12>>2]|0)==(s|0):0){if((d[(u&n)>>0]|0)>=3?(c[((c[(f&p)>>2]|0)&p)+4>>2]&1|0)!=0:0)break;q=f+18|0;h=b[(q&o)>>1]|0;if((h&1024)!=0?(A=a[(z&n)>>0]|0,(A&255)<22):0){i=c[((c[(f&p)>>2]|0)&p)+16>>2]|0;c:do if(!i)i=0;else while(1){k=c[(i&p)+4>>2]|0;if(!(k&4096))break c;if(!(k&262144))i=i+12|0;else i=c[((c[(i&p)+20>>2]|0)&p)+4>>2]|0;i=c[(i&p)>>2]|0;if(!i){i=0;break}}while(0);d:do if(!(A<<24>>24)){m=0;k=0}else{l=c[(i&p)+28>>2]|0;m=i+32|0;k=0;while(1){if((c[(e+(k<<2)&p)+24>>2]|0)==(l|0)?(c[(e+((k|1)<<2)&p)+24>>2]|0)==(b[(m&o)>>1]|0):0){m=A;break d}k=k+2|0;if((k|0)>=(A&255|0)){m=A;break}}}while(0);if((k|0)==(m&255|0)){c[(e+(k<<2)&p)+24>>2]=c[(i&p)+28>>2];c[(e+((k|1)<<2)&p)+24>>2]=b[(i&o)+32>>1];a[(z&n)>>0]=(d[(z&n)>>0]|0)+2}}i=h&65535;if(i&c[(C&p)>>2]){if((c[(v&p)>>2]|0)!=0&(i&128|0)==0){l=c[(c[(j&p)>>2]&p)>>2]|0;k=c[(f&p)>>2]|0;i=a[(w&n)>>0]|0;h=(nv(k)|0)<<24>>24;if((h|0)==66){if(i<<24>>24!=66)break}else if((h|0)!=65?i<<24>>24<=66:0)break;h=Ou(l,c[(k&p)+12>>2]|0,c[(k&p)+16>>2]|0)|0;if(!h)h=c[((c[(l&p)>>2]|0)&p)+8>>2]|0;if(dd(c[(h&p)>>2]|0,c[(v&p)>>2]|0)|0)break;h=b[(q&o)>>1]|0}if(!(h&2))break b;h=c[((c[(f&p)>>2]|0)&p)+16>>2]|0;if((a[(h&n)>>0]|0)!=-102)break b;if((c[(h&p)+28>>2]|0)!=(c[(x&p)>>2]|0))break b;if((b[(h&o)+32>>1]|0)!=(c[(y&p)>>2]|0))break b}}while(0);g=g+1|0;if((g|0)>=(c[(r&p)>>2]|0))break;else f=f+48|0}g=c[(B&p)>>2]|0}else g=j;j=c[(g&p)+4>>2]|0;c[(B&p)>>2]=j;if(!j)break;else h=0}f=a[(u&n)>>0]|0;g=a[(z&n)>>0]|0}j=c[(e&p)>>2]|0;c[(B&p)>>2]=j;h=(f&255)+2|0;f=h&255;a[(u&n)>>0]=f;if((f&255)>(g&255)){f=0;break a}else{i=h&255;h=0}}c[(D&p)>>2]=g+1}while(0);return f|0}function Fv(d,f){d=d|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0,m=0,q=0;g=c[(d&p)>>2]|0;l=c[(c[(g&p)>>2]&p)>>2]|0;d=c[(d&p)+16>>2]|0;a:do if(!d){g=g+16|0;i=c[(g&p)>>2]|0;k=f+36|0;if((c[(k&p)>>2]&512|0)!=0&(i|0)!=0){d=f+20|0;j=f+22|0;h=a[(f&n)+16>>0]|0;do{do if((a[(i&n)+16>>0]|0)==h<<24>>24?(c[(i&p)+36>>2]&512|0)!=0:0){if(Tv(i,f)|0){b[(d&o)>>1]=b[(i&o)+20>>1]|0;b[(j&o)>>1]=(e[(i&o)+22>>1]|0)+65535;break}if(Tv(f,i)|0){b[(d&o)>>1]=b[(i&o)+20>>1]|0;b[(j&o)>>1]=(e[(i&o)+22>>1]|0)+1}}while(0);i=c[(i&p)+52>>2]|0}while((i|0)!=0)}d=Uv(g,f)|0;if(d){g=c[(d&p)>>2]|0;b:do if(g){d=g+52|0;if(c[(d&p)>>2]|0)do{d=Uv(d,f)|0;if(!d)break b;h=c[(d&p)>>2]|0;if(!h)break b;c[(d&p)>>2]=c[(h&p)+52>>2];Ju(l,h);mg(l,h)}while((c[(d&p)>>2]|0)!=0)}else{g=mh(l,72,0)|0;c[(d&p)>>2]=g;if(!g){d=7;break a}c[(g&p)+48>>2]=g+56;b[(g&o)+40>>1]=0;b[(g&o)+44>>1]=3;c[(g&p)+36>>2]=0;c[(g&p)+52>>2]=0}while(0);Lv(l,g);do if(!(Nu(l,g,e[(f&o)+40>>1]|0)|0)){h=g+0|0;d=f+0|0;i=h+44|0;do{c[(h&p)>>2]=c[(d&p)>>2];h=h+4|0;d=d+4|0}while((h|0)<(i|0));kw(c[(g&p)+48>>2]|0,c[(f&p)+48>>2]|0,e[(g&o)+40>>1]<<2|0)|0;d=c[(k&p)>>2]|0;if(d&1024){a[(f&n)+28>>0]=0;break}if(d&16384)c[(f&p)+28>>2]=0}else{d=g+24|0;c[(d&p)>>2]=0;c[(d&p)+4>>2]=0;c[(d&p)+8>>2]=0}while(0);if(((c[(g&p)+36>>2]&1024|0)==0?(m=g+28|0,q=c[(m&p)>>2]|0,(q|0)!=0):0)?(c[(q&p)+40>>2]|0)==0:0){c[(m&p)>>2]=0;d=0}else d=0}else d=0}else{g=f;Kv(d,c[(g&p)>>2]|0,c[(g&p)+4>>2]|0,b[(f&o)+20>>1]|0,b[(f&o)+22>>1]|0);d=0}while(0);return d|0}function Gv(a,b){a=a|0;b=b|0;var c=0,e=0;c=a<<16>>16;e=b<<16>>16;do if(a<<16>>16>16)if((e|0)<=(c+49|0))if((e|0)>(c+31|0)){a=e+1&65535;break}else{a=(d[(e-c&n)+34032>>0]|0)+e&65535;break}else a=b;else if((c|0)<=(e+49|0))if((c|0)>(e+31|0)){a=c+1&65535;break}else{a=(d[(c-e&n)+34032>>0]|0)+c&65535;break}while(0);return a|0}function Hv(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0;do if(!(Cu(b,d,e)|0))f=1;else{f=a[(d&n)>>0]|0;if(f<<24>>24==71){if(Hv(b,c[(d&p)+12>>2]|0,e)|0){f=1;break}if(Hv(b,c[(d&p)+16>>2]|0,e)|0){f=1;break}if(f<<24>>24==77)g=6}else if(f<<24>>24==77)g=6;if(((g|0)==6?(Cu(c[(b&p)+12>>2]|0,c[(d&p)+12>>2]|0,e)|0)==0:0)?(f=a[(b&n)>>0]|0,!(f<<24>>24==73|f<<24>>24==76)):0){f=1;break}f=0}while(0);return f|0}function Iv(a,d,f){a=a|0;d=d|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0;x=i;i=i+16|0;if((i|0)>=(j|0))fa();w=x;u=d;v=d+8|0;g=v;t=~(c[(g&p)>>2]|c[(u&p)>>2]);u=~(c[(g&p)+4>>2]|c[(u&p)+4>>2]);g=c[(a&p)+12>>2]|0;r=a+20|0;a:do if((g|0)>0){s=d+40|0;a=d+22|0;q=d+48|0;d=0;n=c[(r&p)>>2]|0;while(1){if(b[(n&o)+20>>1]&2)break a;m=n+40|0;l=c[(m&p)>>2]|0;m=c[(m&p)+4>>2]|0;k=v;b:do if(((c[(k&p)>>2]&l|0)!=0?1:(c[(k&p)+4>>2]&m|0)!=0)&((l&t|0)==0&(m&u|0)==0)){h=b[(s&o)>>1]|0;c:do if(h<<16>>16){m=c[(q&p)>>2]|0;l=h&65535;while(1){h=l;l=l+-1|0;k=c[(m+(l<<2)&p)>>2]|0;if(k){if((k|0)==(n|0))break;k=c[(k&p)+4>>2]|0;if((k|0)>-1?((c[(r&p)>>2]|0)+(k*48|0)|0)==(n|0):0)break}if((l|0)<=0)break c}if((h|0)>=1)break b}while(0);h=b[(n&o)+16>>1]|0;if(h<<16>>16<1){b[(a&o)>>1]=(e[(a&o)>>1]|0)+(h&65535);break}b[(a&o)>>1]=(b[(a&o)>>1]|0)+-1<<16>>16;if(b[(n&o)+18>>1]&2){l=(Ms(c[((c[(n&p)>>2]|0)&p)+16>>2]|0,w)|0)!=0;m=c[(w&p)>>2]|0;m=l&(m|0)>-2&(m|0)<2?10:20;c[(w&p)>>2]=m;d=(d<<16>>16|0)<(m|0)?m&65535:d}}while(0);g=g+-1|0;if((g|0)<=0)break;else n=n+48|0}}else{a=d+22|0;d=0}while(0);d=(f<<16>>16)-(d<<16>>16)|0;if((b[(a&o)>>1]|0)>(d|0))b[(a&o)>>1]=d;i=x;return}function Jv(d,f,g,h){d=d|0;f=f|0;g=g|0;h=h|0;var k=0,l=0,m=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,ga=0,ha=0;ha=i;i=i+112|0;if((i|0)>=(j|0))fa();R=ha;V=c[(c[(c[(d&p)>>2]&p)>>2]&p)>>2]|0;ea=c[(d&p)+12>>2]|0;if(!(a[(V&n)+65>>0]|0)){ga=ea+36|0;if(!(c[(ga&p)>>2]&32))if((c[(g&p)+40>>2]|0)<1)k=63;else k=(a[(f&n)+36>>0]&8)<<4^191;else k=24;W=g+51|0;ca=ea+24|0;l=b[((c[(g&p)+4>>2]|0)+(e[(ca&o)>>1]<<1)&o)>>1]|0;N=l<<16>>16;O=d+4|0;k=Dv(R,c[(O&p)>>2]|0,c[(f&p)+40>>2]|0,N,(a[(W&n)>>0]&4)==0?k:k&131,g)|0;X=b[(ca&o)>>1]|0;Y=ea+42|0;T=b[(Y&o)>>1]|0;Z=ea+40|0;U=b[(Z&o)>>1]|0;_=c[(ga&p)>>2]|0;Q=ea;P=c[(Q&p)>>2]|0;Q=c[(Q&p)+4>>2]|0;$=ea+22|0;aa=b[($&o)>>1]|0;b[(ea&o)+18>>1]=0;ba=g+8|0;D=b[(c[(ba&p)>>2]&o)>>1]|0;if(D<<16>>16<11)C=0;else{C=D<<16>>16;C=((fs(C,((C|0)<0)<<31>>31)|0)&65535)+65503&65535}a:do if(!k)k=0;else{E=l<<16>>16<0;F=f+16|0;G=ea+8|0;H=(U&65535)+1|0;I=ea+48|0;J=h<<16>>16==0;K=g+46|0;w=l<<16>>16>-1;x=g+50|0;y=g+44|0;z=ea+20|0;A=h<<16>>16;B=g+48|0;r=0;u=k;s=0;while(1){l=b[(u&o)+18>>1]|0;t=l&65535;if(l<<16>>16==128)if(!E?(a[((c[((c[(F&p)>>2]|0)&p)+4>>2]|0)+(N*24|0)&n)+20>>0]|0)==0:0)S=12;else{m=r;l=s;k=0}else S=12;if((S|0)==12){S=0;m=u+32|0;v=m;q=G;if(((c[(q&p)>>2]&c[(v&p)>>2]|0)==0?(c[(q&p)+4>>2]&c[(v&p)+4>>2]|0)==0:0)?(L=u+20|0,!((b[(L&o)>>1]&256)!=0&l<<16>>16==16)):0){c[(ga&p)>>2]=_;b[(ca&o)>>1]=X;b[(Z&o)>>1]=U;if(Nu(V,ea,H)|0){k=0;break a}k=b[(Z&o)>>1]|0;q=k+1<<16>>16;b[(Z&o)>>1]=q;c[((c[(I&p)>>2]|0)+((k&65535)<<2)&p)>>2]=u;k=m;l=G;m=(c[(k&p)+4>>2]|Q)&~c[(l&p)+4>>2];v=ea;c[(v&p)>>2]=(c[(k&p)>>2]|P)&~c[(l&p)>>2];c[(v&p)+4>>2]=m;b:do if(!(t&1)){if(t&2){k=c[(ga&p)>>2]|0;l=k|1;c[(ga&p)>>2]=l;do if(!E){if(!J){v=0;break b}if((e[(ca&o)>>1]|0)!=((e[(K&o)>>1]|0)+-1|0)){v=0;break b}if(!w)break;if(a[(x&n)>>0]|0)break;l=k|65537;c[(ga&p)>>2]=l;v=0;break b}while(0);l=k|4097;c[(ga&p)>>2]=l;v=0;break}if(t&128){l=c[(ga&p)>>2]|8;c[(ga&p)>>2]=l;v=0;break}k=c[(ga&p)>>2]|0;if(!(t&36)){l=k|18;c[(ga&p)>>2]=l;if(!(k&32)){v=0;r=0;s=u;break}v=0;r=c[((c[(I&p)>>2]|0)+((q&65535)+-2<<2)&p)>>2]|0;s=u;break}l=k|34;c[(ga&p)>>2]=l;if(!(b[(L&o)>>1]&256)){v=0;r=u;s=0}else{k=u+48|0;if(Nu(V,ea,(q&65535)+1|0)|0){k=0;break a}l=b[(Z&o)>>1]|0;b[(Z&o)>>1]=l+1<<16>>16;c[((c[(I&p)>>2]|0)+((l&65535)<<2)&p)>>2]=k;l=c[(ga&p)>>2]|16;c[(ga&p)>>2]=l;v=0;r=u;s=k}}else{k=c[(u&p)>>2]|0;l=c[(ga&p)>>2]|4;c[(ga&p)>>2]=l;if(!(c[(k&p)+4>>2]&2048)){k=c[(k&p)+20>>2]|0;if((k|0)!=0?(M=c[(k&p)>>2]|0,(M|0)!=0):0)v=(fs(M,((M|0)<0)<<31>>31)|0)<<16>>16;else v=0}else v=46}while(0);do if(!(l&2)){k=(b[(ca&o)>>1]|0)+1<<16>>16;b[(ca&o)>>1]=k;k=k&65535;m=b[(u&o)+16>>1]|0;if(m<<16>>16<1&w){q=(m&65535)-v+(e[($&o)>>1]|0)&65535;b[($&o)>>1]=q;break}m=c[(ba&p)>>2]|0;m=(e[($&o)>>1]|0)+((e[(m+(k<<1)&o)>>1]|0)-(e[(m+(k+-1<<1)&o)>>1]|0))|0;k=m&65535;b[($&o)>>1]=k;if(!(t&128))q=k;else{q=m+10&65535;b[($&o)>>1]=q}}else{k=b[($&o)>>1]|0;q=k<<16>>16;do if(r){m=b[(r&o)+16>>1]|0;if(m<<16>>16<1){k=(m&65535)+(k&65535)&65535;break}else{k=(k&65535)+65516&65535;break}}while(0);do if(s){m=b[(s&o)+16>>1]|0;if(m<<16>>16<1){k=(m&65535)+(k&65535)&65535;break}else{k=(k&65535)+65516&65535;break}}while(0);m=(r|0)!=0;do if(m?(b[(r&o)+16>>1]|0)>0&(s|0)!=0:0){if((b[(s&o)+16>>1]|0)<=0)break;k=(k&65535)+65516&65535}while(0);q=(((s|0)!=0)<<31>>31)+(m<<31>>31)+q|0;u=k<<16>>16<10?10:k<<16>>16;q=((u|0)<(q|0)?u:q)&65535;b[($&o)>>1]=q}while(0);k=q&65535;m=Gv(C,k+1+(((b[(y&o)>>1]|0)*15|0)/(b[((c[(F&p)>>2]|0)&o)+42>>1]|0)|0)&65535)|0;if(!(l&320))m=Gv(m,k+16&65535)|0;l=v+A|0;b[(z&o)>>1]=(m&65535)+l;b[($&o)>>1]=k+l;Iv(c[(O&p)>>2]|0,ea,D);k=Fv(d,ea)|0;v=c[(ga&p)>>2]|0;b[($&o)>>1]=(v&2|0)==0?q:aa;if((v&16|0)==0?(e[(ca&o)>>1]|0)<(e[(B&o)>>1]|0):0)Jv(d,f,g,l&65535)|0;b[($&o)>>1]=aa;m=r;l=s}else{m=r;l=s;k=0}}u=Ev(R)|0;if(!((k|0)==0&(u|0)!=0))break;else{r=m;s=l}}}while(0);l=ea;c[(l&p)>>2]=P;c[(l&p)+4>>2]=Q;b[(ca&o)>>1]=X;b[(Y&o)>>1]=T;c[(ga&p)>>2]=_;b[($&o)>>1]=aa;b[(Z&o)>>1]=U;l=X&65535;if(((X<<16>>16==T<<16>>16?(da=l+1|0,da>>>0<(e[(g&o)+46>>1]|0)>>>0):0)?(a[(W&n)>>0]&64)==0:0)?(b[((c[(ba&p)>>2]|0)+(da<<1)&o)>>1]|0)>41:0){k=Nu(V,ea,(U&65535)+1|0)|0;if(!k){b[(ca&o)>>1]=(b[(ca&o)>>1]|0)+1<<16>>16;b[(Y&o)>>1]=(b[(Y&o)>>1]|0)+1<<16>>16;k=b[(Z&o)>>1]|0;b[(Z&o)>>1]=k+1<<16>>16;c[((c[(ea&p)+48>>2]|0)+((k&65535)<<2)&p)>>2]=0;c[(ga&p)>>2]=c[(ga&p)>>2]|32768;k=c[(ba&p)>>2]|0;k=(e[(k+(l<<1)&o)>>1]|0)-(e[(k+(da<<1)&o)>>1]|0)|0;b[($&o)>>1]=(e[($&o)>>1]|0)-k;Jv(d,f,g,(((k<<16)+327680|0)>>>16)+(h&65535)&65535)|0;b[($&o)>>1]=aa;b[(ca&o)>>1]=X;b[(Y&o)>>1]=X;c[(ga&p)>>2]=_;k=0}}}else k=7;i=ha;return k|0}function Kv(a,d,e,f,g){a=a|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,i=0,j=0,k=0,l=0,m=0,n=0,q=0,r=0;l=b[(a&o)>>1]|0;h=a+8|0;a:do if(l<<16>>16){j=l;k=h;while(1){i=b[(k&o)+8>>1]|0;if(i<<16>>16>=f<<16>>16?(r=k,(c[(r&p)>>2]&d|0)==(d|0)?(c[(r&p)+4>>2]&e|0)==(e|0):0):0){n=k;q=14;break a}if(i<<16>>16<=f<<16>>16?(i=k,r=c[(i&p)>>2]|0,i=c[(i&p)+4>>2]|0,(r&d|0)==(r|0)&(i&e|0)==(i|0)):0)break a;j=j+-1<<16>>16;if(!(j<<16>>16))break;else k=k+16|0}if((l&65535)>=3){i=b[(a&o)+16>>1]|0;k=1;do{if(i<<16>>16>(b[(a+(k<<4)&o)+16>>1]|0))h=a+(k<<4)+8|0;k=k+1|0;i=b[(h&o)+8>>1]|0}while((k&65535)<(l&65535));if(i<<16>>16>f<<16>>16){n=h;q=14}}else q=9}else q=9;while(0);if((q|0)==9){n=l&65535;b[(a&o)>>1]=l+1<<16>>16;b[(a+(n<<4)&o)+18>>1]=g;n=a+(n<<4)+8|0;q=14}if((q|0)==14?(m=n,c[(m&p)>>2]=d,c[(m&p)+4>>2]=e,b[(n&o)+8>>1]=f,m=n+10|0,(b[(m&o)>>1]|0)>g<<16>>16):0)b[(m&o)>>1]=g;return}function Lv(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0;e=c[(d&p)+36>>2]|0;do if(e&17408){if((e&1024|0)!=0?(h=d+28|0,(a[(h&n)>>0]|0)!=0):0){e=d+32|0;Wc(c[(e&p)>>2]|0);a[(h&n)>>0]=0;c[(e&p)>>2]=0;break}if((e&16384|0)!=0?(f=d+28|0,g=c[(f&p)>>2]|0,(g|0)!=0):0){mg(b,c[(g&p)+16>>2]|0);mg(b,c[(f&p)>>2]|0);c[(f&p)>>2]=0}}while(0);return}function Mv(f,g,h,k,l,m,q){f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;m=m|0;q=q|0;var 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,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,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;ta=i;i=i+32|0;if((i|0)>=(j|0))fa();oa=ta;s=c[(c[(f&p)>>2]&p)>>2]|0;na=l&65535;if(l<<16>>16!=0?(b[(s&o)+60>>1]&128)!=0:0)r=0;else pa=3;a:do if((pa|0)==3){sa=c[(g&p)>>2]|0;r=sa&65535;if(r>>>0<=63){qa=iw(1,0,r|0)|0;qa=jw(qa|0,G|0,-1,-1)|0;ra=G;b:do if((qa|0)==0&(ra|0)==0){g=0;h=0;s=1}else{ha=h+24|0;ia=f+4|0;ja=(r|0)==0;ea=g+4|0;ga=(k&768)==0;da=s+8|0;W=(k&256)==0;X=f+68|0;Y=oa+20|0;Z=oa+4|0;aa=oa+24|0;ba=f+328|0;_=0;$=0;g=0;h=0;k=0;t=0;ca=0;s=1;l=0;while(1){if((ca|0)>0){U=l+8|0;V=c[(U&p)>>2]|k;t=c[(U&p)+4>>2]|t}else V=k;if((ca|0)<(na|0))l=c[((c[(ha&p)>>2]|0)+(ca<<2)&p)>>2]|0;else l=m;B=l+36|0;k=c[(B&p)>>2]|0;if(k&1024)break;U=c[((c[(ia&p)>>2]|0)+((d[(l&n)+16>>0]|0)*72|0)&p)+48>>2]|0;if(!ja){k=~V;v=~t;y=0;do{A=iw(1,0,y|0)|0;z=G;c:do if((A&g|0)==0&(z&h|0)==0){u=c[((c[(ea&p)>>2]|0)+(y*20|0)&p)>>2]|0;x=c[(u&p)+4>>2]|0;if(x&4096)do{if(!(x&262144))u=u+12|0;else u=c[((c[(u&p)+20>>2]|0)&p)+4>>2]|0;u=c[(u&p)>>2]|0;x=c[(u&p)+4>>2]|0}while((x&4096|0)!=0);if(((a[(u&n)>>0]|0)==-102?(c[(u&p)+28>>2]|0)==(U|0):0)?(ka=u+32|0,la=Fu(ba,U,b[(ka&o)>>1]|0,k,v,130,0)|0,(la|0)!=0):0){do if(b[(la&o)+18>>1]&2){if((b[(ka&o)>>1]|0)<=-1)break;u=cu(c[(f&p)>>2]|0,c[((c[(ea&p)>>2]|0)+(y*20|0)&p)>>2]|0)|0;if(!u)u=c[(da&p)>>2]|0;x=c[(u&p)>>2]|0;w=cu(c[(f&p)>>2]|0,c[(la&p)>>2]|0)|0;if(!w)w=c[(da&p)>>2]|0;if(dd(x,c[(w&p)>>2]|0)|0)break c}while(0);g=A|g;h=z|h}}while(0);y=y+1|0}while((y|0)<(r|0));k=c[(B&p)>>2]|0}do if(!(k&4096)){if(!(k&256)){u=c[(l&p)+28>>2]|0;if(!u){r=0;break a}if(a[(u&n)+51>>0]&4){r=0;break a}k=b[(u&o)+48>>1]|0;s=(a[(u&n)+50>>0]|0)!=0&1;if(!(k<<16>>16)){pa=71;break}else{S=k&65535;T=b[(u&o)+46>>1]|0}}else{S=1;T=0;u=0}J=l+24|0;K=l+42|0;L=l+48|0;M=(u|0)==0;N=u+32|0;O=iw(1,0,ca|0)|0;P=G;Q=u+4|0;R=u+28|0;I=u+12|0;k=0;u=0;A=0;H=0;d:while(1){z=(u|0)<(e[(J&o)>>1]|0);if((z?(b[(K&o)>>1]|0)==0:0)?(ma=e[((c[((c[(L&p)>>2]|0)+(u<<2)&p)>>2]|0)&o)+18>>1]|0,(ma&130|0)!=0):0){s=(ma&128|0)==0?s:0;z=H}else{if(!M){x=b[((c[(Q&p)>>2]|0)+(u<<1)&o)>>1]|0;w=a[((c[(R&p)>>2]|0)+u&n)>>0]|0;v=c[(I&p)>>2]|0;x=x<<16>>16==(b[(v&o)+36>>1]|0)?-1:x<<16>>16;y=(x|0)>-1;if(s<<24>>24!=0&y)if(z){y=1;F=x}else{y=1;F=x;s=(a[((c[(v&p)+4>>2]|0)+(x*24|0)&n)+20>>0]|0)==0?0:s}else F=x}else{y=0;F=-1;w=0}if(ja){pa=68;break}else{z=1;E=0}e:while(1){C=iw(1,0,E|0)|0;D=G;do if((C&g|0)==0&(D&h|0)==0){v=c[((c[(ea&p)>>2]|0)+(E*20|0)&p)>>2]|0;x=c[(v&p)+4>>2]|0;if(!(x&4096))B=v;else{B=v;do{if(!(x&262144))x=B+12|0;else x=c[((c[(B&p)+20>>2]|0)&p)+4>>2]|0;B=c[(x&p)>>2]|0;x=c[(B&p)+4>>2]|0}while((x&4096|0)!=0)}z=ga?0:z;if((a[(B&n)>>0]|0)!=-102)break;if((c[(B&p)+28>>2]|0)!=(U|0))break;if((b[(B&o)+32>>1]|0)!=(F|0))break;if(!y){B=C;y=D;z=E;break e}x=cu(c[(f&p)>>2]|0,v)|0;if(!x)x=c[(da&p)>>2]|0;if(!(dd(c[(x&p)>>2]|0,c[((c[(N&p)>>2]|0)+(u<<2)&p)>>2]|0)|0)){B=C;y=D;z=E;break e}}while(0);E=E+1|0;if(!(z<<24>>24!=0&(E|0)<(r|0))){pa=68;break d}}do if(W){if(H<<24>>24)if((w^A)<<24>>24==(a[((c[(ea&p)>>2]|0)+(z*20|0)&n)+12>>0]|0)){z=H;break}else{pa=68;break d}v=a[((c[(ea&p)>>2]|0)+(z*20|0)&n)+12>>0]|0;A=v^w;if(w<<24>>24==v<<24>>24){z=1;break}v=q;w=c[(v&p)+4>>2]|P;z=q;c[(z&p)>>2]=c[(v&p)>>2]|O;c[(z&p)+4>>2]=w;z=1}else z=H;while(0);g=B|g;h=y|h;k=(F|0)<0?1:k}u=u+1|0;if((u|0)>=(S|0))break;else H=z}if((pa|0)==68){pa=0;s=(u|0)==0|(u|0)<(T&65535|0)?0:s}if(!(k<<24>>24))pa=71;else s=1}else pa=71;while(0);if((pa|0)==71){pa=0;if(!(s<<24>>24)){s=0;break b}}U=l+8|0;_=c[(U&p)>>2]|_;$=c[(U&p)+4>>2]|$;if(!ja){z=~_;A=~$;y=0;do{u=iw(1,0,y|0)|0;x=G;do if((u&g|0)==0&(x&h|0)==0){k=c[((c[(ea&p)>>2]|0)+(y*20|0)&p)>>2]|0;v=Av(X,k)|0;w=G;if((v|0)==0&(w|0)==0?(c[(oa&p)>>2]=0,c[(oa&p)+4>>2]=0,c[(oa&p)+8>>2]=0,c[(oa&p)+12>>2]=0,c[(oa&p)+16>>2]=0,c[(oa&p)+20>>2]=0,a[(Y&n)>>0]=1,c[(oa&p)>>2]=78,c[(Z&p)>>2]=79,c[(aa&p)>>2]=0,rs(oa,k)|0,(a[(Y&n)>>0]|0)==0):0)break;U=(v&z|0)==0&(w&A|0)==0;g=(U?u:0)|g;h=(U?x:0)|h}while(0);y=y+1|0}while((y|0)<(r|0))}if(h>>>0>ra>>>0|(h|0)==(ra|0)&g>>>0>=qa>>>0|s<<24>>24==0|(ca|0)>=(na|0))break b;else{k=V;ca=ca+1|0}}ga=(a[(l&n)+29>>0]|0)==0;g=ga?g:qa;h=ga?h:ra}while(0);if((g|0)==(qa|0)&(h|0)==(ra|0)){r=sa&255;break}if(!(s<<24>>24)){do{r=r+-1|0;if((r|0)<=0){r=0;break a}ea=iw(1,0,r|0)|0;ea=jw(ea|0,G|0,-1,-1)|0;ga=G}while(!((ea&g|0)==(ea|0)&(ga&h|0)==(ga|0)));r=r&255}else r=-1}else r=0}while(0);i=ta;return r|0}function Nv(b,c,d,e){b=b|0;c=c|0;d=d|0;e=e|0;if(c)Sk(b,33920,5);if(!d)c=0;else{c=d;while(1)if(!(a[(c&n)>>0]|0))break;else c=c+1|0;c=c-d&1073741823}Sk(b,d,c);Sk(b,e,1);Sk(b,13552,1);return}function Ov(a){a=a|0;var d=0,e=0,f=0,g=0,h=0,i=0;i=c[(c[(c[(a&p)>>2]&p)>>2]&p)>>2]|0;d=c[(a&p)+12>>2]|0;g=a+20|0;if((d|0)>0){h=c[(g&p)>>2]|0;while(1){d=d+-1|0;f=h+20|0;e=b[(f&o)>>1]|0;if(e&1){Gk(i,c[(h&p)>>2]|0);e=b[(f&o)>>1]|0}e=e&65535;if(!(e&16)){if(e&32){e=c[(h&p)+12>>2]|0;Ov(e);mg(i,e)}}else{e=c[(h&p)+12>>2]|0;Ov(e);mg(i,e)}if((d|0)<=0)break;else h=h+48|0}}d=c[(g&p)>>2]|0;if((d|0)!=(a+24|0))mg(i,d);return}function Pv(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,o=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0;u=i;i=i+32|0;if((i|0)>=(j|0))fa();t=u;h=c[(b&p)+8>>2]|0;k=c[(b&p)>>2]|0;if(e){l=(f|0)==10;m=b+437|0;o=t+4|0;q=t+1|0;r=t+8|0;s=t+12|0;g=f&255;do{if(l)f=a[(e&n)+1>>0]|0;else f=g;a[(m&n)>>0]=f;f=d[(e&n)>>0]|0;if((f|0)==108){w=Vv(b,e)|0;v=gr(k,c[(e&p)+8>>2]|0,0)|0;f=Nr(k,c[(e&p)+28>>2]|0)|0;tr(b,w,v,f,d[(m&n)>>0]|0)}else if((f|0)==109){f=Vv(b,e)|0;rr(b,f,Mr(k,c[(e&p)+20>>2]|0,0,0)|0)}else if((f|0)==110){w=Vv(b,e)|0;v=Pr(k,c[(e&p)+24>>2]|0,0)|0;f=Mr(k,c[(e&p)+20>>2]|0,0,0)|0;sr(b,w,v,f,d[(m&n)>>0]|0)}else{f=gr(k,c[(e&p)+8>>2]|0,0)|0;a[(t&n)>>0]=4;c[(o&p)>>2]=0;a[(q&n)>>0]=0;c[(r&p)>>2]=0;c[(s&p)>>2]=0;ir(b,f,t)|0;Mk(k,f,1)}if((a[(e&n)>>0]|0)!=119)wh(h,98,0,0,0)|0;e=c[(e&p)+32>>2]|0}while((e|0)!=0)}i=u;return}function Qv(d,e,f,g){d=d|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0;m=i;i=i+16|0;if((i|0)>=(j|0))fa();h=m;l=c[(d&p)>>2]|0;c[(h&p)>>2]=0;c[(h&p)+4>>2]=0;h=nr(l,159,h,0)|0;do if(!h)h=0;else{k=g<<16>>16;if(g<<16>>16>-1?(b[(e&o)+36>>1]|0)!=g<<16>>16:0){g=c[(e&p)+4>>2]|0;c[(h&p)+28>>2]=f+1+k;a[(h&n)+1>>0]=a[(g+(k*24|0)&n)+21>>0]|0;k=c[(g+(k*24|0)&p)+16>>2]|0;if(!k)k=c[(c[(l&p)+8>>2]&p)>>2]|0;h=xv(d,h,k)|0;break}c[(h&p)+28>>2]=f;a[(h&n)+1>>0]=68}while(0);i=m;return h|0}function Rv(d,e,f,g){d=d|0;e=e|0;f=f|0;g=g|0;var h=0,i=0,j=0;d=mh(d,48,0)|0;if(d){h=d+0|0;i=h+44|0;do{a[(h&n)>>0]=0;h=h+1|0}while((h|0)<(i|0));a[(d&n)>>0]=-102;b[(d&o)+34>>1]=-1;c[(d&p)+24>>2]=1;h=c[(e+(f*72|0)&p)+24>>2]|0;c[(d&p)+44>>2]=h;c[(d&p)+28>>2]=c[(e+(f*72|0)&p)+48>>2];if((b[(h&o)+36>>1]|0)==(g|0))b[(d&o)+32>>1]=-1;else{b[(d&o)+32>>1]=g;j=(g|0)>63;g=iw(1,0,g|0)|0;h=e+(f*72|0)+64|0;f=h;i=c[(f&p)+4>>2]|(j?-2147483648:G);c[(h&p)>>2]=c[(f&p)>>2]|(j?0:g);c[(h&p)+4>>2]=i}h=d+4|0;c[(h&p)>>2]=c[(h&p)>>2]|4}return d|0}function Sv(b,e){b=b|0;e=e|0;if((a[(e&n)>>0]|0)==-101){e=e+38|0;a[(e&n)>>0]=(d[(e&n)>>0]|0)+(c[(b&p)+24>>2]|0)}return 0}function Tv(a,d){a=a|0;d=d|0;var f=0,g=0,h=0,i=0,j=0,k=0;f=b[(a&o)+40>>1]|0;i=f&65535;h=b[(a&o)+42>>1]|0;k=e[(d&o)+40>>1]|0;g=b[(d&o)+42>>1]|0;a:do if(!((g&65535)>(h&65535)?1:(i-(h&65535)|0)>=(k-(g&65535)|0))){g=b[(a&o)+20>>1]|0;h=b[(d&o)+20>>1]|0;if(g<<16>>16>=h<<16>>16){if(g<<16>>16>h<<16>>16){f=0;break}if((b[(a&o)+22>>1]|0)>(b[(d&o)+22>>1]|0)){f=0;break}}if(!(f<<16>>16))f=1;else{j=c[(a&p)+48>>2]|0;d=d+48|0;a=i;while(1){a=a+-1|0;h=c[(j+(a<<2)&p)>>2]|0;if(h){f=k;while(1){g=f+-1|0;if((f|0)<=0){f=0;break a}if((c[((c[(d&p)>>2]|0)+(g<<2)&p)>>2]|0)==(h|0))break;else f=g}if((f|0)<1){f=0;break a}}if((a|0)<=0){f=1;break}}}}else f=0;while(0);return f|0}function Uv(d,e){d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0,v=0;f=c[(d&p)>>2]|0;a:do if(f){k=a[(e&n)+16>>0]|0;l=e+17|0;m=e+18|0;q=e+20|0;r=e+22|0;s=e+42|0;t=e+36|0;do{if((a[(f&n)+16>>0]|0)==k<<24>>24?(a[(f&n)+17>>0]|0)==(a[(l&n)>>0]|0):0){if((((c[(f&p)+36>>2]&16384|0)!=0?(b[(s&o)>>1]|0)==0:0)?(c[(t&p)>>2]&513|0)==513:0)?(i=f,j=e,h=c[(j&p)>>2]|0,j=c[(j&p)+4>>2]|0,(h&c[(i&p)>>2]|0)==(h|0)?(j&c[(i&p)+4>>2]|0)==(j|0):0):0)break a;u=f;v=c[(u&p)>>2]|0;u=c[(u&p)+4>>2]|0;h=e;g=c[(h&p)>>2]|0;h=c[(h&p)+4>>2]|0;i=g&v;j=h&u;if((((i|0)==(v|0)&(j|0)==(u|0)?(b[(f&o)+18>>1]|0)<=(b[(m&o)>>1]|0):0)?(b[(f&o)+20>>1]|0)<=(b[(q&o)>>1]|0):0)?(b[(f&o)+22>>1]|0)<=(b[(r&o)>>1]|0):0){d=0;break a}if(((i|0)==(g|0)&(j|0)==(h|0)?(b[(f&o)+20>>1]|0)>=(b[(q&o)>>1]|0):0)?(b[(f&o)+22>>1]|0)>=(b[(r&o)>>1]|0):0)break a}d=f+52|0;f=c[(d&p)>>2]|0}while((f|0)!=0)}while(0);return d|0}function Vv(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;h=pr(c[(a&p)>>2]|0,0,b+12|0,0)|0;do if(h){g=c[(a&p)>>2]|0;f=c[((c[(b&p)+4>>2]|0)&p)+20>>2]|0;a:do if(f){e=c[(g&p)+20>>2]|0;if((e|0)>0){b=c[(g&p)+16>>2]|0;d=0;while(1){a=d+1|0;if((c[(b+(d<<4)&p)+12>>2]|0)==(f|0)){a=d;d=7;break a}if((a|0)<(e|0))d=a;else{d=7;break}}}else a=0}else{a=-1e6;d=7}while(0);if((d|0)==7)if(!((a|0)==0|(a|0)>1))break;a=kh(g,c[((c[(g&p)+16>>2]|0)+(a<<4)&p)>>2]|0)|0;c[(h+(((c[(h&p)>>2]|0)+-1|0)*72|0)&p)+12>>2]=a}while(0);return h|0}function Wv(a){a=a|0;var b=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,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;do if(a>>>0<245){if(a>>>0<11)q=16;else q=a+11&-8;a=q>>>3;l=c[12266]|0;i=l>>>a;if(i&3){e=(i&1^1)+a|0;f=e<<1;b=49104+(f<<2)|0;f=49104+(f+2<<2)|0;g=c[(f&p)>>2]|0;h=g+8|0;i=c[(h&p)>>2]|0;do if((b|0)!=(i|0)){if(i>>>0<(c[12270]|0)>>>0)Ob();d=i+12|0;if((c[(d&p)>>2]|0)==(g|0)){c[(d&p)>>2]=b;c[(f&p)>>2]=i;break}else Ob()}else c[12266]=l&~(1<>2]=x|3;x=g+(x|4)|0;c[(x&p)>>2]=c[(x&p)>>2]|1;x=h;return x|0}k=c[12268]|0;if(q>>>0>k>>>0){if(i){f=2<>>12&16;f=f>>>a;e=f>>>5&8;f=f>>>e;d=f>>>2&4;f=f>>>d;g=f>>>1&2;f=f>>>g;h=f>>>1&1;h=(e|a|d|g|h)+(f>>>h)|0;f=h<<1;g=49104+(f<<2)|0;f=49104+(f+2<<2)|0;d=c[(f&p)>>2]|0;a=d+8|0;e=c[(a&p)>>2]|0;do if((g|0)!=(e|0)){if(e>>>0<(c[12270]|0)>>>0)Ob();i=e+12|0;if((c[(i&p)>>2]|0)==(d|0)){c[(i&p)>>2]=g;c[(f&p)>>2]=e;m=c[12268]|0;break}else Ob()}else{c[12266]=l&~(1<>2]=q|3;j=d+q|0;c[(d+(q|4)&p)>>2]=b|1;c[(d+x&p)>>2]=b;if(m){e=c[12271]|0;g=m>>>3;i=g<<1;f=49104+(i<<2)|0;h=c[12266]|0;g=1<>2]|0;if(i>>>0<(c[12270]|0)>>>0)Ob();else{n=h;o=i}}else{c[12266]=h|g;n=49104+(i+2<<2)|0;o=f}c[(n&p)>>2]=e;c[(o&p)+12>>2]=e;c[(e&p)+8>>2]=o;c[(e&p)+12>>2]=f}c[12268]=b;c[12271]=j;x=a;return x|0}a=c[12267]|0;if(a){h=(a&0-a)+-1|0;w=h>>>12&16;h=h>>>w;v=h>>>5&8;h=h>>>v;x=h>>>2&4;h=h>>>x;i=h>>>1&2;h=h>>>i;g=h>>>1&1;g=c[((v|w|x|i|g)+(h>>>g)<<2&p)+49368>>2]|0;h=(c[(g&p)+4>>2]&-8)-q|0;i=g;while(1){d=c[(i&p)+16>>2]|0;if(!d){d=c[(i&p)+20>>2]|0;if(!d){l=h;k=g;break}}i=(c[(d&p)+4>>2]&-8)-q|0;x=i>>>0>>0;h=x?i:h;i=d;g=x?d:g}a=c[12270]|0;if(k>>>0>>0)Ob();b=k+q|0;if(k>>>0>=b>>>0)Ob();j=c[(k&p)+24>>2]|0;g=c[(k&p)+12>>2]|0;do if((g|0)==(k|0)){h=k+20|0;i=c[(h&p)>>2]|0;if(!i){h=k+16|0;i=c[(h&p)>>2]|0;if(!i){e=0;break}}while(1){g=i+20|0;f=c[(g&p)>>2]|0;if(f){i=f;h=g;continue}g=i+16|0;f=c[(g&p)>>2]|0;if(!f)break;else{i=f;h=g}}if(h>>>0>>0)Ob();else{c[(h&p)>>2]=0;e=i;break}}else{f=c[(k&p)+8>>2]|0;if(f>>>0>>0)Ob();i=f+12|0;if((c[(i&p)>>2]|0)!=(k|0))Ob();h=g+8|0;if((c[(h&p)>>2]|0)==(k|0)){c[(i&p)>>2]=g;c[(h&p)>>2]=f;e=g;break}else Ob()}while(0);do if(j){i=c[(k&p)+28>>2]|0;h=49368+(i<<2)|0;if((k|0)==(c[(h&p)>>2]|0)){c[(h&p)>>2]=e;if(!e){c[12267]=c[12267]&~(1<>>0<(c[12270]|0)>>>0)Ob();i=j+16|0;if((c[(i&p)>>2]|0)==(k|0))c[(i&p)>>2]=e;else c[(j&p)+20>>2]=e;if(!e)break}h=c[12270]|0;if(e>>>0>>0)Ob();c[(e&p)+24>>2]=j;i=c[(k&p)+16>>2]|0;do if(i)if(i>>>0>>0)Ob();else{c[(e&p)+16>>2]=i;c[(i&p)+24>>2]=e;break}while(0);i=c[(k&p)+20>>2]|0;if(i)if(i>>>0<(c[12270]|0)>>>0)Ob();else{c[(e&p)+20>>2]=i;c[(i&p)+24>>2]=e;break}}while(0);if(l>>>0<16){x=l+q|0;c[(k&p)+4>>2]=x|3;x=k+(x+4)|0;c[(x&p)>>2]=c[(x&p)>>2]|1}else{c[(k&p)+4>>2]=q|3;c[(k+(q|4)&p)>>2]=l|1;c[(k+l+q&p)>>2]=l;d=c[12268]|0;if(d){e=c[12271]|0;g=d>>>3;i=g<<1;f=49104+(i<<2)|0;h=c[12266]|0;g=1<>2]|0;if(h>>>0<(c[12270]|0)>>>0)Ob();else{r=i;s=h}}else{c[12266]=h|g;r=49104+(i+2<<2)|0;s=f}c[(r&p)>>2]=e;c[(s&p)+12>>2]=e;c[(e&p)+8>>2]=s;c[(e&p)+12>>2]=f}c[12268]=l;c[12271]=b}x=k+8|0;return x|0}else s=q}else s=q}else if(a>>>0<=4294967231){a=a+11|0;s=a&-8;k=c[12267]|0;if(k){h=0-s|0;a=a>>>8;if(a)if(s>>>0>16777215)d=31;else{q=(a+1048320|0)>>>16&8;r=a<>>16&4;r=r<>>16&2;d=14-(o|q|d)+(r<>>15)|0;d=s>>>(d+7|0)&1|d<<1}else d=0;f=c[(d<<2&p)+49368>>2]|0;a:do if(!f){a=0;i=0}else{if((d|0)==31)i=0;else i=25-(d>>>1)|0;l=h;a=0;b=s<>2]&-8;h=e-s|0;if(h>>>0>>0)if((e|0)==(s|0)){a=f;i=f;break a}else i=f;else h=l;r=c[(f&p)+20>>2]|0;f=c[(f+(b>>>31<<2)&p)+16>>2]|0;a=(r|0)==0|(r|0)==(f|0)?a:r;if(!f)break;else{l=h;b=b<<1}}}while(0);if((a|0)==0&(i|0)==0){a=2<>>12&16;r=r>>>n;m=r>>>5&8;r=r>>>m;o=r>>>2&4;r=r>>>o;q=r>>>1&2;r=r>>>q;a=r>>>1&1;a=c[((m|n|o|q|a)+(r>>>a)<<2&p)+49368>>2]|0}if(!a){o=h;q=i}else while(1){r=(c[(a&p)+4>>2]&-8)-s|0;f=r>>>0>>0;h=f?r:h;i=f?a:i;f=c[(a&p)+16>>2]|0;if(f){a=f;continue}a=c[(a&p)+20>>2]|0;if(!a){o=h;q=i;break}}if((q|0)!=0?o>>>0<((c[12268]|0)-s|0)>>>0:0){a=c[12270]|0;if(q>>>0>>0)Ob();m=q+s|0;if(q>>>0>=m>>>0)Ob();j=c[(q&p)+24>>2]|0;g=c[(q&p)+12>>2]|0;do if((g|0)==(q|0)){h=q+20|0;i=c[(h&p)>>2]|0;if(!i){h=q+16|0;i=c[(h&p)>>2]|0;if(!i){u=0;break}}while(1){g=i+20|0;f=c[(g&p)>>2]|0;if(f){i=f;h=g;continue}g=i+16|0;f=c[(g&p)>>2]|0;if(!f)break;else{i=f;h=g}}if(h>>>0>>0)Ob();else{c[(h&p)>>2]=0;u=i;break}}else{f=c[(q&p)+8>>2]|0;if(f>>>0>>0)Ob();i=f+12|0;if((c[(i&p)>>2]|0)!=(q|0))Ob();h=g+8|0;if((c[(h&p)>>2]|0)==(q|0)){c[(i&p)>>2]=g;c[(h&p)>>2]=f;u=g;break}else Ob()}while(0);do if(j){i=c[(q&p)+28>>2]|0;h=49368+(i<<2)|0;if((q|0)==(c[(h&p)>>2]|0)){c[(h&p)>>2]=u;if(!u){c[12267]=c[12267]&~(1<>>0<(c[12270]|0)>>>0)Ob();i=j+16|0;if((c[(i&p)>>2]|0)==(q|0))c[(i&p)>>2]=u;else c[(j&p)+20>>2]=u;if(!u)break}h=c[12270]|0;if(u>>>0>>0)Ob();c[(u&p)+24>>2]=j;i=c[(q&p)+16>>2]|0;do if(i)if(i>>>0>>0)Ob();else{c[(u&p)+16>>2]=i;c[(i&p)+24>>2]=u;break}while(0);i=c[(q&p)+20>>2]|0;if(i)if(i>>>0<(c[12270]|0)>>>0)Ob();else{c[(u&p)+20>>2]=i;c[(i&p)+24>>2]=u;break}}while(0);b:do if(o>>>0>=16){c[(q&p)+4>>2]=s|3;c[(q+(s|4)&p)>>2]=o|1;c[(q+o+s&p)>>2]=o;i=o>>>3;if(o>>>0<256){h=i<<1;f=49104+(h<<2)|0;g=c[12266]|0;i=1<>2]|0;if(h>>>0>=(c[12270]|0)>>>0){v=i;w=h;break}Ob()}while(0);c[(v&p)>>2]=m;c[(w&p)+12>>2]=m;c[(q+s&p)+8>>2]=w;c[(q+s&p)+12>>2]=f;break}d=o>>>8;if(d)if(o>>>0>16777215)f=31;else{w=(d+1048320|0)>>>16&8;x=d<>>16&4;x=x<>>16&2;f=14-(v|w|f)+(x<>>15)|0;f=o>>>(f+7|0)&1|f<<1}else f=0;i=49368+(f<<2)|0;c[(q+s&p)+28>>2]=f;c[(q+s&p)+20>>2]=0;c[(q+s&p)+16>>2]=0;h=c[12267]|0;g=1<>2]=m;c[(q+s&p)+24>>2]=i;c[(q+s&p)+12>>2]=m;c[(q+s&p)+8>>2]=m;break}d=c[(i&p)>>2]|0;if((f|0)==31)b=0;else b=25-(f>>>1)|0;c:do if((c[(d&p)+4>>2]&-8|0)!=(o|0)){h=o<>>31<<2)+16|0;i=c[(b&p)>>2]|0;if(!i)break;if((c[(i&p)+4>>2]&-8|0)==(o|0)){C=i;break c}else{h=h<<1;d=i}}if(b>>>0<(c[12270]|0)>>>0)Ob();else{c[(b&p)>>2]=m;c[(q+s&p)+24>>2]=d;c[(q+s&p)+12>>2]=m;c[(q+s&p)+8>>2]=m;break b}}else C=d;while(0);d=C+8|0;b=c[(d&p)>>2]|0;x=c[12270]|0;if(C>>>0>=x>>>0&b>>>0>=x>>>0){c[(b&p)+12>>2]=m;c[(d&p)>>2]=m;c[(q+s&p)+8>>2]=b;c[(q+s&p)+12>>2]=C;c[(q+s&p)+24>>2]=0;break}else Ob()}else{x=o+s|0;c[(q&p)+4>>2]=x|3;x=q+(x+4)|0;c[(x&p)>>2]=c[(x&p)>>2]|1}while(0);x=q+8|0;return x|0}}}else s=-1;while(0);a=c[12268]|0;if(a>>>0>=s>>>0){b=a-s|0;d=c[12271]|0;if(b>>>0>15){c[12271]=d+s;c[12268]=b;c[(d+s&p)+4>>2]=b|1;c[(d+a&p)>>2]=b;c[(d&p)+4>>2]=s|3}else{c[12268]=0;c[12271]=0;c[(d&p)+4>>2]=a|3;x=d+(a+4)|0;c[(x&p)>>2]=c[(x&p)>>2]|1}x=d+8|0;return x|0}a=c[12269]|0;if(a>>>0>s>>>0){w=a-s|0;c[12269]=w;x=c[12272]|0;c[12272]=x+s;c[(x+s&p)+4>>2]=w|1;c[(x&p)+4>>2]=s|3;x=x+8|0;return x|0}do if(!(c[12384]|0)){a=wb(30)|0;if(!(a+-1&a)){c[12386]=a;c[12385]=a;c[12387]=-1;c[12388]=-1;c[12389]=0;c[12377]=0;c[12384]=(Pb(0)|0)&-16^1431655768;break}else Ob()}while(0);l=s+48|0;b=c[12386]|0;k=s+47|0;d=b+k|0;b=0-b|0;m=d&b;if(m>>>0<=s>>>0){x=0;return x|0}a=c[12376]|0;if((a|0)!=0?(v=c[12374]|0,w=v+m|0,w>>>0<=v>>>0|w>>>0>a>>>0):0){x=0;return x|0}d:do if(!(c[12377]&4)){a=c[12272]|0;e:do if(a){f=49512|0;while(1){i=c[(f&p)>>2]|0;if(i>>>0<=a>>>0?(t=f+4|0,(i+(c[(t&p)>>2]|0)|0)>>>0>a>>>0):0){e=f;h=t;a=f;break}f=c[(f&p)+8>>2]|0;if(!f){H=181;break e}}if(a){a=d-(c[12269]|0)&b;if(a>>>0<2147483647){i=sb(a|0)|0;if((i|0)==((c[(e&p)>>2]|0)+(c[(h&p)>>2]|0)|0))H=190;else H=191}else a=0}else H=181}else H=181;while(0);do if((H|0)==181){i=sb(0)|0;if((i|0)!=(-1|0)){a=i;h=c[12385]|0;f=h+-1|0;if(!(f&a))a=m;else a=m-a+(f+a&0-h)|0;h=c[12374]|0;f=h+a|0;if(a>>>0>s>>>0&a>>>0<2147483647){w=c[12376]|0;if((w|0)!=0?f>>>0<=h>>>0|f>>>0>w>>>0:0){a=0;break}h=sb(a|0)|0;if((h|0)==(i|0))H=190;else{i=h;H=191}}else a=0}else a=0}while(0);f:do if((H|0)==190){if((i|0)!=(-1|0)){y=i;H=201;break d}}else if((H|0)==191){h=0-a|0;do if((i|0)!=(-1|0)&a>>>0<2147483647&l>>>0>a>>>0?(x=c[12386]|0,x=k-a+x&0-x,x>>>0<2147483647):0)if((sb(x|0)|0)==(-1|0)){sb(h|0)|0;a=0;break f}else{a=x+a|0;break}while(0);if((i|0)==(-1|0))a=0;else{y=i;H=201;break d}}while(0);c[12377]=c[12377]|4;H=198}else{a=0;H=198}while(0);if((((H|0)==198?m>>>0<2147483647:0)?(y=sb(m|0)|0,z=sb(0)|0,(y|0)!=(-1|0)&(z|0)!=(-1|0)&y>>>0>>0):0)?(A=z-y|0,B=A>>>0>(s+40|0)>>>0,B):0){a=B?A:a;H=201}if((H|0)==201){i=(c[12374]|0)+a|0;c[12374]=i;if(i>>>0>(c[12375]|0)>>>0)c[12375]=i;l=c[12272]|0;g:do if(l){e=49512|0;do{i=c[(e&p)>>2]|0;h=e+4|0;f=c[(h&p)>>2]|0;if((y|0)==(i+f|0)){D=i;E=h;F=f;G=e;H=213;break}e=c[(e&p)+8>>2]|0}while((e|0)!=0);if(((H|0)==213?(c[(G&p)+12>>2]&8|0)==0:0)?l>>>0>=D>>>0&l>>>0>>0:0){c[(E&p)>>2]=F+a;b=(c[12269]|0)+a|0;d=l+8|0;if(!(d&7))d=0;else d=0-d&7;x=b-d|0;c[12272]=l+d;c[12269]=x;c[(l+d&p)+4>>2]=x|1;c[(l+b&p)+4>>2]=40;c[12273]=c[12388];break}i=c[12270]|0;if(y>>>0>>0){c[12270]=y;k=y}else k=i;i=y+a|0;h=49512|0;do{if((c[(h&p)>>2]|0)==(i|0)){I=h;J=h;H=223;break}h=c[(h&p)+8>>2]|0}while((h|0)!=0);if((H|0)==223?(c[(J&p)+12>>2]&8|0)==0:0){c[(I&p)>>2]=y;i=J+4|0;c[(i&p)>>2]=(c[(i&p)>>2]|0)+a;i=y+8|0;if(!(i&7))q=0;else q=0-i&7;i=y+(a+8)|0;if(!(i&7))d=0;else d=0-i&7;i=y+(d+a)|0;o=q+s|0;n=y+o|0;m=i-(y+q)-s|0;c[(y+q&p)+4>>2]=s|3;h:do if((i|0)!=(l|0)){if((i|0)==(c[12271]|0)){x=(c[12268]|0)+m|0;c[12268]=x;c[12271]=n;c[(y+o&p)+4>>2]=x|1;c[(y+x+o&p)>>2]=x;break}l=a+4|0;j=c[(y+l+d&p)>>2]|0;if((j&3|0)==1){b=j&-8;f=j>>>3;i:do if(j>>>0>=256){e=c[(y+(d|24)+a&p)>>2]|0;g=c[(y+a+d&p)+12>>2]|0;do if((g|0)==(i|0)){g=d|16;h=y+(l+g)|0;j=c[(h&p)>>2]|0;if(!j){h=y+(g+a)|0;j=c[(h&p)>>2]|0;if(!j){O=0;break}}while(1){g=j+20|0;f=c[(g&p)>>2]|0;if(f){j=f;h=g;continue}g=j+16|0;f=c[(g&p)>>2]|0;if(!f)break;else{j=f;h=g}}if(h>>>0>>0)Ob();else{c[(h&p)>>2]=0;O=j;break}}else{f=c[(y+(d|8)+a&p)>>2]|0;if(f>>>0>>0)Ob();j=f+12|0;if((c[(j&p)>>2]|0)!=(i|0))Ob();h=g+8|0;if((c[(h&p)>>2]|0)==(i|0)){c[(j&p)>>2]=g;c[(h&p)>>2]=f;O=g;break}else Ob()}while(0);if(!e)break;j=c[(y+a+d&p)+28>>2]|0;h=49368+(j<<2)|0;do if((i|0)!=(c[(h&p)>>2]|0)){if(e>>>0<(c[12270]|0)>>>0)Ob();j=e+16|0;if((c[(j&p)>>2]|0)==(i|0))c[(j&p)>>2]=O;else c[(e&p)+20>>2]=O;if(!O)break i}else{c[(h&p)>>2]=O;if(O)break;c[12267]=c[12267]&~(1<
>>0)l=h;else break}}else i=u;else if(i){i=u;do{l=h+1|0;k=a[(h&n)>>0]|0;j=k&255;if((k&255)>191){j=d[(j+-192&n)+15360>>0]|0;b:do if((l|0)==(q|0))h=q;else{k=h;h=l;while(1){l=a[(h&n)>>0]|0;if((l&-64)<<24>>24!=-128)break b;k=k+2|0;j=l&63|j<<6;if((k|0)==(q|0)){h=q;break}else{l=h;h=k;k=l}}}while(0);if(!(j>>>0<128|(j&-2048|0)==55296|(j&-2|0)==65534))if(j>>>0<65536)m=31;else{l=j+-65536|0;a[(i&n)>>0]=l>>>18&3|216;a[(i&n)+1>>0]=l>>>10&192|j>>>10&63;a[(i&n)+2>>0]=j>>>8&3|220;a[(i&n)+3>>0]=j;i=i+4|0}else{j=65533;m=31}}else{h=l;m=31}if((m|0)==31){m=0;a[(i&n)>>0]=j>>>8;a[(i&n)+1>>0]=j;i=i+2|0}}while(h>>>0>>0)}else i=u;c[(r&p)>>2]=i-u;a[(i&n)>>0]=0;i=i+1|0}if((m|0)==55)c[(r&p)>>2]=i-u;a[(i&n)>>0]=0;i=f+8|0;r=b[(i&o)>>1]|0;h=r&65535;if(!((r&9312)==0?(c[(f&p)+24>>2]|0)==0:0))Qg(f);b[(i&o)>>1]=h&29|514;a[(v&n)>>0]=g;c[(s&p)>>2]=u;c[(f&p)+20>>2]=u;h=c[(t&p)>>2]|0;do if(!h)h=lc[c[8792>>2]&127](u)|0;else{if((c[(h&p)+276>>2]|0)>>>0<=u>>>0?(c[(h&p)+280>>2]|0)>>>0>u>>>0:0){h=e[(h&o)+248>>1]|0;break}h=lc[c[8792>>2]&127](u)|0}while(0);c[(f&p)+24>>2]=h;h=0}}else if(!(Vl(f)|0)){h=c[(f&p)+16>>2]|0;t=c[(f&p)+12>>2]&-2;i=h+t|0;if((t|0)>0)do{s=a[(h&n)>>0]|0;t=h+1|0;a[(h&n)>>0]=a[(t&n)>>0]|0;h=h+2|0;a[(t&n)>>0]=s}while(h>>>0>>0);a[(v&n)>>0]=g;h=0}else h=7;return h|0}function Cn(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,i=0,j=0;i=a[(b&n)>>0]|0;g=i&255;a:do switch(g|0){case 46:{if(((d[(b&n)+1>>0]|0)+-48|0)>>>0<10)j=51;else{c[(e&p)>>2]=122;f=1}break}case 47:{if((a[(b&n)+1>>0]|0)==42?(f=a[(b&n)+2>>0]|0,f<<24>>24!=0):0){f=f&255;g=3;while(1){i=a[(b+g&n)>>0]|0;if((f|0)==42&i<<24>>24==47){f=42;break}f=i&255;if(!(i<<24>>24))break;else g=g+1|0}c[(e&p)>>2]=151;f=((f|0)!=0&1)+g|0;break a}c[(e&p)>>2]=92;f=1;break}case 45:{if((a[(b&n)+1>>0]|0)==45)f=2;else{c[(e&p)>>2]=90;f=1;break a}while(1){g=a[(b+f&n)>>0]|0;if(g<<24>>24==0|g<<24>>24==10)break;f=f+1|0}c[(e&p)>>2]=151;break}case 41:{c[(e&p)>>2]=23;f=1;break}case 59:{c[(e&p)>>2]=1;f=1;break}case 43:{c[(e&p)>>2]=89;f=1;break}case 42:{c[(e&p)>>2]=91;f=1;break}case 40:{c[(e&p)>>2]=22;f=1;break}case 124:if((a[(b&n)+1>>0]|0)==124){c[(e&p)>>2]=94;f=2;break a}else{c[(e&p)>>2]=86;f=1;break a}case 91:{f=1;while(1){g=a[(b+f&n)>>0]|0;if(!(g<<24>>24)){g=g&255;break}f=f+1|0;if(g<<24>>24==93){g=93;break}}c[(e&p)>>2]=(g|0)==93?27:150;break}case 44:{c[(e&p)>>2]=26;f=1;break}case 38:{c[(e&p)>>2]=85;f=1;break}case 126:{c[(e&p)>>2]=96;f=1;break}case 34:case 39:case 96:{g=a[(b&n)+1>>0]|0;b:do if(g<<24>>24){f=1;while(1){if(g<<24>>24==i<<24>>24){f=f+1|0;if((a[(b+f&n)>>0]|0)!=i<<24>>24)break}f=f+1|0;g=a[(b+f&n)>>0]|0;if(!(g<<24>>24))break b}if(i<<24>>24==39){c[(e&p)>>2]=97;break a}else{c[(e&p)>>2]=27;break a}}else f=1;while(0);c[(e&p)>>2]=150;break}case 88:case 120:{if((a[(b&n)+1>>0]|0)==39){c[(e&p)>>2]=134;f=2;while(1){g=a[(b+f&n)>>0]|0;if(!(a[(g&255&n)+10368>>0]&8))break;else f=f+1|0}if(g<<24>>24==39&(f&1|0)==0)g=1;else{c[(e&p)>>2]=150;while(1){g=a[(b+f&n)>>0]|0;if(g<<24>>24==39|g<<24>>24==0)break;f=f+1|0}g=g<<24>>24!=0}f=(g&1)+f|0}else j=98;break}case 61:{c[(e&p)>>2]=79;f=(a[(b&n)+1>>0]|0)==61?2:1;break}case 60:{f=a[(b&n)+1>>0]|0;if(f<<24>>24==62){c[(e&p)>>2]=78;f=2;break a}else if(f<<24>>24==60){c[(e&p)>>2]=87;f=2;break a}else if(f<<24>>24==61){c[(e&p)>>2]=81;f=2;break a}else{c[(e&p)>>2]=82;f=1;break a}}case 57:case 56:case 55:case 54:case 53:case 52:case 51:case 50:case 49:case 48:{j=51;break}case 62:{f=a[(b&n)+1>>0]|0;if(f<<24>>24==61){c[(e&p)>>2]=83;f=2;break a}else if(f<<24>>24==62){c[(e&p)>>2]=88;f=2;break a}else{c[(e&p)>>2]=80;f=1;break a}}case 63:{c[(e&p)>>2]=135;f=1;while(1)if(((d[(b+f&n)>>0]|0)+-48|0)>>>0<10)f=f+1|0;else break;break}case 33:if((a[(b&n)+1>>0]|0)==61){c[(e&p)>>2]=78;f=2;break a}else{c[(e&p)>>2]=150;f=2;break a}case 58:case 35:case 64:case 36:{c[(e&p)>>2]=135;g=a[(b&n)+1>>0]|0;if(g<<24>>24){f=1;i=0;while(1){if(!(a[(g&255&n)+10368>>0]&70)){if(g<<24>>24==40&(i|0)>0){g=i;j=78;break}if(g<<24>>24!=58){g=i;break}g=f+1|0;if((a[(b+g&n)>>0]|0)==58)f=g;else{g=i;break}}else i=i+1|0;f=f+1|0;g=a[(b+f&n)>>0]|0;if(!(g<<24>>24)){g=i;break}}do if((j|0)==78){h=f;while(1){f=h+1|0;i=a[(b+f&n)>>0]|0;if(!(i<<24>>24))break;if(i<<24>>24!=41?(a[(i&255&n)+10368>>0]&1)==0:0)h=f;else{j=81;break}}if((j|0)==81)if(i<<24>>24==41){f=h+2|0;break}c[(e&p)>>2]=150}while(0);if(g)break a}else f=1;c[(e&p)>>2]=150;break}case 37:{c[(e&p)>>2]=93;f=1;break}case 13:case 12:case 10:case 9:case 32:{f=1;while(1)if(!(a[((d[(b+f&n)>>0]|0)&n)+10368>>0]&1))break;else f=f+1|0;c[(e&p)>>2]=151;break}default:j=98}while(0);c:do if((j|0)==51){c[(e&p)>>2]=132;f=a[(b&n)>>0]|0;if(f<<24>>24==48){g=a[(b&n)+1>>0]|0;if(g<<24>>24==88|g<<24>>24==120)if(!(a[((d[(b&n)+2>>0]|0)&n)+10368>>0]&8))h=0;else{f=3;while(1)if(!(a[((d[(b+f&n)>>0]|0)&n)+10368>>0]&8))break c;else f=f+1|0}else{f=48;h=0}}else h=0;while(1){g=h+1|0;if(((f&255)+-48|0)>>>0>=10){g=h;break}f=a[(b+g&n)>>0]|0;h=g}if(f<<24>>24==46){f=g;do{f=f+1|0;g=b+f|0}while(((d[(g&n)>>0]|0)+-48|0)>>>0<10);c[(e&p)>>2]=133;h=a[(g&n)>>0]|0;i=f}else{h=f;i=g}do if(h<<24>>24==69|h<<24>>24==101){g=a[(b+i&n)+1>>0]|0;if(((g&255)+-48|0)>>>0>=10){if(!(g<<24>>24==45|g<<24>>24==43)){g=h;f=i;break}f=i+2|0;if(((d[(b+f&n)>>0]|0)+-48|0)>>>0>=10){g=h;f=i;break}}else f=i+2|0;while(1){g=b+f|0;if(((d[(g&n)>>0]|0)+-48|0)>>>0<10)f=f+1|0;else break}c[(e&p)>>2]=133;g=a[(g&n)>>0]|0}else{g=h;f=i}while(0);if(a[(g&255&n)+10368>>0]&70)do{c[(e&p)>>2]=150;f=f+1|0}while((a[((d[(b+f&n)>>0]|0)&n)+10368>>0]&70)!=0)}else if((j|0)==98){if(!(a[(g&n)+10368>>0]&70)){c[(e&p)>>2]=150;f=1;break}else f=1;while(1)if(!(a[((d[(b+f&n)>>0]|0)&n)+10368>>0]&70))break;else f=f+1|0;c[(e&p)>>2]=fi(b,f)|0}while(0);return f|0}function Dn(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,i=0,j=0;f=a[(b&n)>>0]|0;if(f<<24>>24==43){b=b+1|0;i=0;j=13}else if(f<<24>>24==45){b=b+1|0;i=1;j=13}else if((f<<24>>24==48?(f=a[(b&n)+1>>0]|0,f<<24>>24==88|f<<24>>24==120):0)?(g=b+2|0,e=a[(g&n)>>0]|0,(a[(e&255&n)+10368>>0]&8)!=0):0){while(1){f=g+1|0;if(e<<24>>24!=48)break;g=f;e=a[(f&n)>>0]|0}if(!(a[(e&255&n)+10368>>0]&8)){e=0;f=0}else{h=e;b=0;f=0;do{e=h<<24>>24;f=(0-(e>>>6&1)&9)+e&15|f<<4;b=b+1|0;h=a[(g+b&n)>>0]|0;e=(a[(h&255&n)+10368>>0]&8)==0}while((b|0)<8&(e^1));e=e^1}if((f|0)<0|e)e=0;else{c[(d&p)>>2]=f;e=1}}else{i=0;j=13}a:do if((j|0)==13){e=0;f=0;h=0;while(1){g=(a[(b+h&n)>>0]|0)+-48|0;if(g>>>0>=10)break;f=sw(e|0,f|0,10,0)|0;e=jw(g|0,((g|0)<0)<<31>>31|0,f|0,G|0)|0;h=h+1|0;if((h|0)>=11){e=0;break a}else f=G}g=dw(e|0,f|0,i|0,0)|0;b=G;if((b|0)>0|(b|0)==0&g>>>0>2147483647)e=0;else{if(i)e=dw(0,0,e|0,f|0)|0;c[(d&p)>>2]=e;e=1}}while(0);return e|0}function En(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0;f=i;i=i+16|0;if((i|0)>=(j|0))fa();g=f;c[(g&p)>>2]=e;sg(a,b,d,g);i=f;return}function Fn(e,f,g,h,k,l,m){e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;m=m|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,H=0,I=0;I=i;i=i+16|0;if((i|0)>=(j|0))fa();F=I;D=I+4|0;c[(D&p)>>2]=0;H=mh(e,536,0)|0;a:do if(H){fw(H|0,0,536)|0;c[(H&p)+476>>2]=k;u=e+20|0;k=c[(u&p)>>2]|0;b:do if((k|0)>0){v=e+16|0;s=0;while(1){t=c[((c[(v&p)>>2]|0)+(s<<4)&p)+4>>2]|0;if(t){c[((c[(t&p)+4>>2]|0)&p)+4>>2]=c[(t&p)>>2];q=bl(t,1,1)|0;if(q)break;k=c[(u&p)>>2]|0}s=s+1|0;if((s|0)>=(k|0))break b}c[(F&p)>>2]=c[((c[(v&p)>>2]|0)+(s<<4)&p)>>2];ug(e,q,40984,F);s=H;break a}while(0);rl(e);c[(H&p)>>2]=e;c[(H&p)+424>>2]=0;do if((g|0)>-1){if((g|0)!=0?(a[(f+g+-1&n)>>0]|0)==0:0){E=21;break}if((c[(e&p)+92>>2]|0)<(g|0)){ug(e,18,41016,F);if(!e){s=H;q=18;break a}if(!(a[(e&n)+65>>0]|0)){s=H;q=c[(e&p)+56>>2]&18;break a}else{Ql(e);s=H;q=7;break a}}else{if((f|0)!=0?(r=jw(g|0,((g|0)<0)<<31>>31|0,1,0)|0,r=mh(e,r,G)|0,(r|0)!=0):0){kw(r|0,f|0,g|0)|0;a[(r+g&n)>>0]=0;Lh(H,r,D)|0;mg(e,r);q=H+480|0;c[(q&p)>>2]=f+((c[(q&p)>>2]|0)-r);break}c[(H&p)+480>>2]=f+g;break}}else E=21;while(0);if((E|0)==21)Lh(H,f,D)|0;v=e+65|0;k=H+12|0;if(!(a[(v&n)>>0]|0)){s=H+12|0;if((c[(k&p)>>2]|0)==101)c[(s&p)>>2]=0}else{c[(k&p)>>2]=7;s=H+12|0}c:do if((a[(H&n)+17>>0]|0)!=0?(w=c[(H&p)>>2]|0,x=w+20|0,(c[(x&p)>>2]|0)>0):0){r=w+16|0;u=0;while(1){k=c[(r&p)>>2]|0;q=c[(k+(u<<4)&p)+4>>2]|0;if(q){if(!(a[(q&n)+8>>0]|0)){k=yg(q,0)|0;if((k|0)==7|(k|0)==3082)break;else if(k)break c;k=c[(r&p)>>2]|0;t=1}else t=0;g=c[(q&p)+4>>2]|0;c[(g&p)+4>>2]=c[(q&p)>>2];g=c[((c[(g&p)+12>>2]|0)&p)+56>>2]|0;if((d[(g&n)+41>>0]<<16|d[(g&n)+40>>0]<<24|d[(g&n)+42>>0]<<8|d[(g&n)+43>>0]|0)!=(c[(c[(k+(u<<4)&p)+12>>2]&p)>>2]|0)){vm(w,u);c[(s&p)>>2]=17}if(t)un(q)|0}u=u+1|0;if((u|0)>=(c[(x&p)>>2]|0))break c}a[(w&n)+65>>0]=1}while(0);if(a[(v&n)>>0]|0)c[(s&p)>>2]=7;if(m)c[(m&p)>>2]=c[(H&p)+480>>2];q=c[(s&p)>>2]|0;t=(q|0)==0;do if(t?(z=H+8|0,y=c[(z&p)>>2]|0,(y|0)!=0):0){s=a[(H&n)+450>>0]|0;if(!(s<<24>>24))break;else if(s<<24>>24==2){iq(y,4);r=8;k=12}else{iq(y,8);r=0;k=8}s=r;do{jq(c[(z&p)>>2]|0,s-r|0,0,c[(s<<2&p)+41040>>2]|0,0);s=s+1|0}while((s|0)<(k|0))}while(0);r=H+8|0;if((a[(e&n)+145>>0]|0)==0?(C=c[(r&p)>>2]|0,A=(c[(H&p)+480>>2]|0)-f|0,(C|0)!=0):0){if((f|0)!=0?(z=c[(C&p)>>2]|0,B=jw(A|0,((A|0)<0)<<31>>31|0,1,0)|0,B=mh(z,B,G)|0,(B|0)!=0):0){kw(B|0,f|0,A|0)|0;a[(B+A&n)>>0]=0;s=B}else s=0;c[(C&p)+168>>2]=s;C=C+88|0;b[(C&o)>>1]=b[(C&o)>>1]&-257|(h&65535)<<8&256}s=c[(r&p)>>2]|0;do if(!s)E=60;else{if(t?(a[(v&n)>>0]|0)==0:0){E=60;break}Ng(s)|0}while(0);if((E|0)==60)c[(l&p)>>2]=s;r=c[(D&p)>>2]|0;do if(!r){c[(e&p)+52>>2]=q;r=c[(e&p)+236>>2]|0;if(r){s=r+8|0;if(!(b[(s&o)>>1]&9312)){b[(s&o)>>1]=1;break}else{vg(r);break}}}else{c[(F&p)>>2]=r;ug(e,q,10344,F);mg(e,r)}while(0);r=H+528|0;s=c[(r&p)>>2]|0;if(!s)s=H;else{do{c[(r&p)>>2]=c[(s&p)+4>>2];mg(e,s);s=c[(r&p)>>2]|0}while((s|0)!=0);s=H}}else{s=0;q=7}while(0);Ch(s);mg(e,H);F=Og(e,q)|0;i=I;return F|0}function Gn(b){b=b|0;var d=0,e=0;e=c[(b&p)>>2]|0;if((a[(e&n)+145>>0]|0)==0?(d=Zh(e,b+4|0)|0,(d|0)!=0):0){c[(b&p)+12>>2]=d;e=b+64|0;c[(e&p)>>2]=(c[(e&p)>>2]|0)+1}else d=0;return d|0}function Hn(a){a=a|0;var b=0,d=0,f=0,g=0,h=0;f=c[(a&p)+24>>2]|0;h=f+84|0;b=c[(h&p)>>2]|0;if(!b){b=1020;d=0}else{b=b*40|0;d=0}g=a+4|0;a=ro(c[(f&p)>>2]|0,c[(g&p)>>2]|0,b,d)|0;d=(a|0)!=0;if(d){b=c[(f&p)>>2]|0;do if(!b)b=lc[c[8792>>2]&127](a)|0;else{if((c[(b&p)+276>>2]|0)>>>0<=a>>>0?(c[(b&p)+280>>2]|0)>>>0>a>>>0:0){b=e[(b&o)+248>>1]|0;break}b=lc[c[8792>>2]&127](a)|0}while(0);c[(h&p)>>2]=(b>>>0)/20|0;c[(g&p)>>2]=a}return (d?0:7)|0}function In(a,d,e){a=a|0;d=d|0;e=e|0;a:do if(e)switch(d|0){case -6:{if(c[(a&p)+520>>2]|0)break a;a=(c[(e&p)>>2]|0)+-1|0;c[(e&p)>>2]=a;if(a)break a;Wc(e);break a}case -8:{if(!(c[(a&p)+520>>2]|0)){Mh(e);break a}if(c[(e&p)+24>>2]|0)mg(a,c[(e&p)+20>>2]|0);mg(a,e);break a}case -10:{if(c[(a&p)+520>>2]|0)break a;An(e);break a}case -15:case -1:case -13:case -12:{mg(a,e);break a}case -11:{if(c[(a&p)+520>>2]|0)break a;Wc(e);break a}case -5:{if(!(b[(e&o)+2>>1]&16))break a;mg(a,e);break a}default:break a}while(0);return}function Jn(e,f){e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0;g=c[(f&p)>>2]|0;s=c[(e&p)+24>>2]|0;t=s+112|0;k=c[(t&p)>>2]|0;q=e+88|0;b[(q&o)>>1]=b[(q&o)>>1]&-193|64;h=c[(e&p)+32>>2]|0;a:do if((h|0)>0){j=c[(e&p)+4>>2]|0;while(1){h=h+-1|0;i=d[(j&n)>>0]|0;switch(i|0){case 5:case 7:case 9:{c[(j&p)+16>>2]=76;a[(j&n)+1>>0]=-19;break}case 6:case 8:{c[(j&p)+16>>2]=77;a[(j&n)+1>>0]=-19;break}case 14:{u=c[(j+-16&p)>>2]|0;g=(u|0)>(g|0)?u:g;break}case 2:case 3:{r=7;break}case 4:{if(!(c[(j&p)+8>>2]|0))r=7;else{b[(q&o)>>1]=b[(q&o)>>1]&-65;r=7}break}case 12:case 13:case 11:{b[(q&o)>>1]=b[(q&o)>>1]&-193|128;break}case 15:{u=c[(j&p)+8>>2]|0;g=(u|0)>(g|0)?u:g;break}case 10:case 1:{u=d[(j&n)+3>>0]|0;g=(u|0)>(g|0)?u:g;break}default:{}}if((r|0)==7){r=0;b[(q&o)>>1]=b[(q&o)>>1]|128}i=a[(i&n)+34168>>0]|0;a[(j&n)+2>>0]=i;if((i&1)!=0?(l=j+8|0,m=c[(l&p)>>2]|0,(m|0)<0):0)c[(l&p)>>2]=c[(k+(~m<<2)&p)>>2];if((h|0)<=0)break a;else j=j+20|0}}while(0);mg(c[(e&p)>>2]|0,c[(t&p)>>2]|0);c[(t&p)>>2]=0;c[(s&p)+108>>2]=0;c[(f&p)>>2]=g;return}function Kn(b){b=b|0;var d=0,e=0,f=0,g=0,h=0;h=i;i=i+16|0;if((i|0)>=(j|0))fa();g=h;e=b+73|0;if((a[(e&n)>>0]|0)!=4){a[(e&n)>>0]=0;f=b+56|0;d=b+48|0;d=Gp(b,c[(f&p)>>2]|0,c[(d&p)>>2]|0,c[(d&p)+4>>2]|0,0,g)|0;if(!d){Wc(c[(f&p)>>2]|0);c[(f&p)>>2]=0;f=b+68|0;d=c[(f&p)>>2]|c[(g&p)>>2];c[(f&p)>>2]=d;if((d|0)!=0?(a[(e&n)>>0]|0)==1:0){a[(e&n)>>0]=2;d=0}else d=0}}else d=c[(b&p)+68>>2]|0;i=h;return d|0}function Ln(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;a=c[(a&p)+8>>2]|0;a:do if(!a)a=0;else{e=(b|0)==0;while(1){if((a|0)!=(d|0)){if(e)break;if((c[(a&p)+60>>2]|0)==(b|0))break}a=c[(a&p)+8>>2]|0;if(!a){a=0;break a}}a=Fl(a,b,d)|0}while(0);return a|0}function Mn(b){b=b|0;var e=0,f=0,g=0,h=0;f=c[(b&p)>>2]|0;g=f+1|0;c[(b&p)>>2]=g;h=a[(f&n)>>0]|0;e=h&255;if((h&255)<=191)return e|0;e=d[(e+-192&n)+15360>>0]|0;if((a[(g&n)>>0]&-64)<<24>>24==-128)while(1){f=f+2|0;c[(b&p)>>2]=f;e=(d[(g&n)>>0]|0)&63|e<<6;if((a[(f&n)>>0]&-64)<<24>>24==-128){h=g;g=f;f=h}else break}return (e>>>0<128|(e&-2048|0)==55296|(e&-2|0)==65534?65533:e)|0}function Nn(b,c){b=b|0;c=c|0;var d=0,e=0,f=0,g=0;if((c|0)>-1)g=b+c|0;else g=-1;c=a[(b&n)>>0]|0;if(c<<24>>24!=0&g>>>0>b>>>0){d=c;c=0;do{f=b+1|0;if((d&255)>191){e=b;b=f;while(1){d=a[(b&n)>>0]|0;if((d&-64)<<24>>24==-128){d=b;b=e+2|0;e=d}else break}}else{d=a[(f&n)>>0]|0;b=f}c=c+1|0}while(d<<24>>24!=0&b>>>0>>0)}else c=0;return c|0}function On(d,f,g,h){d=d|0;f=f|0;g=g|0;h=h|0;var k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0;A=i;i=i+48|0;if((i|0)>=(j|0))fa();w=A+32|0;x=A+16|0;y=A;k=c[(d&p)>>2]|0;if((k|0)<0){c[(d&p)>>2]=0;c[(d&p)+4>>2]=-1;b[(d&o)+12>>1]=0;a[(d&n)+14>>0]=0;k=0}s=g;r=c[(s&p)+4>>2]|0;t=y;c[(t&p)>>2]=c[(s&p)>>2];c[(t&p)+4>>2]=r;t=d+8|0;c[(t&p)>>2]=h;r=f&255;s=(f|0)==254;do{q=b[(d+(k<<4)&o)+12>>1]|0;h=q&65535;g=37184+(h<<1)|0;a:do if((q&65535)>429)z=6;else{q=r;while(1){m=b[(g&o)>>1]|0;l=m<<16>>16;if(m<<16>>16==-86){z=6;break a}m=q&255;k=l+m|0;if(k>>>0<=1496?(a[(k&n)+39336>>0]|0)==q<<24>>24:0){z=16;break}if(!(q<<24>>24))break;if((q&255)>=70){u=l;z=12;break}q=a[(m&n)+40840>>0]|0;if(!(q<<24>>24)){u=l;z=12;break}}if((z|0)==16){z=0;k=e[(k<<1&o)+22184>>1]|0;break}if(((z|0)==12?(z=0,v=u+70|0,(v|0)>-1):0)?(a[(v&n)+39336>>0]|0)==70:0){k=e[(v<<1&o)+22184>>1]|0;break}k=e[(h<<1&o)+38048>>1]|0}while(0);if((z|0)==6){z=0;k=e[(h<<1&o)+38048>>1]|0}if(k>>>0<642){z=18;break}if(k>>>0>=969){z=20;break}mq(d,k+-642|0);if(s)break;k=c[(d&p)>>2]|0}while((k|0)>-1);if((z|0)==18){kq(d,k,f,y);u=d+4|0;c[(u&p)>>2]=(c[(u&p)>>2]|0)+-1}else if((z|0)==20){c[(x&p)>>2]=c[(y&p)>>2];c[(x&p)+4>>2]=c[(y&p)+4>>2];c[(x&p)+8>>2]=c[(y&p)+8>>2];u=c[(t&p)>>2]|0;c[(w&p)>>2]=x;th(u,20432,w);c[(t&p)>>2]=u;lq(d,r,y)}i=A;return}function Pn(b){b=b|0;var d=0;d=c[(b&p)>>2]|0;if((d|0)>=0){lq(b,a[(b+(d<<4)&n)+14>>0]|0,b+(d<<4)+16|0);c[(b&p)>>2]=(c[(b&p)>>2]|0)+-1}return}function Qn(a,b){a=a|0;b=b|0;var d=0;if(b){if((c[(b&p)>>2]|0)>0){d=0;do{Nk(a,c[(b+(d<<4)&p)+12>>2]|0);Mk(a,c[(b+(d<<4)&p)+16>>2]|0,1);mg(a,c[(b+(d<<4)&p)+8>>2]|0);d=d+1|0}while((d|0)<(c[(b&p)>>2]|0))}mg(a,b)}return}function Rn(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,i=0;h=a+328|0;d=c[(h&p)>>2]|0;if(d){i=a+304|0;if((c[(i&p)>>2]|0)>0){f=0;do{e=c[(d+(f<<2)&p)>>2]|0;d=c[(e&p)+8>>2]|0;if((d|0)!=0?(g=c[((c[(d&p)>>2]|0)+b&p)>>2]|0,(g|0)!=0):0)lc[g&127](d)|0;c[(e&p)+20>>2]=0;An(e);f=f+1|0;d=c[(h&p)>>2]|0}while((f|0)<(c[(i&p)>>2]|0))}mg(a,d);c[(i&p)>>2]=0;c[(h&p)>>2]=0}return}function Sn(a,d,f){a=a|0;d=d|0;f=f|0;var g=0,h=0;do if((d|0)==-2)if(!(c[(a&p)+12>>2]|0))d=(c[(a&p)+16>>2]|0)==0?0:6;else d=6;else{h=b[(a&o)>>1]|0;g=h<<16>>16;if(!((g|0)!=(d|0)&h<<16>>16>-1)){h=(g|0)==(d|0)?4:1;g=f&255;d=e[(a&o)+2>>1]|0;if((g|0)==(d&3|0)){d=h|2;break}else return ((d&g)>>>1&1)+h|0}else d=0}while(0);return d|0} function uc(a){a=a|0;var b=0;b=i;i=i+a|0;i=i+15&-16;if((i|0)>=(j|0))fa();return b|0}function vc(){return i|0}function wc(a){a=a|0;i=a}function xc(a,b){a=a|0;b=b|0;if(!r){r=a;s=b}}function yc(b){b=b|0;a[(k&n)>>0]=a[(b&n)>>0];a[(k&n)+1>>0]=a[(b&n)+1>>0];a[(k&n)+2>>0]=a[(b&n)+2>>0];a[(k&n)+3>>0]=a[(b&n)+3>>0]}function zc(b){b=b|0;a[(k&n)>>0]=a[(b&n)>>0];a[(k&n)+1>>0]=a[(b&n)+1>>0];a[(k&n)+2>>0]=a[(b&n)+2>>0];a[(k&n)+3>>0]=a[(b&n)+3>>0];a[(k&n)+4>>0]=a[(b&n)+4>>0];a[(k&n)+5>>0]=a[(b&n)+5>>0];a[(k&n)+6>>0]=a[(b&n)+6>>0];a[(k&n)+7>>0]=a[(b&n)+7>>0]}function Ac(a){a=a|0;G=a}function Bc(){return G|0}function Cc(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0;h=i;i=i+16|0;if((i|0)>=(j|0))fa();e=h+4|0;f=h;g=0;a:while(1){c[(e&p)>>2]=0;c[(f&p)>>2]=0;a[280]=0;if(Rf(14640,e)|0){d=4;break}d=c[(e&p)>>2]|0;b=0;do{if(Qe(d,c[(b<<2&p)+8>>2]|0,17,0,f)|0){d=7;break a}b=b+1|0;d=c[(e&p)>>2]|0}while((b|0)!=5);tf(d)|0;if(_v(280,8504)|0){d=9;break}g=g+1|0;if((g|0)>=3){d=11;break}}if((d|0)==4)ib(8472,8488,47,8496);else if((d|0)==7)ib(8472,8488,50,8496);else if((d|0)==9)ib(8600,8488,53,8496);else if((d|0)==11){i=h;return 0}return 0}function Dc(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;if((d|0)>0)while(1){d=d+-1|0;hw(280,c[(f&p)>>2]|0)|0;b=280+(gw(280)|0)|0;a[(b&n)>>0]=61;a[(b&n)+1>>0]=0;b=c[(e&p)>>2]|0;hw(280,((b|0)==0?20304:b)|0)|0;if((d|0)<=0)break;else{e=e+4|0;f=f+4|0}}return 0}function Ec(b){b=b|0;var e=0,f=0,g=0;g=(Fc(b,8640,7)|0)==0;g=g?b+7|0:b;if(!g)b=0;else{b=g;while(1)if(!(a[(b&n)>>0]|0))break;else b=b+1|0;b=b-g&1073741823}f=0;while(1){e=c[(f<<2&p)+8648>>2]|0;if((Fc(g,e,b)|0)==0?(a[((d[(e+b&n)>>0]|0)&n)+10368>>0]&70)==0:0){b=1;break}f=f+1|0;if((f|0)>=4){b=0;break}}return b|0}function Fc(b,c,e){b=b|0;c=c|0;e=e|0;var f=0;a:do if(b)if(c)if((e|0)>0){f=b;while(1){b=a[(f&n)>>0]|0;if(!(b<<24>>24))break;if((a[(b&255&n)+9328>>0]|0)!=(a[((d[(c&n)>>0]|0)&n)+9328>>0]|0))break;e=e+-1|0;if((e|0)<=0){e=0;break a}else{f=f+1|0;c=c+1|0}}if((e|0)>=1)e=(d[(b&255&n)+9328>>0]|0)-(d[((d[(c&n)>>0]|0)&n)+9328>>0]|0)|0;else e=0}else e=0;else e=1;else e=((c|0)!=0)<<31>>31;while(0);return e|0}function Gc(a){a=a|0;if(a>>>0<4)a=c[(a<<2&p)+8648>>2]|0;else a=0;return a|0}function Hc(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0;h=i;i=i+16|0;if((i|0)>=(j|0))fa();f=h;if(a>>>0<=9){g=c[(a<<2&p)+8664>>2]|0;f=b;c[(f&p)>>2]=g;c[(f&p)+4>>2]=0;f=8704+(a<<2)|0;a=d;c[(a&p)>>2]=c[(f&p)>>2];c[(a&p)+4>>2]=0;if(!e)f=0;else{c[(f&p)>>2]=g;f=0}}else{c[(f&p)>>2]=15033;c[(f&p)+4>>2]=10788;bd(21,13648,f);f=21}i=h;return f|0}function Ic(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0;h=i;i=i+16|0;if((i|0)>=(j|0))fa();f=h+8|0;g=h;a=Hc(a,f,g,e)|0;if(!a){c[(b&p)>>2]=c[(f&p)>>2];c[(d&p)>>2]=c[(g&p)>>2]}i=h;return a|0}function Jc(a,b,d,f,g){a=a|0;b=b|0;d=d|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,n=0,q=0,r=0;r=i;i=i+16|0;if((i|0)>=(j|0))fa();n=r+4|0;l=r;switch(b|0){case 2:{c[(n&p)>>2]=0;q=a+20|0;g=c[(q&p)>>2]|0;h=(g|0)>0;if(h){l=c[(a&p)+16>>2]|0;k=0;do{b=c[(l+(k<<4)&p)+4>>2]|0;if(b)c[((c[(b&p)+4>>2]|0)&p)+4>>2]=c[(b&p)>>2];k=k+1|0}while((k|0)!=(g|0));k=a+520|0;c[(k&p)>>2]=n;if(h){m=a+16|0;h=0;do{b=c[((c[(m&p)>>2]|0)+(h<<4)&p)+12>>2]|0;if(b){l=lc[c[8796>>2]&127](16)|0;l=ca((c[(b&p)+44>>2]|0)+(c[(b&p)+12>>2]|0)+(c[(b&p)+28>>2]|0)+(c[(b&p)+60>>2]|0)|0,l)|0;c[(n&p)>>2]=l+(c[(n&p)>>2]|0);l=lc[c[8792>>2]&127](c[(b&p)+20>>2]|0)|0;c[(n&p)>>2]=(c[(n&p)>>2]|0)+l;l=lc[c[8792>>2]&127](c[(b&p)+52>>2]|0)|0;c[(n&p)>>2]=(c[(n&p)>>2]|0)+l;l=lc[c[8792>>2]&127](c[(b&p)+36>>2]|0)|0;c[(n&p)>>2]=(c[(n&p)>>2]|0)+l;l=lc[c[8792>>2]&127](c[(b&p)+68>>2]|0)|0;c[(n&p)>>2]=(c[(n&p)>>2]|0)+l;l=c[(b&p)+48>>2]|0;if(l)do{jg(a,c[(l&p)+8>>2]|0);l=c[(l&p)>>2]|0}while((l|0)!=0);l=c[(b&p)+16>>2]|0;if(l)do{kg(a,c[(l&p)+8>>2]|0);l=c[(l&p)>>2]|0}while((l|0)!=0);g=c[(q&p)>>2]|0}h=h+1|0}while((h|0)<(g|0));h=c[(n&p)>>2]|0}else h=0}else{k=a+520|0;c[(k&p)>>2]=n;h=0}c[(k&p)>>2]=0;c[(f&p)>>2]=0;c[(d&p)>>2]=h;h=0;break}case 9:case 8:case 7:{q=a+20|0;l=c[(q&p)>>2]|0;if((l|0)>0){n=c[(a&p)+16>>2]|0;m=b+-7|0;k=(g|0)==0;h=0;b=l;g=0;while(1){l=c[(n+(g<<4)&p)+4>>2]|0;if(l){l=(c[(c[(l&p)+4>>2]&p)>>2]|0)+(m<<2)+184|0;h=(c[(l&p)>>2]|0)+h|0;if(k)l=b;else{c[(l&p)>>2]=0;l=c[(q&p)>>2]|0}}else l=b;g=g+1|0;if((g|0)>=(l|0))break;else b=l}}else h=0;c[(f&p)>>2]=0;c[(d&p)>>2]=h;h=0;break}case 0:{k=a+252|0;c[(d&p)>>2]=c[(k&p)>>2];h=a+256|0;c[(f&p)>>2]=c[(h&p)>>2];if(!g)h=0;else{c[(h&p)>>2]=c[(k&p)>>2];h=0}break}case 6:case 5:case 4:{c[(d&p)>>2]=0;h=a+(b+-4<<2)+260|0;c[(f&p)>>2]=c[(h&p)>>2];if(!g)h=0;else{c[(h&p)>>2]=0;h=0}break}case 1:{m=a+20|0;k=c[(m&p)>>2]|0;g=(k|0)>0;if(g){h=c[(a&p)+16>>2]|0;l=0;do{b=c[(h+(l<<4)&p)+4>>2]|0;if(b)c[((c[(b&p)+4>>2]|0)&p)+4>>2]=c[(b&p)>>2];l=l+1|0}while((l|0)!=(k|0));if(g){b=a+16|0;l=0;h=0;while(1){g=c[((c[(b&p)>>2]|0)+(l<<4)&p)+4>>2]|0;if(!g)g=k;else{q=c[(c[(g&p)+4>>2]&p)>>2]|0;a=q+152|0;n=(c[(a&p)>>2]|0)+60+(e[(q&o)+140>>1]|0)|0;n=ca(lc[c[8872>>2]&127](c[((c[(q&p)+204>>2]|0)&p)+40>>2]|0)|0,n)|0;q=lc[c[8792>>2]&127](q)|0;g=c[(m&p)>>2]|0;h=n+h+q+(c[(a&p)>>2]|0)|0}l=l+1|0;if((l|0)>=(g|0))break;else k=g}}else h=0}else h=0;c[(d&p)>>2]=h;c[(f&p)>>2]=0;h=0;break}case 3:{c[(l&p)>>2]=0;g=a+520|0;c[(g&p)>>2]=l;k=c[(a&p)+4>>2]|0;if(!k)h=0;else{do{lg(a,k);mg(a,k);k=c[(k&p)+52>>2]|0}while((k|0)!=0);h=c[(l&p)>>2]|0}c[(g&p)>>2]=0;c[(f&p)>>2]=0;c[(d&p)>>2]=h;h=0;break}case 10:{c[(f&p)>>2]=0;q=a+512|0;n=c[(q&p)+4>>2]|0;if((n|0)>0|(n|0)==0&(c[(q&p)>>2]|0)>>>0>0)h=1;else{h=a+504|0;a=c[(h&p)+4>>2]|0;h=(a|0)>0|(a|0)==0&(c[(h&p)>>2]|0)>>>0>0}c[(d&p)>>2]=h&1;h=0;break}default:h=1}i=r;return h|0}function Kc(a){a=a|0;var b=0;a:do if(!(Lc()|0)){b=c[2254]|0;if(!((b|0)==0|(a|0)==0))while(1){if(!(_v(a,c[(b&p)+16>>2]|0)|0))break a;b=c[(b&p)+12>>2]|0;if(!b){b=0;break}}}else b=0;while(0);return b|0}function Lc(){var a=0,b=0,d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0;m=i;i=i+16|0;if((i|0)>=(j|0))fa();k=m;do if(!(c[2243]|0)){c[2245]=1;if(!(c[2246]|0)){if(!(c[2195]|0)){c[(k&p)>>2]=16496;mf(4,k)|0}b=9024|0;d=b+40|0;do{c[(b&p)>>2]=0;b=b+4|0}while((b|0)<(d|0));if(c[2187]|0)c[2256]=8;h=c[2234]|0;d=c[2235]|0;b=c[2236]|0;if((h|0)!=0&(d|0)>99&(b|0)>0){g=d&-8;c[2235]=g;c[2263]=h;c[2264]=b;f=b+-1|0;if((f|0)>0){b=h+(ca(d>>>3,(b<<3)+-8|0)|0)|0;e=0;d=h;do{a=d;d=d+g|0;c[(a&p)>>2]=d;e=e+1|0}while((e|0)!=(f|0))}else b=h;c[(b&p)>>2]=0;c[2262]=b+4}else{c[2262]=0;c[2234]=0;c[2235]=0;c[2236]=0}if((c[2237]|0)==0|(c[2238]|0)<512|(c[2239]|0)<1){c[2237]=0;c[2238]=0;c[2239]=0}a=lc[c[8800>>2]&127](c[2202]|0)|0;if(a){b=9024|0;d=b+40|0;do{c[(b&p)>>2]=0;b=b+4|0}while((b|0)<(d|0));break}}c[2246]=1;if(!(c[2249]|0))c[2249]=8;a=(c[2248]|0)+1|0;c[2248]=a;if(!(c[2244]|c[2243])){c[2244]=1;b=10840|0;d=b+92|0;do{c[(b&p)>>2]=0;b=b+4|0}while((b|0)<(d|0));b=0;do{ng(10840,16608+(b*36|0)|0);b=b+1|0}while((b|0)!=59);b=0;do{ng(10840,19480+(b*36|0)|0);b=b+1|0}while((b|0)!=8);ng(10840,19256);ng(10840,19292|0);ng(10840,19328|0);if(!(c[2247]|0)){a=c[2214]|0;if(!a){c[(k&p)>>2]=16440;mf(18,k)|0;a=c[2214]|0}a=lc[a&127](c[2213]|0)|0;if(!a)l=28}else l=28;if((l|0)==28){c[2247]=1;a=Tc(10)|0;if(!a)a=7;else{Wc(a);Mc(9584,1)|0;Mc(9672|0,0)|0;Mc(9760|0,0)|0;Mc(9848|0,0)|0;a=c[2237]|0;b=c[2238]|0;d=c[2239]|0;if(c[3153]|0){k=b&-8;c[3154]=k;c[3161]=d;c[3155]=d;if((d|0)<=90){c[3156]=((d|0)/10|0)+1;c[3157]=a;c[3160]=0;c[3162]=0;if(d)l=33}else{c[3156]=10;c[3157]=a;c[3160]=0;c[3162]=0;l=33}if((l|0)==33){f=b>>>3;g=d<<3;h=ca(f<<3,d+-1|0)|0;b=a;e=0;while(1){d=d+-1|0;c[(b&p)>>2]=e;if(!d)break;else{e=b;b=b+k|0}}b=a+(ca(g,f)|0)|0;c[3160]=a+h;a=b}c[3158]=a}c[2243]=1;a=0}}c[2244]=0;b=c[2248]|0}else{b=a;a=0}c[2248]=b+-1;if((b|0)<2)c[2249]=0}else a=0;while(0);i=m;return a|0}function Mc(a,b){a=a|0;b=b|0;var d=0;d=Lc()|0;do if(!d){og(a);d=c[2254]|0;if((b|0)!=0|(d|0)==0){c[(a&p)+12>>2]=d;c[2254]=a;d=0;break}else{c[(a&p)+12>>2]=c[(d&p)+12>>2];c[((c[2254]|0)&p)+12>>2]=a;d=0;break}}while(0);return d|0}function Nc(a){a=a|0;og(a);return 0}function Oc(a){a=a|0;return 0}function Pc(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;do if(!(Lc()|0)){e=9032|0;d=c[(e&p)>>2]|0;e=c[(e&p)+4>>2]|0;if((b|0)>=0)if((b|0)>0|(b|0)==0&a>>>0>0){c[2260]=9;c[2261]=0;f=9032|0;c[(f&p)>>2]=a;c[(f&p)+4>>2]=b;c[2265]=(0>(b|0)|0==(b|0)&(c[2166]|0)>>>0>=a>>>0)&1;break}else{c[2265]=0;c[2258]=0;c[2259]=0;c[2260]=0;c[2261]=0;break}}else{e=-1;d=-1}while(0);G=e;return d|0}function Qc(){var a=0;a=c[2166]|0;G=((a|0)<0)<<31>>31;return a|0}function Rc(a){a=a|0;var b=0;b=(a|0)<0;Pc(b?0:a,b?0:((a|0)<0)<<31>>31)|0;return}function Sc(a){a=a|0;var b=0;b=c[2176]|0;if(a)c[2176]=c[2166];G=((b|0)<0)<<31>>31;return b|0}function Tc(a){a=a|0;if((Lc()|0)!=0|(a|0)<1)a=0;else a=qg(a,((a|0)<0)<<31>>31)|0;return a|0}function Uc(a,b){a=a|0;b=b|0;if(!(Lc()|0))a=qg(a,b)|0;else a=0;return a|0}function Vc(a){a=a|0;a=lc[c[8792>>2]&127](a)|0;G=((a|0)<0)<<31>>31;return a|0}function Wc(a){a=a|0;var b=0;do if(a)if(!(c[2186]|0)){cc[c[8784>>2]&31](a);break}else{b=lc[c[8792>>2]&127](a)|0;c[2166]=(c[2166]|0)-b;c[2175]=(c[2175]|0)+-1;cc[c[8784>>2]&31](a);break}while(0);return}function Xc(a,b){a=a|0;b=b|0;var c=0;if(!(Lc()|0)){c=(b|0)<0;b=rg(a,c?0:b,c?0:((b|0)<0)<<31>>31)|0}else b=0;return b|0}function Yc(a,b,c){a=a|0;b=b|0;c=c|0;if(!(Lc()|0))b=rg(a,b,c)|0;else b=0;return b|0}function Zc(b,d){b=b|0;d=d|0;var e=0,f=0,g=0;g=i;i=i+112|0;if((i|0)>=(j|0))fa();f=g+28|0;e=g;if(!(Lc()|0)){c[(e&p)+4>>2]=f;c[(e&p)+8>>2]=f;c[(e&p)>>2]=0;c[(e&p)+12>>2]=0;c[(e&p)+16>>2]=70;c[(e&p)+20>>2]=1e9;a[(e&n)+25>>0]=0;a[(e&n)+24>>0]=2;sg(e,0,b,d);e=tg(e)|0}else e=0;i=g;return e|0}function _c(a,b){a=a|0;b=b|0;var d=0,e=0;e=i;i=i+16|0;if((i|0)>=(j|0))fa();d=e;if(!(Lc()|0)){c[(d&p)>>2]=b;d=Zc(a,d)|0}else d=0;i=e;return d|0}function $c(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0;h=i;i=i+32|0;if((i|0)>=(j|0))fa();g=h;if((b|0)>=1){c[(g&p)+4>>2]=d;c[(g&p)+8>>2]=d;c[(g&p)>>2]=0;c[(g&p)+12>>2]=0;c[(g&p)+16>>2]=b;c[(g&p)+20>>2]=0;a[(g&n)+25>>0]=0;a[(g&n)+24>>0]=0;sg(g,0,e,f);d=tg(g)|0}i=h;return d|0}function ad(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0;f=i;i=i+16|0;if((i|0)>=(j|0))fa();g=f;c[(g&p)>>2]=e;a=$c(a,b,d,g)|0;i=f;return a|0}function bd(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0;k=i;i=i+256|0;if((i|0)>=(j|0))fa();f=k+16|0;h=k+44|0;g=k;if(c[2250]|0){c[(g&p)>>2]=e;c[(f&p)+4>>2]=h;c[(f&p)+8>>2]=h;c[(f&p)>>2]=0;c[(f&p)+12>>2]=0;c[(f&p)+16>>2]=210;c[(f&p)+20>>2]=0;a[(f&n)+25>>0]=0;a[(f&n)+24>>0]=0;sg(f,0,d,g);e=c[2250]|0;g=c[2251]|0;f=tg(f)|0;mc[e&63](g,b,f)}i=k;return}function cd(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0;h=i;i=i+256|0;if((i|0)>=(j|0))fa();g=h;do if(!(Lc()|0)){if((b|0)<1|(e|0)==0){a[9064]=0;break}if(!(a[9064]|0)){a[9066]=0;a[9065]=0;f=(Lc()|0)==0;f=f?c[2254]|0:0;ac[c[(f&p)+56>>2]&63](f,256,g)|0;f=0;do{a[(f&n)+9067>>0]=f;f=f+1|0}while((f|0)!=256);f=0;do{k=9067+f|0;m=(d[(g+f&n)>>0]|0)+(d[(k&n)>>0]|0)+(d[9066]|0)|0;a[9066]=m;m=9067+(m&255)|0;l=a[(m&n)>>0]|0;a[(m&n)>>0]=a[(k&n)>>0]|0;a[(k&n)>>0]=l;f=f+1|0}while((f|0)!=256);a[9064]=1}while(1){k=(a[9065]|0)+1<<24>>24;a[9065]=k;k=9067+(k&255)|0;g=a[(k&n)>>0]|0;f=g&255;l=(d[9066]|0)+f|0;a[9066]=l;a[(k&n)>>0]=a[(l&255&n)+9067>>0]|0;a[((d[9066]|0)&n)+9067>>0]=g;a[(e&n)>>0]=a[((d[((d[9065]|0)&n)+9067>>0]|0)+f&255&n)+9067>>0]|0;b=b+-1|0;if(!b)break;else e=e+1|0}}while(0);i=h;return}function dd(b,c){b=b|0;c=c|0;var e=0;if(b)if(!c)c=1;else{e=a[(b&n)>>0]|0;a:do if(!(e<<24>>24))e=0;else while(1){if((a[(e&255&n)+9328>>0]|0)!=(a[((d[(c&n)>>0]|0)&n)+9328>>0]|0))break a;b=b+1|0;c=c+1|0;e=a[(b&n)>>0]|0;if(!(e<<24>>24)){e=0;break}}while(0);c=(d[(e&255&n)+9328>>0]|0)-(d[((d[(c&n)>>0]|0)&n)+9328>>0]|0)|0}else c=((c|0)!=0)<<31>>31;return c|0}function ed(a){a=a|0;c[2241]=a;return 0}function fd(d,e,f,g){d=d|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,q=0,r=0;r=i;i=i+16|0;if((i|0)>=(j|0))fa();q=r;a:do if((f|0)==(d|0)){ug(f,1,10016,q);h=0}else{h=qg(48,0)|0;if(!h){c[(d&p)+52>>2]=7;h=c[(d&p)+236>>2]|0;if(!h){h=0;break}e=h+8|0;if(!(b[(e&o)>>1]&9312)){b[(e&o)>>1]=1;h=0;break}else{vg(h);h=0;break}}l=h+0|0;k=l+48|0;do{a[(l&n)>>0]=0;l=l+1|0}while((l|0)<(k|0));m=h+24|0;c[(m&p)>>2]=wg(d,f,g)|0;k=wg(d,d,e)|0;l=h+4|0;c[(l&p)>>2]=k;c[(h&p)>>2]=d;c[(h&p)+20>>2]=f;c[(h&p)+16>>2]=1;c[(h&p)+40>>2]=0;e=c[(m&p)>>2]|0;do if(!((e|0)==0|(k|0)==0)?(xg(k,c[((c[(e&p)+4>>2]|0)&p)+32>>2]|0,-1,0)|0)!=7:0)if(!(a[((c[(l&p)>>2]|0)&n)+8>>0]|0)){e=(c[(m&p)>>2]|0)+16|0;c[(e&p)>>2]=(c[(e&p)>>2]|0)+1;break a}else{ug(d,1,47416,q);break}while(0);Wc(h);h=0}while(0);i=r;return h|0}function gd(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,o=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0;F=i;i=i+32|0;if((i|0)>=(j|0))fa();B=F;r=F+16|0;u=F+12|0;y=F+8|0;D=b+24|0;g=c[(D&p)>>2]|0;h=c[(g&p)+4>>2]|0;c[(h&p)+4>>2]=c[(g&p)>>2];E=b+28|0;f=c[(E&p)>>2]|0;if(f>>>0<7?(30>>>(f&127)&1)==0:0){x=c[(h&p)>>2]|0;C=b+4|0;f=c[(C&p)>>2]|0;A=c[(c[(f&p)+4>>2]&p)>>2]|0;if((c[(b&p)>>2]|0)!=0?(a[(h&n)+20>>0]|0)==2:0){z=0;g=5}else v=5;do if((v|0)==5){h=b+12|0;if(!(c[(h&p)>>2]|0)){g=yg(f,2)|0;if(g){z=0;break}c[(h&p)>>2]=1;z=c[(C&p)>>2]|0;g=c[(z&p)+4>>2]|0;c[(g&p)+4>>2]=c[(z&p)>>2];g=c[((c[(g&p)+12>>2]|0)&p)+56>>2]|0;c[(b&p)+8>>2]=d[(g&n)+41>>0]<<16|d[(g&n)+40>>0]<<24|d[(g&n)+42>>0]<<8|d[(g&n)+43>>0];g=c[(D&p)>>2]|0}if(!(a[(g&n)+8>>0]|0)){z=1;g=yg(g,0)|0}else{z=0;g=0}}while(0);l=c[((c[(D&p)>>2]|0)&p)+4>>2]|0;w=c[(l&p)+32>>2]|0;q=c[((c[(C&p)>>2]|0)&p)+4>>2]|0;t=c[(q&p)+32>>2]|0;q=(a[((c[(q&p)>>2]|0)&n)+5>>0]|0)==5;f=(w|0)==(t|0)|(g|0)==0&q^1?g:8;l=c[(l&p)+44>>2]|0;h=(e|0)<0;a:do if(e){g=b+16|0;m=c[(g&p)>>2]|0;o=0;do{if(!(m>>>0<=l>>>0&(f|0)==0))break a;if((m|0)!=((((c[2514]|0)>>>0)/((c[((c[((c[(D&p)>>2]|0)&p)+4>>2]|0)&p)+32>>2]|0)>>>0)|0)+1|0)){f=zg(x,m,r,2)|0;if(!f){k=c[(r&p)>>2]|0;f=Ag(b,m,c[(k&p)+4>>2]|0,0)|0;if(k)Bg(k)}}else f=0;m=(c[(g&p)>>2]|0)+1|0;c[(g&p)>>2]=m;o=o+1|0}while(h|(o|0)<(e|0))}while(0);if(!f){c[(b&p)+36>>2]=l;f=c[(b&p)+16>>2]|0;c[(b&p)+32>>2]=l+1-f;if(f>>>0<=l>>>0){f=b+40|0;if(!(c[(f&p)>>2]|0)){C=(c[(c[((c[(D&p)>>2]|0)&p)+4>>2]&p)>>2]|0)+88|0;c[(b&p)+44>>2]=c[(C&p)>>2];c[(C&p)>>2]=b;c[(f&p)>>2]=1;f=0}else f=0}else v=22}else if((f|0)==101)v=22;do if((v|0)==22){if(!l){g=c[(C&p)>>2]|0;f=c[(g&p)+4>>2]|0;c[(f&p)+4>>2]=c[(g&p)>>2];c[(f&p)+44>>2]=0;f=Cg(f)|0;if((f|0)==0|(f|0)==101)l=1;else break}f=Dg(c[(C&p)>>2]|0,1,(c[(b&p)+8>>2]|0)+1|0)|0;if(!f){g=c[(b&p)>>2]|0;if(g)Eg(g);if(q?(s=Fg(c[(C&p)>>2]|0,2)|0,(s|0)!=0):0){f=s;break}if((w|0)<(t|0)){g=(t|0)/(w|0)|0;g=(l+-1+g|0)/(g|0)|0;h=c[2514]|0;k=c[((c[((c[(C&p)>>2]|0)&p)+4>>2]|0)&p)+32>>2]|0;g=(((g|0)==(((h>>>0)/(k>>>0)|0)+1|0))<<31>>31)+g|0;b=((w|0)<0)<<31>>31;s=sw(l|0,((l|0)<0)<<31>>31|0,w|0,b|0)|0;q=G;e=c[(A&p)+60>>2]|0;o=c[(A&p)+24>>2]|0;b:do if(g>>>0<=o>>>0){f=0;while(1){if((g|0)!=(((h>>>0)/(k>>>0)|0)+1|0)){f=zg(A,g,u,0)|0;if(f)break b;h=c[(u&p)>>2]|0;f=Gg(h)|0;if(h)Bg(h)}g=g+1|0;h=(f|0)==0;if(g>>>0>o>>>0|h^1)break;k=c[((c[((c[(C&p)>>2]|0)&p)+4>>2]|0)&p)+32>>2]|0;h=c[2514]|0}if(h)v=38}else v=38;while(0);if((v|0)==38)f=Hg(A,0,1)|0;h=c[2514]|0;l=h+t|0;m=((l|0)<0)<<31>>31;k=(m|0)<(q|0)|(m|0)==(q|0)&l>>>0>>0;l=k?l:s;m=k?m:q;h=h+w|0;k=((h|0)<0)<<31>>31;g=(f|0)==0;if(g&((k|0)<(m|0)|(k|0)==(m|0)&h>>>0>>0))do{c[(y&p)>>2]=0;f=qw(h|0,k|0,w|0,b|0)|0;f=jw(f|0,G|0,1,0)|0;f=zg(x,f,y,0)|0;g=c[(y&p)>>2]|0;if(!f)f=tc[c[((c[(e&p)>>2]|0)&p)+12>>2]&31](e,c[(g&p)+4>>2]|0,w,h,k)|0;if(g)Bg(g);h=jw(h|0,k|0,w|0,b|0)|0;k=G;g=(f|0)==0}while(g&((k|0)<(m|0)|(k|0)==(m|0)&h>>>0>>0));if(!g)break;f=rc[c[((c[(e&p)>>2]|0)&p)+24>>2]&127](e,B)|0;y=c[(B&p)+4>>2]|0;if((f|0)==0&((y|0)>(q|0)|((y|0)==(q|0)?(c[(B&p)>>2]|0)>>>0>s>>>0:0)))f=ac[c[((c[(e&p)>>2]|0)&p)+16>>2]&63](e,s,q)|0;if(f)break;f=Ig(A,0)|0}else{c[(A&p)+24>>2]=ca((w|0)/(t|0)|0,l)|0;f=Hg(A,0,0)|0}if(!f){f=Jg(c[(C&p)>>2]|0,0)|0;f=(f|0)==0?101:f}}}while(0);if(z){Kg(c[(D&p)>>2]|0,0)|0;Jg(c[(D&p)>>2]|0,0)|0}f=(f|0)==3082?7:f;c[(E&p)>>2]=f}i=F;return f|0}function hd(a){a=a|0;var d=0,e=0,f=0,g=0,h=0;if(!a)d=0;else{h=c[(a&p)+20>>2]|0;e=c[(a&p)+24>>2]|0;d=c[(e&p)+4>>2]|0;c[(d&p)+4>>2]=c[(e&p)>>2];if(c[(a&p)>>2]|0){e=e+16|0;c[(e&p)>>2]=(c[(e&p)>>2]|0)+-1}if(c[(a&p)+40>>2]|0){d=(c[(d&p)>>2]|0)+88|0;while(1){e=c[(d&p)>>2]|0;if((e|0)==(a|0))break;else d=e+44|0}c[(d&p)>>2]=c[(a&p)+44>>2]}Lg(c[(a&p)+4>>2]|0,0,0);d=c[(a&p)+28>>2]|0;d=(d|0)==101?0:d;e=c[(a&p)>>2]|0;if(e){c[(e&p)+52>>2]=d;f=c[(e&p)+236>>2]|0;do if(f){g=f+8|0;if(!(b[(g&o)>>1]&9312)){b[(g&o)>>1]=1;break}else{vg(f);e=c[(a&p)>>2]|0;break}}while(0);Mg(e);if(c[(a&p)>>2]|0)Wc(a)}Mg(h)}return d|0}function id(a){a=a|0;return c[(a&p)+32>>2]|0}function jd(a){a=a|0;return c[(a&p)+36>>2]|0}function kd(a){a=a|0;if((a|0)!=0?(b[(a&o)+88>>1]&256)!=0:0)a=c[(a&p)+168>>2]|0;else a=0;return a|0}function ld(a){a=a|0;if(!a)a=1;else a=(b[(a&o)+88>>1]&8)!=0;return a&1|0}function md(a){a=a|0;var b=0,d=0,e=0;e=i;i=i+16|0;if((i|0)>=(j|0))fa();d=e;do if(a){b=c[(a&p)>>2]|0;if(!b){bd(21,47360,d);c[(d&p)>>2]=68910;c[(d&p)+4>>2]=10788;bd(21,13648,d);b=21;break}else{a=Og(b,Ng(a)|0)|0;Mg(b);b=a;break}}else b=0;while(0);i=e;return b|0}function nd(b){b=b|0;var d=0,e=0;if(!b)b=0;else{d=Pg(b)|0;c[(b&p)+76>>2]=-1;c[(b&p)+80>>2]=0;a[(b&n)+86>>0]=2;c[(b&p)+40>>2]=-1108210269;c[(b&p)+92>>2]=0;c[(b&p)+72>>2]=1;a[(b&n)+87>>0]=-1;c[(b&p)+104>>2]=0;e=b+144|0;c[(e&p)>>2]=0;c[(e&p)+4>>2]=0;b=Og(c[(b&p)>>2]|0,d)|0}return b|0}function od(a){a=a|0;var d=0,e=0,f=0,g=0,h=0,i=0;h=a+68|0;e=b[(h&o)>>1]|0;if(e<<16>>16>0){i=a+60|0;d=c[(i&p)>>2]|0;g=0;do{f=d+(g*40|0)|0;if(!((b[(d+(g*40|0)&o)+8>>1]&9312)==0?(c[(d+(g*40|0)&p)+24>>2]|0)==0:0)){Qg(f);d=c[(i&p)>>2]|0;e=b[(h&o)>>1]|0}b[(d+(g*40|0)&o)+8>>1]=1;g=g+1|0}while((g|0)<(e<<16>>16|0))}d=a+88|0;e=b[(d&o)>>1]|0;if((e&256)!=0?(c[(a&p)+188>>2]|0)!=0:0)b[(d&o)>>1]=e|8;return 0}function pd(a){a=a|0;var d=0;d=a+8|0;if(b[(d&o)>>1]&18){Rg(a)|0;b[(d&o)>>1]=e[(d&o)>>1]|0|16;if(!(c[(a&p)+12>>2]|0))d=0;else d=c[(a&p)+16>>2]|0}else d=Sg(a,1)|0;return d|0}function qd(a){a=a|0;return Sg(a,1)|0}function rd(a){a=a|0;return Tg(a,1)|0}function sd(a){a=a|0;return Tg(a,2)|0}function td(a){a=a|0;return +(+Ug(a))}function ud(a){a=a|0;a=Vg(a)|0;return a|0}function vd(a){a=a|0;a=Vg(a)|0;return a|0}function wd(a){a=a|0;return Sg(a,2)|0}function xd(a){a=a|0;return Sg(a,3)|0}function yd(a){a=a|0;return Sg(a,2)|0}function zd(a){a=a|0;return d[((e[(a&o)+8>>1]|0)&31&n)+10064>>0]|0|0}function Ad(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;Wg(a,b,c,0,d);return}function Bd(b,d,e,f,g){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;if(f>>>0>0|(f|0)==0&e>>>0>2147483647){e=g;if(!((e|0)==0|(e|0)==-1))cc[g&31](d);if(b){c[(b&p)+20>>2]=18;a[(b&n)+25>>0]=1;Xg(c[(b&p)>>2]|0,10096,-1,1,0)|0}}else Wg(b,d,e,0,g);return}function Cd(a,b){a=a|0;b=+b;Yg(c[(a&p)>>2]|0,b);return}function Dd(b,d,e){b=b|0;d=d|0;e=e|0;c[(b&p)+20>>2]=1;a[(b&n)+25>>0]=1;Xg(c[(b&p)>>2]|0,d,e,1,-1)|0;return}function Ed(b,d,e){b=b|0;d=d|0;e=e|0;c[(b&p)+20>>2]=1;a[(b&n)+25>>0]=1;Xg(c[(b&p)>>2]|0,d,e,2,-1)|0;return}function Fd(a,d){a=a|0;d=d|0;var e=0,f=0;a=c[(a&p)>>2]|0;e=((d|0)<0)<<31>>31;f=a+8|0;if(!(b[(f&o)>>1]&9312)){c[(a&p)>>2]=d;c[(a&p)+4>>2]=e;b[(f&o)>>1]=4}else Zg(a,d,e);return}function Gd(a,d,e){a=a|0;d=d|0;e=e|0;var f=0;a=c[(a&p)>>2]|0;f=a+8|0;if(!(b[(f&o)>>1]&9312)){c[(a&p)>>2]=d;c[(a&p)+4>>2]=e;b[(f&o)>>1]=4}else Zg(a,d,e);return}function Hd(a){a=a|0;var d=0;a=c[(a&p)>>2]|0;d=a+8|0;if(!(b[(d&o)>>1]&9312))b[(d&o)>>1]=1;else vg(a);return}function Id(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;Wg(a,b,c,1,d);return}function Jd(b,d,e,f,g,h){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;if(f>>>0>0|(f|0)==0&e>>>0>2147483647){e=g;if(!((e|0)==0|(e|0)==-1))cc[g&31](d);if(b){c[(b&p)+20>>2]=18;a[(b&n)+25>>0]=1;Xg(c[(b&p)>>2]|0,10096,-1,1,0)|0}}else Wg(b,d,e,h<<24>>24==4?2:h,g);return}function Kd(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;Wg(a,b,c,2,d);return}function Ld(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;Wg(a,b,c,3,d);return}function Md(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;Wg(a,b,c,2,d);return}function Nd(a,b){a=a|0;b=b|0;_g(c[(a&p)>>2]|0,b)|0;return}function Od(a,b){a=a|0;b=b|0;$g(c[(a&p)>>2]|0,b);return}function Pd(d,e){d=d|0;e=e|0;var f=0;c[(d&p)+20>>2]=e;a[(d&n)+25>>0]=1;f=c[(d&p)>>2]|0;if(b[(f&o)+8>>1]&1){if((e|0)!=516){d=e&255;if(d>>>0>26|(d|0)==2)d=16328;else d=c[(d<<2&p)+15488>>2]|0}else d=16344;Xg(f,d,-1,1,0)|0}return}function Qd(b){b=b|0;c[(b&p)+20>>2]=18;a[(b&n)+25>>0]=1;Xg(c[(b&p)>>2]|0,10096,-1,1,0)|0;return}function Rd(d){d=d|0;var e=0,f=0;e=c[(d&p)>>2]|0;f=e+8|0;if(!(b[(f&o)>>1]&9312))b[(f&o)>>1]=1;else{vg(e);e=c[(d&p)>>2]|0}c[(d&p)+20>>2]=7;a[(d&n)+25>>0]=1;a[((c[(e&p)+32>>2]|0)&n)+65>>0]=1;return}function Sd(f){f=f|0;var g=0,l=0,m=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,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;_=i;i=i+224|0;if((i|0)>=(j|0))fa();V=_+8|0;U=_;if(!(ah(f)|0)){Z=c[(f&p)>>2]|0;N=f+88|0;b[(N&o)>>1]=b[(N&o)>>1]&-513;R=f+40|0;S=f+76|0;T=f+128|0;Y=f+80|0;D=f+168|0;E=f+8|0;F=f+20|0;H=f+32|0;I=f+4|0;J=f+84|0;X=f+44|0;K=(f|0)==0;L=f+52|0;M=f+48|0;C=0;while(1){if((c[(R&p)>>2]|0)!=-1108210269)nd(f)|0;B=c[(f&p)>>2]|0;if(a[(B&n)+65>>0]|0){W=7;break}l=c[(S&p)>>2]|0;do if((l|0)<1){if(b[(N&o)>>1]&8){c[(Y&p)>>2]=17;l=1;break}if((l|0)<0){l=B+148|0;if(!(c[(l&p)>>2]|0))c[(B&p)+240>>2]=0;if((c[(B&p)+184>>2]|0)!=0?(a[(B&n)+145>>0]|0)==0:0)bh(c[(B&p)>>2]|0,T)|0;c[(l&p)>>2]=(c[(l&p)>>2]|0)+1;l=b[(N&o)>>1]|0;if(!(l&64)){l=B+156|0;c[(l&p)>>2]=(c[(l&p)>>2]|0)+1;l=b[(N&o)>>1]|0}if(l&128){A=B+152|0;c[(A&p)>>2]=(c[(A&p)>>2]|0)+1}c[(S&p)>>2]=0;W=22}else W=22}else W=22;while(0);if((W|0)==22){W=0;do if(!(b[(N&o)>>1]&3)){A=B+160|0;c[(A&p)>>2]=(c[(A&p)>>2]|0)+1;l=gh(f)|0;c[(A&p)>>2]=(c[(A&p)>>2]|0)+-1;if((l|0)==100)l=100;else W=101}else{t=c[(f&p)>>2]|0;z=c[(E&p)>>2]|0;y=z+40|0;ch(y,8);c[(F&p)>>2]=0;if((c[(Y&p)>>2]|0)==7){a[(t&n)+65>>0]=1;l=1;W=101;break}r=c[(H&p)>>2]|0;u=b[(N&o)>>1]&3;if(u<<16>>16==1){s=c[(E&p)>>2]|0;v=s+360|0;if(b[(s&o)+368>>1]&16){w=(c[(s&p)+372>>2]|0)>>>2;m=c[(s&p)+376>>2]|0;if(!w){x=m;s=r;g=0}else{l=0;s=r;do{s=(c[((c[(m+(l<<2)&p)>>2]|0)&p)+4>>2]|0)+s|0;l=l+1|0}while((l|0)<(w|0));x=m;g=w}}else{x=0;s=r;g=0}}else{x=0;s=r;g=0;v=0}r=u<<16>>16==2;m=c[(S&p)>>2]|0;while(1){l=m+1|0;if((m|0)>=(s|0)){W=33;break}if(!r)break;if((a[((c[(I&p)>>2]|0)+(m*20|0)&n)>>0]|0)==-99)break;else m=l}if((W|0)==33){c[(S&p)>>2]=l;c[(Y&p)>>2]=0;l=101;W=101;break}c[(S&p)>>2]=l;if(c[(t&p)+240>>2]|0){c[(Y&p)>>2]=9;c[(V&p)>>2]=15832;dh(X,t,10344,V);l=1;W=101;break}s=c[(H&p)>>2]|0;if((m|0)<(s|0)){l=m;A=(c[(I&p)>>2]|0)+(m*20|0)|0}else{m=m-s|0;s=c[(x&p)>>2]|0;r=c[(s&p)+4>>2]|0;if((m|0)<(r|0))r=m;else{s=m;l=0;while(1){m=s-r|0;l=l+1|0;s=c[(x+(l<<2)&p)>>2]|0;r=c[(s&p)+4>>2]|0;if((m|0)<(r|0)){r=m;break}else s=m}}l=r;A=(c[(s&p)>>2]|0)+(r*20|0)|0}if((b[(N&o)>>1]&3)==1){b[(z&o)+48>>1]=4;r=y;c[(r&p)>>2]=l;c[(r&p)+4>>2]=((l|0)<0)<<31>>31;b[(z&o)+88>>1]=2562;r=c[(d[(A&n)>>0]<<2&p)+44856>>2]|0;c[(z&p)+96>>2]=r;s=r;while(1)if(!(a[(s&n)>>0]|0))break;else s=s+1|0;w=z+80|0;c[(z&p)+92>>2]=s-r&1073741823;a[(z&n)+90>>0]=1;if((a[(A&n)+1>>0]|0)==-18){l=(g<<2)+4|0;a:do if(!g)s=0;else{r=c[(A&p)+16>>2]|0;m=0;while(1){s=m+1|0;if((c[(x+(m<<2)&p)>>2]|0)==(r|0)){s=m;break a}if((s|0)<(g|0))m=s;else break}}while(0);if((s|0)==(g|0)?(eh(v,l,(g|0)!=0&1)|0)==0:0){c[((c[(v&p)+16>>2]|0)+(g<<2)&p)>>2]=c[(A&p)+16>>2];z=v+8|0;b[(z&o)>>1]=e[(z&o)>>1]|16;c[(v&p)+12>>2]=l;z=w}else z=w}else z=w}b[(z&o)+48>>1]=4;y=c[(A&p)+4>>2]|0;x=z+40|0;c[(x&p)>>2]=y;c[(x&p)+4>>2]=((y|0)<0)<<31>>31;b[(z&o)+88>>1]=4;x=c[(A&p)+8>>2]|0;y=z+80|0;c[(y&p)>>2]=x;c[(y&p)+4>>2]=((x|0)<0)<<31>>31;b[(z&o)+128>>1]=4;y=c[(A&p)+12>>2]|0;x=z+120|0;c[(x&p)>>2]=y;c[(x&p)+4>>2]=((y|0)<0)<<31>>31;x=z+160|0;if(!(fh(x,32)|0)){b[(z&o)+168>>1]=514;y=z+176|0;g=c[(y&p)>>2]|0;b:do switch(a[(A&n)+1>>0]|0){case -6:{t=c[(A&p)+16>>2]|0;l=t+6|0;c[(V&p)>>2]=e[(l&o)>>1];ad(32,g,44768,V)|0;if(!g)s=0;else{s=g;while(1)if(!(a[(s&n)>>0]|0))break;else s=s+1|0;s=s-g&1073741823}c:do if(b[(l&o)>>1]|0){u=t+16|0;v=0;while(1){r=c[(t+(v<<2)&p)+20>>2]|0;if(r){r=c[(r&p)>>2]|0;if(!r){m=0;r=0}else W=61}else{r=44776;W=61}do if((W|0)==61){W=0;w=r;while(1)if(!(a[(w&n)>>0]|0))break;else w=w+1|0;m=w-r&1073741823;if((m|0)!=6)break;w=(Zv(r,11152,6)|0)==0;m=w?1:6;r=w?44784:r}while(0);if((m+s|0)>26)break;w=s+1|0;a[(g+s&n)>>0]=44;if(a[((c[(u&p)>>2]|0)+v&n)>>0]|0){a[(g+w&n)>>0]=45;w=s+2|0}kw(g+w|0,r|0,m+1|0)|0;s=w+m|0;v=v+1|0;if((v|0)>=(e[(l&o)>>1]|0))break c}l=g+s|0;a[(l&n)>>0]=44;a[(l&n)+1>>0]=46;a[(l&n)+2>>0]=46;a[(l&n)+3>>0]=46}while(0);a[(g+s&n)>>0]=41;a[(g+s&n)+1>>0]=0;r=g;break}case -15:{ad(32,g,44832,V)|0;r=g;break}case -18:{ad(32,g,44848,V)|0;r=g;break}case -4:{c[(V&p)>>2]=c[(c[(A&p)+16>>2]&p)>>2];ad(32,g,44792,V)|0;r=g;break}case -5:{l=c[(A&p)+16>>2]|0;r=b[(l&o)>>1]|0;c[(V&p)>>2]=c[(l&p)+24>>2];c[(V&p)+4>>2]=r;ad(32,g,44800,V)|0;r=g;break}case -13:{m=c[(A&p)+16>>2]|0;l=c[(m&p)+4>>2]|0;r=V;c[(r&p)>>2]=c[(m&p)>>2];c[(r&p)+4>>2]=l;ad(32,g,19920,V)|0;r=g;break}case -14:{c[(V&p)>>2]=c[(A&p)+16>>2];ad(32,g,44808,V)|0;r=g;break}case -12:{h[(k&q)>>3]=+h[(c[(A&p)+16>>2]&q)>>3];c[(V&p)>>2]=c[(k&p)>>2];c[(V&p)+4>>2]=c[(k&p)+4>>2];ad(32,g,19912,V)|0;r=g;break}case -8:{s=c[(A&p)+16>>2]|0;r=e[(s&o)+8>>1]|0;if(r&2){r=c[(s&p)+16>>2]|0;break b}if(r&4){m=s;l=c[(m&p)+4>>2]|0;r=V;c[(r&p)>>2]=c[(m&p)>>2];c[(r&p)+4>>2]=l;ad(32,g,19920,V)|0;r=g;break b}if(r&8){h[(k&q)>>3]=+h[(s&q)>>3];c[(V&p)>>2]=c[(k&p)>>2];c[(V&p)+4>>2]=c[(k&p)+4>>2];ad(32,g,19912,V)|0;r=g;break b}if(!(r&1))r=44816;else{ad(32,g,20304,V)|0;r=g}break}case -19:{a[(g&n)>>0]=0;r=g;break}case -10:{c[(V&p)>>2]=c[((c[(A&p)+16>>2]|0)&p)+8>>2];ad(32,g,44824,V)|0;r=g;break}default:{s=c[(A&p)+16>>2]|0;if(!s){a[(g&n)>>0]=0;r=g}else r=s}}while(0);if((r|0)==(c[(y&p)>>2]|0)){if(!r)l=0;else{s=r;while(1)if(!(a[(s&n)>>0]|0))break;else s=s+1|0;l=s-r&1073741823}c[(z&p)+172>>2]=l;a[(z&n)+170>>0]=1}else Xg(x,r,-1,1,0)|0;l=b[(N&o)>>1]|0;if((l&3)==1){if(fh(z+200|0,4)|0){l=1;W=101;break}b[(z&o)+208>>1]=514;c[(z&p)+212>>2]=2;l=c[(z&p)+216>>2]|0;c[(V&p)>>2]=d[(A&n)+3>>0];ad(3,l,44760,V)|0;a[(z&n)+210>>0]=1;b[(z&o)+248>>1]=1;l=b[(N&o)>>1]|0}b[(J&o)>>1]=12-((l&3)<<2);c[(F&p)>>2]=(c[(E&p)>>2]|0)+40;c[(Y&p)>>2]=0;l=100}else{l=1;W=101}}while(0);if((W|0)==101){W=0;g=B+184|0;if(((c[(g&p)>>2]|0)!=0?(a[(B&n)+145>>0]|0)==0:0)?(c[(D&p)>>2]|0)!=0:0){bh(c[(B&p)>>2]|0,U)|0;g=c[(g&p)>>2]|0;y=c[(B&p)+188>>2]|0;z=c[(D&p)>>2]|0;m=U;A=T;A=dw(c[(m&p)>>2]|0,c[(m&p)+4>>2]|0,c[(A&p)>>2]|0,c[(A&p)+4>>2]|0)|0;A=sw(A|0,G|0,1e6,0)|0;qc[g&15](y,z,A,G)}if((l|0)==101){t=B+20|0;s=c[(t&p)>>2]|0;if((s|0)>0){u=B+16|0;v=B+216|0;w=B+220|0;g=0;l=0;do{r=c[(u&p)>>2]|0;m=c[(r+(g<<4)&p)+4>>2]|0;if(((m|0)!=0?(O=c[(m&p)+4>>2]|0,c[(O&p)+4>>2]=c[(m&p)>>2],O=c[((c[(O&p)>>2]|0)&p)+208>>2]|0,(O|0)!=0):0)?(Q=O+12|0,P=c[(Q&p)>>2]|0,c[(Q&p)>>2]=0,Q=c[(v&p)>>2]|0,(Q|0)!=0&(P|0)>0&(l|0)==0):0){l=pc[Q&31](c[(w&p)>>2]|0,B,c[(r+(g<<4)&p)>>2]|0,P)|0;s=c[(t&p)>>2]|0}g=g+1|0}while((g|0)<(s|0))}else l=0;c[(Y&p)>>2]=l;l=(l|0)==0?101:1}}c[(B&p)+52>>2]=l;if((Og(c[(f&p)>>2]|0,c[(Y&p)>>2]|0)|0)==7)c[(Y&p)>>2]=7}if((b[(N&o)>>1]&256)!=0&(l|0)!=100&(l|0)!=101)l=hh(f)|0;g=c[(B&p)+56>>2]&l;if((g|0)!=17)break;s=C+1|0;if((C|0)>=50){g=17;break}m=c[(S&p)>>2]|0;if(!K?(b[(N&o)>>1]&256)!=0:0)l=c[(D&p)>>2]|0;else l=0;r=c[(f&p)>>2]|0;g=ih(r,l,-1,0,f,U,0)|0;if((g|0)==7){g=r;W=124;break}else if(g){W=127;break}C=c[(U&p)>>2]|0;kw(V|0,C|0,208)|0;kw(C|0,f|0,208)|0;kw(f|0,V|0,208)|0;A=C+52|0;B=c[(A&p)>>2]|0;c[(A&p)>>2]=c[(L&p)>>2];c[(L&p)>>2]=B;B=C+48|0;A=c[(B&p)>>2]|0;c[(B&p)>>2]=c[(M&p)>>2];c[(M&p)>>2]=A;A=C+168|0;B=c[(A&p)>>2]|0;c[(A&p)>>2]=c[(D&p)>>2];c[(D&p)>>2]=B;b[(N&o)>>1]=b[(N&o)>>1]&-257|b[(C&o)+88>>1]&256;jh(C,f);c[(C&p)+80>>2]=0;Ng(C)|0;nd(f)|0;if((m|0)<=-1){C=s;continue}b[(N&o)>>1]=b[(N&o)>>1]|512;C=s}if((W|0)==7){c[(Y&p)>>2]=7;g=7}else if((W|0)==124){a[(g&n)+65>>0]=1;g=7;W=127}do if((W|0)==127){l=Sg(c[(Z&p)+236>>2]|0,1)|0;mg(Z,c[(X&p)>>2]|0);if(!(a[(Z&n)+65>>0]|0)){c[(X&p)>>2]=kh(Z,l)|0;c[(Y&p)>>2]=g;break}else{c[(X&p)>>2]=0;c[(Y&p)>>2]=7;g=7;break}}while(0);g=Og(Z,g)|0}else{c[(V&p)>>2]=69408;c[(V&p)+4>>2]=10788;bd(21,13648,V);g=21}i=_;return g|0}function Td(a){a=a|0;return c[((c[(a&p)+4>>2]|0)&p)+4>>2]|0}function Ud(a){a=a|0;return c[((c[(a&p)>>2]|0)&p)+32>>2]|0}function Vd(a,d){a=a|0;d=d|0;var e=0;e=c[(a&p)+8>>2]|0;if(!(b[(e&o)+8>>1]&8192))e=lh(a,d)|0;else e=c[(e&p)+16>>2]|0;return e|0}function Wd(a,b){a=a|0;b=b|0;var d=0;d=c[((c[(a&p)+12>>2]|0)&p)+204>>2]|0;a:do if(!d)d=0;else{a=c[(a&p)+16>>2]|0;while(1){if((c[(d&p)>>2]|0)==(a|0)?(c[(d&p)+4>>2]|0)==(b|0):0)break;d=c[(d&p)+16>>2]|0;if(!d){d=0;break a}}d=c[(d&p)+8>>2]|0}while(0);return d|0}function Xd(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0;h=c[(b&p)+12>>2]|0;do if((d|0)<0)k=14;else{j=h+204|0;g=c[(j&p)>>2]|0;a:do if(g){i=c[(b&p)+16>>2]|0;while(1){if((c[(g&p)>>2]|0)==(i|0)?(c[(g&p)+4>>2]|0)==(d|0):0)break;g=c[(g&p)+16>>2]|0;if(!g){k=8;break a}}if(g){h=c[(g&p)+12>>2]|0;if(h)cc[h&31](c[(g&p)+8>>2]|0)}else k=8}else k=8;while(0);if((k|0)==8){g=mh(c[(h&p)>>2]|0,20,0)|0;if(!g){k=14;break}h=g+0|0;i=h+16|0;do{a[(h&n)>>0]=0;h=h+1|0}while((h|0)<(i|0));c[(g&p)>>2]=c[(b&p)+16>>2];c[(g&p)+4>>2]=d;c[(g&p)+16>>2]=c[(j&p)>>2];c[(j&p)>>2]=g;h=b+25|0;if(!(a[(h&n)>>0]|0)){c[(b&p)+20>>2]=0;a[(h&n)>>0]=1}}c[(g&p)+8>>2]=e;c[(g&p)+12>>2]=f}while(0);if((k|0)==14?(f|0)!=0:0)cc[f&31](e);return}function Yd(a){a=a|0;return c[((c[(a&p)+8>>2]|0)&p)+12>>2]|0}function Zd(a){a=a|0;if(!a)a=0;else a=e[(a&o)+84>>1]|0;return a|0}function _d(a){a=a|0;if((a|0)!=0?(c[(a&p)+20>>2]|0)!=0:0)a=e[(a&o)+84>>1]|0;else a=0;return a|0}function $d(a,b){a=a|0;b=b|0;var d=0;b=pd(nh(a,b)|0)|0;if(a){d=a+80|0;c[(d&p)>>2]=Og(c[(a&p)>>2]|0,c[(d&p)>>2]|0)|0}return b|0}function ae(a,b){a=a|0;b=b|0;var d=0;b=Tg(nh(a,b)|0,1)|0;if(a){d=a+80|0;c[(d&p)>>2]=Og(c[(a&p)>>2]|0,c[(d&p)>>2]|0)|0}return b|0}function be(a,b){a=a|0;b=b|0;var d=0;b=Tg(nh(a,b)|0,2)|0;if(a){d=a+80|0;c[(d&p)>>2]=Og(c[(a&p)>>2]|0,c[(d&p)>>2]|0)|0}return b|0}function ce(a,b){a=a|0;b=b|0;var d=0.0;d=+Ug(nh(a,b)|0);if(a){b=a+80|0;c[(b&p)>>2]=Og(c[(a&p)>>2]|0,c[(b&p)>>2]|0)|0}return +d}function de(a,b){a=a|0;b=b|0;var d=0;b=Vg(nh(a,b)|0)|0;if(a){d=a+80|0;c[(d&p)>>2]=Og(c[(a&p)>>2]|0,c[(d&p)>>2]|0)|0}return b|0}function ee(a,b){a=a|0;b=b|0;var d=0,e=0;b=Vg(nh(a,b)|0)|0;d=G;if(a){e=a+80|0;c[(e&p)>>2]=Og(c[(a&p)>>2]|0,c[(e&p)>>2]|0)|0}G=d;return b|0}function fe(a,b){a=a|0;b=b|0;var d=0;b=Sg(nh(a,b)|0,1)|0;if(a){d=a+80|0;c[(d&p)>>2]=Og(c[(a&p)>>2]|0,c[(d&p)>>2]|0)|0}return b|0}function ge(a,d){a=a|0;d=d|0;var f=0,g=0;d=nh(a,d)|0;f=d+8|0;g=e[(f&o)>>1]|0;if(g&2048)b[(f&o)>>1]=g&59391|4096;if(a){f=a+80|0;c[(f&p)>>2]=Og(c[(a&p)>>2]|0,c[(f&p)>>2]|0)|0}return d|0}function he(a,b){a=a|0;b=b|0;var d=0;b=Sg(nh(a,b)|0,2)|0;if(a){d=a+80|0;c[(d&p)>>2]=Og(c[(a&p)>>2]|0,c[(d&p)>>2]|0)|0}return b|0}function ie(a,b){a=a|0;b=b|0;var f=0;b=d[((e[((nh(a,b)|0)&o)+8>>1]|0)&31&n)+10064>>0]|0;if(a){f=a+80|0;c[(f&p)>>2]=Og(c[(a&p)>>2]|0,c[(f&p)>>2]|0)|0}return b|0}function je(b,d){b=b|0;d=d|0;var f=0,g=0;g=c[(b&p)>>2]|0;if(!b)f=0;else f=e[(b&o)+84>>1]|0;if((f|0)>(d|0)&(d|0)>-1){d=Sg((c[(b&p)+16>>2]|0)+(d*40|0)|0,1)|0;f=g+65|0;if(a[(f&n)>>0]|0){a[(f&n)>>0]=0;d=0}}else d=0;return d|0}function ke(b,d){b=b|0;d=d|0;var f=0,g=0;g=c[(b&p)>>2]|0;if(!b)f=0;else f=e[(b&o)+84>>1]|0;if((f|0)>(d|0)&(d|0)>-1){d=Sg((c[(b&p)+16>>2]|0)+(d*40|0)|0,2)|0;f=g+65|0;if(a[(f&n)>>0]|0){a[(f&n)>>0]=0;d=0}}else d=0;return d|0}function le(b,d){b=b|0;d=d|0;var f=0,g=0;g=c[(b&p)>>2]|0;if(!b)f=0;else f=e[(b&o)+84>>1]|0;if((f|0)>(d|0)&(d|0)>-1){d=Sg((c[(b&p)+16>>2]|0)+((f+d|0)*40|0)|0,1)|0;f=g+65|0;if(a[(f&n)>>0]|0){a[(f&n)>>0]=0;d=0}}else d=0;return d|0}function me(b,d){b=b|0;d=d|0;var f=0,g=0;g=c[(b&p)>>2]|0;if(!b)f=0;else f=e[(b&o)+84>>1]|0;if((f|0)>(d|0)&(d|0)>-1){d=Sg((c[(b&p)+16>>2]|0)+((f+d|0)*40|0)|0,2)|0;f=g+65|0;if(a[(f&n)>>0]|0){a[(f&n)>>0]=0;d=0}}else d=0;return d|0}function ne(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;return oh(a,b,c,d,e,0)|0}function oe(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;if(e>>>0>0|(e|0)==0&d>>>0>2147483647){d=f;if((d|0)==0|(d|0)==-1)d=18;else{cc[f&31](c);d=18}}else d=oh(a,b,c,d,f,0)|0;return d|0}function pe(a,b,d){a=a|0;b=b|0;d=+d;var e=0;e=ph(a,b)|0;if(!e)Yg((c[(a&p)+60>>2]|0)+((b+-1|0)*40|0)|0,d);return e|0}function qe(a,b,c){a=a|0;b=b|0;c=c|0;return re(a,b,c,((c|0)<0)<<31>>31)|0}function re(a,d,e,f){a=a|0;d=d|0;e=e|0;f=f|0;var g=0,h=0;g=ph(a,d)|0;do if(!g){d=d+-1|0;h=c[(a&p)+60>>2]|0;a=h+(d*40|0)|0;d=h+(d*40|0)+8|0;if(!(b[(d&o)>>1]&9312)){c[(a&p)>>2]=e;c[(a&p)+4>>2]=f;b[(d&o)>>1]=4;break}else{Zg(a,e,f);break}}while(0);return g|0}function se(a,b){a=a|0;b=b|0;return ph(a,b)|0}function te(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;return oh(a,b,c,d,e,1)|0}function ue(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;if(e>>>0>0|(e|0)==0&d>>>0>2147483647){d=f;if((d|0)==0|(d|0)==-1)d=18;else{cc[f&31](c);d=18}}else d=oh(a,b,c,d,f,g<<24>>24==4?2:g)|0;return d|0}function ve(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;return oh(a,b,c,d,e,2)|0}function we(e,f,g){e=e|0;f=f|0;g=g|0;var i=0,j=0;i=b[(g&o)+8>>1]|0;j=d[(i&31&n)+10064>>0]|0;do if((j|0)==3)i=oh(e,f,c[(g&p)+16>>2]|0,c[(g&p)+12>>2]|0,-1,a[(g&n)+10>>0]|0)|0;else if((j|0)==1){i=g;i=re(e,f,c[(i&p)>>2]|0,c[(i&p)+4>>2]|0)|0}else if((j|0)==2)i=pe(e,f,+h[(g&q)>>3])|0;else if((j|0)==4)if(!(i&16384)){i=oh(e,f,c[(g&p)+16>>2]|0,c[(g&p)+12>>2]|0,-1,0)|0;break}else{i=xe(e,f,c[(g&p)>>2]|0)|0;break}else i=ph(e,f)|0;while(0);return i|0}function xe(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;e=ph(a,b)|0;if(!e)$g((c[(a&p)+60>>2]|0)+((b+-1|0)*40|0)|0,d);return e|0}function ye(a){a=a|0;if(!a)a=0;else a=b[(a&o)+68>>1]|0;return a|0}function ze(a,d){a=a|0;d=d|0;if(!((a|0)==0|(d|0)<1)?(b[(a&o)+70>>1]|0)>=(d|0):0)d=c[((c[(a&p)+64>>2]|0)+(d+-1<<2)&p)>>2]|0;else d=0;return d|0}function Ae(b,c){b=b|0;c=c|0;var d=0;if(!c)d=0;else{d=c;while(1)if(!(a[(d&n)>>0]|0))break;else d=d+1|0;d=d-c&1073741823}return qh(b,c,d)|0}function Be(a,d){a=a|0;d=d|0;var e=0,f=0;if((b[(a&o)+68>>1]|0)==(b[(d&o)+68>>1]|0)){f=d+88|0;e=b[(f&o)>>1]|0;if((e&256)!=0?(c[(d&p)+188>>2]|0)!=0:0)b[(f&o)>>1]=e|8;e=a+88|0;f=b[(e&o)>>1]|0;if((f&256)!=0?(c[(a&p)+188>>2]|0)!=0:0)b[(e&o)>>1]=f|8;jh(a,d);e=0}else e=1;return e|0}function Ce(a){a=a|0;if(!a)a=0;else a=c[(a&p)>>2]|0;return a|0}function De(a){a=a|0;if(!a)a=1;else a=(e[(a&o)+88>>1]|0)>>>6&1;return a|0}function Ee(a){a=a|0;if((a|0)!=0?(c[(a&p)+76>>2]|0)>-1:0)a=(c[(a&p)+40>>2]|0)==-1108210269;else a=0;return a&1|0}function Fe(a,b){a=a|0;b=b|0;if(!b)a=a+4|0;else a=b+52|0;return c[(a&p)>>2]|0}function Ge(a,b,d){a=a|0;b=b|0;d=d|0;a=a+(b<<2)+108|0;b=c[(a&p)>>2]|0;if(d)c[(a&p)>>2]=0;return b|0}function He(a){a=a|0;var b=0,c=0,f=0;c=a+8|0;f=e[(c&o)>>1]|0;b=d[(f&31&n)+10064>>0]|0;if((f&15|0)==2){rh(a,0);b=d[((e[(c&o)>>1]|0)&31&n)+10064>>0]|0}return b|0}function Ie(d,e,f,g,h,k,l,m){d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;m=m|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,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;U=i;i=i+16|0;if((i|0)>=(j|0))fa();S=U;T=U+4|0;c[(T&p)>>2]=0;c[(m&p)>>2]=0;N=(l|0)!=0;O=N&1;Q=mh(d,28,0)|0;do if(Q){l=Q+0|0;s=l+28|0;do{a[(l&n)>>0]=0;l=l+1|0}while((l|0)<(s|0));s=mh(d,536,0)|0;if(s){K=d+20|0;L=d+16|0;B=d+24|0;l=Q+20|0;C=Q+12|0;D=Q+24|0;E=d+65|0;F=O^3;G=O|2;H=s+440|0;I=s+72|0;J=s+68|0;r=0;M=1;q=0;while(1){fw(s|0,0,536)|0;c[(s&p)>>2]=d;mg(d,r);c[(T&p)>>2]=0;r=c[(K&p)>>2]|0;if((r|0)>0){t=c[(L&p)>>2]|0;v=0;do{u=c[(t+(v<<4)&p)+4>>2]|0;if(u)c[((c[(u&p)+4>>2]|0)&p)+4>>2]=c[(u&p)>>2];v=v+1|0}while((v|0)!=(r|0))}A=sh(s,0,f,e)|0;if(!A)break;r=a[(A&n)+44>>0]|0;if(r&16){R=11;break}if(r&32){R=13;break}if(c[(A&p)+12>>2]|0){R=17;break}z=A+38|0;w=b[(z&o)>>1]|0;a:do if(w<<16>>16>0){v=c[(A&p)+4>>2]|0;u=w<<16>>16;r=0;while(1){t=r+1|0;if(!(dd(c[(v+(r*24|0)&p)>>2]|0,g)|0)){t=r;break a}if((t|0)<(u|0))r=t;else break}}else t=0;while(0);if((t|0)==(w<<16>>16|0)){R=23;break}if(N){if((c[(B&p)>>2]&524288|0)!=0?(P=c[(A&p)+16>>2]|0,(P|0)!=0):0){x=P;r=0;do{w=c[(x&p)+20>>2]|0;if((w|0)>0){v=0;do{r=(c[(x+(v<<3)&p)+36>>2]|0)==(t|0)?10280:r;v=v+1|0}while((v|0)<(w|0))}x=c[(x&p)+4>>2]|0}while((x|0)!=0)}else r=0;v=c[(A&p)+8>>2]|0;if(v)do{u=b[(v&o)+46>>1]|0;if(u<<16>>16){y=c[(v&p)+4>>2]|0;w=u&65535;x=0;do{r=(b[(y+(x<<1)&o)>>1]|0)==(t|0)?10296:r;x=x+1|0}while((x|0)<(w|0))}v=c[(v&p)+20>>2]|0}while((v|0)!=0);if(r){R=36;break}}y=vh(s)|0;c[(l&p)>>2]=y;if(y){x=c[(A&p)+68>>2]|0;b:do if(x){w=c[(K&p)>>2]|0;if((w|0)>0){v=c[(L&p)>>2]|0;r=0;while(1){u=r+1|0;if((c[(v+(r<<4)&p)+12>>2]|0)==(x|0)){u=r;break b}if((u|0)<(w|0))r=u;else break}}else u=0}else u=-1e6;while(0);r=c[(x&p)+4>>2]|0;xh(y,wh(y,4,u,O,c[(x&p)>>2]|0)|0,r,-14);r=y+4|0;v=c[(r&p)>>2]|0;w=y+32|0;if(v)a[(v+(((c[(w&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=1;yh(y,10,10120)|0;v=y+96|0;c[(v&p)>>2]=c[(v&p)>>2]|1<>2]|0)>>>0>1){x=c[(r&p)>>2]|0;c[(x&p)+24>>2]=u;v=A+32|0;c[(x&p)+28>>2]=c[(v&p)>>2];c[((c[(r&p)>>2]|0)&p)+32>>2]=O}else v=A+32|0;xh(y,1,c[(A&p)>>2]|0,0);zh(y,F);if((c[(w&p)>>2]|0)>>>0>G>>>0){c[((c[(r&p)>>2]|0)+(G*20|0)&p)+8>>2]=c[(v&p)>>2];c[((c[(r&p)>>2]|0)+(G*20|0)&p)+12>>2]=u}xh(y,G,(b[(z&o)>>1]|0)+1|0,-14);if((c[(w&p)>>2]|0)>>>0>6)c[((c[(r&p)>>2]|0)&p)+128>>2]=b[(z&o)>>1];if(!(a[(E&n)>>0]|0)){c[(H&p)>>2]=1;c[(I&p)>>2]=1;c[(J&p)>>2]=1;Ah(y,s)}}c[(Q&p)>>2]=O;c[(C&p)>>2]=t;c[(D&p)>>2]=d;if(a[(E&n)>>0]|0){R=57;break}re(c[(l&p)>>2]|0,1,h,k)|0;q=Bh(Q,h,k,T)|0;if(!((M|0)<50&(q|0)==17)){R=57;break}r=c[(T&p)>>2]|0;M=M+1|0;q=17}if((R|0)==11){c[(S&p)>>2]=f;th(s,10160,S)}else if((R|0)==13){c[(S&p)>>2]=f;th(s,10192,S)}else if((R|0)==17){c[(S&p)>>2]=f;th(s,10232,S)}else if((R|0)==23){mg(d,0);c[(S&p)>>2]=g;c[(T&p)>>2]=uh(d,10256,S)|0;q=1;R=62;break}else if((R|0)==36){mg(d,0);c[(S&p)>>2]=r;c[(T&p)>>2]=uh(d,10304,S)|0;q=1;R=62;break}else if((R|0)==57)if(!q){q=1;r=s;R=58;break}else{r=s;R=61;break}r=s+4|0;if(!(c[(r&p)>>2]|0)){q=1;R=62}else{mg(d,0);c[(T&p)>>2]=c[(r&p)>>2];c[(r&p)>>2]=0;q=1;R=62}}else{q=1;r=s;R=58}}else{q=0;r=0;R=58}while(0);do if((R|0)==58)if(a[(d&n)+65>>0]|0)if(q){q=0;R=61;break}else{q=0;R=64;break}else{c[(m&p)>>2]=Q;q=0;break}while(0);if((R|0)==61){l=Q+20|0;s=r;R=62}if((R|0)==62){r=c[(l&p)>>2]|0;if(!r){r=s;R=64}else{Ng(r)|0;r=s;R=64}}if((R|0)==64)mg(d,Q);K=c[(T&p)>>2]|0;c[(S&p)>>2]=K;ug(d,q,(K|0)!=0?10344:0,S);mg(d,K);Ch(r);mg(d,r);K=Og(d,q)|0;i=U;return K|0}function Je(a){a=a|0;var b=0,d=0;if(!a)a=0;else{d=c[(a&p)+24>>2]|0;b=md(c[(a&p)+20>>2]|0)|0;mg(d,a);a=b}return a|0}function Ke(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return Eh(a,b,c,d,18)|0}function Le(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return Eh(a,b,c,d,19)|0}function Me(a){a=a|0;if((a|0)!=0?(c[(a&p)+20>>2]|0)!=0:0)a=c[(a&p)+4>>2]|0;else a=0;return a|0}function Ne(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0;h=i;i=i+16|0;if((i|0)>=(j|0))fa();e=h;f=h+8|0;if(!a){c[(e&p)>>2]=77720;c[(e&p)+4>>2]=10788;bd(21,13648,e);b=21}else{g=c[(a&p)+24>>2]|0;if(c[(a&p)+20>>2]|0){b=Bh(a,b,d,f)|0;if(!b)b=0;else{d=c[(f&p)>>2]|0;c[(e&p)>>2]=d;ug(g,b,(d|0)!=0?10344:0,e);mg(g,d)}}else b=4;b=Og(g,b)|0}i=h;return b|0}function Oe(a,d,e){a=a|0;d=d|0;e=e|0;c[(a&p)+284>>2]=d;c[(a&p)+288>>2]=e;a=c[(a&p)+4>>2]|0;if(a)do{e=a+88|0;b[(e&o)>>1]=b[(e&o)>>1]|8;a=c[(a&p)+52>>2]|0}while((a|0)!=0);return 0}function Pe(a,b){a=a|0;b=b|0;return (Gh(a,b,10352,0)|0)==0|0}function Qe(e,f,g,h,k){e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;var l=0,m=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;E=i;i=i+16|0;if((i|0)>=(j|0))fa();m=E;A=E+12|0;B=E+8|0;c[(B&p)>>2]=0;do if(Hh(e)|0){l=(f|0)==0?10360:f;C=e+52|0;c[(C&p)>>2]=0;D=e+236|0;m=c[(D&p)>>2]|0;do if(m){f=m+8|0;if(!(b[(f&o)>>1]&9312)){b[(f&o)>>1]=1;break}else{vg(m);break}}while(0);x=(g|0)==0;y=e+24|0;m=0;a:while(1){do{if(m){q=39;break a}if(!(a[(l&n)>>0]|0)){m=0;q=39;break a}c[(B&p)>>2]=0;m=ih(e,l,-1,1,0,B,A)|0}while((m|0)!=0);l=c[(B&p)>>2]|0;if(!l){l=c[(A&p)>>2]|0;m=0;continue}w=b[(l&o)+84>>1]|0;u=w&65535;v=u<<3|1;w=w<<16>>16==0;f=0;q=0;r=0;b:do{m=Sd(l)|0;do if(!x){s=(m|0)==100;if(!s){if((m|0)!=101|(r|0)!=0)break b;if(!(c[(y&p)>>2]&256)){r=0;break}}if(!r){f=mh(e,v,0)|0;if(!f){f=0;q=40;break a}fw(f|0,0,v|0)|0;if(w)t=1;else{r=0;do{c[(f+(r<<2)&p)>>2]=je(l,r)|0;r=r+1|0}while((r|0)<(u|0));t=1}}else t=r;c:do if(s){q=f+(u<<2)|0;if(!w){r=0;while(1){s=fe(l,r)|0;c[(f+(r+u<<2)&p)>>2]=s;if((s|0)==0?(z=c[(B&p)>>2]|0,(ie(z,r)|0)!=5):0){m=z;q=27;break a}r=r+1|0;if((r|0)>=(u|0))break c;l=c[(B&p)>>2]|0}}}while(0);if(!(pc[g&31](h,u,q,f)|0))r=t;else{l=f;q=31;break a}}while(0);l=c[(B&p)>>2]|0}while((m|0)==100);m=Ng(l)|0;c[(B&p)>>2]=0;l=c[(A&p)>>2]|0;while(1)if(!(a[((d[(l&n)>>0]|0)&n)+10368>>0]&1))break;else l=l+1|0;mg(e,f)}do if((q|0)==27){a[(e&n)+65>>0]=1;l=m;m=100;q=40}else if((q|0)==31){Ng(c[(B&p)>>2]|0)|0;c[(B&p)>>2]=0;c[(C&p)>>2]=4;m=c[(D&p)>>2]|0;if(m){f=m+8|0;if(!(b[(f&o)>>1]&9312)){b[(f&o)>>1]=1;f=l;m=4;break}else{vg(m);f=l;m=4;break}}else{f=l;m=4}}else if((q|0)==39){l=c[(B&p)>>2]|0;f=0;q=40}while(0);if((q|0)==40)if(l)Ng(l)|0;mg(e,f);l=Og(e,m)|0;f=(k|0)!=0;if(!((l|0)!=0&f)){if(!f)break;c[(k&p)>>2]=0;break}f=Se(e)|0;if(!f)f=1;else{m=f;while(1)if(!(a[(m&n)>>0]|0))break;else m=m+1|0;f=(m-f&1073741823)+1|0}m=qg(f,((f|0)<0)<<31>>31)|0;c[(k&p)>>2]=m;if(m){kw(m|0,Se(e)|0,f|0)|0;break}c[(C&p)>>2]=7;l=c[(D&p)>>2]|0;if(l){f=l+8|0;if(!(b[(f&o)>>1]&9312)){b[(f&o)>>1]=1;l=7;break}else{vg(l);l=7;break}}else l=7}else{c[(m&p)>>2]=101334;c[(m&p)+4>>2]=10788;bd(21,13648,m);l=21}while(0);i=E;return l|0}function Re(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;return ih(a,b,c,1,0,d,e)|0}function Se(b){b=b|0;var d=0,e=0,f=0;e=i;i=i+16|0;if((i|0)>=(j|0))fa();d=e;do if(b){f=c[(b&p)+76>>2]|0;if(!((f|0)==1266094736|(f|0)==-1607883113|(f|0)==-264537850)){c[(d&p)>>2]=15248;bd(21,15256,d);c[(d&p)>>2]=129635;c[(d&p)+4>>2]=10788;bd(21,13648,d);d=16120;break}if(!(a[(b&n)+65>>0]|0)){d=Sg(c[(b&p)+236>>2]|0,1)|0;if(!d){d=c[(b&p)+52>>2]|0;if((d|0)!=516){d=d&255;if(d>>>0>26|(d|0)==2)d=16328;else d=c[(d<<2&p)+15488>>2]|0}else d=16344}}else d=15776}else d=15776;while(0);i=e;return d|0}function Te(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,o=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0;w=i;i=i+16|0;if((i|0)>=(j|0))fa();u=w;v=w+8|0;t=c[(b&p)>>2]|0;c[(v&p)>>2]=0;m=(d|0)==0;if(m)g=0;else{l=d;while(1)if(!(a[(l&n)>>0]|0))break;else l=l+1|0;g=l-d&1073741823}r=g+300|0;q=(f|0)!=0;if(q)c[(f&p)>>2]=0;do if(!(c[(b&p)+24>>2]&4194304))if(q){c[(f&p)>>2]=_c(25216,u)|0;g=1}else g=1;else{o=(e|0)!=0?e:41192;k=t+40|0;l=rc[c[(k&p)>>2]&127](t,d)|0;if(!l){c[(u&p)>>2]=d;c[(u&p)+4>>2]=41184;h=_c(27824,u)|0;if(!h){g=7;break}l=rc[c[(k&p)>>2]&127](t,h)|0;Wc(h);if(!l){if(!q){g=1;break}l=Tc(r)|0;c[(v&p)>>2]=l;c[(f&p)>>2]=l;if(!l){g=1;break}c[(u&p)>>2]=d;ad(r,l,41216,u)|0;mc[c[(t&p)+44>>2]&63](t,g+299|0,l);g=1;break}else s=l}else s=l;g=t+48|0;l=ac[c[(g&p)>>2]&63](t,s,o)|0;if((l|0)==0&(e|0)==0){if(m)l=0;else{l=d;while(1)if(!(a[(l&n)>>0]|0))break;else l=l+1|0;l=l-d&1073741823}e=Tc(l+30|0)|0;if(!e){jc[c[(t&p)+52>>2]&15](t,s);g=7;break}o=e;m=o;a[(m&n)>>0]=115;a[(m&n)+1>>0]=113;a[(m&n)+2>>0]=108;a[(m&n)+3>>0]=105;o=o+4|0;a[(o&n)>>0]=116;a[(o&n)+1>>0]=101;a[(o&n)+2>>0]=51;a[(o&n)+3>>0]=95;while(1){k=l+-1|0;if((l|0)<=0)break;if((a[(d+k&n)>>0]|0)==47)break;else l=k}h=(Fc(d+l|0,41256,3)|0)==0;k=8;h=h?l+3|0:l;while(1){l=a[(d+h&n)>>0]|0;if(l<<24>>24==0|l<<24>>24==46){l=k;break}if(!(a[(l&255&n)+10368>>0]&2))l=k;else{a[(e+k&n)>>0]=a[(l<<24>>24&n)+9328>>0]|0;l=k+1|0}k=l;h=h+1|0}l=e+l|0;a[(l&n)>>0]=a[41264]|0;a[(l&n)+1>>0]=a[41265]|0;a[(l&n)+2>>0]=a[41266]|0;a[(l&n)+3>>0]=a[41267]|0;a[(l&n)+4>>0]=a[41268]|0;a[(l&n)+5>>0]=a[41269]|0;l=ac[c[(g&p)>>2]&63](t,s,e)|0;g=e;h=e}else{g=0;h=o}if(!l){if(q){if(!h)l=0;else{l=h;while(1)if(!(a[(l&n)>>0]|0))break;else l=l+1|0;l=l-h&1073741823}l=l+r|0;k=Tc(l)|0;c[(v&p)>>2]=k;c[(f&p)>>2]=k;if(k){c[(u&p)>>2]=h;c[(u&p)+4>>2]=d;ad(l,k,41272,u)|0;mc[c[(t&p)+44>>2]&63](t,l+-1|0,k)}}jc[c[(t&p)+52>>2]&15](t,s);Wc(g);g=1;break}Wc(g);if(ac[l&63](b,v,13776)|0){if(q){c[(u&p)>>2]=c[(v&p)>>2];c[(f&p)>>2]=_c(41320,u)|0}Wc(c[(v&p)>>2]|0);jc[c[(t&p)+52>>2]&15](t,s);g=1;break}k=b+168|0;g=(c[(k&p)>>2]<<2)+4|0;l=mh(b,g,0)|0;if(!l)g=7;else{fw(l|0,0,g|0)|0;g=c[(k&p)>>2]|0;h=b+172|0;if((g|0)>0)kw(l|0,c[(h&p)>>2]|0,g<<2|0)|0;mg(b,c[(h&p)>>2]|0);c[(h&p)>>2]=l;g=c[(k&p)>>2]|0;c[(k&p)>>2]=g+1;c[(l+(g<<2)&p)>>2]=s;g=0}}while(0);s=Og(b,g)|0;i=w;return s|0}function Ue(a){a=a|0;var b=0,d=0,e=0,f=0;b=Lc()|0;if(!b){f=c[2656]|0;a:do if((f|0)>0){d=c[2658]|0;e=0;while(1){b=e+1|0;if((c[(d+(e<<2)&p)>>2]|0)==(a|0)){b=e;break a}if((b|0)<(f|0))e=b;else break}}else b=0;while(0);if((b|0)==(f|0)){b=Xc(c[2658]|0,(f<<2)+4|0)|0;if(!b)b=7;else{c[2658]=b;d=c[2656]|0;c[(b+(d<<2)&p)>>2]=a;c[2656]=d+1;b=0}}else b=0}return b|0}function Ve(a){a=a|0;var b=0,d=0,e=0,f=0,g=0;e=c[2656]|0;f=c[2658]|0;d=e;while(1){if((d|0)<=0){b=0;break}d=d+-1|0;b=f+(d<<2)|0;if((c[(b&p)>>2]|0)==(a|0)){g=4;break}}if((g|0)==4){d=e+-1|0;c[2656]=d;c[(b&p)>>2]=c[(f+(d<<2)&p)>>2];b=1}return b|0}function We(){if(!(Lc()|0)){Wc(c[2658]|0);c[2658]=0;c[2656]=0}return}function Xe(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;return ih(a,b,c,0,0,d,e)|0}function Ye(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;return Ih(a,b,c,0,d,e)|0}function Ze(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;return Ih(a,b,c,1,d,e)|0}function _e(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,k=0,l=0,m=0,n=0,o=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0;w=i;i=i+32|0;if((i|0)>=(j|0))fa();n=w;r=w+4|0;c[(d&p)>>2]=0;s=(f|0)!=0;if(s)c[(f&p)>>2]=0;t=(e|0)!=0;if(t)c[(e&p)>>2]=0;l=(g|0)!=0;if(l)c[(g&p)>>2]=0;m=r+4|0;c[(m&p)>>2]=0;u=r+12|0;c[(u&p)>>2]=0;v=r+16|0;c[(v&p)>>2]=0;k=r+20|0;c[(k&p)>>2]=1;o=r+8|0;c[(o&p)>>2]=20;q=r+24|0;c[(q&p)>>2]=0;h=Tc(80)|0;c[(r&p)>>2]=h;a:do if(h){c[(h&p)>>2]=0;b=Qe(a,b,20,r,g)|0;c[(c[(r&p)>>2]&p)>>2]=c[(k&p)>>2];if((b&255|0)==4){$e((c[(r&p)>>2]|0)+4|0);b=c[(m&p)>>2]|0;if(b){if(l){Wc(c[(g&p)>>2]|0);c[(n&p)>>2]=c[(m&p)>>2];c[(g&p)>>2]=_c(10344,n)|0;b=c[(m&p)>>2]|0}Wc(b)}b=c[(q&p)>>2]|0;c[(a&p)+52>>2]=b;break}Wc(c[(m&p)>>2]|0);if(b){$e((c[(r&p)>>2]|0)+4|0);break}h=c[(k&p)>>2]|0;b=c[(r&p)>>2]|0;do if((c[(o&p)>>2]|0)>>>0>h>>>0){b=Xc(b,h<<2)|0;if(!b){$e((c[(r&p)>>2]|0)+4|0);c[(a&p)+52>>2]=7;b=7;break a}else{c[(r&p)>>2]=b;break}}while(0);c[(d&p)>>2]=b+4;if(s)c[(f&p)>>2]=c[(v&p)>>2];if(t){c[(e&p)>>2]=c[(u&p)>>2];b=0}else b=0}else{c[(a&p)+52>>2]=7;b=7}while(0);i=w;return b|0}function $e(a){a=a|0;var b=0,d=0,e=0,f=0;if(a){b=a+-4|0;e=c[(b&p)>>2]|0;d=e;if((e|0)>1){f=1;do{e=c[(a+(f+-1<<2)&p)>>2]|0;if(e)Wc(e);f=f+1|0}while((f|0)<(d|0))}Wc(b)}return}function af(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return Kh(a,b,c,d,0)|0}function bf(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;return Kh(a,b,c,d,e)|0}function cf(d,e){d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,q=0,r=0,s=0;s=i;i=i+16|0;if((i|0)>=(j|0))fa();r=s;g=s+8|0;c[(g&p)>>2]=0;h=d+324|0;f=c[(h&p)>>2]|0;if((f|0)!=0?(m=c[(f&p)+4>>2]|0,(m|0)!=0):0){q=mh(d,536,0)|0;if(!q)e=7;else{fw(q|0,0,536)|0;k=q+451|0;a[(k&n)>>0]=1;c[(q&p)>>2]=d;c[(q&p)+424>>2]=1;if(((((Lh(q,e,g)|0)==0?(l=c[(q&p)+484>>2]|0,(l|0)!=0):0)?(a[(d&n)+65>>0]|0)==0:0)?(c[(l&p)+12>>2]|0)==0:0)?(a[(l&n)+44>>0]&16)==0:0){f=m+4|0;if(!(c[(f&p)>>2]|0)){r=l+4|0;c[(f&p)>>2]=c[(r&p)>>2];l=l+38|0;b[(m&o)+38>>1]=b[(l&o)>>1]|0;b[(l&o)>>1]=0;c[(r&p)>>2]=0}c[((c[(h&p)>>2]|0)&p)+4>>2]=0;e=0}else{e=c[(g&p)>>2]|0;c[(r&p)>>2]=e;ug(d,1,(e|0)!=0?10344:0,r);mg(d,e);e=1}a[(k&n)>>0]=0;f=c[(q&p)+8>>2]|0;if(f)Ng(f)|0;kg(d,c[(q&p)+484>>2]|0);Ch(q);mg(d,q)}e=Og(d,e)|0}else{c[(d&p)+52>>2]=21;f=c[(d&p)+236>>2]|0;do if(f){e=f+8|0;if(!(b[(e&o)>>1]&9312)){b[(e&o)>>1]=1;break}else{vg(f);break}}while(0);c[(r&p)>>2]=114865;c[(r&p)+4>>2]=10788;bd(21,13648,r);e=21}i=s;return e|0}function df(a){a=a|0;return d[((d[(a&n)+69>>0]|0)+-1&n)+10640>>0]|0|0}function ef(d,e,f){d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0;l=i;i=i+32|0;if((i|0)>=(j|0))fa();h=l;g=l+8|0;c[(g&p)>>2]=f;do if((e|0)==1){e=c[(d&p)+324>>2]|0;if(!e){c[(h&p)>>2]=115248;c[(h&p)+4>>2]=10788;bd(21,13648,h);k=6;break}else{d=c[(g&p)>>2]|0;f=c[(d&p)>>2]|0;c[(g&p)>>2]=d+4;a[((c[(e&p)>>2]|0)&n)+16>>0]=f;e=0;break}}else{c[(h&p)>>2]=115256;c[(h&p)+4>>2]=10788;bd(21,13648,h);k=6}while(0);do if((k|0)==6){c[(d&p)+52>>2]=21;e=c[(d&p)+236>>2]|0;if(e){f=e+8|0;if(!(b[(f&o)>>1]&9312)){b[(f&o)>>1]=1;e=21;break}else{vg(e);e=21;break}}else e=21}while(0);i=l;return e|0}function ff(b){b=b|0;var c=0,e=0,f=0,g=0,h=0;c=a[(b&n)>>0]|0;a:do if(c<<24>>24){g=c;c=0;b:while(1){f=g<<24>>24;switch(f|0){case 45:{if((a[(b&n)+1>>0]|0)==45){e=g;while(1){f=e<<24>>24==0;g=b+1|0;if(!(e<<24>>24!=10&(f^1)))break;b=g;e=a[(g&n)>>0]|0}if(f){h=13;break b}else e=1}else e=2;break}case 59:{e=0;break}case 91:{do{b=b+1|0;f=a[(b&n)>>0]|0;e=f<<24>>24==0}while(f<<24>>24!=93&(e^1));if(e){c=0;break a}else e=2;break}case 39:case 34:case 96:{do{b=b+1|0;f=a[(b&n)>>0]|0;e=f<<24>>24==0}while(f<<24>>24!=g<<24>>24&(e^1));if(e){c=0;break a}else e=2;break}case 47:{if((a[(b&n)+1>>0]|0)==42){b=b+2|0;while(1){e=a[(b&n)>>0]|0;if(e<<24>>24==42){b=b+1|0;if((a[(b&n)>>0]|0)==47){e=1;break}else continue}else if(!(e<<24>>24)){c=0;break a}else{b=b+1|0;continue}}}else e=2;break}case 12:case 10:case 9:case 13:case 32:{e=1;break}default:if(!(a[(g&255&n)+10368>>0]&70))e=2;else{e=1;while(1)if(!(a[((d[(b+e&n)>>0]|0)&n)+10368>>0]&70)){g=e;break}else e=e+1|0;c:do switch(f|0){case 67:case 99:{if((g|0)==6?(Fc(b,10712,6)|0)==0:0){e=4;break c}e=2;break}case 69:case 101:{if((g|0)==3){if(!(Fc(b,10752,3)|0)){e=7;break c}}else if((g|0)==7?(Fc(b,10760,7)|0)==0:0){e=3;break c}e=2;break}case 84:case 116:{if((g|0)==7){if(!(Fc(b,10720,7)|0)){e=6;break c}}else if((g|0)==4){if(!(Fc(b,10728,4)|0)){e=5;break c}}else if((g|0)==9?(Fc(b,10736,9)|0)==0:0){e=5;break c}e=2;break}default:e=2}while(0);b=b+(g+-1)|0}}c=a[((e&255)+((c&255)<<3)&n)+10648>>0]|0;b=b+1|0;g=a[(b&n)>>0]|0;if(!(g<<24>>24)){h=35;break}}if((h|0)==13){c=c<<24>>24==1&1;break}else if((h|0)==35){c=c<<24>>24==1;h=36;break}}else{c=0;h=36}while(0);if((h|0)==36)c=c&1;return c|0}function gf(d){d=d|0;var e=0,f=0,g=0;e=Lc()|0;if(!e){f=qg(40,0)|0;if(f){e=f+0|0;g=e+40|0;do{a[(e&n)>>0]=0;e=e+1|0}while((e|0)<(g|0));b[(f&o)+8>>1]=1;c[(f&p)+32>>2]=0;Xg(f,d,-1,2,0)|0}e=Sg(f,1)|0;if(!e)e=7;else e=(ff(e)|0)&255;Mh(f)}return e|0}function hf(){return 8632}function jf(){return 10768}function kf(){return 3008009}function lf(){return 0}function mf(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;f=i;i=i+32|0;if((i|0)>=(j|0))fa();d=f;e=f+8|0;if(!(c[2243]|0)){c[(e&p)>>2]=b;do switch(a|0){case 22:{c[(e&p)>>2]=(c[(e&p)>>2]|0)+8;c[(e&p)>>2]=(c[(e&p)>>2]|0)+8;c[2230]=0;c[2231]=0;c[2232]=0;c[2233]=0;d=0;break}case 25:{a=c[(e&p)>>2]|0;d=c[(a&p)>>2]|0;c[(e&p)>>2]=a+4;c[2242]=d;d=0;break}case 19:{if(!(c[2214]|0)){c[(d&p)>>2]=16440;mf(18,d)|0}a=c[(e&p)>>2]|0;d=c[(a&p)>>2]|0;c[(e&p)>>2]=a+4;d=d+0|0;a=8848|0;e=d+52|0;do{c[(d&p)>>2]=c[(a&p)>>2];d=d+4|0;a=a+4|0}while((d|0)<(e|0));d=0;break}case 18:{d=c[(e&p)>>2]|0;a=c[(d&p)>>2]|0;c[(e&p)>>2]=d+4;d=8848|0;a=a+0|0;e=d+52|0;do{c[(d&p)>>2]=c[(a&p)>>2];d=d+4|0;a=a+4|0}while((d|0)<(e|0));d=0;break}case 20:{a=c[(e&p)>>2]|0;d=c[(a&p)>>2]|0;c[(e&p)>>2]=a+4;c[2190]=d;d=0;break}case 13:{d=c[(e&p)>>2]|0;a=c[(d&p)>>2]|0;c[(e&p)>>2]=d+4;c[2193]=a;a=c[(e&p)>>2]|0;d=c[(a&p)>>2]|0;c[(e&p)>>2]=a+4;c[2194]=d;d=0;break}case 17:{a=c[(e&p)>>2]|0;d=c[(a&p)>>2]|0;c[(e&p)>>2]=a+4;c[2189]=d;d=0;break}case 15:{d=1;break}case 6:{a=c[(e&p)>>2]|0;d=c[(a&p)>>2]|0;c[(e&p)>>2]=a+4;c[2234]=d;d=c[(e&p)>>2]|0;a=c[(d&p)>>2]|0;c[(e&p)>>2]=d+4;c[2235]=a;a=c[(e&p)>>2]|0;d=c[(a&p)>>2]|0;c[(e&p)>>2]=a+4;c[2236]=d;d=0;break}case 24:{a=c[(e&p)>>2]|0;d=c[(a&p)>>2]|0;c[(e&p)>>2]=a+4;c[(d&p)>>2]=152;d=0;break}case 9:{a=c[(e&p)>>2]|0;d=c[(a&p)>>2]|0;c[(e&p)>>2]=a+4;c[2186]=d;d=0;break}case 7:{a=c[(e&p)>>2]|0;d=c[(a&p)>>2]|0;c[(e&p)>>2]=a+4;c[2237]=d;d=c[(e&p)>>2]|0;a=c[(d&p)>>2]|0;c[(e&p)>>2]=d+4;c[2238]=a;a=c[(e&p)>>2]|0;d=c[(a&p)>>2]|0;c[(e&p)>>2]=a+4;c[2239]=d;d=0;break}case 4:{a=c[(e&p)>>2]|0;d=c[(a&p)>>2]|0;c[(e&p)>>2]=a+4;c[2195]=c[(d&p)>>2];c[2196]=c[(d&p)+4>>2];c[2197]=c[(d&p)+8>>2];c[2198]=c[(d&p)+12>>2];c[2199]=c[(d&p)+16>>2];c[2200]=c[(d&p)+20>>2];c[2201]=c[(d&p)+24>>2];c[2202]=c[(d&p)+28>>2];d=0;break}case 16:{d=c[(e&p)>>2]|0;a=c[(d&p)>>2]|0;c[(e&p)>>2]=d+4;c[2250]=a;a=c[(e&p)>>2]|0;d=c[(a&p)>>2]|0;c[(e&p)>>2]=a+4;c[2251]=d;d=0;break}case 5:{if(!(c[2195]|0)){c[(d&p)>>2]=16496;mf(4,d)|0}a=c[(e&p)>>2]|0;d=c[(a&p)>>2]|0;c[(e&p)>>2]=a+4;c[(d&p)>>2]=c[2195];c[(d&p)+4>>2]=c[2196];c[(d&p)+8>>2]=c[2197];c[(d&p)+12>>2]=c[2198];c[(d&p)+16>>2]=c[2199];c[(d&p)+20>>2]=c[2200];c[(d&p)+24>>2]=c[2201];c[(d&p)+28>>2]=c[2202];d=0;break}case 14:{d=0;break}default:d=1}while(0)}else{c[(d&p)>>2]=127883;c[(d&p)+4>>2]=10788;bd(21,13648,d);d=21}i=f;return d|0}function nf(a){a=a|0;return c[(a&p)+12>>2]|0}function of(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0;h=a+20|0;b=c[(h&p)>>2]|0;f=(b|0)>0;if(f){e=c[(a&p)+16>>2]|0;g=0;do{d=c[(e+(g<<4)&p)+4>>2]|0;if(d)c[((c[(d&p)+4>>2]|0)&p)+4>>2]=c[(d&p)>>2];g=g+1|0}while((g|0)!=(b|0));if(f){f=a+16|0;e=0;do{d=c[((c[(f&p)>>2]|0)+(e<<4)&p)+4>>2]|0;if(d){cc[c[8896>>2]&31](c[((c[((c[(c[(d&p)+4>>2]&p)>>2]|0)&p)+204>>2]|0)&p)+40>>2]|0);b=c[(h&p)>>2]|0}e=e+1|0}while((e|0)<(b|0))}}return 0}function pf(a,d,e){a=a|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0;l=i;i=i+16|0;if((i|0)>=(j|0))fa();h=l;c[(h&p)>>2]=e;a:do if((d|0)!=1001){e=0;while(1){if((c[(e<<3&p)+10936>>2]|0)==(d|0))break;e=e+1|0;if(e>>>0>=2){f=1;break a}}g=c[(h&p)>>2]|0;d=c[(g&p)>>2]|0;c[(h&p)>>2]=g+4;g=c[(h&p)>>2]|0;k=c[(g&p)>>2]|0;c[(h&p)>>2]=g+4;h=a+24|0;g=c[(h&p)>>2]|0;if((d|0)<=0)if(!d){d=g&~c[(e<<3&p)+10940>>2];c[(h&p)>>2]=d}else d=g;else{d=c[(e<<3&p)+10940>>2]|g;c[(h&p)>>2]=d}if((g|0)!=(d|0)?(f=c[(a&p)+4>>2]|0,(f|0)!=0):0)do{d=f+88|0;b[(d&o)>>1]=b[(d&o)>>1]|8;f=c[(f&p)+52>>2]|0}while((f|0)!=0);if(!k)f=0;else{c[(k&p)>>2]=(c[(e<<3&p)+10940>>2]&c[(h&p)>>2]|0)!=0&1;f=0}}else{g=c[(h&p)>>2]|0;d=c[(g&p)>>2]|0;c[(h&p)>>2]=g+4;g=c[(h&p)>>2]|0;e=c[(g&p)>>2]|0;c[(h&p)>>2]=g+4;g=c[(h&p)>>2]|0;f=c[(g&p)>>2]|0;c[(h&p)>>2]=g+4;f=Nh(a,d,e,f)|0}while(0);i=l;return f|0}function qf(a){a=a|0;a=a+32|0;G=c[(a&p)+4>>2]|0;return c[(a&p)>>2]|0}function rf(a){a=a|0;return c[(a&p)+80>>2]|0}function sf(a){a=a|0;return c[(a&p)+84>>2]|0}function tf(a){a=a|0;return Oh(a,0)|0}function uf(a){a=a|0;return Oh(a,1)|0}function vf(a,b,d){a=a|0;b=b|0;d=d|0;c[(a&p)+444>>2]=b;c[(a&p)+448>>2]=d;c[(a&p)+452>>2]=0;c[(a&p)+492>>2]=0;return 0}function wf(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0;f=(b|0)>0;c[(a&p)+292>>2]=f?d:0;c[(a&p)+300>>2]=f?b:0;c[(a&p)+296>>2]=f?e:0;return}function xf(a,b){a=a|0;b=b|0;var d=0;d=(b|0)>0;c[(a&p)+444>>2]=d?74:0;c[(a&p)+448>>2]=d?a:0;c[(a&p)+452>>2]=0;c[(a&p)+492>>2]=d?b:0;return 0}function yf(a){a=a|0;c[(a&p)+240>>2]=1;return}function zf(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 Og(a,Qh(a,b,c,d,e,f,g,h,0)|0)|0}function Af(b,d,e,f,g,h,i,j,k){b=b|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;var l=0,m=0,o=0;do if(k){l=mh(b,12,0)|0;if(!l){cc[k&31](g);f=1;break}m=l;o=m;a[(o&n)>>0]=0;a[(o&n)+1>>0]=0;a[(o&n)+2>>0]=0;a[(o&n)+3>>0]=0;m=m+4|0;a[(m&n)>>0]=0;a[(m&n)+1>>0]=0;a[(m&n)+2>>0]=0;a[(m&n)+3>>0]=0;c[(l&p)+4>>2]=k;c[(l&p)+8>>2]=g;f=Qh(b,d,e,f,g,h,i,j,l)|0;if(!(c[(l&p)>>2]|0)){cc[k&31](g);mg(b,l)}}else f=Qh(b,d,e,f,g,h,i,j,0)|0;while(0);return Og(b,f)|0}function Bf(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;b=Rh(a,b,-1)|0;d=Qh(a,b,c,d,e,f,g,h,0)|0;mg(a,b);return Og(a,d)|0}function Cf(b,c,d){b=b|0;c=c|0;d=d|0;var e=0;if(!c)e=0;else{e=c;while(1)if(!(a[(e&n)>>0]|0))break;else e=e+1|0;e=e-c&1073741823}if(!(Sh(b,c,e,d,1,0)|0))e=Qh(b,c,d,1,0,57,0,0,0)|0;else e=0;return Og(b,e)|0}function Df(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;f=a+180|0;e=c[(f&p)>>2]|0;c[(a&p)+176>>2]=b;c[(f&p)>>2]=d;return e|0}function Ef(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;f=a+188|0;e=c[(f&p)>>2]|0;c[(a&p)+184>>2]=b;c[(f&p)>>2]=d;return e|0}function Ff(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;f=a+192|0;e=c[(f&p)>>2]|0;c[(a&p)+196>>2]=b;c[(f&p)>>2]=d;return e|0}function Gf(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;f=a+208|0;e=c[(f&p)>>2]|0;c[(a&p)+212>>2]=b;c[(f&p)>>2]=d;return e|0}function Hf(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;f=a+200|0;e=c[(f&p)>>2]|0;c[(a&p)+204>>2]=b;c[(f&p)>>2]=d;return e|0}function If(a,b){a=a|0;b=b|0;var d=0;if((b|0)>0)d=21;else{b=0;d=0}c[(a&p)+216>>2]=d;c[(a&p)+220>>2]=b;return 0}function Jf(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;f=a+220|0;e=c[(f&p)>>2]|0;c[(a&p)+216>>2]=b;c[(f&p)>>2]=d;return e|0}function Kf(d,e,f,g,h){d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var k=0,l=0,m=0,q=0;q=i;i=i+16|0;if((i|0)>=(j|0))fa();k=q;if(g)c[(g&p)>>2]=-1;if(h)c[(h&p)>>2]=-1;if(f>>>0>3)e=21;else{if((e|0)!=0?(a[(e&n)>>0]|0)!=0:0){l=Vh(d,e)|0;if((l|0)<0){c[(k&p)>>2]=e;ug(d,1,10952,k);e=1}else m=10}else{l=10;m=10}do if((m|0)==10){c[(d&p)+452>>2]=0;e=Wh(d,l,f,g,h)|0;c[(d&p)+52>>2]=e;k=c[(d&p)+236>>2]|0;if(k){l=k+8|0;if(!(b[(l&o)>>1]&9312)){b[(l&o)>>1]=1;break}else{vg(k);break}}}while(0);e=Og(d,e)|0}i=q;return e|0}function Lf(a,b){a=a|0;b=b|0;return Kf(a,b,0,0,0)|0}function Mf(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,k=0;k=i;i=i+16|0;if((i|0)>=(j|0))fa();g=k;do if(b){d=c[(b&p)+76>>2]|0;if(!((d|0)==1266094736|(d|0)==-1607883113|(d|0)==-264537850)){c[(g&p)>>2]=15248;bd(21,15256,g);d=11008;break}h=b+65|0;if(!(a[(h&n)>>0]|0)){f=b+236|0;d=Sg(c[(f&p)>>2]|0,2)|0;if(!d){e=c[(b&p)+52>>2]|0;if((e|0)!=516){d=e&255;if(d>>>0>26|(d|0)==2)d=16328;else d=c[(d<<2&p)+15488>>2]|0}else d=16344;ug(b,e,d,g);d=Sg(c[(f&p)>>2]|0,2)|0}a[(h&n)>>0]=0}else d=10976}else d=10976;while(0);i=k;return d|0}function Nf(b){b=b|0;var d=0,e=0,f=0;e=i;i=i+16|0;if((i|0)>=(j|0))fa();d=e;do if(b){f=c[(b&p)+76>>2]|0;if(!((f|0)==1266094736|(f|0)==-1607883113|(f|0)==-264537850)){c[(d&p)>>2]=15248;bd(21,15256,d);c[(d&p)>>2]=129704;c[(d&p)+4>>2]=10788;bd(21,13648,d);b=21;break}if(!(a[(b&n)+65>>0]|0))b=c[(b&p)+56>>2]&c[(b&p)+52>>2];else b=7}else b=7;while(0);i=e;return b|0}function Of(b){b=b|0;var d=0,e=0,f=0;e=i;i=i+16|0;if((i|0)>=(j|0))fa();d=e;do if(b){f=c[(b&p)+76>>2]|0;if(!((f|0)==1266094736|(f|0)==-1607883113|(f|0)==-264537850)){c[(d&p)>>2]=15248;bd(21,15256,d);c[(d&p)>>2]=129713;c[(d&p)+4>>2]=10788;bd(21,13648,d);b=21;break}if(!(a[(b&n)+65>>0]|0))b=c[(b&p)+52>>2]|0;else b=7}else b=7;while(0);i=e;return b|0}function Pf(a){a=a|0;if((a|0)!=516){a=a&255;if(a>>>0>26|(a|0)==2)a=16328;else a=c[(a<<2&p)+15488>>2]|0}else a=16344;return a|0}function Qf(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;if(b>>>0<=11){e=a+(b<<2)+88|0;a=c[(e&p)>>2]|0;if((d|0)>-1){b=c[(b<<2&p)+11088>>2]|0;c[(e&p)>>2]=(b|0)<(d|0)?b:d}}else a=-1;return a|0}function Rf(a,b){a=a|0;b=b|0;return Xh(a,b,6,0)|0}function Sf(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return Xh(a,b,c,d)|0}function Tf(d,e){d=d|0;e=e|0;var f=0,g=0,h=0;c[(e&p)>>2]=0;f=Lc()|0;if(!f){h=qg(40,0)|0;if(h){d=(d|0)==0?11136:d;f=h+0|0;g=f+40|0;do{a[(f&n)>>0]=0;f=f+1|0}while((f|0)<(g|0));b[(h&o)+8>>1]=1;c[(h&p)+32>>2]=0;Xg(h,d,-1,2,0)|0}d=Sg(h,1)|0;if(d){f=Xh(d,e,6,0)|0;if(!f){f=c[(e&p)>>2]|0;d=c[((c[(f&p)+16>>2]|0)&p)+12>>2]|0;if(!(b[(d&o)+78>>1]&1)){a[(f&n)+62>>0]=2;a[(d&n)+77>>0]=2;f=0}else f=0}}else f=7;Mh(h);f=f&255}return f|0}function Uf(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;return Og(a,Yh(a,b,c&255,d,e,0)|0)|0}function Vf(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 Og(a,Yh(a,b,c&255,d,e,f)|0)|0}function Wf(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;b=Rh(a,b,-1)|0;if(!b)b=0;else{c=Yh(a,b,c&255,d,e,0)|0;mg(a,b);b=c}return Og(a,b)|0}function Xf(a,b,d){a=a|0;b=b|0;d=d|0;c[(a&p)+224>>2]=d;c[(a&p)+228>>2]=0;c[(a&p)+232>>2]=b;return 0}function Yf(a,b,d){a=a|0;b=b|0;d=d|0;c[(a&p)+224>>2]=0;c[(a&p)+228>>2]=d;c[(a&p)+232>>2]=b;return 0}function Zf(a){a=a|0;return d[(a&n)+63>>0]|0|0}function _f(){return}function $f(d,e,f,g,h,k,l,m,q){d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;m=m|0;q=q|0;var r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0;C=i;i=i+16|0;if((i|0)>=(j|0))fa();A=C;B=C+8|0;c[(B&p)>>2]=0;s=c[(d&p)+20>>2]|0;if((s|0)>0){r=c[(d&p)+16>>2]|0;u=0;do{t=c[(r+(u<<4)&p)+4>>2]|0;if(t)c[((c[(t&p)+4>>2]|0)&p)+4>>2]=c[(t&p)>>2];u=u+1|0}while((u|0)!=(s|0))}r=Zh(d,B)|0;z=(r|0)!=0;a:do if((!z?(x=_h(d,f,e)|0,(x|0)!=0):0)?(c[(x&p)+12>>2]|0)==0:0){do if(g){w=b[(x&o)+38>>1]|0;b:do if(w<<16>>16>0){e=c[(x&p)+4>>2]|0;s=w<<16>>16;v=0;while(1){t=e+(v*24|0)|0;u=v+1|0;if(!(dd(c[(t&p)>>2]|0,g)|0)){u=v;break b}if((u|0)<(s|0))v=u;else break}}else{u=0;t=0}while(0);if((u|0)==(w<<16>>16|0)){if(a[(x&n)+44>>0]&32){e=0;w=0;x=0;t=0;v=0;u=0;break a}if(!($h(g)|0)){e=0;w=0;x=0;t=0;v=0;u=0;break a}y=b[(x&o)+36>>1]|0;s=y<<16>>16;if(y<<16>>16<=-1){e=0;v=0;s=1;y=0;u=11144;break}u=s;t=(c[(x&p)+4>>2]|0)+(s*24|0)|0}if(t){if((b[(x&o)+36>>1]|0)==(u|0))s=(a[(x&n)+44>>0]&8)!=0;else s=0;e=s&1;v=(a[(t&n)+20>>0]|0)!=0&1;s=a[(t&n)+23>>0]&1;y=c[(t&p)+16>>2]|0;u=c[(t&p)+12>>2]|0}else{e=0;v=0;s=1;y=0;u=11144}}else{e=0;v=0;s=1;y=0;u=11144}while(0);w=v;t=s;v=(y|0)==0?11152:y}else{e=0;w=0;x=0;t=0;v=0;u=0}while(0);if(h)c[(h&p)>>2]=u;if(k)c[(k&p)>>2]=v;if(l)c[(l&p)>>2]=w;if(m)c[(m&p)>>2]=t;if(q)c[(q&p)>>2]=e;s=c[(B&p)>>2]|0;if(!(z|(x|0)!=0)){mg(d,s);c[(A&p)>>2]=f;c[(A&p)+4>>2]=g;s=uh(d,11160,A)|0;c[(B&p)>>2]=s;r=1}c[(A&p)>>2]=s;ug(d,r,(s|0)!=0?10344:0,A);mg(d,c[(B&p)>>2]|0);z=Og(d,r)|0;i=C;return z|0}function ag(a){a=a|0;var b=0;if((Lc()|0)==0?(b=c[2254]|0,(b|0)!=0):0)a=(rc[c[(b&p)+60>>2]&127](b,a*1e3|0)|0)/1e3|0;else a=0;return a|0}function bg(a,b){a=a|0;b=b|0;c[(a&p)+56>>2]=(b|0)!=0?-1:255;return 0}function cg(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;b=ai(a,b)|0;do if(b){a=c[(b&p)+4>>2]|0;c[(a&p)+4>>2]=c[(b&p)>>2];a=c[((c[(a&p)>>2]|0)&p)+60>>2]|0;if((d|0)==7){c[(e&p)>>2]=a;b=0;break}b=c[(a&p)>>2]|0;if(!b)b=12;else b=ac[c[(b&p)+40>>2]&63](a,d,e)|0}else b=1;while(0);return b|0}function dg(e,f){e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0,v=0;t=i;i=i+32|0;if((i|0)>=(j|0))fa();s=t+24|0;h=t+8|0;g=t;c[(h&p)>>2]=f;do switch(e|0){case 11:{g=c[2514]|0;s=c[(h&p)>>2]|0;f=c[(s&p)>>2]|0;c[(h&p)>>2]=s+4;if(f)c[2514]=f;break}case 12:{c[(g&p)>>2]=0;g=c[(g&p)>>2]|0;break}case 13:{s=c[(h&p)>>2]|0;g=c[(s&p)>>2]|0;c[(h&p)>>2]=s+4;break}case 22:{g=10;break}case 5:{kw(12672,9064,259)|0;g=0;break}case 7:{if(!(Lc()|0)){a[9064]=0;g=0}else g=0;break}case 8:{r=c[(h&p)>>2]|0;q=c[(r&p)>>2]|0;c[(h&p)>>2]=r+4;r=c[(h&p)>>2]|0;k=c[(r&p)>>2]|0;c[(h&p)>>2]=r+4;r=qg(512,0)|0;g=(r|0)==0;if(!g){fw(r|0,0,512)|0;c[(r&p)>>2]=q}e=((q+7|0)/8|0)+1|0;m=qg(e,((e|0)<0)<<31>>31)|0;f=(m|0)==0;if(!f)fw(m|0,0,e|0)|0;l=Tc(512)|0;a:do if(!(g|f|(l|0)==0)){h=0;while(1){g=c[(k+(h<<2)&p)>>2]|0;if(!g)break;else if((g|0)==5|(g|0)==2|(g|0)==1){f=k+(h+2<<2)|0;u=c[(f&p)>>2]|0;e=u+-1|0;c[(s&p)>>2]=e;c[(f&p)>>2]=(c[(k+(h+3<<2)&p)>>2]|0)+u;f=4}else{cd(4,s);e=c[(s&p)>>2]|0;f=2}v=k+((h|1)<<2)|0;u=(c[(v&p)>>2]|0)+-1|0;c[(v&p)>>2]=u;h=((u|0)>0?0:f)+h|0;e=(e&2147483647|0)%(q|0)|0;c[(s&p)>>2]=e;e=e+1|0;f=1<<(e&7);if(!(g&1)){e=m+(e>>>3)|0;a[(e&n)>>0]=d[(e&n)>>0]&(f^255);ci(r,(c[(s&p)>>2]|0)+1|0,l);continue}e=m+(e>>>3)|0;a[(e&n)>>0]=d[(e&n)>>0]|f;if((g|0)==5)continue;if(bi(r,(c[(s&p)>>2]|0)+1|0)|0){g=-1;break a}}k=di(r,q+1|0)|0;e=di(r,0)|0;e=k-q+e+(c[(r&p)>>2]|0)|0;c[(s&p)>>2]=1;if((q|0)<1)g=e;else{f=1;while(1){k=(d[(m+(f>>3)&n)>>0]&1<<(f&7)|0)!=0&1;g=f;f=f+1|0;if((k|0)!=(di(r,g)|0))break a;c[(s&p)>>2]=f;if((g|0)>=(q|0)){g=e;break}}}}else g=-1;while(0);Wc(l);Wc(m);ei(r);break}case 6:{kw(9064,12672,259)|0;g=0;break}case 23:{g=(c[2243]|0)==0&1;break}case 25:{q=c[(h&p)>>2]|0;g=c[(q&p)>>2]|0;c[(h&p)>>2]=q+4;q=c[(h&p)>>2]|0;r=c[(q&p)>>2]|0;c[(h&p)>>2]=q+4;a[(g&n)+144>>0]=Vh(g,r)|0;r=c[(h&p)>>2]|0;q=c[(r&p)>>2]|0;c[(h&p)>>2]=r+4;q=q&255;a[(g&n)+147>>0]=q;r=g+145|0;a[(r&n)>>0]=q;q=c[(h&p)>>2]|0;s=c[(q&p)>>2]|0;c[(h&p)>>2]=q+4;c[(g&p)+140>>2]=s;if((a[(r&n)>>0]|0)==0&(s|0)>0){Eg(g);g=0}else g=0;break}case 14:{r=c[(h&p)>>2]|0;s=c[(r&p)>>2]|0;c[(h&p)>>2]=r+4;r=c[(h&p)>>2]|0;g=c[(r&p)>>2]|0;c[(h&p)>>2]=r+4;xg(c[((c[(s&p)+16>>2]|0)&p)+4>>2]|0,0,g,0)|0;g=0;break}case 15:{r=c[(h&p)>>2]|0;g=c[(r&p)>>2]|0;c[(h&p)>>2]=r+4;r=c[(h&p)>>2]|0;s=c[(r&p)>>2]|0;c[(h&p)>>2]=r+4;b[(g&o)+60>>1]=s;g=0;break}case 16:{s=c[(h&p)>>2]|0;e=c[(s&p)>>2]|0;c[(h&p)>>2]=s+4;if(!e)g=0;else{g=e;while(1)if(!(a[(g&n)>>0]|0))break;else g=g+1|0;g=g-e&1073741823}g=(fi(e,g)|0)!=27;g=g?124:0;break}case 24:{r=c[(h&p)>>2]|0;g=c[(r&p)>>2]|0;c[(h&p)>>2]=r+4;r=c[(h&p)>>2]|0;s=c[(r&p)>>2]|0;c[(h&p)>>2]=r+4;c[(g&p)+136>>2]=s;g=0;break}case 17:{s=c[(h&p)>>2]|0;f=c[(s&p)>>2]|0;c[(h&p)>>2]=s+4;s=c[(h&p)>>2]|0;g=c[(s&p)>>2]|0;c[(h&p)>>2]=s+4;s=c[(h&p)>>2]|0;e=c[(s&p)>>2]|0;c[(h&p)>>2]=s+4;if(f)c[(g&p)>>2]=gi(f)|0;hi(e);g=0;break}case 18:{s=c[(h&p)>>2]|0;g=c[(s&p)>>2]|0;c[(h&p)>>2]=s+4;c[2253]=g;g=0;break}case 20:{s=c[(h&p)>>2]|0;g=c[(s&p)>>2]|0;c[(h&p)>>2]=s+4;c[2192]=g;g=0;break}case 9:{s=c[(h&p)>>2]|0;g=c[(s&p)>>2]|0;c[(h&p)>>2]=s+4;c[2252]=g;if(!g)g=0;else g=lc[g&127](0)|0;break}case 10:{r=c[(h&p)>>2]|0;s=c[(r&p)>>2]|0;c[(h&p)>>2]=r+4;r=c[(h&p)>>2]|0;g=c[(r&p)>>2]|0;c[(h&p)>>2]=r+4;c[3164]=s;c[3166]=g;g=0;break}default:g=0}while(0);i=t;return g|0}function eg(b,c){b=b|0;c=c|0;var d=0,e=0,f=0,g=0;a:do if(!((b|0)==0|(c|0)==0)){d=b;while(1)if(!(a[(d&n)>>0]|0))break;else d=d+1|0;e=(d-b&1073741823)+1|0;d=a[(b+e&n)>>0]|0;if(d<<24>>24){g=b+e|0;while(1){f=_v(g,c)|0;e=g;while(1){b=e+1|0;if(!(d<<24>>24))break;d=a[(b&n)>>0]|0;e=b}b=e-g&1073741823;d=g+(b+1)|0;if(!f)break a;else e=d;while(1)if(!(a[(e&n)>>0]|0))break;else e=e+1|0;g=g+(b+2+(e-d&1073741823))|0;d=a[(g&n)>>0]|0;if(!(d<<24>>24)){d=0;break}}}else d=0}else d=0;while(0);return d|0}function fg(a,b,c){a=a|0;b=b|0;c=c|0;a=eg(a,b)|0;b=(c|0)!=0;if(a)b=(ii(a,1,b&1)|0)<<24>>24!=0;return b&1|0}function gg(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+16|0;if((i|0)>=(j|0))fa();f=g;a=eg(a,b)|0;if(!a){G=e;i=g;return d|0}else{b=(ji(a,f)|0)==0;a=f;G=b?c[(a&p)+4>>2]|0:e;i=g;return (b?c[(a&p)>>2]|0:d)|0}return 0}function hg(b,d){b=b|0;d=d|0;b=ai(b,d)|0;if(b){b=c[(c[(b&p)+4>>2]&p)>>2]|0;if(!(a[(b&n)+15>>0]|0))b=c[(b&p)+168>>2]|0;else b=10360}else b=0;return b|0}function ig(a,d){a=a|0;d=d|0;a=ai(a,d)|0;if(!a)a=-1;else a=b[((c[(a&p)+4>>2]|0)&o)+22>>1]&1;return a|0}function jg(a,b){a=a|0;b=b|0;if(b){Fk(a,c[(b&p)+28>>2]|0);mg(a,c[(b&p)>>2]|0);mg(a,c[(b&p)+4>>2]|0);Gk(a,c[(b&p)+12>>2]|0);Hk(a,c[(b&p)+16>>2]|0);mg(a,b)}return}function kg(a,d){a=a|0;d=d|0;var e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;do if(d){h=(a|0)!=0;if(!(h?(c[(a&p)+520>>2]|0)!=0:0))e=4;if((e|0)==4?(f=d+40|0,e=(b[(f&o)>>1]|0)+-1<<16>>16,b[(f&o)>>1]=e,e<<16>>16!=0):0)break;e=c[(d&p)+8>>2]|0;if(e){g=a+520|0;do{f=e;e=c[(e&p)+20>>2]|0;if(!(h?(c[(g&p)>>2]|0)!=0:0))Ik((c[(f&p)+24>>2]|0)+24|0,c[(f&p)>>2]|0,0)|0;Jk(a,f)}while((e|0)!=0)}e=c[(d&p)+16>>2]|0;if(e){j=(a|0)==0;k=d+68|0;l=a+520|0;do{if(!(!j?(c[(l&p)>>2]|0)!=0:0)){f=e+16|0;i=c[(f&p)>>2]|0;h=e+12|0;g=c[(h&p)>>2]|0;if(!i)Ik((c[(k&p)>>2]|0)+56|0,c[(((g|0)==0?e:g)&p)+8>>2]|0,g)|0;else c[(i&p)+12>>2]=g;h=c[(h&p)>>2]|0;if(h)c[(h&p)+16>>2]=c[(f&p)>>2]}Kk(a,c[(e&p)+28>>2]|0);Kk(a,c[(e&p)+32>>2]|0);f=e;e=c[(e&p)+4>>2]|0;mg(a,f)}while((e|0)!=0)}Lk(a,d);mg(a,c[(d&p)>>2]|0);mg(a,c[(d&p)+20>>2]|0);Mk(a,c[(d&p)+12>>2]|0,1);Nk(a,c[(d&p)+24>>2]|0);if(!((a|0)!=0?(c[(a&p)+520>>2]|0)!=0:0))Ok(0,d)|0;h=d+56|0;e=c[(h&p)>>2]|0;if(e){i=d+52|0;f=c[(i&p)>>2]|0;if((f|0)>0){g=0;do{if((g|0)!=1){mg(a,c[((c[(h&p)>>2]|0)+(g<<2)&p)>>2]|0);f=c[(i&p)>>2]|0}g=g+1|0}while((g|0)<(f|0));e=c[(h&p)>>2]|0}mg(a,e)}mg(a,d)}while(0);return}function lg(a,d){a=a|0;d=d|0;var f=0,g=0,h=0;ch(c[(d&p)+60>>2]|0,b[(d&o)+68>>1]|0);h=d+16|0;ch(c[(h&p)>>2]|0,e[(d&o)+84>>1]<<1);f=c[(d&p)+192>>2]|0;if(f)do{g=f;f=c[(f&p)+24>>2]|0;Pk(a,c[(g&p)>>2]|0,c[(g&p)+4>>2]|0);mg(a,g)}while((f|0)!=0);f=b[(d&o)+70>>1]|0;if(f<<16>>16>0){g=d+64|0;f=f<<16>>16;do{f=f+-1|0;mg(a,c[((c[(g&p)>>2]|0)+(f<<2)&p)>>2]|0)}while((f|0)>0)}Pk(a,c[(d&p)+4>>2]|0,c[(d&p)+32>>2]|0);mg(a,c[(h&p)>>2]|0);mg(a,c[(d&p)+168>>2]|0);mg(a,c[(d&p)+172>>2]|0);return}function mg(a,b){a=a|0;b=b|0;var d=0;do if(b){if(a){if(c[(a&p)+520>>2]|0){Qk(a,b);break}if((c[(a&p)+276>>2]|0)>>>0<=b>>>0?(c[(a&p)+280>>2]|0)>>>0>b>>>0:0){d=a+272|0;c[(b&p)>>2]=c[(d&p)>>2];c[(d&p)>>2]=b;a=a+252|0;c[(a&p)>>2]=(c[(a&p)>>2]|0)+-1;break}}Wc(b)}while(0);return}function ng(b,e){b=b|0;e=e|0;var f=0,g=0,h=0;h=c[(e&p)+24>>2]|0;if(!h)f=0;else{f=h;while(1)if(!(a[(f&n)>>0]|0))break;else f=f+1|0;f=f-h&1073741823}g=(((d[((d[(h&n)>>0]|0)&n)+9328>>0]|0)+f|0)>>>0)%23|0;f=Rk(b,g,h,f)|0;if(!f){c[(e&p)+8>>2]=0;f=b+(g<<2)|0;c[(e&p)+28>>2]=c[(f&p)>>2];c[(f&p)>>2]=e}else{f=f+8|0;c[(e&p)+8>>2]=c[(f&p)>>2];c[(f&p)>>2]=e}return}function og(a){a=a|0;var b=0,d=0;do if(a){b=c[2254]|0;if((b|0)==(a|0)){c[2254]=c[(a&p)+12>>2];break}if(b){do{d=b+12|0;b=c[(d&p)>>2]|0}while((b|0)!=(a|0)&(b|0)!=0);if((b|0)==(a|0))c[(d&p)>>2]=c[(a&p)+12>>2]}}while(0);return}function pg(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return}function qg(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;b=jw(a|0,b|0,-1,-1)|0;d=G;do if(!(d>>>0>0|(d|0)==0&b>>>0>2147483390)){if(!(c[2186]|0)){b=lc[c[8780>>2]&127](a)|0;break}d=lc[c[8796>>2]&127](a)|0;c[2171]=a;if((c[2181]|0)>>>0>>0)c[2181]=a;a=c[2260]|0;do if(a){b=c[2166]|0;e=9032|0;e=dw(c[(e&p)>>2]|0,c[(e&p)+4>>2]|0,d|0,((d|0)<0)<<31>>31|0)|0;f=G;if(0<(f|0)|0==(f|0)&b>>>0>>0){c[2265]=0;break}else{c[2265]=1;e=c[2261]|0;c[2260]=0;qc[a&15](e,b,0,d);c[2260]=a;c[2261]=e;break}}while(0);b=lc[c[8780>>2]&127](d)|0;if(b){a=lc[c[8792>>2]&127](b)|0;a=(c[2166]|0)+a|0;c[2166]=a;if(a>>>0>(c[2176]|0)>>>0)c[2176]=a;a=(c[2175]|0)+1|0;c[2175]=a;if(a>>>0>(c[2185]|0)>>>0)c[2185]=a}else b=0}else b=0;while(0);return b|0}function rg(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,i=0,j=0;do if(a){if((b|0)==0&(d|0)==0){Wc(a);e=0;break}if(!(d>>>0>0|(d|0)==0&b>>>0>2147483391)){h=lc[c[8792>>2]&127](a)|0;g=lc[c[8796>>2]&127](b)|0;if((g|0)!=(h|0)){if(!(c[2186]|0)){e=rc[c[8788>>2]&127](a,g)|0;break}c[2171]=b;if((c[2181]|0)>>>0>>0)c[2181]=b;d=g-h|0;e=c[2166]|0;i=9032|0;i=dw(c[(i&p)>>2]|0,c[(i&p)+4>>2]|0,d|0,((d|0)<0)<<31>>31|0)|0;j=G;if(!(0<(j|0)|0==(j|0)&e>>>0>>0)?(f=c[2260]|0,(f|0)!=0):0){i=c[2261]|0;c[2260]=0;qc[f&15](i,e,0,d);c[2260]=f;c[2261]=i}e=rc[c[8788>>2]&127](a,g)|0;d=c[2260]|0;if((e|0)==0&(d|0)!=0){f=c[2166]|0;e=c[2261]|0;c[2260]=0;qc[d&15](e,f,0,b);c[2260]=d;c[2261]=e;e=rc[c[8788>>2]&127](a,g)|0}if(e){d=(lc[c[8792>>2]&127](e)|0)-h|0;d=(c[2166]|0)+d|0;c[2166]=d;if(d>>>0>(c[2176]|0)>>>0)c[2176]=d}else e=0}else e=a}else e=0}else e=qg(b,d)|0;while(0);return e|0}function sg(b,e,f,g){b=b|0;e=e|0;f=f|0;g=g|0;var l=0,m=0,o=0,r=0,s=0,t=0.0,u=0.0,v=0,w=0.0,x=0.0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=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;$=i;i=i+96|0;if((i|0)>=(j|0))fa();Z=$+8|0;_=$;Y=$+16|0;if(!e){l=0;m=0;T=0}else{l=e&2;if(!l)m=0;else{J=c[(g&p)>>2]|0;m=c[(J&p)>>2]|0;c[(g&p)>>2]=J+4}l=l&255;T=(e&1|0)!=0}S=l<<24>>24==0;P=l<<24>>24!=0;Q=m+4|0;R=m+8|0;O=b+12|0;l=0;a:while(1){e=a[(f&n)>>0]|0;if(e<<24>>24==37){e=f;f=l}else if(e<<24>>24){e=f;do{e=e+1|0;J=a[(e&n)>>0]|0}while(!(J<<24>>24==37|J<<24>>24==0));Sk(b,f,e-f|0);if(!(a[(e&n)>>0]|0))break}else break;l=e+1|0;o=a[(l&n)>>0]|0;if(!(o<<24>>24)){U=10;break}r=o<<24>>24;v=0;s=0;y=0;o=0;A=0;B=0;b:while(1){switch(r|0){case 43:{z=s;A=1;break}case 32:{z=s;y=1;break}case 35:{v=1;z=s;break}case 33:{z=1;break}case 48:{z=s;B=1;break}case 45:{z=s;o=1;break}default:{C=v;z=s;break b}}s=e+2|0;J=a[(s&n)>>0]|0;r=J<<24>>24;if(!(J<<24>>24)){l=s;C=v;break}else{e=l;l=s;s=z}}if((r|0)!=42)if((r+-48|0)>>>0<10){s=0;do{s=r+-48+(s*10|0)|0;l=l+1|0;r=a[(l&n)>>0]|0}while((r+-48|0)>>>0<10);N=o;M=s&2147483647}else{N=o;M=0}else{if(S){J=c[(g&p)>>2]|0;s=c[(J&p)>>2]|0;c[(g&p)>>2]=J+4}else s=Tk(m)|0;if((s|0)<0){o=1;s=(s|0)==-2147483648?0:0-s|0}r=l+1|0;l=r;r=a[(r&n)>>0]|0;N=o;M=s}do if((r|0)==46){s=l+1|0;o=a[(s&n)>>0]|0;if(o<<24>>24!=42){r=o<<24>>24;if((o+-48&255)<10)o=0;else{l=s;F=0;break}while(1){o=r+-48+(o*10|0)|0;l=l+2|0;J=a[(l&n)>>0]|0;r=J<<24>>24;if((J+-48&255)<10){J=s;s=l;l=J}else break}F=o&2147483647;break}if(S){J=c[(g&p)>>2]|0;s=c[(J&p)>>2]|0;c[(g&p)>>2]=J+4}else s=Tk(m)|0;l=l+2|0;r=a[(l&n)>>0]|0;if((s|0)<0)F=(s|0)==-2147483648?-1:0-s|0;else F=s}else F=-1;while(0);do if((r|0)==108){s=l+1|0;r=a[(s&n)>>0]|0;if(r<<24>>24==108){r=l+2|0;l=r;r=a[(r&n)>>0]|0;s=1;break}else{l=s;r=r<<24>>24;s=0;break}}else s=0;while(0);v=0;while(1){o=48752+(v*6|0)|0;if((r|0)==(a[(o&n)>>0]|0)){r=o;o=v;U=46;break}v=v+1|0;if((v|0)>=23){L=48752;J=0;break}}if((U|0)==46){U=0;if(!(T|o>>>0<20))break;L=r;J=a[((o*6|0)&n)+48755>>0]|0}c:do switch(J&255|0){case 13:{s=c[(g&p)>>2]|0;e=c[(s&p)>>2]|0;c[(g&p)>>2]=s+4;s=c[(g&p)>>2]|0;r=c[(s&p)>>2]|0;c[(g&p)>>2]=s+4;s=c[(e+(r*72|0)&p)+12>>2]|0;if(s){o=s;while(1)if(!(a[(o&n)>>0]|0))break;else o=o+1|0;Sk(b,s,o-s&1073741823);Sk(b,28928,1)}o=c[(e+(r*72|0)&p)+16>>2]|0;if(!o)e=0;else{e=o;while(1)if(!(a[(e&n)>>0]|0))break;else e=e+1|0;e=e-o&1073741823}Sk(b,o,e);y=f;r=0;e=0;s=0;break}case 14:{s=0;U=50;break}case 1:case 16:{U=50;break}case 4:case 3:case 2:{do if(!S){s=c[(Q&p)>>2]|0;if((c[(m&p)>>2]|0)>(s|0)){c[(Q&p)>>2]=s+1;t=+Ug(c[((c[(R&p)>>2]|0)+(s<<2)&p)>>2]|0);U=92;break}else{s=(F|0)<0?6:F;t=0.0;U=94;break}}else{U=c[(g&p)>>2]|0;c[(k&p)>>2]=c[(U&p)>>2];c[(k&p)+4>>2]=c[(U&p)+4>>2];t=+h[(k&q)>>3];c[(g&p)>>2]=U+8;U=92}while(0);if((U|0)==92){U=0;s=(F|0)<0?6:F;if(t<0.0){t=-t;K=45}else U=94}if((U|0)==94){U=0;if(!(A<<24>>24))K=y<<24>>24==0?0:32;else K=43}F=J<<24>>24==4;o=((F&(s|0)>0)<<31>>31)+s|0;s=o&4095;if(!s)u=.5;else{u=.5;do{s=s+-1|0;u=u*.1}while((s|0)>0)}E=J<<24>>24==2;if(E)t=t+u;h[(Z&q)>>3]=t;h[(_&q)>>3]=+h[(Z&q)>>3];if(+h[(Z&q)>>3]!=+h[(_&q)>>3]){y=48960;r=3;e=M;s=0}else{if(t>0.0){v=0;w=1.0;while(1){x=w*1.e+100;if(t>=x&(v|0)<351){v=v+100|0;w=x}else break}while(1){x=w*1.e+64;if(t>=x&(v|0)<351){v=v+64|0;w=x}else break}while(1){x=w*1.0e8;if(t>=x&(v|0)<351){v=v+8|0;w=x}else break}while(1){x=w*10.0;if((v|0)<351&t>=x){v=v+1|0;w=x}else break}t=t/w;if(t<1.0e-08)do{t=t*1.0e8;v=v+-8|0}while(t<1.0e-08);if(t<1.0)do{t=t*10.0;v=v+-1|0}while(t<1.0);if((v|0)>350){if(K<<24>>24==43)o=48976;else if(K<<24>>24==45)o=48968;else o=48984;f=o;while(1)if(!(a[(f&n)>>0]|0))break;else f=f+1|0;y=o;r=f-o&1073741823;e=M;s=0;break c}}else v=0;if(!E){t=u+t;if(!(t>=10.0))I=v;else{t=t*.1;I=v+1|0}}else I=v;if(F){s=(I|0)<-4|(o|0)<(I|0);F=C<<24>>24==0&1;o=o-(s?0:I)|0;s=s?3:2}else{F=z;s=J}H=s<<24>>24==3;f=H?0:I;v=(f|0)>0;s=jw(o|0,((o|0)<0)<<31>>31|0,M|0,((M|0)<0)<<31>>31|0)|0;v=jw(s|0,G|0,(v?f:0)|0,(v?((f|0)<0)<<31>>31:0)|0)|0;s=G;if((s|0)>0|(s|0)==0&v>>>0>55){v=jw(v|0,s|0,15,0)|0;v=qg(v,G)|0;if(!v){U=124;break a}else{y=v;J=v}}else{y=Y;J=0}v=((z&255)*10|0)+16|0;D=(z|C)&255|(o|0)>0;if(!(K<<24>>24))E=y;else{a[(y&n)>>0]=K;E=y+1|0}if((f|0)<0){a[(E&n)>>0]=48;e=2;s=E+1|0;A=f}else{C=~f;C=(C|0)>-1?C:-1;A=-2-C|0;C=f+C|0;r=E;while(1){if((v|0)<1)e=48;else{s=~~t;e=s+48&255;t=(t-+(s|0))*10.0;v=v+-1|0}a[(r&n)>>0]=e;if((f|0)>0){r=r+1|0;f=f+-1|0}else break}e=C+3|0;s=E+(C+2)|0}r=(D|0)==0;if(!r){a[(s&n)>>0]=46;s=E+e|0}if((A+1|0)<0){fw(s|0,48,~A|0)|0;s=s+~A|0;o=o+1+A|0}if((o|0)>0){e=s;f=o;while(1){f=f+-1|0;if((v|0)<1)A=48;else{E=~~t;A=E+48&255;t=(t-+(E|0))*10.0;v=v+-1|0}a[(e&n)>>0]=A;if((f|0)<=0)break;else e=e+1|0}s=s+o|0}d:do if(!(F<<24>>24==0|r)){while(1){r=s+-1|0;o=a[(r&n)>>0]|0;if(o<<24>>24==46)break;else if(o<<24>>24!=48)break d;a[(r&n)>>0]=0;s=r}if(!(z<<24>>24)){a[(r&n)>>0]=0;s=r;break}else{a[(s&n)>>0]=48;s=s+1|0;break}}while(0);if(H){r=s+1|0;a[(s&n)>>0]=a[((d[(L&n)+4>>0]|0)&n)+48912>>0]|0;o=s+2|0;if((I|0)<0){a[(r&n)>>0]=45;r=0-I|0}else{a[(r&n)>>0]=43;r=I}if((r|0)>99){a[(o&n)>>0]=((r|0)/100|0)+48;f=4;e=5;o=s+3|0;r=(r|0)%100|0}else{f=3;e=4}a[(o&n)>>0]=((r|0)/10|0)+48;a[(s+f&n)>>0]=((r|0)%10|0)+48;s=s+e|0}a[(s&n)>>0]=0;e=y;r=s-e|0;if(!(N<<24>>24==0&B<<24>>24!=0&(M|0)>(r|0))){e=M;s=J;break c}o=M-r|0;if((r|0)>=0){f=M;while(1){a[(y+f&n)>>0]=a[(y+(f-o)&n)>>0]|0;if((f|0)>(o|0))f=f+-1|0;else break}}if((M|0)==(r|0)){r=M;e=M;s=J;break c}fw(y+(K<<24>>24!=0&1)|0,48,M+e-s|0)|0;r=M;e=M;s=J}break}case 5:{if(S){r=c[(O&p)>>2]|0;e=c[(g&p)>>2]|0;y=c[(e&p)>>2]|0;c[(g&p)>>2]=e+4;c[(y&p)>>2]=r;y=f;r=0;e=0;s=0}else{y=f;r=0;e=0;s=0}break}case 8:{a[(Y&n)>>0]=37;y=Y;r=1;e=M;s=0;break}case 9:{if(!S){e=Uk(m)|0;if(!e)s=0;else s=a[(e&n)>>0]|0}else{J=c[(g&p)>>2]|0;s=c[(J&p)>>2]|0;c[(g&p)>>2]=J+4}if((F|0)>1){o=F+-1|0;e=M-o|0;if(!((e|0)<2|N<<24>>24!=0)){Vk(b,e+-1|0,32);e=0}f=s&255;Vk(b,o,f)}else{f=s&255;e=M}a[(Y&n)>>0]=f;y=Y;r=1;s=0;break}case 7:case 6:{if(P)o=Uk(m)|0;else{I=c[(g&p)>>2]|0;o=c[(I&p)>>2]|0;c[(g&p)>>2]=I+4}if(!o){f=10360;s=0}else{f=o;s=J<<24>>24!=7|P?0:o}if((F|0)>-1){if((F|0)>0)o=0;else{y=f;r=0;e=M;break c}while(1){r=o+1|0;if(!(a[(f+o&n)>>0]|0)){y=f;r=o;e=M;break c}if((r|0)<(F|0))o=r;else{y=f;e=M;break}}}else{if(!f){y=0;r=0;e=M;break c}else o=f;while(1)if(!(a[(o&n)>>0]|0))break;else o=o+1|0;y=f;r=o-f&1073741823;e=M;break c}break}case 15:case 11:case 10:{C=J<<24>>24==15?34:39;if(S){I=c[(g&p)>>2]|0;s=c[(I&p)>>2]|0;c[(g&p)>>2]=I+4}else s=Uk(m)|0;y=(s|0)==0;if(y)s=J<<24>>24==11?20304:48992;e:do if(!F){B=0;r=0}else{v=C&255;o=0;e=F;r=0;while(1){f=a[(s+o&n)>>0]|0;if(!(f<<24>>24)){B=o;break e}r=((f<<24>>24|0)==(v|0)&1)+r|0;o=o+1|0;e=e+-1|0;if(!e){B=o;break}}}while(0);z=J<<24>>24==11&(y^1);o=((z&1)<<1|1)+B+r|0;if((o|0)>70){r=qg(o,((o|0)<0)<<31>>31)|0;if(!r){U=197;break a}else{y=r;A=r}}else{y=Y;A=0}if(z){a[(y&n)>>0]=C;o=1}else o=0;if((B|0)>0){v=C&255;e=0;do{r=a[(s+e&n)>>0]|0;f=o+1|0;a[(y+o&n)>>0]=r;if((r<<24>>24|0)==(v|0)){a[(y+f&n)>>0]=r;o=o+2|0}else o=f;e=e+1|0}while((e|0)!=(B|0))}if(z){a[(y+o&n)>>0]=C;o=o+1|0}a[(y+o&n)>>0]=0;r=o;e=M;s=A;break}case 12:{J=c[(g&p)>>2]|0;e=c[(J&p)>>2]|0;c[(g&p)>>2]=J+4;if((e|0)!=0?(X=c[(e&p)+4>>2]|0,(X|0)!=0):0){Sk(b,c[(e&p)>>2]|0,X);y=f;r=0;e=0;s=0}else{y=f;r=0;e=0;s=0}break}default:break a}while(0);if((U|0)==50){U=0;do if(!(a[(L&n)+2>>0]&1)){if(P){f=Tk(m)|0;v=G;E=0;break}if(!(s<<24>>24)){v=c[(g&p)>>2]|0;f=c[(v&p)>>2]|0;c[(g&p)>>2]=v+4;v=0;E=0;break}else{E=c[(g&p)>>2]|0;v=E;f=c[(v&p)>>2]|0;v=c[(v&p)+4>>2]|0;c[(g&p)>>2]=E+8;E=0;break}}else{do if(!P)if(!(s<<24>>24)){r=c[(g&p)>>2]|0;s=c[(r&p)>>2]|0;c[(g&p)>>2]=r+4;r=((s|0)<0)<<31>>31;break}else{I=c[(g&p)>>2]|0;r=I;s=c[(r&p)>>2]|0;r=c[(r&p)+4>>2]|0;c[(g&p)>>2]=I+8;break}else{s=Tk(m)|0;r=G}while(0);if((r|0)<0){f=dw(0,0,s|0,r|0)|0;v=G;E=45;break}if(!(A<<24>>24)){f=s;v=r;E=y<<24>>24==0?0:32}else{f=s;v=r;E=43}}while(0);D=(f|0)==0&(v|0)==0;if(!(B<<24>>24))A=F;else{A=M-(E<<24>>24!=0&1)|0;A=(F|0)<(A|0)?A:F}if((A|0)>=60){s=A+10|0;r=qg(s,((s|0)<0)<<31>>31)|0;if(!r){U=69;break}else{e=s;s=r;o=r}}else{e=70;s=0;o=Y}B=o+(e+-1)|0;if(J<<24>>24==16){r=uw(f|0,v|0,10,0)|0;if(!(r>>>0<=3?(J=tw(f|0,v|0,10,0)|0,J=uw(J|0,G|0,10,0)|0,!((J|0)==1&(G|0)==0)):0))r=0;J=r<<1;a[(o+e+-2&n)>>0]=a[((J|1)&n)+48896>>0]|0;r=o+(e+-3)|0;a[(r&n)>>0]=a[(J&n)+48896>>0]|0}else r=B;e=d[(L&n)+4>>0]|0;y=d[(L&n)+1>>0]|0;while(1){J=uw(f|0,v|0,y|0,0)|0;o=r+-1|0;a[(o&n)>>0]=a[(J+e&n)+48912>>0]|0;f=tw(f|0,v|0,y|0,0)|0;v=G;if((f|0)==0&(v|0)==0)break;else r=o}f=A-B+o|0;if((f|0)>0){e=r;r=o;while(1){o=e+-2|0;a[(o&n)>>0]=48;f=f+-1|0;if((f|0)<=0)break;else{e=r;r=o}}}if(E<<24>>24){o=r+-2|0;a[(o&n)>>0]=E}if((!(D|C<<24>>24==0)?(V=a[(L&n)+5>>0]|0,V<<24>>24!=0):0)?(W=48952+(V&255)|0,!(V<<24>>24==3|V<<24>>24==6)):0){f=a[(W&n)>>0]|0;r=W;do{o=o+-1|0;a[(o&n)>>0]=f;r=r+1|0;f=a[(r&n)>>0]|0}while(f<<24>>24!=0)}y=o;r=B-o|0;e=M}o=e-r|0;f=(o|0)<1;if(!(f|N<<24>>24!=0))Vk(b,o,32);Sk(b,y,r);if(!(f|N<<24>>24==0))Vk(b,o,32);if(s)Wc(s);f=l+1|0;l=y}if((U|0)==10)Sk(b,48744,1);else if((U|0)==69){a[(b&n)+25>>0]=1;c[(b&p)+16>>2]=0}else if((U|0)==124){a[(b&n)+25>>0]=1;c[(b&p)+16>>2]=0}else if((U|0)==197){a[(b&n)+25>>0]=1;c[(b&p)+16>>2]=0}i=$;return}function tg(b){b=b|0;var d=0,e=0,f=0,g=0,h=0;f=b+8|0;d=c[(f&p)>>2]|0;do if(((d|0)!=0?(h=b+12|0,a[(d+(c[(h&p)>>2]|0)&n)>>0]=0,e=a[(b&n)+24>>0]|0,e<<24>>24!=0):0)?(g=b+4|0,(c[(f&p)>>2]|0)==(c[(g&p)>>2]|0)):0){if(e<<24>>24==1){d=(c[(h&p)>>2]|0)+1|0;d=mh(c[(b&p)>>2]|0,d,((d|0)<0)<<31>>31)|0}else d=Tc((c[(h&p)>>2]|0)+1|0)|0;c[(f&p)>>2]=d;if(!d){a[(b&n)+25>>0]=1;c[(b&p)+16>>2]=0;break}else{kw(d|0,c[(g&p)>>2]|0,(c[(h&p)>>2]|0)+1|0)|0;break}}while(0);return c[(f&p)>>2]|0}function ug(d,e,f,g){d=d|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,q=0;q=i;i=i+16|0;if((i|0)>=(j|0))fa();m=q;h=d+52|0;c[(h&p)>>2]=e;a:do if(!f){c[(h&p)>>2]=e;e=c[(d&p)+236>>2]|0;if(e){h=e+8|0;if(!(b[(h&o)>>1]&9312)){b[(h&o)>>1]=1;break}else{vg(e);break}}}else{l=d+236|0;do if(!(c[(l&p)>>2]|0)){h=mh(d,40,0)|0;if(!h){c[(l&p)>>2]=h;break a}else{e=h+0|0;k=e+40|0;do{a[(e&n)>>0]=0;e=e+1|0}while((e|0)<(k|0));b[(h&o)+8>>1]=1;c[(h&p)+32>>2]=d;c[(l&p)>>2]=h;break}}while(0);c[(m&p)>>2]=g;h=Wk(d,f,m)|0;e=c[(l&p)>>2]|0;if(e)Xg(e,h,-1,1,75)|0}while(0);i=q;return}function vg(a){a=a|0;var d=0,e=0;e=a+8|0;d=b[(e&o)>>1]|0;if(d&8192){Yk(a,c[(a&p)>>2]|0)|0;d=b[(e&o)>>1]|0}d=d&65535;do if(!(d&1024)){if(d&32){Zk(c[(a&p)>>2]|0);break}if(d&64){a=c[(a&p)>>2]|0;d=(c[(a&p)>>2]|0)+180|0;c[(a&p)+4>>2]=c[(d&p)>>2];c[(d&p)>>2]=a}}else cc[c[(a&p)+36>>2]&31](c[(a&p)+16>>2]|0);while(0);b[(e&o)>>1]=1;return}function wg(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0;k=i;i=i+16|0;if((i|0)>=(j|0))fa();g=k;e=Vh(b,d)|0;do if((e|0)==1){f=mh(a,536,0)|0;if(!f){ug(a,7,15776,g);e=0;break}fw(f|0,0,536)|0;c[(f&p)>>2]=b;if(!(_k(f)|0)){mg(a,c[(f&p)+4>>2]|0);Ch(f);mg(a,f);h=7;break}else{b=c[(f&p)+12>>2]|0;e=f+4|0;c[(g&p)>>2]=c[(e&p)>>2];ug(a,b,10344,g);mg(a,c[(e&p)>>2]|0);Ch(f);mg(a,f);e=0;break}}else h=7;while(0);do if((h|0)==7)if((e|0)<0){c[(g&p)>>2]=d;ug(a,1,47448,g);e=0;break}else{e=c[((c[(b&p)+16>>2]|0)+(e<<4)&p)+4>>2]|0;break}while(0);i=k;return e|0}function xg(a,d,f,g){a=a|0;d=d|0;f=f|0;g=g|0;var h=0,i=0,j=0,k=0;k=c[(a&p)+4>>2]|0;c[(k&p)+4>>2]=c[(a&p)>>2];j=k+22|0;if(!(b[(j&o)>>1]&2)){if((f|0)<0)f=(c[(k&p)+32>>2]|0)-(c[(k&p)+36>>2]|0)|0;if(((d+-512|0)>>>0<65025?(d+-1&d|0)==0:0)?(c[(k&p)+32>>2]=d,h=k+80|0,i=c[(h&p)>>2]|0,(i|0)!=0):0){a=i+-4|0;c[(h&p)>>2]=a;$k(a);c[(h&p)>>2]=0}h=k+32|0;a=al(c[(k&p)>>2]|0,h,f)|0;c[(k&p)+36>>2]=(c[(h&p)>>2]|0)-(f&65535);if(g)b[(j&o)>>1]=e[(j&o)>>1]|0|2}else a=8;return a|0}function yg(f,g){f=f|0;g=g|0;var h=0,k=0,l=0,m=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;T=i;i=i+16|0;if((i|0)>=(j|0))fa();N=T;M=T+12|0;L=T+8|0;R=c[(f&p)+4>>2]|0;I=R+4|0;c[(I&p)>>2]=c[(f&p)>>2];O=f+8|0;l=a[(O&n)>>0]|0;do if(l<<24>>24!=2?(P=(g|0)!=0,l<<24>>24!=1|P):0){Q=R+22|0;l=b[(Q&o)>>1]|0;if(!((l&1)!=0&P)){if(P)if((a[(R&n)+20>>0]|0)!=2&(l&64)==0)S=8;else S=7;else if(!(l&64))S=8;else S=7;a:do if((S|0)==7){h=c[(R&p)+76>>2]|0;S=12}else if(((S|0)==8?(g|0)>1:0)?(k=c[(R&p)+72>>2]|0,(k|0)!=0):0)do{l=c[(k&p)>>2]|0;if((l|0)!=(f|0)){h=l;S=12;break a}k=c[(k&p)+12>>2]|0}while((k|0)!=0);while(0);if((S|0)==12?(c[(h&p)>>2]|0)!=0:0){h=262;break}h=bl(f,1,1)|0;if(!h){l=e[(Q&o)>>1]|0;b[(Q&o)>>1]=l&65527;K=R+44|0;if(!(c[(K&p)>>2]|0))b[(Q&o)>>1]=l|8;E=R+12|0;u=R+32|0;v=R+36|0;w=R+17|0;x=R+18|0;y=R+80|0;z=R+24|0;A=R+26|0;B=R+28|0;C=R+30|0;D=R+21|0;F=R+20|0;G=(g|0)>1;h=0;b:while(1){c:do if(!(c[(E&p)>>2]|0)){h=cl(c[(R&p)>>2]|0)|0;if(!h){h=dl(R,1,M,0)|0;if(!h){t=c[(M&p)>>2]|0;q=c[(t&p)+56>>2]|0;l=d[(q&n)+29>>0]<<16|d[(q&n)+28>>0]<<24|d[(q&n)+30>>0]<<8|d[(q&n)+31>>0];m=c[(R&p)>>2]|0;r=c[(m&p)+24>>2]|0;if((l|0)!=0?(Zv(q+24|0,q+92|0,4)|0)==0:0)s=l;else s=r;d:do if((s|0)>0){e:do if(!(Zv(q,44680,16)|0)){if((d[(q&n)+18>>0]|0)>2)b[(Q&o)>>1]=e[(Q&o)>>1]|1;l=a[(q&n)+19>>0]|0;if((l&255)<=2){do if(l<<24>>24==2){if(b[(Q&o)>>1]&16)break;c[(L&p)>>2]=0;h=el(m,L)|0;if(h){S=48;break e}if(c[(L&p)>>2]|0)break;if(!t){h=0;continue b}Bg(c[(t&p)+68>>2]|0);h=0;continue b}while(0);if(Zv(q+21|0,47408,3)|0){h=26;S=48;break}k=d[(q&n)+17>>0]<<16|d[(q&n)+16>>0]<<8;if((k+16777215&k|0)!=0|k>>>0>65536|k>>>0<257){h=26;S=48;break}m=d[(q&n)+20>>0]|0;l=k-m|0;if((k|0)==(c[(u&p)>>2]|0)){if((s|0)>(r|0)?(c[((c[(I&p)>>2]|0)&p)+24>>2]&65536|0)==0:0){c[(N&p)>>2]=55672;c[(N&p)+4>>2]=10788;bd(11,13600,N);h=11;S=48;break}if(l>>>0<480){h=26;S=48;break}c[(u&p)>>2]=k;c[(v&p)>>2]=l;a[(w&n)>>0]=(d[(q&n)+53>>0]<<16|d[(q&n)+52>>0]<<24|d[(q&n)+54>>0]<<8|d[(q&n)+55>>0]|0)!=0&1;a[(x&n)>>0]=(d[(q&n)+65>>0]<<16|d[(q&n)+64>>0]<<24|d[(q&n)+66>>0]<<8|d[(q&n)+67>>0]|0)!=0&1;break d}if(t)Bg(c[(t&p)+68>>2]|0);c[(v&p)>>2]=l;c[(u&p)>>2]=k;l=c[(y&p)>>2]|0;if(l){h=l+-4|0;c[(y&p)>>2]=h;$k(h);c[(y&p)>>2]=0}h=al(c[(R&p)>>2]|0,u,m)|0}else{h=26;S=48}}else{h=26;S=48}while(0);if((S|0)==48){S=0;if(t)Bg(c[(t&p)+68>>2]|0);c[(E&p)>>2]=0}if(!h){h=0;continue b}else{S=77;break c}}else l=c[(v&p)>>2]|0;while(0);h=((((l<<6)+-768|0)>>>0)/255|0)+65513|0;k=h&65535;b[(z&o)>>1]=k;m=((((l<<5)+-384|0)>>>0)/255|0)+65513&65535;b[(A&o)>>1]=m;b[(B&o)>>1]=l+65501;b[(C&o)>>1]=m;a[(D&n)>>0]=(k&65535)>127?127:h&255;c[(E&p)>>2]=t;c[(K&p)>>2]=s;h=0;continue b}else l=0}else l=0}else{f:do if((h|0)==0&P){if(b[(Q&o)>>1]&1){h=8;S=77;break c}s=c[(R&p)>>2]|0;h=c[(s&p)+40>>2]|0;g:do if(!h){a[(s&n)+21>>0]=(a[((c[(f&p)>>2]|0)&n)+64>>0]|0)==2&1;t=s+16|0;if((a[(t&n)>>0]|0)==1){m=s+208|0;l=c[(m&p)>>2]|0;do if(!l){h=fl(s,2)|0;h:do if((h|0)==0&G){l=s+176|0;k=s+180|0;while(1){h=fl(s,4)|0;if((h|0)!=5)break h;if(!(lc[c[(l&p)>>2]&127](c[(k&p)>>2]|0)|0)){h=5;break g}}}while(0);if(h)break g}else{do if(a[(s&n)+4>>0]|0){if(a[(l&n)+43>>0]|0)break;h=fl(s,4)|0;if(h)break g;l=c[(m&p)>>2]|0;k=l+43|0;if(!(a[(k&n)>>0]|0)){h=c[(l&p)+4>>2]|0;pc[c[((c[(h&p)>>2]|0)&p)+56>>2]&31](h,(b[(l&o)+40>>1]|0)+3|0,1,5)|0;l=c[(m&p)>>2]|0}a[(k&n)>>0]=1}while(0);if(a[(l&n)+46>>0]|0){h=8;break g}k=l+43|0;if((a[(k&n)>>0]|0)==0?(H=c[(l&p)+4>>2]|0,H=pc[c[((c[(H&p)>>2]|0)&p)+56>>2]&31](H,0,1,10)|0,(H|0)!=0):0){h=H;break g}h=l+44|0;a[(h&n)>>0]=1;if(!(Zv(l+52|0,c[(c[(l&p)+32>>2]&p)>>2]|0,48)|0))break;if(!(a[(k&n)>>0]|0)){k=c[(l&p)+4>>2]|0;pc[c[((c[(k&p)>>2]|0)&p)+56>>2]&31](k,0,1,9)|0}a[(h&n)>>0]=0;h=517;break g}while(0);a[(t&n)>>0]=2;h=c[(s&p)+24>>2]|0;c[(s&p)+36>>2]=h;c[(s&p)+32>>2]=h;c[(s&p)+28>>2]=h;h=s+72|0;c[(h&p)>>2]=0;c[(h&p)+4>>2]=0}h=Cg(R)|0;break f}while(0);l=(h|0)==0;break c}while(0);if(!h){h=0;break b}else l=0}while(0);if((S|0)==77){S=0;l=(h|0)==0}if((a[(F&n)>>0]|0)==0?(J=c[(E&p)>>2]|0,(J|0)!=0):0){c[(E&p)>>2]=0;Bg(c[(J&p)+68>>2]|0)}if((h&255|0)!=5){S=86;break}if(a[(F&n)>>0]|0){S=86;break}if(!(gl(R)|0)){S=86;break}}if((S|0)==86)if(!l){S=96;break}if((a[(O&n)>>0]|0)==0?(H=R+40|0,c[(H&p)>>2]=(c[(H&p)>>2]|0)+1,(a[(f&n)+9>>0]|0)!=0):0){a[(f&n)+40>>0]=1;H=R+72|0;c[(f&p)+44>>2]=c[(H&p)>>2];c[(H&p)>>2]=f+32}l=P?2:1;a[(O&n)>>0]=l;if((l&255)>(d[(F&n)>>0]|0))a[(F&n)>>0]=l;if(P){l=c[(E&p)>>2]|0;c[(R&p)+76>>2]=f;k=e[(Q&o)>>1]|0;b[(Q&o)>>1]=G?k|32:k&65503;k=l+56|0;H=c[(k&p)>>2]|0;if((c[(K&p)>>2]|0)!=(d[(H&n)+29>>0]<<16|d[(H&n)+28>>0]<<24|d[(H&n)+30>>0]<<8|d[(H&n)+31>>0]|0)){h=Gg(c[(l&p)+68>>2]|0)|0;if(!h){h=c[(k&p)>>2]|0;S=c[(K&p)>>2]|0;a[(h&n)+28>>0]=S>>>24;a[(h&n)+29>>0]=S>>>16;a[(h&n)+30>>0]=S>>>8;a[(h&n)+31>>0]=S;h=0;S=96}}else S=96}}}else h=8}else{h=0;S=96}while(0);if((S|0)==96)if((h|0)==0&(g|0)!=0)h=hl(c[(R&p)>>2]|0,c[((c[(f&p)>>2]|0)&p)+496>>2]|0)|0;i=T;return h|0}function zg(e,f,g,h){e=e|0;f=f|0;g=g|0;h=h|0;var k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0;y=i;i=i+16|0;if((i|0)>=(j|0))fa();u=y;w=y+8|0;c[(w&p)>>2]=0;t=h&1;a:do if(!f){c[(u&p)>>2]=46865;c[(u&p)+4>>2]=10788;bd(11,13600,u);k=11}else{a[(e&n)+23>>0]=1;h=c[(e&p)+40>>2]|0;do if(!h){s=e+204|0;h=c[(s&p)>>2]|0;h=ac[c[8876>>2]&63](c[(h&p)+40>>2]|0,f,d[(h&n)+29>>0]&3)|0;if(!h){m=c[(s&p)>>2]|0;if((a[(m&n)+29>>0]|0)!=2){l=m+8|0;h=c[(l&p)>>2]|0;b:do if(!h)x=11;else{while(1){if((b[(h&o)+26>>1]|0)==0?(b[(h&o)+24>>1]&4)==0:0)break;h=c[(h&p)+36>>2]|0;if(!h){x=11;break b}}c[(l&p)>>2]=h;r=h;x=14}while(0);c:do if((x|0)==11?(c[(l&p)>>2]=0,q=c[(m&p)+4>>2]|0,(q|0)!=0):0){h=q;do{if(!(b[(h&o)+26>>1]|0)){r=h;x=14;break c}h=c[(h&p)+36>>2]|0}while((h|0)!=0)}while(0);if((x|0)==14?(k=rc[c[(m&p)+32>>2]&127](c[(m&p)+36>>2]|0,r)|0,!((k|0)==0|(k|0)==5)):0)break;k=ac[c[8876>>2]&63](c[(m&p)+40>>2]|0,f,2)|0;if(!k){k=7;break}}else k=0}else k=h;m=il(c[(s&p)>>2]|0,f,k)|0;c[(g&p)>>2]=m;if(!m)k=7;else{h=m+16|0;k=(t|0)!=0;if(!((c[(h&p)>>2]|0)==0|k)){k=e+184|0;c[(k&p)>>2]=(c[(k&p)>>2]|0)+1;k=0;break a}c[(h&p)>>2]=e;do if((f|0)>=0?(v=e+152|0,(((c[2514]|0)/(c[(v&p)>>2]|0)|0)+1|0)!=(f|0)):0){if(((a[(e&n)+15>>0]|0)==0?!((c[(e&p)+24>>2]|0)>>>0>>0|k):0)?(c[(c[(e&p)+60>>2]&p)>>2]|0)!=0:0){k=c[(e&p)+208>>2]|0;if(!k)k=0;else{k=kl(k,f,w)|0;if(k)break;k=c[(w&p)>>2]|0}v=e+188|0;c[(v&p)>>2]=(c[(v&p)>>2]|0)+1;k=ll(m,k)|0;if(!k){k=0;break a}else break}if((c[(e&p)+156>>2]|0)>>>0>>0)k=13;else{if(k){k=c[3164]|0;if(k)nc[k&3]();if((c[(e&p)+28>>2]|0)>>>0>=f>>>0)bi(c[(e&p)+56>>2]|0,f)|0;jl(e,f)|0;k=c[3166]|0;if(k)nc[k&3]()}fw(c[(m&p)+4>>2]|0,0,c[(v&p)>>2]|0)|0;k=0;break a}}else x=21;while(0);if((x|0)==21){c[(u&p)>>2]=46945;c[(u&p)+4>>2]=10788;bd(11,13600,u);k=11}ml(m)}}else k=h;while(0);if((c[(e&p)+120>>2]|0)==0?(c[((c[(e&p)+204>>2]|0)&p)+12>>2]|0)==0:0)nl(e);c[(g&p)>>2]=0}while(0);i=y;return k|0}function Ag(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,o=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0;y=i;i=i+16|0;if((i|0)>=(j|0))fa();x=y;v=b+4|0;r=c[((c[(v&p)>>2]|0)&p)+4>>2]|0;w=c[(r&p)>>2]|0;u=b+24|0;q=c[((c[((c[(u&p)>>2]|0)&p)+4>>2]|0)&p)+32>>2]|0;r=c[(r&p)+32>>2]|0;s=(q|0)<(r|0)?q:r;t=((q|0)<0)<<31>>31;m=sw(q|0,t|0,d|0,0)|0;o=G;if((q|0)==(r|0))b=0;else b=(a[(w&n)+15>>0]|0)==0?0:8;a:do if((b|0)==0&(q|0)>0){d=dw(m|0,o|0,q|0,t|0)|0;l=((r|0)<0)<<31>>31;k=(f|0)==0;h=G;b=r;while(1){c[(x&p)>>2]=0;f=qw(d|0,h|0,r|0,l|0)|0;if((f|0)!=(((c[2514]|0)>>>0)/(b>>>0)|0|0)){b=zg(w,f+1|0,x,0)|0;g=c[(x&p)>>2]|0;if(!b){b=Gg(g)|0;if(!b){z=rw(d|0,h|0,q|0,t|0)|0;f=c[(g&p)+4>>2]|0;b=rw(d|0,h|0,r|0,l|0)|0;kw(f+b|0,e+z|0,s|0)|0;a[(c[(g&p)+8>>2]&n)>>0]=0;if((d|0)==0&(h|0)==0&k){z=c[((c[((c[(u&p)>>2]|0)&p)+4>>2]|0)&p)+44>>2]|0;a[(f+b&n)+28>>0]=z>>>24;a[(f+b&n)+29>>0]=z>>>16;a[(f+b&n)+30>>0]=z>>>8;a[(f+b&n)+31>>0]=z;b=0}else b=0}}if(g)Bg(g)}else b=0;d=jw(d|0,h|0,r|0,l|0)|0;f=G;if(!((b|0)==0&((f|0)<(o|0)|(f|0)==(o|0)&d>>>0>>0)))break a;h=f;b=c[((c[((c[(v&p)>>2]|0)&p)+4>>2]|0)&p)+32>>2]|0}}while(0);i=y;return b|0}function Bg(a){a=a|0;var d=0,e=0,f=0;d=c[(a&p)+16>>2]|0;if(!(b[(a&o)+24>>1]&64)){ol(a);a=c[(d&p)+120>>2]|0}else{f=d+120|0;e=(c[(f&p)>>2]|0)+-1|0;c[(f&p)>>2]=e;f=d+136|0;c[(a&p)+12>>2]=c[(f&p)>>2];c[(f&p)>>2]=a;a=e}if((a|0)==0?(c[((c[(d&p)+204>>2]|0)&p)+12>>2]|0)==0:0)nl(d);return}function Cg(d){d=d|0;var f=0,g=0,h=0,i=0,j=0,k=0;i=d+44|0;if(!(c[(i&p)>>2]|0)){j=c[(d&p)+12>>2]|0;k=c[(j&p)+56>>2]|0;f=Gg(c[(j&p)+68>>2]|0)|0;if(!f){f=k+0|0;g=44680|0;h=f+16|0;do{a[(f&n)>>0]=a[(g&n)>>0]|0;f=f+1|0;g=g+1|0}while((f|0)<(h|0));f=d+32|0;a[(k&n)+16>>0]=(c[(f&p)>>2]|0)>>>8;a[(k&n)+17>>0]=(c[(f&p)>>2]|0)>>>16;a[(k&n)+18>>0]=1;a[(k&n)+19>>0]=1;a[(k&n)+20>>0]=(c[(f&p)>>2]|0)-(c[(d&p)+36>>2]|0);a[(k&n)+21>>0]=64;a[(k&n)+22>>0]=32;a[(k&n)+23>>0]=32;f=k+24|0;h=f+76|0;do{a[(f&n)>>0]=0;f=f+1|0}while((f|0)<(h|0));pl(j,13);f=d+22|0;b[(f&o)>>1]=e[(f&o)>>1]|0|2;f=a[(d&n)+17>>0]|0;a[(k&n)+52>>0]=0;a[(k&n)+53>>0]=0;a[(k&n)+54>>0]=0;a[(k&n)+55>>0]=f;f=a[(d&n)+18>>0]|0;a[(k&n)+64>>0]=0;a[(k&n)+65>>0]=0;a[(k&n)+66>>0]=0;a[(k&n)+67>>0]=f;c[(i&p)>>2]=1;a[(k&n)+31>>0]=1;f=0}}else f=0;return f|0}function Dg(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0;g=c[(b&p)+4>>2]|0;c[(g&p)+4>>2]=c[(b&p)>>2];b=c[(g&p)+12>>2]|0;f=c[(b&p)+56>>2]|0;b=Gg(c[(b&p)+68>>2]|0)|0;if((b|0)==0?(i=d<<2,a[(f+i&n)+36>>0]=e>>>24,a[(f+i&n)+37>>0]=e>>>16,a[(f+i&n)+38>>0]=e>>>8,h=e&255,a[(f+i&n)+39>>0]=h,(d|0)==7):0)a[(g&n)+18>>0]=h;return b|0}function Eg(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0;h=a+20|0;b=c[(h&p)>>2]|0;d=(b|0)>0;if(d){e=c[(a&p)+16>>2]|0;g=0;do{f=c[(e+(g<<4)&p)+4>>2]|0;if(f)c[((c[(f&p)+4>>2]|0)&p)+4>>2]=c[(f&p)>>2];g=g+1|0}while((g|0)!=(b|0));if(d){g=a+16|0;f=0;do{d=c[((c[(g&p)>>2]|0)+(f<<4)&p)+12>>2]|0;if(d){ql(d);b=c[(h&p)>>2]|0}f=f+1|0}while((f|0)<(b|0))}}b=a+24|0;c[(b&p)>>2]=c[(b&p)>>2]&-3;rl(a);sl(a);return}function Fg(d,f){d=d|0;f=f|0;var g=0,h=0,i=0,j=0,k=0;h=c[(d&p)+4>>2]|0;k=h+22|0;g=e[(k&o)>>1]|0;b[(k&o)>>1]=(f|0)==1?g|16:g&65519;g=yg(d,0)|0;do if(!g){h=h+12|0;i=c[((c[(h&p)>>2]|0)&p)+56>>2]|0;j=i+18|0;g=a[(j&n)>>0]|0;f=f&255;if(g<<24>>24==f<<24>>24?(a[(i&n)+19>>0]|0)==g<<24>>24:0){g=0;break}g=yg(d,2)|0;if(!g){g=Gg(c[((c[(h&p)>>2]|0)&p)+68>>2]|0)|0;if(!g){a[(j&n)>>0]=f;a[(i&n)+19>>0]=f;g=0}}}while(0);b[(k&o)>>1]=e[(k&o)>>1]&65519;return g|0}function Gg(a){a=a|0;var b=0;b=c[(a&p)+16>>2]|0;if((c[(b&p)+148>>2]|0)>>>0>(c[(b&p)+152>>2]|0)>>>0)a=tl(a)|0;else a=ul(a)|0;return a|0}function Hg(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,o=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0;A=i;i=i+32|0;if((i|0)>=(j|0))fa();u=A+16|0;v=A;k=A+12|0;m=A+8|0;g=c[(b&p)+40>>2]|0;a:do if(!g){z=b+16|0;if((d[(z&n)>>0]|0)>=3){b:do if(!(a[(b&n)+15>>0]|0)){if(c[(b&p)+208>>2]|0){l=b+204|0;h=vl(c[(l&p)>>2]|0)|0;c[(m&p)>>2]=0;if(!h){g=zg(b,1,m,0)|0;h=c[(m&p)>>2]|0;c[(h&p)+12>>2]=0;if(h){k=h;y=9}}else{k=0;y=9}if((y|0)==9){g=wl(b,h,c[(b&p)+24>>2]|0,1)|0;if(k)Bg(k)}if(g)break a;h=c[(l&p)>>2]|0;g=c[(h&p)>>2]|0;if(!g)break;while(1){xl(g);g=c[(h&p)>>2]|0;if(!g)break b}}l=b+18|0;if((a[(l&n)>>0]|0)==0?(c[(b&p)+24>>2]|0)!=0:0){g=zg(b,1,k,0)|0;k=c[(k&p)>>2]|0;if(!g){g=Gg(k)|0;if(!g){yl(k);a[(l&n)>>0]=1;g=0}}if(k)Bg(k);if(g)break a}if(((e|0)!=0?(a[(b&n)+5>>0]|0)!=4:0)?(x=b+64|0,t=c[(x&p)>>2]|0,(c[(t&p)>>2]|0)!=0):0){a[(b&n)+19>>0]=1;k=a[(e&n)>>0]|0;if(!(k<<24>>24)){l=0;h=0}else{l=0;h=0;do{l=(k<<24>>24)+l|0;h=h+1|0;k=a[(e+h&n)>>0]|0}while(k<<24>>24!=0)}s=b+72|0;g=s;k=c[(g&p)>>2]|0;g=c[(g&p)+4>>2]|0;if(!(a[(b&n)+8>>0]|0))m=g;else{if((k|0)==0&(g|0)==0){k=0;g=0}else{g=jw(k|0,g|0,-1,-1)|0;k=c[(b&p)+148>>2]|0;g=qw(g|0,G|0,k|0,0)|0;g=jw(g|0,G|0,1,0)|0;k=sw(g|0,G|0,k|0,0)|0;g=G}m=s;c[(m&p)>>2]=k;c[(m&p)+4>>2]=g;m=g}g=((c[2514]|0)/(c[(b&p)+152>>2]|0)|0)+1|0;a[(u&n)>>0]=g>>>24;o=u+1|0;a[(o&n)>>0]=g>>>16;q=u+2|0;a[(q&n)>>0]=g>>>8;r=u+3|0;a[(r&n)>>0]=g;g=tc[c[((c[(t&p)>>2]|0)&p)+12>>2]&31](t,u,4,k,m)|0;if(g)break a;g=c[(x&p)>>2]|0;m=jw(k|0,m|0,4,0)|0;k=G;g=tc[c[((c[(g&p)>>2]|0)&p)+12>>2]&31](g,e,h,m,k)|0;if(g)break a;g=c[(x&p)>>2]|0;m=jw(m|0,k|0,h|0,((h|0)<0)<<31>>31|0)|0;k=G;a[(u&n)>>0]=h>>>24;a[(o&n)>>0]=h>>>16;a[(q&n)>>0]=h>>>8;a[(r&n)>>0]=h;g=tc[c[((c[(g&p)>>2]|0)&p)+12>>2]&31](g,u,4,m,k)|0;if(g)break a;t=c[(x&p)>>2]|0;g=jw(m|0,k|0,4,0)|0;a[(u&n)>>0]=l>>>24;a[(o&n)>>0]=l>>>16;a[(q&n)>>0]=l>>>8;a[(r&n)>>0]=l;g=tc[c[((c[(t&p)>>2]|0)&p)+12>>2]&31](t,u,4,g,G)|0;if(g)break a;t=c[(x&p)>>2]|0;g=jw(m|0,k|0,8,0)|0;g=tc[c[((c[(t&p)>>2]|0)&p)+12>>2]&31](t,14808,8,g,G)|0;if(g)break a;t=h+20|0;g=s;t=jw(c[(g&p)>>2]|0,c[(g&p)+4>>2]|0,t|0,((t|0)<0)<<31>>31|0)|0;g=s;c[(g&p)>>2]=t;c[(g&p)+4>>2]=G;g=c[(x&p)>>2]|0;g=rc[c[((c[(g&p)>>2]|0)&p)+24>>2]&127](g,v)|0;if(g)break a;t=v;r=c[(t&p)+4>>2]|0;g=s;h=c[(g&p)>>2]|0;g=c[(g&p)+4>>2]|0;if((r|0)>(g|0)|((r|0)==(g|0)?(c[(t&p)>>2]|0)>>>0>h>>>0:0)?(w=c[(x&p)>>2]|0,w=ac[c[((c[(w&p)>>2]|0)&p)+16>>2]&63](w,h,g)|0,(w|0)!=0):0){g=w;break a}}g=zl(b,0)|0;if(g)break a;h=b+204|0;g=Al(b,vl(c[(h&p)>>2]|0)|0)|0;if(g)break a;g=c[(h&p)>>2]|0;h=c[(g&p)>>2]|0;if(h)do{xl(h);h=c[(g&p)>>2]|0}while((h|0)!=0);h=c[(b&p)+24>>2]|0;if(h>>>0>(c[(b&p)+32>>2]|0)>>>0){g=Bl(b,h-((h|0)==(((c[2514]|0)/(c[(b&p)+152>>2]|0)|0)+1|0)&1)|0)|0;if(!(g|f))y=46}else if(!f)y=46;else break;if((y|0)==46)g=Ig(b,e)|0;if(g)break a}else{g=c[(b&p)+88>>2]|0;if(g)do{c[(g&p)+16>>2]=1;g=c[(g&p)+44>>2]|0}while((g|0)!=0)}while(0);if(!(c[(b&p)+208>>2]|0)){a[(z&n)>>0]=5;g=0}else g=0}else g=0}while(0);i=A;return g|0}function Ig(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,i=0;g=b+60|0;h=c[(g&p)>>2]|0;i=c[(h&p)>>2]|0;if(!((i|0)!=0?(f=ac[c[(i&p)+40>>2]&63](h,21,e)|0,!((f|0)==0|(f|0)==12)):0))if(!(a[(b&n)+7>>0]|0)){f=c[(g&p)>>2]|0;f=rc[c[((c[(f&p)>>2]|0)&p)+20>>2]&127](f,d[(b&n)+11>>0]|0)|0}else f=0;return f|0}function Jg(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0;g=a[(b&n)+8>>0]|0;do if(!(g<<24>>24))f=0;else{k=c[(b&p)+4>>2]|0;c[(k&p)+4>>2]=c[(b&p)>>2];if(g<<24>>24==2){h=c[(k&p)>>2]|0;i=h+40|0;g=c[(i&p)>>2]|0;do if(!g){g=h+16|0;if(((a[(g&n)>>0]|0)==2?(a[(h&n)+4>>0]|0)!=0:0)?(a[(h&n)+5>>0]|0)==1:0){a[(g&n)>>0]=1;break}f=h+100|0;c[(f&p)>>2]=(c[(f&p)>>2]|0)+1;f=Cl(h,d[(h&n)+19>>0]|0,1)|0;h=f&255;if((h|0)==10|(h|0)==13){c[(i&p)>>2]=f;a[(g&n)>>0]=6;j=10}else j=10}else{f=g;j=10}while(0);if((j|0)==10?(f|0)!=0&(e|0)==0:0)break;f=b+20|0;c[(f&p)>>2]=(c[(f&p)>>2]|0)+-1;a[(k&n)+20>>0]=1;f=k+60|0;ei(c[(f&p)>>2]|0);c[(f&p)>>2]=0}Dl(b);f=0}while(0);return f|0}function Kg(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,o=0,q=0,r=0,s=0;s=i;i=i+16|0;if((i|0)>=(j|0))fa();h=s;a:do if((a[(b&n)+8>>0]|0)==2){r=c[(b&p)+4>>2]|0;c[(r&p)+4>>2]=c[(b&p)>>2];do if(a[(r&n)+17>>0]|0){q=c[(r&p)>>2]|0;f=r+8|0;b=c[(f&p)>>2]|0;if(b)do{o=b+72|0;a[(o&n)>>0]=d[(o&n)>>0]&251;b=c[(b&p)+8>>2]|0}while((b|0)!=0);if(!(a[(r&n)+18>>0]|0)){o=r+44|0;g=c[(o&p)>>2]|0;if(g>>>0<2)b=0;else{b=g+-2|0;b=b-((b>>>0)%(((((c[(r&p)+36>>2]|0)>>>0)/5|0)+1|0)>>>0)|0)|0;b=((b+1|0)==(((c[2514]|0)>>>0)/((c[(r&p)+32>>2]|0)>>>0)|0|0)?3:2)+b|0}if((b|0)!=(g|0)?(g|0)!=((((c[2514]|0)>>>0)/((c[(r&p)+32>>2]|0)>>>0)|0)+1|0):0){k=r+12|0;l=c[((c[(k&p)>>2]|0)&p)+56>>2]|0;l=d[(l&n)+37>>0]<<16|d[(l&n)+36>>0]<<24|d[(l&n)+38>>0]<<8|d[(l&n)+39>>0];m=El(r,g,l)|0;if(m>>>0>g>>>0){c[(h&p)>>2]=56396;c[(h&p)+4>>2]=10788;bd(11,13600,h);b=11;break a}b:do if(m>>>0>>0){b=c[(f&p)>>2]|0;c:do if(b){while(1){if(b)break;b=c[2]|0;if(!b)break c}b=Fl(b,0,0)|0;if(b){f=0;break b}}while(0);do{b=Gl(r,m,g,1)|0;g=g+-1|0;f=(b|0)==0}while(g>>>0>m>>>0&f)}else{f=1;b=0}while(0);if(((b|0)==101|f)&(l|0)!=0){b=Gg(c[((c[(k&p)>>2]|0)&p)+68>>2]|0)|0;l=(c[((c[(k&p)>>2]|0)&p)+56>>2]|0)+32|0;a[(l&n)>>0]=0;a[(l&n)+1>>0]=0;a[(l&n)+2>>0]=0;a[(l&n)+3>>0]=0;l=(c[((c[(k&p)>>2]|0)&p)+56>>2]|0)+36|0;a[(l&n)>>0]=0;a[(l&n)+1>>0]=0;a[(l&n)+2>>0]=0;a[(l&n)+3>>0]=0;l=c[((c[(k&p)>>2]|0)&p)+56>>2]|0;a[(l&n)+28>>0]=m>>>24;a[(l&n)+29>>0]=m>>>16;a[(l&n)+30>>0]=m>>>8;a[(l&n)+31>>0]=m;a[(r&n)+19>>0]=1;c[(o&p)>>2]=m}if(!b)break;Hl(q)|0;break a}c[(h&p)>>2]=56391;c[(h&p)+4>>2]=10788;bd(11,13600,h);b=11;break a}}while(0);b=c[(r&p)>>2]|0;if(a[(r&n)+19>>0]|0)c[(b&p)+24>>2]=c[(r&p)+44>>2];b=Hg(b,e,0)|0}else b=0;while(0);i=s;return b|0}function Lg(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0;m=i;i=i+16|0;if((i|0)>=(j|0))fa();h=m;l=c[(b&p)+4>>2]|0;c[(l&p)+4>>2]=c[(b&p)>>2];a:do if(!e){e=c[(l&p)+8>>2]|0;if(e){while(1){if(e)break;e=c[2]|0;if(!e)break a}e=Fl(e,0,0)|0;g=(e|0)==0;if(!g){g=g?f:0;k=6}}}else{g=f;k=6}while(0);if((k|0)==6)Il(b,e,g)|0;if((a[(b&n)+8>>0]|0)==2){Hl(c[(l&p)>>2]|0)|0;if(!(dl(l,1,h,0)|0)){e=c[(h&p)>>2]|0;g=c[(e&p)+56>>2]|0;g=d[(g&n)+29>>0]<<16|d[(g&n)+28>>0]<<24|d[(g&n)+30>>0]<<8|d[(g&n)+31>>0];if(!g)g=c[((c[(l&p)>>2]|0)&p)+24>>2]|0;c[(l&p)+44>>2]=g;if(e)Bg(c[(e&p)+68>>2]|0)}a[(l&n)+20>>0]=1;g=l+60|0;ei(c[(g&p)>>2]|0);c[(g&p)>>2]=0}Dl(b);i=m;return}function Mg(d){d=d|0;var e=0,f=0,g=0,h=0,i=0,j=0,k=0;j=d+76|0;if((c[(j&p)>>2]|0)==1691352191?(Jl(d)|0)==0:0){Kl(d,0);Ll(d);i=d+20|0;k=d+16|0;e=c[(k&p)>>2]|0;if((c[(i&p)>>2]|0)>0){h=0;do{g=e+(h<<4)+4|0;f=c[(g&p)>>2]|0;if((f|0)!=0?(Ml(f),c[(g&p)>>2]=0,(h|0)!=1):0)c[(e+(h<<4)&p)+12>>2]=0;h=h+1|0;e=c[(k&p)>>2]|0}while((h|0)<(c[(i&p)>>2]|0))}e=c[(e&p)+28>>2]|0;if(e)ql(e);rl(d);sl(d);h=0;do{e=c[(d+(h<<2)&p)+336>>2]|0;if(e)do{g=e;e=c[(e&p)+28>>2]|0;if(g)do{Nl(d,g);f=g;g=c[(g&p)+8>>2]|0;mg(d,f)}while((g|0)!=0)}while((e|0)!=0);h=h+1|0}while((h|0)!=23);f=d+428|0;e=c[(d&p)+436>>2]|0;if(e)do{h=c[(e&p)+8>>2]|0;g=c[(h&p)+16>>2]|0;if(g)cc[g&31](c[(h&p)+8>>2]|0);g=c[(h&p)+36>>2]|0;if(g)cc[g&31](c[(h&p)+28>>2]|0);g=c[(h&p)+56>>2]|0;if(g)cc[g&31](c[(h&p)+48>>2]|0);mg(d,h);e=c[(e&p)>>2]|0}while((e|0)!=0);Ol(f);h=d+308|0;e=c[(d&p)+316>>2]|0;if(e)do{g=c[(e&p)+8>>2]|0;f=c[(g&p)+12>>2]|0;if(f)cc[f&31](c[(g&p)+8>>2]|0);mg(d,g);e=c[(e&p)>>2]|0}while((e|0)!=0);Ol(h);c[(d&p)+52>>2]=0;f=d+236|0;e=c[(f&p)>>2]|0;do if(e){g=e+8|0;if(!(b[(g&o)>>1]&9312)){b[(g&o)>>1]=1;break}else{vg(e);e=c[(f&p)>>2]|0;break}}else e=0;while(0);Mh(e);g=d+168|0;if((c[(g&p)>>2]|0)>0){e=d+172|0;f=0;do{h=c[(d&p)>>2]|0;jc[c[(h&p)+52>>2]&15](h,c[((c[(e&p)>>2]|0)+(f<<2)&p)>>2]|0);f=f+1|0}while((f|0)<(c[(g&p)>>2]|0))}else e=d+172|0;mg(d,c[(e&p)>>2]|0);c[(j&p)>>2]=-1254786768;mg(d,c[((c[(k&p)>>2]|0)&p)+28>>2]|0);c[(j&p)>>2]=-1623446221;if(a[(d&n)+251>>0]|0)Wc(c[(d&p)+276>>2]|0);Wc(d)}return}function Ng(a){a=a|0;var b=0;b=c[(a&p)+40>>2]|0;if((b|0)==1369188723|(b|0)==-1108210269)b=Pg(a)|0;else b=0;Pl(a);return b|0}function Og(b,d){b=b|0;d=d|0;do if(b)if((a[(b&n)+65>>0]|0)!=0|(d|0)==3082){Ql(b);b=7;break}else{b=c[(b&p)+56>>2]&d;break}else b=d&255;while(0);return b|0}function Pg(a){a=a|0;var d=0,e=0,f=0,g=0,h=0,k=0;g=i;i=i+16|0;if((i|0)>=(j|0))fa();e=g;f=c[(a&p)>>2]|0;Rl(a)|0;if((c[(a&p)+76>>2]|0)>-1){hh(a)|0;d=a+44|0;mg(f,c[(d&p)>>2]|0);c[(d&p)>>2]=0;d=a+88|0;e=b[(d&o)>>1]|0;if(e&16)b[(d&o)>>1]=e|8}else{d=c[(a&p)+80>>2]|0;if((d|0)!=0?(b[(a&o)+88>>1]&8)!=0:0){h=a+44|0;k=c[(h&p)>>2]|0;c[(e&p)>>2]=k;ug(f,d,(k|0)!=0?10344:0,e);mg(f,c[(h&p)>>2]|0);c[(h&p)>>2]=0}}d=a+44|0;mg(c[(a&p)>>2]|0,c[(d&p)>>2]|0);c[(d&p)>>2]=0;c[(a&p)+20>>2]=0;d=a+136|0;c[(d&p)>>2]=0;c[(d&p)+4>>2]=0;c[(a&p)+40>>2]=649915045;i=g;return c[(f&p)+56>>2]&c[(a&p)+80>>2]|0}function Qg(a){a=a|0;var d=0;if(b[(a&o)+8>>1]&9312)vg(a);d=a+24|0;if(c[(d&p)>>2]|0){mg(c[(a&p)+32>>2]|0,c[(a&p)+20>>2]|0);c[(d&p)>>2]=0}c[(a&p)+16>>2]=0;return}function Rg(a){a=a|0;var d=0,f=0,g=0;d=a+8|0;if(b[(d&o)>>1]&16384){f=a+12|0;g=(c[(a&p)>>2]|0)+(c[(f&p)>>2]|0)|0;if(!(eh(a,(g|0)<1?1:g,1)|0)){fw((c[(a&p)+16>>2]|0)+(c[(f&p)>>2]|0)|0,0,c[(a&p)>>2]|0)|0;c[(f&p)>>2]=(c[(f&p)>>2]|0)+(c[(a&p)>>2]|0);b[(d&o)>>1]=(e[(d&o)>>1]|0)&48639;d=0}else d=7}else d=0;return d|0}function Sg(d,e){d=d|0;e=e|0;var f=0;do if(d){f=b[(d&o)+8>>1]|0;if((f&514)==514?(a[(d&n)+10>>0]|0)==e<<24>>24:0){f=c[(d&p)+16>>2]|0;break}if(!(f&1))f=Sl(d,e)|0;else f=0}else f=0;while(0);return f|0}function Tg(a,d){a=a|0;d=d|0;var e=0,f=0,g=0;e=a+8|0;f=b[(e&o)>>1]|0;if(!(f&16))if(!(Sg(a,d)|0))e=0;else{f=b[(e&o)>>1]|0;g=4}else g=4;if((g|0)==4){e=c[(a&p)+12>>2]|0;if(f&16384)e=(c[(a&p)>>2]|0)+e|0}return e|0}function Ug(b){b=b|0;var d=0.0,f=0,g=0,k=0;k=i;i=i+16|0;if((i|0)>=(j|0))fa();g=k;f=e[(b&o)+8>>1]|0;do if(!(f&8)){if(f&4){f=b;d=+((c[(f&p)>>2]|0)>>>0)+4294967296.0*+(c[(f&p)+4>>2]|0);break}if(!(f&18))d=0.0;else{h[(g&q)>>3]=0.0;Tl(c[(b&p)+16>>2]|0,g,c[(b&p)+12>>2]|0,a[(b&n)+10>>0]|0)|0;d=+h[(g&q)>>3]}}else d=+h[(b&q)>>3];while(0);i=k;return +d}function Vg(b){b=b|0;var d=0.0,f=0,g=0,k=0;k=i;i=i+16|0;if((i|0)>=(j|0))fa();g=k;f=e[(b&o)+8>>1]|0;do if(!(f&4)){if(!(f&8)){if(!(f&18)){b=0;f=0;break}f=g;c[(f&p)>>2]=0;c[(f&p)+4>>2]=0;Ul(c[(b&p)+16>>2]|0,g,c[(b&p)+12>>2]|0,a[(b&n)+10>>0]|0)|0;f=g;b=c[(f&p)+4>>2]|0;f=c[(f&p)>>2]|0;break}d=+h[(b&q)>>3];if(!(d<=-9223372036854775808.0))if(!(d>=9223372036854775808.0)){b=+R(d)>=1.0?(d>0.0?~~+da(+Q(d/4294967296.0),4294967295.0)>>>0:~~+ba((d-+(~~d>>>0))/4294967296.0)>>>0):0;f=~~d>>>0}else{b=2147483647;f=-1}else{b=-2147483648;f=0}}else{f=b;b=c[(f&p)+4>>2]|0;f=c[(f&p)>>2]|0}while(0);G=b;i=k;return f|0}function Wg(b,d,e,f,g){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;if((Xg(c[(b&p)>>2]|0,d,e,f,g)|0)==18){c[(b&p)+20>>2]=18;a[(b&n)+25>>0]=1;Xg(c[(b&p)>>2]|0,10096,-1,1,0)|0}return}function Xg(d,f,g,h,i){d=d|0;f=f|0;g=g|0;h=h|0;i=i|0;var j=0,k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0;a:do if(!f){j=d+8|0;if(!(b[(j&o)>>1]&9312)){b[(j&o)>>1]=1;j=0;break}else{vg(d);j=0;break}}else{r=d+32|0;j=c[(r&p)>>2]|0;if(!j)u=1e9;else u=c[(j&p)+88>>2]|0;t=h<<24>>24==0;q=t?16:2;if((g|0)<0){b:do if(h<<24>>24!=1)if((u|0)<0)k=0;else{g=0;while(1){k=g+2|0;if(!((a[(f+(g|1)&n)>>0]|a[(f+g&n)>>0])<<24>>24)){k=g;break b}if((k|0)>(u|0))break;else g=k}}else{k=f;while(1)if(!(a[(k&n)>>0]|0))break;else k=k+1|0;k=k-f&1073741823;k=(k|0)>(u|0)?u+1|0:k}while(0);s=k;m=(q&65535|512)&65535}else{s=g;m=q}do if((i|0)==(-1|0)){if(!(m&512))j=s;else j=s+(h<<24>>24==1?1:2)|0;if((s|0)>(u|0)){j=18;break a}if(fh(d,(j|0)>32?j:32)|0){j=7;break a}kw(c[(d&p)+16>>2]|0,f|0,j|0)|0;q=d+8|0;j=m}else{g=(i|0)==75;l=d+8|0;if(!((b[(l&o)>>1]&9312)==0?(c[(d&p)+24>>2]|0)==0:0))Qg(d);c[(d&p)+16>>2]=f;if(!g){c[(d&p)+36>>2]=i;q=l;j=(m&65535|((i|0)==0?2048:1024))&65535;break}c[(d&p)+20>>2]=f;j=c[(r&p)>>2]|0;do if(!j)j=lc[c[8792>>2]&127](f)|0;else{if((c[(j&p)+276>>2]|0)>>>0<=f>>>0?(c[(j&p)+280>>2]|0)>>>0>f>>>0:0){j=e[(j&o)+248>>1]|0;break}j=lc[c[8792>>2]&127](f)|0}while(0);c[(d&p)+24>>2]=j;q=l;j=m}while(0);m=d+12|0;c[(m&p)>>2]=s;b[(q&o)>>1]=j;f=t?1:h;l=d+10|0;a[(l&n)>>0]=f;do if(f<<24>>24!=1&(s|0)>1){g=d+16|0;k=c[(g&p)>>2]|0;j=a[(k&n)>>0]|0;k=a[(k&n)+1>>0]|0;if(!(j<<24>>24==-1&k<<24>>24==-2))if(k<<24>>24!=-1|j<<24>>24!=-2)break;else j=3;else j=2;if(Vl(d)|0){j=7;break a}f=(c[(m&p)>>2]|0)+-2|0;c[(m&p)>>2]=f;i=c[(g&p)>>2]|0;lw(i|0,i+2|0,f|0)|0;a[((c[(g&p)>>2]|0)+(c[(m&p)>>2]|0)&n)>>0]=0;a[((c[(g&p)>>2]|0)+(c[(m&p)>>2]|0)&n)+1>>0]=0;b[(q&o)>>1]=e[(q&o)>>1]|512;a[(l&n)>>0]=j}while(0);j=(s|0)>(u|0)?18:0}while(0);return j|0}function Yg(a,c){a=a|0;c=+c;var d=0,e=0,f=0,g=0;g=i;i=i+16|0;if((i|0)>=(j|0))fa();e=g+8|0;f=g;d=a+8|0;if(!(b[(d&o)>>1]&9312))b[(d&o)>>1]=1;else vg(a);h[(e&q)>>3]=c;h[(f&q)>>3]=+h[(e&q)>>3];if(!(+h[(e&q)>>3]!=+h[(f&q)>>3])){h[(a&q)>>3]=c;b[(d&o)>>1]=8}i=g;return}function Zg(a,d,e){a=a|0;d=d|0;e=e|0;var f=0;f=a+8|0;if(!(b[(f&o)>>1]&9312))b[(f&o)>>1]=1;else vg(a);c[(a&p)>>2]=d;c[(a&p)+4>>2]=e;b[(f&o)>>1]=4;return}function _g(a,d){a=a|0;d=d|0;var f=0,g=0,h=0;f=a+8|0;if(b[(f&o)>>1]&9312)vg(a);c[(a&p)>>2]=c[(d&p)>>2];c[(a&p)+4>>2]=c[(d&p)+4>>2];c[(a&p)+8>>2]=c[(d&p)+8>>2];c[(a&p)+12>>2]=c[(d&p)+12>>2];c[(a&p)+16>>2]=c[(d&p)+16>>2];h=e[(f&o)>>1]|0;g=h&64511;b[(f&o)>>1]=g;if((h&18|0)!=0?(b[(d&o)+8>>1]&2048)==0:0){b[(f&o)>>1]=g|4096;f=Vl(a)|0}else f=0;return f|0}function $g(d,e){d=d|0;e=e|0;var f=0;f=d+8|0;if(!((b[(f&o)>>1]&9312)==0?(c[(d&p)+24>>2]|0)==0:0))Qg(d);b[(f&o)>>1]=16400;c[(d&p)+12>>2]=0;c[(d&p)>>2]=(e|0)<0?0:e;a[(d&n)+10>>0]=1;c[(d&p)+16>>2]=0;return}function ah(a){a=a|0;var b=0,d=0;d=i;i=i+16|0;if((i|0)>=(j|0))fa();b=d;if(a)if(!(c[(a&p)>>2]|0)){bd(21,47360,b);a=1}else a=0;else{bd(21,47320,b);a=1}i=d;return a|0}function bh(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0.0;f=i;i=i+16|0;if((i|0)>=(j|0))fa();e=f;if((c[(a&p)>>2]|0)>1?(d=c[(a&p)+72>>2]|0,(d|0)!=0):0)d=rc[d&127](a,b)|0;else{d=rc[c[(a&p)+64>>2]&127](a,e)|0;g=+h[(e&q)>>3]*864.0e5;a=+R(g)>=1.0?(g>0.0?~~+da(+Q(g/4294967296.0),4294967295.0)>>>0:~~+ba((g-+(~~g>>>0))/4294967296.0)>>>0):0;c[(b&p)>>2]=~~g>>>0;c[(b&p)+4>>2]=a}i=f;return d|0}function ch(d,e){d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0;a:do if((d|0)!=0&(e|0)!=0){i=d+(e*40|0)|0;j=c[(d&p)+32>>2]|0;g=j+65|0;h=a[(g&n)>>0]|0;if(c[(j&p)+520>>2]|0){e=d;while(1){if(c[(e&p)+24>>2]|0)mg(j,c[(e&p)+20>>2]|0);e=e+40|0;if(e>>>0>=i>>>0)break a}}do{e=d+8|0;if(!(b[(e&o)>>1]&9312)){f=d+24|0;if(c[(f&p)>>2]|0){mg(j,c[(d&p)+20>>2]|0);c[(f&p)>>2]=0}}else Qg(d);b[(e&o)>>1]=128;d=d+40|0}while(d>>>0>>0);a[(g&n)>>0]=h}while(0);return}function dh(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0;f=i;i=i+16|0;if((i|0)>=(j|0))fa();g=f;c[(g&p)>>2]=e;e=Wk(b,d,g)|0;mg(b,c[(a&p)>>2]|0);c[(a&p)>>2]=e;i=f;return}function eh(a,d,f){a=a|0;d=d|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,q=0;l=a+24|0;g=c[(l&p)>>2]|0;do if((g|0)<(d|0)){k=(d|0)<32?32:d;d=(g|0)>0;if((f|0)!=0&d?(h=a+16|0,i=c[(h&p)>>2]|0,j=a+20|0,(i|0)==(c[(j&p)>>2]|0)):0){g=Wl(c[(a&p)+32>>2]|0,i,k,((k|0)<0)<<31>>31)|0;c[(j&p)>>2]=g;c[(h&p)>>2]=g;f=0}else{g=a+32|0;if(d){d=a+20|0;mg(c[(g&p)>>2]|0,c[(d&p)>>2]|0)}else d=a+20|0;g=mh(c[(g&p)>>2]|0,k,((k|0)<0)<<31>>31)|0;c[(d&p)>>2]=g}if(!g){f=a+8|0;if(!(b[(f&o)>>1]&9312))b[(f&o)>>1]=1;else vg(a);c[(a&p)+16>>2]=0;c[(l&p)>>2]=0;f=7;break}d=c[(a&p)+32>>2]|0;do if(!d)d=lc[c[8792>>2]&127](g)|0;else{if((c[(d&p)+276>>2]|0)>>>0<=g>>>0?(c[(d&p)+280>>2]|0)>>>0>g>>>0:0){d=e[(d&o)+248>>1]|0;break}d=lc[c[8792>>2]&127](g)|0}while(0);c[(l&p)>>2]=d;q=21}else q=21;while(0);if((q|0)==21){if(((f|0)!=0?(m=c[(a&p)+16>>2]|0,(m|0)!=0):0)?(n=c[(a&p)+20>>2]|0,(m|0)!=(n|0)):0)kw(n|0,m|0,c[(a&p)+12>>2]|0)|0;d=a+8|0;f=b[(d&o)>>1]|0;if(!(f&1024))g=a+16|0;else{g=a+16|0;cc[c[(a&p)+36>>2]&31](c[(g&p)>>2]|0);f=b[(d&o)>>1]|0}c[(g&p)>>2]=c[(a&p)+20>>2];b[(d&o)>>1]=f&58367;f=0}return f|0}function fh(a,d){a=a|0;d=d|0;if((c[(a&p)+24>>2]|0)<(d|0))a=eh(a,d,0)|0;else{c[(a&p)+16>>2]=c[(a&p)+20>>2];a=a+8|0;b[(a&o)>>1]=(e[(a&o)>>1]|0)&13;a=0}return a|0} function mq(f,g){f=f|0;g=g|0;var h=0,k=0,l=0,m=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,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,ga=0,ha=0;ha=i;i=i+192|0;if((i|0)>=(j|0))fa();ba=ha+48|0;$=ha+24|0;_=ha+160|0;I=ha+156|0;S=ha+152|0;L=ha+148|0;V=ha+144|0;O=ha+140|0;H=ha+16|0;ea=ha;y=ha+128|0;x=ha+116|0;z=ha+96|0;l=ha+88|0;ga=f+8|0;ca=c[(ga&p)>>2]|0;da=c[(f&p)>>2]|0;c[(ea&p)>>2]=c[9286];c[(ea&p)+4>>2]=c[9287];c[(ea&p)+8>>2]=c[9288];a:do switch(g|0){case 9:{l=c[(f+(da+-1<<4)&p)+16>>2]|0;k=c[(ca&p)>>2]|0;if((Sq(ca,22,37104,0,0)|0)==0?(E=Oq(ca)|0,(E|0)!=0):0){if((l|0)!=7?(F=k+20|0,(c[(F&p)>>2]|0)>0):0){l=(l|0)==9?2:1;k=E+96|0;q=0;do{wh(E,4,q,l,0)|0;c[(k&p)>>2]=c[(k&p)>>2]|1<>2]|0))}wh(E,3,0,0,0)|0}break}case 8:{y=c[(ca&p)>>2]|0;C=y+65|0;if(((a[(C&n)>>0]|0)==0?(a[(ca&n)+18>>0]|0)==0:0)?(Y=ca+64|0,(c[(Y&p)>>2]|0)==0):0){B=Oq(ca)|0;if(B){do{}while((Pq(B,61)|0)!=0);wh(B,24,0,0,0)|0;do if(!(a[(C&n)>>0]|0)){r=ca+332|0;v=c[(r&p)>>2]|0;if((v|0)==0?(c[(ca&p)+316>>2]|0)==0:0)break;s=B+32|0;t=c[(s&p)>>2]|0;if(t)c[((c[(B&p)+4>>2]|0)&p)+8>>2]=t;c[((c[(B&p)+24>>2]|0)&p)+88>>2]=t+-1;w=y+20|0;b:do if((c[(w&p)>>2]|0)>0){h=B+96|0;k=ca+328|0;l=y+16|0;m=y+145|0;q=B+4|0;u=0;while(1){x=1<>2]=c[(h&p)>>2]|x,ba=c[((c[((c[(l&p)>>2]|0)+(u<<4)&p)+12>>2]|0)&p)+4>>2]|0,xh(B,wh(B,4,u,(c[(k&p)>>2]&x|0)!=0&1,c[(ca+(u<<2)&p)+336>>2]|0)|0,ba,-14),(a[(m&n)>>0]|0)==0):0)?(N=c[(q&p)>>2]|0,(N|0)!=0):0)a[(N+(((c[(s&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=1;u=u+1|0;if((u|0)>=(c[(w&p)>>2]|0))break b;v=c[(r&p)>>2]|0}}while(0);s=ca+452|0;if((c[(s&p)>>2]|0)>0){r=ca+520|0;q=0;do{t=c[((c[((c[(r&p)>>2]|0)+(q<<2)&p)>>2]|0)&p)+60>>2]|0;c:do if(!t)t=0;else while(1){if((c[(t&p)>>2]|0)==(y|0))break c;t=c[(t&p)+24>>2]|0;if(!t){t=0;break}}while(0);xh(B,wh(B,146,0,0,0)|0,t,-10);q=q+1|0}while((q|0)<(c[(s&p)>>2]|0))}c[(s&p)>>2]=0;s=Oq(ca)|0;r=ca+396|0;if((c[(r&p)>>2]|0)>0){q=ca+400|0;m=0;do{$=c[(q&p)>>2]|0;ba=c[($+(m<<4)&p)+12>>2]|0;xh(s,wh(s,145,c[($+(m<<4)&p)>>2]|0,c[($+(m<<4)&p)+4>>2]|0,d[($+(m<<4)&n)+8>>0]|0)|0,ba,-2);m=m+1|0}while((m|0)<(c[(r&p)>>2]|0))}k=c[(ca&p)+8>>2]|0;t=c[(ca&p)+404>>2]|0;if(t){h=(c[(ca&p)>>2]|0)+16|0;u=k+32|0;v=k+4|0;do{r=c[(t&p)+8>>2]|0;s=c[(t&p)+12>>2]|0;Qq(ca,0,r,c[((c[((c[(h&p)>>2]|0)+(r<<4)&p)+12>>2]|0)&p)+72>>2]|0,54);r=s+1|0;wh(k,28,0,s,r)|0;q=c[(u&p)>>2]|0;l=s+-1|0;m=c[(c[(t&p)+4>>2]&p)>>2]|0;xh(k,wh(k,97,0,l,0)|0,m,0);m=q+9|0;wh(k,108,0,m,0)|0;wh(k,47,0,0,s)|0;wh(k,78,l,q+7|0,s)|0;l=c[(v&p)>>2]|0;if(l)a[(l+(((c[(u&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=16;wh(k,103,0,r,0)|0;wh(k,47,0,1,s)|0;wh(k,16,0,m,0)|0;wh(k,9,0,q+2|0,0)|0;wh(k,25,0,s,0)|0;wh(k,61,0,0,0)|0;t=c[(t&p)>>2]|0}while((t|0)!=0)}s=c[(ca&p)+316>>2]|0;if((s|0)!=0?(a[(ca&n)+23>>0]=0,(c[(s&p)>>2]|0)>0):0){r=s+4|0;q=0;do{ba=c[(r&p)>>2]|0;Rq(ca,c[(ba+(q*20|0)&p)>>2]|0,c[(ba+(q*20|0)&p)+16>>2]|0);q=q+1|0}while((q|0)<(c[(s&p)>>2]|0))}wh(B,16,0,1,0)|0}while(0);if((c[(Y&p)>>2]|0)==0?(a[(C&n)>>0]|0)==0:0){if((c[(ca&p)+404>>2]|0)!=0?(Z=ca+68|0,(c[(Z&p)>>2]|0)==0):0)c[(Z&p)>>2]=1;Ah(B,ca);c[(ca&p)+12>>2]=101;a[(ca&n)+16>>0]=0}else aa=48}else aa=48;if((aa|0)==48)c[(ca&p)+12>>2]=1;c[(ca&p)+68>>2]=0;c[(ca&p)+72>>2]=0;c[(ca&p)+76>>2]=0;c[(ca&p)+440>>2]=0;c[(ca&p)+332>>2]=0}break}case 5:{a[(ca&n)+450>>0]=0;c[(ca&p)+440>>2]=0;break}case 6:{a[(ca&n)+450>>0]=1;c[(ca&p)+440>>2]=0;break}case 221:case 218:case 108:case 97:case 85:case 83:case 81:case 68:case 31:case 28:{c[(ea&p)>>2]=0;break}case 27:{a[((c[(ca&p)>>2]|0)&n)+250>>0]=0;aa=f+(da<<4)+16|0;ba=c[(aa&p)+4>>2]|0;ca=ea;c[(ca&p)>>2]=c[(aa&p)>>2];c[(ca&p)+4>>2]=ba;break}case 222:case 219:case 107:case 84:case 69:case 30:case 29:{c[(ea&p)>>2]=1;break}case 32:{Vq(ca,f+(da+-2<<4)+16|0,f+(da+-1<<4)+16|0,a[(f+(da<<4)&n)+16>>0]|0,0);break}case 33:{ba=f+(da<<4)+16|0;Vq(ca,0,0,0,c[(ba&p)>>2]|0);Mk(c[(ca&p)>>2]|0,c[(ba&p)>>2]|0,1);break}case 34:{a[(ea&n)>>0]=0;break}case 35:{l=c[(f+(da<<4)&p)+20>>2]|0;k=c[(f+(da<<4)&p)+16>>2]|0;if((l|0)==5?(Fc(k,20456,5)|0)==0:0){a[(ea&n)>>0]=32;break a}a[(ea&n)>>0]=0;c[(ba&p)>>2]=l;c[(ba&p)+4>>2]=k;th(ca,20464,ba);break}case 59:{ba=f+(da<<4)+16|0;c[(x&p)>>2]=Zq(ca,97,0,0,ba)|0;ba=c[(ba&p)>>2]|0;c[(x&p)+4>>2]=ba;c[(x&p)+8>>2]=ba+(c[(f+(da<<4)&p)+20>>2]|0);Yq(ca,x);break}case 61:{k=c[(f+(da<<4)&p)+16>>2]|0;l=c[(ca&p)+484>>2]|0;if((l|0)!=0?(v=b[(l&o)+38>>1]|0,v<<16>>16>=1):0)a[((c[(l&p)+4>>2]|0)+(((v<<16>>16)+-1|0)*24|0)&n)+20>>0]=k;break}case 70:{c[(ea&p)>>2]=0;break}case 71:{c[(ea&p)>>2]=c[(f+(da+-1<<4)&p)+16>>2]&~c[(f+(da<<4)&p)+20>>2]|c[(f+(da<<4)&p)+16>>2];break}case 73:case 72:{c[(ea&p)>>2]=0;c[(ea&p)+4>>2]=0;break}case 74:{c[(ea&p)>>2]=c[(f+(da<<4)&p)+16>>2];c[(ea&p)+4>>2]=255;break}case 76:{c[(ea&p)>>2]=7;break}case 75:{c[(ea&p)>>2]=c[(f+(da<<4)&p)+16>>2]<<8;c[(ea&p)+4>>2]=65280;break}case 65:{br(ca,0,f+(da+-2<<4)+16|0,c[(f+(da+-1<<4)&p)+16>>2]|0,c[(f+(da<<4)&p)+16>>2]|0);break}case 66:{k=c[(f+(da<<4)&p)+16>>2]|0;l=c[(ca&p)+484>>2]|0;if((l|0)!=0?(u=c[(l&p)+16>>2]|0,(u|0)!=0):0)a[(u&n)+24>>0]=k;break}case 67:{q=c[(ca&p)+484>>2]|0;if((q|0)!=0?(D=(b[(q&o)+38>>1]|0)+-1|0,r=c[(ca&p)>>2]|0,m=Wq(r,f+(da<<4)+16|0)|0,(m|0)!=0):0){if(!(cr(ca,m)|0)){mg(r,m);break a}s=q+4|0;mg(r,c[((c[(s&p)>>2]|0)+(D*24|0)&p)+16>>2]|0);c[((c[(s&p)>>2]|0)+(D*24|0)&p)+16>>2]=m;l=c[(q&p)+8>>2]|0;if(l)do{if((b[(c[(l&p)+4>>2]&o)>>1]|0)==(D|0))c[(c[(l&p)+32>>2]&p)>>2]=c[((c[(s&p)>>2]|0)+(D*24|0)&p)+16>>2];l=c[(l&p)+20>>2]|0}while((l|0)!=0)}break}case 13:{c[(ea&p)>>2]=7;break}case 117:case 115:case 16:case 15:case 14:{c[(ea&p)>>2]=d[(f+(da<<4)&n)+14>>0];break}case 46:{ca=c[(f+(da+-3<<4)&p)+16>>2]|0;c[(ea&p)>>2]=ca;c[(ea&p)+4>>2]=(c[(f+(da<<4)&p)+16>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0)-ca;break}case 47:{ca=c[(f+(da+-5<<4)&p)+16>>2]|0;c[(ea&p)>>2]=ca;c[(ea&p)+4>>2]=(c[(f+(da<<4)&p)+16>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0)-ca;break}case 49:{ca=c[(f+(da+-1<<4)&p)+16>>2]|0;c[(ea&p)>>2]=ca;c[(ea&p)+4>>2]=(c[(f+(da<<4)&p)+16>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0)-ca;break}case 92:case 54:{aa=f+(da<<4)+16|0;ba=c[(aa&p)+4>>2]|0;ca=ca+320|0;c[(ca&p)>>2]=c[(aa&p)>>2];c[(ca&p)+4>>2]=ba;break}case 57:case 55:{Yq(ca,f+(da<<4)+16|0);break}case 56:{Yq(ca,f+(da+-1<<4)+16|0);break}case 58:{c[(y&p)>>2]=Zq(ca,157,c[(f+(da<<4)&p)+16>>2]|0,0,0)|0;c[(y&p)+4>>2]=c[(f+(da+-1<<4)&p)+16>>2];c[(y&p)+8>>2]=c[(f+(da<<4)&p)+24>>2];Yq(ca,y);break}case 18:case 17:{if((Sq(ca,22,37136,0,0)|0)==0?(B=Oq(ca)|0,(B|0)!=0):0)wh(B,3,1,0,0)|0;break}case 19:{if((Sq(ca,22,37120,0,0)|0)==0?(A=Oq(ca)|0,(A|0)!=0):0)wh(A,3,1,1,0)|0;break}case 22:{Tq(ca,0,f+(da<<4)+16|0);break}case 38:{ba=c[(f+(da+-2<<4)&p)+16>>2]|0;c[(ea&p)>>2]=ba;c[(ea&p)+4>>2]=(c[(ca&p)+504>>2]|0)-ba+(c[(ca&p)+508>>2]|0);break}case 39:{x=f+(da<<4)+16|0;v=c[(ca&p)>>2]|0;k=c[(ca&p)+484>>2]|0;d:do if(k){w=k+38|0;if((b[(w&o)>>1]|0)>=(c[(v&p)+96>>2]|0)){c[(ba&p)>>2]=c[(k&p)>>2];th(ca,36528,ba);break}u=Wq(v,x)|0;if(u){s=b[(w&o)>>1]|0;h=s<<16>>16;e:do if(s<<16>>16>0){t=a[((d[(u&n)>>0]|0)&n)+9328>>0]|0;q=c[(k&p)+4>>2]|0;r=u+1|0;l=0;while(1){m=c[(q+(l*24|0)&p)>>2]|0;if(t<<24>>24==(a[((d[(m&n)>>0]|0)&n)+9328>>0]|0)?(dd(r,m+1|0)|0)==0:0)break;l=l+1|0;if((l|0)>=(h|0))break e}c[(ba&p)>>2]=u;th(ca,36552,ba);mg(v,u);break d}else q=c[(k&p)+4>>2]|0;while(0);r=k+4|0;do if(!(h&7)){q=ro(v,q,(h*24|0)+192|0,0)|0;if(!q){mg(v,u);break d}else{c[(r&p)>>2]=q;s=b[(w&o)>>1]|0;break}}while(0);ba=s<<16>>16;aa=q+(ba*24|0)|0;c[(aa&p)>>2]=0;c[(aa&p)+4>>2]=0;c[(aa&p)+8>>2]=0;c[(aa&p)+12>>2]=0;c[(aa&p)+16>>2]=0;c[(aa&p)+20>>2]=0;c[(aa&p)>>2]=u;a[(q+(ba*24|0)&n)+21>>0]=65;a[(q+(ba*24|0)&n)+22>>0]=1;b[(w&o)>>1]=(b[(w&o)>>1]|0)+1<<16>>16}}while(0);$=x;aa=c[($&p)+4>>2]|0;ba=ea;c[(ba&p)>>2]=c[($&p)>>2];c[(ba&p)+4>>2]=aa;c[(ca&p)+324>>2]=0;break}case 62:{_q(ca,0,c[(f+(da+-1<<4)&p)+16>>2]|0,c[(f+(da<<4)&p)+16>>2]|0,c[(f+(da+-2<<4)&p)+16>>2]|0);break}case 63:{$q(ca,0,0,0,0,c[(f+(da<<4)&p)+16>>2]|0,0,0,0,0)|0;break}case 64:{ar(ca,c[(f+(da+-1<<4)&p)+16>>2]|0);break}case 279:case 263:case 262:case 261:case 260:case 259:case 258:case 257:case 256:case 247:case 150:case 141:case 131:case 130:case 48:case 45:case 42:case 41:case 40:{aa=f+(da<<4)+16|0;ba=c[(aa&p)+4>>2]|0;ca=ea;c[(ca&p)>>2]=c[(aa&p)>>2];c[(ca&p)+4>>2]=ba;break}case 44:{l=f+(da<<4)+16|0;k=c[(ca&p)+484>>2]|0;if((k|0)!=0?(J=b[(k&o)+38>>1]|0,J<<16>>16>=1):0){ba=(J<<16>>16)+-1|0;aa=c[(k&p)+4>>2]|0;ca=Wq(c[(ca&p)>>2]|0,l)|0;c[(aa+(ba*24|0)&p)+12>>2]=ca;a[(aa+(ba*24|0)&n)+21>>0]=Xq(ca,aa+(ba*24|0)+22|0)|0}break}case 226:{l=da+-1|0;k=f+(l<<4)+16|0;r=f+(da<<4)+16|0;q=pr(c[(ca&p)>>2]|0,0,k,r)|0;s=da+-3|0;m=Zq(ca,75,c[(f+(s<<4)&p)+16>>2]|0,0,0)|0;c[(ea&p)>>2]=m;if(!m){Do(c[(ca&p)>>2]|0,q);q=0}else{c[(m&p)+20>>2]=kr(ca,0,q,0,0,0,0,0,0,0)|0;q=c[(ea&p)>>2]|0;ba=q+4|0;c[(ba&p)>>2]=c[(ba&p)>>2]|2099200;yr(ca,q)}if(c[(f+(da+-2<<4)&p)+16>>2]|0)c[(ea&p)>>2]=Zq(ca,19,q,0,0)|0;c[(ea&p)+4>>2]=c[(f+(s<<4)&p)+20>>2];h=c[(r&p)>>2]|0;if(!h)h=(c[(k&p)>>2]|0)+(c[(f+(l<<4)&p)+20>>2]|0)|0;else h=h+(c[(f+(da<<4)&p)+20>>2]|0)|0;c[(ea&p)+8>>2]=h;break}case 225:{l=da+-4|0;h=Zq(ca,75,c[(f+(l<<4)&p)+16>>2]|0,0,0)|0;c[(ea&p)>>2]=h;if(!h){Mk(c[(ca&p)>>2]|0,c[(f+(da+-1<<4)&p)+16>>2]|0,1);h=0}else{c[(h&p)+20>>2]=c[(f+(da+-1<<4)&p)+16>>2];h=c[(ea&p)>>2]|0;ba=h+4|0;c[(ba&p)>>2]=c[(ba&p)>>2]|2099200;yr(ca,h)}if(c[(f+(da+-3<<4)&p)+16>>2]|0)c[(ea&p)>>2]=Zq(ca,19,h,0,0)|0;c[(ea&p)+4>>2]=c[(f+(l<<4)&p)+20>>2];c[(ea&p)+8>>2]=(c[(f+(da<<4)&p)+16>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0);break}case 227:{h=Zq(ca,20,0,0,0)|0;c[(ea&p)>>2]=h;if(!h)Mk(c[(ca&p)>>2]|0,c[(f+(da+-1<<4)&p)+16>>2]|0,1);else{c[(h&p)+20>>2]=c[(f+(da+-1<<4)&p)+16>>2];ba=h+4|0;c[(ba&p)>>2]=c[(ba&p)>>2]|2099200;yr(ca,h)}c[(ea&p)+4>>2]=c[(f+(da+-3<<4)&p)+16>>2];c[(ea&p)+8>>2]=(c[(f+(da<<4)&p)+16>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0);break}case 228:{k=Zq(ca,136,c[(f+(da+-3<<4)&p)+16>>2]|0,0,0)|0;c[(ea&p)>>2]=k;if(!k){Nk(c[(ca&p)>>2]|0,c[(f+(da+-2<<4)&p)+16>>2]|0);Gk(c[(ca&p)>>2]|0,c[(f+(da+-1<<4)&p)+16>>2]|0)}else{l=c[(f+(da+-1<<4)&p)+16>>2]|0;h=c[(f+(da+-2<<4)&p)+16>>2]|0;if(l)h=lr(ca,h,l)|0;c[(k&p)+20>>2]=h;yr(ca,c[(ea&p)>>2]|0)}c[(ea&p)+4>>2]=c[(f+(da+-4<<4)&p)+16>>2];c[(ea&p)+8>>2]=(c[(f+(da<<4)&p)+16>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0);break}case 291:case 240:{c[(ea&p)>>2]=2;break}case 241:{c[(ea&p)>>2]=0;break}case 239:{$q(ca,f+(da+-7<<4)+16|0,f+(da+-6<<4)+16|0,pr(c[(ca&p)>>2]|0,0,f+(da+-4<<4)+16|0,0)|0,c[(f+(da+-2<<4)&p)+16>>2]|0,c[(f+(da+-10<<4)&p)+16>>2]|0,f+(da+-11<<4)+16|0,c[(f+(da<<4)&p)+16>>2]|0,0,c[(f+(da+-8<<4)&p)+16>>2]|0)|0;break}case 229:{c[(ea&p)>>2]=lr(ca,lr(ca,c[(f+(da+-4<<4)&p)+16>>2]|0,c[(f+(da+-2<<4)&p)+16>>2]|0)|0,c[(f+(da<<4)&p)+16>>2]|0)|0;break}case 230:{c[(ea&p)>>2]=lr(ca,lr(ca,0,c[(f+(da+-2<<4)&p)+16>>2]|0)|0,c[(f+(da<<4)&p)+16>>2]|0)|0;break}case 237:{c[(ea&p)>>2]=lr(ca,c[(f+(da+-2<<4)&p)+16>>2]|0,c[(f+(da<<4)&p)+16>>2]|0)|0;break}case 238:{c[(ea&p)>>2]=lr(ca,0,c[(f+(da<<4)&p)+16>>2]|0)|0;break}case 245:{h=lr(ca,0,vr(ca,0,f+(da+-1<<4)+16|0,1)|0)|0;c[(ea&p)>>2]=h;mr(ca,h,f+(da+-2<<4)+16|0,1);if(h){if((c[(h&p)>>2]|0)>(c[((c[(ca&p)>>2]|0)&p)+96>>2]|0)){c[(ba&p)>>2]=20632;th(ca,34544,ba)}a[((c[(h&p)+4>>2]|0)+(((c[(h&p)>>2]|0)+-1|0)*20|0)&n)+12>>0]=c[(f+(da<<4)&p)+16>>2]}break}case 244:{h=vr(ca,0,f+(da+-1<<4)+16|0,1)|0;h=lr(ca,c[(f+(da+-4<<4)&p)+16>>2]|0,h)|0;c[(ea&p)>>2]=h;mr(ca,h,f+(da+-2<<4)+16|0,1);if(h){if((c[(h&p)>>2]|0)>(c[((c[(ca&p)>>2]|0)&p)+96>>2]|0)){c[(ba&p)>>2]=20632;th(ca,34544,ba)}a[((c[(h&p)+4>>2]|0)+(((c[(h&p)>>2]|0)+-1|0)*20|0)&n)+12>>0]=c[(f+(da<<4)&p)+16>>2]}break}case 248:{v=c[(f+(da<<4)&p)+16>>2]|0;s=c[(f+(da+-1<<4)&p)+16>>2]|0;u=c[(ca&p)>>2]|0;do if((a[(u&n)+65>>0]|0)==0?(Gn(ca)|0)==0:0){r=v+12|0;k=bq(u,c[(v&p)+16>>2]|0,c[(r&p)>>2]|0)|0;if(!k){if(!s){c[(ba&p)>>2]=v;c[(ba&p)+4>>2]=0;th(ca,33056,ba)}else zr(ca,c[(r&p)>>2]|0);a[(ca&n)+17>>0]=1;break}if(a[(k&n)+51>>0]&3){c[(ba&p)>>2]=0;th(ca,33080,ba);break}s=c[(k&p)+24>>2]|0;f:do if(s){r=c[(u&p)+20>>2]|0;if((r|0)>0){q=c[(u&p)+16>>2]|0;t=0;while(1){m=t+1|0;if((c[(q+(t<<4)&p)+12>>2]|0)==(s|0)){m=t;break f}if((m|0)<(r|0))t=m;else break}}else m=0}else m=-1e6;while(0);s=c[(k&p)+12>>2]|0;r=u+16|0;q=c[((c[(r&p)>>2]|0)+(m<<4)&p)>>2]|0;l=(m|0)==1?13184:13208;if(((Sq(ca,9,l,0,q)|0)==0?(Sq(ca,(m|0)==0?10:12,c[(k&p)>>2]|0,c[(s&p)>>2]|0,q)|0)==0:0)?(K=Oq(ca)|0,(K|0)!=0):0){aa=c[(ca&p)+408>>2]|0;aa=(aa|0)==0?ca:aa;Ar(ca,m);$=aa+328|0;c[($&p)>>2]=c[($&p)>>2]|1<>0]=d[(aa&n)>>0]|1;aa=c[(k&p)>>2]|0;c[(ba&p)>>2]=c[((c[(r&p)>>2]|0)+(m<<4)&p)>>2];c[(ba&p)+4>>2]=l;c[(ba&p)+8>>2]=aa;Br(ca,33160,ba);Cr(ca,m,28536,c[(k&p)>>2]|0);Dr(ca,m);Er(ca,c[(k&p)+40>>2]|0,m);ca=c[(k&p)>>2]|0;xh(K,wh(K,125,m,0,0)|0,ca,0)}}while(0);Do(u,v);break}case 246:{c[(ea&p)>>2]=0;c[(ea&p)+4>>2]=0;break}case 250:case 249:{h=Oq(ca)|0;if(h){wh(h,13,0,0,0)|0;ca=h+96|0;c[(ca&p)>>2]=c[(ca&p)>>2]|1}break}case 251:{Fr(ca,f+(da+-1<<4)+16|0,f+(da<<4)+16|0,0,0);break}case 252:{Fr(ca,f+(da+-3<<4)+16|0,f+(da+-2<<4)+16|0,f+(da<<4)+16|0,0);break}case 253:{Fr(ca,f+(da+-4<<4)+16|0,f+(da+-3<<4)+16|0,f+(da+-1<<4)+16|0,0);break}case 254:{Fr(ca,f+(da+-3<<4)+16|0,f+(da+-2<<4)+16|0,f+(da<<4)+16|0,1);break}case 255:{Fr(ca,f+(da+-4<<4)+16|0,f+(da+-3<<4)+16|0,f+(da+-1<<4)+16|0,1);break}case 264:{h=c[(f+(da+-3<<4)&p)+16>>2]|0;l=(c[(f+(da<<4)&p)+16>>2]|0)-h+(c[(f+(da<<4)&p)+20>>2]|0)|0;k=c[(f+(da+-1<<4)&p)+16>>2]|0;aa=ca+488|0;z=c[(aa&p)>>2]|0;A=c[(ca&p)>>2]|0;c[(aa&p)>>2]=0;g:do if((c[(ca&p)+64>>2]|0)==0&(z|0)!=0){y=c[(z&p)>>2]|0;m=z+20|0;v=c[(m&p)>>2]|0;h:do if(v){u=c[(A&p)+20>>2]|0;if((u|0)>0){s=c[(A&p)+16>>2]|0;q=0;while(1){r=q+1|0;if((c[(s+(q<<4)&p)+12>>2]|0)==(v|0))break h;if((r|0)<(u|0))q=r;else{q=r;break}}}else q=0}else q=-1e6;while(0);c[(z&p)+28>>2]=k;x=(k|0)==0;if(!x){s=k;do{c[(s&p)+4>>2]=z;s=c[(s&p)+32>>2]|0}while((s|0)!=0)}c[(_&p)>>2]=y;if(!y)s=0;else{s=y;while(1)if(!(a[(s&n)>>0]|0))break;else s=s+1|0;s=s-y&1073741823}c[(_&p)+4>>2]=s;c[($&p)>>2]=ca;w=A+16|0;v=c[(w&p)>>2]|0;c[($&p)+12>>2]=c[(v+(q<<4)&p)>>2];c[($&p)+4>>2]=c[(v+(q<<4)&p)+12>>2];c[($&p)+16>>2]=10720;c[($&p)+20>>2]=_;v=(q|0)==1;c[($&p)+8>>2]=v&1;if(!x)do{if(fr($,c[(k&p)+8>>2]|0)|0){k=0;l=z;break g}if(Gr($,c[(k&p)+20>>2]|0)|0){k=0;l=z;break g}if(Hr($,c[(k&p)+24>>2]|0)|0){k=0;l=z;break g}k=c[(k&p)+32>>2]|0}while((k|0)!=0);if(!(Gr($,c[(z&p)+12>>2]|0)|0)){s=A+145|0;if(!(a[(s&n)>>0]|0)){r=Oq(ca)|0;if(!r){k=0;l=z;break}aa=c[(ca&p)+408>>2]|0;Ar(ca,q);aa=((aa|0)==0?ca:aa)+328|0;c[(aa&p)>>2]=c[(aa&p)>>2]|1<>0]=0}else t=0;aa=c[(z&p)+4>>2]|0;c[(ba&p)>>2]=c[((c[(w&p)>>2]|0)+(q<<4)&p)>>2];c[(ba&p)+4>>2]=v?13184:13208;c[(ba&p)+8>>2]=y;c[(ba&p)+12>>2]=aa;c[(ba&p)+16>>2]=t;Br(ca,30008,ba);mg(A,t);Dr(ca,q);c[(ba&p)>>2]=y;Ir(r,q,uh(A,30072,ba)|0);if(!(a[(s&n)>>0]|0)){k=0;l=z;break}}l=Ik((c[((c[(w&p)>>2]|0)+(q<<4)&p)+12>>2]|0)+40|0,y,z)|0;if(l){a[(A&n)+65>>0]=1;k=0;break}k=c[(m&p)>>2]|0;if((k|0)==(c[(z&p)+24>>2]|0)){k=bn(k+8|0,c[(z&p)+4>>2]|0,ba)|0;if(!k)k=0;else k=c[(k&p)+8>>2]|0;k=k+64|0;c[(z&p)+32>>2]=c[(k&p)>>2];c[(k&p)>>2]=z;k=0}else k=0}else{k=0;l=z}}else l=z;while(0);jg(A,l);Fk(A,k);break}case 265:{D=f+(da+-7<<4)+16|0;C=da+-6|0;E=f+(C<<4)+16|0;r=c[(f+(da+-5<<4)&p)+16>>2]|0;F=da+-4|0;B=c[(f+(F<<4)&p)+16>>2]|0;F=c[(f+(F<<4)&p)+20>>2]|0;H=c[(f+(da+-2<<4)&p)+16>>2]|0;I=c[(f+(da<<4)&p)+16>>2]|0;k=c[(f+(da+-8<<4)&p)+16>>2]|0;J=c[(ca&p)>>2]|0;z=(c[(f+(da+-10<<4)&p)+16>>2]|0)!=0;do if(z)if(!(c[(f+(C<<4)&p)+20>>2]|0)){c[($&p)>>2]=D;if(!H){s=0;t=0;break}else{v=1;aa=483;break}}else{th(ca,29664,ba);s=0;t=0;break}else{v=er(ca,D,E,$)|0;if((v|0)>-1&(H|0)!=0)aa=483;else{s=0;t=0}}while(0);do if((aa|0)==483){h=J+65|0;if(!(a[(h&n)>>0]|0)){x=J+145|0;if((a[(x&n)>>0]|0)!=0&(v|0)!=1){aa=H+12|0;mg(J,c[(aa&p)>>2]|0);c[(aa&p)>>2]=0}w=Jr(ca,H)|0;if((a[(x&n)>>0]|0)==0?((w|0)!=0?(c[(f+(C<<4)&p)+20>>2]|0)==0:0):0)v=(c[(w&p)+68>>2]|0)==(c[((c[(J&p)+16>>2]|0)&p)+28>>2]|0)?1:v;if((a[(h&n)>>0]|0)==0?(R=c[($&p)>>2]|0,aa=c[(ca&p)>>2]|0,c[(_&p)>>2]=ca,aa=c[(aa&p)+16>>2]|0,c[(_&p)+12>>2]=c[(aa+(v<<4)&p)>>2],c[(_&p)+4>>2]=c[(aa+(v<<4)&p)+12>>2],c[(_&p)+16>>2]=10720,c[(_&p)+20>>2]=R,c[(_&p)+8>>2]=(v|0)==1&1,(Kr(_,H)|0)==0):0){x=Jr(ca,H)|0;if(!x){if((a[(J&n)+144>>0]|0)!=1){s=0;t=0;break}a[(J&n)+146>>0]=1;s=0;t=0;break}if(a[(x&n)+44>>0]&16){th(ca,29712,ba);s=0;t=0;break}t=Wq(J,R)|0;if(t)if(!(Lr(ca,t)|0)){A=J+16|0;aa=bn((c[((c[(A&p)>>2]|0)+(v<<4)&p)+12>>2]|0)+40|0,t,S)|0;if((aa|0)!=0?(c[(aa&p)+8>>2]|0)!=0:0)if(!k){c[(ba&p)>>2]=R;th(ca,29760,ba);s=0;break}else{Ar(ca,v);s=0;break}y=c[(x&p)>>2]|0;if(!(Fc(y,25568,7)|0)){th(ca,29792,ba);s=ca+64|0;c[(s&p)>>2]=(c[(s&p)>>2]|0)+1;s=0;break}u=c[(x&p)+12>>2]|0;if((u|0)!=0&(r|0)!=49){c[(ba&p)>>2]=(r|0)==35?29872:29880;c[(ba&p)+4>>2]=H;c[(ba&p)+8>>2]=0;th(ca,29832,ba);s=0;break}q=(r|0)==49;if((u|0)==0&q){c[(ba&p)>>2]=H;c[(ba&p)+4>>2]=0;th(ca,29888,ba);s=0;break}m=x+68|0;x=c[(m&p)>>2]|0;i:do if(x){w=c[(J&p)+20>>2]|0;if((w|0)>0){k=c[(A&p)>>2]|0;l=0;while(1){h=l+1|0;if((c[(k+(l<<4)&p)+12>>2]|0)==(x|0)){h=l;break i}if((h|0)<(w|0))l=h;else break}}else h=0}else h=-1e6;while(0);x=c[(A&p)>>2]|0;k=c[(x+(h<<4)&p)>>2]|0;if(z)w=c[(x&p)+16>>2]|0;else w=k;x=(h|0)==1;if((Sq(ca,x|z?5:7,t,y,w)|0)==0?(Sq(ca,18,x?13184:13208,0,k)|0)==0:0){s=mh(J,36,0)|0;if(!s){s=0;break}y=s+0|0;k=y+36|0;do{a[(y&n)>>0]=0;y=y+1|0}while((y|0)<(k|0));c[(s&p)>>2]=t;c[(s&p)+4>>2]=kh(J,c[(H&p)+16>>2]|0)|0;c[(s&p)+20>>2]=c[((c[(A&p)>>2]|0)+(v<<4)&p)+12>>2];c[(s&p)+24>>2]=c[(m&p)>>2];a[(s&n)+8>>0]=B;a[(s&n)+9>>0]=q|(r|0)==35?1:2;c[(s&p)+12>>2]=Mr(J,I,1,0)|0;c[(s&p)+16>>2]=Nr(J,F)|0;c[(ca&p)+488>>2]=s;t=0}else s=0}else s=0;else{s=0;t=0}}else{s=0;t=0}}else{s=0;t=0}}while(0);mg(J,t);Do(J,H);Hk(J,F);Gk(J,I);if(!(c[(ca&p)+488>>2]|0))jg(J,s);if(!(c[(f+(C<<4)&p)+20>>2]|0)){aa=D;ba=c[(aa&p)+4>>2]|0;ca=ea;c[(ca&p)>>2]=c[(aa&p)>>2];c[(ca&p)+4>>2]=ba;break a}else{aa=E;ba=c[(aa&p)+4>>2]|0;ca=ea;c[(ca&p)>>2]=c[(aa&p)>>2];c[(ca&p)+4>>2]=ba;break a}}case 269:case 266:{c[(ea&p)>>2]=35;break}case 267:{c[(ea&p)>>2]=31;break}case 268:{c[(ea&p)>>2]=49;break}case 284:{l=c[(ca&p)>>2]|0;k=c[(f+(da+-1<<4)&p)+16>>2]|0;h=c[(f+(da<<4)&p)+16>>2]|0;m=a[(f+(da+-5<<4)&n)+16>>0]|0;q=Or(l,110,f+(da+-4<<4)+16|0)|0;if(q){c[(q&p)+24>>2]=Pr(l,k,1)|0;c[(q&p)+20>>2]=Mr(l,h,1,0)|0;a[(q&n)+1>>0]=m}Nk(l,k);Gk(l,h);c[(ea&p)>>2]=q;break}case 271:case 270:{c[(ea&p)>>2]=d[(f+(da<<4)&n)+14>>0];c[(ea&p)+4>>2]=0;break}case 272:{c[(ea&p)>>2]=110;c[(ea&p)+4>>2]=c[(f+(da<<4)&p)+16>>2];break}case 296:case 275:{c[(ea&p)>>2]=0;break}case 297:case 276:{c[(ea&p)>>2]=c[(f+(da<<4)&p)+16>>2];break}case 277:{ba=f+(da+-1<<4)+16|0;ca=f+(da+-2<<4)+16|0;c[((c[((c[(ca&p)>>2]|0)&p)+36>>2]|0)&p)+32>>2]=c[(ba&p)>>2];c[((c[(ca&p)>>2]|0)&p)+36>>2]=c[(ba&p)>>2];c[(ea&p)>>2]=c[(ca&p)>>2];break}case 278:{ca=f+(da+-1<<4)+16|0;ba=c[(ca&p)>>2]|0;c[(ba&p)+36>>2]=ba;c[(ea&p)>>2]=c[(ca&p)>>2];break}case 282:{th(ca,20736,ba);break}case 280:{_=f+(da<<4)+16|0;$=c[(_&p)+4>>2]|0;aa=ea;c[(aa&p)>>2]=c[(_&p)>>2];c[(aa&p)+4>>2]=$;th(ca,20640,ba);break}case 283:{th(ca,20824,ba);break}case 286:{h=c[(ca&p)>>2]|0;k=c[(f+(da<<4)&p)+16>>2]|0;l=Or(h,109,f+(da+-2<<4)+16|0)|0;if(l){c[(l&p)+20>>2]=Mr(h,k,1,0)|0;a[(l&n)+1>>0]=10}Gk(h,k);c[(ea&p)>>2]=l;break}case 287:{l=c[(ca&p)>>2]|0;q=c[(f+(da<<4)&p)+16>>2]|0;h=mh(l,40,0)|0;if(!h){Mk(l,q,1);h=0}else{y=h+0|0;k=y+40|0;do{a[(y&n)>>0]=0;y=y+1|0}while((y|0)<(k|0));a[(h&n)>>0]=119;c[(h&p)+8>>2]=q;a[(h&n)+1>>0]=10}c[(ea&p)>>2]=h;break}case 285:{q=c[(ca&p)>>2]|0;m=c[(f+(da+-1<<4)&p)+16>>2]|0;l=c[(f+(da<<4)&p)+16>>2]|0;k=a[(f+(da+-4<<4)&n)+16>>0]|0;h=Or(q,108,f+(da+-2<<4)+16|0)|0;if(!h)Hk(q,m);else{c[(h&p)+8>>2]=gr(q,l,1)|0;c[(h&p)+28>>2]=m;a[(h&n)+1>>0]=k}Mk(q,l,1);c[(ea&p)>>2]=h;break}case 288:{h=Zq(ca,57,0,0,0)|0;c[(ea&p)>>2]=h;if(h)a[(h&n)+1>>0]=4;c[(ea&p)+4>>2]=c[(f+(da+-3<<4)&p)+16>>2];c[(ea&p)+8>>2]=(c[(f+(da<<4)&p)+16>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0);break}case 289:{h=Zq(ca,57,0,0,f+(da+-1<<4)+16|0)|0;c[(ea&p)>>2]=h;if(h)a[(h&n)+1>>0]=c[(f+(da+-3<<4)&p)+16>>2];c[(ea&p)+4>>2]=c[(f+(da+-5<<4)&p)+16>>2];c[(ea&p)+8>>2]=(c[(f+(da<<4)&p)+16>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0);break}case 290:{c[(ea&p)>>2]=1;break}case 292:{c[(ea&p)>>2]=3;break}case 293:{k=c[(f+(da<<4)&p)+16>>2]|0;h=c[(f+(da+-1<<4)&p)+16>>2]|0;w=c[(ca&p)>>2]|0;do if((a[(w&n)+65>>0]|0)==0?(Gn(ca)|0)==0:0){x=c[(k&p)+12>>2]|0;v=c[(k&p)+16>>2]|0;u=w+20|0;if((c[(u&p)>>2]|0)>0){q=(x|0)==0;m=w+16|0;l=0;s=0;do{r=(l|0)<2^l;t=c[(m&p)>>2]|0;if(!(!q?(dd(c[(t+(r<<4)&p)>>2]|0,x)|0)!=0:0)){t=bn((c[(t+(r<<4)&p)+12>>2]|0)+40|0,v,L)|0;if(t){s=c[(t&p)+8>>2]|0;if(s)break}else s=0}l=l+1|0}while((l|0)<(c[(u&p)>>2]|0));if(s){Qr(ca,s);break}}if(!h){c[(ba&p)>>2]=k;c[(ba&p)+4>>2]=0;th(ca,29600,ba)}else zr(ca,x);a[(ca&n)+17>>0]=1}while(0);Do(w,k);break}case 294:{ba=c[(f+(da+-3<<4)&p)+16>>2]|0;Rr(ca,24,29360,ba,ba,c[(f+(da+-1<<4)&p)+16>>2]|0,c[(f+(da<<4)&p)+16>>2]|0);break}case 303:{Tr(ca,f+(da+-1<<4)+16|0,f+(da<<4)+16|0);break}case 304:{z=c[(f+(da+-3<<4)&p)+16>>2]|0;x=f+(da<<4)+16|0;y=c[(ca&p)>>2]|0;k=y+24|0;l=c[(k&p)>>2]|0;do if((a[(y&n)+65>>0]|0)==0?(X=Ur(ca,0,z+8|0)|0,(X|0)!=0):0){t=c[(ca&p)>>2]|0;A=X+68|0;v=c[(A&p)>>2]|0;j:do if(v){u=c[(t&p)+20>>2]|0;if((u|0)>0){t=c[(t&p)+16>>2]|0;r=0;while(1){s=r+1|0;if((c[(t+(r<<4)&p)+12>>2]|0)==(v|0)){s=r;break j}if((s|0)<(u|0))r=s;else break}}else s=0}else s=-1e6;while(0);h=c[((c[(y&p)+16>>2]|0)+(s<<4)&p)>>2]|0;c[(k&p)>>2]=c[(k&p)>>2]|2097152;q=Wq(y,x)|0;if(q){if((_h(y,q,h)|0)==0?(bq(y,q,h)|0)==0:0){if(Vr(ca,c[(X&p)>>2]|0)|0)break;if(Lr(ca,q)|0)break;t=c[(X&p)>>2]|0;if(c[(X&p)+12>>2]|0){c[(ba&p)>>2]=t;th(ca,26088,ba);break}if(Sq(ca,26,h,t,0)|0)break;if(hr(ca,X)|0)break;if(!(a[(X&n)+44>>0]&16))m=0;else{t=c[(X&p)+60>>2]|0;k:do if(!t)t=0;else while(1){if((c[(t&p)>>2]|0)==(y|0))break k;t=c[(t&p)+24>>2]|0;if(!t){t=0;break}}while(0);m=(c[((c[(c[(t&p)+8>>2]&p)>>2]|0)&p)+76>>2]|0)==0?0:t}t=Oq(ca)|0;if(!t)break;aa=(m|0)!=0;r=ca+408|0;$=c[(r&p)>>2]|0;$=($|0)==0?ca:$;Ar(ca,s);_=$+328|0;c[(_&p)>>2]=c[(_&p)>>2]|1<>0]=d[($&n)>>0]|aa&1;Dr(ca,s);if(aa){$=ca+72|0;aa=(c[($&p)>>2]|0)+1|0;c[($&p)>>2]=aa;xh(t,wh(t,97,0,aa,0)|0,q,0);xh(t,wh(t,152,aa,0,0)|0,m,-10);aa=c[(r&p)>>2]|0;a[(((aa|0)==0?ca:aa)&n)+21>>0]=1}x=c[(X&p)>>2]|0;w=Nn(x,-1)|0;do if((c[(k&p)>>2]&524288|0)!=0?(T=bn((c[(A&p)>>2]|0)+56|0,x,V)|0,(T|0)!=0):0){t=c[(T&p)+8>>2]|0;if(!t)break;r=t;t=0;do{t=Wr(c[(ca&p)>>2]|0,t,c[(c[(r&p)>>2]&p)>>2]|0)|0;r=c[(r&p)+12>>2]|0}while((r|0)!=0);if(!t)break;c[(ba&p)>>2]=h;c[(ba&p)+4>>2]=(s|0)==1?13184:13208;c[(ba&p)+8>>2]=x;c[(ba&p)+12>>2]=q;c[(ba&p)+16>>2]=t;Br(ca,26120,ba);mg(y,t)}while(0);c[(ba&p)>>2]=h;c[(ba&p)+4>>2]=(s|0)==1?13184:13208;c[(ba&p)+8>>2]=q;c[(ba&p)+12>>2]=q;c[(ba&p)+16>>2]=q;c[(ba&p)+20>>2]=q;c[(ba&p)+24>>2]=q;c[(ba&p)+28>>2]=w;c[(ba&p)+32>>2]=x;Br(ca,26192,ba);if(_h(y,26576,h)|0){aa=c[(X&p)>>2]|0;c[(ba&p)>>2]=h;c[(ba&p)+4>>2]=q;c[(ba&p)+8>>2]=aa;Br(ca,26592,ba)}s=Xr(ca,X)|0;if(s){c[(ba&p)>>2]=q;c[(ba&p)+4>>2]=q;c[(ba&p)+8>>2]=s;Br(ca,26656,ba);mg(y,s)}do if(c[(k&p)>>2]&524288){s=bn((c[(A&p)>>2]|0)+56|0,c[(X&p)>>2]|0,ba)|0;if(!s)break;s=c[(s&p)+8>>2]|0;if(!s)break;do{r=c[(s&p)>>2]|0;if((r|0)!=(X|0))Yr(ca,r,c[(r&p)>>2]|0);s=c[(s&p)+12>>2]|0}while((s|0)!=0)}while(0);Yr(ca,X,q);break}c[(ba&p)>>2]=q;th(ca,26024,ba)}else q=0}else q=0;while(0);Do(y,z);mg(y,q);c[(k&p)>>2]=l;break}case 295:{ba=c[(f+(da<<4)&p)+16>>2]|0;Rr(ca,25,29176,ba,0,0,ba);break}case 300:{Sr(ca,0,0);break}case 302:{Tr(ca,0,0);break}case 301:{Sr(ca,f+(da+-1<<4)+16|0,f+(da<<4)+16|0);break}case 305:{y=c[(ca&p)>>2]|0;if((c[(ca&p)+64>>2]|0)==0?(M=y+65|0,(a[(M&n)>>0]|0)==0):0){l=c[(ca&p)+484>>2]|0;t=c[(l&p)+68>>2]|0;l:do if(t){s=c[(y&p)+20>>2]|0;if((s|0)>0){r=c[(y&p)+16>>2]|0;m=0;while(1){q=m+1|0;if((c[(r+(m<<4)&p)+12>>2]|0)==(t|0)){A=m;break l}if((q|0)<(s|0))m=q;else{A=q;break}}}else A=0}else A=-1e6;while(0);h=c[((c[(y&p)+16>>2]|0)+(A<<4)&p)>>2]|0;k=(c[(l&p)>>2]|0)+16|0;u=(b[(l&o)+38>>1]|0)+-1|0;s=c[(l&p)+4>>2]|0;t=c[(s+(u*24|0)&p)+4>>2]|0;z=_h(y,k,h)|0;if(!(Sq(ca,26,h,c[(z&p)>>2]|0,0)|0)){if(!t)v=0;else v=(a[(t&n)>>0]|0)==101?0:t;if(a[(s+(u*24|0)&n)+23>>0]&1){th(ca,25608,ba);break a}if(c[(l&p)+8>>2]|0){th(ca,25640,ba);break a}x=y+24|0;if((c[(x&p)>>2]&524288|0)!=0?(c[(l&p)+16>>2]|0)!=0&(v|0)!=0:0){th(ca,25672,ba);break a}w=(v|0)!=0;if(!((a[(s+(u*24|0)&n)+20>>0]|0)==0|w)){th(ca,25736,ba);break a}do if(w){c[(O&p)>>2]=0;if(Zr(y,v,1,65,O)|0){a[(M&n)>>0]=1;break a}t=c[(O&p)>>2]|0;if(!t){th(ca,25792,ba);break a}else{Mh(t);break}}while(0);t=c[(f+(da<<4)&p)+16>>2]|0;s=f+(da<<4)+20|0;r=c[(s&p)>>2]|0;if((t|0)!=0?(U=jw(r|0,0,1,0)|0,U=mh(y,U,G)|0,(U|0)!=0):0){kw(U|0,t|0,r|0)|0;a[(U+r&n)>>0]=0;t=(c[(s&p)>>2]|0)+-1|0;s=c[(x&p)>>2]|0;m:do if((t|0)>0){t=U+t|0;do{$=a[(t&n)>>0]|0;if($<<24>>24!=59?(a[($&255&n)+10368>>0]&1)==0:0)break m;a[(t&n)>>0]=0;t=t+-1|0}while(t>>>0>U>>>0)}while(0);c[(x&p)>>2]=c[(x&p)>>2]|2097152;$=c[(l&p)+48>>2]|0;c[(ba&p)>>2]=h;c[(ba&p)+4>>2]=(A|0)==1?13184:13208;c[(ba&p)+8>>2]=$;c[(ba&p)+12>>2]=U;c[(ba&p)+16>>2]=$+1;c[(ba&p)+20>>2]=k;Br(ca,25840,ba);mg(y,U);c[(x&p)>>2]=s}t=w?3:2;v=Oq(ca)|0;if(v){s=ca+19|0;q=a[(s&n)>>0]|0;do if(q<<24>>24){ba=q+-1<<24>>24;a[(s&n)>>0]=ba;r=c[(ca+((ba&255)<<2)&p)+24>>2]|0;if(!(ba<<24>>24)){s=c[(ca&p)+72>>2]|0;aa=663;break}else{k=q+-2<<24>>24;a[(s&n)>>0]=k;k=c[(ca+((k&255)<<2)&p)+24>>2]|0;break}}else{r=ca+72|0;s=(c[(r&p)>>2]|0)+1|0;c[(r&p)>>2]=s;r=s;aa=663}while(0);if((aa|0)==663){k=s+1|0;c[(ca&p)+72>>2]=k}wh(v,51,A,r,2)|0;m=v+96|0;c[(m&p)>>2]=c[(m&p)>>2]|1<>2]|0;s=v+32|0;if(q)a[(q+(((c[(s&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=-112;wh(v,52,A,2,k)|0;s=c[(s&p)>>2]|0;if(s>>>0>m>>>0)c[((c[(l&p)>>2]|0)+(m*20|0)&p)+8>>2]=s;c[((c[(v&p)+24>>2]|0)&p)+88>>2]=s+-1;_r(ca,r);_r(ca,k)}Yr(ca,z,c[(z&p)>>2]|0)}}break}case 306:{w=c[(ca&p)>>2]|0;a[(w&n)+250>>0]=0;h=c[(f+(da<<4)&p)+16>>2]|0;x=w+65|0;do if((a[(x&n)>>0]|0)==0?(Q=Ur(ca,0,h+8|0)|0,(Q|0)!=0):0){if(a[(Q&n)+44>>0]&16){th(ca,25400,ba);break}if(c[(Q&p)+12>>2]|0){th(ca,25440,ba);break}if(!(Vr(ca,c[(Q&p)>>2]|0)|0)){s=c[(Q&p)+68>>2]|0;n:do if(s){r=c[(w&p)+20>>2]|0;if((r|0)>0){q=c[(w&p)+16>>2]|0;t=0;while(1){m=t+1|0;if((c[(q+(t<<4)&p)+12>>2]|0)==(s|0)){m=t;break n}if((m|0)<(r|0))t=m;else break}}else m=0}else m=-1e6;while(0);v=mh(w,76,0)|0;if(v){y=v+0|0;k=y+76|0;do{a[(y&n)>>0]=0;y=y+1|0}while((y|0)<(k|0));c[(ca&p)+484>>2]=v;r=v+40|0;b[(r&o)>>1]=1;t=b[(Q&o)+38>>1]|0;q=v+38|0;b[(q&o)>>1]=t;t=((((t<<16>>16)+-1|0)/8|0)*192|0)+192|0;s=mh(w,t,0)|0;if(s)fw(s|0,0,t|0)|0;t=v+4|0;c[(t&p)>>2]=s;c[(ba&p)>>2]=c[(Q&p)>>2];ba=uh(w,25472,ba)|0;c[(v&p)>>2]=ba;s=c[(t&p)>>2]|0;if((s|0)==0|(ba|0)==0){a[(x&n)>>0]=1;break}kw(s|0,c[(Q&p)+4>>2]|0,(b[(q&o)>>1]|0)*24|0)|0;if((b[(q&o)>>1]|0)>0){s=0;do{ba=c[(t&p)>>2]|0;aa=ba+(s*24|0)|0;c[(aa&p)>>2]=kh(w,c[(aa&p)>>2]|0)|0;ba=ba+(s*24|0)+4|0;s=s+1|0;c[(ba&p)>>2]=0;c[(ba&p)+4>>2]=0;c[(ba&p)+8>>2]=0;c[(ba&p)+12>>2]=0}while((s|0)<(b[(q&o)>>1]|0))}c[(v&p)+68>>2]=c[((c[(w&p)+16>>2]|0)+(m<<4)&p)+12>>2];c[(v&p)+48>>2]=c[(Q&p)+48>>2];b[(r&o)>>1]=1;ba=c[(ca&p)+408>>2]|0;Ar(ca,m);ba=((ba|0)==0?ca:ba)+328|0;c[(ba&p)>>2]=c[(ba&p)>>2]|1<>2]|0);t=c[(ca&p)+484>>2]|0;if(t){h=c[(ca&p)>>2]|0;s=c[(t&p)+68>>2]|0;o:do if(s){r=c[(h&p)+20>>2]|0;if((r|0)>0){m=c[(h&p)+16>>2]|0;l=0;while(1){q=l+1|0;if((c[(m+(l<<4)&p)+12>>2]|0)==(s|0)){q=l;break o}if((q|0)<(r|0))l=q;else break}}else q=0}else q=-1e6;while(0);l=t+44|0;a[(l&n)>>0]=d[(l&n)>>0]|16;c[(t&p)+52>>2]=0;as(h,t,Wq(h,k)|0);as(h,t,0);as(h,t,kh(h,c[(t&p)>>2]|0)|0);c[(ca&p)+500>>2]=(c[(k&p)>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0)-(c[(ca&p)+496>>2]|0);l=c[(t&p)+56>>2]|0;if(l)Sq(ca,29,c[(t&p)>>2]|0,c[(l&p)>>2]|0,c[((c[((c[(ca&p)>>2]|0)&p)+16>>2]|0)+(q<<4)&p)>>2]|0)|0}break}case 322:{c[(ea&p)>>2]=0;break}case 324:case 323:{c[(ea&p)>>2]=c[(f+(da<<4)&p)+16>>2];break}case 325:{c[(ea&p)>>2]=cs(ca,0,f+(da+-5<<4)+16|0,c[(f+(da+-4<<4)&p)+16>>2]|0,c[(f+(da+-1<<4)&p)+16>>2]|0)|0;break}case 326:{c[(ea&p)>>2]=cs(ca,c[(f+(da+-7<<4)&p)+16>>2]|0,f+(da+-5<<4)+16|0,c[(f+(da+-4<<4)&p)+16>>2]|0,c[(f+(da+-1<<4)&p)+16>>2]|0)|0;break}case 314:{bs(ca);c[(ca&p)+512>>2]=0;c[(ca&p)+516>>2]=0;break}case 318:case 317:case 316:{l=ca+512|0;k=c[(l&p)>>2]|0;h=c[(f+(da<<4)&p)+16>>2]|0;if(!k){c[(l&p)>>2]=h;h=c[(f+(da<<4)&p)+20>>2]|0}else h=h+(c[(f+(da<<4)&p)+20>>2]|0)-k|0;c[(ca&p)+516>>2]=h;break}case 77:{c[(ea&p)>>2]=8;break}case 78:{c[(ea&p)>>2]=9;break}case 79:{c[(ea&p)>>2]=6;break}case 80:{c[(ea&p)>>2]=0;break}case 103:case 100:case 98:case 82:{c[(ea&p)>>2]=c[(f+(da<<4)&p)+16>>2];break}case 86:{c[(ea&p)+4>>2]=0;c[(ea&p)>>2]=0;break}case 87:{aa=f+(da+-1<<4)+16|0;ba=c[(aa&p)+4>>2]|0;ca=ea;c[(ca&p)>>2]=c[(aa&p)>>2];c[(ca&p)+4>>2]=ba;break}case 90:{c[(ca&p)+324>>2]=0;break}case 109:{h=da+-7|0;r=f+(da+-3<<4)+16|0;q=f+(da+-2<<4)+16|0;x=c[(f+(da<<4)&p)+16>>2]|0;t=c[(f+(da+-6<<4)&p)+16>>2]|0;s=c[(f+(da+-4<<4)&p)+16>>2]|0;c[(I&p)>>2]=0;w=c[(ca&p)>>2]|0;if((c[(ca&p)+440>>2]|0)>0){th(ca,35440,ba);Mk(w,x,1);break a}Uq(ca,r,q,t,1,0,s);l=c[(ca&p)+484>>2]|0;if((l|0)!=0?(c[(ca&p)+64>>2]|0)==0:0){er(ca,r,q,I)|0;t=c[(l&p)+68>>2]|0;p:do if(t){r=c[(w&p)+20>>2]|0;if((r|0)>0){q=c[(w&p)+16>>2]|0;m=0;while(1){s=m+1|0;if((c[(q+(m<<4)&p)+12>>2]|0)==(t|0)){s=m;break p}if((s|0)<(r|0))m=s;else break}}else s=0}else s=-1e6;while(0);ba=c[(I&p)>>2]|0;aa=c[(ca&p)>>2]|0;c[(_&p)>>2]=ca;aa=c[(aa&p)+16>>2]|0;c[(_&p)+12>>2]=c[(aa+(s<<4)&p)>>2];c[(_&p)+4>>2]=c[(aa+(s<<4)&p)+12>>2];c[(_&p)+16>>2]=35480;c[(_&p)+20>>2]=ba;c[(_&p)+8>>2]=(s|0)==1&1;if(fr(_,x)|0){Mk(w,x,1);break a}c[(l&p)+12>>2]=gr(w,x,1)|0;Mk(w,x,1);if(a[(w&n)+65>>0]|0)break a;if(!(a[(w&n)+145>>0]|0))hr(ca,l)|0;q=ca+504|0;m=c[(q&p)>>2]|0;q=c[(q&p)+4>>2]|0;ba=$;c[(ba&p)>>2]=m;c[(ba&p)+4>>2]=q;ba=a[(m&n)>>0]|0;if(!(ba<<24>>24==59|ba<<24>>24==0)){m=m+q|0;c[($&p)>>2]=m}r=$+4|0;c[(r&p)>>2]=0;s=c[(f+(h<<4)&p)+16>>2]|0;q=m-s|0;do{ba=q;q=q+-1|0;l=s+q|0;if((ba|0)<=0)break}while((a[((d[(l&n)>>0]|0)&n)+10368>>0]&1)!=0);c[($&p)>>2]=l;c[(r&p)>>2]=1;Vq(ca,0,$,0,0);break a}Mk(w,x,1);break}case 93:{_q(ca,c[(f+(da+-3<<4)&p)+16>>2]|0,c[(f+(da<<4)&p)+16>>2]|0,c[(f+(da+-2<<4)&p)+16>>2]|0,0);break}case 94:{$q(ca,0,0,0,c[(f+(da+-2<<4)&p)+16>>2]|0,c[(f+(da<<4)&p)+16>>2]|0,0,0,0,0)|0;break}case 95:{ar(ca,c[(f+(da+-2<<4)&p)+16>>2]|0);break}case 96:{br(ca,c[(f+(da+-6<<4)&p)+16>>2]|0,f+(da+-3<<4)+16|0,c[(f+(da+-2<<4)&p)+16>>2]|0,c[(f+(da+-1<<4)&p)+16>>2]|0);k=c[(f+(da<<4)&p)+16>>2]|0;l=c[(ca&p)+484>>2]|0;if((l|0)!=0?(q=c[(l&p)+16>>2]|0,(q|0)!=0):0)a[(q&n)+24>>0]=k;break}case 99:{c[(ea&p)>>2]=10;break}case 101:{a[(ea&n)>>0]=10;break}case 102:{a[(ea&n)>>0]=c[(f+(da<<4)&p)+16>>2];break}case 104:{c[(ea&p)>>2]=4;break}case 105:{c[(ea&p)>>2]=5;break}case 106:{dr(ca,c[(f+(da<<4)&p)+16>>2]|0,0,c[(f+(da+-1<<4)&p)+16>>2]|0);break}case 110:{dr(ca,c[(f+(da<<4)&p)+16>>2]|0,1,c[(f+(da+-1<<4)&p)+16>>2]|0);break}case 111:{c[(z&p)>>2]=c[5124];c[(z&p)+4>>2]=c[5125];c[(z&p)+8>>2]=c[5126];c[(z&p)+12>>2]=c[5127];c[(z&p)+16>>2]=c[5128];ba=f+(da<<4)+16|0;ir(ca,c[(ba&p)>>2]|0,z)|0;Mk(c[(ca&p)>>2]|0,c[(ba&p)>>2]|0,1);break}case 112:{t=c[(f+(da<<4)&p)+16>>2]|0;do if(t){c[(t&p)+68>>2]=c[(f+(da+-1<<4)&p)+16>>2];l=c[(t&p)+52>>2]|0;if(l){m=128;q=1;r=t;s=0;while(1){c[(r&p)+56>>2]=s;$=r+6|0;aa=e[($&o)>>1]|64;b[($&o)>>1]=aa;m=aa&m;if(!l)break;aa=l;l=c[(l&p)+52>>2]|0;q=q+1|0;s=r;r=aa}if(m){ca=t+6|0;b[(ca&o)>>1]=e[(ca&o)>>1]|256;break}aa=c[((c[(ca&p)>>2]|0)&p)+104>>2]|0;if((aa|0)>0&(q|0)>(aa|0))th(ca,20520,ba)}}else Qn(c[(ca&p)>>2]|0,c[(f+(da+-1<<4)&p)+16>>2]|0);while(0);c[(ea&p)>>2]=t;break}case 116:{c[(ea&p)>>2]=116;break}case 119:case 113:{c[(ea&p)>>2]=c[(f+(da<<4)&p)+16>>2];break}case 114:{h=c[(f+(da<<4)&p)+16>>2]|0;do if(h){if(c[(h&p)+52>>2]|0){c[(l&p)+4>>2]=0;h=kr(ca,0,jr(ca,0,0,0,l,h,0,0)|0,0,0,0,0,0,0,0)|0;if(!h){aa=192;break}}ba=c[(f+(da+-1<<4)&p)+16>>2]|0;a[(h&n)+4>>0]=ba;c[(h&p)+52>>2]=c[(f+(da+-2<<4)&p)+16>>2];if((ba|0)!=116)a[(ca&n)+22>>0]=1}else aa=192;while(0);if((aa|0)==192){Mk(c[(ca&p)>>2]|0,c[(f+(da+-2<<4)&p)+16>>2]|0,1);h=0}c[(ea&p)>>2]=h;break}case 121:{h=kr(ca,c[(f+(da+-1<<4)&p)+16>>2]|0,0,0,0,0,0,128,0,0)|0;if(!h){c[(ea&p)>>2]=c[(f+(da+-4<<4)&p)+16>>2];break a}else{a[(h&n)+4>>0]=116;c[(h&p)+52>>2]=c[(f+(da+-4<<4)&p)+16>>2];c[(ea&p)>>2]=h;break a}}case 122:{b[(ea&o)>>1]=1;break}case 124:case 123:{b[(ea&o)>>1]=0;break}case 242:case 236:case 161:case 154:case 126:{c[(ea&p)>>2]=0;break}case 243:case 125:{c[(ea&p)>>2]=c[(f+(da+-1<<4)&p)+16>>2];break}case 167:{c[(ea&p)>>2]=c[(f+(da+-2<<4)&p)+16>>2];c[(ea&p)+4>>2]=c[(f+(da<<4)&p)+16>>2];break}case 168:{c[(ea&p)+4>>2]=c[(f+(da+-2<<4)&p)+16>>2];c[(ea&p)>>2]=c[(f+(da<<4)&p)+16>>2];break}case 169:{h=c[(f+(da+-5<<4)&p)+16>>2]|0;if(h){ba=ca+532|0;c[(h&p)+4>>2]=c[(ba&p)>>2];c[(ba&p)>>2]=h;a[(ca&n)+449>>0]=1}ba=f+(da+-2<<4)+16|0;or(ca,c[(ba&p)>>2]|0,f+(da+-1<<4)+16|0);rr(ca,c[(ba&p)>>2]|0,c[(f+(da<<4)&p)+16>>2]|0);break}case 176:{h=c[(f+(da+-6<<4)&p)+16>>2]|0;if(h){ba=ca+532|0;c[(h&p)+4>>2]=c[(ba&p)>>2];c[(ba&p)>>2]=h;a[(ca&n)+449>>0]=1}tr(ca,c[(f+(da+-3<<4)&p)+16>>2]|0,0,c[(f+(da+-2<<4)&p)+16>>2]|0,d[(f+(da+-5<<4)&n)+16>>0]|0);break}case 173:{ba=lr(ca,c[(f+(da+-4<<4)&p)+16>>2]|0,c[(f+(da<<4)&p)+16>>2]|0)|0;c[(ea&p)>>2]=ba;mr(ca,ba,f+(da+-2<<4)+16|0,1);break}case 174:{ba=lr(ca,0,c[(f+(da<<4)&p)+16>>2]|0)|0;c[(ea&p)>>2]=ba;mr(ca,ba,f+(da+-2<<4)+16|0,1);break}case 175:{h=c[(f+(da+-5<<4)&p)+16>>2]|0;if(h){ba=ca+532|0;c[(h&p)+4>>2]=c[(ba&p)>>2];c[(ba&p)>>2]=h;a[(ca&n)+449>>0]=1}tr(ca,c[(f+(da+-2<<4)&p)+16>>2]|0,c[(f+(da<<4)&p)+16>>2]|0,c[(f+(da+-1<<4)&p)+16>>2]|0,d[(f+(da+-4<<4)&n)+16>>0]|0);break}case 181:{c[(ea&p)>>2]=ur(c[(ca&p)>>2]|0,c[(f+(da+-2<<4)&p)+16>>2]|0,f+(da<<4)+16|0)|0;break}case 182:{c[(ea&p)>>2]=ur(c[(ca&p)>>2]|0,0,f+(da<<4)+16|0)|0;break}case 183:{ca=f+(da<<4)+16|0;c[(ea&p)>>2]=c[(ca&p)>>2];c[(ea&p)+4>>2]=c[(ca&p)+4>>2];c[(ea&p)+8>>2]=c[(ca&p)+8>>2];break}case 177:{a[(ea&n)>>0]=a[(f+(da<<4)&n)+16>>0]|0;break}case 178:{a[(ea&n)>>0]=5;break}case 184:{c[(ea&p)>>2]=c[(f+(da+-1<<4)&p)+16>>2];c[(ea&p)+4>>2]=c[(f+(da+-2<<4)&p)+16>>2];c[(ea&p)+8>>2]=(c[(f+(da<<4)&p)+16>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0);break}case 191:case 190:case 185:{ba=f+(da<<4)+16|0;c[(ea&p)>>2]=Zq(ca,d[(f+(da<<4)&n)+14>>0]|0,0,0,ba)|0;ca=c[(ba&p)>>2]|0;c[(ea&p)+4>>2]=ca;c[(ea&p)+8>>2]=ca+(c[(f+(da<<4)&p)+20>>2]|0);break}case 187:case 186:{ba=f+(da<<4)+16|0;c[(ea&p)>>2]=Zq(ca,27,0,0,ba)|0;ca=c[(ba&p)>>2]|0;c[(ea&p)+4>>2]=ca;c[(ea&p)+8>>2]=ca+(c[(f+(da<<4)&p)+20>>2]|0);break}case 188:{aa=f+(da+-2<<4)+16|0;ba=f+(da<<4)+16|0;c[(ea&p)>>2]=Zq(ca,122,Zq(ca,27,0,0,aa)|0,Zq(ca,27,0,0,ba)|0,0)|0;c[(ea&p)+4>>2]=c[(aa&p)>>2];c[(ea&p)+8>>2]=(c[(ba&p)>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0);break}case 189:{aa=f+(da+-4<<4)+16|0;ba=f+(da<<4)+16|0;c[(ea&p)>>2]=Zq(ca,122,Zq(ca,27,0,0,aa)|0,Zq(ca,122,Zq(ca,27,0,0,f+(da+-2<<4)+16|0)|0,Zq(ca,27,0,0,ba)|0,0)|0,0)|0;c[(ea&p)+4>>2]=c[(aa&p)>>2];c[(ea&p)+8>>2]=(c[(ba&p)>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0);break}case 192:{x=f+(da<<4)+16|0;w=f+(da<<4)+20|0;do if(((c[(w&p)>>2]|0)>>>0>1?(C=c[(x&p)>>2]|0,(a[(C&n)>>0]|0)==35):0)?((d[(C&n)+1>>0]|0)+-48|0)>>>0<10:0){if(!(a[(ca&n)+18>>0]|0)){c[(ba&p)>>2]=x;th(ca,20432,ba);c[(ea&p)>>2]=0;break}r=Zq(ca,159,0,0,x)|0;c[(ea&p)>>2]=r;if(r)Dn((c[(x&p)>>2]|0)+1|0,r+28|0)|0}else aa=298;while(0);q:do if((aa|0)==298?(P=Zq(ca,135,0,0,x)|0,c[(ea&p)>>2]=P,W=c[(x&p)>>2]|0,c[(ea&p)+4>>2]=W,c[(ea&p)+8>>2]=W+(c[(w&p)>>2]|0),W=c[(ca&p)>>2]|0,(P|0)!=0):0){z=c[(P&p)+8>>2]|0;r=z+1|0;do if(a[(r&n)>>0]|0){y=(z|0)==0;if(y)A=0;else{t=z;while(1)if(!(a[(t&n)>>0]|0))break;else t=t+1|0;A=t-z&1073741823}r:do if((a[(z&n)>>0]|0)==63){$=Ul(r,H,A+-1|0,1)|0;m=H;q=c[(m&p)>>2]|0;m=c[(m&p)+4>>2]|0;t=q&65535;b[(P&o)+32>>1]=t;r=c[(W&p)+124>>2]|0;aa=((r|0)<0)<<31>>31;if((m|0)<0|(m|0)==0&q>>>0<1|($|0)!=0|((m|0)>(aa|0)|(m|0)==(aa|0)&q>>>0>r>>>0)){c[(ba&p)>>2]=r;th(ca,33296,ba);t=0}r=ca+440|0;aa=c[(r&p)>>2]|0;$=((aa|0)<0)<<31>>31;if((m|0)>($|0)|(m|0)==($|0)&q>>>0>aa>>>0)c[(r&p)>>2]=q}else{r=c[(ca&p)+444>>2]|0;s:do if((r|0)>0){q=c[(ca&p)+472>>2]|0;t=0;l=0;while(1){m=c[(q+(t<<2)&p)>>2]|0;if((m|0)!=0?(_v(m,z)|0)==0:0)break;l=l+1<<16>>16;t=l<<16>>16;if((t|0)>=(r|0)){aa=315;break s}}t=t+1&65535;r=P+32|0;b[(r&o)>>1]=t;if(t<<16>>16)break r}else aa=315;while(0);if((aa|0)==315)r=P+32|0;aa=ca+440|0;t=(c[(aa&p)>>2]|0)+1|0;c[(aa&p)>>2]=t;t=t&65535;b[(r&o)>>1]=t}while(0);m=t<<16>>16;if(t<<16>>16>0){t=ca+444|0;if((m|0)>(c[(t&p)>>2]|0)){r=ca+472|0;q=ro(W,c[(r&p)>>2]|0,m<<2,0)|0;if(!q)break q;c[(r&p)>>2]=q;aa=c[(t&p)>>2]|0;fw(q+(aa<<2)|0,0,m-aa<<2|0)|0;c[(t&p)>>2]=m}if((a[(z&n)>>0]|0)==63){r=m+-1|0;if(!(c[((c[(ca&p)+472>>2]|0)+(r<<2)&p)>>2]|0))t=0;else break}else{t=m+-1|0;r=t;t=c[((c[(ca&p)+472>>2]|0)+(t<<2)&p)>>2]|0}q=ca+472|0;mg(W,t);if(!y?(s=jw(A|0,0,1,0)|0,s=mh(W,s,G)|0,(s|0)!=0):0){kw(s|0,z|0,A|0)|0;a[(s+A&n)>>0]=0}else s=0;c[((c[(q&p)>>2]|0)+(r<<2)&p)>>2]=s}}else{$=ca+440|0;aa=(c[($&p)>>2]|0)+1|0;c[($&p)>>2]=aa;b[(P&o)+32>>1]=aa}while(0);if((c[(ca&p)+64>>2]|0)==0?(c[(ca&p)+440>>2]|0)>(c[(W&p)+124>>2]|0):0)th(ca,33344,ba)}while(0);ca=c[(x&p)>>2]|0;c[(ea&p)+4>>2]=ca;c[(ea&p)+8>>2]=ca+(c[(w&p)>>2]|0);break}case 196:{ba=f+(da+-3<<4)+16|0;c[(ea&p)>>2]=wr(ca,0,ba)|0;c[(ea&p)+4>>2]=c[(ba&p)>>2];c[(ea&p)+8>>2]=(c[(f+(da<<4)&p)+16>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0);break}case 197:{ba=f+(da<<4)+16|0;c[(ea&p)>>2]=wr(ca,0,ba)|0;ca=c[(ba&p)>>2]|0;c[(ea&p)+4>>2]=ca;c[(ea&p)+8>>2]=ca+(c[(f+(da<<4)&p)+20>>2]|0);break}case 193:{aa=da+-2|0;ba=f+(da<<4)+16|0;c[(ea&p)>>2]=vr(ca,c[(f+(aa<<4)&p)+16>>2]|0,ba,1)|0;c[(ea&p)+4>>2]=c[(f+(aa<<4)&p)+20>>2];c[(ea&p)+8>>2]=(c[(ba&p)>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0);break}case 194:{c[(ea&p)>>2]=Zq(ca,38,c[(f+(da+-3<<4)&p)+16>>2]|0,0,f+(da+-1<<4)+16|0)|0;c[(ea&p)+4>>2]=c[(f+(da+-5<<4)&p)+16>>2];c[(ea&p)+8>>2]=(c[(f+(da<<4)&p)+16>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0);break}case 195:{l=f+(da+-1<<4)+16|0;h=c[(l&p)>>2]|0;if(h){if((c[(h&p)>>2]|0)>(c[((c[(ca&p)>>2]|0)&p)+112>>2]|0)){c[(ba&p)>>2]=f+(da+-4<<4)+16;th(ca,20576,ba);h=c[(l&p)>>2]|0}}else h=0;ba=f+(da+-4<<4)+16|0;h=wr(ca,h,ba)|0;c[(ea&p)>>2]=h;c[(ea&p)+4>>2]=c[(ba&p)>>2];c[(ea&p)+8>>2]=(c[(f+(da<<4)&p)+16>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0);if(!((h|0)==0?1:(b[(f+(da+-2<<4)&o)+16>>1]|0)==0)){ca=h+4|0;c[(ca&p)>>2]=c[(ca&p)>>2]|16}break}case 205:case 204:case 203:case 202:case 201:case 200:case 199:case 198:{ba=da+-2|0;c[(ea&p)>>2]=Zq(ca,d[(f+(da+-1<<4)&n)+14>>0]|0,c[(f+(ba<<4)&p)+16>>2]|0,c[(f+(da<<4)&p)+16>>2]|0,0)|0;c[(ea&p)+4>>2]=c[(f+(ba<<4)&p)+20>>2];c[(ea&p)+8>>2]=c[(f+(da<<4)&p)+24>>2];break}case 206:{aa=f+(da<<4)+16|0;ba=c[(aa&p)+4>>2]|0;ca=ea;c[(ca&p)>>2]=c[(aa&p)>>2];c[(ca&p)+4>>2]=ba;c[(ea&p)+8>>2]=0;break}case 207:{aa=f+(da<<4)+16|0;ba=c[(aa&p)+4>>2]|0;ca=ea;c[(ca&p)>>2]=c[(aa&p)>>2];c[(ca&p)+4>>2]=ba;c[(ea&p)+8>>2]=1;break}case 208:{l=da+-2|0;ba=da+-1|0;h=wr(ca,lr(ca,lr(ca,0,c[(f+(da<<4)&p)+16>>2]|0)|0,c[(f+(l<<4)&p)+16>>2]|0)|0,f+(ba<<4)+16|0)|0;c[(ea&p)>>2]=h;if(c[(f+(ba<<4)&p)+24>>2]|0){h=Zq(ca,19,h,0,0)|0;c[(ea&p)>>2]=h}c[(ea&p)+4>>2]=c[(f+(l<<4)&p)+20>>2];c[(ea&p)+8>>2]=c[(f+(da<<4)&p)+24>>2];if(h){ca=h+4|0;c[(ca&p)>>2]=c[(ca&p)>>2]|128}break}case 210:{ba=da+-1|0;c[(ea&p)>>2]=Zq(ca,d[(f+(da<<4)&n)+14>>0]|0,c[(f+(ba<<4)&p)+16>>2]|0,0,0)|0;c[(ea&p)+4>>2]=c[(f+(ba<<4)&p)+20>>2];c[(ea&p)+8>>2]=(c[(f+(da<<4)&p)+16>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0);break}case 209:{l=da+-4|0;ba=da+-3|0;h=wr(ca,lr(ca,lr(ca,lr(ca,0,c[(f+(da+-2<<4)&p)+16>>2]|0)|0,c[(f+(l<<4)&p)+16>>2]|0)|0,c[(f+(da<<4)&p)+16>>2]|0)|0,f+(ba<<4)+16|0)|0;c[(ea&p)>>2]=h;if(c[(f+(ba<<4)&p)+24>>2]|0){h=Zq(ca,19,h,0,0)|0;c[(ea&p)>>2]=h}c[(ea&p)+4>>2]=c[(f+(l<<4)&p)+20>>2];c[(ea&p)+8>>2]=c[(f+(da<<4)&p)+24>>2];if(h){ca=h+4|0;c[(ca&p)>>2]=c[(ca&p)>>2]|128}break}case 223:{l=f+(da+-1<<4)+16|0;h=c[(l&p)>>2]|0;do if(h){if((c[(h&p)>>2]|0)==1){ba=c[(h&p)+4>>2]|0;h=c[(ba&p)>>2]|0;c[(ba&p)>>2]=0;Nk(c[(ca&p)>>2]|0,c[(l&p)>>2]|0);if(h){ba=h+4|0;c[(ba&p)>>2]=c[(ba&p)>>2]&-769|512}c[(ea&p)>>2]=Zq(ca,(c[(f+(da+-3<<4)&p)+16>>2]|0)!=0?78:79,c[(f+(da+-4<<4)&p)+16>>2]|0,h,0)|0;break}h=Zq(ca,75,c[(f+(da+-4<<4)&p)+16>>2]|0,0,0)|0;c[(ea&p)>>2]=h;if(!h){Nk(c[(ca&p)>>2]|0,c[(l&p)>>2]|0);h=0}else{c[(h&p)+20>>2]=c[(l&p)>>2];h=c[(ea&p)>>2]|0;yr(ca,h)}if(c[(f+(da+-3<<4)&p)+16>>2]|0)c[(ea&p)>>2]=Zq(ca,19,h,0,0)|0}else{c[(ea&p)>>2]=Zq(ca,132,0,0,20616+(c[(f+(da+-3<<4)&p)+16>>2]<<3)|0)|0;Gk(c[(ca&p)>>2]|0,c[(f+(da+-4<<4)&p)+16>>2]|0)}while(0);c[(ea&p)+4>>2]=c[(f+(da+-4<<4)&p)+20>>2];c[(ea&p)+8>>2]=(c[(f+(da<<4)&p)+16>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0);break}case 211:{ba=da+-2|0;c[(ea&p)>>2]=Zq(ca,77,c[(f+(ba<<4)&p)+16>>2]|0,0,0)|0;c[(ea&p)+4>>2]=c[(f+(ba<<4)&p)+20>>2];c[(ea&p)+8>>2]=(c[(f+(da<<4)&p)+16>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0);break}case 212:{$=da+-2|0;aa=f+(da<<4)+16|0;ba=Zq(ca,73,c[(f+($<<4)&p)+16>>2]|0,c[(aa&p)>>2]|0,0)|0;c[(ea&p)>>2]=ba;c[(ea&p)+4>>2]=c[(f+($<<4)&p)+20>>2];c[(ea&p)+8>>2]=c[(f+(da<<4)&p)+24>>2];xr(ca,c[(aa&p)>>2]|0,ba,76);break}case 213:{$=da+-3|0;aa=f+(da<<4)+16|0;ba=Zq(ca,148,c[(f+($<<4)&p)+16>>2]|0,c[(aa&p)>>2]|0,0)|0;c[(ea&p)>>2]=ba;c[(ea&p)+4>>2]=c[(f+($<<4)&p)+20>>2];c[(ea&p)+8>>2]=c[(f+(da<<4)&p)+24>>2];xr(ca,c[(aa&p)>>2]|0,ba,77);break}case 215:case 214:{ba=da+-1|0;c[(ea&p)>>2]=Zq(ca,d[(f+(ba<<4)&n)+14>>0]|0,c[(f+(da<<4)&p)+16>>2]|0,0,0)|0;c[(ea&p)+4>>2]=c[(f+(ba<<4)&p)+16>>2];c[(ea&p)+8>>2]=c[(f+(da<<4)&p)+24>>2];break}case 216:{c[(ea&p)>>2]=Zq(ca,157,c[(f+(da<<4)&p)+16>>2]|0,0,0)|0;c[(ea&p)+4>>2]=c[(f+(da+-1<<4)&p)+16>>2];c[(ea&p)+8>>2]=c[(f+(da<<4)&p)+24>>2];break}case 217:{c[(ea&p)>>2]=Zq(ca,158,c[(f+(da<<4)&p)+16>>2]|0,0,0)|0;c[(ea&p)+4>>2]=c[(f+(da+-1<<4)&p)+16>>2];c[(ea&p)+8>>2]=c[(f+(da<<4)&p)+24>>2];break}case 220:{k=lr(ca,lr(ca,0,c[(f+(da+-2<<4)&p)+16>>2]|0)|0,c[(f+(da<<4)&p)+16>>2]|0)|0;l=da+-4|0;h=Zq(ca,74,c[(f+(l<<4)&p)+16>>2]|0,0,0)|0;c[(ea&p)>>2]=h;if(!h)Nk(c[(ca&p)>>2]|0,k);else c[(h&p)+20>>2]=k;if(c[(f+(da+-3<<4)&p)+16>>2]|0)c[(ea&p)>>2]=Zq(ca,19,c[(ea&p)>>2]|0,0,0)|0;c[(ea&p)+4>>2]=c[(f+(l<<4)&p)+20>>2];c[(ea&p)+8>>2]=c[(f+(da<<4)&p)+24>>2];break}case 224:{h=Zq(ca,119,0,0,0)|0;c[(ea&p)>>2]=h;if(!h)Mk(c[(ca&p)>>2]|0,c[(f+(da+-1<<4)&p)+16>>2]|0,1);else{c[(h&p)+20>>2]=c[(f+(da+-1<<4)&p)+16>>2];ba=c[(ea&p)>>2]|0;aa=ba+4|0;c[(aa&p)>>2]=c[(aa&p)>>2]|2099200;yr(ca,ba)}c[(ea&p)+4>>2]=c[(f+(da+-2<<4)&p)+16>>2];c[(ea&p)+8>>2]=(c[(f+(da<<4)&p)+16>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0);break}case 118:{c[(ea&p)>>2]=kr(ca,c[(f+(da+-6<<4)&p)+16>>2]|0,c[(f+(da+-5<<4)&p)+16>>2]|0,c[(f+(da+-4<<4)&p)+16>>2]|0,c[(f+(da+-3<<4)&p)+16>>2]|0,c[(f+(da+-2<<4)&p)+16>>2]|0,c[(f+(da+-1<<4)&p)+16>>2]|0,b[(f+(da+-7<<4)&o)+16>>1]|0,c[(f+(da<<4)&p)+16>>2]|0,c[(f+(da<<4)&p)+20>>2]|0)|0;break}case 120:{c[(ea&p)>>2]=kr(ca,c[(f+(da+-1<<4)&p)+16>>2]|0,0,0,0,0,0,128,0,0)|0;break}case 127:{l=da+-1|0;q=lr(ca,c[(f+(da+-2<<4)&p)+16>>2]|0,c[(f+(l<<4)&p)+16>>2]|0)|0;c[(ea&p)>>2]=q;if(c[(f+(da<<4)&p)+20>>2]|0)mr(ca,q,f+(da<<4)+16|0,1);s=c[(ca&p)>>2]|0;if(q){r=(c[(q&p)+4>>2]|0)+(((c[(q&p)>>2]|0)+-1|0)*20|0)+8|0;mg(s,c[(r&p)>>2]|0);m=c[(f+(l<<4)&p)+20>>2]|0;q=(c[(f+(l<<4)&p)+24>>2]|0)-m|0;if((m|0)!=0?(h=jw(q|0,((q|0)<0)<<31>>31|0,1,0)|0,h=mh(s,h,G)|0,(h|0)!=0):0){kw(h|0,m|0,q|0)|0;a[(h+q&n)>>0]=0}else h=0;c[(r&p)>>2]=h}break}case 133:{l=mh(c[(ca&p)>>2]|0,80,0)|0;if(l){y=l+0|0;k=y+80|0;do{a[(y&n)>>0]=0;y=y+1|0}while((y|0)<(k|0))}c[(ea&p)>>2]=l;break}case 134:{q=c[(f+(da<<4)&p)+16>>2]|0;c[(ea&p)>>2]=q;if(q){l=c[(q&p)>>2]|0;k=l+-1|0;if((k|0)>0)while(1){a[(q+(k*72|0)&n)+44>>0]=a[(q+((l+-2|0)*72|0)&n)+44>>0]|0;l=k+-1|0;if((l|0)>0){ca=k;k=l;l=ca}else break}a[(q&n)+44>>0]=0}break}case 128:{aa=c[(ca&p)>>2]|0;c[(ba&p)>>2]=0;c[(ba&p)+4>>2]=0;ba=nr(aa,116,ba,0)|0;c[(ea&p)>>2]=lr(ca,c[(f+(da+-1<<4)&p)+16>>2]|0,ba)|0;break}case 132:{c[(ea&p)+4>>2]=0;break}case 129:{ba=Zq(ca,116,0,0,f+(da<<4)+16|0)|0;ba=Zq(ca,122,Zq(ca,27,0,0,f+(da+-2<<4)+16|0)|0,ba,0)|0;c[(ea&p)>>2]=lr(ca,c[(f+(da+-3<<4)&p)+16>>2]|0,ba)|0;break}case 136:{c[(ea&p)>>2]=0;break}case 137:{ba=jr(ca,c[(f+(da+-6<<4)&p)+16>>2]|0,f+(da+-5<<4)+16|0,f+(da+-4<<4)+16|0,f+(da+-3<<4)+16|0,0,c[(f+(da+-1<<4)&p)+16>>2]|0,c[(f+(da<<4)&p)+16>>2]|0)|0;c[(ea&p)>>2]=ba;or(ca,ba,f+(da+-2<<4)+16|0);break}case 135:{h=c[(f+(da+-1<<4)&p)+16>>2]|0;c[(ea&p)>>2]=h;if((h|0)!=0?(w=c[(h&p)>>2]|0,(w|0)>0):0)a[(h+((w+-1|0)*72|0)&n)+44>>0]=c[(f+(da<<4)&p)+16>>2];break}case 138:{c[(ea&p)>>2]=jr(ca,c[(f+(da+-6<<4)&p)+16>>2]|0,0,0,f+(da+-2<<4)+16|0,c[(f+(da+-4<<4)&p)+16>>2]|0,c[(f+(da+-1<<4)&p)+16>>2]|0,c[(f+(da<<4)&p)+16>>2]|0)|0;break}case 139:{l=f+(da+-6<<4)+16|0;q=c[(l&p)>>2]|0;if((((q|0)==0?(c[(f+(da+-2<<4)&p)+20>>2]|0)==0:0)?(c[(f+(da+-1<<4)&p)+16>>2]|0)==0:0)?(c[(f+(da<<4)&p)+16>>2]|0)==0:0){c[(ea&p)>>2]=c[(f+(da+-4<<4)&p)+16>>2];break a}s=f+(da+-4<<4)+16|0;k=c[(s&p)>>2]|0;r=c[(k&p)>>2]|0;if((r|0)==1){l=jr(ca,q,0,0,f+(da+-2<<4)+16|0,0,c[(f+(da+-1<<4)&p)+16>>2]|0,c[(f+(da<<4)&p)+16>>2]|0)|0;c[(ea&p)>>2]=l;if(l){_=(c[(l&p)>>2]|0)+-1|0;ba=c[(s&p)>>2]|0;aa=ba+16|0;c[(l+(_*72|0)&p)+16>>2]=c[(aa&p)>>2];$=ba+12|0;c[(l+(_*72|0)&p)+12>>2]=c[($&p)>>2];ba=ba+28|0;c[(l+(_*72|0)&p)+28>>2]=c[(ba&p)>>2];c[($&p)>>2]=0;c[(aa&p)>>2]=0;c[(ba&p)>>2]=0}Do(c[(ca&p)>>2]|0,c[(s&p)>>2]|0);break a}if(k){m=r+-1|0;if((m|0)>0){q=r;while(1){a[(k+(m*72|0)&n)+44>>0]=a[(k+((q+-2|0)*72|0)&n)+44>>0]|0;q=m+-1|0;if((q|0)>0){ba=m;m=q;q=ba}else break}}a[(k&n)+44>>0]=0}ba=kr(ca,0,k,0,0,0,0,512,0,0)|0;c[(ea&p)>>2]=jr(ca,c[(l&p)>>2]|0,0,0,f+(da+-2<<4)+16|0,ba,c[(f+(da+-1<<4)&p)+16>>2]|0,c[(f+(da<<4)&p)+16>>2]|0)|0;break}case 149:case 140:{c[(ea&p)>>2]=0;c[(ea&p)+4>>2]=0;break}case 144:{c[(ea&p)>>2]=qr(ca,f+(da+-1<<4)+16|0,0,0)|0;break}case 145:{c[(ea&p)>>2]=qr(ca,f+(da+-2<<4)+16|0,f+(da+-1<<4)+16|0,0)|0;break}case 146:{c[(ea&p)>>2]=qr(ca,f+(da+-3<<4)+16|0,f+(da+-2<<4)+16|0,f+(da+-1<<4)+16|0)|0;break}case 233:case 231:case 171:case 164:case 147:{c[(ea&p)>>2]=c[(f+(da<<4)&p)+16>>2];break}case 234:case 232:case 170:case 163:case 148:{c[(ea&p)>>2]=0;break}case 151:{c[(ea&p)>>2]=0;c[(ea&p)+4>>2]=1;break}case 143:{c[(ea&p)>>2]=1;break}case 142:{c[(ea&p)>>2]=pr(c[(ca&p)>>2]|0,0,f+(da+-1<<4)+16|0,f+(da<<4)+16|0)|0;break}case 157:{h=lr(ca,0,c[(f+(da+-1<<4)&p)+16>>2]|0)|0;c[(ea&p)>>2]=h;if((h|0)!=0?(k=c[(h&p)+4>>2]|0,(k|0)!=0):0)a[(k&n)+12>>0]=c[(f+(da<<4)&p)+16>>2];break}case 160:case 158:{c[(ea&p)>>2]=0;break}case 159:{c[(ea&p)>>2]=1;break}case 165:{c[(ea&p)>>2]=0;c[(ea&p)+4>>2]=0;break}case 166:{c[(ea&p)>>2]=c[(f+(da<<4)&p)+16>>2];c[(ea&p)+4>>2]=0;break}case 179:case 153:{c[(ea&p)>>2]=0;break}case 180:case 152:{c[(ea&p)>>2]=c[(f+(da+-1<<4)&p)+16>>2];break}case 172:{l=c[(f+(da+-7<<4)&p)+16>>2]|0;if(l){aa=ca+532|0;c[(l&p)+4>>2]=c[(aa&p)>>2];c[(aa&p)>>2]=l;a[(ca&n)+449>>0]=1}m=f+(da+-4<<4)+16|0;or(ca,c[(m&p)>>2]|0,f+(da+-3<<4)+16|0);q=f+(da+-1<<4)+16|0;l=c[(q&p)>>2]|0;if(l){if((c[(l&p)>>2]|0)>(c[((c[(ca&p)>>2]|0)&p)+96>>2]|0)){c[(ba&p)>>2]=20560;th(ca,34544,ba);l=c[(q&p)>>2]|0}}else l=0;sr(ca,c[(m&p)>>2]|0,l,c[(f+(da<<4)&p)+16>>2]|0,d[(f+(da+-5<<4)&n)+16>>0]|0);break}case 235:case 162:case 155:{c[(ea&p)>>2]=c[(f+(da<<4)&p)+16>>2];break}case 156:{h=lr(ca,c[(f+(da+-3<<4)&p)+16>>2]|0,c[(f+(da+-1<<4)&p)+16>>2]|0)|0;c[(ea&p)>>2]=h;if(h)a[((c[(h&p)+4>>2]|0)+(((c[(h&p)>>2]|0)+-1|0)*20|0)&n)+12>>0]=c[(f+(da<<4)&p)+16>>2];break}case 7:{a[(ca&n)+450>>0]=2;c[(ca&p)+440>>2]=0;break}case 23:{Tq(ca,1,f+(da<<4)+16|0);break}case 24:{Tq(ca,2,f+(da<<4)+16|0);break}case 26:{Uq(ca,f+(da+-1<<4)+16|0,f+(da<<4)+16|0,c[(f+(da+-4<<4)&p)+16>>2]|0,0,0,c[(f+(da+-2<<4)&p)+16>>2]|0);break}default:{}}while(0);h=a[(g<<1&n)+20912>>0]|0;r=h&255;q=a[(g<<1&n)+20913>>0]|0;m=q&255;s=(c[(f&p)>>2]|0)-m|0;c[(f&p)>>2]=s;l=b[((b[(e[(f+(da-m<<4)&o)+12>>1]<<1&o)+21568>>1]|0)+r<<1&o)+22184>>1]|0;k=l&65535;do if((l&65535)<642)if(!(q<<24>>24)){kq(f,k,r,ea);break}else{c[(f&p)>>2]=s+1;da=1-m+da|0;b[(f+(da<<4)&o)+12>>1]=l;a[(f+(da<<4)&n)+14>>0]=h;da=f+(da<<4)+16|0;c[(da&p)>>2]=c[(ea&p)>>2];c[(da&p)+4>>2]=c[(ea&p)+4>>2];c[(da&p)+8>>2]=c[(ea&p)+8>>2];break}else{h=c[(ga&p)>>2]|0;if((s|0)>-1)do Pn(f);while((c[(f&p)>>2]|0)>-1);c[(ga&p)>>2]=h}while(0);i=ha;return}function nq(e,f){e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=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,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,ga=0;da=i;i=i+64|0;if((i|0)>=(j|0))fa();ca=da+8|0;Z=da;q=da+24|0;h=da+16|0;l=xq(e,0,h)|0;do if(!l){if(c[(h&p)>>2]|0){l=ds(e,f)|0;if(!l)g=0;else k=4}else{l=1;k=4}if((k|0)==4){ba=e+43|0;k=(a[(ba&n)>>0]|0)==0;do if(!(a[(e&n)+46>>0]&2)){if(k?(m=e+4|0,aa=c[(m&p)>>2]|0,ac[c[((c[(aa&p)>>2]|0)&p)+40>>2]&63](aa,24,0)|0,m=c[(m&p)>>2]|0,m=pc[c[((c[(m&p)>>2]|0)&p)+56>>2]&31](m,0,1,10)|0,(m|0)!=0):0){h=l;g=m;break}aa=e+44|0;a[(aa&n)>>0]=1;k=xq(e,0,h)|0;if(!k){h=ds(e,f)|0;if(!h){h=0;g=0}else{$=d[(e&n)+45>>0]|0;_=$+1|0;$=7-$|0;if(!((a[(ba&n)>>0]|0)==0?(g=c[(e&p)+4>>2]|0,g=pc[c[((c[(g&p)>>2]|0)&p)+56>>2]&31](g,_,$,10)|0,(g|0)!=0):0)){l=e+52|0;k=l+48|0;do{c[(l&p)>>2]=0;l=l+4|0}while((l|0)<(k|0));T=e+8|0;g=c[(T&p)>>2]|0;g=rc[c[((c[(g&p)>>2]|0)&p)+24>>2]&127](g,Z)|0;a:do if(!g){U=Z;S=c[(U&p)+4>>2]|0;b:do if((S|0)>0|(S|0)==0&(c[(U&p)>>2]|0)>>>0>32){g=c[(T&p)>>2]|0;g=tc[c[((c[(g&p)>>2]|0)&p)+8>>2]&31](g,q,32,0,0)|0;if(g)break a;m=d[(q&n)+3>>0]|0;k=d[(q&n)+9>>0]<<16|d[(q&n)+8>>0]<<24;g=d[(q&n)+10>>0]<<8;l=k|g|d[(q&n)+11>>0];if(((d[(q&n)+1>>0]<<16|d[(q&n)>>0]<<24|d[(q&n)+2>>0]<<8|m&254|0)==931071618?!((l+-1&l|0)!=0|(l|0)>65536|(l|0)<512):0)?(U=m&1,V=e+65|0,a[(V&n)>>0]=U,W=e+36|0,c[(W&p)>>2]=l,c[(e&p)+104>>2]=d[(q&n)+13>>0]<<16|d[(q&n)+12>>0]<<24|d[(q&n)+14>>0]<<8|d[(q&n)+15>>0],X=e+84|0,S=q+16|0,Q=S,Q=d[(Q&n)>>0]|d[(Q&n)+1>>0]<<8|d[(Q&n)+2>>0]<<16|d[(Q&n)+3>>0]<<24,S=S+4|0,S=d[(S&n)>>0]|d[(S&n)+1>>0]<<8|d[(S&n)+2>>0]<<16|d[(S&n)+3>>0]<<24,Y=X,R=Y,a[(R&n)>>0]=Q,a[(R&n)+1>>0]=Q>>8,a[(R&n)+2>>0]=Q>>16,a[(R&n)+3>>0]=Q>>24,Y=Y+4|0,a[(Y&n)>>0]=S,a[(Y&n)+1>>0]=S>>8,a[(Y&n)+2>>0]=S>>16,a[(Y&n)+3>>0]=S>>24,Y=e+76|0,yq(U^1,q,24,0,Y),(c[(Y&p)>>2]|0)==(d[(q&n)+25>>0]<<16|d[(q&n)+24>>0]<<24|d[(q&n)+26>>0]<<8|d[(q&n)+27>>0]|0)):0){S=e+80|0;if((c[(S&p)>>2]|0)!=(d[(q&n)+29>>0]<<16|d[(q&n)+28>>0]<<24|d[(q&n)+30>>0]<<8|d[(q&n)+31>>0]|0)){l=0;g=0;break}if((d[(q&n)+5>>0]<<16|d[(q&n)+4>>0]<<24|d[(q&n)+6>>0]<<8|d[(q&n)+7>>0]|0)!=3007e3){c[(ca&p)>>2]=49983;c[(ca&p)+4>>2]=10788;bd(14,14848,ca);g=14;break a}w=l+24|0;U=Tc(w)|0;if(!U){g=7;break a}x=U+24|0;y=((w|0)<0)<<31>>31;q=jw(w|0,y|0,32,0)|0;m=G;R=Z;Q=c[(R&p)+4>>2]|0;c:do if(!((m|0)>(Q|0)|((m|0)==(Q|0)?q>>>0>(c[(R&p)>>2]|0)>>>0:0))){z=U+8|0;A=U+1|0;B=U+2|0;C=U+3|0;D=U+16|0;E=U+17|0;F=U+18|0;H=U+19|0;I=U+20|0;J=U+21|0;K=U+22|0;L=U+23|0;M=U+4|0;N=U+5|0;O=U+6|0;P=U+7|0;Q=e+68|0;R=e+72|0;u=(k>>>16|g)&65535;v=e+66|0;r=32;k=0;l=0;s=0;t=1;while(1){g=c[(T&p)>>2]|0;g=tc[c[((c[(g&p)>>2]|0)&p)+8>>2]&31](g,U,w,r,k)|0;if(g){k=36;break}if(Zv(X,z,8)|0){g=s;k=37;break}k=d[(A&n)>>0]<<16|d[(U&n)>>0]<<24|d[(B&n)>>0]<<8|d[(C&n)>>0];if(!k){g=s;k=37;break}r=(a[(V&n)>>0]|0)==0&1;yq(r,U,8,Y,Y);yq(r,x,c[(W&p)>>2]|0,Y,Y);if((c[(Y&p)>>2]|0)!=(d[(E&n)>>0]<<16|d[(D&n)>>0]<<24|d[(F&n)>>0]<<8|d[(H&n)>>0]|0)){g=s;k=37;break}if((c[(S&p)>>2]|0)!=(d[(J&n)>>0]<<16|d[(I&n)>>0]<<24|d[(K&n)>>0]<<8|d[(L&n)>>0]|0)){g=s;break c}r=d[(N&n)>>0]<<16|d[(M&n)>>0]<<24|d[(O&n)>>0]<<8|d[(P&n)>>0];g=_o(e,t,k)|0;if(g){k=36;break}if(!r)g=s;else{c[(Q&p)>>2]=t;c[(R&p)>>2]=r;b[(v&o)>>1]=u;l=c[(Y&p)>>2]|0;g=c[(S&p)>>2]|0}k=jw(q|0,m|0,w|0,y|0)|0;r=G;s=Z;ea=c[(s&p)+4>>2]|0;if((r|0)>(ea|0)|((r|0)==(ea|0)?k>>>0>(c[(s&p)>>2]|0)>>>0:0))break c;else{ga=m;ea=q;q=k;m=r;s=g;t=t+1|0;k=ga;r=ea}}if((k|0)==36){Wc(U);break a}else if((k|0)==37){Wc(U);break b}}else{l=0;g=0}while(0);Wc(U)}else{l=0;g=0}}else{l=0;g=0}while(0);c[(e&p)+76>>2]=l;c[(e&p)+80>>2]=g;$o(e);k=c[(c[(e&p)+32>>2]&p)>>2]|0;c[(k&p)+96>>2]=0;c[(k&p)+100>>2]=0;g=k+104|0;c[(g&p)>>2]=-1;c[(k&p)+108>>2]=-1;c[(k&p)+112>>2]=-1;c[(k&p)+116>>2]=-1;k=e+68|0;l=c[(k&p)>>2]|0;if(l)c[(g&p)>>2]=l;if(!(c[(e&p)+72>>2]|0))g=0;else{g=c[(e&p)+100>>2]|0;c[(ca&p)>>2]=c[(k&p)>>2];c[(ca&p)+4>>2]=g;bd(283,14888,ca);g=0}}while(0);if(!(a[(ba&n)>>0]|0)){Z=c[(e&p)+4>>2]|0;pc[c[((c[(Z&p)>>2]|0)&p)+56>>2]&31](Z,_,$,9)|0}}c[(f&p)>>2]=1}}else{h=l;g=k}a[(aa&n)>>0]=0;if(!(a[(ba&n)>>0]|0)){ba=c[(e&p)+4>>2]|0;pc[c[((c[(ba&p)>>2]|0)&p)+56>>2]&31](ba,0,1,9)|0}}else if(k){h=e+4|0;g=c[(h&p)>>2]|0;g=pc[c[((c[(g&p)>>2]|0)&p)+56>>2]&31](g,0,1,6)|0;if(!g)if(!(a[(ba&n)>>0]|0)){h=c[(h&p)>>2]|0;pc[c[((c[(h&p)>>2]|0)&p)+56>>2]&31](h,0,1,5)|0;h=l;g=264}else{h=l;g=264}else h=l}else{h=l;g=264}while(0);if(h)break}if((c[(e&p)+52>>2]|0)!=3007e3){c[(ca&p)>>2]=50909;c[(ca&p)+4>>2]=10788;bd(14,14848,ca);g=14}}else g=l;while(0);i=da;return g|0}function oq(a,d,f,g,h,i){a=a|0;d=d|0;f=f|0;g=g|0;h=h|0;i=i|0;var j=0,k=0,l=0,m=0,n=0,q=0,r=0,s=0,t=0,u=0;r=c[(h&p)>>2]|0;s=c[(g&p)>>2]|0;k=(r|0)>0;j=(f|0)>0;if(k|j){n=j;l=0;q=0;m=0;while(1){do if(n){j=d+(l<<1)|0;if(k?(t=s+(m<<1)|0,(c[(a+((e[(j&o)>>1]|0)<<2)&p)>>2]|0)>>>0>=(c[(a+((e[(t&o)>>1]|0)<<2)&p)>>2]|0)>>>0):0){k=t;u=7;break}l=l+1|0;k=j}else{k=s+(m<<1)|0;u=7}while(0);if((u|0)==7){u=0;m=m+1|0}n=b[(k&o)>>1]|0;k=c[(a+((n&65535)<<2)&p)>>2]|0;j=q+1|0;b[(i+(q<<1)&o)>>1]=n;if((l|0)<(f|0))l=((c[(a+((e[(d+(l<<1)&o)>>1]|0)<<2)&p)>>2]|0)==(k|0)&1)+l|0;k=(m|0)<(r|0);n=(l|0)<(f|0);if(!(k|n))break;else q=j}}else j=0;c[(g&p)>>2]=d;c[(h&p)>>2]=j;kw(d|0,i|0,j<<1|0)|0;return}function pq(a,b){a=a|0;b=b|0;var d=0,e=0;e=c[(a&p)+4>>2]|0;c[(e&p)+4>>2]=c[(a&p)>>2];a=c[((c[(e&p)>>2]|0)&p)+204>>2]|0;c[(a&p)+16>>2]=b;e=c[2217]|0;d=c[(a&p)+40>>2]|0;if((b|0)>-1)a=b;else{b=sw(b|0,((b|0)<0)<<31>>31|0,-1024,-1)|0;a=(c[(a&p)+24>>2]|0)+(c[(a&p)+20>>2]|0)|0;a=qw(b|0,G|0,a|0,((a|0)<0)<<31>>31|0)|0}jc[e&15](d,a);return}function qq(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0;g=(c[(b&p)+12>>2]|0)+136|0;e=g;f=c[(e&p)>>2]|0;e=c[(e&p)+4>>2]|0;do if((f|0)==0&(e|0)==0)if(!(bh(c[(c[((c[(b&p)>>2]|0)&p)+32>>2]&p)>>2]|0,g)|0)){e=g;f=c[(e&p)>>2]|0;e=c[(e&p)+4>>2]|0;h=5;break}else{e=g;c[(e&p)>>2]=0;c[(e&p)+4>>2]=0;e=d;c[(e&p)>>2]=0;c[(e&p)+4>>2]=0;e=1;break}else h=5;while(0);if((h|0)==5){g=d;c[(g&p)>>2]=f;c[(g&p)+4>>2]=e;if((e|0)>0|(e|0)==0&f>>>0>0){a[(d&n)+42>>0]=1;e=0}else e=1}return e|0}function rq(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,o=0,q=0,r=0;r=i;i=i+16|0;if((i|0)>=(j|0))fa();o=r;c[(o&p)>>2]=d;d=b;b=0;a:while(1){h=c[(o&p)>>2]|0;g=c[(h&p)>>2]|0;c[(o&p)>>2]=h+4;h=c[(o&p)>>2]|0;k=c[(h&p)>>2]|0;c[(o&p)>>2]=h+4;h=c[(o&p)>>2]|0;l=c[(h&p)>>2]|0;c[(o&p)>>2]=h+4;h=c[(o&p)>>2]|0;m=c[(h&p)>>2]|0;c[(o&p)>>2]=h+4;h=c[(o&p)>>2]|0;e=c[(h&p)>>2]|0;c[(o&p)>>2]=h+4;if(!g){f=d;d=0}else{f=d;d=0;do{g=g+-1|0;h=a[(f&n)>>0]|0;if(((h&255)+-48|0)>>>0>=10)break a;d=(d*10|0)+-48+(h<<24>>24)|0;f=f+1|0}while((g|0)!=0)}if((d|0)<(k|0)|(d|0)>(l|0))break;if(!m){q=9;break}if((m|0)!=(a[(f&n)>>0]|0))break;c[(e&p)>>2]=d;d=f+1|0;b=b+1|0}if((q|0)==9){c[(e&p)>>2]=d;b=b+1|0}i=r;return b|0}function sq(b,e){b=b|0;e=e|0;var f=0,g=0,k=0,l=0.0,m=0,o=0.0,r=0,s=0,t=0,u=0,v=0,w=0,x=0;x=i;i=i+64|0;if((i|0)>=(j|0))fa();v=x;t=x+56|0;u=x+52|0;f=x+48|0;r=x+44|0;s=x+40|0;c[(v&p)>>2]=2;c[(v&p)+4>>2]=0;c[(v&p)+8>>2]=24;c[(v&p)+12>>2]=58;c[(v&p)+16>>2]=f;c[(v&p)+20>>2]=2;c[(v&p)+24>>2]=0;c[(v&p)+28>>2]=59;c[(v&p)+32>>2]=0;c[(v&p)+36>>2]=r;do if((rq(b,v)|0)==2){m=b+5|0;if((a[(m&n)>>0]|0)==58){c[(v&p)>>2]=2;c[(v&p)+4>>2]=0;c[(v&p)+8>>2]=59;c[(v&p)+12>>2]=0;c[(v&p)+16>>2]=s;if((rq(b+6|0,v)|0)!=1){f=1;break}m=b+8|0;if((a[(m&n)>>0]|0)==46?(g=b+9|0,k=a[(g&n)>>0]|0,((k&255)+-48|0)>>>0<10):0){o=0.0;l=1.0;do{o=o*10.0+ +(k<<24>>24)+-48.0;l=l*10.0;g=g+1|0;k=a[(g&n)>>0]|0}while(((k&255)+-48|0)>>>0<10);l=o/l}else{g=m;l=0.0}}else{c[(s&p)>>2]=0;g=m;l=0.0}a[(e&n)+42>>0]=0;a[(e&n)+41>>0]=1;c[(e&p)+20>>2]=c[(f&p)>>2];c[(e&p)+24>>2]=c[(r&p)>>2];h[(e&q)+32>>3]=l+ +(c[(s&p)>>2]|0);while(1){f=g+1|0;if(!(a[((d[(g&n)>>0]|0)&n)+10368>>0]&1)){m=g;break}else g=f}b=e+28|0;c[(b&p)>>2]=0;g=a[(m&n)>>0]|0;if(g<<24>>24==43){k=1;w=14}else if(g<<24>>24!=45)if((g&-33)<<24>>24==90){k=0;w=16}else f=0;else{k=-1;w=14}if((w|0)==14){c[(v&p)>>2]=2;c[(v&p)+4>>2]=0;c[(v&p)+8>>2]=14;c[(v&p)+12>>2]=58;c[(v&p)+16>>2]=t;c[(v&p)+20>>2]=2;c[(v&p)+24>>2]=0;c[(v&p)+28>>2]=59;c[(v&p)+32>>2]=0;c[(v&p)+36>>2]=u;if((rq(f,v)|0)!=2){f=1;break}k=ca(((c[(t&p)>>2]|0)*60|0)+(c[(u&p)>>2]|0)|0,k)|0;c[(b&p)>>2]=k;f=m+6|0;w=16}if((w|0)==16)while(1){g=a[(f&n)>>0]|0;if(!(a[(g&255&n)+10368>>0]&1)){f=k;break}else f=f+1|0}if(!(g<<24>>24)){a[(e&n)+43>>0]=(f|0)!=0&1;f=0}else f=1}else f=1;while(0);i=x;return f|0}function tq(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,k=0,l=0,m=0,o=0,r=0.0,s=0;o=i;i=i+112|0;if((i|0)>=(j|0))fa();k=o+48|0;m=o;l=o+96|0;f=k+0|0;b=b+0|0;g=f+48|0;do{c[(f&p)>>2]=c[(b&p)>>2];f=f+4|0;b=b+4|0}while((f|0)<(g|0));oo(k);po(k);g=k+8|0;if(((c[(g&p)>>2]|0)+-1971|0)>>>0>66){c[(g&p)>>2]=2e3;c[(k&p)+12>>2]=1;c[(k&p)+16>>2]=1;c[(k&p)+20>>2]=0;c[(k&p)+24>>2]=0;h[(k&q)+32>>3]=0.0}else{f=k+32|0;h[(f&q)>>3]=+(~~(+h[(f&q)>>3]+.5)|0)}c[(k&p)+28>>2]=0;a[(k&n)+42>>0]=0;no(k);b=k;f=c[(b&p)>>2]|0;b=c[(b&p)+4>>2]|0;g=qw(f|0,b|0,1e3,0)|0;g=jw(g|0,G|0,-413362496,0)|0;c[(l&p)>>2]=g;g=Vb(l|0)|0;g=(c[2253]|0)!=0?0:g;if(!g){c[(d&p)+20>>2]=1;a[(d&n)+25>>0]=1;Xg(c[(d&p)>>2]|0,20056,-1,1,-1)|0;c[(e&p)>>2]=1;f=0;g=0}else{k=c[(g&p)+4>>2]|0;l=c[(g&p)+8>>2]|0;d=c[(g&p)+12>>2]|0;s=(c[(g&p)+16>>2]|0)+1|0;r=+(c[(g&p)>>2]|0);c[(m&p)+8>>2]=(c[(g&p)+20>>2]|0)+1900;c[(m&p)+12>>2]=s;c[(m&p)+16>>2]=d;c[(m&p)+20>>2]=l;c[(m&p)+24>>2]=k;h[(m&q)+32>>3]=r;a[(m&n)+40>>0]=1;a[(m&n)+41>>0]=1;a[(m&n)+42>>0]=0;a[(m&n)+43>>0]=0;no(m);c[(e&p)>>2]=0;g=m;g=dw(c[(g&p)>>2]|0,c[(g&p)+4>>2]|0,f|0,b|0)|0;f=G}G=f;i=o;return g|0}function uq(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,o=0,q=0,r=0;r=i;i=i+32|0;if((i|0)>=(j|0))fa();q=r+12|0;l=r;o=r+8|0;k=r+16|0;a[(d&n)>>0]=0;f=rc[c[((c[(b&p)>>2]|0)&p)+24>>2]&127](b,l)|0;h=l;g=c[(h&p)>>2]|0;h=c[(h&p)+4>>2]|0;if(!((f|0)!=0|((h|0)<0|(h|0)==0&g>>>0<16))){f=jw(g|0,h|0,-16,-1)|0;f=es(b,f,G,q)|0;if(!f){m=c[(q&p)>>2]|0;if(!(m>>>0>=e>>>0|(m|0)==0)){f=l;f=jw(c[(f&p)>>2]|0,c[(f&p)+4>>2]|0,-12,-1)|0;f=es(b,f,G,o)|0;if(!f){f=l;f=jw(c[(f&p)>>2]|0,c[(f&p)+4>>2]|0,-8,-1)|0;f=tc[c[((c[(b&p)>>2]|0)&p)+8>>2]&31](b,k,8,f,G)|0;if(!f)if(!(Zv(k,14808,8)|0)){f=l;f=jw(c[(f&p)>>2]|0,c[(f&p)+4>>2]|0,-16,-1)|0;f=dw(f|0,G|0,m|0,0)|0;f=tc[c[((c[(b&p)>>2]|0)&p)+8>>2]&31](b,d,m,f,G)|0;if(!f){g=c[(o&p)>>2]|0;h=0;while(1){e=a[(d+h&n)>>0]|0;f=g-e|0;h=h+1|0;if(h>>>0>=m>>>0)break;else g=f}c[(o&p)>>2]=f;if((g|0)==(e|0))f=m;else{c[(q&p)>>2]=0;f=0}a[(d+f&n)>>0]=0;f=0}}else f=0}}else f=0}}i=r;return f|0}function vq(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,k=0,l=0,m=0,n=0,o=0,q=0,r=0,s=0,t=0;t=i;i=i+16|0;if((i|0)>=(j|0))fa();l=t+8|0;r=t+4|0;o=t;s=a+72|0;h=s;k=c[(h&p)>>2]|0;h=c[(h&p)+4>>2]|0;if((k|0)==0&(h|0)==0){m=0;n=0;k=c[(a&p)+148>>2]|0}else{m=jw(k|0,h|0,-1,-1)|0;k=c[(a&p)+148>>2]|0;m=qw(m|0,G|0,k|0,0)|0;m=jw(m|0,G|0,1,0)|0;m=sw(m|0,G|0,k|0,0)|0;n=G}q=s;c[(q&p)>>2]=m;c[(q&p)+4>>2]=n;q=a+148|0;k=jw(k|0,0,m|0,n|0)|0;h=G;do if(!((h|0)>(e|0)|(h|0)==(e|0)&k>>>0>d>>>0)){if((b|0)==0?(b=a+80|0,(m|0)==(c[(b&p)>>2]|0)?(n|0)==(c[(b&p)+4>>2]|0):0):0)d=a+64|0;else{k=a+64|0;e=c[(k&p)>>2]|0;e=tc[c[((c[(e&p)>>2]|0)&p)+8>>2]&31](e,l,8,m,n)|0;if(e)break;if(!(Zv(l,14808,8)|0))d=k;else{e=101;break}}l=c[(d&p)>>2]|0;e=jw(m|0,n|0,8,0)|0;e=es(l,e,G,f)|0;if(!e){f=c[(d&p)>>2]|0;e=jw(m|0,n|0,12,0)|0;e=es(f,e,G,a+48|0)|0;if(!e){f=c[(d&p)>>2]|0;e=jw(m|0,n|0,16,0)|0;e=es(f,e,G,g)|0;if(!e){h=s;k=c[(h&p)>>2]|0;h=c[(h&p)+4>>2]|0;if((k|0)==0&(h|0)==0){g=c[(d&p)>>2]|0;e=jw(m|0,n|0,20,0)|0;e=es(g,e,G,o)|0;if(e)break;g=c[(d&p)>>2]|0;e=jw(m|0,n|0,24,0)|0;e=es(g,e,G,r)|0;if(e)break;d=c[(r&p)>>2]|0;if(!d){h=c[(a&p)+152>>2]|0;c[(r&p)>>2]=h}else h=d;d=c[(o&p)>>2]|0;if(h>>>0<512|d>>>0<32|h>>>0>65536|d>>>0>65536){e=101;break}if(h+-1&h){e=101;break}if(d+-1&d){e=101;break}e=al(a,r,-1)|0;c[(q&p)>>2]=d;h=s;k=c[(h&p)>>2]|0;h=c[(h&p)+4>>2]|0}else{d=c[(q&p)>>2]|0;e=0}m=jw(k|0,h|0,d|0,0)|0;n=s;c[(n&p)>>2]=m;c[(n&p)+4>>2]=G}}}}else e=101;while(0);i=t;return e|0}function wq(f,g,h,k,l){f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;var m=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;D=i;i=i+16|0;if((i|0)>=(j|0))fa();y=D+8|0;r=D+4|0;u=D;B=c[(f&p)+200>>2]|0;C=(k|0)!=0;q=c[((C?f+64|0:f+68|0)&p)>>2]|0;t=g;t=es(q,c[(t&p)>>2]|0,c[(t&p)+4>>2]|0,r)|0;do if(!t){A=f+152|0;x=c[(A&p)>>2]|0;t=g;t=jw(c[(t&p)>>2]|0,c[(t&p)+4>>2]|0,4,0)|0;t=tc[c[((c[(q&p)>>2]|0)&p)+8>>2]&31](q,B,x,t,G)|0;if(!t){E=c[(A&p)>>2]|0;s=(k<<2)+4+E|0;t=g;t=jw(s|0,((s|0)<0)<<31>>31|0,c[(t&p)>>2]|0,c[(t&p)+4>>2]|0)|0;s=G;x=g;c[(x&p)>>2]=t;c[(x&p)+4>>2]=s;x=c[(r&p)>>2]|0;if((x|0)!=0?(x|0)!=(((c[2514]|0)/(E|0)|0)+1|0):0)if(x>>>0<=(c[(f&p)+24>>2]|0)>>>0?(di(h,x)|0)==0:0){if(C){t=jw(t|0,s|0,-4,-1)|0;t=es(q,t,G,u)|0;if(t){m=t;break}if(!l){t=c[(f&p)+48>>2]|0;s=(c[(A&p)>>2]|0)+-200|0;if((s|0)>0)do{t=(d[(B+s&n)>>0]|0)+t|0;s=s+-200|0}while((s|0)>0);if((t|0)!=(c[(u&p)>>2]|0)){m=101;break}}}if((h|0)!=0?(m=bi(h,x)|0,(m|0)!=0):0)break;u=(x|0)==1;if(u?(v=f+142|0,w=a[(B&n)+20>>0]|0,(b[(v&o)>>1]|0)!=(w&255|0)):0)b[(v&o)>>1]=w&255;if(!(c[(f&p)+208>>2]|0)){w=f+204|0;t=ac[c[8876>>2]&63](c[((c[(w&p)>>2]|0)&p)+40>>2]|0,x,0)|0;t=il(c[(w&p)>>2]|0,x,t)|0}else t=0;c[(y&p)>>2]=t;if(C)if(!(a[(f&n)+7>>0]|0)){w=g;h=c[(w&p)+4>>2]|0;s=f+80|0;v=c[(s&p)+4>>2]|0;s=(h|0)<(v|0)|((h|0)==(v|0)?(c[(w&p)>>2]|0)>>>0<=(c[(s&p)>>2]|0)>>>0:0)}else s=1;else if(!t)s=1;else s=(b[(t&o)+24>>1]&4)==0;r=c[(f&p)+60>>2]|0;q=c[(r&p)>>2]|0;do if(q){m=a[(f&n)+16>>0]|0;if((m&255)>3){if(!s){z=33;break}}else if(!(m<<24>>24==0&s)){z=33;break}s=c[(A&p)>>2]|0;m=sw(s|0,((s|0)<0)<<31>>31|0,x+-1|0,0)|0;m=tc[c[(q&p)+12>>2]&31](r,B,s,m,G)|0;s=f+32|0;if(x>>>0>(c[(s&p)>>2]|0)>>>0)c[(s&p)>>2]=x;s=c[(f&p)+88>>2]|0;if(s)ap(s,x,B)}else z=33;while(0);if((z|0)==33)if((k|0)==0&(t|0)==0){w=f+20|0;a[(w&n)>>0]=d[(w&n)>>0]|2;m=zg(f,x,y,1)|0;a[(w&n)>>0]=d[(w&n)>>0]&253;if(m)break;t=c[(y&p)>>2]|0;m=t+24|0;b[(m&o)>>1]=e[(m&o)>>1]&65527;To(t);m=0}else m=0;if(t){r=c[(t&p)+4>>2]|0;kw(r|0,B|0,c[(A&p)>>2]|0)|0;cc[c[(f&p)+196>>2]&31](t);do if(C){if((l|0)!=0?(w=g,h=c[(w&p)+4>>2]|0,x=f+80|0,v=c[(x&p)+4>>2]|0,(h|0)>(v|0)|((h|0)==(v|0)?(c[(w&p)>>2]|0)>>>0>(c[(x&p)>>2]|0)>>>0:0)):0)break;xl(t)}while(0);if(u){s=f+104|0;q=r+24|0;r=s+16|0;do{a[(s&n)>>0]=a[(q&n)>>0]|0;s=s+1|0;q=q+1|0}while((s|0)<(r|0))}ol(t)}}else m=0;else m=101}else m=t}else m=t;while(0);i=D;return m|0}function xq(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0;g=b+24|0;if((c[(g&p)>>2]|0)<=(e|0)){i=e+1|0;j=b+32|0;h=Xc(c[(j&p)>>2]|0,i<<2)|0;if(!h){g=7;h=0}else{k=c[(g&p)>>2]|0;fw(h+(k<<2)|0,0,i-k<<2|0)|0;c[(j&p)>>2]=h;c[(g&p)>>2]=i;k=5}}else{h=c[(b&p)+32>>2]|0;k=5}if((k|0)==5){j=b+32|0;h=h+(e<<2)|0;do if(!(c[(h&p)>>2]|0)){if((a[(b&n)+43>>0]|0)!=2){g=c[(b&p)+4>>2]|0;g=tc[c[((c[(g&p)>>2]|0)&p)+52>>2]&31](g,e,32768,d[(b&n)+44>>0]|0,h)|0;if((g|0)!=8)break;g=b+46|0;a[(g&n)>>0]=d[(g&n)>>0]|2;g=0;break}g=qg(32768,0)|0;if(g)fw(g|0,0,32768)|0;c[((c[(j&p)>>2]|0)+(e<<2)&p)>>2]=g;g=(c[((c[(j&p)>>2]|0)+(e<<2)&p)>>2]|0)==0?7:0}else g=0;while(0);h=c[((c[(j&p)>>2]|0)+(e<<2)&p)>>2]|0}c[(f&p)>>2]=h;return g|0}function yq(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;h=b+d|0;if(!e){g=0;d=0}else{g=c[(e&p)>>2]|0;d=c[(e&p)+4>>2]|0}if(!a)do{g=g+d+(nw(c[(b&p)>>2]|0)|0)|0;d=g+d+(nw(c[(b&p)+4>>2]|0)|0)|0;b=b+8|0}while(b>>>0>>0);else do{g=g+d+(c[(b&p)>>2]|0)|0;d=g+d+(c[(b&p)+4>>2]|0)|0;b=b+8|0}while(b>>>0>>0);c[(f&p)>>2]=g;c[(f&p)+4>>2]=d;return}function zq(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;h=a+8|0;g=c[(h&p)>>2]|0;h=c[(h&p)+4>>2]|0;if((h|0)>(f|0)|(h|0)==(f|0)&g>>>0>e>>>0?(i=jw(d|0,((d|0)<0)<<31>>31|0,e|0,f|0)|0,k=G,!((k|0)<(h|0)|(k|0)==(h|0)&i>>>0>>0)):0){i=dw(g|0,h|0,e|0,f|0)|0;h=a+4|0;g=c[(h&p)>>2]|0;g=tc[c[((c[(g&p)>>2]|0)&p)+12>>2]&31](g,b,i,e,f)|0;if(!g){e=jw(i|0,((i|0)<0)<<31>>31|0,e|0,f|0)|0;f=G;g=c[(h&p)>>2]|0;g=rc[c[((c[(g&p)>>2]|0)&p)+20>>2]&127](g,c[(a&p)+16>>2]&19)|0;if(!((i|0)==(d|0)|(g|0)!=0)){d=d-i|0;h=b+i|0;g=f;j=5}}}else{h=b;g=f;j=5}if((j|0)==5){f=c[(a&p)+4>>2]|0;g=tc[c[((c[(f&p)>>2]|0)&p)+12>>2]&31](f,h,d,e,g)|0}return g|0}function Aq(a){a=a|0;var d=0,f=0,g=0,h=0,k=0,l=0;l=i;i=i+16|0;if((i|0)>=(j|0))fa();h=l+8|0;k=l+4|0;g=l;c[(h&p)>>2]=0;c[(k&p)>>2]=0;c[(g&p)>>2]=0;f=a+68|0;d=c[(f&p)>>2]|0;if(d){Po(a,(d+33|0)>>>12,h,k,g)|0;g=(c[(f&p)>>2]|0)-(c[(g&p)>>2]|0)|0;a=c[(h&p)>>2]|0;f=0;do{d=a+(f<<1)|0;if((e[(d&o)>>1]|0|0)>(g|0))b[(d&o)>>1]=0;f=f+1|0}while((f|0)!=8192);d=(c[(k&p)>>2]|0)+(g+1<<2)|0;fw(d|0,0,a-d|0)|0}i=l;return}function Bq(a,d){a=a|0;d=d|0;var e=0,f=0,g=0,h=0;g=i;i=i+16|0;if((i|0)>=(j|0))fa();e=g;h=a+204|0;f=ac[c[8876>>2]&63](c[((c[(h&p)>>2]|0)&p)+40>>2]|0,d,0)|0;f=il(c[(h&p)>>2]|0,d,f)|0;do if(!f)e=0;else{if((b[(f&o)+26>>1]|0)==1){ml(f);e=0;break}c[(e&p)>>2]=0;d=kl(c[(a&p)+208>>2]|0,c[(f&p)+20>>2]|0,e)|0;if(!d){d=ll(f,c[(e&p)>>2]|0)|0;if(!d){cc[c[(a&p)+196>>2]&31](f);d=0}}Bg(f);e=d}while(0);d=c[(a&p)+88>>2]|0;if(d)do{c[(d&p)+16>>2]=1;d=c[(d&p)+44>>2]|0}while((d|0)!=0);i=g;return e|0}function Cq(f,g,h){f=f|0;g=g|0;h=h|0;var k=0,l=0,m=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;G=i;i=i+16|0;if((i|0)>=(j|0))fa();F=G;C=c[(f&p)+52>>2]|0;t=(c[(C&p)+36>>2]|0)+-4|0;y=g&65535;D=h&65535;x=D+y|0;E=c[(f&p)+56>>2]|0;if(b[(C&o)+22>>1]&4)fw(E+y|0,0,D|0)|0;B=d[(f&n)+6>>0]|0;C=B+1|0;q=C&65535;A=C&65535;if((a[(E+A&n)+1>>0]|0)==0?(a[(E+A&n)>>0]|0)==0:0){v=h&255;t=(h&65535)>>>8&255;u=x;s=0;r=0;A=23}else{v=q;A=6}a:do if((A|0)==6){while(1){A=0;m=v&65535;r=a[(E+m&n)+1>>0]|0;l=r&255;u=d[(E+m&n)>>0]<<8|l;q=v;v=u&65535;if(!(u>>>0>>0&(u|0)!=0)){s=r;w=u;break}if(u>>>0<(m+4|0)>>>0){A=8;break}else A=6}if((A|0)==8){c[(F&p)>>2]=54420;c[(F&p)+4>>2]=10788;bd(11,13600,F);k=11;break}if(w>>>0>t>>>0){c[(F&p)>>2]=54423;c[(F&p)+4>>2]=10788;bd(11,13600,F);k=11;break}k=h&255;t=(h&65535)>>>8&255;r=(v&65535)>>>8&255;do if((w+-1|0)>>>0<(x+3|0)>>>0)if(x>>>0>w>>>0){c[(F&p)>>2]=54434;c[(F&p)+4>>2]=10788;bd(11,13600,F);k=11;break a}else{u=(d[(E+w&n)+2>>0]<<8|d[(E+w&n)+3>>0])+w|0;t=u-y|0;v=t&255;t=(t&65535)>>>8&255;s=a[(E+w&n)+1>>0]|0;r=a[(E+w&n)>>0]|0;k=l-x&255;break}else{v=k;u=x;k=0}while(0);do if(m>>>0>C>>>0?(z=(d[(E+m&n)+2>>0]<<8|d[(E+m&n)+3>>0])+m|0,(z+3|0)>=(y|0)):0)if((y|0)<(z|0)){c[(F&p)>>2]=54447;c[(F&p)+4>>2]=10788;bd(11,13600,F);k=11;break a}else{t=u-m|0;g=q;v=t&255;t=(t&65535)>>>8&255;k=(k&255)+y-z&255;break}while(0);m=E+(B+7)|0;l=a[(m&n)>>0]|0;if((l&255)<(k&255)){c[(F&p)>>2]=54453;c[(F&p)+4>>2]=10788;bd(11,13600,F);k=11;break}else{a[(m&n)>>0]=(l&255)-(k&255);A=23;break}}while(0);b:do if((A|0)==23){k=g&65535;l=E+(B+5)|0;m=E+(B+6)|0;do if((k|0)==(d[(l&n)>>0]<<8|d[(m&n)>>0]|0))if((q&65535|0)==(C|0)){a[(E+C&n)>>0]=r;a[(E+B&n)+2>>0]=s;a[(l&n)>>0]=u>>>8;a[(m&n)>>0]=u;break}else{c[(F&p)>>2]=54460;c[(F&p)+4>>2]=10788;bd(11,13600,F);k=11;break b}else{F=q&65535;a[(E+F&n)>>0]=(g&65535)>>>8;a[(E+F&n)+1>>0]=g;a[(E+k&n)>>0]=r;a[(E+k&n)+1>>0]=s;a[(E+k&n)+2>>0]=t;a[(E+k&n)+3>>0]=v}while(0);k=f+16|0;b[(k&o)>>1]=(e[(k&o)>>1]|0)+D;k=0}while(0);i=G;return k|0}function Dq(b,e,f,g){b=b|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,o=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0;w=i;i=i+16|0;if((i|0)>=(j|0))fa();t=w;s=d[(b&n)+6>>0]|0;v=c[(b&p)+56>>2]|0;r=c[((c[(b&p)+52>>2]|0)&p)+36>>2]|0;l=r+-4|0;b=s+1|0;while(1){m=v+b|0;o=(d[(m&n)>>0]|0)<<8|(d[(v+b&n)+1>>0]|0);if(!o){b=0;break}if((o|0)>(l|0)|(o|0)<(b+4|0)){u=4;break}h=v+(o+2)|0;k=v+(o+3)|0;b=(d[(h&n)>>0]|0)<<8|(d[(k&n)>>0]|0);if((b|0)<(e|0))b=o;else{q=h;l=o;u=6;break}}a:do if((u|0)==4){c[(t&p)>>2]=54252;c[(t&p)+4>>2]=10788;bd(11,13600,t);c[(f&p)>>2]=11;b=0}else if((u|0)==6){h=b-e|0;do if((h|0)>=4)if((b+l|0)>(r|0)){c[(t&p)>>2]=54275;c[(t&p)+4>>2]=10788;bd(11,13600,t);c[(f&p)>>2]=11;b=0;break a}else{a[(q&n)>>0]=h>>>8;a[(k&n)>>0]=h;break}else{b=v+(s+7)|0;if((d[(b&n)>>0]|0)<=59){s=v+l|0;s=d[(s&n)>>0]|d[(s&n)+1>>0]<<8;a[(m&n)>>0]=s;a[(m&n)+1>>0]=s>>8;a[(b&n)>>0]=(d[(b&n)>>0]|0)+h;break}if(!g){b=0;break a}c[(g&p)>>2]=1;b=0;break a}while(0);b=v+(h+l)|0}while(0);i=w;return b|0}function Eq(f){f=f|0;var g=0,h=0,k=0,l=0,m=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;G=i;i=i+16|0;if((i|0)>=(j|0))fa();E=G;B=c[(f&p)+56>>2]|0;D=d[(f&n)+6>>0]|0;x=e[(f&o)+14>>1]|0;y=b[(f&o)+18>>1]|0;t=y&65535;u=f+52|0;v=c[((c[(u&p)>>2]|0)&p)+36>>2]|0;C=(t<<1)+x|0;w=v+-4|0;z=B+(D+5)|0;A=B+(D+6)|0;a:do if(y<<16>>16){s=v;y=0;h=B;k=0;while(1){m=(y<<1)+x|0;l=B+m|0;m=B+(m+1)|0;q=(d[(l&n)>>0]|0)<<8|(d[(m&n)>>0]|0);if((q|0)<(C|0)|(q|0)>(w|0)){F=3;break}r=(Lp(f,h+q|0)|0)&65535;g=s-r|0;if((g|0)<(C|0)|(r+q|0)>(v|0)){F=5;break}a[(l&n)>>0]=g>>>8;a[(m&n)>>0]=g;if(!k)if((g|0)==(q|0))k=0;else{k=c[((c[(c[(u&p)>>2]&p)>>2]|0)&p)+200>>2]|0;h=(d[(z&n)>>0]|0)<<8|(d[(A&n)>>0]|0);kw(k+h|0,B+h|0,s-h|0)|0;h=k;F=9}else F=9;if((F|0)==9){F=0;kw(B+g|0,h+q|0,r|0)|0}y=y+1|0;if((y|0)>=(t|0)){F=11;break a}else s=g}if((F|0)==3){c[(E&p)>>2]=54184;c[(E&p)+4>>2]=10788;bd(11,13600,E);g=11;break}else if((F|0)==5){c[(E&p)>>2]=54196;c[(E&p)+4>>2]=10788;bd(11,13600,E);g=11;break}}else{g=v;F=11}while(0);if((F|0)==11){a[(z&n)>>0]=g>>>8;a[(A&n)>>0]=g;a[(B+D&n)+1>>0]=0;a[(B+D&n)+2>>0]=0;a[(B+D&n)+7>>0]=0;F=g-C|0;fw(B+C|0,0,F|0)|0;if((F|0)==(e[(f&o)+16>>1]|0|0))g=0;else{c[(E&p)>>2]=54221;c[(E&p)+4>>2]=10788;bd(11,13600,E);g=11}}i=G;return g|0}function Fq(a,e,f){a=a|0;e=e|0;f=f|0;var g=0,h=0,k=0;k=i;i=i+32|0;if((i|0)>=(j|0))fa();h=k;if((c[(f&p)>>2]|0)==0?(rp(a,e,h),g=b[(h&o)+18>>1]|0,g<<16>>16!=0):0){g=g&65535;zp(c[(a&p)+52>>2]|0,(d[(e+g&n)+1>>0]|0)<<16|(d[(e+g&n)>>0]|0)<<24|(d[(e+g&n)+2>>0]|0)<<8|(d[(e+g&n)+3>>0]|0),3,c[(a&p)+72>>2]|0,f)}i=k;return}function Gq(b,f,g){b=b|0;f=f|0;g=g|0;var h=0,i=0,j=0,k=0,l=0,m=0;do if(!(c[(g&p)>>2]|0)){h=c[(b&p)+52>>2]|0;j=c[(b&p)+56>>2]|0;l=c[(f&p)+56>>2]|0;i=d[(b&n)+6>>0]|0;k=(c[(f&p)+72>>2]|0)==1?100:0;m=d[(j+i&n)+5>>0]<<8|d[(j+i&n)+6>>0];kw(l+m|0,j+m|0,(c[(h&p)+36>>2]|0)-m|0)|0;kw(l+k|0,j+i|0,(e[(b&o)+18>>1]<<1)+(e[(b&o)+14>>1]|0)|0)|0;a[(f&n)>>0]=0;b=$p(f)|0;if(b){c[(g&p)>>2]=b;break}if(a[(h&n)+17>>0]|0)c[(g&p)>>2]=_p(f)|0}while(0);return}function Hq(f,g,h,i){f=f|0;g=g|0;h=h|0;i=i|0;var j=0,k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0;t=d[(f&n)+6>>0]|0;w=c[(f&p)+56>>2]|0;m=c[(f&p)+52>>2]|0;r=c[(m&p)+36>>2]|0;q=w+r|0;j=c[(f&p)+64>>2]|0;m=c[((c[(m&p)>>2]|0)&p)+200>>2]|0;s=w+(t+5)|0;u=w+(t+6)|0;v=(d[(s&n)>>0]|0)<<8|(d[(u&n)>>0]|0);kw(m+v|0,w+v|0,r-v|0)|0;v=w;if((g|0)>0){r=0;l=j;j=q;while(1){k=c[(h+(r<<2)&p)>>2]|0;if(k>>>0>w>>>0&k>>>0>>0)k=m+(k-v)|0;x=e[(i+(r<<1)&o)>>1]|0;j=j+(0-x)|0;kw(j|0,k|0,x|0)|0;k=j-v|0;a[(l&n)>>0]=k>>>8;a[(l&n)+1>>0]=k;r=r+1|0;if((r|0)==(g|0))break;else l=l+2|0}}else j=q;i=f+18|0;b[(i&o)>>1]=g;a[(f&n)+1>>0]=0;a[(w+t&n)+1>>0]=0;a[(w+t&n)+2>>0]=0;a[(w+t&n)+3>>0]=(e[(i&o)>>1]|0)>>>8;a[(w+t&n)+4>>0]=b[(i&o)>>1];i=j-v|0;a[(s&n)>>0]=i>>>8;a[(u&n)>>0]=i;a[(w+t&n)+7>>0]=0;return}function Iq(a,b,f,g){a=a|0;b=b|0;f=f|0;g=g|0;var h=0,i=0,j=0,k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0;u=c[(a&p)+56>>2]|0;s=u+(c[((c[(a&p)+52>>2]|0)&p)+36>>2]|0)|0;q=u+((d[(a&n)+6>>0]|0)+8+(d[(a&n)+7>>0]|0))|0;a:do if((b|0)>0){r=u;t=0;h=0;l=0;m=0;while(1){j=c[(f+(t<<2)&p)>>2]|0;if(j>>>0>=q>>>0&j>>>0>>0){i=e[(g+(t<<1)&o)>>1]|0;k=j+i|0;if((l|0)!=(k|0)){if(l)Cq(a,l-r&65535,m&65535)|0;if(k>>>0>s>>>0){h=0;break a}}else i=i+m|0;h=h+1|0}else{j=l;i=m}t=t+1|0;if((t|0)>=(b|0))break;else{l=j;m=i}}if(j)Cq(a,j-u&65535,i&65535)|0}else h=0;while(0);return h|0}function Jq(b,d,f,g,h,k,l){b=b|0;d=d|0;f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;var m=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0;y=i;i=i+16|0;if((i|0)>=(j|0))fa();w=y;q=c[(b&p)+56>>2]|0;m=c[(f&p)>>2]|0;if(!(a[(q&n)+1>>0]|0))v=(a[(q&n)+2>>0]|0)!=0;else v=1;a:do if((h|0)>0){t=0;while(1){s=e[(l+(t<<1)&o)>>1]|0;if(v?(u=Dq(b,s,w,0)|0,(u|0)!=0):0)r=u;else{r=m+(0-s)|0;if(r>>>0>>0){m=1;break a}else m=r}kw(r|0,c[(k+(t<<2)&p)>>2]|0,s|0)|0;s=r-q|0;a[(g&n)>>0]=s>>>8;a[(g&n)+1>>0]=s;t=t+1|0;if((t|0)>=(h|0)){x=9;break}else g=g+2|0}}else x=9;while(0);if((x|0)==9){c[(f&p)>>2]=m;m=0}i=y;return m|0}function Kq(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,q=0,r=0;o=i;i=i+16|0;if((i|0)>=(j|0))fa();n=o;e=c[(a&p)+44>>2]|0;h=a;f=c[(h&p)>>2]|0;h=c[(h&p)+4>>2]|0;a:do if(!e){m=a+40|0;e=c[(m&p)>>2]|0;g=((e|0)<0)<<31>>31;l=rw(f|0,h|0,e|0,g|0)|0;if(!l){k=a+8|0;k=dw(c[(k&p)>>2]|0,c[(k&p)+4>>2]|0,f|0,h|0)|0;q=G;r=c[(a&p)+24>>2]|0;e=tc[c[((c[(r&p)>>2]|0)&p)+8>>2]&31](r,c[(a&p)+36>>2]|0,(q|0)>(g|0)|(q|0)==(g|0)&k>>>0>e>>>0?e:k,f,h)|0;if(e)break;e=c[(m&p)>>2]|0}k=e-l|0;if((k|0)>=(b|0)){c[(d&p)>>2]=(c[(a&p)+36>>2]|0)+l;e=a;b=jw(c[(e&p)>>2]|0,c[(e&p)+4>>2]|0,b|0,((b|0)<0)<<31>>31|0)|0;e=a;c[(e&p)>>2]=b;c[(e&p)+4>>2]=G;e=0;break}e=a+16|0;f=c[(e&p)>>2]|0;if((f|0)<(b|0)){f=f<<1;f=(f|0)<128?128:f;while(1)if((f|0)<(b|0))f=f<<1;else{h=f;break}g=a+28|0;f=rg(c[(g&p)>>2]|0,h,((h|0)<0)<<31>>31)|0;if(!f){e=7;break}c[(e&p)>>2]=h;c[(g&p)>>2]=f}else f=c[(a&p)+28>>2]|0;h=a+28|0;kw(f|0,(c[(a&p)+36>>2]|0)+l|0,k|0)|0;l=a;l=jw(c[(l&p)>>2]|0,c[(l&p)+4>>2]|0,k|0,((k|0)<0)<<31>>31|0)|0;e=a;c[(e&p)>>2]=l;c[(e&p)+4>>2]=G;e=b-k|0;if((e|0)>0){g=e;do{f=c[(m&p)>>2]|0;f=(g|0)>(f|0)?f:g;e=Kq(a,f,n)|0;if(e)break a;kw((c[(h&p)>>2]|0)+(b-g)|0,c[(n&p)>>2]|0,f|0)|0;g=g-f|0}while((g|0)>0)}c[(d&p)>>2]=c[(h&p)>>2];e=0}else{c[(d&p)>>2]=e+f;b=jw(f|0,h|0,b|0,((b|0)<0)<<31>>31|0)|0;e=a;c[(e&p)>>2]=b;c[(e&p)+4>>2]=G;e=0}while(0);i=o;return e|0}function Lq(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=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,x=0,y=0,z=0,A=0;A=i;i=i+64|0;if((i|0)>=(j|0))fa();x=A+44|0;z=A;y=A+40|0;v=a+8|0;u=c[(v&p)>>2]|0;v=c[(v&p)+4>>2]|0;w=a+4|0;q=c[(w&p)>>2]|0;Pp(c[(a&p)+48>>2]|0,z,c[((c[((c[(a&p)>>2]|0)&p)+8>>2]|0)&p)+12>>2]|0,u,v);o=q+8|0;q=q+12|0;r=z+24|0;s=z+16|0;t=a+16|0;while(1){f=c[((c[(o&p)>>2]|0)&p)+4>>2]|0;g=c[(q&p)>>2]|0;h=c[(g+(f*56|0)&p)+20>>2]|0;if(!(c[(g+(f*56|0)&p)+24>>2]|0)){d=1;b=0;break}l=r;k=c[(l&p)>>2]|0;l=c[(l&p)+4>>2]|0;m=c[(s&p)>>2]|0;n=((h|0)<0)<<31>>31;b=h;e=n;d=0;do{d=d+1|0;b=mw(b|0,e|0,7)|0;e=G}while(((b|0)!=0|(e|0)!=0)&(d|0)<9);k=jw(k|0,l|0,h|0,n|0)|0;k=jw(k|0,G|0,m|0,((m|0)<0)<<31>>31|0)|0;d=jw(k|0,G|0,d|0,((d|0)<0)<<31>>31|0)|0;k=G;b=c[(t&p)>>2]|0;b=jw(b|0,((b|0)<0)<<31>>31|0,u|0,v|0)|0;e=G;if((k|0)>(e|0)|(k|0)==(e|0)&d>>>0>b>>>0){d=1;b=0;break}Qp(z,x,pm(x,h,n)|0);Qp(z,c[(g+(f*56|0)&p)+32>>2]|0,h);b=Wm(c[(w&p)>>2]|0,y)|0;if(b){d=0;break}}z=Rp(z,a+56|0)|0;i=A;return (d?z:b)|0}function Mq(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0;d=i;i=i+16|0;if((i|0)>=(j|0))fa();f=d;c[(f&p)>>2]=e;e=Wk(a,13592,f)|0;mg(a,b);i=d;return e|0}function Nq(d,e,f,g){d=d|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,q=0;q=i;i=i+16|0;if((i|0)>=(j|0))fa();m=q;h=a[(d&n)>>0]|0;if(h<<24>>24!=0&(e|0)>0){l=0;do{if((h+-48&255)<10){k=0;do{k=(k*10|0)+-48+(h<<24>>24)|0;d=d+1|0;h=a[(d&n)>>0]|0}while((h+-48&255)<10);h=0}else{k=0;h=0}b[(f+(l<<1)&o)>>1]=fs(k,h)|0;d=(a[(d&n)>>0]|0)==32?d+1|0:d;l=l+1|0;h=a[(d&n)>>0]|0}while(h<<24>>24!=0&(l|0)<(e|0))}l=g+51|0;a[(l&n)>>0]=a[(l&n)>>0]&-69;a:do if(a[(d&n)>>0]|0){f=g+44|0;b:while(1){do if(!(Gh(13448,d,10352,0)|0)){if(Gh(13464,d,10352,0)|0){c[(m&p)>>2]=0;Dn(d+3|0,m)|0;h=c[(m&p)>>2]|0;b[(f&o)>>1]=fs(h,((h|0)<0)<<31>>31)|0;break}if(Gh(13480,d,10352,0)|0)a[(l&n)>>0]=a[(l&n)>>0]|64}else a[(l&n)>>0]=a[(l&n)>>0]|4;while(0);while(1){h=a[(d&n)>>0]|0;if(h<<24>>24==32|h<<24>>24==0)break;d=d+1|0}while(1){k=d+1|0;if(!(h<<24>>24))break a;else if(h<<24>>24!=32)continue b;h=a[(k&n)>>0]|0;d=k}}}while(0);i=q;return}function Oq(d){d=d|0;var e=0,f=0;f=d+8|0;e=c[(f&p)>>2]|0;if(!e){e=vh(d)|0;c[(f&p)>>2]=e;if(e)wh(e,155,0,0,0)|0;if((c[(d&p)+408>>2]|0)==0?(b[((c[(d&p)>>2]|0)&o)+60>>1]&8)==0:0)a[(d&n)+23>>0]=1}return e|0}function Pq(b,d){b=b|0;d=d|0;var e=0;e=(c[(b&p)+32>>2]|0)+-1|0;if((e|0)>(c[((c[(b&p)+24>>2]|0)&p)+88>>2]|0)?(a[((c[(b&p)+4>>2]|0)+(e*20|0)&n)>>0]|0)==d<<24>>24:0){zh(b,e);e=1}else e=0;return e|0}function Qq(d,e,f,g,h){d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var i=0,j=0;j=Oq(d)|0;i=g+32|0;gs(d,f,c[(i&p)>>2]|0,(h|0)==55&1,c[(g&p)>>2]|0);if(!(a[(g&n)+44>>0]&32)){g=b[(g&o)+38>>1]|0;xh(j,wh(j,h,e,c[(i&p)>>2]|0,f)|0,g,-14)}else{i=c[(g&p)+8>>2]|0;a:do if(!i)i=0;else while(1){if((a[(i&n)+51>>0]&3)==2)break a;i=c[(i&p)+20>>2]|0;if(!i){i=0;break}}while(0);wh(j,h,e,c[(i&p)+40>>2]|0,f)|0;g=c[(d&p)+8>>2]|0;xh(g,-1,hs(d,i)|0,-6)}return}function Rq(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0;if((d|0)!=0?(a[(d&n)>>0]|0)==-97:0)wh(c[(b&p)+8>>2]|0,33,c[(d&p)+28>>2]|0,e,0)|0;else h=4;if(((h|0)==4?(g=is(b,d,e)|0,(g|0)!=(e|0)):0)?(f=c[(b&p)+8>>2]|0,(f|0)!=0):0)wh(f,34,g,e,0)|0;return}function Sq(b,d,e,f,g){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0;m=i;i=i+16|0;if((i|0)>=(j|0))fa();l=m;h=c[(b&p)>>2]|0;do if(((a[(h&n)+145>>0]|0)==0?(a[(b&n)+451>>0]|0)==0:0)?(k=c[(h&p)+284>>2]|0,(k|0)!=0):0){h=kc[k&7](c[(h&p)+288>>2]|0,d,e,f,g,c[(b&p)+492>>2]|0)|0;if((h|0)==1){th(b,25216,l);c[(b&p)+12>>2]=23;h=1;break}else if((h|0)==0|(h|0)==2)break;else{th(b,25232,l);c[(b&p)+12>>2]=1;h=1;break}}else h=0;while(0);i=m;return h|0}function Tq(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;d=Wq(c[(a&p)>>2]|0,d)|0;do if(d){e=Oq(a)|0;if((e|0)!=0?(Sq(a,32,c[(b<<2&p)+37088>>2]|0,d,0)|0)==0:0){xh(e,wh(e,2,b,0,0)|0,d,-1);break}mg(c[(a&p)>>2]|0,d)}while(0);return}function Uq(e,f,g,h,k,l,m){e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;m=m|0;var q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0;y=i;i=i+16|0;if((i|0)>=(j|0))fa();u=y;s=y+4|0;x=c[(e&p)>>2]|0;f=er(e,f,g,s)|0;a:do if((f|0)>=0){t=(h|0)!=0;if(t?(c[(g&p)+4>>2]|0)!=0&(f|0)!=1:0){th(e,36976,u);break}w=t?1:f;g=c[(s&p)>>2]|0;t=g;f=c[(t&p)+4>>2]|0;s=e+496|0;c[(s&p)>>2]=c[(t&p)>>2];c[(s&p)+4>>2]=f;s=Wq(x,g)|0;if(s){b:do if((Lr(e,s)|0)==0?(r=(a[(x&n)+144>>0]|0)==1?1:h,v=x+16|0,q=c[((c[(v&p)>>2]|0)+(w<<4)&p)>>2]|0,(Sq(e,18,(r|0)==1?13184:13208,0,q)|0)==0):0){h=(r|0)!=0;if(!k)f=h?4:2;else f=h?6:8;t=(l|0)!=0;if(!t?(Sq(e,f,s,0,q)|0)!=0:0)break;do if(!(a[(e&n)+451>>0]|0)){h=c[((c[(v&p)>>2]|0)+(w<<4)&p)>>2]|0;if(Gn(e)|0)break b;if(!(_h(x,s,h)|0)){if(!(bq(x,s,h)|0))break;c[(u&p)>>2]=s;th(e,37048,u);break b}if(!m){c[(u&p)>>2]=g;th(e,37024,u);break b}else{Ar(e,w);break b}}while(0);r=mh(x,76,0)|0;if(!r){a[(x&n)+65>>0]=1;c[(e&p)+12>>2]=7;v=e+64|0;c[(v&p)>>2]=(c[(v&p)>>2]|0)+1;break}q=r+0|0;h=q+76|0;do{a[(q&n)>>0]=0;q=q+1|0}while((q|0)<(h|0));c[(r&p)>>2]=s;b[(r&o)+36>>1]=-1;q=c[((c[(v&p)>>2]|0)+(w<<4)&p)+12>>2]|0;c[(r&p)+68>>2]=q;b[(r&o)+40>>1]=1;b[(r&o)+28>>1]=200;c[(e&p)+484>>2]=r;if((a[(e&n)+18>>0]|0)==0?(_v(s,26576)|0)==0:0)c[(q&p)+72>>2]=r;if(a[(x&n)+145>>0]|0)break a;g=Oq(e)|0;if(!g)break a;v=c[(e&p)+408>>2]|0;Ar(e,w);q=1<>2]=c[(v&p)>>2]|q;if(t)wh(g,146,0,0,0)|0;r=e+72|0;f=c[(r&p)>>2]|0;s=f+1|0;c[(e&p)+384>>2]=s;t=f+2|0;c[(e&p)+388>>2]=t;f=f+3|0;c[(r&p)>>2]=f;wh(g,51,w,f,2)|0;r=g+96|0;c[(r&p)>>2]=c[(r&p)>>2]|q;r=wh(g,45,f,0,0)|0;wh(g,25,(c[(x&p)+24>>2]&32768|0)!=0?1:4,f,0)|0;wh(g,52,w,2,f)|0;wh(g,25,d[(x&n)+62>>0]|0,f,0)|0;wh(g,52,w,5,f)|0;h=g+32|0;q=c[(h&p)>>2]|0;if(q>>>0>r>>>0)c[((c[(g&p)+4>>2]|0)+(r*20|0)&p)+8>>2]=q;c[((c[(g&p)+24>>2]|0)&p)+88>>2]=q+-1;if(!(l|k))c[(e&p)+416>>2]=wh(g,121,w,t,0)|0;else wh(g,25,0,t,0)|0;js(e,w);wh(g,74,0,s,0)|0;wh(g,28,0,f,0)|0;wh(g,75,0,f,s)|0;q=c[(g&p)+4>>2]|0;if(q)a[(q+(((c[(h&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=8;wh(g,61,0,0,0)|0;break a}while(0);mg(x,s)}}while(0);i=y;return}function Vq(f,g,h,k,l){f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;var m=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;R=i;i=i+176|0;if((i|0)>=(j|0))fa();M=R+80|0;J=R+168|0;G=R;H=R+136|0;I=R+112|0;N=c[(f&p)>>2]|0;a:do if((!((h|0)==0&(l|0)==0)?(O=N+65|0,(a[(O&n)>>0]|0)==0):0)?(P=f+484|0,Q=c[(P&p)>>2]|0,(Q|0)!=0):0){L=N+145|0;if(a[(L&n)>>0]|0)c[(Q&p)+32>>2]=c[(N&p)+140>>2];b:do if(k&32){s=Q+44|0;r=d[(s&n)>>0]|0;if(r&8){th(f,36584,M);break a}if(!(r&4)){c[(M&p)>>2]=c[(Q&p)>>2];th(f,36640,M);break}a[(s&n)>>0]=r|32;t=c[(f&p)+8>>2]|0;s=c[(f&p)+416>>2]|0;if(s){if((s|0)<0)s=(c[(t&p)+32>>2]|0)+-1|0;if(!(a[((c[(t&p)>>2]|0)&n)+65>>0]|0))s=(c[(t&p)+4>>2]|0)+(s*20|0)|0;else s=29120;a[(s&n)>>0]=120}s=c[(f&p)+420>>2]|0;if(s){if((s|0)<0)s=(c[(t&p)+32>>2]|0)+-1|0;if(!(a[((c[(t&p)>>2]|0)&n)+65>>0]|0))r=(c[(t&p)+4>>2]|0)+(s*20|0)|0;else r=29120;a[(r&n)>>0]=16}r=Q+36|0;if((b[(r&o)>>1]|0)>-1){s=lr(f,0,0)|0;if(!s)break;C=kh(c[(f&p)>>2]|0,c[((c[(Q&p)+4>>2]|0)+((b[(r&o)>>1]|0)*24|0)&p)>>2]|0)|0;D=c[(s&p)+4>>2]|0;c[(D&p)+4>>2]=C;a[(D&n)+12>>0]=a[(f&n)+448>>0]|0;s=$q(f,0,0,0,s,d[(Q&n)+45>>0]|0,0,0,0,0)|0;if(!s)break;x=s+51|0;a[(x&n)>>0]=a[(x&n)>>0]&-4|2;b[(r&o)>>1]=-1;x=b[(s&o)+46>>1]|0}else{s=c[(Q&p)+8>>2]|0;c:do if(!s)s=0;else while(1){if((a[(s&n)+51>>0]&3)==2)break c;s=c[(s&p)+20>>2]|0;if(!s){s=0;break}}while(0);y=s+46|0;t=b[(y&o)>>1]|0;if((t&65535)>1){w=c[(s&p)+4>>2]|0;v=s+48|0;x=1;r=1;do{m=b[(w+(x<<1)&o)>>1]|0;u=r;q=w;while(1){if((u|0)<=0){F=36;break}if((b[(q&o)>>1]|0)==m<<16>>16){F=35;break}else{u=u+-1|0;q=q+2|0}}if((F|0)==35){F=0;b[(v&o)>>1]=(b[(v&o)>>1]|0)+-1<<16>>16}else if((F|0)==36){F=0;b[(w+(r<<1)&o)>>1]=m;t=b[(y&o)>>1]|0;r=r+1|0}x=x+1|0}while((x|0)<(t&65535|0))}else r=1;x=r&65535;b[(y&o)>>1]=x}u=s+51|0;t=a[(u&n)>>0]|32;a[(u&n)>>0]=t;D=x&65535;if(!(a[(N&n)+147>>0]|0)){if(x<<16>>16){t=c[(s&p)+4>>2]|0;r=c[(Q&p)+4>>2]|0;q=0;do{a[(r+((b[(t+(q<<1)&o)>>1]|0)*24|0)&n)+20>>0]=1;q=q+1|0}while((q|0)<(D|0));t=a[(u&n)>>0]|0}a[(u&n)>>0]=t|8}c[(s&p)+40>>2]=c[(Q&p)+32>>2];u=c[(Q&p)+8>>2]|0;if(u){A=x<<16>>16==0;B=s+4|0;C=s+32|0;do{d:do if((a[(u&n)+51>>0]&3)!=2){do if(A)t=b[(u&o)+46>>1]|0;else{v=c[(u&p)+4>>2]|0;t=b[(u&o)+46>>1]|0;q=t&65535;m=c[(B&p)>>2]|0;z=0;r=0;do{w=b[(m+(z<<1)&o)>>1]|0;y=q;x=v;while(1){if((y|0)<=0){x=1;break}if((b[(x&o)>>1]|0)==w<<16>>16){x=0;break}else{y=y+-1|0;x=x+2|0}}r=x+r|0;z=z+1|0}while((z|0)<(D|0));q=u+46|0;if(!r)break;if(ks(N,u,(t&65535)+r|0)|0)break b;if(A)break d;w=b[(q&o)>>1]|0;z=u+4|0;m=u+32|0;y=w;x=0;w=w&65535;while(1){t=c[(z&p)>>2]|0;r=b[((c[(B&p)>>2]|0)+(x<<1)&o)>>1]|0;y=y&65535;v=t;while(1){if((y|0)<=0){F=63;break}if((b[(v&o)>>1]|0)==r<<16>>16)break;else{y=y+-1|0;v=v+2|0}}if((F|0)==63){F=0;b[(t+(w<<1)&o)>>1]=r;c[((c[(m&p)>>2]|0)+(w<<2)&p)>>2]=c[((c[(C&p)>>2]|0)+(x<<2)&p)>>2];w=w+1|0}x=x+1|0;if((x|0)>=(D|0))break d;y=b[(q&o)>>1]|0}}while(0);b[(u&o)+48>>1]=t}while(0);u=c[(u&p)+20>>2]|0}while((u|0)!=0)}y=Q+38|0;t=b[(y&o)>>1]|0;r=t<<16>>16;if((D|0)>=(r|0)){b[(s&o)+48>>1]=t;break}if((ks(N,s,r)|0)==0?(E=b[(y&o)>>1]|0,E<<16>>16>0):0){v=s+4|0;x=s+32|0;t=E;w=0;s=D;do{q=c[(v&p)>>2]|0;u=s;r=q;while(1){if((u|0)<=0){F=74;break}if((b[(r&o)>>1]|0)==(w|0))break;else{u=u+-1|0;r=r+2|0}}if((F|0)==74){F=0;b[(q+(s<<1)&o)>>1]=w;c[((c[(x&p)>>2]|0)+(s<<2)&p)>>2]=11152;t=b[(y&o)>>1]|0;s=s+1|0}w=w+1|0}while((w|0)<(t<<16>>16|0))}}while(0);F=Q+68|0;s=c[(F&p)>>2]|0;e:do if(s){r=c[(N&p)+20>>2]|0;if((r|0)>0){q=c[(N&p)+16>>2]|0;t=0;while(1){m=t+1|0;if((c[(q+(t<<4)&p)+12>>2]|0)==(s|0))break e;if((m|0)<(r|0))t=m;else{t=m;break}}}else t=0}else t=-1e6;while(0);q=c[(Q&p)+24>>2]|0;f:do if(q){c[(H&p)>>2]=0;c[(H&p)+4>>2]=0;c[(H&p)+8>>2]=0;c[(H&p)+12>>2]=0;c[(H&p)+16>>2]=0;c[(H&p)+20>>2]=0;c[(H&p)+24>>2]=0;c[(H&p)+28>>2]=0;s=G+0|0;r=s+80|0;do{c[(s&p)>>2]=0;s=s+4|0}while((s|0)<(r|0));c[(G&p)>>2]=1;c[(G&p)+16>>2]=c[(Q&p)>>2];c[(G&p)+24>>2]=Q;c[(G&p)+48>>2]=-1;c[(H&p)>>2]=f;c[(H&p)+4>>2]=G;b[(H&o)+28>>1]=4;s=q+4|0;if((c[(q&p)>>2]|0)>0){r=0;do{if(ls(H,c[((c[(s&p)>>2]|0)+(r*20|0)&p)>>2]|0)|0)break f;r=r+1|0}while((r|0)<(c[(q&p)>>2]|0))}}while(0);D=Q+38|0;m=b[(D&o)>>1]|0;if(m<<16>>16>0){s=m<<16>>16;r=c[(Q&p)+4>>2]|0;q=0;while(1){q=(d[(r&n)+22>>0]|0)+q|0;s=s+-1|0;if((s|0)<=0)break;else r=r+24|0}}else q=0;b[(Q&o)+42>>1]=fs(((e[(Q&o)+36>>1]|0)>>>15&65535)+q<<2,0)|0;q=c[(Q&p)+8>>2]|0;if(q)do{ms(q);q=c[(q&p)+20>>2]|0}while((q|0)!=0);if(!(a[(L&n)>>0]|0)){E=Oq(f)|0;if(!E)break;wh(E,61,0,0,0)|0;B=(c[(Q&p)+12>>2]|0)==0;r=B?36672:36680;B=B?31232:35480;do if(!l){q=k<<24>>24==0?h:f+504|0;l=c[(q&p)>>2]|0;s=c[(f&p)+496>>2]|0;m=l-s|0;if((a[(l&n)>>0]|0)!=59)m=(c[(q&p)+4>>2]|0)+m|0;c[(M&p)>>2]=r;c[(M&p)+4>>2]=m;c[(M&p)+8>>2]=s;s=f+388|0;m=Q;r=uh(N,36688,M)|0}else{s=f+388|0;wh(E,55,1,c[(s&p)>>2]|0,t)|0;r=c[(E&p)+4>>2]|0;if(r)a[(r+(((c[(E&p)+32>>2]|0)+-1|0)*20|0)&n)+3>>0]=4;c[(f&p)+68>>2]=2;a[(I&n)>>0]=14;c[(I&p)+4>>2]=1;a[(I&n)+1>>0]=0;c[(I&p)+8>>2]=0;c[(I&p)+12>>2]=0;ir(f,l,I)|0;wh(E,61,1,0,0)|0;if(!(c[(f&p)+64>>2]|0)){m=ns(f,l)|0;if(!m)break a;I=m+38|0;b[(D&o)>>1]=b[(I&o)>>1]|0;l=m+4|0;c[(Q&p)+4>>2]=c[(l&p)>>2];b[(I&o)>>1]=0;c[(l&p)>>2]=0;kg(N,m)}C=Q+4|0;z=b[(D&o)>>1]|0;if(z<<16>>16>0){v=z<<16>>16;w=0;r=0;x=c[(C&p)>>2]|0;while(1){m=c[(x&p)>>2]|0;q=0;while(1){u=a[(m&n)>>0]|0;if(u<<24>>24==34)q=q+1|0;else if(!(u<<24>>24))break;m=m+1|0;q=q+1|0}r=r+7+q|0;w=w+1|0;if((w|0)==(v|0))break;else x=x+24|0}u=r+2|0}else u=2;m=c[(Q&p)>>2]|0;r=0;while(1){q=a[(m&n)>>0]|0;if(q<<24>>24==34)r=r+1|0;else if(!(q<<24>>24))break;m=m+1|0;r=r+1|0}x=r+u|0;A=(x|0)<50;u=A?10360:36880;y=A?20240:36888;A=A?33952:36896;x=((z<<16>>16)*6|0)+35+x|0;r=qg(x,((x|0)<0)<<31>>31)|0;if(!r){a[(O&n)>>0]=1;m=Q;r=0;break}ad(x,r,36904,M)|0;q=r;while(1)if(!(a[(q&n)>>0]|0))break;else q=q+1|0;c[(J&p)>>2]=q-r&1073741823;os(r,J,c[(Q&p)>>2]|0);m=c[(J&p)>>2]|0;v=m+1|0;c[(J&p)>>2]=v;a[(r+m&n)>>0]=40;m=x-v|0;q=r+v|0;if((b[(D&o)>>1]|0)>0){z=0;w=c[(C&p)>>2]|0;while(1){ad(m,q,u,M)|0;q=r+v|0;if(!q)q=0;else{u=q;while(1)if(!(a[(u&n)>>0]|0))break;else u=u+1|0;q=u-q&1073741823}c[(J&p)>>2]=q+v;os(r,J,c[(w&p)>>2]|0);q=c[((a[(w&n)+21>>0]|0)+-65<<2&p)+36920>>2]|0;u=q;while(1)if(!(a[(u&n)>>0]|0))break;else u=u+1|0;v=u-q&1073741823;u=c[(J&p)>>2]|0;kw(r+u|0,q|0,v|0)|0;v=u+v|0;c[(J&p)>>2]=v;u=z+1|0;m=x-v|0;q=r+v|0;if((u|0)<(b[(D&o)>>1]|0)){z=u;w=w+24|0;u=y}else break}}c[(M&p)>>2]=A;ad(m,q,10344,M)|0;m=Q}while(0);q=N+16|0;k=c[(m&p)>>2]|0;I=c[(s&p)>>2]|0;l=c[(f&p)+384>>2]|0;c[(M&p)>>2]=c[((c[(q&p)>>2]|0)+(t<<4)&p)>>2];c[(M&p)+4>>2]=(t|0)==1?13184:13208;c[(M&p)+8>>2]=B;c[(M&p)+12>>2]=k;c[(M&p)+16>>2]=k;c[(M&p)+20>>2]=I;c[(M&p)+24>>2]=r;c[(M&p)+28>>2]=l;Br(f,36704,M);mg(N,r);Dr(f,t);if((a[(Q&n)+44>>0]&8)!=0?(K=c[(q&p)>>2]|0,(c[((c[(K+(t<<4)&p)+12>>2]|0)&p)+72>>2]|0)==0):0){c[(M&p)>>2]=c[(K+(t<<4)&p)>>2];Br(f,36792,M)}c[(M&p)>>2]=c[(m&p)>>2];Ir(E,t,uh(N,36840,M)|0);if(!(a[(L&n)>>0]|0))break}else m=Q;if(Ik((c[(F&p)>>2]|0)+8|0,c[(m&p)>>2]|0,Q)|0){a[(O&n)>>0]=1;break}c[(P&p)>>2]=0;l=N+24|0;c[(l&p)>>2]=c[(l&p)>>2]|2;if(!(c[(Q&p)+12>>2]|0)){l=c[(f&p)+496>>2]|0;c[(Q&p)+48>>2]=(Nn(l,(c[(((c[(g&p)>>2]|0)==0?h:g)&p)>>2]|0)-l|0)|0)+13}}while(0);i=R;return}function Wq(b,d){b=b|0;d=d|0;var e=0,f=0;if(!d)e=0;else{f=c[(d&p)>>2]|0;d=c[(d&p)+4>>2]|0;if((f|0)!=0?(e=jw(d|0,0,1,0)|0,e=mh(b,e,G)|0,(e|0)!=0):0){kw(e|0,f|0,d|0)|0;a[(e+d&n)>>0]=0}else e=0;lo(e)}return e|0}function Xq(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,o=0,q=0;o=i;i=i+16|0;if((i|0)>=(j|0))fa();m=o;a:do if(b){g=a[(b&n)>>0]|0;b:do if(!(g<<24>>24)){f=67;g=0}else{k=g;f=67;h=0;g=0;do{h=d[(k&255&n)+9328>>0]|0|h<<8;b=b+1|0;if((h|0)==1685026146)if(f<<24>>24==67){f=69;h=1685026146;l=5}else l=13;else if((h|0)==1668050786){f=66;l=5}else if((h|0)==1718382433)if(f<<24>>24==67){f=69;h=1718382433;l=5}else l=13;else if((h|0)==1919246700)if(f<<24>>24==67){f=69;h=1919246700;l=5}else l=14;else if((h|0)==1952807028){f=66;l=5}else if((h|0)==1651273570)if(f<<24>>24==69|f<<24>>24==67){q=a[(b&n)>>0]|0;k=q;f=65;h=1651273570;g=q<<24>>24==40?b:g}else l=14;else if((h|0)!=1667785074)if((h&16777215|0)==6909556){f=68;break b}else l=5;else{f=66;h=1667785074;g=b;l=5}if((l|0)==13)l=5;else if((l|0)==14)l=5;if((l|0)==5){l=0;k=a[(b&n)>>0]|0}}while(k<<24>>24!=0)}while(0);if((e|0)!=0?(a[(e&n)>>0]=1,f<<24>>24<67):0){if(!g){a[(e&n)>>0]=5;break}b=a[(g&n)>>0]|0;if(b<<24>>24){while(1){if(((b&255)+-48|0)>>>0<10)break;g=g+1|0;b=a[(g&n)>>0]|0;if(!(b<<24>>24))break a}c[(m&p)>>2]=0;Dn(g,m)|0;g=((c[(m&p)>>2]|0)/4|0)+1|0;g=(g|0)>255?255:g;c[(m&p)>>2]=g;a[(e&n)>>0]=g}}}else f=67;while(0);i=o;return f|0}function Yq(e,f){e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,q=0,r=0,s=0,t=0;r=i;i=i+32|0;if((i|0)>=(j|0))fa();m=r;q=c[(e&p)>>2]|0;k=c[(e&p)+484>>2]|0;do if(k){h=(b[(k&o)+38>>1]|0)+-1|0;l=c[(k&p)+4>>2]|0;s=c[(f&p)>>2]|0;t=(d[(q&n)+145>>0]|0)+4|0;c[(m&p)>>2]=0;c[(m&p)+4>>2]=0;c[(m&p)+8>>2]=0;c[(m&p)+12>>2]=0;c[(m&p)+16>>2]=0;c[(m&p)+20>>2]=0;k=m+20|0;a[(k&n)>>0]=t;c[(m&p)>>2]=78;c[(m&p)+4>>2]=79;c[(m&p)+24>>2]=0;rs(m,s)|0;if(!(a[(k&n)>>0]|0)){c[(m&p)>>2]=c[(l+(h*24|0)&p)>>2];th(e,36480,m);break}k=l+(h*24|0)+4|0;Gk(q,c[(k&p)>>2]|0);c[(k&p)>>2]=Mr(q,c[(f&p)>>2]|0,1,0)|0;l=l+(h*24|0)+8|0;mg(q,c[(l&p)>>2]|0);h=c[(f&p)+4>>2]|0;k=(c[(f&p)+8>>2]|0)-h|0;if((h|0)!=0?(g=jw(k|0,((k|0)<0)<<31>>31|0,1,0)|0,g=mh(q,g,G)|0,(g|0)!=0):0){kw(g|0,h|0,k|0)|0;a[(g+k&n)>>0]=0}else g=0;c[(l&p)>>2]=g}while(0);Gk(q,c[(f&p)>>2]|0);i=r;return}function Zq(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,k=0;k=i;i=i+16|0;if((i|0)>=(j|0))fa();h=k;if((b|0)==72&(d|0)!=0&(e|0)!=0?(c[(a&p)+64>>2]|0)==0:0)b=ss(c[(a&p)>>2]|0,d,e)|0;else{b=nr(c[(a&p)>>2]|0,b,f,1)|0;ts(c[(a&p)>>2]|0,b,d,e)}if((b|0)!=0?(g=c[((c[(a&p)>>2]|0)&p)+100>>2]|0,(g|0)<(c[(b&p)+24>>2]|0)):0){c[(h&p)>>2]=g;th(a,27152,h)}i=k;return b|0}function _q(e,f,g,h,k){e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;var l=0,m=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;i=i+16|0;if((i|0)>=(j|0))fa();C=D;A=c[(e&p)+484>>2]|0;do if((A|0)!=0?(a[(e&n)+451>>0]|0)==0:0){B=A+44|0;m=d[(B&n)>>0]|0;if(m&4){c[(C&p)>>2]=c[(A&p)>>2];th(e,36376,C);break}y=m|4;a[(B&n)>>0]=y;z=(f|0)==0;if(z){m=(b[(A&o)+38>>1]|0)+-1|0;w=c[(A&p)+4>>2]|0;l=w+(m*24|0)+23|0;a[(l&n)>>0]=d[(l&n)>>0]|1;l=m;q=1;m=c[(w+(m*24|0)&p)+12>>2]|0}else{x=c[(f&p)>>2]|0;if((x|0)>0){u=f+4|0;v=A+4|0;t=b[(A&o)+38>>1]|0;w=0;m=0;do{a:do if(t<<16>>16>0){r=c[((c[(u&p)>>2]|0)+(w*20|0)&p)+4>>2]|0;s=c[(v&p)>>2]|0;q=0;while(1){l=q+1|0;if(!(dd(r,c[(s+(q*24|0)&p)>>2]|0)|0))break;if((l|0)<(t<<16>>16|0))q=l;else break a}l=s+(q*24|0)+23|0;a[(l&n)>>0]=d[(l&n)>>0]|1;l=q;m=c[(s+(q*24|0)&p)+12>>2]|0}else l=0;while(0);w=w+1|0}while((w|0)!=(x|0))}else{l=-1;m=0}q=(x|0)==1}if(q&(m|0)!=0?(dd(m,11144)|0|k|0)==0:0){b[(A&o)+36>>1]=l;a[(A&n)+45>>0]=g;a[(B&n)>>0]=y|h<<3;if(z){f=0;break}a[(e&n)+448>>0]=a[((c[(f&p)+4>>2]|0)&n)+12>>0]|0;break}if(h){th(e,36424,C);break}m=c[(e&p)+8>>2]|0;l=(m|0)!=0;if(l)c[(e&p)+420>>2]=wh(m,156,0,0,0)|0;f=$q(e,0,0,0,f,g,0,0,k,0)|0;if((f|0)!=0?(w=f+51|0,a[(w&n)>>0]=a[(w&n)>>0]&-4|2,l):0){f=c[(e&p)+420>>2]|0;l=c[(m&p)+32>>2]|0;if(l>>>0>f>>>0)c[((c[(m&p)+4>>2]|0)+(f*20|0)&p)+8>>2]=l;c[((c[(m&p)+24>>2]|0)&p)+88>>2]=l+-1;f=0}else f=0}while(0);Nk(c[(e&p)>>2]|0,f);i=D;return}function $q(f,g,h,k,l,m,q,r,s,t){f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;m=m|0;q=q|0;r=r|0;s=s|0;t=t|0;var 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;Y=i;i=i+144|0;if((i|0)>=(j|0))fa();V=Y;E=Y+112|0;x=Y+88|0;T=Y+84|0;N=Y+80|0;X=c[(f&p)>>2]|0;c[(T&p)>>2]=0;c[(N&p)>>2]=0;S=X+65|0;a:do if(((a[(S&n)>>0]|0)==0?(a[(f&n)+451>>0]|0)==0:0)?(Gn(f)|0)==0:0){U=(k|0)!=0;b:do if(U){g=er(f,g,h,T)|0;if((g|0)<0){u=0;h=0;break a}if((a[(X&n)+145>>0]|0)==0?(u=Jr(f,k)|0,(c[(h&p)+4>>2]|0)==0&(u|0)!=0):0)g=(c[(u&p)+68>>2]|0)==(c[((c[(X&p)+16>>2]|0)&p)+28>>2]|0)?1:g;h=c[(T&p)>>2]|0;u=c[(f&p)>>2]|0;c[(x&p)>>2]=f;u=c[(u&p)+16>>2]|0;c[(x&p)+12>>2]=c[(u+(g<<4)&p)>>2];c[(x&p)+4>>2]=c[(u+(g<<4)&p)+12>>2];c[(x&p)+16>>2]=20632;c[(x&p)+20>>2]=h;u=(g|0)==1;c[(x&p)+8>>2]=u&1;Kr(x,k)|0;w=Ur(f,0,k+8|0)|0;if(!w){u=0;h=0;break a}if(u?(c[((c[(X&p)+16>>2]|0)&p)+28>>2]|0)!=(c[(w&p)+68>>2]|0):0){c[(V&p)>>2]=c[(w&p)>>2];th(f,35920,V);u=0;h=0;break a}if((a[(w&n)+44>>0]&32)!=0?(v=c[(w&p)+8>>2]|0,(v|0)!=0):0){u=v;while(1){if((a[(u&n)+51>>0]&3)==2){v=g;M=u;x=w;break b}u=c[(u&p)+20>>2]|0;if(!u){v=g;M=0;x=w;break}}}else{v=g;M=0;x=w}}else{x=c[(f&p)+484>>2]|0;if(!x){u=0;h=0;break a}g=c[(x&p)+68>>2]|0;if(g){u=c[(X&p)+20>>2]|0;if((u|0)>0){h=c[(X&p)+16>>2]|0;w=0;while(1){v=w+1|0;if((c[(h+(w<<4)&p)+12>>2]|0)==(g|0)){h=0;v=w;M=0;break b}if((v|0)<(u|0))w=v;else{h=0;M=0;break}}}else{h=0;v=0;M=0}}else{h=0;v=-1e6;M=0}}while(0);R=X+16|0;F=c[(R&p)>>2]|0;g=F+(v<<4)|0;A=c[(x&p)>>2]|0;if(((Fc(A,25568,7)|0)==0?(a[(X&n)+145>>0]|0)==0:0)?(Fc(A+7|0,35976,9)|0)!=0:0){c[(V&p)>>2]=A;th(f,35992,V);u=0;h=0;break}if(c[(x&p)+12>>2]|0){th(f,36024,V);u=0;h=0;break}Q=x+44|0;if(a[(Q&n)>>0]&16){th(f,36056,V);u=0;h=0;break}G=(h|0)==0;if(!G){h=Wq(X,h)|0;if(!h){u=0;h=0;break}if(Lr(f,h)|0){u=0;break}if((a[(X&n)+145>>0]|0)==0?(_h(X,h,0)|0)!=0:0){c[(V&p)>>2]=h;th(f,36096,V);u=0;break}if(bq(X,h,c[(g&p)>>2]|0)|0)if(!t){c[(V&p)>>2]=h;th(f,36136,V);u=0;break}else{Ar(f,v);u=0;break}else w=h}else{u=c[(x&p)+8>>2]|0;if(!u)w=1;else{w=1;do{w=w+1|0;u=c[(u&p)+20>>2]|0}while((u|0)!=0)}c[(V&p)>>2]=A;c[(V&p)+4>>2]=w;w=uh(X,36160,V)|0;if(!w){u=0;h=0;break}}g=c[(g&p)>>2]|0;u=(v|0)==1;O=u?13184:13208;if((Sq(f,18,O,0,g)|0)==0?(Sq(f,u?3:1,w,c[(x&p)>>2]|0,g)|0)==0:0){if(!l){l=lr(f,0,0)|0;if(!l){l=0;u=0;h=w;break}I=kh(c[(f&p)>>2]|0,c[((c[(x&p)+4>>2]|0)+(((b[(x&o)+38>>1]|0)+-1|0)*24|0)&p)>>2]|0)|0;J=c[(l&p)+4>>2]|0;c[(J&p)+4>>2]=I;a[(J&n)+12>>0]=s}D=c[(l&p)>>2]|0;if((D|0)>0){A=c[(l&p)+4>>2]|0;y=0;g=0;do{u=c[(A+(y*20|0)&p)>>2]|0;if(u){h=c[(u&p)+8>>2]|0;if(!h)u=1;else{u=h;while(1)if(!(a[(u&n)>>0]|0))break;else u=u+1|0;u=(u-h&1073741823)+1|0}g=u+g|0}y=y+1|0}while((y|0)<(D|0));h=g}else h=0;if(!w)u=0;else{g=w;while(1)if(!(a[(g&n)>>0]|0))break;else g=g+1|0;u=g-w&1073741823}I=(M|0)!=0;if(I)g=e[(M&o)+46>>1]|0;else g=1;P=us(X,D+g&65535,h+1+u|0,N)|0;c:do if(!(a[(S&n)>>0]|0)){H=c[(N&p)>>2]|0;c[(P&p)>>2]=H;L=u+1|0;C=H+L|0;c[(N&p)>>2]=C;kw(H|0,w|0,L|0)|0;c[(P&p)+12>>2]=x;L=P+50|0;a[(L&n)>>0]=m;H=P+51|0;a[(H&n)>>0]=a[(H&n)>>0]&-12|((m|0)!=0&1)<<3&255|G&1;K=P+24|0;c[(K&p)>>2]=c[((c[(R&p)>>2]|0)+(v<<4)&p)+12>>2];g=c[(l&p)>>2]|0;J=P+46|0;b[(J&o)>>1]=g;if(r){c[(E&p)>>2]=0;c[(E&p)+4>>2]=0;c[(E&p)+8>>2]=0;c[(E&p)+12>>2]=0;c[(E&p)+16>>2]=0;c[(E&p)+20>>2]=0;c[(E&p)+24>>2]=0;c[(E&p)+28>>2]=0;A=V+0|0;h=A+80|0;do{c[(A&p)>>2]=0;A=A+4|0}while((A|0)<(h|0));c[(V&p)>>2]=1;c[(V&p)+16>>2]=c[(x&p)>>2];c[(V&p)+24>>2]=x;c[(V&p)+48>>2]=-1;c[(E&p)>>2]=f;c[(E&p)+4>>2]=V;b[(E&o)+28>>1]=16;ls(E,r)|0;c[(P&p)+36>>2]=r;g=c[(l&p)>>2]|0}z=(d[((c[(F+(v<<4)&p)+12>>2]|0)&n)+76>>0]|0)>3;d:do if((g|0)>0){G=x+4|0;F=x+38|0;E=P+4|0;r=X+145|0;g=P+32|0;y=P+28|0;h=0;s=c[(l&p)+4>>2]|0;while(1){u=c[(s&p)+4>>2]|0;A=b[(F&o)>>1]|0;e:do if(A<<16>>16>0){D=0;B=c[(G&p)>>2]|0;while(1){if(!(dd(u,c[(B&p)>>2]|0)|0)){t=D;break e}D=D+1|0;if((D|0)<(A<<16>>16|0))B=B+24|0;else{t=D;break}}}else t=0;while(0);if((t|0)>=(A<<16>>16|0))break;b[((c[(E&p)>>2]|0)+(h<<1)&o)>>1]=t;D=c[(s&p)>>2]|0;if(!D){D=c[((c[(G&p)>>2]|0)+(t*24|0)&p)+16>>2]|0;D=(D|0)!=0?D:11152}else{B=c[(D&p)+8>>2]|0;if(!B)D=1;else{D=B;while(1)if(!(a[(D&n)>>0]|0))break;else D=D+1|0;D=(D-B&1073741823)+1|0}kw(C|0,B|0,D|0)|0;B=c[(N&p)>>2]|0;C=B+D|0;c[(N&p)>>2]=C;D=B}if((a[(r&n)>>0]|0)==0?(cr(f,D)|0)==0:0){h=0;u=0;W=134;break c}c[((c[(g&p)>>2]|0)+(h<<2)&p)>>2]=D;a[((c[(y&p)>>2]|0)+h&n)>>0]=z?a[(s&n)+12>>0]|0:0;if(!(a[((c[(G&p)>>2]|0)+(t*24|0)&n)+20>>0]|0))a[(H&n)>>0]=a[(H&n)>>0]&-9;h=h+1|0;if((h|0)<(c[(l&p)>>2]|0))s=s+20|0;else break d}c[(V&p)>>2]=c[(x&p)>>2];c[(V&p)+4>>2]=u;th(f,36184,V);a[(f&n)+17>>0]=1;h=0;u=0;W=134;break c}else h=0;while(0);do if(I){z=M+46|0;A=b[(z&o)>>1]|0;if(!(A<<16>>16))break;E=M+4|0;F=P+4|0;G=P+48|0;s=M+32|0;t=P+32|0;g=M+28|0;y=P+28|0;r=0;do{B=b[((c[(E&p)>>2]|0)+(r<<1)&o)>>1]|0;u=c[(F&p)>>2]|0;D=e[(J&o)>>1]|0;C=u;while(1){if((D|0)<=0){W=92;break}if((b[(C&o)>>1]|0)==B<<16>>16){W=91;break}else{D=D+-1|0;C=C+2|0}}if((W|0)==91){W=0;b[(G&o)>>1]=(b[(G&o)>>1]|0)+-1<<16>>16}else if((W|0)==92){W=0;b[(u+(h<<1)&o)>>1]=B;c[((c[(t&p)>>2]|0)+(h<<2)&p)>>2]=c[((c[(s&p)>>2]|0)+(r<<2)&p)>>2];a[((c[(y&p)>>2]|0)+h&n)>>0]=a[((c[(g&p)>>2]|0)+r&n)>>0]|0;A=b[(z&o)>>1]|0;h=h+1|0}r=r+1|0}while((r|0)<(A&65535|0))}else{b[((c[(P&p)+4>>2]|0)+(h<<1)&o)>>1]=-1;c[((c[(P&p)+32>>2]|0)+(h<<2)&p)>>2]=11152}while(0);cq(P);r=f+484|0;g=c[(r&p)>>2]|0;if(!g){ms(P);g=c[(r&p)>>2]|0}f:do if((x|0)==(g|0)){u=c[(x&p)+8>>2]|0;if(!u)break;B=b[(J&o)>>1]|0;C=P+4|0;D=P+32|0;while(1){if((b[(u&o)+46>>1]|0)==B<<16>>16){g:do if(!(B<<16>>16)){r=0;g=0}else{y=c[(u&p)+4>>2]|0;z=c[(C&p)>>2]|0;A=u+32|0;g=0;while(1){if((b[(y+(g<<1)&o)>>1]|0)!=(b[(z+(g<<1)&o)>>1]|0)){r=B;break g}r=c[((c[(A&p)>>2]|0)+(g<<2)&p)>>2]|0;h=c[((c[(D&p)>>2]|0)+(g<<2)&p)>>2]|0;if((r|0)!=(h|0)?(dd(r,h)|0)!=0:0){r=B;break g}g=g+1|0;if((g|0)>=(B&65535|0)){r=B;break}}}while(0);if((g|0)==(r&65535|0))break}u=c[(u&p)+20>>2]|0;if(!u)break f}g=u+50|0;h=a[(g&n)>>0]|0;r=a[(L&n)>>0]|0;if(h<<24>>24==r<<24>>24){h=0;break c}if(!(h<<24>>24==10|r<<24>>24==10)){c[(V&p)>>2]=0;th(f,36216,V);h=a[(g&n)>>0]|0}if(h<<24>>24!=10){h=0;W=134;break c}a[(g&n)>>0]=a[(L&n)>>0]|0;h=0;break c}while(0);h=X+145|0;do if(!(a[(h&n)>>0]|0)){if(c[(f&p)+64>>2]|0){W=126;break}if(!((a[(Q&n)>>0]&32)==0|U)){W=126;break}u=f+72|0;r=(c[(u&p)>>2]|0)+1|0;c[(u&p)>>2]=r;u=Oq(f)|0;if(!u){h=0;u=0;W=134;break c}J=c[(f&p)+408>>2]|0;J=(J|0)==0?f:J;Ar(f,v);I=J+328|0;c[(I&p)>>2]=c[(I&p)>>2]|1<>0]=d[(J&n)>>0]|1;wh(u,120,v,r,0)|0;if(!q)g=0;else{g=c[(c[(T&p)>>2]&p)>>2]|0;J=(c[(f&p)+504>>2]|0)-g+(c[(f&p)+508>>2]|0)|0;I=J+-1|0;J=(a[(g+I&n)>>0]|0)==59?I:J;c[(V&p)>>2]=(m|0)==0?10360:36288;c[(V&p)+4>>2]=J;c[(V&p)+8>>2]=g;g=uh(X,36264,V)|0}I=c[(P&p)>>2]|0;J=c[(x&p)>>2]|0;c[(V&p)>>2]=c[((c[(R&p)>>2]|0)+(v<<4)&p)>>2];c[(V&p)+4>>2]=O;c[(V&p)+8>>2]=I;c[(V&p)+12>>2]=J;c[(V&p)+16>>2]=r;c[(V&p)+20>>2]=g;Br(f,36296,V);mg(X,g);if(!U)break;vs(f,P,r);Dr(f,v);c[(V&p)>>2]=c[(P&p)>>2];Ir(u,v,uh(X,36344,V)|0);wh(u,144,0,0,0)|0;W=126}else{if(Ik((c[(K&p)>>2]|0)+24|0,c[(P&p)>>2]|0,P)|0){a[(S&n)>>0]=1;h=0;u=0;W=134;break c}J=X+24|0;c[(J&p)>>2]=c[(J&p)>>2]|2;if(!U)break;c[(P&p)+40>>2]=c[(X&p)+140>>2];W=126}while(0);if((W|0)==126?!((a[(h&n)>>0]|0)!=0|(k|0)==0):0){h=0;u=0;W=134;break}h=c[(x&p)+8>>2]|0;do if((m|0)==5){if(!h){h=0;break}if((a[(h&n)+50>>0]|0)==5)break;do{u=h+20|0;h=c[(u&p)>>2]|0;if(!h){h=0;break}}while((a[(h&n)+50>>0]|0)!=5);c[(P&p)+20>>2]=h;c[(u&p)>>2]=P;r=0;u=P;h=w;break a}while(0);c[(P&p)+20>>2]=h;c[(x&p)+8>>2]=P;r=0;u=P;h=w;break a}else{h=r;u=0;W=134}while(0);if((W|0)==134)if(!P){r=h;h=w;break}Jk(X,P);r=h;h=w}else{u=0;h=w}}else{u=0;h=0}while(0);Gk(X,r);Nk(X,l);Do(X,k);mg(X,h);i=Y;return u|0}function ar(e,f){e=e|0;f=f|0;var g=0,h=0;g=c[(e&p)+484>>2]|0;h=c[(e&p)>>2]|0;if(((g|0)!=0?(a[(e&n)+451>>0]|0)==0:0)?(b[((c[((c[((c[(h&p)+16>>2]|0)+(d[(h&n)+144>>0]<<4)&p)+4>>2]|0)&p)+4>>2]|0)&o)+22>>1]&1)==0:0){h=g+24|0;g=lr(e,c[(h&p)>>2]|0,f)|0;c[(h&p)>>2]=g;if(c[(e&p)+324>>2]|0)mr(e,g,e+320|0,1)}else Gk(h,f);return}function br(d,e,f,g,h){d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0;F=i;i=i+16|0;if((i|0)>=(j|0))fa();C=F;E=c[(d&p)>>2]|0;D=c[(d&p)+484>>2]|0;a:do if((D|0)!=0?(a[(d&n)+451>>0]|0)==0:0){z=(e|0)==0;do if(z){B=b[(D&o)+38>>1]|0;l=(B<<16>>16)+-1|0;if(B<<16>>16<1){k=0;break a}if(g)if((c[(g&p)>>2]|0)==1){l=1;k=13}else{c[(C&p)>>2]=c[((c[(D&p)+4>>2]|0)+(l*24|0)&p)>>2];c[(C&p)+4>>2]=f;th(d,35712,C);k=0;break a}else{l=1;k=12}}else{if(!g){l=c[(e&p)>>2]|0;k=12;break}l=c[(g&p)>>2]|0;if((l|0)==(c[(e&p)>>2]|0))k=13;else{th(d,35776,C);k=0;break a}}while(0);if((k|0)==12){m=f+4|0;s=m;w=0;m=(l<<3)+37+(c[(m&p)>>2]|0)|0;B=l}else if((k|0)==13){s=f+4|0;m=(l<<3)+37+(c[(s&p)>>2]|0)|0;t=c[(g&p)>>2]|0;if((t|0)>0){u=c[(g&p)+4>>2]|0;v=0;do{r=c[(u+(v*20|0)&p)+4>>2]|0;if(!r)k=1;else{q=r;while(1)if(!(a[(q&n)>>0]|0))break;else q=q+1|0;k=(q-r&1073741823)+1|0}m=k+m|0;v=v+1|0}while((v|0)<(t|0));w=1;B=l}else{w=1;B=l}}k=mh(E,m,((m|0)<0)<<31>>31)|0;if(k){fw(k|0,0,m|0)|0;c[(k&p)>>2]=D;A=D+16|0;c[(k&p)+4>>2]=c[(A&p)>>2];x=k+36|0;q=x+(B<<3)|0;y=k+8|0;c[(y&p)>>2]=q;kw(q|0,c[(f&p)>>2]|0,c[(s&p)>>2]|0)|0;a[(q+(c[(s&p)>>2]|0)&n)>>0]=0;lo(q);q=q+((c[(s&p)>>2]|0)+1)|0;c[(k&p)+20>>2]=B;b:do if(!z){if((B|0)>0){m=D+4|0;f=e+4|0;r=b[(D&o)+38>>1]|0;l=0;while(1){c:do if(r<<16>>16>0){v=c[(m&p)>>2]|0;u=c[((c[(f&p)>>2]|0)+(l*20|0)&p)+4>>2]|0;t=0;while(1){s=t+1|0;if(!(dd(c[(v+(t*24|0)&p)>>2]|0,u)|0)){s=t;break}if((s|0)<(r<<16>>16|0))t=s;else break c}c[(x+(l<<3)&p)>>2]=s}else s=0;while(0);if((s|0)>=(r<<16>>16|0))break;l=l+1|0;if((l|0)>=(B|0))break b}c[(C&p)>>2]=c[((c[(f&p)>>2]|0)+(l*20|0)&p)+4>>2];th(d,35872,C);break a}}else c[(x&p)>>2]=(b[(D&o)+38>>1]|0)+-1;while(0);if(w&(B|0)>0){r=g+4|0;s=0;while(1){m=c[((c[(r&p)>>2]|0)+(s*20|0)&p)+4>>2]|0;if(!m)l=0;else{l=m;while(1)if(!(a[(l&n)>>0]|0))break;else l=l+1|0;l=l-m&1073741823}c[(x+(s<<3)&p)+4>>2]=q;kw(q|0,m|0,l|0)|0;a[(q+l&n)>>0]=0;s=s+1|0;if((s|0)==(B|0))break;else q=q+(l+1)|0}}a[(k&n)+24>>0]=0;a[(k&n)+25>>0]=h;a[(k&n)+26>>0]=h>>>8;l=Ik((c[(D&p)+68>>2]|0)+56|0,c[(y&p)>>2]|0,k)|0;if((l|0)==(k|0)){a[(E&n)+65>>0]=1;break}if(l){c[(k&p)+12>>2]=l;c[(l&p)+16>>2]=k}c[(A&p)>>2]=k;k=0}else k=0}else k=0;while(0);mg(E,k);Nk(E,e);Nk(E,g);i=F;return}function cr(b,d){b=b|0;d=d|0;var e=0,f=0,g=0;e=c[(b&p)>>2]|0;f=a[(e&n)+62>>0]|0;g=a[(e&n)+145>>0]|0;e=Yn(e,f,d,g&255)|0;do if(!(g<<24>>24)){if((e|0)!=0?(c[(e&p)+12>>2]|0)!=0:0)break;e=ws(b,f,e,d)|0}while(0);return e|0}function dr(e,f,g,h){e=e|0;f=f|0;g=g|0;h=h|0;var k=0,l=0,m=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;i=i+16|0;if((i|0)>=(j|0))fa();z=B;v=B+12|0;A=c[(e&p)>>2]|0;do if(!(a[(A&n)+65>>0]|0)){h=(h|0)!=0;if(h){u=A+68|0;a[(u&n)>>0]=(a[(u&n)>>0]|0)+1<<24>>24;y=Ur(e,g,f+8|0)|0;a[(u&n)>>0]=(a[(u&n)>>0]|0)+-1<<24>>24}else y=Ur(e,g,f+8|0)|0;if(!y){if(!h)break;zr(e,c[(f&p)+12>>2]|0);break}s=y+68|0;l=c[(s&p)>>2]|0;a:do if(l){h=c[(A&p)+20>>2]|0;if((h|0)>0){k=c[(A&p)+16>>2]|0;q=0;while(1){m=q+1|0;if((c[(k+(q<<4)&p)+12>>2]|0)==(l|0)){m=q;break a}if((m|0)<(h|0))q=m;else break}}else m=0}else m=-1e6;while(0);w=y+44|0;if((a[(w&n)>>0]&16)!=0?(hr(e,y)|0)!=0:0)break;q=(m|0)==1;x=q?13184:13208;h=c[((c[(A&p)+16>>2]|0)+(m<<4)&p)>>2]|0;if(!(Sq(e,9,x,0,h)|0)){k=(g|0)!=0;do if(k){l=q?15:17;q=0}else{if(!(a[(w&n)>>0]&16)){l=q?13:11;q=0;break}q=y+60|0;while(1){q=c[(q&p)>>2]|0;if((c[(q&p)>>2]|0)==(A|0))break;else q=q+24|0}l=30;q=c[((c[(q&p)+4>>2]|0)&p)+4>>2]|0}while(0);if((Sq(e,l,c[(y&p)>>2]|0,q,h)|0)==0?(Sq(e,9,c[(y&p)>>2]|0,0,h)|0)==0:0){q=c[(y&p)>>2]|0;if((Fc(q,25568,7)|0)==0?(Fc(q,35488,11)|0)!=0:0){c[(z&p)>>2]=q;th(e,35504,z);break}h=y+12|0;l=(c[(h&p)>>2]|0)==0;if(k){if(l){c[(z&p)>>2]=q;th(e,35536,z);break}}else if(!l){c[(z&p)>>2]=q;th(e,35576,z);break}if(Oq(e)|0){t=e+408|0;l=c[(t&p)>>2]|0;l=(l|0)==0?e:l;Ar(e,m);u=1<>2]=c[(k&p)>>2]|u;l=l+20|0;a[(l&n)>>0]=d[(l&n)>>0]|1;Cr(e,m,28544,c[(y&p)>>2]|0);l=c[(e&p)>>2]|0;k=l+24|0;b:do if(((c[(k&p)>>2]&524288|0)!=0?(a[(w&n)>>0]&16)==0:0)?(c[(h&p)>>2]|0)==0:0){r=Oq(e)|0;v=bn((c[(s&p)>>2]|0)+56|0,c[(y&p)>>2]|0,v)|0;if((v|0)!=0?(c[(v&p)+8>>2]|0)!=0:0)q=0;else{q=c[(y&p)+16>>2]|0;if(!q)break;while(1){if(a[(q&n)+24>>0]|0)break;if(c[(k&p)>>2]&16777216)break;q=c[(q&p)+4>>2]|0;if(!q)break b}q=xs(r)|0;wh(r,135,1,q,0)|0}v=e+438|0;a[(v&n)>>0]=1;rr(e,ys(l,f,0)|0,0);a[(v&n)>>0]=0;if(!(c[(k&p)>>2]&16777216)){wh(r,135,0,(c[(r&p)+32>>2]|0)+2|0,0)|0;zs(e,787,2,0,-2,4)}if(q){l=c[(r&p)+24>>2]|0;h=~q;do if((q|0)<0){q=c[(l&p)+112>>2]|0;if(!q)break;c[(q+(h<<2)&p)>>2]=c[(r&p)+32>>2]}while(0);c[(l&p)+88>>2]=(c[(r&p)+32>>2]|0)+-1}}while(0);r=c[(e&p)>>2]|0;s=r+16|0;l=c[(s&p)>>2]|0;h=Oq(e)|0;v=c[(t&p)>>2]|0;v=(v|0)==0?e:v;Ar(e,m);t=v+328|0;c[(t&p)>>2]=c[(t&p)>>2]|u;v=v+20|0;a[(v&n)>>0]=d[(v&n)>>0]|1;if(a[(w&n)>>0]&16)wh(h,146,0,0,0)|0;q=As(e,y)|0;if(q)do{Qr(e,q);q=c[(q&p)+32>>2]|0}while((q|0)!=0);l=l+(m<<4)|0;if(a[(w&n)>>0]&8){v=c[(y&p)>>2]|0;c[(z&p)>>2]=c[(l&p)>>2];c[(z&p)+4>>2]=v;Br(e,35608,z)}v=c[(y&p)>>2]|0;c[(z&p)>>2]=c[(l&p)>>2];c[(z&p)+4>>2]=x;c[(z&p)+8>>2]=v;Br(e,35656,z);if((g|0)==0?(a[(w&n)>>0]&16)==0:0)Bs(e,y);if(a[(w&n)>>0]&16){v=c[(y&p)>>2]|0;xh(h,wh(h,148,m,0,0)|0,v,0)}k=c[(y&p)>>2]|0;xh(h,wh(h,124,m,0,0)|0,k,0);Dr(e,m);h=c[((c[(s&p)>>2]|0)+(m<<4)&p)+12>>2]|0;k=b[(h&o)+78>>1]|0;if(k&2){l=c[(h&p)+16>>2]|0;if(l){k=l;do{h=c[(k&p)+8>>2]|0;if(c[(h&p)+12>>2]|0){Lk(r,h);c[(h&p)+4>>2]=0;b[(h&o)+38>>1]=0}k=c[(k&p)>>2]|0}while((k|0)!=0);k=c[((c[(s&p)>>2]|0)+(m<<4)&p)+12>>2]|0;h=k;k=b[(k&o)+78>>1]|0}b[(h&o)+78>>1]=k&65533}}}}}while(0);Do(A,f);i=B;return}function er(b,e,f,g){b=b|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0;m=i;i=i+16|0;if((i|0)>=(j|0))fa();k=m;h=c[(b&p)>>2]|0;do if((f|0)!=0?(c[(f&p)+4>>2]|0)!=0:0){if(a[(h&n)+145>>0]|0){th(b,28488,k);f=b+64|0;c[(f&p)>>2]=(c[(f&p)>>2]|0)+1;f=-1;break}c[(g&p)>>2]=f;g=Wq(h,e)|0;f=Vh(h,g)|0;mg(h,g);if((f|0)<0){c[(k&p)>>2]=e;th(b,28512,k);f=b+64|0;c[(f&p)>>2]=(c[(f&p)>>2]|0)+1;f=-1}}else l=7;while(0);if((l|0)==7){f=d[(h&n)+144>>0]|0;c[(g&p)>>2]=e}i=m;return f|0}function fr(a,b){a=a|0;b=b|0;a:do if(!b)b=0;else while(1){if(Hr(a,c[(b&p)>>2]|0)|0){b=1;break a}if(Kr(a,c[(b&p)+32>>2]|0)|0){b=1;break a}if(Gr(a,c[(b&p)+36>>2]|0)|0){b=1;break a}if(Hr(a,c[(b&p)+40>>2]|0)|0){b=1;break a}if(Gr(a,c[(b&p)+44>>2]|0)|0){b=1;break a}if(Hr(a,c[(b&p)+48>>2]|0)|0){b=1;break a}if(Gr(a,c[(b&p)+60>>2]|0)|0){b=1;break a}if(Gr(a,c[(b&p)+64>>2]|0)|0){b=1;break a}b=c[(b&p)+52>>2]|0;if(!b){b=0;break}}while(0);return b|0}function gr(d,f,g){d=d|0;f=f|0;g=g|0;var h=0,i=0,j=0,k=0,l=0;if((f|0)!=0?(h=mh(d,72,0)|0,(h|0)!=0):0){c[(h&p)>>2]=Pr(d,c[(f&p)>>2]|0,g)|0;c[(h&p)+32>>2]=ys(d,c[(f&p)+32>>2]|0,g)|0;c[(h&p)+36>>2]=Mr(d,c[(f&p)+36>>2]|0,g,0)|0;c[(h&p)+40>>2]=Pr(d,c[(f&p)+40>>2]|0,g)|0;c[(h&p)+44>>2]=Mr(d,c[(f&p)+44>>2]|0,g,0)|0;c[(h&p)+48>>2]=Pr(d,c[(f&p)+48>>2]|0,g)|0;a[(h&n)+4>>0]=a[(f&n)+4>>0]|0;j=gr(d,c[(f&p)+52>>2]|0,g)|0;c[(h&p)+52>>2]=j;if(j)c[(j&p)+56>>2]=h;c[(h&p)+56>>2]=0;c[(h&p)+60>>2]=Mr(d,c[(f&p)+60>>2]|0,g,0)|0;c[(h&p)+64>>2]=Mr(d,c[(f&p)+64>>2]|0,g,0)|0;c[(h&p)+8>>2]=0;c[(h&p)+12>>2]=0;b[(h&o)+6>>1]=(e[(f&o)+6>>1]|0)&65527;c[(h&p)+16>>2]=-1;c[(h&p)+20>>2]=-1;l=f+24|0;j=c[(l&p)+4>>2]|0;g=h+24|0;c[(g&p)>>2]=c[(l&p)>>2];c[(g&p)+4>>2]=j;g=c[(f&p)+68>>2]|0;if((g|0)!=0?(k=c[(g&p)>>2]<<4|8,i=mh(d,k,((k|0)<0)<<31>>31)|0,(i|0)!=0):0){fw(i|0,0,k|0)|0;c[(i&p)>>2]=c[(g&p)>>2];if((c[(g&p)>>2]|0)>0){f=i+8|0;j=0;do{c[(f+(j<<4)&p)+8>>2]=gr(d,c[(g+(j<<4)&p)+16>>2]|0,0)|0;c[(f+(j<<4)&p)+4>>2]=Pr(d,c[(g+(j<<4)&p)+12>>2]|0,0)|0;c[(f+(j<<4)&p)>>2]=kh(d,c[(g+(j<<4)&p)+8>>2]|0)|0;j=j+1|0}while((j|0)<(c[(g&p)>>2]|0))}}else i=0;c[(h&p)+68>>2]=i}else h=0;return h|0}function hr(d,f){d=d|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0;w=i;i=i+16|0;if((i|0)>=(j|0))fa();s=w;k=w+8|0;m=w+4|0;v=c[(d&p)>>2]|0;q=f+44|0;h=a[(q&n)>>0]|0;a:do if(!(h&16))t=11;else{g=c[(f&p)+60>>2]|0;if(g)do{if((c[(g&p)>>2]|0)==(v|0)){t=11;break a}g=c[(g&p)+24>>2]|0}while((g|0)!=0);g=f+56|0;h=bn(v+308|0,c[(c[(g&p)>>2]&p)>>2]|0,k)|0;if((h|0)!=0?(l=c[(h&p)+8>>2]|0,(l|0)!=0):0){c[(m&p)>>2]=0;l=(zn(v,f,l,c[((c[(l&p)>>2]|0)&p)+8>>2]|0,m)|0)==0;h=c[(m&p)>>2]|0;if(l){mg(v,h);h=a[(q&n)>>0]|0;t=11;break}else{c[(s&p)>>2]=h;th(d,10344,s);mg(v,h);g=1;break}}c[(s&p)>>2]=c[(c[(g&p)>>2]&p)>>2];th(d,28320,s);g=1}while(0);do if((t|0)==11)if((h&16)==0?(u=f+38|0,r=b[(u&o)>>1]|0,r<<16>>16<=0):0){if(r<<16>>16<0){c[(s&p)>>2]=c[(f&p)>>2];th(d,26752,s);g=1;break}h=gr(v,c[(f&p)+12>>2]|0,0)|0;if(!h)g=1;else{r=v+250|0;q=a[(r&n)>>0]|0;t=d+68|0;s=c[(t&p)>>2]|0;Cs(d,c[(h&p)+32>>2]|0);b[(u&o)>>1]=-1;a[(r&n)>>0]=0;m=v+284|0;l=c[(m&p)>>2]|0;c[(m&p)>>2]=0;g=ns(d,h)|0;c[(m&p)>>2]=l;a[(r&n)>>0]=q;c[(t&p)>>2]=s;if(!g){b[(u&o)>>1]=0;g=1}else{d=g+38|0;b[(u&o)>>1]=b[(d&o)>>1]|0;t=g+4|0;c[(f&p)+4>>2]=c[(t&p)>>2];b[(d&o)>>1]=0;c[(t&p)>>2]=0;kg(v,g);g=(c[(f&p)+68>>2]|0)+78|0;b[(g&o)>>1]=e[(g&o)>>1]|0|2;g=0}Mk(v,h,1)}}else g=0;while(0);i=w;return g|0} function ir(f,g,h){f=f|0;g=g|0;h=h|0;var k=0,l=0,m=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,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,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;Ca=i;i=i+240|0;if((i|0)>=(j|0))fa();ra=Ca;sa=Ca+220|0;ka=Ca+216|0;ia=Ca+196|0;ja=Ca+176|0;ua=Ca+164|0;va=Ca+136|0;ya=Ca+88|0;ga=Ca+64|0;ma=Ca+32|0;Aa=f+464|0;Ba=c[(Aa&p)>>2]|0;oa=f+468|0;xa=c[(oa&p)>>2]|0;c[(oa&p)>>2]=xa+1;c[(Aa&p)>>2]=xa;xa=c[(f&p)>>2]|0;a:do if((((g|0)!=0?(pa=xa+65|0,(a[(pa&n)>>0]|0)==0):0)?(k=f+64|0,(c[(k&p)>>2]|0)==0):0)?(Sq(f,21,0,0,0)|0)==0:0){D=ya+0|0;C=D+48|0;do{c[(D&p)>>2]=0;D=D+4|0}while((D|0)<(C|0));la=g+48|0;if((d[(h&n)>>0]|0)<9){Nk(xa,c[(la&p)>>2]|0);c[(la&p)>>2]=0;ea=g+6|0;b[(ea&o)>>1]=e[(ea&o)>>1]&65534}Ds(f,g,0);c[(va&p)>>2]=0;c[(va&p)+4>>2]=0;c[(va&p)+8>>2]=0;c[(va&p)+12>>2]=0;c[(va&p)+16>>2]=0;c[(va&p)+20>>2]=0;c[(va&p)+24>>2]=0;c[(va&p)>>2]=c[(la&p)>>2];na=g+32|0;x=c[(na&p)>>2]|0;w=c[(g&p)>>2]|0;b:do if(((c[(k&p)>>2]|0)==0?(a[(pa&n)>>0]|0)==0:0)?(ta=g+6|0,z=(e[(ta&o)>>1]|0)>>>2&1,wa=Oq(f)|0,(wa|0)!=0):0){if((c[(w&p)>>2]|0)>1?(a[(h&n)>>0]&-2)<<24>>24==10:0){th(f,35368,ra);za=444;break}qa=g+52|0;w=c[(qa&p)>>2]|0;c:do if(!w){r=f+460|0;q=f+492|0;m=g+36|0;l=f+408|0;k=g+60|0;T=g+64|0;U=g+4|0;V=xa+60|0;W=wa+32|0;X=f+72|0;Y=ga+4|0;Z=ga+1|0;_=ga+8|0;$=ga+12|0;aa=wa+4|0;ba=wa+24|0;ca=f+19|0;da=f+56|0;ea=f+80|0;S=0;y=z;while(1){if((S|0)>=(c[(x&p)>>2]|0)){H=m;Q=0;z=y;U=x;break c}N=c[(x+(S*72|0)&p)+28>>2]|0;do if(!N)z=S;else{P=x+(S*72|0)+32|0;A=c[(P&p)>>2]|0;if(A){if(a[(x+(S*72|0)&n)+45>>0]&4){z=S;break}wh(wa,17,c[(x+(S*72|0)&p)+36>>2]|0,A,0)|0;z=S;break}c[(ra&p)>>2]=0;Es(g,ra);c[(r&p)>>2]=(c[(r&p)>>2]|0)+(c[(ra&p)>>2]|0);v=b[(N&o)+6>>1]&4;Q=c[(q&p)>>2]|0;u=c[(f&p)>>2]|0;d:do if(!(b[(u&o)+60>>1]&1)){L=c[(na&p)>>2]|0;t=c[(L+(S*72|0)&p)+48>>2]|0;K=L+(S*72|0)+28|0;O=c[(K&p)>>2]|0;s=v<<16>>16!=0;do if(s){if(y){za=120;break d}if((c[(L&p)>>2]|0)>1){za=120;break d}R=c[(m&p)>>2]|0;if((R|0)!=0?(c[(R&p)+4>>2]&2097152|0)!=0:0){za=120;break d}H=c[(g&p)>>2]|0;do if(H){E=c[(H&p)>>2]|0;if((E|0)<=0)break;I=c[(H&p)+4>>2]|0;H=0;F=0;do{F=c[((c[(I+(H*20|0)&p)>>2]|0)&p)+4>>2]|F;H=H+1|0}while((H|0)!=(E|0));if(F&2097152){za=120;break d}}while(0);H=c[(la&p)>>2]|0;if(!H)break;E=c[(H&p)>>2]|0;if((E|0)<=0)break;I=c[(H&p)+4>>2]|0;H=0;F=0;do{F=c[((c[(I+(H*20|0)&p)>>2]|0)&p)+4>>2]|F;H=H+1|0}while((H|0)!=(E|0));if(F&2097152){za=120;break d}}while(0);I=c[(O&p)+32>>2]|0;H=(c[(O&p)+60>>2]|0)==0;if(!H?(c[(k&p)>>2]|0)!=0:0){za=120;break}if(c[(O&p)+64>>2]|0){za=120;break}E=b[(ta&o)>>1]|0;F=(E&64)==0;if(!(F|H)){za=120;break}if(!(c[(I&p)>>2]|0)){za=120;break}D=b[(O&o)+6>>1]|0;if(D&1){za=120;break}I=H|F^1;if(!I?(c[(L&p)>>2]|0)>1|(y|0)!=0:0){za=120;break}H=E&1;if(H<<16>>16!=0&s){za=120;break}B=c[(la&p)>>2]|0;C=(B|0)==0;if(!C?(c[(O&p)+48>>2]|0)!=0:0){za=120;break}J=(y|0)!=0;if(J?(c[(O&p)+48>>2]|0)!=0:0){za=120;break}if(I){if(D&6144){za=120;break}}else if(!((c[(m&p)>>2]|0)==0&H<<16>>16==0&(D&6144)==0)){za=120;break}if((E&2048)!=0?(c[(O&p)+52>>2]|0)!=0:0){za=120;break}R=L+(S*72|0)+44|0;if(a[(R&n)>>0]&32){za=120;break}E=O+52|0;I=c[(E&p)>>2]|0;do if(I){if(!(H<<16>>16==0&(((c[(O&p)+48>>2]|0)!=0|J)^1))){za=120;break d}if((c[(L&p)>>2]|0)!=1){za=120;break d}e:do if(O){if(!(D&5))F=O;else{za=120;break d}while(1){H=(I|0)==0;if(!H?(a[(F&n)+4>>0]|0)!=116:0){za=120;break d}if((c[(c[(F&p)+32>>2]&p)>>2]|0)<1){za=120;break d}if((c[(c[(O&p)>>2]&p)>>2]|0)!=(c[(c[(F&p)>>2]&p)>>2]|0)){za=120;break d}if(H)break e;if(b[(I&o)+6>>1]&5){za=120;break d}F=I;I=c[(I&p)+52>>2]|0}}while(0);if(C)break;F=c[(B&p)>>2]|0;if((F|0)<=0)break;I=c[(B&p)+4>>2]|0;H=0;do{if(!(b[(I+(H*20|0)&o)+16>>1]|0)){za=120;break d}H=H+1|0}while((H|0)<(F|0))}while(0);A=L+(S*72|0)+16|0;c[(q&p)>>2]=c[(A&p)>>2];Sq(f,21,0,0,0)|0;c[(q&p)>>2]=Q;I=c[(E&p)>>2]|0;f:do if(!I)za=81;else{B=u+65|0;E=c[(la&p)>>2]|0;D=c[(k&p)>>2]|0;C=c[(T&p)>>2]|0;F=c[(qa&p)>>2]|0;while(1){c[(la&p)>>2]=0;c[(na&p)>>2]=0;c[(qa&p)>>2]=0;c[(k&p)>>2]=0;c[(T&p)>>2]=0;H=gr(u,g,0)|0;c[(T&p)>>2]=C;c[(k&p)>>2]=D;c[(la&p)>>2]=E;c[(na&p)>>2]=L;a[(U&n)>>0]=116;if(!H)H=F;else{c[(H&p)+52>>2]=F;if(F)c[(F&p)+56>>2]=H;c[(H&p)+56>>2]=g}c[(qa&p)>>2]=H;if(a[(B&n)>>0]|0)break f;I=c[(I&p)+52>>2]|0;if(!I){za=81;break}else F=H}}while(0);if((za|0)==81){za=0;M=c[(K&p)>>2]|0;E=L+(S*72|0)+12|0;mg(u,c[(E&p)>>2]|0);mg(u,c[(A&p)>>2]|0);F=L+(S*72|0)+20|0;mg(u,c[(F&p)>>2]|0);c[(E&p)>>2]=0;c[(A&p)>>2]=0;c[(F&p)>>2]=0;c[(K&p)>>2]=0;F=L+(S*72|0)+24|0;E=c[(F&p)>>2]|0;if(E){D=E+40|0;C=b[(D&o)>>1]|0;if(C<<16>>16==1){Q=c[(l&p)>>2]|0;Q=((Q|0)==0?f:Q)+524|0;c[(E&p)+72>>2]=c[(Q&p)>>2];c[(Q&p)>>2]=E}else b[(D&o)>>1]=C+-1<<16>>16;c[(F&p)>>2]=0}Q=S+1|0;P=u+65|0;O=g;N=M;while(1){B=c[(N&p)+32>>2]|0;A=c[(B&p)>>2]|0;H=O+32|0;I=c[(H&p)>>2]|0;if(!I){I=pr(u,0,0,0)|0;c[(H&p)>>2]=I;if(!I)break;else z=0}else z=a[(R&n)>>0]|0;if((A|0)>1){I=Fs(u,I,A+-1|0,Q)|0;c[(H&p)>>2]=I;if(a[(P&n)>>0]|0)break}if((A|0)>0){F=0;do{D=F+S|0;Hk(u,c[(I+(D*72|0)&p)+56>>2]|0);H=B+(F*72|0)+8|0;D=I+(D*72|0)+8|0;E=H+0|0;C=D+72|0;do{c[(D&p)>>2]=c[(E&p)>>2];D=D+4|0;E=E+4|0}while((D|0)<(C|0));D=H+0|0;C=D+72|0;do{c[(D&p)>>2]=0;D=D+4|0}while((D|0)<(C|0));F=F+1|0}while((F|0)!=(A|0))}a[(I+(S*72|0)&n)+44>>0]=z;H=c[(O&p)>>2]|0;I=c[(H&p)>>2]|0;if((I|0)>0){D=H+4|0;F=c[(D&p)>>2]|0;E=0;do{if(!(c[(F+(E*20|0)&p)+4>>2]|0)){I=kh(u,c[(F+(E*20|0)&p)+8>>2]|0)|0;lo(I);F=c[(D&p)>>2]|0;c[(F+(E*20|0)&p)+4>>2]=I;I=c[(H&p)>>2]|0}E=E+1|0}while((E|0)<(I|0));H=c[(O&p)>>2]|0}Gs(u,H,t,c[(N&p)>>2]|0);if(J){Gs(u,c[(O&p)+40>>2]|0,t,c[(N&p)>>2]|0);L=O+44|0;c[(L&p)>>2]=Hs(u,c[(L&p)>>2]|0,t,c[(N&p)>>2]|0)|0}I=N+48|0;H=c[(I&p)>>2]|0;do if(!H){H=c[(O&p)+48>>2]|0;if(!H)break;Gs(u,H,t,c[(N&p)>>2]|0)}else{F=c[(H&p)>>2]|0;if((F|0)>0){E=c[(H&p)+4>>2]|0;D=0;do{b[(E+(D*20|0)&o)+16>>1]=0;D=D+1|0}while((D|0)!=(F|0))}c[(O&p)+48>>2]=H;c[(I&p)>>2]=0}while(0);H=c[(N&p)+36>>2]|0;if(!H)F=0;else F=Mr(u,H,0,0)|0;I=O+36|0;H=c[(I&p)>>2]|0;if(s){L=O+44|0;c[(L&p)>>2]=H;c[(I&p)>>2]=F;K=Hs(u,H,t,c[(N&p)>>2]|0)|0;c[(L&p)>>2]=K;c[(L&p)>>2]=ss(u,K,Mr(u,c[(N&p)+44>>2]|0,0,0)|0)|0;c[(O&p)+40>>2]=Pr(u,c[(N&p)+40>>2]|0,0)|0}else{L=Hs(u,H,t,c[(N&p)>>2]|0)|0;c[(I&p)>>2]=L;c[(I&p)>>2]=ss(u,L,F)|0}H=O+6|0;b[(H&o)>>1]=e[(H&o)>>1]|e[(N&o)+6>>1]&1;H=N+60|0;F=c[(H&p)>>2]|0;if(F){c[(O&p)+60>>2]=F;c[(H&p)>>2]=0}O=c[(O&p)+52>>2]|0;if(!O)break;else N=c[(N&p)+52>>2]|0}Mk(u,M,1)}if(!(v<<16>>16)){z=-1;break}b[(ta&o)>>1]=e[(ta&o)>>1]|4;z=-1;y=1}else za=120;while(0);g:do if((za|0)==120){za=0;do if((c[(x&p)>>2]|0)==1){if(b[(V&o)>>1]&256)break;D=c[(W&p)>>2]|0;R=D+1|0;Q=(c[(X&p)>>2]|0)+1|0;c[(X&p)>>2]=Q;z=x+(S*72|0)+36|0;c[(z&p)>>2]=Q;wh(wa,20,Q,0,R)|0;c[(P&p)>>2]=R;R=c[(z&p)>>2]|0;a[(ga&n)>>0]=13;c[(Y&p)>>2]=R;a[(Z&n)>>0]=0;c[(_&p)>>2]=0;c[($&p)>>2]=0;a[(x+(S*72|0)&n)+46>>0]=c[(oa&p)>>2];ir(f,N,ga)|0;R=N+24|0;R=fs(c[(R&p)>>2]|0,c[(R&p)+4>>2]|0)|0;b[((c[(x+(S*72|0)&p)+24>>2]|0)&o)+28>>1]=R;R=x+(S*72|0)+45|0;a[(R&n)>>0]=a[(R&n)>>0]|4;c[(x+(S*72|0)&p)+40>>2]=c[(_&p)>>2];wh(wa,21,c[(z&p)>>2]|0,0,0)|0;z=c[(W&p)>>2]|0;if(z>>>0>D>>>0)c[((c[(aa&p)>>2]|0)+(D*20|0)&p)+8>>2]=z;c[((c[(ba&p)>>2]|0)&p)+88>>2]=z+-1;a[(ca&n)>>0]=0;c[(da&p)>>2]=0;z=S;break g}while(0);C=(c[(X&p)>>2]|0)+1|0;c[(X&p)>>2]=C;E=x+(S*72|0)+36|0;c[(E&p)>>2]=C;C=wh(wa,25,0,C,0)|0;c[(P&p)>>2]=C+1;if(!(a[(x+(S*72|0)&n)+45>>0]&2)){R=Oq(f)|0;D=c[(ea&p)>>2]|0;c[(ea&p)>>2]=D+1;D=wh(R,44,D,0,0)|0}else D=0;R=c[(x+(S*72|0)&p)+48>>2]|0;a[(ga&n)>>0]=12;c[(Y&p)>>2]=R;a[(Z&n)>>0]=0;c[(_&p)>>2]=0;c[($&p)>>2]=0;a[(x+(S*72|0)&n)+46>>0]=c[(oa&p)>>2];ir(f,N,ga)|0;R=N+24|0;R=fs(c[(R&p)>>2]|0,c[(R&p)+4>>2]|0)|0;b[((c[(x+(S*72|0)&p)+24>>2]|0)&o)+28>>1]=R;if(D){A=c[(W&p)>>2]|0;if(A>>>0>D>>>0)c[((c[(aa&p)>>2]|0)+(D*20|0)&p)+8>>2]=A;c[((c[(ba&p)>>2]|0)&p)+88>>2]=A+-1}z=wh(wa,18,c[(E&p)>>2]|0,0,0)|0;if((c[(W&p)>>2]|0)>>>0>C>>>0)c[((c[(aa&p)>>2]|0)+(C*20|0)&p)+4>>2]=z;a[(ca&n)>>0]=0;c[(da&p)>>2]=0;z=S}while(0);if(a[(pa&n)>>0]|0){za=444;break b}c[(ra&p)>>2]=0;Es(g,ra);c[(r&p)>>2]=(c[(r&p)>>2]|0)-(c[(ra&p)>>2]|0);x=c[(na&p)>>2]|0;if((d[(h&n)>>0]|0)<9)break;c[(va&p)>>2]=c[(la&p)>>2]}while(0);w=c[(qa&p)>>2]|0;if(!w)S=z+1|0;else{H=m;Q=w;z=y;U=x;break}}}else{H=g+36|0;Q=w;U=x}while(0);T=c[(g&p)>>2]|0;B=c[(H&p)>>2]|0;l=g+40|0;w=c[(l&p)>>2]|0;I=g+44|0;ga=c[(I&p)>>2]|0;m=b[(ta&o)>>1]|0;a[(ua&n)>>0]=m&1;if(Q){O=c[(f&p)>>2]|0;c[(sa&p)>>2]=c[(h&p)>>2];c[(sa&p)+4>>2]=c[(h&p)+4>>2];c[(sa&p)+8>>2]=c[(h&p)+8>>2];c[(sa&p)+12>>2]=c[(h&p)+12>>2];c[(sa&p)+16>>2]=c[(h&p)+16>>2];h:do if(!(c[(Q&p)+48>>2]|0)){x=Q+60|0;if(c[(x&p)>>2]|0){k=d[(g&n)+4>>0]|0;if((k|0)==118)k=35336;else if((k|0)==117)k=35352;else if((k|0)==116)k=35320;else k=35360;c[(ra&p)>>2]=k;th(f,35072,ra);m=0;k=1;za=227;break}R=Oq(f)|0;t=a[(sa&n)>>0]|0;if(t<<24>>24==12){wh(R,57,c[(sa&p)+4>>2]|0,c[(c[(g&p)>>2]&p)>>2]|0,0)|0;t=c[(R&p)+4>>2]|0;if(t)a[(t+(((c[(R&p)+32>>2]|0)+-1|0)*20|0)&n)+3>>0]=8;a[(sa&n)>>0]=14;t=14}s=e[(ta&o)>>1]|0;if(s&256){m=0;k=Is(f,g,sa)|0;za=227;break}if((c[(c[(g&p)>>2]&p)>>2]|0)!=(c[(c[(Q&p)>>2]&p)>>2]|0)){Js(f,g);m=0;k=1;za=227;break}do if(!(s&2048)){if(c[(la&p)>>2]|0){k=Ls(f,g,h)|0;break h}P=g+4|0;s=d[(P&n)>>0]|0;if((s|0)==116){v=g+8|0;t=Q+8|0;c[(t&p)>>2]=c[(v&p)>>2];u=g+12|0;s=Q+12|0;c[(s&p)>>2]=c[(u&p)>>2];da=g+60|0;c[(x&p)>>2]=c[(da&p)>>2];ea=g+64|0;c[(Q&p)+64>>2]=c[(ea&p)>>2];q=c[(oa&p)>>2]|0;k=ir(f,Q,sa)|0;c[(da&p)>>2]=0;c[(ea&p)>>2]=0;if(k){m=0;za=227;break h}c[(qa&p)>>2]=0;t=c[(t&p)>>2]|0;c[(v&p)>>2]=t;c[(u&p)>>2]=c[(s&p)>>2];if(!t)w=0;else w=wh(R,46,t,0,0)|0;l=c[(oa&p)>>2]|0;k=ir(f,g,sa)|0;m=c[(qa&p)>>2]|0;c[(qa&p)>>2]=Q;ea=Q+24|0;r=g+24|0;t=r;ea=jw(c[(t&p)>>2]|0,c[(t&p)+4>>2]|0,c[(ea&p)>>2]|0,c[(ea&p)+4>>2]|0)|0;t=r;c[(t&p)>>2]=ea;c[(t&p)+4>>2]=G;t=c[(x&p)>>2]|0;do if(t){ea=(Ms(t,ka)|0)!=0;t=c[(ka&p)>>2]|0;if(!(ea&(t|0)>0))break;ea=r;da=c[(ea&p)+4>>2]|0;s=((t|0)<0)<<31>>31;if(!(da>>>0>s>>>0|((da|0)==(s|0)?(c[(ea&p)>>2]|0)>>>0>t>>>0:0)))break;ea=r;c[(ea&p)>>2]=t;c[(ea&p)+4>>2]=s}while(0);if(!w){w=P;v=q;t=l;break}r=c[(R&p)+32>>2]|0;if(r>>>0>w>>>0)c[((c[(R&p)+4>>2]|0)+(w*20|0)&p)+8>>2]=r;c[((c[(R&p)+24>>2]|0)&p)+88>>2]=r+-1;w=P;v=q;t=l;break}else if((s|0)==115|(s|0)==117){if(t<<24>>24==1)s=c[(sa&p)+4>>2]|0;else{r=f+68|0;s=c[(r&p)>>2]|0;c[(r&p)>>2]=s+1;c[(g&p)+16>>2]=wh(R,57,s,0,0)|0;r=g;while(1){t=c[(r&p)+56>>2]|0;if(!t)break;else r=t}ea=r+6|0;b[(ea&o)>>1]=e[(ea&o)>>1]|8}a[(ia&n)>>0]=1;c[(ia&p)+4>>2]=s;a[(ia&n)+1>>0]=0;c[(ia&p)+8>>2]=0;c[(ia&p)+12>>2]=0;y=c[(oa&p)>>2]|0;k=ir(f,Q,ia)|0;if(k){m=0;za=227;break h}x=(a[(P&n)>>0]|0)==117?2:1;c[(qa&p)>>2]=0;v=g+60|0;u=c[(v&p)>>2]|0;c[(v&p)>>2]=0;t=g+64|0;r=c[(t&p)>>2]|0;c[(t&p)>>2]=0;a[(ia&n)>>0]=x;x=c[(oa&p)>>2]|0;k=ir(f,g,ia)|0;Nk(O,c[(la&p)>>2]|0);m=c[(qa&p)>>2]|0;c[(qa&p)>>2]=Q;c[(la&p)>>2]=0;if((a[(P&n)>>0]|0)==115){da=Q+24|0;ea=g+24|0;ca=ea;da=jw(c[(ca&p)>>2]|0,c[(ca&p)+4>>2]|0,c[(da&p)>>2]|0,c[(da&p)+4>>2]|0)|0;c[(ea&p)>>2]=da;c[(ea&p)+4>>2]=G}Gk(O,c[(v&p)>>2]|0);c[(v&p)>>2]=u;c[(t&p)>>2]=r;c[(g&p)+8>>2]=0;c[(g&p)+12>>2]=0;r=a[(sa&n)>>0]|0;if(r<<24>>24==9){r=g;while(1){q=c[(r&p)+52>>2]|0;if(!q)break;else r=q}Ns(f,0,c[(r&p)>>2]|0)}else if(r<<24>>24==1){w=P;v=y;t=x;break}l=xs(R)|0;ea=xs(R)|0;Os(f,g,l);wh(R,108,s,l,0)|0;w=R+32|0;v=c[(w&p)>>2]|0;Ps(f,g,c[(g&p)>>2]|0,s,0,0,sa,ea,l);u=R+24|0;t=c[(u&p)>>2]|0;r=~ea;do if((ea|0)<0){q=c[(t&p)+112>>2]|0;if(!q)break;c[(q+(r<<2)&p)>>2]=c[(w&p)>>2]}while(0);c[(t&p)+88>>2]=(c[(w&p)>>2]|0)+-1;wh(R,9,s,v,0)|0;r=c[(u&p)>>2]|0;q=~l;do if((l|0)<0){t=c[(r&p)+112>>2]|0;if(!t)break;c[(t+(q<<2)&p)>>2]=c[(w&p)>>2]}while(0);c[(r&p)+88>>2]=(c[(w&p)>>2]|0)+-1;wh(R,61,s,0,0)|0;w=P;v=y;t=x;break}else{r=f+68|0;A=c[(r&p)>>2]|0;c[(r&p)>>2]=A+2;c[(g&p)+16>>2]=wh(R,57,A,0,0)|0;r=g;while(1){q=c[(r&p)+56>>2]|0;if(!q)break;else r=q}y=A+1|0;v=r+6|0;b[(v&o)>>1]=e[(v&o)>>1]|8;a[(ja&n)>>0]=1;v=ja+4|0;c[(v&p)>>2]=A;a[(ja&n)+1>>0]=0;c[(ja&p)+8>>2]=0;c[(ja&p)+12>>2]=0;x=c[(oa&p)>>2]|0;k=ir(f,Q,ja)|0;if(k){m=0;za=227;break h}c[(g&p)+20>>2]=wh(R,57,y,0,0)|0;c[(qa&p)>>2]=0;w=g+60|0;l=c[(w&p)>>2]|0;c[(w&p)>>2]=0;q=g+64|0;r=c[(q&p)>>2]|0;c[(q&p)>>2]=0;c[(v&p)>>2]=y;z=c[(oa&p)>>2]|0;k=ir(f,g,ja)|0;m=c[(qa&p)>>2]|0;c[(qa&p)>>2]=Q;t=g+24|0;ea=t;da=c[(ea&p)+4>>2]|0;u=Q+24|0;v=c[(u&p)>>2]|0;u=c[(u&p)+4>>2]|0;if(da>>>0>u>>>0|((da|0)==(u|0)?(c[(ea&p)>>2]|0)>>>0>v>>>0:0)){ea=t;c[(ea&p)>>2]=v;c[(ea&p)+4>>2]=u}Gk(O,c[(w&p)>>2]|0);c[(w&p)>>2]=l;c[(q&p)>>2]=r;if((a[(sa&n)>>0]|0)==9){t=g;while(1){s=c[(t&p)+52>>2]|0;if(!s)break;else t=s}Ns(f,0,c[(t&p)>>2]|0)}q=xs(R)|0;w=xs(R)|0;Os(f,g,q);wh(R,108,A,q,0)|0;t=f+19|0;s=a[(t&n)>>0]|0;if(!(s<<24>>24)){ea=f+72|0;t=(c[(ea&p)>>2]|0)+1|0;c[(ea&p)>>2]=t}else{ea=s+-1<<24>>24;a[(t&n)>>0]=ea;t=c[(f+((ea&255)<<2)&p)+24>>2]|0}l=wh(R,101,A,t,0)|0;xh(R,wh(R,68,y,w,t)|0,0,-14);_r(f,t);Ps(f,g,c[(g&p)>>2]|0,A,0,0,sa,w,q);t=R+24|0;s=c[(t&p)>>2]|0;u=~w;do if((w|0)<0){v=c[(s&p)+112>>2]|0;if(!v)break;c[(v+(u<<2)&p)>>2]=c[(R&p)+32>>2]}while(0);v=R+32|0;c[(s&p)+88>>2]=(c[(v&p)>>2]|0)+-1;wh(R,9,A,l,0)|0;s=c[(t&p)>>2]|0;r=~q;do if((q|0)<0){t=c[(s&p)+112>>2]|0;if(!t)break;c[(t+(r<<2)&p)>>2]=c[(v&p)>>2]}while(0);c[(s&p)+88>>2]=(c[(v&p)>>2]|0)+-1;wh(R,61,y,0,0)|0;wh(R,61,A,0,0)|0;w=P;v=x;t=z;break}}else{Ks(f,g,sa);w=g+4|0;v=0;t=0;m=0;k=0}while(0);ea=a[(w&n)>>0]|0;Qs(f,ea&255,v,t,ea<<24>>24!=116&1);if(!(b[(ta&o)>>1]&8)){za=227;break}u=c[(c[(g&p)>>2]&p)>>2]|0;v=Rs(O,u,1)|0;if(!v){k=7;za=227;break}if((u|0)>0){l=O+8|0;q=v+20|0;r=0;while(1){ea=Ss(f,g,r)|0;c[(q&p)>>2]=ea;if(!ea)c[(q&p)>>2]=c[(l&p)>>2];r=r+1|0;if((r|0)==(u|0))break;else q=q+4|0}}s=R+32|0;t=R+4|0;do{l=0;do{r=g+(l<<2)+16|0;q=c[(r&p)>>2]|0;if((q|0)<0)break;if((c[(s&p)>>2]|0)>>>0>q>>>0)c[((c[(t&p)>>2]|0)+(q*20|0)&p)+8>>2]=u;c[(v&p)>>2]=(c[(v&p)>>2]|0)+1;xh(R,q,v,-6);c[(r&p)>>2]=-1;l=l+1|0}while((l|0)<2);g=c[(g&p)+52>>2]|0}while((g|0)!=0);ea=(c[(v&p)>>2]|0)+-1|0;c[(v&p)>>2]=ea;if(ea){za=227;break}Wc(v);za=227}else{k=d[(g&n)+4>>0]|0;if((k|0)==118)k=35336;else if((k|0)==117)k=35352;else if((k|0)==116)k=35320;else k=35360;c[(ra&p)>>2]=k;th(f,35024,ra);m=0;k=1;za=227}while(0);if((za|0)==227){c[(h&p)+8>>2]=c[(sa&p)+8>>2];c[(h&p)+12>>2]=c[(sa&p)+12>>2];Mk(O,m,1)}c[(Aa&p)>>2]=Ba;break a}if((m&5)==1){k=c[(va&p)>>2]|0;if(!(Ts(k,T,-1)|0)){b[(ta&o)>>1]=m&65534;w=Pr(xa,T,0)|0;c[(l&p)>>2]=w;za=232}}else za=232;if((za|0)==232)k=c[(va&p)>>2]|0;if(!k)k=-1;else{ea=Us(f,k,0,c[(T&p)>>2]|0)|0;da=f+68|0;k=c[(da&p)>>2]|0;c[(da&p)>>2]=k+1;c[(va&p)+8>>2]=k;k=wh(wa,57,k,(c[(c[(va&p)>>2]&p)>>2]|0)+1+(c[(T&p)>>2]|0)|0,0)|0;xh(wa,k,ea,-6)}R=va+20|0;c[(R&p)>>2]=k;if((a[(h&n)>>0]|0)==12)wh(wa,57,c[(h&p)+4>>2]|0,c[(T&p)>>2]|0,0)|0;qa=xs(wa)|0;y=g+24|0;ea=y;c[(ea&p)>>2]=-1;c[(ea&p)+4>>2]=2147483647;Os(f,g,qa);if((c[(g&p)+8>>2]|0)==0?(ha=c[(R&p)>>2]|0,(ha|0)>-1):0){if(!(a[((c[(wa&p)>>2]|0)&n)+65>>0]|0))k=(c[(wa&p)+4>>2]|0)+(ha*20|0)|0;else k=29120;a[(k&n)>>0]=58;ea=va+24|0;a[(ea&n)>>0]=d[(ea&n)>>0]|1}if(!(b[(ta&o)>>1]&1))a[(ua&n)+1>>0]=0;else{ea=f+68|0;k=c[(ea&p)>>2]|0;c[(ea&p)>>2]=k+1;c[(ua&p)+4>>2]=k;ea=Us(f,c[(g&p)>>2]|0,0,0)|0;k=wh(wa,57,k,0,0)|0;xh(wa,k,ea,-6);c[(ua&p)+8>>2]=k;k=c[(wa&p)+4>>2]|0;if(k)a[(k+(((c[(wa&p)+32>>2]|0)+-1|0)*20|0)&n)+3>>0]=8;a[(ua&n)+1>>0]=3}if((z|0)==0&(w|0)==0){v=Vs(f,U,B,c[(va&p)>>2]|0,c[(g&p)>>2]|0,(a[(ua&n)>>0]|0)!=0?1024:0,0)|0;if(!v){za=444;break}t=Ws(b[(v&o)+32>>1]|0)|0;s=G;ea=y;da=c[(ea&p)+4>>2]|0;if(s>>>0>>0|((s|0)==(da|0)?t>>>0<(c[(ea&p)>>2]|0)>>>0:0)){ea=y;c[(ea&p)>>2]=t;c[(ea&p)+4>>2]=s}do if(a[(ua&n)>>0]|0){t=a[(v&n)+40>>0]|0;if(!(t<<24>>24))break;a[(ua&n)+1>>0]=t}while(0);t=c[(va&p)>>2]|0;do if(!t)za=257;else{ea=a[(v&n)+36>>0]|0;c[(va&p)+4>>2]=ea;if((ea|0)!=(c[(t&p)>>2]|0))break;c[(va&p)>>2]=0;za=257}while(0);do if((za|0)==257){r=c[(R&p)>>2]|0;if((r|0)<=-1)break;zh(wa,r)}while(0);Ps(f,g,T,-1,va,ua,h,c[(v&p)+48>>2]|0,c[(v&p)+52>>2]|0);Xs(v)}else{z=(w|0)!=0;do if(z){l=c[(g&p)>>2]|0;k=c[(l&p)>>2]|0;if((k|0)>0){l=c[(l&p)+4>>2]|0;while(1){b[(l&o)+18>>1]=0;k=k+-1|0;if((k|0)<=0)break;else l=l+20|0}}k=c[(w&p)>>2]|0;if((k|0)>0){l=c[(w&p)+4>>2]|0;while(1){b[(l&o)+18>>1]=0;k=k+-1|0;if((k|0)<=0)break;else l=l+20|0}}ea=y;da=c[(ea&p)+4>>2]|0;if(!(da>>>0>0|(da|0)==0&(c[(ea&p)>>2]|0)>>>0>100))break;ea=y;c[(ea&p)>>2]=100;c[(ea&p)+4>>2]=0}else{ea=y;c[(ea&p)>>2]=1;c[(ea&p)+4>>2]=0}while(0);P=(Ts(w,c[(va&p)>>2]|0,-1)|0)==0;S=xs(wa)|0;c[(ma&p)>>2]=0;c[(ma&p)+4>>2]=0;c[(ma&p)+8>>2]=0;c[(ma&p)+12>>2]=0;c[(ma&p)+16>>2]=0;c[(ma&p)+20>>2]=0;c[(ma&p)+24>>2]=0;c[(ma&p)+28>>2]=0;c[(ma&p)>>2]=f;c[(ma&p)+4>>2]=U;c[(ma&p)+12>>2]=ya;K=f+72|0;c[(ya&p)+16>>2]=(c[(K&p)>>2]|0)+1;if(z)k=c[(w&p)>>2]|0;else k=0;y=ya+12|0;c[(y&p)>>2]=k;c[(ya&p)+24>>2]=w;Ys(ma,T);Ys(ma,c[(va&p)>>2]|0);if(ga){c[(ra&p)>>2]=0;c[(ra&p)+4>>2]=0;c[(ra&p)+8>>2]=0;c[(ra&p)+12>>2]=0;c[(ra&p)+16>>2]=0;c[(ra&p)+20>>2]=0;c[(ra&p)>>2]=80;c[(ra&p)+4>>2]=81;c[(ra&p)+24>>2]=ma;rs(ra,ga)|0}A=ya+32|0;c[(ya&p)+36>>2]=c[(A&p)>>2];r=ya+44|0;k=c[(r&p)>>2]|0;if((k|0)>0){x=ma+28|0;l=ya+40|0;m=b[(x&o)>>1]|0;q=0;do{b[(x&o)>>1]=m&65535|8;Ys(ma,c[((c[((c[(l&p)>>2]|0)+(q<<4)&p)>>2]|0)&p)+20>>2]|0);m=e[(x&o)>>1]&65527;b[(x&o)>>1]=m;q=q+1|0;k=c[(r&p)>>2]|0}while((q|0)<(k|0))}c[(ya&p)+20>>2]=c[(K&p)>>2];if(a[(pa&n)>>0]|0){za=444;break}if(z){I=f+68|0;H=c[(I&p)>>2]|0;c[(I&p)>>2]=H+1;v=ya+4|0;c[(v&p)>>2]=H;H=Us(f,w,0,c[(A&p)>>2]|0)|0;u=wh(wa,58,c[(v&p)>>2]|0,c[(y&p)>>2]|0,0)|0;xh(wa,u,H,-6);N=c[(K&p)>>2]|0;M=N+1|0;J=N+2|0;N=N+3|0;c[(K&p)>>2]=N;L=xs(wa)|0;Q=(c[(K&p)>>2]|0)+1|0;c[(K&p)>>2]=Q;O=xs(wa)|0;t=c[(K&p)>>2]|0;r=t+1|0;ea=c[(w&p)>>2]|0;da=ea+t|0;s=da+1|0;c[(K&p)>>2]=da+ea;wh(wa,25,0,J,0)|0;wh(wa,25,0,M,0)|0;wh(wa,28,0,r,(c[(w&p)>>2]|0)+t|0)|0;wh(wa,17,Q,O,0)|0;t=Vs(f,U,B,w,0,P?2304:256,0)|0;if(!t){za=444;break}if((a[(t&n)+36>>0]|0)==(c[(w&p)>>2]|0)){x=0;k=0;y=0}else{if(!(a[(ua&n)>>0]|0))k=34824;else k=(b[(ta&o)>>1]&1)==0?34808:34824;$s(f,k);D=c[(w&p)>>2]|0;k=c[(A&p)>>2]|0;if((k|0)>0){l=c[(ya&p)+28>>2]|0;m=0;y=D;x=D;do{if((c[(l+(m*24|0)&p)+12>>2]|0)>=(y|0)){y=y+1|0;x=x+1|0}m=m+1|0}while((m|0)<(k|0));F=x}else F=D;E=f+60|0;x=c[(E&p)>>2]|0;B=f+56|0;k=c[(B&p)>>2]|0;if((k|0)<(F|0)){C=c[(K&p)>>2]|0;c[(K&p)>>2]=C+F;C=C+1|0}else{c[(E&p)>>2]=x+F;c[(B&p)>>2]=k-F;C=x}at(f);bt(f,w,C,0);y=c[(A&p)>>2]|0;if((y|0)>0){m=ya+28|0;z=0;x=D;do{k=c[(m&p)>>2]|0;if((c[(k+(z*24|0)&p)+12>>2]|0)>=(x|0)){l=x+C|0;y=ct(f,c[(k+(z*24|0)&p)>>2]|0,c[(k+(z*24|0)&p)+8>>2]|0,c[(k+(z*24|0)&p)+4>>2]|0,l,0)|0;if((l|0)!=(y|0))wh(wa,34,y,l,0)|0;y=c[(A&p)>>2]|0;x=x+1|0}z=z+1|0}while((z|0)<(y|0))}y=f+19|0;x=a[(y&n)>>0]|0;if(!(x<<24>>24)){x=(c[(K&p)>>2]|0)+1|0;c[(K&p)>>2]=x}else{x=x+-1<<24>>24;a[(y&n)>>0]=x;x=c[(f+((x&255)<<2)&p)+24>>2]|0}wh(wa,49,C,F,x)|0;wh(wa,109,c[(v&p)>>2]|0,x,0)|0;_r(f,x);dt(f,C,F);if((c[(B&p)>>2]|0)<(F|0)){c[(B&p)>>2]=F;c[(E&p)>>2]=C}Xs(t);l=c[(I&p)>>2]|0;c[(I&p)>>2]=l+1;c[(ya&p)+8>>2]=l;k=a[(y&n)>>0]|0;if(!(k<<24>>24)){k=(c[(K&p)>>2]|0)+1|0;c[(K&p)>>2]=k}else{k=k+-1<<24>>24;a[(y&n)>>0]=k;k=c[(f+((k&255)<<2)&p)+24>>2]|0}wh(wa,60,l,k,F)|0;wh(wa,106,c[(v&p)>>2]|0,S,0)|0;a[(ya&n)+1>>0]=1;at(f);x=1;y=l}do if(P){if(b[(xa&o)+60>>1]&4)break;if((x|0)==0?(a[(t&n)+37>>0]|0)==0:0)break;c[(va&p)>>2]=0;zh(wa,c[(R&p)>>2]|0)}while(0);A=wa+32|0;q=c[(A&p)>>2]|0;at(f);x=(x|0)!=0;if(x)wh(wa,100,c[(v&p)>>2]|0,k,y)|0;k=c[(w&p)>>2]|0;if((k|0)>0){l=w+4|0;m=0;do{if(x)wh(wa,47,y,m,m+s|0)|0;else{a[(ya&n)>>0]=1;Rq(f,c[((c[(l&p)>>2]|0)+(m*20|0)&p)>>2]|0,m+s|0)}m=m+1|0;k=c[(w&p)>>2]|0}while((m|0)<(k|0))}if(H)c[(H&p)>>2]=(c[(H&p)>>2]|0)+1;xh(wa,wh(wa,42,r,s,k)|0,H,-6);k=c[(A&p)>>2]|0;ea=k+1|0;wh(wa,43,ea,0,ea)|0;w=c[(w&p)>>2]|0;wh(c[(f&p)+8>>2]|0,32,s,r,w)|0;dt(f,s,w);wh(wa,17,N,L,0)|0;wh(wa,137,J,S,0)|0;wh(wa,17,Q,O,0)|0;w=c[(A&p)>>2]|0;if(w>>>0>k>>>0)c[((c[(wa&p)+4>>2]|0)+(k*20|0)&p)+8>>2]=w;r=wa+24|0;c[((c[(r&p)>>2]|0)&p)+88>>2]=w+-1;et(f,ya);wh(wa,25,1,M,0)|0;if(x)wh(wa,5,c[(v&p)>>2]|0,q,0)|0;else{Xs(t);zh(wa,u)}wh(wa,17,N,L,0)|0;wh(wa,16,0,S,0)|0;m=c[(A&p)>>2]|0;wh(wa,25,1,J,0)|0;wh(wa,18,N,0,0)|0;k=c[(r&p)>>2]|0;l=~L;do if((L|0)<0){w=c[(k&p)+112>>2]|0;if(!w)break;c[(w+(l<<2)&p)>>2]=c[(A&p)>>2]}while(0);v=c[(A&p)>>2]|0;c[(k&p)+88>>2]=v+-1;wh(wa,137,M,v+2|0,0)|0;wh(wa,18,N,0,0)|0;ft(f,ya);v=v+1|0;gt(f,ga,v,16);Ps(f,g,c[(g&p)>>2]|0,-1,va,ua,h,v,m);wh(wa,18,N,0,0)|0;v=c[(r&p)>>2]|0;u=~O;do if((O|0)<0){t=c[(v&p)+112>>2]|0;if(!t)break;c[(t+(u<<2)&p)>>2]=c[(A&p)>>2]}while(0);c[(v&p)+88>>2]=(c[(A&p)>>2]|0)+-1;ht(f,ya);wh(wa,18,Q,0,0)|0}else{do if(!(c[(H&p)>>2]|0)){u=c[(g&p)>>2]|0;if((c[(u&p)>>2]|0)!=1){za=372;break}v=c[(na&p)>>2]|0;if((c[(v&p)>>2]|0)!=1){za=372;break}if(c[(v&p)+28>>2]|0){za=372;break}A=c[(v&p)+24>>2]|0;v=c[(c[(u&p)+4>>2]&p)>>2]|0;z=A+44|0;if(a[(z&n)>>0]&16){za=372;break}if((a[(v&n)>>0]|0)!=-101|(k|0)==0){za=372;break}y=ya+40|0;if(!(b[((c[((c[(y&p)>>2]|0)&p)+4>>2]|0)&o)+2>>1]&256)){za=372;break}if((A|0)==0?1:(c[(v&p)+4>>2]&16|0)!=0){za=372;break}v=c[(f&p)>>2]|0;k=c[(A&p)+68>>2]|0;i:do if(!k)u=-1e6;else{l=c[(v&p)+20>>2]|0;if((l|0)<=0){u=0;break}v=c[(v&p)+16>>2]|0;w=0;while(1){u=w+1|0;if((c[(v+(w<<4)&p)+12>>2]|0)==(k|0)){u=w;break i}if((u|0)<(l|0))w=u;else break}}while(0);w=f+68|0;q=c[(w&p)>>2]|0;c[(w&p)>>2]=q+1;w=A+32|0;k=c[(w&p)>>2]|0;Ar(f,u);gs(f,u,c[(w&p)>>2]|0,0,c[(A&p)>>2]|0);w=c[(A&p)+8>>2]|0;j:do if(!(a[(z&n)>>0]&32)){v=0;za=351}else{if(!w){l=1;m=0;w=0;break}else v=w;while(1){if((a[(v&n)+51>>0]&3)==2){za=351;break j}v=c[(v&p)+20>>2]|0;if(!v){v=0;za=351;break}}}while(0);do if((za|0)==351){if(w){m=A+42|0;l=w;do{do if(!(a[(l&n)+51>>0]&4)){w=b[(l&o)+44>>1]|0;if(w<<16>>16>=(b[(m&o)>>1]|0))break;if(c[(l&p)+36>>2]|0)break;if((v|0)!=0?w<<16>>16>=(b[(v&o)+44>>1]|0):0)break;v=l}while(0);l=c[(l&p)+20>>2]|0}while((l|0)!=0)}if(!v){l=1;m=0;w=0;break}k=c[(v&p)+40>>2]|0;l=0;m=v;w=hs(f,v)|0}while(0);xh(wa,wh(wa,54,q,k,u)|0,1,-14);if(w)xh(wa,-1,w,-6);wh(wa,50,q,c[((c[(y&p)>>2]|0)&p)+8>>2]|0,0)|0;wh(wa,61,q,0,0)|0;if((a[(f&n)+450>>0]|0)!=2){t=0;break}do if(l){v=c[(A&p)>>2]|0;u=10360;s=10360;t=c[(f&p)>>2]|0}else{if(a[(z&n)>>0]&32){ea=(a[(m&n)+51>>0]&3)!=2;t=c[(f&p)>>2]|0;v=c[(A&p)>>2]|0;u=ea?34920:10360;if(!ea){s=10360;break}}else{u=34920;v=c[(A&p)>>2]|0;t=c[(f&p)>>2]|0}s=c[(m&p)>>2]|0}while(0);c[(ra&p)>>2]=v;c[(ra&p)+4>>2]=u;c[(ra&p)+8>>2]=s;t=uh(t,34896,ra)|0;ea=c[(f&p)+8>>2]|0;xh(ea,wh(ea,157,c[(Aa&p)>>2]|0,0,0)|0,t,-1);t=0}else za=372;while(0);if((za|0)==372){do if((c[(I&p)>>2]|0)==0&(k|0)==1){t=c[(c[(ya&p)+40>>2]&p)>>2]|0;v=c[(t&p)+20>>2]|0;if(!v){t=0;s=0;break}if((c[(v&p)>>2]|0)!=1){t=0;s=0;break}if((a[(c[(c[(v&p)+4>>2]&p)>>2]&n)>>0]|0)!=-100){t=0;s=0;break}t=c[(t&p)+8>>2]|0;if(dd(t,18760)|0)if(!(dd(t,18768)|0))s=2;else{t=0;s=0;break}else s=1;t=Pr(xa,v,0)|0;if(!t){t=0;break}if(a[(pa&n)>>0]|0)break;ea=c[(t&p)+4>>2]|0;a[(ea&n)+12>>0]=s<<24>>24!=1&1;a[(c[(ea&p)>>2]&n)>>0]=-102}else{t=0;s=0}while(0);ht(f,ya);s=Vs(f,U,B,t,0,s&255,0)|0;if(!s){Nk(xa,t);za=444;break}et(f,ya);if((a[(s&n)+36>>0]|0)>0)wh(wa,16,0,c[(s&p)+52>>2]|0,0)|0;Xs(s);ft(f,ya)}c[(va&p)>>2]=0;gt(f,ga,S,16);Ps(f,g,c[(g&p)>>2]|0,-1,0,0,h,S,S);Nk(xa,t);r=wa+24|0}t=c[(r&p)>>2]|0;s=~S;do if((S|0)<0){r=c[(t&p)+112>>2]|0;if(!r)break;c[(r+(s<<2)&p)>>2]=c[(wa&p)+32>>2]}while(0);c[(t&p)+88>>2]=(c[(wa&p)+32>>2]|0)+-1}if((a[(ua&n)+1>>0]|0)==3)$s(f,34808);if(c[(va&p)>>2]|0){x=va+4|0;$s(f,(c[(x&p)>>2]|0)>0?34840:34864);A=c[(T&p)>>2]|0;v=f+8|0;H=c[(v&p)>>2]|0;I=xs(H)|0;F=xs(H)|0;q=c[(va&p)>>2]|0;m=a[(h&n)>>0]|0;B=m&255;C=h+4|0;D=c[(C&p)>>2]|0;y=va+16|0;w=c[(y&p)>>2]|0;if(w){wh(H,17,c[(va&p)+12>>2]|0,w,0)|0;wh(H,16,0,I,0)|0;ea=c[(y&p)>>2]|0;w=c[(H&p)+24>>2]|0;k=~ea;do if((ea|0)<0){l=c[(w&p)+112>>2]|0;if(!l)break;c[(l+(k<<2)&p)>>2]=c[(H&p)+32>>2]}while(0);c[(w&p)+88>>2]=(c[(H&p)+32>>2]|0)+-1}E=c[(va&p)+8>>2]|0;t=m<<24>>24==9;k:do if((m&-5)<<24>>24==9){s=A;u=c[(h&p)+8>>2]|0;k=0}else{w=f+19|0;k=a[(w&n)>>0]|0;do if(k<<24>>24){ea=k+-1<<24>>24;a[(w&n)>>0]=ea;l=c[(f+((ea&255)<<2)&p)+24>>2]|0;if(!(ea<<24>>24)){k=l;w=c[(f&p)+72>>2]|0;break}else{u=k+-2<<24>>24;a[(w&n)>>0]=u;s=1;u=c[(f+((u&255)<<2)&p)+24>>2]|0;k=l;break k}}else{k=f+72|0;w=(c[(k&p)>>2]|0)+1|0;c[(k&p)>>2]=w;k=w}while(0);u=w+1|0;c[(f&p)+72>>2]=u;s=1}while(0);r=(c[(q&p)>>2]|0)-(c[(x&p)>>2]|0)|0;z=va+24|0;if(!(a[(z&n)>>0]&1)){w=wh(H,107,E,I,0)|0;it(H,c[(g&p)+12>>2]|0,F);l=1;m=E}else{ea=f+72|0;m=(c[(ea&p)>>2]|0)+1|0;c[(ea&p)>>2]=m;ea=f+68|0;q=c[(ea&p)>>2]|0;c[(ea&p)>>2]=q+1;if(!(c[(y&p)>>2]|0))l=0;else{ea=Oq(f)|0;da=f+80|0;l=c[(da&p)>>2]|0;c[(da&p)>>2]=l+1;l=wh(ea,44,l,0,0)|0}wh(H,60,q,m,s+1+r|0)|0;if(l){w=c[(H&p)+32>>2]|0;if(w>>>0>l>>>0)c[((c[(H&p)+4>>2]|0)+(l*20|0)&p)+8>>2]=w;c[((c[(H&p)+24>>2]|0)&p)+88>>2]=w+-1}w=wh(H,106,E,I,0)|0;it(H,c[(g&p)+12>>2]|0,F);wh(H,100,E,m,q)|0;l=0;m=q}x=w+1|0;if((s|0)>0){w=l+r|0;l=0;do{wh(H,47,m,w+l|0,l+u|0)|0;l=l+1|0}while((l|0)!=(s|0))}do if((B|0)==12|(B|0)==14){wh(H,74,D,k,0)|0;wh(H,75,D,u,k)|0;t=c[(H&p)+4>>2]|0;if(!t)break;a[(t+(((c[(H&p)+32>>2]|0)+-1|0)*20|0)&n)+3>>0]=8}else if((B|0)==11){xh(H,wh(H,49,u,1,k)|0,h+1|0,1);dt(f,u,1);wh(H,110,D,k,0)|0}else if((B|0)!=10)if(t){ea=h+8|0;wh(H,35,c[(ea&p)>>2]|0,A,0)|0;dt(f,c[(ea&p)>>2]|0,A);break}else{wh(H,22,c[(C&p)>>2]|0,0,0)|0;break}else{wh(c[(v&p)>>2]|0,32,u,D,1)|0;dt(f,u,1)}while(0);if(k){_r(f,u);_r(f,k)}s=H+24|0;u=c[(s&p)>>2]|0;v=~F;do if((F|0)<0){t=c[(u&p)+112>>2]|0;if(!t)break;c[(t+(v<<2)&p)>>2]=c[(H&p)+32>>2]}while(0);v=H+32|0;c[(u&p)+88>>2]=(c[(v&p)>>2]|0)+-1;if(!(a[(z&n)>>0]&1))wh(H,9,E,x,0)|0;else wh(H,5,E,x,0)|0;r=c[(va&p)+12>>2]|0;if(r)wh(H,18,r,0,0)|0;r=c[(s&p)>>2]|0;q=~I;do if((I|0)<0){m=c[(r&p)+112>>2]|0;if(!m)break;c[(m+(q<<2)&p)>>2]=c[(v&p)>>2]}while(0);c[(r&p)+88>>2]=(c[(v&p)>>2]|0)+-1}l=c[(wa&p)+24>>2]|0;m=~qa;do if((qa|0)<0){k=c[(l&p)+112>>2]|0;if(!k)break;c[(k+(m<<2)&p)>>2]=c[(wa&p)+32>>2]}while(0);c[(l&p)+88>>2]=(c[(wa&p)+32>>2]|0)+-1;c[(Aa&p)>>2]=Ba;if((a[(h&n)>>0]|0)!=9){k=0;break}Ns(f,U,T);k=0}else za=444;while(0);if((za|0)==444){c[(Aa&p)>>2]=Ba;k=1}mg(xa,c[(ya&p)+28>>2]|0);mg(xa,c[(ya&p)+40>>2]|0)}else k=1;while(0);i=Ca;return k|0}function jr(a,b,d,e,f,g,h,k){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;var l=0,m=0,n=0,o=0,q=0,r=0;r=i;i=i+16|0;if((i|0)>=(j|0))fa();m=r;o=c[(a&p)>>2]|0;if((b|0)==0?(l=(h|0)!=0,l|(k|0)!=0):0){c[(m&p)>>2]=l?34792:34800;th(a,34752,m);q=9}else{b=pr(o,b,d,e)|0;if((b|0)!=0?(n=c[(b&p)>>2]|0,(n|0)!=0):0){l=n+-1|0;if(c[(f&p)+4>>2]|0)c[(b+(l*72|0)&p)+20>>2]=Wq(o,f)|0;c[(b+(l*72|0)&p)+28>>2]=g;c[(b+(l*72|0)&p)+52>>2]=h;c[(b+(l*72|0)&p)+56>>2]=k}else q=9}if((q|0)==9){Gk(o,h);Hk(o,k);Mk(o,g,1);b=0}i=r;return b|0}function kr(d,e,f,g,h,k,l,m,q,r){d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;m=m|0;q=q|0;r=r|0;var s=0,t=0,u=0,v=0,w=0,x=0,y=0;y=i;i=i+80|0;if((i|0)>=(j|0))fa();t=y+72|0;x=y;w=c[(d&p)>>2]|0;s=mh(w,72,0)|0;if(!s){u=x+0|0;v=u+72|0;do{c[(u&p)>>2]=0;u=u+4|0}while((u|0)<(v|0));s=x}else{u=s+0|0;v=u+72|0;do{a[(u&n)>>0]=0;u=u+1|0}while((u|0)<(v|0))}if(!e){c[(t&p)>>2]=0;c[(t&p)+4>>2]=0;e=lr(d,0,nr(w,116,t,0)|0)|0}c[(s&p)>>2]=e;if(!f){f=mh(w,80,0)|0;if(f){u=f+0|0;v=u+80|0;do{a[(u&n)>>0]=0;u=u+1|0}while((u|0)<(v|0))}}c[(s&p)+32>>2]=f;c[(s&p)+36>>2]=g;c[(s&p)+40>>2]=h;c[(s&p)+44>>2]=k;c[(s&p)+48>>2]=l;b[(s&o)+6>>1]=m;a[(s&n)+4>>0]=119;c[(s&p)+60>>2]=q;c[(s&p)+64>>2]=r;c[(s&p)+16>>2]=-1;c[(s&p)+20>>2]=-1;if(a[(w&n)+65>>0]|0){Mk(w,s,(s|0)!=(x|0)&1);s=0}i=y;return s|0}function lr(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0;g=c[(b&p)>>2]|0;if(!d){d=mh(g,8,0)|0;if(d){b=d;f=b;a[(f&n)>>0]=0;a[(f&n)+1>>0]=0;a[(f&n)+2>>0]=0;a[(f&n)+3>>0]=0;b=b+4|0;a[(b&n)>>0]=0;a[(b&n)+1>>0]=0;a[(b&n)+2>>0]=0;a[(b&n)+3>>0]=0;b=mh(g,20,0)|0;c[(d&p)+4>>2]=b;if(!b)f=8;else f=7}else{d=0;f=8}}else{b=c[(d&p)>>2]|0;if(!(b+-1&b)){f=d+4|0;b=ro(g,c[(f&p)>>2]|0,b*40|0,0)|0;if(!b)f=8;else{c[(f&p)>>2]=b;f=7}}else f=7}if((f|0)==7){b=c[(d&p)>>2]|0;c[(d&p)>>2]=b+1;b=(c[(d&p)+4>>2]|0)+(b*20|0)|0;c[(b&p)>>2]=0;c[(b&p)+4>>2]=0;c[(b&p)+8>>2]=0;c[(b&p)+12>>2]=0;c[(b&p)+16>>2]=0;c[(b&p)>>2]=e}else if((f|0)==8){Gk(g,e);Nk(g,d);d=0}return d|0}function mr(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0;do if(d){j=(c[(d&p)>>2]|0)+-1|0;g=c[(d&p)+4>>2]|0;h=c[(e&p)>>2]|0;d=c[(e&p)+4>>2]|0;if((h|0)!=0?(e=c[(b&p)>>2]|0,i=jw(d|0,0,1,0)|0,i=mh(e,i,G)|0,(i|0)!=0):0){kw(i|0,h|0,d|0)|0;a[(i+d&n)>>0]=0;c[(g+(j*20|0)&p)+4>>2]=i;if(!f)break;lo(i);break}c[(g+(j*20|0)&p)+4>>2]=0}while(0);return}function nr(d,e,f,g){d=d|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,q=0,r=0,s=0,t=0;t=i;i=i+16|0;if((i|0)>=(j|0))fa();m=t;c[(m&p)>>2]=0;k=(f|0)!=0;do if(k){if(((e|0)==132?(h=c[(f&p)>>2]|0,(h|0)!=0):0)?(Dn(h,m)|0)!=0:0){r=0;break}r=(c[(f&p)+4>>2]|0)+1|0}else r=0;while(0);l=r+48|0;q=mh(d,l,0)|0;if(q){fw(q|0,0,l|0)|0;a[(q&n)>>0]=e;b[(q&o)+34>>1]=-1;do if(k){if(!r){g=q+4|0;c[(g&p)>>2]=c[(g&p)>>2]|1024;c[(q&p)+8>>2]=c[(m&p)>>2];break}h=q+48|0;l=q+8|0;c[(l&p)>>2]=h;k=f+4|0;d=c[(k&p)>>2]|0;if(!d)h=48;else{kw(h|0,c[(f&p)>>2]|0,d|0)|0;h=(c[(k&p)>>2]|0)+48|0}a[(q+h&n)>>0]=0;if(((g|0)!=0&(r|0)>2?(g=a[(c[(f&p)>>2]&n)>>0]|0,s=g<<24>>24==34,g<<24>>24==34|g<<24>>24==39|g<<24>>24==91|g<<24>>24==96):0)?(lo(c[(l&p)>>2]|0),s):0){g=q+4|0;c[(g&p)>>2]=c[(g&p)>>2]|64}}while(0);c[(q&p)+24>>2]=1}i=t;return q|0}function or(b,d,e){b=b|0;d=d|0;e=e|0;var f=0;do if((d|0)!=0?(f=c[(d&p)>>2]|0,(f|0)>0):0){f=f+-1|0;if((c[(e&p)+4>>2]|0)==1?(c[(e&p)>>2]|0)==0:0){f=d+(f*72|0)+45|0;a[(f&n)>>0]=a[(f&n)>>0]|1;break}c[(d+(f*72|0)&p)+72>>2]=Wq(c[(b&p)>>2]|0,e)|0}while(0);return}function pr(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0;if(!d){d=mh(b,80,0)|0;if(!d)d=0;else{h=d+0|0;g=h+80|0;do{a[(h&n)>>0]=0;h=h+1|0}while((h|0)<(g|0));c[(d&p)+4>>2]=1;h=4}}else h=4;do if((h|0)==4){d=Fs(b,d,1,c[(d&p)>>2]|0)|0;if(a[(b&n)+65>>0]|0){Do(b,d);d=0;break}h=(c[(d&p)>>2]|0)+-1|0;if(!f)g=0;else g=(c[(f&p)>>2]|0)==0?0:f;f=(g|0)==0;c[(d+(h*72|0)&p)+16>>2]=Wq(b,f?e:g)|0;c[(d+(h*72|0)&p)+12>>2]=Wq(b,f?0:e)|0}while(0);return d|0}function qr(a,b,e,f){a=a|0;b=b|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,o=0,q=0,r=0,s=0;s=i;i=i+32|0;if((i|0)>=(j|0))fa();q=s;m=s+16|0;c[(m&p)>>2]=b;c[(m&p)+4>>2]=e;c[(m&p)+8>>2]=f;l=b;o=1;g=0;a:while(1){if(!l)break;k=c[(l&p)+4>>2]|0;h=0;while(1){if((k|0)==(d[((h*3|0)&n)+34625>>0]|0|0)?(Fc(c[(l&p)>>2]|0,34584+(d[((h*3|0)&n)+34624>>0]|0)|0,k)|0)==0:0)break;h=h+1|0;if((h|0)>=7){r=10;break a}}g=d[((h*3|0)&n)+34626>>0]|0|g;if((h|0)>6){r=10;break}if((o|0)>=3)break;l=c[(m+(o<<2)&p)>>2]|0;o=o+1|0}if((r|0)==10)g=g|64;if((g&33|0)!=33&(g&64|0)==0){if(!((g&32|0)==0|(g&24|0)==8)){th(a,34696,q);g=1}}else{c[(q&p)>>2]=b;c[(q&p)+4>>2]=e;c[(q&p)+8>>2]=(f|0)==0?20377|0:20376;c[(q&p)+12>>2]=f;th(a,34648,q);g=1}i=s;return g|0}function rr(e,f,g){e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=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;T=i;i=i+48|0;if((i|0)>=(j|0))fa();Q=T+36|0;R=T+32|0;r=T;c[(Q&p)>>2]=0;c[(R&p)>>2]=0;S=c[(e&p)>>2]|0;if(((((c[(e&p)+64>>2]|0)==0?(a[(S&n)+65>>0]|0)==0:0)?(H=Jr(e,f)|0,(H|0)!=0):0)?(G=jt(e,H,109,0,0)|0,P=(c[(H&p)+12>>2]|0)!=0,(hr(e,H)|0)==0):0)?(t=(G|0)!=0,(kt(e,H,t&1)|0)==0):0){l=c[(H&p)+68>>2]|0;a:do if(l){k=c[(S&p)+20>>2]|0;if((k|0)>0){h=c[(S&p)+16>>2]|0;q=0;while(1){m=q+1|0;if((c[(h+(q<<4)&p)+12>>2]|0)==(l|0)){m=q;break a}if((m|0)<(k|0))q=m;else break}}else m=0}else m=-1e6;while(0);h=Sq(e,9,c[(H&p)>>2]|0,0,c[((c[(S&p)+16>>2]|0)+(m<<4)&p)>>2]|0)|0;if((h|0)!=1){s=e+68|0;C=c[(s&p)>>2]|0;u=C+1|0;c[(s&p)>>2]=u;c[(f&p)+48>>2]=C;I=H+8|0;l=c[(I&p)>>2]|0;if(!l)q=0;else{k=u;q=0;do{k=k+1|0;c[(s&p)>>2]=k;q=q+1|0;l=c[(l&p)+20>>2]|0}while((l|0)!=0)}if(P){N=e+492|0;O=c[(N&p)>>2]|0;c[(N&p)>>2]=c[(H&p)>>2];N=e}else{N=0;O=0}L=Oq(e)|0;b:do if(L){M=e+18|0;if(!(a[(M&n)>>0]|0)){E=L+88|0;b[(E&o)>>1]=b[(E&o)>>1]|4}D=e+408|0;E=c[(D&p)>>2]|0;E=(E|0)==0?e:E;Ar(e,m);B=E+328|0;c[(B&p)>>2]=c[(B&p)>>2]|1<>0]=d[(E&n)>>0]|1;if(P){lt(e,H,g,C);c[(R&p)>>2]=C;c[(Q&p)>>2]=C};c[(r&p)>>2]=0;c[(r&p)+4>>2]=0;c[(r&p)+8>>2]=0;c[(r&p)+12>>2]=0;c[(r&p)+16>>2]=0;c[(r&p)+20>>2]=0;c[(r&p)+24>>2]=0;c[(r&p)+28>>2]=0;c[(r&p)>>2]=e;c[(r&p)+4>>2]=f;if(!(ls(r,g)|0)){J=S+24|0;if(!(c[(J&p)>>2]&128))K=-1;else{E=e+72|0;K=(c[(E&p)>>2]|0)+1|0;c[(E&p)>>2]=K;wh(L,25,0,K,0)|0}E=H+44|0;do if((!((g|0)!=0|(h|0)!=0|t)?(a[(E&n)>>0]&16)==0:0)?(mt(e,H,0,0)|0)==0:0){l=H+32|0;gs(e,m,c[(l&p)>>2]|0,1,c[(H&p)>>2]|0);if(!(a[(E&n)>>0]&32)){H=c[(H&p)>>2]|0;xh(L,wh(L,118,c[(l&p)>>2]|0,m,K)|0,H,-2)}h=c[(I&p)>>2]|0;if(!h){h=0;break}do{wh(L,118,c[(h&p)+40>>2]|0,m,0)|0;h=c[(h&p)+20>>2]|0}while((h|0)!=0);h=0}else F=31;while(0);do if((F|0)==31){if(!(a[(E&n)>>0]&32)){v=e+72|0;z=(c[(v&p)>>2]|0)+1|0;c[(v&p)>>2]=z;wh(L,28,0,z,0)|0;v=0;A=0;h=0;x=1;m=0}else{m=c[(I&p)>>2]|0;c:do if(!m)m=0;else while(1){if((a[(m&n)+51>>0]&3)==2)break c;m=c[(m&p)+20>>2]|0;if(!m){m=0;break}}while(0);x=b[(m&o)+46>>1]|0;A=e+72|0;h=c[(A&p)>>2]|0;v=x<<16>>16;c[(A&p)>>2]=h+v;A=c[(s&p)>>2]|0;c[(s&p)>>2]=A+1;v=wh(L,57,A,v,0)|0;z=c[(e&p)+8>>2]|0;xh(z,-1,hs(e,m)|0,-6);h=h+1|0;z=0}w=Vs(e,f,g,0,0,12,u)|0;if(!w){h=0;break b}u=w+60|0;t=c[(u&p)>>2]|0;u=c[(u&p)+4>>2]|0;y=a[(w&n)+38>>0]|0;if(c[(J&p)>>2]&128)wh(L,37,K,1,0)|0;B=(m|0)!=0;do if(B){if(x<<16>>16<=0){k=h;break}r=m+4|0;l=x<<16>>16;s=0;do{nt(L,H,C,b[((c[(r&p)>>2]|0)+(s<<1)&o)>>1]|0,s+h|0);s=s+1|0}while((s|0)!=(l|0));k=h}else{l=e+72|0;k=ct(e,H,-1,C,(c[(l&p)>>2]|0)+1|0,0)|0;if((k|0)<=(c[(l&p)>>2]|0))break;c[(l&p)>>2]=k}while(0);r=y<<24>>24!=0;do if(!r)if(B){l=e+72|0;k=(c[(l&p)>>2]|0)+1|0;c[(l&p)>>2]=k;l=x<<16>>16;s=ot(L,m)|0;xh(L,wh(L,49,h,l,k)|0,s,l);wh(L,110,A,k,0)|0;h=0;l=0;s=0;F=59;break}else{wh(L,128,z,k,0)|0;Xs(w);h=0;u=0;m=1;break}else{h=q+2|0;h=mh(S,h,((h|0)<0)<<31>>31)|0;if(!h){Xs(w);h=0;break b}F=q+1|0;fw(h|0,1,F|0)|0;a[(h+F&n)>>0]=0;if((t|0)>-1)a[(h+(t-C)&n)>>0]=0;if((u|0)>-1)a[(h+(u-C)&n)>>0]=0;if(v)zh(L,v);l=wh(L,16,0,0,0)|0;s=x;F=59}while(0);do if((F|0)==59){Xs(w);if(!r){u=0;m=s;break}m=xs(L)|0;wh(L,16,0,m,0)|0;q=c[(L&p)+32>>2]|0;if(q>>>0>l>>>0)c[((c[(L&p)+4>>2]|0)+(l*20|0)&p)+8>>2]=q;c[((c[(L&p)+24>>2]|0)&p)+88>>2]=q+-1;u=m;m=s}while(0);if(!P)pt(e,H,55,C,h,Q,R)|0;do if(!r)if(B){l=wh(L,108,A,0,0)|0;wh(L,101,A,k,0)|0;break}else{l=wh(L,129,z,0,k)|0;break}else{q=c[(Q&p)>>2]|0;if(!(a[(h+(q-C)&n)>>0]|0)){l=0;break}xh(L,wh(L,68,q,u,k)|0,m<<16>>16,-14);l=0}while(0);if(!(a[(E&n)>>0]&16))rt(e,H,G,c[(Q&p)>>2]|0,c[(R&p)>>2]|0,k,m,(a[(M&n)>>0]|0)==0&1,10,y);else{q=c[(H&p)+60>>2]|0;d:do if(!q)q=0;else while(1){if((c[(q&p)>>2]|0)==(S|0))break d;q=c[(q&p)+24>>2]|0;if(!q){q=0;break}}while(0);qt(e,H);xh(L,wh(L,15,0,1,k)|0,q,-10);q=c[(L&p)+4>>2]|0;if(q)a[(q+(((c[(L&p)+32>>2]|0)+-1|0)*20|0)&n)+3>>0]=2;H=c[(D&p)>>2]|0;a[(((H|0)==0?e:H)&n)+21>>0]=1}do if(!r)if(B){wh(L,9,A,l+1|0,0)|0;q=c[(L&p)+32>>2]|0;if(q>>>0>l>>>0)c[((c[(L&p)+4>>2]|0)+(l*20|0)&p)+8>>2]=q;c[((c[(L&p)+24>>2]|0)&p)+88>>2]=q+-1;break}else{wh(L,16,0,l,0)|0;q=c[(L&p)+32>>2]|0;if(q>>>0>l>>>0)c[((c[(L&p)+4>>2]|0)+(l*20|0)&p)+8>>2]=q;c[((c[(L&p)+24>>2]|0)&p)+88>>2]=q+-1;break}else{m=c[(L&p)+24>>2]|0;l=~u;do if((u|0)<0){q=c[(m&p)+112>>2]|0;if(!q)break;c[(q+(l<<2)&p)>>2]=c[(L&p)+32>>2]}while(0);c[(m&p)+88>>2]=(c[(L&p)+32>>2]|0)+-1}while(0);if(P)break;if(a[(E&n)>>0]&16)break;if(!B)wh(L,61,c[(Q&p)>>2]|0,0,0)|0;k=c[(I&p)>>2]|0;if(!k)break;else l=0;while(1){wh(L,61,(c[(R&p)>>2]|0)+l|0,0,0)|0;k=c[(k&p)+20>>2]|0;if(!k)break;else l=l+1|0}}while(0);if((a[(M&n)>>0]|0)==0?(c[(e&p)+412>>2]|0)==0:0)st(e);if((c[(J&p)>>2]&128|0)!=0?(a[(M&n)>>0]|0)==0:0){if(c[(e&p)+412>>2]|0)break;wh(L,35,K,1,0)|0;iq(L,1);if(a[((c[(L&p)>>2]|0)&n)+65>>0]|0)break;Xg(c[(L&p)+16>>2]|0,34568,-1,1,0)|0}}else h=0}else h=0;while(0);if(N)c[(N&p)+492>>2]=O}else h=0}else h=0;Do(S,f);Gk(S,g);mg(S,h);i=T;return}function sr(e,f,g,h,k){e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;var l=0,m=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,ga=0,ha=0,ia=0,ja=0,ka=0,la=0,ma=0;ma=i;i=i+64|0;if((i|0)>=(j|0))fa();T=ma;Y=ma+32|0;ea=ma+24|0;ha=ma+20|0;la=c[(e&p)>>2]|0;a:do if(((c[(e&p)+64>>2]|0)==0?(a[(la&n)+65>>0]|0)==0:0)?(ka=Jr(e,f)|0,(ka|0)!=0):0){m=c[(e&p)>>2]|0;r=c[(ka&p)+68>>2]|0;b:do if(r){s=c[(m&p)+20>>2]|0;if((s|0)>0){m=c[(m&p)+16>>2]|0;q=0;while(1){l=q+1|0;if((c[(m+(q<<4)&p)+12>>2]|0)==(r|0))break b;if((l|0)<(s|0))q=l;else{q=l;break}}}else q=0}else q=-1e6;while(0);ga=jt(e,ka,110,g,ea)|0;ca=(c[(ka&p)+12>>2]|0)!=0;if((hr(e,ka)|0)==0?(kt(e,ka,c[(ea&p)>>2]|0)|0)==0:0){_=e+68|0;$=c[(_&p)>>2]|0;ia=$+1|0;c[(_&p)>>2]=ia;r=f+48|0;c[(r&p)>>2]=$;K=ka+44|0;u=c[(ka&p)+8>>2]|0;c:do if(!(a[(K&n)>>0]&32)){s=0;ba=16}else{if(!u){w=ka+8|0;s=0;t=$;v=0;break}else s=u;while(1){if((a[(s&n)+51>>0]&3)==2){ba=16;break c}s=c[(s&p)+20>>2]|0;if(!s){s=0;ba=16;break}}}while(0);if((ba|0)==16){w=ka+8|0;if(!u){t=$;v=0}else{l=(s|0)!=0;m=ia;t=$;v=0;do{if((a[(u&n)+51>>0]&3)==2&l){c[(r&p)>>2]=m;t=m}m=m+1|0;c[(_&p)>>2]=m;v=v+1|0;u=c[(u&p)+20>>2]|0}while((u|0)!=0)}}ja=ka+38|0;l=mh(la,v+2+((b[(ja&o)>>1]|0)+v<<2)|0,0)|0;if(l){I=b[(ja&o)>>1]|0;aa=l+(I<<2)|0;da=l+(I+v<<2)|0;Z=v+1|0;fw(da|0,1,Z|0)|0;a[(da+Z&n)>>0]=0;v=b[(ja&o)>>1]|0;if(v<<16>>16>0)fw(l|0,-1,(v<<16>>16>1?v<<16>>16<<2:4)|0)|0;c[(Y&p)>>2]=0;c[(Y&p)+4>>2]=0;c[(Y&p)+8>>2]=0;c[(Y&p)+12>>2]=0;c[(Y&p)+16>>2]=0;c[(Y&p)+20>>2]=0;c[(Y&p)+24>>2]=0;c[(Y&p)+28>>2]=0;c[(Y&p)>>2]=e;c[(Y&p)+4>>2]=f;d:do if((c[(g&p)>>2]|0)>0){E=g+4|0;D=ka+4|0;C=la+16|0;F=(s|0)==0;G=ka+36|0;y=0;x=0;H=0;m=0;while(1){if(ls(Y,c[((c[(E&p)>>2]|0)+(H*20|0)&p)>>2]|0)|0)break a;A=b[(ja&o)>>1]|0;e:do if(A<<16>>16>0){v=c[(D&p)>>2]|0;B=c[(E&p)>>2]|0;r=c[(B+(H*20|0)&p)+4>>2]|0;u=0;while(1){z=u+1|0;if(!(dd(c[(v+(u*24|0)&p)>>2]|0,r)|0))break;if((z|0)<(A<<16>>16|0))u=z;else{u=z;r=m;break e}}if((u|0)!=(b[(G&o)>>1]|0)){if(!F)y=(a[(v+(u*24|0)&n)+23>>0]&1)==0?y:1}else{x=1;m=c[(B+(H*20|0)&p)>>2]|0}c[(l+(u<<2)&p)>>2]=H;r=m}else{u=0;r=m}while(0);if((u|0)<(A<<16>>16|0)){m=c[(ka&p)>>2]|0;if((u|0)<0)v=12944;else v=c[((c[(D&p)>>2]|0)+(u*24|0)&p)>>2]|0}else{r=c[(E&p)>>2]|0;m=c[(r+(H*20|0)&p)+4>>2]|0;if(!F)break;if(!($h(m)|0))break;m=c[(ka&p)>>2]|0;v=12944;x=1;u=-1;r=c[(r+(H*20|0)&p)>>2]|0}m=Sq(e,23,m,v,c[((c[(C&p)>>2]|0)+(q<<4)&p)>>2]|0)|0;if((m|0)==2)c[(l+(u<<2)&p)>>2]=-1;else if((m|0)==1)break a;H=H+1|0;if((H|0)>=(c[(g&p)>>2]|0)){R=r;break d}else m=r}c[(T&p)>>2]=m;th(e,34496,T);a[(e&n)+17>>0]=1;break a}else{y=0;x=0;R=0}while(0);X=(y&255)+(x&255)|0;U=X&255;C=f+64|0;c[(C&p)>>2]=0;c[(C&p)+4>>2]=0;X=X&255;C=mt(e,ka,l,X)|0;m=c[(w&p)>>2]|0;if(m){z=(C|X|0)==0;A=e+72|0;B=0;while(1){f:do if(z?!((c[(m&p)+36>>2]|0)!=0|(m|0)==(s|0)):0){r=b[(m&o)+46>>1]|0;if(!(r<<16>>16))ba=56;else{u=c[(m&p)+4>>2]|0;v=0;while(1){if((c[(l+(b[(u+(v<<1)&o)>>1]<<2)&p)>>2]|0)>-1){ba=54;break f}v=v+1|0;if((v|0)>=(r&65535|0)){ba=56;break}}}}else ba=54;while(0);if((ba|0)==54){ba=0;r=(c[(A&p)>>2]|0)+1|0;c[(A&p)>>2]=r;if(!r)ba=56;else u=B+1|0}if((ba|0)==56){ba=0;u=B+1|0;a[(da+u&n)>>0]=0;r=0}c[(l+(B+I<<2)&p)>>2]=r;m=c[(m&p)+20>>2]|0;if(!m)break;else B=u}}V=Oq(e)|0;if(V){W=e+18|0;if(!(a[(W&n)>>0]|0)){S=V+88|0;b[(S&o)>>1]=b[(S&o)>>1]|4}H=e+408|0;S=c[(H&p)>>2]|0;S=(S|0)==0?e:S;Ar(e,q);Q=S+328|0;c[(Q&p)>>2]=c[(Q&p)>>2]|1<>0]=d[(S&n)>>0]|1;if(a[(K&n)>>0]&16){x=c[(e&p)+8>>2]|0;y=c[(e&p)>>2]|0;m=c[(ka&p)+60>>2]|0;g:do if(!m)m=0;else while(1){if((c[(m&p)>>2]|0)==(y|0))break g;m=c[(m&p)+24>>2]|0;if(!m){m=0;break}}while(0);q=lr(e,0,tt(y,27,34536)|0)|0;w=(R|0)!=0;if(w)q=lr(e,q,Mr(y,R,0,0)|0)|0;if((b[(ja&o)>>1]|0)>0){r=g+4|0;t=ka+4|0;u=0;do{s=c[(l+(u<<2)&p)>>2]|0;if((s|0)>-1)s=Mr(y,c[((c[(r&p)>>2]|0)+(s*20|0)&p)>>2]|0,0,0)|0;else s=tt(y,27,c[((c[(t&p)>>2]|0)+(u*24|0)&p)>>2]|0)|0;q=lr(e,q,s)|0;u=u+1|0}while((u|0)<(b[(ja&o)>>1]|0))}t=kr(e,q,f,h,0,0,0,0,0,0)|0;v=c[(_&p)>>2]|0;c[(_&p)>>2]=v+1;f=w&1;wh(x,57,v,(b[(ja&o)>>1]|0)+(w?2:1)|0,0)|0;u=x+4|0;h=c[(u&p)>>2]|0;if(h)a[(h+(((c[(x&p)+32>>2]|0)+-1|0)*20|0)&n)+3>>0]=8;a[(T&n)>>0]=14;c[(T&p)+4>>2]=v;a[(T&n)+1>>0]=0;c[(T&p)+8>>2]=0;c[(T&p)+12>>2]=0;ir(e,t,T)|0;h=e+72|0;s=c[(h&p)>>2]|0;q=s+1|0;da=s+2|0;c[(h&p)>>2]=(b[(ja&o)>>1]|0)+da;h=wh(x,108,v,0,0)|0;wh(x,47,v,0,q)|0;wh(x,47,v,f,da)|0;if((b[(ja&o)>>1]|0)>0){s=s+3|0;r=0;do{da=r;r=r+1|0;wh(x,47,v,r+f|0,s+da|0)|0}while((r|0)<(b[(ja&o)>>1]|0))}qt(e,ka);xh(x,wh(x,15,0,(b[(ja&o)>>1]|0)+2|0,q)|0,m,-10);m=c[(u&p)>>2]|0;if(!m)m=x+32|0;else{da=x+32|0;a[(m+(((c[(da&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=(k|0)==10?2:k&255;m=da}da=c[(H&p)>>2]|0;a[(((da|0)==0?e:da)&n)+21>>0]=1;wh(x,9,v,h+1|0,0)|0;m=c[(m&p)>>2]|0;if(m>>>0>h>>>0)c[((c[(u&p)>>2]|0)+(h*20|0)&p)+8>>2]=m;c[((c[(x&p)+24>>2]|0)&p)+88>>2]=m+-1;wh(x,61,v,0,0)|0;Mk(y,t,1);h=0;f=0;break}H=e+72|0;m=c[(H&p)>>2]|0;G=m+1|0;Q=m+2|0;c[(H&p)>>2]=Q;I=y<<24>>24!=0;J=(ga|0)!=0;P=(C|0)!=0;if(I|J|P){q=(b[(ja&o)>>1]|0)+Q|0;c[(H&p)>>2]=q;L=m+3|0}else{q=Q;L=0}N=(X|0)!=0;if(N|J|P){O=q+1|0;c[(H&p)>>2]=O;q=O}else O=Q;M=q+1|0;c[(H&p)>>2]=(b[(ja&o)>>1]|0)+q;if(ca){S=e+492|0;T=c[(S&p)>>2]|0;c[(S&p)>>2]=c[(ka&p)>>2];lt(e,ka,h,t);S=e}else{S=0;T=0}do if(!(ls(Y,h)|0)){if(!(a[(K&n)>>0]&32)){wh(V,28,0,G,Q)|0;y=Vs(e,f,h,0,0,4,ia)|0;if(!y)break;A=y+60|0;m=c[(A&p)>>2]|0;A=c[(A&p)+4>>2]|0;B=a[(y&n)+38>>0]|0;wh(V,103,t,Q,0)|0;if(!(B<<24>>24))wh(V,128,G,Q,0)|0;Xs(y);D=0;C=0;z=B&255;E=0}else{B=b[(s&o)+46>>1]|0;y=c[(H&p)>>2]|0;u=y+1|0;C=B<<16>>16;y=C+1+y|0;c[(H&p)>>2]=y;D=c[(_&p)>>2]|0;c[(_&p)>>2]=D+1;wh(V,28,0,u,0)|0;q=wh(V,57,D,C,0)|0;v=c[(e&p)+8>>2]|0;xh(v,-1,hs(e,s)|0,-6);v=Vs(e,f,h,0,0,4,ia)|0;if(!v)break;A=v+60|0;m=c[(A&p)>>2]|0;A=c[(A&p)+4>>2]|0;r=a[(v&n)+38>>0]|0;E=r&255;if(B<<16>>16>0){B=s+4|0;z=0;do{nt(V,ka,t,b[((c[(B&p)>>2]|0)+(z<<1)&o)>>1]|0,z+u|0);z=z+1|0}while((z|0)!=(C|0))}if(!(r<<24>>24)){B=ot(V,s)|0;xh(V,wh(V,49,u,C,y)|0,B,C);wh(V,110,D,y,0)|0;B=0}else{zh(V,q);B=C;y=u}Xs(v);C=B;z=E;E=y}K=la+24|0;do if(!(c[(K&p)>>2]&128))v=0;else{if(c[(e&p)+412>>2]|0){v=0;break}v=(c[(H&p)>>2]|0)+1|0;c[(H&p)>>2]=v;wh(V,25,0,v,0)|0}while(0);u=xs(V)|0;if(!ca){h:do if((k|0)==5)fw(da|0,1,Z|0)|0;else{B=c[(w&p)>>2]|0;if(!B)break;while(1){if((a[(B&n)+50>>0]|0)==5)break;B=c[(B&p)+20>>2]|0;if(!B)break h}fw(da|0,1,Z|0)|0}while(0);do if(z){if((m|0)>-1)a[(da+(m-$)&n)>>0]=0;if((A|0)<=-1)break;a[(da+(A-$)&n)>>0]=0}while(0);pt(e,ka,55,$,da,0,0)|0}H=(z|0)!=0;do if(!H)if(!s){G=wh(V,129,G,u,Q)|0;wh(V,70,t,G,Q)|0;F=0;break}else{G=xs(V)|0;wh(V,108,D,u,0)|0;F=wh(V,101,D,E,0)|0;xh(V,wh(V,68,t,G,E)|0,0,-14);break}else{if(!((a[(da+(t-$)&n)>>0]|0)==0|ca))xh(V,wh(V,68,t,u,E)|0,C,-14);wh(V,76,(s|0)!=0?E:Q,u,0)|0;F=0;G=u}while(0);x=x<<24>>24==0;if(!x){Rq(e,R,O);wh(V,38,O,0,0)|0}do if(I|P|J){if(P)y=ut(e,ka)|0;else y=0;B=vt(e,ga,g,0,3,ka,k)|0|y;if((b[(ja&o)>>1]|0)>0){A=(B|0)==-1;z=ka+4|0;y=0;do{do if(A)ba=138;else{if((y|0)<32?(1<>2]|0)+(y*24|0)&n)+23>>0]&1){ba=138;break}wh(V,28,0,y+L|0,0)|0}while(0);if((ba|0)==138){ba=0;nt(V,ka,t,y,y+L|0)}y=y+1|0}while((y|0)<(b[(ja&o)>>1]|0))}if(!(x&(s|0)==0))break;wh(V,33,Q,O,0)|0}while(0);y=vt(e,ga,g,1,1,ka,k)|0;if((b[(ja&o)>>1]|0)>0){x=ka+36|0;m=g+4|0;r=0;do{i:do if((r|0)==(b[(x&o)>>1]|0))wh(V,28,0,r+M|0,0)|0;else{q=c[(l+(r<<2)&p)>>2]|0;if((q|0)>-1){Rq(e,c[((c[(m&p)>>2]|0)+(q*20|0)&p)>>2]|0,r+M|0);break}do if(!((c[(ea&p)>>2]&1|0)==0|(r|0)>31)){if(1<>1]|0))}do if(c[(ea&p)>>2]&1){wt(V,ka,M);xt(e,ga,110,g,1,ka,Q,k,G);if(!s)wh(V,70,t,G,Q)|0;else xh(V,wh(V,68,t,G,E)|0,C,-14);m=b[(ja&o)>>1]|0;if(m<<16>>16<=0)break;x=ka+36|0;y=0;do{do if((c[(l+(y<<2)&p)>>2]|0)<0){if((y|0)==(b[(x&o)>>1]|0))break;nt(V,ka,t,y,y+M|0);m=b[(ja&o)>>1]|0}while(0);y=y+1|0}while((y|0)<(m<<16>>16|0))}while(0);do if(!ca){c[(ha&p)>>2]=0;yt(e,ka,aa,t,ia,O,Q,U,k&255,G,ha);if(P)zt(e,ka,Q,0,l,X);m=(c[(ha&p)>>2]|X|0)==0;do if(!m)if(!s){q=wh(V,70,t,0,Q)|0;break}else{q=wh(V,68,t,0,E)|0;xh(V,q,C,-14);break}else q=0;while(0);At(e,ka,t,ia,aa);if(P|(N|(s|0)!=0))wh(V,95,t,0,0)|0;if(!m){m=c[(V&p)+32>>2]|0;if(m>>>0>q>>>0)c[((c[(V&p)+4>>2]|0)+(q*20|0)&p)+8>>2]=m;c[((c[(V&p)+24>>2]|0)&p)+88>>2]=m+-1}if(P){zt(e,ka,0,O,l,X);Bt(e,ka,t,ia,O,aa,1,0,0);Ct(e,ka,g,Q,l,X);break}else{Bt(e,ka,t,ia,O,aa,1,0,0);break}}while(0);do if(c[(K&p)>>2]&128){if(c[(e&p)+412>>2]|0)break;wh(V,37,v,1,0)|0}while(0);xt(e,ga,110,g,2,ka,Q,k,G);do if(!H){if(!s){wh(V,16,0,G,0)|0;break}r=c[(V&p)+24>>2]|0;q=~G;do if((G|0)<0){s=c[(r&p)+112>>2]|0;if(!s)break;c[(s+(q<<2)&p)>>2]=c[(V&p)+32>>2]}while(0);c[(r&p)+88>>2]=(c[(V&p)+32>>2]|0)+-1;wh(V,9,D,F,0)|0}while(0);r=c[(V&p)+24>>2]|0;q=~u;do if((u|0)<0){s=c[(r&p)+112>>2]|0;if(!s)break;c[(s+(q<<2)&p)>>2]=c[(V&p)+32>>2]}while(0);c[(r&p)+88>>2]=(c[(V&p)+32>>2]|0)+-1;q=c[(w&p)>>2]|0;if(q){r=0;do{s=r;r=r+1|0;if(a[(da+r&n)>>0]|0)wh(V,61,s+ia|0,0,0)|0;q=c[(q&p)+20>>2]|0}while((q|0)!=0)}if((t|0)<(ia|0))wh(V,61,t,0,0)|0;do if(!(a[(W&n)>>0]|0)){if(c[(e&p)+412>>2]|0)break;st(e)}while(0);if(!(c[(K&p)>>2]&128))break;if(c[(e&p)+412>>2]|0)break;if(a[(W&n)>>0]|0)break;wh(V,35,v,1,0)|0;iq(V,1);if(a[((c[(V&p)>>2]|0)&n)+65>>0]|0)break;Xg(c[(V&p)+16>>2]|0,34520,-1,1,0)|0}while(0);if(S)c[(S&p)+492>>2]=T}}}else l=0}else l=0;while(0);mg(la,l);Do(la,f);Nk(la,g);Gk(la,h);i=ma;return}function tr(e,f,g,h,k){e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;var l=0,m=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,ga=0,ha=0,ia=0,ja=0,ka=0,la=0,ma=0,na=0,oa=0;oa=i;i=i+96|0;if((i|0)>=(j|0))fa();ca=oa;ja=oa+92|0;la=oa+88|0;L=oa+68|0;Y=oa+64|0;O=oa+32|0;ba=oa+28|0;c[(ja&p)>>2]=0;c[(la&p)>>2]=0;na=c[(e&p)>>2]|0;c[(L&p)>>2]=0;c[(L&p)+4>>2]=0;c[(L&p)+8>>2]=0;c[(L&p)+12>>2]=0;c[(L&p)+16>>2]=0;a:do if((c[(e&p)+64>>2]|0)==0?(N=na+65|0,(a[(N&n)>>0]|0)==0):0){if(g)if((b[(g&o)+6>>1]&128)!=0?(c[(g&p)+52>>2]|0)==0:0){l=c[(g&p)>>2]|0;c[(g&p)>>2]=0;Mk(na,g,1);g=0}else l=0;else{g=0;l=0}if((c[(f&p)+16>>2]|0)!=0?(ka=Jr(e,f)|0,(ka|0)!=0):0){u=c[(ka&p)+68>>2]|0;b:do if(u){t=c[(na&p)+20>>2]|0;if((t|0)>0){s=c[(na&p)+16>>2]|0;q=0;while(1){r=q+1|0;if((c[(s+(q<<4)&p)+12>>2]|0)==(u|0)){r=q;break b}if((r|0)<(t|0))q=r;else break}}else r=0}else r=-1e6;while(0);if((((Sq(e,18,c[(ka&p)>>2]|0,0,c[((c[(na&p)+16>>2]|0)+(r<<4)&p)>>2]|0)|0)==0?(ga=ka+44|0,Z=(d[(ga&n)>>0]|0)>>>5&1,ea=jt(e,ka,108,0,Y)|0,ha=(c[(ka&p)+12>>2]|0)!=0,(hr(e,ka)|0)==0):0)?(kt(e,ka,c[(Y&p)>>2]|0)|0)==0:0)?(ma=Oq(e)|0,(ma|0)!=0):0){ia=e+18|0;if(!(a[(ia&n)>>0]|0)){da=ma+88|0;b[(da&o)>>1]=b[(da&o)>>1]|4}da=(g|0)!=0;aa=e+408|0;$=c[(aa&p)>>2]|0;$=($|0)==0?e:$;Ar(e,r);X=$+328|0;c[(X&p)>>2]=c[(X&p)>>2]|1<>0]=d[($&n)>>0]|(da|(ea|0)!=0)&1;$=(h|0)==0;c:do if((((!((g|0)==0|$^1)?(c[(e&p)+532>>2]|0)==0:0)?(c[(g&p)+68>>2]|0)==0:0)?(As(e,ka)|0)==0:0)?(a[(ga&n)>>0]&16)==0:0){if((k|0)==10){if((b[(ka&o)+36>>1]|0)>-1)u=d[(ka&n)+45>>0]|0;else u=10;y=(u|0)==10?2:u}else y=k;t=c[(g&p)+32>>2]|0;if((c[(t&p)>>2]|0)==1){if(c[(t&p)+28>>2]|0){_=117;break}if(c[(g&p)+36>>2]|0){_=117;break}if(c[(g&p)+48>>2]|0){_=117;break}if(c[(g&p)+40>>2]|0){_=117;break}if(c[(g&p)+60>>2]|0){_=117;break}if(c[(g&p)+52>>2]|0){_=117;break}if(b[(g&o)+6>>1]&1){_=117;break}u=c[(g&p)>>2]|0;if((c[(u&p)>>2]|0)!=1){_=117;break}if((a[(c[(c[(u&p)+4>>2]&p)>>2]&n)>>0]|0)!=116){_=117;break}x=Ur(e,0,t+8|0)|0;if((x|0)==0|(x|0)==(ka|0)){_=117;break}B=x+44|0;X=d[(B&n)>>0]|0;if(!((X&16|0)==0?(((d[(ga&n)>>0]|0)>>>5&1^1)&255|0)==(X>>>5&1^1|0):0)){_=117;break}if(c[(x&p)+12>>2]|0){_=117;break}v=b[(ka&o)+38>>1]|0;if(v<<16>>16!=(b[(x&o)+38>>1]|0)){_=117;break}A=ka+36|0;if((b[(A&o)>>1]|0)!=(b[(x&o)+36>>1]|0)){_=117;break}if(v<<16>>16>0){q=c[(ka&p)+4>>2]|0;m=c[(x&p)+4>>2]|0;w=0;do{if((a[(q+(w*24|0)&n)+21>>0]|0)!=(a[(m+(w*24|0)&n)+21>>0]|0)){_=117;break c}u=c[(q+(w*24|0)&p)+16>>2]|0;t=c[(m+(w*24|0)&p)+16>>2]|0;s=(t|0)==0;if(!u){if(!s){_=117;break c}}else{if(s){_=117;break c}if(dd(u,t)|0){_=117;break c}}if((a[(q+(w*24|0)&n)+20>>0]|0)!=0?(a[(m+(w*24|0)&n)+20>>0]|0)==0:0){_=117;break c}do if((w|0)>0){u=c[(q+(w*24|0)&p)+8>>2]|0;t=(u|0)==0;s=c[(m+(w*24|0)&p)+8>>2]|0;if(t^(s|0)==0){_=117;break c}if(t)break;if(_v(u,s)|0){_=117;break c}}while(0);w=w+1|0}while((w|0)<(v<<16>>16|0))}E=ka+8|0;u=c[(E&p)>>2]|0;if(!u)t=0;else{v=c[(x&p)+8>>2]|0;if(!v){_=117;break}else t=0;do{t=(a[(u&n)+50>>0]|0)==0?t:1;s=v;while(1){if(Dt(u,s)|0)break;s=c[(s&p)+20>>2]|0;if(!s){_=117;break c}}if(!s){_=117;break c}u=c[(u&p)+20>>2]|0}while((u|0)!=0)}u=c[(ka&p)+24>>2]|0;if((u|0)!=0?(Ts(c[(x&p)+24>>2]|0,u,-1)|0)!=0:0){_=117;break}s=c[(e&p)>>2]|0;u=c[(s&p)+24>>2]|0;if(!(u&524288)){if(u&128){_=117;break}}else if(!((c[(ka&p)+16>>2]|0)==0&(u&128|0)==0)){_=117;break}m=c[(x&p)+68>>2]|0;d:do if(!m)s=-1e6;else{v=c[(s&p)+20>>2]|0;if((v|0)<=0){s=0;break}u=c[(s&p)+16>>2]|0;q=0;while(1){s=q+1|0;if((c[(u+(q<<4)&p)+12>>2]|0)==(m|0)){s=q;break d}if((s|0)<(v|0))q=s;else break}}while(0);D=Oq(e)|0;Ar(e,s);z=e+68|0;F=c[(z&p)>>2]|0;C=F+1|0;c[(z&p)>>2]=F+2;z=Et(e,r,ka)|0;v=e+19|0;q=a[(v&n)>>0]|0;do if(!(q<<24>>24)){_=e+72|0;u=(c[(_&p)>>2]|0)+1|0;c[(_&p)>>2]=u;_=78}else{X=q+-1<<24>>24;a[(v&n)>>0]=X;u=c[(e+((X&255)<<2)&p)+24>>2]|0;if(!(X<<24>>24)){_=78;break}G=q+-2<<24>>24;a[(v&n)>>0]=G;H=u;G=c[(e+((G&255)<<2)&p)+24>>2]|0}while(0);if((_|0)==78){H=e+72|0;G=(c[(H&p)>>2]|0)+1|0;c[(H&p)>>2]=G;H=u}Qq(e,C,r,ka,55);if((b[(A&o)>>1]|0)<0)if((c[(E&p)>>2]|0)!=0|(t|0)!=0|(y+-1|0)>>>0>1)_=83;else I=0;else if((t|0)!=0|(y+-1|0)>>>0>1)_=83;else I=0;if((_|0)==83){w=wh(D,108,C,0,0)|0;v=wh(D,16,0,0,0)|0;u=c[(D&p)+32>>2]|0;if(u>>>0>w>>>0)c[((c[(D&p)+4>>2]|0)+(w*20|0)&p)+8>>2]=u;c[((c[(D&p)+24>>2]|0)&p)+88>>2]=u+-1;I=v}if(!(a[(B&n)>>0]&32)){Qq(e,F,s,x,54);t=wh(D,108,F,0,0)|0;do if((b[(A&o)>>1]|0)<=-1)if(!(c[(E&p)>>2]|0)){u=wh(D,74,C,G,0)|0;break}else{u=wh(D,103,F,G,0)|0;break}else{u=wh(D,103,F,G,0)|0;w=wh(D,70,C,0,G)|0;Ft(e,y,ka);v=c[(D&p)+32>>2]|0;if(v>>>0>w>>>0)c[((c[(D&p)+4>>2]|0)+(w*20|0)&p)+8>>2]=v;c[((c[(D&p)+24>>2]|0)&p)+88>>2]=v+-1;if((z|0)<=0)break;wh(c[(e&p)+8>>2]|0,136,z,G,0)|0}while(0);wh(D,102,F,H,0)|0;wh(D,75,C,H,G)|0;v=c[(D&p)+4>>2]|0;if(v)a[(v+(((c[(D&p)+32>>2]|0)+-1|0)*20|0)&n)+3>>0]=11;xh(D,-1,c[(ka&p)>>2]|0,0);wh(D,9,F,u,0)|0;wh(D,61,F,0,0)|0;wh(D,61,C,0,0)|0}else{gs(e,r,c[(ka&p)+32>>2]|0,1,c[(ka&p)>>2]|0);gs(e,s,c[(x&p)+32>>2]|0,0,c[(x&p)>>2]|0);t=0}w=c[(E&p)>>2]|0;if(w){q=x+8|0;m=e+8|0;x=D+4|0;y=D+32|0;z=D+24|0;u=w;do{w=q;while(1){w=c[(w&p)>>2]|0;if(Dt(u,w)|0)break;w=w+20|0}wh(D,54,F,c[(w&p)+40>>2]|0,s)|0;X=c[(m&p)>>2]|0;xh(X,-1,hs(e,w)|0,-6);wh(D,55,C,c[(u&p)+40>>2]|0,r)|0;w=c[(m&p)>>2]|0;xh(w,-1,hs(e,u)|0,-6);w=c[(x&p)>>2]|0;if(w)a[(w+(((c[(y&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=1;w=wh(D,108,F,0,0)|0;wh(D,101,F,H,0)|0;wh(D,110,C,H,1)|0;wh(D,9,F,w+1|0,0)|0;v=c[(y&p)>>2]|0;if(v>>>0>w>>>0)c[((c[(x&p)>>2]|0)+(w*20|0)&p)+8>>2]=v;c[((c[(z&p)>>2]|0)&p)+88>>2]=v+-1;wh(D,61,F,0,0)|0;wh(D,61,C,0,0)|0;u=c[(u&p)+20>>2]|0}while((u|0)!=0)}if(t){u=c[(D&p)+32>>2]|0;if(u>>>0>t>>>0)c[((c[(D&p)+4>>2]|0)+(t*20|0)&p)+8>>2]=u;c[((c[(D&p)+24>>2]|0)&p)+88>>2]=u+-1}_r(e,G);_r(e,H);if(!I){m=0;q=0;break}wh(D,24,0,0,0)|0;u=c[(D&p)+32>>2]|0;if(u>>>0>I>>>0)c[((c[(D&p)+4>>2]|0)+(I*20|0)&p)+8>>2]=u;c[((c[(D&p)+24>>2]|0)&p)+88>>2]=u+-1;wh(D,61,C,0,0)|0;_=117}else _=117}else _=117;while(0);do if((_|0)==117){S=Et(e,r,ka)|0;R=e+72|0;t=c[(R&p)>>2]|0;W=t+1|0;X=ka+38|0;I=b[(X&o)>>1]|0;H=I<<16>>16;u=W+H|0;c[(R&p)>>2]=u;if(!(a[(ga&n)>>0]&16))V=W;else{u=u+1|0;c[(R&p)>>2]=u;V=t+2|0}T=V+1|0;U=(h|0)!=0;e:do if(U?(P=c[(h&p)+4>>2]|0,Q=(P|0)>0,Q):0){v=c[(h&p)>>2]|0;t=0;do{c[(v+(t<<3)&p)+4>>2]=-1;t=t+1|0}while((t|0)<(P|0));if(Q){D=Z<<24>>24!=0;C=ka+4|0;B=ka+36|0;t=1;A=0;v=-1;while(1){f:do if(I<<16>>16>0){z=c[(h&p)>>2]|0;s=c[(z+(A<<3)&p)>>2]|0;q=c[(C&p)>>2]|0;m=0;while(1){w=m+1|0;if(!(dd(s,c[(q+(m*24|0)&p)>>2]|0)|0)){w=m;break}if((w|0)<(H|0))m=w;else break f}c[(z+(A<<3)&p)+4>>2]=w;t=(A|0)==(w|0)?t:0;v=(w|0)==(b[(B&o)>>1]|0)?A:v}else w=0;while(0);if((w|0)>=(H|0)){m=c[((c[(h&p)>>2]|0)+(A<<3)&p)>>2]|0;if(($h(m)|0)==0|D)break;else{t=0;w=A}}else w=v;A=A+1|0;if((A|0)>=(P|0)){E=w;break e}else v=w}c[(ca&p)>>2]=f;c[(ca&p)+4>>2]=0;c[(ca&p)+8>>2]=m;th(e,33368,ca);a[(e&n)+17>>0]=1;m=0;break a}else{t=1;E=-1}}else{t=1;E=-1}while(0);g:do if(!da){c[(O&p)>>2]=0;c[(O&p)+4>>2]=0;c[(O&p)+8>>2]=0;c[(O&p)+12>>2]=0;c[(O&p)+16>>2]=0;c[(O&p)+20>>2]=0;c[(O&p)+24>>2]=0;c[(O&p)+28>>2]=0;c[(O&p)>>2]=e;if(l){s=c[(l&p)>>2]|0;if((s|0)>0){u=l+4|0;t=0;while(1){if(ls(O,c[((c[(u&p)>>2]|0)+(t*20|0)&p)>>2]|0)|0){g=0;m=0;break a}t=t+1|0;if((t|0)>=(s|0)){u=0;t=-1;r=0;_=169;break}}}else{P=E;O=0;Q=-1;z=0}}else{P=E;s=0;O=0;Q=-1;z=0}}else{u=u+1|0;c[(R&p)>>2]=u;G=ma+32|0;v=c[(G&p)>>2]|0;wh(ma,20,u,0,v+1|0)|0;a[(L&n)>>0]=13;H=L+4|0;c[(H&p)>>2]=u;a[(L&n)+1>>0]=0;F=L+8|0;c[(F&p)>>2]=t<<24>>24!=0?T:0;c[(L&p)+12>>2]=b[(X&o)>>1];Q=ir(e,g,L)|0;F=c[(F&p)>>2]|0;if(Q){m=0;break a}if(a[(N&n)>>0]|0){m=0;break a}wh(ma,21,u,0,0)|0;u=c[(G&p)>>2]|0;if(u>>>0>v>>>0)c[((c[(ma&p)+4>>2]|0)+(v*20|0)&p)+8>>2]=u;I=ma+24|0;c[((c[(I&p)>>2]|0)&p)+88>>2]=u+-1;s=c[(c[(g&p)>>2]&p)>>2]|0;h:do if(!ea){w=Oq(e)|0;t=c[(w&p)+32>>2]|0;i:do if(!(a[(ga&n)>>0]&16))v=0;else{u=c[(e&p)>>2]|0;v=c[(ka&p)+60>>2]|0;if(!v){v=0;break}while(1){if((c[(v&p)>>2]|0)==(u|0))break i;v=c[(v&p)+24>>2]|0;if(!v){v=0;break}}}while(0);if((t|0)<=1){u=F;t=0;r=0;_=169;break g}q=(a[((c[(w&p)>>2]|0)&n)+65>>0]|0)==0;z=w+4|0;y=ka+32|0;x=ka+8|0;m=1;while(1){if(q)w=(c[(z&p)>>2]|0)+(m*20|0)|0;else w=29120;u=a[(w&n)>>0]|0;do if(u<<24>>24==54){if((c[(w&p)+12>>2]|0)!=(r|0))break;u=c[(w&p)+8>>2]|0;if((u|0)==(c[(y&p)>>2]|0))break h;w=c[(x&p)>>2]|0;if(!w)break;do{if((u|0)==(c[(w&p)+40>>2]|0))break h;w=c[(w&p)+20>>2]|0}while((w|0)!=0)}else if(u<<24>>24==-107?(c[(w&p)+16>>2]|0)==(v|0):0)break h;while(0);m=m+1|0;if((m|0)>=(t|0)){u=F;t=0;r=0;_=169;break g}}}while(0);v=e+68|0;w=c[(v&p)>>2]|0;c[(v&p)>>2]=w+1;v=e+19|0;t=a[(v&n)>>0]|0;do if(!(t<<24>>24)){u=(c[(R&p)>>2]|0)+1|0;c[(R&p)>>2]=u;_=159}else{Q=t+-1<<24>>24;a[(v&n)>>0]=Q;u=c[(e+((Q&255)<<2)&p)+24>>2]|0;if(!(Q<<24>>24)){_=159;break}Q=t+-2<<24>>24;a[(v&n)>>0]=Q;v=c[(e+((Q&255)<<2)&p)+24>>2]|0}while(0);if((_|0)==159){v=(c[(R&p)>>2]|0)+1|0;c[(R&p)>>2]=v}wh(ma,57,w,s,0)|0;r=wh(ma,22,c[(H&p)>>2]|0,0,0)|0;wh(ma,49,F,s,u)|0;wh(ma,74,w,v,0)|0;wh(ma,75,w,u,v)|0;wh(ma,16,0,r,0)|0;t=c[(G&p)>>2]|0;if(t>>>0>r>>>0)c[((c[(ma&p)+4>>2]|0)+(r*20|0)&p)+8>>2]=t;c[((c[(I&p)>>2]|0)&p)+88>>2]=t+-1;_r(e,u);_r(e,v);u=F;t=w;r=1;_=169}while(0);if((_|0)==169)if($&(s|0)>0){P=b[(ka&o)+36>>1]|0;O=u;Q=t;z=r}else{P=E;O=u;Q=t;z=r}if((a[(ga&n)>>0]&16)!=0?(M=b[(X&o)>>1]|0,M<<16>>16>0):0){v=c[(ka&p)+4>>2]|0;t=M<<16>>16;r=0;u=0;do{u=((d[(v+(r*24|0)&n)+23>>0]|0)>>>1&1)+u|0;r=r+1|0}while((r|0)<(t|0))}else u=0;do if($&(s|0)!=0){u=(b[(X&o)>>1]|0)-u|0;if((s|0)==(u|0))break;c[(ca&p)>>2]=f;c[(ca&p)+4>>2]=0;c[(ca&p)+8>>2]=u;c[(ca&p)+12>>2]=s;th(e,33400,ca);m=0;break a}while(0);do if(U){u=c[(h&p)+4>>2]|0;if((s|0)==(u|0))break;c[(ca&p)>>2]=s;c[(ca&p)+4>>2]=u;th(e,33456,ca);m=0;break a}while(0);K=na+24|0;if(!(c[(K&p)>>2]&128))q=0;else{q=(c[(R&p)>>2]|0)+1|0;c[(R&p)>>2]=q;wh(ma,25,0,q,0)|0}do if(ha)m=0;else{u=pt(e,ka,55,-1,0,ja,la)|0;m=mh(na,(u<<2)+4|0,0)|0;if(!m)break a;if((u|0)>0)t=0;else break;do{N=(c[(R&p)>>2]|0)+1|0;c[(R&p)>>2]=N;c[(m+(t<<2)&p)>>2]=N;t=t+1|0}while((t|0)!=(u|0))}while(0);M=z<<24>>24!=0;do if(M){N=wh(ma,108,Q,0,0)|0;L=c[(ma&p)+32>>2]|0}else{if(!da){L=0;N=0;break}N=wh(ma,22,c[(L&p)+4>>2]|0,0,0)|0;L=N}while(0);J=xs(ma)|0;do if(c[(Y&p)>>2]&1){w=(b[(X&o)>>1]|0)+1|0;H=e+60|0;v=c[(H&p)>>2]|0;G=e+56|0;u=c[(G&p)>>2]|0;if((u|0)<(w|0)){I=c[(R&p)>>2]|0;c[(R&p)>>2]=I+w;I=I+1|0}else{c[(H&p)>>2]=w+v;c[(G&p)>>2]=u-w;I=v}if((P|0)<0)wh(ma,25,-1,I,0)|0;else{if(M)wh(ma,47,Q,P,I)|0;else Rq(e,c[((c[(l&p)+4>>2]|0)+(P*20|0)&p)>>2]|0,I);w=wh(ma,77,I,0,0)|0;wh(ma,25,-1,I,0)|0;v=c[(ma&p)+32>>2]|0;if(v>>>0>w>>>0)c[((c[(ma&p)+4>>2]|0)+(w*20|0)&p)+8>>2]=v;c[((c[(ma&p)+24>>2]|0)&p)+88>>2]=v+-1;wh(ma,38,I,0,0)|0}v=b[(X&o)>>1]|0;if(v<<16>>16>0){D=M|(l|0)!=0;t=h+4|0;u=I+1|0;w=l+4|0;A=e+8|0;B=ka+4|0;C=0;do{j:do if($)z=C;else{y=c[(t&p)>>2]|0;if((y|0)<=0){z=0;break}x=c[(h&p)>>2]|0;r=0;while(1){z=r+1|0;if((c[(x+(r<<3)&p)+4>>2]|0)==(C|0)){z=r;break j}if((z|0)<(y|0))r=z;else break}}while(0);do if(D){if(U?(z|0)>=(c[(t&p)>>2]|0):0){_=213;break}if(M){wh(ma,47,Q,z,u+C|0)|0;break}else{Y=c[((c[(w&p)>>2]|0)+(z*20|0)&p)>>2]|0;r=u+C|0;x=c[(A&p)>>2]|0;Rq(e,Y,r);v=(c[(R&p)>>2]|0)+1|0;c[(R&p)>>2]=v;wh(x,33,r,v,0)|0;a[(Y&n)+38>>0]=a[(Y&n)>>0]|0;a[(Y&n)>>0]=-97;c[(Y&p)+28>>2]=v;Y=Y+4|0;c[(Y&p)>>2]=c[(Y&p)>>2]&-4097;break}}else _=213;while(0);if((_|0)==213){_=0;Rq(e,c[((c[(B&p)>>2]|0)+(C*24|0)&p)+4>>2]|0,u+C|0)}C=C+1|0;v=b[(X&o)>>1]|0}while((C|0)<(v<<16>>16|0))}if(!ha){wt(ma,ka,I+1|0);v=b[(X&o)>>1]|0}xt(e,ea,108,0,1,ka,I+-1-(v<<16>>16)|0,k,J);v=(b[(X&o)>>1]|0)+1|0;dt(e,I,v);if((c[(G&p)>>2]|0)>=(v|0))break;c[(G&p)>>2]=v;c[(H&p)>>2]=I}while(0);do if(!ha){if(a[(ga&n)>>0]&16)wh(ma,28,0,W,0)|0;k:do if((P|0)<=-1)if(!((a[(ga&n)>>0]&16|Z)<<24>>24)){wh(ma,74,c[(ja&p)>>2]|0,V,S)|0;I=1;break}else{wh(ma,28,0,V,0)|0;I=0;break}else{do if(M)wh(ma,47,Q,P,V)|0;else{if(da){wh(ma,33,P+O|0,V,0)|0;break}Rq(e,c[((c[(l&p)+4>>2]|0)+(P*20|0)&p)>>2]|0,V);if(!(a[((c[(ma&p)>>2]|0)&n)+65>>0]|0)){u=(c[(ma&p)+4>>2]|0)+(((c[(ma&p)+32>>2]|0)+-1|0)*20|0)|0;if(!u)break}else u=29120;if((a[(u&n)>>0]|0)!=28)break;if(a[(ga&n)>>0]&16)break;a[(u&n)>>0]=74;c[(u&p)+4>>2]=c[(ja&p)>>2];c[(u&p)+8>>2]=V;c[(u&p)+12>>2]=S;I=1;break k}while(0);if(!(a[(ga&n)>>0]&16)){u=wh(ma,77,V,0,0)|0;wh(ma,74,c[(ja&p)>>2]|0,V,S)|0;t=c[(ma&p)+32>>2]|0;if(t>>>0>u>>>0)c[((c[(ma&p)+4>>2]|0)+(u*20|0)&p)+8>>2]=t;c[((c[(ma&p)+24>>2]|0)&p)+88>>2]=t+-1}else wh(ma,76,V,(c[(ma&p)+32>>2]|0)+2|0,0)|0;wh(ma,38,V,0,0)|0;I=0}while(0);if((S|0)>0)wh(c[(e&p)+8>>2]|0,136,S,V,0)|0;if((b[(X&o)>>1]|0)>0){G=ka+36|0;H=ka+4|0;C=(s|0)==0;B=h+4|0;A=(O|0)==(T|0);s=l+4|0;t=e+23|0;u=ca+20|0;v=ca+4|0;E=ca+24|0;F=0;w=0;do{D=F+T|0;l:do if((F|0)==(b[(G&o)>>1]|0))wh(ma,29,D,0,0)|0;else{m:do if($)if(!(a[((c[(H&p)>>2]|0)+(F*24|0)&n)+23>>0]&2)){z=F-w|0;_=258;break}else{w=w+1|0;break}else{y=c[(B&p)>>2]|0;if((y|0)<=0){z=0;_=258;break}x=c[(h&p)>>2]|0;r=0;while(1){z=r+1|0;if((c[(x+(r<<3)&p)+4>>2]|0)==(F|0)){z=r;_=258;break m}if((z|0)<(y|0))r=z;else{_=258;break}}}while(0);do if((_|0)==258){_=0;if((z|0)<0|C)break;if(U?(z|0)>=(c[(B&p)>>2]|0):0)break;if(M){wh(ma,47,Q,z,D)|0;break l}if(!da){Rq(e,c[((c[(s&p)>>2]|0)+(z*20|0)&p)>>2]|0,D);break l}if(A)break l;wh(ma,34,z+O|0,D,0)|0;break l}while(0);z=c[((c[(H&p)>>2]|0)+(F*24|0)&p)+4>>2]|0;do if(a[(t&n)>>0]|0){c[(ca&p)>>2]=0;c[(ca&p)+4>>2]=0;c[(ca&p)+8>>2]=0;c[(ca&p)+12>>2]=0;c[(ca&p)+16>>2]=0;c[(ca&p)+20>>2]=0;a[(u&n)>>0]=1;c[(ca&p)>>2]=78;c[(v&p)>>2]=79;c[(E&p)>>2]=0;rs(ca,z)|0;if(!(a[(u&n)>>0]|0))break;Gt(e,z,D,0);break l}while(0);Rq(e,z,D)}while(0);F=F+1|0}while((F|0)<(b[(X&o)>>1]|0))}if(!(a[(ga&n)>>0]&16)){yt(e,ka,m,c[(ja&p)>>2]|0,c[(la&p)>>2]|0,W,0,P>>>31&255^1,k&255,J,ba);zt(e,ka,0,W,0,0);Bt(e,ka,c[(ja&p)>>2]|0,c[(la&p)>>2]|0,W,m,0,I,(c[(ba&p)>>2]|0)==0&1);break}u=c[(ka&p)+60>>2]|0;n:do if(!u)u=0;else while(1){if((c[(u&p)>>2]|0)==(na|0))break n;u=c[(u&p)+24>>2]|0;if(!u){u=0;break}}while(0);qt(e,ka);xh(ma,wh(ma,15,1,(b[(X&o)>>1]|0)+2|0,W)|0,u,-10);t=c[(ma&p)+4>>2]|0;if(t)a[(t+(((c[(ma&p)+32>>2]|0)+-1|0)*20|0)&n)+3>>0]=(k|0)==10?2:k&255;ca=c[(aa&p)>>2]|0;a[(((ca|0)==0?e:ca)&n)+21>>0]=1}while(0);if(c[(K&p)>>2]&128)wh(ma,37,q,1,0)|0;if(ea)xt(e,ea,108,0,2,ka,V+-1-(b[(X&o)>>1]|0)|0,k,J);u=ma+24|0;t=c[(u&p)>>2]|0;r=~J;do if((J|0)<0){s=c[(t&p)+112>>2]|0;if(!s)break;c[(s+(r<<2)&p)>>2]=c[(ma&p)+32>>2]}while(0);s=ma+32|0;c[(t&p)+88>>2]=(c[(s&p)>>2]|0)+-1;do if(M){wh(ma,9,Q,L,0)|0;s=c[(s&p)>>2]|0;if(s>>>0>N>>>0)c[((c[(ma&p)+4>>2]|0)+(N*20|0)&p)+8>>2]=s;c[((c[(u&p)>>2]|0)&p)+88>>2]=s+-1;wh(ma,61,Q,0,0)|0}else{if(!da)break;wh(ma,16,0,L,0)|0;s=c[(s&p)>>2]|0;if(s>>>0>N>>>0)c[((c[(ma&p)+4>>2]|0)+(N*20|0)&p)+8>>2]=s;c[((c[(u&p)>>2]|0)&p)+88>>2]=s+-1}while(0);if((a[(ga&n)>>0]&16)!=0|ha)break;r=c[(ja&p)>>2]|0;if((r|0)<(c[(la&p)>>2]|0))wh(ma,61,r,0,0)|0;r=c[(ka&p)+8>>2]|0;if(!r)break;else s=0;while(1){wh(ma,61,(c[(la&p)>>2]|0)+s|0,0,0)|0;r=c[(r&p)+20>>2]|0;if(!r)break;else s=s+1|0}}while(0);if((a[(ia&n)>>0]|0)==0?(c[(e&p)+412>>2]|0)==0:0)st(e);if((((c[(na&p)+24>>2]&128|0)!=0?(a[(ia&n)>>0]|0)==0:0)?(c[(e&p)+412>>2]|0)==0:0)?(wh(ma,35,q,1,0)|0,iq(ma,1),(a[((c[(ma&p)>>2]|0)&n)+65>>0]|0)==0):0)Xg(c[(ma&p)+16>>2]|0,33488,-1,1,0)|0}else m=0}else m=0}else{m=0;l=0}while(0);Do(na,f);Nk(na,l);Mk(na,g,1);Hk(na,h);mg(na,m);i=oa;return}function ur(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0;h=i;i=i+16|0;if((i|0)>=(j|0))fa();f=h;if(!d){d=mh(b,8,0)|0;if(!d)d=0;else{g=d;k=g;a[(k&n)>>0]=0;a[(k&n)+1>>0]=0;a[(k&n)+2>>0]=0;a[(k&n)+3>>0]=0;g=g+4|0;a[(g&n)>>0]=0;a[(g&n)+1>>0]=0;a[(g&n)+2>>0]=0;a[(g&n)+3>>0]=0;g=4}}else g=4;do if((g|0)==4){c[(d&p)>>2]=Ht(b,c[(d&p)>>2]|0,8,d+4|0,f)|0;f=c[(f&p)>>2]|0;if((f|0)<0){Hk(b,d);d=0;break}else{b=Wq(b,e)|0;c[((c[(d&p)>>2]|0)+(f<<3)&p)>>2]=b;break}}while(0);i=h;return d|0}function vr(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0;if((c[(d&p)+4>>2]|0)!=0?(f=nr(c[(a&p)>>2]|0,95,d,e)|0,(f|0)!=0):0){c[(f&p)+12>>2]=b;b=f+4|0;c[(b&p)>>2]=c[(b&p)>>2]|4352;b=f}return b|0}function wr(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;e=c[(a&p)>>2]|0;d=nr(e,153,d,1)|0;if(!d){Nk(e,b);d=0}else{c[(d&p)+20>>2]=b;yr(a,d)}return d|0}function xr(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;b=c[(b&p)>>2]|0;if((d|0)!=0&(e|0)!=0?(a[(d&n)>>0]|0)==101:0){a[(e&n)>>0]=f;f=e+16|0;Gk(b,c[(f&p)>>2]|0);c[(f&p)>>2]=0}return}function yr(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;f=i;i=i+16|0;if((i|0)>=(j|0))fa();e=f;if((c[(a&p)+64>>2]|0)==0?(It(b),d=c[((c[(a&p)>>2]|0)&p)+100>>2]|0,(d|0)<(c[(b&p)+24>>2]|0)):0){c[(e&p)>>2]=d;th(a,27152,e)}i=f;return}function zr(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,i=0;d=c[(a&p)>>2]|0;i=d+20|0;e=c[(i&p)>>2]|0;if((e|0)>0){g=d+16|0;h=(b|0)==0;d=e;f=0;do{e=c[(g&p)>>2]|0;do if(c[(e+(f<<4)&p)+4>>2]|0){if(!h?(dd(b,c[(e+(f<<4)&p)>>2]|0)|0)!=0:0)break;Ar(a,f);d=c[(i&p)>>2]|0}while(0);f=f+1|0}while((f|0)<(d|0))}return}function Ar(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;f=c[(a&p)+408>>2]|0;f=(f|0)==0?a:f;a=f+332|0;d=c[(a&p)>>2]|0;e=1<>2]|0,c[(a&p)>>2]=d|e,c[(f+(b<<2)&p)+336>>2]=c[(c[((c[(g&p)+16>>2]|0)+(b<<4)&p)+12>>2]&p)>>2],(b|0)==1):0)_k(f)|0;return}function Br(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,o=0,q=0;q=i;i=i+128|0;if((i|0)>=(j|0))fa();f=q+8|0;o=q;m=q+24|0;c[(o&p)>>2]=0;k=c[(b&p)>>2]|0;if((c[(b&p)+64>>2]|0)==0?(c[(f&p)>>2]=e,l=Wk(k,d,f)|0,(l|0)!=0):0){d=b+18|0;a[(d&n)>>0]=(a[(d&n)>>0]|0)+1<<24>>24;e=b+440|0;f=m+0|0;g=e+0|0;h=f+96|0;do{a[(f&n)>>0]=a[(g&n)>>0]|0;f=f+1|0;g=g+1|0}while((f|0)<(h|0));f=e+0|0;h=f+96|0;do{c[(f&p)>>2]=0;f=f+4|0}while((f|0)<(h|0));Lh(b,l,o)|0;mg(k,c[(o&p)>>2]|0);mg(k,l);f=e+0|0;g=m+0|0;h=f+96|0;do{a[(f&n)>>0]=a[(g&n)>>0]|0;f=f+1|0;g=g+1|0}while((f|0)<(h|0));a[(d&n)>>0]=(a[(d&n)>>0]|0)+-1<<24>>24}i=q;return}function Cr(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0;k=i;i=i+48|0;if((i|0)>=(j|0))fa();g=k;h=k+16|0;b=c[((c[((c[(a&p)>>2]|0)&p)+16>>2]|0)+(b<<4)&p)>>2]|0;f=1;do{c[(g&p)>>2]=f;ad(24,h,33272,g)|0;if(_h(c[(a&p)>>2]|0,h,b)|0){c[(g&p)>>2]=b;c[(g&p)+4>>2]=h;c[(g&p)+8>>2]=d;c[(g&p)+12>>2]=e;Br(a,28840,g)}f=f+1|0}while((f|0)!=5);i=k;return}function Dr(b,d){b=b|0;d=d|0;var e=0,f=0;e=b+19|0;f=a[(e&n)>>0]|0;if(!(f<<24>>24)){f=b+72|0;e=(c[(f&p)>>2]|0)+1|0;c[(f&p)>>2]=e}else{f=f+-1<<24>>24;a[(e&n)>>0]=f;e=c[(b+((f&255)<<2)&p)+24>>2]|0}f=c[(b&p)+8>>2]|0;wh(f,25,(c[(c[((c[((c[(b&p)>>2]|0)&p)+16>>2]|0)+(d<<4)&p)+12>>2]&p)>>2]|0)+1|0,e,0)|0;wh(f,52,d,1,e)|0;_r(b,e);return}function Er(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0;l=i;i=i+32|0;if((i|0)>=(j|0))fa();k=l;h=Oq(b)|0;f=b+19|0;g=a[(f&n)>>0]|0;if(!(g<<24>>24)){g=b+72|0;f=(c[(g&p)>>2]|0)+1|0;c[(g&p)>>2]=f}else{g=g+-1<<24>>24;a[(f&n)>>0]=g;f=c[(b+((g&255)<<2)&p)+24>>2]|0}wh(h,117,d,f,e)|0;g=c[(b&p)+408>>2]|0;a[(((g|0)==0?b:g)&n)+21>>0]=1;c[(k&p)>>2]=c[((c[((c[(b&p)>>2]|0)&p)+16>>2]|0)+(e<<4)&p)>>2];c[(k&p)+4>>2]=(e|0)==1?13184:13208;c[(k&p)+8>>2]=d;c[(k&p)+12>>2]=f;c[(k&p)+16>>2]=f;Br(b,33216,k);_r(b,f);i=l;return}function Fr(f,g,h,k,l){f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;var m=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;X=i;i=i+96|0;if((i|0)>=(j|0))fa();G=X+24|0;w=X+80|0;q=X+64|0;A=X+16|0;t=X+60|0;u=X+56|0;O=X+52|0;N=X+48|0;z=X+44|0;D=X+40|0;E=X+36|0;F=X+32|0;x=X+8|0;s=X;W=c[(f&p)>>2]|0;T=Oq(f)|0;do if((T|0)!=0?(S=T+88|0,b[(S&o)>>1]=b[(S&o)>>1]|16,S=f+72|0,c[(S&p)>>2]=2,Q=er(f,g,h,w)|0,(Q|0)>=0):0){R=W+16|0;C=c[(R&p)>>2]|0;if((Q|0)==1?(_k(f)|0)!=0:0)break;V=Wq(W,c[(w&p)>>2]|0)|0;if(V){if(!l)U=Wq(W,k)|0;else{c[(G&p)>>2]=k;U=uh(W,30104,G)|0}B=h+4|0;if(!(c[(B&p)>>2]|0))L=0;else L=c[(C+(Q<<4)&p)>>2]|0;a:do if(!(Sq(f,19,V,U,L)|0)){c[(q&p)>>2]=0;c[(q&p)+4>>2]=V;c[(q&p)+8>>2]=U;c[(q&p)+12>>2]=0;r=W+452|0;c[(r&p)>>2]=0;g=cg(W,L,14,q)|0;if(!g){k=c[(q&p)>>2]|0;if(!k)break;m=(c[(S&p)>>2]|0)+1|0;c[(S&p)>>2]=m;xh(T,wh(T,97,0,m,0)|0,k,0);iq(T,1);if(!(a[((c[(T&p)>>2]|0)&n)+65>>0]|0))Xg(c[(T&p)+16>>2]|0,30112,-1,1,0)|0;wh(T,35,m,1,0)|0;Wc(c[(q&p)>>2]|0);break}else if((g|0)==12){w=0;q=56;b:while(1){while(1){l=(w+q|0)/2|0;g=c[((l*12|0)&p)+30120>>2]|0;k=dd(V,g)|0;if(!k){w=l;break b}if((k|0)<0){g=l;break}if((l|0)<(q|0))w=l+1|0;else break a}g=g+-1|0;if((w|0)>(g|0))break a;else q=g}if((a[((w*12|0)&n)+30125>>0]&1)!=0?(Gn(f)|0)!=0:0)break;do switch(d[((w*12|0)&n)+30124>>0]|0){case 10:{q=1<>2]=c[(F&p)>>2]|q;if(U){c[(G&p)>>2]=0;Dn(U,G)|0;k=c[(G&p)>>2]|0;if((k|0)<=-1)k=(k|0)==-2147483648?2147483647:0-k|0;G=c[(f&p)+408>>2]|0;Ar(f,Q);G=((G|0)==0?f:G)+328|0;c[(G&p)>>2]=c[(G&p)>>2]|q;wh(T,25,k,1,0)|0;wh(T,52,Q,3,1)|0;c[((c[(C+(Q<<4)&p)+12>>2]|0)&p)+80>>2]=k;pq(c[(C+(Q<<4)&p)+4>>2]|0,k);break a}iq(T,1);if(!(a[((c[(T&p)>>2]|0)&n)+65>>0]|0))Xg(c[(T&p)+16>>2]|0,30848,-1,1,0)|0;c[(S&p)>>2]=(c[(S&p)>>2]|0)+2;k=yh(T,9,30808)|0;l=c[(T&p)+32>>2]|0;if(l>>>0>k>>>0)c[((c[(T&p)+4>>2]|0)+(k*20|0)&p)+4>>2]=Q;m=k+1|0;if(l>>>0>m>>>0)c[((c[(T&p)+4>>2]|0)+(m*20|0)&p)+4>>2]=Q;m=k+6|0;if(l>>>0<=m>>>0)break a;c[((c[(T&p)+4>>2]|0)+(m*20|0)&p)+4>>2]=2e3;break a}case 19:{k=c[(c[((c[(C+(Q<<4)&p)+4>>2]|0)&p)+4>>2]&p)>>2]|0;G=A;c[(G&p)>>2]=-2;c[(G&p)+4>>2]=-1;if(U){ji(U,A)|0;m=A;l=c[(m&p)>>2]|0;m=c[(m&p)+4>>2]|0;if((m|0)<-1|(m|0)==-1&l>>>0<4294967295){l=A;c[(l&p)>>2]=-1;c[(l&p)+4>>2]=-1;l=-1;m=-1}G=k+160|0;c[(G&p)>>2]=l;c[(G&p)+4>>2]=m;k=c[(k&p)+208>>2]|0;if(k){G=k+16|0;c[(G&p)>>2]=l;c[(G&p)+4>>2]=m}}else{m=k+160|0;l=c[(m&p)>>2]|0;m=c[(m&p)+4>>2]|0}G=A;c[(G&p)>>2]=l;c[(G&p)+4>>2]=m;Jt(f,30952,l,m);break a}case 28:{q=Oq(f)|0;iq(q,4);c[(S&p)>>2]=4;Ar(f,Q);if((((a[((c[(q&p)>>2]|0)&n)+65>>0]|0)==0?(Xg(c[(q&p)+16>>2]|0,31232,-1,1,0)|0,(a[((c[(q&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(q&p)+16>>2]|0)+40|0,20632,-1,1,0)|0,(a[((c[(q&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(q&p)+16>>2]|0)+80|0,31240,-1,1,0)|0,(a[((c[(q&p)>>2]|0)&n)+65>>0]|0)==0):0)Xg((c[(q&p)+16>>2]|0)+120|0,31248,-1,1,0)|0;l=c[((c[(C+(Q<<4)&p)+12>>2]|0)&p)+16>>2]|0;if(!l)break a;do{m=c[(l&p)+8>>2]|0;G=c[(m&p)>>2]|0;xh(q,wh(q,97,0,1,0)|0,G,0);wh(q,28,0,2,0)|0;G=Ws(b[(m&o)+42>>1]|0)|0;wh(q,25,G,3,0)|0;G=Ws(b[(m&o)+28>>1]|0)|0;wh(q,25,G,4,0)|0;wh(q,35,1,4,0)|0;m=c[(m&p)+8>>2]|0;if(m)do{G=c[(m&p)>>2]|0;xh(q,wh(q,97,0,2,0)|0,G,0);G=Ws(b[(m&o)+44>>1]|0)|0;wh(q,25,G,3,0)|0;G=Ws(b[(c[(m&p)+8>>2]&o)>>1]|0)|0;wh(q,25,G,4,0)|0;wh(q,35,1,4,0)|0;m=c[(m&p)+20>>2]|0}while((m|0)!=0);l=c[(l&p)>>2]|0}while((l|0)!=0);break}case 15:{if(!U)break a;s=bq(W,U,L)|0;if(!s)break a;w=(c[((w*12|0)&p)+30128>>2]|0)==0;t=s+46|0;G=w?3:6;r=b[((w?t:s+48|0)&o)>>1]|0;u=r&65535;c[(S&p)>>2]=G;q=c[(s&p)+12>>2]|0;iq(T,G);Ar(f,Q);if(((a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0?(Xg(c[(T&p)+16>>2]|0,31256,-1,1,0)|0,(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(T&p)+16>>2]|0)+40|0,31176,-1,1,0)|0,(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0):0)Xg((c[(T&p)+16>>2]|0)+80|0,31184,-1,1,0)|0;if(((!w?(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0:0)?(Xg((c[(T&p)+16>>2]|0)+120|0,31264,-1,1,0)|0,(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(T&p)+16>>2]|0)+160|0,31272,-1,1,0)|0,(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0):0)Xg((c[(T&p)+16>>2]|0)+200|0,31280,-1,1,0)|0;if(!(r<<16>>16))break a;m=s+4|0;l=s+28|0;k=s+32|0;s=q+4|0;q=0;do{G=b[((c[(m&p)>>2]|0)+(q<<1)&o)>>1]|0;wh(T,25,q,1,0)|0;r=G<<16>>16;wh(T,25,r,2,0)|0;if(G<<16>>16<0)wh(T,28,0,3,0)|0;else{G=c[((c[(s&p)>>2]|0)+(r*24|0)&p)>>2]|0;xh(T,wh(T,97,0,3,0)|0,G,0)}if(!w){wh(T,25,d[((c[(l&p)>>2]|0)+q&n)>>0]|0,4,0)|0;G=c[((c[(k&p)>>2]|0)+(q<<2)&p)>>2]|0;xh(T,wh(T,97,0,5,0)|0,G,0);wh(T,25,(q|0)<(e[(t&o)>>1]|0)&1,6,0)|0}wh(T,35,1,c[(S&p)>>2]|0,0)|0;q=q+1|0}while((q|0)<(u|0));break}case 22:{Ar(f,Q);k=(c[(S&p)>>2]|0)+1|0;c[(S&p)>>2]=k;if((a[(V&n)>>0]&-33)<<24>>24==80)wh(T,153,Q,k,0)|0;else{c[(G&p)>>2]=0;if(U){Dn(U,G)|0;m=c[(G&p)>>2]|0;if((m|0)<=-1)m=(m|0)==-2147483648?2147483647:0-m|0}else m=0;wh(T,154,Q,k,m)|0}wh(T,35,k,1,0)|0;iq(T,1);if(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)break a;Xg(c[(T&p)+16>>2]|0,V,-1,1,-1)|0;break a}case 24:{l=c[(C+(Q<<4)&p)+4>>2]|0;if(U){c[(G&p)>>2]=0;Dn(U,G)|0;G=c[(G&p)>>2]|0;c[(W&p)+72>>2]=G;if((xg(l,G,-1,0)|0)!=7)break a;a[(W&n)+65>>0]=1;break a}if(!l){l=0;m=0}else{m=c[((c[(l&p)+4>>2]|0)&p)+32>>2]|0;l=m;m=((m|0)<0)<<31>>31}Jt(f,30864,l,m);break a}case 25:{l=c[(C+(Q<<4)&p)+4>>2]|0;if(U){m=(ii(U,1,0)|0)<<24>>24!=0&1;if((c[(B&p)>>2]|0)==0?(y=W+20|0,(c[(y&p)>>2]|0)>0):0){k=0;do{so(c[((c[(R&p)>>2]|0)+(k<<4)&p)+4>>2]|0,m)|0;k=k+1|0}while((k|0)<(c[(y&p)>>2]|0))}}else m=-1;G=so(l,m)|0;Jt(f,30880,G,((G|0)<0)<<31>>31);break a}case 18:{iq(T,1);if(!(a[((c[(T&p)>>2]|0)&n)+65>>0]|0))Xg(c[(T&p)+16>>2]|0,30936,-1,1,0)|0;c:do if(U){k=U;while(1)if(!(a[(k&n)>>0]|0))break;else k=k+1|0;m=k-U&1073741823;k=0;while(1){if(!(Fc(U,c[(k<<2&p)+32216>>2]|0,m)|0))break;k=k+1|0;if((k|0)==6){P=91;break c}}if((k|0)!=-1)q=Q;else P=91}else P=91;while(0);if((P|0)==91)if(!(c[(B&p)>>2]|0)){c[(B&p)>>2]=1;k=-1;q=0}else{k=-1;q=Q}m=c[(W&p)+20>>2]|0;if((m|0)>0){l=T+96|0;do{m=m+-1|0;do if(c[((c[(R&p)>>2]|0)+(m<<4)&p)+4>>2]|0){if((m|0)!=(q|0)?(c[(B&p)>>2]|0)!=0:0)break;c[(l&p)>>2]=c[(l&p)>>2]|1<0)}wh(T,35,1,1,0)|0;break a}case 32:{if(!U){if(!(c[2708]|0))break a;iq(T,1);if(!(a[((c[(T&p)>>2]|0)&n)+65>>0]|0))Xg(c[(T&p)+16>>2]|0,31048,-1,1,0)|0;G=c[2708]|0;xh(T,wh(T,97,0,1,0)|0,G,0);wh(T,35,1,1,0)|0;break a}if((a[(U&n)>>0]|0)!=0?(F=c[(W&p)>>2]|0,F=(pc[c[(F&p)+32>>2]&31](F,U,1,u)|0)!=0,F|(c[(u&p)>>2]|0)==0):0){th(f,31072,G);break a}if((d[(W&n)+64>>0]|0)<2)Kt(f)|0;Wc(c[2708]|0);if(!(a[(U&n)>>0]|0)){c[2708]=0;break a}else{c[(G&p)>>2]=U;c[2708]=_c(10344,G)|0;break a}}case 14:{if(!((U|0)!=0?(G=(Dn(U,t)|0)==0,m=c[(t&p)>>2]|0,!(G|(m|0)<1)):0)){c[(t&p)>>2]=2147483647;m=2147483647}l=c[(f&p)+408>>2]|0;Ar(f,Q);l=((l|0)==0?f:l)+328|0;c[(l&p)>>2]=c[(l&p)>>2]|1<>2]|0;if(l>>>0>m>>>0)c[((c[(T&p)+4>>2]|0)+(m*20|0)&p)+8>>2]=l;c[((c[(T&p)+24>>2]|0)&p)+88>>2]=l+-1;break a}case 30:{if(!U)break a;h=_h(W,U,L)|0;if(!h)break a;k=c[(h&p)+8>>2]|0;d:do if(!k)k=0;else while(1){if((a[(k&n)+51>>0]&3)==2)break d;k=c[(k&p)+20>>2]|0;if(!k){k=0;break}}while(0);iq(T,6);c[(S&p)>>2]=6;Ar(f,Q);do if((((a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0?(Xg(c[(T&p)+16>>2]|0,31176,-1,1,0)|0,(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(T&p)+16>>2]|0)+40|0,31184,-1,1,0)|0,(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(T&p)+16>>2]|0)+80|0,31192,-1,1,0)|0,(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0):0){Xg((c[(T&p)+16>>2]|0)+120|0,31200,-1,1,0)|0;if(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)break;Xg((c[(T&p)+16>>2]|0)+160|0,31208,-1,1,0)|0;if(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)break;Xg((c[(T&p)+16>>2]|0)+200|0,31224,-1,1,0)|0}while(0);hr(f,h)|0;t=h+38|0;m=b[(t&o)>>1]|0;if(m<<16>>16<=0)break a;u=(k|0)==0;l=k+4|0;w=0;r=0;g=c[(h&p)+4>>2]|0;while(1){s=g+23|0;if(!(a[(s&n)>>0]&2)){wh(T,25,w-r|0,1,0)|0;q=c[(g&p)>>2]|0;xh(T,wh(T,97,0,2,0)|0,q,0);q=c[(g&p)+12>>2]|0;xh(T,wh(T,97,0,3,0)|0,(q|0)==0?10360:q,0);wh(T,25,(a[(g&n)+20>>0]|0)!=0&1,4,0)|0;q=c[(g&p)+8>>2]|0;if(!q)wh(T,28,0,5,0)|0;else xh(T,wh(T,97,0,5,0)|0,q,0);k=a[(s&n)>>0]&1;e:do if(k<<24>>24==0|u)q=(k^1)&255^1;else{q=b[(t&o)>>1]|0;if(q<<16>>16<1){q=1;break}m=c[(l&p)>>2]|0;s=q<<16>>16;k=1;while(1){q=k+1|0;if((b[(m+(k+-1<<1)&o)>>1]|0)==(w|0)){q=k;break e}if((k|0)<(s|0))k=q;else break}}while(0);wh(T,25,q,6,0)|0;wh(T,35,1,6,0)|0;m=b[(t&o)>>1]|0}else r=r+1|0;w=w+1|0;if((w|0)>=(m<<16>>16|0))break;else g=g+24|0}break}case 2:{if(!U){Jt(f,g,(c[((w*12|0)&p)+30128>>2]&c[(W&p)+24>>2]|0)!=0&1,0);break a}l=c[((w*12|0)&p)+30128>>2]|0;l=(a[(W&n)+63>>0]|0)==0?l&-524289:l;if(!((ii(U,1,0)|0)<<24>>24)){G=W+24|0;c[(G&p)>>2]=c[(G&p)>>2]&~l;if((l|0)==16777216){G=W+512|0;c[(G&p)>>2]=0;c[(G&p)+4>>2]=0}}else{G=W+24|0;c[(G&p)>>2]=c[(G&p)>>2]|l}wh(T,144,0,0,0)|0;Lt(W);break a}case 5:{if(!U)break a;G=(ii(U,1,0)|0)<<24>>24!=0;F=G?32e3:19240;Qh(W,19248,2,1,F,40,0,0,0)|0;Qh(W,19248,3,1,F,40,0,0,0)|0;Qh(W,19232,2,1,10352,40,0,0,0)|0;Ot(W,19232,12);Ot(W,19248,G?12:4);break a}case 17:{g=a[(V&n)>>0]|0;A=(c[(h&p)>>2]|0)==0?-1:Q;c[(S&p)>>2]=6;iq(T,1);if(!(a[((c[(T&p)>>2]|0)&n)+65>>0]|0))Xg(c[(T&p)+16>>2]|0,31464,-1,1,0)|0;c[(z&p)>>2]=100;if(U){Dn(U,z)|0;s=c[(z&p)>>2]|0;if((s|0)<1){c[(z&p)>>2]=100;s=100}}else s=100;wh(T,25,s,1,0)|0;M=W+20|0;w=c[(M&p)>>2]|0;if((w|0)>0){L=(A|0)<0;m=T+32|0;I=T+4|0;H=T+24|0;N=(g&-33)<<24>>24==81;O=0;do{if(L|(O|0)==(A|0)){Ar(f,O);w=wh(T,137,1,0,0)|0;wh(T,24,0,0,0)|0;l=c[(m&p)>>2]|0;if(l>>>0>w>>>0)c[((c[(I&p)>>2]|0)+(w*20|0)&p)+8>>2]=l;c[((c[(H&p)>>2]|0)&p)+88>>2]=l+-1;k=(c[((c[(R&p)>>2]|0)+(O<<4)&p)+12>>2]|0)+16|0;w=c[(k&p)>>2]|0;if(!w)g=0;else{g=0;do{l=c[(w&p)+8>>2]|0;if(!(a[(l&n)+44>>0]&32)){wh(T,25,c[(l&p)+32>>2]|0,g+2|0,0)|0;g=g+1|0}l=c[(l&p)+8>>2]|0;if(l)do{wh(T,25,c[(l&p)+40>>2]|0,g+2|0,0)|0;g=g+1|0;l=c[(l&p)+20>>2]|0}while((l|0)!=0);w=c[(w&p)>>2]|0}while((w|0)!=0)}C=c[(S&p)>>2]|0;w=g+8|0;c[(S&p)>>2]=(C|0)>(w|0)?C:w;wh(T,127,2,g,1)|0;w=c[(I&p)>>2]|0;if(w)a[(w+(((c[(m&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=O;g=wh(T,76,2,0,0)|0;c[(G&p)>>2]=c[((c[(R&p)>>2]|0)+(O<<4)&p)>>2];w=uh(W,31480,G)|0;xh(T,wh(T,97,0,3,0)|0,w,-1);wh(T,32,2,4,1)|0;wh(T,94,4,3,2)|0;wh(T,35,2,1,0)|0;w=c[(m&p)>>2]|0;if(w>>>0>g>>>0)c[((c[(I&p)>>2]|0)+(g*20|0)&p)+8>>2]=w;c[((c[(H&p)>>2]|0)&p)+88>>2]=w+-1;w=c[(k&p)>>2]|0;if(!((w|0)==0|N))do{x=c[(w&p)+8>>2]|0;J=x+8|0;g=c[(J&p)>>2]|0;do if(g){f:do if(!(a[(x&n)+44>>0]&32))g=0;else while(1){if((a[(g&n)+51>>0]&3)==2)break f;g=c[(g&p)+20>>2]|0;if(!g){g=0;break}}while(0);l=wh(T,137,1,0,0)|0;wh(T,24,0,0,0)|0;k=c[(m&p)>>2]|0;if(k>>>0>l>>>0)c[((c[(I&p)>>2]|0)+(l*20|0)&p)+8>>2]=k;c[((c[(H&p)>>2]|0)&p)+88>>2]=k+-1;at(f);pt(f,x,54,1,0,D,E)|0;wh(T,25,0,7,0)|0;k=c[(J&p)>>2]|0;if(!k)l=8;else{l=0;while(1){wh(T,25,0,l+8|0,0)|0;k=c[(k&p)+20>>2]|0;if(!k)break;else l=l+1|0}l=l+9|0}K=c[(S&p)>>2]|0;c[(S&p)>>2]=(K|0)>(l|0)?K:l;wh(T,108,c[(D&p)>>2]|0,0,0)|0;K=wh(T,37,7,1,0)|0;u=x+38|0;l=b[(u&o)>>1]|0;if(l<<16>>16>0){h=x+36|0;v=x+4|0;t=0;do{do if((t|0)!=(b[(h&o)>>1]|0)){if(!(a[((c[(v&p)>>2]|0)+(t*24|0)&n)+20>>0]|0))break;nt(T,x,c[(D&p)>>2]|0,t,3);l=c[(I&p)>>2]|0;if(l)a[(l+(((c[(m&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=-128;l=wh(T,77,3,0,0)|0;wh(T,37,1,-1,0)|0;q=c[((c[(v&p)>>2]|0)+(t*24|0)&p)>>2]|0;c[(G&p)>>2]=c[(x&p)>>2];c[(G&p)+4>>2]=q;q=uh(W,31504,G)|0;xh(T,wh(T,97,0,3,0)|0,q,-1);wh(T,35,3,1,0)|0;q=wh(T,137,1,0,0)|0;wh(T,24,0,0,0)|0;r=c[(m&p)>>2]|0;if(r>>>0>l>>>0)c[((c[(I&p)>>2]|0)+(l*20|0)&p)+8>>2]=r;l=r+-1|0;k=(c[(H&p)>>2]|0)+88|0;c[(k&p)>>2]=l;if(r>>>0>q>>>0)c[((c[(I&p)>>2]|0)+(q*20|0)&p)+8>>2]=r;c[(k&p)>>2]=l;l=b[(u&o)>>1]|0}while(0);t=t+1|0}while((t|0)<(l<<16>>16|0))}l=c[(J&p)>>2]|0;if(l){z=x+4|0;y=0;r=0;k=-1;while(1){q=xs(T)|0;if((g|0)!=(l|0)){k=Pt(f,l,c[(D&p)>>2]|0,0,0,F,r,k)|0;wh(T,37,y+8|0,1,0)|0;x=e[(l&o)+48>>1]|0;q=wh(T,69,(c[(E&p)>>2]|0)+y|0,q,k)|0;xh(T,q,x,-14);wh(T,37,1,-1,0)|0;xh(T,wh(T,97,0,3,0)|0,31528,-2);wh(T,94,7,3,3)|0;xh(T,wh(T,97,0,4,0)|0,31536,-2);wh(T,94,4,3,3)|0;x=c[(l&p)>>2]|0;v=wh(T,97,0,4,0)|0;xh(T,v,x,0);wh(T,94,4,3,3)|0;wh(T,35,3,1,0)|0;x=wh(T,137,1,0,0)|0;wh(T,24,0,0,0)|0;r=c[(m&p)>>2]|0;if(r>>>0>q>>>0)c[((c[(I&p)>>2]|0)+(q*20|0)&p)+8>>2]=r;q=c[(H&p)>>2]|0;c[(q&p)+88>>2]=r+-1;if(a[(l&n)+50>>0]|0){h=xs(T)|0;u=l+46|0;q=b[(u&o)>>1]|0;if(q<<16>>16){t=l+4|0;r=0;do{if(!(a[((c[(z&p)>>2]|0)+((b[((c[(t&p)>>2]|0)+(r<<1)&o)>>1]|0)*24|0)&n)+20>>0]|0)){wh(T,76,r+k|0,h,0)|0;q=b[(u&o)>>1]|0}r=r+1|0}while((r|0)<(q&65535|0))}q=wh(T,9,(c[(E&p)>>2]|0)+y|0,0,0)|0;wh(T,16,0,h,0)|0;r=c[(m&p)>>2]|0;if(r>>>0>q>>>0)c[((c[(I&p)>>2]|0)+(q*20|0)&p)+8>>2]=r;c[((c[(H&p)>>2]|0)&p)+88>>2]=r+-1;q=e[(u&o)>>1]|0;xh(T,wh(T,114,(c[(E&p)>>2]|0)+y|0,h,k)|0,q,-14);wh(T,37,1,-1,0)|0;xh(T,wh(T,97,0,3,0)|0,31560,-2);wh(T,16,0,v,0)|0;q=c[(H&p)>>2]|0;t=~h;do if((h|0)<0){r=c[(q&p)+112>>2]|0;if(!r)break;c[(r+(t<<2)&p)>>2]=c[(m&p)>>2]}while(0);r=c[(m&p)>>2]|0;c[(q&p)+88>>2]=r+-1}if(r>>>0>x>>>0)c[((c[(I&p)>>2]|0)+(x*20|0)&p)+8>>2]=r;c[(q&p)+88>>2]=r+-1;Qt(f,c[(F&p)>>2]|0);r=l}l=c[(l&p)+20>>2]|0;if(!l)break;else y=y+1|0}}wh(T,9,c[(D&p)>>2]|0,K,0)|0;l=K+-1|0;k=c[(m&p)>>2]|0;if(k>>>0>l>>>0)c[((c[(I&p)>>2]|0)+(l*20|0)&p)+8>>2]=k;c[((c[(H&p)>>2]|0)&p)+88>>2]=k+-1;xh(T,wh(T,97,0,2,0)|0,31592,-2);l=c[(J&p)>>2]|0;if(!l)break;else q=0;while(1){if((g|0)!=(l|0)){k=c[(m&p)>>2]|0;wh(T,137,1,k+2|0,0)|0;wh(T,24,0,0,0)|0;wh(T,50,(c[(E&p)>>2]|0)+q|0,3,0)|0;wh(T,79,q+8|0,k+8|0,3)|0;k=c[(I&p)>>2]|0;if(k)a[(k+(((c[(m&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=-112;wh(T,37,1,-1,0)|0;C=c[(l&p)>>2]|0;xh(T,wh(T,97,0,3,0)|0,C,0);wh(T,94,3,2,7)|0;wh(T,35,7,1,0)|0}l=c[(l&p)+20>>2]|0;if(!l)break;else q=q+1|0}}while(0);w=c[(w&p)>>2]|0}while((w|0)!=0);w=c[(M&p)>>2]|0}O=O+1|0}while((O|0)<(w|0))}else m=T+32|0;l=yh(T,3,31448)|0;m=c[(m&p)>>2]|0;if(m>>>0>l>>>0){c[((c[(T&p)+4>>2]|0)+(l*20|0)&p)+12>>2]=0-s;c[((c[(T&p)+4>>2]|0)+(l*20|0)&p)+8>>2]=m}c[((c[(T&p)+24>>2]|0)&p)+88>>2]=m+-1;xh(T,l+1|0,31624,-2);break a}case 21:{do if(U){if(dd(U,30904)|0)if(!(dd(U,30896)|0))k=0;else{P=66;break}else k=1;if(!(c[(B&p)>>2]|0)){s=c[(W&p)+20>>2]|0;if((s|0)>2){q=c[(R&p)>>2]|0;m=k&255;r=2;do{l=c[(c[((c[(q+(r<<4)&p)+4>>2]|0)&p)+4>>2]&p)>>2]|0;do if(!(a[(l&n)+12>>0]|0)){G=c[(l&p)+208>>2]|0;if((G|0)!=0?(a[(G&n)+43>>0]|0)==2:0)break;a[(l&n)+4>>0]=m}while(0);r=r+1|0}while((r|0)<(s|0))}else m=k&255;a[(W&n)+66>>0]=m;P=74}else P=74}else P=66;while(0);if((P|0)==66)if(!(c[(B&p)>>2]|0))l=W+66|0;else{k=-1;P=74}if((P|0)==74){m=c[(c[((c[(C+(Q<<4)&p)+4>>2]|0)&p)+4>>2]&p)>>2]|0;do if((k|0)>-1?(a[(m&n)+12>>0]|0)==0:0){G=c[(m&p)+208>>2]|0;if((G|0)!=0?(a[(G&n)+43>>0]|0)==2:0)break;a[(m&n)+4>>0]=k}while(0);l=m+4|0}l=(a[(l&n)>>0]|0)==1?30904:30896;iq(T,1);if(!(a[((c[(T&p)>>2]|0)&n)+65>>0]|0))Xg(c[(T&p)+16>>2]|0,30920,-1,1,0)|0;xh(T,wh(T,97,0,1,0)|0,l,0);wh(T,35,1,1,0)|0;break a}case 16:{if(!U)break a;k=_h(W,U,L)|0;if(!k)break a;q=Oq(f)|0;iq(q,5);c[(S&p)>>2]=5;Ar(f,Q);if(((((a[((c[(q&p)>>2]|0)&n)+65>>0]|0)==0?(Xg(c[(q&p)+16>>2]|0,31288,-1,1,0)|0,(a[((c[(q&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(q&p)+16>>2]|0)+40|0,31184,-1,1,0)|0,(a[((c[(q&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(q&p)+16>>2]|0)+80|0,31296,-1,1,0)|0,(a[((c[(q&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(q&p)+16>>2]|0)+120|0,31304,-1,1,0)|0,(a[((c[(q&p)>>2]|0)&n)+65>>0]|0)==0):0)Xg((c[(q&p)+16>>2]|0)+160|0,31312,-1,1,0)|0;m=c[(k&p)+8>>2]|0;if(!m)break a;else l=0;while(1){wh(q,25,l,1,0)|0;G=c[(m&p)>>2]|0;xh(q,wh(q,97,0,2,0)|0,G,0);wh(q,25,(a[(m&n)+50>>0]|0)!=0&1,3,0)|0;G=c[((a[(m&n)+51>>0]&3)<<2&p)+31336>>2]|0;xh(q,wh(q,97,0,4,0)|0,G,0);wh(q,25,(c[(m&p)+36>>2]|0)!=0&1,5,0)|0;wh(q,35,1,5,0)|0;m=c[(m&p)+20>>2]|0;if(!m)break;else l=l+1|0}break}case 1:{k=c[(C+(Q<<4)&p)+4>>2]|0;if(!U){m=c[(k&p)+4>>2]|0;c[(m&p)+4>>2]=c[(k&p)>>2];if(!(a[(m&n)+17>>0]|0)){m=0;l=0}else{l=(a[(m&n)+18>>0]|0)==0;m=l?1:2;l=l?0:0}Jt(f,30976,m,l);break a}if(dd(U,32192)|0)if(dd(U,31880)|0)if(!(dd(U,32200)|0))m=2;else{c[(G&p)>>2]=0;Dn(U,G)|0;m=c[(G&p)>>2]|0;m=m>>>0<3?m&255:0}else m=1;else m=0;a[(W&n)+67>>0]=m;r=m+-1|0;if(!((vn(k,m)|0)==0&r>>>0<2))break a;l=yh(T,6,30992)|0;q=c[(T&p)+32>>2]|0;if(q>>>0>l>>>0)c[((c[(T&p)+4>>2]|0)+(l*20|0)&p)+4>>2]=Q;k=l+1|0;if(q>>>0>k>>>0)c[((c[(T&p)+4>>2]|0)+(k*20|0)&p)+4>>2]=Q;k=l+2|0;m=l+4|0;if(q>>>0>k>>>0)c[((c[(T&p)+4>>2]|0)+(k*20|0)&p)+8>>2]=m;if(q>>>0>m>>>0)c[((c[(T&p)+4>>2]|0)+(m*20|0)&p)+4>>2]=r;m=l+5|0;if(q>>>0>m>>>0)c[((c[(T&p)+4>>2]|0)+(m*20|0)&p)+4>>2]=Q;G=T+96|0;c[(G&p)>>2]=c[(G&p)>>2]|1<>2]=3;if(((a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0?(Xg(c[(T&p)+16>>2]|0,31288,-1,1,0)|0,(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(T&p)+16>>2]|0)+40|0,31184,-1,1,0)|0,(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0):0)Xg((c[(T&p)+16>>2]|0)+80|0,31352,-1,1,0)|0;l=W+20|0;m=c[(l&p)>>2]|0;if((m|0)>0)q=0;else break a;do{if(c[((c[(R&p)>>2]|0)+(q<<4)&p)+4>>2]|0){wh(T,25,q,1,0)|0;k=c[((c[(R&p)>>2]|0)+(q<<4)&p)>>2]|0;xh(T,wh(T,97,0,2,0)|0,k,0);k=c[(c[((c[((c[(R&p)>>2]|0)+(q<<4)&p)+4>>2]|0)&p)+4>>2]&p)>>2]|0;if(!(a[(k&n)+15>>0]|0))k=c[(k&p)+168>>2]|0;else k=10360;xh(T,wh(T,97,0,3,0)|0,k,0);wh(T,35,1,3,0)|0;m=c[(l&p)>>2]|0}q=q+1|0}while((q|0)<(m|0));break}case 6:{iq(T,2);c[(S&p)>>2]=2;if((a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0?(Xg(c[(T&p)+16>>2]|0,31288,-1,1,0)|0,(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0):0)Xg((c[(T&p)+16>>2]|0)+40|0,31184,-1,1,0)|0;m=c[(W&p)+436>>2]|0;if(!m)break a;else l=0;while(1){G=c[(m&p)+8>>2]|0;wh(T,25,l,1,0)|0;G=c[(G&p)>>2]|0;xh(T,wh(T,97,0,2,0)|0,G,0);wh(T,35,1,2,0)|0;m=c[(m&p)>>2]|0;if(!m)break;else l=l+1|0}break}case 13:{if(!U)break a;k=_h(W,U,L)|0;if(!k)break a;g=Oq(f)|0;q=c[(k&p)+16>>2]|0;if(!q)break a;iq(g,8);c[(S&p)>>2]=8;Ar(f,Q);do if((((a[((c[(g&p)>>2]|0)&n)+65>>0]|0)==0?(Xg(c[(g&p)+16>>2]|0,31360,-1,1,0)|0,(a[((c[(g&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(g&p)+16>>2]|0)+40|0,31288,-1,1,0)|0,(a[((c[(g&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(g&p)+16>>2]|0)+80|0,31232,-1,1,0)|0,(a[((c[(g&p)>>2]|0)&n)+65>>0]|0)==0):0){Xg((c[(g&p)+16>>2]|0)+120|0,31368,-1,1,0)|0;if(a[((c[(g&p)>>2]|0)&n)+65>>0]|0)break;Xg((c[(g&p)+16>>2]|0)+160|0,31376,-1,1,0)|0;if(a[((c[(g&p)>>2]|0)&n)+65>>0]|0)break;Xg((c[(g&p)+16>>2]|0)+200|0,31384,-1,1,0)|0;if(a[((c[(g&p)>>2]|0)&n)+65>>0]|0)break;Xg((c[(g&p)+16>>2]|0)+240|0,31400,-1,1,0)|0;if(a[((c[(g&p)>>2]|0)&n)+65>>0]|0)break;Xg((c[(g&p)+16>>2]|0)+280|0,31416,-1,1,0)|0}while(0);v=k+4|0;w=0;while(1){k=q+20|0;if((c[(k&p)>>2]|0)>0){m=q+25|0;l=q+26|0;t=q+8|0;h=0;do{u=c[(q+(h<<3)&p)+40>>2]|0;s=d[(m&n)>>0]|0;if((s|0)==8)r=32072;else if((s|0)==9)r=32088;else if((s|0)==6)r=32096;else if((s|0)==7)r=32056;else r=32112;s=d[(l&n)>>0]|0;if((s|0)==8)s=32072;else if((s|0)==9)s=32088;else if((s|0)==6)s=32096;else if((s|0)==7)s=32056;else s=32112;wh(g,25,w,1,0)|0;wh(g,25,h,2,0)|0;G=c[(t&p)>>2]|0;xh(g,wh(g,97,0,3,0)|0,G,0);G=c[((c[(v&p)>>2]|0)+((c[(q+(h<<3)&p)+36>>2]|0)*24|0)&p)>>2]|0;xh(g,wh(g,97,0,4,0)|0,G,0);xh(g,wh(g,(u|0)!=0?97:28,0,5,0)|0,u,0);xh(g,wh(g,97,0,6,0)|0,s,0);xh(g,wh(g,97,0,7,0)|0,r,0);xh(g,wh(g,97,0,8,0)|0,31424,0);wh(g,35,1,8,0)|0;h=h+1|0}while((h|0)<(c[(k&p)>>2]|0))}q=c[(q&p)+4>>2]|0;if(!q)break;else w=w+1|0}break}case 11:{if(!U){if(Gn(f)|0)break a;iq(T,1);if(!(a[((c[(T&p)>>2]|0)&n)+65>>0]|0))Xg(c[(T&p)+16>>2]|0,31784,-1,1,0)|0;wh(T,97,0,1,0)|0;xh(T,-1,c[(d[((c[(f&p)>>2]|0)&n)+62>>0]<<3&p)+31632>>2]|0,-2);wh(T,35,1,1,0)|0;break a}k=c[((c[(R&p)>>2]|0)&p)+12>>2]|0;if((b[(k&o)+78>>1]&5)==1)break a;else{m=31632;l=31704}do{if(!(dd(U,l)|0)){v=m;P=415;break}m=m+8|0;l=c[(m&p)>>2]|0}while((l|0)!=0);if((P|0)==415?(F=a[(v&n)+4>>0]|0,F=F<<24>>24==0?2:F,a[(W&n)+62>>0]=F,a[(k&n)+77>>0]=F,(c[(v&p)>>2]|0)!=0):0)break a;c[(G&p)>>2]=U;th(f,31800,G);break a}case 0:{s=c[((w*12|0)&p)+30128>>2]|0;F=T+96|0;c[(F&p)>>2]=c[(F&p)>>2]|1<>2]|0)>>>0>m>>>0)c[((c[(T&p)+4>>2]|0)+(m*20|0)&p)+4>>2]=Q;l=m+1|0;c[(G&p)>>2]=0;Dn(U,G)|0;k=c[(k&p)>>2]|0;if(k>>>0>l>>>0)c[((c[(T&p)+4>>2]|0)+(l*20|0)&p)+4>>2]=c[(G&p)>>2];m=m+2|0;if(k>>>0<=m>>>0)break a;c[((c[(T&p)+4>>2]|0)+(m*20|0)&p)+4>>2]=Q;c[((c[(T&p)+4>>2]|0)+(m*20|0)&p)+8>>2]=s;break a}m=yh(T,3,31848)|0;k=c[(T&p)+32>>2]|0;if(k>>>0>m>>>0)c[((c[(T&p)+4>>2]|0)+(m*20|0)&p)+4>>2]=Q;m=m+1|0;if(k>>>0>m>>>0){c[((c[(T&p)+4>>2]|0)+(m*20|0)&p)+4>>2]=Q;c[((c[(T&p)+4>>2]|0)+(m*20|0)&p)+12>>2]=s}iq(T,1);if(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)break a;Xg(c[(T&p)+16>>2]|0,V,-1,1,-1)|0;break a}case 7:{iq(T,1);c[(S&p)>>2]=1;if(!(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)){Xg(c[(T&p)+16>>2]|0,31864,-1,1,0)|0;l=0}else l=0;do{G=c[(l<<2&p)+8648>>2]|0;l=l+1|0;xh(T,wh(T,97,0,1,0)|0,G,0);wh(T,35,1,1,0)|0}while((l|0)!=4);break}case 35:{m=(c[(h&p)>>2]|0)!=0?Q:10;if(U)if(dd(U,31880)|0)if(!(dd(U,31888)|0))l=2;else{l=(dd(U,31896)|0)==0;l=l?3:0}else l=1;else l=0;iq(T,3);c[(S&p)>>2]=3;if(((a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0?(Xg(c[(T&p)+16>>2]|0,31912,-1,1,0)|0,(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(T&p)+16>>2]|0)+40|0,31920,-1,1,0)|0,(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0):0)Xg((c[(T&p)+16>>2]|0)+80|0,31928,-1,1,0)|0;wh(T,11,m,l,1)|0;wh(T,35,1,3,0)|0;break a}case 26:{of(W)|0;break a}case 34:{if(!U)l=c[(W&p)+216>>2]|0;else{c[(G&p)>>2]=0;Dn(U,G)|0;l=c[(G&p)>>2]|0;if((l|0)>0)m=21;else{l=0;m=0}c[(W&p)+216>>2]=m;c[(W&p)+220>>2]=l;l=m}if((l|0)==21){l=c[(W&p)+220>>2]|0;m=l;l=((l|0)<0)<<31>>31}else{m=0;l=0}Jt(f,31944,m,l);break a}case 27:{if((U|0)!=0?(ji(U,x)|0)==0:0){G=x;Pc(c[(G&p)>>2]|0,c[(G&p)+4>>2]|0)|0}F=(Lc()|0)==0;G=9032;Jt(f,31976,F?c[(G&p)>>2]|0:-1,F?c[(G&p)+4>>2]|0:-1);break a}case 33:{if((U|0)!=0?(E=(ji(U,s)|0)==0,G=s,F=c[(G&p)+4>>2]|0,E&((F|0)>-1|(F|0)==-1&(c[(G&p)>>2]|0)>>>0>4294967295)):0)c[(W&p)+132>>2]=0;G=c[(W&p)+132>>2]|0;Jt(f,31992,G,((G|0)<0)<<31>>31);break a}case 12:{g=c[(S&p)>>2]|0;H=g+1|0;I=g+5|0;J=g+6|0;c[(S&p)>>2]=J;K=Oq(f)|0;iq(K,4);if((((a[((c[(K&p)>>2]|0)&n)+65>>0]|0)==0?(Xg(c[(K&p)+16>>2]|0,31232,-1,1,0)|0,(a[((c[(K&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(K&p)+16>>2]|0)+40|0,20456,-1,1,0)|0,(a[((c[(K&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(K&p)+16>>2]|0)+80|0,31432,-1,1,0)|0,(a[((c[(K&p)>>2]|0)&n)+65>>0]|0)==0):0)Xg((c[(K&p)+16>>2]|0)+120|0,31440,-1,1,0)|0;Ar(f,Q);w=c[((c[((c[(R&p)>>2]|0)+(Q<<4)&p)+12>>2]|0)&p)+16>>2]|0;if(!w)break a;u=(U|0)==0;h=f+68|0;v=K+32|0;D=K+4|0;E=K+24|0;F=g+2|0;G=g+3|0;A=g+4|0;t=f+8|0;while(1){if(u){B=c[(w&p)>>2]|0;C=c[(w&p)+8>>2]|0}else{B=0;C=sh(f,0,U,L)|0}if((C|0)!=0?(M=C+16|0,(c[(M&p)>>2]|0)!=0):0){gs(f,Q,c[(C&p)+32>>2]|0,0,c[(C&p)>>2]|0);g=(b[(C&o)+38>>1]|0)+J|0;if((g|0)>(c[(S&p)>>2]|0))c[(S&p)>>2]=g;Qq(f,0,Q,C,54);w=c[(C&p)>>2]|0;xh(K,wh(K,97,0,H,0)|0,w,0);w=c[(M&p)>>2]|0;if(!w)g=1;else{g=1;do{l=_h(W,c[(w&p)+8>>2]|0,L)|0;do if(l){c[(O&p)>>2]=0;gs(f,Q,c[(l&p)+32>>2]|0,0,c[(l&p)>>2]|0);if(Mt(f,l,w,O,0)|0)break a;m=c[(O&p)>>2]|0;if(!m){Qq(f,g,Q,l,54);break}else{wh(K,54,g,c[(m&p)+40>>2]|0,Q)|0;z=c[(t&p)>>2]|0;xh(z,-1,hs(f,m)|0,-6);break}}while(0);g=g+1|0;w=c[(w&p)+4>>2]|0}while((w|0)!=0)}if((c[(h&p)>>2]|0)<(g|0))c[(h&p)>>2]=g;s=wh(K,108,0,0,0)|0;g=c[(M&p)>>2]|0;if(g){z=C+36|0;y=1;while(1){x=g+8|0;w=_h(W,c[(x&p)>>2]|0,L)|0;c[(O&p)>>2]=0;c[(N&p)>>2]=0;r=(w|0)!=0;do if(r){Mt(f,w,g,O,N)|0;l=c[(O&p)>>2]|0;m=xs(K)|0;if(!(r&(l|0)==0)){w=m;P=306;break}w=c[(g&p)+36>>2]|0;if((w|0)==(b[(z&o)>>1]|0))wh(K,103,0,J,0)|0;else{wh(K,47,0,w,J)|0;Nt(K,C,w,J);wh(K,76,J,m,0)|0;wh(K,38,J,(c[(v&p)>>2]|0)+3|0,0)|0}wh(K,70,y,0,J)|0;wh(K,16,0,m,0)|0;w=c[(v&p)>>2]|0;if(w>>>0>1)c[((c[(D&p)>>2]|0)+((w+-2|0)*20|0)&p)+8>>2]=w;c[((c[(E&p)>>2]|0)&p)+88>>2]=w+-1;w=m}else{w=xs(K)|0;l=0;P=306}while(0);do if((P|0)==306){P=0;q=g+20|0;m=c[(q&p)>>2]|0;if((m|0)>0){k=0;do{m=c[(N&p)>>2]|0;if(!m)m=g+(k<<3)+36|0;else m=m+(k<<2)|0;R=k+J|0;nt(K,C,0,c[(m&p)>>2]|0,R);wh(K,76,R,w,0)|0;k=k+1|0;m=c[(q&p)>>2]|0}while((k|0)<(m|0))}if(!r)break;k=ot(K,l)|0;l=c[(q&p)>>2]|0;xh(K,wh(K,49,J,m,I)|0,k,l);xh(K,wh(K,69,y,w,I)|0,0,-14)}while(0);wh(K,103,0,F,0)|0;l=c[(x&p)>>2]|0;xh(K,wh(K,97,0,G,0)|0,l,0);wh(K,25,y+-1|0,A,0)|0;wh(K,35,H,4,0)|0;l=c[(E&p)>>2]|0;m=~w;do if((w|0)<0){w=c[(l&p)+112>>2]|0;if(!w)break;c[(w+(m<<2)&p)>>2]=c[(v&p)>>2]}while(0);c[(l&p)+88>>2]=(c[(v&p)>>2]|0)+-1;mg(W,c[(N&p)>>2]|0);g=c[(g&p)+4>>2]|0;if(!g)break;else y=y+1|0}}wh(K,9,0,s+1|0,0)|0;g=c[(v&p)>>2]|0;if(g>>>0>s>>>0)c[((c[(D&p)>>2]|0)+(s*20|0)&p)+8>>2]=g;c[((c[(E&p)>>2]|0)&p)+88>>2]=g+-1}if(!B)break;else w=B}break}case 23:{Jt(f,31016,0,0);break a}case 31:{if(!U){Jt(f,31032,d[(W&n)+64>>0]|0,0);break a}l=a[(U&n)>>0]|0;if((l+-48&255)>=3)if(!(dd(U,31352)|0))l=1;else{l=(dd(U,15168)|0)==0;l=l?2:0}else l=(l<<24>>24)+-48|0;m=(c[(f&p)>>2]|0)+64|0;if((d[(m&n)>>0]|0)==(l|0))break a;if(Kt(f)|0)break a;a[(m&n)>>0]=l;break a}case 29:{if(!U){G=(d[(C+(Q<<4)&n)+8>>0]|0)+-1|0;Jt(f,31104,G,((G|0)<0)<<31>>31);break a}if(!(a[(W&n)+63>>0]|0)){th(f,31120,G);break a}else{a[(C+(Q<<4)&n)+8>>0]=((ii(U,0,1)|0)&255)+1;Lt(W);break a}}case 4:if(!U){G=c[((c[(C+(Q<<4)&p)+12>>2]|0)&p)+80>>2]|0;Jt(f,30848,G,((G|0)<0)<<31>>31);break a}else{c[(G&p)>>2]=0;Dn(U,G)|0;G=c[(G&p)>>2]|0;c[((c[(C+(Q<<4)&p)+12>>2]|0)&p)+80>>2]=G;pq(c[(C+(Q<<4)&p)+4>>2]|0,G);break a}default:{if(!U)l=c[(W&p)+492>>2]|0;else{c[(G&p)>>2]=0;Dn(U,G)|0;l=c[(G&p)>>2]|0;G=(l|0)>0;l=G?l:0;c[(W&p)+444>>2]=G?74:0;c[(W&p)+448>>2]=G?W:0;c[(r&p)>>2]=0;c[(W&p)+492>>2]=l}Jt(f,31968,l,((l|0)<0)<<31>>31);break a}}while(0)}else{k=c[(q&p)>>2]|0;if(k){c[(G&p)>>2]=k;th(f,10344,G);Wc(c[(q&p)>>2]|0)}G=f+64|0;c[(G&p)>>2]=(c[(G&p)>>2]|0)+1;c[(f&p)+12>>2]=g;break}}while(0);mg(W,V);mg(W,U)}}while(0);i=X;return}function Gr(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0;h=i;i=i+16|0;if((i|0)>=(j|0))fa();g=h;a:do if(!d)d=0;else{f=d;while(1){if((a[(f&n)>>0]|0)==-121){d=c[(b&p)>>2]|0;if(!(a[((c[(d&p)>>2]|0)&n)+145>>0]|0))break;a[(f&n)>>0]=101}d=c[(f&p)+4>>2]|0;if(d&16384){d=0;break a}e=f+20|0;if(!(d&2048)){if(Hr(b,c[(e&p)>>2]|0)|0){d=1;break a}}else if(fr(b,c[(e&p)>>2]|0)|0){d=1;break a}if(Gr(b,c[(f&p)+16>>2]|0)|0){d=1;break a}f=c[(f&p)+12>>2]|0;if(!f){d=0;break a}}c[(g&p)>>2]=c[(b&p)+16>>2];th(d,29984,g);d=1}while(0);i=h;return d|0}function Hr(a,b){a=a|0;b=b|0;var d=0,e=0;a:do if((b|0)!=0?(c[(b&p)>>2]|0)>0:0){d=0;e=c[(b&p)+4>>2]|0;while(1){if(Gr(a,c[(e&p)>>2]|0)|0){d=1;break a}d=d+1|0;if((d|0)>=(c[(b&p)>>2]|0)){d=0;break}else e=e+20|0}}else d=0;while(0);return d|0}function Ir(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;xh(a,wh(a,122,b,0,0)|0,d,-1);d=c[((c[(a&p)>>2]|0)&p)+20>>2]|0;if((d|0)>0){e=a+96|0;b=c[(e&p)>>2]|0;a=0;do{b=b|1<>2]=b}return}function Jr(a,d){a=a|0;d=d|0;var e=0,f=0;e=d+8|0;f=Ur(a,0,e)|0;d=d+24|0;kg(c[(a&p)>>2]|0,c[(d&p)>>2]|0);c[(d&p)>>2]=f;if(f){d=f+40|0;b[(d&o)>>1]=(b[(d&o)>>1]|0)+1<<16>>16}e=(Rt(a,e)|0)==0;return (e?f:0)|0}function Kr(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0;n=i;i=i+16|0;if((i|0)>=(j|0))fa();m=n;a:do if((b|0)!=0?(f=c[(a&p)+12>>2]|0,(c[(b&p)>>2]|0)>0):0){g=a+8|0;h=a+4|0;k=0;l=b+8|0;while(1){if(!(c[(g&p)>>2]|0)){e=l+4|0;d=c[(e&p)>>2]|0;if((d|0)!=0?(dd(d,f)|0)!=0:0)break;mg(c[(c[(a&p)>>2]&p)>>2]|0,d);c[(e&p)>>2]=0;c[(l&p)>>2]=c[(h&p)>>2]}if(fr(a,c[(l&p)+20>>2]|0)|0){d=1;break a}if(Gr(a,c[(l&p)+44>>2]|0)|0){d=1;break a}k=k+1|0;if((k|0)>=(c[(b&p)>>2]|0)){d=0;break a}else l=l+72|0}b=c[(a&p)>>2]|0;l=c[(a&p)+20>>2]|0;c[(m&p)>>2]=c[(a&p)+16>>2];c[(m&p)+4>>2]=l;c[(m&p)+8>>2]=d;th(b,29936,m);d=1}else d=0;while(0);i=n;return d|0}function Lr(b,d){b=b|0;d=d|0;var e=0,f=0,g=0;f=i;i=i+16|0;if((i|0)>=(j|0))fa();e=f;g=c[(b&p)>>2]|0;if((((a[(g&n)+145>>0]|0)==0?(a[(b&n)+18>>0]|0)==0:0)?(c[(g&p)+24>>2]&2048|0)==0:0)?(Fc(d,25568,7)|0)==0:0){c[(e&p)>>2]=d;th(b,28440,e);b=1}else b=0;i=f;return b|0}function Mr(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,o=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0;x=i;i=i+16|0;if((i|0)>=(j|0))fa();w=x;do if(d){t=e&1;v=(f|0)!=0;if(v){g=c[(f&p)>>2]|0;r=32768}else{g=St(d,e)|0;g=mh(b,g,((g|0)<0)<<31>>31)|0;r=0}c[(w&p)>>2]=g;if(g){l=(t|0)==0;if(!l)if(!(c[(d&p)+12>>2]|0))q=(c[(d&p)+20>>2]|0)==0?16396:8220;else q=8220;else q=48;s=q&60;u=d+4|0;m=c[(u&p)>>2]|0;if((m&1024|0)==0?(h=c[(d&p)+8>>2]|0,(h|0)!=0):0){k=h;while(1)if(!(a[(k&n)>>0]|0))break;else k=k+1|0;o=(k-h&1073741823)+1|0}else o=0;if(l){if(!(m&16384))k=(m&8192|0)==0?48:28;else k=12;kw(g|0,d|0,k|0)|0;fw(g+k|0,0,48-k|0)|0}else kw(g|0,d|0,s|0)|0;m=g+4|0;h=q&24576|r|c[(m&p)>>2]&-122881;c[(m&p)>>2]=h;if(o){h=g+s|0;c[(g&p)+8>>2]=h;kw(h|0,c[(d&p)+8>>2]|0,o|0)|0;h=c[(m&p)>>2]|0}k=c[(u&p)>>2]|0;do if(!((h|k)&16384)){h=d+20|0;if(!(k&2048)){c[(g&p)+20>>2]=Pr(b,c[(h&p)>>2]|0,t)|0;break}else{c[(g&p)+20>>2]=gr(b,c[(h&p)>>2]|0,t)|0;break}}while(0);h=c[(m&p)>>2]|0;if(!(h&24576)){if(c[(u&p)>>2]&16384)break;c[(g&p)+12>>2]=Mr(b,c[(d&p)+12>>2]|0,0,0)|0;c[(g&p)+16>>2]=Mr(b,c[(d&p)+16>>2]|0,0,0)|0;break}t=Tt(d,e)|0;c[(w&p)>>2]=(c[(w&p)>>2]|0)+t;if(h&8192){c[(g&p)+12>>2]=Mr(b,c[(d&p)+12>>2]|0,1,w)|0;c[(g&p)+16>>2]=Mr(b,c[(d&p)+16>>2]|0,1,w)|0}if(v)c[(f&p)>>2]=c[(w&p)>>2]}}else g=0;while(0);i=x;return g|0}function Nr(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;a:do if((b|0)!=0?(d=mh(a,8,0)|0,(d|0)!=0):0){g=b+4|0;c[(d&p)+4>>2]=c[(g&p)>>2];e=mh(a,c[(g&p)>>2]<<3,0)|0;c[(d&p)>>2]=e;if(!e){mg(a,d);d=0;break}if((c[(g&p)>>2]|0)>0){f=0;while(1){h=c[(b&p)>>2]|0;c[(e+(f<<3)&p)>>2]=kh(a,c[(h+(f<<3)&p)>>2]|0)|0;c[(e+(f<<3)&p)+4>>2]=c[(h+(f<<3)&p)+4>>2];f=f+1|0;if((f|0)>=(c[(g&p)>>2]|0))break a;e=c[(d&p)>>2]|0}}}else d=0;while(0);return d|0}function Or(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0;f=e+4|0;g=(c[(f&p)>>2]|0)+40|0;b=mh(b,g,0)|0;if(b){fw(b|0,0,g|0)|0;g=b+40|0;kw(g|0,c[(e&p)>>2]|0,c[(f&p)>>2]|0)|0;c[(b&p)+12>>2]=g;c[(b&p)+16>>2]=c[(f&p)>>2];a[(b&n)>>0]=d}return b|0}function Pr(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0;do if((d|0)!=0?(f=mh(b,8,0)|0,(f|0)!=0):0){g=c[(d&p)>>2]|0;c[(f&p)>>2]=g;if(!(e&1)){h=c[(d&p)>>2]|0;g=1;while(1)if((g|0)<(h|0))g=g<<1;else break}g=mh(b,g*20|0,0)|0;c[(f&p)+4>>2]=g;if(!g){mg(b,f);f=0;break}if((c[(d&p)>>2]|0)>0){i=0;h=c[(d&p)+4>>2]|0;while(1){c[(g&p)>>2]=Mr(b,c[(h&p)>>2]|0,e,0)|0;c[(g&p)+4>>2]=kh(b,c[(h&p)+4>>2]|0)|0;c[(g&p)+8>>2]=kh(b,c[(h&p)+8>>2]|0)|0;a[(g&n)+12>>0]=a[(h&n)+12>>0]|0;j=g+13|0;k=a[(j&n)>>0]|0;a[(j&n)>>0]=k&-2;a[(j&n)>>0]=a[(h&n)+13>>0]&2|k&-4;c[(g&p)+16>>2]=c[(h&p)+16>>2];i=i+1|0;if((i|0)>=(c[(d&p)>>2]|0))break;else{g=g+20|0;h=h+20|0}}}}else f=0;while(0);return f|0}function Qr(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0;o=i;i=i+16|0;if((i|0)>=(j|0))fa();k=o;l=c[(a&p)>>2]|0;f=c[(b&p)+20>>2]|0;a:do if(f){e=c[(l&p)+20>>2]|0;if((e|0)>0){d=c[(l&p)+16>>2]|0;h=0;while(1){g=h+1|0;if((c[(d+(h<<4)&p)+12>>2]|0)==(f|0)){g=h;break a}if((g|0)<(e|0))h=g;else break}}else g=0}else g=-1e6;while(0);d=bn((c[(b&p)+24>>2]|0)+8|0,c[(b&p)+4>>2]|0,k)|0;if(!d)f=0;else f=c[(d&p)+8>>2]|0;d=c[((c[(l&p)+16>>2]|0)+(g<<4)&p)>>2]|0;e=(g|0)==1;if((((Sq(a,e?14:16,c[(b&p)>>2]|0,c[(f&p)>>2]|0,d)|0)==0?(Sq(a,9,e?13184:13208,0,d)|0)==0:0)?(m=Oq(a)|0,(m|0)!=0):0)?(n=c[(a&p)+408>>2]|0,Ar(a,g),n=((n|0)==0?a:n)+328|0,c[(n&p)>>2]=c[(n&p)>>2]|1<>2]|0,0),xh(m,n+4|0,10720,-2),Dr(a,g),wh(m,61,0,0,0)|0,n=c[(b&p)>>2]|0,xh(m,wh(m,126,g,0,0)|0,n,0),n=a+72|0,(c[(n&p)>>2]|0)<3):0)c[(n&p)>>2]=3;i=o;return}function Rr(d,e,f,g,h,k,l){d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;var m=0,q=0,r=0,s=0,t=0,u=0,v=0;v=i;i=i+32|0;if((i|0)>=(j|0))fa();m=v;t=c[(d&p)>>2]|0;c[(m&p)>>2]=0;c[(m&p)+4>>2]=0;c[(m&p)+8>>2]=0;c[(m&p)+12>>2]=0;c[(m&p)+16>>2]=0;c[(m&p)+20>>2]=0;c[(m&p)+24>>2]=0;c[(m&p)+28>>2]=0;c[(m&p)>>2]=d;do if(h)if((a[(h&n)>>0]|0)!=27)if(!(ls(m,h)|0)){u=5;break}else{u=13;break}else{a[(h&n)>>0]=97;u=5;break}else u=5;while(0);a:do if((u|0)==5){do if(k)if((a[(k&n)>>0]|0)!=27)if(!(ls(m,k)|0))break;else{u=13;break a}else{a[(k&n)>>0]=97;break}while(0);do if(l)if((a[(l&n)>>0]|0)!=27)if(!(ls(m,l)|0))break;else{u=13;break a}else{a[(l&n)>>0]=97;break}while(0);if(g){if((a[(g&n)>>0]|0)==97)g=c[(g&p)+8>>2]|0;else g=0;if(Sq(d,e,g,0,0)|0)break}s=Oq(d)|0;m=d+60|0;g=c[(m&p)>>2]|0;q=d+56|0;r=c[(q&p)>>2]|0;if((r|0)<4){r=d+72|0;g=c[(r&p)>>2]|0;c[(r&p)>>2]=g+4;g=g+1|0}else{c[(m&p)>>2]=g+4;c[(q&p)>>2]=r+-4}Rq(d,h,g);Rq(d,k,g+1|0);Rq(d,l,g+2|0);if(s){g=g+3|0;wh(s,1,0,g-(b[(f&o)>>1]|0)|0,g)|0;g=c[(s&p)+4>>2]|0;if(g)a[(g+(((c[(s&p)+32>>2]|0)+-1|0)*20|0)&n)+3>>0]=b[(f&o)>>1];xh(s,-1,f,-5);wh(s,144,(e|0)==24&1,0,0)|0}}while(0);if((u|0)==13){f=d+64|0;c[(f&p)>>2]=(c[(f&p)>>2]|0)+1}Gk(t,h);Gk(t,k);Gk(t,l);i=v;return}function Sr(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0;m=i;i=i+16|0;if((i|0)>=(j|0))fa();l=m;g=m+4|0;h=c[(b&p)>>2]|0;a:do if(!(Gn(b)|0)){if(!d){Ut(b,0);break}if(!((e|0)!=0?(c[(e&p)>>2]|0)!=0:0))f=6;do if((f|0)==6){f=Wq(c[(b&p)>>2]|0,d)|0;if(!f)break a;if(!(Yn(h,a[(h&n)+62>>0]|0,f,0)|0)){mg(h,f);break}else{Ut(b,f);mg(h,f);break a}}while(0);d=er(b,d,e,g)|0;if((d|0)>=0?(k=Wq(h,c[(g&p)>>2]|0)|0,(k|0)!=0):0){e=c[((c[(h&p)+16>>2]|0)+(d<<4)&p)>>2]|0;f=_h(h,k,e)|0;if(f){Vt(b,f,0);mg(h,k);break}e=bq(h,k,e)|0;mg(h,k);if(!e){th(b,28872,l);break}else{f=c[(b&p)+408>>2]|0;Ar(b,d);f=((f|0)==0?b:f)+328|0;c[(f&p)>>2]=c[(f&p)>>2]|1<=(j|0))fa();f=h;g=c[(a&p)>>2]|0;if(!(Gn(a)|0)){do if(!b){b=g+20|0;e=c[(b&p)>>2]|0;if((e|0)>0){d=0;do{if((d|0)!=1){Wt(a,d);e=c[(b&p)>>2]|0}d=d+1|0}while((d|0)<(e|0))}}else{if(c[(d&p)+4>>2]|0){e=er(a,b,d,f)|0;if((e|0)<=-1)break;e=c[((c[(g&p)+16>>2]|0)+(e<<4)&p)>>2]|0;b=Wq(g,c[(f&p)>>2]|0)|0;if(!b)break;d=bq(g,b,e)|0;if(!d){e=sh(a,0,b,e)|0;if(e)Xt(a,e,0)}else Xt(a,c[(d&p)+12>>2]|0,d);mg(g,b);break}d=Wq(g,b)|0;e=Vh(g,d)|0;mg(g,d);if((e|0)>-1){Wt(a,e);break}d=Wq(g,b)|0;if(d){e=bq(g,d,0)|0;if(!e){e=sh(a,0,d,0)|0;if(e)Xt(a,e,0)}else Xt(a,c[(e&p)+12>>2]|0,e);mg(g,d)}}while(0);e=Oq(a)|0;if(e)wh(e,144,0,0,0)|0}i=h;return}function Ur(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,i=0;f=c[(d&p)>>2]|0;if(!f)e=d+4|0;else{i=c[(a&p)>>2]|0;g=c[(i&p)+20>>2]|0;i=c[(i&p)+16>>2]|0;a:do if((g|0)>0){h=0;while(1){e=h+1|0;if((c[(i+(h<<4)&p)+12>>2]|0)==(f|0)){e=h;break a}if((e|0)<(g|0))h=e;else break}}else e=0;while(0);e=i+(e<<4)|0}return sh(a,b,c[(d&p)+8>>2]|0,c[(e&p)>>2]|0)|0}function Vr(b,d){b=b|0;d=d|0;var e=0,f=0,g=0;g=i;i=i+16|0;if((i|0)>=(j|0))fa();f=g;if(d){e=d;while(1)if(!(a[(e&n)>>0]|0))break;else e=e+1|0;if((e-d&1073741823)>>>0>6?(Fc(d,25568,7)|0)==0:0){c[(f&p)>>2]=d;th(b,25576,f);e=1}else e=0}else e=0;i=g;return e|0}function Wr(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;f=i;i=i+16|0;if((i|0)>=(j|0))fa();e=f;if(!b){c[(e&p)>>2]=d;a=uh(a,25992,e)|0}else{c[(e&p)>>2]=b;c[(e&p)+4>>2]=d;e=uh(a,26e3,e)|0;mg(a,b);a=e}i=f;return a|0}function Xr(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;h=i;i=i+16|0;if((i|0)>=(j|0))fa();g=h;e=c[(a&p)>>2]|0;f=c[((c[(e&p)+16>>2]|0)&p)+28>>2]|0;if((c[(b&p)+68>>2]|0)!=(f|0)?(d=As(a,b)|0,(d|0)!=0):0){b=d;d=0;do{if((c[(b&p)+20>>2]|0)==(f|0))d=Wr(e,d,c[(b&p)>>2]|0)|0;b=c[(b&p)+32>>2]|0}while((b|0)!=0);if(d){b=c[(a&p)>>2]|0;c[(g&p)>>2]=d;b=uh(b,25968,g)|0;mg(c[(a&p)>>2]|0,d);d=b}else d=0}else d=0;i=h;return d|0}function Yr(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,q=0,r=0;r=i;i=i+16|0;if((i|0)>=(j|0))fa();n=r;o=Oq(a)|0;if(o){e=c[(a&p)>>2]|0;h=c[(b&p)+68>>2]|0;a:do if(h){k=c[(e&p)+20>>2]|0;if((k|0)>0){f=c[(e&p)+16>>2]|0;g=0;while(1){e=g+1|0;if((c[(f+(g<<4)&p)+12>>2]|0)==(h|0))break a;if((e|0)<(k|0))g=e;else{g=e;break}}}else g=0}else g=-1e6;while(0);e=As(a,b)|0;if(e)do{f=c[(a&p)>>2]|0;l=c[(e&p)+20>>2]|0;b:do if(l){m=c[(f&p)+20>>2]|0;if((m|0)>0){k=c[(f&p)+16>>2]|0;h=0;while(1){f=h+1|0;if((c[(k+(h<<4)&p)+12>>2]|0)==(l|0)){f=h;break b}if((f|0)<(m|0))h=f;else break}}else f=0}else f=-1e6;while(0);m=c[(e&p)>>2]|0;xh(o,wh(o,126,f,0,0)|0,m,0);e=c[(e&p)+32>>2]|0}while((e|0)!=0);e=c[(b&p)>>2]|0;xh(o,wh(o,124,g,0,0)|0,e,0);e=c[(a&p)>>2]|0;c[(n&p)>>2]=d;e=uh(e,25952,n)|0;if((e|0)!=0?(Ir(o,g,e),q=Xr(a,b)|0,(q|0)!=0):0)Ir(o,1,q)}i=r;return} function gh(f){f=f|0;var g=0,l=0,m=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,E=0,F=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ea=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,cc=0,dc=0,ec=0,fc=0,gc=0,hc=0,ic=0,kc=0,nc=0,oc=0,qc=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,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,Xc=0,Yc=0,Zc=0,_c=0,$c=0,ad=0,ed=0,fd=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,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,ee=0,fe=0,ge=0,he=0,ie=0,je=0,ke=0,le=0,me=0,ne=0,oe=0,pe=0,qe=0;oe=i;i=i+1040|0;if((i|0)>=(j|0))fa();ke=oe+400|0;Tc=oe+792|0;id=oe+392|0;ad=oe+788|0;Sd=oe+320|0;md=oe+784|0;pd=oe+780|0;qd=oe+280|0;Nd=oe+680|0;$c=oe+240|0;Qd=oe+200|0;_c=oe+676|0;Xc=oe+672|0;Od=oe+160|0;Uc=oe+644|0;td=oe+152|0;Jd=oe+112|0;kd=oe+640|0;Ld=oe+636|0;Yc=oe+632|0;ud=oe+628|0;Ad=oe+624|0;wd=oe+604|0;Bd=oe+600|0;od=oe+596|0;xd=oe+576|0;Sc=oe+840|0;Cd=oe+572|0;Pd=oe+104|0;Dd=oe+568|0;ed=oe+564|0;fd=oe+96|0;Rd=oe+88|0;Ed=oe+560|0;Fd=oe+556|0;Gd=oe+552|0;yd=oe+532|0;zd=oe+512|0;jd=oe+508|0;vd=oe+504|0;Zc=oe+488|0;Md=oe+48|0;Vc=oe+456|0;Rc=oe+444|0;Kd=oe+8|0;sd=oe+440|0;Id=oe+412|0;Hd=oe;zc=f+4|0;s=c[(zc&p)>>2]|0;le=c[(f&p)>>2]|0;Jc=a[(le&n)+62>>0]|0;Nc=f+8|0;z=c[(Nc&p)>>2]|0;ne=le+32|0;l=ne;m=c[(l&p)>>2]|0;l=c[(l&p)+4>>2]|0;me=f+80|0;a:do if((c[(me&p)>>2]|0)==7){y=le+65|0;z=f+44|0;r=m;g=0;t=0;m=0;ie=1317}else{c[(me&p)>>2]=0;de=f+136|0;c[(de&p)>>2]=0;c[(de&p)+4>>2]=0;de=f+20|0;c[(de&p)>>2]=0;c[(le&p)+452>>2]=0;Cc=le+240|0;b:do if(!(c[(Cc&p)>>2]|0)){be=le+292|0;if(c[(be&p)>>2]|0){r=c[(f&p)+124>>2]|0;g=le+300|0;y=c[(g&p)>>2]|0;if(!r)yc=g;else{yc=g;y=(r>>>0)%(y>>>0)|0}}else{yc=le+300|0;y=0}he=f+76|0;ge=le+65|0;Zd=le+296|0;sb=f+176|0;tb=f+184|0;ub=f+92|0;vb=le+80|0;wb=le+84|0;xb=Jc&255;yb=Jc<<24>>24==1;zb=le+88|0;Ab=f+60|0;_d=f+144|0;fe=f+86|0;je=f+44|0;Bb=f+12|0;Cb=Uc+4|0;Db=Uc+16|0;Eb=Uc+12|0;Fb=Uc+25|0;Gb=Uc+20|0;Hb=f+200|0;Ib=f+56|0;$d=f+72|0;Jb=Jd+16|0;Kb=Jd+8|0;Lb=Jd+24|0;Mb=f+87|0;ae=le+156|0;Nb=le+500|0;Ob=le+496|0;ee=le+63|0;Pb=le+488|0;Qb=le+504|0;Rb=le+512|0;Sb=le+70|0;Tb=le+24|0;Ub=le+20|0;Xd=le+16|0;Vb=le+4|0;Yd=f+88|0;Wb=f+104|0;Xb=f+152|0;Yb=f+160|0;Zb=le+152|0;_b=le+64|0;$b=wd+4|0;cc=wd+6|0;dc=wd+8|0;ec=xd+4|0;fc=xd+8|0;gc=le+212|0;hc=le+208|0;ic=f+116|0;kc=yd+4|0;nc=yd+6|0;oc=yd+8|0;qc=$c+8|0;sc=$c+32|0;uc=$c+24|0;vc=$c+16|0;wc=$c+12|0;xc=zd+4|0;Y=zd+6|0;Z=zd+8|0;_=qd+8|0;$=qd+32|0;aa=qd+24|0;ea=qd+12|0;ga=qd+16|0;ha=le+164|0;ia=Zc+8|0;ja=Zc+4|0;ka=le+145|0;la=Zc+12|0;ma=Sd+4|0;na=Sd+12|0;oa=Sd+16|0;pa=Sd+20|0;qa=Sd+24|0;ra=Sd+28|0;sa=Sd+8|0;ta=Sd+40|0;ua=Sd+44|0;va=Sd+48|0;wa=Sd+52|0;xa=Sd+56|0;ya=Sd+60|0;za=Sd+64|0;Aa=Sd+65|0;Ba=le+128|0;Ca=f+28|0;Da=f+36|0;Ea=f+32|0;Fa=f+196|0;Ga=Vc+4|0;Ha=Vc+8|0;Ia=Md+8|0;Ja=Md+32|0;Ka=Md+24|0;La=Vc+20|0;Ma=Vc+12|0;Na=Vc+16|0;Oa=Vc+24|0;Pa=Rc+8|0;Qa=Rc+4|0;Ra=le+148|0;Sa=le+176|0;Ta=le+72|0;Ua=le+67|0;Va=Tc+20|0;Wa=Tc+24|0;Xa=Tc+4|0;Ya=Tc+16|0;Za=le+304|0;_a=le+328|0;$a=Kd+32|0;ab=Kd+8|0;bb=Kd+24|0;cb=le+308|0;db=Id+20|0;eb=le+69|0;ce=f+168|0;fb=qd+4|0;gb=qd+8|0;hb=qd+12|0;ib=qd+16|0;jb=qd+20|0;kb=qd+24|0;lb=qd+25|0;mb=le+180|0;nb=Od+32|0;ob=Od+8|0;pb=Od+12|0;qb=Od+16|0;rb=Od+24|0;W=0;X=0;g=0;u=0;t=c[(he&p)>>2]|0;x=0;c:while(1){r=m;d:while(1){if(a[(ge&n)>>0]|0){y=ge;z=je;m=x;ie=1317;break a}m=g+1|0;if(!(a[(s+(t*20|0)&n)+2>>0]&2))L=u;else{u=c[(s+(t*20|0)&p)+8>>2]|0;g=z+(u*40|0)|0;u=z+(u*40|0)+8|0;if(b[(u&o)>>1]&9312)vg(g);b[(u&o)>>1]=4;L=g}C=s+(t*20|0)|0;J=a[(C&n)>>0]|0;u=J&255;e:do switch(u|0){case 17:{g=m;m=r;u=L;ie=22;break d}case 18:{g=m;m=r;u=L;ie=23;break d}case 20:{g=m;m=r;ie=24;break d}case 21:{g=m;m=r;u=L;ie=25;break d}case 22:{g=m;m=r;u=L;ie=26;break d}case 23:{g=m;m=r;u=L;r=t;ie=27;break d}case 29:{g=m;m=r;r=t;ie=65;break d}case 30:{g=m;m=r;u=L;r=t;ie=66;break d}case 28:{g=m;m=r;u=L;r=t;ie=60;break d}case 32:{g=m;m=r;r=t;ie=72;break d}case 24:{g=m;m=r;u=L;r=t;ie=28;break d}case 25:{g=m;m=r;u=L;r=t;ie=44;break d}case 26:{g=m;m=r;u=L;r=t;ie=45;break d}case 133:{g=m;m=r;u=L;r=t;ie=46;break d}case 97:{a[(C&n)>>0]=27;C=s+(t*20|0)+16|0;v=c[(C&p)>>2]|0;if(!v)g=0;else{g=v;while(1)if(!(a[(g&n)>>0]|0))break;else g=g+1|0;g=g-v&1073741823}w=s+(t*20|0)+4|0;c[(w&p)>>2]=g;if(yb)u=0;else{u=Xg(L,v,-1,1,0)|0;if((u|0)==18){g=m;m=r;u=x;ie=1316;break c}if(Yl(L,xb)|0){y=ge;z=je;g=m;m=x;ie=1317;break a}c[(L&p)+24>>2]=0;g=L+8|0;b[(g&o)>>1]=e[(g&o)>>1]|2048;g=s+(t*20|0)+1|0;if((a[(g&n)>>0]|0)==-1)mg(le,c[(C&p)>>2]|0);a[(g&n)>>0]=-1;v=c[(L&p)+16>>2]|0;c[(C&p)>>2]=v;g=c[(L&p)+12>>2]|0;c[(w&p)>>2]=g}if((g|0)>(c[(zb&p)>>2]|0)){g=m;m=r;u=x;ie=1316;break c}else ie=57;break}case 31:{g=m;m=r;u=L;r=t;ie=67;break d}case 34:{g=m;m=r;r=t;ie=79;break d}case 35:{g=m;m=r;u=x;ie=80;break c}case 33:{g=m;m=r;ie=74;break d}case 94:{g=m;m=r;ie=94;break d}case 93:case 92:case 91:case 90:case 89:{g=m;P=C;m=r;r=t;ie=112;break d}case 27:{v=c[(s+(t*20|0)&p)+16>>2]|0;g=c[(s+(t*20|0)&p)+4>>2]|0;u=0;ie=57;break}case 16:{t=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;u=0;ie=19;break}case 36:{g=m;m=r;J=L;r=t;ie=166;break d}case 1:{V=a[(s+(t*20|0)&n)+3>>0]|0;C=V&255;A=c[(Bb&p)>>2]|0;g=z+((c[(s+(t*20|0)&p)+12>>2]|0)*40|0)|0;c[(Uc&p)>>2]=g;if(V<<24>>24){g=0;u=z+((c[(s+(t*20|0)&p)+8>>2]|0)*40|0)|0;while(1){c[(A+(g<<2)&p)>>2]=u;if((b[(u&o)+8>>1]&4096)!=0?(Vl(u)|0)!=0:0){y=ge;z=je;g=m;m=x;ie=1317;break a}g=g+1|0;if((g|0)>=(C|0))break;else u=u+40|0}g=c[(Uc&p)>>2]|0}V=c[(s+(t*20|0)&p)+16>>2]|0;c[(Cb&p)>>2]=V;c[(Db&p)>>2]=t;c[(Eb&p)>>2]=f;U=g+8|0;b[(U&o)>>1]=e[(U&o)>>1]&48640|1;a[(Fb&n)>>0]=0;U=ne;c[(U&p)>>2]=r;c[(U&p)+4>>2]=l;mc[c[(V&p)+12>>2]&63](Uc,C,A);l=ne;r=c[(l&p)>>2]|0;l=c[(l&p)+4>>2]|0;if(!(a[(Fb&n)>>0]|0))g=0;else{if(!(c[(Gb&p)>>2]|0))g=0;else{c[(ke&p)>>2]=Sg(c[(Uc&p)>>2]|0,1)|0;dh(je,le,10344,ke);g=c[(Gb&p)>>2]|0}em(f,t,c[(s+(t*20|0)&p)+4>>2]|0)}Yl(c[(Uc&p)>>2]|0,xb)|0;w=c[(Uc&p)>>2]|0;v=e[(w&o)+8>>1]|0;if(v&18){u=c[(w&p)+12>>2]|0;if(v&16384)u=(c[(w&p)>>2]|0)+u|0;if((u|0)>(c[((c[(w&p)+32>>2]|0)&p)+88>>2]|0)){g=m;m=r;u=x;ie=1316;break c}else{C=L;T=t;u=g}}else{C=L;T=t;u=g}break}case 88:case 87:case 86:case 85:{g=m;H=C;m=r;r=t;ie=184;break d}case 39:{g=m;m=r;J=L;r=t;ie=208;break d}case 37:{g=m;m=r;u=L;r=t;ie=202;break d}case 38:{g=m;m=r;J=L;r=t;ie=203;break d}case 83:case 80:case 81:case 82:case 78:case 79:{g=m;I=J;m=r;u=L;ie=213;break d}case 40:{V=c[(s+(t*20|0)&p)+4>>2]|0;g=z+(V*40|0)|0;if(!(b[(z+(V*40|0)&o)+8>>1]&16384))u=0;else u=Rg(g)|0;gm(g,c[(s+(t*20|0)&p)+8>>2]&255,Jc);C=L;T=t;break}case 41:{g=m;m=r;u=L;r=t;ie=248;break d}case 42:{g=m;m=r;u=L;r=t;ie=249;break d}case 43:{g=m;m=r;u=L;ie=256;break d}case 71:case 72:{g=m;m=r;r=t;ie=261;break d}case 76:{g=m;m=r;u=L;r=t;ie=286;break d}case 19:{g=m;m=r;r=t;ie=268;break d}case 96:{g=m;m=r;r=t;ie=273;break d}case 44:{g=m;m=r;u=L;r=t;ie=278;break d}case 46:case 45:{g=m;m=r;u=L;r=t;ie=281;break d}case 77:{g=m;m=r;u=L;r=t;ie=288;break d}case 47:{g=m;m=r;u=L;ie=290;break d}case 48:{g=m;m=r;u=L;r=t;ie=368;break d}case 49:{g=m;m=r;ie=371;break d}case 50:{E=c[(c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]&p)>>2]|0;f:do if(c[(E&p)+60>>2]|0){g=qm(E)|0;if(!g){K=E+76|0;H=E+44|0;F=E+72|0;v=0;u=0;g:while(1){C=b[(K&o)>>1]|0;J=c[(E+(C<<16>>16<<2)&p)+120>>2]|0;if(!(a[(J&n)+5>>0]|0)){if(!(a[(J&n)+2>>0]|0)){v=jw(e[(J&o)+18>>1]|0,0,v|0,u|0)|0;u=G}}else{v=jw(e[(J&o)+18>>1]|0,0,v|0,u|0)|0;u=G;while(1){if(!(C<<16>>16))break g;if(J){Bg(c[(J&p)+68>>2]|0);C=b[(K&o)>>1]|0}C=C+-1<<16>>16;b[(K&o)>>1]=C;b[(H&o)>>1]=0;a[(F&n)>>0]=d[(F&n)>>0]&249;J=C<<16>>16;A=E+(J<<1)+78|0;I=b[(A&o)>>1]|0;J=c[(E+(J<<2)&p)+120>>2]|0;if((I&65535)<(e[(J&o)+18>>1]|0)){C=I;break}}b[(A&o)>>1]=C+1<<16>>16;J=b[(K&o)>>1]|0;C=J;J=c[(E+(J<<16>>16<<2)&p)+120>>2]|0}C=b[(E+(C<<16>>16<<1)&o)+78>>1]|0;A=c[(J&p)+56>>2]|0;if(C<<16>>16==(b[(J&o)+18>>1]|0)){g=d[(J&n)+6>>0]|0;g=rm(E,d[(A+g&n)+9>>0]<<16|d[(A+g&n)+8>>0]<<24|d[(A+g&n)+10>>0]<<8|d[(A+g&n)+11>>0])|0}else{g=(C&65535)<<1;V=c[(J&p)+64>>2]|0;g=(d[(V+g&n)>>0]<<8|d[(V+(g|1)&n)>>0])&e[(J&o)+20>>1];g=rm(E,d[(A+g&n)+1>>0]<<16|d[(A+g&n)>>0]<<24|d[(A+g&n)+2>>0]<<8|d[(A+g&n)+3>>0])|0}if(g){v=0;u=0;break f}}g=qm(E)|0}else{v=0;u=0}}else{g=0;v=0;u=0}while(0);C=L;c[(C&p)>>2]=v;c[(C&p)+4>>2]=u;C=L;T=t;u=g;break}case 2:{O=c[(s+(t*20|0)&p)+4>>2]|0;v=c[(s+(t*20|0)&p)+16>>2]|0;if(!O){g=m;m=r;r=t;ie=446;break d}g=c[(Pb&p)>>2]|0;if(!g){s=v;g=m;m=r;u=x;ie=460;break c}else u=0;while(1){if(!(dd(c[(g&p)>>2]|0,v)|0)){M=g;break}g=c[(g&p)+24>>2]|0;if(!g){s=v;g=m;m=r;u=x;ie=460;break c}else u=u+1|0}H=(O|0)==1;if((c[(ae&p)>>2]|0)>0&H){g=m;m=r;u=x;ie=462;break c}F=M+24|0;if(!(c[(F&p)>>2]|0)){A=(a[(Sb&n)>>0]|0)!=0;if(A&H){g=tm(f,1)|0;if(g)break a;a[(ee&n)>>0]=1;if((Rl(f)|0)==5){g=t;ie=467;break c}a[(Sb&n)>>0]=0;A=1;K=u;u=c[(me&p)>>2]|0}else ie=469}else{A=0;ie=469}if((ie|0)==469){ie=0;K=(c[(Ob&p)>>2]|0)-u+-1|0;if((O|0)==2){C=(c[(Tb&p)>>2]|0)>>>1&1;if((c[(Ub&p)>>2]|0)>0){J=C^1;I=0;while(1){u=Il(c[((c[(Xd&p)>>2]|0)+(I<<4)&p)+4>>2]|0,516,J)|0;I=I+1|0;if(u){g=m;m=r;ie=1318;break c}g=c[(Ub&p)>>2]|0;if((I|0)>=(g|0)){ie=475;break}}}}else{g=c[(Ub&p)>>2]|0;C=0;ie=475}if((ie|0)==475){ie=0;if((g|0)>0){E=0;do{u=um(c[((c[(Xd&p)>>2]|0)+(E<<4)&p)+4>>2]|0,O,K)|0;E=E+1|0;if(u){g=m;m=r;ie=1318;break c}}while((E|0)<(c[(Ub&p)>>2]|0))}}if(!C)u=0;else{C=c[(Vb&p)>>2]|0;if(C)do{V=C+88|0;b[(V&o)>>1]=b[(V&o)>>1]|8;C=c[(C&p)+52>>2]|0}while((C|0)!=0);Eg(le);c[(Tb&p)>>2]=c[(Tb&p)>>2]|2;u=0}}C=c[(Pb&p)>>2]|0;if((C|0)!=(M|0))do{c[(Pb&p)>>2]=c[(C&p)+24>>2];mg(le,C);c[(Ob&p)>>2]=(c[(Ob&p)>>2]|0)+-1;C=c[(Pb&p)>>2]|0}while((C|0)!=(M|0));if(H){c[(Pb&p)>>2]=c[(F&p)>>2];mg(le,M);if(A){C=L;T=t;break e}else{g=m;C=O;m=r;A=K;E=L;r=t;ie=486;break d}}else{V=M+8|0;U=c[(V&p)+4>>2]|0;T=Qb;c[(T&p)>>2]=c[(V&p)>>2];c[(T&p)+4>>2]=U;T=M+16|0;U=c[(T&p)+4>>2]|0;V=Rb;c[(V&p)>>2]=c[(T&p)>>2];c[(V&p)+4>>2]=U;if(A){C=L;T=t;break e}else{C=O;g=m;m=r;A=K;E=L;r=t;ie=488;break d}}}case 3:{u=x;ie=489;break c}case 4:{v=s+(t*20|0)+8|0;g=c[(v&p)>>2]|0;if((g|0)!=0?(c[(Tb&p)>>2]&33554432|0)!=0:0){g=m;m=r;u=8;ie=1318;break c}I=s+(t*20|0)+4|0;J=c[((c[(Xd&p)>>2]|0)+(c[(I&p)>>2]<<4)&p)+4>>2]|0;if(!J){v=0;u=0;g=0}else{u=yg(J,g)|0;if((u|0)==5){g=t;ie=508;break c}else if(u){g=m;m=r;ie=1318;break c}do if((c[(v&p)>>2]|0)!=0?(b[(Yd&o)>>1]&32)!=0:0){if((a[(ee&n)>>0]|0)!=0?(c[(Zb&p)>>2]|0)<=1:0){g=0;break}g=c[(Wb&p)>>2]|0;if(!g){g=(c[(Nb&p)>>2]|0)+1|0;c[(Nb&p)>>2]=g;g=(c[(Ob&p)>>2]|0)+g|0;c[(Wb&p)>>2]=g}g=sm(le,0,g+-1|0)|0;if(!g){g=c[(Wb&p)>>2]|0;V=c[(J&p)+4>>2]|0;c[(V&p)+4>>2]=c[(J&p)>>2];g=hl(c[(V&p)>>2]|0,g)|0}V=Qb;U=c[(V&p)+4>>2]|0;T=Xb;c[(T&p)>>2]=c[(V&p)>>2];c[(T&p)+4>>2]=U;T=Rb;U=c[(T&p)+4>>2]|0;V=Yb;c[(V&p)>>2]=c[(T&p)>>2];c[(V&p)+4>>2]=U}else g=0;while(0);v=c[(J&p)+4>>2]|0;c[(v&p)+4>>2]=c[(J&p)>>2];v=c[((c[(v&p)+12>>2]|0)&p)+56>>2]|0;v=d[(v&n)+41>>0]<<16|d[(v&n)+40>>0]<<24|d[(v&n)+42>>0]<<8|d[(v&n)+43>>0];u=c[((c[((c[(Xd&p)>>2]|0)+(c[(I&p)>>2]<<4)&p)+12>>2]|0)&p)+4>>2]|0}if(a[(s+(t*20|0)&n)+3>>0]|0){if((v|0)!=(c[(s+(t*20|0)&p)+12>>2]|0)){g=m;s=I;m=r;u=x;ie=522;break c}if((u|0)!=(c[(s+(t*20|0)&p)+16>>2]|0)){g=m;s=I;m=r;u=x;ie=522;break c}else{C=L;T=t;u=g}}else{C=L;T=t;u=g}break}case 53:{g=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;if((g|0)!=0?(c[(g&p)+28>>2]|0)==(c[(s+(t*20|0)&p)+8>>2]|0):0){v=s+(t*20|0)+3|0;u=0;ie=548}else ie=536;break}case 51:{g=m;m=r;u=L;r=t;ie=525;break d}case 52:{A=s+(t*20|0)+4|0;g=c[(A&p)>>2]|0;v=c[(Xd&p)>>2]|0;C=c[(s+(t*20|0)&p)+12>>2]|0;w=z+(C*40|0)|0;u=Vg(w)|0;V=w;c[(V&p)>>2]=u;c[(V&p)+4>>2]=G;C=z+(C*40|0)+8|0;b[(C&o)>>1]=e[(C&o)>>1]&48640|4;C=s+(t*20|0)+8|0;u=Dg(c[(v+(g<<4)&p)+4>>2]|0,c[(C&p)>>2]|0,u)|0;C=c[(C&p)>>2]|0;if((C|0)==1){c[(c[(v+(g<<4)&p)+12>>2]&p)>>2]=c[(w&p)>>2];c[(Tb&p)>>2]=c[(Tb&p)>>2]|2}else if((C|0)==2)a[((c[(v+(g<<4)&p)+12>>2]|0)&n)+76>>0]=c[(w&p)>>2];if((c[(A&p)>>2]|0)==1){g=c[(Vb&p)>>2]|0;if(g)do{V=g+88|0;b[(V&o)>>1]=b[(V&o)>>1]|8;g=c[(g&p)+52>>2]|0}while((g|0)!=0);b[(Yd&o)>>1]=b[(Yd&o)>>1]&-9;C=L;T=t}else{C=L;T=t}break}case 55:case 54:{ie=536;break}case 57:case 56:{g=xm(f,c[(s+(t*20|0)&p)+4>>2]|0,c[(s+(t*20|0)&p)+8>>2]|0,-1,1)|0;if(!g){y=ge;z=je;g=m;m=x;ie=1317;break a}a[(g&n)+25>>0]=1;J=g+27|0;a[(J&n)>>0]=a[(J&n)>>0]|1;v=g+4|0;I=s+(t*20|0)+3|0;u=zm(c[(le&p)>>2]|0,0,le,v,d[(I&n)>>0]|5,1054)|0;do if(!u){u=yg(c[(v&p)>>2]|0,1)|0;if(!u){A=c[(s+(t*20|0)&p)+16>>2]|0;C=c[(v&p)>>2]|0;if(!A){u=ym(C,1,1,0,c[(g&p)>>2]|0)|0;a[(J&n)>>0]=a[(J&n)>>0]|4;break}u=Am(C,ud,d[(I&n)>>0]|2)|0;if(!u){c[(g&p)+8>>2]=A;u=ym(c[(v&p)>>2]|0,c[(ud&p)>>2]|0,1,A,c[(g&p)>>2]|0)|0}a[(J&n)>>0]=a[(J&n)>>0]&-5}}while(0);a[(J&n)>>0]=((a[(I&n)>>0]|0)!=8&1)<<3&255|a[(J&n)>>0]&-9;C=L;T=t;break}case 58:{g=m;m=r;ie=558;break d}case 60:{g=m;m=r;u=L;ie=568;break d}case 61:{g=m;m=r;u=L;r=t;ie=570;break d}case 59:{g=m;m=r;u=L;r=t;ie=566;break d}case 65:case 64:case 63:case 62:{g=m;K=u;m=r;r=t;ie=571;break d}case 66:{g=m;m=r;u=L;r=t;ie=596;break d}case 69:case 68:case 67:{g=m;H=C;m=r;u=L;ie=597;break d}case 73:{g=m;m=r;u=L;r=t;ie=624;break d}case 70:{V=c[(s+(t*20|0)&p)+12>>2]|0;g=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;u=c[(g&p)>>2]|0;c[(Cd&p)>>2]=0;V=z+(V*40|0)|0;U=c[(V&p)>>2]|0;V=c[(V&p)+4>>2]|0;u=Cm(u,0,U,V,0,Cd)|0;v=g+48|0;c[(v&p)>>2]=U;c[(v&p)+4>>2]=V;a[(g&n)+25>>0]=0;c[(g&p)+60>>2]=0;a[(g&n)+26>>0]=0;v=c[(Cd&p)>>2]|0;if(v)t=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;c[(g&p)+12>>2]=v;C=L;T=t;break}case 74:{H=Pd;c[(H&p)>>2]=0;c[(H&p)+4>>2]=0;c[(Dd&p)>>2]=0;H=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;g=c[(H&p)>>2]|0;if(!g){u=0;v=0;g=0}else{K=H+27|0;do if(!(a[(K&n)>>0]&2)){u=Hm(g,Dd)|0;if(u){g=m;m=r;ie=1318;break c}if(c[(Dd&p)>>2]|0){V=Pd;c[(V&p)>>2]=1;c[(V&p)+4>>2]=0;break}km(c[(H&p)>>2]|0,Pd);u=Pd;g=c[(u&p)>>2]|0;u=c[(u&p)+4>>2]|0;if((g|0)==-1&(u|0)==2147483647){a[(K&n)>>0]=a[(K&n)>>0]|2;break}else{U=jw(g|0,u|0,1,0)|0;V=Pd;c[(V&p)>>2]=U;c[(V&p)+4>>2]=G;break}}while(0);J=c[(s+(t*20|0)&p)+12>>2]|0;if(J){g=c[(sb&p)>>2]|0;if(!g)C=z;else{while(1){u=c[(g&p)+4>>2]|0;if(!u)break;else g=u}C=c[(g&p)+16>>2]|0}I=C+(J*40|0)|0;A=Vg(I)|0;g=G;V=I;c[(V&p)>>2]=A;c[(V&p)+4>>2]=g;V=C+(J*40|0)+8|0;b[(V&o)>>1]=e[(V&o)>>1]&48640|4;if((A|0)==-1&(g|0)==2147483647){g=m;m=r;u=13;ie=1318;break c}if(a[(K&n)>>0]&2){g=m;m=r;u=13;ie=1318;break c}J=Pd;u=c[(J&p)>>2]|0;J=c[(J&p)+4>>2]|0;C=jw(A|0,g|0,1,0)|0;g=G;if((J|0)<(g|0)|(J|0)==(g|0)&u>>>0>>0){V=Pd;c[(V&p)>>2]=C;c[(V&p)+4>>2]=g}else{C=u;g=J}V=I;c[(V&p)>>2]=C;c[(V&p)+4>>2]=g}h:do if(!(a[(K&n)>>0]&2))g=0;else{u=0;while(1){cd(8,Pd);V=Pd;V=jw(c[(V&p)>>2]|0,c[(V&p)+4>>2]&1073741823|0,1,0)|0;g=G;U=Pd;c[(U&p)>>2]=V;c[(U&p)+4>>2]=g;g=Cm(c[(H&p)>>2]|0,0,V,g,0,Dd)|0;if(c[(Dd&p)>>2]|g)break h;u=u+1|0;if((u|0)>=100){g=m;m=r;u=13;ie=1318;break c}}}while(0);a[(H&n)+26>>0]=0;c[(H&p)+60>>2]=0;v=Pd;u=c[(v&p)>>2]|0;v=c[(v&p)+4>>2]|0}C=L;c[(C&p)>>2]=u;c[(C&p)+4>>2]=v;C=L;T=t;u=g;break}case 84:case 75:{g=m;C=J;m=r;u=L;r=t;ie=647;break d}case 95:{g=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;u=Jm(c[(g&p)>>2]|0)|0;c[(g&p)+60>>2]=0;if((((u|0)==0?(Gc=c[(gc&p)>>2]|0,(Gc|0)!=0):0)?(Hc=c[(s+(t*20|0)&p)+16>>2]|0,(Hc|0)!=0):0)?(a[(g&n)+27>>0]&4)!=0:0){V=g+48|0;bc[Gc&1](c[(hc&p)>>2]|0,9,c[((c[(Xd&p)>>2]|0)+(a[(g&n)+24>>0]<<4)&p)>>2]|0,Hc,c[(V&p)>>2]|0,c[(V&p)+4>>2]|0)}if(!(c[(s+(t*20|0)&p)+8>>2]&1)){C=L;T=t}else{c[(ub&p)>>2]=(c[(ub&p)>>2]|0)+1;C=L;T=t}break}case 98:{g=m;m=r;u=L;r=t;ie=671;break d}case 99:{g=m;m=r;u=L;r=t;ie=672;break d}case 100:{v=c[(s+(t*20|0)&p)+8>>2]|0;C=z+(v*40|0)|0;g=c[((c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0)&p)+56>>2]|0;if(!(a[(g&n)+56>>0]|0)){u=c[(g&p)+36>>2]|0;g=u;u=u+8|0}else{V=c[(g&p)+20>>2]|0;u=c[((c[(V&p)+8>>2]|0)&p)+4>>2]|0;V=c[(V&p)+12>>2]|0;g=V+(u*56|0)+20|0;u=c[(V+(u*56|0)&p)+32>>2]|0}g=c[(g&p)>>2]|0;if(!(fh(C,g)|0)){c[(z+(v*40|0)&p)+12>>2]=g;V=z+(v*40|0)+8|0;b[(V&o)>>1]=e[(V&o)>>1]&48640|16;kw(c[(z+(v*40|0)&p)+16>>2]|0,u|0,g|0)|0;u=0}else u=7;c[((c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+12>>2]<<2)&p)>>2]|0)&p)+60>>2]=0;T=t;break}case 102:case 101:{v=c[(s+(t*20|0)&p)+8>>2]|0;J=z+(v*40|0)|0;A=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;C=c[(A&p)>>2]|0;A=A+27|0;if(a[(A&n)>>0]&4){lm(C,ed);g=c[(ed&p)>>2]|0;if(g>>>0>(c[(zb&p)>>2]|0)>>>0){g=m;m=r;u=x;ie=1316;break c}}else{km(C,fd);T=fd;g=c[(T&p)>>2]|0;T=c[(T&p)+4>>2]|0;V=c[(zb&p)>>2]|0;U=((V|0)<0)<<31>>31;if((T|0)>(U|0)|(T|0)==(U|0)&g>>>0>V>>>0){g=m;m=r;u=x;ie=1316;break c}c[(ed&p)>>2]=g}if(fh(J,g>>>0>32?g:32)|0){y=ge;z=je;g=m;m=x;ie=1317;break a}c[(z+(v*40|0)&p)+12>>2]=g;g=z+(v*40|0)+8|0;b[(g&o)>>1]=e[(g&o)>>1]&48640|16;g=c[(ed&p)>>2]|0;u=c[(z+(v*40|0)&p)+16>>2]|0;if(!(a[(A&n)>>0]&4))u=Lm(C,0,g,u,0)|0;else u=Dh(C,0,g,u)|0;a[(z+(v*40|0)&n)+10>>0]=1;C=J;T=t;break}case 103:{v=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;w=v+25|0;if(a[(w&n)>>0]|0){g=m;m=r;u=L;r=t;ie=700;break d}do if(!(a[(v&n)+26>>0]|0)){g=c[(v&p)+32>>2]|0;if(g){V=c[(g&p)>>2]|0;u=rc[c[((c[(V&p)>>2]|0)&p)+48>>2]&127](g,Rd)|0;Mm(f,V);break}if((a[((c[(v&p)>>2]|0)&n)+73>>0]|0)!=1){u=jm(v)|0;if(u){g=m;m=r;ie=1318;break c}if(a[(w&n)>>0]|0){g=m;m=r;u=L;r=t;ie=708;break d}}km(c[(v&p)>>2]|0,Rd);u=0}else{U=v+48|0;V=c[(U&p)+4>>2]|0;u=Rd;c[(u&p)>>2]=c[(U&p)>>2];c[(u&p)+4>>2]=V;u=0}while(0);V=Rd;T=c[(V&p)+4>>2]|0;C=L;c[(C&p)>>2]=c[(V&p)>>2];c[(C&p)+4>>2]=T;C=L;T=t;break}case 108:{ie=715;break}case 104:{g=m;m=r;u=L;r=t;ie=711;break d}case 107:case 106:{c[(ic&p)>>2]=(c[(ic&p)>>2]|0)+1;ie=715;break}case 105:{T=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;u=c[(T&p)>>2]|0;c[(Ed&p)>>2]=0;u=Hm(u,Ed)|0;V=c[(Ed&p)>>2]|0;a[(T&n)+25>>0]=V;a[(T&n)+26>>0]=0;c[(T&p)+60>>2]=0;T=c[(s+(t*20|0)&p)+8>>2]|0;C=L;T=(T|0)>0&(V|0)!=0?T+-1|0:t;break}case 7:case 6:{if(!(c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0)){g=m;m=r;S=z;T=s;U=W;V=X;u=L;r=t;break d}else ie=765;break}case 5:{g=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;c[(Fd&p)>>2]=0;w=c[(g&p)+56>>2]|0;if(a[(w&n)+56>>0]|0){u=Wm(c[(w&p)+20>>2]|0,Fd)|0;ie=766;break e}u=w+36|0;v=c[(u&p)>>2]|0;V=v+4|0;c[(u&p)>>2]=c[(V&p)>>2];c[(V&p)>>2]=0;if(!((c[(w&p)+40>>2]|0)!=0|(v|0)==0))mg(le,v);c[(Fd&p)>>2]=(c[(u&p)>>2]|0)==0&1;u=0;ie=766;break}case 9:case 8:{ie=765;break}case 110:case 109:{A=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;S=c[(s+(t*20|0)&p)+8>>2]|0;u=c[(A&p)>>2]|0;C=s+(t*20|0)+3|0;if(a[(C&n)>>0]&1)c[(ub&p)>>2]=(c[(ub&p)>>2]|0)+1;if((b[(z+(S*40|0)&o)+8>>1]&16384)!=0?(Ud=Rg(z+(S*40|0)|0)|0,(Ud|0)!=0):0){g=m;m=r;s=Ud;u=x;ie=1309;break c}H=c[(A&p)+56>>2]|0;T=z+(S*40|0)+12|0;P=c[(T&p)>>2]|0;if(!H){if(!(a[(C&n)>>0]&16))g=0;else g=c[(A&p)+12>>2]|0;u=Im(u,c[(z+(S*40|0)&p)+16>>2]|0,P,((P|0)<0)<<31>>31,10360,0,0,c[(s+(t*20|0)&p)+12>>2]|0,g)|0;c[(A&p)+60>>2]=0;C=L;T=t;break e}C=P;g=((P|0)<0)<<31>>31;A=0;do{A=A+1|0;C=mw(C|0,g|0,7)|0;g=G}while(((C|0)!=0|(g|0)!=0)&(A|0)<9);K=P+8|0;I=A+P|0;M=H+4|0;A=c[(M&p)>>2]|0;do if(!A)u=0;else{if(!(c[(H&p)+40>>2]|0)){C=H+44|0;V=c[(C&p)>>2]|0;if((V|0)<=(A|0)?!((c[2265]|0)!=0?(V|0)>(c[(H&p)>>2]|0):0):0){u=0;break}}else{V=c[(H&p)+48>>2]|0;if(!((V|0)!=0&(V+K|0)>(A|0))){u=0;break}C=H+44|0}u=Om(H)|0;c[(C&p)>>2]=0;c[(H&p)+48>>2]=0}while(0);C=H+36|0;J=H+44|0;c[(J&p)>>2]=(c[(J&p)>>2]|0)+I;J=H+8|0;if((I|0)>(c[(J&p)>>2]|0))c[(J&p)>>2]=I;E=H+40|0;J=c[(E&p)>>2]|0;if(!J){g=qg(K,((K|0)<0)<<31>>31)|0;if(!g){g=m;m=r;s=7;u=x;ie=1309;break c}c[(g&p)+4>>2]=c[(C&p)>>2]}else{g=H+48|0;I=c[(g&p)>>2]|0;K=I+K|0;F=H+52|0;H=c[(F&p)>>2]|0;if((K|0)>(H|0)){I=H;do I=I<<1;while((I|0)<(K|0));V=c[(M&p)>>2]|0;I=(I|0)>(V|0)?V:I;I=(I|0)<(K|0)?K:I;J=rg(J,I,((I|0)<0)<<31>>31)|0;if(!J){g=m;m=r;s=7;u=x;ie=1309;break c}A=J+((c[(C&p)>>2]|0)-(c[(E&p)>>2]|0))|0;c[(C&p)>>2]=A;c[(E&p)>>2]=J;c[(F&p)>>2]=I;I=c[(g&p)>>2]|0}else A=c[(C&p)>>2]|0;c[(g&p)>>2]=I+(P+15&-8);c[(J+I&p)+4>>2]=A-J;g=J+I|0}kw(g+8|0,c[(z+(S*40|0)&p)+16>>2]|0,c[(T&p)>>2]|0)|0;c[(g&p)>>2]=c[(T&p)>>2];c[(C&p)>>2]=g;C=L;T=t;break}case 112:{g=m;m=r;r=t;ie=801;break d}case 111:{v=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;g=c[(v&p)>>2]|0;c[(yd&p)>>2]=c[(v&p)+8>>2];b[(kc&o)>>1]=c[(s+(t*20|0)&p)+12>>2];a[(nc&n)>>0]=0;c[(oc&p)>>2]=z+((c[(s+(t*20|0)&p)+8>>2]|0)*40|0);u=Cm(g,yd,0,0,0,Gd)|0;if(!(c[(Gd&p)>>2]|u))u=Jm(g)|0;c[(v&p)+60>>2]=0;C=L;T=t;break}case 116:case 115:case 114:case 113:{u=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;c[(zd&p)>>2]=c[(u&p)+8>>2];b[(xc&o)>>1]=c[(s+(t*20|0)&p)+16>>2];a[(Y&n)>>0]=((J&255)<115)<<31>>31;c[(Z&p)>>2]=z+((c[(s+(t*20|0)&p)+12>>2]|0)*40|0);V=Sd;c[(V&p)>>2]=0;c[(V&p)+4>>2]=0;km(c[(u&p)>>2]|0,Sd);V=Sd;g=c[(V&p)>>2]|0;V=jw(g|0,c[(V&p)+4>>2]|0,-1,-1)|0;U=G;if(!(U>>>0>0|(U|0)==0&V>>>0>2147483646)){b[(_&o)>>1]=0;c[($&p)>>2]=le;c[(aa&p)>>2]=0;g=nm(c[(u&p)>>2]|0,0,g,1,qd)|0;if(!g){u=Km(c[(ea&p)>>2]|0,c[(ga&p)>>2]|0,zd,0)|0;if((b[(_&o)>>1]&9312)==0&(c[(aa&p)>>2]|0)==0)g=0;else{Qg(qd);g=0}}else u=0}else{c[(ke&p)>>2]=68730;c[(ke&p)+4>>2]=10788;bd(11,13600,ke);g=11;u=0}if((((a[(C&n)>>0]&1)==0?u+1|0:0-u|0)|0)>0){C=L;T=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;u=g}else{C=L;T=t;u=g}break}case 117:{O=L+8|0;b[(O&o)>>1]=1;if((c[(Zb&p)>>2]|0)>((c[(ha&p)>>2]|0)+1|0)){g=m;m=r;u=x;ie=832;break c}N=c[(s+(t*20|0)&p)+12>>2]|0;M=c[((c[(Xd&p)>>2]|0)+(N<<4)&p)+4>>2]|0;P=s+(t*20|0)+4|0;I=c[(P&p)>>2]|0;C=M+4|0;K=c[(C&p)>>2]|0;c[(K&p)+4>>2]=c[(M&p)>>2];c[(ke&p)>>2]=0;do if(!(c[(K&p)+8>>2]|0)){u=dl(K,I,ke,0)|0;if(!u){u=Xm(M,I,0)|0;if(u){g=c[(ke&p)>>2]|0;if(!g){A=0;break}Bg(c[(g&p)+68>>2]|0);A=0;break}if(I>>>0<=1){g=c[(ke&p)>>2]|0;pl(g,9);if(!g){u=0;A=0;break}Bg(c[(g&p)+68>>2]|0);u=0;A=0;break}if(!(a[(K&n)+17>>0]|0)){g=c[(ke&p)>>2]|0;u=Ym(c[(g&p)+52>>2]|0,g,c[(g&p)+72>>2]|0)|0;if(!g){A=0;break}Bg(c[(g&p)+68>>2]|0);A=0;break}J=c[(C&p)>>2]|0;c[(J&p)+4>>2]=c[(M&p)>>2];J=c[((c[(J&p)+12>>2]|0)&p)+56>>2]|0;J=d[(J&n)+53>>0]<<16|d[(J&n)+52>>0]<<24|d[(J&n)+54>>0]<<8|d[(J&n)+55>>0];C=c[(ke&p)>>2]|0;if((J|0)==(I|0)){u=Ym(c[(C&p)+52>>2]|0,C,c[(C&p)+72>>2]|0)|0;if(C)Bg(c[(C&p)+68>>2]|0);if(!u)A=0;else{A=0;break}}else{if(C)Bg(c[(C&p)+68>>2]|0);u=dl(K,J,Sd,0)|0;if(u){A=0;break}C=c[(Sd&p)>>2]|0;u=Zm(K,C,1,0,I,0)|0;if(C)Bg(c[(C&p)+68>>2]|0);if(u){A=0;break}c[(Sd&p)>>2]=0;u=dl(K,J,Sd,0)|0;C=c[(Sd&p)>>2]|0;if(u){if(!C){A=0;break}}else u=Ym(c[(C&p)+52>>2]|0,C,c[(C&p)+72>>2]|0)|0;Bg(c[(C&p)+68>>2]|0);if(!u)A=J;else{A=0;break}}H=((c[2514]|0)>>>0)/((c[(K&p)+32>>2]|0)>>>0)|0;F=H+1|0;I=K+36|0;while(1){C=J+-1|0;if((C|0)==(F|0)){J=C;continue}if(C>>>0<2)E=0;else{E=J+-3|0;E=E-((E>>>0)%(((((c[(I&p)>>2]|0)>>>0)/5|0)+1|0)>>>0)|0)|0;E=((E+1|0)==(H|0)?3:2)+E|0}if((E|0)==(C|0))J=C;else break}u=Dg(M,4,C)|0}else A=0}else{u=262;A=0}while(0);b[(O&o)>>1]=4;V=L;c[(V&p)>>2]=A;c[(V&p)+4>>2]=((A|0)<0)<<31>>31;if((u|0)==0&(A|0)!=0){g=m;K=N;C=P;m=r;u=L;r=t;ie=865;break d}else{C=L;T=t}break}case 118:{c[(jd&p)>>2]=0;g=s+(t*20|0)+12|0;u=Xm(c[((c[(Xd&p)>>2]|0)+(c[(s+(t*20|0)&p)+8>>2]<<4)&p)+4>>2]|0,c[(s+(t*20|0)&p)+4>>2]|0,(c[(g&p)>>2]|0)!=0?jd:0)|0;g=c[(g&p)>>2]|0;if((g|0)!=0?(Ic=c[(jd&p)>>2]|0,c[(ub&p)>>2]=(c[(ub&p)>>2]|0)+Ic,(g|0)>0):0){C=z+(g*40|0)|0;T=C;T=jw(c[(T&p)>>2]|0,c[(T&p)+4>>2]|0,Ic|0,((Ic|0)<0)<<31>>31|0)|0;c[(C&p)>>2]=T;c[(C&p)+4>>2]=G;C=L;T=t}else{C=L;T=t}break}case 121:case 120:{c[(vd&p)>>2]=0;u=Am(c[((c[(Xd&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<4)&p)+4>>2]|0,vd,J<<24>>24==121?1:2)|0;T=c[(vd&p)>>2]|0;C=L;c[(C&p)>>2]=T;c[(C&p)+4>>2]=((T|0)<0)<<31>>31;C=L;T=t;break}case 119:{g=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;u=c[(g&p)+56>>2]|0;if(u){g=m;m=r;J=L;r=t;ie=878;break d}u=c[(g&p)>>2]|0;C=L;T=t;u=Xm(c[(u&p)>>2]|0,c[(u&p)+60>>2]|0,0)|0;break}case 123:{C=L;T=t;u=an(le,c[(s+(t*20|0)&p)+4>>2]|0)|0;break}case 124:{g=m;m=r;u=L;r=t;ie=886;break d}case 122:{g=m;m=r;J=L;r=t;ie=881;break d}case 126:{g=m;m=r;u=L;r=t;ie=895;break d}case 125:{g=m;m=r;J=L;r=t;ie=887;break d}case 127:{g=m;m=r;u=L;ie=903;break d}case 128:{g=m;m=r;J=L;ie=947;break d}case 129:{w=c[(s+(t*20|0)&p)+4>>2]|0;v=z+(w*40|0)|0;w=z+(w*40|0)+8|0;g=b[(w&o)>>1]|0;do if(g&32){E=c[(v&p)>>2]|0;u=E+26|0;g=b[(u&o)>>1]|0;if(!(g&2)){if(!(g&1)){g=E+8|0;c[(g&p)>>2]=kn(c[(g&p)>>2]|0)|0;g=b[(u&o)>>1]|0}b[(u&o)>>1]=g&65535|2}C=E+8|0;A=c[(C&p)>>2]|0;if(!A){g=b[(w&o)>>1]|0;break}w=A;v=c[(w&p)>>2]|0;w=c[(w&p)+4>>2]|0;V=c[(A&p)+8>>2]|0;c[(C&p)>>2]=V;if(!V)Zk(E);u=c[(s+(t*20|0)&p)+12>>2]|0;g=z+(u*40|0)|0;u=z+(u*40|0)+8|0;if(!(b[(u&o)>>1]&9312)){ie=g;c[(ie&p)>>2]=v;c[(ie&p)+4>>2]=w;b[(u&o)>>1]=4;u=0;ie=19;break e}else{Zg(g,v,w);u=0;ie=19;break e}}while(0);if(!(g&9312))b[(w&o)>>1]=1;else vg(v);t=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;u=0;ie=19;break}case 130:{g=m;m=r;u=L;ie=966;break d}case 131:{g=m;m=r;u=L;r=t;ie=993;break d}case 132:{g=m;m=r;u=L;r=t;ie=1009;break d}case 134:{g=m;m=r;J=L;r=t;ie=1010;break d}case 135:{g=m;m=r;u=L;r=t;ie=1015;break d}case 136:{g=m;m=r;r=t;ie=1022;break d}case 137:{g=m;m=r;u=L;r=t;ie=1028;break d}case 138:{g=m;m=r;u=L;r=t;ie=1030;break d}case 139:{g=m;m=r;J=L;r=t;ie=1032;break d}case 140:{g=m;m=r;u=L;r=t;ie=1034;break d}case 141:{g=m;m=r;u=L;r=t;ie=1036;break d}case 10:{V=a[(s+(t*20|0)&n)+3>>0]|0;g=V&255;u=c[(Bb&p)>>2]|0;if(V<<24>>24){v=0;w=z+((c[(s+(t*20|0)&p)+8>>2]|0)*40|0)|0;while(1){c[(u+(v<<2)&p)>>2]=w;v=v+1|0;if((v|0)>=(g|0))break;else w=w+40|0}}V=c[(s+(t*20|0)&p)+16>>2]|0;c[(Ga&p)>>2]=V;U=c[(s+(t*20|0)&p)+12>>2]|0;c[(Ha&p)>>2]=z+(U*40|0);U=z+(U*40|0)+12|0;c[(U&p)>>2]=(c[(U&p)>>2]|0)+1;b[(Ia&o)>>1]=1;c[(Ja&p)>>2]=le;c[(Ka&p)>>2]=0;c[(Vc&p)>>2]=Md;c[(La&p)>>2]=0;c[(Ma&p)>>2]=f;c[(Na&p)>>2]=t;a[(Oa&n)>>0]=0;mc[c[(V&p)+16>>2]&63](Vc,g,u);if(!(c[(La&p)>>2]|0))u=0;else{c[(ke&p)>>2]=Sg(Md,1)|0;dh(je,le,10344,ke);u=c[(La&p)>>2]|0}do if((a[(Oa&n)>>0]|0)!=0?(Mc=c[(s+((t+-1|0)*20|0)&p)+4>>2]|0,(Mc|0)!=0):0){g=z+(Mc*40|0)|0;v=z+(Mc*40|0)+8|0;if(!(b[(v&o)>>1]&9312)){V=g;c[(V&p)>>2]=1;c[(V&p)+4>>2]=0;b[(v&o)>>1]=4;break}else{Zg(g,1,0);break}}while(0);if((b[(Ia&o)>>1]&9312)==0&(c[(Ka&p)>>2]|0)==0){C=L;T=t}else{Qg(Md);C=L;T=t}break}case 11:{c[(Rc&p)>>2]=0;c[(Pa&p)>>2]=-1;c[(Qa&p)>>2]=-1;g=Wh(le,c[(s+(t*20|0)&p)+4>>2]|0,c[(s+(t*20|0)&p)+8>>2]|0,Qa,Pa)|0;if((g|0)==5){c[(Rc&p)>>2]=1;g=0}v=0;w=z+((c[(s+(t*20|0)&p)+12>>2]|0)*40|0)|0;while(1){C=c[(Rc+(v<<2)&p)>>2]|0;A=((C|0)<0)<<31>>31;u=w+8|0;if(!(b[(u&o)>>1]&9312)){V=w;c[(V&p)>>2]=C;c[(V&p)+4>>2]=A;b[(u&o)>>1]=4}else Zg(w,C,A);v=v+1|0;if((v|0)==3){C=L;T=t;u=g;break}else w=w+40|0}break}case 142:{C=c[(s+(t*20|0)&p)+4>>2]|0;v=z+(C*40|0)|0;u=Yk(v,c[(s+(t*20|0)&p)+16>>2]|0)|0;if(u){c[(ke&p)>>2]=Sg(v,1)|0;dh(je,le,10344,ke)}Yl(v,xb)|0;w=e[(z+(C*40|0)&o)+8>>1]|0;if(w&18){g=c[(z+(C*40|0)&p)+12>>2]|0;if(w&16384)g=(c[(v&p)>>2]|0)+g|0;if((g|0)>(c[((c[(z+(C*40|0)&p)+32>>2]|0)&p)+88>>2]|0)){g=m;m=r;u=x;ie=1316;break c}else{C=L;T=t}}else{C=L;T=t}break}case 12:{g=c[(s+(t*20|0)&p)+12>>2]|0;L=c[((c[(Xd&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<4)&p)+4>>2]|0;I=c[(c[(L&p)+4>>2]&p)>>2]|0;J=a[(I&n)+5>>0]|0;H=J&255;g=(g|0)==-1?H:g;do if((d[(I&n)+16>>0]|0)>2)g=H;else if((c[(c[(I&p)+64>>2]&p)>>2]|0)!=0?(V=I+72|0,U=c[(V&p)+4>>2]|0,(U|0)>0|(U|0)==0&(c[(V&p)>>2]|0)>>>0>0):0){g=H;break}while(0);if(!(a[(I&n)+15>>0]|0))A=c[(I&p)+168>>2]|0;else A=10360;K=(g|0)==5;if(K)if(A){C=A;while(1)if(!(a[(C&n)>>0]|0))break;else C=C+1|0;if(C-A&1073741823){C=c[(c[(I&p)+60>>2]&p)>>2]|0;if(!(a[(I&n)+4>>0]|0))if((c[(C&p)>>2]|0)>1?!((c[(C&p)+52>>2]|0)==0|(g|0)==(H|0)):0)ie=1077;else{g=H;u=0}else ie=1076}else{g=H;u=0}}else{g=H;u=0}else ie=1076;if((ie|0)==1076){ie=0;if((g|0)==(H|0)){g=H;u=0}else ie=1077}do if((ie|0)==1077){ie=0;C=J<<24>>24==5;if(C|K){if(!(a[(ee&n)>>0]|0)){g=m;s=K;m=r;u=x;ie=1080;break c}if((c[(Zb&p)>>2]|0)>1){g=m;s=K;m=r;u=x;ie=1080;break c}if(!C){if(J<<24>>24==4)sn(I,2)|0}else{J=I+208|0;if(!(c[(J&p)>>2]|0)){c[(_c&p)>>2]=0;u=fl(I,1)|0;if(u)break;u=c[(I&p)>>2]|0;u=pc[c[(u&p)+32>>2]&31](u,c[(I&p)+212>>2]|0,0,_c)|0;if((u|0)==0&(c[(_c&p)>>2]|0)!=0)u=pn(I)|0;if(u)break;if(c[(J&p)>>2]|0)ie=1088}else ie=1088;if((ie|0)==1088){ie=0;u=qn(I)|0;if(u)break;u=rn(c[(J&p)>>2]|0,d[(I&n)+9>>0]|0,c[(I&p)+152>>2]|0,c[(I&p)+200>>2]|0)|0;c[(J&p)>>2]=0;if(u)break}sn(I,g)|0}u=Fg(L,K?2:1)|0}else u=0}while(0);g=sn(I,(u|0)==0?g:H)|0;C=c[(s+(t*20|0)&p)+8>>2]|0;J=z+(C*40|0)|0;b[(z+(C*40|0)&o)+8>>1]=2562;if((g|0)==6){c[(z+(C*40|0)&p)+16>>2]=0;g=0}else{v=c[(g<<2&p)+32216>>2]|0;c[(z+(C*40|0)&p)+16>>2]=v;g=v;while(1)if(!(a[(g&n)>>0]|0))break;else g=g+1|0;g=g-v&1073741823}c[(z+(C*40|0)&p)+12>>2]=g;a[(z+(C*40|0)&n)+10>>0]=1;Yl(J,xb)|0;C=J;T=t;break}case 13:{if(!(a[(ee&n)>>0]|0)){g=m;m=r;u=x;ie=1101;break c}if((c[(Ra&p)>>2]|0)>1){g=m;m=r;u=x;ie=1103;break c}S=c[(Tb&p)>>2]|0;N=c[(vb&p)>>2]|0;w=c[(wb&p)>>2]|0;v=c[(Sa&p)>>2]|0;c[(Tb&p)>>2]=S&-2762753|2107392;c[(Sa&p)>>2]=0;g=c[((c[(Xd&p)>>2]|0)&p)+4>>2]|0;P=g+4|0;I=a[((c[(c[(P&p)>>2]&p)>>2]|0)&n)+15>>0]|0;V=c[(Ub&p)>>2]|0;u=tn(le,je,(a[(_b&n)>>0]|0)==2?42432:42464)|0;J=c[(Ub&p)>>2]|0;if((J|0)>(V|0))M=(c[(Xd&p)>>2]|0)+(J+-1<<4)|0;else M=0;i:do if(!u){O=c[((c[(Xd&p)>>2]|0)+(J+-1<<4)&p)+4>>2]|0;un(O)|0;T=c[(P&p)>>2]|0;c[(T&p)+4>>2]=c[(g&p)>>2];T=(c[(T&p)+32>>2]|0)-(c[(T&p)+36>>2]|0)|0;u=tn(le,je,42488)|0;if(!u){u=tn(le,je,42528)|0;if(!u){u=yg(g,2)|0;if(!u){J=c[(P&p)>>2]|0;if((a[((c[(J&p)>>2]|0)&n)+5>>0]|0)==5)c[(Ta&p)>>2]=0;if(!(xg(O,c[(J&p)+32>>2]|0,T,0)|0)){if(I<<24>>24==0?(xg(O,c[(Ta&p)>>2]|0,T,0)|0)!=0:0){u=7;break}if(a[(ge&n)>>0]|0){u=7;break}J=a[(Ua&n)>>0]|0;do if(J<<24>>24>-1)J=J<<24>>24;else{J=c[(P&p)>>2]|0;c[(J&p)+4>>2]=c[(g&p)>>2];if(!(a[(J&n)+17>>0]|0)){J=0;break}J=(a[(J&n)+18>>0]|0)==0?1:2}while(0);vn(O,J)|0;u=wn(le,je,42536)|0;if(u)break;u=wn(le,je,42688)|0;if(u)break;u=wn(le,je,42792)|0;if(u)break;u=wn(le,je,42912)|0;if(u)break;u=wn(le,je,43112)|0;if(u)break;u=wn(le,je,43232)|0;if(u)break;u=tn(le,je,43392)|0;if(!u)J=0;else break;do{u=d[(J&n)+43576>>0]|0;wm(g,u,ad);u=Dg(O,u,(d[((J|1)&n)+43576>>0]|0)+(c[(ad&p)>>2]|0)|0)|0;J=J+2|0;if(u)break i}while((J|0)<10);H=c[(P&p)>>2]|0;c[(H&p)+4>>2]=c[(g&p)>>2];J=c[(O&p)>>2]|0;K=O+4|0;I=c[(K&p)>>2]|0;c[(I&p)+4>>2]=J;H=c[((c[(H&p)>>2]|0)&p)+60>>2]|0;F=c[(H&p)>>2]|0;if(F){V=c[(I&p)+32>>2]|0;V=sw(c[(I&p)+44>>2]|0,0,V|0,((V|0)<0)<<31>>31|0)|0;u=id;c[(u&p)>>2]=V;c[(u&p)+4>>2]=G;u=ac[c[(F&p)+40>>2]&63](H,11,id)|0;u=(u|0)==12?0:u;if(u)break;J=c[(O&p)>>2]|0}U=Tc+0|0;V=U+48|0;do{c[(U&p)>>2]=0;U=U+4|0}while((U|0)<(V|0));c[(Va&p)>>2]=J;c[(Wa&p)>>2]=O;c[(Xa&p)>>2]=g;c[(Ya&p)>>2]=1;gd(Tc,2147483647)|0;u=hd(Tc)|0;if(u){C=c[(c[((c[(Xa&p)>>2]|0)&p)+4>>2]&p)>>2]|0;if(a[(C&n)+15>>0]|0)break;if(a[(C&n)+12>>0]|0)break;xn(C);break}u=(c[(P&p)>>2]|0)+22|0;b[(u&o)>>1]=e[(u&o)>>1]&65533;u=un(O)|0;if(u)break;J=c[(K&p)>>2]|0;c[(J&p)+4>>2]=c[(O&p)>>2];if(!(a[(J&n)+17>>0]|0))E=0;else E=(a[(J&n)+18>>0]|0)==0?1:2;vn(g,E)|0;u=xg(g,c[((c[(K&p)>>2]|0)&p)+32>>2]|0,T,1)|0}else u=7}}}}while(0);c[(Tb&p)>>2]=S;c[(vb&p)>>2]=N;c[(wb&p)>>2]=w;c[(Sa&p)>>2]=v;xg(g,-1,-1,1)|0;a[(ee&n)>>0]=1;if(M){V=M+4|0;Ml(c[(V&p)>>2]|0);c[(V&p)>>2]=0;c[(M&p)+12>>2]=0}Eg(le);C=L;T=t;break}case 143:{V=c[((c[(Xd&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<4)&p)+4>>2]|0;I=c[(V&p)+4>>2]|0;c[(I&p)+4>>2]=c[(V&p)>>2];if(!(a[(I&n)+17>>0]|0)){g=m;m=r;u=L;ie=1157;break d}E=I+44|0;H=c[(E&p)>>2]|0;A=I+12|0;C=c[((c[(A&p)>>2]|0)&p)+56>>2]|0;C=d[(C&n)+37>>0]<<16|d[(C&n)+36>>0]<<24|d[(C&n)+38>>0]<<8|d[(C&n)+39>>0];F=El(I,H,C)|0;if(H>>>0>>0){g=m;m=r;u=x;ie=1145;break c}if(!C){g=m;m=r;u=L;ie=1157;break d}J=I+8|0;g=c[(J&p)>>2]|0;do if(g){C=g;do{if(C){ie=1150;break}C=c[2]|0}while((C|0)!=0);if((ie|0)==1150){ie=0;u=Fl(C,0,0)|0;if(u)break;g=c[(J&p)>>2]|0}if(g){do{V=g+72|0;a[(V&n)>>0]=d[(V&n)>>0]&251;g=c[(g&p)+8>>2]|0}while((g|0)!=0);ie=1154}else ie=1154}else ie=1154;while(0);if((ie|0)==1154){ie=0;u=Gl(I,F,H,0)|0;if(!u){u=Gg(c[((c[(A&p)>>2]|0)&p)+68>>2]|0)|0;V=c[((c[(A&p)>>2]|0)&p)+56>>2]|0;U=c[(E&p)>>2]|0;a[(V&n)+28>>0]=U>>>24;a[(V&n)+29>>0]=U>>>16;a[(V&n)+30>>0]=U>>>8;a[(V&n)+31>>0]=U}}if((u|0)==101){g=m;m=r;u=L;ie=1157;break d}else{C=L;T=t}break}case 145:{g=c[(s+(t*20|0)&p)+12>>2]|0;if((g&255|0)==0?(c[(Tb&p)>>2]&16384|0)!=0:0){g=m;m=r;S=z;T=s;U=W;V=X;u=L;r=t;break d}C=c[((c[(Xd&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<4)&p)+4>>2]|0;A=c[(s+(t*20|0)&p)+8>>2]|0;if(!(a[(C&n)+9>>0]|0)){g=m;m=r;S=z;T=s;U=W;V=X;u=L;r=t;break d}v=g+1&255;w=C+4|0;c[((c[(w&p)>>2]|0)&p)+4>>2]=c[(C&p)>>2];u=bl(C,A,v)|0;if(!u){g=m;m=r;u=L;r=t;ie=1166;break d}if((u&255|0)!=6){g=m;m=r;s=u;u=x;ie=1309;break c}c[(ke&p)>>2]=c[(s+(t*20|0)&p)+16>>2];dh(je,le,42224,ke);C=L;T=t;break}case 144:{g=m;m=r;u=L;r=t;ie=1158;break d}case 146:{J=c[(s+(t*20|0)&p)+16>>2]|0;v=c[(Za&p)>>2]|0;u=(v|0)>0;if(u?(c[(_a&p)>>2]|0)==0:0){u=6;ie=1188}else ie=1179;j:do if((ie|0)==1179){ie=0;if(!J){g=m;m=r;S=z;T=s;U=W;V=X;u=L;r=t;break d}g=J+8|0;w=(c[(c[(g&p)>>2]&p)>>2]|0)+56|0;if(c[(w&p)>>2]|0){if(u){C=c[(_a&p)>>2]|0;A=0;do{if((c[(C+(A<<2)&p)>>2]|0)==(J|0)){u=0;ie=1188;break j}A=A+1|0}while((A|0)<(v|0))}u=yn(le)|0;if(!u){u=lc[c[(w&p)>>2]&127](c[(g&p)>>2]|0)|0;if(!u){u=c[(Za&p)>>2]|0;c[(Za&p)>>2]=u+1;c[((c[(_a&p)>>2]|0)+(u<<2)&p)>>2]=J;u=J+12|0;c[(u&p)>>2]=(c[(u&p)>>2]|0)+1;u=0}}else ie=1188}else u=0}while(0);if((ie|0)==1188){ie=0;if(!J){C=L;T=t;break e}g=J+8|0}Mm(f,c[(g&p)>>2]|0);C=L;T=t;break}case 147:{U=Kd+0|0;V=U+40|0;do{c[(U&p)>>2]=0;U=U+4|0}while((U|0)<(V|0));c[($a&p)>>2]=le;g=_g(Kd,z+((c[(s+(t*20|0)&p)+8>>2]|0)*40|0)|0)|0;u=Sg(Kd,1)|0;k:do if(u){v=_h(le,u,c[((c[(Xd&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<4)&p)>>2]|0)|0;g=c[(c[(v&p)+56>>2]&p)>>2]|0;u=bn(cb,g,Xc)|0;if((u|0)!=0?(Oc=c[(u&p)+8>>2]|0,(Oc|0)!=0):0){g=zn(le,v,Oc,c[((c[(Oc&p)>>2]|0)&p)+4>>2]|0,je)|0;if(g)break;u=v+60|0;g=c[(u&p)>>2]|0;if(!g){g=0;break}while(1){if((c[(g&p)>>2]|0)==(le|0))break;g=c[(g&p)+24>>2]|0;if(!g){g=0;break k}}g=yn(le)|0;if(g)break;g=c[(u&p)>>2]|0;l:do if(!g)g=0;else while(1){if((c[(g&p)>>2]|0)==(le|0))break l;g=c[(g&p)+24>>2]|0;if(!g){g=0;break}}while(0);V=c[(Za&p)>>2]|0;c[(Za&p)>>2]=V+1;c[((c[(_a&p)>>2]|0)+(V<<2)&p)>>2]=g;g=g+12|0;c[(g&p)>>2]=(c[(g&p)>>2]|0)+1;g=0;break}c[(ke&p)>>2]=g;c[(je&p)>>2]=uh(le,28320,ke)|0;g=1}while(0);if((b[(ab&o)>>1]&9312)==0&(c[(bb&p)>>2]|0)==0){C=L;T=t;u=g}else{Qg(Kd);C=L;T=t;u=g}break}case 148:{c[(ha&p)>>2]=(c[(ha&p)>>2]|0)+1;g=_h(le,c[(s+(t*20|0)&p)+16>>2]|0,c[((c[(Xd&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<4)&p)>>2]|0)|0;m:do if((g|0)!=0?(Pc=g+60|0,Qc=c[(Pc&p)>>2]|0,(Qc|0)!=0):0){u=Qc;do{if((c[((c[(u&p)+8>>2]|0)&p)+4>>2]|0)>0){u=6;break m}u=c[(u&p)+24>>2]|0}while((u|0)!=0);g=Ok(le,g)|0;v=g+8|0;u=lc[c[((c[(c[(g&p)+4>>2]&p)>>2]|0)&p)+20>>2]&127](c[(v&p)>>2]|0)|0;if(!u){c[(v&p)>>2]=0;c[(Pc&p)>>2]=0;An(g);u=0}}else u=0;while(0);c[(ha&p)>>2]=(c[(ha&p)>>2]|0)+-1;C=L;T=t;break}case 149:{g=m;m=r;u=L;r=t;ie=1213;break d}case 150:{g=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;C=c[(s+(t*20|0)&p)+12>>2]|0;A=z+(C*40|0)|0;if(a[(g&n)+25>>0]|0){g=m;m=r;u=L;r=t;ie=1226;break d}V=g+32|0;u=c[(c[(V&p)>>2]&p)>>2]|0;U=c[(u&p)>>2]|0;c[(Id&p)>>2]=0;c[(Id&p)+4>>2]=0;c[(Id&p)+8>>2]=0;c[(Id&p)+12>>2]=0;c[(Id&p)+16>>2]=0;c[(Id&p)+20>>2]=0;c[(Id&p)+24>>2]=0;c[(Id&p)>>2]=A;v=z+(C*40|0)+8|0;b[(v&o)>>1]=e[(v&o)>>1]&48640|1;V=ac[c[(U&p)+44>>2]&63](c[(V&p)>>2]|0,Id,c[(s+(t*20|0)&p)+8>>2]|0)|0;Mm(f,u);u=c[(db&p)>>2]|0;u=(u|0)==0?V:u;Yl(A,xb)|0;v=e[(v&o)>>1]|0;if(v&18){g=c[(z+(C*40|0)&p)+12>>2]|0;if(v&16384)g=(c[(A&p)>>2]|0)+g|0;if((g|0)>(c[((c[(z+(C*40|0)&p)+32>>2]|0)&p)+88>>2]|0)){g=m;m=r;u=x;ie=1316;break c}else{C=L;T=t}}else{C=L;T=t}break}case 14:{A=c[(s+(t*20|0)&p)+12>>2]|0;C=A+1|0;F=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;J=c[(F&p)+32>>2]|0;I=c[(J&p)>>2]|0;H=c[(I&p)>>2]|0;E=c[(z+(C*40|0)&p)>>2]|0;A=c[(z+(A*40|0)&p)>>2]|0;g=c[(Bb&p)>>2]|0;if((E|0)>0){u=0;do{V=u;u=u+1|0;c[(g+(V<<2)&p)>>2]=z+((u+C|0)*40|0)}while((u|0)!=(E|0))}u=tc[c[(H&p)+32>>2]&31](J,A,c[(s+(t*20|0)&p)+16>>2]|0,E,g)|0;Mm(f,I);if((u|0)==0?(lc[c[(H&p)+40>>2]&127](J)|0)!=0:0)t=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;a[(F&n)+25>>0]=0;C=L;T=t;break}case 151:{g=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;if(a[(g&n)+25>>0]|0){g=m;m=r;S=z;T=s;U=W;V=X;u=L;r=t;break d}g=g+32|0;v=c[(g&p)>>2]|0;V=c[(v&p)>>2]|0;u=c[(V&p)>>2]|0;v=lc[c[(u&p)+36>>2]&127](v)|0;Mm(f,V);if((v|0)==0?(lc[c[(u&p)+40>>2]&127](c[(g&p)>>2]|0)|0)!=0:0){u=0;ie=19;break e}t=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;u=v;ie=19;break}case 15:{F=s+(t*20|0)+16|0;v=c[((c[(F&p)>>2]|0)&p)+8>>2]|0;if(!v){g=m;m=r;s=6;u=x;ie=1309;break c}g=c[(v&p)>>2]|0;if(!g){g=m;m=r;s=6;u=x;ie=1309;break c}I=c[(s+(t*20|0)&p)+8>>2]|0;E=g+52|0;C=c[(E&p)>>2]|0;if(!C){g=m;m=r;S=z;T=s;U=W;V=X;u=L;r=t;break d}H=a[(eb&n)>>0]|0;J=c[(Bb&p)>>2]|0;if((I|0)>0){C=0;A=z+((c[(s+(t*20|0)&p)+12>>2]|0)*40|0)|0;while(1){c[(J+(C<<2)&p)>>2]=A;C=C+1|0;if((C|0)==(I|0))break;else A=A+40|0}C=c[(E&p)>>2]|0}A=s+(t*20|0)+3|0;a[(eb&n)>>0]=a[(A&n)>>0]|0;u=pc[C&31](v,I,J,Hd)|0;a[(eb&n)>>0]=H;Mm(f,v);if(!u){if(c[(s+(t*20|0)&p)+4>>2]|0){l=Hd;r=c[(l&p)>>2]|0;l=c[(l&p)+4>>2]|0;V=ne;c[(V&p)>>2]=r;c[(V&p)+4>>2]=l}}else if((u&255|0)==19?(a[((c[(F&p)>>2]|0)&n)+16>>0]|0)!=0:0){g=a[(A&n)>>0]|0;if(g<<24>>24==5)g=2;else if(g<<24>>24==4){g=m;m=r;S=z;T=s;U=W;V=X;u=L;r=t;break d}a[(fe&n)>>0]=g;C=L;T=t;break e}c[(ub&p)>>2]=(c[(ub&p)>>2]|0)+1;C=L;T=t;break}case 152:{g=c[((c[(s+(t*20|0)&p)+16>>2]|0)&p)+8>>2]|0;u=c[(s+(t*20|0)&p)+4>>2]|0;v=z+(u*40|0)|0;if(((b[(z+(u*40|0)&o)+8>>1]&2)!=0?(a[(z+(u*40|0)&n)+10>>0]|0)!=1:0)?(Wd=Bn(v,1)|0,(Wd|0)!=0):0){g=m;m=r;s=Wd;u=x;ie=1309;break c}u=rc[c[((c[(g&p)>>2]|0)&p)+76>>2]&127](g,c[(z+(u*40|0)&p)+16>>2]|0)|0;Mm(f,g);b[(Yd&o)>>1]=b[(Yd&o)>>1]&-9;C=L;T=t;break}case 153:{g=m;m=r;u=L;r=t;ie=1257;break d}case 155:{g=m;m=r;ie=1264;break d}case 154:{g=m;m=r;J=L;r=t;ie=1258;break d}default:{g=m;m=r;S=z;T=s;U=W;V=X;u=L;r=t;break d}}while(0);n:do if((ie|0)==57){ie=0;w=L+8|0;b[(w&o)>>1]=2562;c[(L&p)+16>>2]=v;c[(L&p)+12>>2]=g;a[(L&n)+10>>0]=Jc;if((a[(s+(t*20|0)&n)+3>>0]|0)!=0?(V=z+((c[(s+(t*20|0)&p)+12>>2]|0)*40|0)|0,!((c[(V&p)>>2]|0)==0&(c[(V&p)+4>>2]|0)==0)):0){b[(w&o)>>1]=2576;C=L;T=t}else{C=L;T=t}}else if((ie|0)==536){if(b[(Yd&o)>>1]&8){g=m;m=r;s=516;u=x;ie=1309;break c}C=c[(s+(t*20|0)&p)+8>>2]|0;I=c[(s+(t*20|0)&p)+12>>2]|0;g=c[(Xd&p)>>2]|0;H=c[(g+(I<<4)&p)+4>>2]|0;if(J<<24>>24==55){g=a[((c[(g+(I<<4)&p)+12>>2]|0)&n)+76>>0]|0;if((g&255)<(d[(Mb&n)>>0]|0)){a[(Mb&n)>>0]=g;J=1}else J=1}else J=0;v=s+(t*20|0)+3|0;if(a[(v&n)>>0]&4){V=z+(C*40|0)|0;g=Vg(V)|0;c[(V&p)>>2]=g;c[(V&p)+4>>2]=G;V=z+(C*40|0)+8|0;b[(V&o)>>1]=e[(V&o)>>1]&48640|4;if((g|0)<2){g=m;m=r;s=x;ie=542;break c}else E=g}else E=C;u=s+(t*20|0)+1|0;C=a[(u&n)>>0]|0;if(C<<24>>24==-6){A=c[(s+(t*20|0)&p)+16>>2]|0;C=(e[(A&o)+8>>1]|0)+(e[(A&o)+6>>1]|0)|0}else if(C<<24>>24==-14){C=c[(s+(t*20|0)&p)+16>>2]|0;A=0}else{C=0;A=0}g=xm(f,c[(s+(t*20|0)&p)+4>>2]|0,C,I,1)|0;if(!g){y=ge;z=je;g=m;m=x;ie=1317;break a}a[(g&n)+25>>0]=1;V=g+27|0;a[(V&n)>>0]=a[(V&n)>>0]|8;c[(g&p)+28>>2]=E;ie=ym(H,E,J,A,c[(g&p)>>2]|0)|0;c[(g&p)+8>>2]=A;a[(V&n)>>0]=((a[(u&n)>>0]|0)!=-6&1)<<2&255|a[(V&n)>>0]&-5;u=ie;ie=548}else if((ie|0)==715){ie=0;M=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;V=c[(M&p)+56>>2]|0;do if(!V){u=c[(M&p)>>2]|0;g=qm(u)|0;if(!g)if(!(a[(u&n)+73>>0]|0)){v=1;g=0}else{v=0;g=Vm(u)|0}else v=1;a[(M&n)+26>>0]=0;c[(M&p)+60>>2]=0;a[(M&n)+25>>0]=v;if(!v){C=L;T=t;u=g;break n}}else{do if(!(a[(V&n)+56>>0]|0)){g=V+36|0;if(!(c[(g&p)>>2]|0)){g=0;ie=756}else{g=Nm(V+64|0,g)|0;ie=755}}else{g=Om(V)|0;if(!g){U=V+59|0;o:do if(!(a[(U&n)>>0]|0)){u=0;g=0}else{w=0;v=0;p:while(1){T=V+(w<<6)+64|0;c[(ke&p)>>2]=0;S=V+(w<<6)+92|0;C=c[(S&p)>>2]|0;J=((C|0)<0)<<31>>31;do if((C|0)>16){I=16;H=0;E=0;while(1){I=iw(I|0,H|0,4)|0;H=G;F=E+1|0;if(!((H|0)<(J|0)|(H|0)==(J|0)&I>>>0>>0)){H=E;break}else E=F}P=Sd;c[(P&p)>>2]=0;c[(P&p)+4>>2]=0;if((C|0)<17){ie=726;break}u=Qm(16)|0;c[(ke&p)>>2]=u;J=(u|0)==0;I=c[(S&p)>>2]|0;if(!((I|0)>0&(J^1))){g=J?7:0;break}N=(H|0)>0;P=0;O=0;do{c[(qd&p)>>2]=0;g=I-P|0;g=Pm(T,(g|0)<16?g:16,Sd,qd)|0;if(g){ie=747;break p}g=Rm(T,c[(qd&p)>>2]|0,pd)|0;do if(N){I=1;J=1;do{J=J<<4;I=I+1|0}while((I|0)!=(F|0));if(!g){H=1;I=u}else{J=c[(pd&p)>>2]|0;ie=743;break}while(1){K=(c[(I&p)+12>>2]|0)+((((O|0)/(J|0)|0|0)%16|0)*56|0)+48|0;I=c[(K&p)>>2]|0;if(!I){I=Qm(16)|0;if(!I){g=7;ie=738;break}g=Rm(T,I,K)|0;if(g){ie=738;break}I=c[(K&p)>>2]|0}I=c[(I&p)+4>>2]|0;H=H+1|0;if((H|0)>=(F|0)){ie=740;break}else J=(J|0)/16|0}if((ie|0)==738){J=c[(pd&p)>>2]|0;ie=743;break}else if((ie|0)==740){J=c[(pd&p)>>2]|0;ie=742;break}}else{J=c[(pd&p)>>2]|0;if(!g){I=u;ie=742}else ie=743}while(0);if((ie|0)==742){ie=0;c[((c[(I&p)+12>>2]|0)+(((O|0)%16|0)*56|0)&p)+48>>2]=J;g=0}else if((ie|0)==743){ie=0;Sm(J)}O=O+1|0;P=P+16|0;I=c[(S&p)>>2]|0}while((P|0)<(I|0)&(g|0)==0)}else{ie=Sd;c[(ie&p)>>2]=0;c[(ie&p)+4>>2]=0;ie=726}while(0);if((ie|0)==726){ie=0;g=Pm(T,C,Sd,ke)|0;u=c[(ke&p)>>2]|0}w=w+1|0;if(g){ie=746;break}if((w|0)>=(d[(U&n)>>0]|0)){g=0;break o}else v=u}if((ie|0)==746)Tm(u);else if((ie|0)==747)Tm(u);Tm(v);u=0}while(0);if(!g){g=Um(V+64|0,u)|0;c[(V&p)+20>>2]=u;if(!g){g=0;ie=755;break}else u=0}Tm(u);ie=755}else ie=756}while(0);if((ie|0)==755){ie=0;a[(M&n)+25>>0]=0;C=L;T=t;u=g;break n}else if((ie|0)==756){ie=0;a[(M&n)+25>>0]=1;break}}while(0);C=L;T=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;u=g}else if((ie|0)==765){u=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;c[(Fd&p)>>2]=c[(s+(t*20|0)&p)+12>>2];g=u;u=rc[c[(s+(t*20|0)&p)+16>>2]&127](c[(u&p)>>2]|0,Fd)|0;ie=766}while(0);do if((ie|0)==548){ie=0;a[((c[(g&p)>>2]|0)&n)+74>>0]=d[(v&n)>>0]&3;C=L;T=t}else if((ie|0)==766){c[(g&p)+60>>2]=0;g=g+25|0;if(!(c[(Fd&p)>>2]|0)){a[(g&n)>>0]=0;ie=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;t=f+(d[(s+(t*20|0)&n)+3>>0]<<2)+108|0;c[(t&p)>>2]=(c[(t&p)>>2]|0)+1;t=ie;ie=19;break}else{a[(g&n)>>0]=1;ie=19;break}}while(0);if((ie|0)==19){ie=0;if(c[(Cc&p)>>2]|0){u=je;g=m;m=x;break b}g=c[(be&p)>>2]|0;if(!((g|0)==0|m>>>0>>0)){y=c[(yc&p)>>2]|0;if(!(lc[g&127](c[(Zd&p)>>2]|0)|0)){y=y+m-((m>>>0)%(y>>>0)|0)|0;C=L;T=t}else{g=m;s=9;m=x;ie=1311;break a}}else{C=L;T=t}}t=T+1|0;if(!u){g=m;u=C}else{g=m;s=u;m=x;ie=1311;break a}}q:switch(ie|0){case 22:{ie=0;S=c[(s+(t*20|0)&p)+4>>2]|0;b[(z+(S*40|0)&o)+8>>1]=4;S=z+(S*40|0)|0;c[(S&p)>>2]=t;c[(S&p)+4>>2]=((t|0)<0)<<31>>31;S=z;T=s;U=W;V=X;r=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;break}case 23:{ie=0;S=c[(s+(t*20|0)&p)+4>>2]|0;r=c[(z+(S*40|0)&p)>>2]|0;b[(z+(S*40|0)&o)+8>>1]=128;S=z;T=s;U=W;V=X;break}case 24:{ie=0;r=c[(s+(t*20|0)&p)+4>>2]|0;u=z+(r*40|0)|0;T=(c[(s+(t*20|0)&p)+12>>2]|0)+-1|0;S=u;c[(S&p)>>2]=T;c[(S&p)+4>>2]=((T|0)<0)<<31>>31;b[(z+(r*40|0)&o)+8>>1]=4;r=c[(s+(t*20|0)&p)+8>>2]|0;S=z;T=s;U=W;V=X;r=(r|0)==0?t:r+-1|0;break}case 25:{ie=0;S=c[(s+(t*20|0)&p)+4>>2]|0;r=(c[(s+((c[(z+(S*40|0)&p)>>2]|0)*20|0)&p)+8>>2]|0)+-1|0;b[(z+(S*40|0)&o)+8>>1]=128;S=z;T=s;U=W;V=X;break}case 26:{ie=0;S=c[(s+(t*20|0)&p)+4>>2]|0;b[(z+(S*40|0)&o)+8>>1]=4;S=z+(S*40|0)|0;r=c[(S&p)>>2]|0;c[(S&p)>>2]=t;c[(S&p)+4>>2]=((t|0)<0)<<31>>31;S=z;T=s;U=W;V=X;break}case 27:{ie=0;if(!(b[(z+((c[(s+(r*20|0)&p)+12>>2]|0)*40|0)&o)+8>>1]&1)){S=z;T=s;U=W;V=X}else ie=28;break}case 44:{ie=0;T=c[(s+(r*20|0)&p)+4>>2]|0;S=u;c[(S&p)>>2]=T;c[(S&p)+4>>2]=((T|0)<0)<<31>>31;S=z;T=s;U=W;V=X;break}case 45:{ie=0;U=c[(s+(r*20|0)&p)+16>>2]|0;T=c[(U&p)+4>>2]|0;S=u;c[(S&p)>>2]=c[(U&p)>>2];c[(S&p)+4>>2]=T;S=z;T=s;U=W;V=X;break}case 46:{ie=0;b[(u&o)+8>>1]=8;h[(u&q)>>3]=+h[(c[(s+(r*20|0)&p)+16>>2]&q)>>3];S=z;T=s;U=W;V=X;break}case 60:{ie=0;J=(c[(s+(r*20|0)&p)+12>>2]|0)-(c[(s+(r*20|0)&p)+8>>2]|0)|0;t=(c[(s+(r*20|0)&p)+4>>2]|0)!=0?257:1;b[(u&o)+8>>1]=t;if((J|0)>0){w=J;A=u;do{v=A+48|0;A=A+40|0;if(!(b[(v&o)>>1]&9312))b[(v&o)>>1]=1;else vg(A);b[(v&o)>>1]=t;w=w+-1|0}while((w|0)>0);S=z;T=s;U=W;V=X;u=u+(J*40|0)|0}else{S=z;T=s;U=W;V=X}break}case 65:{ie=0;u=c[(s+(r*20|0)&p)+4>>2]|0;S=z+(u*40|0)+8|0;b[(S&o)>>1]=e[(S&o)>>1]&65406|1;S=z;T=s;U=W;V=X;u=z+(u*40|0)|0;break}case 66:{ie=0;Xg(u,c[(s+(r*20|0)&p)+16>>2]|0,c[(s+(r*20|0)&p)+4>>2]|0,0,0)|0;a[(u&n)+10>>0]=Jc;S=z;T=s;U=W;V=X;break}case 67:{ie=0;C=(c[(s+(r*20|0)&p)+4>>2]|0)+-1|0;A=c[(Ab&p)>>2]|0;w=A+(C*40|0)|0;v=e[(A+(C*40|0)&o)+8>>1]|0;if(v&18){t=c[(A+(C*40|0)&p)+12>>2]|0;if(v&16384)t=(c[(w&p)>>2]|0)+t|0;if((t|0)>(c[((c[(A+(C*40|0)&p)+32>>2]|0)&p)+88>>2]|0)){t=r;u=x;ie=1316;break c}}Zl(u,w,2048);S=z;T=s;U=W;V=X;break}case 72:{ie=0;t=c[(s+(r*20|0)&p)+12>>2]|0;v=c[(s+(r*20|0)&p)+8>>2]|0;J=t+v|0;u=z+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)|0;v=z+(v*40|0)|0;while(1){_l(v,u);t=t+-1|0;if(!t)break;else{u=u+40|0;v=v+40|0}}S=z;T=s;U=W;V=X;u=z+(J*40|0)|0;break}case 74:{ie=0;r=c[(s+(t*20|0)&p)+12>>2]|0;u=z+((c[(s+(t*20|0)&p)+4>>2]|0)*40|0)|0;J=z+((c[(s+(t*20|0)&p)+8>>2]|0)*40|0)|0;while(1){Zl(J,u,4096);if((b[(J&o)+8>>1]&4096)!=0?(Vl(J)|0)!=0:0){y=ge;z=je;r=m;m=x;ie=1317;break a}if(!r){S=z;T=s;U=W;V=X;u=J;r=t;break q}r=r+-1|0;u=u+40|0;J=J+40|0}}case 79:{ie=0;u=z+((c[(s+(r*20|0)&p)+8>>2]|0)*40|0)|0;Zl(u,z+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)|0,4096);S=z;T=s;U=W;V=X;break}case 94:{ie=0;K=c[(s+(t*20|0)&p)+4>>2]|0;J=z+(K*40|0)|0;L=c[(s+(t*20|0)&p)+8>>2]|0;I=z+(L*40|0)|0;M=c[(s+(t*20|0)&p)+12>>2]|0;u=z+(M*40|0)|0;H=z+(K*40|0)+8|0;E=b[(H&o)>>1]|0;F=z+(L*40|0)+8|0;C=b[(F&o)>>1]|0;if((C|E)&1){r=z+(M*40|0)+8|0;if(!(b[(r&o)>>1]&9312)){b[(r&o)>>1]=1;S=z;T=s;U=W;V=X;r=t;break}else{vg(u);S=z;T=s;U=W;V=X;r=t;break}}if(E&16384){if(Rg(J)|0){y=ge;z=je;r=m;m=x;ie=1317;break a}C=b[(F&o)>>1]|0}if((C&16384)!=0?(Rg(I)|0)!=0:0){y=ge;z=je;r=m;m=x;ie=1317;break a}if((b[(H&o)>>1]&18)==0?(bm(J,Jc,0)|0)!=0:0){y=ge;z=je;r=m;m=x;ie=1317;break a}if((b[(F&o)>>1]&18)==0?(bm(I,Jc,0)|0)!=0:0){y=ge;z=je;r=m;m=x;ie=1317;break a}E=z+(K*40|0)+12|0;A=z+(L*40|0)+12|0;r=(c[(A&p)>>2]|0)+(c[(E&p)>>2]|0)|0;if((r|0)>(c[(zb&p)>>2]|0)){u=x;ie=1316;break c}v=(M|0)==(L|0);if(eh(u,r+2|0,v&1)|0){y=ge;z=je;r=m;m=x;ie=1317;break a}w=z+(M*40|0)+8|0;b[(w&o)>>1]=e[(w&o)>>1]&48640|2;C=z+(M*40|0)+16|0;if(!v)kw(c[(C&p)>>2]|0,c[(z+(L*40|0)&p)+16>>2]|0,c[(A&p)>>2]|0)|0;kw((c[(C&p)>>2]|0)+(c[(A&p)>>2]|0)|0,c[(z+(K*40|0)&p)+16>>2]|0,c[(E&p)>>2]|0)|0;a[((c[(C&p)>>2]|0)+r&n)>>0]=0;a[((c[(C&p)>>2]|0)+r&n)+1>>0]=0;b[(w&o)>>1]=e[(w&o)>>1]|512;c[(z+(M*40|0)&p)+12>>2]=r;a[(z+(M*40|0)&n)+10>>0]=Jc;S=z;T=s;U=W;V=X;r=t;break}case 112:{ie=0;V=c[(s+(r*20|0)&p)+4>>2]|0;N=z+(V*40|0)|0;S=cm(N)|0;w=c[(s+(r*20|0)&p)+8>>2]|0;O=z+(w*40|0)|0;T=cm(O)|0;U=c[(s+(r*20|0)&p)+12>>2]|0;u=z+(U*40|0)|0;r:do if(!((b[(z+(w*40|0)&o)+8>>1]|b[(z+(V*40|0)&o)+8>>1])&1)){s:do if(!((S&4&T)<<16>>16))L=0;else{t=N;C=c[(t&p)>>2]|0;t=c[(t&p)+4>>2]|0;F=O;v=c[(F&p)>>2]|0;F=c[(F&p)+4>>2]|0;J=d[(P&n)>>0]|0;t:do if((J|0)==89){if((t|0)>-1|(t|0)==-1&C>>>0>4294967295){V=dw(-1,2147483647,v|0,F|0)|0;w=G;if(((F|0)>0|(F|0)==0&v>>>0>0)&((w|0)<(t|0)|(w|0)==(t|0)&V>>>0>>0)){L=1;break s}}else if((F|0)<0?(w=dw(1,-2147483648,v|0,F|0)|0,A=G,V=jw(C|0,t|0,1,0)|0,M=G,(A|0)>(M|0)|(A|0)==(M|0)&w>>>0>V>>>0):0){L=1;break s}v=jw(v|0,F|0,C|0,t|0)|0;t=G}else if((J|0)==91){L=qw(v|0,F|0,0,1)|0;K=G;E=rw(v|0,F|0,0,1)|0;A=G;J=qw(C|0,t|0,0,1)|0;I=G;M=rw(C|0,t|0,0,1)|0;w=G;V=jw(v|0,F|0,-1,0)|0;pe=G;H=jw(C|0,t|0,-1,0)|0;qe=G;H=qe>>>0<1|(qe|0)==1&H>>>0<4294967295;do if(pe>>>0<1|(pe|0)==1&V>>>0<4294967295)if(H){v=sw(v|0,F|0,C|0,t|0)|0;t=G;break t}else{H=sw(J|0,I|0,E|0,A|0)|0;F=G;break}else{if(!H){L=1;break s}H=sw(M|0,w|0,L|0,K|0)|0;F=G}while(0);V=jw(H|0,F|0,-2147483648,0)|0;v=G;if(v>>>0>0|(v|0)==0&V>>>0>4294967295){L=1;break s}J=sw(M|0,w|0,E|0,A|0)|0;I=G;if((I|0)>-1|(I|0)==-1&J>>>0>4294967295){V=dw(-1,2147483647,0,H|0)|0;w=G;if(((F|0)>0|(F|0)==0&H>>>0>0)&((w|0)<(I|0)|(w|0)==(I|0)&V>>>0>>0)){L=1;break s}}else if((F|0)<0?(w=dw(1,-2147483648,0,H|0)|0,t=G,V=jw(J|0,I|0,1,0)|0,v=G,(t|0)>(v|0)|(t|0)==(v|0)&w>>>0>V>>>0):0){L=1;break s}v=jw(0,H|0,J|0,I|0)|0;t=G}else if((J|0)==90){if((C|0)==0&(t|0)==-2147483648){if((F|0)>-1|(F|0)==-1&v>>>0>4294967295){L=1;break s}t=F^-2147483648;break}if((t|0)<0|(t|0)==0&C>>>0<1){V=dw(0,0,C|0,t|0)|0;M=G;w=dw(-1,2147483647,v|0,F|0)|0;A=G;if(((F|0)>0|(F|0)==0&v>>>0>0)&((A|0)<(M|0)|(A|0)==(M|0)&w>>>0>>0)){L=1;break s}}else if((F|0)<0?(w=dw(1,-2147483648,v|0,F|0)|0,A=G,V=dw(1,0,C|0,t|0)|0,M=G,(A|0)>(M|0)|(A|0)==(M|0)&w>>>0>V>>>0):0){L=1;break s}v=dw(v|0,F|0,C|0,t|0)|0;t=G}else if((J|0)==92){if((C|0)==0&(t|0)==0)break r;if((C|0)==-1&(t|0)==-1&((v|0)==0&(F|0)==-2147483648)){L=1;break s}v=qw(v|0,F|0,C|0,t|0)|0;t=G}else{if((C|0)==-1){if((t|0)==-1){C=1;t=0}}else if((C|0)==0?(t|0)==0:0)break r;v=rw(v|0,F|0,C|0,t|0)|0;t=G}while(0);S=u;c[(S&p)>>2]=v;c[(S&p)+4>>2]=t;S=z+(U*40|0)+8|0;b[(S&o)>>1]=e[(S&o)>>1]&48640|4;S=z;T=s;U=W;V=X;break q}while(0);D=+Ug(N);B=+Ug(O);C=d[(P&n)>>0]|0;if((C|0)==89)B=D+B;else if((C|0)==90)B=B-D;else if((C|0)==91)B=D*B;else if((C|0)==92){if(D==0.0)break;B=B/D}else{E=~~D>>>0;C=+R(D)>=1.0?(D>0.0?~~+da(+Q(D/4294967296.0),4294967295.0)>>>0:~~+ba((D-+(~~D>>>0))/4294967296.0)>>>0):0;I=~~B>>>0;J=+R(B)>=1.0?(B>0.0?~~+da(+Q(B/4294967296.0),4294967295.0)>>>0:~~+ba((B-+(~~B>>>0))/4294967296.0)>>>0):0;if(!E){if(!C)break}else if((E|0)==-1?(C|0)==-1:0){E=1;C=0}V=rw(I|0,J|0,E|0,C|0)|0;B=+(V>>>0)+4294967296.0*+(G|0)}h[(ke&q)>>3]=B;h[(Sd&q)>>3]=+h[(ke&q)>>3];if(!(+h[(ke&q)>>3]!=+h[(Sd&q)>>3])){h[(u&q)>>3]=B;V=z+(U*40|0)+8|0;b[(V&o)>>1]=e[(V&o)>>1]&48640|8;if(((T|S)&8)!=0|L<<24>>24!=0){S=z;T=s;U=W;V=X;break q}dm(u);S=z;T=s;U=W;V=X;break q}}while(0);t=z+(U*40|0)+8|0;if(!(b[(t&o)>>1]&9312)){b[(t&o)>>1]=1;S=z;T=s;U=W;V=X;break}else{vg(u);S=z;T=s;U=W;V=X;break}}case 166:{ie=0;t=c[(s+(r*20|0)&p)+4>>2]|0;if(t){u=z+(t*40|0)|0;t=z+(t*40|0)+8|0;if(!(b[(t&o)>>1]&9312)){S=u;c[(S&p)>>2]=0;c[(S&p)+4>>2]=0;b[(t&o)>>1]=4;S=z;T=s;U=W;V=X;u=J;break}else{Zg(u,0,0);S=z;T=s;U=W;V=X;u=J;break}}else{S=z;T=s;U=W;V=X;u=J}break}case 184:{ie=0;C=c[(s+(r*20|0)&p)+4>>2]|0;t=c[(s+(r*20|0)&p)+8>>2]|0;K=c[(s+(r*20|0)&p)+12>>2]|0;u=z+(K*40|0)|0;if((b[(z+(t*40|0)&o)+8>>1]|b[(z+(C*40|0)&o)+8>>1])&1){t=z+(K*40|0)+8|0;if(!(b[(t&o)>>1]&9312)){b[(t&o)>>1]=1;S=z;T=s;U=W;V=X;break}else{vg(u);S=z;T=s;U=W;V=X;break}}A=Vg(z+(t*40|0)|0)|0;L=G;J=Vg(z+(C*40|0)|0)|0;I=G;t=a[(H&n)>>0]|0;C=t&255;do if(t<<24>>24==86){A=J|A;t=I|L}else if(t<<24>>24!=85)if(!((J|0)==0&(I|0)==0)){if((I|0)<0){t=175-C&255;C=dw(0,0,J|0,I|0)|0;if((I|0)>-1|(I|0)==-1&J>>>0>4294967232){I=G;ie=194}}else{C=J;ie=194}if((ie|0)==194){ie=0;if(!((I|0)>0|(I|0)==0&C>>>0>63)){if(t<<24>>24==87){A=iw(A|0,L|0,C|0)|0;t=G;break}A=mw(A|0,L|0,C|0)|0;t=G;if((L|0)>=0)break;V=dw(64,0,C|0,I|0)|0;V=iw(-1,-1,V|0)|0;A=V|A;t=G|t;break}}if((L|0)>-1|(L|0)==-1&A>>>0>4294967295){A=0;t=0}else{t=(t<<24>>24!=87)<<31>>31;A=t;t=((t|0)<0)<<31>>31}}else t=L;else{A=J&A;t=I&L}while(0);S=u;c[(S&p)>>2]=A;c[(S&p)+4>>2]=t;S=z+(K*40|0)+8|0;b[(S&o)>>1]=e[(S&o)>>1]&48640|4;S=z;T=s;U=W;V=X;break}case 202:{ie=0;T=c[(s+(r*20|0)&p)+4>>2]|0;S=z+(T*40|0)|0;U=Vg(S)|0;T=z+(T*40|0)+8|0;b[(T&o)>>1]=e[(T&o)>>1]&48640|4;T=c[(s+(r*20|0)&p)+8>>2]|0;T=jw(U|0,G|0,T|0,((T|0)<0)<<31>>31|0)|0;c[(S&p)>>2]=T;c[(S&p)+4>>2]=G;S=z;T=s;U=W;V=X;break}case 203:{ie=0;u=c[(s+(r*20|0)&p)+4>>2]|0;v=z+(u*40|0)+8|0;t=b[(v&o)>>1]|0;if(!(t&4)){fm(z+(u*40|0)|0,67,Jc);t=b[(v&o)>>1]|0;if(!(t&4)){E=c[(s+(r*20|0)&p)+8>>2]|0;if(!E){t=r;u=20;ie=1318;break c}S=z;T=s;U=W;V=X;u=J;r=E+-1|0;break}}b[(v&o)>>1]=t&48640|4;S=z;T=s;U=W;V=X;u=J;break}case 208:{ie=0;t=c[(s+(r*20|0)&p)+4>>2]|0;u=z+(t*40|0)+8|0;if(!(b[(u&o)>>1]&4)){S=z;T=s;U=W;V=X;u=J}else{S=z+(t*40|0)|0;h[(S&q)>>3]=+Ug(S);b[(u&o)>>1]=e[(u&o)>>1]&48640|8;S=z;T=s;U=W;V=X;u=J}break}case 213:{ie=0;N=c[(s+(t*20|0)&p)+4>>2]|0;L=z+(N*40|0)|0;w=c[(s+(t*20|0)&p)+12>>2]|0;K=z+(w*40|0)|0;N=z+(N*40|0)+8|0;F=b[(N&o)>>1]|0;w=z+(w*40|0)+8|0;M=b[(w&o)>>1]|0;H=F&65535;A=M&65535;v=s+(t*20|0)+3|0;J=d[(v&n)>>0]|0;do if(!((M|F)&1)){J=J&71;if(J>>>0>66){if((H&14|0)==2){rh(L,0);A=b[(w&o)>>1]|0}else A=M;if((A&14)==2){rh(K,0);J=F;E=M}else{J=F;E=M}}else if((J|0)==66){if((H&2|0)!=0|(H&12|0)==0){I=M;J=F}else{bm(L,Jc,1)|0;I=b[(w&o)>>1]|0;J=(e[(N&o)>>1]&65024|H&511)&65535}V=I&65535;if((V&2|0)!=0|(V&12|0)==0)E=M;else{bm(K,Jc,1)|0;E=(e[(w&o)>>1]&65024|A&511)&65535}}else{J=F;E=M}if(b[(N&o)>>1]&16384){Rg(L)|0;J=J&49151}if(b[(w&o)>>1]&16384){Rg(K)|0;E=E&49151}if(a[(ge&n)>>0]|0){y=ge;z=je;r=m;m=x;ie=1317;break a}V=hm(K,L,c[(s+(t*20|0)&p)+16>>2]|0)|0;I=a[(C&n)>>0]|0;r=t;C=V}else{if(J&128){J=F;E=M;r=t;C=(F&1&M)<<16>>16!=0&(A&256|0)==0&1^1;break}if(J&32){u=c[(s+(t*20|0)&p)+8>>2]|0;S=z+(u*40|0)+8|0;b[(S&o)>>1]=e[(S&o)>>1]&48640|1;S=z;T=s;U=W;V=X;u=z+(u*40|0)|0;r=t;break q}if(!(J&16)){S=z;T=s;U=W;V=X;r=t;break q}S=z;T=s;U=W;V=X;r=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;break q}while(0);switch(I&255|0){case 79:{C=(C|0)==0&1;break}case 78:{C=(C|0)!=0&1;break}case 82:{C=C>>>31;break}case 81:{C=(C|0)<1&1;break}case 80:{C=(C|0)>0&1;break}default:C=C>>>31^1}if(!(a[(v&n)>>0]&32)){if(C)r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0}else{V=c[(s+(r*20|0)&p)+8>>2]|0;u=z+(V*40|0)|0;V=z+(V*40|0)+8|0;b[(V&o)>>1]=e[(V&o)>>1]&48640|4;V=u;c[(V&p)>>2]=C;c[(V&p)+4>>2]=0}b[(N&o)>>1]=J;b[(w&o)>>1]=E;S=z;T=s;U=W;V=X;break}case 248:{ie=0;S=z;T=s;U=c[(s+(r*20|0)&p)+16>>2]|0;V=X;break}case 249:{ie=0;w=(a[(s+(r*20|0)&n)+3>>0]&1)==0?0:W;F=c[(s+(r*20|0)&p)+12>>2]|0;H=c[(s+(r*20|0)&p)+16>>2]|0;I=c[(s+(r*20|0)&p)+4>>2]|0;J=c[(s+(r*20|0)&p)+8>>2]|0;if((F|0)>0){t=(w|0)==0;v=H+16|0;E=0;while(1){if(t)A=E;else A=c[(w+(E<<2)&p)>>2]|0;C=a[((c[(v&p)>>2]|0)+E&n)>>0]|0;A=hm(z+((A+I|0)*40|0)|0,z+((A+J|0)*40|0)|0,c[(H+(E<<2)&p)+20>>2]|0)|0;E=E+1|0;if(A)break;if((E|0)>=(F|0)){S=z;T=s;U=0;V=0;break q}}S=z;T=s;U=0;V=C<<24>>24==0?A:0-A|0}else{S=z;T=s;U=0;V=X}break}case 256:{ie=0;if((X|0)<0){S=z;T=s;U=W;V=X;r=(c[(s+(t*20|0)&p)+4>>2]|0)+-1|0;break}if(!X){S=z;T=s;U=W;V=0;r=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;break}else{S=z;T=s;U=W;V=X;r=(c[(s+(t*20|0)&p)+12>>2]|0)+-1|0;break}}case 261:{ie=0;t=c[(s+(r*20|0)&p)+4>>2]|0;if(!(b[(z+(t*40|0)&o)+8>>1]&1)){u=Vg(z+(t*40|0)|0)|0;u=(u|0)!=0|(G|0)!=0?3:0}else u=6;t=c[(s+(r*20|0)&p)+8>>2]|0;if(!(b[(z+(t*40|0)&o)+8>>1]&1)){t=Vg(z+(t*40|0)|0)|0;t=((t|0)!=0|(G|0)!=0)&1}else t=2;t=a[(((a[(C&n)>>0]|0)==72?41680:41696)+t+u&n)>>0]|0;u=c[(s+(r*20|0)&p)+12>>2]|0;J=z+(u*40|0)|0;if(t<<24>>24==2){S=z+(u*40|0)+8|0;b[(S&o)>>1]=e[(S&o)>>1]&48640|1;S=z;T=s;U=W;V=X;u=J;break}else{S=J;c[(S&p)>>2]=t&255;c[(S&p)+4>>2]=0;S=z+(u*40|0)+8|0;b[(S&o)>>1]=e[(S&o)>>1]&48640|4;S=z;T=s;U=W;V=X;u=J;break}}case 268:{ie=0;t=c[(s+(r*20|0)&p)+4>>2]|0;u=c[(s+(r*20|0)&p)+8>>2]|0;J=z+(u*40|0)|0;u=z+(u*40|0)+8|0;if(!(b[(u&o)>>1]&9312))b[(u&o)>>1]=1;else vg(J);if(!(b[(z+(t*40|0)&o)+8>>1]&1)){b[(u&o)>>1]=4;T=Vg(z+(t*40|0)|0)|0;S=J;c[(S&p)>>2]=(T|0)==0&(G|0)==0&1;c[(S&p)+4>>2]=0;S=z;T=s;U=W;V=X;u=J}else{S=z;T=s;U=W;V=X;u=J}break}case 273:{ie=0;t=c[(s+(r*20|0)&p)+4>>2]|0;u=c[(s+(r*20|0)&p)+8>>2]|0;J=z+(u*40|0)|0;u=z+(u*40|0)+8|0;if(!(b[(u&o)>>1]&9312))b[(u&o)>>1]=1;else vg(J);if(!(b[(z+(t*40|0)&o)+8>>1]&1)){b[(u&o)>>1]=4;T=Vg(z+(t*40|0)|0)|0;S=J;c[(S&p)>>2]=~T;c[(S&p)+4>>2]=~G;S=z;T=s;U=W;V=X;u=J}else{S=z;T=s;U=W;V=X;u=J}break}case 278:{ie=0;t=(c[(Hb&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]|0)|0;if(!(a[(t&n)>>0]|0)){a[(t&n)>>0]=1;S=z;T=s;U=W;V=X;break}else{S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0;break}}case 281:{ie=0;t=c[(s+(r*20|0)&p)+4>>2]|0;if(!(b[(z+(t*40|0)&o)+8>>1]&1)){t=+Ug(z+(t*40|0)|0)!=0.0;t=(t^(a[(C&n)>>0]|0)==46)&1}else t=c[(s+(r*20|0)&p)+12>>2]|0;if(!t){S=z;T=s;U=W;V=X}else{S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0}break}case 286:{ie=0;if(!(b[(z+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)&o)+8>>1]&1)){S=z;T=s;U=W;V=X}else{S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0}break}case 288:{ie=0;if(!(b[(z+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)&o)+8>>1]&1)){S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0}else{S=z;T=s;U=W;V=X}break}case 290:{ie=0;T=c[(s+(t*20|0)&p)+8>>2]|0;M=c[(s+(t*20|0)&p)+12>>2]|0;A=z+(M*40|0)|0;S=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;w=c[(S&p)+80>>2]|0;v=c[(S&p)>>2]|0;if(!(a[(S&n)+26>>0]|0)){if((v|0)!=0?(a[(v&n)+73>>0]|0)!=1:0){Td=jm(S)|0;ie=295}}else{Td=im(S)|0;ie=295}if((ie|0)==295?(ie=0,(Td|0)!=0):0){u=Td;ie=1318;break c}L=S+60|0;C=c[($d&p)>>2]|0;u:do if((c[(L&p)>>2]|0)==(C|0)){C=b[(S&o)+22>>1]|0;if((C&65535|0)>(T|0))ie=350;else{I=S+72|0;ie=318}}else{do if(a[(S&n)+25>>0]|0){if(!v){J=c[(S&p)+16>>2]|0;F=c[(z+(J*40|0)&p)+12>>2]|0;c[(S&p)+68>>2]=F;c[(S&p)+64>>2]=F;J=c[(z+(J*40|0)&p)+16>>2]|0;K=S+76|0;c[(K&p)>>2]=J;break}r=z+(M*40|0)+8|0;if(!(b[(r&o)>>1]&9312)){b[(r&o)>>1]=1;break u}else{vg(A);break u}}else{if(!(a[(S&n)+27>>0]&4)){km(v,td);I=e[(v&o)+40>>1]|0;J=c[(v&p)+32>>2]|0;c[(S&p)+76>>2]=J;C=c[(td&p)>>2]|0;c[(S&p)+64>>2]=C}else{C=S+64|0;lm(v,C);I=e[(v&o)+40>>1]|0;J=c[(v&p)+32>>2]|0;c[(S&p)+76>>2]=J;C=c[(C&p)>>2]|0}c[(S&p)+68>>2]=C>>>0>I>>>0?I:C;if(C>>>0>(c[(zb&p)>>2]|0)>>>0){u=x;ie=1316;break c}K=S+76|0;C=c[($d&p)>>2]|0;F=I}while(0);c[(L&p)>>2]=C;C=a[(J&n)>>0]|0;if(C<<24>>24>-1){H=C&255;c[(kd&p)>>2]=H;J=1}else{J=mm(J,kd)|0;H=c[(kd&p)>>2]|0}I=S+72|0;c[(I&p)>>2]=J&255;b[(S&o)+22>>1]=0;c[(w&p)>>2]=H;if(H>>>0>98307){u=x;ie=313;break c}if(H>>>0>(c[(S&p)+64>>2]|0)>>>0){u=x;ie=313;break c}if(F>>>0>>0){c[(K&p)>>2]=0;c[(S&p)+68>>2]=0;C=0;ie=318}else{C=0;ie=318}}while(0);do if((ie|0)==318){ie=0;J=c[(I&p)>>2]|0;H=c[(w&p)>>2]|0;if(J>>>0>>0){P=S+76|0;F=c[(P&p)>>2]|0;if(!F){U=Jd+0|0;V=U+40|0;do{c[(U&p)>>2]=0;U=U+4|0}while((U|0)<(V|0));J=nm(v,0,c[(w&p)>>2]|0,((d[(S&n)+27>>0]|0)>>>2&1^1)&255,Jd)|0;if(J){s=J;u=x;ie=1309;break c}C=S+22|0;O=C;C=b[(C&o)>>1]|0;J=c[(I&p)>>2]|0;H=c[(w&p)>>2]|0;N=c[(Jb&p)>>2]|0}else{O=S+22|0;N=F}E=C&65535;K=c[(w+(E<<2)&p)>>2]|0;c[(kd&p)>>2]=K;C=N+H|0;J=N+J|0;while(1){F=a[(J&n)>>0]|0;if(F<<24>>24>-1){L=F&255;c[(Ld&p)>>2]=L;J=J+1|0}else{J=J+((mm(J,Ld)|0)&255)|0;L=c[(Ld&p)>>2]|0}c[(S+(E<<2)&p)+84>>2]=L;if(L>>>0>11)F=(L+-12|0)>>>1;else F=d[(L&n)+34336>>0]|0;L=K+F|0;c[(kd&p)>>2]=L;if(L>>>0>>0){J=L;F=E;ie=331;break}F=E+1|0;c[(w+(F<<2)&p)>>2]=L;if((E|0)<(T|0)&J>>>0>>0){K=L;E=F}else break}if((ie|0)==331){ie=0;L=J;J=N+(H+1)|0}b[(O&o)>>1]=F;c[(I&p)>>2]=J-N;if(!(c[(P&p)>>2]|0)){if(!((b[(Kb&o)>>1]&9312)==0&(c[(Lb&p)>>2]|0)==0))Qg(Jd);b[(Kb&o)>>1]=1}if(J>>>0>=C>>>0){if(J>>>0>C>>>0){u=x;ie=343;break c}if((L|0)==(c[(S&p)+64>>2]|0))C=L;else{u=x;ie=343;break c}}else C=c[(S&p)+64>>2]|0;if(L>>>0>C>>>0){u=x;ie=343;break c}C=b[(O&o)>>1]|0}if((C&65535|0)<=(T|0)){if((a[(s+(t*20|0)&n)+1>>0]|0)==-8){Zl(A,c[(s+(t*20|0)&p)+16>>2]|0,2048);r=z+(M*40|0)+8|0;break}r=z+(M*40|0)+8|0;if(!(b[(r&o)>>1]&9312)){b[(r&o)>>1]=1;break}else{vg(A);break}}else ie=350}while(0);if((ie|0)==350){ie=0;r=z+(M*40|0)+8|0;if(b[(r&o)>>1]&9312)vg(A);J=c[(S+(T<<2)&p)+84>>2]|0;c[(Ld&p)>>2]=J;do if((c[(S&p)+68>>2]|0)>>>0<(c[(w+(T+1<<2)&p)>>2]|0)>>>0){V=a[(s+(t*20|0)&n)+3>>0]|0;if(!((V&255)>63?J>>>0>11&(J&1|0)==0|V<<24>>24<0:0)){if(J>>>0>11)C=(J+-12|0)>>>1;else C=d[(J&n)+34336>>0]|0;if(C){C=nm(v,c[(w+(T<<2)&p)>>2]|0,C,((d[(S&n)+27>>0]|0)>>>2&1^1)&255,A)|0;if(C){s=C;u=x;ie=1309;break c}om(c[(z+(M*40|0)&p)+16>>2]|0,J,A)|0;b[(r&o)>>1]=e[(r&o)>>1]&61439;break}}om(J>>>0<14?td:0,J,A)|0}else om((c[(S&p)+76>>2]|0)+(c[(w+(T<<2)&p)>>2]|0)|0,J,A)|0;while(0);a[(z+(M*40|0)&n)+10>>0]=Jc}w=e[(r&o)>>1]|0;if((w&4096|0)!=0?(Ac=z+(M*40|0)+16|0,Bc=c[(Ac&p)>>2]|0,(Bc|0)!=0):0){v=c[(z+(M*40|0)&p)+12>>2]|0;if(fh(A,v+2|0)|0){y=ge;z=je;r=m;m=x;ie=1317;break a}kw(c[(Ac&p)>>2]|0,Bc|0,v|0)|0;a[((c[(Ac&p)>>2]|0)+v&n)>>0]=0;a[((c[(Ac&p)>>2]|0)+v&n)+1>>0]=0;b[(r&o)>>1]=w&18|512;S=z;T=s;U=W;V=X;r=t}else{S=z;T=s;U=W;V=X;r=t}break}case 368:{ie=0;v=c[(s+(r*20|0)&p)+16>>2]|0;t=a[(v&n)>>0]|0;if(!(t<<24>>24)){S=z;T=s;U=W;V=X}else{w=z+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)|0;while(1){v=v+1|0;fm(w,t,Jc);t=a[(v&n)>>0]|0;if(!(t<<24>>24)){S=z;T=s;U=W;V=X;break}else w=w+40|0}}break}case 371:{ie=0;U=c[(s+(t*20|0)&p)+4>>2]|0;C=c[(s+(t*20|0)&p)+16>>2]|0;V=z+(U*40|0)|0;U=z+((U+-1+(c[(s+(t*20|0)&p)+8>>2]|0)|0)*40|0)|0;A=a[(Mb&n)>>0]|0;T=c[(s+(t*20|0)&p)+12>>2]|0;u=z+(T*40|0)|0;if(C){r=a[(C&n)>>0]|0;v=V;while(1){C=C+1|0;fm(v,r,Jc);r=a[(C&n)>>0]|0;if(!(r<<24>>24))break;else v=v+40|0}}N=(A&255)>3;L=0;K=0;O=0;C=0;w=U;while(1){E=b[(w&o)+8>>1]|0;I=E&65535;v:do if(!(I&1)){do if(!(I&4)){if(I&8){J=7;ie=388;break v}J=c[(w&p)+12>>2]|0;if(I&16384)J=(c[(w&p)>>2]|0)+J|0;J=(J<<1)+12|I>>>1&1}else{I=w;J=c[(I&p)>>2]|0;I=c[(I&p)+4>>2]|0;H=ew(J|0,I|0,63)|0;H=H^J;F=G^I;if(F>>>0<0|(F|0)==0&H>>>0<128){if(!((J&1|0)==(J|0)&0==(I|0)&N)){J=1;ie=388;break v}J=H+8|0;break}if(F>>>0<0|(F|0)==0&H>>>0<32768){J=2;ie=388;break v}if(F>>>0<0|(F|0)==0&H>>>0<8388608){J=3;ie=388;break v}if(F>>>0<0|(F|0)==0&H>>>0<2147483648){J=4;ie=388;break v}J=F>>>0<32768|(F|0)==32768&H>>>0<0?5:6;ie=388;break v}while(0);c[(w&p)+28>>2]=J;if(J>>>0>11){I=J;J=(J+-12|0)>>>1}else ie=391}else{J=0;ie=388}while(0);if((ie|0)==388){c[(w&p)+28>>2]=J;ie=391}if((ie|0)==391){ie=0;I=J;J=d[(J&n)+34336>>0]|0}do if(E&16384)if((L|0)==0&(K|0)==0){E=c[(w&p)>>2]|0;J=J-E|0;E=E+C|0;break}else{Rg(w)|0;E=C;break}else E=C;while(0);L=jw(J|0,((J|0)<0)<<31>>31|0,L|0,K|0)|0;K=G;if(I>>>0<128)J=1;else{H=0;J=0;do{J=J+1|0;I=mw(I|0,H|0,7)|0;H=G}while(((I|0)!=0|(H|0)!=0)&(J|0)<9)}J=J+O|0;w=w+-40|0;if(w>>>0>>0){F=J;P=E;break}else{O=J;C=E}}if((F|0)<127)I=F+1|0;else{I=F;H=((F|0)<0)<<31>>31;J=0;do{J=J+1|0;I=mw(I|0,H|0,7)|0;H=G}while(((I|0)!=0|(H|0)!=0)&(J|0)<9);F=J+F|0;I=F;H=((F|0)<0)<<31>>31;C=0;do{C=C+1|0;I=mw(I|0,H|0,7)|0;H=G}while(((I|0)!=0|(H|0)!=0)&(C|0)<9);I=((J|0)<(C|0)&1)+F|0}J=((I|0)<0)<<31>>31;E=jw(I|0,J|0,L|0,K|0)|0;N=G;S=c[(zb&p)>>2]|0;O=((S|0)<0)<<31>>31;if((N|0)>(O|0)|(N|0)==(O|0)&E>>>0>S>>>0){u=x;ie=1316;break c}if(fh(u,E)|0){y=ge;z=je;r=m;m=x;ie=1317;break a}A=c[(z+(T*40|0)&p)+16>>2]|0;if(I>>>0<128){a[(A&n)>>0]=I;K=1;L=V}else{K=(pm(A,I,J)|0)&255;L=V}while(1){H=c[(L&p)+28>>2]|0;if(H>>>0<128){a[(A+K&n)>>0]=H;J=1}else J=(pm(A+K|0,H,0)|0)&255;K=J+K|0;J=A+I|0;if(!(H>>>0<8&(H|0)!=0))if(H>>>0>11){C=c[(L&p)+12>>2]|0;kw(J|0,c[(L&p)+16>>2]|0,C|0)|0}else C=0;else{J=L;if(H>>>0>11)C=(H+-12|0)>>>1;else C=d[(H&n)+34336>>0]|0;F=c[(J&p)>>2]|0;J=c[(J&p)+4>>2]|0;H=C;while(1){H=H+-1|0;a[(A+H+I&n)>>0]=F;F=mw(F|0,J|0,8)|0;if(!H)break;else J=G}}L=L+40|0;if(L>>>0>U>>>0)break;else I=C+I|0}c[(z+(T*40|0)&p)+12>>2]=E;r=z+(T*40|0)+8|0;b[(r&o)>>1]=16;if(P){c[(u&p)>>2]=P;b[(r&o)>>1]=16400}a[(z+(T*40|0)&n)+10>>0]=1;S=z;T=s;U=W;V=X;r=t;break}case 446:{ie=0;if((c[(ae&p)>>2]|0)>0){u=x;ie=447;break c}if(!v)w=0;else{t=v;while(1)if(!(a[(t&n)>>0]|0))break;else t=t+1|0;w=t-v&1073741823}u=sm(le,0,(c[(Ob&p)>>2]|0)+(c[(Nb&p)>>2]|0)|0)|0;if(u){t=r;ie=1318;break c}t=mh(le,w+33|0,0)|0;if(!t){S=z;T=s;U=W;V=X;u=L}else{V=t+32|0;c[(t&p)>>2]=V;kw(V|0,v|0,w+1|0)|0;if(!(a[(ee&n)>>0]|0))c[(Ob&p)>>2]=(c[(Ob&p)>>2]|0)+1;else{a[(ee&n)>>0]=0;a[(Sb&n)>>0]=1}c[(t&p)+24>>2]=c[(Pb&p)>>2];c[(Pb&p)>>2]=t;S=Qb;T=c[(S&p)+4>>2]|0;U=t+8|0;c[(U&p)>>2]=c[(S&p)>>2];c[(U&p)+4>>2]=T;U=Rb;T=c[(U&p)+4>>2]|0;S=t+16|0;c[(S&p)>>2]=c[(U&p)>>2];c[(S&p)+4>>2]=T;S=z;T=s;U=W;V=X;u=L}break}case 486:{c[(Ob&p)>>2]=(c[(Ob&p)>>2]|0)+-1;ie=488;break}case 525:{ie=0;wm(c[((c[(Xd&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<4)&p)+4>>2]|0,c[(s+(r*20|0)&p)+12>>2]|0,Yc);T=c[(Yc&p)>>2]|0;S=u;c[(S&p)>>2]=T;c[(S&p)+4>>2]=((T|0)<0)<<31>>31;S=z;T=s;U=W;V=X;break}case 558:{ie=0;v=xm(f,c[(s+(t*20|0)&p)+4>>2]|0,c[(s+(t*20|0)&p)+8>>2]|0,-1,1)|0;if(!v){y=ge;z=je;r=m;m=x;ie=1317;break a}r=c[(s+(t*20|0)&p)+16>>2]|0;C=v+8|0;c[(C&p)>>2]=r;A=c[(s+(t*20|0)&p)+12>>2]|0;r=e[(r&o)+6>>1]<<2;u=r+148|0;w=mh(le,u,0)|0;if(!w){s=v;u=x;ie=560;break c}fw(w|0,0,u|0)|0;c[(v&p)+56>>2]=w;V=w+128|0;c[(w&p)+28>>2]=V;kw(V|0,c[(C&p)>>2]|0,r+20|0)|0;c[(w&p)+140>>2]=0;if(A)b[(w&o)+134>>1]=A;r=c[(Xd&p)>>2]|0;u=c[((c[((c[(r&p)+4>>2]|0)&p)+4>>2]|0)&p)+32>>2]|0;c[(w&p)+12>>2]=u;a[(w&n)+59>>0]=1;a[(w&n)+57>>0]=0;c[(w&p)+24>>2]=le;c[(w&p)+72>>2]=w;if(((a[(_b&n)>>0]|0)!=2?(Dc=c[2242]|0,c[(w&p)>>2]=ca(Dc,u)|0,V=c[((c[(r&p)+12>>2]|0)&p)+80>>2]|0,V=(V|0)<(Dc|0)?Dc:V,Dc=((u|0)<0)<<31>>31,V=sw(V|0,((V|0)<0)<<31>>31|0,u|0,Dc|0)|0,U=G,c[(w&p)+4>>2]=(U|0)<0|(U|0)==0&V>>>0<536870912?V:536870912,(c[2234]|0)==0):0)?(c[(w&p)+52>>2]=u,V=qg(u,Dc)|0,c[(w&p)+40>>2]=V,(V|0)==0):0){s=7;u=x;ie=1309;break c}else{S=z;T=s;U=W;V=X;u=L;r=t}break}case 566:{ie=0;T=(c[((c[(Ib&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<2)&p)>>2]|0)+40|0;V=T;U=c[(V&p)>>2]|0;V=c[(V&p)+4>>2]|0;S=jw(U|0,V|0,1,0)|0;c[(T&p)>>2]=S;c[(T&p)+4>>2]=G;if((U|0)==0&(V|0)==0){S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0}else{S=z;T=s;U=W;V=X}break}case 568:{ie=0;r=xm(f,c[(s+(t*20|0)&p)+4>>2]|0,c[(s+(t*20|0)&p)+12>>2]|0,-1,0)|0;if(!r){y=ge;z=je;r=m;m=x;ie=1317;break a}a[(r&n)+25>>0]=1;c[(r&p)+16>>2]=c[(s+(t*20|0)&p)+8>>2];S=r+27|0;a[(S&n)>>0]=a[(S&n)>>0]|4;S=z;T=s;U=W;V=X;r=t;break}case 570:{ie=0;S=s+(r*20|0)+4|0;Bm(f,c[((c[(Ib&p)>>2]|0)+(c[(S&p)>>2]<<2)&p)>>2]|0);c[((c[(Ib&p)>>2]|0)+(c[(S&p)>>2]<<2)&p)>>2]=0;S=z;T=s;U=W;V=X;break}case 571:{ie=0;H=c[((c[(Ib&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<2)&p)>>2]|0;a[(H&n)+25>>0]=0;if(!(a[(H&n)+27>>0]&4)){V=c[(s+(r*20|0)&p)+16>>2]|0;c[(wd&p)>>2]=c[(H&p)+8>>2];b[($b&o)>>1]=V;a[(cc&n)>>0]=(K<<1&2^2)+255;V=c[(s+(r*20|0)&p)+12>>2]|0;t=z+(V*40|0)|0;c[(dc&p)>>2]=t;if(b[(z+(V*40|0)&o)+8>>1]&16384)Rg(t)|0;u=Cm(c[(H&p)>>2]|0,wd,0,0,0,Ad)|0;if(!u){u=K;J=L}else{t=r;ie=1318;break c}}else{C=c[(s+(r*20|0)&p)+12>>2]|0;A=z+(C*40|0)|0;C=z+(C*40|0)+8|0;if((b[(C&o)>>1]&14)==2)rh(A,0);J=Vg(A)|0;I=G;C=e[(C&o)>>1]|0;do if(!(C&4)){if(!(C&8)){S=z;T=s;U=W;V=X;u=L;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0;break q}B=+h[(A&q)>>3];D=+(J>>>0)+4294967296.0*+(I|0);if(B>31)+K|0;break}else{C=(B>D&(K&1|0)==0&1)+K|0;break}}else C=K;while(0);u=Cm(c[(H&p)>>2]|0,0,J,I,0,Ad)|0;V=H+48|0;c[(V&p)>>2]=J;c[(V&p)+4>>2]=I;if(!u){u=C;J=L}else{t=r;ie=1318;break c}}a[(H&n)+26>>0]=0;c[(H&p)+60>>2]=0;t=c[(Ad&p)>>2]|0;do if((u|0)>63){if((t|0)>=0?!((t|0)==0&(u|0)==65):0){c[(Ad&p)>>2]=0;S=z;T=s;U=W;V=X;u=J;break q}c[(Ad&p)>>2]=0;u=Dm(c[(H&p)>>2]|0,Ad)|0;if(!u)ie=593;else{t=r;ie=1318;break c}}else{if((t|0)<=0?!((t|0)==0&(u|0)==62):0){t=(a[((c[(H&p)>>2]|0)&n)+73>>0]|0)!=1&1;c[(Ad&p)>>2]=t;break}c[(Ad&p)>>2]=0;u=Em(c[(H&p)>>2]|0,Ad)|0;if(!u)ie=593;else{t=r;ie=1318;break c}}while(0);if((ie|0)==593){ie=0;t=c[(Ad&p)>>2]|0}if(!t){S=z;T=s;U=W;V=X;u=J}else{S=z;T=s;U=W;V=X;u=J;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0}break}case 596:{ie=0;S=c[((c[(Ib&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<2)&p)>>2]|0;a[(S&n)+25>>0]=0;U=Vg(z+((c[(s+(r*20|0)&p)+8>>2]|0)*40|0)|0)|0;T=S+48|0;c[(T&p)>>2]=U;c[(T&p)+4>>2]=G;a[(S&n)+26>>0]=1;S=z;T=s;U=W;V=X;break}case 597:{ie=0;I=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;r=c[(s+(t*20|0)&p)+12>>2]|0;J=z+(r*40|0)|0;c[(od&p)>>2]=0;K=s+(t*20|0)+16|0;C=c[(K&p)>>2]|0;v=I+8|0;A=c[(v&p)>>2]|0;w:do if((C|0)>0){c[(xd&p)>>2]=A;C=C&65535;b[(ec&o)>>1]=C;c[(fc&p)>>2]=J;if(!(C<<16>>16))v=xd;else{r=J;A=0;while(1){if(b[(r+(A*40|0)&o)+8>>1]&16384){Rg(r+(A*40|0)|0)|0;C=b[(ec&o)>>1]|0}A=A+1|0;if((A|0)>=(C&65535|0)){v=xd;break w}r=c[(fc&p)>>2]|0}}}else{C=Fm(A,Sc,191,od)|0;if(!C){y=ge;z=je;r=m;m=x;ie=1317;break a}if(b[(z+(r*40|0)&o)+8>>1]&16384)Rg(J)|0;Gm(c[(v&p)>>2]|0,c[(z+(r*40|0)&p)+12>>2]|0,c[(z+(r*40|0)&p)+16>>2]|0,C);v=C}while(0);a[(v&n)+6>>0]=0;x:do if((a[(H&n)>>0]|0)==67?(Ec=b[(v&o)+4>>1]|0,Ec<<16>>16!=0):0){C=c[(v&p)+8>>2]|0;A=0;while(1){if(b[(C+(A*40|0)&o)+8>>1]&1)break;A=A+1|0;if((A|0)>=(Ec&65535|0)){L=t;r=t;break x}}L=t;r=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0}else{L=t;r=t}while(0);C=Cm(c[(I&p)>>2]|0,v,0,0,0,Bd)|0;if(!(c[(K&p)>>2]|0))mg(le,c[(od&p)>>2]|0);if(C){t=r;s=C;u=x;ie=1309;break c}t=c[(Bd&p)>>2]|0;c[(I&p)+12>>2]=t;t=(t|0)==0;a[(I&n)+25>>0]=t&1^1;a[(I&n)+26>>0]=0;c[(I&p)+60>>2]=0;if((a[(H&n)>>0]|0)==69){if(!t){S=z;T=s;U=W;V=X;break}S=z;T=s;U=W;V=X;r=(c[(s+(L*20|0)&p)+8>>2]|0)+-1|0;break}else{if(t){S=z;T=s;U=W;V=X;break}S=z;T=s;U=W;V=X;r=(c[(s+(L*20|0)&p)+8>>2]|0)+-1|0;break}}case 624:{ie=0;S=(c[((c[(Ib&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<2)&p)>>2]|0)+40|0;T=S;U=c[(T&p)>>2]|0;T=c[(T&p)+4>>2]|0;V=jw(U|0,T|0,1,0)|0;c[(S&p)>>2]=V;c[(S&p)+4>>2]=G;S=u;c[(S&p)>>2]=U;c[(S&p)+4>>2]=T;S=z;T=s;U=W;V=X;break}case 647:{ie=0;I=c[(s+(r*20|0)&p)+8>>2]|0;v=c[((c[(Ib&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<2)&p)>>2]|0;t=c[(s+(r*20|0)&p)+12>>2]|0;if(C<<24>>24==75){F=z+(t*40|0)|0;E=c[(F&p)>>2]|0;F=c[(F&p)+4>>2]|0}else{E=t;F=((t|0)<0)<<31>>31}H=s+(r*20|0)+3|0;J=a[(H&n)>>0]|0;if(J&1)c[(ub&p)>>2]=(c[(ub&p)>>2]|0)+1;if(J&2){m=ne;c[(m&p)>>2]=E;c[(m&p)+4>>2]=F;m=E;l=F}C=b[(z+(I*40|0)&o)+8>>1]|0;if(C&1){c[(z+(I*40|0)&p)+16>>2]=0;c[(z+(I*40|0)&p)+12>>2]=0}if(!(J&16))A=0;else A=c[(v&p)+12>>2]|0;if(!(C&16384))C=0;else C=c[(z+(I*40|0)&p)>>2]|0;C=Im(c[(v&p)>>2]|0,0,E,F,c[(z+(I*40|0)&p)+16>>2]|0,c[(z+(I*40|0)&p)+12>>2]|0,C,(J&255)>>>3&1,A)|0;a[(v&n)+26>>0]=0;c[(v&p)+60>>2]=0;if(C){t=r;s=C;u=x;ie=1309;break c}t=c[(gc&p)>>2]|0;if((t|0)!=0?(Fc=c[(s+(r*20|0)&p)+16>>2]|0,(Fc|0)!=0):0){bc[t&1](c[(hc&p)>>2]|0,(a[(H&n)>>0]&4)!=0?23:18,c[((c[(Xd&p)>>2]|0)+(a[(v&n)+24>>0]<<4)&p)>>2]|0,Fc,E,F);S=z;T=s;U=W;V=X}else{S=z;T=s;U=W;V=X}break}case 671:{ie=0;S=c[(ub&p)>>2]|0;c[(vb&p)>>2]=S;c[(wb&p)>>2]=(c[(wb&p)>>2]|0)+S;c[(ub&p)>>2]=0;S=z;T=s;U=W;V=X;break}case 672:{ie=0;J=c[((c[(Ib&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<2)&p)>>2]|0;I=c[(s+(r*20|0)&p)+12>>2]|0;H=c[(s+(r*20|0)&p)+16>>2]|0;t=c[(J&p)+56>>2]|0;A=t+32|0;C=c[(A&p)>>2]|0;J=c[(J&p)+8>>2]|0;if(!C){C=Fm(J,0,0,md)|0;c[(A&p)>>2]=C;if(!C){t=r;s=7;u=x;ie=1309;break c}b[(C&o)+4>>1]=H}if(!(a[(t&n)+56>>0]|0)){t=c[(t&p)+36>>2]|0;A=t;t=t+8|0}else{V=c[(t&p)+20>>2]|0;t=c[((c[(V&p)+8>>2]|0)&p)+4>>2]|0;V=c[(V&p)+12>>2]|0;A=V+(t*56|0)+20|0;t=c[(V+(t*56|0)&p)+32>>2]|0}Gm(J,c[(A&p)>>2]|0,t,C);y:do if((H|0)>0){t=c[(C&p)+8>>2]|0;v=0;while(1){if(b[(t+(v*40|0)&o)+8>>1]&1)break y;v=v+1|0;if((v|0)>=(H|0)){ie=682;break}}}else ie=682;while(0);if((ie|0)==682){ie=0;if(!(Km(c[(z+(I*40|0)&p)+12>>2]|0,c[(z+(I*40|0)&p)+16>>2]|0,C,0)|0)){S=z;T=s;U=W;V=X;break}}S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0;break}case 700:{ie=0;b[(u&o)+8>>1]=1;S=z;T=s;U=W;V=X;break}case 708:{ie=0;b[(u&o)+8>>1]=1;S=z;T=s;U=W;V=X;break}case 711:{ie=0;t=c[((c[(Ib&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<2)&p)>>2]|0;a[(t&n)+25>>0]=1;c[(t&p)+60>>2]=0;t=c[(t&p)>>2]|0;if(!t){S=z;T=s;U=W;V=X}else{S=t+56|0;Wc(c[(S&p)>>2]|0);c[(S&p)>>2]=0;a[(t&n)+73>>0]=0;S=z;T=s;U=W;V=X}break}case 801:{ie=0;t=c[((c[(Ib&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<2)&p)>>2]|0;u=c[(t&p)>>2]|0;K=L+8|0;b[(K&o)>>1]=1;if((a[(u&n)+73>>0]|0)!=1?(Vd=jm(t)|0,(Vd|0)!=0):0){t=r;u=Vd;ie=1318;break c}if(!(a[(t&n)+25>>0]|0)){V=Sd;c[(V&p)>>2]=0;c[(V&p)+4>>2]=0;km(u,Sd);b[(qc&o)>>1]=0;c[(sc&p)>>2]=le;c[(uc&p)>>2]=0;u=nm(u,0,c[(Sd&p)>>2]|0,1,$c)|0;do if(!u){t=c[(vc&p)>>2]|0;u=a[(t&n)>>0]|0;if(u<<24>>24>-1){C=u&255;c[(qd&p)>>2]=C}else{mm(t,qd)|0;C=c[(qd&p)>>2]|0}if(!(C>>>0<3?1:(C|0)>(c[(wc&p)>>2]|0))){t=(c[(vc&p)>>2]|0)+(C+-1)|0;u=a[(t&n)>>0]|0;if(u<<24>>24>-1){u=u&255;c[(Nd&p)>>2]=u}else{mm(t,Nd)|0;u=c[(Nd&p)>>2]|0}if(!((u+-1|0)>>>0>8|(u|0)==7)){if(u>>>0>11)t=(u+-12|0)>>>1;else t=d[(u&n)+34336>>0]|0;v=c[(wc&p)>>2]|0;if(v>>>0>=(t+C|0)>>>0){om((c[(vc&p)>>2]|0)+(v-t)|0,u,Qd)|0;v=Qd;t=c[(v&p)>>2]|0;v=c[(v&p)+4>>2]|0;if((b[(qc&o)>>1]&9312)==0&(c[(uc&p)>>2]|0)==0){u=0;break}Qg($c);u=0;break}}}if(!((b[(qc&o)>>1]&9312)==0&(c[(uc&p)>>2]|0)==0))Qg($c);c[(ke&p)>>2]=68698;c[(ke&p)+4>>2]=10788;bd(11,13600,ke);u=11;t=0;v=0}else{t=0;v=0}while(0);if(u){t=r;ie=1318;break c}S=L;c[(S&p)>>2]=t;c[(S&p)+4>>2]=v;b[(K&o)>>1]=4;S=z;T=s;U=W;V=X;u=L}else{S=z;T=s;U=W;V=X;u=L}break}case 865:{ie=0;w=c[(C&p)>>2]|0;C=c[((c[(Xd&p)>>2]|0)+(K<<4)&p)+12>>2]|0;t=c[(C&p)+16>>2]|0;if(t)do{v=(c[(t&p)+8>>2]|0)+32|0;if((c[(v&p)>>2]|0)==(A|0))c[(v&p)>>2]=w;t=c[(t&p)>>2]|0}while((t|0)!=0);t=c[(C&p)+32>>2]|0;if(t)do{v=(c[(t&p)+8>>2]|0)+40|0;if((c[(v&p)>>2]|0)==(A|0))c[(v&p)>>2]=w;t=c[(t&p)>>2]|0}while((t|0)!=0);S=z;T=s;U=W;V=X;x=K+1&255;break}case 878:{ie=0;_m(le,u);S=z;T=s;U=W;V=X;u=J;break}case 881:{ie=0;V=c[(s+(r*20|0)&p)+4>>2]|0;c[(Zc&p)>>2]=le;c[(ia&p)>>2]=V;c[(ja&p)>>2]=je;u=c[(s+(r*20|0)&p)+16>>2]|0;c[(ke&p)>>2]=c[((c[(Xd&p)>>2]|0)+(V<<4)&p)>>2];c[(ke&p)+4>>2]=(V|0)==1?13184:13208;c[(ke&p)+8>>2]=u;u=uh(le,42048,ke)|0;if(!u){t=r;u=x;ie=882;break c}a[(ka&n)>>0]=1;c[(la&p)>>2]=0;t=Qe(le,u,22,Zc,0)|0;t=(t|0)==0?c[(la&p)>>2]|0:t;mg(le,u);a[(ka&n)>>0]=0;if(!t){S=z;T=s;U=W;V=X;u=J}else{s=t;t=r;u=x;ie=884;break c}break}case 886:{ie=0;kg(le,Ik((c[((c[(Xd&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<4)&p)+12>>2]|0)+8|0,c[(s+(r*20|0)&p)+16>>2]|0,0)|0);c[(Tb&p)>>2]=c[(Tb&p)>>2]|2;S=z;T=s;U=W;V=X;break}case 887:{ie=0;C=Ik((c[((c[(Xd&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<4)&p)+12>>2]|0)+24|0,c[(s+(r*20|0)&p)+16>>2]|0,0)|0;if(C){t=(c[(C&p)+12>>2]|0)+8|0;u=c[(t&p)>>2]|0;z:do if((u|0)==(C|0))c[(t&p)>>2]=c[(C&p)+20>>2];else{do{if(!u)break z;t=u+20|0;u=c[(t&p)>>2]|0}while((u|0)!=(C|0));c[(t&p)>>2]=c[(C&p)+20>>2]}while(0);Jk(le,C)}c[(Tb&p)>>2]=c[(Tb&p)>>2]|2;S=z;T=s;U=W;V=X;u=J;break}case 895:{ie=0;C=Ik((c[((c[(Xd&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<4)&p)+12>>2]|0)+40|0,c[(s+(r*20|0)&p)+16>>2]|0,0)|0;if(!C){S=z;T=s;U=W;V=X}else{t=c[(C&p)+20>>2]|0;if((t|0)==(c[(C&p)+24>>2]|0)){t=bn(t+8|0,c[(C&p)+4>>2]|0,ke)|0;if(!t)t=0;else t=c[(t&p)+8>>2]|0;v=t+64|0;while(1){V=c[(v&p)>>2]|0;t=V+32|0;if((V|0)==(C|0))break;else v=t}c[(v&p)>>2]=c[(t&p)>>2]}jg(le,C);c[(Tb&p)>>2]=c[(Tb&p)>>2]|2;S=z;T=s;U=W;V=X}break}case 903:{ie=0;L=c[(s+(t*20|0)&p)+8>>2]|0;v=mh(le,(L<<2)+4|0,0)|0;if(!v){y=ge;z=je;r=m;m=x;ie=1317;break a}A=c[(s+(t*20|0)&p)+12>>2]|0;r=c[(s+(t*20|0)&p)+4>>2]|0;M=z+(r*40|0)|0;if((L|0)>0){C=0;do{V=Vg(z+((C+r|0)*40|0)|0)|0;c[(v+(C<<2)&p)>>2]=V;C=C+1|0}while((C|0)!=(L|0));C=L}else C=0;c[(v+(C<<2)&p)>>2]=0;I=c[((c[(Xd&p)>>2]|0)+(d[(s+(t*20|0)&n)+3>>0]<<4)&p)+4>>2]|0;P=z+(A*40|0)|0;V=c[(P&p)>>2]|0;O=c[(I&p)+4>>2]|0;c[(O&p)+4>>2]=c[(I&p)>>2];I=c[(O&p)>>2]|0;w=c[((c[(I&p)+204>>2]|0)&p)+12>>2]|0;c[(Sd&p)>>2]=O;c[(ma&p)>>2]=I;I=c[(O&p)+44>>2]|0;c[(na&p)>>2]=I;c[(oa&p)>>2]=V;c[(pa&p)>>2]=0;c[(pa&p)+4>>2]=0;c[(pa&p)+8>>2]=0;c[(pa&p)+12>>2]=0;c[(pa&p)+16>>2]=0;do if(!I){A=0;C=0}else{J=(I>>>3)+1|0;H=qg(J,0)|0;if(!H){c[(sa&p)>>2]=0;A=0;C=1;break}fw(H|0,0,J|0)|0;c[(sa&p)>>2]=H;N=O+32|0;J=(((c[2514]|0)>>>0)/((c[(N&p)>>2]|0)>>>0)|0)+1|0;if(J>>>0<=I>>>0){V=H+(J>>>3)|0;a[(V&n)>>0]=d[(V&n)>>0]|1<<(J&7)}c[(ua&p)>>2]=Nd;c[(va&p)>>2]=Nd;c[(ta&p)>>2]=0;c[(wa&p)>>2]=0;c[(xa&p)>>2]=100;c[(ya&p)>>2]=1e9;a[(Aa&n)>>0]=0;a[(za&n)>>0]=2;c[(ra&p)>>2]=43592;C=c[((c[(O&p)+12>>2]|0)&p)+56>>2]|0;cn(Sd,1,d[(C&n)+33>>0]<<16|d[(C&n)+32>>0]<<24|d[(C&n)+34>>0]<<8|d[(C&n)+35>>0],d[(C&n)+37>>0]<<16|d[(C&n)+36>>0]<<24|d[(C&n)+38>>0]<<8|d[(C&n)+39>>0]);c[(ra&p)>>2]=0;C=c[(oa&p)>>2]|0;if(!((L|0)<1|(C|0)==0)){F=O+17|0;H=0;do{I=v+(H<<2)|0;J=c[(I&p)>>2]|0;if(J){if((a[(F&n)>>0]|0)!=0&(J|0)>1){dn(Sd,J,1,0);J=c[(I&p)>>2]|0}c[(ra&p)>>2]=43608;en(Sd,J,0,0)|0;c[(ra&p)>>2]=0;C=c[(oa&p)>>2]|0}H=H+1|0}while(!((H|0)>=(L|0)|(C|0)==0))}if(!((c[(na&p)>>2]|0)==0|(C|0)==0)){E=O+17|0;C=O+36|0;L=1;do{H=L>>>3;J=a[((c[(sa&p)>>2]|0)+H&n)>>0]|0;F=1<<(L&7);do if(!(J&255&F)){if(L>>>0<2)I=0;else{I=L+-2|0;I=I-((I>>>0)%(((((c[(C&p)>>2]|0)>>>0)/5|0)+1|0)>>>0)|0)|0;I=((I+1|0)==(((c[2514]|0)>>>0)/((c[(N&p)>>2]|0)>>>0)|0|0)?3:2)+I|0}if((I|0)==(L|0)?(a[(E&n)>>0]|0)!=0:0)break;c[(ke&p)>>2]=L;fn(Sd,43632,ke);J=a[((c[(sa&p)>>2]|0)+H&n)>>0]|0}while(0);do if(J&255&F){if(L>>>0<2)J=0;else{J=L+-2|0;J=J-((J>>>0)%(((((c[(C&p)>>2]|0)>>>0)/5|0)+1|0)>>>0)|0)|0;J=((J+1|0)==(((c[2514]|0)>>>0)/((c[(N&p)>>2]|0)>>>0)|0|0)?3:2)+J|0}if((J|0)!=(L|0))break;if(!(a[(E&n)>>0]|0))break;c[(ke&p)>>2]=L;fn(Sd,43656,ke)}while(0);L=L+1|0}while(!((c[(oa&p)>>2]|0)==0?1:L>>>0>(c[(na&p)>>2]|0)>>>0))}C=c[((c[((c[(O&p)>>2]|0)&p)+204>>2]|0)&p)+12>>2]|0;if((w|0)!=(C|0)){c[(ke&p)>>2]=w;c[(ke&p)+4>>2]=C;fn(Sd,43696,ke)}Wc(c[(sa&p)>>2]|0);if(c[(qa&p)>>2]|0){gn(ta);A=0;C=(c[(pa&p)>>2]|0)+1|0;break}C=c[(pa&p)>>2]|0;if(!C)gn(ta);A=tg(ta)|0}while(0);mg(le,v);U=P;U=dw(c[(U&p)>>2]|0,c[(U&p)+4>>2]|0,C|0,((C|0)<0)<<31>>31|0)|0;V=P;c[(V&p)>>2]=U;c[(V&p)+4>>2]=G;r=z+(r*40|0)+8|0;if(!(b[(r&o)>>1]&9312))b[(r&o)>>1]=1;else vg(M);if(C){if(!A){y=ge;z=je;r=m;m=x;ie=1317;break a}Xg(M,A,-1,1,1)|0}Yl(M,xb)|0;S=z;T=s;U=W;V=X;r=t;break}case 947:{ie=0;v=c[(s+(t*20|0)&p)+4>>2]|0;r=z+(v*40|0)|0;u=c[(s+(t*20|0)&p)+8>>2]|0;v=z+(v*40|0)+8|0;if((b[(v&o)>>1]&32)==0?(hn(r),(b[(v&o)>>1]&32)==0):0){y=ge;z=je;r=m;m=x;ie=1317;break a}S=z+(u*40|0)|0;jn(c[(r&p)>>2]|0,c[(S&p)>>2]|0,c[(S&p)+4>>2]|0);S=z;T=s;U=W;V=X;u=J;r=t;break}case 966:{ie=0;r=c[(s+(t*20|0)&p)+4>>2]|0;P=z+(r*40|0)|0;O=z+((c[(s+(t*20|0)&p)+12>>2]|0)*40|0)|0;N=c[(s+(t*20|0)&p)+16>>2]|0;r=z+(r*40|0)+8|0;if((b[(r&o)>>1]&32)==0?(hn(P),(b[(r&o)>>1]&32)==0):0){y=ge;z=je;r=m;m=x;ie=1317;break a}if(N){L=c[(P&p)>>2]|0;v=O;M=c[(v&p)>>2]|0;v=c[(v&p)+4>>2]|0;K=L+28|0;if((c[(K&p)>>2]|0)!=(N|0)){C=L+8|0;J=c[(C&p)>>2]|0;if(J){I=L+20|0;A=L+26|0;if(!(b[(A&o)>>1]&1))J=kn(J)|0;H=c[(I&p)>>2]|0;A:do if(!H){ld=J;rd=I;ie=978}else{while(1){I=H+12|0;F=c[(I&p)>>2]|0;if(!F)break;E=H+8|0;ln(F,ke,Sd);c[(I&p)>>2]=0;J=mn(c[(ke&p)>>2]|0,J)|0;H=c[(E&p)>>2]|0;if(!H){ld=J;rd=E;ie=978;break A}}c[(I&p)>>2]=nn(J)|0}while(0);if((ie|0)==978?(ie=0,Kc=on(L)|0,c[(rd&p)>>2]=Kc,(Kc|0)!=0):0){V=Kc;c[(V&p)>>2]=0;c[(V&p)+4>>2]=0;c[(Kc&p)+8>>2]=0;c[(Kc&p)+12>>2]=nn(ld)|0}c[(C&p)>>2]=0;c[(L&p)+12>>2]=0;b[(A&o)>>1]=e[(A&o)>>1]|1}c[(K&p)>>2]=N}C=c[(L&p)+20>>2]|0;B:do if(C){C:while(1){A=c[(C&p)+12>>2]|0;if(A)do{r=A;E=c[(r&p)>>2]|0;r=c[(r&p)+4>>2]|0;if((r|0)<(v|0)|(r|0)==(v|0)&E>>>0>>0)A=A+8|0;else{if(!((r|0)>(v|0)|(r|0)==(v|0)&E>>>0>M>>>0))break C;A=A+12|0}A=c[(A&p)>>2]|0}while((A|0)!=0);C=c[(C&p)+8>>2]|0;if(!C)break B}S=z;T=s;U=W;V=X;r=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;break q}while(0);if((N|0)>-1)C=O;else{S=z;T=s;U=W;V=X;r=t;break}}else C=O;S=C;jn(c[(P&p)>>2]|0,c[(S&p)>>2]|0,c[(S&p)+4>>2]|0);S=z;T=s;U=W;V=X;r=t;break}case 993:{ie=0;K=c[(s+(r*20|0)&p)+16>>2]|0;I=c[(s+(r*20|0)&p)+12>>2]|0;L=z+(I*40|0)|0;if((a[(s+(r*20|0)&n)+3>>0]|0)!=0?(Lc=c[(K&p)+20>>2]|0,nd=c[(sb&p)>>2]|0,(nd|0)!=0):0){t=nd;while(1){if((c[(t&p)+28>>2]|0)==(Lc|0)){S=z;T=s;U=W;V=X;break q}t=c[(t&p)+4>>2]|0;if(!t){t=r;break}}}else t=r;r=c[(tb&p)>>2]|0;if((r|0)>=(c[(Ba&p)>>2]|0)){u=x;ie=998;break c}E=z+(I*40|0)+8|0;if(!(b[(E&o)>>1]&64)){C=K+12|0;A=c[(C&p)>>2]|0;r=A+(c[(K&p)+8>>2]|0)|0;s=K+16|0;A=(A<<2)+80+(c[(s&p)>>2]|0)+(r*40|0)|0;J=mh(le,A,((A|0)<0)<<31>>31)|0;if(!J){y=ge;z=je;r=m;m=x;ie=1317;break a}fw(J|0,0,A|0)|0;if(!((b[(E&o)>>1]&9312)==0?(c[(z+(I*40|0)&p)+24>>2]|0)==0:0))Qg(L);b[(E&o)>>1]=64;c[(L&p)>>2]=J;c[(J&p)>>2]=f;c[(J&p)+60>>2]=r;c[(J&p)+64>>2]=c[(C&p)>>2];c[(J&p)+44>>2]=t;c[(J&p)+16>>2]=c[(Nc&p)>>2];c[(J&p)+52>>2]=c[(Ca&p)>>2];c[(J&p)+24>>2]=c[(Ib&p)>>2];c[(J&p)+40>>2]=c[(Da&p)>>2];c[(J&p)+8>>2]=c[(zc&p)>>2];c[(J&p)+48>>2]=c[(Ea&p)>>2];c[(J&p)+28>>2]=c[(K&p)+20>>2];c[(J&p)+20>>2]=c[(Hb&p)>>2];c[(J&p)+56>>2]=c[(Fa&p)>>2];z=J+80|0;r=z+(r*40|0)|0;if((z|0)!=(r|0))do{b[(z&o)+8>>1]=128;c[(z&p)+32>>2]=le;z=z+40|0}while((z|0)!=(r|0));r=c[(tb&p)>>2]|0;z=J}else{s=K+16|0;z=c[(L&p)>>2]|0}c[(tb&p)>>2]=r+1;c[(z&p)+4>>2]=c[(sb&p)>>2];S=z+32|0;c[(S&p)>>2]=m;c[(S&p)+4>>2]=l;c[(z&p)+68>>2]=c[(ub&p)>>2];c[(z&p)+72>>2]=c[((c[(f&p)>>2]|0)&p)+80>>2];c[(ub&p)>>2]=0;c[(sb&p)>>2]=z;S=z+40|0;c[(Nc&p)>>2]=S;U=c[(z&p)+60>>2]|0;c[(Ca&p)>>2]=U;V=c[(z&p)+64>>2]&65535;c[(Da&p)>>2]=V;U=S+((U+1|0)*40|0)|0;c[(Ib&p)>>2]=U;T=c[(K&p)>>2]|0;c[(zc&p)>>2]=T;c[(Ea&p)>>2]=c[(K&p)+4>>2];V=U+(V<<2)|0;c[(Hb&p)>>2]=V;U=c[(s&p)>>2]|0;c[(Fa&p)>>2]=U;fw(V|0,0,U|0)|0;U=W;V=X;r=-1;break}case 1009:{ie=0;S=c[(sb&p)>>2]|0;Zl(u,(c[(S&p)+16>>2]|0)+(((c[((c[(S&p)+8>>2]|0)+((c[(S&p)+44>>2]|0)*20|0)&p)+4>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]|0)|0)*40|0)|0,4096);S=z;T=s;U=W;V=X;break}case 1010:{ie=0;if(c[(Tb&p)>>2]&16777216){T=c[(s+(r*20|0)&p)+8>>2]|0;S=Rb;T=jw(c[(S&p)>>2]|0,c[(S&p)+4>>2]|0,T|0,((T|0)<0)<<31>>31|0)|0;S=Rb;c[(S&p)>>2]=T;c[(S&p)+4>>2]=G;S=z;T=s;U=W;V=X;u=J;break}t=c[(s+(r*20|0)&p)+8>>2]|0;u=((t|0)<0)<<31>>31;if(!(c[(s+(r*20|0)&p)+4>>2]|0)){T=_d;T=jw(c[(T&p)>>2]|0,c[(T&p)+4>>2]|0,t|0,u|0)|0;S=_d;c[(S&p)>>2]=T;c[(S&p)+4>>2]=G;S=z;T=s;U=W;V=X;u=J;break}else{T=Qb;T=jw(c[(T&p)>>2]|0,c[(T&p)+4>>2]|0,t|0,u|0)|0;S=Qb;c[(S&p)>>2]=T;c[(S&p)+4>>2]=G;S=z;T=s;U=W;V=X;u=J;break}}case 1015:{ie=0;if(!(c[(s+(r*20|0)&p)+4>>2]|0)){V=_d;if(!((c[(V&p)>>2]|0)==0&(c[(V&p)+4>>2]|0)==0)){S=z;T=s;U=W;V=X;break}V=Rb;if(!((c[(V&p)>>2]|0)==0&(c[(V&p)+4>>2]|0)==0)){S=z;T=s;U=W;V=X;break}S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0;break}else{V=Qb;if(!((c[(V&p)>>2]|0)==0&(c[(V&p)+4>>2]|0)==0)){S=z;T=s;U=W;V=X;break}V=Rb;if(!((c[(V&p)>>2]|0)==0&(c[(V&p)+4>>2]|0)==0)){S=z;T=s;U=W;V=X;break}S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0;break}}case 1022:{ie=0;t=c[(sb&p)>>2]|0;if(!t)v=z+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)|0;else{while(1){u=c[(t&p)+4>>2]|0;if(!u)break;else t=u}v=(c[(t&p)+16>>2]|0)+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)|0}U=Vg(v)|0;V=v;c[(V&p)>>2]=U;c[(V&p)+4>>2]=G;V=v+8|0;b[(V&o)>>1]=e[(V&o)>>1]&48640|4;V=c[(s+(r*20|0)&p)+8>>2]|0;U=z+(V*40|0)|0;t=Vg(U)|0;u=G;c[(U&p)>>2]=t;c[(U&p)+4>>2]=u;V=z+(V*40|0)+8|0;b[(V&o)>>1]=e[(V&o)>>1]&48640|4;V=v;U=c[(V&p)+4>>2]|0;if((U|0)<(u|0)|((U|0)==(u|0)?(c[(V&p)>>2]|0)>>>0>>0:0)){S=v;c[(S&p)>>2]=t;c[(S&p)+4>>2]=u;S=z;T=s;U=W;V=X;u=L}else{S=z;T=s;U=W;V=X;u=L}break}case 1028:{ie=0;V=z+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)|0;U=c[(V&p)+4>>2]|0;if((U|0)>0|(U|0)==0&(c[(V&p)>>2]|0)>>>0>0){S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0}else{S=z;T=s;U=W;V=X}break}case 1030:{ie=0;T=c[(s+(r*20|0)&p)+12>>2]|0;U=z+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)|0;V=U;T=jw(c[(V&p)>>2]|0,c[(V&p)+4>>2]|0,T|0,((T|0)<0)<<31>>31|0)|0;V=G;c[(U&p)>>2]=T;c[(U&p)+4>>2]=V;if((V|0)<0){S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0}else{S=z;T=s;U=W;V=X}break}case 1032:{ie=0;t=z+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)|0;v=t;u=c[(v&p)>>2]|0;v=c[(v&p)+4>>2]|0;if((u|0)==0&(v|0)==0){S=z;T=s;U=W;V=X;u=J}else{T=c[(s+(r*20|0)&p)+12>>2]|0;T=jw(T|0,((T|0)<0)<<31>>31|0,u|0,v|0)|0;S=t;c[(S&p)>>2]=T;c[(S&p)+4>>2]=G;S=z;T=s;U=W;V=X;u=J;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0}break}case 1034:{ie=0;T=z+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)|0;U=T;U=jw(c[(U&p)>>2]|0,c[(U&p)+4>>2]|0,-1,-1)|0;V=G;c[(T&p)>>2]=U;c[(T&p)+4>>2]=V;if((U|0)==0&(V|0)==0){S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0}else{S=z;T=s;U=W;V=X}break}case 1036:{ie=0;T=z+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)|0;V=T;U=c[(V&p)>>2]|0;V=c[(V&p)+4>>2]|0;S=jw(U|0,V|0,1,0)|0;c[(T&p)>>2]=S;c[(T&p)+4>>2]=G;if((U|0)==0&(V|0)==0){S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0}else{S=z;T=s;U=W;V=X}break}case 1157:{ie=0;S=z;T=s;U=W;V=X;r=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;break}case 1158:{ie=0;if(c[(s+(r*20|0)&p)+4>>2]|0){b[(Yd&o)>>1]=b[(Yd&o)>>1]|8;S=z;T=s;U=W;V=X;break}t=c[(Vb&p)>>2]|0;if(!t){S=z;T=s;U=W;V=X}else{do{V=t+88|0;b[(V&o)>>1]=b[(V&o)>>1]|8;t=c[(t&p)+52>>2]|0}while((t|0)!=0);S=z;T=s;U=W;V=X}break}case 1166:{ie=0;J=(c[(w&p)>>2]|0)+72|0;t=c[(J&p)>>2]|0;D:do if(t){while(1){if((c[(t&p)+4>>2]|0)==(A|0)?(c[(t&p)>>2]|0)==(C|0):0)break;t=c[(t&p)+12>>2]|0;if(!t){ie=1171;break D}}if(!t)ie=1171}else ie=1171;while(0);if((ie|0)==1171){ie=0;t=qg(16,0)|0;if(!t){t=r;s=7;u=x;ie=1309;break c}U=t+0|0;V=U+12|0;do{a[(U&n)>>0]=0;U=U+1|0}while((U|0)<(V|0));c[(t&p)+4>>2]=A;c[(t&p)>>2]=C;c[(t&p)+12>>2]=c[(J&p)>>2];c[(J&p)>>2]=t}t=t+8|0;if((d[(t&n)>>0]|0)<(v&255)){a[(t&n)>>0]=v;S=z;T=s;U=W;V=X}else{S=z;T=s;U=W;V=X}break}case 1213:{ie=0;c[(sd&p)>>2]=0;v=c[((c[(s+(r*20|0)&p)+16>>2]|0)&p)+8>>2]|0;if(!v){t=r;s=6;u=x;ie=1309;break c}w=c[(v&p)>>2]|0;if(!w){t=r;s=6;u=x;ie=1309;break c}C=rc[c[(w&p)+24>>2]&127](v,sd)|0;Mm(f,v);if(C){t=r;s=C;u=x;ie=1309;break c}c[(c[(sd&p)>>2]&p)>>2]=v;t=xm(f,c[(s+(r*20|0)&p)+4>>2]|0,0,-1,0)|0;if(!t){a[(ge&n)>>0]=1;lc[c[(w&p)+28>>2]&127](c[(sd&p)>>2]|0)|0;S=z;T=s;U=W;V=X;break}else{c[(t&p)+32>>2]=c[(sd&p)>>2];S=v+4|0;c[(S&p)>>2]=(c[(S&p)>>2]|0)+1;S=z;T=s;U=W;V=X;break}}case 1226:{ie=0;t=z+(C*40|0)+8|0;if(!(b[(t&o)>>1]&9312)){b[(t&o)>>1]=1;S=z;T=s;U=W;V=X;break}else{vg(A);S=z;T=s;U=W;V=X;break}}case 1257:{ie=0;S=u;c[(S&p)>>2]=c[((c[((c[((c[(Xd&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<4)&p)+4>>2]|0)&p)+4>>2]|0)&p)+44>>2];c[(S&p)+4>>2]=0;S=z;T=s;U=W;V=X;break}case 1258:{ie=0;v=c[((c[(Xd&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<4)&p)+4>>2]|0;t=c[(s+(r*20|0)&p)+12>>2]|0;u=c[(v&p)+4>>2]|0;if(!t)t=0;else{V=c[(u&p)+44>>2]|0;t=V>>>0>>0?t:V}c[(u&p)+4>>2]=c[(v&p)>>2];u=(c[(u&p)>>2]|0)+156|0;if((t|0)>0)c[(u&p)>>2]=t;else t=c[(u&p)>>2]|0;S=J;c[(S&p)>>2]=t;c[(S&p)+4>>2]=((t|0)<0)<<31>>31;S=z;T=s;U=W;V=X;u=J;break}case 1264:{ie=0;r=c[(s+(t*20|0)&p)+8>>2]|0;r=(r|0)==0?t:r+-1|0;if((c[(Sa&p)>>2]|0)!=0?(b[(Yd&o)>>1]&512)==0:0){t=c[(s+(t*20|0)&p)+16>>2]|0;if(!t){t=c[(ce&p)>>2]|0;if(!t){S=z;T=s;U=W;V=X;u=L;break}}c[(Sd&p)>>2]=0;F=c[(f&p)>>2]|0;v=c[(F&p)+88>>2]|0;c[(fb&p)>>2]=Nd;c[(gb&p)>>2]=Nd;c[(hb&p)>>2]=0;c[(ib&p)>>2]=100;c[(jb&p)>>2]=v;a[(kb&n)>>0]=1;a[(lb&n)>>0]=0;c[(qd&p)>>2]=F;v=a[(t&n)>>0]|0;u=v<<24>>24==0;E:do if((c[(F&p)+160>>2]|0)>1){if(!u)while(1){u=t;do{u=u+1|0;if(v<<24>>24==10)break;v=a[(u&n)>>0]|0}while(v<<24>>24!=0);Sk(qd,42288,3);Sk(qd,t,u-t|0);v=a[(u&n)>>0]|0;if(!(v<<24>>24))break;else t=u}}else if(!u){H=F+62|0;K=1;do{F:do if(!(v<<24>>24)){A=0;u=0}else{C=t;u=0;while(1){A=Cn(C,ke)|0;if((c[(ke&p)>>2]|0)==135)break F;u=A+u|0;C=C+A|0;if(!(a[(C&n)>>0]|0)){A=0;break}}}while(0);Sk(qd,t,u);C=t+u|0;if(!A)break E;do if((a[(C&n)>>0]|0)==63)if((A|0)>1){Dn(t+(u+1)|0,Sd)|0;C=c[(Sd&p)>>2]|0;break}else{c[(Sd&p)>>2]=K;C=K;break}else{C=qh(f,C,A)|0;c[(Sd&p)>>2]=C}while(0);t=t+(u+A)|0;K=C+1|0;J=C+-1|0;I=c[(Ab&p)>>2]|0;C=I+(J*40|0)|0;A=e[(I+(J*40|0)&o)+8>>1]|0;do if(!(A&1)){if(A&4){T=C;U=c[(T&p)+4>>2]|0;V=ke;c[(V&p)>>2]=c[(T&p)>>2];c[(V&p)+4>>2]=U;En(qd,0,19920,ke);break}if(A&8){h[(k&q)>>3]=+h[(C&q)>>3];c[(ke&p)>>2]=c[(k&p)>>2];c[(ke&p)+4>>2]=c[(k&p)+4>>2];En(qd,0,20272,ke);break}if(!(A&2)){if(A&16384){c[(ke&p)>>2]=c[(C&p)>>2];En(qd,0,42304,ke);break}Sk(qd,42320,2);E=c[(I+(J*40|0)&p)+12>>2]|0;if((E|0)>0){C=I+(J*40|0)+16|0;A=0;do{c[(ke&p)>>2]=d[((c[(C&p)>>2]|0)+A&n)>>0];En(qd,0,42328,ke);A=A+1|0}while((A|0)!=(E|0))}Sk(qd,42336,1);break}else{E=a[(H&n)>>0]|0;if(E<<24>>24==1){V=c[(I+(J*40|0)&p)+16>>2]|0;c[(ke&p)>>2]=c[(I+(J*40|0)&p)+12>>2];c[(ke&p)+4>>2]=V;En(qd,0,42296,ke);break}U=Od+0|0;V=U+40|0;do{c[(U&p)>>2]=0;U=U+4|0}while((U|0)<(V|0));c[(nb&p)>>2]=F;Xg(Od,c[(I+(J*40|0)&p)+16>>2]|0,c[(I+(J*40|0)&p)+12>>2]|0,E,0)|0;V=c[(ob&p)>>2]|0;if(!((V&2|0)==0|(V&16711680|0)==65536))Bn(Od,1)|0;V=c[(qb&p)>>2]|0;c[(ke&p)>>2]=c[(pb&p)>>2];c[(ke&p)+4>>2]=V;En(qd,0,42296,ke);if((b[(ob&o)>>1]&9312)==0&(c[(rb&p)>>2]|0)==0)break;Qg(Od);break}}else Sk(qd,20304,4);while(0);v=a[(t&n)>>0]|0}while(v<<24>>24!=0)}while(0);S=tg(qd)|0;jc[c[(Sa&p)>>2]&15](c[(mb&p)>>2]|0,S);mg(le,S);S=z;T=s;U=W;V=X;u=L}else{S=z;T=s;U=W;V=X;u=L}break}}if((ie|0)==28){ie=0;z=s+(r*20|0)+4|0;t=c[(z&p)>>2]|0;if(t){y=z;ie=34;break}z=c[(sb&p)>>2]|0;if(!z){ie=30;break}c[(sb&p)>>2]=c[(z&p)+4>>2];c[(tb&p)>>2]=(c[(tb&p)>>2]|0)+-1;l=c[(ub&p)>>2]|0;c[(vb&p)>>2]=l;c[(wb&p)>>2]=(c[(wb&p)>>2]|0)+l;z=Xl(z)|0;l=ne;t=c[(zc&p)>>2]|0;if((c[(s+(r*20|0)&p)+8>>2]|0)==4)r=(c[(t+(z*20|0)&p)+8>>2]|0)+-1|0;else r=z;m=c[(l&p)>>2]|0;l=c[(l&p)+4>>2]|0;S=c[(Nc&p)>>2]|0;T=t;U=W;V=X}else if((ie|0)==488){ie=0;u=sm(le,C,A)|0;if(!u){S=z;T=s;U=W;V=X;u=E}else{t=r;ie=1318;break}}z=S;s=T;W=U;X=V;t=r+1|0}switch(ie|0){case 30:{c[(me&p)>>2]=t;a[(fe&n)>>0]=c[(s+(r*20|0)&p)+8>>2];c[(he&p)>>2]=r;ie=41;break}case 34:{c[(me&p)>>2]=t;a[(fe&n)>>0]=c[(s+(r*20|0)&p)+8>>2];c[(he&p)>>2]=r;t=a[(s+(r*20|0)&n)+3>>0]|0;if(!(t<<24>>24)){s=c[(s+(r*20|0)&p)+16>>2]|0;if(!s){s=0;ie=39}else{c[(ke&p)>>2]=s;dh(je,le,10344,ke)}}else{u=c[((t&255)+-1<<2&p)+41536>>2]|0;t=c[(s+(r*20|0)&p)+16>>2]|0;if(!t){s=u;ie=39}else{c[(ke&p)>>2]=u;c[(ke&p)+4>>2]=t;dh(je,le,41624,ke)}}if((ie|0)==39){c[(ke&p)>>2]=s;dh(je,le,41656,ke)}ie=c[(y&p)>>2]|0;qd=c[(ce&p)>>2]|0;rd=c[(je&p)>>2]|0;c[(ke&p)>>2]=r;c[(ke&p)+4>>2]=qd;c[(ke&p)+8>>2]=rd;bd(ie,41600,ke);ie=41;break}case 80:{x=c[(be&p)>>2]|0;if(!((x|0)==0|g>>>0>>0)?(lc[x&127](c[(Zd&p)>>2]|0)|0)!=0:0){r=m;s=9;m=u;ie=1311;break a}rd=_d;qd=c[(rd&p)+4>>2]|0;if((qd|0)>0|(qd|0)==0&(c[(rd&p)>>2]|0)>>>0>0){s=c[(f&p)>>2]|0;c[(me&p)>>2]=787;a[(fe&n)>>0]=2;dh(je,s,34376,ke);s=1;ie=1309;break}x=$l(f,1)|0;if(!x){c[($d&p)>>2]=(c[($d&p)>>2]|0)+2|1;y=c[(s+(t*20|0)&p)+4>>2]|0;c[(de&p)>>2]=z+(y*40|0);r=s+(t*20|0)+8|0;if((c[(r&p)>>2]|0)>0){x=0;do{v=x+y|0;w=z+(v*40|0)|0;v=z+(v*40|0)+8|0;s=b[(v&o)>>1]|0;if(s&4096){if(Vl(w)|0){y=ge;z=je;r=m;m=u;ie=1317;break a}s=b[(v&o)>>1]|0}if((s&514)==2)am(w)|0;x=x+1|0}while((x|0)<(c[(r&p)>>2]|0))}if(a[(ge&n)>>0]|0){y=ge;z=je;r=m;m=u;ie=1317;break a}c[(he&p)>>2]=t+1;r=m;m=g;g=100;break a}else{s=x;ie=1309}break}case 313:{c[(ke&p)>>2]=73058;c[(ke&p)+4>>2]=10788;bd(11,13600,ke);s=11;ie=1309;break}case 343:{c[(ke&p)>>2]=73142;c[(ke&p)+4>>2]=10788;bd(11,13600,ke);s=11;ie=1309;break}case 447:{dh(je,le,41712,ke);t=r;s=5;ie=1309;break}case 460:{c[(ke&p)>>2]=s;dh(je,le,41768,ke);s=1;ie=1309;break}case 462:{dh(je,le,41792,ke);s=5;ie=1309;break}case 467:{c[(he&p)>>2]=g;a[(ee&n)>>0]=0;c[(me&p)>>2]=5;g=5;break a}case 489:{v=c[(s+(t*20|0)&p)+4>>2]|0;s=c[(s+(t*20|0)&p)+8>>2]|0;g=(v|0)!=0;if(g){s=(s|0)!=0;if(!(s|(a[(ee&n)>>0]|0)!=0))if((c[(ae&p)>>2]|0)>0){dh(je,le,41848,ke);g=m;m=r;s=5;ie=1309;break}else s=0}else s=(s|0)!=0;if((v|0)==(d[(ee&n)>>0]|0)){if(g)g=s?41952:42e3;else g=41904;dh(je,le,g,ke);g=m;m=r;s=1;ie=1309;break}if(!s){g=tm(f,1)|0;if(g)break a;a[(ee&n)>>0]=v;if((Rl(f)|0)==5){c[(he&p)>>2]=t;a[(ee&n)>>0]=1-v;c[(me&p)>>2]=5;g=5;break a}}else{Kl(le,516);a[(ee&n)>>0]=1}Ll(le);g=(c[(me&p)>>2]|0)==0?101:1;break a}case 508:{c[(he&p)>>2]=g;c[(me&p)>>2]=5;g=5;break a}case 522:{mg(le,c[(je&p)>>2]|0);c[(je&p)>>2]=kh(le,16040)|0;s=c[(s&p)>>2]|0;if((c[(c[((c[(Xd&p)>>2]|0)+(s<<4)&p)+12>>2]&p)>>2]|0)!=(v|0))vm(le,s);b[(Yd&o)>>1]=b[(Yd&o)>>1]|8;s=17;ie=1309;break}case 542:{c[(ke&p)>>2]=73997;c[(ke&p)+4>>2]=10788;bd(11,13600,ke);u=11;x=s;ie=1318;break}case 560:{c[(s&p)+56>>2]=0;s=7;ie=1309;break}case 832:{a[(fe&n)>>0]=2;s=6;ie=1309;break}case 882:{Eg(le);y=ge;z=je;r=m;m=u;ie=1317;break a}case 884:{Eg(le);if((s|0)==7){y=ge;z=je;r=m;m=u;ie=1317;break a}else ie=1309;break}case 998:{dh(je,le,42112,ke);s=1;ie=1309;break}case 1080:{c[(ke&p)>>2]=s?42208:42216;dh(je,le,42152,ke);s=1;ie=1309;break}case 1101:{dh(je,le,42344,ke);s=1;ie=1309;break}case 1103:{dh(je,le,42384,ke);s=1;ie=1309;break}case 1145:{c[(ke&p)>>2]=56343;c[(ke&p)+4>>2]=10788;bd(11,13600,ke);s=11;ie=1309;break}case 1316:{dh(je,le,10096,ke);r=m;s=18;m=u;ie=1311;break a}}if((ie|0)==41)if((Rl(f)|0)==5){c[(me&p)>>2]=5;r=m;m=g;g=5;break a}else{r=m;m=g;g=(c[(me&p)>>2]|0)!=0?1:101;break a}else if((ie|0)==1309){r=m;t=t+1|0;m=u;ie=1311;break a}else if((ie|0)==1318){u=(a[(ge&n)>>0]|0)==0?u:7;if((u|0)==3082){r=m;s=3082;m=x;ie=1311;break a}else if((u|0)!=516){r=u&255;if(r>>>0>26|(r|0)==2)s=16328;else s=c[(r<<2&p)+15488>>2]|0}else s=16344;c[(ke&p)>>2]=s;dh(je,le,10344,ke);r=m;s=u;m=x;ie=1311;break a}}else{u=f+44|0;r=m;g=0;t=0;m=0}while(0);c[(me&p)>>2]=9;c[(ke&p)>>2]=15832;dh(u,le,10344,ke);s=9;ie=1311}while(0);if((ie|0)==1317){a[(y&n)>>0]=1;dh(z,le,15776,ke);s=7;ie=1311}if((ie|0)==1311){c[(me&p)>>2]=s;qd=c[(f&p)+168>>2]|0;rd=c[(f&p)+44>>2]|0;c[(ke&p)>>2]=t;c[(ke&p)+4>>2]=qd;c[(ke&p)+8>>2]=rd;bd(s,42256,ke);Rl(f)|0;if((s|0)==3082)a[(le&n)+65>>0]=1;if(!(m<<24>>24)){m=g;g=1}else{vm(le,(m&255)+-1|0);m=g;g=1}}rd=ne;c[(rd&p)>>2]=r;c[(rd&p)+4>>2]=l;rd=f+124|0;c[(rd&p)>>2]=(c[(rd&p)>>2]|0)+m;i=oe;return g|0} function Ev(e){e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=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=e+20|0;u=e+14|0;f=a[(u&n)>>0]|0;z=e+13|0;g=a[(z&n)>>0]|0;a:do if((f&255)>(g&255))f=0;else{B=e+4|0;C=e+16|0;v=e+8|0;w=e+12|0;x=e+24|0;y=e+28|0;i=f&255;j=c[(B&p)>>2]|0;h=c[(D&p)>>2]|0;b:while(1){t=c[(e+(i+-2<<2)&p)+24>>2]|0;s=c[(e+(i+-1<<2)&p)+24>>2]|0;if(j){while(1){r=j+12|0;if((h|0)<(c[(r&p)>>2]|0)){g=h;f=(c[(j&p)+20>>2]|0)+(h*48|0)|0;while(1){do if((c[(f&p)+8>>2]|0)==(t|0)?(c[(f&p)+12>>2]|0)==(s|0):0){if((d[(u&n)>>0]|0)>=3?(c[((c[(f&p)>>2]|0)&p)+4>>2]&1|0)!=0:0)break;q=f+18|0;h=b[(q&o)>>1]|0;if((h&1024)!=0?(A=a[(z&n)>>0]|0,(A&255)<22):0){i=c[((c[(f&p)>>2]|0)&p)+16>>2]|0;c:do if(!i)i=0;else while(1){k=c[(i&p)+4>>2]|0;if(!(k&4096))break c;if(!(k&262144))i=i+12|0;else i=c[((c[(i&p)+20>>2]|0)&p)+4>>2]|0;i=c[(i&p)>>2]|0;if(!i){i=0;break}}while(0);d:do if(!(A<<24>>24)){m=0;k=0}else{l=c[(i&p)+28>>2]|0;m=i+32|0;k=0;while(1){if((c[(e+(k<<2)&p)+24>>2]|0)==(l|0)?(c[(e+((k|1)<<2)&p)+24>>2]|0)==(b[(m&o)>>1]|0):0){m=A;break d}k=k+2|0;if((k|0)>=(A&255|0)){m=A;break}}}while(0);if((k|0)==(m&255|0)){c[(e+(k<<2)&p)+24>>2]=c[(i&p)+28>>2];c[(e+((k|1)<<2)&p)+24>>2]=b[(i&o)+32>>1];a[(z&n)>>0]=(d[(z&n)>>0]|0)+2}}i=h&65535;if(i&c[(C&p)>>2]){if((c[(v&p)>>2]|0)!=0&(i&128|0)==0){l=c[(c[(j&p)>>2]&p)>>2]|0;k=c[(f&p)>>2]|0;i=a[(w&n)>>0]|0;h=(nv(k)|0)<<24>>24;if((h|0)==66){if(i<<24>>24!=66)break}else if((h|0)!=65?i<<24>>24<=66:0)break;h=Ou(l,c[(k&p)+12>>2]|0,c[(k&p)+16>>2]|0)|0;if(!h)h=c[((c[(l&p)>>2]|0)&p)+8>>2]|0;if(dd(c[(h&p)>>2]|0,c[(v&p)>>2]|0)|0)break;h=b[(q&o)>>1]|0}if(!(h&2))break b;h=c[((c[(f&p)>>2]|0)&p)+16>>2]|0;if((a[(h&n)>>0]|0)!=-102)break b;if((c[(h&p)+28>>2]|0)!=(c[(x&p)>>2]|0))break b;if((b[(h&o)+32>>1]|0)!=(c[(y&p)>>2]|0))break b}}while(0);g=g+1|0;if((g|0)>=(c[(r&p)>>2]|0))break;else f=f+48|0}g=c[(B&p)>>2]|0}else g=j;j=c[(g&p)+4>>2]|0;c[(B&p)>>2]=j;if(!j)break;else h=0}f=a[(u&n)>>0]|0;g=a[(z&n)>>0]|0}j=c[(e&p)>>2]|0;c[(B&p)>>2]=j;h=(f&255)+2|0;f=h&255;a[(u&n)>>0]=f;if((f&255)>(g&255)){f=0;break a}else{i=h&255;h=0}}c[(D&p)>>2]=g+1}while(0);return f|0}function Fv(d,f){d=d|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0,m=0,q=0;g=c[(d&p)>>2]|0;l=c[(c[(g&p)>>2]&p)>>2]|0;d=c[(d&p)+16>>2]|0;a:do if(!d){g=g+16|0;i=c[(g&p)>>2]|0;k=f+36|0;if((c[(k&p)>>2]&512|0)!=0&(i|0)!=0){d=f+20|0;j=f+22|0;h=a[(f&n)+16>>0]|0;do{do if((a[(i&n)+16>>0]|0)==h<<24>>24?(c[(i&p)+36>>2]&512|0)!=0:0){if(Tv(i,f)|0){b[(d&o)>>1]=b[(i&o)+20>>1]|0;b[(j&o)>>1]=(e[(i&o)+22>>1]|0)+65535;break}if(Tv(f,i)|0){b[(d&o)>>1]=b[(i&o)+20>>1]|0;b[(j&o)>>1]=(e[(i&o)+22>>1]|0)+1}}while(0);i=c[(i&p)+52>>2]|0}while((i|0)!=0)}d=Uv(g,f)|0;if(d){g=c[(d&p)>>2]|0;b:do if(g){d=g+52|0;if(c[(d&p)>>2]|0)do{d=Uv(d,f)|0;if(!d)break b;h=c[(d&p)>>2]|0;if(!h)break b;c[(d&p)>>2]=c[(h&p)+52>>2];Ju(l,h);mg(l,h)}while((c[(d&p)>>2]|0)!=0)}else{g=mh(l,72,0)|0;c[(d&p)>>2]=g;if(!g){d=7;break a}c[(g&p)+48>>2]=g+56;b[(g&o)+40>>1]=0;b[(g&o)+44>>1]=3;c[(g&p)+36>>2]=0;c[(g&p)+52>>2]=0}while(0);Lv(l,g);do if(!(Nu(l,g,e[(f&o)+40>>1]|0)|0)){h=g+0|0;d=f+0|0;i=h+44|0;do{c[(h&p)>>2]=c[(d&p)>>2];h=h+4|0;d=d+4|0}while((h|0)<(i|0));kw(c[(g&p)+48>>2]|0,c[(f&p)+48>>2]|0,e[(g&o)+40>>1]<<2|0)|0;d=c[(k&p)>>2]|0;if(d&1024){a[(f&n)+28>>0]=0;break}if(d&16384)c[(f&p)+28>>2]=0}else{d=g+24|0;c[(d&p)>>2]=0;c[(d&p)+4>>2]=0;c[(d&p)+8>>2]=0}while(0);if(((c[(g&p)+36>>2]&1024|0)==0?(m=g+28|0,q=c[(m&p)>>2]|0,(q|0)!=0):0)?(c[(q&p)+40>>2]|0)==0:0){c[(m&p)>>2]=0;d=0}else d=0}else d=0}else{g=f;Kv(d,c[(g&p)>>2]|0,c[(g&p)+4>>2]|0,b[(f&o)+20>>1]|0,b[(f&o)+22>>1]|0);d=0}while(0);return d|0}function Gv(a,b){a=a|0;b=b|0;var c=0,e=0;c=a<<16>>16;e=b<<16>>16;do if(a<<16>>16>16)if((e|0)<=(c+49|0))if((e|0)>(c+31|0)){a=e+1&65535;break}else{a=(d[(e-c&n)+34032>>0]|0)+e&65535;break}else a=b;else if((c|0)<=(e+49|0))if((c|0)>(e+31|0)){a=c+1&65535;break}else{a=(d[(c-e&n)+34032>>0]|0)+c&65535;break}while(0);return a|0}function Hv(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0;do if(!(Cu(b,d,e)|0))f=1;else{f=a[(d&n)>>0]|0;if(f<<24>>24==71){if(Hv(b,c[(d&p)+12>>2]|0,e)|0){f=1;break}if(Hv(b,c[(d&p)+16>>2]|0,e)|0){f=1;break}if(f<<24>>24==77)g=6}else if(f<<24>>24==77)g=6;if(((g|0)==6?(Cu(c[(b&p)+12>>2]|0,c[(d&p)+12>>2]|0,e)|0)==0:0)?(f=a[(b&n)>>0]|0,!(f<<24>>24==73|f<<24>>24==76)):0){f=1;break}f=0}while(0);return f|0}function Iv(a,d,f){a=a|0;d=d|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0;x=i;i=i+16|0;if((i|0)>=(j|0))fa();w=x;u=d;v=d+8|0;g=v;t=~(c[(g&p)>>2]|c[(u&p)>>2]);u=~(c[(g&p)+4>>2]|c[(u&p)+4>>2]);g=c[(a&p)+12>>2]|0;r=a+20|0;a:do if((g|0)>0){s=d+40|0;a=d+22|0;q=d+48|0;d=0;n=c[(r&p)>>2]|0;while(1){if(b[(n&o)+20>>1]&2)break a;m=n+40|0;l=c[(m&p)>>2]|0;m=c[(m&p)+4>>2]|0;k=v;b:do if(((c[(k&p)>>2]&l|0)!=0?1:(c[(k&p)+4>>2]&m|0)!=0)&((l&t|0)==0&(m&u|0)==0)){h=b[(s&o)>>1]|0;c:do if(h<<16>>16){m=c[(q&p)>>2]|0;l=h&65535;while(1){h=l;l=l+-1|0;k=c[(m+(l<<2)&p)>>2]|0;if(k){if((k|0)==(n|0))break;k=c[(k&p)+4>>2]|0;if((k|0)>-1?((c[(r&p)>>2]|0)+(k*48|0)|0)==(n|0):0)break}if((l|0)<=0)break c}if((h|0)>=1)break b}while(0);h=b[(n&o)+16>>1]|0;if(h<<16>>16<1){b[(a&o)>>1]=(e[(a&o)>>1]|0)+(h&65535);break}b[(a&o)>>1]=(b[(a&o)>>1]|0)+-1<<16>>16;if(b[(n&o)+18>>1]&2){l=(Ms(c[((c[(n&p)>>2]|0)&p)+16>>2]|0,w)|0)!=0;m=c[(w&p)>>2]|0;m=l&(m|0)>-2&(m|0)<2?10:20;c[(w&p)>>2]=m;d=(d<<16>>16|0)<(m|0)?m&65535:d}}while(0);g=g+-1|0;if((g|0)<=0)break;else n=n+48|0}}else{a=d+22|0;d=0}while(0);d=(f<<16>>16)-(d<<16>>16)|0;if((b[(a&o)>>1]|0)>(d|0))b[(a&o)>>1]=d;i=x;return}function Jv(d,f,g,h){d=d|0;f=f|0;g=g|0;h=h|0;var k=0,l=0,m=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,ga=0,ha=0;ha=i;i=i+112|0;if((i|0)>=(j|0))fa();R=ha;V=c[(c[(c[(d&p)>>2]&p)>>2]&p)>>2]|0;ea=c[(d&p)+12>>2]|0;if(!(a[(V&n)+65>>0]|0)){ga=ea+36|0;if(!(c[(ga&p)>>2]&32))if((c[(g&p)+40>>2]|0)<1)k=63;else k=(a[(f&n)+36>>0]&8)<<4^191;else k=24;W=g+51|0;ca=ea+24|0;l=b[((c[(g&p)+4>>2]|0)+(e[(ca&o)>>1]<<1)&o)>>1]|0;N=l<<16>>16;O=d+4|0;k=Dv(R,c[(O&p)>>2]|0,c[(f&p)+40>>2]|0,N,(a[(W&n)>>0]&4)==0?k:k&131,g)|0;X=b[(ca&o)>>1]|0;Y=ea+42|0;T=b[(Y&o)>>1]|0;Z=ea+40|0;U=b[(Z&o)>>1]|0;_=c[(ga&p)>>2]|0;Q=ea;P=c[(Q&p)>>2]|0;Q=c[(Q&p)+4>>2]|0;$=ea+22|0;aa=b[($&o)>>1]|0;b[(ea&o)+18>>1]=0;ba=g+8|0;D=b[(c[(ba&p)>>2]&o)>>1]|0;if(D<<16>>16<11)C=0;else{C=D<<16>>16;C=((fs(C,((C|0)<0)<<31>>31)|0)&65535)+65503&65535}a:do if(!k)k=0;else{E=l<<16>>16<0;F=f+16|0;G=ea+8|0;H=(U&65535)+1|0;I=ea+48|0;J=h<<16>>16==0;K=g+46|0;w=l<<16>>16>-1;x=g+50|0;y=g+44|0;z=ea+20|0;A=h<<16>>16;B=g+48|0;r=0;u=k;s=0;while(1){l=b[(u&o)+18>>1]|0;t=l&65535;if(l<<16>>16==128)if(!E?(a[((c[((c[(F&p)>>2]|0)&p)+4>>2]|0)+(N*24|0)&n)+20>>0]|0)==0:0)S=12;else{m=r;l=s;k=0}else S=12;if((S|0)==12){S=0;m=u+32|0;v=m;q=G;if(((c[(q&p)>>2]&c[(v&p)>>2]|0)==0?(c[(q&p)+4>>2]&c[(v&p)+4>>2]|0)==0:0)?(L=u+20|0,!((b[(L&o)>>1]&256)!=0&l<<16>>16==16)):0){c[(ga&p)>>2]=_;b[(ca&o)>>1]=X;b[(Z&o)>>1]=U;if(Nu(V,ea,H)|0){k=0;break a}k=b[(Z&o)>>1]|0;q=k+1<<16>>16;b[(Z&o)>>1]=q;c[((c[(I&p)>>2]|0)+((k&65535)<<2)&p)>>2]=u;k=m;l=G;m=(c[(k&p)+4>>2]|Q)&~c[(l&p)+4>>2];v=ea;c[(v&p)>>2]=(c[(k&p)>>2]|P)&~c[(l&p)>>2];c[(v&p)+4>>2]=m;b:do if(!(t&1)){if(t&2){k=c[(ga&p)>>2]|0;l=k|1;c[(ga&p)>>2]=l;do if(!E){if(!J){v=0;break b}if((e[(ca&o)>>1]|0)!=((e[(K&o)>>1]|0)+-1|0)){v=0;break b}if(!w)break;if(a[(x&n)>>0]|0)break;l=k|65537;c[(ga&p)>>2]=l;v=0;break b}while(0);l=k|4097;c[(ga&p)>>2]=l;v=0;break}if(t&128){l=c[(ga&p)>>2]|8;c[(ga&p)>>2]=l;v=0;break}k=c[(ga&p)>>2]|0;if(!(t&36)){l=k|18;c[(ga&p)>>2]=l;if(!(k&32)){v=0;r=0;s=u;break}v=0;r=c[((c[(I&p)>>2]|0)+((q&65535)+-2<<2)&p)>>2]|0;s=u;break}l=k|34;c[(ga&p)>>2]=l;if(!(b[(L&o)>>1]&256)){v=0;r=u;s=0}else{k=u+48|0;if(Nu(V,ea,(q&65535)+1|0)|0){k=0;break a}l=b[(Z&o)>>1]|0;b[(Z&o)>>1]=l+1<<16>>16;c[((c[(I&p)>>2]|0)+((l&65535)<<2)&p)>>2]=k;l=c[(ga&p)>>2]|16;c[(ga&p)>>2]=l;v=0;r=u;s=k}}else{k=c[(u&p)>>2]|0;l=c[(ga&p)>>2]|4;c[(ga&p)>>2]=l;if(!(c[(k&p)+4>>2]&2048)){k=c[(k&p)+20>>2]|0;if((k|0)!=0?(M=c[(k&p)>>2]|0,(M|0)!=0):0)v=(fs(M,((M|0)<0)<<31>>31)|0)<<16>>16;else v=0}else v=46}while(0);do if(!(l&2)){k=(b[(ca&o)>>1]|0)+1<<16>>16;b[(ca&o)>>1]=k;k=k&65535;m=b[(u&o)+16>>1]|0;if(m<<16>>16<1&w){q=(m&65535)-v+(e[($&o)>>1]|0)&65535;b[($&o)>>1]=q;break}m=c[(ba&p)>>2]|0;m=(e[($&o)>>1]|0)+((e[(m+(k<<1)&o)>>1]|0)-(e[(m+(k+-1<<1)&o)>>1]|0))|0;k=m&65535;b[($&o)>>1]=k;if(!(t&128))q=k;else{q=m+10&65535;b[($&o)>>1]=q}}else{k=b[($&o)>>1]|0;q=k<<16>>16;do if(r){m=b[(r&o)+16>>1]|0;if(m<<16>>16<1){k=(m&65535)+(k&65535)&65535;break}else{k=(k&65535)+65516&65535;break}}while(0);do if(s){m=b[(s&o)+16>>1]|0;if(m<<16>>16<1){k=(m&65535)+(k&65535)&65535;break}else{k=(k&65535)+65516&65535;break}}while(0);m=(r|0)!=0;do if(m?(b[(r&o)+16>>1]|0)>0&(s|0)!=0:0){if((b[(s&o)+16>>1]|0)<=0)break;k=(k&65535)+65516&65535}while(0);q=(((s|0)!=0)<<31>>31)+(m<<31>>31)+q|0;u=k<<16>>16<10?10:k<<16>>16;q=((u|0)<(q|0)?u:q)&65535;b[($&o)>>1]=q}while(0);k=q&65535;m=Gv(C,k+1+(((b[(y&o)>>1]|0)*15|0)/(b[((c[(F&p)>>2]|0)&o)+42>>1]|0)|0)&65535)|0;if(!(l&320))m=Gv(m,k+16&65535)|0;l=v+A|0;b[(z&o)>>1]=(m&65535)+l;b[($&o)>>1]=k+l;Iv(c[(O&p)>>2]|0,ea,D);k=Fv(d,ea)|0;v=c[(ga&p)>>2]|0;b[($&o)>>1]=(v&2|0)==0?q:aa;if((v&16|0)==0?(e[(ca&o)>>1]|0)<(e[(B&o)>>1]|0):0)Jv(d,f,g,l&65535)|0;b[($&o)>>1]=aa;m=r;l=s}else{m=r;l=s;k=0}}u=Ev(R)|0;if(!((k|0)==0&(u|0)!=0))break;else{r=m;s=l}}}while(0);l=ea;c[(l&p)>>2]=P;c[(l&p)+4>>2]=Q;b[(ca&o)>>1]=X;b[(Y&o)>>1]=T;c[(ga&p)>>2]=_;b[($&o)>>1]=aa;b[(Z&o)>>1]=U;l=X&65535;if(((X<<16>>16==T<<16>>16?(da=l+1|0,da>>>0<(e[(g&o)+46>>1]|0)>>>0):0)?(a[(W&n)>>0]&64)==0:0)?(b[((c[(ba&p)>>2]|0)+(da<<1)&o)>>1]|0)>41:0){k=Nu(V,ea,(U&65535)+1|0)|0;if(!k){b[(ca&o)>>1]=(b[(ca&o)>>1]|0)+1<<16>>16;b[(Y&o)>>1]=(b[(Y&o)>>1]|0)+1<<16>>16;k=b[(Z&o)>>1]|0;b[(Z&o)>>1]=k+1<<16>>16;c[((c[(ea&p)+48>>2]|0)+((k&65535)<<2)&p)>>2]=0;c[(ga&p)>>2]=c[(ga&p)>>2]|32768;k=c[(ba&p)>>2]|0;k=(e[(k+(l<<1)&o)>>1]|0)-(e[(k+(da<<1)&o)>>1]|0)|0;b[($&o)>>1]=(e[($&o)>>1]|0)-k;Jv(d,f,g,(((k<<16)+327680|0)>>>16)+(h&65535)&65535)|0;b[($&o)>>1]=aa;b[(ca&o)>>1]=X;b[(Y&o)>>1]=X;c[(ga&p)>>2]=_;k=0}}}else k=7;i=ha;return k|0}function Kv(a,d,e,f,g){a=a|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,i=0,j=0,k=0,l=0,m=0,n=0,q=0,r=0;l=b[(a&o)>>1]|0;h=a+8|0;a:do if(l<<16>>16){j=l;k=h;while(1){i=b[(k&o)+8>>1]|0;if(i<<16>>16>=f<<16>>16?(r=k,(c[(r&p)>>2]&d|0)==(d|0)?(c[(r&p)+4>>2]&e|0)==(e|0):0):0){n=k;q=14;break a}if(i<<16>>16<=f<<16>>16?(i=k,r=c[(i&p)>>2]|0,i=c[(i&p)+4>>2]|0,(r&d|0)==(r|0)&(i&e|0)==(i|0)):0)break a;j=j+-1<<16>>16;if(!(j<<16>>16))break;else k=k+16|0}if((l&65535)>=3){i=b[(a&o)+16>>1]|0;k=1;do{if(i<<16>>16>(b[(a+(k<<4)&o)+16>>1]|0))h=a+(k<<4)+8|0;k=k+1|0;i=b[(h&o)+8>>1]|0}while((k&65535)<(l&65535));if(i<<16>>16>f<<16>>16){n=h;q=14}}else q=9}else q=9;while(0);if((q|0)==9){n=l&65535;b[(a&o)>>1]=l+1<<16>>16;b[(a+(n<<4)&o)+18>>1]=g;n=a+(n<<4)+8|0;q=14}if((q|0)==14?(m=n,c[(m&p)>>2]=d,c[(m&p)+4>>2]=e,b[(n&o)+8>>1]=f,m=n+10|0,(b[(m&o)>>1]|0)>g<<16>>16):0)b[(m&o)>>1]=g;return}function Lv(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0;e=c[(d&p)+36>>2]|0;do if(e&17408){if((e&1024|0)!=0?(h=d+28|0,(a[(h&n)>>0]|0)!=0):0){e=d+32|0;Wc(c[(e&p)>>2]|0);a[(h&n)>>0]=0;c[(e&p)>>2]=0;break}if((e&16384|0)!=0?(f=d+28|0,g=c[(f&p)>>2]|0,(g|0)!=0):0){mg(b,c[(g&p)+16>>2]|0);mg(b,c[(f&p)>>2]|0);c[(f&p)>>2]=0}}while(0);return}function Mv(f,g,h,k,l,m,q){f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;m=m|0;q=q|0;var 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,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,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;ta=i;i=i+32|0;if((i|0)>=(j|0))fa();oa=ta;s=c[(c[(f&p)>>2]&p)>>2]|0;na=l&65535;if(l<<16>>16!=0?(b[(s&o)+60>>1]&128)!=0:0)r=0;else pa=3;a:do if((pa|0)==3){sa=c[(g&p)>>2]|0;r=sa&65535;if(r>>>0<=63){qa=iw(1,0,r|0)|0;qa=jw(qa|0,G|0,-1,-1)|0;ra=G;b:do if((qa|0)==0&(ra|0)==0){g=0;h=0;s=1}else{ha=h+24|0;ia=f+4|0;ja=(r|0)==0;ea=g+4|0;ga=(k&768)==0;da=s+8|0;W=(k&256)==0;X=f+68|0;Y=oa+20|0;Z=oa+4|0;aa=oa+24|0;ba=f+328|0;_=0;$=0;g=0;h=0;k=0;t=0;ca=0;s=1;l=0;while(1){if((ca|0)>0){U=l+8|0;V=c[(U&p)>>2]|k;t=c[(U&p)+4>>2]|t}else V=k;if((ca|0)<(na|0))l=c[((c[(ha&p)>>2]|0)+(ca<<2)&p)>>2]|0;else l=m;B=l+36|0;k=c[(B&p)>>2]|0;if(k&1024)break;U=c[((c[(ia&p)>>2]|0)+((d[(l&n)+16>>0]|0)*72|0)&p)+48>>2]|0;if(!ja){k=~V;v=~t;y=0;do{A=iw(1,0,y|0)|0;z=G;c:do if((A&g|0)==0&(z&h|0)==0){u=c[((c[(ea&p)>>2]|0)+(y*20|0)&p)>>2]|0;x=c[(u&p)+4>>2]|0;if(x&4096)do{if(!(x&262144))u=u+12|0;else u=c[((c[(u&p)+20>>2]|0)&p)+4>>2]|0;u=c[(u&p)>>2]|0;x=c[(u&p)+4>>2]|0}while((x&4096|0)!=0);if(((a[(u&n)>>0]|0)==-102?(c[(u&p)+28>>2]|0)==(U|0):0)?(ka=u+32|0,la=Fu(ba,U,b[(ka&o)>>1]|0,k,v,130,0)|0,(la|0)!=0):0){do if(b[(la&o)+18>>1]&2){if((b[(ka&o)>>1]|0)<=-1)break;u=cu(c[(f&p)>>2]|0,c[((c[(ea&p)>>2]|0)+(y*20|0)&p)>>2]|0)|0;if(!u)u=c[(da&p)>>2]|0;x=c[(u&p)>>2]|0;w=cu(c[(f&p)>>2]|0,c[(la&p)>>2]|0)|0;if(!w)w=c[(da&p)>>2]|0;if(dd(x,c[(w&p)>>2]|0)|0)break c}while(0);g=A|g;h=z|h}}while(0);y=y+1|0}while((y|0)<(r|0));k=c[(B&p)>>2]|0}do if(!(k&4096)){if(!(k&256)){u=c[(l&p)+28>>2]|0;if(!u){r=0;break a}if(a[(u&n)+51>>0]&4){r=0;break a}k=b[(u&o)+48>>1]|0;s=(a[(u&n)+50>>0]|0)!=0&1;if(!(k<<16>>16)){pa=71;break}else{S=k&65535;T=b[(u&o)+46>>1]|0}}else{S=1;T=0;u=0}J=l+24|0;K=l+42|0;L=l+48|0;M=(u|0)==0;N=u+32|0;O=iw(1,0,ca|0)|0;P=G;Q=u+4|0;R=u+28|0;I=u+12|0;k=0;u=0;A=0;H=0;d:while(1){z=(u|0)<(e[(J&o)>>1]|0);if((z?(b[(K&o)>>1]|0)==0:0)?(ma=e[((c[((c[(L&p)>>2]|0)+(u<<2)&p)>>2]|0)&o)+18>>1]|0,(ma&130|0)!=0):0){s=(ma&128|0)==0?s:0;z=H}else{if(!M){x=b[((c[(Q&p)>>2]|0)+(u<<1)&o)>>1]|0;w=a[((c[(R&p)>>2]|0)+u&n)>>0]|0;v=c[(I&p)>>2]|0;x=x<<16>>16==(b[(v&o)+36>>1]|0)?-1:x<<16>>16;y=(x|0)>-1;if(s<<24>>24!=0&y)if(z){y=1;F=x}else{y=1;F=x;s=(a[((c[(v&p)+4>>2]|0)+(x*24|0)&n)+20>>0]|0)==0?0:s}else F=x}else{y=0;F=-1;w=0}if(ja){pa=68;break}else{z=1;E=0}e:while(1){C=iw(1,0,E|0)|0;D=G;do if((C&g|0)==0&(D&h|0)==0){v=c[((c[(ea&p)>>2]|0)+(E*20|0)&p)>>2]|0;x=c[(v&p)+4>>2]|0;if(!(x&4096))B=v;else{B=v;do{if(!(x&262144))x=B+12|0;else x=c[((c[(B&p)+20>>2]|0)&p)+4>>2]|0;B=c[(x&p)>>2]|0;x=c[(B&p)+4>>2]|0}while((x&4096|0)!=0)}z=ga?0:z;if((a[(B&n)>>0]|0)!=-102)break;if((c[(B&p)+28>>2]|0)!=(U|0))break;if((b[(B&o)+32>>1]|0)!=(F|0))break;if(!y){B=C;y=D;z=E;break e}x=cu(c[(f&p)>>2]|0,v)|0;if(!x)x=c[(da&p)>>2]|0;if(!(dd(c[(x&p)>>2]|0,c[((c[(N&p)>>2]|0)+(u<<2)&p)>>2]|0)|0)){B=C;y=D;z=E;break e}}while(0);E=E+1|0;if(!(z<<24>>24!=0&(E|0)<(r|0))){pa=68;break d}}do if(W){if(H<<24>>24)if((w^A)<<24>>24==(a[((c[(ea&p)>>2]|0)+(z*20|0)&n)+12>>0]|0)){z=H;break}else{pa=68;break d}v=a[((c[(ea&p)>>2]|0)+(z*20|0)&n)+12>>0]|0;A=v^w;if(w<<24>>24==v<<24>>24){z=1;break}v=q;w=c[(v&p)+4>>2]|P;z=q;c[(z&p)>>2]=c[(v&p)>>2]|O;c[(z&p)+4>>2]=w;z=1}else z=H;while(0);g=B|g;h=y|h;k=(F|0)<0?1:k}u=u+1|0;if((u|0)>=(S|0))break;else H=z}if((pa|0)==68){pa=0;s=(u|0)==0|(u|0)<(T&65535|0)?0:s}if(!(k<<24>>24))pa=71;else s=1}else pa=71;while(0);if((pa|0)==71){pa=0;if(!(s<<24>>24)){s=0;break b}}U=l+8|0;_=c[(U&p)>>2]|_;$=c[(U&p)+4>>2]|$;if(!ja){z=~_;A=~$;y=0;do{u=iw(1,0,y|0)|0;x=G;do if((u&g|0)==0&(x&h|0)==0){k=c[((c[(ea&p)>>2]|0)+(y*20|0)&p)>>2]|0;v=Av(X,k)|0;w=G;if((v|0)==0&(w|0)==0?(c[(oa&p)>>2]=0,c[(oa&p)+4>>2]=0,c[(oa&p)+8>>2]=0,c[(oa&p)+12>>2]=0,c[(oa&p)+16>>2]=0,c[(oa&p)+20>>2]=0,a[(Y&n)>>0]=1,c[(oa&p)>>2]=78,c[(Z&p)>>2]=79,c[(aa&p)>>2]=0,rs(oa,k)|0,(a[(Y&n)>>0]|0)==0):0)break;U=(v&z|0)==0&(w&A|0)==0;g=(U?u:0)|g;h=(U?x:0)|h}while(0);y=y+1|0}while((y|0)<(r|0))}if(h>>>0>ra>>>0|(h|0)==(ra|0)&g>>>0>=qa>>>0|s<<24>>24==0|(ca|0)>=(na|0))break b;else{k=V;ca=ca+1|0}}ga=(a[(l&n)+29>>0]|0)==0;g=ga?g:qa;h=ga?h:ra}while(0);if((g|0)==(qa|0)&(h|0)==(ra|0)){r=sa&255;break}if(!(s<<24>>24)){do{r=r+-1|0;if((r|0)<=0){r=0;break a}ea=iw(1,0,r|0)|0;ea=jw(ea|0,G|0,-1,-1)|0;ga=G}while(!((ea&g|0)==(ea|0)&(ga&h|0)==(ga|0)));r=r&255}else r=-1}else r=0}while(0);i=ta;return r|0}function Nv(b,c,d,e){b=b|0;c=c|0;d=d|0;e=e|0;if(c)Sk(b,33920,5);if(!d)c=0;else{c=d;while(1)if(!(a[(c&n)>>0]|0))break;else c=c+1|0;c=c-d&1073741823}Sk(b,d,c);Sk(b,e,1);Sk(b,13552,1);return}function Ov(a){a=a|0;var d=0,e=0,f=0,g=0,h=0,i=0;i=c[(c[(c[(a&p)>>2]&p)>>2]&p)>>2]|0;d=c[(a&p)+12>>2]|0;g=a+20|0;if((d|0)>0){h=c[(g&p)>>2]|0;while(1){d=d+-1|0;f=h+20|0;e=b[(f&o)>>1]|0;if(e&1){Gk(i,c[(h&p)>>2]|0);e=b[(f&o)>>1]|0}e=e&65535;if(!(e&16)){if(e&32){e=c[(h&p)+12>>2]|0;Ov(e);mg(i,e)}}else{e=c[(h&p)+12>>2]|0;Ov(e);mg(i,e)}if((d|0)<=0)break;else h=h+48|0}}d=c[(g&p)>>2]|0;if((d|0)!=(a+24|0))mg(i,d);return}function Pv(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,o=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0;u=i;i=i+32|0;if((i|0)>=(j|0))fa();t=u;h=c[(b&p)+8>>2]|0;k=c[(b&p)>>2]|0;if(e){l=(f|0)==10;m=b+437|0;o=t+4|0;q=t+1|0;r=t+8|0;s=t+12|0;g=f&255;do{if(l)f=a[(e&n)+1>>0]|0;else f=g;a[(m&n)>>0]=f;f=d[(e&n)>>0]|0;if((f|0)==108){w=Vv(b,e)|0;v=gr(k,c[(e&p)+8>>2]|0,0)|0;f=Nr(k,c[(e&p)+28>>2]|0)|0;tr(b,w,v,f,d[(m&n)>>0]|0)}else if((f|0)==109){f=Vv(b,e)|0;rr(b,f,Mr(k,c[(e&p)+20>>2]|0,0,0)|0)}else if((f|0)==110){w=Vv(b,e)|0;v=Pr(k,c[(e&p)+24>>2]|0,0)|0;f=Mr(k,c[(e&p)+20>>2]|0,0,0)|0;sr(b,w,v,f,d[(m&n)>>0]|0)}else{f=gr(k,c[(e&p)+8>>2]|0,0)|0;a[(t&n)>>0]=4;c[(o&p)>>2]=0;a[(q&n)>>0]=0;c[(r&p)>>2]=0;c[(s&p)>>2]=0;ir(b,f,t)|0;Mk(k,f,1)}if((a[(e&n)>>0]|0)!=119)wh(h,98,0,0,0)|0;e=c[(e&p)+32>>2]|0}while((e|0)!=0)}i=u;return}function Qv(d,e,f,g){d=d|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0;m=i;i=i+16|0;if((i|0)>=(j|0))fa();h=m;l=c[(d&p)>>2]|0;c[(h&p)>>2]=0;c[(h&p)+4>>2]=0;h=nr(l,159,h,0)|0;do if(!h)h=0;else{k=g<<16>>16;if(g<<16>>16>-1?(b[(e&o)+36>>1]|0)!=g<<16>>16:0){g=c[(e&p)+4>>2]|0;c[(h&p)+28>>2]=f+1+k;a[(h&n)+1>>0]=a[(g+(k*24|0)&n)+21>>0]|0;k=c[(g+(k*24|0)&p)+16>>2]|0;if(!k)k=c[(c[(l&p)+8>>2]&p)>>2]|0;h=xv(d,h,k)|0;break}c[(h&p)+28>>2]=f;a[(h&n)+1>>0]=68}while(0);i=m;return h|0}function Rv(d,e,f,g){d=d|0;e=e|0;f=f|0;g=g|0;var h=0,i=0,j=0;d=mh(d,48,0)|0;if(d){h=d+0|0;i=h+44|0;do{a[(h&n)>>0]=0;h=h+1|0}while((h|0)<(i|0));a[(d&n)>>0]=-102;b[(d&o)+34>>1]=-1;c[(d&p)+24>>2]=1;h=c[(e+(f*72|0)&p)+24>>2]|0;c[(d&p)+44>>2]=h;c[(d&p)+28>>2]=c[(e+(f*72|0)&p)+48>>2];if((b[(h&o)+36>>1]|0)==(g|0))b[(d&o)+32>>1]=-1;else{b[(d&o)+32>>1]=g;j=(g|0)>63;g=iw(1,0,g|0)|0;h=e+(f*72|0)+64|0;f=h;i=c[(f&p)+4>>2]|(j?-2147483648:G);c[(h&p)>>2]=c[(f&p)>>2]|(j?0:g);c[(h&p)+4>>2]=i}h=d+4|0;c[(h&p)>>2]=c[(h&p)>>2]|4}return d|0}function Sv(b,e){b=b|0;e=e|0;if((a[(e&n)>>0]|0)==-101){e=e+38|0;a[(e&n)>>0]=(d[(e&n)>>0]|0)+(c[(b&p)+24>>2]|0)}return 0}function Tv(a,d){a=a|0;d=d|0;var f=0,g=0,h=0,i=0,j=0,k=0;f=b[(a&o)+40>>1]|0;i=f&65535;h=b[(a&o)+42>>1]|0;k=e[(d&o)+40>>1]|0;g=b[(d&o)+42>>1]|0;a:do if(!((g&65535)>(h&65535)?1:(i-(h&65535)|0)>=(k-(g&65535)|0))){g=b[(a&o)+20>>1]|0;h=b[(d&o)+20>>1]|0;if(g<<16>>16>=h<<16>>16){if(g<<16>>16>h<<16>>16){f=0;break}if((b[(a&o)+22>>1]|0)>(b[(d&o)+22>>1]|0)){f=0;break}}if(!(f<<16>>16))f=1;else{j=c[(a&p)+48>>2]|0;d=d+48|0;a=i;while(1){a=a+-1|0;h=c[(j+(a<<2)&p)>>2]|0;if(h){f=k;while(1){g=f+-1|0;if((f|0)<=0){f=0;break a}if((c[((c[(d&p)>>2]|0)+(g<<2)&p)>>2]|0)==(h|0))break;else f=g}if((f|0)<1){f=0;break a}}if((a|0)<=0){f=1;break}}}}else f=0;while(0);return f|0}function Uv(d,e){d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0,v=0;f=c[(d&p)>>2]|0;a:do if(f){k=a[(e&n)+16>>0]|0;l=e+17|0;m=e+18|0;q=e+20|0;r=e+22|0;s=e+42|0;t=e+36|0;do{if((a[(f&n)+16>>0]|0)==k<<24>>24?(a[(f&n)+17>>0]|0)==(a[(l&n)>>0]|0):0){if((((c[(f&p)+36>>2]&16384|0)!=0?(b[(s&o)>>1]|0)==0:0)?(c[(t&p)>>2]&513|0)==513:0)?(i=f,j=e,h=c[(j&p)>>2]|0,j=c[(j&p)+4>>2]|0,(h&c[(i&p)>>2]|0)==(h|0)?(j&c[(i&p)+4>>2]|0)==(j|0):0):0)break a;u=f;v=c[(u&p)>>2]|0;u=c[(u&p)+4>>2]|0;h=e;g=c[(h&p)>>2]|0;h=c[(h&p)+4>>2]|0;i=g&v;j=h&u;if((((i|0)==(v|0)&(j|0)==(u|0)?(b[(f&o)+18>>1]|0)<=(b[(m&o)>>1]|0):0)?(b[(f&o)+20>>1]|0)<=(b[(q&o)>>1]|0):0)?(b[(f&o)+22>>1]|0)<=(b[(r&o)>>1]|0):0){d=0;break a}if(((i|0)==(g|0)&(j|0)==(h|0)?(b[(f&o)+20>>1]|0)>=(b[(q&o)>>1]|0):0)?(b[(f&o)+22>>1]|0)>=(b[(r&o)>>1]|0):0)break a}d=f+52|0;f=c[(d&p)>>2]|0}while((f|0)!=0)}while(0);return d|0}function Vv(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;h=pr(c[(a&p)>>2]|0,0,b+12|0,0)|0;do if(h){g=c[(a&p)>>2]|0;f=c[((c[(b&p)+4>>2]|0)&p)+20>>2]|0;a:do if(f){e=c[(g&p)+20>>2]|0;if((e|0)>0){b=c[(g&p)+16>>2]|0;d=0;while(1){a=d+1|0;if((c[(b+(d<<4)&p)+12>>2]|0)==(f|0)){a=d;d=7;break a}if((a|0)<(e|0))d=a;else{d=7;break}}}else a=0}else{a=-1e6;d=7}while(0);if((d|0)==7)if(!((a|0)==0|(a|0)>1))break;a=kh(g,c[((c[(g&p)+16>>2]|0)+(a<<4)&p)>>2]|0)|0;c[(h+(((c[(h&p)>>2]|0)+-1|0)*72|0)&p)+12>>2]=a}while(0);return h|0}function Wv(a){a=a|0;var b=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,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;do if(a>>>0<245){if(a>>>0<11)q=16;else q=a+11&-8;a=q>>>3;l=c[12266]|0;i=l>>>a;if(i&3){e=(i&1^1)+a|0;f=e<<1;b=49104+(f<<2)|0;f=49104+(f+2<<2)|0;g=c[(f&p)>>2]|0;h=g+8|0;i=c[(h&p)>>2]|0;do if((b|0)!=(i|0)){if(i>>>0<(c[12270]|0)>>>0)Ob();d=i+12|0;if((c[(d&p)>>2]|0)==(g|0)){c[(d&p)>>2]=b;c[(f&p)>>2]=i;break}else Ob()}else c[12266]=l&~(1<>2]=x|3;x=g+(x|4)|0;c[(x&p)>>2]=c[(x&p)>>2]|1;x=h;return x|0}k=c[12268]|0;if(q>>>0>k>>>0){if(i){f=2<>>12&16;f=f>>>a;e=f>>>5&8;f=f>>>e;d=f>>>2&4;f=f>>>d;g=f>>>1&2;f=f>>>g;h=f>>>1&1;h=(e|a|d|g|h)+(f>>>h)|0;f=h<<1;g=49104+(f<<2)|0;f=49104+(f+2<<2)|0;d=c[(f&p)>>2]|0;a=d+8|0;e=c[(a&p)>>2]|0;do if((g|0)!=(e|0)){if(e>>>0<(c[12270]|0)>>>0)Ob();i=e+12|0;if((c[(i&p)>>2]|0)==(d|0)){c[(i&p)>>2]=g;c[(f&p)>>2]=e;m=c[12268]|0;break}else Ob()}else{c[12266]=l&~(1<>2]=q|3;j=d+q|0;c[(d+(q|4)&p)>>2]=b|1;c[(d+x&p)>>2]=b;if(m){e=c[12271]|0;g=m>>>3;i=g<<1;f=49104+(i<<2)|0;h=c[12266]|0;g=1<>2]|0;if(i>>>0<(c[12270]|0)>>>0)Ob();else{n=h;o=i}}else{c[12266]=h|g;n=49104+(i+2<<2)|0;o=f}c[(n&p)>>2]=e;c[(o&p)+12>>2]=e;c[(e&p)+8>>2]=o;c[(e&p)+12>>2]=f}c[12268]=b;c[12271]=j;x=a;return x|0}a=c[12267]|0;if(a){h=(a&0-a)+-1|0;w=h>>>12&16;h=h>>>w;v=h>>>5&8;h=h>>>v;x=h>>>2&4;h=h>>>x;i=h>>>1&2;h=h>>>i;g=h>>>1&1;g=c[((v|w|x|i|g)+(h>>>g)<<2&p)+49368>>2]|0;h=(c[(g&p)+4>>2]&-8)-q|0;i=g;while(1){d=c[(i&p)+16>>2]|0;if(!d){d=c[(i&p)+20>>2]|0;if(!d){l=h;k=g;break}}i=(c[(d&p)+4>>2]&-8)-q|0;x=i>>>0>>0;h=x?i:h;i=d;g=x?d:g}a=c[12270]|0;if(k>>>0>>0)Ob();b=k+q|0;if(k>>>0>=b>>>0)Ob();j=c[(k&p)+24>>2]|0;g=c[(k&p)+12>>2]|0;do if((g|0)==(k|0)){h=k+20|0;i=c[(h&p)>>2]|0;if(!i){h=k+16|0;i=c[(h&p)>>2]|0;if(!i){e=0;break}}while(1){g=i+20|0;f=c[(g&p)>>2]|0;if(f){i=f;h=g;continue}g=i+16|0;f=c[(g&p)>>2]|0;if(!f)break;else{i=f;h=g}}if(h>>>0>>0)Ob();else{c[(h&p)>>2]=0;e=i;break}}else{f=c[(k&p)+8>>2]|0;if(f>>>0>>0)Ob();i=f+12|0;if((c[(i&p)>>2]|0)!=(k|0))Ob();h=g+8|0;if((c[(h&p)>>2]|0)==(k|0)){c[(i&p)>>2]=g;c[(h&p)>>2]=f;e=g;break}else Ob()}while(0);do if(j){i=c[(k&p)+28>>2]|0;h=49368+(i<<2)|0;if((k|0)==(c[(h&p)>>2]|0)){c[(h&p)>>2]=e;if(!e){c[12267]=c[12267]&~(1<>>0<(c[12270]|0)>>>0)Ob();i=j+16|0;if((c[(i&p)>>2]|0)==(k|0))c[(i&p)>>2]=e;else c[(j&p)+20>>2]=e;if(!e)break}h=c[12270]|0;if(e>>>0>>0)Ob();c[(e&p)+24>>2]=j;i=c[(k&p)+16>>2]|0;do if(i)if(i>>>0>>0)Ob();else{c[(e&p)+16>>2]=i;c[(i&p)+24>>2]=e;break}while(0);i=c[(k&p)+20>>2]|0;if(i)if(i>>>0<(c[12270]|0)>>>0)Ob();else{c[(e&p)+20>>2]=i;c[(i&p)+24>>2]=e;break}}while(0);if(l>>>0<16){x=l+q|0;c[(k&p)+4>>2]=x|3;x=k+(x+4)|0;c[(x&p)>>2]=c[(x&p)>>2]|1}else{c[(k&p)+4>>2]=q|3;c[(k+(q|4)&p)>>2]=l|1;c[(k+l+q&p)>>2]=l;d=c[12268]|0;if(d){e=c[12271]|0;g=d>>>3;i=g<<1;f=49104+(i<<2)|0;h=c[12266]|0;g=1<>2]|0;if(h>>>0<(c[12270]|0)>>>0)Ob();else{r=i;s=h}}else{c[12266]=h|g;r=49104+(i+2<<2)|0;s=f}c[(r&p)>>2]=e;c[(s&p)+12>>2]=e;c[(e&p)+8>>2]=s;c[(e&p)+12>>2]=f}c[12268]=l;c[12271]=b}x=k+8|0;return x|0}else s=q}else s=q}else if(a>>>0<=4294967231){a=a+11|0;s=a&-8;k=c[12267]|0;if(k){h=0-s|0;a=a>>>8;if(a)if(s>>>0>16777215)d=31;else{q=(a+1048320|0)>>>16&8;r=a<>>16&4;r=r<>>16&2;d=14-(o|q|d)+(r<>>15)|0;d=s>>>(d+7|0)&1|d<<1}else d=0;f=c[(d<<2&p)+49368>>2]|0;a:do if(!f){a=0;i=0}else{if((d|0)==31)i=0;else i=25-(d>>>1)|0;l=h;a=0;b=s<>2]&-8;h=e-s|0;if(h>>>0>>0)if((e|0)==(s|0)){a=f;i=f;break a}else i=f;else h=l;r=c[(f&p)+20>>2]|0;f=c[(f+(b>>>31<<2)&p)+16>>2]|0;a=(r|0)==0|(r|0)==(f|0)?a:r;if(!f)break;else{l=h;b=b<<1}}}while(0);if((a|0)==0&(i|0)==0){a=2<>>12&16;r=r>>>n;m=r>>>5&8;r=r>>>m;o=r>>>2&4;r=r>>>o;q=r>>>1&2;r=r>>>q;a=r>>>1&1;a=c[((m|n|o|q|a)+(r>>>a)<<2&p)+49368>>2]|0}if(!a){o=h;q=i}else while(1){r=(c[(a&p)+4>>2]&-8)-s|0;f=r>>>0>>0;h=f?r:h;i=f?a:i;f=c[(a&p)+16>>2]|0;if(f){a=f;continue}a=c[(a&p)+20>>2]|0;if(!a){o=h;q=i;break}}if((q|0)!=0?o>>>0<((c[12268]|0)-s|0)>>>0:0){a=c[12270]|0;if(q>>>0>>0)Ob();m=q+s|0;if(q>>>0>=m>>>0)Ob();j=c[(q&p)+24>>2]|0;g=c[(q&p)+12>>2]|0;do if((g|0)==(q|0)){h=q+20|0;i=c[(h&p)>>2]|0;if(!i){h=q+16|0;i=c[(h&p)>>2]|0;if(!i){u=0;break}}while(1){g=i+20|0;f=c[(g&p)>>2]|0;if(f){i=f;h=g;continue}g=i+16|0;f=c[(g&p)>>2]|0;if(!f)break;else{i=f;h=g}}if(h>>>0>>0)Ob();else{c[(h&p)>>2]=0;u=i;break}}else{f=c[(q&p)+8>>2]|0;if(f>>>0>>0)Ob();i=f+12|0;if((c[(i&p)>>2]|0)!=(q|0))Ob();h=g+8|0;if((c[(h&p)>>2]|0)==(q|0)){c[(i&p)>>2]=g;c[(h&p)>>2]=f;u=g;break}else Ob()}while(0);do if(j){i=c[(q&p)+28>>2]|0;h=49368+(i<<2)|0;if((q|0)==(c[(h&p)>>2]|0)){c[(h&p)>>2]=u;if(!u){c[12267]=c[12267]&~(1<>>0<(c[12270]|0)>>>0)Ob();i=j+16|0;if((c[(i&p)>>2]|0)==(q|0))c[(i&p)>>2]=u;else c[(j&p)+20>>2]=u;if(!u)break}h=c[12270]|0;if(u>>>0>>0)Ob();c[(u&p)+24>>2]=j;i=c[(q&p)+16>>2]|0;do if(i)if(i>>>0>>0)Ob();else{c[(u&p)+16>>2]=i;c[(i&p)+24>>2]=u;break}while(0);i=c[(q&p)+20>>2]|0;if(i)if(i>>>0<(c[12270]|0)>>>0)Ob();else{c[(u&p)+20>>2]=i;c[(i&p)+24>>2]=u;break}}while(0);b:do if(o>>>0>=16){c[(q&p)+4>>2]=s|3;c[(q+(s|4)&p)>>2]=o|1;c[(q+o+s&p)>>2]=o;i=o>>>3;if(o>>>0<256){h=i<<1;f=49104+(h<<2)|0;g=c[12266]|0;i=1<>2]|0;if(h>>>0>=(c[12270]|0)>>>0){v=i;w=h;break}Ob()}while(0);c[(v&p)>>2]=m;c[(w&p)+12>>2]=m;c[(q+s&p)+8>>2]=w;c[(q+s&p)+12>>2]=f;break}d=o>>>8;if(d)if(o>>>0>16777215)f=31;else{w=(d+1048320|0)>>>16&8;x=d<>>16&4;x=x<>>16&2;f=14-(v|w|f)+(x<>>15)|0;f=o>>>(f+7|0)&1|f<<1}else f=0;i=49368+(f<<2)|0;c[(q+s&p)+28>>2]=f;c[(q+s&p)+20>>2]=0;c[(q+s&p)+16>>2]=0;h=c[12267]|0;g=1<>2]=m;c[(q+s&p)+24>>2]=i;c[(q+s&p)+12>>2]=m;c[(q+s&p)+8>>2]=m;break}d=c[(i&p)>>2]|0;if((f|0)==31)b=0;else b=25-(f>>>1)|0;c:do if((c[(d&p)+4>>2]&-8|0)!=(o|0)){h=o<>>31<<2)+16|0;i=c[(b&p)>>2]|0;if(!i)break;if((c[(i&p)+4>>2]&-8|0)==(o|0)){C=i;break c}else{h=h<<1;d=i}}if(b>>>0<(c[12270]|0)>>>0)Ob();else{c[(b&p)>>2]=m;c[(q+s&p)+24>>2]=d;c[(q+s&p)+12>>2]=m;c[(q+s&p)+8>>2]=m;break b}}else C=d;while(0);d=C+8|0;b=c[(d&p)>>2]|0;x=c[12270]|0;if(C>>>0>=x>>>0&b>>>0>=x>>>0){c[(b&p)+12>>2]=m;c[(d&p)>>2]=m;c[(q+s&p)+8>>2]=b;c[(q+s&p)+12>>2]=C;c[(q+s&p)+24>>2]=0;break}else Ob()}else{x=o+s|0;c[(q&p)+4>>2]=x|3;x=q+(x+4)|0;c[(x&p)>>2]=c[(x&p)>>2]|1}while(0);x=q+8|0;return x|0}}}else s=-1;while(0);a=c[12268]|0;if(a>>>0>=s>>>0){b=a-s|0;d=c[12271]|0;if(b>>>0>15){c[12271]=d+s;c[12268]=b;c[(d+s&p)+4>>2]=b|1;c[(d+a&p)>>2]=b;c[(d&p)+4>>2]=s|3}else{c[12268]=0;c[12271]=0;c[(d&p)+4>>2]=a|3;x=d+(a+4)|0;c[(x&p)>>2]=c[(x&p)>>2]|1}x=d+8|0;return x|0}a=c[12269]|0;if(a>>>0>s>>>0){w=a-s|0;c[12269]=w;x=c[12272]|0;c[12272]=x+s;c[(x+s&p)+4>>2]=w|1;c[(x&p)+4>>2]=s|3;x=x+8|0;return x|0}do if(!(c[12384]|0)){a=wb(30)|0;if(!(a+-1&a)){c[12386]=a;c[12385]=a;c[12387]=-1;c[12388]=-1;c[12389]=0;c[12377]=0;c[12384]=(Pb(0)|0)&-16^1431655768;break}else Ob()}while(0);l=s+48|0;b=c[12386]|0;k=s+47|0;d=b+k|0;b=0-b|0;m=d&b;if(m>>>0<=s>>>0){x=0;return x|0}a=c[12376]|0;if((a|0)!=0?(v=c[12374]|0,w=v+m|0,w>>>0<=v>>>0|w>>>0>a>>>0):0){x=0;return x|0}d:do if(!(c[12377]&4)){a=c[12272]|0;e:do if(a){f=49512|0;while(1){i=c[(f&p)>>2]|0;if(i>>>0<=a>>>0?(t=f+4|0,(i+(c[(t&p)>>2]|0)|0)>>>0>a>>>0):0){e=f;h=t;a=f;break}f=c[(f&p)+8>>2]|0;if(!f){H=181;break e}}if(a){a=d-(c[12269]|0)&b;if(a>>>0<2147483647){i=sb(a|0)|0;if((i|0)==((c[(e&p)>>2]|0)+(c[(h&p)>>2]|0)|0))H=190;else H=191}else a=0}else H=181}else H=181;while(0);do if((H|0)==181){i=sb(0)|0;if((i|0)!=(-1|0)){a=i;h=c[12385]|0;f=h+-1|0;if(!(f&a))a=m;else a=m-a+(f+a&0-h)|0;h=c[12374]|0;f=h+a|0;if(a>>>0>s>>>0&a>>>0<2147483647){w=c[12376]|0;if((w|0)!=0?f>>>0<=h>>>0|f>>>0>w>>>0:0){a=0;break}h=sb(a|0)|0;if((h|0)==(i|0))H=190;else{i=h;H=191}}else a=0}else a=0}while(0);f:do if((H|0)==190){if((i|0)!=(-1|0)){y=i;H=201;break d}}else if((H|0)==191){h=0-a|0;do if((i|0)!=(-1|0)&a>>>0<2147483647&l>>>0>a>>>0?(x=c[12386]|0,x=k-a+x&0-x,x>>>0<2147483647):0)if((sb(x|0)|0)==(-1|0)){sb(h|0)|0;a=0;break f}else{a=x+a|0;break}while(0);if((i|0)==(-1|0))a=0;else{y=i;H=201;break d}}while(0);c[12377]=c[12377]|4;H=198}else{a=0;H=198}while(0);if((((H|0)==198?m>>>0<2147483647:0)?(y=sb(m|0)|0,z=sb(0)|0,(y|0)!=(-1|0)&(z|0)!=(-1|0)&y>>>0>>0):0)?(A=z-y|0,B=A>>>0>(s+40|0)>>>0,B):0){a=B?A:a;H=201}if((H|0)==201){i=(c[12374]|0)+a|0;c[12374]=i;if(i>>>0>(c[12375]|0)>>>0)c[12375]=i;l=c[12272]|0;g:do if(l){e=49512|0;do{i=c[(e&p)>>2]|0;h=e+4|0;f=c[(h&p)>>2]|0;if((y|0)==(i+f|0)){D=i;E=h;F=f;G=e;H=213;break}e=c[(e&p)+8>>2]|0}while((e|0)!=0);if(((H|0)==213?(c[(G&p)+12>>2]&8|0)==0:0)?l>>>0>=D>>>0&l>>>0>>0:0){c[(E&p)>>2]=F+a;b=(c[12269]|0)+a|0;d=l+8|0;if(!(d&7))d=0;else d=0-d&7;x=b-d|0;c[12272]=l+d;c[12269]=x;c[(l+d&p)+4>>2]=x|1;c[(l+b&p)+4>>2]=40;c[12273]=c[12388];break}i=c[12270]|0;if(y>>>0>>0){c[12270]=y;k=y}else k=i;i=y+a|0;h=49512|0;do{if((c[(h&p)>>2]|0)==(i|0)){I=h;J=h;H=223;break}h=c[(h&p)+8>>2]|0}while((h|0)!=0);if((H|0)==223?(c[(J&p)+12>>2]&8|0)==0:0){c[(I&p)>>2]=y;i=J+4|0;c[(i&p)>>2]=(c[(i&p)>>2]|0)+a;i=y+8|0;if(!(i&7))q=0;else q=0-i&7;i=y+(a+8)|0;if(!(i&7))d=0;else d=0-i&7;i=y+(d+a)|0;o=q+s|0;n=y+o|0;m=i-(y+q)-s|0;c[(y+q&p)+4>>2]=s|3;h:do if((i|0)!=(l|0)){if((i|0)==(c[12271]|0)){x=(c[12268]|0)+m|0;c[12268]=x;c[12271]=n;c[(y+o&p)+4>>2]=x|1;c[(y+x+o&p)>>2]=x;break}l=a+4|0;j=c[(y+l+d&p)>>2]|0;if((j&3|0)==1){b=j&-8;f=j>>>3;i:do if(j>>>0>=256){e=c[(y+(d|24)+a&p)>>2]|0;g=c[(y+a+d&p)+12>>2]|0;do if((g|0)==(i|0)){g=d|16;h=y+(l+g)|0;j=c[(h&p)>>2]|0;if(!j){h=y+(g+a)|0;j=c[(h&p)>>2]|0;if(!j){O=0;break}}while(1){g=j+20|0;f=c[(g&p)>>2]|0;if(f){j=f;h=g;continue}g=j+16|0;f=c[(g&p)>>2]|0;if(!f)break;else{j=f;h=g}}if(h>>>0>>0)Ob();else{c[(h&p)>>2]=0;O=j;break}}else{f=c[(y+(d|8)+a&p)>>2]|0;if(f>>>0>>0)Ob();j=f+12|0;if((c[(j&p)>>2]|0)!=(i|0))Ob();h=g+8|0;if((c[(h&p)>>2]|0)==(i|0)){c[(j&p)>>2]=g;c[(h&p)>>2]=f;O=g;break}else Ob()}while(0);if(!e)break;j=c[(y+a+d&p)+28>>2]|0;h=49368+(j<<2)|0;do if((i|0)!=(c[(h&p)>>2]|0)){if(e>>>0<(c[12270]|0)>>>0)Ob();j=e+16|0;if((c[(j&p)>>2]|0)==(i|0))c[(j&p)>>2]=O;else c[(e&p)+20>>2]=O;if(!O)break i}else{c[(h&p)>>2]=O;if(O)break;c[12267]=c[12267]&~(1<
>>0)}else i=u;c[(r&p)>>2]=i-u;a[(i&n)>>0]=0;i=i+1|0}if((m|0)==55)c[(r&p)>>2]=i-u;a[(i&n)>>0]=0;i=f+8|0;r=b[(i&o)>>1]|0;h=r&65535;if(!((r&9312)==0?(c[(f&p)+24>>2]|0)==0:0))Qg(f);b[(i&o)>>1]=h&29|514;a[(v&n)>>0]=g;c[(s&p)>>2]=u;c[(f&p)+20>>2]=u;h=c[(t&p)>>2]|0;do if(!h)h=lc[c[8792>>2]&127](u)|0;else{if((c[(h&p)+276>>2]|0)>>>0<=u>>>0?(c[(h&p)+280>>2]|0)>>>0>u>>>0:0){h=e[(h&o)+248>>1]|0;break}h=lc[c[8792>>2]&127](u)|0}while(0);c[(f&p)+24>>2]=h;h=0}}else if(!(Vl(f)|0)){h=c[(f&p)+16>>2]|0;t=c[(f&p)+12>>2]&-2;i=h+t|0;if((t|0)>0)do{s=a[(h&n)>>0]|0;t=h+1|0;a[(h&n)>>0]=a[(t&n)>>0]|0;h=h+2|0;a[(t&n)>>0]=s}while(h>>>0>>0);a[(v&n)>>0]=g;h=0}else h=7;return h|0}function Cn(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,i=0,j=0;i=a[(b&n)>>0]|0;g=i&255;a:do switch(g|0){case 46:{if(((d[(b&n)+1>>0]|0)+-48|0)>>>0<10)j=51;else{c[(e&p)>>2]=122;f=1}break}case 47:{if((a[(b&n)+1>>0]|0)==42?(f=a[(b&n)+2>>0]|0,f<<24>>24!=0):0){f=f&255;g=3;while(1){i=a[(b+g&n)>>0]|0;if((f|0)==42&i<<24>>24==47){f=42;break}f=i&255;if(!(i<<24>>24))break;else g=g+1|0}c[(e&p)>>2]=151;f=((f|0)!=0&1)+g|0;break a}c[(e&p)>>2]=92;f=1;break}case 45:{if((a[(b&n)+1>>0]|0)==45)f=2;else{c[(e&p)>>2]=90;f=1;break a}while(1){g=a[(b+f&n)>>0]|0;if(g<<24>>24==0|g<<24>>24==10)break;f=f+1|0}c[(e&p)>>2]=151;break}case 41:{c[(e&p)>>2]=23;f=1;break}case 59:{c[(e&p)>>2]=1;f=1;break}case 43:{c[(e&p)>>2]=89;f=1;break}case 42:{c[(e&p)>>2]=91;f=1;break}case 40:{c[(e&p)>>2]=22;f=1;break}case 124:if((a[(b&n)+1>>0]|0)==124){c[(e&p)>>2]=94;f=2;break a}else{c[(e&p)>>2]=86;f=1;break a}case 91:{f=1;while(1){g=a[(b+f&n)>>0]|0;if(!(g<<24>>24)){g=g&255;break}f=f+1|0;if(g<<24>>24==93){g=93;break}}c[(e&p)>>2]=(g|0)==93?27:150;break}case 44:{c[(e&p)>>2]=26;f=1;break}case 38:{c[(e&p)>>2]=85;f=1;break}case 126:{c[(e&p)>>2]=96;f=1;break}case 34:case 39:case 96:{g=a[(b&n)+1>>0]|0;b:do if(g<<24>>24){f=1;while(1){if(g<<24>>24==i<<24>>24){f=f+1|0;if((a[(b+f&n)>>0]|0)!=i<<24>>24)break}f=f+1|0;g=a[(b+f&n)>>0]|0;if(!(g<<24>>24))break b}if(i<<24>>24==39){c[(e&p)>>2]=97;break a}else{c[(e&p)>>2]=27;break a}}else f=1;while(0);c[(e&p)>>2]=150;break}case 88:case 120:{if((a[(b&n)+1>>0]|0)==39){c[(e&p)>>2]=134;f=2;while(1){g=a[(b+f&n)>>0]|0;if(!(a[(g&255&n)+10368>>0]&8))break;else f=f+1|0}if(g<<24>>24==39&(f&1|0)==0)g=1;else{c[(e&p)>>2]=150;while(1){g=a[(b+f&n)>>0]|0;if(g<<24>>24==39|g<<24>>24==0)break;f=f+1|0}g=g<<24>>24!=0}f=(g&1)+f|0}else j=98;break}case 61:{c[(e&p)>>2]=79;f=(a[(b&n)+1>>0]|0)==61?2:1;break}case 60:{f=a[(b&n)+1>>0]|0;if(f<<24>>24==62){c[(e&p)>>2]=78;f=2;break a}else if(f<<24>>24==60){c[(e&p)>>2]=87;f=2;break a}else if(f<<24>>24==61){c[(e&p)>>2]=81;f=2;break a}else{c[(e&p)>>2]=82;f=1;break a}}case 57:case 56:case 55:case 54:case 53:case 52:case 51:case 50:case 49:case 48:{j=51;break}case 62:{f=a[(b&n)+1>>0]|0;if(f<<24>>24==61){c[(e&p)>>2]=83;f=2;break a}else if(f<<24>>24==62){c[(e&p)>>2]=88;f=2;break a}else{c[(e&p)>>2]=80;f=1;break a}}case 63:{c[(e&p)>>2]=135;f=1;while(1)if(((d[(b+f&n)>>0]|0)+-48|0)>>>0<10)f=f+1|0;else break;break}case 33:if((a[(b&n)+1>>0]|0)==61){c[(e&p)>>2]=78;f=2;break a}else{c[(e&p)>>2]=150;f=2;break a}case 58:case 35:case 64:case 36:{c[(e&p)>>2]=135;g=a[(b&n)+1>>0]|0;if(g<<24>>24){f=1;i=0;while(1){if(!(a[(g&255&n)+10368>>0]&70)){if(g<<24>>24==40&(i|0)>0){g=i;j=78;break}if(g<<24>>24!=58){g=i;break}g=f+1|0;if((a[(b+g&n)>>0]|0)==58)f=g;else{g=i;break}}else i=i+1|0;f=f+1|0;g=a[(b+f&n)>>0]|0;if(!(g<<24>>24)){g=i;break}}do if((j|0)==78){h=f;while(1){f=h+1|0;i=a[(b+f&n)>>0]|0;if(!(i<<24>>24))break;if(i<<24>>24!=41?(a[(i&255&n)+10368>>0]&1)==0:0)h=f;else{j=81;break}}if((j|0)==81)if(i<<24>>24==41){f=h+2|0;break}c[(e&p)>>2]=150}while(0);if(g)break a}else f=1;c[(e&p)>>2]=150;break}case 37:{c[(e&p)>>2]=93;f=1;break}case 13:case 12:case 10:case 9:case 32:{f=1;while(1)if(!(a[((d[(b+f&n)>>0]|0)&n)+10368>>0]&1))break;else f=f+1|0;c[(e&p)>>2]=151;break}default:j=98}while(0);c:do if((j|0)==51){c[(e&p)>>2]=132;f=a[(b&n)>>0]|0;if(f<<24>>24==48){g=a[(b&n)+1>>0]|0;if(g<<24>>24==88|g<<24>>24==120)if(!(a[((d[(b&n)+2>>0]|0)&n)+10368>>0]&8))h=0;else{f=3;while(1)if(!(a[((d[(b+f&n)>>0]|0)&n)+10368>>0]&8))break c;else f=f+1|0}else{f=48;h=0}}else h=0;while(1){g=h+1|0;if(((f&255)+-48|0)>>>0>=10){g=h;break}f=a[(b+g&n)>>0]|0;h=g}if(f<<24>>24==46){f=g;do{f=f+1|0;g=b+f|0}while(((d[(g&n)>>0]|0)+-48|0)>>>0<10);c[(e&p)>>2]=133;h=a[(g&n)>>0]|0;i=f}else{h=f;i=g}do if(h<<24>>24==69|h<<24>>24==101){g=a[(b+i&n)+1>>0]|0;if(((g&255)+-48|0)>>>0>=10){if(!(g<<24>>24==45|g<<24>>24==43)){g=h;f=i;break}f=i+2|0;if(((d[(b+f&n)>>0]|0)+-48|0)>>>0>=10){g=h;f=i;break}}else f=i+2|0;while(1){g=b+f|0;if(((d[(g&n)>>0]|0)+-48|0)>>>0<10)f=f+1|0;else break}c[(e&p)>>2]=133;g=a[(g&n)>>0]|0}else{g=h;f=i}while(0);if(a[(g&255&n)+10368>>0]&70)do{c[(e&p)>>2]=150;f=f+1|0}while((a[((d[(b+f&n)>>0]|0)&n)+10368>>0]&70)!=0)}else if((j|0)==98){if(!(a[(g&n)+10368>>0]&70)){c[(e&p)>>2]=150;f=1;break}else f=1;while(1)if(!(a[((d[(b+f&n)>>0]|0)&n)+10368>>0]&70))break;else f=f+1|0;c[(e&p)>>2]=fi(b,f)|0}while(0);return f|0}function Dn(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,i=0,j=0;f=a[(b&n)>>0]|0;if(f<<24>>24==43){b=b+1|0;i=0;j=13}else if(f<<24>>24==45){b=b+1|0;i=1;j=13}else if((f<<24>>24==48?(f=a[(b&n)+1>>0]|0,f<<24>>24==88|f<<24>>24==120):0)?(g=b+2|0,e=a[(g&n)>>0]|0,(a[(e&255&n)+10368>>0]&8)!=0):0){while(1){f=g+1|0;if(e<<24>>24!=48)break;g=f;e=a[(f&n)>>0]|0}if(!(a[(e&255&n)+10368>>0]&8)){e=0;f=0}else{h=e;b=0;f=0;do{e=h<<24>>24;f=(0-(e>>>6&1)&9)+e&15|f<<4;b=b+1|0;h=a[(g+b&n)>>0]|0;e=(a[(h&255&n)+10368>>0]&8)==0}while((b|0)<8&(e^1));e=e^1}if((f|0)<0|e)e=0;else{c[(d&p)>>2]=f;e=1}}else{i=0;j=13}a:do if((j|0)==13){e=0;f=0;h=0;while(1){g=(a[(b+h&n)>>0]|0)+-48|0;if(g>>>0>=10)break;f=sw(e|0,f|0,10,0)|0;e=jw(g|0,((g|0)<0)<<31>>31|0,f|0,G|0)|0;h=h+1|0;if((h|0)>=11){e=0;break a}else f=G}g=dw(e|0,f|0,i|0,0)|0;b=G;if((b|0)>0|(b|0)==0&g>>>0>2147483647)e=0;else{if(i)e=dw(0,0,e|0,f|0)|0;c[(d&p)>>2]=e;e=1}}while(0);return e|0}function En(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0;f=i;i=i+16|0;if((i|0)>=(j|0))fa();g=f;c[(g&p)>>2]=e;sg(a,b,d,g);i=f;return}function Fn(e,f,g,h,k,l,m){e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;m=m|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,H=0,I=0;I=i;i=i+16|0;if((i|0)>=(j|0))fa();F=I;D=I+4|0;c[(D&p)>>2]=0;H=mh(e,536,0)|0;a:do if(H){fw(H|0,0,536)|0;c[(H&p)+476>>2]=k;u=e+20|0;k=c[(u&p)>>2]|0;b:do if((k|0)>0){v=e+16|0;s=0;while(1){t=c[((c[(v&p)>>2]|0)+(s<<4)&p)+4>>2]|0;if(t){c[((c[(t&p)+4>>2]|0)&p)+4>>2]=c[(t&p)>>2];q=bl(t,1,1)|0;if(q)break;k=c[(u&p)>>2]|0}s=s+1|0;if((s|0)>=(k|0))break b}c[(F&p)>>2]=c[((c[(v&p)>>2]|0)+(s<<4)&p)>>2];ug(e,q,40984,F);s=H;break a}while(0);rl(e);c[(H&p)>>2]=e;c[(H&p)+424>>2]=0;do if((g|0)>-1){if((g|0)!=0?(a[(f+g+-1&n)>>0]|0)==0:0){E=21;break}if((c[(e&p)+92>>2]|0)<(g|0)){ug(e,18,41016,F);if(!e){s=H;q=18;break a}if(!(a[(e&n)+65>>0]|0)){s=H;q=c[(e&p)+56>>2]&18;break a}else{Ql(e);s=H;q=7;break a}}else{if((f|0)!=0?(r=jw(g|0,((g|0)<0)<<31>>31|0,1,0)|0,r=mh(e,r,G)|0,(r|0)!=0):0){kw(r|0,f|0,g|0)|0;a[(r+g&n)>>0]=0;Lh(H,r,D)|0;mg(e,r);q=H+480|0;c[(q&p)>>2]=f+((c[(q&p)>>2]|0)-r);break}c[(H&p)+480>>2]=f+g;break}}else E=21;while(0);if((E|0)==21)Lh(H,f,D)|0;v=e+65|0;k=H+12|0;if(!(a[(v&n)>>0]|0)){s=H+12|0;if((c[(k&p)>>2]|0)==101)c[(s&p)>>2]=0}else{c[(k&p)>>2]=7;s=H+12|0}c:do if((a[(H&n)+17>>0]|0)!=0?(w=c[(H&p)>>2]|0,x=w+20|0,(c[(x&p)>>2]|0)>0):0){r=w+16|0;u=0;while(1){k=c[(r&p)>>2]|0;q=c[(k+(u<<4)&p)+4>>2]|0;if(q){if(!(a[(q&n)+8>>0]|0)){k=yg(q,0)|0;if((k|0)==7|(k|0)==3082)break;else if(k)break c;k=c[(r&p)>>2]|0;t=1}else t=0;g=c[(q&p)+4>>2]|0;c[(g&p)+4>>2]=c[(q&p)>>2];g=c[((c[(g&p)+12>>2]|0)&p)+56>>2]|0;if((d[(g&n)+41>>0]<<16|d[(g&n)+40>>0]<<24|d[(g&n)+42>>0]<<8|d[(g&n)+43>>0]|0)!=(c[(c[(k+(u<<4)&p)+12>>2]&p)>>2]|0)){vm(w,u);c[(s&p)>>2]=17}if(t)un(q)|0}u=u+1|0;if((u|0)>=(c[(x&p)>>2]|0))break c}a[(w&n)+65>>0]=1}while(0);if(a[(v&n)>>0]|0)c[(s&p)>>2]=7;if(m)c[(m&p)>>2]=c[(H&p)+480>>2];q=c[(s&p)>>2]|0;t=(q|0)==0;do if(t?(z=H+8|0,y=c[(z&p)>>2]|0,(y|0)!=0):0){s=a[(H&n)+450>>0]|0;if(!(s<<24>>24))break;else if(s<<24>>24==2){iq(y,4);r=8;k=12}else{iq(y,8);r=0;k=8}s=r;do{jq(c[(z&p)>>2]|0,s-r|0,0,c[(s<<2&p)+41040>>2]|0,0);s=s+1|0}while((s|0)<(k|0))}while(0);r=H+8|0;if((a[(e&n)+145>>0]|0)==0?(C=c[(r&p)>>2]|0,A=(c[(H&p)+480>>2]|0)-f|0,(C|0)!=0):0){if((f|0)!=0?(z=c[(C&p)>>2]|0,B=jw(A|0,((A|0)<0)<<31>>31|0,1,0)|0,B=mh(z,B,G)|0,(B|0)!=0):0){kw(B|0,f|0,A|0)|0;a[(B+A&n)>>0]=0;s=B}else s=0;c[(C&p)+168>>2]=s;C=C+88|0;b[(C&o)>>1]=b[(C&o)>>1]&-257|(h&65535)<<8&256}s=c[(r&p)>>2]|0;do if(!s)E=60;else{if(t?(a[(v&n)>>0]|0)==0:0){E=60;break}Ng(s)|0}while(0);if((E|0)==60)c[(l&p)>>2]=s;r=c[(D&p)>>2]|0;do if(!r){c[(e&p)+52>>2]=q;r=c[(e&p)+236>>2]|0;if(r){s=r+8|0;if(!(b[(s&o)>>1]&9312)){b[(s&o)>>1]=1;break}else{vg(r);break}}}else{c[(F&p)>>2]=r;ug(e,q,10344,F);mg(e,r)}while(0);r=H+528|0;s=c[(r&p)>>2]|0;if(!s)s=H;else{do{c[(r&p)>>2]=c[(s&p)+4>>2];mg(e,s);s=c[(r&p)>>2]|0}while((s|0)!=0);s=H}}else{s=0;q=7}while(0);Ch(s);mg(e,H);F=Og(e,q)|0;i=I;return F|0}function Gn(b){b=b|0;var d=0,e=0;e=c[(b&p)>>2]|0;if((a[(e&n)+145>>0]|0)==0?(d=Zh(e,b+4|0)|0,(d|0)!=0):0){c[(b&p)+12>>2]=d;e=b+64|0;c[(e&p)>>2]=(c[(e&p)>>2]|0)+1}else d=0;return d|0}function Hn(a){a=a|0;var b=0,d=0,f=0,g=0,h=0;f=c[(a&p)+24>>2]|0;h=f+84|0;b=c[(h&p)>>2]|0;if(!b){b=1020;d=0}else{b=b*40|0;d=0}g=a+4|0;a=ro(c[(f&p)>>2]|0,c[(g&p)>>2]|0,b,d)|0;d=(a|0)!=0;if(d){b=c[(f&p)>>2]|0;do if(!b)b=lc[c[8792>>2]&127](a)|0;else{if((c[(b&p)+276>>2]|0)>>>0<=a>>>0?(c[(b&p)+280>>2]|0)>>>0>a>>>0:0){b=e[(b&o)+248>>1]|0;break}b=lc[c[8792>>2]&127](a)|0}while(0);c[(h&p)>>2]=(b>>>0)/20|0;c[(g&p)>>2]=a}return (d?0:7)|0}function In(a,d,e){a=a|0;d=d|0;e=e|0;a:do if(e)switch(d|0){case -6:{if(c[(a&p)+520>>2]|0)break a;a=(c[(e&p)>>2]|0)+-1|0;c[(e&p)>>2]=a;if(a)break a;Wc(e);break a}case -8:{if(!(c[(a&p)+520>>2]|0)){Mh(e);break a}if(c[(e&p)+24>>2]|0)mg(a,c[(e&p)+20>>2]|0);mg(a,e);break a}case -10:{if(c[(a&p)+520>>2]|0)break a;An(e);break a}case -15:case -1:case -13:case -12:{mg(a,e);break a}case -11:{if(c[(a&p)+520>>2]|0)break a;Wc(e);break a}case -5:{if(!(b[(e&o)+2>>1]&16))break a;mg(a,e);break a}default:break a}while(0);return}function Jn(e,f){e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0;g=c[(f&p)>>2]|0;s=c[(e&p)+24>>2]|0;t=s+112|0;k=c[(t&p)>>2]|0;q=e+88|0;b[(q&o)>>1]=b[(q&o)>>1]&-193|64;h=c[(e&p)+32>>2]|0;a:do if((h|0)>0){j=c[(e&p)+4>>2]|0;while(1){h=h+-1|0;i=d[(j&n)>>0]|0;switch(i|0){case 5:case 7:case 9:{c[(j&p)+16>>2]=76;a[(j&n)+1>>0]=-19;break}case 6:case 8:{c[(j&p)+16>>2]=77;a[(j&n)+1>>0]=-19;break}case 14:{u=c[(j+-16&p)>>2]|0;g=(u|0)>(g|0)?u:g;break}case 2:case 3:{r=7;break}case 4:{if(!(c[(j&p)+8>>2]|0))r=7;else{b[(q&o)>>1]=b[(q&o)>>1]&-65;r=7}break}case 12:case 13:case 11:{b[(q&o)>>1]=b[(q&o)>>1]&-193|128;break}case 15:{u=c[(j&p)+8>>2]|0;g=(u|0)>(g|0)?u:g;break}case 10:case 1:{u=d[(j&n)+3>>0]|0;g=(u|0)>(g|0)?u:g;break}default:{}}if((r|0)==7){r=0;b[(q&o)>>1]=b[(q&o)>>1]|128}i=a[(i&n)+34168>>0]|0;a[(j&n)+2>>0]=i;if((i&1)!=0?(l=j+8|0,m=c[(l&p)>>2]|0,(m|0)<0):0)c[(l&p)>>2]=c[(k+(~m<<2)&p)>>2];if((h|0)<=0)break a;else j=j+20|0}}while(0);mg(c[(e&p)>>2]|0,c[(t&p)>>2]|0);c[(t&p)>>2]=0;c[(s&p)+108>>2]=0;c[(f&p)>>2]=g;return}function Kn(b){b=b|0;var d=0,e=0,f=0,g=0,h=0;h=i;i=i+16|0;if((i|0)>=(j|0))fa();g=h;e=b+73|0;if((a[(e&n)>>0]|0)!=4){a[(e&n)>>0]=0;f=b+56|0;d=b+48|0;d=Gp(b,c[(f&p)>>2]|0,c[(d&p)>>2]|0,c[(d&p)+4>>2]|0,0,g)|0;if(!d){Wc(c[(f&p)>>2]|0);c[(f&p)>>2]=0;f=b+68|0;d=c[(f&p)>>2]|c[(g&p)>>2];c[(f&p)>>2]=d;if((d|0)!=0?(a[(e&n)>>0]|0)==1:0){a[(e&n)>>0]=2;d=0}else d=0}}else d=c[(b&p)+68>>2]|0;i=h;return d|0}function Ln(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;a=c[(a&p)+8>>2]|0;a:do if(!a)a=0;else{e=(b|0)==0;while(1){if((a|0)!=(d|0)){if(e)break;if((c[(a&p)+60>>2]|0)==(b|0))break}a=c[(a&p)+8>>2]|0;if(!a){a=0;break a}}a=Fl(a,b,d)|0}while(0);return a|0}function Mn(b){b=b|0;var e=0,f=0,g=0,h=0;f=c[(b&p)>>2]|0;g=f+1|0;c[(b&p)>>2]=g;h=a[(f&n)>>0]|0;e=h&255;if((h&255)<=191)return e|0;e=d[(e+-192&n)+15360>>0]|0;if((a[(g&n)>>0]&-64)<<24>>24==-128)while(1){f=f+2|0;c[(b&p)>>2]=f;e=(d[(g&n)>>0]|0)&63|e<<6;if((a[(f&n)>>0]&-64)<<24>>24==-128){h=g;g=f;f=h}else break}return (e>>>0<128|(e&-2048|0)==55296|(e&-2|0)==65534?65533:e)|0}function Nn(b,c){b=b|0;c=c|0;var d=0,e=0,f=0,g=0;if((c|0)>-1)g=b+c|0;else g=-1;c=a[(b&n)>>0]|0;if(c<<24>>24!=0&g>>>0>b>>>0){d=c;c=0;do{f=b+1|0;if((d&255)>191){e=b;b=f;while(1){d=a[(b&n)>>0]|0;if((d&-64)<<24>>24==-128){d=b;b=e+2|0;e=d}else break}}else{d=a[(f&n)>>0]|0;b=f}c=c+1|0}while(d<<24>>24!=0&b>>>0>>0)}else c=0;return c|0}function On(d,f,g,h){d=d|0;f=f|0;g=g|0;h=h|0;var k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0;A=i;i=i+48|0;if((i|0)>=(j|0))fa();w=A+32|0;x=A+16|0;y=A;k=c[(d&p)>>2]|0;if((k|0)<0){c[(d&p)>>2]=0;c[(d&p)+4>>2]=-1;b[(d&o)+12>>1]=0;a[(d&n)+14>>0]=0;k=0}s=g;r=c[(s&p)+4>>2]|0;t=y;c[(t&p)>>2]=c[(s&p)>>2];c[(t&p)+4>>2]=r;t=d+8|0;c[(t&p)>>2]=h;r=f&255;s=(f|0)==254;do{q=b[(d+(k<<4)&o)+12>>1]|0;h=q&65535;g=37184+(h<<1)|0;a:do if((q&65535)>429)z=6;else{q=r;while(1){m=b[(g&o)>>1]|0;l=m<<16>>16;if(m<<16>>16==-86){z=6;break a}m=q&255;k=l+m|0;if(k>>>0<=1496?(a[(k&n)+39336>>0]|0)==q<<24>>24:0){z=16;break}if(!(q<<24>>24))break;if((q&255)>=70){u=l;z=12;break}q=a[(m&n)+40840>>0]|0;if(!(q<<24>>24)){u=l;z=12;break}}if((z|0)==16){z=0;k=e[(k<<1&o)+22184>>1]|0;break}if(((z|0)==12?(z=0,v=u+70|0,(v|0)>-1):0)?(a[(v&n)+39336>>0]|0)==70:0){k=e[(v<<1&o)+22184>>1]|0;break}k=e[(h<<1&o)+38048>>1]|0}while(0);if((z|0)==6){z=0;k=e[(h<<1&o)+38048>>1]|0}if(k>>>0<642){z=18;break}if(k>>>0>=969){z=20;break}mq(d,k+-642|0);if(s)break;k=c[(d&p)>>2]|0}while((k|0)>-1);if((z|0)==18){kq(d,k,f,y);u=d+4|0;c[(u&p)>>2]=(c[(u&p)>>2]|0)+-1}else if((z|0)==20){c[(x&p)>>2]=c[(y&p)>>2];c[(x&p)+4>>2]=c[(y&p)+4>>2];c[(x&p)+8>>2]=c[(y&p)+8>>2];u=c[(t&p)>>2]|0;c[(w&p)>>2]=x;th(u,20432,w);c[(t&p)>>2]=u;lq(d,r,y)}i=A;return}function Pn(b){b=b|0;var d=0;d=c[(b&p)>>2]|0;if((d|0)>=0){lq(b,a[(b+(d<<4)&n)+14>>0]|0,b+(d<<4)+16|0);c[(b&p)>>2]=(c[(b&p)>>2]|0)+-1}return}function Qn(a,b){a=a|0;b=b|0;var d=0;if(b){if((c[(b&p)>>2]|0)>0){d=0;do{Nk(a,c[(b+(d<<4)&p)+12>>2]|0);Mk(a,c[(b+(d<<4)&p)+16>>2]|0,1);mg(a,c[(b+(d<<4)&p)+8>>2]|0);d=d+1|0}while((d|0)<(c[(b&p)>>2]|0))}mg(a,b)}return}function Rn(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,i=0;h=a+328|0;d=c[(h&p)>>2]|0;if(d){i=a+304|0;if((c[(i&p)>>2]|0)>0){f=0;do{e=c[(d+(f<<2)&p)>>2]|0;d=c[(e&p)+8>>2]|0;if((d|0)!=0?(g=c[((c[(d&p)>>2]|0)+b&p)>>2]|0,(g|0)!=0):0)lc[g&127](d)|0;c[(e&p)+20>>2]=0;An(e);f=f+1|0;d=c[(h&p)>>2]|0}while((f|0)<(c[(i&p)>>2]|0))}mg(a,d);c[(i&p)>>2]=0;c[(h&p)>>2]=0}return}function Sn(a,d,f){a=a|0;d=d|0;f=f|0;var g=0,h=0;do if((d|0)==-2)if(!(c[(a&p)+12>>2]|0))d=(c[(a&p)+16>>2]|0)==0?0:6;else d=6;else{h=b[(a&o)>>1]|0;g=h<<16>>16;if(!((g|0)!=(d|0)&h<<16>>16>-1)){h=(g|0)==(d|0)?4:1;g=f&255;d=e[(a&o)+2>>1]|0;if((g|0)==(d&3|0)){d=h|2;break}else return ((d&g)>>>1&1)+h|0}else d=0}while(0);return d|0} function uc(a){a=a|0;var b=0;b=i;i=i+a|0;i=i+15&-16;if((i|0)>=(j|0))fa();return b|0}function vc(){return i|0}function wc(a){a=a|0;i=a}function xc(a,b){a=a|0;b=b|0;if(!r){r=a;s=b}}function yc(b){b=b|0;a[(k&n)>>0]=a[(b&n)>>0];a[(k&n)+1>>0]=a[(b&n)+1>>0];a[(k&n)+2>>0]=a[(b&n)+2>>0];a[(k&n)+3>>0]=a[(b&n)+3>>0]}function zc(b){b=b|0;a[(k&n)>>0]=a[(b&n)>>0];a[(k&n)+1>>0]=a[(b&n)+1>>0];a[(k&n)+2>>0]=a[(b&n)+2>>0];a[(k&n)+3>>0]=a[(b&n)+3>>0];a[(k&n)+4>>0]=a[(b&n)+4>>0];a[(k&n)+5>>0]=a[(b&n)+5>>0];a[(k&n)+6>>0]=a[(b&n)+6>>0];a[(k&n)+7>>0]=a[(b&n)+7>>0]}function Ac(a){a=a|0;G=a}function Bc(){return G|0}function Cc(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0;h=i;i=i+16|0;if((i|0)>=(j|0))fa();e=h+4|0;f=h;g=0;a:while(1){c[(e&p)>>2]=0;c[(f&p)>>2]=0;a[280]=0;if(Rf(14640,e)|0){d=4;break}d=c[(e&p)>>2]|0;b=0;do{if(Qe(d,c[(b<<2&p)+8>>2]|0,17,0,f)|0){d=7;break a}b=b+1|0;d=c[(e&p)>>2]|0}while((b|0)!=5);tf(d)|0;if(_v(280,8504)|0){d=9;break}g=g+1|0;if((g|0)>=3){d=11;break}}if((d|0)==4)ib(8472,8488,47,8496);else if((d|0)==7)ib(8472,8488,50,8496);else if((d|0)==9)ib(8600,8488,53,8496);else if((d|0)==11){i=h;return 0}return 0}function Dc(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;if((d|0)>0)while(1){d=d+-1|0;hw(280,c[(f&p)>>2]|0)|0;b=280+(gw(280)|0)|0;a[(b&n)>>0]=61;a[(b&n)+1>>0]=0;b=c[(e&p)>>2]|0;hw(280,((b|0)==0?20304:b)|0)|0;if((d|0)<=0)break;else{e=e+4|0;f=f+4|0}}return 0}function Ec(b){b=b|0;var e=0,f=0,g=0;g=(Fc(b,8640,7)|0)==0;g=g?b+7|0:b;if(!g)b=0;else{b=g;while(1)if(!(a[(b&n)>>0]|0))break;else b=b+1|0;b=b-g&1073741823}f=0;while(1){e=c[(f<<2&p)+8648>>2]|0;if((Fc(g,e,b)|0)==0?(a[((d[(e+b&n)>>0]|0)&n)+10368>>0]&70)==0:0){b=1;break}f=f+1|0;if((f|0)>=4){b=0;break}}return b|0}function Fc(b,c,e){b=b|0;c=c|0;e=e|0;var f=0;a:do if(b)if(c)if((e|0)>0){f=b;while(1){b=a[(f&n)>>0]|0;if(!(b<<24>>24))break;if((a[(b&255&n)+9328>>0]|0)!=(a[((d[(c&n)>>0]|0)&n)+9328>>0]|0))break;e=e+-1|0;if((e|0)<=0){e=0;break a}else{f=f+1|0;c=c+1|0}}if((e|0)>=1)e=(d[(b&255&n)+9328>>0]|0)-(d[((d[(c&n)>>0]|0)&n)+9328>>0]|0)|0;else e=0}else e=0;else e=1;else e=((c|0)!=0)<<31>>31;while(0);return e|0}function Gc(a){a=a|0;if(a>>>0<4)a=c[(a<<2&p)+8648>>2]|0;else a=0;return a|0}function Hc(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0;h=i;i=i+16|0;if((i|0)>=(j|0))fa();f=h;if(a>>>0<=9){g=c[(a<<2&p)+8664>>2]|0;f=b;c[(f&p)>>2]=g;c[(f&p)+4>>2]=0;f=8704+(a<<2)|0;a=d;c[(a&p)>>2]=c[(f&p)>>2];c[(a&p)+4>>2]=0;if(!e)f=0;else{c[(f&p)>>2]=g;f=0}}else{c[(f&p)>>2]=15033;c[(f&p)+4>>2]=10788;bd(21,13648,f);f=21}i=h;return f|0}function Ic(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0;h=i;i=i+16|0;if((i|0)>=(j|0))fa();f=h+8|0;g=h;a=Hc(a,f,g,e)|0;if(!a){c[(b&p)>>2]=c[(f&p)>>2];c[(d&p)>>2]=c[(g&p)>>2]}i=h;return a|0}function Jc(a,b,d,f,g){a=a|0;b=b|0;d=d|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,n=0,q=0,r=0;r=i;i=i+16|0;if((i|0)>=(j|0))fa();n=r+4|0;l=r;switch(b|0){case 2:{c[(n&p)>>2]=0;q=a+20|0;g=c[(q&p)>>2]|0;h=(g|0)>0;if(h){l=c[(a&p)+16>>2]|0;k=0;do{b=c[(l+(k<<4)&p)+4>>2]|0;if(b)c[((c[(b&p)+4>>2]|0)&p)+4>>2]=c[(b&p)>>2];k=k+1|0}while((k|0)!=(g|0));k=a+520|0;c[(k&p)>>2]=n;if(h){m=a+16|0;h=0;do{b=c[((c[(m&p)>>2]|0)+(h<<4)&p)+12>>2]|0;if(b){l=lc[c[8796>>2]&127](16)|0;l=ca((c[(b&p)+44>>2]|0)+(c[(b&p)+12>>2]|0)+(c[(b&p)+28>>2]|0)+(c[(b&p)+60>>2]|0)|0,l)|0;c[(n&p)>>2]=l+(c[(n&p)>>2]|0);l=lc[c[8792>>2]&127](c[(b&p)+20>>2]|0)|0;c[(n&p)>>2]=(c[(n&p)>>2]|0)+l;l=lc[c[8792>>2]&127](c[(b&p)+52>>2]|0)|0;c[(n&p)>>2]=(c[(n&p)>>2]|0)+l;l=lc[c[8792>>2]&127](c[(b&p)+36>>2]|0)|0;c[(n&p)>>2]=(c[(n&p)>>2]|0)+l;l=lc[c[8792>>2]&127](c[(b&p)+68>>2]|0)|0;c[(n&p)>>2]=(c[(n&p)>>2]|0)+l;l=c[(b&p)+48>>2]|0;if(l)do{jg(a,c[(l&p)+8>>2]|0);l=c[(l&p)>>2]|0}while((l|0)!=0);l=c[(b&p)+16>>2]|0;if(l)do{kg(a,c[(l&p)+8>>2]|0);l=c[(l&p)>>2]|0}while((l|0)!=0);g=c[(q&p)>>2]|0}h=h+1|0}while((h|0)<(g|0));h=c[(n&p)>>2]|0}else h=0}else{k=a+520|0;c[(k&p)>>2]=n;h=0}c[(k&p)>>2]=0;c[(f&p)>>2]=0;c[(d&p)>>2]=h;h=0;break}case 9:case 8:case 7:{q=a+20|0;l=c[(q&p)>>2]|0;if((l|0)>0){n=c[(a&p)+16>>2]|0;m=b+-7|0;k=(g|0)==0;h=0;b=l;g=0;while(1){l=c[(n+(g<<4)&p)+4>>2]|0;if(l){l=(c[(c[(l&p)+4>>2]&p)>>2]|0)+(m<<2)+184|0;h=(c[(l&p)>>2]|0)+h|0;if(k)l=b;else{c[(l&p)>>2]=0;l=c[(q&p)>>2]|0}}else l=b;g=g+1|0;if((g|0)>=(l|0))break;else b=l}}else h=0;c[(f&p)>>2]=0;c[(d&p)>>2]=h;h=0;break}case 0:{k=a+252|0;c[(d&p)>>2]=c[(k&p)>>2];h=a+256|0;c[(f&p)>>2]=c[(h&p)>>2];if(!g)h=0;else{c[(h&p)>>2]=c[(k&p)>>2];h=0}break}case 6:case 5:case 4:{c[(d&p)>>2]=0;h=a+(b+-4<<2)+260|0;c[(f&p)>>2]=c[(h&p)>>2];if(!g)h=0;else{c[(h&p)>>2]=0;h=0}break}case 1:{m=a+20|0;k=c[(m&p)>>2]|0;g=(k|0)>0;if(g){h=c[(a&p)+16>>2]|0;l=0;do{b=c[(h+(l<<4)&p)+4>>2]|0;if(b)c[((c[(b&p)+4>>2]|0)&p)+4>>2]=c[(b&p)>>2];l=l+1|0}while((l|0)!=(k|0));if(g){b=a+16|0;l=0;h=0;while(1){g=c[((c[(b&p)>>2]|0)+(l<<4)&p)+4>>2]|0;if(!g)g=k;else{q=c[(c[(g&p)+4>>2]&p)>>2]|0;a=q+152|0;n=(c[(a&p)>>2]|0)+60+(e[(q&o)+140>>1]|0)|0;n=ca(lc[c[8872>>2]&127](c[((c[(q&p)+204>>2]|0)&p)+40>>2]|0)|0,n)|0;q=lc[c[8792>>2]&127](q)|0;g=c[(m&p)>>2]|0;h=n+h+q+(c[(a&p)>>2]|0)|0}l=l+1|0;if((l|0)>=(g|0))break;else k=g}}else h=0}else h=0;c[(d&p)>>2]=h;c[(f&p)>>2]=0;h=0;break}case 3:{c[(l&p)>>2]=0;g=a+520|0;c[(g&p)>>2]=l;k=c[(a&p)+4>>2]|0;if(!k)h=0;else{do{lg(a,k);mg(a,k);k=c[(k&p)+52>>2]|0}while((k|0)!=0);h=c[(l&p)>>2]|0}c[(g&p)>>2]=0;c[(f&p)>>2]=0;c[(d&p)>>2]=h;h=0;break}case 10:{c[(f&p)>>2]=0;q=a+512|0;n=c[(q&p)+4>>2]|0;if((n|0)>0|(n|0)==0&(c[(q&p)>>2]|0)>>>0>0)h=1;else{h=a+504|0;a=c[(h&p)+4>>2]|0;h=(a|0)>0|(a|0)==0&(c[(h&p)>>2]|0)>>>0>0}c[(d&p)>>2]=h&1;h=0;break}default:h=1}i=r;return h|0}function Kc(a){a=a|0;var b=0;a:do if(!(Lc()|0)){b=c[2254]|0;if(!((b|0)==0|(a|0)==0))while(1){if(!(_v(a,c[(b&p)+16>>2]|0)|0))break a;b=c[(b&p)+12>>2]|0;if(!b){b=0;break}}}else b=0;while(0);return b|0}function Lc(){var a=0,b=0,d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0;m=i;i=i+16|0;if((i|0)>=(j|0))fa();k=m;do if(!(c[2243]|0)){c[2245]=1;if(!(c[2246]|0)){if(!(c[2195]|0)){c[(k&p)>>2]=16496;mf(4,k)|0}b=9024|0;d=b+40|0;do{c[(b&p)>>2]=0;b=b+4|0}while((b|0)<(d|0));if(c[2187]|0)c[2256]=8;h=c[2234]|0;d=c[2235]|0;b=c[2236]|0;if((h|0)!=0&(d|0)>99&(b|0)>0){g=d&-8;c[2235]=g;c[2263]=h;c[2264]=b;f=b+-1|0;if((f|0)>0){b=h+(ca(d>>>3,(b<<3)+-8|0)|0)|0;e=0;d=h;do{a=d;d=d+g|0;c[(a&p)>>2]=d;e=e+1|0}while((e|0)!=(f|0))}else b=h;c[(b&p)>>2]=0;c[2262]=b+4}else{c[2262]=0;c[2234]=0;c[2235]=0;c[2236]=0}if((c[2237]|0)==0|(c[2238]|0)<512|(c[2239]|0)<1){c[2237]=0;c[2238]=0;c[2239]=0}a=lc[c[8800>>2]&127](c[2202]|0)|0;if(a){b=9024|0;d=b+40|0;do{c[(b&p)>>2]=0;b=b+4|0}while((b|0)<(d|0));break}}c[2246]=1;if(!(c[2249]|0))c[2249]=8;a=(c[2248]|0)+1|0;c[2248]=a;if(!(c[2244]|c[2243])){c[2244]=1;b=10840|0;d=b+92|0;do{c[(b&p)>>2]=0;b=b+4|0}while((b|0)<(d|0));b=0;do{ng(10840,16608+(b*36|0)|0);b=b+1|0}while((b|0)!=59);b=0;do{ng(10840,19480+(b*36|0)|0);b=b+1|0}while((b|0)!=8);ng(10840,19256);ng(10840,19292|0);ng(10840,19328|0);if(!(c[2247]|0)){a=c[2214]|0;if(!a){c[(k&p)>>2]=16440;mf(18,k)|0;a=c[2214]|0}a=lc[a&127](c[2213]|0)|0;if(!a)l=28}else l=28;if((l|0)==28){c[2247]=1;a=Tc(10)|0;if(!a)a=7;else{Wc(a);Mc(9584,1)|0;Mc(9672|0,0)|0;Mc(9760|0,0)|0;Mc(9848|0,0)|0;a=c[2237]|0;b=c[2238]|0;d=c[2239]|0;if(c[3153]|0){k=b&-8;c[3154]=k;c[3161]=d;c[3155]=d;if((d|0)<=90){c[3156]=((d|0)/10|0)+1;c[3157]=a;c[3160]=0;c[3162]=0;if(d)l=33}else{c[3156]=10;c[3157]=a;c[3160]=0;c[3162]=0;l=33}if((l|0)==33){f=b>>>3;g=d<<3;h=ca(f<<3,d+-1|0)|0;b=a;e=0;while(1){d=d+-1|0;c[(b&p)>>2]=e;if(!d)break;else{e=b;b=b+k|0}}b=a+(ca(g,f)|0)|0;c[3160]=a+h;a=b}c[3158]=a}c[2243]=1;a=0}}c[2244]=0;b=c[2248]|0}else{b=a;a=0}c[2248]=b+-1;if((b|0)<2)c[2249]=0}else a=0;while(0);i=m;return a|0}function Mc(a,b){a=a|0;b=b|0;var d=0;d=Lc()|0;do if(!d){og(a);d=c[2254]|0;if((b|0)!=0|(d|0)==0){c[(a&p)+12>>2]=d;c[2254]=a;d=0;break}else{c[(a&p)+12>>2]=c[(d&p)+12>>2];c[((c[2254]|0)&p)+12>>2]=a;d=0;break}}while(0);return d|0}function Nc(a){a=a|0;og(a);return 0}function Oc(a){a=a|0;return 0}function Pc(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;do if(!(Lc()|0)){e=9032|0;d=c[(e&p)>>2]|0;e=c[(e&p)+4>>2]|0;if((b|0)>=0)if((b|0)>0|(b|0)==0&a>>>0>0){c[2260]=9;c[2261]=0;f=9032|0;c[(f&p)>>2]=a;c[(f&p)+4>>2]=b;c[2265]=(0>(b|0)|0==(b|0)&(c[2166]|0)>>>0>=a>>>0)&1;break}else{c[2265]=0;c[2258]=0;c[2259]=0;c[2260]=0;c[2261]=0;break}}else{e=-1;d=-1}while(0);G=e;return d|0}function Qc(){var a=0;a=c[2166]|0;G=((a|0)<0)<<31>>31;return a|0}function Rc(a){a=a|0;var b=0;b=(a|0)<0;Pc(b?0:a,b?0:((a|0)<0)<<31>>31)|0;return}function Sc(a){a=a|0;var b=0;b=c[2176]|0;if(a)c[2176]=c[2166];G=((b|0)<0)<<31>>31;return b|0}function Tc(a){a=a|0;if((Lc()|0)!=0|(a|0)<1)a=0;else a=qg(a,((a|0)<0)<<31>>31)|0;return a|0}function Uc(a,b){a=a|0;b=b|0;if(!(Lc()|0))a=qg(a,b)|0;else a=0;return a|0}function Vc(a){a=a|0;a=lc[c[8792>>2]&127](a)|0;G=((a|0)<0)<<31>>31;return a|0}function Wc(a){a=a|0;var b=0;do if(a)if(!(c[2186]|0)){cc[c[8784>>2]&31](a);break}else{b=lc[c[8792>>2]&127](a)|0;c[2166]=(c[2166]|0)-b;c[2175]=(c[2175]|0)+-1;cc[c[8784>>2]&31](a);break}while(0);return}function Xc(a,b){a=a|0;b=b|0;var c=0;if(!(Lc()|0)){c=(b|0)<0;b=rg(a,c?0:b,c?0:((b|0)<0)<<31>>31)|0}else b=0;return b|0}function Yc(a,b,c){a=a|0;b=b|0;c=c|0;if(!(Lc()|0))b=rg(a,b,c)|0;else b=0;return b|0}function Zc(b,d){b=b|0;d=d|0;var e=0,f=0,g=0;g=i;i=i+112|0;if((i|0)>=(j|0))fa();f=g+28|0;e=g;if(!(Lc()|0)){c[(e&p)+4>>2]=f;c[(e&p)+8>>2]=f;c[(e&p)>>2]=0;c[(e&p)+12>>2]=0;c[(e&p)+16>>2]=70;c[(e&p)+20>>2]=1e9;a[(e&n)+25>>0]=0;a[(e&n)+24>>0]=2;sg(e,0,b,d);e=tg(e)|0}else e=0;i=g;return e|0}function _c(a,b){a=a|0;b=b|0;var d=0,e=0;e=i;i=i+16|0;if((i|0)>=(j|0))fa();d=e;if(!(Lc()|0)){c[(d&p)>>2]=b;d=Zc(a,d)|0}else d=0;i=e;return d|0}function $c(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0;h=i;i=i+32|0;if((i|0)>=(j|0))fa();g=h;if((b|0)>=1){c[(g&p)+4>>2]=d;c[(g&p)+8>>2]=d;c[(g&p)>>2]=0;c[(g&p)+12>>2]=0;c[(g&p)+16>>2]=b;c[(g&p)+20>>2]=0;a[(g&n)+25>>0]=0;a[(g&n)+24>>0]=0;sg(g,0,e,f);d=tg(g)|0}i=h;return d|0}function ad(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0;f=i;i=i+16|0;if((i|0)>=(j|0))fa();g=f;c[(g&p)>>2]=e;a=$c(a,b,d,g)|0;i=f;return a|0}function bd(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0;k=i;i=i+256|0;if((i|0)>=(j|0))fa();f=k+16|0;h=k+44|0;g=k;if(c[2250]|0){c[(g&p)>>2]=e;c[(f&p)+4>>2]=h;c[(f&p)+8>>2]=h;c[(f&p)>>2]=0;c[(f&p)+12>>2]=0;c[(f&p)+16>>2]=210;c[(f&p)+20>>2]=0;a[(f&n)+25>>0]=0;a[(f&n)+24>>0]=0;sg(f,0,d,g);e=c[2250]|0;g=c[2251]|0;f=tg(f)|0;mc[e&63](g,b,f)}i=k;return}function cd(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0;h=i;i=i+256|0;if((i|0)>=(j|0))fa();g=h;do if(!(Lc()|0)){if((b|0)<1|(e|0)==0){a[9064]=0;break}if(!(a[9064]|0)){a[9066]=0;a[9065]=0;f=(Lc()|0)==0;f=f?c[2254]|0:0;ac[c[(f&p)+56>>2]&63](f,256,g)|0;f=0;do{a[(f&n)+9067>>0]=f;f=f+1|0}while((f|0)!=256);f=0;do{k=9067+f|0;m=(d[(g+f&n)>>0]|0)+(d[(k&n)>>0]|0)+(d[9066]|0)|0;a[9066]=m;m=9067+(m&255)|0;l=a[(m&n)>>0]|0;a[(m&n)>>0]=a[(k&n)>>0]|0;a[(k&n)>>0]=l;f=f+1|0}while((f|0)!=256);a[9064]=1}while(1){k=(a[9065]|0)+1<<24>>24;a[9065]=k;k=9067+(k&255)|0;g=a[(k&n)>>0]|0;f=g&255;l=(d[9066]|0)+f|0;a[9066]=l;a[(k&n)>>0]=a[(l&255&n)+9067>>0]|0;a[((d[9066]|0)&n)+9067>>0]=g;a[(e&n)>>0]=a[((d[((d[9065]|0)&n)+9067>>0]|0)+f&255&n)+9067>>0]|0;b=b+-1|0;if(!b)break;else e=e+1|0}}while(0);i=h;return}function dd(b,c){b=b|0;c=c|0;var e=0;if(b)if(!c)c=1;else{e=a[(b&n)>>0]|0;a:do if(!(e<<24>>24))e=0;else while(1){if((a[(e&255&n)+9328>>0]|0)!=(a[((d[(c&n)>>0]|0)&n)+9328>>0]|0))break a;b=b+1|0;c=c+1|0;e=a[(b&n)>>0]|0;if(!(e<<24>>24)){e=0;break}}while(0);c=(d[(e&255&n)+9328>>0]|0)-(d[((d[(c&n)>>0]|0)&n)+9328>>0]|0)|0}else c=((c|0)!=0)<<31>>31;return c|0}function ed(a){a=a|0;c[2241]=a;return 0}function fd(d,e,f,g){d=d|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,q=0,r=0;r=i;i=i+16|0;if((i|0)>=(j|0))fa();q=r;a:do if((f|0)==(d|0)){ug(f,1,10016,q);h=0}else{h=qg(48,0)|0;if(!h){c[(d&p)+52>>2]=7;h=c[(d&p)+236>>2]|0;if(!h){h=0;break}e=h+8|0;if(!(b[(e&o)>>1]&9312)){b[(e&o)>>1]=1;h=0;break}else{vg(h);h=0;break}}l=h+0|0;k=l+48|0;do{a[(l&n)>>0]=0;l=l+1|0}while((l|0)<(k|0));m=h+24|0;c[(m&p)>>2]=wg(d,f,g)|0;k=wg(d,d,e)|0;l=h+4|0;c[(l&p)>>2]=k;c[(h&p)>>2]=d;c[(h&p)+20>>2]=f;c[(h&p)+16>>2]=1;c[(h&p)+40>>2]=0;e=c[(m&p)>>2]|0;do if(!((e|0)==0|(k|0)==0)?(xg(k,c[((c[(e&p)+4>>2]|0)&p)+32>>2]|0,-1,0)|0)!=7:0)if(!(a[((c[(l&p)>>2]|0)&n)+8>>0]|0)){e=(c[(m&p)>>2]|0)+16|0;c[(e&p)>>2]=(c[(e&p)>>2]|0)+1;break a}else{ug(d,1,47416,q);break}while(0);Wc(h);h=0}while(0);i=r;return h|0}function gd(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,o=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0;F=i;i=i+32|0;if((i|0)>=(j|0))fa();B=F;r=F+16|0;u=F+12|0;y=F+8|0;D=b+24|0;g=c[(D&p)>>2]|0;h=c[(g&p)+4>>2]|0;c[(h&p)+4>>2]=c[(g&p)>>2];E=b+28|0;f=c[(E&p)>>2]|0;if(f>>>0<7?(30>>>(f&127)&1)==0:0){x=c[(h&p)>>2]|0;C=b+4|0;f=c[(C&p)>>2]|0;A=c[(c[(f&p)+4>>2]&p)>>2]|0;if((c[(b&p)>>2]|0)!=0?(a[(h&n)+20>>0]|0)==2:0){z=0;g=5}else v=5;do if((v|0)==5){h=b+12|0;if(!(c[(h&p)>>2]|0)){g=yg(f,2)|0;if(g){z=0;break}c[(h&p)>>2]=1;z=c[(C&p)>>2]|0;g=c[(z&p)+4>>2]|0;c[(g&p)+4>>2]=c[(z&p)>>2];g=c[((c[(g&p)+12>>2]|0)&p)+56>>2]|0;c[(b&p)+8>>2]=d[(g&n)+41>>0]<<16|d[(g&n)+40>>0]<<24|d[(g&n)+42>>0]<<8|d[(g&n)+43>>0];g=c[(D&p)>>2]|0}if(!(a[(g&n)+8>>0]|0)){z=1;g=yg(g,0)|0}else{z=0;g=0}}while(0);l=c[((c[(D&p)>>2]|0)&p)+4>>2]|0;w=c[(l&p)+32>>2]|0;q=c[((c[(C&p)>>2]|0)&p)+4>>2]|0;t=c[(q&p)+32>>2]|0;q=(a[((c[(q&p)>>2]|0)&n)+5>>0]|0)==5;f=(w|0)==(t|0)|(g|0)==0&q^1?g:8;l=c[(l&p)+44>>2]|0;h=(e|0)<0;a:do if(e){g=b+16|0;m=c[(g&p)>>2]|0;o=0;do{if(!(m>>>0<=l>>>0&(f|0)==0))break a;if((m|0)!=((((c[2514]|0)>>>0)/((c[((c[((c[(D&p)>>2]|0)&p)+4>>2]|0)&p)+32>>2]|0)>>>0)|0)+1|0)){f=zg(x,m,r,2)|0;if(!f){k=c[(r&p)>>2]|0;f=Ag(b,m,c[(k&p)+4>>2]|0,0)|0;if(k)Bg(k)}}else f=0;m=(c[(g&p)>>2]|0)+1|0;c[(g&p)>>2]=m;o=o+1|0}while(h|(o|0)<(e|0))}while(0);if(!f){c[(b&p)+36>>2]=l;f=c[(b&p)+16>>2]|0;c[(b&p)+32>>2]=l+1-f;if(f>>>0<=l>>>0){f=b+40|0;if(!(c[(f&p)>>2]|0)){C=(c[(c[((c[(D&p)>>2]|0)&p)+4>>2]&p)>>2]|0)+88|0;c[(b&p)+44>>2]=c[(C&p)>>2];c[(C&p)>>2]=b;c[(f&p)>>2]=1;f=0}else f=0}else v=22}else if((f|0)==101)v=22;do if((v|0)==22){if(!l){g=c[(C&p)>>2]|0;f=c[(g&p)+4>>2]|0;c[(f&p)+4>>2]=c[(g&p)>>2];c[(f&p)+44>>2]=0;f=Cg(f)|0;if((f|0)==0|(f|0)==101)l=1;else break}f=Dg(c[(C&p)>>2]|0,1,(c[(b&p)+8>>2]|0)+1|0)|0;if(!f){g=c[(b&p)>>2]|0;if(g)Eg(g);if(q?(s=Fg(c[(C&p)>>2]|0,2)|0,(s|0)!=0):0){f=s;break}if((w|0)<(t|0)){g=(t|0)/(w|0)|0;g=(l+-1+g|0)/(g|0)|0;h=c[2514]|0;k=c[((c[((c[(C&p)>>2]|0)&p)+4>>2]|0)&p)+32>>2]|0;g=(((g|0)==(((h>>>0)/(k>>>0)|0)+1|0))<<31>>31)+g|0;b=((w|0)<0)<<31>>31;s=sw(l|0,((l|0)<0)<<31>>31|0,w|0,b|0)|0;q=G;e=c[(A&p)+60>>2]|0;o=c[(A&p)+24>>2]|0;b:do if(g>>>0<=o>>>0){f=0;while(1){if((g|0)!=(((h>>>0)/(k>>>0)|0)+1|0)){f=zg(A,g,u,0)|0;if(f)break b;h=c[(u&p)>>2]|0;f=Gg(h)|0;if(h)Bg(h)}g=g+1|0;h=(f|0)==0;if(g>>>0>o>>>0|h^1)break;k=c[((c[((c[(C&p)>>2]|0)&p)+4>>2]|0)&p)+32>>2]|0;h=c[2514]|0}if(h)v=38}else v=38;while(0);if((v|0)==38)f=Hg(A,0,1)|0;h=c[2514]|0;l=h+t|0;m=((l|0)<0)<<31>>31;k=(m|0)<(q|0)|(m|0)==(q|0)&l>>>0>>0;l=k?l:s;m=k?m:q;h=h+w|0;k=((h|0)<0)<<31>>31;g=(f|0)==0;if(g&((k|0)<(m|0)|(k|0)==(m|0)&h>>>0>>0))do{c[(y&p)>>2]=0;f=qw(h|0,k|0,w|0,b|0)|0;f=jw(f|0,G|0,1,0)|0;f=zg(x,f,y,0)|0;g=c[(y&p)>>2]|0;if(!f)f=tc[c[((c[(e&p)>>2]|0)&p)+12>>2]&31](e,c[(g&p)+4>>2]|0,w,h,k)|0;if(g)Bg(g);h=jw(h|0,k|0,w|0,b|0)|0;k=G;g=(f|0)==0}while(g&((k|0)<(m|0)|(k|0)==(m|0)&h>>>0>>0));if(!g)break;f=rc[c[((c[(e&p)>>2]|0)&p)+24>>2]&127](e,B)|0;y=c[(B&p)+4>>2]|0;if((f|0)==0&((y|0)>(q|0)|((y|0)==(q|0)?(c[(B&p)>>2]|0)>>>0>s>>>0:0)))f=ac[c[((c[(e&p)>>2]|0)&p)+16>>2]&63](e,s,q)|0;if(f)break;f=Ig(A,0)|0}else{c[(A&p)+24>>2]=ca((w|0)/(t|0)|0,l)|0;f=Hg(A,0,0)|0}if(!f){f=Jg(c[(C&p)>>2]|0,0)|0;f=(f|0)==0?101:f}}}while(0);if(z){Kg(c[(D&p)>>2]|0,0)|0;Jg(c[(D&p)>>2]|0,0)|0}f=(f|0)==3082?7:f;c[(E&p)>>2]=f}i=F;return f|0}function hd(a){a=a|0;var d=0,e=0,f=0,g=0,h=0;if(!a)d=0;else{h=c[(a&p)+20>>2]|0;e=c[(a&p)+24>>2]|0;d=c[(e&p)+4>>2]|0;c[(d&p)+4>>2]=c[(e&p)>>2];if(c[(a&p)>>2]|0){e=e+16|0;c[(e&p)>>2]=(c[(e&p)>>2]|0)+-1}if(c[(a&p)+40>>2]|0){d=(c[(d&p)>>2]|0)+88|0;while(1){e=c[(d&p)>>2]|0;if((e|0)==(a|0))break;else d=e+44|0}c[(d&p)>>2]=c[(a&p)+44>>2]}Lg(c[(a&p)+4>>2]|0,0,0);d=c[(a&p)+28>>2]|0;d=(d|0)==101?0:d;e=c[(a&p)>>2]|0;if(e){c[(e&p)+52>>2]=d;f=c[(e&p)+236>>2]|0;do if(f){g=f+8|0;if(!(b[(g&o)>>1]&9312)){b[(g&o)>>1]=1;break}else{vg(f);e=c[(a&p)>>2]|0;break}}while(0);Mg(e);if(c[(a&p)>>2]|0)Wc(a)}Mg(h)}return d|0}function id(a){a=a|0;return c[(a&p)+32>>2]|0}function jd(a){a=a|0;return c[(a&p)+36>>2]|0}function kd(a){a=a|0;if((a|0)!=0?(b[(a&o)+88>>1]&256)!=0:0)a=c[(a&p)+168>>2]|0;else a=0;return a|0}function ld(a){a=a|0;if(!a)a=1;else a=(b[(a&o)+88>>1]&8)!=0;return a&1|0}function md(a){a=a|0;var b=0,d=0,e=0;e=i;i=i+16|0;if((i|0)>=(j|0))fa();d=e;do if(a){b=c[(a&p)>>2]|0;if(!b){bd(21,47360,d);c[(d&p)>>2]=68910;c[(d&p)+4>>2]=10788;bd(21,13648,d);b=21;break}else{a=Og(b,Ng(a)|0)|0;Mg(b);b=a;break}}else b=0;while(0);i=e;return b|0}function nd(b){b=b|0;var d=0,e=0;if(!b)b=0;else{d=Pg(b)|0;c[(b&p)+76>>2]=-1;c[(b&p)+80>>2]=0;a[(b&n)+86>>0]=2;c[(b&p)+40>>2]=-1108210269;c[(b&p)+92>>2]=0;c[(b&p)+72>>2]=1;a[(b&n)+87>>0]=-1;c[(b&p)+104>>2]=0;e=b+144|0;c[(e&p)>>2]=0;c[(e&p)+4>>2]=0;b=Og(c[(b&p)>>2]|0,d)|0}return b|0}function od(a){a=a|0;var d=0,e=0,f=0,g=0,h=0,i=0;h=a+68|0;e=b[(h&o)>>1]|0;if(e<<16>>16>0){i=a+60|0;d=c[(i&p)>>2]|0;g=0;do{f=d+(g*40|0)|0;if(!((b[(d+(g*40|0)&o)+8>>1]&9312)==0?(c[(d+(g*40|0)&p)+24>>2]|0)==0:0)){Qg(f);d=c[(i&p)>>2]|0;e=b[(h&o)>>1]|0}b[(d+(g*40|0)&o)+8>>1]=1;g=g+1|0}while((g|0)<(e<<16>>16|0))}d=a+88|0;e=b[(d&o)>>1]|0;if((e&256)!=0?(c[(a&p)+188>>2]|0)!=0:0)b[(d&o)>>1]=e|8;return 0}function pd(a){a=a|0;var d=0;d=a+8|0;if(b[(d&o)>>1]&18){Rg(a)|0;b[(d&o)>>1]=e[(d&o)>>1]|0|16;if(!(c[(a&p)+12>>2]|0))d=0;else d=c[(a&p)+16>>2]|0}else d=Sg(a,1)|0;return d|0}function qd(a){a=a|0;return Sg(a,1)|0}function rd(a){a=a|0;return Tg(a,1)|0}function sd(a){a=a|0;return Tg(a,2)|0}function td(a){a=a|0;return +(+Ug(a))}function ud(a){a=a|0;a=Vg(a)|0;return a|0}function vd(a){a=a|0;a=Vg(a)|0;return a|0}function wd(a){a=a|0;return Sg(a,2)|0}function xd(a){a=a|0;return Sg(a,3)|0}function yd(a){a=a|0;return Sg(a,2)|0}function zd(a){a=a|0;return d[((e[(a&o)+8>>1]|0)&31&n)+10064>>0]|0|0}function Ad(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;Wg(a,b,c,0,d);return}function Bd(b,d,e,f,g){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;if(f>>>0>0|(f|0)==0&e>>>0>2147483647){e=g;if(!((e|0)==0|(e|0)==-1))cc[g&31](d);if(b){c[(b&p)+20>>2]=18;a[(b&n)+25>>0]=1;Xg(c[(b&p)>>2]|0,10096,-1,1,0)|0}}else Wg(b,d,e,0,g);return}function Cd(a,b){a=a|0;b=+b;Yg(c[(a&p)>>2]|0,b);return}function Dd(b,d,e){b=b|0;d=d|0;e=e|0;c[(b&p)+20>>2]=1;a[(b&n)+25>>0]=1;Xg(c[(b&p)>>2]|0,d,e,1,-1)|0;return}function Ed(b,d,e){b=b|0;d=d|0;e=e|0;c[(b&p)+20>>2]=1;a[(b&n)+25>>0]=1;Xg(c[(b&p)>>2]|0,d,e,2,-1)|0;return}function Fd(a,d){a=a|0;d=d|0;var e=0,f=0;a=c[(a&p)>>2]|0;e=((d|0)<0)<<31>>31;f=a+8|0;if(!(b[(f&o)>>1]&9312)){c[(a&p)>>2]=d;c[(a&p)+4>>2]=e;b[(f&o)>>1]=4}else Zg(a,d,e);return}function Gd(a,d,e){a=a|0;d=d|0;e=e|0;var f=0;a=c[(a&p)>>2]|0;f=a+8|0;if(!(b[(f&o)>>1]&9312)){c[(a&p)>>2]=d;c[(a&p)+4>>2]=e;b[(f&o)>>1]=4}else Zg(a,d,e);return}function Hd(a){a=a|0;var d=0;a=c[(a&p)>>2]|0;d=a+8|0;if(!(b[(d&o)>>1]&9312))b[(d&o)>>1]=1;else vg(a);return}function Id(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;Wg(a,b,c,1,d);return}function Jd(b,d,e,f,g,h){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;if(f>>>0>0|(f|0)==0&e>>>0>2147483647){e=g;if(!((e|0)==0|(e|0)==-1))cc[g&31](d);if(b){c[(b&p)+20>>2]=18;a[(b&n)+25>>0]=1;Xg(c[(b&p)>>2]|0,10096,-1,1,0)|0}}else Wg(b,d,e,h<<24>>24==4?2:h,g);return}function Kd(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;Wg(a,b,c,2,d);return}function Ld(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;Wg(a,b,c,3,d);return}function Md(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;Wg(a,b,c,2,d);return}function Nd(a,b){a=a|0;b=b|0;_g(c[(a&p)>>2]|0,b)|0;return}function Od(a,b){a=a|0;b=b|0;$g(c[(a&p)>>2]|0,b);return}function Pd(d,e){d=d|0;e=e|0;var f=0;c[(d&p)+20>>2]=e;a[(d&n)+25>>0]=1;f=c[(d&p)>>2]|0;if(b[(f&o)+8>>1]&1){if((e|0)!=516){d=e&255;if(d>>>0>26|(d|0)==2)d=16328;else d=c[(d<<2&p)+15488>>2]|0}else d=16344;Xg(f,d,-1,1,0)|0}return}function Qd(b){b=b|0;c[(b&p)+20>>2]=18;a[(b&n)+25>>0]=1;Xg(c[(b&p)>>2]|0,10096,-1,1,0)|0;return}function Rd(d){d=d|0;var e=0,f=0;e=c[(d&p)>>2]|0;f=e+8|0;if(!(b[(f&o)>>1]&9312))b[(f&o)>>1]=1;else{vg(e);e=c[(d&p)>>2]|0}c[(d&p)+20>>2]=7;a[(d&n)+25>>0]=1;a[((c[(e&p)+32>>2]|0)&n)+65>>0]=1;return}function Sd(f){f=f|0;var g=0,l=0,m=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,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;_=i;i=i+224|0;if((i|0)>=(j|0))fa();V=_+8|0;U=_;if(!(ah(f)|0)){Z=c[(f&p)>>2]|0;N=f+88|0;b[(N&o)>>1]=b[(N&o)>>1]&-513;R=f+40|0;S=f+76|0;T=f+128|0;Y=f+80|0;D=f+168|0;E=f+8|0;F=f+20|0;H=f+32|0;I=f+4|0;J=f+84|0;X=f+44|0;K=(f|0)==0;L=f+52|0;M=f+48|0;C=0;while(1){if((c[(R&p)>>2]|0)!=-1108210269)nd(f)|0;B=c[(f&p)>>2]|0;if(a[(B&n)+65>>0]|0){W=7;break}l=c[(S&p)>>2]|0;do if((l|0)<1){if(b[(N&o)>>1]&8){c[(Y&p)>>2]=17;l=1;break}if((l|0)<0){l=B+148|0;if(!(c[(l&p)>>2]|0))c[(B&p)+240>>2]=0;if((c[(B&p)+184>>2]|0)!=0?(a[(B&n)+145>>0]|0)==0:0)bh(c[(B&p)>>2]|0,T)|0;c[(l&p)>>2]=(c[(l&p)>>2]|0)+1;l=b[(N&o)>>1]|0;if(!(l&64)){l=B+156|0;c[(l&p)>>2]=(c[(l&p)>>2]|0)+1;l=b[(N&o)>>1]|0}if(l&128){A=B+152|0;c[(A&p)>>2]=(c[(A&p)>>2]|0)+1}c[(S&p)>>2]=0;W=22}else W=22}else W=22;while(0);if((W|0)==22){W=0;do if(!(b[(N&o)>>1]&3)){A=B+160|0;c[(A&p)>>2]=(c[(A&p)>>2]|0)+1;l=gh(f)|0;c[(A&p)>>2]=(c[(A&p)>>2]|0)+-1;if((l|0)==100)l=100;else W=101}else{t=c[(f&p)>>2]|0;z=c[(E&p)>>2]|0;y=z+40|0;ch(y,8);c[(F&p)>>2]=0;if((c[(Y&p)>>2]|0)==7){a[(t&n)+65>>0]=1;l=1;W=101;break}r=c[(H&p)>>2]|0;u=b[(N&o)>>1]&3;if(u<<16>>16==1){s=c[(E&p)>>2]|0;v=s+360|0;if(b[(s&o)+368>>1]&16){w=(c[(s&p)+372>>2]|0)>>>2;m=c[(s&p)+376>>2]|0;if(!w){x=m;s=r;g=0}else{l=0;s=r;do{s=(c[((c[(m+(l<<2)&p)>>2]|0)&p)+4>>2]|0)+s|0;l=l+1|0}while((l|0)<(w|0));x=m;g=w}}else{x=0;s=r;g=0}}else{x=0;s=r;g=0;v=0}r=u<<16>>16==2;m=c[(S&p)>>2]|0;while(1){l=m+1|0;if((m|0)>=(s|0)){W=33;break}if(!r)break;if((a[((c[(I&p)>>2]|0)+(m*20|0)&n)>>0]|0)==-99)break;else m=l}if((W|0)==33){c[(S&p)>>2]=l;c[(Y&p)>>2]=0;l=101;W=101;break}c[(S&p)>>2]=l;if(c[(t&p)+240>>2]|0){c[(Y&p)>>2]=9;c[(V&p)>>2]=15832;dh(X,t,10344,V);l=1;W=101;break}s=c[(H&p)>>2]|0;if((m|0)<(s|0)){l=m;A=(c[(I&p)>>2]|0)+(m*20|0)|0}else{m=m-s|0;s=c[(x&p)>>2]|0;r=c[(s&p)+4>>2]|0;if((m|0)<(r|0))r=m;else{s=m;l=0;while(1){m=s-r|0;l=l+1|0;s=c[(x+(l<<2)&p)>>2]|0;r=c[(s&p)+4>>2]|0;if((m|0)<(r|0)){r=m;break}else s=m}}l=r;A=(c[(s&p)>>2]|0)+(r*20|0)|0}if((b[(N&o)>>1]&3)==1){b[(z&o)+48>>1]=4;r=y;c[(r&p)>>2]=l;c[(r&p)+4>>2]=((l|0)<0)<<31>>31;b[(z&o)+88>>1]=2562;r=c[(d[(A&n)>>0]<<2&p)+44856>>2]|0;c[(z&p)+96>>2]=r;s=r;while(1)if(!(a[(s&n)>>0]|0))break;else s=s+1|0;w=z+80|0;c[(z&p)+92>>2]=s-r&1073741823;a[(z&n)+90>>0]=1;if((a[(A&n)+1>>0]|0)==-18){l=(g<<2)+4|0;a:do if(!g)s=0;else{r=c[(A&p)+16>>2]|0;m=0;while(1){s=m+1|0;if((c[(x+(m<<2)&p)>>2]|0)==(r|0)){s=m;break a}if((s|0)<(g|0))m=s;else break}}while(0);if((s|0)==(g|0)?(eh(v,l,(g|0)!=0&1)|0)==0:0){c[((c[(v&p)+16>>2]|0)+(g<<2)&p)>>2]=c[(A&p)+16>>2];z=v+8|0;b[(z&o)>>1]=e[(z&o)>>1]|16;c[(v&p)+12>>2]=l;z=w}else z=w}else z=w}b[(z&o)+48>>1]=4;y=c[(A&p)+4>>2]|0;x=z+40|0;c[(x&p)>>2]=y;c[(x&p)+4>>2]=((y|0)<0)<<31>>31;b[(z&o)+88>>1]=4;x=c[(A&p)+8>>2]|0;y=z+80|0;c[(y&p)>>2]=x;c[(y&p)+4>>2]=((x|0)<0)<<31>>31;b[(z&o)+128>>1]=4;y=c[(A&p)+12>>2]|0;x=z+120|0;c[(x&p)>>2]=y;c[(x&p)+4>>2]=((y|0)<0)<<31>>31;x=z+160|0;if(!(fh(x,32)|0)){b[(z&o)+168>>1]=514;y=z+176|0;g=c[(y&p)>>2]|0;b:do switch(a[(A&n)+1>>0]|0){case -6:{t=c[(A&p)+16>>2]|0;l=t+6|0;c[(V&p)>>2]=e[(l&o)>>1];ad(32,g,44768,V)|0;if(!g)s=0;else{s=g;while(1)if(!(a[(s&n)>>0]|0))break;else s=s+1|0;s=s-g&1073741823}c:do if(b[(l&o)>>1]|0){u=t+16|0;v=0;while(1){r=c[(t+(v<<2)&p)+20>>2]|0;if(r){r=c[(r&p)>>2]|0;if(!r){m=0;r=0}else W=61}else{r=44776;W=61}do if((W|0)==61){W=0;w=r;while(1)if(!(a[(w&n)>>0]|0))break;else w=w+1|0;m=w-r&1073741823;if((m|0)!=6)break;w=(Zv(r,11152,6)|0)==0;m=w?1:6;r=w?44784:r}while(0);if((m+s|0)>26)break;w=s+1|0;a[(g+s&n)>>0]=44;if(a[((c[(u&p)>>2]|0)+v&n)>>0]|0){a[(g+w&n)>>0]=45;w=s+2|0}kw(g+w|0,r|0,m+1|0)|0;s=w+m|0;v=v+1|0;if((v|0)>=(e[(l&o)>>1]|0))break c}l=g+s|0;a[(l&n)>>0]=44;a[(l&n)+1>>0]=46;a[(l&n)+2>>0]=46;a[(l&n)+3>>0]=46}while(0);a[(g+s&n)>>0]=41;a[(g+s&n)+1>>0]=0;r=g;break}case -15:{ad(32,g,44832,V)|0;r=g;break}case -18:{ad(32,g,44848,V)|0;r=g;break}case -4:{c[(V&p)>>2]=c[(c[(A&p)+16>>2]&p)>>2];ad(32,g,44792,V)|0;r=g;break}case -5:{l=c[(A&p)+16>>2]|0;r=b[(l&o)>>1]|0;c[(V&p)>>2]=c[(l&p)+24>>2];c[(V&p)+4>>2]=r;ad(32,g,44800,V)|0;r=g;break}case -13:{m=c[(A&p)+16>>2]|0;l=c[(m&p)+4>>2]|0;r=V;c[(r&p)>>2]=c[(m&p)>>2];c[(r&p)+4>>2]=l;ad(32,g,19920,V)|0;r=g;break}case -14:{c[(V&p)>>2]=c[(A&p)+16>>2];ad(32,g,44808,V)|0;r=g;break}case -12:{h[(k&q)>>3]=+h[(c[(A&p)+16>>2]&q)>>3];c[(V&p)>>2]=c[(k&p)>>2];c[(V&p)+4>>2]=c[(k&p)+4>>2];ad(32,g,19912,V)|0;r=g;break}case -8:{s=c[(A&p)+16>>2]|0;r=e[(s&o)+8>>1]|0;if(r&2){r=c[(s&p)+16>>2]|0;break b}if(r&4){m=s;l=c[(m&p)+4>>2]|0;r=V;c[(r&p)>>2]=c[(m&p)>>2];c[(r&p)+4>>2]=l;ad(32,g,19920,V)|0;r=g;break b}if(r&8){h[(k&q)>>3]=+h[(s&q)>>3];c[(V&p)>>2]=c[(k&p)>>2];c[(V&p)+4>>2]=c[(k&p)+4>>2];ad(32,g,19912,V)|0;r=g;break b}if(!(r&1))r=44816;else{ad(32,g,20304,V)|0;r=g}break}case -19:{a[(g&n)>>0]=0;r=g;break}case -10:{c[(V&p)>>2]=c[((c[(A&p)+16>>2]|0)&p)+8>>2];ad(32,g,44824,V)|0;r=g;break}default:{s=c[(A&p)+16>>2]|0;if(!s){a[(g&n)>>0]=0;r=g}else r=s}}while(0);if((r|0)==(c[(y&p)>>2]|0)){if(!r)l=0;else{s=r;while(1)if(!(a[(s&n)>>0]|0))break;else s=s+1|0;l=s-r&1073741823}c[(z&p)+172>>2]=l;a[(z&n)+170>>0]=1}else Xg(x,r,-1,1,0)|0;l=b[(N&o)>>1]|0;if((l&3)==1){if(fh(z+200|0,4)|0){l=1;W=101;break}b[(z&o)+208>>1]=514;c[(z&p)+212>>2]=2;l=c[(z&p)+216>>2]|0;c[(V&p)>>2]=d[(A&n)+3>>0];ad(3,l,44760,V)|0;a[(z&n)+210>>0]=1;b[(z&o)+248>>1]=1;l=b[(N&o)>>1]|0}b[(J&o)>>1]=12-((l&3)<<2);c[(F&p)>>2]=(c[(E&p)>>2]|0)+40;c[(Y&p)>>2]=0;l=100}else{l=1;W=101}}while(0);if((W|0)==101){W=0;g=B+184|0;if(((c[(g&p)>>2]|0)!=0?(a[(B&n)+145>>0]|0)==0:0)?(c[(D&p)>>2]|0)!=0:0){bh(c[(B&p)>>2]|0,U)|0;g=c[(g&p)>>2]|0;y=c[(B&p)+188>>2]|0;z=c[(D&p)>>2]|0;m=U;A=T;A=dw(c[(m&p)>>2]|0,c[(m&p)+4>>2]|0,c[(A&p)>>2]|0,c[(A&p)+4>>2]|0)|0;A=sw(A|0,G|0,1e6,0)|0;qc[g&15](y,z,A,G)}if((l|0)==101){t=B+20|0;s=c[(t&p)>>2]|0;if((s|0)>0){u=B+16|0;v=B+216|0;w=B+220|0;g=0;l=0;do{r=c[(u&p)>>2]|0;m=c[(r+(g<<4)&p)+4>>2]|0;if(((m|0)!=0?(O=c[(m&p)+4>>2]|0,c[(O&p)+4>>2]=c[(m&p)>>2],O=c[((c[(O&p)>>2]|0)&p)+208>>2]|0,(O|0)!=0):0)?(Q=O+12|0,P=c[(Q&p)>>2]|0,c[(Q&p)>>2]=0,Q=c[(v&p)>>2]|0,(Q|0)!=0&(P|0)>0&(l|0)==0):0){l=pc[Q&31](c[(w&p)>>2]|0,B,c[(r+(g<<4)&p)>>2]|0,P)|0;s=c[(t&p)>>2]|0}g=g+1|0}while((g|0)<(s|0))}else l=0;c[(Y&p)>>2]=l;l=(l|0)==0?101:1}}c[(B&p)+52>>2]=l;if((Og(c[(f&p)>>2]|0,c[(Y&p)>>2]|0)|0)==7)c[(Y&p)>>2]=7}if((b[(N&o)>>1]&256)!=0&(l|0)!=100&(l|0)!=101)l=hh(f)|0;g=c[(B&p)+56>>2]&l;if((g|0)!=17)break;s=C+1|0;if((C|0)>=50){g=17;break}m=c[(S&p)>>2]|0;if(!K?(b[(N&o)>>1]&256)!=0:0)l=c[(D&p)>>2]|0;else l=0;r=c[(f&p)>>2]|0;g=ih(r,l,-1,0,f,U,0)|0;if((g|0)==7){g=r;W=124;break}else if(g){W=127;break}C=c[(U&p)>>2]|0;kw(V|0,C|0,208)|0;kw(C|0,f|0,208)|0;kw(f|0,V|0,208)|0;A=C+52|0;B=c[(A&p)>>2]|0;c[(A&p)>>2]=c[(L&p)>>2];c[(L&p)>>2]=B;B=C+48|0;A=c[(B&p)>>2]|0;c[(B&p)>>2]=c[(M&p)>>2];c[(M&p)>>2]=A;A=C+168|0;B=c[(A&p)>>2]|0;c[(A&p)>>2]=c[(D&p)>>2];c[(D&p)>>2]=B;b[(N&o)>>1]=b[(N&o)>>1]&-257|b[(C&o)+88>>1]&256;jh(C,f);c[(C&p)+80>>2]=0;Ng(C)|0;nd(f)|0;if((m|0)<=-1){C=s;continue}b[(N&o)>>1]=b[(N&o)>>1]|512;C=s}if((W|0)==7){c[(Y&p)>>2]=7;g=7}else if((W|0)==124){a[(g&n)+65>>0]=1;g=7;W=127}do if((W|0)==127){l=Sg(c[(Z&p)+236>>2]|0,1)|0;mg(Z,c[(X&p)>>2]|0);if(!(a[(Z&n)+65>>0]|0)){c[(X&p)>>2]=kh(Z,l)|0;c[(Y&p)>>2]=g;break}else{c[(X&p)>>2]=0;c[(Y&p)>>2]=7;g=7;break}}while(0);g=Og(Z,g)|0}else{c[(V&p)>>2]=69408;c[(V&p)+4>>2]=10788;bd(21,13648,V);g=21}i=_;return g|0}function Td(a){a=a|0;return c[((c[(a&p)+4>>2]|0)&p)+4>>2]|0}function Ud(a){a=a|0;return c[((c[(a&p)>>2]|0)&p)+32>>2]|0}function Vd(a,d){a=a|0;d=d|0;var e=0;e=c[(a&p)+8>>2]|0;if(!(b[(e&o)+8>>1]&8192))e=lh(a,d)|0;else e=c[(e&p)+16>>2]|0;return e|0}function Wd(a,b){a=a|0;b=b|0;var d=0;d=c[((c[(a&p)+12>>2]|0)&p)+204>>2]|0;a:do if(!d)d=0;else{a=c[(a&p)+16>>2]|0;while(1){if((c[(d&p)>>2]|0)==(a|0)?(c[(d&p)+4>>2]|0)==(b|0):0)break;d=c[(d&p)+16>>2]|0;if(!d){d=0;break a}}d=c[(d&p)+8>>2]|0}while(0);return d|0}function Xd(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0;h=c[(b&p)+12>>2]|0;do if((d|0)<0)k=14;else{j=h+204|0;g=c[(j&p)>>2]|0;a:do if(g){i=c[(b&p)+16>>2]|0;while(1){if((c[(g&p)>>2]|0)==(i|0)?(c[(g&p)+4>>2]|0)==(d|0):0)break;g=c[(g&p)+16>>2]|0;if(!g){k=8;break a}}if(g){h=c[(g&p)+12>>2]|0;if(h)cc[h&31](c[(g&p)+8>>2]|0)}else k=8}else k=8;while(0);if((k|0)==8){g=mh(c[(h&p)>>2]|0,20,0)|0;if(!g){k=14;break}h=g+0|0;i=h+16|0;do{a[(h&n)>>0]=0;h=h+1|0}while((h|0)<(i|0));c[(g&p)>>2]=c[(b&p)+16>>2];c[(g&p)+4>>2]=d;c[(g&p)+16>>2]=c[(j&p)>>2];c[(j&p)>>2]=g;h=b+25|0;if(!(a[(h&n)>>0]|0)){c[(b&p)+20>>2]=0;a[(h&n)>>0]=1}}c[(g&p)+8>>2]=e;c[(g&p)+12>>2]=f}while(0);if((k|0)==14?(f|0)!=0:0)cc[f&31](e);return}function Yd(a){a=a|0;return c[((c[(a&p)+8>>2]|0)&p)+12>>2]|0}function Zd(a){a=a|0;if(!a)a=0;else a=e[(a&o)+84>>1]|0;return a|0}function _d(a){a=a|0;if((a|0)!=0?(c[(a&p)+20>>2]|0)!=0:0)a=e[(a&o)+84>>1]|0;else a=0;return a|0}function $d(a,b){a=a|0;b=b|0;var d=0;b=pd(nh(a,b)|0)|0;if(a){d=a+80|0;c[(d&p)>>2]=Og(c[(a&p)>>2]|0,c[(d&p)>>2]|0)|0}return b|0}function ae(a,b){a=a|0;b=b|0;var d=0;b=Tg(nh(a,b)|0,1)|0;if(a){d=a+80|0;c[(d&p)>>2]=Og(c[(a&p)>>2]|0,c[(d&p)>>2]|0)|0}return b|0}function be(a,b){a=a|0;b=b|0;var d=0;b=Tg(nh(a,b)|0,2)|0;if(a){d=a+80|0;c[(d&p)>>2]=Og(c[(a&p)>>2]|0,c[(d&p)>>2]|0)|0}return b|0}function ce(a,b){a=a|0;b=b|0;var d=0.0;d=+Ug(nh(a,b)|0);if(a){b=a+80|0;c[(b&p)>>2]=Og(c[(a&p)>>2]|0,c[(b&p)>>2]|0)|0}return +d}function de(a,b){a=a|0;b=b|0;var d=0;b=Vg(nh(a,b)|0)|0;if(a){d=a+80|0;c[(d&p)>>2]=Og(c[(a&p)>>2]|0,c[(d&p)>>2]|0)|0}return b|0}function ee(a,b){a=a|0;b=b|0;var d=0,e=0;b=Vg(nh(a,b)|0)|0;d=G;if(a){e=a+80|0;c[(e&p)>>2]=Og(c[(a&p)>>2]|0,c[(e&p)>>2]|0)|0}G=d;return b|0}function fe(a,b){a=a|0;b=b|0;var d=0;b=Sg(nh(a,b)|0,1)|0;if(a){d=a+80|0;c[(d&p)>>2]=Og(c[(a&p)>>2]|0,c[(d&p)>>2]|0)|0}return b|0}function ge(a,d){a=a|0;d=d|0;var f=0,g=0;d=nh(a,d)|0;f=d+8|0;g=e[(f&o)>>1]|0;if(g&2048)b[(f&o)>>1]=g&59391|4096;if(a){f=a+80|0;c[(f&p)>>2]=Og(c[(a&p)>>2]|0,c[(f&p)>>2]|0)|0}return d|0}function he(a,b){a=a|0;b=b|0;var d=0;b=Sg(nh(a,b)|0,2)|0;if(a){d=a+80|0;c[(d&p)>>2]=Og(c[(a&p)>>2]|0,c[(d&p)>>2]|0)|0}return b|0}function ie(a,b){a=a|0;b=b|0;var f=0;b=d[((e[((nh(a,b)|0)&o)+8>>1]|0)&31&n)+10064>>0]|0;if(a){f=a+80|0;c[(f&p)>>2]=Og(c[(a&p)>>2]|0,c[(f&p)>>2]|0)|0}return b|0}function je(b,d){b=b|0;d=d|0;var f=0,g=0;g=c[(b&p)>>2]|0;if(!b)f=0;else f=e[(b&o)+84>>1]|0;if((f|0)>(d|0)&(d|0)>-1){d=Sg((c[(b&p)+16>>2]|0)+(d*40|0)|0,1)|0;f=g+65|0;if(a[(f&n)>>0]|0){a[(f&n)>>0]=0;d=0}}else d=0;return d|0}function ke(b,d){b=b|0;d=d|0;var f=0,g=0;g=c[(b&p)>>2]|0;if(!b)f=0;else f=e[(b&o)+84>>1]|0;if((f|0)>(d|0)&(d|0)>-1){d=Sg((c[(b&p)+16>>2]|0)+(d*40|0)|0,2)|0;f=g+65|0;if(a[(f&n)>>0]|0){a[(f&n)>>0]=0;d=0}}else d=0;return d|0}function le(b,d){b=b|0;d=d|0;var f=0,g=0;g=c[(b&p)>>2]|0;if(!b)f=0;else f=e[(b&o)+84>>1]|0;if((f|0)>(d|0)&(d|0)>-1){d=Sg((c[(b&p)+16>>2]|0)+((f+d|0)*40|0)|0,1)|0;f=g+65|0;if(a[(f&n)>>0]|0){a[(f&n)>>0]=0;d=0}}else d=0;return d|0}function me(b,d){b=b|0;d=d|0;var f=0,g=0;g=c[(b&p)>>2]|0;if(!b)f=0;else f=e[(b&o)+84>>1]|0;if((f|0)>(d|0)&(d|0)>-1){d=Sg((c[(b&p)+16>>2]|0)+((f+d|0)*40|0)|0,2)|0;f=g+65|0;if(a[(f&n)>>0]|0){a[(f&n)>>0]=0;d=0}}else d=0;return d|0}function ne(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;return oh(a,b,c,d,e,0)|0}function oe(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;if(e>>>0>0|(e|0)==0&d>>>0>2147483647){d=f;if((d|0)==0|(d|0)==-1)d=18;else{cc[f&31](c);d=18}}else d=oh(a,b,c,d,f,0)|0;return d|0}function pe(a,b,d){a=a|0;b=b|0;d=+d;var e=0;e=ph(a,b)|0;if(!e)Yg((c[(a&p)+60>>2]|0)+((b+-1|0)*40|0)|0,d);return e|0}function qe(a,b,c){a=a|0;b=b|0;c=c|0;return re(a,b,c,((c|0)<0)<<31>>31)|0}function re(a,d,e,f){a=a|0;d=d|0;e=e|0;f=f|0;var g=0,h=0;g=ph(a,d)|0;do if(!g){d=d+-1|0;h=c[(a&p)+60>>2]|0;a=h+(d*40|0)|0;d=h+(d*40|0)+8|0;if(!(b[(d&o)>>1]&9312)){c[(a&p)>>2]=e;c[(a&p)+4>>2]=f;b[(d&o)>>1]=4;break}else{Zg(a,e,f);break}}while(0);return g|0}function se(a,b){a=a|0;b=b|0;return ph(a,b)|0}function te(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;return oh(a,b,c,d,e,1)|0}function ue(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;if(e>>>0>0|(e|0)==0&d>>>0>2147483647){d=f;if((d|0)==0|(d|0)==-1)d=18;else{cc[f&31](c);d=18}}else d=oh(a,b,c,d,f,g<<24>>24==4?2:g)|0;return d|0}function ve(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;return oh(a,b,c,d,e,2)|0}function we(e,f,g){e=e|0;f=f|0;g=g|0;var i=0,j=0;i=b[(g&o)+8>>1]|0;j=d[(i&31&n)+10064>>0]|0;do if((j|0)==3)i=oh(e,f,c[(g&p)+16>>2]|0,c[(g&p)+12>>2]|0,-1,a[(g&n)+10>>0]|0)|0;else if((j|0)==1){i=g;i=re(e,f,c[(i&p)>>2]|0,c[(i&p)+4>>2]|0)|0}else if((j|0)==2)i=pe(e,f,+h[(g&q)>>3])|0;else if((j|0)==4)if(!(i&16384)){i=oh(e,f,c[(g&p)+16>>2]|0,c[(g&p)+12>>2]|0,-1,0)|0;break}else{i=xe(e,f,c[(g&p)>>2]|0)|0;break}else i=ph(e,f)|0;while(0);return i|0}function xe(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;e=ph(a,b)|0;if(!e)$g((c[(a&p)+60>>2]|0)+((b+-1|0)*40|0)|0,d);return e|0}function ye(a){a=a|0;if(!a)a=0;else a=b[(a&o)+68>>1]|0;return a|0}function ze(a,d){a=a|0;d=d|0;if(!((a|0)==0|(d|0)<1)?(b[(a&o)+70>>1]|0)>=(d|0):0)d=c[((c[(a&p)+64>>2]|0)+(d+-1<<2)&p)>>2]|0;else d=0;return d|0}function Ae(b,c){b=b|0;c=c|0;var d=0;if(!c)d=0;else{d=c;while(1)if(!(a[(d&n)>>0]|0))break;else d=d+1|0;d=d-c&1073741823}return qh(b,c,d)|0}function Be(a,d){a=a|0;d=d|0;var e=0,f=0;if((b[(a&o)+68>>1]|0)==(b[(d&o)+68>>1]|0)){f=d+88|0;e=b[(f&o)>>1]|0;if((e&256)!=0?(c[(d&p)+188>>2]|0)!=0:0)b[(f&o)>>1]=e|8;e=a+88|0;f=b[(e&o)>>1]|0;if((f&256)!=0?(c[(a&p)+188>>2]|0)!=0:0)b[(e&o)>>1]=f|8;jh(a,d);e=0}else e=1;return e|0}function Ce(a){a=a|0;if(!a)a=0;else a=c[(a&p)>>2]|0;return a|0}function De(a){a=a|0;if(!a)a=1;else a=(e[(a&o)+88>>1]|0)>>>6&1;return a|0}function Ee(a){a=a|0;if((a|0)!=0?(c[(a&p)+76>>2]|0)>-1:0)a=(c[(a&p)+40>>2]|0)==-1108210269;else a=0;return a&1|0}function Fe(a,b){a=a|0;b=b|0;if(!b)a=a+4|0;else a=b+52|0;return c[(a&p)>>2]|0}function Ge(a,b,d){a=a|0;b=b|0;d=d|0;a=a+(b<<2)+108|0;b=c[(a&p)>>2]|0;if(d)c[(a&p)>>2]=0;return b|0}function He(a){a=a|0;var b=0,c=0,f=0;c=a+8|0;f=e[(c&o)>>1]|0;b=d[(f&31&n)+10064>>0]|0;if((f&15|0)==2){rh(a,0);b=d[((e[(c&o)>>1]|0)&31&n)+10064>>0]|0}return b|0}function Ie(d,e,f,g,h,k,l,m){d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;m=m|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,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;U=i;i=i+16|0;if((i|0)>=(j|0))fa();S=U;T=U+4|0;c[(T&p)>>2]=0;c[(m&p)>>2]=0;N=(l|0)!=0;O=N&1;Q=mh(d,28,0)|0;do if(Q){l=Q+0|0;s=l+28|0;do{a[(l&n)>>0]=0;l=l+1|0}while((l|0)<(s|0));s=mh(d,536,0)|0;if(s){K=d+20|0;L=d+16|0;B=d+24|0;l=Q+20|0;C=Q+12|0;D=Q+24|0;E=d+65|0;F=O^3;G=O|2;H=s+440|0;I=s+72|0;J=s+68|0;r=0;M=1;q=0;while(1){fw(s|0,0,536)|0;c[(s&p)>>2]=d;mg(d,r);c[(T&p)>>2]=0;r=c[(K&p)>>2]|0;if((r|0)>0){t=c[(L&p)>>2]|0;v=0;do{u=c[(t+(v<<4)&p)+4>>2]|0;if(u)c[((c[(u&p)+4>>2]|0)&p)+4>>2]=c[(u&p)>>2];v=v+1|0}while((v|0)!=(r|0))}A=sh(s,0,f,e)|0;if(!A)break;r=a[(A&n)+44>>0]|0;if(r&16){R=11;break}if(r&32){R=13;break}if(c[(A&p)+12>>2]|0){R=17;break}z=A+38|0;w=b[(z&o)>>1]|0;a:do if(w<<16>>16>0){v=c[(A&p)+4>>2]|0;u=w<<16>>16;r=0;while(1){t=r+1|0;if(!(dd(c[(v+(r*24|0)&p)>>2]|0,g)|0)){t=r;break a}if((t|0)<(u|0))r=t;else break}}else t=0;while(0);if((t|0)==(w<<16>>16|0)){R=23;break}if(N){if((c[(B&p)>>2]&524288|0)!=0?(P=c[(A&p)+16>>2]|0,(P|0)!=0):0){x=P;r=0;do{w=c[(x&p)+20>>2]|0;if((w|0)>0){v=0;do{r=(c[(x+(v<<3)&p)+36>>2]|0)==(t|0)?10280:r;v=v+1|0}while((v|0)<(w|0))}x=c[(x&p)+4>>2]|0}while((x|0)!=0)}else r=0;v=c[(A&p)+8>>2]|0;if(v)do{u=b[(v&o)+46>>1]|0;if(u<<16>>16){y=c[(v&p)+4>>2]|0;w=u&65535;x=0;do{r=(b[(y+(x<<1)&o)>>1]|0)==(t|0)?10296:r;x=x+1|0}while((x|0)<(w|0))}v=c[(v&p)+20>>2]|0}while((v|0)!=0);if(r){R=36;break}}y=vh(s)|0;c[(l&p)>>2]=y;if(y){x=c[(A&p)+68>>2]|0;b:do if(x){w=c[(K&p)>>2]|0;if((w|0)>0){v=c[(L&p)>>2]|0;r=0;while(1){u=r+1|0;if((c[(v+(r<<4)&p)+12>>2]|0)==(x|0)){u=r;break b}if((u|0)<(w|0))r=u;else break}}else u=0}else u=-1e6;while(0);r=c[(x&p)+4>>2]|0;xh(y,wh(y,4,u,O,c[(x&p)>>2]|0)|0,r,-14);r=y+4|0;v=c[(r&p)>>2]|0;w=y+32|0;if(v)a[(v+(((c[(w&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=1;yh(y,10,10120)|0;v=y+96|0;c[(v&p)>>2]=c[(v&p)>>2]|1<>2]|0)>>>0>1){x=c[(r&p)>>2]|0;c[(x&p)+24>>2]=u;v=A+32|0;c[(x&p)+28>>2]=c[(v&p)>>2];c[((c[(r&p)>>2]|0)&p)+32>>2]=O}else v=A+32|0;xh(y,1,c[(A&p)>>2]|0,0);zh(y,F);if((c[(w&p)>>2]|0)>>>0>G>>>0){c[((c[(r&p)>>2]|0)+(G*20|0)&p)+8>>2]=c[(v&p)>>2];c[((c[(r&p)>>2]|0)+(G*20|0)&p)+12>>2]=u}xh(y,G,(b[(z&o)>>1]|0)+1|0,-14);if((c[(w&p)>>2]|0)>>>0>6)c[((c[(r&p)>>2]|0)&p)+128>>2]=b[(z&o)>>1];if(!(a[(E&n)>>0]|0)){c[(H&p)>>2]=1;c[(I&p)>>2]=1;c[(J&p)>>2]=1;Ah(y,s)}}c[(Q&p)>>2]=O;c[(C&p)>>2]=t;c[(D&p)>>2]=d;if(a[(E&n)>>0]|0){R=57;break}re(c[(l&p)>>2]|0,1,h,k)|0;q=Bh(Q,h,k,T)|0;if(!((M|0)<50&(q|0)==17)){R=57;break}r=c[(T&p)>>2]|0;M=M+1|0;q=17}if((R|0)==11){c[(S&p)>>2]=f;th(s,10160,S)}else if((R|0)==13){c[(S&p)>>2]=f;th(s,10192,S)}else if((R|0)==17){c[(S&p)>>2]=f;th(s,10232,S)}else if((R|0)==23){mg(d,0);c[(S&p)>>2]=g;c[(T&p)>>2]=uh(d,10256,S)|0;q=1;R=62;break}else if((R|0)==36){mg(d,0);c[(S&p)>>2]=r;c[(T&p)>>2]=uh(d,10304,S)|0;q=1;R=62;break}else if((R|0)==57)if(!q){q=1;r=s;R=58;break}else{r=s;R=61;break}r=s+4|0;if(!(c[(r&p)>>2]|0)){q=1;R=62}else{mg(d,0);c[(T&p)>>2]=c[(r&p)>>2];c[(r&p)>>2]=0;q=1;R=62}}else{q=1;r=s;R=58}}else{q=0;r=0;R=58}while(0);do if((R|0)==58)if(a[(d&n)+65>>0]|0)if(q){q=0;R=61;break}else{q=0;R=64;break}else{c[(m&p)>>2]=Q;q=0;break}while(0);if((R|0)==61){l=Q+20|0;s=r;R=62}if((R|0)==62){r=c[(l&p)>>2]|0;if(!r){r=s;R=64}else{Ng(r)|0;r=s;R=64}}if((R|0)==64)mg(d,Q);K=c[(T&p)>>2]|0;c[(S&p)>>2]=K;ug(d,q,(K|0)!=0?10344:0,S);mg(d,K);Ch(r);mg(d,r);K=Og(d,q)|0;i=U;return K|0}function Je(a){a=a|0;var b=0,d=0;if(!a)a=0;else{d=c[(a&p)+24>>2]|0;b=md(c[(a&p)+20>>2]|0)|0;mg(d,a);a=b}return a|0}function Ke(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return Eh(a,b,c,d,18)|0}function Le(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return Eh(a,b,c,d,19)|0}function Me(a){a=a|0;if((a|0)!=0?(c[(a&p)+20>>2]|0)!=0:0)a=c[(a&p)+4>>2]|0;else a=0;return a|0}function Ne(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0;h=i;i=i+16|0;if((i|0)>=(j|0))fa();e=h;f=h+8|0;if(!a){c[(e&p)>>2]=77720;c[(e&p)+4>>2]=10788;bd(21,13648,e);b=21}else{g=c[(a&p)+24>>2]|0;if(c[(a&p)+20>>2]|0){b=Bh(a,b,d,f)|0;if(!b)b=0;else{d=c[(f&p)>>2]|0;c[(e&p)>>2]=d;ug(g,b,(d|0)!=0?10344:0,e);mg(g,d)}}else b=4;b=Og(g,b)|0}i=h;return b|0}function Oe(a,d,e){a=a|0;d=d|0;e=e|0;c[(a&p)+284>>2]=d;c[(a&p)+288>>2]=e;a=c[(a&p)+4>>2]|0;if(a)do{e=a+88|0;b[(e&o)>>1]=b[(e&o)>>1]|8;a=c[(a&p)+52>>2]|0}while((a|0)!=0);return 0}function Pe(a,b){a=a|0;b=b|0;return (Gh(a,b,10352,0)|0)==0|0}function Qe(e,f,g,h,k){e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;var l=0,m=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;E=i;i=i+16|0;if((i|0)>=(j|0))fa();m=E;A=E+12|0;B=E+8|0;c[(B&p)>>2]=0;do if(Hh(e)|0){l=(f|0)==0?10360:f;C=e+52|0;c[(C&p)>>2]=0;D=e+236|0;m=c[(D&p)>>2]|0;do if(m){f=m+8|0;if(!(b[(f&o)>>1]&9312)){b[(f&o)>>1]=1;break}else{vg(m);break}}while(0);x=(g|0)==0;y=e+24|0;m=0;a:while(1){do{if(m){q=39;break a}if(!(a[(l&n)>>0]|0)){m=0;q=39;break a}c[(B&p)>>2]=0;m=ih(e,l,-1,1,0,B,A)|0}while((m|0)!=0);l=c[(B&p)>>2]|0;if(!l){l=c[(A&p)>>2]|0;m=0;continue}w=b[(l&o)+84>>1]|0;u=w&65535;v=u<<3|1;w=w<<16>>16==0;f=0;q=0;r=0;b:do{m=Sd(l)|0;do if(!x){s=(m|0)==100;if(!s){if((m|0)!=101|(r|0)!=0)break b;if(!(c[(y&p)>>2]&256)){r=0;break}}if(!r){f=mh(e,v,0)|0;if(!f){f=0;q=40;break a}fw(f|0,0,v|0)|0;if(w)t=1;else{r=0;do{c[(f+(r<<2)&p)>>2]=je(l,r)|0;r=r+1|0}while((r|0)<(u|0));t=1}}else t=r;c:do if(s){q=f+(u<<2)|0;if(!w){r=0;while(1){s=fe(l,r)|0;c[(f+(r+u<<2)&p)>>2]=s;if((s|0)==0?(z=c[(B&p)>>2]|0,(ie(z,r)|0)!=5):0){m=z;q=27;break a}r=r+1|0;if((r|0)>=(u|0))break c;l=c[(B&p)>>2]|0}}}while(0);if(!(pc[g&31](h,u,q,f)|0))r=t;else{l=f;q=31;break a}}while(0);l=c[(B&p)>>2]|0}while((m|0)==100);m=Ng(l)|0;c[(B&p)>>2]=0;l=c[(A&p)>>2]|0;while(1)if(!(a[((d[(l&n)>>0]|0)&n)+10368>>0]&1))break;else l=l+1|0;mg(e,f)}do if((q|0)==27){a[(e&n)+65>>0]=1;l=m;m=100;q=40}else if((q|0)==31){Ng(c[(B&p)>>2]|0)|0;c[(B&p)>>2]=0;c[(C&p)>>2]=4;m=c[(D&p)>>2]|0;if(m){f=m+8|0;if(!(b[(f&o)>>1]&9312)){b[(f&o)>>1]=1;f=l;m=4;break}else{vg(m);f=l;m=4;break}}else{f=l;m=4}}else if((q|0)==39){l=c[(B&p)>>2]|0;f=0;q=40}while(0);if((q|0)==40)if(l)Ng(l)|0;mg(e,f);l=Og(e,m)|0;f=(k|0)!=0;if(!((l|0)!=0&f)){if(!f)break;c[(k&p)>>2]=0;break}f=Se(e)|0;if(!f)f=1;else{m=f;while(1)if(!(a[(m&n)>>0]|0))break;else m=m+1|0;f=(m-f&1073741823)+1|0}m=qg(f,((f|0)<0)<<31>>31)|0;c[(k&p)>>2]=m;if(m){kw(m|0,Se(e)|0,f|0)|0;break}c[(C&p)>>2]=7;l=c[(D&p)>>2]|0;if(l){f=l+8|0;if(!(b[(f&o)>>1]&9312)){b[(f&o)>>1]=1;l=7;break}else{vg(l);l=7;break}}else l=7}else{c[(m&p)>>2]=101334;c[(m&p)+4>>2]=10788;bd(21,13648,m);l=21}while(0);i=E;return l|0}function Re(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;return ih(a,b,c,1,0,d,e)|0}function Se(b){b=b|0;var d=0,e=0,f=0;e=i;i=i+16|0;if((i|0)>=(j|0))fa();d=e;do if(b){f=c[(b&p)+76>>2]|0;if(!((f|0)==1266094736|(f|0)==-1607883113|(f|0)==-264537850)){c[(d&p)>>2]=15248;bd(21,15256,d);c[(d&p)>>2]=129635;c[(d&p)+4>>2]=10788;bd(21,13648,d);d=16120;break}if(!(a[(b&n)+65>>0]|0)){d=Sg(c[(b&p)+236>>2]|0,1)|0;if(!d){d=c[(b&p)+52>>2]|0;if((d|0)!=516){d=d&255;if(d>>>0>26|(d|0)==2)d=16328;else d=c[(d<<2&p)+15488>>2]|0}else d=16344}}else d=15776}else d=15776;while(0);i=e;return d|0}function Te(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,o=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0;w=i;i=i+16|0;if((i|0)>=(j|0))fa();u=w;v=w+8|0;t=c[(b&p)>>2]|0;c[(v&p)>>2]=0;m=(d|0)==0;if(m)g=0;else{l=d;while(1)if(!(a[(l&n)>>0]|0))break;else l=l+1|0;g=l-d&1073741823}r=g+300|0;q=(f|0)!=0;if(q)c[(f&p)>>2]=0;do if(!(c[(b&p)+24>>2]&4194304))if(q){c[(f&p)>>2]=_c(25216,u)|0;g=1}else g=1;else{o=(e|0)!=0?e:41192;k=t+40|0;l=rc[c[(k&p)>>2]&127](t,d)|0;if(!l){c[(u&p)>>2]=d;c[(u&p)+4>>2]=41184;h=_c(27824,u)|0;if(!h){g=7;break}l=rc[c[(k&p)>>2]&127](t,h)|0;Wc(h);if(!l){if(!q){g=1;break}l=Tc(r)|0;c[(v&p)>>2]=l;c[(f&p)>>2]=l;if(!l){g=1;break}c[(u&p)>>2]=d;ad(r,l,41216,u)|0;mc[c[(t&p)+44>>2]&63](t,g+299|0,l);g=1;break}else s=l}else s=l;g=t+48|0;l=ac[c[(g&p)>>2]&63](t,s,o)|0;if((l|0)==0&(e|0)==0){if(m)l=0;else{l=d;while(1)if(!(a[(l&n)>>0]|0))break;else l=l+1|0;l=l-d&1073741823}e=Tc(l+30|0)|0;if(!e){jc[c[(t&p)+52>>2]&15](t,s);g=7;break}o=e;m=o;a[(m&n)>>0]=115;a[(m&n)+1>>0]=113;a[(m&n)+2>>0]=108;a[(m&n)+3>>0]=105;o=o+4|0;a[(o&n)>>0]=116;a[(o&n)+1>>0]=101;a[(o&n)+2>>0]=51;a[(o&n)+3>>0]=95;while(1){k=l+-1|0;if((l|0)<=0)break;if((a[(d+k&n)>>0]|0)==47)break;else l=k}h=(Fc(d+l|0,41256,3)|0)==0;k=8;h=h?l+3|0:l;while(1){l=a[(d+h&n)>>0]|0;if(l<<24>>24==0|l<<24>>24==46){l=k;break}if(!(a[(l&255&n)+10368>>0]&2))l=k;else{a[(e+k&n)>>0]=a[(l<<24>>24&n)+9328>>0]|0;l=k+1|0}k=l;h=h+1|0}l=e+l|0;a[(l&n)>>0]=a[41264]|0;a[(l&n)+1>>0]=a[41265]|0;a[(l&n)+2>>0]=a[41266]|0;a[(l&n)+3>>0]=a[41267]|0;a[(l&n)+4>>0]=a[41268]|0;a[(l&n)+5>>0]=a[41269]|0;l=ac[c[(g&p)>>2]&63](t,s,e)|0;g=e;h=e}else{g=0;h=o}if(!l){if(q){if(!h)l=0;else{l=h;while(1)if(!(a[(l&n)>>0]|0))break;else l=l+1|0;l=l-h&1073741823}l=l+r|0;k=Tc(l)|0;c[(v&p)>>2]=k;c[(f&p)>>2]=k;if(k){c[(u&p)>>2]=h;c[(u&p)+4>>2]=d;ad(l,k,41272,u)|0;mc[c[(t&p)+44>>2]&63](t,l+-1|0,k)}}jc[c[(t&p)+52>>2]&15](t,s);Wc(g);g=1;break}Wc(g);if(ac[l&63](b,v,13776)|0){if(q){c[(u&p)>>2]=c[(v&p)>>2];c[(f&p)>>2]=_c(41320,u)|0}Wc(c[(v&p)>>2]|0);jc[c[(t&p)+52>>2]&15](t,s);g=1;break}k=b+168|0;g=(c[(k&p)>>2]<<2)+4|0;l=mh(b,g,0)|0;if(!l)g=7;else{fw(l|0,0,g|0)|0;g=c[(k&p)>>2]|0;h=b+172|0;if((g|0)>0)kw(l|0,c[(h&p)>>2]|0,g<<2|0)|0;mg(b,c[(h&p)>>2]|0);c[(h&p)>>2]=l;g=c[(k&p)>>2]|0;c[(k&p)>>2]=g+1;c[(l+(g<<2)&p)>>2]=s;g=0}}while(0);s=Og(b,g)|0;i=w;return s|0}function Ue(a){a=a|0;var b=0,d=0,e=0,f=0;b=Lc()|0;if(!b){f=c[2656]|0;a:do if((f|0)>0){d=c[2658]|0;e=0;while(1){b=e+1|0;if((c[(d+(e<<2)&p)>>2]|0)==(a|0)){b=e;break a}if((b|0)<(f|0))e=b;else break}}else b=0;while(0);if((b|0)==(f|0)){b=Xc(c[2658]|0,(f<<2)+4|0)|0;if(!b)b=7;else{c[2658]=b;d=c[2656]|0;c[(b+(d<<2)&p)>>2]=a;c[2656]=d+1;b=0}}else b=0}return b|0}function Ve(a){a=a|0;var b=0,d=0,e=0,f=0,g=0;e=c[2656]|0;f=c[2658]|0;d=e;while(1){if((d|0)<=0){b=0;break}d=d+-1|0;b=f+(d<<2)|0;if((c[(b&p)>>2]|0)==(a|0)){g=4;break}}if((g|0)==4){d=e+-1|0;c[2656]=d;c[(b&p)>>2]=c[(f+(d<<2)&p)>>2];b=1}return b|0}function We(){if(!(Lc()|0)){Wc(c[2658]|0);c[2658]=0;c[2656]=0}return}function Xe(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;return ih(a,b,c,0,0,d,e)|0}function Ye(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;return Ih(a,b,c,0,d,e)|0}function Ze(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;return Ih(a,b,c,1,d,e)|0}function _e(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,k=0,l=0,m=0,n=0,o=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0;w=i;i=i+32|0;if((i|0)>=(j|0))fa();n=w;r=w+4|0;c[(d&p)>>2]=0;s=(f|0)!=0;if(s)c[(f&p)>>2]=0;t=(e|0)!=0;if(t)c[(e&p)>>2]=0;l=(g|0)!=0;if(l)c[(g&p)>>2]=0;m=r+4|0;c[(m&p)>>2]=0;u=r+12|0;c[(u&p)>>2]=0;v=r+16|0;c[(v&p)>>2]=0;k=r+20|0;c[(k&p)>>2]=1;o=r+8|0;c[(o&p)>>2]=20;q=r+24|0;c[(q&p)>>2]=0;h=Tc(80)|0;c[(r&p)>>2]=h;a:do if(h){c[(h&p)>>2]=0;b=Qe(a,b,20,r,g)|0;c[(c[(r&p)>>2]&p)>>2]=c[(k&p)>>2];if((b&255|0)==4){$e((c[(r&p)>>2]|0)+4|0);b=c[(m&p)>>2]|0;if(b){if(l){Wc(c[(g&p)>>2]|0);c[(n&p)>>2]=c[(m&p)>>2];c[(g&p)>>2]=_c(10344,n)|0;b=c[(m&p)>>2]|0}Wc(b)}b=c[(q&p)>>2]|0;c[(a&p)+52>>2]=b;break}Wc(c[(m&p)>>2]|0);if(b){$e((c[(r&p)>>2]|0)+4|0);break}h=c[(k&p)>>2]|0;b=c[(r&p)>>2]|0;do if((c[(o&p)>>2]|0)>>>0>h>>>0){b=Xc(b,h<<2)|0;if(!b){$e((c[(r&p)>>2]|0)+4|0);c[(a&p)+52>>2]=7;b=7;break a}else{c[(r&p)>>2]=b;break}}while(0);c[(d&p)>>2]=b+4;if(s)c[(f&p)>>2]=c[(v&p)>>2];if(t){c[(e&p)>>2]=c[(u&p)>>2];b=0}else b=0}else{c[(a&p)+52>>2]=7;b=7}while(0);i=w;return b|0}function $e(a){a=a|0;var b=0,d=0,e=0,f=0;if(a){b=a+-4|0;e=c[(b&p)>>2]|0;d=e;if((e|0)>1){f=1;do{e=c[(a+(f+-1<<2)&p)>>2]|0;if(e)Wc(e);f=f+1|0}while((f|0)<(d|0))}Wc(b)}return}function af(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return Kh(a,b,c,d,0)|0}function bf(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;return Kh(a,b,c,d,e)|0}function cf(d,e){d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,q=0,r=0,s=0;s=i;i=i+16|0;if((i|0)>=(j|0))fa();r=s;g=s+8|0;c[(g&p)>>2]=0;h=d+324|0;f=c[(h&p)>>2]|0;if((f|0)!=0?(m=c[(f&p)+4>>2]|0,(m|0)!=0):0){q=mh(d,536,0)|0;if(!q)e=7;else{fw(q|0,0,536)|0;k=q+451|0;a[(k&n)>>0]=1;c[(q&p)>>2]=d;c[(q&p)+424>>2]=1;if(((((Lh(q,e,g)|0)==0?(l=c[(q&p)+484>>2]|0,(l|0)!=0):0)?(a[(d&n)+65>>0]|0)==0:0)?(c[(l&p)+12>>2]|0)==0:0)?(a[(l&n)+44>>0]&16)==0:0){f=m+4|0;if(!(c[(f&p)>>2]|0)){r=l+4|0;c[(f&p)>>2]=c[(r&p)>>2];l=l+38|0;b[(m&o)+38>>1]=b[(l&o)>>1]|0;b[(l&o)>>1]=0;c[(r&p)>>2]=0}c[((c[(h&p)>>2]|0)&p)+4>>2]=0;e=0}else{e=c[(g&p)>>2]|0;c[(r&p)>>2]=e;ug(d,1,(e|0)!=0?10344:0,r);mg(d,e);e=1}a[(k&n)>>0]=0;f=c[(q&p)+8>>2]|0;if(f)Ng(f)|0;kg(d,c[(q&p)+484>>2]|0);Ch(q);mg(d,q)}e=Og(d,e)|0}else{c[(d&p)+52>>2]=21;f=c[(d&p)+236>>2]|0;do if(f){e=f+8|0;if(!(b[(e&o)>>1]&9312)){b[(e&o)>>1]=1;break}else{vg(f);break}}while(0);c[(r&p)>>2]=114865;c[(r&p)+4>>2]=10788;bd(21,13648,r);e=21}i=s;return e|0}function df(a){a=a|0;return d[((d[(a&n)+69>>0]|0)+-1&n)+10640>>0]|0|0}function ef(d,e,f){d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0;l=i;i=i+32|0;if((i|0)>=(j|0))fa();h=l;g=l+8|0;c[(g&p)>>2]=f;do if((e|0)==1){e=c[(d&p)+324>>2]|0;if(!e){c[(h&p)>>2]=115248;c[(h&p)+4>>2]=10788;bd(21,13648,h);k=6;break}else{d=c[(g&p)>>2]|0;f=c[(d&p)>>2]|0;c[(g&p)>>2]=d+4;a[((c[(e&p)>>2]|0)&n)+16>>0]=f;e=0;break}}else{c[(h&p)>>2]=115256;c[(h&p)+4>>2]=10788;bd(21,13648,h);k=6}while(0);do if((k|0)==6){c[(d&p)+52>>2]=21;e=c[(d&p)+236>>2]|0;if(e){f=e+8|0;if(!(b[(f&o)>>1]&9312)){b[(f&o)>>1]=1;e=21;break}else{vg(e);e=21;break}}else e=21}while(0);i=l;return e|0}function ff(b){b=b|0;var c=0,e=0,f=0,g=0,h=0;c=a[(b&n)>>0]|0;a:do if(c<<24>>24){g=c;c=0;b:while(1){f=g<<24>>24;switch(f|0){case 45:{if((a[(b&n)+1>>0]|0)==45){e=g;while(1){f=e<<24>>24==0;g=b+1|0;if(!(e<<24>>24!=10&(f^1)))break;b=g;e=a[(g&n)>>0]|0}if(f){h=13;break b}else e=1}else e=2;break}case 59:{e=0;break}case 91:{do{b=b+1|0;f=a[(b&n)>>0]|0;e=f<<24>>24==0}while(f<<24>>24!=93&(e^1));if(e){c=0;break a}else e=2;break}case 39:case 34:case 96:{do{b=b+1|0;f=a[(b&n)>>0]|0;e=f<<24>>24==0}while(f<<24>>24!=g<<24>>24&(e^1));if(e){c=0;break a}else e=2;break}case 47:{if((a[(b&n)+1>>0]|0)==42){b=b+2|0;while(1){e=a[(b&n)>>0]|0;if(e<<24>>24==42){b=b+1|0;if((a[(b&n)>>0]|0)==47){e=1;break}else continue}else if(!(e<<24>>24)){c=0;break a}else{b=b+1|0;continue}}}else e=2;break}case 12:case 10:case 9:case 13:case 32:{e=1;break}default:if(!(a[(g&255&n)+10368>>0]&70))e=2;else{e=1;while(1)if(!(a[((d[(b+e&n)>>0]|0)&n)+10368>>0]&70)){g=e;break}else e=e+1|0;c:do switch(f|0){case 67:case 99:{if((g|0)==6?(Fc(b,10712,6)|0)==0:0){e=4;break c}e=2;break}case 69:case 101:{if((g|0)==3){if(!(Fc(b,10752,3)|0)){e=7;break c}}else if((g|0)==7?(Fc(b,10760,7)|0)==0:0){e=3;break c}e=2;break}case 84:case 116:{if((g|0)==7){if(!(Fc(b,10720,7)|0)){e=6;break c}}else if((g|0)==4){if(!(Fc(b,10728,4)|0)){e=5;break c}}else if((g|0)==9?(Fc(b,10736,9)|0)==0:0){e=5;break c}e=2;break}default:e=2}while(0);b=b+(g+-1)|0}}c=a[((e&255)+((c&255)<<3)&n)+10648>>0]|0;b=b+1|0;g=a[(b&n)>>0]|0;if(!(g<<24>>24)){h=35;break}}if((h|0)==13){c=c<<24>>24==1&1;break}else if((h|0)==35){c=c<<24>>24==1;h=36;break}}else{c=0;h=36}while(0);if((h|0)==36)c=c&1;return c|0}function gf(d){d=d|0;var e=0,f=0,g=0;e=Lc()|0;if(!e){f=qg(40,0)|0;if(f){e=f+0|0;g=e+40|0;do{a[(e&n)>>0]=0;e=e+1|0}while((e|0)<(g|0));b[(f&o)+8>>1]=1;c[(f&p)+32>>2]=0;Xg(f,d,-1,2,0)|0}e=Sg(f,1)|0;if(!e)e=7;else e=(ff(e)|0)&255;Mh(f)}return e|0}function hf(){return 8632}function jf(){return 10768}function kf(){return 3008009}function lf(){return 0}function mf(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;f=i;i=i+32|0;if((i|0)>=(j|0))fa();d=f;e=f+8|0;if(!(c[2243]|0)){c[(e&p)>>2]=b;do switch(a|0){case 22:{c[(e&p)>>2]=(c[(e&p)>>2]|0)+8;c[(e&p)>>2]=(c[(e&p)>>2]|0)+8;c[2230]=0;c[2231]=0;c[2232]=0;c[2233]=0;d=0;break}case 25:{a=c[(e&p)>>2]|0;d=c[(a&p)>>2]|0;c[(e&p)>>2]=a+4;c[2242]=d;d=0;break}case 19:{if(!(c[2214]|0)){c[(d&p)>>2]=16440;mf(18,d)|0}a=c[(e&p)>>2]|0;d=c[(a&p)>>2]|0;c[(e&p)>>2]=a+4;d=d+0|0;a=8848|0;e=d+52|0;do{c[(d&p)>>2]=c[(a&p)>>2];d=d+4|0;a=a+4|0}while((d|0)<(e|0));d=0;break}case 18:{d=c[(e&p)>>2]|0;a=c[(d&p)>>2]|0;c[(e&p)>>2]=d+4;d=8848|0;a=a+0|0;e=d+52|0;do{c[(d&p)>>2]=c[(a&p)>>2];d=d+4|0;a=a+4|0}while((d|0)<(e|0));d=0;break}case 20:{a=c[(e&p)>>2]|0;d=c[(a&p)>>2]|0;c[(e&p)>>2]=a+4;c[2190]=d;d=0;break}case 13:{d=c[(e&p)>>2]|0;a=c[(d&p)>>2]|0;c[(e&p)>>2]=d+4;c[2193]=a;a=c[(e&p)>>2]|0;d=c[(a&p)>>2]|0;c[(e&p)>>2]=a+4;c[2194]=d;d=0;break}case 17:{a=c[(e&p)>>2]|0;d=c[(a&p)>>2]|0;c[(e&p)>>2]=a+4;c[2189]=d;d=0;break}case 15:{d=1;break}case 6:{a=c[(e&p)>>2]|0;d=c[(a&p)>>2]|0;c[(e&p)>>2]=a+4;c[2234]=d;d=c[(e&p)>>2]|0;a=c[(d&p)>>2]|0;c[(e&p)>>2]=d+4;c[2235]=a;a=c[(e&p)>>2]|0;d=c[(a&p)>>2]|0;c[(e&p)>>2]=a+4;c[2236]=d;d=0;break}case 24:{a=c[(e&p)>>2]|0;d=c[(a&p)>>2]|0;c[(e&p)>>2]=a+4;c[(d&p)>>2]=152;d=0;break}case 9:{a=c[(e&p)>>2]|0;d=c[(a&p)>>2]|0;c[(e&p)>>2]=a+4;c[2186]=d;d=0;break}case 7:{a=c[(e&p)>>2]|0;d=c[(a&p)>>2]|0;c[(e&p)>>2]=a+4;c[2237]=d;d=c[(e&p)>>2]|0;a=c[(d&p)>>2]|0;c[(e&p)>>2]=d+4;c[2238]=a;a=c[(e&p)>>2]|0;d=c[(a&p)>>2]|0;c[(e&p)>>2]=a+4;c[2239]=d;d=0;break}case 4:{a=c[(e&p)>>2]|0;d=c[(a&p)>>2]|0;c[(e&p)>>2]=a+4;c[2195]=c[(d&p)>>2];c[2196]=c[(d&p)+4>>2];c[2197]=c[(d&p)+8>>2];c[2198]=c[(d&p)+12>>2];c[2199]=c[(d&p)+16>>2];c[2200]=c[(d&p)+20>>2];c[2201]=c[(d&p)+24>>2];c[2202]=c[(d&p)+28>>2];d=0;break}case 16:{d=c[(e&p)>>2]|0;a=c[(d&p)>>2]|0;c[(e&p)>>2]=d+4;c[2250]=a;a=c[(e&p)>>2]|0;d=c[(a&p)>>2]|0;c[(e&p)>>2]=a+4;c[2251]=d;d=0;break}case 5:{if(!(c[2195]|0)){c[(d&p)>>2]=16496;mf(4,d)|0}a=c[(e&p)>>2]|0;d=c[(a&p)>>2]|0;c[(e&p)>>2]=a+4;c[(d&p)>>2]=c[2195];c[(d&p)+4>>2]=c[2196];c[(d&p)+8>>2]=c[2197];c[(d&p)+12>>2]=c[2198];c[(d&p)+16>>2]=c[2199];c[(d&p)+20>>2]=c[2200];c[(d&p)+24>>2]=c[2201];c[(d&p)+28>>2]=c[2202];d=0;break}case 14:{d=0;break}default:d=1}while(0)}else{c[(d&p)>>2]=127883;c[(d&p)+4>>2]=10788;bd(21,13648,d);d=21}i=f;return d|0}function nf(a){a=a|0;return c[(a&p)+12>>2]|0}function of(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0;h=a+20|0;b=c[(h&p)>>2]|0;f=(b|0)>0;if(f){e=c[(a&p)+16>>2]|0;g=0;do{d=c[(e+(g<<4)&p)+4>>2]|0;if(d)c[((c[(d&p)+4>>2]|0)&p)+4>>2]=c[(d&p)>>2];g=g+1|0}while((g|0)!=(b|0));if(f){f=a+16|0;e=0;do{d=c[((c[(f&p)>>2]|0)+(e<<4)&p)+4>>2]|0;if(d){cc[c[8896>>2]&31](c[((c[((c[(c[(d&p)+4>>2]&p)>>2]|0)&p)+204>>2]|0)&p)+40>>2]|0);b=c[(h&p)>>2]|0}e=e+1|0}while((e|0)<(b|0))}}return 0}function pf(a,d,e){a=a|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0;l=i;i=i+16|0;if((i|0)>=(j|0))fa();h=l;c[(h&p)>>2]=e;a:do if((d|0)!=1001){e=0;while(1){if((c[(e<<3&p)+10936>>2]|0)==(d|0))break;e=e+1|0;if(e>>>0>=2){f=1;break a}}g=c[(h&p)>>2]|0;d=c[(g&p)>>2]|0;c[(h&p)>>2]=g+4;g=c[(h&p)>>2]|0;k=c[(g&p)>>2]|0;c[(h&p)>>2]=g+4;h=a+24|0;g=c[(h&p)>>2]|0;if((d|0)<=0)if(!d){d=g&~c[(e<<3&p)+10940>>2];c[(h&p)>>2]=d}else d=g;else{d=c[(e<<3&p)+10940>>2]|g;c[(h&p)>>2]=d}if((g|0)!=(d|0)?(f=c[(a&p)+4>>2]|0,(f|0)!=0):0)do{d=f+88|0;b[(d&o)>>1]=b[(d&o)>>1]|8;f=c[(f&p)+52>>2]|0}while((f|0)!=0);if(!k)f=0;else{c[(k&p)>>2]=(c[(e<<3&p)+10940>>2]&c[(h&p)>>2]|0)!=0&1;f=0}}else{g=c[(h&p)>>2]|0;d=c[(g&p)>>2]|0;c[(h&p)>>2]=g+4;g=c[(h&p)>>2]|0;e=c[(g&p)>>2]|0;c[(h&p)>>2]=g+4;g=c[(h&p)>>2]|0;f=c[(g&p)>>2]|0;c[(h&p)>>2]=g+4;f=Nh(a,d,e,f)|0}while(0);i=l;return f|0}function qf(a){a=a|0;a=a+32|0;G=c[(a&p)+4>>2]|0;return c[(a&p)>>2]|0}function rf(a){a=a|0;return c[(a&p)+80>>2]|0}function sf(a){a=a|0;return c[(a&p)+84>>2]|0}function tf(a){a=a|0;return Oh(a,0)|0}function uf(a){a=a|0;return Oh(a,1)|0}function vf(a,b,d){a=a|0;b=b|0;d=d|0;c[(a&p)+444>>2]=b;c[(a&p)+448>>2]=d;c[(a&p)+452>>2]=0;c[(a&p)+492>>2]=0;return 0}function wf(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0;f=(b|0)>0;c[(a&p)+292>>2]=f?d:0;c[(a&p)+300>>2]=f?b:0;c[(a&p)+296>>2]=f?e:0;return}function xf(a,b){a=a|0;b=b|0;var d=0;d=(b|0)>0;c[(a&p)+444>>2]=d?74:0;c[(a&p)+448>>2]=d?a:0;c[(a&p)+452>>2]=0;c[(a&p)+492>>2]=d?b:0;return 0}function yf(a){a=a|0;c[(a&p)+240>>2]=1;return}function zf(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 Og(a,Qh(a,b,c,d,e,f,g,h,0)|0)|0}function Af(b,d,e,f,g,h,i,j,k){b=b|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;var l=0,m=0,o=0;do if(k){l=mh(b,12,0)|0;if(!l){cc[k&31](g);f=1;break}m=l;o=m;a[(o&n)>>0]=0;a[(o&n)+1>>0]=0;a[(o&n)+2>>0]=0;a[(o&n)+3>>0]=0;m=m+4|0;a[(m&n)>>0]=0;a[(m&n)+1>>0]=0;a[(m&n)+2>>0]=0;a[(m&n)+3>>0]=0;c[(l&p)+4>>2]=k;c[(l&p)+8>>2]=g;f=Qh(b,d,e,f,g,h,i,j,l)|0;if(!(c[(l&p)>>2]|0)){cc[k&31](g);mg(b,l)}}else f=Qh(b,d,e,f,g,h,i,j,0)|0;while(0);return Og(b,f)|0}function Bf(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;b=Rh(a,b,-1)|0;d=Qh(a,b,c,d,e,f,g,h,0)|0;mg(a,b);return Og(a,d)|0}function Cf(b,c,d){b=b|0;c=c|0;d=d|0;var e=0;if(!c)e=0;else{e=c;while(1)if(!(a[(e&n)>>0]|0))break;else e=e+1|0;e=e-c&1073741823}if(!(Sh(b,c,e,d,1,0)|0))e=Qh(b,c,d,1,0,57,0,0,0)|0;else e=0;return Og(b,e)|0}function Df(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;f=a+180|0;e=c[(f&p)>>2]|0;c[(a&p)+176>>2]=b;c[(f&p)>>2]=d;return e|0}function Ef(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;f=a+188|0;e=c[(f&p)>>2]|0;c[(a&p)+184>>2]=b;c[(f&p)>>2]=d;return e|0}function Ff(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;f=a+192|0;e=c[(f&p)>>2]|0;c[(a&p)+196>>2]=b;c[(f&p)>>2]=d;return e|0}function Gf(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;f=a+208|0;e=c[(f&p)>>2]|0;c[(a&p)+212>>2]=b;c[(f&p)>>2]=d;return e|0}function Hf(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;f=a+200|0;e=c[(f&p)>>2]|0;c[(a&p)+204>>2]=b;c[(f&p)>>2]=d;return e|0}function If(a,b){a=a|0;b=b|0;var d=0;if((b|0)>0)d=21;else{b=0;d=0}c[(a&p)+216>>2]=d;c[(a&p)+220>>2]=b;return 0}function Jf(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;f=a+220|0;e=c[(f&p)>>2]|0;c[(a&p)+216>>2]=b;c[(f&p)>>2]=d;return e|0}function Kf(d,e,f,g,h){d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var k=0,l=0,m=0,q=0;q=i;i=i+16|0;if((i|0)>=(j|0))fa();k=q;if(g)c[(g&p)>>2]=-1;if(h)c[(h&p)>>2]=-1;if(f>>>0>3)e=21;else{if((e|0)!=0?(a[(e&n)>>0]|0)!=0:0){l=Vh(d,e)|0;if((l|0)<0){c[(k&p)>>2]=e;ug(d,1,10952,k);e=1}else m=10}else{l=10;m=10}do if((m|0)==10){c[(d&p)+452>>2]=0;e=Wh(d,l,f,g,h)|0;c[(d&p)+52>>2]=e;k=c[(d&p)+236>>2]|0;if(k){l=k+8|0;if(!(b[(l&o)>>1]&9312)){b[(l&o)>>1]=1;break}else{vg(k);break}}}while(0);e=Og(d,e)|0}i=q;return e|0}function Lf(a,b){a=a|0;b=b|0;return Kf(a,b,0,0,0)|0}function Mf(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,k=0;k=i;i=i+16|0;if((i|0)>=(j|0))fa();g=k;do if(b){d=c[(b&p)+76>>2]|0;if(!((d|0)==1266094736|(d|0)==-1607883113|(d|0)==-264537850)){c[(g&p)>>2]=15248;bd(21,15256,g);d=11008;break}h=b+65|0;if(!(a[(h&n)>>0]|0)){f=b+236|0;d=Sg(c[(f&p)>>2]|0,2)|0;if(!d){e=c[(b&p)+52>>2]|0;if((e|0)!=516){d=e&255;if(d>>>0>26|(d|0)==2)d=16328;else d=c[(d<<2&p)+15488>>2]|0}else d=16344;ug(b,e,d,g);d=Sg(c[(f&p)>>2]|0,2)|0}a[(h&n)>>0]=0}else d=10976}else d=10976;while(0);i=k;return d|0}function Nf(b){b=b|0;var d=0,e=0,f=0;e=i;i=i+16|0;if((i|0)>=(j|0))fa();d=e;do if(b){f=c[(b&p)+76>>2]|0;if(!((f|0)==1266094736|(f|0)==-1607883113|(f|0)==-264537850)){c[(d&p)>>2]=15248;bd(21,15256,d);c[(d&p)>>2]=129704;c[(d&p)+4>>2]=10788;bd(21,13648,d);b=21;break}if(!(a[(b&n)+65>>0]|0))b=c[(b&p)+56>>2]&c[(b&p)+52>>2];else b=7}else b=7;while(0);i=e;return b|0}function Of(b){b=b|0;var d=0,e=0,f=0;e=i;i=i+16|0;if((i|0)>=(j|0))fa();d=e;do if(b){f=c[(b&p)+76>>2]|0;if(!((f|0)==1266094736|(f|0)==-1607883113|(f|0)==-264537850)){c[(d&p)>>2]=15248;bd(21,15256,d);c[(d&p)>>2]=129713;c[(d&p)+4>>2]=10788;bd(21,13648,d);b=21;break}if(!(a[(b&n)+65>>0]|0))b=c[(b&p)+52>>2]|0;else b=7}else b=7;while(0);i=e;return b|0}function Pf(a){a=a|0;if((a|0)!=516){a=a&255;if(a>>>0>26|(a|0)==2)a=16328;else a=c[(a<<2&p)+15488>>2]|0}else a=16344;return a|0}function Qf(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;if(b>>>0<=11){e=a+(b<<2)+88|0;a=c[(e&p)>>2]|0;if((d|0)>-1){b=c[(b<<2&p)+11088>>2]|0;c[(e&p)>>2]=(b|0)<(d|0)?b:d}}else a=-1;return a|0}function Rf(a,b){a=a|0;b=b|0;return Xh(a,b,6,0)|0}function Sf(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return Xh(a,b,c,d)|0}function Tf(d,e){d=d|0;e=e|0;var f=0,g=0,h=0;c[(e&p)>>2]=0;f=Lc()|0;if(!f){h=qg(40,0)|0;if(h){d=(d|0)==0?11136:d;f=h+0|0;g=f+40|0;do{a[(f&n)>>0]=0;f=f+1|0}while((f|0)<(g|0));b[(h&o)+8>>1]=1;c[(h&p)+32>>2]=0;Xg(h,d,-1,2,0)|0}d=Sg(h,1)|0;if(d){f=Xh(d,e,6,0)|0;if(!f){f=c[(e&p)>>2]|0;d=c[((c[(f&p)+16>>2]|0)&p)+12>>2]|0;if(!(b[(d&o)+78>>1]&1)){a[(f&n)+62>>0]=2;a[(d&n)+77>>0]=2;f=0}else f=0}}else f=7;Mh(h);f=f&255}return f|0}function Uf(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;return Og(a,Yh(a,b,c&255,d,e,0)|0)|0}function Vf(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 Og(a,Yh(a,b,c&255,d,e,f)|0)|0}function Wf(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;b=Rh(a,b,-1)|0;if(!b)b=0;else{c=Yh(a,b,c&255,d,e,0)|0;mg(a,b);b=c}return Og(a,b)|0}function Xf(a,b,d){a=a|0;b=b|0;d=d|0;c[(a&p)+224>>2]=d;c[(a&p)+228>>2]=0;c[(a&p)+232>>2]=b;return 0}function Yf(a,b,d){a=a|0;b=b|0;d=d|0;c[(a&p)+224>>2]=0;c[(a&p)+228>>2]=d;c[(a&p)+232>>2]=b;return 0}function Zf(a){a=a|0;return d[(a&n)+63>>0]|0|0}function _f(){return}function $f(d,e,f,g,h,k,l,m,q){d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;m=m|0;q=q|0;var r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0;C=i;i=i+16|0;if((i|0)>=(j|0))fa();A=C;B=C+8|0;c[(B&p)>>2]=0;s=c[(d&p)+20>>2]|0;if((s|0)>0){r=c[(d&p)+16>>2]|0;u=0;do{t=c[(r+(u<<4)&p)+4>>2]|0;if(t)c[((c[(t&p)+4>>2]|0)&p)+4>>2]=c[(t&p)>>2];u=u+1|0}while((u|0)!=(s|0))}r=Zh(d,B)|0;z=(r|0)!=0;a:do if((!z?(x=_h(d,f,e)|0,(x|0)!=0):0)?(c[(x&p)+12>>2]|0)==0:0){do if(g){w=b[(x&o)+38>>1]|0;b:do if(w<<16>>16>0){e=c[(x&p)+4>>2]|0;s=w<<16>>16;v=0;while(1){t=e+(v*24|0)|0;u=v+1|0;if(!(dd(c[(t&p)>>2]|0,g)|0)){u=v;break b}if((u|0)<(s|0))v=u;else break}}else{u=0;t=0}while(0);if((u|0)==(w<<16>>16|0)){if(a[(x&n)+44>>0]&32){e=0;w=0;x=0;t=0;v=0;u=0;break a}if(!($h(g)|0)){e=0;w=0;x=0;t=0;v=0;u=0;break a}y=b[(x&o)+36>>1]|0;s=y<<16>>16;if(y<<16>>16<=-1){e=0;v=0;s=1;y=0;u=11144;break}u=s;t=(c[(x&p)+4>>2]|0)+(s*24|0)|0}if(t){if((b[(x&o)+36>>1]|0)==(u|0))s=(a[(x&n)+44>>0]&8)!=0;else s=0;e=s&1;v=(a[(t&n)+20>>0]|0)!=0&1;s=a[(t&n)+23>>0]&1;y=c[(t&p)+16>>2]|0;u=c[(t&p)+12>>2]|0}else{e=0;v=0;s=1;y=0;u=11144}}else{e=0;v=0;s=1;y=0;u=11144}while(0);w=v;t=s;v=(y|0)==0?11152:y}else{e=0;w=0;x=0;t=0;v=0;u=0}while(0);if(h)c[(h&p)>>2]=u;if(k)c[(k&p)>>2]=v;if(l)c[(l&p)>>2]=w;if(m)c[(m&p)>>2]=t;if(q)c[(q&p)>>2]=e;s=c[(B&p)>>2]|0;if(!(z|(x|0)!=0)){mg(d,s);c[(A&p)>>2]=f;c[(A&p)+4>>2]=g;s=uh(d,11160,A)|0;c[(B&p)>>2]=s;r=1}c[(A&p)>>2]=s;ug(d,r,(s|0)!=0?10344:0,A);mg(d,c[(B&p)>>2]|0);z=Og(d,r)|0;i=C;return z|0}function ag(a){a=a|0;var b=0;if((Lc()|0)==0?(b=c[2254]|0,(b|0)!=0):0)a=(rc[c[(b&p)+60>>2]&127](b,a*1e3|0)|0)/1e3|0;else a=0;return a|0}function bg(a,b){a=a|0;b=b|0;c[(a&p)+56>>2]=(b|0)!=0?-1:255;return 0}function cg(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;b=ai(a,b)|0;do if(b){a=c[(b&p)+4>>2]|0;c[(a&p)+4>>2]=c[(b&p)>>2];a=c[((c[(a&p)>>2]|0)&p)+60>>2]|0;if((d|0)==7){c[(e&p)>>2]=a;b=0;break}b=c[(a&p)>>2]|0;if(!b)b=12;else b=ac[c[(b&p)+40>>2]&63](a,d,e)|0}else b=1;while(0);return b|0}function dg(e,f){e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0,v=0;t=i;i=i+32|0;if((i|0)>=(j|0))fa();s=t+24|0;h=t+8|0;g=t;c[(h&p)>>2]=f;do switch(e|0){case 11:{g=c[2514]|0;s=c[(h&p)>>2]|0;f=c[(s&p)>>2]|0;c[(h&p)>>2]=s+4;if(f)c[2514]=f;break}case 12:{c[(g&p)>>2]=0;g=c[(g&p)>>2]|0;break}case 13:{s=c[(h&p)>>2]|0;g=c[(s&p)>>2]|0;c[(h&p)>>2]=s+4;break}case 22:{g=10;break}case 5:{kw(12672,9064,259)|0;g=0;break}case 7:{if(!(Lc()|0)){a[9064]=0;g=0}else g=0;break}case 8:{r=c[(h&p)>>2]|0;q=c[(r&p)>>2]|0;c[(h&p)>>2]=r+4;r=c[(h&p)>>2]|0;k=c[(r&p)>>2]|0;c[(h&p)>>2]=r+4;r=qg(512,0)|0;g=(r|0)==0;if(!g){fw(r|0,0,512)|0;c[(r&p)>>2]=q}e=((q+7|0)/8|0)+1|0;m=qg(e,((e|0)<0)<<31>>31)|0;f=(m|0)==0;if(!f)fw(m|0,0,e|0)|0;l=Tc(512)|0;a:do if(!(g|f|(l|0)==0)){h=0;while(1){g=c[(k+(h<<2)&p)>>2]|0;if(!g)break;else if((g|0)==5|(g|0)==2|(g|0)==1){f=k+(h+2<<2)|0;u=c[(f&p)>>2]|0;e=u+-1|0;c[(s&p)>>2]=e;c[(f&p)>>2]=(c[(k+(h+3<<2)&p)>>2]|0)+u;f=4}else{cd(4,s);e=c[(s&p)>>2]|0;f=2}v=k+((h|1)<<2)|0;u=(c[(v&p)>>2]|0)+-1|0;c[(v&p)>>2]=u;h=((u|0)>0?0:f)+h|0;e=(e&2147483647|0)%(q|0)|0;c[(s&p)>>2]=e;e=e+1|0;f=1<<(e&7);if(!(g&1)){e=m+(e>>>3)|0;a[(e&n)>>0]=d[(e&n)>>0]&(f^255);ci(r,(c[(s&p)>>2]|0)+1|0,l);continue}e=m+(e>>>3)|0;a[(e&n)>>0]=d[(e&n)>>0]|f;if((g|0)==5)continue;if(bi(r,(c[(s&p)>>2]|0)+1|0)|0){g=-1;break a}}k=di(r,q+1|0)|0;e=di(r,0)|0;e=k-q+e+(c[(r&p)>>2]|0)|0;c[(s&p)>>2]=1;if((q|0)<1)g=e;else{f=1;while(1){k=(d[(m+(f>>3)&n)>>0]&1<<(f&7)|0)!=0&1;g=f;f=f+1|0;if((k|0)!=(di(r,g)|0))break a;c[(s&p)>>2]=f;if((g|0)>=(q|0)){g=e;break}}}}else g=-1;while(0);Wc(l);Wc(m);ei(r);break}case 6:{kw(9064,12672,259)|0;g=0;break}case 23:{g=(c[2243]|0)==0&1;break}case 25:{q=c[(h&p)>>2]|0;g=c[(q&p)>>2]|0;c[(h&p)>>2]=q+4;q=c[(h&p)>>2]|0;r=c[(q&p)>>2]|0;c[(h&p)>>2]=q+4;a[(g&n)+144>>0]=Vh(g,r)|0;r=c[(h&p)>>2]|0;q=c[(r&p)>>2]|0;c[(h&p)>>2]=r+4;q=q&255;a[(g&n)+147>>0]=q;r=g+145|0;a[(r&n)>>0]=q;q=c[(h&p)>>2]|0;s=c[(q&p)>>2]|0;c[(h&p)>>2]=q+4;c[(g&p)+140>>2]=s;if((a[(r&n)>>0]|0)==0&(s|0)>0){Eg(g);g=0}else g=0;break}case 14:{r=c[(h&p)>>2]|0;s=c[(r&p)>>2]|0;c[(h&p)>>2]=r+4;r=c[(h&p)>>2]|0;g=c[(r&p)>>2]|0;c[(h&p)>>2]=r+4;xg(c[((c[(s&p)+16>>2]|0)&p)+4>>2]|0,0,g,0)|0;g=0;break}case 15:{r=c[(h&p)>>2]|0;g=c[(r&p)>>2]|0;c[(h&p)>>2]=r+4;r=c[(h&p)>>2]|0;s=c[(r&p)>>2]|0;c[(h&p)>>2]=r+4;b[(g&o)+60>>1]=s;g=0;break}case 16:{s=c[(h&p)>>2]|0;e=c[(s&p)>>2]|0;c[(h&p)>>2]=s+4;if(!e)g=0;else{g=e;while(1)if(!(a[(g&n)>>0]|0))break;else g=g+1|0;g=g-e&1073741823}g=(fi(e,g)|0)!=27;g=g?124:0;break}case 24:{r=c[(h&p)>>2]|0;g=c[(r&p)>>2]|0;c[(h&p)>>2]=r+4;r=c[(h&p)>>2]|0;s=c[(r&p)>>2]|0;c[(h&p)>>2]=r+4;c[(g&p)+136>>2]=s;g=0;break}case 17:{s=c[(h&p)>>2]|0;f=c[(s&p)>>2]|0;c[(h&p)>>2]=s+4;s=c[(h&p)>>2]|0;g=c[(s&p)>>2]|0;c[(h&p)>>2]=s+4;s=c[(h&p)>>2]|0;e=c[(s&p)>>2]|0;c[(h&p)>>2]=s+4;if(f)c[(g&p)>>2]=gi(f)|0;hi(e);g=0;break}case 18:{s=c[(h&p)>>2]|0;g=c[(s&p)>>2]|0;c[(h&p)>>2]=s+4;c[2253]=g;g=0;break}case 20:{s=c[(h&p)>>2]|0;g=c[(s&p)>>2]|0;c[(h&p)>>2]=s+4;c[2192]=g;g=0;break}case 9:{s=c[(h&p)>>2]|0;g=c[(s&p)>>2]|0;c[(h&p)>>2]=s+4;c[2252]=g;if(!g)g=0;else g=lc[g&127](0)|0;break}case 10:{r=c[(h&p)>>2]|0;s=c[(r&p)>>2]|0;c[(h&p)>>2]=r+4;r=c[(h&p)>>2]|0;g=c[(r&p)>>2]|0;c[(h&p)>>2]=r+4;c[3164]=s;c[3166]=g;g=0;break}default:g=0}while(0);i=t;return g|0}function eg(b,c){b=b|0;c=c|0;var d=0,e=0,f=0,g=0;a:do if(!((b|0)==0|(c|0)==0)){d=b;while(1)if(!(a[(d&n)>>0]|0))break;else d=d+1|0;e=(d-b&1073741823)+1|0;d=a[(b+e&n)>>0]|0;if(d<<24>>24){g=b+e|0;while(1){f=_v(g,c)|0;e=g;while(1){b=e+1|0;if(!(d<<24>>24))break;d=a[(b&n)>>0]|0;e=b}b=e-g&1073741823;d=g+(b+1)|0;if(!f)break a;else e=d;while(1)if(!(a[(e&n)>>0]|0))break;else e=e+1|0;g=g+(b+2+(e-d&1073741823))|0;d=a[(g&n)>>0]|0;if(!(d<<24>>24)){d=0;break}}}else d=0}else d=0;while(0);return d|0}function fg(a,b,c){a=a|0;b=b|0;c=c|0;a=eg(a,b)|0;b=(c|0)!=0;if(a)b=(ii(a,1,b&1)|0)<<24>>24!=0;return b&1|0}function gg(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+16|0;if((i|0)>=(j|0))fa();f=g;a=eg(a,b)|0;if(!a){G=e;i=g;return d|0}else{b=(ji(a,f)|0)==0;a=f;G=b?c[(a&p)+4>>2]|0:e;i=g;return (b?c[(a&p)>>2]|0:d)|0}return 0}function hg(b,d){b=b|0;d=d|0;b=ai(b,d)|0;if(b){b=c[(c[(b&p)+4>>2]&p)>>2]|0;if(!(a[(b&n)+15>>0]|0))b=c[(b&p)+168>>2]|0;else b=10360}else b=0;return b|0}function ig(a,d){a=a|0;d=d|0;a=ai(a,d)|0;if(!a)a=-1;else a=b[((c[(a&p)+4>>2]|0)&o)+22>>1]&1;return a|0}function jg(a,b){a=a|0;b=b|0;if(b){Fk(a,c[(b&p)+28>>2]|0);mg(a,c[(b&p)>>2]|0);mg(a,c[(b&p)+4>>2]|0);Gk(a,c[(b&p)+12>>2]|0);Hk(a,c[(b&p)+16>>2]|0);mg(a,b)}return}function kg(a,d){a=a|0;d=d|0;var e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;do if(d){h=(a|0)!=0;if(!(h?(c[(a&p)+520>>2]|0)!=0:0))e=4;if((e|0)==4?(f=d+40|0,e=(b[(f&o)>>1]|0)+-1<<16>>16,b[(f&o)>>1]=e,e<<16>>16!=0):0)break;e=c[(d&p)+8>>2]|0;if(e){g=a+520|0;do{f=e;e=c[(e&p)+20>>2]|0;if(!(h?(c[(g&p)>>2]|0)!=0:0))Ik((c[(f&p)+24>>2]|0)+24|0,c[(f&p)>>2]|0,0)|0;Jk(a,f)}while((e|0)!=0)}e=c[(d&p)+16>>2]|0;if(e){j=(a|0)==0;k=d+68|0;l=a+520|0;do{if(!(!j?(c[(l&p)>>2]|0)!=0:0)){f=e+16|0;i=c[(f&p)>>2]|0;h=e+12|0;g=c[(h&p)>>2]|0;if(!i)Ik((c[(k&p)>>2]|0)+56|0,c[(((g|0)==0?e:g)&p)+8>>2]|0,g)|0;else c[(i&p)+12>>2]=g;h=c[(h&p)>>2]|0;if(h)c[(h&p)+16>>2]=c[(f&p)>>2]}Kk(a,c[(e&p)+28>>2]|0);Kk(a,c[(e&p)+32>>2]|0);f=e;e=c[(e&p)+4>>2]|0;mg(a,f)}while((e|0)!=0)}Lk(a,d);mg(a,c[(d&p)>>2]|0);mg(a,c[(d&p)+20>>2]|0);Mk(a,c[(d&p)+12>>2]|0,1);Nk(a,c[(d&p)+24>>2]|0);if(!((a|0)!=0?(c[(a&p)+520>>2]|0)!=0:0))Ok(0,d)|0;h=d+56|0;e=c[(h&p)>>2]|0;if(e){i=d+52|0;f=c[(i&p)>>2]|0;if((f|0)>0){g=0;do{if((g|0)!=1){mg(a,c[((c[(h&p)>>2]|0)+(g<<2)&p)>>2]|0);f=c[(i&p)>>2]|0}g=g+1|0}while((g|0)<(f|0));e=c[(h&p)>>2]|0}mg(a,e)}mg(a,d)}while(0);return}function lg(a,d){a=a|0;d=d|0;var f=0,g=0,h=0;ch(c[(d&p)+60>>2]|0,b[(d&o)+68>>1]|0);h=d+16|0;ch(c[(h&p)>>2]|0,e[(d&o)+84>>1]<<1);f=c[(d&p)+192>>2]|0;if(f)do{g=f;f=c[(f&p)+24>>2]|0;Pk(a,c[(g&p)>>2]|0,c[(g&p)+4>>2]|0);mg(a,g)}while((f|0)!=0);f=b[(d&o)+70>>1]|0;if(f<<16>>16>0){g=d+64|0;f=f<<16>>16;do{f=f+-1|0;mg(a,c[((c[(g&p)>>2]|0)+(f<<2)&p)>>2]|0)}while((f|0)>0)}Pk(a,c[(d&p)+4>>2]|0,c[(d&p)+32>>2]|0);mg(a,c[(h&p)>>2]|0);mg(a,c[(d&p)+168>>2]|0);mg(a,c[(d&p)+172>>2]|0);return}function mg(a,b){a=a|0;b=b|0;var d=0;do if(b){if(a){if(c[(a&p)+520>>2]|0){Qk(a,b);break}if((c[(a&p)+276>>2]|0)>>>0<=b>>>0?(c[(a&p)+280>>2]|0)>>>0>b>>>0:0){d=a+272|0;c[(b&p)>>2]=c[(d&p)>>2];c[(d&p)>>2]=b;a=a+252|0;c[(a&p)>>2]=(c[(a&p)>>2]|0)+-1;break}}Wc(b)}while(0);return}function ng(b,e){b=b|0;e=e|0;var f=0,g=0,h=0;h=c[(e&p)+24>>2]|0;if(!h)f=0;else{f=h;while(1)if(!(a[(f&n)>>0]|0))break;else f=f+1|0;f=f-h&1073741823}g=(((d[((d[(h&n)>>0]|0)&n)+9328>>0]|0)+f|0)>>>0)%23|0;f=Rk(b,g,h,f)|0;if(!f){c[(e&p)+8>>2]=0;f=b+(g<<2)|0;c[(e&p)+28>>2]=c[(f&p)>>2];c[(f&p)>>2]=e}else{f=f+8|0;c[(e&p)+8>>2]=c[(f&p)>>2];c[(f&p)>>2]=e}return}function og(a){a=a|0;var b=0,d=0;do if(a){b=c[2254]|0;if((b|0)==(a|0)){c[2254]=c[(a&p)+12>>2];break}if(b){do{d=b+12|0;b=c[(d&p)>>2]|0}while((b|0)!=(a|0)&(b|0)!=0);if((b|0)==(a|0))c[(d&p)>>2]=c[(a&p)+12>>2]}}while(0);return}function pg(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return}function qg(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;b=jw(a|0,b|0,-1,-1)|0;d=G;do if(!(d>>>0>0|(d|0)==0&b>>>0>2147483390)){if(!(c[2186]|0)){b=lc[c[8780>>2]&127](a)|0;break}d=lc[c[8796>>2]&127](a)|0;c[2171]=a;if((c[2181]|0)>>>0>>0)c[2181]=a;a=c[2260]|0;do if(a){b=c[2166]|0;e=9032|0;e=dw(c[(e&p)>>2]|0,c[(e&p)+4>>2]|0,d|0,((d|0)<0)<<31>>31|0)|0;f=G;if(0<(f|0)|0==(f|0)&b>>>0>>0){c[2265]=0;break}else{c[2265]=1;e=c[2261]|0;c[2260]=0;qc[a&15](e,b,0,d);c[2260]=a;c[2261]=e;break}}while(0);b=lc[c[8780>>2]&127](d)|0;if(b){a=lc[c[8792>>2]&127](b)|0;a=(c[2166]|0)+a|0;c[2166]=a;if(a>>>0>(c[2176]|0)>>>0)c[2176]=a;a=(c[2175]|0)+1|0;c[2175]=a;if(a>>>0>(c[2185]|0)>>>0)c[2185]=a}else b=0}else b=0;while(0);return b|0}function rg(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,i=0,j=0;do if(a){if((b|0)==0&(d|0)==0){Wc(a);e=0;break}if(!(d>>>0>0|(d|0)==0&b>>>0>2147483391)){h=lc[c[8792>>2]&127](a)|0;g=lc[c[8796>>2]&127](b)|0;if((g|0)!=(h|0)){if(!(c[2186]|0)){e=rc[c[8788>>2]&127](a,g)|0;break}c[2171]=b;if((c[2181]|0)>>>0>>0)c[2181]=b;d=g-h|0;e=c[2166]|0;i=9032|0;i=dw(c[(i&p)>>2]|0,c[(i&p)+4>>2]|0,d|0,((d|0)<0)<<31>>31|0)|0;j=G;if(!(0<(j|0)|0==(j|0)&e>>>0>>0)?(f=c[2260]|0,(f|0)!=0):0){i=c[2261]|0;c[2260]=0;qc[f&15](i,e,0,d);c[2260]=f;c[2261]=i}e=rc[c[8788>>2]&127](a,g)|0;d=c[2260]|0;if((e|0)==0&(d|0)!=0){f=c[2166]|0;e=c[2261]|0;c[2260]=0;qc[d&15](e,f,0,b);c[2260]=d;c[2261]=e;e=rc[c[8788>>2]&127](a,g)|0}if(e){d=(lc[c[8792>>2]&127](e)|0)-h|0;d=(c[2166]|0)+d|0;c[2166]=d;if(d>>>0>(c[2176]|0)>>>0)c[2176]=d}else e=0}else e=a}else e=0}else e=qg(b,d)|0;while(0);return e|0}function sg(b,e,f,g){b=b|0;e=e|0;f=f|0;g=g|0;var l=0,m=0,o=0,r=0,s=0,t=0.0,u=0.0,v=0,w=0.0,x=0.0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=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;$=i;i=i+96|0;if((i|0)>=(j|0))fa();Z=$+8|0;_=$;Y=$+16|0;if(!e){l=0;m=0;T=0}else{l=e&2;if(!l)m=0;else{J=c[(g&p)>>2]|0;m=c[(J&p)>>2]|0;c[(g&p)>>2]=J+4}l=l&255;T=(e&1|0)!=0}S=l<<24>>24==0;P=l<<24>>24!=0;Q=m+4|0;R=m+8|0;O=b+12|0;l=0;a:while(1){e=a[(f&n)>>0]|0;if(e<<24>>24==37){e=f;f=l}else if(e<<24>>24){e=f;do{e=e+1|0;J=a[(e&n)>>0]|0}while(!(J<<24>>24==37|J<<24>>24==0));Sk(b,f,e-f|0);if(!(a[(e&n)>>0]|0))break}else break;l=e+1|0;o=a[(l&n)>>0]|0;if(!(o<<24>>24)){U=10;break}r=o<<24>>24;v=0;s=0;y=0;o=0;A=0;B=0;b:while(1){switch(r|0){case 43:{z=s;A=1;break}case 32:{z=s;y=1;break}case 35:{v=1;z=s;break}case 33:{z=1;break}case 48:{z=s;B=1;break}case 45:{z=s;o=1;break}default:{C=v;z=s;break b}}s=e+2|0;J=a[(s&n)>>0]|0;r=J<<24>>24;if(!(J<<24>>24)){l=s;C=v;break}else{e=l;l=s;s=z}}if((r|0)!=42)if((r+-48|0)>>>0<10){s=0;do{s=r+-48+(s*10|0)|0;l=l+1|0;r=a[(l&n)>>0]|0}while((r+-48|0)>>>0<10);N=o;M=s&2147483647}else{N=o;M=0}else{if(S){J=c[(g&p)>>2]|0;s=c[(J&p)>>2]|0;c[(g&p)>>2]=J+4}else s=Tk(m)|0;if((s|0)<0){o=1;s=(s|0)==-2147483648?0:0-s|0}r=l+1|0;l=r;r=a[(r&n)>>0]|0;N=o;M=s}do if((r|0)==46){s=l+1|0;o=a[(s&n)>>0]|0;if(o<<24>>24!=42){r=o<<24>>24;if((o+-48&255)<10)o=0;else{l=s;F=0;break}while(1){o=r+-48+(o*10|0)|0;l=l+2|0;J=a[(l&n)>>0]|0;r=J<<24>>24;if((J+-48&255)<10){J=s;s=l;l=J}else break}F=o&2147483647;break}if(S){J=c[(g&p)>>2]|0;s=c[(J&p)>>2]|0;c[(g&p)>>2]=J+4}else s=Tk(m)|0;l=l+2|0;r=a[(l&n)>>0]|0;if((s|0)<0)F=(s|0)==-2147483648?-1:0-s|0;else F=s}else F=-1;while(0);do if((r|0)==108){s=l+1|0;r=a[(s&n)>>0]|0;if(r<<24>>24==108){r=l+2|0;l=r;r=a[(r&n)>>0]|0;s=1;break}else{l=s;r=r<<24>>24;s=0;break}}else s=0;while(0);v=0;while(1){o=48752+(v*6|0)|0;if((r|0)==(a[(o&n)>>0]|0)){r=o;o=v;U=46;break}v=v+1|0;if((v|0)>=23){L=48752;J=0;break}}if((U|0)==46){U=0;if(!(T|o>>>0<20))break;L=r;J=a[((o*6|0)&n)+48755>>0]|0}c:do switch(J&255|0){case 13:{s=c[(g&p)>>2]|0;e=c[(s&p)>>2]|0;c[(g&p)>>2]=s+4;s=c[(g&p)>>2]|0;r=c[(s&p)>>2]|0;c[(g&p)>>2]=s+4;s=c[(e+(r*72|0)&p)+12>>2]|0;if(s){o=s;while(1)if(!(a[(o&n)>>0]|0))break;else o=o+1|0;Sk(b,s,o-s&1073741823);Sk(b,28928,1)}o=c[(e+(r*72|0)&p)+16>>2]|0;if(!o)e=0;else{e=o;while(1)if(!(a[(e&n)>>0]|0))break;else e=e+1|0;e=e-o&1073741823}Sk(b,o,e);y=f;r=0;e=0;s=0;break}case 14:{s=0;U=50;break}case 1:case 16:{U=50;break}case 4:case 3:case 2:{do if(!S){s=c[(Q&p)>>2]|0;if((c[(m&p)>>2]|0)>(s|0)){c[(Q&p)>>2]=s+1;t=+Ug(c[((c[(R&p)>>2]|0)+(s<<2)&p)>>2]|0);U=92;break}else{s=(F|0)<0?6:F;t=0.0;U=94;break}}else{U=c[(g&p)>>2]|0;c[(k&p)>>2]=c[(U&p)>>2];c[(k&p)+4>>2]=c[(U&p)+4>>2];t=+h[(k&q)>>3];c[(g&p)>>2]=U+8;U=92}while(0);if((U|0)==92){U=0;s=(F|0)<0?6:F;if(t<0.0){t=-t;K=45}else U=94}if((U|0)==94){U=0;if(!(A<<24>>24))K=y<<24>>24==0?0:32;else K=43}F=J<<24>>24==4;o=((F&(s|0)>0)<<31>>31)+s|0;s=o&4095;if(!s)u=.5;else{u=.5;do{s=s+-1|0;u=u*.1}while((s|0)>0)}E=J<<24>>24==2;if(E)t=t+u;h[(Z&q)>>3]=t;h[(_&q)>>3]=+h[(Z&q)>>3];if(+h[(Z&q)>>3]!=+h[(_&q)>>3]){y=48960;r=3;e=M;s=0}else{if(t>0.0){v=0;w=1.0;while(1){x=w*1.e+100;if(t>=x&(v|0)<351){v=v+100|0;w=x}else break}while(1){x=w*1.e+64;if(t>=x&(v|0)<351){v=v+64|0;w=x}else break}while(1){x=w*1.0e8;if(t>=x&(v|0)<351){v=v+8|0;w=x}else break}while(1){x=w*10.0;if((v|0)<351&t>=x){v=v+1|0;w=x}else break}t=t/w;if(t<1.0e-08)do{t=t*1.0e8;v=v+-8|0}while(t<1.0e-08);if(t<1.0)do{t=t*10.0;v=v+-1|0}while(t<1.0);if((v|0)>350){if(K<<24>>24==43)o=48976;else if(K<<24>>24==45)o=48968;else o=48984;f=o;while(1)if(!(a[(f&n)>>0]|0))break;else f=f+1|0;y=o;r=f-o&1073741823;e=M;s=0;break c}}else v=0;if(!E){t=u+t;if(!(t>=10.0))I=v;else{t=t*.1;I=v+1|0}}else I=v;if(F){s=(I|0)<-4|(o|0)<(I|0);F=C<<24>>24==0&1;o=o-(s?0:I)|0;s=s?3:2}else{F=z;s=J}H=s<<24>>24==3;f=H?0:I;v=(f|0)>0;s=jw(o|0,((o|0)<0)<<31>>31|0,M|0,((M|0)<0)<<31>>31|0)|0;v=jw(s|0,G|0,(v?f:0)|0,(v?((f|0)<0)<<31>>31:0)|0)|0;s=G;if((s|0)>0|(s|0)==0&v>>>0>55){v=jw(v|0,s|0,15,0)|0;v=qg(v,G)|0;if(!v){U=124;break a}else{y=v;J=v}}else{y=Y;J=0}v=((z&255)*10|0)+16|0;D=(z|C)&255|(o|0)>0;if(!(K<<24>>24))E=y;else{a[(y&n)>>0]=K;E=y+1|0}if((f|0)<0){a[(E&n)>>0]=48;e=2;s=E+1|0;A=f}else{C=~f;C=(C|0)>-1?C:-1;A=-2-C|0;C=f+C|0;r=E;while(1){if((v|0)<1)e=48;else{s=~~t;e=s+48&255;t=(t-+(s|0))*10.0;v=v+-1|0}a[(r&n)>>0]=e;if((f|0)>0){r=r+1|0;f=f+-1|0}else break}e=C+3|0;s=E+(C+2)|0}r=(D|0)==0;if(!r){a[(s&n)>>0]=46;s=E+e|0}if((A+1|0)<0){fw(s|0,48,~A|0)|0;s=s+~A|0;o=o+1+A|0}if((o|0)>0){e=s;f=o;while(1){f=f+-1|0;if((v|0)<1)A=48;else{E=~~t;A=E+48&255;t=(t-+(E|0))*10.0;v=v+-1|0}a[(e&n)>>0]=A;if((f|0)<=0)break;else e=e+1|0}s=s+o|0}d:do if(!(F<<24>>24==0|r)){while(1){r=s+-1|0;o=a[(r&n)>>0]|0;if(o<<24>>24==46)break;else if(o<<24>>24!=48)break d;a[(r&n)>>0]=0;s=r}if(!(z<<24>>24)){a[(r&n)>>0]=0;s=r;break}else{a[(s&n)>>0]=48;s=s+1|0;break}}while(0);if(H){r=s+1|0;a[(s&n)>>0]=a[((d[(L&n)+4>>0]|0)&n)+48912>>0]|0;o=s+2|0;if((I|0)<0){a[(r&n)>>0]=45;r=0-I|0}else{a[(r&n)>>0]=43;r=I}if((r|0)>99){a[(o&n)>>0]=((r|0)/100|0)+48;f=4;e=5;o=s+3|0;r=(r|0)%100|0}else{f=3;e=4}a[(o&n)>>0]=((r|0)/10|0)+48;a[(s+f&n)>>0]=((r|0)%10|0)+48;s=s+e|0}a[(s&n)>>0]=0;e=y;r=s-e|0;if(!(N<<24>>24==0&B<<24>>24!=0&(M|0)>(r|0))){e=M;s=J;break c}o=M-r|0;if((r|0)>=0){f=M;while(1){a[(y+f&n)>>0]=a[(y+(f-o)&n)>>0]|0;if((f|0)>(o|0))f=f+-1|0;else break}}if((M|0)==(r|0)){r=M;e=M;s=J;break c}fw(y+(K<<24>>24!=0&1)|0,48,M+e-s|0)|0;r=M;e=M;s=J}break}case 5:{if(S){r=c[(O&p)>>2]|0;e=c[(g&p)>>2]|0;y=c[(e&p)>>2]|0;c[(g&p)>>2]=e+4;c[(y&p)>>2]=r;y=f;r=0;e=0;s=0}else{y=f;r=0;e=0;s=0}break}case 8:{a[(Y&n)>>0]=37;y=Y;r=1;e=M;s=0;break}case 9:{if(!S){e=Uk(m)|0;if(!e)s=0;else s=a[(e&n)>>0]|0}else{J=c[(g&p)>>2]|0;s=c[(J&p)>>2]|0;c[(g&p)>>2]=J+4}if((F|0)>1){o=F+-1|0;e=M-o|0;if(!((e|0)<2|N<<24>>24!=0)){Vk(b,e+-1|0,32);e=0}f=s&255;Vk(b,o,f)}else{f=s&255;e=M}a[(Y&n)>>0]=f;y=Y;r=1;s=0;break}case 7:case 6:{if(P)o=Uk(m)|0;else{I=c[(g&p)>>2]|0;o=c[(I&p)>>2]|0;c[(g&p)>>2]=I+4}if(!o){f=10360;s=0}else{f=o;s=J<<24>>24!=7|P?0:o}if((F|0)>-1){if((F|0)>0)o=0;else{y=f;r=0;e=M;break c}while(1){r=o+1|0;if(!(a[(f+o&n)>>0]|0)){y=f;r=o;e=M;break c}if((r|0)<(F|0))o=r;else{y=f;e=M;break}}}else{if(!f){y=0;r=0;e=M;break c}else o=f;while(1)if(!(a[(o&n)>>0]|0))break;else o=o+1|0;y=f;r=o-f&1073741823;e=M;break c}break}case 15:case 11:case 10:{C=J<<24>>24==15?34:39;if(S){I=c[(g&p)>>2]|0;s=c[(I&p)>>2]|0;c[(g&p)>>2]=I+4}else s=Uk(m)|0;y=(s|0)==0;if(y)s=J<<24>>24==11?20304:48992;e:do if(!F){B=0;r=0}else{v=C&255;o=0;e=F;r=0;while(1){f=a[(s+o&n)>>0]|0;if(!(f<<24>>24)){B=o;break e}r=((f<<24>>24|0)==(v|0)&1)+r|0;o=o+1|0;e=e+-1|0;if(!e){B=o;break}}}while(0);z=J<<24>>24==11&(y^1);o=((z&1)<<1|1)+B+r|0;if((o|0)>70){r=qg(o,((o|0)<0)<<31>>31)|0;if(!r){U=197;break a}else{y=r;A=r}}else{y=Y;A=0}if(z){a[(y&n)>>0]=C;o=1}else o=0;if((B|0)>0){v=C&255;e=0;do{r=a[(s+e&n)>>0]|0;f=o+1|0;a[(y+o&n)>>0]=r;if((r<<24>>24|0)==(v|0)){a[(y+f&n)>>0]=r;o=o+2|0}else o=f;e=e+1|0}while((e|0)!=(B|0))}if(z){a[(y+o&n)>>0]=C;o=o+1|0}a[(y+o&n)>>0]=0;r=o;e=M;s=A;break}case 12:{J=c[(g&p)>>2]|0;e=c[(J&p)>>2]|0;c[(g&p)>>2]=J+4;if((e|0)!=0?(X=c[(e&p)+4>>2]|0,(X|0)!=0):0){Sk(b,c[(e&p)>>2]|0,X);y=f;r=0;e=0;s=0}else{y=f;r=0;e=0;s=0}break}default:break a}while(0);if((U|0)==50){U=0;do if(!(a[(L&n)+2>>0]&1)){if(P){f=Tk(m)|0;v=G;E=0;break}if(!(s<<24>>24)){v=c[(g&p)>>2]|0;f=c[(v&p)>>2]|0;c[(g&p)>>2]=v+4;v=0;E=0;break}else{E=c[(g&p)>>2]|0;v=E;f=c[(v&p)>>2]|0;v=c[(v&p)+4>>2]|0;c[(g&p)>>2]=E+8;E=0;break}}else{do if(!P)if(!(s<<24>>24)){r=c[(g&p)>>2]|0;s=c[(r&p)>>2]|0;c[(g&p)>>2]=r+4;r=((s|0)<0)<<31>>31;break}else{I=c[(g&p)>>2]|0;r=I;s=c[(r&p)>>2]|0;r=c[(r&p)+4>>2]|0;c[(g&p)>>2]=I+8;break}else{s=Tk(m)|0;r=G}while(0);if((r|0)<0){f=dw(0,0,s|0,r|0)|0;v=G;E=45;break}if(!(A<<24>>24)){f=s;v=r;E=y<<24>>24==0?0:32}else{f=s;v=r;E=43}}while(0);D=(f|0)==0&(v|0)==0;if(!(B<<24>>24))A=F;else{A=M-(E<<24>>24!=0&1)|0;A=(F|0)<(A|0)?A:F}if((A|0)>=60){s=A+10|0;r=qg(s,((s|0)<0)<<31>>31)|0;if(!r){U=69;break}else{e=s;s=r;o=r}}else{e=70;s=0;o=Y}B=o+(e+-1)|0;if(J<<24>>24==16){r=uw(f|0,v|0,10,0)|0;if(!(r>>>0<=3?(J=tw(f|0,v|0,10,0)|0,J=uw(J|0,G|0,10,0)|0,!((J|0)==1&(G|0)==0)):0))r=0;J=r<<1;a[(o+e+-2&n)>>0]=a[((J|1)&n)+48896>>0]|0;r=o+(e+-3)|0;a[(r&n)>>0]=a[(J&n)+48896>>0]|0}else r=B;e=d[(L&n)+4>>0]|0;y=d[(L&n)+1>>0]|0;while(1){J=uw(f|0,v|0,y|0,0)|0;o=r+-1|0;a[(o&n)>>0]=a[(J+e&n)+48912>>0]|0;f=tw(f|0,v|0,y|0,0)|0;v=G;if((f|0)==0&(v|0)==0)break;else r=o}f=A-B+o|0;if((f|0)>0){e=r;r=o;while(1){o=e+-2|0;a[(o&n)>>0]=48;f=f+-1|0;if((f|0)<=0)break;else{e=r;r=o}}}if(E<<24>>24){o=r+-2|0;a[(o&n)>>0]=E}if((!(D|C<<24>>24==0)?(V=a[(L&n)+5>>0]|0,V<<24>>24!=0):0)?(W=48952+(V&255)|0,!(V<<24>>24==3|V<<24>>24==6)):0){f=a[(W&n)>>0]|0;r=W;do{o=o+-1|0;a[(o&n)>>0]=f;r=r+1|0;f=a[(r&n)>>0]|0}while(f<<24>>24!=0)}y=o;r=B-o|0;e=M}o=e-r|0;f=(o|0)<1;if(!(f|N<<24>>24!=0))Vk(b,o,32);Sk(b,y,r);if(!(f|N<<24>>24==0))Vk(b,o,32);if(s)Wc(s);f=l+1|0;l=y}if((U|0)==10)Sk(b,48744,1);else if((U|0)==69){a[(b&n)+25>>0]=1;c[(b&p)+16>>2]=0}else if((U|0)==124){a[(b&n)+25>>0]=1;c[(b&p)+16>>2]=0}else if((U|0)==197){a[(b&n)+25>>0]=1;c[(b&p)+16>>2]=0}i=$;return}function tg(b){b=b|0;var d=0,e=0,f=0,g=0,h=0;f=b+8|0;d=c[(f&p)>>2]|0;do if(((d|0)!=0?(h=b+12|0,a[(d+(c[(h&p)>>2]|0)&n)>>0]=0,e=a[(b&n)+24>>0]|0,e<<24>>24!=0):0)?(g=b+4|0,(c[(f&p)>>2]|0)==(c[(g&p)>>2]|0)):0){if(e<<24>>24==1){d=(c[(h&p)>>2]|0)+1|0;d=mh(c[(b&p)>>2]|0,d,((d|0)<0)<<31>>31)|0}else d=Tc((c[(h&p)>>2]|0)+1|0)|0;c[(f&p)>>2]=d;if(!d){a[(b&n)+25>>0]=1;c[(b&p)+16>>2]=0;break}else{kw(d|0,c[(g&p)>>2]|0,(c[(h&p)>>2]|0)+1|0)|0;break}}while(0);return c[(f&p)>>2]|0}function ug(d,e,f,g){d=d|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,q=0;q=i;i=i+16|0;if((i|0)>=(j|0))fa();m=q;h=d+52|0;c[(h&p)>>2]=e;a:do if(!f){c[(h&p)>>2]=e;e=c[(d&p)+236>>2]|0;if(e){h=e+8|0;if(!(b[(h&o)>>1]&9312)){b[(h&o)>>1]=1;break}else{vg(e);break}}}else{l=d+236|0;do if(!(c[(l&p)>>2]|0)){h=mh(d,40,0)|0;if(!h){c[(l&p)>>2]=h;break a}else{e=h+0|0;k=e+40|0;do{a[(e&n)>>0]=0;e=e+1|0}while((e|0)<(k|0));b[(h&o)+8>>1]=1;c[(h&p)+32>>2]=d;c[(l&p)>>2]=h;break}}while(0);c[(m&p)>>2]=g;h=Wk(d,f,m)|0;e=c[(l&p)>>2]|0;if(e)Xg(e,h,-1,1,75)|0}while(0);i=q;return}function vg(a){a=a|0;var d=0,e=0;e=a+8|0;d=b[(e&o)>>1]|0;if(d&8192){Yk(a,c[(a&p)>>2]|0)|0;d=b[(e&o)>>1]|0}d=d&65535;do if(!(d&1024)){if(d&32){Zk(c[(a&p)>>2]|0);break}if(d&64){a=c[(a&p)>>2]|0;d=(c[(a&p)>>2]|0)+180|0;c[(a&p)+4>>2]=c[(d&p)>>2];c[(d&p)>>2]=a}}else cc[c[(a&p)+36>>2]&31](c[(a&p)+16>>2]|0);while(0);b[(e&o)>>1]=1;return}function wg(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0;k=i;i=i+16|0;if((i|0)>=(j|0))fa();g=k;e=Vh(b,d)|0;do if((e|0)==1){f=mh(a,536,0)|0;if(!f){ug(a,7,15776,g);e=0;break}fw(f|0,0,536)|0;c[(f&p)>>2]=b;if(!(_k(f)|0)){mg(a,c[(f&p)+4>>2]|0);Ch(f);mg(a,f);h=7;break}else{b=c[(f&p)+12>>2]|0;e=f+4|0;c[(g&p)>>2]=c[(e&p)>>2];ug(a,b,10344,g);mg(a,c[(e&p)>>2]|0);Ch(f);mg(a,f);e=0;break}}else h=7;while(0);do if((h|0)==7)if((e|0)<0){c[(g&p)>>2]=d;ug(a,1,47448,g);e=0;break}else{e=c[((c[(b&p)+16>>2]|0)+(e<<4)&p)+4>>2]|0;break}while(0);i=k;return e|0}function xg(a,d,f,g){a=a|0;d=d|0;f=f|0;g=g|0;var h=0,i=0,j=0,k=0;k=c[(a&p)+4>>2]|0;c[(k&p)+4>>2]=c[(a&p)>>2];j=k+22|0;if(!(b[(j&o)>>1]&2)){if((f|0)<0)f=(c[(k&p)+32>>2]|0)-(c[(k&p)+36>>2]|0)|0;if(((d+-512|0)>>>0<65025?(d+-1&d|0)==0:0)?(c[(k&p)+32>>2]=d,h=k+80|0,i=c[(h&p)>>2]|0,(i|0)!=0):0){a=i+-4|0;c[(h&p)>>2]=a;$k(a);c[(h&p)>>2]=0}h=k+32|0;a=al(c[(k&p)>>2]|0,h,f)|0;c[(k&p)+36>>2]=(c[(h&p)>>2]|0)-(f&65535);if(g)b[(j&o)>>1]=e[(j&o)>>1]|0|2}else a=8;return a|0}function yg(f,g){f=f|0;g=g|0;var h=0,k=0,l=0,m=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;T=i;i=i+16|0;if((i|0)>=(j|0))fa();N=T;M=T+12|0;L=T+8|0;R=c[(f&p)+4>>2]|0;I=R+4|0;c[(I&p)>>2]=c[(f&p)>>2];O=f+8|0;l=a[(O&n)>>0]|0;do if(l<<24>>24!=2?(P=(g|0)!=0,l<<24>>24!=1|P):0){Q=R+22|0;l=b[(Q&o)>>1]|0;if(!((l&1)!=0&P)){if(P)if((a[(R&n)+20>>0]|0)!=2&(l&64)==0)S=8;else S=7;else if(!(l&64))S=8;else S=7;a:do if((S|0)==7){h=c[(R&p)+76>>2]|0;S=12}else if(((S|0)==8?(g|0)>1:0)?(k=c[(R&p)+72>>2]|0,(k|0)!=0):0)do{l=c[(k&p)>>2]|0;if((l|0)!=(f|0)){h=l;S=12;break a}k=c[(k&p)+12>>2]|0}while((k|0)!=0);while(0);if((S|0)==12?(c[(h&p)>>2]|0)!=0:0){h=262;break}h=bl(f,1,1)|0;if(!h){l=e[(Q&o)>>1]|0;b[(Q&o)>>1]=l&65527;K=R+44|0;if(!(c[(K&p)>>2]|0))b[(Q&o)>>1]=l|8;E=R+12|0;u=R+32|0;v=R+36|0;w=R+17|0;x=R+18|0;y=R+80|0;z=R+24|0;A=R+26|0;B=R+28|0;C=R+30|0;D=R+21|0;F=R+20|0;G=(g|0)>1;h=0;b:while(1){c:do if(!(c[(E&p)>>2]|0)){h=cl(c[(R&p)>>2]|0)|0;if(!h){h=dl(R,1,M,0)|0;if(!h){t=c[(M&p)>>2]|0;q=c[(t&p)+56>>2]|0;l=d[(q&n)+29>>0]<<16|d[(q&n)+28>>0]<<24|d[(q&n)+30>>0]<<8|d[(q&n)+31>>0];m=c[(R&p)>>2]|0;r=c[(m&p)+24>>2]|0;if((l|0)!=0?(Zv(q+24|0,q+92|0,4)|0)==0:0)s=l;else s=r;d:do if((s|0)>0){e:do if(!(Zv(q,44680,16)|0)){if((d[(q&n)+18>>0]|0)>2)b[(Q&o)>>1]=e[(Q&o)>>1]|1;l=a[(q&n)+19>>0]|0;if((l&255)<=2){do if(l<<24>>24==2){if(b[(Q&o)>>1]&16)break;c[(L&p)>>2]=0;h=el(m,L)|0;if(h){S=48;break e}if(c[(L&p)>>2]|0)break;if(!t){h=0;continue b}Bg(c[(t&p)+68>>2]|0);h=0;continue b}while(0);if(Zv(q+21|0,47408,3)|0){h=26;S=48;break}k=d[(q&n)+17>>0]<<16|d[(q&n)+16>>0]<<8;if((k+16777215&k|0)!=0|k>>>0>65536|k>>>0<257){h=26;S=48;break}m=d[(q&n)+20>>0]|0;l=k-m|0;if((k|0)==(c[(u&p)>>2]|0)){if((s|0)>(r|0)?(c[((c[(I&p)>>2]|0)&p)+24>>2]&65536|0)==0:0){c[(N&p)>>2]=55672;c[(N&p)+4>>2]=10788;bd(11,13600,N);h=11;S=48;break}if(l>>>0<480){h=26;S=48;break}c[(u&p)>>2]=k;c[(v&p)>>2]=l;a[(w&n)>>0]=(d[(q&n)+53>>0]<<16|d[(q&n)+52>>0]<<24|d[(q&n)+54>>0]<<8|d[(q&n)+55>>0]|0)!=0&1;a[(x&n)>>0]=(d[(q&n)+65>>0]<<16|d[(q&n)+64>>0]<<24|d[(q&n)+66>>0]<<8|d[(q&n)+67>>0]|0)!=0&1;break d}if(t)Bg(c[(t&p)+68>>2]|0);c[(v&p)>>2]=l;c[(u&p)>>2]=k;l=c[(y&p)>>2]|0;if(l){h=l+-4|0;c[(y&p)>>2]=h;$k(h);c[(y&p)>>2]=0}h=al(c[(R&p)>>2]|0,u,m)|0}else{h=26;S=48}}else{h=26;S=48}while(0);if((S|0)==48){S=0;if(t)Bg(c[(t&p)+68>>2]|0);c[(E&p)>>2]=0}if(!h){h=0;continue b}else{S=77;break c}}else l=c[(v&p)>>2]|0;while(0);h=((((l<<6)+-768|0)>>>0)/255|0)+65513|0;k=h&65535;b[(z&o)>>1]=k;m=((((l<<5)+-384|0)>>>0)/255|0)+65513&65535;b[(A&o)>>1]=m;b[(B&o)>>1]=l+65501;b[(C&o)>>1]=m;a[(D&n)>>0]=(k&65535)>127?127:h&255;c[(E&p)>>2]=t;c[(K&p)>>2]=s;h=0;continue b}else l=0}else l=0}else{f:do if((h|0)==0&P){if(b[(Q&o)>>1]&1){h=8;S=77;break c}s=c[(R&p)>>2]|0;h=c[(s&p)+40>>2]|0;g:do if(!h){a[(s&n)+21>>0]=(a[((c[(f&p)>>2]|0)&n)+64>>0]|0)==2&1;t=s+16|0;if((a[(t&n)>>0]|0)==1){m=s+208|0;l=c[(m&p)>>2]|0;do if(!l){h=fl(s,2)|0;h:do if((h|0)==0&G){l=s+176|0;k=s+180|0;while(1){h=fl(s,4)|0;if((h|0)!=5)break h;if(!(lc[c[(l&p)>>2]&127](c[(k&p)>>2]|0)|0)){h=5;break g}}}while(0);if(h)break g}else{do if(a[(s&n)+4>>0]|0){if(a[(l&n)+43>>0]|0)break;h=fl(s,4)|0;if(h)break g;l=c[(m&p)>>2]|0;k=l+43|0;if(!(a[(k&n)>>0]|0)){h=c[(l&p)+4>>2]|0;pc[c[((c[(h&p)>>2]|0)&p)+56>>2]&31](h,(b[(l&o)+40>>1]|0)+3|0,1,5)|0;l=c[(m&p)>>2]|0}a[(k&n)>>0]=1}while(0);if(a[(l&n)+46>>0]|0){h=8;break g}k=l+43|0;if((a[(k&n)>>0]|0)==0?(H=c[(l&p)+4>>2]|0,H=pc[c[((c[(H&p)>>2]|0)&p)+56>>2]&31](H,0,1,10)|0,(H|0)!=0):0){h=H;break g}h=l+44|0;a[(h&n)>>0]=1;if(!(Zv(l+52|0,c[(c[(l&p)+32>>2]&p)>>2]|0,48)|0))break;if(!(a[(k&n)>>0]|0)){k=c[(l&p)+4>>2]|0;pc[c[((c[(k&p)>>2]|0)&p)+56>>2]&31](k,0,1,9)|0}a[(h&n)>>0]=0;h=517;break g}while(0);a[(t&n)>>0]=2;h=c[(s&p)+24>>2]|0;c[(s&p)+36>>2]=h;c[(s&p)+32>>2]=h;c[(s&p)+28>>2]=h;h=s+72|0;c[(h&p)>>2]=0;c[(h&p)+4>>2]=0}h=Cg(R)|0;break f}while(0);l=(h|0)==0;break c}while(0);if(!h){h=0;break b}else l=0}while(0);if((S|0)==77){S=0;l=(h|0)==0}if((a[(F&n)>>0]|0)==0?(J=c[(E&p)>>2]|0,(J|0)!=0):0){c[(E&p)>>2]=0;Bg(c[(J&p)+68>>2]|0)}if((h&255|0)!=5){S=86;break}if(a[(F&n)>>0]|0){S=86;break}if(!(gl(R)|0)){S=86;break}}if((S|0)==86)if(!l){S=96;break}if((a[(O&n)>>0]|0)==0?(H=R+40|0,c[(H&p)>>2]=(c[(H&p)>>2]|0)+1,(a[(f&n)+9>>0]|0)!=0):0){a[(f&n)+40>>0]=1;H=R+72|0;c[(f&p)+44>>2]=c[(H&p)>>2];c[(H&p)>>2]=f+32}l=P?2:1;a[(O&n)>>0]=l;if((l&255)>(d[(F&n)>>0]|0))a[(F&n)>>0]=l;if(P){l=c[(E&p)>>2]|0;c[(R&p)+76>>2]=f;k=e[(Q&o)>>1]|0;b[(Q&o)>>1]=G?k|32:k&65503;k=l+56|0;H=c[(k&p)>>2]|0;if((c[(K&p)>>2]|0)!=(d[(H&n)+29>>0]<<16|d[(H&n)+28>>0]<<24|d[(H&n)+30>>0]<<8|d[(H&n)+31>>0]|0)){h=Gg(c[(l&p)+68>>2]|0)|0;if(!h){h=c[(k&p)>>2]|0;S=c[(K&p)>>2]|0;a[(h&n)+28>>0]=S>>>24;a[(h&n)+29>>0]=S>>>16;a[(h&n)+30>>0]=S>>>8;a[(h&n)+31>>0]=S;h=0;S=96}}else S=96}}}else h=8}else{h=0;S=96}while(0);if((S|0)==96)if((h|0)==0&(g|0)!=0)h=hl(c[(R&p)>>2]|0,c[((c[(f&p)>>2]|0)&p)+496>>2]|0)|0;i=T;return h|0}function zg(e,f,g,h){e=e|0;f=f|0;g=g|0;h=h|0;var k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0;y=i;i=i+16|0;if((i|0)>=(j|0))fa();u=y;w=y+8|0;c[(w&p)>>2]=0;t=h&1;a:do if(!f){c[(u&p)>>2]=46865;c[(u&p)+4>>2]=10788;bd(11,13600,u);k=11}else{a[(e&n)+23>>0]=1;h=c[(e&p)+40>>2]|0;do if(!h){s=e+204|0;h=c[(s&p)>>2]|0;h=ac[c[8876>>2]&63](c[(h&p)+40>>2]|0,f,d[(h&n)+29>>0]&3)|0;if(!h){m=c[(s&p)>>2]|0;if((a[(m&n)+29>>0]|0)!=2){l=m+8|0;h=c[(l&p)>>2]|0;b:do if(!h)x=11;else{while(1){if((b[(h&o)+26>>1]|0)==0?(b[(h&o)+24>>1]&4)==0:0)break;h=c[(h&p)+36>>2]|0;if(!h){x=11;break b}}c[(l&p)>>2]=h;r=h;x=14}while(0);c:do if((x|0)==11?(c[(l&p)>>2]=0,q=c[(m&p)+4>>2]|0,(q|0)!=0):0){h=q;do{if(!(b[(h&o)+26>>1]|0)){r=h;x=14;break c}h=c[(h&p)+36>>2]|0}while((h|0)!=0)}while(0);if((x|0)==14?(k=rc[c[(m&p)+32>>2]&127](c[(m&p)+36>>2]|0,r)|0,!((k|0)==0|(k|0)==5)):0)break;k=ac[c[8876>>2]&63](c[(m&p)+40>>2]|0,f,2)|0;if(!k){k=7;break}}else k=0}else k=h;m=il(c[(s&p)>>2]|0,f,k)|0;c[(g&p)>>2]=m;if(!m)k=7;else{h=m+16|0;k=(t|0)!=0;if(!((c[(h&p)>>2]|0)==0|k)){k=e+184|0;c[(k&p)>>2]=(c[(k&p)>>2]|0)+1;k=0;break a}c[(h&p)>>2]=e;do if((f|0)>=0?(v=e+152|0,(((c[2514]|0)/(c[(v&p)>>2]|0)|0)+1|0)!=(f|0)):0){if(((a[(e&n)+15>>0]|0)==0?!((c[(e&p)+24>>2]|0)>>>0>>0|k):0)?(c[(c[(e&p)+60>>2]&p)>>2]|0)!=0:0){k=c[(e&p)+208>>2]|0;if(!k)k=0;else{k=kl(k,f,w)|0;if(k)break;k=c[(w&p)>>2]|0}v=e+188|0;c[(v&p)>>2]=(c[(v&p)>>2]|0)+1;k=ll(m,k)|0;if(!k){k=0;break a}else break}if((c[(e&p)+156>>2]|0)>>>0>>0)k=13;else{if(k){k=c[3164]|0;if(k)nc[k&3]();if((c[(e&p)+28>>2]|0)>>>0>=f>>>0)bi(c[(e&p)+56>>2]|0,f)|0;jl(e,f)|0;k=c[3166]|0;if(k)nc[k&3]()}fw(c[(m&p)+4>>2]|0,0,c[(v&p)>>2]|0)|0;k=0;break a}}else x=21;while(0);if((x|0)==21){c[(u&p)>>2]=46945;c[(u&p)+4>>2]=10788;bd(11,13600,u);k=11}ml(m)}}else k=h;while(0);if((c[(e&p)+120>>2]|0)==0?(c[((c[(e&p)+204>>2]|0)&p)+12>>2]|0)==0:0)nl(e);c[(g&p)>>2]=0}while(0);i=y;return k|0}function Ag(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,o=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0;y=i;i=i+16|0;if((i|0)>=(j|0))fa();x=y;v=b+4|0;r=c[((c[(v&p)>>2]|0)&p)+4>>2]|0;w=c[(r&p)>>2]|0;u=b+24|0;q=c[((c[((c[(u&p)>>2]|0)&p)+4>>2]|0)&p)+32>>2]|0;r=c[(r&p)+32>>2]|0;s=(q|0)<(r|0)?q:r;t=((q|0)<0)<<31>>31;m=sw(q|0,t|0,d|0,0)|0;o=G;if((q|0)==(r|0))b=0;else b=(a[(w&n)+15>>0]|0)==0?0:8;a:do if((b|0)==0&(q|0)>0){d=dw(m|0,o|0,q|0,t|0)|0;l=((r|0)<0)<<31>>31;k=(f|0)==0;h=G;b=r;while(1){c[(x&p)>>2]=0;f=qw(d|0,h|0,r|0,l|0)|0;if((f|0)!=(((c[2514]|0)>>>0)/(b>>>0)|0|0)){b=zg(w,f+1|0,x,0)|0;g=c[(x&p)>>2]|0;if(!b){b=Gg(g)|0;if(!b){z=rw(d|0,h|0,q|0,t|0)|0;f=c[(g&p)+4>>2]|0;b=rw(d|0,h|0,r|0,l|0)|0;kw(f+b|0,e+z|0,s|0)|0;a[(c[(g&p)+8>>2]&n)>>0]=0;if((d|0)==0&(h|0)==0&k){z=c[((c[((c[(u&p)>>2]|0)&p)+4>>2]|0)&p)+44>>2]|0;a[(f+b&n)+28>>0]=z>>>24;a[(f+b&n)+29>>0]=z>>>16;a[(f+b&n)+30>>0]=z>>>8;a[(f+b&n)+31>>0]=z;b=0}else b=0}}if(g)Bg(g)}else b=0;d=jw(d|0,h|0,r|0,l|0)|0;f=G;if(!((b|0)==0&((f|0)<(o|0)|(f|0)==(o|0)&d>>>0>>0)))break a;h=f;b=c[((c[((c[(v&p)>>2]|0)&p)+4>>2]|0)&p)+32>>2]|0}}while(0);i=y;return b|0}function Bg(a){a=a|0;var d=0,e=0,f=0;d=c[(a&p)+16>>2]|0;if(!(b[(a&o)+24>>1]&64)){ol(a);a=c[(d&p)+120>>2]|0}else{f=d+120|0;e=(c[(f&p)>>2]|0)+-1|0;c[(f&p)>>2]=e;f=d+136|0;c[(a&p)+12>>2]=c[(f&p)>>2];c[(f&p)>>2]=a;a=e}if((a|0)==0?(c[((c[(d&p)+204>>2]|0)&p)+12>>2]|0)==0:0)nl(d);return}function Cg(d){d=d|0;var f=0,g=0,h=0,i=0,j=0,k=0;i=d+44|0;if(!(c[(i&p)>>2]|0)){j=c[(d&p)+12>>2]|0;k=c[(j&p)+56>>2]|0;f=Gg(c[(j&p)+68>>2]|0)|0;if(!f){f=k+0|0;g=44680|0;h=f+16|0;do{a[(f&n)>>0]=a[(g&n)>>0]|0;f=f+1|0;g=g+1|0}while((f|0)<(h|0));f=d+32|0;a[(k&n)+16>>0]=(c[(f&p)>>2]|0)>>>8;a[(k&n)+17>>0]=(c[(f&p)>>2]|0)>>>16;a[(k&n)+18>>0]=1;a[(k&n)+19>>0]=1;a[(k&n)+20>>0]=(c[(f&p)>>2]|0)-(c[(d&p)+36>>2]|0);a[(k&n)+21>>0]=64;a[(k&n)+22>>0]=32;a[(k&n)+23>>0]=32;f=k+24|0;h=f+76|0;do{a[(f&n)>>0]=0;f=f+1|0}while((f|0)<(h|0));pl(j,13);f=d+22|0;b[(f&o)>>1]=e[(f&o)>>1]|0|2;f=a[(d&n)+17>>0]|0;a[(k&n)+52>>0]=0;a[(k&n)+53>>0]=0;a[(k&n)+54>>0]=0;a[(k&n)+55>>0]=f;f=a[(d&n)+18>>0]|0;a[(k&n)+64>>0]=0;a[(k&n)+65>>0]=0;a[(k&n)+66>>0]=0;a[(k&n)+67>>0]=f;c[(i&p)>>2]=1;a[(k&n)+31>>0]=1;f=0}}else f=0;return f|0}function Dg(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0;g=c[(b&p)+4>>2]|0;c[(g&p)+4>>2]=c[(b&p)>>2];b=c[(g&p)+12>>2]|0;f=c[(b&p)+56>>2]|0;b=Gg(c[(b&p)+68>>2]|0)|0;if((b|0)==0?(i=d<<2,a[(f+i&n)+36>>0]=e>>>24,a[(f+i&n)+37>>0]=e>>>16,a[(f+i&n)+38>>0]=e>>>8,h=e&255,a[(f+i&n)+39>>0]=h,(d|0)==7):0)a[(g&n)+18>>0]=h;return b|0}function Eg(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0;h=a+20|0;b=c[(h&p)>>2]|0;d=(b|0)>0;if(d){e=c[(a&p)+16>>2]|0;g=0;do{f=c[(e+(g<<4)&p)+4>>2]|0;if(f)c[((c[(f&p)+4>>2]|0)&p)+4>>2]=c[(f&p)>>2];g=g+1|0}while((g|0)!=(b|0));if(d){g=a+16|0;f=0;do{d=c[((c[(g&p)>>2]|0)+(f<<4)&p)+12>>2]|0;if(d){ql(d);b=c[(h&p)>>2]|0}f=f+1|0}while((f|0)<(b|0))}}b=a+24|0;c[(b&p)>>2]=c[(b&p)>>2]&-3;rl(a);sl(a);return}function Fg(d,f){d=d|0;f=f|0;var g=0,h=0,i=0,j=0,k=0;h=c[(d&p)+4>>2]|0;k=h+22|0;g=e[(k&o)>>1]|0;b[(k&o)>>1]=(f|0)==1?g|16:g&65519;g=yg(d,0)|0;do if(!g){h=h+12|0;i=c[((c[(h&p)>>2]|0)&p)+56>>2]|0;j=i+18|0;g=a[(j&n)>>0]|0;f=f&255;if(g<<24>>24==f<<24>>24?(a[(i&n)+19>>0]|0)==g<<24>>24:0){g=0;break}g=yg(d,2)|0;if(!g){g=Gg(c[((c[(h&p)>>2]|0)&p)+68>>2]|0)|0;if(!g){a[(j&n)>>0]=f;a[(i&n)+19>>0]=f;g=0}}}while(0);b[(k&o)>>1]=e[(k&o)>>1]&65519;return g|0}function Gg(a){a=a|0;var b=0;b=c[(a&p)+16>>2]|0;if((c[(b&p)+148>>2]|0)>>>0>(c[(b&p)+152>>2]|0)>>>0)a=tl(a)|0;else a=ul(a)|0;return a|0}function Hg(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,o=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0;A=i;i=i+32|0;if((i|0)>=(j|0))fa();u=A+16|0;v=A;k=A+12|0;m=A+8|0;g=c[(b&p)+40>>2]|0;a:do if(!g){z=b+16|0;if((d[(z&n)>>0]|0)>=3){b:do if(!(a[(b&n)+15>>0]|0)){if(c[(b&p)+208>>2]|0){l=b+204|0;h=vl(c[(l&p)>>2]|0)|0;c[(m&p)>>2]=0;if(!h){g=zg(b,1,m,0)|0;h=c[(m&p)>>2]|0;c[(h&p)+12>>2]=0;if(h){k=h;y=9}}else{k=0;y=9}if((y|0)==9){g=wl(b,h,c[(b&p)+24>>2]|0,1)|0;if(k)Bg(k)}if(g)break a;h=c[(l&p)>>2]|0;g=c[(h&p)>>2]|0;if(!g)break;while(1){xl(g);g=c[(h&p)>>2]|0;if(!g)break b}}l=b+18|0;if((a[(l&n)>>0]|0)==0?(c[(b&p)+24>>2]|0)!=0:0){g=zg(b,1,k,0)|0;k=c[(k&p)>>2]|0;if(!g){g=Gg(k)|0;if(!g){yl(k);a[(l&n)>>0]=1;g=0}}if(k)Bg(k);if(g)break a}if(((e|0)!=0?(a[(b&n)+5>>0]|0)!=4:0)?(x=b+64|0,t=c[(x&p)>>2]|0,(c[(t&p)>>2]|0)!=0):0){a[(b&n)+19>>0]=1;k=a[(e&n)>>0]|0;if(!(k<<24>>24)){l=0;h=0}else{l=0;h=0;do{l=(k<<24>>24)+l|0;h=h+1|0;k=a[(e+h&n)>>0]|0}while(k<<24>>24!=0)}s=b+72|0;g=s;k=c[(g&p)>>2]|0;g=c[(g&p)+4>>2]|0;if(!(a[(b&n)+8>>0]|0))m=g;else{if((k|0)==0&(g|0)==0){k=0;g=0}else{g=jw(k|0,g|0,-1,-1)|0;k=c[(b&p)+148>>2]|0;g=qw(g|0,G|0,k|0,0)|0;g=jw(g|0,G|0,1,0)|0;k=sw(g|0,G|0,k|0,0)|0;g=G}m=s;c[(m&p)>>2]=k;c[(m&p)+4>>2]=g;m=g}g=((c[2514]|0)/(c[(b&p)+152>>2]|0)|0)+1|0;a[(u&n)>>0]=g>>>24;o=u+1|0;a[(o&n)>>0]=g>>>16;q=u+2|0;a[(q&n)>>0]=g>>>8;r=u+3|0;a[(r&n)>>0]=g;g=tc[c[((c[(t&p)>>2]|0)&p)+12>>2]&31](t,u,4,k,m)|0;if(g)break a;g=c[(x&p)>>2]|0;m=jw(k|0,m|0,4,0)|0;k=G;g=tc[c[((c[(g&p)>>2]|0)&p)+12>>2]&31](g,e,h,m,k)|0;if(g)break a;g=c[(x&p)>>2]|0;m=jw(m|0,k|0,h|0,((h|0)<0)<<31>>31|0)|0;k=G;a[(u&n)>>0]=h>>>24;a[(o&n)>>0]=h>>>16;a[(q&n)>>0]=h>>>8;a[(r&n)>>0]=h;g=tc[c[((c[(g&p)>>2]|0)&p)+12>>2]&31](g,u,4,m,k)|0;if(g)break a;t=c[(x&p)>>2]|0;g=jw(m|0,k|0,4,0)|0;a[(u&n)>>0]=l>>>24;a[(o&n)>>0]=l>>>16;a[(q&n)>>0]=l>>>8;a[(r&n)>>0]=l;g=tc[c[((c[(t&p)>>2]|0)&p)+12>>2]&31](t,u,4,g,G)|0;if(g)break a;t=c[(x&p)>>2]|0;g=jw(m|0,k|0,8,0)|0;g=tc[c[((c[(t&p)>>2]|0)&p)+12>>2]&31](t,14808,8,g,G)|0;if(g)break a;t=h+20|0;g=s;t=jw(c[(g&p)>>2]|0,c[(g&p)+4>>2]|0,t|0,((t|0)<0)<<31>>31|0)|0;g=s;c[(g&p)>>2]=t;c[(g&p)+4>>2]=G;g=c[(x&p)>>2]|0;g=rc[c[((c[(g&p)>>2]|0)&p)+24>>2]&127](g,v)|0;if(g)break a;t=v;r=c[(t&p)+4>>2]|0;g=s;h=c[(g&p)>>2]|0;g=c[(g&p)+4>>2]|0;if((r|0)>(g|0)|((r|0)==(g|0)?(c[(t&p)>>2]|0)>>>0>h>>>0:0)?(w=c[(x&p)>>2]|0,w=ac[c[((c[(w&p)>>2]|0)&p)+16>>2]&63](w,h,g)|0,(w|0)!=0):0){g=w;break a}}g=zl(b,0)|0;if(g)break a;h=b+204|0;g=Al(b,vl(c[(h&p)>>2]|0)|0)|0;if(g)break a;g=c[(h&p)>>2]|0;h=c[(g&p)>>2]|0;if(h)do{xl(h);h=c[(g&p)>>2]|0}while((h|0)!=0);h=c[(b&p)+24>>2]|0;if(h>>>0>(c[(b&p)+32>>2]|0)>>>0){g=Bl(b,h-((h|0)==(((c[2514]|0)/(c[(b&p)+152>>2]|0)|0)+1|0)&1)|0)|0;if(!(g|f))y=46}else if(!f)y=46;else break;if((y|0)==46)g=Ig(b,e)|0;if(g)break a}else{g=c[(b&p)+88>>2]|0;if(g)do{c[(g&p)+16>>2]=1;g=c[(g&p)+44>>2]|0}while((g|0)!=0)}while(0);if(!(c[(b&p)+208>>2]|0)){a[(z&n)>>0]=5;g=0}else g=0}else g=0}while(0);i=A;return g|0}function Ig(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,i=0;g=b+60|0;h=c[(g&p)>>2]|0;i=c[(h&p)>>2]|0;if(!((i|0)!=0?(f=ac[c[(i&p)+40>>2]&63](h,21,e)|0,!((f|0)==0|(f|0)==12)):0))if(!(a[(b&n)+7>>0]|0)){f=c[(g&p)>>2]|0;f=rc[c[((c[(f&p)>>2]|0)&p)+20>>2]&127](f,d[(b&n)+11>>0]|0)|0}else f=0;return f|0}function Jg(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0;g=a[(b&n)+8>>0]|0;do if(!(g<<24>>24))f=0;else{k=c[(b&p)+4>>2]|0;c[(k&p)+4>>2]=c[(b&p)>>2];if(g<<24>>24==2){h=c[(k&p)>>2]|0;i=h+40|0;g=c[(i&p)>>2]|0;do if(!g){g=h+16|0;if(((a[(g&n)>>0]|0)==2?(a[(h&n)+4>>0]|0)!=0:0)?(a[(h&n)+5>>0]|0)==1:0){a[(g&n)>>0]=1;break}f=h+100|0;c[(f&p)>>2]=(c[(f&p)>>2]|0)+1;f=Cl(h,d[(h&n)+19>>0]|0,1)|0;h=f&255;if((h|0)==10|(h|0)==13){c[(i&p)>>2]=f;a[(g&n)>>0]=6;j=10}else j=10}else{f=g;j=10}while(0);if((j|0)==10?(f|0)!=0&(e|0)==0:0)break;f=b+20|0;c[(f&p)>>2]=(c[(f&p)>>2]|0)+-1;a[(k&n)+20>>0]=1;f=k+60|0;ei(c[(f&p)>>2]|0);c[(f&p)>>2]=0}Dl(b);f=0}while(0);return f|0}function Kg(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,o=0,q=0,r=0,s=0;s=i;i=i+16|0;if((i|0)>=(j|0))fa();h=s;a:do if((a[(b&n)+8>>0]|0)==2){r=c[(b&p)+4>>2]|0;c[(r&p)+4>>2]=c[(b&p)>>2];do if(a[(r&n)+17>>0]|0){q=c[(r&p)>>2]|0;f=r+8|0;b=c[(f&p)>>2]|0;if(b)do{o=b+72|0;a[(o&n)>>0]=d[(o&n)>>0]&251;b=c[(b&p)+8>>2]|0}while((b|0)!=0);if(!(a[(r&n)+18>>0]|0)){o=r+44|0;g=c[(o&p)>>2]|0;if(g>>>0<2)b=0;else{b=g+-2|0;b=b-((b>>>0)%(((((c[(r&p)+36>>2]|0)>>>0)/5|0)+1|0)>>>0)|0)|0;b=((b+1|0)==(((c[2514]|0)>>>0)/((c[(r&p)+32>>2]|0)>>>0)|0|0)?3:2)+b|0}if((b|0)!=(g|0)?(g|0)!=((((c[2514]|0)>>>0)/((c[(r&p)+32>>2]|0)>>>0)|0)+1|0):0){k=r+12|0;l=c[((c[(k&p)>>2]|0)&p)+56>>2]|0;l=d[(l&n)+37>>0]<<16|d[(l&n)+36>>0]<<24|d[(l&n)+38>>0]<<8|d[(l&n)+39>>0];m=El(r,g,l)|0;if(m>>>0>g>>>0){c[(h&p)>>2]=56396;c[(h&p)+4>>2]=10788;bd(11,13600,h);b=11;break a}b:do if(m>>>0>>0){b=c[(f&p)>>2]|0;c:do if(b){while(1){if(b)break;b=c[2]|0;if(!b)break c}b=Fl(b,0,0)|0;if(b){f=0;break b}}while(0);do{b=Gl(r,m,g,1)|0;g=g+-1|0;f=(b|0)==0}while(g>>>0>m>>>0&f)}else{f=1;b=0}while(0);if(((b|0)==101|f)&(l|0)!=0){b=Gg(c[((c[(k&p)>>2]|0)&p)+68>>2]|0)|0;l=(c[((c[(k&p)>>2]|0)&p)+56>>2]|0)+32|0;a[(l&n)>>0]=0;a[(l&n)+1>>0]=0;a[(l&n)+2>>0]=0;a[(l&n)+3>>0]=0;l=(c[((c[(k&p)>>2]|0)&p)+56>>2]|0)+36|0;a[(l&n)>>0]=0;a[(l&n)+1>>0]=0;a[(l&n)+2>>0]=0;a[(l&n)+3>>0]=0;l=c[((c[(k&p)>>2]|0)&p)+56>>2]|0;a[(l&n)+28>>0]=m>>>24;a[(l&n)+29>>0]=m>>>16;a[(l&n)+30>>0]=m>>>8;a[(l&n)+31>>0]=m;a[(r&n)+19>>0]=1;c[(o&p)>>2]=m}if(!b)break;Hl(q)|0;break a}c[(h&p)>>2]=56391;c[(h&p)+4>>2]=10788;bd(11,13600,h);b=11;break a}}while(0);b=c[(r&p)>>2]|0;if(a[(r&n)+19>>0]|0)c[(b&p)+24>>2]=c[(r&p)+44>>2];b=Hg(b,e,0)|0}else b=0;while(0);i=s;return b|0}function Lg(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0;m=i;i=i+16|0;if((i|0)>=(j|0))fa();h=m;l=c[(b&p)+4>>2]|0;c[(l&p)+4>>2]=c[(b&p)>>2];a:do if(!e){e=c[(l&p)+8>>2]|0;if(e){while(1){if(e)break;e=c[2]|0;if(!e)break a}e=Fl(e,0,0)|0;g=(e|0)==0;if(!g){g=g?f:0;k=6}}}else{g=f;k=6}while(0);if((k|0)==6)Il(b,e,g)|0;if((a[(b&n)+8>>0]|0)==2){Hl(c[(l&p)>>2]|0)|0;if(!(dl(l,1,h,0)|0)){e=c[(h&p)>>2]|0;g=c[(e&p)+56>>2]|0;g=d[(g&n)+29>>0]<<16|d[(g&n)+28>>0]<<24|d[(g&n)+30>>0]<<8|d[(g&n)+31>>0];if(!g)g=c[((c[(l&p)>>2]|0)&p)+24>>2]|0;c[(l&p)+44>>2]=g;if(e)Bg(c[(e&p)+68>>2]|0)}a[(l&n)+20>>0]=1;g=l+60|0;ei(c[(g&p)>>2]|0);c[(g&p)>>2]=0}Dl(b);i=m;return}function Mg(d){d=d|0;var e=0,f=0,g=0,h=0,i=0,j=0,k=0;j=d+76|0;if((c[(j&p)>>2]|0)==1691352191?(Jl(d)|0)==0:0){Kl(d,0);Ll(d);i=d+20|0;k=d+16|0;e=c[(k&p)>>2]|0;if((c[(i&p)>>2]|0)>0){h=0;do{g=e+(h<<4)+4|0;f=c[(g&p)>>2]|0;if((f|0)!=0?(Ml(f),c[(g&p)>>2]=0,(h|0)!=1):0)c[(e+(h<<4)&p)+12>>2]=0;h=h+1|0;e=c[(k&p)>>2]|0}while((h|0)<(c[(i&p)>>2]|0))}e=c[(e&p)+28>>2]|0;if(e)ql(e);rl(d);sl(d);h=0;do{e=c[(d+(h<<2)&p)+336>>2]|0;if(e)do{g=e;e=c[(e&p)+28>>2]|0;if(g)do{Nl(d,g);f=g;g=c[(g&p)+8>>2]|0;mg(d,f)}while((g|0)!=0)}while((e|0)!=0);h=h+1|0}while((h|0)!=23);f=d+428|0;e=c[(d&p)+436>>2]|0;if(e)do{h=c[(e&p)+8>>2]|0;g=c[(h&p)+16>>2]|0;if(g)cc[g&31](c[(h&p)+8>>2]|0);g=c[(h&p)+36>>2]|0;if(g)cc[g&31](c[(h&p)+28>>2]|0);g=c[(h&p)+56>>2]|0;if(g)cc[g&31](c[(h&p)+48>>2]|0);mg(d,h);e=c[(e&p)>>2]|0}while((e|0)!=0);Ol(f);h=d+308|0;e=c[(d&p)+316>>2]|0;if(e)do{g=c[(e&p)+8>>2]|0;f=c[(g&p)+12>>2]|0;if(f)cc[f&31](c[(g&p)+8>>2]|0);mg(d,g);e=c[(e&p)>>2]|0}while((e|0)!=0);Ol(h);c[(d&p)+52>>2]=0;f=d+236|0;e=c[(f&p)>>2]|0;do if(e){g=e+8|0;if(!(b[(g&o)>>1]&9312)){b[(g&o)>>1]=1;break}else{vg(e);e=c[(f&p)>>2]|0;break}}else e=0;while(0);Mh(e);g=d+168|0;if((c[(g&p)>>2]|0)>0){e=d+172|0;f=0;do{h=c[(d&p)>>2]|0;jc[c[(h&p)+52>>2]&15](h,c[((c[(e&p)>>2]|0)+(f<<2)&p)>>2]|0);f=f+1|0}while((f|0)<(c[(g&p)>>2]|0))}else e=d+172|0;mg(d,c[(e&p)>>2]|0);c[(j&p)>>2]=-1254786768;mg(d,c[((c[(k&p)>>2]|0)&p)+28>>2]|0);c[(j&p)>>2]=-1623446221;if(a[(d&n)+251>>0]|0)Wc(c[(d&p)+276>>2]|0);Wc(d)}return}function Ng(a){a=a|0;var b=0;b=c[(a&p)+40>>2]|0;if((b|0)==1369188723|(b|0)==-1108210269)b=Pg(a)|0;else b=0;Pl(a);return b|0}function Og(b,d){b=b|0;d=d|0;do if(b)if((a[(b&n)+65>>0]|0)!=0|(d|0)==3082){Ql(b);b=7;break}else{b=c[(b&p)+56>>2]&d;break}else b=d&255;while(0);return b|0}function Pg(a){a=a|0;var d=0,e=0,f=0,g=0,h=0,k=0;g=i;i=i+16|0;if((i|0)>=(j|0))fa();e=g;f=c[(a&p)>>2]|0;Rl(a)|0;if((c[(a&p)+76>>2]|0)>-1){hh(a)|0;d=a+44|0;mg(f,c[(d&p)>>2]|0);c[(d&p)>>2]=0;d=a+88|0;e=b[(d&o)>>1]|0;if(e&16)b[(d&o)>>1]=e|8}else{d=c[(a&p)+80>>2]|0;if((d|0)!=0?(b[(a&o)+88>>1]&8)!=0:0){h=a+44|0;k=c[(h&p)>>2]|0;c[(e&p)>>2]=k;ug(f,d,(k|0)!=0?10344:0,e);mg(f,c[(h&p)>>2]|0);c[(h&p)>>2]=0}}d=a+44|0;mg(c[(a&p)>>2]|0,c[(d&p)>>2]|0);c[(d&p)>>2]=0;c[(a&p)+20>>2]=0;d=a+136|0;c[(d&p)>>2]=0;c[(d&p)+4>>2]=0;c[(a&p)+40>>2]=649915045;i=g;return c[(f&p)+56>>2]&c[(a&p)+80>>2]|0}function Qg(a){a=a|0;var d=0;if(b[(a&o)+8>>1]&9312)vg(a);d=a+24|0;if(c[(d&p)>>2]|0){mg(c[(a&p)+32>>2]|0,c[(a&p)+20>>2]|0);c[(d&p)>>2]=0}c[(a&p)+16>>2]=0;return}function Rg(a){a=a|0;var d=0,f=0,g=0;d=a+8|0;if(b[(d&o)>>1]&16384){f=a+12|0;g=(c[(a&p)>>2]|0)+(c[(f&p)>>2]|0)|0;if(!(eh(a,(g|0)<1?1:g,1)|0)){fw((c[(a&p)+16>>2]|0)+(c[(f&p)>>2]|0)|0,0,c[(a&p)>>2]|0)|0;c[(f&p)>>2]=(c[(f&p)>>2]|0)+(c[(a&p)>>2]|0);b[(d&o)>>1]=(e[(d&o)>>1]|0)&48639;d=0}else d=7}else d=0;return d|0}function Sg(d,e){d=d|0;e=e|0;var f=0;do if(d){f=b[(d&o)+8>>1]|0;if((f&514)==514?(a[(d&n)+10>>0]|0)==e<<24>>24:0){f=c[(d&p)+16>>2]|0;break}if(!(f&1))f=Sl(d,e)|0;else f=0}else f=0;while(0);return f|0}function Tg(a,d){a=a|0;d=d|0;var e=0,f=0,g=0;e=a+8|0;f=b[(e&o)>>1]|0;if(!(f&16))if(!(Sg(a,d)|0))e=0;else{f=b[(e&o)>>1]|0;g=4}else g=4;if((g|0)==4){e=c[(a&p)+12>>2]|0;if(f&16384)e=(c[(a&p)>>2]|0)+e|0}return e|0}function Ug(b){b=b|0;var d=0.0,f=0,g=0,k=0;k=i;i=i+16|0;if((i|0)>=(j|0))fa();g=k;f=e[(b&o)+8>>1]|0;do if(!(f&8)){if(f&4){f=b;d=+((c[(f&p)>>2]|0)>>>0)+4294967296.0*+(c[(f&p)+4>>2]|0);break}if(!(f&18))d=0.0;else{h[(g&q)>>3]=0.0;Tl(c[(b&p)+16>>2]|0,g,c[(b&p)+12>>2]|0,a[(b&n)+10>>0]|0)|0;d=+h[(g&q)>>3]}}else d=+h[(b&q)>>3];while(0);i=k;return +d}function Vg(b){b=b|0;var d=0.0,f=0,g=0,k=0;k=i;i=i+16|0;if((i|0)>=(j|0))fa();g=k;f=e[(b&o)+8>>1]|0;do if(!(f&4)){if(!(f&8)){if(!(f&18)){b=0;f=0;break}f=g;c[(f&p)>>2]=0;c[(f&p)+4>>2]=0;Ul(c[(b&p)+16>>2]|0,g,c[(b&p)+12>>2]|0,a[(b&n)+10>>0]|0)|0;f=g;b=c[(f&p)+4>>2]|0;f=c[(f&p)>>2]|0;break}d=+h[(b&q)>>3];if(!(d<=-9223372036854775808.0))if(!(d>=9223372036854775808.0)){b=+R(d)>=1.0?(d>0.0?~~+da(+Q(d/4294967296.0),4294967295.0)>>>0:~~+ba((d-+(~~d>>>0))/4294967296.0)>>>0):0;f=~~d>>>0}else{b=2147483647;f=-1}else{b=-2147483648;f=0}}else{f=b;b=c[(f&p)+4>>2]|0;f=c[(f&p)>>2]|0}while(0);G=b;i=k;return f|0}function Wg(b,d,e,f,g){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;if((Xg(c[(b&p)>>2]|0,d,e,f,g)|0)==18){c[(b&p)+20>>2]=18;a[(b&n)+25>>0]=1;Xg(c[(b&p)>>2]|0,10096,-1,1,0)|0}return}function Xg(d,f,g,h,i){d=d|0;f=f|0;g=g|0;h=h|0;i=i|0;var j=0,k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0;a:do if(!f){j=d+8|0;if(!(b[(j&o)>>1]&9312)){b[(j&o)>>1]=1;j=0;break}else{vg(d);j=0;break}}else{r=d+32|0;j=c[(r&p)>>2]|0;if(!j)u=1e9;else u=c[(j&p)+88>>2]|0;t=h<<24>>24==0;q=t?16:2;if((g|0)<0){b:do if(h<<24>>24!=1)if((u|0)<0)k=0;else{g=0;while(1){k=g+2|0;if(!((a[(f+(g|1)&n)>>0]|a[(f+g&n)>>0])<<24>>24)){k=g;break b}if((k|0)>(u|0))break;else g=k}}else{k=f;while(1)if(!(a[(k&n)>>0]|0))break;else k=k+1|0;k=k-f&1073741823;k=(k|0)>(u|0)?u+1|0:k}while(0);s=k;m=(q&65535|512)&65535}else{s=g;m=q}do if((i|0)==(-1|0)){if(!(m&512))j=s;else j=s+(h<<24>>24==1?1:2)|0;if((s|0)>(u|0)){j=18;break a}if(fh(d,(j|0)>32?j:32)|0){j=7;break a}kw(c[(d&p)+16>>2]|0,f|0,j|0)|0;q=d+8|0;j=m}else{g=(i|0)==75;l=d+8|0;if(!((b[(l&o)>>1]&9312)==0?(c[(d&p)+24>>2]|0)==0:0))Qg(d);c[(d&p)+16>>2]=f;if(!g){c[(d&p)+36>>2]=i;q=l;j=(m&65535|((i|0)==0?2048:1024))&65535;break}c[(d&p)+20>>2]=f;j=c[(r&p)>>2]|0;do if(!j)j=lc[c[8792>>2]&127](f)|0;else{if((c[(j&p)+276>>2]|0)>>>0<=f>>>0?(c[(j&p)+280>>2]|0)>>>0>f>>>0:0){j=e[(j&o)+248>>1]|0;break}j=lc[c[8792>>2]&127](f)|0}while(0);c[(d&p)+24>>2]=j;q=l;j=m}while(0);m=d+12|0;c[(m&p)>>2]=s;b[(q&o)>>1]=j;f=t?1:h;l=d+10|0;a[(l&n)>>0]=f;do if(f<<24>>24!=1&(s|0)>1){g=d+16|0;k=c[(g&p)>>2]|0;j=a[(k&n)>>0]|0;k=a[(k&n)+1>>0]|0;if(!(j<<24>>24==-1&k<<24>>24==-2))if(k<<24>>24!=-1|j<<24>>24!=-2)break;else j=3;else j=2;if(Vl(d)|0){j=7;break a}f=(c[(m&p)>>2]|0)+-2|0;c[(m&p)>>2]=f;i=c[(g&p)>>2]|0;lw(i|0,i+2|0,f|0)|0;a[((c[(g&p)>>2]|0)+(c[(m&p)>>2]|0)&n)>>0]=0;a[((c[(g&p)>>2]|0)+(c[(m&p)>>2]|0)&n)+1>>0]=0;b[(q&o)>>1]=e[(q&o)>>1]|512;a[(l&n)>>0]=j}while(0);j=(s|0)>(u|0)?18:0}while(0);return j|0}function Yg(a,c){a=a|0;c=+c;var d=0,e=0,f=0,g=0;g=i;i=i+16|0;if((i|0)>=(j|0))fa();e=g+8|0;f=g;d=a+8|0;if(!(b[(d&o)>>1]&9312))b[(d&o)>>1]=1;else vg(a);h[(e&q)>>3]=c;h[(f&q)>>3]=+h[(e&q)>>3];if(!(+h[(e&q)>>3]!=+h[(f&q)>>3])){h[(a&q)>>3]=c;b[(d&o)>>1]=8}i=g;return}function Zg(a,d,e){a=a|0;d=d|0;e=e|0;var f=0;f=a+8|0;if(!(b[(f&o)>>1]&9312))b[(f&o)>>1]=1;else vg(a);c[(a&p)>>2]=d;c[(a&p)+4>>2]=e;b[(f&o)>>1]=4;return}function _g(a,d){a=a|0;d=d|0;var f=0,g=0,h=0;f=a+8|0;if(b[(f&o)>>1]&9312)vg(a);c[(a&p)>>2]=c[(d&p)>>2];c[(a&p)+4>>2]=c[(d&p)+4>>2];c[(a&p)+8>>2]=c[(d&p)+8>>2];c[(a&p)+12>>2]=c[(d&p)+12>>2];c[(a&p)+16>>2]=c[(d&p)+16>>2];h=e[(f&o)>>1]|0;g=h&64511;b[(f&o)>>1]=g;if((h&18|0)!=0?(b[(d&o)+8>>1]&2048)==0:0){b[(f&o)>>1]=g|4096;f=Vl(a)|0}else f=0;return f|0}function $g(d,e){d=d|0;e=e|0;var f=0;f=d+8|0;if(!((b[(f&o)>>1]&9312)==0?(c[(d&p)+24>>2]|0)==0:0))Qg(d);b[(f&o)>>1]=16400;c[(d&p)+12>>2]=0;c[(d&p)>>2]=(e|0)<0?0:e;a[(d&n)+10>>0]=1;c[(d&p)+16>>2]=0;return}function ah(a){a=a|0;var b=0,d=0;d=i;i=i+16|0;if((i|0)>=(j|0))fa();b=d;if(a)if(!(c[(a&p)>>2]|0)){bd(21,47360,b);a=1}else a=0;else{bd(21,47320,b);a=1}i=d;return a|0}function bh(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0.0;f=i;i=i+16|0;if((i|0)>=(j|0))fa();e=f;if((c[(a&p)>>2]|0)>1?(d=c[(a&p)+72>>2]|0,(d|0)!=0):0)d=rc[d&127](a,b)|0;else{d=rc[c[(a&p)+64>>2]&127](a,e)|0;g=+h[(e&q)>>3]*864.0e5;a=+R(g)>=1.0?(g>0.0?~~+da(+Q(g/4294967296.0),4294967295.0)>>>0:~~+ba((g-+(~~g>>>0))/4294967296.0)>>>0):0;c[(b&p)>>2]=~~g>>>0;c[(b&p)+4>>2]=a}i=f;return d|0}function ch(d,e){d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0;a:do if((d|0)!=0&(e|0)!=0){i=d+(e*40|0)|0;j=c[(d&p)+32>>2]|0;g=j+65|0;h=a[(g&n)>>0]|0;if(c[(j&p)+520>>2]|0){e=d;while(1){if(c[(e&p)+24>>2]|0)mg(j,c[(e&p)+20>>2]|0);e=e+40|0;if(e>>>0>=i>>>0)break a}}do{e=d+8|0;if(!(b[(e&o)>>1]&9312)){f=d+24|0;if(c[(f&p)>>2]|0){mg(j,c[(d&p)+20>>2]|0);c[(f&p)>>2]=0}}else Qg(d);b[(e&o)>>1]=128;d=d+40|0}while(d>>>0>>0);a[(g&n)>>0]=h}while(0);return}function dh(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0;f=i;i=i+16|0;if((i|0)>=(j|0))fa();g=f;c[(g&p)>>2]=e;e=Wk(b,d,g)|0;mg(b,c[(a&p)>>2]|0);c[(a&p)>>2]=e;i=f;return}function eh(a,d,f){a=a|0;d=d|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,q=0;l=a+24|0;g=c[(l&p)>>2]|0;do if((g|0)<(d|0)){k=(d|0)<32?32:d;d=(g|0)>0;if((f|0)!=0&d?(h=a+16|0,i=c[(h&p)>>2]|0,j=a+20|0,(i|0)==(c[(j&p)>>2]|0)):0){g=Wl(c[(a&p)+32>>2]|0,i,k,((k|0)<0)<<31>>31)|0;c[(j&p)>>2]=g;c[(h&p)>>2]=g;f=0}else{g=a+32|0;if(d){d=a+20|0;mg(c[(g&p)>>2]|0,c[(d&p)>>2]|0)}else d=a+20|0;g=mh(c[(g&p)>>2]|0,k,((k|0)<0)<<31>>31)|0;c[(d&p)>>2]=g}if(!g){f=a+8|0;if(!(b[(f&o)>>1]&9312))b[(f&o)>>1]=1;else vg(a);c[(a&p)+16>>2]=0;c[(l&p)>>2]=0;f=7;break}d=c[(a&p)+32>>2]|0;do if(!d)d=lc[c[8792>>2]&127](g)|0;else{if((c[(d&p)+276>>2]|0)>>>0<=g>>>0?(c[(d&p)+280>>2]|0)>>>0>g>>>0:0){d=e[(d&o)+248>>1]|0;break}d=lc[c[8792>>2]&127](g)|0}while(0);c[(l&p)>>2]=d;q=21}else q=21;while(0);if((q|0)==21){if(((f|0)!=0?(m=c[(a&p)+16>>2]|0,(m|0)!=0):0)?(n=c[(a&p)+20>>2]|0,(m|0)!=(n|0)):0)kw(n|0,m|0,c[(a&p)+12>>2]|0)|0;d=a+8|0;f=b[(d&o)>>1]|0;if(!(f&1024))g=a+16|0;else{g=a+16|0;cc[c[(a&p)+36>>2]&31](c[(g&p)>>2]|0);f=b[(d&o)>>1]|0}c[(g&p)>>2]=c[(a&p)+20>>2];b[(d&o)>>1]=f&58367;f=0}return f|0}function fh(a,d){a=a|0;d=d|0;if((c[(a&p)+24>>2]|0)<(d|0))a=eh(a,d,0)|0;else{c[(a&p)+16>>2]=c[(a&p)+20>>2];a=a+8|0;b[(a&o)>>1]=(e[(a&o)>>1]|0)&13;a=0}return a|0} function mq(f,g){f=f|0;g=g|0;var h=0,k=0,l=0,m=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,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,ga=0,ha=0;ha=i;i=i+192|0;if((i|0)>=(j|0))fa();ba=ha+48|0;$=ha+24|0;_=ha+160|0;I=ha+156|0;S=ha+152|0;L=ha+148|0;V=ha+144|0;O=ha+140|0;H=ha+16|0;ea=ha;y=ha+128|0;x=ha+116|0;z=ha+96|0;l=ha+88|0;ga=f+8|0;ca=c[(ga&p)>>2]|0;da=c[(f&p)>>2]|0;c[(ea&p)>>2]=c[9286];c[(ea&p)+4>>2]=c[9287];c[(ea&p)+8>>2]=c[9288];a:do switch(g|0){case 9:{l=c[(f+(da+-1<<4)&p)+16>>2]|0;k=c[(ca&p)>>2]|0;if((Sq(ca,22,37104,0,0)|0)==0?(E=Oq(ca)|0,(E|0)!=0):0){if((l|0)!=7?(F=k+20|0,(c[(F&p)>>2]|0)>0):0){l=(l|0)==9?2:1;k=E+96|0;q=0;do{wh(E,4,q,l,0)|0;c[(k&p)>>2]=c[(k&p)>>2]|1<>2]|0))}wh(E,3,0,0,0)|0}break}case 8:{y=c[(ca&p)>>2]|0;C=y+65|0;if(((a[(C&n)>>0]|0)==0?(a[(ca&n)+18>>0]|0)==0:0)?(Y=ca+64|0,(c[(Y&p)>>2]|0)==0):0){B=Oq(ca)|0;if(B){do{}while((Pq(B,61)|0)!=0);wh(B,24,0,0,0)|0;do if(!(a[(C&n)>>0]|0)){r=ca+332|0;v=c[(r&p)>>2]|0;if((v|0)==0?(c[(ca&p)+316>>2]|0)==0:0)break;s=B+32|0;t=c[(s&p)>>2]|0;if(t)c[((c[(B&p)+4>>2]|0)&p)+8>>2]=t;c[((c[(B&p)+24>>2]|0)&p)+88>>2]=t+-1;w=y+20|0;b:do if((c[(w&p)>>2]|0)>0){h=B+96|0;k=ca+328|0;l=y+16|0;m=y+145|0;q=B+4|0;u=0;while(1){x=1<>2]=c[(h&p)>>2]|x,ba=c[((c[((c[(l&p)>>2]|0)+(u<<4)&p)+12>>2]|0)&p)+4>>2]|0,xh(B,wh(B,4,u,(c[(k&p)>>2]&x|0)!=0&1,c[(ca+(u<<2)&p)+336>>2]|0)|0,ba,-14),(a[(m&n)>>0]|0)==0):0)?(N=c[(q&p)>>2]|0,(N|0)!=0):0)a[(N+(((c[(s&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=1;u=u+1|0;if((u|0)>=(c[(w&p)>>2]|0))break b;v=c[(r&p)>>2]|0}}while(0);s=ca+452|0;if((c[(s&p)>>2]|0)>0){r=ca+520|0;q=0;do{t=c[((c[((c[(r&p)>>2]|0)+(q<<2)&p)>>2]|0)&p)+60>>2]|0;c:do if(!t)t=0;else while(1){if((c[(t&p)>>2]|0)==(y|0))break c;t=c[(t&p)+24>>2]|0;if(!t){t=0;break}}while(0);xh(B,wh(B,146,0,0,0)|0,t,-10);q=q+1|0}while((q|0)<(c[(s&p)>>2]|0))}c[(s&p)>>2]=0;s=Oq(ca)|0;r=ca+396|0;if((c[(r&p)>>2]|0)>0){q=ca+400|0;m=0;do{$=c[(q&p)>>2]|0;ba=c[($+(m<<4)&p)+12>>2]|0;xh(s,wh(s,145,c[($+(m<<4)&p)>>2]|0,c[($+(m<<4)&p)+4>>2]|0,d[($+(m<<4)&n)+8>>0]|0)|0,ba,-2);m=m+1|0}while((m|0)<(c[(r&p)>>2]|0))}k=c[(ca&p)+8>>2]|0;t=c[(ca&p)+404>>2]|0;if(t){h=(c[(ca&p)>>2]|0)+16|0;u=k+32|0;v=k+4|0;do{r=c[(t&p)+8>>2]|0;s=c[(t&p)+12>>2]|0;Qq(ca,0,r,c[((c[((c[(h&p)>>2]|0)+(r<<4)&p)+12>>2]|0)&p)+72>>2]|0,54);r=s+1|0;wh(k,28,0,s,r)|0;q=c[(u&p)>>2]|0;l=s+-1|0;m=c[(c[(t&p)+4>>2]&p)>>2]|0;xh(k,wh(k,97,0,l,0)|0,m,0);m=q+9|0;wh(k,108,0,m,0)|0;wh(k,47,0,0,s)|0;wh(k,78,l,q+7|0,s)|0;l=c[(v&p)>>2]|0;if(l)a[(l+(((c[(u&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=16;wh(k,103,0,r,0)|0;wh(k,47,0,1,s)|0;wh(k,16,0,m,0)|0;wh(k,9,0,q+2|0,0)|0;wh(k,25,0,s,0)|0;wh(k,61,0,0,0)|0;t=c[(t&p)>>2]|0}while((t|0)!=0)}s=c[(ca&p)+316>>2]|0;if((s|0)!=0?(a[(ca&n)+23>>0]=0,(c[(s&p)>>2]|0)>0):0){r=s+4|0;q=0;do{ba=c[(r&p)>>2]|0;Rq(ca,c[(ba+(q*20|0)&p)>>2]|0,c[(ba+(q*20|0)&p)+16>>2]|0);q=q+1|0}while((q|0)<(c[(s&p)>>2]|0))}wh(B,16,0,1,0)|0}while(0);if((c[(Y&p)>>2]|0)==0?(a[(C&n)>>0]|0)==0:0){if((c[(ca&p)+404>>2]|0)!=0?(Z=ca+68|0,(c[(Z&p)>>2]|0)==0):0)c[(Z&p)>>2]=1;Ah(B,ca);c[(ca&p)+12>>2]=101;a[(ca&n)+16>>0]=0}else aa=48}else aa=48;if((aa|0)==48)c[(ca&p)+12>>2]=1;c[(ca&p)+68>>2]=0;c[(ca&p)+72>>2]=0;c[(ca&p)+76>>2]=0;c[(ca&p)+440>>2]=0;c[(ca&p)+332>>2]=0}break}case 5:{a[(ca&n)+450>>0]=0;c[(ca&p)+440>>2]=0;break}case 6:{a[(ca&n)+450>>0]=1;c[(ca&p)+440>>2]=0;break}case 221:case 218:case 108:case 97:case 85:case 83:case 81:case 68:case 31:case 28:{c[(ea&p)>>2]=0;break}case 27:{a[((c[(ca&p)>>2]|0)&n)+250>>0]=0;aa=f+(da<<4)+16|0;ba=c[(aa&p)+4>>2]|0;ca=ea;c[(ca&p)>>2]=c[(aa&p)>>2];c[(ca&p)+4>>2]=ba;break}case 222:case 219:case 107:case 84:case 69:case 30:case 29:{c[(ea&p)>>2]=1;break}case 32:{Vq(ca,f+(da+-2<<4)+16|0,f+(da+-1<<4)+16|0,a[(f+(da<<4)&n)+16>>0]|0,0);break}case 33:{ba=f+(da<<4)+16|0;Vq(ca,0,0,0,c[(ba&p)>>2]|0);Mk(c[(ca&p)>>2]|0,c[(ba&p)>>2]|0,1);break}case 34:{a[(ea&n)>>0]=0;break}case 35:{l=c[(f+(da<<4)&p)+20>>2]|0;k=c[(f+(da<<4)&p)+16>>2]|0;if((l|0)==5?(Fc(k,20456,5)|0)==0:0){a[(ea&n)>>0]=32;break a}a[(ea&n)>>0]=0;c[(ba&p)>>2]=l;c[(ba&p)+4>>2]=k;th(ca,20464,ba);break}case 59:{ba=f+(da<<4)+16|0;c[(x&p)>>2]=Zq(ca,97,0,0,ba)|0;ba=c[(ba&p)>>2]|0;c[(x&p)+4>>2]=ba;c[(x&p)+8>>2]=ba+(c[(f+(da<<4)&p)+20>>2]|0);Yq(ca,x);break}case 61:{k=c[(f+(da<<4)&p)+16>>2]|0;l=c[(ca&p)+484>>2]|0;if((l|0)!=0?(v=b[(l&o)+38>>1]|0,v<<16>>16>=1):0)a[((c[(l&p)+4>>2]|0)+(((v<<16>>16)+-1|0)*24|0)&n)+20>>0]=k;break}case 70:{c[(ea&p)>>2]=0;break}case 71:{c[(ea&p)>>2]=c[(f+(da+-1<<4)&p)+16>>2]&~c[(f+(da<<4)&p)+20>>2]|c[(f+(da<<4)&p)+16>>2];break}case 73:case 72:{c[(ea&p)>>2]=0;c[(ea&p)+4>>2]=0;break}case 74:{c[(ea&p)>>2]=c[(f+(da<<4)&p)+16>>2];c[(ea&p)+4>>2]=255;break}case 76:{c[(ea&p)>>2]=7;break}case 75:{c[(ea&p)>>2]=c[(f+(da<<4)&p)+16>>2]<<8;c[(ea&p)+4>>2]=65280;break}case 65:{br(ca,0,f+(da+-2<<4)+16|0,c[(f+(da+-1<<4)&p)+16>>2]|0,c[(f+(da<<4)&p)+16>>2]|0);break}case 66:{k=c[(f+(da<<4)&p)+16>>2]|0;l=c[(ca&p)+484>>2]|0;if((l|0)!=0?(u=c[(l&p)+16>>2]|0,(u|0)!=0):0)a[(u&n)+24>>0]=k;break}case 67:{q=c[(ca&p)+484>>2]|0;if((q|0)!=0?(D=(b[(q&o)+38>>1]|0)+-1|0,r=c[(ca&p)>>2]|0,m=Wq(r,f+(da<<4)+16|0)|0,(m|0)!=0):0){if(!(cr(ca,m)|0)){mg(r,m);break a}s=q+4|0;mg(r,c[((c[(s&p)>>2]|0)+(D*24|0)&p)+16>>2]|0);c[((c[(s&p)>>2]|0)+(D*24|0)&p)+16>>2]=m;l=c[(q&p)+8>>2]|0;if(l)do{if((b[(c[(l&p)+4>>2]&o)>>1]|0)==(D|0))c[(c[(l&p)+32>>2]&p)>>2]=c[((c[(s&p)>>2]|0)+(D*24|0)&p)+16>>2];l=c[(l&p)+20>>2]|0}while((l|0)!=0)}break}case 13:{c[(ea&p)>>2]=7;break}case 117:case 115:case 16:case 15:case 14:{c[(ea&p)>>2]=d[(f+(da<<4)&n)+14>>0];break}case 46:{ca=c[(f+(da+-3<<4)&p)+16>>2]|0;c[(ea&p)>>2]=ca;c[(ea&p)+4>>2]=(c[(f+(da<<4)&p)+16>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0)-ca;break}case 47:{ca=c[(f+(da+-5<<4)&p)+16>>2]|0;c[(ea&p)>>2]=ca;c[(ea&p)+4>>2]=(c[(f+(da<<4)&p)+16>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0)-ca;break}case 49:{ca=c[(f+(da+-1<<4)&p)+16>>2]|0;c[(ea&p)>>2]=ca;c[(ea&p)+4>>2]=(c[(f+(da<<4)&p)+16>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0)-ca;break}case 92:case 54:{aa=f+(da<<4)+16|0;ba=c[(aa&p)+4>>2]|0;ca=ca+320|0;c[(ca&p)>>2]=c[(aa&p)>>2];c[(ca&p)+4>>2]=ba;break}case 57:case 55:{Yq(ca,f+(da<<4)+16|0);break}case 56:{Yq(ca,f+(da+-1<<4)+16|0);break}case 58:{c[(y&p)>>2]=Zq(ca,157,c[(f+(da<<4)&p)+16>>2]|0,0,0)|0;c[(y&p)+4>>2]=c[(f+(da+-1<<4)&p)+16>>2];c[(y&p)+8>>2]=c[(f+(da<<4)&p)+24>>2];Yq(ca,y);break}case 18:case 17:{if((Sq(ca,22,37136,0,0)|0)==0?(B=Oq(ca)|0,(B|0)!=0):0)wh(B,3,1,0,0)|0;break}case 19:{if((Sq(ca,22,37120,0,0)|0)==0?(A=Oq(ca)|0,(A|0)!=0):0)wh(A,3,1,1,0)|0;break}case 22:{Tq(ca,0,f+(da<<4)+16|0);break}case 38:{ba=c[(f+(da+-2<<4)&p)+16>>2]|0;c[(ea&p)>>2]=ba;c[(ea&p)+4>>2]=(c[(ca&p)+504>>2]|0)-ba+(c[(ca&p)+508>>2]|0);break}case 39:{x=f+(da<<4)+16|0;v=c[(ca&p)>>2]|0;k=c[(ca&p)+484>>2]|0;d:do if(k){w=k+38|0;if((b[(w&o)>>1]|0)>=(c[(v&p)+96>>2]|0)){c[(ba&p)>>2]=c[(k&p)>>2];th(ca,36528,ba);break}u=Wq(v,x)|0;if(u){s=b[(w&o)>>1]|0;h=s<<16>>16;e:do if(s<<16>>16>0){t=a[((d[(u&n)>>0]|0)&n)+9328>>0]|0;q=c[(k&p)+4>>2]|0;r=u+1|0;l=0;while(1){m=c[(q+(l*24|0)&p)>>2]|0;if(t<<24>>24==(a[((d[(m&n)>>0]|0)&n)+9328>>0]|0)?(dd(r,m+1|0)|0)==0:0)break;l=l+1|0;if((l|0)>=(h|0))break e}c[(ba&p)>>2]=u;th(ca,36552,ba);mg(v,u);break d}else q=c[(k&p)+4>>2]|0;while(0);r=k+4|0;do if(!(h&7)){q=ro(v,q,(h*24|0)+192|0,0)|0;if(!q){mg(v,u);break d}else{c[(r&p)>>2]=q;s=b[(w&o)>>1]|0;break}}while(0);ba=s<<16>>16;aa=q+(ba*24|0)|0;c[(aa&p)>>2]=0;c[(aa&p)+4>>2]=0;c[(aa&p)+8>>2]=0;c[(aa&p)+12>>2]=0;c[(aa&p)+16>>2]=0;c[(aa&p)+20>>2]=0;c[(aa&p)>>2]=u;a[(q+(ba*24|0)&n)+21>>0]=65;a[(q+(ba*24|0)&n)+22>>0]=1;b[(w&o)>>1]=(b[(w&o)>>1]|0)+1<<16>>16}}while(0);$=x;aa=c[($&p)+4>>2]|0;ba=ea;c[(ba&p)>>2]=c[($&p)>>2];c[(ba&p)+4>>2]=aa;c[(ca&p)+324>>2]=0;break}case 62:{_q(ca,0,c[(f+(da+-1<<4)&p)+16>>2]|0,c[(f+(da<<4)&p)+16>>2]|0,c[(f+(da+-2<<4)&p)+16>>2]|0);break}case 63:{$q(ca,0,0,0,0,c[(f+(da<<4)&p)+16>>2]|0,0,0,0,0)|0;break}case 64:{ar(ca,c[(f+(da+-1<<4)&p)+16>>2]|0);break}case 279:case 263:case 262:case 261:case 260:case 259:case 258:case 257:case 256:case 247:case 150:case 141:case 131:case 130:case 48:case 45:case 42:case 41:case 40:{aa=f+(da<<4)+16|0;ba=c[(aa&p)+4>>2]|0;ca=ea;c[(ca&p)>>2]=c[(aa&p)>>2];c[(ca&p)+4>>2]=ba;break}case 44:{l=f+(da<<4)+16|0;k=c[(ca&p)+484>>2]|0;if((k|0)!=0?(J=b[(k&o)+38>>1]|0,J<<16>>16>=1):0){ba=(J<<16>>16)+-1|0;aa=c[(k&p)+4>>2]|0;ca=Wq(c[(ca&p)>>2]|0,l)|0;c[(aa+(ba*24|0)&p)+12>>2]=ca;a[(aa+(ba*24|0)&n)+21>>0]=Xq(ca,aa+(ba*24|0)+22|0)|0}break}case 226:{l=da+-1|0;k=f+(l<<4)+16|0;r=f+(da<<4)+16|0;q=pr(c[(ca&p)>>2]|0,0,k,r)|0;s=da+-3|0;m=Zq(ca,75,c[(f+(s<<4)&p)+16>>2]|0,0,0)|0;c[(ea&p)>>2]=m;if(!m){Do(c[(ca&p)>>2]|0,q);q=0}else{c[(m&p)+20>>2]=kr(ca,0,q,0,0,0,0,0,0,0)|0;q=c[(ea&p)>>2]|0;ba=q+4|0;c[(ba&p)>>2]=c[(ba&p)>>2]|2099200;yr(ca,q)}if(c[(f+(da+-2<<4)&p)+16>>2]|0)c[(ea&p)>>2]=Zq(ca,19,q,0,0)|0;c[(ea&p)+4>>2]=c[(f+(s<<4)&p)+20>>2];h=c[(r&p)>>2]|0;if(!h)h=(c[(k&p)>>2]|0)+(c[(f+(l<<4)&p)+20>>2]|0)|0;else h=h+(c[(f+(da<<4)&p)+20>>2]|0)|0;c[(ea&p)+8>>2]=h;break}case 225:{l=da+-4|0;h=Zq(ca,75,c[(f+(l<<4)&p)+16>>2]|0,0,0)|0;c[(ea&p)>>2]=h;if(!h){Mk(c[(ca&p)>>2]|0,c[(f+(da+-1<<4)&p)+16>>2]|0,1);h=0}else{c[(h&p)+20>>2]=c[(f+(da+-1<<4)&p)+16>>2];h=c[(ea&p)>>2]|0;ba=h+4|0;c[(ba&p)>>2]=c[(ba&p)>>2]|2099200;yr(ca,h)}if(c[(f+(da+-3<<4)&p)+16>>2]|0)c[(ea&p)>>2]=Zq(ca,19,h,0,0)|0;c[(ea&p)+4>>2]=c[(f+(l<<4)&p)+20>>2];c[(ea&p)+8>>2]=(c[(f+(da<<4)&p)+16>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0);break}case 227:{h=Zq(ca,20,0,0,0)|0;c[(ea&p)>>2]=h;if(!h)Mk(c[(ca&p)>>2]|0,c[(f+(da+-1<<4)&p)+16>>2]|0,1);else{c[(h&p)+20>>2]=c[(f+(da+-1<<4)&p)+16>>2];ba=h+4|0;c[(ba&p)>>2]=c[(ba&p)>>2]|2099200;yr(ca,h)}c[(ea&p)+4>>2]=c[(f+(da+-3<<4)&p)+16>>2];c[(ea&p)+8>>2]=(c[(f+(da<<4)&p)+16>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0);break}case 228:{k=Zq(ca,136,c[(f+(da+-3<<4)&p)+16>>2]|0,0,0)|0;c[(ea&p)>>2]=k;if(!k){Nk(c[(ca&p)>>2]|0,c[(f+(da+-2<<4)&p)+16>>2]|0);Gk(c[(ca&p)>>2]|0,c[(f+(da+-1<<4)&p)+16>>2]|0)}else{l=c[(f+(da+-1<<4)&p)+16>>2]|0;h=c[(f+(da+-2<<4)&p)+16>>2]|0;if(l)h=lr(ca,h,l)|0;c[(k&p)+20>>2]=h;yr(ca,c[(ea&p)>>2]|0)}c[(ea&p)+4>>2]=c[(f+(da+-4<<4)&p)+16>>2];c[(ea&p)+8>>2]=(c[(f+(da<<4)&p)+16>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0);break}case 291:case 240:{c[(ea&p)>>2]=2;break}case 241:{c[(ea&p)>>2]=0;break}case 239:{$q(ca,f+(da+-7<<4)+16|0,f+(da+-6<<4)+16|0,pr(c[(ca&p)>>2]|0,0,f+(da+-4<<4)+16|0,0)|0,c[(f+(da+-2<<4)&p)+16>>2]|0,c[(f+(da+-10<<4)&p)+16>>2]|0,f+(da+-11<<4)+16|0,c[(f+(da<<4)&p)+16>>2]|0,0,c[(f+(da+-8<<4)&p)+16>>2]|0)|0;break}case 229:{c[(ea&p)>>2]=lr(ca,lr(ca,c[(f+(da+-4<<4)&p)+16>>2]|0,c[(f+(da+-2<<4)&p)+16>>2]|0)|0,c[(f+(da<<4)&p)+16>>2]|0)|0;break}case 230:{c[(ea&p)>>2]=lr(ca,lr(ca,0,c[(f+(da+-2<<4)&p)+16>>2]|0)|0,c[(f+(da<<4)&p)+16>>2]|0)|0;break}case 237:{c[(ea&p)>>2]=lr(ca,c[(f+(da+-2<<4)&p)+16>>2]|0,c[(f+(da<<4)&p)+16>>2]|0)|0;break}case 238:{c[(ea&p)>>2]=lr(ca,0,c[(f+(da<<4)&p)+16>>2]|0)|0;break}case 245:{h=lr(ca,0,vr(ca,0,f+(da+-1<<4)+16|0,1)|0)|0;c[(ea&p)>>2]=h;mr(ca,h,f+(da+-2<<4)+16|0,1);if(h){if((c[(h&p)>>2]|0)>(c[((c[(ca&p)>>2]|0)&p)+96>>2]|0)){c[(ba&p)>>2]=20632;th(ca,34544,ba)}a[((c[(h&p)+4>>2]|0)+(((c[(h&p)>>2]|0)+-1|0)*20|0)&n)+12>>0]=c[(f+(da<<4)&p)+16>>2]}break}case 244:{h=vr(ca,0,f+(da+-1<<4)+16|0,1)|0;h=lr(ca,c[(f+(da+-4<<4)&p)+16>>2]|0,h)|0;c[(ea&p)>>2]=h;mr(ca,h,f+(da+-2<<4)+16|0,1);if(h){if((c[(h&p)>>2]|0)>(c[((c[(ca&p)>>2]|0)&p)+96>>2]|0)){c[(ba&p)>>2]=20632;th(ca,34544,ba)}a[((c[(h&p)+4>>2]|0)+(((c[(h&p)>>2]|0)+-1|0)*20|0)&n)+12>>0]=c[(f+(da<<4)&p)+16>>2]}break}case 248:{v=c[(f+(da<<4)&p)+16>>2]|0;s=c[(f+(da+-1<<4)&p)+16>>2]|0;u=c[(ca&p)>>2]|0;do if((a[(u&n)+65>>0]|0)==0?(Gn(ca)|0)==0:0){r=v+12|0;k=bq(u,c[(v&p)+16>>2]|0,c[(r&p)>>2]|0)|0;if(!k){if(!s){c[(ba&p)>>2]=v;c[(ba&p)+4>>2]=0;th(ca,33056,ba)}else zr(ca,c[(r&p)>>2]|0);a[(ca&n)+17>>0]=1;break}if(a[(k&n)+51>>0]&3){c[(ba&p)>>2]=0;th(ca,33080,ba);break}s=c[(k&p)+24>>2]|0;f:do if(s){r=c[(u&p)+20>>2]|0;if((r|0)>0){q=c[(u&p)+16>>2]|0;t=0;while(1){m=t+1|0;if((c[(q+(t<<4)&p)+12>>2]|0)==(s|0)){m=t;break f}if((m|0)<(r|0))t=m;else break}}else m=0}else m=-1e6;while(0);s=c[(k&p)+12>>2]|0;r=u+16|0;q=c[((c[(r&p)>>2]|0)+(m<<4)&p)>>2]|0;l=(m|0)==1?13184:13208;if(((Sq(ca,9,l,0,q)|0)==0?(Sq(ca,(m|0)==0?10:12,c[(k&p)>>2]|0,c[(s&p)>>2]|0,q)|0)==0:0)?(K=Oq(ca)|0,(K|0)!=0):0){aa=c[(ca&p)+408>>2]|0;aa=(aa|0)==0?ca:aa;Ar(ca,m);$=aa+328|0;c[($&p)>>2]=c[($&p)>>2]|1<>0]=d[(aa&n)>>0]|1;aa=c[(k&p)>>2]|0;c[(ba&p)>>2]=c[((c[(r&p)>>2]|0)+(m<<4)&p)>>2];c[(ba&p)+4>>2]=l;c[(ba&p)+8>>2]=aa;Br(ca,33160,ba);Cr(ca,m,28536,c[(k&p)>>2]|0);Dr(ca,m);Er(ca,c[(k&p)+40>>2]|0,m);ca=c[(k&p)>>2]|0;xh(K,wh(K,125,m,0,0)|0,ca,0)}}while(0);Do(u,v);break}case 246:{c[(ea&p)>>2]=0;c[(ea&p)+4>>2]=0;break}case 250:case 249:{h=Oq(ca)|0;if(h){wh(h,13,0,0,0)|0;ca=h+96|0;c[(ca&p)>>2]=c[(ca&p)>>2]|1}break}case 251:{Fr(ca,f+(da+-1<<4)+16|0,f+(da<<4)+16|0,0,0);break}case 252:{Fr(ca,f+(da+-3<<4)+16|0,f+(da+-2<<4)+16|0,f+(da<<4)+16|0,0);break}case 253:{Fr(ca,f+(da+-4<<4)+16|0,f+(da+-3<<4)+16|0,f+(da+-1<<4)+16|0,0);break}case 254:{Fr(ca,f+(da+-3<<4)+16|0,f+(da+-2<<4)+16|0,f+(da<<4)+16|0,1);break}case 255:{Fr(ca,f+(da+-4<<4)+16|0,f+(da+-3<<4)+16|0,f+(da+-1<<4)+16|0,1);break}case 264:{h=c[(f+(da+-3<<4)&p)+16>>2]|0;l=(c[(f+(da<<4)&p)+16>>2]|0)-h+(c[(f+(da<<4)&p)+20>>2]|0)|0;k=c[(f+(da+-1<<4)&p)+16>>2]|0;aa=ca+488|0;z=c[(aa&p)>>2]|0;A=c[(ca&p)>>2]|0;c[(aa&p)>>2]=0;g:do if((c[(ca&p)+64>>2]|0)==0&(z|0)!=0){y=c[(z&p)>>2]|0;m=z+20|0;v=c[(m&p)>>2]|0;h:do if(v){u=c[(A&p)+20>>2]|0;if((u|0)>0){s=c[(A&p)+16>>2]|0;q=0;while(1){r=q+1|0;if((c[(s+(q<<4)&p)+12>>2]|0)==(v|0))break h;if((r|0)<(u|0))q=r;else{q=r;break}}}else q=0}else q=-1e6;while(0);c[(z&p)+28>>2]=k;x=(k|0)==0;if(!x){s=k;do{c[(s&p)+4>>2]=z;s=c[(s&p)+32>>2]|0}while((s|0)!=0)}c[(_&p)>>2]=y;if(!y)s=0;else{s=y;while(1)if(!(a[(s&n)>>0]|0))break;else s=s+1|0;s=s-y&1073741823}c[(_&p)+4>>2]=s;c[($&p)>>2]=ca;w=A+16|0;v=c[(w&p)>>2]|0;c[($&p)+12>>2]=c[(v+(q<<4)&p)>>2];c[($&p)+4>>2]=c[(v+(q<<4)&p)+12>>2];c[($&p)+16>>2]=10720;c[($&p)+20>>2]=_;v=(q|0)==1;c[($&p)+8>>2]=v&1;if(!x)do{if(fr($,c[(k&p)+8>>2]|0)|0){k=0;l=z;break g}if(Gr($,c[(k&p)+20>>2]|0)|0){k=0;l=z;break g}if(Hr($,c[(k&p)+24>>2]|0)|0){k=0;l=z;break g}k=c[(k&p)+32>>2]|0}while((k|0)!=0);if(!(Gr($,c[(z&p)+12>>2]|0)|0)){s=A+145|0;if(!(a[(s&n)>>0]|0)){r=Oq(ca)|0;if(!r){k=0;l=z;break}aa=c[(ca&p)+408>>2]|0;Ar(ca,q);aa=((aa|0)==0?ca:aa)+328|0;c[(aa&p)>>2]=c[(aa&p)>>2]|1<>0]=0}else t=0;aa=c[(z&p)+4>>2]|0;c[(ba&p)>>2]=c[((c[(w&p)>>2]|0)+(q<<4)&p)>>2];c[(ba&p)+4>>2]=v?13184:13208;c[(ba&p)+8>>2]=y;c[(ba&p)+12>>2]=aa;c[(ba&p)+16>>2]=t;Br(ca,30008,ba);mg(A,t);Dr(ca,q);c[(ba&p)>>2]=y;Ir(r,q,uh(A,30072,ba)|0);if(!(a[(s&n)>>0]|0)){k=0;l=z;break}}l=Ik((c[((c[(w&p)>>2]|0)+(q<<4)&p)+12>>2]|0)+40|0,y,z)|0;if(l){a[(A&n)+65>>0]=1;k=0;break}k=c[(m&p)>>2]|0;if((k|0)==(c[(z&p)+24>>2]|0)){k=bn(k+8|0,c[(z&p)+4>>2]|0,ba)|0;if(!k)k=0;else k=c[(k&p)+8>>2]|0;k=k+64|0;c[(z&p)+32>>2]=c[(k&p)>>2];c[(k&p)>>2]=z;k=0}else k=0}else{k=0;l=z}}else l=z;while(0);jg(A,l);Fk(A,k);break}case 265:{D=f+(da+-7<<4)+16|0;C=da+-6|0;E=f+(C<<4)+16|0;r=c[(f+(da+-5<<4)&p)+16>>2]|0;F=da+-4|0;B=c[(f+(F<<4)&p)+16>>2]|0;F=c[(f+(F<<4)&p)+20>>2]|0;H=c[(f+(da+-2<<4)&p)+16>>2]|0;I=c[(f+(da<<4)&p)+16>>2]|0;k=c[(f+(da+-8<<4)&p)+16>>2]|0;J=c[(ca&p)>>2]|0;z=(c[(f+(da+-10<<4)&p)+16>>2]|0)!=0;do if(z)if(!(c[(f+(C<<4)&p)+20>>2]|0)){c[($&p)>>2]=D;if(!H){s=0;t=0;break}else{v=1;aa=483;break}}else{th(ca,29664,ba);s=0;t=0;break}else{v=er(ca,D,E,$)|0;if((v|0)>-1&(H|0)!=0)aa=483;else{s=0;t=0}}while(0);do if((aa|0)==483){h=J+65|0;if(!(a[(h&n)>>0]|0)){x=J+145|0;if((a[(x&n)>>0]|0)!=0&(v|0)!=1){aa=H+12|0;mg(J,c[(aa&p)>>2]|0);c[(aa&p)>>2]=0}w=Jr(ca,H)|0;if((a[(x&n)>>0]|0)==0?((w|0)!=0?(c[(f+(C<<4)&p)+20>>2]|0)==0:0):0)v=(c[(w&p)+68>>2]|0)==(c[((c[(J&p)+16>>2]|0)&p)+28>>2]|0)?1:v;if((a[(h&n)>>0]|0)==0?(R=c[($&p)>>2]|0,aa=c[(ca&p)>>2]|0,c[(_&p)>>2]=ca,aa=c[(aa&p)+16>>2]|0,c[(_&p)+12>>2]=c[(aa+(v<<4)&p)>>2],c[(_&p)+4>>2]=c[(aa+(v<<4)&p)+12>>2],c[(_&p)+16>>2]=10720,c[(_&p)+20>>2]=R,c[(_&p)+8>>2]=(v|0)==1&1,(Kr(_,H)|0)==0):0){x=Jr(ca,H)|0;if(!x){if((a[(J&n)+144>>0]|0)!=1){s=0;t=0;break}a[(J&n)+146>>0]=1;s=0;t=0;break}if(a[(x&n)+44>>0]&16){th(ca,29712,ba);s=0;t=0;break}t=Wq(J,R)|0;if(t)if(!(Lr(ca,t)|0)){A=J+16|0;aa=bn((c[((c[(A&p)>>2]|0)+(v<<4)&p)+12>>2]|0)+40|0,t,S)|0;if((aa|0)!=0?(c[(aa&p)+8>>2]|0)!=0:0)if(!k){c[(ba&p)>>2]=R;th(ca,29760,ba);s=0;break}else{Ar(ca,v);s=0;break}y=c[(x&p)>>2]|0;if(!(Fc(y,25568,7)|0)){th(ca,29792,ba);s=ca+64|0;c[(s&p)>>2]=(c[(s&p)>>2]|0)+1;s=0;break}u=c[(x&p)+12>>2]|0;if((u|0)!=0&(r|0)!=49){c[(ba&p)>>2]=(r|0)==35?29872:29880;c[(ba&p)+4>>2]=H;c[(ba&p)+8>>2]=0;th(ca,29832,ba);s=0;break}q=(r|0)==49;if((u|0)==0&q){c[(ba&p)>>2]=H;c[(ba&p)+4>>2]=0;th(ca,29888,ba);s=0;break}m=x+68|0;x=c[(m&p)>>2]|0;i:do if(x){w=c[(J&p)+20>>2]|0;if((w|0)>0){k=c[(A&p)>>2]|0;l=0;while(1){h=l+1|0;if((c[(k+(l<<4)&p)+12>>2]|0)==(x|0)){h=l;break i}if((h|0)<(w|0))l=h;else break}}else h=0}else h=-1e6;while(0);x=c[(A&p)>>2]|0;k=c[(x+(h<<4)&p)>>2]|0;if(z)w=c[(x&p)+16>>2]|0;else w=k;x=(h|0)==1;if((Sq(ca,x|z?5:7,t,y,w)|0)==0?(Sq(ca,18,x?13184:13208,0,k)|0)==0:0){s=mh(J,36,0)|0;if(!s){s=0;break}y=s+0|0;k=y+36|0;do{a[(y&n)>>0]=0;y=y+1|0}while((y|0)<(k|0));c[(s&p)>>2]=t;c[(s&p)+4>>2]=kh(J,c[(H&p)+16>>2]|0)|0;c[(s&p)+20>>2]=c[((c[(A&p)>>2]|0)+(v<<4)&p)+12>>2];c[(s&p)+24>>2]=c[(m&p)>>2];a[(s&n)+8>>0]=B;a[(s&n)+9>>0]=q|(r|0)==35?1:2;c[(s&p)+12>>2]=Mr(J,I,1,0)|0;c[(s&p)+16>>2]=Nr(J,F)|0;c[(ca&p)+488>>2]=s;t=0}else s=0}else s=0;else{s=0;t=0}}else{s=0;t=0}}else{s=0;t=0}}while(0);mg(J,t);Do(J,H);Hk(J,F);Gk(J,I);if(!(c[(ca&p)+488>>2]|0))jg(J,s);if(!(c[(f+(C<<4)&p)+20>>2]|0)){aa=D;ba=c[(aa&p)+4>>2]|0;ca=ea;c[(ca&p)>>2]=c[(aa&p)>>2];c[(ca&p)+4>>2]=ba;break a}else{aa=E;ba=c[(aa&p)+4>>2]|0;ca=ea;c[(ca&p)>>2]=c[(aa&p)>>2];c[(ca&p)+4>>2]=ba;break a}}case 269:case 266:{c[(ea&p)>>2]=35;break}case 267:{c[(ea&p)>>2]=31;break}case 268:{c[(ea&p)>>2]=49;break}case 284:{l=c[(ca&p)>>2]|0;k=c[(f+(da+-1<<4)&p)+16>>2]|0;h=c[(f+(da<<4)&p)+16>>2]|0;m=a[(f+(da+-5<<4)&n)+16>>0]|0;q=Or(l,110,f+(da+-4<<4)+16|0)|0;if(q){c[(q&p)+24>>2]=Pr(l,k,1)|0;c[(q&p)+20>>2]=Mr(l,h,1,0)|0;a[(q&n)+1>>0]=m}Nk(l,k);Gk(l,h);c[(ea&p)>>2]=q;break}case 271:case 270:{c[(ea&p)>>2]=d[(f+(da<<4)&n)+14>>0];c[(ea&p)+4>>2]=0;break}case 272:{c[(ea&p)>>2]=110;c[(ea&p)+4>>2]=c[(f+(da<<4)&p)+16>>2];break}case 296:case 275:{c[(ea&p)>>2]=0;break}case 297:case 276:{c[(ea&p)>>2]=c[(f+(da<<4)&p)+16>>2];break}case 277:{ba=f+(da+-1<<4)+16|0;ca=f+(da+-2<<4)+16|0;c[((c[((c[(ca&p)>>2]|0)&p)+36>>2]|0)&p)+32>>2]=c[(ba&p)>>2];c[((c[(ca&p)>>2]|0)&p)+36>>2]=c[(ba&p)>>2];c[(ea&p)>>2]=c[(ca&p)>>2];break}case 278:{ca=f+(da+-1<<4)+16|0;ba=c[(ca&p)>>2]|0;c[(ba&p)+36>>2]=ba;c[(ea&p)>>2]=c[(ca&p)>>2];break}case 282:{th(ca,20736,ba);break}case 280:{_=f+(da<<4)+16|0;$=c[(_&p)+4>>2]|0;aa=ea;c[(aa&p)>>2]=c[(_&p)>>2];c[(aa&p)+4>>2]=$;th(ca,20640,ba);break}case 283:{th(ca,20824,ba);break}case 286:{h=c[(ca&p)>>2]|0;k=c[(f+(da<<4)&p)+16>>2]|0;l=Or(h,109,f+(da+-2<<4)+16|0)|0;if(l){c[(l&p)+20>>2]=Mr(h,k,1,0)|0;a[(l&n)+1>>0]=10}Gk(h,k);c[(ea&p)>>2]=l;break}case 287:{l=c[(ca&p)>>2]|0;q=c[(f+(da<<4)&p)+16>>2]|0;h=mh(l,40,0)|0;if(!h){Mk(l,q,1);h=0}else{y=h+0|0;k=y+40|0;do{a[(y&n)>>0]=0;y=y+1|0}while((y|0)<(k|0));a[(h&n)>>0]=119;c[(h&p)+8>>2]=q;a[(h&n)+1>>0]=10}c[(ea&p)>>2]=h;break}case 285:{q=c[(ca&p)>>2]|0;m=c[(f+(da+-1<<4)&p)+16>>2]|0;l=c[(f+(da<<4)&p)+16>>2]|0;k=a[(f+(da+-4<<4)&n)+16>>0]|0;h=Or(q,108,f+(da+-2<<4)+16|0)|0;if(!h)Hk(q,m);else{c[(h&p)+8>>2]=gr(q,l,1)|0;c[(h&p)+28>>2]=m;a[(h&n)+1>>0]=k}Mk(q,l,1);c[(ea&p)>>2]=h;break}case 288:{h=Zq(ca,57,0,0,0)|0;c[(ea&p)>>2]=h;if(h)a[(h&n)+1>>0]=4;c[(ea&p)+4>>2]=c[(f+(da+-3<<4)&p)+16>>2];c[(ea&p)+8>>2]=(c[(f+(da<<4)&p)+16>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0);break}case 289:{h=Zq(ca,57,0,0,f+(da+-1<<4)+16|0)|0;c[(ea&p)>>2]=h;if(h)a[(h&n)+1>>0]=c[(f+(da+-3<<4)&p)+16>>2];c[(ea&p)+4>>2]=c[(f+(da+-5<<4)&p)+16>>2];c[(ea&p)+8>>2]=(c[(f+(da<<4)&p)+16>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0);break}case 290:{c[(ea&p)>>2]=1;break}case 292:{c[(ea&p)>>2]=3;break}case 293:{k=c[(f+(da<<4)&p)+16>>2]|0;h=c[(f+(da+-1<<4)&p)+16>>2]|0;w=c[(ca&p)>>2]|0;do if((a[(w&n)+65>>0]|0)==0?(Gn(ca)|0)==0:0){x=c[(k&p)+12>>2]|0;v=c[(k&p)+16>>2]|0;u=w+20|0;if((c[(u&p)>>2]|0)>0){q=(x|0)==0;m=w+16|0;l=0;s=0;do{r=(l|0)<2^l;t=c[(m&p)>>2]|0;if(!(!q?(dd(c[(t+(r<<4)&p)>>2]|0,x)|0)!=0:0)){t=bn((c[(t+(r<<4)&p)+12>>2]|0)+40|0,v,L)|0;if(t){s=c[(t&p)+8>>2]|0;if(s)break}else s=0}l=l+1|0}while((l|0)<(c[(u&p)>>2]|0));if(s){Qr(ca,s);break}}if(!h){c[(ba&p)>>2]=k;c[(ba&p)+4>>2]=0;th(ca,29600,ba)}else zr(ca,x);a[(ca&n)+17>>0]=1}while(0);Do(w,k);break}case 294:{ba=c[(f+(da+-3<<4)&p)+16>>2]|0;Rr(ca,24,29360,ba,ba,c[(f+(da+-1<<4)&p)+16>>2]|0,c[(f+(da<<4)&p)+16>>2]|0);break}case 303:{Tr(ca,f+(da+-1<<4)+16|0,f+(da<<4)+16|0);break}case 304:{z=c[(f+(da+-3<<4)&p)+16>>2]|0;x=f+(da<<4)+16|0;y=c[(ca&p)>>2]|0;k=y+24|0;l=c[(k&p)>>2]|0;do if((a[(y&n)+65>>0]|0)==0?(X=Ur(ca,0,z+8|0)|0,(X|0)!=0):0){t=c[(ca&p)>>2]|0;A=X+68|0;v=c[(A&p)>>2]|0;j:do if(v){u=c[(t&p)+20>>2]|0;if((u|0)>0){t=c[(t&p)+16>>2]|0;r=0;while(1){s=r+1|0;if((c[(t+(r<<4)&p)+12>>2]|0)==(v|0)){s=r;break j}if((s|0)<(u|0))r=s;else break}}else s=0}else s=-1e6;while(0);h=c[((c[(y&p)+16>>2]|0)+(s<<4)&p)>>2]|0;c[(k&p)>>2]=c[(k&p)>>2]|2097152;q=Wq(y,x)|0;if(q){if((_h(y,q,h)|0)==0?(bq(y,q,h)|0)==0:0){if(Vr(ca,c[(X&p)>>2]|0)|0)break;if(Lr(ca,q)|0)break;t=c[(X&p)>>2]|0;if(c[(X&p)+12>>2]|0){c[(ba&p)>>2]=t;th(ca,26088,ba);break}if(Sq(ca,26,h,t,0)|0)break;if(hr(ca,X)|0)break;if(!(a[(X&n)+44>>0]&16))m=0;else{t=c[(X&p)+60>>2]|0;k:do if(!t)t=0;else while(1){if((c[(t&p)>>2]|0)==(y|0))break k;t=c[(t&p)+24>>2]|0;if(!t){t=0;break}}while(0);m=(c[((c[(c[(t&p)+8>>2]&p)>>2]|0)&p)+76>>2]|0)==0?0:t}t=Oq(ca)|0;if(!t)break;aa=(m|0)!=0;r=ca+408|0;$=c[(r&p)>>2]|0;$=($|0)==0?ca:$;Ar(ca,s);_=$+328|0;c[(_&p)>>2]=c[(_&p)>>2]|1<>0]=d[($&n)>>0]|aa&1;Dr(ca,s);if(aa){$=ca+72|0;aa=(c[($&p)>>2]|0)+1|0;c[($&p)>>2]=aa;xh(t,wh(t,97,0,aa,0)|0,q,0);xh(t,wh(t,152,aa,0,0)|0,m,-10);aa=c[(r&p)>>2]|0;a[(((aa|0)==0?ca:aa)&n)+21>>0]=1}x=c[(X&p)>>2]|0;w=Nn(x,-1)|0;do if((c[(k&p)>>2]&524288|0)!=0?(T=bn((c[(A&p)>>2]|0)+56|0,x,V)|0,(T|0)!=0):0){t=c[(T&p)+8>>2]|0;if(!t)break;r=t;t=0;do{t=Wr(c[(ca&p)>>2]|0,t,c[(c[(r&p)>>2]&p)>>2]|0)|0;r=c[(r&p)+12>>2]|0}while((r|0)!=0);if(!t)break;c[(ba&p)>>2]=h;c[(ba&p)+4>>2]=(s|0)==1?13184:13208;c[(ba&p)+8>>2]=x;c[(ba&p)+12>>2]=q;c[(ba&p)+16>>2]=t;Br(ca,26120,ba);mg(y,t)}while(0);c[(ba&p)>>2]=h;c[(ba&p)+4>>2]=(s|0)==1?13184:13208;c[(ba&p)+8>>2]=q;c[(ba&p)+12>>2]=q;c[(ba&p)+16>>2]=q;c[(ba&p)+20>>2]=q;c[(ba&p)+24>>2]=q;c[(ba&p)+28>>2]=w;c[(ba&p)+32>>2]=x;Br(ca,26192,ba);if(_h(y,26576,h)|0){aa=c[(X&p)>>2]|0;c[(ba&p)>>2]=h;c[(ba&p)+4>>2]=q;c[(ba&p)+8>>2]=aa;Br(ca,26592,ba)}s=Xr(ca,X)|0;if(s){c[(ba&p)>>2]=q;c[(ba&p)+4>>2]=q;c[(ba&p)+8>>2]=s;Br(ca,26656,ba);mg(y,s)}do if(c[(k&p)>>2]&524288){s=bn((c[(A&p)>>2]|0)+56|0,c[(X&p)>>2]|0,ba)|0;if(!s)break;s=c[(s&p)+8>>2]|0;if(!s)break;do{r=c[(s&p)>>2]|0;if((r|0)!=(X|0))Yr(ca,r,c[(r&p)>>2]|0);s=c[(s&p)+12>>2]|0}while((s|0)!=0)}while(0);Yr(ca,X,q);break}c[(ba&p)>>2]=q;th(ca,26024,ba)}else q=0}else q=0;while(0);Do(y,z);mg(y,q);c[(k&p)>>2]=l;break}case 295:{ba=c[(f+(da<<4)&p)+16>>2]|0;Rr(ca,25,29176,ba,0,0,ba);break}case 300:{Sr(ca,0,0);break}case 302:{Tr(ca,0,0);break}case 301:{Sr(ca,f+(da+-1<<4)+16|0,f+(da<<4)+16|0);break}case 305:{y=c[(ca&p)>>2]|0;if((c[(ca&p)+64>>2]|0)==0?(M=y+65|0,(a[(M&n)>>0]|0)==0):0){l=c[(ca&p)+484>>2]|0;t=c[(l&p)+68>>2]|0;l:do if(t){s=c[(y&p)+20>>2]|0;if((s|0)>0){r=c[(y&p)+16>>2]|0;m=0;while(1){q=m+1|0;if((c[(r+(m<<4)&p)+12>>2]|0)==(t|0)){A=m;break l}if((q|0)<(s|0))m=q;else{A=q;break}}}else A=0}else A=-1e6;while(0);h=c[((c[(y&p)+16>>2]|0)+(A<<4)&p)>>2]|0;k=(c[(l&p)>>2]|0)+16|0;u=(b[(l&o)+38>>1]|0)+-1|0;s=c[(l&p)+4>>2]|0;t=c[(s+(u*24|0)&p)+4>>2]|0;z=_h(y,k,h)|0;if(!(Sq(ca,26,h,c[(z&p)>>2]|0,0)|0)){if(!t)v=0;else v=(a[(t&n)>>0]|0)==101?0:t;if(a[(s+(u*24|0)&n)+23>>0]&1){th(ca,25608,ba);break a}if(c[(l&p)+8>>2]|0){th(ca,25640,ba);break a}x=y+24|0;if((c[(x&p)>>2]&524288|0)!=0?(c[(l&p)+16>>2]|0)!=0&(v|0)!=0:0){th(ca,25672,ba);break a}w=(v|0)!=0;if(!((a[(s+(u*24|0)&n)+20>>0]|0)==0|w)){th(ca,25736,ba);break a}do if(w){c[(O&p)>>2]=0;if(Zr(y,v,1,65,O)|0){a[(M&n)>>0]=1;break a}t=c[(O&p)>>2]|0;if(!t){th(ca,25792,ba);break a}else{Mh(t);break}}while(0);t=c[(f+(da<<4)&p)+16>>2]|0;s=f+(da<<4)+20|0;r=c[(s&p)>>2]|0;if((t|0)!=0?(U=jw(r|0,0,1,0)|0,U=mh(y,U,G)|0,(U|0)!=0):0){kw(U|0,t|0,r|0)|0;a[(U+r&n)>>0]=0;t=(c[(s&p)>>2]|0)+-1|0;s=c[(x&p)>>2]|0;m:do if((t|0)>0){t=U+t|0;do{$=a[(t&n)>>0]|0;if($<<24>>24!=59?(a[($&255&n)+10368>>0]&1)==0:0)break m;a[(t&n)>>0]=0;t=t+-1|0}while(t>>>0>U>>>0)}while(0);c[(x&p)>>2]=c[(x&p)>>2]|2097152;$=c[(l&p)+48>>2]|0;c[(ba&p)>>2]=h;c[(ba&p)+4>>2]=(A|0)==1?13184:13208;c[(ba&p)+8>>2]=$;c[(ba&p)+12>>2]=U;c[(ba&p)+16>>2]=$+1;c[(ba&p)+20>>2]=k;Br(ca,25840,ba);mg(y,U);c[(x&p)>>2]=s}t=w?3:2;v=Oq(ca)|0;if(v){s=ca+19|0;q=a[(s&n)>>0]|0;do if(q<<24>>24){ba=q+-1<<24>>24;a[(s&n)>>0]=ba;r=c[(ca+((ba&255)<<2)&p)+24>>2]|0;if(!(ba<<24>>24)){s=c[(ca&p)+72>>2]|0;aa=663;break}else{k=q+-2<<24>>24;a[(s&n)>>0]=k;k=c[(ca+((k&255)<<2)&p)+24>>2]|0;break}}else{r=ca+72|0;s=(c[(r&p)>>2]|0)+1|0;c[(r&p)>>2]=s;r=s;aa=663}while(0);if((aa|0)==663){k=s+1|0;c[(ca&p)+72>>2]=k}wh(v,51,A,r,2)|0;m=v+96|0;c[(m&p)>>2]=c[(m&p)>>2]|1<>2]|0;s=v+32|0;if(q)a[(q+(((c[(s&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=-112;wh(v,52,A,2,k)|0;s=c[(s&p)>>2]|0;if(s>>>0>m>>>0)c[((c[(l&p)>>2]|0)+(m*20|0)&p)+8>>2]=s;c[((c[(v&p)+24>>2]|0)&p)+88>>2]=s+-1;_r(ca,r);_r(ca,k)}Yr(ca,z,c[(z&p)>>2]|0)}}break}case 306:{w=c[(ca&p)>>2]|0;a[(w&n)+250>>0]=0;h=c[(f+(da<<4)&p)+16>>2]|0;x=w+65|0;do if((a[(x&n)>>0]|0)==0?(Q=Ur(ca,0,h+8|0)|0,(Q|0)!=0):0){if(a[(Q&n)+44>>0]&16){th(ca,25400,ba);break}if(c[(Q&p)+12>>2]|0){th(ca,25440,ba);break}if(!(Vr(ca,c[(Q&p)>>2]|0)|0)){s=c[(Q&p)+68>>2]|0;n:do if(s){r=c[(w&p)+20>>2]|0;if((r|0)>0){q=c[(w&p)+16>>2]|0;t=0;while(1){m=t+1|0;if((c[(q+(t<<4)&p)+12>>2]|0)==(s|0)){m=t;break n}if((m|0)<(r|0))t=m;else break}}else m=0}else m=-1e6;while(0);v=mh(w,76,0)|0;if(v){y=v+0|0;k=y+76|0;do{a[(y&n)>>0]=0;y=y+1|0}while((y|0)<(k|0));c[(ca&p)+484>>2]=v;r=v+40|0;b[(r&o)>>1]=1;t=b[(Q&o)+38>>1]|0;q=v+38|0;b[(q&o)>>1]=t;t=((((t<<16>>16)+-1|0)/8|0)*192|0)+192|0;s=mh(w,t,0)|0;if(s)fw(s|0,0,t|0)|0;t=v+4|0;c[(t&p)>>2]=s;c[(ba&p)>>2]=c[(Q&p)>>2];ba=uh(w,25472,ba)|0;c[(v&p)>>2]=ba;s=c[(t&p)>>2]|0;if((s|0)==0|(ba|0)==0){a[(x&n)>>0]=1;break}kw(s|0,c[(Q&p)+4>>2]|0,(b[(q&o)>>1]|0)*24|0)|0;if((b[(q&o)>>1]|0)>0){s=0;do{ba=c[(t&p)>>2]|0;aa=ba+(s*24|0)|0;c[(aa&p)>>2]=kh(w,c[(aa&p)>>2]|0)|0;ba=ba+(s*24|0)+4|0;s=s+1|0;c[(ba&p)>>2]=0;c[(ba&p)+4>>2]=0;c[(ba&p)+8>>2]=0;c[(ba&p)+12>>2]=0}while((s|0)<(b[(q&o)>>1]|0))}c[(v&p)+68>>2]=c[((c[(w&p)+16>>2]|0)+(m<<4)&p)+12>>2];c[(v&p)+48>>2]=c[(Q&p)+48>>2];b[(r&o)>>1]=1;ba=c[(ca&p)+408>>2]|0;Ar(ca,m);ba=((ba|0)==0?ca:ba)+328|0;c[(ba&p)>>2]=c[(ba&p)>>2]|1<>2]|0);t=c[(ca&p)+484>>2]|0;if(t){h=c[(ca&p)>>2]|0;s=c[(t&p)+68>>2]|0;o:do if(s){r=c[(h&p)+20>>2]|0;if((r|0)>0){m=c[(h&p)+16>>2]|0;l=0;while(1){q=l+1|0;if((c[(m+(l<<4)&p)+12>>2]|0)==(s|0)){q=l;break o}if((q|0)<(r|0))l=q;else break}}else q=0}else q=-1e6;while(0);l=t+44|0;a[(l&n)>>0]=d[(l&n)>>0]|16;c[(t&p)+52>>2]=0;as(h,t,Wq(h,k)|0);as(h,t,0);as(h,t,kh(h,c[(t&p)>>2]|0)|0);c[(ca&p)+500>>2]=(c[(k&p)>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0)-(c[(ca&p)+496>>2]|0);l=c[(t&p)+56>>2]|0;if(l)Sq(ca,29,c[(t&p)>>2]|0,c[(l&p)>>2]|0,c[((c[((c[(ca&p)>>2]|0)&p)+16>>2]|0)+(q<<4)&p)>>2]|0)|0}break}case 322:{c[(ea&p)>>2]=0;break}case 324:case 323:{c[(ea&p)>>2]=c[(f+(da<<4)&p)+16>>2];break}case 325:{c[(ea&p)>>2]=cs(ca,0,f+(da+-5<<4)+16|0,c[(f+(da+-4<<4)&p)+16>>2]|0,c[(f+(da+-1<<4)&p)+16>>2]|0)|0;break}case 326:{c[(ea&p)>>2]=cs(ca,c[(f+(da+-7<<4)&p)+16>>2]|0,f+(da+-5<<4)+16|0,c[(f+(da+-4<<4)&p)+16>>2]|0,c[(f+(da+-1<<4)&p)+16>>2]|0)|0;break}case 314:{bs(ca);c[(ca&p)+512>>2]=0;c[(ca&p)+516>>2]=0;break}case 318:case 317:case 316:{l=ca+512|0;k=c[(l&p)>>2]|0;h=c[(f+(da<<4)&p)+16>>2]|0;if(!k){c[(l&p)>>2]=h;h=c[(f+(da<<4)&p)+20>>2]|0}else h=h+(c[(f+(da<<4)&p)+20>>2]|0)-k|0;c[(ca&p)+516>>2]=h;break}case 77:{c[(ea&p)>>2]=8;break}case 78:{c[(ea&p)>>2]=9;break}case 79:{c[(ea&p)>>2]=6;break}case 80:{c[(ea&p)>>2]=0;break}case 103:case 100:case 98:case 82:{c[(ea&p)>>2]=c[(f+(da<<4)&p)+16>>2];break}case 86:{c[(ea&p)+4>>2]=0;c[(ea&p)>>2]=0;break}case 87:{aa=f+(da+-1<<4)+16|0;ba=c[(aa&p)+4>>2]|0;ca=ea;c[(ca&p)>>2]=c[(aa&p)>>2];c[(ca&p)+4>>2]=ba;break}case 90:{c[(ca&p)+324>>2]=0;break}case 109:{h=da+-7|0;r=f+(da+-3<<4)+16|0;q=f+(da+-2<<4)+16|0;x=c[(f+(da<<4)&p)+16>>2]|0;t=c[(f+(da+-6<<4)&p)+16>>2]|0;s=c[(f+(da+-4<<4)&p)+16>>2]|0;c[(I&p)>>2]=0;w=c[(ca&p)>>2]|0;if((c[(ca&p)+440>>2]|0)>0){th(ca,35440,ba);Mk(w,x,1);break a}Uq(ca,r,q,t,1,0,s);l=c[(ca&p)+484>>2]|0;if((l|0)!=0?(c[(ca&p)+64>>2]|0)==0:0){er(ca,r,q,I)|0;t=c[(l&p)+68>>2]|0;p:do if(t){r=c[(w&p)+20>>2]|0;if((r|0)>0){q=c[(w&p)+16>>2]|0;m=0;while(1){s=m+1|0;if((c[(q+(m<<4)&p)+12>>2]|0)==(t|0)){s=m;break p}if((s|0)<(r|0))m=s;else break}}else s=0}else s=-1e6;while(0);ba=c[(I&p)>>2]|0;aa=c[(ca&p)>>2]|0;c[(_&p)>>2]=ca;aa=c[(aa&p)+16>>2]|0;c[(_&p)+12>>2]=c[(aa+(s<<4)&p)>>2];c[(_&p)+4>>2]=c[(aa+(s<<4)&p)+12>>2];c[(_&p)+16>>2]=35480;c[(_&p)+20>>2]=ba;c[(_&p)+8>>2]=(s|0)==1&1;if(fr(_,x)|0){Mk(w,x,1);break a}c[(l&p)+12>>2]=gr(w,x,1)|0;Mk(w,x,1);if(a[(w&n)+65>>0]|0)break a;if(!(a[(w&n)+145>>0]|0))hr(ca,l)|0;q=ca+504|0;m=c[(q&p)>>2]|0;q=c[(q&p)+4>>2]|0;ba=$;c[(ba&p)>>2]=m;c[(ba&p)+4>>2]=q;ba=a[(m&n)>>0]|0;if(!(ba<<24>>24==59|ba<<24>>24==0)){m=m+q|0;c[($&p)>>2]=m}r=$+4|0;c[(r&p)>>2]=0;s=c[(f+(h<<4)&p)+16>>2]|0;q=m-s|0;do{ba=q;q=q+-1|0;l=s+q|0;if((ba|0)<=0)break}while((a[((d[(l&n)>>0]|0)&n)+10368>>0]&1)!=0);c[($&p)>>2]=l;c[(r&p)>>2]=1;Vq(ca,0,$,0,0);break a}Mk(w,x,1);break}case 93:{_q(ca,c[(f+(da+-3<<4)&p)+16>>2]|0,c[(f+(da<<4)&p)+16>>2]|0,c[(f+(da+-2<<4)&p)+16>>2]|0,0);break}case 94:{$q(ca,0,0,0,c[(f+(da+-2<<4)&p)+16>>2]|0,c[(f+(da<<4)&p)+16>>2]|0,0,0,0,0)|0;break}case 95:{ar(ca,c[(f+(da+-2<<4)&p)+16>>2]|0);break}case 96:{br(ca,c[(f+(da+-6<<4)&p)+16>>2]|0,f+(da+-3<<4)+16|0,c[(f+(da+-2<<4)&p)+16>>2]|0,c[(f+(da+-1<<4)&p)+16>>2]|0);k=c[(f+(da<<4)&p)+16>>2]|0;l=c[(ca&p)+484>>2]|0;if((l|0)!=0?(q=c[(l&p)+16>>2]|0,(q|0)!=0):0)a[(q&n)+24>>0]=k;break}case 99:{c[(ea&p)>>2]=10;break}case 101:{a[(ea&n)>>0]=10;break}case 102:{a[(ea&n)>>0]=c[(f+(da<<4)&p)+16>>2];break}case 104:{c[(ea&p)>>2]=4;break}case 105:{c[(ea&p)>>2]=5;break}case 106:{dr(ca,c[(f+(da<<4)&p)+16>>2]|0,0,c[(f+(da+-1<<4)&p)+16>>2]|0);break}case 110:{dr(ca,c[(f+(da<<4)&p)+16>>2]|0,1,c[(f+(da+-1<<4)&p)+16>>2]|0);break}case 111:{c[(z&p)>>2]=c[5124];c[(z&p)+4>>2]=c[5125];c[(z&p)+8>>2]=c[5126];c[(z&p)+12>>2]=c[5127];c[(z&p)+16>>2]=c[5128];ba=f+(da<<4)+16|0;ir(ca,c[(ba&p)>>2]|0,z)|0;Mk(c[(ca&p)>>2]|0,c[(ba&p)>>2]|0,1);break}case 112:{t=c[(f+(da<<4)&p)+16>>2]|0;do if(t){c[(t&p)+68>>2]=c[(f+(da+-1<<4)&p)+16>>2];l=c[(t&p)+52>>2]|0;if(l){m=128;q=1;r=t;s=0;while(1){c[(r&p)+56>>2]=s;$=r+6|0;aa=e[($&o)>>1]|64;b[($&o)>>1]=aa;m=aa&m;if(!l)break;aa=l;l=c[(l&p)+52>>2]|0;q=q+1|0;s=r;r=aa}if(m){ca=t+6|0;b[(ca&o)>>1]=e[(ca&o)>>1]|256;break}aa=c[((c[(ca&p)>>2]|0)&p)+104>>2]|0;if((aa|0)>0&(q|0)>(aa|0))th(ca,20520,ba)}}else Qn(c[(ca&p)>>2]|0,c[(f+(da+-1<<4)&p)+16>>2]|0);while(0);c[(ea&p)>>2]=t;break}case 116:{c[(ea&p)>>2]=116;break}case 119:case 113:{c[(ea&p)>>2]=c[(f+(da<<4)&p)+16>>2];break}case 114:{h=c[(f+(da<<4)&p)+16>>2]|0;do if(h){if(c[(h&p)+52>>2]|0){c[(l&p)+4>>2]=0;h=kr(ca,0,jr(ca,0,0,0,l,h,0,0)|0,0,0,0,0,0,0,0)|0;if(!h){aa=192;break}}ba=c[(f+(da+-1<<4)&p)+16>>2]|0;a[(h&n)+4>>0]=ba;c[(h&p)+52>>2]=c[(f+(da+-2<<4)&p)+16>>2];if((ba|0)!=116)a[(ca&n)+22>>0]=1}else aa=192;while(0);if((aa|0)==192){Mk(c[(ca&p)>>2]|0,c[(f+(da+-2<<4)&p)+16>>2]|0,1);h=0}c[(ea&p)>>2]=h;break}case 121:{h=kr(ca,c[(f+(da+-1<<4)&p)+16>>2]|0,0,0,0,0,0,128,0,0)|0;if(!h){c[(ea&p)>>2]=c[(f+(da+-4<<4)&p)+16>>2];break a}else{a[(h&n)+4>>0]=116;c[(h&p)+52>>2]=c[(f+(da+-4<<4)&p)+16>>2];c[(ea&p)>>2]=h;break a}}case 122:{b[(ea&o)>>1]=1;break}case 124:case 123:{b[(ea&o)>>1]=0;break}case 242:case 236:case 161:case 154:case 126:{c[(ea&p)>>2]=0;break}case 243:case 125:{c[(ea&p)>>2]=c[(f+(da+-1<<4)&p)+16>>2];break}case 167:{c[(ea&p)>>2]=c[(f+(da+-2<<4)&p)+16>>2];c[(ea&p)+4>>2]=c[(f+(da<<4)&p)+16>>2];break}case 168:{c[(ea&p)+4>>2]=c[(f+(da+-2<<4)&p)+16>>2];c[(ea&p)>>2]=c[(f+(da<<4)&p)+16>>2];break}case 169:{h=c[(f+(da+-5<<4)&p)+16>>2]|0;if(h){ba=ca+532|0;c[(h&p)+4>>2]=c[(ba&p)>>2];c[(ba&p)>>2]=h;a[(ca&n)+449>>0]=1}ba=f+(da+-2<<4)+16|0;or(ca,c[(ba&p)>>2]|0,f+(da+-1<<4)+16|0);rr(ca,c[(ba&p)>>2]|0,c[(f+(da<<4)&p)+16>>2]|0);break}case 176:{h=c[(f+(da+-6<<4)&p)+16>>2]|0;if(h){ba=ca+532|0;c[(h&p)+4>>2]=c[(ba&p)>>2];c[(ba&p)>>2]=h;a[(ca&n)+449>>0]=1}tr(ca,c[(f+(da+-3<<4)&p)+16>>2]|0,0,c[(f+(da+-2<<4)&p)+16>>2]|0,d[(f+(da+-5<<4)&n)+16>>0]|0);break}case 173:{ba=lr(ca,c[(f+(da+-4<<4)&p)+16>>2]|0,c[(f+(da<<4)&p)+16>>2]|0)|0;c[(ea&p)>>2]=ba;mr(ca,ba,f+(da+-2<<4)+16|0,1);break}case 174:{ba=lr(ca,0,c[(f+(da<<4)&p)+16>>2]|0)|0;c[(ea&p)>>2]=ba;mr(ca,ba,f+(da+-2<<4)+16|0,1);break}case 175:{h=c[(f+(da+-5<<4)&p)+16>>2]|0;if(h){ba=ca+532|0;c[(h&p)+4>>2]=c[(ba&p)>>2];c[(ba&p)>>2]=h;a[(ca&n)+449>>0]=1}tr(ca,c[(f+(da+-2<<4)&p)+16>>2]|0,c[(f+(da<<4)&p)+16>>2]|0,c[(f+(da+-1<<4)&p)+16>>2]|0,d[(f+(da+-4<<4)&n)+16>>0]|0);break}case 181:{c[(ea&p)>>2]=ur(c[(ca&p)>>2]|0,c[(f+(da+-2<<4)&p)+16>>2]|0,f+(da<<4)+16|0)|0;break}case 182:{c[(ea&p)>>2]=ur(c[(ca&p)>>2]|0,0,f+(da<<4)+16|0)|0;break}case 183:{ca=f+(da<<4)+16|0;c[(ea&p)>>2]=c[(ca&p)>>2];c[(ea&p)+4>>2]=c[(ca&p)+4>>2];c[(ea&p)+8>>2]=c[(ca&p)+8>>2];break}case 177:{a[(ea&n)>>0]=a[(f+(da<<4)&n)+16>>0]|0;break}case 178:{a[(ea&n)>>0]=5;break}case 184:{c[(ea&p)>>2]=c[(f+(da+-1<<4)&p)+16>>2];c[(ea&p)+4>>2]=c[(f+(da+-2<<4)&p)+16>>2];c[(ea&p)+8>>2]=(c[(f+(da<<4)&p)+16>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0);break}case 191:case 190:case 185:{ba=f+(da<<4)+16|0;c[(ea&p)>>2]=Zq(ca,d[(f+(da<<4)&n)+14>>0]|0,0,0,ba)|0;ca=c[(ba&p)>>2]|0;c[(ea&p)+4>>2]=ca;c[(ea&p)+8>>2]=ca+(c[(f+(da<<4)&p)+20>>2]|0);break}case 187:case 186:{ba=f+(da<<4)+16|0;c[(ea&p)>>2]=Zq(ca,27,0,0,ba)|0;ca=c[(ba&p)>>2]|0;c[(ea&p)+4>>2]=ca;c[(ea&p)+8>>2]=ca+(c[(f+(da<<4)&p)+20>>2]|0);break}case 188:{aa=f+(da+-2<<4)+16|0;ba=f+(da<<4)+16|0;c[(ea&p)>>2]=Zq(ca,122,Zq(ca,27,0,0,aa)|0,Zq(ca,27,0,0,ba)|0,0)|0;c[(ea&p)+4>>2]=c[(aa&p)>>2];c[(ea&p)+8>>2]=(c[(ba&p)>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0);break}case 189:{aa=f+(da+-4<<4)+16|0;ba=f+(da<<4)+16|0;c[(ea&p)>>2]=Zq(ca,122,Zq(ca,27,0,0,aa)|0,Zq(ca,122,Zq(ca,27,0,0,f+(da+-2<<4)+16|0)|0,Zq(ca,27,0,0,ba)|0,0)|0,0)|0;c[(ea&p)+4>>2]=c[(aa&p)>>2];c[(ea&p)+8>>2]=(c[(ba&p)>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0);break}case 192:{x=f+(da<<4)+16|0;w=f+(da<<4)+20|0;do if(((c[(w&p)>>2]|0)>>>0>1?(C=c[(x&p)>>2]|0,(a[(C&n)>>0]|0)==35):0)?((d[(C&n)+1>>0]|0)+-48|0)>>>0<10:0){if(!(a[(ca&n)+18>>0]|0)){c[(ba&p)>>2]=x;th(ca,20432,ba);c[(ea&p)>>2]=0;break}r=Zq(ca,159,0,0,x)|0;c[(ea&p)>>2]=r;if(r)Dn((c[(x&p)>>2]|0)+1|0,r+28|0)|0}else aa=298;while(0);q:do if((aa|0)==298?(P=Zq(ca,135,0,0,x)|0,c[(ea&p)>>2]=P,W=c[(x&p)>>2]|0,c[(ea&p)+4>>2]=W,c[(ea&p)+8>>2]=W+(c[(w&p)>>2]|0),W=c[(ca&p)>>2]|0,(P|0)!=0):0){z=c[(P&p)+8>>2]|0;r=z+1|0;do if(a[(r&n)>>0]|0){y=(z|0)==0;if(y)A=0;else{t=z;while(1)if(!(a[(t&n)>>0]|0))break;else t=t+1|0;A=t-z&1073741823}r:do if((a[(z&n)>>0]|0)==63){$=Ul(r,H,A+-1|0,1)|0;m=H;q=c[(m&p)>>2]|0;m=c[(m&p)+4>>2]|0;t=q&65535;b[(P&o)+32>>1]=t;r=c[(W&p)+124>>2]|0;aa=((r|0)<0)<<31>>31;if((m|0)<0|(m|0)==0&q>>>0<1|($|0)!=0|((m|0)>(aa|0)|(m|0)==(aa|0)&q>>>0>r>>>0)){c[(ba&p)>>2]=r;th(ca,33296,ba);t=0}r=ca+440|0;aa=c[(r&p)>>2]|0;$=((aa|0)<0)<<31>>31;if((m|0)>($|0)|(m|0)==($|0)&q>>>0>aa>>>0)c[(r&p)>>2]=q}else{r=c[(ca&p)+444>>2]|0;s:do if((r|0)>0){q=c[(ca&p)+472>>2]|0;t=0;l=0;while(1){m=c[(q+(t<<2)&p)>>2]|0;if((m|0)!=0?(_v(m,z)|0)==0:0)break;l=l+1<<16>>16;t=l<<16>>16;if((t|0)>=(r|0)){aa=315;break s}}t=t+1&65535;r=P+32|0;b[(r&o)>>1]=t;if(t<<16>>16)break r}else aa=315;while(0);if((aa|0)==315)r=P+32|0;aa=ca+440|0;t=(c[(aa&p)>>2]|0)+1|0;c[(aa&p)>>2]=t;t=t&65535;b[(r&o)>>1]=t}while(0);m=t<<16>>16;if(t<<16>>16>0){t=ca+444|0;if((m|0)>(c[(t&p)>>2]|0)){r=ca+472|0;q=ro(W,c[(r&p)>>2]|0,m<<2,0)|0;if(!q)break q;c[(r&p)>>2]=q;aa=c[(t&p)>>2]|0;fw(q+(aa<<2)|0,0,m-aa<<2|0)|0;c[(t&p)>>2]=m}if((a[(z&n)>>0]|0)==63){r=m+-1|0;if(!(c[((c[(ca&p)+472>>2]|0)+(r<<2)&p)>>2]|0))t=0;else break}else{t=m+-1|0;r=t;t=c[((c[(ca&p)+472>>2]|0)+(t<<2)&p)>>2]|0}q=ca+472|0;mg(W,t);if(!y?(s=jw(A|0,0,1,0)|0,s=mh(W,s,G)|0,(s|0)!=0):0){kw(s|0,z|0,A|0)|0;a[(s+A&n)>>0]=0}else s=0;c[((c[(q&p)>>2]|0)+(r<<2)&p)>>2]=s}}else{$=ca+440|0;aa=(c[($&p)>>2]|0)+1|0;c[($&p)>>2]=aa;b[(P&o)+32>>1]=aa}while(0);if((c[(ca&p)+64>>2]|0)==0?(c[(ca&p)+440>>2]|0)>(c[(W&p)+124>>2]|0):0)th(ca,33344,ba)}while(0);ca=c[(x&p)>>2]|0;c[(ea&p)+4>>2]=ca;c[(ea&p)+8>>2]=ca+(c[(w&p)>>2]|0);break}case 196:{ba=f+(da+-3<<4)+16|0;c[(ea&p)>>2]=wr(ca,0,ba)|0;c[(ea&p)+4>>2]=c[(ba&p)>>2];c[(ea&p)+8>>2]=(c[(f+(da<<4)&p)+16>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0);break}case 197:{ba=f+(da<<4)+16|0;c[(ea&p)>>2]=wr(ca,0,ba)|0;ca=c[(ba&p)>>2]|0;c[(ea&p)+4>>2]=ca;c[(ea&p)+8>>2]=ca+(c[(f+(da<<4)&p)+20>>2]|0);break}case 193:{aa=da+-2|0;ba=f+(da<<4)+16|0;c[(ea&p)>>2]=vr(ca,c[(f+(aa<<4)&p)+16>>2]|0,ba,1)|0;c[(ea&p)+4>>2]=c[(f+(aa<<4)&p)+20>>2];c[(ea&p)+8>>2]=(c[(ba&p)>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0);break}case 194:{c[(ea&p)>>2]=Zq(ca,38,c[(f+(da+-3<<4)&p)+16>>2]|0,0,f+(da+-1<<4)+16|0)|0;c[(ea&p)+4>>2]=c[(f+(da+-5<<4)&p)+16>>2];c[(ea&p)+8>>2]=(c[(f+(da<<4)&p)+16>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0);break}case 195:{l=f+(da+-1<<4)+16|0;h=c[(l&p)>>2]|0;if(h){if((c[(h&p)>>2]|0)>(c[((c[(ca&p)>>2]|0)&p)+112>>2]|0)){c[(ba&p)>>2]=f+(da+-4<<4)+16;th(ca,20576,ba);h=c[(l&p)>>2]|0}}else h=0;ba=f+(da+-4<<4)+16|0;h=wr(ca,h,ba)|0;c[(ea&p)>>2]=h;c[(ea&p)+4>>2]=c[(ba&p)>>2];c[(ea&p)+8>>2]=(c[(f+(da<<4)&p)+16>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0);if(!((h|0)==0?1:(b[(f+(da+-2<<4)&o)+16>>1]|0)==0)){ca=h+4|0;c[(ca&p)>>2]=c[(ca&p)>>2]|16}break}case 205:case 204:case 203:case 202:case 201:case 200:case 199:case 198:{ba=da+-2|0;c[(ea&p)>>2]=Zq(ca,d[(f+(da+-1<<4)&n)+14>>0]|0,c[(f+(ba<<4)&p)+16>>2]|0,c[(f+(da<<4)&p)+16>>2]|0,0)|0;c[(ea&p)+4>>2]=c[(f+(ba<<4)&p)+20>>2];c[(ea&p)+8>>2]=c[(f+(da<<4)&p)+24>>2];break}case 206:{aa=f+(da<<4)+16|0;ba=c[(aa&p)+4>>2]|0;ca=ea;c[(ca&p)>>2]=c[(aa&p)>>2];c[(ca&p)+4>>2]=ba;c[(ea&p)+8>>2]=0;break}case 207:{aa=f+(da<<4)+16|0;ba=c[(aa&p)+4>>2]|0;ca=ea;c[(ca&p)>>2]=c[(aa&p)>>2];c[(ca&p)+4>>2]=ba;c[(ea&p)+8>>2]=1;break}case 208:{l=da+-2|0;ba=da+-1|0;h=wr(ca,lr(ca,lr(ca,0,c[(f+(da<<4)&p)+16>>2]|0)|0,c[(f+(l<<4)&p)+16>>2]|0)|0,f+(ba<<4)+16|0)|0;c[(ea&p)>>2]=h;if(c[(f+(ba<<4)&p)+24>>2]|0){h=Zq(ca,19,h,0,0)|0;c[(ea&p)>>2]=h}c[(ea&p)+4>>2]=c[(f+(l<<4)&p)+20>>2];c[(ea&p)+8>>2]=c[(f+(da<<4)&p)+24>>2];if(h){ca=h+4|0;c[(ca&p)>>2]=c[(ca&p)>>2]|128}break}case 210:{ba=da+-1|0;c[(ea&p)>>2]=Zq(ca,d[(f+(da<<4)&n)+14>>0]|0,c[(f+(ba<<4)&p)+16>>2]|0,0,0)|0;c[(ea&p)+4>>2]=c[(f+(ba<<4)&p)+20>>2];c[(ea&p)+8>>2]=(c[(f+(da<<4)&p)+16>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0);break}case 209:{l=da+-4|0;ba=da+-3|0;h=wr(ca,lr(ca,lr(ca,lr(ca,0,c[(f+(da+-2<<4)&p)+16>>2]|0)|0,c[(f+(l<<4)&p)+16>>2]|0)|0,c[(f+(da<<4)&p)+16>>2]|0)|0,f+(ba<<4)+16|0)|0;c[(ea&p)>>2]=h;if(c[(f+(ba<<4)&p)+24>>2]|0){h=Zq(ca,19,h,0,0)|0;c[(ea&p)>>2]=h}c[(ea&p)+4>>2]=c[(f+(l<<4)&p)+20>>2];c[(ea&p)+8>>2]=c[(f+(da<<4)&p)+24>>2];if(h){ca=h+4|0;c[(ca&p)>>2]=c[(ca&p)>>2]|128}break}case 223:{l=f+(da+-1<<4)+16|0;h=c[(l&p)>>2]|0;do if(h){if((c[(h&p)>>2]|0)==1){ba=c[(h&p)+4>>2]|0;h=c[(ba&p)>>2]|0;c[(ba&p)>>2]=0;Nk(c[(ca&p)>>2]|0,c[(l&p)>>2]|0);if(h){ba=h+4|0;c[(ba&p)>>2]=c[(ba&p)>>2]&-769|512}c[(ea&p)>>2]=Zq(ca,(c[(f+(da+-3<<4)&p)+16>>2]|0)!=0?78:79,c[(f+(da+-4<<4)&p)+16>>2]|0,h,0)|0;break}h=Zq(ca,75,c[(f+(da+-4<<4)&p)+16>>2]|0,0,0)|0;c[(ea&p)>>2]=h;if(!h){Nk(c[(ca&p)>>2]|0,c[(l&p)>>2]|0);h=0}else{c[(h&p)+20>>2]=c[(l&p)>>2];h=c[(ea&p)>>2]|0;yr(ca,h)}if(c[(f+(da+-3<<4)&p)+16>>2]|0)c[(ea&p)>>2]=Zq(ca,19,h,0,0)|0}else{c[(ea&p)>>2]=Zq(ca,132,0,0,20616+(c[(f+(da+-3<<4)&p)+16>>2]<<3)|0)|0;Gk(c[(ca&p)>>2]|0,c[(f+(da+-4<<4)&p)+16>>2]|0)}while(0);c[(ea&p)+4>>2]=c[(f+(da+-4<<4)&p)+20>>2];c[(ea&p)+8>>2]=(c[(f+(da<<4)&p)+16>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0);break}case 211:{ba=da+-2|0;c[(ea&p)>>2]=Zq(ca,77,c[(f+(ba<<4)&p)+16>>2]|0,0,0)|0;c[(ea&p)+4>>2]=c[(f+(ba<<4)&p)+20>>2];c[(ea&p)+8>>2]=(c[(f+(da<<4)&p)+16>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0);break}case 212:{$=da+-2|0;aa=f+(da<<4)+16|0;ba=Zq(ca,73,c[(f+($<<4)&p)+16>>2]|0,c[(aa&p)>>2]|0,0)|0;c[(ea&p)>>2]=ba;c[(ea&p)+4>>2]=c[(f+($<<4)&p)+20>>2];c[(ea&p)+8>>2]=c[(f+(da<<4)&p)+24>>2];xr(ca,c[(aa&p)>>2]|0,ba,76);break}case 213:{$=da+-3|0;aa=f+(da<<4)+16|0;ba=Zq(ca,148,c[(f+($<<4)&p)+16>>2]|0,c[(aa&p)>>2]|0,0)|0;c[(ea&p)>>2]=ba;c[(ea&p)+4>>2]=c[(f+($<<4)&p)+20>>2];c[(ea&p)+8>>2]=c[(f+(da<<4)&p)+24>>2];xr(ca,c[(aa&p)>>2]|0,ba,77);break}case 215:case 214:{ba=da+-1|0;c[(ea&p)>>2]=Zq(ca,d[(f+(ba<<4)&n)+14>>0]|0,c[(f+(da<<4)&p)+16>>2]|0,0,0)|0;c[(ea&p)+4>>2]=c[(f+(ba<<4)&p)+16>>2];c[(ea&p)+8>>2]=c[(f+(da<<4)&p)+24>>2];break}case 216:{c[(ea&p)>>2]=Zq(ca,157,c[(f+(da<<4)&p)+16>>2]|0,0,0)|0;c[(ea&p)+4>>2]=c[(f+(da+-1<<4)&p)+16>>2];c[(ea&p)+8>>2]=c[(f+(da<<4)&p)+24>>2];break}case 217:{c[(ea&p)>>2]=Zq(ca,158,c[(f+(da<<4)&p)+16>>2]|0,0,0)|0;c[(ea&p)+4>>2]=c[(f+(da+-1<<4)&p)+16>>2];c[(ea&p)+8>>2]=c[(f+(da<<4)&p)+24>>2];break}case 220:{k=lr(ca,lr(ca,0,c[(f+(da+-2<<4)&p)+16>>2]|0)|0,c[(f+(da<<4)&p)+16>>2]|0)|0;l=da+-4|0;h=Zq(ca,74,c[(f+(l<<4)&p)+16>>2]|0,0,0)|0;c[(ea&p)>>2]=h;if(!h)Nk(c[(ca&p)>>2]|0,k);else c[(h&p)+20>>2]=k;if(c[(f+(da+-3<<4)&p)+16>>2]|0)c[(ea&p)>>2]=Zq(ca,19,c[(ea&p)>>2]|0,0,0)|0;c[(ea&p)+4>>2]=c[(f+(l<<4)&p)+20>>2];c[(ea&p)+8>>2]=c[(f+(da<<4)&p)+24>>2];break}case 224:{h=Zq(ca,119,0,0,0)|0;c[(ea&p)>>2]=h;if(!h)Mk(c[(ca&p)>>2]|0,c[(f+(da+-1<<4)&p)+16>>2]|0,1);else{c[(h&p)+20>>2]=c[(f+(da+-1<<4)&p)+16>>2];ba=c[(ea&p)>>2]|0;aa=ba+4|0;c[(aa&p)>>2]=c[(aa&p)>>2]|2099200;yr(ca,ba)}c[(ea&p)+4>>2]=c[(f+(da+-2<<4)&p)+16>>2];c[(ea&p)+8>>2]=(c[(f+(da<<4)&p)+16>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0);break}case 118:{c[(ea&p)>>2]=kr(ca,c[(f+(da+-6<<4)&p)+16>>2]|0,c[(f+(da+-5<<4)&p)+16>>2]|0,c[(f+(da+-4<<4)&p)+16>>2]|0,c[(f+(da+-3<<4)&p)+16>>2]|0,c[(f+(da+-2<<4)&p)+16>>2]|0,c[(f+(da+-1<<4)&p)+16>>2]|0,b[(f+(da+-7<<4)&o)+16>>1]|0,c[(f+(da<<4)&p)+16>>2]|0,c[(f+(da<<4)&p)+20>>2]|0)|0;break}case 120:{c[(ea&p)>>2]=kr(ca,c[(f+(da+-1<<4)&p)+16>>2]|0,0,0,0,0,0,128,0,0)|0;break}case 127:{l=da+-1|0;q=lr(ca,c[(f+(da+-2<<4)&p)+16>>2]|0,c[(f+(l<<4)&p)+16>>2]|0)|0;c[(ea&p)>>2]=q;if(c[(f+(da<<4)&p)+20>>2]|0)mr(ca,q,f+(da<<4)+16|0,1);s=c[(ca&p)>>2]|0;if(q){r=(c[(q&p)+4>>2]|0)+(((c[(q&p)>>2]|0)+-1|0)*20|0)+8|0;mg(s,c[(r&p)>>2]|0);m=c[(f+(l<<4)&p)+20>>2]|0;q=(c[(f+(l<<4)&p)+24>>2]|0)-m|0;if((m|0)!=0?(h=jw(q|0,((q|0)<0)<<31>>31|0,1,0)|0,h=mh(s,h,G)|0,(h|0)!=0):0){kw(h|0,m|0,q|0)|0;a[(h+q&n)>>0]=0}else h=0;c[(r&p)>>2]=h}break}case 133:{l=mh(c[(ca&p)>>2]|0,80,0)|0;if(l){y=l+0|0;k=y+80|0;do{a[(y&n)>>0]=0;y=y+1|0}while((y|0)<(k|0))}c[(ea&p)>>2]=l;break}case 134:{q=c[(f+(da<<4)&p)+16>>2]|0;c[(ea&p)>>2]=q;if(q){l=c[(q&p)>>2]|0;k=l+-1|0;if((k|0)>0)while(1){a[(q+(k*72|0)&n)+44>>0]=a[(q+((l+-2|0)*72|0)&n)+44>>0]|0;l=k+-1|0;if((l|0)>0){ca=k;k=l;l=ca}else break}a[(q&n)+44>>0]=0}break}case 128:{aa=c[(ca&p)>>2]|0;c[(ba&p)>>2]=0;c[(ba&p)+4>>2]=0;ba=nr(aa,116,ba,0)|0;c[(ea&p)>>2]=lr(ca,c[(f+(da+-1<<4)&p)+16>>2]|0,ba)|0;break}case 132:{c[(ea&p)+4>>2]=0;break}case 129:{ba=Zq(ca,116,0,0,f+(da<<4)+16|0)|0;ba=Zq(ca,122,Zq(ca,27,0,0,f+(da+-2<<4)+16|0)|0,ba,0)|0;c[(ea&p)>>2]=lr(ca,c[(f+(da+-3<<4)&p)+16>>2]|0,ba)|0;break}case 136:{c[(ea&p)>>2]=0;break}case 137:{ba=jr(ca,c[(f+(da+-6<<4)&p)+16>>2]|0,f+(da+-5<<4)+16|0,f+(da+-4<<4)+16|0,f+(da+-3<<4)+16|0,0,c[(f+(da+-1<<4)&p)+16>>2]|0,c[(f+(da<<4)&p)+16>>2]|0)|0;c[(ea&p)>>2]=ba;or(ca,ba,f+(da+-2<<4)+16|0);break}case 135:{h=c[(f+(da+-1<<4)&p)+16>>2]|0;c[(ea&p)>>2]=h;if((h|0)!=0?(w=c[(h&p)>>2]|0,(w|0)>0):0)a[(h+((w+-1|0)*72|0)&n)+44>>0]=c[(f+(da<<4)&p)+16>>2];break}case 138:{c[(ea&p)>>2]=jr(ca,c[(f+(da+-6<<4)&p)+16>>2]|0,0,0,f+(da+-2<<4)+16|0,c[(f+(da+-4<<4)&p)+16>>2]|0,c[(f+(da+-1<<4)&p)+16>>2]|0,c[(f+(da<<4)&p)+16>>2]|0)|0;break}case 139:{l=f+(da+-6<<4)+16|0;q=c[(l&p)>>2]|0;if((((q|0)==0?(c[(f+(da+-2<<4)&p)+20>>2]|0)==0:0)?(c[(f+(da+-1<<4)&p)+16>>2]|0)==0:0)?(c[(f+(da<<4)&p)+16>>2]|0)==0:0){c[(ea&p)>>2]=c[(f+(da+-4<<4)&p)+16>>2];break a}s=f+(da+-4<<4)+16|0;k=c[(s&p)>>2]|0;r=c[(k&p)>>2]|0;if((r|0)==1){l=jr(ca,q,0,0,f+(da+-2<<4)+16|0,0,c[(f+(da+-1<<4)&p)+16>>2]|0,c[(f+(da<<4)&p)+16>>2]|0)|0;c[(ea&p)>>2]=l;if(l){_=(c[(l&p)>>2]|0)+-1|0;ba=c[(s&p)>>2]|0;aa=ba+16|0;c[(l+(_*72|0)&p)+16>>2]=c[(aa&p)>>2];$=ba+12|0;c[(l+(_*72|0)&p)+12>>2]=c[($&p)>>2];ba=ba+28|0;c[(l+(_*72|0)&p)+28>>2]=c[(ba&p)>>2];c[($&p)>>2]=0;c[(aa&p)>>2]=0;c[(ba&p)>>2]=0}Do(c[(ca&p)>>2]|0,c[(s&p)>>2]|0);break a}if(k){m=r+-1|0;if((m|0)>0){q=r;while(1){a[(k+(m*72|0)&n)+44>>0]=a[(k+((q+-2|0)*72|0)&n)+44>>0]|0;q=m+-1|0;if((q|0)>0){ba=m;m=q;q=ba}else break}}a[(k&n)+44>>0]=0}ba=kr(ca,0,k,0,0,0,0,512,0,0)|0;c[(ea&p)>>2]=jr(ca,c[(l&p)>>2]|0,0,0,f+(da+-2<<4)+16|0,ba,c[(f+(da+-1<<4)&p)+16>>2]|0,c[(f+(da<<4)&p)+16>>2]|0)|0;break}case 149:case 140:{c[(ea&p)>>2]=0;c[(ea&p)+4>>2]=0;break}case 144:{c[(ea&p)>>2]=qr(ca,f+(da+-1<<4)+16|0,0,0)|0;break}case 145:{c[(ea&p)>>2]=qr(ca,f+(da+-2<<4)+16|0,f+(da+-1<<4)+16|0,0)|0;break}case 146:{c[(ea&p)>>2]=qr(ca,f+(da+-3<<4)+16|0,f+(da+-2<<4)+16|0,f+(da+-1<<4)+16|0)|0;break}case 233:case 231:case 171:case 164:case 147:{c[(ea&p)>>2]=c[(f+(da<<4)&p)+16>>2];break}case 234:case 232:case 170:case 163:case 148:{c[(ea&p)>>2]=0;break}case 151:{c[(ea&p)>>2]=0;c[(ea&p)+4>>2]=1;break}case 143:{c[(ea&p)>>2]=1;break}case 142:{c[(ea&p)>>2]=pr(c[(ca&p)>>2]|0,0,f+(da+-1<<4)+16|0,f+(da<<4)+16|0)|0;break}case 157:{h=lr(ca,0,c[(f+(da+-1<<4)&p)+16>>2]|0)|0;c[(ea&p)>>2]=h;if((h|0)!=0?(k=c[(h&p)+4>>2]|0,(k|0)!=0):0)a[(k&n)+12>>0]=c[(f+(da<<4)&p)+16>>2];break}case 160:case 158:{c[(ea&p)>>2]=0;break}case 159:{c[(ea&p)>>2]=1;break}case 165:{c[(ea&p)>>2]=0;c[(ea&p)+4>>2]=0;break}case 166:{c[(ea&p)>>2]=c[(f+(da<<4)&p)+16>>2];c[(ea&p)+4>>2]=0;break}case 179:case 153:{c[(ea&p)>>2]=0;break}case 180:case 152:{c[(ea&p)>>2]=c[(f+(da+-1<<4)&p)+16>>2];break}case 172:{l=c[(f+(da+-7<<4)&p)+16>>2]|0;if(l){aa=ca+532|0;c[(l&p)+4>>2]=c[(aa&p)>>2];c[(aa&p)>>2]=l;a[(ca&n)+449>>0]=1}m=f+(da+-4<<4)+16|0;or(ca,c[(m&p)>>2]|0,f+(da+-3<<4)+16|0);q=f+(da+-1<<4)+16|0;l=c[(q&p)>>2]|0;if(l){if((c[(l&p)>>2]|0)>(c[((c[(ca&p)>>2]|0)&p)+96>>2]|0)){c[(ba&p)>>2]=20560;th(ca,34544,ba);l=c[(q&p)>>2]|0}}else l=0;sr(ca,c[(m&p)>>2]|0,l,c[(f+(da<<4)&p)+16>>2]|0,d[(f+(da+-5<<4)&n)+16>>0]|0);break}case 235:case 162:case 155:{c[(ea&p)>>2]=c[(f+(da<<4)&p)+16>>2];break}case 156:{h=lr(ca,c[(f+(da+-3<<4)&p)+16>>2]|0,c[(f+(da+-1<<4)&p)+16>>2]|0)|0;c[(ea&p)>>2]=h;if(h)a[((c[(h&p)+4>>2]|0)+(((c[(h&p)>>2]|0)+-1|0)*20|0)&n)+12>>0]=c[(f+(da<<4)&p)+16>>2];break}case 7:{a[(ca&n)+450>>0]=2;c[(ca&p)+440>>2]=0;break}case 23:{Tq(ca,1,f+(da<<4)+16|0);break}case 24:{Tq(ca,2,f+(da<<4)+16|0);break}case 26:{Uq(ca,f+(da+-1<<4)+16|0,f+(da<<4)+16|0,c[(f+(da+-4<<4)&p)+16>>2]|0,0,0,c[(f+(da+-2<<4)&p)+16>>2]|0);break}default:{}}while(0);h=a[(g<<1&n)+20912>>0]|0;r=h&255;q=a[(g<<1&n)+20913>>0]|0;m=q&255;s=(c[(f&p)>>2]|0)-m|0;c[(f&p)>>2]=s;l=b[((b[(e[(f+(da-m<<4)&o)+12>>1]<<1&o)+21568>>1]|0)+r<<1&o)+22184>>1]|0;k=l&65535;do if((l&65535)<642)if(!(q<<24>>24)){kq(f,k,r,ea);break}else{c[(f&p)>>2]=s+1;da=1-m+da|0;b[(f+(da<<4)&o)+12>>1]=l;a[(f+(da<<4)&n)+14>>0]=h;da=f+(da<<4)+16|0;c[(da&p)>>2]=c[(ea&p)>>2];c[(da&p)+4>>2]=c[(ea&p)+4>>2];c[(da&p)+8>>2]=c[(ea&p)+8>>2];break}else{h=c[(ga&p)>>2]|0;if((s|0)>-1)do Pn(f);while((c[(f&p)>>2]|0)>-1);c[(ga&p)>>2]=h}while(0);i=ha;return}function nq(e,f){e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=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,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,ga=0;da=i;i=i+64|0;if((i|0)>=(j|0))fa();ca=da+8|0;Z=da;q=da+24|0;h=da+16|0;l=xq(e,0,h)|0;do if(!l){if(c[(h&p)>>2]|0){l=ds(e,f)|0;if(!l)g=0;else k=4}else{l=1;k=4}if((k|0)==4){ba=e+43|0;k=(a[(ba&n)>>0]|0)==0;do if(!(a[(e&n)+46>>0]&2)){if(k?(m=e+4|0,aa=c[(m&p)>>2]|0,ac[c[((c[(aa&p)>>2]|0)&p)+40>>2]&63](aa,24,0)|0,m=c[(m&p)>>2]|0,m=pc[c[((c[(m&p)>>2]|0)&p)+56>>2]&31](m,0,1,10)|0,(m|0)!=0):0){h=l;g=m;break}aa=e+44|0;a[(aa&n)>>0]=1;k=xq(e,0,h)|0;if(!k){h=ds(e,f)|0;if(!h){h=0;g=0}else{$=d[(e&n)+45>>0]|0;_=$+1|0;$=7-$|0;if(!((a[(ba&n)>>0]|0)==0?(g=c[(e&p)+4>>2]|0,g=pc[c[((c[(g&p)>>2]|0)&p)+56>>2]&31](g,_,$,10)|0,(g|0)!=0):0)){l=e+52|0;k=l+48|0;do{c[(l&p)>>2]=0;l=l+4|0}while((l|0)<(k|0));T=e+8|0;g=c[(T&p)>>2]|0;g=rc[c[((c[(g&p)>>2]|0)&p)+24>>2]&127](g,Z)|0;a:do if(!g){U=Z;S=c[(U&p)+4>>2]|0;b:do if((S|0)>0|(S|0)==0&(c[(U&p)>>2]|0)>>>0>32){g=c[(T&p)>>2]|0;g=tc[c[((c[(g&p)>>2]|0)&p)+8>>2]&31](g,q,32,0,0)|0;if(g)break a;m=d[(q&n)+3>>0]|0;k=d[(q&n)+9>>0]<<16|d[(q&n)+8>>0]<<24;g=d[(q&n)+10>>0]<<8;l=k|g|d[(q&n)+11>>0];if(((d[(q&n)+1>>0]<<16|d[(q&n)>>0]<<24|d[(q&n)+2>>0]<<8|m&254|0)==931071618?!((l+-1&l|0)!=0|(l|0)>65536|(l|0)<512):0)?(U=m&1,V=e+65|0,a[(V&n)>>0]=U,W=e+36|0,c[(W&p)>>2]=l,c[(e&p)+104>>2]=d[(q&n)+13>>0]<<16|d[(q&n)+12>>0]<<24|d[(q&n)+14>>0]<<8|d[(q&n)+15>>0],X=e+84|0,S=q+16|0,Q=S,Q=d[(Q&n)>>0]|d[(Q&n)+1>>0]<<8|d[(Q&n)+2>>0]<<16|d[(Q&n)+3>>0]<<24,S=S+4|0,S=d[(S&n)>>0]|d[(S&n)+1>>0]<<8|d[(S&n)+2>>0]<<16|d[(S&n)+3>>0]<<24,Y=X,R=Y,a[(R&n)>>0]=Q,a[(R&n)+1>>0]=Q>>8,a[(R&n)+2>>0]=Q>>16,a[(R&n)+3>>0]=Q>>24,Y=Y+4|0,a[(Y&n)>>0]=S,a[(Y&n)+1>>0]=S>>8,a[(Y&n)+2>>0]=S>>16,a[(Y&n)+3>>0]=S>>24,Y=e+76|0,yq(U^1,q,24,0,Y),(c[(Y&p)>>2]|0)==(d[(q&n)+25>>0]<<16|d[(q&n)+24>>0]<<24|d[(q&n)+26>>0]<<8|d[(q&n)+27>>0]|0)):0){S=e+80|0;if((c[(S&p)>>2]|0)!=(d[(q&n)+29>>0]<<16|d[(q&n)+28>>0]<<24|d[(q&n)+30>>0]<<8|d[(q&n)+31>>0]|0)){l=0;g=0;break}if((d[(q&n)+5>>0]<<16|d[(q&n)+4>>0]<<24|d[(q&n)+6>>0]<<8|d[(q&n)+7>>0]|0)!=3007e3){c[(ca&p)>>2]=49983;c[(ca&p)+4>>2]=10788;bd(14,14848,ca);g=14;break a}w=l+24|0;U=Tc(w)|0;if(!U){g=7;break a}x=U+24|0;y=((w|0)<0)<<31>>31;q=jw(w|0,y|0,32,0)|0;m=G;R=Z;Q=c[(R&p)+4>>2]|0;c:do if(!((m|0)>(Q|0)|((m|0)==(Q|0)?q>>>0>(c[(R&p)>>2]|0)>>>0:0))){z=U+8|0;A=U+1|0;B=U+2|0;C=U+3|0;D=U+16|0;E=U+17|0;F=U+18|0;H=U+19|0;I=U+20|0;J=U+21|0;K=U+22|0;L=U+23|0;M=U+4|0;N=U+5|0;O=U+6|0;P=U+7|0;Q=e+68|0;R=e+72|0;u=(k>>>16|g)&65535;v=e+66|0;r=32;k=0;l=0;s=0;t=1;while(1){g=c[(T&p)>>2]|0;g=tc[c[((c[(g&p)>>2]|0)&p)+8>>2]&31](g,U,w,r,k)|0;if(g){k=36;break}if(Zv(X,z,8)|0){g=s;k=37;break}k=d[(A&n)>>0]<<16|d[(U&n)>>0]<<24|d[(B&n)>>0]<<8|d[(C&n)>>0];if(!k){g=s;k=37;break}r=(a[(V&n)>>0]|0)==0&1;yq(r,U,8,Y,Y);yq(r,x,c[(W&p)>>2]|0,Y,Y);if((c[(Y&p)>>2]|0)!=(d[(E&n)>>0]<<16|d[(D&n)>>0]<<24|d[(F&n)>>0]<<8|d[(H&n)>>0]|0)){g=s;k=37;break}if((c[(S&p)>>2]|0)!=(d[(J&n)>>0]<<16|d[(I&n)>>0]<<24|d[(K&n)>>0]<<8|d[(L&n)>>0]|0)){g=s;break c}r=d[(N&n)>>0]<<16|d[(M&n)>>0]<<24|d[(O&n)>>0]<<8|d[(P&n)>>0];g=_o(e,t,k)|0;if(g){k=36;break}if(!r)g=s;else{c[(Q&p)>>2]=t;c[(R&p)>>2]=r;b[(v&o)>>1]=u;l=c[(Y&p)>>2]|0;g=c[(S&p)>>2]|0}k=jw(q|0,m|0,w|0,y|0)|0;r=G;s=Z;ea=c[(s&p)+4>>2]|0;if((r|0)>(ea|0)|((r|0)==(ea|0)?k>>>0>(c[(s&p)>>2]|0)>>>0:0))break c;else{ga=m;ea=q;q=k;m=r;s=g;t=t+1|0;k=ga;r=ea}}if((k|0)==36){Wc(U);break a}else if((k|0)==37){Wc(U);break b}}else{l=0;g=0}while(0);Wc(U)}else{l=0;g=0}}else{l=0;g=0}while(0);c[(e&p)+76>>2]=l;c[(e&p)+80>>2]=g;$o(e);k=c[(c[(e&p)+32>>2]&p)>>2]|0;c[(k&p)+96>>2]=0;c[(k&p)+100>>2]=0;g=k+104|0;c[(g&p)>>2]=-1;c[(k&p)+108>>2]=-1;c[(k&p)+112>>2]=-1;c[(k&p)+116>>2]=-1;k=e+68|0;l=c[(k&p)>>2]|0;if(l)c[(g&p)>>2]=l;if(!(c[(e&p)+72>>2]|0))g=0;else{g=c[(e&p)+100>>2]|0;c[(ca&p)>>2]=c[(k&p)>>2];c[(ca&p)+4>>2]=g;bd(283,14888,ca);g=0}}while(0);if(!(a[(ba&n)>>0]|0)){Z=c[(e&p)+4>>2]|0;pc[c[((c[(Z&p)>>2]|0)&p)+56>>2]&31](Z,_,$,9)|0}}c[(f&p)>>2]=1}}else{h=l;g=k}a[(aa&n)>>0]=0;if(!(a[(ba&n)>>0]|0)){ba=c[(e&p)+4>>2]|0;pc[c[((c[(ba&p)>>2]|0)&p)+56>>2]&31](ba,0,1,9)|0}}else if(k){h=e+4|0;g=c[(h&p)>>2]|0;g=pc[c[((c[(g&p)>>2]|0)&p)+56>>2]&31](g,0,1,6)|0;if(!g)if(!(a[(ba&n)>>0]|0)){h=c[(h&p)>>2]|0;pc[c[((c[(h&p)>>2]|0)&p)+56>>2]&31](h,0,1,5)|0;h=l;g=264}else{h=l;g=264}else h=l}else{h=l;g=264}while(0);if(h)break}if((c[(e&p)+52>>2]|0)!=3007e3){c[(ca&p)>>2]=50909;c[(ca&p)+4>>2]=10788;bd(14,14848,ca);g=14}}else g=l;while(0);i=da;return g|0}function oq(a,d,f,g,h,i){a=a|0;d=d|0;f=f|0;g=g|0;h=h|0;i=i|0;var j=0,k=0,l=0,m=0,n=0,q=0,r=0,s=0,t=0,u=0;r=c[(h&p)>>2]|0;s=c[(g&p)>>2]|0;k=(r|0)>0;j=(f|0)>0;if(k|j){n=j;l=0;q=0;m=0;while(1){do if(n){j=d+(l<<1)|0;if(k?(t=s+(m<<1)|0,(c[(a+((e[(j&o)>>1]|0)<<2)&p)>>2]|0)>>>0>=(c[(a+((e[(t&o)>>1]|0)<<2)&p)>>2]|0)>>>0):0){k=t;u=7;break}l=l+1|0;k=j}else{k=s+(m<<1)|0;u=7}while(0);if((u|0)==7){u=0;m=m+1|0}n=b[(k&o)>>1]|0;k=c[(a+((n&65535)<<2)&p)>>2]|0;j=q+1|0;b[(i+(q<<1)&o)>>1]=n;if((l|0)<(f|0))l=((c[(a+((e[(d+(l<<1)&o)>>1]|0)<<2)&p)>>2]|0)==(k|0)&1)+l|0;k=(m|0)<(r|0);n=(l|0)<(f|0);if(!(k|n))break;else q=j}}else j=0;c[(g&p)>>2]=d;c[(h&p)>>2]=j;kw(d|0,i|0,j<<1|0)|0;return}function pq(a,b){a=a|0;b=b|0;var d=0,e=0;e=c[(a&p)+4>>2]|0;c[(e&p)+4>>2]=c[(a&p)>>2];a=c[((c[(e&p)>>2]|0)&p)+204>>2]|0;c[(a&p)+16>>2]=b;e=c[2217]|0;d=c[(a&p)+40>>2]|0;if((b|0)>-1)a=b;else{b=sw(b|0,((b|0)<0)<<31>>31|0,-1024,-1)|0;a=(c[(a&p)+24>>2]|0)+(c[(a&p)+20>>2]|0)|0;a=qw(b|0,G|0,a|0,((a|0)<0)<<31>>31|0)|0}jc[e&15](d,a);return}function qq(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0;g=(c[(b&p)+12>>2]|0)+136|0;e=g;f=c[(e&p)>>2]|0;e=c[(e&p)+4>>2]|0;do if((f|0)==0&(e|0)==0)if(!(bh(c[(c[((c[(b&p)>>2]|0)&p)+32>>2]&p)>>2]|0,g)|0)){e=g;f=c[(e&p)>>2]|0;e=c[(e&p)+4>>2]|0;h=5;break}else{e=g;c[(e&p)>>2]=0;c[(e&p)+4>>2]=0;e=d;c[(e&p)>>2]=0;c[(e&p)+4>>2]=0;e=1;break}else h=5;while(0);if((h|0)==5){g=d;c[(g&p)>>2]=f;c[(g&p)+4>>2]=e;if((e|0)>0|(e|0)==0&f>>>0>0){a[(d&n)+42>>0]=1;e=0}else e=1}return e|0}function rq(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,o=0,q=0,r=0;r=i;i=i+16|0;if((i|0)>=(j|0))fa();o=r;c[(o&p)>>2]=d;d=b;b=0;a:while(1){h=c[(o&p)>>2]|0;g=c[(h&p)>>2]|0;c[(o&p)>>2]=h+4;h=c[(o&p)>>2]|0;k=c[(h&p)>>2]|0;c[(o&p)>>2]=h+4;h=c[(o&p)>>2]|0;l=c[(h&p)>>2]|0;c[(o&p)>>2]=h+4;h=c[(o&p)>>2]|0;m=c[(h&p)>>2]|0;c[(o&p)>>2]=h+4;h=c[(o&p)>>2]|0;e=c[(h&p)>>2]|0;c[(o&p)>>2]=h+4;if(!g){f=d;d=0}else{f=d;d=0;do{g=g+-1|0;h=a[(f&n)>>0]|0;if(((h&255)+-48|0)>>>0>=10)break a;d=(d*10|0)+-48+(h<<24>>24)|0;f=f+1|0}while((g|0)!=0)}if((d|0)<(k|0)|(d|0)>(l|0))break;if(!m){q=9;break}if((m|0)!=(a[(f&n)>>0]|0))break;c[(e&p)>>2]=d;d=f+1|0;b=b+1|0}if((q|0)==9){c[(e&p)>>2]=d;b=b+1|0}i=r;return b|0}function sq(b,e){b=b|0;e=e|0;var f=0,g=0,k=0,l=0.0,m=0,o=0.0,r=0,s=0,t=0,u=0,v=0,w=0,x=0;x=i;i=i+64|0;if((i|0)>=(j|0))fa();v=x;t=x+56|0;u=x+52|0;f=x+48|0;r=x+44|0;s=x+40|0;c[(v&p)>>2]=2;c[(v&p)+4>>2]=0;c[(v&p)+8>>2]=24;c[(v&p)+12>>2]=58;c[(v&p)+16>>2]=f;c[(v&p)+20>>2]=2;c[(v&p)+24>>2]=0;c[(v&p)+28>>2]=59;c[(v&p)+32>>2]=0;c[(v&p)+36>>2]=r;do if((rq(b,v)|0)==2){m=b+5|0;if((a[(m&n)>>0]|0)==58){c[(v&p)>>2]=2;c[(v&p)+4>>2]=0;c[(v&p)+8>>2]=59;c[(v&p)+12>>2]=0;c[(v&p)+16>>2]=s;if((rq(b+6|0,v)|0)!=1){f=1;break}m=b+8|0;if((a[(m&n)>>0]|0)==46?(g=b+9|0,k=a[(g&n)>>0]|0,((k&255)+-48|0)>>>0<10):0){o=0.0;l=1.0;do{o=o*10.0+ +(k<<24>>24)+-48.0;l=l*10.0;g=g+1|0;k=a[(g&n)>>0]|0}while(((k&255)+-48|0)>>>0<10);l=o/l}else{g=m;l=0.0}}else{c[(s&p)>>2]=0;g=m;l=0.0}a[(e&n)+42>>0]=0;a[(e&n)+41>>0]=1;c[(e&p)+20>>2]=c[(f&p)>>2];c[(e&p)+24>>2]=c[(r&p)>>2];h[(e&q)+32>>3]=l+ +(c[(s&p)>>2]|0);while(1){f=g+1|0;if(!(a[((d[(g&n)>>0]|0)&n)+10368>>0]&1)){m=g;break}else g=f}b=e+28|0;c[(b&p)>>2]=0;g=a[(m&n)>>0]|0;if(g<<24>>24==43){k=1;w=14}else if(g<<24>>24!=45)if((g&-33)<<24>>24==90){k=0;w=16}else f=0;else{k=-1;w=14}if((w|0)==14){c[(v&p)>>2]=2;c[(v&p)+4>>2]=0;c[(v&p)+8>>2]=14;c[(v&p)+12>>2]=58;c[(v&p)+16>>2]=t;c[(v&p)+20>>2]=2;c[(v&p)+24>>2]=0;c[(v&p)+28>>2]=59;c[(v&p)+32>>2]=0;c[(v&p)+36>>2]=u;if((rq(f,v)|0)!=2){f=1;break}k=ca(((c[(t&p)>>2]|0)*60|0)+(c[(u&p)>>2]|0)|0,k)|0;c[(b&p)>>2]=k;f=m+6|0;w=16}if((w|0)==16)while(1){g=a[(f&n)>>0]|0;if(!(a[(g&255&n)+10368>>0]&1)){f=k;break}else f=f+1|0}if(!(g<<24>>24)){a[(e&n)+43>>0]=(f|0)!=0&1;f=0}else f=1}else f=1;while(0);i=x;return f|0}function tq(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,k=0,l=0,m=0,o=0,r=0.0,s=0;o=i;i=i+112|0;if((i|0)>=(j|0))fa();k=o+48|0;m=o;l=o+96|0;f=k+0|0;b=b+0|0;g=f+48|0;do{c[(f&p)>>2]=c[(b&p)>>2];f=f+4|0;b=b+4|0}while((f|0)<(g|0));oo(k);po(k);g=k+8|0;if(((c[(g&p)>>2]|0)+-1971|0)>>>0>66){c[(g&p)>>2]=2e3;c[(k&p)+12>>2]=1;c[(k&p)+16>>2]=1;c[(k&p)+20>>2]=0;c[(k&p)+24>>2]=0;h[(k&q)+32>>3]=0.0}else{f=k+32|0;h[(f&q)>>3]=+(~~(+h[(f&q)>>3]+.5)|0)}c[(k&p)+28>>2]=0;a[(k&n)+42>>0]=0;no(k);b=k;f=c[(b&p)>>2]|0;b=c[(b&p)+4>>2]|0;g=qw(f|0,b|0,1e3,0)|0;g=jw(g|0,G|0,-413362496,0)|0;c[(l&p)>>2]=g;g=Vb(l|0)|0;g=(c[2253]|0)!=0?0:g;if(!g){c[(d&p)+20>>2]=1;a[(d&n)+25>>0]=1;Xg(c[(d&p)>>2]|0,20056,-1,1,-1)|0;c[(e&p)>>2]=1;f=0;g=0}else{k=c[(g&p)+4>>2]|0;l=c[(g&p)+8>>2]|0;d=c[(g&p)+12>>2]|0;s=(c[(g&p)+16>>2]|0)+1|0;r=+(c[(g&p)>>2]|0);c[(m&p)+8>>2]=(c[(g&p)+20>>2]|0)+1900;c[(m&p)+12>>2]=s;c[(m&p)+16>>2]=d;c[(m&p)+20>>2]=l;c[(m&p)+24>>2]=k;h[(m&q)+32>>3]=r;a[(m&n)+40>>0]=1;a[(m&n)+41>>0]=1;a[(m&n)+42>>0]=0;a[(m&n)+43>>0]=0;no(m);c[(e&p)>>2]=0;g=m;g=dw(c[(g&p)>>2]|0,c[(g&p)+4>>2]|0,f|0,b|0)|0;f=G}G=f;i=o;return g|0}function uq(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,o=0,q=0,r=0;r=i;i=i+32|0;if((i|0)>=(j|0))fa();q=r+12|0;l=r;o=r+8|0;k=r+16|0;a[(d&n)>>0]=0;f=rc[c[((c[(b&p)>>2]|0)&p)+24>>2]&127](b,l)|0;h=l;g=c[(h&p)>>2]|0;h=c[(h&p)+4>>2]|0;if(!((f|0)!=0|((h|0)<0|(h|0)==0&g>>>0<16))){f=jw(g|0,h|0,-16,-1)|0;f=es(b,f,G,q)|0;if(!f){m=c[(q&p)>>2]|0;if(!(m>>>0>=e>>>0|(m|0)==0)){f=l;f=jw(c[(f&p)>>2]|0,c[(f&p)+4>>2]|0,-12,-1)|0;f=es(b,f,G,o)|0;if(!f){f=l;f=jw(c[(f&p)>>2]|0,c[(f&p)+4>>2]|0,-8,-1)|0;f=tc[c[((c[(b&p)>>2]|0)&p)+8>>2]&31](b,k,8,f,G)|0;if(!f)if(!(Zv(k,14808,8)|0)){f=l;f=jw(c[(f&p)>>2]|0,c[(f&p)+4>>2]|0,-16,-1)|0;f=dw(f|0,G|0,m|0,0)|0;f=tc[c[((c[(b&p)>>2]|0)&p)+8>>2]&31](b,d,m,f,G)|0;if(!f){g=c[(o&p)>>2]|0;h=0;while(1){e=a[(d+h&n)>>0]|0;f=g-e|0;h=h+1|0;if(h>>>0>=m>>>0)break;else g=f}c[(o&p)>>2]=f;if((g|0)==(e|0))f=m;else{c[(q&p)>>2]=0;f=0}a[(d+f&n)>>0]=0;f=0}}else f=0}}else f=0}}i=r;return f|0}function vq(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,k=0,l=0,m=0,n=0,o=0,q=0,r=0,s=0,t=0;t=i;i=i+16|0;if((i|0)>=(j|0))fa();l=t+8|0;r=t+4|0;o=t;s=a+72|0;h=s;k=c[(h&p)>>2]|0;h=c[(h&p)+4>>2]|0;if((k|0)==0&(h|0)==0){m=0;n=0;k=c[(a&p)+148>>2]|0}else{m=jw(k|0,h|0,-1,-1)|0;k=c[(a&p)+148>>2]|0;m=qw(m|0,G|0,k|0,0)|0;m=jw(m|0,G|0,1,0)|0;m=sw(m|0,G|0,k|0,0)|0;n=G}q=s;c[(q&p)>>2]=m;c[(q&p)+4>>2]=n;q=a+148|0;k=jw(k|0,0,m|0,n|0)|0;h=G;do if(!((h|0)>(e|0)|(h|0)==(e|0)&k>>>0>d>>>0)){if((b|0)==0?(b=a+80|0,(m|0)==(c[(b&p)>>2]|0)?(n|0)==(c[(b&p)+4>>2]|0):0):0)d=a+64|0;else{k=a+64|0;e=c[(k&p)>>2]|0;e=tc[c[((c[(e&p)>>2]|0)&p)+8>>2]&31](e,l,8,m,n)|0;if(e)break;if(!(Zv(l,14808,8)|0))d=k;else{e=101;break}}l=c[(d&p)>>2]|0;e=jw(m|0,n|0,8,0)|0;e=es(l,e,G,f)|0;if(!e){f=c[(d&p)>>2]|0;e=jw(m|0,n|0,12,0)|0;e=es(f,e,G,a+48|0)|0;if(!e){f=c[(d&p)>>2]|0;e=jw(m|0,n|0,16,0)|0;e=es(f,e,G,g)|0;if(!e){h=s;k=c[(h&p)>>2]|0;h=c[(h&p)+4>>2]|0;if((k|0)==0&(h|0)==0){g=c[(d&p)>>2]|0;e=jw(m|0,n|0,20,0)|0;e=es(g,e,G,o)|0;if(e)break;g=c[(d&p)>>2]|0;e=jw(m|0,n|0,24,0)|0;e=es(g,e,G,r)|0;if(e)break;d=c[(r&p)>>2]|0;if(!d){h=c[(a&p)+152>>2]|0;c[(r&p)>>2]=h}else h=d;d=c[(o&p)>>2]|0;if(h>>>0<512|d>>>0<32|h>>>0>65536|d>>>0>65536){e=101;break}if(h+-1&h){e=101;break}if(d+-1&d){e=101;break}e=al(a,r,-1)|0;c[(q&p)>>2]=d;h=s;k=c[(h&p)>>2]|0;h=c[(h&p)+4>>2]|0}else{d=c[(q&p)>>2]|0;e=0}m=jw(k|0,h|0,d|0,0)|0;n=s;c[(n&p)>>2]=m;c[(n&p)+4>>2]=G}}}}else e=101;while(0);i=t;return e|0}function wq(f,g,h,k,l){f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;var m=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;D=i;i=i+16|0;if((i|0)>=(j|0))fa();y=D+8|0;r=D+4|0;u=D;B=c[(f&p)+200>>2]|0;C=(k|0)!=0;q=c[((C?f+64|0:f+68|0)&p)>>2]|0;t=g;t=es(q,c[(t&p)>>2]|0,c[(t&p)+4>>2]|0,r)|0;do if(!t){A=f+152|0;x=c[(A&p)>>2]|0;t=g;t=jw(c[(t&p)>>2]|0,c[(t&p)+4>>2]|0,4,0)|0;t=tc[c[((c[(q&p)>>2]|0)&p)+8>>2]&31](q,B,x,t,G)|0;if(!t){E=c[(A&p)>>2]|0;s=(k<<2)+4+E|0;t=g;t=jw(s|0,((s|0)<0)<<31>>31|0,c[(t&p)>>2]|0,c[(t&p)+4>>2]|0)|0;s=G;x=g;c[(x&p)>>2]=t;c[(x&p)+4>>2]=s;x=c[(r&p)>>2]|0;if((x|0)!=0?(x|0)!=(((c[2514]|0)/(E|0)|0)+1|0):0)if(x>>>0<=(c[(f&p)+24>>2]|0)>>>0?(di(h,x)|0)==0:0){if(C){t=jw(t|0,s|0,-4,-1)|0;t=es(q,t,G,u)|0;if(t){m=t;break}if(!l){t=c[(f&p)+48>>2]|0;s=(c[(A&p)>>2]|0)+-200|0;if((s|0)>0)do{t=(d[(B+s&n)>>0]|0)+t|0;s=s+-200|0}while((s|0)>0);if((t|0)!=(c[(u&p)>>2]|0)){m=101;break}}}if((h|0)!=0?(m=bi(h,x)|0,(m|0)!=0):0)break;u=(x|0)==1;if(u?(v=f+142|0,w=a[(B&n)+20>>0]|0,(b[(v&o)>>1]|0)!=(w&255|0)):0)b[(v&o)>>1]=w&255;if(!(c[(f&p)+208>>2]|0)){w=f+204|0;t=ac[c[8876>>2]&63](c[((c[(w&p)>>2]|0)&p)+40>>2]|0,x,0)|0;t=il(c[(w&p)>>2]|0,x,t)|0}else t=0;c[(y&p)>>2]=t;if(C)if(!(a[(f&n)+7>>0]|0)){w=g;h=c[(w&p)+4>>2]|0;s=f+80|0;v=c[(s&p)+4>>2]|0;s=(h|0)<(v|0)|((h|0)==(v|0)?(c[(w&p)>>2]|0)>>>0<=(c[(s&p)>>2]|0)>>>0:0)}else s=1;else if(!t)s=1;else s=(b[(t&o)+24>>1]&4)==0;r=c[(f&p)+60>>2]|0;q=c[(r&p)>>2]|0;do if(q){m=a[(f&n)+16>>0]|0;if((m&255)>3){if(!s){z=33;break}}else if(!(m<<24>>24==0&s)){z=33;break}s=c[(A&p)>>2]|0;m=sw(s|0,((s|0)<0)<<31>>31|0,x+-1|0,0)|0;m=tc[c[(q&p)+12>>2]&31](r,B,s,m,G)|0;s=f+32|0;if(x>>>0>(c[(s&p)>>2]|0)>>>0)c[(s&p)>>2]=x;s=c[(f&p)+88>>2]|0;if(s)ap(s,x,B)}else z=33;while(0);if((z|0)==33)if((k|0)==0&(t|0)==0){w=f+20|0;a[(w&n)>>0]=d[(w&n)>>0]|2;m=zg(f,x,y,1)|0;a[(w&n)>>0]=d[(w&n)>>0]&253;if(m)break;t=c[(y&p)>>2]|0;m=t+24|0;b[(m&o)>>1]=e[(m&o)>>1]&65527;To(t);m=0}else m=0;if(t){r=c[(t&p)+4>>2]|0;kw(r|0,B|0,c[(A&p)>>2]|0)|0;cc[c[(f&p)+196>>2]&31](t);do if(C){if((l|0)!=0?(w=g,h=c[(w&p)+4>>2]|0,x=f+80|0,v=c[(x&p)+4>>2]|0,(h|0)>(v|0)|((h|0)==(v|0)?(c[(w&p)>>2]|0)>>>0>(c[(x&p)>>2]|0)>>>0:0)):0)break;xl(t)}while(0);if(u){s=f+104|0;q=r+24|0;r=s+16|0;do{a[(s&n)>>0]=a[(q&n)>>0]|0;s=s+1|0;q=q+1|0}while((s|0)<(r|0))}ol(t)}}else m=0;else m=101}else m=t}else m=t;while(0);i=D;return m|0}function xq(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0;g=b+24|0;if((c[(g&p)>>2]|0)<=(e|0)){i=e+1|0;j=b+32|0;h=Xc(c[(j&p)>>2]|0,i<<2)|0;if(!h){g=7;h=0}else{k=c[(g&p)>>2]|0;fw(h+(k<<2)|0,0,i-k<<2|0)|0;c[(j&p)>>2]=h;c[(g&p)>>2]=i;k=5}}else{h=c[(b&p)+32>>2]|0;k=5}if((k|0)==5){j=b+32|0;h=h+(e<<2)|0;do if(!(c[(h&p)>>2]|0)){if((a[(b&n)+43>>0]|0)!=2){g=c[(b&p)+4>>2]|0;g=tc[c[((c[(g&p)>>2]|0)&p)+52>>2]&31](g,e,32768,d[(b&n)+44>>0]|0,h)|0;if((g|0)!=8)break;g=b+46|0;a[(g&n)>>0]=d[(g&n)>>0]|2;g=0;break}g=qg(32768,0)|0;if(g)fw(g|0,0,32768)|0;c[((c[(j&p)>>2]|0)+(e<<2)&p)>>2]=g;g=(c[((c[(j&p)>>2]|0)+(e<<2)&p)>>2]|0)==0?7:0}else g=0;while(0);h=c[((c[(j&p)>>2]|0)+(e<<2)&p)>>2]|0}c[(f&p)>>2]=h;return g|0}function yq(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;h=b+d|0;if(!e){g=0;d=0}else{g=c[(e&p)>>2]|0;d=c[(e&p)+4>>2]|0}if(!a)do{g=g+d+(nw(c[(b&p)>>2]|0)|0)|0;d=g+d+(nw(c[(b&p)+4>>2]|0)|0)|0;b=b+8|0}while(b>>>0>>0);else do{g=g+d+(c[(b&p)>>2]|0)|0;d=g+d+(c[(b&p)+4>>2]|0)|0;b=b+8|0}while(b>>>0>>0);c[(f&p)>>2]=g;c[(f&p)+4>>2]=d;return}function zq(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;h=a+8|0;g=c[(h&p)>>2]|0;h=c[(h&p)+4>>2]|0;if((h|0)>(f|0)|(h|0)==(f|0)&g>>>0>e>>>0?(i=jw(d|0,((d|0)<0)<<31>>31|0,e|0,f|0)|0,k=G,!((k|0)<(h|0)|(k|0)==(h|0)&i>>>0>>0)):0){i=dw(g|0,h|0,e|0,f|0)|0;h=a+4|0;g=c[(h&p)>>2]|0;g=tc[c[((c[(g&p)>>2]|0)&p)+12>>2]&31](g,b,i,e,f)|0;if(!g){e=jw(i|0,((i|0)<0)<<31>>31|0,e|0,f|0)|0;f=G;g=c[(h&p)>>2]|0;g=rc[c[((c[(g&p)>>2]|0)&p)+20>>2]&127](g,c[(a&p)+16>>2]&19)|0;if(!((i|0)==(d|0)|(g|0)!=0)){d=d-i|0;h=b+i|0;g=f;j=5}}}else{h=b;g=f;j=5}if((j|0)==5){f=c[(a&p)+4>>2]|0;g=tc[c[((c[(f&p)>>2]|0)&p)+12>>2]&31](f,h,d,e,g)|0}return g|0}function Aq(a){a=a|0;var d=0,f=0,g=0,h=0,k=0,l=0;l=i;i=i+16|0;if((i|0)>=(j|0))fa();h=l+8|0;k=l+4|0;g=l;c[(h&p)>>2]=0;c[(k&p)>>2]=0;c[(g&p)>>2]=0;f=a+68|0;d=c[(f&p)>>2]|0;if(d){Po(a,(d+33|0)>>>12,h,k,g)|0;g=(c[(f&p)>>2]|0)-(c[(g&p)>>2]|0)|0;a=c[(h&p)>>2]|0;f=0;do{d=a+(f<<1)|0;if((e[(d&o)>>1]|0|0)>(g|0))b[(d&o)>>1]=0;f=f+1|0}while((f|0)!=8192);d=(c[(k&p)>>2]|0)+(g+1<<2)|0;fw(d|0,0,a-d|0)|0}i=l;return}function Bq(a,d){a=a|0;d=d|0;var e=0,f=0,g=0,h=0;g=i;i=i+16|0;if((i|0)>=(j|0))fa();e=g;h=a+204|0;f=ac[c[8876>>2]&63](c[((c[(h&p)>>2]|0)&p)+40>>2]|0,d,0)|0;f=il(c[(h&p)>>2]|0,d,f)|0;do if(!f)e=0;else{if((b[(f&o)+26>>1]|0)==1){ml(f);e=0;break}c[(e&p)>>2]=0;d=kl(c[(a&p)+208>>2]|0,c[(f&p)+20>>2]|0,e)|0;if(!d){d=ll(f,c[(e&p)>>2]|0)|0;if(!d){cc[c[(a&p)+196>>2]&31](f);d=0}}Bg(f);e=d}while(0);d=c[(a&p)+88>>2]|0;if(d)do{c[(d&p)+16>>2]=1;d=c[(d&p)+44>>2]|0}while((d|0)!=0);i=g;return e|0}function Cq(f,g,h){f=f|0;g=g|0;h=h|0;var k=0,l=0,m=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;G=i;i=i+16|0;if((i|0)>=(j|0))fa();F=G;C=c[(f&p)+52>>2]|0;t=(c[(C&p)+36>>2]|0)+-4|0;y=g&65535;D=h&65535;x=D+y|0;E=c[(f&p)+56>>2]|0;if(b[(C&o)+22>>1]&4)fw(E+y|0,0,D|0)|0;B=d[(f&n)+6>>0]|0;C=B+1|0;q=C&65535;A=C&65535;if((a[(E+A&n)+1>>0]|0)==0?(a[(E+A&n)>>0]|0)==0:0){v=h&255;t=(h&65535)>>>8&255;u=x;s=0;r=0;A=23}else{v=q;A=6}a:do if((A|0)==6){while(1){A=0;m=v&65535;r=a[(E+m&n)+1>>0]|0;l=r&255;u=d[(E+m&n)>>0]<<8|l;q=v;v=u&65535;if(!(u>>>0>>0&(u|0)!=0)){s=r;w=u;break}if(u>>>0<(m+4|0)>>>0){A=8;break}else A=6}if((A|0)==8){c[(F&p)>>2]=54420;c[(F&p)+4>>2]=10788;bd(11,13600,F);k=11;break}if(w>>>0>t>>>0){c[(F&p)>>2]=54423;c[(F&p)+4>>2]=10788;bd(11,13600,F);k=11;break}k=h&255;t=(h&65535)>>>8&255;r=(v&65535)>>>8&255;do if((w+-1|0)>>>0<(x+3|0)>>>0)if(x>>>0>w>>>0){c[(F&p)>>2]=54434;c[(F&p)+4>>2]=10788;bd(11,13600,F);k=11;break a}else{u=(d[(E+w&n)+2>>0]<<8|d[(E+w&n)+3>>0])+w|0;t=u-y|0;v=t&255;t=(t&65535)>>>8&255;s=a[(E+w&n)+1>>0]|0;r=a[(E+w&n)>>0]|0;k=l-x&255;break}else{v=k;u=x;k=0}while(0);do if(m>>>0>C>>>0?(z=(d[(E+m&n)+2>>0]<<8|d[(E+m&n)+3>>0])+m|0,(z+3|0)>=(y|0)):0)if((y|0)<(z|0)){c[(F&p)>>2]=54447;c[(F&p)+4>>2]=10788;bd(11,13600,F);k=11;break a}else{t=u-m|0;g=q;v=t&255;t=(t&65535)>>>8&255;k=(k&255)+y-z&255;break}while(0);m=E+(B+7)|0;l=a[(m&n)>>0]|0;if((l&255)<(k&255)){c[(F&p)>>2]=54453;c[(F&p)+4>>2]=10788;bd(11,13600,F);k=11;break}else{a[(m&n)>>0]=(l&255)-(k&255);A=23;break}}while(0);b:do if((A|0)==23){k=g&65535;l=E+(B+5)|0;m=E+(B+6)|0;do if((k|0)==(d[(l&n)>>0]<<8|d[(m&n)>>0]|0))if((q&65535|0)==(C|0)){a[(E+C&n)>>0]=r;a[(E+B&n)+2>>0]=s;a[(l&n)>>0]=u>>>8;a[(m&n)>>0]=u;break}else{c[(F&p)>>2]=54460;c[(F&p)+4>>2]=10788;bd(11,13600,F);k=11;break b}else{F=q&65535;a[(E+F&n)>>0]=(g&65535)>>>8;a[(E+F&n)+1>>0]=g;a[(E+k&n)>>0]=r;a[(E+k&n)+1>>0]=s;a[(E+k&n)+2>>0]=t;a[(E+k&n)+3>>0]=v}while(0);k=f+16|0;b[(k&o)>>1]=(e[(k&o)>>1]|0)+D;k=0}while(0);i=G;return k|0}function Dq(b,e,f,g){b=b|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,o=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0;w=i;i=i+16|0;if((i|0)>=(j|0))fa();t=w;s=d[(b&n)+6>>0]|0;v=c[(b&p)+56>>2]|0;r=c[((c[(b&p)+52>>2]|0)&p)+36>>2]|0;l=r+-4|0;b=s+1|0;while(1){m=v+b|0;o=(d[(m&n)>>0]|0)<<8|(d[(v+b&n)+1>>0]|0);if(!o){b=0;break}if((o|0)>(l|0)|(o|0)<(b+4|0)){u=4;break}h=v+(o+2)|0;k=v+(o+3)|0;b=(d[(h&n)>>0]|0)<<8|(d[(k&n)>>0]|0);if((b|0)<(e|0))b=o;else{q=h;l=o;u=6;break}}a:do if((u|0)==4){c[(t&p)>>2]=54252;c[(t&p)+4>>2]=10788;bd(11,13600,t);c[(f&p)>>2]=11;b=0}else if((u|0)==6){h=b-e|0;do if((h|0)>=4)if((b+l|0)>(r|0)){c[(t&p)>>2]=54275;c[(t&p)+4>>2]=10788;bd(11,13600,t);c[(f&p)>>2]=11;b=0;break a}else{a[(q&n)>>0]=h>>>8;a[(k&n)>>0]=h;break}else{b=v+(s+7)|0;if((d[(b&n)>>0]|0)<=59){s=v+l|0;s=d[(s&n)>>0]|d[(s&n)+1>>0]<<8;a[(m&n)>>0]=s;a[(m&n)+1>>0]=s>>8;a[(b&n)>>0]=(d[(b&n)>>0]|0)+h;break}if(!g){b=0;break a}c[(g&p)>>2]=1;b=0;break a}while(0);b=v+(h+l)|0}while(0);i=w;return b|0}function Eq(f){f=f|0;var g=0,h=0,k=0,l=0,m=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;G=i;i=i+16|0;if((i|0)>=(j|0))fa();E=G;B=c[(f&p)+56>>2]|0;D=d[(f&n)+6>>0]|0;x=e[(f&o)+14>>1]|0;y=b[(f&o)+18>>1]|0;t=y&65535;u=f+52|0;v=c[((c[(u&p)>>2]|0)&p)+36>>2]|0;C=(t<<1)+x|0;w=v+-4|0;z=B+(D+5)|0;A=B+(D+6)|0;a:do if(y<<16>>16){s=v;y=0;h=B;k=0;while(1){m=(y<<1)+x|0;l=B+m|0;m=B+(m+1)|0;q=(d[(l&n)>>0]|0)<<8|(d[(m&n)>>0]|0);if((q|0)<(C|0)|(q|0)>(w|0)){F=3;break}r=(Lp(f,h+q|0)|0)&65535;g=s-r|0;if((g|0)<(C|0)|(r+q|0)>(v|0)){F=5;break}a[(l&n)>>0]=g>>>8;a[(m&n)>>0]=g;if(!k)if((g|0)==(q|0))k=0;else{k=c[((c[(c[(u&p)>>2]&p)>>2]|0)&p)+200>>2]|0;h=(d[(z&n)>>0]|0)<<8|(d[(A&n)>>0]|0);kw(k+h|0,B+h|0,s-h|0)|0;h=k;F=9}else F=9;if((F|0)==9){F=0;kw(B+g|0,h+q|0,r|0)|0}y=y+1|0;if((y|0)>=(t|0)){F=11;break a}else s=g}if((F|0)==3){c[(E&p)>>2]=54184;c[(E&p)+4>>2]=10788;bd(11,13600,E);g=11;break}else if((F|0)==5){c[(E&p)>>2]=54196;c[(E&p)+4>>2]=10788;bd(11,13600,E);g=11;break}}else{g=v;F=11}while(0);if((F|0)==11){a[(z&n)>>0]=g>>>8;a[(A&n)>>0]=g;a[(B+D&n)+1>>0]=0;a[(B+D&n)+2>>0]=0;a[(B+D&n)+7>>0]=0;F=g-C|0;fw(B+C|0,0,F|0)|0;if((F|0)==(e[(f&o)+16>>1]|0|0))g=0;else{c[(E&p)>>2]=54221;c[(E&p)+4>>2]=10788;bd(11,13600,E);g=11}}i=G;return g|0}function Fq(a,e,f){a=a|0;e=e|0;f=f|0;var g=0,h=0,k=0;k=i;i=i+32|0;if((i|0)>=(j|0))fa();h=k;if((c[(f&p)>>2]|0)==0?(rp(a,e,h),g=b[(h&o)+18>>1]|0,g<<16>>16!=0):0){g=g&65535;zp(c[(a&p)+52>>2]|0,(d[(e+g&n)+1>>0]|0)<<16|(d[(e+g&n)>>0]|0)<<24|(d[(e+g&n)+2>>0]|0)<<8|(d[(e+g&n)+3>>0]|0),3,c[(a&p)+72>>2]|0,f)}i=k;return}function Gq(b,f,g){b=b|0;f=f|0;g=g|0;var h=0,i=0,j=0,k=0,l=0,m=0;do if(!(c[(g&p)>>2]|0)){h=c[(b&p)+52>>2]|0;j=c[(b&p)+56>>2]|0;l=c[(f&p)+56>>2]|0;i=d[(b&n)+6>>0]|0;k=(c[(f&p)+72>>2]|0)==1?100:0;m=d[(j+i&n)+5>>0]<<8|d[(j+i&n)+6>>0];kw(l+m|0,j+m|0,(c[(h&p)+36>>2]|0)-m|0)|0;kw(l+k|0,j+i|0,(e[(b&o)+18>>1]<<1)+(e[(b&o)+14>>1]|0)|0)|0;a[(f&n)>>0]=0;b=$p(f)|0;if(b){c[(g&p)>>2]=b;break}if(a[(h&n)+17>>0]|0)c[(g&p)>>2]=_p(f)|0}while(0);return}function Hq(f,g,h,i){f=f|0;g=g|0;h=h|0;i=i|0;var j=0,k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0;t=d[(f&n)+6>>0]|0;w=c[(f&p)+56>>2]|0;m=c[(f&p)+52>>2]|0;r=c[(m&p)+36>>2]|0;q=w+r|0;j=c[(f&p)+64>>2]|0;m=c[((c[(m&p)>>2]|0)&p)+200>>2]|0;s=w+(t+5)|0;u=w+(t+6)|0;v=(d[(s&n)>>0]|0)<<8|(d[(u&n)>>0]|0);kw(m+v|0,w+v|0,r-v|0)|0;v=w;if((g|0)>0){r=0;l=j;j=q;while(1){k=c[(h+(r<<2)&p)>>2]|0;if(k>>>0>w>>>0&k>>>0>>0)k=m+(k-v)|0;x=e[(i+(r<<1)&o)>>1]|0;j=j+(0-x)|0;kw(j|0,k|0,x|0)|0;k=j-v|0;a[(l&n)>>0]=k>>>8;a[(l&n)+1>>0]=k;r=r+1|0;if((r|0)==(g|0))break;else l=l+2|0}}else j=q;i=f+18|0;b[(i&o)>>1]=g;a[(f&n)+1>>0]=0;a[(w+t&n)+1>>0]=0;a[(w+t&n)+2>>0]=0;a[(w+t&n)+3>>0]=(e[(i&o)>>1]|0)>>>8;a[(w+t&n)+4>>0]=b[(i&o)>>1];i=j-v|0;a[(s&n)>>0]=i>>>8;a[(u&n)>>0]=i;a[(w+t&n)+7>>0]=0;return}function Iq(a,b,f,g){a=a|0;b=b|0;f=f|0;g=g|0;var h=0,i=0,j=0,k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0;u=c[(a&p)+56>>2]|0;s=u+(c[((c[(a&p)+52>>2]|0)&p)+36>>2]|0)|0;q=u+((d[(a&n)+6>>0]|0)+8+(d[(a&n)+7>>0]|0))|0;a:do if((b|0)>0){r=u;t=0;h=0;l=0;m=0;while(1){j=c[(f+(t<<2)&p)>>2]|0;if(j>>>0>=q>>>0&j>>>0>>0){i=e[(g+(t<<1)&o)>>1]|0;k=j+i|0;if((l|0)!=(k|0)){if(l)Cq(a,l-r&65535,m&65535)|0;if(k>>>0>s>>>0){h=0;break a}}else i=i+m|0;h=h+1|0}else{j=l;i=m}t=t+1|0;if((t|0)>=(b|0))break;else{l=j;m=i}}if(j)Cq(a,j-u&65535,i&65535)|0}else h=0;while(0);return h|0}function Jq(b,d,f,g,h,k,l){b=b|0;d=d|0;f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;var m=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0;y=i;i=i+16|0;if((i|0)>=(j|0))fa();w=y;q=c[(b&p)+56>>2]|0;m=c[(f&p)>>2]|0;if(!(a[(q&n)+1>>0]|0))v=(a[(q&n)+2>>0]|0)!=0;else v=1;a:do if((h|0)>0){t=0;while(1){s=e[(l+(t<<1)&o)>>1]|0;if(v?(u=Dq(b,s,w,0)|0,(u|0)!=0):0)r=u;else{r=m+(0-s)|0;if(r>>>0>>0){m=1;break a}else m=r}kw(r|0,c[(k+(t<<2)&p)>>2]|0,s|0)|0;s=r-q|0;a[(g&n)>>0]=s>>>8;a[(g&n)+1>>0]=s;t=t+1|0;if((t|0)>=(h|0)){x=9;break}else g=g+2|0}}else x=9;while(0);if((x|0)==9){c[(f&p)>>2]=m;m=0}i=y;return m|0}function Kq(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,q=0,r=0;o=i;i=i+16|0;if((i|0)>=(j|0))fa();n=o;e=c[(a&p)+44>>2]|0;h=a;f=c[(h&p)>>2]|0;h=c[(h&p)+4>>2]|0;a:do if(!e){m=a+40|0;e=c[(m&p)>>2]|0;g=((e|0)<0)<<31>>31;l=rw(f|0,h|0,e|0,g|0)|0;if(!l){k=a+8|0;k=dw(c[(k&p)>>2]|0,c[(k&p)+4>>2]|0,f|0,h|0)|0;q=G;r=c[(a&p)+24>>2]|0;e=tc[c[((c[(r&p)>>2]|0)&p)+8>>2]&31](r,c[(a&p)+36>>2]|0,(q|0)>(g|0)|(q|0)==(g|0)&k>>>0>e>>>0?e:k,f,h)|0;if(e)break;e=c[(m&p)>>2]|0}k=e-l|0;if((k|0)>=(b|0)){c[(d&p)>>2]=(c[(a&p)+36>>2]|0)+l;e=a;b=jw(c[(e&p)>>2]|0,c[(e&p)+4>>2]|0,b|0,((b|0)<0)<<31>>31|0)|0;e=a;c[(e&p)>>2]=b;c[(e&p)+4>>2]=G;e=0;break}e=a+16|0;f=c[(e&p)>>2]|0;if((f|0)<(b|0)){f=f<<1;f=(f|0)<128?128:f;while(1)if((f|0)<(b|0))f=f<<1;else{h=f;break}g=a+28|0;f=rg(c[(g&p)>>2]|0,h,((h|0)<0)<<31>>31)|0;if(!f){e=7;break}c[(e&p)>>2]=h;c[(g&p)>>2]=f}else f=c[(a&p)+28>>2]|0;h=a+28|0;kw(f|0,(c[(a&p)+36>>2]|0)+l|0,k|0)|0;l=a;l=jw(c[(l&p)>>2]|0,c[(l&p)+4>>2]|0,k|0,((k|0)<0)<<31>>31|0)|0;e=a;c[(e&p)>>2]=l;c[(e&p)+4>>2]=G;e=b-k|0;if((e|0)>0){g=e;do{f=c[(m&p)>>2]|0;f=(g|0)>(f|0)?f:g;e=Kq(a,f,n)|0;if(e)break a;kw((c[(h&p)>>2]|0)+(b-g)|0,c[(n&p)>>2]|0,f|0)|0;g=g-f|0}while((g|0)>0)}c[(d&p)>>2]=c[(h&p)>>2];e=0}else{c[(d&p)>>2]=e+f;b=jw(f|0,h|0,b|0,((b|0)<0)<<31>>31|0)|0;e=a;c[(e&p)>>2]=b;c[(e&p)+4>>2]=G;e=0}while(0);i=o;return e|0}function Lq(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=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,x=0,y=0,z=0,A=0;A=i;i=i+64|0;if((i|0)>=(j|0))fa();x=A+44|0;z=A;y=A+40|0;v=a+8|0;u=c[(v&p)>>2]|0;v=c[(v&p)+4>>2]|0;w=a+4|0;q=c[(w&p)>>2]|0;Pp(c[(a&p)+48>>2]|0,z,c[((c[((c[(a&p)>>2]|0)&p)+8>>2]|0)&p)+12>>2]|0,u,v);o=q+8|0;q=q+12|0;r=z+24|0;s=z+16|0;t=a+16|0;while(1){f=c[((c[(o&p)>>2]|0)&p)+4>>2]|0;g=c[(q&p)>>2]|0;h=c[(g+(f*56|0)&p)+20>>2]|0;if(!(c[(g+(f*56|0)&p)+24>>2]|0)){d=1;b=0;break}l=r;k=c[(l&p)>>2]|0;l=c[(l&p)+4>>2]|0;m=c[(s&p)>>2]|0;n=((h|0)<0)<<31>>31;b=h;e=n;d=0;do{d=d+1|0;b=mw(b|0,e|0,7)|0;e=G}while(((b|0)!=0|(e|0)!=0)&(d|0)<9);k=jw(k|0,l|0,h|0,n|0)|0;k=jw(k|0,G|0,m|0,((m|0)<0)<<31>>31|0)|0;d=jw(k|0,G|0,d|0,((d|0)<0)<<31>>31|0)|0;k=G;b=c[(t&p)>>2]|0;b=jw(b|0,((b|0)<0)<<31>>31|0,u|0,v|0)|0;e=G;if((k|0)>(e|0)|(k|0)==(e|0)&d>>>0>b>>>0){d=1;b=0;break}Qp(z,x,pm(x,h,n)|0);Qp(z,c[(g+(f*56|0)&p)+32>>2]|0,h);b=Wm(c[(w&p)>>2]|0,y)|0;if(b){d=0;break}}z=Rp(z,a+56|0)|0;i=A;return (d?z:b)|0}function Mq(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0;d=i;i=i+16|0;if((i|0)>=(j|0))fa();f=d;c[(f&p)>>2]=e;e=Wk(a,13592,f)|0;mg(a,b);i=d;return e|0}function Nq(d,e,f,g){d=d|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,q=0;q=i;i=i+16|0;if((i|0)>=(j|0))fa();m=q;h=a[(d&n)>>0]|0;if(h<<24>>24!=0&(e|0)>0){l=0;do{if((h+-48&255)<10){k=0;do{k=(k*10|0)+-48+(h<<24>>24)|0;d=d+1|0;h=a[(d&n)>>0]|0}while((h+-48&255)<10);h=0}else{k=0;h=0}b[(f+(l<<1)&o)>>1]=fs(k,h)|0;d=(a[(d&n)>>0]|0)==32?d+1|0:d;l=l+1|0;h=a[(d&n)>>0]|0}while(h<<24>>24!=0&(l|0)<(e|0))}l=g+51|0;a[(l&n)>>0]=a[(l&n)>>0]&-69;a:do if(a[(d&n)>>0]|0){f=g+44|0;b:while(1){do if(!(Gh(13448,d,10352,0)|0)){if(Gh(13464,d,10352,0)|0){c[(m&p)>>2]=0;Dn(d+3|0,m)|0;h=c[(m&p)>>2]|0;b[(f&o)>>1]=fs(h,((h|0)<0)<<31>>31)|0;break}if(Gh(13480,d,10352,0)|0)a[(l&n)>>0]=a[(l&n)>>0]|64}else a[(l&n)>>0]=a[(l&n)>>0]|4;while(0);while(1){h=a[(d&n)>>0]|0;if(h<<24>>24==32|h<<24>>24==0)break;d=d+1|0}while(1){k=d+1|0;if(!(h<<24>>24))break a;else if(h<<24>>24!=32)continue b;h=a[(k&n)>>0]|0;d=k}}}while(0);i=q;return}function Oq(d){d=d|0;var e=0,f=0;f=d+8|0;e=c[(f&p)>>2]|0;if(!e){e=vh(d)|0;c[(f&p)>>2]=e;if(e)wh(e,155,0,0,0)|0;if((c[(d&p)+408>>2]|0)==0?(b[((c[(d&p)>>2]|0)&o)+60>>1]&8)==0:0)a[(d&n)+23>>0]=1}return e|0}function Pq(b,d){b=b|0;d=d|0;var e=0;e=(c[(b&p)+32>>2]|0)+-1|0;if((e|0)>(c[((c[(b&p)+24>>2]|0)&p)+88>>2]|0)?(a[((c[(b&p)+4>>2]|0)+(e*20|0)&n)>>0]|0)==d<<24>>24:0){zh(b,e);e=1}else e=0;return e|0}function Qq(d,e,f,g,h){d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var i=0,j=0;j=Oq(d)|0;i=g+32|0;gs(d,f,c[(i&p)>>2]|0,(h|0)==55&1,c[(g&p)>>2]|0);if(!(a[(g&n)+44>>0]&32)){g=b[(g&o)+38>>1]|0;xh(j,wh(j,h,e,c[(i&p)>>2]|0,f)|0,g,-14)}else{i=c[(g&p)+8>>2]|0;a:do if(!i)i=0;else while(1){if((a[(i&n)+51>>0]&3)==2)break a;i=c[(i&p)+20>>2]|0;if(!i){i=0;break}}while(0);wh(j,h,e,c[(i&p)+40>>2]|0,f)|0;g=c[(d&p)+8>>2]|0;xh(g,-1,hs(d,i)|0,-6)}return}function Rq(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0;if((d|0)!=0?(a[(d&n)>>0]|0)==-97:0)wh(c[(b&p)+8>>2]|0,33,c[(d&p)+28>>2]|0,e,0)|0;else h=4;if(((h|0)==4?(g=is(b,d,e)|0,(g|0)!=(e|0)):0)?(f=c[(b&p)+8>>2]|0,(f|0)!=0):0)wh(f,34,g,e,0)|0;return}function Sq(b,d,e,f,g){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0;m=i;i=i+16|0;if((i|0)>=(j|0))fa();l=m;h=c[(b&p)>>2]|0;do if(((a[(h&n)+145>>0]|0)==0?(a[(b&n)+451>>0]|0)==0:0)?(k=c[(h&p)+284>>2]|0,(k|0)!=0):0){h=kc[k&7](c[(h&p)+288>>2]|0,d,e,f,g,c[(b&p)+492>>2]|0)|0;if((h|0)==1){th(b,25216,l);c[(b&p)+12>>2]=23;h=1;break}else if((h|0)==0|(h|0)==2)break;else{th(b,25232,l);c[(b&p)+12>>2]=1;h=1;break}}else h=0;while(0);i=m;return h|0}function Tq(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;d=Wq(c[(a&p)>>2]|0,d)|0;do if(d){e=Oq(a)|0;if((e|0)!=0?(Sq(a,32,c[(b<<2&p)+37088>>2]|0,d,0)|0)==0:0){xh(e,wh(e,2,b,0,0)|0,d,-1);break}mg(c[(a&p)>>2]|0,d)}while(0);return}function Uq(e,f,g,h,k,l,m){e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;m=m|0;var q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0;y=i;i=i+16|0;if((i|0)>=(j|0))fa();u=y;s=y+4|0;x=c[(e&p)>>2]|0;f=er(e,f,g,s)|0;a:do if((f|0)>=0){t=(h|0)!=0;if(t?(c[(g&p)+4>>2]|0)!=0&(f|0)!=1:0){th(e,36976,u);break}w=t?1:f;g=c[(s&p)>>2]|0;t=g;f=c[(t&p)+4>>2]|0;s=e+496|0;c[(s&p)>>2]=c[(t&p)>>2];c[(s&p)+4>>2]=f;s=Wq(x,g)|0;if(s){b:do if((Lr(e,s)|0)==0?(r=(a[(x&n)+144>>0]|0)==1?1:h,v=x+16|0,q=c[((c[(v&p)>>2]|0)+(w<<4)&p)>>2]|0,(Sq(e,18,(r|0)==1?13184:13208,0,q)|0)==0):0){h=(r|0)!=0;if(!k)f=h?4:2;else f=h?6:8;t=(l|0)!=0;if(!t?(Sq(e,f,s,0,q)|0)!=0:0)break;do if(!(a[(e&n)+451>>0]|0)){h=c[((c[(v&p)>>2]|0)+(w<<4)&p)>>2]|0;if(Gn(e)|0)break b;if(!(_h(x,s,h)|0)){if(!(bq(x,s,h)|0))break;c[(u&p)>>2]=s;th(e,37048,u);break b}if(!m){c[(u&p)>>2]=g;th(e,37024,u);break b}else{Ar(e,w);break b}}while(0);r=mh(x,76,0)|0;if(!r){a[(x&n)+65>>0]=1;c[(e&p)+12>>2]=7;v=e+64|0;c[(v&p)>>2]=(c[(v&p)>>2]|0)+1;break}q=r+0|0;h=q+76|0;do{a[(q&n)>>0]=0;q=q+1|0}while((q|0)<(h|0));c[(r&p)>>2]=s;b[(r&o)+36>>1]=-1;q=c[((c[(v&p)>>2]|0)+(w<<4)&p)+12>>2]|0;c[(r&p)+68>>2]=q;b[(r&o)+40>>1]=1;b[(r&o)+28>>1]=200;c[(e&p)+484>>2]=r;if((a[(e&n)+18>>0]|0)==0?(_v(s,26576)|0)==0:0)c[(q&p)+72>>2]=r;if(a[(x&n)+145>>0]|0)break a;g=Oq(e)|0;if(!g)break a;v=c[(e&p)+408>>2]|0;Ar(e,w);q=1<>2]=c[(v&p)>>2]|q;if(t)wh(g,146,0,0,0)|0;r=e+72|0;f=c[(r&p)>>2]|0;s=f+1|0;c[(e&p)+384>>2]=s;t=f+2|0;c[(e&p)+388>>2]=t;f=f+3|0;c[(r&p)>>2]=f;wh(g,51,w,f,2)|0;r=g+96|0;c[(r&p)>>2]=c[(r&p)>>2]|q;r=wh(g,45,f,0,0)|0;wh(g,25,(c[(x&p)+24>>2]&32768|0)!=0?1:4,f,0)|0;wh(g,52,w,2,f)|0;wh(g,25,d[(x&n)+62>>0]|0,f,0)|0;wh(g,52,w,5,f)|0;h=g+32|0;q=c[(h&p)>>2]|0;if(q>>>0>r>>>0)c[((c[(g&p)+4>>2]|0)+(r*20|0)&p)+8>>2]=q;c[((c[(g&p)+24>>2]|0)&p)+88>>2]=q+-1;if(!(l|k))c[(e&p)+416>>2]=wh(g,121,w,t,0)|0;else wh(g,25,0,t,0)|0;js(e,w);wh(g,74,0,s,0)|0;wh(g,28,0,f,0)|0;wh(g,75,0,f,s)|0;q=c[(g&p)+4>>2]|0;if(q)a[(q+(((c[(h&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=8;wh(g,61,0,0,0)|0;break a}while(0);mg(x,s)}}while(0);i=y;return}function Vq(f,g,h,k,l){f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;var m=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;R=i;i=i+176|0;if((i|0)>=(j|0))fa();M=R+80|0;J=R+168|0;G=R;H=R+136|0;I=R+112|0;N=c[(f&p)>>2]|0;a:do if((!((h|0)==0&(l|0)==0)?(O=N+65|0,(a[(O&n)>>0]|0)==0):0)?(P=f+484|0,Q=c[(P&p)>>2]|0,(Q|0)!=0):0){L=N+145|0;if(a[(L&n)>>0]|0)c[(Q&p)+32>>2]=c[(N&p)+140>>2];b:do if(k&32){s=Q+44|0;r=d[(s&n)>>0]|0;if(r&8){th(f,36584,M);break a}if(!(r&4)){c[(M&p)>>2]=c[(Q&p)>>2];th(f,36640,M);break}a[(s&n)>>0]=r|32;t=c[(f&p)+8>>2]|0;s=c[(f&p)+416>>2]|0;if(s){if((s|0)<0)s=(c[(t&p)+32>>2]|0)+-1|0;if(!(a[((c[(t&p)>>2]|0)&n)+65>>0]|0))s=(c[(t&p)+4>>2]|0)+(s*20|0)|0;else s=29120;a[(s&n)>>0]=120}s=c[(f&p)+420>>2]|0;if(s){if((s|0)<0)s=(c[(t&p)+32>>2]|0)+-1|0;if(!(a[((c[(t&p)>>2]|0)&n)+65>>0]|0))r=(c[(t&p)+4>>2]|0)+(s*20|0)|0;else r=29120;a[(r&n)>>0]=16}r=Q+36|0;if((b[(r&o)>>1]|0)>-1){s=lr(f,0,0)|0;if(!s)break;C=kh(c[(f&p)>>2]|0,c[((c[(Q&p)+4>>2]|0)+((b[(r&o)>>1]|0)*24|0)&p)>>2]|0)|0;D=c[(s&p)+4>>2]|0;c[(D&p)+4>>2]=C;a[(D&n)+12>>0]=a[(f&n)+448>>0]|0;s=$q(f,0,0,0,s,d[(Q&n)+45>>0]|0,0,0,0,0)|0;if(!s)break;x=s+51|0;a[(x&n)>>0]=a[(x&n)>>0]&-4|2;b[(r&o)>>1]=-1;x=b[(s&o)+46>>1]|0}else{s=c[(Q&p)+8>>2]|0;c:do if(!s)s=0;else while(1){if((a[(s&n)+51>>0]&3)==2)break c;s=c[(s&p)+20>>2]|0;if(!s){s=0;break}}while(0);y=s+46|0;t=b[(y&o)>>1]|0;if((t&65535)>1){w=c[(s&p)+4>>2]|0;v=s+48|0;x=1;r=1;do{m=b[(w+(x<<1)&o)>>1]|0;u=r;q=w;while(1){if((u|0)<=0){F=36;break}if((b[(q&o)>>1]|0)==m<<16>>16){F=35;break}else{u=u+-1|0;q=q+2|0}}if((F|0)==35){F=0;b[(v&o)>>1]=(b[(v&o)>>1]|0)+-1<<16>>16}else if((F|0)==36){F=0;b[(w+(r<<1)&o)>>1]=m;t=b[(y&o)>>1]|0;r=r+1|0}x=x+1|0}while((x|0)<(t&65535|0))}else r=1;x=r&65535;b[(y&o)>>1]=x}u=s+51|0;t=a[(u&n)>>0]|32;a[(u&n)>>0]=t;D=x&65535;if(!(a[(N&n)+147>>0]|0)){if(x<<16>>16){t=c[(s&p)+4>>2]|0;r=c[(Q&p)+4>>2]|0;q=0;do{a[(r+((b[(t+(q<<1)&o)>>1]|0)*24|0)&n)+20>>0]=1;q=q+1|0}while((q|0)<(D|0));t=a[(u&n)>>0]|0}a[(u&n)>>0]=t|8}c[(s&p)+40>>2]=c[(Q&p)+32>>2];u=c[(Q&p)+8>>2]|0;if(u){A=x<<16>>16==0;B=s+4|0;C=s+32|0;do{d:do if((a[(u&n)+51>>0]&3)!=2){do if(A)t=b[(u&o)+46>>1]|0;else{v=c[(u&p)+4>>2]|0;t=b[(u&o)+46>>1]|0;q=t&65535;m=c[(B&p)>>2]|0;z=0;r=0;do{w=b[(m+(z<<1)&o)>>1]|0;y=q;x=v;while(1){if((y|0)<=0){x=1;break}if((b[(x&o)>>1]|0)==w<<16>>16){x=0;break}else{y=y+-1|0;x=x+2|0}}r=x+r|0;z=z+1|0}while((z|0)<(D|0));q=u+46|0;if(!r)break;if(ks(N,u,(t&65535)+r|0)|0)break b;if(A)break d;w=b[(q&o)>>1]|0;z=u+4|0;m=u+32|0;y=w;x=0;w=w&65535;while(1){t=c[(z&p)>>2]|0;r=b[((c[(B&p)>>2]|0)+(x<<1)&o)>>1]|0;y=y&65535;v=t;while(1){if((y|0)<=0){F=63;break}if((b[(v&o)>>1]|0)==r<<16>>16)break;else{y=y+-1|0;v=v+2|0}}if((F|0)==63){F=0;b[(t+(w<<1)&o)>>1]=r;c[((c[(m&p)>>2]|0)+(w<<2)&p)>>2]=c[((c[(C&p)>>2]|0)+(x<<2)&p)>>2];w=w+1|0}x=x+1|0;if((x|0)>=(D|0))break d;y=b[(q&o)>>1]|0}}while(0);b[(u&o)+48>>1]=t}while(0);u=c[(u&p)+20>>2]|0}while((u|0)!=0)}y=Q+38|0;t=b[(y&o)>>1]|0;r=t<<16>>16;if((D|0)>=(r|0)){b[(s&o)+48>>1]=t;break}if((ks(N,s,r)|0)==0?(E=b[(y&o)>>1]|0,E<<16>>16>0):0){v=s+4|0;x=s+32|0;t=E;w=0;s=D;do{q=c[(v&p)>>2]|0;u=s;r=q;while(1){if((u|0)<=0){F=74;break}if((b[(r&o)>>1]|0)==(w|0))break;else{u=u+-1|0;r=r+2|0}}if((F|0)==74){F=0;b[(q+(s<<1)&o)>>1]=w;c[((c[(x&p)>>2]|0)+(s<<2)&p)>>2]=11152;t=b[(y&o)>>1]|0;s=s+1|0}w=w+1|0}while((w|0)<(t<<16>>16|0))}}while(0);F=Q+68|0;s=c[(F&p)>>2]|0;e:do if(s){r=c[(N&p)+20>>2]|0;if((r|0)>0){q=c[(N&p)+16>>2]|0;t=0;while(1){m=t+1|0;if((c[(q+(t<<4)&p)+12>>2]|0)==(s|0))break e;if((m|0)<(r|0))t=m;else{t=m;break}}}else t=0}else t=-1e6;while(0);q=c[(Q&p)+24>>2]|0;f:do if(q){c[(H&p)>>2]=0;c[(H&p)+4>>2]=0;c[(H&p)+8>>2]=0;c[(H&p)+12>>2]=0;c[(H&p)+16>>2]=0;c[(H&p)+20>>2]=0;c[(H&p)+24>>2]=0;c[(H&p)+28>>2]=0;s=G+0|0;r=s+80|0;do{c[(s&p)>>2]=0;s=s+4|0}while((s|0)<(r|0));c[(G&p)>>2]=1;c[(G&p)+16>>2]=c[(Q&p)>>2];c[(G&p)+24>>2]=Q;c[(G&p)+48>>2]=-1;c[(H&p)>>2]=f;c[(H&p)+4>>2]=G;b[(H&o)+28>>1]=4;s=q+4|0;if((c[(q&p)>>2]|0)>0){r=0;do{if(ls(H,c[((c[(s&p)>>2]|0)+(r*20|0)&p)>>2]|0)|0)break f;r=r+1|0}while((r|0)<(c[(q&p)>>2]|0))}}while(0);D=Q+38|0;m=b[(D&o)>>1]|0;if(m<<16>>16>0){s=m<<16>>16;r=c[(Q&p)+4>>2]|0;q=0;while(1){q=(d[(r&n)+22>>0]|0)+q|0;s=s+-1|0;if((s|0)<=0)break;else r=r+24|0}}else q=0;b[(Q&o)+42>>1]=fs(((e[(Q&o)+36>>1]|0)>>>15&65535)+q<<2,0)|0;q=c[(Q&p)+8>>2]|0;if(q)do{ms(q);q=c[(q&p)+20>>2]|0}while((q|0)!=0);if(!(a[(L&n)>>0]|0)){E=Oq(f)|0;if(!E)break;wh(E,61,0,0,0)|0;B=(c[(Q&p)+12>>2]|0)==0;r=B?36672:36680;B=B?31232:35480;do if(!l){q=k<<24>>24==0?h:f+504|0;l=c[(q&p)>>2]|0;s=c[(f&p)+496>>2]|0;m=l-s|0;if((a[(l&n)>>0]|0)!=59)m=(c[(q&p)+4>>2]|0)+m|0;c[(M&p)>>2]=r;c[(M&p)+4>>2]=m;c[(M&p)+8>>2]=s;s=f+388|0;m=Q;r=uh(N,36688,M)|0}else{s=f+388|0;wh(E,55,1,c[(s&p)>>2]|0,t)|0;r=c[(E&p)+4>>2]|0;if(r)a[(r+(((c[(E&p)+32>>2]|0)+-1|0)*20|0)&n)+3>>0]=4;c[(f&p)+68>>2]=2;a[(I&n)>>0]=14;c[(I&p)+4>>2]=1;a[(I&n)+1>>0]=0;c[(I&p)+8>>2]=0;c[(I&p)+12>>2]=0;ir(f,l,I)|0;wh(E,61,1,0,0)|0;if(!(c[(f&p)+64>>2]|0)){m=ns(f,l)|0;if(!m)break a;I=m+38|0;b[(D&o)>>1]=b[(I&o)>>1]|0;l=m+4|0;c[(Q&p)+4>>2]=c[(l&p)>>2];b[(I&o)>>1]=0;c[(l&p)>>2]=0;kg(N,m)}C=Q+4|0;z=b[(D&o)>>1]|0;if(z<<16>>16>0){v=z<<16>>16;w=0;r=0;x=c[(C&p)>>2]|0;while(1){m=c[(x&p)>>2]|0;q=0;while(1){u=a[(m&n)>>0]|0;if(u<<24>>24==34)q=q+1|0;else if(!(u<<24>>24))break;m=m+1|0;q=q+1|0}r=r+7+q|0;w=w+1|0;if((w|0)==(v|0))break;else x=x+24|0}u=r+2|0}else u=2;m=c[(Q&p)>>2]|0;r=0;while(1){q=a[(m&n)>>0]|0;if(q<<24>>24==34)r=r+1|0;else if(!(q<<24>>24))break;m=m+1|0;r=r+1|0}x=r+u|0;A=(x|0)<50;u=A?10360:36880;y=A?20240:36888;A=A?33952:36896;x=((z<<16>>16)*6|0)+35+x|0;r=qg(x,((x|0)<0)<<31>>31)|0;if(!r){a[(O&n)>>0]=1;m=Q;r=0;break}ad(x,r,36904,M)|0;q=r;while(1)if(!(a[(q&n)>>0]|0))break;else q=q+1|0;c[(J&p)>>2]=q-r&1073741823;os(r,J,c[(Q&p)>>2]|0);m=c[(J&p)>>2]|0;v=m+1|0;c[(J&p)>>2]=v;a[(r+m&n)>>0]=40;m=x-v|0;q=r+v|0;if((b[(D&o)>>1]|0)>0){z=0;w=c[(C&p)>>2]|0;while(1){ad(m,q,u,M)|0;q=r+v|0;if(!q)q=0;else{u=q;while(1)if(!(a[(u&n)>>0]|0))break;else u=u+1|0;q=u-q&1073741823}c[(J&p)>>2]=q+v;os(r,J,c[(w&p)>>2]|0);q=c[((a[(w&n)+21>>0]|0)+-65<<2&p)+36920>>2]|0;u=q;while(1)if(!(a[(u&n)>>0]|0))break;else u=u+1|0;v=u-q&1073741823;u=c[(J&p)>>2]|0;kw(r+u|0,q|0,v|0)|0;v=u+v|0;c[(J&p)>>2]=v;u=z+1|0;m=x-v|0;q=r+v|0;if((u|0)<(b[(D&o)>>1]|0)){z=u;w=w+24|0;u=y}else break}}c[(M&p)>>2]=A;ad(m,q,10344,M)|0;m=Q}while(0);q=N+16|0;k=c[(m&p)>>2]|0;I=c[(s&p)>>2]|0;l=c[(f&p)+384>>2]|0;c[(M&p)>>2]=c[((c[(q&p)>>2]|0)+(t<<4)&p)>>2];c[(M&p)+4>>2]=(t|0)==1?13184:13208;c[(M&p)+8>>2]=B;c[(M&p)+12>>2]=k;c[(M&p)+16>>2]=k;c[(M&p)+20>>2]=I;c[(M&p)+24>>2]=r;c[(M&p)+28>>2]=l;Br(f,36704,M);mg(N,r);Dr(f,t);if((a[(Q&n)+44>>0]&8)!=0?(K=c[(q&p)>>2]|0,(c[((c[(K+(t<<4)&p)+12>>2]|0)&p)+72>>2]|0)==0):0){c[(M&p)>>2]=c[(K+(t<<4)&p)>>2];Br(f,36792,M)}c[(M&p)>>2]=c[(m&p)>>2];Ir(E,t,uh(N,36840,M)|0);if(!(a[(L&n)>>0]|0))break}else m=Q;if(Ik((c[(F&p)>>2]|0)+8|0,c[(m&p)>>2]|0,Q)|0){a[(O&n)>>0]=1;break}c[(P&p)>>2]=0;l=N+24|0;c[(l&p)>>2]=c[(l&p)>>2]|2;if(!(c[(Q&p)+12>>2]|0)){l=c[(f&p)+496>>2]|0;c[(Q&p)+48>>2]=(Nn(l,(c[(((c[(g&p)>>2]|0)==0?h:g)&p)>>2]|0)-l|0)|0)+13}}while(0);i=R;return}function Wq(b,d){b=b|0;d=d|0;var e=0,f=0;if(!d)e=0;else{f=c[(d&p)>>2]|0;d=c[(d&p)+4>>2]|0;if((f|0)!=0?(e=jw(d|0,0,1,0)|0,e=mh(b,e,G)|0,(e|0)!=0):0){kw(e|0,f|0,d|0)|0;a[(e+d&n)>>0]=0}else e=0;lo(e)}return e|0}function Xq(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,o=0,q=0;o=i;i=i+16|0;if((i|0)>=(j|0))fa();m=o;a:do if(b){g=a[(b&n)>>0]|0;b:do if(!(g<<24>>24)){f=67;g=0}else{k=g;f=67;h=0;g=0;do{h=d[(k&255&n)+9328>>0]|0|h<<8;b=b+1|0;if((h|0)==1685026146)if(f<<24>>24==67){f=69;h=1685026146;l=5}else l=13;else if((h|0)==1668050786){f=66;l=5}else if((h|0)==1718382433)if(f<<24>>24==67){f=69;h=1718382433;l=5}else l=13;else if((h|0)==1919246700)if(f<<24>>24==67){f=69;h=1919246700;l=5}else l=14;else if((h|0)==1952807028){f=66;l=5}else if((h|0)==1651273570)if(f<<24>>24==69|f<<24>>24==67){q=a[(b&n)>>0]|0;k=q;f=65;h=1651273570;g=q<<24>>24==40?b:g}else l=14;else if((h|0)!=1667785074)if((h&16777215|0)==6909556){f=68;break b}else l=5;else{f=66;h=1667785074;g=b;l=5}if((l|0)==13)l=5;else if((l|0)==14)l=5;if((l|0)==5){l=0;k=a[(b&n)>>0]|0}}while(k<<24>>24!=0)}while(0);if((e|0)!=0?(a[(e&n)>>0]=1,f<<24>>24<67):0){if(!g){a[(e&n)>>0]=5;break}b=a[(g&n)>>0]|0;if(b<<24>>24){while(1){if(((b&255)+-48|0)>>>0<10)break;g=g+1|0;b=a[(g&n)>>0]|0;if(!(b<<24>>24))break a}c[(m&p)>>2]=0;Dn(g,m)|0;g=((c[(m&p)>>2]|0)/4|0)+1|0;g=(g|0)>255?255:g;c[(m&p)>>2]=g;a[(e&n)>>0]=g}}}else f=67;while(0);i=o;return f|0}function Yq(e,f){e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,q=0,r=0,s=0,t=0;r=i;i=i+32|0;if((i|0)>=(j|0))fa();m=r;q=c[(e&p)>>2]|0;k=c[(e&p)+484>>2]|0;do if(k){h=(b[(k&o)+38>>1]|0)+-1|0;l=c[(k&p)+4>>2]|0;s=c[(f&p)>>2]|0;t=(d[(q&n)+145>>0]|0)+4|0;c[(m&p)>>2]=0;c[(m&p)+4>>2]=0;c[(m&p)+8>>2]=0;c[(m&p)+12>>2]=0;c[(m&p)+16>>2]=0;c[(m&p)+20>>2]=0;k=m+20|0;a[(k&n)>>0]=t;c[(m&p)>>2]=78;c[(m&p)+4>>2]=79;c[(m&p)+24>>2]=0;rs(m,s)|0;if(!(a[(k&n)>>0]|0)){c[(m&p)>>2]=c[(l+(h*24|0)&p)>>2];th(e,36480,m);break}k=l+(h*24|0)+4|0;Gk(q,c[(k&p)>>2]|0);c[(k&p)>>2]=Mr(q,c[(f&p)>>2]|0,1,0)|0;l=l+(h*24|0)+8|0;mg(q,c[(l&p)>>2]|0);h=c[(f&p)+4>>2]|0;k=(c[(f&p)+8>>2]|0)-h|0;if((h|0)!=0?(g=jw(k|0,((k|0)<0)<<31>>31|0,1,0)|0,g=mh(q,g,G)|0,(g|0)!=0):0){kw(g|0,h|0,k|0)|0;a[(g+k&n)>>0]=0}else g=0;c[(l&p)>>2]=g}while(0);Gk(q,c[(f&p)>>2]|0);i=r;return}function Zq(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,k=0;k=i;i=i+16|0;if((i|0)>=(j|0))fa();h=k;if((b|0)==72&(d|0)!=0&(e|0)!=0?(c[(a&p)+64>>2]|0)==0:0)b=ss(c[(a&p)>>2]|0,d,e)|0;else{b=nr(c[(a&p)>>2]|0,b,f,1)|0;ts(c[(a&p)>>2]|0,b,d,e)}if((b|0)!=0?(g=c[((c[(a&p)>>2]|0)&p)+100>>2]|0,(g|0)<(c[(b&p)+24>>2]|0)):0){c[(h&p)>>2]=g;th(a,27152,h)}i=k;return b|0}function _q(e,f,g,h,k){e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;var l=0,m=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;i=i+16|0;if((i|0)>=(j|0))fa();C=D;A=c[(e&p)+484>>2]|0;do if((A|0)!=0?(a[(e&n)+451>>0]|0)==0:0){B=A+44|0;m=d[(B&n)>>0]|0;if(m&4){c[(C&p)>>2]=c[(A&p)>>2];th(e,36376,C);break}y=m|4;a[(B&n)>>0]=y;z=(f|0)==0;if(z){m=(b[(A&o)+38>>1]|0)+-1|0;w=c[(A&p)+4>>2]|0;l=w+(m*24|0)+23|0;a[(l&n)>>0]=d[(l&n)>>0]|1;l=m;q=1;m=c[(w+(m*24|0)&p)+12>>2]|0}else{x=c[(f&p)>>2]|0;if((x|0)>0){u=f+4|0;v=A+4|0;t=b[(A&o)+38>>1]|0;w=0;m=0;do{a:do if(t<<16>>16>0){r=c[((c[(u&p)>>2]|0)+(w*20|0)&p)+4>>2]|0;s=c[(v&p)>>2]|0;q=0;while(1){l=q+1|0;if(!(dd(r,c[(s+(q*24|0)&p)>>2]|0)|0))break;if((l|0)<(t<<16>>16|0))q=l;else break a}l=s+(q*24|0)+23|0;a[(l&n)>>0]=d[(l&n)>>0]|1;l=q;m=c[(s+(q*24|0)&p)+12>>2]|0}else l=0;while(0);w=w+1|0}while((w|0)!=(x|0))}else{l=-1;m=0}q=(x|0)==1}if(q&(m|0)!=0?(dd(m,11144)|0|k|0)==0:0){b[(A&o)+36>>1]=l;a[(A&n)+45>>0]=g;a[(B&n)>>0]=y|h<<3;if(z){f=0;break}a[(e&n)+448>>0]=a[((c[(f&p)+4>>2]|0)&n)+12>>0]|0;break}if(h){th(e,36424,C);break}m=c[(e&p)+8>>2]|0;l=(m|0)!=0;if(l)c[(e&p)+420>>2]=wh(m,156,0,0,0)|0;f=$q(e,0,0,0,f,g,0,0,k,0)|0;if((f|0)!=0?(w=f+51|0,a[(w&n)>>0]=a[(w&n)>>0]&-4|2,l):0){f=c[(e&p)+420>>2]|0;l=c[(m&p)+32>>2]|0;if(l>>>0>f>>>0)c[((c[(m&p)+4>>2]|0)+(f*20|0)&p)+8>>2]=l;c[((c[(m&p)+24>>2]|0)&p)+88>>2]=l+-1;f=0}else f=0}while(0);Nk(c[(e&p)>>2]|0,f);i=D;return}function $q(f,g,h,k,l,m,q,r,s,t){f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;m=m|0;q=q|0;r=r|0;s=s|0;t=t|0;var 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;Y=i;i=i+144|0;if((i|0)>=(j|0))fa();V=Y;E=Y+112|0;x=Y+88|0;T=Y+84|0;N=Y+80|0;X=c[(f&p)>>2]|0;c[(T&p)>>2]=0;c[(N&p)>>2]=0;S=X+65|0;a:do if(((a[(S&n)>>0]|0)==0?(a[(f&n)+451>>0]|0)==0:0)?(Gn(f)|0)==0:0){U=(k|0)!=0;b:do if(U){g=er(f,g,h,T)|0;if((g|0)<0){u=0;h=0;break a}if((a[(X&n)+145>>0]|0)==0?(u=Jr(f,k)|0,(c[(h&p)+4>>2]|0)==0&(u|0)!=0):0)g=(c[(u&p)+68>>2]|0)==(c[((c[(X&p)+16>>2]|0)&p)+28>>2]|0)?1:g;h=c[(T&p)>>2]|0;u=c[(f&p)>>2]|0;c[(x&p)>>2]=f;u=c[(u&p)+16>>2]|0;c[(x&p)+12>>2]=c[(u+(g<<4)&p)>>2];c[(x&p)+4>>2]=c[(u+(g<<4)&p)+12>>2];c[(x&p)+16>>2]=20632;c[(x&p)+20>>2]=h;u=(g|0)==1;c[(x&p)+8>>2]=u&1;Kr(x,k)|0;w=Ur(f,0,k+8|0)|0;if(!w){u=0;h=0;break a}if(u?(c[((c[(X&p)+16>>2]|0)&p)+28>>2]|0)!=(c[(w&p)+68>>2]|0):0){c[(V&p)>>2]=c[(w&p)>>2];th(f,35920,V);u=0;h=0;break a}if((a[(w&n)+44>>0]&32)!=0?(v=c[(w&p)+8>>2]|0,(v|0)!=0):0){u=v;while(1){if((a[(u&n)+51>>0]&3)==2){v=g;M=u;x=w;break b}u=c[(u&p)+20>>2]|0;if(!u){v=g;M=0;x=w;break}}}else{v=g;M=0;x=w}}else{x=c[(f&p)+484>>2]|0;if(!x){u=0;h=0;break a}g=c[(x&p)+68>>2]|0;if(g){u=c[(X&p)+20>>2]|0;if((u|0)>0){h=c[(X&p)+16>>2]|0;w=0;while(1){v=w+1|0;if((c[(h+(w<<4)&p)+12>>2]|0)==(g|0)){h=0;v=w;M=0;break b}if((v|0)<(u|0))w=v;else{h=0;M=0;break}}}else{h=0;v=0;M=0}}else{h=0;v=-1e6;M=0}}while(0);R=X+16|0;F=c[(R&p)>>2]|0;g=F+(v<<4)|0;A=c[(x&p)>>2]|0;if(((Fc(A,25568,7)|0)==0?(a[(X&n)+145>>0]|0)==0:0)?(Fc(A+7|0,35976,9)|0)!=0:0){c[(V&p)>>2]=A;th(f,35992,V);u=0;h=0;break}if(c[(x&p)+12>>2]|0){th(f,36024,V);u=0;h=0;break}Q=x+44|0;if(a[(Q&n)>>0]&16){th(f,36056,V);u=0;h=0;break}G=(h|0)==0;if(!G){h=Wq(X,h)|0;if(!h){u=0;h=0;break}if(Lr(f,h)|0){u=0;break}if((a[(X&n)+145>>0]|0)==0?(_h(X,h,0)|0)!=0:0){c[(V&p)>>2]=h;th(f,36096,V);u=0;break}if(bq(X,h,c[(g&p)>>2]|0)|0)if(!t){c[(V&p)>>2]=h;th(f,36136,V);u=0;break}else{Ar(f,v);u=0;break}else w=h}else{u=c[(x&p)+8>>2]|0;if(!u)w=1;else{w=1;do{w=w+1|0;u=c[(u&p)+20>>2]|0}while((u|0)!=0)}c[(V&p)>>2]=A;c[(V&p)+4>>2]=w;w=uh(X,36160,V)|0;if(!w){u=0;h=0;break}}g=c[(g&p)>>2]|0;u=(v|0)==1;O=u?13184:13208;if((Sq(f,18,O,0,g)|0)==0?(Sq(f,u?3:1,w,c[(x&p)>>2]|0,g)|0)==0:0){if(!l){l=lr(f,0,0)|0;if(!l){l=0;u=0;h=w;break}I=kh(c[(f&p)>>2]|0,c[((c[(x&p)+4>>2]|0)+(((b[(x&o)+38>>1]|0)+-1|0)*24|0)&p)>>2]|0)|0;J=c[(l&p)+4>>2]|0;c[(J&p)+4>>2]=I;a[(J&n)+12>>0]=s}D=c[(l&p)>>2]|0;if((D|0)>0){A=c[(l&p)+4>>2]|0;y=0;g=0;do{u=c[(A+(y*20|0)&p)>>2]|0;if(u){h=c[(u&p)+8>>2]|0;if(!h)u=1;else{u=h;while(1)if(!(a[(u&n)>>0]|0))break;else u=u+1|0;u=(u-h&1073741823)+1|0}g=u+g|0}y=y+1|0}while((y|0)<(D|0));h=g}else h=0;if(!w)u=0;else{g=w;while(1)if(!(a[(g&n)>>0]|0))break;else g=g+1|0;u=g-w&1073741823}I=(M|0)!=0;if(I)g=e[(M&o)+46>>1]|0;else g=1;P=us(X,D+g&65535,h+1+u|0,N)|0;c:do if(!(a[(S&n)>>0]|0)){H=c[(N&p)>>2]|0;c[(P&p)>>2]=H;L=u+1|0;C=H+L|0;c[(N&p)>>2]=C;kw(H|0,w|0,L|0)|0;c[(P&p)+12>>2]=x;L=P+50|0;a[(L&n)>>0]=m;H=P+51|0;a[(H&n)>>0]=a[(H&n)>>0]&-12|((m|0)!=0&1)<<3&255|G&1;K=P+24|0;c[(K&p)>>2]=c[((c[(R&p)>>2]|0)+(v<<4)&p)+12>>2];g=c[(l&p)>>2]|0;J=P+46|0;b[(J&o)>>1]=g;if(r){c[(E&p)>>2]=0;c[(E&p)+4>>2]=0;c[(E&p)+8>>2]=0;c[(E&p)+12>>2]=0;c[(E&p)+16>>2]=0;c[(E&p)+20>>2]=0;c[(E&p)+24>>2]=0;c[(E&p)+28>>2]=0;A=V+0|0;h=A+80|0;do{c[(A&p)>>2]=0;A=A+4|0}while((A|0)<(h|0));c[(V&p)>>2]=1;c[(V&p)+16>>2]=c[(x&p)>>2];c[(V&p)+24>>2]=x;c[(V&p)+48>>2]=-1;c[(E&p)>>2]=f;c[(E&p)+4>>2]=V;b[(E&o)+28>>1]=16;ls(E,r)|0;c[(P&p)+36>>2]=r;g=c[(l&p)>>2]|0}z=(d[((c[(F+(v<<4)&p)+12>>2]|0)&n)+76>>0]|0)>3;d:do if((g|0)>0){G=x+4|0;F=x+38|0;E=P+4|0;r=X+145|0;g=P+32|0;y=P+28|0;h=0;s=c[(l&p)+4>>2]|0;while(1){u=c[(s&p)+4>>2]|0;A=b[(F&o)>>1]|0;e:do if(A<<16>>16>0){D=0;B=c[(G&p)>>2]|0;while(1){if(!(dd(u,c[(B&p)>>2]|0)|0)){t=D;break e}D=D+1|0;if((D|0)<(A<<16>>16|0))B=B+24|0;else{t=D;break}}}else t=0;while(0);if((t|0)>=(A<<16>>16|0))break;b[((c[(E&p)>>2]|0)+(h<<1)&o)>>1]=t;D=c[(s&p)>>2]|0;if(!D){D=c[((c[(G&p)>>2]|0)+(t*24|0)&p)+16>>2]|0;D=(D|0)!=0?D:11152}else{B=c[(D&p)+8>>2]|0;if(!B)D=1;else{D=B;while(1)if(!(a[(D&n)>>0]|0))break;else D=D+1|0;D=(D-B&1073741823)+1|0}kw(C|0,B|0,D|0)|0;B=c[(N&p)>>2]|0;C=B+D|0;c[(N&p)>>2]=C;D=B}if((a[(r&n)>>0]|0)==0?(cr(f,D)|0)==0:0){h=0;u=0;W=134;break c}c[((c[(g&p)>>2]|0)+(h<<2)&p)>>2]=D;a[((c[(y&p)>>2]|0)+h&n)>>0]=z?a[(s&n)+12>>0]|0:0;if(!(a[((c[(G&p)>>2]|0)+(t*24|0)&n)+20>>0]|0))a[(H&n)>>0]=a[(H&n)>>0]&-9;h=h+1|0;if((h|0)<(c[(l&p)>>2]|0))s=s+20|0;else break d}c[(V&p)>>2]=c[(x&p)>>2];c[(V&p)+4>>2]=u;th(f,36184,V);a[(f&n)+17>>0]=1;h=0;u=0;W=134;break c}else h=0;while(0);do if(I){z=M+46|0;A=b[(z&o)>>1]|0;if(!(A<<16>>16))break;E=M+4|0;F=P+4|0;G=P+48|0;s=M+32|0;t=P+32|0;g=M+28|0;y=P+28|0;r=0;do{B=b[((c[(E&p)>>2]|0)+(r<<1)&o)>>1]|0;u=c[(F&p)>>2]|0;D=e[(J&o)>>1]|0;C=u;while(1){if((D|0)<=0){W=92;break}if((b[(C&o)>>1]|0)==B<<16>>16){W=91;break}else{D=D+-1|0;C=C+2|0}}if((W|0)==91){W=0;b[(G&o)>>1]=(b[(G&o)>>1]|0)+-1<<16>>16}else if((W|0)==92){W=0;b[(u+(h<<1)&o)>>1]=B;c[((c[(t&p)>>2]|0)+(h<<2)&p)>>2]=c[((c[(s&p)>>2]|0)+(r<<2)&p)>>2];a[((c[(y&p)>>2]|0)+h&n)>>0]=a[((c[(g&p)>>2]|0)+r&n)>>0]|0;A=b[(z&o)>>1]|0;h=h+1|0}r=r+1|0}while((r|0)<(A&65535|0))}else{b[((c[(P&p)+4>>2]|0)+(h<<1)&o)>>1]=-1;c[((c[(P&p)+32>>2]|0)+(h<<2)&p)>>2]=11152}while(0);cq(P);r=f+484|0;g=c[(r&p)>>2]|0;if(!g){ms(P);g=c[(r&p)>>2]|0}f:do if((x|0)==(g|0)){u=c[(x&p)+8>>2]|0;if(!u)break;B=b[(J&o)>>1]|0;C=P+4|0;D=P+32|0;while(1){if((b[(u&o)+46>>1]|0)==B<<16>>16){g:do if(!(B<<16>>16)){r=0;g=0}else{y=c[(u&p)+4>>2]|0;z=c[(C&p)>>2]|0;A=u+32|0;g=0;while(1){if((b[(y+(g<<1)&o)>>1]|0)!=(b[(z+(g<<1)&o)>>1]|0)){r=B;break g}r=c[((c[(A&p)>>2]|0)+(g<<2)&p)>>2]|0;h=c[((c[(D&p)>>2]|0)+(g<<2)&p)>>2]|0;if((r|0)!=(h|0)?(dd(r,h)|0)!=0:0){r=B;break g}g=g+1|0;if((g|0)>=(B&65535|0)){r=B;break}}}while(0);if((g|0)==(r&65535|0))break}u=c[(u&p)+20>>2]|0;if(!u)break f}g=u+50|0;h=a[(g&n)>>0]|0;r=a[(L&n)>>0]|0;if(h<<24>>24==r<<24>>24){h=0;break c}if(!(h<<24>>24==10|r<<24>>24==10)){c[(V&p)>>2]=0;th(f,36216,V);h=a[(g&n)>>0]|0}if(h<<24>>24!=10){h=0;W=134;break c}a[(g&n)>>0]=a[(L&n)>>0]|0;h=0;break c}while(0);h=X+145|0;do if(!(a[(h&n)>>0]|0)){if(c[(f&p)+64>>2]|0){W=126;break}if(!((a[(Q&n)>>0]&32)==0|U)){W=126;break}u=f+72|0;r=(c[(u&p)>>2]|0)+1|0;c[(u&p)>>2]=r;u=Oq(f)|0;if(!u){h=0;u=0;W=134;break c}J=c[(f&p)+408>>2]|0;J=(J|0)==0?f:J;Ar(f,v);I=J+328|0;c[(I&p)>>2]=c[(I&p)>>2]|1<>0]=d[(J&n)>>0]|1;wh(u,120,v,r,0)|0;if(!q)g=0;else{g=c[(c[(T&p)>>2]&p)>>2]|0;J=(c[(f&p)+504>>2]|0)-g+(c[(f&p)+508>>2]|0)|0;I=J+-1|0;J=(a[(g+I&n)>>0]|0)==59?I:J;c[(V&p)>>2]=(m|0)==0?10360:36288;c[(V&p)+4>>2]=J;c[(V&p)+8>>2]=g;g=uh(X,36264,V)|0}I=c[(P&p)>>2]|0;J=c[(x&p)>>2]|0;c[(V&p)>>2]=c[((c[(R&p)>>2]|0)+(v<<4)&p)>>2];c[(V&p)+4>>2]=O;c[(V&p)+8>>2]=I;c[(V&p)+12>>2]=J;c[(V&p)+16>>2]=r;c[(V&p)+20>>2]=g;Br(f,36296,V);mg(X,g);if(!U)break;vs(f,P,r);Dr(f,v);c[(V&p)>>2]=c[(P&p)>>2];Ir(u,v,uh(X,36344,V)|0);wh(u,144,0,0,0)|0;W=126}else{if(Ik((c[(K&p)>>2]|0)+24|0,c[(P&p)>>2]|0,P)|0){a[(S&n)>>0]=1;h=0;u=0;W=134;break c}J=X+24|0;c[(J&p)>>2]=c[(J&p)>>2]|2;if(!U)break;c[(P&p)+40>>2]=c[(X&p)+140>>2];W=126}while(0);if((W|0)==126?!((a[(h&n)>>0]|0)!=0|(k|0)==0):0){h=0;u=0;W=134;break}h=c[(x&p)+8>>2]|0;do if((m|0)==5){if(!h){h=0;break}if((a[(h&n)+50>>0]|0)==5)break;do{u=h+20|0;h=c[(u&p)>>2]|0;if(!h){h=0;break}}while((a[(h&n)+50>>0]|0)!=5);c[(P&p)+20>>2]=h;c[(u&p)>>2]=P;r=0;u=P;h=w;break a}while(0);c[(P&p)+20>>2]=h;c[(x&p)+8>>2]=P;r=0;u=P;h=w;break a}else{h=r;u=0;W=134}while(0);if((W|0)==134)if(!P){r=h;h=w;break}Jk(X,P);r=h;h=w}else{u=0;h=w}}else{u=0;h=0}while(0);Gk(X,r);Nk(X,l);Do(X,k);mg(X,h);i=Y;return u|0}function ar(e,f){e=e|0;f=f|0;var g=0,h=0;g=c[(e&p)+484>>2]|0;h=c[(e&p)>>2]|0;if(((g|0)!=0?(a[(e&n)+451>>0]|0)==0:0)?(b[((c[((c[((c[(h&p)+16>>2]|0)+(d[(h&n)+144>>0]<<4)&p)+4>>2]|0)&p)+4>>2]|0)&o)+22>>1]&1)==0:0){h=g+24|0;g=lr(e,c[(h&p)>>2]|0,f)|0;c[(h&p)>>2]=g;if(c[(e&p)+324>>2]|0)mr(e,g,e+320|0,1)}else Gk(h,f);return}function br(d,e,f,g,h){d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0;F=i;i=i+16|0;if((i|0)>=(j|0))fa();C=F;E=c[(d&p)>>2]|0;D=c[(d&p)+484>>2]|0;a:do if((D|0)!=0?(a[(d&n)+451>>0]|0)==0:0){z=(e|0)==0;do if(z){B=b[(D&o)+38>>1]|0;l=(B<<16>>16)+-1|0;if(B<<16>>16<1){k=0;break a}if(g)if((c[(g&p)>>2]|0)==1){l=1;k=13}else{c[(C&p)>>2]=c[((c[(D&p)+4>>2]|0)+(l*24|0)&p)>>2];c[(C&p)+4>>2]=f;th(d,35712,C);k=0;break a}else{l=1;k=12}}else{if(!g){l=c[(e&p)>>2]|0;k=12;break}l=c[(g&p)>>2]|0;if((l|0)==(c[(e&p)>>2]|0))k=13;else{th(d,35776,C);k=0;break a}}while(0);if((k|0)==12){m=f+4|0;s=m;w=0;m=(l<<3)+37+(c[(m&p)>>2]|0)|0;B=l}else if((k|0)==13){s=f+4|0;m=(l<<3)+37+(c[(s&p)>>2]|0)|0;t=c[(g&p)>>2]|0;if((t|0)>0){u=c[(g&p)+4>>2]|0;v=0;do{r=c[(u+(v*20|0)&p)+4>>2]|0;if(!r)k=1;else{q=r;while(1)if(!(a[(q&n)>>0]|0))break;else q=q+1|0;k=(q-r&1073741823)+1|0}m=k+m|0;v=v+1|0}while((v|0)<(t|0));w=1;B=l}else{w=1;B=l}}k=mh(E,m,((m|0)<0)<<31>>31)|0;if(k){fw(k|0,0,m|0)|0;c[(k&p)>>2]=D;A=D+16|0;c[(k&p)+4>>2]=c[(A&p)>>2];x=k+36|0;q=x+(B<<3)|0;y=k+8|0;c[(y&p)>>2]=q;kw(q|0,c[(f&p)>>2]|0,c[(s&p)>>2]|0)|0;a[(q+(c[(s&p)>>2]|0)&n)>>0]=0;lo(q);q=q+((c[(s&p)>>2]|0)+1)|0;c[(k&p)+20>>2]=B;b:do if(!z){if((B|0)>0){m=D+4|0;f=e+4|0;r=b[(D&o)+38>>1]|0;l=0;while(1){c:do if(r<<16>>16>0){v=c[(m&p)>>2]|0;u=c[((c[(f&p)>>2]|0)+(l*20|0)&p)+4>>2]|0;t=0;while(1){s=t+1|0;if(!(dd(c[(v+(t*24|0)&p)>>2]|0,u)|0)){s=t;break}if((s|0)<(r<<16>>16|0))t=s;else break c}c[(x+(l<<3)&p)>>2]=s}else s=0;while(0);if((s|0)>=(r<<16>>16|0))break;l=l+1|0;if((l|0)>=(B|0))break b}c[(C&p)>>2]=c[((c[(f&p)>>2]|0)+(l*20|0)&p)+4>>2];th(d,35872,C);break a}}else c[(x&p)>>2]=(b[(D&o)+38>>1]|0)+-1;while(0);if(w&(B|0)>0){r=g+4|0;s=0;while(1){m=c[((c[(r&p)>>2]|0)+(s*20|0)&p)+4>>2]|0;if(!m)l=0;else{l=m;while(1)if(!(a[(l&n)>>0]|0))break;else l=l+1|0;l=l-m&1073741823}c[(x+(s<<3)&p)+4>>2]=q;kw(q|0,m|0,l|0)|0;a[(q+l&n)>>0]=0;s=s+1|0;if((s|0)==(B|0))break;else q=q+(l+1)|0}}a[(k&n)+24>>0]=0;a[(k&n)+25>>0]=h;a[(k&n)+26>>0]=h>>>8;l=Ik((c[(D&p)+68>>2]|0)+56|0,c[(y&p)>>2]|0,k)|0;if((l|0)==(k|0)){a[(E&n)+65>>0]=1;break}if(l){c[(k&p)+12>>2]=l;c[(l&p)+16>>2]=k}c[(A&p)>>2]=k;k=0}else k=0}else k=0;while(0);mg(E,k);Nk(E,e);Nk(E,g);i=F;return}function cr(b,d){b=b|0;d=d|0;var e=0,f=0,g=0;e=c[(b&p)>>2]|0;f=a[(e&n)+62>>0]|0;g=a[(e&n)+145>>0]|0;e=Yn(e,f,d,g&255)|0;do if(!(g<<24>>24)){if((e|0)!=0?(c[(e&p)+12>>2]|0)!=0:0)break;e=ws(b,f,e,d)|0}while(0);return e|0}function dr(e,f,g,h){e=e|0;f=f|0;g=g|0;h=h|0;var k=0,l=0,m=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;i=i+16|0;if((i|0)>=(j|0))fa();z=B;v=B+12|0;A=c[(e&p)>>2]|0;do if(!(a[(A&n)+65>>0]|0)){h=(h|0)!=0;if(h){u=A+68|0;a[(u&n)>>0]=(a[(u&n)>>0]|0)+1<<24>>24;y=Ur(e,g,f+8|0)|0;a[(u&n)>>0]=(a[(u&n)>>0]|0)+-1<<24>>24}else y=Ur(e,g,f+8|0)|0;if(!y){if(!h)break;zr(e,c[(f&p)+12>>2]|0);break}s=y+68|0;l=c[(s&p)>>2]|0;a:do if(l){h=c[(A&p)+20>>2]|0;if((h|0)>0){k=c[(A&p)+16>>2]|0;q=0;while(1){m=q+1|0;if((c[(k+(q<<4)&p)+12>>2]|0)==(l|0)){m=q;break a}if((m|0)<(h|0))q=m;else break}}else m=0}else m=-1e6;while(0);w=y+44|0;if((a[(w&n)>>0]&16)!=0?(hr(e,y)|0)!=0:0)break;q=(m|0)==1;x=q?13184:13208;h=c[((c[(A&p)+16>>2]|0)+(m<<4)&p)>>2]|0;if(!(Sq(e,9,x,0,h)|0)){k=(g|0)!=0;do if(k){l=q?15:17;q=0}else{if(!(a[(w&n)>>0]&16)){l=q?13:11;q=0;break}q=y+60|0;while(1){q=c[(q&p)>>2]|0;if((c[(q&p)>>2]|0)==(A|0))break;else q=q+24|0}l=30;q=c[((c[(q&p)+4>>2]|0)&p)+4>>2]|0}while(0);if((Sq(e,l,c[(y&p)>>2]|0,q,h)|0)==0?(Sq(e,9,c[(y&p)>>2]|0,0,h)|0)==0:0){q=c[(y&p)>>2]|0;if((Fc(q,25568,7)|0)==0?(Fc(q,35488,11)|0)!=0:0){c[(z&p)>>2]=q;th(e,35504,z);break}h=y+12|0;l=(c[(h&p)>>2]|0)==0;if(k){if(l){c[(z&p)>>2]=q;th(e,35536,z);break}}else if(!l){c[(z&p)>>2]=q;th(e,35576,z);break}if(Oq(e)|0){t=e+408|0;l=c[(t&p)>>2]|0;l=(l|0)==0?e:l;Ar(e,m);u=1<>2]=c[(k&p)>>2]|u;l=l+20|0;a[(l&n)>>0]=d[(l&n)>>0]|1;Cr(e,m,28544,c[(y&p)>>2]|0);l=c[(e&p)>>2]|0;k=l+24|0;b:do if(((c[(k&p)>>2]&524288|0)!=0?(a[(w&n)>>0]&16)==0:0)?(c[(h&p)>>2]|0)==0:0){r=Oq(e)|0;v=bn((c[(s&p)>>2]|0)+56|0,c[(y&p)>>2]|0,v)|0;if((v|0)!=0?(c[(v&p)+8>>2]|0)!=0:0)q=0;else{q=c[(y&p)+16>>2]|0;if(!q)break;while(1){if(a[(q&n)+24>>0]|0)break;if(c[(k&p)>>2]&16777216)break;q=c[(q&p)+4>>2]|0;if(!q)break b}q=xs(r)|0;wh(r,135,1,q,0)|0}v=e+438|0;a[(v&n)>>0]=1;rr(e,ys(l,f,0)|0,0);a[(v&n)>>0]=0;if(!(c[(k&p)>>2]&16777216)){wh(r,135,0,(c[(r&p)+32>>2]|0)+2|0,0)|0;zs(e,787,2,0,-2,4)}if(q){l=c[(r&p)+24>>2]|0;h=~q;do if((q|0)<0){q=c[(l&p)+112>>2]|0;if(!q)break;c[(q+(h<<2)&p)>>2]=c[(r&p)+32>>2]}while(0);c[(l&p)+88>>2]=(c[(r&p)+32>>2]|0)+-1}}while(0);r=c[(e&p)>>2]|0;s=r+16|0;l=c[(s&p)>>2]|0;h=Oq(e)|0;v=c[(t&p)>>2]|0;v=(v|0)==0?e:v;Ar(e,m);t=v+328|0;c[(t&p)>>2]=c[(t&p)>>2]|u;v=v+20|0;a[(v&n)>>0]=d[(v&n)>>0]|1;if(a[(w&n)>>0]&16)wh(h,146,0,0,0)|0;q=As(e,y)|0;if(q)do{Qr(e,q);q=c[(q&p)+32>>2]|0}while((q|0)!=0);l=l+(m<<4)|0;if(a[(w&n)>>0]&8){v=c[(y&p)>>2]|0;c[(z&p)>>2]=c[(l&p)>>2];c[(z&p)+4>>2]=v;Br(e,35608,z)}v=c[(y&p)>>2]|0;c[(z&p)>>2]=c[(l&p)>>2];c[(z&p)+4>>2]=x;c[(z&p)+8>>2]=v;Br(e,35656,z);if((g|0)==0?(a[(w&n)>>0]&16)==0:0)Bs(e,y);if(a[(w&n)>>0]&16){v=c[(y&p)>>2]|0;xh(h,wh(h,148,m,0,0)|0,v,0)}k=c[(y&p)>>2]|0;xh(h,wh(h,124,m,0,0)|0,k,0);Dr(e,m);h=c[((c[(s&p)>>2]|0)+(m<<4)&p)+12>>2]|0;k=b[(h&o)+78>>1]|0;if(k&2){l=c[(h&p)+16>>2]|0;if(l){k=l;do{h=c[(k&p)+8>>2]|0;if(c[(h&p)+12>>2]|0){Lk(r,h);c[(h&p)+4>>2]=0;b[(h&o)+38>>1]=0}k=c[(k&p)>>2]|0}while((k|0)!=0);k=c[((c[(s&p)>>2]|0)+(m<<4)&p)+12>>2]|0;h=k;k=b[(k&o)+78>>1]|0}b[(h&o)+78>>1]=k&65533}}}}}while(0);Do(A,f);i=B;return}function er(b,e,f,g){b=b|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0;m=i;i=i+16|0;if((i|0)>=(j|0))fa();k=m;h=c[(b&p)>>2]|0;do if((f|0)!=0?(c[(f&p)+4>>2]|0)!=0:0){if(a[(h&n)+145>>0]|0){th(b,28488,k);f=b+64|0;c[(f&p)>>2]=(c[(f&p)>>2]|0)+1;f=-1;break}c[(g&p)>>2]=f;g=Wq(h,e)|0;f=Vh(h,g)|0;mg(h,g);if((f|0)<0){c[(k&p)>>2]=e;th(b,28512,k);f=b+64|0;c[(f&p)>>2]=(c[(f&p)>>2]|0)+1;f=-1}}else l=7;while(0);if((l|0)==7){f=d[(h&n)+144>>0]|0;c[(g&p)>>2]=e}i=m;return f|0}function fr(a,b){a=a|0;b=b|0;a:do if(!b)b=0;else while(1){if(Hr(a,c[(b&p)>>2]|0)|0){b=1;break a}if(Kr(a,c[(b&p)+32>>2]|0)|0){b=1;break a}if(Gr(a,c[(b&p)+36>>2]|0)|0){b=1;break a}if(Hr(a,c[(b&p)+40>>2]|0)|0){b=1;break a}if(Gr(a,c[(b&p)+44>>2]|0)|0){b=1;break a}if(Hr(a,c[(b&p)+48>>2]|0)|0){b=1;break a}if(Gr(a,c[(b&p)+60>>2]|0)|0){b=1;break a}if(Gr(a,c[(b&p)+64>>2]|0)|0){b=1;break a}b=c[(b&p)+52>>2]|0;if(!b){b=0;break}}while(0);return b|0}function gr(d,f,g){d=d|0;f=f|0;g=g|0;var h=0,i=0,j=0,k=0,l=0;if((f|0)!=0?(h=mh(d,72,0)|0,(h|0)!=0):0){c[(h&p)>>2]=Pr(d,c[(f&p)>>2]|0,g)|0;c[(h&p)+32>>2]=ys(d,c[(f&p)+32>>2]|0,g)|0;c[(h&p)+36>>2]=Mr(d,c[(f&p)+36>>2]|0,g,0)|0;c[(h&p)+40>>2]=Pr(d,c[(f&p)+40>>2]|0,g)|0;c[(h&p)+44>>2]=Mr(d,c[(f&p)+44>>2]|0,g,0)|0;c[(h&p)+48>>2]=Pr(d,c[(f&p)+48>>2]|0,g)|0;a[(h&n)+4>>0]=a[(f&n)+4>>0]|0;j=gr(d,c[(f&p)+52>>2]|0,g)|0;c[(h&p)+52>>2]=j;if(j)c[(j&p)+56>>2]=h;c[(h&p)+56>>2]=0;c[(h&p)+60>>2]=Mr(d,c[(f&p)+60>>2]|0,g,0)|0;c[(h&p)+64>>2]=Mr(d,c[(f&p)+64>>2]|0,g,0)|0;c[(h&p)+8>>2]=0;c[(h&p)+12>>2]=0;b[(h&o)+6>>1]=(e[(f&o)+6>>1]|0)&65527;c[(h&p)+16>>2]=-1;c[(h&p)+20>>2]=-1;l=f+24|0;j=c[(l&p)+4>>2]|0;g=h+24|0;c[(g&p)>>2]=c[(l&p)>>2];c[(g&p)+4>>2]=j;g=c[(f&p)+68>>2]|0;if((g|0)!=0?(k=c[(g&p)>>2]<<4|8,i=mh(d,k,((k|0)<0)<<31>>31)|0,(i|0)!=0):0){fw(i|0,0,k|0)|0;c[(i&p)>>2]=c[(g&p)>>2];if((c[(g&p)>>2]|0)>0){f=i+8|0;j=0;do{c[(f+(j<<4)&p)+8>>2]=gr(d,c[(g+(j<<4)&p)+16>>2]|0,0)|0;c[(f+(j<<4)&p)+4>>2]=Pr(d,c[(g+(j<<4)&p)+12>>2]|0,0)|0;c[(f+(j<<4)&p)>>2]=kh(d,c[(g+(j<<4)&p)+8>>2]|0)|0;j=j+1|0}while((j|0)<(c[(g&p)>>2]|0))}}else i=0;c[(h&p)+68>>2]=i}else h=0;return h|0}function hr(d,f){d=d|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0;w=i;i=i+16|0;if((i|0)>=(j|0))fa();s=w;k=w+8|0;m=w+4|0;v=c[(d&p)>>2]|0;q=f+44|0;h=a[(q&n)>>0]|0;a:do if(!(h&16))t=11;else{g=c[(f&p)+60>>2]|0;if(g)do{if((c[(g&p)>>2]|0)==(v|0)){t=11;break a}g=c[(g&p)+24>>2]|0}while((g|0)!=0);g=f+56|0;h=bn(v+308|0,c[(c[(g&p)>>2]&p)>>2]|0,k)|0;if((h|0)!=0?(l=c[(h&p)+8>>2]|0,(l|0)!=0):0){c[(m&p)>>2]=0;l=(zn(v,f,l,c[((c[(l&p)>>2]|0)&p)+8>>2]|0,m)|0)==0;h=c[(m&p)>>2]|0;if(l){mg(v,h);h=a[(q&n)>>0]|0;t=11;break}else{c[(s&p)>>2]=h;th(d,10344,s);mg(v,h);g=1;break}}c[(s&p)>>2]=c[(c[(g&p)>>2]&p)>>2];th(d,28320,s);g=1}while(0);do if((t|0)==11)if((h&16)==0?(u=f+38|0,r=b[(u&o)>>1]|0,r<<16>>16<=0):0){if(r<<16>>16<0){c[(s&p)>>2]=c[(f&p)>>2];th(d,26752,s);g=1;break}h=gr(v,c[(f&p)+12>>2]|0,0)|0;if(!h)g=1;else{r=v+250|0;q=a[(r&n)>>0]|0;t=d+68|0;s=c[(t&p)>>2]|0;Cs(d,c[(h&p)+32>>2]|0);b[(u&o)>>1]=-1;a[(r&n)>>0]=0;m=v+284|0;l=c[(m&p)>>2]|0;c[(m&p)>>2]=0;g=ns(d,h)|0;c[(m&p)>>2]=l;a[(r&n)>>0]=q;c[(t&p)>>2]=s;if(!g){b[(u&o)>>1]=0;g=1}else{d=g+38|0;b[(u&o)>>1]=b[(d&o)>>1]|0;t=g+4|0;c[(f&p)+4>>2]=c[(t&p)>>2];b[(d&o)>>1]=0;c[(t&p)>>2]=0;kg(v,g);g=(c[(f&p)+68>>2]|0)+78|0;b[(g&o)>>1]=e[(g&o)>>1]|0|2;g=0}Mk(v,h,1)}}else g=0;while(0);i=w;return g|0} function ir(f,g,h){f=f|0;g=g|0;h=h|0;var k=0,l=0,m=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,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,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;Ca=i;i=i+240|0;if((i|0)>=(j|0))fa();ra=Ca;sa=Ca+220|0;ka=Ca+216|0;ia=Ca+196|0;ja=Ca+176|0;ua=Ca+164|0;va=Ca+136|0;ya=Ca+88|0;ga=Ca+64|0;ma=Ca+32|0;Aa=f+464|0;Ba=c[(Aa&p)>>2]|0;oa=f+468|0;xa=c[(oa&p)>>2]|0;c[(oa&p)>>2]=xa+1;c[(Aa&p)>>2]=xa;xa=c[(f&p)>>2]|0;a:do if((((g|0)!=0?(pa=xa+65|0,(a[(pa&n)>>0]|0)==0):0)?(k=f+64|0,(c[(k&p)>>2]|0)==0):0)?(Sq(f,21,0,0,0)|0)==0:0){D=ya+0|0;C=D+48|0;do{c[(D&p)>>2]=0;D=D+4|0}while((D|0)<(C|0));la=g+48|0;if((d[(h&n)>>0]|0)<9){Nk(xa,c[(la&p)>>2]|0);c[(la&p)>>2]=0;ea=g+6|0;b[(ea&o)>>1]=e[(ea&o)>>1]&65534}Ds(f,g,0);c[(va&p)>>2]=0;c[(va&p)+4>>2]=0;c[(va&p)+8>>2]=0;c[(va&p)+12>>2]=0;c[(va&p)+16>>2]=0;c[(va&p)+20>>2]=0;c[(va&p)+24>>2]=0;c[(va&p)>>2]=c[(la&p)>>2];na=g+32|0;x=c[(na&p)>>2]|0;w=c[(g&p)>>2]|0;b:do if(((c[(k&p)>>2]|0)==0?(a[(pa&n)>>0]|0)==0:0)?(ta=g+6|0,z=(e[(ta&o)>>1]|0)>>>2&1,wa=Oq(f)|0,(wa|0)!=0):0){if((c[(w&p)>>2]|0)>1?(a[(h&n)>>0]&-2)<<24>>24==10:0){th(f,35368,ra);za=444;break}qa=g+52|0;w=c[(qa&p)>>2]|0;c:do if(!w){r=f+460|0;q=f+492|0;m=g+36|0;l=f+408|0;k=g+60|0;T=g+64|0;U=g+4|0;V=xa+60|0;W=wa+32|0;X=f+72|0;Y=ga+4|0;Z=ga+1|0;_=ga+8|0;$=ga+12|0;aa=wa+4|0;ba=wa+24|0;ca=f+19|0;da=f+56|0;ea=f+80|0;S=0;y=z;while(1){if((S|0)>=(c[(x&p)>>2]|0)){H=m;Q=0;z=y;U=x;break c}N=c[(x+(S*72|0)&p)+28>>2]|0;do if(!N)z=S;else{P=x+(S*72|0)+32|0;A=c[(P&p)>>2]|0;if(A){if(a[(x+(S*72|0)&n)+45>>0]&4){z=S;break}wh(wa,17,c[(x+(S*72|0)&p)+36>>2]|0,A,0)|0;z=S;break}c[(ra&p)>>2]=0;Es(g,ra);c[(r&p)>>2]=(c[(r&p)>>2]|0)+(c[(ra&p)>>2]|0);v=b[(N&o)+6>>1]&4;Q=c[(q&p)>>2]|0;u=c[(f&p)>>2]|0;d:do if(!(b[(u&o)+60>>1]&1)){L=c[(na&p)>>2]|0;t=c[(L+(S*72|0)&p)+48>>2]|0;K=L+(S*72|0)+28|0;O=c[(K&p)>>2]|0;s=v<<16>>16!=0;do if(s){if(y){za=120;break d}if((c[(L&p)>>2]|0)>1){za=120;break d}R=c[(m&p)>>2]|0;if((R|0)!=0?(c[(R&p)+4>>2]&2097152|0)!=0:0){za=120;break d}H=c[(g&p)>>2]|0;do if(H){E=c[(H&p)>>2]|0;if((E|0)<=0)break;I=c[(H&p)+4>>2]|0;H=0;F=0;do{F=c[((c[(I+(H*20|0)&p)>>2]|0)&p)+4>>2]|F;H=H+1|0}while((H|0)!=(E|0));if(F&2097152){za=120;break d}}while(0);H=c[(la&p)>>2]|0;if(!H)break;E=c[(H&p)>>2]|0;if((E|0)<=0)break;I=c[(H&p)+4>>2]|0;H=0;F=0;do{F=c[((c[(I+(H*20|0)&p)>>2]|0)&p)+4>>2]|F;H=H+1|0}while((H|0)!=(E|0));if(F&2097152){za=120;break d}}while(0);I=c[(O&p)+32>>2]|0;H=(c[(O&p)+60>>2]|0)==0;if(!H?(c[(k&p)>>2]|0)!=0:0){za=120;break}if(c[(O&p)+64>>2]|0){za=120;break}E=b[(ta&o)>>1]|0;F=(E&64)==0;if(!(F|H)){za=120;break}if(!(c[(I&p)>>2]|0)){za=120;break}D=b[(O&o)+6>>1]|0;if(D&1){za=120;break}I=H|F^1;if(!I?(c[(L&p)>>2]|0)>1|(y|0)!=0:0){za=120;break}H=E&1;if(H<<16>>16!=0&s){za=120;break}B=c[(la&p)>>2]|0;C=(B|0)==0;if(!C?(c[(O&p)+48>>2]|0)!=0:0){za=120;break}J=(y|0)!=0;if(J?(c[(O&p)+48>>2]|0)!=0:0){za=120;break}if(I){if(D&6144){za=120;break}}else if(!((c[(m&p)>>2]|0)==0&H<<16>>16==0&(D&6144)==0)){za=120;break}if((E&2048)!=0?(c[(O&p)+52>>2]|0)!=0:0){za=120;break}R=L+(S*72|0)+44|0;if(a[(R&n)>>0]&32){za=120;break}E=O+52|0;I=c[(E&p)>>2]|0;do if(I){if(!(H<<16>>16==0&(((c[(O&p)+48>>2]|0)!=0|J)^1))){za=120;break d}if((c[(L&p)>>2]|0)!=1){za=120;break d}e:do if(O){if(!(D&5))F=O;else{za=120;break d}while(1){H=(I|0)==0;if(!H?(a[(F&n)+4>>0]|0)!=116:0){za=120;break d}if((c[(c[(F&p)+32>>2]&p)>>2]|0)<1){za=120;break d}if((c[(c[(O&p)>>2]&p)>>2]|0)!=(c[(c[(F&p)>>2]&p)>>2]|0)){za=120;break d}if(H)break e;if(b[(I&o)+6>>1]&5){za=120;break d}F=I;I=c[(I&p)+52>>2]|0}}while(0);if(C)break;F=c[(B&p)>>2]|0;if((F|0)<=0)break;I=c[(B&p)+4>>2]|0;H=0;do{if(!(b[(I+(H*20|0)&o)+16>>1]|0)){za=120;break d}H=H+1|0}while((H|0)<(F|0))}while(0);A=L+(S*72|0)+16|0;c[(q&p)>>2]=c[(A&p)>>2];Sq(f,21,0,0,0)|0;c[(q&p)>>2]=Q;I=c[(E&p)>>2]|0;f:do if(!I)za=81;else{B=u+65|0;E=c[(la&p)>>2]|0;D=c[(k&p)>>2]|0;C=c[(T&p)>>2]|0;F=c[(qa&p)>>2]|0;while(1){c[(la&p)>>2]=0;c[(na&p)>>2]=0;c[(qa&p)>>2]=0;c[(k&p)>>2]=0;c[(T&p)>>2]=0;H=gr(u,g,0)|0;c[(T&p)>>2]=C;c[(k&p)>>2]=D;c[(la&p)>>2]=E;c[(na&p)>>2]=L;a[(U&n)>>0]=116;if(!H)H=F;else{c[(H&p)+52>>2]=F;if(F)c[(F&p)+56>>2]=H;c[(H&p)+56>>2]=g}c[(qa&p)>>2]=H;if(a[(B&n)>>0]|0)break f;I=c[(I&p)+52>>2]|0;if(!I){za=81;break}else F=H}}while(0);if((za|0)==81){za=0;M=c[(K&p)>>2]|0;E=L+(S*72|0)+12|0;mg(u,c[(E&p)>>2]|0);mg(u,c[(A&p)>>2]|0);F=L+(S*72|0)+20|0;mg(u,c[(F&p)>>2]|0);c[(E&p)>>2]=0;c[(A&p)>>2]=0;c[(F&p)>>2]=0;c[(K&p)>>2]=0;F=L+(S*72|0)+24|0;E=c[(F&p)>>2]|0;if(E){D=E+40|0;C=b[(D&o)>>1]|0;if(C<<16>>16==1){Q=c[(l&p)>>2]|0;Q=((Q|0)==0?f:Q)+524|0;c[(E&p)+72>>2]=c[(Q&p)>>2];c[(Q&p)>>2]=E}else b[(D&o)>>1]=C+-1<<16>>16;c[(F&p)>>2]=0}Q=S+1|0;P=u+65|0;O=g;N=M;while(1){B=c[(N&p)+32>>2]|0;A=c[(B&p)>>2]|0;H=O+32|0;I=c[(H&p)>>2]|0;if(!I){I=pr(u,0,0,0)|0;c[(H&p)>>2]=I;if(!I)break;else z=0}else z=a[(R&n)>>0]|0;if((A|0)>1){I=Fs(u,I,A+-1|0,Q)|0;c[(H&p)>>2]=I;if(a[(P&n)>>0]|0)break}if((A|0)>0){F=0;do{D=F+S|0;Hk(u,c[(I+(D*72|0)&p)+56>>2]|0);H=B+(F*72|0)+8|0;D=I+(D*72|0)+8|0;E=H+0|0;C=D+72|0;do{c[(D&p)>>2]=c[(E&p)>>2];D=D+4|0;E=E+4|0}while((D|0)<(C|0));D=H+0|0;C=D+72|0;do{c[(D&p)>>2]=0;D=D+4|0}while((D|0)<(C|0));F=F+1|0}while((F|0)!=(A|0))}a[(I+(S*72|0)&n)+44>>0]=z;H=c[(O&p)>>2]|0;I=c[(H&p)>>2]|0;if((I|0)>0){D=H+4|0;F=c[(D&p)>>2]|0;E=0;do{if(!(c[(F+(E*20|0)&p)+4>>2]|0)){I=kh(u,c[(F+(E*20|0)&p)+8>>2]|0)|0;lo(I);F=c[(D&p)>>2]|0;c[(F+(E*20|0)&p)+4>>2]=I;I=c[(H&p)>>2]|0}E=E+1|0}while((E|0)<(I|0));H=c[(O&p)>>2]|0}Gs(u,H,t,c[(N&p)>>2]|0);if(J){Gs(u,c[(O&p)+40>>2]|0,t,c[(N&p)>>2]|0);L=O+44|0;c[(L&p)>>2]=Hs(u,c[(L&p)>>2]|0,t,c[(N&p)>>2]|0)|0}I=N+48|0;H=c[(I&p)>>2]|0;do if(!H){H=c[(O&p)+48>>2]|0;if(!H)break;Gs(u,H,t,c[(N&p)>>2]|0)}else{F=c[(H&p)>>2]|0;if((F|0)>0){E=c[(H&p)+4>>2]|0;D=0;do{b[(E+(D*20|0)&o)+16>>1]=0;D=D+1|0}while((D|0)!=(F|0))}c[(O&p)+48>>2]=H;c[(I&p)>>2]=0}while(0);H=c[(N&p)+36>>2]|0;if(!H)F=0;else F=Mr(u,H,0,0)|0;I=O+36|0;H=c[(I&p)>>2]|0;if(s){L=O+44|0;c[(L&p)>>2]=H;c[(I&p)>>2]=F;K=Hs(u,H,t,c[(N&p)>>2]|0)|0;c[(L&p)>>2]=K;c[(L&p)>>2]=ss(u,K,Mr(u,c[(N&p)+44>>2]|0,0,0)|0)|0;c[(O&p)+40>>2]=Pr(u,c[(N&p)+40>>2]|0,0)|0}else{L=Hs(u,H,t,c[(N&p)>>2]|0)|0;c[(I&p)>>2]=L;c[(I&p)>>2]=ss(u,L,F)|0}H=O+6|0;b[(H&o)>>1]=e[(H&o)>>1]|e[(N&o)+6>>1]&1;H=N+60|0;F=c[(H&p)>>2]|0;if(F){c[(O&p)+60>>2]=F;c[(H&p)>>2]=0}O=c[(O&p)+52>>2]|0;if(!O)break;else N=c[(N&p)+52>>2]|0}Mk(u,M,1)}if(!(v<<16>>16)){z=-1;break}b[(ta&o)>>1]=e[(ta&o)>>1]|4;z=-1;y=1}else za=120;while(0);g:do if((za|0)==120){za=0;do if((c[(x&p)>>2]|0)==1){if(b[(V&o)>>1]&256)break;D=c[(W&p)>>2]|0;R=D+1|0;Q=(c[(X&p)>>2]|0)+1|0;c[(X&p)>>2]=Q;z=x+(S*72|0)+36|0;c[(z&p)>>2]=Q;wh(wa,20,Q,0,R)|0;c[(P&p)>>2]=R;R=c[(z&p)>>2]|0;a[(ga&n)>>0]=13;c[(Y&p)>>2]=R;a[(Z&n)>>0]=0;c[(_&p)>>2]=0;c[($&p)>>2]=0;a[(x+(S*72|0)&n)+46>>0]=c[(oa&p)>>2];ir(f,N,ga)|0;R=N+24|0;R=fs(c[(R&p)>>2]|0,c[(R&p)+4>>2]|0)|0;b[((c[(x+(S*72|0)&p)+24>>2]|0)&o)+28>>1]=R;R=x+(S*72|0)+45|0;a[(R&n)>>0]=a[(R&n)>>0]|4;c[(x+(S*72|0)&p)+40>>2]=c[(_&p)>>2];wh(wa,21,c[(z&p)>>2]|0,0,0)|0;z=c[(W&p)>>2]|0;if(z>>>0>D>>>0)c[((c[(aa&p)>>2]|0)+(D*20|0)&p)+8>>2]=z;c[((c[(ba&p)>>2]|0)&p)+88>>2]=z+-1;a[(ca&n)>>0]=0;c[(da&p)>>2]=0;z=S;break g}while(0);C=(c[(X&p)>>2]|0)+1|0;c[(X&p)>>2]=C;E=x+(S*72|0)+36|0;c[(E&p)>>2]=C;C=wh(wa,25,0,C,0)|0;c[(P&p)>>2]=C+1;if(!(a[(x+(S*72|0)&n)+45>>0]&2)){R=Oq(f)|0;D=c[(ea&p)>>2]|0;c[(ea&p)>>2]=D+1;D=wh(R,44,D,0,0)|0}else D=0;R=c[(x+(S*72|0)&p)+48>>2]|0;a[(ga&n)>>0]=12;c[(Y&p)>>2]=R;a[(Z&n)>>0]=0;c[(_&p)>>2]=0;c[($&p)>>2]=0;a[(x+(S*72|0)&n)+46>>0]=c[(oa&p)>>2];ir(f,N,ga)|0;R=N+24|0;R=fs(c[(R&p)>>2]|0,c[(R&p)+4>>2]|0)|0;b[((c[(x+(S*72|0)&p)+24>>2]|0)&o)+28>>1]=R;if(D){A=c[(W&p)>>2]|0;if(A>>>0>D>>>0)c[((c[(aa&p)>>2]|0)+(D*20|0)&p)+8>>2]=A;c[((c[(ba&p)>>2]|0)&p)+88>>2]=A+-1}z=wh(wa,18,c[(E&p)>>2]|0,0,0)|0;if((c[(W&p)>>2]|0)>>>0>C>>>0)c[((c[(aa&p)>>2]|0)+(C*20|0)&p)+4>>2]=z;a[(ca&n)>>0]=0;c[(da&p)>>2]=0;z=S}while(0);if(a[(pa&n)>>0]|0){za=444;break b}c[(ra&p)>>2]=0;Es(g,ra);c[(r&p)>>2]=(c[(r&p)>>2]|0)-(c[(ra&p)>>2]|0);x=c[(na&p)>>2]|0;if((d[(h&n)>>0]|0)<9)break;c[(va&p)>>2]=c[(la&p)>>2]}while(0);w=c[(qa&p)>>2]|0;if(!w)S=z+1|0;else{H=m;Q=w;z=y;U=x;break}}}else{H=g+36|0;Q=w;U=x}while(0);T=c[(g&p)>>2]|0;B=c[(H&p)>>2]|0;l=g+40|0;w=c[(l&p)>>2]|0;I=g+44|0;ga=c[(I&p)>>2]|0;m=b[(ta&o)>>1]|0;a[(ua&n)>>0]=m&1;if(Q){O=c[(f&p)>>2]|0;c[(sa&p)>>2]=c[(h&p)>>2];c[(sa&p)+4>>2]=c[(h&p)+4>>2];c[(sa&p)+8>>2]=c[(h&p)+8>>2];c[(sa&p)+12>>2]=c[(h&p)+12>>2];c[(sa&p)+16>>2]=c[(h&p)+16>>2];h:do if(!(c[(Q&p)+48>>2]|0)){x=Q+60|0;if(c[(x&p)>>2]|0){k=d[(g&n)+4>>0]|0;if((k|0)==118)k=35336;else if((k|0)==117)k=35352;else if((k|0)==116)k=35320;else k=35360;c[(ra&p)>>2]=k;th(f,35072,ra);m=0;k=1;za=227;break}R=Oq(f)|0;t=a[(sa&n)>>0]|0;if(t<<24>>24==12){wh(R,57,c[(sa&p)+4>>2]|0,c[(c[(g&p)>>2]&p)>>2]|0,0)|0;t=c[(R&p)+4>>2]|0;if(t)a[(t+(((c[(R&p)+32>>2]|0)+-1|0)*20|0)&n)+3>>0]=8;a[(sa&n)>>0]=14;t=14}s=e[(ta&o)>>1]|0;if(s&256){m=0;k=Is(f,g,sa)|0;za=227;break}if((c[(c[(g&p)>>2]&p)>>2]|0)!=(c[(c[(Q&p)>>2]&p)>>2]|0)){Js(f,g);m=0;k=1;za=227;break}do if(!(s&2048)){if(c[(la&p)>>2]|0){k=Ls(f,g,h)|0;break h}P=g+4|0;s=d[(P&n)>>0]|0;if((s|0)==116){v=g+8|0;t=Q+8|0;c[(t&p)>>2]=c[(v&p)>>2];u=g+12|0;s=Q+12|0;c[(s&p)>>2]=c[(u&p)>>2];da=g+60|0;c[(x&p)>>2]=c[(da&p)>>2];ea=g+64|0;c[(Q&p)+64>>2]=c[(ea&p)>>2];q=c[(oa&p)>>2]|0;k=ir(f,Q,sa)|0;c[(da&p)>>2]=0;c[(ea&p)>>2]=0;if(k){m=0;za=227;break h}c[(qa&p)>>2]=0;t=c[(t&p)>>2]|0;c[(v&p)>>2]=t;c[(u&p)>>2]=c[(s&p)>>2];if(!t)w=0;else w=wh(R,46,t,0,0)|0;l=c[(oa&p)>>2]|0;k=ir(f,g,sa)|0;m=c[(qa&p)>>2]|0;c[(qa&p)>>2]=Q;ea=Q+24|0;r=g+24|0;t=r;ea=jw(c[(t&p)>>2]|0,c[(t&p)+4>>2]|0,c[(ea&p)>>2]|0,c[(ea&p)+4>>2]|0)|0;t=r;c[(t&p)>>2]=ea;c[(t&p)+4>>2]=G;t=c[(x&p)>>2]|0;do if(t){ea=(Ms(t,ka)|0)!=0;t=c[(ka&p)>>2]|0;if(!(ea&(t|0)>0))break;ea=r;da=c[(ea&p)+4>>2]|0;s=((t|0)<0)<<31>>31;if(!(da>>>0>s>>>0|((da|0)==(s|0)?(c[(ea&p)>>2]|0)>>>0>t>>>0:0)))break;ea=r;c[(ea&p)>>2]=t;c[(ea&p)+4>>2]=s}while(0);if(!w){w=P;v=q;t=l;break}r=c[(R&p)+32>>2]|0;if(r>>>0>w>>>0)c[((c[(R&p)+4>>2]|0)+(w*20|0)&p)+8>>2]=r;c[((c[(R&p)+24>>2]|0)&p)+88>>2]=r+-1;w=P;v=q;t=l;break}else if((s|0)==115|(s|0)==117){if(t<<24>>24==1)s=c[(sa&p)+4>>2]|0;else{r=f+68|0;s=c[(r&p)>>2]|0;c[(r&p)>>2]=s+1;c[(g&p)+16>>2]=wh(R,57,s,0,0)|0;r=g;while(1){t=c[(r&p)+56>>2]|0;if(!t)break;else r=t}ea=r+6|0;b[(ea&o)>>1]=e[(ea&o)>>1]|8}a[(ia&n)>>0]=1;c[(ia&p)+4>>2]=s;a[(ia&n)+1>>0]=0;c[(ia&p)+8>>2]=0;c[(ia&p)+12>>2]=0;y=c[(oa&p)>>2]|0;k=ir(f,Q,ia)|0;if(k){m=0;za=227;break h}x=(a[(P&n)>>0]|0)==117?2:1;c[(qa&p)>>2]=0;v=g+60|0;u=c[(v&p)>>2]|0;c[(v&p)>>2]=0;t=g+64|0;r=c[(t&p)>>2]|0;c[(t&p)>>2]=0;a[(ia&n)>>0]=x;x=c[(oa&p)>>2]|0;k=ir(f,g,ia)|0;Nk(O,c[(la&p)>>2]|0);m=c[(qa&p)>>2]|0;c[(qa&p)>>2]=Q;c[(la&p)>>2]=0;if((a[(P&n)>>0]|0)==115){da=Q+24|0;ea=g+24|0;ca=ea;da=jw(c[(ca&p)>>2]|0,c[(ca&p)+4>>2]|0,c[(da&p)>>2]|0,c[(da&p)+4>>2]|0)|0;c[(ea&p)>>2]=da;c[(ea&p)+4>>2]=G}Gk(O,c[(v&p)>>2]|0);c[(v&p)>>2]=u;c[(t&p)>>2]=r;c[(g&p)+8>>2]=0;c[(g&p)+12>>2]=0;r=a[(sa&n)>>0]|0;if(r<<24>>24==9){r=g;while(1){q=c[(r&p)+52>>2]|0;if(!q)break;else r=q}Ns(f,0,c[(r&p)>>2]|0)}else if(r<<24>>24==1){w=P;v=y;t=x;break}l=xs(R)|0;ea=xs(R)|0;Os(f,g,l);wh(R,108,s,l,0)|0;w=R+32|0;v=c[(w&p)>>2]|0;Ps(f,g,c[(g&p)>>2]|0,s,0,0,sa,ea,l);u=R+24|0;t=c[(u&p)>>2]|0;r=~ea;do if((ea|0)<0){q=c[(t&p)+112>>2]|0;if(!q)break;c[(q+(r<<2)&p)>>2]=c[(w&p)>>2]}while(0);c[(t&p)+88>>2]=(c[(w&p)>>2]|0)+-1;wh(R,9,s,v,0)|0;r=c[(u&p)>>2]|0;q=~l;do if((l|0)<0){t=c[(r&p)+112>>2]|0;if(!t)break;c[(t+(q<<2)&p)>>2]=c[(w&p)>>2]}while(0);c[(r&p)+88>>2]=(c[(w&p)>>2]|0)+-1;wh(R,61,s,0,0)|0;w=P;v=y;t=x;break}else{r=f+68|0;A=c[(r&p)>>2]|0;c[(r&p)>>2]=A+2;c[(g&p)+16>>2]=wh(R,57,A,0,0)|0;r=g;while(1){q=c[(r&p)+56>>2]|0;if(!q)break;else r=q}y=A+1|0;v=r+6|0;b[(v&o)>>1]=e[(v&o)>>1]|8;a[(ja&n)>>0]=1;v=ja+4|0;c[(v&p)>>2]=A;a[(ja&n)+1>>0]=0;c[(ja&p)+8>>2]=0;c[(ja&p)+12>>2]=0;x=c[(oa&p)>>2]|0;k=ir(f,Q,ja)|0;if(k){m=0;za=227;break h}c[(g&p)+20>>2]=wh(R,57,y,0,0)|0;c[(qa&p)>>2]=0;w=g+60|0;l=c[(w&p)>>2]|0;c[(w&p)>>2]=0;q=g+64|0;r=c[(q&p)>>2]|0;c[(q&p)>>2]=0;c[(v&p)>>2]=y;z=c[(oa&p)>>2]|0;k=ir(f,g,ja)|0;m=c[(qa&p)>>2]|0;c[(qa&p)>>2]=Q;t=g+24|0;ea=t;da=c[(ea&p)+4>>2]|0;u=Q+24|0;v=c[(u&p)>>2]|0;u=c[(u&p)+4>>2]|0;if(da>>>0>u>>>0|((da|0)==(u|0)?(c[(ea&p)>>2]|0)>>>0>v>>>0:0)){ea=t;c[(ea&p)>>2]=v;c[(ea&p)+4>>2]=u}Gk(O,c[(w&p)>>2]|0);c[(w&p)>>2]=l;c[(q&p)>>2]=r;if((a[(sa&n)>>0]|0)==9){t=g;while(1){s=c[(t&p)+52>>2]|0;if(!s)break;else t=s}Ns(f,0,c[(t&p)>>2]|0)}q=xs(R)|0;w=xs(R)|0;Os(f,g,q);wh(R,108,A,q,0)|0;t=f+19|0;s=a[(t&n)>>0]|0;if(!(s<<24>>24)){ea=f+72|0;t=(c[(ea&p)>>2]|0)+1|0;c[(ea&p)>>2]=t}else{ea=s+-1<<24>>24;a[(t&n)>>0]=ea;t=c[(f+((ea&255)<<2)&p)+24>>2]|0}l=wh(R,101,A,t,0)|0;xh(R,wh(R,68,y,w,t)|0,0,-14);_r(f,t);Ps(f,g,c[(g&p)>>2]|0,A,0,0,sa,w,q);t=R+24|0;s=c[(t&p)>>2]|0;u=~w;do if((w|0)<0){v=c[(s&p)+112>>2]|0;if(!v)break;c[(v+(u<<2)&p)>>2]=c[(R&p)+32>>2]}while(0);v=R+32|0;c[(s&p)+88>>2]=(c[(v&p)>>2]|0)+-1;wh(R,9,A,l,0)|0;s=c[(t&p)>>2]|0;r=~q;do if((q|0)<0){t=c[(s&p)+112>>2]|0;if(!t)break;c[(t+(r<<2)&p)>>2]=c[(v&p)>>2]}while(0);c[(s&p)+88>>2]=(c[(v&p)>>2]|0)+-1;wh(R,61,y,0,0)|0;wh(R,61,A,0,0)|0;w=P;v=x;t=z;break}}else{Ks(f,g,sa);w=g+4|0;v=0;t=0;m=0;k=0}while(0);ea=a[(w&n)>>0]|0;Qs(f,ea&255,v,t,ea<<24>>24!=116&1);if(!(b[(ta&o)>>1]&8)){za=227;break}u=c[(c[(g&p)>>2]&p)>>2]|0;v=Rs(O,u,1)|0;if(!v){k=7;za=227;break}if((u|0)>0){l=O+8|0;q=v+20|0;r=0;while(1){ea=Ss(f,g,r)|0;c[(q&p)>>2]=ea;if(!ea)c[(q&p)>>2]=c[(l&p)>>2];r=r+1|0;if((r|0)==(u|0))break;else q=q+4|0}}s=R+32|0;t=R+4|0;do{l=0;do{r=g+(l<<2)+16|0;q=c[(r&p)>>2]|0;if((q|0)<0)break;if((c[(s&p)>>2]|0)>>>0>q>>>0)c[((c[(t&p)>>2]|0)+(q*20|0)&p)+8>>2]=u;c[(v&p)>>2]=(c[(v&p)>>2]|0)+1;xh(R,q,v,-6);c[(r&p)>>2]=-1;l=l+1|0}while((l|0)<2);g=c[(g&p)+52>>2]|0}while((g|0)!=0);ea=(c[(v&p)>>2]|0)+-1|0;c[(v&p)>>2]=ea;if(ea){za=227;break}Wc(v);za=227}else{k=d[(g&n)+4>>0]|0;if((k|0)==118)k=35336;else if((k|0)==117)k=35352;else if((k|0)==116)k=35320;else k=35360;c[(ra&p)>>2]=k;th(f,35024,ra);m=0;k=1;za=227}while(0);if((za|0)==227){c[(h&p)+8>>2]=c[(sa&p)+8>>2];c[(h&p)+12>>2]=c[(sa&p)+12>>2];Mk(O,m,1)}c[(Aa&p)>>2]=Ba;break a}if((m&5)==1){k=c[(va&p)>>2]|0;if(!(Ts(k,T,-1)|0)){b[(ta&o)>>1]=m&65534;w=Pr(xa,T,0)|0;c[(l&p)>>2]=w;za=232}}else za=232;if((za|0)==232)k=c[(va&p)>>2]|0;if(!k)k=-1;else{ea=Us(f,k,0,c[(T&p)>>2]|0)|0;da=f+68|0;k=c[(da&p)>>2]|0;c[(da&p)>>2]=k+1;c[(va&p)+8>>2]=k;k=wh(wa,57,k,(c[(c[(va&p)>>2]&p)>>2]|0)+1+(c[(T&p)>>2]|0)|0,0)|0;xh(wa,k,ea,-6)}R=va+20|0;c[(R&p)>>2]=k;if((a[(h&n)>>0]|0)==12)wh(wa,57,c[(h&p)+4>>2]|0,c[(T&p)>>2]|0,0)|0;qa=xs(wa)|0;y=g+24|0;ea=y;c[(ea&p)>>2]=-1;c[(ea&p)+4>>2]=2147483647;Os(f,g,qa);if((c[(g&p)+8>>2]|0)==0?(ha=c[(R&p)>>2]|0,(ha|0)>-1):0){if(!(a[((c[(wa&p)>>2]|0)&n)+65>>0]|0))k=(c[(wa&p)+4>>2]|0)+(ha*20|0)|0;else k=29120;a[(k&n)>>0]=58;ea=va+24|0;a[(ea&n)>>0]=d[(ea&n)>>0]|1}if(!(b[(ta&o)>>1]&1))a[(ua&n)+1>>0]=0;else{ea=f+68|0;k=c[(ea&p)>>2]|0;c[(ea&p)>>2]=k+1;c[(ua&p)+4>>2]=k;ea=Us(f,c[(g&p)>>2]|0,0,0)|0;k=wh(wa,57,k,0,0)|0;xh(wa,k,ea,-6);c[(ua&p)+8>>2]=k;k=c[(wa&p)+4>>2]|0;if(k)a[(k+(((c[(wa&p)+32>>2]|0)+-1|0)*20|0)&n)+3>>0]=8;a[(ua&n)+1>>0]=3}if((z|0)==0&(w|0)==0){v=Vs(f,U,B,c[(va&p)>>2]|0,c[(g&p)>>2]|0,(a[(ua&n)>>0]|0)!=0?1024:0,0)|0;if(!v){za=444;break}t=Ws(b[(v&o)+32>>1]|0)|0;s=G;ea=y;da=c[(ea&p)+4>>2]|0;if(s>>>0>>0|((s|0)==(da|0)?t>>>0<(c[(ea&p)>>2]|0)>>>0:0)){ea=y;c[(ea&p)>>2]=t;c[(ea&p)+4>>2]=s}do if(a[(ua&n)>>0]|0){t=a[(v&n)+40>>0]|0;if(!(t<<24>>24))break;a[(ua&n)+1>>0]=t}while(0);t=c[(va&p)>>2]|0;do if(!t)za=257;else{ea=a[(v&n)+36>>0]|0;c[(va&p)+4>>2]=ea;if((ea|0)!=(c[(t&p)>>2]|0))break;c[(va&p)>>2]=0;za=257}while(0);do if((za|0)==257){r=c[(R&p)>>2]|0;if((r|0)<=-1)break;zh(wa,r)}while(0);Ps(f,g,T,-1,va,ua,h,c[(v&p)+48>>2]|0,c[(v&p)+52>>2]|0);Xs(v)}else{z=(w|0)!=0;do if(z){l=c[(g&p)>>2]|0;k=c[(l&p)>>2]|0;if((k|0)>0){l=c[(l&p)+4>>2]|0;while(1){b[(l&o)+18>>1]=0;k=k+-1|0;if((k|0)<=0)break;else l=l+20|0}}k=c[(w&p)>>2]|0;if((k|0)>0){l=c[(w&p)+4>>2]|0;while(1){b[(l&o)+18>>1]=0;k=k+-1|0;if((k|0)<=0)break;else l=l+20|0}}ea=y;da=c[(ea&p)+4>>2]|0;if(!(da>>>0>0|(da|0)==0&(c[(ea&p)>>2]|0)>>>0>100))break;ea=y;c[(ea&p)>>2]=100;c[(ea&p)+4>>2]=0}else{ea=y;c[(ea&p)>>2]=1;c[(ea&p)+4>>2]=0}while(0);P=(Ts(w,c[(va&p)>>2]|0,-1)|0)==0;S=xs(wa)|0;c[(ma&p)>>2]=0;c[(ma&p)+4>>2]=0;c[(ma&p)+8>>2]=0;c[(ma&p)+12>>2]=0;c[(ma&p)+16>>2]=0;c[(ma&p)+20>>2]=0;c[(ma&p)+24>>2]=0;c[(ma&p)+28>>2]=0;c[(ma&p)>>2]=f;c[(ma&p)+4>>2]=U;c[(ma&p)+12>>2]=ya;K=f+72|0;c[(ya&p)+16>>2]=(c[(K&p)>>2]|0)+1;if(z)k=c[(w&p)>>2]|0;else k=0;y=ya+12|0;c[(y&p)>>2]=k;c[(ya&p)+24>>2]=w;Ys(ma,T);Ys(ma,c[(va&p)>>2]|0);if(ga){c[(ra&p)>>2]=0;c[(ra&p)+4>>2]=0;c[(ra&p)+8>>2]=0;c[(ra&p)+12>>2]=0;c[(ra&p)+16>>2]=0;c[(ra&p)+20>>2]=0;c[(ra&p)>>2]=80;c[(ra&p)+4>>2]=81;c[(ra&p)+24>>2]=ma;rs(ra,ga)|0}A=ya+32|0;c[(ya&p)+36>>2]=c[(A&p)>>2];r=ya+44|0;k=c[(r&p)>>2]|0;if((k|0)>0){x=ma+28|0;l=ya+40|0;m=b[(x&o)>>1]|0;q=0;do{b[(x&o)>>1]=m&65535|8;Ys(ma,c[((c[((c[(l&p)>>2]|0)+(q<<4)&p)>>2]|0)&p)+20>>2]|0);m=e[(x&o)>>1]&65527;b[(x&o)>>1]=m;q=q+1|0;k=c[(r&p)>>2]|0}while((q|0)<(k|0))}c[(ya&p)+20>>2]=c[(K&p)>>2];if(a[(pa&n)>>0]|0){za=444;break}if(z){I=f+68|0;H=c[(I&p)>>2]|0;c[(I&p)>>2]=H+1;v=ya+4|0;c[(v&p)>>2]=H;H=Us(f,w,0,c[(A&p)>>2]|0)|0;u=wh(wa,58,c[(v&p)>>2]|0,c[(y&p)>>2]|0,0)|0;xh(wa,u,H,-6);N=c[(K&p)>>2]|0;M=N+1|0;J=N+2|0;N=N+3|0;c[(K&p)>>2]=N;L=xs(wa)|0;Q=(c[(K&p)>>2]|0)+1|0;c[(K&p)>>2]=Q;O=xs(wa)|0;t=c[(K&p)>>2]|0;r=t+1|0;ea=c[(w&p)>>2]|0;da=ea+t|0;s=da+1|0;c[(K&p)>>2]=da+ea;wh(wa,25,0,J,0)|0;wh(wa,25,0,M,0)|0;wh(wa,28,0,r,(c[(w&p)>>2]|0)+t|0)|0;wh(wa,17,Q,O,0)|0;t=Vs(f,U,B,w,0,P?2304:256,0)|0;if(!t){za=444;break}if((a[(t&n)+36>>0]|0)==(c[(w&p)>>2]|0)){x=0;k=0;y=0}else{if(!(a[(ua&n)>>0]|0))k=34824;else k=(b[(ta&o)>>1]&1)==0?34808:34824;$s(f,k);D=c[(w&p)>>2]|0;k=c[(A&p)>>2]|0;if((k|0)>0){l=c[(ya&p)+28>>2]|0;m=0;y=D;x=D;do{if((c[(l+(m*24|0)&p)+12>>2]|0)>=(y|0)){y=y+1|0;x=x+1|0}m=m+1|0}while((m|0)<(k|0));F=x}else F=D;E=f+60|0;x=c[(E&p)>>2]|0;B=f+56|0;k=c[(B&p)>>2]|0;if((k|0)<(F|0)){C=c[(K&p)>>2]|0;c[(K&p)>>2]=C+F;C=C+1|0}else{c[(E&p)>>2]=x+F;c[(B&p)>>2]=k-F;C=x}at(f);bt(f,w,C,0);y=c[(A&p)>>2]|0;if((y|0)>0){m=ya+28|0;z=0;x=D;do{k=c[(m&p)>>2]|0;if((c[(k+(z*24|0)&p)+12>>2]|0)>=(x|0)){l=x+C|0;y=ct(f,c[(k+(z*24|0)&p)>>2]|0,c[(k+(z*24|0)&p)+8>>2]|0,c[(k+(z*24|0)&p)+4>>2]|0,l,0)|0;if((l|0)!=(y|0))wh(wa,34,y,l,0)|0;y=c[(A&p)>>2]|0;x=x+1|0}z=z+1|0}while((z|0)<(y|0))}y=f+19|0;x=a[(y&n)>>0]|0;if(!(x<<24>>24)){x=(c[(K&p)>>2]|0)+1|0;c[(K&p)>>2]=x}else{x=x+-1<<24>>24;a[(y&n)>>0]=x;x=c[(f+((x&255)<<2)&p)+24>>2]|0}wh(wa,49,C,F,x)|0;wh(wa,109,c[(v&p)>>2]|0,x,0)|0;_r(f,x);dt(f,C,F);if((c[(B&p)>>2]|0)<(F|0)){c[(B&p)>>2]=F;c[(E&p)>>2]=C}Xs(t);l=c[(I&p)>>2]|0;c[(I&p)>>2]=l+1;c[(ya&p)+8>>2]=l;k=a[(y&n)>>0]|0;if(!(k<<24>>24)){k=(c[(K&p)>>2]|0)+1|0;c[(K&p)>>2]=k}else{k=k+-1<<24>>24;a[(y&n)>>0]=k;k=c[(f+((k&255)<<2)&p)+24>>2]|0}wh(wa,60,l,k,F)|0;wh(wa,106,c[(v&p)>>2]|0,S,0)|0;a[(ya&n)+1>>0]=1;at(f);x=1;y=l}do if(P){if(b[(xa&o)+60>>1]&4)break;if((x|0)==0?(a[(t&n)+37>>0]|0)==0:0)break;c[(va&p)>>2]=0;zh(wa,c[(R&p)>>2]|0)}while(0);A=wa+32|0;q=c[(A&p)>>2]|0;at(f);x=(x|0)!=0;if(x)wh(wa,100,c[(v&p)>>2]|0,k,y)|0;k=c[(w&p)>>2]|0;if((k|0)>0){l=w+4|0;m=0;do{if(x)wh(wa,47,y,m,m+s|0)|0;else{a[(ya&n)>>0]=1;Rq(f,c[((c[(l&p)>>2]|0)+(m*20|0)&p)>>2]|0,m+s|0)}m=m+1|0;k=c[(w&p)>>2]|0}while((m|0)<(k|0))}if(H)c[(H&p)>>2]=(c[(H&p)>>2]|0)+1;xh(wa,wh(wa,42,r,s,k)|0,H,-6);k=c[(A&p)>>2]|0;ea=k+1|0;wh(wa,43,ea,0,ea)|0;w=c[(w&p)>>2]|0;wh(c[(f&p)+8>>2]|0,32,s,r,w)|0;dt(f,s,w);wh(wa,17,N,L,0)|0;wh(wa,137,J,S,0)|0;wh(wa,17,Q,O,0)|0;w=c[(A&p)>>2]|0;if(w>>>0>k>>>0)c[((c[(wa&p)+4>>2]|0)+(k*20|0)&p)+8>>2]=w;r=wa+24|0;c[((c[(r&p)>>2]|0)&p)+88>>2]=w+-1;et(f,ya);wh(wa,25,1,M,0)|0;if(x)wh(wa,5,c[(v&p)>>2]|0,q,0)|0;else{Xs(t);zh(wa,u)}wh(wa,17,N,L,0)|0;wh(wa,16,0,S,0)|0;m=c[(A&p)>>2]|0;wh(wa,25,1,J,0)|0;wh(wa,18,N,0,0)|0;k=c[(r&p)>>2]|0;l=~L;do if((L|0)<0){w=c[(k&p)+112>>2]|0;if(!w)break;c[(w+(l<<2)&p)>>2]=c[(A&p)>>2]}while(0);v=c[(A&p)>>2]|0;c[(k&p)+88>>2]=v+-1;wh(wa,137,M,v+2|0,0)|0;wh(wa,18,N,0,0)|0;ft(f,ya);v=v+1|0;gt(f,ga,v,16);Ps(f,g,c[(g&p)>>2]|0,-1,va,ua,h,v,m);wh(wa,18,N,0,0)|0;v=c[(r&p)>>2]|0;u=~O;do if((O|0)<0){t=c[(v&p)+112>>2]|0;if(!t)break;c[(t+(u<<2)&p)>>2]=c[(A&p)>>2]}while(0);c[(v&p)+88>>2]=(c[(A&p)>>2]|0)+-1;ht(f,ya);wh(wa,18,Q,0,0)|0}else{do if(!(c[(H&p)>>2]|0)){u=c[(g&p)>>2]|0;if((c[(u&p)>>2]|0)!=1){za=372;break}v=c[(na&p)>>2]|0;if((c[(v&p)>>2]|0)!=1){za=372;break}if(c[(v&p)+28>>2]|0){za=372;break}A=c[(v&p)+24>>2]|0;v=c[(c[(u&p)+4>>2]&p)>>2]|0;z=A+44|0;if(a[(z&n)>>0]&16){za=372;break}if((a[(v&n)>>0]|0)!=-101|(k|0)==0){za=372;break}y=ya+40|0;if(!(b[((c[((c[(y&p)>>2]|0)&p)+4>>2]|0)&o)+2>>1]&256)){za=372;break}if((A|0)==0?1:(c[(v&p)+4>>2]&16|0)!=0){za=372;break}v=c[(f&p)>>2]|0;k=c[(A&p)+68>>2]|0;i:do if(!k)u=-1e6;else{l=c[(v&p)+20>>2]|0;if((l|0)<=0){u=0;break}v=c[(v&p)+16>>2]|0;w=0;while(1){u=w+1|0;if((c[(v+(w<<4)&p)+12>>2]|0)==(k|0)){u=w;break i}if((u|0)<(l|0))w=u;else break}}while(0);w=f+68|0;q=c[(w&p)>>2]|0;c[(w&p)>>2]=q+1;w=A+32|0;k=c[(w&p)>>2]|0;Ar(f,u);gs(f,u,c[(w&p)>>2]|0,0,c[(A&p)>>2]|0);w=c[(A&p)+8>>2]|0;j:do if(!(a[(z&n)>>0]&32)){v=0;za=351}else{if(!w){l=1;m=0;w=0;break}else v=w;while(1){if((a[(v&n)+51>>0]&3)==2){za=351;break j}v=c[(v&p)+20>>2]|0;if(!v){v=0;za=351;break}}}while(0);do if((za|0)==351){if(w){m=A+42|0;l=w;do{do if(!(a[(l&n)+51>>0]&4)){w=b[(l&o)+44>>1]|0;if(w<<16>>16>=(b[(m&o)>>1]|0))break;if(c[(l&p)+36>>2]|0)break;if((v|0)!=0?w<<16>>16>=(b[(v&o)+44>>1]|0):0)break;v=l}while(0);l=c[(l&p)+20>>2]|0}while((l|0)!=0)}if(!v){l=1;m=0;w=0;break}k=c[(v&p)+40>>2]|0;l=0;m=v;w=hs(f,v)|0}while(0);xh(wa,wh(wa,54,q,k,u)|0,1,-14);if(w)xh(wa,-1,w,-6);wh(wa,50,q,c[((c[(y&p)>>2]|0)&p)+8>>2]|0,0)|0;wh(wa,61,q,0,0)|0;if((a[(f&n)+450>>0]|0)!=2){t=0;break}do if(l){v=c[(A&p)>>2]|0;u=10360;s=10360;t=c[(f&p)>>2]|0}else{if(a[(z&n)>>0]&32){ea=(a[(m&n)+51>>0]&3)!=2;t=c[(f&p)>>2]|0;v=c[(A&p)>>2]|0;u=ea?34920:10360;if(!ea){s=10360;break}}else{u=34920;v=c[(A&p)>>2]|0;t=c[(f&p)>>2]|0}s=c[(m&p)>>2]|0}while(0);c[(ra&p)>>2]=v;c[(ra&p)+4>>2]=u;c[(ra&p)+8>>2]=s;t=uh(t,34896,ra)|0;ea=c[(f&p)+8>>2]|0;xh(ea,wh(ea,157,c[(Aa&p)>>2]|0,0,0)|0,t,-1);t=0}else za=372;while(0);if((za|0)==372){do if((c[(I&p)>>2]|0)==0&(k|0)==1){t=c[(c[(ya&p)+40>>2]&p)>>2]|0;v=c[(t&p)+20>>2]|0;if(!v){t=0;s=0;break}if((c[(v&p)>>2]|0)!=1){t=0;s=0;break}if((a[(c[(c[(v&p)+4>>2]&p)>>2]&n)>>0]|0)!=-100){t=0;s=0;break}t=c[(t&p)+8>>2]|0;if(dd(t,18760)|0)if(!(dd(t,18768)|0))s=2;else{t=0;s=0;break}else s=1;t=Pr(xa,v,0)|0;if(!t){t=0;break}if(a[(pa&n)>>0]|0)break;ea=c[(t&p)+4>>2]|0;a[(ea&n)+12>>0]=s<<24>>24!=1&1;a[(c[(ea&p)>>2]&n)>>0]=-102}else{t=0;s=0}while(0);ht(f,ya);s=Vs(f,U,B,t,0,s&255,0)|0;if(!s){Nk(xa,t);za=444;break}et(f,ya);if((a[(s&n)+36>>0]|0)>0)wh(wa,16,0,c[(s&p)+52>>2]|0,0)|0;Xs(s);ft(f,ya)}c[(va&p)>>2]=0;gt(f,ga,S,16);Ps(f,g,c[(g&p)>>2]|0,-1,0,0,h,S,S);Nk(xa,t);r=wa+24|0}t=c[(r&p)>>2]|0;s=~S;do if((S|0)<0){r=c[(t&p)+112>>2]|0;if(!r)break;c[(r+(s<<2)&p)>>2]=c[(wa&p)+32>>2]}while(0);c[(t&p)+88>>2]=(c[(wa&p)+32>>2]|0)+-1}if((a[(ua&n)+1>>0]|0)==3)$s(f,34808);if(c[(va&p)>>2]|0){x=va+4|0;$s(f,(c[(x&p)>>2]|0)>0?34840:34864);A=c[(T&p)>>2]|0;v=f+8|0;H=c[(v&p)>>2]|0;I=xs(H)|0;F=xs(H)|0;q=c[(va&p)>>2]|0;m=a[(h&n)>>0]|0;B=m&255;C=h+4|0;D=c[(C&p)>>2]|0;y=va+16|0;w=c[(y&p)>>2]|0;if(w){wh(H,17,c[(va&p)+12>>2]|0,w,0)|0;wh(H,16,0,I,0)|0;ea=c[(y&p)>>2]|0;w=c[(H&p)+24>>2]|0;k=~ea;do if((ea|0)<0){l=c[(w&p)+112>>2]|0;if(!l)break;c[(l+(k<<2)&p)>>2]=c[(H&p)+32>>2]}while(0);c[(w&p)+88>>2]=(c[(H&p)+32>>2]|0)+-1}E=c[(va&p)+8>>2]|0;t=m<<24>>24==9;k:do if((m&-5)<<24>>24==9){s=A;u=c[(h&p)+8>>2]|0;k=0}else{w=f+19|0;k=a[(w&n)>>0]|0;do if(k<<24>>24){ea=k+-1<<24>>24;a[(w&n)>>0]=ea;l=c[(f+((ea&255)<<2)&p)+24>>2]|0;if(!(ea<<24>>24)){k=l;w=c[(f&p)+72>>2]|0;break}else{u=k+-2<<24>>24;a[(w&n)>>0]=u;s=1;u=c[(f+((u&255)<<2)&p)+24>>2]|0;k=l;break k}}else{k=f+72|0;w=(c[(k&p)>>2]|0)+1|0;c[(k&p)>>2]=w;k=w}while(0);u=w+1|0;c[(f&p)+72>>2]=u;s=1}while(0);r=(c[(q&p)>>2]|0)-(c[(x&p)>>2]|0)|0;z=va+24|0;if(!(a[(z&n)>>0]&1)){w=wh(H,107,E,I,0)|0;it(H,c[(g&p)+12>>2]|0,F);l=1;m=E}else{ea=f+72|0;m=(c[(ea&p)>>2]|0)+1|0;c[(ea&p)>>2]=m;ea=f+68|0;q=c[(ea&p)>>2]|0;c[(ea&p)>>2]=q+1;if(!(c[(y&p)>>2]|0))l=0;else{ea=Oq(f)|0;da=f+80|0;l=c[(da&p)>>2]|0;c[(da&p)>>2]=l+1;l=wh(ea,44,l,0,0)|0}wh(H,60,q,m,s+1+r|0)|0;if(l){w=c[(H&p)+32>>2]|0;if(w>>>0>l>>>0)c[((c[(H&p)+4>>2]|0)+(l*20|0)&p)+8>>2]=w;c[((c[(H&p)+24>>2]|0)&p)+88>>2]=w+-1}w=wh(H,106,E,I,0)|0;it(H,c[(g&p)+12>>2]|0,F);wh(H,100,E,m,q)|0;l=0;m=q}x=w+1|0;if((s|0)>0){w=l+r|0;l=0;do{wh(H,47,m,w+l|0,l+u|0)|0;l=l+1|0}while((l|0)!=(s|0))}do if((B|0)==12|(B|0)==14){wh(H,74,D,k,0)|0;wh(H,75,D,u,k)|0;t=c[(H&p)+4>>2]|0;if(!t)break;a[(t+(((c[(H&p)+32>>2]|0)+-1|0)*20|0)&n)+3>>0]=8}else if((B|0)==11){xh(H,wh(H,49,u,1,k)|0,h+1|0,1);dt(f,u,1);wh(H,110,D,k,0)|0}else if((B|0)!=10)if(t){ea=h+8|0;wh(H,35,c[(ea&p)>>2]|0,A,0)|0;dt(f,c[(ea&p)>>2]|0,A);break}else{wh(H,22,c[(C&p)>>2]|0,0,0)|0;break}else{wh(c[(v&p)>>2]|0,32,u,D,1)|0;dt(f,u,1)}while(0);if(k){_r(f,u);_r(f,k)}s=H+24|0;u=c[(s&p)>>2]|0;v=~F;do if((F|0)<0){t=c[(u&p)+112>>2]|0;if(!t)break;c[(t+(v<<2)&p)>>2]=c[(H&p)+32>>2]}while(0);v=H+32|0;c[(u&p)+88>>2]=(c[(v&p)>>2]|0)+-1;if(!(a[(z&n)>>0]&1))wh(H,9,E,x,0)|0;else wh(H,5,E,x,0)|0;r=c[(va&p)+12>>2]|0;if(r)wh(H,18,r,0,0)|0;r=c[(s&p)>>2]|0;q=~I;do if((I|0)<0){m=c[(r&p)+112>>2]|0;if(!m)break;c[(m+(q<<2)&p)>>2]=c[(v&p)>>2]}while(0);c[(r&p)+88>>2]=(c[(v&p)>>2]|0)+-1}l=c[(wa&p)+24>>2]|0;m=~qa;do if((qa|0)<0){k=c[(l&p)+112>>2]|0;if(!k)break;c[(k+(m<<2)&p)>>2]=c[(wa&p)+32>>2]}while(0);c[(l&p)+88>>2]=(c[(wa&p)+32>>2]|0)+-1;c[(Aa&p)>>2]=Ba;if((a[(h&n)>>0]|0)!=9){k=0;break}Ns(f,U,T);k=0}else za=444;while(0);if((za|0)==444){c[(Aa&p)>>2]=Ba;k=1}mg(xa,c[(ya&p)+28>>2]|0);mg(xa,c[(ya&p)+40>>2]|0)}else k=1;while(0);i=Ca;return k|0}function jr(a,b,d,e,f,g,h,k){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;var l=0,m=0,n=0,o=0,q=0,r=0;r=i;i=i+16|0;if((i|0)>=(j|0))fa();m=r;o=c[(a&p)>>2]|0;if((b|0)==0?(l=(h|0)!=0,l|(k|0)!=0):0){c[(m&p)>>2]=l?34792:34800;th(a,34752,m);q=9}else{b=pr(o,b,d,e)|0;if((b|0)!=0?(n=c[(b&p)>>2]|0,(n|0)!=0):0){l=n+-1|0;if(c[(f&p)+4>>2]|0)c[(b+(l*72|0)&p)+20>>2]=Wq(o,f)|0;c[(b+(l*72|0)&p)+28>>2]=g;c[(b+(l*72|0)&p)+52>>2]=h;c[(b+(l*72|0)&p)+56>>2]=k}else q=9}if((q|0)==9){Gk(o,h);Hk(o,k);Mk(o,g,1);b=0}i=r;return b|0}function kr(d,e,f,g,h,k,l,m,q,r){d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;m=m|0;q=q|0;r=r|0;var s=0,t=0,u=0,v=0,w=0,x=0,y=0;y=i;i=i+80|0;if((i|0)>=(j|0))fa();t=y+72|0;x=y;w=c[(d&p)>>2]|0;s=mh(w,72,0)|0;if(!s){u=x+0|0;v=u+72|0;do{c[(u&p)>>2]=0;u=u+4|0}while((u|0)<(v|0));s=x}else{u=s+0|0;v=u+72|0;do{a[(u&n)>>0]=0;u=u+1|0}while((u|0)<(v|0))}if(!e){c[(t&p)>>2]=0;c[(t&p)+4>>2]=0;e=lr(d,0,nr(w,116,t,0)|0)|0}c[(s&p)>>2]=e;if(!f){f=mh(w,80,0)|0;if(f){u=f+0|0;v=u+80|0;do{a[(u&n)>>0]=0;u=u+1|0}while((u|0)<(v|0))}}c[(s&p)+32>>2]=f;c[(s&p)+36>>2]=g;c[(s&p)+40>>2]=h;c[(s&p)+44>>2]=k;c[(s&p)+48>>2]=l;b[(s&o)+6>>1]=m;a[(s&n)+4>>0]=119;c[(s&p)+60>>2]=q;c[(s&p)+64>>2]=r;c[(s&p)+16>>2]=-1;c[(s&p)+20>>2]=-1;if(a[(w&n)+65>>0]|0){Mk(w,s,(s|0)!=(x|0)&1);s=0}i=y;return s|0}function lr(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0;g=c[(b&p)>>2]|0;if(!d){d=mh(g,8,0)|0;if(d){b=d;f=b;a[(f&n)>>0]=0;a[(f&n)+1>>0]=0;a[(f&n)+2>>0]=0;a[(f&n)+3>>0]=0;b=b+4|0;a[(b&n)>>0]=0;a[(b&n)+1>>0]=0;a[(b&n)+2>>0]=0;a[(b&n)+3>>0]=0;b=mh(g,20,0)|0;c[(d&p)+4>>2]=b;if(!b)f=8;else f=7}else{d=0;f=8}}else{b=c[(d&p)>>2]|0;if(!(b+-1&b)){f=d+4|0;b=ro(g,c[(f&p)>>2]|0,b*40|0,0)|0;if(!b)f=8;else{c[(f&p)>>2]=b;f=7}}else f=7}if((f|0)==7){b=c[(d&p)>>2]|0;c[(d&p)>>2]=b+1;b=(c[(d&p)+4>>2]|0)+(b*20|0)|0;c[(b&p)>>2]=0;c[(b&p)+4>>2]=0;c[(b&p)+8>>2]=0;c[(b&p)+12>>2]=0;c[(b&p)+16>>2]=0;c[(b&p)>>2]=e}else if((f|0)==8){Gk(g,e);Nk(g,d);d=0}return d|0}function mr(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0;do if(d){j=(c[(d&p)>>2]|0)+-1|0;g=c[(d&p)+4>>2]|0;h=c[(e&p)>>2]|0;d=c[(e&p)+4>>2]|0;if((h|0)!=0?(e=c[(b&p)>>2]|0,i=jw(d|0,0,1,0)|0,i=mh(e,i,G)|0,(i|0)!=0):0){kw(i|0,h|0,d|0)|0;a[(i+d&n)>>0]=0;c[(g+(j*20|0)&p)+4>>2]=i;if(!f)break;lo(i);break}c[(g+(j*20|0)&p)+4>>2]=0}while(0);return}function nr(d,e,f,g){d=d|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,q=0,r=0,s=0,t=0;t=i;i=i+16|0;if((i|0)>=(j|0))fa();m=t;c[(m&p)>>2]=0;k=(f|0)!=0;do if(k){if(((e|0)==132?(h=c[(f&p)>>2]|0,(h|0)!=0):0)?(Dn(h,m)|0)!=0:0){r=0;break}r=(c[(f&p)+4>>2]|0)+1|0}else r=0;while(0);l=r+48|0;q=mh(d,l,0)|0;if(q){fw(q|0,0,l|0)|0;a[(q&n)>>0]=e;b[(q&o)+34>>1]=-1;do if(k){if(!r){g=q+4|0;c[(g&p)>>2]=c[(g&p)>>2]|1024;c[(q&p)+8>>2]=c[(m&p)>>2];break}h=q+48|0;l=q+8|0;c[(l&p)>>2]=h;k=f+4|0;d=c[(k&p)>>2]|0;if(!d)h=48;else{kw(h|0,c[(f&p)>>2]|0,d|0)|0;h=(c[(k&p)>>2]|0)+48|0}a[(q+h&n)>>0]=0;if(((g|0)!=0&(r|0)>2?(g=a[(c[(f&p)>>2]&n)>>0]|0,s=g<<24>>24==34,g<<24>>24==34|g<<24>>24==39|g<<24>>24==91|g<<24>>24==96):0)?(lo(c[(l&p)>>2]|0),s):0){g=q+4|0;c[(g&p)>>2]=c[(g&p)>>2]|64}}while(0);c[(q&p)+24>>2]=1}i=t;return q|0}function or(b,d,e){b=b|0;d=d|0;e=e|0;var f=0;do if((d|0)!=0?(f=c[(d&p)>>2]|0,(f|0)>0):0){f=f+-1|0;if((c[(e&p)+4>>2]|0)==1?(c[(e&p)>>2]|0)==0:0){f=d+(f*72|0)+45|0;a[(f&n)>>0]=a[(f&n)>>0]|1;break}c[(d+(f*72|0)&p)+72>>2]=Wq(c[(b&p)>>2]|0,e)|0}while(0);return}function pr(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0;if(!d){d=mh(b,80,0)|0;if(!d)d=0;else{h=d+0|0;g=h+80|0;do{a[(h&n)>>0]=0;h=h+1|0}while((h|0)<(g|0));c[(d&p)+4>>2]=1;h=4}}else h=4;do if((h|0)==4){d=Fs(b,d,1,c[(d&p)>>2]|0)|0;if(a[(b&n)+65>>0]|0){Do(b,d);d=0;break}h=(c[(d&p)>>2]|0)+-1|0;if(!f)g=0;else g=(c[(f&p)>>2]|0)==0?0:f;f=(g|0)==0;c[(d+(h*72|0)&p)+16>>2]=Wq(b,f?e:g)|0;c[(d+(h*72|0)&p)+12>>2]=Wq(b,f?0:e)|0}while(0);return d|0}function qr(a,b,e,f){a=a|0;b=b|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,o=0,q=0,r=0,s=0;s=i;i=i+32|0;if((i|0)>=(j|0))fa();q=s;m=s+16|0;c[(m&p)>>2]=b;c[(m&p)+4>>2]=e;c[(m&p)+8>>2]=f;l=b;o=1;g=0;a:while(1){if(!l)break;k=c[(l&p)+4>>2]|0;h=0;while(1){if((k|0)==(d[((h*3|0)&n)+34625>>0]|0|0)?(Fc(c[(l&p)>>2]|0,34584+(d[((h*3|0)&n)+34624>>0]|0)|0,k)|0)==0:0)break;h=h+1|0;if((h|0)>=7){r=10;break a}}g=d[((h*3|0)&n)+34626>>0]|0|g;if((h|0)>6){r=10;break}if((o|0)>=3)break;l=c[(m+(o<<2)&p)>>2]|0;o=o+1|0}if((r|0)==10)g=g|64;if((g&33|0)!=33&(g&64|0)==0){if(!((g&32|0)==0|(g&24|0)==8)){th(a,34696,q);g=1}}else{c[(q&p)>>2]=b;c[(q&p)+4>>2]=e;c[(q&p)+8>>2]=(f|0)==0?20377|0:20376;c[(q&p)+12>>2]=f;th(a,34648,q);g=1}i=s;return g|0}function rr(e,f,g){e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=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;T=i;i=i+48|0;if((i|0)>=(j|0))fa();Q=T+36|0;R=T+32|0;r=T;c[(Q&p)>>2]=0;c[(R&p)>>2]=0;S=c[(e&p)>>2]|0;if(((((c[(e&p)+64>>2]|0)==0?(a[(S&n)+65>>0]|0)==0:0)?(H=Jr(e,f)|0,(H|0)!=0):0)?(G=jt(e,H,109,0,0)|0,P=(c[(H&p)+12>>2]|0)!=0,(hr(e,H)|0)==0):0)?(t=(G|0)!=0,(kt(e,H,t&1)|0)==0):0){l=c[(H&p)+68>>2]|0;a:do if(l){k=c[(S&p)+20>>2]|0;if((k|0)>0){h=c[(S&p)+16>>2]|0;q=0;while(1){m=q+1|0;if((c[(h+(q<<4)&p)+12>>2]|0)==(l|0)){m=q;break a}if((m|0)<(k|0))q=m;else break}}else m=0}else m=-1e6;while(0);h=Sq(e,9,c[(H&p)>>2]|0,0,c[((c[(S&p)+16>>2]|0)+(m<<4)&p)>>2]|0)|0;if((h|0)!=1){s=e+68|0;C=c[(s&p)>>2]|0;u=C+1|0;c[(s&p)>>2]=u;c[(f&p)+48>>2]=C;I=H+8|0;l=c[(I&p)>>2]|0;if(!l)q=0;else{k=u;q=0;do{k=k+1|0;c[(s&p)>>2]=k;q=q+1|0;l=c[(l&p)+20>>2]|0}while((l|0)!=0)}if(P){N=e+492|0;O=c[(N&p)>>2]|0;c[(N&p)>>2]=c[(H&p)>>2];N=e}else{N=0;O=0}L=Oq(e)|0;b:do if(L){M=e+18|0;if(!(a[(M&n)>>0]|0)){E=L+88|0;b[(E&o)>>1]=b[(E&o)>>1]|4}D=e+408|0;E=c[(D&p)>>2]|0;E=(E|0)==0?e:E;Ar(e,m);B=E+328|0;c[(B&p)>>2]=c[(B&p)>>2]|1<>0]=d[(E&n)>>0]|1;if(P){lt(e,H,g,C);c[(R&p)>>2]=C;c[(Q&p)>>2]=C};c[(r&p)>>2]=0;c[(r&p)+4>>2]=0;c[(r&p)+8>>2]=0;c[(r&p)+12>>2]=0;c[(r&p)+16>>2]=0;c[(r&p)+20>>2]=0;c[(r&p)+24>>2]=0;c[(r&p)+28>>2]=0;c[(r&p)>>2]=e;c[(r&p)+4>>2]=f;if(!(ls(r,g)|0)){J=S+24|0;if(!(c[(J&p)>>2]&128))K=-1;else{E=e+72|0;K=(c[(E&p)>>2]|0)+1|0;c[(E&p)>>2]=K;wh(L,25,0,K,0)|0}E=H+44|0;do if((!((g|0)!=0|(h|0)!=0|t)?(a[(E&n)>>0]&16)==0:0)?(mt(e,H,0,0)|0)==0:0){l=H+32|0;gs(e,m,c[(l&p)>>2]|0,1,c[(H&p)>>2]|0);if(!(a[(E&n)>>0]&32)){H=c[(H&p)>>2]|0;xh(L,wh(L,118,c[(l&p)>>2]|0,m,K)|0,H,-2)}h=c[(I&p)>>2]|0;if(!h){h=0;break}do{wh(L,118,c[(h&p)+40>>2]|0,m,0)|0;h=c[(h&p)+20>>2]|0}while((h|0)!=0);h=0}else F=31;while(0);do if((F|0)==31){if(!(a[(E&n)>>0]&32)){v=e+72|0;z=(c[(v&p)>>2]|0)+1|0;c[(v&p)>>2]=z;wh(L,28,0,z,0)|0;v=0;A=0;h=0;x=1;m=0}else{m=c[(I&p)>>2]|0;c:do if(!m)m=0;else while(1){if((a[(m&n)+51>>0]&3)==2)break c;m=c[(m&p)+20>>2]|0;if(!m){m=0;break}}while(0);x=b[(m&o)+46>>1]|0;A=e+72|0;h=c[(A&p)>>2]|0;v=x<<16>>16;c[(A&p)>>2]=h+v;A=c[(s&p)>>2]|0;c[(s&p)>>2]=A+1;v=wh(L,57,A,v,0)|0;z=c[(e&p)+8>>2]|0;xh(z,-1,hs(e,m)|0,-6);h=h+1|0;z=0}w=Vs(e,f,g,0,0,12,u)|0;if(!w){h=0;break b}u=w+60|0;t=c[(u&p)>>2]|0;u=c[(u&p)+4>>2]|0;y=a[(w&n)+38>>0]|0;if(c[(J&p)>>2]&128)wh(L,37,K,1,0)|0;B=(m|0)!=0;do if(B){if(x<<16>>16<=0){k=h;break}r=m+4|0;l=x<<16>>16;s=0;do{nt(L,H,C,b[((c[(r&p)>>2]|0)+(s<<1)&o)>>1]|0,s+h|0);s=s+1|0}while((s|0)!=(l|0));k=h}else{l=e+72|0;k=ct(e,H,-1,C,(c[(l&p)>>2]|0)+1|0,0)|0;if((k|0)<=(c[(l&p)>>2]|0))break;c[(l&p)>>2]=k}while(0);r=y<<24>>24!=0;do if(!r)if(B){l=e+72|0;k=(c[(l&p)>>2]|0)+1|0;c[(l&p)>>2]=k;l=x<<16>>16;s=ot(L,m)|0;xh(L,wh(L,49,h,l,k)|0,s,l);wh(L,110,A,k,0)|0;h=0;l=0;s=0;F=59;break}else{wh(L,128,z,k,0)|0;Xs(w);h=0;u=0;m=1;break}else{h=q+2|0;h=mh(S,h,((h|0)<0)<<31>>31)|0;if(!h){Xs(w);h=0;break b}F=q+1|0;fw(h|0,1,F|0)|0;a[(h+F&n)>>0]=0;if((t|0)>-1)a[(h+(t-C)&n)>>0]=0;if((u|0)>-1)a[(h+(u-C)&n)>>0]=0;if(v)zh(L,v);l=wh(L,16,0,0,0)|0;s=x;F=59}while(0);do if((F|0)==59){Xs(w);if(!r){u=0;m=s;break}m=xs(L)|0;wh(L,16,0,m,0)|0;q=c[(L&p)+32>>2]|0;if(q>>>0>l>>>0)c[((c[(L&p)+4>>2]|0)+(l*20|0)&p)+8>>2]=q;c[((c[(L&p)+24>>2]|0)&p)+88>>2]=q+-1;u=m;m=s}while(0);if(!P)pt(e,H,55,C,h,Q,R)|0;do if(!r)if(B){l=wh(L,108,A,0,0)|0;wh(L,101,A,k,0)|0;break}else{l=wh(L,129,z,0,k)|0;break}else{q=c[(Q&p)>>2]|0;if(!(a[(h+(q-C)&n)>>0]|0)){l=0;break}xh(L,wh(L,68,q,u,k)|0,m<<16>>16,-14);l=0}while(0);if(!(a[(E&n)>>0]&16))rt(e,H,G,c[(Q&p)>>2]|0,c[(R&p)>>2]|0,k,m,(a[(M&n)>>0]|0)==0&1,10,y);else{q=c[(H&p)+60>>2]|0;d:do if(!q)q=0;else while(1){if((c[(q&p)>>2]|0)==(S|0))break d;q=c[(q&p)+24>>2]|0;if(!q){q=0;break}}while(0);qt(e,H);xh(L,wh(L,15,0,1,k)|0,q,-10);q=c[(L&p)+4>>2]|0;if(q)a[(q+(((c[(L&p)+32>>2]|0)+-1|0)*20|0)&n)+3>>0]=2;H=c[(D&p)>>2]|0;a[(((H|0)==0?e:H)&n)+21>>0]=1}do if(!r)if(B){wh(L,9,A,l+1|0,0)|0;q=c[(L&p)+32>>2]|0;if(q>>>0>l>>>0)c[((c[(L&p)+4>>2]|0)+(l*20|0)&p)+8>>2]=q;c[((c[(L&p)+24>>2]|0)&p)+88>>2]=q+-1;break}else{wh(L,16,0,l,0)|0;q=c[(L&p)+32>>2]|0;if(q>>>0>l>>>0)c[((c[(L&p)+4>>2]|0)+(l*20|0)&p)+8>>2]=q;c[((c[(L&p)+24>>2]|0)&p)+88>>2]=q+-1;break}else{m=c[(L&p)+24>>2]|0;l=~u;do if((u|0)<0){q=c[(m&p)+112>>2]|0;if(!q)break;c[(q+(l<<2)&p)>>2]=c[(L&p)+32>>2]}while(0);c[(m&p)+88>>2]=(c[(L&p)+32>>2]|0)+-1}while(0);if(P)break;if(a[(E&n)>>0]&16)break;if(!B)wh(L,61,c[(Q&p)>>2]|0,0,0)|0;k=c[(I&p)>>2]|0;if(!k)break;else l=0;while(1){wh(L,61,(c[(R&p)>>2]|0)+l|0,0,0)|0;k=c[(k&p)+20>>2]|0;if(!k)break;else l=l+1|0}}while(0);if((a[(M&n)>>0]|0)==0?(c[(e&p)+412>>2]|0)==0:0)st(e);if((c[(J&p)>>2]&128|0)!=0?(a[(M&n)>>0]|0)==0:0){if(c[(e&p)+412>>2]|0)break;wh(L,35,K,1,0)|0;iq(L,1);if(a[((c[(L&p)>>2]|0)&n)+65>>0]|0)break;Xg(c[(L&p)+16>>2]|0,34568,-1,1,0)|0}}else h=0}else h=0;while(0);if(N)c[(N&p)+492>>2]=O}else h=0}else h=0;Do(S,f);Gk(S,g);mg(S,h);i=T;return}function sr(e,f,g,h,k){e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;var l=0,m=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,ga=0,ha=0,ia=0,ja=0,ka=0,la=0,ma=0;ma=i;i=i+64|0;if((i|0)>=(j|0))fa();T=ma;Y=ma+32|0;ea=ma+24|0;ha=ma+20|0;la=c[(e&p)>>2]|0;a:do if(((c[(e&p)+64>>2]|0)==0?(a[(la&n)+65>>0]|0)==0:0)?(ka=Jr(e,f)|0,(ka|0)!=0):0){m=c[(e&p)>>2]|0;r=c[(ka&p)+68>>2]|0;b:do if(r){s=c[(m&p)+20>>2]|0;if((s|0)>0){m=c[(m&p)+16>>2]|0;q=0;while(1){l=q+1|0;if((c[(m+(q<<4)&p)+12>>2]|0)==(r|0))break b;if((l|0)<(s|0))q=l;else{q=l;break}}}else q=0}else q=-1e6;while(0);ga=jt(e,ka,110,g,ea)|0;ca=(c[(ka&p)+12>>2]|0)!=0;if((hr(e,ka)|0)==0?(kt(e,ka,c[(ea&p)>>2]|0)|0)==0:0){_=e+68|0;$=c[(_&p)>>2]|0;ia=$+1|0;c[(_&p)>>2]=ia;r=f+48|0;c[(r&p)>>2]=$;K=ka+44|0;u=c[(ka&p)+8>>2]|0;c:do if(!(a[(K&n)>>0]&32)){s=0;ba=16}else{if(!u){w=ka+8|0;s=0;t=$;v=0;break}else s=u;while(1){if((a[(s&n)+51>>0]&3)==2){ba=16;break c}s=c[(s&p)+20>>2]|0;if(!s){s=0;ba=16;break}}}while(0);if((ba|0)==16){w=ka+8|0;if(!u){t=$;v=0}else{l=(s|0)!=0;m=ia;t=$;v=0;do{if((a[(u&n)+51>>0]&3)==2&l){c[(r&p)>>2]=m;t=m}m=m+1|0;c[(_&p)>>2]=m;v=v+1|0;u=c[(u&p)+20>>2]|0}while((u|0)!=0)}}ja=ka+38|0;l=mh(la,v+2+((b[(ja&o)>>1]|0)+v<<2)|0,0)|0;if(l){I=b[(ja&o)>>1]|0;aa=l+(I<<2)|0;da=l+(I+v<<2)|0;Z=v+1|0;fw(da|0,1,Z|0)|0;a[(da+Z&n)>>0]=0;v=b[(ja&o)>>1]|0;if(v<<16>>16>0)fw(l|0,-1,(v<<16>>16>1?v<<16>>16<<2:4)|0)|0;c[(Y&p)>>2]=0;c[(Y&p)+4>>2]=0;c[(Y&p)+8>>2]=0;c[(Y&p)+12>>2]=0;c[(Y&p)+16>>2]=0;c[(Y&p)+20>>2]=0;c[(Y&p)+24>>2]=0;c[(Y&p)+28>>2]=0;c[(Y&p)>>2]=e;c[(Y&p)+4>>2]=f;d:do if((c[(g&p)>>2]|0)>0){E=g+4|0;D=ka+4|0;C=la+16|0;F=(s|0)==0;G=ka+36|0;y=0;x=0;H=0;m=0;while(1){if(ls(Y,c[((c[(E&p)>>2]|0)+(H*20|0)&p)>>2]|0)|0)break a;A=b[(ja&o)>>1]|0;e:do if(A<<16>>16>0){v=c[(D&p)>>2]|0;B=c[(E&p)>>2]|0;r=c[(B+(H*20|0)&p)+4>>2]|0;u=0;while(1){z=u+1|0;if(!(dd(c[(v+(u*24|0)&p)>>2]|0,r)|0))break;if((z|0)<(A<<16>>16|0))u=z;else{u=z;r=m;break e}}if((u|0)!=(b[(G&o)>>1]|0)){if(!F)y=(a[(v+(u*24|0)&n)+23>>0]&1)==0?y:1}else{x=1;m=c[(B+(H*20|0)&p)>>2]|0}c[(l+(u<<2)&p)>>2]=H;r=m}else{u=0;r=m}while(0);if((u|0)<(A<<16>>16|0)){m=c[(ka&p)>>2]|0;if((u|0)<0)v=12944;else v=c[((c[(D&p)>>2]|0)+(u*24|0)&p)>>2]|0}else{r=c[(E&p)>>2]|0;m=c[(r+(H*20|0)&p)+4>>2]|0;if(!F)break;if(!($h(m)|0))break;m=c[(ka&p)>>2]|0;v=12944;x=1;u=-1;r=c[(r+(H*20|0)&p)>>2]|0}m=Sq(e,23,m,v,c[((c[(C&p)>>2]|0)+(q<<4)&p)>>2]|0)|0;if((m|0)==2)c[(l+(u<<2)&p)>>2]=-1;else if((m|0)==1)break a;H=H+1|0;if((H|0)>=(c[(g&p)>>2]|0)){R=r;break d}else m=r}c[(T&p)>>2]=m;th(e,34496,T);a[(e&n)+17>>0]=1;break a}else{y=0;x=0;R=0}while(0);X=(y&255)+(x&255)|0;U=X&255;C=f+64|0;c[(C&p)>>2]=0;c[(C&p)+4>>2]=0;X=X&255;C=mt(e,ka,l,X)|0;m=c[(w&p)>>2]|0;if(m){z=(C|X|0)==0;A=e+72|0;B=0;while(1){f:do if(z?!((c[(m&p)+36>>2]|0)!=0|(m|0)==(s|0)):0){r=b[(m&o)+46>>1]|0;if(!(r<<16>>16))ba=56;else{u=c[(m&p)+4>>2]|0;v=0;while(1){if((c[(l+(b[(u+(v<<1)&o)>>1]<<2)&p)>>2]|0)>-1){ba=54;break f}v=v+1|0;if((v|0)>=(r&65535|0)){ba=56;break}}}}else ba=54;while(0);if((ba|0)==54){ba=0;r=(c[(A&p)>>2]|0)+1|0;c[(A&p)>>2]=r;if(!r)ba=56;else u=B+1|0}if((ba|0)==56){ba=0;u=B+1|0;a[(da+u&n)>>0]=0;r=0}c[(l+(B+I<<2)&p)>>2]=r;m=c[(m&p)+20>>2]|0;if(!m)break;else B=u}}V=Oq(e)|0;if(V){W=e+18|0;if(!(a[(W&n)>>0]|0)){S=V+88|0;b[(S&o)>>1]=b[(S&o)>>1]|4}H=e+408|0;S=c[(H&p)>>2]|0;S=(S|0)==0?e:S;Ar(e,q);Q=S+328|0;c[(Q&p)>>2]=c[(Q&p)>>2]|1<>0]=d[(S&n)>>0]|1;if(a[(K&n)>>0]&16){x=c[(e&p)+8>>2]|0;y=c[(e&p)>>2]|0;m=c[(ka&p)+60>>2]|0;g:do if(!m)m=0;else while(1){if((c[(m&p)>>2]|0)==(y|0))break g;m=c[(m&p)+24>>2]|0;if(!m){m=0;break}}while(0);q=lr(e,0,tt(y,27,34536)|0)|0;w=(R|0)!=0;if(w)q=lr(e,q,Mr(y,R,0,0)|0)|0;if((b[(ja&o)>>1]|0)>0){r=g+4|0;t=ka+4|0;u=0;do{s=c[(l+(u<<2)&p)>>2]|0;if((s|0)>-1)s=Mr(y,c[((c[(r&p)>>2]|0)+(s*20|0)&p)>>2]|0,0,0)|0;else s=tt(y,27,c[((c[(t&p)>>2]|0)+(u*24|0)&p)>>2]|0)|0;q=lr(e,q,s)|0;u=u+1|0}while((u|0)<(b[(ja&o)>>1]|0))}t=kr(e,q,f,h,0,0,0,0,0,0)|0;v=c[(_&p)>>2]|0;c[(_&p)>>2]=v+1;f=w&1;wh(x,57,v,(b[(ja&o)>>1]|0)+(w?2:1)|0,0)|0;u=x+4|0;h=c[(u&p)>>2]|0;if(h)a[(h+(((c[(x&p)+32>>2]|0)+-1|0)*20|0)&n)+3>>0]=8;a[(T&n)>>0]=14;c[(T&p)+4>>2]=v;a[(T&n)+1>>0]=0;c[(T&p)+8>>2]=0;c[(T&p)+12>>2]=0;ir(e,t,T)|0;h=e+72|0;s=c[(h&p)>>2]|0;q=s+1|0;da=s+2|0;c[(h&p)>>2]=(b[(ja&o)>>1]|0)+da;h=wh(x,108,v,0,0)|0;wh(x,47,v,0,q)|0;wh(x,47,v,f,da)|0;if((b[(ja&o)>>1]|0)>0){s=s+3|0;r=0;do{da=r;r=r+1|0;wh(x,47,v,r+f|0,s+da|0)|0}while((r|0)<(b[(ja&o)>>1]|0))}qt(e,ka);xh(x,wh(x,15,0,(b[(ja&o)>>1]|0)+2|0,q)|0,m,-10);m=c[(u&p)>>2]|0;if(!m)m=x+32|0;else{da=x+32|0;a[(m+(((c[(da&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=(k|0)==10?2:k&255;m=da}da=c[(H&p)>>2]|0;a[(((da|0)==0?e:da)&n)+21>>0]=1;wh(x,9,v,h+1|0,0)|0;m=c[(m&p)>>2]|0;if(m>>>0>h>>>0)c[((c[(u&p)>>2]|0)+(h*20|0)&p)+8>>2]=m;c[((c[(x&p)+24>>2]|0)&p)+88>>2]=m+-1;wh(x,61,v,0,0)|0;Mk(y,t,1);h=0;f=0;break}H=e+72|0;m=c[(H&p)>>2]|0;G=m+1|0;Q=m+2|0;c[(H&p)>>2]=Q;I=y<<24>>24!=0;J=(ga|0)!=0;P=(C|0)!=0;if(I|J|P){q=(b[(ja&o)>>1]|0)+Q|0;c[(H&p)>>2]=q;L=m+3|0}else{q=Q;L=0}N=(X|0)!=0;if(N|J|P){O=q+1|0;c[(H&p)>>2]=O;q=O}else O=Q;M=q+1|0;c[(H&p)>>2]=(b[(ja&o)>>1]|0)+q;if(ca){S=e+492|0;T=c[(S&p)>>2]|0;c[(S&p)>>2]=c[(ka&p)>>2];lt(e,ka,h,t);S=e}else{S=0;T=0}do if(!(ls(Y,h)|0)){if(!(a[(K&n)>>0]&32)){wh(V,28,0,G,Q)|0;y=Vs(e,f,h,0,0,4,ia)|0;if(!y)break;A=y+60|0;m=c[(A&p)>>2]|0;A=c[(A&p)+4>>2]|0;B=a[(y&n)+38>>0]|0;wh(V,103,t,Q,0)|0;if(!(B<<24>>24))wh(V,128,G,Q,0)|0;Xs(y);D=0;C=0;z=B&255;E=0}else{B=b[(s&o)+46>>1]|0;y=c[(H&p)>>2]|0;u=y+1|0;C=B<<16>>16;y=C+1+y|0;c[(H&p)>>2]=y;D=c[(_&p)>>2]|0;c[(_&p)>>2]=D+1;wh(V,28,0,u,0)|0;q=wh(V,57,D,C,0)|0;v=c[(e&p)+8>>2]|0;xh(v,-1,hs(e,s)|0,-6);v=Vs(e,f,h,0,0,4,ia)|0;if(!v)break;A=v+60|0;m=c[(A&p)>>2]|0;A=c[(A&p)+4>>2]|0;r=a[(v&n)+38>>0]|0;E=r&255;if(B<<16>>16>0){B=s+4|0;z=0;do{nt(V,ka,t,b[((c[(B&p)>>2]|0)+(z<<1)&o)>>1]|0,z+u|0);z=z+1|0}while((z|0)!=(C|0))}if(!(r<<24>>24)){B=ot(V,s)|0;xh(V,wh(V,49,u,C,y)|0,B,C);wh(V,110,D,y,0)|0;B=0}else{zh(V,q);B=C;y=u}Xs(v);C=B;z=E;E=y}K=la+24|0;do if(!(c[(K&p)>>2]&128))v=0;else{if(c[(e&p)+412>>2]|0){v=0;break}v=(c[(H&p)>>2]|0)+1|0;c[(H&p)>>2]=v;wh(V,25,0,v,0)|0}while(0);u=xs(V)|0;if(!ca){h:do if((k|0)==5)fw(da|0,1,Z|0)|0;else{B=c[(w&p)>>2]|0;if(!B)break;while(1){if((a[(B&n)+50>>0]|0)==5)break;B=c[(B&p)+20>>2]|0;if(!B)break h}fw(da|0,1,Z|0)|0}while(0);do if(z){if((m|0)>-1)a[(da+(m-$)&n)>>0]=0;if((A|0)<=-1)break;a[(da+(A-$)&n)>>0]=0}while(0);pt(e,ka,55,$,da,0,0)|0}H=(z|0)!=0;do if(!H)if(!s){G=wh(V,129,G,u,Q)|0;wh(V,70,t,G,Q)|0;F=0;break}else{G=xs(V)|0;wh(V,108,D,u,0)|0;F=wh(V,101,D,E,0)|0;xh(V,wh(V,68,t,G,E)|0,0,-14);break}else{if(!((a[(da+(t-$)&n)>>0]|0)==0|ca))xh(V,wh(V,68,t,u,E)|0,C,-14);wh(V,76,(s|0)!=0?E:Q,u,0)|0;F=0;G=u}while(0);x=x<<24>>24==0;if(!x){Rq(e,R,O);wh(V,38,O,0,0)|0}do if(I|P|J){if(P)y=ut(e,ka)|0;else y=0;B=vt(e,ga,g,0,3,ka,k)|0|y;if((b[(ja&o)>>1]|0)>0){A=(B|0)==-1;z=ka+4|0;y=0;do{do if(A)ba=138;else{if((y|0)<32?(1<>2]|0)+(y*24|0)&n)+23>>0]&1){ba=138;break}wh(V,28,0,y+L|0,0)|0}while(0);if((ba|0)==138){ba=0;nt(V,ka,t,y,y+L|0)}y=y+1|0}while((y|0)<(b[(ja&o)>>1]|0))}if(!(x&(s|0)==0))break;wh(V,33,Q,O,0)|0}while(0);y=vt(e,ga,g,1,1,ka,k)|0;if((b[(ja&o)>>1]|0)>0){x=ka+36|0;m=g+4|0;r=0;do{i:do if((r|0)==(b[(x&o)>>1]|0))wh(V,28,0,r+M|0,0)|0;else{q=c[(l+(r<<2)&p)>>2]|0;if((q|0)>-1){Rq(e,c[((c[(m&p)>>2]|0)+(q*20|0)&p)>>2]|0,r+M|0);break}do if(!((c[(ea&p)>>2]&1|0)==0|(r|0)>31)){if(1<>1]|0))}do if(c[(ea&p)>>2]&1){wt(V,ka,M);xt(e,ga,110,g,1,ka,Q,k,G);if(!s)wh(V,70,t,G,Q)|0;else xh(V,wh(V,68,t,G,E)|0,C,-14);m=b[(ja&o)>>1]|0;if(m<<16>>16<=0)break;x=ka+36|0;y=0;do{do if((c[(l+(y<<2)&p)>>2]|0)<0){if((y|0)==(b[(x&o)>>1]|0))break;nt(V,ka,t,y,y+M|0);m=b[(ja&o)>>1]|0}while(0);y=y+1|0}while((y|0)<(m<<16>>16|0))}while(0);do if(!ca){c[(ha&p)>>2]=0;yt(e,ka,aa,t,ia,O,Q,U,k&255,G,ha);if(P)zt(e,ka,Q,0,l,X);m=(c[(ha&p)>>2]|X|0)==0;do if(!m)if(!s){q=wh(V,70,t,0,Q)|0;break}else{q=wh(V,68,t,0,E)|0;xh(V,q,C,-14);break}else q=0;while(0);At(e,ka,t,ia,aa);if(P|(N|(s|0)!=0))wh(V,95,t,0,0)|0;if(!m){m=c[(V&p)+32>>2]|0;if(m>>>0>q>>>0)c[((c[(V&p)+4>>2]|0)+(q*20|0)&p)+8>>2]=m;c[((c[(V&p)+24>>2]|0)&p)+88>>2]=m+-1}if(P){zt(e,ka,0,O,l,X);Bt(e,ka,t,ia,O,aa,1,0,0);Ct(e,ka,g,Q,l,X);break}else{Bt(e,ka,t,ia,O,aa,1,0,0);break}}while(0);do if(c[(K&p)>>2]&128){if(c[(e&p)+412>>2]|0)break;wh(V,37,v,1,0)|0}while(0);xt(e,ga,110,g,2,ka,Q,k,G);do if(!H){if(!s){wh(V,16,0,G,0)|0;break}r=c[(V&p)+24>>2]|0;q=~G;do if((G|0)<0){s=c[(r&p)+112>>2]|0;if(!s)break;c[(s+(q<<2)&p)>>2]=c[(V&p)+32>>2]}while(0);c[(r&p)+88>>2]=(c[(V&p)+32>>2]|0)+-1;wh(V,9,D,F,0)|0}while(0);r=c[(V&p)+24>>2]|0;q=~u;do if((u|0)<0){s=c[(r&p)+112>>2]|0;if(!s)break;c[(s+(q<<2)&p)>>2]=c[(V&p)+32>>2]}while(0);c[(r&p)+88>>2]=(c[(V&p)+32>>2]|0)+-1;q=c[(w&p)>>2]|0;if(q){r=0;do{s=r;r=r+1|0;if(a[(da+r&n)>>0]|0)wh(V,61,s+ia|0,0,0)|0;q=c[(q&p)+20>>2]|0}while((q|0)!=0)}if((t|0)<(ia|0))wh(V,61,t,0,0)|0;do if(!(a[(W&n)>>0]|0)){if(c[(e&p)+412>>2]|0)break;st(e)}while(0);if(!(c[(K&p)>>2]&128))break;if(c[(e&p)+412>>2]|0)break;if(a[(W&n)>>0]|0)break;wh(V,35,v,1,0)|0;iq(V,1);if(a[((c[(V&p)>>2]|0)&n)+65>>0]|0)break;Xg(c[(V&p)+16>>2]|0,34520,-1,1,0)|0}while(0);if(S)c[(S&p)+492>>2]=T}}}else l=0}else l=0;while(0);mg(la,l);Do(la,f);Nk(la,g);Gk(la,h);i=ma;return}function tr(e,f,g,h,k){e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;var l=0,m=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,ga=0,ha=0,ia=0,ja=0,ka=0,la=0,ma=0,na=0,oa=0;oa=i;i=i+96|0;if((i|0)>=(j|0))fa();ca=oa;ja=oa+92|0;la=oa+88|0;L=oa+68|0;Y=oa+64|0;O=oa+32|0;ba=oa+28|0;c[(ja&p)>>2]=0;c[(la&p)>>2]=0;na=c[(e&p)>>2]|0;c[(L&p)>>2]=0;c[(L&p)+4>>2]=0;c[(L&p)+8>>2]=0;c[(L&p)+12>>2]=0;c[(L&p)+16>>2]=0;a:do if((c[(e&p)+64>>2]|0)==0?(N=na+65|0,(a[(N&n)>>0]|0)==0):0){if(g)if((b[(g&o)+6>>1]&128)!=0?(c[(g&p)+52>>2]|0)==0:0){l=c[(g&p)>>2]|0;c[(g&p)>>2]=0;Mk(na,g,1);g=0}else l=0;else{g=0;l=0}if((c[(f&p)+16>>2]|0)!=0?(ka=Jr(e,f)|0,(ka|0)!=0):0){u=c[(ka&p)+68>>2]|0;b:do if(u){t=c[(na&p)+20>>2]|0;if((t|0)>0){s=c[(na&p)+16>>2]|0;q=0;while(1){r=q+1|0;if((c[(s+(q<<4)&p)+12>>2]|0)==(u|0)){r=q;break b}if((r|0)<(t|0))q=r;else break}}else r=0}else r=-1e6;while(0);if((((Sq(e,18,c[(ka&p)>>2]|0,0,c[((c[(na&p)+16>>2]|0)+(r<<4)&p)>>2]|0)|0)==0?(ga=ka+44|0,Z=(d[(ga&n)>>0]|0)>>>5&1,ea=jt(e,ka,108,0,Y)|0,ha=(c[(ka&p)+12>>2]|0)!=0,(hr(e,ka)|0)==0):0)?(kt(e,ka,c[(Y&p)>>2]|0)|0)==0:0)?(ma=Oq(e)|0,(ma|0)!=0):0){ia=e+18|0;if(!(a[(ia&n)>>0]|0)){da=ma+88|0;b[(da&o)>>1]=b[(da&o)>>1]|4}da=(g|0)!=0;aa=e+408|0;$=c[(aa&p)>>2]|0;$=($|0)==0?e:$;Ar(e,r);X=$+328|0;c[(X&p)>>2]=c[(X&p)>>2]|1<>0]=d[($&n)>>0]|(da|(ea|0)!=0)&1;$=(h|0)==0;c:do if((((!((g|0)==0|$^1)?(c[(e&p)+532>>2]|0)==0:0)?(c[(g&p)+68>>2]|0)==0:0)?(As(e,ka)|0)==0:0)?(a[(ga&n)>>0]&16)==0:0){if((k|0)==10){if((b[(ka&o)+36>>1]|0)>-1)u=d[(ka&n)+45>>0]|0;else u=10;y=(u|0)==10?2:u}else y=k;t=c[(g&p)+32>>2]|0;if((c[(t&p)>>2]|0)==1){if(c[(t&p)+28>>2]|0){_=117;break}if(c[(g&p)+36>>2]|0){_=117;break}if(c[(g&p)+48>>2]|0){_=117;break}if(c[(g&p)+40>>2]|0){_=117;break}if(c[(g&p)+60>>2]|0){_=117;break}if(c[(g&p)+52>>2]|0){_=117;break}if(b[(g&o)+6>>1]&1){_=117;break}u=c[(g&p)>>2]|0;if((c[(u&p)>>2]|0)!=1){_=117;break}if((a[(c[(c[(u&p)+4>>2]&p)>>2]&n)>>0]|0)!=116){_=117;break}x=Ur(e,0,t+8|0)|0;if((x|0)==0|(x|0)==(ka|0)){_=117;break}B=x+44|0;X=d[(B&n)>>0]|0;if(!((X&16|0)==0?(((d[(ga&n)>>0]|0)>>>5&1^1)&255|0)==(X>>>5&1^1|0):0)){_=117;break}if(c[(x&p)+12>>2]|0){_=117;break}v=b[(ka&o)+38>>1]|0;if(v<<16>>16!=(b[(x&o)+38>>1]|0)){_=117;break}A=ka+36|0;if((b[(A&o)>>1]|0)!=(b[(x&o)+36>>1]|0)){_=117;break}if(v<<16>>16>0){q=c[(ka&p)+4>>2]|0;m=c[(x&p)+4>>2]|0;w=0;do{if((a[(q+(w*24|0)&n)+21>>0]|0)!=(a[(m+(w*24|0)&n)+21>>0]|0)){_=117;break c}u=c[(q+(w*24|0)&p)+16>>2]|0;t=c[(m+(w*24|0)&p)+16>>2]|0;s=(t|0)==0;if(!u){if(!s){_=117;break c}}else{if(s){_=117;break c}if(dd(u,t)|0){_=117;break c}}if((a[(q+(w*24|0)&n)+20>>0]|0)!=0?(a[(m+(w*24|0)&n)+20>>0]|0)==0:0){_=117;break c}do if((w|0)>0){u=c[(q+(w*24|0)&p)+8>>2]|0;t=(u|0)==0;s=c[(m+(w*24|0)&p)+8>>2]|0;if(t^(s|0)==0){_=117;break c}if(t)break;if(_v(u,s)|0){_=117;break c}}while(0);w=w+1|0}while((w|0)<(v<<16>>16|0))}E=ka+8|0;u=c[(E&p)>>2]|0;if(!u)t=0;else{v=c[(x&p)+8>>2]|0;if(!v){_=117;break}else t=0;do{t=(a[(u&n)+50>>0]|0)==0?t:1;s=v;while(1){if(Dt(u,s)|0)break;s=c[(s&p)+20>>2]|0;if(!s){_=117;break c}}if(!s){_=117;break c}u=c[(u&p)+20>>2]|0}while((u|0)!=0)}u=c[(ka&p)+24>>2]|0;if((u|0)!=0?(Ts(c[(x&p)+24>>2]|0,u,-1)|0)!=0:0){_=117;break}s=c[(e&p)>>2]|0;u=c[(s&p)+24>>2]|0;if(!(u&524288)){if(u&128){_=117;break}}else if(!((c[(ka&p)+16>>2]|0)==0&(u&128|0)==0)){_=117;break}m=c[(x&p)+68>>2]|0;d:do if(!m)s=-1e6;else{v=c[(s&p)+20>>2]|0;if((v|0)<=0){s=0;break}u=c[(s&p)+16>>2]|0;q=0;while(1){s=q+1|0;if((c[(u+(q<<4)&p)+12>>2]|0)==(m|0)){s=q;break d}if((s|0)<(v|0))q=s;else break}}while(0);D=Oq(e)|0;Ar(e,s);z=e+68|0;F=c[(z&p)>>2]|0;C=F+1|0;c[(z&p)>>2]=F+2;z=Et(e,r,ka)|0;v=e+19|0;q=a[(v&n)>>0]|0;do if(!(q<<24>>24)){_=e+72|0;u=(c[(_&p)>>2]|0)+1|0;c[(_&p)>>2]=u;_=78}else{X=q+-1<<24>>24;a[(v&n)>>0]=X;u=c[(e+((X&255)<<2)&p)+24>>2]|0;if(!(X<<24>>24)){_=78;break}G=q+-2<<24>>24;a[(v&n)>>0]=G;H=u;G=c[(e+((G&255)<<2)&p)+24>>2]|0}while(0);if((_|0)==78){H=e+72|0;G=(c[(H&p)>>2]|0)+1|0;c[(H&p)>>2]=G;H=u}Qq(e,C,r,ka,55);if((b[(A&o)>>1]|0)<0)if((c[(E&p)>>2]|0)!=0|(t|0)!=0|(y+-1|0)>>>0>1)_=83;else I=0;else if((t|0)!=0|(y+-1|0)>>>0>1)_=83;else I=0;if((_|0)==83){w=wh(D,108,C,0,0)|0;v=wh(D,16,0,0,0)|0;u=c[(D&p)+32>>2]|0;if(u>>>0>w>>>0)c[((c[(D&p)+4>>2]|0)+(w*20|0)&p)+8>>2]=u;c[((c[(D&p)+24>>2]|0)&p)+88>>2]=u+-1;I=v}if(!(a[(B&n)>>0]&32)){Qq(e,F,s,x,54);t=wh(D,108,F,0,0)|0;do if((b[(A&o)>>1]|0)<=-1)if(!(c[(E&p)>>2]|0)){u=wh(D,74,C,G,0)|0;break}else{u=wh(D,103,F,G,0)|0;break}else{u=wh(D,103,F,G,0)|0;w=wh(D,70,C,0,G)|0;Ft(e,y,ka);v=c[(D&p)+32>>2]|0;if(v>>>0>w>>>0)c[((c[(D&p)+4>>2]|0)+(w*20|0)&p)+8>>2]=v;c[((c[(D&p)+24>>2]|0)&p)+88>>2]=v+-1;if((z|0)<=0)break;wh(c[(e&p)+8>>2]|0,136,z,G,0)|0}while(0);wh(D,102,F,H,0)|0;wh(D,75,C,H,G)|0;v=c[(D&p)+4>>2]|0;if(v)a[(v+(((c[(D&p)+32>>2]|0)+-1|0)*20|0)&n)+3>>0]=11;xh(D,-1,c[(ka&p)>>2]|0,0);wh(D,9,F,u,0)|0;wh(D,61,F,0,0)|0;wh(D,61,C,0,0)|0}else{gs(e,r,c[(ka&p)+32>>2]|0,1,c[(ka&p)>>2]|0);gs(e,s,c[(x&p)+32>>2]|0,0,c[(x&p)>>2]|0);t=0}w=c[(E&p)>>2]|0;if(w){q=x+8|0;m=e+8|0;x=D+4|0;y=D+32|0;z=D+24|0;u=w;do{w=q;while(1){w=c[(w&p)>>2]|0;if(Dt(u,w)|0)break;w=w+20|0}wh(D,54,F,c[(w&p)+40>>2]|0,s)|0;X=c[(m&p)>>2]|0;xh(X,-1,hs(e,w)|0,-6);wh(D,55,C,c[(u&p)+40>>2]|0,r)|0;w=c[(m&p)>>2]|0;xh(w,-1,hs(e,u)|0,-6);w=c[(x&p)>>2]|0;if(w)a[(w+(((c[(y&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=1;w=wh(D,108,F,0,0)|0;wh(D,101,F,H,0)|0;wh(D,110,C,H,1)|0;wh(D,9,F,w+1|0,0)|0;v=c[(y&p)>>2]|0;if(v>>>0>w>>>0)c[((c[(x&p)>>2]|0)+(w*20|0)&p)+8>>2]=v;c[((c[(z&p)>>2]|0)&p)+88>>2]=v+-1;wh(D,61,F,0,0)|0;wh(D,61,C,0,0)|0;u=c[(u&p)+20>>2]|0}while((u|0)!=0)}if(t){u=c[(D&p)+32>>2]|0;if(u>>>0>t>>>0)c[((c[(D&p)+4>>2]|0)+(t*20|0)&p)+8>>2]=u;c[((c[(D&p)+24>>2]|0)&p)+88>>2]=u+-1}_r(e,G);_r(e,H);if(!I){m=0;q=0;break}wh(D,24,0,0,0)|0;u=c[(D&p)+32>>2]|0;if(u>>>0>I>>>0)c[((c[(D&p)+4>>2]|0)+(I*20|0)&p)+8>>2]=u;c[((c[(D&p)+24>>2]|0)&p)+88>>2]=u+-1;wh(D,61,C,0,0)|0;_=117}else _=117}else _=117;while(0);do if((_|0)==117){S=Et(e,r,ka)|0;R=e+72|0;t=c[(R&p)>>2]|0;W=t+1|0;X=ka+38|0;I=b[(X&o)>>1]|0;H=I<<16>>16;u=W+H|0;c[(R&p)>>2]=u;if(!(a[(ga&n)>>0]&16))V=W;else{u=u+1|0;c[(R&p)>>2]=u;V=t+2|0}T=V+1|0;U=(h|0)!=0;e:do if(U?(P=c[(h&p)+4>>2]|0,Q=(P|0)>0,Q):0){v=c[(h&p)>>2]|0;t=0;do{c[(v+(t<<3)&p)+4>>2]=-1;t=t+1|0}while((t|0)<(P|0));if(Q){D=Z<<24>>24!=0;C=ka+4|0;B=ka+36|0;t=1;A=0;v=-1;while(1){f:do if(I<<16>>16>0){z=c[(h&p)>>2]|0;s=c[(z+(A<<3)&p)>>2]|0;q=c[(C&p)>>2]|0;m=0;while(1){w=m+1|0;if(!(dd(s,c[(q+(m*24|0)&p)>>2]|0)|0)){w=m;break}if((w|0)<(H|0))m=w;else break f}c[(z+(A<<3)&p)+4>>2]=w;t=(A|0)==(w|0)?t:0;v=(w|0)==(b[(B&o)>>1]|0)?A:v}else w=0;while(0);if((w|0)>=(H|0)){m=c[((c[(h&p)>>2]|0)+(A<<3)&p)>>2]|0;if(($h(m)|0)==0|D)break;else{t=0;w=A}}else w=v;A=A+1|0;if((A|0)>=(P|0)){E=w;break e}else v=w}c[(ca&p)>>2]=f;c[(ca&p)+4>>2]=0;c[(ca&p)+8>>2]=m;th(e,33368,ca);a[(e&n)+17>>0]=1;m=0;break a}else{t=1;E=-1}}else{t=1;E=-1}while(0);g:do if(!da){c[(O&p)>>2]=0;c[(O&p)+4>>2]=0;c[(O&p)+8>>2]=0;c[(O&p)+12>>2]=0;c[(O&p)+16>>2]=0;c[(O&p)+20>>2]=0;c[(O&p)+24>>2]=0;c[(O&p)+28>>2]=0;c[(O&p)>>2]=e;if(l){s=c[(l&p)>>2]|0;if((s|0)>0){u=l+4|0;t=0;while(1){if(ls(O,c[((c[(u&p)>>2]|0)+(t*20|0)&p)>>2]|0)|0){g=0;m=0;break a}t=t+1|0;if((t|0)>=(s|0)){u=0;t=-1;r=0;_=169;break}}}else{P=E;O=0;Q=-1;z=0}}else{P=E;s=0;O=0;Q=-1;z=0}}else{u=u+1|0;c[(R&p)>>2]=u;G=ma+32|0;v=c[(G&p)>>2]|0;wh(ma,20,u,0,v+1|0)|0;a[(L&n)>>0]=13;H=L+4|0;c[(H&p)>>2]=u;a[(L&n)+1>>0]=0;F=L+8|0;c[(F&p)>>2]=t<<24>>24!=0?T:0;c[(L&p)+12>>2]=b[(X&o)>>1];Q=ir(e,g,L)|0;F=c[(F&p)>>2]|0;if(Q){m=0;break a}if(a[(N&n)>>0]|0){m=0;break a}wh(ma,21,u,0,0)|0;u=c[(G&p)>>2]|0;if(u>>>0>v>>>0)c[((c[(ma&p)+4>>2]|0)+(v*20|0)&p)+8>>2]=u;I=ma+24|0;c[((c[(I&p)>>2]|0)&p)+88>>2]=u+-1;s=c[(c[(g&p)>>2]&p)>>2]|0;h:do if(!ea){w=Oq(e)|0;t=c[(w&p)+32>>2]|0;i:do if(!(a[(ga&n)>>0]&16))v=0;else{u=c[(e&p)>>2]|0;v=c[(ka&p)+60>>2]|0;if(!v){v=0;break}while(1){if((c[(v&p)>>2]|0)==(u|0))break i;v=c[(v&p)+24>>2]|0;if(!v){v=0;break}}}while(0);if((t|0)<=1){u=F;t=0;r=0;_=169;break g}q=(a[((c[(w&p)>>2]|0)&n)+65>>0]|0)==0;z=w+4|0;y=ka+32|0;x=ka+8|0;m=1;while(1){if(q)w=(c[(z&p)>>2]|0)+(m*20|0)|0;else w=29120;u=a[(w&n)>>0]|0;do if(u<<24>>24==54){if((c[(w&p)+12>>2]|0)!=(r|0))break;u=c[(w&p)+8>>2]|0;if((u|0)==(c[(y&p)>>2]|0))break h;w=c[(x&p)>>2]|0;if(!w)break;do{if((u|0)==(c[(w&p)+40>>2]|0))break h;w=c[(w&p)+20>>2]|0}while((w|0)!=0)}else if(u<<24>>24==-107?(c[(w&p)+16>>2]|0)==(v|0):0)break h;while(0);m=m+1|0;if((m|0)>=(t|0)){u=F;t=0;r=0;_=169;break g}}}while(0);v=e+68|0;w=c[(v&p)>>2]|0;c[(v&p)>>2]=w+1;v=e+19|0;t=a[(v&n)>>0]|0;do if(!(t<<24>>24)){u=(c[(R&p)>>2]|0)+1|0;c[(R&p)>>2]=u;_=159}else{Q=t+-1<<24>>24;a[(v&n)>>0]=Q;u=c[(e+((Q&255)<<2)&p)+24>>2]|0;if(!(Q<<24>>24)){_=159;break}Q=t+-2<<24>>24;a[(v&n)>>0]=Q;v=c[(e+((Q&255)<<2)&p)+24>>2]|0}while(0);if((_|0)==159){v=(c[(R&p)>>2]|0)+1|0;c[(R&p)>>2]=v}wh(ma,57,w,s,0)|0;r=wh(ma,22,c[(H&p)>>2]|0,0,0)|0;wh(ma,49,F,s,u)|0;wh(ma,74,w,v,0)|0;wh(ma,75,w,u,v)|0;wh(ma,16,0,r,0)|0;t=c[(G&p)>>2]|0;if(t>>>0>r>>>0)c[((c[(ma&p)+4>>2]|0)+(r*20|0)&p)+8>>2]=t;c[((c[(I&p)>>2]|0)&p)+88>>2]=t+-1;_r(e,u);_r(e,v);u=F;t=w;r=1;_=169}while(0);if((_|0)==169)if($&(s|0)>0){P=b[(ka&o)+36>>1]|0;O=u;Q=t;z=r}else{P=E;O=u;Q=t;z=r}if((a[(ga&n)>>0]&16)!=0?(M=b[(X&o)>>1]|0,M<<16>>16>0):0){v=c[(ka&p)+4>>2]|0;t=M<<16>>16;r=0;u=0;do{u=((d[(v+(r*24|0)&n)+23>>0]|0)>>>1&1)+u|0;r=r+1|0}while((r|0)<(t|0))}else u=0;do if($&(s|0)!=0){u=(b[(X&o)>>1]|0)-u|0;if((s|0)==(u|0))break;c[(ca&p)>>2]=f;c[(ca&p)+4>>2]=0;c[(ca&p)+8>>2]=u;c[(ca&p)+12>>2]=s;th(e,33400,ca);m=0;break a}while(0);do if(U){u=c[(h&p)+4>>2]|0;if((s|0)==(u|0))break;c[(ca&p)>>2]=s;c[(ca&p)+4>>2]=u;th(e,33456,ca);m=0;break a}while(0);K=na+24|0;if(!(c[(K&p)>>2]&128))q=0;else{q=(c[(R&p)>>2]|0)+1|0;c[(R&p)>>2]=q;wh(ma,25,0,q,0)|0}do if(ha)m=0;else{u=pt(e,ka,55,-1,0,ja,la)|0;m=mh(na,(u<<2)+4|0,0)|0;if(!m)break a;if((u|0)>0)t=0;else break;do{N=(c[(R&p)>>2]|0)+1|0;c[(R&p)>>2]=N;c[(m+(t<<2)&p)>>2]=N;t=t+1|0}while((t|0)!=(u|0))}while(0);M=z<<24>>24!=0;do if(M){N=wh(ma,108,Q,0,0)|0;L=c[(ma&p)+32>>2]|0}else{if(!da){L=0;N=0;break}N=wh(ma,22,c[(L&p)+4>>2]|0,0,0)|0;L=N}while(0);J=xs(ma)|0;do if(c[(Y&p)>>2]&1){w=(b[(X&o)>>1]|0)+1|0;H=e+60|0;v=c[(H&p)>>2]|0;G=e+56|0;u=c[(G&p)>>2]|0;if((u|0)<(w|0)){I=c[(R&p)>>2]|0;c[(R&p)>>2]=I+w;I=I+1|0}else{c[(H&p)>>2]=w+v;c[(G&p)>>2]=u-w;I=v}if((P|0)<0)wh(ma,25,-1,I,0)|0;else{if(M)wh(ma,47,Q,P,I)|0;else Rq(e,c[((c[(l&p)+4>>2]|0)+(P*20|0)&p)>>2]|0,I);w=wh(ma,77,I,0,0)|0;wh(ma,25,-1,I,0)|0;v=c[(ma&p)+32>>2]|0;if(v>>>0>w>>>0)c[((c[(ma&p)+4>>2]|0)+(w*20|0)&p)+8>>2]=v;c[((c[(ma&p)+24>>2]|0)&p)+88>>2]=v+-1;wh(ma,38,I,0,0)|0}v=b[(X&o)>>1]|0;if(v<<16>>16>0){D=M|(l|0)!=0;t=h+4|0;u=I+1|0;w=l+4|0;A=e+8|0;B=ka+4|0;C=0;do{j:do if($)z=C;else{y=c[(t&p)>>2]|0;if((y|0)<=0){z=0;break}x=c[(h&p)>>2]|0;r=0;while(1){z=r+1|0;if((c[(x+(r<<3)&p)+4>>2]|0)==(C|0)){z=r;break j}if((z|0)<(y|0))r=z;else break}}while(0);do if(D){if(U?(z|0)>=(c[(t&p)>>2]|0):0){_=213;break}if(M){wh(ma,47,Q,z,u+C|0)|0;break}else{Y=c[((c[(w&p)>>2]|0)+(z*20|0)&p)>>2]|0;r=u+C|0;x=c[(A&p)>>2]|0;Rq(e,Y,r);v=(c[(R&p)>>2]|0)+1|0;c[(R&p)>>2]=v;wh(x,33,r,v,0)|0;a[(Y&n)+38>>0]=a[(Y&n)>>0]|0;a[(Y&n)>>0]=-97;c[(Y&p)+28>>2]=v;Y=Y+4|0;c[(Y&p)>>2]=c[(Y&p)>>2]&-4097;break}}else _=213;while(0);if((_|0)==213){_=0;Rq(e,c[((c[(B&p)>>2]|0)+(C*24|0)&p)+4>>2]|0,u+C|0)}C=C+1|0;v=b[(X&o)>>1]|0}while((C|0)<(v<<16>>16|0))}if(!ha){wt(ma,ka,I+1|0);v=b[(X&o)>>1]|0}xt(e,ea,108,0,1,ka,I+-1-(v<<16>>16)|0,k,J);v=(b[(X&o)>>1]|0)+1|0;dt(e,I,v);if((c[(G&p)>>2]|0)>=(v|0))break;c[(G&p)>>2]=v;c[(H&p)>>2]=I}while(0);do if(!ha){if(a[(ga&n)>>0]&16)wh(ma,28,0,W,0)|0;k:do if((P|0)<=-1)if(!((a[(ga&n)>>0]&16|Z)<<24>>24)){wh(ma,74,c[(ja&p)>>2]|0,V,S)|0;I=1;break}else{wh(ma,28,0,V,0)|0;I=0;break}else{do if(M)wh(ma,47,Q,P,V)|0;else{if(da){wh(ma,33,P+O|0,V,0)|0;break}Rq(e,c[((c[(l&p)+4>>2]|0)+(P*20|0)&p)>>2]|0,V);if(!(a[((c[(ma&p)>>2]|0)&n)+65>>0]|0)){u=(c[(ma&p)+4>>2]|0)+(((c[(ma&p)+32>>2]|0)+-1|0)*20|0)|0;if(!u)break}else u=29120;if((a[(u&n)>>0]|0)!=28)break;if(a[(ga&n)>>0]&16)break;a[(u&n)>>0]=74;c[(u&p)+4>>2]=c[(ja&p)>>2];c[(u&p)+8>>2]=V;c[(u&p)+12>>2]=S;I=1;break k}while(0);if(!(a[(ga&n)>>0]&16)){u=wh(ma,77,V,0,0)|0;wh(ma,74,c[(ja&p)>>2]|0,V,S)|0;t=c[(ma&p)+32>>2]|0;if(t>>>0>u>>>0)c[((c[(ma&p)+4>>2]|0)+(u*20|0)&p)+8>>2]=t;c[((c[(ma&p)+24>>2]|0)&p)+88>>2]=t+-1}else wh(ma,76,V,(c[(ma&p)+32>>2]|0)+2|0,0)|0;wh(ma,38,V,0,0)|0;I=0}while(0);if((S|0)>0)wh(c[(e&p)+8>>2]|0,136,S,V,0)|0;if((b[(X&o)>>1]|0)>0){G=ka+36|0;H=ka+4|0;C=(s|0)==0;B=h+4|0;A=(O|0)==(T|0);s=l+4|0;t=e+23|0;u=ca+20|0;v=ca+4|0;E=ca+24|0;F=0;w=0;do{D=F+T|0;l:do if((F|0)==(b[(G&o)>>1]|0))wh(ma,29,D,0,0)|0;else{m:do if($)if(!(a[((c[(H&p)>>2]|0)+(F*24|0)&n)+23>>0]&2)){z=F-w|0;_=258;break}else{w=w+1|0;break}else{y=c[(B&p)>>2]|0;if((y|0)<=0){z=0;_=258;break}x=c[(h&p)>>2]|0;r=0;while(1){z=r+1|0;if((c[(x+(r<<3)&p)+4>>2]|0)==(F|0)){z=r;_=258;break m}if((z|0)<(y|0))r=z;else{_=258;break}}}while(0);do if((_|0)==258){_=0;if((z|0)<0|C)break;if(U?(z|0)>=(c[(B&p)>>2]|0):0)break;if(M){wh(ma,47,Q,z,D)|0;break l}if(!da){Rq(e,c[((c[(s&p)>>2]|0)+(z*20|0)&p)>>2]|0,D);break l}if(A)break l;wh(ma,34,z+O|0,D,0)|0;break l}while(0);z=c[((c[(H&p)>>2]|0)+(F*24|0)&p)+4>>2]|0;do if(a[(t&n)>>0]|0){c[(ca&p)>>2]=0;c[(ca&p)+4>>2]=0;c[(ca&p)+8>>2]=0;c[(ca&p)+12>>2]=0;c[(ca&p)+16>>2]=0;c[(ca&p)+20>>2]=0;a[(u&n)>>0]=1;c[(ca&p)>>2]=78;c[(v&p)>>2]=79;c[(E&p)>>2]=0;rs(ca,z)|0;if(!(a[(u&n)>>0]|0))break;Gt(e,z,D,0);break l}while(0);Rq(e,z,D)}while(0);F=F+1|0}while((F|0)<(b[(X&o)>>1]|0))}if(!(a[(ga&n)>>0]&16)){yt(e,ka,m,c[(ja&p)>>2]|0,c[(la&p)>>2]|0,W,0,P>>>31&255^1,k&255,J,ba);zt(e,ka,0,W,0,0);Bt(e,ka,c[(ja&p)>>2]|0,c[(la&p)>>2]|0,W,m,0,I,(c[(ba&p)>>2]|0)==0&1);break}u=c[(ka&p)+60>>2]|0;n:do if(!u)u=0;else while(1){if((c[(u&p)>>2]|0)==(na|0))break n;u=c[(u&p)+24>>2]|0;if(!u){u=0;break}}while(0);qt(e,ka);xh(ma,wh(ma,15,1,(b[(X&o)>>1]|0)+2|0,W)|0,u,-10);t=c[(ma&p)+4>>2]|0;if(t)a[(t+(((c[(ma&p)+32>>2]|0)+-1|0)*20|0)&n)+3>>0]=(k|0)==10?2:k&255;ca=c[(aa&p)>>2]|0;a[(((ca|0)==0?e:ca)&n)+21>>0]=1}while(0);if(c[(K&p)>>2]&128)wh(ma,37,q,1,0)|0;if(ea)xt(e,ea,108,0,2,ka,V+-1-(b[(X&o)>>1]|0)|0,k,J);u=ma+24|0;t=c[(u&p)>>2]|0;r=~J;do if((J|0)<0){s=c[(t&p)+112>>2]|0;if(!s)break;c[(s+(r<<2)&p)>>2]=c[(ma&p)+32>>2]}while(0);s=ma+32|0;c[(t&p)+88>>2]=(c[(s&p)>>2]|0)+-1;do if(M){wh(ma,9,Q,L,0)|0;s=c[(s&p)>>2]|0;if(s>>>0>N>>>0)c[((c[(ma&p)+4>>2]|0)+(N*20|0)&p)+8>>2]=s;c[((c[(u&p)>>2]|0)&p)+88>>2]=s+-1;wh(ma,61,Q,0,0)|0}else{if(!da)break;wh(ma,16,0,L,0)|0;s=c[(s&p)>>2]|0;if(s>>>0>N>>>0)c[((c[(ma&p)+4>>2]|0)+(N*20|0)&p)+8>>2]=s;c[((c[(u&p)>>2]|0)&p)+88>>2]=s+-1}while(0);if((a[(ga&n)>>0]&16)!=0|ha)break;r=c[(ja&p)>>2]|0;if((r|0)<(c[(la&p)>>2]|0))wh(ma,61,r,0,0)|0;r=c[(ka&p)+8>>2]|0;if(!r)break;else s=0;while(1){wh(ma,61,(c[(la&p)>>2]|0)+s|0,0,0)|0;r=c[(r&p)+20>>2]|0;if(!r)break;else s=s+1|0}}while(0);if((a[(ia&n)>>0]|0)==0?(c[(e&p)+412>>2]|0)==0:0)st(e);if((((c[(na&p)+24>>2]&128|0)!=0?(a[(ia&n)>>0]|0)==0:0)?(c[(e&p)+412>>2]|0)==0:0)?(wh(ma,35,q,1,0)|0,iq(ma,1),(a[((c[(ma&p)>>2]|0)&n)+65>>0]|0)==0):0)Xg(c[(ma&p)+16>>2]|0,33488,-1,1,0)|0}else m=0}else m=0}else{m=0;l=0}while(0);Do(na,f);Nk(na,l);Mk(na,g,1);Hk(na,h);mg(na,m);i=oa;return}function ur(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0;h=i;i=i+16|0;if((i|0)>=(j|0))fa();f=h;if(!d){d=mh(b,8,0)|0;if(!d)d=0;else{g=d;k=g;a[(k&n)>>0]=0;a[(k&n)+1>>0]=0;a[(k&n)+2>>0]=0;a[(k&n)+3>>0]=0;g=g+4|0;a[(g&n)>>0]=0;a[(g&n)+1>>0]=0;a[(g&n)+2>>0]=0;a[(g&n)+3>>0]=0;g=4}}else g=4;do if((g|0)==4){c[(d&p)>>2]=Ht(b,c[(d&p)>>2]|0,8,d+4|0,f)|0;f=c[(f&p)>>2]|0;if((f|0)<0){Hk(b,d);d=0;break}else{b=Wq(b,e)|0;c[((c[(d&p)>>2]|0)+(f<<3)&p)>>2]=b;break}}while(0);i=h;return d|0}function vr(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0;if((c[(d&p)+4>>2]|0)!=0?(f=nr(c[(a&p)>>2]|0,95,d,e)|0,(f|0)!=0):0){c[(f&p)+12>>2]=b;b=f+4|0;c[(b&p)>>2]=c[(b&p)>>2]|4352;b=f}return b|0}function wr(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;e=c[(a&p)>>2]|0;d=nr(e,153,d,1)|0;if(!d){Nk(e,b);d=0}else{c[(d&p)+20>>2]=b;yr(a,d)}return d|0}function xr(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;b=c[(b&p)>>2]|0;if((d|0)!=0&(e|0)!=0?(a[(d&n)>>0]|0)==101:0){a[(e&n)>>0]=f;f=e+16|0;Gk(b,c[(f&p)>>2]|0);c[(f&p)>>2]=0}return}function yr(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;f=i;i=i+16|0;if((i|0)>=(j|0))fa();e=f;if((c[(a&p)+64>>2]|0)==0?(It(b),d=c[((c[(a&p)>>2]|0)&p)+100>>2]|0,(d|0)<(c[(b&p)+24>>2]|0)):0){c[(e&p)>>2]=d;th(a,27152,e)}i=f;return}function zr(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,i=0;d=c[(a&p)>>2]|0;i=d+20|0;e=c[(i&p)>>2]|0;if((e|0)>0){g=d+16|0;h=(b|0)==0;d=e;f=0;do{e=c[(g&p)>>2]|0;do if(c[(e+(f<<4)&p)+4>>2]|0){if(!h?(dd(b,c[(e+(f<<4)&p)>>2]|0)|0)!=0:0)break;Ar(a,f);d=c[(i&p)>>2]|0}while(0);f=f+1|0}while((f|0)<(d|0))}return}function Ar(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;f=c[(a&p)+408>>2]|0;f=(f|0)==0?a:f;a=f+332|0;d=c[(a&p)>>2]|0;e=1<>2]|0,c[(a&p)>>2]=d|e,c[(f+(b<<2)&p)+336>>2]=c[(c[((c[(g&p)+16>>2]|0)+(b<<4)&p)+12>>2]&p)>>2],(b|0)==1):0)_k(f)|0;return}function Br(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,o=0,q=0;q=i;i=i+128|0;if((i|0)>=(j|0))fa();f=q+8|0;o=q;m=q+24|0;c[(o&p)>>2]=0;k=c[(b&p)>>2]|0;if((c[(b&p)+64>>2]|0)==0?(c[(f&p)>>2]=e,l=Wk(k,d,f)|0,(l|0)!=0):0){d=b+18|0;a[(d&n)>>0]=(a[(d&n)>>0]|0)+1<<24>>24;e=b+440|0;f=m+0|0;g=e+0|0;h=f+96|0;do{a[(f&n)>>0]=a[(g&n)>>0]|0;f=f+1|0;g=g+1|0}while((f|0)<(h|0));f=e+0|0;h=f+96|0;do{c[(f&p)>>2]=0;f=f+4|0}while((f|0)<(h|0));Lh(b,l,o)|0;mg(k,c[(o&p)>>2]|0);mg(k,l);f=e+0|0;g=m+0|0;h=f+96|0;do{a[(f&n)>>0]=a[(g&n)>>0]|0;f=f+1|0;g=g+1|0}while((f|0)<(h|0));a[(d&n)>>0]=(a[(d&n)>>0]|0)+-1<<24>>24}i=q;return}function Cr(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0;k=i;i=i+48|0;if((i|0)>=(j|0))fa();g=k;h=k+16|0;b=c[((c[((c[(a&p)>>2]|0)&p)+16>>2]|0)+(b<<4)&p)>>2]|0;f=1;do{c[(g&p)>>2]=f;ad(24,h,33272,g)|0;if(_h(c[(a&p)>>2]|0,h,b)|0){c[(g&p)>>2]=b;c[(g&p)+4>>2]=h;c[(g&p)+8>>2]=d;c[(g&p)+12>>2]=e;Br(a,28840,g)}f=f+1|0}while((f|0)!=5);i=k;return}function Dr(b,d){b=b|0;d=d|0;var e=0,f=0;e=b+19|0;f=a[(e&n)>>0]|0;if(!(f<<24>>24)){f=b+72|0;e=(c[(f&p)>>2]|0)+1|0;c[(f&p)>>2]=e}else{f=f+-1<<24>>24;a[(e&n)>>0]=f;e=c[(b+((f&255)<<2)&p)+24>>2]|0}f=c[(b&p)+8>>2]|0;wh(f,25,(c[(c[((c[((c[(b&p)>>2]|0)&p)+16>>2]|0)+(d<<4)&p)+12>>2]&p)>>2]|0)+1|0,e,0)|0;wh(f,52,d,1,e)|0;_r(b,e);return}function Er(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0;l=i;i=i+32|0;if((i|0)>=(j|0))fa();k=l;h=Oq(b)|0;f=b+19|0;g=a[(f&n)>>0]|0;if(!(g<<24>>24)){g=b+72|0;f=(c[(g&p)>>2]|0)+1|0;c[(g&p)>>2]=f}else{g=g+-1<<24>>24;a[(f&n)>>0]=g;f=c[(b+((g&255)<<2)&p)+24>>2]|0}wh(h,117,d,f,e)|0;g=c[(b&p)+408>>2]|0;a[(((g|0)==0?b:g)&n)+21>>0]=1;c[(k&p)>>2]=c[((c[((c[(b&p)>>2]|0)&p)+16>>2]|0)+(e<<4)&p)>>2];c[(k&p)+4>>2]=(e|0)==1?13184:13208;c[(k&p)+8>>2]=d;c[(k&p)+12>>2]=f;c[(k&p)+16>>2]=f;Br(b,33216,k);_r(b,f);i=l;return}function Fr(f,g,h,k,l){f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;var m=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;X=i;i=i+96|0;if((i|0)>=(j|0))fa();G=X+24|0;w=X+80|0;q=X+64|0;A=X+16|0;t=X+60|0;u=X+56|0;O=X+52|0;N=X+48|0;z=X+44|0;D=X+40|0;E=X+36|0;F=X+32|0;x=X+8|0;s=X;W=c[(f&p)>>2]|0;T=Oq(f)|0;do if((T|0)!=0?(S=T+88|0,b[(S&o)>>1]=b[(S&o)>>1]|16,S=f+72|0,c[(S&p)>>2]=2,Q=er(f,g,h,w)|0,(Q|0)>=0):0){R=W+16|0;C=c[(R&p)>>2]|0;if((Q|0)==1?(_k(f)|0)!=0:0)break;V=Wq(W,c[(w&p)>>2]|0)|0;if(V){if(!l)U=Wq(W,k)|0;else{c[(G&p)>>2]=k;U=uh(W,30104,G)|0}B=h+4|0;if(!(c[(B&p)>>2]|0))L=0;else L=c[(C+(Q<<4)&p)>>2]|0;a:do if(!(Sq(f,19,V,U,L)|0)){c[(q&p)>>2]=0;c[(q&p)+4>>2]=V;c[(q&p)+8>>2]=U;c[(q&p)+12>>2]=0;r=W+452|0;c[(r&p)>>2]=0;g=cg(W,L,14,q)|0;if(!g){k=c[(q&p)>>2]|0;if(!k)break;m=(c[(S&p)>>2]|0)+1|0;c[(S&p)>>2]=m;xh(T,wh(T,97,0,m,0)|0,k,0);iq(T,1);if(!(a[((c[(T&p)>>2]|0)&n)+65>>0]|0))Xg(c[(T&p)+16>>2]|0,30112,-1,1,0)|0;wh(T,35,m,1,0)|0;Wc(c[(q&p)>>2]|0);break}else if((g|0)==12){w=0;q=56;b:while(1){while(1){l=(w+q|0)/2|0;g=c[((l*12|0)&p)+30120>>2]|0;k=dd(V,g)|0;if(!k){w=l;break b}if((k|0)<0){g=l;break}if((l|0)<(q|0))w=l+1|0;else break a}g=g+-1|0;if((w|0)>(g|0))break a;else q=g}if((a[((w*12|0)&n)+30125>>0]&1)!=0?(Gn(f)|0)!=0:0)break;do switch(d[((w*12|0)&n)+30124>>0]|0){case 10:{q=1<>2]=c[(F&p)>>2]|q;if(U){c[(G&p)>>2]=0;Dn(U,G)|0;k=c[(G&p)>>2]|0;if((k|0)<=-1)k=(k|0)==-2147483648?2147483647:0-k|0;G=c[(f&p)+408>>2]|0;Ar(f,Q);G=((G|0)==0?f:G)+328|0;c[(G&p)>>2]=c[(G&p)>>2]|q;wh(T,25,k,1,0)|0;wh(T,52,Q,3,1)|0;c[((c[(C+(Q<<4)&p)+12>>2]|0)&p)+80>>2]=k;pq(c[(C+(Q<<4)&p)+4>>2]|0,k);break a}iq(T,1);if(!(a[((c[(T&p)>>2]|0)&n)+65>>0]|0))Xg(c[(T&p)+16>>2]|0,30848,-1,1,0)|0;c[(S&p)>>2]=(c[(S&p)>>2]|0)+2;k=yh(T,9,30808)|0;l=c[(T&p)+32>>2]|0;if(l>>>0>k>>>0)c[((c[(T&p)+4>>2]|0)+(k*20|0)&p)+4>>2]=Q;m=k+1|0;if(l>>>0>m>>>0)c[((c[(T&p)+4>>2]|0)+(m*20|0)&p)+4>>2]=Q;m=k+6|0;if(l>>>0<=m>>>0)break a;c[((c[(T&p)+4>>2]|0)+(m*20|0)&p)+4>>2]=2e3;break a}case 19:{k=c[(c[((c[(C+(Q<<4)&p)+4>>2]|0)&p)+4>>2]&p)>>2]|0;G=A;c[(G&p)>>2]=-2;c[(G&p)+4>>2]=-1;if(U){ji(U,A)|0;m=A;l=c[(m&p)>>2]|0;m=c[(m&p)+4>>2]|0;if((m|0)<-1|(m|0)==-1&l>>>0<4294967295){l=A;c[(l&p)>>2]=-1;c[(l&p)+4>>2]=-1;l=-1;m=-1}G=k+160|0;c[(G&p)>>2]=l;c[(G&p)+4>>2]=m;k=c[(k&p)+208>>2]|0;if(k){G=k+16|0;c[(G&p)>>2]=l;c[(G&p)+4>>2]=m}}else{m=k+160|0;l=c[(m&p)>>2]|0;m=c[(m&p)+4>>2]|0}G=A;c[(G&p)>>2]=l;c[(G&p)+4>>2]=m;Jt(f,30952,l,m);break a}case 28:{q=Oq(f)|0;iq(q,4);c[(S&p)>>2]=4;Ar(f,Q);if((((a[((c[(q&p)>>2]|0)&n)+65>>0]|0)==0?(Xg(c[(q&p)+16>>2]|0,31232,-1,1,0)|0,(a[((c[(q&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(q&p)+16>>2]|0)+40|0,20632,-1,1,0)|0,(a[((c[(q&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(q&p)+16>>2]|0)+80|0,31240,-1,1,0)|0,(a[((c[(q&p)>>2]|0)&n)+65>>0]|0)==0):0)Xg((c[(q&p)+16>>2]|0)+120|0,31248,-1,1,0)|0;l=c[((c[(C+(Q<<4)&p)+12>>2]|0)&p)+16>>2]|0;if(!l)break a;do{m=c[(l&p)+8>>2]|0;G=c[(m&p)>>2]|0;xh(q,wh(q,97,0,1,0)|0,G,0);wh(q,28,0,2,0)|0;G=Ws(b[(m&o)+42>>1]|0)|0;wh(q,25,G,3,0)|0;G=Ws(b[(m&o)+28>>1]|0)|0;wh(q,25,G,4,0)|0;wh(q,35,1,4,0)|0;m=c[(m&p)+8>>2]|0;if(m)do{G=c[(m&p)>>2]|0;xh(q,wh(q,97,0,2,0)|0,G,0);G=Ws(b[(m&o)+44>>1]|0)|0;wh(q,25,G,3,0)|0;G=Ws(b[(c[(m&p)+8>>2]&o)>>1]|0)|0;wh(q,25,G,4,0)|0;wh(q,35,1,4,0)|0;m=c[(m&p)+20>>2]|0}while((m|0)!=0);l=c[(l&p)>>2]|0}while((l|0)!=0);break}case 15:{if(!U)break a;s=bq(W,U,L)|0;if(!s)break a;w=(c[((w*12|0)&p)+30128>>2]|0)==0;t=s+46|0;G=w?3:6;r=b[((w?t:s+48|0)&o)>>1]|0;u=r&65535;c[(S&p)>>2]=G;q=c[(s&p)+12>>2]|0;iq(T,G);Ar(f,Q);if(((a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0?(Xg(c[(T&p)+16>>2]|0,31256,-1,1,0)|0,(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(T&p)+16>>2]|0)+40|0,31176,-1,1,0)|0,(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0):0)Xg((c[(T&p)+16>>2]|0)+80|0,31184,-1,1,0)|0;if(((!w?(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0:0)?(Xg((c[(T&p)+16>>2]|0)+120|0,31264,-1,1,0)|0,(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(T&p)+16>>2]|0)+160|0,31272,-1,1,0)|0,(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0):0)Xg((c[(T&p)+16>>2]|0)+200|0,31280,-1,1,0)|0;if(!(r<<16>>16))break a;m=s+4|0;l=s+28|0;k=s+32|0;s=q+4|0;q=0;do{G=b[((c[(m&p)>>2]|0)+(q<<1)&o)>>1]|0;wh(T,25,q,1,0)|0;r=G<<16>>16;wh(T,25,r,2,0)|0;if(G<<16>>16<0)wh(T,28,0,3,0)|0;else{G=c[((c[(s&p)>>2]|0)+(r*24|0)&p)>>2]|0;xh(T,wh(T,97,0,3,0)|0,G,0)}if(!w){wh(T,25,d[((c[(l&p)>>2]|0)+q&n)>>0]|0,4,0)|0;G=c[((c[(k&p)>>2]|0)+(q<<2)&p)>>2]|0;xh(T,wh(T,97,0,5,0)|0,G,0);wh(T,25,(q|0)<(e[(t&o)>>1]|0)&1,6,0)|0}wh(T,35,1,c[(S&p)>>2]|0,0)|0;q=q+1|0}while((q|0)<(u|0));break}case 22:{Ar(f,Q);k=(c[(S&p)>>2]|0)+1|0;c[(S&p)>>2]=k;if((a[(V&n)>>0]&-33)<<24>>24==80)wh(T,153,Q,k,0)|0;else{c[(G&p)>>2]=0;if(U){Dn(U,G)|0;m=c[(G&p)>>2]|0;if((m|0)<=-1)m=(m|0)==-2147483648?2147483647:0-m|0}else m=0;wh(T,154,Q,k,m)|0}wh(T,35,k,1,0)|0;iq(T,1);if(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)break a;Xg(c[(T&p)+16>>2]|0,V,-1,1,-1)|0;break a}case 24:{l=c[(C+(Q<<4)&p)+4>>2]|0;if(U){c[(G&p)>>2]=0;Dn(U,G)|0;G=c[(G&p)>>2]|0;c[(W&p)+72>>2]=G;if((xg(l,G,-1,0)|0)!=7)break a;a[(W&n)+65>>0]=1;break a}if(!l){l=0;m=0}else{m=c[((c[(l&p)+4>>2]|0)&p)+32>>2]|0;l=m;m=((m|0)<0)<<31>>31}Jt(f,30864,l,m);break a}case 25:{l=c[(C+(Q<<4)&p)+4>>2]|0;if(U){m=(ii(U,1,0)|0)<<24>>24!=0&1;if((c[(B&p)>>2]|0)==0?(y=W+20|0,(c[(y&p)>>2]|0)>0):0){k=0;do{so(c[((c[(R&p)>>2]|0)+(k<<4)&p)+4>>2]|0,m)|0;k=k+1|0}while((k|0)<(c[(y&p)>>2]|0))}}else m=-1;G=so(l,m)|0;Jt(f,30880,G,((G|0)<0)<<31>>31);break a}case 18:{iq(T,1);if(!(a[((c[(T&p)>>2]|0)&n)+65>>0]|0))Xg(c[(T&p)+16>>2]|0,30936,-1,1,0)|0;c:do if(U){k=U;while(1)if(!(a[(k&n)>>0]|0))break;else k=k+1|0;m=k-U&1073741823;k=0;while(1){if(!(Fc(U,c[(k<<2&p)+32216>>2]|0,m)|0))break;k=k+1|0;if((k|0)==6){P=91;break c}}if((k|0)!=-1)q=Q;else P=91}else P=91;while(0);if((P|0)==91)if(!(c[(B&p)>>2]|0)){c[(B&p)>>2]=1;k=-1;q=0}else{k=-1;q=Q}m=c[(W&p)+20>>2]|0;if((m|0)>0){l=T+96|0;do{m=m+-1|0;do if(c[((c[(R&p)>>2]|0)+(m<<4)&p)+4>>2]|0){if((m|0)!=(q|0)?(c[(B&p)>>2]|0)!=0:0)break;c[(l&p)>>2]=c[(l&p)>>2]|1<0)}wh(T,35,1,1,0)|0;break a}case 32:{if(!U){if(!(c[2708]|0))break a;iq(T,1);if(!(a[((c[(T&p)>>2]|0)&n)+65>>0]|0))Xg(c[(T&p)+16>>2]|0,31048,-1,1,0)|0;G=c[2708]|0;xh(T,wh(T,97,0,1,0)|0,G,0);wh(T,35,1,1,0)|0;break a}if((a[(U&n)>>0]|0)!=0?(F=c[(W&p)>>2]|0,F=(pc[c[(F&p)+32>>2]&31](F,U,1,u)|0)!=0,F|(c[(u&p)>>2]|0)==0):0){th(f,31072,G);break a}if((d[(W&n)+64>>0]|0)<2)Kt(f)|0;Wc(c[2708]|0);if(!(a[(U&n)>>0]|0)){c[2708]=0;break a}else{c[(G&p)>>2]=U;c[2708]=_c(10344,G)|0;break a}}case 14:{if(!((U|0)!=0?(G=(Dn(U,t)|0)==0,m=c[(t&p)>>2]|0,!(G|(m|0)<1)):0)){c[(t&p)>>2]=2147483647;m=2147483647}l=c[(f&p)+408>>2]|0;Ar(f,Q);l=((l|0)==0?f:l)+328|0;c[(l&p)>>2]=c[(l&p)>>2]|1<>2]|0;if(l>>>0>m>>>0)c[((c[(T&p)+4>>2]|0)+(m*20|0)&p)+8>>2]=l;c[((c[(T&p)+24>>2]|0)&p)+88>>2]=l+-1;break a}case 30:{if(!U)break a;h=_h(W,U,L)|0;if(!h)break a;k=c[(h&p)+8>>2]|0;d:do if(!k)k=0;else while(1){if((a[(k&n)+51>>0]&3)==2)break d;k=c[(k&p)+20>>2]|0;if(!k){k=0;break}}while(0);iq(T,6);c[(S&p)>>2]=6;Ar(f,Q);do if((((a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0?(Xg(c[(T&p)+16>>2]|0,31176,-1,1,0)|0,(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(T&p)+16>>2]|0)+40|0,31184,-1,1,0)|0,(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(T&p)+16>>2]|0)+80|0,31192,-1,1,0)|0,(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0):0){Xg((c[(T&p)+16>>2]|0)+120|0,31200,-1,1,0)|0;if(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)break;Xg((c[(T&p)+16>>2]|0)+160|0,31208,-1,1,0)|0;if(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)break;Xg((c[(T&p)+16>>2]|0)+200|0,31224,-1,1,0)|0}while(0);hr(f,h)|0;t=h+38|0;m=b[(t&o)>>1]|0;if(m<<16>>16<=0)break a;u=(k|0)==0;l=k+4|0;w=0;r=0;g=c[(h&p)+4>>2]|0;while(1){s=g+23|0;if(!(a[(s&n)>>0]&2)){wh(T,25,w-r|0,1,0)|0;q=c[(g&p)>>2]|0;xh(T,wh(T,97,0,2,0)|0,q,0);q=c[(g&p)+12>>2]|0;xh(T,wh(T,97,0,3,0)|0,(q|0)==0?10360:q,0);wh(T,25,(a[(g&n)+20>>0]|0)!=0&1,4,0)|0;q=c[(g&p)+8>>2]|0;if(!q)wh(T,28,0,5,0)|0;else xh(T,wh(T,97,0,5,0)|0,q,0);k=a[(s&n)>>0]&1;e:do if(k<<24>>24==0|u)q=(k^1)&255^1;else{q=b[(t&o)>>1]|0;if(q<<16>>16<1){q=1;break}m=c[(l&p)>>2]|0;s=q<<16>>16;k=1;while(1){q=k+1|0;if((b[(m+(k+-1<<1)&o)>>1]|0)==(w|0)){q=k;break e}if((k|0)<(s|0))k=q;else break}}while(0);wh(T,25,q,6,0)|0;wh(T,35,1,6,0)|0;m=b[(t&o)>>1]|0}else r=r+1|0;w=w+1|0;if((w|0)>=(m<<16>>16|0))break;else g=g+24|0}break}case 2:{if(!U){Jt(f,g,(c[((w*12|0)&p)+30128>>2]&c[(W&p)+24>>2]|0)!=0&1,0);break a}l=c[((w*12|0)&p)+30128>>2]|0;l=(a[(W&n)+63>>0]|0)==0?l&-524289:l;if(!((ii(U,1,0)|0)<<24>>24)){G=W+24|0;c[(G&p)>>2]=c[(G&p)>>2]&~l;if((l|0)==16777216){G=W+512|0;c[(G&p)>>2]=0;c[(G&p)+4>>2]=0}}else{G=W+24|0;c[(G&p)>>2]=c[(G&p)>>2]|l}wh(T,144,0,0,0)|0;Lt(W);break a}case 5:{if(!U)break a;G=(ii(U,1,0)|0)<<24>>24!=0;F=G?32e3:19240;Qh(W,19248,2,1,F,40,0,0,0)|0;Qh(W,19248,3,1,F,40,0,0,0)|0;Qh(W,19232,2,1,10352,40,0,0,0)|0;Ot(W,19232,12);Ot(W,19248,G?12:4);break a}case 17:{g=a[(V&n)>>0]|0;A=(c[(h&p)>>2]|0)==0?-1:Q;c[(S&p)>>2]=6;iq(T,1);if(!(a[((c[(T&p)>>2]|0)&n)+65>>0]|0))Xg(c[(T&p)+16>>2]|0,31464,-1,1,0)|0;c[(z&p)>>2]=100;if(U){Dn(U,z)|0;s=c[(z&p)>>2]|0;if((s|0)<1){c[(z&p)>>2]=100;s=100}}else s=100;wh(T,25,s,1,0)|0;M=W+20|0;w=c[(M&p)>>2]|0;if((w|0)>0){L=(A|0)<0;m=T+32|0;I=T+4|0;H=T+24|0;N=(g&-33)<<24>>24==81;O=0;do{if(L|(O|0)==(A|0)){Ar(f,O);w=wh(T,137,1,0,0)|0;wh(T,24,0,0,0)|0;l=c[(m&p)>>2]|0;if(l>>>0>w>>>0)c[((c[(I&p)>>2]|0)+(w*20|0)&p)+8>>2]=l;c[((c[(H&p)>>2]|0)&p)+88>>2]=l+-1;k=(c[((c[(R&p)>>2]|0)+(O<<4)&p)+12>>2]|0)+16|0;w=c[(k&p)>>2]|0;if(!w)g=0;else{g=0;do{l=c[(w&p)+8>>2]|0;if(!(a[(l&n)+44>>0]&32)){wh(T,25,c[(l&p)+32>>2]|0,g+2|0,0)|0;g=g+1|0}l=c[(l&p)+8>>2]|0;if(l)do{wh(T,25,c[(l&p)+40>>2]|0,g+2|0,0)|0;g=g+1|0;l=c[(l&p)+20>>2]|0}while((l|0)!=0);w=c[(w&p)>>2]|0}while((w|0)!=0)}C=c[(S&p)>>2]|0;w=g+8|0;c[(S&p)>>2]=(C|0)>(w|0)?C:w;wh(T,127,2,g,1)|0;w=c[(I&p)>>2]|0;if(w)a[(w+(((c[(m&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=O;g=wh(T,76,2,0,0)|0;c[(G&p)>>2]=c[((c[(R&p)>>2]|0)+(O<<4)&p)>>2];w=uh(W,31480,G)|0;xh(T,wh(T,97,0,3,0)|0,w,-1);wh(T,32,2,4,1)|0;wh(T,94,4,3,2)|0;wh(T,35,2,1,0)|0;w=c[(m&p)>>2]|0;if(w>>>0>g>>>0)c[((c[(I&p)>>2]|0)+(g*20|0)&p)+8>>2]=w;c[((c[(H&p)>>2]|0)&p)+88>>2]=w+-1;w=c[(k&p)>>2]|0;if(!((w|0)==0|N))do{x=c[(w&p)+8>>2]|0;J=x+8|0;g=c[(J&p)>>2]|0;do if(g){f:do if(!(a[(x&n)+44>>0]&32))g=0;else while(1){if((a[(g&n)+51>>0]&3)==2)break f;g=c[(g&p)+20>>2]|0;if(!g){g=0;break}}while(0);l=wh(T,137,1,0,0)|0;wh(T,24,0,0,0)|0;k=c[(m&p)>>2]|0;if(k>>>0>l>>>0)c[((c[(I&p)>>2]|0)+(l*20|0)&p)+8>>2]=k;c[((c[(H&p)>>2]|0)&p)+88>>2]=k+-1;at(f);pt(f,x,54,1,0,D,E)|0;wh(T,25,0,7,0)|0;k=c[(J&p)>>2]|0;if(!k)l=8;else{l=0;while(1){wh(T,25,0,l+8|0,0)|0;k=c[(k&p)+20>>2]|0;if(!k)break;else l=l+1|0}l=l+9|0}K=c[(S&p)>>2]|0;c[(S&p)>>2]=(K|0)>(l|0)?K:l;wh(T,108,c[(D&p)>>2]|0,0,0)|0;K=wh(T,37,7,1,0)|0;u=x+38|0;l=b[(u&o)>>1]|0;if(l<<16>>16>0){h=x+36|0;v=x+4|0;t=0;do{do if((t|0)!=(b[(h&o)>>1]|0)){if(!(a[((c[(v&p)>>2]|0)+(t*24|0)&n)+20>>0]|0))break;nt(T,x,c[(D&p)>>2]|0,t,3);l=c[(I&p)>>2]|0;if(l)a[(l+(((c[(m&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=-128;l=wh(T,77,3,0,0)|0;wh(T,37,1,-1,0)|0;q=c[((c[(v&p)>>2]|0)+(t*24|0)&p)>>2]|0;c[(G&p)>>2]=c[(x&p)>>2];c[(G&p)+4>>2]=q;q=uh(W,31504,G)|0;xh(T,wh(T,97,0,3,0)|0,q,-1);wh(T,35,3,1,0)|0;q=wh(T,137,1,0,0)|0;wh(T,24,0,0,0)|0;r=c[(m&p)>>2]|0;if(r>>>0>l>>>0)c[((c[(I&p)>>2]|0)+(l*20|0)&p)+8>>2]=r;l=r+-1|0;k=(c[(H&p)>>2]|0)+88|0;c[(k&p)>>2]=l;if(r>>>0>q>>>0)c[((c[(I&p)>>2]|0)+(q*20|0)&p)+8>>2]=r;c[(k&p)>>2]=l;l=b[(u&o)>>1]|0}while(0);t=t+1|0}while((t|0)<(l<<16>>16|0))}l=c[(J&p)>>2]|0;if(l){z=x+4|0;y=0;r=0;k=-1;while(1){q=xs(T)|0;if((g|0)!=(l|0)){k=Pt(f,l,c[(D&p)>>2]|0,0,0,F,r,k)|0;wh(T,37,y+8|0,1,0)|0;x=e[(l&o)+48>>1]|0;q=wh(T,69,(c[(E&p)>>2]|0)+y|0,q,k)|0;xh(T,q,x,-14);wh(T,37,1,-1,0)|0;xh(T,wh(T,97,0,3,0)|0,31528,-2);wh(T,94,7,3,3)|0;xh(T,wh(T,97,0,4,0)|0,31536,-2);wh(T,94,4,3,3)|0;x=c[(l&p)>>2]|0;v=wh(T,97,0,4,0)|0;xh(T,v,x,0);wh(T,94,4,3,3)|0;wh(T,35,3,1,0)|0;x=wh(T,137,1,0,0)|0;wh(T,24,0,0,0)|0;r=c[(m&p)>>2]|0;if(r>>>0>q>>>0)c[((c[(I&p)>>2]|0)+(q*20|0)&p)+8>>2]=r;q=c[(H&p)>>2]|0;c[(q&p)+88>>2]=r+-1;if(a[(l&n)+50>>0]|0){h=xs(T)|0;u=l+46|0;q=b[(u&o)>>1]|0;if(q<<16>>16){t=l+4|0;r=0;do{if(!(a[((c[(z&p)>>2]|0)+((b[((c[(t&p)>>2]|0)+(r<<1)&o)>>1]|0)*24|0)&n)+20>>0]|0)){wh(T,76,r+k|0,h,0)|0;q=b[(u&o)>>1]|0}r=r+1|0}while((r|0)<(q&65535|0))}q=wh(T,9,(c[(E&p)>>2]|0)+y|0,0,0)|0;wh(T,16,0,h,0)|0;r=c[(m&p)>>2]|0;if(r>>>0>q>>>0)c[((c[(I&p)>>2]|0)+(q*20|0)&p)+8>>2]=r;c[((c[(H&p)>>2]|0)&p)+88>>2]=r+-1;q=e[(u&o)>>1]|0;xh(T,wh(T,114,(c[(E&p)>>2]|0)+y|0,h,k)|0,q,-14);wh(T,37,1,-1,0)|0;xh(T,wh(T,97,0,3,0)|0,31560,-2);wh(T,16,0,v,0)|0;q=c[(H&p)>>2]|0;t=~h;do if((h|0)<0){r=c[(q&p)+112>>2]|0;if(!r)break;c[(r+(t<<2)&p)>>2]=c[(m&p)>>2]}while(0);r=c[(m&p)>>2]|0;c[(q&p)+88>>2]=r+-1}if(r>>>0>x>>>0)c[((c[(I&p)>>2]|0)+(x*20|0)&p)+8>>2]=r;c[(q&p)+88>>2]=r+-1;Qt(f,c[(F&p)>>2]|0);r=l}l=c[(l&p)+20>>2]|0;if(!l)break;else y=y+1|0}}wh(T,9,c[(D&p)>>2]|0,K,0)|0;l=K+-1|0;k=c[(m&p)>>2]|0;if(k>>>0>l>>>0)c[((c[(I&p)>>2]|0)+(l*20|0)&p)+8>>2]=k;c[((c[(H&p)>>2]|0)&p)+88>>2]=k+-1;xh(T,wh(T,97,0,2,0)|0,31592,-2);l=c[(J&p)>>2]|0;if(!l)break;else q=0;while(1){if((g|0)!=(l|0)){k=c[(m&p)>>2]|0;wh(T,137,1,k+2|0,0)|0;wh(T,24,0,0,0)|0;wh(T,50,(c[(E&p)>>2]|0)+q|0,3,0)|0;wh(T,79,q+8|0,k+8|0,3)|0;k=c[(I&p)>>2]|0;if(k)a[(k+(((c[(m&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=-112;wh(T,37,1,-1,0)|0;C=c[(l&p)>>2]|0;xh(T,wh(T,97,0,3,0)|0,C,0);wh(T,94,3,2,7)|0;wh(T,35,7,1,0)|0}l=c[(l&p)+20>>2]|0;if(!l)break;else q=q+1|0}}while(0);w=c[(w&p)>>2]|0}while((w|0)!=0);w=c[(M&p)>>2]|0}O=O+1|0}while((O|0)<(w|0))}else m=T+32|0;l=yh(T,3,31448)|0;m=c[(m&p)>>2]|0;if(m>>>0>l>>>0){c[((c[(T&p)+4>>2]|0)+(l*20|0)&p)+12>>2]=0-s;c[((c[(T&p)+4>>2]|0)+(l*20|0)&p)+8>>2]=m}c[((c[(T&p)+24>>2]|0)&p)+88>>2]=m+-1;xh(T,l+1|0,31624,-2);break a}case 21:{do if(U){if(dd(U,30904)|0)if(!(dd(U,30896)|0))k=0;else{P=66;break}else k=1;if(!(c[(B&p)>>2]|0)){s=c[(W&p)+20>>2]|0;if((s|0)>2){q=c[(R&p)>>2]|0;m=k&255;r=2;do{l=c[(c[((c[(q+(r<<4)&p)+4>>2]|0)&p)+4>>2]&p)>>2]|0;do if(!(a[(l&n)+12>>0]|0)){G=c[(l&p)+208>>2]|0;if((G|0)!=0?(a[(G&n)+43>>0]|0)==2:0)break;a[(l&n)+4>>0]=m}while(0);r=r+1|0}while((r|0)<(s|0))}else m=k&255;a[(W&n)+66>>0]=m;P=74}else P=74}else P=66;while(0);if((P|0)==66)if(!(c[(B&p)>>2]|0))l=W+66|0;else{k=-1;P=74}if((P|0)==74){m=c[(c[((c[(C+(Q<<4)&p)+4>>2]|0)&p)+4>>2]&p)>>2]|0;do if((k|0)>-1?(a[(m&n)+12>>0]|0)==0:0){G=c[(m&p)+208>>2]|0;if((G|0)!=0?(a[(G&n)+43>>0]|0)==2:0)break;a[(m&n)+4>>0]=k}while(0);l=m+4|0}l=(a[(l&n)>>0]|0)==1?30904:30896;iq(T,1);if(!(a[((c[(T&p)>>2]|0)&n)+65>>0]|0))Xg(c[(T&p)+16>>2]|0,30920,-1,1,0)|0;xh(T,wh(T,97,0,1,0)|0,l,0);wh(T,35,1,1,0)|0;break a}case 16:{if(!U)break a;k=_h(W,U,L)|0;if(!k)break a;q=Oq(f)|0;iq(q,5);c[(S&p)>>2]=5;Ar(f,Q);if(((((a[((c[(q&p)>>2]|0)&n)+65>>0]|0)==0?(Xg(c[(q&p)+16>>2]|0,31288,-1,1,0)|0,(a[((c[(q&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(q&p)+16>>2]|0)+40|0,31184,-1,1,0)|0,(a[((c[(q&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(q&p)+16>>2]|0)+80|0,31296,-1,1,0)|0,(a[((c[(q&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(q&p)+16>>2]|0)+120|0,31304,-1,1,0)|0,(a[((c[(q&p)>>2]|0)&n)+65>>0]|0)==0):0)Xg((c[(q&p)+16>>2]|0)+160|0,31312,-1,1,0)|0;m=c[(k&p)+8>>2]|0;if(!m)break a;else l=0;while(1){wh(q,25,l,1,0)|0;G=c[(m&p)>>2]|0;xh(q,wh(q,97,0,2,0)|0,G,0);wh(q,25,(a[(m&n)+50>>0]|0)!=0&1,3,0)|0;G=c[((a[(m&n)+51>>0]&3)<<2&p)+31336>>2]|0;xh(q,wh(q,97,0,4,0)|0,G,0);wh(q,25,(c[(m&p)+36>>2]|0)!=0&1,5,0)|0;wh(q,35,1,5,0)|0;m=c[(m&p)+20>>2]|0;if(!m)break;else l=l+1|0}break}case 1:{k=c[(C+(Q<<4)&p)+4>>2]|0;if(!U){m=c[(k&p)+4>>2]|0;c[(m&p)+4>>2]=c[(k&p)>>2];if(!(a[(m&n)+17>>0]|0)){m=0;l=0}else{l=(a[(m&n)+18>>0]|0)==0;m=l?1:2;l=l?0:0}Jt(f,30976,m,l);break a}if(dd(U,32192)|0)if(dd(U,31880)|0)if(!(dd(U,32200)|0))m=2;else{c[(G&p)>>2]=0;Dn(U,G)|0;m=c[(G&p)>>2]|0;m=m>>>0<3?m&255:0}else m=1;else m=0;a[(W&n)+67>>0]=m;r=m+-1|0;if(!((vn(k,m)|0)==0&r>>>0<2))break a;l=yh(T,6,30992)|0;q=c[(T&p)+32>>2]|0;if(q>>>0>l>>>0)c[((c[(T&p)+4>>2]|0)+(l*20|0)&p)+4>>2]=Q;k=l+1|0;if(q>>>0>k>>>0)c[((c[(T&p)+4>>2]|0)+(k*20|0)&p)+4>>2]=Q;k=l+2|0;m=l+4|0;if(q>>>0>k>>>0)c[((c[(T&p)+4>>2]|0)+(k*20|0)&p)+8>>2]=m;if(q>>>0>m>>>0)c[((c[(T&p)+4>>2]|0)+(m*20|0)&p)+4>>2]=r;m=l+5|0;if(q>>>0>m>>>0)c[((c[(T&p)+4>>2]|0)+(m*20|0)&p)+4>>2]=Q;G=T+96|0;c[(G&p)>>2]=c[(G&p)>>2]|1<>2]=3;if(((a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0?(Xg(c[(T&p)+16>>2]|0,31288,-1,1,0)|0,(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(T&p)+16>>2]|0)+40|0,31184,-1,1,0)|0,(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0):0)Xg((c[(T&p)+16>>2]|0)+80|0,31352,-1,1,0)|0;l=W+20|0;m=c[(l&p)>>2]|0;if((m|0)>0)q=0;else break a;do{if(c[((c[(R&p)>>2]|0)+(q<<4)&p)+4>>2]|0){wh(T,25,q,1,0)|0;k=c[((c[(R&p)>>2]|0)+(q<<4)&p)>>2]|0;xh(T,wh(T,97,0,2,0)|0,k,0);k=c[(c[((c[((c[(R&p)>>2]|0)+(q<<4)&p)+4>>2]|0)&p)+4>>2]&p)>>2]|0;if(!(a[(k&n)+15>>0]|0))k=c[(k&p)+168>>2]|0;else k=10360;xh(T,wh(T,97,0,3,0)|0,k,0);wh(T,35,1,3,0)|0;m=c[(l&p)>>2]|0}q=q+1|0}while((q|0)<(m|0));break}case 6:{iq(T,2);c[(S&p)>>2]=2;if((a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0?(Xg(c[(T&p)+16>>2]|0,31288,-1,1,0)|0,(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0):0)Xg((c[(T&p)+16>>2]|0)+40|0,31184,-1,1,0)|0;m=c[(W&p)+436>>2]|0;if(!m)break a;else l=0;while(1){G=c[(m&p)+8>>2]|0;wh(T,25,l,1,0)|0;G=c[(G&p)>>2]|0;xh(T,wh(T,97,0,2,0)|0,G,0);wh(T,35,1,2,0)|0;m=c[(m&p)>>2]|0;if(!m)break;else l=l+1|0}break}case 13:{if(!U)break a;k=_h(W,U,L)|0;if(!k)break a;g=Oq(f)|0;q=c[(k&p)+16>>2]|0;if(!q)break a;iq(g,8);c[(S&p)>>2]=8;Ar(f,Q);do if((((a[((c[(g&p)>>2]|0)&n)+65>>0]|0)==0?(Xg(c[(g&p)+16>>2]|0,31360,-1,1,0)|0,(a[((c[(g&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(g&p)+16>>2]|0)+40|0,31288,-1,1,0)|0,(a[((c[(g&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(g&p)+16>>2]|0)+80|0,31232,-1,1,0)|0,(a[((c[(g&p)>>2]|0)&n)+65>>0]|0)==0):0){Xg((c[(g&p)+16>>2]|0)+120|0,31368,-1,1,0)|0;if(a[((c[(g&p)>>2]|0)&n)+65>>0]|0)break;Xg((c[(g&p)+16>>2]|0)+160|0,31376,-1,1,0)|0;if(a[((c[(g&p)>>2]|0)&n)+65>>0]|0)break;Xg((c[(g&p)+16>>2]|0)+200|0,31384,-1,1,0)|0;if(a[((c[(g&p)>>2]|0)&n)+65>>0]|0)break;Xg((c[(g&p)+16>>2]|0)+240|0,31400,-1,1,0)|0;if(a[((c[(g&p)>>2]|0)&n)+65>>0]|0)break;Xg((c[(g&p)+16>>2]|0)+280|0,31416,-1,1,0)|0}while(0);v=k+4|0;w=0;while(1){k=q+20|0;if((c[(k&p)>>2]|0)>0){m=q+25|0;l=q+26|0;t=q+8|0;h=0;do{u=c[(q+(h<<3)&p)+40>>2]|0;s=d[(m&n)>>0]|0;if((s|0)==8)r=32072;else if((s|0)==9)r=32088;else if((s|0)==6)r=32096;else if((s|0)==7)r=32056;else r=32112;s=d[(l&n)>>0]|0;if((s|0)==8)s=32072;else if((s|0)==9)s=32088;else if((s|0)==6)s=32096;else if((s|0)==7)s=32056;else s=32112;wh(g,25,w,1,0)|0;wh(g,25,h,2,0)|0;G=c[(t&p)>>2]|0;xh(g,wh(g,97,0,3,0)|0,G,0);G=c[((c[(v&p)>>2]|0)+((c[(q+(h<<3)&p)+36>>2]|0)*24|0)&p)>>2]|0;xh(g,wh(g,97,0,4,0)|0,G,0);xh(g,wh(g,(u|0)!=0?97:28,0,5,0)|0,u,0);xh(g,wh(g,97,0,6,0)|0,s,0);xh(g,wh(g,97,0,7,0)|0,r,0);xh(g,wh(g,97,0,8,0)|0,31424,0);wh(g,35,1,8,0)|0;h=h+1|0}while((h|0)<(c[(k&p)>>2]|0))}q=c[(q&p)+4>>2]|0;if(!q)break;else w=w+1|0}break}case 11:{if(!U){if(Gn(f)|0)break a;iq(T,1);if(!(a[((c[(T&p)>>2]|0)&n)+65>>0]|0))Xg(c[(T&p)+16>>2]|0,31784,-1,1,0)|0;wh(T,97,0,1,0)|0;xh(T,-1,c[(d[((c[(f&p)>>2]|0)&n)+62>>0]<<3&p)+31632>>2]|0,-2);wh(T,35,1,1,0)|0;break a}k=c[((c[(R&p)>>2]|0)&p)+12>>2]|0;if((b[(k&o)+78>>1]&5)==1)break a;else{m=31632;l=31704}do{if(!(dd(U,l)|0)){v=m;P=415;break}m=m+8|0;l=c[(m&p)>>2]|0}while((l|0)!=0);if((P|0)==415?(F=a[(v&n)+4>>0]|0,F=F<<24>>24==0?2:F,a[(W&n)+62>>0]=F,a[(k&n)+77>>0]=F,(c[(v&p)>>2]|0)!=0):0)break a;c[(G&p)>>2]=U;th(f,31800,G);break a}case 0:{s=c[((w*12|0)&p)+30128>>2]|0;F=T+96|0;c[(F&p)>>2]=c[(F&p)>>2]|1<>2]|0)>>>0>m>>>0)c[((c[(T&p)+4>>2]|0)+(m*20|0)&p)+4>>2]=Q;l=m+1|0;c[(G&p)>>2]=0;Dn(U,G)|0;k=c[(k&p)>>2]|0;if(k>>>0>l>>>0)c[((c[(T&p)+4>>2]|0)+(l*20|0)&p)+4>>2]=c[(G&p)>>2];m=m+2|0;if(k>>>0<=m>>>0)break a;c[((c[(T&p)+4>>2]|0)+(m*20|0)&p)+4>>2]=Q;c[((c[(T&p)+4>>2]|0)+(m*20|0)&p)+8>>2]=s;break a}m=yh(T,3,31848)|0;k=c[(T&p)+32>>2]|0;if(k>>>0>m>>>0)c[((c[(T&p)+4>>2]|0)+(m*20|0)&p)+4>>2]=Q;m=m+1|0;if(k>>>0>m>>>0){c[((c[(T&p)+4>>2]|0)+(m*20|0)&p)+4>>2]=Q;c[((c[(T&p)+4>>2]|0)+(m*20|0)&p)+12>>2]=s}iq(T,1);if(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)break a;Xg(c[(T&p)+16>>2]|0,V,-1,1,-1)|0;break a}case 7:{iq(T,1);c[(S&p)>>2]=1;if(!(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)){Xg(c[(T&p)+16>>2]|0,31864,-1,1,0)|0;l=0}else l=0;do{G=c[(l<<2&p)+8648>>2]|0;l=l+1|0;xh(T,wh(T,97,0,1,0)|0,G,0);wh(T,35,1,1,0)|0}while((l|0)!=4);break}case 35:{m=(c[(h&p)>>2]|0)!=0?Q:10;if(U)if(dd(U,31880)|0)if(!(dd(U,31888)|0))l=2;else{l=(dd(U,31896)|0)==0;l=l?3:0}else l=1;else l=0;iq(T,3);c[(S&p)>>2]=3;if(((a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0?(Xg(c[(T&p)+16>>2]|0,31912,-1,1,0)|0,(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(T&p)+16>>2]|0)+40|0,31920,-1,1,0)|0,(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0):0)Xg((c[(T&p)+16>>2]|0)+80|0,31928,-1,1,0)|0;wh(T,11,m,l,1)|0;wh(T,35,1,3,0)|0;break a}case 26:{of(W)|0;break a}case 34:{if(!U)l=c[(W&p)+216>>2]|0;else{c[(G&p)>>2]=0;Dn(U,G)|0;l=c[(G&p)>>2]|0;if((l|0)>0)m=21;else{l=0;m=0}c[(W&p)+216>>2]=m;c[(W&p)+220>>2]=l;l=m}if((l|0)==21){l=c[(W&p)+220>>2]|0;m=l;l=((l|0)<0)<<31>>31}else{m=0;l=0}Jt(f,31944,m,l);break a}case 27:{if((U|0)!=0?(ji(U,x)|0)==0:0){G=x;Pc(c[(G&p)>>2]|0,c[(G&p)+4>>2]|0)|0}F=(Lc()|0)==0;G=9032;Jt(f,31976,F?c[(G&p)>>2]|0:-1,F?c[(G&p)+4>>2]|0:-1);break a}case 33:{if((U|0)!=0?(E=(ji(U,s)|0)==0,G=s,F=c[(G&p)+4>>2]|0,E&((F|0)>-1|(F|0)==-1&(c[(G&p)>>2]|0)>>>0>4294967295)):0)c[(W&p)+132>>2]=0;G=c[(W&p)+132>>2]|0;Jt(f,31992,G,((G|0)<0)<<31>>31);break a}case 12:{g=c[(S&p)>>2]|0;H=g+1|0;I=g+5|0;J=g+6|0;c[(S&p)>>2]=J;K=Oq(f)|0;iq(K,4);if((((a[((c[(K&p)>>2]|0)&n)+65>>0]|0)==0?(Xg(c[(K&p)+16>>2]|0,31232,-1,1,0)|0,(a[((c[(K&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(K&p)+16>>2]|0)+40|0,20456,-1,1,0)|0,(a[((c[(K&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(K&p)+16>>2]|0)+80|0,31432,-1,1,0)|0,(a[((c[(K&p)>>2]|0)&n)+65>>0]|0)==0):0)Xg((c[(K&p)+16>>2]|0)+120|0,31440,-1,1,0)|0;Ar(f,Q);w=c[((c[((c[(R&p)>>2]|0)+(Q<<4)&p)+12>>2]|0)&p)+16>>2]|0;if(!w)break a;u=(U|0)==0;h=f+68|0;v=K+32|0;D=K+4|0;E=K+24|0;F=g+2|0;G=g+3|0;A=g+4|0;t=f+8|0;while(1){if(u){B=c[(w&p)>>2]|0;C=c[(w&p)+8>>2]|0}else{B=0;C=sh(f,0,U,L)|0}if((C|0)!=0?(M=C+16|0,(c[(M&p)>>2]|0)!=0):0){gs(f,Q,c[(C&p)+32>>2]|0,0,c[(C&p)>>2]|0);g=(b[(C&o)+38>>1]|0)+J|0;if((g|0)>(c[(S&p)>>2]|0))c[(S&p)>>2]=g;Qq(f,0,Q,C,54);w=c[(C&p)>>2]|0;xh(K,wh(K,97,0,H,0)|0,w,0);w=c[(M&p)>>2]|0;if(!w)g=1;else{g=1;do{l=_h(W,c[(w&p)+8>>2]|0,L)|0;do if(l){c[(O&p)>>2]=0;gs(f,Q,c[(l&p)+32>>2]|0,0,c[(l&p)>>2]|0);if(Mt(f,l,w,O,0)|0)break a;m=c[(O&p)>>2]|0;if(!m){Qq(f,g,Q,l,54);break}else{wh(K,54,g,c[(m&p)+40>>2]|0,Q)|0;z=c[(t&p)>>2]|0;xh(z,-1,hs(f,m)|0,-6);break}}while(0);g=g+1|0;w=c[(w&p)+4>>2]|0}while((w|0)!=0)}if((c[(h&p)>>2]|0)<(g|0))c[(h&p)>>2]=g;s=wh(K,108,0,0,0)|0;g=c[(M&p)>>2]|0;if(g){z=C+36|0;y=1;while(1){x=g+8|0;w=_h(W,c[(x&p)>>2]|0,L)|0;c[(O&p)>>2]=0;c[(N&p)>>2]=0;r=(w|0)!=0;do if(r){Mt(f,w,g,O,N)|0;l=c[(O&p)>>2]|0;m=xs(K)|0;if(!(r&(l|0)==0)){w=m;P=306;break}w=c[(g&p)+36>>2]|0;if((w|0)==(b[(z&o)>>1]|0))wh(K,103,0,J,0)|0;else{wh(K,47,0,w,J)|0;Nt(K,C,w,J);wh(K,76,J,m,0)|0;wh(K,38,J,(c[(v&p)>>2]|0)+3|0,0)|0}wh(K,70,y,0,J)|0;wh(K,16,0,m,0)|0;w=c[(v&p)>>2]|0;if(w>>>0>1)c[((c[(D&p)>>2]|0)+((w+-2|0)*20|0)&p)+8>>2]=w;c[((c[(E&p)>>2]|0)&p)+88>>2]=w+-1;w=m}else{w=xs(K)|0;l=0;P=306}while(0);do if((P|0)==306){P=0;q=g+20|0;m=c[(q&p)>>2]|0;if((m|0)>0){k=0;do{m=c[(N&p)>>2]|0;if(!m)m=g+(k<<3)+36|0;else m=m+(k<<2)|0;R=k+J|0;nt(K,C,0,c[(m&p)>>2]|0,R);wh(K,76,R,w,0)|0;k=k+1|0;m=c[(q&p)>>2]|0}while((k|0)<(m|0))}if(!r)break;k=ot(K,l)|0;l=c[(q&p)>>2]|0;xh(K,wh(K,49,J,m,I)|0,k,l);xh(K,wh(K,69,y,w,I)|0,0,-14)}while(0);wh(K,103,0,F,0)|0;l=c[(x&p)>>2]|0;xh(K,wh(K,97,0,G,0)|0,l,0);wh(K,25,y+-1|0,A,0)|0;wh(K,35,H,4,0)|0;l=c[(E&p)>>2]|0;m=~w;do if((w|0)<0){w=c[(l&p)+112>>2]|0;if(!w)break;c[(w+(m<<2)&p)>>2]=c[(v&p)>>2]}while(0);c[(l&p)+88>>2]=(c[(v&p)>>2]|0)+-1;mg(W,c[(N&p)>>2]|0);g=c[(g&p)+4>>2]|0;if(!g)break;else y=y+1|0}}wh(K,9,0,s+1|0,0)|0;g=c[(v&p)>>2]|0;if(g>>>0>s>>>0)c[((c[(D&p)>>2]|0)+(s*20|0)&p)+8>>2]=g;c[((c[(E&p)>>2]|0)&p)+88>>2]=g+-1}if(!B)break;else w=B}break}case 23:{Jt(f,31016,0,0);break a}case 31:{if(!U){Jt(f,31032,d[(W&n)+64>>0]|0,0);break a}l=a[(U&n)>>0]|0;if((l+-48&255)>=3)if(!(dd(U,31352)|0))l=1;else{l=(dd(U,15168)|0)==0;l=l?2:0}else l=(l<<24>>24)+-48|0;m=(c[(f&p)>>2]|0)+64|0;if((d[(m&n)>>0]|0)==(l|0))break a;if(Kt(f)|0)break a;a[(m&n)>>0]=l;break a}case 29:{if(!U){G=(d[(C+(Q<<4)&n)+8>>0]|0)+-1|0;Jt(f,31104,G,((G|0)<0)<<31>>31);break a}if(!(a[(W&n)+63>>0]|0)){th(f,31120,G);break a}else{a[(C+(Q<<4)&n)+8>>0]=((ii(U,0,1)|0)&255)+1;Lt(W);break a}}case 4:if(!U){G=c[((c[(C+(Q<<4)&p)+12>>2]|0)&p)+80>>2]|0;Jt(f,30848,G,((G|0)<0)<<31>>31);break a}else{c[(G&p)>>2]=0;Dn(U,G)|0;G=c[(G&p)>>2]|0;c[((c[(C+(Q<<4)&p)+12>>2]|0)&p)+80>>2]=G;pq(c[(C+(Q<<4)&p)+4>>2]|0,G);break a}default:{if(!U)l=c[(W&p)+492>>2]|0;else{c[(G&p)>>2]=0;Dn(U,G)|0;l=c[(G&p)>>2]|0;G=(l|0)>0;l=G?l:0;c[(W&p)+444>>2]=G?74:0;c[(W&p)+448>>2]=G?W:0;c[(r&p)>>2]=0;c[(W&p)+492>>2]=l}Jt(f,31968,l,((l|0)<0)<<31>>31);break a}}while(0)}else{k=c[(q&p)>>2]|0;if(k){c[(G&p)>>2]=k;th(f,10344,G);Wc(c[(q&p)>>2]|0)}G=f+64|0;c[(G&p)>>2]=(c[(G&p)>>2]|0)+1;c[(f&p)+12>>2]=g;break}}while(0);mg(W,V);mg(W,U)}}while(0);i=X;return}function Gr(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0;h=i;i=i+16|0;if((i|0)>=(j|0))fa();g=h;a:do if(!d)d=0;else{f=d;while(1){if((a[(f&n)>>0]|0)==-121){d=c[(b&p)>>2]|0;if(!(a[((c[(d&p)>>2]|0)&n)+145>>0]|0))break;a[(f&n)>>0]=101}d=c[(f&p)+4>>2]|0;if(d&16384){d=0;break a}e=f+20|0;if(!(d&2048)){if(Hr(b,c[(e&p)>>2]|0)|0){d=1;break a}}else if(fr(b,c[(e&p)>>2]|0)|0){d=1;break a}if(Gr(b,c[(f&p)+16>>2]|0)|0){d=1;break a}f=c[(f&p)+12>>2]|0;if(!f){d=0;break a}}c[(g&p)>>2]=c[(b&p)+16>>2];th(d,29984,g);d=1}while(0);i=h;return d|0}function Hr(a,b){a=a|0;b=b|0;var d=0,e=0;a:do if((b|0)!=0?(c[(b&p)>>2]|0)>0:0){d=0;e=c[(b&p)+4>>2]|0;while(1){if(Gr(a,c[(e&p)>>2]|0)|0){d=1;break a}d=d+1|0;if((d|0)>=(c[(b&p)>>2]|0)){d=0;break}else e=e+20|0}}else d=0;while(0);return d|0}function Ir(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;xh(a,wh(a,122,b,0,0)|0,d,-1);d=c[((c[(a&p)>>2]|0)&p)+20>>2]|0;if((d|0)>0){e=a+96|0;b=c[(e&p)>>2]|0;a=0;do{b=b|1<>2]=b}return}function Jr(a,d){a=a|0;d=d|0;var e=0,f=0;e=d+8|0;f=Ur(a,0,e)|0;d=d+24|0;kg(c[(a&p)>>2]|0,c[(d&p)>>2]|0);c[(d&p)>>2]=f;if(f){d=f+40|0;b[(d&o)>>1]=(b[(d&o)>>1]|0)+1<<16>>16}e=(Rt(a,e)|0)==0;return (e?f:0)|0}function Kr(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0;n=i;i=i+16|0;if((i|0)>=(j|0))fa();m=n;a:do if((b|0)!=0?(f=c[(a&p)+12>>2]|0,(c[(b&p)>>2]|0)>0):0){g=a+8|0;h=a+4|0;k=0;l=b+8|0;while(1){if(!(c[(g&p)>>2]|0)){e=l+4|0;d=c[(e&p)>>2]|0;if((d|0)!=0?(dd(d,f)|0)!=0:0)break;mg(c[(c[(a&p)>>2]&p)>>2]|0,d);c[(e&p)>>2]=0;c[(l&p)>>2]=c[(h&p)>>2]}if(fr(a,c[(l&p)+20>>2]|0)|0){d=1;break a}if(Gr(a,c[(l&p)+44>>2]|0)|0){d=1;break a}k=k+1|0;if((k|0)>=(c[(b&p)>>2]|0)){d=0;break a}else l=l+72|0}b=c[(a&p)>>2]|0;l=c[(a&p)+20>>2]|0;c[(m&p)>>2]=c[(a&p)+16>>2];c[(m&p)+4>>2]=l;c[(m&p)+8>>2]=d;th(b,29936,m);d=1}else d=0;while(0);i=n;return d|0}function Lr(b,d){b=b|0;d=d|0;var e=0,f=0,g=0;f=i;i=i+16|0;if((i|0)>=(j|0))fa();e=f;g=c[(b&p)>>2]|0;if((((a[(g&n)+145>>0]|0)==0?(a[(b&n)+18>>0]|0)==0:0)?(c[(g&p)+24>>2]&2048|0)==0:0)?(Fc(d,25568,7)|0)==0:0){c[(e&p)>>2]=d;th(b,28440,e);b=1}else b=0;i=f;return b|0}function Mr(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,o=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0;x=i;i=i+16|0;if((i|0)>=(j|0))fa();w=x;do if(d){t=e&1;v=(f|0)!=0;if(v){g=c[(f&p)>>2]|0;r=32768}else{g=St(d,e)|0;g=mh(b,g,((g|0)<0)<<31>>31)|0;r=0}c[(w&p)>>2]=g;if(g){l=(t|0)==0;if(!l)if(!(c[(d&p)+12>>2]|0))q=(c[(d&p)+20>>2]|0)==0?16396:8220;else q=8220;else q=48;s=q&60;u=d+4|0;m=c[(u&p)>>2]|0;if((m&1024|0)==0?(h=c[(d&p)+8>>2]|0,(h|0)!=0):0){k=h;while(1)if(!(a[(k&n)>>0]|0))break;else k=k+1|0;o=(k-h&1073741823)+1|0}else o=0;if(l){if(!(m&16384))k=(m&8192|0)==0?48:28;else k=12;kw(g|0,d|0,k|0)|0;fw(g+k|0,0,48-k|0)|0}else kw(g|0,d|0,s|0)|0;m=g+4|0;h=q&24576|r|c[(m&p)>>2]&-122881;c[(m&p)>>2]=h;if(o){h=g+s|0;c[(g&p)+8>>2]=h;kw(h|0,c[(d&p)+8>>2]|0,o|0)|0;h=c[(m&p)>>2]|0}k=c[(u&p)>>2]|0;do if(!((h|k)&16384)){h=d+20|0;if(!(k&2048)){c[(g&p)+20>>2]=Pr(b,c[(h&p)>>2]|0,t)|0;break}else{c[(g&p)+20>>2]=gr(b,c[(h&p)>>2]|0,t)|0;break}}while(0);h=c[(m&p)>>2]|0;if(!(h&24576)){if(c[(u&p)>>2]&16384)break;c[(g&p)+12>>2]=Mr(b,c[(d&p)+12>>2]|0,0,0)|0;c[(g&p)+16>>2]=Mr(b,c[(d&p)+16>>2]|0,0,0)|0;break}t=Tt(d,e)|0;c[(w&p)>>2]=(c[(w&p)>>2]|0)+t;if(h&8192){c[(g&p)+12>>2]=Mr(b,c[(d&p)+12>>2]|0,1,w)|0;c[(g&p)+16>>2]=Mr(b,c[(d&p)+16>>2]|0,1,w)|0}if(v)c[(f&p)>>2]=c[(w&p)>>2]}}else g=0;while(0);i=x;return g|0}function Nr(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;a:do if((b|0)!=0?(d=mh(a,8,0)|0,(d|0)!=0):0){g=b+4|0;c[(d&p)+4>>2]=c[(g&p)>>2];e=mh(a,c[(g&p)>>2]<<3,0)|0;c[(d&p)>>2]=e;if(!e){mg(a,d);d=0;break}if((c[(g&p)>>2]|0)>0){f=0;while(1){h=c[(b&p)>>2]|0;c[(e+(f<<3)&p)>>2]=kh(a,c[(h+(f<<3)&p)>>2]|0)|0;c[(e+(f<<3)&p)+4>>2]=c[(h+(f<<3)&p)+4>>2];f=f+1|0;if((f|0)>=(c[(g&p)>>2]|0))break a;e=c[(d&p)>>2]|0}}}else d=0;while(0);return d|0}function Or(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0;f=e+4|0;g=(c[(f&p)>>2]|0)+40|0;b=mh(b,g,0)|0;if(b){fw(b|0,0,g|0)|0;g=b+40|0;kw(g|0,c[(e&p)>>2]|0,c[(f&p)>>2]|0)|0;c[(b&p)+12>>2]=g;c[(b&p)+16>>2]=c[(f&p)>>2];a[(b&n)>>0]=d}return b|0}function Pr(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0;do if((d|0)!=0?(f=mh(b,8,0)|0,(f|0)!=0):0){g=c[(d&p)>>2]|0;c[(f&p)>>2]=g;if(!(e&1)){h=c[(d&p)>>2]|0;g=1;while(1)if((g|0)<(h|0))g=g<<1;else break}g=mh(b,g*20|0,0)|0;c[(f&p)+4>>2]=g;if(!g){mg(b,f);f=0;break}if((c[(d&p)>>2]|0)>0){i=0;h=c[(d&p)+4>>2]|0;while(1){c[(g&p)>>2]=Mr(b,c[(h&p)>>2]|0,e,0)|0;c[(g&p)+4>>2]=kh(b,c[(h&p)+4>>2]|0)|0;c[(g&p)+8>>2]=kh(b,c[(h&p)+8>>2]|0)|0;a[(g&n)+12>>0]=a[(h&n)+12>>0]|0;j=g+13|0;k=a[(j&n)>>0]|0;a[(j&n)>>0]=k&-2;a[(j&n)>>0]=a[(h&n)+13>>0]&2|k&-4;c[(g&p)+16>>2]=c[(h&p)+16>>2];i=i+1|0;if((i|0)>=(c[(d&p)>>2]|0))break;else{g=g+20|0;h=h+20|0}}}}else f=0;while(0);return f|0}function Qr(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0;o=i;i=i+16|0;if((i|0)>=(j|0))fa();k=o;l=c[(a&p)>>2]|0;f=c[(b&p)+20>>2]|0;a:do if(f){e=c[(l&p)+20>>2]|0;if((e|0)>0){d=c[(l&p)+16>>2]|0;h=0;while(1){g=h+1|0;if((c[(d+(h<<4)&p)+12>>2]|0)==(f|0)){g=h;break a}if((g|0)<(e|0))h=g;else break}}else g=0}else g=-1e6;while(0);d=bn((c[(b&p)+24>>2]|0)+8|0,c[(b&p)+4>>2]|0,k)|0;if(!d)f=0;else f=c[(d&p)+8>>2]|0;d=c[((c[(l&p)+16>>2]|0)+(g<<4)&p)>>2]|0;e=(g|0)==1;if((((Sq(a,e?14:16,c[(b&p)>>2]|0,c[(f&p)>>2]|0,d)|0)==0?(Sq(a,9,e?13184:13208,0,d)|0)==0:0)?(m=Oq(a)|0,(m|0)!=0):0)?(n=c[(a&p)+408>>2]|0,Ar(a,g),n=((n|0)==0?a:n)+328|0,c[(n&p)>>2]=c[(n&p)>>2]|1<>2]|0,0),xh(m,n+4|0,10720,-2),Dr(a,g),wh(m,61,0,0,0)|0,n=c[(b&p)>>2]|0,xh(m,wh(m,126,g,0,0)|0,n,0),n=a+72|0,(c[(n&p)>>2]|0)<3):0)c[(n&p)>>2]=3;i=o;return}function Rr(d,e,f,g,h,k,l){d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;var m=0,q=0,r=0,s=0,t=0,u=0,v=0;v=i;i=i+32|0;if((i|0)>=(j|0))fa();m=v;t=c[(d&p)>>2]|0;c[(m&p)>>2]=0;c[(m&p)+4>>2]=0;c[(m&p)+8>>2]=0;c[(m&p)+12>>2]=0;c[(m&p)+16>>2]=0;c[(m&p)+20>>2]=0;c[(m&p)+24>>2]=0;c[(m&p)+28>>2]=0;c[(m&p)>>2]=d;do if(h)if((a[(h&n)>>0]|0)!=27)if(!(ls(m,h)|0)){u=5;break}else{u=13;break}else{a[(h&n)>>0]=97;u=5;break}else u=5;while(0);a:do if((u|0)==5){do if(k)if((a[(k&n)>>0]|0)!=27)if(!(ls(m,k)|0))break;else{u=13;break a}else{a[(k&n)>>0]=97;break}while(0);do if(l)if((a[(l&n)>>0]|0)!=27)if(!(ls(m,l)|0))break;else{u=13;break a}else{a[(l&n)>>0]=97;break}while(0);if(g){if((a[(g&n)>>0]|0)==97)g=c[(g&p)+8>>2]|0;else g=0;if(Sq(d,e,g,0,0)|0)break}s=Oq(d)|0;m=d+60|0;g=c[(m&p)>>2]|0;q=d+56|0;r=c[(q&p)>>2]|0;if((r|0)<4){r=d+72|0;g=c[(r&p)>>2]|0;c[(r&p)>>2]=g+4;g=g+1|0}else{c[(m&p)>>2]=g+4;c[(q&p)>>2]=r+-4}Rq(d,h,g);Rq(d,k,g+1|0);Rq(d,l,g+2|0);if(s){g=g+3|0;wh(s,1,0,g-(b[(f&o)>>1]|0)|0,g)|0;g=c[(s&p)+4>>2]|0;if(g)a[(g+(((c[(s&p)+32>>2]|0)+-1|0)*20|0)&n)+3>>0]=b[(f&o)>>1];xh(s,-1,f,-5);wh(s,144,(e|0)==24&1,0,0)|0}}while(0);if((u|0)==13){f=d+64|0;c[(f&p)>>2]=(c[(f&p)>>2]|0)+1}Gk(t,h);Gk(t,k);Gk(t,l);i=v;return}function Sr(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0;m=i;i=i+16|0;if((i|0)>=(j|0))fa();l=m;g=m+4|0;h=c[(b&p)>>2]|0;a:do if(!(Gn(b)|0)){if(!d){Ut(b,0);break}if(!((e|0)!=0?(c[(e&p)>>2]|0)!=0:0))f=6;do if((f|0)==6){f=Wq(c[(b&p)>>2]|0,d)|0;if(!f)break a;if(!(Yn(h,a[(h&n)+62>>0]|0,f,0)|0)){mg(h,f);break}else{Ut(b,f);mg(h,f);break a}}while(0);d=er(b,d,e,g)|0;if((d|0)>=0?(k=Wq(h,c[(g&p)>>2]|0)|0,(k|0)!=0):0){e=c[((c[(h&p)+16>>2]|0)+(d<<4)&p)>>2]|0;f=_h(h,k,e)|0;if(f){Vt(b,f,0);mg(h,k);break}e=bq(h,k,e)|0;mg(h,k);if(!e){th(b,28872,l);break}else{f=c[(b&p)+408>>2]|0;Ar(b,d);f=((f|0)==0?b:f)+328|0;c[(f&p)>>2]=c[(f&p)>>2]|1<=(j|0))fa();f=h;g=c[(a&p)>>2]|0;if(!(Gn(a)|0)){do if(!b){b=g+20|0;e=c[(b&p)>>2]|0;if((e|0)>0){d=0;do{if((d|0)!=1){Wt(a,d);e=c[(b&p)>>2]|0}d=d+1|0}while((d|0)<(e|0))}}else{if(c[(d&p)+4>>2]|0){e=er(a,b,d,f)|0;if((e|0)<=-1)break;e=c[((c[(g&p)+16>>2]|0)+(e<<4)&p)>>2]|0;b=Wq(g,c[(f&p)>>2]|0)|0;if(!b)break;d=bq(g,b,e)|0;if(!d){e=sh(a,0,b,e)|0;if(e)Xt(a,e,0)}else Xt(a,c[(d&p)+12>>2]|0,d);mg(g,b);break}d=Wq(g,b)|0;e=Vh(g,d)|0;mg(g,d);if((e|0)>-1){Wt(a,e);break}d=Wq(g,b)|0;if(d){e=bq(g,d,0)|0;if(!e){e=sh(a,0,d,0)|0;if(e)Xt(a,e,0)}else Xt(a,c[(e&p)+12>>2]|0,e);mg(g,d)}}while(0);e=Oq(a)|0;if(e)wh(e,144,0,0,0)|0}i=h;return}function Ur(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,i=0;f=c[(d&p)>>2]|0;if(!f)e=d+4|0;else{i=c[(a&p)>>2]|0;g=c[(i&p)+20>>2]|0;i=c[(i&p)+16>>2]|0;a:do if((g|0)>0){h=0;while(1){e=h+1|0;if((c[(i+(h<<4)&p)+12>>2]|0)==(f|0)){e=h;break a}if((e|0)<(g|0))h=e;else break}}else e=0;while(0);e=i+(e<<4)|0}return sh(a,b,c[(d&p)+8>>2]|0,c[(e&p)>>2]|0)|0}function Vr(b,d){b=b|0;d=d|0;var e=0,f=0,g=0;g=i;i=i+16|0;if((i|0)>=(j|0))fa();f=g;if(d){e=d;while(1)if(!(a[(e&n)>>0]|0))break;else e=e+1|0;if((e-d&1073741823)>>>0>6?(Fc(d,25568,7)|0)==0:0){c[(f&p)>>2]=d;th(b,25576,f);e=1}else e=0}else e=0;i=g;return e|0}function Wr(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;f=i;i=i+16|0;if((i|0)>=(j|0))fa();e=f;if(!b){c[(e&p)>>2]=d;a=uh(a,25992,e)|0}else{c[(e&p)>>2]=b;c[(e&p)+4>>2]=d;e=uh(a,26e3,e)|0;mg(a,b);a=e}i=f;return a|0}function Xr(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;h=i;i=i+16|0;if((i|0)>=(j|0))fa();g=h;e=c[(a&p)>>2]|0;f=c[((c[(e&p)+16>>2]|0)&p)+28>>2]|0;if((c[(b&p)+68>>2]|0)!=(f|0)?(d=As(a,b)|0,(d|0)!=0):0){b=d;d=0;do{if((c[(b&p)+20>>2]|0)==(f|0))d=Wr(e,d,c[(b&p)>>2]|0)|0;b=c[(b&p)+32>>2]|0}while((b|0)!=0);if(d){b=c[(a&p)>>2]|0;c[(g&p)>>2]=d;b=uh(b,25968,g)|0;mg(c[(a&p)>>2]|0,d);d=b}else d=0}else d=0;i=h;return d|0}function Yr(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,q=0,r=0;r=i;i=i+16|0;if((i|0)>=(j|0))fa();n=r;o=Oq(a)|0;if(o){e=c[(a&p)>>2]|0;h=c[(b&p)+68>>2]|0;a:do if(h){k=c[(e&p)+20>>2]|0;if((k|0)>0){f=c[(e&p)+16>>2]|0;g=0;while(1){e=g+1|0;if((c[(f+(g<<4)&p)+12>>2]|0)==(h|0))break a;if((e|0)<(k|0))g=e;else{g=e;break}}}else g=0}else g=-1e6;while(0);e=As(a,b)|0;if(e)do{f=c[(a&p)>>2]|0;l=c[(e&p)+20>>2]|0;b:do if(l){m=c[(f&p)+20>>2]|0;if((m|0)>0){k=c[(f&p)+16>>2]|0;h=0;while(1){f=h+1|0;if((c[(k+(h<<4)&p)+12>>2]|0)==(l|0)){f=h;break b}if((f|0)<(m|0))h=f;else break}}else f=0}else f=-1e6;while(0);m=c[(e&p)>>2]|0;xh(o,wh(o,126,f,0,0)|0,m,0);e=c[(e&p)+32>>2]|0}while((e|0)!=0);e=c[(b&p)>>2]|0;xh(o,wh(o,124,g,0,0)|0,e,0);e=c[(a&p)>>2]|0;c[(n&p)>>2]=d;e=uh(e,25952,n)|0;if((e|0)!=0?(Ir(o,g,e),q=Xr(a,b)|0,(q|0)!=0):0)Ir(o,1,q)}i=r;return} function gh(f){f=f|0;var g=0,l=0,m=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,E=0,F=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ea=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,cc=0,dc=0,ec=0,fc=0,gc=0,hc=0,ic=0,kc=0,nc=0,oc=0,qc=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,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,Xc=0,Yc=0,Zc=0,_c=0,$c=0,ad=0,ed=0,fd=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,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,ee=0,fe=0,ge=0,he=0,ie=0,je=0,ke=0,le=0,me=0,ne=0,oe=0,pe=0,qe=0;oe=i;i=i+1040|0;if((i|0)>=(j|0))fa();ke=oe+400|0;Tc=oe+792|0;id=oe+392|0;ad=oe+788|0;Sd=oe+320|0;md=oe+784|0;pd=oe+780|0;qd=oe+280|0;Nd=oe+680|0;$c=oe+240|0;Qd=oe+200|0;_c=oe+676|0;Xc=oe+672|0;Od=oe+160|0;Uc=oe+644|0;td=oe+152|0;Jd=oe+112|0;kd=oe+640|0;Ld=oe+636|0;Yc=oe+632|0;ud=oe+628|0;Ad=oe+624|0;wd=oe+604|0;Bd=oe+600|0;od=oe+596|0;xd=oe+576|0;Sc=oe+840|0;Cd=oe+572|0;Pd=oe+104|0;Dd=oe+568|0;ed=oe+564|0;fd=oe+96|0;Rd=oe+88|0;Ed=oe+560|0;Fd=oe+556|0;Gd=oe+552|0;yd=oe+532|0;zd=oe+512|0;jd=oe+508|0;vd=oe+504|0;Zc=oe+488|0;Md=oe+48|0;Vc=oe+456|0;Rc=oe+444|0;Kd=oe+8|0;sd=oe+440|0;Id=oe+412|0;Hd=oe;zc=f+4|0;s=c[(zc&p)>>2]|0;le=c[(f&p)>>2]|0;Jc=a[(le&n)+62>>0]|0;Nc=f+8|0;z=c[(Nc&p)>>2]|0;ne=le+32|0;l=ne;m=c[(l&p)>>2]|0;l=c[(l&p)+4>>2]|0;me=f+80|0;a:do if((c[(me&p)>>2]|0)==7){y=le+65|0;z=f+44|0;r=m;g=0;t=0;m=0;ie=1317}else{c[(me&p)>>2]=0;de=f+136|0;c[(de&p)>>2]=0;c[(de&p)+4>>2]=0;de=f+20|0;c[(de&p)>>2]=0;c[(le&p)+452>>2]=0;Cc=le+240|0;b:do if(!(c[(Cc&p)>>2]|0)){be=le+292|0;if(c[(be&p)>>2]|0){r=c[(f&p)+124>>2]|0;g=le+300|0;y=c[(g&p)>>2]|0;if(!r)yc=g;else{yc=g;y=(r>>>0)%(y>>>0)|0}}else{yc=le+300|0;y=0}he=f+76|0;ge=le+65|0;Zd=le+296|0;sb=f+176|0;tb=f+184|0;ub=f+92|0;vb=le+80|0;wb=le+84|0;xb=Jc&255;yb=Jc<<24>>24==1;zb=le+88|0;Ab=f+60|0;_d=f+144|0;fe=f+86|0;je=f+44|0;Bb=f+12|0;Cb=Uc+4|0;Db=Uc+16|0;Eb=Uc+12|0;Fb=Uc+25|0;Gb=Uc+20|0;Hb=f+200|0;Ib=f+56|0;$d=f+72|0;Jb=Jd+16|0;Kb=Jd+8|0;Lb=Jd+24|0;Mb=f+87|0;ae=le+156|0;Nb=le+500|0;Ob=le+496|0;ee=le+63|0;Pb=le+488|0;Qb=le+504|0;Rb=le+512|0;Sb=le+70|0;Tb=le+24|0;Ub=le+20|0;Xd=le+16|0;Vb=le+4|0;Yd=f+88|0;Wb=f+104|0;Xb=f+152|0;Yb=f+160|0;Zb=le+152|0;_b=le+64|0;$b=wd+4|0;cc=wd+6|0;dc=wd+8|0;ec=xd+4|0;fc=xd+8|0;gc=le+212|0;hc=le+208|0;ic=f+116|0;kc=yd+4|0;nc=yd+6|0;oc=yd+8|0;qc=$c+8|0;sc=$c+32|0;uc=$c+24|0;vc=$c+16|0;wc=$c+12|0;xc=zd+4|0;Y=zd+6|0;Z=zd+8|0;_=qd+8|0;$=qd+32|0;aa=qd+24|0;ea=qd+12|0;ga=qd+16|0;ha=le+164|0;ia=Zc+8|0;ja=Zc+4|0;ka=le+145|0;la=Zc+12|0;ma=Sd+4|0;na=Sd+12|0;oa=Sd+16|0;pa=Sd+20|0;qa=Sd+24|0;ra=Sd+28|0;sa=Sd+8|0;ta=Sd+40|0;ua=Sd+44|0;va=Sd+48|0;wa=Sd+52|0;xa=Sd+56|0;ya=Sd+60|0;za=Sd+64|0;Aa=Sd+65|0;Ba=le+128|0;Ca=f+28|0;Da=f+36|0;Ea=f+32|0;Fa=f+196|0;Ga=Vc+4|0;Ha=Vc+8|0;Ia=Md+8|0;Ja=Md+32|0;Ka=Md+24|0;La=Vc+20|0;Ma=Vc+12|0;Na=Vc+16|0;Oa=Vc+24|0;Pa=Rc+8|0;Qa=Rc+4|0;Ra=le+148|0;Sa=le+176|0;Ta=le+72|0;Ua=le+67|0;Va=Tc+20|0;Wa=Tc+24|0;Xa=Tc+4|0;Ya=Tc+16|0;Za=le+304|0;_a=le+328|0;$a=Kd+32|0;ab=Kd+8|0;bb=Kd+24|0;cb=le+308|0;db=Id+20|0;eb=le+69|0;ce=f+168|0;fb=qd+4|0;gb=qd+8|0;hb=qd+12|0;ib=qd+16|0;jb=qd+20|0;kb=qd+24|0;lb=qd+25|0;mb=le+180|0;nb=Od+32|0;ob=Od+8|0;pb=Od+12|0;qb=Od+16|0;rb=Od+24|0;W=0;X=0;g=0;u=0;t=c[(he&p)>>2]|0;x=0;c:while(1){r=m;d:while(1){if(a[(ge&n)>>0]|0){y=ge;z=je;m=x;ie=1317;break a}m=g+1|0;if(!(a[(s+(t*20|0)&n)+2>>0]&2))L=u;else{u=c[(s+(t*20|0)&p)+8>>2]|0;g=z+(u*40|0)|0;u=z+(u*40|0)+8|0;if(b[(u&o)>>1]&9312)vg(g);b[(u&o)>>1]=4;L=g}C=s+(t*20|0)|0;J=a[(C&n)>>0]|0;u=J&255;e:do switch(u|0){case 17:{g=m;m=r;u=L;ie=22;break d}case 18:{g=m;m=r;u=L;ie=23;break d}case 20:{g=m;m=r;ie=24;break d}case 21:{g=m;m=r;u=L;ie=25;break d}case 22:{g=m;m=r;u=L;ie=26;break d}case 23:{g=m;m=r;u=L;r=t;ie=27;break d}case 29:{g=m;m=r;r=t;ie=65;break d}case 30:{g=m;m=r;u=L;r=t;ie=66;break d}case 28:{g=m;m=r;u=L;r=t;ie=60;break d}case 32:{g=m;m=r;r=t;ie=72;break d}case 24:{g=m;m=r;u=L;r=t;ie=28;break d}case 25:{g=m;m=r;u=L;r=t;ie=44;break d}case 26:{g=m;m=r;u=L;r=t;ie=45;break d}case 133:{g=m;m=r;u=L;r=t;ie=46;break d}case 97:{a[(C&n)>>0]=27;C=s+(t*20|0)+16|0;v=c[(C&p)>>2]|0;if(!v)g=0;else{g=v;while(1)if(!(a[(g&n)>>0]|0))break;else g=g+1|0;g=g-v&1073741823}w=s+(t*20|0)+4|0;c[(w&p)>>2]=g;if(yb)u=0;else{u=Xg(L,v,-1,1,0)|0;if((u|0)==18){g=m;m=r;u=x;ie=1316;break c}if(Yl(L,xb)|0){y=ge;z=je;g=m;m=x;ie=1317;break a}c[(L&p)+24>>2]=0;g=L+8|0;b[(g&o)>>1]=e[(g&o)>>1]|2048;g=s+(t*20|0)+1|0;if((a[(g&n)>>0]|0)==-1)mg(le,c[(C&p)>>2]|0);a[(g&n)>>0]=-1;v=c[(L&p)+16>>2]|0;c[(C&p)>>2]=v;g=c[(L&p)+12>>2]|0;c[(w&p)>>2]=g}if((g|0)>(c[(zb&p)>>2]|0)){g=m;m=r;u=x;ie=1316;break c}else ie=57;break}case 31:{g=m;m=r;u=L;r=t;ie=67;break d}case 34:{g=m;m=r;r=t;ie=79;break d}case 35:{g=m;m=r;u=x;ie=80;break c}case 33:{g=m;m=r;ie=74;break d}case 94:{g=m;m=r;ie=94;break d}case 93:case 92:case 91:case 90:case 89:{g=m;P=C;m=r;r=t;ie=112;break d}case 27:{v=c[(s+(t*20|0)&p)+16>>2]|0;g=c[(s+(t*20|0)&p)+4>>2]|0;u=0;ie=57;break}case 16:{t=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;u=0;ie=19;break}case 36:{g=m;m=r;J=L;r=t;ie=166;break d}case 1:{V=a[(s+(t*20|0)&n)+3>>0]|0;C=V&255;A=c[(Bb&p)>>2]|0;g=z+((c[(s+(t*20|0)&p)+12>>2]|0)*40|0)|0;c[(Uc&p)>>2]=g;if(V<<24>>24){g=0;u=z+((c[(s+(t*20|0)&p)+8>>2]|0)*40|0)|0;while(1){c[(A+(g<<2)&p)>>2]=u;if((b[(u&o)+8>>1]&4096)!=0?(Vl(u)|0)!=0:0){y=ge;z=je;g=m;m=x;ie=1317;break a}g=g+1|0;if((g|0)>=(C|0))break;else u=u+40|0}g=c[(Uc&p)>>2]|0}V=c[(s+(t*20|0)&p)+16>>2]|0;c[(Cb&p)>>2]=V;c[(Db&p)>>2]=t;c[(Eb&p)>>2]=f;U=g+8|0;b[(U&o)>>1]=e[(U&o)>>1]&48640|1;a[(Fb&n)>>0]=0;U=ne;c[(U&p)>>2]=r;c[(U&p)+4>>2]=l;mc[c[(V&p)+12>>2]&63](Uc,C,A);l=ne;r=c[(l&p)>>2]|0;l=c[(l&p)+4>>2]|0;if(!(a[(Fb&n)>>0]|0))g=0;else{if(!(c[(Gb&p)>>2]|0))g=0;else{c[(ke&p)>>2]=Sg(c[(Uc&p)>>2]|0,1)|0;dh(je,le,10344,ke);g=c[(Gb&p)>>2]|0}em(f,t,c[(s+(t*20|0)&p)+4>>2]|0)}Yl(c[(Uc&p)>>2]|0,xb)|0;w=c[(Uc&p)>>2]|0;v=e[(w&o)+8>>1]|0;if(v&18){u=c[(w&p)+12>>2]|0;if(v&16384)u=(c[(w&p)>>2]|0)+u|0;if((u|0)>(c[((c[(w&p)+32>>2]|0)&p)+88>>2]|0)){g=m;m=r;u=x;ie=1316;break c}else{C=L;T=t;u=g}}else{C=L;T=t;u=g}break}case 88:case 87:case 86:case 85:{g=m;H=C;m=r;r=t;ie=184;break d}case 39:{g=m;m=r;J=L;r=t;ie=208;break d}case 37:{g=m;m=r;u=L;r=t;ie=202;break d}case 38:{g=m;m=r;J=L;r=t;ie=203;break d}case 83:case 80:case 81:case 82:case 78:case 79:{g=m;I=J;m=r;u=L;ie=213;break d}case 40:{V=c[(s+(t*20|0)&p)+4>>2]|0;g=z+(V*40|0)|0;if(!(b[(z+(V*40|0)&o)+8>>1]&16384))u=0;else u=Rg(g)|0;gm(g,c[(s+(t*20|0)&p)+8>>2]&255,Jc);C=L;T=t;break}case 41:{g=m;m=r;u=L;r=t;ie=248;break d}case 42:{g=m;m=r;u=L;r=t;ie=249;break d}case 43:{g=m;m=r;u=L;ie=256;break d}case 71:case 72:{g=m;m=r;r=t;ie=261;break d}case 76:{g=m;m=r;u=L;r=t;ie=286;break d}case 19:{g=m;m=r;r=t;ie=268;break d}case 96:{g=m;m=r;r=t;ie=273;break d}case 44:{g=m;m=r;u=L;r=t;ie=278;break d}case 46:case 45:{g=m;m=r;u=L;r=t;ie=281;break d}case 77:{g=m;m=r;u=L;r=t;ie=288;break d}case 47:{g=m;m=r;u=L;ie=290;break d}case 48:{g=m;m=r;u=L;r=t;ie=368;break d}case 49:{g=m;m=r;ie=371;break d}case 50:{E=c[(c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]&p)>>2]|0;f:do if(c[(E&p)+60>>2]|0){g=qm(E)|0;if(!g){K=E+76|0;H=E+44|0;F=E+72|0;v=0;u=0;g:while(1){C=b[(K&o)>>1]|0;J=c[(E+(C<<16>>16<<2)&p)+120>>2]|0;if(!(a[(J&n)+5>>0]|0)){if(!(a[(J&n)+2>>0]|0)){v=jw(e[(J&o)+18>>1]|0,0,v|0,u|0)|0;u=G}}else{v=jw(e[(J&o)+18>>1]|0,0,v|0,u|0)|0;u=G;while(1){if(!(C<<16>>16))break g;if(J){Bg(c[(J&p)+68>>2]|0);C=b[(K&o)>>1]|0}C=C+-1<<16>>16;b[(K&o)>>1]=C;b[(H&o)>>1]=0;a[(F&n)>>0]=d[(F&n)>>0]&249;J=C<<16>>16;A=E+(J<<1)+78|0;I=b[(A&o)>>1]|0;J=c[(E+(J<<2)&p)+120>>2]|0;if((I&65535)<(e[(J&o)+18>>1]|0)){C=I;break}}b[(A&o)>>1]=C+1<<16>>16;J=b[(K&o)>>1]|0;C=J;J=c[(E+(J<<16>>16<<2)&p)+120>>2]|0}C=b[(E+(C<<16>>16<<1)&o)+78>>1]|0;A=c[(J&p)+56>>2]|0;if(C<<16>>16==(b[(J&o)+18>>1]|0)){g=d[(J&n)+6>>0]|0;g=rm(E,d[(A+g&n)+9>>0]<<16|d[(A+g&n)+8>>0]<<24|d[(A+g&n)+10>>0]<<8|d[(A+g&n)+11>>0])|0}else{g=(C&65535)<<1;V=c[(J&p)+64>>2]|0;g=(d[(V+g&n)>>0]<<8|d[(V+(g|1)&n)>>0])&e[(J&o)+20>>1];g=rm(E,d[(A+g&n)+1>>0]<<16|d[(A+g&n)>>0]<<24|d[(A+g&n)+2>>0]<<8|d[(A+g&n)+3>>0])|0}if(g){v=0;u=0;break f}}g=qm(E)|0}else{v=0;u=0}}else{g=0;v=0;u=0}while(0);C=L;c[(C&p)>>2]=v;c[(C&p)+4>>2]=u;C=L;T=t;u=g;break}case 2:{O=c[(s+(t*20|0)&p)+4>>2]|0;v=c[(s+(t*20|0)&p)+16>>2]|0;if(!O){g=m;m=r;r=t;ie=446;break d}g=c[(Pb&p)>>2]|0;if(!g){s=v;g=m;m=r;u=x;ie=460;break c}else u=0;while(1){if(!(dd(c[(g&p)>>2]|0,v)|0)){M=g;break}g=c[(g&p)+24>>2]|0;if(!g){s=v;g=m;m=r;u=x;ie=460;break c}else u=u+1|0}H=(O|0)==1;if((c[(ae&p)>>2]|0)>0&H){g=m;m=r;u=x;ie=462;break c}F=M+24|0;if(!(c[(F&p)>>2]|0)){A=(a[(Sb&n)>>0]|0)!=0;if(A&H){g=tm(f,1)|0;if(g)break a;a[(ee&n)>>0]=1;if((Rl(f)|0)==5){g=t;ie=467;break c}a[(Sb&n)>>0]=0;A=1;K=u;u=c[(me&p)>>2]|0}else ie=469}else{A=0;ie=469}if((ie|0)==469){ie=0;K=(c[(Ob&p)>>2]|0)-u+-1|0;if((O|0)==2){C=(c[(Tb&p)>>2]|0)>>>1&1;if((c[(Ub&p)>>2]|0)>0){J=C^1;I=0;while(1){u=Il(c[((c[(Xd&p)>>2]|0)+(I<<4)&p)+4>>2]|0,516,J)|0;I=I+1|0;if(u){g=m;m=r;ie=1318;break c}g=c[(Ub&p)>>2]|0;if((I|0)>=(g|0)){ie=475;break}}}}else{g=c[(Ub&p)>>2]|0;C=0;ie=475}if((ie|0)==475){ie=0;if((g|0)>0){E=0;do{u=um(c[((c[(Xd&p)>>2]|0)+(E<<4)&p)+4>>2]|0,O,K)|0;E=E+1|0;if(u){g=m;m=r;ie=1318;break c}}while((E|0)<(c[(Ub&p)>>2]|0))}}if(!C)u=0;else{C=c[(Vb&p)>>2]|0;if(C)do{V=C+88|0;b[(V&o)>>1]=b[(V&o)>>1]|8;C=c[(C&p)+52>>2]|0}while((C|0)!=0);Eg(le);c[(Tb&p)>>2]=c[(Tb&p)>>2]|2;u=0}}C=c[(Pb&p)>>2]|0;if((C|0)!=(M|0))do{c[(Pb&p)>>2]=c[(C&p)+24>>2];mg(le,C);c[(Ob&p)>>2]=(c[(Ob&p)>>2]|0)+-1;C=c[(Pb&p)>>2]|0}while((C|0)!=(M|0));if(H){c[(Pb&p)>>2]=c[(F&p)>>2];mg(le,M);if(A){C=L;T=t;break e}else{g=m;C=O;m=r;A=K;E=L;r=t;ie=486;break d}}else{V=M+8|0;U=c[(V&p)+4>>2]|0;T=Qb;c[(T&p)>>2]=c[(V&p)>>2];c[(T&p)+4>>2]=U;T=M+16|0;U=c[(T&p)+4>>2]|0;V=Rb;c[(V&p)>>2]=c[(T&p)>>2];c[(V&p)+4>>2]=U;if(A){C=L;T=t;break e}else{C=O;g=m;m=r;A=K;E=L;r=t;ie=488;break d}}}case 3:{u=x;ie=489;break c}case 4:{v=s+(t*20|0)+8|0;g=c[(v&p)>>2]|0;if((g|0)!=0?(c[(Tb&p)>>2]&33554432|0)!=0:0){g=m;m=r;u=8;ie=1318;break c}I=s+(t*20|0)+4|0;J=c[((c[(Xd&p)>>2]|0)+(c[(I&p)>>2]<<4)&p)+4>>2]|0;if(!J){v=0;u=0;g=0}else{u=yg(J,g)|0;if((u|0)==5){g=t;ie=508;break c}else if(u){g=m;m=r;ie=1318;break c}do if((c[(v&p)>>2]|0)!=0?(b[(Yd&o)>>1]&32)!=0:0){if((a[(ee&n)>>0]|0)!=0?(c[(Zb&p)>>2]|0)<=1:0){g=0;break}g=c[(Wb&p)>>2]|0;if(!g){g=(c[(Nb&p)>>2]|0)+1|0;c[(Nb&p)>>2]=g;g=(c[(Ob&p)>>2]|0)+g|0;c[(Wb&p)>>2]=g}g=sm(le,0,g+-1|0)|0;if(!g){g=c[(Wb&p)>>2]|0;V=c[(J&p)+4>>2]|0;c[(V&p)+4>>2]=c[(J&p)>>2];g=hl(c[(V&p)>>2]|0,g)|0}V=Qb;U=c[(V&p)+4>>2]|0;T=Xb;c[(T&p)>>2]=c[(V&p)>>2];c[(T&p)+4>>2]=U;T=Rb;U=c[(T&p)+4>>2]|0;V=Yb;c[(V&p)>>2]=c[(T&p)>>2];c[(V&p)+4>>2]=U}else g=0;while(0);v=c[(J&p)+4>>2]|0;c[(v&p)+4>>2]=c[(J&p)>>2];v=c[((c[(v&p)+12>>2]|0)&p)+56>>2]|0;v=d[(v&n)+41>>0]<<16|d[(v&n)+40>>0]<<24|d[(v&n)+42>>0]<<8|d[(v&n)+43>>0];u=c[((c[((c[(Xd&p)>>2]|0)+(c[(I&p)>>2]<<4)&p)+12>>2]|0)&p)+4>>2]|0}if(a[(s+(t*20|0)&n)+3>>0]|0){if((v|0)!=(c[(s+(t*20|0)&p)+12>>2]|0)){g=m;s=I;m=r;u=x;ie=522;break c}if((u|0)!=(c[(s+(t*20|0)&p)+16>>2]|0)){g=m;s=I;m=r;u=x;ie=522;break c}else{C=L;T=t;u=g}}else{C=L;T=t;u=g}break}case 53:{g=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;if((g|0)!=0?(c[(g&p)+28>>2]|0)==(c[(s+(t*20|0)&p)+8>>2]|0):0){v=s+(t*20|0)+3|0;u=0;ie=548}else ie=536;break}case 51:{g=m;m=r;u=L;r=t;ie=525;break d}case 52:{A=s+(t*20|0)+4|0;g=c[(A&p)>>2]|0;v=c[(Xd&p)>>2]|0;C=c[(s+(t*20|0)&p)+12>>2]|0;w=z+(C*40|0)|0;u=Vg(w)|0;V=w;c[(V&p)>>2]=u;c[(V&p)+4>>2]=G;C=z+(C*40|0)+8|0;b[(C&o)>>1]=e[(C&o)>>1]&48640|4;C=s+(t*20|0)+8|0;u=Dg(c[(v+(g<<4)&p)+4>>2]|0,c[(C&p)>>2]|0,u)|0;C=c[(C&p)>>2]|0;if((C|0)==1){c[(c[(v+(g<<4)&p)+12>>2]&p)>>2]=c[(w&p)>>2];c[(Tb&p)>>2]=c[(Tb&p)>>2]|2}else if((C|0)==2)a[((c[(v+(g<<4)&p)+12>>2]|0)&n)+76>>0]=c[(w&p)>>2];if((c[(A&p)>>2]|0)==1){g=c[(Vb&p)>>2]|0;if(g)do{V=g+88|0;b[(V&o)>>1]=b[(V&o)>>1]|8;g=c[(g&p)+52>>2]|0}while((g|0)!=0);b[(Yd&o)>>1]=b[(Yd&o)>>1]&-9;C=L;T=t}else{C=L;T=t}break}case 55:case 54:{ie=536;break}case 57:case 56:{g=xm(f,c[(s+(t*20|0)&p)+4>>2]|0,c[(s+(t*20|0)&p)+8>>2]|0,-1,1)|0;if(!g){y=ge;z=je;g=m;m=x;ie=1317;break a}a[(g&n)+25>>0]=1;J=g+27|0;a[(J&n)>>0]=a[(J&n)>>0]|1;v=g+4|0;I=s+(t*20|0)+3|0;u=zm(c[(le&p)>>2]|0,0,le,v,d[(I&n)>>0]|5,1054)|0;do if(!u){u=yg(c[(v&p)>>2]|0,1)|0;if(!u){A=c[(s+(t*20|0)&p)+16>>2]|0;C=c[(v&p)>>2]|0;if(!A){u=ym(C,1,1,0,c[(g&p)>>2]|0)|0;a[(J&n)>>0]=a[(J&n)>>0]|4;break}u=Am(C,ud,d[(I&n)>>0]|2)|0;if(!u){c[(g&p)+8>>2]=A;u=ym(c[(v&p)>>2]|0,c[(ud&p)>>2]|0,1,A,c[(g&p)>>2]|0)|0}a[(J&n)>>0]=a[(J&n)>>0]&-5}}while(0);a[(J&n)>>0]=((a[(I&n)>>0]|0)!=8&1)<<3&255|a[(J&n)>>0]&-9;C=L;T=t;break}case 58:{g=m;m=r;ie=558;break d}case 60:{g=m;m=r;u=L;ie=568;break d}case 61:{g=m;m=r;u=L;r=t;ie=570;break d}case 59:{g=m;m=r;u=L;r=t;ie=566;break d}case 65:case 64:case 63:case 62:{g=m;K=u;m=r;r=t;ie=571;break d}case 66:{g=m;m=r;u=L;r=t;ie=596;break d}case 69:case 68:case 67:{g=m;H=C;m=r;u=L;ie=597;break d}case 73:{g=m;m=r;u=L;r=t;ie=624;break d}case 70:{V=c[(s+(t*20|0)&p)+12>>2]|0;g=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;u=c[(g&p)>>2]|0;c[(Cd&p)>>2]=0;V=z+(V*40|0)|0;U=c[(V&p)>>2]|0;V=c[(V&p)+4>>2]|0;u=Cm(u,0,U,V,0,Cd)|0;v=g+48|0;c[(v&p)>>2]=U;c[(v&p)+4>>2]=V;a[(g&n)+25>>0]=0;c[(g&p)+60>>2]=0;a[(g&n)+26>>0]=0;v=c[(Cd&p)>>2]|0;if(v)t=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;c[(g&p)+12>>2]=v;C=L;T=t;break}case 74:{H=Pd;c[(H&p)>>2]=0;c[(H&p)+4>>2]=0;c[(Dd&p)>>2]=0;H=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;g=c[(H&p)>>2]|0;if(!g){u=0;v=0;g=0}else{K=H+27|0;do if(!(a[(K&n)>>0]&2)){u=Hm(g,Dd)|0;if(u){g=m;m=r;ie=1318;break c}if(c[(Dd&p)>>2]|0){V=Pd;c[(V&p)>>2]=1;c[(V&p)+4>>2]=0;break}km(c[(H&p)>>2]|0,Pd);u=Pd;g=c[(u&p)>>2]|0;u=c[(u&p)+4>>2]|0;if((g|0)==-1&(u|0)==2147483647){a[(K&n)>>0]=a[(K&n)>>0]|2;break}else{U=jw(g|0,u|0,1,0)|0;V=Pd;c[(V&p)>>2]=U;c[(V&p)+4>>2]=G;break}}while(0);J=c[(s+(t*20|0)&p)+12>>2]|0;if(J){g=c[(sb&p)>>2]|0;if(!g)C=z;else{while(1){u=c[(g&p)+4>>2]|0;if(!u)break;else g=u}C=c[(g&p)+16>>2]|0}I=C+(J*40|0)|0;A=Vg(I)|0;g=G;V=I;c[(V&p)>>2]=A;c[(V&p)+4>>2]=g;V=C+(J*40|0)+8|0;b[(V&o)>>1]=e[(V&o)>>1]&48640|4;if((A|0)==-1&(g|0)==2147483647){g=m;m=r;u=13;ie=1318;break c}if(a[(K&n)>>0]&2){g=m;m=r;u=13;ie=1318;break c}J=Pd;u=c[(J&p)>>2]|0;J=c[(J&p)+4>>2]|0;C=jw(A|0,g|0,1,0)|0;g=G;if((J|0)<(g|0)|(J|0)==(g|0)&u>>>0>>0){V=Pd;c[(V&p)>>2]=C;c[(V&p)+4>>2]=g}else{C=u;g=J}V=I;c[(V&p)>>2]=C;c[(V&p)+4>>2]=g}h:do if(!(a[(K&n)>>0]&2))g=0;else{u=0;while(1){cd(8,Pd);V=Pd;V=jw(c[(V&p)>>2]|0,c[(V&p)+4>>2]&1073741823|0,1,0)|0;g=G;U=Pd;c[(U&p)>>2]=V;c[(U&p)+4>>2]=g;g=Cm(c[(H&p)>>2]|0,0,V,g,0,Dd)|0;if(c[(Dd&p)>>2]|g)break h;u=u+1|0;if((u|0)>=100){g=m;m=r;u=13;ie=1318;break c}}}while(0);a[(H&n)+26>>0]=0;c[(H&p)+60>>2]=0;v=Pd;u=c[(v&p)>>2]|0;v=c[(v&p)+4>>2]|0}C=L;c[(C&p)>>2]=u;c[(C&p)+4>>2]=v;C=L;T=t;u=g;break}case 84:case 75:{g=m;C=J;m=r;u=L;r=t;ie=647;break d}case 95:{g=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;u=Jm(c[(g&p)>>2]|0)|0;c[(g&p)+60>>2]=0;if((((u|0)==0?(Gc=c[(gc&p)>>2]|0,(Gc|0)!=0):0)?(Hc=c[(s+(t*20|0)&p)+16>>2]|0,(Hc|0)!=0):0)?(a[(g&n)+27>>0]&4)!=0:0){V=g+48|0;bc[Gc&1](c[(hc&p)>>2]|0,9,c[((c[(Xd&p)>>2]|0)+(a[(g&n)+24>>0]<<4)&p)>>2]|0,Hc,c[(V&p)>>2]|0,c[(V&p)+4>>2]|0)}if(!(c[(s+(t*20|0)&p)+8>>2]&1)){C=L;T=t}else{c[(ub&p)>>2]=(c[(ub&p)>>2]|0)+1;C=L;T=t}break}case 98:{g=m;m=r;u=L;r=t;ie=671;break d}case 99:{g=m;m=r;u=L;r=t;ie=672;break d}case 100:{v=c[(s+(t*20|0)&p)+8>>2]|0;C=z+(v*40|0)|0;g=c[((c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0)&p)+56>>2]|0;if(!(a[(g&n)+56>>0]|0)){u=c[(g&p)+36>>2]|0;g=u;u=u+8|0}else{V=c[(g&p)+20>>2]|0;u=c[((c[(V&p)+8>>2]|0)&p)+4>>2]|0;V=c[(V&p)+12>>2]|0;g=V+(u*56|0)+20|0;u=c[(V+(u*56|0)&p)+32>>2]|0}g=c[(g&p)>>2]|0;if(!(fh(C,g)|0)){c[(z+(v*40|0)&p)+12>>2]=g;V=z+(v*40|0)+8|0;b[(V&o)>>1]=e[(V&o)>>1]&48640|16;kw(c[(z+(v*40|0)&p)+16>>2]|0,u|0,g|0)|0;u=0}else u=7;c[((c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+12>>2]<<2)&p)>>2]|0)&p)+60>>2]=0;T=t;break}case 102:case 101:{v=c[(s+(t*20|0)&p)+8>>2]|0;J=z+(v*40|0)|0;A=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;C=c[(A&p)>>2]|0;A=A+27|0;if(a[(A&n)>>0]&4){lm(C,ed);g=c[(ed&p)>>2]|0;if(g>>>0>(c[(zb&p)>>2]|0)>>>0){g=m;m=r;u=x;ie=1316;break c}}else{km(C,fd);T=fd;g=c[(T&p)>>2]|0;T=c[(T&p)+4>>2]|0;V=c[(zb&p)>>2]|0;U=((V|0)<0)<<31>>31;if((T|0)>(U|0)|(T|0)==(U|0)&g>>>0>V>>>0){g=m;m=r;u=x;ie=1316;break c}c[(ed&p)>>2]=g}if(fh(J,g>>>0>32?g:32)|0){y=ge;z=je;g=m;m=x;ie=1317;break a}c[(z+(v*40|0)&p)+12>>2]=g;g=z+(v*40|0)+8|0;b[(g&o)>>1]=e[(g&o)>>1]&48640|16;g=c[(ed&p)>>2]|0;u=c[(z+(v*40|0)&p)+16>>2]|0;if(!(a[(A&n)>>0]&4))u=Lm(C,0,g,u,0)|0;else u=Dh(C,0,g,u)|0;a[(z+(v*40|0)&n)+10>>0]=1;C=J;T=t;break}case 103:{v=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;w=v+25|0;if(a[(w&n)>>0]|0){g=m;m=r;u=L;r=t;ie=700;break d}do if(!(a[(v&n)+26>>0]|0)){g=c[(v&p)+32>>2]|0;if(g){V=c[(g&p)>>2]|0;u=rc[c[((c[(V&p)>>2]|0)&p)+48>>2]&127](g,Rd)|0;Mm(f,V);break}if((a[((c[(v&p)>>2]|0)&n)+73>>0]|0)!=1){u=jm(v)|0;if(u){g=m;m=r;ie=1318;break c}if(a[(w&n)>>0]|0){g=m;m=r;u=L;r=t;ie=708;break d}}km(c[(v&p)>>2]|0,Rd);u=0}else{U=v+48|0;V=c[(U&p)+4>>2]|0;u=Rd;c[(u&p)>>2]=c[(U&p)>>2];c[(u&p)+4>>2]=V;u=0}while(0);V=Rd;T=c[(V&p)+4>>2]|0;C=L;c[(C&p)>>2]=c[(V&p)>>2];c[(C&p)+4>>2]=T;C=L;T=t;break}case 108:{ie=715;break}case 104:{g=m;m=r;u=L;r=t;ie=711;break d}case 107:case 106:{c[(ic&p)>>2]=(c[(ic&p)>>2]|0)+1;ie=715;break}case 105:{T=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;u=c[(T&p)>>2]|0;c[(Ed&p)>>2]=0;u=Hm(u,Ed)|0;V=c[(Ed&p)>>2]|0;a[(T&n)+25>>0]=V;a[(T&n)+26>>0]=0;c[(T&p)+60>>2]=0;T=c[(s+(t*20|0)&p)+8>>2]|0;C=L;T=(T|0)>0&(V|0)!=0?T+-1|0:t;break}case 7:case 6:{if(!(c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0)){g=m;m=r;S=z;T=s;U=W;V=X;u=L;r=t;break d}else ie=765;break}case 5:{g=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;c[(Fd&p)>>2]=0;w=c[(g&p)+56>>2]|0;if(a[(w&n)+56>>0]|0){u=Wm(c[(w&p)+20>>2]|0,Fd)|0;ie=766;break e}u=w+36|0;v=c[(u&p)>>2]|0;V=v+4|0;c[(u&p)>>2]=c[(V&p)>>2];c[(V&p)>>2]=0;if(!((c[(w&p)+40>>2]|0)!=0|(v|0)==0))mg(le,v);c[(Fd&p)>>2]=(c[(u&p)>>2]|0)==0&1;u=0;ie=766;break}case 9:case 8:{ie=765;break}case 110:case 109:{A=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;S=c[(s+(t*20|0)&p)+8>>2]|0;u=c[(A&p)>>2]|0;C=s+(t*20|0)+3|0;if(a[(C&n)>>0]&1)c[(ub&p)>>2]=(c[(ub&p)>>2]|0)+1;if((b[(z+(S*40|0)&o)+8>>1]&16384)!=0?(Ud=Rg(z+(S*40|0)|0)|0,(Ud|0)!=0):0){g=m;m=r;s=Ud;u=x;ie=1309;break c}H=c[(A&p)+56>>2]|0;T=z+(S*40|0)+12|0;P=c[(T&p)>>2]|0;if(!H){if(!(a[(C&n)>>0]&16))g=0;else g=c[(A&p)+12>>2]|0;u=Im(u,c[(z+(S*40|0)&p)+16>>2]|0,P,((P|0)<0)<<31>>31,10360,0,0,c[(s+(t*20|0)&p)+12>>2]|0,g)|0;c[(A&p)+60>>2]=0;C=L;T=t;break e}C=P;g=((P|0)<0)<<31>>31;A=0;do{A=A+1|0;C=mw(C|0,g|0,7)|0;g=G}while(((C|0)!=0|(g|0)!=0)&(A|0)<9);K=P+8|0;I=A+P|0;M=H+4|0;A=c[(M&p)>>2]|0;do if(!A)u=0;else{if(!(c[(H&p)+40>>2]|0)){C=H+44|0;V=c[(C&p)>>2]|0;if((V|0)<=(A|0)?!((c[2265]|0)!=0?(V|0)>(c[(H&p)>>2]|0):0):0){u=0;break}}else{V=c[(H&p)+48>>2]|0;if(!((V|0)!=0&(V+K|0)>(A|0))){u=0;break}C=H+44|0}u=Om(H)|0;c[(C&p)>>2]=0;c[(H&p)+48>>2]=0}while(0);C=H+36|0;J=H+44|0;c[(J&p)>>2]=(c[(J&p)>>2]|0)+I;J=H+8|0;if((I|0)>(c[(J&p)>>2]|0))c[(J&p)>>2]=I;E=H+40|0;J=c[(E&p)>>2]|0;if(!J){g=qg(K,((K|0)<0)<<31>>31)|0;if(!g){g=m;m=r;s=7;u=x;ie=1309;break c}c[(g&p)+4>>2]=c[(C&p)>>2]}else{g=H+48|0;I=c[(g&p)>>2]|0;K=I+K|0;F=H+52|0;H=c[(F&p)>>2]|0;if((K|0)>(H|0)){I=H;do I=I<<1;while((I|0)<(K|0));V=c[(M&p)>>2]|0;I=(I|0)>(V|0)?V:I;I=(I|0)<(K|0)?K:I;J=rg(J,I,((I|0)<0)<<31>>31)|0;if(!J){g=m;m=r;s=7;u=x;ie=1309;break c}A=J+((c[(C&p)>>2]|0)-(c[(E&p)>>2]|0))|0;c[(C&p)>>2]=A;c[(E&p)>>2]=J;c[(F&p)>>2]=I;I=c[(g&p)>>2]|0}else A=c[(C&p)>>2]|0;c[(g&p)>>2]=I+(P+15&-8);c[(J+I&p)+4>>2]=A-J;g=J+I|0}kw(g+8|0,c[(z+(S*40|0)&p)+16>>2]|0,c[(T&p)>>2]|0)|0;c[(g&p)>>2]=c[(T&p)>>2];c[(C&p)>>2]=g;C=L;T=t;break}case 112:{g=m;m=r;r=t;ie=801;break d}case 111:{v=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;g=c[(v&p)>>2]|0;c[(yd&p)>>2]=c[(v&p)+8>>2];b[(kc&o)>>1]=c[(s+(t*20|0)&p)+12>>2];a[(nc&n)>>0]=0;c[(oc&p)>>2]=z+((c[(s+(t*20|0)&p)+8>>2]|0)*40|0);u=Cm(g,yd,0,0,0,Gd)|0;if(!(c[(Gd&p)>>2]|u))u=Jm(g)|0;c[(v&p)+60>>2]=0;C=L;T=t;break}case 116:case 115:case 114:case 113:{u=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;c[(zd&p)>>2]=c[(u&p)+8>>2];b[(xc&o)>>1]=c[(s+(t*20|0)&p)+16>>2];a[(Y&n)>>0]=((J&255)<115)<<31>>31;c[(Z&p)>>2]=z+((c[(s+(t*20|0)&p)+12>>2]|0)*40|0);V=Sd;c[(V&p)>>2]=0;c[(V&p)+4>>2]=0;km(c[(u&p)>>2]|0,Sd);V=Sd;g=c[(V&p)>>2]|0;V=jw(g|0,c[(V&p)+4>>2]|0,-1,-1)|0;U=G;if(!(U>>>0>0|(U|0)==0&V>>>0>2147483646)){b[(_&o)>>1]=0;c[($&p)>>2]=le;c[(aa&p)>>2]=0;g=nm(c[(u&p)>>2]|0,0,g,1,qd)|0;if(!g){u=Km(c[(ea&p)>>2]|0,c[(ga&p)>>2]|0,zd,0)|0;if((b[(_&o)>>1]&9312)==0&(c[(aa&p)>>2]|0)==0)g=0;else{Qg(qd);g=0}}else u=0}else{c[(ke&p)>>2]=68730;c[(ke&p)+4>>2]=10788;bd(11,13600,ke);g=11;u=0}if((((a[(C&n)>>0]&1)==0?u+1|0:0-u|0)|0)>0){C=L;T=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;u=g}else{C=L;T=t;u=g}break}case 117:{O=L+8|0;b[(O&o)>>1]=1;if((c[(Zb&p)>>2]|0)>((c[(ha&p)>>2]|0)+1|0)){g=m;m=r;u=x;ie=832;break c}N=c[(s+(t*20|0)&p)+12>>2]|0;M=c[((c[(Xd&p)>>2]|0)+(N<<4)&p)+4>>2]|0;P=s+(t*20|0)+4|0;I=c[(P&p)>>2]|0;C=M+4|0;K=c[(C&p)>>2]|0;c[(K&p)+4>>2]=c[(M&p)>>2];c[(ke&p)>>2]=0;do if(!(c[(K&p)+8>>2]|0)){u=dl(K,I,ke,0)|0;if(!u){u=Xm(M,I,0)|0;if(u){g=c[(ke&p)>>2]|0;if(!g){A=0;break}Bg(c[(g&p)+68>>2]|0);A=0;break}if(I>>>0<=1){g=c[(ke&p)>>2]|0;pl(g,9);if(!g){u=0;A=0;break}Bg(c[(g&p)+68>>2]|0);u=0;A=0;break}if(!(a[(K&n)+17>>0]|0)){g=c[(ke&p)>>2]|0;u=Ym(c[(g&p)+52>>2]|0,g,c[(g&p)+72>>2]|0)|0;if(!g){A=0;break}Bg(c[(g&p)+68>>2]|0);A=0;break}J=c[(C&p)>>2]|0;c[(J&p)+4>>2]=c[(M&p)>>2];J=c[((c[(J&p)+12>>2]|0)&p)+56>>2]|0;J=d[(J&n)+53>>0]<<16|d[(J&n)+52>>0]<<24|d[(J&n)+54>>0]<<8|d[(J&n)+55>>0];C=c[(ke&p)>>2]|0;if((J|0)==(I|0)){u=Ym(c[(C&p)+52>>2]|0,C,c[(C&p)+72>>2]|0)|0;if(C)Bg(c[(C&p)+68>>2]|0);if(!u)A=0;else{A=0;break}}else{if(C)Bg(c[(C&p)+68>>2]|0);u=dl(K,J,Sd,0)|0;if(u){A=0;break}C=c[(Sd&p)>>2]|0;u=Zm(K,C,1,0,I,0)|0;if(C)Bg(c[(C&p)+68>>2]|0);if(u){A=0;break}c[(Sd&p)>>2]=0;u=dl(K,J,Sd,0)|0;C=c[(Sd&p)>>2]|0;if(u){if(!C){A=0;break}}else u=Ym(c[(C&p)+52>>2]|0,C,c[(C&p)+72>>2]|0)|0;Bg(c[(C&p)+68>>2]|0);if(!u)A=J;else{A=0;break}}H=((c[2514]|0)>>>0)/((c[(K&p)+32>>2]|0)>>>0)|0;F=H+1|0;I=K+36|0;while(1){C=J+-1|0;if((C|0)==(F|0)){J=C;continue}if(C>>>0<2)E=0;else{E=J+-3|0;E=E-((E>>>0)%(((((c[(I&p)>>2]|0)>>>0)/5|0)+1|0)>>>0)|0)|0;E=((E+1|0)==(H|0)?3:2)+E|0}if((E|0)==(C|0))J=C;else break}u=Dg(M,4,C)|0}else A=0}else{u=262;A=0}while(0);b[(O&o)>>1]=4;V=L;c[(V&p)>>2]=A;c[(V&p)+4>>2]=((A|0)<0)<<31>>31;if((u|0)==0&(A|0)!=0){g=m;K=N;C=P;m=r;u=L;r=t;ie=865;break d}else{C=L;T=t}break}case 118:{c[(jd&p)>>2]=0;g=s+(t*20|0)+12|0;u=Xm(c[((c[(Xd&p)>>2]|0)+(c[(s+(t*20|0)&p)+8>>2]<<4)&p)+4>>2]|0,c[(s+(t*20|0)&p)+4>>2]|0,(c[(g&p)>>2]|0)!=0?jd:0)|0;g=c[(g&p)>>2]|0;if((g|0)!=0?(Ic=c[(jd&p)>>2]|0,c[(ub&p)>>2]=(c[(ub&p)>>2]|0)+Ic,(g|0)>0):0){C=z+(g*40|0)|0;T=C;T=jw(c[(T&p)>>2]|0,c[(T&p)+4>>2]|0,Ic|0,((Ic|0)<0)<<31>>31|0)|0;c[(C&p)>>2]=T;c[(C&p)+4>>2]=G;C=L;T=t}else{C=L;T=t}break}case 121:case 120:{c[(vd&p)>>2]=0;u=Am(c[((c[(Xd&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<4)&p)+4>>2]|0,vd,J<<24>>24==121?1:2)|0;T=c[(vd&p)>>2]|0;C=L;c[(C&p)>>2]=T;c[(C&p)+4>>2]=((T|0)<0)<<31>>31;C=L;T=t;break}case 119:{g=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;u=c[(g&p)+56>>2]|0;if(u){g=m;m=r;J=L;r=t;ie=878;break d}u=c[(g&p)>>2]|0;C=L;T=t;u=Xm(c[(u&p)>>2]|0,c[(u&p)+60>>2]|0,0)|0;break}case 123:{C=L;T=t;u=an(le,c[(s+(t*20|0)&p)+4>>2]|0)|0;break}case 124:{g=m;m=r;u=L;r=t;ie=886;break d}case 122:{g=m;m=r;J=L;r=t;ie=881;break d}case 126:{g=m;m=r;u=L;r=t;ie=895;break d}case 125:{g=m;m=r;J=L;r=t;ie=887;break d}case 127:{g=m;m=r;u=L;ie=903;break d}case 128:{g=m;m=r;J=L;ie=947;break d}case 129:{w=c[(s+(t*20|0)&p)+4>>2]|0;v=z+(w*40|0)|0;w=z+(w*40|0)+8|0;g=b[(w&o)>>1]|0;do if(g&32){E=c[(v&p)>>2]|0;u=E+26|0;g=b[(u&o)>>1]|0;if(!(g&2)){if(!(g&1)){g=E+8|0;c[(g&p)>>2]=kn(c[(g&p)>>2]|0)|0;g=b[(u&o)>>1]|0}b[(u&o)>>1]=g&65535|2}C=E+8|0;A=c[(C&p)>>2]|0;if(!A){g=b[(w&o)>>1]|0;break}w=A;v=c[(w&p)>>2]|0;w=c[(w&p)+4>>2]|0;V=c[(A&p)+8>>2]|0;c[(C&p)>>2]=V;if(!V)Zk(E);u=c[(s+(t*20|0)&p)+12>>2]|0;g=z+(u*40|0)|0;u=z+(u*40|0)+8|0;if(!(b[(u&o)>>1]&9312)){ie=g;c[(ie&p)>>2]=v;c[(ie&p)+4>>2]=w;b[(u&o)>>1]=4;u=0;ie=19;break e}else{Zg(g,v,w);u=0;ie=19;break e}}while(0);if(!(g&9312))b[(w&o)>>1]=1;else vg(v);t=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;u=0;ie=19;break}case 130:{g=m;m=r;u=L;ie=966;break d}case 131:{g=m;m=r;u=L;r=t;ie=993;break d}case 132:{g=m;m=r;u=L;r=t;ie=1009;break d}case 134:{g=m;m=r;J=L;r=t;ie=1010;break d}case 135:{g=m;m=r;u=L;r=t;ie=1015;break d}case 136:{g=m;m=r;r=t;ie=1022;break d}case 137:{g=m;m=r;u=L;r=t;ie=1028;break d}case 138:{g=m;m=r;u=L;r=t;ie=1030;break d}case 139:{g=m;m=r;J=L;r=t;ie=1032;break d}case 140:{g=m;m=r;u=L;r=t;ie=1034;break d}case 141:{g=m;m=r;u=L;r=t;ie=1036;break d}case 10:{V=a[(s+(t*20|0)&n)+3>>0]|0;g=V&255;u=c[(Bb&p)>>2]|0;if(V<<24>>24){v=0;w=z+((c[(s+(t*20|0)&p)+8>>2]|0)*40|0)|0;while(1){c[(u+(v<<2)&p)>>2]=w;v=v+1|0;if((v|0)>=(g|0))break;else w=w+40|0}}V=c[(s+(t*20|0)&p)+16>>2]|0;c[(Ga&p)>>2]=V;U=c[(s+(t*20|0)&p)+12>>2]|0;c[(Ha&p)>>2]=z+(U*40|0);U=z+(U*40|0)+12|0;c[(U&p)>>2]=(c[(U&p)>>2]|0)+1;b[(Ia&o)>>1]=1;c[(Ja&p)>>2]=le;c[(Ka&p)>>2]=0;c[(Vc&p)>>2]=Md;c[(La&p)>>2]=0;c[(Ma&p)>>2]=f;c[(Na&p)>>2]=t;a[(Oa&n)>>0]=0;mc[c[(V&p)+16>>2]&63](Vc,g,u);if(!(c[(La&p)>>2]|0))u=0;else{c[(ke&p)>>2]=Sg(Md,1)|0;dh(je,le,10344,ke);u=c[(La&p)>>2]|0}do if((a[(Oa&n)>>0]|0)!=0?(Mc=c[(s+((t+-1|0)*20|0)&p)+4>>2]|0,(Mc|0)!=0):0){g=z+(Mc*40|0)|0;v=z+(Mc*40|0)+8|0;if(!(b[(v&o)>>1]&9312)){V=g;c[(V&p)>>2]=1;c[(V&p)+4>>2]=0;b[(v&o)>>1]=4;break}else{Zg(g,1,0);break}}while(0);if((b[(Ia&o)>>1]&9312)==0&(c[(Ka&p)>>2]|0)==0){C=L;T=t}else{Qg(Md);C=L;T=t}break}case 11:{c[(Rc&p)>>2]=0;c[(Pa&p)>>2]=-1;c[(Qa&p)>>2]=-1;g=Wh(le,c[(s+(t*20|0)&p)+4>>2]|0,c[(s+(t*20|0)&p)+8>>2]|0,Qa,Pa)|0;if((g|0)==5){c[(Rc&p)>>2]=1;g=0}v=0;w=z+((c[(s+(t*20|0)&p)+12>>2]|0)*40|0)|0;while(1){C=c[(Rc+(v<<2)&p)>>2]|0;A=((C|0)<0)<<31>>31;u=w+8|0;if(!(b[(u&o)>>1]&9312)){V=w;c[(V&p)>>2]=C;c[(V&p)+4>>2]=A;b[(u&o)>>1]=4}else Zg(w,C,A);v=v+1|0;if((v|0)==3){C=L;T=t;u=g;break}else w=w+40|0}break}case 142:{C=c[(s+(t*20|0)&p)+4>>2]|0;v=z+(C*40|0)|0;u=Yk(v,c[(s+(t*20|0)&p)+16>>2]|0)|0;if(u){c[(ke&p)>>2]=Sg(v,1)|0;dh(je,le,10344,ke)}Yl(v,xb)|0;w=e[(z+(C*40|0)&o)+8>>1]|0;if(w&18){g=c[(z+(C*40|0)&p)+12>>2]|0;if(w&16384)g=(c[(v&p)>>2]|0)+g|0;if((g|0)>(c[((c[(z+(C*40|0)&p)+32>>2]|0)&p)+88>>2]|0)){g=m;m=r;u=x;ie=1316;break c}else{C=L;T=t}}else{C=L;T=t}break}case 12:{g=c[(s+(t*20|0)&p)+12>>2]|0;L=c[((c[(Xd&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<4)&p)+4>>2]|0;I=c[(c[(L&p)+4>>2]&p)>>2]|0;J=a[(I&n)+5>>0]|0;H=J&255;g=(g|0)==-1?H:g;do if((d[(I&n)+16>>0]|0)>2)g=H;else if((c[(c[(I&p)+64>>2]&p)>>2]|0)!=0?(V=I+72|0,U=c[(V&p)+4>>2]|0,(U|0)>0|(U|0)==0&(c[(V&p)>>2]|0)>>>0>0):0){g=H;break}while(0);if(!(a[(I&n)+15>>0]|0))A=c[(I&p)+168>>2]|0;else A=10360;K=(g|0)==5;if(K)if(A){C=A;while(1)if(!(a[(C&n)>>0]|0))break;else C=C+1|0;if(C-A&1073741823){C=c[(c[(I&p)+60>>2]&p)>>2]|0;if(!(a[(I&n)+4>>0]|0))if((c[(C&p)>>2]|0)>1?!((c[(C&p)+52>>2]|0)==0|(g|0)==(H|0)):0)ie=1077;else{g=H;u=0}else ie=1076}else{g=H;u=0}}else{g=H;u=0}else ie=1076;if((ie|0)==1076){ie=0;if((g|0)==(H|0)){g=H;u=0}else ie=1077}do if((ie|0)==1077){ie=0;C=J<<24>>24==5;if(C|K){if(!(a[(ee&n)>>0]|0)){g=m;s=K;m=r;u=x;ie=1080;break c}if((c[(Zb&p)>>2]|0)>1){g=m;s=K;m=r;u=x;ie=1080;break c}if(!C){if(J<<24>>24==4)sn(I,2)|0}else{J=I+208|0;if(!(c[(J&p)>>2]|0)){c[(_c&p)>>2]=0;u=fl(I,1)|0;if(u)break;u=c[(I&p)>>2]|0;u=pc[c[(u&p)+32>>2]&31](u,c[(I&p)+212>>2]|0,0,_c)|0;if((u|0)==0&(c[(_c&p)>>2]|0)!=0)u=pn(I)|0;if(u)break;if(c[(J&p)>>2]|0)ie=1088}else ie=1088;if((ie|0)==1088){ie=0;u=qn(I)|0;if(u)break;u=rn(c[(J&p)>>2]|0,d[(I&n)+9>>0]|0,c[(I&p)+152>>2]|0,c[(I&p)+200>>2]|0)|0;c[(J&p)>>2]=0;if(u)break}sn(I,g)|0}u=Fg(L,K?2:1)|0}else u=0}while(0);g=sn(I,(u|0)==0?g:H)|0;C=c[(s+(t*20|0)&p)+8>>2]|0;J=z+(C*40|0)|0;b[(z+(C*40|0)&o)+8>>1]=2562;if((g|0)==6){c[(z+(C*40|0)&p)+16>>2]=0;g=0}else{v=c[(g<<2&p)+32216>>2]|0;c[(z+(C*40|0)&p)+16>>2]=v;g=v;while(1)if(!(a[(g&n)>>0]|0))break;else g=g+1|0;g=g-v&1073741823}c[(z+(C*40|0)&p)+12>>2]=g;a[(z+(C*40|0)&n)+10>>0]=1;Yl(J,xb)|0;C=J;T=t;break}case 13:{if(!(a[(ee&n)>>0]|0)){g=m;m=r;u=x;ie=1101;break c}if((c[(Ra&p)>>2]|0)>1){g=m;m=r;u=x;ie=1103;break c}S=c[(Tb&p)>>2]|0;N=c[(vb&p)>>2]|0;w=c[(wb&p)>>2]|0;v=c[(Sa&p)>>2]|0;c[(Tb&p)>>2]=S&-2762753|2107392;c[(Sa&p)>>2]=0;g=c[((c[(Xd&p)>>2]|0)&p)+4>>2]|0;P=g+4|0;I=a[((c[(c[(P&p)>>2]&p)>>2]|0)&n)+15>>0]|0;V=c[(Ub&p)>>2]|0;u=tn(le,je,(a[(_b&n)>>0]|0)==2?42432:42464)|0;J=c[(Ub&p)>>2]|0;if((J|0)>(V|0))M=(c[(Xd&p)>>2]|0)+(J+-1<<4)|0;else M=0;i:do if(!u){O=c[((c[(Xd&p)>>2]|0)+(J+-1<<4)&p)+4>>2]|0;un(O)|0;T=c[(P&p)>>2]|0;c[(T&p)+4>>2]=c[(g&p)>>2];T=(c[(T&p)+32>>2]|0)-(c[(T&p)+36>>2]|0)|0;u=tn(le,je,42488)|0;if(!u){u=tn(le,je,42528)|0;if(!u){u=yg(g,2)|0;if(!u){J=c[(P&p)>>2]|0;if((a[((c[(J&p)>>2]|0)&n)+5>>0]|0)==5)c[(Ta&p)>>2]=0;if(!(xg(O,c[(J&p)+32>>2]|0,T,0)|0)){if(I<<24>>24==0?(xg(O,c[(Ta&p)>>2]|0,T,0)|0)!=0:0){u=7;break}if(a[(ge&n)>>0]|0){u=7;break}J=a[(Ua&n)>>0]|0;do if(J<<24>>24>-1)J=J<<24>>24;else{J=c[(P&p)>>2]|0;c[(J&p)+4>>2]=c[(g&p)>>2];if(!(a[(J&n)+17>>0]|0)){J=0;break}J=(a[(J&n)+18>>0]|0)==0?1:2}while(0);vn(O,J)|0;u=wn(le,je,42536)|0;if(u)break;u=wn(le,je,42688)|0;if(u)break;u=wn(le,je,42792)|0;if(u)break;u=wn(le,je,42912)|0;if(u)break;u=wn(le,je,43112)|0;if(u)break;u=wn(le,je,43232)|0;if(u)break;u=tn(le,je,43392)|0;if(!u)J=0;else break;do{u=d[(J&n)+43576>>0]|0;wm(g,u,ad);u=Dg(O,u,(d[((J|1)&n)+43576>>0]|0)+(c[(ad&p)>>2]|0)|0)|0;J=J+2|0;if(u)break i}while((J|0)<10);H=c[(P&p)>>2]|0;c[(H&p)+4>>2]=c[(g&p)>>2];J=c[(O&p)>>2]|0;K=O+4|0;I=c[(K&p)>>2]|0;c[(I&p)+4>>2]=J;H=c[((c[(H&p)>>2]|0)&p)+60>>2]|0;F=c[(H&p)>>2]|0;if(F){V=c[(I&p)+32>>2]|0;V=sw(c[(I&p)+44>>2]|0,0,V|0,((V|0)<0)<<31>>31|0)|0;u=id;c[(u&p)>>2]=V;c[(u&p)+4>>2]=G;u=ac[c[(F&p)+40>>2]&63](H,11,id)|0;u=(u|0)==12?0:u;if(u)break;J=c[(O&p)>>2]|0}U=Tc+0|0;V=U+48|0;do{c[(U&p)>>2]=0;U=U+4|0}while((U|0)<(V|0));c[(Va&p)>>2]=J;c[(Wa&p)>>2]=O;c[(Xa&p)>>2]=g;c[(Ya&p)>>2]=1;gd(Tc,2147483647)|0;u=hd(Tc)|0;if(u){C=c[(c[((c[(Xa&p)>>2]|0)&p)+4>>2]&p)>>2]|0;if(a[(C&n)+15>>0]|0)break;if(a[(C&n)+12>>0]|0)break;xn(C);break}u=(c[(P&p)>>2]|0)+22|0;b[(u&o)>>1]=e[(u&o)>>1]&65533;u=un(O)|0;if(u)break;J=c[(K&p)>>2]|0;c[(J&p)+4>>2]=c[(O&p)>>2];if(!(a[(J&n)+17>>0]|0))E=0;else E=(a[(J&n)+18>>0]|0)==0?1:2;vn(g,E)|0;u=xg(g,c[((c[(K&p)>>2]|0)&p)+32>>2]|0,T,1)|0}else u=7}}}}while(0);c[(Tb&p)>>2]=S;c[(vb&p)>>2]=N;c[(wb&p)>>2]=w;c[(Sa&p)>>2]=v;xg(g,-1,-1,1)|0;a[(ee&n)>>0]=1;if(M){V=M+4|0;Ml(c[(V&p)>>2]|0);c[(V&p)>>2]=0;c[(M&p)+12>>2]=0}Eg(le);C=L;T=t;break}case 143:{V=c[((c[(Xd&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<4)&p)+4>>2]|0;I=c[(V&p)+4>>2]|0;c[(I&p)+4>>2]=c[(V&p)>>2];if(!(a[(I&n)+17>>0]|0)){g=m;m=r;u=L;ie=1157;break d}E=I+44|0;H=c[(E&p)>>2]|0;A=I+12|0;C=c[((c[(A&p)>>2]|0)&p)+56>>2]|0;C=d[(C&n)+37>>0]<<16|d[(C&n)+36>>0]<<24|d[(C&n)+38>>0]<<8|d[(C&n)+39>>0];F=El(I,H,C)|0;if(H>>>0>>0){g=m;m=r;u=x;ie=1145;break c}if(!C){g=m;m=r;u=L;ie=1157;break d}J=I+8|0;g=c[(J&p)>>2]|0;do if(g){C=g;do{if(C){ie=1150;break}C=c[2]|0}while((C|0)!=0);if((ie|0)==1150){ie=0;u=Fl(C,0,0)|0;if(u)break;g=c[(J&p)>>2]|0}if(g){do{V=g+72|0;a[(V&n)>>0]=d[(V&n)>>0]&251;g=c[(g&p)+8>>2]|0}while((g|0)!=0);ie=1154}else ie=1154}else ie=1154;while(0);if((ie|0)==1154){ie=0;u=Gl(I,F,H,0)|0;if(!u){u=Gg(c[((c[(A&p)>>2]|0)&p)+68>>2]|0)|0;V=c[((c[(A&p)>>2]|0)&p)+56>>2]|0;U=c[(E&p)>>2]|0;a[(V&n)+28>>0]=U>>>24;a[(V&n)+29>>0]=U>>>16;a[(V&n)+30>>0]=U>>>8;a[(V&n)+31>>0]=U}}if((u|0)==101){g=m;m=r;u=L;ie=1157;break d}else{C=L;T=t}break}case 145:{g=c[(s+(t*20|0)&p)+12>>2]|0;if((g&255|0)==0?(c[(Tb&p)>>2]&16384|0)!=0:0){g=m;m=r;S=z;T=s;U=W;V=X;u=L;r=t;break d}C=c[((c[(Xd&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<4)&p)+4>>2]|0;A=c[(s+(t*20|0)&p)+8>>2]|0;if(!(a[(C&n)+9>>0]|0)){g=m;m=r;S=z;T=s;U=W;V=X;u=L;r=t;break d}v=g+1&255;w=C+4|0;c[((c[(w&p)>>2]|0)&p)+4>>2]=c[(C&p)>>2];u=bl(C,A,v)|0;if(!u){g=m;m=r;u=L;r=t;ie=1166;break d}if((u&255|0)!=6){g=m;m=r;s=u;u=x;ie=1309;break c}c[(ke&p)>>2]=c[(s+(t*20|0)&p)+16>>2];dh(je,le,42224,ke);C=L;T=t;break}case 144:{g=m;m=r;u=L;r=t;ie=1158;break d}case 146:{J=c[(s+(t*20|0)&p)+16>>2]|0;v=c[(Za&p)>>2]|0;u=(v|0)>0;if(u?(c[(_a&p)>>2]|0)==0:0){u=6;ie=1188}else ie=1179;j:do if((ie|0)==1179){ie=0;if(!J){g=m;m=r;S=z;T=s;U=W;V=X;u=L;r=t;break d}g=J+8|0;w=(c[(c[(g&p)>>2]&p)>>2]|0)+56|0;if(c[(w&p)>>2]|0){if(u){C=c[(_a&p)>>2]|0;A=0;do{if((c[(C+(A<<2)&p)>>2]|0)==(J|0)){u=0;ie=1188;break j}A=A+1|0}while((A|0)<(v|0))}u=yn(le)|0;if(!u){u=lc[c[(w&p)>>2]&127](c[(g&p)>>2]|0)|0;if(!u){u=c[(Za&p)>>2]|0;c[(Za&p)>>2]=u+1;c[((c[(_a&p)>>2]|0)+(u<<2)&p)>>2]=J;u=J+12|0;c[(u&p)>>2]=(c[(u&p)>>2]|0)+1;u=0}}else ie=1188}else u=0}while(0);if((ie|0)==1188){ie=0;if(!J){C=L;T=t;break e}g=J+8|0}Mm(f,c[(g&p)>>2]|0);C=L;T=t;break}case 147:{U=Kd+0|0;V=U+40|0;do{c[(U&p)>>2]=0;U=U+4|0}while((U|0)<(V|0));c[($a&p)>>2]=le;g=_g(Kd,z+((c[(s+(t*20|0)&p)+8>>2]|0)*40|0)|0)|0;u=Sg(Kd,1)|0;k:do if(u){v=_h(le,u,c[((c[(Xd&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<4)&p)>>2]|0)|0;g=c[(c[(v&p)+56>>2]&p)>>2]|0;u=bn(cb,g,Xc)|0;if((u|0)!=0?(Oc=c[(u&p)+8>>2]|0,(Oc|0)!=0):0){g=zn(le,v,Oc,c[((c[(Oc&p)>>2]|0)&p)+4>>2]|0,je)|0;if(g)break;u=v+60|0;g=c[(u&p)>>2]|0;if(!g){g=0;break}while(1){if((c[(g&p)>>2]|0)==(le|0))break;g=c[(g&p)+24>>2]|0;if(!g){g=0;break k}}g=yn(le)|0;if(g)break;g=c[(u&p)>>2]|0;l:do if(!g)g=0;else while(1){if((c[(g&p)>>2]|0)==(le|0))break l;g=c[(g&p)+24>>2]|0;if(!g){g=0;break}}while(0);V=c[(Za&p)>>2]|0;c[(Za&p)>>2]=V+1;c[((c[(_a&p)>>2]|0)+(V<<2)&p)>>2]=g;g=g+12|0;c[(g&p)>>2]=(c[(g&p)>>2]|0)+1;g=0;break}c[(ke&p)>>2]=g;c[(je&p)>>2]=uh(le,28320,ke)|0;g=1}while(0);if((b[(ab&o)>>1]&9312)==0&(c[(bb&p)>>2]|0)==0){C=L;T=t;u=g}else{Qg(Kd);C=L;T=t;u=g}break}case 148:{c[(ha&p)>>2]=(c[(ha&p)>>2]|0)+1;g=_h(le,c[(s+(t*20|0)&p)+16>>2]|0,c[((c[(Xd&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<4)&p)>>2]|0)|0;m:do if((g|0)!=0?(Pc=g+60|0,Qc=c[(Pc&p)>>2]|0,(Qc|0)!=0):0){u=Qc;do{if((c[((c[(u&p)+8>>2]|0)&p)+4>>2]|0)>0){u=6;break m}u=c[(u&p)+24>>2]|0}while((u|0)!=0);g=Ok(le,g)|0;v=g+8|0;u=lc[c[((c[(c[(g&p)+4>>2]&p)>>2]|0)&p)+20>>2]&127](c[(v&p)>>2]|0)|0;if(!u){c[(v&p)>>2]=0;c[(Pc&p)>>2]=0;An(g);u=0}}else u=0;while(0);c[(ha&p)>>2]=(c[(ha&p)>>2]|0)+-1;C=L;T=t;break}case 149:{g=m;m=r;u=L;r=t;ie=1213;break d}case 150:{g=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;C=c[(s+(t*20|0)&p)+12>>2]|0;A=z+(C*40|0)|0;if(a[(g&n)+25>>0]|0){g=m;m=r;u=L;r=t;ie=1226;break d}V=g+32|0;u=c[(c[(V&p)>>2]&p)>>2]|0;U=c[(u&p)>>2]|0;c[(Id&p)>>2]=0;c[(Id&p)+4>>2]=0;c[(Id&p)+8>>2]=0;c[(Id&p)+12>>2]=0;c[(Id&p)+16>>2]=0;c[(Id&p)+20>>2]=0;c[(Id&p)+24>>2]=0;c[(Id&p)>>2]=A;v=z+(C*40|0)+8|0;b[(v&o)>>1]=e[(v&o)>>1]&48640|1;V=ac[c[(U&p)+44>>2]&63](c[(V&p)>>2]|0,Id,c[(s+(t*20|0)&p)+8>>2]|0)|0;Mm(f,u);u=c[(db&p)>>2]|0;u=(u|0)==0?V:u;Yl(A,xb)|0;v=e[(v&o)>>1]|0;if(v&18){g=c[(z+(C*40|0)&p)+12>>2]|0;if(v&16384)g=(c[(A&p)>>2]|0)+g|0;if((g|0)>(c[((c[(z+(C*40|0)&p)+32>>2]|0)&p)+88>>2]|0)){g=m;m=r;u=x;ie=1316;break c}else{C=L;T=t}}else{C=L;T=t}break}case 14:{A=c[(s+(t*20|0)&p)+12>>2]|0;C=A+1|0;F=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;J=c[(F&p)+32>>2]|0;I=c[(J&p)>>2]|0;H=c[(I&p)>>2]|0;E=c[(z+(C*40|0)&p)>>2]|0;A=c[(z+(A*40|0)&p)>>2]|0;g=c[(Bb&p)>>2]|0;if((E|0)>0){u=0;do{V=u;u=u+1|0;c[(g+(V<<2)&p)>>2]=z+((u+C|0)*40|0)}while((u|0)!=(E|0))}u=tc[c[(H&p)+32>>2]&31](J,A,c[(s+(t*20|0)&p)+16>>2]|0,E,g)|0;Mm(f,I);if((u|0)==0?(lc[c[(H&p)+40>>2]&127](J)|0)!=0:0)t=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;a[(F&n)+25>>0]=0;C=L;T=t;break}case 151:{g=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;if(a[(g&n)+25>>0]|0){g=m;m=r;S=z;T=s;U=W;V=X;u=L;r=t;break d}g=g+32|0;v=c[(g&p)>>2]|0;V=c[(v&p)>>2]|0;u=c[(V&p)>>2]|0;v=lc[c[(u&p)+36>>2]&127](v)|0;Mm(f,V);if((v|0)==0?(lc[c[(u&p)+40>>2]&127](c[(g&p)>>2]|0)|0)!=0:0){u=0;ie=19;break e}t=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;u=v;ie=19;break}case 15:{F=s+(t*20|0)+16|0;v=c[((c[(F&p)>>2]|0)&p)+8>>2]|0;if(!v){g=m;m=r;s=6;u=x;ie=1309;break c}g=c[(v&p)>>2]|0;if(!g){g=m;m=r;s=6;u=x;ie=1309;break c}I=c[(s+(t*20|0)&p)+8>>2]|0;E=g+52|0;C=c[(E&p)>>2]|0;if(!C){g=m;m=r;S=z;T=s;U=W;V=X;u=L;r=t;break d}H=a[(eb&n)>>0]|0;J=c[(Bb&p)>>2]|0;if((I|0)>0){C=0;A=z+((c[(s+(t*20|0)&p)+12>>2]|0)*40|0)|0;while(1){c[(J+(C<<2)&p)>>2]=A;C=C+1|0;if((C|0)==(I|0))break;else A=A+40|0}C=c[(E&p)>>2]|0}A=s+(t*20|0)+3|0;a[(eb&n)>>0]=a[(A&n)>>0]|0;u=pc[C&31](v,I,J,Hd)|0;a[(eb&n)>>0]=H;Mm(f,v);if(!u){if(c[(s+(t*20|0)&p)+4>>2]|0){l=Hd;r=c[(l&p)>>2]|0;l=c[(l&p)+4>>2]|0;V=ne;c[(V&p)>>2]=r;c[(V&p)+4>>2]=l}}else if((u&255|0)==19?(a[((c[(F&p)>>2]|0)&n)+16>>0]|0)!=0:0){g=a[(A&n)>>0]|0;if(g<<24>>24==5)g=2;else if(g<<24>>24==4){g=m;m=r;S=z;T=s;U=W;V=X;u=L;r=t;break d}a[(fe&n)>>0]=g;C=L;T=t;break e}c[(ub&p)>>2]=(c[(ub&p)>>2]|0)+1;C=L;T=t;break}case 152:{g=c[((c[(s+(t*20|0)&p)+16>>2]|0)&p)+8>>2]|0;u=c[(s+(t*20|0)&p)+4>>2]|0;v=z+(u*40|0)|0;if(((b[(z+(u*40|0)&o)+8>>1]&2)!=0?(a[(z+(u*40|0)&n)+10>>0]|0)!=1:0)?(Wd=Bn(v,1)|0,(Wd|0)!=0):0){g=m;m=r;s=Wd;u=x;ie=1309;break c}u=rc[c[((c[(g&p)>>2]|0)&p)+76>>2]&127](g,c[(z+(u*40|0)&p)+16>>2]|0)|0;Mm(f,g);b[(Yd&o)>>1]=b[(Yd&o)>>1]&-9;C=L;T=t;break}case 153:{g=m;m=r;u=L;r=t;ie=1257;break d}case 155:{g=m;m=r;ie=1264;break d}case 154:{g=m;m=r;J=L;r=t;ie=1258;break d}default:{g=m;m=r;S=z;T=s;U=W;V=X;u=L;r=t;break d}}while(0);n:do if((ie|0)==57){ie=0;w=L+8|0;b[(w&o)>>1]=2562;c[(L&p)+16>>2]=v;c[(L&p)+12>>2]=g;a[(L&n)+10>>0]=Jc;if((a[(s+(t*20|0)&n)+3>>0]|0)!=0?(V=z+((c[(s+(t*20|0)&p)+12>>2]|0)*40|0)|0,!((c[(V&p)>>2]|0)==0&(c[(V&p)+4>>2]|0)==0)):0){b[(w&o)>>1]=2576;C=L;T=t}else{C=L;T=t}}else if((ie|0)==536){if(b[(Yd&o)>>1]&8){g=m;m=r;s=516;u=x;ie=1309;break c}C=c[(s+(t*20|0)&p)+8>>2]|0;I=c[(s+(t*20|0)&p)+12>>2]|0;g=c[(Xd&p)>>2]|0;H=c[(g+(I<<4)&p)+4>>2]|0;if(J<<24>>24==55){g=a[((c[(g+(I<<4)&p)+12>>2]|0)&n)+76>>0]|0;if((g&255)<(d[(Mb&n)>>0]|0)){a[(Mb&n)>>0]=g;J=1}else J=1}else J=0;v=s+(t*20|0)+3|0;if(a[(v&n)>>0]&4){V=z+(C*40|0)|0;g=Vg(V)|0;c[(V&p)>>2]=g;c[(V&p)+4>>2]=G;V=z+(C*40|0)+8|0;b[(V&o)>>1]=e[(V&o)>>1]&48640|4;if((g|0)<2){g=m;m=r;s=x;ie=542;break c}else E=g}else E=C;u=s+(t*20|0)+1|0;C=a[(u&n)>>0]|0;if(C<<24>>24==-6){A=c[(s+(t*20|0)&p)+16>>2]|0;C=(e[(A&o)+8>>1]|0)+(e[(A&o)+6>>1]|0)|0}else if(C<<24>>24==-14){C=c[(s+(t*20|0)&p)+16>>2]|0;A=0}else{C=0;A=0}g=xm(f,c[(s+(t*20|0)&p)+4>>2]|0,C,I,1)|0;if(!g){y=ge;z=je;g=m;m=x;ie=1317;break a}a[(g&n)+25>>0]=1;V=g+27|0;a[(V&n)>>0]=a[(V&n)>>0]|8;c[(g&p)+28>>2]=E;ie=ym(H,E,J,A,c[(g&p)>>2]|0)|0;c[(g&p)+8>>2]=A;a[(V&n)>>0]=((a[(u&n)>>0]|0)!=-6&1)<<2&255|a[(V&n)>>0]&-5;u=ie;ie=548}else if((ie|0)==715){ie=0;M=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;V=c[(M&p)+56>>2]|0;do if(!V){u=c[(M&p)>>2]|0;g=qm(u)|0;if(!g)if(!(a[(u&n)+73>>0]|0)){v=1;g=0}else{v=0;g=Vm(u)|0}else v=1;a[(M&n)+26>>0]=0;c[(M&p)+60>>2]=0;a[(M&n)+25>>0]=v;if(!v){C=L;T=t;u=g;break n}}else{do if(!(a[(V&n)+56>>0]|0)){g=V+36|0;if(!(c[(g&p)>>2]|0)){g=0;ie=756}else{g=Nm(V+64|0,g)|0;ie=755}}else{g=Om(V)|0;if(!g){U=V+59|0;o:do if(!(a[(U&n)>>0]|0)){u=0;g=0}else{w=0;v=0;p:while(1){T=V+(w<<6)+64|0;c[(ke&p)>>2]=0;S=V+(w<<6)+92|0;C=c[(S&p)>>2]|0;J=((C|0)<0)<<31>>31;do if((C|0)>16){I=16;H=0;E=0;while(1){I=iw(I|0,H|0,4)|0;H=G;F=E+1|0;if(!((H|0)<(J|0)|(H|0)==(J|0)&I>>>0>>0)){H=E;break}else E=F}P=Sd;c[(P&p)>>2]=0;c[(P&p)+4>>2]=0;if((C|0)<17){ie=726;break}u=Qm(16)|0;c[(ke&p)>>2]=u;J=(u|0)==0;I=c[(S&p)>>2]|0;if(!((I|0)>0&(J^1))){g=J?7:0;break}N=(H|0)>0;P=0;O=0;do{c[(qd&p)>>2]=0;g=I-P|0;g=Pm(T,(g|0)<16?g:16,Sd,qd)|0;if(g){ie=747;break p}g=Rm(T,c[(qd&p)>>2]|0,pd)|0;do if(N){I=1;J=1;do{J=J<<4;I=I+1|0}while((I|0)!=(F|0));if(!g){H=1;I=u}else{J=c[(pd&p)>>2]|0;ie=743;break}while(1){K=(c[(I&p)+12>>2]|0)+((((O|0)/(J|0)|0|0)%16|0)*56|0)+48|0;I=c[(K&p)>>2]|0;if(!I){I=Qm(16)|0;if(!I){g=7;ie=738;break}g=Rm(T,I,K)|0;if(g){ie=738;break}I=c[(K&p)>>2]|0}I=c[(I&p)+4>>2]|0;H=H+1|0;if((H|0)>=(F|0)){ie=740;break}else J=(J|0)/16|0}if((ie|0)==738){J=c[(pd&p)>>2]|0;ie=743;break}else if((ie|0)==740){J=c[(pd&p)>>2]|0;ie=742;break}}else{J=c[(pd&p)>>2]|0;if(!g){I=u;ie=742}else ie=743}while(0);if((ie|0)==742){ie=0;c[((c[(I&p)+12>>2]|0)+(((O|0)%16|0)*56|0)&p)+48>>2]=J;g=0}else if((ie|0)==743){ie=0;Sm(J)}O=O+1|0;P=P+16|0;I=c[(S&p)>>2]|0}while((P|0)<(I|0)&(g|0)==0)}else{ie=Sd;c[(ie&p)>>2]=0;c[(ie&p)+4>>2]=0;ie=726}while(0);if((ie|0)==726){ie=0;g=Pm(T,C,Sd,ke)|0;u=c[(ke&p)>>2]|0}w=w+1|0;if(g){ie=746;break}if((w|0)>=(d[(U&n)>>0]|0)){g=0;break o}else v=u}if((ie|0)==746)Tm(u);else if((ie|0)==747)Tm(u);Tm(v);u=0}while(0);if(!g){g=Um(V+64|0,u)|0;c[(V&p)+20>>2]=u;if(!g){g=0;ie=755;break}else u=0}Tm(u);ie=755}else ie=756}while(0);if((ie|0)==755){ie=0;a[(M&n)+25>>0]=0;C=L;T=t;u=g;break n}else if((ie|0)==756){ie=0;a[(M&n)+25>>0]=1;break}}while(0);C=L;T=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;u=g}else if((ie|0)==765){u=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;c[(Fd&p)>>2]=c[(s+(t*20|0)&p)+12>>2];g=u;u=rc[c[(s+(t*20|0)&p)+16>>2]&127](c[(u&p)>>2]|0,Fd)|0;ie=766}while(0);do if((ie|0)==548){ie=0;a[((c[(g&p)>>2]|0)&n)+74>>0]=d[(v&n)>>0]&3;C=L;T=t}else if((ie|0)==766){c[(g&p)+60>>2]=0;g=g+25|0;if(!(c[(Fd&p)>>2]|0)){a[(g&n)>>0]=0;ie=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;t=f+(d[(s+(t*20|0)&n)+3>>0]<<2)+108|0;c[(t&p)>>2]=(c[(t&p)>>2]|0)+1;t=ie;ie=19;break}else{a[(g&n)>>0]=1;ie=19;break}}while(0);if((ie|0)==19){ie=0;if(c[(Cc&p)>>2]|0){u=je;g=m;m=x;break b}g=c[(be&p)>>2]|0;if(!((g|0)==0|m>>>0>>0)){y=c[(yc&p)>>2]|0;if(!(lc[g&127](c[(Zd&p)>>2]|0)|0)){y=y+m-((m>>>0)%(y>>>0)|0)|0;C=L;T=t}else{g=m;s=9;m=x;ie=1311;break a}}else{C=L;T=t}}t=T+1|0;if(!u){g=m;u=C}else{g=m;s=u;m=x;ie=1311;break a}}q:switch(ie|0){case 22:{ie=0;S=c[(s+(t*20|0)&p)+4>>2]|0;b[(z+(S*40|0)&o)+8>>1]=4;S=z+(S*40|0)|0;c[(S&p)>>2]=t;c[(S&p)+4>>2]=((t|0)<0)<<31>>31;S=z;T=s;U=W;V=X;r=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;break}case 23:{ie=0;S=c[(s+(t*20|0)&p)+4>>2]|0;r=c[(z+(S*40|0)&p)>>2]|0;b[(z+(S*40|0)&o)+8>>1]=128;S=z;T=s;U=W;V=X;break}case 24:{ie=0;r=c[(s+(t*20|0)&p)+4>>2]|0;u=z+(r*40|0)|0;T=(c[(s+(t*20|0)&p)+12>>2]|0)+-1|0;S=u;c[(S&p)>>2]=T;c[(S&p)+4>>2]=((T|0)<0)<<31>>31;b[(z+(r*40|0)&o)+8>>1]=4;r=c[(s+(t*20|0)&p)+8>>2]|0;S=z;T=s;U=W;V=X;r=(r|0)==0?t:r+-1|0;break}case 25:{ie=0;S=c[(s+(t*20|0)&p)+4>>2]|0;r=(c[(s+((c[(z+(S*40|0)&p)>>2]|0)*20|0)&p)+8>>2]|0)+-1|0;b[(z+(S*40|0)&o)+8>>1]=128;S=z;T=s;U=W;V=X;break}case 26:{ie=0;S=c[(s+(t*20|0)&p)+4>>2]|0;b[(z+(S*40|0)&o)+8>>1]=4;S=z+(S*40|0)|0;r=c[(S&p)>>2]|0;c[(S&p)>>2]=t;c[(S&p)+4>>2]=((t|0)<0)<<31>>31;S=z;T=s;U=W;V=X;break}case 27:{ie=0;if(!(b[(z+((c[(s+(r*20|0)&p)+12>>2]|0)*40|0)&o)+8>>1]&1)){S=z;T=s;U=W;V=X}else ie=28;break}case 44:{ie=0;T=c[(s+(r*20|0)&p)+4>>2]|0;S=u;c[(S&p)>>2]=T;c[(S&p)+4>>2]=((T|0)<0)<<31>>31;S=z;T=s;U=W;V=X;break}case 45:{ie=0;U=c[(s+(r*20|0)&p)+16>>2]|0;T=c[(U&p)+4>>2]|0;S=u;c[(S&p)>>2]=c[(U&p)>>2];c[(S&p)+4>>2]=T;S=z;T=s;U=W;V=X;break}case 46:{ie=0;b[(u&o)+8>>1]=8;h[(u&q)>>3]=+h[(c[(s+(r*20|0)&p)+16>>2]&q)>>3];S=z;T=s;U=W;V=X;break}case 60:{ie=0;J=(c[(s+(r*20|0)&p)+12>>2]|0)-(c[(s+(r*20|0)&p)+8>>2]|0)|0;t=(c[(s+(r*20|0)&p)+4>>2]|0)!=0?257:1;b[(u&o)+8>>1]=t;if((J|0)>0){w=J;A=u;do{v=A+48|0;A=A+40|0;if(!(b[(v&o)>>1]&9312))b[(v&o)>>1]=1;else vg(A);b[(v&o)>>1]=t;w=w+-1|0}while((w|0)>0);S=z;T=s;U=W;V=X;u=u+(J*40|0)|0}else{S=z;T=s;U=W;V=X}break}case 65:{ie=0;u=c[(s+(r*20|0)&p)+4>>2]|0;S=z+(u*40|0)+8|0;b[(S&o)>>1]=e[(S&o)>>1]&65406|1;S=z;T=s;U=W;V=X;u=z+(u*40|0)|0;break}case 66:{ie=0;Xg(u,c[(s+(r*20|0)&p)+16>>2]|0,c[(s+(r*20|0)&p)+4>>2]|0,0,0)|0;a[(u&n)+10>>0]=Jc;S=z;T=s;U=W;V=X;break}case 67:{ie=0;C=(c[(s+(r*20|0)&p)+4>>2]|0)+-1|0;A=c[(Ab&p)>>2]|0;w=A+(C*40|0)|0;v=e[(A+(C*40|0)&o)+8>>1]|0;if(v&18){t=c[(A+(C*40|0)&p)+12>>2]|0;if(v&16384)t=(c[(w&p)>>2]|0)+t|0;if((t|0)>(c[((c[(A+(C*40|0)&p)+32>>2]|0)&p)+88>>2]|0)){t=r;u=x;ie=1316;break c}}Zl(u,w,2048);S=z;T=s;U=W;V=X;break}case 72:{ie=0;t=c[(s+(r*20|0)&p)+12>>2]|0;v=c[(s+(r*20|0)&p)+8>>2]|0;J=t+v|0;u=z+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)|0;v=z+(v*40|0)|0;while(1){_l(v,u);t=t+-1|0;if(!t)break;else{u=u+40|0;v=v+40|0}}S=z;T=s;U=W;V=X;u=z+(J*40|0)|0;break}case 74:{ie=0;r=c[(s+(t*20|0)&p)+12>>2]|0;u=z+((c[(s+(t*20|0)&p)+4>>2]|0)*40|0)|0;J=z+((c[(s+(t*20|0)&p)+8>>2]|0)*40|0)|0;while(1){Zl(J,u,4096);if((b[(J&o)+8>>1]&4096)!=0?(Vl(J)|0)!=0:0){y=ge;z=je;r=m;m=x;ie=1317;break a}if(!r){S=z;T=s;U=W;V=X;u=J;r=t;break q}r=r+-1|0;u=u+40|0;J=J+40|0}}case 79:{ie=0;u=z+((c[(s+(r*20|0)&p)+8>>2]|0)*40|0)|0;Zl(u,z+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)|0,4096);S=z;T=s;U=W;V=X;break}case 94:{ie=0;K=c[(s+(t*20|0)&p)+4>>2]|0;J=z+(K*40|0)|0;L=c[(s+(t*20|0)&p)+8>>2]|0;I=z+(L*40|0)|0;M=c[(s+(t*20|0)&p)+12>>2]|0;u=z+(M*40|0)|0;H=z+(K*40|0)+8|0;E=b[(H&o)>>1]|0;F=z+(L*40|0)+8|0;C=b[(F&o)>>1]|0;if((C|E)&1){r=z+(M*40|0)+8|0;if(!(b[(r&o)>>1]&9312)){b[(r&o)>>1]=1;S=z;T=s;U=W;V=X;r=t;break}else{vg(u);S=z;T=s;U=W;V=X;r=t;break}}if(E&16384){if(Rg(J)|0){y=ge;z=je;r=m;m=x;ie=1317;break a}C=b[(F&o)>>1]|0}if((C&16384)!=0?(Rg(I)|0)!=0:0){y=ge;z=je;r=m;m=x;ie=1317;break a}if((b[(H&o)>>1]&18)==0?(bm(J,Jc,0)|0)!=0:0){y=ge;z=je;r=m;m=x;ie=1317;break a}if((b[(F&o)>>1]&18)==0?(bm(I,Jc,0)|0)!=0:0){y=ge;z=je;r=m;m=x;ie=1317;break a}E=z+(K*40|0)+12|0;A=z+(L*40|0)+12|0;r=(c[(A&p)>>2]|0)+(c[(E&p)>>2]|0)|0;if((r|0)>(c[(zb&p)>>2]|0)){u=x;ie=1316;break c}v=(M|0)==(L|0);if(eh(u,r+2|0,v&1)|0){y=ge;z=je;r=m;m=x;ie=1317;break a}w=z+(M*40|0)+8|0;b[(w&o)>>1]=e[(w&o)>>1]&48640|2;C=z+(M*40|0)+16|0;if(!v)kw(c[(C&p)>>2]|0,c[(z+(L*40|0)&p)+16>>2]|0,c[(A&p)>>2]|0)|0;kw((c[(C&p)>>2]|0)+(c[(A&p)>>2]|0)|0,c[(z+(K*40|0)&p)+16>>2]|0,c[(E&p)>>2]|0)|0;a[((c[(C&p)>>2]|0)+r&n)>>0]=0;a[((c[(C&p)>>2]|0)+r&n)+1>>0]=0;b[(w&o)>>1]=e[(w&o)>>1]|512;c[(z+(M*40|0)&p)+12>>2]=r;a[(z+(M*40|0)&n)+10>>0]=Jc;S=z;T=s;U=W;V=X;r=t;break}case 112:{ie=0;V=c[(s+(r*20|0)&p)+4>>2]|0;N=z+(V*40|0)|0;S=cm(N)|0;w=c[(s+(r*20|0)&p)+8>>2]|0;O=z+(w*40|0)|0;T=cm(O)|0;U=c[(s+(r*20|0)&p)+12>>2]|0;u=z+(U*40|0)|0;r:do if(!((b[(z+(w*40|0)&o)+8>>1]|b[(z+(V*40|0)&o)+8>>1])&1)){s:do if(!((S&4&T)<<16>>16))L=0;else{t=N;C=c[(t&p)>>2]|0;t=c[(t&p)+4>>2]|0;F=O;v=c[(F&p)>>2]|0;F=c[(F&p)+4>>2]|0;J=d[(P&n)>>0]|0;t:do if((J|0)==89){if((t|0)>-1|(t|0)==-1&C>>>0>4294967295){V=dw(-1,2147483647,v|0,F|0)|0;w=G;if(((F|0)>0|(F|0)==0&v>>>0>0)&((w|0)<(t|0)|(w|0)==(t|0)&V>>>0>>0)){L=1;break s}}else if((F|0)<0?(w=dw(1,-2147483648,v|0,F|0)|0,A=G,V=jw(C|0,t|0,1,0)|0,M=G,(A|0)>(M|0)|(A|0)==(M|0)&w>>>0>V>>>0):0){L=1;break s}v=jw(v|0,F|0,C|0,t|0)|0;t=G}else if((J|0)==91){L=qw(v|0,F|0,0,1)|0;K=G;E=rw(v|0,F|0,0,1)|0;A=G;J=qw(C|0,t|0,0,1)|0;I=G;M=rw(C|0,t|0,0,1)|0;w=G;V=jw(v|0,F|0,-1,0)|0;pe=G;H=jw(C|0,t|0,-1,0)|0;qe=G;H=qe>>>0<1|(qe|0)==1&H>>>0<4294967295;do if(pe>>>0<1|(pe|0)==1&V>>>0<4294967295)if(H){v=sw(v|0,F|0,C|0,t|0)|0;t=G;break t}else{H=sw(J|0,I|0,E|0,A|0)|0;F=G;break}else{if(!H){L=1;break s}H=sw(M|0,w|0,L|0,K|0)|0;F=G}while(0);V=jw(H|0,F|0,-2147483648,0)|0;v=G;if(v>>>0>0|(v|0)==0&V>>>0>4294967295){L=1;break s}J=sw(M|0,w|0,E|0,A|0)|0;I=G;if((I|0)>-1|(I|0)==-1&J>>>0>4294967295){V=dw(-1,2147483647,0,H|0)|0;w=G;if(((F|0)>0|(F|0)==0&H>>>0>0)&((w|0)<(I|0)|(w|0)==(I|0)&V>>>0>>0)){L=1;break s}}else if((F|0)<0?(w=dw(1,-2147483648,0,H|0)|0,t=G,V=jw(J|0,I|0,1,0)|0,v=G,(t|0)>(v|0)|(t|0)==(v|0)&w>>>0>V>>>0):0){L=1;break s}v=jw(0,H|0,J|0,I|0)|0;t=G}else if((J|0)==90){if((C|0)==0&(t|0)==-2147483648){if((F|0)>-1|(F|0)==-1&v>>>0>4294967295){L=1;break s}t=F^-2147483648;break}if((t|0)<0|(t|0)==0&C>>>0<1){V=dw(0,0,C|0,t|0)|0;M=G;w=dw(-1,2147483647,v|0,F|0)|0;A=G;if(((F|0)>0|(F|0)==0&v>>>0>0)&((A|0)<(M|0)|(A|0)==(M|0)&w>>>0>>0)){L=1;break s}}else if((F|0)<0?(w=dw(1,-2147483648,v|0,F|0)|0,A=G,V=dw(1,0,C|0,t|0)|0,M=G,(A|0)>(M|0)|(A|0)==(M|0)&w>>>0>V>>>0):0){L=1;break s}v=dw(v|0,F|0,C|0,t|0)|0;t=G}else if((J|0)==92){if((C|0)==0&(t|0)==0)break r;if((C|0)==-1&(t|0)==-1&((v|0)==0&(F|0)==-2147483648)){L=1;break s}v=qw(v|0,F|0,C|0,t|0)|0;t=G}else{if((C|0)==-1){if((t|0)==-1){C=1;t=0}}else if((C|0)==0?(t|0)==0:0)break r;v=rw(v|0,F|0,C|0,t|0)|0;t=G}while(0);S=u;c[(S&p)>>2]=v;c[(S&p)+4>>2]=t;S=z+(U*40|0)+8|0;b[(S&o)>>1]=e[(S&o)>>1]&48640|4;S=z;T=s;U=W;V=X;break q}while(0);D=+Ug(N);B=+Ug(O);C=d[(P&n)>>0]|0;if((C|0)==89)B=D+B;else if((C|0)==90)B=B-D;else if((C|0)==91)B=D*B;else if((C|0)==92){if(D==0.0)break;B=B/D}else{E=~~D>>>0;C=+R(D)>=1.0?(D>0.0?~~+da(+Q(D/4294967296.0),4294967295.0)>>>0:~~+ba((D-+(~~D>>>0))/4294967296.0)>>>0):0;I=~~B>>>0;J=+R(B)>=1.0?(B>0.0?~~+da(+Q(B/4294967296.0),4294967295.0)>>>0:~~+ba((B-+(~~B>>>0))/4294967296.0)>>>0):0;if(!E){if(!C)break}else if((E|0)==-1?(C|0)==-1:0){E=1;C=0}V=rw(I|0,J|0,E|0,C|0)|0;B=+(V>>>0)+4294967296.0*+(G|0)}h[(ke&q)>>3]=B;h[(Sd&q)>>3]=+h[(ke&q)>>3];if(!(+h[(ke&q)>>3]!=+h[(Sd&q)>>3])){h[(u&q)>>3]=B;V=z+(U*40|0)+8|0;b[(V&o)>>1]=e[(V&o)>>1]&48640|8;if(((T|S)&8)!=0|L<<24>>24!=0){S=z;T=s;U=W;V=X;break q}dm(u);S=z;T=s;U=W;V=X;break q}}while(0);t=z+(U*40|0)+8|0;if(!(b[(t&o)>>1]&9312)){b[(t&o)>>1]=1;S=z;T=s;U=W;V=X;break}else{vg(u);S=z;T=s;U=W;V=X;break}}case 166:{ie=0;t=c[(s+(r*20|0)&p)+4>>2]|0;if(t){u=z+(t*40|0)|0;t=z+(t*40|0)+8|0;if(!(b[(t&o)>>1]&9312)){S=u;c[(S&p)>>2]=0;c[(S&p)+4>>2]=0;b[(t&o)>>1]=4;S=z;T=s;U=W;V=X;u=J;break}else{Zg(u,0,0);S=z;T=s;U=W;V=X;u=J;break}}else{S=z;T=s;U=W;V=X;u=J}break}case 184:{ie=0;C=c[(s+(r*20|0)&p)+4>>2]|0;t=c[(s+(r*20|0)&p)+8>>2]|0;K=c[(s+(r*20|0)&p)+12>>2]|0;u=z+(K*40|0)|0;if((b[(z+(t*40|0)&o)+8>>1]|b[(z+(C*40|0)&o)+8>>1])&1){t=z+(K*40|0)+8|0;if(!(b[(t&o)>>1]&9312)){b[(t&o)>>1]=1;S=z;T=s;U=W;V=X;break}else{vg(u);S=z;T=s;U=W;V=X;break}}A=Vg(z+(t*40|0)|0)|0;L=G;J=Vg(z+(C*40|0)|0)|0;I=G;t=a[(H&n)>>0]|0;C=t&255;do if(t<<24>>24==86){A=J|A;t=I|L}else if(t<<24>>24!=85)if(!((J|0)==0&(I|0)==0)){if((I|0)<0){t=175-C&255;C=dw(0,0,J|0,I|0)|0;if((I|0)>-1|(I|0)==-1&J>>>0>4294967232){I=G;ie=194}}else{C=J;ie=194}if((ie|0)==194){ie=0;if(!((I|0)>0|(I|0)==0&C>>>0>63)){if(t<<24>>24==87){A=iw(A|0,L|0,C|0)|0;t=G;break}A=mw(A|0,L|0,C|0)|0;t=G;if((L|0)>=0)break;V=dw(64,0,C|0,I|0)|0;V=iw(-1,-1,V|0)|0;A=V|A;t=G|t;break}}if((L|0)>-1|(L|0)==-1&A>>>0>4294967295){A=0;t=0}else{t=(t<<24>>24!=87)<<31>>31;A=t;t=((t|0)<0)<<31>>31}}else t=L;else{A=J&A;t=I&L}while(0);S=u;c[(S&p)>>2]=A;c[(S&p)+4>>2]=t;S=z+(K*40|0)+8|0;b[(S&o)>>1]=e[(S&o)>>1]&48640|4;S=z;T=s;U=W;V=X;break}case 202:{ie=0;T=c[(s+(r*20|0)&p)+4>>2]|0;S=z+(T*40|0)|0;U=Vg(S)|0;T=z+(T*40|0)+8|0;b[(T&o)>>1]=e[(T&o)>>1]&48640|4;T=c[(s+(r*20|0)&p)+8>>2]|0;T=jw(U|0,G|0,T|0,((T|0)<0)<<31>>31|0)|0;c[(S&p)>>2]=T;c[(S&p)+4>>2]=G;S=z;T=s;U=W;V=X;break}case 203:{ie=0;u=c[(s+(r*20|0)&p)+4>>2]|0;v=z+(u*40|0)+8|0;t=b[(v&o)>>1]|0;if(!(t&4)){fm(z+(u*40|0)|0,67,Jc);t=b[(v&o)>>1]|0;if(!(t&4)){E=c[(s+(r*20|0)&p)+8>>2]|0;if(!E){t=r;u=20;ie=1318;break c}S=z;T=s;U=W;V=X;u=J;r=E+-1|0;break}}b[(v&o)>>1]=t&48640|4;S=z;T=s;U=W;V=X;u=J;break}case 208:{ie=0;t=c[(s+(r*20|0)&p)+4>>2]|0;u=z+(t*40|0)+8|0;if(!(b[(u&o)>>1]&4)){S=z;T=s;U=W;V=X;u=J}else{S=z+(t*40|0)|0;h[(S&q)>>3]=+Ug(S);b[(u&o)>>1]=e[(u&o)>>1]&48640|8;S=z;T=s;U=W;V=X;u=J}break}case 213:{ie=0;N=c[(s+(t*20|0)&p)+4>>2]|0;L=z+(N*40|0)|0;w=c[(s+(t*20|0)&p)+12>>2]|0;K=z+(w*40|0)|0;N=z+(N*40|0)+8|0;F=b[(N&o)>>1]|0;w=z+(w*40|0)+8|0;M=b[(w&o)>>1]|0;H=F&65535;A=M&65535;v=s+(t*20|0)+3|0;J=d[(v&n)>>0]|0;do if(!((M|F)&1)){J=J&71;if(J>>>0>66){if((H&14|0)==2){rh(L,0);A=b[(w&o)>>1]|0}else A=M;if((A&14)==2){rh(K,0);J=F;E=M}else{J=F;E=M}}else if((J|0)==66){if((H&2|0)!=0|(H&12|0)==0){I=M;J=F}else{bm(L,Jc,1)|0;I=b[(w&o)>>1]|0;J=(e[(N&o)>>1]&65024|H&511)&65535}V=I&65535;if((V&2|0)!=0|(V&12|0)==0)E=M;else{bm(K,Jc,1)|0;E=(e[(w&o)>>1]&65024|A&511)&65535}}else{J=F;E=M}if(b[(N&o)>>1]&16384){Rg(L)|0;J=J&49151}if(b[(w&o)>>1]&16384){Rg(K)|0;E=E&49151}if(a[(ge&n)>>0]|0){y=ge;z=je;r=m;m=x;ie=1317;break a}V=hm(K,L,c[(s+(t*20|0)&p)+16>>2]|0)|0;I=a[(C&n)>>0]|0;r=t;C=V}else{if(J&128){J=F;E=M;r=t;C=(F&1&M)<<16>>16!=0&(A&256|0)==0&1^1;break}if(J&32){u=c[(s+(t*20|0)&p)+8>>2]|0;S=z+(u*40|0)+8|0;b[(S&o)>>1]=e[(S&o)>>1]&48640|1;S=z;T=s;U=W;V=X;u=z+(u*40|0)|0;r=t;break q}if(!(J&16)){S=z;T=s;U=W;V=X;r=t;break q}S=z;T=s;U=W;V=X;r=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;break q}while(0);switch(I&255|0){case 79:{C=(C|0)==0&1;break}case 78:{C=(C|0)!=0&1;break}case 82:{C=C>>>31;break}case 81:{C=(C|0)<1&1;break}case 80:{C=(C|0)>0&1;break}default:C=C>>>31^1}if(!(a[(v&n)>>0]&32)){if(C)r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0}else{V=c[(s+(r*20|0)&p)+8>>2]|0;u=z+(V*40|0)|0;V=z+(V*40|0)+8|0;b[(V&o)>>1]=e[(V&o)>>1]&48640|4;V=u;c[(V&p)>>2]=C;c[(V&p)+4>>2]=0}b[(N&o)>>1]=J;b[(w&o)>>1]=E;S=z;T=s;U=W;V=X;break}case 248:{ie=0;S=z;T=s;U=c[(s+(r*20|0)&p)+16>>2]|0;V=X;break}case 249:{ie=0;w=(a[(s+(r*20|0)&n)+3>>0]&1)==0?0:W;F=c[(s+(r*20|0)&p)+12>>2]|0;H=c[(s+(r*20|0)&p)+16>>2]|0;I=c[(s+(r*20|0)&p)+4>>2]|0;J=c[(s+(r*20|0)&p)+8>>2]|0;if((F|0)>0){t=(w|0)==0;v=H+16|0;E=0;while(1){if(t)A=E;else A=c[(w+(E<<2)&p)>>2]|0;C=a[((c[(v&p)>>2]|0)+E&n)>>0]|0;A=hm(z+((A+I|0)*40|0)|0,z+((A+J|0)*40|0)|0,c[(H+(E<<2)&p)+20>>2]|0)|0;E=E+1|0;if(A)break;if((E|0)>=(F|0)){S=z;T=s;U=0;V=0;break q}}S=z;T=s;U=0;V=C<<24>>24==0?A:0-A|0}else{S=z;T=s;U=0;V=X}break}case 256:{ie=0;if((X|0)<0){S=z;T=s;U=W;V=X;r=(c[(s+(t*20|0)&p)+4>>2]|0)+-1|0;break}if(!X){S=z;T=s;U=W;V=0;r=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;break}else{S=z;T=s;U=W;V=X;r=(c[(s+(t*20|0)&p)+12>>2]|0)+-1|0;break}}case 261:{ie=0;t=c[(s+(r*20|0)&p)+4>>2]|0;if(!(b[(z+(t*40|0)&o)+8>>1]&1)){u=Vg(z+(t*40|0)|0)|0;u=(u|0)!=0|(G|0)!=0?3:0}else u=6;t=c[(s+(r*20|0)&p)+8>>2]|0;if(!(b[(z+(t*40|0)&o)+8>>1]&1)){t=Vg(z+(t*40|0)|0)|0;t=((t|0)!=0|(G|0)!=0)&1}else t=2;t=a[(((a[(C&n)>>0]|0)==72?41680:41696)+t+u&n)>>0]|0;u=c[(s+(r*20|0)&p)+12>>2]|0;J=z+(u*40|0)|0;if(t<<24>>24==2){S=z+(u*40|0)+8|0;b[(S&o)>>1]=e[(S&o)>>1]&48640|1;S=z;T=s;U=W;V=X;u=J;break}else{S=J;c[(S&p)>>2]=t&255;c[(S&p)+4>>2]=0;S=z+(u*40|0)+8|0;b[(S&o)>>1]=e[(S&o)>>1]&48640|4;S=z;T=s;U=W;V=X;u=J;break}}case 268:{ie=0;t=c[(s+(r*20|0)&p)+4>>2]|0;u=c[(s+(r*20|0)&p)+8>>2]|0;J=z+(u*40|0)|0;u=z+(u*40|0)+8|0;if(!(b[(u&o)>>1]&9312))b[(u&o)>>1]=1;else vg(J);if(!(b[(z+(t*40|0)&o)+8>>1]&1)){b[(u&o)>>1]=4;T=Vg(z+(t*40|0)|0)|0;S=J;c[(S&p)>>2]=(T|0)==0&(G|0)==0&1;c[(S&p)+4>>2]=0;S=z;T=s;U=W;V=X;u=J}else{S=z;T=s;U=W;V=X;u=J}break}case 273:{ie=0;t=c[(s+(r*20|0)&p)+4>>2]|0;u=c[(s+(r*20|0)&p)+8>>2]|0;J=z+(u*40|0)|0;u=z+(u*40|0)+8|0;if(!(b[(u&o)>>1]&9312))b[(u&o)>>1]=1;else vg(J);if(!(b[(z+(t*40|0)&o)+8>>1]&1)){b[(u&o)>>1]=4;T=Vg(z+(t*40|0)|0)|0;S=J;c[(S&p)>>2]=~T;c[(S&p)+4>>2]=~G;S=z;T=s;U=W;V=X;u=J}else{S=z;T=s;U=W;V=X;u=J}break}case 278:{ie=0;t=(c[(Hb&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]|0)|0;if(!(a[(t&n)>>0]|0)){a[(t&n)>>0]=1;S=z;T=s;U=W;V=X;break}else{S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0;break}}case 281:{ie=0;t=c[(s+(r*20|0)&p)+4>>2]|0;if(!(b[(z+(t*40|0)&o)+8>>1]&1)){t=+Ug(z+(t*40|0)|0)!=0.0;t=(t^(a[(C&n)>>0]|0)==46)&1}else t=c[(s+(r*20|0)&p)+12>>2]|0;if(!t){S=z;T=s;U=W;V=X}else{S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0}break}case 286:{ie=0;if(!(b[(z+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)&o)+8>>1]&1)){S=z;T=s;U=W;V=X}else{S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0}break}case 288:{ie=0;if(!(b[(z+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)&o)+8>>1]&1)){S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0}else{S=z;T=s;U=W;V=X}break}case 290:{ie=0;T=c[(s+(t*20|0)&p)+8>>2]|0;M=c[(s+(t*20|0)&p)+12>>2]|0;A=z+(M*40|0)|0;S=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;w=c[(S&p)+80>>2]|0;v=c[(S&p)>>2]|0;if(!(a[(S&n)+26>>0]|0)){if((v|0)!=0?(a[(v&n)+73>>0]|0)!=1:0){Td=jm(S)|0;ie=295}}else{Td=im(S)|0;ie=295}if((ie|0)==295?(ie=0,(Td|0)!=0):0){u=Td;ie=1318;break c}L=S+60|0;C=c[($d&p)>>2]|0;u:do if((c[(L&p)>>2]|0)==(C|0)){C=b[(S&o)+22>>1]|0;if((C&65535|0)>(T|0))ie=350;else{I=S+72|0;ie=318}}else{do if(a[(S&n)+25>>0]|0){if(!v){J=c[(S&p)+16>>2]|0;F=c[(z+(J*40|0)&p)+12>>2]|0;c[(S&p)+68>>2]=F;c[(S&p)+64>>2]=F;J=c[(z+(J*40|0)&p)+16>>2]|0;K=S+76|0;c[(K&p)>>2]=J;break}r=z+(M*40|0)+8|0;if(!(b[(r&o)>>1]&9312)){b[(r&o)>>1]=1;break u}else{vg(A);break u}}else{if(!(a[(S&n)+27>>0]&4)){km(v,td);I=e[(v&o)+40>>1]|0;J=c[(v&p)+32>>2]|0;c[(S&p)+76>>2]=J;C=c[(td&p)>>2]|0;c[(S&p)+64>>2]=C}else{C=S+64|0;lm(v,C);I=e[(v&o)+40>>1]|0;J=c[(v&p)+32>>2]|0;c[(S&p)+76>>2]=J;C=c[(C&p)>>2]|0}c[(S&p)+68>>2]=C>>>0>I>>>0?I:C;if(C>>>0>(c[(zb&p)>>2]|0)>>>0){u=x;ie=1316;break c}K=S+76|0;C=c[($d&p)>>2]|0;F=I}while(0);c[(L&p)>>2]=C;C=a[(J&n)>>0]|0;if(C<<24>>24>-1){H=C&255;c[(kd&p)>>2]=H;J=1}else{J=mm(J,kd)|0;H=c[(kd&p)>>2]|0}I=S+72|0;c[(I&p)>>2]=J&255;b[(S&o)+22>>1]=0;c[(w&p)>>2]=H;if(H>>>0>98307){u=x;ie=313;break c}if(H>>>0>(c[(S&p)+64>>2]|0)>>>0){u=x;ie=313;break c}if(F>>>0>>0){c[(K&p)>>2]=0;c[(S&p)+68>>2]=0;C=0;ie=318}else{C=0;ie=318}}while(0);do if((ie|0)==318){ie=0;J=c[(I&p)>>2]|0;H=c[(w&p)>>2]|0;if(J>>>0>>0){P=S+76|0;F=c[(P&p)>>2]|0;if(!F){U=Jd+0|0;V=U+40|0;do{c[(U&p)>>2]=0;U=U+4|0}while((U|0)<(V|0));J=nm(v,0,c[(w&p)>>2]|0,((d[(S&n)+27>>0]|0)>>>2&1^1)&255,Jd)|0;if(J){s=J;u=x;ie=1309;break c}C=S+22|0;O=C;C=b[(C&o)>>1]|0;J=c[(I&p)>>2]|0;H=c[(w&p)>>2]|0;N=c[(Jb&p)>>2]|0}else{O=S+22|0;N=F}E=C&65535;K=c[(w+(E<<2)&p)>>2]|0;c[(kd&p)>>2]=K;C=N+H|0;J=N+J|0;while(1){F=a[(J&n)>>0]|0;if(F<<24>>24>-1){L=F&255;c[(Ld&p)>>2]=L;J=J+1|0}else{J=J+((mm(J,Ld)|0)&255)|0;L=c[(Ld&p)>>2]|0}c[(S+(E<<2)&p)+84>>2]=L;if(L>>>0>11)F=(L+-12|0)>>>1;else F=d[(L&n)+34336>>0]|0;L=K+F|0;c[(kd&p)>>2]=L;if(L>>>0>>0){J=L;F=E;ie=331;break}F=E+1|0;c[(w+(F<<2)&p)>>2]=L;if((E|0)<(T|0)&J>>>0>>0){K=L;E=F}else break}if((ie|0)==331){ie=0;L=J;J=N+(H+1)|0}b[(O&o)>>1]=F;c[(I&p)>>2]=J-N;if(!(c[(P&p)>>2]|0)){if(!((b[(Kb&o)>>1]&9312)==0&(c[(Lb&p)>>2]|0)==0))Qg(Jd);b[(Kb&o)>>1]=1}if(J>>>0>=C>>>0){if(J>>>0>C>>>0){u=x;ie=343;break c}if((L|0)==(c[(S&p)+64>>2]|0))C=L;else{u=x;ie=343;break c}}else C=c[(S&p)+64>>2]|0;if(L>>>0>C>>>0){u=x;ie=343;break c}C=b[(O&o)>>1]|0}if((C&65535|0)<=(T|0)){if((a[(s+(t*20|0)&n)+1>>0]|0)==-8){Zl(A,c[(s+(t*20|0)&p)+16>>2]|0,2048);r=z+(M*40|0)+8|0;break}r=z+(M*40|0)+8|0;if(!(b[(r&o)>>1]&9312)){b[(r&o)>>1]=1;break}else{vg(A);break}}else ie=350}while(0);if((ie|0)==350){ie=0;r=z+(M*40|0)+8|0;if(b[(r&o)>>1]&9312)vg(A);J=c[(S+(T<<2)&p)+84>>2]|0;c[(Ld&p)>>2]=J;do if((c[(S&p)+68>>2]|0)>>>0<(c[(w+(T+1<<2)&p)>>2]|0)>>>0){V=a[(s+(t*20|0)&n)+3>>0]|0;if(!((V&255)>63?J>>>0>11&(J&1|0)==0|V<<24>>24<0:0)){if(J>>>0>11)C=(J+-12|0)>>>1;else C=d[(J&n)+34336>>0]|0;if(C){C=nm(v,c[(w+(T<<2)&p)>>2]|0,C,((d[(S&n)+27>>0]|0)>>>2&1^1)&255,A)|0;if(C){s=C;u=x;ie=1309;break c}om(c[(z+(M*40|0)&p)+16>>2]|0,J,A)|0;b[(r&o)>>1]=e[(r&o)>>1]&61439;break}}om(J>>>0<14?td:0,J,A)|0}else om((c[(S&p)+76>>2]|0)+(c[(w+(T<<2)&p)>>2]|0)|0,J,A)|0;while(0);a[(z+(M*40|0)&n)+10>>0]=Jc}w=e[(r&o)>>1]|0;if((w&4096|0)!=0?(Ac=z+(M*40|0)+16|0,Bc=c[(Ac&p)>>2]|0,(Bc|0)!=0):0){v=c[(z+(M*40|0)&p)+12>>2]|0;if(fh(A,v+2|0)|0){y=ge;z=je;r=m;m=x;ie=1317;break a}kw(c[(Ac&p)>>2]|0,Bc|0,v|0)|0;a[((c[(Ac&p)>>2]|0)+v&n)>>0]=0;a[((c[(Ac&p)>>2]|0)+v&n)+1>>0]=0;b[(r&o)>>1]=w&18|512;S=z;T=s;U=W;V=X;r=t}else{S=z;T=s;U=W;V=X;r=t}break}case 368:{ie=0;v=c[(s+(r*20|0)&p)+16>>2]|0;t=a[(v&n)>>0]|0;if(!(t<<24>>24)){S=z;T=s;U=W;V=X}else{w=z+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)|0;while(1){v=v+1|0;fm(w,t,Jc);t=a[(v&n)>>0]|0;if(!(t<<24>>24)){S=z;T=s;U=W;V=X;break}else w=w+40|0}}break}case 371:{ie=0;U=c[(s+(t*20|0)&p)+4>>2]|0;C=c[(s+(t*20|0)&p)+16>>2]|0;V=z+(U*40|0)|0;U=z+((U+-1+(c[(s+(t*20|0)&p)+8>>2]|0)|0)*40|0)|0;A=a[(Mb&n)>>0]|0;T=c[(s+(t*20|0)&p)+12>>2]|0;u=z+(T*40|0)|0;if(C){r=a[(C&n)>>0]|0;v=V;while(1){C=C+1|0;fm(v,r,Jc);r=a[(C&n)>>0]|0;if(!(r<<24>>24))break;else v=v+40|0}}N=(A&255)>3;L=0;K=0;O=0;C=0;w=U;while(1){E=b[(w&o)+8>>1]|0;I=E&65535;v:do if(!(I&1)){do if(!(I&4)){if(I&8){J=7;ie=388;break v}J=c[(w&p)+12>>2]|0;if(I&16384)J=(c[(w&p)>>2]|0)+J|0;J=(J<<1)+12|I>>>1&1}else{I=w;J=c[(I&p)>>2]|0;I=c[(I&p)+4>>2]|0;H=ew(J|0,I|0,63)|0;H=H^J;F=G^I;if(F>>>0<0|(F|0)==0&H>>>0<128){if(!((J&1|0)==(J|0)&0==(I|0)&N)){J=1;ie=388;break v}J=H+8|0;break}if(F>>>0<0|(F|0)==0&H>>>0<32768){J=2;ie=388;break v}if(F>>>0<0|(F|0)==0&H>>>0<8388608){J=3;ie=388;break v}if(F>>>0<0|(F|0)==0&H>>>0<2147483648){J=4;ie=388;break v}J=F>>>0<32768|(F|0)==32768&H>>>0<0?5:6;ie=388;break v}while(0);c[(w&p)+28>>2]=J;if(J>>>0>11){I=J;J=(J+-12|0)>>>1}else ie=391}else{J=0;ie=388}while(0);if((ie|0)==388){c[(w&p)+28>>2]=J;ie=391}if((ie|0)==391){ie=0;I=J;J=d[(J&n)+34336>>0]|0}do if(E&16384)if((L|0)==0&(K|0)==0){E=c[(w&p)>>2]|0;J=J-E|0;E=E+C|0;break}else{Rg(w)|0;E=C;break}else E=C;while(0);L=jw(J|0,((J|0)<0)<<31>>31|0,L|0,K|0)|0;K=G;if(I>>>0<128)J=1;else{H=0;J=0;do{J=J+1|0;I=mw(I|0,H|0,7)|0;H=G}while(((I|0)!=0|(H|0)!=0)&(J|0)<9)}J=J+O|0;w=w+-40|0;if(w>>>0>>0){F=J;P=E;break}else{O=J;C=E}}if((F|0)<127)I=F+1|0;else{I=F;H=((F|0)<0)<<31>>31;J=0;do{J=J+1|0;I=mw(I|0,H|0,7)|0;H=G}while(((I|0)!=0|(H|0)!=0)&(J|0)<9);F=J+F|0;I=F;H=((F|0)<0)<<31>>31;C=0;do{C=C+1|0;I=mw(I|0,H|0,7)|0;H=G}while(((I|0)!=0|(H|0)!=0)&(C|0)<9);I=((J|0)<(C|0)&1)+F|0}J=((I|0)<0)<<31>>31;E=jw(I|0,J|0,L|0,K|0)|0;N=G;S=c[(zb&p)>>2]|0;O=((S|0)<0)<<31>>31;if((N|0)>(O|0)|(N|0)==(O|0)&E>>>0>S>>>0){u=x;ie=1316;break c}if(fh(u,E)|0){y=ge;z=je;r=m;m=x;ie=1317;break a}A=c[(z+(T*40|0)&p)+16>>2]|0;if(I>>>0<128){a[(A&n)>>0]=I;K=1;L=V}else{K=(pm(A,I,J)|0)&255;L=V}while(1){H=c[(L&p)+28>>2]|0;if(H>>>0<128){a[(A+K&n)>>0]=H;J=1}else J=(pm(A+K|0,H,0)|0)&255;K=J+K|0;J=A+I|0;if(!(H>>>0<8&(H|0)!=0))if(H>>>0>11){C=c[(L&p)+12>>2]|0;kw(J|0,c[(L&p)+16>>2]|0,C|0)|0}else C=0;else{J=L;if(H>>>0>11)C=(H+-12|0)>>>1;else C=d[(H&n)+34336>>0]|0;F=c[(J&p)>>2]|0;J=c[(J&p)+4>>2]|0;H=C;while(1){H=H+-1|0;a[(A+H+I&n)>>0]=F;F=mw(F|0,J|0,8)|0;if(!H)break;else J=G}}L=L+40|0;if(L>>>0>U>>>0)break;else I=C+I|0}c[(z+(T*40|0)&p)+12>>2]=E;r=z+(T*40|0)+8|0;b[(r&o)>>1]=16;if(P){c[(u&p)>>2]=P;b[(r&o)>>1]=16400}a[(z+(T*40|0)&n)+10>>0]=1;S=z;T=s;U=W;V=X;r=t;break}case 446:{ie=0;if((c[(ae&p)>>2]|0)>0){u=x;ie=447;break c}if(!v)w=0;else{t=v;while(1)if(!(a[(t&n)>>0]|0))break;else t=t+1|0;w=t-v&1073741823}u=sm(le,0,(c[(Ob&p)>>2]|0)+(c[(Nb&p)>>2]|0)|0)|0;if(u){t=r;ie=1318;break c}t=mh(le,w+33|0,0)|0;if(!t){S=z;T=s;U=W;V=X;u=L}else{V=t+32|0;c[(t&p)>>2]=V;kw(V|0,v|0,w+1|0)|0;if(!(a[(ee&n)>>0]|0))c[(Ob&p)>>2]=(c[(Ob&p)>>2]|0)+1;else{a[(ee&n)>>0]=0;a[(Sb&n)>>0]=1}c[(t&p)+24>>2]=c[(Pb&p)>>2];c[(Pb&p)>>2]=t;S=Qb;T=c[(S&p)+4>>2]|0;U=t+8|0;c[(U&p)>>2]=c[(S&p)>>2];c[(U&p)+4>>2]=T;U=Rb;T=c[(U&p)+4>>2]|0;S=t+16|0;c[(S&p)>>2]=c[(U&p)>>2];c[(S&p)+4>>2]=T;S=z;T=s;U=W;V=X;u=L}break}case 486:{c[(Ob&p)>>2]=(c[(Ob&p)>>2]|0)+-1;ie=488;break}case 525:{ie=0;wm(c[((c[(Xd&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<4)&p)+4>>2]|0,c[(s+(r*20|0)&p)+12>>2]|0,Yc);T=c[(Yc&p)>>2]|0;S=u;c[(S&p)>>2]=T;c[(S&p)+4>>2]=((T|0)<0)<<31>>31;S=z;T=s;U=W;V=X;break}case 558:{ie=0;v=xm(f,c[(s+(t*20|0)&p)+4>>2]|0,c[(s+(t*20|0)&p)+8>>2]|0,-1,1)|0;if(!v){y=ge;z=je;r=m;m=x;ie=1317;break a}r=c[(s+(t*20|0)&p)+16>>2]|0;C=v+8|0;c[(C&p)>>2]=r;A=c[(s+(t*20|0)&p)+12>>2]|0;r=e[(r&o)+6>>1]<<2;u=r+148|0;w=mh(le,u,0)|0;if(!w){s=v;u=x;ie=560;break c}fw(w|0,0,u|0)|0;c[(v&p)+56>>2]=w;V=w+128|0;c[(w&p)+28>>2]=V;kw(V|0,c[(C&p)>>2]|0,r+20|0)|0;c[(w&p)+140>>2]=0;if(A)b[(w&o)+134>>1]=A;r=c[(Xd&p)>>2]|0;u=c[((c[((c[(r&p)+4>>2]|0)&p)+4>>2]|0)&p)+32>>2]|0;c[(w&p)+12>>2]=u;a[(w&n)+59>>0]=1;a[(w&n)+57>>0]=0;c[(w&p)+24>>2]=le;c[(w&p)+72>>2]=w;if(((a[(_b&n)>>0]|0)!=2?(Dc=c[2242]|0,c[(w&p)>>2]=ca(Dc,u)|0,V=c[((c[(r&p)+12>>2]|0)&p)+80>>2]|0,V=(V|0)<(Dc|0)?Dc:V,Dc=((u|0)<0)<<31>>31,V=sw(V|0,((V|0)<0)<<31>>31|0,u|0,Dc|0)|0,U=G,c[(w&p)+4>>2]=(U|0)<0|(U|0)==0&V>>>0<536870912?V:536870912,(c[2234]|0)==0):0)?(c[(w&p)+52>>2]=u,V=qg(u,Dc)|0,c[(w&p)+40>>2]=V,(V|0)==0):0){s=7;u=x;ie=1309;break c}else{S=z;T=s;U=W;V=X;u=L;r=t}break}case 566:{ie=0;T=(c[((c[(Ib&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<2)&p)>>2]|0)+40|0;V=T;U=c[(V&p)>>2]|0;V=c[(V&p)+4>>2]|0;S=jw(U|0,V|0,1,0)|0;c[(T&p)>>2]=S;c[(T&p)+4>>2]=G;if((U|0)==0&(V|0)==0){S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0}else{S=z;T=s;U=W;V=X}break}case 568:{ie=0;r=xm(f,c[(s+(t*20|0)&p)+4>>2]|0,c[(s+(t*20|0)&p)+12>>2]|0,-1,0)|0;if(!r){y=ge;z=je;r=m;m=x;ie=1317;break a}a[(r&n)+25>>0]=1;c[(r&p)+16>>2]=c[(s+(t*20|0)&p)+8>>2];S=r+27|0;a[(S&n)>>0]=a[(S&n)>>0]|4;S=z;T=s;U=W;V=X;r=t;break}case 570:{ie=0;S=s+(r*20|0)+4|0;Bm(f,c[((c[(Ib&p)>>2]|0)+(c[(S&p)>>2]<<2)&p)>>2]|0);c[((c[(Ib&p)>>2]|0)+(c[(S&p)>>2]<<2)&p)>>2]=0;S=z;T=s;U=W;V=X;break}case 571:{ie=0;H=c[((c[(Ib&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<2)&p)>>2]|0;a[(H&n)+25>>0]=0;if(!(a[(H&n)+27>>0]&4)){V=c[(s+(r*20|0)&p)+16>>2]|0;c[(wd&p)>>2]=c[(H&p)+8>>2];b[($b&o)>>1]=V;a[(cc&n)>>0]=(K<<1&2^2)+255;V=c[(s+(r*20|0)&p)+12>>2]|0;t=z+(V*40|0)|0;c[(dc&p)>>2]=t;if(b[(z+(V*40|0)&o)+8>>1]&16384)Rg(t)|0;u=Cm(c[(H&p)>>2]|0,wd,0,0,0,Ad)|0;if(!u){u=K;J=L}else{t=r;ie=1318;break c}}else{C=c[(s+(r*20|0)&p)+12>>2]|0;A=z+(C*40|0)|0;C=z+(C*40|0)+8|0;if((b[(C&o)>>1]&14)==2)rh(A,0);J=Vg(A)|0;I=G;C=e[(C&o)>>1]|0;do if(!(C&4)){if(!(C&8)){S=z;T=s;U=W;V=X;u=L;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0;break q}B=+h[(A&q)>>3];D=+(J>>>0)+4294967296.0*+(I|0);if(B>31)+K|0;break}else{C=(B>D&(K&1|0)==0&1)+K|0;break}}else C=K;while(0);u=Cm(c[(H&p)>>2]|0,0,J,I,0,Ad)|0;V=H+48|0;c[(V&p)>>2]=J;c[(V&p)+4>>2]=I;if(!u){u=C;J=L}else{t=r;ie=1318;break c}}a[(H&n)+26>>0]=0;c[(H&p)+60>>2]=0;t=c[(Ad&p)>>2]|0;do if((u|0)>63){if((t|0)>=0?!((t|0)==0&(u|0)==65):0){c[(Ad&p)>>2]=0;S=z;T=s;U=W;V=X;u=J;break q}c[(Ad&p)>>2]=0;u=Dm(c[(H&p)>>2]|0,Ad)|0;if(!u)ie=593;else{t=r;ie=1318;break c}}else{if((t|0)<=0?!((t|0)==0&(u|0)==62):0){t=(a[((c[(H&p)>>2]|0)&n)+73>>0]|0)!=1&1;c[(Ad&p)>>2]=t;break}c[(Ad&p)>>2]=0;u=Em(c[(H&p)>>2]|0,Ad)|0;if(!u)ie=593;else{t=r;ie=1318;break c}}while(0);if((ie|0)==593){ie=0;t=c[(Ad&p)>>2]|0}if(!t){S=z;T=s;U=W;V=X;u=J}else{S=z;T=s;U=W;V=X;u=J;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0}break}case 596:{ie=0;S=c[((c[(Ib&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<2)&p)>>2]|0;a[(S&n)+25>>0]=0;U=Vg(z+((c[(s+(r*20|0)&p)+8>>2]|0)*40|0)|0)|0;T=S+48|0;c[(T&p)>>2]=U;c[(T&p)+4>>2]=G;a[(S&n)+26>>0]=1;S=z;T=s;U=W;V=X;break}case 597:{ie=0;I=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;r=c[(s+(t*20|0)&p)+12>>2]|0;J=z+(r*40|0)|0;c[(od&p)>>2]=0;K=s+(t*20|0)+16|0;C=c[(K&p)>>2]|0;v=I+8|0;A=c[(v&p)>>2]|0;w:do if((C|0)>0){c[(xd&p)>>2]=A;C=C&65535;b[(ec&o)>>1]=C;c[(fc&p)>>2]=J;if(!(C<<16>>16))v=xd;else{r=J;A=0;while(1){if(b[(r+(A*40|0)&o)+8>>1]&16384){Rg(r+(A*40|0)|0)|0;C=b[(ec&o)>>1]|0}A=A+1|0;if((A|0)>=(C&65535|0)){v=xd;break w}r=c[(fc&p)>>2]|0}}}else{C=Fm(A,Sc,191,od)|0;if(!C){y=ge;z=je;r=m;m=x;ie=1317;break a}if(b[(z+(r*40|0)&o)+8>>1]&16384)Rg(J)|0;Gm(c[(v&p)>>2]|0,c[(z+(r*40|0)&p)+12>>2]|0,c[(z+(r*40|0)&p)+16>>2]|0,C);v=C}while(0);a[(v&n)+6>>0]=0;x:do if((a[(H&n)>>0]|0)==67?(Ec=b[(v&o)+4>>1]|0,Ec<<16>>16!=0):0){C=c[(v&p)+8>>2]|0;A=0;while(1){if(b[(C+(A*40|0)&o)+8>>1]&1)break;A=A+1|0;if((A|0)>=(Ec&65535|0)){L=t;r=t;break x}}L=t;r=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0}else{L=t;r=t}while(0);C=Cm(c[(I&p)>>2]|0,v,0,0,0,Bd)|0;if(!(c[(K&p)>>2]|0))mg(le,c[(od&p)>>2]|0);if(C){t=r;s=C;u=x;ie=1309;break c}t=c[(Bd&p)>>2]|0;c[(I&p)+12>>2]=t;t=(t|0)==0;a[(I&n)+25>>0]=t&1^1;a[(I&n)+26>>0]=0;c[(I&p)+60>>2]=0;if((a[(H&n)>>0]|0)==69){if(!t){S=z;T=s;U=W;V=X;break}S=z;T=s;U=W;V=X;r=(c[(s+(L*20|0)&p)+8>>2]|0)+-1|0;break}else{if(t){S=z;T=s;U=W;V=X;break}S=z;T=s;U=W;V=X;r=(c[(s+(L*20|0)&p)+8>>2]|0)+-1|0;break}}case 624:{ie=0;S=(c[((c[(Ib&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<2)&p)>>2]|0)+40|0;T=S;U=c[(T&p)>>2]|0;T=c[(T&p)+4>>2]|0;V=jw(U|0,T|0,1,0)|0;c[(S&p)>>2]=V;c[(S&p)+4>>2]=G;S=u;c[(S&p)>>2]=U;c[(S&p)+4>>2]=T;S=z;T=s;U=W;V=X;break}case 647:{ie=0;I=c[(s+(r*20|0)&p)+8>>2]|0;v=c[((c[(Ib&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<2)&p)>>2]|0;t=c[(s+(r*20|0)&p)+12>>2]|0;if(C<<24>>24==75){F=z+(t*40|0)|0;E=c[(F&p)>>2]|0;F=c[(F&p)+4>>2]|0}else{E=t;F=((t|0)<0)<<31>>31}H=s+(r*20|0)+3|0;J=a[(H&n)>>0]|0;if(J&1)c[(ub&p)>>2]=(c[(ub&p)>>2]|0)+1;if(J&2){m=ne;c[(m&p)>>2]=E;c[(m&p)+4>>2]=F;m=E;l=F}C=b[(z+(I*40|0)&o)+8>>1]|0;if(C&1){c[(z+(I*40|0)&p)+16>>2]=0;c[(z+(I*40|0)&p)+12>>2]=0}if(!(J&16))A=0;else A=c[(v&p)+12>>2]|0;if(!(C&16384))C=0;else C=c[(z+(I*40|0)&p)>>2]|0;C=Im(c[(v&p)>>2]|0,0,E,F,c[(z+(I*40|0)&p)+16>>2]|0,c[(z+(I*40|0)&p)+12>>2]|0,C,(J&255)>>>3&1,A)|0;a[(v&n)+26>>0]=0;c[(v&p)+60>>2]=0;if(C){t=r;s=C;u=x;ie=1309;break c}t=c[(gc&p)>>2]|0;if((t|0)!=0?(Fc=c[(s+(r*20|0)&p)+16>>2]|0,(Fc|0)!=0):0){bc[t&1](c[(hc&p)>>2]|0,(a[(H&n)>>0]&4)!=0?23:18,c[((c[(Xd&p)>>2]|0)+(a[(v&n)+24>>0]<<4)&p)>>2]|0,Fc,E,F);S=z;T=s;U=W;V=X}else{S=z;T=s;U=W;V=X}break}case 671:{ie=0;S=c[(ub&p)>>2]|0;c[(vb&p)>>2]=S;c[(wb&p)>>2]=(c[(wb&p)>>2]|0)+S;c[(ub&p)>>2]=0;S=z;T=s;U=W;V=X;break}case 672:{ie=0;J=c[((c[(Ib&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<2)&p)>>2]|0;I=c[(s+(r*20|0)&p)+12>>2]|0;H=c[(s+(r*20|0)&p)+16>>2]|0;t=c[(J&p)+56>>2]|0;A=t+32|0;C=c[(A&p)>>2]|0;J=c[(J&p)+8>>2]|0;if(!C){C=Fm(J,0,0,md)|0;c[(A&p)>>2]=C;if(!C){t=r;s=7;u=x;ie=1309;break c}b[(C&o)+4>>1]=H}if(!(a[(t&n)+56>>0]|0)){t=c[(t&p)+36>>2]|0;A=t;t=t+8|0}else{V=c[(t&p)+20>>2]|0;t=c[((c[(V&p)+8>>2]|0)&p)+4>>2]|0;V=c[(V&p)+12>>2]|0;A=V+(t*56|0)+20|0;t=c[(V+(t*56|0)&p)+32>>2]|0}Gm(J,c[(A&p)>>2]|0,t,C);y:do if((H|0)>0){t=c[(C&p)+8>>2]|0;v=0;while(1){if(b[(t+(v*40|0)&o)+8>>1]&1)break y;v=v+1|0;if((v|0)>=(H|0)){ie=682;break}}}else ie=682;while(0);if((ie|0)==682){ie=0;if(!(Km(c[(z+(I*40|0)&p)+12>>2]|0,c[(z+(I*40|0)&p)+16>>2]|0,C,0)|0)){S=z;T=s;U=W;V=X;break}}S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0;break}case 700:{ie=0;b[(u&o)+8>>1]=1;S=z;T=s;U=W;V=X;break}case 708:{ie=0;b[(u&o)+8>>1]=1;S=z;T=s;U=W;V=X;break}case 711:{ie=0;t=c[((c[(Ib&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<2)&p)>>2]|0;a[(t&n)+25>>0]=1;c[(t&p)+60>>2]=0;t=c[(t&p)>>2]|0;if(!t){S=z;T=s;U=W;V=X}else{S=t+56|0;Wc(c[(S&p)>>2]|0);c[(S&p)>>2]=0;a[(t&n)+73>>0]=0;S=z;T=s;U=W;V=X}break}case 801:{ie=0;t=c[((c[(Ib&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<2)&p)>>2]|0;u=c[(t&p)>>2]|0;K=L+8|0;b[(K&o)>>1]=1;if((a[(u&n)+73>>0]|0)!=1?(Vd=jm(t)|0,(Vd|0)!=0):0){t=r;u=Vd;ie=1318;break c}if(!(a[(t&n)+25>>0]|0)){V=Sd;c[(V&p)>>2]=0;c[(V&p)+4>>2]=0;km(u,Sd);b[(qc&o)>>1]=0;c[(sc&p)>>2]=le;c[(uc&p)>>2]=0;u=nm(u,0,c[(Sd&p)>>2]|0,1,$c)|0;do if(!u){t=c[(vc&p)>>2]|0;u=a[(t&n)>>0]|0;if(u<<24>>24>-1){C=u&255;c[(qd&p)>>2]=C}else{mm(t,qd)|0;C=c[(qd&p)>>2]|0}if(!(C>>>0<3?1:(C|0)>(c[(wc&p)>>2]|0))){t=(c[(vc&p)>>2]|0)+(C+-1)|0;u=a[(t&n)>>0]|0;if(u<<24>>24>-1){u=u&255;c[(Nd&p)>>2]=u}else{mm(t,Nd)|0;u=c[(Nd&p)>>2]|0}if(!((u+-1|0)>>>0>8|(u|0)==7)){if(u>>>0>11)t=(u+-12|0)>>>1;else t=d[(u&n)+34336>>0]|0;v=c[(wc&p)>>2]|0;if(v>>>0>=(t+C|0)>>>0){om((c[(vc&p)>>2]|0)+(v-t)|0,u,Qd)|0;v=Qd;t=c[(v&p)>>2]|0;v=c[(v&p)+4>>2]|0;if((b[(qc&o)>>1]&9312)==0&(c[(uc&p)>>2]|0)==0){u=0;break}Qg($c);u=0;break}}}if(!((b[(qc&o)>>1]&9312)==0&(c[(uc&p)>>2]|0)==0))Qg($c);c[(ke&p)>>2]=68698;c[(ke&p)+4>>2]=10788;bd(11,13600,ke);u=11;t=0;v=0}else{t=0;v=0}while(0);if(u){t=r;ie=1318;break c}S=L;c[(S&p)>>2]=t;c[(S&p)+4>>2]=v;b[(K&o)>>1]=4;S=z;T=s;U=W;V=X;u=L}else{S=z;T=s;U=W;V=X;u=L}break}case 865:{ie=0;w=c[(C&p)>>2]|0;C=c[((c[(Xd&p)>>2]|0)+(K<<4)&p)+12>>2]|0;t=c[(C&p)+16>>2]|0;if(t)do{v=(c[(t&p)+8>>2]|0)+32|0;if((c[(v&p)>>2]|0)==(A|0))c[(v&p)>>2]=w;t=c[(t&p)>>2]|0}while((t|0)!=0);t=c[(C&p)+32>>2]|0;if(t)do{v=(c[(t&p)+8>>2]|0)+40|0;if((c[(v&p)>>2]|0)==(A|0))c[(v&p)>>2]=w;t=c[(t&p)>>2]|0}while((t|0)!=0);S=z;T=s;U=W;V=X;x=K+1&255;break}case 878:{ie=0;_m(le,u);S=z;T=s;U=W;V=X;u=J;break}case 881:{ie=0;V=c[(s+(r*20|0)&p)+4>>2]|0;c[(Zc&p)>>2]=le;c[(ia&p)>>2]=V;c[(ja&p)>>2]=je;u=c[(s+(r*20|0)&p)+16>>2]|0;c[(ke&p)>>2]=c[((c[(Xd&p)>>2]|0)+(V<<4)&p)>>2];c[(ke&p)+4>>2]=(V|0)==1?13184:13208;c[(ke&p)+8>>2]=u;u=uh(le,42048,ke)|0;if(!u){t=r;u=x;ie=882;break c}a[(ka&n)>>0]=1;c[(la&p)>>2]=0;t=Qe(le,u,22,Zc,0)|0;t=(t|0)==0?c[(la&p)>>2]|0:t;mg(le,u);a[(ka&n)>>0]=0;if(!t){S=z;T=s;U=W;V=X;u=J}else{s=t;t=r;u=x;ie=884;break c}break}case 886:{ie=0;kg(le,Ik((c[((c[(Xd&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<4)&p)+12>>2]|0)+8|0,c[(s+(r*20|0)&p)+16>>2]|0,0)|0);c[(Tb&p)>>2]=c[(Tb&p)>>2]|2;S=z;T=s;U=W;V=X;break}case 887:{ie=0;C=Ik((c[((c[(Xd&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<4)&p)+12>>2]|0)+24|0,c[(s+(r*20|0)&p)+16>>2]|0,0)|0;if(C){t=(c[(C&p)+12>>2]|0)+8|0;u=c[(t&p)>>2]|0;z:do if((u|0)==(C|0))c[(t&p)>>2]=c[(C&p)+20>>2];else{do{if(!u)break z;t=u+20|0;u=c[(t&p)>>2]|0}while((u|0)!=(C|0));c[(t&p)>>2]=c[(C&p)+20>>2]}while(0);Jk(le,C)}c[(Tb&p)>>2]=c[(Tb&p)>>2]|2;S=z;T=s;U=W;V=X;u=J;break}case 895:{ie=0;C=Ik((c[((c[(Xd&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<4)&p)+12>>2]|0)+40|0,c[(s+(r*20|0)&p)+16>>2]|0,0)|0;if(!C){S=z;T=s;U=W;V=X}else{t=c[(C&p)+20>>2]|0;if((t|0)==(c[(C&p)+24>>2]|0)){t=bn(t+8|0,c[(C&p)+4>>2]|0,ke)|0;if(!t)t=0;else t=c[(t&p)+8>>2]|0;v=t+64|0;while(1){V=c[(v&p)>>2]|0;t=V+32|0;if((V|0)==(C|0))break;else v=t}c[(v&p)>>2]=c[(t&p)>>2]}jg(le,C);c[(Tb&p)>>2]=c[(Tb&p)>>2]|2;S=z;T=s;U=W;V=X}break}case 903:{ie=0;L=c[(s+(t*20|0)&p)+8>>2]|0;v=mh(le,(L<<2)+4|0,0)|0;if(!v){y=ge;z=je;r=m;m=x;ie=1317;break a}A=c[(s+(t*20|0)&p)+12>>2]|0;r=c[(s+(t*20|0)&p)+4>>2]|0;M=z+(r*40|0)|0;if((L|0)>0){C=0;do{V=Vg(z+((C+r|0)*40|0)|0)|0;c[(v+(C<<2)&p)>>2]=V;C=C+1|0}while((C|0)!=(L|0));C=L}else C=0;c[(v+(C<<2)&p)>>2]=0;I=c[((c[(Xd&p)>>2]|0)+(d[(s+(t*20|0)&n)+3>>0]<<4)&p)+4>>2]|0;P=z+(A*40|0)|0;V=c[(P&p)>>2]|0;O=c[(I&p)+4>>2]|0;c[(O&p)+4>>2]=c[(I&p)>>2];I=c[(O&p)>>2]|0;w=c[((c[(I&p)+204>>2]|0)&p)+12>>2]|0;c[(Sd&p)>>2]=O;c[(ma&p)>>2]=I;I=c[(O&p)+44>>2]|0;c[(na&p)>>2]=I;c[(oa&p)>>2]=V;c[(pa&p)>>2]=0;c[(pa&p)+4>>2]=0;c[(pa&p)+8>>2]=0;c[(pa&p)+12>>2]=0;c[(pa&p)+16>>2]=0;do if(!I){A=0;C=0}else{J=(I>>>3)+1|0;H=qg(J,0)|0;if(!H){c[(sa&p)>>2]=0;A=0;C=1;break}fw(H|0,0,J|0)|0;c[(sa&p)>>2]=H;N=O+32|0;J=(((c[2514]|0)>>>0)/((c[(N&p)>>2]|0)>>>0)|0)+1|0;if(J>>>0<=I>>>0){V=H+(J>>>3)|0;a[(V&n)>>0]=d[(V&n)>>0]|1<<(J&7)}c[(ua&p)>>2]=Nd;c[(va&p)>>2]=Nd;c[(ta&p)>>2]=0;c[(wa&p)>>2]=0;c[(xa&p)>>2]=100;c[(ya&p)>>2]=1e9;a[(Aa&n)>>0]=0;a[(za&n)>>0]=2;c[(ra&p)>>2]=43592;C=c[((c[(O&p)+12>>2]|0)&p)+56>>2]|0;cn(Sd,1,d[(C&n)+33>>0]<<16|d[(C&n)+32>>0]<<24|d[(C&n)+34>>0]<<8|d[(C&n)+35>>0],d[(C&n)+37>>0]<<16|d[(C&n)+36>>0]<<24|d[(C&n)+38>>0]<<8|d[(C&n)+39>>0]);c[(ra&p)>>2]=0;C=c[(oa&p)>>2]|0;if(!((L|0)<1|(C|0)==0)){F=O+17|0;H=0;do{I=v+(H<<2)|0;J=c[(I&p)>>2]|0;if(J){if((a[(F&n)>>0]|0)!=0&(J|0)>1){dn(Sd,J,1,0);J=c[(I&p)>>2]|0}c[(ra&p)>>2]=43608;en(Sd,J,0,0)|0;c[(ra&p)>>2]=0;C=c[(oa&p)>>2]|0}H=H+1|0}while(!((H|0)>=(L|0)|(C|0)==0))}if(!((c[(na&p)>>2]|0)==0|(C|0)==0)){E=O+17|0;C=O+36|0;L=1;do{H=L>>>3;J=a[((c[(sa&p)>>2]|0)+H&n)>>0]|0;F=1<<(L&7);do if(!(J&255&F)){if(L>>>0<2)I=0;else{I=L+-2|0;I=I-((I>>>0)%(((((c[(C&p)>>2]|0)>>>0)/5|0)+1|0)>>>0)|0)|0;I=((I+1|0)==(((c[2514]|0)>>>0)/((c[(N&p)>>2]|0)>>>0)|0|0)?3:2)+I|0}if((I|0)==(L|0)?(a[(E&n)>>0]|0)!=0:0)break;c[(ke&p)>>2]=L;fn(Sd,43632,ke);J=a[((c[(sa&p)>>2]|0)+H&n)>>0]|0}while(0);do if(J&255&F){if(L>>>0<2)J=0;else{J=L+-2|0;J=J-((J>>>0)%(((((c[(C&p)>>2]|0)>>>0)/5|0)+1|0)>>>0)|0)|0;J=((J+1|0)==(((c[2514]|0)>>>0)/((c[(N&p)>>2]|0)>>>0)|0|0)?3:2)+J|0}if((J|0)!=(L|0))break;if(!(a[(E&n)>>0]|0))break;c[(ke&p)>>2]=L;fn(Sd,43656,ke)}while(0);L=L+1|0}while(!((c[(oa&p)>>2]|0)==0?1:L>>>0>(c[(na&p)>>2]|0)>>>0))}C=c[((c[((c[(O&p)>>2]|0)&p)+204>>2]|0)&p)+12>>2]|0;if((w|0)!=(C|0)){c[(ke&p)>>2]=w;c[(ke&p)+4>>2]=C;fn(Sd,43696,ke)}Wc(c[(sa&p)>>2]|0);if(c[(qa&p)>>2]|0){gn(ta);A=0;C=(c[(pa&p)>>2]|0)+1|0;break}C=c[(pa&p)>>2]|0;if(!C)gn(ta);A=tg(ta)|0}while(0);mg(le,v);U=P;U=dw(c[(U&p)>>2]|0,c[(U&p)+4>>2]|0,C|0,((C|0)<0)<<31>>31|0)|0;V=P;c[(V&p)>>2]=U;c[(V&p)+4>>2]=G;r=z+(r*40|0)+8|0;if(!(b[(r&o)>>1]&9312))b[(r&o)>>1]=1;else vg(M);if(C){if(!A){y=ge;z=je;r=m;m=x;ie=1317;break a}Xg(M,A,-1,1,1)|0}Yl(M,xb)|0;S=z;T=s;U=W;V=X;r=t;break}case 947:{ie=0;v=c[(s+(t*20|0)&p)+4>>2]|0;r=z+(v*40|0)|0;u=c[(s+(t*20|0)&p)+8>>2]|0;v=z+(v*40|0)+8|0;if((b[(v&o)>>1]&32)==0?(hn(r),(b[(v&o)>>1]&32)==0):0){y=ge;z=je;r=m;m=x;ie=1317;break a}S=z+(u*40|0)|0;jn(c[(r&p)>>2]|0,c[(S&p)>>2]|0,c[(S&p)+4>>2]|0);S=z;T=s;U=W;V=X;u=J;r=t;break}case 966:{ie=0;r=c[(s+(t*20|0)&p)+4>>2]|0;P=z+(r*40|0)|0;O=z+((c[(s+(t*20|0)&p)+12>>2]|0)*40|0)|0;N=c[(s+(t*20|0)&p)+16>>2]|0;r=z+(r*40|0)+8|0;if((b[(r&o)>>1]&32)==0?(hn(P),(b[(r&o)>>1]&32)==0):0){y=ge;z=je;r=m;m=x;ie=1317;break a}if(N){L=c[(P&p)>>2]|0;v=O;M=c[(v&p)>>2]|0;v=c[(v&p)+4>>2]|0;K=L+28|0;if((c[(K&p)>>2]|0)!=(N|0)){C=L+8|0;J=c[(C&p)>>2]|0;if(J){I=L+20|0;A=L+26|0;if(!(b[(A&o)>>1]&1))J=kn(J)|0;H=c[(I&p)>>2]|0;A:do if(!H){ld=J;rd=I;ie=978}else{while(1){I=H+12|0;F=c[(I&p)>>2]|0;if(!F)break;E=H+8|0;ln(F,ke,Sd);c[(I&p)>>2]=0;J=mn(c[(ke&p)>>2]|0,J)|0;H=c[(E&p)>>2]|0;if(!H){ld=J;rd=E;ie=978;break A}}c[(I&p)>>2]=nn(J)|0}while(0);if((ie|0)==978?(ie=0,Kc=on(L)|0,c[(rd&p)>>2]=Kc,(Kc|0)!=0):0){V=Kc;c[(V&p)>>2]=0;c[(V&p)+4>>2]=0;c[(Kc&p)+8>>2]=0;c[(Kc&p)+12>>2]=nn(ld)|0}c[(C&p)>>2]=0;c[(L&p)+12>>2]=0;b[(A&o)>>1]=e[(A&o)>>1]|1}c[(K&p)>>2]=N}C=c[(L&p)+20>>2]|0;B:do if(C){C:while(1){A=c[(C&p)+12>>2]|0;if(A)do{r=A;E=c[(r&p)>>2]|0;r=c[(r&p)+4>>2]|0;if((r|0)<(v|0)|(r|0)==(v|0)&E>>>0>>0)A=A+8|0;else{if(!((r|0)>(v|0)|(r|0)==(v|0)&E>>>0>M>>>0))break C;A=A+12|0}A=c[(A&p)>>2]|0}while((A|0)!=0);C=c[(C&p)+8>>2]|0;if(!C)break B}S=z;T=s;U=W;V=X;r=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;break q}while(0);if((N|0)>-1)C=O;else{S=z;T=s;U=W;V=X;r=t;break}}else C=O;S=C;jn(c[(P&p)>>2]|0,c[(S&p)>>2]|0,c[(S&p)+4>>2]|0);S=z;T=s;U=W;V=X;r=t;break}case 993:{ie=0;K=c[(s+(r*20|0)&p)+16>>2]|0;I=c[(s+(r*20|0)&p)+12>>2]|0;L=z+(I*40|0)|0;if((a[(s+(r*20|0)&n)+3>>0]|0)!=0?(Lc=c[(K&p)+20>>2]|0,nd=c[(sb&p)>>2]|0,(nd|0)!=0):0){t=nd;while(1){if((c[(t&p)+28>>2]|0)==(Lc|0)){S=z;T=s;U=W;V=X;break q}t=c[(t&p)+4>>2]|0;if(!t){t=r;break}}}else t=r;r=c[(tb&p)>>2]|0;if((r|0)>=(c[(Ba&p)>>2]|0)){u=x;ie=998;break c}E=z+(I*40|0)+8|0;if(!(b[(E&o)>>1]&64)){C=K+12|0;A=c[(C&p)>>2]|0;r=A+(c[(K&p)+8>>2]|0)|0;s=K+16|0;A=(A<<2)+80+(c[(s&p)>>2]|0)+(r*40|0)|0;J=mh(le,A,((A|0)<0)<<31>>31)|0;if(!J){y=ge;z=je;r=m;m=x;ie=1317;break a}fw(J|0,0,A|0)|0;if(!((b[(E&o)>>1]&9312)==0?(c[(z+(I*40|0)&p)+24>>2]|0)==0:0))Qg(L);b[(E&o)>>1]=64;c[(L&p)>>2]=J;c[(J&p)>>2]=f;c[(J&p)+60>>2]=r;c[(J&p)+64>>2]=c[(C&p)>>2];c[(J&p)+44>>2]=t;c[(J&p)+16>>2]=c[(Nc&p)>>2];c[(J&p)+52>>2]=c[(Ca&p)>>2];c[(J&p)+24>>2]=c[(Ib&p)>>2];c[(J&p)+40>>2]=c[(Da&p)>>2];c[(J&p)+8>>2]=c[(zc&p)>>2];c[(J&p)+48>>2]=c[(Ea&p)>>2];c[(J&p)+28>>2]=c[(K&p)+20>>2];c[(J&p)+20>>2]=c[(Hb&p)>>2];c[(J&p)+56>>2]=c[(Fa&p)>>2];z=J+80|0;r=z+(r*40|0)|0;if((z|0)!=(r|0))do{b[(z&o)+8>>1]=128;c[(z&p)+32>>2]=le;z=z+40|0}while((z|0)!=(r|0));r=c[(tb&p)>>2]|0;z=J}else{s=K+16|0;z=c[(L&p)>>2]|0}c[(tb&p)>>2]=r+1;c[(z&p)+4>>2]=c[(sb&p)>>2];S=z+32|0;c[(S&p)>>2]=m;c[(S&p)+4>>2]=l;c[(z&p)+68>>2]=c[(ub&p)>>2];c[(z&p)+72>>2]=c[((c[(f&p)>>2]|0)&p)+80>>2];c[(ub&p)>>2]=0;c[(sb&p)>>2]=z;S=z+40|0;c[(Nc&p)>>2]=S;U=c[(z&p)+60>>2]|0;c[(Ca&p)>>2]=U;V=c[(z&p)+64>>2]&65535;c[(Da&p)>>2]=V;U=S+((U+1|0)*40|0)|0;c[(Ib&p)>>2]=U;T=c[(K&p)>>2]|0;c[(zc&p)>>2]=T;c[(Ea&p)>>2]=c[(K&p)+4>>2];V=U+(V<<2)|0;c[(Hb&p)>>2]=V;U=c[(s&p)>>2]|0;c[(Fa&p)>>2]=U;fw(V|0,0,U|0)|0;U=W;V=X;r=-1;break}case 1009:{ie=0;S=c[(sb&p)>>2]|0;Zl(u,(c[(S&p)+16>>2]|0)+(((c[((c[(S&p)+8>>2]|0)+((c[(S&p)+44>>2]|0)*20|0)&p)+4>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]|0)|0)*40|0)|0,4096);S=z;T=s;U=W;V=X;break}case 1010:{ie=0;if(c[(Tb&p)>>2]&16777216){T=c[(s+(r*20|0)&p)+8>>2]|0;S=Rb;T=jw(c[(S&p)>>2]|0,c[(S&p)+4>>2]|0,T|0,((T|0)<0)<<31>>31|0)|0;S=Rb;c[(S&p)>>2]=T;c[(S&p)+4>>2]=G;S=z;T=s;U=W;V=X;u=J;break}t=c[(s+(r*20|0)&p)+8>>2]|0;u=((t|0)<0)<<31>>31;if(!(c[(s+(r*20|0)&p)+4>>2]|0)){T=_d;T=jw(c[(T&p)>>2]|0,c[(T&p)+4>>2]|0,t|0,u|0)|0;S=_d;c[(S&p)>>2]=T;c[(S&p)+4>>2]=G;S=z;T=s;U=W;V=X;u=J;break}else{T=Qb;T=jw(c[(T&p)>>2]|0,c[(T&p)+4>>2]|0,t|0,u|0)|0;S=Qb;c[(S&p)>>2]=T;c[(S&p)+4>>2]=G;S=z;T=s;U=W;V=X;u=J;break}}case 1015:{ie=0;if(!(c[(s+(r*20|0)&p)+4>>2]|0)){V=_d;if(!((c[(V&p)>>2]|0)==0&(c[(V&p)+4>>2]|0)==0)){S=z;T=s;U=W;V=X;break}V=Rb;if(!((c[(V&p)>>2]|0)==0&(c[(V&p)+4>>2]|0)==0)){S=z;T=s;U=W;V=X;break}S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0;break}else{V=Qb;if(!((c[(V&p)>>2]|0)==0&(c[(V&p)+4>>2]|0)==0)){S=z;T=s;U=W;V=X;break}V=Rb;if(!((c[(V&p)>>2]|0)==0&(c[(V&p)+4>>2]|0)==0)){S=z;T=s;U=W;V=X;break}S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0;break}}case 1022:{ie=0;t=c[(sb&p)>>2]|0;if(!t)v=z+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)|0;else{while(1){u=c[(t&p)+4>>2]|0;if(!u)break;else t=u}v=(c[(t&p)+16>>2]|0)+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)|0}U=Vg(v)|0;V=v;c[(V&p)>>2]=U;c[(V&p)+4>>2]=G;V=v+8|0;b[(V&o)>>1]=e[(V&o)>>1]&48640|4;V=c[(s+(r*20|0)&p)+8>>2]|0;U=z+(V*40|0)|0;t=Vg(U)|0;u=G;c[(U&p)>>2]=t;c[(U&p)+4>>2]=u;V=z+(V*40|0)+8|0;b[(V&o)>>1]=e[(V&o)>>1]&48640|4;V=v;U=c[(V&p)+4>>2]|0;if((U|0)<(u|0)|((U|0)==(u|0)?(c[(V&p)>>2]|0)>>>0>>0:0)){S=v;c[(S&p)>>2]=t;c[(S&p)+4>>2]=u;S=z;T=s;U=W;V=X;u=L}else{S=z;T=s;U=W;V=X;u=L}break}case 1028:{ie=0;V=z+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)|0;U=c[(V&p)+4>>2]|0;if((U|0)>0|(U|0)==0&(c[(V&p)>>2]|0)>>>0>0){S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0}else{S=z;T=s;U=W;V=X}break}case 1030:{ie=0;T=c[(s+(r*20|0)&p)+12>>2]|0;U=z+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)|0;V=U;T=jw(c[(V&p)>>2]|0,c[(V&p)+4>>2]|0,T|0,((T|0)<0)<<31>>31|0)|0;V=G;c[(U&p)>>2]=T;c[(U&p)+4>>2]=V;if((V|0)<0){S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0}else{S=z;T=s;U=W;V=X}break}case 1032:{ie=0;t=z+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)|0;v=t;u=c[(v&p)>>2]|0;v=c[(v&p)+4>>2]|0;if((u|0)==0&(v|0)==0){S=z;T=s;U=W;V=X;u=J}else{T=c[(s+(r*20|0)&p)+12>>2]|0;T=jw(T|0,((T|0)<0)<<31>>31|0,u|0,v|0)|0;S=t;c[(S&p)>>2]=T;c[(S&p)+4>>2]=G;S=z;T=s;U=W;V=X;u=J;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0}break}case 1034:{ie=0;T=z+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)|0;U=T;U=jw(c[(U&p)>>2]|0,c[(U&p)+4>>2]|0,-1,-1)|0;V=G;c[(T&p)>>2]=U;c[(T&p)+4>>2]=V;if((U|0)==0&(V|0)==0){S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0}else{S=z;T=s;U=W;V=X}break}case 1036:{ie=0;T=z+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)|0;V=T;U=c[(V&p)>>2]|0;V=c[(V&p)+4>>2]|0;S=jw(U|0,V|0,1,0)|0;c[(T&p)>>2]=S;c[(T&p)+4>>2]=G;if((U|0)==0&(V|0)==0){S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0}else{S=z;T=s;U=W;V=X}break}case 1157:{ie=0;S=z;T=s;U=W;V=X;r=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;break}case 1158:{ie=0;if(c[(s+(r*20|0)&p)+4>>2]|0){b[(Yd&o)>>1]=b[(Yd&o)>>1]|8;S=z;T=s;U=W;V=X;break}t=c[(Vb&p)>>2]|0;if(!t){S=z;T=s;U=W;V=X}else{do{V=t+88|0;b[(V&o)>>1]=b[(V&o)>>1]|8;t=c[(t&p)+52>>2]|0}while((t|0)!=0);S=z;T=s;U=W;V=X}break}case 1166:{ie=0;J=(c[(w&p)>>2]|0)+72|0;t=c[(J&p)>>2]|0;D:do if(t){while(1){if((c[(t&p)+4>>2]|0)==(A|0)?(c[(t&p)>>2]|0)==(C|0):0)break;t=c[(t&p)+12>>2]|0;if(!t){ie=1171;break D}}if(!t)ie=1171}else ie=1171;while(0);if((ie|0)==1171){ie=0;t=qg(16,0)|0;if(!t){t=r;s=7;u=x;ie=1309;break c}U=t+0|0;V=U+12|0;do{a[(U&n)>>0]=0;U=U+1|0}while((U|0)<(V|0));c[(t&p)+4>>2]=A;c[(t&p)>>2]=C;c[(t&p)+12>>2]=c[(J&p)>>2];c[(J&p)>>2]=t}t=t+8|0;if((d[(t&n)>>0]|0)<(v&255)){a[(t&n)>>0]=v;S=z;T=s;U=W;V=X}else{S=z;T=s;U=W;V=X}break}case 1213:{ie=0;c[(sd&p)>>2]=0;v=c[((c[(s+(r*20|0)&p)+16>>2]|0)&p)+8>>2]|0;if(!v){t=r;s=6;u=x;ie=1309;break c}w=c[(v&p)>>2]|0;if(!w){t=r;s=6;u=x;ie=1309;break c}C=rc[c[(w&p)+24>>2]&127](v,sd)|0;Mm(f,v);if(C){t=r;s=C;u=x;ie=1309;break c}c[(c[(sd&p)>>2]&p)>>2]=v;t=xm(f,c[(s+(r*20|0)&p)+4>>2]|0,0,-1,0)|0;if(!t){a[(ge&n)>>0]=1;lc[c[(w&p)+28>>2]&127](c[(sd&p)>>2]|0)|0;S=z;T=s;U=W;V=X;break}else{c[(t&p)+32>>2]=c[(sd&p)>>2];S=v+4|0;c[(S&p)>>2]=(c[(S&p)>>2]|0)+1;S=z;T=s;U=W;V=X;break}}case 1226:{ie=0;t=z+(C*40|0)+8|0;if(!(b[(t&o)>>1]&9312)){b[(t&o)>>1]=1;S=z;T=s;U=W;V=X;break}else{vg(A);S=z;T=s;U=W;V=X;break}}case 1257:{ie=0;S=u;c[(S&p)>>2]=c[((c[((c[((c[(Xd&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<4)&p)+4>>2]|0)&p)+4>>2]|0)&p)+44>>2];c[(S&p)+4>>2]=0;S=z;T=s;U=W;V=X;break}case 1258:{ie=0;v=c[((c[(Xd&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<4)&p)+4>>2]|0;t=c[(s+(r*20|0)&p)+12>>2]|0;u=c[(v&p)+4>>2]|0;if(!t)t=0;else{V=c[(u&p)+44>>2]|0;t=V>>>0>>0?t:V}c[(u&p)+4>>2]=c[(v&p)>>2];u=(c[(u&p)>>2]|0)+156|0;if((t|0)>0)c[(u&p)>>2]=t;else t=c[(u&p)>>2]|0;S=J;c[(S&p)>>2]=t;c[(S&p)+4>>2]=((t|0)<0)<<31>>31;S=z;T=s;U=W;V=X;u=J;break}case 1264:{ie=0;r=c[(s+(t*20|0)&p)+8>>2]|0;r=(r|0)==0?t:r+-1|0;if((c[(Sa&p)>>2]|0)!=0?(b[(Yd&o)>>1]&512)==0:0){t=c[(s+(t*20|0)&p)+16>>2]|0;if(!t){t=c[(ce&p)>>2]|0;if(!t){S=z;T=s;U=W;V=X;u=L;break}}c[(Sd&p)>>2]=0;F=c[(f&p)>>2]|0;v=c[(F&p)+88>>2]|0;c[(fb&p)>>2]=Nd;c[(gb&p)>>2]=Nd;c[(hb&p)>>2]=0;c[(ib&p)>>2]=100;c[(jb&p)>>2]=v;a[(kb&n)>>0]=1;a[(lb&n)>>0]=0;c[(qd&p)>>2]=F;v=a[(t&n)>>0]|0;u=v<<24>>24==0;E:do if((c[(F&p)+160>>2]|0)>1){if(!u)while(1){u=t;do{u=u+1|0;if(v<<24>>24==10)break;v=a[(u&n)>>0]|0}while(v<<24>>24!=0);Sk(qd,42288,3);Sk(qd,t,u-t|0);v=a[(u&n)>>0]|0;if(!(v<<24>>24))break;else t=u}}else if(!u){H=F+62|0;K=1;do{F:do if(!(v<<24>>24)){A=0;u=0}else{C=t;u=0;while(1){A=Cn(C,ke)|0;if((c[(ke&p)>>2]|0)==135)break F;u=A+u|0;C=C+A|0;if(!(a[(C&n)>>0]|0)){A=0;break}}}while(0);Sk(qd,t,u);C=t+u|0;if(!A)break E;do if((a[(C&n)>>0]|0)==63)if((A|0)>1){Dn(t+(u+1)|0,Sd)|0;C=c[(Sd&p)>>2]|0;break}else{c[(Sd&p)>>2]=K;C=K;break}else{C=qh(f,C,A)|0;c[(Sd&p)>>2]=C}while(0);t=t+(u+A)|0;K=C+1|0;J=C+-1|0;I=c[(Ab&p)>>2]|0;C=I+(J*40|0)|0;A=e[(I+(J*40|0)&o)+8>>1]|0;do if(!(A&1)){if(A&4){T=C;U=c[(T&p)+4>>2]|0;V=ke;c[(V&p)>>2]=c[(T&p)>>2];c[(V&p)+4>>2]=U;En(qd,0,19920,ke);break}if(A&8){h[(k&q)>>3]=+h[(C&q)>>3];c[(ke&p)>>2]=c[(k&p)>>2];c[(ke&p)+4>>2]=c[(k&p)+4>>2];En(qd,0,20272,ke);break}if(!(A&2)){if(A&16384){c[(ke&p)>>2]=c[(C&p)>>2];En(qd,0,42304,ke);break}Sk(qd,42320,2);E=c[(I+(J*40|0)&p)+12>>2]|0;if((E|0)>0){C=I+(J*40|0)+16|0;A=0;do{c[(ke&p)>>2]=d[((c[(C&p)>>2]|0)+A&n)>>0];En(qd,0,42328,ke);A=A+1|0}while((A|0)!=(E|0))}Sk(qd,42336,1);break}else{E=a[(H&n)>>0]|0;if(E<<24>>24==1){V=c[(I+(J*40|0)&p)+16>>2]|0;c[(ke&p)>>2]=c[(I+(J*40|0)&p)+12>>2];c[(ke&p)+4>>2]=V;En(qd,0,42296,ke);break}U=Od+0|0;V=U+40|0;do{c[(U&p)>>2]=0;U=U+4|0}while((U|0)<(V|0));c[(nb&p)>>2]=F;Xg(Od,c[(I+(J*40|0)&p)+16>>2]|0,c[(I+(J*40|0)&p)+12>>2]|0,E,0)|0;V=c[(ob&p)>>2]|0;if(!((V&2|0)==0|(V&16711680|0)==65536))Bn(Od,1)|0;V=c[(qb&p)>>2]|0;c[(ke&p)>>2]=c[(pb&p)>>2];c[(ke&p)+4>>2]=V;En(qd,0,42296,ke);if((b[(ob&o)>>1]&9312)==0&(c[(rb&p)>>2]|0)==0)break;Qg(Od);break}}else Sk(qd,20304,4);while(0);v=a[(t&n)>>0]|0}while(v<<24>>24!=0)}while(0);S=tg(qd)|0;jc[c[(Sa&p)>>2]&15](c[(mb&p)>>2]|0,S);mg(le,S);S=z;T=s;U=W;V=X;u=L}else{S=z;T=s;U=W;V=X;u=L}break}}if((ie|0)==28){ie=0;z=s+(r*20|0)+4|0;t=c[(z&p)>>2]|0;if(t){y=z;ie=34;break}z=c[(sb&p)>>2]|0;if(!z){ie=30;break}c[(sb&p)>>2]=c[(z&p)+4>>2];c[(tb&p)>>2]=(c[(tb&p)>>2]|0)+-1;l=c[(ub&p)>>2]|0;c[(vb&p)>>2]=l;c[(wb&p)>>2]=(c[(wb&p)>>2]|0)+l;z=Xl(z)|0;l=ne;t=c[(zc&p)>>2]|0;if((c[(s+(r*20|0)&p)+8>>2]|0)==4)r=(c[(t+(z*20|0)&p)+8>>2]|0)+-1|0;else r=z;m=c[(l&p)>>2]|0;l=c[(l&p)+4>>2]|0;S=c[(Nc&p)>>2]|0;T=t;U=W;V=X}else if((ie|0)==488){ie=0;u=sm(le,C,A)|0;if(!u){S=z;T=s;U=W;V=X;u=E}else{t=r;ie=1318;break}}z=S;s=T;W=U;X=V;t=r+1|0}switch(ie|0){case 30:{c[(me&p)>>2]=t;a[(fe&n)>>0]=c[(s+(r*20|0)&p)+8>>2];c[(he&p)>>2]=r;ie=41;break}case 34:{c[(me&p)>>2]=t;a[(fe&n)>>0]=c[(s+(r*20|0)&p)+8>>2];c[(he&p)>>2]=r;t=a[(s+(r*20|0)&n)+3>>0]|0;if(!(t<<24>>24)){s=c[(s+(r*20|0)&p)+16>>2]|0;if(!s){s=0;ie=39}else{c[(ke&p)>>2]=s;dh(je,le,10344,ke)}}else{u=c[((t&255)+-1<<2&p)+41536>>2]|0;t=c[(s+(r*20|0)&p)+16>>2]|0;if(!t){s=u;ie=39}else{c[(ke&p)>>2]=u;c[(ke&p)+4>>2]=t;dh(je,le,41624,ke)}}if((ie|0)==39){c[(ke&p)>>2]=s;dh(je,le,41656,ke)}ie=c[(y&p)>>2]|0;qd=c[(ce&p)>>2]|0;rd=c[(je&p)>>2]|0;c[(ke&p)>>2]=r;c[(ke&p)+4>>2]=qd;c[(ke&p)+8>>2]=rd;bd(ie,41600,ke);ie=41;break}case 80:{x=c[(be&p)>>2]|0;if(!((x|0)==0|g>>>0>>0)?(lc[x&127](c[(Zd&p)>>2]|0)|0)!=0:0){r=m;s=9;m=u;ie=1311;break a}rd=_d;qd=c[(rd&p)+4>>2]|0;if((qd|0)>0|(qd|0)==0&(c[(rd&p)>>2]|0)>>>0>0){s=c[(f&p)>>2]|0;c[(me&p)>>2]=787;a[(fe&n)>>0]=2;dh(je,s,34376,ke);s=1;ie=1309;break}x=$l(f,1)|0;if(!x){c[($d&p)>>2]=(c[($d&p)>>2]|0)+2|1;y=c[(s+(t*20|0)&p)+4>>2]|0;c[(de&p)>>2]=z+(y*40|0);r=s+(t*20|0)+8|0;if((c[(r&p)>>2]|0)>0){x=0;do{v=x+y|0;w=z+(v*40|0)|0;v=z+(v*40|0)+8|0;s=b[(v&o)>>1]|0;if(s&4096){if(Vl(w)|0){y=ge;z=je;r=m;m=u;ie=1317;break a}s=b[(v&o)>>1]|0}if((s&514)==2)am(w)|0;x=x+1|0}while((x|0)<(c[(r&p)>>2]|0))}if(a[(ge&n)>>0]|0){y=ge;z=je;r=m;m=u;ie=1317;break a}c[(he&p)>>2]=t+1;r=m;m=g;g=100;break a}else{s=x;ie=1309}break}case 313:{c[(ke&p)>>2]=73058;c[(ke&p)+4>>2]=10788;bd(11,13600,ke);s=11;ie=1309;break}case 343:{c[(ke&p)>>2]=73142;c[(ke&p)+4>>2]=10788;bd(11,13600,ke);s=11;ie=1309;break}case 447:{dh(je,le,41712,ke);t=r;s=5;ie=1309;break}case 460:{c[(ke&p)>>2]=s;dh(je,le,41768,ke);s=1;ie=1309;break}case 462:{dh(je,le,41792,ke);s=5;ie=1309;break}case 467:{c[(he&p)>>2]=g;a[(ee&n)>>0]=0;c[(me&p)>>2]=5;g=5;break a}case 489:{v=c[(s+(t*20|0)&p)+4>>2]|0;s=c[(s+(t*20|0)&p)+8>>2]|0;g=(v|0)!=0;if(g){s=(s|0)!=0;if(!(s|(a[(ee&n)>>0]|0)!=0))if((c[(ae&p)>>2]|0)>0){dh(je,le,41848,ke);g=m;m=r;s=5;ie=1309;break}else s=0}else s=(s|0)!=0;if((v|0)==(d[(ee&n)>>0]|0)){if(g)g=s?41952:42e3;else g=41904;dh(je,le,g,ke);g=m;m=r;s=1;ie=1309;break}if(!s){g=tm(f,1)|0;if(g)break a;a[(ee&n)>>0]=v;if((Rl(f)|0)==5){c[(he&p)>>2]=t;a[(ee&n)>>0]=1-v;c[(me&p)>>2]=5;g=5;break a}}else{Kl(le,516);a[(ee&n)>>0]=1}Ll(le);g=(c[(me&p)>>2]|0)==0?101:1;break a}case 508:{c[(he&p)>>2]=g;c[(me&p)>>2]=5;g=5;break a}case 522:{mg(le,c[(je&p)>>2]|0);c[(je&p)>>2]=kh(le,16040)|0;s=c[(s&p)>>2]|0;if((c[(c[((c[(Xd&p)>>2]|0)+(s<<4)&p)+12>>2]&p)>>2]|0)!=(v|0))vm(le,s);b[(Yd&o)>>1]=b[(Yd&o)>>1]|8;s=17;ie=1309;break}case 542:{c[(ke&p)>>2]=73997;c[(ke&p)+4>>2]=10788;bd(11,13600,ke);u=11;x=s;ie=1318;break}case 560:{c[(s&p)+56>>2]=0;s=7;ie=1309;break}case 832:{a[(fe&n)>>0]=2;s=6;ie=1309;break}case 882:{Eg(le);y=ge;z=je;r=m;m=u;ie=1317;break a}case 884:{Eg(le);if((s|0)==7){y=ge;z=je;r=m;m=u;ie=1317;break a}else ie=1309;break}case 998:{dh(je,le,42112,ke);s=1;ie=1309;break}case 1080:{c[(ke&p)>>2]=s?42208:42216;dh(je,le,42152,ke);s=1;ie=1309;break}case 1101:{dh(je,le,42344,ke);s=1;ie=1309;break}case 1103:{dh(je,le,42384,ke);s=1;ie=1309;break}case 1145:{c[(ke&p)>>2]=56343;c[(ke&p)+4>>2]=10788;bd(11,13600,ke);s=11;ie=1309;break}case 1316:{dh(je,le,10096,ke);r=m;s=18;m=u;ie=1311;break a}}if((ie|0)==41)if((Rl(f)|0)==5){c[(me&p)>>2]=5;r=m;m=g;g=5;break a}else{r=m;m=g;g=(c[(me&p)>>2]|0)!=0?1:101;break a}else if((ie|0)==1309){r=m;t=t+1|0;m=u;ie=1311;break a}else if((ie|0)==1318){u=(a[(ge&n)>>0]|0)==0?u:7;if((u|0)==3082){r=m;s=3082;m=x;ie=1311;break a}else if((u|0)!=516){r=u&255;if(r>>>0>26|(r|0)==2)s=16328;else s=c[(r<<2&p)+15488>>2]|0}else s=16344;c[(ke&p)>>2]=s;dh(je,le,10344,ke);r=m;s=u;m=x;ie=1311;break a}}else{u=f+44|0;r=m;g=0;t=0;m=0}while(0);c[(me&p)>>2]=9;c[(ke&p)>>2]=15832;dh(u,le,10344,ke);s=9;ie=1311}while(0);if((ie|0)==1317){a[(y&n)>>0]=1;dh(z,le,15776,ke);s=7;ie=1311}if((ie|0)==1311){c[(me&p)>>2]=s;qd=c[(f&p)+168>>2]|0;rd=c[(f&p)+44>>2]|0;c[(ke&p)>>2]=t;c[(ke&p)+4>>2]=qd;c[(ke&p)+8>>2]=rd;bd(s,42256,ke);Rl(f)|0;if((s|0)==3082)a[(le&n)+65>>0]=1;if(!(m<<24>>24)){m=g;g=1}else{vm(le,(m&255)+-1|0);m=g;g=1}}rd=ne;c[(rd&p)>>2]=r;c[(rd&p)+4>>2]=l;rd=f+124|0;c[(rd&p)>>2]=(c[(rd&p)>>2]|0)+m;i=oe;return g|0} function Ev(e){e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=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=e+20|0;u=e+14|0;f=a[(u&n)>>0]|0;z=e+13|0;g=a[(z&n)>>0]|0;a:do if((f&255)>(g&255))f=0;else{B=e+4|0;C=e+16|0;v=e+8|0;w=e+12|0;x=e+24|0;y=e+28|0;i=f&255;j=c[(B&p)>>2]|0;h=c[(D&p)>>2]|0;b:while(1){t=c[(e+(i+-2<<2)&p)+24>>2]|0;s=c[(e+(i+-1<<2)&p)+24>>2]|0;if(j){while(1){r=j+12|0;if((h|0)<(c[(r&p)>>2]|0)){g=h;f=(c[(j&p)+20>>2]|0)+(h*48|0)|0;while(1){do if((c[(f&p)+8>>2]|0)==(t|0)?(c[(f&p)+12>>2]|0)==(s|0):0){if((d[(u&n)>>0]|0)>=3?(c[((c[(f&p)>>2]|0)&p)+4>>2]&1|0)!=0:0)break;q=f+18|0;h=b[(q&o)>>1]|0;if((h&1024)!=0?(A=a[(z&n)>>0]|0,(A&255)<22):0){i=c[((c[(f&p)>>2]|0)&p)+16>>2]|0;c:do if(!i)i=0;else while(1){k=c[(i&p)+4>>2]|0;if(!(k&4096))break c;if(!(k&262144))i=i+12|0;else i=c[((c[(i&p)+20>>2]|0)&p)+4>>2]|0;i=c[(i&p)>>2]|0;if(!i){i=0;break}}while(0);d:do if(!(A<<24>>24)){m=0;k=0}else{l=c[(i&p)+28>>2]|0;m=i+32|0;k=0;while(1){if((c[(e+(k<<2)&p)+24>>2]|0)==(l|0)?(c[(e+((k|1)<<2)&p)+24>>2]|0)==(b[(m&o)>>1]|0):0){m=A;break d}k=k+2|0;if((k|0)>=(A&255|0)){m=A;break}}}while(0);if((k|0)==(m&255|0)){c[(e+(k<<2)&p)+24>>2]=c[(i&p)+28>>2];c[(e+((k|1)<<2)&p)+24>>2]=b[(i&o)+32>>1];a[(z&n)>>0]=(d[(z&n)>>0]|0)+2}}i=h&65535;if(i&c[(C&p)>>2]){if((c[(v&p)>>2]|0)!=0&(i&128|0)==0){l=c[(c[(j&p)>>2]&p)>>2]|0;k=c[(f&p)>>2]|0;i=a[(w&n)>>0]|0;h=(nv(k)|0)<<24>>24;if((h|0)==66){if(i<<24>>24!=66)break}else if((h|0)!=65?i<<24>>24<=66:0)break;h=Ou(l,c[(k&p)+12>>2]|0,c[(k&p)+16>>2]|0)|0;if(!h)h=c[((c[(l&p)>>2]|0)&p)+8>>2]|0;if(dd(c[(h&p)>>2]|0,c[(v&p)>>2]|0)|0)break;h=b[(q&o)>>1]|0}if(!(h&2))break b;h=c[((c[(f&p)>>2]|0)&p)+16>>2]|0;if((a[(h&n)>>0]|0)!=-102)break b;if((c[(h&p)+28>>2]|0)!=(c[(x&p)>>2]|0))break b;if((b[(h&o)+32>>1]|0)!=(c[(y&p)>>2]|0))break b}}while(0);g=g+1|0;if((g|0)>=(c[(r&p)>>2]|0))break;else f=f+48|0}g=c[(B&p)>>2]|0}else g=j;j=c[(g&p)+4>>2]|0;c[(B&p)>>2]=j;if(!j)break;else h=0}f=a[(u&n)>>0]|0;g=a[(z&n)>>0]|0}j=c[(e&p)>>2]|0;c[(B&p)>>2]=j;h=(f&255)+2|0;f=h&255;a[(u&n)>>0]=f;if((f&255)>(g&255)){f=0;break a}else{i=h&255;h=0}}c[(D&p)>>2]=g+1}while(0);return f|0}function Fv(d,f){d=d|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0,m=0,q=0;g=c[(d&p)>>2]|0;l=c[(c[(g&p)>>2]&p)>>2]|0;d=c[(d&p)+16>>2]|0;a:do if(!d){g=g+16|0;i=c[(g&p)>>2]|0;k=f+36|0;if((c[(k&p)>>2]&512|0)!=0&(i|0)!=0){d=f+20|0;j=f+22|0;h=a[(f&n)+16>>0]|0;do{do if((a[(i&n)+16>>0]|0)==h<<24>>24?(c[(i&p)+36>>2]&512|0)!=0:0){if(Tv(i,f)|0){b[(d&o)>>1]=b[(i&o)+20>>1]|0;b[(j&o)>>1]=(e[(i&o)+22>>1]|0)+65535;break}if(Tv(f,i)|0){b[(d&o)>>1]=b[(i&o)+20>>1]|0;b[(j&o)>>1]=(e[(i&o)+22>>1]|0)+1}}while(0);i=c[(i&p)+52>>2]|0}while((i|0)!=0)}d=Uv(g,f)|0;if(d){g=c[(d&p)>>2]|0;b:do if(g){d=g+52|0;if(c[(d&p)>>2]|0)do{d=Uv(d,f)|0;if(!d)break b;h=c[(d&p)>>2]|0;if(!h)break b;c[(d&p)>>2]=c[(h&p)+52>>2];Ju(l,h);mg(l,h)}while((c[(d&p)>>2]|0)!=0)}else{g=mh(l,72,0)|0;c[(d&p)>>2]=g;if(!g){d=7;break a}c[(g&p)+48>>2]=g+56;b[(g&o)+40>>1]=0;b[(g&o)+44>>1]=3;c[(g&p)+36>>2]=0;c[(g&p)+52>>2]=0}while(0);Lv(l,g);do if(!(Nu(l,g,e[(f&o)+40>>1]|0)|0)){h=g+0|0;d=f+0|0;i=h+44|0;do{c[(h&p)>>2]=c[(d&p)>>2];h=h+4|0;d=d+4|0}while((h|0)<(i|0));kw(c[(g&p)+48>>2]|0,c[(f&p)+48>>2]|0,e[(g&o)+40>>1]<<2|0)|0;d=c[(k&p)>>2]|0;if(d&1024){a[(f&n)+28>>0]=0;break}if(d&16384)c[(f&p)+28>>2]=0}else{d=g+24|0;c[(d&p)>>2]=0;c[(d&p)+4>>2]=0;c[(d&p)+8>>2]=0}while(0);if(((c[(g&p)+36>>2]&1024|0)==0?(m=g+28|0,q=c[(m&p)>>2]|0,(q|0)!=0):0)?(c[(q&p)+40>>2]|0)==0:0){c[(m&p)>>2]=0;d=0}else d=0}else d=0}else{g=f;Kv(d,c[(g&p)>>2]|0,c[(g&p)+4>>2]|0,b[(f&o)+20>>1]|0,b[(f&o)+22>>1]|0);d=0}while(0);return d|0}function Gv(a,b){a=a|0;b=b|0;var c=0,e=0;c=a<<16>>16;e=b<<16>>16;do if(a<<16>>16>16)if((e|0)<=(c+49|0))if((e|0)>(c+31|0)){a=e+1&65535;break}else{a=(d[(e-c&n)+34032>>0]|0)+e&65535;break}else a=b;else if((c|0)<=(e+49|0))if((c|0)>(e+31|0)){a=c+1&65535;break}else{a=(d[(c-e&n)+34032>>0]|0)+c&65535;break}while(0);return a|0}function Hv(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0;do if(!(Cu(b,d,e)|0))f=1;else{f=a[(d&n)>>0]|0;if(f<<24>>24==71){if(Hv(b,c[(d&p)+12>>2]|0,e)|0){f=1;break}if(Hv(b,c[(d&p)+16>>2]|0,e)|0){f=1;break}if(f<<24>>24==77)g=6}else if(f<<24>>24==77)g=6;if(((g|0)==6?(Cu(c[(b&p)+12>>2]|0,c[(d&p)+12>>2]|0,e)|0)==0:0)?(f=a[(b&n)>>0]|0,!(f<<24>>24==73|f<<24>>24==76)):0){f=1;break}f=0}while(0);return f|0}function Iv(a,d,f){a=a|0;d=d|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0;x=i;i=i+16|0;if((i|0)>=(j|0))fa();w=x;u=d;v=d+8|0;g=v;t=~(c[(g&p)>>2]|c[(u&p)>>2]);u=~(c[(g&p)+4>>2]|c[(u&p)+4>>2]);g=c[(a&p)+12>>2]|0;r=a+20|0;a:do if((g|0)>0){s=d+40|0;a=d+22|0;q=d+48|0;d=0;n=c[(r&p)>>2]|0;while(1){if(b[(n&o)+20>>1]&2)break a;m=n+40|0;l=c[(m&p)>>2]|0;m=c[(m&p)+4>>2]|0;k=v;b:do if(((c[(k&p)>>2]&l|0)!=0?1:(c[(k&p)+4>>2]&m|0)!=0)&((l&t|0)==0&(m&u|0)==0)){h=b[(s&o)>>1]|0;c:do if(h<<16>>16){m=c[(q&p)>>2]|0;l=h&65535;while(1){h=l;l=l+-1|0;k=c[(m+(l<<2)&p)>>2]|0;if(k){if((k|0)==(n|0))break;k=c[(k&p)+4>>2]|0;if((k|0)>-1?((c[(r&p)>>2]|0)+(k*48|0)|0)==(n|0):0)break}if((l|0)<=0)break c}if((h|0)>=1)break b}while(0);h=b[(n&o)+16>>1]|0;if(h<<16>>16<1){b[(a&o)>>1]=(e[(a&o)>>1]|0)+(h&65535);break}b[(a&o)>>1]=(b[(a&o)>>1]|0)+-1<<16>>16;if(b[(n&o)+18>>1]&2){l=(Ms(c[((c[(n&p)>>2]|0)&p)+16>>2]|0,w)|0)!=0;m=c[(w&p)>>2]|0;m=l&(m|0)>-2&(m|0)<2?10:20;c[(w&p)>>2]=m;d=(d<<16>>16|0)<(m|0)?m&65535:d}}while(0);g=g+-1|0;if((g|0)<=0)break;else n=n+48|0}}else{a=d+22|0;d=0}while(0);d=(f<<16>>16)-(d<<16>>16)|0;if((b[(a&o)>>1]|0)>(d|0))b[(a&o)>>1]=d;i=x;return}function Jv(d,f,g,h){d=d|0;f=f|0;g=g|0;h=h|0;var k=0,l=0,m=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,ga=0,ha=0;ha=i;i=i+112|0;if((i|0)>=(j|0))fa();R=ha;V=c[(c[(c[(d&p)>>2]&p)>>2]&p)>>2]|0;ea=c[(d&p)+12>>2]|0;if(!(a[(V&n)+65>>0]|0)){ga=ea+36|0;if(!(c[(ga&p)>>2]&32))if((c[(g&p)+40>>2]|0)<1)k=63;else k=(a[(f&n)+36>>0]&8)<<4^191;else k=24;W=g+51|0;ca=ea+24|0;l=b[((c[(g&p)+4>>2]|0)+(e[(ca&o)>>1]<<1)&o)>>1]|0;N=l<<16>>16;O=d+4|0;k=Dv(R,c[(O&p)>>2]|0,c[(f&p)+40>>2]|0,N,(a[(W&n)>>0]&4)==0?k:k&131,g)|0;X=b[(ca&o)>>1]|0;Y=ea+42|0;T=b[(Y&o)>>1]|0;Z=ea+40|0;U=b[(Z&o)>>1]|0;_=c[(ga&p)>>2]|0;Q=ea;P=c[(Q&p)>>2]|0;Q=c[(Q&p)+4>>2]|0;$=ea+22|0;aa=b[($&o)>>1]|0;b[(ea&o)+18>>1]=0;ba=g+8|0;D=b[(c[(ba&p)>>2]&o)>>1]|0;if(D<<16>>16<11)C=0;else{C=D<<16>>16;C=((fs(C,((C|0)<0)<<31>>31)|0)&65535)+65503&65535}a:do if(!k)k=0;else{E=l<<16>>16<0;F=f+16|0;G=ea+8|0;H=(U&65535)+1|0;I=ea+48|0;J=h<<16>>16==0;K=g+46|0;w=l<<16>>16>-1;x=g+50|0;y=g+44|0;z=ea+20|0;A=h<<16>>16;B=g+48|0;r=0;u=k;s=0;while(1){l=b[(u&o)+18>>1]|0;t=l&65535;if(l<<16>>16==128)if(!E?(a[((c[((c[(F&p)>>2]|0)&p)+4>>2]|0)+(N*24|0)&n)+20>>0]|0)==0:0)S=12;else{m=r;l=s;k=0}else S=12;if((S|0)==12){S=0;m=u+32|0;v=m;q=G;if(((c[(q&p)>>2]&c[(v&p)>>2]|0)==0?(c[(q&p)+4>>2]&c[(v&p)+4>>2]|0)==0:0)?(L=u+20|0,!((b[(L&o)>>1]&256)!=0&l<<16>>16==16)):0){c[(ga&p)>>2]=_;b[(ca&o)>>1]=X;b[(Z&o)>>1]=U;if(Nu(V,ea,H)|0){k=0;break a}k=b[(Z&o)>>1]|0;q=k+1<<16>>16;b[(Z&o)>>1]=q;c[((c[(I&p)>>2]|0)+((k&65535)<<2)&p)>>2]=u;k=m;l=G;m=(c[(k&p)+4>>2]|Q)&~c[(l&p)+4>>2];v=ea;c[(v&p)>>2]=(c[(k&p)>>2]|P)&~c[(l&p)>>2];c[(v&p)+4>>2]=m;b:do if(!(t&1)){if(t&2){k=c[(ga&p)>>2]|0;l=k|1;c[(ga&p)>>2]=l;do if(!E){if(!J){v=0;break b}if((e[(ca&o)>>1]|0)!=((e[(K&o)>>1]|0)+-1|0)){v=0;break b}if(!w)break;if(a[(x&n)>>0]|0)break;l=k|65537;c[(ga&p)>>2]=l;v=0;break b}while(0);l=k|4097;c[(ga&p)>>2]=l;v=0;break}if(t&128){l=c[(ga&p)>>2]|8;c[(ga&p)>>2]=l;v=0;break}k=c[(ga&p)>>2]|0;if(!(t&36)){l=k|18;c[(ga&p)>>2]=l;if(!(k&32)){v=0;r=0;s=u;break}v=0;r=c[((c[(I&p)>>2]|0)+((q&65535)+-2<<2)&p)>>2]|0;s=u;break}l=k|34;c[(ga&p)>>2]=l;if(!(b[(L&o)>>1]&256)){v=0;r=u;s=0}else{k=u+48|0;if(Nu(V,ea,(q&65535)+1|0)|0){k=0;break a}l=b[(Z&o)>>1]|0;b[(Z&o)>>1]=l+1<<16>>16;c[((c[(I&p)>>2]|0)+((l&65535)<<2)&p)>>2]=k;l=c[(ga&p)>>2]|16;c[(ga&p)>>2]=l;v=0;r=u;s=k}}else{k=c[(u&p)>>2]|0;l=c[(ga&p)>>2]|4;c[(ga&p)>>2]=l;if(!(c[(k&p)+4>>2]&2048)){k=c[(k&p)+20>>2]|0;if((k|0)!=0?(M=c[(k&p)>>2]|0,(M|0)!=0):0)v=(fs(M,((M|0)<0)<<31>>31)|0)<<16>>16;else v=0}else v=46}while(0);do if(!(l&2)){k=(b[(ca&o)>>1]|0)+1<<16>>16;b[(ca&o)>>1]=k;k=k&65535;m=b[(u&o)+16>>1]|0;if(m<<16>>16<1&w){q=(m&65535)-v+(e[($&o)>>1]|0)&65535;b[($&o)>>1]=q;break}m=c[(ba&p)>>2]|0;m=(e[($&o)>>1]|0)+((e[(m+(k<<1)&o)>>1]|0)-(e[(m+(k+-1<<1)&o)>>1]|0))|0;k=m&65535;b[($&o)>>1]=k;if(!(t&128))q=k;else{q=m+10&65535;b[($&o)>>1]=q}}else{k=b[($&o)>>1]|0;q=k<<16>>16;do if(r){m=b[(r&o)+16>>1]|0;if(m<<16>>16<1){k=(m&65535)+(k&65535)&65535;break}else{k=(k&65535)+65516&65535;break}}while(0);do if(s){m=b[(s&o)+16>>1]|0;if(m<<16>>16<1){k=(m&65535)+(k&65535)&65535;break}else{k=(k&65535)+65516&65535;break}}while(0);m=(r|0)!=0;do if(m?(b[(r&o)+16>>1]|0)>0&(s|0)!=0:0){if((b[(s&o)+16>>1]|0)<=0)break;k=(k&65535)+65516&65535}while(0);q=(((s|0)!=0)<<31>>31)+(m<<31>>31)+q|0;u=k<<16>>16<10?10:k<<16>>16;q=((u|0)<(q|0)?u:q)&65535;b[($&o)>>1]=q}while(0);k=q&65535;m=Gv(C,k+1+(((b[(y&o)>>1]|0)*15|0)/(b[((c[(F&p)>>2]|0)&o)+42>>1]|0)|0)&65535)|0;if(!(l&320))m=Gv(m,k+16&65535)|0;l=v+A|0;b[(z&o)>>1]=(m&65535)+l;b[($&o)>>1]=k+l;Iv(c[(O&p)>>2]|0,ea,D);k=Fv(d,ea)|0;v=c[(ga&p)>>2]|0;b[($&o)>>1]=(v&2|0)==0?q:aa;if((v&16|0)==0?(e[(ca&o)>>1]|0)<(e[(B&o)>>1]|0):0)Jv(d,f,g,l&65535)|0;b[($&o)>>1]=aa;m=r;l=s}else{m=r;l=s;k=0}}u=Ev(R)|0;if(!((k|0)==0&(u|0)!=0))break;else{r=m;s=l}}}while(0);l=ea;c[(l&p)>>2]=P;c[(l&p)+4>>2]=Q;b[(ca&o)>>1]=X;b[(Y&o)>>1]=T;c[(ga&p)>>2]=_;b[($&o)>>1]=aa;b[(Z&o)>>1]=U;l=X&65535;if(((X<<16>>16==T<<16>>16?(da=l+1|0,da>>>0<(e[(g&o)+46>>1]|0)>>>0):0)?(a[(W&n)>>0]&64)==0:0)?(b[((c[(ba&p)>>2]|0)+(da<<1)&o)>>1]|0)>41:0){k=Nu(V,ea,(U&65535)+1|0)|0;if(!k){b[(ca&o)>>1]=(b[(ca&o)>>1]|0)+1<<16>>16;b[(Y&o)>>1]=(b[(Y&o)>>1]|0)+1<<16>>16;k=b[(Z&o)>>1]|0;b[(Z&o)>>1]=k+1<<16>>16;c[((c[(ea&p)+48>>2]|0)+((k&65535)<<2)&p)>>2]=0;c[(ga&p)>>2]=c[(ga&p)>>2]|32768;k=c[(ba&p)>>2]|0;k=(e[(k+(l<<1)&o)>>1]|0)-(e[(k+(da<<1)&o)>>1]|0)|0;b[($&o)>>1]=(e[($&o)>>1]|0)-k;Jv(d,f,g,(((k<<16)+327680|0)>>>16)+(h&65535)&65535)|0;b[($&o)>>1]=aa;b[(ca&o)>>1]=X;b[(Y&o)>>1]=X;c[(ga&p)>>2]=_;k=0}}}else k=7;i=ha;return k|0}function Kv(a,d,e,f,g){a=a|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,i=0,j=0,k=0,l=0,m=0,n=0,q=0,r=0;l=b[(a&o)>>1]|0;h=a+8|0;a:do if(l<<16>>16){j=l;k=h;while(1){i=b[(k&o)+8>>1]|0;if(i<<16>>16>=f<<16>>16?(r=k,(c[(r&p)>>2]&d|0)==(d|0)?(c[(r&p)+4>>2]&e|0)==(e|0):0):0){n=k;q=14;break a}if(i<<16>>16<=f<<16>>16?(i=k,r=c[(i&p)>>2]|0,i=c[(i&p)+4>>2]|0,(r&d|0)==(r|0)&(i&e|0)==(i|0)):0)break a;j=j+-1<<16>>16;if(!(j<<16>>16))break;else k=k+16|0}if((l&65535)>=3){i=b[(a&o)+16>>1]|0;k=1;do{if(i<<16>>16>(b[(a+(k<<4)&o)+16>>1]|0))h=a+(k<<4)+8|0;k=k+1|0;i=b[(h&o)+8>>1]|0}while((k&65535)<(l&65535));if(i<<16>>16>f<<16>>16){n=h;q=14}}else q=9}else q=9;while(0);if((q|0)==9){n=l&65535;b[(a&o)>>1]=l+1<<16>>16;b[(a+(n<<4)&o)+18>>1]=g;n=a+(n<<4)+8|0;q=14}if((q|0)==14?(m=n,c[(m&p)>>2]=d,c[(m&p)+4>>2]=e,b[(n&o)+8>>1]=f,m=n+10|0,(b[(m&o)>>1]|0)>g<<16>>16):0)b[(m&o)>>1]=g;return}function Lv(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0;e=c[(d&p)+36>>2]|0;do if(e&17408){if((e&1024|0)!=0?(h=d+28|0,(a[(h&n)>>0]|0)!=0):0){e=d+32|0;Wc(c[(e&p)>>2]|0);a[(h&n)>>0]=0;c[(e&p)>>2]=0;break}if((e&16384|0)!=0?(f=d+28|0,g=c[(f&p)>>2]|0,(g|0)!=0):0){mg(b,c[(g&p)+16>>2]|0);mg(b,c[(f&p)>>2]|0);c[(f&p)>>2]=0}}while(0);return}function Mv(f,g,h,k,l,m,q){f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;m=m|0;q=q|0;var 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,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,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;ta=i;i=i+32|0;if((i|0)>=(j|0))fa();oa=ta;s=c[(c[(f&p)>>2]&p)>>2]|0;na=l&65535;if(l<<16>>16!=0?(b[(s&o)+60>>1]&128)!=0:0)r=0;else pa=3;a:do if((pa|0)==3){sa=c[(g&p)>>2]|0;r=sa&65535;if(r>>>0<=63){qa=iw(1,0,r|0)|0;qa=jw(qa|0,G|0,-1,-1)|0;ra=G;b:do if((qa|0)==0&(ra|0)==0){g=0;h=0;s=1}else{ha=h+24|0;ia=f+4|0;ja=(r|0)==0;ea=g+4|0;ga=(k&768)==0;da=s+8|0;W=(k&256)==0;X=f+68|0;Y=oa+20|0;Z=oa+4|0;aa=oa+24|0;ba=f+328|0;_=0;$=0;g=0;h=0;k=0;t=0;ca=0;s=1;l=0;while(1){if((ca|0)>0){U=l+8|0;V=c[(U&p)>>2]|k;t=c[(U&p)+4>>2]|t}else V=k;if((ca|0)<(na|0))l=c[((c[(ha&p)>>2]|0)+(ca<<2)&p)>>2]|0;else l=m;B=l+36|0;k=c[(B&p)>>2]|0;if(k&1024)break;U=c[((c[(ia&p)>>2]|0)+((d[(l&n)+16>>0]|0)*72|0)&p)+48>>2]|0;if(!ja){k=~V;v=~t;y=0;do{A=iw(1,0,y|0)|0;z=G;c:do if((A&g|0)==0&(z&h|0)==0){u=c[((c[(ea&p)>>2]|0)+(y*20|0)&p)>>2]|0;x=c[(u&p)+4>>2]|0;if(x&4096)do{if(!(x&262144))u=u+12|0;else u=c[((c[(u&p)+20>>2]|0)&p)+4>>2]|0;u=c[(u&p)>>2]|0;x=c[(u&p)+4>>2]|0}while((x&4096|0)!=0);if(((a[(u&n)>>0]|0)==-102?(c[(u&p)+28>>2]|0)==(U|0):0)?(ka=u+32|0,la=Fu(ba,U,b[(ka&o)>>1]|0,k,v,130,0)|0,(la|0)!=0):0){do if(b[(la&o)+18>>1]&2){if((b[(ka&o)>>1]|0)<=-1)break;u=cu(c[(f&p)>>2]|0,c[((c[(ea&p)>>2]|0)+(y*20|0)&p)>>2]|0)|0;if(!u)u=c[(da&p)>>2]|0;x=c[(u&p)>>2]|0;w=cu(c[(f&p)>>2]|0,c[(la&p)>>2]|0)|0;if(!w)w=c[(da&p)>>2]|0;if(dd(x,c[(w&p)>>2]|0)|0)break c}while(0);g=A|g;h=z|h}}while(0);y=y+1|0}while((y|0)<(r|0));k=c[(B&p)>>2]|0}do if(!(k&4096)){if(!(k&256)){u=c[(l&p)+28>>2]|0;if(!u){r=0;break a}if(a[(u&n)+51>>0]&4){r=0;break a}k=b[(u&o)+48>>1]|0;s=(a[(u&n)+50>>0]|0)!=0&1;if(!(k<<16>>16)){pa=71;break}else{S=k&65535;T=b[(u&o)+46>>1]|0}}else{S=1;T=0;u=0}J=l+24|0;K=l+42|0;L=l+48|0;M=(u|0)==0;N=u+32|0;O=iw(1,0,ca|0)|0;P=G;Q=u+4|0;R=u+28|0;I=u+12|0;k=0;u=0;A=0;H=0;d:while(1){z=(u|0)<(e[(J&o)>>1]|0);if((z?(b[(K&o)>>1]|0)==0:0)?(ma=e[((c[((c[(L&p)>>2]|0)+(u<<2)&p)>>2]|0)&o)+18>>1]|0,(ma&130|0)!=0):0){s=(ma&128|0)==0?s:0;z=H}else{if(!M){x=b[((c[(Q&p)>>2]|0)+(u<<1)&o)>>1]|0;w=a[((c[(R&p)>>2]|0)+u&n)>>0]|0;v=c[(I&p)>>2]|0;x=x<<16>>16==(b[(v&o)+36>>1]|0)?-1:x<<16>>16;y=(x|0)>-1;if(s<<24>>24!=0&y)if(z){y=1;F=x}else{y=1;F=x;s=(a[((c[(v&p)+4>>2]|0)+(x*24|0)&n)+20>>0]|0)==0?0:s}else F=x}else{y=0;F=-1;w=0}if(ja){pa=68;break}else{z=1;E=0}e:while(1){C=iw(1,0,E|0)|0;D=G;do if((C&g|0)==0&(D&h|0)==0){v=c[((c[(ea&p)>>2]|0)+(E*20|0)&p)>>2]|0;x=c[(v&p)+4>>2]|0;if(!(x&4096))B=v;else{B=v;do{if(!(x&262144))x=B+12|0;else x=c[((c[(B&p)+20>>2]|0)&p)+4>>2]|0;B=c[(x&p)>>2]|0;x=c[(B&p)+4>>2]|0}while((x&4096|0)!=0)}z=ga?0:z;if((a[(B&n)>>0]|0)!=-102)break;if((c[(B&p)+28>>2]|0)!=(U|0))break;if((b[(B&o)+32>>1]|0)!=(F|0))break;if(!y){B=C;y=D;z=E;break e}x=cu(c[(f&p)>>2]|0,v)|0;if(!x)x=c[(da&p)>>2]|0;if(!(dd(c[(x&p)>>2]|0,c[((c[(N&p)>>2]|0)+(u<<2)&p)>>2]|0)|0)){B=C;y=D;z=E;break e}}while(0);E=E+1|0;if(!(z<<24>>24!=0&(E|0)<(r|0))){pa=68;break d}}do if(W){if(H<<24>>24)if((w^A)<<24>>24==(a[((c[(ea&p)>>2]|0)+(z*20|0)&n)+12>>0]|0)){z=H;break}else{pa=68;break d}v=a[((c[(ea&p)>>2]|0)+(z*20|0)&n)+12>>0]|0;A=v^w;if(w<<24>>24==v<<24>>24){z=1;break}v=q;w=c[(v&p)+4>>2]|P;z=q;c[(z&p)>>2]=c[(v&p)>>2]|O;c[(z&p)+4>>2]=w;z=1}else z=H;while(0);g=B|g;h=y|h;k=(F|0)<0?1:k}u=u+1|0;if((u|0)>=(S|0))break;else H=z}if((pa|0)==68){pa=0;s=(u|0)==0|(u|0)<(T&65535|0)?0:s}if(!(k<<24>>24))pa=71;else s=1}else pa=71;while(0);if((pa|0)==71){pa=0;if(!(s<<24>>24)){s=0;break b}}U=l+8|0;_=c[(U&p)>>2]|_;$=c[(U&p)+4>>2]|$;if(!ja){z=~_;A=~$;y=0;do{u=iw(1,0,y|0)|0;x=G;do if((u&g|0)==0&(x&h|0)==0){k=c[((c[(ea&p)>>2]|0)+(y*20|0)&p)>>2]|0;v=Av(X,k)|0;w=G;if((v|0)==0&(w|0)==0?(c[(oa&p)>>2]=0,c[(oa&p)+4>>2]=0,c[(oa&p)+8>>2]=0,c[(oa&p)+12>>2]=0,c[(oa&p)+16>>2]=0,c[(oa&p)+20>>2]=0,a[(Y&n)>>0]=1,c[(oa&p)>>2]=78,c[(Z&p)>>2]=79,c[(aa&p)>>2]=0,rs(oa,k)|0,(a[(Y&n)>>0]|0)==0):0)break;U=(v&z|0)==0&(w&A|0)==0;g=(U?u:0)|g;h=(U?x:0)|h}while(0);y=y+1|0}while((y|0)<(r|0))}if(h>>>0>ra>>>0|(h|0)==(ra|0)&g>>>0>=qa>>>0|s<<24>>24==0|(ca|0)>=(na|0))break b;else{k=V;ca=ca+1|0}}ga=(a[(l&n)+29>>0]|0)==0;g=ga?g:qa;h=ga?h:ra}while(0);if((g|0)==(qa|0)&(h|0)==(ra|0)){r=sa&255;break}if(!(s<<24>>24)){do{r=r+-1|0;if((r|0)<=0){r=0;break a}ea=iw(1,0,r|0)|0;ea=jw(ea|0,G|0,-1,-1)|0;ga=G}while(!((ea&g|0)==(ea|0)&(ga&h|0)==(ga|0)));r=r&255}else r=-1}else r=0}while(0);i=ta;return r|0}function Nv(b,c,d,e){b=b|0;c=c|0;d=d|0;e=e|0;if(c)Sk(b,33920,5);if(!d)c=0;else{c=d;while(1)if(!(a[(c&n)>>0]|0))break;else c=c+1|0;c=c-d&1073741823}Sk(b,d,c);Sk(b,e,1);Sk(b,13552,1);return}function Ov(a){a=a|0;var d=0,e=0,f=0,g=0,h=0,i=0;i=c[(c[(c[(a&p)>>2]&p)>>2]&p)>>2]|0;d=c[(a&p)+12>>2]|0;g=a+20|0;if((d|0)>0){h=c[(g&p)>>2]|0;while(1){d=d+-1|0;f=h+20|0;e=b[(f&o)>>1]|0;if(e&1){Gk(i,c[(h&p)>>2]|0);e=b[(f&o)>>1]|0}e=e&65535;if(!(e&16)){if(e&32){e=c[(h&p)+12>>2]|0;Ov(e);mg(i,e)}}else{e=c[(h&p)+12>>2]|0;Ov(e);mg(i,e)}if((d|0)<=0)break;else h=h+48|0}}d=c[(g&p)>>2]|0;if((d|0)!=(a+24|0))mg(i,d);return}function Pv(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,o=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0;u=i;i=i+32|0;if((i|0)>=(j|0))fa();t=u;h=c[(b&p)+8>>2]|0;k=c[(b&p)>>2]|0;if(e){l=(f|0)==10;m=b+437|0;o=t+4|0;q=t+1|0;r=t+8|0;s=t+12|0;g=f&255;do{if(l)f=a[(e&n)+1>>0]|0;else f=g;a[(m&n)>>0]=f;f=d[(e&n)>>0]|0;if((f|0)==108){w=Vv(b,e)|0;v=gr(k,c[(e&p)+8>>2]|0,0)|0;f=Nr(k,c[(e&p)+28>>2]|0)|0;tr(b,w,v,f,d[(m&n)>>0]|0)}else if((f|0)==109){f=Vv(b,e)|0;rr(b,f,Mr(k,c[(e&p)+20>>2]|0,0,0)|0)}else if((f|0)==110){w=Vv(b,e)|0;v=Pr(k,c[(e&p)+24>>2]|0,0)|0;f=Mr(k,c[(e&p)+20>>2]|0,0,0)|0;sr(b,w,v,f,d[(m&n)>>0]|0)}else{f=gr(k,c[(e&p)+8>>2]|0,0)|0;a[(t&n)>>0]=4;c[(o&p)>>2]=0;a[(q&n)>>0]=0;c[(r&p)>>2]=0;c[(s&p)>>2]=0;ir(b,f,t)|0;Mk(k,f,1)}if((a[(e&n)>>0]|0)!=119)wh(h,98,0,0,0)|0;e=c[(e&p)+32>>2]|0}while((e|0)!=0)}i=u;return}function Qv(d,e,f,g){d=d|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0;m=i;i=i+16|0;if((i|0)>=(j|0))fa();h=m;l=c[(d&p)>>2]|0;c[(h&p)>>2]=0;c[(h&p)+4>>2]=0;h=nr(l,159,h,0)|0;do if(!h)h=0;else{k=g<<16>>16;if(g<<16>>16>-1?(b[(e&o)+36>>1]|0)!=g<<16>>16:0){g=c[(e&p)+4>>2]|0;c[(h&p)+28>>2]=f+1+k;a[(h&n)+1>>0]=a[(g+(k*24|0)&n)+21>>0]|0;k=c[(g+(k*24|0)&p)+16>>2]|0;if(!k)k=c[(c[(l&p)+8>>2]&p)>>2]|0;h=xv(d,h,k)|0;break}c[(h&p)+28>>2]=f;a[(h&n)+1>>0]=68}while(0);i=m;return h|0}function Rv(d,e,f,g){d=d|0;e=e|0;f=f|0;g=g|0;var h=0,i=0,j=0;d=mh(d,48,0)|0;if(d){h=d+0|0;i=h+44|0;do{a[(h&n)>>0]=0;h=h+1|0}while((h|0)<(i|0));a[(d&n)>>0]=-102;b[(d&o)+34>>1]=-1;c[(d&p)+24>>2]=1;h=c[(e+(f*72|0)&p)+24>>2]|0;c[(d&p)+44>>2]=h;c[(d&p)+28>>2]=c[(e+(f*72|0)&p)+48>>2];if((b[(h&o)+36>>1]|0)==(g|0))b[(d&o)+32>>1]=-1;else{b[(d&o)+32>>1]=g;j=(g|0)>63;g=iw(1,0,g|0)|0;h=e+(f*72|0)+64|0;f=h;i=c[(f&p)+4>>2]|(j?-2147483648:G);c[(h&p)>>2]=c[(f&p)>>2]|(j?0:g);c[(h&p)+4>>2]=i}h=d+4|0;c[(h&p)>>2]=c[(h&p)>>2]|4}return d|0}function Sv(b,e){b=b|0;e=e|0;if((a[(e&n)>>0]|0)==-101){e=e+38|0;a[(e&n)>>0]=(d[(e&n)>>0]|0)+(c[(b&p)+24>>2]|0)}return 0}function Tv(a,d){a=a|0;d=d|0;var f=0,g=0,h=0,i=0,j=0,k=0;f=b[(a&o)+40>>1]|0;i=f&65535;h=b[(a&o)+42>>1]|0;k=e[(d&o)+40>>1]|0;g=b[(d&o)+42>>1]|0;a:do if(!((g&65535)>(h&65535)?1:(i-(h&65535)|0)>=(k-(g&65535)|0))){g=b[(a&o)+20>>1]|0;h=b[(d&o)+20>>1]|0;if(g<<16>>16>=h<<16>>16){if(g<<16>>16>h<<16>>16){f=0;break}if((b[(a&o)+22>>1]|0)>(b[(d&o)+22>>1]|0)){f=0;break}}if(!(f<<16>>16))f=1;else{j=c[(a&p)+48>>2]|0;d=d+48|0;a=i;while(1){a=a+-1|0;h=c[(j+(a<<2)&p)>>2]|0;if(h){f=k;while(1){g=f+-1|0;if((f|0)<=0){f=0;break a}if((c[((c[(d&p)>>2]|0)+(g<<2)&p)>>2]|0)==(h|0))break;else f=g}if((f|0)<1){f=0;break a}}if((a|0)<=0){f=1;break}}}}else f=0;while(0);return f|0}function Uv(d,e){d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0,v=0;f=c[(d&p)>>2]|0;a:do if(f){k=a[(e&n)+16>>0]|0;l=e+17|0;m=e+18|0;q=e+20|0;r=e+22|0;s=e+42|0;t=e+36|0;do{if((a[(f&n)+16>>0]|0)==k<<24>>24?(a[(f&n)+17>>0]|0)==(a[(l&n)>>0]|0):0){if((((c[(f&p)+36>>2]&16384|0)!=0?(b[(s&o)>>1]|0)==0:0)?(c[(t&p)>>2]&513|0)==513:0)?(i=f,j=e,h=c[(j&p)>>2]|0,j=c[(j&p)+4>>2]|0,(h&c[(i&p)>>2]|0)==(h|0)?(j&c[(i&p)+4>>2]|0)==(j|0):0):0)break a;u=f;v=c[(u&p)>>2]|0;u=c[(u&p)+4>>2]|0;h=e;g=c[(h&p)>>2]|0;h=c[(h&p)+4>>2]|0;i=g&v;j=h&u;if((((i|0)==(v|0)&(j|0)==(u|0)?(b[(f&o)+18>>1]|0)<=(b[(m&o)>>1]|0):0)?(b[(f&o)+20>>1]|0)<=(b[(q&o)>>1]|0):0)?(b[(f&o)+22>>1]|0)<=(b[(r&o)>>1]|0):0){d=0;break a}if(((i|0)==(g|0)&(j|0)==(h|0)?(b[(f&o)+20>>1]|0)>=(b[(q&o)>>1]|0):0)?(b[(f&o)+22>>1]|0)>=(b[(r&o)>>1]|0):0)break a}d=f+52|0;f=c[(d&p)>>2]|0}while((f|0)!=0)}while(0);return d|0}function Vv(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;h=pr(c[(a&p)>>2]|0,0,b+12|0,0)|0;do if(h){g=c[(a&p)>>2]|0;f=c[((c[(b&p)+4>>2]|0)&p)+20>>2]|0;a:do if(f){e=c[(g&p)+20>>2]|0;if((e|0)>0){b=c[(g&p)+16>>2]|0;d=0;while(1){a=d+1|0;if((c[(b+(d<<4)&p)+12>>2]|0)==(f|0)){a=d;d=7;break a}if((a|0)<(e|0))d=a;else{d=7;break}}}else a=0}else{a=-1e6;d=7}while(0);if((d|0)==7)if(!((a|0)==0|(a|0)>1))break;a=kh(g,c[((c[(g&p)+16>>2]|0)+(a<<4)&p)>>2]|0)|0;c[(h+(((c[(h&p)>>2]|0)+-1|0)*72|0)&p)+12>>2]=a}while(0);return h|0}function Wv(a){a=a|0;var b=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,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;do if(a>>>0<245){if(a>>>0<11)q=16;else q=a+11&-8;a=q>>>3;l=c[12266]|0;i=l>>>a;if(i&3){e=(i&1^1)+a|0;f=e<<1;b=49104+(f<<2)|0;f=49104+(f+2<<2)|0;g=c[(f&p)>>2]|0;h=g+8|0;i=c[(h&p)>>2]|0;do if((b|0)!=(i|0)){if(i>>>0<(c[12270]|0)>>>0)Ob();d=i+12|0;if((c[(d&p)>>2]|0)==(g|0)){c[(d&p)>>2]=b;c[(f&p)>>2]=i;break}else Ob()}else c[12266]=l&~(1<>2]=x|3;x=g+(x|4)|0;c[(x&p)>>2]=c[(x&p)>>2]|1;x=h;return x|0}k=c[12268]|0;if(q>>>0>k>>>0){if(i){f=2<>>12&16;f=f>>>a;e=f>>>5&8;f=f>>>e;d=f>>>2&4;f=f>>>d;g=f>>>1&2;f=f>>>g;h=f>>>1&1;h=(e|a|d|g|h)+(f>>>h)|0;f=h<<1;g=49104+(f<<2)|0;f=49104+(f+2<<2)|0;d=c[(f&p)>>2]|0;a=d+8|0;e=c[(a&p)>>2]|0;do if((g|0)!=(e|0)){if(e>>>0<(c[12270]|0)>>>0)Ob();i=e+12|0;if((c[(i&p)>>2]|0)==(d|0)){c[(i&p)>>2]=g;c[(f&p)>>2]=e;m=c[12268]|0;break}else Ob()}else{c[12266]=l&~(1<>2]=q|3;j=d+q|0;c[(d+(q|4)&p)>>2]=b|1;c[(d+x&p)>>2]=b;if(m){e=c[12271]|0;g=m>>>3;i=g<<1;f=49104+(i<<2)|0;h=c[12266]|0;g=1<>2]|0;if(i>>>0<(c[12270]|0)>>>0)Ob();else{n=h;o=i}}else{c[12266]=h|g;n=49104+(i+2<<2)|0;o=f}c[(n&p)>>2]=e;c[(o&p)+12>>2]=e;c[(e&p)+8>>2]=o;c[(e&p)+12>>2]=f}c[12268]=b;c[12271]=j;x=a;return x|0}a=c[12267]|0;if(a){h=(a&0-a)+-1|0;w=h>>>12&16;h=h>>>w;v=h>>>5&8;h=h>>>v;x=h>>>2&4;h=h>>>x;i=h>>>1&2;h=h>>>i;g=h>>>1&1;g=c[((v|w|x|i|g)+(h>>>g)<<2&p)+49368>>2]|0;h=(c[(g&p)+4>>2]&-8)-q|0;i=g;while(1){d=c[(i&p)+16>>2]|0;if(!d){d=c[(i&p)+20>>2]|0;if(!d){l=h;k=g;break}}i=(c[(d&p)+4>>2]&-8)-q|0;x=i>>>0>>0;h=x?i:h;i=d;g=x?d:g}a=c[12270]|0;if(k>>>0>>0)Ob();b=k+q|0;if(k>>>0>=b>>>0)Ob();j=c[(k&p)+24>>2]|0;g=c[(k&p)+12>>2]|0;do if((g|0)==(k|0)){h=k+20|0;i=c[(h&p)>>2]|0;if(!i){h=k+16|0;i=c[(h&p)>>2]|0;if(!i){e=0;break}}while(1){g=i+20|0;f=c[(g&p)>>2]|0;if(f){i=f;h=g;continue}g=i+16|0;f=c[(g&p)>>2]|0;if(!f)break;else{i=f;h=g}}if(h>>>0>>0)Ob();else{c[(h&p)>>2]=0;e=i;break}}else{f=c[(k&p)+8>>2]|0;if(f>>>0>>0)Ob();i=f+12|0;if((c[(i&p)>>2]|0)!=(k|0))Ob();h=g+8|0;if((c[(h&p)>>2]|0)==(k|0)){c[(i&p)>>2]=g;c[(h&p)>>2]=f;e=g;break}else Ob()}while(0);do if(j){i=c[(k&p)+28>>2]|0;h=49368+(i<<2)|0;if((k|0)==(c[(h&p)>>2]|0)){c[(h&p)>>2]=e;if(!e){c[12267]=c[12267]&~(1<>>0<(c[12270]|0)>>>0)Ob();i=j+16|0;if((c[(i&p)>>2]|0)==(k|0))c[(i&p)>>2]=e;else c[(j&p)+20>>2]=e;if(!e)break}h=c[12270]|0;if(e>>>0>>0)Ob();c[(e&p)+24>>2]=j;i=c[(k&p)+16>>2]|0;do if(i)if(i>>>0>>0)Ob();else{c[(e&p)+16>>2]=i;c[(i&p)+24>>2]=e;break}while(0);i=c[(k&p)+20>>2]|0;if(i)if(i>>>0<(c[12270]|0)>>>0)Ob();else{c[(e&p)+20>>2]=i;c[(i&p)+24>>2]=e;break}}while(0);if(l>>>0<16){x=l+q|0;c[(k&p)+4>>2]=x|3;x=k+(x+4)|0;c[(x&p)>>2]=c[(x&p)>>2]|1}else{c[(k&p)+4>>2]=q|3;c[(k+(q|4)&p)>>2]=l|1;c[(k+l+q&p)>>2]=l;d=c[12268]|0;if(d){e=c[12271]|0;g=d>>>3;i=g<<1;f=49104+(i<<2)|0;h=c[12266]|0;g=1<>2]|0;if(h>>>0<(c[12270]|0)>>>0)Ob();else{r=i;s=h}}else{c[12266]=h|g;r=49104+(i+2<<2)|0;s=f}c[(r&p)>>2]=e;c[(s&p)+12>>2]=e;c[(e&p)+8>>2]=s;c[(e&p)+12>>2]=f}c[12268]=l;c[12271]=b}x=k+8|0;return x|0}else s=q}else s=q}else if(a>>>0<=4294967231){a=a+11|0;s=a&-8;k=c[12267]|0;if(k){h=0-s|0;a=a>>>8;if(a)if(s>>>0>16777215)d=31;else{q=(a+1048320|0)>>>16&8;r=a<>>16&4;r=r<>>16&2;d=14-(o|q|d)+(r<>>15)|0;d=s>>>(d+7|0)&1|d<<1}else d=0;f=c[(d<<2&p)+49368>>2]|0;a:do if(!f){a=0;i=0}else{if((d|0)==31)i=0;else i=25-(d>>>1)|0;l=h;a=0;b=s<>2]&-8;h=e-s|0;if(h>>>0>>0)if((e|0)==(s|0)){a=f;i=f;break a}else i=f;else h=l;r=c[(f&p)+20>>2]|0;f=c[(f+(b>>>31<<2)&p)+16>>2]|0;a=(r|0)==0|(r|0)==(f|0)?a:r;if(!f)break;else{l=h;b=b<<1}}}while(0);if((a|0)==0&(i|0)==0){a=2<>>12&16;r=r>>>n;m=r>>>5&8;r=r>>>m;o=r>>>2&4;r=r>>>o;q=r>>>1&2;r=r>>>q;a=r>>>1&1;a=c[((m|n|o|q|a)+(r>>>a)<<2&p)+49368>>2]|0}if(!a){o=h;q=i}else while(1){r=(c[(a&p)+4>>2]&-8)-s|0;f=r>>>0>>0;h=f?r:h;i=f?a:i;f=c[(a&p)+16>>2]|0;if(f){a=f;continue}a=c[(a&p)+20>>2]|0;if(!a){o=h;q=i;break}}if((q|0)!=0?o>>>0<((c[12268]|0)-s|0)>>>0:0){a=c[12270]|0;if(q>>>0>>0)Ob();m=q+s|0;if(q>>>0>=m>>>0)Ob();j=c[(q&p)+24>>2]|0;g=c[(q&p)+12>>2]|0;do if((g|0)==(q|0)){h=q+20|0;i=c[(h&p)>>2]|0;if(!i){h=q+16|0;i=c[(h&p)>>2]|0;if(!i){u=0;break}}while(1){g=i+20|0;f=c[(g&p)>>2]|0;if(f){i=f;h=g;continue}g=i+16|0;f=c[(g&p)>>2]|0;if(!f)break;else{i=f;h=g}}if(h>>>0>>0)Ob();else{c[(h&p)>>2]=0;u=i;break}}else{f=c[(q&p)+8>>2]|0;if(f>>>0>>0)Ob();i=f+12|0;if((c[(i&p)>>2]|0)!=(q|0))Ob();h=g+8|0;if((c[(h&p)>>2]|0)==(q|0)){c[(i&p)>>2]=g;c[(h&p)>>2]=f;u=g;break}else Ob()}while(0);do if(j){i=c[(q&p)+28>>2]|0;h=49368+(i<<2)|0;if((q|0)==(c[(h&p)>>2]|0)){c[(h&p)>>2]=u;if(!u){c[12267]=c[12267]&~(1<>>0<(c[12270]|0)>>>0)Ob();i=j+16|0;if((c[(i&p)>>2]|0)==(q|0))c[(i&p)>>2]=u;else c[(j&p)+20>>2]=u;if(!u)break}h=c[12270]|0;if(u>>>0>>0)Ob();c[(u&p)+24>>2]=j;i=c[(q&p)+16>>2]|0;do if(i)if(i>>>0>>0)Ob();else{c[(u&p)+16>>2]=i;c[(i&p)+24>>2]=u;break}while(0);i=c[(q&p)+20>>2]|0;if(i)if(i>>>0<(c[12270]|0)>>>0)Ob();else{c[(u&p)+20>>2]=i;c[(i&p)+24>>2]=u;break}}while(0);b:do if(o>>>0>=16){c[(q&p)+4>>2]=s|3;c[(q+(s|4)&p)>>2]=o|1;c[(q+o+s&p)>>2]=o;i=o>>>3;if(o>>>0<256){h=i<<1;f=49104+(h<<2)|0;g=c[12266]|0;i=1<>2]|0;if(h>>>0>=(c[12270]|0)>>>0){v=i;w=h;break}Ob()}while(0);c[(v&p)>>2]=m;c[(w&p)+12>>2]=m;c[(q+s&p)+8>>2]=w;c[(q+s&p)+12>>2]=f;break}d=o>>>8;if(d)if(o>>>0>16777215)f=31;else{w=(d+1048320|0)>>>16&8;x=d<>>16&4;x=x<>>16&2;f=14-(v|w|f)+(x<>>15)|0;f=o>>>(f+7|0)&1|f<<1}else f=0;i=49368+(f<<2)|0;c[(q+s&p)+28>>2]=f;c[(q+s&p)+20>>2]=0;c[(q+s&p)+16>>2]=0;h=c[12267]|0;g=1<>2]=m;c[(q+s&p)+24>>2]=i;c[(q+s&p)+12>>2]=m;c[(q+s&p)+8>>2]=m;break}d=c[(i&p)>>2]|0;if((f|0)==31)b=0;else b=25-(f>>>1)|0;c:do if((c[(d&p)+4>>2]&-8|0)!=(o|0)){h=o<>>31<<2)+16|0;i=c[(b&p)>>2]|0;if(!i)break;if((c[(i&p)+4>>2]&-8|0)==(o|0)){C=i;break c}else{h=h<<1;d=i}}if(b>>>0<(c[12270]|0)>>>0)Ob();else{c[(b&p)>>2]=m;c[(q+s&p)+24>>2]=d;c[(q+s&p)+12>>2]=m;c[(q+s&p)+8>>2]=m;break b}}else C=d;while(0);d=C+8|0;b=c[(d&p)>>2]|0;x=c[12270]|0;if(C>>>0>=x>>>0&b>>>0>=x>>>0){c[(b&p)+12>>2]=m;c[(d&p)>>2]=m;c[(q+s&p)+8>>2]=b;c[(q+s&p)+12>>2]=C;c[(q+s&p)+24>>2]=0;break}else Ob()}else{x=o+s|0;c[(q&p)+4>>2]=x|3;x=q+(x+4)|0;c[(x&p)>>2]=c[(x&p)>>2]|1}while(0);x=q+8|0;return x|0}}}else s=-1;while(0);a=c[12268]|0;if(a>>>0>=s>>>0){b=a-s|0;d=c[12271]|0;if(b>>>0>15){c[12271]=d+s;c[12268]=b;c[(d+s&p)+4>>2]=b|1;c[(d+a&p)>>2]=b;c[(d&p)+4>>2]=s|3}else{c[12268]=0;c[12271]=0;c[(d&p)+4>>2]=a|3;x=d+(a+4)|0;c[(x&p)>>2]=c[(x&p)>>2]|1}x=d+8|0;return x|0}a=c[12269]|0;if(a>>>0>s>>>0){w=a-s|0;c[12269]=w;x=c[12272]|0;c[12272]=x+s;c[(x+s&p)+4>>2]=w|1;c[(x&p)+4>>2]=s|3;x=x+8|0;return x|0}do if(!(c[12384]|0)){a=wb(30)|0;if(!(a+-1&a)){c[12386]=a;c[12385]=a;c[12387]=-1;c[12388]=-1;c[12389]=0;c[12377]=0;c[12384]=(Pb(0)|0)&-16^1431655768;break}else Ob()}while(0);l=s+48|0;b=c[12386]|0;k=s+47|0;d=b+k|0;b=0-b|0;m=d&b;if(m>>>0<=s>>>0){x=0;return x|0}a=c[12376]|0;if((a|0)!=0?(v=c[12374]|0,w=v+m|0,w>>>0<=v>>>0|w>>>0>a>>>0):0){x=0;return x|0}d:do if(!(c[12377]&4)){a=c[12272]|0;e:do if(a){f=49512|0;while(1){i=c[(f&p)>>2]|0;if(i>>>0<=a>>>0?(t=f+4|0,(i+(c[(t&p)>>2]|0)|0)>>>0>a>>>0):0){e=f;h=t;a=f;break}f=c[(f&p)+8>>2]|0;if(!f){H=181;break e}}if(a){a=d-(c[12269]|0)&b;if(a>>>0<2147483647){i=sb(a|0)|0;if((i|0)==((c[(e&p)>>2]|0)+(c[(h&p)>>2]|0)|0))H=190;else H=191}else a=0}else H=181}else H=181;while(0);do if((H|0)==181){i=sb(0)|0;if((i|0)!=(-1|0)){a=i;h=c[12385]|0;f=h+-1|0;if(!(f&a))a=m;else a=m-a+(f+a&0-h)|0;h=c[12374]|0;f=h+a|0;if(a>>>0>s>>>0&a>>>0<2147483647){w=c[12376]|0;if((w|0)!=0?f>>>0<=h>>>0|f>>>0>w>>>0:0){a=0;break}h=sb(a|0)|0;if((h|0)==(i|0))H=190;else{i=h;H=191}}else a=0}else a=0}while(0);f:do if((H|0)==190){if((i|0)!=(-1|0)){y=i;H=201;break d}}else if((H|0)==191){h=0-a|0;do if((i|0)!=(-1|0)&a>>>0<2147483647&l>>>0>a>>>0?(x=c[12386]|0,x=k-a+x&0-x,x>>>0<2147483647):0)if((sb(x|0)|0)==(-1|0)){sb(h|0)|0;a=0;break f}else{a=x+a|0;break}while(0);if((i|0)==(-1|0))a=0;else{y=i;H=201;break d}}while(0);c[12377]=c[12377]|4;H=198}else{a=0;H=198}while(0);if((((H|0)==198?m>>>0<2147483647:0)?(y=sb(m|0)|0,z=sb(0)|0,(y|0)!=(-1|0)&(z|0)!=(-1|0)&y>>>0>>0):0)?(A=z-y|0,B=A>>>0>(s+40|0)>>>0,B):0){a=B?A:a;H=201}if((H|0)==201){i=(c[12374]|0)+a|0;c[12374]=i;if(i>>>0>(c[12375]|0)>>>0)c[12375]=i;l=c[12272]|0;g:do if(l){e=49512|0;do{i=c[(e&p)>>2]|0;h=e+4|0;f=c[(h&p)>>2]|0;if((y|0)==(i+f|0)){D=i;E=h;F=f;G=e;H=213;break}e=c[(e&p)+8>>2]|0}while((e|0)!=0);if(((H|0)==213?(c[(G&p)+12>>2]&8|0)==0:0)?l>>>0>=D>>>0&l>>>0>>0:0){c[(E&p)>>2]=F+a;b=(c[12269]|0)+a|0;d=l+8|0;if(!(d&7))d=0;else d=0-d&7;x=b-d|0;c[12272]=l+d;c[12269]=x;c[(l+d&p)+4>>2]=x|1;c[(l+b&p)+4>>2]=40;c[12273]=c[12388];break}i=c[12270]|0;if(y>>>0>>0){c[12270]=y;k=y}else k=i;i=y+a|0;h=49512|0;do{if((c[(h&p)>>2]|0)==(i|0)){I=h;J=h;H=223;break}h=c[(h&p)+8>>2]|0}while((h|0)!=0);if((H|0)==223?(c[(J&p)+12>>2]&8|0)==0:0){c[(I&p)>>2]=y;i=J+4|0;c[(i&p)>>2]=(c[(i&p)>>2]|0)+a;i=y+8|0;if(!(i&7))q=0;else q=0-i&7;i=y+(a+8)|0;if(!(i&7))d=0;else d=0-i&7;i=y+(d+a)|0;o=q+s|0;n=y+o|0;m=i-(y+q)-s|0;c[(y+q&p)+4>>2]=s|3;h:do if((i|0)!=(l|0)){if((i|0)==(c[12271]|0)){x=(c[12268]|0)+m|0;c[12268]=x;c[12271]=n;c[(y+o&p)+4>>2]=x|1;c[(y+x+o&p)>>2]=x;break}l=a+4|0;j=c[(y+l+d&p)>>2]|0;if((j&3|0)==1){b=j&-8;f=j>>>3;i:do if(j>>>0>=256){e=c[(y+(d|24)+a&p)>>2]|0;g=c[(y+a+d&p)+12>>2]|0;do if((g|0)==(i|0)){g=d|16;h=y+(l+g)|0;j=c[(h&p)>>2]|0;if(!j){h=y+(g+a)|0;j=c[(h&p)>>2]|0;if(!j){O=0;break}}while(1){g=j+20|0;f=c[(g&p)>>2]|0;if(f){j=f;h=g;continue}g=j+16|0;f=c[(g&p)>>2]|0;if(!f)break;else{j=f;h=g}}if(h>>>0>>0)Ob();else{c[(h&p)>>2]=0;O=j;break}}else{f=c[(y+(d|8)+a&p)>>2]|0;if(f>>>0>>0)Ob();j=f+12|0;if((c[(j&p)>>2]|0)!=(i|0))Ob();h=g+8|0;if((c[(h&p)>>2]|0)==(i|0)){c[(j&p)>>2]=g;c[(h&p)>>2]=f;O=g;break}else Ob()}while(0);if(!e)break;j=c[(y+a+d&p)+28>>2]|0;h=49368+(j<<2)|0;do if((i|0)!=(c[(h&p)>>2]|0)){if(e>>>0<(c[12270]|0)>>>0)Ob();j=e+16|0;if((c[(j&p)>>2]|0)==(i|0))c[(j&p)>>2]=O;else c[(e&p)+20>>2]=O;if(!O)break i}else{c[(h&p)>>2]=O;if(O)break;c[12267]=c[12267]&~(1<
>2]|0))}wh(E,3,0,0,0)|0}break}case 8:{y=c[(ca&p)>>2]|0;C=y+65|0;if(((a[(C&n)>>0]|0)==0?(a[(ca&n)+18>>0]|0)==0:0)?(Y=ca+64|0,(c[(Y&p)>>2]|0)==0):0){B=Oq(ca)|0;if(B){do{}while((Pq(B,61)|0)!=0);wh(B,24,0,0,0)|0;do if(!(a[(C&n)>>0]|0)){r=ca+332|0;v=c[(r&p)>>2]|0;if((v|0)==0?(c[(ca&p)+316>>2]|0)==0:0)break;s=B+32|0;t=c[(s&p)>>2]|0;if(t)c[((c[(B&p)+4>>2]|0)&p)+8>>2]=t;c[((c[(B&p)+24>>2]|0)&p)+88>>2]=t+-1;w=y+20|0;b:do if((c[(w&p)>>2]|0)>0){h=B+96|0;k=ca+328|0;l=y+16|0;m=y+145|0;q=B+4|0;u=0;while(1){x=1<>2]=c[(h&p)>>2]|x,ba=c[((c[((c[(l&p)>>2]|0)+(u<<4)&p)+12>>2]|0)&p)+4>>2]|0,xh(B,wh(B,4,u,(c[(k&p)>>2]&x|0)!=0&1,c[(ca+(u<<2)&p)+336>>2]|0)|0,ba,-14),(a[(m&n)>>0]|0)==0):0)?(N=c[(q&p)>>2]|0,(N|0)!=0):0)a[(N+(((c[(s&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=1;u=u+1|0;if((u|0)>=(c[(w&p)>>2]|0))break b;v=c[(r&p)>>2]|0}}while(0);s=ca+452|0;if((c[(s&p)>>2]|0)>0){r=ca+520|0;q=0;do{t=c[((c[((c[(r&p)>>2]|0)+(q<<2)&p)>>2]|0)&p)+60>>2]|0;c:do if(!t)t=0;else while(1){if((c[(t&p)>>2]|0)==(y|0))break c;t=c[(t&p)+24>>2]|0;if(!t){t=0;break}}while(0);xh(B,wh(B,146,0,0,0)|0,t,-10);q=q+1|0}while((q|0)<(c[(s&p)>>2]|0))}c[(s&p)>>2]=0;s=Oq(ca)|0;r=ca+396|0;if((c[(r&p)>>2]|0)>0){q=ca+400|0;m=0;do{$=c[(q&p)>>2]|0;ba=c[($+(m<<4)&p)+12>>2]|0;xh(s,wh(s,145,c[($+(m<<4)&p)>>2]|0,c[($+(m<<4)&p)+4>>2]|0,d[($+(m<<4)&n)+8>>0]|0)|0,ba,-2);m=m+1|0}while((m|0)<(c[(r&p)>>2]|0))}k=c[(ca&p)+8>>2]|0;t=c[(ca&p)+404>>2]|0;if(t){h=(c[(ca&p)>>2]|0)+16|0;u=k+32|0;v=k+4|0;do{r=c[(t&p)+8>>2]|0;s=c[(t&p)+12>>2]|0;Qq(ca,0,r,c[((c[((c[(h&p)>>2]|0)+(r<<4)&p)+12>>2]|0)&p)+72>>2]|0,54);r=s+1|0;wh(k,28,0,s,r)|0;q=c[(u&p)>>2]|0;l=s+-1|0;m=c[(c[(t&p)+4>>2]&p)>>2]|0;xh(k,wh(k,97,0,l,0)|0,m,0);m=q+9|0;wh(k,108,0,m,0)|0;wh(k,47,0,0,s)|0;wh(k,78,l,q+7|0,s)|0;l=c[(v&p)>>2]|0;if(l)a[(l+(((c[(u&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=16;wh(k,103,0,r,0)|0;wh(k,47,0,1,s)|0;wh(k,16,0,m,0)|0;wh(k,9,0,q+2|0,0)|0;wh(k,25,0,s,0)|0;wh(k,61,0,0,0)|0;t=c[(t&p)>>2]|0}while((t|0)!=0)}s=c[(ca&p)+316>>2]|0;if((s|0)!=0?(a[(ca&n)+23>>0]=0,(c[(s&p)>>2]|0)>0):0){r=s+4|0;q=0;do{ba=c[(r&p)>>2]|0;Rq(ca,c[(ba+(q*20|0)&p)>>2]|0,c[(ba+(q*20|0)&p)+16>>2]|0);q=q+1|0}while((q|0)<(c[(s&p)>>2]|0))}wh(B,16,0,1,0)|0}while(0);if((c[(Y&p)>>2]|0)==0?(a[(C&n)>>0]|0)==0:0){if((c[(ca&p)+404>>2]|0)!=0?(Z=ca+68|0,(c[(Z&p)>>2]|0)==0):0)c[(Z&p)>>2]=1;Ah(B,ca);c[(ca&p)+12>>2]=101;a[(ca&n)+16>>0]=0}else aa=48}else aa=48;if((aa|0)==48)c[(ca&p)+12>>2]=1;c[(ca&p)+68>>2]=0;c[(ca&p)+72>>2]=0;c[(ca&p)+76>>2]=0;c[(ca&p)+440>>2]=0;c[(ca&p)+332>>2]=0}break}case 5:{a[(ca&n)+450>>0]=0;c[(ca&p)+440>>2]=0;break}case 6:{a[(ca&n)+450>>0]=1;c[(ca&p)+440>>2]=0;break}case 221:case 218:case 108:case 97:case 85:case 83:case 81:case 68:case 31:case 28:{c[(ea&p)>>2]=0;break}case 27:{a[((c[(ca&p)>>2]|0)&n)+250>>0]=0;aa=f+(da<<4)+16|0;ba=c[(aa&p)+4>>2]|0;ca=ea;c[(ca&p)>>2]=c[(aa&p)>>2];c[(ca&p)+4>>2]=ba;break}case 222:case 219:case 107:case 84:case 69:case 30:case 29:{c[(ea&p)>>2]=1;break}case 32:{Vq(ca,f+(da+-2<<4)+16|0,f+(da+-1<<4)+16|0,a[(f+(da<<4)&n)+16>>0]|0,0);break}case 33:{ba=f+(da<<4)+16|0;Vq(ca,0,0,0,c[(ba&p)>>2]|0);Mk(c[(ca&p)>>2]|0,c[(ba&p)>>2]|0,1);break}case 34:{a[(ea&n)>>0]=0;break}case 35:{l=c[(f+(da<<4)&p)+20>>2]|0;k=c[(f+(da<<4)&p)+16>>2]|0;if((l|0)==5?(Fc(k,20456,5)|0)==0:0){a[(ea&n)>>0]=32;break a}a[(ea&n)>>0]=0;c[(ba&p)>>2]=l;c[(ba&p)+4>>2]=k;th(ca,20464,ba);break}case 59:{ba=f+(da<<4)+16|0;c[(x&p)>>2]=Zq(ca,97,0,0,ba)|0;ba=c[(ba&p)>>2]|0;c[(x&p)+4>>2]=ba;c[(x&p)+8>>2]=ba+(c[(f+(da<<4)&p)+20>>2]|0);Yq(ca,x);break}case 61:{k=c[(f+(da<<4)&p)+16>>2]|0;l=c[(ca&p)+484>>2]|0;if((l|0)!=0?(v=b[(l&o)+38>>1]|0,v<<16>>16>=1):0)a[((c[(l&p)+4>>2]|0)+(((v<<16>>16)+-1|0)*24|0)&n)+20>>0]=k;break}case 70:{c[(ea&p)>>2]=0;break}case 71:{c[(ea&p)>>2]=c[(f+(da+-1<<4)&p)+16>>2]&~c[(f+(da<<4)&p)+20>>2]|c[(f+(da<<4)&p)+16>>2];break}case 73:case 72:{c[(ea&p)>>2]=0;c[(ea&p)+4>>2]=0;break}case 74:{c[(ea&p)>>2]=c[(f+(da<<4)&p)+16>>2];c[(ea&p)+4>>2]=255;break}case 76:{c[(ea&p)>>2]=7;break}case 75:{c[(ea&p)>>2]=c[(f+(da<<4)&p)+16>>2]<<8;c[(ea&p)+4>>2]=65280;break}case 65:{br(ca,0,f+(da+-2<<4)+16|0,c[(f+(da+-1<<4)&p)+16>>2]|0,c[(f+(da<<4)&p)+16>>2]|0);break}case 66:{k=c[(f+(da<<4)&p)+16>>2]|0;l=c[(ca&p)+484>>2]|0;if((l|0)!=0?(u=c[(l&p)+16>>2]|0,(u|0)!=0):0)a[(u&n)+24>>0]=k;break}case 67:{q=c[(ca&p)+484>>2]|0;if((q|0)!=0?(D=(b[(q&o)+38>>1]|0)+-1|0,r=c[(ca&p)>>2]|0,m=Wq(r,f+(da<<4)+16|0)|0,(m|0)!=0):0){if(!(cr(ca,m)|0)){mg(r,m);break a}s=q+4|0;mg(r,c[((c[(s&p)>>2]|0)+(D*24|0)&p)+16>>2]|0);c[((c[(s&p)>>2]|0)+(D*24|0)&p)+16>>2]=m;l=c[(q&p)+8>>2]|0;if(l)do{if((b[(c[(l&p)+4>>2]&o)>>1]|0)==(D|0))c[(c[(l&p)+32>>2]&p)>>2]=c[((c[(s&p)>>2]|0)+(D*24|0)&p)+16>>2];l=c[(l&p)+20>>2]|0}while((l|0)!=0)}break}case 13:{c[(ea&p)>>2]=7;break}case 117:case 115:case 16:case 15:case 14:{c[(ea&p)>>2]=d[(f+(da<<4)&n)+14>>0];break}case 46:{ca=c[(f+(da+-3<<4)&p)+16>>2]|0;c[(ea&p)>>2]=ca;c[(ea&p)+4>>2]=(c[(f+(da<<4)&p)+16>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0)-ca;break}case 47:{ca=c[(f+(da+-5<<4)&p)+16>>2]|0;c[(ea&p)>>2]=ca;c[(ea&p)+4>>2]=(c[(f+(da<<4)&p)+16>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0)-ca;break}case 49:{ca=c[(f+(da+-1<<4)&p)+16>>2]|0;c[(ea&p)>>2]=ca;c[(ea&p)+4>>2]=(c[(f+(da<<4)&p)+16>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0)-ca;break}case 92:case 54:{aa=f+(da<<4)+16|0;ba=c[(aa&p)+4>>2]|0;ca=ca+320|0;c[(ca&p)>>2]=c[(aa&p)>>2];c[(ca&p)+4>>2]=ba;break}case 57:case 55:{Yq(ca,f+(da<<4)+16|0);break}case 56:{Yq(ca,f+(da+-1<<4)+16|0);break}case 58:{c[(y&p)>>2]=Zq(ca,157,c[(f+(da<<4)&p)+16>>2]|0,0,0)|0;c[(y&p)+4>>2]=c[(f+(da+-1<<4)&p)+16>>2];c[(y&p)+8>>2]=c[(f+(da<<4)&p)+24>>2];Yq(ca,y);break}case 18:case 17:{if((Sq(ca,22,37136,0,0)|0)==0?(B=Oq(ca)|0,(B|0)!=0):0)wh(B,3,1,0,0)|0;break}case 19:{if((Sq(ca,22,37120,0,0)|0)==0?(A=Oq(ca)|0,(A|0)!=0):0)wh(A,3,1,1,0)|0;break}case 22:{Tq(ca,0,f+(da<<4)+16|0);break}case 38:{ba=c[(f+(da+-2<<4)&p)+16>>2]|0;c[(ea&p)>>2]=ba;c[(ea&p)+4>>2]=(c[(ca&p)+504>>2]|0)-ba+(c[(ca&p)+508>>2]|0);break}case 39:{x=f+(da<<4)+16|0;v=c[(ca&p)>>2]|0;k=c[(ca&p)+484>>2]|0;d:do if(k){w=k+38|0;if((b[(w&o)>>1]|0)>=(c[(v&p)+96>>2]|0)){c[(ba&p)>>2]=c[(k&p)>>2];th(ca,36528,ba);break}u=Wq(v,x)|0;if(u){s=b[(w&o)>>1]|0;h=s<<16>>16;e:do if(s<<16>>16>0){t=a[((d[(u&n)>>0]|0)&n)+9328>>0]|0;q=c[(k&p)+4>>2]|0;r=u+1|0;l=0;while(1){m=c[(q+(l*24|0)&p)>>2]|0;if(t<<24>>24==(a[((d[(m&n)>>0]|0)&n)+9328>>0]|0)?(dd(r,m+1|0)|0)==0:0)break;l=l+1|0;if((l|0)>=(h|0))break e}c[(ba&p)>>2]=u;th(ca,36552,ba);mg(v,u);break d}else q=c[(k&p)+4>>2]|0;while(0);r=k+4|0;do if(!(h&7)){q=ro(v,q,(h*24|0)+192|0,0)|0;if(!q){mg(v,u);break d}else{c[(r&p)>>2]=q;s=b[(w&o)>>1]|0;break}}while(0);ba=s<<16>>16;aa=q+(ba*24|0)|0;c[(aa&p)>>2]=0;c[(aa&p)+4>>2]=0;c[(aa&p)+8>>2]=0;c[(aa&p)+12>>2]=0;c[(aa&p)+16>>2]=0;c[(aa&p)+20>>2]=0;c[(aa&p)>>2]=u;a[(q+(ba*24|0)&n)+21>>0]=65;a[(q+(ba*24|0)&n)+22>>0]=1;b[(w&o)>>1]=(b[(w&o)>>1]|0)+1<<16>>16}}while(0);$=x;aa=c[($&p)+4>>2]|0;ba=ea;c[(ba&p)>>2]=c[($&p)>>2];c[(ba&p)+4>>2]=aa;c[(ca&p)+324>>2]=0;break}case 62:{_q(ca,0,c[(f+(da+-1<<4)&p)+16>>2]|0,c[(f+(da<<4)&p)+16>>2]|0,c[(f+(da+-2<<4)&p)+16>>2]|0);break}case 63:{$q(ca,0,0,0,0,c[(f+(da<<4)&p)+16>>2]|0,0,0,0,0)|0;break}case 64:{ar(ca,c[(f+(da+-1<<4)&p)+16>>2]|0);break}case 279:case 263:case 262:case 261:case 260:case 259:case 258:case 257:case 256:case 247:case 150:case 141:case 131:case 130:case 48:case 45:case 42:case 41:case 40:{aa=f+(da<<4)+16|0;ba=c[(aa&p)+4>>2]|0;ca=ea;c[(ca&p)>>2]=c[(aa&p)>>2];c[(ca&p)+4>>2]=ba;break}case 44:{l=f+(da<<4)+16|0;k=c[(ca&p)+484>>2]|0;if((k|0)!=0?(J=b[(k&o)+38>>1]|0,J<<16>>16>=1):0){ba=(J<<16>>16)+-1|0;aa=c[(k&p)+4>>2]|0;ca=Wq(c[(ca&p)>>2]|0,l)|0;c[(aa+(ba*24|0)&p)+12>>2]=ca;a[(aa+(ba*24|0)&n)+21>>0]=Xq(ca,aa+(ba*24|0)+22|0)|0}break}case 226:{l=da+-1|0;k=f+(l<<4)+16|0;r=f+(da<<4)+16|0;q=pr(c[(ca&p)>>2]|0,0,k,r)|0;s=da+-3|0;m=Zq(ca,75,c[(f+(s<<4)&p)+16>>2]|0,0,0)|0;c[(ea&p)>>2]=m;if(!m){Do(c[(ca&p)>>2]|0,q);q=0}else{c[(m&p)+20>>2]=kr(ca,0,q,0,0,0,0,0,0,0)|0;q=c[(ea&p)>>2]|0;ba=q+4|0;c[(ba&p)>>2]=c[(ba&p)>>2]|2099200;yr(ca,q)}if(c[(f+(da+-2<<4)&p)+16>>2]|0)c[(ea&p)>>2]=Zq(ca,19,q,0,0)|0;c[(ea&p)+4>>2]=c[(f+(s<<4)&p)+20>>2];h=c[(r&p)>>2]|0;if(!h)h=(c[(k&p)>>2]|0)+(c[(f+(l<<4)&p)+20>>2]|0)|0;else h=h+(c[(f+(da<<4)&p)+20>>2]|0)|0;c[(ea&p)+8>>2]=h;break}case 225:{l=da+-4|0;h=Zq(ca,75,c[(f+(l<<4)&p)+16>>2]|0,0,0)|0;c[(ea&p)>>2]=h;if(!h){Mk(c[(ca&p)>>2]|0,c[(f+(da+-1<<4)&p)+16>>2]|0,1);h=0}else{c[(h&p)+20>>2]=c[(f+(da+-1<<4)&p)+16>>2];h=c[(ea&p)>>2]|0;ba=h+4|0;c[(ba&p)>>2]=c[(ba&p)>>2]|2099200;yr(ca,h)}if(c[(f+(da+-3<<4)&p)+16>>2]|0)c[(ea&p)>>2]=Zq(ca,19,h,0,0)|0;c[(ea&p)+4>>2]=c[(f+(l<<4)&p)+20>>2];c[(ea&p)+8>>2]=(c[(f+(da<<4)&p)+16>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0);break}case 227:{h=Zq(ca,20,0,0,0)|0;c[(ea&p)>>2]=h;if(!h)Mk(c[(ca&p)>>2]|0,c[(f+(da+-1<<4)&p)+16>>2]|0,1);else{c[(h&p)+20>>2]=c[(f+(da+-1<<4)&p)+16>>2];ba=h+4|0;c[(ba&p)>>2]=c[(ba&p)>>2]|2099200;yr(ca,h)}c[(ea&p)+4>>2]=c[(f+(da+-3<<4)&p)+16>>2];c[(ea&p)+8>>2]=(c[(f+(da<<4)&p)+16>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0);break}case 228:{k=Zq(ca,136,c[(f+(da+-3<<4)&p)+16>>2]|0,0,0)|0;c[(ea&p)>>2]=k;if(!k){Nk(c[(ca&p)>>2]|0,c[(f+(da+-2<<4)&p)+16>>2]|0);Gk(c[(ca&p)>>2]|0,c[(f+(da+-1<<4)&p)+16>>2]|0)}else{l=c[(f+(da+-1<<4)&p)+16>>2]|0;h=c[(f+(da+-2<<4)&p)+16>>2]|0;if(l)h=lr(ca,h,l)|0;c[(k&p)+20>>2]=h;yr(ca,c[(ea&p)>>2]|0)}c[(ea&p)+4>>2]=c[(f+(da+-4<<4)&p)+16>>2];c[(ea&p)+8>>2]=(c[(f+(da<<4)&p)+16>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0);break}case 291:case 240:{c[(ea&p)>>2]=2;break}case 241:{c[(ea&p)>>2]=0;break}case 239:{$q(ca,f+(da+-7<<4)+16|0,f+(da+-6<<4)+16|0,pr(c[(ca&p)>>2]|0,0,f+(da+-4<<4)+16|0,0)|0,c[(f+(da+-2<<4)&p)+16>>2]|0,c[(f+(da+-10<<4)&p)+16>>2]|0,f+(da+-11<<4)+16|0,c[(f+(da<<4)&p)+16>>2]|0,0,c[(f+(da+-8<<4)&p)+16>>2]|0)|0;break}case 229:{c[(ea&p)>>2]=lr(ca,lr(ca,c[(f+(da+-4<<4)&p)+16>>2]|0,c[(f+(da+-2<<4)&p)+16>>2]|0)|0,c[(f+(da<<4)&p)+16>>2]|0)|0;break}case 230:{c[(ea&p)>>2]=lr(ca,lr(ca,0,c[(f+(da+-2<<4)&p)+16>>2]|0)|0,c[(f+(da<<4)&p)+16>>2]|0)|0;break}case 237:{c[(ea&p)>>2]=lr(ca,c[(f+(da+-2<<4)&p)+16>>2]|0,c[(f+(da<<4)&p)+16>>2]|0)|0;break}case 238:{c[(ea&p)>>2]=lr(ca,0,c[(f+(da<<4)&p)+16>>2]|0)|0;break}case 245:{h=lr(ca,0,vr(ca,0,f+(da+-1<<4)+16|0,1)|0)|0;c[(ea&p)>>2]=h;mr(ca,h,f+(da+-2<<4)+16|0,1);if(h){if((c[(h&p)>>2]|0)>(c[((c[(ca&p)>>2]|0)&p)+96>>2]|0)){c[(ba&p)>>2]=20632;th(ca,34544,ba)}a[((c[(h&p)+4>>2]|0)+(((c[(h&p)>>2]|0)+-1|0)*20|0)&n)+12>>0]=c[(f+(da<<4)&p)+16>>2]}break}case 244:{h=vr(ca,0,f+(da+-1<<4)+16|0,1)|0;h=lr(ca,c[(f+(da+-4<<4)&p)+16>>2]|0,h)|0;c[(ea&p)>>2]=h;mr(ca,h,f+(da+-2<<4)+16|0,1);if(h){if((c[(h&p)>>2]|0)>(c[((c[(ca&p)>>2]|0)&p)+96>>2]|0)){c[(ba&p)>>2]=20632;th(ca,34544,ba)}a[((c[(h&p)+4>>2]|0)+(((c[(h&p)>>2]|0)+-1|0)*20|0)&n)+12>>0]=c[(f+(da<<4)&p)+16>>2]}break}case 248:{v=c[(f+(da<<4)&p)+16>>2]|0;s=c[(f+(da+-1<<4)&p)+16>>2]|0;u=c[(ca&p)>>2]|0;do if((a[(u&n)+65>>0]|0)==0?(Gn(ca)|0)==0:0){r=v+12|0;k=bq(u,c[(v&p)+16>>2]|0,c[(r&p)>>2]|0)|0;if(!k){if(!s){c[(ba&p)>>2]=v;c[(ba&p)+4>>2]=0;th(ca,33056,ba)}else zr(ca,c[(r&p)>>2]|0);a[(ca&n)+17>>0]=1;break}if(a[(k&n)+51>>0]&3){c[(ba&p)>>2]=0;th(ca,33080,ba);break}s=c[(k&p)+24>>2]|0;f:do if(s){r=c[(u&p)+20>>2]|0;if((r|0)>0){q=c[(u&p)+16>>2]|0;t=0;while(1){m=t+1|0;if((c[(q+(t<<4)&p)+12>>2]|0)==(s|0)){m=t;break f}if((m|0)<(r|0))t=m;else break}}else m=0}else m=-1e6;while(0);s=c[(k&p)+12>>2]|0;r=u+16|0;q=c[((c[(r&p)>>2]|0)+(m<<4)&p)>>2]|0;l=(m|0)==1?13184:13208;if(((Sq(ca,9,l,0,q)|0)==0?(Sq(ca,(m|0)==0?10:12,c[(k&p)>>2]|0,c[(s&p)>>2]|0,q)|0)==0:0)?(K=Oq(ca)|0,(K|0)!=0):0){aa=c[(ca&p)+408>>2]|0;aa=(aa|0)==0?ca:aa;Ar(ca,m);$=aa+328|0;c[($&p)>>2]=c[($&p)>>2]|1<>0]=d[(aa&n)>>0]|1;aa=c[(k&p)>>2]|0;c[(ba&p)>>2]=c[((c[(r&p)>>2]|0)+(m<<4)&p)>>2];c[(ba&p)+4>>2]=l;c[(ba&p)+8>>2]=aa;Br(ca,33160,ba);Cr(ca,m,28536,c[(k&p)>>2]|0);Dr(ca,m);Er(ca,c[(k&p)+40>>2]|0,m);ca=c[(k&p)>>2]|0;xh(K,wh(K,125,m,0,0)|0,ca,0)}}while(0);Do(u,v);break}case 246:{c[(ea&p)>>2]=0;c[(ea&p)+4>>2]=0;break}case 250:case 249:{h=Oq(ca)|0;if(h){wh(h,13,0,0,0)|0;ca=h+96|0;c[(ca&p)>>2]=c[(ca&p)>>2]|1}break}case 251:{Fr(ca,f+(da+-1<<4)+16|0,f+(da<<4)+16|0,0,0);break}case 252:{Fr(ca,f+(da+-3<<4)+16|0,f+(da+-2<<4)+16|0,f+(da<<4)+16|0,0);break}case 253:{Fr(ca,f+(da+-4<<4)+16|0,f+(da+-3<<4)+16|0,f+(da+-1<<4)+16|0,0);break}case 254:{Fr(ca,f+(da+-3<<4)+16|0,f+(da+-2<<4)+16|0,f+(da<<4)+16|0,1);break}case 255:{Fr(ca,f+(da+-4<<4)+16|0,f+(da+-3<<4)+16|0,f+(da+-1<<4)+16|0,1);break}case 264:{h=c[(f+(da+-3<<4)&p)+16>>2]|0;l=(c[(f+(da<<4)&p)+16>>2]|0)-h+(c[(f+(da<<4)&p)+20>>2]|0)|0;k=c[(f+(da+-1<<4)&p)+16>>2]|0;aa=ca+488|0;z=c[(aa&p)>>2]|0;A=c[(ca&p)>>2]|0;c[(aa&p)>>2]=0;g:do if((c[(ca&p)+64>>2]|0)==0&(z|0)!=0){y=c[(z&p)>>2]|0;m=z+20|0;v=c[(m&p)>>2]|0;h:do if(v){u=c[(A&p)+20>>2]|0;if((u|0)>0){s=c[(A&p)+16>>2]|0;q=0;while(1){r=q+1|0;if((c[(s+(q<<4)&p)+12>>2]|0)==(v|0))break h;if((r|0)<(u|0))q=r;else{q=r;break}}}else q=0}else q=-1e6;while(0);c[(z&p)+28>>2]=k;x=(k|0)==0;if(!x){s=k;do{c[(s&p)+4>>2]=z;s=c[(s&p)+32>>2]|0}while((s|0)!=0)}c[(_&p)>>2]=y;if(!y)s=0;else{s=y;while(1)if(!(a[(s&n)>>0]|0))break;else s=s+1|0;s=s-y&1073741823}c[(_&p)+4>>2]=s;c[($&p)>>2]=ca;w=A+16|0;v=c[(w&p)>>2]|0;c[($&p)+12>>2]=c[(v+(q<<4)&p)>>2];c[($&p)+4>>2]=c[(v+(q<<4)&p)+12>>2];c[($&p)+16>>2]=10720;c[($&p)+20>>2]=_;v=(q|0)==1;c[($&p)+8>>2]=v&1;if(!x)do{if(fr($,c[(k&p)+8>>2]|0)|0){k=0;l=z;break g}if(Gr($,c[(k&p)+20>>2]|0)|0){k=0;l=z;break g}if(Hr($,c[(k&p)+24>>2]|0)|0){k=0;l=z;break g}k=c[(k&p)+32>>2]|0}while((k|0)!=0);if(!(Gr($,c[(z&p)+12>>2]|0)|0)){s=A+145|0;if(!(a[(s&n)>>0]|0)){r=Oq(ca)|0;if(!r){k=0;l=z;break}aa=c[(ca&p)+408>>2]|0;Ar(ca,q);aa=((aa|0)==0?ca:aa)+328|0;c[(aa&p)>>2]=c[(aa&p)>>2]|1<>0]=0}else t=0;aa=c[(z&p)+4>>2]|0;c[(ba&p)>>2]=c[((c[(w&p)>>2]|0)+(q<<4)&p)>>2];c[(ba&p)+4>>2]=v?13184:13208;c[(ba&p)+8>>2]=y;c[(ba&p)+12>>2]=aa;c[(ba&p)+16>>2]=t;Br(ca,30008,ba);mg(A,t);Dr(ca,q);c[(ba&p)>>2]=y;Ir(r,q,uh(A,30072,ba)|0);if(!(a[(s&n)>>0]|0)){k=0;l=z;break}}l=Ik((c[((c[(w&p)>>2]|0)+(q<<4)&p)+12>>2]|0)+40|0,y,z)|0;if(l){a[(A&n)+65>>0]=1;k=0;break}k=c[(m&p)>>2]|0;if((k|0)==(c[(z&p)+24>>2]|0)){k=bn(k+8|0,c[(z&p)+4>>2]|0,ba)|0;if(!k)k=0;else k=c[(k&p)+8>>2]|0;k=k+64|0;c[(z&p)+32>>2]=c[(k&p)>>2];c[(k&p)>>2]=z;k=0}else k=0}else{k=0;l=z}}else l=z;while(0);jg(A,l);Fk(A,k);break}case 265:{D=f+(da+-7<<4)+16|0;C=da+-6|0;E=f+(C<<4)+16|0;r=c[(f+(da+-5<<4)&p)+16>>2]|0;F=da+-4|0;B=c[(f+(F<<4)&p)+16>>2]|0;F=c[(f+(F<<4)&p)+20>>2]|0;H=c[(f+(da+-2<<4)&p)+16>>2]|0;I=c[(f+(da<<4)&p)+16>>2]|0;k=c[(f+(da+-8<<4)&p)+16>>2]|0;J=c[(ca&p)>>2]|0;z=(c[(f+(da+-10<<4)&p)+16>>2]|0)!=0;do if(z)if(!(c[(f+(C<<4)&p)+20>>2]|0)){c[($&p)>>2]=D;if(!H){s=0;t=0;break}else{v=1;aa=483;break}}else{th(ca,29664,ba);s=0;t=0;break}else{v=er(ca,D,E,$)|0;if((v|0)>-1&(H|0)!=0)aa=483;else{s=0;t=0}}while(0);do if((aa|0)==483){h=J+65|0;if(!(a[(h&n)>>0]|0)){x=J+145|0;if((a[(x&n)>>0]|0)!=0&(v|0)!=1){aa=H+12|0;mg(J,c[(aa&p)>>2]|0);c[(aa&p)>>2]=0}w=Jr(ca,H)|0;if((a[(x&n)>>0]|0)==0?((w|0)!=0?(c[(f+(C<<4)&p)+20>>2]|0)==0:0):0)v=(c[(w&p)+68>>2]|0)==(c[((c[(J&p)+16>>2]|0)&p)+28>>2]|0)?1:v;if((a[(h&n)>>0]|0)==0?(R=c[($&p)>>2]|0,aa=c[(ca&p)>>2]|0,c[(_&p)>>2]=ca,aa=c[(aa&p)+16>>2]|0,c[(_&p)+12>>2]=c[(aa+(v<<4)&p)>>2],c[(_&p)+4>>2]=c[(aa+(v<<4)&p)+12>>2],c[(_&p)+16>>2]=10720,c[(_&p)+20>>2]=R,c[(_&p)+8>>2]=(v|0)==1&1,(Kr(_,H)|0)==0):0){x=Jr(ca,H)|0;if(!x){if((a[(J&n)+144>>0]|0)!=1){s=0;t=0;break}a[(J&n)+146>>0]=1;s=0;t=0;break}if(a[(x&n)+44>>0]&16){th(ca,29712,ba);s=0;t=0;break}t=Wq(J,R)|0;if(t)if(!(Lr(ca,t)|0)){A=J+16|0;aa=bn((c[((c[(A&p)>>2]|0)+(v<<4)&p)+12>>2]|0)+40|0,t,S)|0;if((aa|0)!=0?(c[(aa&p)+8>>2]|0)!=0:0)if(!k){c[(ba&p)>>2]=R;th(ca,29760,ba);s=0;break}else{Ar(ca,v);s=0;break}y=c[(x&p)>>2]|0;if(!(Fc(y,25568,7)|0)){th(ca,29792,ba);s=ca+64|0;c[(s&p)>>2]=(c[(s&p)>>2]|0)+1;s=0;break}u=c[(x&p)+12>>2]|0;if((u|0)!=0&(r|0)!=49){c[(ba&p)>>2]=(r|0)==35?29872:29880;c[(ba&p)+4>>2]=H;c[(ba&p)+8>>2]=0;th(ca,29832,ba);s=0;break}q=(r|0)==49;if((u|0)==0&q){c[(ba&p)>>2]=H;c[(ba&p)+4>>2]=0;th(ca,29888,ba);s=0;break}m=x+68|0;x=c[(m&p)>>2]|0;i:do if(x){w=c[(J&p)+20>>2]|0;if((w|0)>0){k=c[(A&p)>>2]|0;l=0;while(1){h=l+1|0;if((c[(k+(l<<4)&p)+12>>2]|0)==(x|0)){h=l;break i}if((h|0)<(w|0))l=h;else break}}else h=0}else h=-1e6;while(0);x=c[(A&p)>>2]|0;k=c[(x+(h<<4)&p)>>2]|0;if(z)w=c[(x&p)+16>>2]|0;else w=k;x=(h|0)==1;if((Sq(ca,x|z?5:7,t,y,w)|0)==0?(Sq(ca,18,x?13184:13208,0,k)|0)==0:0){s=mh(J,36,0)|0;if(!s){s=0;break}y=s+0|0;k=y+36|0;do{a[(y&n)>>0]=0;y=y+1|0}while((y|0)<(k|0));c[(s&p)>>2]=t;c[(s&p)+4>>2]=kh(J,c[(H&p)+16>>2]|0)|0;c[(s&p)+20>>2]=c[((c[(A&p)>>2]|0)+(v<<4)&p)+12>>2];c[(s&p)+24>>2]=c[(m&p)>>2];a[(s&n)+8>>0]=B;a[(s&n)+9>>0]=q|(r|0)==35?1:2;c[(s&p)+12>>2]=Mr(J,I,1,0)|0;c[(s&p)+16>>2]=Nr(J,F)|0;c[(ca&p)+488>>2]=s;t=0}else s=0}else s=0;else{s=0;t=0}}else{s=0;t=0}}else{s=0;t=0}}while(0);mg(J,t);Do(J,H);Hk(J,F);Gk(J,I);if(!(c[(ca&p)+488>>2]|0))jg(J,s);if(!(c[(f+(C<<4)&p)+20>>2]|0)){aa=D;ba=c[(aa&p)+4>>2]|0;ca=ea;c[(ca&p)>>2]=c[(aa&p)>>2];c[(ca&p)+4>>2]=ba;break a}else{aa=E;ba=c[(aa&p)+4>>2]|0;ca=ea;c[(ca&p)>>2]=c[(aa&p)>>2];c[(ca&p)+4>>2]=ba;break a}}case 269:case 266:{c[(ea&p)>>2]=35;break}case 267:{c[(ea&p)>>2]=31;break}case 268:{c[(ea&p)>>2]=49;break}case 284:{l=c[(ca&p)>>2]|0;k=c[(f+(da+-1<<4)&p)+16>>2]|0;h=c[(f+(da<<4)&p)+16>>2]|0;m=a[(f+(da+-5<<4)&n)+16>>0]|0;q=Or(l,110,f+(da+-4<<4)+16|0)|0;if(q){c[(q&p)+24>>2]=Pr(l,k,1)|0;c[(q&p)+20>>2]=Mr(l,h,1,0)|0;a[(q&n)+1>>0]=m}Nk(l,k);Gk(l,h);c[(ea&p)>>2]=q;break}case 271:case 270:{c[(ea&p)>>2]=d[(f+(da<<4)&n)+14>>0];c[(ea&p)+4>>2]=0;break}case 272:{c[(ea&p)>>2]=110;c[(ea&p)+4>>2]=c[(f+(da<<4)&p)+16>>2];break}case 296:case 275:{c[(ea&p)>>2]=0;break}case 297:case 276:{c[(ea&p)>>2]=c[(f+(da<<4)&p)+16>>2];break}case 277:{ba=f+(da+-1<<4)+16|0;ca=f+(da+-2<<4)+16|0;c[((c[((c[(ca&p)>>2]|0)&p)+36>>2]|0)&p)+32>>2]=c[(ba&p)>>2];c[((c[(ca&p)>>2]|0)&p)+36>>2]=c[(ba&p)>>2];c[(ea&p)>>2]=c[(ca&p)>>2];break}case 278:{ca=f+(da+-1<<4)+16|0;ba=c[(ca&p)>>2]|0;c[(ba&p)+36>>2]=ba;c[(ea&p)>>2]=c[(ca&p)>>2];break}case 282:{th(ca,20736,ba);break}case 280:{_=f+(da<<4)+16|0;$=c[(_&p)+4>>2]|0;aa=ea;c[(aa&p)>>2]=c[(_&p)>>2];c[(aa&p)+4>>2]=$;th(ca,20640,ba);break}case 283:{th(ca,20824,ba);break}case 286:{h=c[(ca&p)>>2]|0;k=c[(f+(da<<4)&p)+16>>2]|0;l=Or(h,109,f+(da+-2<<4)+16|0)|0;if(l){c[(l&p)+20>>2]=Mr(h,k,1,0)|0;a[(l&n)+1>>0]=10}Gk(h,k);c[(ea&p)>>2]=l;break}case 287:{l=c[(ca&p)>>2]|0;q=c[(f+(da<<4)&p)+16>>2]|0;h=mh(l,40,0)|0;if(!h){Mk(l,q,1);h=0}else{y=h+0|0;k=y+40|0;do{a[(y&n)>>0]=0;y=y+1|0}while((y|0)<(k|0));a[(h&n)>>0]=119;c[(h&p)+8>>2]=q;a[(h&n)+1>>0]=10}c[(ea&p)>>2]=h;break}case 285:{q=c[(ca&p)>>2]|0;m=c[(f+(da+-1<<4)&p)+16>>2]|0;l=c[(f+(da<<4)&p)+16>>2]|0;k=a[(f+(da+-4<<4)&n)+16>>0]|0;h=Or(q,108,f+(da+-2<<4)+16|0)|0;if(!h)Hk(q,m);else{c[(h&p)+8>>2]=gr(q,l,1)|0;c[(h&p)+28>>2]=m;a[(h&n)+1>>0]=k}Mk(q,l,1);c[(ea&p)>>2]=h;break}case 288:{h=Zq(ca,57,0,0,0)|0;c[(ea&p)>>2]=h;if(h)a[(h&n)+1>>0]=4;c[(ea&p)+4>>2]=c[(f+(da+-3<<4)&p)+16>>2];c[(ea&p)+8>>2]=(c[(f+(da<<4)&p)+16>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0);break}case 289:{h=Zq(ca,57,0,0,f+(da+-1<<4)+16|0)|0;c[(ea&p)>>2]=h;if(h)a[(h&n)+1>>0]=c[(f+(da+-3<<4)&p)+16>>2];c[(ea&p)+4>>2]=c[(f+(da+-5<<4)&p)+16>>2];c[(ea&p)+8>>2]=(c[(f+(da<<4)&p)+16>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0);break}case 290:{c[(ea&p)>>2]=1;break}case 292:{c[(ea&p)>>2]=3;break}case 293:{k=c[(f+(da<<4)&p)+16>>2]|0;h=c[(f+(da+-1<<4)&p)+16>>2]|0;w=c[(ca&p)>>2]|0;do if((a[(w&n)+65>>0]|0)==0?(Gn(ca)|0)==0:0){x=c[(k&p)+12>>2]|0;v=c[(k&p)+16>>2]|0;u=w+20|0;if((c[(u&p)>>2]|0)>0){q=(x|0)==0;m=w+16|0;l=0;s=0;do{r=(l|0)<2^l;t=c[(m&p)>>2]|0;if(!(!q?(dd(c[(t+(r<<4)&p)>>2]|0,x)|0)!=0:0)){t=bn((c[(t+(r<<4)&p)+12>>2]|0)+40|0,v,L)|0;if(t){s=c[(t&p)+8>>2]|0;if(s)break}else s=0}l=l+1|0}while((l|0)<(c[(u&p)>>2]|0));if(s){Qr(ca,s);break}}if(!h){c[(ba&p)>>2]=k;c[(ba&p)+4>>2]=0;th(ca,29600,ba)}else zr(ca,x);a[(ca&n)+17>>0]=1}while(0);Do(w,k);break}case 294:{ba=c[(f+(da+-3<<4)&p)+16>>2]|0;Rr(ca,24,29360,ba,ba,c[(f+(da+-1<<4)&p)+16>>2]|0,c[(f+(da<<4)&p)+16>>2]|0);break}case 303:{Tr(ca,f+(da+-1<<4)+16|0,f+(da<<4)+16|0);break}case 304:{z=c[(f+(da+-3<<4)&p)+16>>2]|0;x=f+(da<<4)+16|0;y=c[(ca&p)>>2]|0;k=y+24|0;l=c[(k&p)>>2]|0;do if((a[(y&n)+65>>0]|0)==0?(X=Ur(ca,0,z+8|0)|0,(X|0)!=0):0){t=c[(ca&p)>>2]|0;A=X+68|0;v=c[(A&p)>>2]|0;j:do if(v){u=c[(t&p)+20>>2]|0;if((u|0)>0){t=c[(t&p)+16>>2]|0;r=0;while(1){s=r+1|0;if((c[(t+(r<<4)&p)+12>>2]|0)==(v|0)){s=r;break j}if((s|0)<(u|0))r=s;else break}}else s=0}else s=-1e6;while(0);h=c[((c[(y&p)+16>>2]|0)+(s<<4)&p)>>2]|0;c[(k&p)>>2]=c[(k&p)>>2]|2097152;q=Wq(y,x)|0;if(q){if((_h(y,q,h)|0)==0?(bq(y,q,h)|0)==0:0){if(Vr(ca,c[(X&p)>>2]|0)|0)break;if(Lr(ca,q)|0)break;t=c[(X&p)>>2]|0;if(c[(X&p)+12>>2]|0){c[(ba&p)>>2]=t;th(ca,26088,ba);break}if(Sq(ca,26,h,t,0)|0)break;if(hr(ca,X)|0)break;if(!(a[(X&n)+44>>0]&16))m=0;else{t=c[(X&p)+60>>2]|0;k:do if(!t)t=0;else while(1){if((c[(t&p)>>2]|0)==(y|0))break k;t=c[(t&p)+24>>2]|0;if(!t){t=0;break}}while(0);m=(c[((c[(c[(t&p)+8>>2]&p)>>2]|0)&p)+76>>2]|0)==0?0:t}t=Oq(ca)|0;if(!t)break;aa=(m|0)!=0;r=ca+408|0;$=c[(r&p)>>2]|0;$=($|0)==0?ca:$;Ar(ca,s);_=$+328|0;c[(_&p)>>2]=c[(_&p)>>2]|1<>0]=d[($&n)>>0]|aa&1;Dr(ca,s);if(aa){$=ca+72|0;aa=(c[($&p)>>2]|0)+1|0;c[($&p)>>2]=aa;xh(t,wh(t,97,0,aa,0)|0,q,0);xh(t,wh(t,152,aa,0,0)|0,m,-10);aa=c[(r&p)>>2]|0;a[(((aa|0)==0?ca:aa)&n)+21>>0]=1}x=c[(X&p)>>2]|0;w=Nn(x,-1)|0;do if((c[(k&p)>>2]&524288|0)!=0?(T=bn((c[(A&p)>>2]|0)+56|0,x,V)|0,(T|0)!=0):0){t=c[(T&p)+8>>2]|0;if(!t)break;r=t;t=0;do{t=Wr(c[(ca&p)>>2]|0,t,c[(c[(r&p)>>2]&p)>>2]|0)|0;r=c[(r&p)+12>>2]|0}while((r|0)!=0);if(!t)break;c[(ba&p)>>2]=h;c[(ba&p)+4>>2]=(s|0)==1?13184:13208;c[(ba&p)+8>>2]=x;c[(ba&p)+12>>2]=q;c[(ba&p)+16>>2]=t;Br(ca,26120,ba);mg(y,t)}while(0);c[(ba&p)>>2]=h;c[(ba&p)+4>>2]=(s|0)==1?13184:13208;c[(ba&p)+8>>2]=q;c[(ba&p)+12>>2]=q;c[(ba&p)+16>>2]=q;c[(ba&p)+20>>2]=q;c[(ba&p)+24>>2]=q;c[(ba&p)+28>>2]=w;c[(ba&p)+32>>2]=x;Br(ca,26192,ba);if(_h(y,26576,h)|0){aa=c[(X&p)>>2]|0;c[(ba&p)>>2]=h;c[(ba&p)+4>>2]=q;c[(ba&p)+8>>2]=aa;Br(ca,26592,ba)}s=Xr(ca,X)|0;if(s){c[(ba&p)>>2]=q;c[(ba&p)+4>>2]=q;c[(ba&p)+8>>2]=s;Br(ca,26656,ba);mg(y,s)}do if(c[(k&p)>>2]&524288){s=bn((c[(A&p)>>2]|0)+56|0,c[(X&p)>>2]|0,ba)|0;if(!s)break;s=c[(s&p)+8>>2]|0;if(!s)break;do{r=c[(s&p)>>2]|0;if((r|0)!=(X|0))Yr(ca,r,c[(r&p)>>2]|0);s=c[(s&p)+12>>2]|0}while((s|0)!=0)}while(0);Yr(ca,X,q);break}c[(ba&p)>>2]=q;th(ca,26024,ba)}else q=0}else q=0;while(0);Do(y,z);mg(y,q);c[(k&p)>>2]=l;break}case 295:{ba=c[(f+(da<<4)&p)+16>>2]|0;Rr(ca,25,29176,ba,0,0,ba);break}case 300:{Sr(ca,0,0);break}case 302:{Tr(ca,0,0);break}case 301:{Sr(ca,f+(da+-1<<4)+16|0,f+(da<<4)+16|0);break}case 305:{y=c[(ca&p)>>2]|0;if((c[(ca&p)+64>>2]|0)==0?(M=y+65|0,(a[(M&n)>>0]|0)==0):0){l=c[(ca&p)+484>>2]|0;t=c[(l&p)+68>>2]|0;l:do if(t){s=c[(y&p)+20>>2]|0;if((s|0)>0){r=c[(y&p)+16>>2]|0;m=0;while(1){q=m+1|0;if((c[(r+(m<<4)&p)+12>>2]|0)==(t|0)){A=m;break l}if((q|0)<(s|0))m=q;else{A=q;break}}}else A=0}else A=-1e6;while(0);h=c[((c[(y&p)+16>>2]|0)+(A<<4)&p)>>2]|0;k=(c[(l&p)>>2]|0)+16|0;u=(b[(l&o)+38>>1]|0)+-1|0;s=c[(l&p)+4>>2]|0;t=c[(s+(u*24|0)&p)+4>>2]|0;z=_h(y,k,h)|0;if(!(Sq(ca,26,h,c[(z&p)>>2]|0,0)|0)){if(!t)v=0;else v=(a[(t&n)>>0]|0)==101?0:t;if(a[(s+(u*24|0)&n)+23>>0]&1){th(ca,25608,ba);break a}if(c[(l&p)+8>>2]|0){th(ca,25640,ba);break a}x=y+24|0;if((c[(x&p)>>2]&524288|0)!=0?(c[(l&p)+16>>2]|0)!=0&(v|0)!=0:0){th(ca,25672,ba);break a}w=(v|0)!=0;if(!((a[(s+(u*24|0)&n)+20>>0]|0)==0|w)){th(ca,25736,ba);break a}do if(w){c[(O&p)>>2]=0;if(Zr(y,v,1,65,O)|0){a[(M&n)>>0]=1;break a}t=c[(O&p)>>2]|0;if(!t){th(ca,25792,ba);break a}else{Mh(t);break}}while(0);t=c[(f+(da<<4)&p)+16>>2]|0;s=f+(da<<4)+20|0;r=c[(s&p)>>2]|0;if((t|0)!=0?(U=jw(r|0,0,1,0)|0,U=mh(y,U,G)|0,(U|0)!=0):0){kw(U|0,t|0,r|0)|0;a[(U+r&n)>>0]=0;t=(c[(s&p)>>2]|0)+-1|0;s=c[(x&p)>>2]|0;m:do if((t|0)>0){t=U+t|0;do{$=a[(t&n)>>0]|0;if($<<24>>24!=59?(a[($&255&n)+10368>>0]&1)==0:0)break m;a[(t&n)>>0]=0;t=t+-1|0}while(t>>>0>U>>>0)}while(0);c[(x&p)>>2]=c[(x&p)>>2]|2097152;$=c[(l&p)+48>>2]|0;c[(ba&p)>>2]=h;c[(ba&p)+4>>2]=(A|0)==1?13184:13208;c[(ba&p)+8>>2]=$;c[(ba&p)+12>>2]=U;c[(ba&p)+16>>2]=$+1;c[(ba&p)+20>>2]=k;Br(ca,25840,ba);mg(y,U);c[(x&p)>>2]=s}t=w?3:2;v=Oq(ca)|0;if(v){s=ca+19|0;q=a[(s&n)>>0]|0;do if(q<<24>>24){ba=q+-1<<24>>24;a[(s&n)>>0]=ba;r=c[(ca+((ba&255)<<2)&p)+24>>2]|0;if(!(ba<<24>>24)){s=c[(ca&p)+72>>2]|0;aa=663;break}else{k=q+-2<<24>>24;a[(s&n)>>0]=k;k=c[(ca+((k&255)<<2)&p)+24>>2]|0;break}}else{r=ca+72|0;s=(c[(r&p)>>2]|0)+1|0;c[(r&p)>>2]=s;r=s;aa=663}while(0);if((aa|0)==663){k=s+1|0;c[(ca&p)+72>>2]=k}wh(v,51,A,r,2)|0;m=v+96|0;c[(m&p)>>2]=c[(m&p)>>2]|1<>2]|0;s=v+32|0;if(q)a[(q+(((c[(s&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=-112;wh(v,52,A,2,k)|0;s=c[(s&p)>>2]|0;if(s>>>0>m>>>0)c[((c[(l&p)>>2]|0)+(m*20|0)&p)+8>>2]=s;c[((c[(v&p)+24>>2]|0)&p)+88>>2]=s+-1;_r(ca,r);_r(ca,k)}Yr(ca,z,c[(z&p)>>2]|0)}}break}case 306:{w=c[(ca&p)>>2]|0;a[(w&n)+250>>0]=0;h=c[(f+(da<<4)&p)+16>>2]|0;x=w+65|0;do if((a[(x&n)>>0]|0)==0?(Q=Ur(ca,0,h+8|0)|0,(Q|0)!=0):0){if(a[(Q&n)+44>>0]&16){th(ca,25400,ba);break}if(c[(Q&p)+12>>2]|0){th(ca,25440,ba);break}if(!(Vr(ca,c[(Q&p)>>2]|0)|0)){s=c[(Q&p)+68>>2]|0;n:do if(s){r=c[(w&p)+20>>2]|0;if((r|0)>0){q=c[(w&p)+16>>2]|0;t=0;while(1){m=t+1|0;if((c[(q+(t<<4)&p)+12>>2]|0)==(s|0)){m=t;break n}if((m|0)<(r|0))t=m;else break}}else m=0}else m=-1e6;while(0);v=mh(w,76,0)|0;if(v){y=v+0|0;k=y+76|0;do{a[(y&n)>>0]=0;y=y+1|0}while((y|0)<(k|0));c[(ca&p)+484>>2]=v;r=v+40|0;b[(r&o)>>1]=1;t=b[(Q&o)+38>>1]|0;q=v+38|0;b[(q&o)>>1]=t;t=((((t<<16>>16)+-1|0)/8|0)*192|0)+192|0;s=mh(w,t,0)|0;if(s)fw(s|0,0,t|0)|0;t=v+4|0;c[(t&p)>>2]=s;c[(ba&p)>>2]=c[(Q&p)>>2];ba=uh(w,25472,ba)|0;c[(v&p)>>2]=ba;s=c[(t&p)>>2]|0;if((s|0)==0|(ba|0)==0){a[(x&n)>>0]=1;break}kw(s|0,c[(Q&p)+4>>2]|0,(b[(q&o)>>1]|0)*24|0)|0;if((b[(q&o)>>1]|0)>0){s=0;do{ba=c[(t&p)>>2]|0;aa=ba+(s*24|0)|0;c[(aa&p)>>2]=kh(w,c[(aa&p)>>2]|0)|0;ba=ba+(s*24|0)+4|0;s=s+1|0;c[(ba&p)>>2]=0;c[(ba&p)+4>>2]=0;c[(ba&p)+8>>2]=0;c[(ba&p)+12>>2]=0}while((s|0)<(b[(q&o)>>1]|0))}c[(v&p)+68>>2]=c[((c[(w&p)+16>>2]|0)+(m<<4)&p)+12>>2];c[(v&p)+48>>2]=c[(Q&p)+48>>2];b[(r&o)>>1]=1;ba=c[(ca&p)+408>>2]|0;Ar(ca,m);ba=((ba|0)==0?ca:ba)+328|0;c[(ba&p)>>2]=c[(ba&p)>>2]|1<>2]|0);t=c[(ca&p)+484>>2]|0;if(t){h=c[(ca&p)>>2]|0;s=c[(t&p)+68>>2]|0;o:do if(s){r=c[(h&p)+20>>2]|0;if((r|0)>0){m=c[(h&p)+16>>2]|0;l=0;while(1){q=l+1|0;if((c[(m+(l<<4)&p)+12>>2]|0)==(s|0)){q=l;break o}if((q|0)<(r|0))l=q;else break}}else q=0}else q=-1e6;while(0);l=t+44|0;a[(l&n)>>0]=d[(l&n)>>0]|16;c[(t&p)+52>>2]=0;as(h,t,Wq(h,k)|0);as(h,t,0);as(h,t,kh(h,c[(t&p)>>2]|0)|0);c[(ca&p)+500>>2]=(c[(k&p)>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0)-(c[(ca&p)+496>>2]|0);l=c[(t&p)+56>>2]|0;if(l)Sq(ca,29,c[(t&p)>>2]|0,c[(l&p)>>2]|0,c[((c[((c[(ca&p)>>2]|0)&p)+16>>2]|0)+(q<<4)&p)>>2]|0)|0}break}case 322:{c[(ea&p)>>2]=0;break}case 324:case 323:{c[(ea&p)>>2]=c[(f+(da<<4)&p)+16>>2];break}case 325:{c[(ea&p)>>2]=cs(ca,0,f+(da+-5<<4)+16|0,c[(f+(da+-4<<4)&p)+16>>2]|0,c[(f+(da+-1<<4)&p)+16>>2]|0)|0;break}case 326:{c[(ea&p)>>2]=cs(ca,c[(f+(da+-7<<4)&p)+16>>2]|0,f+(da+-5<<4)+16|0,c[(f+(da+-4<<4)&p)+16>>2]|0,c[(f+(da+-1<<4)&p)+16>>2]|0)|0;break}case 314:{bs(ca);c[(ca&p)+512>>2]=0;c[(ca&p)+516>>2]=0;break}case 318:case 317:case 316:{l=ca+512|0;k=c[(l&p)>>2]|0;h=c[(f+(da<<4)&p)+16>>2]|0;if(!k){c[(l&p)>>2]=h;h=c[(f+(da<<4)&p)+20>>2]|0}else h=h+(c[(f+(da<<4)&p)+20>>2]|0)-k|0;c[(ca&p)+516>>2]=h;break}case 77:{c[(ea&p)>>2]=8;break}case 78:{c[(ea&p)>>2]=9;break}case 79:{c[(ea&p)>>2]=6;break}case 80:{c[(ea&p)>>2]=0;break}case 103:case 100:case 98:case 82:{c[(ea&p)>>2]=c[(f+(da<<4)&p)+16>>2];break}case 86:{c[(ea&p)+4>>2]=0;c[(ea&p)>>2]=0;break}case 87:{aa=f+(da+-1<<4)+16|0;ba=c[(aa&p)+4>>2]|0;ca=ea;c[(ca&p)>>2]=c[(aa&p)>>2];c[(ca&p)+4>>2]=ba;break}case 90:{c[(ca&p)+324>>2]=0;break}case 109:{h=da+-7|0;r=f+(da+-3<<4)+16|0;q=f+(da+-2<<4)+16|0;x=c[(f+(da<<4)&p)+16>>2]|0;t=c[(f+(da+-6<<4)&p)+16>>2]|0;s=c[(f+(da+-4<<4)&p)+16>>2]|0;c[(I&p)>>2]=0;w=c[(ca&p)>>2]|0;if((c[(ca&p)+440>>2]|0)>0){th(ca,35440,ba);Mk(w,x,1);break a}Uq(ca,r,q,t,1,0,s);l=c[(ca&p)+484>>2]|0;if((l|0)!=0?(c[(ca&p)+64>>2]|0)==0:0){er(ca,r,q,I)|0;t=c[(l&p)+68>>2]|0;p:do if(t){r=c[(w&p)+20>>2]|0;if((r|0)>0){q=c[(w&p)+16>>2]|0;m=0;while(1){s=m+1|0;if((c[(q+(m<<4)&p)+12>>2]|0)==(t|0)){s=m;break p}if((s|0)<(r|0))m=s;else break}}else s=0}else s=-1e6;while(0);ba=c[(I&p)>>2]|0;aa=c[(ca&p)>>2]|0;c[(_&p)>>2]=ca;aa=c[(aa&p)+16>>2]|0;c[(_&p)+12>>2]=c[(aa+(s<<4)&p)>>2];c[(_&p)+4>>2]=c[(aa+(s<<4)&p)+12>>2];c[(_&p)+16>>2]=35480;c[(_&p)+20>>2]=ba;c[(_&p)+8>>2]=(s|0)==1&1;if(fr(_,x)|0){Mk(w,x,1);break a}c[(l&p)+12>>2]=gr(w,x,1)|0;Mk(w,x,1);if(a[(w&n)+65>>0]|0)break a;if(!(a[(w&n)+145>>0]|0))hr(ca,l)|0;q=ca+504|0;m=c[(q&p)>>2]|0;q=c[(q&p)+4>>2]|0;ba=$;c[(ba&p)>>2]=m;c[(ba&p)+4>>2]=q;ba=a[(m&n)>>0]|0;if(!(ba<<24>>24==59|ba<<24>>24==0)){m=m+q|0;c[($&p)>>2]=m}r=$+4|0;c[(r&p)>>2]=0;s=c[(f+(h<<4)&p)+16>>2]|0;q=m-s|0;do{ba=q;q=q+-1|0;l=s+q|0;if((ba|0)<=0)break}while((a[((d[(l&n)>>0]|0)&n)+10368>>0]&1)!=0);c[($&p)>>2]=l;c[(r&p)>>2]=1;Vq(ca,0,$,0,0);break a}Mk(w,x,1);break}case 93:{_q(ca,c[(f+(da+-3<<4)&p)+16>>2]|0,c[(f+(da<<4)&p)+16>>2]|0,c[(f+(da+-2<<4)&p)+16>>2]|0,0);break}case 94:{$q(ca,0,0,0,c[(f+(da+-2<<4)&p)+16>>2]|0,c[(f+(da<<4)&p)+16>>2]|0,0,0,0,0)|0;break}case 95:{ar(ca,c[(f+(da+-2<<4)&p)+16>>2]|0);break}case 96:{br(ca,c[(f+(da+-6<<4)&p)+16>>2]|0,f+(da+-3<<4)+16|0,c[(f+(da+-2<<4)&p)+16>>2]|0,c[(f+(da+-1<<4)&p)+16>>2]|0);k=c[(f+(da<<4)&p)+16>>2]|0;l=c[(ca&p)+484>>2]|0;if((l|0)!=0?(q=c[(l&p)+16>>2]|0,(q|0)!=0):0)a[(q&n)+24>>0]=k;break}case 99:{c[(ea&p)>>2]=10;break}case 101:{a[(ea&n)>>0]=10;break}case 102:{a[(ea&n)>>0]=c[(f+(da<<4)&p)+16>>2];break}case 104:{c[(ea&p)>>2]=4;break}case 105:{c[(ea&p)>>2]=5;break}case 106:{dr(ca,c[(f+(da<<4)&p)+16>>2]|0,0,c[(f+(da+-1<<4)&p)+16>>2]|0);break}case 110:{dr(ca,c[(f+(da<<4)&p)+16>>2]|0,1,c[(f+(da+-1<<4)&p)+16>>2]|0);break}case 111:{c[(z&p)>>2]=c[5124];c[(z&p)+4>>2]=c[5125];c[(z&p)+8>>2]=c[5126];c[(z&p)+12>>2]=c[5127];c[(z&p)+16>>2]=c[5128];ba=f+(da<<4)+16|0;ir(ca,c[(ba&p)>>2]|0,z)|0;Mk(c[(ca&p)>>2]|0,c[(ba&p)>>2]|0,1);break}case 112:{t=c[(f+(da<<4)&p)+16>>2]|0;do if(t){c[(t&p)+68>>2]=c[(f+(da+-1<<4)&p)+16>>2];l=c[(t&p)+52>>2]|0;if(l){m=128;q=1;r=t;s=0;while(1){c[(r&p)+56>>2]=s;$=r+6|0;aa=e[($&o)>>1]|64;b[($&o)>>1]=aa;m=aa&m;if(!l)break;aa=l;l=c[(l&p)+52>>2]|0;q=q+1|0;s=r;r=aa}if(m){ca=t+6|0;b[(ca&o)>>1]=e[(ca&o)>>1]|256;break}aa=c[((c[(ca&p)>>2]|0)&p)+104>>2]|0;if((aa|0)>0&(q|0)>(aa|0))th(ca,20520,ba)}}else Qn(c[(ca&p)>>2]|0,c[(f+(da+-1<<4)&p)+16>>2]|0);while(0);c[(ea&p)>>2]=t;break}case 116:{c[(ea&p)>>2]=116;break}case 119:case 113:{c[(ea&p)>>2]=c[(f+(da<<4)&p)+16>>2];break}case 114:{h=c[(f+(da<<4)&p)+16>>2]|0;do if(h){if(c[(h&p)+52>>2]|0){c[(l&p)+4>>2]=0;h=kr(ca,0,jr(ca,0,0,0,l,h,0,0)|0,0,0,0,0,0,0,0)|0;if(!h){aa=192;break}}ba=c[(f+(da+-1<<4)&p)+16>>2]|0;a[(h&n)+4>>0]=ba;c[(h&p)+52>>2]=c[(f+(da+-2<<4)&p)+16>>2];if((ba|0)!=116)a[(ca&n)+22>>0]=1}else aa=192;while(0);if((aa|0)==192){Mk(c[(ca&p)>>2]|0,c[(f+(da+-2<<4)&p)+16>>2]|0,1);h=0}c[(ea&p)>>2]=h;break}case 121:{h=kr(ca,c[(f+(da+-1<<4)&p)+16>>2]|0,0,0,0,0,0,128,0,0)|0;if(!h){c[(ea&p)>>2]=c[(f+(da+-4<<4)&p)+16>>2];break a}else{a[(h&n)+4>>0]=116;c[(h&p)+52>>2]=c[(f+(da+-4<<4)&p)+16>>2];c[(ea&p)>>2]=h;break a}}case 122:{b[(ea&o)>>1]=1;break}case 124:case 123:{b[(ea&o)>>1]=0;break}case 242:case 236:case 161:case 154:case 126:{c[(ea&p)>>2]=0;break}case 243:case 125:{c[(ea&p)>>2]=c[(f+(da+-1<<4)&p)+16>>2];break}case 167:{c[(ea&p)>>2]=c[(f+(da+-2<<4)&p)+16>>2];c[(ea&p)+4>>2]=c[(f+(da<<4)&p)+16>>2];break}case 168:{c[(ea&p)+4>>2]=c[(f+(da+-2<<4)&p)+16>>2];c[(ea&p)>>2]=c[(f+(da<<4)&p)+16>>2];break}case 169:{h=c[(f+(da+-5<<4)&p)+16>>2]|0;if(h){ba=ca+532|0;c[(h&p)+4>>2]=c[(ba&p)>>2];c[(ba&p)>>2]=h;a[(ca&n)+449>>0]=1}ba=f+(da+-2<<4)+16|0;or(ca,c[(ba&p)>>2]|0,f+(da+-1<<4)+16|0);rr(ca,c[(ba&p)>>2]|0,c[(f+(da<<4)&p)+16>>2]|0);break}case 176:{h=c[(f+(da+-6<<4)&p)+16>>2]|0;if(h){ba=ca+532|0;c[(h&p)+4>>2]=c[(ba&p)>>2];c[(ba&p)>>2]=h;a[(ca&n)+449>>0]=1}tr(ca,c[(f+(da+-3<<4)&p)+16>>2]|0,0,c[(f+(da+-2<<4)&p)+16>>2]|0,d[(f+(da+-5<<4)&n)+16>>0]|0);break}case 173:{ba=lr(ca,c[(f+(da+-4<<4)&p)+16>>2]|0,c[(f+(da<<4)&p)+16>>2]|0)|0;c[(ea&p)>>2]=ba;mr(ca,ba,f+(da+-2<<4)+16|0,1);break}case 174:{ba=lr(ca,0,c[(f+(da<<4)&p)+16>>2]|0)|0;c[(ea&p)>>2]=ba;mr(ca,ba,f+(da+-2<<4)+16|0,1);break}case 175:{h=c[(f+(da+-5<<4)&p)+16>>2]|0;if(h){ba=ca+532|0;c[(h&p)+4>>2]=c[(ba&p)>>2];c[(ba&p)>>2]=h;a[(ca&n)+449>>0]=1}tr(ca,c[(f+(da+-2<<4)&p)+16>>2]|0,c[(f+(da<<4)&p)+16>>2]|0,c[(f+(da+-1<<4)&p)+16>>2]|0,d[(f+(da+-4<<4)&n)+16>>0]|0);break}case 181:{c[(ea&p)>>2]=ur(c[(ca&p)>>2]|0,c[(f+(da+-2<<4)&p)+16>>2]|0,f+(da<<4)+16|0)|0;break}case 182:{c[(ea&p)>>2]=ur(c[(ca&p)>>2]|0,0,f+(da<<4)+16|0)|0;break}case 183:{ca=f+(da<<4)+16|0;c[(ea&p)>>2]=c[(ca&p)>>2];c[(ea&p)+4>>2]=c[(ca&p)+4>>2];c[(ea&p)+8>>2]=c[(ca&p)+8>>2];break}case 177:{a[(ea&n)>>0]=a[(f+(da<<4)&n)+16>>0]|0;break}case 178:{a[(ea&n)>>0]=5;break}case 184:{c[(ea&p)>>2]=c[(f+(da+-1<<4)&p)+16>>2];c[(ea&p)+4>>2]=c[(f+(da+-2<<4)&p)+16>>2];c[(ea&p)+8>>2]=(c[(f+(da<<4)&p)+16>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0);break}case 191:case 190:case 185:{ba=f+(da<<4)+16|0;c[(ea&p)>>2]=Zq(ca,d[(f+(da<<4)&n)+14>>0]|0,0,0,ba)|0;ca=c[(ba&p)>>2]|0;c[(ea&p)+4>>2]=ca;c[(ea&p)+8>>2]=ca+(c[(f+(da<<4)&p)+20>>2]|0);break}case 187:case 186:{ba=f+(da<<4)+16|0;c[(ea&p)>>2]=Zq(ca,27,0,0,ba)|0;ca=c[(ba&p)>>2]|0;c[(ea&p)+4>>2]=ca;c[(ea&p)+8>>2]=ca+(c[(f+(da<<4)&p)+20>>2]|0);break}case 188:{aa=f+(da+-2<<4)+16|0;ba=f+(da<<4)+16|0;c[(ea&p)>>2]=Zq(ca,122,Zq(ca,27,0,0,aa)|0,Zq(ca,27,0,0,ba)|0,0)|0;c[(ea&p)+4>>2]=c[(aa&p)>>2];c[(ea&p)+8>>2]=(c[(ba&p)>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0);break}case 189:{aa=f+(da+-4<<4)+16|0;ba=f+(da<<4)+16|0;c[(ea&p)>>2]=Zq(ca,122,Zq(ca,27,0,0,aa)|0,Zq(ca,122,Zq(ca,27,0,0,f+(da+-2<<4)+16|0)|0,Zq(ca,27,0,0,ba)|0,0)|0,0)|0;c[(ea&p)+4>>2]=c[(aa&p)>>2];c[(ea&p)+8>>2]=(c[(ba&p)>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0);break}case 192:{x=f+(da<<4)+16|0;w=f+(da<<4)+20|0;do if(((c[(w&p)>>2]|0)>>>0>1?(C=c[(x&p)>>2]|0,(a[(C&n)>>0]|0)==35):0)?((d[(C&n)+1>>0]|0)+-48|0)>>>0<10:0){if(!(a[(ca&n)+18>>0]|0)){c[(ba&p)>>2]=x;th(ca,20432,ba);c[(ea&p)>>2]=0;break}r=Zq(ca,159,0,0,x)|0;c[(ea&p)>>2]=r;if(r)Dn((c[(x&p)>>2]|0)+1|0,r+28|0)|0}else aa=298;while(0);q:do if((aa|0)==298?(P=Zq(ca,135,0,0,x)|0,c[(ea&p)>>2]=P,W=c[(x&p)>>2]|0,c[(ea&p)+4>>2]=W,c[(ea&p)+8>>2]=W+(c[(w&p)>>2]|0),W=c[(ca&p)>>2]|0,(P|0)!=0):0){z=c[(P&p)+8>>2]|0;r=z+1|0;do if(a[(r&n)>>0]|0){y=(z|0)==0;if(y)A=0;else{t=z;while(1)if(!(a[(t&n)>>0]|0))break;else t=t+1|0;A=t-z&1073741823}r:do if((a[(z&n)>>0]|0)==63){$=Ul(r,H,A+-1|0,1)|0;m=H;q=c[(m&p)>>2]|0;m=c[(m&p)+4>>2]|0;t=q&65535;b[(P&o)+32>>1]=t;r=c[(W&p)+124>>2]|0;aa=((r|0)<0)<<31>>31;if((m|0)<0|(m|0)==0&q>>>0<1|($|0)!=0|((m|0)>(aa|0)|(m|0)==(aa|0)&q>>>0>r>>>0)){c[(ba&p)>>2]=r;th(ca,33296,ba);t=0}r=ca+440|0;aa=c[(r&p)>>2]|0;$=((aa|0)<0)<<31>>31;if((m|0)>($|0)|(m|0)==($|0)&q>>>0>aa>>>0)c[(r&p)>>2]=q}else{r=c[(ca&p)+444>>2]|0;s:do if((r|0)>0){q=c[(ca&p)+472>>2]|0;t=0;l=0;while(1){m=c[(q+(t<<2)&p)>>2]|0;if((m|0)!=0?(_v(m,z)|0)==0:0)break;l=l+1<<16>>16;t=l<<16>>16;if((t|0)>=(r|0)){aa=315;break s}}t=t+1&65535;r=P+32|0;b[(r&o)>>1]=t;if(t<<16>>16)break r}else aa=315;while(0);if((aa|0)==315)r=P+32|0;aa=ca+440|0;t=(c[(aa&p)>>2]|0)+1|0;c[(aa&p)>>2]=t;t=t&65535;b[(r&o)>>1]=t}while(0);m=t<<16>>16;if(t<<16>>16>0){t=ca+444|0;if((m|0)>(c[(t&p)>>2]|0)){r=ca+472|0;q=ro(W,c[(r&p)>>2]|0,m<<2,0)|0;if(!q)break q;c[(r&p)>>2]=q;aa=c[(t&p)>>2]|0;fw(q+(aa<<2)|0,0,m-aa<<2|0)|0;c[(t&p)>>2]=m}if((a[(z&n)>>0]|0)==63){r=m+-1|0;if(!(c[((c[(ca&p)+472>>2]|0)+(r<<2)&p)>>2]|0))t=0;else break}else{t=m+-1|0;r=t;t=c[((c[(ca&p)+472>>2]|0)+(t<<2)&p)>>2]|0}q=ca+472|0;mg(W,t);if(!y?(s=jw(A|0,0,1,0)|0,s=mh(W,s,G)|0,(s|0)!=0):0){kw(s|0,z|0,A|0)|0;a[(s+A&n)>>0]=0}else s=0;c[((c[(q&p)>>2]|0)+(r<<2)&p)>>2]=s}}else{$=ca+440|0;aa=(c[($&p)>>2]|0)+1|0;c[($&p)>>2]=aa;b[(P&o)+32>>1]=aa}while(0);if((c[(ca&p)+64>>2]|0)==0?(c[(ca&p)+440>>2]|0)>(c[(W&p)+124>>2]|0):0)th(ca,33344,ba)}while(0);ca=c[(x&p)>>2]|0;c[(ea&p)+4>>2]=ca;c[(ea&p)+8>>2]=ca+(c[(w&p)>>2]|0);break}case 196:{ba=f+(da+-3<<4)+16|0;c[(ea&p)>>2]=wr(ca,0,ba)|0;c[(ea&p)+4>>2]=c[(ba&p)>>2];c[(ea&p)+8>>2]=(c[(f+(da<<4)&p)+16>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0);break}case 197:{ba=f+(da<<4)+16|0;c[(ea&p)>>2]=wr(ca,0,ba)|0;ca=c[(ba&p)>>2]|0;c[(ea&p)+4>>2]=ca;c[(ea&p)+8>>2]=ca+(c[(f+(da<<4)&p)+20>>2]|0);break}case 193:{aa=da+-2|0;ba=f+(da<<4)+16|0;c[(ea&p)>>2]=vr(ca,c[(f+(aa<<4)&p)+16>>2]|0,ba,1)|0;c[(ea&p)+4>>2]=c[(f+(aa<<4)&p)+20>>2];c[(ea&p)+8>>2]=(c[(ba&p)>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0);break}case 194:{c[(ea&p)>>2]=Zq(ca,38,c[(f+(da+-3<<4)&p)+16>>2]|0,0,f+(da+-1<<4)+16|0)|0;c[(ea&p)+4>>2]=c[(f+(da+-5<<4)&p)+16>>2];c[(ea&p)+8>>2]=(c[(f+(da<<4)&p)+16>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0);break}case 195:{l=f+(da+-1<<4)+16|0;h=c[(l&p)>>2]|0;if(h){if((c[(h&p)>>2]|0)>(c[((c[(ca&p)>>2]|0)&p)+112>>2]|0)){c[(ba&p)>>2]=f+(da+-4<<4)+16;th(ca,20576,ba);h=c[(l&p)>>2]|0}}else h=0;ba=f+(da+-4<<4)+16|0;h=wr(ca,h,ba)|0;c[(ea&p)>>2]=h;c[(ea&p)+4>>2]=c[(ba&p)>>2];c[(ea&p)+8>>2]=(c[(f+(da<<4)&p)+16>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0);if(!((h|0)==0?1:(b[(f+(da+-2<<4)&o)+16>>1]|0)==0)){ca=h+4|0;c[(ca&p)>>2]=c[(ca&p)>>2]|16}break}case 205:case 204:case 203:case 202:case 201:case 200:case 199:case 198:{ba=da+-2|0;c[(ea&p)>>2]=Zq(ca,d[(f+(da+-1<<4)&n)+14>>0]|0,c[(f+(ba<<4)&p)+16>>2]|0,c[(f+(da<<4)&p)+16>>2]|0,0)|0;c[(ea&p)+4>>2]=c[(f+(ba<<4)&p)+20>>2];c[(ea&p)+8>>2]=c[(f+(da<<4)&p)+24>>2];break}case 206:{aa=f+(da<<4)+16|0;ba=c[(aa&p)+4>>2]|0;ca=ea;c[(ca&p)>>2]=c[(aa&p)>>2];c[(ca&p)+4>>2]=ba;c[(ea&p)+8>>2]=0;break}case 207:{aa=f+(da<<4)+16|0;ba=c[(aa&p)+4>>2]|0;ca=ea;c[(ca&p)>>2]=c[(aa&p)>>2];c[(ca&p)+4>>2]=ba;c[(ea&p)+8>>2]=1;break}case 208:{l=da+-2|0;ba=da+-1|0;h=wr(ca,lr(ca,lr(ca,0,c[(f+(da<<4)&p)+16>>2]|0)|0,c[(f+(l<<4)&p)+16>>2]|0)|0,f+(ba<<4)+16|0)|0;c[(ea&p)>>2]=h;if(c[(f+(ba<<4)&p)+24>>2]|0){h=Zq(ca,19,h,0,0)|0;c[(ea&p)>>2]=h}c[(ea&p)+4>>2]=c[(f+(l<<4)&p)+20>>2];c[(ea&p)+8>>2]=c[(f+(da<<4)&p)+24>>2];if(h){ca=h+4|0;c[(ca&p)>>2]=c[(ca&p)>>2]|128}break}case 210:{ba=da+-1|0;c[(ea&p)>>2]=Zq(ca,d[(f+(da<<4)&n)+14>>0]|0,c[(f+(ba<<4)&p)+16>>2]|0,0,0)|0;c[(ea&p)+4>>2]=c[(f+(ba<<4)&p)+20>>2];c[(ea&p)+8>>2]=(c[(f+(da<<4)&p)+16>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0);break}case 209:{l=da+-4|0;ba=da+-3|0;h=wr(ca,lr(ca,lr(ca,lr(ca,0,c[(f+(da+-2<<4)&p)+16>>2]|0)|0,c[(f+(l<<4)&p)+16>>2]|0)|0,c[(f+(da<<4)&p)+16>>2]|0)|0,f+(ba<<4)+16|0)|0;c[(ea&p)>>2]=h;if(c[(f+(ba<<4)&p)+24>>2]|0){h=Zq(ca,19,h,0,0)|0;c[(ea&p)>>2]=h}c[(ea&p)+4>>2]=c[(f+(l<<4)&p)+20>>2];c[(ea&p)+8>>2]=c[(f+(da<<4)&p)+24>>2];if(h){ca=h+4|0;c[(ca&p)>>2]=c[(ca&p)>>2]|128}break}case 223:{l=f+(da+-1<<4)+16|0;h=c[(l&p)>>2]|0;do if(h){if((c[(h&p)>>2]|0)==1){ba=c[(h&p)+4>>2]|0;h=c[(ba&p)>>2]|0;c[(ba&p)>>2]=0;Nk(c[(ca&p)>>2]|0,c[(l&p)>>2]|0);if(h){ba=h+4|0;c[(ba&p)>>2]=c[(ba&p)>>2]&-769|512}c[(ea&p)>>2]=Zq(ca,(c[(f+(da+-3<<4)&p)+16>>2]|0)!=0?78:79,c[(f+(da+-4<<4)&p)+16>>2]|0,h,0)|0;break}h=Zq(ca,75,c[(f+(da+-4<<4)&p)+16>>2]|0,0,0)|0;c[(ea&p)>>2]=h;if(!h){Nk(c[(ca&p)>>2]|0,c[(l&p)>>2]|0);h=0}else{c[(h&p)+20>>2]=c[(l&p)>>2];h=c[(ea&p)>>2]|0;yr(ca,h)}if(c[(f+(da+-3<<4)&p)+16>>2]|0)c[(ea&p)>>2]=Zq(ca,19,h,0,0)|0}else{c[(ea&p)>>2]=Zq(ca,132,0,0,20616+(c[(f+(da+-3<<4)&p)+16>>2]<<3)|0)|0;Gk(c[(ca&p)>>2]|0,c[(f+(da+-4<<4)&p)+16>>2]|0)}while(0);c[(ea&p)+4>>2]=c[(f+(da+-4<<4)&p)+20>>2];c[(ea&p)+8>>2]=(c[(f+(da<<4)&p)+16>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0);break}case 211:{ba=da+-2|0;c[(ea&p)>>2]=Zq(ca,77,c[(f+(ba<<4)&p)+16>>2]|0,0,0)|0;c[(ea&p)+4>>2]=c[(f+(ba<<4)&p)+20>>2];c[(ea&p)+8>>2]=(c[(f+(da<<4)&p)+16>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0);break}case 212:{$=da+-2|0;aa=f+(da<<4)+16|0;ba=Zq(ca,73,c[(f+($<<4)&p)+16>>2]|0,c[(aa&p)>>2]|0,0)|0;c[(ea&p)>>2]=ba;c[(ea&p)+4>>2]=c[(f+($<<4)&p)+20>>2];c[(ea&p)+8>>2]=c[(f+(da<<4)&p)+24>>2];xr(ca,c[(aa&p)>>2]|0,ba,76);break}case 213:{$=da+-3|0;aa=f+(da<<4)+16|0;ba=Zq(ca,148,c[(f+($<<4)&p)+16>>2]|0,c[(aa&p)>>2]|0,0)|0;c[(ea&p)>>2]=ba;c[(ea&p)+4>>2]=c[(f+($<<4)&p)+20>>2];c[(ea&p)+8>>2]=c[(f+(da<<4)&p)+24>>2];xr(ca,c[(aa&p)>>2]|0,ba,77);break}case 215:case 214:{ba=da+-1|0;c[(ea&p)>>2]=Zq(ca,d[(f+(ba<<4)&n)+14>>0]|0,c[(f+(da<<4)&p)+16>>2]|0,0,0)|0;c[(ea&p)+4>>2]=c[(f+(ba<<4)&p)+16>>2];c[(ea&p)+8>>2]=c[(f+(da<<4)&p)+24>>2];break}case 216:{c[(ea&p)>>2]=Zq(ca,157,c[(f+(da<<4)&p)+16>>2]|0,0,0)|0;c[(ea&p)+4>>2]=c[(f+(da+-1<<4)&p)+16>>2];c[(ea&p)+8>>2]=c[(f+(da<<4)&p)+24>>2];break}case 217:{c[(ea&p)>>2]=Zq(ca,158,c[(f+(da<<4)&p)+16>>2]|0,0,0)|0;c[(ea&p)+4>>2]=c[(f+(da+-1<<4)&p)+16>>2];c[(ea&p)+8>>2]=c[(f+(da<<4)&p)+24>>2];break}case 220:{k=lr(ca,lr(ca,0,c[(f+(da+-2<<4)&p)+16>>2]|0)|0,c[(f+(da<<4)&p)+16>>2]|0)|0;l=da+-4|0;h=Zq(ca,74,c[(f+(l<<4)&p)+16>>2]|0,0,0)|0;c[(ea&p)>>2]=h;if(!h)Nk(c[(ca&p)>>2]|0,k);else c[(h&p)+20>>2]=k;if(c[(f+(da+-3<<4)&p)+16>>2]|0)c[(ea&p)>>2]=Zq(ca,19,c[(ea&p)>>2]|0,0,0)|0;c[(ea&p)+4>>2]=c[(f+(l<<4)&p)+20>>2];c[(ea&p)+8>>2]=c[(f+(da<<4)&p)+24>>2];break}case 224:{h=Zq(ca,119,0,0,0)|0;c[(ea&p)>>2]=h;if(!h)Mk(c[(ca&p)>>2]|0,c[(f+(da+-1<<4)&p)+16>>2]|0,1);else{c[(h&p)+20>>2]=c[(f+(da+-1<<4)&p)+16>>2];ba=c[(ea&p)>>2]|0;aa=ba+4|0;c[(aa&p)>>2]=c[(aa&p)>>2]|2099200;yr(ca,ba)}c[(ea&p)+4>>2]=c[(f+(da+-2<<4)&p)+16>>2];c[(ea&p)+8>>2]=(c[(f+(da<<4)&p)+16>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0);break}case 118:{c[(ea&p)>>2]=kr(ca,c[(f+(da+-6<<4)&p)+16>>2]|0,c[(f+(da+-5<<4)&p)+16>>2]|0,c[(f+(da+-4<<4)&p)+16>>2]|0,c[(f+(da+-3<<4)&p)+16>>2]|0,c[(f+(da+-2<<4)&p)+16>>2]|0,c[(f+(da+-1<<4)&p)+16>>2]|0,b[(f+(da+-7<<4)&o)+16>>1]|0,c[(f+(da<<4)&p)+16>>2]|0,c[(f+(da<<4)&p)+20>>2]|0)|0;break}case 120:{c[(ea&p)>>2]=kr(ca,c[(f+(da+-1<<4)&p)+16>>2]|0,0,0,0,0,0,128,0,0)|0;break}case 127:{l=da+-1|0;q=lr(ca,c[(f+(da+-2<<4)&p)+16>>2]|0,c[(f+(l<<4)&p)+16>>2]|0)|0;c[(ea&p)>>2]=q;if(c[(f+(da<<4)&p)+20>>2]|0)mr(ca,q,f+(da<<4)+16|0,1);s=c[(ca&p)>>2]|0;if(q){r=(c[(q&p)+4>>2]|0)+(((c[(q&p)>>2]|0)+-1|0)*20|0)+8|0;mg(s,c[(r&p)>>2]|0);m=c[(f+(l<<4)&p)+20>>2]|0;q=(c[(f+(l<<4)&p)+24>>2]|0)-m|0;if((m|0)!=0?(h=jw(q|0,((q|0)<0)<<31>>31|0,1,0)|0,h=mh(s,h,G)|0,(h|0)!=0):0){kw(h|0,m|0,q|0)|0;a[(h+q&n)>>0]=0}else h=0;c[(r&p)>>2]=h}break}case 133:{l=mh(c[(ca&p)>>2]|0,80,0)|0;if(l){y=l+0|0;k=y+80|0;do{a[(y&n)>>0]=0;y=y+1|0}while((y|0)<(k|0))}c[(ea&p)>>2]=l;break}case 134:{q=c[(f+(da<<4)&p)+16>>2]|0;c[(ea&p)>>2]=q;if(q){l=c[(q&p)>>2]|0;k=l+-1|0;if((k|0)>0)while(1){a[(q+(k*72|0)&n)+44>>0]=a[(q+((l+-2|0)*72|0)&n)+44>>0]|0;l=k+-1|0;if((l|0)>0){ca=k;k=l;l=ca}else break}a[(q&n)+44>>0]=0}break}case 128:{aa=c[(ca&p)>>2]|0;c[(ba&p)>>2]=0;c[(ba&p)+4>>2]=0;ba=nr(aa,116,ba,0)|0;c[(ea&p)>>2]=lr(ca,c[(f+(da+-1<<4)&p)+16>>2]|0,ba)|0;break}case 132:{c[(ea&p)+4>>2]=0;break}case 129:{ba=Zq(ca,116,0,0,f+(da<<4)+16|0)|0;ba=Zq(ca,122,Zq(ca,27,0,0,f+(da+-2<<4)+16|0)|0,ba,0)|0;c[(ea&p)>>2]=lr(ca,c[(f+(da+-3<<4)&p)+16>>2]|0,ba)|0;break}case 136:{c[(ea&p)>>2]=0;break}case 137:{ba=jr(ca,c[(f+(da+-6<<4)&p)+16>>2]|0,f+(da+-5<<4)+16|0,f+(da+-4<<4)+16|0,f+(da+-3<<4)+16|0,0,c[(f+(da+-1<<4)&p)+16>>2]|0,c[(f+(da<<4)&p)+16>>2]|0)|0;c[(ea&p)>>2]=ba;or(ca,ba,f+(da+-2<<4)+16|0);break}case 135:{h=c[(f+(da+-1<<4)&p)+16>>2]|0;c[(ea&p)>>2]=h;if((h|0)!=0?(w=c[(h&p)>>2]|0,(w|0)>0):0)a[(h+((w+-1|0)*72|0)&n)+44>>0]=c[(f+(da<<4)&p)+16>>2];break}case 138:{c[(ea&p)>>2]=jr(ca,c[(f+(da+-6<<4)&p)+16>>2]|0,0,0,f+(da+-2<<4)+16|0,c[(f+(da+-4<<4)&p)+16>>2]|0,c[(f+(da+-1<<4)&p)+16>>2]|0,c[(f+(da<<4)&p)+16>>2]|0)|0;break}case 139:{l=f+(da+-6<<4)+16|0;q=c[(l&p)>>2]|0;if((((q|0)==0?(c[(f+(da+-2<<4)&p)+20>>2]|0)==0:0)?(c[(f+(da+-1<<4)&p)+16>>2]|0)==0:0)?(c[(f+(da<<4)&p)+16>>2]|0)==0:0){c[(ea&p)>>2]=c[(f+(da+-4<<4)&p)+16>>2];break a}s=f+(da+-4<<4)+16|0;k=c[(s&p)>>2]|0;r=c[(k&p)>>2]|0;if((r|0)==1){l=jr(ca,q,0,0,f+(da+-2<<4)+16|0,0,c[(f+(da+-1<<4)&p)+16>>2]|0,c[(f+(da<<4)&p)+16>>2]|0)|0;c[(ea&p)>>2]=l;if(l){_=(c[(l&p)>>2]|0)+-1|0;ba=c[(s&p)>>2]|0;aa=ba+16|0;c[(l+(_*72|0)&p)+16>>2]=c[(aa&p)>>2];$=ba+12|0;c[(l+(_*72|0)&p)+12>>2]=c[($&p)>>2];ba=ba+28|0;c[(l+(_*72|0)&p)+28>>2]=c[(ba&p)>>2];c[($&p)>>2]=0;c[(aa&p)>>2]=0;c[(ba&p)>>2]=0}Do(c[(ca&p)>>2]|0,c[(s&p)>>2]|0);break a}if(k){m=r+-1|0;if((m|0)>0){q=r;while(1){a[(k+(m*72|0)&n)+44>>0]=a[(k+((q+-2|0)*72|0)&n)+44>>0]|0;q=m+-1|0;if((q|0)>0){ba=m;m=q;q=ba}else break}}a[(k&n)+44>>0]=0}ba=kr(ca,0,k,0,0,0,0,512,0,0)|0;c[(ea&p)>>2]=jr(ca,c[(l&p)>>2]|0,0,0,f+(da+-2<<4)+16|0,ba,c[(f+(da+-1<<4)&p)+16>>2]|0,c[(f+(da<<4)&p)+16>>2]|0)|0;break}case 149:case 140:{c[(ea&p)>>2]=0;c[(ea&p)+4>>2]=0;break}case 144:{c[(ea&p)>>2]=qr(ca,f+(da+-1<<4)+16|0,0,0)|0;break}case 145:{c[(ea&p)>>2]=qr(ca,f+(da+-2<<4)+16|0,f+(da+-1<<4)+16|0,0)|0;break}case 146:{c[(ea&p)>>2]=qr(ca,f+(da+-3<<4)+16|0,f+(da+-2<<4)+16|0,f+(da+-1<<4)+16|0)|0;break}case 233:case 231:case 171:case 164:case 147:{c[(ea&p)>>2]=c[(f+(da<<4)&p)+16>>2];break}case 234:case 232:case 170:case 163:case 148:{c[(ea&p)>>2]=0;break}case 151:{c[(ea&p)>>2]=0;c[(ea&p)+4>>2]=1;break}case 143:{c[(ea&p)>>2]=1;break}case 142:{c[(ea&p)>>2]=pr(c[(ca&p)>>2]|0,0,f+(da+-1<<4)+16|0,f+(da<<4)+16|0)|0;break}case 157:{h=lr(ca,0,c[(f+(da+-1<<4)&p)+16>>2]|0)|0;c[(ea&p)>>2]=h;if((h|0)!=0?(k=c[(h&p)+4>>2]|0,(k|0)!=0):0)a[(k&n)+12>>0]=c[(f+(da<<4)&p)+16>>2];break}case 160:case 158:{c[(ea&p)>>2]=0;break}case 159:{c[(ea&p)>>2]=1;break}case 165:{c[(ea&p)>>2]=0;c[(ea&p)+4>>2]=0;break}case 166:{c[(ea&p)>>2]=c[(f+(da<<4)&p)+16>>2];c[(ea&p)+4>>2]=0;break}case 179:case 153:{c[(ea&p)>>2]=0;break}case 180:case 152:{c[(ea&p)>>2]=c[(f+(da+-1<<4)&p)+16>>2];break}case 172:{l=c[(f+(da+-7<<4)&p)+16>>2]|0;if(l){aa=ca+532|0;c[(l&p)+4>>2]=c[(aa&p)>>2];c[(aa&p)>>2]=l;a[(ca&n)+449>>0]=1}m=f+(da+-4<<4)+16|0;or(ca,c[(m&p)>>2]|0,f+(da+-3<<4)+16|0);q=f+(da+-1<<4)+16|0;l=c[(q&p)>>2]|0;if(l){if((c[(l&p)>>2]|0)>(c[((c[(ca&p)>>2]|0)&p)+96>>2]|0)){c[(ba&p)>>2]=20560;th(ca,34544,ba);l=c[(q&p)>>2]|0}}else l=0;sr(ca,c[(m&p)>>2]|0,l,c[(f+(da<<4)&p)+16>>2]|0,d[(f+(da+-5<<4)&n)+16>>0]|0);break}case 235:case 162:case 155:{c[(ea&p)>>2]=c[(f+(da<<4)&p)+16>>2];break}case 156:{h=lr(ca,c[(f+(da+-3<<4)&p)+16>>2]|0,c[(f+(da+-1<<4)&p)+16>>2]|0)|0;c[(ea&p)>>2]=h;if(h)a[((c[(h&p)+4>>2]|0)+(((c[(h&p)>>2]|0)+-1|0)*20|0)&n)+12>>0]=c[(f+(da<<4)&p)+16>>2];break}case 7:{a[(ca&n)+450>>0]=2;c[(ca&p)+440>>2]=0;break}case 23:{Tq(ca,1,f+(da<<4)+16|0);break}case 24:{Tq(ca,2,f+(da<<4)+16|0);break}case 26:{Uq(ca,f+(da+-1<<4)+16|0,f+(da<<4)+16|0,c[(f+(da+-4<<4)&p)+16>>2]|0,0,0,c[(f+(da+-2<<4)&p)+16>>2]|0);break}default:{}}while(0);h=a[(g<<1&n)+20912>>0]|0;r=h&255;q=a[(g<<1&n)+20913>>0]|0;m=q&255;s=(c[(f&p)>>2]|0)-m|0;c[(f&p)>>2]=s;l=b[((b[(e[(f+(da-m<<4)&o)+12>>1]<<1&o)+21568>>1]|0)+r<<1&o)+22184>>1]|0;k=l&65535;do if((l&65535)<642)if(!(q<<24>>24)){kq(f,k,r,ea);break}else{c[(f&p)>>2]=s+1;da=1-m+da|0;b[(f+(da<<4)&o)+12>>1]=l;a[(f+(da<<4)&n)+14>>0]=h;da=f+(da<<4)+16|0;c[(da&p)>>2]=c[(ea&p)>>2];c[(da&p)+4>>2]=c[(ea&p)+4>>2];c[(da&p)+8>>2]=c[(ea&p)+8>>2];break}else{h=c[(ga&p)>>2]|0;if((s|0)>-1)do Pn(f);while((c[(f&p)>>2]|0)>-1);c[(ga&p)>>2]=h}while(0);i=ha;return}function nq(e,f){e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=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,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,ga=0;da=i;i=i+64|0;if((i|0)>=(j|0))fa();ca=da+8|0;Z=da;q=da+24|0;h=da+16|0;l=xq(e,0,h)|0;do if(!l){if(c[(h&p)>>2]|0){l=ds(e,f)|0;if(!l)g=0;else k=4}else{l=1;k=4}if((k|0)==4){ba=e+43|0;k=(a[(ba&n)>>0]|0)==0;do if(!(a[(e&n)+46>>0]&2)){if(k?(m=e+4|0,aa=c[(m&p)>>2]|0,ac[c[((c[(aa&p)>>2]|0)&p)+40>>2]&63](aa,24,0)|0,m=c[(m&p)>>2]|0,m=pc[c[((c[(m&p)>>2]|0)&p)+56>>2]&31](m,0,1,10)|0,(m|0)!=0):0){h=l;g=m;break}aa=e+44|0;a[(aa&n)>>0]=1;k=xq(e,0,h)|0;if(!k){h=ds(e,f)|0;if(!h){h=0;g=0}else{$=d[(e&n)+45>>0]|0;_=$+1|0;$=7-$|0;if(!((a[(ba&n)>>0]|0)==0?(g=c[(e&p)+4>>2]|0,g=pc[c[((c[(g&p)>>2]|0)&p)+56>>2]&31](g,_,$,10)|0,(g|0)!=0):0)){l=e+52|0;k=l+48|0;do{c[(l&p)>>2]=0;l=l+4|0}while((l|0)<(k|0));T=e+8|0;g=c[(T&p)>>2]|0;g=rc[c[((c[(g&p)>>2]|0)&p)+24>>2]&127](g,Z)|0;a:do if(!g){U=Z;S=c[(U&p)+4>>2]|0;b:do if((S|0)>0|(S|0)==0&(c[(U&p)>>2]|0)>>>0>32){g=c[(T&p)>>2]|0;g=tc[c[((c[(g&p)>>2]|0)&p)+8>>2]&31](g,q,32,0,0)|0;if(g)break a;m=d[(q&n)+3>>0]|0;k=d[(q&n)+9>>0]<<16|d[(q&n)+8>>0]<<24;g=d[(q&n)+10>>0]<<8;l=k|g|d[(q&n)+11>>0];if(((d[(q&n)+1>>0]<<16|d[(q&n)>>0]<<24|d[(q&n)+2>>0]<<8|m&254|0)==931071618?!((l+-1&l|0)!=0|(l|0)>65536|(l|0)<512):0)?(U=m&1,V=e+65|0,a[(V&n)>>0]=U,W=e+36|0,c[(W&p)>>2]=l,c[(e&p)+104>>2]=d[(q&n)+13>>0]<<16|d[(q&n)+12>>0]<<24|d[(q&n)+14>>0]<<8|d[(q&n)+15>>0],X=e+84|0,S=q+16|0,Q=S,Q=d[(Q&n)>>0]|d[(Q&n)+1>>0]<<8|d[(Q&n)+2>>0]<<16|d[(Q&n)+3>>0]<<24,S=S+4|0,S=d[(S&n)>>0]|d[(S&n)+1>>0]<<8|d[(S&n)+2>>0]<<16|d[(S&n)+3>>0]<<24,Y=X,R=Y,a[(R&n)>>0]=Q,a[(R&n)+1>>0]=Q>>8,a[(R&n)+2>>0]=Q>>16,a[(R&n)+3>>0]=Q>>24,Y=Y+4|0,a[(Y&n)>>0]=S,a[(Y&n)+1>>0]=S>>8,a[(Y&n)+2>>0]=S>>16,a[(Y&n)+3>>0]=S>>24,Y=e+76|0,yq(U^1,q,24,0,Y),(c[(Y&p)>>2]|0)==(d[(q&n)+25>>0]<<16|d[(q&n)+24>>0]<<24|d[(q&n)+26>>0]<<8|d[(q&n)+27>>0]|0)):0){S=e+80|0;if((c[(S&p)>>2]|0)!=(d[(q&n)+29>>0]<<16|d[(q&n)+28>>0]<<24|d[(q&n)+30>>0]<<8|d[(q&n)+31>>0]|0)){l=0;g=0;break}if((d[(q&n)+5>>0]<<16|d[(q&n)+4>>0]<<24|d[(q&n)+6>>0]<<8|d[(q&n)+7>>0]|0)!=3007e3){c[(ca&p)>>2]=49983;c[(ca&p)+4>>2]=10788;bd(14,14848,ca);g=14;break a}w=l+24|0;U=Tc(w)|0;if(!U){g=7;break a}x=U+24|0;y=((w|0)<0)<<31>>31;q=jw(w|0,y|0,32,0)|0;m=G;R=Z;Q=c[(R&p)+4>>2]|0;c:do if(!((m|0)>(Q|0)|((m|0)==(Q|0)?q>>>0>(c[(R&p)>>2]|0)>>>0:0))){z=U+8|0;A=U+1|0;B=U+2|0;C=U+3|0;D=U+16|0;E=U+17|0;F=U+18|0;H=U+19|0;I=U+20|0;J=U+21|0;K=U+22|0;L=U+23|0;M=U+4|0;N=U+5|0;O=U+6|0;P=U+7|0;Q=e+68|0;R=e+72|0;u=(k>>>16|g)&65535;v=e+66|0;r=32;k=0;l=0;s=0;t=1;while(1){g=c[(T&p)>>2]|0;g=tc[c[((c[(g&p)>>2]|0)&p)+8>>2]&31](g,U,w,r,k)|0;if(g){k=36;break}if(Zv(X,z,8)|0){g=s;k=37;break}k=d[(A&n)>>0]<<16|d[(U&n)>>0]<<24|d[(B&n)>>0]<<8|d[(C&n)>>0];if(!k){g=s;k=37;break}r=(a[(V&n)>>0]|0)==0&1;yq(r,U,8,Y,Y);yq(r,x,c[(W&p)>>2]|0,Y,Y);if((c[(Y&p)>>2]|0)!=(d[(E&n)>>0]<<16|d[(D&n)>>0]<<24|d[(F&n)>>0]<<8|d[(H&n)>>0]|0)){g=s;k=37;break}if((c[(S&p)>>2]|0)!=(d[(J&n)>>0]<<16|d[(I&n)>>0]<<24|d[(K&n)>>0]<<8|d[(L&n)>>0]|0)){g=s;break c}r=d[(N&n)>>0]<<16|d[(M&n)>>0]<<24|d[(O&n)>>0]<<8|d[(P&n)>>0];g=_o(e,t,k)|0;if(g){k=36;break}if(!r)g=s;else{c[(Q&p)>>2]=t;c[(R&p)>>2]=r;b[(v&o)>>1]=u;l=c[(Y&p)>>2]|0;g=c[(S&p)>>2]|0}k=jw(q|0,m|0,w|0,y|0)|0;r=G;s=Z;ea=c[(s&p)+4>>2]|0;if((r|0)>(ea|0)|((r|0)==(ea|0)?k>>>0>(c[(s&p)>>2]|0)>>>0:0))break c;else{ga=m;ea=q;q=k;m=r;s=g;t=t+1|0;k=ga;r=ea}}if((k|0)==36){Wc(U);break a}else if((k|0)==37){Wc(U);break b}}else{l=0;g=0}while(0);Wc(U)}else{l=0;g=0}}else{l=0;g=0}while(0);c[(e&p)+76>>2]=l;c[(e&p)+80>>2]=g;$o(e);k=c[(c[(e&p)+32>>2]&p)>>2]|0;c[(k&p)+96>>2]=0;c[(k&p)+100>>2]=0;g=k+104|0;c[(g&p)>>2]=-1;c[(k&p)+108>>2]=-1;c[(k&p)+112>>2]=-1;c[(k&p)+116>>2]=-1;k=e+68|0;l=c[(k&p)>>2]|0;if(l)c[(g&p)>>2]=l;if(!(c[(e&p)+72>>2]|0))g=0;else{g=c[(e&p)+100>>2]|0;c[(ca&p)>>2]=c[(k&p)>>2];c[(ca&p)+4>>2]=g;bd(283,14888,ca);g=0}}while(0);if(!(a[(ba&n)>>0]|0)){Z=c[(e&p)+4>>2]|0;pc[c[((c[(Z&p)>>2]|0)&p)+56>>2]&31](Z,_,$,9)|0}}c[(f&p)>>2]=1}}else{h=l;g=k}a[(aa&n)>>0]=0;if(!(a[(ba&n)>>0]|0)){ba=c[(e&p)+4>>2]|0;pc[c[((c[(ba&p)>>2]|0)&p)+56>>2]&31](ba,0,1,9)|0}}else if(k){h=e+4|0;g=c[(h&p)>>2]|0;g=pc[c[((c[(g&p)>>2]|0)&p)+56>>2]&31](g,0,1,6)|0;if(!g)if(!(a[(ba&n)>>0]|0)){h=c[(h&p)>>2]|0;pc[c[((c[(h&p)>>2]|0)&p)+56>>2]&31](h,0,1,5)|0;h=l;g=264}else{h=l;g=264}else h=l}else{h=l;g=264}while(0);if(h)break}if((c[(e&p)+52>>2]|0)!=3007e3){c[(ca&p)>>2]=50909;c[(ca&p)+4>>2]=10788;bd(14,14848,ca);g=14}}else g=l;while(0);i=da;return g|0}function oq(a,d,f,g,h,i){a=a|0;d=d|0;f=f|0;g=g|0;h=h|0;i=i|0;var j=0,k=0,l=0,m=0,n=0,q=0,r=0,s=0,t=0,u=0;r=c[(h&p)>>2]|0;s=c[(g&p)>>2]|0;k=(r|0)>0;j=(f|0)>0;if(k|j){n=j;l=0;q=0;m=0;while(1){do if(n){j=d+(l<<1)|0;if(k?(t=s+(m<<1)|0,(c[(a+((e[(j&o)>>1]|0)<<2)&p)>>2]|0)>>>0>=(c[(a+((e[(t&o)>>1]|0)<<2)&p)>>2]|0)>>>0):0){k=t;u=7;break}l=l+1|0;k=j}else{k=s+(m<<1)|0;u=7}while(0);if((u|0)==7){u=0;m=m+1|0}n=b[(k&o)>>1]|0;k=c[(a+((n&65535)<<2)&p)>>2]|0;j=q+1|0;b[(i+(q<<1)&o)>>1]=n;if((l|0)<(f|0))l=((c[(a+((e[(d+(l<<1)&o)>>1]|0)<<2)&p)>>2]|0)==(k|0)&1)+l|0;k=(m|0)<(r|0);n=(l|0)<(f|0);if(!(k|n))break;else q=j}}else j=0;c[(g&p)>>2]=d;c[(h&p)>>2]=j;kw(d|0,i|0,j<<1|0)|0;return}function pq(a,b){a=a|0;b=b|0;var d=0,e=0;e=c[(a&p)+4>>2]|0;c[(e&p)+4>>2]=c[(a&p)>>2];a=c[((c[(e&p)>>2]|0)&p)+204>>2]|0;c[(a&p)+16>>2]=b;e=c[2217]|0;d=c[(a&p)+40>>2]|0;if((b|0)>-1)a=b;else{b=sw(b|0,((b|0)<0)<<31>>31|0,-1024,-1)|0;a=(c[(a&p)+24>>2]|0)+(c[(a&p)+20>>2]|0)|0;a=qw(b|0,G|0,a|0,((a|0)<0)<<31>>31|0)|0}jc[e&15](d,a);return}function qq(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0;g=(c[(b&p)+12>>2]|0)+136|0;e=g;f=c[(e&p)>>2]|0;e=c[(e&p)+4>>2]|0;do if((f|0)==0&(e|0)==0)if(!(bh(c[(c[((c[(b&p)>>2]|0)&p)+32>>2]&p)>>2]|0,g)|0)){e=g;f=c[(e&p)>>2]|0;e=c[(e&p)+4>>2]|0;h=5;break}else{e=g;c[(e&p)>>2]=0;c[(e&p)+4>>2]=0;e=d;c[(e&p)>>2]=0;c[(e&p)+4>>2]=0;e=1;break}else h=5;while(0);if((h|0)==5){g=d;c[(g&p)>>2]=f;c[(g&p)+4>>2]=e;if((e|0)>0|(e|0)==0&f>>>0>0){a[(d&n)+42>>0]=1;e=0}else e=1}return e|0}function rq(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,o=0,q=0,r=0;r=i;i=i+16|0;if((i|0)>=(j|0))fa();o=r;c[(o&p)>>2]=d;d=b;b=0;a:while(1){h=c[(o&p)>>2]|0;g=c[(h&p)>>2]|0;c[(o&p)>>2]=h+4;h=c[(o&p)>>2]|0;k=c[(h&p)>>2]|0;c[(o&p)>>2]=h+4;h=c[(o&p)>>2]|0;l=c[(h&p)>>2]|0;c[(o&p)>>2]=h+4;h=c[(o&p)>>2]|0;m=c[(h&p)>>2]|0;c[(o&p)>>2]=h+4;h=c[(o&p)>>2]|0;e=c[(h&p)>>2]|0;c[(o&p)>>2]=h+4;if(!g){f=d;d=0}else{f=d;d=0;do{g=g+-1|0;h=a[(f&n)>>0]|0;if(((h&255)+-48|0)>>>0>=10)break a;d=(d*10|0)+-48+(h<<24>>24)|0;f=f+1|0}while((g|0)!=0)}if((d|0)<(k|0)|(d|0)>(l|0))break;if(!m){q=9;break}if((m|0)!=(a[(f&n)>>0]|0))break;c[(e&p)>>2]=d;d=f+1|0;b=b+1|0}if((q|0)==9){c[(e&p)>>2]=d;b=b+1|0}i=r;return b|0}function sq(b,e){b=b|0;e=e|0;var f=0,g=0,k=0,l=0.0,m=0,o=0.0,r=0,s=0,t=0,u=0,v=0,w=0,x=0;x=i;i=i+64|0;if((i|0)>=(j|0))fa();v=x;t=x+56|0;u=x+52|0;f=x+48|0;r=x+44|0;s=x+40|0;c[(v&p)>>2]=2;c[(v&p)+4>>2]=0;c[(v&p)+8>>2]=24;c[(v&p)+12>>2]=58;c[(v&p)+16>>2]=f;c[(v&p)+20>>2]=2;c[(v&p)+24>>2]=0;c[(v&p)+28>>2]=59;c[(v&p)+32>>2]=0;c[(v&p)+36>>2]=r;do if((rq(b,v)|0)==2){m=b+5|0;if((a[(m&n)>>0]|0)==58){c[(v&p)>>2]=2;c[(v&p)+4>>2]=0;c[(v&p)+8>>2]=59;c[(v&p)+12>>2]=0;c[(v&p)+16>>2]=s;if((rq(b+6|0,v)|0)!=1){f=1;break}m=b+8|0;if((a[(m&n)>>0]|0)==46?(g=b+9|0,k=a[(g&n)>>0]|0,((k&255)+-48|0)>>>0<10):0){o=0.0;l=1.0;do{o=o*10.0+ +(k<<24>>24)+-48.0;l=l*10.0;g=g+1|0;k=a[(g&n)>>0]|0}while(((k&255)+-48|0)>>>0<10);l=o/l}else{g=m;l=0.0}}else{c[(s&p)>>2]=0;g=m;l=0.0}a[(e&n)+42>>0]=0;a[(e&n)+41>>0]=1;c[(e&p)+20>>2]=c[(f&p)>>2];c[(e&p)+24>>2]=c[(r&p)>>2];h[(e&q)+32>>3]=l+ +(c[(s&p)>>2]|0);while(1){f=g+1|0;if(!(a[((d[(g&n)>>0]|0)&n)+10368>>0]&1)){m=g;break}else g=f}b=e+28|0;c[(b&p)>>2]=0;g=a[(m&n)>>0]|0;if(g<<24>>24==43){k=1;w=14}else if(g<<24>>24!=45)if((g&-33)<<24>>24==90){k=0;w=16}else f=0;else{k=-1;w=14}if((w|0)==14){c[(v&p)>>2]=2;c[(v&p)+4>>2]=0;c[(v&p)+8>>2]=14;c[(v&p)+12>>2]=58;c[(v&p)+16>>2]=t;c[(v&p)+20>>2]=2;c[(v&p)+24>>2]=0;c[(v&p)+28>>2]=59;c[(v&p)+32>>2]=0;c[(v&p)+36>>2]=u;if((rq(f,v)|0)!=2){f=1;break}k=ca(((c[(t&p)>>2]|0)*60|0)+(c[(u&p)>>2]|0)|0,k)|0;c[(b&p)>>2]=k;f=m+6|0;w=16}if((w|0)==16)while(1){g=a[(f&n)>>0]|0;if(!(a[(g&255&n)+10368>>0]&1)){f=k;break}else f=f+1|0}if(!(g<<24>>24)){a[(e&n)+43>>0]=(f|0)!=0&1;f=0}else f=1}else f=1;while(0);i=x;return f|0}function tq(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,k=0,l=0,m=0,o=0,r=0.0,s=0;o=i;i=i+112|0;if((i|0)>=(j|0))fa();k=o+48|0;m=o;l=o+96|0;f=k+0|0;b=b+0|0;g=f+48|0;do{c[(f&p)>>2]=c[(b&p)>>2];f=f+4|0;b=b+4|0}while((f|0)<(g|0));oo(k);po(k);g=k+8|0;if(((c[(g&p)>>2]|0)+-1971|0)>>>0>66){c[(g&p)>>2]=2e3;c[(k&p)+12>>2]=1;c[(k&p)+16>>2]=1;c[(k&p)+20>>2]=0;c[(k&p)+24>>2]=0;h[(k&q)+32>>3]=0.0}else{f=k+32|0;h[(f&q)>>3]=+(~~(+h[(f&q)>>3]+.5)|0)}c[(k&p)+28>>2]=0;a[(k&n)+42>>0]=0;no(k);b=k;f=c[(b&p)>>2]|0;b=c[(b&p)+4>>2]|0;g=qw(f|0,b|0,1e3,0)|0;g=jw(g|0,G|0,-413362496,0)|0;c[(l&p)>>2]=g;g=Vb(l|0)|0;g=(c[2253]|0)!=0?0:g;if(!g){c[(d&p)+20>>2]=1;a[(d&n)+25>>0]=1;Xg(c[(d&p)>>2]|0,20056,-1,1,-1)|0;c[(e&p)>>2]=1;f=0;g=0}else{k=c[(g&p)+4>>2]|0;l=c[(g&p)+8>>2]|0;d=c[(g&p)+12>>2]|0;s=(c[(g&p)+16>>2]|0)+1|0;r=+(c[(g&p)>>2]|0);c[(m&p)+8>>2]=(c[(g&p)+20>>2]|0)+1900;c[(m&p)+12>>2]=s;c[(m&p)+16>>2]=d;c[(m&p)+20>>2]=l;c[(m&p)+24>>2]=k;h[(m&q)+32>>3]=r;a[(m&n)+40>>0]=1;a[(m&n)+41>>0]=1;a[(m&n)+42>>0]=0;a[(m&n)+43>>0]=0;no(m);c[(e&p)>>2]=0;g=m;g=dw(c[(g&p)>>2]|0,c[(g&p)+4>>2]|0,f|0,b|0)|0;f=G}G=f;i=o;return g|0}function uq(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,o=0,q=0,r=0;r=i;i=i+32|0;if((i|0)>=(j|0))fa();q=r+12|0;l=r;o=r+8|0;k=r+16|0;a[(d&n)>>0]=0;f=rc[c[((c[(b&p)>>2]|0)&p)+24>>2]&127](b,l)|0;h=l;g=c[(h&p)>>2]|0;h=c[(h&p)+4>>2]|0;if(!((f|0)!=0|((h|0)<0|(h|0)==0&g>>>0<16))){f=jw(g|0,h|0,-16,-1)|0;f=es(b,f,G,q)|0;if(!f){m=c[(q&p)>>2]|0;if(!(m>>>0>=e>>>0|(m|0)==0)){f=l;f=jw(c[(f&p)>>2]|0,c[(f&p)+4>>2]|0,-12,-1)|0;f=es(b,f,G,o)|0;if(!f){f=l;f=jw(c[(f&p)>>2]|0,c[(f&p)+4>>2]|0,-8,-1)|0;f=tc[c[((c[(b&p)>>2]|0)&p)+8>>2]&31](b,k,8,f,G)|0;if(!f)if(!(Zv(k,14808,8)|0)){f=l;f=jw(c[(f&p)>>2]|0,c[(f&p)+4>>2]|0,-16,-1)|0;f=dw(f|0,G|0,m|0,0)|0;f=tc[c[((c[(b&p)>>2]|0)&p)+8>>2]&31](b,d,m,f,G)|0;if(!f){g=c[(o&p)>>2]|0;h=0;while(1){e=a[(d+h&n)>>0]|0;f=g-e|0;h=h+1|0;if(h>>>0>=m>>>0)break;else g=f}c[(o&p)>>2]=f;if((g|0)==(e|0))f=m;else{c[(q&p)>>2]=0;f=0}a[(d+f&n)>>0]=0;f=0}}else f=0}}else f=0}}i=r;return f|0}function vq(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,k=0,l=0,m=0,n=0,o=0,q=0,r=0,s=0,t=0;t=i;i=i+16|0;if((i|0)>=(j|0))fa();l=t+8|0;r=t+4|0;o=t;s=a+72|0;h=s;k=c[(h&p)>>2]|0;h=c[(h&p)+4>>2]|0;if((k|0)==0&(h|0)==0){m=0;n=0;k=c[(a&p)+148>>2]|0}else{m=jw(k|0,h|0,-1,-1)|0;k=c[(a&p)+148>>2]|0;m=qw(m|0,G|0,k|0,0)|0;m=jw(m|0,G|0,1,0)|0;m=sw(m|0,G|0,k|0,0)|0;n=G}q=s;c[(q&p)>>2]=m;c[(q&p)+4>>2]=n;q=a+148|0;k=jw(k|0,0,m|0,n|0)|0;h=G;do if(!((h|0)>(e|0)|(h|0)==(e|0)&k>>>0>d>>>0)){if((b|0)==0?(b=a+80|0,(m|0)==(c[(b&p)>>2]|0)?(n|0)==(c[(b&p)+4>>2]|0):0):0)d=a+64|0;else{k=a+64|0;e=c[(k&p)>>2]|0;e=tc[c[((c[(e&p)>>2]|0)&p)+8>>2]&31](e,l,8,m,n)|0;if(e)break;if(!(Zv(l,14808,8)|0))d=k;else{e=101;break}}l=c[(d&p)>>2]|0;e=jw(m|0,n|0,8,0)|0;e=es(l,e,G,f)|0;if(!e){f=c[(d&p)>>2]|0;e=jw(m|0,n|0,12,0)|0;e=es(f,e,G,a+48|0)|0;if(!e){f=c[(d&p)>>2]|0;e=jw(m|0,n|0,16,0)|0;e=es(f,e,G,g)|0;if(!e){h=s;k=c[(h&p)>>2]|0;h=c[(h&p)+4>>2]|0;if((k|0)==0&(h|0)==0){g=c[(d&p)>>2]|0;e=jw(m|0,n|0,20,0)|0;e=es(g,e,G,o)|0;if(e)break;g=c[(d&p)>>2]|0;e=jw(m|0,n|0,24,0)|0;e=es(g,e,G,r)|0;if(e)break;d=c[(r&p)>>2]|0;if(!d){h=c[(a&p)+152>>2]|0;c[(r&p)>>2]=h}else h=d;d=c[(o&p)>>2]|0;if(h>>>0<512|d>>>0<32|h>>>0>65536|d>>>0>65536){e=101;break}if(h+-1&h){e=101;break}if(d+-1&d){e=101;break}e=al(a,r,-1)|0;c[(q&p)>>2]=d;h=s;k=c[(h&p)>>2]|0;h=c[(h&p)+4>>2]|0}else{d=c[(q&p)>>2]|0;e=0}m=jw(k|0,h|0,d|0,0)|0;n=s;c[(n&p)>>2]=m;c[(n&p)+4>>2]=G}}}}else e=101;while(0);i=t;return e|0}function wq(f,g,h,k,l){f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;var m=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;D=i;i=i+16|0;if((i|0)>=(j|0))fa();y=D+8|0;r=D+4|0;u=D;B=c[(f&p)+200>>2]|0;C=(k|0)!=0;q=c[((C?f+64|0:f+68|0)&p)>>2]|0;t=g;t=es(q,c[(t&p)>>2]|0,c[(t&p)+4>>2]|0,r)|0;do if(!t){A=f+152|0;x=c[(A&p)>>2]|0;t=g;t=jw(c[(t&p)>>2]|0,c[(t&p)+4>>2]|0,4,0)|0;t=tc[c[((c[(q&p)>>2]|0)&p)+8>>2]&31](q,B,x,t,G)|0;if(!t){E=c[(A&p)>>2]|0;s=(k<<2)+4+E|0;t=g;t=jw(s|0,((s|0)<0)<<31>>31|0,c[(t&p)>>2]|0,c[(t&p)+4>>2]|0)|0;s=G;x=g;c[(x&p)>>2]=t;c[(x&p)+4>>2]=s;x=c[(r&p)>>2]|0;if((x|0)!=0?(x|0)!=(((c[2514]|0)/(E|0)|0)+1|0):0)if(x>>>0<=(c[(f&p)+24>>2]|0)>>>0?(di(h,x)|0)==0:0){if(C){t=jw(t|0,s|0,-4,-1)|0;t=es(q,t,G,u)|0;if(t){m=t;break}if(!l){t=c[(f&p)+48>>2]|0;s=(c[(A&p)>>2]|0)+-200|0;if((s|0)>0)do{t=(d[(B+s&n)>>0]|0)+t|0;s=s+-200|0}while((s|0)>0);if((t|0)!=(c[(u&p)>>2]|0)){m=101;break}}}if((h|0)!=0?(m=bi(h,x)|0,(m|0)!=0):0)break;u=(x|0)==1;if(u?(v=f+142|0,w=a[(B&n)+20>>0]|0,(b[(v&o)>>1]|0)!=(w&255|0)):0)b[(v&o)>>1]=w&255;if(!(c[(f&p)+208>>2]|0)){w=f+204|0;t=ac[c[8876>>2]&63](c[((c[(w&p)>>2]|0)&p)+40>>2]|0,x,0)|0;t=il(c[(w&p)>>2]|0,x,t)|0}else t=0;c[(y&p)>>2]=t;if(C)if(!(a[(f&n)+7>>0]|0)){w=g;h=c[(w&p)+4>>2]|0;s=f+80|0;v=c[(s&p)+4>>2]|0;s=(h|0)<(v|0)|((h|0)==(v|0)?(c[(w&p)>>2]|0)>>>0<=(c[(s&p)>>2]|0)>>>0:0)}else s=1;else if(!t)s=1;else s=(b[(t&o)+24>>1]&4)==0;r=c[(f&p)+60>>2]|0;q=c[(r&p)>>2]|0;do if(q){m=a[(f&n)+16>>0]|0;if((m&255)>3){if(!s){z=33;break}}else if(!(m<<24>>24==0&s)){z=33;break}s=c[(A&p)>>2]|0;m=sw(s|0,((s|0)<0)<<31>>31|0,x+-1|0,0)|0;m=tc[c[(q&p)+12>>2]&31](r,B,s,m,G)|0;s=f+32|0;if(x>>>0>(c[(s&p)>>2]|0)>>>0)c[(s&p)>>2]=x;s=c[(f&p)+88>>2]|0;if(s)ap(s,x,B)}else z=33;while(0);if((z|0)==33)if((k|0)==0&(t|0)==0){w=f+20|0;a[(w&n)>>0]=d[(w&n)>>0]|2;m=zg(f,x,y,1)|0;a[(w&n)>>0]=d[(w&n)>>0]&253;if(m)break;t=c[(y&p)>>2]|0;m=t+24|0;b[(m&o)>>1]=e[(m&o)>>1]&65527;To(t);m=0}else m=0;if(t){r=c[(t&p)+4>>2]|0;kw(r|0,B|0,c[(A&p)>>2]|0)|0;cc[c[(f&p)+196>>2]&31](t);do if(C){if((l|0)!=0?(w=g,h=c[(w&p)+4>>2]|0,x=f+80|0,v=c[(x&p)+4>>2]|0,(h|0)>(v|0)|((h|0)==(v|0)?(c[(w&p)>>2]|0)>>>0>(c[(x&p)>>2]|0)>>>0:0)):0)break;xl(t)}while(0);if(u){s=f+104|0;q=r+24|0;r=s+16|0;do{a[(s&n)>>0]=a[(q&n)>>0]|0;s=s+1|0;q=q+1|0}while((s|0)<(r|0))}ol(t)}}else m=0;else m=101}else m=t}else m=t;while(0);i=D;return m|0}function xq(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0;g=b+24|0;if((c[(g&p)>>2]|0)<=(e|0)){i=e+1|0;j=b+32|0;h=Xc(c[(j&p)>>2]|0,i<<2)|0;if(!h){g=7;h=0}else{k=c[(g&p)>>2]|0;fw(h+(k<<2)|0,0,i-k<<2|0)|0;c[(j&p)>>2]=h;c[(g&p)>>2]=i;k=5}}else{h=c[(b&p)+32>>2]|0;k=5}if((k|0)==5){j=b+32|0;h=h+(e<<2)|0;do if(!(c[(h&p)>>2]|0)){if((a[(b&n)+43>>0]|0)!=2){g=c[(b&p)+4>>2]|0;g=tc[c[((c[(g&p)>>2]|0)&p)+52>>2]&31](g,e,32768,d[(b&n)+44>>0]|0,h)|0;if((g|0)!=8)break;g=b+46|0;a[(g&n)>>0]=d[(g&n)>>0]|2;g=0;break}g=qg(32768,0)|0;if(g)fw(g|0,0,32768)|0;c[((c[(j&p)>>2]|0)+(e<<2)&p)>>2]=g;g=(c[((c[(j&p)>>2]|0)+(e<<2)&p)>>2]|0)==0?7:0}else g=0;while(0);h=c[((c[(j&p)>>2]|0)+(e<<2)&p)>>2]|0}c[(f&p)>>2]=h;return g|0}function yq(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;h=b+d|0;if(!e){g=0;d=0}else{g=c[(e&p)>>2]|0;d=c[(e&p)+4>>2]|0}if(!a)do{g=g+d+(nw(c[(b&p)>>2]|0)|0)|0;d=g+d+(nw(c[(b&p)+4>>2]|0)|0)|0;b=b+8|0}while(b>>>0>>0);else do{g=g+d+(c[(b&p)>>2]|0)|0;d=g+d+(c[(b&p)+4>>2]|0)|0;b=b+8|0}while(b>>>0>>0);c[(f&p)>>2]=g;c[(f&p)+4>>2]=d;return}function zq(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;h=a+8|0;g=c[(h&p)>>2]|0;h=c[(h&p)+4>>2]|0;if((h|0)>(f|0)|(h|0)==(f|0)&g>>>0>e>>>0?(i=jw(d|0,((d|0)<0)<<31>>31|0,e|0,f|0)|0,k=G,!((k|0)<(h|0)|(k|0)==(h|0)&i>>>0>>0)):0){i=dw(g|0,h|0,e|0,f|0)|0;h=a+4|0;g=c[(h&p)>>2]|0;g=tc[c[((c[(g&p)>>2]|0)&p)+12>>2]&31](g,b,i,e,f)|0;if(!g){e=jw(i|0,((i|0)<0)<<31>>31|0,e|0,f|0)|0;f=G;g=c[(h&p)>>2]|0;g=rc[c[((c[(g&p)>>2]|0)&p)+20>>2]&127](g,c[(a&p)+16>>2]&19)|0;if(!((i|0)==(d|0)|(g|0)!=0)){d=d-i|0;h=b+i|0;g=f;j=5}}}else{h=b;g=f;j=5}if((j|0)==5){f=c[(a&p)+4>>2]|0;g=tc[c[((c[(f&p)>>2]|0)&p)+12>>2]&31](f,h,d,e,g)|0}return g|0}function Aq(a){a=a|0;var d=0,f=0,g=0,h=0,k=0,l=0;l=i;i=i+16|0;if((i|0)>=(j|0))fa();h=l+8|0;k=l+4|0;g=l;c[(h&p)>>2]=0;c[(k&p)>>2]=0;c[(g&p)>>2]=0;f=a+68|0;d=c[(f&p)>>2]|0;if(d){Po(a,(d+33|0)>>>12,h,k,g)|0;g=(c[(f&p)>>2]|0)-(c[(g&p)>>2]|0)|0;a=c[(h&p)>>2]|0;f=0;do{d=a+(f<<1)|0;if((e[(d&o)>>1]|0|0)>(g|0))b[(d&o)>>1]=0;f=f+1|0}while((f|0)!=8192);d=(c[(k&p)>>2]|0)+(g+1<<2)|0;fw(d|0,0,a-d|0)|0}i=l;return}function Bq(a,d){a=a|0;d=d|0;var e=0,f=0,g=0,h=0;g=i;i=i+16|0;if((i|0)>=(j|0))fa();e=g;h=a+204|0;f=ac[c[8876>>2]&63](c[((c[(h&p)>>2]|0)&p)+40>>2]|0,d,0)|0;f=il(c[(h&p)>>2]|0,d,f)|0;do if(!f)e=0;else{if((b[(f&o)+26>>1]|0)==1){ml(f);e=0;break}c[(e&p)>>2]=0;d=kl(c[(a&p)+208>>2]|0,c[(f&p)+20>>2]|0,e)|0;if(!d){d=ll(f,c[(e&p)>>2]|0)|0;if(!d){cc[c[(a&p)+196>>2]&31](f);d=0}}Bg(f);e=d}while(0);d=c[(a&p)+88>>2]|0;if(d)do{c[(d&p)+16>>2]=1;d=c[(d&p)+44>>2]|0}while((d|0)!=0);i=g;return e|0}function Cq(f,g,h){f=f|0;g=g|0;h=h|0;var k=0,l=0,m=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;G=i;i=i+16|0;if((i|0)>=(j|0))fa();F=G;C=c[(f&p)+52>>2]|0;t=(c[(C&p)+36>>2]|0)+-4|0;y=g&65535;D=h&65535;x=D+y|0;E=c[(f&p)+56>>2]|0;if(b[(C&o)+22>>1]&4)fw(E+y|0,0,D|0)|0;B=d[(f&n)+6>>0]|0;C=B+1|0;q=C&65535;A=C&65535;if((a[(E+A&n)+1>>0]|0)==0?(a[(E+A&n)>>0]|0)==0:0){v=h&255;t=(h&65535)>>>8&255;u=x;s=0;r=0;A=23}else{v=q;A=6}a:do if((A|0)==6){while(1){A=0;m=v&65535;r=a[(E+m&n)+1>>0]|0;l=r&255;u=d[(E+m&n)>>0]<<8|l;q=v;v=u&65535;if(!(u>>>0>>0&(u|0)!=0)){s=r;w=u;break}if(u>>>0<(m+4|0)>>>0){A=8;break}else A=6}if((A|0)==8){c[(F&p)>>2]=54420;c[(F&p)+4>>2]=10788;bd(11,13600,F);k=11;break}if(w>>>0>t>>>0){c[(F&p)>>2]=54423;c[(F&p)+4>>2]=10788;bd(11,13600,F);k=11;break}k=h&255;t=(h&65535)>>>8&255;r=(v&65535)>>>8&255;do if((w+-1|0)>>>0<(x+3|0)>>>0)if(x>>>0>w>>>0){c[(F&p)>>2]=54434;c[(F&p)+4>>2]=10788;bd(11,13600,F);k=11;break a}else{u=(d[(E+w&n)+2>>0]<<8|d[(E+w&n)+3>>0])+w|0;t=u-y|0;v=t&255;t=(t&65535)>>>8&255;s=a[(E+w&n)+1>>0]|0;r=a[(E+w&n)>>0]|0;k=l-x&255;break}else{v=k;u=x;k=0}while(0);do if(m>>>0>C>>>0?(z=(d[(E+m&n)+2>>0]<<8|d[(E+m&n)+3>>0])+m|0,(z+3|0)>=(y|0)):0)if((y|0)<(z|0)){c[(F&p)>>2]=54447;c[(F&p)+4>>2]=10788;bd(11,13600,F);k=11;break a}else{t=u-m|0;g=q;v=t&255;t=(t&65535)>>>8&255;k=(k&255)+y-z&255;break}while(0);m=E+(B+7)|0;l=a[(m&n)>>0]|0;if((l&255)<(k&255)){c[(F&p)>>2]=54453;c[(F&p)+4>>2]=10788;bd(11,13600,F);k=11;break}else{a[(m&n)>>0]=(l&255)-(k&255);A=23;break}}while(0);b:do if((A|0)==23){k=g&65535;l=E+(B+5)|0;m=E+(B+6)|0;do if((k|0)==(d[(l&n)>>0]<<8|d[(m&n)>>0]|0))if((q&65535|0)==(C|0)){a[(E+C&n)>>0]=r;a[(E+B&n)+2>>0]=s;a[(l&n)>>0]=u>>>8;a[(m&n)>>0]=u;break}else{c[(F&p)>>2]=54460;c[(F&p)+4>>2]=10788;bd(11,13600,F);k=11;break b}else{F=q&65535;a[(E+F&n)>>0]=(g&65535)>>>8;a[(E+F&n)+1>>0]=g;a[(E+k&n)>>0]=r;a[(E+k&n)+1>>0]=s;a[(E+k&n)+2>>0]=t;a[(E+k&n)+3>>0]=v}while(0);k=f+16|0;b[(k&o)>>1]=(e[(k&o)>>1]|0)+D;k=0}while(0);i=G;return k|0}function Dq(b,e,f,g){b=b|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,o=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0;w=i;i=i+16|0;if((i|0)>=(j|0))fa();t=w;s=d[(b&n)+6>>0]|0;v=c[(b&p)+56>>2]|0;r=c[((c[(b&p)+52>>2]|0)&p)+36>>2]|0;l=r+-4|0;b=s+1|0;while(1){m=v+b|0;o=(d[(m&n)>>0]|0)<<8|(d[(v+b&n)+1>>0]|0);if(!o){b=0;break}if((o|0)>(l|0)|(o|0)<(b+4|0)){u=4;break}h=v+(o+2)|0;k=v+(o+3)|0;b=(d[(h&n)>>0]|0)<<8|(d[(k&n)>>0]|0);if((b|0)<(e|0))b=o;else{q=h;l=o;u=6;break}}a:do if((u|0)==4){c[(t&p)>>2]=54252;c[(t&p)+4>>2]=10788;bd(11,13600,t);c[(f&p)>>2]=11;b=0}else if((u|0)==6){h=b-e|0;do if((h|0)>=4)if((b+l|0)>(r|0)){c[(t&p)>>2]=54275;c[(t&p)+4>>2]=10788;bd(11,13600,t);c[(f&p)>>2]=11;b=0;break a}else{a[(q&n)>>0]=h>>>8;a[(k&n)>>0]=h;break}else{b=v+(s+7)|0;if((d[(b&n)>>0]|0)<=59){s=v+l|0;s=d[(s&n)>>0]|d[(s&n)+1>>0]<<8;a[(m&n)>>0]=s;a[(m&n)+1>>0]=s>>8;a[(b&n)>>0]=(d[(b&n)>>0]|0)+h;break}if(!g){b=0;break a}c[(g&p)>>2]=1;b=0;break a}while(0);b=v+(h+l)|0}while(0);i=w;return b|0}function Eq(f){f=f|0;var g=0,h=0,k=0,l=0,m=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;G=i;i=i+16|0;if((i|0)>=(j|0))fa();E=G;B=c[(f&p)+56>>2]|0;D=d[(f&n)+6>>0]|0;x=e[(f&o)+14>>1]|0;y=b[(f&o)+18>>1]|0;t=y&65535;u=f+52|0;v=c[((c[(u&p)>>2]|0)&p)+36>>2]|0;C=(t<<1)+x|0;w=v+-4|0;z=B+(D+5)|0;A=B+(D+6)|0;a:do if(y<<16>>16){s=v;y=0;h=B;k=0;while(1){m=(y<<1)+x|0;l=B+m|0;m=B+(m+1)|0;q=(d[(l&n)>>0]|0)<<8|(d[(m&n)>>0]|0);if((q|0)<(C|0)|(q|0)>(w|0)){F=3;break}r=(Lp(f,h+q|0)|0)&65535;g=s-r|0;if((g|0)<(C|0)|(r+q|0)>(v|0)){F=5;break}a[(l&n)>>0]=g>>>8;a[(m&n)>>0]=g;if(!k)if((g|0)==(q|0))k=0;else{k=c[((c[(c[(u&p)>>2]&p)>>2]|0)&p)+200>>2]|0;h=(d[(z&n)>>0]|0)<<8|(d[(A&n)>>0]|0);kw(k+h|0,B+h|0,s-h|0)|0;h=k;F=9}else F=9;if((F|0)==9){F=0;kw(B+g|0,h+q|0,r|0)|0}y=y+1|0;if((y|0)>=(t|0)){F=11;break a}else s=g}if((F|0)==3){c[(E&p)>>2]=54184;c[(E&p)+4>>2]=10788;bd(11,13600,E);g=11;break}else if((F|0)==5){c[(E&p)>>2]=54196;c[(E&p)+4>>2]=10788;bd(11,13600,E);g=11;break}}else{g=v;F=11}while(0);if((F|0)==11){a[(z&n)>>0]=g>>>8;a[(A&n)>>0]=g;a[(B+D&n)+1>>0]=0;a[(B+D&n)+2>>0]=0;a[(B+D&n)+7>>0]=0;F=g-C|0;fw(B+C|0,0,F|0)|0;if((F|0)==(e[(f&o)+16>>1]|0|0))g=0;else{c[(E&p)>>2]=54221;c[(E&p)+4>>2]=10788;bd(11,13600,E);g=11}}i=G;return g|0}function Fq(a,e,f){a=a|0;e=e|0;f=f|0;var g=0,h=0,k=0;k=i;i=i+32|0;if((i|0)>=(j|0))fa();h=k;if((c[(f&p)>>2]|0)==0?(rp(a,e,h),g=b[(h&o)+18>>1]|0,g<<16>>16!=0):0){g=g&65535;zp(c[(a&p)+52>>2]|0,(d[(e+g&n)+1>>0]|0)<<16|(d[(e+g&n)>>0]|0)<<24|(d[(e+g&n)+2>>0]|0)<<8|(d[(e+g&n)+3>>0]|0),3,c[(a&p)+72>>2]|0,f)}i=k;return}function Gq(b,f,g){b=b|0;f=f|0;g=g|0;var h=0,i=0,j=0,k=0,l=0,m=0;do if(!(c[(g&p)>>2]|0)){h=c[(b&p)+52>>2]|0;j=c[(b&p)+56>>2]|0;l=c[(f&p)+56>>2]|0;i=d[(b&n)+6>>0]|0;k=(c[(f&p)+72>>2]|0)==1?100:0;m=d[(j+i&n)+5>>0]<<8|d[(j+i&n)+6>>0];kw(l+m|0,j+m|0,(c[(h&p)+36>>2]|0)-m|0)|0;kw(l+k|0,j+i|0,(e[(b&o)+18>>1]<<1)+(e[(b&o)+14>>1]|0)|0)|0;a[(f&n)>>0]=0;b=$p(f)|0;if(b){c[(g&p)>>2]=b;break}if(a[(h&n)+17>>0]|0)c[(g&p)>>2]=_p(f)|0}while(0);return}function Hq(f,g,h,i){f=f|0;g=g|0;h=h|0;i=i|0;var j=0,k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0;t=d[(f&n)+6>>0]|0;w=c[(f&p)+56>>2]|0;m=c[(f&p)+52>>2]|0;r=c[(m&p)+36>>2]|0;q=w+r|0;j=c[(f&p)+64>>2]|0;m=c[((c[(m&p)>>2]|0)&p)+200>>2]|0;s=w+(t+5)|0;u=w+(t+6)|0;v=(d[(s&n)>>0]|0)<<8|(d[(u&n)>>0]|0);kw(m+v|0,w+v|0,r-v|0)|0;v=w;if((g|0)>0){r=0;l=j;j=q;while(1){k=c[(h+(r<<2)&p)>>2]|0;if(k>>>0>w>>>0&k>>>0>>0)k=m+(k-v)|0;x=e[(i+(r<<1)&o)>>1]|0;j=j+(0-x)|0;kw(j|0,k|0,x|0)|0;k=j-v|0;a[(l&n)>>0]=k>>>8;a[(l&n)+1>>0]=k;r=r+1|0;if((r|0)==(g|0))break;else l=l+2|0}}else j=q;i=f+18|0;b[(i&o)>>1]=g;a[(f&n)+1>>0]=0;a[(w+t&n)+1>>0]=0;a[(w+t&n)+2>>0]=0;a[(w+t&n)+3>>0]=(e[(i&o)>>1]|0)>>>8;a[(w+t&n)+4>>0]=b[(i&o)>>1];i=j-v|0;a[(s&n)>>0]=i>>>8;a[(u&n)>>0]=i;a[(w+t&n)+7>>0]=0;return}function Iq(a,b,f,g){a=a|0;b=b|0;f=f|0;g=g|0;var h=0,i=0,j=0,k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0;u=c[(a&p)+56>>2]|0;s=u+(c[((c[(a&p)+52>>2]|0)&p)+36>>2]|0)|0;q=u+((d[(a&n)+6>>0]|0)+8+(d[(a&n)+7>>0]|0))|0;a:do if((b|0)>0){r=u;t=0;h=0;l=0;m=0;while(1){j=c[(f+(t<<2)&p)>>2]|0;if(j>>>0>=q>>>0&j>>>0>>0){i=e[(g+(t<<1)&o)>>1]|0;k=j+i|0;if((l|0)!=(k|0)){if(l)Cq(a,l-r&65535,m&65535)|0;if(k>>>0>s>>>0){h=0;break a}}else i=i+m|0;h=h+1|0}else{j=l;i=m}t=t+1|0;if((t|0)>=(b|0))break;else{l=j;m=i}}if(j)Cq(a,j-u&65535,i&65535)|0}else h=0;while(0);return h|0}function Jq(b,d,f,g,h,k,l){b=b|0;d=d|0;f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;var m=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0;y=i;i=i+16|0;if((i|0)>=(j|0))fa();w=y;q=c[(b&p)+56>>2]|0;m=c[(f&p)>>2]|0;if(!(a[(q&n)+1>>0]|0))v=(a[(q&n)+2>>0]|0)!=0;else v=1;a:do if((h|0)>0){t=0;while(1){s=e[(l+(t<<1)&o)>>1]|0;if(v?(u=Dq(b,s,w,0)|0,(u|0)!=0):0)r=u;else{r=m+(0-s)|0;if(r>>>0>>0){m=1;break a}else m=r}kw(r|0,c[(k+(t<<2)&p)>>2]|0,s|0)|0;s=r-q|0;a[(g&n)>>0]=s>>>8;a[(g&n)+1>>0]=s;t=t+1|0;if((t|0)>=(h|0)){x=9;break}else g=g+2|0}}else x=9;while(0);if((x|0)==9){c[(f&p)>>2]=m;m=0}i=y;return m|0}function Kq(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,q=0,r=0;o=i;i=i+16|0;if((i|0)>=(j|0))fa();n=o;e=c[(a&p)+44>>2]|0;h=a;f=c[(h&p)>>2]|0;h=c[(h&p)+4>>2]|0;a:do if(!e){m=a+40|0;e=c[(m&p)>>2]|0;g=((e|0)<0)<<31>>31;l=rw(f|0,h|0,e|0,g|0)|0;if(!l){k=a+8|0;k=dw(c[(k&p)>>2]|0,c[(k&p)+4>>2]|0,f|0,h|0)|0;q=G;r=c[(a&p)+24>>2]|0;e=tc[c[((c[(r&p)>>2]|0)&p)+8>>2]&31](r,c[(a&p)+36>>2]|0,(q|0)>(g|0)|(q|0)==(g|0)&k>>>0>e>>>0?e:k,f,h)|0;if(e)break;e=c[(m&p)>>2]|0}k=e-l|0;if((k|0)>=(b|0)){c[(d&p)>>2]=(c[(a&p)+36>>2]|0)+l;e=a;b=jw(c[(e&p)>>2]|0,c[(e&p)+4>>2]|0,b|0,((b|0)<0)<<31>>31|0)|0;e=a;c[(e&p)>>2]=b;c[(e&p)+4>>2]=G;e=0;break}e=a+16|0;f=c[(e&p)>>2]|0;if((f|0)<(b|0)){f=f<<1;f=(f|0)<128?128:f;while(1)if((f|0)<(b|0))f=f<<1;else{h=f;break}g=a+28|0;f=rg(c[(g&p)>>2]|0,h,((h|0)<0)<<31>>31)|0;if(!f){e=7;break}c[(e&p)>>2]=h;c[(g&p)>>2]=f}else f=c[(a&p)+28>>2]|0;h=a+28|0;kw(f|0,(c[(a&p)+36>>2]|0)+l|0,k|0)|0;l=a;l=jw(c[(l&p)>>2]|0,c[(l&p)+4>>2]|0,k|0,((k|0)<0)<<31>>31|0)|0;e=a;c[(e&p)>>2]=l;c[(e&p)+4>>2]=G;e=b-k|0;if((e|0)>0){g=e;do{f=c[(m&p)>>2]|0;f=(g|0)>(f|0)?f:g;e=Kq(a,f,n)|0;if(e)break a;kw((c[(h&p)>>2]|0)+(b-g)|0,c[(n&p)>>2]|0,f|0)|0;g=g-f|0}while((g|0)>0)}c[(d&p)>>2]=c[(h&p)>>2];e=0}else{c[(d&p)>>2]=e+f;b=jw(f|0,h|0,b|0,((b|0)<0)<<31>>31|0)|0;e=a;c[(e&p)>>2]=b;c[(e&p)+4>>2]=G;e=0}while(0);i=o;return e|0}function Lq(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=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,x=0,y=0,z=0,A=0;A=i;i=i+64|0;if((i|0)>=(j|0))fa();x=A+44|0;z=A;y=A+40|0;v=a+8|0;u=c[(v&p)>>2]|0;v=c[(v&p)+4>>2]|0;w=a+4|0;q=c[(w&p)>>2]|0;Pp(c[(a&p)+48>>2]|0,z,c[((c[((c[(a&p)>>2]|0)&p)+8>>2]|0)&p)+12>>2]|0,u,v);o=q+8|0;q=q+12|0;r=z+24|0;s=z+16|0;t=a+16|0;while(1){f=c[((c[(o&p)>>2]|0)&p)+4>>2]|0;g=c[(q&p)>>2]|0;h=c[(g+(f*56|0)&p)+20>>2]|0;if(!(c[(g+(f*56|0)&p)+24>>2]|0)){d=1;b=0;break}l=r;k=c[(l&p)>>2]|0;l=c[(l&p)+4>>2]|0;m=c[(s&p)>>2]|0;n=((h|0)<0)<<31>>31;b=h;e=n;d=0;do{d=d+1|0;b=mw(b|0,e|0,7)|0;e=G}while(((b|0)!=0|(e|0)!=0)&(d|0)<9);k=jw(k|0,l|0,h|0,n|0)|0;k=jw(k|0,G|0,m|0,((m|0)<0)<<31>>31|0)|0;d=jw(k|0,G|0,d|0,((d|0)<0)<<31>>31|0)|0;k=G;b=c[(t&p)>>2]|0;b=jw(b|0,((b|0)<0)<<31>>31|0,u|0,v|0)|0;e=G;if((k|0)>(e|0)|(k|0)==(e|0)&d>>>0>b>>>0){d=1;b=0;break}Qp(z,x,pm(x,h,n)|0);Qp(z,c[(g+(f*56|0)&p)+32>>2]|0,h);b=Wm(c[(w&p)>>2]|0,y)|0;if(b){d=0;break}}z=Rp(z,a+56|0)|0;i=A;return (d?z:b)|0}function Mq(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0;d=i;i=i+16|0;if((i|0)>=(j|0))fa();f=d;c[(f&p)>>2]=e;e=Wk(a,13592,f)|0;mg(a,b);i=d;return e|0}function Nq(d,e,f,g){d=d|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,q=0;q=i;i=i+16|0;if((i|0)>=(j|0))fa();m=q;h=a[(d&n)>>0]|0;if(h<<24>>24!=0&(e|0)>0){l=0;do{if((h+-48&255)<10){k=0;do{k=(k*10|0)+-48+(h<<24>>24)|0;d=d+1|0;h=a[(d&n)>>0]|0}while((h+-48&255)<10);h=0}else{k=0;h=0}b[(f+(l<<1)&o)>>1]=fs(k,h)|0;d=(a[(d&n)>>0]|0)==32?d+1|0:d;l=l+1|0;h=a[(d&n)>>0]|0}while(h<<24>>24!=0&(l|0)<(e|0))}l=g+51|0;a[(l&n)>>0]=a[(l&n)>>0]&-69;a:do if(a[(d&n)>>0]|0){f=g+44|0;b:while(1){do if(!(Gh(13448,d,10352,0)|0)){if(Gh(13464,d,10352,0)|0){c[(m&p)>>2]=0;Dn(d+3|0,m)|0;h=c[(m&p)>>2]|0;b[(f&o)>>1]=fs(h,((h|0)<0)<<31>>31)|0;break}if(Gh(13480,d,10352,0)|0)a[(l&n)>>0]=a[(l&n)>>0]|64}else a[(l&n)>>0]=a[(l&n)>>0]|4;while(0);while(1){h=a[(d&n)>>0]|0;if(h<<24>>24==32|h<<24>>24==0)break;d=d+1|0}while(1){k=d+1|0;if(!(h<<24>>24))break a;else if(h<<24>>24!=32)continue b;h=a[(k&n)>>0]|0;d=k}}}while(0);i=q;return}function Oq(d){d=d|0;var e=0,f=0;f=d+8|0;e=c[(f&p)>>2]|0;if(!e){e=vh(d)|0;c[(f&p)>>2]=e;if(e)wh(e,155,0,0,0)|0;if((c[(d&p)+408>>2]|0)==0?(b[((c[(d&p)>>2]|0)&o)+60>>1]&8)==0:0)a[(d&n)+23>>0]=1}return e|0}function Pq(b,d){b=b|0;d=d|0;var e=0;e=(c[(b&p)+32>>2]|0)+-1|0;if((e|0)>(c[((c[(b&p)+24>>2]|0)&p)+88>>2]|0)?(a[((c[(b&p)+4>>2]|0)+(e*20|0)&n)>>0]|0)==d<<24>>24:0){zh(b,e);e=1}else e=0;return e|0}function Qq(d,e,f,g,h){d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var i=0,j=0;j=Oq(d)|0;i=g+32|0;gs(d,f,c[(i&p)>>2]|0,(h|0)==55&1,c[(g&p)>>2]|0);if(!(a[(g&n)+44>>0]&32)){g=b[(g&o)+38>>1]|0;xh(j,wh(j,h,e,c[(i&p)>>2]|0,f)|0,g,-14)}else{i=c[(g&p)+8>>2]|0;a:do if(!i)i=0;else while(1){if((a[(i&n)+51>>0]&3)==2)break a;i=c[(i&p)+20>>2]|0;if(!i){i=0;break}}while(0);wh(j,h,e,c[(i&p)+40>>2]|0,f)|0;g=c[(d&p)+8>>2]|0;xh(g,-1,hs(d,i)|0,-6)}return}function Rq(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0;if((d|0)!=0?(a[(d&n)>>0]|0)==-97:0)wh(c[(b&p)+8>>2]|0,33,c[(d&p)+28>>2]|0,e,0)|0;else h=4;if(((h|0)==4?(g=is(b,d,e)|0,(g|0)!=(e|0)):0)?(f=c[(b&p)+8>>2]|0,(f|0)!=0):0)wh(f,34,g,e,0)|0;return}function Sq(b,d,e,f,g){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0;m=i;i=i+16|0;if((i|0)>=(j|0))fa();l=m;h=c[(b&p)>>2]|0;do if(((a[(h&n)+145>>0]|0)==0?(a[(b&n)+451>>0]|0)==0:0)?(k=c[(h&p)+284>>2]|0,(k|0)!=0):0){h=kc[k&7](c[(h&p)+288>>2]|0,d,e,f,g,c[(b&p)+492>>2]|0)|0;if((h|0)==1){th(b,25216,l);c[(b&p)+12>>2]=23;h=1;break}else if((h|0)==0|(h|0)==2)break;else{th(b,25232,l);c[(b&p)+12>>2]=1;h=1;break}}else h=0;while(0);i=m;return h|0}function Tq(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;d=Wq(c[(a&p)>>2]|0,d)|0;do if(d){e=Oq(a)|0;if((e|0)!=0?(Sq(a,32,c[(b<<2&p)+37088>>2]|0,d,0)|0)==0:0){xh(e,wh(e,2,b,0,0)|0,d,-1);break}mg(c[(a&p)>>2]|0,d)}while(0);return}function Uq(e,f,g,h,k,l,m){e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;m=m|0;var q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0;y=i;i=i+16|0;if((i|0)>=(j|0))fa();u=y;s=y+4|0;x=c[(e&p)>>2]|0;f=er(e,f,g,s)|0;a:do if((f|0)>=0){t=(h|0)!=0;if(t?(c[(g&p)+4>>2]|0)!=0&(f|0)!=1:0){th(e,36976,u);break}w=t?1:f;g=c[(s&p)>>2]|0;t=g;f=c[(t&p)+4>>2]|0;s=e+496|0;c[(s&p)>>2]=c[(t&p)>>2];c[(s&p)+4>>2]=f;s=Wq(x,g)|0;if(s){b:do if((Lr(e,s)|0)==0?(r=(a[(x&n)+144>>0]|0)==1?1:h,v=x+16|0,q=c[((c[(v&p)>>2]|0)+(w<<4)&p)>>2]|0,(Sq(e,18,(r|0)==1?13184:13208,0,q)|0)==0):0){h=(r|0)!=0;if(!k)f=h?4:2;else f=h?6:8;t=(l|0)!=0;if(!t?(Sq(e,f,s,0,q)|0)!=0:0)break;do if(!(a[(e&n)+451>>0]|0)){h=c[((c[(v&p)>>2]|0)+(w<<4)&p)>>2]|0;if(Gn(e)|0)break b;if(!(_h(x,s,h)|0)){if(!(bq(x,s,h)|0))break;c[(u&p)>>2]=s;th(e,37048,u);break b}if(!m){c[(u&p)>>2]=g;th(e,37024,u);break b}else{Ar(e,w);break b}}while(0);r=mh(x,76,0)|0;if(!r){a[(x&n)+65>>0]=1;c[(e&p)+12>>2]=7;v=e+64|0;c[(v&p)>>2]=(c[(v&p)>>2]|0)+1;break}q=r+0|0;h=q+76|0;do{a[(q&n)>>0]=0;q=q+1|0}while((q|0)<(h|0));c[(r&p)>>2]=s;b[(r&o)+36>>1]=-1;q=c[((c[(v&p)>>2]|0)+(w<<4)&p)+12>>2]|0;c[(r&p)+68>>2]=q;b[(r&o)+40>>1]=1;b[(r&o)+28>>1]=200;c[(e&p)+484>>2]=r;if((a[(e&n)+18>>0]|0)==0?(_v(s,26576)|0)==0:0)c[(q&p)+72>>2]=r;if(a[(x&n)+145>>0]|0)break a;g=Oq(e)|0;if(!g)break a;v=c[(e&p)+408>>2]|0;Ar(e,w);q=1<>2]=c[(v&p)>>2]|q;if(t)wh(g,146,0,0,0)|0;r=e+72|0;f=c[(r&p)>>2]|0;s=f+1|0;c[(e&p)+384>>2]=s;t=f+2|0;c[(e&p)+388>>2]=t;f=f+3|0;c[(r&p)>>2]=f;wh(g,51,w,f,2)|0;r=g+96|0;c[(r&p)>>2]=c[(r&p)>>2]|q;r=wh(g,45,f,0,0)|0;wh(g,25,(c[(x&p)+24>>2]&32768|0)!=0?1:4,f,0)|0;wh(g,52,w,2,f)|0;wh(g,25,d[(x&n)+62>>0]|0,f,0)|0;wh(g,52,w,5,f)|0;h=g+32|0;q=c[(h&p)>>2]|0;if(q>>>0>r>>>0)c[((c[(g&p)+4>>2]|0)+(r*20|0)&p)+8>>2]=q;c[((c[(g&p)+24>>2]|0)&p)+88>>2]=q+-1;if(!(l|k))c[(e&p)+416>>2]=wh(g,121,w,t,0)|0;else wh(g,25,0,t,0)|0;js(e,w);wh(g,74,0,s,0)|0;wh(g,28,0,f,0)|0;wh(g,75,0,f,s)|0;q=c[(g&p)+4>>2]|0;if(q)a[(q+(((c[(h&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=8;wh(g,61,0,0,0)|0;break a}while(0);mg(x,s)}}while(0);i=y;return}function Vq(f,g,h,k,l){f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;var m=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;R=i;i=i+176|0;if((i|0)>=(j|0))fa();M=R+80|0;J=R+168|0;G=R;H=R+136|0;I=R+112|0;N=c[(f&p)>>2]|0;a:do if((!((h|0)==0&(l|0)==0)?(O=N+65|0,(a[(O&n)>>0]|0)==0):0)?(P=f+484|0,Q=c[(P&p)>>2]|0,(Q|0)!=0):0){L=N+145|0;if(a[(L&n)>>0]|0)c[(Q&p)+32>>2]=c[(N&p)+140>>2];b:do if(k&32){s=Q+44|0;r=d[(s&n)>>0]|0;if(r&8){th(f,36584,M);break a}if(!(r&4)){c[(M&p)>>2]=c[(Q&p)>>2];th(f,36640,M);break}a[(s&n)>>0]=r|32;t=c[(f&p)+8>>2]|0;s=c[(f&p)+416>>2]|0;if(s){if((s|0)<0)s=(c[(t&p)+32>>2]|0)+-1|0;if(!(a[((c[(t&p)>>2]|0)&n)+65>>0]|0))s=(c[(t&p)+4>>2]|0)+(s*20|0)|0;else s=29120;a[(s&n)>>0]=120}s=c[(f&p)+420>>2]|0;if(s){if((s|0)<0)s=(c[(t&p)+32>>2]|0)+-1|0;if(!(a[((c[(t&p)>>2]|0)&n)+65>>0]|0))r=(c[(t&p)+4>>2]|0)+(s*20|0)|0;else r=29120;a[(r&n)>>0]=16}r=Q+36|0;if((b[(r&o)>>1]|0)>-1){s=lr(f,0,0)|0;if(!s)break;C=kh(c[(f&p)>>2]|0,c[((c[(Q&p)+4>>2]|0)+((b[(r&o)>>1]|0)*24|0)&p)>>2]|0)|0;D=c[(s&p)+4>>2]|0;c[(D&p)+4>>2]=C;a[(D&n)+12>>0]=a[(f&n)+448>>0]|0;s=$q(f,0,0,0,s,d[(Q&n)+45>>0]|0,0,0,0,0)|0;if(!s)break;x=s+51|0;a[(x&n)>>0]=a[(x&n)>>0]&-4|2;b[(r&o)>>1]=-1;x=b[(s&o)+46>>1]|0}else{s=c[(Q&p)+8>>2]|0;c:do if(!s)s=0;else while(1){if((a[(s&n)+51>>0]&3)==2)break c;s=c[(s&p)+20>>2]|0;if(!s){s=0;break}}while(0);y=s+46|0;t=b[(y&o)>>1]|0;if((t&65535)>1){w=c[(s&p)+4>>2]|0;v=s+48|0;x=1;r=1;do{m=b[(w+(x<<1)&o)>>1]|0;u=r;q=w;while(1){if((u|0)<=0){F=36;break}if((b[(q&o)>>1]|0)==m<<16>>16){F=35;break}else{u=u+-1|0;q=q+2|0}}if((F|0)==35){F=0;b[(v&o)>>1]=(b[(v&o)>>1]|0)+-1<<16>>16}else if((F|0)==36){F=0;b[(w+(r<<1)&o)>>1]=m;t=b[(y&o)>>1]|0;r=r+1|0}x=x+1|0}while((x|0)<(t&65535|0))}else r=1;x=r&65535;b[(y&o)>>1]=x}u=s+51|0;t=a[(u&n)>>0]|32;a[(u&n)>>0]=t;D=x&65535;if(!(a[(N&n)+147>>0]|0)){if(x<<16>>16){t=c[(s&p)+4>>2]|0;r=c[(Q&p)+4>>2]|0;q=0;do{a[(r+((b[(t+(q<<1)&o)>>1]|0)*24|0)&n)+20>>0]=1;q=q+1|0}while((q|0)<(D|0));t=a[(u&n)>>0]|0}a[(u&n)>>0]=t|8}c[(s&p)+40>>2]=c[(Q&p)+32>>2];u=c[(Q&p)+8>>2]|0;if(u){A=x<<16>>16==0;B=s+4|0;C=s+32|0;do{d:do if((a[(u&n)+51>>0]&3)!=2){do if(A)t=b[(u&o)+46>>1]|0;else{v=c[(u&p)+4>>2]|0;t=b[(u&o)+46>>1]|0;q=t&65535;m=c[(B&p)>>2]|0;z=0;r=0;do{w=b[(m+(z<<1)&o)>>1]|0;y=q;x=v;while(1){if((y|0)<=0){x=1;break}if((b[(x&o)>>1]|0)==w<<16>>16){x=0;break}else{y=y+-1|0;x=x+2|0}}r=x+r|0;z=z+1|0}while((z|0)<(D|0));q=u+46|0;if(!r)break;if(ks(N,u,(t&65535)+r|0)|0)break b;if(A)break d;w=b[(q&o)>>1]|0;z=u+4|0;m=u+32|0;y=w;x=0;w=w&65535;while(1){t=c[(z&p)>>2]|0;r=b[((c[(B&p)>>2]|0)+(x<<1)&o)>>1]|0;y=y&65535;v=t;while(1){if((y|0)<=0){F=63;break}if((b[(v&o)>>1]|0)==r<<16>>16)break;else{y=y+-1|0;v=v+2|0}}if((F|0)==63){F=0;b[(t+(w<<1)&o)>>1]=r;c[((c[(m&p)>>2]|0)+(w<<2)&p)>>2]=c[((c[(C&p)>>2]|0)+(x<<2)&p)>>2];w=w+1|0}x=x+1|0;if((x|0)>=(D|0))break d;y=b[(q&o)>>1]|0}}while(0);b[(u&o)+48>>1]=t}while(0);u=c[(u&p)+20>>2]|0}while((u|0)!=0)}y=Q+38|0;t=b[(y&o)>>1]|0;r=t<<16>>16;if((D|0)>=(r|0)){b[(s&o)+48>>1]=t;break}if((ks(N,s,r)|0)==0?(E=b[(y&o)>>1]|0,E<<16>>16>0):0){v=s+4|0;x=s+32|0;t=E;w=0;s=D;do{q=c[(v&p)>>2]|0;u=s;r=q;while(1){if((u|0)<=0){F=74;break}if((b[(r&o)>>1]|0)==(w|0))break;else{u=u+-1|0;r=r+2|0}}if((F|0)==74){F=0;b[(q+(s<<1)&o)>>1]=w;c[((c[(x&p)>>2]|0)+(s<<2)&p)>>2]=11152;t=b[(y&o)>>1]|0;s=s+1|0}w=w+1|0}while((w|0)<(t<<16>>16|0))}}while(0);F=Q+68|0;s=c[(F&p)>>2]|0;e:do if(s){r=c[(N&p)+20>>2]|0;if((r|0)>0){q=c[(N&p)+16>>2]|0;t=0;while(1){m=t+1|0;if((c[(q+(t<<4)&p)+12>>2]|0)==(s|0))break e;if((m|0)<(r|0))t=m;else{t=m;break}}}else t=0}else t=-1e6;while(0);q=c[(Q&p)+24>>2]|0;f:do if(q){c[(H&p)>>2]=0;c[(H&p)+4>>2]=0;c[(H&p)+8>>2]=0;c[(H&p)+12>>2]=0;c[(H&p)+16>>2]=0;c[(H&p)+20>>2]=0;c[(H&p)+24>>2]=0;c[(H&p)+28>>2]=0;s=G+0|0;r=s+80|0;do{c[(s&p)>>2]=0;s=s+4|0}while((s|0)<(r|0));c[(G&p)>>2]=1;c[(G&p)+16>>2]=c[(Q&p)>>2];c[(G&p)+24>>2]=Q;c[(G&p)+48>>2]=-1;c[(H&p)>>2]=f;c[(H&p)+4>>2]=G;b[(H&o)+28>>1]=4;s=q+4|0;if((c[(q&p)>>2]|0)>0){r=0;do{if(ls(H,c[((c[(s&p)>>2]|0)+(r*20|0)&p)>>2]|0)|0)break f;r=r+1|0}while((r|0)<(c[(q&p)>>2]|0))}}while(0);D=Q+38|0;m=b[(D&o)>>1]|0;if(m<<16>>16>0){s=m<<16>>16;r=c[(Q&p)+4>>2]|0;q=0;while(1){q=(d[(r&n)+22>>0]|0)+q|0;s=s+-1|0;if((s|0)<=0)break;else r=r+24|0}}else q=0;b[(Q&o)+42>>1]=fs(((e[(Q&o)+36>>1]|0)>>>15&65535)+q<<2,0)|0;q=c[(Q&p)+8>>2]|0;if(q)do{ms(q);q=c[(q&p)+20>>2]|0}while((q|0)!=0);if(!(a[(L&n)>>0]|0)){E=Oq(f)|0;if(!E)break;wh(E,61,0,0,0)|0;B=(c[(Q&p)+12>>2]|0)==0;r=B?36672:36680;B=B?31232:35480;do if(!l){q=k<<24>>24==0?h:f+504|0;l=c[(q&p)>>2]|0;s=c[(f&p)+496>>2]|0;m=l-s|0;if((a[(l&n)>>0]|0)!=59)m=(c[(q&p)+4>>2]|0)+m|0;c[(M&p)>>2]=r;c[(M&p)+4>>2]=m;c[(M&p)+8>>2]=s;s=f+388|0;m=Q;r=uh(N,36688,M)|0}else{s=f+388|0;wh(E,55,1,c[(s&p)>>2]|0,t)|0;r=c[(E&p)+4>>2]|0;if(r)a[(r+(((c[(E&p)+32>>2]|0)+-1|0)*20|0)&n)+3>>0]=4;c[(f&p)+68>>2]=2;a[(I&n)>>0]=14;c[(I&p)+4>>2]=1;a[(I&n)+1>>0]=0;c[(I&p)+8>>2]=0;c[(I&p)+12>>2]=0;ir(f,l,I)|0;wh(E,61,1,0,0)|0;if(!(c[(f&p)+64>>2]|0)){m=ns(f,l)|0;if(!m)break a;I=m+38|0;b[(D&o)>>1]=b[(I&o)>>1]|0;l=m+4|0;c[(Q&p)+4>>2]=c[(l&p)>>2];b[(I&o)>>1]=0;c[(l&p)>>2]=0;kg(N,m)}C=Q+4|0;z=b[(D&o)>>1]|0;if(z<<16>>16>0){v=z<<16>>16;w=0;r=0;x=c[(C&p)>>2]|0;while(1){m=c[(x&p)>>2]|0;q=0;while(1){u=a[(m&n)>>0]|0;if(u<<24>>24==34)q=q+1|0;else if(!(u<<24>>24))break;m=m+1|0;q=q+1|0}r=r+7+q|0;w=w+1|0;if((w|0)==(v|0))break;else x=x+24|0}u=r+2|0}else u=2;m=c[(Q&p)>>2]|0;r=0;while(1){q=a[(m&n)>>0]|0;if(q<<24>>24==34)r=r+1|0;else if(!(q<<24>>24))break;m=m+1|0;r=r+1|0}x=r+u|0;A=(x|0)<50;u=A?10360:36880;y=A?20240:36888;A=A?33952:36896;x=((z<<16>>16)*6|0)+35+x|0;r=qg(x,((x|0)<0)<<31>>31)|0;if(!r){a[(O&n)>>0]=1;m=Q;r=0;break}ad(x,r,36904,M)|0;q=r;while(1)if(!(a[(q&n)>>0]|0))break;else q=q+1|0;c[(J&p)>>2]=q-r&1073741823;os(r,J,c[(Q&p)>>2]|0);m=c[(J&p)>>2]|0;v=m+1|0;c[(J&p)>>2]=v;a[(r+m&n)>>0]=40;m=x-v|0;q=r+v|0;if((b[(D&o)>>1]|0)>0){z=0;w=c[(C&p)>>2]|0;while(1){ad(m,q,u,M)|0;q=r+v|0;if(!q)q=0;else{u=q;while(1)if(!(a[(u&n)>>0]|0))break;else u=u+1|0;q=u-q&1073741823}c[(J&p)>>2]=q+v;os(r,J,c[(w&p)>>2]|0);q=c[((a[(w&n)+21>>0]|0)+-65<<2&p)+36920>>2]|0;u=q;while(1)if(!(a[(u&n)>>0]|0))break;else u=u+1|0;v=u-q&1073741823;u=c[(J&p)>>2]|0;kw(r+u|0,q|0,v|0)|0;v=u+v|0;c[(J&p)>>2]=v;u=z+1|0;m=x-v|0;q=r+v|0;if((u|0)<(b[(D&o)>>1]|0)){z=u;w=w+24|0;u=y}else break}}c[(M&p)>>2]=A;ad(m,q,10344,M)|0;m=Q}while(0);q=N+16|0;k=c[(m&p)>>2]|0;I=c[(s&p)>>2]|0;l=c[(f&p)+384>>2]|0;c[(M&p)>>2]=c[((c[(q&p)>>2]|0)+(t<<4)&p)>>2];c[(M&p)+4>>2]=(t|0)==1?13184:13208;c[(M&p)+8>>2]=B;c[(M&p)+12>>2]=k;c[(M&p)+16>>2]=k;c[(M&p)+20>>2]=I;c[(M&p)+24>>2]=r;c[(M&p)+28>>2]=l;Br(f,36704,M);mg(N,r);Dr(f,t);if((a[(Q&n)+44>>0]&8)!=0?(K=c[(q&p)>>2]|0,(c[((c[(K+(t<<4)&p)+12>>2]|0)&p)+72>>2]|0)==0):0){c[(M&p)>>2]=c[(K+(t<<4)&p)>>2];Br(f,36792,M)}c[(M&p)>>2]=c[(m&p)>>2];Ir(E,t,uh(N,36840,M)|0);if(!(a[(L&n)>>0]|0))break}else m=Q;if(Ik((c[(F&p)>>2]|0)+8|0,c[(m&p)>>2]|0,Q)|0){a[(O&n)>>0]=1;break}c[(P&p)>>2]=0;l=N+24|0;c[(l&p)>>2]=c[(l&p)>>2]|2;if(!(c[(Q&p)+12>>2]|0)){l=c[(f&p)+496>>2]|0;c[(Q&p)+48>>2]=(Nn(l,(c[(((c[(g&p)>>2]|0)==0?h:g)&p)>>2]|0)-l|0)|0)+13}}while(0);i=R;return}function Wq(b,d){b=b|0;d=d|0;var e=0,f=0;if(!d)e=0;else{f=c[(d&p)>>2]|0;d=c[(d&p)+4>>2]|0;if((f|0)!=0?(e=jw(d|0,0,1,0)|0,e=mh(b,e,G)|0,(e|0)!=0):0){kw(e|0,f|0,d|0)|0;a[(e+d&n)>>0]=0}else e=0;lo(e)}return e|0}function Xq(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,o=0,q=0;o=i;i=i+16|0;if((i|0)>=(j|0))fa();m=o;a:do if(b){g=a[(b&n)>>0]|0;b:do if(!(g<<24>>24)){f=67;g=0}else{k=g;f=67;h=0;g=0;do{h=d[(k&255&n)+9328>>0]|0|h<<8;b=b+1|0;if((h|0)==1685026146)if(f<<24>>24==67){f=69;h=1685026146;l=5}else l=13;else if((h|0)==1668050786){f=66;l=5}else if((h|0)==1718382433)if(f<<24>>24==67){f=69;h=1718382433;l=5}else l=13;else if((h|0)==1919246700)if(f<<24>>24==67){f=69;h=1919246700;l=5}else l=14;else if((h|0)==1952807028){f=66;l=5}else if((h|0)==1651273570)if(f<<24>>24==69|f<<24>>24==67){q=a[(b&n)>>0]|0;k=q;f=65;h=1651273570;g=q<<24>>24==40?b:g}else l=14;else if((h|0)!=1667785074)if((h&16777215|0)==6909556){f=68;break b}else l=5;else{f=66;h=1667785074;g=b;l=5}if((l|0)==13)l=5;else if((l|0)==14)l=5;if((l|0)==5){l=0;k=a[(b&n)>>0]|0}}while(k<<24>>24!=0)}while(0);if((e|0)!=0?(a[(e&n)>>0]=1,f<<24>>24<67):0){if(!g){a[(e&n)>>0]=5;break}b=a[(g&n)>>0]|0;if(b<<24>>24){while(1){if(((b&255)+-48|0)>>>0<10)break;g=g+1|0;b=a[(g&n)>>0]|0;if(!(b<<24>>24))break a}c[(m&p)>>2]=0;Dn(g,m)|0;g=((c[(m&p)>>2]|0)/4|0)+1|0;g=(g|0)>255?255:g;c[(m&p)>>2]=g;a[(e&n)>>0]=g}}}else f=67;while(0);i=o;return f|0}function Yq(e,f){e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,q=0,r=0,s=0,t=0;r=i;i=i+32|0;if((i|0)>=(j|0))fa();m=r;q=c[(e&p)>>2]|0;k=c[(e&p)+484>>2]|0;do if(k){h=(b[(k&o)+38>>1]|0)+-1|0;l=c[(k&p)+4>>2]|0;s=c[(f&p)>>2]|0;t=(d[(q&n)+145>>0]|0)+4|0;c[(m&p)>>2]=0;c[(m&p)+4>>2]=0;c[(m&p)+8>>2]=0;c[(m&p)+12>>2]=0;c[(m&p)+16>>2]=0;c[(m&p)+20>>2]=0;k=m+20|0;a[(k&n)>>0]=t;c[(m&p)>>2]=78;c[(m&p)+4>>2]=79;c[(m&p)+24>>2]=0;rs(m,s)|0;if(!(a[(k&n)>>0]|0)){c[(m&p)>>2]=c[(l+(h*24|0)&p)>>2];th(e,36480,m);break}k=l+(h*24|0)+4|0;Gk(q,c[(k&p)>>2]|0);c[(k&p)>>2]=Mr(q,c[(f&p)>>2]|0,1,0)|0;l=l+(h*24|0)+8|0;mg(q,c[(l&p)>>2]|0);h=c[(f&p)+4>>2]|0;k=(c[(f&p)+8>>2]|0)-h|0;if((h|0)!=0?(g=jw(k|0,((k|0)<0)<<31>>31|0,1,0)|0,g=mh(q,g,G)|0,(g|0)!=0):0){kw(g|0,h|0,k|0)|0;a[(g+k&n)>>0]=0}else g=0;c[(l&p)>>2]=g}while(0);Gk(q,c[(f&p)>>2]|0);i=r;return}function Zq(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,k=0;k=i;i=i+16|0;if((i|0)>=(j|0))fa();h=k;if((b|0)==72&(d|0)!=0&(e|0)!=0?(c[(a&p)+64>>2]|0)==0:0)b=ss(c[(a&p)>>2]|0,d,e)|0;else{b=nr(c[(a&p)>>2]|0,b,f,1)|0;ts(c[(a&p)>>2]|0,b,d,e)}if((b|0)!=0?(g=c[((c[(a&p)>>2]|0)&p)+100>>2]|0,(g|0)<(c[(b&p)+24>>2]|0)):0){c[(h&p)>>2]=g;th(a,27152,h)}i=k;return b|0}function _q(e,f,g,h,k){e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;var l=0,m=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;i=i+16|0;if((i|0)>=(j|0))fa();C=D;A=c[(e&p)+484>>2]|0;do if((A|0)!=0?(a[(e&n)+451>>0]|0)==0:0){B=A+44|0;m=d[(B&n)>>0]|0;if(m&4){c[(C&p)>>2]=c[(A&p)>>2];th(e,36376,C);break}y=m|4;a[(B&n)>>0]=y;z=(f|0)==0;if(z){m=(b[(A&o)+38>>1]|0)+-1|0;w=c[(A&p)+4>>2]|0;l=w+(m*24|0)+23|0;a[(l&n)>>0]=d[(l&n)>>0]|1;l=m;q=1;m=c[(w+(m*24|0)&p)+12>>2]|0}else{x=c[(f&p)>>2]|0;if((x|0)>0){u=f+4|0;v=A+4|0;t=b[(A&o)+38>>1]|0;w=0;m=0;do{a:do if(t<<16>>16>0){r=c[((c[(u&p)>>2]|0)+(w*20|0)&p)+4>>2]|0;s=c[(v&p)>>2]|0;q=0;while(1){l=q+1|0;if(!(dd(r,c[(s+(q*24|0)&p)>>2]|0)|0))break;if((l|0)<(t<<16>>16|0))q=l;else break a}l=s+(q*24|0)+23|0;a[(l&n)>>0]=d[(l&n)>>0]|1;l=q;m=c[(s+(q*24|0)&p)+12>>2]|0}else l=0;while(0);w=w+1|0}while((w|0)!=(x|0))}else{l=-1;m=0}q=(x|0)==1}if(q&(m|0)!=0?(dd(m,11144)|0|k|0)==0:0){b[(A&o)+36>>1]=l;a[(A&n)+45>>0]=g;a[(B&n)>>0]=y|h<<3;if(z){f=0;break}a[(e&n)+448>>0]=a[((c[(f&p)+4>>2]|0)&n)+12>>0]|0;break}if(h){th(e,36424,C);break}m=c[(e&p)+8>>2]|0;l=(m|0)!=0;if(l)c[(e&p)+420>>2]=wh(m,156,0,0,0)|0;f=$q(e,0,0,0,f,g,0,0,k,0)|0;if((f|0)!=0?(w=f+51|0,a[(w&n)>>0]=a[(w&n)>>0]&-4|2,l):0){f=c[(e&p)+420>>2]|0;l=c[(m&p)+32>>2]|0;if(l>>>0>f>>>0)c[((c[(m&p)+4>>2]|0)+(f*20|0)&p)+8>>2]=l;c[((c[(m&p)+24>>2]|0)&p)+88>>2]=l+-1;f=0}else f=0}while(0);Nk(c[(e&p)>>2]|0,f);i=D;return}function $q(f,g,h,k,l,m,q,r,s,t){f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;m=m|0;q=q|0;r=r|0;s=s|0;t=t|0;var 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;Y=i;i=i+144|0;if((i|0)>=(j|0))fa();V=Y;E=Y+112|0;x=Y+88|0;T=Y+84|0;N=Y+80|0;X=c[(f&p)>>2]|0;c[(T&p)>>2]=0;c[(N&p)>>2]=0;S=X+65|0;a:do if(((a[(S&n)>>0]|0)==0?(a[(f&n)+451>>0]|0)==0:0)?(Gn(f)|0)==0:0){U=(k|0)!=0;b:do if(U){g=er(f,g,h,T)|0;if((g|0)<0){u=0;h=0;break a}if((a[(X&n)+145>>0]|0)==0?(u=Jr(f,k)|0,(c[(h&p)+4>>2]|0)==0&(u|0)!=0):0)g=(c[(u&p)+68>>2]|0)==(c[((c[(X&p)+16>>2]|0)&p)+28>>2]|0)?1:g;h=c[(T&p)>>2]|0;u=c[(f&p)>>2]|0;c[(x&p)>>2]=f;u=c[(u&p)+16>>2]|0;c[(x&p)+12>>2]=c[(u+(g<<4)&p)>>2];c[(x&p)+4>>2]=c[(u+(g<<4)&p)+12>>2];c[(x&p)+16>>2]=20632;c[(x&p)+20>>2]=h;u=(g|0)==1;c[(x&p)+8>>2]=u&1;Kr(x,k)|0;w=Ur(f,0,k+8|0)|0;if(!w){u=0;h=0;break a}if(u?(c[((c[(X&p)+16>>2]|0)&p)+28>>2]|0)!=(c[(w&p)+68>>2]|0):0){c[(V&p)>>2]=c[(w&p)>>2];th(f,35920,V);u=0;h=0;break a}if((a[(w&n)+44>>0]&32)!=0?(v=c[(w&p)+8>>2]|0,(v|0)!=0):0){u=v;while(1){if((a[(u&n)+51>>0]&3)==2){v=g;M=u;x=w;break b}u=c[(u&p)+20>>2]|0;if(!u){v=g;M=0;x=w;break}}}else{v=g;M=0;x=w}}else{x=c[(f&p)+484>>2]|0;if(!x){u=0;h=0;break a}g=c[(x&p)+68>>2]|0;if(g){u=c[(X&p)+20>>2]|0;if((u|0)>0){h=c[(X&p)+16>>2]|0;w=0;while(1){v=w+1|0;if((c[(h+(w<<4)&p)+12>>2]|0)==(g|0)){h=0;v=w;M=0;break b}if((v|0)<(u|0))w=v;else{h=0;M=0;break}}}else{h=0;v=0;M=0}}else{h=0;v=-1e6;M=0}}while(0);R=X+16|0;F=c[(R&p)>>2]|0;g=F+(v<<4)|0;A=c[(x&p)>>2]|0;if(((Fc(A,25568,7)|0)==0?(a[(X&n)+145>>0]|0)==0:0)?(Fc(A+7|0,35976,9)|0)!=0:0){c[(V&p)>>2]=A;th(f,35992,V);u=0;h=0;break}if(c[(x&p)+12>>2]|0){th(f,36024,V);u=0;h=0;break}Q=x+44|0;if(a[(Q&n)>>0]&16){th(f,36056,V);u=0;h=0;break}G=(h|0)==0;if(!G){h=Wq(X,h)|0;if(!h){u=0;h=0;break}if(Lr(f,h)|0){u=0;break}if((a[(X&n)+145>>0]|0)==0?(_h(X,h,0)|0)!=0:0){c[(V&p)>>2]=h;th(f,36096,V);u=0;break}if(bq(X,h,c[(g&p)>>2]|0)|0)if(!t){c[(V&p)>>2]=h;th(f,36136,V);u=0;break}else{Ar(f,v);u=0;break}else w=h}else{u=c[(x&p)+8>>2]|0;if(!u)w=1;else{w=1;do{w=w+1|0;u=c[(u&p)+20>>2]|0}while((u|0)!=0)}c[(V&p)>>2]=A;c[(V&p)+4>>2]=w;w=uh(X,36160,V)|0;if(!w){u=0;h=0;break}}g=c[(g&p)>>2]|0;u=(v|0)==1;O=u?13184:13208;if((Sq(f,18,O,0,g)|0)==0?(Sq(f,u?3:1,w,c[(x&p)>>2]|0,g)|0)==0:0){if(!l){l=lr(f,0,0)|0;if(!l){l=0;u=0;h=w;break}I=kh(c[(f&p)>>2]|0,c[((c[(x&p)+4>>2]|0)+(((b[(x&o)+38>>1]|0)+-1|0)*24|0)&p)>>2]|0)|0;J=c[(l&p)+4>>2]|0;c[(J&p)+4>>2]=I;a[(J&n)+12>>0]=s}D=c[(l&p)>>2]|0;if((D|0)>0){A=c[(l&p)+4>>2]|0;y=0;g=0;do{u=c[(A+(y*20|0)&p)>>2]|0;if(u){h=c[(u&p)+8>>2]|0;if(!h)u=1;else{u=h;while(1)if(!(a[(u&n)>>0]|0))break;else u=u+1|0;u=(u-h&1073741823)+1|0}g=u+g|0}y=y+1|0}while((y|0)<(D|0));h=g}else h=0;if(!w)u=0;else{g=w;while(1)if(!(a[(g&n)>>0]|0))break;else g=g+1|0;u=g-w&1073741823}I=(M|0)!=0;if(I)g=e[(M&o)+46>>1]|0;else g=1;P=us(X,D+g&65535,h+1+u|0,N)|0;c:do if(!(a[(S&n)>>0]|0)){H=c[(N&p)>>2]|0;c[(P&p)>>2]=H;L=u+1|0;C=H+L|0;c[(N&p)>>2]=C;kw(H|0,w|0,L|0)|0;c[(P&p)+12>>2]=x;L=P+50|0;a[(L&n)>>0]=m;H=P+51|0;a[(H&n)>>0]=a[(H&n)>>0]&-12|((m|0)!=0&1)<<3&255|G&1;K=P+24|0;c[(K&p)>>2]=c[((c[(R&p)>>2]|0)+(v<<4)&p)+12>>2];g=c[(l&p)>>2]|0;J=P+46|0;b[(J&o)>>1]=g;if(r){c[(E&p)>>2]=0;c[(E&p)+4>>2]=0;c[(E&p)+8>>2]=0;c[(E&p)+12>>2]=0;c[(E&p)+16>>2]=0;c[(E&p)+20>>2]=0;c[(E&p)+24>>2]=0;c[(E&p)+28>>2]=0;A=V+0|0;h=A+80|0;do{c[(A&p)>>2]=0;A=A+4|0}while((A|0)<(h|0));c[(V&p)>>2]=1;c[(V&p)+16>>2]=c[(x&p)>>2];c[(V&p)+24>>2]=x;c[(V&p)+48>>2]=-1;c[(E&p)>>2]=f;c[(E&p)+4>>2]=V;b[(E&o)+28>>1]=16;ls(E,r)|0;c[(P&p)+36>>2]=r;g=c[(l&p)>>2]|0}z=(d[((c[(F+(v<<4)&p)+12>>2]|0)&n)+76>>0]|0)>3;d:do if((g|0)>0){G=x+4|0;F=x+38|0;E=P+4|0;r=X+145|0;g=P+32|0;y=P+28|0;h=0;s=c[(l&p)+4>>2]|0;while(1){u=c[(s&p)+4>>2]|0;A=b[(F&o)>>1]|0;e:do if(A<<16>>16>0){D=0;B=c[(G&p)>>2]|0;while(1){if(!(dd(u,c[(B&p)>>2]|0)|0)){t=D;break e}D=D+1|0;if((D|0)<(A<<16>>16|0))B=B+24|0;else{t=D;break}}}else t=0;while(0);if((t|0)>=(A<<16>>16|0))break;b[((c[(E&p)>>2]|0)+(h<<1)&o)>>1]=t;D=c[(s&p)>>2]|0;if(!D){D=c[((c[(G&p)>>2]|0)+(t*24|0)&p)+16>>2]|0;D=(D|0)!=0?D:11152}else{B=c[(D&p)+8>>2]|0;if(!B)D=1;else{D=B;while(1)if(!(a[(D&n)>>0]|0))break;else D=D+1|0;D=(D-B&1073741823)+1|0}kw(C|0,B|0,D|0)|0;B=c[(N&p)>>2]|0;C=B+D|0;c[(N&p)>>2]=C;D=B}if((a[(r&n)>>0]|0)==0?(cr(f,D)|0)==0:0){h=0;u=0;W=134;break c}c[((c[(g&p)>>2]|0)+(h<<2)&p)>>2]=D;a[((c[(y&p)>>2]|0)+h&n)>>0]=z?a[(s&n)+12>>0]|0:0;if(!(a[((c[(G&p)>>2]|0)+(t*24|0)&n)+20>>0]|0))a[(H&n)>>0]=a[(H&n)>>0]&-9;h=h+1|0;if((h|0)<(c[(l&p)>>2]|0))s=s+20|0;else break d}c[(V&p)>>2]=c[(x&p)>>2];c[(V&p)+4>>2]=u;th(f,36184,V);a[(f&n)+17>>0]=1;h=0;u=0;W=134;break c}else h=0;while(0);do if(I){z=M+46|0;A=b[(z&o)>>1]|0;if(!(A<<16>>16))break;E=M+4|0;F=P+4|0;G=P+48|0;s=M+32|0;t=P+32|0;g=M+28|0;y=P+28|0;r=0;do{B=b[((c[(E&p)>>2]|0)+(r<<1)&o)>>1]|0;u=c[(F&p)>>2]|0;D=e[(J&o)>>1]|0;C=u;while(1){if((D|0)<=0){W=92;break}if((b[(C&o)>>1]|0)==B<<16>>16){W=91;break}else{D=D+-1|0;C=C+2|0}}if((W|0)==91){W=0;b[(G&o)>>1]=(b[(G&o)>>1]|0)+-1<<16>>16}else if((W|0)==92){W=0;b[(u+(h<<1)&o)>>1]=B;c[((c[(t&p)>>2]|0)+(h<<2)&p)>>2]=c[((c[(s&p)>>2]|0)+(r<<2)&p)>>2];a[((c[(y&p)>>2]|0)+h&n)>>0]=a[((c[(g&p)>>2]|0)+r&n)>>0]|0;A=b[(z&o)>>1]|0;h=h+1|0}r=r+1|0}while((r|0)<(A&65535|0))}else{b[((c[(P&p)+4>>2]|0)+(h<<1)&o)>>1]=-1;c[((c[(P&p)+32>>2]|0)+(h<<2)&p)>>2]=11152}while(0);cq(P);r=f+484|0;g=c[(r&p)>>2]|0;if(!g){ms(P);g=c[(r&p)>>2]|0}f:do if((x|0)==(g|0)){u=c[(x&p)+8>>2]|0;if(!u)break;B=b[(J&o)>>1]|0;C=P+4|0;D=P+32|0;while(1){if((b[(u&o)+46>>1]|0)==B<<16>>16){g:do if(!(B<<16>>16)){r=0;g=0}else{y=c[(u&p)+4>>2]|0;z=c[(C&p)>>2]|0;A=u+32|0;g=0;while(1){if((b[(y+(g<<1)&o)>>1]|0)!=(b[(z+(g<<1)&o)>>1]|0)){r=B;break g}r=c[((c[(A&p)>>2]|0)+(g<<2)&p)>>2]|0;h=c[((c[(D&p)>>2]|0)+(g<<2)&p)>>2]|0;if((r|0)!=(h|0)?(dd(r,h)|0)!=0:0){r=B;break g}g=g+1|0;if((g|0)>=(B&65535|0)){r=B;break}}}while(0);if((g|0)==(r&65535|0))break}u=c[(u&p)+20>>2]|0;if(!u)break f}g=u+50|0;h=a[(g&n)>>0]|0;r=a[(L&n)>>0]|0;if(h<<24>>24==r<<24>>24){h=0;break c}if(!(h<<24>>24==10|r<<24>>24==10)){c[(V&p)>>2]=0;th(f,36216,V);h=a[(g&n)>>0]|0}if(h<<24>>24!=10){h=0;W=134;break c}a[(g&n)>>0]=a[(L&n)>>0]|0;h=0;break c}while(0);h=X+145|0;do if(!(a[(h&n)>>0]|0)){if(c[(f&p)+64>>2]|0){W=126;break}if(!((a[(Q&n)>>0]&32)==0|U)){W=126;break}u=f+72|0;r=(c[(u&p)>>2]|0)+1|0;c[(u&p)>>2]=r;u=Oq(f)|0;if(!u){h=0;u=0;W=134;break c}J=c[(f&p)+408>>2]|0;J=(J|0)==0?f:J;Ar(f,v);I=J+328|0;c[(I&p)>>2]=c[(I&p)>>2]|1<>0]=d[(J&n)>>0]|1;wh(u,120,v,r,0)|0;if(!q)g=0;else{g=c[(c[(T&p)>>2]&p)>>2]|0;J=(c[(f&p)+504>>2]|0)-g+(c[(f&p)+508>>2]|0)|0;I=J+-1|0;J=(a[(g+I&n)>>0]|0)==59?I:J;c[(V&p)>>2]=(m|0)==0?10360:36288;c[(V&p)+4>>2]=J;c[(V&p)+8>>2]=g;g=uh(X,36264,V)|0}I=c[(P&p)>>2]|0;J=c[(x&p)>>2]|0;c[(V&p)>>2]=c[((c[(R&p)>>2]|0)+(v<<4)&p)>>2];c[(V&p)+4>>2]=O;c[(V&p)+8>>2]=I;c[(V&p)+12>>2]=J;c[(V&p)+16>>2]=r;c[(V&p)+20>>2]=g;Br(f,36296,V);mg(X,g);if(!U)break;vs(f,P,r);Dr(f,v);c[(V&p)>>2]=c[(P&p)>>2];Ir(u,v,uh(X,36344,V)|0);wh(u,144,0,0,0)|0;W=126}else{if(Ik((c[(K&p)>>2]|0)+24|0,c[(P&p)>>2]|0,P)|0){a[(S&n)>>0]=1;h=0;u=0;W=134;break c}J=X+24|0;c[(J&p)>>2]=c[(J&p)>>2]|2;if(!U)break;c[(P&p)+40>>2]=c[(X&p)+140>>2];W=126}while(0);if((W|0)==126?!((a[(h&n)>>0]|0)!=0|(k|0)==0):0){h=0;u=0;W=134;break}h=c[(x&p)+8>>2]|0;do if((m|0)==5){if(!h){h=0;break}if((a[(h&n)+50>>0]|0)==5)break;do{u=h+20|0;h=c[(u&p)>>2]|0;if(!h){h=0;break}}while((a[(h&n)+50>>0]|0)!=5);c[(P&p)+20>>2]=h;c[(u&p)>>2]=P;r=0;u=P;h=w;break a}while(0);c[(P&p)+20>>2]=h;c[(x&p)+8>>2]=P;r=0;u=P;h=w;break a}else{h=r;u=0;W=134}while(0);if((W|0)==134)if(!P){r=h;h=w;break}Jk(X,P);r=h;h=w}else{u=0;h=w}}else{u=0;h=0}while(0);Gk(X,r);Nk(X,l);Do(X,k);mg(X,h);i=Y;return u|0}function ar(e,f){e=e|0;f=f|0;var g=0,h=0;g=c[(e&p)+484>>2]|0;h=c[(e&p)>>2]|0;if(((g|0)!=0?(a[(e&n)+451>>0]|0)==0:0)?(b[((c[((c[((c[(h&p)+16>>2]|0)+(d[(h&n)+144>>0]<<4)&p)+4>>2]|0)&p)+4>>2]|0)&o)+22>>1]&1)==0:0){h=g+24|0;g=lr(e,c[(h&p)>>2]|0,f)|0;c[(h&p)>>2]=g;if(c[(e&p)+324>>2]|0)mr(e,g,e+320|0,1)}else Gk(h,f);return}function br(d,e,f,g,h){d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0;F=i;i=i+16|0;if((i|0)>=(j|0))fa();C=F;E=c[(d&p)>>2]|0;D=c[(d&p)+484>>2]|0;a:do if((D|0)!=0?(a[(d&n)+451>>0]|0)==0:0){z=(e|0)==0;do if(z){B=b[(D&o)+38>>1]|0;l=(B<<16>>16)+-1|0;if(B<<16>>16<1){k=0;break a}if(g)if((c[(g&p)>>2]|0)==1){l=1;k=13}else{c[(C&p)>>2]=c[((c[(D&p)+4>>2]|0)+(l*24|0)&p)>>2];c[(C&p)+4>>2]=f;th(d,35712,C);k=0;break a}else{l=1;k=12}}else{if(!g){l=c[(e&p)>>2]|0;k=12;break}l=c[(g&p)>>2]|0;if((l|0)==(c[(e&p)>>2]|0))k=13;else{th(d,35776,C);k=0;break a}}while(0);if((k|0)==12){m=f+4|0;s=m;w=0;m=(l<<3)+37+(c[(m&p)>>2]|0)|0;B=l}else if((k|0)==13){s=f+4|0;m=(l<<3)+37+(c[(s&p)>>2]|0)|0;t=c[(g&p)>>2]|0;if((t|0)>0){u=c[(g&p)+4>>2]|0;v=0;do{r=c[(u+(v*20|0)&p)+4>>2]|0;if(!r)k=1;else{q=r;while(1)if(!(a[(q&n)>>0]|0))break;else q=q+1|0;k=(q-r&1073741823)+1|0}m=k+m|0;v=v+1|0}while((v|0)<(t|0));w=1;B=l}else{w=1;B=l}}k=mh(E,m,((m|0)<0)<<31>>31)|0;if(k){fw(k|0,0,m|0)|0;c[(k&p)>>2]=D;A=D+16|0;c[(k&p)+4>>2]=c[(A&p)>>2];x=k+36|0;q=x+(B<<3)|0;y=k+8|0;c[(y&p)>>2]=q;kw(q|0,c[(f&p)>>2]|0,c[(s&p)>>2]|0)|0;a[(q+(c[(s&p)>>2]|0)&n)>>0]=0;lo(q);q=q+((c[(s&p)>>2]|0)+1)|0;c[(k&p)+20>>2]=B;b:do if(!z){if((B|0)>0){m=D+4|0;f=e+4|0;r=b[(D&o)+38>>1]|0;l=0;while(1){c:do if(r<<16>>16>0){v=c[(m&p)>>2]|0;u=c[((c[(f&p)>>2]|0)+(l*20|0)&p)+4>>2]|0;t=0;while(1){s=t+1|0;if(!(dd(c[(v+(t*24|0)&p)>>2]|0,u)|0)){s=t;break}if((s|0)<(r<<16>>16|0))t=s;else break c}c[(x+(l<<3)&p)>>2]=s}else s=0;while(0);if((s|0)>=(r<<16>>16|0))break;l=l+1|0;if((l|0)>=(B|0))break b}c[(C&p)>>2]=c[((c[(f&p)>>2]|0)+(l*20|0)&p)+4>>2];th(d,35872,C);break a}}else c[(x&p)>>2]=(b[(D&o)+38>>1]|0)+-1;while(0);if(w&(B|0)>0){r=g+4|0;s=0;while(1){m=c[((c[(r&p)>>2]|0)+(s*20|0)&p)+4>>2]|0;if(!m)l=0;else{l=m;while(1)if(!(a[(l&n)>>0]|0))break;else l=l+1|0;l=l-m&1073741823}c[(x+(s<<3)&p)+4>>2]=q;kw(q|0,m|0,l|0)|0;a[(q+l&n)>>0]=0;s=s+1|0;if((s|0)==(B|0))break;else q=q+(l+1)|0}}a[(k&n)+24>>0]=0;a[(k&n)+25>>0]=h;a[(k&n)+26>>0]=h>>>8;l=Ik((c[(D&p)+68>>2]|0)+56|0,c[(y&p)>>2]|0,k)|0;if((l|0)==(k|0)){a[(E&n)+65>>0]=1;break}if(l){c[(k&p)+12>>2]=l;c[(l&p)+16>>2]=k}c[(A&p)>>2]=k;k=0}else k=0}else k=0;while(0);mg(E,k);Nk(E,e);Nk(E,g);i=F;return}function cr(b,d){b=b|0;d=d|0;var e=0,f=0,g=0;e=c[(b&p)>>2]|0;f=a[(e&n)+62>>0]|0;g=a[(e&n)+145>>0]|0;e=Yn(e,f,d,g&255)|0;do if(!(g<<24>>24)){if((e|0)!=0?(c[(e&p)+12>>2]|0)!=0:0)break;e=ws(b,f,e,d)|0}while(0);return e|0}function dr(e,f,g,h){e=e|0;f=f|0;g=g|0;h=h|0;var k=0,l=0,m=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;i=i+16|0;if((i|0)>=(j|0))fa();z=B;v=B+12|0;A=c[(e&p)>>2]|0;do if(!(a[(A&n)+65>>0]|0)){h=(h|0)!=0;if(h){u=A+68|0;a[(u&n)>>0]=(a[(u&n)>>0]|0)+1<<24>>24;y=Ur(e,g,f+8|0)|0;a[(u&n)>>0]=(a[(u&n)>>0]|0)+-1<<24>>24}else y=Ur(e,g,f+8|0)|0;if(!y){if(!h)break;zr(e,c[(f&p)+12>>2]|0);break}s=y+68|0;l=c[(s&p)>>2]|0;a:do if(l){h=c[(A&p)+20>>2]|0;if((h|0)>0){k=c[(A&p)+16>>2]|0;q=0;while(1){m=q+1|0;if((c[(k+(q<<4)&p)+12>>2]|0)==(l|0)){m=q;break a}if((m|0)<(h|0))q=m;else break}}else m=0}else m=-1e6;while(0);w=y+44|0;if((a[(w&n)>>0]&16)!=0?(hr(e,y)|0)!=0:0)break;q=(m|0)==1;x=q?13184:13208;h=c[((c[(A&p)+16>>2]|0)+(m<<4)&p)>>2]|0;if(!(Sq(e,9,x,0,h)|0)){k=(g|0)!=0;do if(k){l=q?15:17;q=0}else{if(!(a[(w&n)>>0]&16)){l=q?13:11;q=0;break}q=y+60|0;while(1){q=c[(q&p)>>2]|0;if((c[(q&p)>>2]|0)==(A|0))break;else q=q+24|0}l=30;q=c[((c[(q&p)+4>>2]|0)&p)+4>>2]|0}while(0);if((Sq(e,l,c[(y&p)>>2]|0,q,h)|0)==0?(Sq(e,9,c[(y&p)>>2]|0,0,h)|0)==0:0){q=c[(y&p)>>2]|0;if((Fc(q,25568,7)|0)==0?(Fc(q,35488,11)|0)!=0:0){c[(z&p)>>2]=q;th(e,35504,z);break}h=y+12|0;l=(c[(h&p)>>2]|0)==0;if(k){if(l){c[(z&p)>>2]=q;th(e,35536,z);break}}else if(!l){c[(z&p)>>2]=q;th(e,35576,z);break}if(Oq(e)|0){t=e+408|0;l=c[(t&p)>>2]|0;l=(l|0)==0?e:l;Ar(e,m);u=1<>2]=c[(k&p)>>2]|u;l=l+20|0;a[(l&n)>>0]=d[(l&n)>>0]|1;Cr(e,m,28544,c[(y&p)>>2]|0);l=c[(e&p)>>2]|0;k=l+24|0;b:do if(((c[(k&p)>>2]&524288|0)!=0?(a[(w&n)>>0]&16)==0:0)?(c[(h&p)>>2]|0)==0:0){r=Oq(e)|0;v=bn((c[(s&p)>>2]|0)+56|0,c[(y&p)>>2]|0,v)|0;if((v|0)!=0?(c[(v&p)+8>>2]|0)!=0:0)q=0;else{q=c[(y&p)+16>>2]|0;if(!q)break;while(1){if(a[(q&n)+24>>0]|0)break;if(c[(k&p)>>2]&16777216)break;q=c[(q&p)+4>>2]|0;if(!q)break b}q=xs(r)|0;wh(r,135,1,q,0)|0}v=e+438|0;a[(v&n)>>0]=1;rr(e,ys(l,f,0)|0,0);a[(v&n)>>0]=0;if(!(c[(k&p)>>2]&16777216)){wh(r,135,0,(c[(r&p)+32>>2]|0)+2|0,0)|0;zs(e,787,2,0,-2,4)}if(q){l=c[(r&p)+24>>2]|0;h=~q;do if((q|0)<0){q=c[(l&p)+112>>2]|0;if(!q)break;c[(q+(h<<2)&p)>>2]=c[(r&p)+32>>2]}while(0);c[(l&p)+88>>2]=(c[(r&p)+32>>2]|0)+-1}}while(0);r=c[(e&p)>>2]|0;s=r+16|0;l=c[(s&p)>>2]|0;h=Oq(e)|0;v=c[(t&p)>>2]|0;v=(v|0)==0?e:v;Ar(e,m);t=v+328|0;c[(t&p)>>2]=c[(t&p)>>2]|u;v=v+20|0;a[(v&n)>>0]=d[(v&n)>>0]|1;if(a[(w&n)>>0]&16)wh(h,146,0,0,0)|0;q=As(e,y)|0;if(q)do{Qr(e,q);q=c[(q&p)+32>>2]|0}while((q|0)!=0);l=l+(m<<4)|0;if(a[(w&n)>>0]&8){v=c[(y&p)>>2]|0;c[(z&p)>>2]=c[(l&p)>>2];c[(z&p)+4>>2]=v;Br(e,35608,z)}v=c[(y&p)>>2]|0;c[(z&p)>>2]=c[(l&p)>>2];c[(z&p)+4>>2]=x;c[(z&p)+8>>2]=v;Br(e,35656,z);if((g|0)==0?(a[(w&n)>>0]&16)==0:0)Bs(e,y);if(a[(w&n)>>0]&16){v=c[(y&p)>>2]|0;xh(h,wh(h,148,m,0,0)|0,v,0)}k=c[(y&p)>>2]|0;xh(h,wh(h,124,m,0,0)|0,k,0);Dr(e,m);h=c[((c[(s&p)>>2]|0)+(m<<4)&p)+12>>2]|0;k=b[(h&o)+78>>1]|0;if(k&2){l=c[(h&p)+16>>2]|0;if(l){k=l;do{h=c[(k&p)+8>>2]|0;if(c[(h&p)+12>>2]|0){Lk(r,h);c[(h&p)+4>>2]=0;b[(h&o)+38>>1]=0}k=c[(k&p)>>2]|0}while((k|0)!=0);k=c[((c[(s&p)>>2]|0)+(m<<4)&p)+12>>2]|0;h=k;k=b[(k&o)+78>>1]|0}b[(h&o)+78>>1]=k&65533}}}}}while(0);Do(A,f);i=B;return}function er(b,e,f,g){b=b|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0;m=i;i=i+16|0;if((i|0)>=(j|0))fa();k=m;h=c[(b&p)>>2]|0;do if((f|0)!=0?(c[(f&p)+4>>2]|0)!=0:0){if(a[(h&n)+145>>0]|0){th(b,28488,k);f=b+64|0;c[(f&p)>>2]=(c[(f&p)>>2]|0)+1;f=-1;break}c[(g&p)>>2]=f;g=Wq(h,e)|0;f=Vh(h,g)|0;mg(h,g);if((f|0)<0){c[(k&p)>>2]=e;th(b,28512,k);f=b+64|0;c[(f&p)>>2]=(c[(f&p)>>2]|0)+1;f=-1}}else l=7;while(0);if((l|0)==7){f=d[(h&n)+144>>0]|0;c[(g&p)>>2]=e}i=m;return f|0}function fr(a,b){a=a|0;b=b|0;a:do if(!b)b=0;else while(1){if(Hr(a,c[(b&p)>>2]|0)|0){b=1;break a}if(Kr(a,c[(b&p)+32>>2]|0)|0){b=1;break a}if(Gr(a,c[(b&p)+36>>2]|0)|0){b=1;break a}if(Hr(a,c[(b&p)+40>>2]|0)|0){b=1;break a}if(Gr(a,c[(b&p)+44>>2]|0)|0){b=1;break a}if(Hr(a,c[(b&p)+48>>2]|0)|0){b=1;break a}if(Gr(a,c[(b&p)+60>>2]|0)|0){b=1;break a}if(Gr(a,c[(b&p)+64>>2]|0)|0){b=1;break a}b=c[(b&p)+52>>2]|0;if(!b){b=0;break}}while(0);return b|0}function gr(d,f,g){d=d|0;f=f|0;g=g|0;var h=0,i=0,j=0,k=0,l=0;if((f|0)!=0?(h=mh(d,72,0)|0,(h|0)!=0):0){c[(h&p)>>2]=Pr(d,c[(f&p)>>2]|0,g)|0;c[(h&p)+32>>2]=ys(d,c[(f&p)+32>>2]|0,g)|0;c[(h&p)+36>>2]=Mr(d,c[(f&p)+36>>2]|0,g,0)|0;c[(h&p)+40>>2]=Pr(d,c[(f&p)+40>>2]|0,g)|0;c[(h&p)+44>>2]=Mr(d,c[(f&p)+44>>2]|0,g,0)|0;c[(h&p)+48>>2]=Pr(d,c[(f&p)+48>>2]|0,g)|0;a[(h&n)+4>>0]=a[(f&n)+4>>0]|0;j=gr(d,c[(f&p)+52>>2]|0,g)|0;c[(h&p)+52>>2]=j;if(j)c[(j&p)+56>>2]=h;c[(h&p)+56>>2]=0;c[(h&p)+60>>2]=Mr(d,c[(f&p)+60>>2]|0,g,0)|0;c[(h&p)+64>>2]=Mr(d,c[(f&p)+64>>2]|0,g,0)|0;c[(h&p)+8>>2]=0;c[(h&p)+12>>2]=0;b[(h&o)+6>>1]=(e[(f&o)+6>>1]|0)&65527;c[(h&p)+16>>2]=-1;c[(h&p)+20>>2]=-1;l=f+24|0;j=c[(l&p)+4>>2]|0;g=h+24|0;c[(g&p)>>2]=c[(l&p)>>2];c[(g&p)+4>>2]=j;g=c[(f&p)+68>>2]|0;if((g|0)!=0?(k=c[(g&p)>>2]<<4|8,i=mh(d,k,((k|0)<0)<<31>>31)|0,(i|0)!=0):0){fw(i|0,0,k|0)|0;c[(i&p)>>2]=c[(g&p)>>2];if((c[(g&p)>>2]|0)>0){f=i+8|0;j=0;do{c[(f+(j<<4)&p)+8>>2]=gr(d,c[(g+(j<<4)&p)+16>>2]|0,0)|0;c[(f+(j<<4)&p)+4>>2]=Pr(d,c[(g+(j<<4)&p)+12>>2]|0,0)|0;c[(f+(j<<4)&p)>>2]=kh(d,c[(g+(j<<4)&p)+8>>2]|0)|0;j=j+1|0}while((j|0)<(c[(g&p)>>2]|0))}}else i=0;c[(h&p)+68>>2]=i}else h=0;return h|0}function hr(d,f){d=d|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0;w=i;i=i+16|0;if((i|0)>=(j|0))fa();s=w;k=w+8|0;m=w+4|0;v=c[(d&p)>>2]|0;q=f+44|0;h=a[(q&n)>>0]|0;a:do if(!(h&16))t=11;else{g=c[(f&p)+60>>2]|0;if(g)do{if((c[(g&p)>>2]|0)==(v|0)){t=11;break a}g=c[(g&p)+24>>2]|0}while((g|0)!=0);g=f+56|0;h=bn(v+308|0,c[(c[(g&p)>>2]&p)>>2]|0,k)|0;if((h|0)!=0?(l=c[(h&p)+8>>2]|0,(l|0)!=0):0){c[(m&p)>>2]=0;l=(zn(v,f,l,c[((c[(l&p)>>2]|0)&p)+8>>2]|0,m)|0)==0;h=c[(m&p)>>2]|0;if(l){mg(v,h);h=a[(q&n)>>0]|0;t=11;break}else{c[(s&p)>>2]=h;th(d,10344,s);mg(v,h);g=1;break}}c[(s&p)>>2]=c[(c[(g&p)>>2]&p)>>2];th(d,28320,s);g=1}while(0);do if((t|0)==11)if((h&16)==0?(u=f+38|0,r=b[(u&o)>>1]|0,r<<16>>16<=0):0){if(r<<16>>16<0){c[(s&p)>>2]=c[(f&p)>>2];th(d,26752,s);g=1;break}h=gr(v,c[(f&p)+12>>2]|0,0)|0;if(!h)g=1;else{r=v+250|0;q=a[(r&n)>>0]|0;t=d+68|0;s=c[(t&p)>>2]|0;Cs(d,c[(h&p)+32>>2]|0);b[(u&o)>>1]=-1;a[(r&n)>>0]=0;m=v+284|0;l=c[(m&p)>>2]|0;c[(m&p)>>2]=0;g=ns(d,h)|0;c[(m&p)>>2]=l;a[(r&n)>>0]=q;c[(t&p)>>2]=s;if(!g){b[(u&o)>>1]=0;g=1}else{d=g+38|0;b[(u&o)>>1]=b[(d&o)>>1]|0;t=g+4|0;c[(f&p)+4>>2]=c[(t&p)>>2];b[(d&o)>>1]=0;c[(t&p)>>2]=0;kg(v,g);g=(c[(f&p)+68>>2]|0)+78|0;b[(g&o)>>1]=e[(g&o)>>1]|0|2;g=0}Mk(v,h,1)}}else g=0;while(0);i=w;return g|0} function ir(f,g,h){f=f|0;g=g|0;h=h|0;var k=0,l=0,m=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,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,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;Ca=i;i=i+240|0;if((i|0)>=(j|0))fa();ra=Ca;sa=Ca+220|0;ka=Ca+216|0;ia=Ca+196|0;ja=Ca+176|0;ua=Ca+164|0;va=Ca+136|0;ya=Ca+88|0;ga=Ca+64|0;ma=Ca+32|0;Aa=f+464|0;Ba=c[(Aa&p)>>2]|0;oa=f+468|0;xa=c[(oa&p)>>2]|0;c[(oa&p)>>2]=xa+1;c[(Aa&p)>>2]=xa;xa=c[(f&p)>>2]|0;a:do if((((g|0)!=0?(pa=xa+65|0,(a[(pa&n)>>0]|0)==0):0)?(k=f+64|0,(c[(k&p)>>2]|0)==0):0)?(Sq(f,21,0,0,0)|0)==0:0){D=ya+0|0;C=D+48|0;do{c[(D&p)>>2]=0;D=D+4|0}while((D|0)<(C|0));la=g+48|0;if((d[(h&n)>>0]|0)<9){Nk(xa,c[(la&p)>>2]|0);c[(la&p)>>2]=0;ea=g+6|0;b[(ea&o)>>1]=e[(ea&o)>>1]&65534}Ds(f,g,0);c[(va&p)>>2]=0;c[(va&p)+4>>2]=0;c[(va&p)+8>>2]=0;c[(va&p)+12>>2]=0;c[(va&p)+16>>2]=0;c[(va&p)+20>>2]=0;c[(va&p)+24>>2]=0;c[(va&p)>>2]=c[(la&p)>>2];na=g+32|0;x=c[(na&p)>>2]|0;w=c[(g&p)>>2]|0;b:do if(((c[(k&p)>>2]|0)==0?(a[(pa&n)>>0]|0)==0:0)?(ta=g+6|0,z=(e[(ta&o)>>1]|0)>>>2&1,wa=Oq(f)|0,(wa|0)!=0):0){if((c[(w&p)>>2]|0)>1?(a[(h&n)>>0]&-2)<<24>>24==10:0){th(f,35368,ra);za=444;break}qa=g+52|0;w=c[(qa&p)>>2]|0;c:do if(!w){r=f+460|0;q=f+492|0;m=g+36|0;l=f+408|0;k=g+60|0;T=g+64|0;U=g+4|0;V=xa+60|0;W=wa+32|0;X=f+72|0;Y=ga+4|0;Z=ga+1|0;_=ga+8|0;$=ga+12|0;aa=wa+4|0;ba=wa+24|0;ca=f+19|0;da=f+56|0;ea=f+80|0;S=0;y=z;while(1){if((S|0)>=(c[(x&p)>>2]|0)){H=m;Q=0;z=y;U=x;break c}N=c[(x+(S*72|0)&p)+28>>2]|0;do if(!N)z=S;else{P=x+(S*72|0)+32|0;A=c[(P&p)>>2]|0;if(A){if(a[(x+(S*72|0)&n)+45>>0]&4){z=S;break}wh(wa,17,c[(x+(S*72|0)&p)+36>>2]|0,A,0)|0;z=S;break}c[(ra&p)>>2]=0;Es(g,ra);c[(r&p)>>2]=(c[(r&p)>>2]|0)+(c[(ra&p)>>2]|0);v=b[(N&o)+6>>1]&4;Q=c[(q&p)>>2]|0;u=c[(f&p)>>2]|0;d:do if(!(b[(u&o)+60>>1]&1)){L=c[(na&p)>>2]|0;t=c[(L+(S*72|0)&p)+48>>2]|0;K=L+(S*72|0)+28|0;O=c[(K&p)>>2]|0;s=v<<16>>16!=0;do if(s){if(y){za=120;break d}if((c[(L&p)>>2]|0)>1){za=120;break d}R=c[(m&p)>>2]|0;if((R|0)!=0?(c[(R&p)+4>>2]&2097152|0)!=0:0){za=120;break d}H=c[(g&p)>>2]|0;do if(H){E=c[(H&p)>>2]|0;if((E|0)<=0)break;I=c[(H&p)+4>>2]|0;H=0;F=0;do{F=c[((c[(I+(H*20|0)&p)>>2]|0)&p)+4>>2]|F;H=H+1|0}while((H|0)!=(E|0));if(F&2097152){za=120;break d}}while(0);H=c[(la&p)>>2]|0;if(!H)break;E=c[(H&p)>>2]|0;if((E|0)<=0)break;I=c[(H&p)+4>>2]|0;H=0;F=0;do{F=c[((c[(I+(H*20|0)&p)>>2]|0)&p)+4>>2]|F;H=H+1|0}while((H|0)!=(E|0));if(F&2097152){za=120;break d}}while(0);I=c[(O&p)+32>>2]|0;H=(c[(O&p)+60>>2]|0)==0;if(!H?(c[(k&p)>>2]|0)!=0:0){za=120;break}if(c[(O&p)+64>>2]|0){za=120;break}E=b[(ta&o)>>1]|0;F=(E&64)==0;if(!(F|H)){za=120;break}if(!(c[(I&p)>>2]|0)){za=120;break}D=b[(O&o)+6>>1]|0;if(D&1){za=120;break}I=H|F^1;if(!I?(c[(L&p)>>2]|0)>1|(y|0)!=0:0){za=120;break}H=E&1;if(H<<16>>16!=0&s){za=120;break}B=c[(la&p)>>2]|0;C=(B|0)==0;if(!C?(c[(O&p)+48>>2]|0)!=0:0){za=120;break}J=(y|0)!=0;if(J?(c[(O&p)+48>>2]|0)!=0:0){za=120;break}if(I){if(D&6144){za=120;break}}else if(!((c[(m&p)>>2]|0)==0&H<<16>>16==0&(D&6144)==0)){za=120;break}if((E&2048)!=0?(c[(O&p)+52>>2]|0)!=0:0){za=120;break}R=L+(S*72|0)+44|0;if(a[(R&n)>>0]&32){za=120;break}E=O+52|0;I=c[(E&p)>>2]|0;do if(I){if(!(H<<16>>16==0&(((c[(O&p)+48>>2]|0)!=0|J)^1))){za=120;break d}if((c[(L&p)>>2]|0)!=1){za=120;break d}e:do if(O){if(!(D&5))F=O;else{za=120;break d}while(1){H=(I|0)==0;if(!H?(a[(F&n)+4>>0]|0)!=116:0){za=120;break d}if((c[(c[(F&p)+32>>2]&p)>>2]|0)<1){za=120;break d}if((c[(c[(O&p)>>2]&p)>>2]|0)!=(c[(c[(F&p)>>2]&p)>>2]|0)){za=120;break d}if(H)break e;if(b[(I&o)+6>>1]&5){za=120;break d}F=I;I=c[(I&p)+52>>2]|0}}while(0);if(C)break;F=c[(B&p)>>2]|0;if((F|0)<=0)break;I=c[(B&p)+4>>2]|0;H=0;do{if(!(b[(I+(H*20|0)&o)+16>>1]|0)){za=120;break d}H=H+1|0}while((H|0)<(F|0))}while(0);A=L+(S*72|0)+16|0;c[(q&p)>>2]=c[(A&p)>>2];Sq(f,21,0,0,0)|0;c[(q&p)>>2]=Q;I=c[(E&p)>>2]|0;f:do if(!I)za=81;else{B=u+65|0;E=c[(la&p)>>2]|0;D=c[(k&p)>>2]|0;C=c[(T&p)>>2]|0;F=c[(qa&p)>>2]|0;while(1){c[(la&p)>>2]=0;c[(na&p)>>2]=0;c[(qa&p)>>2]=0;c[(k&p)>>2]=0;c[(T&p)>>2]=0;H=gr(u,g,0)|0;c[(T&p)>>2]=C;c[(k&p)>>2]=D;c[(la&p)>>2]=E;c[(na&p)>>2]=L;a[(U&n)>>0]=116;if(!H)H=F;else{c[(H&p)+52>>2]=F;if(F)c[(F&p)+56>>2]=H;c[(H&p)+56>>2]=g}c[(qa&p)>>2]=H;if(a[(B&n)>>0]|0)break f;I=c[(I&p)+52>>2]|0;if(!I){za=81;break}else F=H}}while(0);if((za|0)==81){za=0;M=c[(K&p)>>2]|0;E=L+(S*72|0)+12|0;mg(u,c[(E&p)>>2]|0);mg(u,c[(A&p)>>2]|0);F=L+(S*72|0)+20|0;mg(u,c[(F&p)>>2]|0);c[(E&p)>>2]=0;c[(A&p)>>2]=0;c[(F&p)>>2]=0;c[(K&p)>>2]=0;F=L+(S*72|0)+24|0;E=c[(F&p)>>2]|0;if(E){D=E+40|0;C=b[(D&o)>>1]|0;if(C<<16>>16==1){Q=c[(l&p)>>2]|0;Q=((Q|0)==0?f:Q)+524|0;c[(E&p)+72>>2]=c[(Q&p)>>2];c[(Q&p)>>2]=E}else b[(D&o)>>1]=C+-1<<16>>16;c[(F&p)>>2]=0}Q=S+1|0;P=u+65|0;O=g;N=M;while(1){B=c[(N&p)+32>>2]|0;A=c[(B&p)>>2]|0;H=O+32|0;I=c[(H&p)>>2]|0;if(!I){I=pr(u,0,0,0)|0;c[(H&p)>>2]=I;if(!I)break;else z=0}else z=a[(R&n)>>0]|0;if((A|0)>1){I=Fs(u,I,A+-1|0,Q)|0;c[(H&p)>>2]=I;if(a[(P&n)>>0]|0)break}if((A|0)>0){F=0;do{D=F+S|0;Hk(u,c[(I+(D*72|0)&p)+56>>2]|0);H=B+(F*72|0)+8|0;D=I+(D*72|0)+8|0;E=H+0|0;C=D+72|0;do{c[(D&p)>>2]=c[(E&p)>>2];D=D+4|0;E=E+4|0}while((D|0)<(C|0));D=H+0|0;C=D+72|0;do{c[(D&p)>>2]=0;D=D+4|0}while((D|0)<(C|0));F=F+1|0}while((F|0)!=(A|0))}a[(I+(S*72|0)&n)+44>>0]=z;H=c[(O&p)>>2]|0;I=c[(H&p)>>2]|0;if((I|0)>0){D=H+4|0;F=c[(D&p)>>2]|0;E=0;do{if(!(c[(F+(E*20|0)&p)+4>>2]|0)){I=kh(u,c[(F+(E*20|0)&p)+8>>2]|0)|0;lo(I);F=c[(D&p)>>2]|0;c[(F+(E*20|0)&p)+4>>2]=I;I=c[(H&p)>>2]|0}E=E+1|0}while((E|0)<(I|0));H=c[(O&p)>>2]|0}Gs(u,H,t,c[(N&p)>>2]|0);if(J){Gs(u,c[(O&p)+40>>2]|0,t,c[(N&p)>>2]|0);L=O+44|0;c[(L&p)>>2]=Hs(u,c[(L&p)>>2]|0,t,c[(N&p)>>2]|0)|0}I=N+48|0;H=c[(I&p)>>2]|0;do if(!H){H=c[(O&p)+48>>2]|0;if(!H)break;Gs(u,H,t,c[(N&p)>>2]|0)}else{F=c[(H&p)>>2]|0;if((F|0)>0){E=c[(H&p)+4>>2]|0;D=0;do{b[(E+(D*20|0)&o)+16>>1]=0;D=D+1|0}while((D|0)!=(F|0))}c[(O&p)+48>>2]=H;c[(I&p)>>2]=0}while(0);H=c[(N&p)+36>>2]|0;if(!H)F=0;else F=Mr(u,H,0,0)|0;I=O+36|0;H=c[(I&p)>>2]|0;if(s){L=O+44|0;c[(L&p)>>2]=H;c[(I&p)>>2]=F;K=Hs(u,H,t,c[(N&p)>>2]|0)|0;c[(L&p)>>2]=K;c[(L&p)>>2]=ss(u,K,Mr(u,c[(N&p)+44>>2]|0,0,0)|0)|0;c[(O&p)+40>>2]=Pr(u,c[(N&p)+40>>2]|0,0)|0}else{L=Hs(u,H,t,c[(N&p)>>2]|0)|0;c[(I&p)>>2]=L;c[(I&p)>>2]=ss(u,L,F)|0}H=O+6|0;b[(H&o)>>1]=e[(H&o)>>1]|e[(N&o)+6>>1]&1;H=N+60|0;F=c[(H&p)>>2]|0;if(F){c[(O&p)+60>>2]=F;c[(H&p)>>2]=0}O=c[(O&p)+52>>2]|0;if(!O)break;else N=c[(N&p)+52>>2]|0}Mk(u,M,1)}if(!(v<<16>>16)){z=-1;break}b[(ta&o)>>1]=e[(ta&o)>>1]|4;z=-1;y=1}else za=120;while(0);g:do if((za|0)==120){za=0;do if((c[(x&p)>>2]|0)==1){if(b[(V&o)>>1]&256)break;D=c[(W&p)>>2]|0;R=D+1|0;Q=(c[(X&p)>>2]|0)+1|0;c[(X&p)>>2]=Q;z=x+(S*72|0)+36|0;c[(z&p)>>2]=Q;wh(wa,20,Q,0,R)|0;c[(P&p)>>2]=R;R=c[(z&p)>>2]|0;a[(ga&n)>>0]=13;c[(Y&p)>>2]=R;a[(Z&n)>>0]=0;c[(_&p)>>2]=0;c[($&p)>>2]=0;a[(x+(S*72|0)&n)+46>>0]=c[(oa&p)>>2];ir(f,N,ga)|0;R=N+24|0;R=fs(c[(R&p)>>2]|0,c[(R&p)+4>>2]|0)|0;b[((c[(x+(S*72|0)&p)+24>>2]|0)&o)+28>>1]=R;R=x+(S*72|0)+45|0;a[(R&n)>>0]=a[(R&n)>>0]|4;c[(x+(S*72|0)&p)+40>>2]=c[(_&p)>>2];wh(wa,21,c[(z&p)>>2]|0,0,0)|0;z=c[(W&p)>>2]|0;if(z>>>0>D>>>0)c[((c[(aa&p)>>2]|0)+(D*20|0)&p)+8>>2]=z;c[((c[(ba&p)>>2]|0)&p)+88>>2]=z+-1;a[(ca&n)>>0]=0;c[(da&p)>>2]=0;z=S;break g}while(0);C=(c[(X&p)>>2]|0)+1|0;c[(X&p)>>2]=C;E=x+(S*72|0)+36|0;c[(E&p)>>2]=C;C=wh(wa,25,0,C,0)|0;c[(P&p)>>2]=C+1;if(!(a[(x+(S*72|0)&n)+45>>0]&2)){R=Oq(f)|0;D=c[(ea&p)>>2]|0;c[(ea&p)>>2]=D+1;D=wh(R,44,D,0,0)|0}else D=0;R=c[(x+(S*72|0)&p)+48>>2]|0;a[(ga&n)>>0]=12;c[(Y&p)>>2]=R;a[(Z&n)>>0]=0;c[(_&p)>>2]=0;c[($&p)>>2]=0;a[(x+(S*72|0)&n)+46>>0]=c[(oa&p)>>2];ir(f,N,ga)|0;R=N+24|0;R=fs(c[(R&p)>>2]|0,c[(R&p)+4>>2]|0)|0;b[((c[(x+(S*72|0)&p)+24>>2]|0)&o)+28>>1]=R;if(D){A=c[(W&p)>>2]|0;if(A>>>0>D>>>0)c[((c[(aa&p)>>2]|0)+(D*20|0)&p)+8>>2]=A;c[((c[(ba&p)>>2]|0)&p)+88>>2]=A+-1}z=wh(wa,18,c[(E&p)>>2]|0,0,0)|0;if((c[(W&p)>>2]|0)>>>0>C>>>0)c[((c[(aa&p)>>2]|0)+(C*20|0)&p)+4>>2]=z;a[(ca&n)>>0]=0;c[(da&p)>>2]=0;z=S}while(0);if(a[(pa&n)>>0]|0){za=444;break b}c[(ra&p)>>2]=0;Es(g,ra);c[(r&p)>>2]=(c[(r&p)>>2]|0)-(c[(ra&p)>>2]|0);x=c[(na&p)>>2]|0;if((d[(h&n)>>0]|0)<9)break;c[(va&p)>>2]=c[(la&p)>>2]}while(0);w=c[(qa&p)>>2]|0;if(!w)S=z+1|0;else{H=m;Q=w;z=y;U=x;break}}}else{H=g+36|0;Q=w;U=x}while(0);T=c[(g&p)>>2]|0;B=c[(H&p)>>2]|0;l=g+40|0;w=c[(l&p)>>2]|0;I=g+44|0;ga=c[(I&p)>>2]|0;m=b[(ta&o)>>1]|0;a[(ua&n)>>0]=m&1;if(Q){O=c[(f&p)>>2]|0;c[(sa&p)>>2]=c[(h&p)>>2];c[(sa&p)+4>>2]=c[(h&p)+4>>2];c[(sa&p)+8>>2]=c[(h&p)+8>>2];c[(sa&p)+12>>2]=c[(h&p)+12>>2];c[(sa&p)+16>>2]=c[(h&p)+16>>2];h:do if(!(c[(Q&p)+48>>2]|0)){x=Q+60|0;if(c[(x&p)>>2]|0){k=d[(g&n)+4>>0]|0;if((k|0)==118)k=35336;else if((k|0)==117)k=35352;else if((k|0)==116)k=35320;else k=35360;c[(ra&p)>>2]=k;th(f,35072,ra);m=0;k=1;za=227;break}R=Oq(f)|0;t=a[(sa&n)>>0]|0;if(t<<24>>24==12){wh(R,57,c[(sa&p)+4>>2]|0,c[(c[(g&p)>>2]&p)>>2]|0,0)|0;t=c[(R&p)+4>>2]|0;if(t)a[(t+(((c[(R&p)+32>>2]|0)+-1|0)*20|0)&n)+3>>0]=8;a[(sa&n)>>0]=14;t=14}s=e[(ta&o)>>1]|0;if(s&256){m=0;k=Is(f,g,sa)|0;za=227;break}if((c[(c[(g&p)>>2]&p)>>2]|0)!=(c[(c[(Q&p)>>2]&p)>>2]|0)){Js(f,g);m=0;k=1;za=227;break}do if(!(s&2048)){if(c[(la&p)>>2]|0){k=Ls(f,g,h)|0;break h}P=g+4|0;s=d[(P&n)>>0]|0;if((s|0)==116){v=g+8|0;t=Q+8|0;c[(t&p)>>2]=c[(v&p)>>2];u=g+12|0;s=Q+12|0;c[(s&p)>>2]=c[(u&p)>>2];da=g+60|0;c[(x&p)>>2]=c[(da&p)>>2];ea=g+64|0;c[(Q&p)+64>>2]=c[(ea&p)>>2];q=c[(oa&p)>>2]|0;k=ir(f,Q,sa)|0;c[(da&p)>>2]=0;c[(ea&p)>>2]=0;if(k){m=0;za=227;break h}c[(qa&p)>>2]=0;t=c[(t&p)>>2]|0;c[(v&p)>>2]=t;c[(u&p)>>2]=c[(s&p)>>2];if(!t)w=0;else w=wh(R,46,t,0,0)|0;l=c[(oa&p)>>2]|0;k=ir(f,g,sa)|0;m=c[(qa&p)>>2]|0;c[(qa&p)>>2]=Q;ea=Q+24|0;r=g+24|0;t=r;ea=jw(c[(t&p)>>2]|0,c[(t&p)+4>>2]|0,c[(ea&p)>>2]|0,c[(ea&p)+4>>2]|0)|0;t=r;c[(t&p)>>2]=ea;c[(t&p)+4>>2]=G;t=c[(x&p)>>2]|0;do if(t){ea=(Ms(t,ka)|0)!=0;t=c[(ka&p)>>2]|0;if(!(ea&(t|0)>0))break;ea=r;da=c[(ea&p)+4>>2]|0;s=((t|0)<0)<<31>>31;if(!(da>>>0>s>>>0|((da|0)==(s|0)?(c[(ea&p)>>2]|0)>>>0>t>>>0:0)))break;ea=r;c[(ea&p)>>2]=t;c[(ea&p)+4>>2]=s}while(0);if(!w){w=P;v=q;t=l;break}r=c[(R&p)+32>>2]|0;if(r>>>0>w>>>0)c[((c[(R&p)+4>>2]|0)+(w*20|0)&p)+8>>2]=r;c[((c[(R&p)+24>>2]|0)&p)+88>>2]=r+-1;w=P;v=q;t=l;break}else if((s|0)==115|(s|0)==117){if(t<<24>>24==1)s=c[(sa&p)+4>>2]|0;else{r=f+68|0;s=c[(r&p)>>2]|0;c[(r&p)>>2]=s+1;c[(g&p)+16>>2]=wh(R,57,s,0,0)|0;r=g;while(1){t=c[(r&p)+56>>2]|0;if(!t)break;else r=t}ea=r+6|0;b[(ea&o)>>1]=e[(ea&o)>>1]|8}a[(ia&n)>>0]=1;c[(ia&p)+4>>2]=s;a[(ia&n)+1>>0]=0;c[(ia&p)+8>>2]=0;c[(ia&p)+12>>2]=0;y=c[(oa&p)>>2]|0;k=ir(f,Q,ia)|0;if(k){m=0;za=227;break h}x=(a[(P&n)>>0]|0)==117?2:1;c[(qa&p)>>2]=0;v=g+60|0;u=c[(v&p)>>2]|0;c[(v&p)>>2]=0;t=g+64|0;r=c[(t&p)>>2]|0;c[(t&p)>>2]=0;a[(ia&n)>>0]=x;x=c[(oa&p)>>2]|0;k=ir(f,g,ia)|0;Nk(O,c[(la&p)>>2]|0);m=c[(qa&p)>>2]|0;c[(qa&p)>>2]=Q;c[(la&p)>>2]=0;if((a[(P&n)>>0]|0)==115){da=Q+24|0;ea=g+24|0;ca=ea;da=jw(c[(ca&p)>>2]|0,c[(ca&p)+4>>2]|0,c[(da&p)>>2]|0,c[(da&p)+4>>2]|0)|0;c[(ea&p)>>2]=da;c[(ea&p)+4>>2]=G}Gk(O,c[(v&p)>>2]|0);c[(v&p)>>2]=u;c[(t&p)>>2]=r;c[(g&p)+8>>2]=0;c[(g&p)+12>>2]=0;r=a[(sa&n)>>0]|0;if(r<<24>>24==9){r=g;while(1){q=c[(r&p)+52>>2]|0;if(!q)break;else r=q}Ns(f,0,c[(r&p)>>2]|0)}else if(r<<24>>24==1){w=P;v=y;t=x;break}l=xs(R)|0;ea=xs(R)|0;Os(f,g,l);wh(R,108,s,l,0)|0;w=R+32|0;v=c[(w&p)>>2]|0;Ps(f,g,c[(g&p)>>2]|0,s,0,0,sa,ea,l);u=R+24|0;t=c[(u&p)>>2]|0;r=~ea;do if((ea|0)<0){q=c[(t&p)+112>>2]|0;if(!q)break;c[(q+(r<<2)&p)>>2]=c[(w&p)>>2]}while(0);c[(t&p)+88>>2]=(c[(w&p)>>2]|0)+-1;wh(R,9,s,v,0)|0;r=c[(u&p)>>2]|0;q=~l;do if((l|0)<0){t=c[(r&p)+112>>2]|0;if(!t)break;c[(t+(q<<2)&p)>>2]=c[(w&p)>>2]}while(0);c[(r&p)+88>>2]=(c[(w&p)>>2]|0)+-1;wh(R,61,s,0,0)|0;w=P;v=y;t=x;break}else{r=f+68|0;A=c[(r&p)>>2]|0;c[(r&p)>>2]=A+2;c[(g&p)+16>>2]=wh(R,57,A,0,0)|0;r=g;while(1){q=c[(r&p)+56>>2]|0;if(!q)break;else r=q}y=A+1|0;v=r+6|0;b[(v&o)>>1]=e[(v&o)>>1]|8;a[(ja&n)>>0]=1;v=ja+4|0;c[(v&p)>>2]=A;a[(ja&n)+1>>0]=0;c[(ja&p)+8>>2]=0;c[(ja&p)+12>>2]=0;x=c[(oa&p)>>2]|0;k=ir(f,Q,ja)|0;if(k){m=0;za=227;break h}c[(g&p)+20>>2]=wh(R,57,y,0,0)|0;c[(qa&p)>>2]=0;w=g+60|0;l=c[(w&p)>>2]|0;c[(w&p)>>2]=0;q=g+64|0;r=c[(q&p)>>2]|0;c[(q&p)>>2]=0;c[(v&p)>>2]=y;z=c[(oa&p)>>2]|0;k=ir(f,g,ja)|0;m=c[(qa&p)>>2]|0;c[(qa&p)>>2]=Q;t=g+24|0;ea=t;da=c[(ea&p)+4>>2]|0;u=Q+24|0;v=c[(u&p)>>2]|0;u=c[(u&p)+4>>2]|0;if(da>>>0>u>>>0|((da|0)==(u|0)?(c[(ea&p)>>2]|0)>>>0>v>>>0:0)){ea=t;c[(ea&p)>>2]=v;c[(ea&p)+4>>2]=u}Gk(O,c[(w&p)>>2]|0);c[(w&p)>>2]=l;c[(q&p)>>2]=r;if((a[(sa&n)>>0]|0)==9){t=g;while(1){s=c[(t&p)+52>>2]|0;if(!s)break;else t=s}Ns(f,0,c[(t&p)>>2]|0)}q=xs(R)|0;w=xs(R)|0;Os(f,g,q);wh(R,108,A,q,0)|0;t=f+19|0;s=a[(t&n)>>0]|0;if(!(s<<24>>24)){ea=f+72|0;t=(c[(ea&p)>>2]|0)+1|0;c[(ea&p)>>2]=t}else{ea=s+-1<<24>>24;a[(t&n)>>0]=ea;t=c[(f+((ea&255)<<2)&p)+24>>2]|0}l=wh(R,101,A,t,0)|0;xh(R,wh(R,68,y,w,t)|0,0,-14);_r(f,t);Ps(f,g,c[(g&p)>>2]|0,A,0,0,sa,w,q);t=R+24|0;s=c[(t&p)>>2]|0;u=~w;do if((w|0)<0){v=c[(s&p)+112>>2]|0;if(!v)break;c[(v+(u<<2)&p)>>2]=c[(R&p)+32>>2]}while(0);v=R+32|0;c[(s&p)+88>>2]=(c[(v&p)>>2]|0)+-1;wh(R,9,A,l,0)|0;s=c[(t&p)>>2]|0;r=~q;do if((q|0)<0){t=c[(s&p)+112>>2]|0;if(!t)break;c[(t+(r<<2)&p)>>2]=c[(v&p)>>2]}while(0);c[(s&p)+88>>2]=(c[(v&p)>>2]|0)+-1;wh(R,61,y,0,0)|0;wh(R,61,A,0,0)|0;w=P;v=x;t=z;break}}else{Ks(f,g,sa);w=g+4|0;v=0;t=0;m=0;k=0}while(0);ea=a[(w&n)>>0]|0;Qs(f,ea&255,v,t,ea<<24>>24!=116&1);if(!(b[(ta&o)>>1]&8)){za=227;break}u=c[(c[(g&p)>>2]&p)>>2]|0;v=Rs(O,u,1)|0;if(!v){k=7;za=227;break}if((u|0)>0){l=O+8|0;q=v+20|0;r=0;while(1){ea=Ss(f,g,r)|0;c[(q&p)>>2]=ea;if(!ea)c[(q&p)>>2]=c[(l&p)>>2];r=r+1|0;if((r|0)==(u|0))break;else q=q+4|0}}s=R+32|0;t=R+4|0;do{l=0;do{r=g+(l<<2)+16|0;q=c[(r&p)>>2]|0;if((q|0)<0)break;if((c[(s&p)>>2]|0)>>>0>q>>>0)c[((c[(t&p)>>2]|0)+(q*20|0)&p)+8>>2]=u;c[(v&p)>>2]=(c[(v&p)>>2]|0)+1;xh(R,q,v,-6);c[(r&p)>>2]=-1;l=l+1|0}while((l|0)<2);g=c[(g&p)+52>>2]|0}while((g|0)!=0);ea=(c[(v&p)>>2]|0)+-1|0;c[(v&p)>>2]=ea;if(ea){za=227;break}Wc(v);za=227}else{k=d[(g&n)+4>>0]|0;if((k|0)==118)k=35336;else if((k|0)==117)k=35352;else if((k|0)==116)k=35320;else k=35360;c[(ra&p)>>2]=k;th(f,35024,ra);m=0;k=1;za=227}while(0);if((za|0)==227){c[(h&p)+8>>2]=c[(sa&p)+8>>2];c[(h&p)+12>>2]=c[(sa&p)+12>>2];Mk(O,m,1)}c[(Aa&p)>>2]=Ba;break a}if((m&5)==1){k=c[(va&p)>>2]|0;if(!(Ts(k,T,-1)|0)){b[(ta&o)>>1]=m&65534;w=Pr(xa,T,0)|0;c[(l&p)>>2]=w;za=232}}else za=232;if((za|0)==232)k=c[(va&p)>>2]|0;if(!k)k=-1;else{ea=Us(f,k,0,c[(T&p)>>2]|0)|0;da=f+68|0;k=c[(da&p)>>2]|0;c[(da&p)>>2]=k+1;c[(va&p)+8>>2]=k;k=wh(wa,57,k,(c[(c[(va&p)>>2]&p)>>2]|0)+1+(c[(T&p)>>2]|0)|0,0)|0;xh(wa,k,ea,-6)}R=va+20|0;c[(R&p)>>2]=k;if((a[(h&n)>>0]|0)==12)wh(wa,57,c[(h&p)+4>>2]|0,c[(T&p)>>2]|0,0)|0;qa=xs(wa)|0;y=g+24|0;ea=y;c[(ea&p)>>2]=-1;c[(ea&p)+4>>2]=2147483647;Os(f,g,qa);if((c[(g&p)+8>>2]|0)==0?(ha=c[(R&p)>>2]|0,(ha|0)>-1):0){if(!(a[((c[(wa&p)>>2]|0)&n)+65>>0]|0))k=(c[(wa&p)+4>>2]|0)+(ha*20|0)|0;else k=29120;a[(k&n)>>0]=58;ea=va+24|0;a[(ea&n)>>0]=d[(ea&n)>>0]|1}if(!(b[(ta&o)>>1]&1))a[(ua&n)+1>>0]=0;else{ea=f+68|0;k=c[(ea&p)>>2]|0;c[(ea&p)>>2]=k+1;c[(ua&p)+4>>2]=k;ea=Us(f,c[(g&p)>>2]|0,0,0)|0;k=wh(wa,57,k,0,0)|0;xh(wa,k,ea,-6);c[(ua&p)+8>>2]=k;k=c[(wa&p)+4>>2]|0;if(k)a[(k+(((c[(wa&p)+32>>2]|0)+-1|0)*20|0)&n)+3>>0]=8;a[(ua&n)+1>>0]=3}if((z|0)==0&(w|0)==0){v=Vs(f,U,B,c[(va&p)>>2]|0,c[(g&p)>>2]|0,(a[(ua&n)>>0]|0)!=0?1024:0,0)|0;if(!v){za=444;break}t=Ws(b[(v&o)+32>>1]|0)|0;s=G;ea=y;da=c[(ea&p)+4>>2]|0;if(s>>>0>>0|((s|0)==(da|0)?t>>>0<(c[(ea&p)>>2]|0)>>>0:0)){ea=y;c[(ea&p)>>2]=t;c[(ea&p)+4>>2]=s}do if(a[(ua&n)>>0]|0){t=a[(v&n)+40>>0]|0;if(!(t<<24>>24))break;a[(ua&n)+1>>0]=t}while(0);t=c[(va&p)>>2]|0;do if(!t)za=257;else{ea=a[(v&n)+36>>0]|0;c[(va&p)+4>>2]=ea;if((ea|0)!=(c[(t&p)>>2]|0))break;c[(va&p)>>2]=0;za=257}while(0);do if((za|0)==257){r=c[(R&p)>>2]|0;if((r|0)<=-1)break;zh(wa,r)}while(0);Ps(f,g,T,-1,va,ua,h,c[(v&p)+48>>2]|0,c[(v&p)+52>>2]|0);Xs(v)}else{z=(w|0)!=0;do if(z){l=c[(g&p)>>2]|0;k=c[(l&p)>>2]|0;if((k|0)>0){l=c[(l&p)+4>>2]|0;while(1){b[(l&o)+18>>1]=0;k=k+-1|0;if((k|0)<=0)break;else l=l+20|0}}k=c[(w&p)>>2]|0;if((k|0)>0){l=c[(w&p)+4>>2]|0;while(1){b[(l&o)+18>>1]=0;k=k+-1|0;if((k|0)<=0)break;else l=l+20|0}}ea=y;da=c[(ea&p)+4>>2]|0;if(!(da>>>0>0|(da|0)==0&(c[(ea&p)>>2]|0)>>>0>100))break;ea=y;c[(ea&p)>>2]=100;c[(ea&p)+4>>2]=0}else{ea=y;c[(ea&p)>>2]=1;c[(ea&p)+4>>2]=0}while(0);P=(Ts(w,c[(va&p)>>2]|0,-1)|0)==0;S=xs(wa)|0;c[(ma&p)>>2]=0;c[(ma&p)+4>>2]=0;c[(ma&p)+8>>2]=0;c[(ma&p)+12>>2]=0;c[(ma&p)+16>>2]=0;c[(ma&p)+20>>2]=0;c[(ma&p)+24>>2]=0;c[(ma&p)+28>>2]=0;c[(ma&p)>>2]=f;c[(ma&p)+4>>2]=U;c[(ma&p)+12>>2]=ya;K=f+72|0;c[(ya&p)+16>>2]=(c[(K&p)>>2]|0)+1;if(z)k=c[(w&p)>>2]|0;else k=0;y=ya+12|0;c[(y&p)>>2]=k;c[(ya&p)+24>>2]=w;Ys(ma,T);Ys(ma,c[(va&p)>>2]|0);if(ga){c[(ra&p)>>2]=0;c[(ra&p)+4>>2]=0;c[(ra&p)+8>>2]=0;c[(ra&p)+12>>2]=0;c[(ra&p)+16>>2]=0;c[(ra&p)+20>>2]=0;c[(ra&p)>>2]=80;c[(ra&p)+4>>2]=81;c[(ra&p)+24>>2]=ma;rs(ra,ga)|0}A=ya+32|0;c[(ya&p)+36>>2]=c[(A&p)>>2];r=ya+44|0;k=c[(r&p)>>2]|0;if((k|0)>0){x=ma+28|0;l=ya+40|0;m=b[(x&o)>>1]|0;q=0;do{b[(x&o)>>1]=m&65535|8;Ys(ma,c[((c[((c[(l&p)>>2]|0)+(q<<4)&p)>>2]|0)&p)+20>>2]|0);m=e[(x&o)>>1]&65527;b[(x&o)>>1]=m;q=q+1|0;k=c[(r&p)>>2]|0}while((q|0)<(k|0))}c[(ya&p)+20>>2]=c[(K&p)>>2];if(a[(pa&n)>>0]|0){za=444;break}if(z){I=f+68|0;H=c[(I&p)>>2]|0;c[(I&p)>>2]=H+1;v=ya+4|0;c[(v&p)>>2]=H;H=Us(f,w,0,c[(A&p)>>2]|0)|0;u=wh(wa,58,c[(v&p)>>2]|0,c[(y&p)>>2]|0,0)|0;xh(wa,u,H,-6);N=c[(K&p)>>2]|0;M=N+1|0;J=N+2|0;N=N+3|0;c[(K&p)>>2]=N;L=xs(wa)|0;Q=(c[(K&p)>>2]|0)+1|0;c[(K&p)>>2]=Q;O=xs(wa)|0;t=c[(K&p)>>2]|0;r=t+1|0;ea=c[(w&p)>>2]|0;da=ea+t|0;s=da+1|0;c[(K&p)>>2]=da+ea;wh(wa,25,0,J,0)|0;wh(wa,25,0,M,0)|0;wh(wa,28,0,r,(c[(w&p)>>2]|0)+t|0)|0;wh(wa,17,Q,O,0)|0;t=Vs(f,U,B,w,0,P?2304:256,0)|0;if(!t){za=444;break}if((a[(t&n)+36>>0]|0)==(c[(w&p)>>2]|0)){x=0;k=0;y=0}else{if(!(a[(ua&n)>>0]|0))k=34824;else k=(b[(ta&o)>>1]&1)==0?34808:34824;$s(f,k);D=c[(w&p)>>2]|0;k=c[(A&p)>>2]|0;if((k|0)>0){l=c[(ya&p)+28>>2]|0;m=0;y=D;x=D;do{if((c[(l+(m*24|0)&p)+12>>2]|0)>=(y|0)){y=y+1|0;x=x+1|0}m=m+1|0}while((m|0)<(k|0));F=x}else F=D;E=f+60|0;x=c[(E&p)>>2]|0;B=f+56|0;k=c[(B&p)>>2]|0;if((k|0)<(F|0)){C=c[(K&p)>>2]|0;c[(K&p)>>2]=C+F;C=C+1|0}else{c[(E&p)>>2]=x+F;c[(B&p)>>2]=k-F;C=x}at(f);bt(f,w,C,0);y=c[(A&p)>>2]|0;if((y|0)>0){m=ya+28|0;z=0;x=D;do{k=c[(m&p)>>2]|0;if((c[(k+(z*24|0)&p)+12>>2]|0)>=(x|0)){l=x+C|0;y=ct(f,c[(k+(z*24|0)&p)>>2]|0,c[(k+(z*24|0)&p)+8>>2]|0,c[(k+(z*24|0)&p)+4>>2]|0,l,0)|0;if((l|0)!=(y|0))wh(wa,34,y,l,0)|0;y=c[(A&p)>>2]|0;x=x+1|0}z=z+1|0}while((z|0)<(y|0))}y=f+19|0;x=a[(y&n)>>0]|0;if(!(x<<24>>24)){x=(c[(K&p)>>2]|0)+1|0;c[(K&p)>>2]=x}else{x=x+-1<<24>>24;a[(y&n)>>0]=x;x=c[(f+((x&255)<<2)&p)+24>>2]|0}wh(wa,49,C,F,x)|0;wh(wa,109,c[(v&p)>>2]|0,x,0)|0;_r(f,x);dt(f,C,F);if((c[(B&p)>>2]|0)<(F|0)){c[(B&p)>>2]=F;c[(E&p)>>2]=C}Xs(t);l=c[(I&p)>>2]|0;c[(I&p)>>2]=l+1;c[(ya&p)+8>>2]=l;k=a[(y&n)>>0]|0;if(!(k<<24>>24)){k=(c[(K&p)>>2]|0)+1|0;c[(K&p)>>2]=k}else{k=k+-1<<24>>24;a[(y&n)>>0]=k;k=c[(f+((k&255)<<2)&p)+24>>2]|0}wh(wa,60,l,k,F)|0;wh(wa,106,c[(v&p)>>2]|0,S,0)|0;a[(ya&n)+1>>0]=1;at(f);x=1;y=l}do if(P){if(b[(xa&o)+60>>1]&4)break;if((x|0)==0?(a[(t&n)+37>>0]|0)==0:0)break;c[(va&p)>>2]=0;zh(wa,c[(R&p)>>2]|0)}while(0);A=wa+32|0;q=c[(A&p)>>2]|0;at(f);x=(x|0)!=0;if(x)wh(wa,100,c[(v&p)>>2]|0,k,y)|0;k=c[(w&p)>>2]|0;if((k|0)>0){l=w+4|0;m=0;do{if(x)wh(wa,47,y,m,m+s|0)|0;else{a[(ya&n)>>0]=1;Rq(f,c[((c[(l&p)>>2]|0)+(m*20|0)&p)>>2]|0,m+s|0)}m=m+1|0;k=c[(w&p)>>2]|0}while((m|0)<(k|0))}if(H)c[(H&p)>>2]=(c[(H&p)>>2]|0)+1;xh(wa,wh(wa,42,r,s,k)|0,H,-6);k=c[(A&p)>>2]|0;ea=k+1|0;wh(wa,43,ea,0,ea)|0;w=c[(w&p)>>2]|0;wh(c[(f&p)+8>>2]|0,32,s,r,w)|0;dt(f,s,w);wh(wa,17,N,L,0)|0;wh(wa,137,J,S,0)|0;wh(wa,17,Q,O,0)|0;w=c[(A&p)>>2]|0;if(w>>>0>k>>>0)c[((c[(wa&p)+4>>2]|0)+(k*20|0)&p)+8>>2]=w;r=wa+24|0;c[((c[(r&p)>>2]|0)&p)+88>>2]=w+-1;et(f,ya);wh(wa,25,1,M,0)|0;if(x)wh(wa,5,c[(v&p)>>2]|0,q,0)|0;else{Xs(t);zh(wa,u)}wh(wa,17,N,L,0)|0;wh(wa,16,0,S,0)|0;m=c[(A&p)>>2]|0;wh(wa,25,1,J,0)|0;wh(wa,18,N,0,0)|0;k=c[(r&p)>>2]|0;l=~L;do if((L|0)<0){w=c[(k&p)+112>>2]|0;if(!w)break;c[(w+(l<<2)&p)>>2]=c[(A&p)>>2]}while(0);v=c[(A&p)>>2]|0;c[(k&p)+88>>2]=v+-1;wh(wa,137,M,v+2|0,0)|0;wh(wa,18,N,0,0)|0;ft(f,ya);v=v+1|0;gt(f,ga,v,16);Ps(f,g,c[(g&p)>>2]|0,-1,va,ua,h,v,m);wh(wa,18,N,0,0)|0;v=c[(r&p)>>2]|0;u=~O;do if((O|0)<0){t=c[(v&p)+112>>2]|0;if(!t)break;c[(t+(u<<2)&p)>>2]=c[(A&p)>>2]}while(0);c[(v&p)+88>>2]=(c[(A&p)>>2]|0)+-1;ht(f,ya);wh(wa,18,Q,0,0)|0}else{do if(!(c[(H&p)>>2]|0)){u=c[(g&p)>>2]|0;if((c[(u&p)>>2]|0)!=1){za=372;break}v=c[(na&p)>>2]|0;if((c[(v&p)>>2]|0)!=1){za=372;break}if(c[(v&p)+28>>2]|0){za=372;break}A=c[(v&p)+24>>2]|0;v=c[(c[(u&p)+4>>2]&p)>>2]|0;z=A+44|0;if(a[(z&n)>>0]&16){za=372;break}if((a[(v&n)>>0]|0)!=-101|(k|0)==0){za=372;break}y=ya+40|0;if(!(b[((c[((c[(y&p)>>2]|0)&p)+4>>2]|0)&o)+2>>1]&256)){za=372;break}if((A|0)==0?1:(c[(v&p)+4>>2]&16|0)!=0){za=372;break}v=c[(f&p)>>2]|0;k=c[(A&p)+68>>2]|0;i:do if(!k)u=-1e6;else{l=c[(v&p)+20>>2]|0;if((l|0)<=0){u=0;break}v=c[(v&p)+16>>2]|0;w=0;while(1){u=w+1|0;if((c[(v+(w<<4)&p)+12>>2]|0)==(k|0)){u=w;break i}if((u|0)<(l|0))w=u;else break}}while(0);w=f+68|0;q=c[(w&p)>>2]|0;c[(w&p)>>2]=q+1;w=A+32|0;k=c[(w&p)>>2]|0;Ar(f,u);gs(f,u,c[(w&p)>>2]|0,0,c[(A&p)>>2]|0);w=c[(A&p)+8>>2]|0;j:do if(!(a[(z&n)>>0]&32)){v=0;za=351}else{if(!w){l=1;m=0;w=0;break}else v=w;while(1){if((a[(v&n)+51>>0]&3)==2){za=351;break j}v=c[(v&p)+20>>2]|0;if(!v){v=0;za=351;break}}}while(0);do if((za|0)==351){if(w){m=A+42|0;l=w;do{do if(!(a[(l&n)+51>>0]&4)){w=b[(l&o)+44>>1]|0;if(w<<16>>16>=(b[(m&o)>>1]|0))break;if(c[(l&p)+36>>2]|0)break;if((v|0)!=0?w<<16>>16>=(b[(v&o)+44>>1]|0):0)break;v=l}while(0);l=c[(l&p)+20>>2]|0}while((l|0)!=0)}if(!v){l=1;m=0;w=0;break}k=c[(v&p)+40>>2]|0;l=0;m=v;w=hs(f,v)|0}while(0);xh(wa,wh(wa,54,q,k,u)|0,1,-14);if(w)xh(wa,-1,w,-6);wh(wa,50,q,c[((c[(y&p)>>2]|0)&p)+8>>2]|0,0)|0;wh(wa,61,q,0,0)|0;if((a[(f&n)+450>>0]|0)!=2){t=0;break}do if(l){v=c[(A&p)>>2]|0;u=10360;s=10360;t=c[(f&p)>>2]|0}else{if(a[(z&n)>>0]&32){ea=(a[(m&n)+51>>0]&3)!=2;t=c[(f&p)>>2]|0;v=c[(A&p)>>2]|0;u=ea?34920:10360;if(!ea){s=10360;break}}else{u=34920;v=c[(A&p)>>2]|0;t=c[(f&p)>>2]|0}s=c[(m&p)>>2]|0}while(0);c[(ra&p)>>2]=v;c[(ra&p)+4>>2]=u;c[(ra&p)+8>>2]=s;t=uh(t,34896,ra)|0;ea=c[(f&p)+8>>2]|0;xh(ea,wh(ea,157,c[(Aa&p)>>2]|0,0,0)|0,t,-1);t=0}else za=372;while(0);if((za|0)==372){do if((c[(I&p)>>2]|0)==0&(k|0)==1){t=c[(c[(ya&p)+40>>2]&p)>>2]|0;v=c[(t&p)+20>>2]|0;if(!v){t=0;s=0;break}if((c[(v&p)>>2]|0)!=1){t=0;s=0;break}if((a[(c[(c[(v&p)+4>>2]&p)>>2]&n)>>0]|0)!=-100){t=0;s=0;break}t=c[(t&p)+8>>2]|0;if(dd(t,18760)|0)if(!(dd(t,18768)|0))s=2;else{t=0;s=0;break}else s=1;t=Pr(xa,v,0)|0;if(!t){t=0;break}if(a[(pa&n)>>0]|0)break;ea=c[(t&p)+4>>2]|0;a[(ea&n)+12>>0]=s<<24>>24!=1&1;a[(c[(ea&p)>>2]&n)>>0]=-102}else{t=0;s=0}while(0);ht(f,ya);s=Vs(f,U,B,t,0,s&255,0)|0;if(!s){Nk(xa,t);za=444;break}et(f,ya);if((a[(s&n)+36>>0]|0)>0)wh(wa,16,0,c[(s&p)+52>>2]|0,0)|0;Xs(s);ft(f,ya)}c[(va&p)>>2]=0;gt(f,ga,S,16);Ps(f,g,c[(g&p)>>2]|0,-1,0,0,h,S,S);Nk(xa,t);r=wa+24|0}t=c[(r&p)>>2]|0;s=~S;do if((S|0)<0){r=c[(t&p)+112>>2]|0;if(!r)break;c[(r+(s<<2)&p)>>2]=c[(wa&p)+32>>2]}while(0);c[(t&p)+88>>2]=(c[(wa&p)+32>>2]|0)+-1}if((a[(ua&n)+1>>0]|0)==3)$s(f,34808);if(c[(va&p)>>2]|0){x=va+4|0;$s(f,(c[(x&p)>>2]|0)>0?34840:34864);A=c[(T&p)>>2]|0;v=f+8|0;H=c[(v&p)>>2]|0;I=xs(H)|0;F=xs(H)|0;q=c[(va&p)>>2]|0;m=a[(h&n)>>0]|0;B=m&255;C=h+4|0;D=c[(C&p)>>2]|0;y=va+16|0;w=c[(y&p)>>2]|0;if(w){wh(H,17,c[(va&p)+12>>2]|0,w,0)|0;wh(H,16,0,I,0)|0;ea=c[(y&p)>>2]|0;w=c[(H&p)+24>>2]|0;k=~ea;do if((ea|0)<0){l=c[(w&p)+112>>2]|0;if(!l)break;c[(l+(k<<2)&p)>>2]=c[(H&p)+32>>2]}while(0);c[(w&p)+88>>2]=(c[(H&p)+32>>2]|0)+-1}E=c[(va&p)+8>>2]|0;t=m<<24>>24==9;k:do if((m&-5)<<24>>24==9){s=A;u=c[(h&p)+8>>2]|0;k=0}else{w=f+19|0;k=a[(w&n)>>0]|0;do if(k<<24>>24){ea=k+-1<<24>>24;a[(w&n)>>0]=ea;l=c[(f+((ea&255)<<2)&p)+24>>2]|0;if(!(ea<<24>>24)){k=l;w=c[(f&p)+72>>2]|0;break}else{u=k+-2<<24>>24;a[(w&n)>>0]=u;s=1;u=c[(f+((u&255)<<2)&p)+24>>2]|0;k=l;break k}}else{k=f+72|0;w=(c[(k&p)>>2]|0)+1|0;c[(k&p)>>2]=w;k=w}while(0);u=w+1|0;c[(f&p)+72>>2]=u;s=1}while(0);r=(c[(q&p)>>2]|0)-(c[(x&p)>>2]|0)|0;z=va+24|0;if(!(a[(z&n)>>0]&1)){w=wh(H,107,E,I,0)|0;it(H,c[(g&p)+12>>2]|0,F);l=1;m=E}else{ea=f+72|0;m=(c[(ea&p)>>2]|0)+1|0;c[(ea&p)>>2]=m;ea=f+68|0;q=c[(ea&p)>>2]|0;c[(ea&p)>>2]=q+1;if(!(c[(y&p)>>2]|0))l=0;else{ea=Oq(f)|0;da=f+80|0;l=c[(da&p)>>2]|0;c[(da&p)>>2]=l+1;l=wh(ea,44,l,0,0)|0}wh(H,60,q,m,s+1+r|0)|0;if(l){w=c[(H&p)+32>>2]|0;if(w>>>0>l>>>0)c[((c[(H&p)+4>>2]|0)+(l*20|0)&p)+8>>2]=w;c[((c[(H&p)+24>>2]|0)&p)+88>>2]=w+-1}w=wh(H,106,E,I,0)|0;it(H,c[(g&p)+12>>2]|0,F);wh(H,100,E,m,q)|0;l=0;m=q}x=w+1|0;if((s|0)>0){w=l+r|0;l=0;do{wh(H,47,m,w+l|0,l+u|0)|0;l=l+1|0}while((l|0)!=(s|0))}do if((B|0)==12|(B|0)==14){wh(H,74,D,k,0)|0;wh(H,75,D,u,k)|0;t=c[(H&p)+4>>2]|0;if(!t)break;a[(t+(((c[(H&p)+32>>2]|0)+-1|0)*20|0)&n)+3>>0]=8}else if((B|0)==11){xh(H,wh(H,49,u,1,k)|0,h+1|0,1);dt(f,u,1);wh(H,110,D,k,0)|0}else if((B|0)!=10)if(t){ea=h+8|0;wh(H,35,c[(ea&p)>>2]|0,A,0)|0;dt(f,c[(ea&p)>>2]|0,A);break}else{wh(H,22,c[(C&p)>>2]|0,0,0)|0;break}else{wh(c[(v&p)>>2]|0,32,u,D,1)|0;dt(f,u,1)}while(0);if(k){_r(f,u);_r(f,k)}s=H+24|0;u=c[(s&p)>>2]|0;v=~F;do if((F|0)<0){t=c[(u&p)+112>>2]|0;if(!t)break;c[(t+(v<<2)&p)>>2]=c[(H&p)+32>>2]}while(0);v=H+32|0;c[(u&p)+88>>2]=(c[(v&p)>>2]|0)+-1;if(!(a[(z&n)>>0]&1))wh(H,9,E,x,0)|0;else wh(H,5,E,x,0)|0;r=c[(va&p)+12>>2]|0;if(r)wh(H,18,r,0,0)|0;r=c[(s&p)>>2]|0;q=~I;do if((I|0)<0){m=c[(r&p)+112>>2]|0;if(!m)break;c[(m+(q<<2)&p)>>2]=c[(v&p)>>2]}while(0);c[(r&p)+88>>2]=(c[(v&p)>>2]|0)+-1}l=c[(wa&p)+24>>2]|0;m=~qa;do if((qa|0)<0){k=c[(l&p)+112>>2]|0;if(!k)break;c[(k+(m<<2)&p)>>2]=c[(wa&p)+32>>2]}while(0);c[(l&p)+88>>2]=(c[(wa&p)+32>>2]|0)+-1;c[(Aa&p)>>2]=Ba;if((a[(h&n)>>0]|0)!=9){k=0;break}Ns(f,U,T);k=0}else za=444;while(0);if((za|0)==444){c[(Aa&p)>>2]=Ba;k=1}mg(xa,c[(ya&p)+28>>2]|0);mg(xa,c[(ya&p)+40>>2]|0)}else k=1;while(0);i=Ca;return k|0}function jr(a,b,d,e,f,g,h,k){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;var l=0,m=0,n=0,o=0,q=0,r=0;r=i;i=i+16|0;if((i|0)>=(j|0))fa();m=r;o=c[(a&p)>>2]|0;if((b|0)==0?(l=(h|0)!=0,l|(k|0)!=0):0){c[(m&p)>>2]=l?34792:34800;th(a,34752,m);q=9}else{b=pr(o,b,d,e)|0;if((b|0)!=0?(n=c[(b&p)>>2]|0,(n|0)!=0):0){l=n+-1|0;if(c[(f&p)+4>>2]|0)c[(b+(l*72|0)&p)+20>>2]=Wq(o,f)|0;c[(b+(l*72|0)&p)+28>>2]=g;c[(b+(l*72|0)&p)+52>>2]=h;c[(b+(l*72|0)&p)+56>>2]=k}else q=9}if((q|0)==9){Gk(o,h);Hk(o,k);Mk(o,g,1);b=0}i=r;return b|0}function kr(d,e,f,g,h,k,l,m,q,r){d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;m=m|0;q=q|0;r=r|0;var s=0,t=0,u=0,v=0,w=0,x=0,y=0;y=i;i=i+80|0;if((i|0)>=(j|0))fa();t=y+72|0;x=y;w=c[(d&p)>>2]|0;s=mh(w,72,0)|0;if(!s){u=x+0|0;v=u+72|0;do{c[(u&p)>>2]=0;u=u+4|0}while((u|0)<(v|0));s=x}else{u=s+0|0;v=u+72|0;do{a[(u&n)>>0]=0;u=u+1|0}while((u|0)<(v|0))}if(!e){c[(t&p)>>2]=0;c[(t&p)+4>>2]=0;e=lr(d,0,nr(w,116,t,0)|0)|0}c[(s&p)>>2]=e;if(!f){f=mh(w,80,0)|0;if(f){u=f+0|0;v=u+80|0;do{a[(u&n)>>0]=0;u=u+1|0}while((u|0)<(v|0))}}c[(s&p)+32>>2]=f;c[(s&p)+36>>2]=g;c[(s&p)+40>>2]=h;c[(s&p)+44>>2]=k;c[(s&p)+48>>2]=l;b[(s&o)+6>>1]=m;a[(s&n)+4>>0]=119;c[(s&p)+60>>2]=q;c[(s&p)+64>>2]=r;c[(s&p)+16>>2]=-1;c[(s&p)+20>>2]=-1;if(a[(w&n)+65>>0]|0){Mk(w,s,(s|0)!=(x|0)&1);s=0}i=y;return s|0}function lr(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0;g=c[(b&p)>>2]|0;if(!d){d=mh(g,8,0)|0;if(d){b=d;f=b;a[(f&n)>>0]=0;a[(f&n)+1>>0]=0;a[(f&n)+2>>0]=0;a[(f&n)+3>>0]=0;b=b+4|0;a[(b&n)>>0]=0;a[(b&n)+1>>0]=0;a[(b&n)+2>>0]=0;a[(b&n)+3>>0]=0;b=mh(g,20,0)|0;c[(d&p)+4>>2]=b;if(!b)f=8;else f=7}else{d=0;f=8}}else{b=c[(d&p)>>2]|0;if(!(b+-1&b)){f=d+4|0;b=ro(g,c[(f&p)>>2]|0,b*40|0,0)|0;if(!b)f=8;else{c[(f&p)>>2]=b;f=7}}else f=7}if((f|0)==7){b=c[(d&p)>>2]|0;c[(d&p)>>2]=b+1;b=(c[(d&p)+4>>2]|0)+(b*20|0)|0;c[(b&p)>>2]=0;c[(b&p)+4>>2]=0;c[(b&p)+8>>2]=0;c[(b&p)+12>>2]=0;c[(b&p)+16>>2]=0;c[(b&p)>>2]=e}else if((f|0)==8){Gk(g,e);Nk(g,d);d=0}return d|0}function mr(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0;do if(d){j=(c[(d&p)>>2]|0)+-1|0;g=c[(d&p)+4>>2]|0;h=c[(e&p)>>2]|0;d=c[(e&p)+4>>2]|0;if((h|0)!=0?(e=c[(b&p)>>2]|0,i=jw(d|0,0,1,0)|0,i=mh(e,i,G)|0,(i|0)!=0):0){kw(i|0,h|0,d|0)|0;a[(i+d&n)>>0]=0;c[(g+(j*20|0)&p)+4>>2]=i;if(!f)break;lo(i);break}c[(g+(j*20|0)&p)+4>>2]=0}while(0);return}function nr(d,e,f,g){d=d|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,q=0,r=0,s=0,t=0;t=i;i=i+16|0;if((i|0)>=(j|0))fa();m=t;c[(m&p)>>2]=0;k=(f|0)!=0;do if(k){if(((e|0)==132?(h=c[(f&p)>>2]|0,(h|0)!=0):0)?(Dn(h,m)|0)!=0:0){r=0;break}r=(c[(f&p)+4>>2]|0)+1|0}else r=0;while(0);l=r+48|0;q=mh(d,l,0)|0;if(q){fw(q|0,0,l|0)|0;a[(q&n)>>0]=e;b[(q&o)+34>>1]=-1;do if(k){if(!r){g=q+4|0;c[(g&p)>>2]=c[(g&p)>>2]|1024;c[(q&p)+8>>2]=c[(m&p)>>2];break}h=q+48|0;l=q+8|0;c[(l&p)>>2]=h;k=f+4|0;d=c[(k&p)>>2]|0;if(!d)h=48;else{kw(h|0,c[(f&p)>>2]|0,d|0)|0;h=(c[(k&p)>>2]|0)+48|0}a[(q+h&n)>>0]=0;if(((g|0)!=0&(r|0)>2?(g=a[(c[(f&p)>>2]&n)>>0]|0,s=g<<24>>24==34,g<<24>>24==34|g<<24>>24==39|g<<24>>24==91|g<<24>>24==96):0)?(lo(c[(l&p)>>2]|0),s):0){g=q+4|0;c[(g&p)>>2]=c[(g&p)>>2]|64}}while(0);c[(q&p)+24>>2]=1}i=t;return q|0}function or(b,d,e){b=b|0;d=d|0;e=e|0;var f=0;do if((d|0)!=0?(f=c[(d&p)>>2]|0,(f|0)>0):0){f=f+-1|0;if((c[(e&p)+4>>2]|0)==1?(c[(e&p)>>2]|0)==0:0){f=d+(f*72|0)+45|0;a[(f&n)>>0]=a[(f&n)>>0]|1;break}c[(d+(f*72|0)&p)+72>>2]=Wq(c[(b&p)>>2]|0,e)|0}while(0);return}function pr(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0;if(!d){d=mh(b,80,0)|0;if(!d)d=0;else{h=d+0|0;g=h+80|0;do{a[(h&n)>>0]=0;h=h+1|0}while((h|0)<(g|0));c[(d&p)+4>>2]=1;h=4}}else h=4;do if((h|0)==4){d=Fs(b,d,1,c[(d&p)>>2]|0)|0;if(a[(b&n)+65>>0]|0){Do(b,d);d=0;break}h=(c[(d&p)>>2]|0)+-1|0;if(!f)g=0;else g=(c[(f&p)>>2]|0)==0?0:f;f=(g|0)==0;c[(d+(h*72|0)&p)+16>>2]=Wq(b,f?e:g)|0;c[(d+(h*72|0)&p)+12>>2]=Wq(b,f?0:e)|0}while(0);return d|0}function qr(a,b,e,f){a=a|0;b=b|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,o=0,q=0,r=0,s=0;s=i;i=i+32|0;if((i|0)>=(j|0))fa();q=s;m=s+16|0;c[(m&p)>>2]=b;c[(m&p)+4>>2]=e;c[(m&p)+8>>2]=f;l=b;o=1;g=0;a:while(1){if(!l)break;k=c[(l&p)+4>>2]|0;h=0;while(1){if((k|0)==(d[((h*3|0)&n)+34625>>0]|0|0)?(Fc(c[(l&p)>>2]|0,34584+(d[((h*3|0)&n)+34624>>0]|0)|0,k)|0)==0:0)break;h=h+1|0;if((h|0)>=7){r=10;break a}}g=d[((h*3|0)&n)+34626>>0]|0|g;if((h|0)>6){r=10;break}if((o|0)>=3)break;l=c[(m+(o<<2)&p)>>2]|0;o=o+1|0}if((r|0)==10)g=g|64;if((g&33|0)!=33&(g&64|0)==0){if(!((g&32|0)==0|(g&24|0)==8)){th(a,34696,q);g=1}}else{c[(q&p)>>2]=b;c[(q&p)+4>>2]=e;c[(q&p)+8>>2]=(f|0)==0?20377|0:20376;c[(q&p)+12>>2]=f;th(a,34648,q);g=1}i=s;return g|0}function rr(e,f,g){e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=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;T=i;i=i+48|0;if((i|0)>=(j|0))fa();Q=T+36|0;R=T+32|0;r=T;c[(Q&p)>>2]=0;c[(R&p)>>2]=0;S=c[(e&p)>>2]|0;if(((((c[(e&p)+64>>2]|0)==0?(a[(S&n)+65>>0]|0)==0:0)?(H=Jr(e,f)|0,(H|0)!=0):0)?(G=jt(e,H,109,0,0)|0,P=(c[(H&p)+12>>2]|0)!=0,(hr(e,H)|0)==0):0)?(t=(G|0)!=0,(kt(e,H,t&1)|0)==0):0){l=c[(H&p)+68>>2]|0;a:do if(l){k=c[(S&p)+20>>2]|0;if((k|0)>0){h=c[(S&p)+16>>2]|0;q=0;while(1){m=q+1|0;if((c[(h+(q<<4)&p)+12>>2]|0)==(l|0)){m=q;break a}if((m|0)<(k|0))q=m;else break}}else m=0}else m=-1e6;while(0);h=Sq(e,9,c[(H&p)>>2]|0,0,c[((c[(S&p)+16>>2]|0)+(m<<4)&p)>>2]|0)|0;if((h|0)!=1){s=e+68|0;C=c[(s&p)>>2]|0;u=C+1|0;c[(s&p)>>2]=u;c[(f&p)+48>>2]=C;I=H+8|0;l=c[(I&p)>>2]|0;if(!l)q=0;else{k=u;q=0;do{k=k+1|0;c[(s&p)>>2]=k;q=q+1|0;l=c[(l&p)+20>>2]|0}while((l|0)!=0)}if(P){N=e+492|0;O=c[(N&p)>>2]|0;c[(N&p)>>2]=c[(H&p)>>2];N=e}else{N=0;O=0}L=Oq(e)|0;b:do if(L){M=e+18|0;if(!(a[(M&n)>>0]|0)){E=L+88|0;b[(E&o)>>1]=b[(E&o)>>1]|4}D=e+408|0;E=c[(D&p)>>2]|0;E=(E|0)==0?e:E;Ar(e,m);B=E+328|0;c[(B&p)>>2]=c[(B&p)>>2]|1<>0]=d[(E&n)>>0]|1;if(P){lt(e,H,g,C);c[(R&p)>>2]=C;c[(Q&p)>>2]=C};c[(r&p)>>2]=0;c[(r&p)+4>>2]=0;c[(r&p)+8>>2]=0;c[(r&p)+12>>2]=0;c[(r&p)+16>>2]=0;c[(r&p)+20>>2]=0;c[(r&p)+24>>2]=0;c[(r&p)+28>>2]=0;c[(r&p)>>2]=e;c[(r&p)+4>>2]=f;if(!(ls(r,g)|0)){J=S+24|0;if(!(c[(J&p)>>2]&128))K=-1;else{E=e+72|0;K=(c[(E&p)>>2]|0)+1|0;c[(E&p)>>2]=K;wh(L,25,0,K,0)|0}E=H+44|0;do if((!((g|0)!=0|(h|0)!=0|t)?(a[(E&n)>>0]&16)==0:0)?(mt(e,H,0,0)|0)==0:0){l=H+32|0;gs(e,m,c[(l&p)>>2]|0,1,c[(H&p)>>2]|0);if(!(a[(E&n)>>0]&32)){H=c[(H&p)>>2]|0;xh(L,wh(L,118,c[(l&p)>>2]|0,m,K)|0,H,-2)}h=c[(I&p)>>2]|0;if(!h){h=0;break}do{wh(L,118,c[(h&p)+40>>2]|0,m,0)|0;h=c[(h&p)+20>>2]|0}while((h|0)!=0);h=0}else F=31;while(0);do if((F|0)==31){if(!(a[(E&n)>>0]&32)){v=e+72|0;z=(c[(v&p)>>2]|0)+1|0;c[(v&p)>>2]=z;wh(L,28,0,z,0)|0;v=0;A=0;h=0;x=1;m=0}else{m=c[(I&p)>>2]|0;c:do if(!m)m=0;else while(1){if((a[(m&n)+51>>0]&3)==2)break c;m=c[(m&p)+20>>2]|0;if(!m){m=0;break}}while(0);x=b[(m&o)+46>>1]|0;A=e+72|0;h=c[(A&p)>>2]|0;v=x<<16>>16;c[(A&p)>>2]=h+v;A=c[(s&p)>>2]|0;c[(s&p)>>2]=A+1;v=wh(L,57,A,v,0)|0;z=c[(e&p)+8>>2]|0;xh(z,-1,hs(e,m)|0,-6);h=h+1|0;z=0}w=Vs(e,f,g,0,0,12,u)|0;if(!w){h=0;break b}u=w+60|0;t=c[(u&p)>>2]|0;u=c[(u&p)+4>>2]|0;y=a[(w&n)+38>>0]|0;if(c[(J&p)>>2]&128)wh(L,37,K,1,0)|0;B=(m|0)!=0;do if(B){if(x<<16>>16<=0){k=h;break}r=m+4|0;l=x<<16>>16;s=0;do{nt(L,H,C,b[((c[(r&p)>>2]|0)+(s<<1)&o)>>1]|0,s+h|0);s=s+1|0}while((s|0)!=(l|0));k=h}else{l=e+72|0;k=ct(e,H,-1,C,(c[(l&p)>>2]|0)+1|0,0)|0;if((k|0)<=(c[(l&p)>>2]|0))break;c[(l&p)>>2]=k}while(0);r=y<<24>>24!=0;do if(!r)if(B){l=e+72|0;k=(c[(l&p)>>2]|0)+1|0;c[(l&p)>>2]=k;l=x<<16>>16;s=ot(L,m)|0;xh(L,wh(L,49,h,l,k)|0,s,l);wh(L,110,A,k,0)|0;h=0;l=0;s=0;F=59;break}else{wh(L,128,z,k,0)|0;Xs(w);h=0;u=0;m=1;break}else{h=q+2|0;h=mh(S,h,((h|0)<0)<<31>>31)|0;if(!h){Xs(w);h=0;break b}F=q+1|0;fw(h|0,1,F|0)|0;a[(h+F&n)>>0]=0;if((t|0)>-1)a[(h+(t-C)&n)>>0]=0;if((u|0)>-1)a[(h+(u-C)&n)>>0]=0;if(v)zh(L,v);l=wh(L,16,0,0,0)|0;s=x;F=59}while(0);do if((F|0)==59){Xs(w);if(!r){u=0;m=s;break}m=xs(L)|0;wh(L,16,0,m,0)|0;q=c[(L&p)+32>>2]|0;if(q>>>0>l>>>0)c[((c[(L&p)+4>>2]|0)+(l*20|0)&p)+8>>2]=q;c[((c[(L&p)+24>>2]|0)&p)+88>>2]=q+-1;u=m;m=s}while(0);if(!P)pt(e,H,55,C,h,Q,R)|0;do if(!r)if(B){l=wh(L,108,A,0,0)|0;wh(L,101,A,k,0)|0;break}else{l=wh(L,129,z,0,k)|0;break}else{q=c[(Q&p)>>2]|0;if(!(a[(h+(q-C)&n)>>0]|0)){l=0;break}xh(L,wh(L,68,q,u,k)|0,m<<16>>16,-14);l=0}while(0);if(!(a[(E&n)>>0]&16))rt(e,H,G,c[(Q&p)>>2]|0,c[(R&p)>>2]|0,k,m,(a[(M&n)>>0]|0)==0&1,10,y);else{q=c[(H&p)+60>>2]|0;d:do if(!q)q=0;else while(1){if((c[(q&p)>>2]|0)==(S|0))break d;q=c[(q&p)+24>>2]|0;if(!q){q=0;break}}while(0);qt(e,H);xh(L,wh(L,15,0,1,k)|0,q,-10);q=c[(L&p)+4>>2]|0;if(q)a[(q+(((c[(L&p)+32>>2]|0)+-1|0)*20|0)&n)+3>>0]=2;H=c[(D&p)>>2]|0;a[(((H|0)==0?e:H)&n)+21>>0]=1}do if(!r)if(B){wh(L,9,A,l+1|0,0)|0;q=c[(L&p)+32>>2]|0;if(q>>>0>l>>>0)c[((c[(L&p)+4>>2]|0)+(l*20|0)&p)+8>>2]=q;c[((c[(L&p)+24>>2]|0)&p)+88>>2]=q+-1;break}else{wh(L,16,0,l,0)|0;q=c[(L&p)+32>>2]|0;if(q>>>0>l>>>0)c[((c[(L&p)+4>>2]|0)+(l*20|0)&p)+8>>2]=q;c[((c[(L&p)+24>>2]|0)&p)+88>>2]=q+-1;break}else{m=c[(L&p)+24>>2]|0;l=~u;do if((u|0)<0){q=c[(m&p)+112>>2]|0;if(!q)break;c[(q+(l<<2)&p)>>2]=c[(L&p)+32>>2]}while(0);c[(m&p)+88>>2]=(c[(L&p)+32>>2]|0)+-1}while(0);if(P)break;if(a[(E&n)>>0]&16)break;if(!B)wh(L,61,c[(Q&p)>>2]|0,0,0)|0;k=c[(I&p)>>2]|0;if(!k)break;else l=0;while(1){wh(L,61,(c[(R&p)>>2]|0)+l|0,0,0)|0;k=c[(k&p)+20>>2]|0;if(!k)break;else l=l+1|0}}while(0);if((a[(M&n)>>0]|0)==0?(c[(e&p)+412>>2]|0)==0:0)st(e);if((c[(J&p)>>2]&128|0)!=0?(a[(M&n)>>0]|0)==0:0){if(c[(e&p)+412>>2]|0)break;wh(L,35,K,1,0)|0;iq(L,1);if(a[((c[(L&p)>>2]|0)&n)+65>>0]|0)break;Xg(c[(L&p)+16>>2]|0,34568,-1,1,0)|0}}else h=0}else h=0;while(0);if(N)c[(N&p)+492>>2]=O}else h=0}else h=0;Do(S,f);Gk(S,g);mg(S,h);i=T;return}function sr(e,f,g,h,k){e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;var l=0,m=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,ga=0,ha=0,ia=0,ja=0,ka=0,la=0,ma=0;ma=i;i=i+64|0;if((i|0)>=(j|0))fa();T=ma;Y=ma+32|0;ea=ma+24|0;ha=ma+20|0;la=c[(e&p)>>2]|0;a:do if(((c[(e&p)+64>>2]|0)==0?(a[(la&n)+65>>0]|0)==0:0)?(ka=Jr(e,f)|0,(ka|0)!=0):0){m=c[(e&p)>>2]|0;r=c[(ka&p)+68>>2]|0;b:do if(r){s=c[(m&p)+20>>2]|0;if((s|0)>0){m=c[(m&p)+16>>2]|0;q=0;while(1){l=q+1|0;if((c[(m+(q<<4)&p)+12>>2]|0)==(r|0))break b;if((l|0)<(s|0))q=l;else{q=l;break}}}else q=0}else q=-1e6;while(0);ga=jt(e,ka,110,g,ea)|0;ca=(c[(ka&p)+12>>2]|0)!=0;if((hr(e,ka)|0)==0?(kt(e,ka,c[(ea&p)>>2]|0)|0)==0:0){_=e+68|0;$=c[(_&p)>>2]|0;ia=$+1|0;c[(_&p)>>2]=ia;r=f+48|0;c[(r&p)>>2]=$;K=ka+44|0;u=c[(ka&p)+8>>2]|0;c:do if(!(a[(K&n)>>0]&32)){s=0;ba=16}else{if(!u){w=ka+8|0;s=0;t=$;v=0;break}else s=u;while(1){if((a[(s&n)+51>>0]&3)==2){ba=16;break c}s=c[(s&p)+20>>2]|0;if(!s){s=0;ba=16;break}}}while(0);if((ba|0)==16){w=ka+8|0;if(!u){t=$;v=0}else{l=(s|0)!=0;m=ia;t=$;v=0;do{if((a[(u&n)+51>>0]&3)==2&l){c[(r&p)>>2]=m;t=m}m=m+1|0;c[(_&p)>>2]=m;v=v+1|0;u=c[(u&p)+20>>2]|0}while((u|0)!=0)}}ja=ka+38|0;l=mh(la,v+2+((b[(ja&o)>>1]|0)+v<<2)|0,0)|0;if(l){I=b[(ja&o)>>1]|0;aa=l+(I<<2)|0;da=l+(I+v<<2)|0;Z=v+1|0;fw(da|0,1,Z|0)|0;a[(da+Z&n)>>0]=0;v=b[(ja&o)>>1]|0;if(v<<16>>16>0)fw(l|0,-1,(v<<16>>16>1?v<<16>>16<<2:4)|0)|0;c[(Y&p)>>2]=0;c[(Y&p)+4>>2]=0;c[(Y&p)+8>>2]=0;c[(Y&p)+12>>2]=0;c[(Y&p)+16>>2]=0;c[(Y&p)+20>>2]=0;c[(Y&p)+24>>2]=0;c[(Y&p)+28>>2]=0;c[(Y&p)>>2]=e;c[(Y&p)+4>>2]=f;d:do if((c[(g&p)>>2]|0)>0){E=g+4|0;D=ka+4|0;C=la+16|0;F=(s|0)==0;G=ka+36|0;y=0;x=0;H=0;m=0;while(1){if(ls(Y,c[((c[(E&p)>>2]|0)+(H*20|0)&p)>>2]|0)|0)break a;A=b[(ja&o)>>1]|0;e:do if(A<<16>>16>0){v=c[(D&p)>>2]|0;B=c[(E&p)>>2]|0;r=c[(B+(H*20|0)&p)+4>>2]|0;u=0;while(1){z=u+1|0;if(!(dd(c[(v+(u*24|0)&p)>>2]|0,r)|0))break;if((z|0)<(A<<16>>16|0))u=z;else{u=z;r=m;break e}}if((u|0)!=(b[(G&o)>>1]|0)){if(!F)y=(a[(v+(u*24|0)&n)+23>>0]&1)==0?y:1}else{x=1;m=c[(B+(H*20|0)&p)>>2]|0}c[(l+(u<<2)&p)>>2]=H;r=m}else{u=0;r=m}while(0);if((u|0)<(A<<16>>16|0)){m=c[(ka&p)>>2]|0;if((u|0)<0)v=12944;else v=c[((c[(D&p)>>2]|0)+(u*24|0)&p)>>2]|0}else{r=c[(E&p)>>2]|0;m=c[(r+(H*20|0)&p)+4>>2]|0;if(!F)break;if(!($h(m)|0))break;m=c[(ka&p)>>2]|0;v=12944;x=1;u=-1;r=c[(r+(H*20|0)&p)>>2]|0}m=Sq(e,23,m,v,c[((c[(C&p)>>2]|0)+(q<<4)&p)>>2]|0)|0;if((m|0)==2)c[(l+(u<<2)&p)>>2]=-1;else if((m|0)==1)break a;H=H+1|0;if((H|0)>=(c[(g&p)>>2]|0)){R=r;break d}else m=r}c[(T&p)>>2]=m;th(e,34496,T);a[(e&n)+17>>0]=1;break a}else{y=0;x=0;R=0}while(0);X=(y&255)+(x&255)|0;U=X&255;C=f+64|0;c[(C&p)>>2]=0;c[(C&p)+4>>2]=0;X=X&255;C=mt(e,ka,l,X)|0;m=c[(w&p)>>2]|0;if(m){z=(C|X|0)==0;A=e+72|0;B=0;while(1){f:do if(z?!((c[(m&p)+36>>2]|0)!=0|(m|0)==(s|0)):0){r=b[(m&o)+46>>1]|0;if(!(r<<16>>16))ba=56;else{u=c[(m&p)+4>>2]|0;v=0;while(1){if((c[(l+(b[(u+(v<<1)&o)>>1]<<2)&p)>>2]|0)>-1){ba=54;break f}v=v+1|0;if((v|0)>=(r&65535|0)){ba=56;break}}}}else ba=54;while(0);if((ba|0)==54){ba=0;r=(c[(A&p)>>2]|0)+1|0;c[(A&p)>>2]=r;if(!r)ba=56;else u=B+1|0}if((ba|0)==56){ba=0;u=B+1|0;a[(da+u&n)>>0]=0;r=0}c[(l+(B+I<<2)&p)>>2]=r;m=c[(m&p)+20>>2]|0;if(!m)break;else B=u}}V=Oq(e)|0;if(V){W=e+18|0;if(!(a[(W&n)>>0]|0)){S=V+88|0;b[(S&o)>>1]=b[(S&o)>>1]|4}H=e+408|0;S=c[(H&p)>>2]|0;S=(S|0)==0?e:S;Ar(e,q);Q=S+328|0;c[(Q&p)>>2]=c[(Q&p)>>2]|1<>0]=d[(S&n)>>0]|1;if(a[(K&n)>>0]&16){x=c[(e&p)+8>>2]|0;y=c[(e&p)>>2]|0;m=c[(ka&p)+60>>2]|0;g:do if(!m)m=0;else while(1){if((c[(m&p)>>2]|0)==(y|0))break g;m=c[(m&p)+24>>2]|0;if(!m){m=0;break}}while(0);q=lr(e,0,tt(y,27,34536)|0)|0;w=(R|0)!=0;if(w)q=lr(e,q,Mr(y,R,0,0)|0)|0;if((b[(ja&o)>>1]|0)>0){r=g+4|0;t=ka+4|0;u=0;do{s=c[(l+(u<<2)&p)>>2]|0;if((s|0)>-1)s=Mr(y,c[((c[(r&p)>>2]|0)+(s*20|0)&p)>>2]|0,0,0)|0;else s=tt(y,27,c[((c[(t&p)>>2]|0)+(u*24|0)&p)>>2]|0)|0;q=lr(e,q,s)|0;u=u+1|0}while((u|0)<(b[(ja&o)>>1]|0))}t=kr(e,q,f,h,0,0,0,0,0,0)|0;v=c[(_&p)>>2]|0;c[(_&p)>>2]=v+1;f=w&1;wh(x,57,v,(b[(ja&o)>>1]|0)+(w?2:1)|0,0)|0;u=x+4|0;h=c[(u&p)>>2]|0;if(h)a[(h+(((c[(x&p)+32>>2]|0)+-1|0)*20|0)&n)+3>>0]=8;a[(T&n)>>0]=14;c[(T&p)+4>>2]=v;a[(T&n)+1>>0]=0;c[(T&p)+8>>2]=0;c[(T&p)+12>>2]=0;ir(e,t,T)|0;h=e+72|0;s=c[(h&p)>>2]|0;q=s+1|0;da=s+2|0;c[(h&p)>>2]=(b[(ja&o)>>1]|0)+da;h=wh(x,108,v,0,0)|0;wh(x,47,v,0,q)|0;wh(x,47,v,f,da)|0;if((b[(ja&o)>>1]|0)>0){s=s+3|0;r=0;do{da=r;r=r+1|0;wh(x,47,v,r+f|0,s+da|0)|0}while((r|0)<(b[(ja&o)>>1]|0))}qt(e,ka);xh(x,wh(x,15,0,(b[(ja&o)>>1]|0)+2|0,q)|0,m,-10);m=c[(u&p)>>2]|0;if(!m)m=x+32|0;else{da=x+32|0;a[(m+(((c[(da&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=(k|0)==10?2:k&255;m=da}da=c[(H&p)>>2]|0;a[(((da|0)==0?e:da)&n)+21>>0]=1;wh(x,9,v,h+1|0,0)|0;m=c[(m&p)>>2]|0;if(m>>>0>h>>>0)c[((c[(u&p)>>2]|0)+(h*20|0)&p)+8>>2]=m;c[((c[(x&p)+24>>2]|0)&p)+88>>2]=m+-1;wh(x,61,v,0,0)|0;Mk(y,t,1);h=0;f=0;break}H=e+72|0;m=c[(H&p)>>2]|0;G=m+1|0;Q=m+2|0;c[(H&p)>>2]=Q;I=y<<24>>24!=0;J=(ga|0)!=0;P=(C|0)!=0;if(I|J|P){q=(b[(ja&o)>>1]|0)+Q|0;c[(H&p)>>2]=q;L=m+3|0}else{q=Q;L=0}N=(X|0)!=0;if(N|J|P){O=q+1|0;c[(H&p)>>2]=O;q=O}else O=Q;M=q+1|0;c[(H&p)>>2]=(b[(ja&o)>>1]|0)+q;if(ca){S=e+492|0;T=c[(S&p)>>2]|0;c[(S&p)>>2]=c[(ka&p)>>2];lt(e,ka,h,t);S=e}else{S=0;T=0}do if(!(ls(Y,h)|0)){if(!(a[(K&n)>>0]&32)){wh(V,28,0,G,Q)|0;y=Vs(e,f,h,0,0,4,ia)|0;if(!y)break;A=y+60|0;m=c[(A&p)>>2]|0;A=c[(A&p)+4>>2]|0;B=a[(y&n)+38>>0]|0;wh(V,103,t,Q,0)|0;if(!(B<<24>>24))wh(V,128,G,Q,0)|0;Xs(y);D=0;C=0;z=B&255;E=0}else{B=b[(s&o)+46>>1]|0;y=c[(H&p)>>2]|0;u=y+1|0;C=B<<16>>16;y=C+1+y|0;c[(H&p)>>2]=y;D=c[(_&p)>>2]|0;c[(_&p)>>2]=D+1;wh(V,28,0,u,0)|0;q=wh(V,57,D,C,0)|0;v=c[(e&p)+8>>2]|0;xh(v,-1,hs(e,s)|0,-6);v=Vs(e,f,h,0,0,4,ia)|0;if(!v)break;A=v+60|0;m=c[(A&p)>>2]|0;A=c[(A&p)+4>>2]|0;r=a[(v&n)+38>>0]|0;E=r&255;if(B<<16>>16>0){B=s+4|0;z=0;do{nt(V,ka,t,b[((c[(B&p)>>2]|0)+(z<<1)&o)>>1]|0,z+u|0);z=z+1|0}while((z|0)!=(C|0))}if(!(r<<24>>24)){B=ot(V,s)|0;xh(V,wh(V,49,u,C,y)|0,B,C);wh(V,110,D,y,0)|0;B=0}else{zh(V,q);B=C;y=u}Xs(v);C=B;z=E;E=y}K=la+24|0;do if(!(c[(K&p)>>2]&128))v=0;else{if(c[(e&p)+412>>2]|0){v=0;break}v=(c[(H&p)>>2]|0)+1|0;c[(H&p)>>2]=v;wh(V,25,0,v,0)|0}while(0);u=xs(V)|0;if(!ca){h:do if((k|0)==5)fw(da|0,1,Z|0)|0;else{B=c[(w&p)>>2]|0;if(!B)break;while(1){if((a[(B&n)+50>>0]|0)==5)break;B=c[(B&p)+20>>2]|0;if(!B)break h}fw(da|0,1,Z|0)|0}while(0);do if(z){if((m|0)>-1)a[(da+(m-$)&n)>>0]=0;if((A|0)<=-1)break;a[(da+(A-$)&n)>>0]=0}while(0);pt(e,ka,55,$,da,0,0)|0}H=(z|0)!=0;do if(!H)if(!s){G=wh(V,129,G,u,Q)|0;wh(V,70,t,G,Q)|0;F=0;break}else{G=xs(V)|0;wh(V,108,D,u,0)|0;F=wh(V,101,D,E,0)|0;xh(V,wh(V,68,t,G,E)|0,0,-14);break}else{if(!((a[(da+(t-$)&n)>>0]|0)==0|ca))xh(V,wh(V,68,t,u,E)|0,C,-14);wh(V,76,(s|0)!=0?E:Q,u,0)|0;F=0;G=u}while(0);x=x<<24>>24==0;if(!x){Rq(e,R,O);wh(V,38,O,0,0)|0}do if(I|P|J){if(P)y=ut(e,ka)|0;else y=0;B=vt(e,ga,g,0,3,ka,k)|0|y;if((b[(ja&o)>>1]|0)>0){A=(B|0)==-1;z=ka+4|0;y=0;do{do if(A)ba=138;else{if((y|0)<32?(1<>2]|0)+(y*24|0)&n)+23>>0]&1){ba=138;break}wh(V,28,0,y+L|0,0)|0}while(0);if((ba|0)==138){ba=0;nt(V,ka,t,y,y+L|0)}y=y+1|0}while((y|0)<(b[(ja&o)>>1]|0))}if(!(x&(s|0)==0))break;wh(V,33,Q,O,0)|0}while(0);y=vt(e,ga,g,1,1,ka,k)|0;if((b[(ja&o)>>1]|0)>0){x=ka+36|0;m=g+4|0;r=0;do{i:do if((r|0)==(b[(x&o)>>1]|0))wh(V,28,0,r+M|0,0)|0;else{q=c[(l+(r<<2)&p)>>2]|0;if((q|0)>-1){Rq(e,c[((c[(m&p)>>2]|0)+(q*20|0)&p)>>2]|0,r+M|0);break}do if(!((c[(ea&p)>>2]&1|0)==0|(r|0)>31)){if(1<>1]|0))}do if(c[(ea&p)>>2]&1){wt(V,ka,M);xt(e,ga,110,g,1,ka,Q,k,G);if(!s)wh(V,70,t,G,Q)|0;else xh(V,wh(V,68,t,G,E)|0,C,-14);m=b[(ja&o)>>1]|0;if(m<<16>>16<=0)break;x=ka+36|0;y=0;do{do if((c[(l+(y<<2)&p)>>2]|0)<0){if((y|0)==(b[(x&o)>>1]|0))break;nt(V,ka,t,y,y+M|0);m=b[(ja&o)>>1]|0}while(0);y=y+1|0}while((y|0)<(m<<16>>16|0))}while(0);do if(!ca){c[(ha&p)>>2]=0;yt(e,ka,aa,t,ia,O,Q,U,k&255,G,ha);if(P)zt(e,ka,Q,0,l,X);m=(c[(ha&p)>>2]|X|0)==0;do if(!m)if(!s){q=wh(V,70,t,0,Q)|0;break}else{q=wh(V,68,t,0,E)|0;xh(V,q,C,-14);break}else q=0;while(0);At(e,ka,t,ia,aa);if(P|(N|(s|0)!=0))wh(V,95,t,0,0)|0;if(!m){m=c[(V&p)+32>>2]|0;if(m>>>0>q>>>0)c[((c[(V&p)+4>>2]|0)+(q*20|0)&p)+8>>2]=m;c[((c[(V&p)+24>>2]|0)&p)+88>>2]=m+-1}if(P){zt(e,ka,0,O,l,X);Bt(e,ka,t,ia,O,aa,1,0,0);Ct(e,ka,g,Q,l,X);break}else{Bt(e,ka,t,ia,O,aa,1,0,0);break}}while(0);do if(c[(K&p)>>2]&128){if(c[(e&p)+412>>2]|0)break;wh(V,37,v,1,0)|0}while(0);xt(e,ga,110,g,2,ka,Q,k,G);do if(!H){if(!s){wh(V,16,0,G,0)|0;break}r=c[(V&p)+24>>2]|0;q=~G;do if((G|0)<0){s=c[(r&p)+112>>2]|0;if(!s)break;c[(s+(q<<2)&p)>>2]=c[(V&p)+32>>2]}while(0);c[(r&p)+88>>2]=(c[(V&p)+32>>2]|0)+-1;wh(V,9,D,F,0)|0}while(0);r=c[(V&p)+24>>2]|0;q=~u;do if((u|0)<0){s=c[(r&p)+112>>2]|0;if(!s)break;c[(s+(q<<2)&p)>>2]=c[(V&p)+32>>2]}while(0);c[(r&p)+88>>2]=(c[(V&p)+32>>2]|0)+-1;q=c[(w&p)>>2]|0;if(q){r=0;do{s=r;r=r+1|0;if(a[(da+r&n)>>0]|0)wh(V,61,s+ia|0,0,0)|0;q=c[(q&p)+20>>2]|0}while((q|0)!=0)}if((t|0)<(ia|0))wh(V,61,t,0,0)|0;do if(!(a[(W&n)>>0]|0)){if(c[(e&p)+412>>2]|0)break;st(e)}while(0);if(!(c[(K&p)>>2]&128))break;if(c[(e&p)+412>>2]|0)break;if(a[(W&n)>>0]|0)break;wh(V,35,v,1,0)|0;iq(V,1);if(a[((c[(V&p)>>2]|0)&n)+65>>0]|0)break;Xg(c[(V&p)+16>>2]|0,34520,-1,1,0)|0}while(0);if(S)c[(S&p)+492>>2]=T}}}else l=0}else l=0;while(0);mg(la,l);Do(la,f);Nk(la,g);Gk(la,h);i=ma;return}function tr(e,f,g,h,k){e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;var l=0,m=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,ga=0,ha=0,ia=0,ja=0,ka=0,la=0,ma=0,na=0,oa=0;oa=i;i=i+96|0;if((i|0)>=(j|0))fa();ca=oa;ja=oa+92|0;la=oa+88|0;L=oa+68|0;Y=oa+64|0;O=oa+32|0;ba=oa+28|0;c[(ja&p)>>2]=0;c[(la&p)>>2]=0;na=c[(e&p)>>2]|0;c[(L&p)>>2]=0;c[(L&p)+4>>2]=0;c[(L&p)+8>>2]=0;c[(L&p)+12>>2]=0;c[(L&p)+16>>2]=0;a:do if((c[(e&p)+64>>2]|0)==0?(N=na+65|0,(a[(N&n)>>0]|0)==0):0){if(g)if((b[(g&o)+6>>1]&128)!=0?(c[(g&p)+52>>2]|0)==0:0){l=c[(g&p)>>2]|0;c[(g&p)>>2]=0;Mk(na,g,1);g=0}else l=0;else{g=0;l=0}if((c[(f&p)+16>>2]|0)!=0?(ka=Jr(e,f)|0,(ka|0)!=0):0){u=c[(ka&p)+68>>2]|0;b:do if(u){t=c[(na&p)+20>>2]|0;if((t|0)>0){s=c[(na&p)+16>>2]|0;q=0;while(1){r=q+1|0;if((c[(s+(q<<4)&p)+12>>2]|0)==(u|0)){r=q;break b}if((r|0)<(t|0))q=r;else break}}else r=0}else r=-1e6;while(0);if((((Sq(e,18,c[(ka&p)>>2]|0,0,c[((c[(na&p)+16>>2]|0)+(r<<4)&p)>>2]|0)|0)==0?(ga=ka+44|0,Z=(d[(ga&n)>>0]|0)>>>5&1,ea=jt(e,ka,108,0,Y)|0,ha=(c[(ka&p)+12>>2]|0)!=0,(hr(e,ka)|0)==0):0)?(kt(e,ka,c[(Y&p)>>2]|0)|0)==0:0)?(ma=Oq(e)|0,(ma|0)!=0):0){ia=e+18|0;if(!(a[(ia&n)>>0]|0)){da=ma+88|0;b[(da&o)>>1]=b[(da&o)>>1]|4}da=(g|0)!=0;aa=e+408|0;$=c[(aa&p)>>2]|0;$=($|0)==0?e:$;Ar(e,r);X=$+328|0;c[(X&p)>>2]=c[(X&p)>>2]|1<>0]=d[($&n)>>0]|(da|(ea|0)!=0)&1;$=(h|0)==0;c:do if((((!((g|0)==0|$^1)?(c[(e&p)+532>>2]|0)==0:0)?(c[(g&p)+68>>2]|0)==0:0)?(As(e,ka)|0)==0:0)?(a[(ga&n)>>0]&16)==0:0){if((k|0)==10){if((b[(ka&o)+36>>1]|0)>-1)u=d[(ka&n)+45>>0]|0;else u=10;y=(u|0)==10?2:u}else y=k;t=c[(g&p)+32>>2]|0;if((c[(t&p)>>2]|0)==1){if(c[(t&p)+28>>2]|0){_=117;break}if(c[(g&p)+36>>2]|0){_=117;break}if(c[(g&p)+48>>2]|0){_=117;break}if(c[(g&p)+40>>2]|0){_=117;break}if(c[(g&p)+60>>2]|0){_=117;break}if(c[(g&p)+52>>2]|0){_=117;break}if(b[(g&o)+6>>1]&1){_=117;break}u=c[(g&p)>>2]|0;if((c[(u&p)>>2]|0)!=1){_=117;break}if((a[(c[(c[(u&p)+4>>2]&p)>>2]&n)>>0]|0)!=116){_=117;break}x=Ur(e,0,t+8|0)|0;if((x|0)==0|(x|0)==(ka|0)){_=117;break}B=x+44|0;X=d[(B&n)>>0]|0;if(!((X&16|0)==0?(((d[(ga&n)>>0]|0)>>>5&1^1)&255|0)==(X>>>5&1^1|0):0)){_=117;break}if(c[(x&p)+12>>2]|0){_=117;break}v=b[(ka&o)+38>>1]|0;if(v<<16>>16!=(b[(x&o)+38>>1]|0)){_=117;break}A=ka+36|0;if((b[(A&o)>>1]|0)!=(b[(x&o)+36>>1]|0)){_=117;break}if(v<<16>>16>0){q=c[(ka&p)+4>>2]|0;m=c[(x&p)+4>>2]|0;w=0;do{if((a[(q+(w*24|0)&n)+21>>0]|0)!=(a[(m+(w*24|0)&n)+21>>0]|0)){_=117;break c}u=c[(q+(w*24|0)&p)+16>>2]|0;t=c[(m+(w*24|0)&p)+16>>2]|0;s=(t|0)==0;if(!u){if(!s){_=117;break c}}else{if(s){_=117;break c}if(dd(u,t)|0){_=117;break c}}if((a[(q+(w*24|0)&n)+20>>0]|0)!=0?(a[(m+(w*24|0)&n)+20>>0]|0)==0:0){_=117;break c}do if((w|0)>0){u=c[(q+(w*24|0)&p)+8>>2]|0;t=(u|0)==0;s=c[(m+(w*24|0)&p)+8>>2]|0;if(t^(s|0)==0){_=117;break c}if(t)break;if(_v(u,s)|0){_=117;break c}}while(0);w=w+1|0}while((w|0)<(v<<16>>16|0))}E=ka+8|0;u=c[(E&p)>>2]|0;if(!u)t=0;else{v=c[(x&p)+8>>2]|0;if(!v){_=117;break}else t=0;do{t=(a[(u&n)+50>>0]|0)==0?t:1;s=v;while(1){if(Dt(u,s)|0)break;s=c[(s&p)+20>>2]|0;if(!s){_=117;break c}}if(!s){_=117;break c}u=c[(u&p)+20>>2]|0}while((u|0)!=0)}u=c[(ka&p)+24>>2]|0;if((u|0)!=0?(Ts(c[(x&p)+24>>2]|0,u,-1)|0)!=0:0){_=117;break}s=c[(e&p)>>2]|0;u=c[(s&p)+24>>2]|0;if(!(u&524288)){if(u&128){_=117;break}}else if(!((c[(ka&p)+16>>2]|0)==0&(u&128|0)==0)){_=117;break}m=c[(x&p)+68>>2]|0;d:do if(!m)s=-1e6;else{v=c[(s&p)+20>>2]|0;if((v|0)<=0){s=0;break}u=c[(s&p)+16>>2]|0;q=0;while(1){s=q+1|0;if((c[(u+(q<<4)&p)+12>>2]|0)==(m|0)){s=q;break d}if((s|0)<(v|0))q=s;else break}}while(0);D=Oq(e)|0;Ar(e,s);z=e+68|0;F=c[(z&p)>>2]|0;C=F+1|0;c[(z&p)>>2]=F+2;z=Et(e,r,ka)|0;v=e+19|0;q=a[(v&n)>>0]|0;do if(!(q<<24>>24)){_=e+72|0;u=(c[(_&p)>>2]|0)+1|0;c[(_&p)>>2]=u;_=78}else{X=q+-1<<24>>24;a[(v&n)>>0]=X;u=c[(e+((X&255)<<2)&p)+24>>2]|0;if(!(X<<24>>24)){_=78;break}G=q+-2<<24>>24;a[(v&n)>>0]=G;H=u;G=c[(e+((G&255)<<2)&p)+24>>2]|0}while(0);if((_|0)==78){H=e+72|0;G=(c[(H&p)>>2]|0)+1|0;c[(H&p)>>2]=G;H=u}Qq(e,C,r,ka,55);if((b[(A&o)>>1]|0)<0)if((c[(E&p)>>2]|0)!=0|(t|0)!=0|(y+-1|0)>>>0>1)_=83;else I=0;else if((t|0)!=0|(y+-1|0)>>>0>1)_=83;else I=0;if((_|0)==83){w=wh(D,108,C,0,0)|0;v=wh(D,16,0,0,0)|0;u=c[(D&p)+32>>2]|0;if(u>>>0>w>>>0)c[((c[(D&p)+4>>2]|0)+(w*20|0)&p)+8>>2]=u;c[((c[(D&p)+24>>2]|0)&p)+88>>2]=u+-1;I=v}if(!(a[(B&n)>>0]&32)){Qq(e,F,s,x,54);t=wh(D,108,F,0,0)|0;do if((b[(A&o)>>1]|0)<=-1)if(!(c[(E&p)>>2]|0)){u=wh(D,74,C,G,0)|0;break}else{u=wh(D,103,F,G,0)|0;break}else{u=wh(D,103,F,G,0)|0;w=wh(D,70,C,0,G)|0;Ft(e,y,ka);v=c[(D&p)+32>>2]|0;if(v>>>0>w>>>0)c[((c[(D&p)+4>>2]|0)+(w*20|0)&p)+8>>2]=v;c[((c[(D&p)+24>>2]|0)&p)+88>>2]=v+-1;if((z|0)<=0)break;wh(c[(e&p)+8>>2]|0,136,z,G,0)|0}while(0);wh(D,102,F,H,0)|0;wh(D,75,C,H,G)|0;v=c[(D&p)+4>>2]|0;if(v)a[(v+(((c[(D&p)+32>>2]|0)+-1|0)*20|0)&n)+3>>0]=11;xh(D,-1,c[(ka&p)>>2]|0,0);wh(D,9,F,u,0)|0;wh(D,61,F,0,0)|0;wh(D,61,C,0,0)|0}else{gs(e,r,c[(ka&p)+32>>2]|0,1,c[(ka&p)>>2]|0);gs(e,s,c[(x&p)+32>>2]|0,0,c[(x&p)>>2]|0);t=0}w=c[(E&p)>>2]|0;if(w){q=x+8|0;m=e+8|0;x=D+4|0;y=D+32|0;z=D+24|0;u=w;do{w=q;while(1){w=c[(w&p)>>2]|0;if(Dt(u,w)|0)break;w=w+20|0}wh(D,54,F,c[(w&p)+40>>2]|0,s)|0;X=c[(m&p)>>2]|0;xh(X,-1,hs(e,w)|0,-6);wh(D,55,C,c[(u&p)+40>>2]|0,r)|0;w=c[(m&p)>>2]|0;xh(w,-1,hs(e,u)|0,-6);w=c[(x&p)>>2]|0;if(w)a[(w+(((c[(y&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=1;w=wh(D,108,F,0,0)|0;wh(D,101,F,H,0)|0;wh(D,110,C,H,1)|0;wh(D,9,F,w+1|0,0)|0;v=c[(y&p)>>2]|0;if(v>>>0>w>>>0)c[((c[(x&p)>>2]|0)+(w*20|0)&p)+8>>2]=v;c[((c[(z&p)>>2]|0)&p)+88>>2]=v+-1;wh(D,61,F,0,0)|0;wh(D,61,C,0,0)|0;u=c[(u&p)+20>>2]|0}while((u|0)!=0)}if(t){u=c[(D&p)+32>>2]|0;if(u>>>0>t>>>0)c[((c[(D&p)+4>>2]|0)+(t*20|0)&p)+8>>2]=u;c[((c[(D&p)+24>>2]|0)&p)+88>>2]=u+-1}_r(e,G);_r(e,H);if(!I){m=0;q=0;break}wh(D,24,0,0,0)|0;u=c[(D&p)+32>>2]|0;if(u>>>0>I>>>0)c[((c[(D&p)+4>>2]|0)+(I*20|0)&p)+8>>2]=u;c[((c[(D&p)+24>>2]|0)&p)+88>>2]=u+-1;wh(D,61,C,0,0)|0;_=117}else _=117}else _=117;while(0);do if((_|0)==117){S=Et(e,r,ka)|0;R=e+72|0;t=c[(R&p)>>2]|0;W=t+1|0;X=ka+38|0;I=b[(X&o)>>1]|0;H=I<<16>>16;u=W+H|0;c[(R&p)>>2]=u;if(!(a[(ga&n)>>0]&16))V=W;else{u=u+1|0;c[(R&p)>>2]=u;V=t+2|0}T=V+1|0;U=(h|0)!=0;e:do if(U?(P=c[(h&p)+4>>2]|0,Q=(P|0)>0,Q):0){v=c[(h&p)>>2]|0;t=0;do{c[(v+(t<<3)&p)+4>>2]=-1;t=t+1|0}while((t|0)<(P|0));if(Q){D=Z<<24>>24!=0;C=ka+4|0;B=ka+36|0;t=1;A=0;v=-1;while(1){f:do if(I<<16>>16>0){z=c[(h&p)>>2]|0;s=c[(z+(A<<3)&p)>>2]|0;q=c[(C&p)>>2]|0;m=0;while(1){w=m+1|0;if(!(dd(s,c[(q+(m*24|0)&p)>>2]|0)|0)){w=m;break}if((w|0)<(H|0))m=w;else break f}c[(z+(A<<3)&p)+4>>2]=w;t=(A|0)==(w|0)?t:0;v=(w|0)==(b[(B&o)>>1]|0)?A:v}else w=0;while(0);if((w|0)>=(H|0)){m=c[((c[(h&p)>>2]|0)+(A<<3)&p)>>2]|0;if(($h(m)|0)==0|D)break;else{t=0;w=A}}else w=v;A=A+1|0;if((A|0)>=(P|0)){E=w;break e}else v=w}c[(ca&p)>>2]=f;c[(ca&p)+4>>2]=0;c[(ca&p)+8>>2]=m;th(e,33368,ca);a[(e&n)+17>>0]=1;m=0;break a}else{t=1;E=-1}}else{t=1;E=-1}while(0);g:do if(!da){c[(O&p)>>2]=0;c[(O&p)+4>>2]=0;c[(O&p)+8>>2]=0;c[(O&p)+12>>2]=0;c[(O&p)+16>>2]=0;c[(O&p)+20>>2]=0;c[(O&p)+24>>2]=0;c[(O&p)+28>>2]=0;c[(O&p)>>2]=e;if(l){s=c[(l&p)>>2]|0;if((s|0)>0){u=l+4|0;t=0;while(1){if(ls(O,c[((c[(u&p)>>2]|0)+(t*20|0)&p)>>2]|0)|0){g=0;m=0;break a}t=t+1|0;if((t|0)>=(s|0)){u=0;t=-1;r=0;_=169;break}}}else{P=E;O=0;Q=-1;z=0}}else{P=E;s=0;O=0;Q=-1;z=0}}else{u=u+1|0;c[(R&p)>>2]=u;G=ma+32|0;v=c[(G&p)>>2]|0;wh(ma,20,u,0,v+1|0)|0;a[(L&n)>>0]=13;H=L+4|0;c[(H&p)>>2]=u;a[(L&n)+1>>0]=0;F=L+8|0;c[(F&p)>>2]=t<<24>>24!=0?T:0;c[(L&p)+12>>2]=b[(X&o)>>1];Q=ir(e,g,L)|0;F=c[(F&p)>>2]|0;if(Q){m=0;break a}if(a[(N&n)>>0]|0){m=0;break a}wh(ma,21,u,0,0)|0;u=c[(G&p)>>2]|0;if(u>>>0>v>>>0)c[((c[(ma&p)+4>>2]|0)+(v*20|0)&p)+8>>2]=u;I=ma+24|0;c[((c[(I&p)>>2]|0)&p)+88>>2]=u+-1;s=c[(c[(g&p)>>2]&p)>>2]|0;h:do if(!ea){w=Oq(e)|0;t=c[(w&p)+32>>2]|0;i:do if(!(a[(ga&n)>>0]&16))v=0;else{u=c[(e&p)>>2]|0;v=c[(ka&p)+60>>2]|0;if(!v){v=0;break}while(1){if((c[(v&p)>>2]|0)==(u|0))break i;v=c[(v&p)+24>>2]|0;if(!v){v=0;break}}}while(0);if((t|0)<=1){u=F;t=0;r=0;_=169;break g}q=(a[((c[(w&p)>>2]|0)&n)+65>>0]|0)==0;z=w+4|0;y=ka+32|0;x=ka+8|0;m=1;while(1){if(q)w=(c[(z&p)>>2]|0)+(m*20|0)|0;else w=29120;u=a[(w&n)>>0]|0;do if(u<<24>>24==54){if((c[(w&p)+12>>2]|0)!=(r|0))break;u=c[(w&p)+8>>2]|0;if((u|0)==(c[(y&p)>>2]|0))break h;w=c[(x&p)>>2]|0;if(!w)break;do{if((u|0)==(c[(w&p)+40>>2]|0))break h;w=c[(w&p)+20>>2]|0}while((w|0)!=0)}else if(u<<24>>24==-107?(c[(w&p)+16>>2]|0)==(v|0):0)break h;while(0);m=m+1|0;if((m|0)>=(t|0)){u=F;t=0;r=0;_=169;break g}}}while(0);v=e+68|0;w=c[(v&p)>>2]|0;c[(v&p)>>2]=w+1;v=e+19|0;t=a[(v&n)>>0]|0;do if(!(t<<24>>24)){u=(c[(R&p)>>2]|0)+1|0;c[(R&p)>>2]=u;_=159}else{Q=t+-1<<24>>24;a[(v&n)>>0]=Q;u=c[(e+((Q&255)<<2)&p)+24>>2]|0;if(!(Q<<24>>24)){_=159;break}Q=t+-2<<24>>24;a[(v&n)>>0]=Q;v=c[(e+((Q&255)<<2)&p)+24>>2]|0}while(0);if((_|0)==159){v=(c[(R&p)>>2]|0)+1|0;c[(R&p)>>2]=v}wh(ma,57,w,s,0)|0;r=wh(ma,22,c[(H&p)>>2]|0,0,0)|0;wh(ma,49,F,s,u)|0;wh(ma,74,w,v,0)|0;wh(ma,75,w,u,v)|0;wh(ma,16,0,r,0)|0;t=c[(G&p)>>2]|0;if(t>>>0>r>>>0)c[((c[(ma&p)+4>>2]|0)+(r*20|0)&p)+8>>2]=t;c[((c[(I&p)>>2]|0)&p)+88>>2]=t+-1;_r(e,u);_r(e,v);u=F;t=w;r=1;_=169}while(0);if((_|0)==169)if($&(s|0)>0){P=b[(ka&o)+36>>1]|0;O=u;Q=t;z=r}else{P=E;O=u;Q=t;z=r}if((a[(ga&n)>>0]&16)!=0?(M=b[(X&o)>>1]|0,M<<16>>16>0):0){v=c[(ka&p)+4>>2]|0;t=M<<16>>16;r=0;u=0;do{u=((d[(v+(r*24|0)&n)+23>>0]|0)>>>1&1)+u|0;r=r+1|0}while((r|0)<(t|0))}else u=0;do if($&(s|0)!=0){u=(b[(X&o)>>1]|0)-u|0;if((s|0)==(u|0))break;c[(ca&p)>>2]=f;c[(ca&p)+4>>2]=0;c[(ca&p)+8>>2]=u;c[(ca&p)+12>>2]=s;th(e,33400,ca);m=0;break a}while(0);do if(U){u=c[(h&p)+4>>2]|0;if((s|0)==(u|0))break;c[(ca&p)>>2]=s;c[(ca&p)+4>>2]=u;th(e,33456,ca);m=0;break a}while(0);K=na+24|0;if(!(c[(K&p)>>2]&128))q=0;else{q=(c[(R&p)>>2]|0)+1|0;c[(R&p)>>2]=q;wh(ma,25,0,q,0)|0}do if(ha)m=0;else{u=pt(e,ka,55,-1,0,ja,la)|0;m=mh(na,(u<<2)+4|0,0)|0;if(!m)break a;if((u|0)>0)t=0;else break;do{N=(c[(R&p)>>2]|0)+1|0;c[(R&p)>>2]=N;c[(m+(t<<2)&p)>>2]=N;t=t+1|0}while((t|0)!=(u|0))}while(0);M=z<<24>>24!=0;do if(M){N=wh(ma,108,Q,0,0)|0;L=c[(ma&p)+32>>2]|0}else{if(!da){L=0;N=0;break}N=wh(ma,22,c[(L&p)+4>>2]|0,0,0)|0;L=N}while(0);J=xs(ma)|0;do if(c[(Y&p)>>2]&1){w=(b[(X&o)>>1]|0)+1|0;H=e+60|0;v=c[(H&p)>>2]|0;G=e+56|0;u=c[(G&p)>>2]|0;if((u|0)<(w|0)){I=c[(R&p)>>2]|0;c[(R&p)>>2]=I+w;I=I+1|0}else{c[(H&p)>>2]=w+v;c[(G&p)>>2]=u-w;I=v}if((P|0)<0)wh(ma,25,-1,I,0)|0;else{if(M)wh(ma,47,Q,P,I)|0;else Rq(e,c[((c[(l&p)+4>>2]|0)+(P*20|0)&p)>>2]|0,I);w=wh(ma,77,I,0,0)|0;wh(ma,25,-1,I,0)|0;v=c[(ma&p)+32>>2]|0;if(v>>>0>w>>>0)c[((c[(ma&p)+4>>2]|0)+(w*20|0)&p)+8>>2]=v;c[((c[(ma&p)+24>>2]|0)&p)+88>>2]=v+-1;wh(ma,38,I,0,0)|0}v=b[(X&o)>>1]|0;if(v<<16>>16>0){D=M|(l|0)!=0;t=h+4|0;u=I+1|0;w=l+4|0;A=e+8|0;B=ka+4|0;C=0;do{j:do if($)z=C;else{y=c[(t&p)>>2]|0;if((y|0)<=0){z=0;break}x=c[(h&p)>>2]|0;r=0;while(1){z=r+1|0;if((c[(x+(r<<3)&p)+4>>2]|0)==(C|0)){z=r;break j}if((z|0)<(y|0))r=z;else break}}while(0);do if(D){if(U?(z|0)>=(c[(t&p)>>2]|0):0){_=213;break}if(M){wh(ma,47,Q,z,u+C|0)|0;break}else{Y=c[((c[(w&p)>>2]|0)+(z*20|0)&p)>>2]|0;r=u+C|0;x=c[(A&p)>>2]|0;Rq(e,Y,r);v=(c[(R&p)>>2]|0)+1|0;c[(R&p)>>2]=v;wh(x,33,r,v,0)|0;a[(Y&n)+38>>0]=a[(Y&n)>>0]|0;a[(Y&n)>>0]=-97;c[(Y&p)+28>>2]=v;Y=Y+4|0;c[(Y&p)>>2]=c[(Y&p)>>2]&-4097;break}}else _=213;while(0);if((_|0)==213){_=0;Rq(e,c[((c[(B&p)>>2]|0)+(C*24|0)&p)+4>>2]|0,u+C|0)}C=C+1|0;v=b[(X&o)>>1]|0}while((C|0)<(v<<16>>16|0))}if(!ha){wt(ma,ka,I+1|0);v=b[(X&o)>>1]|0}xt(e,ea,108,0,1,ka,I+-1-(v<<16>>16)|0,k,J);v=(b[(X&o)>>1]|0)+1|0;dt(e,I,v);if((c[(G&p)>>2]|0)>=(v|0))break;c[(G&p)>>2]=v;c[(H&p)>>2]=I}while(0);do if(!ha){if(a[(ga&n)>>0]&16)wh(ma,28,0,W,0)|0;k:do if((P|0)<=-1)if(!((a[(ga&n)>>0]&16|Z)<<24>>24)){wh(ma,74,c[(ja&p)>>2]|0,V,S)|0;I=1;break}else{wh(ma,28,0,V,0)|0;I=0;break}else{do if(M)wh(ma,47,Q,P,V)|0;else{if(da){wh(ma,33,P+O|0,V,0)|0;break}Rq(e,c[((c[(l&p)+4>>2]|0)+(P*20|0)&p)>>2]|0,V);if(!(a[((c[(ma&p)>>2]|0)&n)+65>>0]|0)){u=(c[(ma&p)+4>>2]|0)+(((c[(ma&p)+32>>2]|0)+-1|0)*20|0)|0;if(!u)break}else u=29120;if((a[(u&n)>>0]|0)!=28)break;if(a[(ga&n)>>0]&16)break;a[(u&n)>>0]=74;c[(u&p)+4>>2]=c[(ja&p)>>2];c[(u&p)+8>>2]=V;c[(u&p)+12>>2]=S;I=1;break k}while(0);if(!(a[(ga&n)>>0]&16)){u=wh(ma,77,V,0,0)|0;wh(ma,74,c[(ja&p)>>2]|0,V,S)|0;t=c[(ma&p)+32>>2]|0;if(t>>>0>u>>>0)c[((c[(ma&p)+4>>2]|0)+(u*20|0)&p)+8>>2]=t;c[((c[(ma&p)+24>>2]|0)&p)+88>>2]=t+-1}else wh(ma,76,V,(c[(ma&p)+32>>2]|0)+2|0,0)|0;wh(ma,38,V,0,0)|0;I=0}while(0);if((S|0)>0)wh(c[(e&p)+8>>2]|0,136,S,V,0)|0;if((b[(X&o)>>1]|0)>0){G=ka+36|0;H=ka+4|0;C=(s|0)==0;B=h+4|0;A=(O|0)==(T|0);s=l+4|0;t=e+23|0;u=ca+20|0;v=ca+4|0;E=ca+24|0;F=0;w=0;do{D=F+T|0;l:do if((F|0)==(b[(G&o)>>1]|0))wh(ma,29,D,0,0)|0;else{m:do if($)if(!(a[((c[(H&p)>>2]|0)+(F*24|0)&n)+23>>0]&2)){z=F-w|0;_=258;break}else{w=w+1|0;break}else{y=c[(B&p)>>2]|0;if((y|0)<=0){z=0;_=258;break}x=c[(h&p)>>2]|0;r=0;while(1){z=r+1|0;if((c[(x+(r<<3)&p)+4>>2]|0)==(F|0)){z=r;_=258;break m}if((z|0)<(y|0))r=z;else{_=258;break}}}while(0);do if((_|0)==258){_=0;if((z|0)<0|C)break;if(U?(z|0)>=(c[(B&p)>>2]|0):0)break;if(M){wh(ma,47,Q,z,D)|0;break l}if(!da){Rq(e,c[((c[(s&p)>>2]|0)+(z*20|0)&p)>>2]|0,D);break l}if(A)break l;wh(ma,34,z+O|0,D,0)|0;break l}while(0);z=c[((c[(H&p)>>2]|0)+(F*24|0)&p)+4>>2]|0;do if(a[(t&n)>>0]|0){c[(ca&p)>>2]=0;c[(ca&p)+4>>2]=0;c[(ca&p)+8>>2]=0;c[(ca&p)+12>>2]=0;c[(ca&p)+16>>2]=0;c[(ca&p)+20>>2]=0;a[(u&n)>>0]=1;c[(ca&p)>>2]=78;c[(v&p)>>2]=79;c[(E&p)>>2]=0;rs(ca,z)|0;if(!(a[(u&n)>>0]|0))break;Gt(e,z,D,0);break l}while(0);Rq(e,z,D)}while(0);F=F+1|0}while((F|0)<(b[(X&o)>>1]|0))}if(!(a[(ga&n)>>0]&16)){yt(e,ka,m,c[(ja&p)>>2]|0,c[(la&p)>>2]|0,W,0,P>>>31&255^1,k&255,J,ba);zt(e,ka,0,W,0,0);Bt(e,ka,c[(ja&p)>>2]|0,c[(la&p)>>2]|0,W,m,0,I,(c[(ba&p)>>2]|0)==0&1);break}u=c[(ka&p)+60>>2]|0;n:do if(!u)u=0;else while(1){if((c[(u&p)>>2]|0)==(na|0))break n;u=c[(u&p)+24>>2]|0;if(!u){u=0;break}}while(0);qt(e,ka);xh(ma,wh(ma,15,1,(b[(X&o)>>1]|0)+2|0,W)|0,u,-10);t=c[(ma&p)+4>>2]|0;if(t)a[(t+(((c[(ma&p)+32>>2]|0)+-1|0)*20|0)&n)+3>>0]=(k|0)==10?2:k&255;ca=c[(aa&p)>>2]|0;a[(((ca|0)==0?e:ca)&n)+21>>0]=1}while(0);if(c[(K&p)>>2]&128)wh(ma,37,q,1,0)|0;if(ea)xt(e,ea,108,0,2,ka,V+-1-(b[(X&o)>>1]|0)|0,k,J);u=ma+24|0;t=c[(u&p)>>2]|0;r=~J;do if((J|0)<0){s=c[(t&p)+112>>2]|0;if(!s)break;c[(s+(r<<2)&p)>>2]=c[(ma&p)+32>>2]}while(0);s=ma+32|0;c[(t&p)+88>>2]=(c[(s&p)>>2]|0)+-1;do if(M){wh(ma,9,Q,L,0)|0;s=c[(s&p)>>2]|0;if(s>>>0>N>>>0)c[((c[(ma&p)+4>>2]|0)+(N*20|0)&p)+8>>2]=s;c[((c[(u&p)>>2]|0)&p)+88>>2]=s+-1;wh(ma,61,Q,0,0)|0}else{if(!da)break;wh(ma,16,0,L,0)|0;s=c[(s&p)>>2]|0;if(s>>>0>N>>>0)c[((c[(ma&p)+4>>2]|0)+(N*20|0)&p)+8>>2]=s;c[((c[(u&p)>>2]|0)&p)+88>>2]=s+-1}while(0);if((a[(ga&n)>>0]&16)!=0|ha)break;r=c[(ja&p)>>2]|0;if((r|0)<(c[(la&p)>>2]|0))wh(ma,61,r,0,0)|0;r=c[(ka&p)+8>>2]|0;if(!r)break;else s=0;while(1){wh(ma,61,(c[(la&p)>>2]|0)+s|0,0,0)|0;r=c[(r&p)+20>>2]|0;if(!r)break;else s=s+1|0}}while(0);if((a[(ia&n)>>0]|0)==0?(c[(e&p)+412>>2]|0)==0:0)st(e);if((((c[(na&p)+24>>2]&128|0)!=0?(a[(ia&n)>>0]|0)==0:0)?(c[(e&p)+412>>2]|0)==0:0)?(wh(ma,35,q,1,0)|0,iq(ma,1),(a[((c[(ma&p)>>2]|0)&n)+65>>0]|0)==0):0)Xg(c[(ma&p)+16>>2]|0,33488,-1,1,0)|0}else m=0}else m=0}else{m=0;l=0}while(0);Do(na,f);Nk(na,l);Mk(na,g,1);Hk(na,h);mg(na,m);i=oa;return}function ur(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0;h=i;i=i+16|0;if((i|0)>=(j|0))fa();f=h;if(!d){d=mh(b,8,0)|0;if(!d)d=0;else{g=d;k=g;a[(k&n)>>0]=0;a[(k&n)+1>>0]=0;a[(k&n)+2>>0]=0;a[(k&n)+3>>0]=0;g=g+4|0;a[(g&n)>>0]=0;a[(g&n)+1>>0]=0;a[(g&n)+2>>0]=0;a[(g&n)+3>>0]=0;g=4}}else g=4;do if((g|0)==4){c[(d&p)>>2]=Ht(b,c[(d&p)>>2]|0,8,d+4|0,f)|0;f=c[(f&p)>>2]|0;if((f|0)<0){Hk(b,d);d=0;break}else{b=Wq(b,e)|0;c[((c[(d&p)>>2]|0)+(f<<3)&p)>>2]=b;break}}while(0);i=h;return d|0}function vr(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0;if((c[(d&p)+4>>2]|0)!=0?(f=nr(c[(a&p)>>2]|0,95,d,e)|0,(f|0)!=0):0){c[(f&p)+12>>2]=b;b=f+4|0;c[(b&p)>>2]=c[(b&p)>>2]|4352;b=f}return b|0}function wr(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;e=c[(a&p)>>2]|0;d=nr(e,153,d,1)|0;if(!d){Nk(e,b);d=0}else{c[(d&p)+20>>2]=b;yr(a,d)}return d|0}function xr(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;b=c[(b&p)>>2]|0;if((d|0)!=0&(e|0)!=0?(a[(d&n)>>0]|0)==101:0){a[(e&n)>>0]=f;f=e+16|0;Gk(b,c[(f&p)>>2]|0);c[(f&p)>>2]=0}return}function yr(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;f=i;i=i+16|0;if((i|0)>=(j|0))fa();e=f;if((c[(a&p)+64>>2]|0)==0?(It(b),d=c[((c[(a&p)>>2]|0)&p)+100>>2]|0,(d|0)<(c[(b&p)+24>>2]|0)):0){c[(e&p)>>2]=d;th(a,27152,e)}i=f;return}function zr(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,i=0;d=c[(a&p)>>2]|0;i=d+20|0;e=c[(i&p)>>2]|0;if((e|0)>0){g=d+16|0;h=(b|0)==0;d=e;f=0;do{e=c[(g&p)>>2]|0;do if(c[(e+(f<<4)&p)+4>>2]|0){if(!h?(dd(b,c[(e+(f<<4)&p)>>2]|0)|0)!=0:0)break;Ar(a,f);d=c[(i&p)>>2]|0}while(0);f=f+1|0}while((f|0)<(d|0))}return}function Ar(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;f=c[(a&p)+408>>2]|0;f=(f|0)==0?a:f;a=f+332|0;d=c[(a&p)>>2]|0;e=1<>2]|0,c[(a&p)>>2]=d|e,c[(f+(b<<2)&p)+336>>2]=c[(c[((c[(g&p)+16>>2]|0)+(b<<4)&p)+12>>2]&p)>>2],(b|0)==1):0)_k(f)|0;return}function Br(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,o=0,q=0;q=i;i=i+128|0;if((i|0)>=(j|0))fa();f=q+8|0;o=q;m=q+24|0;c[(o&p)>>2]=0;k=c[(b&p)>>2]|0;if((c[(b&p)+64>>2]|0)==0?(c[(f&p)>>2]=e,l=Wk(k,d,f)|0,(l|0)!=0):0){d=b+18|0;a[(d&n)>>0]=(a[(d&n)>>0]|0)+1<<24>>24;e=b+440|0;f=m+0|0;g=e+0|0;h=f+96|0;do{a[(f&n)>>0]=a[(g&n)>>0]|0;f=f+1|0;g=g+1|0}while((f|0)<(h|0));f=e+0|0;h=f+96|0;do{c[(f&p)>>2]=0;f=f+4|0}while((f|0)<(h|0));Lh(b,l,o)|0;mg(k,c[(o&p)>>2]|0);mg(k,l);f=e+0|0;g=m+0|0;h=f+96|0;do{a[(f&n)>>0]=a[(g&n)>>0]|0;f=f+1|0;g=g+1|0}while((f|0)<(h|0));a[(d&n)>>0]=(a[(d&n)>>0]|0)+-1<<24>>24}i=q;return}function Cr(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0;k=i;i=i+48|0;if((i|0)>=(j|0))fa();g=k;h=k+16|0;b=c[((c[((c[(a&p)>>2]|0)&p)+16>>2]|0)+(b<<4)&p)>>2]|0;f=1;do{c[(g&p)>>2]=f;ad(24,h,33272,g)|0;if(_h(c[(a&p)>>2]|0,h,b)|0){c[(g&p)>>2]=b;c[(g&p)+4>>2]=h;c[(g&p)+8>>2]=d;c[(g&p)+12>>2]=e;Br(a,28840,g)}f=f+1|0}while((f|0)!=5);i=k;return}function Dr(b,d){b=b|0;d=d|0;var e=0,f=0;e=b+19|0;f=a[(e&n)>>0]|0;if(!(f<<24>>24)){f=b+72|0;e=(c[(f&p)>>2]|0)+1|0;c[(f&p)>>2]=e}else{f=f+-1<<24>>24;a[(e&n)>>0]=f;e=c[(b+((f&255)<<2)&p)+24>>2]|0}f=c[(b&p)+8>>2]|0;wh(f,25,(c[(c[((c[((c[(b&p)>>2]|0)&p)+16>>2]|0)+(d<<4)&p)+12>>2]&p)>>2]|0)+1|0,e,0)|0;wh(f,52,d,1,e)|0;_r(b,e);return}function Er(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0;l=i;i=i+32|0;if((i|0)>=(j|0))fa();k=l;h=Oq(b)|0;f=b+19|0;g=a[(f&n)>>0]|0;if(!(g<<24>>24)){g=b+72|0;f=(c[(g&p)>>2]|0)+1|0;c[(g&p)>>2]=f}else{g=g+-1<<24>>24;a[(f&n)>>0]=g;f=c[(b+((g&255)<<2)&p)+24>>2]|0}wh(h,117,d,f,e)|0;g=c[(b&p)+408>>2]|0;a[(((g|0)==0?b:g)&n)+21>>0]=1;c[(k&p)>>2]=c[((c[((c[(b&p)>>2]|0)&p)+16>>2]|0)+(e<<4)&p)>>2];c[(k&p)+4>>2]=(e|0)==1?13184:13208;c[(k&p)+8>>2]=d;c[(k&p)+12>>2]=f;c[(k&p)+16>>2]=f;Br(b,33216,k);_r(b,f);i=l;return}function Fr(f,g,h,k,l){f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;var m=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;X=i;i=i+96|0;if((i|0)>=(j|0))fa();G=X+24|0;w=X+80|0;q=X+64|0;A=X+16|0;t=X+60|0;u=X+56|0;O=X+52|0;N=X+48|0;z=X+44|0;D=X+40|0;E=X+36|0;F=X+32|0;x=X+8|0;s=X;W=c[(f&p)>>2]|0;T=Oq(f)|0;do if((T|0)!=0?(S=T+88|0,b[(S&o)>>1]=b[(S&o)>>1]|16,S=f+72|0,c[(S&p)>>2]=2,Q=er(f,g,h,w)|0,(Q|0)>=0):0){R=W+16|0;C=c[(R&p)>>2]|0;if((Q|0)==1?(_k(f)|0)!=0:0)break;V=Wq(W,c[(w&p)>>2]|0)|0;if(V){if(!l)U=Wq(W,k)|0;else{c[(G&p)>>2]=k;U=uh(W,30104,G)|0}B=h+4|0;if(!(c[(B&p)>>2]|0))L=0;else L=c[(C+(Q<<4)&p)>>2]|0;a:do if(!(Sq(f,19,V,U,L)|0)){c[(q&p)>>2]=0;c[(q&p)+4>>2]=V;c[(q&p)+8>>2]=U;c[(q&p)+12>>2]=0;r=W+452|0;c[(r&p)>>2]=0;g=cg(W,L,14,q)|0;if(!g){k=c[(q&p)>>2]|0;if(!k)break;m=(c[(S&p)>>2]|0)+1|0;c[(S&p)>>2]=m;xh(T,wh(T,97,0,m,0)|0,k,0);iq(T,1);if(!(a[((c[(T&p)>>2]|0)&n)+65>>0]|0))Xg(c[(T&p)+16>>2]|0,30112,-1,1,0)|0;wh(T,35,m,1,0)|0;Wc(c[(q&p)>>2]|0);break}else if((g|0)==12){w=0;q=56;b:while(1){while(1){l=(w+q|0)/2|0;g=c[((l*12|0)&p)+30120>>2]|0;k=dd(V,g)|0;if(!k){w=l;break b}if((k|0)<0){g=l;break}if((l|0)<(q|0))w=l+1|0;else break a}g=g+-1|0;if((w|0)>(g|0))break a;else q=g}if((a[((w*12|0)&n)+30125>>0]&1)!=0?(Gn(f)|0)!=0:0)break;do switch(d[((w*12|0)&n)+30124>>0]|0){case 10:{q=1<>2]=c[(F&p)>>2]|q;if(U){c[(G&p)>>2]=0;Dn(U,G)|0;k=c[(G&p)>>2]|0;if((k|0)<=-1)k=(k|0)==-2147483648?2147483647:0-k|0;G=c[(f&p)+408>>2]|0;Ar(f,Q);G=((G|0)==0?f:G)+328|0;c[(G&p)>>2]=c[(G&p)>>2]|q;wh(T,25,k,1,0)|0;wh(T,52,Q,3,1)|0;c[((c[(C+(Q<<4)&p)+12>>2]|0)&p)+80>>2]=k;pq(c[(C+(Q<<4)&p)+4>>2]|0,k);break a}iq(T,1);if(!(a[((c[(T&p)>>2]|0)&n)+65>>0]|0))Xg(c[(T&p)+16>>2]|0,30848,-1,1,0)|0;c[(S&p)>>2]=(c[(S&p)>>2]|0)+2;k=yh(T,9,30808)|0;l=c[(T&p)+32>>2]|0;if(l>>>0>k>>>0)c[((c[(T&p)+4>>2]|0)+(k*20|0)&p)+4>>2]=Q;m=k+1|0;if(l>>>0>m>>>0)c[((c[(T&p)+4>>2]|0)+(m*20|0)&p)+4>>2]=Q;m=k+6|0;if(l>>>0<=m>>>0)break a;c[((c[(T&p)+4>>2]|0)+(m*20|0)&p)+4>>2]=2e3;break a}case 19:{k=c[(c[((c[(C+(Q<<4)&p)+4>>2]|0)&p)+4>>2]&p)>>2]|0;G=A;c[(G&p)>>2]=-2;c[(G&p)+4>>2]=-1;if(U){ji(U,A)|0;m=A;l=c[(m&p)>>2]|0;m=c[(m&p)+4>>2]|0;if((m|0)<-1|(m|0)==-1&l>>>0<4294967295){l=A;c[(l&p)>>2]=-1;c[(l&p)+4>>2]=-1;l=-1;m=-1}G=k+160|0;c[(G&p)>>2]=l;c[(G&p)+4>>2]=m;k=c[(k&p)+208>>2]|0;if(k){G=k+16|0;c[(G&p)>>2]=l;c[(G&p)+4>>2]=m}}else{m=k+160|0;l=c[(m&p)>>2]|0;m=c[(m&p)+4>>2]|0}G=A;c[(G&p)>>2]=l;c[(G&p)+4>>2]=m;Jt(f,30952,l,m);break a}case 28:{q=Oq(f)|0;iq(q,4);c[(S&p)>>2]=4;Ar(f,Q);if((((a[((c[(q&p)>>2]|0)&n)+65>>0]|0)==0?(Xg(c[(q&p)+16>>2]|0,31232,-1,1,0)|0,(a[((c[(q&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(q&p)+16>>2]|0)+40|0,20632,-1,1,0)|0,(a[((c[(q&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(q&p)+16>>2]|0)+80|0,31240,-1,1,0)|0,(a[((c[(q&p)>>2]|0)&n)+65>>0]|0)==0):0)Xg((c[(q&p)+16>>2]|0)+120|0,31248,-1,1,0)|0;l=c[((c[(C+(Q<<4)&p)+12>>2]|0)&p)+16>>2]|0;if(!l)break a;do{m=c[(l&p)+8>>2]|0;G=c[(m&p)>>2]|0;xh(q,wh(q,97,0,1,0)|0,G,0);wh(q,28,0,2,0)|0;G=Ws(b[(m&o)+42>>1]|0)|0;wh(q,25,G,3,0)|0;G=Ws(b[(m&o)+28>>1]|0)|0;wh(q,25,G,4,0)|0;wh(q,35,1,4,0)|0;m=c[(m&p)+8>>2]|0;if(m)do{G=c[(m&p)>>2]|0;xh(q,wh(q,97,0,2,0)|0,G,0);G=Ws(b[(m&o)+44>>1]|0)|0;wh(q,25,G,3,0)|0;G=Ws(b[(c[(m&p)+8>>2]&o)>>1]|0)|0;wh(q,25,G,4,0)|0;wh(q,35,1,4,0)|0;m=c[(m&p)+20>>2]|0}while((m|0)!=0);l=c[(l&p)>>2]|0}while((l|0)!=0);break}case 15:{if(!U)break a;s=bq(W,U,L)|0;if(!s)break a;w=(c[((w*12|0)&p)+30128>>2]|0)==0;t=s+46|0;G=w?3:6;r=b[((w?t:s+48|0)&o)>>1]|0;u=r&65535;c[(S&p)>>2]=G;q=c[(s&p)+12>>2]|0;iq(T,G);Ar(f,Q);if(((a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0?(Xg(c[(T&p)+16>>2]|0,31256,-1,1,0)|0,(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(T&p)+16>>2]|0)+40|0,31176,-1,1,0)|0,(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0):0)Xg((c[(T&p)+16>>2]|0)+80|0,31184,-1,1,0)|0;if(((!w?(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0:0)?(Xg((c[(T&p)+16>>2]|0)+120|0,31264,-1,1,0)|0,(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(T&p)+16>>2]|0)+160|0,31272,-1,1,0)|0,(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0):0)Xg((c[(T&p)+16>>2]|0)+200|0,31280,-1,1,0)|0;if(!(r<<16>>16))break a;m=s+4|0;l=s+28|0;k=s+32|0;s=q+4|0;q=0;do{G=b[((c[(m&p)>>2]|0)+(q<<1)&o)>>1]|0;wh(T,25,q,1,0)|0;r=G<<16>>16;wh(T,25,r,2,0)|0;if(G<<16>>16<0)wh(T,28,0,3,0)|0;else{G=c[((c[(s&p)>>2]|0)+(r*24|0)&p)>>2]|0;xh(T,wh(T,97,0,3,0)|0,G,0)}if(!w){wh(T,25,d[((c[(l&p)>>2]|0)+q&n)>>0]|0,4,0)|0;G=c[((c[(k&p)>>2]|0)+(q<<2)&p)>>2]|0;xh(T,wh(T,97,0,5,0)|0,G,0);wh(T,25,(q|0)<(e[(t&o)>>1]|0)&1,6,0)|0}wh(T,35,1,c[(S&p)>>2]|0,0)|0;q=q+1|0}while((q|0)<(u|0));break}case 22:{Ar(f,Q);k=(c[(S&p)>>2]|0)+1|0;c[(S&p)>>2]=k;if((a[(V&n)>>0]&-33)<<24>>24==80)wh(T,153,Q,k,0)|0;else{c[(G&p)>>2]=0;if(U){Dn(U,G)|0;m=c[(G&p)>>2]|0;if((m|0)<=-1)m=(m|0)==-2147483648?2147483647:0-m|0}else m=0;wh(T,154,Q,k,m)|0}wh(T,35,k,1,0)|0;iq(T,1);if(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)break a;Xg(c[(T&p)+16>>2]|0,V,-1,1,-1)|0;break a}case 24:{l=c[(C+(Q<<4)&p)+4>>2]|0;if(U){c[(G&p)>>2]=0;Dn(U,G)|0;G=c[(G&p)>>2]|0;c[(W&p)+72>>2]=G;if((xg(l,G,-1,0)|0)!=7)break a;a[(W&n)+65>>0]=1;break a}if(!l){l=0;m=0}else{m=c[((c[(l&p)+4>>2]|0)&p)+32>>2]|0;l=m;m=((m|0)<0)<<31>>31}Jt(f,30864,l,m);break a}case 25:{l=c[(C+(Q<<4)&p)+4>>2]|0;if(U){m=(ii(U,1,0)|0)<<24>>24!=0&1;if((c[(B&p)>>2]|0)==0?(y=W+20|0,(c[(y&p)>>2]|0)>0):0){k=0;do{so(c[((c[(R&p)>>2]|0)+(k<<4)&p)+4>>2]|0,m)|0;k=k+1|0}while((k|0)<(c[(y&p)>>2]|0))}}else m=-1;G=so(l,m)|0;Jt(f,30880,G,((G|0)<0)<<31>>31);break a}case 18:{iq(T,1);if(!(a[((c[(T&p)>>2]|0)&n)+65>>0]|0))Xg(c[(T&p)+16>>2]|0,30936,-1,1,0)|0;c:do if(U){k=U;while(1)if(!(a[(k&n)>>0]|0))break;else k=k+1|0;m=k-U&1073741823;k=0;while(1){if(!(Fc(U,c[(k<<2&p)+32216>>2]|0,m)|0))break;k=k+1|0;if((k|0)==6){P=91;break c}}if((k|0)!=-1)q=Q;else P=91}else P=91;while(0);if((P|0)==91)if(!(c[(B&p)>>2]|0)){c[(B&p)>>2]=1;k=-1;q=0}else{k=-1;q=Q}m=c[(W&p)+20>>2]|0;if((m|0)>0){l=T+96|0;do{m=m+-1|0;do if(c[((c[(R&p)>>2]|0)+(m<<4)&p)+4>>2]|0){if((m|0)!=(q|0)?(c[(B&p)>>2]|0)!=0:0)break;c[(l&p)>>2]=c[(l&p)>>2]|1<0)}wh(T,35,1,1,0)|0;break a}case 32:{if(!U){if(!(c[2708]|0))break a;iq(T,1);if(!(a[((c[(T&p)>>2]|0)&n)+65>>0]|0))Xg(c[(T&p)+16>>2]|0,31048,-1,1,0)|0;G=c[2708]|0;xh(T,wh(T,97,0,1,0)|0,G,0);wh(T,35,1,1,0)|0;break a}if((a[(U&n)>>0]|0)!=0?(F=c[(W&p)>>2]|0,F=(pc[c[(F&p)+32>>2]&31](F,U,1,u)|0)!=0,F|(c[(u&p)>>2]|0)==0):0){th(f,31072,G);break a}if((d[(W&n)+64>>0]|0)<2)Kt(f)|0;Wc(c[2708]|0);if(!(a[(U&n)>>0]|0)){c[2708]=0;break a}else{c[(G&p)>>2]=U;c[2708]=_c(10344,G)|0;break a}}case 14:{if(!((U|0)!=0?(G=(Dn(U,t)|0)==0,m=c[(t&p)>>2]|0,!(G|(m|0)<1)):0)){c[(t&p)>>2]=2147483647;m=2147483647}l=c[(f&p)+408>>2]|0;Ar(f,Q);l=((l|0)==0?f:l)+328|0;c[(l&p)>>2]=c[(l&p)>>2]|1<>2]|0;if(l>>>0>m>>>0)c[((c[(T&p)+4>>2]|0)+(m*20|0)&p)+8>>2]=l;c[((c[(T&p)+24>>2]|0)&p)+88>>2]=l+-1;break a}case 30:{if(!U)break a;h=_h(W,U,L)|0;if(!h)break a;k=c[(h&p)+8>>2]|0;d:do if(!k)k=0;else while(1){if((a[(k&n)+51>>0]&3)==2)break d;k=c[(k&p)+20>>2]|0;if(!k){k=0;break}}while(0);iq(T,6);c[(S&p)>>2]=6;Ar(f,Q);do if((((a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0?(Xg(c[(T&p)+16>>2]|0,31176,-1,1,0)|0,(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(T&p)+16>>2]|0)+40|0,31184,-1,1,0)|0,(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(T&p)+16>>2]|0)+80|0,31192,-1,1,0)|0,(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0):0){Xg((c[(T&p)+16>>2]|0)+120|0,31200,-1,1,0)|0;if(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)break;Xg((c[(T&p)+16>>2]|0)+160|0,31208,-1,1,0)|0;if(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)break;Xg((c[(T&p)+16>>2]|0)+200|0,31224,-1,1,0)|0}while(0);hr(f,h)|0;t=h+38|0;m=b[(t&o)>>1]|0;if(m<<16>>16<=0)break a;u=(k|0)==0;l=k+4|0;w=0;r=0;g=c[(h&p)+4>>2]|0;while(1){s=g+23|0;if(!(a[(s&n)>>0]&2)){wh(T,25,w-r|0,1,0)|0;q=c[(g&p)>>2]|0;xh(T,wh(T,97,0,2,0)|0,q,0);q=c[(g&p)+12>>2]|0;xh(T,wh(T,97,0,3,0)|0,(q|0)==0?10360:q,0);wh(T,25,(a[(g&n)+20>>0]|0)!=0&1,4,0)|0;q=c[(g&p)+8>>2]|0;if(!q)wh(T,28,0,5,0)|0;else xh(T,wh(T,97,0,5,0)|0,q,0);k=a[(s&n)>>0]&1;e:do if(k<<24>>24==0|u)q=(k^1)&255^1;else{q=b[(t&o)>>1]|0;if(q<<16>>16<1){q=1;break}m=c[(l&p)>>2]|0;s=q<<16>>16;k=1;while(1){q=k+1|0;if((b[(m+(k+-1<<1)&o)>>1]|0)==(w|0)){q=k;break e}if((k|0)<(s|0))k=q;else break}}while(0);wh(T,25,q,6,0)|0;wh(T,35,1,6,0)|0;m=b[(t&o)>>1]|0}else r=r+1|0;w=w+1|0;if((w|0)>=(m<<16>>16|0))break;else g=g+24|0}break}case 2:{if(!U){Jt(f,g,(c[((w*12|0)&p)+30128>>2]&c[(W&p)+24>>2]|0)!=0&1,0);break a}l=c[((w*12|0)&p)+30128>>2]|0;l=(a[(W&n)+63>>0]|0)==0?l&-524289:l;if(!((ii(U,1,0)|0)<<24>>24)){G=W+24|0;c[(G&p)>>2]=c[(G&p)>>2]&~l;if((l|0)==16777216){G=W+512|0;c[(G&p)>>2]=0;c[(G&p)+4>>2]=0}}else{G=W+24|0;c[(G&p)>>2]=c[(G&p)>>2]|l}wh(T,144,0,0,0)|0;Lt(W);break a}case 5:{if(!U)break a;G=(ii(U,1,0)|0)<<24>>24!=0;F=G?32e3:19240;Qh(W,19248,2,1,F,40,0,0,0)|0;Qh(W,19248,3,1,F,40,0,0,0)|0;Qh(W,19232,2,1,10352,40,0,0,0)|0;Ot(W,19232,12);Ot(W,19248,G?12:4);break a}case 17:{g=a[(V&n)>>0]|0;A=(c[(h&p)>>2]|0)==0?-1:Q;c[(S&p)>>2]=6;iq(T,1);if(!(a[((c[(T&p)>>2]|0)&n)+65>>0]|0))Xg(c[(T&p)+16>>2]|0,31464,-1,1,0)|0;c[(z&p)>>2]=100;if(U){Dn(U,z)|0;s=c[(z&p)>>2]|0;if((s|0)<1){c[(z&p)>>2]=100;s=100}}else s=100;wh(T,25,s,1,0)|0;M=W+20|0;w=c[(M&p)>>2]|0;if((w|0)>0){L=(A|0)<0;m=T+32|0;I=T+4|0;H=T+24|0;N=(g&-33)<<24>>24==81;O=0;do{if(L|(O|0)==(A|0)){Ar(f,O);w=wh(T,137,1,0,0)|0;wh(T,24,0,0,0)|0;l=c[(m&p)>>2]|0;if(l>>>0>w>>>0)c[((c[(I&p)>>2]|0)+(w*20|0)&p)+8>>2]=l;c[((c[(H&p)>>2]|0)&p)+88>>2]=l+-1;k=(c[((c[(R&p)>>2]|0)+(O<<4)&p)+12>>2]|0)+16|0;w=c[(k&p)>>2]|0;if(!w)g=0;else{g=0;do{l=c[(w&p)+8>>2]|0;if(!(a[(l&n)+44>>0]&32)){wh(T,25,c[(l&p)+32>>2]|0,g+2|0,0)|0;g=g+1|0}l=c[(l&p)+8>>2]|0;if(l)do{wh(T,25,c[(l&p)+40>>2]|0,g+2|0,0)|0;g=g+1|0;l=c[(l&p)+20>>2]|0}while((l|0)!=0);w=c[(w&p)>>2]|0}while((w|0)!=0)}C=c[(S&p)>>2]|0;w=g+8|0;c[(S&p)>>2]=(C|0)>(w|0)?C:w;wh(T,127,2,g,1)|0;w=c[(I&p)>>2]|0;if(w)a[(w+(((c[(m&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=O;g=wh(T,76,2,0,0)|0;c[(G&p)>>2]=c[((c[(R&p)>>2]|0)+(O<<4)&p)>>2];w=uh(W,31480,G)|0;xh(T,wh(T,97,0,3,0)|0,w,-1);wh(T,32,2,4,1)|0;wh(T,94,4,3,2)|0;wh(T,35,2,1,0)|0;w=c[(m&p)>>2]|0;if(w>>>0>g>>>0)c[((c[(I&p)>>2]|0)+(g*20|0)&p)+8>>2]=w;c[((c[(H&p)>>2]|0)&p)+88>>2]=w+-1;w=c[(k&p)>>2]|0;if(!((w|0)==0|N))do{x=c[(w&p)+8>>2]|0;J=x+8|0;g=c[(J&p)>>2]|0;do if(g){f:do if(!(a[(x&n)+44>>0]&32))g=0;else while(1){if((a[(g&n)+51>>0]&3)==2)break f;g=c[(g&p)+20>>2]|0;if(!g){g=0;break}}while(0);l=wh(T,137,1,0,0)|0;wh(T,24,0,0,0)|0;k=c[(m&p)>>2]|0;if(k>>>0>l>>>0)c[((c[(I&p)>>2]|0)+(l*20|0)&p)+8>>2]=k;c[((c[(H&p)>>2]|0)&p)+88>>2]=k+-1;at(f);pt(f,x,54,1,0,D,E)|0;wh(T,25,0,7,0)|0;k=c[(J&p)>>2]|0;if(!k)l=8;else{l=0;while(1){wh(T,25,0,l+8|0,0)|0;k=c[(k&p)+20>>2]|0;if(!k)break;else l=l+1|0}l=l+9|0}K=c[(S&p)>>2]|0;c[(S&p)>>2]=(K|0)>(l|0)?K:l;wh(T,108,c[(D&p)>>2]|0,0,0)|0;K=wh(T,37,7,1,0)|0;u=x+38|0;l=b[(u&o)>>1]|0;if(l<<16>>16>0){h=x+36|0;v=x+4|0;t=0;do{do if((t|0)!=(b[(h&o)>>1]|0)){if(!(a[((c[(v&p)>>2]|0)+(t*24|0)&n)+20>>0]|0))break;nt(T,x,c[(D&p)>>2]|0,t,3);l=c[(I&p)>>2]|0;if(l)a[(l+(((c[(m&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=-128;l=wh(T,77,3,0,0)|0;wh(T,37,1,-1,0)|0;q=c[((c[(v&p)>>2]|0)+(t*24|0)&p)>>2]|0;c[(G&p)>>2]=c[(x&p)>>2];c[(G&p)+4>>2]=q;q=uh(W,31504,G)|0;xh(T,wh(T,97,0,3,0)|0,q,-1);wh(T,35,3,1,0)|0;q=wh(T,137,1,0,0)|0;wh(T,24,0,0,0)|0;r=c[(m&p)>>2]|0;if(r>>>0>l>>>0)c[((c[(I&p)>>2]|0)+(l*20|0)&p)+8>>2]=r;l=r+-1|0;k=(c[(H&p)>>2]|0)+88|0;c[(k&p)>>2]=l;if(r>>>0>q>>>0)c[((c[(I&p)>>2]|0)+(q*20|0)&p)+8>>2]=r;c[(k&p)>>2]=l;l=b[(u&o)>>1]|0}while(0);t=t+1|0}while((t|0)<(l<<16>>16|0))}l=c[(J&p)>>2]|0;if(l){z=x+4|0;y=0;r=0;k=-1;while(1){q=xs(T)|0;if((g|0)!=(l|0)){k=Pt(f,l,c[(D&p)>>2]|0,0,0,F,r,k)|0;wh(T,37,y+8|0,1,0)|0;x=e[(l&o)+48>>1]|0;q=wh(T,69,(c[(E&p)>>2]|0)+y|0,q,k)|0;xh(T,q,x,-14);wh(T,37,1,-1,0)|0;xh(T,wh(T,97,0,3,0)|0,31528,-2);wh(T,94,7,3,3)|0;xh(T,wh(T,97,0,4,0)|0,31536,-2);wh(T,94,4,3,3)|0;x=c[(l&p)>>2]|0;v=wh(T,97,0,4,0)|0;xh(T,v,x,0);wh(T,94,4,3,3)|0;wh(T,35,3,1,0)|0;x=wh(T,137,1,0,0)|0;wh(T,24,0,0,0)|0;r=c[(m&p)>>2]|0;if(r>>>0>q>>>0)c[((c[(I&p)>>2]|0)+(q*20|0)&p)+8>>2]=r;q=c[(H&p)>>2]|0;c[(q&p)+88>>2]=r+-1;if(a[(l&n)+50>>0]|0){h=xs(T)|0;u=l+46|0;q=b[(u&o)>>1]|0;if(q<<16>>16){t=l+4|0;r=0;do{if(!(a[((c[(z&p)>>2]|0)+((b[((c[(t&p)>>2]|0)+(r<<1)&o)>>1]|0)*24|0)&n)+20>>0]|0)){wh(T,76,r+k|0,h,0)|0;q=b[(u&o)>>1]|0}r=r+1|0}while((r|0)<(q&65535|0))}q=wh(T,9,(c[(E&p)>>2]|0)+y|0,0,0)|0;wh(T,16,0,h,0)|0;r=c[(m&p)>>2]|0;if(r>>>0>q>>>0)c[((c[(I&p)>>2]|0)+(q*20|0)&p)+8>>2]=r;c[((c[(H&p)>>2]|0)&p)+88>>2]=r+-1;q=e[(u&o)>>1]|0;xh(T,wh(T,114,(c[(E&p)>>2]|0)+y|0,h,k)|0,q,-14);wh(T,37,1,-1,0)|0;xh(T,wh(T,97,0,3,0)|0,31560,-2);wh(T,16,0,v,0)|0;q=c[(H&p)>>2]|0;t=~h;do if((h|0)<0){r=c[(q&p)+112>>2]|0;if(!r)break;c[(r+(t<<2)&p)>>2]=c[(m&p)>>2]}while(0);r=c[(m&p)>>2]|0;c[(q&p)+88>>2]=r+-1}if(r>>>0>x>>>0)c[((c[(I&p)>>2]|0)+(x*20|0)&p)+8>>2]=r;c[(q&p)+88>>2]=r+-1;Qt(f,c[(F&p)>>2]|0);r=l}l=c[(l&p)+20>>2]|0;if(!l)break;else y=y+1|0}}wh(T,9,c[(D&p)>>2]|0,K,0)|0;l=K+-1|0;k=c[(m&p)>>2]|0;if(k>>>0>l>>>0)c[((c[(I&p)>>2]|0)+(l*20|0)&p)+8>>2]=k;c[((c[(H&p)>>2]|0)&p)+88>>2]=k+-1;xh(T,wh(T,97,0,2,0)|0,31592,-2);l=c[(J&p)>>2]|0;if(!l)break;else q=0;while(1){if((g|0)!=(l|0)){k=c[(m&p)>>2]|0;wh(T,137,1,k+2|0,0)|0;wh(T,24,0,0,0)|0;wh(T,50,(c[(E&p)>>2]|0)+q|0,3,0)|0;wh(T,79,q+8|0,k+8|0,3)|0;k=c[(I&p)>>2]|0;if(k)a[(k+(((c[(m&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=-112;wh(T,37,1,-1,0)|0;C=c[(l&p)>>2]|0;xh(T,wh(T,97,0,3,0)|0,C,0);wh(T,94,3,2,7)|0;wh(T,35,7,1,0)|0}l=c[(l&p)+20>>2]|0;if(!l)break;else q=q+1|0}}while(0);w=c[(w&p)>>2]|0}while((w|0)!=0);w=c[(M&p)>>2]|0}O=O+1|0}while((O|0)<(w|0))}else m=T+32|0;l=yh(T,3,31448)|0;m=c[(m&p)>>2]|0;if(m>>>0>l>>>0){c[((c[(T&p)+4>>2]|0)+(l*20|0)&p)+12>>2]=0-s;c[((c[(T&p)+4>>2]|0)+(l*20|0)&p)+8>>2]=m}c[((c[(T&p)+24>>2]|0)&p)+88>>2]=m+-1;xh(T,l+1|0,31624,-2);break a}case 21:{do if(U){if(dd(U,30904)|0)if(!(dd(U,30896)|0))k=0;else{P=66;break}else k=1;if(!(c[(B&p)>>2]|0)){s=c[(W&p)+20>>2]|0;if((s|0)>2){q=c[(R&p)>>2]|0;m=k&255;r=2;do{l=c[(c[((c[(q+(r<<4)&p)+4>>2]|0)&p)+4>>2]&p)>>2]|0;do if(!(a[(l&n)+12>>0]|0)){G=c[(l&p)+208>>2]|0;if((G|0)!=0?(a[(G&n)+43>>0]|0)==2:0)break;a[(l&n)+4>>0]=m}while(0);r=r+1|0}while((r|0)<(s|0))}else m=k&255;a[(W&n)+66>>0]=m;P=74}else P=74}else P=66;while(0);if((P|0)==66)if(!(c[(B&p)>>2]|0))l=W+66|0;else{k=-1;P=74}if((P|0)==74){m=c[(c[((c[(C+(Q<<4)&p)+4>>2]|0)&p)+4>>2]&p)>>2]|0;do if((k|0)>-1?(a[(m&n)+12>>0]|0)==0:0){G=c[(m&p)+208>>2]|0;if((G|0)!=0?(a[(G&n)+43>>0]|0)==2:0)break;a[(m&n)+4>>0]=k}while(0);l=m+4|0}l=(a[(l&n)>>0]|0)==1?30904:30896;iq(T,1);if(!(a[((c[(T&p)>>2]|0)&n)+65>>0]|0))Xg(c[(T&p)+16>>2]|0,30920,-1,1,0)|0;xh(T,wh(T,97,0,1,0)|0,l,0);wh(T,35,1,1,0)|0;break a}case 16:{if(!U)break a;k=_h(W,U,L)|0;if(!k)break a;q=Oq(f)|0;iq(q,5);c[(S&p)>>2]=5;Ar(f,Q);if(((((a[((c[(q&p)>>2]|0)&n)+65>>0]|0)==0?(Xg(c[(q&p)+16>>2]|0,31288,-1,1,0)|0,(a[((c[(q&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(q&p)+16>>2]|0)+40|0,31184,-1,1,0)|0,(a[((c[(q&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(q&p)+16>>2]|0)+80|0,31296,-1,1,0)|0,(a[((c[(q&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(q&p)+16>>2]|0)+120|0,31304,-1,1,0)|0,(a[((c[(q&p)>>2]|0)&n)+65>>0]|0)==0):0)Xg((c[(q&p)+16>>2]|0)+160|0,31312,-1,1,0)|0;m=c[(k&p)+8>>2]|0;if(!m)break a;else l=0;while(1){wh(q,25,l,1,0)|0;G=c[(m&p)>>2]|0;xh(q,wh(q,97,0,2,0)|0,G,0);wh(q,25,(a[(m&n)+50>>0]|0)!=0&1,3,0)|0;G=c[((a[(m&n)+51>>0]&3)<<2&p)+31336>>2]|0;xh(q,wh(q,97,0,4,0)|0,G,0);wh(q,25,(c[(m&p)+36>>2]|0)!=0&1,5,0)|0;wh(q,35,1,5,0)|0;m=c[(m&p)+20>>2]|0;if(!m)break;else l=l+1|0}break}case 1:{k=c[(C+(Q<<4)&p)+4>>2]|0;if(!U){m=c[(k&p)+4>>2]|0;c[(m&p)+4>>2]=c[(k&p)>>2];if(!(a[(m&n)+17>>0]|0)){m=0;l=0}else{l=(a[(m&n)+18>>0]|0)==0;m=l?1:2;l=l?0:0}Jt(f,30976,m,l);break a}if(dd(U,32192)|0)if(dd(U,31880)|0)if(!(dd(U,32200)|0))m=2;else{c[(G&p)>>2]=0;Dn(U,G)|0;m=c[(G&p)>>2]|0;m=m>>>0<3?m&255:0}else m=1;else m=0;a[(W&n)+67>>0]=m;r=m+-1|0;if(!((vn(k,m)|0)==0&r>>>0<2))break a;l=yh(T,6,30992)|0;q=c[(T&p)+32>>2]|0;if(q>>>0>l>>>0)c[((c[(T&p)+4>>2]|0)+(l*20|0)&p)+4>>2]=Q;k=l+1|0;if(q>>>0>k>>>0)c[((c[(T&p)+4>>2]|0)+(k*20|0)&p)+4>>2]=Q;k=l+2|0;m=l+4|0;if(q>>>0>k>>>0)c[((c[(T&p)+4>>2]|0)+(k*20|0)&p)+8>>2]=m;if(q>>>0>m>>>0)c[((c[(T&p)+4>>2]|0)+(m*20|0)&p)+4>>2]=r;m=l+5|0;if(q>>>0>m>>>0)c[((c[(T&p)+4>>2]|0)+(m*20|0)&p)+4>>2]=Q;G=T+96|0;c[(G&p)>>2]=c[(G&p)>>2]|1<>2]=3;if(((a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0?(Xg(c[(T&p)+16>>2]|0,31288,-1,1,0)|0,(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(T&p)+16>>2]|0)+40|0,31184,-1,1,0)|0,(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0):0)Xg((c[(T&p)+16>>2]|0)+80|0,31352,-1,1,0)|0;l=W+20|0;m=c[(l&p)>>2]|0;if((m|0)>0)q=0;else break a;do{if(c[((c[(R&p)>>2]|0)+(q<<4)&p)+4>>2]|0){wh(T,25,q,1,0)|0;k=c[((c[(R&p)>>2]|0)+(q<<4)&p)>>2]|0;xh(T,wh(T,97,0,2,0)|0,k,0);k=c[(c[((c[((c[(R&p)>>2]|0)+(q<<4)&p)+4>>2]|0)&p)+4>>2]&p)>>2]|0;if(!(a[(k&n)+15>>0]|0))k=c[(k&p)+168>>2]|0;else k=10360;xh(T,wh(T,97,0,3,0)|0,k,0);wh(T,35,1,3,0)|0;m=c[(l&p)>>2]|0}q=q+1|0}while((q|0)<(m|0));break}case 6:{iq(T,2);c[(S&p)>>2]=2;if((a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0?(Xg(c[(T&p)+16>>2]|0,31288,-1,1,0)|0,(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0):0)Xg((c[(T&p)+16>>2]|0)+40|0,31184,-1,1,0)|0;m=c[(W&p)+436>>2]|0;if(!m)break a;else l=0;while(1){G=c[(m&p)+8>>2]|0;wh(T,25,l,1,0)|0;G=c[(G&p)>>2]|0;xh(T,wh(T,97,0,2,0)|0,G,0);wh(T,35,1,2,0)|0;m=c[(m&p)>>2]|0;if(!m)break;else l=l+1|0}break}case 13:{if(!U)break a;k=_h(W,U,L)|0;if(!k)break a;g=Oq(f)|0;q=c[(k&p)+16>>2]|0;if(!q)break a;iq(g,8);c[(S&p)>>2]=8;Ar(f,Q);do if((((a[((c[(g&p)>>2]|0)&n)+65>>0]|0)==0?(Xg(c[(g&p)+16>>2]|0,31360,-1,1,0)|0,(a[((c[(g&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(g&p)+16>>2]|0)+40|0,31288,-1,1,0)|0,(a[((c[(g&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(g&p)+16>>2]|0)+80|0,31232,-1,1,0)|0,(a[((c[(g&p)>>2]|0)&n)+65>>0]|0)==0):0){Xg((c[(g&p)+16>>2]|0)+120|0,31368,-1,1,0)|0;if(a[((c[(g&p)>>2]|0)&n)+65>>0]|0)break;Xg((c[(g&p)+16>>2]|0)+160|0,31376,-1,1,0)|0;if(a[((c[(g&p)>>2]|0)&n)+65>>0]|0)break;Xg((c[(g&p)+16>>2]|0)+200|0,31384,-1,1,0)|0;if(a[((c[(g&p)>>2]|0)&n)+65>>0]|0)break;Xg((c[(g&p)+16>>2]|0)+240|0,31400,-1,1,0)|0;if(a[((c[(g&p)>>2]|0)&n)+65>>0]|0)break;Xg((c[(g&p)+16>>2]|0)+280|0,31416,-1,1,0)|0}while(0);v=k+4|0;w=0;while(1){k=q+20|0;if((c[(k&p)>>2]|0)>0){m=q+25|0;l=q+26|0;t=q+8|0;h=0;do{u=c[(q+(h<<3)&p)+40>>2]|0;s=d[(m&n)>>0]|0;if((s|0)==8)r=32072;else if((s|0)==9)r=32088;else if((s|0)==6)r=32096;else if((s|0)==7)r=32056;else r=32112;s=d[(l&n)>>0]|0;if((s|0)==8)s=32072;else if((s|0)==9)s=32088;else if((s|0)==6)s=32096;else if((s|0)==7)s=32056;else s=32112;wh(g,25,w,1,0)|0;wh(g,25,h,2,0)|0;G=c[(t&p)>>2]|0;xh(g,wh(g,97,0,3,0)|0,G,0);G=c[((c[(v&p)>>2]|0)+((c[(q+(h<<3)&p)+36>>2]|0)*24|0)&p)>>2]|0;xh(g,wh(g,97,0,4,0)|0,G,0);xh(g,wh(g,(u|0)!=0?97:28,0,5,0)|0,u,0);xh(g,wh(g,97,0,6,0)|0,s,0);xh(g,wh(g,97,0,7,0)|0,r,0);xh(g,wh(g,97,0,8,0)|0,31424,0);wh(g,35,1,8,0)|0;h=h+1|0}while((h|0)<(c[(k&p)>>2]|0))}q=c[(q&p)+4>>2]|0;if(!q)break;else w=w+1|0}break}case 11:{if(!U){if(Gn(f)|0)break a;iq(T,1);if(!(a[((c[(T&p)>>2]|0)&n)+65>>0]|0))Xg(c[(T&p)+16>>2]|0,31784,-1,1,0)|0;wh(T,97,0,1,0)|0;xh(T,-1,c[(d[((c[(f&p)>>2]|0)&n)+62>>0]<<3&p)+31632>>2]|0,-2);wh(T,35,1,1,0)|0;break a}k=c[((c[(R&p)>>2]|0)&p)+12>>2]|0;if((b[(k&o)+78>>1]&5)==1)break a;else{m=31632;l=31704}do{if(!(dd(U,l)|0)){v=m;P=415;break}m=m+8|0;l=c[(m&p)>>2]|0}while((l|0)!=0);if((P|0)==415?(F=a[(v&n)+4>>0]|0,F=F<<24>>24==0?2:F,a[(W&n)+62>>0]=F,a[(k&n)+77>>0]=F,(c[(v&p)>>2]|0)!=0):0)break a;c[(G&p)>>2]=U;th(f,31800,G);break a}case 0:{s=c[((w*12|0)&p)+30128>>2]|0;F=T+96|0;c[(F&p)>>2]=c[(F&p)>>2]|1<>2]|0)>>>0>m>>>0)c[((c[(T&p)+4>>2]|0)+(m*20|0)&p)+4>>2]=Q;l=m+1|0;c[(G&p)>>2]=0;Dn(U,G)|0;k=c[(k&p)>>2]|0;if(k>>>0>l>>>0)c[((c[(T&p)+4>>2]|0)+(l*20|0)&p)+4>>2]=c[(G&p)>>2];m=m+2|0;if(k>>>0<=m>>>0)break a;c[((c[(T&p)+4>>2]|0)+(m*20|0)&p)+4>>2]=Q;c[((c[(T&p)+4>>2]|0)+(m*20|0)&p)+8>>2]=s;break a}m=yh(T,3,31848)|0;k=c[(T&p)+32>>2]|0;if(k>>>0>m>>>0)c[((c[(T&p)+4>>2]|0)+(m*20|0)&p)+4>>2]=Q;m=m+1|0;if(k>>>0>m>>>0){c[((c[(T&p)+4>>2]|0)+(m*20|0)&p)+4>>2]=Q;c[((c[(T&p)+4>>2]|0)+(m*20|0)&p)+12>>2]=s}iq(T,1);if(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)break a;Xg(c[(T&p)+16>>2]|0,V,-1,1,-1)|0;break a}case 7:{iq(T,1);c[(S&p)>>2]=1;if(!(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)){Xg(c[(T&p)+16>>2]|0,31864,-1,1,0)|0;l=0}else l=0;do{G=c[(l<<2&p)+8648>>2]|0;l=l+1|0;xh(T,wh(T,97,0,1,0)|0,G,0);wh(T,35,1,1,0)|0}while((l|0)!=4);break}case 35:{m=(c[(h&p)>>2]|0)!=0?Q:10;if(U)if(dd(U,31880)|0)if(!(dd(U,31888)|0))l=2;else{l=(dd(U,31896)|0)==0;l=l?3:0}else l=1;else l=0;iq(T,3);c[(S&p)>>2]=3;if(((a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0?(Xg(c[(T&p)+16>>2]|0,31912,-1,1,0)|0,(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(T&p)+16>>2]|0)+40|0,31920,-1,1,0)|0,(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0):0)Xg((c[(T&p)+16>>2]|0)+80|0,31928,-1,1,0)|0;wh(T,11,m,l,1)|0;wh(T,35,1,3,0)|0;break a}case 26:{of(W)|0;break a}case 34:{if(!U)l=c[(W&p)+216>>2]|0;else{c[(G&p)>>2]=0;Dn(U,G)|0;l=c[(G&p)>>2]|0;if((l|0)>0)m=21;else{l=0;m=0}c[(W&p)+216>>2]=m;c[(W&p)+220>>2]=l;l=m}if((l|0)==21){l=c[(W&p)+220>>2]|0;m=l;l=((l|0)<0)<<31>>31}else{m=0;l=0}Jt(f,31944,m,l);break a}case 27:{if((U|0)!=0?(ji(U,x)|0)==0:0){G=x;Pc(c[(G&p)>>2]|0,c[(G&p)+4>>2]|0)|0}F=(Lc()|0)==0;G=9032;Jt(f,31976,F?c[(G&p)>>2]|0:-1,F?c[(G&p)+4>>2]|0:-1);break a}case 33:{if((U|0)!=0?(E=(ji(U,s)|0)==0,G=s,F=c[(G&p)+4>>2]|0,E&((F|0)>-1|(F|0)==-1&(c[(G&p)>>2]|0)>>>0>4294967295)):0)c[(W&p)+132>>2]=0;G=c[(W&p)+132>>2]|0;Jt(f,31992,G,((G|0)<0)<<31>>31);break a}case 12:{g=c[(S&p)>>2]|0;H=g+1|0;I=g+5|0;J=g+6|0;c[(S&p)>>2]=J;K=Oq(f)|0;iq(K,4);if((((a[((c[(K&p)>>2]|0)&n)+65>>0]|0)==0?(Xg(c[(K&p)+16>>2]|0,31232,-1,1,0)|0,(a[((c[(K&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(K&p)+16>>2]|0)+40|0,20456,-1,1,0)|0,(a[((c[(K&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(K&p)+16>>2]|0)+80|0,31432,-1,1,0)|0,(a[((c[(K&p)>>2]|0)&n)+65>>0]|0)==0):0)Xg((c[(K&p)+16>>2]|0)+120|0,31440,-1,1,0)|0;Ar(f,Q);w=c[((c[((c[(R&p)>>2]|0)+(Q<<4)&p)+12>>2]|0)&p)+16>>2]|0;if(!w)break a;u=(U|0)==0;h=f+68|0;v=K+32|0;D=K+4|0;E=K+24|0;F=g+2|0;G=g+3|0;A=g+4|0;t=f+8|0;while(1){if(u){B=c[(w&p)>>2]|0;C=c[(w&p)+8>>2]|0}else{B=0;C=sh(f,0,U,L)|0}if((C|0)!=0?(M=C+16|0,(c[(M&p)>>2]|0)!=0):0){gs(f,Q,c[(C&p)+32>>2]|0,0,c[(C&p)>>2]|0);g=(b[(C&o)+38>>1]|0)+J|0;if((g|0)>(c[(S&p)>>2]|0))c[(S&p)>>2]=g;Qq(f,0,Q,C,54);w=c[(C&p)>>2]|0;xh(K,wh(K,97,0,H,0)|0,w,0);w=c[(M&p)>>2]|0;if(!w)g=1;else{g=1;do{l=_h(W,c[(w&p)+8>>2]|0,L)|0;do if(l){c[(O&p)>>2]=0;gs(f,Q,c[(l&p)+32>>2]|0,0,c[(l&p)>>2]|0);if(Mt(f,l,w,O,0)|0)break a;m=c[(O&p)>>2]|0;if(!m){Qq(f,g,Q,l,54);break}else{wh(K,54,g,c[(m&p)+40>>2]|0,Q)|0;z=c[(t&p)>>2]|0;xh(z,-1,hs(f,m)|0,-6);break}}while(0);g=g+1|0;w=c[(w&p)+4>>2]|0}while((w|0)!=0)}if((c[(h&p)>>2]|0)<(g|0))c[(h&p)>>2]=g;s=wh(K,108,0,0,0)|0;g=c[(M&p)>>2]|0;if(g){z=C+36|0;y=1;while(1){x=g+8|0;w=_h(W,c[(x&p)>>2]|0,L)|0;c[(O&p)>>2]=0;c[(N&p)>>2]=0;r=(w|0)!=0;do if(r){Mt(f,w,g,O,N)|0;l=c[(O&p)>>2]|0;m=xs(K)|0;if(!(r&(l|0)==0)){w=m;P=306;break}w=c[(g&p)+36>>2]|0;if((w|0)==(b[(z&o)>>1]|0))wh(K,103,0,J,0)|0;else{wh(K,47,0,w,J)|0;Nt(K,C,w,J);wh(K,76,J,m,0)|0;wh(K,38,J,(c[(v&p)>>2]|0)+3|0,0)|0}wh(K,70,y,0,J)|0;wh(K,16,0,m,0)|0;w=c[(v&p)>>2]|0;if(w>>>0>1)c[((c[(D&p)>>2]|0)+((w+-2|0)*20|0)&p)+8>>2]=w;c[((c[(E&p)>>2]|0)&p)+88>>2]=w+-1;w=m}else{w=xs(K)|0;l=0;P=306}while(0);do if((P|0)==306){P=0;q=g+20|0;m=c[(q&p)>>2]|0;if((m|0)>0){k=0;do{m=c[(N&p)>>2]|0;if(!m)m=g+(k<<3)+36|0;else m=m+(k<<2)|0;R=k+J|0;nt(K,C,0,c[(m&p)>>2]|0,R);wh(K,76,R,w,0)|0;k=k+1|0;m=c[(q&p)>>2]|0}while((k|0)<(m|0))}if(!r)break;k=ot(K,l)|0;l=c[(q&p)>>2]|0;xh(K,wh(K,49,J,m,I)|0,k,l);xh(K,wh(K,69,y,w,I)|0,0,-14)}while(0);wh(K,103,0,F,0)|0;l=c[(x&p)>>2]|0;xh(K,wh(K,97,0,G,0)|0,l,0);wh(K,25,y+-1|0,A,0)|0;wh(K,35,H,4,0)|0;l=c[(E&p)>>2]|0;m=~w;do if((w|0)<0){w=c[(l&p)+112>>2]|0;if(!w)break;c[(w+(m<<2)&p)>>2]=c[(v&p)>>2]}while(0);c[(l&p)+88>>2]=(c[(v&p)>>2]|0)+-1;mg(W,c[(N&p)>>2]|0);g=c[(g&p)+4>>2]|0;if(!g)break;else y=y+1|0}}wh(K,9,0,s+1|0,0)|0;g=c[(v&p)>>2]|0;if(g>>>0>s>>>0)c[((c[(D&p)>>2]|0)+(s*20|0)&p)+8>>2]=g;c[((c[(E&p)>>2]|0)&p)+88>>2]=g+-1}if(!B)break;else w=B}break}case 23:{Jt(f,31016,0,0);break a}case 31:{if(!U){Jt(f,31032,d[(W&n)+64>>0]|0,0);break a}l=a[(U&n)>>0]|0;if((l+-48&255)>=3)if(!(dd(U,31352)|0))l=1;else{l=(dd(U,15168)|0)==0;l=l?2:0}else l=(l<<24>>24)+-48|0;m=(c[(f&p)>>2]|0)+64|0;if((d[(m&n)>>0]|0)==(l|0))break a;if(Kt(f)|0)break a;a[(m&n)>>0]=l;break a}case 29:{if(!U){G=(d[(C+(Q<<4)&n)+8>>0]|0)+-1|0;Jt(f,31104,G,((G|0)<0)<<31>>31);break a}if(!(a[(W&n)+63>>0]|0)){th(f,31120,G);break a}else{a[(C+(Q<<4)&n)+8>>0]=((ii(U,0,1)|0)&255)+1;Lt(W);break a}}case 4:if(!U){G=c[((c[(C+(Q<<4)&p)+12>>2]|0)&p)+80>>2]|0;Jt(f,30848,G,((G|0)<0)<<31>>31);break a}else{c[(G&p)>>2]=0;Dn(U,G)|0;G=c[(G&p)>>2]|0;c[((c[(C+(Q<<4)&p)+12>>2]|0)&p)+80>>2]=G;pq(c[(C+(Q<<4)&p)+4>>2]|0,G);break a}default:{if(!U)l=c[(W&p)+492>>2]|0;else{c[(G&p)>>2]=0;Dn(U,G)|0;l=c[(G&p)>>2]|0;G=(l|0)>0;l=G?l:0;c[(W&p)+444>>2]=G?74:0;c[(W&p)+448>>2]=G?W:0;c[(r&p)>>2]=0;c[(W&p)+492>>2]=l}Jt(f,31968,l,((l|0)<0)<<31>>31);break a}}while(0)}else{k=c[(q&p)>>2]|0;if(k){c[(G&p)>>2]=k;th(f,10344,G);Wc(c[(q&p)>>2]|0)}G=f+64|0;c[(G&p)>>2]=(c[(G&p)>>2]|0)+1;c[(f&p)+12>>2]=g;break}}while(0);mg(W,V);mg(W,U)}}while(0);i=X;return}function Gr(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0;h=i;i=i+16|0;if((i|0)>=(j|0))fa();g=h;a:do if(!d)d=0;else{f=d;while(1){if((a[(f&n)>>0]|0)==-121){d=c[(b&p)>>2]|0;if(!(a[((c[(d&p)>>2]|0)&n)+145>>0]|0))break;a[(f&n)>>0]=101}d=c[(f&p)+4>>2]|0;if(d&16384){d=0;break a}e=f+20|0;if(!(d&2048)){if(Hr(b,c[(e&p)>>2]|0)|0){d=1;break a}}else if(fr(b,c[(e&p)>>2]|0)|0){d=1;break a}if(Gr(b,c[(f&p)+16>>2]|0)|0){d=1;break a}f=c[(f&p)+12>>2]|0;if(!f){d=0;break a}}c[(g&p)>>2]=c[(b&p)+16>>2];th(d,29984,g);d=1}while(0);i=h;return d|0}function Hr(a,b){a=a|0;b=b|0;var d=0,e=0;a:do if((b|0)!=0?(c[(b&p)>>2]|0)>0:0){d=0;e=c[(b&p)+4>>2]|0;while(1){if(Gr(a,c[(e&p)>>2]|0)|0){d=1;break a}d=d+1|0;if((d|0)>=(c[(b&p)>>2]|0)){d=0;break}else e=e+20|0}}else d=0;while(0);return d|0}function Ir(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;xh(a,wh(a,122,b,0,0)|0,d,-1);d=c[((c[(a&p)>>2]|0)&p)+20>>2]|0;if((d|0)>0){e=a+96|0;b=c[(e&p)>>2]|0;a=0;do{b=b|1<>2]=b}return}function Jr(a,d){a=a|0;d=d|0;var e=0,f=0;e=d+8|0;f=Ur(a,0,e)|0;d=d+24|0;kg(c[(a&p)>>2]|0,c[(d&p)>>2]|0);c[(d&p)>>2]=f;if(f){d=f+40|0;b[(d&o)>>1]=(b[(d&o)>>1]|0)+1<<16>>16}e=(Rt(a,e)|0)==0;return (e?f:0)|0}function Kr(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0;n=i;i=i+16|0;if((i|0)>=(j|0))fa();m=n;a:do if((b|0)!=0?(f=c[(a&p)+12>>2]|0,(c[(b&p)>>2]|0)>0):0){g=a+8|0;h=a+4|0;k=0;l=b+8|0;while(1){if(!(c[(g&p)>>2]|0)){e=l+4|0;d=c[(e&p)>>2]|0;if((d|0)!=0?(dd(d,f)|0)!=0:0)break;mg(c[(c[(a&p)>>2]&p)>>2]|0,d);c[(e&p)>>2]=0;c[(l&p)>>2]=c[(h&p)>>2]}if(fr(a,c[(l&p)+20>>2]|0)|0){d=1;break a}if(Gr(a,c[(l&p)+44>>2]|0)|0){d=1;break a}k=k+1|0;if((k|0)>=(c[(b&p)>>2]|0)){d=0;break a}else l=l+72|0}b=c[(a&p)>>2]|0;l=c[(a&p)+20>>2]|0;c[(m&p)>>2]=c[(a&p)+16>>2];c[(m&p)+4>>2]=l;c[(m&p)+8>>2]=d;th(b,29936,m);d=1}else d=0;while(0);i=n;return d|0}function Lr(b,d){b=b|0;d=d|0;var e=0,f=0,g=0;f=i;i=i+16|0;if((i|0)>=(j|0))fa();e=f;g=c[(b&p)>>2]|0;if((((a[(g&n)+145>>0]|0)==0?(a[(b&n)+18>>0]|0)==0:0)?(c[(g&p)+24>>2]&2048|0)==0:0)?(Fc(d,25568,7)|0)==0:0){c[(e&p)>>2]=d;th(b,28440,e);b=1}else b=0;i=f;return b|0}function Mr(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,o=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0;x=i;i=i+16|0;if((i|0)>=(j|0))fa();w=x;do if(d){t=e&1;v=(f|0)!=0;if(v){g=c[(f&p)>>2]|0;r=32768}else{g=St(d,e)|0;g=mh(b,g,((g|0)<0)<<31>>31)|0;r=0}c[(w&p)>>2]=g;if(g){l=(t|0)==0;if(!l)if(!(c[(d&p)+12>>2]|0))q=(c[(d&p)+20>>2]|0)==0?16396:8220;else q=8220;else q=48;s=q&60;u=d+4|0;m=c[(u&p)>>2]|0;if((m&1024|0)==0?(h=c[(d&p)+8>>2]|0,(h|0)!=0):0){k=h;while(1)if(!(a[(k&n)>>0]|0))break;else k=k+1|0;o=(k-h&1073741823)+1|0}else o=0;if(l){if(!(m&16384))k=(m&8192|0)==0?48:28;else k=12;kw(g|0,d|0,k|0)|0;fw(g+k|0,0,48-k|0)|0}else kw(g|0,d|0,s|0)|0;m=g+4|0;h=q&24576|r|c[(m&p)>>2]&-122881;c[(m&p)>>2]=h;if(o){h=g+s|0;c[(g&p)+8>>2]=h;kw(h|0,c[(d&p)+8>>2]|0,o|0)|0;h=c[(m&p)>>2]|0}k=c[(u&p)>>2]|0;do if(!((h|k)&16384)){h=d+20|0;if(!(k&2048)){c[(g&p)+20>>2]=Pr(b,c[(h&p)>>2]|0,t)|0;break}else{c[(g&p)+20>>2]=gr(b,c[(h&p)>>2]|0,t)|0;break}}while(0);h=c[(m&p)>>2]|0;if(!(h&24576)){if(c[(u&p)>>2]&16384)break;c[(g&p)+12>>2]=Mr(b,c[(d&p)+12>>2]|0,0,0)|0;c[(g&p)+16>>2]=Mr(b,c[(d&p)+16>>2]|0,0,0)|0;break}t=Tt(d,e)|0;c[(w&p)>>2]=(c[(w&p)>>2]|0)+t;if(h&8192){c[(g&p)+12>>2]=Mr(b,c[(d&p)+12>>2]|0,1,w)|0;c[(g&p)+16>>2]=Mr(b,c[(d&p)+16>>2]|0,1,w)|0}if(v)c[(f&p)>>2]=c[(w&p)>>2]}}else g=0;while(0);i=x;return g|0}function Nr(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;a:do if((b|0)!=0?(d=mh(a,8,0)|0,(d|0)!=0):0){g=b+4|0;c[(d&p)+4>>2]=c[(g&p)>>2];e=mh(a,c[(g&p)>>2]<<3,0)|0;c[(d&p)>>2]=e;if(!e){mg(a,d);d=0;break}if((c[(g&p)>>2]|0)>0){f=0;while(1){h=c[(b&p)>>2]|0;c[(e+(f<<3)&p)>>2]=kh(a,c[(h+(f<<3)&p)>>2]|0)|0;c[(e+(f<<3)&p)+4>>2]=c[(h+(f<<3)&p)+4>>2];f=f+1|0;if((f|0)>=(c[(g&p)>>2]|0))break a;e=c[(d&p)>>2]|0}}}else d=0;while(0);return d|0}function Or(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0;f=e+4|0;g=(c[(f&p)>>2]|0)+40|0;b=mh(b,g,0)|0;if(b){fw(b|0,0,g|0)|0;g=b+40|0;kw(g|0,c[(e&p)>>2]|0,c[(f&p)>>2]|0)|0;c[(b&p)+12>>2]=g;c[(b&p)+16>>2]=c[(f&p)>>2];a[(b&n)>>0]=d}return b|0}function Pr(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0;do if((d|0)!=0?(f=mh(b,8,0)|0,(f|0)!=0):0){g=c[(d&p)>>2]|0;c[(f&p)>>2]=g;if(!(e&1)){h=c[(d&p)>>2]|0;g=1;while(1)if((g|0)<(h|0))g=g<<1;else break}g=mh(b,g*20|0,0)|0;c[(f&p)+4>>2]=g;if(!g){mg(b,f);f=0;break}if((c[(d&p)>>2]|0)>0){i=0;h=c[(d&p)+4>>2]|0;while(1){c[(g&p)>>2]=Mr(b,c[(h&p)>>2]|0,e,0)|0;c[(g&p)+4>>2]=kh(b,c[(h&p)+4>>2]|0)|0;c[(g&p)+8>>2]=kh(b,c[(h&p)+8>>2]|0)|0;a[(g&n)+12>>0]=a[(h&n)+12>>0]|0;j=g+13|0;k=a[(j&n)>>0]|0;a[(j&n)>>0]=k&-2;a[(j&n)>>0]=a[(h&n)+13>>0]&2|k&-4;c[(g&p)+16>>2]=c[(h&p)+16>>2];i=i+1|0;if((i|0)>=(c[(d&p)>>2]|0))break;else{g=g+20|0;h=h+20|0}}}}else f=0;while(0);return f|0}function Qr(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0;o=i;i=i+16|0;if((i|0)>=(j|0))fa();k=o;l=c[(a&p)>>2]|0;f=c[(b&p)+20>>2]|0;a:do if(f){e=c[(l&p)+20>>2]|0;if((e|0)>0){d=c[(l&p)+16>>2]|0;h=0;while(1){g=h+1|0;if((c[(d+(h<<4)&p)+12>>2]|0)==(f|0)){g=h;break a}if((g|0)<(e|0))h=g;else break}}else g=0}else g=-1e6;while(0);d=bn((c[(b&p)+24>>2]|0)+8|0,c[(b&p)+4>>2]|0,k)|0;if(!d)f=0;else f=c[(d&p)+8>>2]|0;d=c[((c[(l&p)+16>>2]|0)+(g<<4)&p)>>2]|0;e=(g|0)==1;if((((Sq(a,e?14:16,c[(b&p)>>2]|0,c[(f&p)>>2]|0,d)|0)==0?(Sq(a,9,e?13184:13208,0,d)|0)==0:0)?(m=Oq(a)|0,(m|0)!=0):0)?(n=c[(a&p)+408>>2]|0,Ar(a,g),n=((n|0)==0?a:n)+328|0,c[(n&p)>>2]=c[(n&p)>>2]|1<>2]|0,0),xh(m,n+4|0,10720,-2),Dr(a,g),wh(m,61,0,0,0)|0,n=c[(b&p)>>2]|0,xh(m,wh(m,126,g,0,0)|0,n,0),n=a+72|0,(c[(n&p)>>2]|0)<3):0)c[(n&p)>>2]=3;i=o;return}function Rr(d,e,f,g,h,k,l){d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;var m=0,q=0,r=0,s=0,t=0,u=0,v=0;v=i;i=i+32|0;if((i|0)>=(j|0))fa();m=v;t=c[(d&p)>>2]|0;c[(m&p)>>2]=0;c[(m&p)+4>>2]=0;c[(m&p)+8>>2]=0;c[(m&p)+12>>2]=0;c[(m&p)+16>>2]=0;c[(m&p)+20>>2]=0;c[(m&p)+24>>2]=0;c[(m&p)+28>>2]=0;c[(m&p)>>2]=d;do if(h)if((a[(h&n)>>0]|0)!=27)if(!(ls(m,h)|0)){u=5;break}else{u=13;break}else{a[(h&n)>>0]=97;u=5;break}else u=5;while(0);a:do if((u|0)==5){do if(k)if((a[(k&n)>>0]|0)!=27)if(!(ls(m,k)|0))break;else{u=13;break a}else{a[(k&n)>>0]=97;break}while(0);do if(l)if((a[(l&n)>>0]|0)!=27)if(!(ls(m,l)|0))break;else{u=13;break a}else{a[(l&n)>>0]=97;break}while(0);if(g){if((a[(g&n)>>0]|0)==97)g=c[(g&p)+8>>2]|0;else g=0;if(Sq(d,e,g,0,0)|0)break}s=Oq(d)|0;m=d+60|0;g=c[(m&p)>>2]|0;q=d+56|0;r=c[(q&p)>>2]|0;if((r|0)<4){r=d+72|0;g=c[(r&p)>>2]|0;c[(r&p)>>2]=g+4;g=g+1|0}else{c[(m&p)>>2]=g+4;c[(q&p)>>2]=r+-4}Rq(d,h,g);Rq(d,k,g+1|0);Rq(d,l,g+2|0);if(s){g=g+3|0;wh(s,1,0,g-(b[(f&o)>>1]|0)|0,g)|0;g=c[(s&p)+4>>2]|0;if(g)a[(g+(((c[(s&p)+32>>2]|0)+-1|0)*20|0)&n)+3>>0]=b[(f&o)>>1];xh(s,-1,f,-5);wh(s,144,(e|0)==24&1,0,0)|0}}while(0);if((u|0)==13){f=d+64|0;c[(f&p)>>2]=(c[(f&p)>>2]|0)+1}Gk(t,h);Gk(t,k);Gk(t,l);i=v;return}function Sr(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0;m=i;i=i+16|0;if((i|0)>=(j|0))fa();l=m;g=m+4|0;h=c[(b&p)>>2]|0;a:do if(!(Gn(b)|0)){if(!d){Ut(b,0);break}if(!((e|0)!=0?(c[(e&p)>>2]|0)!=0:0))f=6;do if((f|0)==6){f=Wq(c[(b&p)>>2]|0,d)|0;if(!f)break a;if(!(Yn(h,a[(h&n)+62>>0]|0,f,0)|0)){mg(h,f);break}else{Ut(b,f);mg(h,f);break a}}while(0);d=er(b,d,e,g)|0;if((d|0)>=0?(k=Wq(h,c[(g&p)>>2]|0)|0,(k|0)!=0):0){e=c[((c[(h&p)+16>>2]|0)+(d<<4)&p)>>2]|0;f=_h(h,k,e)|0;if(f){Vt(b,f,0);mg(h,k);break}e=bq(h,k,e)|0;mg(h,k);if(!e){th(b,28872,l);break}else{f=c[(b&p)+408>>2]|0;Ar(b,d);f=((f|0)==0?b:f)+328|0;c[(f&p)>>2]=c[(f&p)>>2]|1<=(j|0))fa();f=h;g=c[(a&p)>>2]|0;if(!(Gn(a)|0)){do if(!b){b=g+20|0;e=c[(b&p)>>2]|0;if((e|0)>0){d=0;do{if((d|0)!=1){Wt(a,d);e=c[(b&p)>>2]|0}d=d+1|0}while((d|0)<(e|0))}}else{if(c[(d&p)+4>>2]|0){e=er(a,b,d,f)|0;if((e|0)<=-1)break;e=c[((c[(g&p)+16>>2]|0)+(e<<4)&p)>>2]|0;b=Wq(g,c[(f&p)>>2]|0)|0;if(!b)break;d=bq(g,b,e)|0;if(!d){e=sh(a,0,b,e)|0;if(e)Xt(a,e,0)}else Xt(a,c[(d&p)+12>>2]|0,d);mg(g,b);break}d=Wq(g,b)|0;e=Vh(g,d)|0;mg(g,d);if((e|0)>-1){Wt(a,e);break}d=Wq(g,b)|0;if(d){e=bq(g,d,0)|0;if(!e){e=sh(a,0,d,0)|0;if(e)Xt(a,e,0)}else Xt(a,c[(e&p)+12>>2]|0,e);mg(g,d)}}while(0);e=Oq(a)|0;if(e)wh(e,144,0,0,0)|0}i=h;return}function Ur(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,i=0;f=c[(d&p)>>2]|0;if(!f)e=d+4|0;else{i=c[(a&p)>>2]|0;g=c[(i&p)+20>>2]|0;i=c[(i&p)+16>>2]|0;a:do if((g|0)>0){h=0;while(1){e=h+1|0;if((c[(i+(h<<4)&p)+12>>2]|0)==(f|0)){e=h;break a}if((e|0)<(g|0))h=e;else break}}else e=0;while(0);e=i+(e<<4)|0}return sh(a,b,c[(d&p)+8>>2]|0,c[(e&p)>>2]|0)|0}function Vr(b,d){b=b|0;d=d|0;var e=0,f=0,g=0;g=i;i=i+16|0;if((i|0)>=(j|0))fa();f=g;if(d){e=d;while(1)if(!(a[(e&n)>>0]|0))break;else e=e+1|0;if((e-d&1073741823)>>>0>6?(Fc(d,25568,7)|0)==0:0){c[(f&p)>>2]=d;th(b,25576,f);e=1}else e=0}else e=0;i=g;return e|0}function Wr(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;f=i;i=i+16|0;if((i|0)>=(j|0))fa();e=f;if(!b){c[(e&p)>>2]=d;a=uh(a,25992,e)|0}else{c[(e&p)>>2]=b;c[(e&p)+4>>2]=d;e=uh(a,26e3,e)|0;mg(a,b);a=e}i=f;return a|0}function Xr(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;h=i;i=i+16|0;if((i|0)>=(j|0))fa();g=h;e=c[(a&p)>>2]|0;f=c[((c[(e&p)+16>>2]|0)&p)+28>>2]|0;if((c[(b&p)+68>>2]|0)!=(f|0)?(d=As(a,b)|0,(d|0)!=0):0){b=d;d=0;do{if((c[(b&p)+20>>2]|0)==(f|0))d=Wr(e,d,c[(b&p)>>2]|0)|0;b=c[(b&p)+32>>2]|0}while((b|0)!=0);if(d){b=c[(a&p)>>2]|0;c[(g&p)>>2]=d;b=uh(b,25968,g)|0;mg(c[(a&p)>>2]|0,d);d=b}else d=0}else d=0;i=h;return d|0}function Yr(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,q=0,r=0;r=i;i=i+16|0;if((i|0)>=(j|0))fa();n=r;o=Oq(a)|0;if(o){e=c[(a&p)>>2]|0;h=c[(b&p)+68>>2]|0;a:do if(h){k=c[(e&p)+20>>2]|0;if((k|0)>0){f=c[(e&p)+16>>2]|0;g=0;while(1){e=g+1|0;if((c[(f+(g<<4)&p)+12>>2]|0)==(h|0))break a;if((e|0)<(k|0))g=e;else{g=e;break}}}else g=0}else g=-1e6;while(0);e=As(a,b)|0;if(e)do{f=c[(a&p)>>2]|0;l=c[(e&p)+20>>2]|0;b:do if(l){m=c[(f&p)+20>>2]|0;if((m|0)>0){k=c[(f&p)+16>>2]|0;h=0;while(1){f=h+1|0;if((c[(k+(h<<4)&p)+12>>2]|0)==(l|0)){f=h;break b}if((f|0)<(m|0))h=f;else break}}else f=0}else f=-1e6;while(0);m=c[(e&p)>>2]|0;xh(o,wh(o,126,f,0,0)|0,m,0);e=c[(e&p)+32>>2]|0}while((e|0)!=0);e=c[(b&p)>>2]|0;xh(o,wh(o,124,g,0,0)|0,e,0);e=c[(a&p)>>2]|0;c[(n&p)>>2]=d;e=uh(e,25952,n)|0;if((e|0)!=0?(Ir(o,g,e),q=Xr(a,b)|0,(q|0)!=0):0)Ir(o,1,q)}i=r;return} function gh(f){f=f|0;var g=0,l=0,m=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,E=0,F=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ea=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,cc=0,dc=0,ec=0,fc=0,gc=0,hc=0,ic=0,kc=0,nc=0,oc=0,qc=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,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,Xc=0,Yc=0,Zc=0,_c=0,$c=0,ad=0,ed=0,fd=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,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,ee=0,fe=0,ge=0,he=0,ie=0,je=0,ke=0,le=0,me=0,ne=0,oe=0,pe=0,qe=0;oe=i;i=i+1040|0;if((i|0)>=(j|0))fa();ke=oe+400|0;Tc=oe+792|0;id=oe+392|0;ad=oe+788|0;Sd=oe+320|0;md=oe+784|0;pd=oe+780|0;qd=oe+280|0;Nd=oe+680|0;$c=oe+240|0;Qd=oe+200|0;_c=oe+676|0;Xc=oe+672|0;Od=oe+160|0;Uc=oe+644|0;td=oe+152|0;Jd=oe+112|0;kd=oe+640|0;Ld=oe+636|0;Yc=oe+632|0;ud=oe+628|0;Ad=oe+624|0;wd=oe+604|0;Bd=oe+600|0;od=oe+596|0;xd=oe+576|0;Sc=oe+840|0;Cd=oe+572|0;Pd=oe+104|0;Dd=oe+568|0;ed=oe+564|0;fd=oe+96|0;Rd=oe+88|0;Ed=oe+560|0;Fd=oe+556|0;Gd=oe+552|0;yd=oe+532|0;zd=oe+512|0;jd=oe+508|0;vd=oe+504|0;Zc=oe+488|0;Md=oe+48|0;Vc=oe+456|0;Rc=oe+444|0;Kd=oe+8|0;sd=oe+440|0;Id=oe+412|0;Hd=oe;zc=f+4|0;s=c[(zc&p)>>2]|0;le=c[(f&p)>>2]|0;Jc=a[(le&n)+62>>0]|0;Nc=f+8|0;z=c[(Nc&p)>>2]|0;ne=le+32|0;l=ne;m=c[(l&p)>>2]|0;l=c[(l&p)+4>>2]|0;me=f+80|0;a:do if((c[(me&p)>>2]|0)==7){y=le+65|0;z=f+44|0;r=m;g=0;t=0;m=0;ie=1317}else{c[(me&p)>>2]=0;de=f+136|0;c[(de&p)>>2]=0;c[(de&p)+4>>2]=0;de=f+20|0;c[(de&p)>>2]=0;c[(le&p)+452>>2]=0;Cc=le+240|0;b:do if(!(c[(Cc&p)>>2]|0)){be=le+292|0;if(c[(be&p)>>2]|0){r=c[(f&p)+124>>2]|0;g=le+300|0;y=c[(g&p)>>2]|0;if(!r)yc=g;else{yc=g;y=(r>>>0)%(y>>>0)|0}}else{yc=le+300|0;y=0}he=f+76|0;ge=le+65|0;Zd=le+296|0;sb=f+176|0;tb=f+184|0;ub=f+92|0;vb=le+80|0;wb=le+84|0;xb=Jc&255;yb=Jc<<24>>24==1;zb=le+88|0;Ab=f+60|0;_d=f+144|0;fe=f+86|0;je=f+44|0;Bb=f+12|0;Cb=Uc+4|0;Db=Uc+16|0;Eb=Uc+12|0;Fb=Uc+25|0;Gb=Uc+20|0;Hb=f+200|0;Ib=f+56|0;$d=f+72|0;Jb=Jd+16|0;Kb=Jd+8|0;Lb=Jd+24|0;Mb=f+87|0;ae=le+156|0;Nb=le+500|0;Ob=le+496|0;ee=le+63|0;Pb=le+488|0;Qb=le+504|0;Rb=le+512|0;Sb=le+70|0;Tb=le+24|0;Ub=le+20|0;Xd=le+16|0;Vb=le+4|0;Yd=f+88|0;Wb=f+104|0;Xb=f+152|0;Yb=f+160|0;Zb=le+152|0;_b=le+64|0;$b=wd+4|0;cc=wd+6|0;dc=wd+8|0;ec=xd+4|0;fc=xd+8|0;gc=le+212|0;hc=le+208|0;ic=f+116|0;kc=yd+4|0;nc=yd+6|0;oc=yd+8|0;qc=$c+8|0;sc=$c+32|0;uc=$c+24|0;vc=$c+16|0;wc=$c+12|0;xc=zd+4|0;Y=zd+6|0;Z=zd+8|0;_=qd+8|0;$=qd+32|0;aa=qd+24|0;ea=qd+12|0;ga=qd+16|0;ha=le+164|0;ia=Zc+8|0;ja=Zc+4|0;ka=le+145|0;la=Zc+12|0;ma=Sd+4|0;na=Sd+12|0;oa=Sd+16|0;pa=Sd+20|0;qa=Sd+24|0;ra=Sd+28|0;sa=Sd+8|0;ta=Sd+40|0;ua=Sd+44|0;va=Sd+48|0;wa=Sd+52|0;xa=Sd+56|0;ya=Sd+60|0;za=Sd+64|0;Aa=Sd+65|0;Ba=le+128|0;Ca=f+28|0;Da=f+36|0;Ea=f+32|0;Fa=f+196|0;Ga=Vc+4|0;Ha=Vc+8|0;Ia=Md+8|0;Ja=Md+32|0;Ka=Md+24|0;La=Vc+20|0;Ma=Vc+12|0;Na=Vc+16|0;Oa=Vc+24|0;Pa=Rc+8|0;Qa=Rc+4|0;Ra=le+148|0;Sa=le+176|0;Ta=le+72|0;Ua=le+67|0;Va=Tc+20|0;Wa=Tc+24|0;Xa=Tc+4|0;Ya=Tc+16|0;Za=le+304|0;_a=le+328|0;$a=Kd+32|0;ab=Kd+8|0;bb=Kd+24|0;cb=le+308|0;db=Id+20|0;eb=le+69|0;ce=f+168|0;fb=qd+4|0;gb=qd+8|0;hb=qd+12|0;ib=qd+16|0;jb=qd+20|0;kb=qd+24|0;lb=qd+25|0;mb=le+180|0;nb=Od+32|0;ob=Od+8|0;pb=Od+12|0;qb=Od+16|0;rb=Od+24|0;W=0;X=0;g=0;u=0;t=c[(he&p)>>2]|0;x=0;c:while(1){r=m;d:while(1){if(a[(ge&n)>>0]|0){y=ge;z=je;m=x;ie=1317;break a}m=g+1|0;if(!(a[(s+(t*20|0)&n)+2>>0]&2))L=u;else{u=c[(s+(t*20|0)&p)+8>>2]|0;g=z+(u*40|0)|0;u=z+(u*40|0)+8|0;if(b[(u&o)>>1]&9312)vg(g);b[(u&o)>>1]=4;L=g}C=s+(t*20|0)|0;J=a[(C&n)>>0]|0;u=J&255;e:do switch(u|0){case 17:{g=m;m=r;u=L;ie=22;break d}case 18:{g=m;m=r;u=L;ie=23;break d}case 20:{g=m;m=r;ie=24;break d}case 21:{g=m;m=r;u=L;ie=25;break d}case 22:{g=m;m=r;u=L;ie=26;break d}case 23:{g=m;m=r;u=L;r=t;ie=27;break d}case 29:{g=m;m=r;r=t;ie=65;break d}case 30:{g=m;m=r;u=L;r=t;ie=66;break d}case 28:{g=m;m=r;u=L;r=t;ie=60;break d}case 32:{g=m;m=r;r=t;ie=72;break d}case 24:{g=m;m=r;u=L;r=t;ie=28;break d}case 25:{g=m;m=r;u=L;r=t;ie=44;break d}case 26:{g=m;m=r;u=L;r=t;ie=45;break d}case 133:{g=m;m=r;u=L;r=t;ie=46;break d}case 97:{a[(C&n)>>0]=27;C=s+(t*20|0)+16|0;v=c[(C&p)>>2]|0;if(!v)g=0;else{g=v;while(1)if(!(a[(g&n)>>0]|0))break;else g=g+1|0;g=g-v&1073741823}w=s+(t*20|0)+4|0;c[(w&p)>>2]=g;if(yb)u=0;else{u=Xg(L,v,-1,1,0)|0;if((u|0)==18){g=m;m=r;u=x;ie=1316;break c}if(Yl(L,xb)|0){y=ge;z=je;g=m;m=x;ie=1317;break a}c[(L&p)+24>>2]=0;g=L+8|0;b[(g&o)>>1]=e[(g&o)>>1]|2048;g=s+(t*20|0)+1|0;if((a[(g&n)>>0]|0)==-1)mg(le,c[(C&p)>>2]|0);a[(g&n)>>0]=-1;v=c[(L&p)+16>>2]|0;c[(C&p)>>2]=v;g=c[(L&p)+12>>2]|0;c[(w&p)>>2]=g}if((g|0)>(c[(zb&p)>>2]|0)){g=m;m=r;u=x;ie=1316;break c}else ie=57;break}case 31:{g=m;m=r;u=L;r=t;ie=67;break d}case 34:{g=m;m=r;r=t;ie=79;break d}case 35:{g=m;m=r;u=x;ie=80;break c}case 33:{g=m;m=r;ie=74;break d}case 94:{g=m;m=r;ie=94;break d}case 93:case 92:case 91:case 90:case 89:{g=m;P=C;m=r;r=t;ie=112;break d}case 27:{v=c[(s+(t*20|0)&p)+16>>2]|0;g=c[(s+(t*20|0)&p)+4>>2]|0;u=0;ie=57;break}case 16:{t=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;u=0;ie=19;break}case 36:{g=m;m=r;J=L;r=t;ie=166;break d}case 1:{V=a[(s+(t*20|0)&n)+3>>0]|0;C=V&255;A=c[(Bb&p)>>2]|0;g=z+((c[(s+(t*20|0)&p)+12>>2]|0)*40|0)|0;c[(Uc&p)>>2]=g;if(V<<24>>24){g=0;u=z+((c[(s+(t*20|0)&p)+8>>2]|0)*40|0)|0;while(1){c[(A+(g<<2)&p)>>2]=u;if((b[(u&o)+8>>1]&4096)!=0?(Vl(u)|0)!=0:0){y=ge;z=je;g=m;m=x;ie=1317;break a}g=g+1|0;if((g|0)>=(C|0))break;else u=u+40|0}g=c[(Uc&p)>>2]|0}V=c[(s+(t*20|0)&p)+16>>2]|0;c[(Cb&p)>>2]=V;c[(Db&p)>>2]=t;c[(Eb&p)>>2]=f;U=g+8|0;b[(U&o)>>1]=e[(U&o)>>1]&48640|1;a[(Fb&n)>>0]=0;U=ne;c[(U&p)>>2]=r;c[(U&p)+4>>2]=l;mc[c[(V&p)+12>>2]&63](Uc,C,A);l=ne;r=c[(l&p)>>2]|0;l=c[(l&p)+4>>2]|0;if(!(a[(Fb&n)>>0]|0))g=0;else{if(!(c[(Gb&p)>>2]|0))g=0;else{c[(ke&p)>>2]=Sg(c[(Uc&p)>>2]|0,1)|0;dh(je,le,10344,ke);g=c[(Gb&p)>>2]|0}em(f,t,c[(s+(t*20|0)&p)+4>>2]|0)}Yl(c[(Uc&p)>>2]|0,xb)|0;w=c[(Uc&p)>>2]|0;v=e[(w&o)+8>>1]|0;if(v&18){u=c[(w&p)+12>>2]|0;if(v&16384)u=(c[(w&p)>>2]|0)+u|0;if((u|0)>(c[((c[(w&p)+32>>2]|0)&p)+88>>2]|0)){g=m;m=r;u=x;ie=1316;break c}else{C=L;T=t;u=g}}else{C=L;T=t;u=g}break}case 88:case 87:case 86:case 85:{g=m;H=C;m=r;r=t;ie=184;break d}case 39:{g=m;m=r;J=L;r=t;ie=208;break d}case 37:{g=m;m=r;u=L;r=t;ie=202;break d}case 38:{g=m;m=r;J=L;r=t;ie=203;break d}case 83:case 80:case 81:case 82:case 78:case 79:{g=m;I=J;m=r;u=L;ie=213;break d}case 40:{V=c[(s+(t*20|0)&p)+4>>2]|0;g=z+(V*40|0)|0;if(!(b[(z+(V*40|0)&o)+8>>1]&16384))u=0;else u=Rg(g)|0;gm(g,c[(s+(t*20|0)&p)+8>>2]&255,Jc);C=L;T=t;break}case 41:{g=m;m=r;u=L;r=t;ie=248;break d}case 42:{g=m;m=r;u=L;r=t;ie=249;break d}case 43:{g=m;m=r;u=L;ie=256;break d}case 71:case 72:{g=m;m=r;r=t;ie=261;break d}case 76:{g=m;m=r;u=L;r=t;ie=286;break d}case 19:{g=m;m=r;r=t;ie=268;break d}case 96:{g=m;m=r;r=t;ie=273;break d}case 44:{g=m;m=r;u=L;r=t;ie=278;break d}case 46:case 45:{g=m;m=r;u=L;r=t;ie=281;break d}case 77:{g=m;m=r;u=L;r=t;ie=288;break d}case 47:{g=m;m=r;u=L;ie=290;break d}case 48:{g=m;m=r;u=L;r=t;ie=368;break d}case 49:{g=m;m=r;ie=371;break d}case 50:{E=c[(c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]&p)>>2]|0;f:do if(c[(E&p)+60>>2]|0){g=qm(E)|0;if(!g){K=E+76|0;H=E+44|0;F=E+72|0;v=0;u=0;g:while(1){C=b[(K&o)>>1]|0;J=c[(E+(C<<16>>16<<2)&p)+120>>2]|0;if(!(a[(J&n)+5>>0]|0)){if(!(a[(J&n)+2>>0]|0)){v=jw(e[(J&o)+18>>1]|0,0,v|0,u|0)|0;u=G}}else{v=jw(e[(J&o)+18>>1]|0,0,v|0,u|0)|0;u=G;while(1){if(!(C<<16>>16))break g;if(J){Bg(c[(J&p)+68>>2]|0);C=b[(K&o)>>1]|0}C=C+-1<<16>>16;b[(K&o)>>1]=C;b[(H&o)>>1]=0;a[(F&n)>>0]=d[(F&n)>>0]&249;J=C<<16>>16;A=E+(J<<1)+78|0;I=b[(A&o)>>1]|0;J=c[(E+(J<<2)&p)+120>>2]|0;if((I&65535)<(e[(J&o)+18>>1]|0)){C=I;break}}b[(A&o)>>1]=C+1<<16>>16;J=b[(K&o)>>1]|0;C=J;J=c[(E+(J<<16>>16<<2)&p)+120>>2]|0}C=b[(E+(C<<16>>16<<1)&o)+78>>1]|0;A=c[(J&p)+56>>2]|0;if(C<<16>>16==(b[(J&o)+18>>1]|0)){g=d[(J&n)+6>>0]|0;g=rm(E,d[(A+g&n)+9>>0]<<16|d[(A+g&n)+8>>0]<<24|d[(A+g&n)+10>>0]<<8|d[(A+g&n)+11>>0])|0}else{g=(C&65535)<<1;V=c[(J&p)+64>>2]|0;g=(d[(V+g&n)>>0]<<8|d[(V+(g|1)&n)>>0])&e[(J&o)+20>>1];g=rm(E,d[(A+g&n)+1>>0]<<16|d[(A+g&n)>>0]<<24|d[(A+g&n)+2>>0]<<8|d[(A+g&n)+3>>0])|0}if(g){v=0;u=0;break f}}g=qm(E)|0}else{v=0;u=0}}else{g=0;v=0;u=0}while(0);C=L;c[(C&p)>>2]=v;c[(C&p)+4>>2]=u;C=L;T=t;u=g;break}case 2:{O=c[(s+(t*20|0)&p)+4>>2]|0;v=c[(s+(t*20|0)&p)+16>>2]|0;if(!O){g=m;m=r;r=t;ie=446;break d}g=c[(Pb&p)>>2]|0;if(!g){s=v;g=m;m=r;u=x;ie=460;break c}else u=0;while(1){if(!(dd(c[(g&p)>>2]|0,v)|0)){M=g;break}g=c[(g&p)+24>>2]|0;if(!g){s=v;g=m;m=r;u=x;ie=460;break c}else u=u+1|0}H=(O|0)==1;if((c[(ae&p)>>2]|0)>0&H){g=m;m=r;u=x;ie=462;break c}F=M+24|0;if(!(c[(F&p)>>2]|0)){A=(a[(Sb&n)>>0]|0)!=0;if(A&H){g=tm(f,1)|0;if(g)break a;a[(ee&n)>>0]=1;if((Rl(f)|0)==5){g=t;ie=467;break c}a[(Sb&n)>>0]=0;A=1;K=u;u=c[(me&p)>>2]|0}else ie=469}else{A=0;ie=469}if((ie|0)==469){ie=0;K=(c[(Ob&p)>>2]|0)-u+-1|0;if((O|0)==2){C=(c[(Tb&p)>>2]|0)>>>1&1;if((c[(Ub&p)>>2]|0)>0){J=C^1;I=0;while(1){u=Il(c[((c[(Xd&p)>>2]|0)+(I<<4)&p)+4>>2]|0,516,J)|0;I=I+1|0;if(u){g=m;m=r;ie=1318;break c}g=c[(Ub&p)>>2]|0;if((I|0)>=(g|0)){ie=475;break}}}}else{g=c[(Ub&p)>>2]|0;C=0;ie=475}if((ie|0)==475){ie=0;if((g|0)>0){E=0;do{u=um(c[((c[(Xd&p)>>2]|0)+(E<<4)&p)+4>>2]|0,O,K)|0;E=E+1|0;if(u){g=m;m=r;ie=1318;break c}}while((E|0)<(c[(Ub&p)>>2]|0))}}if(!C)u=0;else{C=c[(Vb&p)>>2]|0;if(C)do{V=C+88|0;b[(V&o)>>1]=b[(V&o)>>1]|8;C=c[(C&p)+52>>2]|0}while((C|0)!=0);Eg(le);c[(Tb&p)>>2]=c[(Tb&p)>>2]|2;u=0}}C=c[(Pb&p)>>2]|0;if((C|0)!=(M|0))do{c[(Pb&p)>>2]=c[(C&p)+24>>2];mg(le,C);c[(Ob&p)>>2]=(c[(Ob&p)>>2]|0)+-1;C=c[(Pb&p)>>2]|0}while((C|0)!=(M|0));if(H){c[(Pb&p)>>2]=c[(F&p)>>2];mg(le,M);if(A){C=L;T=t;break e}else{g=m;C=O;m=r;A=K;E=L;r=t;ie=486;break d}}else{V=M+8|0;U=c[(V&p)+4>>2]|0;T=Qb;c[(T&p)>>2]=c[(V&p)>>2];c[(T&p)+4>>2]=U;T=M+16|0;U=c[(T&p)+4>>2]|0;V=Rb;c[(V&p)>>2]=c[(T&p)>>2];c[(V&p)+4>>2]=U;if(A){C=L;T=t;break e}else{C=O;g=m;m=r;A=K;E=L;r=t;ie=488;break d}}}case 3:{u=x;ie=489;break c}case 4:{v=s+(t*20|0)+8|0;g=c[(v&p)>>2]|0;if((g|0)!=0?(c[(Tb&p)>>2]&33554432|0)!=0:0){g=m;m=r;u=8;ie=1318;break c}I=s+(t*20|0)+4|0;J=c[((c[(Xd&p)>>2]|0)+(c[(I&p)>>2]<<4)&p)+4>>2]|0;if(!J){v=0;u=0;g=0}else{u=yg(J,g)|0;if((u|0)==5){g=t;ie=508;break c}else if(u){g=m;m=r;ie=1318;break c}do if((c[(v&p)>>2]|0)!=0?(b[(Yd&o)>>1]&32)!=0:0){if((a[(ee&n)>>0]|0)!=0?(c[(Zb&p)>>2]|0)<=1:0){g=0;break}g=c[(Wb&p)>>2]|0;if(!g){g=(c[(Nb&p)>>2]|0)+1|0;c[(Nb&p)>>2]=g;g=(c[(Ob&p)>>2]|0)+g|0;c[(Wb&p)>>2]=g}g=sm(le,0,g+-1|0)|0;if(!g){g=c[(Wb&p)>>2]|0;V=c[(J&p)+4>>2]|0;c[(V&p)+4>>2]=c[(J&p)>>2];g=hl(c[(V&p)>>2]|0,g)|0}V=Qb;U=c[(V&p)+4>>2]|0;T=Xb;c[(T&p)>>2]=c[(V&p)>>2];c[(T&p)+4>>2]=U;T=Rb;U=c[(T&p)+4>>2]|0;V=Yb;c[(V&p)>>2]=c[(T&p)>>2];c[(V&p)+4>>2]=U}else g=0;while(0);v=c[(J&p)+4>>2]|0;c[(v&p)+4>>2]=c[(J&p)>>2];v=c[((c[(v&p)+12>>2]|0)&p)+56>>2]|0;v=d[(v&n)+41>>0]<<16|d[(v&n)+40>>0]<<24|d[(v&n)+42>>0]<<8|d[(v&n)+43>>0];u=c[((c[((c[(Xd&p)>>2]|0)+(c[(I&p)>>2]<<4)&p)+12>>2]|0)&p)+4>>2]|0}if(a[(s+(t*20|0)&n)+3>>0]|0){if((v|0)!=(c[(s+(t*20|0)&p)+12>>2]|0)){g=m;s=I;m=r;u=x;ie=522;break c}if((u|0)!=(c[(s+(t*20|0)&p)+16>>2]|0)){g=m;s=I;m=r;u=x;ie=522;break c}else{C=L;T=t;u=g}}else{C=L;T=t;u=g}break}case 53:{g=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;if((g|0)!=0?(c[(g&p)+28>>2]|0)==(c[(s+(t*20|0)&p)+8>>2]|0):0){v=s+(t*20|0)+3|0;u=0;ie=548}else ie=536;break}case 51:{g=m;m=r;u=L;r=t;ie=525;break d}case 52:{A=s+(t*20|0)+4|0;g=c[(A&p)>>2]|0;v=c[(Xd&p)>>2]|0;C=c[(s+(t*20|0)&p)+12>>2]|0;w=z+(C*40|0)|0;u=Vg(w)|0;V=w;c[(V&p)>>2]=u;c[(V&p)+4>>2]=G;C=z+(C*40|0)+8|0;b[(C&o)>>1]=e[(C&o)>>1]&48640|4;C=s+(t*20|0)+8|0;u=Dg(c[(v+(g<<4)&p)+4>>2]|0,c[(C&p)>>2]|0,u)|0;C=c[(C&p)>>2]|0;if((C|0)==1){c[(c[(v+(g<<4)&p)+12>>2]&p)>>2]=c[(w&p)>>2];c[(Tb&p)>>2]=c[(Tb&p)>>2]|2}else if((C|0)==2)a[((c[(v+(g<<4)&p)+12>>2]|0)&n)+76>>0]=c[(w&p)>>2];if((c[(A&p)>>2]|0)==1){g=c[(Vb&p)>>2]|0;if(g)do{V=g+88|0;b[(V&o)>>1]=b[(V&o)>>1]|8;g=c[(g&p)+52>>2]|0}while((g|0)!=0);b[(Yd&o)>>1]=b[(Yd&o)>>1]&-9;C=L;T=t}else{C=L;T=t}break}case 55:case 54:{ie=536;break}case 57:case 56:{g=xm(f,c[(s+(t*20|0)&p)+4>>2]|0,c[(s+(t*20|0)&p)+8>>2]|0,-1,1)|0;if(!g){y=ge;z=je;g=m;m=x;ie=1317;break a}a[(g&n)+25>>0]=1;J=g+27|0;a[(J&n)>>0]=a[(J&n)>>0]|1;v=g+4|0;I=s+(t*20|0)+3|0;u=zm(c[(le&p)>>2]|0,0,le,v,d[(I&n)>>0]|5,1054)|0;do if(!u){u=yg(c[(v&p)>>2]|0,1)|0;if(!u){A=c[(s+(t*20|0)&p)+16>>2]|0;C=c[(v&p)>>2]|0;if(!A){u=ym(C,1,1,0,c[(g&p)>>2]|0)|0;a[(J&n)>>0]=a[(J&n)>>0]|4;break}u=Am(C,ud,d[(I&n)>>0]|2)|0;if(!u){c[(g&p)+8>>2]=A;u=ym(c[(v&p)>>2]|0,c[(ud&p)>>2]|0,1,A,c[(g&p)>>2]|0)|0}a[(J&n)>>0]=a[(J&n)>>0]&-5}}while(0);a[(J&n)>>0]=((a[(I&n)>>0]|0)!=8&1)<<3&255|a[(J&n)>>0]&-9;C=L;T=t;break}case 58:{g=m;m=r;ie=558;break d}case 60:{g=m;m=r;u=L;ie=568;break d}case 61:{g=m;m=r;u=L;r=t;ie=570;break d}case 59:{g=m;m=r;u=L;r=t;ie=566;break d}case 65:case 64:case 63:case 62:{g=m;K=u;m=r;r=t;ie=571;break d}case 66:{g=m;m=r;u=L;r=t;ie=596;break d}case 69:case 68:case 67:{g=m;H=C;m=r;u=L;ie=597;break d}case 73:{g=m;m=r;u=L;r=t;ie=624;break d}case 70:{V=c[(s+(t*20|0)&p)+12>>2]|0;g=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;u=c[(g&p)>>2]|0;c[(Cd&p)>>2]=0;V=z+(V*40|0)|0;U=c[(V&p)>>2]|0;V=c[(V&p)+4>>2]|0;u=Cm(u,0,U,V,0,Cd)|0;v=g+48|0;c[(v&p)>>2]=U;c[(v&p)+4>>2]=V;a[(g&n)+25>>0]=0;c[(g&p)+60>>2]=0;a[(g&n)+26>>0]=0;v=c[(Cd&p)>>2]|0;if(v)t=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;c[(g&p)+12>>2]=v;C=L;T=t;break}case 74:{H=Pd;c[(H&p)>>2]=0;c[(H&p)+4>>2]=0;c[(Dd&p)>>2]=0;H=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;g=c[(H&p)>>2]|0;if(!g){u=0;v=0;g=0}else{K=H+27|0;do if(!(a[(K&n)>>0]&2)){u=Hm(g,Dd)|0;if(u){g=m;m=r;ie=1318;break c}if(c[(Dd&p)>>2]|0){V=Pd;c[(V&p)>>2]=1;c[(V&p)+4>>2]=0;break}km(c[(H&p)>>2]|0,Pd);u=Pd;g=c[(u&p)>>2]|0;u=c[(u&p)+4>>2]|0;if((g|0)==-1&(u|0)==2147483647){a[(K&n)>>0]=a[(K&n)>>0]|2;break}else{U=jw(g|0,u|0,1,0)|0;V=Pd;c[(V&p)>>2]=U;c[(V&p)+4>>2]=G;break}}while(0);J=c[(s+(t*20|0)&p)+12>>2]|0;if(J){g=c[(sb&p)>>2]|0;if(!g)C=z;else{while(1){u=c[(g&p)+4>>2]|0;if(!u)break;else g=u}C=c[(g&p)+16>>2]|0}I=C+(J*40|0)|0;A=Vg(I)|0;g=G;V=I;c[(V&p)>>2]=A;c[(V&p)+4>>2]=g;V=C+(J*40|0)+8|0;b[(V&o)>>1]=e[(V&o)>>1]&48640|4;if((A|0)==-1&(g|0)==2147483647){g=m;m=r;u=13;ie=1318;break c}if(a[(K&n)>>0]&2){g=m;m=r;u=13;ie=1318;break c}J=Pd;u=c[(J&p)>>2]|0;J=c[(J&p)+4>>2]|0;C=jw(A|0,g|0,1,0)|0;g=G;if((J|0)<(g|0)|(J|0)==(g|0)&u>>>0>>0){V=Pd;c[(V&p)>>2]=C;c[(V&p)+4>>2]=g}else{C=u;g=J}V=I;c[(V&p)>>2]=C;c[(V&p)+4>>2]=g}h:do if(!(a[(K&n)>>0]&2))g=0;else{u=0;while(1){cd(8,Pd);V=Pd;V=jw(c[(V&p)>>2]|0,c[(V&p)+4>>2]&1073741823|0,1,0)|0;g=G;U=Pd;c[(U&p)>>2]=V;c[(U&p)+4>>2]=g;g=Cm(c[(H&p)>>2]|0,0,V,g,0,Dd)|0;if(c[(Dd&p)>>2]|g)break h;u=u+1|0;if((u|0)>=100){g=m;m=r;u=13;ie=1318;break c}}}while(0);a[(H&n)+26>>0]=0;c[(H&p)+60>>2]=0;v=Pd;u=c[(v&p)>>2]|0;v=c[(v&p)+4>>2]|0}C=L;c[(C&p)>>2]=u;c[(C&p)+4>>2]=v;C=L;T=t;u=g;break}case 84:case 75:{g=m;C=J;m=r;u=L;r=t;ie=647;break d}case 95:{g=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;u=Jm(c[(g&p)>>2]|0)|0;c[(g&p)+60>>2]=0;if((((u|0)==0?(Gc=c[(gc&p)>>2]|0,(Gc|0)!=0):0)?(Hc=c[(s+(t*20|0)&p)+16>>2]|0,(Hc|0)!=0):0)?(a[(g&n)+27>>0]&4)!=0:0){V=g+48|0;bc[Gc&1](c[(hc&p)>>2]|0,9,c[((c[(Xd&p)>>2]|0)+(a[(g&n)+24>>0]<<4)&p)>>2]|0,Hc,c[(V&p)>>2]|0,c[(V&p)+4>>2]|0)}if(!(c[(s+(t*20|0)&p)+8>>2]&1)){C=L;T=t}else{c[(ub&p)>>2]=(c[(ub&p)>>2]|0)+1;C=L;T=t}break}case 98:{g=m;m=r;u=L;r=t;ie=671;break d}case 99:{g=m;m=r;u=L;r=t;ie=672;break d}case 100:{v=c[(s+(t*20|0)&p)+8>>2]|0;C=z+(v*40|0)|0;g=c[((c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0)&p)+56>>2]|0;if(!(a[(g&n)+56>>0]|0)){u=c[(g&p)+36>>2]|0;g=u;u=u+8|0}else{V=c[(g&p)+20>>2]|0;u=c[((c[(V&p)+8>>2]|0)&p)+4>>2]|0;V=c[(V&p)+12>>2]|0;g=V+(u*56|0)+20|0;u=c[(V+(u*56|0)&p)+32>>2]|0}g=c[(g&p)>>2]|0;if(!(fh(C,g)|0)){c[(z+(v*40|0)&p)+12>>2]=g;V=z+(v*40|0)+8|0;b[(V&o)>>1]=e[(V&o)>>1]&48640|16;kw(c[(z+(v*40|0)&p)+16>>2]|0,u|0,g|0)|0;u=0}else u=7;c[((c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+12>>2]<<2)&p)>>2]|0)&p)+60>>2]=0;T=t;break}case 102:case 101:{v=c[(s+(t*20|0)&p)+8>>2]|0;J=z+(v*40|0)|0;A=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;C=c[(A&p)>>2]|0;A=A+27|0;if(a[(A&n)>>0]&4){lm(C,ed);g=c[(ed&p)>>2]|0;if(g>>>0>(c[(zb&p)>>2]|0)>>>0){g=m;m=r;u=x;ie=1316;break c}}else{km(C,fd);T=fd;g=c[(T&p)>>2]|0;T=c[(T&p)+4>>2]|0;V=c[(zb&p)>>2]|0;U=((V|0)<0)<<31>>31;if((T|0)>(U|0)|(T|0)==(U|0)&g>>>0>V>>>0){g=m;m=r;u=x;ie=1316;break c}c[(ed&p)>>2]=g}if(fh(J,g>>>0>32?g:32)|0){y=ge;z=je;g=m;m=x;ie=1317;break a}c[(z+(v*40|0)&p)+12>>2]=g;g=z+(v*40|0)+8|0;b[(g&o)>>1]=e[(g&o)>>1]&48640|16;g=c[(ed&p)>>2]|0;u=c[(z+(v*40|0)&p)+16>>2]|0;if(!(a[(A&n)>>0]&4))u=Lm(C,0,g,u,0)|0;else u=Dh(C,0,g,u)|0;a[(z+(v*40|0)&n)+10>>0]=1;C=J;T=t;break}case 103:{v=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;w=v+25|0;if(a[(w&n)>>0]|0){g=m;m=r;u=L;r=t;ie=700;break d}do if(!(a[(v&n)+26>>0]|0)){g=c[(v&p)+32>>2]|0;if(g){V=c[(g&p)>>2]|0;u=rc[c[((c[(V&p)>>2]|0)&p)+48>>2]&127](g,Rd)|0;Mm(f,V);break}if((a[((c[(v&p)>>2]|0)&n)+73>>0]|0)!=1){u=jm(v)|0;if(u){g=m;m=r;ie=1318;break c}if(a[(w&n)>>0]|0){g=m;m=r;u=L;r=t;ie=708;break d}}km(c[(v&p)>>2]|0,Rd);u=0}else{U=v+48|0;V=c[(U&p)+4>>2]|0;u=Rd;c[(u&p)>>2]=c[(U&p)>>2];c[(u&p)+4>>2]=V;u=0}while(0);V=Rd;T=c[(V&p)+4>>2]|0;C=L;c[(C&p)>>2]=c[(V&p)>>2];c[(C&p)+4>>2]=T;C=L;T=t;break}case 108:{ie=715;break}case 104:{g=m;m=r;u=L;r=t;ie=711;break d}case 107:case 106:{c[(ic&p)>>2]=(c[(ic&p)>>2]|0)+1;ie=715;break}case 105:{T=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;u=c[(T&p)>>2]|0;c[(Ed&p)>>2]=0;u=Hm(u,Ed)|0;V=c[(Ed&p)>>2]|0;a[(T&n)+25>>0]=V;a[(T&n)+26>>0]=0;c[(T&p)+60>>2]=0;T=c[(s+(t*20|0)&p)+8>>2]|0;C=L;T=(T|0)>0&(V|0)!=0?T+-1|0:t;break}case 7:case 6:{if(!(c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0)){g=m;m=r;S=z;T=s;U=W;V=X;u=L;r=t;break d}else ie=765;break}case 5:{g=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;c[(Fd&p)>>2]=0;w=c[(g&p)+56>>2]|0;if(a[(w&n)+56>>0]|0){u=Wm(c[(w&p)+20>>2]|0,Fd)|0;ie=766;break e}u=w+36|0;v=c[(u&p)>>2]|0;V=v+4|0;c[(u&p)>>2]=c[(V&p)>>2];c[(V&p)>>2]=0;if(!((c[(w&p)+40>>2]|0)!=0|(v|0)==0))mg(le,v);c[(Fd&p)>>2]=(c[(u&p)>>2]|0)==0&1;u=0;ie=766;break}case 9:case 8:{ie=765;break}case 110:case 109:{A=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;S=c[(s+(t*20|0)&p)+8>>2]|0;u=c[(A&p)>>2]|0;C=s+(t*20|0)+3|0;if(a[(C&n)>>0]&1)c[(ub&p)>>2]=(c[(ub&p)>>2]|0)+1;if((b[(z+(S*40|0)&o)+8>>1]&16384)!=0?(Ud=Rg(z+(S*40|0)|0)|0,(Ud|0)!=0):0){g=m;m=r;s=Ud;u=x;ie=1309;break c}H=c[(A&p)+56>>2]|0;T=z+(S*40|0)+12|0;P=c[(T&p)>>2]|0;if(!H){if(!(a[(C&n)>>0]&16))g=0;else g=c[(A&p)+12>>2]|0;u=Im(u,c[(z+(S*40|0)&p)+16>>2]|0,P,((P|0)<0)<<31>>31,10360,0,0,c[(s+(t*20|0)&p)+12>>2]|0,g)|0;c[(A&p)+60>>2]=0;C=L;T=t;break e}C=P;g=((P|0)<0)<<31>>31;A=0;do{A=A+1|0;C=mw(C|0,g|0,7)|0;g=G}while(((C|0)!=0|(g|0)!=0)&(A|0)<9);K=P+8|0;I=A+P|0;M=H+4|0;A=c[(M&p)>>2]|0;do if(!A)u=0;else{if(!(c[(H&p)+40>>2]|0)){C=H+44|0;V=c[(C&p)>>2]|0;if((V|0)<=(A|0)?!((c[2265]|0)!=0?(V|0)>(c[(H&p)>>2]|0):0):0){u=0;break}}else{V=c[(H&p)+48>>2]|0;if(!((V|0)!=0&(V+K|0)>(A|0))){u=0;break}C=H+44|0}u=Om(H)|0;c[(C&p)>>2]=0;c[(H&p)+48>>2]=0}while(0);C=H+36|0;J=H+44|0;c[(J&p)>>2]=(c[(J&p)>>2]|0)+I;J=H+8|0;if((I|0)>(c[(J&p)>>2]|0))c[(J&p)>>2]=I;E=H+40|0;J=c[(E&p)>>2]|0;if(!J){g=qg(K,((K|0)<0)<<31>>31)|0;if(!g){g=m;m=r;s=7;u=x;ie=1309;break c}c[(g&p)+4>>2]=c[(C&p)>>2]}else{g=H+48|0;I=c[(g&p)>>2]|0;K=I+K|0;F=H+52|0;H=c[(F&p)>>2]|0;if((K|0)>(H|0)){I=H;do I=I<<1;while((I|0)<(K|0));V=c[(M&p)>>2]|0;I=(I|0)>(V|0)?V:I;I=(I|0)<(K|0)?K:I;J=rg(J,I,((I|0)<0)<<31>>31)|0;if(!J){g=m;m=r;s=7;u=x;ie=1309;break c}A=J+((c[(C&p)>>2]|0)-(c[(E&p)>>2]|0))|0;c[(C&p)>>2]=A;c[(E&p)>>2]=J;c[(F&p)>>2]=I;I=c[(g&p)>>2]|0}else A=c[(C&p)>>2]|0;c[(g&p)>>2]=I+(P+15&-8);c[(J+I&p)+4>>2]=A-J;g=J+I|0}kw(g+8|0,c[(z+(S*40|0)&p)+16>>2]|0,c[(T&p)>>2]|0)|0;c[(g&p)>>2]=c[(T&p)>>2];c[(C&p)>>2]=g;C=L;T=t;break}case 112:{g=m;m=r;r=t;ie=801;break d}case 111:{v=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;g=c[(v&p)>>2]|0;c[(yd&p)>>2]=c[(v&p)+8>>2];b[(kc&o)>>1]=c[(s+(t*20|0)&p)+12>>2];a[(nc&n)>>0]=0;c[(oc&p)>>2]=z+((c[(s+(t*20|0)&p)+8>>2]|0)*40|0);u=Cm(g,yd,0,0,0,Gd)|0;if(!(c[(Gd&p)>>2]|u))u=Jm(g)|0;c[(v&p)+60>>2]=0;C=L;T=t;break}case 116:case 115:case 114:case 113:{u=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;c[(zd&p)>>2]=c[(u&p)+8>>2];b[(xc&o)>>1]=c[(s+(t*20|0)&p)+16>>2];a[(Y&n)>>0]=((J&255)<115)<<31>>31;c[(Z&p)>>2]=z+((c[(s+(t*20|0)&p)+12>>2]|0)*40|0);V=Sd;c[(V&p)>>2]=0;c[(V&p)+4>>2]=0;km(c[(u&p)>>2]|0,Sd);V=Sd;g=c[(V&p)>>2]|0;V=jw(g|0,c[(V&p)+4>>2]|0,-1,-1)|0;U=G;if(!(U>>>0>0|(U|0)==0&V>>>0>2147483646)){b[(_&o)>>1]=0;c[($&p)>>2]=le;c[(aa&p)>>2]=0;g=nm(c[(u&p)>>2]|0,0,g,1,qd)|0;if(!g){u=Km(c[(ea&p)>>2]|0,c[(ga&p)>>2]|0,zd,0)|0;if((b[(_&o)>>1]&9312)==0&(c[(aa&p)>>2]|0)==0)g=0;else{Qg(qd);g=0}}else u=0}else{c[(ke&p)>>2]=68730;c[(ke&p)+4>>2]=10788;bd(11,13600,ke);g=11;u=0}if((((a[(C&n)>>0]&1)==0?u+1|0:0-u|0)|0)>0){C=L;T=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;u=g}else{C=L;T=t;u=g}break}case 117:{O=L+8|0;b[(O&o)>>1]=1;if((c[(Zb&p)>>2]|0)>((c[(ha&p)>>2]|0)+1|0)){g=m;m=r;u=x;ie=832;break c}N=c[(s+(t*20|0)&p)+12>>2]|0;M=c[((c[(Xd&p)>>2]|0)+(N<<4)&p)+4>>2]|0;P=s+(t*20|0)+4|0;I=c[(P&p)>>2]|0;C=M+4|0;K=c[(C&p)>>2]|0;c[(K&p)+4>>2]=c[(M&p)>>2];c[(ke&p)>>2]=0;do if(!(c[(K&p)+8>>2]|0)){u=dl(K,I,ke,0)|0;if(!u){u=Xm(M,I,0)|0;if(u){g=c[(ke&p)>>2]|0;if(!g){A=0;break}Bg(c[(g&p)+68>>2]|0);A=0;break}if(I>>>0<=1){g=c[(ke&p)>>2]|0;pl(g,9);if(!g){u=0;A=0;break}Bg(c[(g&p)+68>>2]|0);u=0;A=0;break}if(!(a[(K&n)+17>>0]|0)){g=c[(ke&p)>>2]|0;u=Ym(c[(g&p)+52>>2]|0,g,c[(g&p)+72>>2]|0)|0;if(!g){A=0;break}Bg(c[(g&p)+68>>2]|0);A=0;break}J=c[(C&p)>>2]|0;c[(J&p)+4>>2]=c[(M&p)>>2];J=c[((c[(J&p)+12>>2]|0)&p)+56>>2]|0;J=d[(J&n)+53>>0]<<16|d[(J&n)+52>>0]<<24|d[(J&n)+54>>0]<<8|d[(J&n)+55>>0];C=c[(ke&p)>>2]|0;if((J|0)==(I|0)){u=Ym(c[(C&p)+52>>2]|0,C,c[(C&p)+72>>2]|0)|0;if(C)Bg(c[(C&p)+68>>2]|0);if(!u)A=0;else{A=0;break}}else{if(C)Bg(c[(C&p)+68>>2]|0);u=dl(K,J,Sd,0)|0;if(u){A=0;break}C=c[(Sd&p)>>2]|0;u=Zm(K,C,1,0,I,0)|0;if(C)Bg(c[(C&p)+68>>2]|0);if(u){A=0;break}c[(Sd&p)>>2]=0;u=dl(K,J,Sd,0)|0;C=c[(Sd&p)>>2]|0;if(u){if(!C){A=0;break}}else u=Ym(c[(C&p)+52>>2]|0,C,c[(C&p)+72>>2]|0)|0;Bg(c[(C&p)+68>>2]|0);if(!u)A=J;else{A=0;break}}H=((c[2514]|0)>>>0)/((c[(K&p)+32>>2]|0)>>>0)|0;F=H+1|0;I=K+36|0;while(1){C=J+-1|0;if((C|0)==(F|0)){J=C;continue}if(C>>>0<2)E=0;else{E=J+-3|0;E=E-((E>>>0)%(((((c[(I&p)>>2]|0)>>>0)/5|0)+1|0)>>>0)|0)|0;E=((E+1|0)==(H|0)?3:2)+E|0}if((E|0)==(C|0))J=C;else break}u=Dg(M,4,C)|0}else A=0}else{u=262;A=0}while(0);b[(O&o)>>1]=4;V=L;c[(V&p)>>2]=A;c[(V&p)+4>>2]=((A|0)<0)<<31>>31;if((u|0)==0&(A|0)!=0){g=m;K=N;C=P;m=r;u=L;r=t;ie=865;break d}else{C=L;T=t}break}case 118:{c[(jd&p)>>2]=0;g=s+(t*20|0)+12|0;u=Xm(c[((c[(Xd&p)>>2]|0)+(c[(s+(t*20|0)&p)+8>>2]<<4)&p)+4>>2]|0,c[(s+(t*20|0)&p)+4>>2]|0,(c[(g&p)>>2]|0)!=0?jd:0)|0;g=c[(g&p)>>2]|0;if((g|0)!=0?(Ic=c[(jd&p)>>2]|0,c[(ub&p)>>2]=(c[(ub&p)>>2]|0)+Ic,(g|0)>0):0){C=z+(g*40|0)|0;T=C;T=jw(c[(T&p)>>2]|0,c[(T&p)+4>>2]|0,Ic|0,((Ic|0)<0)<<31>>31|0)|0;c[(C&p)>>2]=T;c[(C&p)+4>>2]=G;C=L;T=t}else{C=L;T=t}break}case 121:case 120:{c[(vd&p)>>2]=0;u=Am(c[((c[(Xd&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<4)&p)+4>>2]|0,vd,J<<24>>24==121?1:2)|0;T=c[(vd&p)>>2]|0;C=L;c[(C&p)>>2]=T;c[(C&p)+4>>2]=((T|0)<0)<<31>>31;C=L;T=t;break}case 119:{g=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;u=c[(g&p)+56>>2]|0;if(u){g=m;m=r;J=L;r=t;ie=878;break d}u=c[(g&p)>>2]|0;C=L;T=t;u=Xm(c[(u&p)>>2]|0,c[(u&p)+60>>2]|0,0)|0;break}case 123:{C=L;T=t;u=an(le,c[(s+(t*20|0)&p)+4>>2]|0)|0;break}case 124:{g=m;m=r;u=L;r=t;ie=886;break d}case 122:{g=m;m=r;J=L;r=t;ie=881;break d}case 126:{g=m;m=r;u=L;r=t;ie=895;break d}case 125:{g=m;m=r;J=L;r=t;ie=887;break d}case 127:{g=m;m=r;u=L;ie=903;break d}case 128:{g=m;m=r;J=L;ie=947;break d}case 129:{w=c[(s+(t*20|0)&p)+4>>2]|0;v=z+(w*40|0)|0;w=z+(w*40|0)+8|0;g=b[(w&o)>>1]|0;do if(g&32){E=c[(v&p)>>2]|0;u=E+26|0;g=b[(u&o)>>1]|0;if(!(g&2)){if(!(g&1)){g=E+8|0;c[(g&p)>>2]=kn(c[(g&p)>>2]|0)|0;g=b[(u&o)>>1]|0}b[(u&o)>>1]=g&65535|2}C=E+8|0;A=c[(C&p)>>2]|0;if(!A){g=b[(w&o)>>1]|0;break}w=A;v=c[(w&p)>>2]|0;w=c[(w&p)+4>>2]|0;V=c[(A&p)+8>>2]|0;c[(C&p)>>2]=V;if(!V)Zk(E);u=c[(s+(t*20|0)&p)+12>>2]|0;g=z+(u*40|0)|0;u=z+(u*40|0)+8|0;if(!(b[(u&o)>>1]&9312)){ie=g;c[(ie&p)>>2]=v;c[(ie&p)+4>>2]=w;b[(u&o)>>1]=4;u=0;ie=19;break e}else{Zg(g,v,w);u=0;ie=19;break e}}while(0);if(!(g&9312))b[(w&o)>>1]=1;else vg(v);t=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;u=0;ie=19;break}case 130:{g=m;m=r;u=L;ie=966;break d}case 131:{g=m;m=r;u=L;r=t;ie=993;break d}case 132:{g=m;m=r;u=L;r=t;ie=1009;break d}case 134:{g=m;m=r;J=L;r=t;ie=1010;break d}case 135:{g=m;m=r;u=L;r=t;ie=1015;break d}case 136:{g=m;m=r;r=t;ie=1022;break d}case 137:{g=m;m=r;u=L;r=t;ie=1028;break d}case 138:{g=m;m=r;u=L;r=t;ie=1030;break d}case 139:{g=m;m=r;J=L;r=t;ie=1032;break d}case 140:{g=m;m=r;u=L;r=t;ie=1034;break d}case 141:{g=m;m=r;u=L;r=t;ie=1036;break d}case 10:{V=a[(s+(t*20|0)&n)+3>>0]|0;g=V&255;u=c[(Bb&p)>>2]|0;if(V<<24>>24){v=0;w=z+((c[(s+(t*20|0)&p)+8>>2]|0)*40|0)|0;while(1){c[(u+(v<<2)&p)>>2]=w;v=v+1|0;if((v|0)>=(g|0))break;else w=w+40|0}}V=c[(s+(t*20|0)&p)+16>>2]|0;c[(Ga&p)>>2]=V;U=c[(s+(t*20|0)&p)+12>>2]|0;c[(Ha&p)>>2]=z+(U*40|0);U=z+(U*40|0)+12|0;c[(U&p)>>2]=(c[(U&p)>>2]|0)+1;b[(Ia&o)>>1]=1;c[(Ja&p)>>2]=le;c[(Ka&p)>>2]=0;c[(Vc&p)>>2]=Md;c[(La&p)>>2]=0;c[(Ma&p)>>2]=f;c[(Na&p)>>2]=t;a[(Oa&n)>>0]=0;mc[c[(V&p)+16>>2]&63](Vc,g,u);if(!(c[(La&p)>>2]|0))u=0;else{c[(ke&p)>>2]=Sg(Md,1)|0;dh(je,le,10344,ke);u=c[(La&p)>>2]|0}do if((a[(Oa&n)>>0]|0)!=0?(Mc=c[(s+((t+-1|0)*20|0)&p)+4>>2]|0,(Mc|0)!=0):0){g=z+(Mc*40|0)|0;v=z+(Mc*40|0)+8|0;if(!(b[(v&o)>>1]&9312)){V=g;c[(V&p)>>2]=1;c[(V&p)+4>>2]=0;b[(v&o)>>1]=4;break}else{Zg(g,1,0);break}}while(0);if((b[(Ia&o)>>1]&9312)==0&(c[(Ka&p)>>2]|0)==0){C=L;T=t}else{Qg(Md);C=L;T=t}break}case 11:{c[(Rc&p)>>2]=0;c[(Pa&p)>>2]=-1;c[(Qa&p)>>2]=-1;g=Wh(le,c[(s+(t*20|0)&p)+4>>2]|0,c[(s+(t*20|0)&p)+8>>2]|0,Qa,Pa)|0;if((g|0)==5){c[(Rc&p)>>2]=1;g=0}v=0;w=z+((c[(s+(t*20|0)&p)+12>>2]|0)*40|0)|0;while(1){C=c[(Rc+(v<<2)&p)>>2]|0;A=((C|0)<0)<<31>>31;u=w+8|0;if(!(b[(u&o)>>1]&9312)){V=w;c[(V&p)>>2]=C;c[(V&p)+4>>2]=A;b[(u&o)>>1]=4}else Zg(w,C,A);v=v+1|0;if((v|0)==3){C=L;T=t;u=g;break}else w=w+40|0}break}case 142:{C=c[(s+(t*20|0)&p)+4>>2]|0;v=z+(C*40|0)|0;u=Yk(v,c[(s+(t*20|0)&p)+16>>2]|0)|0;if(u){c[(ke&p)>>2]=Sg(v,1)|0;dh(je,le,10344,ke)}Yl(v,xb)|0;w=e[(z+(C*40|0)&o)+8>>1]|0;if(w&18){g=c[(z+(C*40|0)&p)+12>>2]|0;if(w&16384)g=(c[(v&p)>>2]|0)+g|0;if((g|0)>(c[((c[(z+(C*40|0)&p)+32>>2]|0)&p)+88>>2]|0)){g=m;m=r;u=x;ie=1316;break c}else{C=L;T=t}}else{C=L;T=t}break}case 12:{g=c[(s+(t*20|0)&p)+12>>2]|0;L=c[((c[(Xd&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<4)&p)+4>>2]|0;I=c[(c[(L&p)+4>>2]&p)>>2]|0;J=a[(I&n)+5>>0]|0;H=J&255;g=(g|0)==-1?H:g;do if((d[(I&n)+16>>0]|0)>2)g=H;else if((c[(c[(I&p)+64>>2]&p)>>2]|0)!=0?(V=I+72|0,U=c[(V&p)+4>>2]|0,(U|0)>0|(U|0)==0&(c[(V&p)>>2]|0)>>>0>0):0){g=H;break}while(0);if(!(a[(I&n)+15>>0]|0))A=c[(I&p)+168>>2]|0;else A=10360;K=(g|0)==5;if(K)if(A){C=A;while(1)if(!(a[(C&n)>>0]|0))break;else C=C+1|0;if(C-A&1073741823){C=c[(c[(I&p)+60>>2]&p)>>2]|0;if(!(a[(I&n)+4>>0]|0))if((c[(C&p)>>2]|0)>1?!((c[(C&p)+52>>2]|0)==0|(g|0)==(H|0)):0)ie=1077;else{g=H;u=0}else ie=1076}else{g=H;u=0}}else{g=H;u=0}else ie=1076;if((ie|0)==1076){ie=0;if((g|0)==(H|0)){g=H;u=0}else ie=1077}do if((ie|0)==1077){ie=0;C=J<<24>>24==5;if(C|K){if(!(a[(ee&n)>>0]|0)){g=m;s=K;m=r;u=x;ie=1080;break c}if((c[(Zb&p)>>2]|0)>1){g=m;s=K;m=r;u=x;ie=1080;break c}if(!C){if(J<<24>>24==4)sn(I,2)|0}else{J=I+208|0;if(!(c[(J&p)>>2]|0)){c[(_c&p)>>2]=0;u=fl(I,1)|0;if(u)break;u=c[(I&p)>>2]|0;u=pc[c[(u&p)+32>>2]&31](u,c[(I&p)+212>>2]|0,0,_c)|0;if((u|0)==0&(c[(_c&p)>>2]|0)!=0)u=pn(I)|0;if(u)break;if(c[(J&p)>>2]|0)ie=1088}else ie=1088;if((ie|0)==1088){ie=0;u=qn(I)|0;if(u)break;u=rn(c[(J&p)>>2]|0,d[(I&n)+9>>0]|0,c[(I&p)+152>>2]|0,c[(I&p)+200>>2]|0)|0;c[(J&p)>>2]=0;if(u)break}sn(I,g)|0}u=Fg(L,K?2:1)|0}else u=0}while(0);g=sn(I,(u|0)==0?g:H)|0;C=c[(s+(t*20|0)&p)+8>>2]|0;J=z+(C*40|0)|0;b[(z+(C*40|0)&o)+8>>1]=2562;if((g|0)==6){c[(z+(C*40|0)&p)+16>>2]=0;g=0}else{v=c[(g<<2&p)+32216>>2]|0;c[(z+(C*40|0)&p)+16>>2]=v;g=v;while(1)if(!(a[(g&n)>>0]|0))break;else g=g+1|0;g=g-v&1073741823}c[(z+(C*40|0)&p)+12>>2]=g;a[(z+(C*40|0)&n)+10>>0]=1;Yl(J,xb)|0;C=J;T=t;break}case 13:{if(!(a[(ee&n)>>0]|0)){g=m;m=r;u=x;ie=1101;break c}if((c[(Ra&p)>>2]|0)>1){g=m;m=r;u=x;ie=1103;break c}S=c[(Tb&p)>>2]|0;N=c[(vb&p)>>2]|0;w=c[(wb&p)>>2]|0;v=c[(Sa&p)>>2]|0;c[(Tb&p)>>2]=S&-2762753|2107392;c[(Sa&p)>>2]=0;g=c[((c[(Xd&p)>>2]|0)&p)+4>>2]|0;P=g+4|0;I=a[((c[(c[(P&p)>>2]&p)>>2]|0)&n)+15>>0]|0;V=c[(Ub&p)>>2]|0;u=tn(le,je,(a[(_b&n)>>0]|0)==2?42432:42464)|0;J=c[(Ub&p)>>2]|0;if((J|0)>(V|0))M=(c[(Xd&p)>>2]|0)+(J+-1<<4)|0;else M=0;i:do if(!u){O=c[((c[(Xd&p)>>2]|0)+(J+-1<<4)&p)+4>>2]|0;un(O)|0;T=c[(P&p)>>2]|0;c[(T&p)+4>>2]=c[(g&p)>>2];T=(c[(T&p)+32>>2]|0)-(c[(T&p)+36>>2]|0)|0;u=tn(le,je,42488)|0;if(!u){u=tn(le,je,42528)|0;if(!u){u=yg(g,2)|0;if(!u){J=c[(P&p)>>2]|0;if((a[((c[(J&p)>>2]|0)&n)+5>>0]|0)==5)c[(Ta&p)>>2]=0;if(!(xg(O,c[(J&p)+32>>2]|0,T,0)|0)){if(I<<24>>24==0?(xg(O,c[(Ta&p)>>2]|0,T,0)|0)!=0:0){u=7;break}if(a[(ge&n)>>0]|0){u=7;break}J=a[(Ua&n)>>0]|0;do if(J<<24>>24>-1)J=J<<24>>24;else{J=c[(P&p)>>2]|0;c[(J&p)+4>>2]=c[(g&p)>>2];if(!(a[(J&n)+17>>0]|0)){J=0;break}J=(a[(J&n)+18>>0]|0)==0?1:2}while(0);vn(O,J)|0;u=wn(le,je,42536)|0;if(u)break;u=wn(le,je,42688)|0;if(u)break;u=wn(le,je,42792)|0;if(u)break;u=wn(le,je,42912)|0;if(u)break;u=wn(le,je,43112)|0;if(u)break;u=wn(le,je,43232)|0;if(u)break;u=tn(le,je,43392)|0;if(!u)J=0;else break;do{u=d[(J&n)+43576>>0]|0;wm(g,u,ad);u=Dg(O,u,(d[((J|1)&n)+43576>>0]|0)+(c[(ad&p)>>2]|0)|0)|0;J=J+2|0;if(u)break i}while((J|0)<10);H=c[(P&p)>>2]|0;c[(H&p)+4>>2]=c[(g&p)>>2];J=c[(O&p)>>2]|0;K=O+4|0;I=c[(K&p)>>2]|0;c[(I&p)+4>>2]=J;H=c[((c[(H&p)>>2]|0)&p)+60>>2]|0;F=c[(H&p)>>2]|0;if(F){V=c[(I&p)+32>>2]|0;V=sw(c[(I&p)+44>>2]|0,0,V|0,((V|0)<0)<<31>>31|0)|0;u=id;c[(u&p)>>2]=V;c[(u&p)+4>>2]=G;u=ac[c[(F&p)+40>>2]&63](H,11,id)|0;u=(u|0)==12?0:u;if(u)break;J=c[(O&p)>>2]|0}U=Tc+0|0;V=U+48|0;do{c[(U&p)>>2]=0;U=U+4|0}while((U|0)<(V|0));c[(Va&p)>>2]=J;c[(Wa&p)>>2]=O;c[(Xa&p)>>2]=g;c[(Ya&p)>>2]=1;gd(Tc,2147483647)|0;u=hd(Tc)|0;if(u){C=c[(c[((c[(Xa&p)>>2]|0)&p)+4>>2]&p)>>2]|0;if(a[(C&n)+15>>0]|0)break;if(a[(C&n)+12>>0]|0)break;xn(C);break}u=(c[(P&p)>>2]|0)+22|0;b[(u&o)>>1]=e[(u&o)>>1]&65533;u=un(O)|0;if(u)break;J=c[(K&p)>>2]|0;c[(J&p)+4>>2]=c[(O&p)>>2];if(!(a[(J&n)+17>>0]|0))E=0;else E=(a[(J&n)+18>>0]|0)==0?1:2;vn(g,E)|0;u=xg(g,c[((c[(K&p)>>2]|0)&p)+32>>2]|0,T,1)|0}else u=7}}}}while(0);c[(Tb&p)>>2]=S;c[(vb&p)>>2]=N;c[(wb&p)>>2]=w;c[(Sa&p)>>2]=v;xg(g,-1,-1,1)|0;a[(ee&n)>>0]=1;if(M){V=M+4|0;Ml(c[(V&p)>>2]|0);c[(V&p)>>2]=0;c[(M&p)+12>>2]=0}Eg(le);C=L;T=t;break}case 143:{V=c[((c[(Xd&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<4)&p)+4>>2]|0;I=c[(V&p)+4>>2]|0;c[(I&p)+4>>2]=c[(V&p)>>2];if(!(a[(I&n)+17>>0]|0)){g=m;m=r;u=L;ie=1157;break d}E=I+44|0;H=c[(E&p)>>2]|0;A=I+12|0;C=c[((c[(A&p)>>2]|0)&p)+56>>2]|0;C=d[(C&n)+37>>0]<<16|d[(C&n)+36>>0]<<24|d[(C&n)+38>>0]<<8|d[(C&n)+39>>0];F=El(I,H,C)|0;if(H>>>0>>0){g=m;m=r;u=x;ie=1145;break c}if(!C){g=m;m=r;u=L;ie=1157;break d}J=I+8|0;g=c[(J&p)>>2]|0;do if(g){C=g;do{if(C){ie=1150;break}C=c[2]|0}while((C|0)!=0);if((ie|0)==1150){ie=0;u=Fl(C,0,0)|0;if(u)break;g=c[(J&p)>>2]|0}if(g){do{V=g+72|0;a[(V&n)>>0]=d[(V&n)>>0]&251;g=c[(g&p)+8>>2]|0}while((g|0)!=0);ie=1154}else ie=1154}else ie=1154;while(0);if((ie|0)==1154){ie=0;u=Gl(I,F,H,0)|0;if(!u){u=Gg(c[((c[(A&p)>>2]|0)&p)+68>>2]|0)|0;V=c[((c[(A&p)>>2]|0)&p)+56>>2]|0;U=c[(E&p)>>2]|0;a[(V&n)+28>>0]=U>>>24;a[(V&n)+29>>0]=U>>>16;a[(V&n)+30>>0]=U>>>8;a[(V&n)+31>>0]=U}}if((u|0)==101){g=m;m=r;u=L;ie=1157;break d}else{C=L;T=t}break}case 145:{g=c[(s+(t*20|0)&p)+12>>2]|0;if((g&255|0)==0?(c[(Tb&p)>>2]&16384|0)!=0:0){g=m;m=r;S=z;T=s;U=W;V=X;u=L;r=t;break d}C=c[((c[(Xd&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<4)&p)+4>>2]|0;A=c[(s+(t*20|0)&p)+8>>2]|0;if(!(a[(C&n)+9>>0]|0)){g=m;m=r;S=z;T=s;U=W;V=X;u=L;r=t;break d}v=g+1&255;w=C+4|0;c[((c[(w&p)>>2]|0)&p)+4>>2]=c[(C&p)>>2];u=bl(C,A,v)|0;if(!u){g=m;m=r;u=L;r=t;ie=1166;break d}if((u&255|0)!=6){g=m;m=r;s=u;u=x;ie=1309;break c}c[(ke&p)>>2]=c[(s+(t*20|0)&p)+16>>2];dh(je,le,42224,ke);C=L;T=t;break}case 144:{g=m;m=r;u=L;r=t;ie=1158;break d}case 146:{J=c[(s+(t*20|0)&p)+16>>2]|0;v=c[(Za&p)>>2]|0;u=(v|0)>0;if(u?(c[(_a&p)>>2]|0)==0:0){u=6;ie=1188}else ie=1179;j:do if((ie|0)==1179){ie=0;if(!J){g=m;m=r;S=z;T=s;U=W;V=X;u=L;r=t;break d}g=J+8|0;w=(c[(c[(g&p)>>2]&p)>>2]|0)+56|0;if(c[(w&p)>>2]|0){if(u){C=c[(_a&p)>>2]|0;A=0;do{if((c[(C+(A<<2)&p)>>2]|0)==(J|0)){u=0;ie=1188;break j}A=A+1|0}while((A|0)<(v|0))}u=yn(le)|0;if(!u){u=lc[c[(w&p)>>2]&127](c[(g&p)>>2]|0)|0;if(!u){u=c[(Za&p)>>2]|0;c[(Za&p)>>2]=u+1;c[((c[(_a&p)>>2]|0)+(u<<2)&p)>>2]=J;u=J+12|0;c[(u&p)>>2]=(c[(u&p)>>2]|0)+1;u=0}}else ie=1188}else u=0}while(0);if((ie|0)==1188){ie=0;if(!J){C=L;T=t;break e}g=J+8|0}Mm(f,c[(g&p)>>2]|0);C=L;T=t;break}case 147:{U=Kd+0|0;V=U+40|0;do{c[(U&p)>>2]=0;U=U+4|0}while((U|0)<(V|0));c[($a&p)>>2]=le;g=_g(Kd,z+((c[(s+(t*20|0)&p)+8>>2]|0)*40|0)|0)|0;u=Sg(Kd,1)|0;k:do if(u){v=_h(le,u,c[((c[(Xd&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<4)&p)>>2]|0)|0;g=c[(c[(v&p)+56>>2]&p)>>2]|0;u=bn(cb,g,Xc)|0;if((u|0)!=0?(Oc=c[(u&p)+8>>2]|0,(Oc|0)!=0):0){g=zn(le,v,Oc,c[((c[(Oc&p)>>2]|0)&p)+4>>2]|0,je)|0;if(g)break;u=v+60|0;g=c[(u&p)>>2]|0;if(!g){g=0;break}while(1){if((c[(g&p)>>2]|0)==(le|0))break;g=c[(g&p)+24>>2]|0;if(!g){g=0;break k}}g=yn(le)|0;if(g)break;g=c[(u&p)>>2]|0;l:do if(!g)g=0;else while(1){if((c[(g&p)>>2]|0)==(le|0))break l;g=c[(g&p)+24>>2]|0;if(!g){g=0;break}}while(0);V=c[(Za&p)>>2]|0;c[(Za&p)>>2]=V+1;c[((c[(_a&p)>>2]|0)+(V<<2)&p)>>2]=g;g=g+12|0;c[(g&p)>>2]=(c[(g&p)>>2]|0)+1;g=0;break}c[(ke&p)>>2]=g;c[(je&p)>>2]=uh(le,28320,ke)|0;g=1}while(0);if((b[(ab&o)>>1]&9312)==0&(c[(bb&p)>>2]|0)==0){C=L;T=t;u=g}else{Qg(Kd);C=L;T=t;u=g}break}case 148:{c[(ha&p)>>2]=(c[(ha&p)>>2]|0)+1;g=_h(le,c[(s+(t*20|0)&p)+16>>2]|0,c[((c[(Xd&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<4)&p)>>2]|0)|0;m:do if((g|0)!=0?(Pc=g+60|0,Qc=c[(Pc&p)>>2]|0,(Qc|0)!=0):0){u=Qc;do{if((c[((c[(u&p)+8>>2]|0)&p)+4>>2]|0)>0){u=6;break m}u=c[(u&p)+24>>2]|0}while((u|0)!=0);g=Ok(le,g)|0;v=g+8|0;u=lc[c[((c[(c[(g&p)+4>>2]&p)>>2]|0)&p)+20>>2]&127](c[(v&p)>>2]|0)|0;if(!u){c[(v&p)>>2]=0;c[(Pc&p)>>2]=0;An(g);u=0}}else u=0;while(0);c[(ha&p)>>2]=(c[(ha&p)>>2]|0)+-1;C=L;T=t;break}case 149:{g=m;m=r;u=L;r=t;ie=1213;break d}case 150:{g=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;C=c[(s+(t*20|0)&p)+12>>2]|0;A=z+(C*40|0)|0;if(a[(g&n)+25>>0]|0){g=m;m=r;u=L;r=t;ie=1226;break d}V=g+32|0;u=c[(c[(V&p)>>2]&p)>>2]|0;U=c[(u&p)>>2]|0;c[(Id&p)>>2]=0;c[(Id&p)+4>>2]=0;c[(Id&p)+8>>2]=0;c[(Id&p)+12>>2]=0;c[(Id&p)+16>>2]=0;c[(Id&p)+20>>2]=0;c[(Id&p)+24>>2]=0;c[(Id&p)>>2]=A;v=z+(C*40|0)+8|0;b[(v&o)>>1]=e[(v&o)>>1]&48640|1;V=ac[c[(U&p)+44>>2]&63](c[(V&p)>>2]|0,Id,c[(s+(t*20|0)&p)+8>>2]|0)|0;Mm(f,u);u=c[(db&p)>>2]|0;u=(u|0)==0?V:u;Yl(A,xb)|0;v=e[(v&o)>>1]|0;if(v&18){g=c[(z+(C*40|0)&p)+12>>2]|0;if(v&16384)g=(c[(A&p)>>2]|0)+g|0;if((g|0)>(c[((c[(z+(C*40|0)&p)+32>>2]|0)&p)+88>>2]|0)){g=m;m=r;u=x;ie=1316;break c}else{C=L;T=t}}else{C=L;T=t}break}case 14:{A=c[(s+(t*20|0)&p)+12>>2]|0;C=A+1|0;F=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;J=c[(F&p)+32>>2]|0;I=c[(J&p)>>2]|0;H=c[(I&p)>>2]|0;E=c[(z+(C*40|0)&p)>>2]|0;A=c[(z+(A*40|0)&p)>>2]|0;g=c[(Bb&p)>>2]|0;if((E|0)>0){u=0;do{V=u;u=u+1|0;c[(g+(V<<2)&p)>>2]=z+((u+C|0)*40|0)}while((u|0)!=(E|0))}u=tc[c[(H&p)+32>>2]&31](J,A,c[(s+(t*20|0)&p)+16>>2]|0,E,g)|0;Mm(f,I);if((u|0)==0?(lc[c[(H&p)+40>>2]&127](J)|0)!=0:0)t=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;a[(F&n)+25>>0]=0;C=L;T=t;break}case 151:{g=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;if(a[(g&n)+25>>0]|0){g=m;m=r;S=z;T=s;U=W;V=X;u=L;r=t;break d}g=g+32|0;v=c[(g&p)>>2]|0;V=c[(v&p)>>2]|0;u=c[(V&p)>>2]|0;v=lc[c[(u&p)+36>>2]&127](v)|0;Mm(f,V);if((v|0)==0?(lc[c[(u&p)+40>>2]&127](c[(g&p)>>2]|0)|0)!=0:0){u=0;ie=19;break e}t=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;u=v;ie=19;break}case 15:{F=s+(t*20|0)+16|0;v=c[((c[(F&p)>>2]|0)&p)+8>>2]|0;if(!v){g=m;m=r;s=6;u=x;ie=1309;break c}g=c[(v&p)>>2]|0;if(!g){g=m;m=r;s=6;u=x;ie=1309;break c}I=c[(s+(t*20|0)&p)+8>>2]|0;E=g+52|0;C=c[(E&p)>>2]|0;if(!C){g=m;m=r;S=z;T=s;U=W;V=X;u=L;r=t;break d}H=a[(eb&n)>>0]|0;J=c[(Bb&p)>>2]|0;if((I|0)>0){C=0;A=z+((c[(s+(t*20|0)&p)+12>>2]|0)*40|0)|0;while(1){c[(J+(C<<2)&p)>>2]=A;C=C+1|0;if((C|0)==(I|0))break;else A=A+40|0}C=c[(E&p)>>2]|0}A=s+(t*20|0)+3|0;a[(eb&n)>>0]=a[(A&n)>>0]|0;u=pc[C&31](v,I,J,Hd)|0;a[(eb&n)>>0]=H;Mm(f,v);if(!u){if(c[(s+(t*20|0)&p)+4>>2]|0){l=Hd;r=c[(l&p)>>2]|0;l=c[(l&p)+4>>2]|0;V=ne;c[(V&p)>>2]=r;c[(V&p)+4>>2]=l}}else if((u&255|0)==19?(a[((c[(F&p)>>2]|0)&n)+16>>0]|0)!=0:0){g=a[(A&n)>>0]|0;if(g<<24>>24==5)g=2;else if(g<<24>>24==4){g=m;m=r;S=z;T=s;U=W;V=X;u=L;r=t;break d}a[(fe&n)>>0]=g;C=L;T=t;break e}c[(ub&p)>>2]=(c[(ub&p)>>2]|0)+1;C=L;T=t;break}case 152:{g=c[((c[(s+(t*20|0)&p)+16>>2]|0)&p)+8>>2]|0;u=c[(s+(t*20|0)&p)+4>>2]|0;v=z+(u*40|0)|0;if(((b[(z+(u*40|0)&o)+8>>1]&2)!=0?(a[(z+(u*40|0)&n)+10>>0]|0)!=1:0)?(Wd=Bn(v,1)|0,(Wd|0)!=0):0){g=m;m=r;s=Wd;u=x;ie=1309;break c}u=rc[c[((c[(g&p)>>2]|0)&p)+76>>2]&127](g,c[(z+(u*40|0)&p)+16>>2]|0)|0;Mm(f,g);b[(Yd&o)>>1]=b[(Yd&o)>>1]&-9;C=L;T=t;break}case 153:{g=m;m=r;u=L;r=t;ie=1257;break d}case 155:{g=m;m=r;ie=1264;break d}case 154:{g=m;m=r;J=L;r=t;ie=1258;break d}default:{g=m;m=r;S=z;T=s;U=W;V=X;u=L;r=t;break d}}while(0);n:do if((ie|0)==57){ie=0;w=L+8|0;b[(w&o)>>1]=2562;c[(L&p)+16>>2]=v;c[(L&p)+12>>2]=g;a[(L&n)+10>>0]=Jc;if((a[(s+(t*20|0)&n)+3>>0]|0)!=0?(V=z+((c[(s+(t*20|0)&p)+12>>2]|0)*40|0)|0,!((c[(V&p)>>2]|0)==0&(c[(V&p)+4>>2]|0)==0)):0){b[(w&o)>>1]=2576;C=L;T=t}else{C=L;T=t}}else if((ie|0)==536){if(b[(Yd&o)>>1]&8){g=m;m=r;s=516;u=x;ie=1309;break c}C=c[(s+(t*20|0)&p)+8>>2]|0;I=c[(s+(t*20|0)&p)+12>>2]|0;g=c[(Xd&p)>>2]|0;H=c[(g+(I<<4)&p)+4>>2]|0;if(J<<24>>24==55){g=a[((c[(g+(I<<4)&p)+12>>2]|0)&n)+76>>0]|0;if((g&255)<(d[(Mb&n)>>0]|0)){a[(Mb&n)>>0]=g;J=1}else J=1}else J=0;v=s+(t*20|0)+3|0;if(a[(v&n)>>0]&4){V=z+(C*40|0)|0;g=Vg(V)|0;c[(V&p)>>2]=g;c[(V&p)+4>>2]=G;V=z+(C*40|0)+8|0;b[(V&o)>>1]=e[(V&o)>>1]&48640|4;if((g|0)<2){g=m;m=r;s=x;ie=542;break c}else E=g}else E=C;u=s+(t*20|0)+1|0;C=a[(u&n)>>0]|0;if(C<<24>>24==-6){A=c[(s+(t*20|0)&p)+16>>2]|0;C=(e[(A&o)+8>>1]|0)+(e[(A&o)+6>>1]|0)|0}else if(C<<24>>24==-14){C=c[(s+(t*20|0)&p)+16>>2]|0;A=0}else{C=0;A=0}g=xm(f,c[(s+(t*20|0)&p)+4>>2]|0,C,I,1)|0;if(!g){y=ge;z=je;g=m;m=x;ie=1317;break a}a[(g&n)+25>>0]=1;V=g+27|0;a[(V&n)>>0]=a[(V&n)>>0]|8;c[(g&p)+28>>2]=E;ie=ym(H,E,J,A,c[(g&p)>>2]|0)|0;c[(g&p)+8>>2]=A;a[(V&n)>>0]=((a[(u&n)>>0]|0)!=-6&1)<<2&255|a[(V&n)>>0]&-5;u=ie;ie=548}else if((ie|0)==715){ie=0;M=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;V=c[(M&p)+56>>2]|0;do if(!V){u=c[(M&p)>>2]|0;g=qm(u)|0;if(!g)if(!(a[(u&n)+73>>0]|0)){v=1;g=0}else{v=0;g=Vm(u)|0}else v=1;a[(M&n)+26>>0]=0;c[(M&p)+60>>2]=0;a[(M&n)+25>>0]=v;if(!v){C=L;T=t;u=g;break n}}else{do if(!(a[(V&n)+56>>0]|0)){g=V+36|0;if(!(c[(g&p)>>2]|0)){g=0;ie=756}else{g=Nm(V+64|0,g)|0;ie=755}}else{g=Om(V)|0;if(!g){U=V+59|0;o:do if(!(a[(U&n)>>0]|0)){u=0;g=0}else{w=0;v=0;p:while(1){T=V+(w<<6)+64|0;c[(ke&p)>>2]=0;S=V+(w<<6)+92|0;C=c[(S&p)>>2]|0;J=((C|0)<0)<<31>>31;do if((C|0)>16){I=16;H=0;E=0;while(1){I=iw(I|0,H|0,4)|0;H=G;F=E+1|0;if(!((H|0)<(J|0)|(H|0)==(J|0)&I>>>0>>0)){H=E;break}else E=F}P=Sd;c[(P&p)>>2]=0;c[(P&p)+4>>2]=0;if((C|0)<17){ie=726;break}u=Qm(16)|0;c[(ke&p)>>2]=u;J=(u|0)==0;I=c[(S&p)>>2]|0;if(!((I|0)>0&(J^1))){g=J?7:0;break}N=(H|0)>0;P=0;O=0;do{c[(qd&p)>>2]=0;g=I-P|0;g=Pm(T,(g|0)<16?g:16,Sd,qd)|0;if(g){ie=747;break p}g=Rm(T,c[(qd&p)>>2]|0,pd)|0;do if(N){I=1;J=1;do{J=J<<4;I=I+1|0}while((I|0)!=(F|0));if(!g){H=1;I=u}else{J=c[(pd&p)>>2]|0;ie=743;break}while(1){K=(c[(I&p)+12>>2]|0)+((((O|0)/(J|0)|0|0)%16|0)*56|0)+48|0;I=c[(K&p)>>2]|0;if(!I){I=Qm(16)|0;if(!I){g=7;ie=738;break}g=Rm(T,I,K)|0;if(g){ie=738;break}I=c[(K&p)>>2]|0}I=c[(I&p)+4>>2]|0;H=H+1|0;if((H|0)>=(F|0)){ie=740;break}else J=(J|0)/16|0}if((ie|0)==738){J=c[(pd&p)>>2]|0;ie=743;break}else if((ie|0)==740){J=c[(pd&p)>>2]|0;ie=742;break}}else{J=c[(pd&p)>>2]|0;if(!g){I=u;ie=742}else ie=743}while(0);if((ie|0)==742){ie=0;c[((c[(I&p)+12>>2]|0)+(((O|0)%16|0)*56|0)&p)+48>>2]=J;g=0}else if((ie|0)==743){ie=0;Sm(J)}O=O+1|0;P=P+16|0;I=c[(S&p)>>2]|0}while((P|0)<(I|0)&(g|0)==0)}else{ie=Sd;c[(ie&p)>>2]=0;c[(ie&p)+4>>2]=0;ie=726}while(0);if((ie|0)==726){ie=0;g=Pm(T,C,Sd,ke)|0;u=c[(ke&p)>>2]|0}w=w+1|0;if(g){ie=746;break}if((w|0)>=(d[(U&n)>>0]|0)){g=0;break o}else v=u}if((ie|0)==746)Tm(u);else if((ie|0)==747)Tm(u);Tm(v);u=0}while(0);if(!g){g=Um(V+64|0,u)|0;c[(V&p)+20>>2]=u;if(!g){g=0;ie=755;break}else u=0}Tm(u);ie=755}else ie=756}while(0);if((ie|0)==755){ie=0;a[(M&n)+25>>0]=0;C=L;T=t;u=g;break n}else if((ie|0)==756){ie=0;a[(M&n)+25>>0]=1;break}}while(0);C=L;T=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;u=g}else if((ie|0)==765){u=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;c[(Fd&p)>>2]=c[(s+(t*20|0)&p)+12>>2];g=u;u=rc[c[(s+(t*20|0)&p)+16>>2]&127](c[(u&p)>>2]|0,Fd)|0;ie=766}while(0);do if((ie|0)==548){ie=0;a[((c[(g&p)>>2]|0)&n)+74>>0]=d[(v&n)>>0]&3;C=L;T=t}else if((ie|0)==766){c[(g&p)+60>>2]=0;g=g+25|0;if(!(c[(Fd&p)>>2]|0)){a[(g&n)>>0]=0;ie=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;t=f+(d[(s+(t*20|0)&n)+3>>0]<<2)+108|0;c[(t&p)>>2]=(c[(t&p)>>2]|0)+1;t=ie;ie=19;break}else{a[(g&n)>>0]=1;ie=19;break}}while(0);if((ie|0)==19){ie=0;if(c[(Cc&p)>>2]|0){u=je;g=m;m=x;break b}g=c[(be&p)>>2]|0;if(!((g|0)==0|m>>>0>>0)){y=c[(yc&p)>>2]|0;if(!(lc[g&127](c[(Zd&p)>>2]|0)|0)){y=y+m-((m>>>0)%(y>>>0)|0)|0;C=L;T=t}else{g=m;s=9;m=x;ie=1311;break a}}else{C=L;T=t}}t=T+1|0;if(!u){g=m;u=C}else{g=m;s=u;m=x;ie=1311;break a}}q:switch(ie|0){case 22:{ie=0;S=c[(s+(t*20|0)&p)+4>>2]|0;b[(z+(S*40|0)&o)+8>>1]=4;S=z+(S*40|0)|0;c[(S&p)>>2]=t;c[(S&p)+4>>2]=((t|0)<0)<<31>>31;S=z;T=s;U=W;V=X;r=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;break}case 23:{ie=0;S=c[(s+(t*20|0)&p)+4>>2]|0;r=c[(z+(S*40|0)&p)>>2]|0;b[(z+(S*40|0)&o)+8>>1]=128;S=z;T=s;U=W;V=X;break}case 24:{ie=0;r=c[(s+(t*20|0)&p)+4>>2]|0;u=z+(r*40|0)|0;T=(c[(s+(t*20|0)&p)+12>>2]|0)+-1|0;S=u;c[(S&p)>>2]=T;c[(S&p)+4>>2]=((T|0)<0)<<31>>31;b[(z+(r*40|0)&o)+8>>1]=4;r=c[(s+(t*20|0)&p)+8>>2]|0;S=z;T=s;U=W;V=X;r=(r|0)==0?t:r+-1|0;break}case 25:{ie=0;S=c[(s+(t*20|0)&p)+4>>2]|0;r=(c[(s+((c[(z+(S*40|0)&p)>>2]|0)*20|0)&p)+8>>2]|0)+-1|0;b[(z+(S*40|0)&o)+8>>1]=128;S=z;T=s;U=W;V=X;break}case 26:{ie=0;S=c[(s+(t*20|0)&p)+4>>2]|0;b[(z+(S*40|0)&o)+8>>1]=4;S=z+(S*40|0)|0;r=c[(S&p)>>2]|0;c[(S&p)>>2]=t;c[(S&p)+4>>2]=((t|0)<0)<<31>>31;S=z;T=s;U=W;V=X;break}case 27:{ie=0;if(!(b[(z+((c[(s+(r*20|0)&p)+12>>2]|0)*40|0)&o)+8>>1]&1)){S=z;T=s;U=W;V=X}else ie=28;break}case 44:{ie=0;T=c[(s+(r*20|0)&p)+4>>2]|0;S=u;c[(S&p)>>2]=T;c[(S&p)+4>>2]=((T|0)<0)<<31>>31;S=z;T=s;U=W;V=X;break}case 45:{ie=0;U=c[(s+(r*20|0)&p)+16>>2]|0;T=c[(U&p)+4>>2]|0;S=u;c[(S&p)>>2]=c[(U&p)>>2];c[(S&p)+4>>2]=T;S=z;T=s;U=W;V=X;break}case 46:{ie=0;b[(u&o)+8>>1]=8;h[(u&q)>>3]=+h[(c[(s+(r*20|0)&p)+16>>2]&q)>>3];S=z;T=s;U=W;V=X;break}case 60:{ie=0;J=(c[(s+(r*20|0)&p)+12>>2]|0)-(c[(s+(r*20|0)&p)+8>>2]|0)|0;t=(c[(s+(r*20|0)&p)+4>>2]|0)!=0?257:1;b[(u&o)+8>>1]=t;if((J|0)>0){w=J;A=u;do{v=A+48|0;A=A+40|0;if(!(b[(v&o)>>1]&9312))b[(v&o)>>1]=1;else vg(A);b[(v&o)>>1]=t;w=w+-1|0}while((w|0)>0);S=z;T=s;U=W;V=X;u=u+(J*40|0)|0}else{S=z;T=s;U=W;V=X}break}case 65:{ie=0;u=c[(s+(r*20|0)&p)+4>>2]|0;S=z+(u*40|0)+8|0;b[(S&o)>>1]=e[(S&o)>>1]&65406|1;S=z;T=s;U=W;V=X;u=z+(u*40|0)|0;break}case 66:{ie=0;Xg(u,c[(s+(r*20|0)&p)+16>>2]|0,c[(s+(r*20|0)&p)+4>>2]|0,0,0)|0;a[(u&n)+10>>0]=Jc;S=z;T=s;U=W;V=X;break}case 67:{ie=0;C=(c[(s+(r*20|0)&p)+4>>2]|0)+-1|0;A=c[(Ab&p)>>2]|0;w=A+(C*40|0)|0;v=e[(A+(C*40|0)&o)+8>>1]|0;if(v&18){t=c[(A+(C*40|0)&p)+12>>2]|0;if(v&16384)t=(c[(w&p)>>2]|0)+t|0;if((t|0)>(c[((c[(A+(C*40|0)&p)+32>>2]|0)&p)+88>>2]|0)){t=r;u=x;ie=1316;break c}}Zl(u,w,2048);S=z;T=s;U=W;V=X;break}case 72:{ie=0;t=c[(s+(r*20|0)&p)+12>>2]|0;v=c[(s+(r*20|0)&p)+8>>2]|0;J=t+v|0;u=z+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)|0;v=z+(v*40|0)|0;while(1){_l(v,u);t=t+-1|0;if(!t)break;else{u=u+40|0;v=v+40|0}}S=z;T=s;U=W;V=X;u=z+(J*40|0)|0;break}case 74:{ie=0;r=c[(s+(t*20|0)&p)+12>>2]|0;u=z+((c[(s+(t*20|0)&p)+4>>2]|0)*40|0)|0;J=z+((c[(s+(t*20|0)&p)+8>>2]|0)*40|0)|0;while(1){Zl(J,u,4096);if((b[(J&o)+8>>1]&4096)!=0?(Vl(J)|0)!=0:0){y=ge;z=je;r=m;m=x;ie=1317;break a}if(!r){S=z;T=s;U=W;V=X;u=J;r=t;break q}r=r+-1|0;u=u+40|0;J=J+40|0}}case 79:{ie=0;u=z+((c[(s+(r*20|0)&p)+8>>2]|0)*40|0)|0;Zl(u,z+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)|0,4096);S=z;T=s;U=W;V=X;break}case 94:{ie=0;K=c[(s+(t*20|0)&p)+4>>2]|0;J=z+(K*40|0)|0;L=c[(s+(t*20|0)&p)+8>>2]|0;I=z+(L*40|0)|0;M=c[(s+(t*20|0)&p)+12>>2]|0;u=z+(M*40|0)|0;H=z+(K*40|0)+8|0;E=b[(H&o)>>1]|0;F=z+(L*40|0)+8|0;C=b[(F&o)>>1]|0;if((C|E)&1){r=z+(M*40|0)+8|0;if(!(b[(r&o)>>1]&9312)){b[(r&o)>>1]=1;S=z;T=s;U=W;V=X;r=t;break}else{vg(u);S=z;T=s;U=W;V=X;r=t;break}}if(E&16384){if(Rg(J)|0){y=ge;z=je;r=m;m=x;ie=1317;break a}C=b[(F&o)>>1]|0}if((C&16384)!=0?(Rg(I)|0)!=0:0){y=ge;z=je;r=m;m=x;ie=1317;break a}if((b[(H&o)>>1]&18)==0?(bm(J,Jc,0)|0)!=0:0){y=ge;z=je;r=m;m=x;ie=1317;break a}if((b[(F&o)>>1]&18)==0?(bm(I,Jc,0)|0)!=0:0){y=ge;z=je;r=m;m=x;ie=1317;break a}E=z+(K*40|0)+12|0;A=z+(L*40|0)+12|0;r=(c[(A&p)>>2]|0)+(c[(E&p)>>2]|0)|0;if((r|0)>(c[(zb&p)>>2]|0)){u=x;ie=1316;break c}v=(M|0)==(L|0);if(eh(u,r+2|0,v&1)|0){y=ge;z=je;r=m;m=x;ie=1317;break a}w=z+(M*40|0)+8|0;b[(w&o)>>1]=e[(w&o)>>1]&48640|2;C=z+(M*40|0)+16|0;if(!v)kw(c[(C&p)>>2]|0,c[(z+(L*40|0)&p)+16>>2]|0,c[(A&p)>>2]|0)|0;kw((c[(C&p)>>2]|0)+(c[(A&p)>>2]|0)|0,c[(z+(K*40|0)&p)+16>>2]|0,c[(E&p)>>2]|0)|0;a[((c[(C&p)>>2]|0)+r&n)>>0]=0;a[((c[(C&p)>>2]|0)+r&n)+1>>0]=0;b[(w&o)>>1]=e[(w&o)>>1]|512;c[(z+(M*40|0)&p)+12>>2]=r;a[(z+(M*40|0)&n)+10>>0]=Jc;S=z;T=s;U=W;V=X;r=t;break}case 112:{ie=0;V=c[(s+(r*20|0)&p)+4>>2]|0;N=z+(V*40|0)|0;S=cm(N)|0;w=c[(s+(r*20|0)&p)+8>>2]|0;O=z+(w*40|0)|0;T=cm(O)|0;U=c[(s+(r*20|0)&p)+12>>2]|0;u=z+(U*40|0)|0;r:do if(!((b[(z+(w*40|0)&o)+8>>1]|b[(z+(V*40|0)&o)+8>>1])&1)){s:do if(!((S&4&T)<<16>>16))L=0;else{t=N;C=c[(t&p)>>2]|0;t=c[(t&p)+4>>2]|0;F=O;v=c[(F&p)>>2]|0;F=c[(F&p)+4>>2]|0;J=d[(P&n)>>0]|0;t:do if((J|0)==89){if((t|0)>-1|(t|0)==-1&C>>>0>4294967295){V=dw(-1,2147483647,v|0,F|0)|0;w=G;if(((F|0)>0|(F|0)==0&v>>>0>0)&((w|0)<(t|0)|(w|0)==(t|0)&V>>>0>>0)){L=1;break s}}else if((F|0)<0?(w=dw(1,-2147483648,v|0,F|0)|0,A=G,V=jw(C|0,t|0,1,0)|0,M=G,(A|0)>(M|0)|(A|0)==(M|0)&w>>>0>V>>>0):0){L=1;break s}v=jw(v|0,F|0,C|0,t|0)|0;t=G}else if((J|0)==91){L=qw(v|0,F|0,0,1)|0;K=G;E=rw(v|0,F|0,0,1)|0;A=G;J=qw(C|0,t|0,0,1)|0;I=G;M=rw(C|0,t|0,0,1)|0;w=G;V=jw(v|0,F|0,-1,0)|0;pe=G;H=jw(C|0,t|0,-1,0)|0;qe=G;H=qe>>>0<1|(qe|0)==1&H>>>0<4294967295;do if(pe>>>0<1|(pe|0)==1&V>>>0<4294967295)if(H){v=sw(v|0,F|0,C|0,t|0)|0;t=G;break t}else{H=sw(J|0,I|0,E|0,A|0)|0;F=G;break}else{if(!H){L=1;break s}H=sw(M|0,w|0,L|0,K|0)|0;F=G}while(0);V=jw(H|0,F|0,-2147483648,0)|0;v=G;if(v>>>0>0|(v|0)==0&V>>>0>4294967295){L=1;break s}J=sw(M|0,w|0,E|0,A|0)|0;I=G;if((I|0)>-1|(I|0)==-1&J>>>0>4294967295){V=dw(-1,2147483647,0,H|0)|0;w=G;if(((F|0)>0|(F|0)==0&H>>>0>0)&((w|0)<(I|0)|(w|0)==(I|0)&V>>>0>>0)){L=1;break s}}else if((F|0)<0?(w=dw(1,-2147483648,0,H|0)|0,t=G,V=jw(J|0,I|0,1,0)|0,v=G,(t|0)>(v|0)|(t|0)==(v|0)&w>>>0>V>>>0):0){L=1;break s}v=jw(0,H|0,J|0,I|0)|0;t=G}else if((J|0)==90){if((C|0)==0&(t|0)==-2147483648){if((F|0)>-1|(F|0)==-1&v>>>0>4294967295){L=1;break s}t=F^-2147483648;break}if((t|0)<0|(t|0)==0&C>>>0<1){V=dw(0,0,C|0,t|0)|0;M=G;w=dw(-1,2147483647,v|0,F|0)|0;A=G;if(((F|0)>0|(F|0)==0&v>>>0>0)&((A|0)<(M|0)|(A|0)==(M|0)&w>>>0>>0)){L=1;break s}}else if((F|0)<0?(w=dw(1,-2147483648,v|0,F|0)|0,A=G,V=dw(1,0,C|0,t|0)|0,M=G,(A|0)>(M|0)|(A|0)==(M|0)&w>>>0>V>>>0):0){L=1;break s}v=dw(v|0,F|0,C|0,t|0)|0;t=G}else if((J|0)==92){if((C|0)==0&(t|0)==0)break r;if((C|0)==-1&(t|0)==-1&((v|0)==0&(F|0)==-2147483648)){L=1;break s}v=qw(v|0,F|0,C|0,t|0)|0;t=G}else{if((C|0)==-1){if((t|0)==-1){C=1;t=0}}else if((C|0)==0?(t|0)==0:0)break r;v=rw(v|0,F|0,C|0,t|0)|0;t=G}while(0);S=u;c[(S&p)>>2]=v;c[(S&p)+4>>2]=t;S=z+(U*40|0)+8|0;b[(S&o)>>1]=e[(S&o)>>1]&48640|4;S=z;T=s;U=W;V=X;break q}while(0);D=+Ug(N);B=+Ug(O);C=d[(P&n)>>0]|0;if((C|0)==89)B=D+B;else if((C|0)==90)B=B-D;else if((C|0)==91)B=D*B;else if((C|0)==92){if(D==0.0)break;B=B/D}else{E=~~D>>>0;C=+R(D)>=1.0?(D>0.0?~~+da(+Q(D/4294967296.0),4294967295.0)>>>0:~~+ba((D-+(~~D>>>0))/4294967296.0)>>>0):0;I=~~B>>>0;J=+R(B)>=1.0?(B>0.0?~~+da(+Q(B/4294967296.0),4294967295.0)>>>0:~~+ba((B-+(~~B>>>0))/4294967296.0)>>>0):0;if(!E){if(!C)break}else if((E|0)==-1?(C|0)==-1:0){E=1;C=0}V=rw(I|0,J|0,E|0,C|0)|0;B=+(V>>>0)+4294967296.0*+(G|0)}h[(ke&q)>>3]=B;h[(Sd&q)>>3]=+h[(ke&q)>>3];if(!(+h[(ke&q)>>3]!=+h[(Sd&q)>>3])){h[(u&q)>>3]=B;V=z+(U*40|0)+8|0;b[(V&o)>>1]=e[(V&o)>>1]&48640|8;if(((T|S)&8)!=0|L<<24>>24!=0){S=z;T=s;U=W;V=X;break q}dm(u);S=z;T=s;U=W;V=X;break q}}while(0);t=z+(U*40|0)+8|0;if(!(b[(t&o)>>1]&9312)){b[(t&o)>>1]=1;S=z;T=s;U=W;V=X;break}else{vg(u);S=z;T=s;U=W;V=X;break}}case 166:{ie=0;t=c[(s+(r*20|0)&p)+4>>2]|0;if(t){u=z+(t*40|0)|0;t=z+(t*40|0)+8|0;if(!(b[(t&o)>>1]&9312)){S=u;c[(S&p)>>2]=0;c[(S&p)+4>>2]=0;b[(t&o)>>1]=4;S=z;T=s;U=W;V=X;u=J;break}else{Zg(u,0,0);S=z;T=s;U=W;V=X;u=J;break}}else{S=z;T=s;U=W;V=X;u=J}break}case 184:{ie=0;C=c[(s+(r*20|0)&p)+4>>2]|0;t=c[(s+(r*20|0)&p)+8>>2]|0;K=c[(s+(r*20|0)&p)+12>>2]|0;u=z+(K*40|0)|0;if((b[(z+(t*40|0)&o)+8>>1]|b[(z+(C*40|0)&o)+8>>1])&1){t=z+(K*40|0)+8|0;if(!(b[(t&o)>>1]&9312)){b[(t&o)>>1]=1;S=z;T=s;U=W;V=X;break}else{vg(u);S=z;T=s;U=W;V=X;break}}A=Vg(z+(t*40|0)|0)|0;L=G;J=Vg(z+(C*40|0)|0)|0;I=G;t=a[(H&n)>>0]|0;C=t&255;do if(t<<24>>24==86){A=J|A;t=I|L}else if(t<<24>>24!=85)if(!((J|0)==0&(I|0)==0)){if((I|0)<0){t=175-C&255;C=dw(0,0,J|0,I|0)|0;if((I|0)>-1|(I|0)==-1&J>>>0>4294967232){I=G;ie=194}}else{C=J;ie=194}if((ie|0)==194){ie=0;if(!((I|0)>0|(I|0)==0&C>>>0>63)){if(t<<24>>24==87){A=iw(A|0,L|0,C|0)|0;t=G;break}A=mw(A|0,L|0,C|0)|0;t=G;if((L|0)>=0)break;V=dw(64,0,C|0,I|0)|0;V=iw(-1,-1,V|0)|0;A=V|A;t=G|t;break}}if((L|0)>-1|(L|0)==-1&A>>>0>4294967295){A=0;t=0}else{t=(t<<24>>24!=87)<<31>>31;A=t;t=((t|0)<0)<<31>>31}}else t=L;else{A=J&A;t=I&L}while(0);S=u;c[(S&p)>>2]=A;c[(S&p)+4>>2]=t;S=z+(K*40|0)+8|0;b[(S&o)>>1]=e[(S&o)>>1]&48640|4;S=z;T=s;U=W;V=X;break}case 202:{ie=0;T=c[(s+(r*20|0)&p)+4>>2]|0;S=z+(T*40|0)|0;U=Vg(S)|0;T=z+(T*40|0)+8|0;b[(T&o)>>1]=e[(T&o)>>1]&48640|4;T=c[(s+(r*20|0)&p)+8>>2]|0;T=jw(U|0,G|0,T|0,((T|0)<0)<<31>>31|0)|0;c[(S&p)>>2]=T;c[(S&p)+4>>2]=G;S=z;T=s;U=W;V=X;break}case 203:{ie=0;u=c[(s+(r*20|0)&p)+4>>2]|0;v=z+(u*40|0)+8|0;t=b[(v&o)>>1]|0;if(!(t&4)){fm(z+(u*40|0)|0,67,Jc);t=b[(v&o)>>1]|0;if(!(t&4)){E=c[(s+(r*20|0)&p)+8>>2]|0;if(!E){t=r;u=20;ie=1318;break c}S=z;T=s;U=W;V=X;u=J;r=E+-1|0;break}}b[(v&o)>>1]=t&48640|4;S=z;T=s;U=W;V=X;u=J;break}case 208:{ie=0;t=c[(s+(r*20|0)&p)+4>>2]|0;u=z+(t*40|0)+8|0;if(!(b[(u&o)>>1]&4)){S=z;T=s;U=W;V=X;u=J}else{S=z+(t*40|0)|0;h[(S&q)>>3]=+Ug(S);b[(u&o)>>1]=e[(u&o)>>1]&48640|8;S=z;T=s;U=W;V=X;u=J}break}case 213:{ie=0;N=c[(s+(t*20|0)&p)+4>>2]|0;L=z+(N*40|0)|0;w=c[(s+(t*20|0)&p)+12>>2]|0;K=z+(w*40|0)|0;N=z+(N*40|0)+8|0;F=b[(N&o)>>1]|0;w=z+(w*40|0)+8|0;M=b[(w&o)>>1]|0;H=F&65535;A=M&65535;v=s+(t*20|0)+3|0;J=d[(v&n)>>0]|0;do if(!((M|F)&1)){J=J&71;if(J>>>0>66){if((H&14|0)==2){rh(L,0);A=b[(w&o)>>1]|0}else A=M;if((A&14)==2){rh(K,0);J=F;E=M}else{J=F;E=M}}else if((J|0)==66){if((H&2|0)!=0|(H&12|0)==0){I=M;J=F}else{bm(L,Jc,1)|0;I=b[(w&o)>>1]|0;J=(e[(N&o)>>1]&65024|H&511)&65535}V=I&65535;if((V&2|0)!=0|(V&12|0)==0)E=M;else{bm(K,Jc,1)|0;E=(e[(w&o)>>1]&65024|A&511)&65535}}else{J=F;E=M}if(b[(N&o)>>1]&16384){Rg(L)|0;J=J&49151}if(b[(w&o)>>1]&16384){Rg(K)|0;E=E&49151}if(a[(ge&n)>>0]|0){y=ge;z=je;r=m;m=x;ie=1317;break a}V=hm(K,L,c[(s+(t*20|0)&p)+16>>2]|0)|0;I=a[(C&n)>>0]|0;r=t;C=V}else{if(J&128){J=F;E=M;r=t;C=(F&1&M)<<16>>16!=0&(A&256|0)==0&1^1;break}if(J&32){u=c[(s+(t*20|0)&p)+8>>2]|0;S=z+(u*40|0)+8|0;b[(S&o)>>1]=e[(S&o)>>1]&48640|1;S=z;T=s;U=W;V=X;u=z+(u*40|0)|0;r=t;break q}if(!(J&16)){S=z;T=s;U=W;V=X;r=t;break q}S=z;T=s;U=W;V=X;r=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;break q}while(0);switch(I&255|0){case 79:{C=(C|0)==0&1;break}case 78:{C=(C|0)!=0&1;break}case 82:{C=C>>>31;break}case 81:{C=(C|0)<1&1;break}case 80:{C=(C|0)>0&1;break}default:C=C>>>31^1}if(!(a[(v&n)>>0]&32)){if(C)r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0}else{V=c[(s+(r*20|0)&p)+8>>2]|0;u=z+(V*40|0)|0;V=z+(V*40|0)+8|0;b[(V&o)>>1]=e[(V&o)>>1]&48640|4;V=u;c[(V&p)>>2]=C;c[(V&p)+4>>2]=0}b[(N&o)>>1]=J;b[(w&o)>>1]=E;S=z;T=s;U=W;V=X;break}case 248:{ie=0;S=z;T=s;U=c[(s+(r*20|0)&p)+16>>2]|0;V=X;break}case 249:{ie=0;w=(a[(s+(r*20|0)&n)+3>>0]&1)==0?0:W;F=c[(s+(r*20|0)&p)+12>>2]|0;H=c[(s+(r*20|0)&p)+16>>2]|0;I=c[(s+(r*20|0)&p)+4>>2]|0;J=c[(s+(r*20|0)&p)+8>>2]|0;if((F|0)>0){t=(w|0)==0;v=H+16|0;E=0;while(1){if(t)A=E;else A=c[(w+(E<<2)&p)>>2]|0;C=a[((c[(v&p)>>2]|0)+E&n)>>0]|0;A=hm(z+((A+I|0)*40|0)|0,z+((A+J|0)*40|0)|0,c[(H+(E<<2)&p)+20>>2]|0)|0;E=E+1|0;if(A)break;if((E|0)>=(F|0)){S=z;T=s;U=0;V=0;break q}}S=z;T=s;U=0;V=C<<24>>24==0?A:0-A|0}else{S=z;T=s;U=0;V=X}break}case 256:{ie=0;if((X|0)<0){S=z;T=s;U=W;V=X;r=(c[(s+(t*20|0)&p)+4>>2]|0)+-1|0;break}if(!X){S=z;T=s;U=W;V=0;r=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;break}else{S=z;T=s;U=W;V=X;r=(c[(s+(t*20|0)&p)+12>>2]|0)+-1|0;break}}case 261:{ie=0;t=c[(s+(r*20|0)&p)+4>>2]|0;if(!(b[(z+(t*40|0)&o)+8>>1]&1)){u=Vg(z+(t*40|0)|0)|0;u=(u|0)!=0|(G|0)!=0?3:0}else u=6;t=c[(s+(r*20|0)&p)+8>>2]|0;if(!(b[(z+(t*40|0)&o)+8>>1]&1)){t=Vg(z+(t*40|0)|0)|0;t=((t|0)!=0|(G|0)!=0)&1}else t=2;t=a[(((a[(C&n)>>0]|0)==72?41680:41696)+t+u&n)>>0]|0;u=c[(s+(r*20|0)&p)+12>>2]|0;J=z+(u*40|0)|0;if(t<<24>>24==2){S=z+(u*40|0)+8|0;b[(S&o)>>1]=e[(S&o)>>1]&48640|1;S=z;T=s;U=W;V=X;u=J;break}else{S=J;c[(S&p)>>2]=t&255;c[(S&p)+4>>2]=0;S=z+(u*40|0)+8|0;b[(S&o)>>1]=e[(S&o)>>1]&48640|4;S=z;T=s;U=W;V=X;u=J;break}}case 268:{ie=0;t=c[(s+(r*20|0)&p)+4>>2]|0;u=c[(s+(r*20|0)&p)+8>>2]|0;J=z+(u*40|0)|0;u=z+(u*40|0)+8|0;if(!(b[(u&o)>>1]&9312))b[(u&o)>>1]=1;else vg(J);if(!(b[(z+(t*40|0)&o)+8>>1]&1)){b[(u&o)>>1]=4;T=Vg(z+(t*40|0)|0)|0;S=J;c[(S&p)>>2]=(T|0)==0&(G|0)==0&1;c[(S&p)+4>>2]=0;S=z;T=s;U=W;V=X;u=J}else{S=z;T=s;U=W;V=X;u=J}break}case 273:{ie=0;t=c[(s+(r*20|0)&p)+4>>2]|0;u=c[(s+(r*20|0)&p)+8>>2]|0;J=z+(u*40|0)|0;u=z+(u*40|0)+8|0;if(!(b[(u&o)>>1]&9312))b[(u&o)>>1]=1;else vg(J);if(!(b[(z+(t*40|0)&o)+8>>1]&1)){b[(u&o)>>1]=4;T=Vg(z+(t*40|0)|0)|0;S=J;c[(S&p)>>2]=~T;c[(S&p)+4>>2]=~G;S=z;T=s;U=W;V=X;u=J}else{S=z;T=s;U=W;V=X;u=J}break}case 278:{ie=0;t=(c[(Hb&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]|0)|0;if(!(a[(t&n)>>0]|0)){a[(t&n)>>0]=1;S=z;T=s;U=W;V=X;break}else{S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0;break}}case 281:{ie=0;t=c[(s+(r*20|0)&p)+4>>2]|0;if(!(b[(z+(t*40|0)&o)+8>>1]&1)){t=+Ug(z+(t*40|0)|0)!=0.0;t=(t^(a[(C&n)>>0]|0)==46)&1}else t=c[(s+(r*20|0)&p)+12>>2]|0;if(!t){S=z;T=s;U=W;V=X}else{S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0}break}case 286:{ie=0;if(!(b[(z+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)&o)+8>>1]&1)){S=z;T=s;U=W;V=X}else{S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0}break}case 288:{ie=0;if(!(b[(z+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)&o)+8>>1]&1)){S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0}else{S=z;T=s;U=W;V=X}break}case 290:{ie=0;T=c[(s+(t*20|0)&p)+8>>2]|0;M=c[(s+(t*20|0)&p)+12>>2]|0;A=z+(M*40|0)|0;S=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;w=c[(S&p)+80>>2]|0;v=c[(S&p)>>2]|0;if(!(a[(S&n)+26>>0]|0)){if((v|0)!=0?(a[(v&n)+73>>0]|0)!=1:0){Td=jm(S)|0;ie=295}}else{Td=im(S)|0;ie=295}if((ie|0)==295?(ie=0,(Td|0)!=0):0){u=Td;ie=1318;break c}L=S+60|0;C=c[($d&p)>>2]|0;u:do if((c[(L&p)>>2]|0)==(C|0)){C=b[(S&o)+22>>1]|0;if((C&65535|0)>(T|0))ie=350;else{I=S+72|0;ie=318}}else{do if(a[(S&n)+25>>0]|0){if(!v){J=c[(S&p)+16>>2]|0;F=c[(z+(J*40|0)&p)+12>>2]|0;c[(S&p)+68>>2]=F;c[(S&p)+64>>2]=F;J=c[(z+(J*40|0)&p)+16>>2]|0;K=S+76|0;c[(K&p)>>2]=J;break}r=z+(M*40|0)+8|0;if(!(b[(r&o)>>1]&9312)){b[(r&o)>>1]=1;break u}else{vg(A);break u}}else{if(!(a[(S&n)+27>>0]&4)){km(v,td);I=e[(v&o)+40>>1]|0;J=c[(v&p)+32>>2]|0;c[(S&p)+76>>2]=J;C=c[(td&p)>>2]|0;c[(S&p)+64>>2]=C}else{C=S+64|0;lm(v,C);I=e[(v&o)+40>>1]|0;J=c[(v&p)+32>>2]|0;c[(S&p)+76>>2]=J;C=c[(C&p)>>2]|0}c[(S&p)+68>>2]=C>>>0>I>>>0?I:C;if(C>>>0>(c[(zb&p)>>2]|0)>>>0){u=x;ie=1316;break c}K=S+76|0;C=c[($d&p)>>2]|0;F=I}while(0);c[(L&p)>>2]=C;C=a[(J&n)>>0]|0;if(C<<24>>24>-1){H=C&255;c[(kd&p)>>2]=H;J=1}else{J=mm(J,kd)|0;H=c[(kd&p)>>2]|0}I=S+72|0;c[(I&p)>>2]=J&255;b[(S&o)+22>>1]=0;c[(w&p)>>2]=H;if(H>>>0>98307){u=x;ie=313;break c}if(H>>>0>(c[(S&p)+64>>2]|0)>>>0){u=x;ie=313;break c}if(F>>>0>>0){c[(K&p)>>2]=0;c[(S&p)+68>>2]=0;C=0;ie=318}else{C=0;ie=318}}while(0);do if((ie|0)==318){ie=0;J=c[(I&p)>>2]|0;H=c[(w&p)>>2]|0;if(J>>>0>>0){P=S+76|0;F=c[(P&p)>>2]|0;if(!F){U=Jd+0|0;V=U+40|0;do{c[(U&p)>>2]=0;U=U+4|0}while((U|0)<(V|0));J=nm(v,0,c[(w&p)>>2]|0,((d[(S&n)+27>>0]|0)>>>2&1^1)&255,Jd)|0;if(J){s=J;u=x;ie=1309;break c}C=S+22|0;O=C;C=b[(C&o)>>1]|0;J=c[(I&p)>>2]|0;H=c[(w&p)>>2]|0;N=c[(Jb&p)>>2]|0}else{O=S+22|0;N=F}E=C&65535;K=c[(w+(E<<2)&p)>>2]|0;c[(kd&p)>>2]=K;C=N+H|0;J=N+J|0;while(1){F=a[(J&n)>>0]|0;if(F<<24>>24>-1){L=F&255;c[(Ld&p)>>2]=L;J=J+1|0}else{J=J+((mm(J,Ld)|0)&255)|0;L=c[(Ld&p)>>2]|0}c[(S+(E<<2)&p)+84>>2]=L;if(L>>>0>11)F=(L+-12|0)>>>1;else F=d[(L&n)+34336>>0]|0;L=K+F|0;c[(kd&p)>>2]=L;if(L>>>0>>0){J=L;F=E;ie=331;break}F=E+1|0;c[(w+(F<<2)&p)>>2]=L;if((E|0)<(T|0)&J>>>0>>0){K=L;E=F}else break}if((ie|0)==331){ie=0;L=J;J=N+(H+1)|0}b[(O&o)>>1]=F;c[(I&p)>>2]=J-N;if(!(c[(P&p)>>2]|0)){if(!((b[(Kb&o)>>1]&9312)==0&(c[(Lb&p)>>2]|0)==0))Qg(Jd);b[(Kb&o)>>1]=1}if(J>>>0>=C>>>0){if(J>>>0>C>>>0){u=x;ie=343;break c}if((L|0)==(c[(S&p)+64>>2]|0))C=L;else{u=x;ie=343;break c}}else C=c[(S&p)+64>>2]|0;if(L>>>0>C>>>0){u=x;ie=343;break c}C=b[(O&o)>>1]|0}if((C&65535|0)<=(T|0)){if((a[(s+(t*20|0)&n)+1>>0]|0)==-8){Zl(A,c[(s+(t*20|0)&p)+16>>2]|0,2048);r=z+(M*40|0)+8|0;break}r=z+(M*40|0)+8|0;if(!(b[(r&o)>>1]&9312)){b[(r&o)>>1]=1;break}else{vg(A);break}}else ie=350}while(0);if((ie|0)==350){ie=0;r=z+(M*40|0)+8|0;if(b[(r&o)>>1]&9312)vg(A);J=c[(S+(T<<2)&p)+84>>2]|0;c[(Ld&p)>>2]=J;do if((c[(S&p)+68>>2]|0)>>>0<(c[(w+(T+1<<2)&p)>>2]|0)>>>0){V=a[(s+(t*20|0)&n)+3>>0]|0;if(!((V&255)>63?J>>>0>11&(J&1|0)==0|V<<24>>24<0:0)){if(J>>>0>11)C=(J+-12|0)>>>1;else C=d[(J&n)+34336>>0]|0;if(C){C=nm(v,c[(w+(T<<2)&p)>>2]|0,C,((d[(S&n)+27>>0]|0)>>>2&1^1)&255,A)|0;if(C){s=C;u=x;ie=1309;break c}om(c[(z+(M*40|0)&p)+16>>2]|0,J,A)|0;b[(r&o)>>1]=e[(r&o)>>1]&61439;break}}om(J>>>0<14?td:0,J,A)|0}else om((c[(S&p)+76>>2]|0)+(c[(w+(T<<2)&p)>>2]|0)|0,J,A)|0;while(0);a[(z+(M*40|0)&n)+10>>0]=Jc}w=e[(r&o)>>1]|0;if((w&4096|0)!=0?(Ac=z+(M*40|0)+16|0,Bc=c[(Ac&p)>>2]|0,(Bc|0)!=0):0){v=c[(z+(M*40|0)&p)+12>>2]|0;if(fh(A,v+2|0)|0){y=ge;z=je;r=m;m=x;ie=1317;break a}kw(c[(Ac&p)>>2]|0,Bc|0,v|0)|0;a[((c[(Ac&p)>>2]|0)+v&n)>>0]=0;a[((c[(Ac&p)>>2]|0)+v&n)+1>>0]=0;b[(r&o)>>1]=w&18|512;S=z;T=s;U=W;V=X;r=t}else{S=z;T=s;U=W;V=X;r=t}break}case 368:{ie=0;v=c[(s+(r*20|0)&p)+16>>2]|0;t=a[(v&n)>>0]|0;if(!(t<<24>>24)){S=z;T=s;U=W;V=X}else{w=z+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)|0;while(1){v=v+1|0;fm(w,t,Jc);t=a[(v&n)>>0]|0;if(!(t<<24>>24)){S=z;T=s;U=W;V=X;break}else w=w+40|0}}break}case 371:{ie=0;U=c[(s+(t*20|0)&p)+4>>2]|0;C=c[(s+(t*20|0)&p)+16>>2]|0;V=z+(U*40|0)|0;U=z+((U+-1+(c[(s+(t*20|0)&p)+8>>2]|0)|0)*40|0)|0;A=a[(Mb&n)>>0]|0;T=c[(s+(t*20|0)&p)+12>>2]|0;u=z+(T*40|0)|0;if(C){r=a[(C&n)>>0]|0;v=V;while(1){C=C+1|0;fm(v,r,Jc);r=a[(C&n)>>0]|0;if(!(r<<24>>24))break;else v=v+40|0}}N=(A&255)>3;L=0;K=0;O=0;C=0;w=U;while(1){E=b[(w&o)+8>>1]|0;I=E&65535;v:do if(!(I&1)){do if(!(I&4)){if(I&8){J=7;ie=388;break v}J=c[(w&p)+12>>2]|0;if(I&16384)J=(c[(w&p)>>2]|0)+J|0;J=(J<<1)+12|I>>>1&1}else{I=w;J=c[(I&p)>>2]|0;I=c[(I&p)+4>>2]|0;H=ew(J|0,I|0,63)|0;H=H^J;F=G^I;if(F>>>0<0|(F|0)==0&H>>>0<128){if(!((J&1|0)==(J|0)&0==(I|0)&N)){J=1;ie=388;break v}J=H+8|0;break}if(F>>>0<0|(F|0)==0&H>>>0<32768){J=2;ie=388;break v}if(F>>>0<0|(F|0)==0&H>>>0<8388608){J=3;ie=388;break v}if(F>>>0<0|(F|0)==0&H>>>0<2147483648){J=4;ie=388;break v}J=F>>>0<32768|(F|0)==32768&H>>>0<0?5:6;ie=388;break v}while(0);c[(w&p)+28>>2]=J;if(J>>>0>11){I=J;J=(J+-12|0)>>>1}else ie=391}else{J=0;ie=388}while(0);if((ie|0)==388){c[(w&p)+28>>2]=J;ie=391}if((ie|0)==391){ie=0;I=J;J=d[(J&n)+34336>>0]|0}do if(E&16384)if((L|0)==0&(K|0)==0){E=c[(w&p)>>2]|0;J=J-E|0;E=E+C|0;break}else{Rg(w)|0;E=C;break}else E=C;while(0);L=jw(J|0,((J|0)<0)<<31>>31|0,L|0,K|0)|0;K=G;if(I>>>0<128)J=1;else{H=0;J=0;do{J=J+1|0;I=mw(I|0,H|0,7)|0;H=G}while(((I|0)!=0|(H|0)!=0)&(J|0)<9)}J=J+O|0;w=w+-40|0;if(w>>>0>>0){F=J;P=E;break}else{O=J;C=E}}if((F|0)<127)I=F+1|0;else{I=F;H=((F|0)<0)<<31>>31;J=0;do{J=J+1|0;I=mw(I|0,H|0,7)|0;H=G}while(((I|0)!=0|(H|0)!=0)&(J|0)<9);F=J+F|0;I=F;H=((F|0)<0)<<31>>31;C=0;do{C=C+1|0;I=mw(I|0,H|0,7)|0;H=G}while(((I|0)!=0|(H|0)!=0)&(C|0)<9);I=((J|0)<(C|0)&1)+F|0}J=((I|0)<0)<<31>>31;E=jw(I|0,J|0,L|0,K|0)|0;N=G;S=c[(zb&p)>>2]|0;O=((S|0)<0)<<31>>31;if((N|0)>(O|0)|(N|0)==(O|0)&E>>>0>S>>>0){u=x;ie=1316;break c}if(fh(u,E)|0){y=ge;z=je;r=m;m=x;ie=1317;break a}A=c[(z+(T*40|0)&p)+16>>2]|0;if(I>>>0<128){a[(A&n)>>0]=I;K=1;L=V}else{K=(pm(A,I,J)|0)&255;L=V}while(1){H=c[(L&p)+28>>2]|0;if(H>>>0<128){a[(A+K&n)>>0]=H;J=1}else J=(pm(A+K|0,H,0)|0)&255;K=J+K|0;J=A+I|0;if(!(H>>>0<8&(H|0)!=0))if(H>>>0>11){C=c[(L&p)+12>>2]|0;kw(J|0,c[(L&p)+16>>2]|0,C|0)|0}else C=0;else{J=L;if(H>>>0>11)C=(H+-12|0)>>>1;else C=d[(H&n)+34336>>0]|0;F=c[(J&p)>>2]|0;J=c[(J&p)+4>>2]|0;H=C;while(1){H=H+-1|0;a[(A+H+I&n)>>0]=F;F=mw(F|0,J|0,8)|0;if(!H)break;else J=G}}L=L+40|0;if(L>>>0>U>>>0)break;else I=C+I|0}c[(z+(T*40|0)&p)+12>>2]=E;r=z+(T*40|0)+8|0;b[(r&o)>>1]=16;if(P){c[(u&p)>>2]=P;b[(r&o)>>1]=16400}a[(z+(T*40|0)&n)+10>>0]=1;S=z;T=s;U=W;V=X;r=t;break}case 446:{ie=0;if((c[(ae&p)>>2]|0)>0){u=x;ie=447;break c}if(!v)w=0;else{t=v;while(1)if(!(a[(t&n)>>0]|0))break;else t=t+1|0;w=t-v&1073741823}u=sm(le,0,(c[(Ob&p)>>2]|0)+(c[(Nb&p)>>2]|0)|0)|0;if(u){t=r;ie=1318;break c}t=mh(le,w+33|0,0)|0;if(!t){S=z;T=s;U=W;V=X;u=L}else{V=t+32|0;c[(t&p)>>2]=V;kw(V|0,v|0,w+1|0)|0;if(!(a[(ee&n)>>0]|0))c[(Ob&p)>>2]=(c[(Ob&p)>>2]|0)+1;else{a[(ee&n)>>0]=0;a[(Sb&n)>>0]=1}c[(t&p)+24>>2]=c[(Pb&p)>>2];c[(Pb&p)>>2]=t;S=Qb;T=c[(S&p)+4>>2]|0;U=t+8|0;c[(U&p)>>2]=c[(S&p)>>2];c[(U&p)+4>>2]=T;U=Rb;T=c[(U&p)+4>>2]|0;S=t+16|0;c[(S&p)>>2]=c[(U&p)>>2];c[(S&p)+4>>2]=T;S=z;T=s;U=W;V=X;u=L}break}case 486:{c[(Ob&p)>>2]=(c[(Ob&p)>>2]|0)+-1;ie=488;break}case 525:{ie=0;wm(c[((c[(Xd&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<4)&p)+4>>2]|0,c[(s+(r*20|0)&p)+12>>2]|0,Yc);T=c[(Yc&p)>>2]|0;S=u;c[(S&p)>>2]=T;c[(S&p)+4>>2]=((T|0)<0)<<31>>31;S=z;T=s;U=W;V=X;break}case 558:{ie=0;v=xm(f,c[(s+(t*20|0)&p)+4>>2]|0,c[(s+(t*20|0)&p)+8>>2]|0,-1,1)|0;if(!v){y=ge;z=je;r=m;m=x;ie=1317;break a}r=c[(s+(t*20|0)&p)+16>>2]|0;C=v+8|0;c[(C&p)>>2]=r;A=c[(s+(t*20|0)&p)+12>>2]|0;r=e[(r&o)+6>>1]<<2;u=r+148|0;w=mh(le,u,0)|0;if(!w){s=v;u=x;ie=560;break c}fw(w|0,0,u|0)|0;c[(v&p)+56>>2]=w;V=w+128|0;c[(w&p)+28>>2]=V;kw(V|0,c[(C&p)>>2]|0,r+20|0)|0;c[(w&p)+140>>2]=0;if(A)b[(w&o)+134>>1]=A;r=c[(Xd&p)>>2]|0;u=c[((c[((c[(r&p)+4>>2]|0)&p)+4>>2]|0)&p)+32>>2]|0;c[(w&p)+12>>2]=u;a[(w&n)+59>>0]=1;a[(w&n)+57>>0]=0;c[(w&p)+24>>2]=le;c[(w&p)+72>>2]=w;if(((a[(_b&n)>>0]|0)!=2?(Dc=c[2242]|0,c[(w&p)>>2]=ca(Dc,u)|0,V=c[((c[(r&p)+12>>2]|0)&p)+80>>2]|0,V=(V|0)<(Dc|0)?Dc:V,Dc=((u|0)<0)<<31>>31,V=sw(V|0,((V|0)<0)<<31>>31|0,u|0,Dc|0)|0,U=G,c[(w&p)+4>>2]=(U|0)<0|(U|0)==0&V>>>0<536870912?V:536870912,(c[2234]|0)==0):0)?(c[(w&p)+52>>2]=u,V=qg(u,Dc)|0,c[(w&p)+40>>2]=V,(V|0)==0):0){s=7;u=x;ie=1309;break c}else{S=z;T=s;U=W;V=X;u=L;r=t}break}case 566:{ie=0;T=(c[((c[(Ib&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<2)&p)>>2]|0)+40|0;V=T;U=c[(V&p)>>2]|0;V=c[(V&p)+4>>2]|0;S=jw(U|0,V|0,1,0)|0;c[(T&p)>>2]=S;c[(T&p)+4>>2]=G;if((U|0)==0&(V|0)==0){S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0}else{S=z;T=s;U=W;V=X}break}case 568:{ie=0;r=xm(f,c[(s+(t*20|0)&p)+4>>2]|0,c[(s+(t*20|0)&p)+12>>2]|0,-1,0)|0;if(!r){y=ge;z=je;r=m;m=x;ie=1317;break a}a[(r&n)+25>>0]=1;c[(r&p)+16>>2]=c[(s+(t*20|0)&p)+8>>2];S=r+27|0;a[(S&n)>>0]=a[(S&n)>>0]|4;S=z;T=s;U=W;V=X;r=t;break}case 570:{ie=0;S=s+(r*20|0)+4|0;Bm(f,c[((c[(Ib&p)>>2]|0)+(c[(S&p)>>2]<<2)&p)>>2]|0);c[((c[(Ib&p)>>2]|0)+(c[(S&p)>>2]<<2)&p)>>2]=0;S=z;T=s;U=W;V=X;break}case 571:{ie=0;H=c[((c[(Ib&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<2)&p)>>2]|0;a[(H&n)+25>>0]=0;if(!(a[(H&n)+27>>0]&4)){V=c[(s+(r*20|0)&p)+16>>2]|0;c[(wd&p)>>2]=c[(H&p)+8>>2];b[($b&o)>>1]=V;a[(cc&n)>>0]=(K<<1&2^2)+255;V=c[(s+(r*20|0)&p)+12>>2]|0;t=z+(V*40|0)|0;c[(dc&p)>>2]=t;if(b[(z+(V*40|0)&o)+8>>1]&16384)Rg(t)|0;u=Cm(c[(H&p)>>2]|0,wd,0,0,0,Ad)|0;if(!u){u=K;J=L}else{t=r;ie=1318;break c}}else{C=c[(s+(r*20|0)&p)+12>>2]|0;A=z+(C*40|0)|0;C=z+(C*40|0)+8|0;if((b[(C&o)>>1]&14)==2)rh(A,0);J=Vg(A)|0;I=G;C=e[(C&o)>>1]|0;do if(!(C&4)){if(!(C&8)){S=z;T=s;U=W;V=X;u=L;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0;break q}B=+h[(A&q)>>3];D=+(J>>>0)+4294967296.0*+(I|0);if(B>31)+K|0;break}else{C=(B>D&(K&1|0)==0&1)+K|0;break}}else C=K;while(0);u=Cm(c[(H&p)>>2]|0,0,J,I,0,Ad)|0;V=H+48|0;c[(V&p)>>2]=J;c[(V&p)+4>>2]=I;if(!u){u=C;J=L}else{t=r;ie=1318;break c}}a[(H&n)+26>>0]=0;c[(H&p)+60>>2]=0;t=c[(Ad&p)>>2]|0;do if((u|0)>63){if((t|0)>=0?!((t|0)==0&(u|0)==65):0){c[(Ad&p)>>2]=0;S=z;T=s;U=W;V=X;u=J;break q}c[(Ad&p)>>2]=0;u=Dm(c[(H&p)>>2]|0,Ad)|0;if(!u)ie=593;else{t=r;ie=1318;break c}}else{if((t|0)<=0?!((t|0)==0&(u|0)==62):0){t=(a[((c[(H&p)>>2]|0)&n)+73>>0]|0)!=1&1;c[(Ad&p)>>2]=t;break}c[(Ad&p)>>2]=0;u=Em(c[(H&p)>>2]|0,Ad)|0;if(!u)ie=593;else{t=r;ie=1318;break c}}while(0);if((ie|0)==593){ie=0;t=c[(Ad&p)>>2]|0}if(!t){S=z;T=s;U=W;V=X;u=J}else{S=z;T=s;U=W;V=X;u=J;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0}break}case 596:{ie=0;S=c[((c[(Ib&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<2)&p)>>2]|0;a[(S&n)+25>>0]=0;U=Vg(z+((c[(s+(r*20|0)&p)+8>>2]|0)*40|0)|0)|0;T=S+48|0;c[(T&p)>>2]=U;c[(T&p)+4>>2]=G;a[(S&n)+26>>0]=1;S=z;T=s;U=W;V=X;break}case 597:{ie=0;I=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;r=c[(s+(t*20|0)&p)+12>>2]|0;J=z+(r*40|0)|0;c[(od&p)>>2]=0;K=s+(t*20|0)+16|0;C=c[(K&p)>>2]|0;v=I+8|0;A=c[(v&p)>>2]|0;w:do if((C|0)>0){c[(xd&p)>>2]=A;C=C&65535;b[(ec&o)>>1]=C;c[(fc&p)>>2]=J;if(!(C<<16>>16))v=xd;else{r=J;A=0;while(1){if(b[(r+(A*40|0)&o)+8>>1]&16384){Rg(r+(A*40|0)|0)|0;C=b[(ec&o)>>1]|0}A=A+1|0;if((A|0)>=(C&65535|0)){v=xd;break w}r=c[(fc&p)>>2]|0}}}else{C=Fm(A,Sc,191,od)|0;if(!C){y=ge;z=je;r=m;m=x;ie=1317;break a}if(b[(z+(r*40|0)&o)+8>>1]&16384)Rg(J)|0;Gm(c[(v&p)>>2]|0,c[(z+(r*40|0)&p)+12>>2]|0,c[(z+(r*40|0)&p)+16>>2]|0,C);v=C}while(0);a[(v&n)+6>>0]=0;x:do if((a[(H&n)>>0]|0)==67?(Ec=b[(v&o)+4>>1]|0,Ec<<16>>16!=0):0){C=c[(v&p)+8>>2]|0;A=0;while(1){if(b[(C+(A*40|0)&o)+8>>1]&1)break;A=A+1|0;if((A|0)>=(Ec&65535|0)){L=t;r=t;break x}}L=t;r=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0}else{L=t;r=t}while(0);C=Cm(c[(I&p)>>2]|0,v,0,0,0,Bd)|0;if(!(c[(K&p)>>2]|0))mg(le,c[(od&p)>>2]|0);if(C){t=r;s=C;u=x;ie=1309;break c}t=c[(Bd&p)>>2]|0;c[(I&p)+12>>2]=t;t=(t|0)==0;a[(I&n)+25>>0]=t&1^1;a[(I&n)+26>>0]=0;c[(I&p)+60>>2]=0;if((a[(H&n)>>0]|0)==69){if(!t){S=z;T=s;U=W;V=X;break}S=z;T=s;U=W;V=X;r=(c[(s+(L*20|0)&p)+8>>2]|0)+-1|0;break}else{if(t){S=z;T=s;U=W;V=X;break}S=z;T=s;U=W;V=X;r=(c[(s+(L*20|0)&p)+8>>2]|0)+-1|0;break}}case 624:{ie=0;S=(c[((c[(Ib&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<2)&p)>>2]|0)+40|0;T=S;U=c[(T&p)>>2]|0;T=c[(T&p)+4>>2]|0;V=jw(U|0,T|0,1,0)|0;c[(S&p)>>2]=V;c[(S&p)+4>>2]=G;S=u;c[(S&p)>>2]=U;c[(S&p)+4>>2]=T;S=z;T=s;U=W;V=X;break}case 647:{ie=0;I=c[(s+(r*20|0)&p)+8>>2]|0;v=c[((c[(Ib&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<2)&p)>>2]|0;t=c[(s+(r*20|0)&p)+12>>2]|0;if(C<<24>>24==75){F=z+(t*40|0)|0;E=c[(F&p)>>2]|0;F=c[(F&p)+4>>2]|0}else{E=t;F=((t|0)<0)<<31>>31}H=s+(r*20|0)+3|0;J=a[(H&n)>>0]|0;if(J&1)c[(ub&p)>>2]=(c[(ub&p)>>2]|0)+1;if(J&2){m=ne;c[(m&p)>>2]=E;c[(m&p)+4>>2]=F;m=E;l=F}C=b[(z+(I*40|0)&o)+8>>1]|0;if(C&1){c[(z+(I*40|0)&p)+16>>2]=0;c[(z+(I*40|0)&p)+12>>2]=0}if(!(J&16))A=0;else A=c[(v&p)+12>>2]|0;if(!(C&16384))C=0;else C=c[(z+(I*40|0)&p)>>2]|0;C=Im(c[(v&p)>>2]|0,0,E,F,c[(z+(I*40|0)&p)+16>>2]|0,c[(z+(I*40|0)&p)+12>>2]|0,C,(J&255)>>>3&1,A)|0;a[(v&n)+26>>0]=0;c[(v&p)+60>>2]=0;if(C){t=r;s=C;u=x;ie=1309;break c}t=c[(gc&p)>>2]|0;if((t|0)!=0?(Fc=c[(s+(r*20|0)&p)+16>>2]|0,(Fc|0)!=0):0){bc[t&1](c[(hc&p)>>2]|0,(a[(H&n)>>0]&4)!=0?23:18,c[((c[(Xd&p)>>2]|0)+(a[(v&n)+24>>0]<<4)&p)>>2]|0,Fc,E,F);S=z;T=s;U=W;V=X}else{S=z;T=s;U=W;V=X}break}case 671:{ie=0;S=c[(ub&p)>>2]|0;c[(vb&p)>>2]=S;c[(wb&p)>>2]=(c[(wb&p)>>2]|0)+S;c[(ub&p)>>2]=0;S=z;T=s;U=W;V=X;break}case 672:{ie=0;J=c[((c[(Ib&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<2)&p)>>2]|0;I=c[(s+(r*20|0)&p)+12>>2]|0;H=c[(s+(r*20|0)&p)+16>>2]|0;t=c[(J&p)+56>>2]|0;A=t+32|0;C=c[(A&p)>>2]|0;J=c[(J&p)+8>>2]|0;if(!C){C=Fm(J,0,0,md)|0;c[(A&p)>>2]=C;if(!C){t=r;s=7;u=x;ie=1309;break c}b[(C&o)+4>>1]=H}if(!(a[(t&n)+56>>0]|0)){t=c[(t&p)+36>>2]|0;A=t;t=t+8|0}else{V=c[(t&p)+20>>2]|0;t=c[((c[(V&p)+8>>2]|0)&p)+4>>2]|0;V=c[(V&p)+12>>2]|0;A=V+(t*56|0)+20|0;t=c[(V+(t*56|0)&p)+32>>2]|0}Gm(J,c[(A&p)>>2]|0,t,C);y:do if((H|0)>0){t=c[(C&p)+8>>2]|0;v=0;while(1){if(b[(t+(v*40|0)&o)+8>>1]&1)break y;v=v+1|0;if((v|0)>=(H|0)){ie=682;break}}}else ie=682;while(0);if((ie|0)==682){ie=0;if(!(Km(c[(z+(I*40|0)&p)+12>>2]|0,c[(z+(I*40|0)&p)+16>>2]|0,C,0)|0)){S=z;T=s;U=W;V=X;break}}S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0;break}case 700:{ie=0;b[(u&o)+8>>1]=1;S=z;T=s;U=W;V=X;break}case 708:{ie=0;b[(u&o)+8>>1]=1;S=z;T=s;U=W;V=X;break}case 711:{ie=0;t=c[((c[(Ib&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<2)&p)>>2]|0;a[(t&n)+25>>0]=1;c[(t&p)+60>>2]=0;t=c[(t&p)>>2]|0;if(!t){S=z;T=s;U=W;V=X}else{S=t+56|0;Wc(c[(S&p)>>2]|0);c[(S&p)>>2]=0;a[(t&n)+73>>0]=0;S=z;T=s;U=W;V=X}break}case 801:{ie=0;t=c[((c[(Ib&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<2)&p)>>2]|0;u=c[(t&p)>>2]|0;K=L+8|0;b[(K&o)>>1]=1;if((a[(u&n)+73>>0]|0)!=1?(Vd=jm(t)|0,(Vd|0)!=0):0){t=r;u=Vd;ie=1318;break c}if(!(a[(t&n)+25>>0]|0)){V=Sd;c[(V&p)>>2]=0;c[(V&p)+4>>2]=0;km(u,Sd);b[(qc&o)>>1]=0;c[(sc&p)>>2]=le;c[(uc&p)>>2]=0;u=nm(u,0,c[(Sd&p)>>2]|0,1,$c)|0;do if(!u){t=c[(vc&p)>>2]|0;u=a[(t&n)>>0]|0;if(u<<24>>24>-1){C=u&255;c[(qd&p)>>2]=C}else{mm(t,qd)|0;C=c[(qd&p)>>2]|0}if(!(C>>>0<3?1:(C|0)>(c[(wc&p)>>2]|0))){t=(c[(vc&p)>>2]|0)+(C+-1)|0;u=a[(t&n)>>0]|0;if(u<<24>>24>-1){u=u&255;c[(Nd&p)>>2]=u}else{mm(t,Nd)|0;u=c[(Nd&p)>>2]|0}if(!((u+-1|0)>>>0>8|(u|0)==7)){if(u>>>0>11)t=(u+-12|0)>>>1;else t=d[(u&n)+34336>>0]|0;v=c[(wc&p)>>2]|0;if(v>>>0>=(t+C|0)>>>0){om((c[(vc&p)>>2]|0)+(v-t)|0,u,Qd)|0;v=Qd;t=c[(v&p)>>2]|0;v=c[(v&p)+4>>2]|0;if((b[(qc&o)>>1]&9312)==0&(c[(uc&p)>>2]|0)==0){u=0;break}Qg($c);u=0;break}}}if(!((b[(qc&o)>>1]&9312)==0&(c[(uc&p)>>2]|0)==0))Qg($c);c[(ke&p)>>2]=68698;c[(ke&p)+4>>2]=10788;bd(11,13600,ke);u=11;t=0;v=0}else{t=0;v=0}while(0);if(u){t=r;ie=1318;break c}S=L;c[(S&p)>>2]=t;c[(S&p)+4>>2]=v;b[(K&o)>>1]=4;S=z;T=s;U=W;V=X;u=L}else{S=z;T=s;U=W;V=X;u=L}break}case 865:{ie=0;w=c[(C&p)>>2]|0;C=c[((c[(Xd&p)>>2]|0)+(K<<4)&p)+12>>2]|0;t=c[(C&p)+16>>2]|0;if(t)do{v=(c[(t&p)+8>>2]|0)+32|0;if((c[(v&p)>>2]|0)==(A|0))c[(v&p)>>2]=w;t=c[(t&p)>>2]|0}while((t|0)!=0);t=c[(C&p)+32>>2]|0;if(t)do{v=(c[(t&p)+8>>2]|0)+40|0;if((c[(v&p)>>2]|0)==(A|0))c[(v&p)>>2]=w;t=c[(t&p)>>2]|0}while((t|0)!=0);S=z;T=s;U=W;V=X;x=K+1&255;break}case 878:{ie=0;_m(le,u);S=z;T=s;U=W;V=X;u=J;break}case 881:{ie=0;V=c[(s+(r*20|0)&p)+4>>2]|0;c[(Zc&p)>>2]=le;c[(ia&p)>>2]=V;c[(ja&p)>>2]=je;u=c[(s+(r*20|0)&p)+16>>2]|0;c[(ke&p)>>2]=c[((c[(Xd&p)>>2]|0)+(V<<4)&p)>>2];c[(ke&p)+4>>2]=(V|0)==1?13184:13208;c[(ke&p)+8>>2]=u;u=uh(le,42048,ke)|0;if(!u){t=r;u=x;ie=882;break c}a[(ka&n)>>0]=1;c[(la&p)>>2]=0;t=Qe(le,u,22,Zc,0)|0;t=(t|0)==0?c[(la&p)>>2]|0:t;mg(le,u);a[(ka&n)>>0]=0;if(!t){S=z;T=s;U=W;V=X;u=J}else{s=t;t=r;u=x;ie=884;break c}break}case 886:{ie=0;kg(le,Ik((c[((c[(Xd&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<4)&p)+12>>2]|0)+8|0,c[(s+(r*20|0)&p)+16>>2]|0,0)|0);c[(Tb&p)>>2]=c[(Tb&p)>>2]|2;S=z;T=s;U=W;V=X;break}case 887:{ie=0;C=Ik((c[((c[(Xd&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<4)&p)+12>>2]|0)+24|0,c[(s+(r*20|0)&p)+16>>2]|0,0)|0;if(C){t=(c[(C&p)+12>>2]|0)+8|0;u=c[(t&p)>>2]|0;z:do if((u|0)==(C|0))c[(t&p)>>2]=c[(C&p)+20>>2];else{do{if(!u)break z;t=u+20|0;u=c[(t&p)>>2]|0}while((u|0)!=(C|0));c[(t&p)>>2]=c[(C&p)+20>>2]}while(0);Jk(le,C)}c[(Tb&p)>>2]=c[(Tb&p)>>2]|2;S=z;T=s;U=W;V=X;u=J;break}case 895:{ie=0;C=Ik((c[((c[(Xd&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<4)&p)+12>>2]|0)+40|0,c[(s+(r*20|0)&p)+16>>2]|0,0)|0;if(!C){S=z;T=s;U=W;V=X}else{t=c[(C&p)+20>>2]|0;if((t|0)==(c[(C&p)+24>>2]|0)){t=bn(t+8|0,c[(C&p)+4>>2]|0,ke)|0;if(!t)t=0;else t=c[(t&p)+8>>2]|0;v=t+64|0;while(1){V=c[(v&p)>>2]|0;t=V+32|0;if((V|0)==(C|0))break;else v=t}c[(v&p)>>2]=c[(t&p)>>2]}jg(le,C);c[(Tb&p)>>2]=c[(Tb&p)>>2]|2;S=z;T=s;U=W;V=X}break}case 903:{ie=0;L=c[(s+(t*20|0)&p)+8>>2]|0;v=mh(le,(L<<2)+4|0,0)|0;if(!v){y=ge;z=je;r=m;m=x;ie=1317;break a}A=c[(s+(t*20|0)&p)+12>>2]|0;r=c[(s+(t*20|0)&p)+4>>2]|0;M=z+(r*40|0)|0;if((L|0)>0){C=0;do{V=Vg(z+((C+r|0)*40|0)|0)|0;c[(v+(C<<2)&p)>>2]=V;C=C+1|0}while((C|0)!=(L|0));C=L}else C=0;c[(v+(C<<2)&p)>>2]=0;I=c[((c[(Xd&p)>>2]|0)+(d[(s+(t*20|0)&n)+3>>0]<<4)&p)+4>>2]|0;P=z+(A*40|0)|0;V=c[(P&p)>>2]|0;O=c[(I&p)+4>>2]|0;c[(O&p)+4>>2]=c[(I&p)>>2];I=c[(O&p)>>2]|0;w=c[((c[(I&p)+204>>2]|0)&p)+12>>2]|0;c[(Sd&p)>>2]=O;c[(ma&p)>>2]=I;I=c[(O&p)+44>>2]|0;c[(na&p)>>2]=I;c[(oa&p)>>2]=V;c[(pa&p)>>2]=0;c[(pa&p)+4>>2]=0;c[(pa&p)+8>>2]=0;c[(pa&p)+12>>2]=0;c[(pa&p)+16>>2]=0;do if(!I){A=0;C=0}else{J=(I>>>3)+1|0;H=qg(J,0)|0;if(!H){c[(sa&p)>>2]=0;A=0;C=1;break}fw(H|0,0,J|0)|0;c[(sa&p)>>2]=H;N=O+32|0;J=(((c[2514]|0)>>>0)/((c[(N&p)>>2]|0)>>>0)|0)+1|0;if(J>>>0<=I>>>0){V=H+(J>>>3)|0;a[(V&n)>>0]=d[(V&n)>>0]|1<<(J&7)}c[(ua&p)>>2]=Nd;c[(va&p)>>2]=Nd;c[(ta&p)>>2]=0;c[(wa&p)>>2]=0;c[(xa&p)>>2]=100;c[(ya&p)>>2]=1e9;a[(Aa&n)>>0]=0;a[(za&n)>>0]=2;c[(ra&p)>>2]=43592;C=c[((c[(O&p)+12>>2]|0)&p)+56>>2]|0;cn(Sd,1,d[(C&n)+33>>0]<<16|d[(C&n)+32>>0]<<24|d[(C&n)+34>>0]<<8|d[(C&n)+35>>0],d[(C&n)+37>>0]<<16|d[(C&n)+36>>0]<<24|d[(C&n)+38>>0]<<8|d[(C&n)+39>>0]);c[(ra&p)>>2]=0;C=c[(oa&p)>>2]|0;if(!((L|0)<1|(C|0)==0)){F=O+17|0;H=0;do{I=v+(H<<2)|0;J=c[(I&p)>>2]|0;if(J){if((a[(F&n)>>0]|0)!=0&(J|0)>1){dn(Sd,J,1,0);J=c[(I&p)>>2]|0}c[(ra&p)>>2]=43608;en(Sd,J,0,0)|0;c[(ra&p)>>2]=0;C=c[(oa&p)>>2]|0}H=H+1|0}while(!((H|0)>=(L|0)|(C|0)==0))}if(!((c[(na&p)>>2]|0)==0|(C|0)==0)){E=O+17|0;C=O+36|0;L=1;do{H=L>>>3;J=a[((c[(sa&p)>>2]|0)+H&n)>>0]|0;F=1<<(L&7);do if(!(J&255&F)){if(L>>>0<2)I=0;else{I=L+-2|0;I=I-((I>>>0)%(((((c[(C&p)>>2]|0)>>>0)/5|0)+1|0)>>>0)|0)|0;I=((I+1|0)==(((c[2514]|0)>>>0)/((c[(N&p)>>2]|0)>>>0)|0|0)?3:2)+I|0}if((I|0)==(L|0)?(a[(E&n)>>0]|0)!=0:0)break;c[(ke&p)>>2]=L;fn(Sd,43632,ke);J=a[((c[(sa&p)>>2]|0)+H&n)>>0]|0}while(0);do if(J&255&F){if(L>>>0<2)J=0;else{J=L+-2|0;J=J-((J>>>0)%(((((c[(C&p)>>2]|0)>>>0)/5|0)+1|0)>>>0)|0)|0;J=((J+1|0)==(((c[2514]|0)>>>0)/((c[(N&p)>>2]|0)>>>0)|0|0)?3:2)+J|0}if((J|0)!=(L|0))break;if(!(a[(E&n)>>0]|0))break;c[(ke&p)>>2]=L;fn(Sd,43656,ke)}while(0);L=L+1|0}while(!((c[(oa&p)>>2]|0)==0?1:L>>>0>(c[(na&p)>>2]|0)>>>0))}C=c[((c[((c[(O&p)>>2]|0)&p)+204>>2]|0)&p)+12>>2]|0;if((w|0)!=(C|0)){c[(ke&p)>>2]=w;c[(ke&p)+4>>2]=C;fn(Sd,43696,ke)}Wc(c[(sa&p)>>2]|0);if(c[(qa&p)>>2]|0){gn(ta);A=0;C=(c[(pa&p)>>2]|0)+1|0;break}C=c[(pa&p)>>2]|0;if(!C)gn(ta);A=tg(ta)|0}while(0);mg(le,v);U=P;U=dw(c[(U&p)>>2]|0,c[(U&p)+4>>2]|0,C|0,((C|0)<0)<<31>>31|0)|0;V=P;c[(V&p)>>2]=U;c[(V&p)+4>>2]=G;r=z+(r*40|0)+8|0;if(!(b[(r&o)>>1]&9312))b[(r&o)>>1]=1;else vg(M);if(C){if(!A){y=ge;z=je;r=m;m=x;ie=1317;break a}Xg(M,A,-1,1,1)|0}Yl(M,xb)|0;S=z;T=s;U=W;V=X;r=t;break}case 947:{ie=0;v=c[(s+(t*20|0)&p)+4>>2]|0;r=z+(v*40|0)|0;u=c[(s+(t*20|0)&p)+8>>2]|0;v=z+(v*40|0)+8|0;if((b[(v&o)>>1]&32)==0?(hn(r),(b[(v&o)>>1]&32)==0):0){y=ge;z=je;r=m;m=x;ie=1317;break a}S=z+(u*40|0)|0;jn(c[(r&p)>>2]|0,c[(S&p)>>2]|0,c[(S&p)+4>>2]|0);S=z;T=s;U=W;V=X;u=J;r=t;break}case 966:{ie=0;r=c[(s+(t*20|0)&p)+4>>2]|0;P=z+(r*40|0)|0;O=z+((c[(s+(t*20|0)&p)+12>>2]|0)*40|0)|0;N=c[(s+(t*20|0)&p)+16>>2]|0;r=z+(r*40|0)+8|0;if((b[(r&o)>>1]&32)==0?(hn(P),(b[(r&o)>>1]&32)==0):0){y=ge;z=je;r=m;m=x;ie=1317;break a}if(N){L=c[(P&p)>>2]|0;v=O;M=c[(v&p)>>2]|0;v=c[(v&p)+4>>2]|0;K=L+28|0;if((c[(K&p)>>2]|0)!=(N|0)){C=L+8|0;J=c[(C&p)>>2]|0;if(J){I=L+20|0;A=L+26|0;if(!(b[(A&o)>>1]&1))J=kn(J)|0;H=c[(I&p)>>2]|0;A:do if(!H){ld=J;rd=I;ie=978}else{while(1){I=H+12|0;F=c[(I&p)>>2]|0;if(!F)break;E=H+8|0;ln(F,ke,Sd);c[(I&p)>>2]=0;J=mn(c[(ke&p)>>2]|0,J)|0;H=c[(E&p)>>2]|0;if(!H){ld=J;rd=E;ie=978;break A}}c[(I&p)>>2]=nn(J)|0}while(0);if((ie|0)==978?(ie=0,Kc=on(L)|0,c[(rd&p)>>2]=Kc,(Kc|0)!=0):0){V=Kc;c[(V&p)>>2]=0;c[(V&p)+4>>2]=0;c[(Kc&p)+8>>2]=0;c[(Kc&p)+12>>2]=nn(ld)|0}c[(C&p)>>2]=0;c[(L&p)+12>>2]=0;b[(A&o)>>1]=e[(A&o)>>1]|1}c[(K&p)>>2]=N}C=c[(L&p)+20>>2]|0;B:do if(C){C:while(1){A=c[(C&p)+12>>2]|0;if(A)do{r=A;E=c[(r&p)>>2]|0;r=c[(r&p)+4>>2]|0;if((r|0)<(v|0)|(r|0)==(v|0)&E>>>0>>0)A=A+8|0;else{if(!((r|0)>(v|0)|(r|0)==(v|0)&E>>>0>M>>>0))break C;A=A+12|0}A=c[(A&p)>>2]|0}while((A|0)!=0);C=c[(C&p)+8>>2]|0;if(!C)break B}S=z;T=s;U=W;V=X;r=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;break q}while(0);if((N|0)>-1)C=O;else{S=z;T=s;U=W;V=X;r=t;break}}else C=O;S=C;jn(c[(P&p)>>2]|0,c[(S&p)>>2]|0,c[(S&p)+4>>2]|0);S=z;T=s;U=W;V=X;r=t;break}case 993:{ie=0;K=c[(s+(r*20|0)&p)+16>>2]|0;I=c[(s+(r*20|0)&p)+12>>2]|0;L=z+(I*40|0)|0;if((a[(s+(r*20|0)&n)+3>>0]|0)!=0?(Lc=c[(K&p)+20>>2]|0,nd=c[(sb&p)>>2]|0,(nd|0)!=0):0){t=nd;while(1){if((c[(t&p)+28>>2]|0)==(Lc|0)){S=z;T=s;U=W;V=X;break q}t=c[(t&p)+4>>2]|0;if(!t){t=r;break}}}else t=r;r=c[(tb&p)>>2]|0;if((r|0)>=(c[(Ba&p)>>2]|0)){u=x;ie=998;break c}E=z+(I*40|0)+8|0;if(!(b[(E&o)>>1]&64)){C=K+12|0;A=c[(C&p)>>2]|0;r=A+(c[(K&p)+8>>2]|0)|0;s=K+16|0;A=(A<<2)+80+(c[(s&p)>>2]|0)+(r*40|0)|0;J=mh(le,A,((A|0)<0)<<31>>31)|0;if(!J){y=ge;z=je;r=m;m=x;ie=1317;break a}fw(J|0,0,A|0)|0;if(!((b[(E&o)>>1]&9312)==0?(c[(z+(I*40|0)&p)+24>>2]|0)==0:0))Qg(L);b[(E&o)>>1]=64;c[(L&p)>>2]=J;c[(J&p)>>2]=f;c[(J&p)+60>>2]=r;c[(J&p)+64>>2]=c[(C&p)>>2];c[(J&p)+44>>2]=t;c[(J&p)+16>>2]=c[(Nc&p)>>2];c[(J&p)+52>>2]=c[(Ca&p)>>2];c[(J&p)+24>>2]=c[(Ib&p)>>2];c[(J&p)+40>>2]=c[(Da&p)>>2];c[(J&p)+8>>2]=c[(zc&p)>>2];c[(J&p)+48>>2]=c[(Ea&p)>>2];c[(J&p)+28>>2]=c[(K&p)+20>>2];c[(J&p)+20>>2]=c[(Hb&p)>>2];c[(J&p)+56>>2]=c[(Fa&p)>>2];z=J+80|0;r=z+(r*40|0)|0;if((z|0)!=(r|0))do{b[(z&o)+8>>1]=128;c[(z&p)+32>>2]=le;z=z+40|0}while((z|0)!=(r|0));r=c[(tb&p)>>2]|0;z=J}else{s=K+16|0;z=c[(L&p)>>2]|0}c[(tb&p)>>2]=r+1;c[(z&p)+4>>2]=c[(sb&p)>>2];S=z+32|0;c[(S&p)>>2]=m;c[(S&p)+4>>2]=l;c[(z&p)+68>>2]=c[(ub&p)>>2];c[(z&p)+72>>2]=c[((c[(f&p)>>2]|0)&p)+80>>2];c[(ub&p)>>2]=0;c[(sb&p)>>2]=z;S=z+40|0;c[(Nc&p)>>2]=S;U=c[(z&p)+60>>2]|0;c[(Ca&p)>>2]=U;V=c[(z&p)+64>>2]&65535;c[(Da&p)>>2]=V;U=S+((U+1|0)*40|0)|0;c[(Ib&p)>>2]=U;T=c[(K&p)>>2]|0;c[(zc&p)>>2]=T;c[(Ea&p)>>2]=c[(K&p)+4>>2];V=U+(V<<2)|0;c[(Hb&p)>>2]=V;U=c[(s&p)>>2]|0;c[(Fa&p)>>2]=U;fw(V|0,0,U|0)|0;U=W;V=X;r=-1;break}case 1009:{ie=0;S=c[(sb&p)>>2]|0;Zl(u,(c[(S&p)+16>>2]|0)+(((c[((c[(S&p)+8>>2]|0)+((c[(S&p)+44>>2]|0)*20|0)&p)+4>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]|0)|0)*40|0)|0,4096);S=z;T=s;U=W;V=X;break}case 1010:{ie=0;if(c[(Tb&p)>>2]&16777216){T=c[(s+(r*20|0)&p)+8>>2]|0;S=Rb;T=jw(c[(S&p)>>2]|0,c[(S&p)+4>>2]|0,T|0,((T|0)<0)<<31>>31|0)|0;S=Rb;c[(S&p)>>2]=T;c[(S&p)+4>>2]=G;S=z;T=s;U=W;V=X;u=J;break}t=c[(s+(r*20|0)&p)+8>>2]|0;u=((t|0)<0)<<31>>31;if(!(c[(s+(r*20|0)&p)+4>>2]|0)){T=_d;T=jw(c[(T&p)>>2]|0,c[(T&p)+4>>2]|0,t|0,u|0)|0;S=_d;c[(S&p)>>2]=T;c[(S&p)+4>>2]=G;S=z;T=s;U=W;V=X;u=J;break}else{T=Qb;T=jw(c[(T&p)>>2]|0,c[(T&p)+4>>2]|0,t|0,u|0)|0;S=Qb;c[(S&p)>>2]=T;c[(S&p)+4>>2]=G;S=z;T=s;U=W;V=X;u=J;break}}case 1015:{ie=0;if(!(c[(s+(r*20|0)&p)+4>>2]|0)){V=_d;if(!((c[(V&p)>>2]|0)==0&(c[(V&p)+4>>2]|0)==0)){S=z;T=s;U=W;V=X;break}V=Rb;if(!((c[(V&p)>>2]|0)==0&(c[(V&p)+4>>2]|0)==0)){S=z;T=s;U=W;V=X;break}S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0;break}else{V=Qb;if(!((c[(V&p)>>2]|0)==0&(c[(V&p)+4>>2]|0)==0)){S=z;T=s;U=W;V=X;break}V=Rb;if(!((c[(V&p)>>2]|0)==0&(c[(V&p)+4>>2]|0)==0)){S=z;T=s;U=W;V=X;break}S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0;break}}case 1022:{ie=0;t=c[(sb&p)>>2]|0;if(!t)v=z+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)|0;else{while(1){u=c[(t&p)+4>>2]|0;if(!u)break;else t=u}v=(c[(t&p)+16>>2]|0)+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)|0}U=Vg(v)|0;V=v;c[(V&p)>>2]=U;c[(V&p)+4>>2]=G;V=v+8|0;b[(V&o)>>1]=e[(V&o)>>1]&48640|4;V=c[(s+(r*20|0)&p)+8>>2]|0;U=z+(V*40|0)|0;t=Vg(U)|0;u=G;c[(U&p)>>2]=t;c[(U&p)+4>>2]=u;V=z+(V*40|0)+8|0;b[(V&o)>>1]=e[(V&o)>>1]&48640|4;V=v;U=c[(V&p)+4>>2]|0;if((U|0)<(u|0)|((U|0)==(u|0)?(c[(V&p)>>2]|0)>>>0>>0:0)){S=v;c[(S&p)>>2]=t;c[(S&p)+4>>2]=u;S=z;T=s;U=W;V=X;u=L}else{S=z;T=s;U=W;V=X;u=L}break}case 1028:{ie=0;V=z+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)|0;U=c[(V&p)+4>>2]|0;if((U|0)>0|(U|0)==0&(c[(V&p)>>2]|0)>>>0>0){S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0}else{S=z;T=s;U=W;V=X}break}case 1030:{ie=0;T=c[(s+(r*20|0)&p)+12>>2]|0;U=z+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)|0;V=U;T=jw(c[(V&p)>>2]|0,c[(V&p)+4>>2]|0,T|0,((T|0)<0)<<31>>31|0)|0;V=G;c[(U&p)>>2]=T;c[(U&p)+4>>2]=V;if((V|0)<0){S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0}else{S=z;T=s;U=W;V=X}break}case 1032:{ie=0;t=z+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)|0;v=t;u=c[(v&p)>>2]|0;v=c[(v&p)+4>>2]|0;if((u|0)==0&(v|0)==0){S=z;T=s;U=W;V=X;u=J}else{T=c[(s+(r*20|0)&p)+12>>2]|0;T=jw(T|0,((T|0)<0)<<31>>31|0,u|0,v|0)|0;S=t;c[(S&p)>>2]=T;c[(S&p)+4>>2]=G;S=z;T=s;U=W;V=X;u=J;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0}break}case 1034:{ie=0;T=z+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)|0;U=T;U=jw(c[(U&p)>>2]|0,c[(U&p)+4>>2]|0,-1,-1)|0;V=G;c[(T&p)>>2]=U;c[(T&p)+4>>2]=V;if((U|0)==0&(V|0)==0){S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0}else{S=z;T=s;U=W;V=X}break}case 1036:{ie=0;T=z+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)|0;V=T;U=c[(V&p)>>2]|0;V=c[(V&p)+4>>2]|0;S=jw(U|0,V|0,1,0)|0;c[(T&p)>>2]=S;c[(T&p)+4>>2]=G;if((U|0)==0&(V|0)==0){S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0}else{S=z;T=s;U=W;V=X}break}case 1157:{ie=0;S=z;T=s;U=W;V=X;r=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;break}case 1158:{ie=0;if(c[(s+(r*20|0)&p)+4>>2]|0){b[(Yd&o)>>1]=b[(Yd&o)>>1]|8;S=z;T=s;U=W;V=X;break}t=c[(Vb&p)>>2]|0;if(!t){S=z;T=s;U=W;V=X}else{do{V=t+88|0;b[(V&o)>>1]=b[(V&o)>>1]|8;t=c[(t&p)+52>>2]|0}while((t|0)!=0);S=z;T=s;U=W;V=X}break}case 1166:{ie=0;J=(c[(w&p)>>2]|0)+72|0;t=c[(J&p)>>2]|0;D:do if(t){while(1){if((c[(t&p)+4>>2]|0)==(A|0)?(c[(t&p)>>2]|0)==(C|0):0)break;t=c[(t&p)+12>>2]|0;if(!t){ie=1171;break D}}if(!t)ie=1171}else ie=1171;while(0);if((ie|0)==1171){ie=0;t=qg(16,0)|0;if(!t){t=r;s=7;u=x;ie=1309;break c}U=t+0|0;V=U+12|0;do{a[(U&n)>>0]=0;U=U+1|0}while((U|0)<(V|0));c[(t&p)+4>>2]=A;c[(t&p)>>2]=C;c[(t&p)+12>>2]=c[(J&p)>>2];c[(J&p)>>2]=t}t=t+8|0;if((d[(t&n)>>0]|0)<(v&255)){a[(t&n)>>0]=v;S=z;T=s;U=W;V=X}else{S=z;T=s;U=W;V=X}break}case 1213:{ie=0;c[(sd&p)>>2]=0;v=c[((c[(s+(r*20|0)&p)+16>>2]|0)&p)+8>>2]|0;if(!v){t=r;s=6;u=x;ie=1309;break c}w=c[(v&p)>>2]|0;if(!w){t=r;s=6;u=x;ie=1309;break c}C=rc[c[(w&p)+24>>2]&127](v,sd)|0;Mm(f,v);if(C){t=r;s=C;u=x;ie=1309;break c}c[(c[(sd&p)>>2]&p)>>2]=v;t=xm(f,c[(s+(r*20|0)&p)+4>>2]|0,0,-1,0)|0;if(!t){a[(ge&n)>>0]=1;lc[c[(w&p)+28>>2]&127](c[(sd&p)>>2]|0)|0;S=z;T=s;U=W;V=X;break}else{c[(t&p)+32>>2]=c[(sd&p)>>2];S=v+4|0;c[(S&p)>>2]=(c[(S&p)>>2]|0)+1;S=z;T=s;U=W;V=X;break}}case 1226:{ie=0;t=z+(C*40|0)+8|0;if(!(b[(t&o)>>1]&9312)){b[(t&o)>>1]=1;S=z;T=s;U=W;V=X;break}else{vg(A);S=z;T=s;U=W;V=X;break}}case 1257:{ie=0;S=u;c[(S&p)>>2]=c[((c[((c[((c[(Xd&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<4)&p)+4>>2]|0)&p)+4>>2]|0)&p)+44>>2];c[(S&p)+4>>2]=0;S=z;T=s;U=W;V=X;break}case 1258:{ie=0;v=c[((c[(Xd&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<4)&p)+4>>2]|0;t=c[(s+(r*20|0)&p)+12>>2]|0;u=c[(v&p)+4>>2]|0;if(!t)t=0;else{V=c[(u&p)+44>>2]|0;t=V>>>0>>0?t:V}c[(u&p)+4>>2]=c[(v&p)>>2];u=(c[(u&p)>>2]|0)+156|0;if((t|0)>0)c[(u&p)>>2]=t;else t=c[(u&p)>>2]|0;S=J;c[(S&p)>>2]=t;c[(S&p)+4>>2]=((t|0)<0)<<31>>31;S=z;T=s;U=W;V=X;u=J;break}case 1264:{ie=0;r=c[(s+(t*20|0)&p)+8>>2]|0;r=(r|0)==0?t:r+-1|0;if((c[(Sa&p)>>2]|0)!=0?(b[(Yd&o)>>1]&512)==0:0){t=c[(s+(t*20|0)&p)+16>>2]|0;if(!t){t=c[(ce&p)>>2]|0;if(!t){S=z;T=s;U=W;V=X;u=L;break}}c[(Sd&p)>>2]=0;F=c[(f&p)>>2]|0;v=c[(F&p)+88>>2]|0;c[(fb&p)>>2]=Nd;c[(gb&p)>>2]=Nd;c[(hb&p)>>2]=0;c[(ib&p)>>2]=100;c[(jb&p)>>2]=v;a[(kb&n)>>0]=1;a[(lb&n)>>0]=0;c[(qd&p)>>2]=F;v=a[(t&n)>>0]|0;u=v<<24>>24==0;E:do if((c[(F&p)+160>>2]|0)>1){if(!u)while(1){u=t;do{u=u+1|0;if(v<<24>>24==10)break;v=a[(u&n)>>0]|0}while(v<<24>>24!=0);Sk(qd,42288,3);Sk(qd,t,u-t|0);v=a[(u&n)>>0]|0;if(!(v<<24>>24))break;else t=u}}else if(!u){H=F+62|0;K=1;do{F:do if(!(v<<24>>24)){A=0;u=0}else{C=t;u=0;while(1){A=Cn(C,ke)|0;if((c[(ke&p)>>2]|0)==135)break F;u=A+u|0;C=C+A|0;if(!(a[(C&n)>>0]|0)){A=0;break}}}while(0);Sk(qd,t,u);C=t+u|0;if(!A)break E;do if((a[(C&n)>>0]|0)==63)if((A|0)>1){Dn(t+(u+1)|0,Sd)|0;C=c[(Sd&p)>>2]|0;break}else{c[(Sd&p)>>2]=K;C=K;break}else{C=qh(f,C,A)|0;c[(Sd&p)>>2]=C}while(0);t=t+(u+A)|0;K=C+1|0;J=C+-1|0;I=c[(Ab&p)>>2]|0;C=I+(J*40|0)|0;A=e[(I+(J*40|0)&o)+8>>1]|0;do if(!(A&1)){if(A&4){T=C;U=c[(T&p)+4>>2]|0;V=ke;c[(V&p)>>2]=c[(T&p)>>2];c[(V&p)+4>>2]=U;En(qd,0,19920,ke);break}if(A&8){h[(k&q)>>3]=+h[(C&q)>>3];c[(ke&p)>>2]=c[(k&p)>>2];c[(ke&p)+4>>2]=c[(k&p)+4>>2];En(qd,0,20272,ke);break}if(!(A&2)){if(A&16384){c[(ke&p)>>2]=c[(C&p)>>2];En(qd,0,42304,ke);break}Sk(qd,42320,2);E=c[(I+(J*40|0)&p)+12>>2]|0;if((E|0)>0){C=I+(J*40|0)+16|0;A=0;do{c[(ke&p)>>2]=d[((c[(C&p)>>2]|0)+A&n)>>0];En(qd,0,42328,ke);A=A+1|0}while((A|0)!=(E|0))}Sk(qd,42336,1);break}else{E=a[(H&n)>>0]|0;if(E<<24>>24==1){V=c[(I+(J*40|0)&p)+16>>2]|0;c[(ke&p)>>2]=c[(I+(J*40|0)&p)+12>>2];c[(ke&p)+4>>2]=V;En(qd,0,42296,ke);break}U=Od+0|0;V=U+40|0;do{c[(U&p)>>2]=0;U=U+4|0}while((U|0)<(V|0));c[(nb&p)>>2]=F;Xg(Od,c[(I+(J*40|0)&p)+16>>2]|0,c[(I+(J*40|0)&p)+12>>2]|0,E,0)|0;V=c[(ob&p)>>2]|0;if(!((V&2|0)==0|(V&16711680|0)==65536))Bn(Od,1)|0;V=c[(qb&p)>>2]|0;c[(ke&p)>>2]=c[(pb&p)>>2];c[(ke&p)+4>>2]=V;En(qd,0,42296,ke);if((b[(ob&o)>>1]&9312)==0&(c[(rb&p)>>2]|0)==0)break;Qg(Od);break}}else Sk(qd,20304,4);while(0);v=a[(t&n)>>0]|0}while(v<<24>>24!=0)}while(0);S=tg(qd)|0;jc[c[(Sa&p)>>2]&15](c[(mb&p)>>2]|0,S);mg(le,S);S=z;T=s;U=W;V=X;u=L}else{S=z;T=s;U=W;V=X;u=L}break}}if((ie|0)==28){ie=0;z=s+(r*20|0)+4|0;t=c[(z&p)>>2]|0;if(t){y=z;ie=34;break}z=c[(sb&p)>>2]|0;if(!z){ie=30;break}c[(sb&p)>>2]=c[(z&p)+4>>2];c[(tb&p)>>2]=(c[(tb&p)>>2]|0)+-1;l=c[(ub&p)>>2]|0;c[(vb&p)>>2]=l;c[(wb&p)>>2]=(c[(wb&p)>>2]|0)+l;z=Xl(z)|0;l=ne;t=c[(zc&p)>>2]|0;if((c[(s+(r*20|0)&p)+8>>2]|0)==4)r=(c[(t+(z*20|0)&p)+8>>2]|0)+-1|0;else r=z;m=c[(l&p)>>2]|0;l=c[(l&p)+4>>2]|0;S=c[(Nc&p)>>2]|0;T=t;U=W;V=X}else if((ie|0)==488){ie=0;u=sm(le,C,A)|0;if(!u){S=z;T=s;U=W;V=X;u=E}else{t=r;ie=1318;break}}z=S;s=T;W=U;X=V;t=r+1|0}switch(ie|0){case 30:{c[(me&p)>>2]=t;a[(fe&n)>>0]=c[(s+(r*20|0)&p)+8>>2];c[(he&p)>>2]=r;ie=41;break}case 34:{c[(me&p)>>2]=t;a[(fe&n)>>0]=c[(s+(r*20|0)&p)+8>>2];c[(he&p)>>2]=r;t=a[(s+(r*20|0)&n)+3>>0]|0;if(!(t<<24>>24)){s=c[(s+(r*20|0)&p)+16>>2]|0;if(!s){s=0;ie=39}else{c[(ke&p)>>2]=s;dh(je,le,10344,ke)}}else{u=c[((t&255)+-1<<2&p)+41536>>2]|0;t=c[(s+(r*20|0)&p)+16>>2]|0;if(!t){s=u;ie=39}else{c[(ke&p)>>2]=u;c[(ke&p)+4>>2]=t;dh(je,le,41624,ke)}}if((ie|0)==39){c[(ke&p)>>2]=s;dh(je,le,41656,ke)}ie=c[(y&p)>>2]|0;qd=c[(ce&p)>>2]|0;rd=c[(je&p)>>2]|0;c[(ke&p)>>2]=r;c[(ke&p)+4>>2]=qd;c[(ke&p)+8>>2]=rd;bd(ie,41600,ke);ie=41;break}case 80:{x=c[(be&p)>>2]|0;if(!((x|0)==0|g>>>0>>0)?(lc[x&127](c[(Zd&p)>>2]|0)|0)!=0:0){r=m;s=9;m=u;ie=1311;break a}rd=_d;qd=c[(rd&p)+4>>2]|0;if((qd|0)>0|(qd|0)==0&(c[(rd&p)>>2]|0)>>>0>0){s=c[(f&p)>>2]|0;c[(me&p)>>2]=787;a[(fe&n)>>0]=2;dh(je,s,34376,ke);s=1;ie=1309;break}x=$l(f,1)|0;if(!x){c[($d&p)>>2]=(c[($d&p)>>2]|0)+2|1;y=c[(s+(t*20|0)&p)+4>>2]|0;c[(de&p)>>2]=z+(y*40|0);r=s+(t*20|0)+8|0;if((c[(r&p)>>2]|0)>0){x=0;do{v=x+y|0;w=z+(v*40|0)|0;v=z+(v*40|0)+8|0;s=b[(v&o)>>1]|0;if(s&4096){if(Vl(w)|0){y=ge;z=je;r=m;m=u;ie=1317;break a}s=b[(v&o)>>1]|0}if((s&514)==2)am(w)|0;x=x+1|0}while((x|0)<(c[(r&p)>>2]|0))}if(a[(ge&n)>>0]|0){y=ge;z=je;r=m;m=u;ie=1317;break a}c[(he&p)>>2]=t+1;r=m;m=g;g=100;break a}else{s=x;ie=1309}break}case 313:{c[(ke&p)>>2]=73058;c[(ke&p)+4>>2]=10788;bd(11,13600,ke);s=11;ie=1309;break}case 343:{c[(ke&p)>>2]=73142;c[(ke&p)+4>>2]=10788;bd(11,13600,ke);s=11;ie=1309;break}case 447:{dh(je,le,41712,ke);t=r;s=5;ie=1309;break}case 460:{c[(ke&p)>>2]=s;dh(je,le,41768,ke);s=1;ie=1309;break}case 462:{dh(je,le,41792,ke);s=5;ie=1309;break}case 467:{c[(he&p)>>2]=g;a[(ee&n)>>0]=0;c[(me&p)>>2]=5;g=5;break a}case 489:{v=c[(s+(t*20|0)&p)+4>>2]|0;s=c[(s+(t*20|0)&p)+8>>2]|0;g=(v|0)!=0;if(g){s=(s|0)!=0;if(!(s|(a[(ee&n)>>0]|0)!=0))if((c[(ae&p)>>2]|0)>0){dh(je,le,41848,ke);g=m;m=r;s=5;ie=1309;break}else s=0}else s=(s|0)!=0;if((v|0)==(d[(ee&n)>>0]|0)){if(g)g=s?41952:42e3;else g=41904;dh(je,le,g,ke);g=m;m=r;s=1;ie=1309;break}if(!s){g=tm(f,1)|0;if(g)break a;a[(ee&n)>>0]=v;if((Rl(f)|0)==5){c[(he&p)>>2]=t;a[(ee&n)>>0]=1-v;c[(me&p)>>2]=5;g=5;break a}}else{Kl(le,516);a[(ee&n)>>0]=1}Ll(le);g=(c[(me&p)>>2]|0)==0?101:1;break a}case 508:{c[(he&p)>>2]=g;c[(me&p)>>2]=5;g=5;break a}case 522:{mg(le,c[(je&p)>>2]|0);c[(je&p)>>2]=kh(le,16040)|0;s=c[(s&p)>>2]|0;if((c[(c[((c[(Xd&p)>>2]|0)+(s<<4)&p)+12>>2]&p)>>2]|0)!=(v|0))vm(le,s);b[(Yd&o)>>1]=b[(Yd&o)>>1]|8;s=17;ie=1309;break}case 542:{c[(ke&p)>>2]=73997;c[(ke&p)+4>>2]=10788;bd(11,13600,ke);u=11;x=s;ie=1318;break}case 560:{c[(s&p)+56>>2]=0;s=7;ie=1309;break}case 832:{a[(fe&n)>>0]=2;s=6;ie=1309;break}case 882:{Eg(le);y=ge;z=je;r=m;m=u;ie=1317;break a}case 884:{Eg(le);if((s|0)==7){y=ge;z=je;r=m;m=u;ie=1317;break a}else ie=1309;break}case 998:{dh(je,le,42112,ke);s=1;ie=1309;break}case 1080:{c[(ke&p)>>2]=s?42208:42216;dh(je,le,42152,ke);s=1;ie=1309;break}case 1101:{dh(je,le,42344,ke);s=1;ie=1309;break}case 1103:{dh(je,le,42384,ke);s=1;ie=1309;break}case 1145:{c[(ke&p)>>2]=56343;c[(ke&p)+4>>2]=10788;bd(11,13600,ke);s=11;ie=1309;break}case 1316:{dh(je,le,10096,ke);r=m;s=18;m=u;ie=1311;break a}}if((ie|0)==41)if((Rl(f)|0)==5){c[(me&p)>>2]=5;r=m;m=g;g=5;break a}else{r=m;m=g;g=(c[(me&p)>>2]|0)!=0?1:101;break a}else if((ie|0)==1309){r=m;t=t+1|0;m=u;ie=1311;break a}else if((ie|0)==1318){u=(a[(ge&n)>>0]|0)==0?u:7;if((u|0)==3082){r=m;s=3082;m=x;ie=1311;break a}else if((u|0)!=516){r=u&255;if(r>>>0>26|(r|0)==2)s=16328;else s=c[(r<<2&p)+15488>>2]|0}else s=16344;c[(ke&p)>>2]=s;dh(je,le,10344,ke);r=m;s=u;m=x;ie=1311;break a}}else{u=f+44|0;r=m;g=0;t=0;m=0}while(0);c[(me&p)>>2]=9;c[(ke&p)>>2]=15832;dh(u,le,10344,ke);s=9;ie=1311}while(0);if((ie|0)==1317){a[(y&n)>>0]=1;dh(z,le,15776,ke);s=7;ie=1311}if((ie|0)==1311){c[(me&p)>>2]=s;qd=c[(f&p)+168>>2]|0;rd=c[(f&p)+44>>2]|0;c[(ke&p)>>2]=t;c[(ke&p)+4>>2]=qd;c[(ke&p)+8>>2]=rd;bd(s,42256,ke);Rl(f)|0;if((s|0)==3082)a[(le&n)+65>>0]=1;if(!(m<<24>>24)){m=g;g=1}else{vm(le,(m&255)+-1|0);m=g;g=1}}rd=ne;c[(rd&p)>>2]=r;c[(rd&p)+4>>2]=l;rd=f+124|0;c[(rd&p)>>2]=(c[(rd&p)>>2]|0)+m;i=oe;return g|0} function Ev(e){e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=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=e+20|0;u=e+14|0;f=a[(u&n)>>0]|0;z=e+13|0;g=a[(z&n)>>0]|0;a:do if((f&255)>(g&255))f=0;else{B=e+4|0;C=e+16|0;v=e+8|0;w=e+12|0;x=e+24|0;y=e+28|0;i=f&255;j=c[(B&p)>>2]|0;h=c[(D&p)>>2]|0;b:while(1){t=c[(e+(i+-2<<2)&p)+24>>2]|0;s=c[(e+(i+-1<<2)&p)+24>>2]|0;if(j){while(1){r=j+12|0;if((h|0)<(c[(r&p)>>2]|0)){g=h;f=(c[(j&p)+20>>2]|0)+(h*48|0)|0;while(1){do if((c[(f&p)+8>>2]|0)==(t|0)?(c[(f&p)+12>>2]|0)==(s|0):0){if((d[(u&n)>>0]|0)>=3?(c[((c[(f&p)>>2]|0)&p)+4>>2]&1|0)!=0:0)break;q=f+18|0;h=b[(q&o)>>1]|0;if((h&1024)!=0?(A=a[(z&n)>>0]|0,(A&255)<22):0){i=c[((c[(f&p)>>2]|0)&p)+16>>2]|0;c:do if(!i)i=0;else while(1){k=c[(i&p)+4>>2]|0;if(!(k&4096))break c;if(!(k&262144))i=i+12|0;else i=c[((c[(i&p)+20>>2]|0)&p)+4>>2]|0;i=c[(i&p)>>2]|0;if(!i){i=0;break}}while(0);d:do if(!(A<<24>>24)){m=0;k=0}else{l=c[(i&p)+28>>2]|0;m=i+32|0;k=0;while(1){if((c[(e+(k<<2)&p)+24>>2]|0)==(l|0)?(c[(e+((k|1)<<2)&p)+24>>2]|0)==(b[(m&o)>>1]|0):0){m=A;break d}k=k+2|0;if((k|0)>=(A&255|0)){m=A;break}}}while(0);if((k|0)==(m&255|0)){c[(e+(k<<2)&p)+24>>2]=c[(i&p)+28>>2];c[(e+((k|1)<<2)&p)+24>>2]=b[(i&o)+32>>1];a[(z&n)>>0]=(d[(z&n)>>0]|0)+2}}i=h&65535;if(i&c[(C&p)>>2]){if((c[(v&p)>>2]|0)!=0&(i&128|0)==0){l=c[(c[(j&p)>>2]&p)>>2]|0;k=c[(f&p)>>2]|0;i=a[(w&n)>>0]|0;h=(nv(k)|0)<<24>>24;if((h|0)==66){if(i<<24>>24!=66)break}else if((h|0)!=65?i<<24>>24<=66:0)break;h=Ou(l,c[(k&p)+12>>2]|0,c[(k&p)+16>>2]|0)|0;if(!h)h=c[((c[(l&p)>>2]|0)&p)+8>>2]|0;if(dd(c[(h&p)>>2]|0,c[(v&p)>>2]|0)|0)break;h=b[(q&o)>>1]|0}if(!(h&2))break b;h=c[((c[(f&p)>>2]|0)&p)+16>>2]|0;if((a[(h&n)>>0]|0)!=-102)break b;if((c[(h&p)+28>>2]|0)!=(c[(x&p)>>2]|0))break b;if((b[(h&o)+32>>1]|0)!=(c[(y&p)>>2]|0))break b}}while(0);g=g+1|0;if((g|0)>=(c[(r&p)>>2]|0))break;else f=f+48|0}g=c[(B&p)>>2]|0}else g=j;j=c[(g&p)+4>>2]|0;c[(B&p)>>2]=j;if(!j)break;else h=0}f=a[(u&n)>>0]|0;g=a[(z&n)>>0]|0}j=c[(e&p)>>2]|0;c[(B&p)>>2]=j;h=(f&255)+2|0;f=h&255;a[(u&n)>>0]=f;if((f&255)>(g&255)){f=0;break a}else{i=h&255;h=0}}c[(D&p)>>2]=g+1}while(0);return f|0}function Fv(d,f){d=d|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0,m=0,q=0;g=c[(d&p)>>2]|0;l=c[(c[(g&p)>>2]&p)>>2]|0;d=c[(d&p)+16>>2]|0;a:do if(!d){g=g+16|0;i=c[(g&p)>>2]|0;k=f+36|0;if((c[(k&p)>>2]&512|0)!=0&(i|0)!=0){d=f+20|0;j=f+22|0;h=a[(f&n)+16>>0]|0;do{do if((a[(i&n)+16>>0]|0)==h<<24>>24?(c[(i&p)+36>>2]&512|0)!=0:0){if(Tv(i,f)|0){b[(d&o)>>1]=b[(i&o)+20>>1]|0;b[(j&o)>>1]=(e[(i&o)+22>>1]|0)+65535;break}if(Tv(f,i)|0){b[(d&o)>>1]=b[(i&o)+20>>1]|0;b[(j&o)>>1]=(e[(i&o)+22>>1]|0)+1}}while(0);i=c[(i&p)+52>>2]|0}while((i|0)!=0)}d=Uv(g,f)|0;if(d){g=c[(d&p)>>2]|0;b:do if(g){d=g+52|0;if(c[(d&p)>>2]|0)do{d=Uv(d,f)|0;if(!d)break b;h=c[(d&p)>>2]|0;if(!h)break b;c[(d&p)>>2]=c[(h&p)+52>>2];Ju(l,h);mg(l,h)}while((c[(d&p)>>2]|0)!=0)}else{g=mh(l,72,0)|0;c[(d&p)>>2]=g;if(!g){d=7;break a}c[(g&p)+48>>2]=g+56;b[(g&o)+40>>1]=0;b[(g&o)+44>>1]=3;c[(g&p)+36>>2]=0;c[(g&p)+52>>2]=0}while(0);Lv(l,g);do if(!(Nu(l,g,e[(f&o)+40>>1]|0)|0)){h=g+0|0;d=f+0|0;i=h+44|0;do{c[(h&p)>>2]=c[(d&p)>>2];h=h+4|0;d=d+4|0}while((h|0)<(i|0));kw(c[(g&p)+48>>2]|0,c[(f&p)+48>>2]|0,e[(g&o)+40>>1]<<2|0)|0;d=c[(k&p)>>2]|0;if(d&1024){a[(f&n)+28>>0]=0;break}if(d&16384)c[(f&p)+28>>2]=0}else{d=g+24|0;c[(d&p)>>2]=0;c[(d&p)+4>>2]=0;c[(d&p)+8>>2]=0}while(0);if(((c[(g&p)+36>>2]&1024|0)==0?(m=g+28|0,q=c[(m&p)>>2]|0,(q|0)!=0):0)?(c[(q&p)+40>>2]|0)==0:0){c[(m&p)>>2]=0;d=0}else d=0}else d=0}else{g=f;Kv(d,c[(g&p)>>2]|0,c[(g&p)+4>>2]|0,b[(f&o)+20>>1]|0,b[(f&o)+22>>1]|0);d=0}while(0);return d|0}function Gv(a,b){a=a|0;b=b|0;var c=0,e=0;c=a<<16>>16;e=b<<16>>16;do if(a<<16>>16>16)if((e|0)<=(c+49|0))if((e|0)>(c+31|0)){a=e+1&65535;break}else{a=(d[(e-c&n)+34032>>0]|0)+e&65535;break}else a=b;else if((c|0)<=(e+49|0))if((c|0)>(e+31|0)){a=c+1&65535;break}else{a=(d[(c-e&n)+34032>>0]|0)+c&65535;break}while(0);return a|0}function Hv(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0;do if(!(Cu(b,d,e)|0))f=1;else{f=a[(d&n)>>0]|0;if(f<<24>>24==71){if(Hv(b,c[(d&p)+12>>2]|0,e)|0){f=1;break}if(Hv(b,c[(d&p)+16>>2]|0,e)|0){f=1;break}if(f<<24>>24==77)g=6}else if(f<<24>>24==77)g=6;if(((g|0)==6?(Cu(c[(b&p)+12>>2]|0,c[(d&p)+12>>2]|0,e)|0)==0:0)?(f=a[(b&n)>>0]|0,!(f<<24>>24==73|f<<24>>24==76)):0){f=1;break}f=0}while(0);return f|0}function Iv(a,d,f){a=a|0;d=d|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0;x=i;i=i+16|0;if((i|0)>=(j|0))fa();w=x;u=d;v=d+8|0;g=v;t=~(c[(g&p)>>2]|c[(u&p)>>2]);u=~(c[(g&p)+4>>2]|c[(u&p)+4>>2]);g=c[(a&p)+12>>2]|0;r=a+20|0;a:do if((g|0)>0){s=d+40|0;a=d+22|0;q=d+48|0;d=0;n=c[(r&p)>>2]|0;while(1){if(b[(n&o)+20>>1]&2)break a;m=n+40|0;l=c[(m&p)>>2]|0;m=c[(m&p)+4>>2]|0;k=v;b:do if(((c[(k&p)>>2]&l|0)!=0?1:(c[(k&p)+4>>2]&m|0)!=0)&((l&t|0)==0&(m&u|0)==0)){h=b[(s&o)>>1]|0;c:do if(h<<16>>16){m=c[(q&p)>>2]|0;l=h&65535;while(1){h=l;l=l+-1|0;k=c[(m+(l<<2)&p)>>2]|0;if(k){if((k|0)==(n|0))break;k=c[(k&p)+4>>2]|0;if((k|0)>-1?((c[(r&p)>>2]|0)+(k*48|0)|0)==(n|0):0)break}if((l|0)<=0)break c}if((h|0)>=1)break b}while(0);h=b[(n&o)+16>>1]|0;if(h<<16>>16<1){b[(a&o)>>1]=(e[(a&o)>>1]|0)+(h&65535);break}b[(a&o)>>1]=(b[(a&o)>>1]|0)+-1<<16>>16;if(b[(n&o)+18>>1]&2){l=(Ms(c[((c[(n&p)>>2]|0)&p)+16>>2]|0,w)|0)!=0;m=c[(w&p)>>2]|0;m=l&(m|0)>-2&(m|0)<2?10:20;c[(w&p)>>2]=m;d=(d<<16>>16|0)<(m|0)?m&65535:d}}while(0);g=g+-1|0;if((g|0)<=0)break;else n=n+48|0}}else{a=d+22|0;d=0}while(0);d=(f<<16>>16)-(d<<16>>16)|0;if((b[(a&o)>>1]|0)>(d|0))b[(a&o)>>1]=d;i=x;return}function Jv(d,f,g,h){d=d|0;f=f|0;g=g|0;h=h|0;var k=0,l=0,m=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,ga=0,ha=0;ha=i;i=i+112|0;if((i|0)>=(j|0))fa();R=ha;V=c[(c[(c[(d&p)>>2]&p)>>2]&p)>>2]|0;ea=c[(d&p)+12>>2]|0;if(!(a[(V&n)+65>>0]|0)){ga=ea+36|0;if(!(c[(ga&p)>>2]&32))if((c[(g&p)+40>>2]|0)<1)k=63;else k=(a[(f&n)+36>>0]&8)<<4^191;else k=24;W=g+51|0;ca=ea+24|0;l=b[((c[(g&p)+4>>2]|0)+(e[(ca&o)>>1]<<1)&o)>>1]|0;N=l<<16>>16;O=d+4|0;k=Dv(R,c[(O&p)>>2]|0,c[(f&p)+40>>2]|0,N,(a[(W&n)>>0]&4)==0?k:k&131,g)|0;X=b[(ca&o)>>1]|0;Y=ea+42|0;T=b[(Y&o)>>1]|0;Z=ea+40|0;U=b[(Z&o)>>1]|0;_=c[(ga&p)>>2]|0;Q=ea;P=c[(Q&p)>>2]|0;Q=c[(Q&p)+4>>2]|0;$=ea+22|0;aa=b[($&o)>>1]|0;b[(ea&o)+18>>1]=0;ba=g+8|0;D=b[(c[(ba&p)>>2]&o)>>1]|0;if(D<<16>>16<11)C=0;else{C=D<<16>>16;C=((fs(C,((C|0)<0)<<31>>31)|0)&65535)+65503&65535}a:do if(!k)k=0;else{E=l<<16>>16<0;F=f+16|0;G=ea+8|0;H=(U&65535)+1|0;I=ea+48|0;J=h<<16>>16==0;K=g+46|0;w=l<<16>>16>-1;x=g+50|0;y=g+44|0;z=ea+20|0;A=h<<16>>16;B=g+48|0;r=0;u=k;s=0;while(1){l=b[(u&o)+18>>1]|0;t=l&65535;if(l<<16>>16==128)if(!E?(a[((c[((c[(F&p)>>2]|0)&p)+4>>2]|0)+(N*24|0)&n)+20>>0]|0)==0:0)S=12;else{m=r;l=s;k=0}else S=12;if((S|0)==12){S=0;m=u+32|0;v=m;q=G;if(((c[(q&p)>>2]&c[(v&p)>>2]|0)==0?(c[(q&p)+4>>2]&c[(v&p)+4>>2]|0)==0:0)?(L=u+20|0,!((b[(L&o)>>1]&256)!=0&l<<16>>16==16)):0){c[(ga&p)>>2]=_;b[(ca&o)>>1]=X;b[(Z&o)>>1]=U;if(Nu(V,ea,H)|0){k=0;break a}k=b[(Z&o)>>1]|0;q=k+1<<16>>16;b[(Z&o)>>1]=q;c[((c[(I&p)>>2]|0)+((k&65535)<<2)&p)>>2]=u;k=m;l=G;m=(c[(k&p)+4>>2]|Q)&~c[(l&p)+4>>2];v=ea;c[(v&p)>>2]=(c[(k&p)>>2]|P)&~c[(l&p)>>2];c[(v&p)+4>>2]=m;b:do if(!(t&1)){if(t&2){k=c[(ga&p)>>2]|0;l=k|1;c[(ga&p)>>2]=l;do if(!E){if(!J){v=0;break b}if((e[(ca&o)>>1]|0)!=((e[(K&o)>>1]|0)+-1|0)){v=0;break b}if(!w)break;if(a[(x&n)>>0]|0)break;l=k|65537;c[(ga&p)>>2]=l;v=0;break b}while(0);l=k|4097;c[(ga&p)>>2]=l;v=0;break}if(t&128){l=c[(ga&p)>>2]|8;c[(ga&p)>>2]=l;v=0;break}k=c[(ga&p)>>2]|0;if(!(t&36)){l=k|18;c[(ga&p)>>2]=l;if(!(k&32)){v=0;r=0;s=u;break}v=0;r=c[((c[(I&p)>>2]|0)+((q&65535)+-2<<2)&p)>>2]|0;s=u;break}l=k|34;c[(ga&p)>>2]=l;if(!(b[(L&o)>>1]&256)){v=0;r=u;s=0}else{k=u+48|0;if(Nu(V,ea,(q&65535)+1|0)|0){k=0;break a}l=b[(Z&o)>>1]|0;b[(Z&o)>>1]=l+1<<16>>16;c[((c[(I&p)>>2]|0)+((l&65535)<<2)&p)>>2]=k;l=c[(ga&p)>>2]|16;c[(ga&p)>>2]=l;v=0;r=u;s=k}}else{k=c[(u&p)>>2]|0;l=c[(ga&p)>>2]|4;c[(ga&p)>>2]=l;if(!(c[(k&p)+4>>2]&2048)){k=c[(k&p)+20>>2]|0;if((k|0)!=0?(M=c[(k&p)>>2]|0,(M|0)!=0):0)v=(fs(M,((M|0)<0)<<31>>31)|0)<<16>>16;else v=0}else v=46}while(0);do if(!(l&2)){k=(b[(ca&o)>>1]|0)+1<<16>>16;b[(ca&o)>>1]=k;k=k&65535;m=b[(u&o)+16>>1]|0;if(m<<16>>16<1&w){q=(m&65535)-v+(e[($&o)>>1]|0)&65535;b[($&o)>>1]=q;break}m=c[(ba&p)>>2]|0;m=(e[($&o)>>1]|0)+((e[(m+(k<<1)&o)>>1]|0)-(e[(m+(k+-1<<1)&o)>>1]|0))|0;k=m&65535;b[($&o)>>1]=k;if(!(t&128))q=k;else{q=m+10&65535;b[($&o)>>1]=q}}else{k=b[($&o)>>1]|0;q=k<<16>>16;do if(r){m=b[(r&o)+16>>1]|0;if(m<<16>>16<1){k=(m&65535)+(k&65535)&65535;break}else{k=(k&65535)+65516&65535;break}}while(0);do if(s){m=b[(s&o)+16>>1]|0;if(m<<16>>16<1){k=(m&65535)+(k&65535)&65535;break}else{k=(k&65535)+65516&65535;break}}while(0);m=(r|0)!=0;do if(m?(b[(r&o)+16>>1]|0)>0&(s|0)!=0:0){if((b[(s&o)+16>>1]|0)<=0)break;k=(k&65535)+65516&65535}while(0);q=(((s|0)!=0)<<31>>31)+(m<<31>>31)+q|0;u=k<<16>>16<10?10:k<<16>>16;q=((u|0)<(q|0)?u:q)&65535;b[($&o)>>1]=q}while(0);k=q&65535;m=Gv(C,k+1+(((b[(y&o)>>1]|0)*15|0)/(b[((c[(F&p)>>2]|0)&o)+42>>1]|0)|0)&65535)|0;if(!(l&320))m=Gv(m,k+16&65535)|0;l=v+A|0;b[(z&o)>>1]=(m&65535)+l;b[($&o)>>1]=k+l;Iv(c[(O&p)>>2]|0,ea,D);k=Fv(d,ea)|0;v=c[(ga&p)>>2]|0;b[($&o)>>1]=(v&2|0)==0?q:aa;if((v&16|0)==0?(e[(ca&o)>>1]|0)<(e[(B&o)>>1]|0):0)Jv(d,f,g,l&65535)|0;b[($&o)>>1]=aa;m=r;l=s}else{m=r;l=s;k=0}}u=Ev(R)|0;if(!((k|0)==0&(u|0)!=0))break;else{r=m;s=l}}}while(0);l=ea;c[(l&p)>>2]=P;c[(l&p)+4>>2]=Q;b[(ca&o)>>1]=X;b[(Y&o)>>1]=T;c[(ga&p)>>2]=_;b[($&o)>>1]=aa;b[(Z&o)>>1]=U;l=X&65535;if(((X<<16>>16==T<<16>>16?(da=l+1|0,da>>>0<(e[(g&o)+46>>1]|0)>>>0):0)?(a[(W&n)>>0]&64)==0:0)?(b[((c[(ba&p)>>2]|0)+(da<<1)&o)>>1]|0)>41:0){k=Nu(V,ea,(U&65535)+1|0)|0;if(!k){b[(ca&o)>>1]=(b[(ca&o)>>1]|0)+1<<16>>16;b[(Y&o)>>1]=(b[(Y&o)>>1]|0)+1<<16>>16;k=b[(Z&o)>>1]|0;b[(Z&o)>>1]=k+1<<16>>16;c[((c[(ea&p)+48>>2]|0)+((k&65535)<<2)&p)>>2]=0;c[(ga&p)>>2]=c[(ga&p)>>2]|32768;k=c[(ba&p)>>2]|0;k=(e[(k+(l<<1)&o)>>1]|0)-(e[(k+(da<<1)&o)>>1]|0)|0;b[($&o)>>1]=(e[($&o)>>1]|0)-k;Jv(d,f,g,(((k<<16)+327680|0)>>>16)+(h&65535)&65535)|0;b[($&o)>>1]=aa;b[(ca&o)>>1]=X;b[(Y&o)>>1]=X;c[(ga&p)>>2]=_;k=0}}}else k=7;i=ha;return k|0}function Kv(a,d,e,f,g){a=a|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,i=0,j=0,k=0,l=0,m=0,n=0,q=0,r=0;l=b[(a&o)>>1]|0;h=a+8|0;a:do if(l<<16>>16){j=l;k=h;while(1){i=b[(k&o)+8>>1]|0;if(i<<16>>16>=f<<16>>16?(r=k,(c[(r&p)>>2]&d|0)==(d|0)?(c[(r&p)+4>>2]&e|0)==(e|0):0):0){n=k;q=14;break a}if(i<<16>>16<=f<<16>>16?(i=k,r=c[(i&p)>>2]|0,i=c[(i&p)+4>>2]|0,(r&d|0)==(r|0)&(i&e|0)==(i|0)):0)break a;j=j+-1<<16>>16;if(!(j<<16>>16))break;else k=k+16|0}if((l&65535)>=3){i=b[(a&o)+16>>1]|0;k=1;do{if(i<<16>>16>(b[(a+(k<<4)&o)+16>>1]|0))h=a+(k<<4)+8|0;k=k+1|0;i=b[(h&o)+8>>1]|0}while((k&65535)<(l&65535));if(i<<16>>16>f<<16>>16){n=h;q=14}}else q=9}else q=9;while(0);if((q|0)==9){n=l&65535;b[(a&o)>>1]=l+1<<16>>16;b[(a+(n<<4)&o)+18>>1]=g;n=a+(n<<4)+8|0;q=14}if((q|0)==14?(m=n,c[(m&p)>>2]=d,c[(m&p)+4>>2]=e,b[(n&o)+8>>1]=f,m=n+10|0,(b[(m&o)>>1]|0)>g<<16>>16):0)b[(m&o)>>1]=g;return}function Lv(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0;e=c[(d&p)+36>>2]|0;do if(e&17408){if((e&1024|0)!=0?(h=d+28|0,(a[(h&n)>>0]|0)!=0):0){e=d+32|0;Wc(c[(e&p)>>2]|0);a[(h&n)>>0]=0;c[(e&p)>>2]=0;break}if((e&16384|0)!=0?(f=d+28|0,g=c[(f&p)>>2]|0,(g|0)!=0):0){mg(b,c[(g&p)+16>>2]|0);mg(b,c[(f&p)>>2]|0);c[(f&p)>>2]=0}}while(0);return}function Mv(f,g,h,k,l,m,q){f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;m=m|0;q=q|0;var 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,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,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;ta=i;i=i+32|0;if((i|0)>=(j|0))fa();oa=ta;s=c[(c[(f&p)>>2]&p)>>2]|0;na=l&65535;if(l<<16>>16!=0?(b[(s&o)+60>>1]&128)!=0:0)r=0;else pa=3;a:do if((pa|0)==3){sa=c[(g&p)>>2]|0;r=sa&65535;if(r>>>0<=63){qa=iw(1,0,r|0)|0;qa=jw(qa|0,G|0,-1,-1)|0;ra=G;b:do if((qa|0)==0&(ra|0)==0){g=0;h=0;s=1}else{ha=h+24|0;ia=f+4|0;ja=(r|0)==0;ea=g+4|0;ga=(k&768)==0;da=s+8|0;W=(k&256)==0;X=f+68|0;Y=oa+20|0;Z=oa+4|0;aa=oa+24|0;ba=f+328|0;_=0;$=0;g=0;h=0;k=0;t=0;ca=0;s=1;l=0;while(1){if((ca|0)>0){U=l+8|0;V=c[(U&p)>>2]|k;t=c[(U&p)+4>>2]|t}else V=k;if((ca|0)<(na|0))l=c[((c[(ha&p)>>2]|0)+(ca<<2)&p)>>2]|0;else l=m;B=l+36|0;k=c[(B&p)>>2]|0;if(k&1024)break;U=c[((c[(ia&p)>>2]|0)+((d[(l&n)+16>>0]|0)*72|0)&p)+48>>2]|0;if(!ja){k=~V;v=~t;y=0;do{A=iw(1,0,y|0)|0;z=G;c:do if((A&g|0)==0&(z&h|0)==0){u=c[((c[(ea&p)>>2]|0)+(y*20|0)&p)>>2]|0;x=c[(u&p)+4>>2]|0;if(x&4096)do{if(!(x&262144))u=u+12|0;else u=c[((c[(u&p)+20>>2]|0)&p)+4>>2]|0;u=c[(u&p)>>2]|0;x=c[(u&p)+4>>2]|0}while((x&4096|0)!=0);if(((a[(u&n)>>0]|0)==-102?(c[(u&p)+28>>2]|0)==(U|0):0)?(ka=u+32|0,la=Fu(ba,U,b[(ka&o)>>1]|0,k,v,130,0)|0,(la|0)!=0):0){do if(b[(la&o)+18>>1]&2){if((b[(ka&o)>>1]|0)<=-1)break;u=cu(c[(f&p)>>2]|0,c[((c[(ea&p)>>2]|0)+(y*20|0)&p)>>2]|0)|0;if(!u)u=c[(da&p)>>2]|0;x=c[(u&p)>>2]|0;w=cu(c[(f&p)>>2]|0,c[(la&p)>>2]|0)|0;if(!w)w=c[(da&p)>>2]|0;if(dd(x,c[(w&p)>>2]|0)|0)break c}while(0);g=A|g;h=z|h}}while(0);y=y+1|0}while((y|0)<(r|0));k=c[(B&p)>>2]|0}do if(!(k&4096)){if(!(k&256)){u=c[(l&p)+28>>2]|0;if(!u){r=0;break a}if(a[(u&n)+51>>0]&4){r=0;break a}k=b[(u&o)+48>>1]|0;s=(a[(u&n)+50>>0]|0)!=0&1;if(!(k<<16>>16)){pa=71;break}else{S=k&65535;T=b[(u&o)+46>>1]|0}}else{S=1;T=0;u=0}J=l+24|0;K=l+42|0;L=l+48|0;M=(u|0)==0;N=u+32|0;O=iw(1,0,ca|0)|0;P=G;Q=u+4|0;R=u+28|0;I=u+12|0;k=0;u=0;A=0;H=0;d:while(1){z=(u|0)<(e[(J&o)>>1]|0);if((z?(b[(K&o)>>1]|0)==0:0)?(ma=e[((c[((c[(L&p)>>2]|0)+(u<<2)&p)>>2]|0)&o)+18>>1]|0,(ma&130|0)!=0):0){s=(ma&128|0)==0?s:0;z=H}else{if(!M){x=b[((c[(Q&p)>>2]|0)+(u<<1)&o)>>1]|0;w=a[((c[(R&p)>>2]|0)+u&n)>>0]|0;v=c[(I&p)>>2]|0;x=x<<16>>16==(b[(v&o)+36>>1]|0)?-1:x<<16>>16;y=(x|0)>-1;if(s<<24>>24!=0&y)if(z){y=1;F=x}else{y=1;F=x;s=(a[((c[(v&p)+4>>2]|0)+(x*24|0)&n)+20>>0]|0)==0?0:s}else F=x}else{y=0;F=-1;w=0}if(ja){pa=68;break}else{z=1;E=0}e:while(1){C=iw(1,0,E|0)|0;D=G;do if((C&g|0)==0&(D&h|0)==0){v=c[((c[(ea&p)>>2]|0)+(E*20|0)&p)>>2]|0;x=c[(v&p)+4>>2]|0;if(!(x&4096))B=v;else{B=v;do{if(!(x&262144))x=B+12|0;else x=c[((c[(B&p)+20>>2]|0)&p)+4>>2]|0;B=c[(x&p)>>2]|0;x=c[(B&p)+4>>2]|0}while((x&4096|0)!=0)}z=ga?0:z;if((a[(B&n)>>0]|0)!=-102)break;if((c[(B&p)+28>>2]|0)!=(U|0))break;if((b[(B&o)+32>>1]|0)!=(F|0))break;if(!y){B=C;y=D;z=E;break e}x=cu(c[(f&p)>>2]|0,v)|0;if(!x)x=c[(da&p)>>2]|0;if(!(dd(c[(x&p)>>2]|0,c[((c[(N&p)>>2]|0)+(u<<2)&p)>>2]|0)|0)){B=C;y=D;z=E;break e}}while(0);E=E+1|0;if(!(z<<24>>24!=0&(E|0)<(r|0))){pa=68;break d}}do if(W){if(H<<24>>24)if((w^A)<<24>>24==(a[((c[(ea&p)>>2]|0)+(z*20|0)&n)+12>>0]|0)){z=H;break}else{pa=68;break d}v=a[((c[(ea&p)>>2]|0)+(z*20|0)&n)+12>>0]|0;A=v^w;if(w<<24>>24==v<<24>>24){z=1;break}v=q;w=c[(v&p)+4>>2]|P;z=q;c[(z&p)>>2]=c[(v&p)>>2]|O;c[(z&p)+4>>2]=w;z=1}else z=H;while(0);g=B|g;h=y|h;k=(F|0)<0?1:k}u=u+1|0;if((u|0)>=(S|0))break;else H=z}if((pa|0)==68){pa=0;s=(u|0)==0|(u|0)<(T&65535|0)?0:s}if(!(k<<24>>24))pa=71;else s=1}else pa=71;while(0);if((pa|0)==71){pa=0;if(!(s<<24>>24)){s=0;break b}}U=l+8|0;_=c[(U&p)>>2]|_;$=c[(U&p)+4>>2]|$;if(!ja){z=~_;A=~$;y=0;do{u=iw(1,0,y|0)|0;x=G;do if((u&g|0)==0&(x&h|0)==0){k=c[((c[(ea&p)>>2]|0)+(y*20|0)&p)>>2]|0;v=Av(X,k)|0;w=G;if((v|0)==0&(w|0)==0?(c[(oa&p)>>2]=0,c[(oa&p)+4>>2]=0,c[(oa&p)+8>>2]=0,c[(oa&p)+12>>2]=0,c[(oa&p)+16>>2]=0,c[(oa&p)+20>>2]=0,a[(Y&n)>>0]=1,c[(oa&p)>>2]=78,c[(Z&p)>>2]=79,c[(aa&p)>>2]=0,rs(oa,k)|0,(a[(Y&n)>>0]|0)==0):0)break;U=(v&z|0)==0&(w&A|0)==0;g=(U?u:0)|g;h=(U?x:0)|h}while(0);y=y+1|0}while((y|0)<(r|0))}if(h>>>0>ra>>>0|(h|0)==(ra|0)&g>>>0>=qa>>>0|s<<24>>24==0|(ca|0)>=(na|0))break b;else{k=V;ca=ca+1|0}}ga=(a[(l&n)+29>>0]|0)==0;g=ga?g:qa;h=ga?h:ra}while(0);if((g|0)==(qa|0)&(h|0)==(ra|0)){r=sa&255;break}if(!(s<<24>>24)){do{r=r+-1|0;if((r|0)<=0){r=0;break a}ea=iw(1,0,r|0)|0;ea=jw(ea|0,G|0,-1,-1)|0;ga=G}while(!((ea&g|0)==(ea|0)&(ga&h|0)==(ga|0)));r=r&255}else r=-1}else r=0}while(0);i=ta;return r|0}function Nv(b,c,d,e){b=b|0;c=c|0;d=d|0;e=e|0;if(c)Sk(b,33920,5);if(!d)c=0;else{c=d;while(1)if(!(a[(c&n)>>0]|0))break;else c=c+1|0;c=c-d&1073741823}Sk(b,d,c);Sk(b,e,1);Sk(b,13552,1);return}function Ov(a){a=a|0;var d=0,e=0,f=0,g=0,h=0,i=0;i=c[(c[(c[(a&p)>>2]&p)>>2]&p)>>2]|0;d=c[(a&p)+12>>2]|0;g=a+20|0;if((d|0)>0){h=c[(g&p)>>2]|0;while(1){d=d+-1|0;f=h+20|0;e=b[(f&o)>>1]|0;if(e&1){Gk(i,c[(h&p)>>2]|0);e=b[(f&o)>>1]|0}e=e&65535;if(!(e&16)){if(e&32){e=c[(h&p)+12>>2]|0;Ov(e);mg(i,e)}}else{e=c[(h&p)+12>>2]|0;Ov(e);mg(i,e)}if((d|0)<=0)break;else h=h+48|0}}d=c[(g&p)>>2]|0;if((d|0)!=(a+24|0))mg(i,d);return}function Pv(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,o=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0;u=i;i=i+32|0;if((i|0)>=(j|0))fa();t=u;h=c[(b&p)+8>>2]|0;k=c[(b&p)>>2]|0;if(e){l=(f|0)==10;m=b+437|0;o=t+4|0;q=t+1|0;r=t+8|0;s=t+12|0;g=f&255;do{if(l)f=a[(e&n)+1>>0]|0;else f=g;a[(m&n)>>0]=f;f=d[(e&n)>>0]|0;if((f|0)==108){w=Vv(b,e)|0;v=gr(k,c[(e&p)+8>>2]|0,0)|0;f=Nr(k,c[(e&p)+28>>2]|0)|0;tr(b,w,v,f,d[(m&n)>>0]|0)}else if((f|0)==109){f=Vv(b,e)|0;rr(b,f,Mr(k,c[(e&p)+20>>2]|0,0,0)|0)}else if((f|0)==110){w=Vv(b,e)|0;v=Pr(k,c[(e&p)+24>>2]|0,0)|0;f=Mr(k,c[(e&p)+20>>2]|0,0,0)|0;sr(b,w,v,f,d[(m&n)>>0]|0)}else{f=gr(k,c[(e&p)+8>>2]|0,0)|0;a[(t&n)>>0]=4;c[(o&p)>>2]=0;a[(q&n)>>0]=0;c[(r&p)>>2]=0;c[(s&p)>>2]=0;ir(b,f,t)|0;Mk(k,f,1)}if((a[(e&n)>>0]|0)!=119)wh(h,98,0,0,0)|0;e=c[(e&p)+32>>2]|0}while((e|0)!=0)}i=u;return}function Qv(d,e,f,g){d=d|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0;m=i;i=i+16|0;if((i|0)>=(j|0))fa();h=m;l=c[(d&p)>>2]|0;c[(h&p)>>2]=0;c[(h&p)+4>>2]=0;h=nr(l,159,h,0)|0;do if(!h)h=0;else{k=g<<16>>16;if(g<<16>>16>-1?(b[(e&o)+36>>1]|0)!=g<<16>>16:0){g=c[(e&p)+4>>2]|0;c[(h&p)+28>>2]=f+1+k;a[(h&n)+1>>0]=a[(g+(k*24|0)&n)+21>>0]|0;k=c[(g+(k*24|0)&p)+16>>2]|0;if(!k)k=c[(c[(l&p)+8>>2]&p)>>2]|0;h=xv(d,h,k)|0;break}c[(h&p)+28>>2]=f;a[(h&n)+1>>0]=68}while(0);i=m;return h|0}function Rv(d,e,f,g){d=d|0;e=e|0;f=f|0;g=g|0;var h=0,i=0,j=0;d=mh(d,48,0)|0;if(d){h=d+0|0;i=h+44|0;do{a[(h&n)>>0]=0;h=h+1|0}while((h|0)<(i|0));a[(d&n)>>0]=-102;b[(d&o)+34>>1]=-1;c[(d&p)+24>>2]=1;h=c[(e+(f*72|0)&p)+24>>2]|0;c[(d&p)+44>>2]=h;c[(d&p)+28>>2]=c[(e+(f*72|0)&p)+48>>2];if((b[(h&o)+36>>1]|0)==(g|0))b[(d&o)+32>>1]=-1;else{b[(d&o)+32>>1]=g;j=(g|0)>63;g=iw(1,0,g|0)|0;h=e+(f*72|0)+64|0;f=h;i=c[(f&p)+4>>2]|(j?-2147483648:G);c[(h&p)>>2]=c[(f&p)>>2]|(j?0:g);c[(h&p)+4>>2]=i}h=d+4|0;c[(h&p)>>2]=c[(h&p)>>2]|4}return d|0}function Sv(b,e){b=b|0;e=e|0;if((a[(e&n)>>0]|0)==-101){e=e+38|0;a[(e&n)>>0]=(d[(e&n)>>0]|0)+(c[(b&p)+24>>2]|0)}return 0}function Tv(a,d){a=a|0;d=d|0;var f=0,g=0,h=0,i=0,j=0,k=0;f=b[(a&o)+40>>1]|0;i=f&65535;h=b[(a&o)+42>>1]|0;k=e[(d&o)+40>>1]|0;g=b[(d&o)+42>>1]|0;a:do if(!((g&65535)>(h&65535)?1:(i-(h&65535)|0)>=(k-(g&65535)|0))){g=b[(a&o)+20>>1]|0;h=b[(d&o)+20>>1]|0;if(g<<16>>16>=h<<16>>16){if(g<<16>>16>h<<16>>16){f=0;break}if((b[(a&o)+22>>1]|0)>(b[(d&o)+22>>1]|0)){f=0;break}}if(!(f<<16>>16))f=1;else{j=c[(a&p)+48>>2]|0;d=d+48|0;a=i;while(1){a=a+-1|0;h=c[(j+(a<<2)&p)>>2]|0;if(h){f=k;while(1){g=f+-1|0;if((f|0)<=0){f=0;break a}if((c[((c[(d&p)>>2]|0)+(g<<2)&p)>>2]|0)==(h|0))break;else f=g}if((f|0)<1){f=0;break a}}if((a|0)<=0){f=1;break}}}}else f=0;while(0);return f|0}function Uv(d,e){d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0,v=0;f=c[(d&p)>>2]|0;a:do if(f){k=a[(e&n)+16>>0]|0;l=e+17|0;m=e+18|0;q=e+20|0;r=e+22|0;s=e+42|0;t=e+36|0;do{if((a[(f&n)+16>>0]|0)==k<<24>>24?(a[(f&n)+17>>0]|0)==(a[(l&n)>>0]|0):0){if((((c[(f&p)+36>>2]&16384|0)!=0?(b[(s&o)>>1]|0)==0:0)?(c[(t&p)>>2]&513|0)==513:0)?(i=f,j=e,h=c[(j&p)>>2]|0,j=c[(j&p)+4>>2]|0,(h&c[(i&p)>>2]|0)==(h|0)?(j&c[(i&p)+4>>2]|0)==(j|0):0):0)break a;u=f;v=c[(u&p)>>2]|0;u=c[(u&p)+4>>2]|0;h=e;g=c[(h&p)>>2]|0;h=c[(h&p)+4>>2]|0;i=g&v;j=h&u;if((((i|0)==(v|0)&(j|0)==(u|0)?(b[(f&o)+18>>1]|0)<=(b[(m&o)>>1]|0):0)?(b[(f&o)+20>>1]|0)<=(b[(q&o)>>1]|0):0)?(b[(f&o)+22>>1]|0)<=(b[(r&o)>>1]|0):0){d=0;break a}if(((i|0)==(g|0)&(j|0)==(h|0)?(b[(f&o)+20>>1]|0)>=(b[(q&o)>>1]|0):0)?(b[(f&o)+22>>1]|0)>=(b[(r&o)>>1]|0):0)break a}d=f+52|0;f=c[(d&p)>>2]|0}while((f|0)!=0)}while(0);return d|0}function Vv(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;h=pr(c[(a&p)>>2]|0,0,b+12|0,0)|0;do if(h){g=c[(a&p)>>2]|0;f=c[((c[(b&p)+4>>2]|0)&p)+20>>2]|0;a:do if(f){e=c[(g&p)+20>>2]|0;if((e|0)>0){b=c[(g&p)+16>>2]|0;d=0;while(1){a=d+1|0;if((c[(b+(d<<4)&p)+12>>2]|0)==(f|0)){a=d;d=7;break a}if((a|0)<(e|0))d=a;else{d=7;break}}}else a=0}else{a=-1e6;d=7}while(0);if((d|0)==7)if(!((a|0)==0|(a|0)>1))break;a=kh(g,c[((c[(g&p)+16>>2]|0)+(a<<4)&p)>>2]|0)|0;c[(h+(((c[(h&p)>>2]|0)+-1|0)*72|0)&p)+12>>2]=a}while(0);return h|0}function Wv(a){a=a|0;var b=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,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;do if(a>>>0<245){if(a>>>0<11)q=16;else q=a+11&-8;a=q>>>3;l=c[12266]|0;i=l>>>a;if(i&3){e=(i&1^1)+a|0;f=e<<1;b=49104+(f<<2)|0;f=49104+(f+2<<2)|0;g=c[(f&p)>>2]|0;h=g+8|0;i=c[(h&p)>>2]|0;do if((b|0)!=(i|0)){if(i>>>0<(c[12270]|0)>>>0)Ob();d=i+12|0;if((c[(d&p)>>2]|0)==(g|0)){c[(d&p)>>2]=b;c[(f&p)>>2]=i;break}else Ob()}else c[12266]=l&~(1<>2]=x|3;x=g+(x|4)|0;c[(x&p)>>2]=c[(x&p)>>2]|1;x=h;return x|0}k=c[12268]|0;if(q>>>0>k>>>0){if(i){f=2<>>12&16;f=f>>>a;e=f>>>5&8;f=f>>>e;d=f>>>2&4;f=f>>>d;g=f>>>1&2;f=f>>>g;h=f>>>1&1;h=(e|a|d|g|h)+(f>>>h)|0;f=h<<1;g=49104+(f<<2)|0;f=49104+(f+2<<2)|0;d=c[(f&p)>>2]|0;a=d+8|0;e=c[(a&p)>>2]|0;do if((g|0)!=(e|0)){if(e>>>0<(c[12270]|0)>>>0)Ob();i=e+12|0;if((c[(i&p)>>2]|0)==(d|0)){c[(i&p)>>2]=g;c[(f&p)>>2]=e;m=c[12268]|0;break}else Ob()}else{c[12266]=l&~(1<>2]=q|3;j=d+q|0;c[(d+(q|4)&p)>>2]=b|1;c[(d+x&p)>>2]=b;if(m){e=c[12271]|0;g=m>>>3;i=g<<1;f=49104+(i<<2)|0;h=c[12266]|0;g=1<>2]|0;if(i>>>0<(c[12270]|0)>>>0)Ob();else{n=h;o=i}}else{c[12266]=h|g;n=49104+(i+2<<2)|0;o=f}c[(n&p)>>2]=e;c[(o&p)+12>>2]=e;c[(e&p)+8>>2]=o;c[(e&p)+12>>2]=f}c[12268]=b;c[12271]=j;x=a;return x|0}a=c[12267]|0;if(a){h=(a&0-a)+-1|0;w=h>>>12&16;h=h>>>w;v=h>>>5&8;h=h>>>v;x=h>>>2&4;h=h>>>x;i=h>>>1&2;h=h>>>i;g=h>>>1&1;g=c[((v|w|x|i|g)+(h>>>g)<<2&p)+49368>>2]|0;h=(c[(g&p)+4>>2]&-8)-q|0;i=g;while(1){d=c[(i&p)+16>>2]|0;if(!d){d=c[(i&p)+20>>2]|0;if(!d){l=h;k=g;break}}i=(c[(d&p)+4>>2]&-8)-q|0;x=i>>>0>>0;h=x?i:h;i=d;g=x?d:g}a=c[12270]|0;if(k>>>0>>0)Ob();b=k+q|0;if(k>>>0>=b>>>0)Ob();j=c[(k&p)+24>>2]|0;g=c[(k&p)+12>>2]|0;do if((g|0)==(k|0)){h=k+20|0;i=c[(h&p)>>2]|0;if(!i){h=k+16|0;i=c[(h&p)>>2]|0;if(!i){e=0;break}}while(1){g=i+20|0;f=c[(g&p)>>2]|0;if(f){i=f;h=g;continue}g=i+16|0;f=c[(g&p)>>2]|0;if(!f)break;else{i=f;h=g}}if(h>>>0>>0)Ob();else{c[(h&p)>>2]=0;e=i;break}}else{f=c[(k&p)+8>>2]|0;if(f>>>0>>0)Ob();i=f+12|0;if((c[(i&p)>>2]|0)!=(k|0))Ob();h=g+8|0;if((c[(h&p)>>2]|0)==(k|0)){c[(i&p)>>2]=g;c[(h&p)>>2]=f;e=g;break}else Ob()}while(0);do if(j){i=c[(k&p)+28>>2]|0;h=49368+(i<<2)|0;if((k|0)==(c[(h&p)>>2]|0)){c[(h&p)>>2]=e;if(!e){c[12267]=c[12267]&~(1<>>0<(c[12270]|0)>>>0)Ob();i=j+16|0;if((c[(i&p)>>2]|0)==(k|0))c[(i&p)>>2]=e;else c[(j&p)+20>>2]=e;if(!e)break}h=c[12270]|0;if(e>>>0>>0)Ob();c[(e&p)+24>>2]=j;i=c[(k&p)+16>>2]|0;do if(i)if(i>>>0>>0)Ob();else{c[(e&p)+16>>2]=i;c[(i&p)+24>>2]=e;break}while(0);i=c[(k&p)+20>>2]|0;if(i)if(i>>>0<(c[12270]|0)>>>0)Ob();else{c[(e&p)+20>>2]=i;c[(i&p)+24>>2]=e;break}}while(0);if(l>>>0<16){x=l+q|0;c[(k&p)+4>>2]=x|3;x=k+(x+4)|0;c[(x&p)>>2]=c[(x&p)>>2]|1}else{c[(k&p)+4>>2]=q|3;c[(k+(q|4)&p)>>2]=l|1;c[(k+l+q&p)>>2]=l;d=c[12268]|0;if(d){e=c[12271]|0;g=d>>>3;i=g<<1;f=49104+(i<<2)|0;h=c[12266]|0;g=1<>2]|0;if(h>>>0<(c[12270]|0)>>>0)Ob();else{r=i;s=h}}else{c[12266]=h|g;r=49104+(i+2<<2)|0;s=f}c[(r&p)>>2]=e;c[(s&p)+12>>2]=e;c[(e&p)+8>>2]=s;c[(e&p)+12>>2]=f}c[12268]=l;c[12271]=b}x=k+8|0;return x|0}else s=q}else s=q}else if(a>>>0<=4294967231){a=a+11|0;s=a&-8;k=c[12267]|0;if(k){h=0-s|0;a=a>>>8;if(a)if(s>>>0>16777215)d=31;else{q=(a+1048320|0)>>>16&8;r=a<>>16&4;r=r<>>16&2;d=14-(o|q|d)+(r<>>15)|0;d=s>>>(d+7|0)&1|d<<1}else d=0;f=c[(d<<2&p)+49368>>2]|0;a:do if(!f){a=0;i=0}else{if((d|0)==31)i=0;else i=25-(d>>>1)|0;l=h;a=0;b=s<>2]&-8;h=e-s|0;if(h>>>0>>0)if((e|0)==(s|0)){a=f;i=f;break a}else i=f;else h=l;r=c[(f&p)+20>>2]|0;f=c[(f+(b>>>31<<2)&p)+16>>2]|0;a=(r|0)==0|(r|0)==(f|0)?a:r;if(!f)break;else{l=h;b=b<<1}}}while(0);if((a|0)==0&(i|0)==0){a=2<>>12&16;r=r>>>n;m=r>>>5&8;r=r>>>m;o=r>>>2&4;r=r>>>o;q=r>>>1&2;r=r>>>q;a=r>>>1&1;a=c[((m|n|o|q|a)+(r>>>a)<<2&p)+49368>>2]|0}if(!a){o=h;q=i}else while(1){r=(c[(a&p)+4>>2]&-8)-s|0;f=r>>>0>>0;h=f?r:h;i=f?a:i;f=c[(a&p)+16>>2]|0;if(f){a=f;continue}a=c[(a&p)+20>>2]|0;if(!a){o=h;q=i;break}}if((q|0)!=0?o>>>0<((c[12268]|0)-s|0)>>>0:0){a=c[12270]|0;if(q>>>0>>0)Ob();m=q+s|0;if(q>>>0>=m>>>0)Ob();j=c[(q&p)+24>>2]|0;g=c[(q&p)+12>>2]|0;do if((g|0)==(q|0)){h=q+20|0;i=c[(h&p)>>2]|0;if(!i){h=q+16|0;i=c[(h&p)>>2]|0;if(!i){u=0;break}}while(1){g=i+20|0;f=c[(g&p)>>2]|0;if(f){i=f;h=g;continue}g=i+16|0;f=c[(g&p)>>2]|0;if(!f)break;else{i=f;h=g}}if(h>>>0>>0)Ob();else{c[(h&p)>>2]=0;u=i;break}}else{f=c[(q&p)+8>>2]|0;if(f>>>0>>0)Ob();i=f+12|0;if((c[(i&p)>>2]|0)!=(q|0))Ob();h=g+8|0;if((c[(h&p)>>2]|0)==(q|0)){c[(i&p)>>2]=g;c[(h&p)>>2]=f;u=g;break}else Ob()}while(0);do if(j){i=c[(q&p)+28>>2]|0;h=49368+(i<<2)|0;if((q|0)==(c[(h&p)>>2]|0)){c[(h&p)>>2]=u;if(!u){c[12267]=c[12267]&~(1<>>0<(c[12270]|0)>>>0)Ob();i=j+16|0;if((c[(i&p)>>2]|0)==(q|0))c[(i&p)>>2]=u;else c[(j&p)+20>>2]=u;if(!u)break}h=c[12270]|0;if(u>>>0>>0)Ob();c[(u&p)+24>>2]=j;i=c[(q&p)+16>>2]|0;do if(i)if(i>>>0>>0)Ob();else{c[(u&p)+16>>2]=i;c[(i&p)+24>>2]=u;break}while(0);i=c[(q&p)+20>>2]|0;if(i)if(i>>>0<(c[12270]|0)>>>0)Ob();else{c[(u&p)+20>>2]=i;c[(i&p)+24>>2]=u;break}}while(0);b:do if(o>>>0>=16){c[(q&p)+4>>2]=s|3;c[(q+(s|4)&p)>>2]=o|1;c[(q+o+s&p)>>2]=o;i=o>>>3;if(o>>>0<256){h=i<<1;f=49104+(h<<2)|0;g=c[12266]|0;i=1<>2]|0;if(h>>>0>=(c[12270]|0)>>>0){v=i;w=h;break}Ob()}while(0);c[(v&p)>>2]=m;c[(w&p)+12>>2]=m;c[(q+s&p)+8>>2]=w;c[(q+s&p)+12>>2]=f;break}d=o>>>8;if(d)if(o>>>0>16777215)f=31;else{w=(d+1048320|0)>>>16&8;x=d<>>16&4;x=x<>>16&2;f=14-(v|w|f)+(x<>>15)|0;f=o>>>(f+7|0)&1|f<<1}else f=0;i=49368+(f<<2)|0;c[(q+s&p)+28>>2]=f;c[(q+s&p)+20>>2]=0;c[(q+s&p)+16>>2]=0;h=c[12267]|0;g=1<>2]=m;c[(q+s&p)+24>>2]=i;c[(q+s&p)+12>>2]=m;c[(q+s&p)+8>>2]=m;break}d=c[(i&p)>>2]|0;if((f|0)==31)b=0;else b=25-(f>>>1)|0;c:do if((c[(d&p)+4>>2]&-8|0)!=(o|0)){h=o<>>31<<2)+16|0;i=c[(b&p)>>2]|0;if(!i)break;if((c[(i&p)+4>>2]&-8|0)==(o|0)){C=i;break c}else{h=h<<1;d=i}}if(b>>>0<(c[12270]|0)>>>0)Ob();else{c[(b&p)>>2]=m;c[(q+s&p)+24>>2]=d;c[(q+s&p)+12>>2]=m;c[(q+s&p)+8>>2]=m;break b}}else C=d;while(0);d=C+8|0;b=c[(d&p)>>2]|0;x=c[12270]|0;if(C>>>0>=x>>>0&b>>>0>=x>>>0){c[(b&p)+12>>2]=m;c[(d&p)>>2]=m;c[(q+s&p)+8>>2]=b;c[(q+s&p)+12>>2]=C;c[(q+s&p)+24>>2]=0;break}else Ob()}else{x=o+s|0;c[(q&p)+4>>2]=x|3;x=q+(x+4)|0;c[(x&p)>>2]=c[(x&p)>>2]|1}while(0);x=q+8|0;return x|0}}}else s=-1;while(0);a=c[12268]|0;if(a>>>0>=s>>>0){b=a-s|0;d=c[12271]|0;if(b>>>0>15){c[12271]=d+s;c[12268]=b;c[(d+s&p)+4>>2]=b|1;c[(d+a&p)>>2]=b;c[(d&p)+4>>2]=s|3}else{c[12268]=0;c[12271]=0;c[(d&p)+4>>2]=a|3;x=d+(a+4)|0;c[(x&p)>>2]=c[(x&p)>>2]|1}x=d+8|0;return x|0}a=c[12269]|0;if(a>>>0>s>>>0){w=a-s|0;c[12269]=w;x=c[12272]|0;c[12272]=x+s;c[(x+s&p)+4>>2]=w|1;c[(x&p)+4>>2]=s|3;x=x+8|0;return x|0}do if(!(c[12384]|0)){a=wb(30)|0;if(!(a+-1&a)){c[12386]=a;c[12385]=a;c[12387]=-1;c[12388]=-1;c[12389]=0;c[12377]=0;c[12384]=(Pb(0)|0)&-16^1431655768;break}else Ob()}while(0);l=s+48|0;b=c[12386]|0;k=s+47|0;d=b+k|0;b=0-b|0;m=d&b;if(m>>>0<=s>>>0){x=0;return x|0}a=c[12376]|0;if((a|0)!=0?(v=c[12374]|0,w=v+m|0,w>>>0<=v>>>0|w>>>0>a>>>0):0){x=0;return x|0}d:do if(!(c[12377]&4)){a=c[12272]|0;e:do if(a){f=49512|0;while(1){i=c[(f&p)>>2]|0;if(i>>>0<=a>>>0?(t=f+4|0,(i+(c[(t&p)>>2]|0)|0)>>>0>a>>>0):0){e=f;h=t;a=f;break}f=c[(f&p)+8>>2]|0;if(!f){H=181;break e}}if(a){a=d-(c[12269]|0)&b;if(a>>>0<2147483647){i=sb(a|0)|0;if((i|0)==((c[(e&p)>>2]|0)+(c[(h&p)>>2]|0)|0))H=190;else H=191}else a=0}else H=181}else H=181;while(0);do if((H|0)==181){i=sb(0)|0;if((i|0)!=(-1|0)){a=i;h=c[12385]|0;f=h+-1|0;if(!(f&a))a=m;else a=m-a+(f+a&0-h)|0;h=c[12374]|0;f=h+a|0;if(a>>>0>s>>>0&a>>>0<2147483647){w=c[12376]|0;if((w|0)!=0?f>>>0<=h>>>0|f>>>0>w>>>0:0){a=0;break}h=sb(a|0)|0;if((h|0)==(i|0))H=190;else{i=h;H=191}}else a=0}else a=0}while(0);f:do if((H|0)==190){if((i|0)!=(-1|0)){y=i;H=201;break d}}else if((H|0)==191){h=0-a|0;do if((i|0)!=(-1|0)&a>>>0<2147483647&l>>>0>a>>>0?(x=c[12386]|0,x=k-a+x&0-x,x>>>0<2147483647):0)if((sb(x|0)|0)==(-1|0)){sb(h|0)|0;a=0;break f}else{a=x+a|0;break}while(0);if((i|0)==(-1|0))a=0;else{y=i;H=201;break d}}while(0);c[12377]=c[12377]|4;H=198}else{a=0;H=198}while(0);if((((H|0)==198?m>>>0<2147483647:0)?(y=sb(m|0)|0,z=sb(0)|0,(y|0)!=(-1|0)&(z|0)!=(-1|0)&y>>>0>>0):0)?(A=z-y|0,B=A>>>0>(s+40|0)>>>0,B):0){a=B?A:a;H=201}if((H|0)==201){i=(c[12374]|0)+a|0;c[12374]=i;if(i>>>0>(c[12375]|0)>>>0)c[12375]=i;l=c[12272]|0;g:do if(l){e=49512|0;do{i=c[(e&p)>>2]|0;h=e+4|0;f=c[(h&p)>>2]|0;if((y|0)==(i+f|0)){D=i;E=h;F=f;G=e;H=213;break}e=c[(e&p)+8>>2]|0}while((e|0)!=0);if(((H|0)==213?(c[(G&p)+12>>2]&8|0)==0:0)?l>>>0>=D>>>0&l>>>0>>0:0){c[(E&p)>>2]=F+a;b=(c[12269]|0)+a|0;d=l+8|0;if(!(d&7))d=0;else d=0-d&7;x=b-d|0;c[12272]=l+d;c[12269]=x;c[(l+d&p)+4>>2]=x|1;c[(l+b&p)+4>>2]=40;c[12273]=c[12388];break}i=c[12270]|0;if(y>>>0>>0){c[12270]=y;k=y}else k=i;i=y+a|0;h=49512|0;do{if((c[(h&p)>>2]|0)==(i|0)){I=h;J=h;H=223;break}h=c[(h&p)+8>>2]|0}while((h|0)!=0);if((H|0)==223?(c[(J&p)+12>>2]&8|0)==0:0){c[(I&p)>>2]=y;i=J+4|0;c[(i&p)>>2]=(c[(i&p)>>2]|0)+a;i=y+8|0;if(!(i&7))q=0;else q=0-i&7;i=y+(a+8)|0;if(!(i&7))d=0;else d=0-i&7;i=y+(d+a)|0;o=q+s|0;n=y+o|0;m=i-(y+q)-s|0;c[(y+q&p)+4>>2]=s|3;h:do if((i|0)!=(l|0)){if((i|0)==(c[12271]|0)){x=(c[12268]|0)+m|0;c[12268]=x;c[12271]=n;c[(y+o&p)+4>>2]=x|1;c[(y+x+o&p)>>2]=x;break}l=a+4|0;j=c[(y+l+d&p)>>2]|0;if((j&3|0)==1){b=j&-8;f=j>>>3;i:do if(j>>>0>=256){e=c[(y+(d|24)+a&p)>>2]|0;g=c[(y+a+d&p)+12>>2]|0;do if((g|0)==(i|0)){g=d|16;h=y+(l+g)|0;j=c[(h&p)>>2]|0;if(!j){h=y+(g+a)|0;j=c[(h&p)>>2]|0;if(!j){O=0;break}}while(1){g=j+20|0;f=c[(g&p)>>2]|0;if(f){j=f;h=g;continue}g=j+16|0;f=c[(g&p)>>2]|0;if(!f)break;else{j=f;h=g}}if(h>>>0>>0)Ob();else{c[(h&p)>>2]=0;O=j;break}}else{f=c[(y+(d|8)+a&p)>>2]|0;if(f>>>0>>0)Ob();j=f+12|0;if((c[(j&p)>>2]|0)!=(i|0))Ob();h=g+8|0;if((c[(h&p)>>2]|0)==(i|0)){c[(j&p)>>2]=g;c[(h&p)>>2]=f;O=g;break}else Ob()}while(0);if(!e)break;j=c[(y+a+d&p)+28>>2]|0;h=49368+(j<<2)|0;do if((i|0)!=(c[(h&p)>>2]|0)){if(e>>>0<(c[12270]|0)>>>0)Ob();j=e+16|0;if((c[(j&p)>>2]|0)==(i|0))c[(j&p)>>2]=O;else c[(e&p)+20>>2]=O;if(!O)break i}else{c[(h&p)>>2]=O;if(O)break;c[12267]=c[12267]&~(1<
>0]=0}else t=0;aa=c[(z&p)+4>>2]|0;c[(ba&p)>>2]=c[((c[(w&p)>>2]|0)+(q<<4)&p)>>2];c[(ba&p)+4>>2]=v?13184:13208;c[(ba&p)+8>>2]=y;c[(ba&p)+12>>2]=aa;c[(ba&p)+16>>2]=t;Br(ca,30008,ba);mg(A,t);Dr(ca,q);c[(ba&p)>>2]=y;Ir(r,q,uh(A,30072,ba)|0);if(!(a[(s&n)>>0]|0)){k=0;l=z;break}}l=Ik((c[((c[(w&p)>>2]|0)+(q<<4)&p)+12>>2]|0)+40|0,y,z)|0;if(l){a[(A&n)+65>>0]=1;k=0;break}k=c[(m&p)>>2]|0;if((k|0)==(c[(z&p)+24>>2]|0)){k=bn(k+8|0,c[(z&p)+4>>2]|0,ba)|0;if(!k)k=0;else k=c[(k&p)+8>>2]|0;k=k+64|0;c[(z&p)+32>>2]=c[(k&p)>>2];c[(k&p)>>2]=z;k=0}else k=0}else{k=0;l=z}}else l=z;while(0);jg(A,l);Fk(A,k);break}case 265:{D=f+(da+-7<<4)+16|0;C=da+-6|0;E=f+(C<<4)+16|0;r=c[(f+(da+-5<<4)&p)+16>>2]|0;F=da+-4|0;B=c[(f+(F<<4)&p)+16>>2]|0;F=c[(f+(F<<4)&p)+20>>2]|0;H=c[(f+(da+-2<<4)&p)+16>>2]|0;I=c[(f+(da<<4)&p)+16>>2]|0;k=c[(f+(da+-8<<4)&p)+16>>2]|0;J=c[(ca&p)>>2]|0;z=(c[(f+(da+-10<<4)&p)+16>>2]|0)!=0;do if(z)if(!(c[(f+(C<<4)&p)+20>>2]|0)){c[($&p)>>2]=D;if(!H){s=0;t=0;break}else{v=1;aa=483;break}}else{th(ca,29664,ba);s=0;t=0;break}else{v=er(ca,D,E,$)|0;if((v|0)>-1&(H|0)!=0)aa=483;else{s=0;t=0}}while(0);do if((aa|0)==483){h=J+65|0;if(!(a[(h&n)>>0]|0)){x=J+145|0;if((a[(x&n)>>0]|0)!=0&(v|0)!=1){aa=H+12|0;mg(J,c[(aa&p)>>2]|0);c[(aa&p)>>2]=0}w=Jr(ca,H)|0;if((a[(x&n)>>0]|0)==0?((w|0)!=0?(c[(f+(C<<4)&p)+20>>2]|0)==0:0):0)v=(c[(w&p)+68>>2]|0)==(c[((c[(J&p)+16>>2]|0)&p)+28>>2]|0)?1:v;if((a[(h&n)>>0]|0)==0?(R=c[($&p)>>2]|0,aa=c[(ca&p)>>2]|0,c[(_&p)>>2]=ca,aa=c[(aa&p)+16>>2]|0,c[(_&p)+12>>2]=c[(aa+(v<<4)&p)>>2],c[(_&p)+4>>2]=c[(aa+(v<<4)&p)+12>>2],c[(_&p)+16>>2]=10720,c[(_&p)+20>>2]=R,c[(_&p)+8>>2]=(v|0)==1&1,(Kr(_,H)|0)==0):0){x=Jr(ca,H)|0;if(!x){if((a[(J&n)+144>>0]|0)!=1){s=0;t=0;break}a[(J&n)+146>>0]=1;s=0;t=0;break}if(a[(x&n)+44>>0]&16){th(ca,29712,ba);s=0;t=0;break}t=Wq(J,R)|0;if(t)if(!(Lr(ca,t)|0)){A=J+16|0;aa=bn((c[((c[(A&p)>>2]|0)+(v<<4)&p)+12>>2]|0)+40|0,t,S)|0;if((aa|0)!=0?(c[(aa&p)+8>>2]|0)!=0:0)if(!k){c[(ba&p)>>2]=R;th(ca,29760,ba);s=0;break}else{Ar(ca,v);s=0;break}y=c[(x&p)>>2]|0;if(!(Fc(y,25568,7)|0)){th(ca,29792,ba);s=ca+64|0;c[(s&p)>>2]=(c[(s&p)>>2]|0)+1;s=0;break}u=c[(x&p)+12>>2]|0;if((u|0)!=0&(r|0)!=49){c[(ba&p)>>2]=(r|0)==35?29872:29880;c[(ba&p)+4>>2]=H;c[(ba&p)+8>>2]=0;th(ca,29832,ba);s=0;break}q=(r|0)==49;if((u|0)==0&q){c[(ba&p)>>2]=H;c[(ba&p)+4>>2]=0;th(ca,29888,ba);s=0;break}m=x+68|0;x=c[(m&p)>>2]|0;i:do if(x){w=c[(J&p)+20>>2]|0;if((w|0)>0){k=c[(A&p)>>2]|0;l=0;while(1){h=l+1|0;if((c[(k+(l<<4)&p)+12>>2]|0)==(x|0)){h=l;break i}if((h|0)<(w|0))l=h;else break}}else h=0}else h=-1e6;while(0);x=c[(A&p)>>2]|0;k=c[(x+(h<<4)&p)>>2]|0;if(z)w=c[(x&p)+16>>2]|0;else w=k;x=(h|0)==1;if((Sq(ca,x|z?5:7,t,y,w)|0)==0?(Sq(ca,18,x?13184:13208,0,k)|0)==0:0){s=mh(J,36,0)|0;if(!s){s=0;break}y=s+0|0;k=y+36|0;do{a[(y&n)>>0]=0;y=y+1|0}while((y|0)<(k|0));c[(s&p)>>2]=t;c[(s&p)+4>>2]=kh(J,c[(H&p)+16>>2]|0)|0;c[(s&p)+20>>2]=c[((c[(A&p)>>2]|0)+(v<<4)&p)+12>>2];c[(s&p)+24>>2]=c[(m&p)>>2];a[(s&n)+8>>0]=B;a[(s&n)+9>>0]=q|(r|0)==35?1:2;c[(s&p)+12>>2]=Mr(J,I,1,0)|0;c[(s&p)+16>>2]=Nr(J,F)|0;c[(ca&p)+488>>2]=s;t=0}else s=0}else s=0;else{s=0;t=0}}else{s=0;t=0}}else{s=0;t=0}}while(0);mg(J,t);Do(J,H);Hk(J,F);Gk(J,I);if(!(c[(ca&p)+488>>2]|0))jg(J,s);if(!(c[(f+(C<<4)&p)+20>>2]|0)){aa=D;ba=c[(aa&p)+4>>2]|0;ca=ea;c[(ca&p)>>2]=c[(aa&p)>>2];c[(ca&p)+4>>2]=ba;break a}else{aa=E;ba=c[(aa&p)+4>>2]|0;ca=ea;c[(ca&p)>>2]=c[(aa&p)>>2];c[(ca&p)+4>>2]=ba;break a}}case 269:case 266:{c[(ea&p)>>2]=35;break}case 267:{c[(ea&p)>>2]=31;break}case 268:{c[(ea&p)>>2]=49;break}case 284:{l=c[(ca&p)>>2]|0;k=c[(f+(da+-1<<4)&p)+16>>2]|0;h=c[(f+(da<<4)&p)+16>>2]|0;m=a[(f+(da+-5<<4)&n)+16>>0]|0;q=Or(l,110,f+(da+-4<<4)+16|0)|0;if(q){c[(q&p)+24>>2]=Pr(l,k,1)|0;c[(q&p)+20>>2]=Mr(l,h,1,0)|0;a[(q&n)+1>>0]=m}Nk(l,k);Gk(l,h);c[(ea&p)>>2]=q;break}case 271:case 270:{c[(ea&p)>>2]=d[(f+(da<<4)&n)+14>>0];c[(ea&p)+4>>2]=0;break}case 272:{c[(ea&p)>>2]=110;c[(ea&p)+4>>2]=c[(f+(da<<4)&p)+16>>2];break}case 296:case 275:{c[(ea&p)>>2]=0;break}case 297:case 276:{c[(ea&p)>>2]=c[(f+(da<<4)&p)+16>>2];break}case 277:{ba=f+(da+-1<<4)+16|0;ca=f+(da+-2<<4)+16|0;c[((c[((c[(ca&p)>>2]|0)&p)+36>>2]|0)&p)+32>>2]=c[(ba&p)>>2];c[((c[(ca&p)>>2]|0)&p)+36>>2]=c[(ba&p)>>2];c[(ea&p)>>2]=c[(ca&p)>>2];break}case 278:{ca=f+(da+-1<<4)+16|0;ba=c[(ca&p)>>2]|0;c[(ba&p)+36>>2]=ba;c[(ea&p)>>2]=c[(ca&p)>>2];break}case 282:{th(ca,20736,ba);break}case 280:{_=f+(da<<4)+16|0;$=c[(_&p)+4>>2]|0;aa=ea;c[(aa&p)>>2]=c[(_&p)>>2];c[(aa&p)+4>>2]=$;th(ca,20640,ba);break}case 283:{th(ca,20824,ba);break}case 286:{h=c[(ca&p)>>2]|0;k=c[(f+(da<<4)&p)+16>>2]|0;l=Or(h,109,f+(da+-2<<4)+16|0)|0;if(l){c[(l&p)+20>>2]=Mr(h,k,1,0)|0;a[(l&n)+1>>0]=10}Gk(h,k);c[(ea&p)>>2]=l;break}case 287:{l=c[(ca&p)>>2]|0;q=c[(f+(da<<4)&p)+16>>2]|0;h=mh(l,40,0)|0;if(!h){Mk(l,q,1);h=0}else{y=h+0|0;k=y+40|0;do{a[(y&n)>>0]=0;y=y+1|0}while((y|0)<(k|0));a[(h&n)>>0]=119;c[(h&p)+8>>2]=q;a[(h&n)+1>>0]=10}c[(ea&p)>>2]=h;break}case 285:{q=c[(ca&p)>>2]|0;m=c[(f+(da+-1<<4)&p)+16>>2]|0;l=c[(f+(da<<4)&p)+16>>2]|0;k=a[(f+(da+-4<<4)&n)+16>>0]|0;h=Or(q,108,f+(da+-2<<4)+16|0)|0;if(!h)Hk(q,m);else{c[(h&p)+8>>2]=gr(q,l,1)|0;c[(h&p)+28>>2]=m;a[(h&n)+1>>0]=k}Mk(q,l,1);c[(ea&p)>>2]=h;break}case 288:{h=Zq(ca,57,0,0,0)|0;c[(ea&p)>>2]=h;if(h)a[(h&n)+1>>0]=4;c[(ea&p)+4>>2]=c[(f+(da+-3<<4)&p)+16>>2];c[(ea&p)+8>>2]=(c[(f+(da<<4)&p)+16>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0);break}case 289:{h=Zq(ca,57,0,0,f+(da+-1<<4)+16|0)|0;c[(ea&p)>>2]=h;if(h)a[(h&n)+1>>0]=c[(f+(da+-3<<4)&p)+16>>2];c[(ea&p)+4>>2]=c[(f+(da+-5<<4)&p)+16>>2];c[(ea&p)+8>>2]=(c[(f+(da<<4)&p)+16>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0);break}case 290:{c[(ea&p)>>2]=1;break}case 292:{c[(ea&p)>>2]=3;break}case 293:{k=c[(f+(da<<4)&p)+16>>2]|0;h=c[(f+(da+-1<<4)&p)+16>>2]|0;w=c[(ca&p)>>2]|0;do if((a[(w&n)+65>>0]|0)==0?(Gn(ca)|0)==0:0){x=c[(k&p)+12>>2]|0;v=c[(k&p)+16>>2]|0;u=w+20|0;if((c[(u&p)>>2]|0)>0){q=(x|0)==0;m=w+16|0;l=0;s=0;do{r=(l|0)<2^l;t=c[(m&p)>>2]|0;if(!(!q?(dd(c[(t+(r<<4)&p)>>2]|0,x)|0)!=0:0)){t=bn((c[(t+(r<<4)&p)+12>>2]|0)+40|0,v,L)|0;if(t){s=c[(t&p)+8>>2]|0;if(s)break}else s=0}l=l+1|0}while((l|0)<(c[(u&p)>>2]|0));if(s){Qr(ca,s);break}}if(!h){c[(ba&p)>>2]=k;c[(ba&p)+4>>2]=0;th(ca,29600,ba)}else zr(ca,x);a[(ca&n)+17>>0]=1}while(0);Do(w,k);break}case 294:{ba=c[(f+(da+-3<<4)&p)+16>>2]|0;Rr(ca,24,29360,ba,ba,c[(f+(da+-1<<4)&p)+16>>2]|0,c[(f+(da<<4)&p)+16>>2]|0);break}case 303:{Tr(ca,f+(da+-1<<4)+16|0,f+(da<<4)+16|0);break}case 304:{z=c[(f+(da+-3<<4)&p)+16>>2]|0;x=f+(da<<4)+16|0;y=c[(ca&p)>>2]|0;k=y+24|0;l=c[(k&p)>>2]|0;do if((a[(y&n)+65>>0]|0)==0?(X=Ur(ca,0,z+8|0)|0,(X|0)!=0):0){t=c[(ca&p)>>2]|0;A=X+68|0;v=c[(A&p)>>2]|0;j:do if(v){u=c[(t&p)+20>>2]|0;if((u|0)>0){t=c[(t&p)+16>>2]|0;r=0;while(1){s=r+1|0;if((c[(t+(r<<4)&p)+12>>2]|0)==(v|0)){s=r;break j}if((s|0)<(u|0))r=s;else break}}else s=0}else s=-1e6;while(0);h=c[((c[(y&p)+16>>2]|0)+(s<<4)&p)>>2]|0;c[(k&p)>>2]=c[(k&p)>>2]|2097152;q=Wq(y,x)|0;if(q){if((_h(y,q,h)|0)==0?(bq(y,q,h)|0)==0:0){if(Vr(ca,c[(X&p)>>2]|0)|0)break;if(Lr(ca,q)|0)break;t=c[(X&p)>>2]|0;if(c[(X&p)+12>>2]|0){c[(ba&p)>>2]=t;th(ca,26088,ba);break}if(Sq(ca,26,h,t,0)|0)break;if(hr(ca,X)|0)break;if(!(a[(X&n)+44>>0]&16))m=0;else{t=c[(X&p)+60>>2]|0;k:do if(!t)t=0;else while(1){if((c[(t&p)>>2]|0)==(y|0))break k;t=c[(t&p)+24>>2]|0;if(!t){t=0;break}}while(0);m=(c[((c[(c[(t&p)+8>>2]&p)>>2]|0)&p)+76>>2]|0)==0?0:t}t=Oq(ca)|0;if(!t)break;aa=(m|0)!=0;r=ca+408|0;$=c[(r&p)>>2]|0;$=($|0)==0?ca:$;Ar(ca,s);_=$+328|0;c[(_&p)>>2]=c[(_&p)>>2]|1<>0]=d[($&n)>>0]|aa&1;Dr(ca,s);if(aa){$=ca+72|0;aa=(c[($&p)>>2]|0)+1|0;c[($&p)>>2]=aa;xh(t,wh(t,97,0,aa,0)|0,q,0);xh(t,wh(t,152,aa,0,0)|0,m,-10);aa=c[(r&p)>>2]|0;a[(((aa|0)==0?ca:aa)&n)+21>>0]=1}x=c[(X&p)>>2]|0;w=Nn(x,-1)|0;do if((c[(k&p)>>2]&524288|0)!=0?(T=bn((c[(A&p)>>2]|0)+56|0,x,V)|0,(T|0)!=0):0){t=c[(T&p)+8>>2]|0;if(!t)break;r=t;t=0;do{t=Wr(c[(ca&p)>>2]|0,t,c[(c[(r&p)>>2]&p)>>2]|0)|0;r=c[(r&p)+12>>2]|0}while((r|0)!=0);if(!t)break;c[(ba&p)>>2]=h;c[(ba&p)+4>>2]=(s|0)==1?13184:13208;c[(ba&p)+8>>2]=x;c[(ba&p)+12>>2]=q;c[(ba&p)+16>>2]=t;Br(ca,26120,ba);mg(y,t)}while(0);c[(ba&p)>>2]=h;c[(ba&p)+4>>2]=(s|0)==1?13184:13208;c[(ba&p)+8>>2]=q;c[(ba&p)+12>>2]=q;c[(ba&p)+16>>2]=q;c[(ba&p)+20>>2]=q;c[(ba&p)+24>>2]=q;c[(ba&p)+28>>2]=w;c[(ba&p)+32>>2]=x;Br(ca,26192,ba);if(_h(y,26576,h)|0){aa=c[(X&p)>>2]|0;c[(ba&p)>>2]=h;c[(ba&p)+4>>2]=q;c[(ba&p)+8>>2]=aa;Br(ca,26592,ba)}s=Xr(ca,X)|0;if(s){c[(ba&p)>>2]=q;c[(ba&p)+4>>2]=q;c[(ba&p)+8>>2]=s;Br(ca,26656,ba);mg(y,s)}do if(c[(k&p)>>2]&524288){s=bn((c[(A&p)>>2]|0)+56|0,c[(X&p)>>2]|0,ba)|0;if(!s)break;s=c[(s&p)+8>>2]|0;if(!s)break;do{r=c[(s&p)>>2]|0;if((r|0)!=(X|0))Yr(ca,r,c[(r&p)>>2]|0);s=c[(s&p)+12>>2]|0}while((s|0)!=0)}while(0);Yr(ca,X,q);break}c[(ba&p)>>2]=q;th(ca,26024,ba)}else q=0}else q=0;while(0);Do(y,z);mg(y,q);c[(k&p)>>2]=l;break}case 295:{ba=c[(f+(da<<4)&p)+16>>2]|0;Rr(ca,25,29176,ba,0,0,ba);break}case 300:{Sr(ca,0,0);break}case 302:{Tr(ca,0,0);break}case 301:{Sr(ca,f+(da+-1<<4)+16|0,f+(da<<4)+16|0);break}case 305:{y=c[(ca&p)>>2]|0;if((c[(ca&p)+64>>2]|0)==0?(M=y+65|0,(a[(M&n)>>0]|0)==0):0){l=c[(ca&p)+484>>2]|0;t=c[(l&p)+68>>2]|0;l:do if(t){s=c[(y&p)+20>>2]|0;if((s|0)>0){r=c[(y&p)+16>>2]|0;m=0;while(1){q=m+1|0;if((c[(r+(m<<4)&p)+12>>2]|0)==(t|0)){A=m;break l}if((q|0)<(s|0))m=q;else{A=q;break}}}else A=0}else A=-1e6;while(0);h=c[((c[(y&p)+16>>2]|0)+(A<<4)&p)>>2]|0;k=(c[(l&p)>>2]|0)+16|0;u=(b[(l&o)+38>>1]|0)+-1|0;s=c[(l&p)+4>>2]|0;t=c[(s+(u*24|0)&p)+4>>2]|0;z=_h(y,k,h)|0;if(!(Sq(ca,26,h,c[(z&p)>>2]|0,0)|0)){if(!t)v=0;else v=(a[(t&n)>>0]|0)==101?0:t;if(a[(s+(u*24|0)&n)+23>>0]&1){th(ca,25608,ba);break a}if(c[(l&p)+8>>2]|0){th(ca,25640,ba);break a}x=y+24|0;if((c[(x&p)>>2]&524288|0)!=0?(c[(l&p)+16>>2]|0)!=0&(v|0)!=0:0){th(ca,25672,ba);break a}w=(v|0)!=0;if(!((a[(s+(u*24|0)&n)+20>>0]|0)==0|w)){th(ca,25736,ba);break a}do if(w){c[(O&p)>>2]=0;if(Zr(y,v,1,65,O)|0){a[(M&n)>>0]=1;break a}t=c[(O&p)>>2]|0;if(!t){th(ca,25792,ba);break a}else{Mh(t);break}}while(0);t=c[(f+(da<<4)&p)+16>>2]|0;s=f+(da<<4)+20|0;r=c[(s&p)>>2]|0;if((t|0)!=0?(U=jw(r|0,0,1,0)|0,U=mh(y,U,G)|0,(U|0)!=0):0){kw(U|0,t|0,r|0)|0;a[(U+r&n)>>0]=0;t=(c[(s&p)>>2]|0)+-1|0;s=c[(x&p)>>2]|0;m:do if((t|0)>0){t=U+t|0;do{$=a[(t&n)>>0]|0;if($<<24>>24!=59?(a[($&255&n)+10368>>0]&1)==0:0)break m;a[(t&n)>>0]=0;t=t+-1|0}while(t>>>0>U>>>0)}while(0);c[(x&p)>>2]=c[(x&p)>>2]|2097152;$=c[(l&p)+48>>2]|0;c[(ba&p)>>2]=h;c[(ba&p)+4>>2]=(A|0)==1?13184:13208;c[(ba&p)+8>>2]=$;c[(ba&p)+12>>2]=U;c[(ba&p)+16>>2]=$+1;c[(ba&p)+20>>2]=k;Br(ca,25840,ba);mg(y,U);c[(x&p)>>2]=s}t=w?3:2;v=Oq(ca)|0;if(v){s=ca+19|0;q=a[(s&n)>>0]|0;do if(q<<24>>24){ba=q+-1<<24>>24;a[(s&n)>>0]=ba;r=c[(ca+((ba&255)<<2)&p)+24>>2]|0;if(!(ba<<24>>24)){s=c[(ca&p)+72>>2]|0;aa=663;break}else{k=q+-2<<24>>24;a[(s&n)>>0]=k;k=c[(ca+((k&255)<<2)&p)+24>>2]|0;break}}else{r=ca+72|0;s=(c[(r&p)>>2]|0)+1|0;c[(r&p)>>2]=s;r=s;aa=663}while(0);if((aa|0)==663){k=s+1|0;c[(ca&p)+72>>2]=k}wh(v,51,A,r,2)|0;m=v+96|0;c[(m&p)>>2]=c[(m&p)>>2]|1<>2]|0;s=v+32|0;if(q)a[(q+(((c[(s&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=-112;wh(v,52,A,2,k)|0;s=c[(s&p)>>2]|0;if(s>>>0>m>>>0)c[((c[(l&p)>>2]|0)+(m*20|0)&p)+8>>2]=s;c[((c[(v&p)+24>>2]|0)&p)+88>>2]=s+-1;_r(ca,r);_r(ca,k)}Yr(ca,z,c[(z&p)>>2]|0)}}break}case 306:{w=c[(ca&p)>>2]|0;a[(w&n)+250>>0]=0;h=c[(f+(da<<4)&p)+16>>2]|0;x=w+65|0;do if((a[(x&n)>>0]|0)==0?(Q=Ur(ca,0,h+8|0)|0,(Q|0)!=0):0){if(a[(Q&n)+44>>0]&16){th(ca,25400,ba);break}if(c[(Q&p)+12>>2]|0){th(ca,25440,ba);break}if(!(Vr(ca,c[(Q&p)>>2]|0)|0)){s=c[(Q&p)+68>>2]|0;n:do if(s){r=c[(w&p)+20>>2]|0;if((r|0)>0){q=c[(w&p)+16>>2]|0;t=0;while(1){m=t+1|0;if((c[(q+(t<<4)&p)+12>>2]|0)==(s|0)){m=t;break n}if((m|0)<(r|0))t=m;else break}}else m=0}else m=-1e6;while(0);v=mh(w,76,0)|0;if(v){y=v+0|0;k=y+76|0;do{a[(y&n)>>0]=0;y=y+1|0}while((y|0)<(k|0));c[(ca&p)+484>>2]=v;r=v+40|0;b[(r&o)>>1]=1;t=b[(Q&o)+38>>1]|0;q=v+38|0;b[(q&o)>>1]=t;t=((((t<<16>>16)+-1|0)/8|0)*192|0)+192|0;s=mh(w,t,0)|0;if(s)fw(s|0,0,t|0)|0;t=v+4|0;c[(t&p)>>2]=s;c[(ba&p)>>2]=c[(Q&p)>>2];ba=uh(w,25472,ba)|0;c[(v&p)>>2]=ba;s=c[(t&p)>>2]|0;if((s|0)==0|(ba|0)==0){a[(x&n)>>0]=1;break}kw(s|0,c[(Q&p)+4>>2]|0,(b[(q&o)>>1]|0)*24|0)|0;if((b[(q&o)>>1]|0)>0){s=0;do{ba=c[(t&p)>>2]|0;aa=ba+(s*24|0)|0;c[(aa&p)>>2]=kh(w,c[(aa&p)>>2]|0)|0;ba=ba+(s*24|0)+4|0;s=s+1|0;c[(ba&p)>>2]=0;c[(ba&p)+4>>2]=0;c[(ba&p)+8>>2]=0;c[(ba&p)+12>>2]=0}while((s|0)<(b[(q&o)>>1]|0))}c[(v&p)+68>>2]=c[((c[(w&p)+16>>2]|0)+(m<<4)&p)+12>>2];c[(v&p)+48>>2]=c[(Q&p)+48>>2];b[(r&o)>>1]=1;ba=c[(ca&p)+408>>2]|0;Ar(ca,m);ba=((ba|0)==0?ca:ba)+328|0;c[(ba&p)>>2]=c[(ba&p)>>2]|1<>2]|0);t=c[(ca&p)+484>>2]|0;if(t){h=c[(ca&p)>>2]|0;s=c[(t&p)+68>>2]|0;o:do if(s){r=c[(h&p)+20>>2]|0;if((r|0)>0){m=c[(h&p)+16>>2]|0;l=0;while(1){q=l+1|0;if((c[(m+(l<<4)&p)+12>>2]|0)==(s|0)){q=l;break o}if((q|0)<(r|0))l=q;else break}}else q=0}else q=-1e6;while(0);l=t+44|0;a[(l&n)>>0]=d[(l&n)>>0]|16;c[(t&p)+52>>2]=0;as(h,t,Wq(h,k)|0);as(h,t,0);as(h,t,kh(h,c[(t&p)>>2]|0)|0);c[(ca&p)+500>>2]=(c[(k&p)>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0)-(c[(ca&p)+496>>2]|0);l=c[(t&p)+56>>2]|0;if(l)Sq(ca,29,c[(t&p)>>2]|0,c[(l&p)>>2]|0,c[((c[((c[(ca&p)>>2]|0)&p)+16>>2]|0)+(q<<4)&p)>>2]|0)|0}break}case 322:{c[(ea&p)>>2]=0;break}case 324:case 323:{c[(ea&p)>>2]=c[(f+(da<<4)&p)+16>>2];break}case 325:{c[(ea&p)>>2]=cs(ca,0,f+(da+-5<<4)+16|0,c[(f+(da+-4<<4)&p)+16>>2]|0,c[(f+(da+-1<<4)&p)+16>>2]|0)|0;break}case 326:{c[(ea&p)>>2]=cs(ca,c[(f+(da+-7<<4)&p)+16>>2]|0,f+(da+-5<<4)+16|0,c[(f+(da+-4<<4)&p)+16>>2]|0,c[(f+(da+-1<<4)&p)+16>>2]|0)|0;break}case 314:{bs(ca);c[(ca&p)+512>>2]=0;c[(ca&p)+516>>2]=0;break}case 318:case 317:case 316:{l=ca+512|0;k=c[(l&p)>>2]|0;h=c[(f+(da<<4)&p)+16>>2]|0;if(!k){c[(l&p)>>2]=h;h=c[(f+(da<<4)&p)+20>>2]|0}else h=h+(c[(f+(da<<4)&p)+20>>2]|0)-k|0;c[(ca&p)+516>>2]=h;break}case 77:{c[(ea&p)>>2]=8;break}case 78:{c[(ea&p)>>2]=9;break}case 79:{c[(ea&p)>>2]=6;break}case 80:{c[(ea&p)>>2]=0;break}case 103:case 100:case 98:case 82:{c[(ea&p)>>2]=c[(f+(da<<4)&p)+16>>2];break}case 86:{c[(ea&p)+4>>2]=0;c[(ea&p)>>2]=0;break}case 87:{aa=f+(da+-1<<4)+16|0;ba=c[(aa&p)+4>>2]|0;ca=ea;c[(ca&p)>>2]=c[(aa&p)>>2];c[(ca&p)+4>>2]=ba;break}case 90:{c[(ca&p)+324>>2]=0;break}case 109:{h=da+-7|0;r=f+(da+-3<<4)+16|0;q=f+(da+-2<<4)+16|0;x=c[(f+(da<<4)&p)+16>>2]|0;t=c[(f+(da+-6<<4)&p)+16>>2]|0;s=c[(f+(da+-4<<4)&p)+16>>2]|0;c[(I&p)>>2]=0;w=c[(ca&p)>>2]|0;if((c[(ca&p)+440>>2]|0)>0){th(ca,35440,ba);Mk(w,x,1);break a}Uq(ca,r,q,t,1,0,s);l=c[(ca&p)+484>>2]|0;if((l|0)!=0?(c[(ca&p)+64>>2]|0)==0:0){er(ca,r,q,I)|0;t=c[(l&p)+68>>2]|0;p:do if(t){r=c[(w&p)+20>>2]|0;if((r|0)>0){q=c[(w&p)+16>>2]|0;m=0;while(1){s=m+1|0;if((c[(q+(m<<4)&p)+12>>2]|0)==(t|0)){s=m;break p}if((s|0)<(r|0))m=s;else break}}else s=0}else s=-1e6;while(0);ba=c[(I&p)>>2]|0;aa=c[(ca&p)>>2]|0;c[(_&p)>>2]=ca;aa=c[(aa&p)+16>>2]|0;c[(_&p)+12>>2]=c[(aa+(s<<4)&p)>>2];c[(_&p)+4>>2]=c[(aa+(s<<4)&p)+12>>2];c[(_&p)+16>>2]=35480;c[(_&p)+20>>2]=ba;c[(_&p)+8>>2]=(s|0)==1&1;if(fr(_,x)|0){Mk(w,x,1);break a}c[(l&p)+12>>2]=gr(w,x,1)|0;Mk(w,x,1);if(a[(w&n)+65>>0]|0)break a;if(!(a[(w&n)+145>>0]|0))hr(ca,l)|0;q=ca+504|0;m=c[(q&p)>>2]|0;q=c[(q&p)+4>>2]|0;ba=$;c[(ba&p)>>2]=m;c[(ba&p)+4>>2]=q;ba=a[(m&n)>>0]|0;if(!(ba<<24>>24==59|ba<<24>>24==0)){m=m+q|0;c[($&p)>>2]=m}r=$+4|0;c[(r&p)>>2]=0;s=c[(f+(h<<4)&p)+16>>2]|0;q=m-s|0;do{ba=q;q=q+-1|0;l=s+q|0;if((ba|0)<=0)break}while((a[((d[(l&n)>>0]|0)&n)+10368>>0]&1)!=0);c[($&p)>>2]=l;c[(r&p)>>2]=1;Vq(ca,0,$,0,0);break a}Mk(w,x,1);break}case 93:{_q(ca,c[(f+(da+-3<<4)&p)+16>>2]|0,c[(f+(da<<4)&p)+16>>2]|0,c[(f+(da+-2<<4)&p)+16>>2]|0,0);break}case 94:{$q(ca,0,0,0,c[(f+(da+-2<<4)&p)+16>>2]|0,c[(f+(da<<4)&p)+16>>2]|0,0,0,0,0)|0;break}case 95:{ar(ca,c[(f+(da+-2<<4)&p)+16>>2]|0);break}case 96:{br(ca,c[(f+(da+-6<<4)&p)+16>>2]|0,f+(da+-3<<4)+16|0,c[(f+(da+-2<<4)&p)+16>>2]|0,c[(f+(da+-1<<4)&p)+16>>2]|0);k=c[(f+(da<<4)&p)+16>>2]|0;l=c[(ca&p)+484>>2]|0;if((l|0)!=0?(q=c[(l&p)+16>>2]|0,(q|0)!=0):0)a[(q&n)+24>>0]=k;break}case 99:{c[(ea&p)>>2]=10;break}case 101:{a[(ea&n)>>0]=10;break}case 102:{a[(ea&n)>>0]=c[(f+(da<<4)&p)+16>>2];break}case 104:{c[(ea&p)>>2]=4;break}case 105:{c[(ea&p)>>2]=5;break}case 106:{dr(ca,c[(f+(da<<4)&p)+16>>2]|0,0,c[(f+(da+-1<<4)&p)+16>>2]|0);break}case 110:{dr(ca,c[(f+(da<<4)&p)+16>>2]|0,1,c[(f+(da+-1<<4)&p)+16>>2]|0);break}case 111:{c[(z&p)>>2]=c[5124];c[(z&p)+4>>2]=c[5125];c[(z&p)+8>>2]=c[5126];c[(z&p)+12>>2]=c[5127];c[(z&p)+16>>2]=c[5128];ba=f+(da<<4)+16|0;ir(ca,c[(ba&p)>>2]|0,z)|0;Mk(c[(ca&p)>>2]|0,c[(ba&p)>>2]|0,1);break}case 112:{t=c[(f+(da<<4)&p)+16>>2]|0;do if(t){c[(t&p)+68>>2]=c[(f+(da+-1<<4)&p)+16>>2];l=c[(t&p)+52>>2]|0;if(l){m=128;q=1;r=t;s=0;while(1){c[(r&p)+56>>2]=s;$=r+6|0;aa=e[($&o)>>1]|64;b[($&o)>>1]=aa;m=aa&m;if(!l)break;aa=l;l=c[(l&p)+52>>2]|0;q=q+1|0;s=r;r=aa}if(m){ca=t+6|0;b[(ca&o)>>1]=e[(ca&o)>>1]|256;break}aa=c[((c[(ca&p)>>2]|0)&p)+104>>2]|0;if((aa|0)>0&(q|0)>(aa|0))th(ca,20520,ba)}}else Qn(c[(ca&p)>>2]|0,c[(f+(da+-1<<4)&p)+16>>2]|0);while(0);c[(ea&p)>>2]=t;break}case 116:{c[(ea&p)>>2]=116;break}case 119:case 113:{c[(ea&p)>>2]=c[(f+(da<<4)&p)+16>>2];break}case 114:{h=c[(f+(da<<4)&p)+16>>2]|0;do if(h){if(c[(h&p)+52>>2]|0){c[(l&p)+4>>2]=0;h=kr(ca,0,jr(ca,0,0,0,l,h,0,0)|0,0,0,0,0,0,0,0)|0;if(!h){aa=192;break}}ba=c[(f+(da+-1<<4)&p)+16>>2]|0;a[(h&n)+4>>0]=ba;c[(h&p)+52>>2]=c[(f+(da+-2<<4)&p)+16>>2];if((ba|0)!=116)a[(ca&n)+22>>0]=1}else aa=192;while(0);if((aa|0)==192){Mk(c[(ca&p)>>2]|0,c[(f+(da+-2<<4)&p)+16>>2]|0,1);h=0}c[(ea&p)>>2]=h;break}case 121:{h=kr(ca,c[(f+(da+-1<<4)&p)+16>>2]|0,0,0,0,0,0,128,0,0)|0;if(!h){c[(ea&p)>>2]=c[(f+(da+-4<<4)&p)+16>>2];break a}else{a[(h&n)+4>>0]=116;c[(h&p)+52>>2]=c[(f+(da+-4<<4)&p)+16>>2];c[(ea&p)>>2]=h;break a}}case 122:{b[(ea&o)>>1]=1;break}case 124:case 123:{b[(ea&o)>>1]=0;break}case 242:case 236:case 161:case 154:case 126:{c[(ea&p)>>2]=0;break}case 243:case 125:{c[(ea&p)>>2]=c[(f+(da+-1<<4)&p)+16>>2];break}case 167:{c[(ea&p)>>2]=c[(f+(da+-2<<4)&p)+16>>2];c[(ea&p)+4>>2]=c[(f+(da<<4)&p)+16>>2];break}case 168:{c[(ea&p)+4>>2]=c[(f+(da+-2<<4)&p)+16>>2];c[(ea&p)>>2]=c[(f+(da<<4)&p)+16>>2];break}case 169:{h=c[(f+(da+-5<<4)&p)+16>>2]|0;if(h){ba=ca+532|0;c[(h&p)+4>>2]=c[(ba&p)>>2];c[(ba&p)>>2]=h;a[(ca&n)+449>>0]=1}ba=f+(da+-2<<4)+16|0;or(ca,c[(ba&p)>>2]|0,f+(da+-1<<4)+16|0);rr(ca,c[(ba&p)>>2]|0,c[(f+(da<<4)&p)+16>>2]|0);break}case 176:{h=c[(f+(da+-6<<4)&p)+16>>2]|0;if(h){ba=ca+532|0;c[(h&p)+4>>2]=c[(ba&p)>>2];c[(ba&p)>>2]=h;a[(ca&n)+449>>0]=1}tr(ca,c[(f+(da+-3<<4)&p)+16>>2]|0,0,c[(f+(da+-2<<4)&p)+16>>2]|0,d[(f+(da+-5<<4)&n)+16>>0]|0);break}case 173:{ba=lr(ca,c[(f+(da+-4<<4)&p)+16>>2]|0,c[(f+(da<<4)&p)+16>>2]|0)|0;c[(ea&p)>>2]=ba;mr(ca,ba,f+(da+-2<<4)+16|0,1);break}case 174:{ba=lr(ca,0,c[(f+(da<<4)&p)+16>>2]|0)|0;c[(ea&p)>>2]=ba;mr(ca,ba,f+(da+-2<<4)+16|0,1);break}case 175:{h=c[(f+(da+-5<<4)&p)+16>>2]|0;if(h){ba=ca+532|0;c[(h&p)+4>>2]=c[(ba&p)>>2];c[(ba&p)>>2]=h;a[(ca&n)+449>>0]=1}tr(ca,c[(f+(da+-2<<4)&p)+16>>2]|0,c[(f+(da<<4)&p)+16>>2]|0,c[(f+(da+-1<<4)&p)+16>>2]|0,d[(f+(da+-4<<4)&n)+16>>0]|0);break}case 181:{c[(ea&p)>>2]=ur(c[(ca&p)>>2]|0,c[(f+(da+-2<<4)&p)+16>>2]|0,f+(da<<4)+16|0)|0;break}case 182:{c[(ea&p)>>2]=ur(c[(ca&p)>>2]|0,0,f+(da<<4)+16|0)|0;break}case 183:{ca=f+(da<<4)+16|0;c[(ea&p)>>2]=c[(ca&p)>>2];c[(ea&p)+4>>2]=c[(ca&p)+4>>2];c[(ea&p)+8>>2]=c[(ca&p)+8>>2];break}case 177:{a[(ea&n)>>0]=a[(f+(da<<4)&n)+16>>0]|0;break}case 178:{a[(ea&n)>>0]=5;break}case 184:{c[(ea&p)>>2]=c[(f+(da+-1<<4)&p)+16>>2];c[(ea&p)+4>>2]=c[(f+(da+-2<<4)&p)+16>>2];c[(ea&p)+8>>2]=(c[(f+(da<<4)&p)+16>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0);break}case 191:case 190:case 185:{ba=f+(da<<4)+16|0;c[(ea&p)>>2]=Zq(ca,d[(f+(da<<4)&n)+14>>0]|0,0,0,ba)|0;ca=c[(ba&p)>>2]|0;c[(ea&p)+4>>2]=ca;c[(ea&p)+8>>2]=ca+(c[(f+(da<<4)&p)+20>>2]|0);break}case 187:case 186:{ba=f+(da<<4)+16|0;c[(ea&p)>>2]=Zq(ca,27,0,0,ba)|0;ca=c[(ba&p)>>2]|0;c[(ea&p)+4>>2]=ca;c[(ea&p)+8>>2]=ca+(c[(f+(da<<4)&p)+20>>2]|0);break}case 188:{aa=f+(da+-2<<4)+16|0;ba=f+(da<<4)+16|0;c[(ea&p)>>2]=Zq(ca,122,Zq(ca,27,0,0,aa)|0,Zq(ca,27,0,0,ba)|0,0)|0;c[(ea&p)+4>>2]=c[(aa&p)>>2];c[(ea&p)+8>>2]=(c[(ba&p)>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0);break}case 189:{aa=f+(da+-4<<4)+16|0;ba=f+(da<<4)+16|0;c[(ea&p)>>2]=Zq(ca,122,Zq(ca,27,0,0,aa)|0,Zq(ca,122,Zq(ca,27,0,0,f+(da+-2<<4)+16|0)|0,Zq(ca,27,0,0,ba)|0,0)|0,0)|0;c[(ea&p)+4>>2]=c[(aa&p)>>2];c[(ea&p)+8>>2]=(c[(ba&p)>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0);break}case 192:{x=f+(da<<4)+16|0;w=f+(da<<4)+20|0;do if(((c[(w&p)>>2]|0)>>>0>1?(C=c[(x&p)>>2]|0,(a[(C&n)>>0]|0)==35):0)?((d[(C&n)+1>>0]|0)+-48|0)>>>0<10:0){if(!(a[(ca&n)+18>>0]|0)){c[(ba&p)>>2]=x;th(ca,20432,ba);c[(ea&p)>>2]=0;break}r=Zq(ca,159,0,0,x)|0;c[(ea&p)>>2]=r;if(r)Dn((c[(x&p)>>2]|0)+1|0,r+28|0)|0}else aa=298;while(0);q:do if((aa|0)==298?(P=Zq(ca,135,0,0,x)|0,c[(ea&p)>>2]=P,W=c[(x&p)>>2]|0,c[(ea&p)+4>>2]=W,c[(ea&p)+8>>2]=W+(c[(w&p)>>2]|0),W=c[(ca&p)>>2]|0,(P|0)!=0):0){z=c[(P&p)+8>>2]|0;r=z+1|0;do if(a[(r&n)>>0]|0){y=(z|0)==0;if(y)A=0;else{t=z;while(1)if(!(a[(t&n)>>0]|0))break;else t=t+1|0;A=t-z&1073741823}r:do if((a[(z&n)>>0]|0)==63){$=Ul(r,H,A+-1|0,1)|0;m=H;q=c[(m&p)>>2]|0;m=c[(m&p)+4>>2]|0;t=q&65535;b[(P&o)+32>>1]=t;r=c[(W&p)+124>>2]|0;aa=((r|0)<0)<<31>>31;if((m|0)<0|(m|0)==0&q>>>0<1|($|0)!=0|((m|0)>(aa|0)|(m|0)==(aa|0)&q>>>0>r>>>0)){c[(ba&p)>>2]=r;th(ca,33296,ba);t=0}r=ca+440|0;aa=c[(r&p)>>2]|0;$=((aa|0)<0)<<31>>31;if((m|0)>($|0)|(m|0)==($|0)&q>>>0>aa>>>0)c[(r&p)>>2]=q}else{r=c[(ca&p)+444>>2]|0;s:do if((r|0)>0){q=c[(ca&p)+472>>2]|0;t=0;l=0;while(1){m=c[(q+(t<<2)&p)>>2]|0;if((m|0)!=0?(_v(m,z)|0)==0:0)break;l=l+1<<16>>16;t=l<<16>>16;if((t|0)>=(r|0)){aa=315;break s}}t=t+1&65535;r=P+32|0;b[(r&o)>>1]=t;if(t<<16>>16)break r}else aa=315;while(0);if((aa|0)==315)r=P+32|0;aa=ca+440|0;t=(c[(aa&p)>>2]|0)+1|0;c[(aa&p)>>2]=t;t=t&65535;b[(r&o)>>1]=t}while(0);m=t<<16>>16;if(t<<16>>16>0){t=ca+444|0;if((m|0)>(c[(t&p)>>2]|0)){r=ca+472|0;q=ro(W,c[(r&p)>>2]|0,m<<2,0)|0;if(!q)break q;c[(r&p)>>2]=q;aa=c[(t&p)>>2]|0;fw(q+(aa<<2)|0,0,m-aa<<2|0)|0;c[(t&p)>>2]=m}if((a[(z&n)>>0]|0)==63){r=m+-1|0;if(!(c[((c[(ca&p)+472>>2]|0)+(r<<2)&p)>>2]|0))t=0;else break}else{t=m+-1|0;r=t;t=c[((c[(ca&p)+472>>2]|0)+(t<<2)&p)>>2]|0}q=ca+472|0;mg(W,t);if(!y?(s=jw(A|0,0,1,0)|0,s=mh(W,s,G)|0,(s|0)!=0):0){kw(s|0,z|0,A|0)|0;a[(s+A&n)>>0]=0}else s=0;c[((c[(q&p)>>2]|0)+(r<<2)&p)>>2]=s}}else{$=ca+440|0;aa=(c[($&p)>>2]|0)+1|0;c[($&p)>>2]=aa;b[(P&o)+32>>1]=aa}while(0);if((c[(ca&p)+64>>2]|0)==0?(c[(ca&p)+440>>2]|0)>(c[(W&p)+124>>2]|0):0)th(ca,33344,ba)}while(0);ca=c[(x&p)>>2]|0;c[(ea&p)+4>>2]=ca;c[(ea&p)+8>>2]=ca+(c[(w&p)>>2]|0);break}case 196:{ba=f+(da+-3<<4)+16|0;c[(ea&p)>>2]=wr(ca,0,ba)|0;c[(ea&p)+4>>2]=c[(ba&p)>>2];c[(ea&p)+8>>2]=(c[(f+(da<<4)&p)+16>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0);break}case 197:{ba=f+(da<<4)+16|0;c[(ea&p)>>2]=wr(ca,0,ba)|0;ca=c[(ba&p)>>2]|0;c[(ea&p)+4>>2]=ca;c[(ea&p)+8>>2]=ca+(c[(f+(da<<4)&p)+20>>2]|0);break}case 193:{aa=da+-2|0;ba=f+(da<<4)+16|0;c[(ea&p)>>2]=vr(ca,c[(f+(aa<<4)&p)+16>>2]|0,ba,1)|0;c[(ea&p)+4>>2]=c[(f+(aa<<4)&p)+20>>2];c[(ea&p)+8>>2]=(c[(ba&p)>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0);break}case 194:{c[(ea&p)>>2]=Zq(ca,38,c[(f+(da+-3<<4)&p)+16>>2]|0,0,f+(da+-1<<4)+16|0)|0;c[(ea&p)+4>>2]=c[(f+(da+-5<<4)&p)+16>>2];c[(ea&p)+8>>2]=(c[(f+(da<<4)&p)+16>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0);break}case 195:{l=f+(da+-1<<4)+16|0;h=c[(l&p)>>2]|0;if(h){if((c[(h&p)>>2]|0)>(c[((c[(ca&p)>>2]|0)&p)+112>>2]|0)){c[(ba&p)>>2]=f+(da+-4<<4)+16;th(ca,20576,ba);h=c[(l&p)>>2]|0}}else h=0;ba=f+(da+-4<<4)+16|0;h=wr(ca,h,ba)|0;c[(ea&p)>>2]=h;c[(ea&p)+4>>2]=c[(ba&p)>>2];c[(ea&p)+8>>2]=(c[(f+(da<<4)&p)+16>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0);if(!((h|0)==0?1:(b[(f+(da+-2<<4)&o)+16>>1]|0)==0)){ca=h+4|0;c[(ca&p)>>2]=c[(ca&p)>>2]|16}break}case 205:case 204:case 203:case 202:case 201:case 200:case 199:case 198:{ba=da+-2|0;c[(ea&p)>>2]=Zq(ca,d[(f+(da+-1<<4)&n)+14>>0]|0,c[(f+(ba<<4)&p)+16>>2]|0,c[(f+(da<<4)&p)+16>>2]|0,0)|0;c[(ea&p)+4>>2]=c[(f+(ba<<4)&p)+20>>2];c[(ea&p)+8>>2]=c[(f+(da<<4)&p)+24>>2];break}case 206:{aa=f+(da<<4)+16|0;ba=c[(aa&p)+4>>2]|0;ca=ea;c[(ca&p)>>2]=c[(aa&p)>>2];c[(ca&p)+4>>2]=ba;c[(ea&p)+8>>2]=0;break}case 207:{aa=f+(da<<4)+16|0;ba=c[(aa&p)+4>>2]|0;ca=ea;c[(ca&p)>>2]=c[(aa&p)>>2];c[(ca&p)+4>>2]=ba;c[(ea&p)+8>>2]=1;break}case 208:{l=da+-2|0;ba=da+-1|0;h=wr(ca,lr(ca,lr(ca,0,c[(f+(da<<4)&p)+16>>2]|0)|0,c[(f+(l<<4)&p)+16>>2]|0)|0,f+(ba<<4)+16|0)|0;c[(ea&p)>>2]=h;if(c[(f+(ba<<4)&p)+24>>2]|0){h=Zq(ca,19,h,0,0)|0;c[(ea&p)>>2]=h}c[(ea&p)+4>>2]=c[(f+(l<<4)&p)+20>>2];c[(ea&p)+8>>2]=c[(f+(da<<4)&p)+24>>2];if(h){ca=h+4|0;c[(ca&p)>>2]=c[(ca&p)>>2]|128}break}case 210:{ba=da+-1|0;c[(ea&p)>>2]=Zq(ca,d[(f+(da<<4)&n)+14>>0]|0,c[(f+(ba<<4)&p)+16>>2]|0,0,0)|0;c[(ea&p)+4>>2]=c[(f+(ba<<4)&p)+20>>2];c[(ea&p)+8>>2]=(c[(f+(da<<4)&p)+16>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0);break}case 209:{l=da+-4|0;ba=da+-3|0;h=wr(ca,lr(ca,lr(ca,lr(ca,0,c[(f+(da+-2<<4)&p)+16>>2]|0)|0,c[(f+(l<<4)&p)+16>>2]|0)|0,c[(f+(da<<4)&p)+16>>2]|0)|0,f+(ba<<4)+16|0)|0;c[(ea&p)>>2]=h;if(c[(f+(ba<<4)&p)+24>>2]|0){h=Zq(ca,19,h,0,0)|0;c[(ea&p)>>2]=h}c[(ea&p)+4>>2]=c[(f+(l<<4)&p)+20>>2];c[(ea&p)+8>>2]=c[(f+(da<<4)&p)+24>>2];if(h){ca=h+4|0;c[(ca&p)>>2]=c[(ca&p)>>2]|128}break}case 223:{l=f+(da+-1<<4)+16|0;h=c[(l&p)>>2]|0;do if(h){if((c[(h&p)>>2]|0)==1){ba=c[(h&p)+4>>2]|0;h=c[(ba&p)>>2]|0;c[(ba&p)>>2]=0;Nk(c[(ca&p)>>2]|0,c[(l&p)>>2]|0);if(h){ba=h+4|0;c[(ba&p)>>2]=c[(ba&p)>>2]&-769|512}c[(ea&p)>>2]=Zq(ca,(c[(f+(da+-3<<4)&p)+16>>2]|0)!=0?78:79,c[(f+(da+-4<<4)&p)+16>>2]|0,h,0)|0;break}h=Zq(ca,75,c[(f+(da+-4<<4)&p)+16>>2]|0,0,0)|0;c[(ea&p)>>2]=h;if(!h){Nk(c[(ca&p)>>2]|0,c[(l&p)>>2]|0);h=0}else{c[(h&p)+20>>2]=c[(l&p)>>2];h=c[(ea&p)>>2]|0;yr(ca,h)}if(c[(f+(da+-3<<4)&p)+16>>2]|0)c[(ea&p)>>2]=Zq(ca,19,h,0,0)|0}else{c[(ea&p)>>2]=Zq(ca,132,0,0,20616+(c[(f+(da+-3<<4)&p)+16>>2]<<3)|0)|0;Gk(c[(ca&p)>>2]|0,c[(f+(da+-4<<4)&p)+16>>2]|0)}while(0);c[(ea&p)+4>>2]=c[(f+(da+-4<<4)&p)+20>>2];c[(ea&p)+8>>2]=(c[(f+(da<<4)&p)+16>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0);break}case 211:{ba=da+-2|0;c[(ea&p)>>2]=Zq(ca,77,c[(f+(ba<<4)&p)+16>>2]|0,0,0)|0;c[(ea&p)+4>>2]=c[(f+(ba<<4)&p)+20>>2];c[(ea&p)+8>>2]=(c[(f+(da<<4)&p)+16>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0);break}case 212:{$=da+-2|0;aa=f+(da<<4)+16|0;ba=Zq(ca,73,c[(f+($<<4)&p)+16>>2]|0,c[(aa&p)>>2]|0,0)|0;c[(ea&p)>>2]=ba;c[(ea&p)+4>>2]=c[(f+($<<4)&p)+20>>2];c[(ea&p)+8>>2]=c[(f+(da<<4)&p)+24>>2];xr(ca,c[(aa&p)>>2]|0,ba,76);break}case 213:{$=da+-3|0;aa=f+(da<<4)+16|0;ba=Zq(ca,148,c[(f+($<<4)&p)+16>>2]|0,c[(aa&p)>>2]|0,0)|0;c[(ea&p)>>2]=ba;c[(ea&p)+4>>2]=c[(f+($<<4)&p)+20>>2];c[(ea&p)+8>>2]=c[(f+(da<<4)&p)+24>>2];xr(ca,c[(aa&p)>>2]|0,ba,77);break}case 215:case 214:{ba=da+-1|0;c[(ea&p)>>2]=Zq(ca,d[(f+(ba<<4)&n)+14>>0]|0,c[(f+(da<<4)&p)+16>>2]|0,0,0)|0;c[(ea&p)+4>>2]=c[(f+(ba<<4)&p)+16>>2];c[(ea&p)+8>>2]=c[(f+(da<<4)&p)+24>>2];break}case 216:{c[(ea&p)>>2]=Zq(ca,157,c[(f+(da<<4)&p)+16>>2]|0,0,0)|0;c[(ea&p)+4>>2]=c[(f+(da+-1<<4)&p)+16>>2];c[(ea&p)+8>>2]=c[(f+(da<<4)&p)+24>>2];break}case 217:{c[(ea&p)>>2]=Zq(ca,158,c[(f+(da<<4)&p)+16>>2]|0,0,0)|0;c[(ea&p)+4>>2]=c[(f+(da+-1<<4)&p)+16>>2];c[(ea&p)+8>>2]=c[(f+(da<<4)&p)+24>>2];break}case 220:{k=lr(ca,lr(ca,0,c[(f+(da+-2<<4)&p)+16>>2]|0)|0,c[(f+(da<<4)&p)+16>>2]|0)|0;l=da+-4|0;h=Zq(ca,74,c[(f+(l<<4)&p)+16>>2]|0,0,0)|0;c[(ea&p)>>2]=h;if(!h)Nk(c[(ca&p)>>2]|0,k);else c[(h&p)+20>>2]=k;if(c[(f+(da+-3<<4)&p)+16>>2]|0)c[(ea&p)>>2]=Zq(ca,19,c[(ea&p)>>2]|0,0,0)|0;c[(ea&p)+4>>2]=c[(f+(l<<4)&p)+20>>2];c[(ea&p)+8>>2]=c[(f+(da<<4)&p)+24>>2];break}case 224:{h=Zq(ca,119,0,0,0)|0;c[(ea&p)>>2]=h;if(!h)Mk(c[(ca&p)>>2]|0,c[(f+(da+-1<<4)&p)+16>>2]|0,1);else{c[(h&p)+20>>2]=c[(f+(da+-1<<4)&p)+16>>2];ba=c[(ea&p)>>2]|0;aa=ba+4|0;c[(aa&p)>>2]=c[(aa&p)>>2]|2099200;yr(ca,ba)}c[(ea&p)+4>>2]=c[(f+(da+-2<<4)&p)+16>>2];c[(ea&p)+8>>2]=(c[(f+(da<<4)&p)+16>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0);break}case 118:{c[(ea&p)>>2]=kr(ca,c[(f+(da+-6<<4)&p)+16>>2]|0,c[(f+(da+-5<<4)&p)+16>>2]|0,c[(f+(da+-4<<4)&p)+16>>2]|0,c[(f+(da+-3<<4)&p)+16>>2]|0,c[(f+(da+-2<<4)&p)+16>>2]|0,c[(f+(da+-1<<4)&p)+16>>2]|0,b[(f+(da+-7<<4)&o)+16>>1]|0,c[(f+(da<<4)&p)+16>>2]|0,c[(f+(da<<4)&p)+20>>2]|0)|0;break}case 120:{c[(ea&p)>>2]=kr(ca,c[(f+(da+-1<<4)&p)+16>>2]|0,0,0,0,0,0,128,0,0)|0;break}case 127:{l=da+-1|0;q=lr(ca,c[(f+(da+-2<<4)&p)+16>>2]|0,c[(f+(l<<4)&p)+16>>2]|0)|0;c[(ea&p)>>2]=q;if(c[(f+(da<<4)&p)+20>>2]|0)mr(ca,q,f+(da<<4)+16|0,1);s=c[(ca&p)>>2]|0;if(q){r=(c[(q&p)+4>>2]|0)+(((c[(q&p)>>2]|0)+-1|0)*20|0)+8|0;mg(s,c[(r&p)>>2]|0);m=c[(f+(l<<4)&p)+20>>2]|0;q=(c[(f+(l<<4)&p)+24>>2]|0)-m|0;if((m|0)!=0?(h=jw(q|0,((q|0)<0)<<31>>31|0,1,0)|0,h=mh(s,h,G)|0,(h|0)!=0):0){kw(h|0,m|0,q|0)|0;a[(h+q&n)>>0]=0}else h=0;c[(r&p)>>2]=h}break}case 133:{l=mh(c[(ca&p)>>2]|0,80,0)|0;if(l){y=l+0|0;k=y+80|0;do{a[(y&n)>>0]=0;y=y+1|0}while((y|0)<(k|0))}c[(ea&p)>>2]=l;break}case 134:{q=c[(f+(da<<4)&p)+16>>2]|0;c[(ea&p)>>2]=q;if(q){l=c[(q&p)>>2]|0;k=l+-1|0;if((k|0)>0)while(1){a[(q+(k*72|0)&n)+44>>0]=a[(q+((l+-2|0)*72|0)&n)+44>>0]|0;l=k+-1|0;if((l|0)>0){ca=k;k=l;l=ca}else break}a[(q&n)+44>>0]=0}break}case 128:{aa=c[(ca&p)>>2]|0;c[(ba&p)>>2]=0;c[(ba&p)+4>>2]=0;ba=nr(aa,116,ba,0)|0;c[(ea&p)>>2]=lr(ca,c[(f+(da+-1<<4)&p)+16>>2]|0,ba)|0;break}case 132:{c[(ea&p)+4>>2]=0;break}case 129:{ba=Zq(ca,116,0,0,f+(da<<4)+16|0)|0;ba=Zq(ca,122,Zq(ca,27,0,0,f+(da+-2<<4)+16|0)|0,ba,0)|0;c[(ea&p)>>2]=lr(ca,c[(f+(da+-3<<4)&p)+16>>2]|0,ba)|0;break}case 136:{c[(ea&p)>>2]=0;break}case 137:{ba=jr(ca,c[(f+(da+-6<<4)&p)+16>>2]|0,f+(da+-5<<4)+16|0,f+(da+-4<<4)+16|0,f+(da+-3<<4)+16|0,0,c[(f+(da+-1<<4)&p)+16>>2]|0,c[(f+(da<<4)&p)+16>>2]|0)|0;c[(ea&p)>>2]=ba;or(ca,ba,f+(da+-2<<4)+16|0);break}case 135:{h=c[(f+(da+-1<<4)&p)+16>>2]|0;c[(ea&p)>>2]=h;if((h|0)!=0?(w=c[(h&p)>>2]|0,(w|0)>0):0)a[(h+((w+-1|0)*72|0)&n)+44>>0]=c[(f+(da<<4)&p)+16>>2];break}case 138:{c[(ea&p)>>2]=jr(ca,c[(f+(da+-6<<4)&p)+16>>2]|0,0,0,f+(da+-2<<4)+16|0,c[(f+(da+-4<<4)&p)+16>>2]|0,c[(f+(da+-1<<4)&p)+16>>2]|0,c[(f+(da<<4)&p)+16>>2]|0)|0;break}case 139:{l=f+(da+-6<<4)+16|0;q=c[(l&p)>>2]|0;if((((q|0)==0?(c[(f+(da+-2<<4)&p)+20>>2]|0)==0:0)?(c[(f+(da+-1<<4)&p)+16>>2]|0)==0:0)?(c[(f+(da<<4)&p)+16>>2]|0)==0:0){c[(ea&p)>>2]=c[(f+(da+-4<<4)&p)+16>>2];break a}s=f+(da+-4<<4)+16|0;k=c[(s&p)>>2]|0;r=c[(k&p)>>2]|0;if((r|0)==1){l=jr(ca,q,0,0,f+(da+-2<<4)+16|0,0,c[(f+(da+-1<<4)&p)+16>>2]|0,c[(f+(da<<4)&p)+16>>2]|0)|0;c[(ea&p)>>2]=l;if(l){_=(c[(l&p)>>2]|0)+-1|0;ba=c[(s&p)>>2]|0;aa=ba+16|0;c[(l+(_*72|0)&p)+16>>2]=c[(aa&p)>>2];$=ba+12|0;c[(l+(_*72|0)&p)+12>>2]=c[($&p)>>2];ba=ba+28|0;c[(l+(_*72|0)&p)+28>>2]=c[(ba&p)>>2];c[($&p)>>2]=0;c[(aa&p)>>2]=0;c[(ba&p)>>2]=0}Do(c[(ca&p)>>2]|0,c[(s&p)>>2]|0);break a}if(k){m=r+-1|0;if((m|0)>0){q=r;while(1){a[(k+(m*72|0)&n)+44>>0]=a[(k+((q+-2|0)*72|0)&n)+44>>0]|0;q=m+-1|0;if((q|0)>0){ba=m;m=q;q=ba}else break}}a[(k&n)+44>>0]=0}ba=kr(ca,0,k,0,0,0,0,512,0,0)|0;c[(ea&p)>>2]=jr(ca,c[(l&p)>>2]|0,0,0,f+(da+-2<<4)+16|0,ba,c[(f+(da+-1<<4)&p)+16>>2]|0,c[(f+(da<<4)&p)+16>>2]|0)|0;break}case 149:case 140:{c[(ea&p)>>2]=0;c[(ea&p)+4>>2]=0;break}case 144:{c[(ea&p)>>2]=qr(ca,f+(da+-1<<4)+16|0,0,0)|0;break}case 145:{c[(ea&p)>>2]=qr(ca,f+(da+-2<<4)+16|0,f+(da+-1<<4)+16|0,0)|0;break}case 146:{c[(ea&p)>>2]=qr(ca,f+(da+-3<<4)+16|0,f+(da+-2<<4)+16|0,f+(da+-1<<4)+16|0)|0;break}case 233:case 231:case 171:case 164:case 147:{c[(ea&p)>>2]=c[(f+(da<<4)&p)+16>>2];break}case 234:case 232:case 170:case 163:case 148:{c[(ea&p)>>2]=0;break}case 151:{c[(ea&p)>>2]=0;c[(ea&p)+4>>2]=1;break}case 143:{c[(ea&p)>>2]=1;break}case 142:{c[(ea&p)>>2]=pr(c[(ca&p)>>2]|0,0,f+(da+-1<<4)+16|0,f+(da<<4)+16|0)|0;break}case 157:{h=lr(ca,0,c[(f+(da+-1<<4)&p)+16>>2]|0)|0;c[(ea&p)>>2]=h;if((h|0)!=0?(k=c[(h&p)+4>>2]|0,(k|0)!=0):0)a[(k&n)+12>>0]=c[(f+(da<<4)&p)+16>>2];break}case 160:case 158:{c[(ea&p)>>2]=0;break}case 159:{c[(ea&p)>>2]=1;break}case 165:{c[(ea&p)>>2]=0;c[(ea&p)+4>>2]=0;break}case 166:{c[(ea&p)>>2]=c[(f+(da<<4)&p)+16>>2];c[(ea&p)+4>>2]=0;break}case 179:case 153:{c[(ea&p)>>2]=0;break}case 180:case 152:{c[(ea&p)>>2]=c[(f+(da+-1<<4)&p)+16>>2];break}case 172:{l=c[(f+(da+-7<<4)&p)+16>>2]|0;if(l){aa=ca+532|0;c[(l&p)+4>>2]=c[(aa&p)>>2];c[(aa&p)>>2]=l;a[(ca&n)+449>>0]=1}m=f+(da+-4<<4)+16|0;or(ca,c[(m&p)>>2]|0,f+(da+-3<<4)+16|0);q=f+(da+-1<<4)+16|0;l=c[(q&p)>>2]|0;if(l){if((c[(l&p)>>2]|0)>(c[((c[(ca&p)>>2]|0)&p)+96>>2]|0)){c[(ba&p)>>2]=20560;th(ca,34544,ba);l=c[(q&p)>>2]|0}}else l=0;sr(ca,c[(m&p)>>2]|0,l,c[(f+(da<<4)&p)+16>>2]|0,d[(f+(da+-5<<4)&n)+16>>0]|0);break}case 235:case 162:case 155:{c[(ea&p)>>2]=c[(f+(da<<4)&p)+16>>2];break}case 156:{h=lr(ca,c[(f+(da+-3<<4)&p)+16>>2]|0,c[(f+(da+-1<<4)&p)+16>>2]|0)|0;c[(ea&p)>>2]=h;if(h)a[((c[(h&p)+4>>2]|0)+(((c[(h&p)>>2]|0)+-1|0)*20|0)&n)+12>>0]=c[(f+(da<<4)&p)+16>>2];break}case 7:{a[(ca&n)+450>>0]=2;c[(ca&p)+440>>2]=0;break}case 23:{Tq(ca,1,f+(da<<4)+16|0);break}case 24:{Tq(ca,2,f+(da<<4)+16|0);break}case 26:{Uq(ca,f+(da+-1<<4)+16|0,f+(da<<4)+16|0,c[(f+(da+-4<<4)&p)+16>>2]|0,0,0,c[(f+(da+-2<<4)&p)+16>>2]|0);break}default:{}}while(0);h=a[(g<<1&n)+20912>>0]|0;r=h&255;q=a[(g<<1&n)+20913>>0]|0;m=q&255;s=(c[(f&p)>>2]|0)-m|0;c[(f&p)>>2]=s;l=b[((b[(e[(f+(da-m<<4)&o)+12>>1]<<1&o)+21568>>1]|0)+r<<1&o)+22184>>1]|0;k=l&65535;do if((l&65535)<642)if(!(q<<24>>24)){kq(f,k,r,ea);break}else{c[(f&p)>>2]=s+1;da=1-m+da|0;b[(f+(da<<4)&o)+12>>1]=l;a[(f+(da<<4)&n)+14>>0]=h;da=f+(da<<4)+16|0;c[(da&p)>>2]=c[(ea&p)>>2];c[(da&p)+4>>2]=c[(ea&p)+4>>2];c[(da&p)+8>>2]=c[(ea&p)+8>>2];break}else{h=c[(ga&p)>>2]|0;if((s|0)>-1)do Pn(f);while((c[(f&p)>>2]|0)>-1);c[(ga&p)>>2]=h}while(0);i=ha;return}function nq(e,f){e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=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,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,ga=0;da=i;i=i+64|0;if((i|0)>=(j|0))fa();ca=da+8|0;Z=da;q=da+24|0;h=da+16|0;l=xq(e,0,h)|0;do if(!l){if(c[(h&p)>>2]|0){l=ds(e,f)|0;if(!l)g=0;else k=4}else{l=1;k=4}if((k|0)==4){ba=e+43|0;k=(a[(ba&n)>>0]|0)==0;do if(!(a[(e&n)+46>>0]&2)){if(k?(m=e+4|0,aa=c[(m&p)>>2]|0,ac[c[((c[(aa&p)>>2]|0)&p)+40>>2]&63](aa,24,0)|0,m=c[(m&p)>>2]|0,m=pc[c[((c[(m&p)>>2]|0)&p)+56>>2]&31](m,0,1,10)|0,(m|0)!=0):0){h=l;g=m;break}aa=e+44|0;a[(aa&n)>>0]=1;k=xq(e,0,h)|0;if(!k){h=ds(e,f)|0;if(!h){h=0;g=0}else{$=d[(e&n)+45>>0]|0;_=$+1|0;$=7-$|0;if(!((a[(ba&n)>>0]|0)==0?(g=c[(e&p)+4>>2]|0,g=pc[c[((c[(g&p)>>2]|0)&p)+56>>2]&31](g,_,$,10)|0,(g|0)!=0):0)){l=e+52|0;k=l+48|0;do{c[(l&p)>>2]=0;l=l+4|0}while((l|0)<(k|0));T=e+8|0;g=c[(T&p)>>2]|0;g=rc[c[((c[(g&p)>>2]|0)&p)+24>>2]&127](g,Z)|0;a:do if(!g){U=Z;S=c[(U&p)+4>>2]|0;b:do if((S|0)>0|(S|0)==0&(c[(U&p)>>2]|0)>>>0>32){g=c[(T&p)>>2]|0;g=tc[c[((c[(g&p)>>2]|0)&p)+8>>2]&31](g,q,32,0,0)|0;if(g)break a;m=d[(q&n)+3>>0]|0;k=d[(q&n)+9>>0]<<16|d[(q&n)+8>>0]<<24;g=d[(q&n)+10>>0]<<8;l=k|g|d[(q&n)+11>>0];if(((d[(q&n)+1>>0]<<16|d[(q&n)>>0]<<24|d[(q&n)+2>>0]<<8|m&254|0)==931071618?!((l+-1&l|0)!=0|(l|0)>65536|(l|0)<512):0)?(U=m&1,V=e+65|0,a[(V&n)>>0]=U,W=e+36|0,c[(W&p)>>2]=l,c[(e&p)+104>>2]=d[(q&n)+13>>0]<<16|d[(q&n)+12>>0]<<24|d[(q&n)+14>>0]<<8|d[(q&n)+15>>0],X=e+84|0,S=q+16|0,Q=S,Q=d[(Q&n)>>0]|d[(Q&n)+1>>0]<<8|d[(Q&n)+2>>0]<<16|d[(Q&n)+3>>0]<<24,S=S+4|0,S=d[(S&n)>>0]|d[(S&n)+1>>0]<<8|d[(S&n)+2>>0]<<16|d[(S&n)+3>>0]<<24,Y=X,R=Y,a[(R&n)>>0]=Q,a[(R&n)+1>>0]=Q>>8,a[(R&n)+2>>0]=Q>>16,a[(R&n)+3>>0]=Q>>24,Y=Y+4|0,a[(Y&n)>>0]=S,a[(Y&n)+1>>0]=S>>8,a[(Y&n)+2>>0]=S>>16,a[(Y&n)+3>>0]=S>>24,Y=e+76|0,yq(U^1,q,24,0,Y),(c[(Y&p)>>2]|0)==(d[(q&n)+25>>0]<<16|d[(q&n)+24>>0]<<24|d[(q&n)+26>>0]<<8|d[(q&n)+27>>0]|0)):0){S=e+80|0;if((c[(S&p)>>2]|0)!=(d[(q&n)+29>>0]<<16|d[(q&n)+28>>0]<<24|d[(q&n)+30>>0]<<8|d[(q&n)+31>>0]|0)){l=0;g=0;break}if((d[(q&n)+5>>0]<<16|d[(q&n)+4>>0]<<24|d[(q&n)+6>>0]<<8|d[(q&n)+7>>0]|0)!=3007e3){c[(ca&p)>>2]=49983;c[(ca&p)+4>>2]=10788;bd(14,14848,ca);g=14;break a}w=l+24|0;U=Tc(w)|0;if(!U){g=7;break a}x=U+24|0;y=((w|0)<0)<<31>>31;q=jw(w|0,y|0,32,0)|0;m=G;R=Z;Q=c[(R&p)+4>>2]|0;c:do if(!((m|0)>(Q|0)|((m|0)==(Q|0)?q>>>0>(c[(R&p)>>2]|0)>>>0:0))){z=U+8|0;A=U+1|0;B=U+2|0;C=U+3|0;D=U+16|0;E=U+17|0;F=U+18|0;H=U+19|0;I=U+20|0;J=U+21|0;K=U+22|0;L=U+23|0;M=U+4|0;N=U+5|0;O=U+6|0;P=U+7|0;Q=e+68|0;R=e+72|0;u=(k>>>16|g)&65535;v=e+66|0;r=32;k=0;l=0;s=0;t=1;while(1){g=c[(T&p)>>2]|0;g=tc[c[((c[(g&p)>>2]|0)&p)+8>>2]&31](g,U,w,r,k)|0;if(g){k=36;break}if(Zv(X,z,8)|0){g=s;k=37;break}k=d[(A&n)>>0]<<16|d[(U&n)>>0]<<24|d[(B&n)>>0]<<8|d[(C&n)>>0];if(!k){g=s;k=37;break}r=(a[(V&n)>>0]|0)==0&1;yq(r,U,8,Y,Y);yq(r,x,c[(W&p)>>2]|0,Y,Y);if((c[(Y&p)>>2]|0)!=(d[(E&n)>>0]<<16|d[(D&n)>>0]<<24|d[(F&n)>>0]<<8|d[(H&n)>>0]|0)){g=s;k=37;break}if((c[(S&p)>>2]|0)!=(d[(J&n)>>0]<<16|d[(I&n)>>0]<<24|d[(K&n)>>0]<<8|d[(L&n)>>0]|0)){g=s;break c}r=d[(N&n)>>0]<<16|d[(M&n)>>0]<<24|d[(O&n)>>0]<<8|d[(P&n)>>0];g=_o(e,t,k)|0;if(g){k=36;break}if(!r)g=s;else{c[(Q&p)>>2]=t;c[(R&p)>>2]=r;b[(v&o)>>1]=u;l=c[(Y&p)>>2]|0;g=c[(S&p)>>2]|0}k=jw(q|0,m|0,w|0,y|0)|0;r=G;s=Z;ea=c[(s&p)+4>>2]|0;if((r|0)>(ea|0)|((r|0)==(ea|0)?k>>>0>(c[(s&p)>>2]|0)>>>0:0))break c;else{ga=m;ea=q;q=k;m=r;s=g;t=t+1|0;k=ga;r=ea}}if((k|0)==36){Wc(U);break a}else if((k|0)==37){Wc(U);break b}}else{l=0;g=0}while(0);Wc(U)}else{l=0;g=0}}else{l=0;g=0}while(0);c[(e&p)+76>>2]=l;c[(e&p)+80>>2]=g;$o(e);k=c[(c[(e&p)+32>>2]&p)>>2]|0;c[(k&p)+96>>2]=0;c[(k&p)+100>>2]=0;g=k+104|0;c[(g&p)>>2]=-1;c[(k&p)+108>>2]=-1;c[(k&p)+112>>2]=-1;c[(k&p)+116>>2]=-1;k=e+68|0;l=c[(k&p)>>2]|0;if(l)c[(g&p)>>2]=l;if(!(c[(e&p)+72>>2]|0))g=0;else{g=c[(e&p)+100>>2]|0;c[(ca&p)>>2]=c[(k&p)>>2];c[(ca&p)+4>>2]=g;bd(283,14888,ca);g=0}}while(0);if(!(a[(ba&n)>>0]|0)){Z=c[(e&p)+4>>2]|0;pc[c[((c[(Z&p)>>2]|0)&p)+56>>2]&31](Z,_,$,9)|0}}c[(f&p)>>2]=1}}else{h=l;g=k}a[(aa&n)>>0]=0;if(!(a[(ba&n)>>0]|0)){ba=c[(e&p)+4>>2]|0;pc[c[((c[(ba&p)>>2]|0)&p)+56>>2]&31](ba,0,1,9)|0}}else if(k){h=e+4|0;g=c[(h&p)>>2]|0;g=pc[c[((c[(g&p)>>2]|0)&p)+56>>2]&31](g,0,1,6)|0;if(!g)if(!(a[(ba&n)>>0]|0)){h=c[(h&p)>>2]|0;pc[c[((c[(h&p)>>2]|0)&p)+56>>2]&31](h,0,1,5)|0;h=l;g=264}else{h=l;g=264}else h=l}else{h=l;g=264}while(0);if(h)break}if((c[(e&p)+52>>2]|0)!=3007e3){c[(ca&p)>>2]=50909;c[(ca&p)+4>>2]=10788;bd(14,14848,ca);g=14}}else g=l;while(0);i=da;return g|0}function oq(a,d,f,g,h,i){a=a|0;d=d|0;f=f|0;g=g|0;h=h|0;i=i|0;var j=0,k=0,l=0,m=0,n=0,q=0,r=0,s=0,t=0,u=0;r=c[(h&p)>>2]|0;s=c[(g&p)>>2]|0;k=(r|0)>0;j=(f|0)>0;if(k|j){n=j;l=0;q=0;m=0;while(1){do if(n){j=d+(l<<1)|0;if(k?(t=s+(m<<1)|0,(c[(a+((e[(j&o)>>1]|0)<<2)&p)>>2]|0)>>>0>=(c[(a+((e[(t&o)>>1]|0)<<2)&p)>>2]|0)>>>0):0){k=t;u=7;break}l=l+1|0;k=j}else{k=s+(m<<1)|0;u=7}while(0);if((u|0)==7){u=0;m=m+1|0}n=b[(k&o)>>1]|0;k=c[(a+((n&65535)<<2)&p)>>2]|0;j=q+1|0;b[(i+(q<<1)&o)>>1]=n;if((l|0)<(f|0))l=((c[(a+((e[(d+(l<<1)&o)>>1]|0)<<2)&p)>>2]|0)==(k|0)&1)+l|0;k=(m|0)<(r|0);n=(l|0)<(f|0);if(!(k|n))break;else q=j}}else j=0;c[(g&p)>>2]=d;c[(h&p)>>2]=j;kw(d|0,i|0,j<<1|0)|0;return}function pq(a,b){a=a|0;b=b|0;var d=0,e=0;e=c[(a&p)+4>>2]|0;c[(e&p)+4>>2]=c[(a&p)>>2];a=c[((c[(e&p)>>2]|0)&p)+204>>2]|0;c[(a&p)+16>>2]=b;e=c[2217]|0;d=c[(a&p)+40>>2]|0;if((b|0)>-1)a=b;else{b=sw(b|0,((b|0)<0)<<31>>31|0,-1024,-1)|0;a=(c[(a&p)+24>>2]|0)+(c[(a&p)+20>>2]|0)|0;a=qw(b|0,G|0,a|0,((a|0)<0)<<31>>31|0)|0}jc[e&15](d,a);return}function qq(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0;g=(c[(b&p)+12>>2]|0)+136|0;e=g;f=c[(e&p)>>2]|0;e=c[(e&p)+4>>2]|0;do if((f|0)==0&(e|0)==0)if(!(bh(c[(c[((c[(b&p)>>2]|0)&p)+32>>2]&p)>>2]|0,g)|0)){e=g;f=c[(e&p)>>2]|0;e=c[(e&p)+4>>2]|0;h=5;break}else{e=g;c[(e&p)>>2]=0;c[(e&p)+4>>2]=0;e=d;c[(e&p)>>2]=0;c[(e&p)+4>>2]=0;e=1;break}else h=5;while(0);if((h|0)==5){g=d;c[(g&p)>>2]=f;c[(g&p)+4>>2]=e;if((e|0)>0|(e|0)==0&f>>>0>0){a[(d&n)+42>>0]=1;e=0}else e=1}return e|0}function rq(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,o=0,q=0,r=0;r=i;i=i+16|0;if((i|0)>=(j|0))fa();o=r;c[(o&p)>>2]=d;d=b;b=0;a:while(1){h=c[(o&p)>>2]|0;g=c[(h&p)>>2]|0;c[(o&p)>>2]=h+4;h=c[(o&p)>>2]|0;k=c[(h&p)>>2]|0;c[(o&p)>>2]=h+4;h=c[(o&p)>>2]|0;l=c[(h&p)>>2]|0;c[(o&p)>>2]=h+4;h=c[(o&p)>>2]|0;m=c[(h&p)>>2]|0;c[(o&p)>>2]=h+4;h=c[(o&p)>>2]|0;e=c[(h&p)>>2]|0;c[(o&p)>>2]=h+4;if(!g){f=d;d=0}else{f=d;d=0;do{g=g+-1|0;h=a[(f&n)>>0]|0;if(((h&255)+-48|0)>>>0>=10)break a;d=(d*10|0)+-48+(h<<24>>24)|0;f=f+1|0}while((g|0)!=0)}if((d|0)<(k|0)|(d|0)>(l|0))break;if(!m){q=9;break}if((m|0)!=(a[(f&n)>>0]|0))break;c[(e&p)>>2]=d;d=f+1|0;b=b+1|0}if((q|0)==9){c[(e&p)>>2]=d;b=b+1|0}i=r;return b|0}function sq(b,e){b=b|0;e=e|0;var f=0,g=0,k=0,l=0.0,m=0,o=0.0,r=0,s=0,t=0,u=0,v=0,w=0,x=0;x=i;i=i+64|0;if((i|0)>=(j|0))fa();v=x;t=x+56|0;u=x+52|0;f=x+48|0;r=x+44|0;s=x+40|0;c[(v&p)>>2]=2;c[(v&p)+4>>2]=0;c[(v&p)+8>>2]=24;c[(v&p)+12>>2]=58;c[(v&p)+16>>2]=f;c[(v&p)+20>>2]=2;c[(v&p)+24>>2]=0;c[(v&p)+28>>2]=59;c[(v&p)+32>>2]=0;c[(v&p)+36>>2]=r;do if((rq(b,v)|0)==2){m=b+5|0;if((a[(m&n)>>0]|0)==58){c[(v&p)>>2]=2;c[(v&p)+4>>2]=0;c[(v&p)+8>>2]=59;c[(v&p)+12>>2]=0;c[(v&p)+16>>2]=s;if((rq(b+6|0,v)|0)!=1){f=1;break}m=b+8|0;if((a[(m&n)>>0]|0)==46?(g=b+9|0,k=a[(g&n)>>0]|0,((k&255)+-48|0)>>>0<10):0){o=0.0;l=1.0;do{o=o*10.0+ +(k<<24>>24)+-48.0;l=l*10.0;g=g+1|0;k=a[(g&n)>>0]|0}while(((k&255)+-48|0)>>>0<10);l=o/l}else{g=m;l=0.0}}else{c[(s&p)>>2]=0;g=m;l=0.0}a[(e&n)+42>>0]=0;a[(e&n)+41>>0]=1;c[(e&p)+20>>2]=c[(f&p)>>2];c[(e&p)+24>>2]=c[(r&p)>>2];h[(e&q)+32>>3]=l+ +(c[(s&p)>>2]|0);while(1){f=g+1|0;if(!(a[((d[(g&n)>>0]|0)&n)+10368>>0]&1)){m=g;break}else g=f}b=e+28|0;c[(b&p)>>2]=0;g=a[(m&n)>>0]|0;if(g<<24>>24==43){k=1;w=14}else if(g<<24>>24!=45)if((g&-33)<<24>>24==90){k=0;w=16}else f=0;else{k=-1;w=14}if((w|0)==14){c[(v&p)>>2]=2;c[(v&p)+4>>2]=0;c[(v&p)+8>>2]=14;c[(v&p)+12>>2]=58;c[(v&p)+16>>2]=t;c[(v&p)+20>>2]=2;c[(v&p)+24>>2]=0;c[(v&p)+28>>2]=59;c[(v&p)+32>>2]=0;c[(v&p)+36>>2]=u;if((rq(f,v)|0)!=2){f=1;break}k=ca(((c[(t&p)>>2]|0)*60|0)+(c[(u&p)>>2]|0)|0,k)|0;c[(b&p)>>2]=k;f=m+6|0;w=16}if((w|0)==16)while(1){g=a[(f&n)>>0]|0;if(!(a[(g&255&n)+10368>>0]&1)){f=k;break}else f=f+1|0}if(!(g<<24>>24)){a[(e&n)+43>>0]=(f|0)!=0&1;f=0}else f=1}else f=1;while(0);i=x;return f|0}function tq(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,k=0,l=0,m=0,o=0,r=0.0,s=0;o=i;i=i+112|0;if((i|0)>=(j|0))fa();k=o+48|0;m=o;l=o+96|0;f=k+0|0;b=b+0|0;g=f+48|0;do{c[(f&p)>>2]=c[(b&p)>>2];f=f+4|0;b=b+4|0}while((f|0)<(g|0));oo(k);po(k);g=k+8|0;if(((c[(g&p)>>2]|0)+-1971|0)>>>0>66){c[(g&p)>>2]=2e3;c[(k&p)+12>>2]=1;c[(k&p)+16>>2]=1;c[(k&p)+20>>2]=0;c[(k&p)+24>>2]=0;h[(k&q)+32>>3]=0.0}else{f=k+32|0;h[(f&q)>>3]=+(~~(+h[(f&q)>>3]+.5)|0)}c[(k&p)+28>>2]=0;a[(k&n)+42>>0]=0;no(k);b=k;f=c[(b&p)>>2]|0;b=c[(b&p)+4>>2]|0;g=qw(f|0,b|0,1e3,0)|0;g=jw(g|0,G|0,-413362496,0)|0;c[(l&p)>>2]=g;g=Vb(l|0)|0;g=(c[2253]|0)!=0?0:g;if(!g){c[(d&p)+20>>2]=1;a[(d&n)+25>>0]=1;Xg(c[(d&p)>>2]|0,20056,-1,1,-1)|0;c[(e&p)>>2]=1;f=0;g=0}else{k=c[(g&p)+4>>2]|0;l=c[(g&p)+8>>2]|0;d=c[(g&p)+12>>2]|0;s=(c[(g&p)+16>>2]|0)+1|0;r=+(c[(g&p)>>2]|0);c[(m&p)+8>>2]=(c[(g&p)+20>>2]|0)+1900;c[(m&p)+12>>2]=s;c[(m&p)+16>>2]=d;c[(m&p)+20>>2]=l;c[(m&p)+24>>2]=k;h[(m&q)+32>>3]=r;a[(m&n)+40>>0]=1;a[(m&n)+41>>0]=1;a[(m&n)+42>>0]=0;a[(m&n)+43>>0]=0;no(m);c[(e&p)>>2]=0;g=m;g=dw(c[(g&p)>>2]|0,c[(g&p)+4>>2]|0,f|0,b|0)|0;f=G}G=f;i=o;return g|0}function uq(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,o=0,q=0,r=0;r=i;i=i+32|0;if((i|0)>=(j|0))fa();q=r+12|0;l=r;o=r+8|0;k=r+16|0;a[(d&n)>>0]=0;f=rc[c[((c[(b&p)>>2]|0)&p)+24>>2]&127](b,l)|0;h=l;g=c[(h&p)>>2]|0;h=c[(h&p)+4>>2]|0;if(!((f|0)!=0|((h|0)<0|(h|0)==0&g>>>0<16))){f=jw(g|0,h|0,-16,-1)|0;f=es(b,f,G,q)|0;if(!f){m=c[(q&p)>>2]|0;if(!(m>>>0>=e>>>0|(m|0)==0)){f=l;f=jw(c[(f&p)>>2]|0,c[(f&p)+4>>2]|0,-12,-1)|0;f=es(b,f,G,o)|0;if(!f){f=l;f=jw(c[(f&p)>>2]|0,c[(f&p)+4>>2]|0,-8,-1)|0;f=tc[c[((c[(b&p)>>2]|0)&p)+8>>2]&31](b,k,8,f,G)|0;if(!f)if(!(Zv(k,14808,8)|0)){f=l;f=jw(c[(f&p)>>2]|0,c[(f&p)+4>>2]|0,-16,-1)|0;f=dw(f|0,G|0,m|0,0)|0;f=tc[c[((c[(b&p)>>2]|0)&p)+8>>2]&31](b,d,m,f,G)|0;if(!f){g=c[(o&p)>>2]|0;h=0;while(1){e=a[(d+h&n)>>0]|0;f=g-e|0;h=h+1|0;if(h>>>0>=m>>>0)break;else g=f}c[(o&p)>>2]=f;if((g|0)==(e|0))f=m;else{c[(q&p)>>2]=0;f=0}a[(d+f&n)>>0]=0;f=0}}else f=0}}else f=0}}i=r;return f|0}function vq(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,k=0,l=0,m=0,n=0,o=0,q=0,r=0,s=0,t=0;t=i;i=i+16|0;if((i|0)>=(j|0))fa();l=t+8|0;r=t+4|0;o=t;s=a+72|0;h=s;k=c[(h&p)>>2]|0;h=c[(h&p)+4>>2]|0;if((k|0)==0&(h|0)==0){m=0;n=0;k=c[(a&p)+148>>2]|0}else{m=jw(k|0,h|0,-1,-1)|0;k=c[(a&p)+148>>2]|0;m=qw(m|0,G|0,k|0,0)|0;m=jw(m|0,G|0,1,0)|0;m=sw(m|0,G|0,k|0,0)|0;n=G}q=s;c[(q&p)>>2]=m;c[(q&p)+4>>2]=n;q=a+148|0;k=jw(k|0,0,m|0,n|0)|0;h=G;do if(!((h|0)>(e|0)|(h|0)==(e|0)&k>>>0>d>>>0)){if((b|0)==0?(b=a+80|0,(m|0)==(c[(b&p)>>2]|0)?(n|0)==(c[(b&p)+4>>2]|0):0):0)d=a+64|0;else{k=a+64|0;e=c[(k&p)>>2]|0;e=tc[c[((c[(e&p)>>2]|0)&p)+8>>2]&31](e,l,8,m,n)|0;if(e)break;if(!(Zv(l,14808,8)|0))d=k;else{e=101;break}}l=c[(d&p)>>2]|0;e=jw(m|0,n|0,8,0)|0;e=es(l,e,G,f)|0;if(!e){f=c[(d&p)>>2]|0;e=jw(m|0,n|0,12,0)|0;e=es(f,e,G,a+48|0)|0;if(!e){f=c[(d&p)>>2]|0;e=jw(m|0,n|0,16,0)|0;e=es(f,e,G,g)|0;if(!e){h=s;k=c[(h&p)>>2]|0;h=c[(h&p)+4>>2]|0;if((k|0)==0&(h|0)==0){g=c[(d&p)>>2]|0;e=jw(m|0,n|0,20,0)|0;e=es(g,e,G,o)|0;if(e)break;g=c[(d&p)>>2]|0;e=jw(m|0,n|0,24,0)|0;e=es(g,e,G,r)|0;if(e)break;d=c[(r&p)>>2]|0;if(!d){h=c[(a&p)+152>>2]|0;c[(r&p)>>2]=h}else h=d;d=c[(o&p)>>2]|0;if(h>>>0<512|d>>>0<32|h>>>0>65536|d>>>0>65536){e=101;break}if(h+-1&h){e=101;break}if(d+-1&d){e=101;break}e=al(a,r,-1)|0;c[(q&p)>>2]=d;h=s;k=c[(h&p)>>2]|0;h=c[(h&p)+4>>2]|0}else{d=c[(q&p)>>2]|0;e=0}m=jw(k|0,h|0,d|0,0)|0;n=s;c[(n&p)>>2]=m;c[(n&p)+4>>2]=G}}}}else e=101;while(0);i=t;return e|0}function wq(f,g,h,k,l){f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;var m=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;D=i;i=i+16|0;if((i|0)>=(j|0))fa();y=D+8|0;r=D+4|0;u=D;B=c[(f&p)+200>>2]|0;C=(k|0)!=0;q=c[((C?f+64|0:f+68|0)&p)>>2]|0;t=g;t=es(q,c[(t&p)>>2]|0,c[(t&p)+4>>2]|0,r)|0;do if(!t){A=f+152|0;x=c[(A&p)>>2]|0;t=g;t=jw(c[(t&p)>>2]|0,c[(t&p)+4>>2]|0,4,0)|0;t=tc[c[((c[(q&p)>>2]|0)&p)+8>>2]&31](q,B,x,t,G)|0;if(!t){E=c[(A&p)>>2]|0;s=(k<<2)+4+E|0;t=g;t=jw(s|0,((s|0)<0)<<31>>31|0,c[(t&p)>>2]|0,c[(t&p)+4>>2]|0)|0;s=G;x=g;c[(x&p)>>2]=t;c[(x&p)+4>>2]=s;x=c[(r&p)>>2]|0;if((x|0)!=0?(x|0)!=(((c[2514]|0)/(E|0)|0)+1|0):0)if(x>>>0<=(c[(f&p)+24>>2]|0)>>>0?(di(h,x)|0)==0:0){if(C){t=jw(t|0,s|0,-4,-1)|0;t=es(q,t,G,u)|0;if(t){m=t;break}if(!l){t=c[(f&p)+48>>2]|0;s=(c[(A&p)>>2]|0)+-200|0;if((s|0)>0)do{t=(d[(B+s&n)>>0]|0)+t|0;s=s+-200|0}while((s|0)>0);if((t|0)!=(c[(u&p)>>2]|0)){m=101;break}}}if((h|0)!=0?(m=bi(h,x)|0,(m|0)!=0):0)break;u=(x|0)==1;if(u?(v=f+142|0,w=a[(B&n)+20>>0]|0,(b[(v&o)>>1]|0)!=(w&255|0)):0)b[(v&o)>>1]=w&255;if(!(c[(f&p)+208>>2]|0)){w=f+204|0;t=ac[c[8876>>2]&63](c[((c[(w&p)>>2]|0)&p)+40>>2]|0,x,0)|0;t=il(c[(w&p)>>2]|0,x,t)|0}else t=0;c[(y&p)>>2]=t;if(C)if(!(a[(f&n)+7>>0]|0)){w=g;h=c[(w&p)+4>>2]|0;s=f+80|0;v=c[(s&p)+4>>2]|0;s=(h|0)<(v|0)|((h|0)==(v|0)?(c[(w&p)>>2]|0)>>>0<=(c[(s&p)>>2]|0)>>>0:0)}else s=1;else if(!t)s=1;else s=(b[(t&o)+24>>1]&4)==0;r=c[(f&p)+60>>2]|0;q=c[(r&p)>>2]|0;do if(q){m=a[(f&n)+16>>0]|0;if((m&255)>3){if(!s){z=33;break}}else if(!(m<<24>>24==0&s)){z=33;break}s=c[(A&p)>>2]|0;m=sw(s|0,((s|0)<0)<<31>>31|0,x+-1|0,0)|0;m=tc[c[(q&p)+12>>2]&31](r,B,s,m,G)|0;s=f+32|0;if(x>>>0>(c[(s&p)>>2]|0)>>>0)c[(s&p)>>2]=x;s=c[(f&p)+88>>2]|0;if(s)ap(s,x,B)}else z=33;while(0);if((z|0)==33)if((k|0)==0&(t|0)==0){w=f+20|0;a[(w&n)>>0]=d[(w&n)>>0]|2;m=zg(f,x,y,1)|0;a[(w&n)>>0]=d[(w&n)>>0]&253;if(m)break;t=c[(y&p)>>2]|0;m=t+24|0;b[(m&o)>>1]=e[(m&o)>>1]&65527;To(t);m=0}else m=0;if(t){r=c[(t&p)+4>>2]|0;kw(r|0,B|0,c[(A&p)>>2]|0)|0;cc[c[(f&p)+196>>2]&31](t);do if(C){if((l|0)!=0?(w=g,h=c[(w&p)+4>>2]|0,x=f+80|0,v=c[(x&p)+4>>2]|0,(h|0)>(v|0)|((h|0)==(v|0)?(c[(w&p)>>2]|0)>>>0>(c[(x&p)>>2]|0)>>>0:0)):0)break;xl(t)}while(0);if(u){s=f+104|0;q=r+24|0;r=s+16|0;do{a[(s&n)>>0]=a[(q&n)>>0]|0;s=s+1|0;q=q+1|0}while((s|0)<(r|0))}ol(t)}}else m=0;else m=101}else m=t}else m=t;while(0);i=D;return m|0}function xq(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0;g=b+24|0;if((c[(g&p)>>2]|0)<=(e|0)){i=e+1|0;j=b+32|0;h=Xc(c[(j&p)>>2]|0,i<<2)|0;if(!h){g=7;h=0}else{k=c[(g&p)>>2]|0;fw(h+(k<<2)|0,0,i-k<<2|0)|0;c[(j&p)>>2]=h;c[(g&p)>>2]=i;k=5}}else{h=c[(b&p)+32>>2]|0;k=5}if((k|0)==5){j=b+32|0;h=h+(e<<2)|0;do if(!(c[(h&p)>>2]|0)){if((a[(b&n)+43>>0]|0)!=2){g=c[(b&p)+4>>2]|0;g=tc[c[((c[(g&p)>>2]|0)&p)+52>>2]&31](g,e,32768,d[(b&n)+44>>0]|0,h)|0;if((g|0)!=8)break;g=b+46|0;a[(g&n)>>0]=d[(g&n)>>0]|2;g=0;break}g=qg(32768,0)|0;if(g)fw(g|0,0,32768)|0;c[((c[(j&p)>>2]|0)+(e<<2)&p)>>2]=g;g=(c[((c[(j&p)>>2]|0)+(e<<2)&p)>>2]|0)==0?7:0}else g=0;while(0);h=c[((c[(j&p)>>2]|0)+(e<<2)&p)>>2]|0}c[(f&p)>>2]=h;return g|0}function yq(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;h=b+d|0;if(!e){g=0;d=0}else{g=c[(e&p)>>2]|0;d=c[(e&p)+4>>2]|0}if(!a)do{g=g+d+(nw(c[(b&p)>>2]|0)|0)|0;d=g+d+(nw(c[(b&p)+4>>2]|0)|0)|0;b=b+8|0}while(b>>>0>>0);else do{g=g+d+(c[(b&p)>>2]|0)|0;d=g+d+(c[(b&p)+4>>2]|0)|0;b=b+8|0}while(b>>>0>>0);c[(f&p)>>2]=g;c[(f&p)+4>>2]=d;return}function zq(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;h=a+8|0;g=c[(h&p)>>2]|0;h=c[(h&p)+4>>2]|0;if((h|0)>(f|0)|(h|0)==(f|0)&g>>>0>e>>>0?(i=jw(d|0,((d|0)<0)<<31>>31|0,e|0,f|0)|0,k=G,!((k|0)<(h|0)|(k|0)==(h|0)&i>>>0>>0)):0){i=dw(g|0,h|0,e|0,f|0)|0;h=a+4|0;g=c[(h&p)>>2]|0;g=tc[c[((c[(g&p)>>2]|0)&p)+12>>2]&31](g,b,i,e,f)|0;if(!g){e=jw(i|0,((i|0)<0)<<31>>31|0,e|0,f|0)|0;f=G;g=c[(h&p)>>2]|0;g=rc[c[((c[(g&p)>>2]|0)&p)+20>>2]&127](g,c[(a&p)+16>>2]&19)|0;if(!((i|0)==(d|0)|(g|0)!=0)){d=d-i|0;h=b+i|0;g=f;j=5}}}else{h=b;g=f;j=5}if((j|0)==5){f=c[(a&p)+4>>2]|0;g=tc[c[((c[(f&p)>>2]|0)&p)+12>>2]&31](f,h,d,e,g)|0}return g|0}function Aq(a){a=a|0;var d=0,f=0,g=0,h=0,k=0,l=0;l=i;i=i+16|0;if((i|0)>=(j|0))fa();h=l+8|0;k=l+4|0;g=l;c[(h&p)>>2]=0;c[(k&p)>>2]=0;c[(g&p)>>2]=0;f=a+68|0;d=c[(f&p)>>2]|0;if(d){Po(a,(d+33|0)>>>12,h,k,g)|0;g=(c[(f&p)>>2]|0)-(c[(g&p)>>2]|0)|0;a=c[(h&p)>>2]|0;f=0;do{d=a+(f<<1)|0;if((e[(d&o)>>1]|0|0)>(g|0))b[(d&o)>>1]=0;f=f+1|0}while((f|0)!=8192);d=(c[(k&p)>>2]|0)+(g+1<<2)|0;fw(d|0,0,a-d|0)|0}i=l;return}function Bq(a,d){a=a|0;d=d|0;var e=0,f=0,g=0,h=0;g=i;i=i+16|0;if((i|0)>=(j|0))fa();e=g;h=a+204|0;f=ac[c[8876>>2]&63](c[((c[(h&p)>>2]|0)&p)+40>>2]|0,d,0)|0;f=il(c[(h&p)>>2]|0,d,f)|0;do if(!f)e=0;else{if((b[(f&o)+26>>1]|0)==1){ml(f);e=0;break}c[(e&p)>>2]=0;d=kl(c[(a&p)+208>>2]|0,c[(f&p)+20>>2]|0,e)|0;if(!d){d=ll(f,c[(e&p)>>2]|0)|0;if(!d){cc[c[(a&p)+196>>2]&31](f);d=0}}Bg(f);e=d}while(0);d=c[(a&p)+88>>2]|0;if(d)do{c[(d&p)+16>>2]=1;d=c[(d&p)+44>>2]|0}while((d|0)!=0);i=g;return e|0}function Cq(f,g,h){f=f|0;g=g|0;h=h|0;var k=0,l=0,m=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;G=i;i=i+16|0;if((i|0)>=(j|0))fa();F=G;C=c[(f&p)+52>>2]|0;t=(c[(C&p)+36>>2]|0)+-4|0;y=g&65535;D=h&65535;x=D+y|0;E=c[(f&p)+56>>2]|0;if(b[(C&o)+22>>1]&4)fw(E+y|0,0,D|0)|0;B=d[(f&n)+6>>0]|0;C=B+1|0;q=C&65535;A=C&65535;if((a[(E+A&n)+1>>0]|0)==0?(a[(E+A&n)>>0]|0)==0:0){v=h&255;t=(h&65535)>>>8&255;u=x;s=0;r=0;A=23}else{v=q;A=6}a:do if((A|0)==6){while(1){A=0;m=v&65535;r=a[(E+m&n)+1>>0]|0;l=r&255;u=d[(E+m&n)>>0]<<8|l;q=v;v=u&65535;if(!(u>>>0>>0&(u|0)!=0)){s=r;w=u;break}if(u>>>0<(m+4|0)>>>0){A=8;break}else A=6}if((A|0)==8){c[(F&p)>>2]=54420;c[(F&p)+4>>2]=10788;bd(11,13600,F);k=11;break}if(w>>>0>t>>>0){c[(F&p)>>2]=54423;c[(F&p)+4>>2]=10788;bd(11,13600,F);k=11;break}k=h&255;t=(h&65535)>>>8&255;r=(v&65535)>>>8&255;do if((w+-1|0)>>>0<(x+3|0)>>>0)if(x>>>0>w>>>0){c[(F&p)>>2]=54434;c[(F&p)+4>>2]=10788;bd(11,13600,F);k=11;break a}else{u=(d[(E+w&n)+2>>0]<<8|d[(E+w&n)+3>>0])+w|0;t=u-y|0;v=t&255;t=(t&65535)>>>8&255;s=a[(E+w&n)+1>>0]|0;r=a[(E+w&n)>>0]|0;k=l-x&255;break}else{v=k;u=x;k=0}while(0);do if(m>>>0>C>>>0?(z=(d[(E+m&n)+2>>0]<<8|d[(E+m&n)+3>>0])+m|0,(z+3|0)>=(y|0)):0)if((y|0)<(z|0)){c[(F&p)>>2]=54447;c[(F&p)+4>>2]=10788;bd(11,13600,F);k=11;break a}else{t=u-m|0;g=q;v=t&255;t=(t&65535)>>>8&255;k=(k&255)+y-z&255;break}while(0);m=E+(B+7)|0;l=a[(m&n)>>0]|0;if((l&255)<(k&255)){c[(F&p)>>2]=54453;c[(F&p)+4>>2]=10788;bd(11,13600,F);k=11;break}else{a[(m&n)>>0]=(l&255)-(k&255);A=23;break}}while(0);b:do if((A|0)==23){k=g&65535;l=E+(B+5)|0;m=E+(B+6)|0;do if((k|0)==(d[(l&n)>>0]<<8|d[(m&n)>>0]|0))if((q&65535|0)==(C|0)){a[(E+C&n)>>0]=r;a[(E+B&n)+2>>0]=s;a[(l&n)>>0]=u>>>8;a[(m&n)>>0]=u;break}else{c[(F&p)>>2]=54460;c[(F&p)+4>>2]=10788;bd(11,13600,F);k=11;break b}else{F=q&65535;a[(E+F&n)>>0]=(g&65535)>>>8;a[(E+F&n)+1>>0]=g;a[(E+k&n)>>0]=r;a[(E+k&n)+1>>0]=s;a[(E+k&n)+2>>0]=t;a[(E+k&n)+3>>0]=v}while(0);k=f+16|0;b[(k&o)>>1]=(e[(k&o)>>1]|0)+D;k=0}while(0);i=G;return k|0}function Dq(b,e,f,g){b=b|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,o=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0;w=i;i=i+16|0;if((i|0)>=(j|0))fa();t=w;s=d[(b&n)+6>>0]|0;v=c[(b&p)+56>>2]|0;r=c[((c[(b&p)+52>>2]|0)&p)+36>>2]|0;l=r+-4|0;b=s+1|0;while(1){m=v+b|0;o=(d[(m&n)>>0]|0)<<8|(d[(v+b&n)+1>>0]|0);if(!o){b=0;break}if((o|0)>(l|0)|(o|0)<(b+4|0)){u=4;break}h=v+(o+2)|0;k=v+(o+3)|0;b=(d[(h&n)>>0]|0)<<8|(d[(k&n)>>0]|0);if((b|0)<(e|0))b=o;else{q=h;l=o;u=6;break}}a:do if((u|0)==4){c[(t&p)>>2]=54252;c[(t&p)+4>>2]=10788;bd(11,13600,t);c[(f&p)>>2]=11;b=0}else if((u|0)==6){h=b-e|0;do if((h|0)>=4)if((b+l|0)>(r|0)){c[(t&p)>>2]=54275;c[(t&p)+4>>2]=10788;bd(11,13600,t);c[(f&p)>>2]=11;b=0;break a}else{a[(q&n)>>0]=h>>>8;a[(k&n)>>0]=h;break}else{b=v+(s+7)|0;if((d[(b&n)>>0]|0)<=59){s=v+l|0;s=d[(s&n)>>0]|d[(s&n)+1>>0]<<8;a[(m&n)>>0]=s;a[(m&n)+1>>0]=s>>8;a[(b&n)>>0]=(d[(b&n)>>0]|0)+h;break}if(!g){b=0;break a}c[(g&p)>>2]=1;b=0;break a}while(0);b=v+(h+l)|0}while(0);i=w;return b|0}function Eq(f){f=f|0;var g=0,h=0,k=0,l=0,m=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;G=i;i=i+16|0;if((i|0)>=(j|0))fa();E=G;B=c[(f&p)+56>>2]|0;D=d[(f&n)+6>>0]|0;x=e[(f&o)+14>>1]|0;y=b[(f&o)+18>>1]|0;t=y&65535;u=f+52|0;v=c[((c[(u&p)>>2]|0)&p)+36>>2]|0;C=(t<<1)+x|0;w=v+-4|0;z=B+(D+5)|0;A=B+(D+6)|0;a:do if(y<<16>>16){s=v;y=0;h=B;k=0;while(1){m=(y<<1)+x|0;l=B+m|0;m=B+(m+1)|0;q=(d[(l&n)>>0]|0)<<8|(d[(m&n)>>0]|0);if((q|0)<(C|0)|(q|0)>(w|0)){F=3;break}r=(Lp(f,h+q|0)|0)&65535;g=s-r|0;if((g|0)<(C|0)|(r+q|0)>(v|0)){F=5;break}a[(l&n)>>0]=g>>>8;a[(m&n)>>0]=g;if(!k)if((g|0)==(q|0))k=0;else{k=c[((c[(c[(u&p)>>2]&p)>>2]|0)&p)+200>>2]|0;h=(d[(z&n)>>0]|0)<<8|(d[(A&n)>>0]|0);kw(k+h|0,B+h|0,s-h|0)|0;h=k;F=9}else F=9;if((F|0)==9){F=0;kw(B+g|0,h+q|0,r|0)|0}y=y+1|0;if((y|0)>=(t|0)){F=11;break a}else s=g}if((F|0)==3){c[(E&p)>>2]=54184;c[(E&p)+4>>2]=10788;bd(11,13600,E);g=11;break}else if((F|0)==5){c[(E&p)>>2]=54196;c[(E&p)+4>>2]=10788;bd(11,13600,E);g=11;break}}else{g=v;F=11}while(0);if((F|0)==11){a[(z&n)>>0]=g>>>8;a[(A&n)>>0]=g;a[(B+D&n)+1>>0]=0;a[(B+D&n)+2>>0]=0;a[(B+D&n)+7>>0]=0;F=g-C|0;fw(B+C|0,0,F|0)|0;if((F|0)==(e[(f&o)+16>>1]|0|0))g=0;else{c[(E&p)>>2]=54221;c[(E&p)+4>>2]=10788;bd(11,13600,E);g=11}}i=G;return g|0}function Fq(a,e,f){a=a|0;e=e|0;f=f|0;var g=0,h=0,k=0;k=i;i=i+32|0;if((i|0)>=(j|0))fa();h=k;if((c[(f&p)>>2]|0)==0?(rp(a,e,h),g=b[(h&o)+18>>1]|0,g<<16>>16!=0):0){g=g&65535;zp(c[(a&p)+52>>2]|0,(d[(e+g&n)+1>>0]|0)<<16|(d[(e+g&n)>>0]|0)<<24|(d[(e+g&n)+2>>0]|0)<<8|(d[(e+g&n)+3>>0]|0),3,c[(a&p)+72>>2]|0,f)}i=k;return}function Gq(b,f,g){b=b|0;f=f|0;g=g|0;var h=0,i=0,j=0,k=0,l=0,m=0;do if(!(c[(g&p)>>2]|0)){h=c[(b&p)+52>>2]|0;j=c[(b&p)+56>>2]|0;l=c[(f&p)+56>>2]|0;i=d[(b&n)+6>>0]|0;k=(c[(f&p)+72>>2]|0)==1?100:0;m=d[(j+i&n)+5>>0]<<8|d[(j+i&n)+6>>0];kw(l+m|0,j+m|0,(c[(h&p)+36>>2]|0)-m|0)|0;kw(l+k|0,j+i|0,(e[(b&o)+18>>1]<<1)+(e[(b&o)+14>>1]|0)|0)|0;a[(f&n)>>0]=0;b=$p(f)|0;if(b){c[(g&p)>>2]=b;break}if(a[(h&n)+17>>0]|0)c[(g&p)>>2]=_p(f)|0}while(0);return}function Hq(f,g,h,i){f=f|0;g=g|0;h=h|0;i=i|0;var j=0,k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0;t=d[(f&n)+6>>0]|0;w=c[(f&p)+56>>2]|0;m=c[(f&p)+52>>2]|0;r=c[(m&p)+36>>2]|0;q=w+r|0;j=c[(f&p)+64>>2]|0;m=c[((c[(m&p)>>2]|0)&p)+200>>2]|0;s=w+(t+5)|0;u=w+(t+6)|0;v=(d[(s&n)>>0]|0)<<8|(d[(u&n)>>0]|0);kw(m+v|0,w+v|0,r-v|0)|0;v=w;if((g|0)>0){r=0;l=j;j=q;while(1){k=c[(h+(r<<2)&p)>>2]|0;if(k>>>0>w>>>0&k>>>0>>0)k=m+(k-v)|0;x=e[(i+(r<<1)&o)>>1]|0;j=j+(0-x)|0;kw(j|0,k|0,x|0)|0;k=j-v|0;a[(l&n)>>0]=k>>>8;a[(l&n)+1>>0]=k;r=r+1|0;if((r|0)==(g|0))break;else l=l+2|0}}else j=q;i=f+18|0;b[(i&o)>>1]=g;a[(f&n)+1>>0]=0;a[(w+t&n)+1>>0]=0;a[(w+t&n)+2>>0]=0;a[(w+t&n)+3>>0]=(e[(i&o)>>1]|0)>>>8;a[(w+t&n)+4>>0]=b[(i&o)>>1];i=j-v|0;a[(s&n)>>0]=i>>>8;a[(u&n)>>0]=i;a[(w+t&n)+7>>0]=0;return}function Iq(a,b,f,g){a=a|0;b=b|0;f=f|0;g=g|0;var h=0,i=0,j=0,k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0;u=c[(a&p)+56>>2]|0;s=u+(c[((c[(a&p)+52>>2]|0)&p)+36>>2]|0)|0;q=u+((d[(a&n)+6>>0]|0)+8+(d[(a&n)+7>>0]|0))|0;a:do if((b|0)>0){r=u;t=0;h=0;l=0;m=0;while(1){j=c[(f+(t<<2)&p)>>2]|0;if(j>>>0>=q>>>0&j>>>0>>0){i=e[(g+(t<<1)&o)>>1]|0;k=j+i|0;if((l|0)!=(k|0)){if(l)Cq(a,l-r&65535,m&65535)|0;if(k>>>0>s>>>0){h=0;break a}}else i=i+m|0;h=h+1|0}else{j=l;i=m}t=t+1|0;if((t|0)>=(b|0))break;else{l=j;m=i}}if(j)Cq(a,j-u&65535,i&65535)|0}else h=0;while(0);return h|0}function Jq(b,d,f,g,h,k,l){b=b|0;d=d|0;f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;var m=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0;y=i;i=i+16|0;if((i|0)>=(j|0))fa();w=y;q=c[(b&p)+56>>2]|0;m=c[(f&p)>>2]|0;if(!(a[(q&n)+1>>0]|0))v=(a[(q&n)+2>>0]|0)!=0;else v=1;a:do if((h|0)>0){t=0;while(1){s=e[(l+(t<<1)&o)>>1]|0;if(v?(u=Dq(b,s,w,0)|0,(u|0)!=0):0)r=u;else{r=m+(0-s)|0;if(r>>>0>>0){m=1;break a}else m=r}kw(r|0,c[(k+(t<<2)&p)>>2]|0,s|0)|0;s=r-q|0;a[(g&n)>>0]=s>>>8;a[(g&n)+1>>0]=s;t=t+1|0;if((t|0)>=(h|0)){x=9;break}else g=g+2|0}}else x=9;while(0);if((x|0)==9){c[(f&p)>>2]=m;m=0}i=y;return m|0}function Kq(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,q=0,r=0;o=i;i=i+16|0;if((i|0)>=(j|0))fa();n=o;e=c[(a&p)+44>>2]|0;h=a;f=c[(h&p)>>2]|0;h=c[(h&p)+4>>2]|0;a:do if(!e){m=a+40|0;e=c[(m&p)>>2]|0;g=((e|0)<0)<<31>>31;l=rw(f|0,h|0,e|0,g|0)|0;if(!l){k=a+8|0;k=dw(c[(k&p)>>2]|0,c[(k&p)+4>>2]|0,f|0,h|0)|0;q=G;r=c[(a&p)+24>>2]|0;e=tc[c[((c[(r&p)>>2]|0)&p)+8>>2]&31](r,c[(a&p)+36>>2]|0,(q|0)>(g|0)|(q|0)==(g|0)&k>>>0>e>>>0?e:k,f,h)|0;if(e)break;e=c[(m&p)>>2]|0}k=e-l|0;if((k|0)>=(b|0)){c[(d&p)>>2]=(c[(a&p)+36>>2]|0)+l;e=a;b=jw(c[(e&p)>>2]|0,c[(e&p)+4>>2]|0,b|0,((b|0)<0)<<31>>31|0)|0;e=a;c[(e&p)>>2]=b;c[(e&p)+4>>2]=G;e=0;break}e=a+16|0;f=c[(e&p)>>2]|0;if((f|0)<(b|0)){f=f<<1;f=(f|0)<128?128:f;while(1)if((f|0)<(b|0))f=f<<1;else{h=f;break}g=a+28|0;f=rg(c[(g&p)>>2]|0,h,((h|0)<0)<<31>>31)|0;if(!f){e=7;break}c[(e&p)>>2]=h;c[(g&p)>>2]=f}else f=c[(a&p)+28>>2]|0;h=a+28|0;kw(f|0,(c[(a&p)+36>>2]|0)+l|0,k|0)|0;l=a;l=jw(c[(l&p)>>2]|0,c[(l&p)+4>>2]|0,k|0,((k|0)<0)<<31>>31|0)|0;e=a;c[(e&p)>>2]=l;c[(e&p)+4>>2]=G;e=b-k|0;if((e|0)>0){g=e;do{f=c[(m&p)>>2]|0;f=(g|0)>(f|0)?f:g;e=Kq(a,f,n)|0;if(e)break a;kw((c[(h&p)>>2]|0)+(b-g)|0,c[(n&p)>>2]|0,f|0)|0;g=g-f|0}while((g|0)>0)}c[(d&p)>>2]=c[(h&p)>>2];e=0}else{c[(d&p)>>2]=e+f;b=jw(f|0,h|0,b|0,((b|0)<0)<<31>>31|0)|0;e=a;c[(e&p)>>2]=b;c[(e&p)+4>>2]=G;e=0}while(0);i=o;return e|0}function Lq(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=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,x=0,y=0,z=0,A=0;A=i;i=i+64|0;if((i|0)>=(j|0))fa();x=A+44|0;z=A;y=A+40|0;v=a+8|0;u=c[(v&p)>>2]|0;v=c[(v&p)+4>>2]|0;w=a+4|0;q=c[(w&p)>>2]|0;Pp(c[(a&p)+48>>2]|0,z,c[((c[((c[(a&p)>>2]|0)&p)+8>>2]|0)&p)+12>>2]|0,u,v);o=q+8|0;q=q+12|0;r=z+24|0;s=z+16|0;t=a+16|0;while(1){f=c[((c[(o&p)>>2]|0)&p)+4>>2]|0;g=c[(q&p)>>2]|0;h=c[(g+(f*56|0)&p)+20>>2]|0;if(!(c[(g+(f*56|0)&p)+24>>2]|0)){d=1;b=0;break}l=r;k=c[(l&p)>>2]|0;l=c[(l&p)+4>>2]|0;m=c[(s&p)>>2]|0;n=((h|0)<0)<<31>>31;b=h;e=n;d=0;do{d=d+1|0;b=mw(b|0,e|0,7)|0;e=G}while(((b|0)!=0|(e|0)!=0)&(d|0)<9);k=jw(k|0,l|0,h|0,n|0)|0;k=jw(k|0,G|0,m|0,((m|0)<0)<<31>>31|0)|0;d=jw(k|0,G|0,d|0,((d|0)<0)<<31>>31|0)|0;k=G;b=c[(t&p)>>2]|0;b=jw(b|0,((b|0)<0)<<31>>31|0,u|0,v|0)|0;e=G;if((k|0)>(e|0)|(k|0)==(e|0)&d>>>0>b>>>0){d=1;b=0;break}Qp(z,x,pm(x,h,n)|0);Qp(z,c[(g+(f*56|0)&p)+32>>2]|0,h);b=Wm(c[(w&p)>>2]|0,y)|0;if(b){d=0;break}}z=Rp(z,a+56|0)|0;i=A;return (d?z:b)|0}function Mq(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0;d=i;i=i+16|0;if((i|0)>=(j|0))fa();f=d;c[(f&p)>>2]=e;e=Wk(a,13592,f)|0;mg(a,b);i=d;return e|0}function Nq(d,e,f,g){d=d|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,q=0;q=i;i=i+16|0;if((i|0)>=(j|0))fa();m=q;h=a[(d&n)>>0]|0;if(h<<24>>24!=0&(e|0)>0){l=0;do{if((h+-48&255)<10){k=0;do{k=(k*10|0)+-48+(h<<24>>24)|0;d=d+1|0;h=a[(d&n)>>0]|0}while((h+-48&255)<10);h=0}else{k=0;h=0}b[(f+(l<<1)&o)>>1]=fs(k,h)|0;d=(a[(d&n)>>0]|0)==32?d+1|0:d;l=l+1|0;h=a[(d&n)>>0]|0}while(h<<24>>24!=0&(l|0)<(e|0))}l=g+51|0;a[(l&n)>>0]=a[(l&n)>>0]&-69;a:do if(a[(d&n)>>0]|0){f=g+44|0;b:while(1){do if(!(Gh(13448,d,10352,0)|0)){if(Gh(13464,d,10352,0)|0){c[(m&p)>>2]=0;Dn(d+3|0,m)|0;h=c[(m&p)>>2]|0;b[(f&o)>>1]=fs(h,((h|0)<0)<<31>>31)|0;break}if(Gh(13480,d,10352,0)|0)a[(l&n)>>0]=a[(l&n)>>0]|64}else a[(l&n)>>0]=a[(l&n)>>0]|4;while(0);while(1){h=a[(d&n)>>0]|0;if(h<<24>>24==32|h<<24>>24==0)break;d=d+1|0}while(1){k=d+1|0;if(!(h<<24>>24))break a;else if(h<<24>>24!=32)continue b;h=a[(k&n)>>0]|0;d=k}}}while(0);i=q;return}function Oq(d){d=d|0;var e=0,f=0;f=d+8|0;e=c[(f&p)>>2]|0;if(!e){e=vh(d)|0;c[(f&p)>>2]=e;if(e)wh(e,155,0,0,0)|0;if((c[(d&p)+408>>2]|0)==0?(b[((c[(d&p)>>2]|0)&o)+60>>1]&8)==0:0)a[(d&n)+23>>0]=1}return e|0}function Pq(b,d){b=b|0;d=d|0;var e=0;e=(c[(b&p)+32>>2]|0)+-1|0;if((e|0)>(c[((c[(b&p)+24>>2]|0)&p)+88>>2]|0)?(a[((c[(b&p)+4>>2]|0)+(e*20|0)&n)>>0]|0)==d<<24>>24:0){zh(b,e);e=1}else e=0;return e|0}function Qq(d,e,f,g,h){d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var i=0,j=0;j=Oq(d)|0;i=g+32|0;gs(d,f,c[(i&p)>>2]|0,(h|0)==55&1,c[(g&p)>>2]|0);if(!(a[(g&n)+44>>0]&32)){g=b[(g&o)+38>>1]|0;xh(j,wh(j,h,e,c[(i&p)>>2]|0,f)|0,g,-14)}else{i=c[(g&p)+8>>2]|0;a:do if(!i)i=0;else while(1){if((a[(i&n)+51>>0]&3)==2)break a;i=c[(i&p)+20>>2]|0;if(!i){i=0;break}}while(0);wh(j,h,e,c[(i&p)+40>>2]|0,f)|0;g=c[(d&p)+8>>2]|0;xh(g,-1,hs(d,i)|0,-6)}return}function Rq(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0;if((d|0)!=0?(a[(d&n)>>0]|0)==-97:0)wh(c[(b&p)+8>>2]|0,33,c[(d&p)+28>>2]|0,e,0)|0;else h=4;if(((h|0)==4?(g=is(b,d,e)|0,(g|0)!=(e|0)):0)?(f=c[(b&p)+8>>2]|0,(f|0)!=0):0)wh(f,34,g,e,0)|0;return}function Sq(b,d,e,f,g){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0;m=i;i=i+16|0;if((i|0)>=(j|0))fa();l=m;h=c[(b&p)>>2]|0;do if(((a[(h&n)+145>>0]|0)==0?(a[(b&n)+451>>0]|0)==0:0)?(k=c[(h&p)+284>>2]|0,(k|0)!=0):0){h=kc[k&7](c[(h&p)+288>>2]|0,d,e,f,g,c[(b&p)+492>>2]|0)|0;if((h|0)==1){th(b,25216,l);c[(b&p)+12>>2]=23;h=1;break}else if((h|0)==0|(h|0)==2)break;else{th(b,25232,l);c[(b&p)+12>>2]=1;h=1;break}}else h=0;while(0);i=m;return h|0}function Tq(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;d=Wq(c[(a&p)>>2]|0,d)|0;do if(d){e=Oq(a)|0;if((e|0)!=0?(Sq(a,32,c[(b<<2&p)+37088>>2]|0,d,0)|0)==0:0){xh(e,wh(e,2,b,0,0)|0,d,-1);break}mg(c[(a&p)>>2]|0,d)}while(0);return}function Uq(e,f,g,h,k,l,m){e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;m=m|0;var q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0;y=i;i=i+16|0;if((i|0)>=(j|0))fa();u=y;s=y+4|0;x=c[(e&p)>>2]|0;f=er(e,f,g,s)|0;a:do if((f|0)>=0){t=(h|0)!=0;if(t?(c[(g&p)+4>>2]|0)!=0&(f|0)!=1:0){th(e,36976,u);break}w=t?1:f;g=c[(s&p)>>2]|0;t=g;f=c[(t&p)+4>>2]|0;s=e+496|0;c[(s&p)>>2]=c[(t&p)>>2];c[(s&p)+4>>2]=f;s=Wq(x,g)|0;if(s){b:do if((Lr(e,s)|0)==0?(r=(a[(x&n)+144>>0]|0)==1?1:h,v=x+16|0,q=c[((c[(v&p)>>2]|0)+(w<<4)&p)>>2]|0,(Sq(e,18,(r|0)==1?13184:13208,0,q)|0)==0):0){h=(r|0)!=0;if(!k)f=h?4:2;else f=h?6:8;t=(l|0)!=0;if(!t?(Sq(e,f,s,0,q)|0)!=0:0)break;do if(!(a[(e&n)+451>>0]|0)){h=c[((c[(v&p)>>2]|0)+(w<<4)&p)>>2]|0;if(Gn(e)|0)break b;if(!(_h(x,s,h)|0)){if(!(bq(x,s,h)|0))break;c[(u&p)>>2]=s;th(e,37048,u);break b}if(!m){c[(u&p)>>2]=g;th(e,37024,u);break b}else{Ar(e,w);break b}}while(0);r=mh(x,76,0)|0;if(!r){a[(x&n)+65>>0]=1;c[(e&p)+12>>2]=7;v=e+64|0;c[(v&p)>>2]=(c[(v&p)>>2]|0)+1;break}q=r+0|0;h=q+76|0;do{a[(q&n)>>0]=0;q=q+1|0}while((q|0)<(h|0));c[(r&p)>>2]=s;b[(r&o)+36>>1]=-1;q=c[((c[(v&p)>>2]|0)+(w<<4)&p)+12>>2]|0;c[(r&p)+68>>2]=q;b[(r&o)+40>>1]=1;b[(r&o)+28>>1]=200;c[(e&p)+484>>2]=r;if((a[(e&n)+18>>0]|0)==0?(_v(s,26576)|0)==0:0)c[(q&p)+72>>2]=r;if(a[(x&n)+145>>0]|0)break a;g=Oq(e)|0;if(!g)break a;v=c[(e&p)+408>>2]|0;Ar(e,w);q=1<>2]=c[(v&p)>>2]|q;if(t)wh(g,146,0,0,0)|0;r=e+72|0;f=c[(r&p)>>2]|0;s=f+1|0;c[(e&p)+384>>2]=s;t=f+2|0;c[(e&p)+388>>2]=t;f=f+3|0;c[(r&p)>>2]=f;wh(g,51,w,f,2)|0;r=g+96|0;c[(r&p)>>2]=c[(r&p)>>2]|q;r=wh(g,45,f,0,0)|0;wh(g,25,(c[(x&p)+24>>2]&32768|0)!=0?1:4,f,0)|0;wh(g,52,w,2,f)|0;wh(g,25,d[(x&n)+62>>0]|0,f,0)|0;wh(g,52,w,5,f)|0;h=g+32|0;q=c[(h&p)>>2]|0;if(q>>>0>r>>>0)c[((c[(g&p)+4>>2]|0)+(r*20|0)&p)+8>>2]=q;c[((c[(g&p)+24>>2]|0)&p)+88>>2]=q+-1;if(!(l|k))c[(e&p)+416>>2]=wh(g,121,w,t,0)|0;else wh(g,25,0,t,0)|0;js(e,w);wh(g,74,0,s,0)|0;wh(g,28,0,f,0)|0;wh(g,75,0,f,s)|0;q=c[(g&p)+4>>2]|0;if(q)a[(q+(((c[(h&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=8;wh(g,61,0,0,0)|0;break a}while(0);mg(x,s)}}while(0);i=y;return}function Vq(f,g,h,k,l){f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;var m=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;R=i;i=i+176|0;if((i|0)>=(j|0))fa();M=R+80|0;J=R+168|0;G=R;H=R+136|0;I=R+112|0;N=c[(f&p)>>2]|0;a:do if((!((h|0)==0&(l|0)==0)?(O=N+65|0,(a[(O&n)>>0]|0)==0):0)?(P=f+484|0,Q=c[(P&p)>>2]|0,(Q|0)!=0):0){L=N+145|0;if(a[(L&n)>>0]|0)c[(Q&p)+32>>2]=c[(N&p)+140>>2];b:do if(k&32){s=Q+44|0;r=d[(s&n)>>0]|0;if(r&8){th(f,36584,M);break a}if(!(r&4)){c[(M&p)>>2]=c[(Q&p)>>2];th(f,36640,M);break}a[(s&n)>>0]=r|32;t=c[(f&p)+8>>2]|0;s=c[(f&p)+416>>2]|0;if(s){if((s|0)<0)s=(c[(t&p)+32>>2]|0)+-1|0;if(!(a[((c[(t&p)>>2]|0)&n)+65>>0]|0))s=(c[(t&p)+4>>2]|0)+(s*20|0)|0;else s=29120;a[(s&n)>>0]=120}s=c[(f&p)+420>>2]|0;if(s){if((s|0)<0)s=(c[(t&p)+32>>2]|0)+-1|0;if(!(a[((c[(t&p)>>2]|0)&n)+65>>0]|0))r=(c[(t&p)+4>>2]|0)+(s*20|0)|0;else r=29120;a[(r&n)>>0]=16}r=Q+36|0;if((b[(r&o)>>1]|0)>-1){s=lr(f,0,0)|0;if(!s)break;C=kh(c[(f&p)>>2]|0,c[((c[(Q&p)+4>>2]|0)+((b[(r&o)>>1]|0)*24|0)&p)>>2]|0)|0;D=c[(s&p)+4>>2]|0;c[(D&p)+4>>2]=C;a[(D&n)+12>>0]=a[(f&n)+448>>0]|0;s=$q(f,0,0,0,s,d[(Q&n)+45>>0]|0,0,0,0,0)|0;if(!s)break;x=s+51|0;a[(x&n)>>0]=a[(x&n)>>0]&-4|2;b[(r&o)>>1]=-1;x=b[(s&o)+46>>1]|0}else{s=c[(Q&p)+8>>2]|0;c:do if(!s)s=0;else while(1){if((a[(s&n)+51>>0]&3)==2)break c;s=c[(s&p)+20>>2]|0;if(!s){s=0;break}}while(0);y=s+46|0;t=b[(y&o)>>1]|0;if((t&65535)>1){w=c[(s&p)+4>>2]|0;v=s+48|0;x=1;r=1;do{m=b[(w+(x<<1)&o)>>1]|0;u=r;q=w;while(1){if((u|0)<=0){F=36;break}if((b[(q&o)>>1]|0)==m<<16>>16){F=35;break}else{u=u+-1|0;q=q+2|0}}if((F|0)==35){F=0;b[(v&o)>>1]=(b[(v&o)>>1]|0)+-1<<16>>16}else if((F|0)==36){F=0;b[(w+(r<<1)&o)>>1]=m;t=b[(y&o)>>1]|0;r=r+1|0}x=x+1|0}while((x|0)<(t&65535|0))}else r=1;x=r&65535;b[(y&o)>>1]=x}u=s+51|0;t=a[(u&n)>>0]|32;a[(u&n)>>0]=t;D=x&65535;if(!(a[(N&n)+147>>0]|0)){if(x<<16>>16){t=c[(s&p)+4>>2]|0;r=c[(Q&p)+4>>2]|0;q=0;do{a[(r+((b[(t+(q<<1)&o)>>1]|0)*24|0)&n)+20>>0]=1;q=q+1|0}while((q|0)<(D|0));t=a[(u&n)>>0]|0}a[(u&n)>>0]=t|8}c[(s&p)+40>>2]=c[(Q&p)+32>>2];u=c[(Q&p)+8>>2]|0;if(u){A=x<<16>>16==0;B=s+4|0;C=s+32|0;do{d:do if((a[(u&n)+51>>0]&3)!=2){do if(A)t=b[(u&o)+46>>1]|0;else{v=c[(u&p)+4>>2]|0;t=b[(u&o)+46>>1]|0;q=t&65535;m=c[(B&p)>>2]|0;z=0;r=0;do{w=b[(m+(z<<1)&o)>>1]|0;y=q;x=v;while(1){if((y|0)<=0){x=1;break}if((b[(x&o)>>1]|0)==w<<16>>16){x=0;break}else{y=y+-1|0;x=x+2|0}}r=x+r|0;z=z+1|0}while((z|0)<(D|0));q=u+46|0;if(!r)break;if(ks(N,u,(t&65535)+r|0)|0)break b;if(A)break d;w=b[(q&o)>>1]|0;z=u+4|0;m=u+32|0;y=w;x=0;w=w&65535;while(1){t=c[(z&p)>>2]|0;r=b[((c[(B&p)>>2]|0)+(x<<1)&o)>>1]|0;y=y&65535;v=t;while(1){if((y|0)<=0){F=63;break}if((b[(v&o)>>1]|0)==r<<16>>16)break;else{y=y+-1|0;v=v+2|0}}if((F|0)==63){F=0;b[(t+(w<<1)&o)>>1]=r;c[((c[(m&p)>>2]|0)+(w<<2)&p)>>2]=c[((c[(C&p)>>2]|0)+(x<<2)&p)>>2];w=w+1|0}x=x+1|0;if((x|0)>=(D|0))break d;y=b[(q&o)>>1]|0}}while(0);b[(u&o)+48>>1]=t}while(0);u=c[(u&p)+20>>2]|0}while((u|0)!=0)}y=Q+38|0;t=b[(y&o)>>1]|0;r=t<<16>>16;if((D|0)>=(r|0)){b[(s&o)+48>>1]=t;break}if((ks(N,s,r)|0)==0?(E=b[(y&o)>>1]|0,E<<16>>16>0):0){v=s+4|0;x=s+32|0;t=E;w=0;s=D;do{q=c[(v&p)>>2]|0;u=s;r=q;while(1){if((u|0)<=0){F=74;break}if((b[(r&o)>>1]|0)==(w|0))break;else{u=u+-1|0;r=r+2|0}}if((F|0)==74){F=0;b[(q+(s<<1)&o)>>1]=w;c[((c[(x&p)>>2]|0)+(s<<2)&p)>>2]=11152;t=b[(y&o)>>1]|0;s=s+1|0}w=w+1|0}while((w|0)<(t<<16>>16|0))}}while(0);F=Q+68|0;s=c[(F&p)>>2]|0;e:do if(s){r=c[(N&p)+20>>2]|0;if((r|0)>0){q=c[(N&p)+16>>2]|0;t=0;while(1){m=t+1|0;if((c[(q+(t<<4)&p)+12>>2]|0)==(s|0))break e;if((m|0)<(r|0))t=m;else{t=m;break}}}else t=0}else t=-1e6;while(0);q=c[(Q&p)+24>>2]|0;f:do if(q){c[(H&p)>>2]=0;c[(H&p)+4>>2]=0;c[(H&p)+8>>2]=0;c[(H&p)+12>>2]=0;c[(H&p)+16>>2]=0;c[(H&p)+20>>2]=0;c[(H&p)+24>>2]=0;c[(H&p)+28>>2]=0;s=G+0|0;r=s+80|0;do{c[(s&p)>>2]=0;s=s+4|0}while((s|0)<(r|0));c[(G&p)>>2]=1;c[(G&p)+16>>2]=c[(Q&p)>>2];c[(G&p)+24>>2]=Q;c[(G&p)+48>>2]=-1;c[(H&p)>>2]=f;c[(H&p)+4>>2]=G;b[(H&o)+28>>1]=4;s=q+4|0;if((c[(q&p)>>2]|0)>0){r=0;do{if(ls(H,c[((c[(s&p)>>2]|0)+(r*20|0)&p)>>2]|0)|0)break f;r=r+1|0}while((r|0)<(c[(q&p)>>2]|0))}}while(0);D=Q+38|0;m=b[(D&o)>>1]|0;if(m<<16>>16>0){s=m<<16>>16;r=c[(Q&p)+4>>2]|0;q=0;while(1){q=(d[(r&n)+22>>0]|0)+q|0;s=s+-1|0;if((s|0)<=0)break;else r=r+24|0}}else q=0;b[(Q&o)+42>>1]=fs(((e[(Q&o)+36>>1]|0)>>>15&65535)+q<<2,0)|0;q=c[(Q&p)+8>>2]|0;if(q)do{ms(q);q=c[(q&p)+20>>2]|0}while((q|0)!=0);if(!(a[(L&n)>>0]|0)){E=Oq(f)|0;if(!E)break;wh(E,61,0,0,0)|0;B=(c[(Q&p)+12>>2]|0)==0;r=B?36672:36680;B=B?31232:35480;do if(!l){q=k<<24>>24==0?h:f+504|0;l=c[(q&p)>>2]|0;s=c[(f&p)+496>>2]|0;m=l-s|0;if((a[(l&n)>>0]|0)!=59)m=(c[(q&p)+4>>2]|0)+m|0;c[(M&p)>>2]=r;c[(M&p)+4>>2]=m;c[(M&p)+8>>2]=s;s=f+388|0;m=Q;r=uh(N,36688,M)|0}else{s=f+388|0;wh(E,55,1,c[(s&p)>>2]|0,t)|0;r=c[(E&p)+4>>2]|0;if(r)a[(r+(((c[(E&p)+32>>2]|0)+-1|0)*20|0)&n)+3>>0]=4;c[(f&p)+68>>2]=2;a[(I&n)>>0]=14;c[(I&p)+4>>2]=1;a[(I&n)+1>>0]=0;c[(I&p)+8>>2]=0;c[(I&p)+12>>2]=0;ir(f,l,I)|0;wh(E,61,1,0,0)|0;if(!(c[(f&p)+64>>2]|0)){m=ns(f,l)|0;if(!m)break a;I=m+38|0;b[(D&o)>>1]=b[(I&o)>>1]|0;l=m+4|0;c[(Q&p)+4>>2]=c[(l&p)>>2];b[(I&o)>>1]=0;c[(l&p)>>2]=0;kg(N,m)}C=Q+4|0;z=b[(D&o)>>1]|0;if(z<<16>>16>0){v=z<<16>>16;w=0;r=0;x=c[(C&p)>>2]|0;while(1){m=c[(x&p)>>2]|0;q=0;while(1){u=a[(m&n)>>0]|0;if(u<<24>>24==34)q=q+1|0;else if(!(u<<24>>24))break;m=m+1|0;q=q+1|0}r=r+7+q|0;w=w+1|0;if((w|0)==(v|0))break;else x=x+24|0}u=r+2|0}else u=2;m=c[(Q&p)>>2]|0;r=0;while(1){q=a[(m&n)>>0]|0;if(q<<24>>24==34)r=r+1|0;else if(!(q<<24>>24))break;m=m+1|0;r=r+1|0}x=r+u|0;A=(x|0)<50;u=A?10360:36880;y=A?20240:36888;A=A?33952:36896;x=((z<<16>>16)*6|0)+35+x|0;r=qg(x,((x|0)<0)<<31>>31)|0;if(!r){a[(O&n)>>0]=1;m=Q;r=0;break}ad(x,r,36904,M)|0;q=r;while(1)if(!(a[(q&n)>>0]|0))break;else q=q+1|0;c[(J&p)>>2]=q-r&1073741823;os(r,J,c[(Q&p)>>2]|0);m=c[(J&p)>>2]|0;v=m+1|0;c[(J&p)>>2]=v;a[(r+m&n)>>0]=40;m=x-v|0;q=r+v|0;if((b[(D&o)>>1]|0)>0){z=0;w=c[(C&p)>>2]|0;while(1){ad(m,q,u,M)|0;q=r+v|0;if(!q)q=0;else{u=q;while(1)if(!(a[(u&n)>>0]|0))break;else u=u+1|0;q=u-q&1073741823}c[(J&p)>>2]=q+v;os(r,J,c[(w&p)>>2]|0);q=c[((a[(w&n)+21>>0]|0)+-65<<2&p)+36920>>2]|0;u=q;while(1)if(!(a[(u&n)>>0]|0))break;else u=u+1|0;v=u-q&1073741823;u=c[(J&p)>>2]|0;kw(r+u|0,q|0,v|0)|0;v=u+v|0;c[(J&p)>>2]=v;u=z+1|0;m=x-v|0;q=r+v|0;if((u|0)<(b[(D&o)>>1]|0)){z=u;w=w+24|0;u=y}else break}}c[(M&p)>>2]=A;ad(m,q,10344,M)|0;m=Q}while(0);q=N+16|0;k=c[(m&p)>>2]|0;I=c[(s&p)>>2]|0;l=c[(f&p)+384>>2]|0;c[(M&p)>>2]=c[((c[(q&p)>>2]|0)+(t<<4)&p)>>2];c[(M&p)+4>>2]=(t|0)==1?13184:13208;c[(M&p)+8>>2]=B;c[(M&p)+12>>2]=k;c[(M&p)+16>>2]=k;c[(M&p)+20>>2]=I;c[(M&p)+24>>2]=r;c[(M&p)+28>>2]=l;Br(f,36704,M);mg(N,r);Dr(f,t);if((a[(Q&n)+44>>0]&8)!=0?(K=c[(q&p)>>2]|0,(c[((c[(K+(t<<4)&p)+12>>2]|0)&p)+72>>2]|0)==0):0){c[(M&p)>>2]=c[(K+(t<<4)&p)>>2];Br(f,36792,M)}c[(M&p)>>2]=c[(m&p)>>2];Ir(E,t,uh(N,36840,M)|0);if(!(a[(L&n)>>0]|0))break}else m=Q;if(Ik((c[(F&p)>>2]|0)+8|0,c[(m&p)>>2]|0,Q)|0){a[(O&n)>>0]=1;break}c[(P&p)>>2]=0;l=N+24|0;c[(l&p)>>2]=c[(l&p)>>2]|2;if(!(c[(Q&p)+12>>2]|0)){l=c[(f&p)+496>>2]|0;c[(Q&p)+48>>2]=(Nn(l,(c[(((c[(g&p)>>2]|0)==0?h:g)&p)>>2]|0)-l|0)|0)+13}}while(0);i=R;return}function Wq(b,d){b=b|0;d=d|0;var e=0,f=0;if(!d)e=0;else{f=c[(d&p)>>2]|0;d=c[(d&p)+4>>2]|0;if((f|0)!=0?(e=jw(d|0,0,1,0)|0,e=mh(b,e,G)|0,(e|0)!=0):0){kw(e|0,f|0,d|0)|0;a[(e+d&n)>>0]=0}else e=0;lo(e)}return e|0}function Xq(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,o=0,q=0;o=i;i=i+16|0;if((i|0)>=(j|0))fa();m=o;a:do if(b){g=a[(b&n)>>0]|0;b:do if(!(g<<24>>24)){f=67;g=0}else{k=g;f=67;h=0;g=0;do{h=d[(k&255&n)+9328>>0]|0|h<<8;b=b+1|0;if((h|0)==1685026146)if(f<<24>>24==67){f=69;h=1685026146;l=5}else l=13;else if((h|0)==1668050786){f=66;l=5}else if((h|0)==1718382433)if(f<<24>>24==67){f=69;h=1718382433;l=5}else l=13;else if((h|0)==1919246700)if(f<<24>>24==67){f=69;h=1919246700;l=5}else l=14;else if((h|0)==1952807028){f=66;l=5}else if((h|0)==1651273570)if(f<<24>>24==69|f<<24>>24==67){q=a[(b&n)>>0]|0;k=q;f=65;h=1651273570;g=q<<24>>24==40?b:g}else l=14;else if((h|0)!=1667785074)if((h&16777215|0)==6909556){f=68;break b}else l=5;else{f=66;h=1667785074;g=b;l=5}if((l|0)==13)l=5;else if((l|0)==14)l=5;if((l|0)==5){l=0;k=a[(b&n)>>0]|0}}while(k<<24>>24!=0)}while(0);if((e|0)!=0?(a[(e&n)>>0]=1,f<<24>>24<67):0){if(!g){a[(e&n)>>0]=5;break}b=a[(g&n)>>0]|0;if(b<<24>>24){while(1){if(((b&255)+-48|0)>>>0<10)break;g=g+1|0;b=a[(g&n)>>0]|0;if(!(b<<24>>24))break a}c[(m&p)>>2]=0;Dn(g,m)|0;g=((c[(m&p)>>2]|0)/4|0)+1|0;g=(g|0)>255?255:g;c[(m&p)>>2]=g;a[(e&n)>>0]=g}}}else f=67;while(0);i=o;return f|0}function Yq(e,f){e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,q=0,r=0,s=0,t=0;r=i;i=i+32|0;if((i|0)>=(j|0))fa();m=r;q=c[(e&p)>>2]|0;k=c[(e&p)+484>>2]|0;do if(k){h=(b[(k&o)+38>>1]|0)+-1|0;l=c[(k&p)+4>>2]|0;s=c[(f&p)>>2]|0;t=(d[(q&n)+145>>0]|0)+4|0;c[(m&p)>>2]=0;c[(m&p)+4>>2]=0;c[(m&p)+8>>2]=0;c[(m&p)+12>>2]=0;c[(m&p)+16>>2]=0;c[(m&p)+20>>2]=0;k=m+20|0;a[(k&n)>>0]=t;c[(m&p)>>2]=78;c[(m&p)+4>>2]=79;c[(m&p)+24>>2]=0;rs(m,s)|0;if(!(a[(k&n)>>0]|0)){c[(m&p)>>2]=c[(l+(h*24|0)&p)>>2];th(e,36480,m);break}k=l+(h*24|0)+4|0;Gk(q,c[(k&p)>>2]|0);c[(k&p)>>2]=Mr(q,c[(f&p)>>2]|0,1,0)|0;l=l+(h*24|0)+8|0;mg(q,c[(l&p)>>2]|0);h=c[(f&p)+4>>2]|0;k=(c[(f&p)+8>>2]|0)-h|0;if((h|0)!=0?(g=jw(k|0,((k|0)<0)<<31>>31|0,1,0)|0,g=mh(q,g,G)|0,(g|0)!=0):0){kw(g|0,h|0,k|0)|0;a[(g+k&n)>>0]=0}else g=0;c[(l&p)>>2]=g}while(0);Gk(q,c[(f&p)>>2]|0);i=r;return}function Zq(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,k=0;k=i;i=i+16|0;if((i|0)>=(j|0))fa();h=k;if((b|0)==72&(d|0)!=0&(e|0)!=0?(c[(a&p)+64>>2]|0)==0:0)b=ss(c[(a&p)>>2]|0,d,e)|0;else{b=nr(c[(a&p)>>2]|0,b,f,1)|0;ts(c[(a&p)>>2]|0,b,d,e)}if((b|0)!=0?(g=c[((c[(a&p)>>2]|0)&p)+100>>2]|0,(g|0)<(c[(b&p)+24>>2]|0)):0){c[(h&p)>>2]=g;th(a,27152,h)}i=k;return b|0}function _q(e,f,g,h,k){e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;var l=0,m=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;i=i+16|0;if((i|0)>=(j|0))fa();C=D;A=c[(e&p)+484>>2]|0;do if((A|0)!=0?(a[(e&n)+451>>0]|0)==0:0){B=A+44|0;m=d[(B&n)>>0]|0;if(m&4){c[(C&p)>>2]=c[(A&p)>>2];th(e,36376,C);break}y=m|4;a[(B&n)>>0]=y;z=(f|0)==0;if(z){m=(b[(A&o)+38>>1]|0)+-1|0;w=c[(A&p)+4>>2]|0;l=w+(m*24|0)+23|0;a[(l&n)>>0]=d[(l&n)>>0]|1;l=m;q=1;m=c[(w+(m*24|0)&p)+12>>2]|0}else{x=c[(f&p)>>2]|0;if((x|0)>0){u=f+4|0;v=A+4|0;t=b[(A&o)+38>>1]|0;w=0;m=0;do{a:do if(t<<16>>16>0){r=c[((c[(u&p)>>2]|0)+(w*20|0)&p)+4>>2]|0;s=c[(v&p)>>2]|0;q=0;while(1){l=q+1|0;if(!(dd(r,c[(s+(q*24|0)&p)>>2]|0)|0))break;if((l|0)<(t<<16>>16|0))q=l;else break a}l=s+(q*24|0)+23|0;a[(l&n)>>0]=d[(l&n)>>0]|1;l=q;m=c[(s+(q*24|0)&p)+12>>2]|0}else l=0;while(0);w=w+1|0}while((w|0)!=(x|0))}else{l=-1;m=0}q=(x|0)==1}if(q&(m|0)!=0?(dd(m,11144)|0|k|0)==0:0){b[(A&o)+36>>1]=l;a[(A&n)+45>>0]=g;a[(B&n)>>0]=y|h<<3;if(z){f=0;break}a[(e&n)+448>>0]=a[((c[(f&p)+4>>2]|0)&n)+12>>0]|0;break}if(h){th(e,36424,C);break}m=c[(e&p)+8>>2]|0;l=(m|0)!=0;if(l)c[(e&p)+420>>2]=wh(m,156,0,0,0)|0;f=$q(e,0,0,0,f,g,0,0,k,0)|0;if((f|0)!=0?(w=f+51|0,a[(w&n)>>0]=a[(w&n)>>0]&-4|2,l):0){f=c[(e&p)+420>>2]|0;l=c[(m&p)+32>>2]|0;if(l>>>0>f>>>0)c[((c[(m&p)+4>>2]|0)+(f*20|0)&p)+8>>2]=l;c[((c[(m&p)+24>>2]|0)&p)+88>>2]=l+-1;f=0}else f=0}while(0);Nk(c[(e&p)>>2]|0,f);i=D;return}function $q(f,g,h,k,l,m,q,r,s,t){f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;m=m|0;q=q|0;r=r|0;s=s|0;t=t|0;var 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;Y=i;i=i+144|0;if((i|0)>=(j|0))fa();V=Y;E=Y+112|0;x=Y+88|0;T=Y+84|0;N=Y+80|0;X=c[(f&p)>>2]|0;c[(T&p)>>2]=0;c[(N&p)>>2]=0;S=X+65|0;a:do if(((a[(S&n)>>0]|0)==0?(a[(f&n)+451>>0]|0)==0:0)?(Gn(f)|0)==0:0){U=(k|0)!=0;b:do if(U){g=er(f,g,h,T)|0;if((g|0)<0){u=0;h=0;break a}if((a[(X&n)+145>>0]|0)==0?(u=Jr(f,k)|0,(c[(h&p)+4>>2]|0)==0&(u|0)!=0):0)g=(c[(u&p)+68>>2]|0)==(c[((c[(X&p)+16>>2]|0)&p)+28>>2]|0)?1:g;h=c[(T&p)>>2]|0;u=c[(f&p)>>2]|0;c[(x&p)>>2]=f;u=c[(u&p)+16>>2]|0;c[(x&p)+12>>2]=c[(u+(g<<4)&p)>>2];c[(x&p)+4>>2]=c[(u+(g<<4)&p)+12>>2];c[(x&p)+16>>2]=20632;c[(x&p)+20>>2]=h;u=(g|0)==1;c[(x&p)+8>>2]=u&1;Kr(x,k)|0;w=Ur(f,0,k+8|0)|0;if(!w){u=0;h=0;break a}if(u?(c[((c[(X&p)+16>>2]|0)&p)+28>>2]|0)!=(c[(w&p)+68>>2]|0):0){c[(V&p)>>2]=c[(w&p)>>2];th(f,35920,V);u=0;h=0;break a}if((a[(w&n)+44>>0]&32)!=0?(v=c[(w&p)+8>>2]|0,(v|0)!=0):0){u=v;while(1){if((a[(u&n)+51>>0]&3)==2){v=g;M=u;x=w;break b}u=c[(u&p)+20>>2]|0;if(!u){v=g;M=0;x=w;break}}}else{v=g;M=0;x=w}}else{x=c[(f&p)+484>>2]|0;if(!x){u=0;h=0;break a}g=c[(x&p)+68>>2]|0;if(g){u=c[(X&p)+20>>2]|0;if((u|0)>0){h=c[(X&p)+16>>2]|0;w=0;while(1){v=w+1|0;if((c[(h+(w<<4)&p)+12>>2]|0)==(g|0)){h=0;v=w;M=0;break b}if((v|0)<(u|0))w=v;else{h=0;M=0;break}}}else{h=0;v=0;M=0}}else{h=0;v=-1e6;M=0}}while(0);R=X+16|0;F=c[(R&p)>>2]|0;g=F+(v<<4)|0;A=c[(x&p)>>2]|0;if(((Fc(A,25568,7)|0)==0?(a[(X&n)+145>>0]|0)==0:0)?(Fc(A+7|0,35976,9)|0)!=0:0){c[(V&p)>>2]=A;th(f,35992,V);u=0;h=0;break}if(c[(x&p)+12>>2]|0){th(f,36024,V);u=0;h=0;break}Q=x+44|0;if(a[(Q&n)>>0]&16){th(f,36056,V);u=0;h=0;break}G=(h|0)==0;if(!G){h=Wq(X,h)|0;if(!h){u=0;h=0;break}if(Lr(f,h)|0){u=0;break}if((a[(X&n)+145>>0]|0)==0?(_h(X,h,0)|0)!=0:0){c[(V&p)>>2]=h;th(f,36096,V);u=0;break}if(bq(X,h,c[(g&p)>>2]|0)|0)if(!t){c[(V&p)>>2]=h;th(f,36136,V);u=0;break}else{Ar(f,v);u=0;break}else w=h}else{u=c[(x&p)+8>>2]|0;if(!u)w=1;else{w=1;do{w=w+1|0;u=c[(u&p)+20>>2]|0}while((u|0)!=0)}c[(V&p)>>2]=A;c[(V&p)+4>>2]=w;w=uh(X,36160,V)|0;if(!w){u=0;h=0;break}}g=c[(g&p)>>2]|0;u=(v|0)==1;O=u?13184:13208;if((Sq(f,18,O,0,g)|0)==0?(Sq(f,u?3:1,w,c[(x&p)>>2]|0,g)|0)==0:0){if(!l){l=lr(f,0,0)|0;if(!l){l=0;u=0;h=w;break}I=kh(c[(f&p)>>2]|0,c[((c[(x&p)+4>>2]|0)+(((b[(x&o)+38>>1]|0)+-1|0)*24|0)&p)>>2]|0)|0;J=c[(l&p)+4>>2]|0;c[(J&p)+4>>2]=I;a[(J&n)+12>>0]=s}D=c[(l&p)>>2]|0;if((D|0)>0){A=c[(l&p)+4>>2]|0;y=0;g=0;do{u=c[(A+(y*20|0)&p)>>2]|0;if(u){h=c[(u&p)+8>>2]|0;if(!h)u=1;else{u=h;while(1)if(!(a[(u&n)>>0]|0))break;else u=u+1|0;u=(u-h&1073741823)+1|0}g=u+g|0}y=y+1|0}while((y|0)<(D|0));h=g}else h=0;if(!w)u=0;else{g=w;while(1)if(!(a[(g&n)>>0]|0))break;else g=g+1|0;u=g-w&1073741823}I=(M|0)!=0;if(I)g=e[(M&o)+46>>1]|0;else g=1;P=us(X,D+g&65535,h+1+u|0,N)|0;c:do if(!(a[(S&n)>>0]|0)){H=c[(N&p)>>2]|0;c[(P&p)>>2]=H;L=u+1|0;C=H+L|0;c[(N&p)>>2]=C;kw(H|0,w|0,L|0)|0;c[(P&p)+12>>2]=x;L=P+50|0;a[(L&n)>>0]=m;H=P+51|0;a[(H&n)>>0]=a[(H&n)>>0]&-12|((m|0)!=0&1)<<3&255|G&1;K=P+24|0;c[(K&p)>>2]=c[((c[(R&p)>>2]|0)+(v<<4)&p)+12>>2];g=c[(l&p)>>2]|0;J=P+46|0;b[(J&o)>>1]=g;if(r){c[(E&p)>>2]=0;c[(E&p)+4>>2]=0;c[(E&p)+8>>2]=0;c[(E&p)+12>>2]=0;c[(E&p)+16>>2]=0;c[(E&p)+20>>2]=0;c[(E&p)+24>>2]=0;c[(E&p)+28>>2]=0;A=V+0|0;h=A+80|0;do{c[(A&p)>>2]=0;A=A+4|0}while((A|0)<(h|0));c[(V&p)>>2]=1;c[(V&p)+16>>2]=c[(x&p)>>2];c[(V&p)+24>>2]=x;c[(V&p)+48>>2]=-1;c[(E&p)>>2]=f;c[(E&p)+4>>2]=V;b[(E&o)+28>>1]=16;ls(E,r)|0;c[(P&p)+36>>2]=r;g=c[(l&p)>>2]|0}z=(d[((c[(F+(v<<4)&p)+12>>2]|0)&n)+76>>0]|0)>3;d:do if((g|0)>0){G=x+4|0;F=x+38|0;E=P+4|0;r=X+145|0;g=P+32|0;y=P+28|0;h=0;s=c[(l&p)+4>>2]|0;while(1){u=c[(s&p)+4>>2]|0;A=b[(F&o)>>1]|0;e:do if(A<<16>>16>0){D=0;B=c[(G&p)>>2]|0;while(1){if(!(dd(u,c[(B&p)>>2]|0)|0)){t=D;break e}D=D+1|0;if((D|0)<(A<<16>>16|0))B=B+24|0;else{t=D;break}}}else t=0;while(0);if((t|0)>=(A<<16>>16|0))break;b[((c[(E&p)>>2]|0)+(h<<1)&o)>>1]=t;D=c[(s&p)>>2]|0;if(!D){D=c[((c[(G&p)>>2]|0)+(t*24|0)&p)+16>>2]|0;D=(D|0)!=0?D:11152}else{B=c[(D&p)+8>>2]|0;if(!B)D=1;else{D=B;while(1)if(!(a[(D&n)>>0]|0))break;else D=D+1|0;D=(D-B&1073741823)+1|0}kw(C|0,B|0,D|0)|0;B=c[(N&p)>>2]|0;C=B+D|0;c[(N&p)>>2]=C;D=B}if((a[(r&n)>>0]|0)==0?(cr(f,D)|0)==0:0){h=0;u=0;W=134;break c}c[((c[(g&p)>>2]|0)+(h<<2)&p)>>2]=D;a[((c[(y&p)>>2]|0)+h&n)>>0]=z?a[(s&n)+12>>0]|0:0;if(!(a[((c[(G&p)>>2]|0)+(t*24|0)&n)+20>>0]|0))a[(H&n)>>0]=a[(H&n)>>0]&-9;h=h+1|0;if((h|0)<(c[(l&p)>>2]|0))s=s+20|0;else break d}c[(V&p)>>2]=c[(x&p)>>2];c[(V&p)+4>>2]=u;th(f,36184,V);a[(f&n)+17>>0]=1;h=0;u=0;W=134;break c}else h=0;while(0);do if(I){z=M+46|0;A=b[(z&o)>>1]|0;if(!(A<<16>>16))break;E=M+4|0;F=P+4|0;G=P+48|0;s=M+32|0;t=P+32|0;g=M+28|0;y=P+28|0;r=0;do{B=b[((c[(E&p)>>2]|0)+(r<<1)&o)>>1]|0;u=c[(F&p)>>2]|0;D=e[(J&o)>>1]|0;C=u;while(1){if((D|0)<=0){W=92;break}if((b[(C&o)>>1]|0)==B<<16>>16){W=91;break}else{D=D+-1|0;C=C+2|0}}if((W|0)==91){W=0;b[(G&o)>>1]=(b[(G&o)>>1]|0)+-1<<16>>16}else if((W|0)==92){W=0;b[(u+(h<<1)&o)>>1]=B;c[((c[(t&p)>>2]|0)+(h<<2)&p)>>2]=c[((c[(s&p)>>2]|0)+(r<<2)&p)>>2];a[((c[(y&p)>>2]|0)+h&n)>>0]=a[((c[(g&p)>>2]|0)+r&n)>>0]|0;A=b[(z&o)>>1]|0;h=h+1|0}r=r+1|0}while((r|0)<(A&65535|0))}else{b[((c[(P&p)+4>>2]|0)+(h<<1)&o)>>1]=-1;c[((c[(P&p)+32>>2]|0)+(h<<2)&p)>>2]=11152}while(0);cq(P);r=f+484|0;g=c[(r&p)>>2]|0;if(!g){ms(P);g=c[(r&p)>>2]|0}f:do if((x|0)==(g|0)){u=c[(x&p)+8>>2]|0;if(!u)break;B=b[(J&o)>>1]|0;C=P+4|0;D=P+32|0;while(1){if((b[(u&o)+46>>1]|0)==B<<16>>16){g:do if(!(B<<16>>16)){r=0;g=0}else{y=c[(u&p)+4>>2]|0;z=c[(C&p)>>2]|0;A=u+32|0;g=0;while(1){if((b[(y+(g<<1)&o)>>1]|0)!=(b[(z+(g<<1)&o)>>1]|0)){r=B;break g}r=c[((c[(A&p)>>2]|0)+(g<<2)&p)>>2]|0;h=c[((c[(D&p)>>2]|0)+(g<<2)&p)>>2]|0;if((r|0)!=(h|0)?(dd(r,h)|0)!=0:0){r=B;break g}g=g+1|0;if((g|0)>=(B&65535|0)){r=B;break}}}while(0);if((g|0)==(r&65535|0))break}u=c[(u&p)+20>>2]|0;if(!u)break f}g=u+50|0;h=a[(g&n)>>0]|0;r=a[(L&n)>>0]|0;if(h<<24>>24==r<<24>>24){h=0;break c}if(!(h<<24>>24==10|r<<24>>24==10)){c[(V&p)>>2]=0;th(f,36216,V);h=a[(g&n)>>0]|0}if(h<<24>>24!=10){h=0;W=134;break c}a[(g&n)>>0]=a[(L&n)>>0]|0;h=0;break c}while(0);h=X+145|0;do if(!(a[(h&n)>>0]|0)){if(c[(f&p)+64>>2]|0){W=126;break}if(!((a[(Q&n)>>0]&32)==0|U)){W=126;break}u=f+72|0;r=(c[(u&p)>>2]|0)+1|0;c[(u&p)>>2]=r;u=Oq(f)|0;if(!u){h=0;u=0;W=134;break c}J=c[(f&p)+408>>2]|0;J=(J|0)==0?f:J;Ar(f,v);I=J+328|0;c[(I&p)>>2]=c[(I&p)>>2]|1<>0]=d[(J&n)>>0]|1;wh(u,120,v,r,0)|0;if(!q)g=0;else{g=c[(c[(T&p)>>2]&p)>>2]|0;J=(c[(f&p)+504>>2]|0)-g+(c[(f&p)+508>>2]|0)|0;I=J+-1|0;J=(a[(g+I&n)>>0]|0)==59?I:J;c[(V&p)>>2]=(m|0)==0?10360:36288;c[(V&p)+4>>2]=J;c[(V&p)+8>>2]=g;g=uh(X,36264,V)|0}I=c[(P&p)>>2]|0;J=c[(x&p)>>2]|0;c[(V&p)>>2]=c[((c[(R&p)>>2]|0)+(v<<4)&p)>>2];c[(V&p)+4>>2]=O;c[(V&p)+8>>2]=I;c[(V&p)+12>>2]=J;c[(V&p)+16>>2]=r;c[(V&p)+20>>2]=g;Br(f,36296,V);mg(X,g);if(!U)break;vs(f,P,r);Dr(f,v);c[(V&p)>>2]=c[(P&p)>>2];Ir(u,v,uh(X,36344,V)|0);wh(u,144,0,0,0)|0;W=126}else{if(Ik((c[(K&p)>>2]|0)+24|0,c[(P&p)>>2]|0,P)|0){a[(S&n)>>0]=1;h=0;u=0;W=134;break c}J=X+24|0;c[(J&p)>>2]=c[(J&p)>>2]|2;if(!U)break;c[(P&p)+40>>2]=c[(X&p)+140>>2];W=126}while(0);if((W|0)==126?!((a[(h&n)>>0]|0)!=0|(k|0)==0):0){h=0;u=0;W=134;break}h=c[(x&p)+8>>2]|0;do if((m|0)==5){if(!h){h=0;break}if((a[(h&n)+50>>0]|0)==5)break;do{u=h+20|0;h=c[(u&p)>>2]|0;if(!h){h=0;break}}while((a[(h&n)+50>>0]|0)!=5);c[(P&p)+20>>2]=h;c[(u&p)>>2]=P;r=0;u=P;h=w;break a}while(0);c[(P&p)+20>>2]=h;c[(x&p)+8>>2]=P;r=0;u=P;h=w;break a}else{h=r;u=0;W=134}while(0);if((W|0)==134)if(!P){r=h;h=w;break}Jk(X,P);r=h;h=w}else{u=0;h=w}}else{u=0;h=0}while(0);Gk(X,r);Nk(X,l);Do(X,k);mg(X,h);i=Y;return u|0}function ar(e,f){e=e|0;f=f|0;var g=0,h=0;g=c[(e&p)+484>>2]|0;h=c[(e&p)>>2]|0;if(((g|0)!=0?(a[(e&n)+451>>0]|0)==0:0)?(b[((c[((c[((c[(h&p)+16>>2]|0)+(d[(h&n)+144>>0]<<4)&p)+4>>2]|0)&p)+4>>2]|0)&o)+22>>1]&1)==0:0){h=g+24|0;g=lr(e,c[(h&p)>>2]|0,f)|0;c[(h&p)>>2]=g;if(c[(e&p)+324>>2]|0)mr(e,g,e+320|0,1)}else Gk(h,f);return}function br(d,e,f,g,h){d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0;F=i;i=i+16|0;if((i|0)>=(j|0))fa();C=F;E=c[(d&p)>>2]|0;D=c[(d&p)+484>>2]|0;a:do if((D|0)!=0?(a[(d&n)+451>>0]|0)==0:0){z=(e|0)==0;do if(z){B=b[(D&o)+38>>1]|0;l=(B<<16>>16)+-1|0;if(B<<16>>16<1){k=0;break a}if(g)if((c[(g&p)>>2]|0)==1){l=1;k=13}else{c[(C&p)>>2]=c[((c[(D&p)+4>>2]|0)+(l*24|0)&p)>>2];c[(C&p)+4>>2]=f;th(d,35712,C);k=0;break a}else{l=1;k=12}}else{if(!g){l=c[(e&p)>>2]|0;k=12;break}l=c[(g&p)>>2]|0;if((l|0)==(c[(e&p)>>2]|0))k=13;else{th(d,35776,C);k=0;break a}}while(0);if((k|0)==12){m=f+4|0;s=m;w=0;m=(l<<3)+37+(c[(m&p)>>2]|0)|0;B=l}else if((k|0)==13){s=f+4|0;m=(l<<3)+37+(c[(s&p)>>2]|0)|0;t=c[(g&p)>>2]|0;if((t|0)>0){u=c[(g&p)+4>>2]|0;v=0;do{r=c[(u+(v*20|0)&p)+4>>2]|0;if(!r)k=1;else{q=r;while(1)if(!(a[(q&n)>>0]|0))break;else q=q+1|0;k=(q-r&1073741823)+1|0}m=k+m|0;v=v+1|0}while((v|0)<(t|0));w=1;B=l}else{w=1;B=l}}k=mh(E,m,((m|0)<0)<<31>>31)|0;if(k){fw(k|0,0,m|0)|0;c[(k&p)>>2]=D;A=D+16|0;c[(k&p)+4>>2]=c[(A&p)>>2];x=k+36|0;q=x+(B<<3)|0;y=k+8|0;c[(y&p)>>2]=q;kw(q|0,c[(f&p)>>2]|0,c[(s&p)>>2]|0)|0;a[(q+(c[(s&p)>>2]|0)&n)>>0]=0;lo(q);q=q+((c[(s&p)>>2]|0)+1)|0;c[(k&p)+20>>2]=B;b:do if(!z){if((B|0)>0){m=D+4|0;f=e+4|0;r=b[(D&o)+38>>1]|0;l=0;while(1){c:do if(r<<16>>16>0){v=c[(m&p)>>2]|0;u=c[((c[(f&p)>>2]|0)+(l*20|0)&p)+4>>2]|0;t=0;while(1){s=t+1|0;if(!(dd(c[(v+(t*24|0)&p)>>2]|0,u)|0)){s=t;break}if((s|0)<(r<<16>>16|0))t=s;else break c}c[(x+(l<<3)&p)>>2]=s}else s=0;while(0);if((s|0)>=(r<<16>>16|0))break;l=l+1|0;if((l|0)>=(B|0))break b}c[(C&p)>>2]=c[((c[(f&p)>>2]|0)+(l*20|0)&p)+4>>2];th(d,35872,C);break a}}else c[(x&p)>>2]=(b[(D&o)+38>>1]|0)+-1;while(0);if(w&(B|0)>0){r=g+4|0;s=0;while(1){m=c[((c[(r&p)>>2]|0)+(s*20|0)&p)+4>>2]|0;if(!m)l=0;else{l=m;while(1)if(!(a[(l&n)>>0]|0))break;else l=l+1|0;l=l-m&1073741823}c[(x+(s<<3)&p)+4>>2]=q;kw(q|0,m|0,l|0)|0;a[(q+l&n)>>0]=0;s=s+1|0;if((s|0)==(B|0))break;else q=q+(l+1)|0}}a[(k&n)+24>>0]=0;a[(k&n)+25>>0]=h;a[(k&n)+26>>0]=h>>>8;l=Ik((c[(D&p)+68>>2]|0)+56|0,c[(y&p)>>2]|0,k)|0;if((l|0)==(k|0)){a[(E&n)+65>>0]=1;break}if(l){c[(k&p)+12>>2]=l;c[(l&p)+16>>2]=k}c[(A&p)>>2]=k;k=0}else k=0}else k=0;while(0);mg(E,k);Nk(E,e);Nk(E,g);i=F;return}function cr(b,d){b=b|0;d=d|0;var e=0,f=0,g=0;e=c[(b&p)>>2]|0;f=a[(e&n)+62>>0]|0;g=a[(e&n)+145>>0]|0;e=Yn(e,f,d,g&255)|0;do if(!(g<<24>>24)){if((e|0)!=0?(c[(e&p)+12>>2]|0)!=0:0)break;e=ws(b,f,e,d)|0}while(0);return e|0}function dr(e,f,g,h){e=e|0;f=f|0;g=g|0;h=h|0;var k=0,l=0,m=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;i=i+16|0;if((i|0)>=(j|0))fa();z=B;v=B+12|0;A=c[(e&p)>>2]|0;do if(!(a[(A&n)+65>>0]|0)){h=(h|0)!=0;if(h){u=A+68|0;a[(u&n)>>0]=(a[(u&n)>>0]|0)+1<<24>>24;y=Ur(e,g,f+8|0)|0;a[(u&n)>>0]=(a[(u&n)>>0]|0)+-1<<24>>24}else y=Ur(e,g,f+8|0)|0;if(!y){if(!h)break;zr(e,c[(f&p)+12>>2]|0);break}s=y+68|0;l=c[(s&p)>>2]|0;a:do if(l){h=c[(A&p)+20>>2]|0;if((h|0)>0){k=c[(A&p)+16>>2]|0;q=0;while(1){m=q+1|0;if((c[(k+(q<<4)&p)+12>>2]|0)==(l|0)){m=q;break a}if((m|0)<(h|0))q=m;else break}}else m=0}else m=-1e6;while(0);w=y+44|0;if((a[(w&n)>>0]&16)!=0?(hr(e,y)|0)!=0:0)break;q=(m|0)==1;x=q?13184:13208;h=c[((c[(A&p)+16>>2]|0)+(m<<4)&p)>>2]|0;if(!(Sq(e,9,x,0,h)|0)){k=(g|0)!=0;do if(k){l=q?15:17;q=0}else{if(!(a[(w&n)>>0]&16)){l=q?13:11;q=0;break}q=y+60|0;while(1){q=c[(q&p)>>2]|0;if((c[(q&p)>>2]|0)==(A|0))break;else q=q+24|0}l=30;q=c[((c[(q&p)+4>>2]|0)&p)+4>>2]|0}while(0);if((Sq(e,l,c[(y&p)>>2]|0,q,h)|0)==0?(Sq(e,9,c[(y&p)>>2]|0,0,h)|0)==0:0){q=c[(y&p)>>2]|0;if((Fc(q,25568,7)|0)==0?(Fc(q,35488,11)|0)!=0:0){c[(z&p)>>2]=q;th(e,35504,z);break}h=y+12|0;l=(c[(h&p)>>2]|0)==0;if(k){if(l){c[(z&p)>>2]=q;th(e,35536,z);break}}else if(!l){c[(z&p)>>2]=q;th(e,35576,z);break}if(Oq(e)|0){t=e+408|0;l=c[(t&p)>>2]|0;l=(l|0)==0?e:l;Ar(e,m);u=1<>2]=c[(k&p)>>2]|u;l=l+20|0;a[(l&n)>>0]=d[(l&n)>>0]|1;Cr(e,m,28544,c[(y&p)>>2]|0);l=c[(e&p)>>2]|0;k=l+24|0;b:do if(((c[(k&p)>>2]&524288|0)!=0?(a[(w&n)>>0]&16)==0:0)?(c[(h&p)>>2]|0)==0:0){r=Oq(e)|0;v=bn((c[(s&p)>>2]|0)+56|0,c[(y&p)>>2]|0,v)|0;if((v|0)!=0?(c[(v&p)+8>>2]|0)!=0:0)q=0;else{q=c[(y&p)+16>>2]|0;if(!q)break;while(1){if(a[(q&n)+24>>0]|0)break;if(c[(k&p)>>2]&16777216)break;q=c[(q&p)+4>>2]|0;if(!q)break b}q=xs(r)|0;wh(r,135,1,q,0)|0}v=e+438|0;a[(v&n)>>0]=1;rr(e,ys(l,f,0)|0,0);a[(v&n)>>0]=0;if(!(c[(k&p)>>2]&16777216)){wh(r,135,0,(c[(r&p)+32>>2]|0)+2|0,0)|0;zs(e,787,2,0,-2,4)}if(q){l=c[(r&p)+24>>2]|0;h=~q;do if((q|0)<0){q=c[(l&p)+112>>2]|0;if(!q)break;c[(q+(h<<2)&p)>>2]=c[(r&p)+32>>2]}while(0);c[(l&p)+88>>2]=(c[(r&p)+32>>2]|0)+-1}}while(0);r=c[(e&p)>>2]|0;s=r+16|0;l=c[(s&p)>>2]|0;h=Oq(e)|0;v=c[(t&p)>>2]|0;v=(v|0)==0?e:v;Ar(e,m);t=v+328|0;c[(t&p)>>2]=c[(t&p)>>2]|u;v=v+20|0;a[(v&n)>>0]=d[(v&n)>>0]|1;if(a[(w&n)>>0]&16)wh(h,146,0,0,0)|0;q=As(e,y)|0;if(q)do{Qr(e,q);q=c[(q&p)+32>>2]|0}while((q|0)!=0);l=l+(m<<4)|0;if(a[(w&n)>>0]&8){v=c[(y&p)>>2]|0;c[(z&p)>>2]=c[(l&p)>>2];c[(z&p)+4>>2]=v;Br(e,35608,z)}v=c[(y&p)>>2]|0;c[(z&p)>>2]=c[(l&p)>>2];c[(z&p)+4>>2]=x;c[(z&p)+8>>2]=v;Br(e,35656,z);if((g|0)==0?(a[(w&n)>>0]&16)==0:0)Bs(e,y);if(a[(w&n)>>0]&16){v=c[(y&p)>>2]|0;xh(h,wh(h,148,m,0,0)|0,v,0)}k=c[(y&p)>>2]|0;xh(h,wh(h,124,m,0,0)|0,k,0);Dr(e,m);h=c[((c[(s&p)>>2]|0)+(m<<4)&p)+12>>2]|0;k=b[(h&o)+78>>1]|0;if(k&2){l=c[(h&p)+16>>2]|0;if(l){k=l;do{h=c[(k&p)+8>>2]|0;if(c[(h&p)+12>>2]|0){Lk(r,h);c[(h&p)+4>>2]=0;b[(h&o)+38>>1]=0}k=c[(k&p)>>2]|0}while((k|0)!=0);k=c[((c[(s&p)>>2]|0)+(m<<4)&p)+12>>2]|0;h=k;k=b[(k&o)+78>>1]|0}b[(h&o)+78>>1]=k&65533}}}}}while(0);Do(A,f);i=B;return}function er(b,e,f,g){b=b|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0;m=i;i=i+16|0;if((i|0)>=(j|0))fa();k=m;h=c[(b&p)>>2]|0;do if((f|0)!=0?(c[(f&p)+4>>2]|0)!=0:0){if(a[(h&n)+145>>0]|0){th(b,28488,k);f=b+64|0;c[(f&p)>>2]=(c[(f&p)>>2]|0)+1;f=-1;break}c[(g&p)>>2]=f;g=Wq(h,e)|0;f=Vh(h,g)|0;mg(h,g);if((f|0)<0){c[(k&p)>>2]=e;th(b,28512,k);f=b+64|0;c[(f&p)>>2]=(c[(f&p)>>2]|0)+1;f=-1}}else l=7;while(0);if((l|0)==7){f=d[(h&n)+144>>0]|0;c[(g&p)>>2]=e}i=m;return f|0}function fr(a,b){a=a|0;b=b|0;a:do if(!b)b=0;else while(1){if(Hr(a,c[(b&p)>>2]|0)|0){b=1;break a}if(Kr(a,c[(b&p)+32>>2]|0)|0){b=1;break a}if(Gr(a,c[(b&p)+36>>2]|0)|0){b=1;break a}if(Hr(a,c[(b&p)+40>>2]|0)|0){b=1;break a}if(Gr(a,c[(b&p)+44>>2]|0)|0){b=1;break a}if(Hr(a,c[(b&p)+48>>2]|0)|0){b=1;break a}if(Gr(a,c[(b&p)+60>>2]|0)|0){b=1;break a}if(Gr(a,c[(b&p)+64>>2]|0)|0){b=1;break a}b=c[(b&p)+52>>2]|0;if(!b){b=0;break}}while(0);return b|0}function gr(d,f,g){d=d|0;f=f|0;g=g|0;var h=0,i=0,j=0,k=0,l=0;if((f|0)!=0?(h=mh(d,72,0)|0,(h|0)!=0):0){c[(h&p)>>2]=Pr(d,c[(f&p)>>2]|0,g)|0;c[(h&p)+32>>2]=ys(d,c[(f&p)+32>>2]|0,g)|0;c[(h&p)+36>>2]=Mr(d,c[(f&p)+36>>2]|0,g,0)|0;c[(h&p)+40>>2]=Pr(d,c[(f&p)+40>>2]|0,g)|0;c[(h&p)+44>>2]=Mr(d,c[(f&p)+44>>2]|0,g,0)|0;c[(h&p)+48>>2]=Pr(d,c[(f&p)+48>>2]|0,g)|0;a[(h&n)+4>>0]=a[(f&n)+4>>0]|0;j=gr(d,c[(f&p)+52>>2]|0,g)|0;c[(h&p)+52>>2]=j;if(j)c[(j&p)+56>>2]=h;c[(h&p)+56>>2]=0;c[(h&p)+60>>2]=Mr(d,c[(f&p)+60>>2]|0,g,0)|0;c[(h&p)+64>>2]=Mr(d,c[(f&p)+64>>2]|0,g,0)|0;c[(h&p)+8>>2]=0;c[(h&p)+12>>2]=0;b[(h&o)+6>>1]=(e[(f&o)+6>>1]|0)&65527;c[(h&p)+16>>2]=-1;c[(h&p)+20>>2]=-1;l=f+24|0;j=c[(l&p)+4>>2]|0;g=h+24|0;c[(g&p)>>2]=c[(l&p)>>2];c[(g&p)+4>>2]=j;g=c[(f&p)+68>>2]|0;if((g|0)!=0?(k=c[(g&p)>>2]<<4|8,i=mh(d,k,((k|0)<0)<<31>>31)|0,(i|0)!=0):0){fw(i|0,0,k|0)|0;c[(i&p)>>2]=c[(g&p)>>2];if((c[(g&p)>>2]|0)>0){f=i+8|0;j=0;do{c[(f+(j<<4)&p)+8>>2]=gr(d,c[(g+(j<<4)&p)+16>>2]|0,0)|0;c[(f+(j<<4)&p)+4>>2]=Pr(d,c[(g+(j<<4)&p)+12>>2]|0,0)|0;c[(f+(j<<4)&p)>>2]=kh(d,c[(g+(j<<4)&p)+8>>2]|0)|0;j=j+1|0}while((j|0)<(c[(g&p)>>2]|0))}}else i=0;c[(h&p)+68>>2]=i}else h=0;return h|0}function hr(d,f){d=d|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0;w=i;i=i+16|0;if((i|0)>=(j|0))fa();s=w;k=w+8|0;m=w+4|0;v=c[(d&p)>>2]|0;q=f+44|0;h=a[(q&n)>>0]|0;a:do if(!(h&16))t=11;else{g=c[(f&p)+60>>2]|0;if(g)do{if((c[(g&p)>>2]|0)==(v|0)){t=11;break a}g=c[(g&p)+24>>2]|0}while((g|0)!=0);g=f+56|0;h=bn(v+308|0,c[(c[(g&p)>>2]&p)>>2]|0,k)|0;if((h|0)!=0?(l=c[(h&p)+8>>2]|0,(l|0)!=0):0){c[(m&p)>>2]=0;l=(zn(v,f,l,c[((c[(l&p)>>2]|0)&p)+8>>2]|0,m)|0)==0;h=c[(m&p)>>2]|0;if(l){mg(v,h);h=a[(q&n)>>0]|0;t=11;break}else{c[(s&p)>>2]=h;th(d,10344,s);mg(v,h);g=1;break}}c[(s&p)>>2]=c[(c[(g&p)>>2]&p)>>2];th(d,28320,s);g=1}while(0);do if((t|0)==11)if((h&16)==0?(u=f+38|0,r=b[(u&o)>>1]|0,r<<16>>16<=0):0){if(r<<16>>16<0){c[(s&p)>>2]=c[(f&p)>>2];th(d,26752,s);g=1;break}h=gr(v,c[(f&p)+12>>2]|0,0)|0;if(!h)g=1;else{r=v+250|0;q=a[(r&n)>>0]|0;t=d+68|0;s=c[(t&p)>>2]|0;Cs(d,c[(h&p)+32>>2]|0);b[(u&o)>>1]=-1;a[(r&n)>>0]=0;m=v+284|0;l=c[(m&p)>>2]|0;c[(m&p)>>2]=0;g=ns(d,h)|0;c[(m&p)>>2]=l;a[(r&n)>>0]=q;c[(t&p)>>2]=s;if(!g){b[(u&o)>>1]=0;g=1}else{d=g+38|0;b[(u&o)>>1]=b[(d&o)>>1]|0;t=g+4|0;c[(f&p)+4>>2]=c[(t&p)>>2];b[(d&o)>>1]=0;c[(t&p)>>2]=0;kg(v,g);g=(c[(f&p)+68>>2]|0)+78|0;b[(g&o)>>1]=e[(g&o)>>1]|0|2;g=0}Mk(v,h,1)}}else g=0;while(0);i=w;return g|0} function ir(f,g,h){f=f|0;g=g|0;h=h|0;var k=0,l=0,m=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,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,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;Ca=i;i=i+240|0;if((i|0)>=(j|0))fa();ra=Ca;sa=Ca+220|0;ka=Ca+216|0;ia=Ca+196|0;ja=Ca+176|0;ua=Ca+164|0;va=Ca+136|0;ya=Ca+88|0;ga=Ca+64|0;ma=Ca+32|0;Aa=f+464|0;Ba=c[(Aa&p)>>2]|0;oa=f+468|0;xa=c[(oa&p)>>2]|0;c[(oa&p)>>2]=xa+1;c[(Aa&p)>>2]=xa;xa=c[(f&p)>>2]|0;a:do if((((g|0)!=0?(pa=xa+65|0,(a[(pa&n)>>0]|0)==0):0)?(k=f+64|0,(c[(k&p)>>2]|0)==0):0)?(Sq(f,21,0,0,0)|0)==0:0){D=ya+0|0;C=D+48|0;do{c[(D&p)>>2]=0;D=D+4|0}while((D|0)<(C|0));la=g+48|0;if((d[(h&n)>>0]|0)<9){Nk(xa,c[(la&p)>>2]|0);c[(la&p)>>2]=0;ea=g+6|0;b[(ea&o)>>1]=e[(ea&o)>>1]&65534}Ds(f,g,0);c[(va&p)>>2]=0;c[(va&p)+4>>2]=0;c[(va&p)+8>>2]=0;c[(va&p)+12>>2]=0;c[(va&p)+16>>2]=0;c[(va&p)+20>>2]=0;c[(va&p)+24>>2]=0;c[(va&p)>>2]=c[(la&p)>>2];na=g+32|0;x=c[(na&p)>>2]|0;w=c[(g&p)>>2]|0;b:do if(((c[(k&p)>>2]|0)==0?(a[(pa&n)>>0]|0)==0:0)?(ta=g+6|0,z=(e[(ta&o)>>1]|0)>>>2&1,wa=Oq(f)|0,(wa|0)!=0):0){if((c[(w&p)>>2]|0)>1?(a[(h&n)>>0]&-2)<<24>>24==10:0){th(f,35368,ra);za=444;break}qa=g+52|0;w=c[(qa&p)>>2]|0;c:do if(!w){r=f+460|0;q=f+492|0;m=g+36|0;l=f+408|0;k=g+60|0;T=g+64|0;U=g+4|0;V=xa+60|0;W=wa+32|0;X=f+72|0;Y=ga+4|0;Z=ga+1|0;_=ga+8|0;$=ga+12|0;aa=wa+4|0;ba=wa+24|0;ca=f+19|0;da=f+56|0;ea=f+80|0;S=0;y=z;while(1){if((S|0)>=(c[(x&p)>>2]|0)){H=m;Q=0;z=y;U=x;break c}N=c[(x+(S*72|0)&p)+28>>2]|0;do if(!N)z=S;else{P=x+(S*72|0)+32|0;A=c[(P&p)>>2]|0;if(A){if(a[(x+(S*72|0)&n)+45>>0]&4){z=S;break}wh(wa,17,c[(x+(S*72|0)&p)+36>>2]|0,A,0)|0;z=S;break}c[(ra&p)>>2]=0;Es(g,ra);c[(r&p)>>2]=(c[(r&p)>>2]|0)+(c[(ra&p)>>2]|0);v=b[(N&o)+6>>1]&4;Q=c[(q&p)>>2]|0;u=c[(f&p)>>2]|0;d:do if(!(b[(u&o)+60>>1]&1)){L=c[(na&p)>>2]|0;t=c[(L+(S*72|0)&p)+48>>2]|0;K=L+(S*72|0)+28|0;O=c[(K&p)>>2]|0;s=v<<16>>16!=0;do if(s){if(y){za=120;break d}if((c[(L&p)>>2]|0)>1){za=120;break d}R=c[(m&p)>>2]|0;if((R|0)!=0?(c[(R&p)+4>>2]&2097152|0)!=0:0){za=120;break d}H=c[(g&p)>>2]|0;do if(H){E=c[(H&p)>>2]|0;if((E|0)<=0)break;I=c[(H&p)+4>>2]|0;H=0;F=0;do{F=c[((c[(I+(H*20|0)&p)>>2]|0)&p)+4>>2]|F;H=H+1|0}while((H|0)!=(E|0));if(F&2097152){za=120;break d}}while(0);H=c[(la&p)>>2]|0;if(!H)break;E=c[(H&p)>>2]|0;if((E|0)<=0)break;I=c[(H&p)+4>>2]|0;H=0;F=0;do{F=c[((c[(I+(H*20|0)&p)>>2]|0)&p)+4>>2]|F;H=H+1|0}while((H|0)!=(E|0));if(F&2097152){za=120;break d}}while(0);I=c[(O&p)+32>>2]|0;H=(c[(O&p)+60>>2]|0)==0;if(!H?(c[(k&p)>>2]|0)!=0:0){za=120;break}if(c[(O&p)+64>>2]|0){za=120;break}E=b[(ta&o)>>1]|0;F=(E&64)==0;if(!(F|H)){za=120;break}if(!(c[(I&p)>>2]|0)){za=120;break}D=b[(O&o)+6>>1]|0;if(D&1){za=120;break}I=H|F^1;if(!I?(c[(L&p)>>2]|0)>1|(y|0)!=0:0){za=120;break}H=E&1;if(H<<16>>16!=0&s){za=120;break}B=c[(la&p)>>2]|0;C=(B|0)==0;if(!C?(c[(O&p)+48>>2]|0)!=0:0){za=120;break}J=(y|0)!=0;if(J?(c[(O&p)+48>>2]|0)!=0:0){za=120;break}if(I){if(D&6144){za=120;break}}else if(!((c[(m&p)>>2]|0)==0&H<<16>>16==0&(D&6144)==0)){za=120;break}if((E&2048)!=0?(c[(O&p)+52>>2]|0)!=0:0){za=120;break}R=L+(S*72|0)+44|0;if(a[(R&n)>>0]&32){za=120;break}E=O+52|0;I=c[(E&p)>>2]|0;do if(I){if(!(H<<16>>16==0&(((c[(O&p)+48>>2]|0)!=0|J)^1))){za=120;break d}if((c[(L&p)>>2]|0)!=1){za=120;break d}e:do if(O){if(!(D&5))F=O;else{za=120;break d}while(1){H=(I|0)==0;if(!H?(a[(F&n)+4>>0]|0)!=116:0){za=120;break d}if((c[(c[(F&p)+32>>2]&p)>>2]|0)<1){za=120;break d}if((c[(c[(O&p)>>2]&p)>>2]|0)!=(c[(c[(F&p)>>2]&p)>>2]|0)){za=120;break d}if(H)break e;if(b[(I&o)+6>>1]&5){za=120;break d}F=I;I=c[(I&p)+52>>2]|0}}while(0);if(C)break;F=c[(B&p)>>2]|0;if((F|0)<=0)break;I=c[(B&p)+4>>2]|0;H=0;do{if(!(b[(I+(H*20|0)&o)+16>>1]|0)){za=120;break d}H=H+1|0}while((H|0)<(F|0))}while(0);A=L+(S*72|0)+16|0;c[(q&p)>>2]=c[(A&p)>>2];Sq(f,21,0,0,0)|0;c[(q&p)>>2]=Q;I=c[(E&p)>>2]|0;f:do if(!I)za=81;else{B=u+65|0;E=c[(la&p)>>2]|0;D=c[(k&p)>>2]|0;C=c[(T&p)>>2]|0;F=c[(qa&p)>>2]|0;while(1){c[(la&p)>>2]=0;c[(na&p)>>2]=0;c[(qa&p)>>2]=0;c[(k&p)>>2]=0;c[(T&p)>>2]=0;H=gr(u,g,0)|0;c[(T&p)>>2]=C;c[(k&p)>>2]=D;c[(la&p)>>2]=E;c[(na&p)>>2]=L;a[(U&n)>>0]=116;if(!H)H=F;else{c[(H&p)+52>>2]=F;if(F)c[(F&p)+56>>2]=H;c[(H&p)+56>>2]=g}c[(qa&p)>>2]=H;if(a[(B&n)>>0]|0)break f;I=c[(I&p)+52>>2]|0;if(!I){za=81;break}else F=H}}while(0);if((za|0)==81){za=0;M=c[(K&p)>>2]|0;E=L+(S*72|0)+12|0;mg(u,c[(E&p)>>2]|0);mg(u,c[(A&p)>>2]|0);F=L+(S*72|0)+20|0;mg(u,c[(F&p)>>2]|0);c[(E&p)>>2]=0;c[(A&p)>>2]=0;c[(F&p)>>2]=0;c[(K&p)>>2]=0;F=L+(S*72|0)+24|0;E=c[(F&p)>>2]|0;if(E){D=E+40|0;C=b[(D&o)>>1]|0;if(C<<16>>16==1){Q=c[(l&p)>>2]|0;Q=((Q|0)==0?f:Q)+524|0;c[(E&p)+72>>2]=c[(Q&p)>>2];c[(Q&p)>>2]=E}else b[(D&o)>>1]=C+-1<<16>>16;c[(F&p)>>2]=0}Q=S+1|0;P=u+65|0;O=g;N=M;while(1){B=c[(N&p)+32>>2]|0;A=c[(B&p)>>2]|0;H=O+32|0;I=c[(H&p)>>2]|0;if(!I){I=pr(u,0,0,0)|0;c[(H&p)>>2]=I;if(!I)break;else z=0}else z=a[(R&n)>>0]|0;if((A|0)>1){I=Fs(u,I,A+-1|0,Q)|0;c[(H&p)>>2]=I;if(a[(P&n)>>0]|0)break}if((A|0)>0){F=0;do{D=F+S|0;Hk(u,c[(I+(D*72|0)&p)+56>>2]|0);H=B+(F*72|0)+8|0;D=I+(D*72|0)+8|0;E=H+0|0;C=D+72|0;do{c[(D&p)>>2]=c[(E&p)>>2];D=D+4|0;E=E+4|0}while((D|0)<(C|0));D=H+0|0;C=D+72|0;do{c[(D&p)>>2]=0;D=D+4|0}while((D|0)<(C|0));F=F+1|0}while((F|0)!=(A|0))}a[(I+(S*72|0)&n)+44>>0]=z;H=c[(O&p)>>2]|0;I=c[(H&p)>>2]|0;if((I|0)>0){D=H+4|0;F=c[(D&p)>>2]|0;E=0;do{if(!(c[(F+(E*20|0)&p)+4>>2]|0)){I=kh(u,c[(F+(E*20|0)&p)+8>>2]|0)|0;lo(I);F=c[(D&p)>>2]|0;c[(F+(E*20|0)&p)+4>>2]=I;I=c[(H&p)>>2]|0}E=E+1|0}while((E|0)<(I|0));H=c[(O&p)>>2]|0}Gs(u,H,t,c[(N&p)>>2]|0);if(J){Gs(u,c[(O&p)+40>>2]|0,t,c[(N&p)>>2]|0);L=O+44|0;c[(L&p)>>2]=Hs(u,c[(L&p)>>2]|0,t,c[(N&p)>>2]|0)|0}I=N+48|0;H=c[(I&p)>>2]|0;do if(!H){H=c[(O&p)+48>>2]|0;if(!H)break;Gs(u,H,t,c[(N&p)>>2]|0)}else{F=c[(H&p)>>2]|0;if((F|0)>0){E=c[(H&p)+4>>2]|0;D=0;do{b[(E+(D*20|0)&o)+16>>1]=0;D=D+1|0}while((D|0)!=(F|0))}c[(O&p)+48>>2]=H;c[(I&p)>>2]=0}while(0);H=c[(N&p)+36>>2]|0;if(!H)F=0;else F=Mr(u,H,0,0)|0;I=O+36|0;H=c[(I&p)>>2]|0;if(s){L=O+44|0;c[(L&p)>>2]=H;c[(I&p)>>2]=F;K=Hs(u,H,t,c[(N&p)>>2]|0)|0;c[(L&p)>>2]=K;c[(L&p)>>2]=ss(u,K,Mr(u,c[(N&p)+44>>2]|0,0,0)|0)|0;c[(O&p)+40>>2]=Pr(u,c[(N&p)+40>>2]|0,0)|0}else{L=Hs(u,H,t,c[(N&p)>>2]|0)|0;c[(I&p)>>2]=L;c[(I&p)>>2]=ss(u,L,F)|0}H=O+6|0;b[(H&o)>>1]=e[(H&o)>>1]|e[(N&o)+6>>1]&1;H=N+60|0;F=c[(H&p)>>2]|0;if(F){c[(O&p)+60>>2]=F;c[(H&p)>>2]=0}O=c[(O&p)+52>>2]|0;if(!O)break;else N=c[(N&p)+52>>2]|0}Mk(u,M,1)}if(!(v<<16>>16)){z=-1;break}b[(ta&o)>>1]=e[(ta&o)>>1]|4;z=-1;y=1}else za=120;while(0);g:do if((za|0)==120){za=0;do if((c[(x&p)>>2]|0)==1){if(b[(V&o)>>1]&256)break;D=c[(W&p)>>2]|0;R=D+1|0;Q=(c[(X&p)>>2]|0)+1|0;c[(X&p)>>2]=Q;z=x+(S*72|0)+36|0;c[(z&p)>>2]=Q;wh(wa,20,Q,0,R)|0;c[(P&p)>>2]=R;R=c[(z&p)>>2]|0;a[(ga&n)>>0]=13;c[(Y&p)>>2]=R;a[(Z&n)>>0]=0;c[(_&p)>>2]=0;c[($&p)>>2]=0;a[(x+(S*72|0)&n)+46>>0]=c[(oa&p)>>2];ir(f,N,ga)|0;R=N+24|0;R=fs(c[(R&p)>>2]|0,c[(R&p)+4>>2]|0)|0;b[((c[(x+(S*72|0)&p)+24>>2]|0)&o)+28>>1]=R;R=x+(S*72|0)+45|0;a[(R&n)>>0]=a[(R&n)>>0]|4;c[(x+(S*72|0)&p)+40>>2]=c[(_&p)>>2];wh(wa,21,c[(z&p)>>2]|0,0,0)|0;z=c[(W&p)>>2]|0;if(z>>>0>D>>>0)c[((c[(aa&p)>>2]|0)+(D*20|0)&p)+8>>2]=z;c[((c[(ba&p)>>2]|0)&p)+88>>2]=z+-1;a[(ca&n)>>0]=0;c[(da&p)>>2]=0;z=S;break g}while(0);C=(c[(X&p)>>2]|0)+1|0;c[(X&p)>>2]=C;E=x+(S*72|0)+36|0;c[(E&p)>>2]=C;C=wh(wa,25,0,C,0)|0;c[(P&p)>>2]=C+1;if(!(a[(x+(S*72|0)&n)+45>>0]&2)){R=Oq(f)|0;D=c[(ea&p)>>2]|0;c[(ea&p)>>2]=D+1;D=wh(R,44,D,0,0)|0}else D=0;R=c[(x+(S*72|0)&p)+48>>2]|0;a[(ga&n)>>0]=12;c[(Y&p)>>2]=R;a[(Z&n)>>0]=0;c[(_&p)>>2]=0;c[($&p)>>2]=0;a[(x+(S*72|0)&n)+46>>0]=c[(oa&p)>>2];ir(f,N,ga)|0;R=N+24|0;R=fs(c[(R&p)>>2]|0,c[(R&p)+4>>2]|0)|0;b[((c[(x+(S*72|0)&p)+24>>2]|0)&o)+28>>1]=R;if(D){A=c[(W&p)>>2]|0;if(A>>>0>D>>>0)c[((c[(aa&p)>>2]|0)+(D*20|0)&p)+8>>2]=A;c[((c[(ba&p)>>2]|0)&p)+88>>2]=A+-1}z=wh(wa,18,c[(E&p)>>2]|0,0,0)|0;if((c[(W&p)>>2]|0)>>>0>C>>>0)c[((c[(aa&p)>>2]|0)+(C*20|0)&p)+4>>2]=z;a[(ca&n)>>0]=0;c[(da&p)>>2]=0;z=S}while(0);if(a[(pa&n)>>0]|0){za=444;break b}c[(ra&p)>>2]=0;Es(g,ra);c[(r&p)>>2]=(c[(r&p)>>2]|0)-(c[(ra&p)>>2]|0);x=c[(na&p)>>2]|0;if((d[(h&n)>>0]|0)<9)break;c[(va&p)>>2]=c[(la&p)>>2]}while(0);w=c[(qa&p)>>2]|0;if(!w)S=z+1|0;else{H=m;Q=w;z=y;U=x;break}}}else{H=g+36|0;Q=w;U=x}while(0);T=c[(g&p)>>2]|0;B=c[(H&p)>>2]|0;l=g+40|0;w=c[(l&p)>>2]|0;I=g+44|0;ga=c[(I&p)>>2]|0;m=b[(ta&o)>>1]|0;a[(ua&n)>>0]=m&1;if(Q){O=c[(f&p)>>2]|0;c[(sa&p)>>2]=c[(h&p)>>2];c[(sa&p)+4>>2]=c[(h&p)+4>>2];c[(sa&p)+8>>2]=c[(h&p)+8>>2];c[(sa&p)+12>>2]=c[(h&p)+12>>2];c[(sa&p)+16>>2]=c[(h&p)+16>>2];h:do if(!(c[(Q&p)+48>>2]|0)){x=Q+60|0;if(c[(x&p)>>2]|0){k=d[(g&n)+4>>0]|0;if((k|0)==118)k=35336;else if((k|0)==117)k=35352;else if((k|0)==116)k=35320;else k=35360;c[(ra&p)>>2]=k;th(f,35072,ra);m=0;k=1;za=227;break}R=Oq(f)|0;t=a[(sa&n)>>0]|0;if(t<<24>>24==12){wh(R,57,c[(sa&p)+4>>2]|0,c[(c[(g&p)>>2]&p)>>2]|0,0)|0;t=c[(R&p)+4>>2]|0;if(t)a[(t+(((c[(R&p)+32>>2]|0)+-1|0)*20|0)&n)+3>>0]=8;a[(sa&n)>>0]=14;t=14}s=e[(ta&o)>>1]|0;if(s&256){m=0;k=Is(f,g,sa)|0;za=227;break}if((c[(c[(g&p)>>2]&p)>>2]|0)!=(c[(c[(Q&p)>>2]&p)>>2]|0)){Js(f,g);m=0;k=1;za=227;break}do if(!(s&2048)){if(c[(la&p)>>2]|0){k=Ls(f,g,h)|0;break h}P=g+4|0;s=d[(P&n)>>0]|0;if((s|0)==116){v=g+8|0;t=Q+8|0;c[(t&p)>>2]=c[(v&p)>>2];u=g+12|0;s=Q+12|0;c[(s&p)>>2]=c[(u&p)>>2];da=g+60|0;c[(x&p)>>2]=c[(da&p)>>2];ea=g+64|0;c[(Q&p)+64>>2]=c[(ea&p)>>2];q=c[(oa&p)>>2]|0;k=ir(f,Q,sa)|0;c[(da&p)>>2]=0;c[(ea&p)>>2]=0;if(k){m=0;za=227;break h}c[(qa&p)>>2]=0;t=c[(t&p)>>2]|0;c[(v&p)>>2]=t;c[(u&p)>>2]=c[(s&p)>>2];if(!t)w=0;else w=wh(R,46,t,0,0)|0;l=c[(oa&p)>>2]|0;k=ir(f,g,sa)|0;m=c[(qa&p)>>2]|0;c[(qa&p)>>2]=Q;ea=Q+24|0;r=g+24|0;t=r;ea=jw(c[(t&p)>>2]|0,c[(t&p)+4>>2]|0,c[(ea&p)>>2]|0,c[(ea&p)+4>>2]|0)|0;t=r;c[(t&p)>>2]=ea;c[(t&p)+4>>2]=G;t=c[(x&p)>>2]|0;do if(t){ea=(Ms(t,ka)|0)!=0;t=c[(ka&p)>>2]|0;if(!(ea&(t|0)>0))break;ea=r;da=c[(ea&p)+4>>2]|0;s=((t|0)<0)<<31>>31;if(!(da>>>0>s>>>0|((da|0)==(s|0)?(c[(ea&p)>>2]|0)>>>0>t>>>0:0)))break;ea=r;c[(ea&p)>>2]=t;c[(ea&p)+4>>2]=s}while(0);if(!w){w=P;v=q;t=l;break}r=c[(R&p)+32>>2]|0;if(r>>>0>w>>>0)c[((c[(R&p)+4>>2]|0)+(w*20|0)&p)+8>>2]=r;c[((c[(R&p)+24>>2]|0)&p)+88>>2]=r+-1;w=P;v=q;t=l;break}else if((s|0)==115|(s|0)==117){if(t<<24>>24==1)s=c[(sa&p)+4>>2]|0;else{r=f+68|0;s=c[(r&p)>>2]|0;c[(r&p)>>2]=s+1;c[(g&p)+16>>2]=wh(R,57,s,0,0)|0;r=g;while(1){t=c[(r&p)+56>>2]|0;if(!t)break;else r=t}ea=r+6|0;b[(ea&o)>>1]=e[(ea&o)>>1]|8}a[(ia&n)>>0]=1;c[(ia&p)+4>>2]=s;a[(ia&n)+1>>0]=0;c[(ia&p)+8>>2]=0;c[(ia&p)+12>>2]=0;y=c[(oa&p)>>2]|0;k=ir(f,Q,ia)|0;if(k){m=0;za=227;break h}x=(a[(P&n)>>0]|0)==117?2:1;c[(qa&p)>>2]=0;v=g+60|0;u=c[(v&p)>>2]|0;c[(v&p)>>2]=0;t=g+64|0;r=c[(t&p)>>2]|0;c[(t&p)>>2]=0;a[(ia&n)>>0]=x;x=c[(oa&p)>>2]|0;k=ir(f,g,ia)|0;Nk(O,c[(la&p)>>2]|0);m=c[(qa&p)>>2]|0;c[(qa&p)>>2]=Q;c[(la&p)>>2]=0;if((a[(P&n)>>0]|0)==115){da=Q+24|0;ea=g+24|0;ca=ea;da=jw(c[(ca&p)>>2]|0,c[(ca&p)+4>>2]|0,c[(da&p)>>2]|0,c[(da&p)+4>>2]|0)|0;c[(ea&p)>>2]=da;c[(ea&p)+4>>2]=G}Gk(O,c[(v&p)>>2]|0);c[(v&p)>>2]=u;c[(t&p)>>2]=r;c[(g&p)+8>>2]=0;c[(g&p)+12>>2]=0;r=a[(sa&n)>>0]|0;if(r<<24>>24==9){r=g;while(1){q=c[(r&p)+52>>2]|0;if(!q)break;else r=q}Ns(f,0,c[(r&p)>>2]|0)}else if(r<<24>>24==1){w=P;v=y;t=x;break}l=xs(R)|0;ea=xs(R)|0;Os(f,g,l);wh(R,108,s,l,0)|0;w=R+32|0;v=c[(w&p)>>2]|0;Ps(f,g,c[(g&p)>>2]|0,s,0,0,sa,ea,l);u=R+24|0;t=c[(u&p)>>2]|0;r=~ea;do if((ea|0)<0){q=c[(t&p)+112>>2]|0;if(!q)break;c[(q+(r<<2)&p)>>2]=c[(w&p)>>2]}while(0);c[(t&p)+88>>2]=(c[(w&p)>>2]|0)+-1;wh(R,9,s,v,0)|0;r=c[(u&p)>>2]|0;q=~l;do if((l|0)<0){t=c[(r&p)+112>>2]|0;if(!t)break;c[(t+(q<<2)&p)>>2]=c[(w&p)>>2]}while(0);c[(r&p)+88>>2]=(c[(w&p)>>2]|0)+-1;wh(R,61,s,0,0)|0;w=P;v=y;t=x;break}else{r=f+68|0;A=c[(r&p)>>2]|0;c[(r&p)>>2]=A+2;c[(g&p)+16>>2]=wh(R,57,A,0,0)|0;r=g;while(1){q=c[(r&p)+56>>2]|0;if(!q)break;else r=q}y=A+1|0;v=r+6|0;b[(v&o)>>1]=e[(v&o)>>1]|8;a[(ja&n)>>0]=1;v=ja+4|0;c[(v&p)>>2]=A;a[(ja&n)+1>>0]=0;c[(ja&p)+8>>2]=0;c[(ja&p)+12>>2]=0;x=c[(oa&p)>>2]|0;k=ir(f,Q,ja)|0;if(k){m=0;za=227;break h}c[(g&p)+20>>2]=wh(R,57,y,0,0)|0;c[(qa&p)>>2]=0;w=g+60|0;l=c[(w&p)>>2]|0;c[(w&p)>>2]=0;q=g+64|0;r=c[(q&p)>>2]|0;c[(q&p)>>2]=0;c[(v&p)>>2]=y;z=c[(oa&p)>>2]|0;k=ir(f,g,ja)|0;m=c[(qa&p)>>2]|0;c[(qa&p)>>2]=Q;t=g+24|0;ea=t;da=c[(ea&p)+4>>2]|0;u=Q+24|0;v=c[(u&p)>>2]|0;u=c[(u&p)+4>>2]|0;if(da>>>0>u>>>0|((da|0)==(u|0)?(c[(ea&p)>>2]|0)>>>0>v>>>0:0)){ea=t;c[(ea&p)>>2]=v;c[(ea&p)+4>>2]=u}Gk(O,c[(w&p)>>2]|0);c[(w&p)>>2]=l;c[(q&p)>>2]=r;if((a[(sa&n)>>0]|0)==9){t=g;while(1){s=c[(t&p)+52>>2]|0;if(!s)break;else t=s}Ns(f,0,c[(t&p)>>2]|0)}q=xs(R)|0;w=xs(R)|0;Os(f,g,q);wh(R,108,A,q,0)|0;t=f+19|0;s=a[(t&n)>>0]|0;if(!(s<<24>>24)){ea=f+72|0;t=(c[(ea&p)>>2]|0)+1|0;c[(ea&p)>>2]=t}else{ea=s+-1<<24>>24;a[(t&n)>>0]=ea;t=c[(f+((ea&255)<<2)&p)+24>>2]|0}l=wh(R,101,A,t,0)|0;xh(R,wh(R,68,y,w,t)|0,0,-14);_r(f,t);Ps(f,g,c[(g&p)>>2]|0,A,0,0,sa,w,q);t=R+24|0;s=c[(t&p)>>2]|0;u=~w;do if((w|0)<0){v=c[(s&p)+112>>2]|0;if(!v)break;c[(v+(u<<2)&p)>>2]=c[(R&p)+32>>2]}while(0);v=R+32|0;c[(s&p)+88>>2]=(c[(v&p)>>2]|0)+-1;wh(R,9,A,l,0)|0;s=c[(t&p)>>2]|0;r=~q;do if((q|0)<0){t=c[(s&p)+112>>2]|0;if(!t)break;c[(t+(r<<2)&p)>>2]=c[(v&p)>>2]}while(0);c[(s&p)+88>>2]=(c[(v&p)>>2]|0)+-1;wh(R,61,y,0,0)|0;wh(R,61,A,0,0)|0;w=P;v=x;t=z;break}}else{Ks(f,g,sa);w=g+4|0;v=0;t=0;m=0;k=0}while(0);ea=a[(w&n)>>0]|0;Qs(f,ea&255,v,t,ea<<24>>24!=116&1);if(!(b[(ta&o)>>1]&8)){za=227;break}u=c[(c[(g&p)>>2]&p)>>2]|0;v=Rs(O,u,1)|0;if(!v){k=7;za=227;break}if((u|0)>0){l=O+8|0;q=v+20|0;r=0;while(1){ea=Ss(f,g,r)|0;c[(q&p)>>2]=ea;if(!ea)c[(q&p)>>2]=c[(l&p)>>2];r=r+1|0;if((r|0)==(u|0))break;else q=q+4|0}}s=R+32|0;t=R+4|0;do{l=0;do{r=g+(l<<2)+16|0;q=c[(r&p)>>2]|0;if((q|0)<0)break;if((c[(s&p)>>2]|0)>>>0>q>>>0)c[((c[(t&p)>>2]|0)+(q*20|0)&p)+8>>2]=u;c[(v&p)>>2]=(c[(v&p)>>2]|0)+1;xh(R,q,v,-6);c[(r&p)>>2]=-1;l=l+1|0}while((l|0)<2);g=c[(g&p)+52>>2]|0}while((g|0)!=0);ea=(c[(v&p)>>2]|0)+-1|0;c[(v&p)>>2]=ea;if(ea){za=227;break}Wc(v);za=227}else{k=d[(g&n)+4>>0]|0;if((k|0)==118)k=35336;else if((k|0)==117)k=35352;else if((k|0)==116)k=35320;else k=35360;c[(ra&p)>>2]=k;th(f,35024,ra);m=0;k=1;za=227}while(0);if((za|0)==227){c[(h&p)+8>>2]=c[(sa&p)+8>>2];c[(h&p)+12>>2]=c[(sa&p)+12>>2];Mk(O,m,1)}c[(Aa&p)>>2]=Ba;break a}if((m&5)==1){k=c[(va&p)>>2]|0;if(!(Ts(k,T,-1)|0)){b[(ta&o)>>1]=m&65534;w=Pr(xa,T,0)|0;c[(l&p)>>2]=w;za=232}}else za=232;if((za|0)==232)k=c[(va&p)>>2]|0;if(!k)k=-1;else{ea=Us(f,k,0,c[(T&p)>>2]|0)|0;da=f+68|0;k=c[(da&p)>>2]|0;c[(da&p)>>2]=k+1;c[(va&p)+8>>2]=k;k=wh(wa,57,k,(c[(c[(va&p)>>2]&p)>>2]|0)+1+(c[(T&p)>>2]|0)|0,0)|0;xh(wa,k,ea,-6)}R=va+20|0;c[(R&p)>>2]=k;if((a[(h&n)>>0]|0)==12)wh(wa,57,c[(h&p)+4>>2]|0,c[(T&p)>>2]|0,0)|0;qa=xs(wa)|0;y=g+24|0;ea=y;c[(ea&p)>>2]=-1;c[(ea&p)+4>>2]=2147483647;Os(f,g,qa);if((c[(g&p)+8>>2]|0)==0?(ha=c[(R&p)>>2]|0,(ha|0)>-1):0){if(!(a[((c[(wa&p)>>2]|0)&n)+65>>0]|0))k=(c[(wa&p)+4>>2]|0)+(ha*20|0)|0;else k=29120;a[(k&n)>>0]=58;ea=va+24|0;a[(ea&n)>>0]=d[(ea&n)>>0]|1}if(!(b[(ta&o)>>1]&1))a[(ua&n)+1>>0]=0;else{ea=f+68|0;k=c[(ea&p)>>2]|0;c[(ea&p)>>2]=k+1;c[(ua&p)+4>>2]=k;ea=Us(f,c[(g&p)>>2]|0,0,0)|0;k=wh(wa,57,k,0,0)|0;xh(wa,k,ea,-6);c[(ua&p)+8>>2]=k;k=c[(wa&p)+4>>2]|0;if(k)a[(k+(((c[(wa&p)+32>>2]|0)+-1|0)*20|0)&n)+3>>0]=8;a[(ua&n)+1>>0]=3}if((z|0)==0&(w|0)==0){v=Vs(f,U,B,c[(va&p)>>2]|0,c[(g&p)>>2]|0,(a[(ua&n)>>0]|0)!=0?1024:0,0)|0;if(!v){za=444;break}t=Ws(b[(v&o)+32>>1]|0)|0;s=G;ea=y;da=c[(ea&p)+4>>2]|0;if(s>>>0>>0|((s|0)==(da|0)?t>>>0<(c[(ea&p)>>2]|0)>>>0:0)){ea=y;c[(ea&p)>>2]=t;c[(ea&p)+4>>2]=s}do if(a[(ua&n)>>0]|0){t=a[(v&n)+40>>0]|0;if(!(t<<24>>24))break;a[(ua&n)+1>>0]=t}while(0);t=c[(va&p)>>2]|0;do if(!t)za=257;else{ea=a[(v&n)+36>>0]|0;c[(va&p)+4>>2]=ea;if((ea|0)!=(c[(t&p)>>2]|0))break;c[(va&p)>>2]=0;za=257}while(0);do if((za|0)==257){r=c[(R&p)>>2]|0;if((r|0)<=-1)break;zh(wa,r)}while(0);Ps(f,g,T,-1,va,ua,h,c[(v&p)+48>>2]|0,c[(v&p)+52>>2]|0);Xs(v)}else{z=(w|0)!=0;do if(z){l=c[(g&p)>>2]|0;k=c[(l&p)>>2]|0;if((k|0)>0){l=c[(l&p)+4>>2]|0;while(1){b[(l&o)+18>>1]=0;k=k+-1|0;if((k|0)<=0)break;else l=l+20|0}}k=c[(w&p)>>2]|0;if((k|0)>0){l=c[(w&p)+4>>2]|0;while(1){b[(l&o)+18>>1]=0;k=k+-1|0;if((k|0)<=0)break;else l=l+20|0}}ea=y;da=c[(ea&p)+4>>2]|0;if(!(da>>>0>0|(da|0)==0&(c[(ea&p)>>2]|0)>>>0>100))break;ea=y;c[(ea&p)>>2]=100;c[(ea&p)+4>>2]=0}else{ea=y;c[(ea&p)>>2]=1;c[(ea&p)+4>>2]=0}while(0);P=(Ts(w,c[(va&p)>>2]|0,-1)|0)==0;S=xs(wa)|0;c[(ma&p)>>2]=0;c[(ma&p)+4>>2]=0;c[(ma&p)+8>>2]=0;c[(ma&p)+12>>2]=0;c[(ma&p)+16>>2]=0;c[(ma&p)+20>>2]=0;c[(ma&p)+24>>2]=0;c[(ma&p)+28>>2]=0;c[(ma&p)>>2]=f;c[(ma&p)+4>>2]=U;c[(ma&p)+12>>2]=ya;K=f+72|0;c[(ya&p)+16>>2]=(c[(K&p)>>2]|0)+1;if(z)k=c[(w&p)>>2]|0;else k=0;y=ya+12|0;c[(y&p)>>2]=k;c[(ya&p)+24>>2]=w;Ys(ma,T);Ys(ma,c[(va&p)>>2]|0);if(ga){c[(ra&p)>>2]=0;c[(ra&p)+4>>2]=0;c[(ra&p)+8>>2]=0;c[(ra&p)+12>>2]=0;c[(ra&p)+16>>2]=0;c[(ra&p)+20>>2]=0;c[(ra&p)>>2]=80;c[(ra&p)+4>>2]=81;c[(ra&p)+24>>2]=ma;rs(ra,ga)|0}A=ya+32|0;c[(ya&p)+36>>2]=c[(A&p)>>2];r=ya+44|0;k=c[(r&p)>>2]|0;if((k|0)>0){x=ma+28|0;l=ya+40|0;m=b[(x&o)>>1]|0;q=0;do{b[(x&o)>>1]=m&65535|8;Ys(ma,c[((c[((c[(l&p)>>2]|0)+(q<<4)&p)>>2]|0)&p)+20>>2]|0);m=e[(x&o)>>1]&65527;b[(x&o)>>1]=m;q=q+1|0;k=c[(r&p)>>2]|0}while((q|0)<(k|0))}c[(ya&p)+20>>2]=c[(K&p)>>2];if(a[(pa&n)>>0]|0){za=444;break}if(z){I=f+68|0;H=c[(I&p)>>2]|0;c[(I&p)>>2]=H+1;v=ya+4|0;c[(v&p)>>2]=H;H=Us(f,w,0,c[(A&p)>>2]|0)|0;u=wh(wa,58,c[(v&p)>>2]|0,c[(y&p)>>2]|0,0)|0;xh(wa,u,H,-6);N=c[(K&p)>>2]|0;M=N+1|0;J=N+2|0;N=N+3|0;c[(K&p)>>2]=N;L=xs(wa)|0;Q=(c[(K&p)>>2]|0)+1|0;c[(K&p)>>2]=Q;O=xs(wa)|0;t=c[(K&p)>>2]|0;r=t+1|0;ea=c[(w&p)>>2]|0;da=ea+t|0;s=da+1|0;c[(K&p)>>2]=da+ea;wh(wa,25,0,J,0)|0;wh(wa,25,0,M,0)|0;wh(wa,28,0,r,(c[(w&p)>>2]|0)+t|0)|0;wh(wa,17,Q,O,0)|0;t=Vs(f,U,B,w,0,P?2304:256,0)|0;if(!t){za=444;break}if((a[(t&n)+36>>0]|0)==(c[(w&p)>>2]|0)){x=0;k=0;y=0}else{if(!(a[(ua&n)>>0]|0))k=34824;else k=(b[(ta&o)>>1]&1)==0?34808:34824;$s(f,k);D=c[(w&p)>>2]|0;k=c[(A&p)>>2]|0;if((k|0)>0){l=c[(ya&p)+28>>2]|0;m=0;y=D;x=D;do{if((c[(l+(m*24|0)&p)+12>>2]|0)>=(y|0)){y=y+1|0;x=x+1|0}m=m+1|0}while((m|0)<(k|0));F=x}else F=D;E=f+60|0;x=c[(E&p)>>2]|0;B=f+56|0;k=c[(B&p)>>2]|0;if((k|0)<(F|0)){C=c[(K&p)>>2]|0;c[(K&p)>>2]=C+F;C=C+1|0}else{c[(E&p)>>2]=x+F;c[(B&p)>>2]=k-F;C=x}at(f);bt(f,w,C,0);y=c[(A&p)>>2]|0;if((y|0)>0){m=ya+28|0;z=0;x=D;do{k=c[(m&p)>>2]|0;if((c[(k+(z*24|0)&p)+12>>2]|0)>=(x|0)){l=x+C|0;y=ct(f,c[(k+(z*24|0)&p)>>2]|0,c[(k+(z*24|0)&p)+8>>2]|0,c[(k+(z*24|0)&p)+4>>2]|0,l,0)|0;if((l|0)!=(y|0))wh(wa,34,y,l,0)|0;y=c[(A&p)>>2]|0;x=x+1|0}z=z+1|0}while((z|0)<(y|0))}y=f+19|0;x=a[(y&n)>>0]|0;if(!(x<<24>>24)){x=(c[(K&p)>>2]|0)+1|0;c[(K&p)>>2]=x}else{x=x+-1<<24>>24;a[(y&n)>>0]=x;x=c[(f+((x&255)<<2)&p)+24>>2]|0}wh(wa,49,C,F,x)|0;wh(wa,109,c[(v&p)>>2]|0,x,0)|0;_r(f,x);dt(f,C,F);if((c[(B&p)>>2]|0)<(F|0)){c[(B&p)>>2]=F;c[(E&p)>>2]=C}Xs(t);l=c[(I&p)>>2]|0;c[(I&p)>>2]=l+1;c[(ya&p)+8>>2]=l;k=a[(y&n)>>0]|0;if(!(k<<24>>24)){k=(c[(K&p)>>2]|0)+1|0;c[(K&p)>>2]=k}else{k=k+-1<<24>>24;a[(y&n)>>0]=k;k=c[(f+((k&255)<<2)&p)+24>>2]|0}wh(wa,60,l,k,F)|0;wh(wa,106,c[(v&p)>>2]|0,S,0)|0;a[(ya&n)+1>>0]=1;at(f);x=1;y=l}do if(P){if(b[(xa&o)+60>>1]&4)break;if((x|0)==0?(a[(t&n)+37>>0]|0)==0:0)break;c[(va&p)>>2]=0;zh(wa,c[(R&p)>>2]|0)}while(0);A=wa+32|0;q=c[(A&p)>>2]|0;at(f);x=(x|0)!=0;if(x)wh(wa,100,c[(v&p)>>2]|0,k,y)|0;k=c[(w&p)>>2]|0;if((k|0)>0){l=w+4|0;m=0;do{if(x)wh(wa,47,y,m,m+s|0)|0;else{a[(ya&n)>>0]=1;Rq(f,c[((c[(l&p)>>2]|0)+(m*20|0)&p)>>2]|0,m+s|0)}m=m+1|0;k=c[(w&p)>>2]|0}while((m|0)<(k|0))}if(H)c[(H&p)>>2]=(c[(H&p)>>2]|0)+1;xh(wa,wh(wa,42,r,s,k)|0,H,-6);k=c[(A&p)>>2]|0;ea=k+1|0;wh(wa,43,ea,0,ea)|0;w=c[(w&p)>>2]|0;wh(c[(f&p)+8>>2]|0,32,s,r,w)|0;dt(f,s,w);wh(wa,17,N,L,0)|0;wh(wa,137,J,S,0)|0;wh(wa,17,Q,O,0)|0;w=c[(A&p)>>2]|0;if(w>>>0>k>>>0)c[((c[(wa&p)+4>>2]|0)+(k*20|0)&p)+8>>2]=w;r=wa+24|0;c[((c[(r&p)>>2]|0)&p)+88>>2]=w+-1;et(f,ya);wh(wa,25,1,M,0)|0;if(x)wh(wa,5,c[(v&p)>>2]|0,q,0)|0;else{Xs(t);zh(wa,u)}wh(wa,17,N,L,0)|0;wh(wa,16,0,S,0)|0;m=c[(A&p)>>2]|0;wh(wa,25,1,J,0)|0;wh(wa,18,N,0,0)|0;k=c[(r&p)>>2]|0;l=~L;do if((L|0)<0){w=c[(k&p)+112>>2]|0;if(!w)break;c[(w+(l<<2)&p)>>2]=c[(A&p)>>2]}while(0);v=c[(A&p)>>2]|0;c[(k&p)+88>>2]=v+-1;wh(wa,137,M,v+2|0,0)|0;wh(wa,18,N,0,0)|0;ft(f,ya);v=v+1|0;gt(f,ga,v,16);Ps(f,g,c[(g&p)>>2]|0,-1,va,ua,h,v,m);wh(wa,18,N,0,0)|0;v=c[(r&p)>>2]|0;u=~O;do if((O|0)<0){t=c[(v&p)+112>>2]|0;if(!t)break;c[(t+(u<<2)&p)>>2]=c[(A&p)>>2]}while(0);c[(v&p)+88>>2]=(c[(A&p)>>2]|0)+-1;ht(f,ya);wh(wa,18,Q,0,0)|0}else{do if(!(c[(H&p)>>2]|0)){u=c[(g&p)>>2]|0;if((c[(u&p)>>2]|0)!=1){za=372;break}v=c[(na&p)>>2]|0;if((c[(v&p)>>2]|0)!=1){za=372;break}if(c[(v&p)+28>>2]|0){za=372;break}A=c[(v&p)+24>>2]|0;v=c[(c[(u&p)+4>>2]&p)>>2]|0;z=A+44|0;if(a[(z&n)>>0]&16){za=372;break}if((a[(v&n)>>0]|0)!=-101|(k|0)==0){za=372;break}y=ya+40|0;if(!(b[((c[((c[(y&p)>>2]|0)&p)+4>>2]|0)&o)+2>>1]&256)){za=372;break}if((A|0)==0?1:(c[(v&p)+4>>2]&16|0)!=0){za=372;break}v=c[(f&p)>>2]|0;k=c[(A&p)+68>>2]|0;i:do if(!k)u=-1e6;else{l=c[(v&p)+20>>2]|0;if((l|0)<=0){u=0;break}v=c[(v&p)+16>>2]|0;w=0;while(1){u=w+1|0;if((c[(v+(w<<4)&p)+12>>2]|0)==(k|0)){u=w;break i}if((u|0)<(l|0))w=u;else break}}while(0);w=f+68|0;q=c[(w&p)>>2]|0;c[(w&p)>>2]=q+1;w=A+32|0;k=c[(w&p)>>2]|0;Ar(f,u);gs(f,u,c[(w&p)>>2]|0,0,c[(A&p)>>2]|0);w=c[(A&p)+8>>2]|0;j:do if(!(a[(z&n)>>0]&32)){v=0;za=351}else{if(!w){l=1;m=0;w=0;break}else v=w;while(1){if((a[(v&n)+51>>0]&3)==2){za=351;break j}v=c[(v&p)+20>>2]|0;if(!v){v=0;za=351;break}}}while(0);do if((za|0)==351){if(w){m=A+42|0;l=w;do{do if(!(a[(l&n)+51>>0]&4)){w=b[(l&o)+44>>1]|0;if(w<<16>>16>=(b[(m&o)>>1]|0))break;if(c[(l&p)+36>>2]|0)break;if((v|0)!=0?w<<16>>16>=(b[(v&o)+44>>1]|0):0)break;v=l}while(0);l=c[(l&p)+20>>2]|0}while((l|0)!=0)}if(!v){l=1;m=0;w=0;break}k=c[(v&p)+40>>2]|0;l=0;m=v;w=hs(f,v)|0}while(0);xh(wa,wh(wa,54,q,k,u)|0,1,-14);if(w)xh(wa,-1,w,-6);wh(wa,50,q,c[((c[(y&p)>>2]|0)&p)+8>>2]|0,0)|0;wh(wa,61,q,0,0)|0;if((a[(f&n)+450>>0]|0)!=2){t=0;break}do if(l){v=c[(A&p)>>2]|0;u=10360;s=10360;t=c[(f&p)>>2]|0}else{if(a[(z&n)>>0]&32){ea=(a[(m&n)+51>>0]&3)!=2;t=c[(f&p)>>2]|0;v=c[(A&p)>>2]|0;u=ea?34920:10360;if(!ea){s=10360;break}}else{u=34920;v=c[(A&p)>>2]|0;t=c[(f&p)>>2]|0}s=c[(m&p)>>2]|0}while(0);c[(ra&p)>>2]=v;c[(ra&p)+4>>2]=u;c[(ra&p)+8>>2]=s;t=uh(t,34896,ra)|0;ea=c[(f&p)+8>>2]|0;xh(ea,wh(ea,157,c[(Aa&p)>>2]|0,0,0)|0,t,-1);t=0}else za=372;while(0);if((za|0)==372){do if((c[(I&p)>>2]|0)==0&(k|0)==1){t=c[(c[(ya&p)+40>>2]&p)>>2]|0;v=c[(t&p)+20>>2]|0;if(!v){t=0;s=0;break}if((c[(v&p)>>2]|0)!=1){t=0;s=0;break}if((a[(c[(c[(v&p)+4>>2]&p)>>2]&n)>>0]|0)!=-100){t=0;s=0;break}t=c[(t&p)+8>>2]|0;if(dd(t,18760)|0)if(!(dd(t,18768)|0))s=2;else{t=0;s=0;break}else s=1;t=Pr(xa,v,0)|0;if(!t){t=0;break}if(a[(pa&n)>>0]|0)break;ea=c[(t&p)+4>>2]|0;a[(ea&n)+12>>0]=s<<24>>24!=1&1;a[(c[(ea&p)>>2]&n)>>0]=-102}else{t=0;s=0}while(0);ht(f,ya);s=Vs(f,U,B,t,0,s&255,0)|0;if(!s){Nk(xa,t);za=444;break}et(f,ya);if((a[(s&n)+36>>0]|0)>0)wh(wa,16,0,c[(s&p)+52>>2]|0,0)|0;Xs(s);ft(f,ya)}c[(va&p)>>2]=0;gt(f,ga,S,16);Ps(f,g,c[(g&p)>>2]|0,-1,0,0,h,S,S);Nk(xa,t);r=wa+24|0}t=c[(r&p)>>2]|0;s=~S;do if((S|0)<0){r=c[(t&p)+112>>2]|0;if(!r)break;c[(r+(s<<2)&p)>>2]=c[(wa&p)+32>>2]}while(0);c[(t&p)+88>>2]=(c[(wa&p)+32>>2]|0)+-1}if((a[(ua&n)+1>>0]|0)==3)$s(f,34808);if(c[(va&p)>>2]|0){x=va+4|0;$s(f,(c[(x&p)>>2]|0)>0?34840:34864);A=c[(T&p)>>2]|0;v=f+8|0;H=c[(v&p)>>2]|0;I=xs(H)|0;F=xs(H)|0;q=c[(va&p)>>2]|0;m=a[(h&n)>>0]|0;B=m&255;C=h+4|0;D=c[(C&p)>>2]|0;y=va+16|0;w=c[(y&p)>>2]|0;if(w){wh(H,17,c[(va&p)+12>>2]|0,w,0)|0;wh(H,16,0,I,0)|0;ea=c[(y&p)>>2]|0;w=c[(H&p)+24>>2]|0;k=~ea;do if((ea|0)<0){l=c[(w&p)+112>>2]|0;if(!l)break;c[(l+(k<<2)&p)>>2]=c[(H&p)+32>>2]}while(0);c[(w&p)+88>>2]=(c[(H&p)+32>>2]|0)+-1}E=c[(va&p)+8>>2]|0;t=m<<24>>24==9;k:do if((m&-5)<<24>>24==9){s=A;u=c[(h&p)+8>>2]|0;k=0}else{w=f+19|0;k=a[(w&n)>>0]|0;do if(k<<24>>24){ea=k+-1<<24>>24;a[(w&n)>>0]=ea;l=c[(f+((ea&255)<<2)&p)+24>>2]|0;if(!(ea<<24>>24)){k=l;w=c[(f&p)+72>>2]|0;break}else{u=k+-2<<24>>24;a[(w&n)>>0]=u;s=1;u=c[(f+((u&255)<<2)&p)+24>>2]|0;k=l;break k}}else{k=f+72|0;w=(c[(k&p)>>2]|0)+1|0;c[(k&p)>>2]=w;k=w}while(0);u=w+1|0;c[(f&p)+72>>2]=u;s=1}while(0);r=(c[(q&p)>>2]|0)-(c[(x&p)>>2]|0)|0;z=va+24|0;if(!(a[(z&n)>>0]&1)){w=wh(H,107,E,I,0)|0;it(H,c[(g&p)+12>>2]|0,F);l=1;m=E}else{ea=f+72|0;m=(c[(ea&p)>>2]|0)+1|0;c[(ea&p)>>2]=m;ea=f+68|0;q=c[(ea&p)>>2]|0;c[(ea&p)>>2]=q+1;if(!(c[(y&p)>>2]|0))l=0;else{ea=Oq(f)|0;da=f+80|0;l=c[(da&p)>>2]|0;c[(da&p)>>2]=l+1;l=wh(ea,44,l,0,0)|0}wh(H,60,q,m,s+1+r|0)|0;if(l){w=c[(H&p)+32>>2]|0;if(w>>>0>l>>>0)c[((c[(H&p)+4>>2]|0)+(l*20|0)&p)+8>>2]=w;c[((c[(H&p)+24>>2]|0)&p)+88>>2]=w+-1}w=wh(H,106,E,I,0)|0;it(H,c[(g&p)+12>>2]|0,F);wh(H,100,E,m,q)|0;l=0;m=q}x=w+1|0;if((s|0)>0){w=l+r|0;l=0;do{wh(H,47,m,w+l|0,l+u|0)|0;l=l+1|0}while((l|0)!=(s|0))}do if((B|0)==12|(B|0)==14){wh(H,74,D,k,0)|0;wh(H,75,D,u,k)|0;t=c[(H&p)+4>>2]|0;if(!t)break;a[(t+(((c[(H&p)+32>>2]|0)+-1|0)*20|0)&n)+3>>0]=8}else if((B|0)==11){xh(H,wh(H,49,u,1,k)|0,h+1|0,1);dt(f,u,1);wh(H,110,D,k,0)|0}else if((B|0)!=10)if(t){ea=h+8|0;wh(H,35,c[(ea&p)>>2]|0,A,0)|0;dt(f,c[(ea&p)>>2]|0,A);break}else{wh(H,22,c[(C&p)>>2]|0,0,0)|0;break}else{wh(c[(v&p)>>2]|0,32,u,D,1)|0;dt(f,u,1)}while(0);if(k){_r(f,u);_r(f,k)}s=H+24|0;u=c[(s&p)>>2]|0;v=~F;do if((F|0)<0){t=c[(u&p)+112>>2]|0;if(!t)break;c[(t+(v<<2)&p)>>2]=c[(H&p)+32>>2]}while(0);v=H+32|0;c[(u&p)+88>>2]=(c[(v&p)>>2]|0)+-1;if(!(a[(z&n)>>0]&1))wh(H,9,E,x,0)|0;else wh(H,5,E,x,0)|0;r=c[(va&p)+12>>2]|0;if(r)wh(H,18,r,0,0)|0;r=c[(s&p)>>2]|0;q=~I;do if((I|0)<0){m=c[(r&p)+112>>2]|0;if(!m)break;c[(m+(q<<2)&p)>>2]=c[(v&p)>>2]}while(0);c[(r&p)+88>>2]=(c[(v&p)>>2]|0)+-1}l=c[(wa&p)+24>>2]|0;m=~qa;do if((qa|0)<0){k=c[(l&p)+112>>2]|0;if(!k)break;c[(k+(m<<2)&p)>>2]=c[(wa&p)+32>>2]}while(0);c[(l&p)+88>>2]=(c[(wa&p)+32>>2]|0)+-1;c[(Aa&p)>>2]=Ba;if((a[(h&n)>>0]|0)!=9){k=0;break}Ns(f,U,T);k=0}else za=444;while(0);if((za|0)==444){c[(Aa&p)>>2]=Ba;k=1}mg(xa,c[(ya&p)+28>>2]|0);mg(xa,c[(ya&p)+40>>2]|0)}else k=1;while(0);i=Ca;return k|0}function jr(a,b,d,e,f,g,h,k){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;var l=0,m=0,n=0,o=0,q=0,r=0;r=i;i=i+16|0;if((i|0)>=(j|0))fa();m=r;o=c[(a&p)>>2]|0;if((b|0)==0?(l=(h|0)!=0,l|(k|0)!=0):0){c[(m&p)>>2]=l?34792:34800;th(a,34752,m);q=9}else{b=pr(o,b,d,e)|0;if((b|0)!=0?(n=c[(b&p)>>2]|0,(n|0)!=0):0){l=n+-1|0;if(c[(f&p)+4>>2]|0)c[(b+(l*72|0)&p)+20>>2]=Wq(o,f)|0;c[(b+(l*72|0)&p)+28>>2]=g;c[(b+(l*72|0)&p)+52>>2]=h;c[(b+(l*72|0)&p)+56>>2]=k}else q=9}if((q|0)==9){Gk(o,h);Hk(o,k);Mk(o,g,1);b=0}i=r;return b|0}function kr(d,e,f,g,h,k,l,m,q,r){d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;m=m|0;q=q|0;r=r|0;var s=0,t=0,u=0,v=0,w=0,x=0,y=0;y=i;i=i+80|0;if((i|0)>=(j|0))fa();t=y+72|0;x=y;w=c[(d&p)>>2]|0;s=mh(w,72,0)|0;if(!s){u=x+0|0;v=u+72|0;do{c[(u&p)>>2]=0;u=u+4|0}while((u|0)<(v|0));s=x}else{u=s+0|0;v=u+72|0;do{a[(u&n)>>0]=0;u=u+1|0}while((u|0)<(v|0))}if(!e){c[(t&p)>>2]=0;c[(t&p)+4>>2]=0;e=lr(d,0,nr(w,116,t,0)|0)|0}c[(s&p)>>2]=e;if(!f){f=mh(w,80,0)|0;if(f){u=f+0|0;v=u+80|0;do{a[(u&n)>>0]=0;u=u+1|0}while((u|0)<(v|0))}}c[(s&p)+32>>2]=f;c[(s&p)+36>>2]=g;c[(s&p)+40>>2]=h;c[(s&p)+44>>2]=k;c[(s&p)+48>>2]=l;b[(s&o)+6>>1]=m;a[(s&n)+4>>0]=119;c[(s&p)+60>>2]=q;c[(s&p)+64>>2]=r;c[(s&p)+16>>2]=-1;c[(s&p)+20>>2]=-1;if(a[(w&n)+65>>0]|0){Mk(w,s,(s|0)!=(x|0)&1);s=0}i=y;return s|0}function lr(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0;g=c[(b&p)>>2]|0;if(!d){d=mh(g,8,0)|0;if(d){b=d;f=b;a[(f&n)>>0]=0;a[(f&n)+1>>0]=0;a[(f&n)+2>>0]=0;a[(f&n)+3>>0]=0;b=b+4|0;a[(b&n)>>0]=0;a[(b&n)+1>>0]=0;a[(b&n)+2>>0]=0;a[(b&n)+3>>0]=0;b=mh(g,20,0)|0;c[(d&p)+4>>2]=b;if(!b)f=8;else f=7}else{d=0;f=8}}else{b=c[(d&p)>>2]|0;if(!(b+-1&b)){f=d+4|0;b=ro(g,c[(f&p)>>2]|0,b*40|0,0)|0;if(!b)f=8;else{c[(f&p)>>2]=b;f=7}}else f=7}if((f|0)==7){b=c[(d&p)>>2]|0;c[(d&p)>>2]=b+1;b=(c[(d&p)+4>>2]|0)+(b*20|0)|0;c[(b&p)>>2]=0;c[(b&p)+4>>2]=0;c[(b&p)+8>>2]=0;c[(b&p)+12>>2]=0;c[(b&p)+16>>2]=0;c[(b&p)>>2]=e}else if((f|0)==8){Gk(g,e);Nk(g,d);d=0}return d|0}function mr(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0;do if(d){j=(c[(d&p)>>2]|0)+-1|0;g=c[(d&p)+4>>2]|0;h=c[(e&p)>>2]|0;d=c[(e&p)+4>>2]|0;if((h|0)!=0?(e=c[(b&p)>>2]|0,i=jw(d|0,0,1,0)|0,i=mh(e,i,G)|0,(i|0)!=0):0){kw(i|0,h|0,d|0)|0;a[(i+d&n)>>0]=0;c[(g+(j*20|0)&p)+4>>2]=i;if(!f)break;lo(i);break}c[(g+(j*20|0)&p)+4>>2]=0}while(0);return}function nr(d,e,f,g){d=d|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,q=0,r=0,s=0,t=0;t=i;i=i+16|0;if((i|0)>=(j|0))fa();m=t;c[(m&p)>>2]=0;k=(f|0)!=0;do if(k){if(((e|0)==132?(h=c[(f&p)>>2]|0,(h|0)!=0):0)?(Dn(h,m)|0)!=0:0){r=0;break}r=(c[(f&p)+4>>2]|0)+1|0}else r=0;while(0);l=r+48|0;q=mh(d,l,0)|0;if(q){fw(q|0,0,l|0)|0;a[(q&n)>>0]=e;b[(q&o)+34>>1]=-1;do if(k){if(!r){g=q+4|0;c[(g&p)>>2]=c[(g&p)>>2]|1024;c[(q&p)+8>>2]=c[(m&p)>>2];break}h=q+48|0;l=q+8|0;c[(l&p)>>2]=h;k=f+4|0;d=c[(k&p)>>2]|0;if(!d)h=48;else{kw(h|0,c[(f&p)>>2]|0,d|0)|0;h=(c[(k&p)>>2]|0)+48|0}a[(q+h&n)>>0]=0;if(((g|0)!=0&(r|0)>2?(g=a[(c[(f&p)>>2]&n)>>0]|0,s=g<<24>>24==34,g<<24>>24==34|g<<24>>24==39|g<<24>>24==91|g<<24>>24==96):0)?(lo(c[(l&p)>>2]|0),s):0){g=q+4|0;c[(g&p)>>2]=c[(g&p)>>2]|64}}while(0);c[(q&p)+24>>2]=1}i=t;return q|0}function or(b,d,e){b=b|0;d=d|0;e=e|0;var f=0;do if((d|0)!=0?(f=c[(d&p)>>2]|0,(f|0)>0):0){f=f+-1|0;if((c[(e&p)+4>>2]|0)==1?(c[(e&p)>>2]|0)==0:0){f=d+(f*72|0)+45|0;a[(f&n)>>0]=a[(f&n)>>0]|1;break}c[(d+(f*72|0)&p)+72>>2]=Wq(c[(b&p)>>2]|0,e)|0}while(0);return}function pr(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0;if(!d){d=mh(b,80,0)|0;if(!d)d=0;else{h=d+0|0;g=h+80|0;do{a[(h&n)>>0]=0;h=h+1|0}while((h|0)<(g|0));c[(d&p)+4>>2]=1;h=4}}else h=4;do if((h|0)==4){d=Fs(b,d,1,c[(d&p)>>2]|0)|0;if(a[(b&n)+65>>0]|0){Do(b,d);d=0;break}h=(c[(d&p)>>2]|0)+-1|0;if(!f)g=0;else g=(c[(f&p)>>2]|0)==0?0:f;f=(g|0)==0;c[(d+(h*72|0)&p)+16>>2]=Wq(b,f?e:g)|0;c[(d+(h*72|0)&p)+12>>2]=Wq(b,f?0:e)|0}while(0);return d|0}function qr(a,b,e,f){a=a|0;b=b|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,o=0,q=0,r=0,s=0;s=i;i=i+32|0;if((i|0)>=(j|0))fa();q=s;m=s+16|0;c[(m&p)>>2]=b;c[(m&p)+4>>2]=e;c[(m&p)+8>>2]=f;l=b;o=1;g=0;a:while(1){if(!l)break;k=c[(l&p)+4>>2]|0;h=0;while(1){if((k|0)==(d[((h*3|0)&n)+34625>>0]|0|0)?(Fc(c[(l&p)>>2]|0,34584+(d[((h*3|0)&n)+34624>>0]|0)|0,k)|0)==0:0)break;h=h+1|0;if((h|0)>=7){r=10;break a}}g=d[((h*3|0)&n)+34626>>0]|0|g;if((h|0)>6){r=10;break}if((o|0)>=3)break;l=c[(m+(o<<2)&p)>>2]|0;o=o+1|0}if((r|0)==10)g=g|64;if((g&33|0)!=33&(g&64|0)==0){if(!((g&32|0)==0|(g&24|0)==8)){th(a,34696,q);g=1}}else{c[(q&p)>>2]=b;c[(q&p)+4>>2]=e;c[(q&p)+8>>2]=(f|0)==0?20377|0:20376;c[(q&p)+12>>2]=f;th(a,34648,q);g=1}i=s;return g|0}function rr(e,f,g){e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=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;T=i;i=i+48|0;if((i|0)>=(j|0))fa();Q=T+36|0;R=T+32|0;r=T;c[(Q&p)>>2]=0;c[(R&p)>>2]=0;S=c[(e&p)>>2]|0;if(((((c[(e&p)+64>>2]|0)==0?(a[(S&n)+65>>0]|0)==0:0)?(H=Jr(e,f)|0,(H|0)!=0):0)?(G=jt(e,H,109,0,0)|0,P=(c[(H&p)+12>>2]|0)!=0,(hr(e,H)|0)==0):0)?(t=(G|0)!=0,(kt(e,H,t&1)|0)==0):0){l=c[(H&p)+68>>2]|0;a:do if(l){k=c[(S&p)+20>>2]|0;if((k|0)>0){h=c[(S&p)+16>>2]|0;q=0;while(1){m=q+1|0;if((c[(h+(q<<4)&p)+12>>2]|0)==(l|0)){m=q;break a}if((m|0)<(k|0))q=m;else break}}else m=0}else m=-1e6;while(0);h=Sq(e,9,c[(H&p)>>2]|0,0,c[((c[(S&p)+16>>2]|0)+(m<<4)&p)>>2]|0)|0;if((h|0)!=1){s=e+68|0;C=c[(s&p)>>2]|0;u=C+1|0;c[(s&p)>>2]=u;c[(f&p)+48>>2]=C;I=H+8|0;l=c[(I&p)>>2]|0;if(!l)q=0;else{k=u;q=0;do{k=k+1|0;c[(s&p)>>2]=k;q=q+1|0;l=c[(l&p)+20>>2]|0}while((l|0)!=0)}if(P){N=e+492|0;O=c[(N&p)>>2]|0;c[(N&p)>>2]=c[(H&p)>>2];N=e}else{N=0;O=0}L=Oq(e)|0;b:do if(L){M=e+18|0;if(!(a[(M&n)>>0]|0)){E=L+88|0;b[(E&o)>>1]=b[(E&o)>>1]|4}D=e+408|0;E=c[(D&p)>>2]|0;E=(E|0)==0?e:E;Ar(e,m);B=E+328|0;c[(B&p)>>2]=c[(B&p)>>2]|1<>0]=d[(E&n)>>0]|1;if(P){lt(e,H,g,C);c[(R&p)>>2]=C;c[(Q&p)>>2]=C};c[(r&p)>>2]=0;c[(r&p)+4>>2]=0;c[(r&p)+8>>2]=0;c[(r&p)+12>>2]=0;c[(r&p)+16>>2]=0;c[(r&p)+20>>2]=0;c[(r&p)+24>>2]=0;c[(r&p)+28>>2]=0;c[(r&p)>>2]=e;c[(r&p)+4>>2]=f;if(!(ls(r,g)|0)){J=S+24|0;if(!(c[(J&p)>>2]&128))K=-1;else{E=e+72|0;K=(c[(E&p)>>2]|0)+1|0;c[(E&p)>>2]=K;wh(L,25,0,K,0)|0}E=H+44|0;do if((!((g|0)!=0|(h|0)!=0|t)?(a[(E&n)>>0]&16)==0:0)?(mt(e,H,0,0)|0)==0:0){l=H+32|0;gs(e,m,c[(l&p)>>2]|0,1,c[(H&p)>>2]|0);if(!(a[(E&n)>>0]&32)){H=c[(H&p)>>2]|0;xh(L,wh(L,118,c[(l&p)>>2]|0,m,K)|0,H,-2)}h=c[(I&p)>>2]|0;if(!h){h=0;break}do{wh(L,118,c[(h&p)+40>>2]|0,m,0)|0;h=c[(h&p)+20>>2]|0}while((h|0)!=0);h=0}else F=31;while(0);do if((F|0)==31){if(!(a[(E&n)>>0]&32)){v=e+72|0;z=(c[(v&p)>>2]|0)+1|0;c[(v&p)>>2]=z;wh(L,28,0,z,0)|0;v=0;A=0;h=0;x=1;m=0}else{m=c[(I&p)>>2]|0;c:do if(!m)m=0;else while(1){if((a[(m&n)+51>>0]&3)==2)break c;m=c[(m&p)+20>>2]|0;if(!m){m=0;break}}while(0);x=b[(m&o)+46>>1]|0;A=e+72|0;h=c[(A&p)>>2]|0;v=x<<16>>16;c[(A&p)>>2]=h+v;A=c[(s&p)>>2]|0;c[(s&p)>>2]=A+1;v=wh(L,57,A,v,0)|0;z=c[(e&p)+8>>2]|0;xh(z,-1,hs(e,m)|0,-6);h=h+1|0;z=0}w=Vs(e,f,g,0,0,12,u)|0;if(!w){h=0;break b}u=w+60|0;t=c[(u&p)>>2]|0;u=c[(u&p)+4>>2]|0;y=a[(w&n)+38>>0]|0;if(c[(J&p)>>2]&128)wh(L,37,K,1,0)|0;B=(m|0)!=0;do if(B){if(x<<16>>16<=0){k=h;break}r=m+4|0;l=x<<16>>16;s=0;do{nt(L,H,C,b[((c[(r&p)>>2]|0)+(s<<1)&o)>>1]|0,s+h|0);s=s+1|0}while((s|0)!=(l|0));k=h}else{l=e+72|0;k=ct(e,H,-1,C,(c[(l&p)>>2]|0)+1|0,0)|0;if((k|0)<=(c[(l&p)>>2]|0))break;c[(l&p)>>2]=k}while(0);r=y<<24>>24!=0;do if(!r)if(B){l=e+72|0;k=(c[(l&p)>>2]|0)+1|0;c[(l&p)>>2]=k;l=x<<16>>16;s=ot(L,m)|0;xh(L,wh(L,49,h,l,k)|0,s,l);wh(L,110,A,k,0)|0;h=0;l=0;s=0;F=59;break}else{wh(L,128,z,k,0)|0;Xs(w);h=0;u=0;m=1;break}else{h=q+2|0;h=mh(S,h,((h|0)<0)<<31>>31)|0;if(!h){Xs(w);h=0;break b}F=q+1|0;fw(h|0,1,F|0)|0;a[(h+F&n)>>0]=0;if((t|0)>-1)a[(h+(t-C)&n)>>0]=0;if((u|0)>-1)a[(h+(u-C)&n)>>0]=0;if(v)zh(L,v);l=wh(L,16,0,0,0)|0;s=x;F=59}while(0);do if((F|0)==59){Xs(w);if(!r){u=0;m=s;break}m=xs(L)|0;wh(L,16,0,m,0)|0;q=c[(L&p)+32>>2]|0;if(q>>>0>l>>>0)c[((c[(L&p)+4>>2]|0)+(l*20|0)&p)+8>>2]=q;c[((c[(L&p)+24>>2]|0)&p)+88>>2]=q+-1;u=m;m=s}while(0);if(!P)pt(e,H,55,C,h,Q,R)|0;do if(!r)if(B){l=wh(L,108,A,0,0)|0;wh(L,101,A,k,0)|0;break}else{l=wh(L,129,z,0,k)|0;break}else{q=c[(Q&p)>>2]|0;if(!(a[(h+(q-C)&n)>>0]|0)){l=0;break}xh(L,wh(L,68,q,u,k)|0,m<<16>>16,-14);l=0}while(0);if(!(a[(E&n)>>0]&16))rt(e,H,G,c[(Q&p)>>2]|0,c[(R&p)>>2]|0,k,m,(a[(M&n)>>0]|0)==0&1,10,y);else{q=c[(H&p)+60>>2]|0;d:do if(!q)q=0;else while(1){if((c[(q&p)>>2]|0)==(S|0))break d;q=c[(q&p)+24>>2]|0;if(!q){q=0;break}}while(0);qt(e,H);xh(L,wh(L,15,0,1,k)|0,q,-10);q=c[(L&p)+4>>2]|0;if(q)a[(q+(((c[(L&p)+32>>2]|0)+-1|0)*20|0)&n)+3>>0]=2;H=c[(D&p)>>2]|0;a[(((H|0)==0?e:H)&n)+21>>0]=1}do if(!r)if(B){wh(L,9,A,l+1|0,0)|0;q=c[(L&p)+32>>2]|0;if(q>>>0>l>>>0)c[((c[(L&p)+4>>2]|0)+(l*20|0)&p)+8>>2]=q;c[((c[(L&p)+24>>2]|0)&p)+88>>2]=q+-1;break}else{wh(L,16,0,l,0)|0;q=c[(L&p)+32>>2]|0;if(q>>>0>l>>>0)c[((c[(L&p)+4>>2]|0)+(l*20|0)&p)+8>>2]=q;c[((c[(L&p)+24>>2]|0)&p)+88>>2]=q+-1;break}else{m=c[(L&p)+24>>2]|0;l=~u;do if((u|0)<0){q=c[(m&p)+112>>2]|0;if(!q)break;c[(q+(l<<2)&p)>>2]=c[(L&p)+32>>2]}while(0);c[(m&p)+88>>2]=(c[(L&p)+32>>2]|0)+-1}while(0);if(P)break;if(a[(E&n)>>0]&16)break;if(!B)wh(L,61,c[(Q&p)>>2]|0,0,0)|0;k=c[(I&p)>>2]|0;if(!k)break;else l=0;while(1){wh(L,61,(c[(R&p)>>2]|0)+l|0,0,0)|0;k=c[(k&p)+20>>2]|0;if(!k)break;else l=l+1|0}}while(0);if((a[(M&n)>>0]|0)==0?(c[(e&p)+412>>2]|0)==0:0)st(e);if((c[(J&p)>>2]&128|0)!=0?(a[(M&n)>>0]|0)==0:0){if(c[(e&p)+412>>2]|0)break;wh(L,35,K,1,0)|0;iq(L,1);if(a[((c[(L&p)>>2]|0)&n)+65>>0]|0)break;Xg(c[(L&p)+16>>2]|0,34568,-1,1,0)|0}}else h=0}else h=0;while(0);if(N)c[(N&p)+492>>2]=O}else h=0}else h=0;Do(S,f);Gk(S,g);mg(S,h);i=T;return}function sr(e,f,g,h,k){e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;var l=0,m=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,ga=0,ha=0,ia=0,ja=0,ka=0,la=0,ma=0;ma=i;i=i+64|0;if((i|0)>=(j|0))fa();T=ma;Y=ma+32|0;ea=ma+24|0;ha=ma+20|0;la=c[(e&p)>>2]|0;a:do if(((c[(e&p)+64>>2]|0)==0?(a[(la&n)+65>>0]|0)==0:0)?(ka=Jr(e,f)|0,(ka|0)!=0):0){m=c[(e&p)>>2]|0;r=c[(ka&p)+68>>2]|0;b:do if(r){s=c[(m&p)+20>>2]|0;if((s|0)>0){m=c[(m&p)+16>>2]|0;q=0;while(1){l=q+1|0;if((c[(m+(q<<4)&p)+12>>2]|0)==(r|0))break b;if((l|0)<(s|0))q=l;else{q=l;break}}}else q=0}else q=-1e6;while(0);ga=jt(e,ka,110,g,ea)|0;ca=(c[(ka&p)+12>>2]|0)!=0;if((hr(e,ka)|0)==0?(kt(e,ka,c[(ea&p)>>2]|0)|0)==0:0){_=e+68|0;$=c[(_&p)>>2]|0;ia=$+1|0;c[(_&p)>>2]=ia;r=f+48|0;c[(r&p)>>2]=$;K=ka+44|0;u=c[(ka&p)+8>>2]|0;c:do if(!(a[(K&n)>>0]&32)){s=0;ba=16}else{if(!u){w=ka+8|0;s=0;t=$;v=0;break}else s=u;while(1){if((a[(s&n)+51>>0]&3)==2){ba=16;break c}s=c[(s&p)+20>>2]|0;if(!s){s=0;ba=16;break}}}while(0);if((ba|0)==16){w=ka+8|0;if(!u){t=$;v=0}else{l=(s|0)!=0;m=ia;t=$;v=0;do{if((a[(u&n)+51>>0]&3)==2&l){c[(r&p)>>2]=m;t=m}m=m+1|0;c[(_&p)>>2]=m;v=v+1|0;u=c[(u&p)+20>>2]|0}while((u|0)!=0)}}ja=ka+38|0;l=mh(la,v+2+((b[(ja&o)>>1]|0)+v<<2)|0,0)|0;if(l){I=b[(ja&o)>>1]|0;aa=l+(I<<2)|0;da=l+(I+v<<2)|0;Z=v+1|0;fw(da|0,1,Z|0)|0;a[(da+Z&n)>>0]=0;v=b[(ja&o)>>1]|0;if(v<<16>>16>0)fw(l|0,-1,(v<<16>>16>1?v<<16>>16<<2:4)|0)|0;c[(Y&p)>>2]=0;c[(Y&p)+4>>2]=0;c[(Y&p)+8>>2]=0;c[(Y&p)+12>>2]=0;c[(Y&p)+16>>2]=0;c[(Y&p)+20>>2]=0;c[(Y&p)+24>>2]=0;c[(Y&p)+28>>2]=0;c[(Y&p)>>2]=e;c[(Y&p)+4>>2]=f;d:do if((c[(g&p)>>2]|0)>0){E=g+4|0;D=ka+4|0;C=la+16|0;F=(s|0)==0;G=ka+36|0;y=0;x=0;H=0;m=0;while(1){if(ls(Y,c[((c[(E&p)>>2]|0)+(H*20|0)&p)>>2]|0)|0)break a;A=b[(ja&o)>>1]|0;e:do if(A<<16>>16>0){v=c[(D&p)>>2]|0;B=c[(E&p)>>2]|0;r=c[(B+(H*20|0)&p)+4>>2]|0;u=0;while(1){z=u+1|0;if(!(dd(c[(v+(u*24|0)&p)>>2]|0,r)|0))break;if((z|0)<(A<<16>>16|0))u=z;else{u=z;r=m;break e}}if((u|0)!=(b[(G&o)>>1]|0)){if(!F)y=(a[(v+(u*24|0)&n)+23>>0]&1)==0?y:1}else{x=1;m=c[(B+(H*20|0)&p)>>2]|0}c[(l+(u<<2)&p)>>2]=H;r=m}else{u=0;r=m}while(0);if((u|0)<(A<<16>>16|0)){m=c[(ka&p)>>2]|0;if((u|0)<0)v=12944;else v=c[((c[(D&p)>>2]|0)+(u*24|0)&p)>>2]|0}else{r=c[(E&p)>>2]|0;m=c[(r+(H*20|0)&p)+4>>2]|0;if(!F)break;if(!($h(m)|0))break;m=c[(ka&p)>>2]|0;v=12944;x=1;u=-1;r=c[(r+(H*20|0)&p)>>2]|0}m=Sq(e,23,m,v,c[((c[(C&p)>>2]|0)+(q<<4)&p)>>2]|0)|0;if((m|0)==2)c[(l+(u<<2)&p)>>2]=-1;else if((m|0)==1)break a;H=H+1|0;if((H|0)>=(c[(g&p)>>2]|0)){R=r;break d}else m=r}c[(T&p)>>2]=m;th(e,34496,T);a[(e&n)+17>>0]=1;break a}else{y=0;x=0;R=0}while(0);X=(y&255)+(x&255)|0;U=X&255;C=f+64|0;c[(C&p)>>2]=0;c[(C&p)+4>>2]=0;X=X&255;C=mt(e,ka,l,X)|0;m=c[(w&p)>>2]|0;if(m){z=(C|X|0)==0;A=e+72|0;B=0;while(1){f:do if(z?!((c[(m&p)+36>>2]|0)!=0|(m|0)==(s|0)):0){r=b[(m&o)+46>>1]|0;if(!(r<<16>>16))ba=56;else{u=c[(m&p)+4>>2]|0;v=0;while(1){if((c[(l+(b[(u+(v<<1)&o)>>1]<<2)&p)>>2]|0)>-1){ba=54;break f}v=v+1|0;if((v|0)>=(r&65535|0)){ba=56;break}}}}else ba=54;while(0);if((ba|0)==54){ba=0;r=(c[(A&p)>>2]|0)+1|0;c[(A&p)>>2]=r;if(!r)ba=56;else u=B+1|0}if((ba|0)==56){ba=0;u=B+1|0;a[(da+u&n)>>0]=0;r=0}c[(l+(B+I<<2)&p)>>2]=r;m=c[(m&p)+20>>2]|0;if(!m)break;else B=u}}V=Oq(e)|0;if(V){W=e+18|0;if(!(a[(W&n)>>0]|0)){S=V+88|0;b[(S&o)>>1]=b[(S&o)>>1]|4}H=e+408|0;S=c[(H&p)>>2]|0;S=(S|0)==0?e:S;Ar(e,q);Q=S+328|0;c[(Q&p)>>2]=c[(Q&p)>>2]|1<>0]=d[(S&n)>>0]|1;if(a[(K&n)>>0]&16){x=c[(e&p)+8>>2]|0;y=c[(e&p)>>2]|0;m=c[(ka&p)+60>>2]|0;g:do if(!m)m=0;else while(1){if((c[(m&p)>>2]|0)==(y|0))break g;m=c[(m&p)+24>>2]|0;if(!m){m=0;break}}while(0);q=lr(e,0,tt(y,27,34536)|0)|0;w=(R|0)!=0;if(w)q=lr(e,q,Mr(y,R,0,0)|0)|0;if((b[(ja&o)>>1]|0)>0){r=g+4|0;t=ka+4|0;u=0;do{s=c[(l+(u<<2)&p)>>2]|0;if((s|0)>-1)s=Mr(y,c[((c[(r&p)>>2]|0)+(s*20|0)&p)>>2]|0,0,0)|0;else s=tt(y,27,c[((c[(t&p)>>2]|0)+(u*24|0)&p)>>2]|0)|0;q=lr(e,q,s)|0;u=u+1|0}while((u|0)<(b[(ja&o)>>1]|0))}t=kr(e,q,f,h,0,0,0,0,0,0)|0;v=c[(_&p)>>2]|0;c[(_&p)>>2]=v+1;f=w&1;wh(x,57,v,(b[(ja&o)>>1]|0)+(w?2:1)|0,0)|0;u=x+4|0;h=c[(u&p)>>2]|0;if(h)a[(h+(((c[(x&p)+32>>2]|0)+-1|0)*20|0)&n)+3>>0]=8;a[(T&n)>>0]=14;c[(T&p)+4>>2]=v;a[(T&n)+1>>0]=0;c[(T&p)+8>>2]=0;c[(T&p)+12>>2]=0;ir(e,t,T)|0;h=e+72|0;s=c[(h&p)>>2]|0;q=s+1|0;da=s+2|0;c[(h&p)>>2]=(b[(ja&o)>>1]|0)+da;h=wh(x,108,v,0,0)|0;wh(x,47,v,0,q)|0;wh(x,47,v,f,da)|0;if((b[(ja&o)>>1]|0)>0){s=s+3|0;r=0;do{da=r;r=r+1|0;wh(x,47,v,r+f|0,s+da|0)|0}while((r|0)<(b[(ja&o)>>1]|0))}qt(e,ka);xh(x,wh(x,15,0,(b[(ja&o)>>1]|0)+2|0,q)|0,m,-10);m=c[(u&p)>>2]|0;if(!m)m=x+32|0;else{da=x+32|0;a[(m+(((c[(da&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=(k|0)==10?2:k&255;m=da}da=c[(H&p)>>2]|0;a[(((da|0)==0?e:da)&n)+21>>0]=1;wh(x,9,v,h+1|0,0)|0;m=c[(m&p)>>2]|0;if(m>>>0>h>>>0)c[((c[(u&p)>>2]|0)+(h*20|0)&p)+8>>2]=m;c[((c[(x&p)+24>>2]|0)&p)+88>>2]=m+-1;wh(x,61,v,0,0)|0;Mk(y,t,1);h=0;f=0;break}H=e+72|0;m=c[(H&p)>>2]|0;G=m+1|0;Q=m+2|0;c[(H&p)>>2]=Q;I=y<<24>>24!=0;J=(ga|0)!=0;P=(C|0)!=0;if(I|J|P){q=(b[(ja&o)>>1]|0)+Q|0;c[(H&p)>>2]=q;L=m+3|0}else{q=Q;L=0}N=(X|0)!=0;if(N|J|P){O=q+1|0;c[(H&p)>>2]=O;q=O}else O=Q;M=q+1|0;c[(H&p)>>2]=(b[(ja&o)>>1]|0)+q;if(ca){S=e+492|0;T=c[(S&p)>>2]|0;c[(S&p)>>2]=c[(ka&p)>>2];lt(e,ka,h,t);S=e}else{S=0;T=0}do if(!(ls(Y,h)|0)){if(!(a[(K&n)>>0]&32)){wh(V,28,0,G,Q)|0;y=Vs(e,f,h,0,0,4,ia)|0;if(!y)break;A=y+60|0;m=c[(A&p)>>2]|0;A=c[(A&p)+4>>2]|0;B=a[(y&n)+38>>0]|0;wh(V,103,t,Q,0)|0;if(!(B<<24>>24))wh(V,128,G,Q,0)|0;Xs(y);D=0;C=0;z=B&255;E=0}else{B=b[(s&o)+46>>1]|0;y=c[(H&p)>>2]|0;u=y+1|0;C=B<<16>>16;y=C+1+y|0;c[(H&p)>>2]=y;D=c[(_&p)>>2]|0;c[(_&p)>>2]=D+1;wh(V,28,0,u,0)|0;q=wh(V,57,D,C,0)|0;v=c[(e&p)+8>>2]|0;xh(v,-1,hs(e,s)|0,-6);v=Vs(e,f,h,0,0,4,ia)|0;if(!v)break;A=v+60|0;m=c[(A&p)>>2]|0;A=c[(A&p)+4>>2]|0;r=a[(v&n)+38>>0]|0;E=r&255;if(B<<16>>16>0){B=s+4|0;z=0;do{nt(V,ka,t,b[((c[(B&p)>>2]|0)+(z<<1)&o)>>1]|0,z+u|0);z=z+1|0}while((z|0)!=(C|0))}if(!(r<<24>>24)){B=ot(V,s)|0;xh(V,wh(V,49,u,C,y)|0,B,C);wh(V,110,D,y,0)|0;B=0}else{zh(V,q);B=C;y=u}Xs(v);C=B;z=E;E=y}K=la+24|0;do if(!(c[(K&p)>>2]&128))v=0;else{if(c[(e&p)+412>>2]|0){v=0;break}v=(c[(H&p)>>2]|0)+1|0;c[(H&p)>>2]=v;wh(V,25,0,v,0)|0}while(0);u=xs(V)|0;if(!ca){h:do if((k|0)==5)fw(da|0,1,Z|0)|0;else{B=c[(w&p)>>2]|0;if(!B)break;while(1){if((a[(B&n)+50>>0]|0)==5)break;B=c[(B&p)+20>>2]|0;if(!B)break h}fw(da|0,1,Z|0)|0}while(0);do if(z){if((m|0)>-1)a[(da+(m-$)&n)>>0]=0;if((A|0)<=-1)break;a[(da+(A-$)&n)>>0]=0}while(0);pt(e,ka,55,$,da,0,0)|0}H=(z|0)!=0;do if(!H)if(!s){G=wh(V,129,G,u,Q)|0;wh(V,70,t,G,Q)|0;F=0;break}else{G=xs(V)|0;wh(V,108,D,u,0)|0;F=wh(V,101,D,E,0)|0;xh(V,wh(V,68,t,G,E)|0,0,-14);break}else{if(!((a[(da+(t-$)&n)>>0]|0)==0|ca))xh(V,wh(V,68,t,u,E)|0,C,-14);wh(V,76,(s|0)!=0?E:Q,u,0)|0;F=0;G=u}while(0);x=x<<24>>24==0;if(!x){Rq(e,R,O);wh(V,38,O,0,0)|0}do if(I|P|J){if(P)y=ut(e,ka)|0;else y=0;B=vt(e,ga,g,0,3,ka,k)|0|y;if((b[(ja&o)>>1]|0)>0){A=(B|0)==-1;z=ka+4|0;y=0;do{do if(A)ba=138;else{if((y|0)<32?(1<>2]|0)+(y*24|0)&n)+23>>0]&1){ba=138;break}wh(V,28,0,y+L|0,0)|0}while(0);if((ba|0)==138){ba=0;nt(V,ka,t,y,y+L|0)}y=y+1|0}while((y|0)<(b[(ja&o)>>1]|0))}if(!(x&(s|0)==0))break;wh(V,33,Q,O,0)|0}while(0);y=vt(e,ga,g,1,1,ka,k)|0;if((b[(ja&o)>>1]|0)>0){x=ka+36|0;m=g+4|0;r=0;do{i:do if((r|0)==(b[(x&o)>>1]|0))wh(V,28,0,r+M|0,0)|0;else{q=c[(l+(r<<2)&p)>>2]|0;if((q|0)>-1){Rq(e,c[((c[(m&p)>>2]|0)+(q*20|0)&p)>>2]|0,r+M|0);break}do if(!((c[(ea&p)>>2]&1|0)==0|(r|0)>31)){if(1<>1]|0))}do if(c[(ea&p)>>2]&1){wt(V,ka,M);xt(e,ga,110,g,1,ka,Q,k,G);if(!s)wh(V,70,t,G,Q)|0;else xh(V,wh(V,68,t,G,E)|0,C,-14);m=b[(ja&o)>>1]|0;if(m<<16>>16<=0)break;x=ka+36|0;y=0;do{do if((c[(l+(y<<2)&p)>>2]|0)<0){if((y|0)==(b[(x&o)>>1]|0))break;nt(V,ka,t,y,y+M|0);m=b[(ja&o)>>1]|0}while(0);y=y+1|0}while((y|0)<(m<<16>>16|0))}while(0);do if(!ca){c[(ha&p)>>2]=0;yt(e,ka,aa,t,ia,O,Q,U,k&255,G,ha);if(P)zt(e,ka,Q,0,l,X);m=(c[(ha&p)>>2]|X|0)==0;do if(!m)if(!s){q=wh(V,70,t,0,Q)|0;break}else{q=wh(V,68,t,0,E)|0;xh(V,q,C,-14);break}else q=0;while(0);At(e,ka,t,ia,aa);if(P|(N|(s|0)!=0))wh(V,95,t,0,0)|0;if(!m){m=c[(V&p)+32>>2]|0;if(m>>>0>q>>>0)c[((c[(V&p)+4>>2]|0)+(q*20|0)&p)+8>>2]=m;c[((c[(V&p)+24>>2]|0)&p)+88>>2]=m+-1}if(P){zt(e,ka,0,O,l,X);Bt(e,ka,t,ia,O,aa,1,0,0);Ct(e,ka,g,Q,l,X);break}else{Bt(e,ka,t,ia,O,aa,1,0,0);break}}while(0);do if(c[(K&p)>>2]&128){if(c[(e&p)+412>>2]|0)break;wh(V,37,v,1,0)|0}while(0);xt(e,ga,110,g,2,ka,Q,k,G);do if(!H){if(!s){wh(V,16,0,G,0)|0;break}r=c[(V&p)+24>>2]|0;q=~G;do if((G|0)<0){s=c[(r&p)+112>>2]|0;if(!s)break;c[(s+(q<<2)&p)>>2]=c[(V&p)+32>>2]}while(0);c[(r&p)+88>>2]=(c[(V&p)+32>>2]|0)+-1;wh(V,9,D,F,0)|0}while(0);r=c[(V&p)+24>>2]|0;q=~u;do if((u|0)<0){s=c[(r&p)+112>>2]|0;if(!s)break;c[(s+(q<<2)&p)>>2]=c[(V&p)+32>>2]}while(0);c[(r&p)+88>>2]=(c[(V&p)+32>>2]|0)+-1;q=c[(w&p)>>2]|0;if(q){r=0;do{s=r;r=r+1|0;if(a[(da+r&n)>>0]|0)wh(V,61,s+ia|0,0,0)|0;q=c[(q&p)+20>>2]|0}while((q|0)!=0)}if((t|0)<(ia|0))wh(V,61,t,0,0)|0;do if(!(a[(W&n)>>0]|0)){if(c[(e&p)+412>>2]|0)break;st(e)}while(0);if(!(c[(K&p)>>2]&128))break;if(c[(e&p)+412>>2]|0)break;if(a[(W&n)>>0]|0)break;wh(V,35,v,1,0)|0;iq(V,1);if(a[((c[(V&p)>>2]|0)&n)+65>>0]|0)break;Xg(c[(V&p)+16>>2]|0,34520,-1,1,0)|0}while(0);if(S)c[(S&p)+492>>2]=T}}}else l=0}else l=0;while(0);mg(la,l);Do(la,f);Nk(la,g);Gk(la,h);i=ma;return}function tr(e,f,g,h,k){e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;var l=0,m=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,ga=0,ha=0,ia=0,ja=0,ka=0,la=0,ma=0,na=0,oa=0;oa=i;i=i+96|0;if((i|0)>=(j|0))fa();ca=oa;ja=oa+92|0;la=oa+88|0;L=oa+68|0;Y=oa+64|0;O=oa+32|0;ba=oa+28|0;c[(ja&p)>>2]=0;c[(la&p)>>2]=0;na=c[(e&p)>>2]|0;c[(L&p)>>2]=0;c[(L&p)+4>>2]=0;c[(L&p)+8>>2]=0;c[(L&p)+12>>2]=0;c[(L&p)+16>>2]=0;a:do if((c[(e&p)+64>>2]|0)==0?(N=na+65|0,(a[(N&n)>>0]|0)==0):0){if(g)if((b[(g&o)+6>>1]&128)!=0?(c[(g&p)+52>>2]|0)==0:0){l=c[(g&p)>>2]|0;c[(g&p)>>2]=0;Mk(na,g,1);g=0}else l=0;else{g=0;l=0}if((c[(f&p)+16>>2]|0)!=0?(ka=Jr(e,f)|0,(ka|0)!=0):0){u=c[(ka&p)+68>>2]|0;b:do if(u){t=c[(na&p)+20>>2]|0;if((t|0)>0){s=c[(na&p)+16>>2]|0;q=0;while(1){r=q+1|0;if((c[(s+(q<<4)&p)+12>>2]|0)==(u|0)){r=q;break b}if((r|0)<(t|0))q=r;else break}}else r=0}else r=-1e6;while(0);if((((Sq(e,18,c[(ka&p)>>2]|0,0,c[((c[(na&p)+16>>2]|0)+(r<<4)&p)>>2]|0)|0)==0?(ga=ka+44|0,Z=(d[(ga&n)>>0]|0)>>>5&1,ea=jt(e,ka,108,0,Y)|0,ha=(c[(ka&p)+12>>2]|0)!=0,(hr(e,ka)|0)==0):0)?(kt(e,ka,c[(Y&p)>>2]|0)|0)==0:0)?(ma=Oq(e)|0,(ma|0)!=0):0){ia=e+18|0;if(!(a[(ia&n)>>0]|0)){da=ma+88|0;b[(da&o)>>1]=b[(da&o)>>1]|4}da=(g|0)!=0;aa=e+408|0;$=c[(aa&p)>>2]|0;$=($|0)==0?e:$;Ar(e,r);X=$+328|0;c[(X&p)>>2]=c[(X&p)>>2]|1<>0]=d[($&n)>>0]|(da|(ea|0)!=0)&1;$=(h|0)==0;c:do if((((!((g|0)==0|$^1)?(c[(e&p)+532>>2]|0)==0:0)?(c[(g&p)+68>>2]|0)==0:0)?(As(e,ka)|0)==0:0)?(a[(ga&n)>>0]&16)==0:0){if((k|0)==10){if((b[(ka&o)+36>>1]|0)>-1)u=d[(ka&n)+45>>0]|0;else u=10;y=(u|0)==10?2:u}else y=k;t=c[(g&p)+32>>2]|0;if((c[(t&p)>>2]|0)==1){if(c[(t&p)+28>>2]|0){_=117;break}if(c[(g&p)+36>>2]|0){_=117;break}if(c[(g&p)+48>>2]|0){_=117;break}if(c[(g&p)+40>>2]|0){_=117;break}if(c[(g&p)+60>>2]|0){_=117;break}if(c[(g&p)+52>>2]|0){_=117;break}if(b[(g&o)+6>>1]&1){_=117;break}u=c[(g&p)>>2]|0;if((c[(u&p)>>2]|0)!=1){_=117;break}if((a[(c[(c[(u&p)+4>>2]&p)>>2]&n)>>0]|0)!=116){_=117;break}x=Ur(e,0,t+8|0)|0;if((x|0)==0|(x|0)==(ka|0)){_=117;break}B=x+44|0;X=d[(B&n)>>0]|0;if(!((X&16|0)==0?(((d[(ga&n)>>0]|0)>>>5&1^1)&255|0)==(X>>>5&1^1|0):0)){_=117;break}if(c[(x&p)+12>>2]|0){_=117;break}v=b[(ka&o)+38>>1]|0;if(v<<16>>16!=(b[(x&o)+38>>1]|0)){_=117;break}A=ka+36|0;if((b[(A&o)>>1]|0)!=(b[(x&o)+36>>1]|0)){_=117;break}if(v<<16>>16>0){q=c[(ka&p)+4>>2]|0;m=c[(x&p)+4>>2]|0;w=0;do{if((a[(q+(w*24|0)&n)+21>>0]|0)!=(a[(m+(w*24|0)&n)+21>>0]|0)){_=117;break c}u=c[(q+(w*24|0)&p)+16>>2]|0;t=c[(m+(w*24|0)&p)+16>>2]|0;s=(t|0)==0;if(!u){if(!s){_=117;break c}}else{if(s){_=117;break c}if(dd(u,t)|0){_=117;break c}}if((a[(q+(w*24|0)&n)+20>>0]|0)!=0?(a[(m+(w*24|0)&n)+20>>0]|0)==0:0){_=117;break c}do if((w|0)>0){u=c[(q+(w*24|0)&p)+8>>2]|0;t=(u|0)==0;s=c[(m+(w*24|0)&p)+8>>2]|0;if(t^(s|0)==0){_=117;break c}if(t)break;if(_v(u,s)|0){_=117;break c}}while(0);w=w+1|0}while((w|0)<(v<<16>>16|0))}E=ka+8|0;u=c[(E&p)>>2]|0;if(!u)t=0;else{v=c[(x&p)+8>>2]|0;if(!v){_=117;break}else t=0;do{t=(a[(u&n)+50>>0]|0)==0?t:1;s=v;while(1){if(Dt(u,s)|0)break;s=c[(s&p)+20>>2]|0;if(!s){_=117;break c}}if(!s){_=117;break c}u=c[(u&p)+20>>2]|0}while((u|0)!=0)}u=c[(ka&p)+24>>2]|0;if((u|0)!=0?(Ts(c[(x&p)+24>>2]|0,u,-1)|0)!=0:0){_=117;break}s=c[(e&p)>>2]|0;u=c[(s&p)+24>>2]|0;if(!(u&524288)){if(u&128){_=117;break}}else if(!((c[(ka&p)+16>>2]|0)==0&(u&128|0)==0)){_=117;break}m=c[(x&p)+68>>2]|0;d:do if(!m)s=-1e6;else{v=c[(s&p)+20>>2]|0;if((v|0)<=0){s=0;break}u=c[(s&p)+16>>2]|0;q=0;while(1){s=q+1|0;if((c[(u+(q<<4)&p)+12>>2]|0)==(m|0)){s=q;break d}if((s|0)<(v|0))q=s;else break}}while(0);D=Oq(e)|0;Ar(e,s);z=e+68|0;F=c[(z&p)>>2]|0;C=F+1|0;c[(z&p)>>2]=F+2;z=Et(e,r,ka)|0;v=e+19|0;q=a[(v&n)>>0]|0;do if(!(q<<24>>24)){_=e+72|0;u=(c[(_&p)>>2]|0)+1|0;c[(_&p)>>2]=u;_=78}else{X=q+-1<<24>>24;a[(v&n)>>0]=X;u=c[(e+((X&255)<<2)&p)+24>>2]|0;if(!(X<<24>>24)){_=78;break}G=q+-2<<24>>24;a[(v&n)>>0]=G;H=u;G=c[(e+((G&255)<<2)&p)+24>>2]|0}while(0);if((_|0)==78){H=e+72|0;G=(c[(H&p)>>2]|0)+1|0;c[(H&p)>>2]=G;H=u}Qq(e,C,r,ka,55);if((b[(A&o)>>1]|0)<0)if((c[(E&p)>>2]|0)!=0|(t|0)!=0|(y+-1|0)>>>0>1)_=83;else I=0;else if((t|0)!=0|(y+-1|0)>>>0>1)_=83;else I=0;if((_|0)==83){w=wh(D,108,C,0,0)|0;v=wh(D,16,0,0,0)|0;u=c[(D&p)+32>>2]|0;if(u>>>0>w>>>0)c[((c[(D&p)+4>>2]|0)+(w*20|0)&p)+8>>2]=u;c[((c[(D&p)+24>>2]|0)&p)+88>>2]=u+-1;I=v}if(!(a[(B&n)>>0]&32)){Qq(e,F,s,x,54);t=wh(D,108,F,0,0)|0;do if((b[(A&o)>>1]|0)<=-1)if(!(c[(E&p)>>2]|0)){u=wh(D,74,C,G,0)|0;break}else{u=wh(D,103,F,G,0)|0;break}else{u=wh(D,103,F,G,0)|0;w=wh(D,70,C,0,G)|0;Ft(e,y,ka);v=c[(D&p)+32>>2]|0;if(v>>>0>w>>>0)c[((c[(D&p)+4>>2]|0)+(w*20|0)&p)+8>>2]=v;c[((c[(D&p)+24>>2]|0)&p)+88>>2]=v+-1;if((z|0)<=0)break;wh(c[(e&p)+8>>2]|0,136,z,G,0)|0}while(0);wh(D,102,F,H,0)|0;wh(D,75,C,H,G)|0;v=c[(D&p)+4>>2]|0;if(v)a[(v+(((c[(D&p)+32>>2]|0)+-1|0)*20|0)&n)+3>>0]=11;xh(D,-1,c[(ka&p)>>2]|0,0);wh(D,9,F,u,0)|0;wh(D,61,F,0,0)|0;wh(D,61,C,0,0)|0}else{gs(e,r,c[(ka&p)+32>>2]|0,1,c[(ka&p)>>2]|0);gs(e,s,c[(x&p)+32>>2]|0,0,c[(x&p)>>2]|0);t=0}w=c[(E&p)>>2]|0;if(w){q=x+8|0;m=e+8|0;x=D+4|0;y=D+32|0;z=D+24|0;u=w;do{w=q;while(1){w=c[(w&p)>>2]|0;if(Dt(u,w)|0)break;w=w+20|0}wh(D,54,F,c[(w&p)+40>>2]|0,s)|0;X=c[(m&p)>>2]|0;xh(X,-1,hs(e,w)|0,-6);wh(D,55,C,c[(u&p)+40>>2]|0,r)|0;w=c[(m&p)>>2]|0;xh(w,-1,hs(e,u)|0,-6);w=c[(x&p)>>2]|0;if(w)a[(w+(((c[(y&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=1;w=wh(D,108,F,0,0)|0;wh(D,101,F,H,0)|0;wh(D,110,C,H,1)|0;wh(D,9,F,w+1|0,0)|0;v=c[(y&p)>>2]|0;if(v>>>0>w>>>0)c[((c[(x&p)>>2]|0)+(w*20|0)&p)+8>>2]=v;c[((c[(z&p)>>2]|0)&p)+88>>2]=v+-1;wh(D,61,F,0,0)|0;wh(D,61,C,0,0)|0;u=c[(u&p)+20>>2]|0}while((u|0)!=0)}if(t){u=c[(D&p)+32>>2]|0;if(u>>>0>t>>>0)c[((c[(D&p)+4>>2]|0)+(t*20|0)&p)+8>>2]=u;c[((c[(D&p)+24>>2]|0)&p)+88>>2]=u+-1}_r(e,G);_r(e,H);if(!I){m=0;q=0;break}wh(D,24,0,0,0)|0;u=c[(D&p)+32>>2]|0;if(u>>>0>I>>>0)c[((c[(D&p)+4>>2]|0)+(I*20|0)&p)+8>>2]=u;c[((c[(D&p)+24>>2]|0)&p)+88>>2]=u+-1;wh(D,61,C,0,0)|0;_=117}else _=117}else _=117;while(0);do if((_|0)==117){S=Et(e,r,ka)|0;R=e+72|0;t=c[(R&p)>>2]|0;W=t+1|0;X=ka+38|0;I=b[(X&o)>>1]|0;H=I<<16>>16;u=W+H|0;c[(R&p)>>2]=u;if(!(a[(ga&n)>>0]&16))V=W;else{u=u+1|0;c[(R&p)>>2]=u;V=t+2|0}T=V+1|0;U=(h|0)!=0;e:do if(U?(P=c[(h&p)+4>>2]|0,Q=(P|0)>0,Q):0){v=c[(h&p)>>2]|0;t=0;do{c[(v+(t<<3)&p)+4>>2]=-1;t=t+1|0}while((t|0)<(P|0));if(Q){D=Z<<24>>24!=0;C=ka+4|0;B=ka+36|0;t=1;A=0;v=-1;while(1){f:do if(I<<16>>16>0){z=c[(h&p)>>2]|0;s=c[(z+(A<<3)&p)>>2]|0;q=c[(C&p)>>2]|0;m=0;while(1){w=m+1|0;if(!(dd(s,c[(q+(m*24|0)&p)>>2]|0)|0)){w=m;break}if((w|0)<(H|0))m=w;else break f}c[(z+(A<<3)&p)+4>>2]=w;t=(A|0)==(w|0)?t:0;v=(w|0)==(b[(B&o)>>1]|0)?A:v}else w=0;while(0);if((w|0)>=(H|0)){m=c[((c[(h&p)>>2]|0)+(A<<3)&p)>>2]|0;if(($h(m)|0)==0|D)break;else{t=0;w=A}}else w=v;A=A+1|0;if((A|0)>=(P|0)){E=w;break e}else v=w}c[(ca&p)>>2]=f;c[(ca&p)+4>>2]=0;c[(ca&p)+8>>2]=m;th(e,33368,ca);a[(e&n)+17>>0]=1;m=0;break a}else{t=1;E=-1}}else{t=1;E=-1}while(0);g:do if(!da){c[(O&p)>>2]=0;c[(O&p)+4>>2]=0;c[(O&p)+8>>2]=0;c[(O&p)+12>>2]=0;c[(O&p)+16>>2]=0;c[(O&p)+20>>2]=0;c[(O&p)+24>>2]=0;c[(O&p)+28>>2]=0;c[(O&p)>>2]=e;if(l){s=c[(l&p)>>2]|0;if((s|0)>0){u=l+4|0;t=0;while(1){if(ls(O,c[((c[(u&p)>>2]|0)+(t*20|0)&p)>>2]|0)|0){g=0;m=0;break a}t=t+1|0;if((t|0)>=(s|0)){u=0;t=-1;r=0;_=169;break}}}else{P=E;O=0;Q=-1;z=0}}else{P=E;s=0;O=0;Q=-1;z=0}}else{u=u+1|0;c[(R&p)>>2]=u;G=ma+32|0;v=c[(G&p)>>2]|0;wh(ma,20,u,0,v+1|0)|0;a[(L&n)>>0]=13;H=L+4|0;c[(H&p)>>2]=u;a[(L&n)+1>>0]=0;F=L+8|0;c[(F&p)>>2]=t<<24>>24!=0?T:0;c[(L&p)+12>>2]=b[(X&o)>>1];Q=ir(e,g,L)|0;F=c[(F&p)>>2]|0;if(Q){m=0;break a}if(a[(N&n)>>0]|0){m=0;break a}wh(ma,21,u,0,0)|0;u=c[(G&p)>>2]|0;if(u>>>0>v>>>0)c[((c[(ma&p)+4>>2]|0)+(v*20|0)&p)+8>>2]=u;I=ma+24|0;c[((c[(I&p)>>2]|0)&p)+88>>2]=u+-1;s=c[(c[(g&p)>>2]&p)>>2]|0;h:do if(!ea){w=Oq(e)|0;t=c[(w&p)+32>>2]|0;i:do if(!(a[(ga&n)>>0]&16))v=0;else{u=c[(e&p)>>2]|0;v=c[(ka&p)+60>>2]|0;if(!v){v=0;break}while(1){if((c[(v&p)>>2]|0)==(u|0))break i;v=c[(v&p)+24>>2]|0;if(!v){v=0;break}}}while(0);if((t|0)<=1){u=F;t=0;r=0;_=169;break g}q=(a[((c[(w&p)>>2]|0)&n)+65>>0]|0)==0;z=w+4|0;y=ka+32|0;x=ka+8|0;m=1;while(1){if(q)w=(c[(z&p)>>2]|0)+(m*20|0)|0;else w=29120;u=a[(w&n)>>0]|0;do if(u<<24>>24==54){if((c[(w&p)+12>>2]|0)!=(r|0))break;u=c[(w&p)+8>>2]|0;if((u|0)==(c[(y&p)>>2]|0))break h;w=c[(x&p)>>2]|0;if(!w)break;do{if((u|0)==(c[(w&p)+40>>2]|0))break h;w=c[(w&p)+20>>2]|0}while((w|0)!=0)}else if(u<<24>>24==-107?(c[(w&p)+16>>2]|0)==(v|0):0)break h;while(0);m=m+1|0;if((m|0)>=(t|0)){u=F;t=0;r=0;_=169;break g}}}while(0);v=e+68|0;w=c[(v&p)>>2]|0;c[(v&p)>>2]=w+1;v=e+19|0;t=a[(v&n)>>0]|0;do if(!(t<<24>>24)){u=(c[(R&p)>>2]|0)+1|0;c[(R&p)>>2]=u;_=159}else{Q=t+-1<<24>>24;a[(v&n)>>0]=Q;u=c[(e+((Q&255)<<2)&p)+24>>2]|0;if(!(Q<<24>>24)){_=159;break}Q=t+-2<<24>>24;a[(v&n)>>0]=Q;v=c[(e+((Q&255)<<2)&p)+24>>2]|0}while(0);if((_|0)==159){v=(c[(R&p)>>2]|0)+1|0;c[(R&p)>>2]=v}wh(ma,57,w,s,0)|0;r=wh(ma,22,c[(H&p)>>2]|0,0,0)|0;wh(ma,49,F,s,u)|0;wh(ma,74,w,v,0)|0;wh(ma,75,w,u,v)|0;wh(ma,16,0,r,0)|0;t=c[(G&p)>>2]|0;if(t>>>0>r>>>0)c[((c[(ma&p)+4>>2]|0)+(r*20|0)&p)+8>>2]=t;c[((c[(I&p)>>2]|0)&p)+88>>2]=t+-1;_r(e,u);_r(e,v);u=F;t=w;r=1;_=169}while(0);if((_|0)==169)if($&(s|0)>0){P=b[(ka&o)+36>>1]|0;O=u;Q=t;z=r}else{P=E;O=u;Q=t;z=r}if((a[(ga&n)>>0]&16)!=0?(M=b[(X&o)>>1]|0,M<<16>>16>0):0){v=c[(ka&p)+4>>2]|0;t=M<<16>>16;r=0;u=0;do{u=((d[(v+(r*24|0)&n)+23>>0]|0)>>>1&1)+u|0;r=r+1|0}while((r|0)<(t|0))}else u=0;do if($&(s|0)!=0){u=(b[(X&o)>>1]|0)-u|0;if((s|0)==(u|0))break;c[(ca&p)>>2]=f;c[(ca&p)+4>>2]=0;c[(ca&p)+8>>2]=u;c[(ca&p)+12>>2]=s;th(e,33400,ca);m=0;break a}while(0);do if(U){u=c[(h&p)+4>>2]|0;if((s|0)==(u|0))break;c[(ca&p)>>2]=s;c[(ca&p)+4>>2]=u;th(e,33456,ca);m=0;break a}while(0);K=na+24|0;if(!(c[(K&p)>>2]&128))q=0;else{q=(c[(R&p)>>2]|0)+1|0;c[(R&p)>>2]=q;wh(ma,25,0,q,0)|0}do if(ha)m=0;else{u=pt(e,ka,55,-1,0,ja,la)|0;m=mh(na,(u<<2)+4|0,0)|0;if(!m)break a;if((u|0)>0)t=0;else break;do{N=(c[(R&p)>>2]|0)+1|0;c[(R&p)>>2]=N;c[(m+(t<<2)&p)>>2]=N;t=t+1|0}while((t|0)!=(u|0))}while(0);M=z<<24>>24!=0;do if(M){N=wh(ma,108,Q,0,0)|0;L=c[(ma&p)+32>>2]|0}else{if(!da){L=0;N=0;break}N=wh(ma,22,c[(L&p)+4>>2]|0,0,0)|0;L=N}while(0);J=xs(ma)|0;do if(c[(Y&p)>>2]&1){w=(b[(X&o)>>1]|0)+1|0;H=e+60|0;v=c[(H&p)>>2]|0;G=e+56|0;u=c[(G&p)>>2]|0;if((u|0)<(w|0)){I=c[(R&p)>>2]|0;c[(R&p)>>2]=I+w;I=I+1|0}else{c[(H&p)>>2]=w+v;c[(G&p)>>2]=u-w;I=v}if((P|0)<0)wh(ma,25,-1,I,0)|0;else{if(M)wh(ma,47,Q,P,I)|0;else Rq(e,c[((c[(l&p)+4>>2]|0)+(P*20|0)&p)>>2]|0,I);w=wh(ma,77,I,0,0)|0;wh(ma,25,-1,I,0)|0;v=c[(ma&p)+32>>2]|0;if(v>>>0>w>>>0)c[((c[(ma&p)+4>>2]|0)+(w*20|0)&p)+8>>2]=v;c[((c[(ma&p)+24>>2]|0)&p)+88>>2]=v+-1;wh(ma,38,I,0,0)|0}v=b[(X&o)>>1]|0;if(v<<16>>16>0){D=M|(l|0)!=0;t=h+4|0;u=I+1|0;w=l+4|0;A=e+8|0;B=ka+4|0;C=0;do{j:do if($)z=C;else{y=c[(t&p)>>2]|0;if((y|0)<=0){z=0;break}x=c[(h&p)>>2]|0;r=0;while(1){z=r+1|0;if((c[(x+(r<<3)&p)+4>>2]|0)==(C|0)){z=r;break j}if((z|0)<(y|0))r=z;else break}}while(0);do if(D){if(U?(z|0)>=(c[(t&p)>>2]|0):0){_=213;break}if(M){wh(ma,47,Q,z,u+C|0)|0;break}else{Y=c[((c[(w&p)>>2]|0)+(z*20|0)&p)>>2]|0;r=u+C|0;x=c[(A&p)>>2]|0;Rq(e,Y,r);v=(c[(R&p)>>2]|0)+1|0;c[(R&p)>>2]=v;wh(x,33,r,v,0)|0;a[(Y&n)+38>>0]=a[(Y&n)>>0]|0;a[(Y&n)>>0]=-97;c[(Y&p)+28>>2]=v;Y=Y+4|0;c[(Y&p)>>2]=c[(Y&p)>>2]&-4097;break}}else _=213;while(0);if((_|0)==213){_=0;Rq(e,c[((c[(B&p)>>2]|0)+(C*24|0)&p)+4>>2]|0,u+C|0)}C=C+1|0;v=b[(X&o)>>1]|0}while((C|0)<(v<<16>>16|0))}if(!ha){wt(ma,ka,I+1|0);v=b[(X&o)>>1]|0}xt(e,ea,108,0,1,ka,I+-1-(v<<16>>16)|0,k,J);v=(b[(X&o)>>1]|0)+1|0;dt(e,I,v);if((c[(G&p)>>2]|0)>=(v|0))break;c[(G&p)>>2]=v;c[(H&p)>>2]=I}while(0);do if(!ha){if(a[(ga&n)>>0]&16)wh(ma,28,0,W,0)|0;k:do if((P|0)<=-1)if(!((a[(ga&n)>>0]&16|Z)<<24>>24)){wh(ma,74,c[(ja&p)>>2]|0,V,S)|0;I=1;break}else{wh(ma,28,0,V,0)|0;I=0;break}else{do if(M)wh(ma,47,Q,P,V)|0;else{if(da){wh(ma,33,P+O|0,V,0)|0;break}Rq(e,c[((c[(l&p)+4>>2]|0)+(P*20|0)&p)>>2]|0,V);if(!(a[((c[(ma&p)>>2]|0)&n)+65>>0]|0)){u=(c[(ma&p)+4>>2]|0)+(((c[(ma&p)+32>>2]|0)+-1|0)*20|0)|0;if(!u)break}else u=29120;if((a[(u&n)>>0]|0)!=28)break;if(a[(ga&n)>>0]&16)break;a[(u&n)>>0]=74;c[(u&p)+4>>2]=c[(ja&p)>>2];c[(u&p)+8>>2]=V;c[(u&p)+12>>2]=S;I=1;break k}while(0);if(!(a[(ga&n)>>0]&16)){u=wh(ma,77,V,0,0)|0;wh(ma,74,c[(ja&p)>>2]|0,V,S)|0;t=c[(ma&p)+32>>2]|0;if(t>>>0>u>>>0)c[((c[(ma&p)+4>>2]|0)+(u*20|0)&p)+8>>2]=t;c[((c[(ma&p)+24>>2]|0)&p)+88>>2]=t+-1}else wh(ma,76,V,(c[(ma&p)+32>>2]|0)+2|0,0)|0;wh(ma,38,V,0,0)|0;I=0}while(0);if((S|0)>0)wh(c[(e&p)+8>>2]|0,136,S,V,0)|0;if((b[(X&o)>>1]|0)>0){G=ka+36|0;H=ka+4|0;C=(s|0)==0;B=h+4|0;A=(O|0)==(T|0);s=l+4|0;t=e+23|0;u=ca+20|0;v=ca+4|0;E=ca+24|0;F=0;w=0;do{D=F+T|0;l:do if((F|0)==(b[(G&o)>>1]|0))wh(ma,29,D,0,0)|0;else{m:do if($)if(!(a[((c[(H&p)>>2]|0)+(F*24|0)&n)+23>>0]&2)){z=F-w|0;_=258;break}else{w=w+1|0;break}else{y=c[(B&p)>>2]|0;if((y|0)<=0){z=0;_=258;break}x=c[(h&p)>>2]|0;r=0;while(1){z=r+1|0;if((c[(x+(r<<3)&p)+4>>2]|0)==(F|0)){z=r;_=258;break m}if((z|0)<(y|0))r=z;else{_=258;break}}}while(0);do if((_|0)==258){_=0;if((z|0)<0|C)break;if(U?(z|0)>=(c[(B&p)>>2]|0):0)break;if(M){wh(ma,47,Q,z,D)|0;break l}if(!da){Rq(e,c[((c[(s&p)>>2]|0)+(z*20|0)&p)>>2]|0,D);break l}if(A)break l;wh(ma,34,z+O|0,D,0)|0;break l}while(0);z=c[((c[(H&p)>>2]|0)+(F*24|0)&p)+4>>2]|0;do if(a[(t&n)>>0]|0){c[(ca&p)>>2]=0;c[(ca&p)+4>>2]=0;c[(ca&p)+8>>2]=0;c[(ca&p)+12>>2]=0;c[(ca&p)+16>>2]=0;c[(ca&p)+20>>2]=0;a[(u&n)>>0]=1;c[(ca&p)>>2]=78;c[(v&p)>>2]=79;c[(E&p)>>2]=0;rs(ca,z)|0;if(!(a[(u&n)>>0]|0))break;Gt(e,z,D,0);break l}while(0);Rq(e,z,D)}while(0);F=F+1|0}while((F|0)<(b[(X&o)>>1]|0))}if(!(a[(ga&n)>>0]&16)){yt(e,ka,m,c[(ja&p)>>2]|0,c[(la&p)>>2]|0,W,0,P>>>31&255^1,k&255,J,ba);zt(e,ka,0,W,0,0);Bt(e,ka,c[(ja&p)>>2]|0,c[(la&p)>>2]|0,W,m,0,I,(c[(ba&p)>>2]|0)==0&1);break}u=c[(ka&p)+60>>2]|0;n:do if(!u)u=0;else while(1){if((c[(u&p)>>2]|0)==(na|0))break n;u=c[(u&p)+24>>2]|0;if(!u){u=0;break}}while(0);qt(e,ka);xh(ma,wh(ma,15,1,(b[(X&o)>>1]|0)+2|0,W)|0,u,-10);t=c[(ma&p)+4>>2]|0;if(t)a[(t+(((c[(ma&p)+32>>2]|0)+-1|0)*20|0)&n)+3>>0]=(k|0)==10?2:k&255;ca=c[(aa&p)>>2]|0;a[(((ca|0)==0?e:ca)&n)+21>>0]=1}while(0);if(c[(K&p)>>2]&128)wh(ma,37,q,1,0)|0;if(ea)xt(e,ea,108,0,2,ka,V+-1-(b[(X&o)>>1]|0)|0,k,J);u=ma+24|0;t=c[(u&p)>>2]|0;r=~J;do if((J|0)<0){s=c[(t&p)+112>>2]|0;if(!s)break;c[(s+(r<<2)&p)>>2]=c[(ma&p)+32>>2]}while(0);s=ma+32|0;c[(t&p)+88>>2]=(c[(s&p)>>2]|0)+-1;do if(M){wh(ma,9,Q,L,0)|0;s=c[(s&p)>>2]|0;if(s>>>0>N>>>0)c[((c[(ma&p)+4>>2]|0)+(N*20|0)&p)+8>>2]=s;c[((c[(u&p)>>2]|0)&p)+88>>2]=s+-1;wh(ma,61,Q,0,0)|0}else{if(!da)break;wh(ma,16,0,L,0)|0;s=c[(s&p)>>2]|0;if(s>>>0>N>>>0)c[((c[(ma&p)+4>>2]|0)+(N*20|0)&p)+8>>2]=s;c[((c[(u&p)>>2]|0)&p)+88>>2]=s+-1}while(0);if((a[(ga&n)>>0]&16)!=0|ha)break;r=c[(ja&p)>>2]|0;if((r|0)<(c[(la&p)>>2]|0))wh(ma,61,r,0,0)|0;r=c[(ka&p)+8>>2]|0;if(!r)break;else s=0;while(1){wh(ma,61,(c[(la&p)>>2]|0)+s|0,0,0)|0;r=c[(r&p)+20>>2]|0;if(!r)break;else s=s+1|0}}while(0);if((a[(ia&n)>>0]|0)==0?(c[(e&p)+412>>2]|0)==0:0)st(e);if((((c[(na&p)+24>>2]&128|0)!=0?(a[(ia&n)>>0]|0)==0:0)?(c[(e&p)+412>>2]|0)==0:0)?(wh(ma,35,q,1,0)|0,iq(ma,1),(a[((c[(ma&p)>>2]|0)&n)+65>>0]|0)==0):0)Xg(c[(ma&p)+16>>2]|0,33488,-1,1,0)|0}else m=0}else m=0}else{m=0;l=0}while(0);Do(na,f);Nk(na,l);Mk(na,g,1);Hk(na,h);mg(na,m);i=oa;return}function ur(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0;h=i;i=i+16|0;if((i|0)>=(j|0))fa();f=h;if(!d){d=mh(b,8,0)|0;if(!d)d=0;else{g=d;k=g;a[(k&n)>>0]=0;a[(k&n)+1>>0]=0;a[(k&n)+2>>0]=0;a[(k&n)+3>>0]=0;g=g+4|0;a[(g&n)>>0]=0;a[(g&n)+1>>0]=0;a[(g&n)+2>>0]=0;a[(g&n)+3>>0]=0;g=4}}else g=4;do if((g|0)==4){c[(d&p)>>2]=Ht(b,c[(d&p)>>2]|0,8,d+4|0,f)|0;f=c[(f&p)>>2]|0;if((f|0)<0){Hk(b,d);d=0;break}else{b=Wq(b,e)|0;c[((c[(d&p)>>2]|0)+(f<<3)&p)>>2]=b;break}}while(0);i=h;return d|0}function vr(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0;if((c[(d&p)+4>>2]|0)!=0?(f=nr(c[(a&p)>>2]|0,95,d,e)|0,(f|0)!=0):0){c[(f&p)+12>>2]=b;b=f+4|0;c[(b&p)>>2]=c[(b&p)>>2]|4352;b=f}return b|0}function wr(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;e=c[(a&p)>>2]|0;d=nr(e,153,d,1)|0;if(!d){Nk(e,b);d=0}else{c[(d&p)+20>>2]=b;yr(a,d)}return d|0}function xr(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;b=c[(b&p)>>2]|0;if((d|0)!=0&(e|0)!=0?(a[(d&n)>>0]|0)==101:0){a[(e&n)>>0]=f;f=e+16|0;Gk(b,c[(f&p)>>2]|0);c[(f&p)>>2]=0}return}function yr(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;f=i;i=i+16|0;if((i|0)>=(j|0))fa();e=f;if((c[(a&p)+64>>2]|0)==0?(It(b),d=c[((c[(a&p)>>2]|0)&p)+100>>2]|0,(d|0)<(c[(b&p)+24>>2]|0)):0){c[(e&p)>>2]=d;th(a,27152,e)}i=f;return}function zr(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,i=0;d=c[(a&p)>>2]|0;i=d+20|0;e=c[(i&p)>>2]|0;if((e|0)>0){g=d+16|0;h=(b|0)==0;d=e;f=0;do{e=c[(g&p)>>2]|0;do if(c[(e+(f<<4)&p)+4>>2]|0){if(!h?(dd(b,c[(e+(f<<4)&p)>>2]|0)|0)!=0:0)break;Ar(a,f);d=c[(i&p)>>2]|0}while(0);f=f+1|0}while((f|0)<(d|0))}return}function Ar(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;f=c[(a&p)+408>>2]|0;f=(f|0)==0?a:f;a=f+332|0;d=c[(a&p)>>2]|0;e=1<>2]|0,c[(a&p)>>2]=d|e,c[(f+(b<<2)&p)+336>>2]=c[(c[((c[(g&p)+16>>2]|0)+(b<<4)&p)+12>>2]&p)>>2],(b|0)==1):0)_k(f)|0;return}function Br(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,o=0,q=0;q=i;i=i+128|0;if((i|0)>=(j|0))fa();f=q+8|0;o=q;m=q+24|0;c[(o&p)>>2]=0;k=c[(b&p)>>2]|0;if((c[(b&p)+64>>2]|0)==0?(c[(f&p)>>2]=e,l=Wk(k,d,f)|0,(l|0)!=0):0){d=b+18|0;a[(d&n)>>0]=(a[(d&n)>>0]|0)+1<<24>>24;e=b+440|0;f=m+0|0;g=e+0|0;h=f+96|0;do{a[(f&n)>>0]=a[(g&n)>>0]|0;f=f+1|0;g=g+1|0}while((f|0)<(h|0));f=e+0|0;h=f+96|0;do{c[(f&p)>>2]=0;f=f+4|0}while((f|0)<(h|0));Lh(b,l,o)|0;mg(k,c[(o&p)>>2]|0);mg(k,l);f=e+0|0;g=m+0|0;h=f+96|0;do{a[(f&n)>>0]=a[(g&n)>>0]|0;f=f+1|0;g=g+1|0}while((f|0)<(h|0));a[(d&n)>>0]=(a[(d&n)>>0]|0)+-1<<24>>24}i=q;return}function Cr(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0;k=i;i=i+48|0;if((i|0)>=(j|0))fa();g=k;h=k+16|0;b=c[((c[((c[(a&p)>>2]|0)&p)+16>>2]|0)+(b<<4)&p)>>2]|0;f=1;do{c[(g&p)>>2]=f;ad(24,h,33272,g)|0;if(_h(c[(a&p)>>2]|0,h,b)|0){c[(g&p)>>2]=b;c[(g&p)+4>>2]=h;c[(g&p)+8>>2]=d;c[(g&p)+12>>2]=e;Br(a,28840,g)}f=f+1|0}while((f|0)!=5);i=k;return}function Dr(b,d){b=b|0;d=d|0;var e=0,f=0;e=b+19|0;f=a[(e&n)>>0]|0;if(!(f<<24>>24)){f=b+72|0;e=(c[(f&p)>>2]|0)+1|0;c[(f&p)>>2]=e}else{f=f+-1<<24>>24;a[(e&n)>>0]=f;e=c[(b+((f&255)<<2)&p)+24>>2]|0}f=c[(b&p)+8>>2]|0;wh(f,25,(c[(c[((c[((c[(b&p)>>2]|0)&p)+16>>2]|0)+(d<<4)&p)+12>>2]&p)>>2]|0)+1|0,e,0)|0;wh(f,52,d,1,e)|0;_r(b,e);return}function Er(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0;l=i;i=i+32|0;if((i|0)>=(j|0))fa();k=l;h=Oq(b)|0;f=b+19|0;g=a[(f&n)>>0]|0;if(!(g<<24>>24)){g=b+72|0;f=(c[(g&p)>>2]|0)+1|0;c[(g&p)>>2]=f}else{g=g+-1<<24>>24;a[(f&n)>>0]=g;f=c[(b+((g&255)<<2)&p)+24>>2]|0}wh(h,117,d,f,e)|0;g=c[(b&p)+408>>2]|0;a[(((g|0)==0?b:g)&n)+21>>0]=1;c[(k&p)>>2]=c[((c[((c[(b&p)>>2]|0)&p)+16>>2]|0)+(e<<4)&p)>>2];c[(k&p)+4>>2]=(e|0)==1?13184:13208;c[(k&p)+8>>2]=d;c[(k&p)+12>>2]=f;c[(k&p)+16>>2]=f;Br(b,33216,k);_r(b,f);i=l;return}function Fr(f,g,h,k,l){f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;var m=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;X=i;i=i+96|0;if((i|0)>=(j|0))fa();G=X+24|0;w=X+80|0;q=X+64|0;A=X+16|0;t=X+60|0;u=X+56|0;O=X+52|0;N=X+48|0;z=X+44|0;D=X+40|0;E=X+36|0;F=X+32|0;x=X+8|0;s=X;W=c[(f&p)>>2]|0;T=Oq(f)|0;do if((T|0)!=0?(S=T+88|0,b[(S&o)>>1]=b[(S&o)>>1]|16,S=f+72|0,c[(S&p)>>2]=2,Q=er(f,g,h,w)|0,(Q|0)>=0):0){R=W+16|0;C=c[(R&p)>>2]|0;if((Q|0)==1?(_k(f)|0)!=0:0)break;V=Wq(W,c[(w&p)>>2]|0)|0;if(V){if(!l)U=Wq(W,k)|0;else{c[(G&p)>>2]=k;U=uh(W,30104,G)|0}B=h+4|0;if(!(c[(B&p)>>2]|0))L=0;else L=c[(C+(Q<<4)&p)>>2]|0;a:do if(!(Sq(f,19,V,U,L)|0)){c[(q&p)>>2]=0;c[(q&p)+4>>2]=V;c[(q&p)+8>>2]=U;c[(q&p)+12>>2]=0;r=W+452|0;c[(r&p)>>2]=0;g=cg(W,L,14,q)|0;if(!g){k=c[(q&p)>>2]|0;if(!k)break;m=(c[(S&p)>>2]|0)+1|0;c[(S&p)>>2]=m;xh(T,wh(T,97,0,m,0)|0,k,0);iq(T,1);if(!(a[((c[(T&p)>>2]|0)&n)+65>>0]|0))Xg(c[(T&p)+16>>2]|0,30112,-1,1,0)|0;wh(T,35,m,1,0)|0;Wc(c[(q&p)>>2]|0);break}else if((g|0)==12){w=0;q=56;b:while(1){while(1){l=(w+q|0)/2|0;g=c[((l*12|0)&p)+30120>>2]|0;k=dd(V,g)|0;if(!k){w=l;break b}if((k|0)<0){g=l;break}if((l|0)<(q|0))w=l+1|0;else break a}g=g+-1|0;if((w|0)>(g|0))break a;else q=g}if((a[((w*12|0)&n)+30125>>0]&1)!=0?(Gn(f)|0)!=0:0)break;do switch(d[((w*12|0)&n)+30124>>0]|0){case 10:{q=1<>2]=c[(F&p)>>2]|q;if(U){c[(G&p)>>2]=0;Dn(U,G)|0;k=c[(G&p)>>2]|0;if((k|0)<=-1)k=(k|0)==-2147483648?2147483647:0-k|0;G=c[(f&p)+408>>2]|0;Ar(f,Q);G=((G|0)==0?f:G)+328|0;c[(G&p)>>2]=c[(G&p)>>2]|q;wh(T,25,k,1,0)|0;wh(T,52,Q,3,1)|0;c[((c[(C+(Q<<4)&p)+12>>2]|0)&p)+80>>2]=k;pq(c[(C+(Q<<4)&p)+4>>2]|0,k);break a}iq(T,1);if(!(a[((c[(T&p)>>2]|0)&n)+65>>0]|0))Xg(c[(T&p)+16>>2]|0,30848,-1,1,0)|0;c[(S&p)>>2]=(c[(S&p)>>2]|0)+2;k=yh(T,9,30808)|0;l=c[(T&p)+32>>2]|0;if(l>>>0>k>>>0)c[((c[(T&p)+4>>2]|0)+(k*20|0)&p)+4>>2]=Q;m=k+1|0;if(l>>>0>m>>>0)c[((c[(T&p)+4>>2]|0)+(m*20|0)&p)+4>>2]=Q;m=k+6|0;if(l>>>0<=m>>>0)break a;c[((c[(T&p)+4>>2]|0)+(m*20|0)&p)+4>>2]=2e3;break a}case 19:{k=c[(c[((c[(C+(Q<<4)&p)+4>>2]|0)&p)+4>>2]&p)>>2]|0;G=A;c[(G&p)>>2]=-2;c[(G&p)+4>>2]=-1;if(U){ji(U,A)|0;m=A;l=c[(m&p)>>2]|0;m=c[(m&p)+4>>2]|0;if((m|0)<-1|(m|0)==-1&l>>>0<4294967295){l=A;c[(l&p)>>2]=-1;c[(l&p)+4>>2]=-1;l=-1;m=-1}G=k+160|0;c[(G&p)>>2]=l;c[(G&p)+4>>2]=m;k=c[(k&p)+208>>2]|0;if(k){G=k+16|0;c[(G&p)>>2]=l;c[(G&p)+4>>2]=m}}else{m=k+160|0;l=c[(m&p)>>2]|0;m=c[(m&p)+4>>2]|0}G=A;c[(G&p)>>2]=l;c[(G&p)+4>>2]=m;Jt(f,30952,l,m);break a}case 28:{q=Oq(f)|0;iq(q,4);c[(S&p)>>2]=4;Ar(f,Q);if((((a[((c[(q&p)>>2]|0)&n)+65>>0]|0)==0?(Xg(c[(q&p)+16>>2]|0,31232,-1,1,0)|0,(a[((c[(q&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(q&p)+16>>2]|0)+40|0,20632,-1,1,0)|0,(a[((c[(q&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(q&p)+16>>2]|0)+80|0,31240,-1,1,0)|0,(a[((c[(q&p)>>2]|0)&n)+65>>0]|0)==0):0)Xg((c[(q&p)+16>>2]|0)+120|0,31248,-1,1,0)|0;l=c[((c[(C+(Q<<4)&p)+12>>2]|0)&p)+16>>2]|0;if(!l)break a;do{m=c[(l&p)+8>>2]|0;G=c[(m&p)>>2]|0;xh(q,wh(q,97,0,1,0)|0,G,0);wh(q,28,0,2,0)|0;G=Ws(b[(m&o)+42>>1]|0)|0;wh(q,25,G,3,0)|0;G=Ws(b[(m&o)+28>>1]|0)|0;wh(q,25,G,4,0)|0;wh(q,35,1,4,0)|0;m=c[(m&p)+8>>2]|0;if(m)do{G=c[(m&p)>>2]|0;xh(q,wh(q,97,0,2,0)|0,G,0);G=Ws(b[(m&o)+44>>1]|0)|0;wh(q,25,G,3,0)|0;G=Ws(b[(c[(m&p)+8>>2]&o)>>1]|0)|0;wh(q,25,G,4,0)|0;wh(q,35,1,4,0)|0;m=c[(m&p)+20>>2]|0}while((m|0)!=0);l=c[(l&p)>>2]|0}while((l|0)!=0);break}case 15:{if(!U)break a;s=bq(W,U,L)|0;if(!s)break a;w=(c[((w*12|0)&p)+30128>>2]|0)==0;t=s+46|0;G=w?3:6;r=b[((w?t:s+48|0)&o)>>1]|0;u=r&65535;c[(S&p)>>2]=G;q=c[(s&p)+12>>2]|0;iq(T,G);Ar(f,Q);if(((a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0?(Xg(c[(T&p)+16>>2]|0,31256,-1,1,0)|0,(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(T&p)+16>>2]|0)+40|0,31176,-1,1,0)|0,(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0):0)Xg((c[(T&p)+16>>2]|0)+80|0,31184,-1,1,0)|0;if(((!w?(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0:0)?(Xg((c[(T&p)+16>>2]|0)+120|0,31264,-1,1,0)|0,(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(T&p)+16>>2]|0)+160|0,31272,-1,1,0)|0,(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0):0)Xg((c[(T&p)+16>>2]|0)+200|0,31280,-1,1,0)|0;if(!(r<<16>>16))break a;m=s+4|0;l=s+28|0;k=s+32|0;s=q+4|0;q=0;do{G=b[((c[(m&p)>>2]|0)+(q<<1)&o)>>1]|0;wh(T,25,q,1,0)|0;r=G<<16>>16;wh(T,25,r,2,0)|0;if(G<<16>>16<0)wh(T,28,0,3,0)|0;else{G=c[((c[(s&p)>>2]|0)+(r*24|0)&p)>>2]|0;xh(T,wh(T,97,0,3,0)|0,G,0)}if(!w){wh(T,25,d[((c[(l&p)>>2]|0)+q&n)>>0]|0,4,0)|0;G=c[((c[(k&p)>>2]|0)+(q<<2)&p)>>2]|0;xh(T,wh(T,97,0,5,0)|0,G,0);wh(T,25,(q|0)<(e[(t&o)>>1]|0)&1,6,0)|0}wh(T,35,1,c[(S&p)>>2]|0,0)|0;q=q+1|0}while((q|0)<(u|0));break}case 22:{Ar(f,Q);k=(c[(S&p)>>2]|0)+1|0;c[(S&p)>>2]=k;if((a[(V&n)>>0]&-33)<<24>>24==80)wh(T,153,Q,k,0)|0;else{c[(G&p)>>2]=0;if(U){Dn(U,G)|0;m=c[(G&p)>>2]|0;if((m|0)<=-1)m=(m|0)==-2147483648?2147483647:0-m|0}else m=0;wh(T,154,Q,k,m)|0}wh(T,35,k,1,0)|0;iq(T,1);if(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)break a;Xg(c[(T&p)+16>>2]|0,V,-1,1,-1)|0;break a}case 24:{l=c[(C+(Q<<4)&p)+4>>2]|0;if(U){c[(G&p)>>2]=0;Dn(U,G)|0;G=c[(G&p)>>2]|0;c[(W&p)+72>>2]=G;if((xg(l,G,-1,0)|0)!=7)break a;a[(W&n)+65>>0]=1;break a}if(!l){l=0;m=0}else{m=c[((c[(l&p)+4>>2]|0)&p)+32>>2]|0;l=m;m=((m|0)<0)<<31>>31}Jt(f,30864,l,m);break a}case 25:{l=c[(C+(Q<<4)&p)+4>>2]|0;if(U){m=(ii(U,1,0)|0)<<24>>24!=0&1;if((c[(B&p)>>2]|0)==0?(y=W+20|0,(c[(y&p)>>2]|0)>0):0){k=0;do{so(c[((c[(R&p)>>2]|0)+(k<<4)&p)+4>>2]|0,m)|0;k=k+1|0}while((k|0)<(c[(y&p)>>2]|0))}}else m=-1;G=so(l,m)|0;Jt(f,30880,G,((G|0)<0)<<31>>31);break a}case 18:{iq(T,1);if(!(a[((c[(T&p)>>2]|0)&n)+65>>0]|0))Xg(c[(T&p)+16>>2]|0,30936,-1,1,0)|0;c:do if(U){k=U;while(1)if(!(a[(k&n)>>0]|0))break;else k=k+1|0;m=k-U&1073741823;k=0;while(1){if(!(Fc(U,c[(k<<2&p)+32216>>2]|0,m)|0))break;k=k+1|0;if((k|0)==6){P=91;break c}}if((k|0)!=-1)q=Q;else P=91}else P=91;while(0);if((P|0)==91)if(!(c[(B&p)>>2]|0)){c[(B&p)>>2]=1;k=-1;q=0}else{k=-1;q=Q}m=c[(W&p)+20>>2]|0;if((m|0)>0){l=T+96|0;do{m=m+-1|0;do if(c[((c[(R&p)>>2]|0)+(m<<4)&p)+4>>2]|0){if((m|0)!=(q|0)?(c[(B&p)>>2]|0)!=0:0)break;c[(l&p)>>2]=c[(l&p)>>2]|1<0)}wh(T,35,1,1,0)|0;break a}case 32:{if(!U){if(!(c[2708]|0))break a;iq(T,1);if(!(a[((c[(T&p)>>2]|0)&n)+65>>0]|0))Xg(c[(T&p)+16>>2]|0,31048,-1,1,0)|0;G=c[2708]|0;xh(T,wh(T,97,0,1,0)|0,G,0);wh(T,35,1,1,0)|0;break a}if((a[(U&n)>>0]|0)!=0?(F=c[(W&p)>>2]|0,F=(pc[c[(F&p)+32>>2]&31](F,U,1,u)|0)!=0,F|(c[(u&p)>>2]|0)==0):0){th(f,31072,G);break a}if((d[(W&n)+64>>0]|0)<2)Kt(f)|0;Wc(c[2708]|0);if(!(a[(U&n)>>0]|0)){c[2708]=0;break a}else{c[(G&p)>>2]=U;c[2708]=_c(10344,G)|0;break a}}case 14:{if(!((U|0)!=0?(G=(Dn(U,t)|0)==0,m=c[(t&p)>>2]|0,!(G|(m|0)<1)):0)){c[(t&p)>>2]=2147483647;m=2147483647}l=c[(f&p)+408>>2]|0;Ar(f,Q);l=((l|0)==0?f:l)+328|0;c[(l&p)>>2]=c[(l&p)>>2]|1<>2]|0;if(l>>>0>m>>>0)c[((c[(T&p)+4>>2]|0)+(m*20|0)&p)+8>>2]=l;c[((c[(T&p)+24>>2]|0)&p)+88>>2]=l+-1;break a}case 30:{if(!U)break a;h=_h(W,U,L)|0;if(!h)break a;k=c[(h&p)+8>>2]|0;d:do if(!k)k=0;else while(1){if((a[(k&n)+51>>0]&3)==2)break d;k=c[(k&p)+20>>2]|0;if(!k){k=0;break}}while(0);iq(T,6);c[(S&p)>>2]=6;Ar(f,Q);do if((((a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0?(Xg(c[(T&p)+16>>2]|0,31176,-1,1,0)|0,(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(T&p)+16>>2]|0)+40|0,31184,-1,1,0)|0,(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(T&p)+16>>2]|0)+80|0,31192,-1,1,0)|0,(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0):0){Xg((c[(T&p)+16>>2]|0)+120|0,31200,-1,1,0)|0;if(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)break;Xg((c[(T&p)+16>>2]|0)+160|0,31208,-1,1,0)|0;if(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)break;Xg((c[(T&p)+16>>2]|0)+200|0,31224,-1,1,0)|0}while(0);hr(f,h)|0;t=h+38|0;m=b[(t&o)>>1]|0;if(m<<16>>16<=0)break a;u=(k|0)==0;l=k+4|0;w=0;r=0;g=c[(h&p)+4>>2]|0;while(1){s=g+23|0;if(!(a[(s&n)>>0]&2)){wh(T,25,w-r|0,1,0)|0;q=c[(g&p)>>2]|0;xh(T,wh(T,97,0,2,0)|0,q,0);q=c[(g&p)+12>>2]|0;xh(T,wh(T,97,0,3,0)|0,(q|0)==0?10360:q,0);wh(T,25,(a[(g&n)+20>>0]|0)!=0&1,4,0)|0;q=c[(g&p)+8>>2]|0;if(!q)wh(T,28,0,5,0)|0;else xh(T,wh(T,97,0,5,0)|0,q,0);k=a[(s&n)>>0]&1;e:do if(k<<24>>24==0|u)q=(k^1)&255^1;else{q=b[(t&o)>>1]|0;if(q<<16>>16<1){q=1;break}m=c[(l&p)>>2]|0;s=q<<16>>16;k=1;while(1){q=k+1|0;if((b[(m+(k+-1<<1)&o)>>1]|0)==(w|0)){q=k;break e}if((k|0)<(s|0))k=q;else break}}while(0);wh(T,25,q,6,0)|0;wh(T,35,1,6,0)|0;m=b[(t&o)>>1]|0}else r=r+1|0;w=w+1|0;if((w|0)>=(m<<16>>16|0))break;else g=g+24|0}break}case 2:{if(!U){Jt(f,g,(c[((w*12|0)&p)+30128>>2]&c[(W&p)+24>>2]|0)!=0&1,0);break a}l=c[((w*12|0)&p)+30128>>2]|0;l=(a[(W&n)+63>>0]|0)==0?l&-524289:l;if(!((ii(U,1,0)|0)<<24>>24)){G=W+24|0;c[(G&p)>>2]=c[(G&p)>>2]&~l;if((l|0)==16777216){G=W+512|0;c[(G&p)>>2]=0;c[(G&p)+4>>2]=0}}else{G=W+24|0;c[(G&p)>>2]=c[(G&p)>>2]|l}wh(T,144,0,0,0)|0;Lt(W);break a}case 5:{if(!U)break a;G=(ii(U,1,0)|0)<<24>>24!=0;F=G?32e3:19240;Qh(W,19248,2,1,F,40,0,0,0)|0;Qh(W,19248,3,1,F,40,0,0,0)|0;Qh(W,19232,2,1,10352,40,0,0,0)|0;Ot(W,19232,12);Ot(W,19248,G?12:4);break a}case 17:{g=a[(V&n)>>0]|0;A=(c[(h&p)>>2]|0)==0?-1:Q;c[(S&p)>>2]=6;iq(T,1);if(!(a[((c[(T&p)>>2]|0)&n)+65>>0]|0))Xg(c[(T&p)+16>>2]|0,31464,-1,1,0)|0;c[(z&p)>>2]=100;if(U){Dn(U,z)|0;s=c[(z&p)>>2]|0;if((s|0)<1){c[(z&p)>>2]=100;s=100}}else s=100;wh(T,25,s,1,0)|0;M=W+20|0;w=c[(M&p)>>2]|0;if((w|0)>0){L=(A|0)<0;m=T+32|0;I=T+4|0;H=T+24|0;N=(g&-33)<<24>>24==81;O=0;do{if(L|(O|0)==(A|0)){Ar(f,O);w=wh(T,137,1,0,0)|0;wh(T,24,0,0,0)|0;l=c[(m&p)>>2]|0;if(l>>>0>w>>>0)c[((c[(I&p)>>2]|0)+(w*20|0)&p)+8>>2]=l;c[((c[(H&p)>>2]|0)&p)+88>>2]=l+-1;k=(c[((c[(R&p)>>2]|0)+(O<<4)&p)+12>>2]|0)+16|0;w=c[(k&p)>>2]|0;if(!w)g=0;else{g=0;do{l=c[(w&p)+8>>2]|0;if(!(a[(l&n)+44>>0]&32)){wh(T,25,c[(l&p)+32>>2]|0,g+2|0,0)|0;g=g+1|0}l=c[(l&p)+8>>2]|0;if(l)do{wh(T,25,c[(l&p)+40>>2]|0,g+2|0,0)|0;g=g+1|0;l=c[(l&p)+20>>2]|0}while((l|0)!=0);w=c[(w&p)>>2]|0}while((w|0)!=0)}C=c[(S&p)>>2]|0;w=g+8|0;c[(S&p)>>2]=(C|0)>(w|0)?C:w;wh(T,127,2,g,1)|0;w=c[(I&p)>>2]|0;if(w)a[(w+(((c[(m&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=O;g=wh(T,76,2,0,0)|0;c[(G&p)>>2]=c[((c[(R&p)>>2]|0)+(O<<4)&p)>>2];w=uh(W,31480,G)|0;xh(T,wh(T,97,0,3,0)|0,w,-1);wh(T,32,2,4,1)|0;wh(T,94,4,3,2)|0;wh(T,35,2,1,0)|0;w=c[(m&p)>>2]|0;if(w>>>0>g>>>0)c[((c[(I&p)>>2]|0)+(g*20|0)&p)+8>>2]=w;c[((c[(H&p)>>2]|0)&p)+88>>2]=w+-1;w=c[(k&p)>>2]|0;if(!((w|0)==0|N))do{x=c[(w&p)+8>>2]|0;J=x+8|0;g=c[(J&p)>>2]|0;do if(g){f:do if(!(a[(x&n)+44>>0]&32))g=0;else while(1){if((a[(g&n)+51>>0]&3)==2)break f;g=c[(g&p)+20>>2]|0;if(!g){g=0;break}}while(0);l=wh(T,137,1,0,0)|0;wh(T,24,0,0,0)|0;k=c[(m&p)>>2]|0;if(k>>>0>l>>>0)c[((c[(I&p)>>2]|0)+(l*20|0)&p)+8>>2]=k;c[((c[(H&p)>>2]|0)&p)+88>>2]=k+-1;at(f);pt(f,x,54,1,0,D,E)|0;wh(T,25,0,7,0)|0;k=c[(J&p)>>2]|0;if(!k)l=8;else{l=0;while(1){wh(T,25,0,l+8|0,0)|0;k=c[(k&p)+20>>2]|0;if(!k)break;else l=l+1|0}l=l+9|0}K=c[(S&p)>>2]|0;c[(S&p)>>2]=(K|0)>(l|0)?K:l;wh(T,108,c[(D&p)>>2]|0,0,0)|0;K=wh(T,37,7,1,0)|0;u=x+38|0;l=b[(u&o)>>1]|0;if(l<<16>>16>0){h=x+36|0;v=x+4|0;t=0;do{do if((t|0)!=(b[(h&o)>>1]|0)){if(!(a[((c[(v&p)>>2]|0)+(t*24|0)&n)+20>>0]|0))break;nt(T,x,c[(D&p)>>2]|0,t,3);l=c[(I&p)>>2]|0;if(l)a[(l+(((c[(m&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=-128;l=wh(T,77,3,0,0)|0;wh(T,37,1,-1,0)|0;q=c[((c[(v&p)>>2]|0)+(t*24|0)&p)>>2]|0;c[(G&p)>>2]=c[(x&p)>>2];c[(G&p)+4>>2]=q;q=uh(W,31504,G)|0;xh(T,wh(T,97,0,3,0)|0,q,-1);wh(T,35,3,1,0)|0;q=wh(T,137,1,0,0)|0;wh(T,24,0,0,0)|0;r=c[(m&p)>>2]|0;if(r>>>0>l>>>0)c[((c[(I&p)>>2]|0)+(l*20|0)&p)+8>>2]=r;l=r+-1|0;k=(c[(H&p)>>2]|0)+88|0;c[(k&p)>>2]=l;if(r>>>0>q>>>0)c[((c[(I&p)>>2]|0)+(q*20|0)&p)+8>>2]=r;c[(k&p)>>2]=l;l=b[(u&o)>>1]|0}while(0);t=t+1|0}while((t|0)<(l<<16>>16|0))}l=c[(J&p)>>2]|0;if(l){z=x+4|0;y=0;r=0;k=-1;while(1){q=xs(T)|0;if((g|0)!=(l|0)){k=Pt(f,l,c[(D&p)>>2]|0,0,0,F,r,k)|0;wh(T,37,y+8|0,1,0)|0;x=e[(l&o)+48>>1]|0;q=wh(T,69,(c[(E&p)>>2]|0)+y|0,q,k)|0;xh(T,q,x,-14);wh(T,37,1,-1,0)|0;xh(T,wh(T,97,0,3,0)|0,31528,-2);wh(T,94,7,3,3)|0;xh(T,wh(T,97,0,4,0)|0,31536,-2);wh(T,94,4,3,3)|0;x=c[(l&p)>>2]|0;v=wh(T,97,0,4,0)|0;xh(T,v,x,0);wh(T,94,4,3,3)|0;wh(T,35,3,1,0)|0;x=wh(T,137,1,0,0)|0;wh(T,24,0,0,0)|0;r=c[(m&p)>>2]|0;if(r>>>0>q>>>0)c[((c[(I&p)>>2]|0)+(q*20|0)&p)+8>>2]=r;q=c[(H&p)>>2]|0;c[(q&p)+88>>2]=r+-1;if(a[(l&n)+50>>0]|0){h=xs(T)|0;u=l+46|0;q=b[(u&o)>>1]|0;if(q<<16>>16){t=l+4|0;r=0;do{if(!(a[((c[(z&p)>>2]|0)+((b[((c[(t&p)>>2]|0)+(r<<1)&o)>>1]|0)*24|0)&n)+20>>0]|0)){wh(T,76,r+k|0,h,0)|0;q=b[(u&o)>>1]|0}r=r+1|0}while((r|0)<(q&65535|0))}q=wh(T,9,(c[(E&p)>>2]|0)+y|0,0,0)|0;wh(T,16,0,h,0)|0;r=c[(m&p)>>2]|0;if(r>>>0>q>>>0)c[((c[(I&p)>>2]|0)+(q*20|0)&p)+8>>2]=r;c[((c[(H&p)>>2]|0)&p)+88>>2]=r+-1;q=e[(u&o)>>1]|0;xh(T,wh(T,114,(c[(E&p)>>2]|0)+y|0,h,k)|0,q,-14);wh(T,37,1,-1,0)|0;xh(T,wh(T,97,0,3,0)|0,31560,-2);wh(T,16,0,v,0)|0;q=c[(H&p)>>2]|0;t=~h;do if((h|0)<0){r=c[(q&p)+112>>2]|0;if(!r)break;c[(r+(t<<2)&p)>>2]=c[(m&p)>>2]}while(0);r=c[(m&p)>>2]|0;c[(q&p)+88>>2]=r+-1}if(r>>>0>x>>>0)c[((c[(I&p)>>2]|0)+(x*20|0)&p)+8>>2]=r;c[(q&p)+88>>2]=r+-1;Qt(f,c[(F&p)>>2]|0);r=l}l=c[(l&p)+20>>2]|0;if(!l)break;else y=y+1|0}}wh(T,9,c[(D&p)>>2]|0,K,0)|0;l=K+-1|0;k=c[(m&p)>>2]|0;if(k>>>0>l>>>0)c[((c[(I&p)>>2]|0)+(l*20|0)&p)+8>>2]=k;c[((c[(H&p)>>2]|0)&p)+88>>2]=k+-1;xh(T,wh(T,97,0,2,0)|0,31592,-2);l=c[(J&p)>>2]|0;if(!l)break;else q=0;while(1){if((g|0)!=(l|0)){k=c[(m&p)>>2]|0;wh(T,137,1,k+2|0,0)|0;wh(T,24,0,0,0)|0;wh(T,50,(c[(E&p)>>2]|0)+q|0,3,0)|0;wh(T,79,q+8|0,k+8|0,3)|0;k=c[(I&p)>>2]|0;if(k)a[(k+(((c[(m&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=-112;wh(T,37,1,-1,0)|0;C=c[(l&p)>>2]|0;xh(T,wh(T,97,0,3,0)|0,C,0);wh(T,94,3,2,7)|0;wh(T,35,7,1,0)|0}l=c[(l&p)+20>>2]|0;if(!l)break;else q=q+1|0}}while(0);w=c[(w&p)>>2]|0}while((w|0)!=0);w=c[(M&p)>>2]|0}O=O+1|0}while((O|0)<(w|0))}else m=T+32|0;l=yh(T,3,31448)|0;m=c[(m&p)>>2]|0;if(m>>>0>l>>>0){c[((c[(T&p)+4>>2]|0)+(l*20|0)&p)+12>>2]=0-s;c[((c[(T&p)+4>>2]|0)+(l*20|0)&p)+8>>2]=m}c[((c[(T&p)+24>>2]|0)&p)+88>>2]=m+-1;xh(T,l+1|0,31624,-2);break a}case 21:{do if(U){if(dd(U,30904)|0)if(!(dd(U,30896)|0))k=0;else{P=66;break}else k=1;if(!(c[(B&p)>>2]|0)){s=c[(W&p)+20>>2]|0;if((s|0)>2){q=c[(R&p)>>2]|0;m=k&255;r=2;do{l=c[(c[((c[(q+(r<<4)&p)+4>>2]|0)&p)+4>>2]&p)>>2]|0;do if(!(a[(l&n)+12>>0]|0)){G=c[(l&p)+208>>2]|0;if((G|0)!=0?(a[(G&n)+43>>0]|0)==2:0)break;a[(l&n)+4>>0]=m}while(0);r=r+1|0}while((r|0)<(s|0))}else m=k&255;a[(W&n)+66>>0]=m;P=74}else P=74}else P=66;while(0);if((P|0)==66)if(!(c[(B&p)>>2]|0))l=W+66|0;else{k=-1;P=74}if((P|0)==74){m=c[(c[((c[(C+(Q<<4)&p)+4>>2]|0)&p)+4>>2]&p)>>2]|0;do if((k|0)>-1?(a[(m&n)+12>>0]|0)==0:0){G=c[(m&p)+208>>2]|0;if((G|0)!=0?(a[(G&n)+43>>0]|0)==2:0)break;a[(m&n)+4>>0]=k}while(0);l=m+4|0}l=(a[(l&n)>>0]|0)==1?30904:30896;iq(T,1);if(!(a[((c[(T&p)>>2]|0)&n)+65>>0]|0))Xg(c[(T&p)+16>>2]|0,30920,-1,1,0)|0;xh(T,wh(T,97,0,1,0)|0,l,0);wh(T,35,1,1,0)|0;break a}case 16:{if(!U)break a;k=_h(W,U,L)|0;if(!k)break a;q=Oq(f)|0;iq(q,5);c[(S&p)>>2]=5;Ar(f,Q);if(((((a[((c[(q&p)>>2]|0)&n)+65>>0]|0)==0?(Xg(c[(q&p)+16>>2]|0,31288,-1,1,0)|0,(a[((c[(q&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(q&p)+16>>2]|0)+40|0,31184,-1,1,0)|0,(a[((c[(q&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(q&p)+16>>2]|0)+80|0,31296,-1,1,0)|0,(a[((c[(q&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(q&p)+16>>2]|0)+120|0,31304,-1,1,0)|0,(a[((c[(q&p)>>2]|0)&n)+65>>0]|0)==0):0)Xg((c[(q&p)+16>>2]|0)+160|0,31312,-1,1,0)|0;m=c[(k&p)+8>>2]|0;if(!m)break a;else l=0;while(1){wh(q,25,l,1,0)|0;G=c[(m&p)>>2]|0;xh(q,wh(q,97,0,2,0)|0,G,0);wh(q,25,(a[(m&n)+50>>0]|0)!=0&1,3,0)|0;G=c[((a[(m&n)+51>>0]&3)<<2&p)+31336>>2]|0;xh(q,wh(q,97,0,4,0)|0,G,0);wh(q,25,(c[(m&p)+36>>2]|0)!=0&1,5,0)|0;wh(q,35,1,5,0)|0;m=c[(m&p)+20>>2]|0;if(!m)break;else l=l+1|0}break}case 1:{k=c[(C+(Q<<4)&p)+4>>2]|0;if(!U){m=c[(k&p)+4>>2]|0;c[(m&p)+4>>2]=c[(k&p)>>2];if(!(a[(m&n)+17>>0]|0)){m=0;l=0}else{l=(a[(m&n)+18>>0]|0)==0;m=l?1:2;l=l?0:0}Jt(f,30976,m,l);break a}if(dd(U,32192)|0)if(dd(U,31880)|0)if(!(dd(U,32200)|0))m=2;else{c[(G&p)>>2]=0;Dn(U,G)|0;m=c[(G&p)>>2]|0;m=m>>>0<3?m&255:0}else m=1;else m=0;a[(W&n)+67>>0]=m;r=m+-1|0;if(!((vn(k,m)|0)==0&r>>>0<2))break a;l=yh(T,6,30992)|0;q=c[(T&p)+32>>2]|0;if(q>>>0>l>>>0)c[((c[(T&p)+4>>2]|0)+(l*20|0)&p)+4>>2]=Q;k=l+1|0;if(q>>>0>k>>>0)c[((c[(T&p)+4>>2]|0)+(k*20|0)&p)+4>>2]=Q;k=l+2|0;m=l+4|0;if(q>>>0>k>>>0)c[((c[(T&p)+4>>2]|0)+(k*20|0)&p)+8>>2]=m;if(q>>>0>m>>>0)c[((c[(T&p)+4>>2]|0)+(m*20|0)&p)+4>>2]=r;m=l+5|0;if(q>>>0>m>>>0)c[((c[(T&p)+4>>2]|0)+(m*20|0)&p)+4>>2]=Q;G=T+96|0;c[(G&p)>>2]=c[(G&p)>>2]|1<>2]=3;if(((a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0?(Xg(c[(T&p)+16>>2]|0,31288,-1,1,0)|0,(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(T&p)+16>>2]|0)+40|0,31184,-1,1,0)|0,(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0):0)Xg((c[(T&p)+16>>2]|0)+80|0,31352,-1,1,0)|0;l=W+20|0;m=c[(l&p)>>2]|0;if((m|0)>0)q=0;else break a;do{if(c[((c[(R&p)>>2]|0)+(q<<4)&p)+4>>2]|0){wh(T,25,q,1,0)|0;k=c[((c[(R&p)>>2]|0)+(q<<4)&p)>>2]|0;xh(T,wh(T,97,0,2,0)|0,k,0);k=c[(c[((c[((c[(R&p)>>2]|0)+(q<<4)&p)+4>>2]|0)&p)+4>>2]&p)>>2]|0;if(!(a[(k&n)+15>>0]|0))k=c[(k&p)+168>>2]|0;else k=10360;xh(T,wh(T,97,0,3,0)|0,k,0);wh(T,35,1,3,0)|0;m=c[(l&p)>>2]|0}q=q+1|0}while((q|0)<(m|0));break}case 6:{iq(T,2);c[(S&p)>>2]=2;if((a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0?(Xg(c[(T&p)+16>>2]|0,31288,-1,1,0)|0,(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0):0)Xg((c[(T&p)+16>>2]|0)+40|0,31184,-1,1,0)|0;m=c[(W&p)+436>>2]|0;if(!m)break a;else l=0;while(1){G=c[(m&p)+8>>2]|0;wh(T,25,l,1,0)|0;G=c[(G&p)>>2]|0;xh(T,wh(T,97,0,2,0)|0,G,0);wh(T,35,1,2,0)|0;m=c[(m&p)>>2]|0;if(!m)break;else l=l+1|0}break}case 13:{if(!U)break a;k=_h(W,U,L)|0;if(!k)break a;g=Oq(f)|0;q=c[(k&p)+16>>2]|0;if(!q)break a;iq(g,8);c[(S&p)>>2]=8;Ar(f,Q);do if((((a[((c[(g&p)>>2]|0)&n)+65>>0]|0)==0?(Xg(c[(g&p)+16>>2]|0,31360,-1,1,0)|0,(a[((c[(g&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(g&p)+16>>2]|0)+40|0,31288,-1,1,0)|0,(a[((c[(g&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(g&p)+16>>2]|0)+80|0,31232,-1,1,0)|0,(a[((c[(g&p)>>2]|0)&n)+65>>0]|0)==0):0){Xg((c[(g&p)+16>>2]|0)+120|0,31368,-1,1,0)|0;if(a[((c[(g&p)>>2]|0)&n)+65>>0]|0)break;Xg((c[(g&p)+16>>2]|0)+160|0,31376,-1,1,0)|0;if(a[((c[(g&p)>>2]|0)&n)+65>>0]|0)break;Xg((c[(g&p)+16>>2]|0)+200|0,31384,-1,1,0)|0;if(a[((c[(g&p)>>2]|0)&n)+65>>0]|0)break;Xg((c[(g&p)+16>>2]|0)+240|0,31400,-1,1,0)|0;if(a[((c[(g&p)>>2]|0)&n)+65>>0]|0)break;Xg((c[(g&p)+16>>2]|0)+280|0,31416,-1,1,0)|0}while(0);v=k+4|0;w=0;while(1){k=q+20|0;if((c[(k&p)>>2]|0)>0){m=q+25|0;l=q+26|0;t=q+8|0;h=0;do{u=c[(q+(h<<3)&p)+40>>2]|0;s=d[(m&n)>>0]|0;if((s|0)==8)r=32072;else if((s|0)==9)r=32088;else if((s|0)==6)r=32096;else if((s|0)==7)r=32056;else r=32112;s=d[(l&n)>>0]|0;if((s|0)==8)s=32072;else if((s|0)==9)s=32088;else if((s|0)==6)s=32096;else if((s|0)==7)s=32056;else s=32112;wh(g,25,w,1,0)|0;wh(g,25,h,2,0)|0;G=c[(t&p)>>2]|0;xh(g,wh(g,97,0,3,0)|0,G,0);G=c[((c[(v&p)>>2]|0)+((c[(q+(h<<3)&p)+36>>2]|0)*24|0)&p)>>2]|0;xh(g,wh(g,97,0,4,0)|0,G,0);xh(g,wh(g,(u|0)!=0?97:28,0,5,0)|0,u,0);xh(g,wh(g,97,0,6,0)|0,s,0);xh(g,wh(g,97,0,7,0)|0,r,0);xh(g,wh(g,97,0,8,0)|0,31424,0);wh(g,35,1,8,0)|0;h=h+1|0}while((h|0)<(c[(k&p)>>2]|0))}q=c[(q&p)+4>>2]|0;if(!q)break;else w=w+1|0}break}case 11:{if(!U){if(Gn(f)|0)break a;iq(T,1);if(!(a[((c[(T&p)>>2]|0)&n)+65>>0]|0))Xg(c[(T&p)+16>>2]|0,31784,-1,1,0)|0;wh(T,97,0,1,0)|0;xh(T,-1,c[(d[((c[(f&p)>>2]|0)&n)+62>>0]<<3&p)+31632>>2]|0,-2);wh(T,35,1,1,0)|0;break a}k=c[((c[(R&p)>>2]|0)&p)+12>>2]|0;if((b[(k&o)+78>>1]&5)==1)break a;else{m=31632;l=31704}do{if(!(dd(U,l)|0)){v=m;P=415;break}m=m+8|0;l=c[(m&p)>>2]|0}while((l|0)!=0);if((P|0)==415?(F=a[(v&n)+4>>0]|0,F=F<<24>>24==0?2:F,a[(W&n)+62>>0]=F,a[(k&n)+77>>0]=F,(c[(v&p)>>2]|0)!=0):0)break a;c[(G&p)>>2]=U;th(f,31800,G);break a}case 0:{s=c[((w*12|0)&p)+30128>>2]|0;F=T+96|0;c[(F&p)>>2]=c[(F&p)>>2]|1<>2]|0)>>>0>m>>>0)c[((c[(T&p)+4>>2]|0)+(m*20|0)&p)+4>>2]=Q;l=m+1|0;c[(G&p)>>2]=0;Dn(U,G)|0;k=c[(k&p)>>2]|0;if(k>>>0>l>>>0)c[((c[(T&p)+4>>2]|0)+(l*20|0)&p)+4>>2]=c[(G&p)>>2];m=m+2|0;if(k>>>0<=m>>>0)break a;c[((c[(T&p)+4>>2]|0)+(m*20|0)&p)+4>>2]=Q;c[((c[(T&p)+4>>2]|0)+(m*20|0)&p)+8>>2]=s;break a}m=yh(T,3,31848)|0;k=c[(T&p)+32>>2]|0;if(k>>>0>m>>>0)c[((c[(T&p)+4>>2]|0)+(m*20|0)&p)+4>>2]=Q;m=m+1|0;if(k>>>0>m>>>0){c[((c[(T&p)+4>>2]|0)+(m*20|0)&p)+4>>2]=Q;c[((c[(T&p)+4>>2]|0)+(m*20|0)&p)+12>>2]=s}iq(T,1);if(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)break a;Xg(c[(T&p)+16>>2]|0,V,-1,1,-1)|0;break a}case 7:{iq(T,1);c[(S&p)>>2]=1;if(!(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)){Xg(c[(T&p)+16>>2]|0,31864,-1,1,0)|0;l=0}else l=0;do{G=c[(l<<2&p)+8648>>2]|0;l=l+1|0;xh(T,wh(T,97,0,1,0)|0,G,0);wh(T,35,1,1,0)|0}while((l|0)!=4);break}case 35:{m=(c[(h&p)>>2]|0)!=0?Q:10;if(U)if(dd(U,31880)|0)if(!(dd(U,31888)|0))l=2;else{l=(dd(U,31896)|0)==0;l=l?3:0}else l=1;else l=0;iq(T,3);c[(S&p)>>2]=3;if(((a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0?(Xg(c[(T&p)+16>>2]|0,31912,-1,1,0)|0,(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(T&p)+16>>2]|0)+40|0,31920,-1,1,0)|0,(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0):0)Xg((c[(T&p)+16>>2]|0)+80|0,31928,-1,1,0)|0;wh(T,11,m,l,1)|0;wh(T,35,1,3,0)|0;break a}case 26:{of(W)|0;break a}case 34:{if(!U)l=c[(W&p)+216>>2]|0;else{c[(G&p)>>2]=0;Dn(U,G)|0;l=c[(G&p)>>2]|0;if((l|0)>0)m=21;else{l=0;m=0}c[(W&p)+216>>2]=m;c[(W&p)+220>>2]=l;l=m}if((l|0)==21){l=c[(W&p)+220>>2]|0;m=l;l=((l|0)<0)<<31>>31}else{m=0;l=0}Jt(f,31944,m,l);break a}case 27:{if((U|0)!=0?(ji(U,x)|0)==0:0){G=x;Pc(c[(G&p)>>2]|0,c[(G&p)+4>>2]|0)|0}F=(Lc()|0)==0;G=9032;Jt(f,31976,F?c[(G&p)>>2]|0:-1,F?c[(G&p)+4>>2]|0:-1);break a}case 33:{if((U|0)!=0?(E=(ji(U,s)|0)==0,G=s,F=c[(G&p)+4>>2]|0,E&((F|0)>-1|(F|0)==-1&(c[(G&p)>>2]|0)>>>0>4294967295)):0)c[(W&p)+132>>2]=0;G=c[(W&p)+132>>2]|0;Jt(f,31992,G,((G|0)<0)<<31>>31);break a}case 12:{g=c[(S&p)>>2]|0;H=g+1|0;I=g+5|0;J=g+6|0;c[(S&p)>>2]=J;K=Oq(f)|0;iq(K,4);if((((a[((c[(K&p)>>2]|0)&n)+65>>0]|0)==0?(Xg(c[(K&p)+16>>2]|0,31232,-1,1,0)|0,(a[((c[(K&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(K&p)+16>>2]|0)+40|0,20456,-1,1,0)|0,(a[((c[(K&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(K&p)+16>>2]|0)+80|0,31432,-1,1,0)|0,(a[((c[(K&p)>>2]|0)&n)+65>>0]|0)==0):0)Xg((c[(K&p)+16>>2]|0)+120|0,31440,-1,1,0)|0;Ar(f,Q);w=c[((c[((c[(R&p)>>2]|0)+(Q<<4)&p)+12>>2]|0)&p)+16>>2]|0;if(!w)break a;u=(U|0)==0;h=f+68|0;v=K+32|0;D=K+4|0;E=K+24|0;F=g+2|0;G=g+3|0;A=g+4|0;t=f+8|0;while(1){if(u){B=c[(w&p)>>2]|0;C=c[(w&p)+8>>2]|0}else{B=0;C=sh(f,0,U,L)|0}if((C|0)!=0?(M=C+16|0,(c[(M&p)>>2]|0)!=0):0){gs(f,Q,c[(C&p)+32>>2]|0,0,c[(C&p)>>2]|0);g=(b[(C&o)+38>>1]|0)+J|0;if((g|0)>(c[(S&p)>>2]|0))c[(S&p)>>2]=g;Qq(f,0,Q,C,54);w=c[(C&p)>>2]|0;xh(K,wh(K,97,0,H,0)|0,w,0);w=c[(M&p)>>2]|0;if(!w)g=1;else{g=1;do{l=_h(W,c[(w&p)+8>>2]|0,L)|0;do if(l){c[(O&p)>>2]=0;gs(f,Q,c[(l&p)+32>>2]|0,0,c[(l&p)>>2]|0);if(Mt(f,l,w,O,0)|0)break a;m=c[(O&p)>>2]|0;if(!m){Qq(f,g,Q,l,54);break}else{wh(K,54,g,c[(m&p)+40>>2]|0,Q)|0;z=c[(t&p)>>2]|0;xh(z,-1,hs(f,m)|0,-6);break}}while(0);g=g+1|0;w=c[(w&p)+4>>2]|0}while((w|0)!=0)}if((c[(h&p)>>2]|0)<(g|0))c[(h&p)>>2]=g;s=wh(K,108,0,0,0)|0;g=c[(M&p)>>2]|0;if(g){z=C+36|0;y=1;while(1){x=g+8|0;w=_h(W,c[(x&p)>>2]|0,L)|0;c[(O&p)>>2]=0;c[(N&p)>>2]=0;r=(w|0)!=0;do if(r){Mt(f,w,g,O,N)|0;l=c[(O&p)>>2]|0;m=xs(K)|0;if(!(r&(l|0)==0)){w=m;P=306;break}w=c[(g&p)+36>>2]|0;if((w|0)==(b[(z&o)>>1]|0))wh(K,103,0,J,0)|0;else{wh(K,47,0,w,J)|0;Nt(K,C,w,J);wh(K,76,J,m,0)|0;wh(K,38,J,(c[(v&p)>>2]|0)+3|0,0)|0}wh(K,70,y,0,J)|0;wh(K,16,0,m,0)|0;w=c[(v&p)>>2]|0;if(w>>>0>1)c[((c[(D&p)>>2]|0)+((w+-2|0)*20|0)&p)+8>>2]=w;c[((c[(E&p)>>2]|0)&p)+88>>2]=w+-1;w=m}else{w=xs(K)|0;l=0;P=306}while(0);do if((P|0)==306){P=0;q=g+20|0;m=c[(q&p)>>2]|0;if((m|0)>0){k=0;do{m=c[(N&p)>>2]|0;if(!m)m=g+(k<<3)+36|0;else m=m+(k<<2)|0;R=k+J|0;nt(K,C,0,c[(m&p)>>2]|0,R);wh(K,76,R,w,0)|0;k=k+1|0;m=c[(q&p)>>2]|0}while((k|0)<(m|0))}if(!r)break;k=ot(K,l)|0;l=c[(q&p)>>2]|0;xh(K,wh(K,49,J,m,I)|0,k,l);xh(K,wh(K,69,y,w,I)|0,0,-14)}while(0);wh(K,103,0,F,0)|0;l=c[(x&p)>>2]|0;xh(K,wh(K,97,0,G,0)|0,l,0);wh(K,25,y+-1|0,A,0)|0;wh(K,35,H,4,0)|0;l=c[(E&p)>>2]|0;m=~w;do if((w|0)<0){w=c[(l&p)+112>>2]|0;if(!w)break;c[(w+(m<<2)&p)>>2]=c[(v&p)>>2]}while(0);c[(l&p)+88>>2]=(c[(v&p)>>2]|0)+-1;mg(W,c[(N&p)>>2]|0);g=c[(g&p)+4>>2]|0;if(!g)break;else y=y+1|0}}wh(K,9,0,s+1|0,0)|0;g=c[(v&p)>>2]|0;if(g>>>0>s>>>0)c[((c[(D&p)>>2]|0)+(s*20|0)&p)+8>>2]=g;c[((c[(E&p)>>2]|0)&p)+88>>2]=g+-1}if(!B)break;else w=B}break}case 23:{Jt(f,31016,0,0);break a}case 31:{if(!U){Jt(f,31032,d[(W&n)+64>>0]|0,0);break a}l=a[(U&n)>>0]|0;if((l+-48&255)>=3)if(!(dd(U,31352)|0))l=1;else{l=(dd(U,15168)|0)==0;l=l?2:0}else l=(l<<24>>24)+-48|0;m=(c[(f&p)>>2]|0)+64|0;if((d[(m&n)>>0]|0)==(l|0))break a;if(Kt(f)|0)break a;a[(m&n)>>0]=l;break a}case 29:{if(!U){G=(d[(C+(Q<<4)&n)+8>>0]|0)+-1|0;Jt(f,31104,G,((G|0)<0)<<31>>31);break a}if(!(a[(W&n)+63>>0]|0)){th(f,31120,G);break a}else{a[(C+(Q<<4)&n)+8>>0]=((ii(U,0,1)|0)&255)+1;Lt(W);break a}}case 4:if(!U){G=c[((c[(C+(Q<<4)&p)+12>>2]|0)&p)+80>>2]|0;Jt(f,30848,G,((G|0)<0)<<31>>31);break a}else{c[(G&p)>>2]=0;Dn(U,G)|0;G=c[(G&p)>>2]|0;c[((c[(C+(Q<<4)&p)+12>>2]|0)&p)+80>>2]=G;pq(c[(C+(Q<<4)&p)+4>>2]|0,G);break a}default:{if(!U)l=c[(W&p)+492>>2]|0;else{c[(G&p)>>2]=0;Dn(U,G)|0;l=c[(G&p)>>2]|0;G=(l|0)>0;l=G?l:0;c[(W&p)+444>>2]=G?74:0;c[(W&p)+448>>2]=G?W:0;c[(r&p)>>2]=0;c[(W&p)+492>>2]=l}Jt(f,31968,l,((l|0)<0)<<31>>31);break a}}while(0)}else{k=c[(q&p)>>2]|0;if(k){c[(G&p)>>2]=k;th(f,10344,G);Wc(c[(q&p)>>2]|0)}G=f+64|0;c[(G&p)>>2]=(c[(G&p)>>2]|0)+1;c[(f&p)+12>>2]=g;break}}while(0);mg(W,V);mg(W,U)}}while(0);i=X;return}function Gr(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0;h=i;i=i+16|0;if((i|0)>=(j|0))fa();g=h;a:do if(!d)d=0;else{f=d;while(1){if((a[(f&n)>>0]|0)==-121){d=c[(b&p)>>2]|0;if(!(a[((c[(d&p)>>2]|0)&n)+145>>0]|0))break;a[(f&n)>>0]=101}d=c[(f&p)+4>>2]|0;if(d&16384){d=0;break a}e=f+20|0;if(!(d&2048)){if(Hr(b,c[(e&p)>>2]|0)|0){d=1;break a}}else if(fr(b,c[(e&p)>>2]|0)|0){d=1;break a}if(Gr(b,c[(f&p)+16>>2]|0)|0){d=1;break a}f=c[(f&p)+12>>2]|0;if(!f){d=0;break a}}c[(g&p)>>2]=c[(b&p)+16>>2];th(d,29984,g);d=1}while(0);i=h;return d|0}function Hr(a,b){a=a|0;b=b|0;var d=0,e=0;a:do if((b|0)!=0?(c[(b&p)>>2]|0)>0:0){d=0;e=c[(b&p)+4>>2]|0;while(1){if(Gr(a,c[(e&p)>>2]|0)|0){d=1;break a}d=d+1|0;if((d|0)>=(c[(b&p)>>2]|0)){d=0;break}else e=e+20|0}}else d=0;while(0);return d|0}function Ir(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;xh(a,wh(a,122,b,0,0)|0,d,-1);d=c[((c[(a&p)>>2]|0)&p)+20>>2]|0;if((d|0)>0){e=a+96|0;b=c[(e&p)>>2]|0;a=0;do{b=b|1<>2]=b}return}function Jr(a,d){a=a|0;d=d|0;var e=0,f=0;e=d+8|0;f=Ur(a,0,e)|0;d=d+24|0;kg(c[(a&p)>>2]|0,c[(d&p)>>2]|0);c[(d&p)>>2]=f;if(f){d=f+40|0;b[(d&o)>>1]=(b[(d&o)>>1]|0)+1<<16>>16}e=(Rt(a,e)|0)==0;return (e?f:0)|0}function Kr(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0;n=i;i=i+16|0;if((i|0)>=(j|0))fa();m=n;a:do if((b|0)!=0?(f=c[(a&p)+12>>2]|0,(c[(b&p)>>2]|0)>0):0){g=a+8|0;h=a+4|0;k=0;l=b+8|0;while(1){if(!(c[(g&p)>>2]|0)){e=l+4|0;d=c[(e&p)>>2]|0;if((d|0)!=0?(dd(d,f)|0)!=0:0)break;mg(c[(c[(a&p)>>2]&p)>>2]|0,d);c[(e&p)>>2]=0;c[(l&p)>>2]=c[(h&p)>>2]}if(fr(a,c[(l&p)+20>>2]|0)|0){d=1;break a}if(Gr(a,c[(l&p)+44>>2]|0)|0){d=1;break a}k=k+1|0;if((k|0)>=(c[(b&p)>>2]|0)){d=0;break a}else l=l+72|0}b=c[(a&p)>>2]|0;l=c[(a&p)+20>>2]|0;c[(m&p)>>2]=c[(a&p)+16>>2];c[(m&p)+4>>2]=l;c[(m&p)+8>>2]=d;th(b,29936,m);d=1}else d=0;while(0);i=n;return d|0}function Lr(b,d){b=b|0;d=d|0;var e=0,f=0,g=0;f=i;i=i+16|0;if((i|0)>=(j|0))fa();e=f;g=c[(b&p)>>2]|0;if((((a[(g&n)+145>>0]|0)==0?(a[(b&n)+18>>0]|0)==0:0)?(c[(g&p)+24>>2]&2048|0)==0:0)?(Fc(d,25568,7)|0)==0:0){c[(e&p)>>2]=d;th(b,28440,e);b=1}else b=0;i=f;return b|0}function Mr(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,o=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0;x=i;i=i+16|0;if((i|0)>=(j|0))fa();w=x;do if(d){t=e&1;v=(f|0)!=0;if(v){g=c[(f&p)>>2]|0;r=32768}else{g=St(d,e)|0;g=mh(b,g,((g|0)<0)<<31>>31)|0;r=0}c[(w&p)>>2]=g;if(g){l=(t|0)==0;if(!l)if(!(c[(d&p)+12>>2]|0))q=(c[(d&p)+20>>2]|0)==0?16396:8220;else q=8220;else q=48;s=q&60;u=d+4|0;m=c[(u&p)>>2]|0;if((m&1024|0)==0?(h=c[(d&p)+8>>2]|0,(h|0)!=0):0){k=h;while(1)if(!(a[(k&n)>>0]|0))break;else k=k+1|0;o=(k-h&1073741823)+1|0}else o=0;if(l){if(!(m&16384))k=(m&8192|0)==0?48:28;else k=12;kw(g|0,d|0,k|0)|0;fw(g+k|0,0,48-k|0)|0}else kw(g|0,d|0,s|0)|0;m=g+4|0;h=q&24576|r|c[(m&p)>>2]&-122881;c[(m&p)>>2]=h;if(o){h=g+s|0;c[(g&p)+8>>2]=h;kw(h|0,c[(d&p)+8>>2]|0,o|0)|0;h=c[(m&p)>>2]|0}k=c[(u&p)>>2]|0;do if(!((h|k)&16384)){h=d+20|0;if(!(k&2048)){c[(g&p)+20>>2]=Pr(b,c[(h&p)>>2]|0,t)|0;break}else{c[(g&p)+20>>2]=gr(b,c[(h&p)>>2]|0,t)|0;break}}while(0);h=c[(m&p)>>2]|0;if(!(h&24576)){if(c[(u&p)>>2]&16384)break;c[(g&p)+12>>2]=Mr(b,c[(d&p)+12>>2]|0,0,0)|0;c[(g&p)+16>>2]=Mr(b,c[(d&p)+16>>2]|0,0,0)|0;break}t=Tt(d,e)|0;c[(w&p)>>2]=(c[(w&p)>>2]|0)+t;if(h&8192){c[(g&p)+12>>2]=Mr(b,c[(d&p)+12>>2]|0,1,w)|0;c[(g&p)+16>>2]=Mr(b,c[(d&p)+16>>2]|0,1,w)|0}if(v)c[(f&p)>>2]=c[(w&p)>>2]}}else g=0;while(0);i=x;return g|0}function Nr(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;a:do if((b|0)!=0?(d=mh(a,8,0)|0,(d|0)!=0):0){g=b+4|0;c[(d&p)+4>>2]=c[(g&p)>>2];e=mh(a,c[(g&p)>>2]<<3,0)|0;c[(d&p)>>2]=e;if(!e){mg(a,d);d=0;break}if((c[(g&p)>>2]|0)>0){f=0;while(1){h=c[(b&p)>>2]|0;c[(e+(f<<3)&p)>>2]=kh(a,c[(h+(f<<3)&p)>>2]|0)|0;c[(e+(f<<3)&p)+4>>2]=c[(h+(f<<3)&p)+4>>2];f=f+1|0;if((f|0)>=(c[(g&p)>>2]|0))break a;e=c[(d&p)>>2]|0}}}else d=0;while(0);return d|0}function Or(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0;f=e+4|0;g=(c[(f&p)>>2]|0)+40|0;b=mh(b,g,0)|0;if(b){fw(b|0,0,g|0)|0;g=b+40|0;kw(g|0,c[(e&p)>>2]|0,c[(f&p)>>2]|0)|0;c[(b&p)+12>>2]=g;c[(b&p)+16>>2]=c[(f&p)>>2];a[(b&n)>>0]=d}return b|0}function Pr(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0;do if((d|0)!=0?(f=mh(b,8,0)|0,(f|0)!=0):0){g=c[(d&p)>>2]|0;c[(f&p)>>2]=g;if(!(e&1)){h=c[(d&p)>>2]|0;g=1;while(1)if((g|0)<(h|0))g=g<<1;else break}g=mh(b,g*20|0,0)|0;c[(f&p)+4>>2]=g;if(!g){mg(b,f);f=0;break}if((c[(d&p)>>2]|0)>0){i=0;h=c[(d&p)+4>>2]|0;while(1){c[(g&p)>>2]=Mr(b,c[(h&p)>>2]|0,e,0)|0;c[(g&p)+4>>2]=kh(b,c[(h&p)+4>>2]|0)|0;c[(g&p)+8>>2]=kh(b,c[(h&p)+8>>2]|0)|0;a[(g&n)+12>>0]=a[(h&n)+12>>0]|0;j=g+13|0;k=a[(j&n)>>0]|0;a[(j&n)>>0]=k&-2;a[(j&n)>>0]=a[(h&n)+13>>0]&2|k&-4;c[(g&p)+16>>2]=c[(h&p)+16>>2];i=i+1|0;if((i|0)>=(c[(d&p)>>2]|0))break;else{g=g+20|0;h=h+20|0}}}}else f=0;while(0);return f|0}function Qr(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0;o=i;i=i+16|0;if((i|0)>=(j|0))fa();k=o;l=c[(a&p)>>2]|0;f=c[(b&p)+20>>2]|0;a:do if(f){e=c[(l&p)+20>>2]|0;if((e|0)>0){d=c[(l&p)+16>>2]|0;h=0;while(1){g=h+1|0;if((c[(d+(h<<4)&p)+12>>2]|0)==(f|0)){g=h;break a}if((g|0)<(e|0))h=g;else break}}else g=0}else g=-1e6;while(0);d=bn((c[(b&p)+24>>2]|0)+8|0,c[(b&p)+4>>2]|0,k)|0;if(!d)f=0;else f=c[(d&p)+8>>2]|0;d=c[((c[(l&p)+16>>2]|0)+(g<<4)&p)>>2]|0;e=(g|0)==1;if((((Sq(a,e?14:16,c[(b&p)>>2]|0,c[(f&p)>>2]|0,d)|0)==0?(Sq(a,9,e?13184:13208,0,d)|0)==0:0)?(m=Oq(a)|0,(m|0)!=0):0)?(n=c[(a&p)+408>>2]|0,Ar(a,g),n=((n|0)==0?a:n)+328|0,c[(n&p)>>2]=c[(n&p)>>2]|1<>2]|0,0),xh(m,n+4|0,10720,-2),Dr(a,g),wh(m,61,0,0,0)|0,n=c[(b&p)>>2]|0,xh(m,wh(m,126,g,0,0)|0,n,0),n=a+72|0,(c[(n&p)>>2]|0)<3):0)c[(n&p)>>2]=3;i=o;return}function Rr(d,e,f,g,h,k,l){d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;var m=0,q=0,r=0,s=0,t=0,u=0,v=0;v=i;i=i+32|0;if((i|0)>=(j|0))fa();m=v;t=c[(d&p)>>2]|0;c[(m&p)>>2]=0;c[(m&p)+4>>2]=0;c[(m&p)+8>>2]=0;c[(m&p)+12>>2]=0;c[(m&p)+16>>2]=0;c[(m&p)+20>>2]=0;c[(m&p)+24>>2]=0;c[(m&p)+28>>2]=0;c[(m&p)>>2]=d;do if(h)if((a[(h&n)>>0]|0)!=27)if(!(ls(m,h)|0)){u=5;break}else{u=13;break}else{a[(h&n)>>0]=97;u=5;break}else u=5;while(0);a:do if((u|0)==5){do if(k)if((a[(k&n)>>0]|0)!=27)if(!(ls(m,k)|0))break;else{u=13;break a}else{a[(k&n)>>0]=97;break}while(0);do if(l)if((a[(l&n)>>0]|0)!=27)if(!(ls(m,l)|0))break;else{u=13;break a}else{a[(l&n)>>0]=97;break}while(0);if(g){if((a[(g&n)>>0]|0)==97)g=c[(g&p)+8>>2]|0;else g=0;if(Sq(d,e,g,0,0)|0)break}s=Oq(d)|0;m=d+60|0;g=c[(m&p)>>2]|0;q=d+56|0;r=c[(q&p)>>2]|0;if((r|0)<4){r=d+72|0;g=c[(r&p)>>2]|0;c[(r&p)>>2]=g+4;g=g+1|0}else{c[(m&p)>>2]=g+4;c[(q&p)>>2]=r+-4}Rq(d,h,g);Rq(d,k,g+1|0);Rq(d,l,g+2|0);if(s){g=g+3|0;wh(s,1,0,g-(b[(f&o)>>1]|0)|0,g)|0;g=c[(s&p)+4>>2]|0;if(g)a[(g+(((c[(s&p)+32>>2]|0)+-1|0)*20|0)&n)+3>>0]=b[(f&o)>>1];xh(s,-1,f,-5);wh(s,144,(e|0)==24&1,0,0)|0}}while(0);if((u|0)==13){f=d+64|0;c[(f&p)>>2]=(c[(f&p)>>2]|0)+1}Gk(t,h);Gk(t,k);Gk(t,l);i=v;return}function Sr(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0;m=i;i=i+16|0;if((i|0)>=(j|0))fa();l=m;g=m+4|0;h=c[(b&p)>>2]|0;a:do if(!(Gn(b)|0)){if(!d){Ut(b,0);break}if(!((e|0)!=0?(c[(e&p)>>2]|0)!=0:0))f=6;do if((f|0)==6){f=Wq(c[(b&p)>>2]|0,d)|0;if(!f)break a;if(!(Yn(h,a[(h&n)+62>>0]|0,f,0)|0)){mg(h,f);break}else{Ut(b,f);mg(h,f);break a}}while(0);d=er(b,d,e,g)|0;if((d|0)>=0?(k=Wq(h,c[(g&p)>>2]|0)|0,(k|0)!=0):0){e=c[((c[(h&p)+16>>2]|0)+(d<<4)&p)>>2]|0;f=_h(h,k,e)|0;if(f){Vt(b,f,0);mg(h,k);break}e=bq(h,k,e)|0;mg(h,k);if(!e){th(b,28872,l);break}else{f=c[(b&p)+408>>2]|0;Ar(b,d);f=((f|0)==0?b:f)+328|0;c[(f&p)>>2]=c[(f&p)>>2]|1<=(j|0))fa();f=h;g=c[(a&p)>>2]|0;if(!(Gn(a)|0)){do if(!b){b=g+20|0;e=c[(b&p)>>2]|0;if((e|0)>0){d=0;do{if((d|0)!=1){Wt(a,d);e=c[(b&p)>>2]|0}d=d+1|0}while((d|0)<(e|0))}}else{if(c[(d&p)+4>>2]|0){e=er(a,b,d,f)|0;if((e|0)<=-1)break;e=c[((c[(g&p)+16>>2]|0)+(e<<4)&p)>>2]|0;b=Wq(g,c[(f&p)>>2]|0)|0;if(!b)break;d=bq(g,b,e)|0;if(!d){e=sh(a,0,b,e)|0;if(e)Xt(a,e,0)}else Xt(a,c[(d&p)+12>>2]|0,d);mg(g,b);break}d=Wq(g,b)|0;e=Vh(g,d)|0;mg(g,d);if((e|0)>-1){Wt(a,e);break}d=Wq(g,b)|0;if(d){e=bq(g,d,0)|0;if(!e){e=sh(a,0,d,0)|0;if(e)Xt(a,e,0)}else Xt(a,c[(e&p)+12>>2]|0,e);mg(g,d)}}while(0);e=Oq(a)|0;if(e)wh(e,144,0,0,0)|0}i=h;return}function Ur(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,i=0;f=c[(d&p)>>2]|0;if(!f)e=d+4|0;else{i=c[(a&p)>>2]|0;g=c[(i&p)+20>>2]|0;i=c[(i&p)+16>>2]|0;a:do if((g|0)>0){h=0;while(1){e=h+1|0;if((c[(i+(h<<4)&p)+12>>2]|0)==(f|0)){e=h;break a}if((e|0)<(g|0))h=e;else break}}else e=0;while(0);e=i+(e<<4)|0}return sh(a,b,c[(d&p)+8>>2]|0,c[(e&p)>>2]|0)|0}function Vr(b,d){b=b|0;d=d|0;var e=0,f=0,g=0;g=i;i=i+16|0;if((i|0)>=(j|0))fa();f=g;if(d){e=d;while(1)if(!(a[(e&n)>>0]|0))break;else e=e+1|0;if((e-d&1073741823)>>>0>6?(Fc(d,25568,7)|0)==0:0){c[(f&p)>>2]=d;th(b,25576,f);e=1}else e=0}else e=0;i=g;return e|0}function Wr(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;f=i;i=i+16|0;if((i|0)>=(j|0))fa();e=f;if(!b){c[(e&p)>>2]=d;a=uh(a,25992,e)|0}else{c[(e&p)>>2]=b;c[(e&p)+4>>2]=d;e=uh(a,26e3,e)|0;mg(a,b);a=e}i=f;return a|0}function Xr(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;h=i;i=i+16|0;if((i|0)>=(j|0))fa();g=h;e=c[(a&p)>>2]|0;f=c[((c[(e&p)+16>>2]|0)&p)+28>>2]|0;if((c[(b&p)+68>>2]|0)!=(f|0)?(d=As(a,b)|0,(d|0)!=0):0){b=d;d=0;do{if((c[(b&p)+20>>2]|0)==(f|0))d=Wr(e,d,c[(b&p)>>2]|0)|0;b=c[(b&p)+32>>2]|0}while((b|0)!=0);if(d){b=c[(a&p)>>2]|0;c[(g&p)>>2]=d;b=uh(b,25968,g)|0;mg(c[(a&p)>>2]|0,d);d=b}else d=0}else d=0;i=h;return d|0}function Yr(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,q=0,r=0;r=i;i=i+16|0;if((i|0)>=(j|0))fa();n=r;o=Oq(a)|0;if(o){e=c[(a&p)>>2]|0;h=c[(b&p)+68>>2]|0;a:do if(h){k=c[(e&p)+20>>2]|0;if((k|0)>0){f=c[(e&p)+16>>2]|0;g=0;while(1){e=g+1|0;if((c[(f+(g<<4)&p)+12>>2]|0)==(h|0))break a;if((e|0)<(k|0))g=e;else{g=e;break}}}else g=0}else g=-1e6;while(0);e=As(a,b)|0;if(e)do{f=c[(a&p)>>2]|0;l=c[(e&p)+20>>2]|0;b:do if(l){m=c[(f&p)+20>>2]|0;if((m|0)>0){k=c[(f&p)+16>>2]|0;h=0;while(1){f=h+1|0;if((c[(k+(h<<4)&p)+12>>2]|0)==(l|0)){f=h;break b}if((f|0)<(m|0))h=f;else break}}else f=0}else f=-1e6;while(0);m=c[(e&p)>>2]|0;xh(o,wh(o,126,f,0,0)|0,m,0);e=c[(e&p)+32>>2]|0}while((e|0)!=0);e=c[(b&p)>>2]|0;xh(o,wh(o,124,g,0,0)|0,e,0);e=c[(a&p)>>2]|0;c[(n&p)>>2]=d;e=uh(e,25952,n)|0;if((e|0)!=0?(Ir(o,g,e),q=Xr(a,b)|0,(q|0)!=0):0)Ir(o,1,q)}i=r;return} function gh(f){f=f|0;var g=0,l=0,m=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,E=0,F=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ea=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,cc=0,dc=0,ec=0,fc=0,gc=0,hc=0,ic=0,kc=0,nc=0,oc=0,qc=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,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,Xc=0,Yc=0,Zc=0,_c=0,$c=0,ad=0,ed=0,fd=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,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,ee=0,fe=0,ge=0,he=0,ie=0,je=0,ke=0,le=0,me=0,ne=0,oe=0,pe=0,qe=0;oe=i;i=i+1040|0;if((i|0)>=(j|0))fa();ke=oe+400|0;Tc=oe+792|0;id=oe+392|0;ad=oe+788|0;Sd=oe+320|0;md=oe+784|0;pd=oe+780|0;qd=oe+280|0;Nd=oe+680|0;$c=oe+240|0;Qd=oe+200|0;_c=oe+676|0;Xc=oe+672|0;Od=oe+160|0;Uc=oe+644|0;td=oe+152|0;Jd=oe+112|0;kd=oe+640|0;Ld=oe+636|0;Yc=oe+632|0;ud=oe+628|0;Ad=oe+624|0;wd=oe+604|0;Bd=oe+600|0;od=oe+596|0;xd=oe+576|0;Sc=oe+840|0;Cd=oe+572|0;Pd=oe+104|0;Dd=oe+568|0;ed=oe+564|0;fd=oe+96|0;Rd=oe+88|0;Ed=oe+560|0;Fd=oe+556|0;Gd=oe+552|0;yd=oe+532|0;zd=oe+512|0;jd=oe+508|0;vd=oe+504|0;Zc=oe+488|0;Md=oe+48|0;Vc=oe+456|0;Rc=oe+444|0;Kd=oe+8|0;sd=oe+440|0;Id=oe+412|0;Hd=oe;zc=f+4|0;s=c[(zc&p)>>2]|0;le=c[(f&p)>>2]|0;Jc=a[(le&n)+62>>0]|0;Nc=f+8|0;z=c[(Nc&p)>>2]|0;ne=le+32|0;l=ne;m=c[(l&p)>>2]|0;l=c[(l&p)+4>>2]|0;me=f+80|0;a:do if((c[(me&p)>>2]|0)==7){y=le+65|0;z=f+44|0;r=m;g=0;t=0;m=0;ie=1317}else{c[(me&p)>>2]=0;de=f+136|0;c[(de&p)>>2]=0;c[(de&p)+4>>2]=0;de=f+20|0;c[(de&p)>>2]=0;c[(le&p)+452>>2]=0;Cc=le+240|0;b:do if(!(c[(Cc&p)>>2]|0)){be=le+292|0;if(c[(be&p)>>2]|0){r=c[(f&p)+124>>2]|0;g=le+300|0;y=c[(g&p)>>2]|0;if(!r)yc=g;else{yc=g;y=(r>>>0)%(y>>>0)|0}}else{yc=le+300|0;y=0}he=f+76|0;ge=le+65|0;Zd=le+296|0;sb=f+176|0;tb=f+184|0;ub=f+92|0;vb=le+80|0;wb=le+84|0;xb=Jc&255;yb=Jc<<24>>24==1;zb=le+88|0;Ab=f+60|0;_d=f+144|0;fe=f+86|0;je=f+44|0;Bb=f+12|0;Cb=Uc+4|0;Db=Uc+16|0;Eb=Uc+12|0;Fb=Uc+25|0;Gb=Uc+20|0;Hb=f+200|0;Ib=f+56|0;$d=f+72|0;Jb=Jd+16|0;Kb=Jd+8|0;Lb=Jd+24|0;Mb=f+87|0;ae=le+156|0;Nb=le+500|0;Ob=le+496|0;ee=le+63|0;Pb=le+488|0;Qb=le+504|0;Rb=le+512|0;Sb=le+70|0;Tb=le+24|0;Ub=le+20|0;Xd=le+16|0;Vb=le+4|0;Yd=f+88|0;Wb=f+104|0;Xb=f+152|0;Yb=f+160|0;Zb=le+152|0;_b=le+64|0;$b=wd+4|0;cc=wd+6|0;dc=wd+8|0;ec=xd+4|0;fc=xd+8|0;gc=le+212|0;hc=le+208|0;ic=f+116|0;kc=yd+4|0;nc=yd+6|0;oc=yd+8|0;qc=$c+8|0;sc=$c+32|0;uc=$c+24|0;vc=$c+16|0;wc=$c+12|0;xc=zd+4|0;Y=zd+6|0;Z=zd+8|0;_=qd+8|0;$=qd+32|0;aa=qd+24|0;ea=qd+12|0;ga=qd+16|0;ha=le+164|0;ia=Zc+8|0;ja=Zc+4|0;ka=le+145|0;la=Zc+12|0;ma=Sd+4|0;na=Sd+12|0;oa=Sd+16|0;pa=Sd+20|0;qa=Sd+24|0;ra=Sd+28|0;sa=Sd+8|0;ta=Sd+40|0;ua=Sd+44|0;va=Sd+48|0;wa=Sd+52|0;xa=Sd+56|0;ya=Sd+60|0;za=Sd+64|0;Aa=Sd+65|0;Ba=le+128|0;Ca=f+28|0;Da=f+36|0;Ea=f+32|0;Fa=f+196|0;Ga=Vc+4|0;Ha=Vc+8|0;Ia=Md+8|0;Ja=Md+32|0;Ka=Md+24|0;La=Vc+20|0;Ma=Vc+12|0;Na=Vc+16|0;Oa=Vc+24|0;Pa=Rc+8|0;Qa=Rc+4|0;Ra=le+148|0;Sa=le+176|0;Ta=le+72|0;Ua=le+67|0;Va=Tc+20|0;Wa=Tc+24|0;Xa=Tc+4|0;Ya=Tc+16|0;Za=le+304|0;_a=le+328|0;$a=Kd+32|0;ab=Kd+8|0;bb=Kd+24|0;cb=le+308|0;db=Id+20|0;eb=le+69|0;ce=f+168|0;fb=qd+4|0;gb=qd+8|0;hb=qd+12|0;ib=qd+16|0;jb=qd+20|0;kb=qd+24|0;lb=qd+25|0;mb=le+180|0;nb=Od+32|0;ob=Od+8|0;pb=Od+12|0;qb=Od+16|0;rb=Od+24|0;W=0;X=0;g=0;u=0;t=c[(he&p)>>2]|0;x=0;c:while(1){r=m;d:while(1){if(a[(ge&n)>>0]|0){y=ge;z=je;m=x;ie=1317;break a}m=g+1|0;if(!(a[(s+(t*20|0)&n)+2>>0]&2))L=u;else{u=c[(s+(t*20|0)&p)+8>>2]|0;g=z+(u*40|0)|0;u=z+(u*40|0)+8|0;if(b[(u&o)>>1]&9312)vg(g);b[(u&o)>>1]=4;L=g}C=s+(t*20|0)|0;J=a[(C&n)>>0]|0;u=J&255;e:do switch(u|0){case 17:{g=m;m=r;u=L;ie=22;break d}case 18:{g=m;m=r;u=L;ie=23;break d}case 20:{g=m;m=r;ie=24;break d}case 21:{g=m;m=r;u=L;ie=25;break d}case 22:{g=m;m=r;u=L;ie=26;break d}case 23:{g=m;m=r;u=L;r=t;ie=27;break d}case 29:{g=m;m=r;r=t;ie=65;break d}case 30:{g=m;m=r;u=L;r=t;ie=66;break d}case 28:{g=m;m=r;u=L;r=t;ie=60;break d}case 32:{g=m;m=r;r=t;ie=72;break d}case 24:{g=m;m=r;u=L;r=t;ie=28;break d}case 25:{g=m;m=r;u=L;r=t;ie=44;break d}case 26:{g=m;m=r;u=L;r=t;ie=45;break d}case 133:{g=m;m=r;u=L;r=t;ie=46;break d}case 97:{a[(C&n)>>0]=27;C=s+(t*20|0)+16|0;v=c[(C&p)>>2]|0;if(!v)g=0;else{g=v;while(1)if(!(a[(g&n)>>0]|0))break;else g=g+1|0;g=g-v&1073741823}w=s+(t*20|0)+4|0;c[(w&p)>>2]=g;if(yb)u=0;else{u=Xg(L,v,-1,1,0)|0;if((u|0)==18){g=m;m=r;u=x;ie=1316;break c}if(Yl(L,xb)|0){y=ge;z=je;g=m;m=x;ie=1317;break a}c[(L&p)+24>>2]=0;g=L+8|0;b[(g&o)>>1]=e[(g&o)>>1]|2048;g=s+(t*20|0)+1|0;if((a[(g&n)>>0]|0)==-1)mg(le,c[(C&p)>>2]|0);a[(g&n)>>0]=-1;v=c[(L&p)+16>>2]|0;c[(C&p)>>2]=v;g=c[(L&p)+12>>2]|0;c[(w&p)>>2]=g}if((g|0)>(c[(zb&p)>>2]|0)){g=m;m=r;u=x;ie=1316;break c}else ie=57;break}case 31:{g=m;m=r;u=L;r=t;ie=67;break d}case 34:{g=m;m=r;r=t;ie=79;break d}case 35:{g=m;m=r;u=x;ie=80;break c}case 33:{g=m;m=r;ie=74;break d}case 94:{g=m;m=r;ie=94;break d}case 93:case 92:case 91:case 90:case 89:{g=m;P=C;m=r;r=t;ie=112;break d}case 27:{v=c[(s+(t*20|0)&p)+16>>2]|0;g=c[(s+(t*20|0)&p)+4>>2]|0;u=0;ie=57;break}case 16:{t=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;u=0;ie=19;break}case 36:{g=m;m=r;J=L;r=t;ie=166;break d}case 1:{V=a[(s+(t*20|0)&n)+3>>0]|0;C=V&255;A=c[(Bb&p)>>2]|0;g=z+((c[(s+(t*20|0)&p)+12>>2]|0)*40|0)|0;c[(Uc&p)>>2]=g;if(V<<24>>24){g=0;u=z+((c[(s+(t*20|0)&p)+8>>2]|0)*40|0)|0;while(1){c[(A+(g<<2)&p)>>2]=u;if((b[(u&o)+8>>1]&4096)!=0?(Vl(u)|0)!=0:0){y=ge;z=je;g=m;m=x;ie=1317;break a}g=g+1|0;if((g|0)>=(C|0))break;else u=u+40|0}g=c[(Uc&p)>>2]|0}V=c[(s+(t*20|0)&p)+16>>2]|0;c[(Cb&p)>>2]=V;c[(Db&p)>>2]=t;c[(Eb&p)>>2]=f;U=g+8|0;b[(U&o)>>1]=e[(U&o)>>1]&48640|1;a[(Fb&n)>>0]=0;U=ne;c[(U&p)>>2]=r;c[(U&p)+4>>2]=l;mc[c[(V&p)+12>>2]&63](Uc,C,A);l=ne;r=c[(l&p)>>2]|0;l=c[(l&p)+4>>2]|0;if(!(a[(Fb&n)>>0]|0))g=0;else{if(!(c[(Gb&p)>>2]|0))g=0;else{c[(ke&p)>>2]=Sg(c[(Uc&p)>>2]|0,1)|0;dh(je,le,10344,ke);g=c[(Gb&p)>>2]|0}em(f,t,c[(s+(t*20|0)&p)+4>>2]|0)}Yl(c[(Uc&p)>>2]|0,xb)|0;w=c[(Uc&p)>>2]|0;v=e[(w&o)+8>>1]|0;if(v&18){u=c[(w&p)+12>>2]|0;if(v&16384)u=(c[(w&p)>>2]|0)+u|0;if((u|0)>(c[((c[(w&p)+32>>2]|0)&p)+88>>2]|0)){g=m;m=r;u=x;ie=1316;break c}else{C=L;T=t;u=g}}else{C=L;T=t;u=g}break}case 88:case 87:case 86:case 85:{g=m;H=C;m=r;r=t;ie=184;break d}case 39:{g=m;m=r;J=L;r=t;ie=208;break d}case 37:{g=m;m=r;u=L;r=t;ie=202;break d}case 38:{g=m;m=r;J=L;r=t;ie=203;break d}case 83:case 80:case 81:case 82:case 78:case 79:{g=m;I=J;m=r;u=L;ie=213;break d}case 40:{V=c[(s+(t*20|0)&p)+4>>2]|0;g=z+(V*40|0)|0;if(!(b[(z+(V*40|0)&o)+8>>1]&16384))u=0;else u=Rg(g)|0;gm(g,c[(s+(t*20|0)&p)+8>>2]&255,Jc);C=L;T=t;break}case 41:{g=m;m=r;u=L;r=t;ie=248;break d}case 42:{g=m;m=r;u=L;r=t;ie=249;break d}case 43:{g=m;m=r;u=L;ie=256;break d}case 71:case 72:{g=m;m=r;r=t;ie=261;break d}case 76:{g=m;m=r;u=L;r=t;ie=286;break d}case 19:{g=m;m=r;r=t;ie=268;break d}case 96:{g=m;m=r;r=t;ie=273;break d}case 44:{g=m;m=r;u=L;r=t;ie=278;break d}case 46:case 45:{g=m;m=r;u=L;r=t;ie=281;break d}case 77:{g=m;m=r;u=L;r=t;ie=288;break d}case 47:{g=m;m=r;u=L;ie=290;break d}case 48:{g=m;m=r;u=L;r=t;ie=368;break d}case 49:{g=m;m=r;ie=371;break d}case 50:{E=c[(c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]&p)>>2]|0;f:do if(c[(E&p)+60>>2]|0){g=qm(E)|0;if(!g){K=E+76|0;H=E+44|0;F=E+72|0;v=0;u=0;g:while(1){C=b[(K&o)>>1]|0;J=c[(E+(C<<16>>16<<2)&p)+120>>2]|0;if(!(a[(J&n)+5>>0]|0)){if(!(a[(J&n)+2>>0]|0)){v=jw(e[(J&o)+18>>1]|0,0,v|0,u|0)|0;u=G}}else{v=jw(e[(J&o)+18>>1]|0,0,v|0,u|0)|0;u=G;while(1){if(!(C<<16>>16))break g;if(J){Bg(c[(J&p)+68>>2]|0);C=b[(K&o)>>1]|0}C=C+-1<<16>>16;b[(K&o)>>1]=C;b[(H&o)>>1]=0;a[(F&n)>>0]=d[(F&n)>>0]&249;J=C<<16>>16;A=E+(J<<1)+78|0;I=b[(A&o)>>1]|0;J=c[(E+(J<<2)&p)+120>>2]|0;if((I&65535)<(e[(J&o)+18>>1]|0)){C=I;break}}b[(A&o)>>1]=C+1<<16>>16;J=b[(K&o)>>1]|0;C=J;J=c[(E+(J<<16>>16<<2)&p)+120>>2]|0}C=b[(E+(C<<16>>16<<1)&o)+78>>1]|0;A=c[(J&p)+56>>2]|0;if(C<<16>>16==(b[(J&o)+18>>1]|0)){g=d[(J&n)+6>>0]|0;g=rm(E,d[(A+g&n)+9>>0]<<16|d[(A+g&n)+8>>0]<<24|d[(A+g&n)+10>>0]<<8|d[(A+g&n)+11>>0])|0}else{g=(C&65535)<<1;V=c[(J&p)+64>>2]|0;g=(d[(V+g&n)>>0]<<8|d[(V+(g|1)&n)>>0])&e[(J&o)+20>>1];g=rm(E,d[(A+g&n)+1>>0]<<16|d[(A+g&n)>>0]<<24|d[(A+g&n)+2>>0]<<8|d[(A+g&n)+3>>0])|0}if(g){v=0;u=0;break f}}g=qm(E)|0}else{v=0;u=0}}else{g=0;v=0;u=0}while(0);C=L;c[(C&p)>>2]=v;c[(C&p)+4>>2]=u;C=L;T=t;u=g;break}case 2:{O=c[(s+(t*20|0)&p)+4>>2]|0;v=c[(s+(t*20|0)&p)+16>>2]|0;if(!O){g=m;m=r;r=t;ie=446;break d}g=c[(Pb&p)>>2]|0;if(!g){s=v;g=m;m=r;u=x;ie=460;break c}else u=0;while(1){if(!(dd(c[(g&p)>>2]|0,v)|0)){M=g;break}g=c[(g&p)+24>>2]|0;if(!g){s=v;g=m;m=r;u=x;ie=460;break c}else u=u+1|0}H=(O|0)==1;if((c[(ae&p)>>2]|0)>0&H){g=m;m=r;u=x;ie=462;break c}F=M+24|0;if(!(c[(F&p)>>2]|0)){A=(a[(Sb&n)>>0]|0)!=0;if(A&H){g=tm(f,1)|0;if(g)break a;a[(ee&n)>>0]=1;if((Rl(f)|0)==5){g=t;ie=467;break c}a[(Sb&n)>>0]=0;A=1;K=u;u=c[(me&p)>>2]|0}else ie=469}else{A=0;ie=469}if((ie|0)==469){ie=0;K=(c[(Ob&p)>>2]|0)-u+-1|0;if((O|0)==2){C=(c[(Tb&p)>>2]|0)>>>1&1;if((c[(Ub&p)>>2]|0)>0){J=C^1;I=0;while(1){u=Il(c[((c[(Xd&p)>>2]|0)+(I<<4)&p)+4>>2]|0,516,J)|0;I=I+1|0;if(u){g=m;m=r;ie=1318;break c}g=c[(Ub&p)>>2]|0;if((I|0)>=(g|0)){ie=475;break}}}}else{g=c[(Ub&p)>>2]|0;C=0;ie=475}if((ie|0)==475){ie=0;if((g|0)>0){E=0;do{u=um(c[((c[(Xd&p)>>2]|0)+(E<<4)&p)+4>>2]|0,O,K)|0;E=E+1|0;if(u){g=m;m=r;ie=1318;break c}}while((E|0)<(c[(Ub&p)>>2]|0))}}if(!C)u=0;else{C=c[(Vb&p)>>2]|0;if(C)do{V=C+88|0;b[(V&o)>>1]=b[(V&o)>>1]|8;C=c[(C&p)+52>>2]|0}while((C|0)!=0);Eg(le);c[(Tb&p)>>2]=c[(Tb&p)>>2]|2;u=0}}C=c[(Pb&p)>>2]|0;if((C|0)!=(M|0))do{c[(Pb&p)>>2]=c[(C&p)+24>>2];mg(le,C);c[(Ob&p)>>2]=(c[(Ob&p)>>2]|0)+-1;C=c[(Pb&p)>>2]|0}while((C|0)!=(M|0));if(H){c[(Pb&p)>>2]=c[(F&p)>>2];mg(le,M);if(A){C=L;T=t;break e}else{g=m;C=O;m=r;A=K;E=L;r=t;ie=486;break d}}else{V=M+8|0;U=c[(V&p)+4>>2]|0;T=Qb;c[(T&p)>>2]=c[(V&p)>>2];c[(T&p)+4>>2]=U;T=M+16|0;U=c[(T&p)+4>>2]|0;V=Rb;c[(V&p)>>2]=c[(T&p)>>2];c[(V&p)+4>>2]=U;if(A){C=L;T=t;break e}else{C=O;g=m;m=r;A=K;E=L;r=t;ie=488;break d}}}case 3:{u=x;ie=489;break c}case 4:{v=s+(t*20|0)+8|0;g=c[(v&p)>>2]|0;if((g|0)!=0?(c[(Tb&p)>>2]&33554432|0)!=0:0){g=m;m=r;u=8;ie=1318;break c}I=s+(t*20|0)+4|0;J=c[((c[(Xd&p)>>2]|0)+(c[(I&p)>>2]<<4)&p)+4>>2]|0;if(!J){v=0;u=0;g=0}else{u=yg(J,g)|0;if((u|0)==5){g=t;ie=508;break c}else if(u){g=m;m=r;ie=1318;break c}do if((c[(v&p)>>2]|0)!=0?(b[(Yd&o)>>1]&32)!=0:0){if((a[(ee&n)>>0]|0)!=0?(c[(Zb&p)>>2]|0)<=1:0){g=0;break}g=c[(Wb&p)>>2]|0;if(!g){g=(c[(Nb&p)>>2]|0)+1|0;c[(Nb&p)>>2]=g;g=(c[(Ob&p)>>2]|0)+g|0;c[(Wb&p)>>2]=g}g=sm(le,0,g+-1|0)|0;if(!g){g=c[(Wb&p)>>2]|0;V=c[(J&p)+4>>2]|0;c[(V&p)+4>>2]=c[(J&p)>>2];g=hl(c[(V&p)>>2]|0,g)|0}V=Qb;U=c[(V&p)+4>>2]|0;T=Xb;c[(T&p)>>2]=c[(V&p)>>2];c[(T&p)+4>>2]=U;T=Rb;U=c[(T&p)+4>>2]|0;V=Yb;c[(V&p)>>2]=c[(T&p)>>2];c[(V&p)+4>>2]=U}else g=0;while(0);v=c[(J&p)+4>>2]|0;c[(v&p)+4>>2]=c[(J&p)>>2];v=c[((c[(v&p)+12>>2]|0)&p)+56>>2]|0;v=d[(v&n)+41>>0]<<16|d[(v&n)+40>>0]<<24|d[(v&n)+42>>0]<<8|d[(v&n)+43>>0];u=c[((c[((c[(Xd&p)>>2]|0)+(c[(I&p)>>2]<<4)&p)+12>>2]|0)&p)+4>>2]|0}if(a[(s+(t*20|0)&n)+3>>0]|0){if((v|0)!=(c[(s+(t*20|0)&p)+12>>2]|0)){g=m;s=I;m=r;u=x;ie=522;break c}if((u|0)!=(c[(s+(t*20|0)&p)+16>>2]|0)){g=m;s=I;m=r;u=x;ie=522;break c}else{C=L;T=t;u=g}}else{C=L;T=t;u=g}break}case 53:{g=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;if((g|0)!=0?(c[(g&p)+28>>2]|0)==(c[(s+(t*20|0)&p)+8>>2]|0):0){v=s+(t*20|0)+3|0;u=0;ie=548}else ie=536;break}case 51:{g=m;m=r;u=L;r=t;ie=525;break d}case 52:{A=s+(t*20|0)+4|0;g=c[(A&p)>>2]|0;v=c[(Xd&p)>>2]|0;C=c[(s+(t*20|0)&p)+12>>2]|0;w=z+(C*40|0)|0;u=Vg(w)|0;V=w;c[(V&p)>>2]=u;c[(V&p)+4>>2]=G;C=z+(C*40|0)+8|0;b[(C&o)>>1]=e[(C&o)>>1]&48640|4;C=s+(t*20|0)+8|0;u=Dg(c[(v+(g<<4)&p)+4>>2]|0,c[(C&p)>>2]|0,u)|0;C=c[(C&p)>>2]|0;if((C|0)==1){c[(c[(v+(g<<4)&p)+12>>2]&p)>>2]=c[(w&p)>>2];c[(Tb&p)>>2]=c[(Tb&p)>>2]|2}else if((C|0)==2)a[((c[(v+(g<<4)&p)+12>>2]|0)&n)+76>>0]=c[(w&p)>>2];if((c[(A&p)>>2]|0)==1){g=c[(Vb&p)>>2]|0;if(g)do{V=g+88|0;b[(V&o)>>1]=b[(V&o)>>1]|8;g=c[(g&p)+52>>2]|0}while((g|0)!=0);b[(Yd&o)>>1]=b[(Yd&o)>>1]&-9;C=L;T=t}else{C=L;T=t}break}case 55:case 54:{ie=536;break}case 57:case 56:{g=xm(f,c[(s+(t*20|0)&p)+4>>2]|0,c[(s+(t*20|0)&p)+8>>2]|0,-1,1)|0;if(!g){y=ge;z=je;g=m;m=x;ie=1317;break a}a[(g&n)+25>>0]=1;J=g+27|0;a[(J&n)>>0]=a[(J&n)>>0]|1;v=g+4|0;I=s+(t*20|0)+3|0;u=zm(c[(le&p)>>2]|0,0,le,v,d[(I&n)>>0]|5,1054)|0;do if(!u){u=yg(c[(v&p)>>2]|0,1)|0;if(!u){A=c[(s+(t*20|0)&p)+16>>2]|0;C=c[(v&p)>>2]|0;if(!A){u=ym(C,1,1,0,c[(g&p)>>2]|0)|0;a[(J&n)>>0]=a[(J&n)>>0]|4;break}u=Am(C,ud,d[(I&n)>>0]|2)|0;if(!u){c[(g&p)+8>>2]=A;u=ym(c[(v&p)>>2]|0,c[(ud&p)>>2]|0,1,A,c[(g&p)>>2]|0)|0}a[(J&n)>>0]=a[(J&n)>>0]&-5}}while(0);a[(J&n)>>0]=((a[(I&n)>>0]|0)!=8&1)<<3&255|a[(J&n)>>0]&-9;C=L;T=t;break}case 58:{g=m;m=r;ie=558;break d}case 60:{g=m;m=r;u=L;ie=568;break d}case 61:{g=m;m=r;u=L;r=t;ie=570;break d}case 59:{g=m;m=r;u=L;r=t;ie=566;break d}case 65:case 64:case 63:case 62:{g=m;K=u;m=r;r=t;ie=571;break d}case 66:{g=m;m=r;u=L;r=t;ie=596;break d}case 69:case 68:case 67:{g=m;H=C;m=r;u=L;ie=597;break d}case 73:{g=m;m=r;u=L;r=t;ie=624;break d}case 70:{V=c[(s+(t*20|0)&p)+12>>2]|0;g=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;u=c[(g&p)>>2]|0;c[(Cd&p)>>2]=0;V=z+(V*40|0)|0;U=c[(V&p)>>2]|0;V=c[(V&p)+4>>2]|0;u=Cm(u,0,U,V,0,Cd)|0;v=g+48|0;c[(v&p)>>2]=U;c[(v&p)+4>>2]=V;a[(g&n)+25>>0]=0;c[(g&p)+60>>2]=0;a[(g&n)+26>>0]=0;v=c[(Cd&p)>>2]|0;if(v)t=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;c[(g&p)+12>>2]=v;C=L;T=t;break}case 74:{H=Pd;c[(H&p)>>2]=0;c[(H&p)+4>>2]=0;c[(Dd&p)>>2]=0;H=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;g=c[(H&p)>>2]|0;if(!g){u=0;v=0;g=0}else{K=H+27|0;do if(!(a[(K&n)>>0]&2)){u=Hm(g,Dd)|0;if(u){g=m;m=r;ie=1318;break c}if(c[(Dd&p)>>2]|0){V=Pd;c[(V&p)>>2]=1;c[(V&p)+4>>2]=0;break}km(c[(H&p)>>2]|0,Pd);u=Pd;g=c[(u&p)>>2]|0;u=c[(u&p)+4>>2]|0;if((g|0)==-1&(u|0)==2147483647){a[(K&n)>>0]=a[(K&n)>>0]|2;break}else{U=jw(g|0,u|0,1,0)|0;V=Pd;c[(V&p)>>2]=U;c[(V&p)+4>>2]=G;break}}while(0);J=c[(s+(t*20|0)&p)+12>>2]|0;if(J){g=c[(sb&p)>>2]|0;if(!g)C=z;else{while(1){u=c[(g&p)+4>>2]|0;if(!u)break;else g=u}C=c[(g&p)+16>>2]|0}I=C+(J*40|0)|0;A=Vg(I)|0;g=G;V=I;c[(V&p)>>2]=A;c[(V&p)+4>>2]=g;V=C+(J*40|0)+8|0;b[(V&o)>>1]=e[(V&o)>>1]&48640|4;if((A|0)==-1&(g|0)==2147483647){g=m;m=r;u=13;ie=1318;break c}if(a[(K&n)>>0]&2){g=m;m=r;u=13;ie=1318;break c}J=Pd;u=c[(J&p)>>2]|0;J=c[(J&p)+4>>2]|0;C=jw(A|0,g|0,1,0)|0;g=G;if((J|0)<(g|0)|(J|0)==(g|0)&u>>>0>>0){V=Pd;c[(V&p)>>2]=C;c[(V&p)+4>>2]=g}else{C=u;g=J}V=I;c[(V&p)>>2]=C;c[(V&p)+4>>2]=g}h:do if(!(a[(K&n)>>0]&2))g=0;else{u=0;while(1){cd(8,Pd);V=Pd;V=jw(c[(V&p)>>2]|0,c[(V&p)+4>>2]&1073741823|0,1,0)|0;g=G;U=Pd;c[(U&p)>>2]=V;c[(U&p)+4>>2]=g;g=Cm(c[(H&p)>>2]|0,0,V,g,0,Dd)|0;if(c[(Dd&p)>>2]|g)break h;u=u+1|0;if((u|0)>=100){g=m;m=r;u=13;ie=1318;break c}}}while(0);a[(H&n)+26>>0]=0;c[(H&p)+60>>2]=0;v=Pd;u=c[(v&p)>>2]|0;v=c[(v&p)+4>>2]|0}C=L;c[(C&p)>>2]=u;c[(C&p)+4>>2]=v;C=L;T=t;u=g;break}case 84:case 75:{g=m;C=J;m=r;u=L;r=t;ie=647;break d}case 95:{g=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;u=Jm(c[(g&p)>>2]|0)|0;c[(g&p)+60>>2]=0;if((((u|0)==0?(Gc=c[(gc&p)>>2]|0,(Gc|0)!=0):0)?(Hc=c[(s+(t*20|0)&p)+16>>2]|0,(Hc|0)!=0):0)?(a[(g&n)+27>>0]&4)!=0:0){V=g+48|0;bc[Gc&1](c[(hc&p)>>2]|0,9,c[((c[(Xd&p)>>2]|0)+(a[(g&n)+24>>0]<<4)&p)>>2]|0,Hc,c[(V&p)>>2]|0,c[(V&p)+4>>2]|0)}if(!(c[(s+(t*20|0)&p)+8>>2]&1)){C=L;T=t}else{c[(ub&p)>>2]=(c[(ub&p)>>2]|0)+1;C=L;T=t}break}case 98:{g=m;m=r;u=L;r=t;ie=671;break d}case 99:{g=m;m=r;u=L;r=t;ie=672;break d}case 100:{v=c[(s+(t*20|0)&p)+8>>2]|0;C=z+(v*40|0)|0;g=c[((c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0)&p)+56>>2]|0;if(!(a[(g&n)+56>>0]|0)){u=c[(g&p)+36>>2]|0;g=u;u=u+8|0}else{V=c[(g&p)+20>>2]|0;u=c[((c[(V&p)+8>>2]|0)&p)+4>>2]|0;V=c[(V&p)+12>>2]|0;g=V+(u*56|0)+20|0;u=c[(V+(u*56|0)&p)+32>>2]|0}g=c[(g&p)>>2]|0;if(!(fh(C,g)|0)){c[(z+(v*40|0)&p)+12>>2]=g;V=z+(v*40|0)+8|0;b[(V&o)>>1]=e[(V&o)>>1]&48640|16;kw(c[(z+(v*40|0)&p)+16>>2]|0,u|0,g|0)|0;u=0}else u=7;c[((c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+12>>2]<<2)&p)>>2]|0)&p)+60>>2]=0;T=t;break}case 102:case 101:{v=c[(s+(t*20|0)&p)+8>>2]|0;J=z+(v*40|0)|0;A=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;C=c[(A&p)>>2]|0;A=A+27|0;if(a[(A&n)>>0]&4){lm(C,ed);g=c[(ed&p)>>2]|0;if(g>>>0>(c[(zb&p)>>2]|0)>>>0){g=m;m=r;u=x;ie=1316;break c}}else{km(C,fd);T=fd;g=c[(T&p)>>2]|0;T=c[(T&p)+4>>2]|0;V=c[(zb&p)>>2]|0;U=((V|0)<0)<<31>>31;if((T|0)>(U|0)|(T|0)==(U|0)&g>>>0>V>>>0){g=m;m=r;u=x;ie=1316;break c}c[(ed&p)>>2]=g}if(fh(J,g>>>0>32?g:32)|0){y=ge;z=je;g=m;m=x;ie=1317;break a}c[(z+(v*40|0)&p)+12>>2]=g;g=z+(v*40|0)+8|0;b[(g&o)>>1]=e[(g&o)>>1]&48640|16;g=c[(ed&p)>>2]|0;u=c[(z+(v*40|0)&p)+16>>2]|0;if(!(a[(A&n)>>0]&4))u=Lm(C,0,g,u,0)|0;else u=Dh(C,0,g,u)|0;a[(z+(v*40|0)&n)+10>>0]=1;C=J;T=t;break}case 103:{v=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;w=v+25|0;if(a[(w&n)>>0]|0){g=m;m=r;u=L;r=t;ie=700;break d}do if(!(a[(v&n)+26>>0]|0)){g=c[(v&p)+32>>2]|0;if(g){V=c[(g&p)>>2]|0;u=rc[c[((c[(V&p)>>2]|0)&p)+48>>2]&127](g,Rd)|0;Mm(f,V);break}if((a[((c[(v&p)>>2]|0)&n)+73>>0]|0)!=1){u=jm(v)|0;if(u){g=m;m=r;ie=1318;break c}if(a[(w&n)>>0]|0){g=m;m=r;u=L;r=t;ie=708;break d}}km(c[(v&p)>>2]|0,Rd);u=0}else{U=v+48|0;V=c[(U&p)+4>>2]|0;u=Rd;c[(u&p)>>2]=c[(U&p)>>2];c[(u&p)+4>>2]=V;u=0}while(0);V=Rd;T=c[(V&p)+4>>2]|0;C=L;c[(C&p)>>2]=c[(V&p)>>2];c[(C&p)+4>>2]=T;C=L;T=t;break}case 108:{ie=715;break}case 104:{g=m;m=r;u=L;r=t;ie=711;break d}case 107:case 106:{c[(ic&p)>>2]=(c[(ic&p)>>2]|0)+1;ie=715;break}case 105:{T=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;u=c[(T&p)>>2]|0;c[(Ed&p)>>2]=0;u=Hm(u,Ed)|0;V=c[(Ed&p)>>2]|0;a[(T&n)+25>>0]=V;a[(T&n)+26>>0]=0;c[(T&p)+60>>2]=0;T=c[(s+(t*20|0)&p)+8>>2]|0;C=L;T=(T|0)>0&(V|0)!=0?T+-1|0:t;break}case 7:case 6:{if(!(c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0)){g=m;m=r;S=z;T=s;U=W;V=X;u=L;r=t;break d}else ie=765;break}case 5:{g=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;c[(Fd&p)>>2]=0;w=c[(g&p)+56>>2]|0;if(a[(w&n)+56>>0]|0){u=Wm(c[(w&p)+20>>2]|0,Fd)|0;ie=766;break e}u=w+36|0;v=c[(u&p)>>2]|0;V=v+4|0;c[(u&p)>>2]=c[(V&p)>>2];c[(V&p)>>2]=0;if(!((c[(w&p)+40>>2]|0)!=0|(v|0)==0))mg(le,v);c[(Fd&p)>>2]=(c[(u&p)>>2]|0)==0&1;u=0;ie=766;break}case 9:case 8:{ie=765;break}case 110:case 109:{A=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;S=c[(s+(t*20|0)&p)+8>>2]|0;u=c[(A&p)>>2]|0;C=s+(t*20|0)+3|0;if(a[(C&n)>>0]&1)c[(ub&p)>>2]=(c[(ub&p)>>2]|0)+1;if((b[(z+(S*40|0)&o)+8>>1]&16384)!=0?(Ud=Rg(z+(S*40|0)|0)|0,(Ud|0)!=0):0){g=m;m=r;s=Ud;u=x;ie=1309;break c}H=c[(A&p)+56>>2]|0;T=z+(S*40|0)+12|0;P=c[(T&p)>>2]|0;if(!H){if(!(a[(C&n)>>0]&16))g=0;else g=c[(A&p)+12>>2]|0;u=Im(u,c[(z+(S*40|0)&p)+16>>2]|0,P,((P|0)<0)<<31>>31,10360,0,0,c[(s+(t*20|0)&p)+12>>2]|0,g)|0;c[(A&p)+60>>2]=0;C=L;T=t;break e}C=P;g=((P|0)<0)<<31>>31;A=0;do{A=A+1|0;C=mw(C|0,g|0,7)|0;g=G}while(((C|0)!=0|(g|0)!=0)&(A|0)<9);K=P+8|0;I=A+P|0;M=H+4|0;A=c[(M&p)>>2]|0;do if(!A)u=0;else{if(!(c[(H&p)+40>>2]|0)){C=H+44|0;V=c[(C&p)>>2]|0;if((V|0)<=(A|0)?!((c[2265]|0)!=0?(V|0)>(c[(H&p)>>2]|0):0):0){u=0;break}}else{V=c[(H&p)+48>>2]|0;if(!((V|0)!=0&(V+K|0)>(A|0))){u=0;break}C=H+44|0}u=Om(H)|0;c[(C&p)>>2]=0;c[(H&p)+48>>2]=0}while(0);C=H+36|0;J=H+44|0;c[(J&p)>>2]=(c[(J&p)>>2]|0)+I;J=H+8|0;if((I|0)>(c[(J&p)>>2]|0))c[(J&p)>>2]=I;E=H+40|0;J=c[(E&p)>>2]|0;if(!J){g=qg(K,((K|0)<0)<<31>>31)|0;if(!g){g=m;m=r;s=7;u=x;ie=1309;break c}c[(g&p)+4>>2]=c[(C&p)>>2]}else{g=H+48|0;I=c[(g&p)>>2]|0;K=I+K|0;F=H+52|0;H=c[(F&p)>>2]|0;if((K|0)>(H|0)){I=H;do I=I<<1;while((I|0)<(K|0));V=c[(M&p)>>2]|0;I=(I|0)>(V|0)?V:I;I=(I|0)<(K|0)?K:I;J=rg(J,I,((I|0)<0)<<31>>31)|0;if(!J){g=m;m=r;s=7;u=x;ie=1309;break c}A=J+((c[(C&p)>>2]|0)-(c[(E&p)>>2]|0))|0;c[(C&p)>>2]=A;c[(E&p)>>2]=J;c[(F&p)>>2]=I;I=c[(g&p)>>2]|0}else A=c[(C&p)>>2]|0;c[(g&p)>>2]=I+(P+15&-8);c[(J+I&p)+4>>2]=A-J;g=J+I|0}kw(g+8|0,c[(z+(S*40|0)&p)+16>>2]|0,c[(T&p)>>2]|0)|0;c[(g&p)>>2]=c[(T&p)>>2];c[(C&p)>>2]=g;C=L;T=t;break}case 112:{g=m;m=r;r=t;ie=801;break d}case 111:{v=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;g=c[(v&p)>>2]|0;c[(yd&p)>>2]=c[(v&p)+8>>2];b[(kc&o)>>1]=c[(s+(t*20|0)&p)+12>>2];a[(nc&n)>>0]=0;c[(oc&p)>>2]=z+((c[(s+(t*20|0)&p)+8>>2]|0)*40|0);u=Cm(g,yd,0,0,0,Gd)|0;if(!(c[(Gd&p)>>2]|u))u=Jm(g)|0;c[(v&p)+60>>2]=0;C=L;T=t;break}case 116:case 115:case 114:case 113:{u=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;c[(zd&p)>>2]=c[(u&p)+8>>2];b[(xc&o)>>1]=c[(s+(t*20|0)&p)+16>>2];a[(Y&n)>>0]=((J&255)<115)<<31>>31;c[(Z&p)>>2]=z+((c[(s+(t*20|0)&p)+12>>2]|0)*40|0);V=Sd;c[(V&p)>>2]=0;c[(V&p)+4>>2]=0;km(c[(u&p)>>2]|0,Sd);V=Sd;g=c[(V&p)>>2]|0;V=jw(g|0,c[(V&p)+4>>2]|0,-1,-1)|0;U=G;if(!(U>>>0>0|(U|0)==0&V>>>0>2147483646)){b[(_&o)>>1]=0;c[($&p)>>2]=le;c[(aa&p)>>2]=0;g=nm(c[(u&p)>>2]|0,0,g,1,qd)|0;if(!g){u=Km(c[(ea&p)>>2]|0,c[(ga&p)>>2]|0,zd,0)|0;if((b[(_&o)>>1]&9312)==0&(c[(aa&p)>>2]|0)==0)g=0;else{Qg(qd);g=0}}else u=0}else{c[(ke&p)>>2]=68730;c[(ke&p)+4>>2]=10788;bd(11,13600,ke);g=11;u=0}if((((a[(C&n)>>0]&1)==0?u+1|0:0-u|0)|0)>0){C=L;T=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;u=g}else{C=L;T=t;u=g}break}case 117:{O=L+8|0;b[(O&o)>>1]=1;if((c[(Zb&p)>>2]|0)>((c[(ha&p)>>2]|0)+1|0)){g=m;m=r;u=x;ie=832;break c}N=c[(s+(t*20|0)&p)+12>>2]|0;M=c[((c[(Xd&p)>>2]|0)+(N<<4)&p)+4>>2]|0;P=s+(t*20|0)+4|0;I=c[(P&p)>>2]|0;C=M+4|0;K=c[(C&p)>>2]|0;c[(K&p)+4>>2]=c[(M&p)>>2];c[(ke&p)>>2]=0;do if(!(c[(K&p)+8>>2]|0)){u=dl(K,I,ke,0)|0;if(!u){u=Xm(M,I,0)|0;if(u){g=c[(ke&p)>>2]|0;if(!g){A=0;break}Bg(c[(g&p)+68>>2]|0);A=0;break}if(I>>>0<=1){g=c[(ke&p)>>2]|0;pl(g,9);if(!g){u=0;A=0;break}Bg(c[(g&p)+68>>2]|0);u=0;A=0;break}if(!(a[(K&n)+17>>0]|0)){g=c[(ke&p)>>2]|0;u=Ym(c[(g&p)+52>>2]|0,g,c[(g&p)+72>>2]|0)|0;if(!g){A=0;break}Bg(c[(g&p)+68>>2]|0);A=0;break}J=c[(C&p)>>2]|0;c[(J&p)+4>>2]=c[(M&p)>>2];J=c[((c[(J&p)+12>>2]|0)&p)+56>>2]|0;J=d[(J&n)+53>>0]<<16|d[(J&n)+52>>0]<<24|d[(J&n)+54>>0]<<8|d[(J&n)+55>>0];C=c[(ke&p)>>2]|0;if((J|0)==(I|0)){u=Ym(c[(C&p)+52>>2]|0,C,c[(C&p)+72>>2]|0)|0;if(C)Bg(c[(C&p)+68>>2]|0);if(!u)A=0;else{A=0;break}}else{if(C)Bg(c[(C&p)+68>>2]|0);u=dl(K,J,Sd,0)|0;if(u){A=0;break}C=c[(Sd&p)>>2]|0;u=Zm(K,C,1,0,I,0)|0;if(C)Bg(c[(C&p)+68>>2]|0);if(u){A=0;break}c[(Sd&p)>>2]=0;u=dl(K,J,Sd,0)|0;C=c[(Sd&p)>>2]|0;if(u){if(!C){A=0;break}}else u=Ym(c[(C&p)+52>>2]|0,C,c[(C&p)+72>>2]|0)|0;Bg(c[(C&p)+68>>2]|0);if(!u)A=J;else{A=0;break}}H=((c[2514]|0)>>>0)/((c[(K&p)+32>>2]|0)>>>0)|0;F=H+1|0;I=K+36|0;while(1){C=J+-1|0;if((C|0)==(F|0)){J=C;continue}if(C>>>0<2)E=0;else{E=J+-3|0;E=E-((E>>>0)%(((((c[(I&p)>>2]|0)>>>0)/5|0)+1|0)>>>0)|0)|0;E=((E+1|0)==(H|0)?3:2)+E|0}if((E|0)==(C|0))J=C;else break}u=Dg(M,4,C)|0}else A=0}else{u=262;A=0}while(0);b[(O&o)>>1]=4;V=L;c[(V&p)>>2]=A;c[(V&p)+4>>2]=((A|0)<0)<<31>>31;if((u|0)==0&(A|0)!=0){g=m;K=N;C=P;m=r;u=L;r=t;ie=865;break d}else{C=L;T=t}break}case 118:{c[(jd&p)>>2]=0;g=s+(t*20|0)+12|0;u=Xm(c[((c[(Xd&p)>>2]|0)+(c[(s+(t*20|0)&p)+8>>2]<<4)&p)+4>>2]|0,c[(s+(t*20|0)&p)+4>>2]|0,(c[(g&p)>>2]|0)!=0?jd:0)|0;g=c[(g&p)>>2]|0;if((g|0)!=0?(Ic=c[(jd&p)>>2]|0,c[(ub&p)>>2]=(c[(ub&p)>>2]|0)+Ic,(g|0)>0):0){C=z+(g*40|0)|0;T=C;T=jw(c[(T&p)>>2]|0,c[(T&p)+4>>2]|0,Ic|0,((Ic|0)<0)<<31>>31|0)|0;c[(C&p)>>2]=T;c[(C&p)+4>>2]=G;C=L;T=t}else{C=L;T=t}break}case 121:case 120:{c[(vd&p)>>2]=0;u=Am(c[((c[(Xd&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<4)&p)+4>>2]|0,vd,J<<24>>24==121?1:2)|0;T=c[(vd&p)>>2]|0;C=L;c[(C&p)>>2]=T;c[(C&p)+4>>2]=((T|0)<0)<<31>>31;C=L;T=t;break}case 119:{g=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;u=c[(g&p)+56>>2]|0;if(u){g=m;m=r;J=L;r=t;ie=878;break d}u=c[(g&p)>>2]|0;C=L;T=t;u=Xm(c[(u&p)>>2]|0,c[(u&p)+60>>2]|0,0)|0;break}case 123:{C=L;T=t;u=an(le,c[(s+(t*20|0)&p)+4>>2]|0)|0;break}case 124:{g=m;m=r;u=L;r=t;ie=886;break d}case 122:{g=m;m=r;J=L;r=t;ie=881;break d}case 126:{g=m;m=r;u=L;r=t;ie=895;break d}case 125:{g=m;m=r;J=L;r=t;ie=887;break d}case 127:{g=m;m=r;u=L;ie=903;break d}case 128:{g=m;m=r;J=L;ie=947;break d}case 129:{w=c[(s+(t*20|0)&p)+4>>2]|0;v=z+(w*40|0)|0;w=z+(w*40|0)+8|0;g=b[(w&o)>>1]|0;do if(g&32){E=c[(v&p)>>2]|0;u=E+26|0;g=b[(u&o)>>1]|0;if(!(g&2)){if(!(g&1)){g=E+8|0;c[(g&p)>>2]=kn(c[(g&p)>>2]|0)|0;g=b[(u&o)>>1]|0}b[(u&o)>>1]=g&65535|2}C=E+8|0;A=c[(C&p)>>2]|0;if(!A){g=b[(w&o)>>1]|0;break}w=A;v=c[(w&p)>>2]|0;w=c[(w&p)+4>>2]|0;V=c[(A&p)+8>>2]|0;c[(C&p)>>2]=V;if(!V)Zk(E);u=c[(s+(t*20|0)&p)+12>>2]|0;g=z+(u*40|0)|0;u=z+(u*40|0)+8|0;if(!(b[(u&o)>>1]&9312)){ie=g;c[(ie&p)>>2]=v;c[(ie&p)+4>>2]=w;b[(u&o)>>1]=4;u=0;ie=19;break e}else{Zg(g,v,w);u=0;ie=19;break e}}while(0);if(!(g&9312))b[(w&o)>>1]=1;else vg(v);t=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;u=0;ie=19;break}case 130:{g=m;m=r;u=L;ie=966;break d}case 131:{g=m;m=r;u=L;r=t;ie=993;break d}case 132:{g=m;m=r;u=L;r=t;ie=1009;break d}case 134:{g=m;m=r;J=L;r=t;ie=1010;break d}case 135:{g=m;m=r;u=L;r=t;ie=1015;break d}case 136:{g=m;m=r;r=t;ie=1022;break d}case 137:{g=m;m=r;u=L;r=t;ie=1028;break d}case 138:{g=m;m=r;u=L;r=t;ie=1030;break d}case 139:{g=m;m=r;J=L;r=t;ie=1032;break d}case 140:{g=m;m=r;u=L;r=t;ie=1034;break d}case 141:{g=m;m=r;u=L;r=t;ie=1036;break d}case 10:{V=a[(s+(t*20|0)&n)+3>>0]|0;g=V&255;u=c[(Bb&p)>>2]|0;if(V<<24>>24){v=0;w=z+((c[(s+(t*20|0)&p)+8>>2]|0)*40|0)|0;while(1){c[(u+(v<<2)&p)>>2]=w;v=v+1|0;if((v|0)>=(g|0))break;else w=w+40|0}}V=c[(s+(t*20|0)&p)+16>>2]|0;c[(Ga&p)>>2]=V;U=c[(s+(t*20|0)&p)+12>>2]|0;c[(Ha&p)>>2]=z+(U*40|0);U=z+(U*40|0)+12|0;c[(U&p)>>2]=(c[(U&p)>>2]|0)+1;b[(Ia&o)>>1]=1;c[(Ja&p)>>2]=le;c[(Ka&p)>>2]=0;c[(Vc&p)>>2]=Md;c[(La&p)>>2]=0;c[(Ma&p)>>2]=f;c[(Na&p)>>2]=t;a[(Oa&n)>>0]=0;mc[c[(V&p)+16>>2]&63](Vc,g,u);if(!(c[(La&p)>>2]|0))u=0;else{c[(ke&p)>>2]=Sg(Md,1)|0;dh(je,le,10344,ke);u=c[(La&p)>>2]|0}do if((a[(Oa&n)>>0]|0)!=0?(Mc=c[(s+((t+-1|0)*20|0)&p)+4>>2]|0,(Mc|0)!=0):0){g=z+(Mc*40|0)|0;v=z+(Mc*40|0)+8|0;if(!(b[(v&o)>>1]&9312)){V=g;c[(V&p)>>2]=1;c[(V&p)+4>>2]=0;b[(v&o)>>1]=4;break}else{Zg(g,1,0);break}}while(0);if((b[(Ia&o)>>1]&9312)==0&(c[(Ka&p)>>2]|0)==0){C=L;T=t}else{Qg(Md);C=L;T=t}break}case 11:{c[(Rc&p)>>2]=0;c[(Pa&p)>>2]=-1;c[(Qa&p)>>2]=-1;g=Wh(le,c[(s+(t*20|0)&p)+4>>2]|0,c[(s+(t*20|0)&p)+8>>2]|0,Qa,Pa)|0;if((g|0)==5){c[(Rc&p)>>2]=1;g=0}v=0;w=z+((c[(s+(t*20|0)&p)+12>>2]|0)*40|0)|0;while(1){C=c[(Rc+(v<<2)&p)>>2]|0;A=((C|0)<0)<<31>>31;u=w+8|0;if(!(b[(u&o)>>1]&9312)){V=w;c[(V&p)>>2]=C;c[(V&p)+4>>2]=A;b[(u&o)>>1]=4}else Zg(w,C,A);v=v+1|0;if((v|0)==3){C=L;T=t;u=g;break}else w=w+40|0}break}case 142:{C=c[(s+(t*20|0)&p)+4>>2]|0;v=z+(C*40|0)|0;u=Yk(v,c[(s+(t*20|0)&p)+16>>2]|0)|0;if(u){c[(ke&p)>>2]=Sg(v,1)|0;dh(je,le,10344,ke)}Yl(v,xb)|0;w=e[(z+(C*40|0)&o)+8>>1]|0;if(w&18){g=c[(z+(C*40|0)&p)+12>>2]|0;if(w&16384)g=(c[(v&p)>>2]|0)+g|0;if((g|0)>(c[((c[(z+(C*40|0)&p)+32>>2]|0)&p)+88>>2]|0)){g=m;m=r;u=x;ie=1316;break c}else{C=L;T=t}}else{C=L;T=t}break}case 12:{g=c[(s+(t*20|0)&p)+12>>2]|0;L=c[((c[(Xd&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<4)&p)+4>>2]|0;I=c[(c[(L&p)+4>>2]&p)>>2]|0;J=a[(I&n)+5>>0]|0;H=J&255;g=(g|0)==-1?H:g;do if((d[(I&n)+16>>0]|0)>2)g=H;else if((c[(c[(I&p)+64>>2]&p)>>2]|0)!=0?(V=I+72|0,U=c[(V&p)+4>>2]|0,(U|0)>0|(U|0)==0&(c[(V&p)>>2]|0)>>>0>0):0){g=H;break}while(0);if(!(a[(I&n)+15>>0]|0))A=c[(I&p)+168>>2]|0;else A=10360;K=(g|0)==5;if(K)if(A){C=A;while(1)if(!(a[(C&n)>>0]|0))break;else C=C+1|0;if(C-A&1073741823){C=c[(c[(I&p)+60>>2]&p)>>2]|0;if(!(a[(I&n)+4>>0]|0))if((c[(C&p)>>2]|0)>1?!((c[(C&p)+52>>2]|0)==0|(g|0)==(H|0)):0)ie=1077;else{g=H;u=0}else ie=1076}else{g=H;u=0}}else{g=H;u=0}else ie=1076;if((ie|0)==1076){ie=0;if((g|0)==(H|0)){g=H;u=0}else ie=1077}do if((ie|0)==1077){ie=0;C=J<<24>>24==5;if(C|K){if(!(a[(ee&n)>>0]|0)){g=m;s=K;m=r;u=x;ie=1080;break c}if((c[(Zb&p)>>2]|0)>1){g=m;s=K;m=r;u=x;ie=1080;break c}if(!C){if(J<<24>>24==4)sn(I,2)|0}else{J=I+208|0;if(!(c[(J&p)>>2]|0)){c[(_c&p)>>2]=0;u=fl(I,1)|0;if(u)break;u=c[(I&p)>>2]|0;u=pc[c[(u&p)+32>>2]&31](u,c[(I&p)+212>>2]|0,0,_c)|0;if((u|0)==0&(c[(_c&p)>>2]|0)!=0)u=pn(I)|0;if(u)break;if(c[(J&p)>>2]|0)ie=1088}else ie=1088;if((ie|0)==1088){ie=0;u=qn(I)|0;if(u)break;u=rn(c[(J&p)>>2]|0,d[(I&n)+9>>0]|0,c[(I&p)+152>>2]|0,c[(I&p)+200>>2]|0)|0;c[(J&p)>>2]=0;if(u)break}sn(I,g)|0}u=Fg(L,K?2:1)|0}else u=0}while(0);g=sn(I,(u|0)==0?g:H)|0;C=c[(s+(t*20|0)&p)+8>>2]|0;J=z+(C*40|0)|0;b[(z+(C*40|0)&o)+8>>1]=2562;if((g|0)==6){c[(z+(C*40|0)&p)+16>>2]=0;g=0}else{v=c[(g<<2&p)+32216>>2]|0;c[(z+(C*40|0)&p)+16>>2]=v;g=v;while(1)if(!(a[(g&n)>>0]|0))break;else g=g+1|0;g=g-v&1073741823}c[(z+(C*40|0)&p)+12>>2]=g;a[(z+(C*40|0)&n)+10>>0]=1;Yl(J,xb)|0;C=J;T=t;break}case 13:{if(!(a[(ee&n)>>0]|0)){g=m;m=r;u=x;ie=1101;break c}if((c[(Ra&p)>>2]|0)>1){g=m;m=r;u=x;ie=1103;break c}S=c[(Tb&p)>>2]|0;N=c[(vb&p)>>2]|0;w=c[(wb&p)>>2]|0;v=c[(Sa&p)>>2]|0;c[(Tb&p)>>2]=S&-2762753|2107392;c[(Sa&p)>>2]=0;g=c[((c[(Xd&p)>>2]|0)&p)+4>>2]|0;P=g+4|0;I=a[((c[(c[(P&p)>>2]&p)>>2]|0)&n)+15>>0]|0;V=c[(Ub&p)>>2]|0;u=tn(le,je,(a[(_b&n)>>0]|0)==2?42432:42464)|0;J=c[(Ub&p)>>2]|0;if((J|0)>(V|0))M=(c[(Xd&p)>>2]|0)+(J+-1<<4)|0;else M=0;i:do if(!u){O=c[((c[(Xd&p)>>2]|0)+(J+-1<<4)&p)+4>>2]|0;un(O)|0;T=c[(P&p)>>2]|0;c[(T&p)+4>>2]=c[(g&p)>>2];T=(c[(T&p)+32>>2]|0)-(c[(T&p)+36>>2]|0)|0;u=tn(le,je,42488)|0;if(!u){u=tn(le,je,42528)|0;if(!u){u=yg(g,2)|0;if(!u){J=c[(P&p)>>2]|0;if((a[((c[(J&p)>>2]|0)&n)+5>>0]|0)==5)c[(Ta&p)>>2]=0;if(!(xg(O,c[(J&p)+32>>2]|0,T,0)|0)){if(I<<24>>24==0?(xg(O,c[(Ta&p)>>2]|0,T,0)|0)!=0:0){u=7;break}if(a[(ge&n)>>0]|0){u=7;break}J=a[(Ua&n)>>0]|0;do if(J<<24>>24>-1)J=J<<24>>24;else{J=c[(P&p)>>2]|0;c[(J&p)+4>>2]=c[(g&p)>>2];if(!(a[(J&n)+17>>0]|0)){J=0;break}J=(a[(J&n)+18>>0]|0)==0?1:2}while(0);vn(O,J)|0;u=wn(le,je,42536)|0;if(u)break;u=wn(le,je,42688)|0;if(u)break;u=wn(le,je,42792)|0;if(u)break;u=wn(le,je,42912)|0;if(u)break;u=wn(le,je,43112)|0;if(u)break;u=wn(le,je,43232)|0;if(u)break;u=tn(le,je,43392)|0;if(!u)J=0;else break;do{u=d[(J&n)+43576>>0]|0;wm(g,u,ad);u=Dg(O,u,(d[((J|1)&n)+43576>>0]|0)+(c[(ad&p)>>2]|0)|0)|0;J=J+2|0;if(u)break i}while((J|0)<10);H=c[(P&p)>>2]|0;c[(H&p)+4>>2]=c[(g&p)>>2];J=c[(O&p)>>2]|0;K=O+4|0;I=c[(K&p)>>2]|0;c[(I&p)+4>>2]=J;H=c[((c[(H&p)>>2]|0)&p)+60>>2]|0;F=c[(H&p)>>2]|0;if(F){V=c[(I&p)+32>>2]|0;V=sw(c[(I&p)+44>>2]|0,0,V|0,((V|0)<0)<<31>>31|0)|0;u=id;c[(u&p)>>2]=V;c[(u&p)+4>>2]=G;u=ac[c[(F&p)+40>>2]&63](H,11,id)|0;u=(u|0)==12?0:u;if(u)break;J=c[(O&p)>>2]|0}U=Tc+0|0;V=U+48|0;do{c[(U&p)>>2]=0;U=U+4|0}while((U|0)<(V|0));c[(Va&p)>>2]=J;c[(Wa&p)>>2]=O;c[(Xa&p)>>2]=g;c[(Ya&p)>>2]=1;gd(Tc,2147483647)|0;u=hd(Tc)|0;if(u){C=c[(c[((c[(Xa&p)>>2]|0)&p)+4>>2]&p)>>2]|0;if(a[(C&n)+15>>0]|0)break;if(a[(C&n)+12>>0]|0)break;xn(C);break}u=(c[(P&p)>>2]|0)+22|0;b[(u&o)>>1]=e[(u&o)>>1]&65533;u=un(O)|0;if(u)break;J=c[(K&p)>>2]|0;c[(J&p)+4>>2]=c[(O&p)>>2];if(!(a[(J&n)+17>>0]|0))E=0;else E=(a[(J&n)+18>>0]|0)==0?1:2;vn(g,E)|0;u=xg(g,c[((c[(K&p)>>2]|0)&p)+32>>2]|0,T,1)|0}else u=7}}}}while(0);c[(Tb&p)>>2]=S;c[(vb&p)>>2]=N;c[(wb&p)>>2]=w;c[(Sa&p)>>2]=v;xg(g,-1,-1,1)|0;a[(ee&n)>>0]=1;if(M){V=M+4|0;Ml(c[(V&p)>>2]|0);c[(V&p)>>2]=0;c[(M&p)+12>>2]=0}Eg(le);C=L;T=t;break}case 143:{V=c[((c[(Xd&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<4)&p)+4>>2]|0;I=c[(V&p)+4>>2]|0;c[(I&p)+4>>2]=c[(V&p)>>2];if(!(a[(I&n)+17>>0]|0)){g=m;m=r;u=L;ie=1157;break d}E=I+44|0;H=c[(E&p)>>2]|0;A=I+12|0;C=c[((c[(A&p)>>2]|0)&p)+56>>2]|0;C=d[(C&n)+37>>0]<<16|d[(C&n)+36>>0]<<24|d[(C&n)+38>>0]<<8|d[(C&n)+39>>0];F=El(I,H,C)|0;if(H>>>0>>0){g=m;m=r;u=x;ie=1145;break c}if(!C){g=m;m=r;u=L;ie=1157;break d}J=I+8|0;g=c[(J&p)>>2]|0;do if(g){C=g;do{if(C){ie=1150;break}C=c[2]|0}while((C|0)!=0);if((ie|0)==1150){ie=0;u=Fl(C,0,0)|0;if(u)break;g=c[(J&p)>>2]|0}if(g){do{V=g+72|0;a[(V&n)>>0]=d[(V&n)>>0]&251;g=c[(g&p)+8>>2]|0}while((g|0)!=0);ie=1154}else ie=1154}else ie=1154;while(0);if((ie|0)==1154){ie=0;u=Gl(I,F,H,0)|0;if(!u){u=Gg(c[((c[(A&p)>>2]|0)&p)+68>>2]|0)|0;V=c[((c[(A&p)>>2]|0)&p)+56>>2]|0;U=c[(E&p)>>2]|0;a[(V&n)+28>>0]=U>>>24;a[(V&n)+29>>0]=U>>>16;a[(V&n)+30>>0]=U>>>8;a[(V&n)+31>>0]=U}}if((u|0)==101){g=m;m=r;u=L;ie=1157;break d}else{C=L;T=t}break}case 145:{g=c[(s+(t*20|0)&p)+12>>2]|0;if((g&255|0)==0?(c[(Tb&p)>>2]&16384|0)!=0:0){g=m;m=r;S=z;T=s;U=W;V=X;u=L;r=t;break d}C=c[((c[(Xd&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<4)&p)+4>>2]|0;A=c[(s+(t*20|0)&p)+8>>2]|0;if(!(a[(C&n)+9>>0]|0)){g=m;m=r;S=z;T=s;U=W;V=X;u=L;r=t;break d}v=g+1&255;w=C+4|0;c[((c[(w&p)>>2]|0)&p)+4>>2]=c[(C&p)>>2];u=bl(C,A,v)|0;if(!u){g=m;m=r;u=L;r=t;ie=1166;break d}if((u&255|0)!=6){g=m;m=r;s=u;u=x;ie=1309;break c}c[(ke&p)>>2]=c[(s+(t*20|0)&p)+16>>2];dh(je,le,42224,ke);C=L;T=t;break}case 144:{g=m;m=r;u=L;r=t;ie=1158;break d}case 146:{J=c[(s+(t*20|0)&p)+16>>2]|0;v=c[(Za&p)>>2]|0;u=(v|0)>0;if(u?(c[(_a&p)>>2]|0)==0:0){u=6;ie=1188}else ie=1179;j:do if((ie|0)==1179){ie=0;if(!J){g=m;m=r;S=z;T=s;U=W;V=X;u=L;r=t;break d}g=J+8|0;w=(c[(c[(g&p)>>2]&p)>>2]|0)+56|0;if(c[(w&p)>>2]|0){if(u){C=c[(_a&p)>>2]|0;A=0;do{if((c[(C+(A<<2)&p)>>2]|0)==(J|0)){u=0;ie=1188;break j}A=A+1|0}while((A|0)<(v|0))}u=yn(le)|0;if(!u){u=lc[c[(w&p)>>2]&127](c[(g&p)>>2]|0)|0;if(!u){u=c[(Za&p)>>2]|0;c[(Za&p)>>2]=u+1;c[((c[(_a&p)>>2]|0)+(u<<2)&p)>>2]=J;u=J+12|0;c[(u&p)>>2]=(c[(u&p)>>2]|0)+1;u=0}}else ie=1188}else u=0}while(0);if((ie|0)==1188){ie=0;if(!J){C=L;T=t;break e}g=J+8|0}Mm(f,c[(g&p)>>2]|0);C=L;T=t;break}case 147:{U=Kd+0|0;V=U+40|0;do{c[(U&p)>>2]=0;U=U+4|0}while((U|0)<(V|0));c[($a&p)>>2]=le;g=_g(Kd,z+((c[(s+(t*20|0)&p)+8>>2]|0)*40|0)|0)|0;u=Sg(Kd,1)|0;k:do if(u){v=_h(le,u,c[((c[(Xd&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<4)&p)>>2]|0)|0;g=c[(c[(v&p)+56>>2]&p)>>2]|0;u=bn(cb,g,Xc)|0;if((u|0)!=0?(Oc=c[(u&p)+8>>2]|0,(Oc|0)!=0):0){g=zn(le,v,Oc,c[((c[(Oc&p)>>2]|0)&p)+4>>2]|0,je)|0;if(g)break;u=v+60|0;g=c[(u&p)>>2]|0;if(!g){g=0;break}while(1){if((c[(g&p)>>2]|0)==(le|0))break;g=c[(g&p)+24>>2]|0;if(!g){g=0;break k}}g=yn(le)|0;if(g)break;g=c[(u&p)>>2]|0;l:do if(!g)g=0;else while(1){if((c[(g&p)>>2]|0)==(le|0))break l;g=c[(g&p)+24>>2]|0;if(!g){g=0;break}}while(0);V=c[(Za&p)>>2]|0;c[(Za&p)>>2]=V+1;c[((c[(_a&p)>>2]|0)+(V<<2)&p)>>2]=g;g=g+12|0;c[(g&p)>>2]=(c[(g&p)>>2]|0)+1;g=0;break}c[(ke&p)>>2]=g;c[(je&p)>>2]=uh(le,28320,ke)|0;g=1}while(0);if((b[(ab&o)>>1]&9312)==0&(c[(bb&p)>>2]|0)==0){C=L;T=t;u=g}else{Qg(Kd);C=L;T=t;u=g}break}case 148:{c[(ha&p)>>2]=(c[(ha&p)>>2]|0)+1;g=_h(le,c[(s+(t*20|0)&p)+16>>2]|0,c[((c[(Xd&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<4)&p)>>2]|0)|0;m:do if((g|0)!=0?(Pc=g+60|0,Qc=c[(Pc&p)>>2]|0,(Qc|0)!=0):0){u=Qc;do{if((c[((c[(u&p)+8>>2]|0)&p)+4>>2]|0)>0){u=6;break m}u=c[(u&p)+24>>2]|0}while((u|0)!=0);g=Ok(le,g)|0;v=g+8|0;u=lc[c[((c[(c[(g&p)+4>>2]&p)>>2]|0)&p)+20>>2]&127](c[(v&p)>>2]|0)|0;if(!u){c[(v&p)>>2]=0;c[(Pc&p)>>2]=0;An(g);u=0}}else u=0;while(0);c[(ha&p)>>2]=(c[(ha&p)>>2]|0)+-1;C=L;T=t;break}case 149:{g=m;m=r;u=L;r=t;ie=1213;break d}case 150:{g=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;C=c[(s+(t*20|0)&p)+12>>2]|0;A=z+(C*40|0)|0;if(a[(g&n)+25>>0]|0){g=m;m=r;u=L;r=t;ie=1226;break d}V=g+32|0;u=c[(c[(V&p)>>2]&p)>>2]|0;U=c[(u&p)>>2]|0;c[(Id&p)>>2]=0;c[(Id&p)+4>>2]=0;c[(Id&p)+8>>2]=0;c[(Id&p)+12>>2]=0;c[(Id&p)+16>>2]=0;c[(Id&p)+20>>2]=0;c[(Id&p)+24>>2]=0;c[(Id&p)>>2]=A;v=z+(C*40|0)+8|0;b[(v&o)>>1]=e[(v&o)>>1]&48640|1;V=ac[c[(U&p)+44>>2]&63](c[(V&p)>>2]|0,Id,c[(s+(t*20|0)&p)+8>>2]|0)|0;Mm(f,u);u=c[(db&p)>>2]|0;u=(u|0)==0?V:u;Yl(A,xb)|0;v=e[(v&o)>>1]|0;if(v&18){g=c[(z+(C*40|0)&p)+12>>2]|0;if(v&16384)g=(c[(A&p)>>2]|0)+g|0;if((g|0)>(c[((c[(z+(C*40|0)&p)+32>>2]|0)&p)+88>>2]|0)){g=m;m=r;u=x;ie=1316;break c}else{C=L;T=t}}else{C=L;T=t}break}case 14:{A=c[(s+(t*20|0)&p)+12>>2]|0;C=A+1|0;F=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;J=c[(F&p)+32>>2]|0;I=c[(J&p)>>2]|0;H=c[(I&p)>>2]|0;E=c[(z+(C*40|0)&p)>>2]|0;A=c[(z+(A*40|0)&p)>>2]|0;g=c[(Bb&p)>>2]|0;if((E|0)>0){u=0;do{V=u;u=u+1|0;c[(g+(V<<2)&p)>>2]=z+((u+C|0)*40|0)}while((u|0)!=(E|0))}u=tc[c[(H&p)+32>>2]&31](J,A,c[(s+(t*20|0)&p)+16>>2]|0,E,g)|0;Mm(f,I);if((u|0)==0?(lc[c[(H&p)+40>>2]&127](J)|0)!=0:0)t=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;a[(F&n)+25>>0]=0;C=L;T=t;break}case 151:{g=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;if(a[(g&n)+25>>0]|0){g=m;m=r;S=z;T=s;U=W;V=X;u=L;r=t;break d}g=g+32|0;v=c[(g&p)>>2]|0;V=c[(v&p)>>2]|0;u=c[(V&p)>>2]|0;v=lc[c[(u&p)+36>>2]&127](v)|0;Mm(f,V);if((v|0)==0?(lc[c[(u&p)+40>>2]&127](c[(g&p)>>2]|0)|0)!=0:0){u=0;ie=19;break e}t=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;u=v;ie=19;break}case 15:{F=s+(t*20|0)+16|0;v=c[((c[(F&p)>>2]|0)&p)+8>>2]|0;if(!v){g=m;m=r;s=6;u=x;ie=1309;break c}g=c[(v&p)>>2]|0;if(!g){g=m;m=r;s=6;u=x;ie=1309;break c}I=c[(s+(t*20|0)&p)+8>>2]|0;E=g+52|0;C=c[(E&p)>>2]|0;if(!C){g=m;m=r;S=z;T=s;U=W;V=X;u=L;r=t;break d}H=a[(eb&n)>>0]|0;J=c[(Bb&p)>>2]|0;if((I|0)>0){C=0;A=z+((c[(s+(t*20|0)&p)+12>>2]|0)*40|0)|0;while(1){c[(J+(C<<2)&p)>>2]=A;C=C+1|0;if((C|0)==(I|0))break;else A=A+40|0}C=c[(E&p)>>2]|0}A=s+(t*20|0)+3|0;a[(eb&n)>>0]=a[(A&n)>>0]|0;u=pc[C&31](v,I,J,Hd)|0;a[(eb&n)>>0]=H;Mm(f,v);if(!u){if(c[(s+(t*20|0)&p)+4>>2]|0){l=Hd;r=c[(l&p)>>2]|0;l=c[(l&p)+4>>2]|0;V=ne;c[(V&p)>>2]=r;c[(V&p)+4>>2]=l}}else if((u&255|0)==19?(a[((c[(F&p)>>2]|0)&n)+16>>0]|0)!=0:0){g=a[(A&n)>>0]|0;if(g<<24>>24==5)g=2;else if(g<<24>>24==4){g=m;m=r;S=z;T=s;U=W;V=X;u=L;r=t;break d}a[(fe&n)>>0]=g;C=L;T=t;break e}c[(ub&p)>>2]=(c[(ub&p)>>2]|0)+1;C=L;T=t;break}case 152:{g=c[((c[(s+(t*20|0)&p)+16>>2]|0)&p)+8>>2]|0;u=c[(s+(t*20|0)&p)+4>>2]|0;v=z+(u*40|0)|0;if(((b[(z+(u*40|0)&o)+8>>1]&2)!=0?(a[(z+(u*40|0)&n)+10>>0]|0)!=1:0)?(Wd=Bn(v,1)|0,(Wd|0)!=0):0){g=m;m=r;s=Wd;u=x;ie=1309;break c}u=rc[c[((c[(g&p)>>2]|0)&p)+76>>2]&127](g,c[(z+(u*40|0)&p)+16>>2]|0)|0;Mm(f,g);b[(Yd&o)>>1]=b[(Yd&o)>>1]&-9;C=L;T=t;break}case 153:{g=m;m=r;u=L;r=t;ie=1257;break d}case 155:{g=m;m=r;ie=1264;break d}case 154:{g=m;m=r;J=L;r=t;ie=1258;break d}default:{g=m;m=r;S=z;T=s;U=W;V=X;u=L;r=t;break d}}while(0);n:do if((ie|0)==57){ie=0;w=L+8|0;b[(w&o)>>1]=2562;c[(L&p)+16>>2]=v;c[(L&p)+12>>2]=g;a[(L&n)+10>>0]=Jc;if((a[(s+(t*20|0)&n)+3>>0]|0)!=0?(V=z+((c[(s+(t*20|0)&p)+12>>2]|0)*40|0)|0,!((c[(V&p)>>2]|0)==0&(c[(V&p)+4>>2]|0)==0)):0){b[(w&o)>>1]=2576;C=L;T=t}else{C=L;T=t}}else if((ie|0)==536){if(b[(Yd&o)>>1]&8){g=m;m=r;s=516;u=x;ie=1309;break c}C=c[(s+(t*20|0)&p)+8>>2]|0;I=c[(s+(t*20|0)&p)+12>>2]|0;g=c[(Xd&p)>>2]|0;H=c[(g+(I<<4)&p)+4>>2]|0;if(J<<24>>24==55){g=a[((c[(g+(I<<4)&p)+12>>2]|0)&n)+76>>0]|0;if((g&255)<(d[(Mb&n)>>0]|0)){a[(Mb&n)>>0]=g;J=1}else J=1}else J=0;v=s+(t*20|0)+3|0;if(a[(v&n)>>0]&4){V=z+(C*40|0)|0;g=Vg(V)|0;c[(V&p)>>2]=g;c[(V&p)+4>>2]=G;V=z+(C*40|0)+8|0;b[(V&o)>>1]=e[(V&o)>>1]&48640|4;if((g|0)<2){g=m;m=r;s=x;ie=542;break c}else E=g}else E=C;u=s+(t*20|0)+1|0;C=a[(u&n)>>0]|0;if(C<<24>>24==-6){A=c[(s+(t*20|0)&p)+16>>2]|0;C=(e[(A&o)+8>>1]|0)+(e[(A&o)+6>>1]|0)|0}else if(C<<24>>24==-14){C=c[(s+(t*20|0)&p)+16>>2]|0;A=0}else{C=0;A=0}g=xm(f,c[(s+(t*20|0)&p)+4>>2]|0,C,I,1)|0;if(!g){y=ge;z=je;g=m;m=x;ie=1317;break a}a[(g&n)+25>>0]=1;V=g+27|0;a[(V&n)>>0]=a[(V&n)>>0]|8;c[(g&p)+28>>2]=E;ie=ym(H,E,J,A,c[(g&p)>>2]|0)|0;c[(g&p)+8>>2]=A;a[(V&n)>>0]=((a[(u&n)>>0]|0)!=-6&1)<<2&255|a[(V&n)>>0]&-5;u=ie;ie=548}else if((ie|0)==715){ie=0;M=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;V=c[(M&p)+56>>2]|0;do if(!V){u=c[(M&p)>>2]|0;g=qm(u)|0;if(!g)if(!(a[(u&n)+73>>0]|0)){v=1;g=0}else{v=0;g=Vm(u)|0}else v=1;a[(M&n)+26>>0]=0;c[(M&p)+60>>2]=0;a[(M&n)+25>>0]=v;if(!v){C=L;T=t;u=g;break n}}else{do if(!(a[(V&n)+56>>0]|0)){g=V+36|0;if(!(c[(g&p)>>2]|0)){g=0;ie=756}else{g=Nm(V+64|0,g)|0;ie=755}}else{g=Om(V)|0;if(!g){U=V+59|0;o:do if(!(a[(U&n)>>0]|0)){u=0;g=0}else{w=0;v=0;p:while(1){T=V+(w<<6)+64|0;c[(ke&p)>>2]=0;S=V+(w<<6)+92|0;C=c[(S&p)>>2]|0;J=((C|0)<0)<<31>>31;do if((C|0)>16){I=16;H=0;E=0;while(1){I=iw(I|0,H|0,4)|0;H=G;F=E+1|0;if(!((H|0)<(J|0)|(H|0)==(J|0)&I>>>0>>0)){H=E;break}else E=F}P=Sd;c[(P&p)>>2]=0;c[(P&p)+4>>2]=0;if((C|0)<17){ie=726;break}u=Qm(16)|0;c[(ke&p)>>2]=u;J=(u|0)==0;I=c[(S&p)>>2]|0;if(!((I|0)>0&(J^1))){g=J?7:0;break}N=(H|0)>0;P=0;O=0;do{c[(qd&p)>>2]=0;g=I-P|0;g=Pm(T,(g|0)<16?g:16,Sd,qd)|0;if(g){ie=747;break p}g=Rm(T,c[(qd&p)>>2]|0,pd)|0;do if(N){I=1;J=1;do{J=J<<4;I=I+1|0}while((I|0)!=(F|0));if(!g){H=1;I=u}else{J=c[(pd&p)>>2]|0;ie=743;break}while(1){K=(c[(I&p)+12>>2]|0)+((((O|0)/(J|0)|0|0)%16|0)*56|0)+48|0;I=c[(K&p)>>2]|0;if(!I){I=Qm(16)|0;if(!I){g=7;ie=738;break}g=Rm(T,I,K)|0;if(g){ie=738;break}I=c[(K&p)>>2]|0}I=c[(I&p)+4>>2]|0;H=H+1|0;if((H|0)>=(F|0)){ie=740;break}else J=(J|0)/16|0}if((ie|0)==738){J=c[(pd&p)>>2]|0;ie=743;break}else if((ie|0)==740){J=c[(pd&p)>>2]|0;ie=742;break}}else{J=c[(pd&p)>>2]|0;if(!g){I=u;ie=742}else ie=743}while(0);if((ie|0)==742){ie=0;c[((c[(I&p)+12>>2]|0)+(((O|0)%16|0)*56|0)&p)+48>>2]=J;g=0}else if((ie|0)==743){ie=0;Sm(J)}O=O+1|0;P=P+16|0;I=c[(S&p)>>2]|0}while((P|0)<(I|0)&(g|0)==0)}else{ie=Sd;c[(ie&p)>>2]=0;c[(ie&p)+4>>2]=0;ie=726}while(0);if((ie|0)==726){ie=0;g=Pm(T,C,Sd,ke)|0;u=c[(ke&p)>>2]|0}w=w+1|0;if(g){ie=746;break}if((w|0)>=(d[(U&n)>>0]|0)){g=0;break o}else v=u}if((ie|0)==746)Tm(u);else if((ie|0)==747)Tm(u);Tm(v);u=0}while(0);if(!g){g=Um(V+64|0,u)|0;c[(V&p)+20>>2]=u;if(!g){g=0;ie=755;break}else u=0}Tm(u);ie=755}else ie=756}while(0);if((ie|0)==755){ie=0;a[(M&n)+25>>0]=0;C=L;T=t;u=g;break n}else if((ie|0)==756){ie=0;a[(M&n)+25>>0]=1;break}}while(0);C=L;T=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;u=g}else if((ie|0)==765){u=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;c[(Fd&p)>>2]=c[(s+(t*20|0)&p)+12>>2];g=u;u=rc[c[(s+(t*20|0)&p)+16>>2]&127](c[(u&p)>>2]|0,Fd)|0;ie=766}while(0);do if((ie|0)==548){ie=0;a[((c[(g&p)>>2]|0)&n)+74>>0]=d[(v&n)>>0]&3;C=L;T=t}else if((ie|0)==766){c[(g&p)+60>>2]=0;g=g+25|0;if(!(c[(Fd&p)>>2]|0)){a[(g&n)>>0]=0;ie=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;t=f+(d[(s+(t*20|0)&n)+3>>0]<<2)+108|0;c[(t&p)>>2]=(c[(t&p)>>2]|0)+1;t=ie;ie=19;break}else{a[(g&n)>>0]=1;ie=19;break}}while(0);if((ie|0)==19){ie=0;if(c[(Cc&p)>>2]|0){u=je;g=m;m=x;break b}g=c[(be&p)>>2]|0;if(!((g|0)==0|m>>>0>>0)){y=c[(yc&p)>>2]|0;if(!(lc[g&127](c[(Zd&p)>>2]|0)|0)){y=y+m-((m>>>0)%(y>>>0)|0)|0;C=L;T=t}else{g=m;s=9;m=x;ie=1311;break a}}else{C=L;T=t}}t=T+1|0;if(!u){g=m;u=C}else{g=m;s=u;m=x;ie=1311;break a}}q:switch(ie|0){case 22:{ie=0;S=c[(s+(t*20|0)&p)+4>>2]|0;b[(z+(S*40|0)&o)+8>>1]=4;S=z+(S*40|0)|0;c[(S&p)>>2]=t;c[(S&p)+4>>2]=((t|0)<0)<<31>>31;S=z;T=s;U=W;V=X;r=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;break}case 23:{ie=0;S=c[(s+(t*20|0)&p)+4>>2]|0;r=c[(z+(S*40|0)&p)>>2]|0;b[(z+(S*40|0)&o)+8>>1]=128;S=z;T=s;U=W;V=X;break}case 24:{ie=0;r=c[(s+(t*20|0)&p)+4>>2]|0;u=z+(r*40|0)|0;T=(c[(s+(t*20|0)&p)+12>>2]|0)+-1|0;S=u;c[(S&p)>>2]=T;c[(S&p)+4>>2]=((T|0)<0)<<31>>31;b[(z+(r*40|0)&o)+8>>1]=4;r=c[(s+(t*20|0)&p)+8>>2]|0;S=z;T=s;U=W;V=X;r=(r|0)==0?t:r+-1|0;break}case 25:{ie=0;S=c[(s+(t*20|0)&p)+4>>2]|0;r=(c[(s+((c[(z+(S*40|0)&p)>>2]|0)*20|0)&p)+8>>2]|0)+-1|0;b[(z+(S*40|0)&o)+8>>1]=128;S=z;T=s;U=W;V=X;break}case 26:{ie=0;S=c[(s+(t*20|0)&p)+4>>2]|0;b[(z+(S*40|0)&o)+8>>1]=4;S=z+(S*40|0)|0;r=c[(S&p)>>2]|0;c[(S&p)>>2]=t;c[(S&p)+4>>2]=((t|0)<0)<<31>>31;S=z;T=s;U=W;V=X;break}case 27:{ie=0;if(!(b[(z+((c[(s+(r*20|0)&p)+12>>2]|0)*40|0)&o)+8>>1]&1)){S=z;T=s;U=W;V=X}else ie=28;break}case 44:{ie=0;T=c[(s+(r*20|0)&p)+4>>2]|0;S=u;c[(S&p)>>2]=T;c[(S&p)+4>>2]=((T|0)<0)<<31>>31;S=z;T=s;U=W;V=X;break}case 45:{ie=0;U=c[(s+(r*20|0)&p)+16>>2]|0;T=c[(U&p)+4>>2]|0;S=u;c[(S&p)>>2]=c[(U&p)>>2];c[(S&p)+4>>2]=T;S=z;T=s;U=W;V=X;break}case 46:{ie=0;b[(u&o)+8>>1]=8;h[(u&q)>>3]=+h[(c[(s+(r*20|0)&p)+16>>2]&q)>>3];S=z;T=s;U=W;V=X;break}case 60:{ie=0;J=(c[(s+(r*20|0)&p)+12>>2]|0)-(c[(s+(r*20|0)&p)+8>>2]|0)|0;t=(c[(s+(r*20|0)&p)+4>>2]|0)!=0?257:1;b[(u&o)+8>>1]=t;if((J|0)>0){w=J;A=u;do{v=A+48|0;A=A+40|0;if(!(b[(v&o)>>1]&9312))b[(v&o)>>1]=1;else vg(A);b[(v&o)>>1]=t;w=w+-1|0}while((w|0)>0);S=z;T=s;U=W;V=X;u=u+(J*40|0)|0}else{S=z;T=s;U=W;V=X}break}case 65:{ie=0;u=c[(s+(r*20|0)&p)+4>>2]|0;S=z+(u*40|0)+8|0;b[(S&o)>>1]=e[(S&o)>>1]&65406|1;S=z;T=s;U=W;V=X;u=z+(u*40|0)|0;break}case 66:{ie=0;Xg(u,c[(s+(r*20|0)&p)+16>>2]|0,c[(s+(r*20|0)&p)+4>>2]|0,0,0)|0;a[(u&n)+10>>0]=Jc;S=z;T=s;U=W;V=X;break}case 67:{ie=0;C=(c[(s+(r*20|0)&p)+4>>2]|0)+-1|0;A=c[(Ab&p)>>2]|0;w=A+(C*40|0)|0;v=e[(A+(C*40|0)&o)+8>>1]|0;if(v&18){t=c[(A+(C*40|0)&p)+12>>2]|0;if(v&16384)t=(c[(w&p)>>2]|0)+t|0;if((t|0)>(c[((c[(A+(C*40|0)&p)+32>>2]|0)&p)+88>>2]|0)){t=r;u=x;ie=1316;break c}}Zl(u,w,2048);S=z;T=s;U=W;V=X;break}case 72:{ie=0;t=c[(s+(r*20|0)&p)+12>>2]|0;v=c[(s+(r*20|0)&p)+8>>2]|0;J=t+v|0;u=z+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)|0;v=z+(v*40|0)|0;while(1){_l(v,u);t=t+-1|0;if(!t)break;else{u=u+40|0;v=v+40|0}}S=z;T=s;U=W;V=X;u=z+(J*40|0)|0;break}case 74:{ie=0;r=c[(s+(t*20|0)&p)+12>>2]|0;u=z+((c[(s+(t*20|0)&p)+4>>2]|0)*40|0)|0;J=z+((c[(s+(t*20|0)&p)+8>>2]|0)*40|0)|0;while(1){Zl(J,u,4096);if((b[(J&o)+8>>1]&4096)!=0?(Vl(J)|0)!=0:0){y=ge;z=je;r=m;m=x;ie=1317;break a}if(!r){S=z;T=s;U=W;V=X;u=J;r=t;break q}r=r+-1|0;u=u+40|0;J=J+40|0}}case 79:{ie=0;u=z+((c[(s+(r*20|0)&p)+8>>2]|0)*40|0)|0;Zl(u,z+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)|0,4096);S=z;T=s;U=W;V=X;break}case 94:{ie=0;K=c[(s+(t*20|0)&p)+4>>2]|0;J=z+(K*40|0)|0;L=c[(s+(t*20|0)&p)+8>>2]|0;I=z+(L*40|0)|0;M=c[(s+(t*20|0)&p)+12>>2]|0;u=z+(M*40|0)|0;H=z+(K*40|0)+8|0;E=b[(H&o)>>1]|0;F=z+(L*40|0)+8|0;C=b[(F&o)>>1]|0;if((C|E)&1){r=z+(M*40|0)+8|0;if(!(b[(r&o)>>1]&9312)){b[(r&o)>>1]=1;S=z;T=s;U=W;V=X;r=t;break}else{vg(u);S=z;T=s;U=W;V=X;r=t;break}}if(E&16384){if(Rg(J)|0){y=ge;z=je;r=m;m=x;ie=1317;break a}C=b[(F&o)>>1]|0}if((C&16384)!=0?(Rg(I)|0)!=0:0){y=ge;z=je;r=m;m=x;ie=1317;break a}if((b[(H&o)>>1]&18)==0?(bm(J,Jc,0)|0)!=0:0){y=ge;z=je;r=m;m=x;ie=1317;break a}if((b[(F&o)>>1]&18)==0?(bm(I,Jc,0)|0)!=0:0){y=ge;z=je;r=m;m=x;ie=1317;break a}E=z+(K*40|0)+12|0;A=z+(L*40|0)+12|0;r=(c[(A&p)>>2]|0)+(c[(E&p)>>2]|0)|0;if((r|0)>(c[(zb&p)>>2]|0)){u=x;ie=1316;break c}v=(M|0)==(L|0);if(eh(u,r+2|0,v&1)|0){y=ge;z=je;r=m;m=x;ie=1317;break a}w=z+(M*40|0)+8|0;b[(w&o)>>1]=e[(w&o)>>1]&48640|2;C=z+(M*40|0)+16|0;if(!v)kw(c[(C&p)>>2]|0,c[(z+(L*40|0)&p)+16>>2]|0,c[(A&p)>>2]|0)|0;kw((c[(C&p)>>2]|0)+(c[(A&p)>>2]|0)|0,c[(z+(K*40|0)&p)+16>>2]|0,c[(E&p)>>2]|0)|0;a[((c[(C&p)>>2]|0)+r&n)>>0]=0;a[((c[(C&p)>>2]|0)+r&n)+1>>0]=0;b[(w&o)>>1]=e[(w&o)>>1]|512;c[(z+(M*40|0)&p)+12>>2]=r;a[(z+(M*40|0)&n)+10>>0]=Jc;S=z;T=s;U=W;V=X;r=t;break}case 112:{ie=0;V=c[(s+(r*20|0)&p)+4>>2]|0;N=z+(V*40|0)|0;S=cm(N)|0;w=c[(s+(r*20|0)&p)+8>>2]|0;O=z+(w*40|0)|0;T=cm(O)|0;U=c[(s+(r*20|0)&p)+12>>2]|0;u=z+(U*40|0)|0;r:do if(!((b[(z+(w*40|0)&o)+8>>1]|b[(z+(V*40|0)&o)+8>>1])&1)){s:do if(!((S&4&T)<<16>>16))L=0;else{t=N;C=c[(t&p)>>2]|0;t=c[(t&p)+4>>2]|0;F=O;v=c[(F&p)>>2]|0;F=c[(F&p)+4>>2]|0;J=d[(P&n)>>0]|0;t:do if((J|0)==89){if((t|0)>-1|(t|0)==-1&C>>>0>4294967295){V=dw(-1,2147483647,v|0,F|0)|0;w=G;if(((F|0)>0|(F|0)==0&v>>>0>0)&((w|0)<(t|0)|(w|0)==(t|0)&V>>>0>>0)){L=1;break s}}else if((F|0)<0?(w=dw(1,-2147483648,v|0,F|0)|0,A=G,V=jw(C|0,t|0,1,0)|0,M=G,(A|0)>(M|0)|(A|0)==(M|0)&w>>>0>V>>>0):0){L=1;break s}v=jw(v|0,F|0,C|0,t|0)|0;t=G}else if((J|0)==91){L=qw(v|0,F|0,0,1)|0;K=G;E=rw(v|0,F|0,0,1)|0;A=G;J=qw(C|0,t|0,0,1)|0;I=G;M=rw(C|0,t|0,0,1)|0;w=G;V=jw(v|0,F|0,-1,0)|0;pe=G;H=jw(C|0,t|0,-1,0)|0;qe=G;H=qe>>>0<1|(qe|0)==1&H>>>0<4294967295;do if(pe>>>0<1|(pe|0)==1&V>>>0<4294967295)if(H){v=sw(v|0,F|0,C|0,t|0)|0;t=G;break t}else{H=sw(J|0,I|0,E|0,A|0)|0;F=G;break}else{if(!H){L=1;break s}H=sw(M|0,w|0,L|0,K|0)|0;F=G}while(0);V=jw(H|0,F|0,-2147483648,0)|0;v=G;if(v>>>0>0|(v|0)==0&V>>>0>4294967295){L=1;break s}J=sw(M|0,w|0,E|0,A|0)|0;I=G;if((I|0)>-1|(I|0)==-1&J>>>0>4294967295){V=dw(-1,2147483647,0,H|0)|0;w=G;if(((F|0)>0|(F|0)==0&H>>>0>0)&((w|0)<(I|0)|(w|0)==(I|0)&V>>>0>>0)){L=1;break s}}else if((F|0)<0?(w=dw(1,-2147483648,0,H|0)|0,t=G,V=jw(J|0,I|0,1,0)|0,v=G,(t|0)>(v|0)|(t|0)==(v|0)&w>>>0>V>>>0):0){L=1;break s}v=jw(0,H|0,J|0,I|0)|0;t=G}else if((J|0)==90){if((C|0)==0&(t|0)==-2147483648){if((F|0)>-1|(F|0)==-1&v>>>0>4294967295){L=1;break s}t=F^-2147483648;break}if((t|0)<0|(t|0)==0&C>>>0<1){V=dw(0,0,C|0,t|0)|0;M=G;w=dw(-1,2147483647,v|0,F|0)|0;A=G;if(((F|0)>0|(F|0)==0&v>>>0>0)&((A|0)<(M|0)|(A|0)==(M|0)&w>>>0>>0)){L=1;break s}}else if((F|0)<0?(w=dw(1,-2147483648,v|0,F|0)|0,A=G,V=dw(1,0,C|0,t|0)|0,M=G,(A|0)>(M|0)|(A|0)==(M|0)&w>>>0>V>>>0):0){L=1;break s}v=dw(v|0,F|0,C|0,t|0)|0;t=G}else if((J|0)==92){if((C|0)==0&(t|0)==0)break r;if((C|0)==-1&(t|0)==-1&((v|0)==0&(F|0)==-2147483648)){L=1;break s}v=qw(v|0,F|0,C|0,t|0)|0;t=G}else{if((C|0)==-1){if((t|0)==-1){C=1;t=0}}else if((C|0)==0?(t|0)==0:0)break r;v=rw(v|0,F|0,C|0,t|0)|0;t=G}while(0);S=u;c[(S&p)>>2]=v;c[(S&p)+4>>2]=t;S=z+(U*40|0)+8|0;b[(S&o)>>1]=e[(S&o)>>1]&48640|4;S=z;T=s;U=W;V=X;break q}while(0);D=+Ug(N);B=+Ug(O);C=d[(P&n)>>0]|0;if((C|0)==89)B=D+B;else if((C|0)==90)B=B-D;else if((C|0)==91)B=D*B;else if((C|0)==92){if(D==0.0)break;B=B/D}else{E=~~D>>>0;C=+R(D)>=1.0?(D>0.0?~~+da(+Q(D/4294967296.0),4294967295.0)>>>0:~~+ba((D-+(~~D>>>0))/4294967296.0)>>>0):0;I=~~B>>>0;J=+R(B)>=1.0?(B>0.0?~~+da(+Q(B/4294967296.0),4294967295.0)>>>0:~~+ba((B-+(~~B>>>0))/4294967296.0)>>>0):0;if(!E){if(!C)break}else if((E|0)==-1?(C|0)==-1:0){E=1;C=0}V=rw(I|0,J|0,E|0,C|0)|0;B=+(V>>>0)+4294967296.0*+(G|0)}h[(ke&q)>>3]=B;h[(Sd&q)>>3]=+h[(ke&q)>>3];if(!(+h[(ke&q)>>3]!=+h[(Sd&q)>>3])){h[(u&q)>>3]=B;V=z+(U*40|0)+8|0;b[(V&o)>>1]=e[(V&o)>>1]&48640|8;if(((T|S)&8)!=0|L<<24>>24!=0){S=z;T=s;U=W;V=X;break q}dm(u);S=z;T=s;U=W;V=X;break q}}while(0);t=z+(U*40|0)+8|0;if(!(b[(t&o)>>1]&9312)){b[(t&o)>>1]=1;S=z;T=s;U=W;V=X;break}else{vg(u);S=z;T=s;U=W;V=X;break}}case 166:{ie=0;t=c[(s+(r*20|0)&p)+4>>2]|0;if(t){u=z+(t*40|0)|0;t=z+(t*40|0)+8|0;if(!(b[(t&o)>>1]&9312)){S=u;c[(S&p)>>2]=0;c[(S&p)+4>>2]=0;b[(t&o)>>1]=4;S=z;T=s;U=W;V=X;u=J;break}else{Zg(u,0,0);S=z;T=s;U=W;V=X;u=J;break}}else{S=z;T=s;U=W;V=X;u=J}break}case 184:{ie=0;C=c[(s+(r*20|0)&p)+4>>2]|0;t=c[(s+(r*20|0)&p)+8>>2]|0;K=c[(s+(r*20|0)&p)+12>>2]|0;u=z+(K*40|0)|0;if((b[(z+(t*40|0)&o)+8>>1]|b[(z+(C*40|0)&o)+8>>1])&1){t=z+(K*40|0)+8|0;if(!(b[(t&o)>>1]&9312)){b[(t&o)>>1]=1;S=z;T=s;U=W;V=X;break}else{vg(u);S=z;T=s;U=W;V=X;break}}A=Vg(z+(t*40|0)|0)|0;L=G;J=Vg(z+(C*40|0)|0)|0;I=G;t=a[(H&n)>>0]|0;C=t&255;do if(t<<24>>24==86){A=J|A;t=I|L}else if(t<<24>>24!=85)if(!((J|0)==0&(I|0)==0)){if((I|0)<0){t=175-C&255;C=dw(0,0,J|0,I|0)|0;if((I|0)>-1|(I|0)==-1&J>>>0>4294967232){I=G;ie=194}}else{C=J;ie=194}if((ie|0)==194){ie=0;if(!((I|0)>0|(I|0)==0&C>>>0>63)){if(t<<24>>24==87){A=iw(A|0,L|0,C|0)|0;t=G;break}A=mw(A|0,L|0,C|0)|0;t=G;if((L|0)>=0)break;V=dw(64,0,C|0,I|0)|0;V=iw(-1,-1,V|0)|0;A=V|A;t=G|t;break}}if((L|0)>-1|(L|0)==-1&A>>>0>4294967295){A=0;t=0}else{t=(t<<24>>24!=87)<<31>>31;A=t;t=((t|0)<0)<<31>>31}}else t=L;else{A=J&A;t=I&L}while(0);S=u;c[(S&p)>>2]=A;c[(S&p)+4>>2]=t;S=z+(K*40|0)+8|0;b[(S&o)>>1]=e[(S&o)>>1]&48640|4;S=z;T=s;U=W;V=X;break}case 202:{ie=0;T=c[(s+(r*20|0)&p)+4>>2]|0;S=z+(T*40|0)|0;U=Vg(S)|0;T=z+(T*40|0)+8|0;b[(T&o)>>1]=e[(T&o)>>1]&48640|4;T=c[(s+(r*20|0)&p)+8>>2]|0;T=jw(U|0,G|0,T|0,((T|0)<0)<<31>>31|0)|0;c[(S&p)>>2]=T;c[(S&p)+4>>2]=G;S=z;T=s;U=W;V=X;break}case 203:{ie=0;u=c[(s+(r*20|0)&p)+4>>2]|0;v=z+(u*40|0)+8|0;t=b[(v&o)>>1]|0;if(!(t&4)){fm(z+(u*40|0)|0,67,Jc);t=b[(v&o)>>1]|0;if(!(t&4)){E=c[(s+(r*20|0)&p)+8>>2]|0;if(!E){t=r;u=20;ie=1318;break c}S=z;T=s;U=W;V=X;u=J;r=E+-1|0;break}}b[(v&o)>>1]=t&48640|4;S=z;T=s;U=W;V=X;u=J;break}case 208:{ie=0;t=c[(s+(r*20|0)&p)+4>>2]|0;u=z+(t*40|0)+8|0;if(!(b[(u&o)>>1]&4)){S=z;T=s;U=W;V=X;u=J}else{S=z+(t*40|0)|0;h[(S&q)>>3]=+Ug(S);b[(u&o)>>1]=e[(u&o)>>1]&48640|8;S=z;T=s;U=W;V=X;u=J}break}case 213:{ie=0;N=c[(s+(t*20|0)&p)+4>>2]|0;L=z+(N*40|0)|0;w=c[(s+(t*20|0)&p)+12>>2]|0;K=z+(w*40|0)|0;N=z+(N*40|0)+8|0;F=b[(N&o)>>1]|0;w=z+(w*40|0)+8|0;M=b[(w&o)>>1]|0;H=F&65535;A=M&65535;v=s+(t*20|0)+3|0;J=d[(v&n)>>0]|0;do if(!((M|F)&1)){J=J&71;if(J>>>0>66){if((H&14|0)==2){rh(L,0);A=b[(w&o)>>1]|0}else A=M;if((A&14)==2){rh(K,0);J=F;E=M}else{J=F;E=M}}else if((J|0)==66){if((H&2|0)!=0|(H&12|0)==0){I=M;J=F}else{bm(L,Jc,1)|0;I=b[(w&o)>>1]|0;J=(e[(N&o)>>1]&65024|H&511)&65535}V=I&65535;if((V&2|0)!=0|(V&12|0)==0)E=M;else{bm(K,Jc,1)|0;E=(e[(w&o)>>1]&65024|A&511)&65535}}else{J=F;E=M}if(b[(N&o)>>1]&16384){Rg(L)|0;J=J&49151}if(b[(w&o)>>1]&16384){Rg(K)|0;E=E&49151}if(a[(ge&n)>>0]|0){y=ge;z=je;r=m;m=x;ie=1317;break a}V=hm(K,L,c[(s+(t*20|0)&p)+16>>2]|0)|0;I=a[(C&n)>>0]|0;r=t;C=V}else{if(J&128){J=F;E=M;r=t;C=(F&1&M)<<16>>16!=0&(A&256|0)==0&1^1;break}if(J&32){u=c[(s+(t*20|0)&p)+8>>2]|0;S=z+(u*40|0)+8|0;b[(S&o)>>1]=e[(S&o)>>1]&48640|1;S=z;T=s;U=W;V=X;u=z+(u*40|0)|0;r=t;break q}if(!(J&16)){S=z;T=s;U=W;V=X;r=t;break q}S=z;T=s;U=W;V=X;r=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;break q}while(0);switch(I&255|0){case 79:{C=(C|0)==0&1;break}case 78:{C=(C|0)!=0&1;break}case 82:{C=C>>>31;break}case 81:{C=(C|0)<1&1;break}case 80:{C=(C|0)>0&1;break}default:C=C>>>31^1}if(!(a[(v&n)>>0]&32)){if(C)r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0}else{V=c[(s+(r*20|0)&p)+8>>2]|0;u=z+(V*40|0)|0;V=z+(V*40|0)+8|0;b[(V&o)>>1]=e[(V&o)>>1]&48640|4;V=u;c[(V&p)>>2]=C;c[(V&p)+4>>2]=0}b[(N&o)>>1]=J;b[(w&o)>>1]=E;S=z;T=s;U=W;V=X;break}case 248:{ie=0;S=z;T=s;U=c[(s+(r*20|0)&p)+16>>2]|0;V=X;break}case 249:{ie=0;w=(a[(s+(r*20|0)&n)+3>>0]&1)==0?0:W;F=c[(s+(r*20|0)&p)+12>>2]|0;H=c[(s+(r*20|0)&p)+16>>2]|0;I=c[(s+(r*20|0)&p)+4>>2]|0;J=c[(s+(r*20|0)&p)+8>>2]|0;if((F|0)>0){t=(w|0)==0;v=H+16|0;E=0;while(1){if(t)A=E;else A=c[(w+(E<<2)&p)>>2]|0;C=a[((c[(v&p)>>2]|0)+E&n)>>0]|0;A=hm(z+((A+I|0)*40|0)|0,z+((A+J|0)*40|0)|0,c[(H+(E<<2)&p)+20>>2]|0)|0;E=E+1|0;if(A)break;if((E|0)>=(F|0)){S=z;T=s;U=0;V=0;break q}}S=z;T=s;U=0;V=C<<24>>24==0?A:0-A|0}else{S=z;T=s;U=0;V=X}break}case 256:{ie=0;if((X|0)<0){S=z;T=s;U=W;V=X;r=(c[(s+(t*20|0)&p)+4>>2]|0)+-1|0;break}if(!X){S=z;T=s;U=W;V=0;r=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;break}else{S=z;T=s;U=W;V=X;r=(c[(s+(t*20|0)&p)+12>>2]|0)+-1|0;break}}case 261:{ie=0;t=c[(s+(r*20|0)&p)+4>>2]|0;if(!(b[(z+(t*40|0)&o)+8>>1]&1)){u=Vg(z+(t*40|0)|0)|0;u=(u|0)!=0|(G|0)!=0?3:0}else u=6;t=c[(s+(r*20|0)&p)+8>>2]|0;if(!(b[(z+(t*40|0)&o)+8>>1]&1)){t=Vg(z+(t*40|0)|0)|0;t=((t|0)!=0|(G|0)!=0)&1}else t=2;t=a[(((a[(C&n)>>0]|0)==72?41680:41696)+t+u&n)>>0]|0;u=c[(s+(r*20|0)&p)+12>>2]|0;J=z+(u*40|0)|0;if(t<<24>>24==2){S=z+(u*40|0)+8|0;b[(S&o)>>1]=e[(S&o)>>1]&48640|1;S=z;T=s;U=W;V=X;u=J;break}else{S=J;c[(S&p)>>2]=t&255;c[(S&p)+4>>2]=0;S=z+(u*40|0)+8|0;b[(S&o)>>1]=e[(S&o)>>1]&48640|4;S=z;T=s;U=W;V=X;u=J;break}}case 268:{ie=0;t=c[(s+(r*20|0)&p)+4>>2]|0;u=c[(s+(r*20|0)&p)+8>>2]|0;J=z+(u*40|0)|0;u=z+(u*40|0)+8|0;if(!(b[(u&o)>>1]&9312))b[(u&o)>>1]=1;else vg(J);if(!(b[(z+(t*40|0)&o)+8>>1]&1)){b[(u&o)>>1]=4;T=Vg(z+(t*40|0)|0)|0;S=J;c[(S&p)>>2]=(T|0)==0&(G|0)==0&1;c[(S&p)+4>>2]=0;S=z;T=s;U=W;V=X;u=J}else{S=z;T=s;U=W;V=X;u=J}break}case 273:{ie=0;t=c[(s+(r*20|0)&p)+4>>2]|0;u=c[(s+(r*20|0)&p)+8>>2]|0;J=z+(u*40|0)|0;u=z+(u*40|0)+8|0;if(!(b[(u&o)>>1]&9312))b[(u&o)>>1]=1;else vg(J);if(!(b[(z+(t*40|0)&o)+8>>1]&1)){b[(u&o)>>1]=4;T=Vg(z+(t*40|0)|0)|0;S=J;c[(S&p)>>2]=~T;c[(S&p)+4>>2]=~G;S=z;T=s;U=W;V=X;u=J}else{S=z;T=s;U=W;V=X;u=J}break}case 278:{ie=0;t=(c[(Hb&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]|0)|0;if(!(a[(t&n)>>0]|0)){a[(t&n)>>0]=1;S=z;T=s;U=W;V=X;break}else{S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0;break}}case 281:{ie=0;t=c[(s+(r*20|0)&p)+4>>2]|0;if(!(b[(z+(t*40|0)&o)+8>>1]&1)){t=+Ug(z+(t*40|0)|0)!=0.0;t=(t^(a[(C&n)>>0]|0)==46)&1}else t=c[(s+(r*20|0)&p)+12>>2]|0;if(!t){S=z;T=s;U=W;V=X}else{S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0}break}case 286:{ie=0;if(!(b[(z+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)&o)+8>>1]&1)){S=z;T=s;U=W;V=X}else{S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0}break}case 288:{ie=0;if(!(b[(z+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)&o)+8>>1]&1)){S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0}else{S=z;T=s;U=W;V=X}break}case 290:{ie=0;T=c[(s+(t*20|0)&p)+8>>2]|0;M=c[(s+(t*20|0)&p)+12>>2]|0;A=z+(M*40|0)|0;S=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;w=c[(S&p)+80>>2]|0;v=c[(S&p)>>2]|0;if(!(a[(S&n)+26>>0]|0)){if((v|0)!=0?(a[(v&n)+73>>0]|0)!=1:0){Td=jm(S)|0;ie=295}}else{Td=im(S)|0;ie=295}if((ie|0)==295?(ie=0,(Td|0)!=0):0){u=Td;ie=1318;break c}L=S+60|0;C=c[($d&p)>>2]|0;u:do if((c[(L&p)>>2]|0)==(C|0)){C=b[(S&o)+22>>1]|0;if((C&65535|0)>(T|0))ie=350;else{I=S+72|0;ie=318}}else{do if(a[(S&n)+25>>0]|0){if(!v){J=c[(S&p)+16>>2]|0;F=c[(z+(J*40|0)&p)+12>>2]|0;c[(S&p)+68>>2]=F;c[(S&p)+64>>2]=F;J=c[(z+(J*40|0)&p)+16>>2]|0;K=S+76|0;c[(K&p)>>2]=J;break}r=z+(M*40|0)+8|0;if(!(b[(r&o)>>1]&9312)){b[(r&o)>>1]=1;break u}else{vg(A);break u}}else{if(!(a[(S&n)+27>>0]&4)){km(v,td);I=e[(v&o)+40>>1]|0;J=c[(v&p)+32>>2]|0;c[(S&p)+76>>2]=J;C=c[(td&p)>>2]|0;c[(S&p)+64>>2]=C}else{C=S+64|0;lm(v,C);I=e[(v&o)+40>>1]|0;J=c[(v&p)+32>>2]|0;c[(S&p)+76>>2]=J;C=c[(C&p)>>2]|0}c[(S&p)+68>>2]=C>>>0>I>>>0?I:C;if(C>>>0>(c[(zb&p)>>2]|0)>>>0){u=x;ie=1316;break c}K=S+76|0;C=c[($d&p)>>2]|0;F=I}while(0);c[(L&p)>>2]=C;C=a[(J&n)>>0]|0;if(C<<24>>24>-1){H=C&255;c[(kd&p)>>2]=H;J=1}else{J=mm(J,kd)|0;H=c[(kd&p)>>2]|0}I=S+72|0;c[(I&p)>>2]=J&255;b[(S&o)+22>>1]=0;c[(w&p)>>2]=H;if(H>>>0>98307){u=x;ie=313;break c}if(H>>>0>(c[(S&p)+64>>2]|0)>>>0){u=x;ie=313;break c}if(F>>>0>>0){c[(K&p)>>2]=0;c[(S&p)+68>>2]=0;C=0;ie=318}else{C=0;ie=318}}while(0);do if((ie|0)==318){ie=0;J=c[(I&p)>>2]|0;H=c[(w&p)>>2]|0;if(J>>>0>>0){P=S+76|0;F=c[(P&p)>>2]|0;if(!F){U=Jd+0|0;V=U+40|0;do{c[(U&p)>>2]=0;U=U+4|0}while((U|0)<(V|0));J=nm(v,0,c[(w&p)>>2]|0,((d[(S&n)+27>>0]|0)>>>2&1^1)&255,Jd)|0;if(J){s=J;u=x;ie=1309;break c}C=S+22|0;O=C;C=b[(C&o)>>1]|0;J=c[(I&p)>>2]|0;H=c[(w&p)>>2]|0;N=c[(Jb&p)>>2]|0}else{O=S+22|0;N=F}E=C&65535;K=c[(w+(E<<2)&p)>>2]|0;c[(kd&p)>>2]=K;C=N+H|0;J=N+J|0;while(1){F=a[(J&n)>>0]|0;if(F<<24>>24>-1){L=F&255;c[(Ld&p)>>2]=L;J=J+1|0}else{J=J+((mm(J,Ld)|0)&255)|0;L=c[(Ld&p)>>2]|0}c[(S+(E<<2)&p)+84>>2]=L;if(L>>>0>11)F=(L+-12|0)>>>1;else F=d[(L&n)+34336>>0]|0;L=K+F|0;c[(kd&p)>>2]=L;if(L>>>0>>0){J=L;F=E;ie=331;break}F=E+1|0;c[(w+(F<<2)&p)>>2]=L;if((E|0)<(T|0)&J>>>0>>0){K=L;E=F}else break}if((ie|0)==331){ie=0;L=J;J=N+(H+1)|0}b[(O&o)>>1]=F;c[(I&p)>>2]=J-N;if(!(c[(P&p)>>2]|0)){if(!((b[(Kb&o)>>1]&9312)==0&(c[(Lb&p)>>2]|0)==0))Qg(Jd);b[(Kb&o)>>1]=1}if(J>>>0>=C>>>0){if(J>>>0>C>>>0){u=x;ie=343;break c}if((L|0)==(c[(S&p)+64>>2]|0))C=L;else{u=x;ie=343;break c}}else C=c[(S&p)+64>>2]|0;if(L>>>0>C>>>0){u=x;ie=343;break c}C=b[(O&o)>>1]|0}if((C&65535|0)<=(T|0)){if((a[(s+(t*20|0)&n)+1>>0]|0)==-8){Zl(A,c[(s+(t*20|0)&p)+16>>2]|0,2048);r=z+(M*40|0)+8|0;break}r=z+(M*40|0)+8|0;if(!(b[(r&o)>>1]&9312)){b[(r&o)>>1]=1;break}else{vg(A);break}}else ie=350}while(0);if((ie|0)==350){ie=0;r=z+(M*40|0)+8|0;if(b[(r&o)>>1]&9312)vg(A);J=c[(S+(T<<2)&p)+84>>2]|0;c[(Ld&p)>>2]=J;do if((c[(S&p)+68>>2]|0)>>>0<(c[(w+(T+1<<2)&p)>>2]|0)>>>0){V=a[(s+(t*20|0)&n)+3>>0]|0;if(!((V&255)>63?J>>>0>11&(J&1|0)==0|V<<24>>24<0:0)){if(J>>>0>11)C=(J+-12|0)>>>1;else C=d[(J&n)+34336>>0]|0;if(C){C=nm(v,c[(w+(T<<2)&p)>>2]|0,C,((d[(S&n)+27>>0]|0)>>>2&1^1)&255,A)|0;if(C){s=C;u=x;ie=1309;break c}om(c[(z+(M*40|0)&p)+16>>2]|0,J,A)|0;b[(r&o)>>1]=e[(r&o)>>1]&61439;break}}om(J>>>0<14?td:0,J,A)|0}else om((c[(S&p)+76>>2]|0)+(c[(w+(T<<2)&p)>>2]|0)|0,J,A)|0;while(0);a[(z+(M*40|0)&n)+10>>0]=Jc}w=e[(r&o)>>1]|0;if((w&4096|0)!=0?(Ac=z+(M*40|0)+16|0,Bc=c[(Ac&p)>>2]|0,(Bc|0)!=0):0){v=c[(z+(M*40|0)&p)+12>>2]|0;if(fh(A,v+2|0)|0){y=ge;z=je;r=m;m=x;ie=1317;break a}kw(c[(Ac&p)>>2]|0,Bc|0,v|0)|0;a[((c[(Ac&p)>>2]|0)+v&n)>>0]=0;a[((c[(Ac&p)>>2]|0)+v&n)+1>>0]=0;b[(r&o)>>1]=w&18|512;S=z;T=s;U=W;V=X;r=t}else{S=z;T=s;U=W;V=X;r=t}break}case 368:{ie=0;v=c[(s+(r*20|0)&p)+16>>2]|0;t=a[(v&n)>>0]|0;if(!(t<<24>>24)){S=z;T=s;U=W;V=X}else{w=z+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)|0;while(1){v=v+1|0;fm(w,t,Jc);t=a[(v&n)>>0]|0;if(!(t<<24>>24)){S=z;T=s;U=W;V=X;break}else w=w+40|0}}break}case 371:{ie=0;U=c[(s+(t*20|0)&p)+4>>2]|0;C=c[(s+(t*20|0)&p)+16>>2]|0;V=z+(U*40|0)|0;U=z+((U+-1+(c[(s+(t*20|0)&p)+8>>2]|0)|0)*40|0)|0;A=a[(Mb&n)>>0]|0;T=c[(s+(t*20|0)&p)+12>>2]|0;u=z+(T*40|0)|0;if(C){r=a[(C&n)>>0]|0;v=V;while(1){C=C+1|0;fm(v,r,Jc);r=a[(C&n)>>0]|0;if(!(r<<24>>24))break;else v=v+40|0}}N=(A&255)>3;L=0;K=0;O=0;C=0;w=U;while(1){E=b[(w&o)+8>>1]|0;I=E&65535;v:do if(!(I&1)){do if(!(I&4)){if(I&8){J=7;ie=388;break v}J=c[(w&p)+12>>2]|0;if(I&16384)J=(c[(w&p)>>2]|0)+J|0;J=(J<<1)+12|I>>>1&1}else{I=w;J=c[(I&p)>>2]|0;I=c[(I&p)+4>>2]|0;H=ew(J|0,I|0,63)|0;H=H^J;F=G^I;if(F>>>0<0|(F|0)==0&H>>>0<128){if(!((J&1|0)==(J|0)&0==(I|0)&N)){J=1;ie=388;break v}J=H+8|0;break}if(F>>>0<0|(F|0)==0&H>>>0<32768){J=2;ie=388;break v}if(F>>>0<0|(F|0)==0&H>>>0<8388608){J=3;ie=388;break v}if(F>>>0<0|(F|0)==0&H>>>0<2147483648){J=4;ie=388;break v}J=F>>>0<32768|(F|0)==32768&H>>>0<0?5:6;ie=388;break v}while(0);c[(w&p)+28>>2]=J;if(J>>>0>11){I=J;J=(J+-12|0)>>>1}else ie=391}else{J=0;ie=388}while(0);if((ie|0)==388){c[(w&p)+28>>2]=J;ie=391}if((ie|0)==391){ie=0;I=J;J=d[(J&n)+34336>>0]|0}do if(E&16384)if((L|0)==0&(K|0)==0){E=c[(w&p)>>2]|0;J=J-E|0;E=E+C|0;break}else{Rg(w)|0;E=C;break}else E=C;while(0);L=jw(J|0,((J|0)<0)<<31>>31|0,L|0,K|0)|0;K=G;if(I>>>0<128)J=1;else{H=0;J=0;do{J=J+1|0;I=mw(I|0,H|0,7)|0;H=G}while(((I|0)!=0|(H|0)!=0)&(J|0)<9)}J=J+O|0;w=w+-40|0;if(w>>>0>>0){F=J;P=E;break}else{O=J;C=E}}if((F|0)<127)I=F+1|0;else{I=F;H=((F|0)<0)<<31>>31;J=0;do{J=J+1|0;I=mw(I|0,H|0,7)|0;H=G}while(((I|0)!=0|(H|0)!=0)&(J|0)<9);F=J+F|0;I=F;H=((F|0)<0)<<31>>31;C=0;do{C=C+1|0;I=mw(I|0,H|0,7)|0;H=G}while(((I|0)!=0|(H|0)!=0)&(C|0)<9);I=((J|0)<(C|0)&1)+F|0}J=((I|0)<0)<<31>>31;E=jw(I|0,J|0,L|0,K|0)|0;N=G;S=c[(zb&p)>>2]|0;O=((S|0)<0)<<31>>31;if((N|0)>(O|0)|(N|0)==(O|0)&E>>>0>S>>>0){u=x;ie=1316;break c}if(fh(u,E)|0){y=ge;z=je;r=m;m=x;ie=1317;break a}A=c[(z+(T*40|0)&p)+16>>2]|0;if(I>>>0<128){a[(A&n)>>0]=I;K=1;L=V}else{K=(pm(A,I,J)|0)&255;L=V}while(1){H=c[(L&p)+28>>2]|0;if(H>>>0<128){a[(A+K&n)>>0]=H;J=1}else J=(pm(A+K|0,H,0)|0)&255;K=J+K|0;J=A+I|0;if(!(H>>>0<8&(H|0)!=0))if(H>>>0>11){C=c[(L&p)+12>>2]|0;kw(J|0,c[(L&p)+16>>2]|0,C|0)|0}else C=0;else{J=L;if(H>>>0>11)C=(H+-12|0)>>>1;else C=d[(H&n)+34336>>0]|0;F=c[(J&p)>>2]|0;J=c[(J&p)+4>>2]|0;H=C;while(1){H=H+-1|0;a[(A+H+I&n)>>0]=F;F=mw(F|0,J|0,8)|0;if(!H)break;else J=G}}L=L+40|0;if(L>>>0>U>>>0)break;else I=C+I|0}c[(z+(T*40|0)&p)+12>>2]=E;r=z+(T*40|0)+8|0;b[(r&o)>>1]=16;if(P){c[(u&p)>>2]=P;b[(r&o)>>1]=16400}a[(z+(T*40|0)&n)+10>>0]=1;S=z;T=s;U=W;V=X;r=t;break}case 446:{ie=0;if((c[(ae&p)>>2]|0)>0){u=x;ie=447;break c}if(!v)w=0;else{t=v;while(1)if(!(a[(t&n)>>0]|0))break;else t=t+1|0;w=t-v&1073741823}u=sm(le,0,(c[(Ob&p)>>2]|0)+(c[(Nb&p)>>2]|0)|0)|0;if(u){t=r;ie=1318;break c}t=mh(le,w+33|0,0)|0;if(!t){S=z;T=s;U=W;V=X;u=L}else{V=t+32|0;c[(t&p)>>2]=V;kw(V|0,v|0,w+1|0)|0;if(!(a[(ee&n)>>0]|0))c[(Ob&p)>>2]=(c[(Ob&p)>>2]|0)+1;else{a[(ee&n)>>0]=0;a[(Sb&n)>>0]=1}c[(t&p)+24>>2]=c[(Pb&p)>>2];c[(Pb&p)>>2]=t;S=Qb;T=c[(S&p)+4>>2]|0;U=t+8|0;c[(U&p)>>2]=c[(S&p)>>2];c[(U&p)+4>>2]=T;U=Rb;T=c[(U&p)+4>>2]|0;S=t+16|0;c[(S&p)>>2]=c[(U&p)>>2];c[(S&p)+4>>2]=T;S=z;T=s;U=W;V=X;u=L}break}case 486:{c[(Ob&p)>>2]=(c[(Ob&p)>>2]|0)+-1;ie=488;break}case 525:{ie=0;wm(c[((c[(Xd&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<4)&p)+4>>2]|0,c[(s+(r*20|0)&p)+12>>2]|0,Yc);T=c[(Yc&p)>>2]|0;S=u;c[(S&p)>>2]=T;c[(S&p)+4>>2]=((T|0)<0)<<31>>31;S=z;T=s;U=W;V=X;break}case 558:{ie=0;v=xm(f,c[(s+(t*20|0)&p)+4>>2]|0,c[(s+(t*20|0)&p)+8>>2]|0,-1,1)|0;if(!v){y=ge;z=je;r=m;m=x;ie=1317;break a}r=c[(s+(t*20|0)&p)+16>>2]|0;C=v+8|0;c[(C&p)>>2]=r;A=c[(s+(t*20|0)&p)+12>>2]|0;r=e[(r&o)+6>>1]<<2;u=r+148|0;w=mh(le,u,0)|0;if(!w){s=v;u=x;ie=560;break c}fw(w|0,0,u|0)|0;c[(v&p)+56>>2]=w;V=w+128|0;c[(w&p)+28>>2]=V;kw(V|0,c[(C&p)>>2]|0,r+20|0)|0;c[(w&p)+140>>2]=0;if(A)b[(w&o)+134>>1]=A;r=c[(Xd&p)>>2]|0;u=c[((c[((c[(r&p)+4>>2]|0)&p)+4>>2]|0)&p)+32>>2]|0;c[(w&p)+12>>2]=u;a[(w&n)+59>>0]=1;a[(w&n)+57>>0]=0;c[(w&p)+24>>2]=le;c[(w&p)+72>>2]=w;if(((a[(_b&n)>>0]|0)!=2?(Dc=c[2242]|0,c[(w&p)>>2]=ca(Dc,u)|0,V=c[((c[(r&p)+12>>2]|0)&p)+80>>2]|0,V=(V|0)<(Dc|0)?Dc:V,Dc=((u|0)<0)<<31>>31,V=sw(V|0,((V|0)<0)<<31>>31|0,u|0,Dc|0)|0,U=G,c[(w&p)+4>>2]=(U|0)<0|(U|0)==0&V>>>0<536870912?V:536870912,(c[2234]|0)==0):0)?(c[(w&p)+52>>2]=u,V=qg(u,Dc)|0,c[(w&p)+40>>2]=V,(V|0)==0):0){s=7;u=x;ie=1309;break c}else{S=z;T=s;U=W;V=X;u=L;r=t}break}case 566:{ie=0;T=(c[((c[(Ib&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<2)&p)>>2]|0)+40|0;V=T;U=c[(V&p)>>2]|0;V=c[(V&p)+4>>2]|0;S=jw(U|0,V|0,1,0)|0;c[(T&p)>>2]=S;c[(T&p)+4>>2]=G;if((U|0)==0&(V|0)==0){S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0}else{S=z;T=s;U=W;V=X}break}case 568:{ie=0;r=xm(f,c[(s+(t*20|0)&p)+4>>2]|0,c[(s+(t*20|0)&p)+12>>2]|0,-1,0)|0;if(!r){y=ge;z=je;r=m;m=x;ie=1317;break a}a[(r&n)+25>>0]=1;c[(r&p)+16>>2]=c[(s+(t*20|0)&p)+8>>2];S=r+27|0;a[(S&n)>>0]=a[(S&n)>>0]|4;S=z;T=s;U=W;V=X;r=t;break}case 570:{ie=0;S=s+(r*20|0)+4|0;Bm(f,c[((c[(Ib&p)>>2]|0)+(c[(S&p)>>2]<<2)&p)>>2]|0);c[((c[(Ib&p)>>2]|0)+(c[(S&p)>>2]<<2)&p)>>2]=0;S=z;T=s;U=W;V=X;break}case 571:{ie=0;H=c[((c[(Ib&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<2)&p)>>2]|0;a[(H&n)+25>>0]=0;if(!(a[(H&n)+27>>0]&4)){V=c[(s+(r*20|0)&p)+16>>2]|0;c[(wd&p)>>2]=c[(H&p)+8>>2];b[($b&o)>>1]=V;a[(cc&n)>>0]=(K<<1&2^2)+255;V=c[(s+(r*20|0)&p)+12>>2]|0;t=z+(V*40|0)|0;c[(dc&p)>>2]=t;if(b[(z+(V*40|0)&o)+8>>1]&16384)Rg(t)|0;u=Cm(c[(H&p)>>2]|0,wd,0,0,0,Ad)|0;if(!u){u=K;J=L}else{t=r;ie=1318;break c}}else{C=c[(s+(r*20|0)&p)+12>>2]|0;A=z+(C*40|0)|0;C=z+(C*40|0)+8|0;if((b[(C&o)>>1]&14)==2)rh(A,0);J=Vg(A)|0;I=G;C=e[(C&o)>>1]|0;do if(!(C&4)){if(!(C&8)){S=z;T=s;U=W;V=X;u=L;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0;break q}B=+h[(A&q)>>3];D=+(J>>>0)+4294967296.0*+(I|0);if(B>31)+K|0;break}else{C=(B>D&(K&1|0)==0&1)+K|0;break}}else C=K;while(0);u=Cm(c[(H&p)>>2]|0,0,J,I,0,Ad)|0;V=H+48|0;c[(V&p)>>2]=J;c[(V&p)+4>>2]=I;if(!u){u=C;J=L}else{t=r;ie=1318;break c}}a[(H&n)+26>>0]=0;c[(H&p)+60>>2]=0;t=c[(Ad&p)>>2]|0;do if((u|0)>63){if((t|0)>=0?!((t|0)==0&(u|0)==65):0){c[(Ad&p)>>2]=0;S=z;T=s;U=W;V=X;u=J;break q}c[(Ad&p)>>2]=0;u=Dm(c[(H&p)>>2]|0,Ad)|0;if(!u)ie=593;else{t=r;ie=1318;break c}}else{if((t|0)<=0?!((t|0)==0&(u|0)==62):0){t=(a[((c[(H&p)>>2]|0)&n)+73>>0]|0)!=1&1;c[(Ad&p)>>2]=t;break}c[(Ad&p)>>2]=0;u=Em(c[(H&p)>>2]|0,Ad)|0;if(!u)ie=593;else{t=r;ie=1318;break c}}while(0);if((ie|0)==593){ie=0;t=c[(Ad&p)>>2]|0}if(!t){S=z;T=s;U=W;V=X;u=J}else{S=z;T=s;U=W;V=X;u=J;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0}break}case 596:{ie=0;S=c[((c[(Ib&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<2)&p)>>2]|0;a[(S&n)+25>>0]=0;U=Vg(z+((c[(s+(r*20|0)&p)+8>>2]|0)*40|0)|0)|0;T=S+48|0;c[(T&p)>>2]=U;c[(T&p)+4>>2]=G;a[(S&n)+26>>0]=1;S=z;T=s;U=W;V=X;break}case 597:{ie=0;I=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;r=c[(s+(t*20|0)&p)+12>>2]|0;J=z+(r*40|0)|0;c[(od&p)>>2]=0;K=s+(t*20|0)+16|0;C=c[(K&p)>>2]|0;v=I+8|0;A=c[(v&p)>>2]|0;w:do if((C|0)>0){c[(xd&p)>>2]=A;C=C&65535;b[(ec&o)>>1]=C;c[(fc&p)>>2]=J;if(!(C<<16>>16))v=xd;else{r=J;A=0;while(1){if(b[(r+(A*40|0)&o)+8>>1]&16384){Rg(r+(A*40|0)|0)|0;C=b[(ec&o)>>1]|0}A=A+1|0;if((A|0)>=(C&65535|0)){v=xd;break w}r=c[(fc&p)>>2]|0}}}else{C=Fm(A,Sc,191,od)|0;if(!C){y=ge;z=je;r=m;m=x;ie=1317;break a}if(b[(z+(r*40|0)&o)+8>>1]&16384)Rg(J)|0;Gm(c[(v&p)>>2]|0,c[(z+(r*40|0)&p)+12>>2]|0,c[(z+(r*40|0)&p)+16>>2]|0,C);v=C}while(0);a[(v&n)+6>>0]=0;x:do if((a[(H&n)>>0]|0)==67?(Ec=b[(v&o)+4>>1]|0,Ec<<16>>16!=0):0){C=c[(v&p)+8>>2]|0;A=0;while(1){if(b[(C+(A*40|0)&o)+8>>1]&1)break;A=A+1|0;if((A|0)>=(Ec&65535|0)){L=t;r=t;break x}}L=t;r=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0}else{L=t;r=t}while(0);C=Cm(c[(I&p)>>2]|0,v,0,0,0,Bd)|0;if(!(c[(K&p)>>2]|0))mg(le,c[(od&p)>>2]|0);if(C){t=r;s=C;u=x;ie=1309;break c}t=c[(Bd&p)>>2]|0;c[(I&p)+12>>2]=t;t=(t|0)==0;a[(I&n)+25>>0]=t&1^1;a[(I&n)+26>>0]=0;c[(I&p)+60>>2]=0;if((a[(H&n)>>0]|0)==69){if(!t){S=z;T=s;U=W;V=X;break}S=z;T=s;U=W;V=X;r=(c[(s+(L*20|0)&p)+8>>2]|0)+-1|0;break}else{if(t){S=z;T=s;U=W;V=X;break}S=z;T=s;U=W;V=X;r=(c[(s+(L*20|0)&p)+8>>2]|0)+-1|0;break}}case 624:{ie=0;S=(c[((c[(Ib&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<2)&p)>>2]|0)+40|0;T=S;U=c[(T&p)>>2]|0;T=c[(T&p)+4>>2]|0;V=jw(U|0,T|0,1,0)|0;c[(S&p)>>2]=V;c[(S&p)+4>>2]=G;S=u;c[(S&p)>>2]=U;c[(S&p)+4>>2]=T;S=z;T=s;U=W;V=X;break}case 647:{ie=0;I=c[(s+(r*20|0)&p)+8>>2]|0;v=c[((c[(Ib&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<2)&p)>>2]|0;t=c[(s+(r*20|0)&p)+12>>2]|0;if(C<<24>>24==75){F=z+(t*40|0)|0;E=c[(F&p)>>2]|0;F=c[(F&p)+4>>2]|0}else{E=t;F=((t|0)<0)<<31>>31}H=s+(r*20|0)+3|0;J=a[(H&n)>>0]|0;if(J&1)c[(ub&p)>>2]=(c[(ub&p)>>2]|0)+1;if(J&2){m=ne;c[(m&p)>>2]=E;c[(m&p)+4>>2]=F;m=E;l=F}C=b[(z+(I*40|0)&o)+8>>1]|0;if(C&1){c[(z+(I*40|0)&p)+16>>2]=0;c[(z+(I*40|0)&p)+12>>2]=0}if(!(J&16))A=0;else A=c[(v&p)+12>>2]|0;if(!(C&16384))C=0;else C=c[(z+(I*40|0)&p)>>2]|0;C=Im(c[(v&p)>>2]|0,0,E,F,c[(z+(I*40|0)&p)+16>>2]|0,c[(z+(I*40|0)&p)+12>>2]|0,C,(J&255)>>>3&1,A)|0;a[(v&n)+26>>0]=0;c[(v&p)+60>>2]=0;if(C){t=r;s=C;u=x;ie=1309;break c}t=c[(gc&p)>>2]|0;if((t|0)!=0?(Fc=c[(s+(r*20|0)&p)+16>>2]|0,(Fc|0)!=0):0){bc[t&1](c[(hc&p)>>2]|0,(a[(H&n)>>0]&4)!=0?23:18,c[((c[(Xd&p)>>2]|0)+(a[(v&n)+24>>0]<<4)&p)>>2]|0,Fc,E,F);S=z;T=s;U=W;V=X}else{S=z;T=s;U=W;V=X}break}case 671:{ie=0;S=c[(ub&p)>>2]|0;c[(vb&p)>>2]=S;c[(wb&p)>>2]=(c[(wb&p)>>2]|0)+S;c[(ub&p)>>2]=0;S=z;T=s;U=W;V=X;break}case 672:{ie=0;J=c[((c[(Ib&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<2)&p)>>2]|0;I=c[(s+(r*20|0)&p)+12>>2]|0;H=c[(s+(r*20|0)&p)+16>>2]|0;t=c[(J&p)+56>>2]|0;A=t+32|0;C=c[(A&p)>>2]|0;J=c[(J&p)+8>>2]|0;if(!C){C=Fm(J,0,0,md)|0;c[(A&p)>>2]=C;if(!C){t=r;s=7;u=x;ie=1309;break c}b[(C&o)+4>>1]=H}if(!(a[(t&n)+56>>0]|0)){t=c[(t&p)+36>>2]|0;A=t;t=t+8|0}else{V=c[(t&p)+20>>2]|0;t=c[((c[(V&p)+8>>2]|0)&p)+4>>2]|0;V=c[(V&p)+12>>2]|0;A=V+(t*56|0)+20|0;t=c[(V+(t*56|0)&p)+32>>2]|0}Gm(J,c[(A&p)>>2]|0,t,C);y:do if((H|0)>0){t=c[(C&p)+8>>2]|0;v=0;while(1){if(b[(t+(v*40|0)&o)+8>>1]&1)break y;v=v+1|0;if((v|0)>=(H|0)){ie=682;break}}}else ie=682;while(0);if((ie|0)==682){ie=0;if(!(Km(c[(z+(I*40|0)&p)+12>>2]|0,c[(z+(I*40|0)&p)+16>>2]|0,C,0)|0)){S=z;T=s;U=W;V=X;break}}S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0;break}case 700:{ie=0;b[(u&o)+8>>1]=1;S=z;T=s;U=W;V=X;break}case 708:{ie=0;b[(u&o)+8>>1]=1;S=z;T=s;U=W;V=X;break}case 711:{ie=0;t=c[((c[(Ib&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<2)&p)>>2]|0;a[(t&n)+25>>0]=1;c[(t&p)+60>>2]=0;t=c[(t&p)>>2]|0;if(!t){S=z;T=s;U=W;V=X}else{S=t+56|0;Wc(c[(S&p)>>2]|0);c[(S&p)>>2]=0;a[(t&n)+73>>0]=0;S=z;T=s;U=W;V=X}break}case 801:{ie=0;t=c[((c[(Ib&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<2)&p)>>2]|0;u=c[(t&p)>>2]|0;K=L+8|0;b[(K&o)>>1]=1;if((a[(u&n)+73>>0]|0)!=1?(Vd=jm(t)|0,(Vd|0)!=0):0){t=r;u=Vd;ie=1318;break c}if(!(a[(t&n)+25>>0]|0)){V=Sd;c[(V&p)>>2]=0;c[(V&p)+4>>2]=0;km(u,Sd);b[(qc&o)>>1]=0;c[(sc&p)>>2]=le;c[(uc&p)>>2]=0;u=nm(u,0,c[(Sd&p)>>2]|0,1,$c)|0;do if(!u){t=c[(vc&p)>>2]|0;u=a[(t&n)>>0]|0;if(u<<24>>24>-1){C=u&255;c[(qd&p)>>2]=C}else{mm(t,qd)|0;C=c[(qd&p)>>2]|0}if(!(C>>>0<3?1:(C|0)>(c[(wc&p)>>2]|0))){t=(c[(vc&p)>>2]|0)+(C+-1)|0;u=a[(t&n)>>0]|0;if(u<<24>>24>-1){u=u&255;c[(Nd&p)>>2]=u}else{mm(t,Nd)|0;u=c[(Nd&p)>>2]|0}if(!((u+-1|0)>>>0>8|(u|0)==7)){if(u>>>0>11)t=(u+-12|0)>>>1;else t=d[(u&n)+34336>>0]|0;v=c[(wc&p)>>2]|0;if(v>>>0>=(t+C|0)>>>0){om((c[(vc&p)>>2]|0)+(v-t)|0,u,Qd)|0;v=Qd;t=c[(v&p)>>2]|0;v=c[(v&p)+4>>2]|0;if((b[(qc&o)>>1]&9312)==0&(c[(uc&p)>>2]|0)==0){u=0;break}Qg($c);u=0;break}}}if(!((b[(qc&o)>>1]&9312)==0&(c[(uc&p)>>2]|0)==0))Qg($c);c[(ke&p)>>2]=68698;c[(ke&p)+4>>2]=10788;bd(11,13600,ke);u=11;t=0;v=0}else{t=0;v=0}while(0);if(u){t=r;ie=1318;break c}S=L;c[(S&p)>>2]=t;c[(S&p)+4>>2]=v;b[(K&o)>>1]=4;S=z;T=s;U=W;V=X;u=L}else{S=z;T=s;U=W;V=X;u=L}break}case 865:{ie=0;w=c[(C&p)>>2]|0;C=c[((c[(Xd&p)>>2]|0)+(K<<4)&p)+12>>2]|0;t=c[(C&p)+16>>2]|0;if(t)do{v=(c[(t&p)+8>>2]|0)+32|0;if((c[(v&p)>>2]|0)==(A|0))c[(v&p)>>2]=w;t=c[(t&p)>>2]|0}while((t|0)!=0);t=c[(C&p)+32>>2]|0;if(t)do{v=(c[(t&p)+8>>2]|0)+40|0;if((c[(v&p)>>2]|0)==(A|0))c[(v&p)>>2]=w;t=c[(t&p)>>2]|0}while((t|0)!=0);S=z;T=s;U=W;V=X;x=K+1&255;break}case 878:{ie=0;_m(le,u);S=z;T=s;U=W;V=X;u=J;break}case 881:{ie=0;V=c[(s+(r*20|0)&p)+4>>2]|0;c[(Zc&p)>>2]=le;c[(ia&p)>>2]=V;c[(ja&p)>>2]=je;u=c[(s+(r*20|0)&p)+16>>2]|0;c[(ke&p)>>2]=c[((c[(Xd&p)>>2]|0)+(V<<4)&p)>>2];c[(ke&p)+4>>2]=(V|0)==1?13184:13208;c[(ke&p)+8>>2]=u;u=uh(le,42048,ke)|0;if(!u){t=r;u=x;ie=882;break c}a[(ka&n)>>0]=1;c[(la&p)>>2]=0;t=Qe(le,u,22,Zc,0)|0;t=(t|0)==0?c[(la&p)>>2]|0:t;mg(le,u);a[(ka&n)>>0]=0;if(!t){S=z;T=s;U=W;V=X;u=J}else{s=t;t=r;u=x;ie=884;break c}break}case 886:{ie=0;kg(le,Ik((c[((c[(Xd&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<4)&p)+12>>2]|0)+8|0,c[(s+(r*20|0)&p)+16>>2]|0,0)|0);c[(Tb&p)>>2]=c[(Tb&p)>>2]|2;S=z;T=s;U=W;V=X;break}case 887:{ie=0;C=Ik((c[((c[(Xd&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<4)&p)+12>>2]|0)+24|0,c[(s+(r*20|0)&p)+16>>2]|0,0)|0;if(C){t=(c[(C&p)+12>>2]|0)+8|0;u=c[(t&p)>>2]|0;z:do if((u|0)==(C|0))c[(t&p)>>2]=c[(C&p)+20>>2];else{do{if(!u)break z;t=u+20|0;u=c[(t&p)>>2]|0}while((u|0)!=(C|0));c[(t&p)>>2]=c[(C&p)+20>>2]}while(0);Jk(le,C)}c[(Tb&p)>>2]=c[(Tb&p)>>2]|2;S=z;T=s;U=W;V=X;u=J;break}case 895:{ie=0;C=Ik((c[((c[(Xd&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<4)&p)+12>>2]|0)+40|0,c[(s+(r*20|0)&p)+16>>2]|0,0)|0;if(!C){S=z;T=s;U=W;V=X}else{t=c[(C&p)+20>>2]|0;if((t|0)==(c[(C&p)+24>>2]|0)){t=bn(t+8|0,c[(C&p)+4>>2]|0,ke)|0;if(!t)t=0;else t=c[(t&p)+8>>2]|0;v=t+64|0;while(1){V=c[(v&p)>>2]|0;t=V+32|0;if((V|0)==(C|0))break;else v=t}c[(v&p)>>2]=c[(t&p)>>2]}jg(le,C);c[(Tb&p)>>2]=c[(Tb&p)>>2]|2;S=z;T=s;U=W;V=X}break}case 903:{ie=0;L=c[(s+(t*20|0)&p)+8>>2]|0;v=mh(le,(L<<2)+4|0,0)|0;if(!v){y=ge;z=je;r=m;m=x;ie=1317;break a}A=c[(s+(t*20|0)&p)+12>>2]|0;r=c[(s+(t*20|0)&p)+4>>2]|0;M=z+(r*40|0)|0;if((L|0)>0){C=0;do{V=Vg(z+((C+r|0)*40|0)|0)|0;c[(v+(C<<2)&p)>>2]=V;C=C+1|0}while((C|0)!=(L|0));C=L}else C=0;c[(v+(C<<2)&p)>>2]=0;I=c[((c[(Xd&p)>>2]|0)+(d[(s+(t*20|0)&n)+3>>0]<<4)&p)+4>>2]|0;P=z+(A*40|0)|0;V=c[(P&p)>>2]|0;O=c[(I&p)+4>>2]|0;c[(O&p)+4>>2]=c[(I&p)>>2];I=c[(O&p)>>2]|0;w=c[((c[(I&p)+204>>2]|0)&p)+12>>2]|0;c[(Sd&p)>>2]=O;c[(ma&p)>>2]=I;I=c[(O&p)+44>>2]|0;c[(na&p)>>2]=I;c[(oa&p)>>2]=V;c[(pa&p)>>2]=0;c[(pa&p)+4>>2]=0;c[(pa&p)+8>>2]=0;c[(pa&p)+12>>2]=0;c[(pa&p)+16>>2]=0;do if(!I){A=0;C=0}else{J=(I>>>3)+1|0;H=qg(J,0)|0;if(!H){c[(sa&p)>>2]=0;A=0;C=1;break}fw(H|0,0,J|0)|0;c[(sa&p)>>2]=H;N=O+32|0;J=(((c[2514]|0)>>>0)/((c[(N&p)>>2]|0)>>>0)|0)+1|0;if(J>>>0<=I>>>0){V=H+(J>>>3)|0;a[(V&n)>>0]=d[(V&n)>>0]|1<<(J&7)}c[(ua&p)>>2]=Nd;c[(va&p)>>2]=Nd;c[(ta&p)>>2]=0;c[(wa&p)>>2]=0;c[(xa&p)>>2]=100;c[(ya&p)>>2]=1e9;a[(Aa&n)>>0]=0;a[(za&n)>>0]=2;c[(ra&p)>>2]=43592;C=c[((c[(O&p)+12>>2]|0)&p)+56>>2]|0;cn(Sd,1,d[(C&n)+33>>0]<<16|d[(C&n)+32>>0]<<24|d[(C&n)+34>>0]<<8|d[(C&n)+35>>0],d[(C&n)+37>>0]<<16|d[(C&n)+36>>0]<<24|d[(C&n)+38>>0]<<8|d[(C&n)+39>>0]);c[(ra&p)>>2]=0;C=c[(oa&p)>>2]|0;if(!((L|0)<1|(C|0)==0)){F=O+17|0;H=0;do{I=v+(H<<2)|0;J=c[(I&p)>>2]|0;if(J){if((a[(F&n)>>0]|0)!=0&(J|0)>1){dn(Sd,J,1,0);J=c[(I&p)>>2]|0}c[(ra&p)>>2]=43608;en(Sd,J,0,0)|0;c[(ra&p)>>2]=0;C=c[(oa&p)>>2]|0}H=H+1|0}while(!((H|0)>=(L|0)|(C|0)==0))}if(!((c[(na&p)>>2]|0)==0|(C|0)==0)){E=O+17|0;C=O+36|0;L=1;do{H=L>>>3;J=a[((c[(sa&p)>>2]|0)+H&n)>>0]|0;F=1<<(L&7);do if(!(J&255&F)){if(L>>>0<2)I=0;else{I=L+-2|0;I=I-((I>>>0)%(((((c[(C&p)>>2]|0)>>>0)/5|0)+1|0)>>>0)|0)|0;I=((I+1|0)==(((c[2514]|0)>>>0)/((c[(N&p)>>2]|0)>>>0)|0|0)?3:2)+I|0}if((I|0)==(L|0)?(a[(E&n)>>0]|0)!=0:0)break;c[(ke&p)>>2]=L;fn(Sd,43632,ke);J=a[((c[(sa&p)>>2]|0)+H&n)>>0]|0}while(0);do if(J&255&F){if(L>>>0<2)J=0;else{J=L+-2|0;J=J-((J>>>0)%(((((c[(C&p)>>2]|0)>>>0)/5|0)+1|0)>>>0)|0)|0;J=((J+1|0)==(((c[2514]|0)>>>0)/((c[(N&p)>>2]|0)>>>0)|0|0)?3:2)+J|0}if((J|0)!=(L|0))break;if(!(a[(E&n)>>0]|0))break;c[(ke&p)>>2]=L;fn(Sd,43656,ke)}while(0);L=L+1|0}while(!((c[(oa&p)>>2]|0)==0?1:L>>>0>(c[(na&p)>>2]|0)>>>0))}C=c[((c[((c[(O&p)>>2]|0)&p)+204>>2]|0)&p)+12>>2]|0;if((w|0)!=(C|0)){c[(ke&p)>>2]=w;c[(ke&p)+4>>2]=C;fn(Sd,43696,ke)}Wc(c[(sa&p)>>2]|0);if(c[(qa&p)>>2]|0){gn(ta);A=0;C=(c[(pa&p)>>2]|0)+1|0;break}C=c[(pa&p)>>2]|0;if(!C)gn(ta);A=tg(ta)|0}while(0);mg(le,v);U=P;U=dw(c[(U&p)>>2]|0,c[(U&p)+4>>2]|0,C|0,((C|0)<0)<<31>>31|0)|0;V=P;c[(V&p)>>2]=U;c[(V&p)+4>>2]=G;r=z+(r*40|0)+8|0;if(!(b[(r&o)>>1]&9312))b[(r&o)>>1]=1;else vg(M);if(C){if(!A){y=ge;z=je;r=m;m=x;ie=1317;break a}Xg(M,A,-1,1,1)|0}Yl(M,xb)|0;S=z;T=s;U=W;V=X;r=t;break}case 947:{ie=0;v=c[(s+(t*20|0)&p)+4>>2]|0;r=z+(v*40|0)|0;u=c[(s+(t*20|0)&p)+8>>2]|0;v=z+(v*40|0)+8|0;if((b[(v&o)>>1]&32)==0?(hn(r),(b[(v&o)>>1]&32)==0):0){y=ge;z=je;r=m;m=x;ie=1317;break a}S=z+(u*40|0)|0;jn(c[(r&p)>>2]|0,c[(S&p)>>2]|0,c[(S&p)+4>>2]|0);S=z;T=s;U=W;V=X;u=J;r=t;break}case 966:{ie=0;r=c[(s+(t*20|0)&p)+4>>2]|0;P=z+(r*40|0)|0;O=z+((c[(s+(t*20|0)&p)+12>>2]|0)*40|0)|0;N=c[(s+(t*20|0)&p)+16>>2]|0;r=z+(r*40|0)+8|0;if((b[(r&o)>>1]&32)==0?(hn(P),(b[(r&o)>>1]&32)==0):0){y=ge;z=je;r=m;m=x;ie=1317;break a}if(N){L=c[(P&p)>>2]|0;v=O;M=c[(v&p)>>2]|0;v=c[(v&p)+4>>2]|0;K=L+28|0;if((c[(K&p)>>2]|0)!=(N|0)){C=L+8|0;J=c[(C&p)>>2]|0;if(J){I=L+20|0;A=L+26|0;if(!(b[(A&o)>>1]&1))J=kn(J)|0;H=c[(I&p)>>2]|0;A:do if(!H){ld=J;rd=I;ie=978}else{while(1){I=H+12|0;F=c[(I&p)>>2]|0;if(!F)break;E=H+8|0;ln(F,ke,Sd);c[(I&p)>>2]=0;J=mn(c[(ke&p)>>2]|0,J)|0;H=c[(E&p)>>2]|0;if(!H){ld=J;rd=E;ie=978;break A}}c[(I&p)>>2]=nn(J)|0}while(0);if((ie|0)==978?(ie=0,Kc=on(L)|0,c[(rd&p)>>2]=Kc,(Kc|0)!=0):0){V=Kc;c[(V&p)>>2]=0;c[(V&p)+4>>2]=0;c[(Kc&p)+8>>2]=0;c[(Kc&p)+12>>2]=nn(ld)|0}c[(C&p)>>2]=0;c[(L&p)+12>>2]=0;b[(A&o)>>1]=e[(A&o)>>1]|1}c[(K&p)>>2]=N}C=c[(L&p)+20>>2]|0;B:do if(C){C:while(1){A=c[(C&p)+12>>2]|0;if(A)do{r=A;E=c[(r&p)>>2]|0;r=c[(r&p)+4>>2]|0;if((r|0)<(v|0)|(r|0)==(v|0)&E>>>0>>0)A=A+8|0;else{if(!((r|0)>(v|0)|(r|0)==(v|0)&E>>>0>M>>>0))break C;A=A+12|0}A=c[(A&p)>>2]|0}while((A|0)!=0);C=c[(C&p)+8>>2]|0;if(!C)break B}S=z;T=s;U=W;V=X;r=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;break q}while(0);if((N|0)>-1)C=O;else{S=z;T=s;U=W;V=X;r=t;break}}else C=O;S=C;jn(c[(P&p)>>2]|0,c[(S&p)>>2]|0,c[(S&p)+4>>2]|0);S=z;T=s;U=W;V=X;r=t;break}case 993:{ie=0;K=c[(s+(r*20|0)&p)+16>>2]|0;I=c[(s+(r*20|0)&p)+12>>2]|0;L=z+(I*40|0)|0;if((a[(s+(r*20|0)&n)+3>>0]|0)!=0?(Lc=c[(K&p)+20>>2]|0,nd=c[(sb&p)>>2]|0,(nd|0)!=0):0){t=nd;while(1){if((c[(t&p)+28>>2]|0)==(Lc|0)){S=z;T=s;U=W;V=X;break q}t=c[(t&p)+4>>2]|0;if(!t){t=r;break}}}else t=r;r=c[(tb&p)>>2]|0;if((r|0)>=(c[(Ba&p)>>2]|0)){u=x;ie=998;break c}E=z+(I*40|0)+8|0;if(!(b[(E&o)>>1]&64)){C=K+12|0;A=c[(C&p)>>2]|0;r=A+(c[(K&p)+8>>2]|0)|0;s=K+16|0;A=(A<<2)+80+(c[(s&p)>>2]|0)+(r*40|0)|0;J=mh(le,A,((A|0)<0)<<31>>31)|0;if(!J){y=ge;z=je;r=m;m=x;ie=1317;break a}fw(J|0,0,A|0)|0;if(!((b[(E&o)>>1]&9312)==0?(c[(z+(I*40|0)&p)+24>>2]|0)==0:0))Qg(L);b[(E&o)>>1]=64;c[(L&p)>>2]=J;c[(J&p)>>2]=f;c[(J&p)+60>>2]=r;c[(J&p)+64>>2]=c[(C&p)>>2];c[(J&p)+44>>2]=t;c[(J&p)+16>>2]=c[(Nc&p)>>2];c[(J&p)+52>>2]=c[(Ca&p)>>2];c[(J&p)+24>>2]=c[(Ib&p)>>2];c[(J&p)+40>>2]=c[(Da&p)>>2];c[(J&p)+8>>2]=c[(zc&p)>>2];c[(J&p)+48>>2]=c[(Ea&p)>>2];c[(J&p)+28>>2]=c[(K&p)+20>>2];c[(J&p)+20>>2]=c[(Hb&p)>>2];c[(J&p)+56>>2]=c[(Fa&p)>>2];z=J+80|0;r=z+(r*40|0)|0;if((z|0)!=(r|0))do{b[(z&o)+8>>1]=128;c[(z&p)+32>>2]=le;z=z+40|0}while((z|0)!=(r|0));r=c[(tb&p)>>2]|0;z=J}else{s=K+16|0;z=c[(L&p)>>2]|0}c[(tb&p)>>2]=r+1;c[(z&p)+4>>2]=c[(sb&p)>>2];S=z+32|0;c[(S&p)>>2]=m;c[(S&p)+4>>2]=l;c[(z&p)+68>>2]=c[(ub&p)>>2];c[(z&p)+72>>2]=c[((c[(f&p)>>2]|0)&p)+80>>2];c[(ub&p)>>2]=0;c[(sb&p)>>2]=z;S=z+40|0;c[(Nc&p)>>2]=S;U=c[(z&p)+60>>2]|0;c[(Ca&p)>>2]=U;V=c[(z&p)+64>>2]&65535;c[(Da&p)>>2]=V;U=S+((U+1|0)*40|0)|0;c[(Ib&p)>>2]=U;T=c[(K&p)>>2]|0;c[(zc&p)>>2]=T;c[(Ea&p)>>2]=c[(K&p)+4>>2];V=U+(V<<2)|0;c[(Hb&p)>>2]=V;U=c[(s&p)>>2]|0;c[(Fa&p)>>2]=U;fw(V|0,0,U|0)|0;U=W;V=X;r=-1;break}case 1009:{ie=0;S=c[(sb&p)>>2]|0;Zl(u,(c[(S&p)+16>>2]|0)+(((c[((c[(S&p)+8>>2]|0)+((c[(S&p)+44>>2]|0)*20|0)&p)+4>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]|0)|0)*40|0)|0,4096);S=z;T=s;U=W;V=X;break}case 1010:{ie=0;if(c[(Tb&p)>>2]&16777216){T=c[(s+(r*20|0)&p)+8>>2]|0;S=Rb;T=jw(c[(S&p)>>2]|0,c[(S&p)+4>>2]|0,T|0,((T|0)<0)<<31>>31|0)|0;S=Rb;c[(S&p)>>2]=T;c[(S&p)+4>>2]=G;S=z;T=s;U=W;V=X;u=J;break}t=c[(s+(r*20|0)&p)+8>>2]|0;u=((t|0)<0)<<31>>31;if(!(c[(s+(r*20|0)&p)+4>>2]|0)){T=_d;T=jw(c[(T&p)>>2]|0,c[(T&p)+4>>2]|0,t|0,u|0)|0;S=_d;c[(S&p)>>2]=T;c[(S&p)+4>>2]=G;S=z;T=s;U=W;V=X;u=J;break}else{T=Qb;T=jw(c[(T&p)>>2]|0,c[(T&p)+4>>2]|0,t|0,u|0)|0;S=Qb;c[(S&p)>>2]=T;c[(S&p)+4>>2]=G;S=z;T=s;U=W;V=X;u=J;break}}case 1015:{ie=0;if(!(c[(s+(r*20|0)&p)+4>>2]|0)){V=_d;if(!((c[(V&p)>>2]|0)==0&(c[(V&p)+4>>2]|0)==0)){S=z;T=s;U=W;V=X;break}V=Rb;if(!((c[(V&p)>>2]|0)==0&(c[(V&p)+4>>2]|0)==0)){S=z;T=s;U=W;V=X;break}S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0;break}else{V=Qb;if(!((c[(V&p)>>2]|0)==0&(c[(V&p)+4>>2]|0)==0)){S=z;T=s;U=W;V=X;break}V=Rb;if(!((c[(V&p)>>2]|0)==0&(c[(V&p)+4>>2]|0)==0)){S=z;T=s;U=W;V=X;break}S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0;break}}case 1022:{ie=0;t=c[(sb&p)>>2]|0;if(!t)v=z+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)|0;else{while(1){u=c[(t&p)+4>>2]|0;if(!u)break;else t=u}v=(c[(t&p)+16>>2]|0)+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)|0}U=Vg(v)|0;V=v;c[(V&p)>>2]=U;c[(V&p)+4>>2]=G;V=v+8|0;b[(V&o)>>1]=e[(V&o)>>1]&48640|4;V=c[(s+(r*20|0)&p)+8>>2]|0;U=z+(V*40|0)|0;t=Vg(U)|0;u=G;c[(U&p)>>2]=t;c[(U&p)+4>>2]=u;V=z+(V*40|0)+8|0;b[(V&o)>>1]=e[(V&o)>>1]&48640|4;V=v;U=c[(V&p)+4>>2]|0;if((U|0)<(u|0)|((U|0)==(u|0)?(c[(V&p)>>2]|0)>>>0>>0:0)){S=v;c[(S&p)>>2]=t;c[(S&p)+4>>2]=u;S=z;T=s;U=W;V=X;u=L}else{S=z;T=s;U=W;V=X;u=L}break}case 1028:{ie=0;V=z+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)|0;U=c[(V&p)+4>>2]|0;if((U|0)>0|(U|0)==0&(c[(V&p)>>2]|0)>>>0>0){S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0}else{S=z;T=s;U=W;V=X}break}case 1030:{ie=0;T=c[(s+(r*20|0)&p)+12>>2]|0;U=z+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)|0;V=U;T=jw(c[(V&p)>>2]|0,c[(V&p)+4>>2]|0,T|0,((T|0)<0)<<31>>31|0)|0;V=G;c[(U&p)>>2]=T;c[(U&p)+4>>2]=V;if((V|0)<0){S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0}else{S=z;T=s;U=W;V=X}break}case 1032:{ie=0;t=z+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)|0;v=t;u=c[(v&p)>>2]|0;v=c[(v&p)+4>>2]|0;if((u|0)==0&(v|0)==0){S=z;T=s;U=W;V=X;u=J}else{T=c[(s+(r*20|0)&p)+12>>2]|0;T=jw(T|0,((T|0)<0)<<31>>31|0,u|0,v|0)|0;S=t;c[(S&p)>>2]=T;c[(S&p)+4>>2]=G;S=z;T=s;U=W;V=X;u=J;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0}break}case 1034:{ie=0;T=z+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)|0;U=T;U=jw(c[(U&p)>>2]|0,c[(U&p)+4>>2]|0,-1,-1)|0;V=G;c[(T&p)>>2]=U;c[(T&p)+4>>2]=V;if((U|0)==0&(V|0)==0){S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0}else{S=z;T=s;U=W;V=X}break}case 1036:{ie=0;T=z+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)|0;V=T;U=c[(V&p)>>2]|0;V=c[(V&p)+4>>2]|0;S=jw(U|0,V|0,1,0)|0;c[(T&p)>>2]=S;c[(T&p)+4>>2]=G;if((U|0)==0&(V|0)==0){S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0}else{S=z;T=s;U=W;V=X}break}case 1157:{ie=0;S=z;T=s;U=W;V=X;r=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;break}case 1158:{ie=0;if(c[(s+(r*20|0)&p)+4>>2]|0){b[(Yd&o)>>1]=b[(Yd&o)>>1]|8;S=z;T=s;U=W;V=X;break}t=c[(Vb&p)>>2]|0;if(!t){S=z;T=s;U=W;V=X}else{do{V=t+88|0;b[(V&o)>>1]=b[(V&o)>>1]|8;t=c[(t&p)+52>>2]|0}while((t|0)!=0);S=z;T=s;U=W;V=X}break}case 1166:{ie=0;J=(c[(w&p)>>2]|0)+72|0;t=c[(J&p)>>2]|0;D:do if(t){while(1){if((c[(t&p)+4>>2]|0)==(A|0)?(c[(t&p)>>2]|0)==(C|0):0)break;t=c[(t&p)+12>>2]|0;if(!t){ie=1171;break D}}if(!t)ie=1171}else ie=1171;while(0);if((ie|0)==1171){ie=0;t=qg(16,0)|0;if(!t){t=r;s=7;u=x;ie=1309;break c}U=t+0|0;V=U+12|0;do{a[(U&n)>>0]=0;U=U+1|0}while((U|0)<(V|0));c[(t&p)+4>>2]=A;c[(t&p)>>2]=C;c[(t&p)+12>>2]=c[(J&p)>>2];c[(J&p)>>2]=t}t=t+8|0;if((d[(t&n)>>0]|0)<(v&255)){a[(t&n)>>0]=v;S=z;T=s;U=W;V=X}else{S=z;T=s;U=W;V=X}break}case 1213:{ie=0;c[(sd&p)>>2]=0;v=c[((c[(s+(r*20|0)&p)+16>>2]|0)&p)+8>>2]|0;if(!v){t=r;s=6;u=x;ie=1309;break c}w=c[(v&p)>>2]|0;if(!w){t=r;s=6;u=x;ie=1309;break c}C=rc[c[(w&p)+24>>2]&127](v,sd)|0;Mm(f,v);if(C){t=r;s=C;u=x;ie=1309;break c}c[(c[(sd&p)>>2]&p)>>2]=v;t=xm(f,c[(s+(r*20|0)&p)+4>>2]|0,0,-1,0)|0;if(!t){a[(ge&n)>>0]=1;lc[c[(w&p)+28>>2]&127](c[(sd&p)>>2]|0)|0;S=z;T=s;U=W;V=X;break}else{c[(t&p)+32>>2]=c[(sd&p)>>2];S=v+4|0;c[(S&p)>>2]=(c[(S&p)>>2]|0)+1;S=z;T=s;U=W;V=X;break}}case 1226:{ie=0;t=z+(C*40|0)+8|0;if(!(b[(t&o)>>1]&9312)){b[(t&o)>>1]=1;S=z;T=s;U=W;V=X;break}else{vg(A);S=z;T=s;U=W;V=X;break}}case 1257:{ie=0;S=u;c[(S&p)>>2]=c[((c[((c[((c[(Xd&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<4)&p)+4>>2]|0)&p)+4>>2]|0)&p)+44>>2];c[(S&p)+4>>2]=0;S=z;T=s;U=W;V=X;break}case 1258:{ie=0;v=c[((c[(Xd&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<4)&p)+4>>2]|0;t=c[(s+(r*20|0)&p)+12>>2]|0;u=c[(v&p)+4>>2]|0;if(!t)t=0;else{V=c[(u&p)+44>>2]|0;t=V>>>0>>0?t:V}c[(u&p)+4>>2]=c[(v&p)>>2];u=(c[(u&p)>>2]|0)+156|0;if((t|0)>0)c[(u&p)>>2]=t;else t=c[(u&p)>>2]|0;S=J;c[(S&p)>>2]=t;c[(S&p)+4>>2]=((t|0)<0)<<31>>31;S=z;T=s;U=W;V=X;u=J;break}case 1264:{ie=0;r=c[(s+(t*20|0)&p)+8>>2]|0;r=(r|0)==0?t:r+-1|0;if((c[(Sa&p)>>2]|0)!=0?(b[(Yd&o)>>1]&512)==0:0){t=c[(s+(t*20|0)&p)+16>>2]|0;if(!t){t=c[(ce&p)>>2]|0;if(!t){S=z;T=s;U=W;V=X;u=L;break}}c[(Sd&p)>>2]=0;F=c[(f&p)>>2]|0;v=c[(F&p)+88>>2]|0;c[(fb&p)>>2]=Nd;c[(gb&p)>>2]=Nd;c[(hb&p)>>2]=0;c[(ib&p)>>2]=100;c[(jb&p)>>2]=v;a[(kb&n)>>0]=1;a[(lb&n)>>0]=0;c[(qd&p)>>2]=F;v=a[(t&n)>>0]|0;u=v<<24>>24==0;E:do if((c[(F&p)+160>>2]|0)>1){if(!u)while(1){u=t;do{u=u+1|0;if(v<<24>>24==10)break;v=a[(u&n)>>0]|0}while(v<<24>>24!=0);Sk(qd,42288,3);Sk(qd,t,u-t|0);v=a[(u&n)>>0]|0;if(!(v<<24>>24))break;else t=u}}else if(!u){H=F+62|0;K=1;do{F:do if(!(v<<24>>24)){A=0;u=0}else{C=t;u=0;while(1){A=Cn(C,ke)|0;if((c[(ke&p)>>2]|0)==135)break F;u=A+u|0;C=C+A|0;if(!(a[(C&n)>>0]|0)){A=0;break}}}while(0);Sk(qd,t,u);C=t+u|0;if(!A)break E;do if((a[(C&n)>>0]|0)==63)if((A|0)>1){Dn(t+(u+1)|0,Sd)|0;C=c[(Sd&p)>>2]|0;break}else{c[(Sd&p)>>2]=K;C=K;break}else{C=qh(f,C,A)|0;c[(Sd&p)>>2]=C}while(0);t=t+(u+A)|0;K=C+1|0;J=C+-1|0;I=c[(Ab&p)>>2]|0;C=I+(J*40|0)|0;A=e[(I+(J*40|0)&o)+8>>1]|0;do if(!(A&1)){if(A&4){T=C;U=c[(T&p)+4>>2]|0;V=ke;c[(V&p)>>2]=c[(T&p)>>2];c[(V&p)+4>>2]=U;En(qd,0,19920,ke);break}if(A&8){h[(k&q)>>3]=+h[(C&q)>>3];c[(ke&p)>>2]=c[(k&p)>>2];c[(ke&p)+4>>2]=c[(k&p)+4>>2];En(qd,0,20272,ke);break}if(!(A&2)){if(A&16384){c[(ke&p)>>2]=c[(C&p)>>2];En(qd,0,42304,ke);break}Sk(qd,42320,2);E=c[(I+(J*40|0)&p)+12>>2]|0;if((E|0)>0){C=I+(J*40|0)+16|0;A=0;do{c[(ke&p)>>2]=d[((c[(C&p)>>2]|0)+A&n)>>0];En(qd,0,42328,ke);A=A+1|0}while((A|0)!=(E|0))}Sk(qd,42336,1);break}else{E=a[(H&n)>>0]|0;if(E<<24>>24==1){V=c[(I+(J*40|0)&p)+16>>2]|0;c[(ke&p)>>2]=c[(I+(J*40|0)&p)+12>>2];c[(ke&p)+4>>2]=V;En(qd,0,42296,ke);break}U=Od+0|0;V=U+40|0;do{c[(U&p)>>2]=0;U=U+4|0}while((U|0)<(V|0));c[(nb&p)>>2]=F;Xg(Od,c[(I+(J*40|0)&p)+16>>2]|0,c[(I+(J*40|0)&p)+12>>2]|0,E,0)|0;V=c[(ob&p)>>2]|0;if(!((V&2|0)==0|(V&16711680|0)==65536))Bn(Od,1)|0;V=c[(qb&p)>>2]|0;c[(ke&p)>>2]=c[(pb&p)>>2];c[(ke&p)+4>>2]=V;En(qd,0,42296,ke);if((b[(ob&o)>>1]&9312)==0&(c[(rb&p)>>2]|0)==0)break;Qg(Od);break}}else Sk(qd,20304,4);while(0);v=a[(t&n)>>0]|0}while(v<<24>>24!=0)}while(0);S=tg(qd)|0;jc[c[(Sa&p)>>2]&15](c[(mb&p)>>2]|0,S);mg(le,S);S=z;T=s;U=W;V=X;u=L}else{S=z;T=s;U=W;V=X;u=L}break}}if((ie|0)==28){ie=0;z=s+(r*20|0)+4|0;t=c[(z&p)>>2]|0;if(t){y=z;ie=34;break}z=c[(sb&p)>>2]|0;if(!z){ie=30;break}c[(sb&p)>>2]=c[(z&p)+4>>2];c[(tb&p)>>2]=(c[(tb&p)>>2]|0)+-1;l=c[(ub&p)>>2]|0;c[(vb&p)>>2]=l;c[(wb&p)>>2]=(c[(wb&p)>>2]|0)+l;z=Xl(z)|0;l=ne;t=c[(zc&p)>>2]|0;if((c[(s+(r*20|0)&p)+8>>2]|0)==4)r=(c[(t+(z*20|0)&p)+8>>2]|0)+-1|0;else r=z;m=c[(l&p)>>2]|0;l=c[(l&p)+4>>2]|0;S=c[(Nc&p)>>2]|0;T=t;U=W;V=X}else if((ie|0)==488){ie=0;u=sm(le,C,A)|0;if(!u){S=z;T=s;U=W;V=X;u=E}else{t=r;ie=1318;break}}z=S;s=T;W=U;X=V;t=r+1|0}switch(ie|0){case 30:{c[(me&p)>>2]=t;a[(fe&n)>>0]=c[(s+(r*20|0)&p)+8>>2];c[(he&p)>>2]=r;ie=41;break}case 34:{c[(me&p)>>2]=t;a[(fe&n)>>0]=c[(s+(r*20|0)&p)+8>>2];c[(he&p)>>2]=r;t=a[(s+(r*20|0)&n)+3>>0]|0;if(!(t<<24>>24)){s=c[(s+(r*20|0)&p)+16>>2]|0;if(!s){s=0;ie=39}else{c[(ke&p)>>2]=s;dh(je,le,10344,ke)}}else{u=c[((t&255)+-1<<2&p)+41536>>2]|0;t=c[(s+(r*20|0)&p)+16>>2]|0;if(!t){s=u;ie=39}else{c[(ke&p)>>2]=u;c[(ke&p)+4>>2]=t;dh(je,le,41624,ke)}}if((ie|0)==39){c[(ke&p)>>2]=s;dh(je,le,41656,ke)}ie=c[(y&p)>>2]|0;qd=c[(ce&p)>>2]|0;rd=c[(je&p)>>2]|0;c[(ke&p)>>2]=r;c[(ke&p)+4>>2]=qd;c[(ke&p)+8>>2]=rd;bd(ie,41600,ke);ie=41;break}case 80:{x=c[(be&p)>>2]|0;if(!((x|0)==0|g>>>0>>0)?(lc[x&127](c[(Zd&p)>>2]|0)|0)!=0:0){r=m;s=9;m=u;ie=1311;break a}rd=_d;qd=c[(rd&p)+4>>2]|0;if((qd|0)>0|(qd|0)==0&(c[(rd&p)>>2]|0)>>>0>0){s=c[(f&p)>>2]|0;c[(me&p)>>2]=787;a[(fe&n)>>0]=2;dh(je,s,34376,ke);s=1;ie=1309;break}x=$l(f,1)|0;if(!x){c[($d&p)>>2]=(c[($d&p)>>2]|0)+2|1;y=c[(s+(t*20|0)&p)+4>>2]|0;c[(de&p)>>2]=z+(y*40|0);r=s+(t*20|0)+8|0;if((c[(r&p)>>2]|0)>0){x=0;do{v=x+y|0;w=z+(v*40|0)|0;v=z+(v*40|0)+8|0;s=b[(v&o)>>1]|0;if(s&4096){if(Vl(w)|0){y=ge;z=je;r=m;m=u;ie=1317;break a}s=b[(v&o)>>1]|0}if((s&514)==2)am(w)|0;x=x+1|0}while((x|0)<(c[(r&p)>>2]|0))}if(a[(ge&n)>>0]|0){y=ge;z=je;r=m;m=u;ie=1317;break a}c[(he&p)>>2]=t+1;r=m;m=g;g=100;break a}else{s=x;ie=1309}break}case 313:{c[(ke&p)>>2]=73058;c[(ke&p)+4>>2]=10788;bd(11,13600,ke);s=11;ie=1309;break}case 343:{c[(ke&p)>>2]=73142;c[(ke&p)+4>>2]=10788;bd(11,13600,ke);s=11;ie=1309;break}case 447:{dh(je,le,41712,ke);t=r;s=5;ie=1309;break}case 460:{c[(ke&p)>>2]=s;dh(je,le,41768,ke);s=1;ie=1309;break}case 462:{dh(je,le,41792,ke);s=5;ie=1309;break}case 467:{c[(he&p)>>2]=g;a[(ee&n)>>0]=0;c[(me&p)>>2]=5;g=5;break a}case 489:{v=c[(s+(t*20|0)&p)+4>>2]|0;s=c[(s+(t*20|0)&p)+8>>2]|0;g=(v|0)!=0;if(g){s=(s|0)!=0;if(!(s|(a[(ee&n)>>0]|0)!=0))if((c[(ae&p)>>2]|0)>0){dh(je,le,41848,ke);g=m;m=r;s=5;ie=1309;break}else s=0}else s=(s|0)!=0;if((v|0)==(d[(ee&n)>>0]|0)){if(g)g=s?41952:42e3;else g=41904;dh(je,le,g,ke);g=m;m=r;s=1;ie=1309;break}if(!s){g=tm(f,1)|0;if(g)break a;a[(ee&n)>>0]=v;if((Rl(f)|0)==5){c[(he&p)>>2]=t;a[(ee&n)>>0]=1-v;c[(me&p)>>2]=5;g=5;break a}}else{Kl(le,516);a[(ee&n)>>0]=1}Ll(le);g=(c[(me&p)>>2]|0)==0?101:1;break a}case 508:{c[(he&p)>>2]=g;c[(me&p)>>2]=5;g=5;break a}case 522:{mg(le,c[(je&p)>>2]|0);c[(je&p)>>2]=kh(le,16040)|0;s=c[(s&p)>>2]|0;if((c[(c[((c[(Xd&p)>>2]|0)+(s<<4)&p)+12>>2]&p)>>2]|0)!=(v|0))vm(le,s);b[(Yd&o)>>1]=b[(Yd&o)>>1]|8;s=17;ie=1309;break}case 542:{c[(ke&p)>>2]=73997;c[(ke&p)+4>>2]=10788;bd(11,13600,ke);u=11;x=s;ie=1318;break}case 560:{c[(s&p)+56>>2]=0;s=7;ie=1309;break}case 832:{a[(fe&n)>>0]=2;s=6;ie=1309;break}case 882:{Eg(le);y=ge;z=je;r=m;m=u;ie=1317;break a}case 884:{Eg(le);if((s|0)==7){y=ge;z=je;r=m;m=u;ie=1317;break a}else ie=1309;break}case 998:{dh(je,le,42112,ke);s=1;ie=1309;break}case 1080:{c[(ke&p)>>2]=s?42208:42216;dh(je,le,42152,ke);s=1;ie=1309;break}case 1101:{dh(je,le,42344,ke);s=1;ie=1309;break}case 1103:{dh(je,le,42384,ke);s=1;ie=1309;break}case 1145:{c[(ke&p)>>2]=56343;c[(ke&p)+4>>2]=10788;bd(11,13600,ke);s=11;ie=1309;break}case 1316:{dh(je,le,10096,ke);r=m;s=18;m=u;ie=1311;break a}}if((ie|0)==41)if((Rl(f)|0)==5){c[(me&p)>>2]=5;r=m;m=g;g=5;break a}else{r=m;m=g;g=(c[(me&p)>>2]|0)!=0?1:101;break a}else if((ie|0)==1309){r=m;t=t+1|0;m=u;ie=1311;break a}else if((ie|0)==1318){u=(a[(ge&n)>>0]|0)==0?u:7;if((u|0)==3082){r=m;s=3082;m=x;ie=1311;break a}else if((u|0)!=516){r=u&255;if(r>>>0>26|(r|0)==2)s=16328;else s=c[(r<<2&p)+15488>>2]|0}else s=16344;c[(ke&p)>>2]=s;dh(je,le,10344,ke);r=m;s=u;m=x;ie=1311;break a}}else{u=f+44|0;r=m;g=0;t=0;m=0}while(0);c[(me&p)>>2]=9;c[(ke&p)>>2]=15832;dh(u,le,10344,ke);s=9;ie=1311}while(0);if((ie|0)==1317){a[(y&n)>>0]=1;dh(z,le,15776,ke);s=7;ie=1311}if((ie|0)==1311){c[(me&p)>>2]=s;qd=c[(f&p)+168>>2]|0;rd=c[(f&p)+44>>2]|0;c[(ke&p)>>2]=t;c[(ke&p)+4>>2]=qd;c[(ke&p)+8>>2]=rd;bd(s,42256,ke);Rl(f)|0;if((s|0)==3082)a[(le&n)+65>>0]=1;if(!(m<<24>>24)){m=g;g=1}else{vm(le,(m&255)+-1|0);m=g;g=1}}rd=ne;c[(rd&p)>>2]=r;c[(rd&p)+4>>2]=l;rd=f+124|0;c[(rd&p)>>2]=(c[(rd&p)>>2]|0)+m;i=oe;return g|0} function Ev(e){e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=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=e+20|0;u=e+14|0;f=a[(u&n)>>0]|0;z=e+13|0;g=a[(z&n)>>0]|0;a:do if((f&255)>(g&255))f=0;else{B=e+4|0;C=e+16|0;v=e+8|0;w=e+12|0;x=e+24|0;y=e+28|0;i=f&255;j=c[(B&p)>>2]|0;h=c[(D&p)>>2]|0;b:while(1){t=c[(e+(i+-2<<2)&p)+24>>2]|0;s=c[(e+(i+-1<<2)&p)+24>>2]|0;if(j){while(1){r=j+12|0;if((h|0)<(c[(r&p)>>2]|0)){g=h;f=(c[(j&p)+20>>2]|0)+(h*48|0)|0;while(1){do if((c[(f&p)+8>>2]|0)==(t|0)?(c[(f&p)+12>>2]|0)==(s|0):0){if((d[(u&n)>>0]|0)>=3?(c[((c[(f&p)>>2]|0)&p)+4>>2]&1|0)!=0:0)break;q=f+18|0;h=b[(q&o)>>1]|0;if((h&1024)!=0?(A=a[(z&n)>>0]|0,(A&255)<22):0){i=c[((c[(f&p)>>2]|0)&p)+16>>2]|0;c:do if(!i)i=0;else while(1){k=c[(i&p)+4>>2]|0;if(!(k&4096))break c;if(!(k&262144))i=i+12|0;else i=c[((c[(i&p)+20>>2]|0)&p)+4>>2]|0;i=c[(i&p)>>2]|0;if(!i){i=0;break}}while(0);d:do if(!(A<<24>>24)){m=0;k=0}else{l=c[(i&p)+28>>2]|0;m=i+32|0;k=0;while(1){if((c[(e+(k<<2)&p)+24>>2]|0)==(l|0)?(c[(e+((k|1)<<2)&p)+24>>2]|0)==(b[(m&o)>>1]|0):0){m=A;break d}k=k+2|0;if((k|0)>=(A&255|0)){m=A;break}}}while(0);if((k|0)==(m&255|0)){c[(e+(k<<2)&p)+24>>2]=c[(i&p)+28>>2];c[(e+((k|1)<<2)&p)+24>>2]=b[(i&o)+32>>1];a[(z&n)>>0]=(d[(z&n)>>0]|0)+2}}i=h&65535;if(i&c[(C&p)>>2]){if((c[(v&p)>>2]|0)!=0&(i&128|0)==0){l=c[(c[(j&p)>>2]&p)>>2]|0;k=c[(f&p)>>2]|0;i=a[(w&n)>>0]|0;h=(nv(k)|0)<<24>>24;if((h|0)==66){if(i<<24>>24!=66)break}else if((h|0)!=65?i<<24>>24<=66:0)break;h=Ou(l,c[(k&p)+12>>2]|0,c[(k&p)+16>>2]|0)|0;if(!h)h=c[((c[(l&p)>>2]|0)&p)+8>>2]|0;if(dd(c[(h&p)>>2]|0,c[(v&p)>>2]|0)|0)break;h=b[(q&o)>>1]|0}if(!(h&2))break b;h=c[((c[(f&p)>>2]|0)&p)+16>>2]|0;if((a[(h&n)>>0]|0)!=-102)break b;if((c[(h&p)+28>>2]|0)!=(c[(x&p)>>2]|0))break b;if((b[(h&o)+32>>1]|0)!=(c[(y&p)>>2]|0))break b}}while(0);g=g+1|0;if((g|0)>=(c[(r&p)>>2]|0))break;else f=f+48|0}g=c[(B&p)>>2]|0}else g=j;j=c[(g&p)+4>>2]|0;c[(B&p)>>2]=j;if(!j)break;else h=0}f=a[(u&n)>>0]|0;g=a[(z&n)>>0]|0}j=c[(e&p)>>2]|0;c[(B&p)>>2]=j;h=(f&255)+2|0;f=h&255;a[(u&n)>>0]=f;if((f&255)>(g&255)){f=0;break a}else{i=h&255;h=0}}c[(D&p)>>2]=g+1}while(0);return f|0}function Fv(d,f){d=d|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0,m=0,q=0;g=c[(d&p)>>2]|0;l=c[(c[(g&p)>>2]&p)>>2]|0;d=c[(d&p)+16>>2]|0;a:do if(!d){g=g+16|0;i=c[(g&p)>>2]|0;k=f+36|0;if((c[(k&p)>>2]&512|0)!=0&(i|0)!=0){d=f+20|0;j=f+22|0;h=a[(f&n)+16>>0]|0;do{do if((a[(i&n)+16>>0]|0)==h<<24>>24?(c[(i&p)+36>>2]&512|0)!=0:0){if(Tv(i,f)|0){b[(d&o)>>1]=b[(i&o)+20>>1]|0;b[(j&o)>>1]=(e[(i&o)+22>>1]|0)+65535;break}if(Tv(f,i)|0){b[(d&o)>>1]=b[(i&o)+20>>1]|0;b[(j&o)>>1]=(e[(i&o)+22>>1]|0)+1}}while(0);i=c[(i&p)+52>>2]|0}while((i|0)!=0)}d=Uv(g,f)|0;if(d){g=c[(d&p)>>2]|0;b:do if(g){d=g+52|0;if(c[(d&p)>>2]|0)do{d=Uv(d,f)|0;if(!d)break b;h=c[(d&p)>>2]|0;if(!h)break b;c[(d&p)>>2]=c[(h&p)+52>>2];Ju(l,h);mg(l,h)}while((c[(d&p)>>2]|0)!=0)}else{g=mh(l,72,0)|0;c[(d&p)>>2]=g;if(!g){d=7;break a}c[(g&p)+48>>2]=g+56;b[(g&o)+40>>1]=0;b[(g&o)+44>>1]=3;c[(g&p)+36>>2]=0;c[(g&p)+52>>2]=0}while(0);Lv(l,g);do if(!(Nu(l,g,e[(f&o)+40>>1]|0)|0)){h=g+0|0;d=f+0|0;i=h+44|0;do{c[(h&p)>>2]=c[(d&p)>>2];h=h+4|0;d=d+4|0}while((h|0)<(i|0));kw(c[(g&p)+48>>2]|0,c[(f&p)+48>>2]|0,e[(g&o)+40>>1]<<2|0)|0;d=c[(k&p)>>2]|0;if(d&1024){a[(f&n)+28>>0]=0;break}if(d&16384)c[(f&p)+28>>2]=0}else{d=g+24|0;c[(d&p)>>2]=0;c[(d&p)+4>>2]=0;c[(d&p)+8>>2]=0}while(0);if(((c[(g&p)+36>>2]&1024|0)==0?(m=g+28|0,q=c[(m&p)>>2]|0,(q|0)!=0):0)?(c[(q&p)+40>>2]|0)==0:0){c[(m&p)>>2]=0;d=0}else d=0}else d=0}else{g=f;Kv(d,c[(g&p)>>2]|0,c[(g&p)+4>>2]|0,b[(f&o)+20>>1]|0,b[(f&o)+22>>1]|0);d=0}while(0);return d|0}function Gv(a,b){a=a|0;b=b|0;var c=0,e=0;c=a<<16>>16;e=b<<16>>16;do if(a<<16>>16>16)if((e|0)<=(c+49|0))if((e|0)>(c+31|0)){a=e+1&65535;break}else{a=(d[(e-c&n)+34032>>0]|0)+e&65535;break}else a=b;else if((c|0)<=(e+49|0))if((c|0)>(e+31|0)){a=c+1&65535;break}else{a=(d[(c-e&n)+34032>>0]|0)+c&65535;break}while(0);return a|0}function Hv(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0;do if(!(Cu(b,d,e)|0))f=1;else{f=a[(d&n)>>0]|0;if(f<<24>>24==71){if(Hv(b,c[(d&p)+12>>2]|0,e)|0){f=1;break}if(Hv(b,c[(d&p)+16>>2]|0,e)|0){f=1;break}if(f<<24>>24==77)g=6}else if(f<<24>>24==77)g=6;if(((g|0)==6?(Cu(c[(b&p)+12>>2]|0,c[(d&p)+12>>2]|0,e)|0)==0:0)?(f=a[(b&n)>>0]|0,!(f<<24>>24==73|f<<24>>24==76)):0){f=1;break}f=0}while(0);return f|0}function Iv(a,d,f){a=a|0;d=d|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0;x=i;i=i+16|0;if((i|0)>=(j|0))fa();w=x;u=d;v=d+8|0;g=v;t=~(c[(g&p)>>2]|c[(u&p)>>2]);u=~(c[(g&p)+4>>2]|c[(u&p)+4>>2]);g=c[(a&p)+12>>2]|0;r=a+20|0;a:do if((g|0)>0){s=d+40|0;a=d+22|0;q=d+48|0;d=0;n=c[(r&p)>>2]|0;while(1){if(b[(n&o)+20>>1]&2)break a;m=n+40|0;l=c[(m&p)>>2]|0;m=c[(m&p)+4>>2]|0;k=v;b:do if(((c[(k&p)>>2]&l|0)!=0?1:(c[(k&p)+4>>2]&m|0)!=0)&((l&t|0)==0&(m&u|0)==0)){h=b[(s&o)>>1]|0;c:do if(h<<16>>16){m=c[(q&p)>>2]|0;l=h&65535;while(1){h=l;l=l+-1|0;k=c[(m+(l<<2)&p)>>2]|0;if(k){if((k|0)==(n|0))break;k=c[(k&p)+4>>2]|0;if((k|0)>-1?((c[(r&p)>>2]|0)+(k*48|0)|0)==(n|0):0)break}if((l|0)<=0)break c}if((h|0)>=1)break b}while(0);h=b[(n&o)+16>>1]|0;if(h<<16>>16<1){b[(a&o)>>1]=(e[(a&o)>>1]|0)+(h&65535);break}b[(a&o)>>1]=(b[(a&o)>>1]|0)+-1<<16>>16;if(b[(n&o)+18>>1]&2){l=(Ms(c[((c[(n&p)>>2]|0)&p)+16>>2]|0,w)|0)!=0;m=c[(w&p)>>2]|0;m=l&(m|0)>-2&(m|0)<2?10:20;c[(w&p)>>2]=m;d=(d<<16>>16|0)<(m|0)?m&65535:d}}while(0);g=g+-1|0;if((g|0)<=0)break;else n=n+48|0}}else{a=d+22|0;d=0}while(0);d=(f<<16>>16)-(d<<16>>16)|0;if((b[(a&o)>>1]|0)>(d|0))b[(a&o)>>1]=d;i=x;return}function Jv(d,f,g,h){d=d|0;f=f|0;g=g|0;h=h|0;var k=0,l=0,m=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,ga=0,ha=0;ha=i;i=i+112|0;if((i|0)>=(j|0))fa();R=ha;V=c[(c[(c[(d&p)>>2]&p)>>2]&p)>>2]|0;ea=c[(d&p)+12>>2]|0;if(!(a[(V&n)+65>>0]|0)){ga=ea+36|0;if(!(c[(ga&p)>>2]&32))if((c[(g&p)+40>>2]|0)<1)k=63;else k=(a[(f&n)+36>>0]&8)<<4^191;else k=24;W=g+51|0;ca=ea+24|0;l=b[((c[(g&p)+4>>2]|0)+(e[(ca&o)>>1]<<1)&o)>>1]|0;N=l<<16>>16;O=d+4|0;k=Dv(R,c[(O&p)>>2]|0,c[(f&p)+40>>2]|0,N,(a[(W&n)>>0]&4)==0?k:k&131,g)|0;X=b[(ca&o)>>1]|0;Y=ea+42|0;T=b[(Y&o)>>1]|0;Z=ea+40|0;U=b[(Z&o)>>1]|0;_=c[(ga&p)>>2]|0;Q=ea;P=c[(Q&p)>>2]|0;Q=c[(Q&p)+4>>2]|0;$=ea+22|0;aa=b[($&o)>>1]|0;b[(ea&o)+18>>1]=0;ba=g+8|0;D=b[(c[(ba&p)>>2]&o)>>1]|0;if(D<<16>>16<11)C=0;else{C=D<<16>>16;C=((fs(C,((C|0)<0)<<31>>31)|0)&65535)+65503&65535}a:do if(!k)k=0;else{E=l<<16>>16<0;F=f+16|0;G=ea+8|0;H=(U&65535)+1|0;I=ea+48|0;J=h<<16>>16==0;K=g+46|0;w=l<<16>>16>-1;x=g+50|0;y=g+44|0;z=ea+20|0;A=h<<16>>16;B=g+48|0;r=0;u=k;s=0;while(1){l=b[(u&o)+18>>1]|0;t=l&65535;if(l<<16>>16==128)if(!E?(a[((c[((c[(F&p)>>2]|0)&p)+4>>2]|0)+(N*24|0)&n)+20>>0]|0)==0:0)S=12;else{m=r;l=s;k=0}else S=12;if((S|0)==12){S=0;m=u+32|0;v=m;q=G;if(((c[(q&p)>>2]&c[(v&p)>>2]|0)==0?(c[(q&p)+4>>2]&c[(v&p)+4>>2]|0)==0:0)?(L=u+20|0,!((b[(L&o)>>1]&256)!=0&l<<16>>16==16)):0){c[(ga&p)>>2]=_;b[(ca&o)>>1]=X;b[(Z&o)>>1]=U;if(Nu(V,ea,H)|0){k=0;break a}k=b[(Z&o)>>1]|0;q=k+1<<16>>16;b[(Z&o)>>1]=q;c[((c[(I&p)>>2]|0)+((k&65535)<<2)&p)>>2]=u;k=m;l=G;m=(c[(k&p)+4>>2]|Q)&~c[(l&p)+4>>2];v=ea;c[(v&p)>>2]=(c[(k&p)>>2]|P)&~c[(l&p)>>2];c[(v&p)+4>>2]=m;b:do if(!(t&1)){if(t&2){k=c[(ga&p)>>2]|0;l=k|1;c[(ga&p)>>2]=l;do if(!E){if(!J){v=0;break b}if((e[(ca&o)>>1]|0)!=((e[(K&o)>>1]|0)+-1|0)){v=0;break b}if(!w)break;if(a[(x&n)>>0]|0)break;l=k|65537;c[(ga&p)>>2]=l;v=0;break b}while(0);l=k|4097;c[(ga&p)>>2]=l;v=0;break}if(t&128){l=c[(ga&p)>>2]|8;c[(ga&p)>>2]=l;v=0;break}k=c[(ga&p)>>2]|0;if(!(t&36)){l=k|18;c[(ga&p)>>2]=l;if(!(k&32)){v=0;r=0;s=u;break}v=0;r=c[((c[(I&p)>>2]|0)+((q&65535)+-2<<2)&p)>>2]|0;s=u;break}l=k|34;c[(ga&p)>>2]=l;if(!(b[(L&o)>>1]&256)){v=0;r=u;s=0}else{k=u+48|0;if(Nu(V,ea,(q&65535)+1|0)|0){k=0;break a}l=b[(Z&o)>>1]|0;b[(Z&o)>>1]=l+1<<16>>16;c[((c[(I&p)>>2]|0)+((l&65535)<<2)&p)>>2]=k;l=c[(ga&p)>>2]|16;c[(ga&p)>>2]=l;v=0;r=u;s=k}}else{k=c[(u&p)>>2]|0;l=c[(ga&p)>>2]|4;c[(ga&p)>>2]=l;if(!(c[(k&p)+4>>2]&2048)){k=c[(k&p)+20>>2]|0;if((k|0)!=0?(M=c[(k&p)>>2]|0,(M|0)!=0):0)v=(fs(M,((M|0)<0)<<31>>31)|0)<<16>>16;else v=0}else v=46}while(0);do if(!(l&2)){k=(b[(ca&o)>>1]|0)+1<<16>>16;b[(ca&o)>>1]=k;k=k&65535;m=b[(u&o)+16>>1]|0;if(m<<16>>16<1&w){q=(m&65535)-v+(e[($&o)>>1]|0)&65535;b[($&o)>>1]=q;break}m=c[(ba&p)>>2]|0;m=(e[($&o)>>1]|0)+((e[(m+(k<<1)&o)>>1]|0)-(e[(m+(k+-1<<1)&o)>>1]|0))|0;k=m&65535;b[($&o)>>1]=k;if(!(t&128))q=k;else{q=m+10&65535;b[($&o)>>1]=q}}else{k=b[($&o)>>1]|0;q=k<<16>>16;do if(r){m=b[(r&o)+16>>1]|0;if(m<<16>>16<1){k=(m&65535)+(k&65535)&65535;break}else{k=(k&65535)+65516&65535;break}}while(0);do if(s){m=b[(s&o)+16>>1]|0;if(m<<16>>16<1){k=(m&65535)+(k&65535)&65535;break}else{k=(k&65535)+65516&65535;break}}while(0);m=(r|0)!=0;do if(m?(b[(r&o)+16>>1]|0)>0&(s|0)!=0:0){if((b[(s&o)+16>>1]|0)<=0)break;k=(k&65535)+65516&65535}while(0);q=(((s|0)!=0)<<31>>31)+(m<<31>>31)+q|0;u=k<<16>>16<10?10:k<<16>>16;q=((u|0)<(q|0)?u:q)&65535;b[($&o)>>1]=q}while(0);k=q&65535;m=Gv(C,k+1+(((b[(y&o)>>1]|0)*15|0)/(b[((c[(F&p)>>2]|0)&o)+42>>1]|0)|0)&65535)|0;if(!(l&320))m=Gv(m,k+16&65535)|0;l=v+A|0;b[(z&o)>>1]=(m&65535)+l;b[($&o)>>1]=k+l;Iv(c[(O&p)>>2]|0,ea,D);k=Fv(d,ea)|0;v=c[(ga&p)>>2]|0;b[($&o)>>1]=(v&2|0)==0?q:aa;if((v&16|0)==0?(e[(ca&o)>>1]|0)<(e[(B&o)>>1]|0):0)Jv(d,f,g,l&65535)|0;b[($&o)>>1]=aa;m=r;l=s}else{m=r;l=s;k=0}}u=Ev(R)|0;if(!((k|0)==0&(u|0)!=0))break;else{r=m;s=l}}}while(0);l=ea;c[(l&p)>>2]=P;c[(l&p)+4>>2]=Q;b[(ca&o)>>1]=X;b[(Y&o)>>1]=T;c[(ga&p)>>2]=_;b[($&o)>>1]=aa;b[(Z&o)>>1]=U;l=X&65535;if(((X<<16>>16==T<<16>>16?(da=l+1|0,da>>>0<(e[(g&o)+46>>1]|0)>>>0):0)?(a[(W&n)>>0]&64)==0:0)?(b[((c[(ba&p)>>2]|0)+(da<<1)&o)>>1]|0)>41:0){k=Nu(V,ea,(U&65535)+1|0)|0;if(!k){b[(ca&o)>>1]=(b[(ca&o)>>1]|0)+1<<16>>16;b[(Y&o)>>1]=(b[(Y&o)>>1]|0)+1<<16>>16;k=b[(Z&o)>>1]|0;b[(Z&o)>>1]=k+1<<16>>16;c[((c[(ea&p)+48>>2]|0)+((k&65535)<<2)&p)>>2]=0;c[(ga&p)>>2]=c[(ga&p)>>2]|32768;k=c[(ba&p)>>2]|0;k=(e[(k+(l<<1)&o)>>1]|0)-(e[(k+(da<<1)&o)>>1]|0)|0;b[($&o)>>1]=(e[($&o)>>1]|0)-k;Jv(d,f,g,(((k<<16)+327680|0)>>>16)+(h&65535)&65535)|0;b[($&o)>>1]=aa;b[(ca&o)>>1]=X;b[(Y&o)>>1]=X;c[(ga&p)>>2]=_;k=0}}}else k=7;i=ha;return k|0}function Kv(a,d,e,f,g){a=a|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,i=0,j=0,k=0,l=0,m=0,n=0,q=0,r=0;l=b[(a&o)>>1]|0;h=a+8|0;a:do if(l<<16>>16){j=l;k=h;while(1){i=b[(k&o)+8>>1]|0;if(i<<16>>16>=f<<16>>16?(r=k,(c[(r&p)>>2]&d|0)==(d|0)?(c[(r&p)+4>>2]&e|0)==(e|0):0):0){n=k;q=14;break a}if(i<<16>>16<=f<<16>>16?(i=k,r=c[(i&p)>>2]|0,i=c[(i&p)+4>>2]|0,(r&d|0)==(r|0)&(i&e|0)==(i|0)):0)break a;j=j+-1<<16>>16;if(!(j<<16>>16))break;else k=k+16|0}if((l&65535)>=3){i=b[(a&o)+16>>1]|0;k=1;do{if(i<<16>>16>(b[(a+(k<<4)&o)+16>>1]|0))h=a+(k<<4)+8|0;k=k+1|0;i=b[(h&o)+8>>1]|0}while((k&65535)<(l&65535));if(i<<16>>16>f<<16>>16){n=h;q=14}}else q=9}else q=9;while(0);if((q|0)==9){n=l&65535;b[(a&o)>>1]=l+1<<16>>16;b[(a+(n<<4)&o)+18>>1]=g;n=a+(n<<4)+8|0;q=14}if((q|0)==14?(m=n,c[(m&p)>>2]=d,c[(m&p)+4>>2]=e,b[(n&o)+8>>1]=f,m=n+10|0,(b[(m&o)>>1]|0)>g<<16>>16):0)b[(m&o)>>1]=g;return}function Lv(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0;e=c[(d&p)+36>>2]|0;do if(e&17408){if((e&1024|0)!=0?(h=d+28|0,(a[(h&n)>>0]|0)!=0):0){e=d+32|0;Wc(c[(e&p)>>2]|0);a[(h&n)>>0]=0;c[(e&p)>>2]=0;break}if((e&16384|0)!=0?(f=d+28|0,g=c[(f&p)>>2]|0,(g|0)!=0):0){mg(b,c[(g&p)+16>>2]|0);mg(b,c[(f&p)>>2]|0);c[(f&p)>>2]=0}}while(0);return}function Mv(f,g,h,k,l,m,q){f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;m=m|0;q=q|0;var 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,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,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;ta=i;i=i+32|0;if((i|0)>=(j|0))fa();oa=ta;s=c[(c[(f&p)>>2]&p)>>2]|0;na=l&65535;if(l<<16>>16!=0?(b[(s&o)+60>>1]&128)!=0:0)r=0;else pa=3;a:do if((pa|0)==3){sa=c[(g&p)>>2]|0;r=sa&65535;if(r>>>0<=63){qa=iw(1,0,r|0)|0;qa=jw(qa|0,G|0,-1,-1)|0;ra=G;b:do if((qa|0)==0&(ra|0)==0){g=0;h=0;s=1}else{ha=h+24|0;ia=f+4|0;ja=(r|0)==0;ea=g+4|0;ga=(k&768)==0;da=s+8|0;W=(k&256)==0;X=f+68|0;Y=oa+20|0;Z=oa+4|0;aa=oa+24|0;ba=f+328|0;_=0;$=0;g=0;h=0;k=0;t=0;ca=0;s=1;l=0;while(1){if((ca|0)>0){U=l+8|0;V=c[(U&p)>>2]|k;t=c[(U&p)+4>>2]|t}else V=k;if((ca|0)<(na|0))l=c[((c[(ha&p)>>2]|0)+(ca<<2)&p)>>2]|0;else l=m;B=l+36|0;k=c[(B&p)>>2]|0;if(k&1024)break;U=c[((c[(ia&p)>>2]|0)+((d[(l&n)+16>>0]|0)*72|0)&p)+48>>2]|0;if(!ja){k=~V;v=~t;y=0;do{A=iw(1,0,y|0)|0;z=G;c:do if((A&g|0)==0&(z&h|0)==0){u=c[((c[(ea&p)>>2]|0)+(y*20|0)&p)>>2]|0;x=c[(u&p)+4>>2]|0;if(x&4096)do{if(!(x&262144))u=u+12|0;else u=c[((c[(u&p)+20>>2]|0)&p)+4>>2]|0;u=c[(u&p)>>2]|0;x=c[(u&p)+4>>2]|0}while((x&4096|0)!=0);if(((a[(u&n)>>0]|0)==-102?(c[(u&p)+28>>2]|0)==(U|0):0)?(ka=u+32|0,la=Fu(ba,U,b[(ka&o)>>1]|0,k,v,130,0)|0,(la|0)!=0):0){do if(b[(la&o)+18>>1]&2){if((b[(ka&o)>>1]|0)<=-1)break;u=cu(c[(f&p)>>2]|0,c[((c[(ea&p)>>2]|0)+(y*20|0)&p)>>2]|0)|0;if(!u)u=c[(da&p)>>2]|0;x=c[(u&p)>>2]|0;w=cu(c[(f&p)>>2]|0,c[(la&p)>>2]|0)|0;if(!w)w=c[(da&p)>>2]|0;if(dd(x,c[(w&p)>>2]|0)|0)break c}while(0);g=A|g;h=z|h}}while(0);y=y+1|0}while((y|0)<(r|0));k=c[(B&p)>>2]|0}do if(!(k&4096)){if(!(k&256)){u=c[(l&p)+28>>2]|0;if(!u){r=0;break a}if(a[(u&n)+51>>0]&4){r=0;break a}k=b[(u&o)+48>>1]|0;s=(a[(u&n)+50>>0]|0)!=0&1;if(!(k<<16>>16)){pa=71;break}else{S=k&65535;T=b[(u&o)+46>>1]|0}}else{S=1;T=0;u=0}J=l+24|0;K=l+42|0;L=l+48|0;M=(u|0)==0;N=u+32|0;O=iw(1,0,ca|0)|0;P=G;Q=u+4|0;R=u+28|0;I=u+12|0;k=0;u=0;A=0;H=0;d:while(1){z=(u|0)<(e[(J&o)>>1]|0);if((z?(b[(K&o)>>1]|0)==0:0)?(ma=e[((c[((c[(L&p)>>2]|0)+(u<<2)&p)>>2]|0)&o)+18>>1]|0,(ma&130|0)!=0):0){s=(ma&128|0)==0?s:0;z=H}else{if(!M){x=b[((c[(Q&p)>>2]|0)+(u<<1)&o)>>1]|0;w=a[((c[(R&p)>>2]|0)+u&n)>>0]|0;v=c[(I&p)>>2]|0;x=x<<16>>16==(b[(v&o)+36>>1]|0)?-1:x<<16>>16;y=(x|0)>-1;if(s<<24>>24!=0&y)if(z){y=1;F=x}else{y=1;F=x;s=(a[((c[(v&p)+4>>2]|0)+(x*24|0)&n)+20>>0]|0)==0?0:s}else F=x}else{y=0;F=-1;w=0}if(ja){pa=68;break}else{z=1;E=0}e:while(1){C=iw(1,0,E|0)|0;D=G;do if((C&g|0)==0&(D&h|0)==0){v=c[((c[(ea&p)>>2]|0)+(E*20|0)&p)>>2]|0;x=c[(v&p)+4>>2]|0;if(!(x&4096))B=v;else{B=v;do{if(!(x&262144))x=B+12|0;else x=c[((c[(B&p)+20>>2]|0)&p)+4>>2]|0;B=c[(x&p)>>2]|0;x=c[(B&p)+4>>2]|0}while((x&4096|0)!=0)}z=ga?0:z;if((a[(B&n)>>0]|0)!=-102)break;if((c[(B&p)+28>>2]|0)!=(U|0))break;if((b[(B&o)+32>>1]|0)!=(F|0))break;if(!y){B=C;y=D;z=E;break e}x=cu(c[(f&p)>>2]|0,v)|0;if(!x)x=c[(da&p)>>2]|0;if(!(dd(c[(x&p)>>2]|0,c[((c[(N&p)>>2]|0)+(u<<2)&p)>>2]|0)|0)){B=C;y=D;z=E;break e}}while(0);E=E+1|0;if(!(z<<24>>24!=0&(E|0)<(r|0))){pa=68;break d}}do if(W){if(H<<24>>24)if((w^A)<<24>>24==(a[((c[(ea&p)>>2]|0)+(z*20|0)&n)+12>>0]|0)){z=H;break}else{pa=68;break d}v=a[((c[(ea&p)>>2]|0)+(z*20|0)&n)+12>>0]|0;A=v^w;if(w<<24>>24==v<<24>>24){z=1;break}v=q;w=c[(v&p)+4>>2]|P;z=q;c[(z&p)>>2]=c[(v&p)>>2]|O;c[(z&p)+4>>2]=w;z=1}else z=H;while(0);g=B|g;h=y|h;k=(F|0)<0?1:k}u=u+1|0;if((u|0)>=(S|0))break;else H=z}if((pa|0)==68){pa=0;s=(u|0)==0|(u|0)<(T&65535|0)?0:s}if(!(k<<24>>24))pa=71;else s=1}else pa=71;while(0);if((pa|0)==71){pa=0;if(!(s<<24>>24)){s=0;break b}}U=l+8|0;_=c[(U&p)>>2]|_;$=c[(U&p)+4>>2]|$;if(!ja){z=~_;A=~$;y=0;do{u=iw(1,0,y|0)|0;x=G;do if((u&g|0)==0&(x&h|0)==0){k=c[((c[(ea&p)>>2]|0)+(y*20|0)&p)>>2]|0;v=Av(X,k)|0;w=G;if((v|0)==0&(w|0)==0?(c[(oa&p)>>2]=0,c[(oa&p)+4>>2]=0,c[(oa&p)+8>>2]=0,c[(oa&p)+12>>2]=0,c[(oa&p)+16>>2]=0,c[(oa&p)+20>>2]=0,a[(Y&n)>>0]=1,c[(oa&p)>>2]=78,c[(Z&p)>>2]=79,c[(aa&p)>>2]=0,rs(oa,k)|0,(a[(Y&n)>>0]|0)==0):0)break;U=(v&z|0)==0&(w&A|0)==0;g=(U?u:0)|g;h=(U?x:0)|h}while(0);y=y+1|0}while((y|0)<(r|0))}if(h>>>0>ra>>>0|(h|0)==(ra|0)&g>>>0>=qa>>>0|s<<24>>24==0|(ca|0)>=(na|0))break b;else{k=V;ca=ca+1|0}}ga=(a[(l&n)+29>>0]|0)==0;g=ga?g:qa;h=ga?h:ra}while(0);if((g|0)==(qa|0)&(h|0)==(ra|0)){r=sa&255;break}if(!(s<<24>>24)){do{r=r+-1|0;if((r|0)<=0){r=0;break a}ea=iw(1,0,r|0)|0;ea=jw(ea|0,G|0,-1,-1)|0;ga=G}while(!((ea&g|0)==(ea|0)&(ga&h|0)==(ga|0)));r=r&255}else r=-1}else r=0}while(0);i=ta;return r|0}function Nv(b,c,d,e){b=b|0;c=c|0;d=d|0;e=e|0;if(c)Sk(b,33920,5);if(!d)c=0;else{c=d;while(1)if(!(a[(c&n)>>0]|0))break;else c=c+1|0;c=c-d&1073741823}Sk(b,d,c);Sk(b,e,1);Sk(b,13552,1);return}function Ov(a){a=a|0;var d=0,e=0,f=0,g=0,h=0,i=0;i=c[(c[(c[(a&p)>>2]&p)>>2]&p)>>2]|0;d=c[(a&p)+12>>2]|0;g=a+20|0;if((d|0)>0){h=c[(g&p)>>2]|0;while(1){d=d+-1|0;f=h+20|0;e=b[(f&o)>>1]|0;if(e&1){Gk(i,c[(h&p)>>2]|0);e=b[(f&o)>>1]|0}e=e&65535;if(!(e&16)){if(e&32){e=c[(h&p)+12>>2]|0;Ov(e);mg(i,e)}}else{e=c[(h&p)+12>>2]|0;Ov(e);mg(i,e)}if((d|0)<=0)break;else h=h+48|0}}d=c[(g&p)>>2]|0;if((d|0)!=(a+24|0))mg(i,d);return}function Pv(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,o=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0;u=i;i=i+32|0;if((i|0)>=(j|0))fa();t=u;h=c[(b&p)+8>>2]|0;k=c[(b&p)>>2]|0;if(e){l=(f|0)==10;m=b+437|0;o=t+4|0;q=t+1|0;r=t+8|0;s=t+12|0;g=f&255;do{if(l)f=a[(e&n)+1>>0]|0;else f=g;a[(m&n)>>0]=f;f=d[(e&n)>>0]|0;if((f|0)==108){w=Vv(b,e)|0;v=gr(k,c[(e&p)+8>>2]|0,0)|0;f=Nr(k,c[(e&p)+28>>2]|0)|0;tr(b,w,v,f,d[(m&n)>>0]|0)}else if((f|0)==109){f=Vv(b,e)|0;rr(b,f,Mr(k,c[(e&p)+20>>2]|0,0,0)|0)}else if((f|0)==110){w=Vv(b,e)|0;v=Pr(k,c[(e&p)+24>>2]|0,0)|0;f=Mr(k,c[(e&p)+20>>2]|0,0,0)|0;sr(b,w,v,f,d[(m&n)>>0]|0)}else{f=gr(k,c[(e&p)+8>>2]|0,0)|0;a[(t&n)>>0]=4;c[(o&p)>>2]=0;a[(q&n)>>0]=0;c[(r&p)>>2]=0;c[(s&p)>>2]=0;ir(b,f,t)|0;Mk(k,f,1)}if((a[(e&n)>>0]|0)!=119)wh(h,98,0,0,0)|0;e=c[(e&p)+32>>2]|0}while((e|0)!=0)}i=u;return}function Qv(d,e,f,g){d=d|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0;m=i;i=i+16|0;if((i|0)>=(j|0))fa();h=m;l=c[(d&p)>>2]|0;c[(h&p)>>2]=0;c[(h&p)+4>>2]=0;h=nr(l,159,h,0)|0;do if(!h)h=0;else{k=g<<16>>16;if(g<<16>>16>-1?(b[(e&o)+36>>1]|0)!=g<<16>>16:0){g=c[(e&p)+4>>2]|0;c[(h&p)+28>>2]=f+1+k;a[(h&n)+1>>0]=a[(g+(k*24|0)&n)+21>>0]|0;k=c[(g+(k*24|0)&p)+16>>2]|0;if(!k)k=c[(c[(l&p)+8>>2]&p)>>2]|0;h=xv(d,h,k)|0;break}c[(h&p)+28>>2]=f;a[(h&n)+1>>0]=68}while(0);i=m;return h|0}function Rv(d,e,f,g){d=d|0;e=e|0;f=f|0;g=g|0;var h=0,i=0,j=0;d=mh(d,48,0)|0;if(d){h=d+0|0;i=h+44|0;do{a[(h&n)>>0]=0;h=h+1|0}while((h|0)<(i|0));a[(d&n)>>0]=-102;b[(d&o)+34>>1]=-1;c[(d&p)+24>>2]=1;h=c[(e+(f*72|0)&p)+24>>2]|0;c[(d&p)+44>>2]=h;c[(d&p)+28>>2]=c[(e+(f*72|0)&p)+48>>2];if((b[(h&o)+36>>1]|0)==(g|0))b[(d&o)+32>>1]=-1;else{b[(d&o)+32>>1]=g;j=(g|0)>63;g=iw(1,0,g|0)|0;h=e+(f*72|0)+64|0;f=h;i=c[(f&p)+4>>2]|(j?-2147483648:G);c[(h&p)>>2]=c[(f&p)>>2]|(j?0:g);c[(h&p)+4>>2]=i}h=d+4|0;c[(h&p)>>2]=c[(h&p)>>2]|4}return d|0}function Sv(b,e){b=b|0;e=e|0;if((a[(e&n)>>0]|0)==-101){e=e+38|0;a[(e&n)>>0]=(d[(e&n)>>0]|0)+(c[(b&p)+24>>2]|0)}return 0}function Tv(a,d){a=a|0;d=d|0;var f=0,g=0,h=0,i=0,j=0,k=0;f=b[(a&o)+40>>1]|0;i=f&65535;h=b[(a&o)+42>>1]|0;k=e[(d&o)+40>>1]|0;g=b[(d&o)+42>>1]|0;a:do if(!((g&65535)>(h&65535)?1:(i-(h&65535)|0)>=(k-(g&65535)|0))){g=b[(a&o)+20>>1]|0;h=b[(d&o)+20>>1]|0;if(g<<16>>16>=h<<16>>16){if(g<<16>>16>h<<16>>16){f=0;break}if((b[(a&o)+22>>1]|0)>(b[(d&o)+22>>1]|0)){f=0;break}}if(!(f<<16>>16))f=1;else{j=c[(a&p)+48>>2]|0;d=d+48|0;a=i;while(1){a=a+-1|0;h=c[(j+(a<<2)&p)>>2]|0;if(h){f=k;while(1){g=f+-1|0;if((f|0)<=0){f=0;break a}if((c[((c[(d&p)>>2]|0)+(g<<2)&p)>>2]|0)==(h|0))break;else f=g}if((f|0)<1){f=0;break a}}if((a|0)<=0){f=1;break}}}}else f=0;while(0);return f|0}function Uv(d,e){d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0,v=0;f=c[(d&p)>>2]|0;a:do if(f){k=a[(e&n)+16>>0]|0;l=e+17|0;m=e+18|0;q=e+20|0;r=e+22|0;s=e+42|0;t=e+36|0;do{if((a[(f&n)+16>>0]|0)==k<<24>>24?(a[(f&n)+17>>0]|0)==(a[(l&n)>>0]|0):0){if((((c[(f&p)+36>>2]&16384|0)!=0?(b[(s&o)>>1]|0)==0:0)?(c[(t&p)>>2]&513|0)==513:0)?(i=f,j=e,h=c[(j&p)>>2]|0,j=c[(j&p)+4>>2]|0,(h&c[(i&p)>>2]|0)==(h|0)?(j&c[(i&p)+4>>2]|0)==(j|0):0):0)break a;u=f;v=c[(u&p)>>2]|0;u=c[(u&p)+4>>2]|0;h=e;g=c[(h&p)>>2]|0;h=c[(h&p)+4>>2]|0;i=g&v;j=h&u;if((((i|0)==(v|0)&(j|0)==(u|0)?(b[(f&o)+18>>1]|0)<=(b[(m&o)>>1]|0):0)?(b[(f&o)+20>>1]|0)<=(b[(q&o)>>1]|0):0)?(b[(f&o)+22>>1]|0)<=(b[(r&o)>>1]|0):0){d=0;break a}if(((i|0)==(g|0)&(j|0)==(h|0)?(b[(f&o)+20>>1]|0)>=(b[(q&o)>>1]|0):0)?(b[(f&o)+22>>1]|0)>=(b[(r&o)>>1]|0):0)break a}d=f+52|0;f=c[(d&p)>>2]|0}while((f|0)!=0)}while(0);return d|0}function Vv(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;h=pr(c[(a&p)>>2]|0,0,b+12|0,0)|0;do if(h){g=c[(a&p)>>2]|0;f=c[((c[(b&p)+4>>2]|0)&p)+20>>2]|0;a:do if(f){e=c[(g&p)+20>>2]|0;if((e|0)>0){b=c[(g&p)+16>>2]|0;d=0;while(1){a=d+1|0;if((c[(b+(d<<4)&p)+12>>2]|0)==(f|0)){a=d;d=7;break a}if((a|0)<(e|0))d=a;else{d=7;break}}}else a=0}else{a=-1e6;d=7}while(0);if((d|0)==7)if(!((a|0)==0|(a|0)>1))break;a=kh(g,c[((c[(g&p)+16>>2]|0)+(a<<4)&p)>>2]|0)|0;c[(h+(((c[(h&p)>>2]|0)+-1|0)*72|0)&p)+12>>2]=a}while(0);return h|0}function Wv(a){a=a|0;var b=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,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;do if(a>>>0<245){if(a>>>0<11)q=16;else q=a+11&-8;a=q>>>3;l=c[12266]|0;i=l>>>a;if(i&3){e=(i&1^1)+a|0;f=e<<1;b=49104+(f<<2)|0;f=49104+(f+2<<2)|0;g=c[(f&p)>>2]|0;h=g+8|0;i=c[(h&p)>>2]|0;do if((b|0)!=(i|0)){if(i>>>0<(c[12270]|0)>>>0)Ob();d=i+12|0;if((c[(d&p)>>2]|0)==(g|0)){c[(d&p)>>2]=b;c[(f&p)>>2]=i;break}else Ob()}else c[12266]=l&~(1<>2]=x|3;x=g+(x|4)|0;c[(x&p)>>2]=c[(x&p)>>2]|1;x=h;return x|0}k=c[12268]|0;if(q>>>0>k>>>0){if(i){f=2<>>12&16;f=f>>>a;e=f>>>5&8;f=f>>>e;d=f>>>2&4;f=f>>>d;g=f>>>1&2;f=f>>>g;h=f>>>1&1;h=(e|a|d|g|h)+(f>>>h)|0;f=h<<1;g=49104+(f<<2)|0;f=49104+(f+2<<2)|0;d=c[(f&p)>>2]|0;a=d+8|0;e=c[(a&p)>>2]|0;do if((g|0)!=(e|0)){if(e>>>0<(c[12270]|0)>>>0)Ob();i=e+12|0;if((c[(i&p)>>2]|0)==(d|0)){c[(i&p)>>2]=g;c[(f&p)>>2]=e;m=c[12268]|0;break}else Ob()}else{c[12266]=l&~(1<>2]=q|3;j=d+q|0;c[(d+(q|4)&p)>>2]=b|1;c[(d+x&p)>>2]=b;if(m){e=c[12271]|0;g=m>>>3;i=g<<1;f=49104+(i<<2)|0;h=c[12266]|0;g=1<>2]|0;if(i>>>0<(c[12270]|0)>>>0)Ob();else{n=h;o=i}}else{c[12266]=h|g;n=49104+(i+2<<2)|0;o=f}c[(n&p)>>2]=e;c[(o&p)+12>>2]=e;c[(e&p)+8>>2]=o;c[(e&p)+12>>2]=f}c[12268]=b;c[12271]=j;x=a;return x|0}a=c[12267]|0;if(a){h=(a&0-a)+-1|0;w=h>>>12&16;h=h>>>w;v=h>>>5&8;h=h>>>v;x=h>>>2&4;h=h>>>x;i=h>>>1&2;h=h>>>i;g=h>>>1&1;g=c[((v|w|x|i|g)+(h>>>g)<<2&p)+49368>>2]|0;h=(c[(g&p)+4>>2]&-8)-q|0;i=g;while(1){d=c[(i&p)+16>>2]|0;if(!d){d=c[(i&p)+20>>2]|0;if(!d){l=h;k=g;break}}i=(c[(d&p)+4>>2]&-8)-q|0;x=i>>>0>>0;h=x?i:h;i=d;g=x?d:g}a=c[12270]|0;if(k>>>0>>0)Ob();b=k+q|0;if(k>>>0>=b>>>0)Ob();j=c[(k&p)+24>>2]|0;g=c[(k&p)+12>>2]|0;do if((g|0)==(k|0)){h=k+20|0;i=c[(h&p)>>2]|0;if(!i){h=k+16|0;i=c[(h&p)>>2]|0;if(!i){e=0;break}}while(1){g=i+20|0;f=c[(g&p)>>2]|0;if(f){i=f;h=g;continue}g=i+16|0;f=c[(g&p)>>2]|0;if(!f)break;else{i=f;h=g}}if(h>>>0>>0)Ob();else{c[(h&p)>>2]=0;e=i;break}}else{f=c[(k&p)+8>>2]|0;if(f>>>0>>0)Ob();i=f+12|0;if((c[(i&p)>>2]|0)!=(k|0))Ob();h=g+8|0;if((c[(h&p)>>2]|0)==(k|0)){c[(i&p)>>2]=g;c[(h&p)>>2]=f;e=g;break}else Ob()}while(0);do if(j){i=c[(k&p)+28>>2]|0;h=49368+(i<<2)|0;if((k|0)==(c[(h&p)>>2]|0)){c[(h&p)>>2]=e;if(!e){c[12267]=c[12267]&~(1<>>0<(c[12270]|0)>>>0)Ob();i=j+16|0;if((c[(i&p)>>2]|0)==(k|0))c[(i&p)>>2]=e;else c[(j&p)+20>>2]=e;if(!e)break}h=c[12270]|0;if(e>>>0>>0)Ob();c[(e&p)+24>>2]=j;i=c[(k&p)+16>>2]|0;do if(i)if(i>>>0>>0)Ob();else{c[(e&p)+16>>2]=i;c[(i&p)+24>>2]=e;break}while(0);i=c[(k&p)+20>>2]|0;if(i)if(i>>>0<(c[12270]|0)>>>0)Ob();else{c[(e&p)+20>>2]=i;c[(i&p)+24>>2]=e;break}}while(0);if(l>>>0<16){x=l+q|0;c[(k&p)+4>>2]=x|3;x=k+(x+4)|0;c[(x&p)>>2]=c[(x&p)>>2]|1}else{c[(k&p)+4>>2]=q|3;c[(k+(q|4)&p)>>2]=l|1;c[(k+l+q&p)>>2]=l;d=c[12268]|0;if(d){e=c[12271]|0;g=d>>>3;i=g<<1;f=49104+(i<<2)|0;h=c[12266]|0;g=1<>2]|0;if(h>>>0<(c[12270]|0)>>>0)Ob();else{r=i;s=h}}else{c[12266]=h|g;r=49104+(i+2<<2)|0;s=f}c[(r&p)>>2]=e;c[(s&p)+12>>2]=e;c[(e&p)+8>>2]=s;c[(e&p)+12>>2]=f}c[12268]=l;c[12271]=b}x=k+8|0;return x|0}else s=q}else s=q}else if(a>>>0<=4294967231){a=a+11|0;s=a&-8;k=c[12267]|0;if(k){h=0-s|0;a=a>>>8;if(a)if(s>>>0>16777215)d=31;else{q=(a+1048320|0)>>>16&8;r=a<>>16&4;r=r<>>16&2;d=14-(o|q|d)+(r<>>15)|0;d=s>>>(d+7|0)&1|d<<1}else d=0;f=c[(d<<2&p)+49368>>2]|0;a:do if(!f){a=0;i=0}else{if((d|0)==31)i=0;else i=25-(d>>>1)|0;l=h;a=0;b=s<>2]&-8;h=e-s|0;if(h>>>0>>0)if((e|0)==(s|0)){a=f;i=f;break a}else i=f;else h=l;r=c[(f&p)+20>>2]|0;f=c[(f+(b>>>31<<2)&p)+16>>2]|0;a=(r|0)==0|(r|0)==(f|0)?a:r;if(!f)break;else{l=h;b=b<<1}}}while(0);if((a|0)==0&(i|0)==0){a=2<>>12&16;r=r>>>n;m=r>>>5&8;r=r>>>m;o=r>>>2&4;r=r>>>o;q=r>>>1&2;r=r>>>q;a=r>>>1&1;a=c[((m|n|o|q|a)+(r>>>a)<<2&p)+49368>>2]|0}if(!a){o=h;q=i}else while(1){r=(c[(a&p)+4>>2]&-8)-s|0;f=r>>>0>>0;h=f?r:h;i=f?a:i;f=c[(a&p)+16>>2]|0;if(f){a=f;continue}a=c[(a&p)+20>>2]|0;if(!a){o=h;q=i;break}}if((q|0)!=0?o>>>0<((c[12268]|0)-s|0)>>>0:0){a=c[12270]|0;if(q>>>0>>0)Ob();m=q+s|0;if(q>>>0>=m>>>0)Ob();j=c[(q&p)+24>>2]|0;g=c[(q&p)+12>>2]|0;do if((g|0)==(q|0)){h=q+20|0;i=c[(h&p)>>2]|0;if(!i){h=q+16|0;i=c[(h&p)>>2]|0;if(!i){u=0;break}}while(1){g=i+20|0;f=c[(g&p)>>2]|0;if(f){i=f;h=g;continue}g=i+16|0;f=c[(g&p)>>2]|0;if(!f)break;else{i=f;h=g}}if(h>>>0>>0)Ob();else{c[(h&p)>>2]=0;u=i;break}}else{f=c[(q&p)+8>>2]|0;if(f>>>0>>0)Ob();i=f+12|0;if((c[(i&p)>>2]|0)!=(q|0))Ob();h=g+8|0;if((c[(h&p)>>2]|0)==(q|0)){c[(i&p)>>2]=g;c[(h&p)>>2]=f;u=g;break}else Ob()}while(0);do if(j){i=c[(q&p)+28>>2]|0;h=49368+(i<<2)|0;if((q|0)==(c[(h&p)>>2]|0)){c[(h&p)>>2]=u;if(!u){c[12267]=c[12267]&~(1<>>0<(c[12270]|0)>>>0)Ob();i=j+16|0;if((c[(i&p)>>2]|0)==(q|0))c[(i&p)>>2]=u;else c[(j&p)+20>>2]=u;if(!u)break}h=c[12270]|0;if(u>>>0>>0)Ob();c[(u&p)+24>>2]=j;i=c[(q&p)+16>>2]|0;do if(i)if(i>>>0>>0)Ob();else{c[(u&p)+16>>2]=i;c[(i&p)+24>>2]=u;break}while(0);i=c[(q&p)+20>>2]|0;if(i)if(i>>>0<(c[12270]|0)>>>0)Ob();else{c[(u&p)+20>>2]=i;c[(i&p)+24>>2]=u;break}}while(0);b:do if(o>>>0>=16){c[(q&p)+4>>2]=s|3;c[(q+(s|4)&p)>>2]=o|1;c[(q+o+s&p)>>2]=o;i=o>>>3;if(o>>>0<256){h=i<<1;f=49104+(h<<2)|0;g=c[12266]|0;i=1<>2]|0;if(h>>>0>=(c[12270]|0)>>>0){v=i;w=h;break}Ob()}while(0);c[(v&p)>>2]=m;c[(w&p)+12>>2]=m;c[(q+s&p)+8>>2]=w;c[(q+s&p)+12>>2]=f;break}d=o>>>8;if(d)if(o>>>0>16777215)f=31;else{w=(d+1048320|0)>>>16&8;x=d<>>16&4;x=x<>>16&2;f=14-(v|w|f)+(x<>>15)|0;f=o>>>(f+7|0)&1|f<<1}else f=0;i=49368+(f<<2)|0;c[(q+s&p)+28>>2]=f;c[(q+s&p)+20>>2]=0;c[(q+s&p)+16>>2]=0;h=c[12267]|0;g=1<>2]=m;c[(q+s&p)+24>>2]=i;c[(q+s&p)+12>>2]=m;c[(q+s&p)+8>>2]=m;break}d=c[(i&p)>>2]|0;if((f|0)==31)b=0;else b=25-(f>>>1)|0;c:do if((c[(d&p)+4>>2]&-8|0)!=(o|0)){h=o<>>31<<2)+16|0;i=c[(b&p)>>2]|0;if(!i)break;if((c[(i&p)+4>>2]&-8|0)==(o|0)){C=i;break c}else{h=h<<1;d=i}}if(b>>>0<(c[12270]|0)>>>0)Ob();else{c[(b&p)>>2]=m;c[(q+s&p)+24>>2]=d;c[(q+s&p)+12>>2]=m;c[(q+s&p)+8>>2]=m;break b}}else C=d;while(0);d=C+8|0;b=c[(d&p)>>2]|0;x=c[12270]|0;if(C>>>0>=x>>>0&b>>>0>=x>>>0){c[(b&p)+12>>2]=m;c[(d&p)>>2]=m;c[(q+s&p)+8>>2]=b;c[(q+s&p)+12>>2]=C;c[(q+s&p)+24>>2]=0;break}else Ob()}else{x=o+s|0;c[(q&p)+4>>2]=x|3;x=q+(x+4)|0;c[(x&p)>>2]=c[(x&p)>>2]|1}while(0);x=q+8|0;return x|0}}}else s=-1;while(0);a=c[12268]|0;if(a>>>0>=s>>>0){b=a-s|0;d=c[12271]|0;if(b>>>0>15){c[12271]=d+s;c[12268]=b;c[(d+s&p)+4>>2]=b|1;c[(d+a&p)>>2]=b;c[(d&p)+4>>2]=s|3}else{c[12268]=0;c[12271]=0;c[(d&p)+4>>2]=a|3;x=d+(a+4)|0;c[(x&p)>>2]=c[(x&p)>>2]|1}x=d+8|0;return x|0}a=c[12269]|0;if(a>>>0>s>>>0){w=a-s|0;c[12269]=w;x=c[12272]|0;c[12272]=x+s;c[(x+s&p)+4>>2]=w|1;c[(x&p)+4>>2]=s|3;x=x+8|0;return x|0}do if(!(c[12384]|0)){a=wb(30)|0;if(!(a+-1&a)){c[12386]=a;c[12385]=a;c[12387]=-1;c[12388]=-1;c[12389]=0;c[12377]=0;c[12384]=(Pb(0)|0)&-16^1431655768;break}else Ob()}while(0);l=s+48|0;b=c[12386]|0;k=s+47|0;d=b+k|0;b=0-b|0;m=d&b;if(m>>>0<=s>>>0){x=0;return x|0}a=c[12376]|0;if((a|0)!=0?(v=c[12374]|0,w=v+m|0,w>>>0<=v>>>0|w>>>0>a>>>0):0){x=0;return x|0}d:do if(!(c[12377]&4)){a=c[12272]|0;e:do if(a){f=49512|0;while(1){i=c[(f&p)>>2]|0;if(i>>>0<=a>>>0?(t=f+4|0,(i+(c[(t&p)>>2]|0)|0)>>>0>a>>>0):0){e=f;h=t;a=f;break}f=c[(f&p)+8>>2]|0;if(!f){H=181;break e}}if(a){a=d-(c[12269]|0)&b;if(a>>>0<2147483647){i=sb(a|0)|0;if((i|0)==((c[(e&p)>>2]|0)+(c[(h&p)>>2]|0)|0))H=190;else H=191}else a=0}else H=181}else H=181;while(0);do if((H|0)==181){i=sb(0)|0;if((i|0)!=(-1|0)){a=i;h=c[12385]|0;f=h+-1|0;if(!(f&a))a=m;else a=m-a+(f+a&0-h)|0;h=c[12374]|0;f=h+a|0;if(a>>>0>s>>>0&a>>>0<2147483647){w=c[12376]|0;if((w|0)!=0?f>>>0<=h>>>0|f>>>0>w>>>0:0){a=0;break}h=sb(a|0)|0;if((h|0)==(i|0))H=190;else{i=h;H=191}}else a=0}else a=0}while(0);f:do if((H|0)==190){if((i|0)!=(-1|0)){y=i;H=201;break d}}else if((H|0)==191){h=0-a|0;do if((i|0)!=(-1|0)&a>>>0<2147483647&l>>>0>a>>>0?(x=c[12386]|0,x=k-a+x&0-x,x>>>0<2147483647):0)if((sb(x|0)|0)==(-1|0)){sb(h|0)|0;a=0;break f}else{a=x+a|0;break}while(0);if((i|0)==(-1|0))a=0;else{y=i;H=201;break d}}while(0);c[12377]=c[12377]|4;H=198}else{a=0;H=198}while(0);if((((H|0)==198?m>>>0<2147483647:0)?(y=sb(m|0)|0,z=sb(0)|0,(y|0)!=(-1|0)&(z|0)!=(-1|0)&y>>>0>>0):0)?(A=z-y|0,B=A>>>0>(s+40|0)>>>0,B):0){a=B?A:a;H=201}if((H|0)==201){i=(c[12374]|0)+a|0;c[12374]=i;if(i>>>0>(c[12375]|0)>>>0)c[12375]=i;l=c[12272]|0;g:do if(l){e=49512|0;do{i=c[(e&p)>>2]|0;h=e+4|0;f=c[(h&p)>>2]|0;if((y|0)==(i+f|0)){D=i;E=h;F=f;G=e;H=213;break}e=c[(e&p)+8>>2]|0}while((e|0)!=0);if(((H|0)==213?(c[(G&p)+12>>2]&8|0)==0:0)?l>>>0>=D>>>0&l>>>0>>0:0){c[(E&p)>>2]=F+a;b=(c[12269]|0)+a|0;d=l+8|0;if(!(d&7))d=0;else d=0-d&7;x=b-d|0;c[12272]=l+d;c[12269]=x;c[(l+d&p)+4>>2]=x|1;c[(l+b&p)+4>>2]=40;c[12273]=c[12388];break}i=c[12270]|0;if(y>>>0>>0){c[12270]=y;k=y}else k=i;i=y+a|0;h=49512|0;do{if((c[(h&p)>>2]|0)==(i|0)){I=h;J=h;H=223;break}h=c[(h&p)+8>>2]|0}while((h|0)!=0);if((H|0)==223?(c[(J&p)+12>>2]&8|0)==0:0){c[(I&p)>>2]=y;i=J+4|0;c[(i&p)>>2]=(c[(i&p)>>2]|0)+a;i=y+8|0;if(!(i&7))q=0;else q=0-i&7;i=y+(a+8)|0;if(!(i&7))d=0;else d=0-i&7;i=y+(d+a)|0;o=q+s|0;n=y+o|0;m=i-(y+q)-s|0;c[(y+q&p)+4>>2]=s|3;h:do if((i|0)!=(l|0)){if((i|0)==(c[12271]|0)){x=(c[12268]|0)+m|0;c[12268]=x;c[12271]=n;c[(y+o&p)+4>>2]=x|1;c[(y+x+o&p)>>2]=x;break}l=a+4|0;j=c[(y+l+d&p)>>2]|0;if((j&3|0)==1){b=j&-8;f=j>>>3;i:do if(j>>>0>=256){e=c[(y+(d|24)+a&p)>>2]|0;g=c[(y+a+d&p)+12>>2]|0;do if((g|0)==(i|0)){g=d|16;h=y+(l+g)|0;j=c[(h&p)>>2]|0;if(!j){h=y+(g+a)|0;j=c[(h&p)>>2]|0;if(!j){O=0;break}}while(1){g=j+20|0;f=c[(g&p)>>2]|0;if(f){j=f;h=g;continue}g=j+16|0;f=c[(g&p)>>2]|0;if(!f)break;else{j=f;h=g}}if(h>>>0>>0)Ob();else{c[(h&p)>>2]=0;O=j;break}}else{f=c[(y+(d|8)+a&p)>>2]|0;if(f>>>0>>0)Ob();j=f+12|0;if((c[(j&p)>>2]|0)!=(i|0))Ob();h=g+8|0;if((c[(h&p)>>2]|0)==(i|0)){c[(j&p)>>2]=g;c[(h&p)>>2]=f;O=g;break}else Ob()}while(0);if(!e)break;j=c[(y+a+d&p)+28>>2]|0;h=49368+(j<<2)|0;do if((i|0)!=(c[(h&p)>>2]|0)){if(e>>>0<(c[12270]|0)>>>0)Ob();j=e+16|0;if((c[(j&p)>>2]|0)==(i|0))c[(j&p)>>2]=O;else c[(e&p)+20>>2]=O;if(!O)break i}else{c[(h&p)>>2]=O;if(O)break;c[12267]=c[12267]&~(1<
>>0)k=m+(k-v)|0;x=e[(i+(r<<1)&o)>>1]|0;j=j+(0-x)|0;kw(j|0,k|0,x|0)|0;k=j-v|0;a[(l&n)>>0]=k>>>8;a[(l&n)+1>>0]=k;r=r+1|0;if((r|0)==(g|0))break;else l=l+2|0}}else j=q;i=f+18|0;b[(i&o)>>1]=g;a[(f&n)+1>>0]=0;a[(w+t&n)+1>>0]=0;a[(w+t&n)+2>>0]=0;a[(w+t&n)+3>>0]=(e[(i&o)>>1]|0)>>>8;a[(w+t&n)+4>>0]=b[(i&o)>>1];i=j-v|0;a[(s&n)>>0]=i>>>8;a[(u&n)>>0]=i;a[(w+t&n)+7>>0]=0;return}function Iq(a,b,f,g){a=a|0;b=b|0;f=f|0;g=g|0;var h=0,i=0,j=0,k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0;u=c[(a&p)+56>>2]|0;s=u+(c[((c[(a&p)+52>>2]|0)&p)+36>>2]|0)|0;q=u+((d[(a&n)+6>>0]|0)+8+(d[(a&n)+7>>0]|0))|0;a:do if((b|0)>0){r=u;t=0;h=0;l=0;m=0;while(1){j=c[(f+(t<<2)&p)>>2]|0;if(j>>>0>=q>>>0&j>>>0>>0){i=e[(g+(t<<1)&o)>>1]|0;k=j+i|0;if((l|0)!=(k|0)){if(l)Cq(a,l-r&65535,m&65535)|0;if(k>>>0>s>>>0){h=0;break a}}else i=i+m|0;h=h+1|0}else{j=l;i=m}t=t+1|0;if((t|0)>=(b|0))break;else{l=j;m=i}}if(j)Cq(a,j-u&65535,i&65535)|0}else h=0;while(0);return h|0}function Jq(b,d,f,g,h,k,l){b=b|0;d=d|0;f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;var m=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0;y=i;i=i+16|0;if((i|0)>=(j|0))fa();w=y;q=c[(b&p)+56>>2]|0;m=c[(f&p)>>2]|0;if(!(a[(q&n)+1>>0]|0))v=(a[(q&n)+2>>0]|0)!=0;else v=1;a:do if((h|0)>0){t=0;while(1){s=e[(l+(t<<1)&o)>>1]|0;if(v?(u=Dq(b,s,w,0)|0,(u|0)!=0):0)r=u;else{r=m+(0-s)|0;if(r>>>0>>0){m=1;break a}else m=r}kw(r|0,c[(k+(t<<2)&p)>>2]|0,s|0)|0;s=r-q|0;a[(g&n)>>0]=s>>>8;a[(g&n)+1>>0]=s;t=t+1|0;if((t|0)>=(h|0)){x=9;break}else g=g+2|0}}else x=9;while(0);if((x|0)==9){c[(f&p)>>2]=m;m=0}i=y;return m|0}function Kq(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,q=0,r=0;o=i;i=i+16|0;if((i|0)>=(j|0))fa();n=o;e=c[(a&p)+44>>2]|0;h=a;f=c[(h&p)>>2]|0;h=c[(h&p)+4>>2]|0;a:do if(!e){m=a+40|0;e=c[(m&p)>>2]|0;g=((e|0)<0)<<31>>31;l=rw(f|0,h|0,e|0,g|0)|0;if(!l){k=a+8|0;k=dw(c[(k&p)>>2]|0,c[(k&p)+4>>2]|0,f|0,h|0)|0;q=G;r=c[(a&p)+24>>2]|0;e=tc[c[((c[(r&p)>>2]|0)&p)+8>>2]&31](r,c[(a&p)+36>>2]|0,(q|0)>(g|0)|(q|0)==(g|0)&k>>>0>e>>>0?e:k,f,h)|0;if(e)break;e=c[(m&p)>>2]|0}k=e-l|0;if((k|0)>=(b|0)){c[(d&p)>>2]=(c[(a&p)+36>>2]|0)+l;e=a;b=jw(c[(e&p)>>2]|0,c[(e&p)+4>>2]|0,b|0,((b|0)<0)<<31>>31|0)|0;e=a;c[(e&p)>>2]=b;c[(e&p)+4>>2]=G;e=0;break}e=a+16|0;f=c[(e&p)>>2]|0;if((f|0)<(b|0)){f=f<<1;f=(f|0)<128?128:f;while(1)if((f|0)<(b|0))f=f<<1;else{h=f;break}g=a+28|0;f=rg(c[(g&p)>>2]|0,h,((h|0)<0)<<31>>31)|0;if(!f){e=7;break}c[(e&p)>>2]=h;c[(g&p)>>2]=f}else f=c[(a&p)+28>>2]|0;h=a+28|0;kw(f|0,(c[(a&p)+36>>2]|0)+l|0,k|0)|0;l=a;l=jw(c[(l&p)>>2]|0,c[(l&p)+4>>2]|0,k|0,((k|0)<0)<<31>>31|0)|0;e=a;c[(e&p)>>2]=l;c[(e&p)+4>>2]=G;e=b-k|0;if((e|0)>0){g=e;do{f=c[(m&p)>>2]|0;f=(g|0)>(f|0)?f:g;e=Kq(a,f,n)|0;if(e)break a;kw((c[(h&p)>>2]|0)+(b-g)|0,c[(n&p)>>2]|0,f|0)|0;g=g-f|0}while((g|0)>0)}c[(d&p)>>2]=c[(h&p)>>2];e=0}else{c[(d&p)>>2]=e+f;b=jw(f|0,h|0,b|0,((b|0)<0)<<31>>31|0)|0;e=a;c[(e&p)>>2]=b;c[(e&p)+4>>2]=G;e=0}while(0);i=o;return e|0}function Lq(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=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,x=0,y=0,z=0,A=0;A=i;i=i+64|0;if((i|0)>=(j|0))fa();x=A+44|0;z=A;y=A+40|0;v=a+8|0;u=c[(v&p)>>2]|0;v=c[(v&p)+4>>2]|0;w=a+4|0;q=c[(w&p)>>2]|0;Pp(c[(a&p)+48>>2]|0,z,c[((c[((c[(a&p)>>2]|0)&p)+8>>2]|0)&p)+12>>2]|0,u,v);o=q+8|0;q=q+12|0;r=z+24|0;s=z+16|0;t=a+16|0;while(1){f=c[((c[(o&p)>>2]|0)&p)+4>>2]|0;g=c[(q&p)>>2]|0;h=c[(g+(f*56|0)&p)+20>>2]|0;if(!(c[(g+(f*56|0)&p)+24>>2]|0)){d=1;b=0;break}l=r;k=c[(l&p)>>2]|0;l=c[(l&p)+4>>2]|0;m=c[(s&p)>>2]|0;n=((h|0)<0)<<31>>31;b=h;e=n;d=0;do{d=d+1|0;b=mw(b|0,e|0,7)|0;e=G}while(((b|0)!=0|(e|0)!=0)&(d|0)<9);k=jw(k|0,l|0,h|0,n|0)|0;k=jw(k|0,G|0,m|0,((m|0)<0)<<31>>31|0)|0;d=jw(k|0,G|0,d|0,((d|0)<0)<<31>>31|0)|0;k=G;b=c[(t&p)>>2]|0;b=jw(b|0,((b|0)<0)<<31>>31|0,u|0,v|0)|0;e=G;if((k|0)>(e|0)|(k|0)==(e|0)&d>>>0>b>>>0){d=1;b=0;break}Qp(z,x,pm(x,h,n)|0);Qp(z,c[(g+(f*56|0)&p)+32>>2]|0,h);b=Wm(c[(w&p)>>2]|0,y)|0;if(b){d=0;break}}z=Rp(z,a+56|0)|0;i=A;return (d?z:b)|0}function Mq(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0;d=i;i=i+16|0;if((i|0)>=(j|0))fa();f=d;c[(f&p)>>2]=e;e=Wk(a,13592,f)|0;mg(a,b);i=d;return e|0}function Nq(d,e,f,g){d=d|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,q=0;q=i;i=i+16|0;if((i|0)>=(j|0))fa();m=q;h=a[(d&n)>>0]|0;if(h<<24>>24!=0&(e|0)>0){l=0;do{if((h+-48&255)<10){k=0;do{k=(k*10|0)+-48+(h<<24>>24)|0;d=d+1|0;h=a[(d&n)>>0]|0}while((h+-48&255)<10);h=0}else{k=0;h=0}b[(f+(l<<1)&o)>>1]=fs(k,h)|0;d=(a[(d&n)>>0]|0)==32?d+1|0:d;l=l+1|0;h=a[(d&n)>>0]|0}while(h<<24>>24!=0&(l|0)<(e|0))}l=g+51|0;a[(l&n)>>0]=a[(l&n)>>0]&-69;a:do if(a[(d&n)>>0]|0){f=g+44|0;b:while(1){do if(!(Gh(13448,d,10352,0)|0)){if(Gh(13464,d,10352,0)|0){c[(m&p)>>2]=0;Dn(d+3|0,m)|0;h=c[(m&p)>>2]|0;b[(f&o)>>1]=fs(h,((h|0)<0)<<31>>31)|0;break}if(Gh(13480,d,10352,0)|0)a[(l&n)>>0]=a[(l&n)>>0]|64}else a[(l&n)>>0]=a[(l&n)>>0]|4;while(0);while(1){h=a[(d&n)>>0]|0;if(h<<24>>24==32|h<<24>>24==0)break;d=d+1|0}while(1){k=d+1|0;if(!(h<<24>>24))break a;else if(h<<24>>24!=32)continue b;h=a[(k&n)>>0]|0;d=k}}}while(0);i=q;return}function Oq(d){d=d|0;var e=0,f=0;f=d+8|0;e=c[(f&p)>>2]|0;if(!e){e=vh(d)|0;c[(f&p)>>2]=e;if(e)wh(e,155,0,0,0)|0;if((c[(d&p)+408>>2]|0)==0?(b[((c[(d&p)>>2]|0)&o)+60>>1]&8)==0:0)a[(d&n)+23>>0]=1}return e|0}function Pq(b,d){b=b|0;d=d|0;var e=0;e=(c[(b&p)+32>>2]|0)+-1|0;if((e|0)>(c[((c[(b&p)+24>>2]|0)&p)+88>>2]|0)?(a[((c[(b&p)+4>>2]|0)+(e*20|0)&n)>>0]|0)==d<<24>>24:0){zh(b,e);e=1}else e=0;return e|0}function Qq(d,e,f,g,h){d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var i=0,j=0;j=Oq(d)|0;i=g+32|0;gs(d,f,c[(i&p)>>2]|0,(h|0)==55&1,c[(g&p)>>2]|0);if(!(a[(g&n)+44>>0]&32)){g=b[(g&o)+38>>1]|0;xh(j,wh(j,h,e,c[(i&p)>>2]|0,f)|0,g,-14)}else{i=c[(g&p)+8>>2]|0;a:do if(!i)i=0;else while(1){if((a[(i&n)+51>>0]&3)==2)break a;i=c[(i&p)+20>>2]|0;if(!i){i=0;break}}while(0);wh(j,h,e,c[(i&p)+40>>2]|0,f)|0;g=c[(d&p)+8>>2]|0;xh(g,-1,hs(d,i)|0,-6)}return}function Rq(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0;if((d|0)!=0?(a[(d&n)>>0]|0)==-97:0)wh(c[(b&p)+8>>2]|0,33,c[(d&p)+28>>2]|0,e,0)|0;else h=4;if(((h|0)==4?(g=is(b,d,e)|0,(g|0)!=(e|0)):0)?(f=c[(b&p)+8>>2]|0,(f|0)!=0):0)wh(f,34,g,e,0)|0;return}function Sq(b,d,e,f,g){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0;m=i;i=i+16|0;if((i|0)>=(j|0))fa();l=m;h=c[(b&p)>>2]|0;do if(((a[(h&n)+145>>0]|0)==0?(a[(b&n)+451>>0]|0)==0:0)?(k=c[(h&p)+284>>2]|0,(k|0)!=0):0){h=kc[k&7](c[(h&p)+288>>2]|0,d,e,f,g,c[(b&p)+492>>2]|0)|0;if((h|0)==1){th(b,25216,l);c[(b&p)+12>>2]=23;h=1;break}else if((h|0)==0|(h|0)==2)break;else{th(b,25232,l);c[(b&p)+12>>2]=1;h=1;break}}else h=0;while(0);i=m;return h|0}function Tq(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;d=Wq(c[(a&p)>>2]|0,d)|0;do if(d){e=Oq(a)|0;if((e|0)!=0?(Sq(a,32,c[(b<<2&p)+37088>>2]|0,d,0)|0)==0:0){xh(e,wh(e,2,b,0,0)|0,d,-1);break}mg(c[(a&p)>>2]|0,d)}while(0);return}function Uq(e,f,g,h,k,l,m){e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;m=m|0;var q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0;y=i;i=i+16|0;if((i|0)>=(j|0))fa();u=y;s=y+4|0;x=c[(e&p)>>2]|0;f=er(e,f,g,s)|0;a:do if((f|0)>=0){t=(h|0)!=0;if(t?(c[(g&p)+4>>2]|0)!=0&(f|0)!=1:0){th(e,36976,u);break}w=t?1:f;g=c[(s&p)>>2]|0;t=g;f=c[(t&p)+4>>2]|0;s=e+496|0;c[(s&p)>>2]=c[(t&p)>>2];c[(s&p)+4>>2]=f;s=Wq(x,g)|0;if(s){b:do if((Lr(e,s)|0)==0?(r=(a[(x&n)+144>>0]|0)==1?1:h,v=x+16|0,q=c[((c[(v&p)>>2]|0)+(w<<4)&p)>>2]|0,(Sq(e,18,(r|0)==1?13184:13208,0,q)|0)==0):0){h=(r|0)!=0;if(!k)f=h?4:2;else f=h?6:8;t=(l|0)!=0;if(!t?(Sq(e,f,s,0,q)|0)!=0:0)break;do if(!(a[(e&n)+451>>0]|0)){h=c[((c[(v&p)>>2]|0)+(w<<4)&p)>>2]|0;if(Gn(e)|0)break b;if(!(_h(x,s,h)|0)){if(!(bq(x,s,h)|0))break;c[(u&p)>>2]=s;th(e,37048,u);break b}if(!m){c[(u&p)>>2]=g;th(e,37024,u);break b}else{Ar(e,w);break b}}while(0);r=mh(x,76,0)|0;if(!r){a[(x&n)+65>>0]=1;c[(e&p)+12>>2]=7;v=e+64|0;c[(v&p)>>2]=(c[(v&p)>>2]|0)+1;break}q=r+0|0;h=q+76|0;do{a[(q&n)>>0]=0;q=q+1|0}while((q|0)<(h|0));c[(r&p)>>2]=s;b[(r&o)+36>>1]=-1;q=c[((c[(v&p)>>2]|0)+(w<<4)&p)+12>>2]|0;c[(r&p)+68>>2]=q;b[(r&o)+40>>1]=1;b[(r&o)+28>>1]=200;c[(e&p)+484>>2]=r;if((a[(e&n)+18>>0]|0)==0?(_v(s,26576)|0)==0:0)c[(q&p)+72>>2]=r;if(a[(x&n)+145>>0]|0)break a;g=Oq(e)|0;if(!g)break a;v=c[(e&p)+408>>2]|0;Ar(e,w);q=1<>2]=c[(v&p)>>2]|q;if(t)wh(g,146,0,0,0)|0;r=e+72|0;f=c[(r&p)>>2]|0;s=f+1|0;c[(e&p)+384>>2]=s;t=f+2|0;c[(e&p)+388>>2]=t;f=f+3|0;c[(r&p)>>2]=f;wh(g,51,w,f,2)|0;r=g+96|0;c[(r&p)>>2]=c[(r&p)>>2]|q;r=wh(g,45,f,0,0)|0;wh(g,25,(c[(x&p)+24>>2]&32768|0)!=0?1:4,f,0)|0;wh(g,52,w,2,f)|0;wh(g,25,d[(x&n)+62>>0]|0,f,0)|0;wh(g,52,w,5,f)|0;h=g+32|0;q=c[(h&p)>>2]|0;if(q>>>0>r>>>0)c[((c[(g&p)+4>>2]|0)+(r*20|0)&p)+8>>2]=q;c[((c[(g&p)+24>>2]|0)&p)+88>>2]=q+-1;if(!(l|k))c[(e&p)+416>>2]=wh(g,121,w,t,0)|0;else wh(g,25,0,t,0)|0;js(e,w);wh(g,74,0,s,0)|0;wh(g,28,0,f,0)|0;wh(g,75,0,f,s)|0;q=c[(g&p)+4>>2]|0;if(q)a[(q+(((c[(h&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=8;wh(g,61,0,0,0)|0;break a}while(0);mg(x,s)}}while(0);i=y;return}function Vq(f,g,h,k,l){f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;var m=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;R=i;i=i+176|0;if((i|0)>=(j|0))fa();M=R+80|0;J=R+168|0;G=R;H=R+136|0;I=R+112|0;N=c[(f&p)>>2]|0;a:do if((!((h|0)==0&(l|0)==0)?(O=N+65|0,(a[(O&n)>>0]|0)==0):0)?(P=f+484|0,Q=c[(P&p)>>2]|0,(Q|0)!=0):0){L=N+145|0;if(a[(L&n)>>0]|0)c[(Q&p)+32>>2]=c[(N&p)+140>>2];b:do if(k&32){s=Q+44|0;r=d[(s&n)>>0]|0;if(r&8){th(f,36584,M);break a}if(!(r&4)){c[(M&p)>>2]=c[(Q&p)>>2];th(f,36640,M);break}a[(s&n)>>0]=r|32;t=c[(f&p)+8>>2]|0;s=c[(f&p)+416>>2]|0;if(s){if((s|0)<0)s=(c[(t&p)+32>>2]|0)+-1|0;if(!(a[((c[(t&p)>>2]|0)&n)+65>>0]|0))s=(c[(t&p)+4>>2]|0)+(s*20|0)|0;else s=29120;a[(s&n)>>0]=120}s=c[(f&p)+420>>2]|0;if(s){if((s|0)<0)s=(c[(t&p)+32>>2]|0)+-1|0;if(!(a[((c[(t&p)>>2]|0)&n)+65>>0]|0))r=(c[(t&p)+4>>2]|0)+(s*20|0)|0;else r=29120;a[(r&n)>>0]=16}r=Q+36|0;if((b[(r&o)>>1]|0)>-1){s=lr(f,0,0)|0;if(!s)break;C=kh(c[(f&p)>>2]|0,c[((c[(Q&p)+4>>2]|0)+((b[(r&o)>>1]|0)*24|0)&p)>>2]|0)|0;D=c[(s&p)+4>>2]|0;c[(D&p)+4>>2]=C;a[(D&n)+12>>0]=a[(f&n)+448>>0]|0;s=$q(f,0,0,0,s,d[(Q&n)+45>>0]|0,0,0,0,0)|0;if(!s)break;x=s+51|0;a[(x&n)>>0]=a[(x&n)>>0]&-4|2;b[(r&o)>>1]=-1;x=b[(s&o)+46>>1]|0}else{s=c[(Q&p)+8>>2]|0;c:do if(!s)s=0;else while(1){if((a[(s&n)+51>>0]&3)==2)break c;s=c[(s&p)+20>>2]|0;if(!s){s=0;break}}while(0);y=s+46|0;t=b[(y&o)>>1]|0;if((t&65535)>1){w=c[(s&p)+4>>2]|0;v=s+48|0;x=1;r=1;do{m=b[(w+(x<<1)&o)>>1]|0;u=r;q=w;while(1){if((u|0)<=0){F=36;break}if((b[(q&o)>>1]|0)==m<<16>>16){F=35;break}else{u=u+-1|0;q=q+2|0}}if((F|0)==35){F=0;b[(v&o)>>1]=(b[(v&o)>>1]|0)+-1<<16>>16}else if((F|0)==36){F=0;b[(w+(r<<1)&o)>>1]=m;t=b[(y&o)>>1]|0;r=r+1|0}x=x+1|0}while((x|0)<(t&65535|0))}else r=1;x=r&65535;b[(y&o)>>1]=x}u=s+51|0;t=a[(u&n)>>0]|32;a[(u&n)>>0]=t;D=x&65535;if(!(a[(N&n)+147>>0]|0)){if(x<<16>>16){t=c[(s&p)+4>>2]|0;r=c[(Q&p)+4>>2]|0;q=0;do{a[(r+((b[(t+(q<<1)&o)>>1]|0)*24|0)&n)+20>>0]=1;q=q+1|0}while((q|0)<(D|0));t=a[(u&n)>>0]|0}a[(u&n)>>0]=t|8}c[(s&p)+40>>2]=c[(Q&p)+32>>2];u=c[(Q&p)+8>>2]|0;if(u){A=x<<16>>16==0;B=s+4|0;C=s+32|0;do{d:do if((a[(u&n)+51>>0]&3)!=2){do if(A)t=b[(u&o)+46>>1]|0;else{v=c[(u&p)+4>>2]|0;t=b[(u&o)+46>>1]|0;q=t&65535;m=c[(B&p)>>2]|0;z=0;r=0;do{w=b[(m+(z<<1)&o)>>1]|0;y=q;x=v;while(1){if((y|0)<=0){x=1;break}if((b[(x&o)>>1]|0)==w<<16>>16){x=0;break}else{y=y+-1|0;x=x+2|0}}r=x+r|0;z=z+1|0}while((z|0)<(D|0));q=u+46|0;if(!r)break;if(ks(N,u,(t&65535)+r|0)|0)break b;if(A)break d;w=b[(q&o)>>1]|0;z=u+4|0;m=u+32|0;y=w;x=0;w=w&65535;while(1){t=c[(z&p)>>2]|0;r=b[((c[(B&p)>>2]|0)+(x<<1)&o)>>1]|0;y=y&65535;v=t;while(1){if((y|0)<=0){F=63;break}if((b[(v&o)>>1]|0)==r<<16>>16)break;else{y=y+-1|0;v=v+2|0}}if((F|0)==63){F=0;b[(t+(w<<1)&o)>>1]=r;c[((c[(m&p)>>2]|0)+(w<<2)&p)>>2]=c[((c[(C&p)>>2]|0)+(x<<2)&p)>>2];w=w+1|0}x=x+1|0;if((x|0)>=(D|0))break d;y=b[(q&o)>>1]|0}}while(0);b[(u&o)+48>>1]=t}while(0);u=c[(u&p)+20>>2]|0}while((u|0)!=0)}y=Q+38|0;t=b[(y&o)>>1]|0;r=t<<16>>16;if((D|0)>=(r|0)){b[(s&o)+48>>1]=t;break}if((ks(N,s,r)|0)==0?(E=b[(y&o)>>1]|0,E<<16>>16>0):0){v=s+4|0;x=s+32|0;t=E;w=0;s=D;do{q=c[(v&p)>>2]|0;u=s;r=q;while(1){if((u|0)<=0){F=74;break}if((b[(r&o)>>1]|0)==(w|0))break;else{u=u+-1|0;r=r+2|0}}if((F|0)==74){F=0;b[(q+(s<<1)&o)>>1]=w;c[((c[(x&p)>>2]|0)+(s<<2)&p)>>2]=11152;t=b[(y&o)>>1]|0;s=s+1|0}w=w+1|0}while((w|0)<(t<<16>>16|0))}}while(0);F=Q+68|0;s=c[(F&p)>>2]|0;e:do if(s){r=c[(N&p)+20>>2]|0;if((r|0)>0){q=c[(N&p)+16>>2]|0;t=0;while(1){m=t+1|0;if((c[(q+(t<<4)&p)+12>>2]|0)==(s|0))break e;if((m|0)<(r|0))t=m;else{t=m;break}}}else t=0}else t=-1e6;while(0);q=c[(Q&p)+24>>2]|0;f:do if(q){c[(H&p)>>2]=0;c[(H&p)+4>>2]=0;c[(H&p)+8>>2]=0;c[(H&p)+12>>2]=0;c[(H&p)+16>>2]=0;c[(H&p)+20>>2]=0;c[(H&p)+24>>2]=0;c[(H&p)+28>>2]=0;s=G+0|0;r=s+80|0;do{c[(s&p)>>2]=0;s=s+4|0}while((s|0)<(r|0));c[(G&p)>>2]=1;c[(G&p)+16>>2]=c[(Q&p)>>2];c[(G&p)+24>>2]=Q;c[(G&p)+48>>2]=-1;c[(H&p)>>2]=f;c[(H&p)+4>>2]=G;b[(H&o)+28>>1]=4;s=q+4|0;if((c[(q&p)>>2]|0)>0){r=0;do{if(ls(H,c[((c[(s&p)>>2]|0)+(r*20|0)&p)>>2]|0)|0)break f;r=r+1|0}while((r|0)<(c[(q&p)>>2]|0))}}while(0);D=Q+38|0;m=b[(D&o)>>1]|0;if(m<<16>>16>0){s=m<<16>>16;r=c[(Q&p)+4>>2]|0;q=0;while(1){q=(d[(r&n)+22>>0]|0)+q|0;s=s+-1|0;if((s|0)<=0)break;else r=r+24|0}}else q=0;b[(Q&o)+42>>1]=fs(((e[(Q&o)+36>>1]|0)>>>15&65535)+q<<2,0)|0;q=c[(Q&p)+8>>2]|0;if(q)do{ms(q);q=c[(q&p)+20>>2]|0}while((q|0)!=0);if(!(a[(L&n)>>0]|0)){E=Oq(f)|0;if(!E)break;wh(E,61,0,0,0)|0;B=(c[(Q&p)+12>>2]|0)==0;r=B?36672:36680;B=B?31232:35480;do if(!l){q=k<<24>>24==0?h:f+504|0;l=c[(q&p)>>2]|0;s=c[(f&p)+496>>2]|0;m=l-s|0;if((a[(l&n)>>0]|0)!=59)m=(c[(q&p)+4>>2]|0)+m|0;c[(M&p)>>2]=r;c[(M&p)+4>>2]=m;c[(M&p)+8>>2]=s;s=f+388|0;m=Q;r=uh(N,36688,M)|0}else{s=f+388|0;wh(E,55,1,c[(s&p)>>2]|0,t)|0;r=c[(E&p)+4>>2]|0;if(r)a[(r+(((c[(E&p)+32>>2]|0)+-1|0)*20|0)&n)+3>>0]=4;c[(f&p)+68>>2]=2;a[(I&n)>>0]=14;c[(I&p)+4>>2]=1;a[(I&n)+1>>0]=0;c[(I&p)+8>>2]=0;c[(I&p)+12>>2]=0;ir(f,l,I)|0;wh(E,61,1,0,0)|0;if(!(c[(f&p)+64>>2]|0)){m=ns(f,l)|0;if(!m)break a;I=m+38|0;b[(D&o)>>1]=b[(I&o)>>1]|0;l=m+4|0;c[(Q&p)+4>>2]=c[(l&p)>>2];b[(I&o)>>1]=0;c[(l&p)>>2]=0;kg(N,m)}C=Q+4|0;z=b[(D&o)>>1]|0;if(z<<16>>16>0){v=z<<16>>16;w=0;r=0;x=c[(C&p)>>2]|0;while(1){m=c[(x&p)>>2]|0;q=0;while(1){u=a[(m&n)>>0]|0;if(u<<24>>24==34)q=q+1|0;else if(!(u<<24>>24))break;m=m+1|0;q=q+1|0}r=r+7+q|0;w=w+1|0;if((w|0)==(v|0))break;else x=x+24|0}u=r+2|0}else u=2;m=c[(Q&p)>>2]|0;r=0;while(1){q=a[(m&n)>>0]|0;if(q<<24>>24==34)r=r+1|0;else if(!(q<<24>>24))break;m=m+1|0;r=r+1|0}x=r+u|0;A=(x|0)<50;u=A?10360:36880;y=A?20240:36888;A=A?33952:36896;x=((z<<16>>16)*6|0)+35+x|0;r=qg(x,((x|0)<0)<<31>>31)|0;if(!r){a[(O&n)>>0]=1;m=Q;r=0;break}ad(x,r,36904,M)|0;q=r;while(1)if(!(a[(q&n)>>0]|0))break;else q=q+1|0;c[(J&p)>>2]=q-r&1073741823;os(r,J,c[(Q&p)>>2]|0);m=c[(J&p)>>2]|0;v=m+1|0;c[(J&p)>>2]=v;a[(r+m&n)>>0]=40;m=x-v|0;q=r+v|0;if((b[(D&o)>>1]|0)>0){z=0;w=c[(C&p)>>2]|0;while(1){ad(m,q,u,M)|0;q=r+v|0;if(!q)q=0;else{u=q;while(1)if(!(a[(u&n)>>0]|0))break;else u=u+1|0;q=u-q&1073741823}c[(J&p)>>2]=q+v;os(r,J,c[(w&p)>>2]|0);q=c[((a[(w&n)+21>>0]|0)+-65<<2&p)+36920>>2]|0;u=q;while(1)if(!(a[(u&n)>>0]|0))break;else u=u+1|0;v=u-q&1073741823;u=c[(J&p)>>2]|0;kw(r+u|0,q|0,v|0)|0;v=u+v|0;c[(J&p)>>2]=v;u=z+1|0;m=x-v|0;q=r+v|0;if((u|0)<(b[(D&o)>>1]|0)){z=u;w=w+24|0;u=y}else break}}c[(M&p)>>2]=A;ad(m,q,10344,M)|0;m=Q}while(0);q=N+16|0;k=c[(m&p)>>2]|0;I=c[(s&p)>>2]|0;l=c[(f&p)+384>>2]|0;c[(M&p)>>2]=c[((c[(q&p)>>2]|0)+(t<<4)&p)>>2];c[(M&p)+4>>2]=(t|0)==1?13184:13208;c[(M&p)+8>>2]=B;c[(M&p)+12>>2]=k;c[(M&p)+16>>2]=k;c[(M&p)+20>>2]=I;c[(M&p)+24>>2]=r;c[(M&p)+28>>2]=l;Br(f,36704,M);mg(N,r);Dr(f,t);if((a[(Q&n)+44>>0]&8)!=0?(K=c[(q&p)>>2]|0,(c[((c[(K+(t<<4)&p)+12>>2]|0)&p)+72>>2]|0)==0):0){c[(M&p)>>2]=c[(K+(t<<4)&p)>>2];Br(f,36792,M)}c[(M&p)>>2]=c[(m&p)>>2];Ir(E,t,uh(N,36840,M)|0);if(!(a[(L&n)>>0]|0))break}else m=Q;if(Ik((c[(F&p)>>2]|0)+8|0,c[(m&p)>>2]|0,Q)|0){a[(O&n)>>0]=1;break}c[(P&p)>>2]=0;l=N+24|0;c[(l&p)>>2]=c[(l&p)>>2]|2;if(!(c[(Q&p)+12>>2]|0)){l=c[(f&p)+496>>2]|0;c[(Q&p)+48>>2]=(Nn(l,(c[(((c[(g&p)>>2]|0)==0?h:g)&p)>>2]|0)-l|0)|0)+13}}while(0);i=R;return}function Wq(b,d){b=b|0;d=d|0;var e=0,f=0;if(!d)e=0;else{f=c[(d&p)>>2]|0;d=c[(d&p)+4>>2]|0;if((f|0)!=0?(e=jw(d|0,0,1,0)|0,e=mh(b,e,G)|0,(e|0)!=0):0){kw(e|0,f|0,d|0)|0;a[(e+d&n)>>0]=0}else e=0;lo(e)}return e|0}function Xq(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,o=0,q=0;o=i;i=i+16|0;if((i|0)>=(j|0))fa();m=o;a:do if(b){g=a[(b&n)>>0]|0;b:do if(!(g<<24>>24)){f=67;g=0}else{k=g;f=67;h=0;g=0;do{h=d[(k&255&n)+9328>>0]|0|h<<8;b=b+1|0;if((h|0)==1685026146)if(f<<24>>24==67){f=69;h=1685026146;l=5}else l=13;else if((h|0)==1668050786){f=66;l=5}else if((h|0)==1718382433)if(f<<24>>24==67){f=69;h=1718382433;l=5}else l=13;else if((h|0)==1919246700)if(f<<24>>24==67){f=69;h=1919246700;l=5}else l=14;else if((h|0)==1952807028){f=66;l=5}else if((h|0)==1651273570)if(f<<24>>24==69|f<<24>>24==67){q=a[(b&n)>>0]|0;k=q;f=65;h=1651273570;g=q<<24>>24==40?b:g}else l=14;else if((h|0)!=1667785074)if((h&16777215|0)==6909556){f=68;break b}else l=5;else{f=66;h=1667785074;g=b;l=5}if((l|0)==13)l=5;else if((l|0)==14)l=5;if((l|0)==5){l=0;k=a[(b&n)>>0]|0}}while(k<<24>>24!=0)}while(0);if((e|0)!=0?(a[(e&n)>>0]=1,f<<24>>24<67):0){if(!g){a[(e&n)>>0]=5;break}b=a[(g&n)>>0]|0;if(b<<24>>24){while(1){if(((b&255)+-48|0)>>>0<10)break;g=g+1|0;b=a[(g&n)>>0]|0;if(!(b<<24>>24))break a}c[(m&p)>>2]=0;Dn(g,m)|0;g=((c[(m&p)>>2]|0)/4|0)+1|0;g=(g|0)>255?255:g;c[(m&p)>>2]=g;a[(e&n)>>0]=g}}}else f=67;while(0);i=o;return f|0}function Yq(e,f){e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,q=0,r=0,s=0,t=0;r=i;i=i+32|0;if((i|0)>=(j|0))fa();m=r;q=c[(e&p)>>2]|0;k=c[(e&p)+484>>2]|0;do if(k){h=(b[(k&o)+38>>1]|0)+-1|0;l=c[(k&p)+4>>2]|0;s=c[(f&p)>>2]|0;t=(d[(q&n)+145>>0]|0)+4|0;c[(m&p)>>2]=0;c[(m&p)+4>>2]=0;c[(m&p)+8>>2]=0;c[(m&p)+12>>2]=0;c[(m&p)+16>>2]=0;c[(m&p)+20>>2]=0;k=m+20|0;a[(k&n)>>0]=t;c[(m&p)>>2]=78;c[(m&p)+4>>2]=79;c[(m&p)+24>>2]=0;rs(m,s)|0;if(!(a[(k&n)>>0]|0)){c[(m&p)>>2]=c[(l+(h*24|0)&p)>>2];th(e,36480,m);break}k=l+(h*24|0)+4|0;Gk(q,c[(k&p)>>2]|0);c[(k&p)>>2]=Mr(q,c[(f&p)>>2]|0,1,0)|0;l=l+(h*24|0)+8|0;mg(q,c[(l&p)>>2]|0);h=c[(f&p)+4>>2]|0;k=(c[(f&p)+8>>2]|0)-h|0;if((h|0)!=0?(g=jw(k|0,((k|0)<0)<<31>>31|0,1,0)|0,g=mh(q,g,G)|0,(g|0)!=0):0){kw(g|0,h|0,k|0)|0;a[(g+k&n)>>0]=0}else g=0;c[(l&p)>>2]=g}while(0);Gk(q,c[(f&p)>>2]|0);i=r;return}function Zq(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,k=0;k=i;i=i+16|0;if((i|0)>=(j|0))fa();h=k;if((b|0)==72&(d|0)!=0&(e|0)!=0?(c[(a&p)+64>>2]|0)==0:0)b=ss(c[(a&p)>>2]|0,d,e)|0;else{b=nr(c[(a&p)>>2]|0,b,f,1)|0;ts(c[(a&p)>>2]|0,b,d,e)}if((b|0)!=0?(g=c[((c[(a&p)>>2]|0)&p)+100>>2]|0,(g|0)<(c[(b&p)+24>>2]|0)):0){c[(h&p)>>2]=g;th(a,27152,h)}i=k;return b|0}function _q(e,f,g,h,k){e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;var l=0,m=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;i=i+16|0;if((i|0)>=(j|0))fa();C=D;A=c[(e&p)+484>>2]|0;do if((A|0)!=0?(a[(e&n)+451>>0]|0)==0:0){B=A+44|0;m=d[(B&n)>>0]|0;if(m&4){c[(C&p)>>2]=c[(A&p)>>2];th(e,36376,C);break}y=m|4;a[(B&n)>>0]=y;z=(f|0)==0;if(z){m=(b[(A&o)+38>>1]|0)+-1|0;w=c[(A&p)+4>>2]|0;l=w+(m*24|0)+23|0;a[(l&n)>>0]=d[(l&n)>>0]|1;l=m;q=1;m=c[(w+(m*24|0)&p)+12>>2]|0}else{x=c[(f&p)>>2]|0;if((x|0)>0){u=f+4|0;v=A+4|0;t=b[(A&o)+38>>1]|0;w=0;m=0;do{a:do if(t<<16>>16>0){r=c[((c[(u&p)>>2]|0)+(w*20|0)&p)+4>>2]|0;s=c[(v&p)>>2]|0;q=0;while(1){l=q+1|0;if(!(dd(r,c[(s+(q*24|0)&p)>>2]|0)|0))break;if((l|0)<(t<<16>>16|0))q=l;else break a}l=s+(q*24|0)+23|0;a[(l&n)>>0]=d[(l&n)>>0]|1;l=q;m=c[(s+(q*24|0)&p)+12>>2]|0}else l=0;while(0);w=w+1|0}while((w|0)!=(x|0))}else{l=-1;m=0}q=(x|0)==1}if(q&(m|0)!=0?(dd(m,11144)|0|k|0)==0:0){b[(A&o)+36>>1]=l;a[(A&n)+45>>0]=g;a[(B&n)>>0]=y|h<<3;if(z){f=0;break}a[(e&n)+448>>0]=a[((c[(f&p)+4>>2]|0)&n)+12>>0]|0;break}if(h){th(e,36424,C);break}m=c[(e&p)+8>>2]|0;l=(m|0)!=0;if(l)c[(e&p)+420>>2]=wh(m,156,0,0,0)|0;f=$q(e,0,0,0,f,g,0,0,k,0)|0;if((f|0)!=0?(w=f+51|0,a[(w&n)>>0]=a[(w&n)>>0]&-4|2,l):0){f=c[(e&p)+420>>2]|0;l=c[(m&p)+32>>2]|0;if(l>>>0>f>>>0)c[((c[(m&p)+4>>2]|0)+(f*20|0)&p)+8>>2]=l;c[((c[(m&p)+24>>2]|0)&p)+88>>2]=l+-1;f=0}else f=0}while(0);Nk(c[(e&p)>>2]|0,f);i=D;return}function $q(f,g,h,k,l,m,q,r,s,t){f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;m=m|0;q=q|0;r=r|0;s=s|0;t=t|0;var 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;Y=i;i=i+144|0;if((i|0)>=(j|0))fa();V=Y;E=Y+112|0;x=Y+88|0;T=Y+84|0;N=Y+80|0;X=c[(f&p)>>2]|0;c[(T&p)>>2]=0;c[(N&p)>>2]=0;S=X+65|0;a:do if(((a[(S&n)>>0]|0)==0?(a[(f&n)+451>>0]|0)==0:0)?(Gn(f)|0)==0:0){U=(k|0)!=0;b:do if(U){g=er(f,g,h,T)|0;if((g|0)<0){u=0;h=0;break a}if((a[(X&n)+145>>0]|0)==0?(u=Jr(f,k)|0,(c[(h&p)+4>>2]|0)==0&(u|0)!=0):0)g=(c[(u&p)+68>>2]|0)==(c[((c[(X&p)+16>>2]|0)&p)+28>>2]|0)?1:g;h=c[(T&p)>>2]|0;u=c[(f&p)>>2]|0;c[(x&p)>>2]=f;u=c[(u&p)+16>>2]|0;c[(x&p)+12>>2]=c[(u+(g<<4)&p)>>2];c[(x&p)+4>>2]=c[(u+(g<<4)&p)+12>>2];c[(x&p)+16>>2]=20632;c[(x&p)+20>>2]=h;u=(g|0)==1;c[(x&p)+8>>2]=u&1;Kr(x,k)|0;w=Ur(f,0,k+8|0)|0;if(!w){u=0;h=0;break a}if(u?(c[((c[(X&p)+16>>2]|0)&p)+28>>2]|0)!=(c[(w&p)+68>>2]|0):0){c[(V&p)>>2]=c[(w&p)>>2];th(f,35920,V);u=0;h=0;break a}if((a[(w&n)+44>>0]&32)!=0?(v=c[(w&p)+8>>2]|0,(v|0)!=0):0){u=v;while(1){if((a[(u&n)+51>>0]&3)==2){v=g;M=u;x=w;break b}u=c[(u&p)+20>>2]|0;if(!u){v=g;M=0;x=w;break}}}else{v=g;M=0;x=w}}else{x=c[(f&p)+484>>2]|0;if(!x){u=0;h=0;break a}g=c[(x&p)+68>>2]|0;if(g){u=c[(X&p)+20>>2]|0;if((u|0)>0){h=c[(X&p)+16>>2]|0;w=0;while(1){v=w+1|0;if((c[(h+(w<<4)&p)+12>>2]|0)==(g|0)){h=0;v=w;M=0;break b}if((v|0)<(u|0))w=v;else{h=0;M=0;break}}}else{h=0;v=0;M=0}}else{h=0;v=-1e6;M=0}}while(0);R=X+16|0;F=c[(R&p)>>2]|0;g=F+(v<<4)|0;A=c[(x&p)>>2]|0;if(((Fc(A,25568,7)|0)==0?(a[(X&n)+145>>0]|0)==0:0)?(Fc(A+7|0,35976,9)|0)!=0:0){c[(V&p)>>2]=A;th(f,35992,V);u=0;h=0;break}if(c[(x&p)+12>>2]|0){th(f,36024,V);u=0;h=0;break}Q=x+44|0;if(a[(Q&n)>>0]&16){th(f,36056,V);u=0;h=0;break}G=(h|0)==0;if(!G){h=Wq(X,h)|0;if(!h){u=0;h=0;break}if(Lr(f,h)|0){u=0;break}if((a[(X&n)+145>>0]|0)==0?(_h(X,h,0)|0)!=0:0){c[(V&p)>>2]=h;th(f,36096,V);u=0;break}if(bq(X,h,c[(g&p)>>2]|0)|0)if(!t){c[(V&p)>>2]=h;th(f,36136,V);u=0;break}else{Ar(f,v);u=0;break}else w=h}else{u=c[(x&p)+8>>2]|0;if(!u)w=1;else{w=1;do{w=w+1|0;u=c[(u&p)+20>>2]|0}while((u|0)!=0)}c[(V&p)>>2]=A;c[(V&p)+4>>2]=w;w=uh(X,36160,V)|0;if(!w){u=0;h=0;break}}g=c[(g&p)>>2]|0;u=(v|0)==1;O=u?13184:13208;if((Sq(f,18,O,0,g)|0)==0?(Sq(f,u?3:1,w,c[(x&p)>>2]|0,g)|0)==0:0){if(!l){l=lr(f,0,0)|0;if(!l){l=0;u=0;h=w;break}I=kh(c[(f&p)>>2]|0,c[((c[(x&p)+4>>2]|0)+(((b[(x&o)+38>>1]|0)+-1|0)*24|0)&p)>>2]|0)|0;J=c[(l&p)+4>>2]|0;c[(J&p)+4>>2]=I;a[(J&n)+12>>0]=s}D=c[(l&p)>>2]|0;if((D|0)>0){A=c[(l&p)+4>>2]|0;y=0;g=0;do{u=c[(A+(y*20|0)&p)>>2]|0;if(u){h=c[(u&p)+8>>2]|0;if(!h)u=1;else{u=h;while(1)if(!(a[(u&n)>>0]|0))break;else u=u+1|0;u=(u-h&1073741823)+1|0}g=u+g|0}y=y+1|0}while((y|0)<(D|0));h=g}else h=0;if(!w)u=0;else{g=w;while(1)if(!(a[(g&n)>>0]|0))break;else g=g+1|0;u=g-w&1073741823}I=(M|0)!=0;if(I)g=e[(M&o)+46>>1]|0;else g=1;P=us(X,D+g&65535,h+1+u|0,N)|0;c:do if(!(a[(S&n)>>0]|0)){H=c[(N&p)>>2]|0;c[(P&p)>>2]=H;L=u+1|0;C=H+L|0;c[(N&p)>>2]=C;kw(H|0,w|0,L|0)|0;c[(P&p)+12>>2]=x;L=P+50|0;a[(L&n)>>0]=m;H=P+51|0;a[(H&n)>>0]=a[(H&n)>>0]&-12|((m|0)!=0&1)<<3&255|G&1;K=P+24|0;c[(K&p)>>2]=c[((c[(R&p)>>2]|0)+(v<<4)&p)+12>>2];g=c[(l&p)>>2]|0;J=P+46|0;b[(J&o)>>1]=g;if(r){c[(E&p)>>2]=0;c[(E&p)+4>>2]=0;c[(E&p)+8>>2]=0;c[(E&p)+12>>2]=0;c[(E&p)+16>>2]=0;c[(E&p)+20>>2]=0;c[(E&p)+24>>2]=0;c[(E&p)+28>>2]=0;A=V+0|0;h=A+80|0;do{c[(A&p)>>2]=0;A=A+4|0}while((A|0)<(h|0));c[(V&p)>>2]=1;c[(V&p)+16>>2]=c[(x&p)>>2];c[(V&p)+24>>2]=x;c[(V&p)+48>>2]=-1;c[(E&p)>>2]=f;c[(E&p)+4>>2]=V;b[(E&o)+28>>1]=16;ls(E,r)|0;c[(P&p)+36>>2]=r;g=c[(l&p)>>2]|0}z=(d[((c[(F+(v<<4)&p)+12>>2]|0)&n)+76>>0]|0)>3;d:do if((g|0)>0){G=x+4|0;F=x+38|0;E=P+4|0;r=X+145|0;g=P+32|0;y=P+28|0;h=0;s=c[(l&p)+4>>2]|0;while(1){u=c[(s&p)+4>>2]|0;A=b[(F&o)>>1]|0;e:do if(A<<16>>16>0){D=0;B=c[(G&p)>>2]|0;while(1){if(!(dd(u,c[(B&p)>>2]|0)|0)){t=D;break e}D=D+1|0;if((D|0)<(A<<16>>16|0))B=B+24|0;else{t=D;break}}}else t=0;while(0);if((t|0)>=(A<<16>>16|0))break;b[((c[(E&p)>>2]|0)+(h<<1)&o)>>1]=t;D=c[(s&p)>>2]|0;if(!D){D=c[((c[(G&p)>>2]|0)+(t*24|0)&p)+16>>2]|0;D=(D|0)!=0?D:11152}else{B=c[(D&p)+8>>2]|0;if(!B)D=1;else{D=B;while(1)if(!(a[(D&n)>>0]|0))break;else D=D+1|0;D=(D-B&1073741823)+1|0}kw(C|0,B|0,D|0)|0;B=c[(N&p)>>2]|0;C=B+D|0;c[(N&p)>>2]=C;D=B}if((a[(r&n)>>0]|0)==0?(cr(f,D)|0)==0:0){h=0;u=0;W=134;break c}c[((c[(g&p)>>2]|0)+(h<<2)&p)>>2]=D;a[((c[(y&p)>>2]|0)+h&n)>>0]=z?a[(s&n)+12>>0]|0:0;if(!(a[((c[(G&p)>>2]|0)+(t*24|0)&n)+20>>0]|0))a[(H&n)>>0]=a[(H&n)>>0]&-9;h=h+1|0;if((h|0)<(c[(l&p)>>2]|0))s=s+20|0;else break d}c[(V&p)>>2]=c[(x&p)>>2];c[(V&p)+4>>2]=u;th(f,36184,V);a[(f&n)+17>>0]=1;h=0;u=0;W=134;break c}else h=0;while(0);do if(I){z=M+46|0;A=b[(z&o)>>1]|0;if(!(A<<16>>16))break;E=M+4|0;F=P+4|0;G=P+48|0;s=M+32|0;t=P+32|0;g=M+28|0;y=P+28|0;r=0;do{B=b[((c[(E&p)>>2]|0)+(r<<1)&o)>>1]|0;u=c[(F&p)>>2]|0;D=e[(J&o)>>1]|0;C=u;while(1){if((D|0)<=0){W=92;break}if((b[(C&o)>>1]|0)==B<<16>>16){W=91;break}else{D=D+-1|0;C=C+2|0}}if((W|0)==91){W=0;b[(G&o)>>1]=(b[(G&o)>>1]|0)+-1<<16>>16}else if((W|0)==92){W=0;b[(u+(h<<1)&o)>>1]=B;c[((c[(t&p)>>2]|0)+(h<<2)&p)>>2]=c[((c[(s&p)>>2]|0)+(r<<2)&p)>>2];a[((c[(y&p)>>2]|0)+h&n)>>0]=a[((c[(g&p)>>2]|0)+r&n)>>0]|0;A=b[(z&o)>>1]|0;h=h+1|0}r=r+1|0}while((r|0)<(A&65535|0))}else{b[((c[(P&p)+4>>2]|0)+(h<<1)&o)>>1]=-1;c[((c[(P&p)+32>>2]|0)+(h<<2)&p)>>2]=11152}while(0);cq(P);r=f+484|0;g=c[(r&p)>>2]|0;if(!g){ms(P);g=c[(r&p)>>2]|0}f:do if((x|0)==(g|0)){u=c[(x&p)+8>>2]|0;if(!u)break;B=b[(J&o)>>1]|0;C=P+4|0;D=P+32|0;while(1){if((b[(u&o)+46>>1]|0)==B<<16>>16){g:do if(!(B<<16>>16)){r=0;g=0}else{y=c[(u&p)+4>>2]|0;z=c[(C&p)>>2]|0;A=u+32|0;g=0;while(1){if((b[(y+(g<<1)&o)>>1]|0)!=(b[(z+(g<<1)&o)>>1]|0)){r=B;break g}r=c[((c[(A&p)>>2]|0)+(g<<2)&p)>>2]|0;h=c[((c[(D&p)>>2]|0)+(g<<2)&p)>>2]|0;if((r|0)!=(h|0)?(dd(r,h)|0)!=0:0){r=B;break g}g=g+1|0;if((g|0)>=(B&65535|0)){r=B;break}}}while(0);if((g|0)==(r&65535|0))break}u=c[(u&p)+20>>2]|0;if(!u)break f}g=u+50|0;h=a[(g&n)>>0]|0;r=a[(L&n)>>0]|0;if(h<<24>>24==r<<24>>24){h=0;break c}if(!(h<<24>>24==10|r<<24>>24==10)){c[(V&p)>>2]=0;th(f,36216,V);h=a[(g&n)>>0]|0}if(h<<24>>24!=10){h=0;W=134;break c}a[(g&n)>>0]=a[(L&n)>>0]|0;h=0;break c}while(0);h=X+145|0;do if(!(a[(h&n)>>0]|0)){if(c[(f&p)+64>>2]|0){W=126;break}if(!((a[(Q&n)>>0]&32)==0|U)){W=126;break}u=f+72|0;r=(c[(u&p)>>2]|0)+1|0;c[(u&p)>>2]=r;u=Oq(f)|0;if(!u){h=0;u=0;W=134;break c}J=c[(f&p)+408>>2]|0;J=(J|0)==0?f:J;Ar(f,v);I=J+328|0;c[(I&p)>>2]=c[(I&p)>>2]|1<>0]=d[(J&n)>>0]|1;wh(u,120,v,r,0)|0;if(!q)g=0;else{g=c[(c[(T&p)>>2]&p)>>2]|0;J=(c[(f&p)+504>>2]|0)-g+(c[(f&p)+508>>2]|0)|0;I=J+-1|0;J=(a[(g+I&n)>>0]|0)==59?I:J;c[(V&p)>>2]=(m|0)==0?10360:36288;c[(V&p)+4>>2]=J;c[(V&p)+8>>2]=g;g=uh(X,36264,V)|0}I=c[(P&p)>>2]|0;J=c[(x&p)>>2]|0;c[(V&p)>>2]=c[((c[(R&p)>>2]|0)+(v<<4)&p)>>2];c[(V&p)+4>>2]=O;c[(V&p)+8>>2]=I;c[(V&p)+12>>2]=J;c[(V&p)+16>>2]=r;c[(V&p)+20>>2]=g;Br(f,36296,V);mg(X,g);if(!U)break;vs(f,P,r);Dr(f,v);c[(V&p)>>2]=c[(P&p)>>2];Ir(u,v,uh(X,36344,V)|0);wh(u,144,0,0,0)|0;W=126}else{if(Ik((c[(K&p)>>2]|0)+24|0,c[(P&p)>>2]|0,P)|0){a[(S&n)>>0]=1;h=0;u=0;W=134;break c}J=X+24|0;c[(J&p)>>2]=c[(J&p)>>2]|2;if(!U)break;c[(P&p)+40>>2]=c[(X&p)+140>>2];W=126}while(0);if((W|0)==126?!((a[(h&n)>>0]|0)!=0|(k|0)==0):0){h=0;u=0;W=134;break}h=c[(x&p)+8>>2]|0;do if((m|0)==5){if(!h){h=0;break}if((a[(h&n)+50>>0]|0)==5)break;do{u=h+20|0;h=c[(u&p)>>2]|0;if(!h){h=0;break}}while((a[(h&n)+50>>0]|0)!=5);c[(P&p)+20>>2]=h;c[(u&p)>>2]=P;r=0;u=P;h=w;break a}while(0);c[(P&p)+20>>2]=h;c[(x&p)+8>>2]=P;r=0;u=P;h=w;break a}else{h=r;u=0;W=134}while(0);if((W|0)==134)if(!P){r=h;h=w;break}Jk(X,P);r=h;h=w}else{u=0;h=w}}else{u=0;h=0}while(0);Gk(X,r);Nk(X,l);Do(X,k);mg(X,h);i=Y;return u|0}function ar(e,f){e=e|0;f=f|0;var g=0,h=0;g=c[(e&p)+484>>2]|0;h=c[(e&p)>>2]|0;if(((g|0)!=0?(a[(e&n)+451>>0]|0)==0:0)?(b[((c[((c[((c[(h&p)+16>>2]|0)+(d[(h&n)+144>>0]<<4)&p)+4>>2]|0)&p)+4>>2]|0)&o)+22>>1]&1)==0:0){h=g+24|0;g=lr(e,c[(h&p)>>2]|0,f)|0;c[(h&p)>>2]=g;if(c[(e&p)+324>>2]|0)mr(e,g,e+320|0,1)}else Gk(h,f);return}function br(d,e,f,g,h){d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0;F=i;i=i+16|0;if((i|0)>=(j|0))fa();C=F;E=c[(d&p)>>2]|0;D=c[(d&p)+484>>2]|0;a:do if((D|0)!=0?(a[(d&n)+451>>0]|0)==0:0){z=(e|0)==0;do if(z){B=b[(D&o)+38>>1]|0;l=(B<<16>>16)+-1|0;if(B<<16>>16<1){k=0;break a}if(g)if((c[(g&p)>>2]|0)==1){l=1;k=13}else{c[(C&p)>>2]=c[((c[(D&p)+4>>2]|0)+(l*24|0)&p)>>2];c[(C&p)+4>>2]=f;th(d,35712,C);k=0;break a}else{l=1;k=12}}else{if(!g){l=c[(e&p)>>2]|0;k=12;break}l=c[(g&p)>>2]|0;if((l|0)==(c[(e&p)>>2]|0))k=13;else{th(d,35776,C);k=0;break a}}while(0);if((k|0)==12){m=f+4|0;s=m;w=0;m=(l<<3)+37+(c[(m&p)>>2]|0)|0;B=l}else if((k|0)==13){s=f+4|0;m=(l<<3)+37+(c[(s&p)>>2]|0)|0;t=c[(g&p)>>2]|0;if((t|0)>0){u=c[(g&p)+4>>2]|0;v=0;do{r=c[(u+(v*20|0)&p)+4>>2]|0;if(!r)k=1;else{q=r;while(1)if(!(a[(q&n)>>0]|0))break;else q=q+1|0;k=(q-r&1073741823)+1|0}m=k+m|0;v=v+1|0}while((v|0)<(t|0));w=1;B=l}else{w=1;B=l}}k=mh(E,m,((m|0)<0)<<31>>31)|0;if(k){fw(k|0,0,m|0)|0;c[(k&p)>>2]=D;A=D+16|0;c[(k&p)+4>>2]=c[(A&p)>>2];x=k+36|0;q=x+(B<<3)|0;y=k+8|0;c[(y&p)>>2]=q;kw(q|0,c[(f&p)>>2]|0,c[(s&p)>>2]|0)|0;a[(q+(c[(s&p)>>2]|0)&n)>>0]=0;lo(q);q=q+((c[(s&p)>>2]|0)+1)|0;c[(k&p)+20>>2]=B;b:do if(!z){if((B|0)>0){m=D+4|0;f=e+4|0;r=b[(D&o)+38>>1]|0;l=0;while(1){c:do if(r<<16>>16>0){v=c[(m&p)>>2]|0;u=c[((c[(f&p)>>2]|0)+(l*20|0)&p)+4>>2]|0;t=0;while(1){s=t+1|0;if(!(dd(c[(v+(t*24|0)&p)>>2]|0,u)|0)){s=t;break}if((s|0)<(r<<16>>16|0))t=s;else break c}c[(x+(l<<3)&p)>>2]=s}else s=0;while(0);if((s|0)>=(r<<16>>16|0))break;l=l+1|0;if((l|0)>=(B|0))break b}c[(C&p)>>2]=c[((c[(f&p)>>2]|0)+(l*20|0)&p)+4>>2];th(d,35872,C);break a}}else c[(x&p)>>2]=(b[(D&o)+38>>1]|0)+-1;while(0);if(w&(B|0)>0){r=g+4|0;s=0;while(1){m=c[((c[(r&p)>>2]|0)+(s*20|0)&p)+4>>2]|0;if(!m)l=0;else{l=m;while(1)if(!(a[(l&n)>>0]|0))break;else l=l+1|0;l=l-m&1073741823}c[(x+(s<<3)&p)+4>>2]=q;kw(q|0,m|0,l|0)|0;a[(q+l&n)>>0]=0;s=s+1|0;if((s|0)==(B|0))break;else q=q+(l+1)|0}}a[(k&n)+24>>0]=0;a[(k&n)+25>>0]=h;a[(k&n)+26>>0]=h>>>8;l=Ik((c[(D&p)+68>>2]|0)+56|0,c[(y&p)>>2]|0,k)|0;if((l|0)==(k|0)){a[(E&n)+65>>0]=1;break}if(l){c[(k&p)+12>>2]=l;c[(l&p)+16>>2]=k}c[(A&p)>>2]=k;k=0}else k=0}else k=0;while(0);mg(E,k);Nk(E,e);Nk(E,g);i=F;return}function cr(b,d){b=b|0;d=d|0;var e=0,f=0,g=0;e=c[(b&p)>>2]|0;f=a[(e&n)+62>>0]|0;g=a[(e&n)+145>>0]|0;e=Yn(e,f,d,g&255)|0;do if(!(g<<24>>24)){if((e|0)!=0?(c[(e&p)+12>>2]|0)!=0:0)break;e=ws(b,f,e,d)|0}while(0);return e|0}function dr(e,f,g,h){e=e|0;f=f|0;g=g|0;h=h|0;var k=0,l=0,m=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;i=i+16|0;if((i|0)>=(j|0))fa();z=B;v=B+12|0;A=c[(e&p)>>2]|0;do if(!(a[(A&n)+65>>0]|0)){h=(h|0)!=0;if(h){u=A+68|0;a[(u&n)>>0]=(a[(u&n)>>0]|0)+1<<24>>24;y=Ur(e,g,f+8|0)|0;a[(u&n)>>0]=(a[(u&n)>>0]|0)+-1<<24>>24}else y=Ur(e,g,f+8|0)|0;if(!y){if(!h)break;zr(e,c[(f&p)+12>>2]|0);break}s=y+68|0;l=c[(s&p)>>2]|0;a:do if(l){h=c[(A&p)+20>>2]|0;if((h|0)>0){k=c[(A&p)+16>>2]|0;q=0;while(1){m=q+1|0;if((c[(k+(q<<4)&p)+12>>2]|0)==(l|0)){m=q;break a}if((m|0)<(h|0))q=m;else break}}else m=0}else m=-1e6;while(0);w=y+44|0;if((a[(w&n)>>0]&16)!=0?(hr(e,y)|0)!=0:0)break;q=(m|0)==1;x=q?13184:13208;h=c[((c[(A&p)+16>>2]|0)+(m<<4)&p)>>2]|0;if(!(Sq(e,9,x,0,h)|0)){k=(g|0)!=0;do if(k){l=q?15:17;q=0}else{if(!(a[(w&n)>>0]&16)){l=q?13:11;q=0;break}q=y+60|0;while(1){q=c[(q&p)>>2]|0;if((c[(q&p)>>2]|0)==(A|0))break;else q=q+24|0}l=30;q=c[((c[(q&p)+4>>2]|0)&p)+4>>2]|0}while(0);if((Sq(e,l,c[(y&p)>>2]|0,q,h)|0)==0?(Sq(e,9,c[(y&p)>>2]|0,0,h)|0)==0:0){q=c[(y&p)>>2]|0;if((Fc(q,25568,7)|0)==0?(Fc(q,35488,11)|0)!=0:0){c[(z&p)>>2]=q;th(e,35504,z);break}h=y+12|0;l=(c[(h&p)>>2]|0)==0;if(k){if(l){c[(z&p)>>2]=q;th(e,35536,z);break}}else if(!l){c[(z&p)>>2]=q;th(e,35576,z);break}if(Oq(e)|0){t=e+408|0;l=c[(t&p)>>2]|0;l=(l|0)==0?e:l;Ar(e,m);u=1<>2]=c[(k&p)>>2]|u;l=l+20|0;a[(l&n)>>0]=d[(l&n)>>0]|1;Cr(e,m,28544,c[(y&p)>>2]|0);l=c[(e&p)>>2]|0;k=l+24|0;b:do if(((c[(k&p)>>2]&524288|0)!=0?(a[(w&n)>>0]&16)==0:0)?(c[(h&p)>>2]|0)==0:0){r=Oq(e)|0;v=bn((c[(s&p)>>2]|0)+56|0,c[(y&p)>>2]|0,v)|0;if((v|0)!=0?(c[(v&p)+8>>2]|0)!=0:0)q=0;else{q=c[(y&p)+16>>2]|0;if(!q)break;while(1){if(a[(q&n)+24>>0]|0)break;if(c[(k&p)>>2]&16777216)break;q=c[(q&p)+4>>2]|0;if(!q)break b}q=xs(r)|0;wh(r,135,1,q,0)|0}v=e+438|0;a[(v&n)>>0]=1;rr(e,ys(l,f,0)|0,0);a[(v&n)>>0]=0;if(!(c[(k&p)>>2]&16777216)){wh(r,135,0,(c[(r&p)+32>>2]|0)+2|0,0)|0;zs(e,787,2,0,-2,4)}if(q){l=c[(r&p)+24>>2]|0;h=~q;do if((q|0)<0){q=c[(l&p)+112>>2]|0;if(!q)break;c[(q+(h<<2)&p)>>2]=c[(r&p)+32>>2]}while(0);c[(l&p)+88>>2]=(c[(r&p)+32>>2]|0)+-1}}while(0);r=c[(e&p)>>2]|0;s=r+16|0;l=c[(s&p)>>2]|0;h=Oq(e)|0;v=c[(t&p)>>2]|0;v=(v|0)==0?e:v;Ar(e,m);t=v+328|0;c[(t&p)>>2]=c[(t&p)>>2]|u;v=v+20|0;a[(v&n)>>0]=d[(v&n)>>0]|1;if(a[(w&n)>>0]&16)wh(h,146,0,0,0)|0;q=As(e,y)|0;if(q)do{Qr(e,q);q=c[(q&p)+32>>2]|0}while((q|0)!=0);l=l+(m<<4)|0;if(a[(w&n)>>0]&8){v=c[(y&p)>>2]|0;c[(z&p)>>2]=c[(l&p)>>2];c[(z&p)+4>>2]=v;Br(e,35608,z)}v=c[(y&p)>>2]|0;c[(z&p)>>2]=c[(l&p)>>2];c[(z&p)+4>>2]=x;c[(z&p)+8>>2]=v;Br(e,35656,z);if((g|0)==0?(a[(w&n)>>0]&16)==0:0)Bs(e,y);if(a[(w&n)>>0]&16){v=c[(y&p)>>2]|0;xh(h,wh(h,148,m,0,0)|0,v,0)}k=c[(y&p)>>2]|0;xh(h,wh(h,124,m,0,0)|0,k,0);Dr(e,m);h=c[((c[(s&p)>>2]|0)+(m<<4)&p)+12>>2]|0;k=b[(h&o)+78>>1]|0;if(k&2){l=c[(h&p)+16>>2]|0;if(l){k=l;do{h=c[(k&p)+8>>2]|0;if(c[(h&p)+12>>2]|0){Lk(r,h);c[(h&p)+4>>2]=0;b[(h&o)+38>>1]=0}k=c[(k&p)>>2]|0}while((k|0)!=0);k=c[((c[(s&p)>>2]|0)+(m<<4)&p)+12>>2]|0;h=k;k=b[(k&o)+78>>1]|0}b[(h&o)+78>>1]=k&65533}}}}}while(0);Do(A,f);i=B;return}function er(b,e,f,g){b=b|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0;m=i;i=i+16|0;if((i|0)>=(j|0))fa();k=m;h=c[(b&p)>>2]|0;do if((f|0)!=0?(c[(f&p)+4>>2]|0)!=0:0){if(a[(h&n)+145>>0]|0){th(b,28488,k);f=b+64|0;c[(f&p)>>2]=(c[(f&p)>>2]|0)+1;f=-1;break}c[(g&p)>>2]=f;g=Wq(h,e)|0;f=Vh(h,g)|0;mg(h,g);if((f|0)<0){c[(k&p)>>2]=e;th(b,28512,k);f=b+64|0;c[(f&p)>>2]=(c[(f&p)>>2]|0)+1;f=-1}}else l=7;while(0);if((l|0)==7){f=d[(h&n)+144>>0]|0;c[(g&p)>>2]=e}i=m;return f|0}function fr(a,b){a=a|0;b=b|0;a:do if(!b)b=0;else while(1){if(Hr(a,c[(b&p)>>2]|0)|0){b=1;break a}if(Kr(a,c[(b&p)+32>>2]|0)|0){b=1;break a}if(Gr(a,c[(b&p)+36>>2]|0)|0){b=1;break a}if(Hr(a,c[(b&p)+40>>2]|0)|0){b=1;break a}if(Gr(a,c[(b&p)+44>>2]|0)|0){b=1;break a}if(Hr(a,c[(b&p)+48>>2]|0)|0){b=1;break a}if(Gr(a,c[(b&p)+60>>2]|0)|0){b=1;break a}if(Gr(a,c[(b&p)+64>>2]|0)|0){b=1;break a}b=c[(b&p)+52>>2]|0;if(!b){b=0;break}}while(0);return b|0}function gr(d,f,g){d=d|0;f=f|0;g=g|0;var h=0,i=0,j=0,k=0,l=0;if((f|0)!=0?(h=mh(d,72,0)|0,(h|0)!=0):0){c[(h&p)>>2]=Pr(d,c[(f&p)>>2]|0,g)|0;c[(h&p)+32>>2]=ys(d,c[(f&p)+32>>2]|0,g)|0;c[(h&p)+36>>2]=Mr(d,c[(f&p)+36>>2]|0,g,0)|0;c[(h&p)+40>>2]=Pr(d,c[(f&p)+40>>2]|0,g)|0;c[(h&p)+44>>2]=Mr(d,c[(f&p)+44>>2]|0,g,0)|0;c[(h&p)+48>>2]=Pr(d,c[(f&p)+48>>2]|0,g)|0;a[(h&n)+4>>0]=a[(f&n)+4>>0]|0;j=gr(d,c[(f&p)+52>>2]|0,g)|0;c[(h&p)+52>>2]=j;if(j)c[(j&p)+56>>2]=h;c[(h&p)+56>>2]=0;c[(h&p)+60>>2]=Mr(d,c[(f&p)+60>>2]|0,g,0)|0;c[(h&p)+64>>2]=Mr(d,c[(f&p)+64>>2]|0,g,0)|0;c[(h&p)+8>>2]=0;c[(h&p)+12>>2]=0;b[(h&o)+6>>1]=(e[(f&o)+6>>1]|0)&65527;c[(h&p)+16>>2]=-1;c[(h&p)+20>>2]=-1;l=f+24|0;j=c[(l&p)+4>>2]|0;g=h+24|0;c[(g&p)>>2]=c[(l&p)>>2];c[(g&p)+4>>2]=j;g=c[(f&p)+68>>2]|0;if((g|0)!=0?(k=c[(g&p)>>2]<<4|8,i=mh(d,k,((k|0)<0)<<31>>31)|0,(i|0)!=0):0){fw(i|0,0,k|0)|0;c[(i&p)>>2]=c[(g&p)>>2];if((c[(g&p)>>2]|0)>0){f=i+8|0;j=0;do{c[(f+(j<<4)&p)+8>>2]=gr(d,c[(g+(j<<4)&p)+16>>2]|0,0)|0;c[(f+(j<<4)&p)+4>>2]=Pr(d,c[(g+(j<<4)&p)+12>>2]|0,0)|0;c[(f+(j<<4)&p)>>2]=kh(d,c[(g+(j<<4)&p)+8>>2]|0)|0;j=j+1|0}while((j|0)<(c[(g&p)>>2]|0))}}else i=0;c[(h&p)+68>>2]=i}else h=0;return h|0}function hr(d,f){d=d|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0;w=i;i=i+16|0;if((i|0)>=(j|0))fa();s=w;k=w+8|0;m=w+4|0;v=c[(d&p)>>2]|0;q=f+44|0;h=a[(q&n)>>0]|0;a:do if(!(h&16))t=11;else{g=c[(f&p)+60>>2]|0;if(g)do{if((c[(g&p)>>2]|0)==(v|0)){t=11;break a}g=c[(g&p)+24>>2]|0}while((g|0)!=0);g=f+56|0;h=bn(v+308|0,c[(c[(g&p)>>2]&p)>>2]|0,k)|0;if((h|0)!=0?(l=c[(h&p)+8>>2]|0,(l|0)!=0):0){c[(m&p)>>2]=0;l=(zn(v,f,l,c[((c[(l&p)>>2]|0)&p)+8>>2]|0,m)|0)==0;h=c[(m&p)>>2]|0;if(l){mg(v,h);h=a[(q&n)>>0]|0;t=11;break}else{c[(s&p)>>2]=h;th(d,10344,s);mg(v,h);g=1;break}}c[(s&p)>>2]=c[(c[(g&p)>>2]&p)>>2];th(d,28320,s);g=1}while(0);do if((t|0)==11)if((h&16)==0?(u=f+38|0,r=b[(u&o)>>1]|0,r<<16>>16<=0):0){if(r<<16>>16<0){c[(s&p)>>2]=c[(f&p)>>2];th(d,26752,s);g=1;break}h=gr(v,c[(f&p)+12>>2]|0,0)|0;if(!h)g=1;else{r=v+250|0;q=a[(r&n)>>0]|0;t=d+68|0;s=c[(t&p)>>2]|0;Cs(d,c[(h&p)+32>>2]|0);b[(u&o)>>1]=-1;a[(r&n)>>0]=0;m=v+284|0;l=c[(m&p)>>2]|0;c[(m&p)>>2]=0;g=ns(d,h)|0;c[(m&p)>>2]=l;a[(r&n)>>0]=q;c[(t&p)>>2]=s;if(!g){b[(u&o)>>1]=0;g=1}else{d=g+38|0;b[(u&o)>>1]=b[(d&o)>>1]|0;t=g+4|0;c[(f&p)+4>>2]=c[(t&p)>>2];b[(d&o)>>1]=0;c[(t&p)>>2]=0;kg(v,g);g=(c[(f&p)+68>>2]|0)+78|0;b[(g&o)>>1]=e[(g&o)>>1]|0|2;g=0}Mk(v,h,1)}}else g=0;while(0);i=w;return g|0} function ir(f,g,h){f=f|0;g=g|0;h=h|0;var k=0,l=0,m=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,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,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;Ca=i;i=i+240|0;if((i|0)>=(j|0))fa();ra=Ca;sa=Ca+220|0;ka=Ca+216|0;ia=Ca+196|0;ja=Ca+176|0;ua=Ca+164|0;va=Ca+136|0;ya=Ca+88|0;ga=Ca+64|0;ma=Ca+32|0;Aa=f+464|0;Ba=c[(Aa&p)>>2]|0;oa=f+468|0;xa=c[(oa&p)>>2]|0;c[(oa&p)>>2]=xa+1;c[(Aa&p)>>2]=xa;xa=c[(f&p)>>2]|0;a:do if((((g|0)!=0?(pa=xa+65|0,(a[(pa&n)>>0]|0)==0):0)?(k=f+64|0,(c[(k&p)>>2]|0)==0):0)?(Sq(f,21,0,0,0)|0)==0:0){D=ya+0|0;C=D+48|0;do{c[(D&p)>>2]=0;D=D+4|0}while((D|0)<(C|0));la=g+48|0;if((d[(h&n)>>0]|0)<9){Nk(xa,c[(la&p)>>2]|0);c[(la&p)>>2]=0;ea=g+6|0;b[(ea&o)>>1]=e[(ea&o)>>1]&65534}Ds(f,g,0);c[(va&p)>>2]=0;c[(va&p)+4>>2]=0;c[(va&p)+8>>2]=0;c[(va&p)+12>>2]=0;c[(va&p)+16>>2]=0;c[(va&p)+20>>2]=0;c[(va&p)+24>>2]=0;c[(va&p)>>2]=c[(la&p)>>2];na=g+32|0;x=c[(na&p)>>2]|0;w=c[(g&p)>>2]|0;b:do if(((c[(k&p)>>2]|0)==0?(a[(pa&n)>>0]|0)==0:0)?(ta=g+6|0,z=(e[(ta&o)>>1]|0)>>>2&1,wa=Oq(f)|0,(wa|0)!=0):0){if((c[(w&p)>>2]|0)>1?(a[(h&n)>>0]&-2)<<24>>24==10:0){th(f,35368,ra);za=444;break}qa=g+52|0;w=c[(qa&p)>>2]|0;c:do if(!w){r=f+460|0;q=f+492|0;m=g+36|0;l=f+408|0;k=g+60|0;T=g+64|0;U=g+4|0;V=xa+60|0;W=wa+32|0;X=f+72|0;Y=ga+4|0;Z=ga+1|0;_=ga+8|0;$=ga+12|0;aa=wa+4|0;ba=wa+24|0;ca=f+19|0;da=f+56|0;ea=f+80|0;S=0;y=z;while(1){if((S|0)>=(c[(x&p)>>2]|0)){H=m;Q=0;z=y;U=x;break c}N=c[(x+(S*72|0)&p)+28>>2]|0;do if(!N)z=S;else{P=x+(S*72|0)+32|0;A=c[(P&p)>>2]|0;if(A){if(a[(x+(S*72|0)&n)+45>>0]&4){z=S;break}wh(wa,17,c[(x+(S*72|0)&p)+36>>2]|0,A,0)|0;z=S;break}c[(ra&p)>>2]=0;Es(g,ra);c[(r&p)>>2]=(c[(r&p)>>2]|0)+(c[(ra&p)>>2]|0);v=b[(N&o)+6>>1]&4;Q=c[(q&p)>>2]|0;u=c[(f&p)>>2]|0;d:do if(!(b[(u&o)+60>>1]&1)){L=c[(na&p)>>2]|0;t=c[(L+(S*72|0)&p)+48>>2]|0;K=L+(S*72|0)+28|0;O=c[(K&p)>>2]|0;s=v<<16>>16!=0;do if(s){if(y){za=120;break d}if((c[(L&p)>>2]|0)>1){za=120;break d}R=c[(m&p)>>2]|0;if((R|0)!=0?(c[(R&p)+4>>2]&2097152|0)!=0:0){za=120;break d}H=c[(g&p)>>2]|0;do if(H){E=c[(H&p)>>2]|0;if((E|0)<=0)break;I=c[(H&p)+4>>2]|0;H=0;F=0;do{F=c[((c[(I+(H*20|0)&p)>>2]|0)&p)+4>>2]|F;H=H+1|0}while((H|0)!=(E|0));if(F&2097152){za=120;break d}}while(0);H=c[(la&p)>>2]|0;if(!H)break;E=c[(H&p)>>2]|0;if((E|0)<=0)break;I=c[(H&p)+4>>2]|0;H=0;F=0;do{F=c[((c[(I+(H*20|0)&p)>>2]|0)&p)+4>>2]|F;H=H+1|0}while((H|0)!=(E|0));if(F&2097152){za=120;break d}}while(0);I=c[(O&p)+32>>2]|0;H=(c[(O&p)+60>>2]|0)==0;if(!H?(c[(k&p)>>2]|0)!=0:0){za=120;break}if(c[(O&p)+64>>2]|0){za=120;break}E=b[(ta&o)>>1]|0;F=(E&64)==0;if(!(F|H)){za=120;break}if(!(c[(I&p)>>2]|0)){za=120;break}D=b[(O&o)+6>>1]|0;if(D&1){za=120;break}I=H|F^1;if(!I?(c[(L&p)>>2]|0)>1|(y|0)!=0:0){za=120;break}H=E&1;if(H<<16>>16!=0&s){za=120;break}B=c[(la&p)>>2]|0;C=(B|0)==0;if(!C?(c[(O&p)+48>>2]|0)!=0:0){za=120;break}J=(y|0)!=0;if(J?(c[(O&p)+48>>2]|0)!=0:0){za=120;break}if(I){if(D&6144){za=120;break}}else if(!((c[(m&p)>>2]|0)==0&H<<16>>16==0&(D&6144)==0)){za=120;break}if((E&2048)!=0?(c[(O&p)+52>>2]|0)!=0:0){za=120;break}R=L+(S*72|0)+44|0;if(a[(R&n)>>0]&32){za=120;break}E=O+52|0;I=c[(E&p)>>2]|0;do if(I){if(!(H<<16>>16==0&(((c[(O&p)+48>>2]|0)!=0|J)^1))){za=120;break d}if((c[(L&p)>>2]|0)!=1){za=120;break d}e:do if(O){if(!(D&5))F=O;else{za=120;break d}while(1){H=(I|0)==0;if(!H?(a[(F&n)+4>>0]|0)!=116:0){za=120;break d}if((c[(c[(F&p)+32>>2]&p)>>2]|0)<1){za=120;break d}if((c[(c[(O&p)>>2]&p)>>2]|0)!=(c[(c[(F&p)>>2]&p)>>2]|0)){za=120;break d}if(H)break e;if(b[(I&o)+6>>1]&5){za=120;break d}F=I;I=c[(I&p)+52>>2]|0}}while(0);if(C)break;F=c[(B&p)>>2]|0;if((F|0)<=0)break;I=c[(B&p)+4>>2]|0;H=0;do{if(!(b[(I+(H*20|0)&o)+16>>1]|0)){za=120;break d}H=H+1|0}while((H|0)<(F|0))}while(0);A=L+(S*72|0)+16|0;c[(q&p)>>2]=c[(A&p)>>2];Sq(f,21,0,0,0)|0;c[(q&p)>>2]=Q;I=c[(E&p)>>2]|0;f:do if(!I)za=81;else{B=u+65|0;E=c[(la&p)>>2]|0;D=c[(k&p)>>2]|0;C=c[(T&p)>>2]|0;F=c[(qa&p)>>2]|0;while(1){c[(la&p)>>2]=0;c[(na&p)>>2]=0;c[(qa&p)>>2]=0;c[(k&p)>>2]=0;c[(T&p)>>2]=0;H=gr(u,g,0)|0;c[(T&p)>>2]=C;c[(k&p)>>2]=D;c[(la&p)>>2]=E;c[(na&p)>>2]=L;a[(U&n)>>0]=116;if(!H)H=F;else{c[(H&p)+52>>2]=F;if(F)c[(F&p)+56>>2]=H;c[(H&p)+56>>2]=g}c[(qa&p)>>2]=H;if(a[(B&n)>>0]|0)break f;I=c[(I&p)+52>>2]|0;if(!I){za=81;break}else F=H}}while(0);if((za|0)==81){za=0;M=c[(K&p)>>2]|0;E=L+(S*72|0)+12|0;mg(u,c[(E&p)>>2]|0);mg(u,c[(A&p)>>2]|0);F=L+(S*72|0)+20|0;mg(u,c[(F&p)>>2]|0);c[(E&p)>>2]=0;c[(A&p)>>2]=0;c[(F&p)>>2]=0;c[(K&p)>>2]=0;F=L+(S*72|0)+24|0;E=c[(F&p)>>2]|0;if(E){D=E+40|0;C=b[(D&o)>>1]|0;if(C<<16>>16==1){Q=c[(l&p)>>2]|0;Q=((Q|0)==0?f:Q)+524|0;c[(E&p)+72>>2]=c[(Q&p)>>2];c[(Q&p)>>2]=E}else b[(D&o)>>1]=C+-1<<16>>16;c[(F&p)>>2]=0}Q=S+1|0;P=u+65|0;O=g;N=M;while(1){B=c[(N&p)+32>>2]|0;A=c[(B&p)>>2]|0;H=O+32|0;I=c[(H&p)>>2]|0;if(!I){I=pr(u,0,0,0)|0;c[(H&p)>>2]=I;if(!I)break;else z=0}else z=a[(R&n)>>0]|0;if((A|0)>1){I=Fs(u,I,A+-1|0,Q)|0;c[(H&p)>>2]=I;if(a[(P&n)>>0]|0)break}if((A|0)>0){F=0;do{D=F+S|0;Hk(u,c[(I+(D*72|0)&p)+56>>2]|0);H=B+(F*72|0)+8|0;D=I+(D*72|0)+8|0;E=H+0|0;C=D+72|0;do{c[(D&p)>>2]=c[(E&p)>>2];D=D+4|0;E=E+4|0}while((D|0)<(C|0));D=H+0|0;C=D+72|0;do{c[(D&p)>>2]=0;D=D+4|0}while((D|0)<(C|0));F=F+1|0}while((F|0)!=(A|0))}a[(I+(S*72|0)&n)+44>>0]=z;H=c[(O&p)>>2]|0;I=c[(H&p)>>2]|0;if((I|0)>0){D=H+4|0;F=c[(D&p)>>2]|0;E=0;do{if(!(c[(F+(E*20|0)&p)+4>>2]|0)){I=kh(u,c[(F+(E*20|0)&p)+8>>2]|0)|0;lo(I);F=c[(D&p)>>2]|0;c[(F+(E*20|0)&p)+4>>2]=I;I=c[(H&p)>>2]|0}E=E+1|0}while((E|0)<(I|0));H=c[(O&p)>>2]|0}Gs(u,H,t,c[(N&p)>>2]|0);if(J){Gs(u,c[(O&p)+40>>2]|0,t,c[(N&p)>>2]|0);L=O+44|0;c[(L&p)>>2]=Hs(u,c[(L&p)>>2]|0,t,c[(N&p)>>2]|0)|0}I=N+48|0;H=c[(I&p)>>2]|0;do if(!H){H=c[(O&p)+48>>2]|0;if(!H)break;Gs(u,H,t,c[(N&p)>>2]|0)}else{F=c[(H&p)>>2]|0;if((F|0)>0){E=c[(H&p)+4>>2]|0;D=0;do{b[(E+(D*20|0)&o)+16>>1]=0;D=D+1|0}while((D|0)!=(F|0))}c[(O&p)+48>>2]=H;c[(I&p)>>2]=0}while(0);H=c[(N&p)+36>>2]|0;if(!H)F=0;else F=Mr(u,H,0,0)|0;I=O+36|0;H=c[(I&p)>>2]|0;if(s){L=O+44|0;c[(L&p)>>2]=H;c[(I&p)>>2]=F;K=Hs(u,H,t,c[(N&p)>>2]|0)|0;c[(L&p)>>2]=K;c[(L&p)>>2]=ss(u,K,Mr(u,c[(N&p)+44>>2]|0,0,0)|0)|0;c[(O&p)+40>>2]=Pr(u,c[(N&p)+40>>2]|0,0)|0}else{L=Hs(u,H,t,c[(N&p)>>2]|0)|0;c[(I&p)>>2]=L;c[(I&p)>>2]=ss(u,L,F)|0}H=O+6|0;b[(H&o)>>1]=e[(H&o)>>1]|e[(N&o)+6>>1]&1;H=N+60|0;F=c[(H&p)>>2]|0;if(F){c[(O&p)+60>>2]=F;c[(H&p)>>2]=0}O=c[(O&p)+52>>2]|0;if(!O)break;else N=c[(N&p)+52>>2]|0}Mk(u,M,1)}if(!(v<<16>>16)){z=-1;break}b[(ta&o)>>1]=e[(ta&o)>>1]|4;z=-1;y=1}else za=120;while(0);g:do if((za|0)==120){za=0;do if((c[(x&p)>>2]|0)==1){if(b[(V&o)>>1]&256)break;D=c[(W&p)>>2]|0;R=D+1|0;Q=(c[(X&p)>>2]|0)+1|0;c[(X&p)>>2]=Q;z=x+(S*72|0)+36|0;c[(z&p)>>2]=Q;wh(wa,20,Q,0,R)|0;c[(P&p)>>2]=R;R=c[(z&p)>>2]|0;a[(ga&n)>>0]=13;c[(Y&p)>>2]=R;a[(Z&n)>>0]=0;c[(_&p)>>2]=0;c[($&p)>>2]=0;a[(x+(S*72|0)&n)+46>>0]=c[(oa&p)>>2];ir(f,N,ga)|0;R=N+24|0;R=fs(c[(R&p)>>2]|0,c[(R&p)+4>>2]|0)|0;b[((c[(x+(S*72|0)&p)+24>>2]|0)&o)+28>>1]=R;R=x+(S*72|0)+45|0;a[(R&n)>>0]=a[(R&n)>>0]|4;c[(x+(S*72|0)&p)+40>>2]=c[(_&p)>>2];wh(wa,21,c[(z&p)>>2]|0,0,0)|0;z=c[(W&p)>>2]|0;if(z>>>0>D>>>0)c[((c[(aa&p)>>2]|0)+(D*20|0)&p)+8>>2]=z;c[((c[(ba&p)>>2]|0)&p)+88>>2]=z+-1;a[(ca&n)>>0]=0;c[(da&p)>>2]=0;z=S;break g}while(0);C=(c[(X&p)>>2]|0)+1|0;c[(X&p)>>2]=C;E=x+(S*72|0)+36|0;c[(E&p)>>2]=C;C=wh(wa,25,0,C,0)|0;c[(P&p)>>2]=C+1;if(!(a[(x+(S*72|0)&n)+45>>0]&2)){R=Oq(f)|0;D=c[(ea&p)>>2]|0;c[(ea&p)>>2]=D+1;D=wh(R,44,D,0,0)|0}else D=0;R=c[(x+(S*72|0)&p)+48>>2]|0;a[(ga&n)>>0]=12;c[(Y&p)>>2]=R;a[(Z&n)>>0]=0;c[(_&p)>>2]=0;c[($&p)>>2]=0;a[(x+(S*72|0)&n)+46>>0]=c[(oa&p)>>2];ir(f,N,ga)|0;R=N+24|0;R=fs(c[(R&p)>>2]|0,c[(R&p)+4>>2]|0)|0;b[((c[(x+(S*72|0)&p)+24>>2]|0)&o)+28>>1]=R;if(D){A=c[(W&p)>>2]|0;if(A>>>0>D>>>0)c[((c[(aa&p)>>2]|0)+(D*20|0)&p)+8>>2]=A;c[((c[(ba&p)>>2]|0)&p)+88>>2]=A+-1}z=wh(wa,18,c[(E&p)>>2]|0,0,0)|0;if((c[(W&p)>>2]|0)>>>0>C>>>0)c[((c[(aa&p)>>2]|0)+(C*20|0)&p)+4>>2]=z;a[(ca&n)>>0]=0;c[(da&p)>>2]=0;z=S}while(0);if(a[(pa&n)>>0]|0){za=444;break b}c[(ra&p)>>2]=0;Es(g,ra);c[(r&p)>>2]=(c[(r&p)>>2]|0)-(c[(ra&p)>>2]|0);x=c[(na&p)>>2]|0;if((d[(h&n)>>0]|0)<9)break;c[(va&p)>>2]=c[(la&p)>>2]}while(0);w=c[(qa&p)>>2]|0;if(!w)S=z+1|0;else{H=m;Q=w;z=y;U=x;break}}}else{H=g+36|0;Q=w;U=x}while(0);T=c[(g&p)>>2]|0;B=c[(H&p)>>2]|0;l=g+40|0;w=c[(l&p)>>2]|0;I=g+44|0;ga=c[(I&p)>>2]|0;m=b[(ta&o)>>1]|0;a[(ua&n)>>0]=m&1;if(Q){O=c[(f&p)>>2]|0;c[(sa&p)>>2]=c[(h&p)>>2];c[(sa&p)+4>>2]=c[(h&p)+4>>2];c[(sa&p)+8>>2]=c[(h&p)+8>>2];c[(sa&p)+12>>2]=c[(h&p)+12>>2];c[(sa&p)+16>>2]=c[(h&p)+16>>2];h:do if(!(c[(Q&p)+48>>2]|0)){x=Q+60|0;if(c[(x&p)>>2]|0){k=d[(g&n)+4>>0]|0;if((k|0)==118)k=35336;else if((k|0)==117)k=35352;else if((k|0)==116)k=35320;else k=35360;c[(ra&p)>>2]=k;th(f,35072,ra);m=0;k=1;za=227;break}R=Oq(f)|0;t=a[(sa&n)>>0]|0;if(t<<24>>24==12){wh(R,57,c[(sa&p)+4>>2]|0,c[(c[(g&p)>>2]&p)>>2]|0,0)|0;t=c[(R&p)+4>>2]|0;if(t)a[(t+(((c[(R&p)+32>>2]|0)+-1|0)*20|0)&n)+3>>0]=8;a[(sa&n)>>0]=14;t=14}s=e[(ta&o)>>1]|0;if(s&256){m=0;k=Is(f,g,sa)|0;za=227;break}if((c[(c[(g&p)>>2]&p)>>2]|0)!=(c[(c[(Q&p)>>2]&p)>>2]|0)){Js(f,g);m=0;k=1;za=227;break}do if(!(s&2048)){if(c[(la&p)>>2]|0){k=Ls(f,g,h)|0;break h}P=g+4|0;s=d[(P&n)>>0]|0;if((s|0)==116){v=g+8|0;t=Q+8|0;c[(t&p)>>2]=c[(v&p)>>2];u=g+12|0;s=Q+12|0;c[(s&p)>>2]=c[(u&p)>>2];da=g+60|0;c[(x&p)>>2]=c[(da&p)>>2];ea=g+64|0;c[(Q&p)+64>>2]=c[(ea&p)>>2];q=c[(oa&p)>>2]|0;k=ir(f,Q,sa)|0;c[(da&p)>>2]=0;c[(ea&p)>>2]=0;if(k){m=0;za=227;break h}c[(qa&p)>>2]=0;t=c[(t&p)>>2]|0;c[(v&p)>>2]=t;c[(u&p)>>2]=c[(s&p)>>2];if(!t)w=0;else w=wh(R,46,t,0,0)|0;l=c[(oa&p)>>2]|0;k=ir(f,g,sa)|0;m=c[(qa&p)>>2]|0;c[(qa&p)>>2]=Q;ea=Q+24|0;r=g+24|0;t=r;ea=jw(c[(t&p)>>2]|0,c[(t&p)+4>>2]|0,c[(ea&p)>>2]|0,c[(ea&p)+4>>2]|0)|0;t=r;c[(t&p)>>2]=ea;c[(t&p)+4>>2]=G;t=c[(x&p)>>2]|0;do if(t){ea=(Ms(t,ka)|0)!=0;t=c[(ka&p)>>2]|0;if(!(ea&(t|0)>0))break;ea=r;da=c[(ea&p)+4>>2]|0;s=((t|0)<0)<<31>>31;if(!(da>>>0>s>>>0|((da|0)==(s|0)?(c[(ea&p)>>2]|0)>>>0>t>>>0:0)))break;ea=r;c[(ea&p)>>2]=t;c[(ea&p)+4>>2]=s}while(0);if(!w){w=P;v=q;t=l;break}r=c[(R&p)+32>>2]|0;if(r>>>0>w>>>0)c[((c[(R&p)+4>>2]|0)+(w*20|0)&p)+8>>2]=r;c[((c[(R&p)+24>>2]|0)&p)+88>>2]=r+-1;w=P;v=q;t=l;break}else if((s|0)==115|(s|0)==117){if(t<<24>>24==1)s=c[(sa&p)+4>>2]|0;else{r=f+68|0;s=c[(r&p)>>2]|0;c[(r&p)>>2]=s+1;c[(g&p)+16>>2]=wh(R,57,s,0,0)|0;r=g;while(1){t=c[(r&p)+56>>2]|0;if(!t)break;else r=t}ea=r+6|0;b[(ea&o)>>1]=e[(ea&o)>>1]|8}a[(ia&n)>>0]=1;c[(ia&p)+4>>2]=s;a[(ia&n)+1>>0]=0;c[(ia&p)+8>>2]=0;c[(ia&p)+12>>2]=0;y=c[(oa&p)>>2]|0;k=ir(f,Q,ia)|0;if(k){m=0;za=227;break h}x=(a[(P&n)>>0]|0)==117?2:1;c[(qa&p)>>2]=0;v=g+60|0;u=c[(v&p)>>2]|0;c[(v&p)>>2]=0;t=g+64|0;r=c[(t&p)>>2]|0;c[(t&p)>>2]=0;a[(ia&n)>>0]=x;x=c[(oa&p)>>2]|0;k=ir(f,g,ia)|0;Nk(O,c[(la&p)>>2]|0);m=c[(qa&p)>>2]|0;c[(qa&p)>>2]=Q;c[(la&p)>>2]=0;if((a[(P&n)>>0]|0)==115){da=Q+24|0;ea=g+24|0;ca=ea;da=jw(c[(ca&p)>>2]|0,c[(ca&p)+4>>2]|0,c[(da&p)>>2]|0,c[(da&p)+4>>2]|0)|0;c[(ea&p)>>2]=da;c[(ea&p)+4>>2]=G}Gk(O,c[(v&p)>>2]|0);c[(v&p)>>2]=u;c[(t&p)>>2]=r;c[(g&p)+8>>2]=0;c[(g&p)+12>>2]=0;r=a[(sa&n)>>0]|0;if(r<<24>>24==9){r=g;while(1){q=c[(r&p)+52>>2]|0;if(!q)break;else r=q}Ns(f,0,c[(r&p)>>2]|0)}else if(r<<24>>24==1){w=P;v=y;t=x;break}l=xs(R)|0;ea=xs(R)|0;Os(f,g,l);wh(R,108,s,l,0)|0;w=R+32|0;v=c[(w&p)>>2]|0;Ps(f,g,c[(g&p)>>2]|0,s,0,0,sa,ea,l);u=R+24|0;t=c[(u&p)>>2]|0;r=~ea;do if((ea|0)<0){q=c[(t&p)+112>>2]|0;if(!q)break;c[(q+(r<<2)&p)>>2]=c[(w&p)>>2]}while(0);c[(t&p)+88>>2]=(c[(w&p)>>2]|0)+-1;wh(R,9,s,v,0)|0;r=c[(u&p)>>2]|0;q=~l;do if((l|0)<0){t=c[(r&p)+112>>2]|0;if(!t)break;c[(t+(q<<2)&p)>>2]=c[(w&p)>>2]}while(0);c[(r&p)+88>>2]=(c[(w&p)>>2]|0)+-1;wh(R,61,s,0,0)|0;w=P;v=y;t=x;break}else{r=f+68|0;A=c[(r&p)>>2]|0;c[(r&p)>>2]=A+2;c[(g&p)+16>>2]=wh(R,57,A,0,0)|0;r=g;while(1){q=c[(r&p)+56>>2]|0;if(!q)break;else r=q}y=A+1|0;v=r+6|0;b[(v&o)>>1]=e[(v&o)>>1]|8;a[(ja&n)>>0]=1;v=ja+4|0;c[(v&p)>>2]=A;a[(ja&n)+1>>0]=0;c[(ja&p)+8>>2]=0;c[(ja&p)+12>>2]=0;x=c[(oa&p)>>2]|0;k=ir(f,Q,ja)|0;if(k){m=0;za=227;break h}c[(g&p)+20>>2]=wh(R,57,y,0,0)|0;c[(qa&p)>>2]=0;w=g+60|0;l=c[(w&p)>>2]|0;c[(w&p)>>2]=0;q=g+64|0;r=c[(q&p)>>2]|0;c[(q&p)>>2]=0;c[(v&p)>>2]=y;z=c[(oa&p)>>2]|0;k=ir(f,g,ja)|0;m=c[(qa&p)>>2]|0;c[(qa&p)>>2]=Q;t=g+24|0;ea=t;da=c[(ea&p)+4>>2]|0;u=Q+24|0;v=c[(u&p)>>2]|0;u=c[(u&p)+4>>2]|0;if(da>>>0>u>>>0|((da|0)==(u|0)?(c[(ea&p)>>2]|0)>>>0>v>>>0:0)){ea=t;c[(ea&p)>>2]=v;c[(ea&p)+4>>2]=u}Gk(O,c[(w&p)>>2]|0);c[(w&p)>>2]=l;c[(q&p)>>2]=r;if((a[(sa&n)>>0]|0)==9){t=g;while(1){s=c[(t&p)+52>>2]|0;if(!s)break;else t=s}Ns(f,0,c[(t&p)>>2]|0)}q=xs(R)|0;w=xs(R)|0;Os(f,g,q);wh(R,108,A,q,0)|0;t=f+19|0;s=a[(t&n)>>0]|0;if(!(s<<24>>24)){ea=f+72|0;t=(c[(ea&p)>>2]|0)+1|0;c[(ea&p)>>2]=t}else{ea=s+-1<<24>>24;a[(t&n)>>0]=ea;t=c[(f+((ea&255)<<2)&p)+24>>2]|0}l=wh(R,101,A,t,0)|0;xh(R,wh(R,68,y,w,t)|0,0,-14);_r(f,t);Ps(f,g,c[(g&p)>>2]|0,A,0,0,sa,w,q);t=R+24|0;s=c[(t&p)>>2]|0;u=~w;do if((w|0)<0){v=c[(s&p)+112>>2]|0;if(!v)break;c[(v+(u<<2)&p)>>2]=c[(R&p)+32>>2]}while(0);v=R+32|0;c[(s&p)+88>>2]=(c[(v&p)>>2]|0)+-1;wh(R,9,A,l,0)|0;s=c[(t&p)>>2]|0;r=~q;do if((q|0)<0){t=c[(s&p)+112>>2]|0;if(!t)break;c[(t+(r<<2)&p)>>2]=c[(v&p)>>2]}while(0);c[(s&p)+88>>2]=(c[(v&p)>>2]|0)+-1;wh(R,61,y,0,0)|0;wh(R,61,A,0,0)|0;w=P;v=x;t=z;break}}else{Ks(f,g,sa);w=g+4|0;v=0;t=0;m=0;k=0}while(0);ea=a[(w&n)>>0]|0;Qs(f,ea&255,v,t,ea<<24>>24!=116&1);if(!(b[(ta&o)>>1]&8)){za=227;break}u=c[(c[(g&p)>>2]&p)>>2]|0;v=Rs(O,u,1)|0;if(!v){k=7;za=227;break}if((u|0)>0){l=O+8|0;q=v+20|0;r=0;while(1){ea=Ss(f,g,r)|0;c[(q&p)>>2]=ea;if(!ea)c[(q&p)>>2]=c[(l&p)>>2];r=r+1|0;if((r|0)==(u|0))break;else q=q+4|0}}s=R+32|0;t=R+4|0;do{l=0;do{r=g+(l<<2)+16|0;q=c[(r&p)>>2]|0;if((q|0)<0)break;if((c[(s&p)>>2]|0)>>>0>q>>>0)c[((c[(t&p)>>2]|0)+(q*20|0)&p)+8>>2]=u;c[(v&p)>>2]=(c[(v&p)>>2]|0)+1;xh(R,q,v,-6);c[(r&p)>>2]=-1;l=l+1|0}while((l|0)<2);g=c[(g&p)+52>>2]|0}while((g|0)!=0);ea=(c[(v&p)>>2]|0)+-1|0;c[(v&p)>>2]=ea;if(ea){za=227;break}Wc(v);za=227}else{k=d[(g&n)+4>>0]|0;if((k|0)==118)k=35336;else if((k|0)==117)k=35352;else if((k|0)==116)k=35320;else k=35360;c[(ra&p)>>2]=k;th(f,35024,ra);m=0;k=1;za=227}while(0);if((za|0)==227){c[(h&p)+8>>2]=c[(sa&p)+8>>2];c[(h&p)+12>>2]=c[(sa&p)+12>>2];Mk(O,m,1)}c[(Aa&p)>>2]=Ba;break a}if((m&5)==1){k=c[(va&p)>>2]|0;if(!(Ts(k,T,-1)|0)){b[(ta&o)>>1]=m&65534;w=Pr(xa,T,0)|0;c[(l&p)>>2]=w;za=232}}else za=232;if((za|0)==232)k=c[(va&p)>>2]|0;if(!k)k=-1;else{ea=Us(f,k,0,c[(T&p)>>2]|0)|0;da=f+68|0;k=c[(da&p)>>2]|0;c[(da&p)>>2]=k+1;c[(va&p)+8>>2]=k;k=wh(wa,57,k,(c[(c[(va&p)>>2]&p)>>2]|0)+1+(c[(T&p)>>2]|0)|0,0)|0;xh(wa,k,ea,-6)}R=va+20|0;c[(R&p)>>2]=k;if((a[(h&n)>>0]|0)==12)wh(wa,57,c[(h&p)+4>>2]|0,c[(T&p)>>2]|0,0)|0;qa=xs(wa)|0;y=g+24|0;ea=y;c[(ea&p)>>2]=-1;c[(ea&p)+4>>2]=2147483647;Os(f,g,qa);if((c[(g&p)+8>>2]|0)==0?(ha=c[(R&p)>>2]|0,(ha|0)>-1):0){if(!(a[((c[(wa&p)>>2]|0)&n)+65>>0]|0))k=(c[(wa&p)+4>>2]|0)+(ha*20|0)|0;else k=29120;a[(k&n)>>0]=58;ea=va+24|0;a[(ea&n)>>0]=d[(ea&n)>>0]|1}if(!(b[(ta&o)>>1]&1))a[(ua&n)+1>>0]=0;else{ea=f+68|0;k=c[(ea&p)>>2]|0;c[(ea&p)>>2]=k+1;c[(ua&p)+4>>2]=k;ea=Us(f,c[(g&p)>>2]|0,0,0)|0;k=wh(wa,57,k,0,0)|0;xh(wa,k,ea,-6);c[(ua&p)+8>>2]=k;k=c[(wa&p)+4>>2]|0;if(k)a[(k+(((c[(wa&p)+32>>2]|0)+-1|0)*20|0)&n)+3>>0]=8;a[(ua&n)+1>>0]=3}if((z|0)==0&(w|0)==0){v=Vs(f,U,B,c[(va&p)>>2]|0,c[(g&p)>>2]|0,(a[(ua&n)>>0]|0)!=0?1024:0,0)|0;if(!v){za=444;break}t=Ws(b[(v&o)+32>>1]|0)|0;s=G;ea=y;da=c[(ea&p)+4>>2]|0;if(s>>>0>>0|((s|0)==(da|0)?t>>>0<(c[(ea&p)>>2]|0)>>>0:0)){ea=y;c[(ea&p)>>2]=t;c[(ea&p)+4>>2]=s}do if(a[(ua&n)>>0]|0){t=a[(v&n)+40>>0]|0;if(!(t<<24>>24))break;a[(ua&n)+1>>0]=t}while(0);t=c[(va&p)>>2]|0;do if(!t)za=257;else{ea=a[(v&n)+36>>0]|0;c[(va&p)+4>>2]=ea;if((ea|0)!=(c[(t&p)>>2]|0))break;c[(va&p)>>2]=0;za=257}while(0);do if((za|0)==257){r=c[(R&p)>>2]|0;if((r|0)<=-1)break;zh(wa,r)}while(0);Ps(f,g,T,-1,va,ua,h,c[(v&p)+48>>2]|0,c[(v&p)+52>>2]|0);Xs(v)}else{z=(w|0)!=0;do if(z){l=c[(g&p)>>2]|0;k=c[(l&p)>>2]|0;if((k|0)>0){l=c[(l&p)+4>>2]|0;while(1){b[(l&o)+18>>1]=0;k=k+-1|0;if((k|0)<=0)break;else l=l+20|0}}k=c[(w&p)>>2]|0;if((k|0)>0){l=c[(w&p)+4>>2]|0;while(1){b[(l&o)+18>>1]=0;k=k+-1|0;if((k|0)<=0)break;else l=l+20|0}}ea=y;da=c[(ea&p)+4>>2]|0;if(!(da>>>0>0|(da|0)==0&(c[(ea&p)>>2]|0)>>>0>100))break;ea=y;c[(ea&p)>>2]=100;c[(ea&p)+4>>2]=0}else{ea=y;c[(ea&p)>>2]=1;c[(ea&p)+4>>2]=0}while(0);P=(Ts(w,c[(va&p)>>2]|0,-1)|0)==0;S=xs(wa)|0;c[(ma&p)>>2]=0;c[(ma&p)+4>>2]=0;c[(ma&p)+8>>2]=0;c[(ma&p)+12>>2]=0;c[(ma&p)+16>>2]=0;c[(ma&p)+20>>2]=0;c[(ma&p)+24>>2]=0;c[(ma&p)+28>>2]=0;c[(ma&p)>>2]=f;c[(ma&p)+4>>2]=U;c[(ma&p)+12>>2]=ya;K=f+72|0;c[(ya&p)+16>>2]=(c[(K&p)>>2]|0)+1;if(z)k=c[(w&p)>>2]|0;else k=0;y=ya+12|0;c[(y&p)>>2]=k;c[(ya&p)+24>>2]=w;Ys(ma,T);Ys(ma,c[(va&p)>>2]|0);if(ga){c[(ra&p)>>2]=0;c[(ra&p)+4>>2]=0;c[(ra&p)+8>>2]=0;c[(ra&p)+12>>2]=0;c[(ra&p)+16>>2]=0;c[(ra&p)+20>>2]=0;c[(ra&p)>>2]=80;c[(ra&p)+4>>2]=81;c[(ra&p)+24>>2]=ma;rs(ra,ga)|0}A=ya+32|0;c[(ya&p)+36>>2]=c[(A&p)>>2];r=ya+44|0;k=c[(r&p)>>2]|0;if((k|0)>0){x=ma+28|0;l=ya+40|0;m=b[(x&o)>>1]|0;q=0;do{b[(x&o)>>1]=m&65535|8;Ys(ma,c[((c[((c[(l&p)>>2]|0)+(q<<4)&p)>>2]|0)&p)+20>>2]|0);m=e[(x&o)>>1]&65527;b[(x&o)>>1]=m;q=q+1|0;k=c[(r&p)>>2]|0}while((q|0)<(k|0))}c[(ya&p)+20>>2]=c[(K&p)>>2];if(a[(pa&n)>>0]|0){za=444;break}if(z){I=f+68|0;H=c[(I&p)>>2]|0;c[(I&p)>>2]=H+1;v=ya+4|0;c[(v&p)>>2]=H;H=Us(f,w,0,c[(A&p)>>2]|0)|0;u=wh(wa,58,c[(v&p)>>2]|0,c[(y&p)>>2]|0,0)|0;xh(wa,u,H,-6);N=c[(K&p)>>2]|0;M=N+1|0;J=N+2|0;N=N+3|0;c[(K&p)>>2]=N;L=xs(wa)|0;Q=(c[(K&p)>>2]|0)+1|0;c[(K&p)>>2]=Q;O=xs(wa)|0;t=c[(K&p)>>2]|0;r=t+1|0;ea=c[(w&p)>>2]|0;da=ea+t|0;s=da+1|0;c[(K&p)>>2]=da+ea;wh(wa,25,0,J,0)|0;wh(wa,25,0,M,0)|0;wh(wa,28,0,r,(c[(w&p)>>2]|0)+t|0)|0;wh(wa,17,Q,O,0)|0;t=Vs(f,U,B,w,0,P?2304:256,0)|0;if(!t){za=444;break}if((a[(t&n)+36>>0]|0)==(c[(w&p)>>2]|0)){x=0;k=0;y=0}else{if(!(a[(ua&n)>>0]|0))k=34824;else k=(b[(ta&o)>>1]&1)==0?34808:34824;$s(f,k);D=c[(w&p)>>2]|0;k=c[(A&p)>>2]|0;if((k|0)>0){l=c[(ya&p)+28>>2]|0;m=0;y=D;x=D;do{if((c[(l+(m*24|0)&p)+12>>2]|0)>=(y|0)){y=y+1|0;x=x+1|0}m=m+1|0}while((m|0)<(k|0));F=x}else F=D;E=f+60|0;x=c[(E&p)>>2]|0;B=f+56|0;k=c[(B&p)>>2]|0;if((k|0)<(F|0)){C=c[(K&p)>>2]|0;c[(K&p)>>2]=C+F;C=C+1|0}else{c[(E&p)>>2]=x+F;c[(B&p)>>2]=k-F;C=x}at(f);bt(f,w,C,0);y=c[(A&p)>>2]|0;if((y|0)>0){m=ya+28|0;z=0;x=D;do{k=c[(m&p)>>2]|0;if((c[(k+(z*24|0)&p)+12>>2]|0)>=(x|0)){l=x+C|0;y=ct(f,c[(k+(z*24|0)&p)>>2]|0,c[(k+(z*24|0)&p)+8>>2]|0,c[(k+(z*24|0)&p)+4>>2]|0,l,0)|0;if((l|0)!=(y|0))wh(wa,34,y,l,0)|0;y=c[(A&p)>>2]|0;x=x+1|0}z=z+1|0}while((z|0)<(y|0))}y=f+19|0;x=a[(y&n)>>0]|0;if(!(x<<24>>24)){x=(c[(K&p)>>2]|0)+1|0;c[(K&p)>>2]=x}else{x=x+-1<<24>>24;a[(y&n)>>0]=x;x=c[(f+((x&255)<<2)&p)+24>>2]|0}wh(wa,49,C,F,x)|0;wh(wa,109,c[(v&p)>>2]|0,x,0)|0;_r(f,x);dt(f,C,F);if((c[(B&p)>>2]|0)<(F|0)){c[(B&p)>>2]=F;c[(E&p)>>2]=C}Xs(t);l=c[(I&p)>>2]|0;c[(I&p)>>2]=l+1;c[(ya&p)+8>>2]=l;k=a[(y&n)>>0]|0;if(!(k<<24>>24)){k=(c[(K&p)>>2]|0)+1|0;c[(K&p)>>2]=k}else{k=k+-1<<24>>24;a[(y&n)>>0]=k;k=c[(f+((k&255)<<2)&p)+24>>2]|0}wh(wa,60,l,k,F)|0;wh(wa,106,c[(v&p)>>2]|0,S,0)|0;a[(ya&n)+1>>0]=1;at(f);x=1;y=l}do if(P){if(b[(xa&o)+60>>1]&4)break;if((x|0)==0?(a[(t&n)+37>>0]|0)==0:0)break;c[(va&p)>>2]=0;zh(wa,c[(R&p)>>2]|0)}while(0);A=wa+32|0;q=c[(A&p)>>2]|0;at(f);x=(x|0)!=0;if(x)wh(wa,100,c[(v&p)>>2]|0,k,y)|0;k=c[(w&p)>>2]|0;if((k|0)>0){l=w+4|0;m=0;do{if(x)wh(wa,47,y,m,m+s|0)|0;else{a[(ya&n)>>0]=1;Rq(f,c[((c[(l&p)>>2]|0)+(m*20|0)&p)>>2]|0,m+s|0)}m=m+1|0;k=c[(w&p)>>2]|0}while((m|0)<(k|0))}if(H)c[(H&p)>>2]=(c[(H&p)>>2]|0)+1;xh(wa,wh(wa,42,r,s,k)|0,H,-6);k=c[(A&p)>>2]|0;ea=k+1|0;wh(wa,43,ea,0,ea)|0;w=c[(w&p)>>2]|0;wh(c[(f&p)+8>>2]|0,32,s,r,w)|0;dt(f,s,w);wh(wa,17,N,L,0)|0;wh(wa,137,J,S,0)|0;wh(wa,17,Q,O,0)|0;w=c[(A&p)>>2]|0;if(w>>>0>k>>>0)c[((c[(wa&p)+4>>2]|0)+(k*20|0)&p)+8>>2]=w;r=wa+24|0;c[((c[(r&p)>>2]|0)&p)+88>>2]=w+-1;et(f,ya);wh(wa,25,1,M,0)|0;if(x)wh(wa,5,c[(v&p)>>2]|0,q,0)|0;else{Xs(t);zh(wa,u)}wh(wa,17,N,L,0)|0;wh(wa,16,0,S,0)|0;m=c[(A&p)>>2]|0;wh(wa,25,1,J,0)|0;wh(wa,18,N,0,0)|0;k=c[(r&p)>>2]|0;l=~L;do if((L|0)<0){w=c[(k&p)+112>>2]|0;if(!w)break;c[(w+(l<<2)&p)>>2]=c[(A&p)>>2]}while(0);v=c[(A&p)>>2]|0;c[(k&p)+88>>2]=v+-1;wh(wa,137,M,v+2|0,0)|0;wh(wa,18,N,0,0)|0;ft(f,ya);v=v+1|0;gt(f,ga,v,16);Ps(f,g,c[(g&p)>>2]|0,-1,va,ua,h,v,m);wh(wa,18,N,0,0)|0;v=c[(r&p)>>2]|0;u=~O;do if((O|0)<0){t=c[(v&p)+112>>2]|0;if(!t)break;c[(t+(u<<2)&p)>>2]=c[(A&p)>>2]}while(0);c[(v&p)+88>>2]=(c[(A&p)>>2]|0)+-1;ht(f,ya);wh(wa,18,Q,0,0)|0}else{do if(!(c[(H&p)>>2]|0)){u=c[(g&p)>>2]|0;if((c[(u&p)>>2]|0)!=1){za=372;break}v=c[(na&p)>>2]|0;if((c[(v&p)>>2]|0)!=1){za=372;break}if(c[(v&p)+28>>2]|0){za=372;break}A=c[(v&p)+24>>2]|0;v=c[(c[(u&p)+4>>2]&p)>>2]|0;z=A+44|0;if(a[(z&n)>>0]&16){za=372;break}if((a[(v&n)>>0]|0)!=-101|(k|0)==0){za=372;break}y=ya+40|0;if(!(b[((c[((c[(y&p)>>2]|0)&p)+4>>2]|0)&o)+2>>1]&256)){za=372;break}if((A|0)==0?1:(c[(v&p)+4>>2]&16|0)!=0){za=372;break}v=c[(f&p)>>2]|0;k=c[(A&p)+68>>2]|0;i:do if(!k)u=-1e6;else{l=c[(v&p)+20>>2]|0;if((l|0)<=0){u=0;break}v=c[(v&p)+16>>2]|0;w=0;while(1){u=w+1|0;if((c[(v+(w<<4)&p)+12>>2]|0)==(k|0)){u=w;break i}if((u|0)<(l|0))w=u;else break}}while(0);w=f+68|0;q=c[(w&p)>>2]|0;c[(w&p)>>2]=q+1;w=A+32|0;k=c[(w&p)>>2]|0;Ar(f,u);gs(f,u,c[(w&p)>>2]|0,0,c[(A&p)>>2]|0);w=c[(A&p)+8>>2]|0;j:do if(!(a[(z&n)>>0]&32)){v=0;za=351}else{if(!w){l=1;m=0;w=0;break}else v=w;while(1){if((a[(v&n)+51>>0]&3)==2){za=351;break j}v=c[(v&p)+20>>2]|0;if(!v){v=0;za=351;break}}}while(0);do if((za|0)==351){if(w){m=A+42|0;l=w;do{do if(!(a[(l&n)+51>>0]&4)){w=b[(l&o)+44>>1]|0;if(w<<16>>16>=(b[(m&o)>>1]|0))break;if(c[(l&p)+36>>2]|0)break;if((v|0)!=0?w<<16>>16>=(b[(v&o)+44>>1]|0):0)break;v=l}while(0);l=c[(l&p)+20>>2]|0}while((l|0)!=0)}if(!v){l=1;m=0;w=0;break}k=c[(v&p)+40>>2]|0;l=0;m=v;w=hs(f,v)|0}while(0);xh(wa,wh(wa,54,q,k,u)|0,1,-14);if(w)xh(wa,-1,w,-6);wh(wa,50,q,c[((c[(y&p)>>2]|0)&p)+8>>2]|0,0)|0;wh(wa,61,q,0,0)|0;if((a[(f&n)+450>>0]|0)!=2){t=0;break}do if(l){v=c[(A&p)>>2]|0;u=10360;s=10360;t=c[(f&p)>>2]|0}else{if(a[(z&n)>>0]&32){ea=(a[(m&n)+51>>0]&3)!=2;t=c[(f&p)>>2]|0;v=c[(A&p)>>2]|0;u=ea?34920:10360;if(!ea){s=10360;break}}else{u=34920;v=c[(A&p)>>2]|0;t=c[(f&p)>>2]|0}s=c[(m&p)>>2]|0}while(0);c[(ra&p)>>2]=v;c[(ra&p)+4>>2]=u;c[(ra&p)+8>>2]=s;t=uh(t,34896,ra)|0;ea=c[(f&p)+8>>2]|0;xh(ea,wh(ea,157,c[(Aa&p)>>2]|0,0,0)|0,t,-1);t=0}else za=372;while(0);if((za|0)==372){do if((c[(I&p)>>2]|0)==0&(k|0)==1){t=c[(c[(ya&p)+40>>2]&p)>>2]|0;v=c[(t&p)+20>>2]|0;if(!v){t=0;s=0;break}if((c[(v&p)>>2]|0)!=1){t=0;s=0;break}if((a[(c[(c[(v&p)+4>>2]&p)>>2]&n)>>0]|0)!=-100){t=0;s=0;break}t=c[(t&p)+8>>2]|0;if(dd(t,18760)|0)if(!(dd(t,18768)|0))s=2;else{t=0;s=0;break}else s=1;t=Pr(xa,v,0)|0;if(!t){t=0;break}if(a[(pa&n)>>0]|0)break;ea=c[(t&p)+4>>2]|0;a[(ea&n)+12>>0]=s<<24>>24!=1&1;a[(c[(ea&p)>>2]&n)>>0]=-102}else{t=0;s=0}while(0);ht(f,ya);s=Vs(f,U,B,t,0,s&255,0)|0;if(!s){Nk(xa,t);za=444;break}et(f,ya);if((a[(s&n)+36>>0]|0)>0)wh(wa,16,0,c[(s&p)+52>>2]|0,0)|0;Xs(s);ft(f,ya)}c[(va&p)>>2]=0;gt(f,ga,S,16);Ps(f,g,c[(g&p)>>2]|0,-1,0,0,h,S,S);Nk(xa,t);r=wa+24|0}t=c[(r&p)>>2]|0;s=~S;do if((S|0)<0){r=c[(t&p)+112>>2]|0;if(!r)break;c[(r+(s<<2)&p)>>2]=c[(wa&p)+32>>2]}while(0);c[(t&p)+88>>2]=(c[(wa&p)+32>>2]|0)+-1}if((a[(ua&n)+1>>0]|0)==3)$s(f,34808);if(c[(va&p)>>2]|0){x=va+4|0;$s(f,(c[(x&p)>>2]|0)>0?34840:34864);A=c[(T&p)>>2]|0;v=f+8|0;H=c[(v&p)>>2]|0;I=xs(H)|0;F=xs(H)|0;q=c[(va&p)>>2]|0;m=a[(h&n)>>0]|0;B=m&255;C=h+4|0;D=c[(C&p)>>2]|0;y=va+16|0;w=c[(y&p)>>2]|0;if(w){wh(H,17,c[(va&p)+12>>2]|0,w,0)|0;wh(H,16,0,I,0)|0;ea=c[(y&p)>>2]|0;w=c[(H&p)+24>>2]|0;k=~ea;do if((ea|0)<0){l=c[(w&p)+112>>2]|0;if(!l)break;c[(l+(k<<2)&p)>>2]=c[(H&p)+32>>2]}while(0);c[(w&p)+88>>2]=(c[(H&p)+32>>2]|0)+-1}E=c[(va&p)+8>>2]|0;t=m<<24>>24==9;k:do if((m&-5)<<24>>24==9){s=A;u=c[(h&p)+8>>2]|0;k=0}else{w=f+19|0;k=a[(w&n)>>0]|0;do if(k<<24>>24){ea=k+-1<<24>>24;a[(w&n)>>0]=ea;l=c[(f+((ea&255)<<2)&p)+24>>2]|0;if(!(ea<<24>>24)){k=l;w=c[(f&p)+72>>2]|0;break}else{u=k+-2<<24>>24;a[(w&n)>>0]=u;s=1;u=c[(f+((u&255)<<2)&p)+24>>2]|0;k=l;break k}}else{k=f+72|0;w=(c[(k&p)>>2]|0)+1|0;c[(k&p)>>2]=w;k=w}while(0);u=w+1|0;c[(f&p)+72>>2]=u;s=1}while(0);r=(c[(q&p)>>2]|0)-(c[(x&p)>>2]|0)|0;z=va+24|0;if(!(a[(z&n)>>0]&1)){w=wh(H,107,E,I,0)|0;it(H,c[(g&p)+12>>2]|0,F);l=1;m=E}else{ea=f+72|0;m=(c[(ea&p)>>2]|0)+1|0;c[(ea&p)>>2]=m;ea=f+68|0;q=c[(ea&p)>>2]|0;c[(ea&p)>>2]=q+1;if(!(c[(y&p)>>2]|0))l=0;else{ea=Oq(f)|0;da=f+80|0;l=c[(da&p)>>2]|0;c[(da&p)>>2]=l+1;l=wh(ea,44,l,0,0)|0}wh(H,60,q,m,s+1+r|0)|0;if(l){w=c[(H&p)+32>>2]|0;if(w>>>0>l>>>0)c[((c[(H&p)+4>>2]|0)+(l*20|0)&p)+8>>2]=w;c[((c[(H&p)+24>>2]|0)&p)+88>>2]=w+-1}w=wh(H,106,E,I,0)|0;it(H,c[(g&p)+12>>2]|0,F);wh(H,100,E,m,q)|0;l=0;m=q}x=w+1|0;if((s|0)>0){w=l+r|0;l=0;do{wh(H,47,m,w+l|0,l+u|0)|0;l=l+1|0}while((l|0)!=(s|0))}do if((B|0)==12|(B|0)==14){wh(H,74,D,k,0)|0;wh(H,75,D,u,k)|0;t=c[(H&p)+4>>2]|0;if(!t)break;a[(t+(((c[(H&p)+32>>2]|0)+-1|0)*20|0)&n)+3>>0]=8}else if((B|0)==11){xh(H,wh(H,49,u,1,k)|0,h+1|0,1);dt(f,u,1);wh(H,110,D,k,0)|0}else if((B|0)!=10)if(t){ea=h+8|0;wh(H,35,c[(ea&p)>>2]|0,A,0)|0;dt(f,c[(ea&p)>>2]|0,A);break}else{wh(H,22,c[(C&p)>>2]|0,0,0)|0;break}else{wh(c[(v&p)>>2]|0,32,u,D,1)|0;dt(f,u,1)}while(0);if(k){_r(f,u);_r(f,k)}s=H+24|0;u=c[(s&p)>>2]|0;v=~F;do if((F|0)<0){t=c[(u&p)+112>>2]|0;if(!t)break;c[(t+(v<<2)&p)>>2]=c[(H&p)+32>>2]}while(0);v=H+32|0;c[(u&p)+88>>2]=(c[(v&p)>>2]|0)+-1;if(!(a[(z&n)>>0]&1))wh(H,9,E,x,0)|0;else wh(H,5,E,x,0)|0;r=c[(va&p)+12>>2]|0;if(r)wh(H,18,r,0,0)|0;r=c[(s&p)>>2]|0;q=~I;do if((I|0)<0){m=c[(r&p)+112>>2]|0;if(!m)break;c[(m+(q<<2)&p)>>2]=c[(v&p)>>2]}while(0);c[(r&p)+88>>2]=(c[(v&p)>>2]|0)+-1}l=c[(wa&p)+24>>2]|0;m=~qa;do if((qa|0)<0){k=c[(l&p)+112>>2]|0;if(!k)break;c[(k+(m<<2)&p)>>2]=c[(wa&p)+32>>2]}while(0);c[(l&p)+88>>2]=(c[(wa&p)+32>>2]|0)+-1;c[(Aa&p)>>2]=Ba;if((a[(h&n)>>0]|0)!=9){k=0;break}Ns(f,U,T);k=0}else za=444;while(0);if((za|0)==444){c[(Aa&p)>>2]=Ba;k=1}mg(xa,c[(ya&p)+28>>2]|0);mg(xa,c[(ya&p)+40>>2]|0)}else k=1;while(0);i=Ca;return k|0}function jr(a,b,d,e,f,g,h,k){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;var l=0,m=0,n=0,o=0,q=0,r=0;r=i;i=i+16|0;if((i|0)>=(j|0))fa();m=r;o=c[(a&p)>>2]|0;if((b|0)==0?(l=(h|0)!=0,l|(k|0)!=0):0){c[(m&p)>>2]=l?34792:34800;th(a,34752,m);q=9}else{b=pr(o,b,d,e)|0;if((b|0)!=0?(n=c[(b&p)>>2]|0,(n|0)!=0):0){l=n+-1|0;if(c[(f&p)+4>>2]|0)c[(b+(l*72|0)&p)+20>>2]=Wq(o,f)|0;c[(b+(l*72|0)&p)+28>>2]=g;c[(b+(l*72|0)&p)+52>>2]=h;c[(b+(l*72|0)&p)+56>>2]=k}else q=9}if((q|0)==9){Gk(o,h);Hk(o,k);Mk(o,g,1);b=0}i=r;return b|0}function kr(d,e,f,g,h,k,l,m,q,r){d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;m=m|0;q=q|0;r=r|0;var s=0,t=0,u=0,v=0,w=0,x=0,y=0;y=i;i=i+80|0;if((i|0)>=(j|0))fa();t=y+72|0;x=y;w=c[(d&p)>>2]|0;s=mh(w,72,0)|0;if(!s){u=x+0|0;v=u+72|0;do{c[(u&p)>>2]=0;u=u+4|0}while((u|0)<(v|0));s=x}else{u=s+0|0;v=u+72|0;do{a[(u&n)>>0]=0;u=u+1|0}while((u|0)<(v|0))}if(!e){c[(t&p)>>2]=0;c[(t&p)+4>>2]=0;e=lr(d,0,nr(w,116,t,0)|0)|0}c[(s&p)>>2]=e;if(!f){f=mh(w,80,0)|0;if(f){u=f+0|0;v=u+80|0;do{a[(u&n)>>0]=0;u=u+1|0}while((u|0)<(v|0))}}c[(s&p)+32>>2]=f;c[(s&p)+36>>2]=g;c[(s&p)+40>>2]=h;c[(s&p)+44>>2]=k;c[(s&p)+48>>2]=l;b[(s&o)+6>>1]=m;a[(s&n)+4>>0]=119;c[(s&p)+60>>2]=q;c[(s&p)+64>>2]=r;c[(s&p)+16>>2]=-1;c[(s&p)+20>>2]=-1;if(a[(w&n)+65>>0]|0){Mk(w,s,(s|0)!=(x|0)&1);s=0}i=y;return s|0}function lr(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0;g=c[(b&p)>>2]|0;if(!d){d=mh(g,8,0)|0;if(d){b=d;f=b;a[(f&n)>>0]=0;a[(f&n)+1>>0]=0;a[(f&n)+2>>0]=0;a[(f&n)+3>>0]=0;b=b+4|0;a[(b&n)>>0]=0;a[(b&n)+1>>0]=0;a[(b&n)+2>>0]=0;a[(b&n)+3>>0]=0;b=mh(g,20,0)|0;c[(d&p)+4>>2]=b;if(!b)f=8;else f=7}else{d=0;f=8}}else{b=c[(d&p)>>2]|0;if(!(b+-1&b)){f=d+4|0;b=ro(g,c[(f&p)>>2]|0,b*40|0,0)|0;if(!b)f=8;else{c[(f&p)>>2]=b;f=7}}else f=7}if((f|0)==7){b=c[(d&p)>>2]|0;c[(d&p)>>2]=b+1;b=(c[(d&p)+4>>2]|0)+(b*20|0)|0;c[(b&p)>>2]=0;c[(b&p)+4>>2]=0;c[(b&p)+8>>2]=0;c[(b&p)+12>>2]=0;c[(b&p)+16>>2]=0;c[(b&p)>>2]=e}else if((f|0)==8){Gk(g,e);Nk(g,d);d=0}return d|0}function mr(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0;do if(d){j=(c[(d&p)>>2]|0)+-1|0;g=c[(d&p)+4>>2]|0;h=c[(e&p)>>2]|0;d=c[(e&p)+4>>2]|0;if((h|0)!=0?(e=c[(b&p)>>2]|0,i=jw(d|0,0,1,0)|0,i=mh(e,i,G)|0,(i|0)!=0):0){kw(i|0,h|0,d|0)|0;a[(i+d&n)>>0]=0;c[(g+(j*20|0)&p)+4>>2]=i;if(!f)break;lo(i);break}c[(g+(j*20|0)&p)+4>>2]=0}while(0);return}function nr(d,e,f,g){d=d|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,q=0,r=0,s=0,t=0;t=i;i=i+16|0;if((i|0)>=(j|0))fa();m=t;c[(m&p)>>2]=0;k=(f|0)!=0;do if(k){if(((e|0)==132?(h=c[(f&p)>>2]|0,(h|0)!=0):0)?(Dn(h,m)|0)!=0:0){r=0;break}r=(c[(f&p)+4>>2]|0)+1|0}else r=0;while(0);l=r+48|0;q=mh(d,l,0)|0;if(q){fw(q|0,0,l|0)|0;a[(q&n)>>0]=e;b[(q&o)+34>>1]=-1;do if(k){if(!r){g=q+4|0;c[(g&p)>>2]=c[(g&p)>>2]|1024;c[(q&p)+8>>2]=c[(m&p)>>2];break}h=q+48|0;l=q+8|0;c[(l&p)>>2]=h;k=f+4|0;d=c[(k&p)>>2]|0;if(!d)h=48;else{kw(h|0,c[(f&p)>>2]|0,d|0)|0;h=(c[(k&p)>>2]|0)+48|0}a[(q+h&n)>>0]=0;if(((g|0)!=0&(r|0)>2?(g=a[(c[(f&p)>>2]&n)>>0]|0,s=g<<24>>24==34,g<<24>>24==34|g<<24>>24==39|g<<24>>24==91|g<<24>>24==96):0)?(lo(c[(l&p)>>2]|0),s):0){g=q+4|0;c[(g&p)>>2]=c[(g&p)>>2]|64}}while(0);c[(q&p)+24>>2]=1}i=t;return q|0}function or(b,d,e){b=b|0;d=d|0;e=e|0;var f=0;do if((d|0)!=0?(f=c[(d&p)>>2]|0,(f|0)>0):0){f=f+-1|0;if((c[(e&p)+4>>2]|0)==1?(c[(e&p)>>2]|0)==0:0){f=d+(f*72|0)+45|0;a[(f&n)>>0]=a[(f&n)>>0]|1;break}c[(d+(f*72|0)&p)+72>>2]=Wq(c[(b&p)>>2]|0,e)|0}while(0);return}function pr(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0;if(!d){d=mh(b,80,0)|0;if(!d)d=0;else{h=d+0|0;g=h+80|0;do{a[(h&n)>>0]=0;h=h+1|0}while((h|0)<(g|0));c[(d&p)+4>>2]=1;h=4}}else h=4;do if((h|0)==4){d=Fs(b,d,1,c[(d&p)>>2]|0)|0;if(a[(b&n)+65>>0]|0){Do(b,d);d=0;break}h=(c[(d&p)>>2]|0)+-1|0;if(!f)g=0;else g=(c[(f&p)>>2]|0)==0?0:f;f=(g|0)==0;c[(d+(h*72|0)&p)+16>>2]=Wq(b,f?e:g)|0;c[(d+(h*72|0)&p)+12>>2]=Wq(b,f?0:e)|0}while(0);return d|0}function qr(a,b,e,f){a=a|0;b=b|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,o=0,q=0,r=0,s=0;s=i;i=i+32|0;if((i|0)>=(j|0))fa();q=s;m=s+16|0;c[(m&p)>>2]=b;c[(m&p)+4>>2]=e;c[(m&p)+8>>2]=f;l=b;o=1;g=0;a:while(1){if(!l)break;k=c[(l&p)+4>>2]|0;h=0;while(1){if((k|0)==(d[((h*3|0)&n)+34625>>0]|0|0)?(Fc(c[(l&p)>>2]|0,34584+(d[((h*3|0)&n)+34624>>0]|0)|0,k)|0)==0:0)break;h=h+1|0;if((h|0)>=7){r=10;break a}}g=d[((h*3|0)&n)+34626>>0]|0|g;if((h|0)>6){r=10;break}if((o|0)>=3)break;l=c[(m+(o<<2)&p)>>2]|0;o=o+1|0}if((r|0)==10)g=g|64;if((g&33|0)!=33&(g&64|0)==0){if(!((g&32|0)==0|(g&24|0)==8)){th(a,34696,q);g=1}}else{c[(q&p)>>2]=b;c[(q&p)+4>>2]=e;c[(q&p)+8>>2]=(f|0)==0?20377|0:20376;c[(q&p)+12>>2]=f;th(a,34648,q);g=1}i=s;return g|0}function rr(e,f,g){e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=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;T=i;i=i+48|0;if((i|0)>=(j|0))fa();Q=T+36|0;R=T+32|0;r=T;c[(Q&p)>>2]=0;c[(R&p)>>2]=0;S=c[(e&p)>>2]|0;if(((((c[(e&p)+64>>2]|0)==0?(a[(S&n)+65>>0]|0)==0:0)?(H=Jr(e,f)|0,(H|0)!=0):0)?(G=jt(e,H,109,0,0)|0,P=(c[(H&p)+12>>2]|0)!=0,(hr(e,H)|0)==0):0)?(t=(G|0)!=0,(kt(e,H,t&1)|0)==0):0){l=c[(H&p)+68>>2]|0;a:do if(l){k=c[(S&p)+20>>2]|0;if((k|0)>0){h=c[(S&p)+16>>2]|0;q=0;while(1){m=q+1|0;if((c[(h+(q<<4)&p)+12>>2]|0)==(l|0)){m=q;break a}if((m|0)<(k|0))q=m;else break}}else m=0}else m=-1e6;while(0);h=Sq(e,9,c[(H&p)>>2]|0,0,c[((c[(S&p)+16>>2]|0)+(m<<4)&p)>>2]|0)|0;if((h|0)!=1){s=e+68|0;C=c[(s&p)>>2]|0;u=C+1|0;c[(s&p)>>2]=u;c[(f&p)+48>>2]=C;I=H+8|0;l=c[(I&p)>>2]|0;if(!l)q=0;else{k=u;q=0;do{k=k+1|0;c[(s&p)>>2]=k;q=q+1|0;l=c[(l&p)+20>>2]|0}while((l|0)!=0)}if(P){N=e+492|0;O=c[(N&p)>>2]|0;c[(N&p)>>2]=c[(H&p)>>2];N=e}else{N=0;O=0}L=Oq(e)|0;b:do if(L){M=e+18|0;if(!(a[(M&n)>>0]|0)){E=L+88|0;b[(E&o)>>1]=b[(E&o)>>1]|4}D=e+408|0;E=c[(D&p)>>2]|0;E=(E|0)==0?e:E;Ar(e,m);B=E+328|0;c[(B&p)>>2]=c[(B&p)>>2]|1<>0]=d[(E&n)>>0]|1;if(P){lt(e,H,g,C);c[(R&p)>>2]=C;c[(Q&p)>>2]=C};c[(r&p)>>2]=0;c[(r&p)+4>>2]=0;c[(r&p)+8>>2]=0;c[(r&p)+12>>2]=0;c[(r&p)+16>>2]=0;c[(r&p)+20>>2]=0;c[(r&p)+24>>2]=0;c[(r&p)+28>>2]=0;c[(r&p)>>2]=e;c[(r&p)+4>>2]=f;if(!(ls(r,g)|0)){J=S+24|0;if(!(c[(J&p)>>2]&128))K=-1;else{E=e+72|0;K=(c[(E&p)>>2]|0)+1|0;c[(E&p)>>2]=K;wh(L,25,0,K,0)|0}E=H+44|0;do if((!((g|0)!=0|(h|0)!=0|t)?(a[(E&n)>>0]&16)==0:0)?(mt(e,H,0,0)|0)==0:0){l=H+32|0;gs(e,m,c[(l&p)>>2]|0,1,c[(H&p)>>2]|0);if(!(a[(E&n)>>0]&32)){H=c[(H&p)>>2]|0;xh(L,wh(L,118,c[(l&p)>>2]|0,m,K)|0,H,-2)}h=c[(I&p)>>2]|0;if(!h){h=0;break}do{wh(L,118,c[(h&p)+40>>2]|0,m,0)|0;h=c[(h&p)+20>>2]|0}while((h|0)!=0);h=0}else F=31;while(0);do if((F|0)==31){if(!(a[(E&n)>>0]&32)){v=e+72|0;z=(c[(v&p)>>2]|0)+1|0;c[(v&p)>>2]=z;wh(L,28,0,z,0)|0;v=0;A=0;h=0;x=1;m=0}else{m=c[(I&p)>>2]|0;c:do if(!m)m=0;else while(1){if((a[(m&n)+51>>0]&3)==2)break c;m=c[(m&p)+20>>2]|0;if(!m){m=0;break}}while(0);x=b[(m&o)+46>>1]|0;A=e+72|0;h=c[(A&p)>>2]|0;v=x<<16>>16;c[(A&p)>>2]=h+v;A=c[(s&p)>>2]|0;c[(s&p)>>2]=A+1;v=wh(L,57,A,v,0)|0;z=c[(e&p)+8>>2]|0;xh(z,-1,hs(e,m)|0,-6);h=h+1|0;z=0}w=Vs(e,f,g,0,0,12,u)|0;if(!w){h=0;break b}u=w+60|0;t=c[(u&p)>>2]|0;u=c[(u&p)+4>>2]|0;y=a[(w&n)+38>>0]|0;if(c[(J&p)>>2]&128)wh(L,37,K,1,0)|0;B=(m|0)!=0;do if(B){if(x<<16>>16<=0){k=h;break}r=m+4|0;l=x<<16>>16;s=0;do{nt(L,H,C,b[((c[(r&p)>>2]|0)+(s<<1)&o)>>1]|0,s+h|0);s=s+1|0}while((s|0)!=(l|0));k=h}else{l=e+72|0;k=ct(e,H,-1,C,(c[(l&p)>>2]|0)+1|0,0)|0;if((k|0)<=(c[(l&p)>>2]|0))break;c[(l&p)>>2]=k}while(0);r=y<<24>>24!=0;do if(!r)if(B){l=e+72|0;k=(c[(l&p)>>2]|0)+1|0;c[(l&p)>>2]=k;l=x<<16>>16;s=ot(L,m)|0;xh(L,wh(L,49,h,l,k)|0,s,l);wh(L,110,A,k,0)|0;h=0;l=0;s=0;F=59;break}else{wh(L,128,z,k,0)|0;Xs(w);h=0;u=0;m=1;break}else{h=q+2|0;h=mh(S,h,((h|0)<0)<<31>>31)|0;if(!h){Xs(w);h=0;break b}F=q+1|0;fw(h|0,1,F|0)|0;a[(h+F&n)>>0]=0;if((t|0)>-1)a[(h+(t-C)&n)>>0]=0;if((u|0)>-1)a[(h+(u-C)&n)>>0]=0;if(v)zh(L,v);l=wh(L,16,0,0,0)|0;s=x;F=59}while(0);do if((F|0)==59){Xs(w);if(!r){u=0;m=s;break}m=xs(L)|0;wh(L,16,0,m,0)|0;q=c[(L&p)+32>>2]|0;if(q>>>0>l>>>0)c[((c[(L&p)+4>>2]|0)+(l*20|0)&p)+8>>2]=q;c[((c[(L&p)+24>>2]|0)&p)+88>>2]=q+-1;u=m;m=s}while(0);if(!P)pt(e,H,55,C,h,Q,R)|0;do if(!r)if(B){l=wh(L,108,A,0,0)|0;wh(L,101,A,k,0)|0;break}else{l=wh(L,129,z,0,k)|0;break}else{q=c[(Q&p)>>2]|0;if(!(a[(h+(q-C)&n)>>0]|0)){l=0;break}xh(L,wh(L,68,q,u,k)|0,m<<16>>16,-14);l=0}while(0);if(!(a[(E&n)>>0]&16))rt(e,H,G,c[(Q&p)>>2]|0,c[(R&p)>>2]|0,k,m,(a[(M&n)>>0]|0)==0&1,10,y);else{q=c[(H&p)+60>>2]|0;d:do if(!q)q=0;else while(1){if((c[(q&p)>>2]|0)==(S|0))break d;q=c[(q&p)+24>>2]|0;if(!q){q=0;break}}while(0);qt(e,H);xh(L,wh(L,15,0,1,k)|0,q,-10);q=c[(L&p)+4>>2]|0;if(q)a[(q+(((c[(L&p)+32>>2]|0)+-1|0)*20|0)&n)+3>>0]=2;H=c[(D&p)>>2]|0;a[(((H|0)==0?e:H)&n)+21>>0]=1}do if(!r)if(B){wh(L,9,A,l+1|0,0)|0;q=c[(L&p)+32>>2]|0;if(q>>>0>l>>>0)c[((c[(L&p)+4>>2]|0)+(l*20|0)&p)+8>>2]=q;c[((c[(L&p)+24>>2]|0)&p)+88>>2]=q+-1;break}else{wh(L,16,0,l,0)|0;q=c[(L&p)+32>>2]|0;if(q>>>0>l>>>0)c[((c[(L&p)+4>>2]|0)+(l*20|0)&p)+8>>2]=q;c[((c[(L&p)+24>>2]|0)&p)+88>>2]=q+-1;break}else{m=c[(L&p)+24>>2]|0;l=~u;do if((u|0)<0){q=c[(m&p)+112>>2]|0;if(!q)break;c[(q+(l<<2)&p)>>2]=c[(L&p)+32>>2]}while(0);c[(m&p)+88>>2]=(c[(L&p)+32>>2]|0)+-1}while(0);if(P)break;if(a[(E&n)>>0]&16)break;if(!B)wh(L,61,c[(Q&p)>>2]|0,0,0)|0;k=c[(I&p)>>2]|0;if(!k)break;else l=0;while(1){wh(L,61,(c[(R&p)>>2]|0)+l|0,0,0)|0;k=c[(k&p)+20>>2]|0;if(!k)break;else l=l+1|0}}while(0);if((a[(M&n)>>0]|0)==0?(c[(e&p)+412>>2]|0)==0:0)st(e);if((c[(J&p)>>2]&128|0)!=0?(a[(M&n)>>0]|0)==0:0){if(c[(e&p)+412>>2]|0)break;wh(L,35,K,1,0)|0;iq(L,1);if(a[((c[(L&p)>>2]|0)&n)+65>>0]|0)break;Xg(c[(L&p)+16>>2]|0,34568,-1,1,0)|0}}else h=0}else h=0;while(0);if(N)c[(N&p)+492>>2]=O}else h=0}else h=0;Do(S,f);Gk(S,g);mg(S,h);i=T;return}function sr(e,f,g,h,k){e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;var l=0,m=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,ga=0,ha=0,ia=0,ja=0,ka=0,la=0,ma=0;ma=i;i=i+64|0;if((i|0)>=(j|0))fa();T=ma;Y=ma+32|0;ea=ma+24|0;ha=ma+20|0;la=c[(e&p)>>2]|0;a:do if(((c[(e&p)+64>>2]|0)==0?(a[(la&n)+65>>0]|0)==0:0)?(ka=Jr(e,f)|0,(ka|0)!=0):0){m=c[(e&p)>>2]|0;r=c[(ka&p)+68>>2]|0;b:do if(r){s=c[(m&p)+20>>2]|0;if((s|0)>0){m=c[(m&p)+16>>2]|0;q=0;while(1){l=q+1|0;if((c[(m+(q<<4)&p)+12>>2]|0)==(r|0))break b;if((l|0)<(s|0))q=l;else{q=l;break}}}else q=0}else q=-1e6;while(0);ga=jt(e,ka,110,g,ea)|0;ca=(c[(ka&p)+12>>2]|0)!=0;if((hr(e,ka)|0)==0?(kt(e,ka,c[(ea&p)>>2]|0)|0)==0:0){_=e+68|0;$=c[(_&p)>>2]|0;ia=$+1|0;c[(_&p)>>2]=ia;r=f+48|0;c[(r&p)>>2]=$;K=ka+44|0;u=c[(ka&p)+8>>2]|0;c:do if(!(a[(K&n)>>0]&32)){s=0;ba=16}else{if(!u){w=ka+8|0;s=0;t=$;v=0;break}else s=u;while(1){if((a[(s&n)+51>>0]&3)==2){ba=16;break c}s=c[(s&p)+20>>2]|0;if(!s){s=0;ba=16;break}}}while(0);if((ba|0)==16){w=ka+8|0;if(!u){t=$;v=0}else{l=(s|0)!=0;m=ia;t=$;v=0;do{if((a[(u&n)+51>>0]&3)==2&l){c[(r&p)>>2]=m;t=m}m=m+1|0;c[(_&p)>>2]=m;v=v+1|0;u=c[(u&p)+20>>2]|0}while((u|0)!=0)}}ja=ka+38|0;l=mh(la,v+2+((b[(ja&o)>>1]|0)+v<<2)|0,0)|0;if(l){I=b[(ja&o)>>1]|0;aa=l+(I<<2)|0;da=l+(I+v<<2)|0;Z=v+1|0;fw(da|0,1,Z|0)|0;a[(da+Z&n)>>0]=0;v=b[(ja&o)>>1]|0;if(v<<16>>16>0)fw(l|0,-1,(v<<16>>16>1?v<<16>>16<<2:4)|0)|0;c[(Y&p)>>2]=0;c[(Y&p)+4>>2]=0;c[(Y&p)+8>>2]=0;c[(Y&p)+12>>2]=0;c[(Y&p)+16>>2]=0;c[(Y&p)+20>>2]=0;c[(Y&p)+24>>2]=0;c[(Y&p)+28>>2]=0;c[(Y&p)>>2]=e;c[(Y&p)+4>>2]=f;d:do if((c[(g&p)>>2]|0)>0){E=g+4|0;D=ka+4|0;C=la+16|0;F=(s|0)==0;G=ka+36|0;y=0;x=0;H=0;m=0;while(1){if(ls(Y,c[((c[(E&p)>>2]|0)+(H*20|0)&p)>>2]|0)|0)break a;A=b[(ja&o)>>1]|0;e:do if(A<<16>>16>0){v=c[(D&p)>>2]|0;B=c[(E&p)>>2]|0;r=c[(B+(H*20|0)&p)+4>>2]|0;u=0;while(1){z=u+1|0;if(!(dd(c[(v+(u*24|0)&p)>>2]|0,r)|0))break;if((z|0)<(A<<16>>16|0))u=z;else{u=z;r=m;break e}}if((u|0)!=(b[(G&o)>>1]|0)){if(!F)y=(a[(v+(u*24|0)&n)+23>>0]&1)==0?y:1}else{x=1;m=c[(B+(H*20|0)&p)>>2]|0}c[(l+(u<<2)&p)>>2]=H;r=m}else{u=0;r=m}while(0);if((u|0)<(A<<16>>16|0)){m=c[(ka&p)>>2]|0;if((u|0)<0)v=12944;else v=c[((c[(D&p)>>2]|0)+(u*24|0)&p)>>2]|0}else{r=c[(E&p)>>2]|0;m=c[(r+(H*20|0)&p)+4>>2]|0;if(!F)break;if(!($h(m)|0))break;m=c[(ka&p)>>2]|0;v=12944;x=1;u=-1;r=c[(r+(H*20|0)&p)>>2]|0}m=Sq(e,23,m,v,c[((c[(C&p)>>2]|0)+(q<<4)&p)>>2]|0)|0;if((m|0)==2)c[(l+(u<<2)&p)>>2]=-1;else if((m|0)==1)break a;H=H+1|0;if((H|0)>=(c[(g&p)>>2]|0)){R=r;break d}else m=r}c[(T&p)>>2]=m;th(e,34496,T);a[(e&n)+17>>0]=1;break a}else{y=0;x=0;R=0}while(0);X=(y&255)+(x&255)|0;U=X&255;C=f+64|0;c[(C&p)>>2]=0;c[(C&p)+4>>2]=0;X=X&255;C=mt(e,ka,l,X)|0;m=c[(w&p)>>2]|0;if(m){z=(C|X|0)==0;A=e+72|0;B=0;while(1){f:do if(z?!((c[(m&p)+36>>2]|0)!=0|(m|0)==(s|0)):0){r=b[(m&o)+46>>1]|0;if(!(r<<16>>16))ba=56;else{u=c[(m&p)+4>>2]|0;v=0;while(1){if((c[(l+(b[(u+(v<<1)&o)>>1]<<2)&p)>>2]|0)>-1){ba=54;break f}v=v+1|0;if((v|0)>=(r&65535|0)){ba=56;break}}}}else ba=54;while(0);if((ba|0)==54){ba=0;r=(c[(A&p)>>2]|0)+1|0;c[(A&p)>>2]=r;if(!r)ba=56;else u=B+1|0}if((ba|0)==56){ba=0;u=B+1|0;a[(da+u&n)>>0]=0;r=0}c[(l+(B+I<<2)&p)>>2]=r;m=c[(m&p)+20>>2]|0;if(!m)break;else B=u}}V=Oq(e)|0;if(V){W=e+18|0;if(!(a[(W&n)>>0]|0)){S=V+88|0;b[(S&o)>>1]=b[(S&o)>>1]|4}H=e+408|0;S=c[(H&p)>>2]|0;S=(S|0)==0?e:S;Ar(e,q);Q=S+328|0;c[(Q&p)>>2]=c[(Q&p)>>2]|1<>0]=d[(S&n)>>0]|1;if(a[(K&n)>>0]&16){x=c[(e&p)+8>>2]|0;y=c[(e&p)>>2]|0;m=c[(ka&p)+60>>2]|0;g:do if(!m)m=0;else while(1){if((c[(m&p)>>2]|0)==(y|0))break g;m=c[(m&p)+24>>2]|0;if(!m){m=0;break}}while(0);q=lr(e,0,tt(y,27,34536)|0)|0;w=(R|0)!=0;if(w)q=lr(e,q,Mr(y,R,0,0)|0)|0;if((b[(ja&o)>>1]|0)>0){r=g+4|0;t=ka+4|0;u=0;do{s=c[(l+(u<<2)&p)>>2]|0;if((s|0)>-1)s=Mr(y,c[((c[(r&p)>>2]|0)+(s*20|0)&p)>>2]|0,0,0)|0;else s=tt(y,27,c[((c[(t&p)>>2]|0)+(u*24|0)&p)>>2]|0)|0;q=lr(e,q,s)|0;u=u+1|0}while((u|0)<(b[(ja&o)>>1]|0))}t=kr(e,q,f,h,0,0,0,0,0,0)|0;v=c[(_&p)>>2]|0;c[(_&p)>>2]=v+1;f=w&1;wh(x,57,v,(b[(ja&o)>>1]|0)+(w?2:1)|0,0)|0;u=x+4|0;h=c[(u&p)>>2]|0;if(h)a[(h+(((c[(x&p)+32>>2]|0)+-1|0)*20|0)&n)+3>>0]=8;a[(T&n)>>0]=14;c[(T&p)+4>>2]=v;a[(T&n)+1>>0]=0;c[(T&p)+8>>2]=0;c[(T&p)+12>>2]=0;ir(e,t,T)|0;h=e+72|0;s=c[(h&p)>>2]|0;q=s+1|0;da=s+2|0;c[(h&p)>>2]=(b[(ja&o)>>1]|0)+da;h=wh(x,108,v,0,0)|0;wh(x,47,v,0,q)|0;wh(x,47,v,f,da)|0;if((b[(ja&o)>>1]|0)>0){s=s+3|0;r=0;do{da=r;r=r+1|0;wh(x,47,v,r+f|0,s+da|0)|0}while((r|0)<(b[(ja&o)>>1]|0))}qt(e,ka);xh(x,wh(x,15,0,(b[(ja&o)>>1]|0)+2|0,q)|0,m,-10);m=c[(u&p)>>2]|0;if(!m)m=x+32|0;else{da=x+32|0;a[(m+(((c[(da&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=(k|0)==10?2:k&255;m=da}da=c[(H&p)>>2]|0;a[(((da|0)==0?e:da)&n)+21>>0]=1;wh(x,9,v,h+1|0,0)|0;m=c[(m&p)>>2]|0;if(m>>>0>h>>>0)c[((c[(u&p)>>2]|0)+(h*20|0)&p)+8>>2]=m;c[((c[(x&p)+24>>2]|0)&p)+88>>2]=m+-1;wh(x,61,v,0,0)|0;Mk(y,t,1);h=0;f=0;break}H=e+72|0;m=c[(H&p)>>2]|0;G=m+1|0;Q=m+2|0;c[(H&p)>>2]=Q;I=y<<24>>24!=0;J=(ga|0)!=0;P=(C|0)!=0;if(I|J|P){q=(b[(ja&o)>>1]|0)+Q|0;c[(H&p)>>2]=q;L=m+3|0}else{q=Q;L=0}N=(X|0)!=0;if(N|J|P){O=q+1|0;c[(H&p)>>2]=O;q=O}else O=Q;M=q+1|0;c[(H&p)>>2]=(b[(ja&o)>>1]|0)+q;if(ca){S=e+492|0;T=c[(S&p)>>2]|0;c[(S&p)>>2]=c[(ka&p)>>2];lt(e,ka,h,t);S=e}else{S=0;T=0}do if(!(ls(Y,h)|0)){if(!(a[(K&n)>>0]&32)){wh(V,28,0,G,Q)|0;y=Vs(e,f,h,0,0,4,ia)|0;if(!y)break;A=y+60|0;m=c[(A&p)>>2]|0;A=c[(A&p)+4>>2]|0;B=a[(y&n)+38>>0]|0;wh(V,103,t,Q,0)|0;if(!(B<<24>>24))wh(V,128,G,Q,0)|0;Xs(y);D=0;C=0;z=B&255;E=0}else{B=b[(s&o)+46>>1]|0;y=c[(H&p)>>2]|0;u=y+1|0;C=B<<16>>16;y=C+1+y|0;c[(H&p)>>2]=y;D=c[(_&p)>>2]|0;c[(_&p)>>2]=D+1;wh(V,28,0,u,0)|0;q=wh(V,57,D,C,0)|0;v=c[(e&p)+8>>2]|0;xh(v,-1,hs(e,s)|0,-6);v=Vs(e,f,h,0,0,4,ia)|0;if(!v)break;A=v+60|0;m=c[(A&p)>>2]|0;A=c[(A&p)+4>>2]|0;r=a[(v&n)+38>>0]|0;E=r&255;if(B<<16>>16>0){B=s+4|0;z=0;do{nt(V,ka,t,b[((c[(B&p)>>2]|0)+(z<<1)&o)>>1]|0,z+u|0);z=z+1|0}while((z|0)!=(C|0))}if(!(r<<24>>24)){B=ot(V,s)|0;xh(V,wh(V,49,u,C,y)|0,B,C);wh(V,110,D,y,0)|0;B=0}else{zh(V,q);B=C;y=u}Xs(v);C=B;z=E;E=y}K=la+24|0;do if(!(c[(K&p)>>2]&128))v=0;else{if(c[(e&p)+412>>2]|0){v=0;break}v=(c[(H&p)>>2]|0)+1|0;c[(H&p)>>2]=v;wh(V,25,0,v,0)|0}while(0);u=xs(V)|0;if(!ca){h:do if((k|0)==5)fw(da|0,1,Z|0)|0;else{B=c[(w&p)>>2]|0;if(!B)break;while(1){if((a[(B&n)+50>>0]|0)==5)break;B=c[(B&p)+20>>2]|0;if(!B)break h}fw(da|0,1,Z|0)|0}while(0);do if(z){if((m|0)>-1)a[(da+(m-$)&n)>>0]=0;if((A|0)<=-1)break;a[(da+(A-$)&n)>>0]=0}while(0);pt(e,ka,55,$,da,0,0)|0}H=(z|0)!=0;do if(!H)if(!s){G=wh(V,129,G,u,Q)|0;wh(V,70,t,G,Q)|0;F=0;break}else{G=xs(V)|0;wh(V,108,D,u,0)|0;F=wh(V,101,D,E,0)|0;xh(V,wh(V,68,t,G,E)|0,0,-14);break}else{if(!((a[(da+(t-$)&n)>>0]|0)==0|ca))xh(V,wh(V,68,t,u,E)|0,C,-14);wh(V,76,(s|0)!=0?E:Q,u,0)|0;F=0;G=u}while(0);x=x<<24>>24==0;if(!x){Rq(e,R,O);wh(V,38,O,0,0)|0}do if(I|P|J){if(P)y=ut(e,ka)|0;else y=0;B=vt(e,ga,g,0,3,ka,k)|0|y;if((b[(ja&o)>>1]|0)>0){A=(B|0)==-1;z=ka+4|0;y=0;do{do if(A)ba=138;else{if((y|0)<32?(1<>2]|0)+(y*24|0)&n)+23>>0]&1){ba=138;break}wh(V,28,0,y+L|0,0)|0}while(0);if((ba|0)==138){ba=0;nt(V,ka,t,y,y+L|0)}y=y+1|0}while((y|0)<(b[(ja&o)>>1]|0))}if(!(x&(s|0)==0))break;wh(V,33,Q,O,0)|0}while(0);y=vt(e,ga,g,1,1,ka,k)|0;if((b[(ja&o)>>1]|0)>0){x=ka+36|0;m=g+4|0;r=0;do{i:do if((r|0)==(b[(x&o)>>1]|0))wh(V,28,0,r+M|0,0)|0;else{q=c[(l+(r<<2)&p)>>2]|0;if((q|0)>-1){Rq(e,c[((c[(m&p)>>2]|0)+(q*20|0)&p)>>2]|0,r+M|0);break}do if(!((c[(ea&p)>>2]&1|0)==0|(r|0)>31)){if(1<>1]|0))}do if(c[(ea&p)>>2]&1){wt(V,ka,M);xt(e,ga,110,g,1,ka,Q,k,G);if(!s)wh(V,70,t,G,Q)|0;else xh(V,wh(V,68,t,G,E)|0,C,-14);m=b[(ja&o)>>1]|0;if(m<<16>>16<=0)break;x=ka+36|0;y=0;do{do if((c[(l+(y<<2)&p)>>2]|0)<0){if((y|0)==(b[(x&o)>>1]|0))break;nt(V,ka,t,y,y+M|0);m=b[(ja&o)>>1]|0}while(0);y=y+1|0}while((y|0)<(m<<16>>16|0))}while(0);do if(!ca){c[(ha&p)>>2]=0;yt(e,ka,aa,t,ia,O,Q,U,k&255,G,ha);if(P)zt(e,ka,Q,0,l,X);m=(c[(ha&p)>>2]|X|0)==0;do if(!m)if(!s){q=wh(V,70,t,0,Q)|0;break}else{q=wh(V,68,t,0,E)|0;xh(V,q,C,-14);break}else q=0;while(0);At(e,ka,t,ia,aa);if(P|(N|(s|0)!=0))wh(V,95,t,0,0)|0;if(!m){m=c[(V&p)+32>>2]|0;if(m>>>0>q>>>0)c[((c[(V&p)+4>>2]|0)+(q*20|0)&p)+8>>2]=m;c[((c[(V&p)+24>>2]|0)&p)+88>>2]=m+-1}if(P){zt(e,ka,0,O,l,X);Bt(e,ka,t,ia,O,aa,1,0,0);Ct(e,ka,g,Q,l,X);break}else{Bt(e,ka,t,ia,O,aa,1,0,0);break}}while(0);do if(c[(K&p)>>2]&128){if(c[(e&p)+412>>2]|0)break;wh(V,37,v,1,0)|0}while(0);xt(e,ga,110,g,2,ka,Q,k,G);do if(!H){if(!s){wh(V,16,0,G,0)|0;break}r=c[(V&p)+24>>2]|0;q=~G;do if((G|0)<0){s=c[(r&p)+112>>2]|0;if(!s)break;c[(s+(q<<2)&p)>>2]=c[(V&p)+32>>2]}while(0);c[(r&p)+88>>2]=(c[(V&p)+32>>2]|0)+-1;wh(V,9,D,F,0)|0}while(0);r=c[(V&p)+24>>2]|0;q=~u;do if((u|0)<0){s=c[(r&p)+112>>2]|0;if(!s)break;c[(s+(q<<2)&p)>>2]=c[(V&p)+32>>2]}while(0);c[(r&p)+88>>2]=(c[(V&p)+32>>2]|0)+-1;q=c[(w&p)>>2]|0;if(q){r=0;do{s=r;r=r+1|0;if(a[(da+r&n)>>0]|0)wh(V,61,s+ia|0,0,0)|0;q=c[(q&p)+20>>2]|0}while((q|0)!=0)}if((t|0)<(ia|0))wh(V,61,t,0,0)|0;do if(!(a[(W&n)>>0]|0)){if(c[(e&p)+412>>2]|0)break;st(e)}while(0);if(!(c[(K&p)>>2]&128))break;if(c[(e&p)+412>>2]|0)break;if(a[(W&n)>>0]|0)break;wh(V,35,v,1,0)|0;iq(V,1);if(a[((c[(V&p)>>2]|0)&n)+65>>0]|0)break;Xg(c[(V&p)+16>>2]|0,34520,-1,1,0)|0}while(0);if(S)c[(S&p)+492>>2]=T}}}else l=0}else l=0;while(0);mg(la,l);Do(la,f);Nk(la,g);Gk(la,h);i=ma;return}function tr(e,f,g,h,k){e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;var l=0,m=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,ga=0,ha=0,ia=0,ja=0,ka=0,la=0,ma=0,na=0,oa=0;oa=i;i=i+96|0;if((i|0)>=(j|0))fa();ca=oa;ja=oa+92|0;la=oa+88|0;L=oa+68|0;Y=oa+64|0;O=oa+32|0;ba=oa+28|0;c[(ja&p)>>2]=0;c[(la&p)>>2]=0;na=c[(e&p)>>2]|0;c[(L&p)>>2]=0;c[(L&p)+4>>2]=0;c[(L&p)+8>>2]=0;c[(L&p)+12>>2]=0;c[(L&p)+16>>2]=0;a:do if((c[(e&p)+64>>2]|0)==0?(N=na+65|0,(a[(N&n)>>0]|0)==0):0){if(g)if((b[(g&o)+6>>1]&128)!=0?(c[(g&p)+52>>2]|0)==0:0){l=c[(g&p)>>2]|0;c[(g&p)>>2]=0;Mk(na,g,1);g=0}else l=0;else{g=0;l=0}if((c[(f&p)+16>>2]|0)!=0?(ka=Jr(e,f)|0,(ka|0)!=0):0){u=c[(ka&p)+68>>2]|0;b:do if(u){t=c[(na&p)+20>>2]|0;if((t|0)>0){s=c[(na&p)+16>>2]|0;q=0;while(1){r=q+1|0;if((c[(s+(q<<4)&p)+12>>2]|0)==(u|0)){r=q;break b}if((r|0)<(t|0))q=r;else break}}else r=0}else r=-1e6;while(0);if((((Sq(e,18,c[(ka&p)>>2]|0,0,c[((c[(na&p)+16>>2]|0)+(r<<4)&p)>>2]|0)|0)==0?(ga=ka+44|0,Z=(d[(ga&n)>>0]|0)>>>5&1,ea=jt(e,ka,108,0,Y)|0,ha=(c[(ka&p)+12>>2]|0)!=0,(hr(e,ka)|0)==0):0)?(kt(e,ka,c[(Y&p)>>2]|0)|0)==0:0)?(ma=Oq(e)|0,(ma|0)!=0):0){ia=e+18|0;if(!(a[(ia&n)>>0]|0)){da=ma+88|0;b[(da&o)>>1]=b[(da&o)>>1]|4}da=(g|0)!=0;aa=e+408|0;$=c[(aa&p)>>2]|0;$=($|0)==0?e:$;Ar(e,r);X=$+328|0;c[(X&p)>>2]=c[(X&p)>>2]|1<>0]=d[($&n)>>0]|(da|(ea|0)!=0)&1;$=(h|0)==0;c:do if((((!((g|0)==0|$^1)?(c[(e&p)+532>>2]|0)==0:0)?(c[(g&p)+68>>2]|0)==0:0)?(As(e,ka)|0)==0:0)?(a[(ga&n)>>0]&16)==0:0){if((k|0)==10){if((b[(ka&o)+36>>1]|0)>-1)u=d[(ka&n)+45>>0]|0;else u=10;y=(u|0)==10?2:u}else y=k;t=c[(g&p)+32>>2]|0;if((c[(t&p)>>2]|0)==1){if(c[(t&p)+28>>2]|0){_=117;break}if(c[(g&p)+36>>2]|0){_=117;break}if(c[(g&p)+48>>2]|0){_=117;break}if(c[(g&p)+40>>2]|0){_=117;break}if(c[(g&p)+60>>2]|0){_=117;break}if(c[(g&p)+52>>2]|0){_=117;break}if(b[(g&o)+6>>1]&1){_=117;break}u=c[(g&p)>>2]|0;if((c[(u&p)>>2]|0)!=1){_=117;break}if((a[(c[(c[(u&p)+4>>2]&p)>>2]&n)>>0]|0)!=116){_=117;break}x=Ur(e,0,t+8|0)|0;if((x|0)==0|(x|0)==(ka|0)){_=117;break}B=x+44|0;X=d[(B&n)>>0]|0;if(!((X&16|0)==0?(((d[(ga&n)>>0]|0)>>>5&1^1)&255|0)==(X>>>5&1^1|0):0)){_=117;break}if(c[(x&p)+12>>2]|0){_=117;break}v=b[(ka&o)+38>>1]|0;if(v<<16>>16!=(b[(x&o)+38>>1]|0)){_=117;break}A=ka+36|0;if((b[(A&o)>>1]|0)!=(b[(x&o)+36>>1]|0)){_=117;break}if(v<<16>>16>0){q=c[(ka&p)+4>>2]|0;m=c[(x&p)+4>>2]|0;w=0;do{if((a[(q+(w*24|0)&n)+21>>0]|0)!=(a[(m+(w*24|0)&n)+21>>0]|0)){_=117;break c}u=c[(q+(w*24|0)&p)+16>>2]|0;t=c[(m+(w*24|0)&p)+16>>2]|0;s=(t|0)==0;if(!u){if(!s){_=117;break c}}else{if(s){_=117;break c}if(dd(u,t)|0){_=117;break c}}if((a[(q+(w*24|0)&n)+20>>0]|0)!=0?(a[(m+(w*24|0)&n)+20>>0]|0)==0:0){_=117;break c}do if((w|0)>0){u=c[(q+(w*24|0)&p)+8>>2]|0;t=(u|0)==0;s=c[(m+(w*24|0)&p)+8>>2]|0;if(t^(s|0)==0){_=117;break c}if(t)break;if(_v(u,s)|0){_=117;break c}}while(0);w=w+1|0}while((w|0)<(v<<16>>16|0))}E=ka+8|0;u=c[(E&p)>>2]|0;if(!u)t=0;else{v=c[(x&p)+8>>2]|0;if(!v){_=117;break}else t=0;do{t=(a[(u&n)+50>>0]|0)==0?t:1;s=v;while(1){if(Dt(u,s)|0)break;s=c[(s&p)+20>>2]|0;if(!s){_=117;break c}}if(!s){_=117;break c}u=c[(u&p)+20>>2]|0}while((u|0)!=0)}u=c[(ka&p)+24>>2]|0;if((u|0)!=0?(Ts(c[(x&p)+24>>2]|0,u,-1)|0)!=0:0){_=117;break}s=c[(e&p)>>2]|0;u=c[(s&p)+24>>2]|0;if(!(u&524288)){if(u&128){_=117;break}}else if(!((c[(ka&p)+16>>2]|0)==0&(u&128|0)==0)){_=117;break}m=c[(x&p)+68>>2]|0;d:do if(!m)s=-1e6;else{v=c[(s&p)+20>>2]|0;if((v|0)<=0){s=0;break}u=c[(s&p)+16>>2]|0;q=0;while(1){s=q+1|0;if((c[(u+(q<<4)&p)+12>>2]|0)==(m|0)){s=q;break d}if((s|0)<(v|0))q=s;else break}}while(0);D=Oq(e)|0;Ar(e,s);z=e+68|0;F=c[(z&p)>>2]|0;C=F+1|0;c[(z&p)>>2]=F+2;z=Et(e,r,ka)|0;v=e+19|0;q=a[(v&n)>>0]|0;do if(!(q<<24>>24)){_=e+72|0;u=(c[(_&p)>>2]|0)+1|0;c[(_&p)>>2]=u;_=78}else{X=q+-1<<24>>24;a[(v&n)>>0]=X;u=c[(e+((X&255)<<2)&p)+24>>2]|0;if(!(X<<24>>24)){_=78;break}G=q+-2<<24>>24;a[(v&n)>>0]=G;H=u;G=c[(e+((G&255)<<2)&p)+24>>2]|0}while(0);if((_|0)==78){H=e+72|0;G=(c[(H&p)>>2]|0)+1|0;c[(H&p)>>2]=G;H=u}Qq(e,C,r,ka,55);if((b[(A&o)>>1]|0)<0)if((c[(E&p)>>2]|0)!=0|(t|0)!=0|(y+-1|0)>>>0>1)_=83;else I=0;else if((t|0)!=0|(y+-1|0)>>>0>1)_=83;else I=0;if((_|0)==83){w=wh(D,108,C,0,0)|0;v=wh(D,16,0,0,0)|0;u=c[(D&p)+32>>2]|0;if(u>>>0>w>>>0)c[((c[(D&p)+4>>2]|0)+(w*20|0)&p)+8>>2]=u;c[((c[(D&p)+24>>2]|0)&p)+88>>2]=u+-1;I=v}if(!(a[(B&n)>>0]&32)){Qq(e,F,s,x,54);t=wh(D,108,F,0,0)|0;do if((b[(A&o)>>1]|0)<=-1)if(!(c[(E&p)>>2]|0)){u=wh(D,74,C,G,0)|0;break}else{u=wh(D,103,F,G,0)|0;break}else{u=wh(D,103,F,G,0)|0;w=wh(D,70,C,0,G)|0;Ft(e,y,ka);v=c[(D&p)+32>>2]|0;if(v>>>0>w>>>0)c[((c[(D&p)+4>>2]|0)+(w*20|0)&p)+8>>2]=v;c[((c[(D&p)+24>>2]|0)&p)+88>>2]=v+-1;if((z|0)<=0)break;wh(c[(e&p)+8>>2]|0,136,z,G,0)|0}while(0);wh(D,102,F,H,0)|0;wh(D,75,C,H,G)|0;v=c[(D&p)+4>>2]|0;if(v)a[(v+(((c[(D&p)+32>>2]|0)+-1|0)*20|0)&n)+3>>0]=11;xh(D,-1,c[(ka&p)>>2]|0,0);wh(D,9,F,u,0)|0;wh(D,61,F,0,0)|0;wh(D,61,C,0,0)|0}else{gs(e,r,c[(ka&p)+32>>2]|0,1,c[(ka&p)>>2]|0);gs(e,s,c[(x&p)+32>>2]|0,0,c[(x&p)>>2]|0);t=0}w=c[(E&p)>>2]|0;if(w){q=x+8|0;m=e+8|0;x=D+4|0;y=D+32|0;z=D+24|0;u=w;do{w=q;while(1){w=c[(w&p)>>2]|0;if(Dt(u,w)|0)break;w=w+20|0}wh(D,54,F,c[(w&p)+40>>2]|0,s)|0;X=c[(m&p)>>2]|0;xh(X,-1,hs(e,w)|0,-6);wh(D,55,C,c[(u&p)+40>>2]|0,r)|0;w=c[(m&p)>>2]|0;xh(w,-1,hs(e,u)|0,-6);w=c[(x&p)>>2]|0;if(w)a[(w+(((c[(y&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=1;w=wh(D,108,F,0,0)|0;wh(D,101,F,H,0)|0;wh(D,110,C,H,1)|0;wh(D,9,F,w+1|0,0)|0;v=c[(y&p)>>2]|0;if(v>>>0>w>>>0)c[((c[(x&p)>>2]|0)+(w*20|0)&p)+8>>2]=v;c[((c[(z&p)>>2]|0)&p)+88>>2]=v+-1;wh(D,61,F,0,0)|0;wh(D,61,C,0,0)|0;u=c[(u&p)+20>>2]|0}while((u|0)!=0)}if(t){u=c[(D&p)+32>>2]|0;if(u>>>0>t>>>0)c[((c[(D&p)+4>>2]|0)+(t*20|0)&p)+8>>2]=u;c[((c[(D&p)+24>>2]|0)&p)+88>>2]=u+-1}_r(e,G);_r(e,H);if(!I){m=0;q=0;break}wh(D,24,0,0,0)|0;u=c[(D&p)+32>>2]|0;if(u>>>0>I>>>0)c[((c[(D&p)+4>>2]|0)+(I*20|0)&p)+8>>2]=u;c[((c[(D&p)+24>>2]|0)&p)+88>>2]=u+-1;wh(D,61,C,0,0)|0;_=117}else _=117}else _=117;while(0);do if((_|0)==117){S=Et(e,r,ka)|0;R=e+72|0;t=c[(R&p)>>2]|0;W=t+1|0;X=ka+38|0;I=b[(X&o)>>1]|0;H=I<<16>>16;u=W+H|0;c[(R&p)>>2]=u;if(!(a[(ga&n)>>0]&16))V=W;else{u=u+1|0;c[(R&p)>>2]=u;V=t+2|0}T=V+1|0;U=(h|0)!=0;e:do if(U?(P=c[(h&p)+4>>2]|0,Q=(P|0)>0,Q):0){v=c[(h&p)>>2]|0;t=0;do{c[(v+(t<<3)&p)+4>>2]=-1;t=t+1|0}while((t|0)<(P|0));if(Q){D=Z<<24>>24!=0;C=ka+4|0;B=ka+36|0;t=1;A=0;v=-1;while(1){f:do if(I<<16>>16>0){z=c[(h&p)>>2]|0;s=c[(z+(A<<3)&p)>>2]|0;q=c[(C&p)>>2]|0;m=0;while(1){w=m+1|0;if(!(dd(s,c[(q+(m*24|0)&p)>>2]|0)|0)){w=m;break}if((w|0)<(H|0))m=w;else break f}c[(z+(A<<3)&p)+4>>2]=w;t=(A|0)==(w|0)?t:0;v=(w|0)==(b[(B&o)>>1]|0)?A:v}else w=0;while(0);if((w|0)>=(H|0)){m=c[((c[(h&p)>>2]|0)+(A<<3)&p)>>2]|0;if(($h(m)|0)==0|D)break;else{t=0;w=A}}else w=v;A=A+1|0;if((A|0)>=(P|0)){E=w;break e}else v=w}c[(ca&p)>>2]=f;c[(ca&p)+4>>2]=0;c[(ca&p)+8>>2]=m;th(e,33368,ca);a[(e&n)+17>>0]=1;m=0;break a}else{t=1;E=-1}}else{t=1;E=-1}while(0);g:do if(!da){c[(O&p)>>2]=0;c[(O&p)+4>>2]=0;c[(O&p)+8>>2]=0;c[(O&p)+12>>2]=0;c[(O&p)+16>>2]=0;c[(O&p)+20>>2]=0;c[(O&p)+24>>2]=0;c[(O&p)+28>>2]=0;c[(O&p)>>2]=e;if(l){s=c[(l&p)>>2]|0;if((s|0)>0){u=l+4|0;t=0;while(1){if(ls(O,c[((c[(u&p)>>2]|0)+(t*20|0)&p)>>2]|0)|0){g=0;m=0;break a}t=t+1|0;if((t|0)>=(s|0)){u=0;t=-1;r=0;_=169;break}}}else{P=E;O=0;Q=-1;z=0}}else{P=E;s=0;O=0;Q=-1;z=0}}else{u=u+1|0;c[(R&p)>>2]=u;G=ma+32|0;v=c[(G&p)>>2]|0;wh(ma,20,u,0,v+1|0)|0;a[(L&n)>>0]=13;H=L+4|0;c[(H&p)>>2]=u;a[(L&n)+1>>0]=0;F=L+8|0;c[(F&p)>>2]=t<<24>>24!=0?T:0;c[(L&p)+12>>2]=b[(X&o)>>1];Q=ir(e,g,L)|0;F=c[(F&p)>>2]|0;if(Q){m=0;break a}if(a[(N&n)>>0]|0){m=0;break a}wh(ma,21,u,0,0)|0;u=c[(G&p)>>2]|0;if(u>>>0>v>>>0)c[((c[(ma&p)+4>>2]|0)+(v*20|0)&p)+8>>2]=u;I=ma+24|0;c[((c[(I&p)>>2]|0)&p)+88>>2]=u+-1;s=c[(c[(g&p)>>2]&p)>>2]|0;h:do if(!ea){w=Oq(e)|0;t=c[(w&p)+32>>2]|0;i:do if(!(a[(ga&n)>>0]&16))v=0;else{u=c[(e&p)>>2]|0;v=c[(ka&p)+60>>2]|0;if(!v){v=0;break}while(1){if((c[(v&p)>>2]|0)==(u|0))break i;v=c[(v&p)+24>>2]|0;if(!v){v=0;break}}}while(0);if((t|0)<=1){u=F;t=0;r=0;_=169;break g}q=(a[((c[(w&p)>>2]|0)&n)+65>>0]|0)==0;z=w+4|0;y=ka+32|0;x=ka+8|0;m=1;while(1){if(q)w=(c[(z&p)>>2]|0)+(m*20|0)|0;else w=29120;u=a[(w&n)>>0]|0;do if(u<<24>>24==54){if((c[(w&p)+12>>2]|0)!=(r|0))break;u=c[(w&p)+8>>2]|0;if((u|0)==(c[(y&p)>>2]|0))break h;w=c[(x&p)>>2]|0;if(!w)break;do{if((u|0)==(c[(w&p)+40>>2]|0))break h;w=c[(w&p)+20>>2]|0}while((w|0)!=0)}else if(u<<24>>24==-107?(c[(w&p)+16>>2]|0)==(v|0):0)break h;while(0);m=m+1|0;if((m|0)>=(t|0)){u=F;t=0;r=0;_=169;break g}}}while(0);v=e+68|0;w=c[(v&p)>>2]|0;c[(v&p)>>2]=w+1;v=e+19|0;t=a[(v&n)>>0]|0;do if(!(t<<24>>24)){u=(c[(R&p)>>2]|0)+1|0;c[(R&p)>>2]=u;_=159}else{Q=t+-1<<24>>24;a[(v&n)>>0]=Q;u=c[(e+((Q&255)<<2)&p)+24>>2]|0;if(!(Q<<24>>24)){_=159;break}Q=t+-2<<24>>24;a[(v&n)>>0]=Q;v=c[(e+((Q&255)<<2)&p)+24>>2]|0}while(0);if((_|0)==159){v=(c[(R&p)>>2]|0)+1|0;c[(R&p)>>2]=v}wh(ma,57,w,s,0)|0;r=wh(ma,22,c[(H&p)>>2]|0,0,0)|0;wh(ma,49,F,s,u)|0;wh(ma,74,w,v,0)|0;wh(ma,75,w,u,v)|0;wh(ma,16,0,r,0)|0;t=c[(G&p)>>2]|0;if(t>>>0>r>>>0)c[((c[(ma&p)+4>>2]|0)+(r*20|0)&p)+8>>2]=t;c[((c[(I&p)>>2]|0)&p)+88>>2]=t+-1;_r(e,u);_r(e,v);u=F;t=w;r=1;_=169}while(0);if((_|0)==169)if($&(s|0)>0){P=b[(ka&o)+36>>1]|0;O=u;Q=t;z=r}else{P=E;O=u;Q=t;z=r}if((a[(ga&n)>>0]&16)!=0?(M=b[(X&o)>>1]|0,M<<16>>16>0):0){v=c[(ka&p)+4>>2]|0;t=M<<16>>16;r=0;u=0;do{u=((d[(v+(r*24|0)&n)+23>>0]|0)>>>1&1)+u|0;r=r+1|0}while((r|0)<(t|0))}else u=0;do if($&(s|0)!=0){u=(b[(X&o)>>1]|0)-u|0;if((s|0)==(u|0))break;c[(ca&p)>>2]=f;c[(ca&p)+4>>2]=0;c[(ca&p)+8>>2]=u;c[(ca&p)+12>>2]=s;th(e,33400,ca);m=0;break a}while(0);do if(U){u=c[(h&p)+4>>2]|0;if((s|0)==(u|0))break;c[(ca&p)>>2]=s;c[(ca&p)+4>>2]=u;th(e,33456,ca);m=0;break a}while(0);K=na+24|0;if(!(c[(K&p)>>2]&128))q=0;else{q=(c[(R&p)>>2]|0)+1|0;c[(R&p)>>2]=q;wh(ma,25,0,q,0)|0}do if(ha)m=0;else{u=pt(e,ka,55,-1,0,ja,la)|0;m=mh(na,(u<<2)+4|0,0)|0;if(!m)break a;if((u|0)>0)t=0;else break;do{N=(c[(R&p)>>2]|0)+1|0;c[(R&p)>>2]=N;c[(m+(t<<2)&p)>>2]=N;t=t+1|0}while((t|0)!=(u|0))}while(0);M=z<<24>>24!=0;do if(M){N=wh(ma,108,Q,0,0)|0;L=c[(ma&p)+32>>2]|0}else{if(!da){L=0;N=0;break}N=wh(ma,22,c[(L&p)+4>>2]|0,0,0)|0;L=N}while(0);J=xs(ma)|0;do if(c[(Y&p)>>2]&1){w=(b[(X&o)>>1]|0)+1|0;H=e+60|0;v=c[(H&p)>>2]|0;G=e+56|0;u=c[(G&p)>>2]|0;if((u|0)<(w|0)){I=c[(R&p)>>2]|0;c[(R&p)>>2]=I+w;I=I+1|0}else{c[(H&p)>>2]=w+v;c[(G&p)>>2]=u-w;I=v}if((P|0)<0)wh(ma,25,-1,I,0)|0;else{if(M)wh(ma,47,Q,P,I)|0;else Rq(e,c[((c[(l&p)+4>>2]|0)+(P*20|0)&p)>>2]|0,I);w=wh(ma,77,I,0,0)|0;wh(ma,25,-1,I,0)|0;v=c[(ma&p)+32>>2]|0;if(v>>>0>w>>>0)c[((c[(ma&p)+4>>2]|0)+(w*20|0)&p)+8>>2]=v;c[((c[(ma&p)+24>>2]|0)&p)+88>>2]=v+-1;wh(ma,38,I,0,0)|0}v=b[(X&o)>>1]|0;if(v<<16>>16>0){D=M|(l|0)!=0;t=h+4|0;u=I+1|0;w=l+4|0;A=e+8|0;B=ka+4|0;C=0;do{j:do if($)z=C;else{y=c[(t&p)>>2]|0;if((y|0)<=0){z=0;break}x=c[(h&p)>>2]|0;r=0;while(1){z=r+1|0;if((c[(x+(r<<3)&p)+4>>2]|0)==(C|0)){z=r;break j}if((z|0)<(y|0))r=z;else break}}while(0);do if(D){if(U?(z|0)>=(c[(t&p)>>2]|0):0){_=213;break}if(M){wh(ma,47,Q,z,u+C|0)|0;break}else{Y=c[((c[(w&p)>>2]|0)+(z*20|0)&p)>>2]|0;r=u+C|0;x=c[(A&p)>>2]|0;Rq(e,Y,r);v=(c[(R&p)>>2]|0)+1|0;c[(R&p)>>2]=v;wh(x,33,r,v,0)|0;a[(Y&n)+38>>0]=a[(Y&n)>>0]|0;a[(Y&n)>>0]=-97;c[(Y&p)+28>>2]=v;Y=Y+4|0;c[(Y&p)>>2]=c[(Y&p)>>2]&-4097;break}}else _=213;while(0);if((_|0)==213){_=0;Rq(e,c[((c[(B&p)>>2]|0)+(C*24|0)&p)+4>>2]|0,u+C|0)}C=C+1|0;v=b[(X&o)>>1]|0}while((C|0)<(v<<16>>16|0))}if(!ha){wt(ma,ka,I+1|0);v=b[(X&o)>>1]|0}xt(e,ea,108,0,1,ka,I+-1-(v<<16>>16)|0,k,J);v=(b[(X&o)>>1]|0)+1|0;dt(e,I,v);if((c[(G&p)>>2]|0)>=(v|0))break;c[(G&p)>>2]=v;c[(H&p)>>2]=I}while(0);do if(!ha){if(a[(ga&n)>>0]&16)wh(ma,28,0,W,0)|0;k:do if((P|0)<=-1)if(!((a[(ga&n)>>0]&16|Z)<<24>>24)){wh(ma,74,c[(ja&p)>>2]|0,V,S)|0;I=1;break}else{wh(ma,28,0,V,0)|0;I=0;break}else{do if(M)wh(ma,47,Q,P,V)|0;else{if(da){wh(ma,33,P+O|0,V,0)|0;break}Rq(e,c[((c[(l&p)+4>>2]|0)+(P*20|0)&p)>>2]|0,V);if(!(a[((c[(ma&p)>>2]|0)&n)+65>>0]|0)){u=(c[(ma&p)+4>>2]|0)+(((c[(ma&p)+32>>2]|0)+-1|0)*20|0)|0;if(!u)break}else u=29120;if((a[(u&n)>>0]|0)!=28)break;if(a[(ga&n)>>0]&16)break;a[(u&n)>>0]=74;c[(u&p)+4>>2]=c[(ja&p)>>2];c[(u&p)+8>>2]=V;c[(u&p)+12>>2]=S;I=1;break k}while(0);if(!(a[(ga&n)>>0]&16)){u=wh(ma,77,V,0,0)|0;wh(ma,74,c[(ja&p)>>2]|0,V,S)|0;t=c[(ma&p)+32>>2]|0;if(t>>>0>u>>>0)c[((c[(ma&p)+4>>2]|0)+(u*20|0)&p)+8>>2]=t;c[((c[(ma&p)+24>>2]|0)&p)+88>>2]=t+-1}else wh(ma,76,V,(c[(ma&p)+32>>2]|0)+2|0,0)|0;wh(ma,38,V,0,0)|0;I=0}while(0);if((S|0)>0)wh(c[(e&p)+8>>2]|0,136,S,V,0)|0;if((b[(X&o)>>1]|0)>0){G=ka+36|0;H=ka+4|0;C=(s|0)==0;B=h+4|0;A=(O|0)==(T|0);s=l+4|0;t=e+23|0;u=ca+20|0;v=ca+4|0;E=ca+24|0;F=0;w=0;do{D=F+T|0;l:do if((F|0)==(b[(G&o)>>1]|0))wh(ma,29,D,0,0)|0;else{m:do if($)if(!(a[((c[(H&p)>>2]|0)+(F*24|0)&n)+23>>0]&2)){z=F-w|0;_=258;break}else{w=w+1|0;break}else{y=c[(B&p)>>2]|0;if((y|0)<=0){z=0;_=258;break}x=c[(h&p)>>2]|0;r=0;while(1){z=r+1|0;if((c[(x+(r<<3)&p)+4>>2]|0)==(F|0)){z=r;_=258;break m}if((z|0)<(y|0))r=z;else{_=258;break}}}while(0);do if((_|0)==258){_=0;if((z|0)<0|C)break;if(U?(z|0)>=(c[(B&p)>>2]|0):0)break;if(M){wh(ma,47,Q,z,D)|0;break l}if(!da){Rq(e,c[((c[(s&p)>>2]|0)+(z*20|0)&p)>>2]|0,D);break l}if(A)break l;wh(ma,34,z+O|0,D,0)|0;break l}while(0);z=c[((c[(H&p)>>2]|0)+(F*24|0)&p)+4>>2]|0;do if(a[(t&n)>>0]|0){c[(ca&p)>>2]=0;c[(ca&p)+4>>2]=0;c[(ca&p)+8>>2]=0;c[(ca&p)+12>>2]=0;c[(ca&p)+16>>2]=0;c[(ca&p)+20>>2]=0;a[(u&n)>>0]=1;c[(ca&p)>>2]=78;c[(v&p)>>2]=79;c[(E&p)>>2]=0;rs(ca,z)|0;if(!(a[(u&n)>>0]|0))break;Gt(e,z,D,0);break l}while(0);Rq(e,z,D)}while(0);F=F+1|0}while((F|0)<(b[(X&o)>>1]|0))}if(!(a[(ga&n)>>0]&16)){yt(e,ka,m,c[(ja&p)>>2]|0,c[(la&p)>>2]|0,W,0,P>>>31&255^1,k&255,J,ba);zt(e,ka,0,W,0,0);Bt(e,ka,c[(ja&p)>>2]|0,c[(la&p)>>2]|0,W,m,0,I,(c[(ba&p)>>2]|0)==0&1);break}u=c[(ka&p)+60>>2]|0;n:do if(!u)u=0;else while(1){if((c[(u&p)>>2]|0)==(na|0))break n;u=c[(u&p)+24>>2]|0;if(!u){u=0;break}}while(0);qt(e,ka);xh(ma,wh(ma,15,1,(b[(X&o)>>1]|0)+2|0,W)|0,u,-10);t=c[(ma&p)+4>>2]|0;if(t)a[(t+(((c[(ma&p)+32>>2]|0)+-1|0)*20|0)&n)+3>>0]=(k|0)==10?2:k&255;ca=c[(aa&p)>>2]|0;a[(((ca|0)==0?e:ca)&n)+21>>0]=1}while(0);if(c[(K&p)>>2]&128)wh(ma,37,q,1,0)|0;if(ea)xt(e,ea,108,0,2,ka,V+-1-(b[(X&o)>>1]|0)|0,k,J);u=ma+24|0;t=c[(u&p)>>2]|0;r=~J;do if((J|0)<0){s=c[(t&p)+112>>2]|0;if(!s)break;c[(s+(r<<2)&p)>>2]=c[(ma&p)+32>>2]}while(0);s=ma+32|0;c[(t&p)+88>>2]=(c[(s&p)>>2]|0)+-1;do if(M){wh(ma,9,Q,L,0)|0;s=c[(s&p)>>2]|0;if(s>>>0>N>>>0)c[((c[(ma&p)+4>>2]|0)+(N*20|0)&p)+8>>2]=s;c[((c[(u&p)>>2]|0)&p)+88>>2]=s+-1;wh(ma,61,Q,0,0)|0}else{if(!da)break;wh(ma,16,0,L,0)|0;s=c[(s&p)>>2]|0;if(s>>>0>N>>>0)c[((c[(ma&p)+4>>2]|0)+(N*20|0)&p)+8>>2]=s;c[((c[(u&p)>>2]|0)&p)+88>>2]=s+-1}while(0);if((a[(ga&n)>>0]&16)!=0|ha)break;r=c[(ja&p)>>2]|0;if((r|0)<(c[(la&p)>>2]|0))wh(ma,61,r,0,0)|0;r=c[(ka&p)+8>>2]|0;if(!r)break;else s=0;while(1){wh(ma,61,(c[(la&p)>>2]|0)+s|0,0,0)|0;r=c[(r&p)+20>>2]|0;if(!r)break;else s=s+1|0}}while(0);if((a[(ia&n)>>0]|0)==0?(c[(e&p)+412>>2]|0)==0:0)st(e);if((((c[(na&p)+24>>2]&128|0)!=0?(a[(ia&n)>>0]|0)==0:0)?(c[(e&p)+412>>2]|0)==0:0)?(wh(ma,35,q,1,0)|0,iq(ma,1),(a[((c[(ma&p)>>2]|0)&n)+65>>0]|0)==0):0)Xg(c[(ma&p)+16>>2]|0,33488,-1,1,0)|0}else m=0}else m=0}else{m=0;l=0}while(0);Do(na,f);Nk(na,l);Mk(na,g,1);Hk(na,h);mg(na,m);i=oa;return}function ur(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0;h=i;i=i+16|0;if((i|0)>=(j|0))fa();f=h;if(!d){d=mh(b,8,0)|0;if(!d)d=0;else{g=d;k=g;a[(k&n)>>0]=0;a[(k&n)+1>>0]=0;a[(k&n)+2>>0]=0;a[(k&n)+3>>0]=0;g=g+4|0;a[(g&n)>>0]=0;a[(g&n)+1>>0]=0;a[(g&n)+2>>0]=0;a[(g&n)+3>>0]=0;g=4}}else g=4;do if((g|0)==4){c[(d&p)>>2]=Ht(b,c[(d&p)>>2]|0,8,d+4|0,f)|0;f=c[(f&p)>>2]|0;if((f|0)<0){Hk(b,d);d=0;break}else{b=Wq(b,e)|0;c[((c[(d&p)>>2]|0)+(f<<3)&p)>>2]=b;break}}while(0);i=h;return d|0}function vr(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0;if((c[(d&p)+4>>2]|0)!=0?(f=nr(c[(a&p)>>2]|0,95,d,e)|0,(f|0)!=0):0){c[(f&p)+12>>2]=b;b=f+4|0;c[(b&p)>>2]=c[(b&p)>>2]|4352;b=f}return b|0}function wr(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;e=c[(a&p)>>2]|0;d=nr(e,153,d,1)|0;if(!d){Nk(e,b);d=0}else{c[(d&p)+20>>2]=b;yr(a,d)}return d|0}function xr(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;b=c[(b&p)>>2]|0;if((d|0)!=0&(e|0)!=0?(a[(d&n)>>0]|0)==101:0){a[(e&n)>>0]=f;f=e+16|0;Gk(b,c[(f&p)>>2]|0);c[(f&p)>>2]=0}return}function yr(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;f=i;i=i+16|0;if((i|0)>=(j|0))fa();e=f;if((c[(a&p)+64>>2]|0)==0?(It(b),d=c[((c[(a&p)>>2]|0)&p)+100>>2]|0,(d|0)<(c[(b&p)+24>>2]|0)):0){c[(e&p)>>2]=d;th(a,27152,e)}i=f;return}function zr(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,i=0;d=c[(a&p)>>2]|0;i=d+20|0;e=c[(i&p)>>2]|0;if((e|0)>0){g=d+16|0;h=(b|0)==0;d=e;f=0;do{e=c[(g&p)>>2]|0;do if(c[(e+(f<<4)&p)+4>>2]|0){if(!h?(dd(b,c[(e+(f<<4)&p)>>2]|0)|0)!=0:0)break;Ar(a,f);d=c[(i&p)>>2]|0}while(0);f=f+1|0}while((f|0)<(d|0))}return}function Ar(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;f=c[(a&p)+408>>2]|0;f=(f|0)==0?a:f;a=f+332|0;d=c[(a&p)>>2]|0;e=1<>2]|0,c[(a&p)>>2]=d|e,c[(f+(b<<2)&p)+336>>2]=c[(c[((c[(g&p)+16>>2]|0)+(b<<4)&p)+12>>2]&p)>>2],(b|0)==1):0)_k(f)|0;return}function Br(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,o=0,q=0;q=i;i=i+128|0;if((i|0)>=(j|0))fa();f=q+8|0;o=q;m=q+24|0;c[(o&p)>>2]=0;k=c[(b&p)>>2]|0;if((c[(b&p)+64>>2]|0)==0?(c[(f&p)>>2]=e,l=Wk(k,d,f)|0,(l|0)!=0):0){d=b+18|0;a[(d&n)>>0]=(a[(d&n)>>0]|0)+1<<24>>24;e=b+440|0;f=m+0|0;g=e+0|0;h=f+96|0;do{a[(f&n)>>0]=a[(g&n)>>0]|0;f=f+1|0;g=g+1|0}while((f|0)<(h|0));f=e+0|0;h=f+96|0;do{c[(f&p)>>2]=0;f=f+4|0}while((f|0)<(h|0));Lh(b,l,o)|0;mg(k,c[(o&p)>>2]|0);mg(k,l);f=e+0|0;g=m+0|0;h=f+96|0;do{a[(f&n)>>0]=a[(g&n)>>0]|0;f=f+1|0;g=g+1|0}while((f|0)<(h|0));a[(d&n)>>0]=(a[(d&n)>>0]|0)+-1<<24>>24}i=q;return}function Cr(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0;k=i;i=i+48|0;if((i|0)>=(j|0))fa();g=k;h=k+16|0;b=c[((c[((c[(a&p)>>2]|0)&p)+16>>2]|0)+(b<<4)&p)>>2]|0;f=1;do{c[(g&p)>>2]=f;ad(24,h,33272,g)|0;if(_h(c[(a&p)>>2]|0,h,b)|0){c[(g&p)>>2]=b;c[(g&p)+4>>2]=h;c[(g&p)+8>>2]=d;c[(g&p)+12>>2]=e;Br(a,28840,g)}f=f+1|0}while((f|0)!=5);i=k;return}function Dr(b,d){b=b|0;d=d|0;var e=0,f=0;e=b+19|0;f=a[(e&n)>>0]|0;if(!(f<<24>>24)){f=b+72|0;e=(c[(f&p)>>2]|0)+1|0;c[(f&p)>>2]=e}else{f=f+-1<<24>>24;a[(e&n)>>0]=f;e=c[(b+((f&255)<<2)&p)+24>>2]|0}f=c[(b&p)+8>>2]|0;wh(f,25,(c[(c[((c[((c[(b&p)>>2]|0)&p)+16>>2]|0)+(d<<4)&p)+12>>2]&p)>>2]|0)+1|0,e,0)|0;wh(f,52,d,1,e)|0;_r(b,e);return}function Er(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0;l=i;i=i+32|0;if((i|0)>=(j|0))fa();k=l;h=Oq(b)|0;f=b+19|0;g=a[(f&n)>>0]|0;if(!(g<<24>>24)){g=b+72|0;f=(c[(g&p)>>2]|0)+1|0;c[(g&p)>>2]=f}else{g=g+-1<<24>>24;a[(f&n)>>0]=g;f=c[(b+((g&255)<<2)&p)+24>>2]|0}wh(h,117,d,f,e)|0;g=c[(b&p)+408>>2]|0;a[(((g|0)==0?b:g)&n)+21>>0]=1;c[(k&p)>>2]=c[((c[((c[(b&p)>>2]|0)&p)+16>>2]|0)+(e<<4)&p)>>2];c[(k&p)+4>>2]=(e|0)==1?13184:13208;c[(k&p)+8>>2]=d;c[(k&p)+12>>2]=f;c[(k&p)+16>>2]=f;Br(b,33216,k);_r(b,f);i=l;return}function Fr(f,g,h,k,l){f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;var m=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;X=i;i=i+96|0;if((i|0)>=(j|0))fa();G=X+24|0;w=X+80|0;q=X+64|0;A=X+16|0;t=X+60|0;u=X+56|0;O=X+52|0;N=X+48|0;z=X+44|0;D=X+40|0;E=X+36|0;F=X+32|0;x=X+8|0;s=X;W=c[(f&p)>>2]|0;T=Oq(f)|0;do if((T|0)!=0?(S=T+88|0,b[(S&o)>>1]=b[(S&o)>>1]|16,S=f+72|0,c[(S&p)>>2]=2,Q=er(f,g,h,w)|0,(Q|0)>=0):0){R=W+16|0;C=c[(R&p)>>2]|0;if((Q|0)==1?(_k(f)|0)!=0:0)break;V=Wq(W,c[(w&p)>>2]|0)|0;if(V){if(!l)U=Wq(W,k)|0;else{c[(G&p)>>2]=k;U=uh(W,30104,G)|0}B=h+4|0;if(!(c[(B&p)>>2]|0))L=0;else L=c[(C+(Q<<4)&p)>>2]|0;a:do if(!(Sq(f,19,V,U,L)|0)){c[(q&p)>>2]=0;c[(q&p)+4>>2]=V;c[(q&p)+8>>2]=U;c[(q&p)+12>>2]=0;r=W+452|0;c[(r&p)>>2]=0;g=cg(W,L,14,q)|0;if(!g){k=c[(q&p)>>2]|0;if(!k)break;m=(c[(S&p)>>2]|0)+1|0;c[(S&p)>>2]=m;xh(T,wh(T,97,0,m,0)|0,k,0);iq(T,1);if(!(a[((c[(T&p)>>2]|0)&n)+65>>0]|0))Xg(c[(T&p)+16>>2]|0,30112,-1,1,0)|0;wh(T,35,m,1,0)|0;Wc(c[(q&p)>>2]|0);break}else if((g|0)==12){w=0;q=56;b:while(1){while(1){l=(w+q|0)/2|0;g=c[((l*12|0)&p)+30120>>2]|0;k=dd(V,g)|0;if(!k){w=l;break b}if((k|0)<0){g=l;break}if((l|0)<(q|0))w=l+1|0;else break a}g=g+-1|0;if((w|0)>(g|0))break a;else q=g}if((a[((w*12|0)&n)+30125>>0]&1)!=0?(Gn(f)|0)!=0:0)break;do switch(d[((w*12|0)&n)+30124>>0]|0){case 10:{q=1<>2]=c[(F&p)>>2]|q;if(U){c[(G&p)>>2]=0;Dn(U,G)|0;k=c[(G&p)>>2]|0;if((k|0)<=-1)k=(k|0)==-2147483648?2147483647:0-k|0;G=c[(f&p)+408>>2]|0;Ar(f,Q);G=((G|0)==0?f:G)+328|0;c[(G&p)>>2]=c[(G&p)>>2]|q;wh(T,25,k,1,0)|0;wh(T,52,Q,3,1)|0;c[((c[(C+(Q<<4)&p)+12>>2]|0)&p)+80>>2]=k;pq(c[(C+(Q<<4)&p)+4>>2]|0,k);break a}iq(T,1);if(!(a[((c[(T&p)>>2]|0)&n)+65>>0]|0))Xg(c[(T&p)+16>>2]|0,30848,-1,1,0)|0;c[(S&p)>>2]=(c[(S&p)>>2]|0)+2;k=yh(T,9,30808)|0;l=c[(T&p)+32>>2]|0;if(l>>>0>k>>>0)c[((c[(T&p)+4>>2]|0)+(k*20|0)&p)+4>>2]=Q;m=k+1|0;if(l>>>0>m>>>0)c[((c[(T&p)+4>>2]|0)+(m*20|0)&p)+4>>2]=Q;m=k+6|0;if(l>>>0<=m>>>0)break a;c[((c[(T&p)+4>>2]|0)+(m*20|0)&p)+4>>2]=2e3;break a}case 19:{k=c[(c[((c[(C+(Q<<4)&p)+4>>2]|0)&p)+4>>2]&p)>>2]|0;G=A;c[(G&p)>>2]=-2;c[(G&p)+4>>2]=-1;if(U){ji(U,A)|0;m=A;l=c[(m&p)>>2]|0;m=c[(m&p)+4>>2]|0;if((m|0)<-1|(m|0)==-1&l>>>0<4294967295){l=A;c[(l&p)>>2]=-1;c[(l&p)+4>>2]=-1;l=-1;m=-1}G=k+160|0;c[(G&p)>>2]=l;c[(G&p)+4>>2]=m;k=c[(k&p)+208>>2]|0;if(k){G=k+16|0;c[(G&p)>>2]=l;c[(G&p)+4>>2]=m}}else{m=k+160|0;l=c[(m&p)>>2]|0;m=c[(m&p)+4>>2]|0}G=A;c[(G&p)>>2]=l;c[(G&p)+4>>2]=m;Jt(f,30952,l,m);break a}case 28:{q=Oq(f)|0;iq(q,4);c[(S&p)>>2]=4;Ar(f,Q);if((((a[((c[(q&p)>>2]|0)&n)+65>>0]|0)==0?(Xg(c[(q&p)+16>>2]|0,31232,-1,1,0)|0,(a[((c[(q&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(q&p)+16>>2]|0)+40|0,20632,-1,1,0)|0,(a[((c[(q&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(q&p)+16>>2]|0)+80|0,31240,-1,1,0)|0,(a[((c[(q&p)>>2]|0)&n)+65>>0]|0)==0):0)Xg((c[(q&p)+16>>2]|0)+120|0,31248,-1,1,0)|0;l=c[((c[(C+(Q<<4)&p)+12>>2]|0)&p)+16>>2]|0;if(!l)break a;do{m=c[(l&p)+8>>2]|0;G=c[(m&p)>>2]|0;xh(q,wh(q,97,0,1,0)|0,G,0);wh(q,28,0,2,0)|0;G=Ws(b[(m&o)+42>>1]|0)|0;wh(q,25,G,3,0)|0;G=Ws(b[(m&o)+28>>1]|0)|0;wh(q,25,G,4,0)|0;wh(q,35,1,4,0)|0;m=c[(m&p)+8>>2]|0;if(m)do{G=c[(m&p)>>2]|0;xh(q,wh(q,97,0,2,0)|0,G,0);G=Ws(b[(m&o)+44>>1]|0)|0;wh(q,25,G,3,0)|0;G=Ws(b[(c[(m&p)+8>>2]&o)>>1]|0)|0;wh(q,25,G,4,0)|0;wh(q,35,1,4,0)|0;m=c[(m&p)+20>>2]|0}while((m|0)!=0);l=c[(l&p)>>2]|0}while((l|0)!=0);break}case 15:{if(!U)break a;s=bq(W,U,L)|0;if(!s)break a;w=(c[((w*12|0)&p)+30128>>2]|0)==0;t=s+46|0;G=w?3:6;r=b[((w?t:s+48|0)&o)>>1]|0;u=r&65535;c[(S&p)>>2]=G;q=c[(s&p)+12>>2]|0;iq(T,G);Ar(f,Q);if(((a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0?(Xg(c[(T&p)+16>>2]|0,31256,-1,1,0)|0,(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(T&p)+16>>2]|0)+40|0,31176,-1,1,0)|0,(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0):0)Xg((c[(T&p)+16>>2]|0)+80|0,31184,-1,1,0)|0;if(((!w?(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0:0)?(Xg((c[(T&p)+16>>2]|0)+120|0,31264,-1,1,0)|0,(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(T&p)+16>>2]|0)+160|0,31272,-1,1,0)|0,(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0):0)Xg((c[(T&p)+16>>2]|0)+200|0,31280,-1,1,0)|0;if(!(r<<16>>16))break a;m=s+4|0;l=s+28|0;k=s+32|0;s=q+4|0;q=0;do{G=b[((c[(m&p)>>2]|0)+(q<<1)&o)>>1]|0;wh(T,25,q,1,0)|0;r=G<<16>>16;wh(T,25,r,2,0)|0;if(G<<16>>16<0)wh(T,28,0,3,0)|0;else{G=c[((c[(s&p)>>2]|0)+(r*24|0)&p)>>2]|0;xh(T,wh(T,97,0,3,0)|0,G,0)}if(!w){wh(T,25,d[((c[(l&p)>>2]|0)+q&n)>>0]|0,4,0)|0;G=c[((c[(k&p)>>2]|0)+(q<<2)&p)>>2]|0;xh(T,wh(T,97,0,5,0)|0,G,0);wh(T,25,(q|0)<(e[(t&o)>>1]|0)&1,6,0)|0}wh(T,35,1,c[(S&p)>>2]|0,0)|0;q=q+1|0}while((q|0)<(u|0));break}case 22:{Ar(f,Q);k=(c[(S&p)>>2]|0)+1|0;c[(S&p)>>2]=k;if((a[(V&n)>>0]&-33)<<24>>24==80)wh(T,153,Q,k,0)|0;else{c[(G&p)>>2]=0;if(U){Dn(U,G)|0;m=c[(G&p)>>2]|0;if((m|0)<=-1)m=(m|0)==-2147483648?2147483647:0-m|0}else m=0;wh(T,154,Q,k,m)|0}wh(T,35,k,1,0)|0;iq(T,1);if(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)break a;Xg(c[(T&p)+16>>2]|0,V,-1,1,-1)|0;break a}case 24:{l=c[(C+(Q<<4)&p)+4>>2]|0;if(U){c[(G&p)>>2]=0;Dn(U,G)|0;G=c[(G&p)>>2]|0;c[(W&p)+72>>2]=G;if((xg(l,G,-1,0)|0)!=7)break a;a[(W&n)+65>>0]=1;break a}if(!l){l=0;m=0}else{m=c[((c[(l&p)+4>>2]|0)&p)+32>>2]|0;l=m;m=((m|0)<0)<<31>>31}Jt(f,30864,l,m);break a}case 25:{l=c[(C+(Q<<4)&p)+4>>2]|0;if(U){m=(ii(U,1,0)|0)<<24>>24!=0&1;if((c[(B&p)>>2]|0)==0?(y=W+20|0,(c[(y&p)>>2]|0)>0):0){k=0;do{so(c[((c[(R&p)>>2]|0)+(k<<4)&p)+4>>2]|0,m)|0;k=k+1|0}while((k|0)<(c[(y&p)>>2]|0))}}else m=-1;G=so(l,m)|0;Jt(f,30880,G,((G|0)<0)<<31>>31);break a}case 18:{iq(T,1);if(!(a[((c[(T&p)>>2]|0)&n)+65>>0]|0))Xg(c[(T&p)+16>>2]|0,30936,-1,1,0)|0;c:do if(U){k=U;while(1)if(!(a[(k&n)>>0]|0))break;else k=k+1|0;m=k-U&1073741823;k=0;while(1){if(!(Fc(U,c[(k<<2&p)+32216>>2]|0,m)|0))break;k=k+1|0;if((k|0)==6){P=91;break c}}if((k|0)!=-1)q=Q;else P=91}else P=91;while(0);if((P|0)==91)if(!(c[(B&p)>>2]|0)){c[(B&p)>>2]=1;k=-1;q=0}else{k=-1;q=Q}m=c[(W&p)+20>>2]|0;if((m|0)>0){l=T+96|0;do{m=m+-1|0;do if(c[((c[(R&p)>>2]|0)+(m<<4)&p)+4>>2]|0){if((m|0)!=(q|0)?(c[(B&p)>>2]|0)!=0:0)break;c[(l&p)>>2]=c[(l&p)>>2]|1<0)}wh(T,35,1,1,0)|0;break a}case 32:{if(!U){if(!(c[2708]|0))break a;iq(T,1);if(!(a[((c[(T&p)>>2]|0)&n)+65>>0]|0))Xg(c[(T&p)+16>>2]|0,31048,-1,1,0)|0;G=c[2708]|0;xh(T,wh(T,97,0,1,0)|0,G,0);wh(T,35,1,1,0)|0;break a}if((a[(U&n)>>0]|0)!=0?(F=c[(W&p)>>2]|0,F=(pc[c[(F&p)+32>>2]&31](F,U,1,u)|0)!=0,F|(c[(u&p)>>2]|0)==0):0){th(f,31072,G);break a}if((d[(W&n)+64>>0]|0)<2)Kt(f)|0;Wc(c[2708]|0);if(!(a[(U&n)>>0]|0)){c[2708]=0;break a}else{c[(G&p)>>2]=U;c[2708]=_c(10344,G)|0;break a}}case 14:{if(!((U|0)!=0?(G=(Dn(U,t)|0)==0,m=c[(t&p)>>2]|0,!(G|(m|0)<1)):0)){c[(t&p)>>2]=2147483647;m=2147483647}l=c[(f&p)+408>>2]|0;Ar(f,Q);l=((l|0)==0?f:l)+328|0;c[(l&p)>>2]=c[(l&p)>>2]|1<>2]|0;if(l>>>0>m>>>0)c[((c[(T&p)+4>>2]|0)+(m*20|0)&p)+8>>2]=l;c[((c[(T&p)+24>>2]|0)&p)+88>>2]=l+-1;break a}case 30:{if(!U)break a;h=_h(W,U,L)|0;if(!h)break a;k=c[(h&p)+8>>2]|0;d:do if(!k)k=0;else while(1){if((a[(k&n)+51>>0]&3)==2)break d;k=c[(k&p)+20>>2]|0;if(!k){k=0;break}}while(0);iq(T,6);c[(S&p)>>2]=6;Ar(f,Q);do if((((a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0?(Xg(c[(T&p)+16>>2]|0,31176,-1,1,0)|0,(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(T&p)+16>>2]|0)+40|0,31184,-1,1,0)|0,(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(T&p)+16>>2]|0)+80|0,31192,-1,1,0)|0,(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0):0){Xg((c[(T&p)+16>>2]|0)+120|0,31200,-1,1,0)|0;if(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)break;Xg((c[(T&p)+16>>2]|0)+160|0,31208,-1,1,0)|0;if(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)break;Xg((c[(T&p)+16>>2]|0)+200|0,31224,-1,1,0)|0}while(0);hr(f,h)|0;t=h+38|0;m=b[(t&o)>>1]|0;if(m<<16>>16<=0)break a;u=(k|0)==0;l=k+4|0;w=0;r=0;g=c[(h&p)+4>>2]|0;while(1){s=g+23|0;if(!(a[(s&n)>>0]&2)){wh(T,25,w-r|0,1,0)|0;q=c[(g&p)>>2]|0;xh(T,wh(T,97,0,2,0)|0,q,0);q=c[(g&p)+12>>2]|0;xh(T,wh(T,97,0,3,0)|0,(q|0)==0?10360:q,0);wh(T,25,(a[(g&n)+20>>0]|0)!=0&1,4,0)|0;q=c[(g&p)+8>>2]|0;if(!q)wh(T,28,0,5,0)|0;else xh(T,wh(T,97,0,5,0)|0,q,0);k=a[(s&n)>>0]&1;e:do if(k<<24>>24==0|u)q=(k^1)&255^1;else{q=b[(t&o)>>1]|0;if(q<<16>>16<1){q=1;break}m=c[(l&p)>>2]|0;s=q<<16>>16;k=1;while(1){q=k+1|0;if((b[(m+(k+-1<<1)&o)>>1]|0)==(w|0)){q=k;break e}if((k|0)<(s|0))k=q;else break}}while(0);wh(T,25,q,6,0)|0;wh(T,35,1,6,0)|0;m=b[(t&o)>>1]|0}else r=r+1|0;w=w+1|0;if((w|0)>=(m<<16>>16|0))break;else g=g+24|0}break}case 2:{if(!U){Jt(f,g,(c[((w*12|0)&p)+30128>>2]&c[(W&p)+24>>2]|0)!=0&1,0);break a}l=c[((w*12|0)&p)+30128>>2]|0;l=(a[(W&n)+63>>0]|0)==0?l&-524289:l;if(!((ii(U,1,0)|0)<<24>>24)){G=W+24|0;c[(G&p)>>2]=c[(G&p)>>2]&~l;if((l|0)==16777216){G=W+512|0;c[(G&p)>>2]=0;c[(G&p)+4>>2]=0}}else{G=W+24|0;c[(G&p)>>2]=c[(G&p)>>2]|l}wh(T,144,0,0,0)|0;Lt(W);break a}case 5:{if(!U)break a;G=(ii(U,1,0)|0)<<24>>24!=0;F=G?32e3:19240;Qh(W,19248,2,1,F,40,0,0,0)|0;Qh(W,19248,3,1,F,40,0,0,0)|0;Qh(W,19232,2,1,10352,40,0,0,0)|0;Ot(W,19232,12);Ot(W,19248,G?12:4);break a}case 17:{g=a[(V&n)>>0]|0;A=(c[(h&p)>>2]|0)==0?-1:Q;c[(S&p)>>2]=6;iq(T,1);if(!(a[((c[(T&p)>>2]|0)&n)+65>>0]|0))Xg(c[(T&p)+16>>2]|0,31464,-1,1,0)|0;c[(z&p)>>2]=100;if(U){Dn(U,z)|0;s=c[(z&p)>>2]|0;if((s|0)<1){c[(z&p)>>2]=100;s=100}}else s=100;wh(T,25,s,1,0)|0;M=W+20|0;w=c[(M&p)>>2]|0;if((w|0)>0){L=(A|0)<0;m=T+32|0;I=T+4|0;H=T+24|0;N=(g&-33)<<24>>24==81;O=0;do{if(L|(O|0)==(A|0)){Ar(f,O);w=wh(T,137,1,0,0)|0;wh(T,24,0,0,0)|0;l=c[(m&p)>>2]|0;if(l>>>0>w>>>0)c[((c[(I&p)>>2]|0)+(w*20|0)&p)+8>>2]=l;c[((c[(H&p)>>2]|0)&p)+88>>2]=l+-1;k=(c[((c[(R&p)>>2]|0)+(O<<4)&p)+12>>2]|0)+16|0;w=c[(k&p)>>2]|0;if(!w)g=0;else{g=0;do{l=c[(w&p)+8>>2]|0;if(!(a[(l&n)+44>>0]&32)){wh(T,25,c[(l&p)+32>>2]|0,g+2|0,0)|0;g=g+1|0}l=c[(l&p)+8>>2]|0;if(l)do{wh(T,25,c[(l&p)+40>>2]|0,g+2|0,0)|0;g=g+1|0;l=c[(l&p)+20>>2]|0}while((l|0)!=0);w=c[(w&p)>>2]|0}while((w|0)!=0)}C=c[(S&p)>>2]|0;w=g+8|0;c[(S&p)>>2]=(C|0)>(w|0)?C:w;wh(T,127,2,g,1)|0;w=c[(I&p)>>2]|0;if(w)a[(w+(((c[(m&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=O;g=wh(T,76,2,0,0)|0;c[(G&p)>>2]=c[((c[(R&p)>>2]|0)+(O<<4)&p)>>2];w=uh(W,31480,G)|0;xh(T,wh(T,97,0,3,0)|0,w,-1);wh(T,32,2,4,1)|0;wh(T,94,4,3,2)|0;wh(T,35,2,1,0)|0;w=c[(m&p)>>2]|0;if(w>>>0>g>>>0)c[((c[(I&p)>>2]|0)+(g*20|0)&p)+8>>2]=w;c[((c[(H&p)>>2]|0)&p)+88>>2]=w+-1;w=c[(k&p)>>2]|0;if(!((w|0)==0|N))do{x=c[(w&p)+8>>2]|0;J=x+8|0;g=c[(J&p)>>2]|0;do if(g){f:do if(!(a[(x&n)+44>>0]&32))g=0;else while(1){if((a[(g&n)+51>>0]&3)==2)break f;g=c[(g&p)+20>>2]|0;if(!g){g=0;break}}while(0);l=wh(T,137,1,0,0)|0;wh(T,24,0,0,0)|0;k=c[(m&p)>>2]|0;if(k>>>0>l>>>0)c[((c[(I&p)>>2]|0)+(l*20|0)&p)+8>>2]=k;c[((c[(H&p)>>2]|0)&p)+88>>2]=k+-1;at(f);pt(f,x,54,1,0,D,E)|0;wh(T,25,0,7,0)|0;k=c[(J&p)>>2]|0;if(!k)l=8;else{l=0;while(1){wh(T,25,0,l+8|0,0)|0;k=c[(k&p)+20>>2]|0;if(!k)break;else l=l+1|0}l=l+9|0}K=c[(S&p)>>2]|0;c[(S&p)>>2]=(K|0)>(l|0)?K:l;wh(T,108,c[(D&p)>>2]|0,0,0)|0;K=wh(T,37,7,1,0)|0;u=x+38|0;l=b[(u&o)>>1]|0;if(l<<16>>16>0){h=x+36|0;v=x+4|0;t=0;do{do if((t|0)!=(b[(h&o)>>1]|0)){if(!(a[((c[(v&p)>>2]|0)+(t*24|0)&n)+20>>0]|0))break;nt(T,x,c[(D&p)>>2]|0,t,3);l=c[(I&p)>>2]|0;if(l)a[(l+(((c[(m&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=-128;l=wh(T,77,3,0,0)|0;wh(T,37,1,-1,0)|0;q=c[((c[(v&p)>>2]|0)+(t*24|0)&p)>>2]|0;c[(G&p)>>2]=c[(x&p)>>2];c[(G&p)+4>>2]=q;q=uh(W,31504,G)|0;xh(T,wh(T,97,0,3,0)|0,q,-1);wh(T,35,3,1,0)|0;q=wh(T,137,1,0,0)|0;wh(T,24,0,0,0)|0;r=c[(m&p)>>2]|0;if(r>>>0>l>>>0)c[((c[(I&p)>>2]|0)+(l*20|0)&p)+8>>2]=r;l=r+-1|0;k=(c[(H&p)>>2]|0)+88|0;c[(k&p)>>2]=l;if(r>>>0>q>>>0)c[((c[(I&p)>>2]|0)+(q*20|0)&p)+8>>2]=r;c[(k&p)>>2]=l;l=b[(u&o)>>1]|0}while(0);t=t+1|0}while((t|0)<(l<<16>>16|0))}l=c[(J&p)>>2]|0;if(l){z=x+4|0;y=0;r=0;k=-1;while(1){q=xs(T)|0;if((g|0)!=(l|0)){k=Pt(f,l,c[(D&p)>>2]|0,0,0,F,r,k)|0;wh(T,37,y+8|0,1,0)|0;x=e[(l&o)+48>>1]|0;q=wh(T,69,(c[(E&p)>>2]|0)+y|0,q,k)|0;xh(T,q,x,-14);wh(T,37,1,-1,0)|0;xh(T,wh(T,97,0,3,0)|0,31528,-2);wh(T,94,7,3,3)|0;xh(T,wh(T,97,0,4,0)|0,31536,-2);wh(T,94,4,3,3)|0;x=c[(l&p)>>2]|0;v=wh(T,97,0,4,0)|0;xh(T,v,x,0);wh(T,94,4,3,3)|0;wh(T,35,3,1,0)|0;x=wh(T,137,1,0,0)|0;wh(T,24,0,0,0)|0;r=c[(m&p)>>2]|0;if(r>>>0>q>>>0)c[((c[(I&p)>>2]|0)+(q*20|0)&p)+8>>2]=r;q=c[(H&p)>>2]|0;c[(q&p)+88>>2]=r+-1;if(a[(l&n)+50>>0]|0){h=xs(T)|0;u=l+46|0;q=b[(u&o)>>1]|0;if(q<<16>>16){t=l+4|0;r=0;do{if(!(a[((c[(z&p)>>2]|0)+((b[((c[(t&p)>>2]|0)+(r<<1)&o)>>1]|0)*24|0)&n)+20>>0]|0)){wh(T,76,r+k|0,h,0)|0;q=b[(u&o)>>1]|0}r=r+1|0}while((r|0)<(q&65535|0))}q=wh(T,9,(c[(E&p)>>2]|0)+y|0,0,0)|0;wh(T,16,0,h,0)|0;r=c[(m&p)>>2]|0;if(r>>>0>q>>>0)c[((c[(I&p)>>2]|0)+(q*20|0)&p)+8>>2]=r;c[((c[(H&p)>>2]|0)&p)+88>>2]=r+-1;q=e[(u&o)>>1]|0;xh(T,wh(T,114,(c[(E&p)>>2]|0)+y|0,h,k)|0,q,-14);wh(T,37,1,-1,0)|0;xh(T,wh(T,97,0,3,0)|0,31560,-2);wh(T,16,0,v,0)|0;q=c[(H&p)>>2]|0;t=~h;do if((h|0)<0){r=c[(q&p)+112>>2]|0;if(!r)break;c[(r+(t<<2)&p)>>2]=c[(m&p)>>2]}while(0);r=c[(m&p)>>2]|0;c[(q&p)+88>>2]=r+-1}if(r>>>0>x>>>0)c[((c[(I&p)>>2]|0)+(x*20|0)&p)+8>>2]=r;c[(q&p)+88>>2]=r+-1;Qt(f,c[(F&p)>>2]|0);r=l}l=c[(l&p)+20>>2]|0;if(!l)break;else y=y+1|0}}wh(T,9,c[(D&p)>>2]|0,K,0)|0;l=K+-1|0;k=c[(m&p)>>2]|0;if(k>>>0>l>>>0)c[((c[(I&p)>>2]|0)+(l*20|0)&p)+8>>2]=k;c[((c[(H&p)>>2]|0)&p)+88>>2]=k+-1;xh(T,wh(T,97,0,2,0)|0,31592,-2);l=c[(J&p)>>2]|0;if(!l)break;else q=0;while(1){if((g|0)!=(l|0)){k=c[(m&p)>>2]|0;wh(T,137,1,k+2|0,0)|0;wh(T,24,0,0,0)|0;wh(T,50,(c[(E&p)>>2]|0)+q|0,3,0)|0;wh(T,79,q+8|0,k+8|0,3)|0;k=c[(I&p)>>2]|0;if(k)a[(k+(((c[(m&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=-112;wh(T,37,1,-1,0)|0;C=c[(l&p)>>2]|0;xh(T,wh(T,97,0,3,0)|0,C,0);wh(T,94,3,2,7)|0;wh(T,35,7,1,0)|0}l=c[(l&p)+20>>2]|0;if(!l)break;else q=q+1|0}}while(0);w=c[(w&p)>>2]|0}while((w|0)!=0);w=c[(M&p)>>2]|0}O=O+1|0}while((O|0)<(w|0))}else m=T+32|0;l=yh(T,3,31448)|0;m=c[(m&p)>>2]|0;if(m>>>0>l>>>0){c[((c[(T&p)+4>>2]|0)+(l*20|0)&p)+12>>2]=0-s;c[((c[(T&p)+4>>2]|0)+(l*20|0)&p)+8>>2]=m}c[((c[(T&p)+24>>2]|0)&p)+88>>2]=m+-1;xh(T,l+1|0,31624,-2);break a}case 21:{do if(U){if(dd(U,30904)|0)if(!(dd(U,30896)|0))k=0;else{P=66;break}else k=1;if(!(c[(B&p)>>2]|0)){s=c[(W&p)+20>>2]|0;if((s|0)>2){q=c[(R&p)>>2]|0;m=k&255;r=2;do{l=c[(c[((c[(q+(r<<4)&p)+4>>2]|0)&p)+4>>2]&p)>>2]|0;do if(!(a[(l&n)+12>>0]|0)){G=c[(l&p)+208>>2]|0;if((G|0)!=0?(a[(G&n)+43>>0]|0)==2:0)break;a[(l&n)+4>>0]=m}while(0);r=r+1|0}while((r|0)<(s|0))}else m=k&255;a[(W&n)+66>>0]=m;P=74}else P=74}else P=66;while(0);if((P|0)==66)if(!(c[(B&p)>>2]|0))l=W+66|0;else{k=-1;P=74}if((P|0)==74){m=c[(c[((c[(C+(Q<<4)&p)+4>>2]|0)&p)+4>>2]&p)>>2]|0;do if((k|0)>-1?(a[(m&n)+12>>0]|0)==0:0){G=c[(m&p)+208>>2]|0;if((G|0)!=0?(a[(G&n)+43>>0]|0)==2:0)break;a[(m&n)+4>>0]=k}while(0);l=m+4|0}l=(a[(l&n)>>0]|0)==1?30904:30896;iq(T,1);if(!(a[((c[(T&p)>>2]|0)&n)+65>>0]|0))Xg(c[(T&p)+16>>2]|0,30920,-1,1,0)|0;xh(T,wh(T,97,0,1,0)|0,l,0);wh(T,35,1,1,0)|0;break a}case 16:{if(!U)break a;k=_h(W,U,L)|0;if(!k)break a;q=Oq(f)|0;iq(q,5);c[(S&p)>>2]=5;Ar(f,Q);if(((((a[((c[(q&p)>>2]|0)&n)+65>>0]|0)==0?(Xg(c[(q&p)+16>>2]|0,31288,-1,1,0)|0,(a[((c[(q&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(q&p)+16>>2]|0)+40|0,31184,-1,1,0)|0,(a[((c[(q&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(q&p)+16>>2]|0)+80|0,31296,-1,1,0)|0,(a[((c[(q&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(q&p)+16>>2]|0)+120|0,31304,-1,1,0)|0,(a[((c[(q&p)>>2]|0)&n)+65>>0]|0)==0):0)Xg((c[(q&p)+16>>2]|0)+160|0,31312,-1,1,0)|0;m=c[(k&p)+8>>2]|0;if(!m)break a;else l=0;while(1){wh(q,25,l,1,0)|0;G=c[(m&p)>>2]|0;xh(q,wh(q,97,0,2,0)|0,G,0);wh(q,25,(a[(m&n)+50>>0]|0)!=0&1,3,0)|0;G=c[((a[(m&n)+51>>0]&3)<<2&p)+31336>>2]|0;xh(q,wh(q,97,0,4,0)|0,G,0);wh(q,25,(c[(m&p)+36>>2]|0)!=0&1,5,0)|0;wh(q,35,1,5,0)|0;m=c[(m&p)+20>>2]|0;if(!m)break;else l=l+1|0}break}case 1:{k=c[(C+(Q<<4)&p)+4>>2]|0;if(!U){m=c[(k&p)+4>>2]|0;c[(m&p)+4>>2]=c[(k&p)>>2];if(!(a[(m&n)+17>>0]|0)){m=0;l=0}else{l=(a[(m&n)+18>>0]|0)==0;m=l?1:2;l=l?0:0}Jt(f,30976,m,l);break a}if(dd(U,32192)|0)if(dd(U,31880)|0)if(!(dd(U,32200)|0))m=2;else{c[(G&p)>>2]=0;Dn(U,G)|0;m=c[(G&p)>>2]|0;m=m>>>0<3?m&255:0}else m=1;else m=0;a[(W&n)+67>>0]=m;r=m+-1|0;if(!((vn(k,m)|0)==0&r>>>0<2))break a;l=yh(T,6,30992)|0;q=c[(T&p)+32>>2]|0;if(q>>>0>l>>>0)c[((c[(T&p)+4>>2]|0)+(l*20|0)&p)+4>>2]=Q;k=l+1|0;if(q>>>0>k>>>0)c[((c[(T&p)+4>>2]|0)+(k*20|0)&p)+4>>2]=Q;k=l+2|0;m=l+4|0;if(q>>>0>k>>>0)c[((c[(T&p)+4>>2]|0)+(k*20|0)&p)+8>>2]=m;if(q>>>0>m>>>0)c[((c[(T&p)+4>>2]|0)+(m*20|0)&p)+4>>2]=r;m=l+5|0;if(q>>>0>m>>>0)c[((c[(T&p)+4>>2]|0)+(m*20|0)&p)+4>>2]=Q;G=T+96|0;c[(G&p)>>2]=c[(G&p)>>2]|1<>2]=3;if(((a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0?(Xg(c[(T&p)+16>>2]|0,31288,-1,1,0)|0,(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(T&p)+16>>2]|0)+40|0,31184,-1,1,0)|0,(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0):0)Xg((c[(T&p)+16>>2]|0)+80|0,31352,-1,1,0)|0;l=W+20|0;m=c[(l&p)>>2]|0;if((m|0)>0)q=0;else break a;do{if(c[((c[(R&p)>>2]|0)+(q<<4)&p)+4>>2]|0){wh(T,25,q,1,0)|0;k=c[((c[(R&p)>>2]|0)+(q<<4)&p)>>2]|0;xh(T,wh(T,97,0,2,0)|0,k,0);k=c[(c[((c[((c[(R&p)>>2]|0)+(q<<4)&p)+4>>2]|0)&p)+4>>2]&p)>>2]|0;if(!(a[(k&n)+15>>0]|0))k=c[(k&p)+168>>2]|0;else k=10360;xh(T,wh(T,97,0,3,0)|0,k,0);wh(T,35,1,3,0)|0;m=c[(l&p)>>2]|0}q=q+1|0}while((q|0)<(m|0));break}case 6:{iq(T,2);c[(S&p)>>2]=2;if((a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0?(Xg(c[(T&p)+16>>2]|0,31288,-1,1,0)|0,(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0):0)Xg((c[(T&p)+16>>2]|0)+40|0,31184,-1,1,0)|0;m=c[(W&p)+436>>2]|0;if(!m)break a;else l=0;while(1){G=c[(m&p)+8>>2]|0;wh(T,25,l,1,0)|0;G=c[(G&p)>>2]|0;xh(T,wh(T,97,0,2,0)|0,G,0);wh(T,35,1,2,0)|0;m=c[(m&p)>>2]|0;if(!m)break;else l=l+1|0}break}case 13:{if(!U)break a;k=_h(W,U,L)|0;if(!k)break a;g=Oq(f)|0;q=c[(k&p)+16>>2]|0;if(!q)break a;iq(g,8);c[(S&p)>>2]=8;Ar(f,Q);do if((((a[((c[(g&p)>>2]|0)&n)+65>>0]|0)==0?(Xg(c[(g&p)+16>>2]|0,31360,-1,1,0)|0,(a[((c[(g&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(g&p)+16>>2]|0)+40|0,31288,-1,1,0)|0,(a[((c[(g&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(g&p)+16>>2]|0)+80|0,31232,-1,1,0)|0,(a[((c[(g&p)>>2]|0)&n)+65>>0]|0)==0):0){Xg((c[(g&p)+16>>2]|0)+120|0,31368,-1,1,0)|0;if(a[((c[(g&p)>>2]|0)&n)+65>>0]|0)break;Xg((c[(g&p)+16>>2]|0)+160|0,31376,-1,1,0)|0;if(a[((c[(g&p)>>2]|0)&n)+65>>0]|0)break;Xg((c[(g&p)+16>>2]|0)+200|0,31384,-1,1,0)|0;if(a[((c[(g&p)>>2]|0)&n)+65>>0]|0)break;Xg((c[(g&p)+16>>2]|0)+240|0,31400,-1,1,0)|0;if(a[((c[(g&p)>>2]|0)&n)+65>>0]|0)break;Xg((c[(g&p)+16>>2]|0)+280|0,31416,-1,1,0)|0}while(0);v=k+4|0;w=0;while(1){k=q+20|0;if((c[(k&p)>>2]|0)>0){m=q+25|0;l=q+26|0;t=q+8|0;h=0;do{u=c[(q+(h<<3)&p)+40>>2]|0;s=d[(m&n)>>0]|0;if((s|0)==8)r=32072;else if((s|0)==9)r=32088;else if((s|0)==6)r=32096;else if((s|0)==7)r=32056;else r=32112;s=d[(l&n)>>0]|0;if((s|0)==8)s=32072;else if((s|0)==9)s=32088;else if((s|0)==6)s=32096;else if((s|0)==7)s=32056;else s=32112;wh(g,25,w,1,0)|0;wh(g,25,h,2,0)|0;G=c[(t&p)>>2]|0;xh(g,wh(g,97,0,3,0)|0,G,0);G=c[((c[(v&p)>>2]|0)+((c[(q+(h<<3)&p)+36>>2]|0)*24|0)&p)>>2]|0;xh(g,wh(g,97,0,4,0)|0,G,0);xh(g,wh(g,(u|0)!=0?97:28,0,5,0)|0,u,0);xh(g,wh(g,97,0,6,0)|0,s,0);xh(g,wh(g,97,0,7,0)|0,r,0);xh(g,wh(g,97,0,8,0)|0,31424,0);wh(g,35,1,8,0)|0;h=h+1|0}while((h|0)<(c[(k&p)>>2]|0))}q=c[(q&p)+4>>2]|0;if(!q)break;else w=w+1|0}break}case 11:{if(!U){if(Gn(f)|0)break a;iq(T,1);if(!(a[((c[(T&p)>>2]|0)&n)+65>>0]|0))Xg(c[(T&p)+16>>2]|0,31784,-1,1,0)|0;wh(T,97,0,1,0)|0;xh(T,-1,c[(d[((c[(f&p)>>2]|0)&n)+62>>0]<<3&p)+31632>>2]|0,-2);wh(T,35,1,1,0)|0;break a}k=c[((c[(R&p)>>2]|0)&p)+12>>2]|0;if((b[(k&o)+78>>1]&5)==1)break a;else{m=31632;l=31704}do{if(!(dd(U,l)|0)){v=m;P=415;break}m=m+8|0;l=c[(m&p)>>2]|0}while((l|0)!=0);if((P|0)==415?(F=a[(v&n)+4>>0]|0,F=F<<24>>24==0?2:F,a[(W&n)+62>>0]=F,a[(k&n)+77>>0]=F,(c[(v&p)>>2]|0)!=0):0)break a;c[(G&p)>>2]=U;th(f,31800,G);break a}case 0:{s=c[((w*12|0)&p)+30128>>2]|0;F=T+96|0;c[(F&p)>>2]=c[(F&p)>>2]|1<>2]|0)>>>0>m>>>0)c[((c[(T&p)+4>>2]|0)+(m*20|0)&p)+4>>2]=Q;l=m+1|0;c[(G&p)>>2]=0;Dn(U,G)|0;k=c[(k&p)>>2]|0;if(k>>>0>l>>>0)c[((c[(T&p)+4>>2]|0)+(l*20|0)&p)+4>>2]=c[(G&p)>>2];m=m+2|0;if(k>>>0<=m>>>0)break a;c[((c[(T&p)+4>>2]|0)+(m*20|0)&p)+4>>2]=Q;c[((c[(T&p)+4>>2]|0)+(m*20|0)&p)+8>>2]=s;break a}m=yh(T,3,31848)|0;k=c[(T&p)+32>>2]|0;if(k>>>0>m>>>0)c[((c[(T&p)+4>>2]|0)+(m*20|0)&p)+4>>2]=Q;m=m+1|0;if(k>>>0>m>>>0){c[((c[(T&p)+4>>2]|0)+(m*20|0)&p)+4>>2]=Q;c[((c[(T&p)+4>>2]|0)+(m*20|0)&p)+12>>2]=s}iq(T,1);if(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)break a;Xg(c[(T&p)+16>>2]|0,V,-1,1,-1)|0;break a}case 7:{iq(T,1);c[(S&p)>>2]=1;if(!(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)){Xg(c[(T&p)+16>>2]|0,31864,-1,1,0)|0;l=0}else l=0;do{G=c[(l<<2&p)+8648>>2]|0;l=l+1|0;xh(T,wh(T,97,0,1,0)|0,G,0);wh(T,35,1,1,0)|0}while((l|0)!=4);break}case 35:{m=(c[(h&p)>>2]|0)!=0?Q:10;if(U)if(dd(U,31880)|0)if(!(dd(U,31888)|0))l=2;else{l=(dd(U,31896)|0)==0;l=l?3:0}else l=1;else l=0;iq(T,3);c[(S&p)>>2]=3;if(((a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0?(Xg(c[(T&p)+16>>2]|0,31912,-1,1,0)|0,(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(T&p)+16>>2]|0)+40|0,31920,-1,1,0)|0,(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0):0)Xg((c[(T&p)+16>>2]|0)+80|0,31928,-1,1,0)|0;wh(T,11,m,l,1)|0;wh(T,35,1,3,0)|0;break a}case 26:{of(W)|0;break a}case 34:{if(!U)l=c[(W&p)+216>>2]|0;else{c[(G&p)>>2]=0;Dn(U,G)|0;l=c[(G&p)>>2]|0;if((l|0)>0)m=21;else{l=0;m=0}c[(W&p)+216>>2]=m;c[(W&p)+220>>2]=l;l=m}if((l|0)==21){l=c[(W&p)+220>>2]|0;m=l;l=((l|0)<0)<<31>>31}else{m=0;l=0}Jt(f,31944,m,l);break a}case 27:{if((U|0)!=0?(ji(U,x)|0)==0:0){G=x;Pc(c[(G&p)>>2]|0,c[(G&p)+4>>2]|0)|0}F=(Lc()|0)==0;G=9032;Jt(f,31976,F?c[(G&p)>>2]|0:-1,F?c[(G&p)+4>>2]|0:-1);break a}case 33:{if((U|0)!=0?(E=(ji(U,s)|0)==0,G=s,F=c[(G&p)+4>>2]|0,E&((F|0)>-1|(F|0)==-1&(c[(G&p)>>2]|0)>>>0>4294967295)):0)c[(W&p)+132>>2]=0;G=c[(W&p)+132>>2]|0;Jt(f,31992,G,((G|0)<0)<<31>>31);break a}case 12:{g=c[(S&p)>>2]|0;H=g+1|0;I=g+5|0;J=g+6|0;c[(S&p)>>2]=J;K=Oq(f)|0;iq(K,4);if((((a[((c[(K&p)>>2]|0)&n)+65>>0]|0)==0?(Xg(c[(K&p)+16>>2]|0,31232,-1,1,0)|0,(a[((c[(K&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(K&p)+16>>2]|0)+40|0,20456,-1,1,0)|0,(a[((c[(K&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(K&p)+16>>2]|0)+80|0,31432,-1,1,0)|0,(a[((c[(K&p)>>2]|0)&n)+65>>0]|0)==0):0)Xg((c[(K&p)+16>>2]|0)+120|0,31440,-1,1,0)|0;Ar(f,Q);w=c[((c[((c[(R&p)>>2]|0)+(Q<<4)&p)+12>>2]|0)&p)+16>>2]|0;if(!w)break a;u=(U|0)==0;h=f+68|0;v=K+32|0;D=K+4|0;E=K+24|0;F=g+2|0;G=g+3|0;A=g+4|0;t=f+8|0;while(1){if(u){B=c[(w&p)>>2]|0;C=c[(w&p)+8>>2]|0}else{B=0;C=sh(f,0,U,L)|0}if((C|0)!=0?(M=C+16|0,(c[(M&p)>>2]|0)!=0):0){gs(f,Q,c[(C&p)+32>>2]|0,0,c[(C&p)>>2]|0);g=(b[(C&o)+38>>1]|0)+J|0;if((g|0)>(c[(S&p)>>2]|0))c[(S&p)>>2]=g;Qq(f,0,Q,C,54);w=c[(C&p)>>2]|0;xh(K,wh(K,97,0,H,0)|0,w,0);w=c[(M&p)>>2]|0;if(!w)g=1;else{g=1;do{l=_h(W,c[(w&p)+8>>2]|0,L)|0;do if(l){c[(O&p)>>2]=0;gs(f,Q,c[(l&p)+32>>2]|0,0,c[(l&p)>>2]|0);if(Mt(f,l,w,O,0)|0)break a;m=c[(O&p)>>2]|0;if(!m){Qq(f,g,Q,l,54);break}else{wh(K,54,g,c[(m&p)+40>>2]|0,Q)|0;z=c[(t&p)>>2]|0;xh(z,-1,hs(f,m)|0,-6);break}}while(0);g=g+1|0;w=c[(w&p)+4>>2]|0}while((w|0)!=0)}if((c[(h&p)>>2]|0)<(g|0))c[(h&p)>>2]=g;s=wh(K,108,0,0,0)|0;g=c[(M&p)>>2]|0;if(g){z=C+36|0;y=1;while(1){x=g+8|0;w=_h(W,c[(x&p)>>2]|0,L)|0;c[(O&p)>>2]=0;c[(N&p)>>2]=0;r=(w|0)!=0;do if(r){Mt(f,w,g,O,N)|0;l=c[(O&p)>>2]|0;m=xs(K)|0;if(!(r&(l|0)==0)){w=m;P=306;break}w=c[(g&p)+36>>2]|0;if((w|0)==(b[(z&o)>>1]|0))wh(K,103,0,J,0)|0;else{wh(K,47,0,w,J)|0;Nt(K,C,w,J);wh(K,76,J,m,0)|0;wh(K,38,J,(c[(v&p)>>2]|0)+3|0,0)|0}wh(K,70,y,0,J)|0;wh(K,16,0,m,0)|0;w=c[(v&p)>>2]|0;if(w>>>0>1)c[((c[(D&p)>>2]|0)+((w+-2|0)*20|0)&p)+8>>2]=w;c[((c[(E&p)>>2]|0)&p)+88>>2]=w+-1;w=m}else{w=xs(K)|0;l=0;P=306}while(0);do if((P|0)==306){P=0;q=g+20|0;m=c[(q&p)>>2]|0;if((m|0)>0){k=0;do{m=c[(N&p)>>2]|0;if(!m)m=g+(k<<3)+36|0;else m=m+(k<<2)|0;R=k+J|0;nt(K,C,0,c[(m&p)>>2]|0,R);wh(K,76,R,w,0)|0;k=k+1|0;m=c[(q&p)>>2]|0}while((k|0)<(m|0))}if(!r)break;k=ot(K,l)|0;l=c[(q&p)>>2]|0;xh(K,wh(K,49,J,m,I)|0,k,l);xh(K,wh(K,69,y,w,I)|0,0,-14)}while(0);wh(K,103,0,F,0)|0;l=c[(x&p)>>2]|0;xh(K,wh(K,97,0,G,0)|0,l,0);wh(K,25,y+-1|0,A,0)|0;wh(K,35,H,4,0)|0;l=c[(E&p)>>2]|0;m=~w;do if((w|0)<0){w=c[(l&p)+112>>2]|0;if(!w)break;c[(w+(m<<2)&p)>>2]=c[(v&p)>>2]}while(0);c[(l&p)+88>>2]=(c[(v&p)>>2]|0)+-1;mg(W,c[(N&p)>>2]|0);g=c[(g&p)+4>>2]|0;if(!g)break;else y=y+1|0}}wh(K,9,0,s+1|0,0)|0;g=c[(v&p)>>2]|0;if(g>>>0>s>>>0)c[((c[(D&p)>>2]|0)+(s*20|0)&p)+8>>2]=g;c[((c[(E&p)>>2]|0)&p)+88>>2]=g+-1}if(!B)break;else w=B}break}case 23:{Jt(f,31016,0,0);break a}case 31:{if(!U){Jt(f,31032,d[(W&n)+64>>0]|0,0);break a}l=a[(U&n)>>0]|0;if((l+-48&255)>=3)if(!(dd(U,31352)|0))l=1;else{l=(dd(U,15168)|0)==0;l=l?2:0}else l=(l<<24>>24)+-48|0;m=(c[(f&p)>>2]|0)+64|0;if((d[(m&n)>>0]|0)==(l|0))break a;if(Kt(f)|0)break a;a[(m&n)>>0]=l;break a}case 29:{if(!U){G=(d[(C+(Q<<4)&n)+8>>0]|0)+-1|0;Jt(f,31104,G,((G|0)<0)<<31>>31);break a}if(!(a[(W&n)+63>>0]|0)){th(f,31120,G);break a}else{a[(C+(Q<<4)&n)+8>>0]=((ii(U,0,1)|0)&255)+1;Lt(W);break a}}case 4:if(!U){G=c[((c[(C+(Q<<4)&p)+12>>2]|0)&p)+80>>2]|0;Jt(f,30848,G,((G|0)<0)<<31>>31);break a}else{c[(G&p)>>2]=0;Dn(U,G)|0;G=c[(G&p)>>2]|0;c[((c[(C+(Q<<4)&p)+12>>2]|0)&p)+80>>2]=G;pq(c[(C+(Q<<4)&p)+4>>2]|0,G);break a}default:{if(!U)l=c[(W&p)+492>>2]|0;else{c[(G&p)>>2]=0;Dn(U,G)|0;l=c[(G&p)>>2]|0;G=(l|0)>0;l=G?l:0;c[(W&p)+444>>2]=G?74:0;c[(W&p)+448>>2]=G?W:0;c[(r&p)>>2]=0;c[(W&p)+492>>2]=l}Jt(f,31968,l,((l|0)<0)<<31>>31);break a}}while(0)}else{k=c[(q&p)>>2]|0;if(k){c[(G&p)>>2]=k;th(f,10344,G);Wc(c[(q&p)>>2]|0)}G=f+64|0;c[(G&p)>>2]=(c[(G&p)>>2]|0)+1;c[(f&p)+12>>2]=g;break}}while(0);mg(W,V);mg(W,U)}}while(0);i=X;return}function Gr(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0;h=i;i=i+16|0;if((i|0)>=(j|0))fa();g=h;a:do if(!d)d=0;else{f=d;while(1){if((a[(f&n)>>0]|0)==-121){d=c[(b&p)>>2]|0;if(!(a[((c[(d&p)>>2]|0)&n)+145>>0]|0))break;a[(f&n)>>0]=101}d=c[(f&p)+4>>2]|0;if(d&16384){d=0;break a}e=f+20|0;if(!(d&2048)){if(Hr(b,c[(e&p)>>2]|0)|0){d=1;break a}}else if(fr(b,c[(e&p)>>2]|0)|0){d=1;break a}if(Gr(b,c[(f&p)+16>>2]|0)|0){d=1;break a}f=c[(f&p)+12>>2]|0;if(!f){d=0;break a}}c[(g&p)>>2]=c[(b&p)+16>>2];th(d,29984,g);d=1}while(0);i=h;return d|0}function Hr(a,b){a=a|0;b=b|0;var d=0,e=0;a:do if((b|0)!=0?(c[(b&p)>>2]|0)>0:0){d=0;e=c[(b&p)+4>>2]|0;while(1){if(Gr(a,c[(e&p)>>2]|0)|0){d=1;break a}d=d+1|0;if((d|0)>=(c[(b&p)>>2]|0)){d=0;break}else e=e+20|0}}else d=0;while(0);return d|0}function Ir(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;xh(a,wh(a,122,b,0,0)|0,d,-1);d=c[((c[(a&p)>>2]|0)&p)+20>>2]|0;if((d|0)>0){e=a+96|0;b=c[(e&p)>>2]|0;a=0;do{b=b|1<>2]=b}return}function Jr(a,d){a=a|0;d=d|0;var e=0,f=0;e=d+8|0;f=Ur(a,0,e)|0;d=d+24|0;kg(c[(a&p)>>2]|0,c[(d&p)>>2]|0);c[(d&p)>>2]=f;if(f){d=f+40|0;b[(d&o)>>1]=(b[(d&o)>>1]|0)+1<<16>>16}e=(Rt(a,e)|0)==0;return (e?f:0)|0}function Kr(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0;n=i;i=i+16|0;if((i|0)>=(j|0))fa();m=n;a:do if((b|0)!=0?(f=c[(a&p)+12>>2]|0,(c[(b&p)>>2]|0)>0):0){g=a+8|0;h=a+4|0;k=0;l=b+8|0;while(1){if(!(c[(g&p)>>2]|0)){e=l+4|0;d=c[(e&p)>>2]|0;if((d|0)!=0?(dd(d,f)|0)!=0:0)break;mg(c[(c[(a&p)>>2]&p)>>2]|0,d);c[(e&p)>>2]=0;c[(l&p)>>2]=c[(h&p)>>2]}if(fr(a,c[(l&p)+20>>2]|0)|0){d=1;break a}if(Gr(a,c[(l&p)+44>>2]|0)|0){d=1;break a}k=k+1|0;if((k|0)>=(c[(b&p)>>2]|0)){d=0;break a}else l=l+72|0}b=c[(a&p)>>2]|0;l=c[(a&p)+20>>2]|0;c[(m&p)>>2]=c[(a&p)+16>>2];c[(m&p)+4>>2]=l;c[(m&p)+8>>2]=d;th(b,29936,m);d=1}else d=0;while(0);i=n;return d|0}function Lr(b,d){b=b|0;d=d|0;var e=0,f=0,g=0;f=i;i=i+16|0;if((i|0)>=(j|0))fa();e=f;g=c[(b&p)>>2]|0;if((((a[(g&n)+145>>0]|0)==0?(a[(b&n)+18>>0]|0)==0:0)?(c[(g&p)+24>>2]&2048|0)==0:0)?(Fc(d,25568,7)|0)==0:0){c[(e&p)>>2]=d;th(b,28440,e);b=1}else b=0;i=f;return b|0}function Mr(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,o=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0;x=i;i=i+16|0;if((i|0)>=(j|0))fa();w=x;do if(d){t=e&1;v=(f|0)!=0;if(v){g=c[(f&p)>>2]|0;r=32768}else{g=St(d,e)|0;g=mh(b,g,((g|0)<0)<<31>>31)|0;r=0}c[(w&p)>>2]=g;if(g){l=(t|0)==0;if(!l)if(!(c[(d&p)+12>>2]|0))q=(c[(d&p)+20>>2]|0)==0?16396:8220;else q=8220;else q=48;s=q&60;u=d+4|0;m=c[(u&p)>>2]|0;if((m&1024|0)==0?(h=c[(d&p)+8>>2]|0,(h|0)!=0):0){k=h;while(1)if(!(a[(k&n)>>0]|0))break;else k=k+1|0;o=(k-h&1073741823)+1|0}else o=0;if(l){if(!(m&16384))k=(m&8192|0)==0?48:28;else k=12;kw(g|0,d|0,k|0)|0;fw(g+k|0,0,48-k|0)|0}else kw(g|0,d|0,s|0)|0;m=g+4|0;h=q&24576|r|c[(m&p)>>2]&-122881;c[(m&p)>>2]=h;if(o){h=g+s|0;c[(g&p)+8>>2]=h;kw(h|0,c[(d&p)+8>>2]|0,o|0)|0;h=c[(m&p)>>2]|0}k=c[(u&p)>>2]|0;do if(!((h|k)&16384)){h=d+20|0;if(!(k&2048)){c[(g&p)+20>>2]=Pr(b,c[(h&p)>>2]|0,t)|0;break}else{c[(g&p)+20>>2]=gr(b,c[(h&p)>>2]|0,t)|0;break}}while(0);h=c[(m&p)>>2]|0;if(!(h&24576)){if(c[(u&p)>>2]&16384)break;c[(g&p)+12>>2]=Mr(b,c[(d&p)+12>>2]|0,0,0)|0;c[(g&p)+16>>2]=Mr(b,c[(d&p)+16>>2]|0,0,0)|0;break}t=Tt(d,e)|0;c[(w&p)>>2]=(c[(w&p)>>2]|0)+t;if(h&8192){c[(g&p)+12>>2]=Mr(b,c[(d&p)+12>>2]|0,1,w)|0;c[(g&p)+16>>2]=Mr(b,c[(d&p)+16>>2]|0,1,w)|0}if(v)c[(f&p)>>2]=c[(w&p)>>2]}}else g=0;while(0);i=x;return g|0}function Nr(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;a:do if((b|0)!=0?(d=mh(a,8,0)|0,(d|0)!=0):0){g=b+4|0;c[(d&p)+4>>2]=c[(g&p)>>2];e=mh(a,c[(g&p)>>2]<<3,0)|0;c[(d&p)>>2]=e;if(!e){mg(a,d);d=0;break}if((c[(g&p)>>2]|0)>0){f=0;while(1){h=c[(b&p)>>2]|0;c[(e+(f<<3)&p)>>2]=kh(a,c[(h+(f<<3)&p)>>2]|0)|0;c[(e+(f<<3)&p)+4>>2]=c[(h+(f<<3)&p)+4>>2];f=f+1|0;if((f|0)>=(c[(g&p)>>2]|0))break a;e=c[(d&p)>>2]|0}}}else d=0;while(0);return d|0}function Or(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0;f=e+4|0;g=(c[(f&p)>>2]|0)+40|0;b=mh(b,g,0)|0;if(b){fw(b|0,0,g|0)|0;g=b+40|0;kw(g|0,c[(e&p)>>2]|0,c[(f&p)>>2]|0)|0;c[(b&p)+12>>2]=g;c[(b&p)+16>>2]=c[(f&p)>>2];a[(b&n)>>0]=d}return b|0}function Pr(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0;do if((d|0)!=0?(f=mh(b,8,0)|0,(f|0)!=0):0){g=c[(d&p)>>2]|0;c[(f&p)>>2]=g;if(!(e&1)){h=c[(d&p)>>2]|0;g=1;while(1)if((g|0)<(h|0))g=g<<1;else break}g=mh(b,g*20|0,0)|0;c[(f&p)+4>>2]=g;if(!g){mg(b,f);f=0;break}if((c[(d&p)>>2]|0)>0){i=0;h=c[(d&p)+4>>2]|0;while(1){c[(g&p)>>2]=Mr(b,c[(h&p)>>2]|0,e,0)|0;c[(g&p)+4>>2]=kh(b,c[(h&p)+4>>2]|0)|0;c[(g&p)+8>>2]=kh(b,c[(h&p)+8>>2]|0)|0;a[(g&n)+12>>0]=a[(h&n)+12>>0]|0;j=g+13|0;k=a[(j&n)>>0]|0;a[(j&n)>>0]=k&-2;a[(j&n)>>0]=a[(h&n)+13>>0]&2|k&-4;c[(g&p)+16>>2]=c[(h&p)+16>>2];i=i+1|0;if((i|0)>=(c[(d&p)>>2]|0))break;else{g=g+20|0;h=h+20|0}}}}else f=0;while(0);return f|0}function Qr(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0;o=i;i=i+16|0;if((i|0)>=(j|0))fa();k=o;l=c[(a&p)>>2]|0;f=c[(b&p)+20>>2]|0;a:do if(f){e=c[(l&p)+20>>2]|0;if((e|0)>0){d=c[(l&p)+16>>2]|0;h=0;while(1){g=h+1|0;if((c[(d+(h<<4)&p)+12>>2]|0)==(f|0)){g=h;break a}if((g|0)<(e|0))h=g;else break}}else g=0}else g=-1e6;while(0);d=bn((c[(b&p)+24>>2]|0)+8|0,c[(b&p)+4>>2]|0,k)|0;if(!d)f=0;else f=c[(d&p)+8>>2]|0;d=c[((c[(l&p)+16>>2]|0)+(g<<4)&p)>>2]|0;e=(g|0)==1;if((((Sq(a,e?14:16,c[(b&p)>>2]|0,c[(f&p)>>2]|0,d)|0)==0?(Sq(a,9,e?13184:13208,0,d)|0)==0:0)?(m=Oq(a)|0,(m|0)!=0):0)?(n=c[(a&p)+408>>2]|0,Ar(a,g),n=((n|0)==0?a:n)+328|0,c[(n&p)>>2]=c[(n&p)>>2]|1<>2]|0,0),xh(m,n+4|0,10720,-2),Dr(a,g),wh(m,61,0,0,0)|0,n=c[(b&p)>>2]|0,xh(m,wh(m,126,g,0,0)|0,n,0),n=a+72|0,(c[(n&p)>>2]|0)<3):0)c[(n&p)>>2]=3;i=o;return}function Rr(d,e,f,g,h,k,l){d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;var m=0,q=0,r=0,s=0,t=0,u=0,v=0;v=i;i=i+32|0;if((i|0)>=(j|0))fa();m=v;t=c[(d&p)>>2]|0;c[(m&p)>>2]=0;c[(m&p)+4>>2]=0;c[(m&p)+8>>2]=0;c[(m&p)+12>>2]=0;c[(m&p)+16>>2]=0;c[(m&p)+20>>2]=0;c[(m&p)+24>>2]=0;c[(m&p)+28>>2]=0;c[(m&p)>>2]=d;do if(h)if((a[(h&n)>>0]|0)!=27)if(!(ls(m,h)|0)){u=5;break}else{u=13;break}else{a[(h&n)>>0]=97;u=5;break}else u=5;while(0);a:do if((u|0)==5){do if(k)if((a[(k&n)>>0]|0)!=27)if(!(ls(m,k)|0))break;else{u=13;break a}else{a[(k&n)>>0]=97;break}while(0);do if(l)if((a[(l&n)>>0]|0)!=27)if(!(ls(m,l)|0))break;else{u=13;break a}else{a[(l&n)>>0]=97;break}while(0);if(g){if((a[(g&n)>>0]|0)==97)g=c[(g&p)+8>>2]|0;else g=0;if(Sq(d,e,g,0,0)|0)break}s=Oq(d)|0;m=d+60|0;g=c[(m&p)>>2]|0;q=d+56|0;r=c[(q&p)>>2]|0;if((r|0)<4){r=d+72|0;g=c[(r&p)>>2]|0;c[(r&p)>>2]=g+4;g=g+1|0}else{c[(m&p)>>2]=g+4;c[(q&p)>>2]=r+-4}Rq(d,h,g);Rq(d,k,g+1|0);Rq(d,l,g+2|0);if(s){g=g+3|0;wh(s,1,0,g-(b[(f&o)>>1]|0)|0,g)|0;g=c[(s&p)+4>>2]|0;if(g)a[(g+(((c[(s&p)+32>>2]|0)+-1|0)*20|0)&n)+3>>0]=b[(f&o)>>1];xh(s,-1,f,-5);wh(s,144,(e|0)==24&1,0,0)|0}}while(0);if((u|0)==13){f=d+64|0;c[(f&p)>>2]=(c[(f&p)>>2]|0)+1}Gk(t,h);Gk(t,k);Gk(t,l);i=v;return}function Sr(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0;m=i;i=i+16|0;if((i|0)>=(j|0))fa();l=m;g=m+4|0;h=c[(b&p)>>2]|0;a:do if(!(Gn(b)|0)){if(!d){Ut(b,0);break}if(!((e|0)!=0?(c[(e&p)>>2]|0)!=0:0))f=6;do if((f|0)==6){f=Wq(c[(b&p)>>2]|0,d)|0;if(!f)break a;if(!(Yn(h,a[(h&n)+62>>0]|0,f,0)|0)){mg(h,f);break}else{Ut(b,f);mg(h,f);break a}}while(0);d=er(b,d,e,g)|0;if((d|0)>=0?(k=Wq(h,c[(g&p)>>2]|0)|0,(k|0)!=0):0){e=c[((c[(h&p)+16>>2]|0)+(d<<4)&p)>>2]|0;f=_h(h,k,e)|0;if(f){Vt(b,f,0);mg(h,k);break}e=bq(h,k,e)|0;mg(h,k);if(!e){th(b,28872,l);break}else{f=c[(b&p)+408>>2]|0;Ar(b,d);f=((f|0)==0?b:f)+328|0;c[(f&p)>>2]=c[(f&p)>>2]|1<=(j|0))fa();f=h;g=c[(a&p)>>2]|0;if(!(Gn(a)|0)){do if(!b){b=g+20|0;e=c[(b&p)>>2]|0;if((e|0)>0){d=0;do{if((d|0)!=1){Wt(a,d);e=c[(b&p)>>2]|0}d=d+1|0}while((d|0)<(e|0))}}else{if(c[(d&p)+4>>2]|0){e=er(a,b,d,f)|0;if((e|0)<=-1)break;e=c[((c[(g&p)+16>>2]|0)+(e<<4)&p)>>2]|0;b=Wq(g,c[(f&p)>>2]|0)|0;if(!b)break;d=bq(g,b,e)|0;if(!d){e=sh(a,0,b,e)|0;if(e)Xt(a,e,0)}else Xt(a,c[(d&p)+12>>2]|0,d);mg(g,b);break}d=Wq(g,b)|0;e=Vh(g,d)|0;mg(g,d);if((e|0)>-1){Wt(a,e);break}d=Wq(g,b)|0;if(d){e=bq(g,d,0)|0;if(!e){e=sh(a,0,d,0)|0;if(e)Xt(a,e,0)}else Xt(a,c[(e&p)+12>>2]|0,e);mg(g,d)}}while(0);e=Oq(a)|0;if(e)wh(e,144,0,0,0)|0}i=h;return}function Ur(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,i=0;f=c[(d&p)>>2]|0;if(!f)e=d+4|0;else{i=c[(a&p)>>2]|0;g=c[(i&p)+20>>2]|0;i=c[(i&p)+16>>2]|0;a:do if((g|0)>0){h=0;while(1){e=h+1|0;if((c[(i+(h<<4)&p)+12>>2]|0)==(f|0)){e=h;break a}if((e|0)<(g|0))h=e;else break}}else e=0;while(0);e=i+(e<<4)|0}return sh(a,b,c[(d&p)+8>>2]|0,c[(e&p)>>2]|0)|0}function Vr(b,d){b=b|0;d=d|0;var e=0,f=0,g=0;g=i;i=i+16|0;if((i|0)>=(j|0))fa();f=g;if(d){e=d;while(1)if(!(a[(e&n)>>0]|0))break;else e=e+1|0;if((e-d&1073741823)>>>0>6?(Fc(d,25568,7)|0)==0:0){c[(f&p)>>2]=d;th(b,25576,f);e=1}else e=0}else e=0;i=g;return e|0}function Wr(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;f=i;i=i+16|0;if((i|0)>=(j|0))fa();e=f;if(!b){c[(e&p)>>2]=d;a=uh(a,25992,e)|0}else{c[(e&p)>>2]=b;c[(e&p)+4>>2]=d;e=uh(a,26e3,e)|0;mg(a,b);a=e}i=f;return a|0}function Xr(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;h=i;i=i+16|0;if((i|0)>=(j|0))fa();g=h;e=c[(a&p)>>2]|0;f=c[((c[(e&p)+16>>2]|0)&p)+28>>2]|0;if((c[(b&p)+68>>2]|0)!=(f|0)?(d=As(a,b)|0,(d|0)!=0):0){b=d;d=0;do{if((c[(b&p)+20>>2]|0)==(f|0))d=Wr(e,d,c[(b&p)>>2]|0)|0;b=c[(b&p)+32>>2]|0}while((b|0)!=0);if(d){b=c[(a&p)>>2]|0;c[(g&p)>>2]=d;b=uh(b,25968,g)|0;mg(c[(a&p)>>2]|0,d);d=b}else d=0}else d=0;i=h;return d|0}function Yr(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,q=0,r=0;r=i;i=i+16|0;if((i|0)>=(j|0))fa();n=r;o=Oq(a)|0;if(o){e=c[(a&p)>>2]|0;h=c[(b&p)+68>>2]|0;a:do if(h){k=c[(e&p)+20>>2]|0;if((k|0)>0){f=c[(e&p)+16>>2]|0;g=0;while(1){e=g+1|0;if((c[(f+(g<<4)&p)+12>>2]|0)==(h|0))break a;if((e|0)<(k|0))g=e;else{g=e;break}}}else g=0}else g=-1e6;while(0);e=As(a,b)|0;if(e)do{f=c[(a&p)>>2]|0;l=c[(e&p)+20>>2]|0;b:do if(l){m=c[(f&p)+20>>2]|0;if((m|0)>0){k=c[(f&p)+16>>2]|0;h=0;while(1){f=h+1|0;if((c[(k+(h<<4)&p)+12>>2]|0)==(l|0)){f=h;break b}if((f|0)<(m|0))h=f;else break}}else f=0}else f=-1e6;while(0);m=c[(e&p)>>2]|0;xh(o,wh(o,126,f,0,0)|0,m,0);e=c[(e&p)+32>>2]|0}while((e|0)!=0);e=c[(b&p)>>2]|0;xh(o,wh(o,124,g,0,0)|0,e,0);e=c[(a&p)>>2]|0;c[(n&p)>>2]=d;e=uh(e,25952,n)|0;if((e|0)!=0?(Ir(o,g,e),q=Xr(a,b)|0,(q|0)!=0):0)Ir(o,1,q)}i=r;return} function gh(f){f=f|0;var g=0,l=0,m=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,E=0,F=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ea=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,cc=0,dc=0,ec=0,fc=0,gc=0,hc=0,ic=0,kc=0,nc=0,oc=0,qc=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,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,Xc=0,Yc=0,Zc=0,_c=0,$c=0,ad=0,ed=0,fd=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,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,ee=0,fe=0,ge=0,he=0,ie=0,je=0,ke=0,le=0,me=0,ne=0,oe=0,pe=0,qe=0;oe=i;i=i+1040|0;if((i|0)>=(j|0))fa();ke=oe+400|0;Tc=oe+792|0;id=oe+392|0;ad=oe+788|0;Sd=oe+320|0;md=oe+784|0;pd=oe+780|0;qd=oe+280|0;Nd=oe+680|0;$c=oe+240|0;Qd=oe+200|0;_c=oe+676|0;Xc=oe+672|0;Od=oe+160|0;Uc=oe+644|0;td=oe+152|0;Jd=oe+112|0;kd=oe+640|0;Ld=oe+636|0;Yc=oe+632|0;ud=oe+628|0;Ad=oe+624|0;wd=oe+604|0;Bd=oe+600|0;od=oe+596|0;xd=oe+576|0;Sc=oe+840|0;Cd=oe+572|0;Pd=oe+104|0;Dd=oe+568|0;ed=oe+564|0;fd=oe+96|0;Rd=oe+88|0;Ed=oe+560|0;Fd=oe+556|0;Gd=oe+552|0;yd=oe+532|0;zd=oe+512|0;jd=oe+508|0;vd=oe+504|0;Zc=oe+488|0;Md=oe+48|0;Vc=oe+456|0;Rc=oe+444|0;Kd=oe+8|0;sd=oe+440|0;Id=oe+412|0;Hd=oe;zc=f+4|0;s=c[(zc&p)>>2]|0;le=c[(f&p)>>2]|0;Jc=a[(le&n)+62>>0]|0;Nc=f+8|0;z=c[(Nc&p)>>2]|0;ne=le+32|0;l=ne;m=c[(l&p)>>2]|0;l=c[(l&p)+4>>2]|0;me=f+80|0;a:do if((c[(me&p)>>2]|0)==7){y=le+65|0;z=f+44|0;r=m;g=0;t=0;m=0;ie=1317}else{c[(me&p)>>2]=0;de=f+136|0;c[(de&p)>>2]=0;c[(de&p)+4>>2]=0;de=f+20|0;c[(de&p)>>2]=0;c[(le&p)+452>>2]=0;Cc=le+240|0;b:do if(!(c[(Cc&p)>>2]|0)){be=le+292|0;if(c[(be&p)>>2]|0){r=c[(f&p)+124>>2]|0;g=le+300|0;y=c[(g&p)>>2]|0;if(!r)yc=g;else{yc=g;y=(r>>>0)%(y>>>0)|0}}else{yc=le+300|0;y=0}he=f+76|0;ge=le+65|0;Zd=le+296|0;sb=f+176|0;tb=f+184|0;ub=f+92|0;vb=le+80|0;wb=le+84|0;xb=Jc&255;yb=Jc<<24>>24==1;zb=le+88|0;Ab=f+60|0;_d=f+144|0;fe=f+86|0;je=f+44|0;Bb=f+12|0;Cb=Uc+4|0;Db=Uc+16|0;Eb=Uc+12|0;Fb=Uc+25|0;Gb=Uc+20|0;Hb=f+200|0;Ib=f+56|0;$d=f+72|0;Jb=Jd+16|0;Kb=Jd+8|0;Lb=Jd+24|0;Mb=f+87|0;ae=le+156|0;Nb=le+500|0;Ob=le+496|0;ee=le+63|0;Pb=le+488|0;Qb=le+504|0;Rb=le+512|0;Sb=le+70|0;Tb=le+24|0;Ub=le+20|0;Xd=le+16|0;Vb=le+4|0;Yd=f+88|0;Wb=f+104|0;Xb=f+152|0;Yb=f+160|0;Zb=le+152|0;_b=le+64|0;$b=wd+4|0;cc=wd+6|0;dc=wd+8|0;ec=xd+4|0;fc=xd+8|0;gc=le+212|0;hc=le+208|0;ic=f+116|0;kc=yd+4|0;nc=yd+6|0;oc=yd+8|0;qc=$c+8|0;sc=$c+32|0;uc=$c+24|0;vc=$c+16|0;wc=$c+12|0;xc=zd+4|0;Y=zd+6|0;Z=zd+8|0;_=qd+8|0;$=qd+32|0;aa=qd+24|0;ea=qd+12|0;ga=qd+16|0;ha=le+164|0;ia=Zc+8|0;ja=Zc+4|0;ka=le+145|0;la=Zc+12|0;ma=Sd+4|0;na=Sd+12|0;oa=Sd+16|0;pa=Sd+20|0;qa=Sd+24|0;ra=Sd+28|0;sa=Sd+8|0;ta=Sd+40|0;ua=Sd+44|0;va=Sd+48|0;wa=Sd+52|0;xa=Sd+56|0;ya=Sd+60|0;za=Sd+64|0;Aa=Sd+65|0;Ba=le+128|0;Ca=f+28|0;Da=f+36|0;Ea=f+32|0;Fa=f+196|0;Ga=Vc+4|0;Ha=Vc+8|0;Ia=Md+8|0;Ja=Md+32|0;Ka=Md+24|0;La=Vc+20|0;Ma=Vc+12|0;Na=Vc+16|0;Oa=Vc+24|0;Pa=Rc+8|0;Qa=Rc+4|0;Ra=le+148|0;Sa=le+176|0;Ta=le+72|0;Ua=le+67|0;Va=Tc+20|0;Wa=Tc+24|0;Xa=Tc+4|0;Ya=Tc+16|0;Za=le+304|0;_a=le+328|0;$a=Kd+32|0;ab=Kd+8|0;bb=Kd+24|0;cb=le+308|0;db=Id+20|0;eb=le+69|0;ce=f+168|0;fb=qd+4|0;gb=qd+8|0;hb=qd+12|0;ib=qd+16|0;jb=qd+20|0;kb=qd+24|0;lb=qd+25|0;mb=le+180|0;nb=Od+32|0;ob=Od+8|0;pb=Od+12|0;qb=Od+16|0;rb=Od+24|0;W=0;X=0;g=0;u=0;t=c[(he&p)>>2]|0;x=0;c:while(1){r=m;d:while(1){if(a[(ge&n)>>0]|0){y=ge;z=je;m=x;ie=1317;break a}m=g+1|0;if(!(a[(s+(t*20|0)&n)+2>>0]&2))L=u;else{u=c[(s+(t*20|0)&p)+8>>2]|0;g=z+(u*40|0)|0;u=z+(u*40|0)+8|0;if(b[(u&o)>>1]&9312)vg(g);b[(u&o)>>1]=4;L=g}C=s+(t*20|0)|0;J=a[(C&n)>>0]|0;u=J&255;e:do switch(u|0){case 17:{g=m;m=r;u=L;ie=22;break d}case 18:{g=m;m=r;u=L;ie=23;break d}case 20:{g=m;m=r;ie=24;break d}case 21:{g=m;m=r;u=L;ie=25;break d}case 22:{g=m;m=r;u=L;ie=26;break d}case 23:{g=m;m=r;u=L;r=t;ie=27;break d}case 29:{g=m;m=r;r=t;ie=65;break d}case 30:{g=m;m=r;u=L;r=t;ie=66;break d}case 28:{g=m;m=r;u=L;r=t;ie=60;break d}case 32:{g=m;m=r;r=t;ie=72;break d}case 24:{g=m;m=r;u=L;r=t;ie=28;break d}case 25:{g=m;m=r;u=L;r=t;ie=44;break d}case 26:{g=m;m=r;u=L;r=t;ie=45;break d}case 133:{g=m;m=r;u=L;r=t;ie=46;break d}case 97:{a[(C&n)>>0]=27;C=s+(t*20|0)+16|0;v=c[(C&p)>>2]|0;if(!v)g=0;else{g=v;while(1)if(!(a[(g&n)>>0]|0))break;else g=g+1|0;g=g-v&1073741823}w=s+(t*20|0)+4|0;c[(w&p)>>2]=g;if(yb)u=0;else{u=Xg(L,v,-1,1,0)|0;if((u|0)==18){g=m;m=r;u=x;ie=1316;break c}if(Yl(L,xb)|0){y=ge;z=je;g=m;m=x;ie=1317;break a}c[(L&p)+24>>2]=0;g=L+8|0;b[(g&o)>>1]=e[(g&o)>>1]|2048;g=s+(t*20|0)+1|0;if((a[(g&n)>>0]|0)==-1)mg(le,c[(C&p)>>2]|0);a[(g&n)>>0]=-1;v=c[(L&p)+16>>2]|0;c[(C&p)>>2]=v;g=c[(L&p)+12>>2]|0;c[(w&p)>>2]=g}if((g|0)>(c[(zb&p)>>2]|0)){g=m;m=r;u=x;ie=1316;break c}else ie=57;break}case 31:{g=m;m=r;u=L;r=t;ie=67;break d}case 34:{g=m;m=r;r=t;ie=79;break d}case 35:{g=m;m=r;u=x;ie=80;break c}case 33:{g=m;m=r;ie=74;break d}case 94:{g=m;m=r;ie=94;break d}case 93:case 92:case 91:case 90:case 89:{g=m;P=C;m=r;r=t;ie=112;break d}case 27:{v=c[(s+(t*20|0)&p)+16>>2]|0;g=c[(s+(t*20|0)&p)+4>>2]|0;u=0;ie=57;break}case 16:{t=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;u=0;ie=19;break}case 36:{g=m;m=r;J=L;r=t;ie=166;break d}case 1:{V=a[(s+(t*20|0)&n)+3>>0]|0;C=V&255;A=c[(Bb&p)>>2]|0;g=z+((c[(s+(t*20|0)&p)+12>>2]|0)*40|0)|0;c[(Uc&p)>>2]=g;if(V<<24>>24){g=0;u=z+((c[(s+(t*20|0)&p)+8>>2]|0)*40|0)|0;while(1){c[(A+(g<<2)&p)>>2]=u;if((b[(u&o)+8>>1]&4096)!=0?(Vl(u)|0)!=0:0){y=ge;z=je;g=m;m=x;ie=1317;break a}g=g+1|0;if((g|0)>=(C|0))break;else u=u+40|0}g=c[(Uc&p)>>2]|0}V=c[(s+(t*20|0)&p)+16>>2]|0;c[(Cb&p)>>2]=V;c[(Db&p)>>2]=t;c[(Eb&p)>>2]=f;U=g+8|0;b[(U&o)>>1]=e[(U&o)>>1]&48640|1;a[(Fb&n)>>0]=0;U=ne;c[(U&p)>>2]=r;c[(U&p)+4>>2]=l;mc[c[(V&p)+12>>2]&63](Uc,C,A);l=ne;r=c[(l&p)>>2]|0;l=c[(l&p)+4>>2]|0;if(!(a[(Fb&n)>>0]|0))g=0;else{if(!(c[(Gb&p)>>2]|0))g=0;else{c[(ke&p)>>2]=Sg(c[(Uc&p)>>2]|0,1)|0;dh(je,le,10344,ke);g=c[(Gb&p)>>2]|0}em(f,t,c[(s+(t*20|0)&p)+4>>2]|0)}Yl(c[(Uc&p)>>2]|0,xb)|0;w=c[(Uc&p)>>2]|0;v=e[(w&o)+8>>1]|0;if(v&18){u=c[(w&p)+12>>2]|0;if(v&16384)u=(c[(w&p)>>2]|0)+u|0;if((u|0)>(c[((c[(w&p)+32>>2]|0)&p)+88>>2]|0)){g=m;m=r;u=x;ie=1316;break c}else{C=L;T=t;u=g}}else{C=L;T=t;u=g}break}case 88:case 87:case 86:case 85:{g=m;H=C;m=r;r=t;ie=184;break d}case 39:{g=m;m=r;J=L;r=t;ie=208;break d}case 37:{g=m;m=r;u=L;r=t;ie=202;break d}case 38:{g=m;m=r;J=L;r=t;ie=203;break d}case 83:case 80:case 81:case 82:case 78:case 79:{g=m;I=J;m=r;u=L;ie=213;break d}case 40:{V=c[(s+(t*20|0)&p)+4>>2]|0;g=z+(V*40|0)|0;if(!(b[(z+(V*40|0)&o)+8>>1]&16384))u=0;else u=Rg(g)|0;gm(g,c[(s+(t*20|0)&p)+8>>2]&255,Jc);C=L;T=t;break}case 41:{g=m;m=r;u=L;r=t;ie=248;break d}case 42:{g=m;m=r;u=L;r=t;ie=249;break d}case 43:{g=m;m=r;u=L;ie=256;break d}case 71:case 72:{g=m;m=r;r=t;ie=261;break d}case 76:{g=m;m=r;u=L;r=t;ie=286;break d}case 19:{g=m;m=r;r=t;ie=268;break d}case 96:{g=m;m=r;r=t;ie=273;break d}case 44:{g=m;m=r;u=L;r=t;ie=278;break d}case 46:case 45:{g=m;m=r;u=L;r=t;ie=281;break d}case 77:{g=m;m=r;u=L;r=t;ie=288;break d}case 47:{g=m;m=r;u=L;ie=290;break d}case 48:{g=m;m=r;u=L;r=t;ie=368;break d}case 49:{g=m;m=r;ie=371;break d}case 50:{E=c[(c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]&p)>>2]|0;f:do if(c[(E&p)+60>>2]|0){g=qm(E)|0;if(!g){K=E+76|0;H=E+44|0;F=E+72|0;v=0;u=0;g:while(1){C=b[(K&o)>>1]|0;J=c[(E+(C<<16>>16<<2)&p)+120>>2]|0;if(!(a[(J&n)+5>>0]|0)){if(!(a[(J&n)+2>>0]|0)){v=jw(e[(J&o)+18>>1]|0,0,v|0,u|0)|0;u=G}}else{v=jw(e[(J&o)+18>>1]|0,0,v|0,u|0)|0;u=G;while(1){if(!(C<<16>>16))break g;if(J){Bg(c[(J&p)+68>>2]|0);C=b[(K&o)>>1]|0}C=C+-1<<16>>16;b[(K&o)>>1]=C;b[(H&o)>>1]=0;a[(F&n)>>0]=d[(F&n)>>0]&249;J=C<<16>>16;A=E+(J<<1)+78|0;I=b[(A&o)>>1]|0;J=c[(E+(J<<2)&p)+120>>2]|0;if((I&65535)<(e[(J&o)+18>>1]|0)){C=I;break}}b[(A&o)>>1]=C+1<<16>>16;J=b[(K&o)>>1]|0;C=J;J=c[(E+(J<<16>>16<<2)&p)+120>>2]|0}C=b[(E+(C<<16>>16<<1)&o)+78>>1]|0;A=c[(J&p)+56>>2]|0;if(C<<16>>16==(b[(J&o)+18>>1]|0)){g=d[(J&n)+6>>0]|0;g=rm(E,d[(A+g&n)+9>>0]<<16|d[(A+g&n)+8>>0]<<24|d[(A+g&n)+10>>0]<<8|d[(A+g&n)+11>>0])|0}else{g=(C&65535)<<1;V=c[(J&p)+64>>2]|0;g=(d[(V+g&n)>>0]<<8|d[(V+(g|1)&n)>>0])&e[(J&o)+20>>1];g=rm(E,d[(A+g&n)+1>>0]<<16|d[(A+g&n)>>0]<<24|d[(A+g&n)+2>>0]<<8|d[(A+g&n)+3>>0])|0}if(g){v=0;u=0;break f}}g=qm(E)|0}else{v=0;u=0}}else{g=0;v=0;u=0}while(0);C=L;c[(C&p)>>2]=v;c[(C&p)+4>>2]=u;C=L;T=t;u=g;break}case 2:{O=c[(s+(t*20|0)&p)+4>>2]|0;v=c[(s+(t*20|0)&p)+16>>2]|0;if(!O){g=m;m=r;r=t;ie=446;break d}g=c[(Pb&p)>>2]|0;if(!g){s=v;g=m;m=r;u=x;ie=460;break c}else u=0;while(1){if(!(dd(c[(g&p)>>2]|0,v)|0)){M=g;break}g=c[(g&p)+24>>2]|0;if(!g){s=v;g=m;m=r;u=x;ie=460;break c}else u=u+1|0}H=(O|0)==1;if((c[(ae&p)>>2]|0)>0&H){g=m;m=r;u=x;ie=462;break c}F=M+24|0;if(!(c[(F&p)>>2]|0)){A=(a[(Sb&n)>>0]|0)!=0;if(A&H){g=tm(f,1)|0;if(g)break a;a[(ee&n)>>0]=1;if((Rl(f)|0)==5){g=t;ie=467;break c}a[(Sb&n)>>0]=0;A=1;K=u;u=c[(me&p)>>2]|0}else ie=469}else{A=0;ie=469}if((ie|0)==469){ie=0;K=(c[(Ob&p)>>2]|0)-u+-1|0;if((O|0)==2){C=(c[(Tb&p)>>2]|0)>>>1&1;if((c[(Ub&p)>>2]|0)>0){J=C^1;I=0;while(1){u=Il(c[((c[(Xd&p)>>2]|0)+(I<<4)&p)+4>>2]|0,516,J)|0;I=I+1|0;if(u){g=m;m=r;ie=1318;break c}g=c[(Ub&p)>>2]|0;if((I|0)>=(g|0)){ie=475;break}}}}else{g=c[(Ub&p)>>2]|0;C=0;ie=475}if((ie|0)==475){ie=0;if((g|0)>0){E=0;do{u=um(c[((c[(Xd&p)>>2]|0)+(E<<4)&p)+4>>2]|0,O,K)|0;E=E+1|0;if(u){g=m;m=r;ie=1318;break c}}while((E|0)<(c[(Ub&p)>>2]|0))}}if(!C)u=0;else{C=c[(Vb&p)>>2]|0;if(C)do{V=C+88|0;b[(V&o)>>1]=b[(V&o)>>1]|8;C=c[(C&p)+52>>2]|0}while((C|0)!=0);Eg(le);c[(Tb&p)>>2]=c[(Tb&p)>>2]|2;u=0}}C=c[(Pb&p)>>2]|0;if((C|0)!=(M|0))do{c[(Pb&p)>>2]=c[(C&p)+24>>2];mg(le,C);c[(Ob&p)>>2]=(c[(Ob&p)>>2]|0)+-1;C=c[(Pb&p)>>2]|0}while((C|0)!=(M|0));if(H){c[(Pb&p)>>2]=c[(F&p)>>2];mg(le,M);if(A){C=L;T=t;break e}else{g=m;C=O;m=r;A=K;E=L;r=t;ie=486;break d}}else{V=M+8|0;U=c[(V&p)+4>>2]|0;T=Qb;c[(T&p)>>2]=c[(V&p)>>2];c[(T&p)+4>>2]=U;T=M+16|0;U=c[(T&p)+4>>2]|0;V=Rb;c[(V&p)>>2]=c[(T&p)>>2];c[(V&p)+4>>2]=U;if(A){C=L;T=t;break e}else{C=O;g=m;m=r;A=K;E=L;r=t;ie=488;break d}}}case 3:{u=x;ie=489;break c}case 4:{v=s+(t*20|0)+8|0;g=c[(v&p)>>2]|0;if((g|0)!=0?(c[(Tb&p)>>2]&33554432|0)!=0:0){g=m;m=r;u=8;ie=1318;break c}I=s+(t*20|0)+4|0;J=c[((c[(Xd&p)>>2]|0)+(c[(I&p)>>2]<<4)&p)+4>>2]|0;if(!J){v=0;u=0;g=0}else{u=yg(J,g)|0;if((u|0)==5){g=t;ie=508;break c}else if(u){g=m;m=r;ie=1318;break c}do if((c[(v&p)>>2]|0)!=0?(b[(Yd&o)>>1]&32)!=0:0){if((a[(ee&n)>>0]|0)!=0?(c[(Zb&p)>>2]|0)<=1:0){g=0;break}g=c[(Wb&p)>>2]|0;if(!g){g=(c[(Nb&p)>>2]|0)+1|0;c[(Nb&p)>>2]=g;g=(c[(Ob&p)>>2]|0)+g|0;c[(Wb&p)>>2]=g}g=sm(le,0,g+-1|0)|0;if(!g){g=c[(Wb&p)>>2]|0;V=c[(J&p)+4>>2]|0;c[(V&p)+4>>2]=c[(J&p)>>2];g=hl(c[(V&p)>>2]|0,g)|0}V=Qb;U=c[(V&p)+4>>2]|0;T=Xb;c[(T&p)>>2]=c[(V&p)>>2];c[(T&p)+4>>2]=U;T=Rb;U=c[(T&p)+4>>2]|0;V=Yb;c[(V&p)>>2]=c[(T&p)>>2];c[(V&p)+4>>2]=U}else g=0;while(0);v=c[(J&p)+4>>2]|0;c[(v&p)+4>>2]=c[(J&p)>>2];v=c[((c[(v&p)+12>>2]|0)&p)+56>>2]|0;v=d[(v&n)+41>>0]<<16|d[(v&n)+40>>0]<<24|d[(v&n)+42>>0]<<8|d[(v&n)+43>>0];u=c[((c[((c[(Xd&p)>>2]|0)+(c[(I&p)>>2]<<4)&p)+12>>2]|0)&p)+4>>2]|0}if(a[(s+(t*20|0)&n)+3>>0]|0){if((v|0)!=(c[(s+(t*20|0)&p)+12>>2]|0)){g=m;s=I;m=r;u=x;ie=522;break c}if((u|0)!=(c[(s+(t*20|0)&p)+16>>2]|0)){g=m;s=I;m=r;u=x;ie=522;break c}else{C=L;T=t;u=g}}else{C=L;T=t;u=g}break}case 53:{g=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;if((g|0)!=0?(c[(g&p)+28>>2]|0)==(c[(s+(t*20|0)&p)+8>>2]|0):0){v=s+(t*20|0)+3|0;u=0;ie=548}else ie=536;break}case 51:{g=m;m=r;u=L;r=t;ie=525;break d}case 52:{A=s+(t*20|0)+4|0;g=c[(A&p)>>2]|0;v=c[(Xd&p)>>2]|0;C=c[(s+(t*20|0)&p)+12>>2]|0;w=z+(C*40|0)|0;u=Vg(w)|0;V=w;c[(V&p)>>2]=u;c[(V&p)+4>>2]=G;C=z+(C*40|0)+8|0;b[(C&o)>>1]=e[(C&o)>>1]&48640|4;C=s+(t*20|0)+8|0;u=Dg(c[(v+(g<<4)&p)+4>>2]|0,c[(C&p)>>2]|0,u)|0;C=c[(C&p)>>2]|0;if((C|0)==1){c[(c[(v+(g<<4)&p)+12>>2]&p)>>2]=c[(w&p)>>2];c[(Tb&p)>>2]=c[(Tb&p)>>2]|2}else if((C|0)==2)a[((c[(v+(g<<4)&p)+12>>2]|0)&n)+76>>0]=c[(w&p)>>2];if((c[(A&p)>>2]|0)==1){g=c[(Vb&p)>>2]|0;if(g)do{V=g+88|0;b[(V&o)>>1]=b[(V&o)>>1]|8;g=c[(g&p)+52>>2]|0}while((g|0)!=0);b[(Yd&o)>>1]=b[(Yd&o)>>1]&-9;C=L;T=t}else{C=L;T=t}break}case 55:case 54:{ie=536;break}case 57:case 56:{g=xm(f,c[(s+(t*20|0)&p)+4>>2]|0,c[(s+(t*20|0)&p)+8>>2]|0,-1,1)|0;if(!g){y=ge;z=je;g=m;m=x;ie=1317;break a}a[(g&n)+25>>0]=1;J=g+27|0;a[(J&n)>>0]=a[(J&n)>>0]|1;v=g+4|0;I=s+(t*20|0)+3|0;u=zm(c[(le&p)>>2]|0,0,le,v,d[(I&n)>>0]|5,1054)|0;do if(!u){u=yg(c[(v&p)>>2]|0,1)|0;if(!u){A=c[(s+(t*20|0)&p)+16>>2]|0;C=c[(v&p)>>2]|0;if(!A){u=ym(C,1,1,0,c[(g&p)>>2]|0)|0;a[(J&n)>>0]=a[(J&n)>>0]|4;break}u=Am(C,ud,d[(I&n)>>0]|2)|0;if(!u){c[(g&p)+8>>2]=A;u=ym(c[(v&p)>>2]|0,c[(ud&p)>>2]|0,1,A,c[(g&p)>>2]|0)|0}a[(J&n)>>0]=a[(J&n)>>0]&-5}}while(0);a[(J&n)>>0]=((a[(I&n)>>0]|0)!=8&1)<<3&255|a[(J&n)>>0]&-9;C=L;T=t;break}case 58:{g=m;m=r;ie=558;break d}case 60:{g=m;m=r;u=L;ie=568;break d}case 61:{g=m;m=r;u=L;r=t;ie=570;break d}case 59:{g=m;m=r;u=L;r=t;ie=566;break d}case 65:case 64:case 63:case 62:{g=m;K=u;m=r;r=t;ie=571;break d}case 66:{g=m;m=r;u=L;r=t;ie=596;break d}case 69:case 68:case 67:{g=m;H=C;m=r;u=L;ie=597;break d}case 73:{g=m;m=r;u=L;r=t;ie=624;break d}case 70:{V=c[(s+(t*20|0)&p)+12>>2]|0;g=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;u=c[(g&p)>>2]|0;c[(Cd&p)>>2]=0;V=z+(V*40|0)|0;U=c[(V&p)>>2]|0;V=c[(V&p)+4>>2]|0;u=Cm(u,0,U,V,0,Cd)|0;v=g+48|0;c[(v&p)>>2]=U;c[(v&p)+4>>2]=V;a[(g&n)+25>>0]=0;c[(g&p)+60>>2]=0;a[(g&n)+26>>0]=0;v=c[(Cd&p)>>2]|0;if(v)t=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;c[(g&p)+12>>2]=v;C=L;T=t;break}case 74:{H=Pd;c[(H&p)>>2]=0;c[(H&p)+4>>2]=0;c[(Dd&p)>>2]=0;H=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;g=c[(H&p)>>2]|0;if(!g){u=0;v=0;g=0}else{K=H+27|0;do if(!(a[(K&n)>>0]&2)){u=Hm(g,Dd)|0;if(u){g=m;m=r;ie=1318;break c}if(c[(Dd&p)>>2]|0){V=Pd;c[(V&p)>>2]=1;c[(V&p)+4>>2]=0;break}km(c[(H&p)>>2]|0,Pd);u=Pd;g=c[(u&p)>>2]|0;u=c[(u&p)+4>>2]|0;if((g|0)==-1&(u|0)==2147483647){a[(K&n)>>0]=a[(K&n)>>0]|2;break}else{U=jw(g|0,u|0,1,0)|0;V=Pd;c[(V&p)>>2]=U;c[(V&p)+4>>2]=G;break}}while(0);J=c[(s+(t*20|0)&p)+12>>2]|0;if(J){g=c[(sb&p)>>2]|0;if(!g)C=z;else{while(1){u=c[(g&p)+4>>2]|0;if(!u)break;else g=u}C=c[(g&p)+16>>2]|0}I=C+(J*40|0)|0;A=Vg(I)|0;g=G;V=I;c[(V&p)>>2]=A;c[(V&p)+4>>2]=g;V=C+(J*40|0)+8|0;b[(V&o)>>1]=e[(V&o)>>1]&48640|4;if((A|0)==-1&(g|0)==2147483647){g=m;m=r;u=13;ie=1318;break c}if(a[(K&n)>>0]&2){g=m;m=r;u=13;ie=1318;break c}J=Pd;u=c[(J&p)>>2]|0;J=c[(J&p)+4>>2]|0;C=jw(A|0,g|0,1,0)|0;g=G;if((J|0)<(g|0)|(J|0)==(g|0)&u>>>0>>0){V=Pd;c[(V&p)>>2]=C;c[(V&p)+4>>2]=g}else{C=u;g=J}V=I;c[(V&p)>>2]=C;c[(V&p)+4>>2]=g}h:do if(!(a[(K&n)>>0]&2))g=0;else{u=0;while(1){cd(8,Pd);V=Pd;V=jw(c[(V&p)>>2]|0,c[(V&p)+4>>2]&1073741823|0,1,0)|0;g=G;U=Pd;c[(U&p)>>2]=V;c[(U&p)+4>>2]=g;g=Cm(c[(H&p)>>2]|0,0,V,g,0,Dd)|0;if(c[(Dd&p)>>2]|g)break h;u=u+1|0;if((u|0)>=100){g=m;m=r;u=13;ie=1318;break c}}}while(0);a[(H&n)+26>>0]=0;c[(H&p)+60>>2]=0;v=Pd;u=c[(v&p)>>2]|0;v=c[(v&p)+4>>2]|0}C=L;c[(C&p)>>2]=u;c[(C&p)+4>>2]=v;C=L;T=t;u=g;break}case 84:case 75:{g=m;C=J;m=r;u=L;r=t;ie=647;break d}case 95:{g=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;u=Jm(c[(g&p)>>2]|0)|0;c[(g&p)+60>>2]=0;if((((u|0)==0?(Gc=c[(gc&p)>>2]|0,(Gc|0)!=0):0)?(Hc=c[(s+(t*20|0)&p)+16>>2]|0,(Hc|0)!=0):0)?(a[(g&n)+27>>0]&4)!=0:0){V=g+48|0;bc[Gc&1](c[(hc&p)>>2]|0,9,c[((c[(Xd&p)>>2]|0)+(a[(g&n)+24>>0]<<4)&p)>>2]|0,Hc,c[(V&p)>>2]|0,c[(V&p)+4>>2]|0)}if(!(c[(s+(t*20|0)&p)+8>>2]&1)){C=L;T=t}else{c[(ub&p)>>2]=(c[(ub&p)>>2]|0)+1;C=L;T=t}break}case 98:{g=m;m=r;u=L;r=t;ie=671;break d}case 99:{g=m;m=r;u=L;r=t;ie=672;break d}case 100:{v=c[(s+(t*20|0)&p)+8>>2]|0;C=z+(v*40|0)|0;g=c[((c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0)&p)+56>>2]|0;if(!(a[(g&n)+56>>0]|0)){u=c[(g&p)+36>>2]|0;g=u;u=u+8|0}else{V=c[(g&p)+20>>2]|0;u=c[((c[(V&p)+8>>2]|0)&p)+4>>2]|0;V=c[(V&p)+12>>2]|0;g=V+(u*56|0)+20|0;u=c[(V+(u*56|0)&p)+32>>2]|0}g=c[(g&p)>>2]|0;if(!(fh(C,g)|0)){c[(z+(v*40|0)&p)+12>>2]=g;V=z+(v*40|0)+8|0;b[(V&o)>>1]=e[(V&o)>>1]&48640|16;kw(c[(z+(v*40|0)&p)+16>>2]|0,u|0,g|0)|0;u=0}else u=7;c[((c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+12>>2]<<2)&p)>>2]|0)&p)+60>>2]=0;T=t;break}case 102:case 101:{v=c[(s+(t*20|0)&p)+8>>2]|0;J=z+(v*40|0)|0;A=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;C=c[(A&p)>>2]|0;A=A+27|0;if(a[(A&n)>>0]&4){lm(C,ed);g=c[(ed&p)>>2]|0;if(g>>>0>(c[(zb&p)>>2]|0)>>>0){g=m;m=r;u=x;ie=1316;break c}}else{km(C,fd);T=fd;g=c[(T&p)>>2]|0;T=c[(T&p)+4>>2]|0;V=c[(zb&p)>>2]|0;U=((V|0)<0)<<31>>31;if((T|0)>(U|0)|(T|0)==(U|0)&g>>>0>V>>>0){g=m;m=r;u=x;ie=1316;break c}c[(ed&p)>>2]=g}if(fh(J,g>>>0>32?g:32)|0){y=ge;z=je;g=m;m=x;ie=1317;break a}c[(z+(v*40|0)&p)+12>>2]=g;g=z+(v*40|0)+8|0;b[(g&o)>>1]=e[(g&o)>>1]&48640|16;g=c[(ed&p)>>2]|0;u=c[(z+(v*40|0)&p)+16>>2]|0;if(!(a[(A&n)>>0]&4))u=Lm(C,0,g,u,0)|0;else u=Dh(C,0,g,u)|0;a[(z+(v*40|0)&n)+10>>0]=1;C=J;T=t;break}case 103:{v=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;w=v+25|0;if(a[(w&n)>>0]|0){g=m;m=r;u=L;r=t;ie=700;break d}do if(!(a[(v&n)+26>>0]|0)){g=c[(v&p)+32>>2]|0;if(g){V=c[(g&p)>>2]|0;u=rc[c[((c[(V&p)>>2]|0)&p)+48>>2]&127](g,Rd)|0;Mm(f,V);break}if((a[((c[(v&p)>>2]|0)&n)+73>>0]|0)!=1){u=jm(v)|0;if(u){g=m;m=r;ie=1318;break c}if(a[(w&n)>>0]|0){g=m;m=r;u=L;r=t;ie=708;break d}}km(c[(v&p)>>2]|0,Rd);u=0}else{U=v+48|0;V=c[(U&p)+4>>2]|0;u=Rd;c[(u&p)>>2]=c[(U&p)>>2];c[(u&p)+4>>2]=V;u=0}while(0);V=Rd;T=c[(V&p)+4>>2]|0;C=L;c[(C&p)>>2]=c[(V&p)>>2];c[(C&p)+4>>2]=T;C=L;T=t;break}case 108:{ie=715;break}case 104:{g=m;m=r;u=L;r=t;ie=711;break d}case 107:case 106:{c[(ic&p)>>2]=(c[(ic&p)>>2]|0)+1;ie=715;break}case 105:{T=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;u=c[(T&p)>>2]|0;c[(Ed&p)>>2]=0;u=Hm(u,Ed)|0;V=c[(Ed&p)>>2]|0;a[(T&n)+25>>0]=V;a[(T&n)+26>>0]=0;c[(T&p)+60>>2]=0;T=c[(s+(t*20|0)&p)+8>>2]|0;C=L;T=(T|0)>0&(V|0)!=0?T+-1|0:t;break}case 7:case 6:{if(!(c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0)){g=m;m=r;S=z;T=s;U=W;V=X;u=L;r=t;break d}else ie=765;break}case 5:{g=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;c[(Fd&p)>>2]=0;w=c[(g&p)+56>>2]|0;if(a[(w&n)+56>>0]|0){u=Wm(c[(w&p)+20>>2]|0,Fd)|0;ie=766;break e}u=w+36|0;v=c[(u&p)>>2]|0;V=v+4|0;c[(u&p)>>2]=c[(V&p)>>2];c[(V&p)>>2]=0;if(!((c[(w&p)+40>>2]|0)!=0|(v|0)==0))mg(le,v);c[(Fd&p)>>2]=(c[(u&p)>>2]|0)==0&1;u=0;ie=766;break}case 9:case 8:{ie=765;break}case 110:case 109:{A=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;S=c[(s+(t*20|0)&p)+8>>2]|0;u=c[(A&p)>>2]|0;C=s+(t*20|0)+3|0;if(a[(C&n)>>0]&1)c[(ub&p)>>2]=(c[(ub&p)>>2]|0)+1;if((b[(z+(S*40|0)&o)+8>>1]&16384)!=0?(Ud=Rg(z+(S*40|0)|0)|0,(Ud|0)!=0):0){g=m;m=r;s=Ud;u=x;ie=1309;break c}H=c[(A&p)+56>>2]|0;T=z+(S*40|0)+12|0;P=c[(T&p)>>2]|0;if(!H){if(!(a[(C&n)>>0]&16))g=0;else g=c[(A&p)+12>>2]|0;u=Im(u,c[(z+(S*40|0)&p)+16>>2]|0,P,((P|0)<0)<<31>>31,10360,0,0,c[(s+(t*20|0)&p)+12>>2]|0,g)|0;c[(A&p)+60>>2]=0;C=L;T=t;break e}C=P;g=((P|0)<0)<<31>>31;A=0;do{A=A+1|0;C=mw(C|0,g|0,7)|0;g=G}while(((C|0)!=0|(g|0)!=0)&(A|0)<9);K=P+8|0;I=A+P|0;M=H+4|0;A=c[(M&p)>>2]|0;do if(!A)u=0;else{if(!(c[(H&p)+40>>2]|0)){C=H+44|0;V=c[(C&p)>>2]|0;if((V|0)<=(A|0)?!((c[2265]|0)!=0?(V|0)>(c[(H&p)>>2]|0):0):0){u=0;break}}else{V=c[(H&p)+48>>2]|0;if(!((V|0)!=0&(V+K|0)>(A|0))){u=0;break}C=H+44|0}u=Om(H)|0;c[(C&p)>>2]=0;c[(H&p)+48>>2]=0}while(0);C=H+36|0;J=H+44|0;c[(J&p)>>2]=(c[(J&p)>>2]|0)+I;J=H+8|0;if((I|0)>(c[(J&p)>>2]|0))c[(J&p)>>2]=I;E=H+40|0;J=c[(E&p)>>2]|0;if(!J){g=qg(K,((K|0)<0)<<31>>31)|0;if(!g){g=m;m=r;s=7;u=x;ie=1309;break c}c[(g&p)+4>>2]=c[(C&p)>>2]}else{g=H+48|0;I=c[(g&p)>>2]|0;K=I+K|0;F=H+52|0;H=c[(F&p)>>2]|0;if((K|0)>(H|0)){I=H;do I=I<<1;while((I|0)<(K|0));V=c[(M&p)>>2]|0;I=(I|0)>(V|0)?V:I;I=(I|0)<(K|0)?K:I;J=rg(J,I,((I|0)<0)<<31>>31)|0;if(!J){g=m;m=r;s=7;u=x;ie=1309;break c}A=J+((c[(C&p)>>2]|0)-(c[(E&p)>>2]|0))|0;c[(C&p)>>2]=A;c[(E&p)>>2]=J;c[(F&p)>>2]=I;I=c[(g&p)>>2]|0}else A=c[(C&p)>>2]|0;c[(g&p)>>2]=I+(P+15&-8);c[(J+I&p)+4>>2]=A-J;g=J+I|0}kw(g+8|0,c[(z+(S*40|0)&p)+16>>2]|0,c[(T&p)>>2]|0)|0;c[(g&p)>>2]=c[(T&p)>>2];c[(C&p)>>2]=g;C=L;T=t;break}case 112:{g=m;m=r;r=t;ie=801;break d}case 111:{v=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;g=c[(v&p)>>2]|0;c[(yd&p)>>2]=c[(v&p)+8>>2];b[(kc&o)>>1]=c[(s+(t*20|0)&p)+12>>2];a[(nc&n)>>0]=0;c[(oc&p)>>2]=z+((c[(s+(t*20|0)&p)+8>>2]|0)*40|0);u=Cm(g,yd,0,0,0,Gd)|0;if(!(c[(Gd&p)>>2]|u))u=Jm(g)|0;c[(v&p)+60>>2]=0;C=L;T=t;break}case 116:case 115:case 114:case 113:{u=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;c[(zd&p)>>2]=c[(u&p)+8>>2];b[(xc&o)>>1]=c[(s+(t*20|0)&p)+16>>2];a[(Y&n)>>0]=((J&255)<115)<<31>>31;c[(Z&p)>>2]=z+((c[(s+(t*20|0)&p)+12>>2]|0)*40|0);V=Sd;c[(V&p)>>2]=0;c[(V&p)+4>>2]=0;km(c[(u&p)>>2]|0,Sd);V=Sd;g=c[(V&p)>>2]|0;V=jw(g|0,c[(V&p)+4>>2]|0,-1,-1)|0;U=G;if(!(U>>>0>0|(U|0)==0&V>>>0>2147483646)){b[(_&o)>>1]=0;c[($&p)>>2]=le;c[(aa&p)>>2]=0;g=nm(c[(u&p)>>2]|0,0,g,1,qd)|0;if(!g){u=Km(c[(ea&p)>>2]|0,c[(ga&p)>>2]|0,zd,0)|0;if((b[(_&o)>>1]&9312)==0&(c[(aa&p)>>2]|0)==0)g=0;else{Qg(qd);g=0}}else u=0}else{c[(ke&p)>>2]=68730;c[(ke&p)+4>>2]=10788;bd(11,13600,ke);g=11;u=0}if((((a[(C&n)>>0]&1)==0?u+1|0:0-u|0)|0)>0){C=L;T=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;u=g}else{C=L;T=t;u=g}break}case 117:{O=L+8|0;b[(O&o)>>1]=1;if((c[(Zb&p)>>2]|0)>((c[(ha&p)>>2]|0)+1|0)){g=m;m=r;u=x;ie=832;break c}N=c[(s+(t*20|0)&p)+12>>2]|0;M=c[((c[(Xd&p)>>2]|0)+(N<<4)&p)+4>>2]|0;P=s+(t*20|0)+4|0;I=c[(P&p)>>2]|0;C=M+4|0;K=c[(C&p)>>2]|0;c[(K&p)+4>>2]=c[(M&p)>>2];c[(ke&p)>>2]=0;do if(!(c[(K&p)+8>>2]|0)){u=dl(K,I,ke,0)|0;if(!u){u=Xm(M,I,0)|0;if(u){g=c[(ke&p)>>2]|0;if(!g){A=0;break}Bg(c[(g&p)+68>>2]|0);A=0;break}if(I>>>0<=1){g=c[(ke&p)>>2]|0;pl(g,9);if(!g){u=0;A=0;break}Bg(c[(g&p)+68>>2]|0);u=0;A=0;break}if(!(a[(K&n)+17>>0]|0)){g=c[(ke&p)>>2]|0;u=Ym(c[(g&p)+52>>2]|0,g,c[(g&p)+72>>2]|0)|0;if(!g){A=0;break}Bg(c[(g&p)+68>>2]|0);A=0;break}J=c[(C&p)>>2]|0;c[(J&p)+4>>2]=c[(M&p)>>2];J=c[((c[(J&p)+12>>2]|0)&p)+56>>2]|0;J=d[(J&n)+53>>0]<<16|d[(J&n)+52>>0]<<24|d[(J&n)+54>>0]<<8|d[(J&n)+55>>0];C=c[(ke&p)>>2]|0;if((J|0)==(I|0)){u=Ym(c[(C&p)+52>>2]|0,C,c[(C&p)+72>>2]|0)|0;if(C)Bg(c[(C&p)+68>>2]|0);if(!u)A=0;else{A=0;break}}else{if(C)Bg(c[(C&p)+68>>2]|0);u=dl(K,J,Sd,0)|0;if(u){A=0;break}C=c[(Sd&p)>>2]|0;u=Zm(K,C,1,0,I,0)|0;if(C)Bg(c[(C&p)+68>>2]|0);if(u){A=0;break}c[(Sd&p)>>2]=0;u=dl(K,J,Sd,0)|0;C=c[(Sd&p)>>2]|0;if(u){if(!C){A=0;break}}else u=Ym(c[(C&p)+52>>2]|0,C,c[(C&p)+72>>2]|0)|0;Bg(c[(C&p)+68>>2]|0);if(!u)A=J;else{A=0;break}}H=((c[2514]|0)>>>0)/((c[(K&p)+32>>2]|0)>>>0)|0;F=H+1|0;I=K+36|0;while(1){C=J+-1|0;if((C|0)==(F|0)){J=C;continue}if(C>>>0<2)E=0;else{E=J+-3|0;E=E-((E>>>0)%(((((c[(I&p)>>2]|0)>>>0)/5|0)+1|0)>>>0)|0)|0;E=((E+1|0)==(H|0)?3:2)+E|0}if((E|0)==(C|0))J=C;else break}u=Dg(M,4,C)|0}else A=0}else{u=262;A=0}while(0);b[(O&o)>>1]=4;V=L;c[(V&p)>>2]=A;c[(V&p)+4>>2]=((A|0)<0)<<31>>31;if((u|0)==0&(A|0)!=0){g=m;K=N;C=P;m=r;u=L;r=t;ie=865;break d}else{C=L;T=t}break}case 118:{c[(jd&p)>>2]=0;g=s+(t*20|0)+12|0;u=Xm(c[((c[(Xd&p)>>2]|0)+(c[(s+(t*20|0)&p)+8>>2]<<4)&p)+4>>2]|0,c[(s+(t*20|0)&p)+4>>2]|0,(c[(g&p)>>2]|0)!=0?jd:0)|0;g=c[(g&p)>>2]|0;if((g|0)!=0?(Ic=c[(jd&p)>>2]|0,c[(ub&p)>>2]=(c[(ub&p)>>2]|0)+Ic,(g|0)>0):0){C=z+(g*40|0)|0;T=C;T=jw(c[(T&p)>>2]|0,c[(T&p)+4>>2]|0,Ic|0,((Ic|0)<0)<<31>>31|0)|0;c[(C&p)>>2]=T;c[(C&p)+4>>2]=G;C=L;T=t}else{C=L;T=t}break}case 121:case 120:{c[(vd&p)>>2]=0;u=Am(c[((c[(Xd&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<4)&p)+4>>2]|0,vd,J<<24>>24==121?1:2)|0;T=c[(vd&p)>>2]|0;C=L;c[(C&p)>>2]=T;c[(C&p)+4>>2]=((T|0)<0)<<31>>31;C=L;T=t;break}case 119:{g=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;u=c[(g&p)+56>>2]|0;if(u){g=m;m=r;J=L;r=t;ie=878;break d}u=c[(g&p)>>2]|0;C=L;T=t;u=Xm(c[(u&p)>>2]|0,c[(u&p)+60>>2]|0,0)|0;break}case 123:{C=L;T=t;u=an(le,c[(s+(t*20|0)&p)+4>>2]|0)|0;break}case 124:{g=m;m=r;u=L;r=t;ie=886;break d}case 122:{g=m;m=r;J=L;r=t;ie=881;break d}case 126:{g=m;m=r;u=L;r=t;ie=895;break d}case 125:{g=m;m=r;J=L;r=t;ie=887;break d}case 127:{g=m;m=r;u=L;ie=903;break d}case 128:{g=m;m=r;J=L;ie=947;break d}case 129:{w=c[(s+(t*20|0)&p)+4>>2]|0;v=z+(w*40|0)|0;w=z+(w*40|0)+8|0;g=b[(w&o)>>1]|0;do if(g&32){E=c[(v&p)>>2]|0;u=E+26|0;g=b[(u&o)>>1]|0;if(!(g&2)){if(!(g&1)){g=E+8|0;c[(g&p)>>2]=kn(c[(g&p)>>2]|0)|0;g=b[(u&o)>>1]|0}b[(u&o)>>1]=g&65535|2}C=E+8|0;A=c[(C&p)>>2]|0;if(!A){g=b[(w&o)>>1]|0;break}w=A;v=c[(w&p)>>2]|0;w=c[(w&p)+4>>2]|0;V=c[(A&p)+8>>2]|0;c[(C&p)>>2]=V;if(!V)Zk(E);u=c[(s+(t*20|0)&p)+12>>2]|0;g=z+(u*40|0)|0;u=z+(u*40|0)+8|0;if(!(b[(u&o)>>1]&9312)){ie=g;c[(ie&p)>>2]=v;c[(ie&p)+4>>2]=w;b[(u&o)>>1]=4;u=0;ie=19;break e}else{Zg(g,v,w);u=0;ie=19;break e}}while(0);if(!(g&9312))b[(w&o)>>1]=1;else vg(v);t=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;u=0;ie=19;break}case 130:{g=m;m=r;u=L;ie=966;break d}case 131:{g=m;m=r;u=L;r=t;ie=993;break d}case 132:{g=m;m=r;u=L;r=t;ie=1009;break d}case 134:{g=m;m=r;J=L;r=t;ie=1010;break d}case 135:{g=m;m=r;u=L;r=t;ie=1015;break d}case 136:{g=m;m=r;r=t;ie=1022;break d}case 137:{g=m;m=r;u=L;r=t;ie=1028;break d}case 138:{g=m;m=r;u=L;r=t;ie=1030;break d}case 139:{g=m;m=r;J=L;r=t;ie=1032;break d}case 140:{g=m;m=r;u=L;r=t;ie=1034;break d}case 141:{g=m;m=r;u=L;r=t;ie=1036;break d}case 10:{V=a[(s+(t*20|0)&n)+3>>0]|0;g=V&255;u=c[(Bb&p)>>2]|0;if(V<<24>>24){v=0;w=z+((c[(s+(t*20|0)&p)+8>>2]|0)*40|0)|0;while(1){c[(u+(v<<2)&p)>>2]=w;v=v+1|0;if((v|0)>=(g|0))break;else w=w+40|0}}V=c[(s+(t*20|0)&p)+16>>2]|0;c[(Ga&p)>>2]=V;U=c[(s+(t*20|0)&p)+12>>2]|0;c[(Ha&p)>>2]=z+(U*40|0);U=z+(U*40|0)+12|0;c[(U&p)>>2]=(c[(U&p)>>2]|0)+1;b[(Ia&o)>>1]=1;c[(Ja&p)>>2]=le;c[(Ka&p)>>2]=0;c[(Vc&p)>>2]=Md;c[(La&p)>>2]=0;c[(Ma&p)>>2]=f;c[(Na&p)>>2]=t;a[(Oa&n)>>0]=0;mc[c[(V&p)+16>>2]&63](Vc,g,u);if(!(c[(La&p)>>2]|0))u=0;else{c[(ke&p)>>2]=Sg(Md,1)|0;dh(je,le,10344,ke);u=c[(La&p)>>2]|0}do if((a[(Oa&n)>>0]|0)!=0?(Mc=c[(s+((t+-1|0)*20|0)&p)+4>>2]|0,(Mc|0)!=0):0){g=z+(Mc*40|0)|0;v=z+(Mc*40|0)+8|0;if(!(b[(v&o)>>1]&9312)){V=g;c[(V&p)>>2]=1;c[(V&p)+4>>2]=0;b[(v&o)>>1]=4;break}else{Zg(g,1,0);break}}while(0);if((b[(Ia&o)>>1]&9312)==0&(c[(Ka&p)>>2]|0)==0){C=L;T=t}else{Qg(Md);C=L;T=t}break}case 11:{c[(Rc&p)>>2]=0;c[(Pa&p)>>2]=-1;c[(Qa&p)>>2]=-1;g=Wh(le,c[(s+(t*20|0)&p)+4>>2]|0,c[(s+(t*20|0)&p)+8>>2]|0,Qa,Pa)|0;if((g|0)==5){c[(Rc&p)>>2]=1;g=0}v=0;w=z+((c[(s+(t*20|0)&p)+12>>2]|0)*40|0)|0;while(1){C=c[(Rc+(v<<2)&p)>>2]|0;A=((C|0)<0)<<31>>31;u=w+8|0;if(!(b[(u&o)>>1]&9312)){V=w;c[(V&p)>>2]=C;c[(V&p)+4>>2]=A;b[(u&o)>>1]=4}else Zg(w,C,A);v=v+1|0;if((v|0)==3){C=L;T=t;u=g;break}else w=w+40|0}break}case 142:{C=c[(s+(t*20|0)&p)+4>>2]|0;v=z+(C*40|0)|0;u=Yk(v,c[(s+(t*20|0)&p)+16>>2]|0)|0;if(u){c[(ke&p)>>2]=Sg(v,1)|0;dh(je,le,10344,ke)}Yl(v,xb)|0;w=e[(z+(C*40|0)&o)+8>>1]|0;if(w&18){g=c[(z+(C*40|0)&p)+12>>2]|0;if(w&16384)g=(c[(v&p)>>2]|0)+g|0;if((g|0)>(c[((c[(z+(C*40|0)&p)+32>>2]|0)&p)+88>>2]|0)){g=m;m=r;u=x;ie=1316;break c}else{C=L;T=t}}else{C=L;T=t}break}case 12:{g=c[(s+(t*20|0)&p)+12>>2]|0;L=c[((c[(Xd&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<4)&p)+4>>2]|0;I=c[(c[(L&p)+4>>2]&p)>>2]|0;J=a[(I&n)+5>>0]|0;H=J&255;g=(g|0)==-1?H:g;do if((d[(I&n)+16>>0]|0)>2)g=H;else if((c[(c[(I&p)+64>>2]&p)>>2]|0)!=0?(V=I+72|0,U=c[(V&p)+4>>2]|0,(U|0)>0|(U|0)==0&(c[(V&p)>>2]|0)>>>0>0):0){g=H;break}while(0);if(!(a[(I&n)+15>>0]|0))A=c[(I&p)+168>>2]|0;else A=10360;K=(g|0)==5;if(K)if(A){C=A;while(1)if(!(a[(C&n)>>0]|0))break;else C=C+1|0;if(C-A&1073741823){C=c[(c[(I&p)+60>>2]&p)>>2]|0;if(!(a[(I&n)+4>>0]|0))if((c[(C&p)>>2]|0)>1?!((c[(C&p)+52>>2]|0)==0|(g|0)==(H|0)):0)ie=1077;else{g=H;u=0}else ie=1076}else{g=H;u=0}}else{g=H;u=0}else ie=1076;if((ie|0)==1076){ie=0;if((g|0)==(H|0)){g=H;u=0}else ie=1077}do if((ie|0)==1077){ie=0;C=J<<24>>24==5;if(C|K){if(!(a[(ee&n)>>0]|0)){g=m;s=K;m=r;u=x;ie=1080;break c}if((c[(Zb&p)>>2]|0)>1){g=m;s=K;m=r;u=x;ie=1080;break c}if(!C){if(J<<24>>24==4)sn(I,2)|0}else{J=I+208|0;if(!(c[(J&p)>>2]|0)){c[(_c&p)>>2]=0;u=fl(I,1)|0;if(u)break;u=c[(I&p)>>2]|0;u=pc[c[(u&p)+32>>2]&31](u,c[(I&p)+212>>2]|0,0,_c)|0;if((u|0)==0&(c[(_c&p)>>2]|0)!=0)u=pn(I)|0;if(u)break;if(c[(J&p)>>2]|0)ie=1088}else ie=1088;if((ie|0)==1088){ie=0;u=qn(I)|0;if(u)break;u=rn(c[(J&p)>>2]|0,d[(I&n)+9>>0]|0,c[(I&p)+152>>2]|0,c[(I&p)+200>>2]|0)|0;c[(J&p)>>2]=0;if(u)break}sn(I,g)|0}u=Fg(L,K?2:1)|0}else u=0}while(0);g=sn(I,(u|0)==0?g:H)|0;C=c[(s+(t*20|0)&p)+8>>2]|0;J=z+(C*40|0)|0;b[(z+(C*40|0)&o)+8>>1]=2562;if((g|0)==6){c[(z+(C*40|0)&p)+16>>2]=0;g=0}else{v=c[(g<<2&p)+32216>>2]|0;c[(z+(C*40|0)&p)+16>>2]=v;g=v;while(1)if(!(a[(g&n)>>0]|0))break;else g=g+1|0;g=g-v&1073741823}c[(z+(C*40|0)&p)+12>>2]=g;a[(z+(C*40|0)&n)+10>>0]=1;Yl(J,xb)|0;C=J;T=t;break}case 13:{if(!(a[(ee&n)>>0]|0)){g=m;m=r;u=x;ie=1101;break c}if((c[(Ra&p)>>2]|0)>1){g=m;m=r;u=x;ie=1103;break c}S=c[(Tb&p)>>2]|0;N=c[(vb&p)>>2]|0;w=c[(wb&p)>>2]|0;v=c[(Sa&p)>>2]|0;c[(Tb&p)>>2]=S&-2762753|2107392;c[(Sa&p)>>2]=0;g=c[((c[(Xd&p)>>2]|0)&p)+4>>2]|0;P=g+4|0;I=a[((c[(c[(P&p)>>2]&p)>>2]|0)&n)+15>>0]|0;V=c[(Ub&p)>>2]|0;u=tn(le,je,(a[(_b&n)>>0]|0)==2?42432:42464)|0;J=c[(Ub&p)>>2]|0;if((J|0)>(V|0))M=(c[(Xd&p)>>2]|0)+(J+-1<<4)|0;else M=0;i:do if(!u){O=c[((c[(Xd&p)>>2]|0)+(J+-1<<4)&p)+4>>2]|0;un(O)|0;T=c[(P&p)>>2]|0;c[(T&p)+4>>2]=c[(g&p)>>2];T=(c[(T&p)+32>>2]|0)-(c[(T&p)+36>>2]|0)|0;u=tn(le,je,42488)|0;if(!u){u=tn(le,je,42528)|0;if(!u){u=yg(g,2)|0;if(!u){J=c[(P&p)>>2]|0;if((a[((c[(J&p)>>2]|0)&n)+5>>0]|0)==5)c[(Ta&p)>>2]=0;if(!(xg(O,c[(J&p)+32>>2]|0,T,0)|0)){if(I<<24>>24==0?(xg(O,c[(Ta&p)>>2]|0,T,0)|0)!=0:0){u=7;break}if(a[(ge&n)>>0]|0){u=7;break}J=a[(Ua&n)>>0]|0;do if(J<<24>>24>-1)J=J<<24>>24;else{J=c[(P&p)>>2]|0;c[(J&p)+4>>2]=c[(g&p)>>2];if(!(a[(J&n)+17>>0]|0)){J=0;break}J=(a[(J&n)+18>>0]|0)==0?1:2}while(0);vn(O,J)|0;u=wn(le,je,42536)|0;if(u)break;u=wn(le,je,42688)|0;if(u)break;u=wn(le,je,42792)|0;if(u)break;u=wn(le,je,42912)|0;if(u)break;u=wn(le,je,43112)|0;if(u)break;u=wn(le,je,43232)|0;if(u)break;u=tn(le,je,43392)|0;if(!u)J=0;else break;do{u=d[(J&n)+43576>>0]|0;wm(g,u,ad);u=Dg(O,u,(d[((J|1)&n)+43576>>0]|0)+(c[(ad&p)>>2]|0)|0)|0;J=J+2|0;if(u)break i}while((J|0)<10);H=c[(P&p)>>2]|0;c[(H&p)+4>>2]=c[(g&p)>>2];J=c[(O&p)>>2]|0;K=O+4|0;I=c[(K&p)>>2]|0;c[(I&p)+4>>2]=J;H=c[((c[(H&p)>>2]|0)&p)+60>>2]|0;F=c[(H&p)>>2]|0;if(F){V=c[(I&p)+32>>2]|0;V=sw(c[(I&p)+44>>2]|0,0,V|0,((V|0)<0)<<31>>31|0)|0;u=id;c[(u&p)>>2]=V;c[(u&p)+4>>2]=G;u=ac[c[(F&p)+40>>2]&63](H,11,id)|0;u=(u|0)==12?0:u;if(u)break;J=c[(O&p)>>2]|0}U=Tc+0|0;V=U+48|0;do{c[(U&p)>>2]=0;U=U+4|0}while((U|0)<(V|0));c[(Va&p)>>2]=J;c[(Wa&p)>>2]=O;c[(Xa&p)>>2]=g;c[(Ya&p)>>2]=1;gd(Tc,2147483647)|0;u=hd(Tc)|0;if(u){C=c[(c[((c[(Xa&p)>>2]|0)&p)+4>>2]&p)>>2]|0;if(a[(C&n)+15>>0]|0)break;if(a[(C&n)+12>>0]|0)break;xn(C);break}u=(c[(P&p)>>2]|0)+22|0;b[(u&o)>>1]=e[(u&o)>>1]&65533;u=un(O)|0;if(u)break;J=c[(K&p)>>2]|0;c[(J&p)+4>>2]=c[(O&p)>>2];if(!(a[(J&n)+17>>0]|0))E=0;else E=(a[(J&n)+18>>0]|0)==0?1:2;vn(g,E)|0;u=xg(g,c[((c[(K&p)>>2]|0)&p)+32>>2]|0,T,1)|0}else u=7}}}}while(0);c[(Tb&p)>>2]=S;c[(vb&p)>>2]=N;c[(wb&p)>>2]=w;c[(Sa&p)>>2]=v;xg(g,-1,-1,1)|0;a[(ee&n)>>0]=1;if(M){V=M+4|0;Ml(c[(V&p)>>2]|0);c[(V&p)>>2]=0;c[(M&p)+12>>2]=0}Eg(le);C=L;T=t;break}case 143:{V=c[((c[(Xd&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<4)&p)+4>>2]|0;I=c[(V&p)+4>>2]|0;c[(I&p)+4>>2]=c[(V&p)>>2];if(!(a[(I&n)+17>>0]|0)){g=m;m=r;u=L;ie=1157;break d}E=I+44|0;H=c[(E&p)>>2]|0;A=I+12|0;C=c[((c[(A&p)>>2]|0)&p)+56>>2]|0;C=d[(C&n)+37>>0]<<16|d[(C&n)+36>>0]<<24|d[(C&n)+38>>0]<<8|d[(C&n)+39>>0];F=El(I,H,C)|0;if(H>>>0>>0){g=m;m=r;u=x;ie=1145;break c}if(!C){g=m;m=r;u=L;ie=1157;break d}J=I+8|0;g=c[(J&p)>>2]|0;do if(g){C=g;do{if(C){ie=1150;break}C=c[2]|0}while((C|0)!=0);if((ie|0)==1150){ie=0;u=Fl(C,0,0)|0;if(u)break;g=c[(J&p)>>2]|0}if(g){do{V=g+72|0;a[(V&n)>>0]=d[(V&n)>>0]&251;g=c[(g&p)+8>>2]|0}while((g|0)!=0);ie=1154}else ie=1154}else ie=1154;while(0);if((ie|0)==1154){ie=0;u=Gl(I,F,H,0)|0;if(!u){u=Gg(c[((c[(A&p)>>2]|0)&p)+68>>2]|0)|0;V=c[((c[(A&p)>>2]|0)&p)+56>>2]|0;U=c[(E&p)>>2]|0;a[(V&n)+28>>0]=U>>>24;a[(V&n)+29>>0]=U>>>16;a[(V&n)+30>>0]=U>>>8;a[(V&n)+31>>0]=U}}if((u|0)==101){g=m;m=r;u=L;ie=1157;break d}else{C=L;T=t}break}case 145:{g=c[(s+(t*20|0)&p)+12>>2]|0;if((g&255|0)==0?(c[(Tb&p)>>2]&16384|0)!=0:0){g=m;m=r;S=z;T=s;U=W;V=X;u=L;r=t;break d}C=c[((c[(Xd&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<4)&p)+4>>2]|0;A=c[(s+(t*20|0)&p)+8>>2]|0;if(!(a[(C&n)+9>>0]|0)){g=m;m=r;S=z;T=s;U=W;V=X;u=L;r=t;break d}v=g+1&255;w=C+4|0;c[((c[(w&p)>>2]|0)&p)+4>>2]=c[(C&p)>>2];u=bl(C,A,v)|0;if(!u){g=m;m=r;u=L;r=t;ie=1166;break d}if((u&255|0)!=6){g=m;m=r;s=u;u=x;ie=1309;break c}c[(ke&p)>>2]=c[(s+(t*20|0)&p)+16>>2];dh(je,le,42224,ke);C=L;T=t;break}case 144:{g=m;m=r;u=L;r=t;ie=1158;break d}case 146:{J=c[(s+(t*20|0)&p)+16>>2]|0;v=c[(Za&p)>>2]|0;u=(v|0)>0;if(u?(c[(_a&p)>>2]|0)==0:0){u=6;ie=1188}else ie=1179;j:do if((ie|0)==1179){ie=0;if(!J){g=m;m=r;S=z;T=s;U=W;V=X;u=L;r=t;break d}g=J+8|0;w=(c[(c[(g&p)>>2]&p)>>2]|0)+56|0;if(c[(w&p)>>2]|0){if(u){C=c[(_a&p)>>2]|0;A=0;do{if((c[(C+(A<<2)&p)>>2]|0)==(J|0)){u=0;ie=1188;break j}A=A+1|0}while((A|0)<(v|0))}u=yn(le)|0;if(!u){u=lc[c[(w&p)>>2]&127](c[(g&p)>>2]|0)|0;if(!u){u=c[(Za&p)>>2]|0;c[(Za&p)>>2]=u+1;c[((c[(_a&p)>>2]|0)+(u<<2)&p)>>2]=J;u=J+12|0;c[(u&p)>>2]=(c[(u&p)>>2]|0)+1;u=0}}else ie=1188}else u=0}while(0);if((ie|0)==1188){ie=0;if(!J){C=L;T=t;break e}g=J+8|0}Mm(f,c[(g&p)>>2]|0);C=L;T=t;break}case 147:{U=Kd+0|0;V=U+40|0;do{c[(U&p)>>2]=0;U=U+4|0}while((U|0)<(V|0));c[($a&p)>>2]=le;g=_g(Kd,z+((c[(s+(t*20|0)&p)+8>>2]|0)*40|0)|0)|0;u=Sg(Kd,1)|0;k:do if(u){v=_h(le,u,c[((c[(Xd&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<4)&p)>>2]|0)|0;g=c[(c[(v&p)+56>>2]&p)>>2]|0;u=bn(cb,g,Xc)|0;if((u|0)!=0?(Oc=c[(u&p)+8>>2]|0,(Oc|0)!=0):0){g=zn(le,v,Oc,c[((c[(Oc&p)>>2]|0)&p)+4>>2]|0,je)|0;if(g)break;u=v+60|0;g=c[(u&p)>>2]|0;if(!g){g=0;break}while(1){if((c[(g&p)>>2]|0)==(le|0))break;g=c[(g&p)+24>>2]|0;if(!g){g=0;break k}}g=yn(le)|0;if(g)break;g=c[(u&p)>>2]|0;l:do if(!g)g=0;else while(1){if((c[(g&p)>>2]|0)==(le|0))break l;g=c[(g&p)+24>>2]|0;if(!g){g=0;break}}while(0);V=c[(Za&p)>>2]|0;c[(Za&p)>>2]=V+1;c[((c[(_a&p)>>2]|0)+(V<<2)&p)>>2]=g;g=g+12|0;c[(g&p)>>2]=(c[(g&p)>>2]|0)+1;g=0;break}c[(ke&p)>>2]=g;c[(je&p)>>2]=uh(le,28320,ke)|0;g=1}while(0);if((b[(ab&o)>>1]&9312)==0&(c[(bb&p)>>2]|0)==0){C=L;T=t;u=g}else{Qg(Kd);C=L;T=t;u=g}break}case 148:{c[(ha&p)>>2]=(c[(ha&p)>>2]|0)+1;g=_h(le,c[(s+(t*20|0)&p)+16>>2]|0,c[((c[(Xd&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<4)&p)>>2]|0)|0;m:do if((g|0)!=0?(Pc=g+60|0,Qc=c[(Pc&p)>>2]|0,(Qc|0)!=0):0){u=Qc;do{if((c[((c[(u&p)+8>>2]|0)&p)+4>>2]|0)>0){u=6;break m}u=c[(u&p)+24>>2]|0}while((u|0)!=0);g=Ok(le,g)|0;v=g+8|0;u=lc[c[((c[(c[(g&p)+4>>2]&p)>>2]|0)&p)+20>>2]&127](c[(v&p)>>2]|0)|0;if(!u){c[(v&p)>>2]=0;c[(Pc&p)>>2]=0;An(g);u=0}}else u=0;while(0);c[(ha&p)>>2]=(c[(ha&p)>>2]|0)+-1;C=L;T=t;break}case 149:{g=m;m=r;u=L;r=t;ie=1213;break d}case 150:{g=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;C=c[(s+(t*20|0)&p)+12>>2]|0;A=z+(C*40|0)|0;if(a[(g&n)+25>>0]|0){g=m;m=r;u=L;r=t;ie=1226;break d}V=g+32|0;u=c[(c[(V&p)>>2]&p)>>2]|0;U=c[(u&p)>>2]|0;c[(Id&p)>>2]=0;c[(Id&p)+4>>2]=0;c[(Id&p)+8>>2]=0;c[(Id&p)+12>>2]=0;c[(Id&p)+16>>2]=0;c[(Id&p)+20>>2]=0;c[(Id&p)+24>>2]=0;c[(Id&p)>>2]=A;v=z+(C*40|0)+8|0;b[(v&o)>>1]=e[(v&o)>>1]&48640|1;V=ac[c[(U&p)+44>>2]&63](c[(V&p)>>2]|0,Id,c[(s+(t*20|0)&p)+8>>2]|0)|0;Mm(f,u);u=c[(db&p)>>2]|0;u=(u|0)==0?V:u;Yl(A,xb)|0;v=e[(v&o)>>1]|0;if(v&18){g=c[(z+(C*40|0)&p)+12>>2]|0;if(v&16384)g=(c[(A&p)>>2]|0)+g|0;if((g|0)>(c[((c[(z+(C*40|0)&p)+32>>2]|0)&p)+88>>2]|0)){g=m;m=r;u=x;ie=1316;break c}else{C=L;T=t}}else{C=L;T=t}break}case 14:{A=c[(s+(t*20|0)&p)+12>>2]|0;C=A+1|0;F=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;J=c[(F&p)+32>>2]|0;I=c[(J&p)>>2]|0;H=c[(I&p)>>2]|0;E=c[(z+(C*40|0)&p)>>2]|0;A=c[(z+(A*40|0)&p)>>2]|0;g=c[(Bb&p)>>2]|0;if((E|0)>0){u=0;do{V=u;u=u+1|0;c[(g+(V<<2)&p)>>2]=z+((u+C|0)*40|0)}while((u|0)!=(E|0))}u=tc[c[(H&p)+32>>2]&31](J,A,c[(s+(t*20|0)&p)+16>>2]|0,E,g)|0;Mm(f,I);if((u|0)==0?(lc[c[(H&p)+40>>2]&127](J)|0)!=0:0)t=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;a[(F&n)+25>>0]=0;C=L;T=t;break}case 151:{g=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;if(a[(g&n)+25>>0]|0){g=m;m=r;S=z;T=s;U=W;V=X;u=L;r=t;break d}g=g+32|0;v=c[(g&p)>>2]|0;V=c[(v&p)>>2]|0;u=c[(V&p)>>2]|0;v=lc[c[(u&p)+36>>2]&127](v)|0;Mm(f,V);if((v|0)==0?(lc[c[(u&p)+40>>2]&127](c[(g&p)>>2]|0)|0)!=0:0){u=0;ie=19;break e}t=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;u=v;ie=19;break}case 15:{F=s+(t*20|0)+16|0;v=c[((c[(F&p)>>2]|0)&p)+8>>2]|0;if(!v){g=m;m=r;s=6;u=x;ie=1309;break c}g=c[(v&p)>>2]|0;if(!g){g=m;m=r;s=6;u=x;ie=1309;break c}I=c[(s+(t*20|0)&p)+8>>2]|0;E=g+52|0;C=c[(E&p)>>2]|0;if(!C){g=m;m=r;S=z;T=s;U=W;V=X;u=L;r=t;break d}H=a[(eb&n)>>0]|0;J=c[(Bb&p)>>2]|0;if((I|0)>0){C=0;A=z+((c[(s+(t*20|0)&p)+12>>2]|0)*40|0)|0;while(1){c[(J+(C<<2)&p)>>2]=A;C=C+1|0;if((C|0)==(I|0))break;else A=A+40|0}C=c[(E&p)>>2]|0}A=s+(t*20|0)+3|0;a[(eb&n)>>0]=a[(A&n)>>0]|0;u=pc[C&31](v,I,J,Hd)|0;a[(eb&n)>>0]=H;Mm(f,v);if(!u){if(c[(s+(t*20|0)&p)+4>>2]|0){l=Hd;r=c[(l&p)>>2]|0;l=c[(l&p)+4>>2]|0;V=ne;c[(V&p)>>2]=r;c[(V&p)+4>>2]=l}}else if((u&255|0)==19?(a[((c[(F&p)>>2]|0)&n)+16>>0]|0)!=0:0){g=a[(A&n)>>0]|0;if(g<<24>>24==5)g=2;else if(g<<24>>24==4){g=m;m=r;S=z;T=s;U=W;V=X;u=L;r=t;break d}a[(fe&n)>>0]=g;C=L;T=t;break e}c[(ub&p)>>2]=(c[(ub&p)>>2]|0)+1;C=L;T=t;break}case 152:{g=c[((c[(s+(t*20|0)&p)+16>>2]|0)&p)+8>>2]|0;u=c[(s+(t*20|0)&p)+4>>2]|0;v=z+(u*40|0)|0;if(((b[(z+(u*40|0)&o)+8>>1]&2)!=0?(a[(z+(u*40|0)&n)+10>>0]|0)!=1:0)?(Wd=Bn(v,1)|0,(Wd|0)!=0):0){g=m;m=r;s=Wd;u=x;ie=1309;break c}u=rc[c[((c[(g&p)>>2]|0)&p)+76>>2]&127](g,c[(z+(u*40|0)&p)+16>>2]|0)|0;Mm(f,g);b[(Yd&o)>>1]=b[(Yd&o)>>1]&-9;C=L;T=t;break}case 153:{g=m;m=r;u=L;r=t;ie=1257;break d}case 155:{g=m;m=r;ie=1264;break d}case 154:{g=m;m=r;J=L;r=t;ie=1258;break d}default:{g=m;m=r;S=z;T=s;U=W;V=X;u=L;r=t;break d}}while(0);n:do if((ie|0)==57){ie=0;w=L+8|0;b[(w&o)>>1]=2562;c[(L&p)+16>>2]=v;c[(L&p)+12>>2]=g;a[(L&n)+10>>0]=Jc;if((a[(s+(t*20|0)&n)+3>>0]|0)!=0?(V=z+((c[(s+(t*20|0)&p)+12>>2]|0)*40|0)|0,!((c[(V&p)>>2]|0)==0&(c[(V&p)+4>>2]|0)==0)):0){b[(w&o)>>1]=2576;C=L;T=t}else{C=L;T=t}}else if((ie|0)==536){if(b[(Yd&o)>>1]&8){g=m;m=r;s=516;u=x;ie=1309;break c}C=c[(s+(t*20|0)&p)+8>>2]|0;I=c[(s+(t*20|0)&p)+12>>2]|0;g=c[(Xd&p)>>2]|0;H=c[(g+(I<<4)&p)+4>>2]|0;if(J<<24>>24==55){g=a[((c[(g+(I<<4)&p)+12>>2]|0)&n)+76>>0]|0;if((g&255)<(d[(Mb&n)>>0]|0)){a[(Mb&n)>>0]=g;J=1}else J=1}else J=0;v=s+(t*20|0)+3|0;if(a[(v&n)>>0]&4){V=z+(C*40|0)|0;g=Vg(V)|0;c[(V&p)>>2]=g;c[(V&p)+4>>2]=G;V=z+(C*40|0)+8|0;b[(V&o)>>1]=e[(V&o)>>1]&48640|4;if((g|0)<2){g=m;m=r;s=x;ie=542;break c}else E=g}else E=C;u=s+(t*20|0)+1|0;C=a[(u&n)>>0]|0;if(C<<24>>24==-6){A=c[(s+(t*20|0)&p)+16>>2]|0;C=(e[(A&o)+8>>1]|0)+(e[(A&o)+6>>1]|0)|0}else if(C<<24>>24==-14){C=c[(s+(t*20|0)&p)+16>>2]|0;A=0}else{C=0;A=0}g=xm(f,c[(s+(t*20|0)&p)+4>>2]|0,C,I,1)|0;if(!g){y=ge;z=je;g=m;m=x;ie=1317;break a}a[(g&n)+25>>0]=1;V=g+27|0;a[(V&n)>>0]=a[(V&n)>>0]|8;c[(g&p)+28>>2]=E;ie=ym(H,E,J,A,c[(g&p)>>2]|0)|0;c[(g&p)+8>>2]=A;a[(V&n)>>0]=((a[(u&n)>>0]|0)!=-6&1)<<2&255|a[(V&n)>>0]&-5;u=ie;ie=548}else if((ie|0)==715){ie=0;M=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;V=c[(M&p)+56>>2]|0;do if(!V){u=c[(M&p)>>2]|0;g=qm(u)|0;if(!g)if(!(a[(u&n)+73>>0]|0)){v=1;g=0}else{v=0;g=Vm(u)|0}else v=1;a[(M&n)+26>>0]=0;c[(M&p)+60>>2]=0;a[(M&n)+25>>0]=v;if(!v){C=L;T=t;u=g;break n}}else{do if(!(a[(V&n)+56>>0]|0)){g=V+36|0;if(!(c[(g&p)>>2]|0)){g=0;ie=756}else{g=Nm(V+64|0,g)|0;ie=755}}else{g=Om(V)|0;if(!g){U=V+59|0;o:do if(!(a[(U&n)>>0]|0)){u=0;g=0}else{w=0;v=0;p:while(1){T=V+(w<<6)+64|0;c[(ke&p)>>2]=0;S=V+(w<<6)+92|0;C=c[(S&p)>>2]|0;J=((C|0)<0)<<31>>31;do if((C|0)>16){I=16;H=0;E=0;while(1){I=iw(I|0,H|0,4)|0;H=G;F=E+1|0;if(!((H|0)<(J|0)|(H|0)==(J|0)&I>>>0>>0)){H=E;break}else E=F}P=Sd;c[(P&p)>>2]=0;c[(P&p)+4>>2]=0;if((C|0)<17){ie=726;break}u=Qm(16)|0;c[(ke&p)>>2]=u;J=(u|0)==0;I=c[(S&p)>>2]|0;if(!((I|0)>0&(J^1))){g=J?7:0;break}N=(H|0)>0;P=0;O=0;do{c[(qd&p)>>2]=0;g=I-P|0;g=Pm(T,(g|0)<16?g:16,Sd,qd)|0;if(g){ie=747;break p}g=Rm(T,c[(qd&p)>>2]|0,pd)|0;do if(N){I=1;J=1;do{J=J<<4;I=I+1|0}while((I|0)!=(F|0));if(!g){H=1;I=u}else{J=c[(pd&p)>>2]|0;ie=743;break}while(1){K=(c[(I&p)+12>>2]|0)+((((O|0)/(J|0)|0|0)%16|0)*56|0)+48|0;I=c[(K&p)>>2]|0;if(!I){I=Qm(16)|0;if(!I){g=7;ie=738;break}g=Rm(T,I,K)|0;if(g){ie=738;break}I=c[(K&p)>>2]|0}I=c[(I&p)+4>>2]|0;H=H+1|0;if((H|0)>=(F|0)){ie=740;break}else J=(J|0)/16|0}if((ie|0)==738){J=c[(pd&p)>>2]|0;ie=743;break}else if((ie|0)==740){J=c[(pd&p)>>2]|0;ie=742;break}}else{J=c[(pd&p)>>2]|0;if(!g){I=u;ie=742}else ie=743}while(0);if((ie|0)==742){ie=0;c[((c[(I&p)+12>>2]|0)+(((O|0)%16|0)*56|0)&p)+48>>2]=J;g=0}else if((ie|0)==743){ie=0;Sm(J)}O=O+1|0;P=P+16|0;I=c[(S&p)>>2]|0}while((P|0)<(I|0)&(g|0)==0)}else{ie=Sd;c[(ie&p)>>2]=0;c[(ie&p)+4>>2]=0;ie=726}while(0);if((ie|0)==726){ie=0;g=Pm(T,C,Sd,ke)|0;u=c[(ke&p)>>2]|0}w=w+1|0;if(g){ie=746;break}if((w|0)>=(d[(U&n)>>0]|0)){g=0;break o}else v=u}if((ie|0)==746)Tm(u);else if((ie|0)==747)Tm(u);Tm(v);u=0}while(0);if(!g){g=Um(V+64|0,u)|0;c[(V&p)+20>>2]=u;if(!g){g=0;ie=755;break}else u=0}Tm(u);ie=755}else ie=756}while(0);if((ie|0)==755){ie=0;a[(M&n)+25>>0]=0;C=L;T=t;u=g;break n}else if((ie|0)==756){ie=0;a[(M&n)+25>>0]=1;break}}while(0);C=L;T=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;u=g}else if((ie|0)==765){u=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;c[(Fd&p)>>2]=c[(s+(t*20|0)&p)+12>>2];g=u;u=rc[c[(s+(t*20|0)&p)+16>>2]&127](c[(u&p)>>2]|0,Fd)|0;ie=766}while(0);do if((ie|0)==548){ie=0;a[((c[(g&p)>>2]|0)&n)+74>>0]=d[(v&n)>>0]&3;C=L;T=t}else if((ie|0)==766){c[(g&p)+60>>2]=0;g=g+25|0;if(!(c[(Fd&p)>>2]|0)){a[(g&n)>>0]=0;ie=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;t=f+(d[(s+(t*20|0)&n)+3>>0]<<2)+108|0;c[(t&p)>>2]=(c[(t&p)>>2]|0)+1;t=ie;ie=19;break}else{a[(g&n)>>0]=1;ie=19;break}}while(0);if((ie|0)==19){ie=0;if(c[(Cc&p)>>2]|0){u=je;g=m;m=x;break b}g=c[(be&p)>>2]|0;if(!((g|0)==0|m>>>0>>0)){y=c[(yc&p)>>2]|0;if(!(lc[g&127](c[(Zd&p)>>2]|0)|0)){y=y+m-((m>>>0)%(y>>>0)|0)|0;C=L;T=t}else{g=m;s=9;m=x;ie=1311;break a}}else{C=L;T=t}}t=T+1|0;if(!u){g=m;u=C}else{g=m;s=u;m=x;ie=1311;break a}}q:switch(ie|0){case 22:{ie=0;S=c[(s+(t*20|0)&p)+4>>2]|0;b[(z+(S*40|0)&o)+8>>1]=4;S=z+(S*40|0)|0;c[(S&p)>>2]=t;c[(S&p)+4>>2]=((t|0)<0)<<31>>31;S=z;T=s;U=W;V=X;r=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;break}case 23:{ie=0;S=c[(s+(t*20|0)&p)+4>>2]|0;r=c[(z+(S*40|0)&p)>>2]|0;b[(z+(S*40|0)&o)+8>>1]=128;S=z;T=s;U=W;V=X;break}case 24:{ie=0;r=c[(s+(t*20|0)&p)+4>>2]|0;u=z+(r*40|0)|0;T=(c[(s+(t*20|0)&p)+12>>2]|0)+-1|0;S=u;c[(S&p)>>2]=T;c[(S&p)+4>>2]=((T|0)<0)<<31>>31;b[(z+(r*40|0)&o)+8>>1]=4;r=c[(s+(t*20|0)&p)+8>>2]|0;S=z;T=s;U=W;V=X;r=(r|0)==0?t:r+-1|0;break}case 25:{ie=0;S=c[(s+(t*20|0)&p)+4>>2]|0;r=(c[(s+((c[(z+(S*40|0)&p)>>2]|0)*20|0)&p)+8>>2]|0)+-1|0;b[(z+(S*40|0)&o)+8>>1]=128;S=z;T=s;U=W;V=X;break}case 26:{ie=0;S=c[(s+(t*20|0)&p)+4>>2]|0;b[(z+(S*40|0)&o)+8>>1]=4;S=z+(S*40|0)|0;r=c[(S&p)>>2]|0;c[(S&p)>>2]=t;c[(S&p)+4>>2]=((t|0)<0)<<31>>31;S=z;T=s;U=W;V=X;break}case 27:{ie=0;if(!(b[(z+((c[(s+(r*20|0)&p)+12>>2]|0)*40|0)&o)+8>>1]&1)){S=z;T=s;U=W;V=X}else ie=28;break}case 44:{ie=0;T=c[(s+(r*20|0)&p)+4>>2]|0;S=u;c[(S&p)>>2]=T;c[(S&p)+4>>2]=((T|0)<0)<<31>>31;S=z;T=s;U=W;V=X;break}case 45:{ie=0;U=c[(s+(r*20|0)&p)+16>>2]|0;T=c[(U&p)+4>>2]|0;S=u;c[(S&p)>>2]=c[(U&p)>>2];c[(S&p)+4>>2]=T;S=z;T=s;U=W;V=X;break}case 46:{ie=0;b[(u&o)+8>>1]=8;h[(u&q)>>3]=+h[(c[(s+(r*20|0)&p)+16>>2]&q)>>3];S=z;T=s;U=W;V=X;break}case 60:{ie=0;J=(c[(s+(r*20|0)&p)+12>>2]|0)-(c[(s+(r*20|0)&p)+8>>2]|0)|0;t=(c[(s+(r*20|0)&p)+4>>2]|0)!=0?257:1;b[(u&o)+8>>1]=t;if((J|0)>0){w=J;A=u;do{v=A+48|0;A=A+40|0;if(!(b[(v&o)>>1]&9312))b[(v&o)>>1]=1;else vg(A);b[(v&o)>>1]=t;w=w+-1|0}while((w|0)>0);S=z;T=s;U=W;V=X;u=u+(J*40|0)|0}else{S=z;T=s;U=W;V=X}break}case 65:{ie=0;u=c[(s+(r*20|0)&p)+4>>2]|0;S=z+(u*40|0)+8|0;b[(S&o)>>1]=e[(S&o)>>1]&65406|1;S=z;T=s;U=W;V=X;u=z+(u*40|0)|0;break}case 66:{ie=0;Xg(u,c[(s+(r*20|0)&p)+16>>2]|0,c[(s+(r*20|0)&p)+4>>2]|0,0,0)|0;a[(u&n)+10>>0]=Jc;S=z;T=s;U=W;V=X;break}case 67:{ie=0;C=(c[(s+(r*20|0)&p)+4>>2]|0)+-1|0;A=c[(Ab&p)>>2]|0;w=A+(C*40|0)|0;v=e[(A+(C*40|0)&o)+8>>1]|0;if(v&18){t=c[(A+(C*40|0)&p)+12>>2]|0;if(v&16384)t=(c[(w&p)>>2]|0)+t|0;if((t|0)>(c[((c[(A+(C*40|0)&p)+32>>2]|0)&p)+88>>2]|0)){t=r;u=x;ie=1316;break c}}Zl(u,w,2048);S=z;T=s;U=W;V=X;break}case 72:{ie=0;t=c[(s+(r*20|0)&p)+12>>2]|0;v=c[(s+(r*20|0)&p)+8>>2]|0;J=t+v|0;u=z+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)|0;v=z+(v*40|0)|0;while(1){_l(v,u);t=t+-1|0;if(!t)break;else{u=u+40|0;v=v+40|0}}S=z;T=s;U=W;V=X;u=z+(J*40|0)|0;break}case 74:{ie=0;r=c[(s+(t*20|0)&p)+12>>2]|0;u=z+((c[(s+(t*20|0)&p)+4>>2]|0)*40|0)|0;J=z+((c[(s+(t*20|0)&p)+8>>2]|0)*40|0)|0;while(1){Zl(J,u,4096);if((b[(J&o)+8>>1]&4096)!=0?(Vl(J)|0)!=0:0){y=ge;z=je;r=m;m=x;ie=1317;break a}if(!r){S=z;T=s;U=W;V=X;u=J;r=t;break q}r=r+-1|0;u=u+40|0;J=J+40|0}}case 79:{ie=0;u=z+((c[(s+(r*20|0)&p)+8>>2]|0)*40|0)|0;Zl(u,z+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)|0,4096);S=z;T=s;U=W;V=X;break}case 94:{ie=0;K=c[(s+(t*20|0)&p)+4>>2]|0;J=z+(K*40|0)|0;L=c[(s+(t*20|0)&p)+8>>2]|0;I=z+(L*40|0)|0;M=c[(s+(t*20|0)&p)+12>>2]|0;u=z+(M*40|0)|0;H=z+(K*40|0)+8|0;E=b[(H&o)>>1]|0;F=z+(L*40|0)+8|0;C=b[(F&o)>>1]|0;if((C|E)&1){r=z+(M*40|0)+8|0;if(!(b[(r&o)>>1]&9312)){b[(r&o)>>1]=1;S=z;T=s;U=W;V=X;r=t;break}else{vg(u);S=z;T=s;U=W;V=X;r=t;break}}if(E&16384){if(Rg(J)|0){y=ge;z=je;r=m;m=x;ie=1317;break a}C=b[(F&o)>>1]|0}if((C&16384)!=0?(Rg(I)|0)!=0:0){y=ge;z=je;r=m;m=x;ie=1317;break a}if((b[(H&o)>>1]&18)==0?(bm(J,Jc,0)|0)!=0:0){y=ge;z=je;r=m;m=x;ie=1317;break a}if((b[(F&o)>>1]&18)==0?(bm(I,Jc,0)|0)!=0:0){y=ge;z=je;r=m;m=x;ie=1317;break a}E=z+(K*40|0)+12|0;A=z+(L*40|0)+12|0;r=(c[(A&p)>>2]|0)+(c[(E&p)>>2]|0)|0;if((r|0)>(c[(zb&p)>>2]|0)){u=x;ie=1316;break c}v=(M|0)==(L|0);if(eh(u,r+2|0,v&1)|0){y=ge;z=je;r=m;m=x;ie=1317;break a}w=z+(M*40|0)+8|0;b[(w&o)>>1]=e[(w&o)>>1]&48640|2;C=z+(M*40|0)+16|0;if(!v)kw(c[(C&p)>>2]|0,c[(z+(L*40|0)&p)+16>>2]|0,c[(A&p)>>2]|0)|0;kw((c[(C&p)>>2]|0)+(c[(A&p)>>2]|0)|0,c[(z+(K*40|0)&p)+16>>2]|0,c[(E&p)>>2]|0)|0;a[((c[(C&p)>>2]|0)+r&n)>>0]=0;a[((c[(C&p)>>2]|0)+r&n)+1>>0]=0;b[(w&o)>>1]=e[(w&o)>>1]|512;c[(z+(M*40|0)&p)+12>>2]=r;a[(z+(M*40|0)&n)+10>>0]=Jc;S=z;T=s;U=W;V=X;r=t;break}case 112:{ie=0;V=c[(s+(r*20|0)&p)+4>>2]|0;N=z+(V*40|0)|0;S=cm(N)|0;w=c[(s+(r*20|0)&p)+8>>2]|0;O=z+(w*40|0)|0;T=cm(O)|0;U=c[(s+(r*20|0)&p)+12>>2]|0;u=z+(U*40|0)|0;r:do if(!((b[(z+(w*40|0)&o)+8>>1]|b[(z+(V*40|0)&o)+8>>1])&1)){s:do if(!((S&4&T)<<16>>16))L=0;else{t=N;C=c[(t&p)>>2]|0;t=c[(t&p)+4>>2]|0;F=O;v=c[(F&p)>>2]|0;F=c[(F&p)+4>>2]|0;J=d[(P&n)>>0]|0;t:do if((J|0)==89){if((t|0)>-1|(t|0)==-1&C>>>0>4294967295){V=dw(-1,2147483647,v|0,F|0)|0;w=G;if(((F|0)>0|(F|0)==0&v>>>0>0)&((w|0)<(t|0)|(w|0)==(t|0)&V>>>0>>0)){L=1;break s}}else if((F|0)<0?(w=dw(1,-2147483648,v|0,F|0)|0,A=G,V=jw(C|0,t|0,1,0)|0,M=G,(A|0)>(M|0)|(A|0)==(M|0)&w>>>0>V>>>0):0){L=1;break s}v=jw(v|0,F|0,C|0,t|0)|0;t=G}else if((J|0)==91){L=qw(v|0,F|0,0,1)|0;K=G;E=rw(v|0,F|0,0,1)|0;A=G;J=qw(C|0,t|0,0,1)|0;I=G;M=rw(C|0,t|0,0,1)|0;w=G;V=jw(v|0,F|0,-1,0)|0;pe=G;H=jw(C|0,t|0,-1,0)|0;qe=G;H=qe>>>0<1|(qe|0)==1&H>>>0<4294967295;do if(pe>>>0<1|(pe|0)==1&V>>>0<4294967295)if(H){v=sw(v|0,F|0,C|0,t|0)|0;t=G;break t}else{H=sw(J|0,I|0,E|0,A|0)|0;F=G;break}else{if(!H){L=1;break s}H=sw(M|0,w|0,L|0,K|0)|0;F=G}while(0);V=jw(H|0,F|0,-2147483648,0)|0;v=G;if(v>>>0>0|(v|0)==0&V>>>0>4294967295){L=1;break s}J=sw(M|0,w|0,E|0,A|0)|0;I=G;if((I|0)>-1|(I|0)==-1&J>>>0>4294967295){V=dw(-1,2147483647,0,H|0)|0;w=G;if(((F|0)>0|(F|0)==0&H>>>0>0)&((w|0)<(I|0)|(w|0)==(I|0)&V>>>0>>0)){L=1;break s}}else if((F|0)<0?(w=dw(1,-2147483648,0,H|0)|0,t=G,V=jw(J|0,I|0,1,0)|0,v=G,(t|0)>(v|0)|(t|0)==(v|0)&w>>>0>V>>>0):0){L=1;break s}v=jw(0,H|0,J|0,I|0)|0;t=G}else if((J|0)==90){if((C|0)==0&(t|0)==-2147483648){if((F|0)>-1|(F|0)==-1&v>>>0>4294967295){L=1;break s}t=F^-2147483648;break}if((t|0)<0|(t|0)==0&C>>>0<1){V=dw(0,0,C|0,t|0)|0;M=G;w=dw(-1,2147483647,v|0,F|0)|0;A=G;if(((F|0)>0|(F|0)==0&v>>>0>0)&((A|0)<(M|0)|(A|0)==(M|0)&w>>>0>>0)){L=1;break s}}else if((F|0)<0?(w=dw(1,-2147483648,v|0,F|0)|0,A=G,V=dw(1,0,C|0,t|0)|0,M=G,(A|0)>(M|0)|(A|0)==(M|0)&w>>>0>V>>>0):0){L=1;break s}v=dw(v|0,F|0,C|0,t|0)|0;t=G}else if((J|0)==92){if((C|0)==0&(t|0)==0)break r;if((C|0)==-1&(t|0)==-1&((v|0)==0&(F|0)==-2147483648)){L=1;break s}v=qw(v|0,F|0,C|0,t|0)|0;t=G}else{if((C|0)==-1){if((t|0)==-1){C=1;t=0}}else if((C|0)==0?(t|0)==0:0)break r;v=rw(v|0,F|0,C|0,t|0)|0;t=G}while(0);S=u;c[(S&p)>>2]=v;c[(S&p)+4>>2]=t;S=z+(U*40|0)+8|0;b[(S&o)>>1]=e[(S&o)>>1]&48640|4;S=z;T=s;U=W;V=X;break q}while(0);D=+Ug(N);B=+Ug(O);C=d[(P&n)>>0]|0;if((C|0)==89)B=D+B;else if((C|0)==90)B=B-D;else if((C|0)==91)B=D*B;else if((C|0)==92){if(D==0.0)break;B=B/D}else{E=~~D>>>0;C=+R(D)>=1.0?(D>0.0?~~+da(+Q(D/4294967296.0),4294967295.0)>>>0:~~+ba((D-+(~~D>>>0))/4294967296.0)>>>0):0;I=~~B>>>0;J=+R(B)>=1.0?(B>0.0?~~+da(+Q(B/4294967296.0),4294967295.0)>>>0:~~+ba((B-+(~~B>>>0))/4294967296.0)>>>0):0;if(!E){if(!C)break}else if((E|0)==-1?(C|0)==-1:0){E=1;C=0}V=rw(I|0,J|0,E|0,C|0)|0;B=+(V>>>0)+4294967296.0*+(G|0)}h[(ke&q)>>3]=B;h[(Sd&q)>>3]=+h[(ke&q)>>3];if(!(+h[(ke&q)>>3]!=+h[(Sd&q)>>3])){h[(u&q)>>3]=B;V=z+(U*40|0)+8|0;b[(V&o)>>1]=e[(V&o)>>1]&48640|8;if(((T|S)&8)!=0|L<<24>>24!=0){S=z;T=s;U=W;V=X;break q}dm(u);S=z;T=s;U=W;V=X;break q}}while(0);t=z+(U*40|0)+8|0;if(!(b[(t&o)>>1]&9312)){b[(t&o)>>1]=1;S=z;T=s;U=W;V=X;break}else{vg(u);S=z;T=s;U=W;V=X;break}}case 166:{ie=0;t=c[(s+(r*20|0)&p)+4>>2]|0;if(t){u=z+(t*40|0)|0;t=z+(t*40|0)+8|0;if(!(b[(t&o)>>1]&9312)){S=u;c[(S&p)>>2]=0;c[(S&p)+4>>2]=0;b[(t&o)>>1]=4;S=z;T=s;U=W;V=X;u=J;break}else{Zg(u,0,0);S=z;T=s;U=W;V=X;u=J;break}}else{S=z;T=s;U=W;V=X;u=J}break}case 184:{ie=0;C=c[(s+(r*20|0)&p)+4>>2]|0;t=c[(s+(r*20|0)&p)+8>>2]|0;K=c[(s+(r*20|0)&p)+12>>2]|0;u=z+(K*40|0)|0;if((b[(z+(t*40|0)&o)+8>>1]|b[(z+(C*40|0)&o)+8>>1])&1){t=z+(K*40|0)+8|0;if(!(b[(t&o)>>1]&9312)){b[(t&o)>>1]=1;S=z;T=s;U=W;V=X;break}else{vg(u);S=z;T=s;U=W;V=X;break}}A=Vg(z+(t*40|0)|0)|0;L=G;J=Vg(z+(C*40|0)|0)|0;I=G;t=a[(H&n)>>0]|0;C=t&255;do if(t<<24>>24==86){A=J|A;t=I|L}else if(t<<24>>24!=85)if(!((J|0)==0&(I|0)==0)){if((I|0)<0){t=175-C&255;C=dw(0,0,J|0,I|0)|0;if((I|0)>-1|(I|0)==-1&J>>>0>4294967232){I=G;ie=194}}else{C=J;ie=194}if((ie|0)==194){ie=0;if(!((I|0)>0|(I|0)==0&C>>>0>63)){if(t<<24>>24==87){A=iw(A|0,L|0,C|0)|0;t=G;break}A=mw(A|0,L|0,C|0)|0;t=G;if((L|0)>=0)break;V=dw(64,0,C|0,I|0)|0;V=iw(-1,-1,V|0)|0;A=V|A;t=G|t;break}}if((L|0)>-1|(L|0)==-1&A>>>0>4294967295){A=0;t=0}else{t=(t<<24>>24!=87)<<31>>31;A=t;t=((t|0)<0)<<31>>31}}else t=L;else{A=J&A;t=I&L}while(0);S=u;c[(S&p)>>2]=A;c[(S&p)+4>>2]=t;S=z+(K*40|0)+8|0;b[(S&o)>>1]=e[(S&o)>>1]&48640|4;S=z;T=s;U=W;V=X;break}case 202:{ie=0;T=c[(s+(r*20|0)&p)+4>>2]|0;S=z+(T*40|0)|0;U=Vg(S)|0;T=z+(T*40|0)+8|0;b[(T&o)>>1]=e[(T&o)>>1]&48640|4;T=c[(s+(r*20|0)&p)+8>>2]|0;T=jw(U|0,G|0,T|0,((T|0)<0)<<31>>31|0)|0;c[(S&p)>>2]=T;c[(S&p)+4>>2]=G;S=z;T=s;U=W;V=X;break}case 203:{ie=0;u=c[(s+(r*20|0)&p)+4>>2]|0;v=z+(u*40|0)+8|0;t=b[(v&o)>>1]|0;if(!(t&4)){fm(z+(u*40|0)|0,67,Jc);t=b[(v&o)>>1]|0;if(!(t&4)){E=c[(s+(r*20|0)&p)+8>>2]|0;if(!E){t=r;u=20;ie=1318;break c}S=z;T=s;U=W;V=X;u=J;r=E+-1|0;break}}b[(v&o)>>1]=t&48640|4;S=z;T=s;U=W;V=X;u=J;break}case 208:{ie=0;t=c[(s+(r*20|0)&p)+4>>2]|0;u=z+(t*40|0)+8|0;if(!(b[(u&o)>>1]&4)){S=z;T=s;U=W;V=X;u=J}else{S=z+(t*40|0)|0;h[(S&q)>>3]=+Ug(S);b[(u&o)>>1]=e[(u&o)>>1]&48640|8;S=z;T=s;U=W;V=X;u=J}break}case 213:{ie=0;N=c[(s+(t*20|0)&p)+4>>2]|0;L=z+(N*40|0)|0;w=c[(s+(t*20|0)&p)+12>>2]|0;K=z+(w*40|0)|0;N=z+(N*40|0)+8|0;F=b[(N&o)>>1]|0;w=z+(w*40|0)+8|0;M=b[(w&o)>>1]|0;H=F&65535;A=M&65535;v=s+(t*20|0)+3|0;J=d[(v&n)>>0]|0;do if(!((M|F)&1)){J=J&71;if(J>>>0>66){if((H&14|0)==2){rh(L,0);A=b[(w&o)>>1]|0}else A=M;if((A&14)==2){rh(K,0);J=F;E=M}else{J=F;E=M}}else if((J|0)==66){if((H&2|0)!=0|(H&12|0)==0){I=M;J=F}else{bm(L,Jc,1)|0;I=b[(w&o)>>1]|0;J=(e[(N&o)>>1]&65024|H&511)&65535}V=I&65535;if((V&2|0)!=0|(V&12|0)==0)E=M;else{bm(K,Jc,1)|0;E=(e[(w&o)>>1]&65024|A&511)&65535}}else{J=F;E=M}if(b[(N&o)>>1]&16384){Rg(L)|0;J=J&49151}if(b[(w&o)>>1]&16384){Rg(K)|0;E=E&49151}if(a[(ge&n)>>0]|0){y=ge;z=je;r=m;m=x;ie=1317;break a}V=hm(K,L,c[(s+(t*20|0)&p)+16>>2]|0)|0;I=a[(C&n)>>0]|0;r=t;C=V}else{if(J&128){J=F;E=M;r=t;C=(F&1&M)<<16>>16!=0&(A&256|0)==0&1^1;break}if(J&32){u=c[(s+(t*20|0)&p)+8>>2]|0;S=z+(u*40|0)+8|0;b[(S&o)>>1]=e[(S&o)>>1]&48640|1;S=z;T=s;U=W;V=X;u=z+(u*40|0)|0;r=t;break q}if(!(J&16)){S=z;T=s;U=W;V=X;r=t;break q}S=z;T=s;U=W;V=X;r=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;break q}while(0);switch(I&255|0){case 79:{C=(C|0)==0&1;break}case 78:{C=(C|0)!=0&1;break}case 82:{C=C>>>31;break}case 81:{C=(C|0)<1&1;break}case 80:{C=(C|0)>0&1;break}default:C=C>>>31^1}if(!(a[(v&n)>>0]&32)){if(C)r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0}else{V=c[(s+(r*20|0)&p)+8>>2]|0;u=z+(V*40|0)|0;V=z+(V*40|0)+8|0;b[(V&o)>>1]=e[(V&o)>>1]&48640|4;V=u;c[(V&p)>>2]=C;c[(V&p)+4>>2]=0}b[(N&o)>>1]=J;b[(w&o)>>1]=E;S=z;T=s;U=W;V=X;break}case 248:{ie=0;S=z;T=s;U=c[(s+(r*20|0)&p)+16>>2]|0;V=X;break}case 249:{ie=0;w=(a[(s+(r*20|0)&n)+3>>0]&1)==0?0:W;F=c[(s+(r*20|0)&p)+12>>2]|0;H=c[(s+(r*20|0)&p)+16>>2]|0;I=c[(s+(r*20|0)&p)+4>>2]|0;J=c[(s+(r*20|0)&p)+8>>2]|0;if((F|0)>0){t=(w|0)==0;v=H+16|0;E=0;while(1){if(t)A=E;else A=c[(w+(E<<2)&p)>>2]|0;C=a[((c[(v&p)>>2]|0)+E&n)>>0]|0;A=hm(z+((A+I|0)*40|0)|0,z+((A+J|0)*40|0)|0,c[(H+(E<<2)&p)+20>>2]|0)|0;E=E+1|0;if(A)break;if((E|0)>=(F|0)){S=z;T=s;U=0;V=0;break q}}S=z;T=s;U=0;V=C<<24>>24==0?A:0-A|0}else{S=z;T=s;U=0;V=X}break}case 256:{ie=0;if((X|0)<0){S=z;T=s;U=W;V=X;r=(c[(s+(t*20|0)&p)+4>>2]|0)+-1|0;break}if(!X){S=z;T=s;U=W;V=0;r=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;break}else{S=z;T=s;U=W;V=X;r=(c[(s+(t*20|0)&p)+12>>2]|0)+-1|0;break}}case 261:{ie=0;t=c[(s+(r*20|0)&p)+4>>2]|0;if(!(b[(z+(t*40|0)&o)+8>>1]&1)){u=Vg(z+(t*40|0)|0)|0;u=(u|0)!=0|(G|0)!=0?3:0}else u=6;t=c[(s+(r*20|0)&p)+8>>2]|0;if(!(b[(z+(t*40|0)&o)+8>>1]&1)){t=Vg(z+(t*40|0)|0)|0;t=((t|0)!=0|(G|0)!=0)&1}else t=2;t=a[(((a[(C&n)>>0]|0)==72?41680:41696)+t+u&n)>>0]|0;u=c[(s+(r*20|0)&p)+12>>2]|0;J=z+(u*40|0)|0;if(t<<24>>24==2){S=z+(u*40|0)+8|0;b[(S&o)>>1]=e[(S&o)>>1]&48640|1;S=z;T=s;U=W;V=X;u=J;break}else{S=J;c[(S&p)>>2]=t&255;c[(S&p)+4>>2]=0;S=z+(u*40|0)+8|0;b[(S&o)>>1]=e[(S&o)>>1]&48640|4;S=z;T=s;U=W;V=X;u=J;break}}case 268:{ie=0;t=c[(s+(r*20|0)&p)+4>>2]|0;u=c[(s+(r*20|0)&p)+8>>2]|0;J=z+(u*40|0)|0;u=z+(u*40|0)+8|0;if(!(b[(u&o)>>1]&9312))b[(u&o)>>1]=1;else vg(J);if(!(b[(z+(t*40|0)&o)+8>>1]&1)){b[(u&o)>>1]=4;T=Vg(z+(t*40|0)|0)|0;S=J;c[(S&p)>>2]=(T|0)==0&(G|0)==0&1;c[(S&p)+4>>2]=0;S=z;T=s;U=W;V=X;u=J}else{S=z;T=s;U=W;V=X;u=J}break}case 273:{ie=0;t=c[(s+(r*20|0)&p)+4>>2]|0;u=c[(s+(r*20|0)&p)+8>>2]|0;J=z+(u*40|0)|0;u=z+(u*40|0)+8|0;if(!(b[(u&o)>>1]&9312))b[(u&o)>>1]=1;else vg(J);if(!(b[(z+(t*40|0)&o)+8>>1]&1)){b[(u&o)>>1]=4;T=Vg(z+(t*40|0)|0)|0;S=J;c[(S&p)>>2]=~T;c[(S&p)+4>>2]=~G;S=z;T=s;U=W;V=X;u=J}else{S=z;T=s;U=W;V=X;u=J}break}case 278:{ie=0;t=(c[(Hb&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]|0)|0;if(!(a[(t&n)>>0]|0)){a[(t&n)>>0]=1;S=z;T=s;U=W;V=X;break}else{S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0;break}}case 281:{ie=0;t=c[(s+(r*20|0)&p)+4>>2]|0;if(!(b[(z+(t*40|0)&o)+8>>1]&1)){t=+Ug(z+(t*40|0)|0)!=0.0;t=(t^(a[(C&n)>>0]|0)==46)&1}else t=c[(s+(r*20|0)&p)+12>>2]|0;if(!t){S=z;T=s;U=W;V=X}else{S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0}break}case 286:{ie=0;if(!(b[(z+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)&o)+8>>1]&1)){S=z;T=s;U=W;V=X}else{S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0}break}case 288:{ie=0;if(!(b[(z+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)&o)+8>>1]&1)){S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0}else{S=z;T=s;U=W;V=X}break}case 290:{ie=0;T=c[(s+(t*20|0)&p)+8>>2]|0;M=c[(s+(t*20|0)&p)+12>>2]|0;A=z+(M*40|0)|0;S=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;w=c[(S&p)+80>>2]|0;v=c[(S&p)>>2]|0;if(!(a[(S&n)+26>>0]|0)){if((v|0)!=0?(a[(v&n)+73>>0]|0)!=1:0){Td=jm(S)|0;ie=295}}else{Td=im(S)|0;ie=295}if((ie|0)==295?(ie=0,(Td|0)!=0):0){u=Td;ie=1318;break c}L=S+60|0;C=c[($d&p)>>2]|0;u:do if((c[(L&p)>>2]|0)==(C|0)){C=b[(S&o)+22>>1]|0;if((C&65535|0)>(T|0))ie=350;else{I=S+72|0;ie=318}}else{do if(a[(S&n)+25>>0]|0){if(!v){J=c[(S&p)+16>>2]|0;F=c[(z+(J*40|0)&p)+12>>2]|0;c[(S&p)+68>>2]=F;c[(S&p)+64>>2]=F;J=c[(z+(J*40|0)&p)+16>>2]|0;K=S+76|0;c[(K&p)>>2]=J;break}r=z+(M*40|0)+8|0;if(!(b[(r&o)>>1]&9312)){b[(r&o)>>1]=1;break u}else{vg(A);break u}}else{if(!(a[(S&n)+27>>0]&4)){km(v,td);I=e[(v&o)+40>>1]|0;J=c[(v&p)+32>>2]|0;c[(S&p)+76>>2]=J;C=c[(td&p)>>2]|0;c[(S&p)+64>>2]=C}else{C=S+64|0;lm(v,C);I=e[(v&o)+40>>1]|0;J=c[(v&p)+32>>2]|0;c[(S&p)+76>>2]=J;C=c[(C&p)>>2]|0}c[(S&p)+68>>2]=C>>>0>I>>>0?I:C;if(C>>>0>(c[(zb&p)>>2]|0)>>>0){u=x;ie=1316;break c}K=S+76|0;C=c[($d&p)>>2]|0;F=I}while(0);c[(L&p)>>2]=C;C=a[(J&n)>>0]|0;if(C<<24>>24>-1){H=C&255;c[(kd&p)>>2]=H;J=1}else{J=mm(J,kd)|0;H=c[(kd&p)>>2]|0}I=S+72|0;c[(I&p)>>2]=J&255;b[(S&o)+22>>1]=0;c[(w&p)>>2]=H;if(H>>>0>98307){u=x;ie=313;break c}if(H>>>0>(c[(S&p)+64>>2]|0)>>>0){u=x;ie=313;break c}if(F>>>0>>0){c[(K&p)>>2]=0;c[(S&p)+68>>2]=0;C=0;ie=318}else{C=0;ie=318}}while(0);do if((ie|0)==318){ie=0;J=c[(I&p)>>2]|0;H=c[(w&p)>>2]|0;if(J>>>0>>0){P=S+76|0;F=c[(P&p)>>2]|0;if(!F){U=Jd+0|0;V=U+40|0;do{c[(U&p)>>2]=0;U=U+4|0}while((U|0)<(V|0));J=nm(v,0,c[(w&p)>>2]|0,((d[(S&n)+27>>0]|0)>>>2&1^1)&255,Jd)|0;if(J){s=J;u=x;ie=1309;break c}C=S+22|0;O=C;C=b[(C&o)>>1]|0;J=c[(I&p)>>2]|0;H=c[(w&p)>>2]|0;N=c[(Jb&p)>>2]|0}else{O=S+22|0;N=F}E=C&65535;K=c[(w+(E<<2)&p)>>2]|0;c[(kd&p)>>2]=K;C=N+H|0;J=N+J|0;while(1){F=a[(J&n)>>0]|0;if(F<<24>>24>-1){L=F&255;c[(Ld&p)>>2]=L;J=J+1|0}else{J=J+((mm(J,Ld)|0)&255)|0;L=c[(Ld&p)>>2]|0}c[(S+(E<<2)&p)+84>>2]=L;if(L>>>0>11)F=(L+-12|0)>>>1;else F=d[(L&n)+34336>>0]|0;L=K+F|0;c[(kd&p)>>2]=L;if(L>>>0>>0){J=L;F=E;ie=331;break}F=E+1|0;c[(w+(F<<2)&p)>>2]=L;if((E|0)<(T|0)&J>>>0>>0){K=L;E=F}else break}if((ie|0)==331){ie=0;L=J;J=N+(H+1)|0}b[(O&o)>>1]=F;c[(I&p)>>2]=J-N;if(!(c[(P&p)>>2]|0)){if(!((b[(Kb&o)>>1]&9312)==0&(c[(Lb&p)>>2]|0)==0))Qg(Jd);b[(Kb&o)>>1]=1}if(J>>>0>=C>>>0){if(J>>>0>C>>>0){u=x;ie=343;break c}if((L|0)==(c[(S&p)+64>>2]|0))C=L;else{u=x;ie=343;break c}}else C=c[(S&p)+64>>2]|0;if(L>>>0>C>>>0){u=x;ie=343;break c}C=b[(O&o)>>1]|0}if((C&65535|0)<=(T|0)){if((a[(s+(t*20|0)&n)+1>>0]|0)==-8){Zl(A,c[(s+(t*20|0)&p)+16>>2]|0,2048);r=z+(M*40|0)+8|0;break}r=z+(M*40|0)+8|0;if(!(b[(r&o)>>1]&9312)){b[(r&o)>>1]=1;break}else{vg(A);break}}else ie=350}while(0);if((ie|0)==350){ie=0;r=z+(M*40|0)+8|0;if(b[(r&o)>>1]&9312)vg(A);J=c[(S+(T<<2)&p)+84>>2]|0;c[(Ld&p)>>2]=J;do if((c[(S&p)+68>>2]|0)>>>0<(c[(w+(T+1<<2)&p)>>2]|0)>>>0){V=a[(s+(t*20|0)&n)+3>>0]|0;if(!((V&255)>63?J>>>0>11&(J&1|0)==0|V<<24>>24<0:0)){if(J>>>0>11)C=(J+-12|0)>>>1;else C=d[(J&n)+34336>>0]|0;if(C){C=nm(v,c[(w+(T<<2)&p)>>2]|0,C,((d[(S&n)+27>>0]|0)>>>2&1^1)&255,A)|0;if(C){s=C;u=x;ie=1309;break c}om(c[(z+(M*40|0)&p)+16>>2]|0,J,A)|0;b[(r&o)>>1]=e[(r&o)>>1]&61439;break}}om(J>>>0<14?td:0,J,A)|0}else om((c[(S&p)+76>>2]|0)+(c[(w+(T<<2)&p)>>2]|0)|0,J,A)|0;while(0);a[(z+(M*40|0)&n)+10>>0]=Jc}w=e[(r&o)>>1]|0;if((w&4096|0)!=0?(Ac=z+(M*40|0)+16|0,Bc=c[(Ac&p)>>2]|0,(Bc|0)!=0):0){v=c[(z+(M*40|0)&p)+12>>2]|0;if(fh(A,v+2|0)|0){y=ge;z=je;r=m;m=x;ie=1317;break a}kw(c[(Ac&p)>>2]|0,Bc|0,v|0)|0;a[((c[(Ac&p)>>2]|0)+v&n)>>0]=0;a[((c[(Ac&p)>>2]|0)+v&n)+1>>0]=0;b[(r&o)>>1]=w&18|512;S=z;T=s;U=W;V=X;r=t}else{S=z;T=s;U=W;V=X;r=t}break}case 368:{ie=0;v=c[(s+(r*20|0)&p)+16>>2]|0;t=a[(v&n)>>0]|0;if(!(t<<24>>24)){S=z;T=s;U=W;V=X}else{w=z+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)|0;while(1){v=v+1|0;fm(w,t,Jc);t=a[(v&n)>>0]|0;if(!(t<<24>>24)){S=z;T=s;U=W;V=X;break}else w=w+40|0}}break}case 371:{ie=0;U=c[(s+(t*20|0)&p)+4>>2]|0;C=c[(s+(t*20|0)&p)+16>>2]|0;V=z+(U*40|0)|0;U=z+((U+-1+(c[(s+(t*20|0)&p)+8>>2]|0)|0)*40|0)|0;A=a[(Mb&n)>>0]|0;T=c[(s+(t*20|0)&p)+12>>2]|0;u=z+(T*40|0)|0;if(C){r=a[(C&n)>>0]|0;v=V;while(1){C=C+1|0;fm(v,r,Jc);r=a[(C&n)>>0]|0;if(!(r<<24>>24))break;else v=v+40|0}}N=(A&255)>3;L=0;K=0;O=0;C=0;w=U;while(1){E=b[(w&o)+8>>1]|0;I=E&65535;v:do if(!(I&1)){do if(!(I&4)){if(I&8){J=7;ie=388;break v}J=c[(w&p)+12>>2]|0;if(I&16384)J=(c[(w&p)>>2]|0)+J|0;J=(J<<1)+12|I>>>1&1}else{I=w;J=c[(I&p)>>2]|0;I=c[(I&p)+4>>2]|0;H=ew(J|0,I|0,63)|0;H=H^J;F=G^I;if(F>>>0<0|(F|0)==0&H>>>0<128){if(!((J&1|0)==(J|0)&0==(I|0)&N)){J=1;ie=388;break v}J=H+8|0;break}if(F>>>0<0|(F|0)==0&H>>>0<32768){J=2;ie=388;break v}if(F>>>0<0|(F|0)==0&H>>>0<8388608){J=3;ie=388;break v}if(F>>>0<0|(F|0)==0&H>>>0<2147483648){J=4;ie=388;break v}J=F>>>0<32768|(F|0)==32768&H>>>0<0?5:6;ie=388;break v}while(0);c[(w&p)+28>>2]=J;if(J>>>0>11){I=J;J=(J+-12|0)>>>1}else ie=391}else{J=0;ie=388}while(0);if((ie|0)==388){c[(w&p)+28>>2]=J;ie=391}if((ie|0)==391){ie=0;I=J;J=d[(J&n)+34336>>0]|0}do if(E&16384)if((L|0)==0&(K|0)==0){E=c[(w&p)>>2]|0;J=J-E|0;E=E+C|0;break}else{Rg(w)|0;E=C;break}else E=C;while(0);L=jw(J|0,((J|0)<0)<<31>>31|0,L|0,K|0)|0;K=G;if(I>>>0<128)J=1;else{H=0;J=0;do{J=J+1|0;I=mw(I|0,H|0,7)|0;H=G}while(((I|0)!=0|(H|0)!=0)&(J|0)<9)}J=J+O|0;w=w+-40|0;if(w>>>0>>0){F=J;P=E;break}else{O=J;C=E}}if((F|0)<127)I=F+1|0;else{I=F;H=((F|0)<0)<<31>>31;J=0;do{J=J+1|0;I=mw(I|0,H|0,7)|0;H=G}while(((I|0)!=0|(H|0)!=0)&(J|0)<9);F=J+F|0;I=F;H=((F|0)<0)<<31>>31;C=0;do{C=C+1|0;I=mw(I|0,H|0,7)|0;H=G}while(((I|0)!=0|(H|0)!=0)&(C|0)<9);I=((J|0)<(C|0)&1)+F|0}J=((I|0)<0)<<31>>31;E=jw(I|0,J|0,L|0,K|0)|0;N=G;S=c[(zb&p)>>2]|0;O=((S|0)<0)<<31>>31;if((N|0)>(O|0)|(N|0)==(O|0)&E>>>0>S>>>0){u=x;ie=1316;break c}if(fh(u,E)|0){y=ge;z=je;r=m;m=x;ie=1317;break a}A=c[(z+(T*40|0)&p)+16>>2]|0;if(I>>>0<128){a[(A&n)>>0]=I;K=1;L=V}else{K=(pm(A,I,J)|0)&255;L=V}while(1){H=c[(L&p)+28>>2]|0;if(H>>>0<128){a[(A+K&n)>>0]=H;J=1}else J=(pm(A+K|0,H,0)|0)&255;K=J+K|0;J=A+I|0;if(!(H>>>0<8&(H|0)!=0))if(H>>>0>11){C=c[(L&p)+12>>2]|0;kw(J|0,c[(L&p)+16>>2]|0,C|0)|0}else C=0;else{J=L;if(H>>>0>11)C=(H+-12|0)>>>1;else C=d[(H&n)+34336>>0]|0;F=c[(J&p)>>2]|0;J=c[(J&p)+4>>2]|0;H=C;while(1){H=H+-1|0;a[(A+H+I&n)>>0]=F;F=mw(F|0,J|0,8)|0;if(!H)break;else J=G}}L=L+40|0;if(L>>>0>U>>>0)break;else I=C+I|0}c[(z+(T*40|0)&p)+12>>2]=E;r=z+(T*40|0)+8|0;b[(r&o)>>1]=16;if(P){c[(u&p)>>2]=P;b[(r&o)>>1]=16400}a[(z+(T*40|0)&n)+10>>0]=1;S=z;T=s;U=W;V=X;r=t;break}case 446:{ie=0;if((c[(ae&p)>>2]|0)>0){u=x;ie=447;break c}if(!v)w=0;else{t=v;while(1)if(!(a[(t&n)>>0]|0))break;else t=t+1|0;w=t-v&1073741823}u=sm(le,0,(c[(Ob&p)>>2]|0)+(c[(Nb&p)>>2]|0)|0)|0;if(u){t=r;ie=1318;break c}t=mh(le,w+33|0,0)|0;if(!t){S=z;T=s;U=W;V=X;u=L}else{V=t+32|0;c[(t&p)>>2]=V;kw(V|0,v|0,w+1|0)|0;if(!(a[(ee&n)>>0]|0))c[(Ob&p)>>2]=(c[(Ob&p)>>2]|0)+1;else{a[(ee&n)>>0]=0;a[(Sb&n)>>0]=1}c[(t&p)+24>>2]=c[(Pb&p)>>2];c[(Pb&p)>>2]=t;S=Qb;T=c[(S&p)+4>>2]|0;U=t+8|0;c[(U&p)>>2]=c[(S&p)>>2];c[(U&p)+4>>2]=T;U=Rb;T=c[(U&p)+4>>2]|0;S=t+16|0;c[(S&p)>>2]=c[(U&p)>>2];c[(S&p)+4>>2]=T;S=z;T=s;U=W;V=X;u=L}break}case 486:{c[(Ob&p)>>2]=(c[(Ob&p)>>2]|0)+-1;ie=488;break}case 525:{ie=0;wm(c[((c[(Xd&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<4)&p)+4>>2]|0,c[(s+(r*20|0)&p)+12>>2]|0,Yc);T=c[(Yc&p)>>2]|0;S=u;c[(S&p)>>2]=T;c[(S&p)+4>>2]=((T|0)<0)<<31>>31;S=z;T=s;U=W;V=X;break}case 558:{ie=0;v=xm(f,c[(s+(t*20|0)&p)+4>>2]|0,c[(s+(t*20|0)&p)+8>>2]|0,-1,1)|0;if(!v){y=ge;z=je;r=m;m=x;ie=1317;break a}r=c[(s+(t*20|0)&p)+16>>2]|0;C=v+8|0;c[(C&p)>>2]=r;A=c[(s+(t*20|0)&p)+12>>2]|0;r=e[(r&o)+6>>1]<<2;u=r+148|0;w=mh(le,u,0)|0;if(!w){s=v;u=x;ie=560;break c}fw(w|0,0,u|0)|0;c[(v&p)+56>>2]=w;V=w+128|0;c[(w&p)+28>>2]=V;kw(V|0,c[(C&p)>>2]|0,r+20|0)|0;c[(w&p)+140>>2]=0;if(A)b[(w&o)+134>>1]=A;r=c[(Xd&p)>>2]|0;u=c[((c[((c[(r&p)+4>>2]|0)&p)+4>>2]|0)&p)+32>>2]|0;c[(w&p)+12>>2]=u;a[(w&n)+59>>0]=1;a[(w&n)+57>>0]=0;c[(w&p)+24>>2]=le;c[(w&p)+72>>2]=w;if(((a[(_b&n)>>0]|0)!=2?(Dc=c[2242]|0,c[(w&p)>>2]=ca(Dc,u)|0,V=c[((c[(r&p)+12>>2]|0)&p)+80>>2]|0,V=(V|0)<(Dc|0)?Dc:V,Dc=((u|0)<0)<<31>>31,V=sw(V|0,((V|0)<0)<<31>>31|0,u|0,Dc|0)|0,U=G,c[(w&p)+4>>2]=(U|0)<0|(U|0)==0&V>>>0<536870912?V:536870912,(c[2234]|0)==0):0)?(c[(w&p)+52>>2]=u,V=qg(u,Dc)|0,c[(w&p)+40>>2]=V,(V|0)==0):0){s=7;u=x;ie=1309;break c}else{S=z;T=s;U=W;V=X;u=L;r=t}break}case 566:{ie=0;T=(c[((c[(Ib&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<2)&p)>>2]|0)+40|0;V=T;U=c[(V&p)>>2]|0;V=c[(V&p)+4>>2]|0;S=jw(U|0,V|0,1,0)|0;c[(T&p)>>2]=S;c[(T&p)+4>>2]=G;if((U|0)==0&(V|0)==0){S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0}else{S=z;T=s;U=W;V=X}break}case 568:{ie=0;r=xm(f,c[(s+(t*20|0)&p)+4>>2]|0,c[(s+(t*20|0)&p)+12>>2]|0,-1,0)|0;if(!r){y=ge;z=je;r=m;m=x;ie=1317;break a}a[(r&n)+25>>0]=1;c[(r&p)+16>>2]=c[(s+(t*20|0)&p)+8>>2];S=r+27|0;a[(S&n)>>0]=a[(S&n)>>0]|4;S=z;T=s;U=W;V=X;r=t;break}case 570:{ie=0;S=s+(r*20|0)+4|0;Bm(f,c[((c[(Ib&p)>>2]|0)+(c[(S&p)>>2]<<2)&p)>>2]|0);c[((c[(Ib&p)>>2]|0)+(c[(S&p)>>2]<<2)&p)>>2]=0;S=z;T=s;U=W;V=X;break}case 571:{ie=0;H=c[((c[(Ib&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<2)&p)>>2]|0;a[(H&n)+25>>0]=0;if(!(a[(H&n)+27>>0]&4)){V=c[(s+(r*20|0)&p)+16>>2]|0;c[(wd&p)>>2]=c[(H&p)+8>>2];b[($b&o)>>1]=V;a[(cc&n)>>0]=(K<<1&2^2)+255;V=c[(s+(r*20|0)&p)+12>>2]|0;t=z+(V*40|0)|0;c[(dc&p)>>2]=t;if(b[(z+(V*40|0)&o)+8>>1]&16384)Rg(t)|0;u=Cm(c[(H&p)>>2]|0,wd,0,0,0,Ad)|0;if(!u){u=K;J=L}else{t=r;ie=1318;break c}}else{C=c[(s+(r*20|0)&p)+12>>2]|0;A=z+(C*40|0)|0;C=z+(C*40|0)+8|0;if((b[(C&o)>>1]&14)==2)rh(A,0);J=Vg(A)|0;I=G;C=e[(C&o)>>1]|0;do if(!(C&4)){if(!(C&8)){S=z;T=s;U=W;V=X;u=L;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0;break q}B=+h[(A&q)>>3];D=+(J>>>0)+4294967296.0*+(I|0);if(B>31)+K|0;break}else{C=(B>D&(K&1|0)==0&1)+K|0;break}}else C=K;while(0);u=Cm(c[(H&p)>>2]|0,0,J,I,0,Ad)|0;V=H+48|0;c[(V&p)>>2]=J;c[(V&p)+4>>2]=I;if(!u){u=C;J=L}else{t=r;ie=1318;break c}}a[(H&n)+26>>0]=0;c[(H&p)+60>>2]=0;t=c[(Ad&p)>>2]|0;do if((u|0)>63){if((t|0)>=0?!((t|0)==0&(u|0)==65):0){c[(Ad&p)>>2]=0;S=z;T=s;U=W;V=X;u=J;break q}c[(Ad&p)>>2]=0;u=Dm(c[(H&p)>>2]|0,Ad)|0;if(!u)ie=593;else{t=r;ie=1318;break c}}else{if((t|0)<=0?!((t|0)==0&(u|0)==62):0){t=(a[((c[(H&p)>>2]|0)&n)+73>>0]|0)!=1&1;c[(Ad&p)>>2]=t;break}c[(Ad&p)>>2]=0;u=Em(c[(H&p)>>2]|0,Ad)|0;if(!u)ie=593;else{t=r;ie=1318;break c}}while(0);if((ie|0)==593){ie=0;t=c[(Ad&p)>>2]|0}if(!t){S=z;T=s;U=W;V=X;u=J}else{S=z;T=s;U=W;V=X;u=J;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0}break}case 596:{ie=0;S=c[((c[(Ib&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<2)&p)>>2]|0;a[(S&n)+25>>0]=0;U=Vg(z+((c[(s+(r*20|0)&p)+8>>2]|0)*40|0)|0)|0;T=S+48|0;c[(T&p)>>2]=U;c[(T&p)+4>>2]=G;a[(S&n)+26>>0]=1;S=z;T=s;U=W;V=X;break}case 597:{ie=0;I=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;r=c[(s+(t*20|0)&p)+12>>2]|0;J=z+(r*40|0)|0;c[(od&p)>>2]=0;K=s+(t*20|0)+16|0;C=c[(K&p)>>2]|0;v=I+8|0;A=c[(v&p)>>2]|0;w:do if((C|0)>0){c[(xd&p)>>2]=A;C=C&65535;b[(ec&o)>>1]=C;c[(fc&p)>>2]=J;if(!(C<<16>>16))v=xd;else{r=J;A=0;while(1){if(b[(r+(A*40|0)&o)+8>>1]&16384){Rg(r+(A*40|0)|0)|0;C=b[(ec&o)>>1]|0}A=A+1|0;if((A|0)>=(C&65535|0)){v=xd;break w}r=c[(fc&p)>>2]|0}}}else{C=Fm(A,Sc,191,od)|0;if(!C){y=ge;z=je;r=m;m=x;ie=1317;break a}if(b[(z+(r*40|0)&o)+8>>1]&16384)Rg(J)|0;Gm(c[(v&p)>>2]|0,c[(z+(r*40|0)&p)+12>>2]|0,c[(z+(r*40|0)&p)+16>>2]|0,C);v=C}while(0);a[(v&n)+6>>0]=0;x:do if((a[(H&n)>>0]|0)==67?(Ec=b[(v&o)+4>>1]|0,Ec<<16>>16!=0):0){C=c[(v&p)+8>>2]|0;A=0;while(1){if(b[(C+(A*40|0)&o)+8>>1]&1)break;A=A+1|0;if((A|0)>=(Ec&65535|0)){L=t;r=t;break x}}L=t;r=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0}else{L=t;r=t}while(0);C=Cm(c[(I&p)>>2]|0,v,0,0,0,Bd)|0;if(!(c[(K&p)>>2]|0))mg(le,c[(od&p)>>2]|0);if(C){t=r;s=C;u=x;ie=1309;break c}t=c[(Bd&p)>>2]|0;c[(I&p)+12>>2]=t;t=(t|0)==0;a[(I&n)+25>>0]=t&1^1;a[(I&n)+26>>0]=0;c[(I&p)+60>>2]=0;if((a[(H&n)>>0]|0)==69){if(!t){S=z;T=s;U=W;V=X;break}S=z;T=s;U=W;V=X;r=(c[(s+(L*20|0)&p)+8>>2]|0)+-1|0;break}else{if(t){S=z;T=s;U=W;V=X;break}S=z;T=s;U=W;V=X;r=(c[(s+(L*20|0)&p)+8>>2]|0)+-1|0;break}}case 624:{ie=0;S=(c[((c[(Ib&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<2)&p)>>2]|0)+40|0;T=S;U=c[(T&p)>>2]|0;T=c[(T&p)+4>>2]|0;V=jw(U|0,T|0,1,0)|0;c[(S&p)>>2]=V;c[(S&p)+4>>2]=G;S=u;c[(S&p)>>2]=U;c[(S&p)+4>>2]=T;S=z;T=s;U=W;V=X;break}case 647:{ie=0;I=c[(s+(r*20|0)&p)+8>>2]|0;v=c[((c[(Ib&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<2)&p)>>2]|0;t=c[(s+(r*20|0)&p)+12>>2]|0;if(C<<24>>24==75){F=z+(t*40|0)|0;E=c[(F&p)>>2]|0;F=c[(F&p)+4>>2]|0}else{E=t;F=((t|0)<0)<<31>>31}H=s+(r*20|0)+3|0;J=a[(H&n)>>0]|0;if(J&1)c[(ub&p)>>2]=(c[(ub&p)>>2]|0)+1;if(J&2){m=ne;c[(m&p)>>2]=E;c[(m&p)+4>>2]=F;m=E;l=F}C=b[(z+(I*40|0)&o)+8>>1]|0;if(C&1){c[(z+(I*40|0)&p)+16>>2]=0;c[(z+(I*40|0)&p)+12>>2]=0}if(!(J&16))A=0;else A=c[(v&p)+12>>2]|0;if(!(C&16384))C=0;else C=c[(z+(I*40|0)&p)>>2]|0;C=Im(c[(v&p)>>2]|0,0,E,F,c[(z+(I*40|0)&p)+16>>2]|0,c[(z+(I*40|0)&p)+12>>2]|0,C,(J&255)>>>3&1,A)|0;a[(v&n)+26>>0]=0;c[(v&p)+60>>2]=0;if(C){t=r;s=C;u=x;ie=1309;break c}t=c[(gc&p)>>2]|0;if((t|0)!=0?(Fc=c[(s+(r*20|0)&p)+16>>2]|0,(Fc|0)!=0):0){bc[t&1](c[(hc&p)>>2]|0,(a[(H&n)>>0]&4)!=0?23:18,c[((c[(Xd&p)>>2]|0)+(a[(v&n)+24>>0]<<4)&p)>>2]|0,Fc,E,F);S=z;T=s;U=W;V=X}else{S=z;T=s;U=W;V=X}break}case 671:{ie=0;S=c[(ub&p)>>2]|0;c[(vb&p)>>2]=S;c[(wb&p)>>2]=(c[(wb&p)>>2]|0)+S;c[(ub&p)>>2]=0;S=z;T=s;U=W;V=X;break}case 672:{ie=0;J=c[((c[(Ib&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<2)&p)>>2]|0;I=c[(s+(r*20|0)&p)+12>>2]|0;H=c[(s+(r*20|0)&p)+16>>2]|0;t=c[(J&p)+56>>2]|0;A=t+32|0;C=c[(A&p)>>2]|0;J=c[(J&p)+8>>2]|0;if(!C){C=Fm(J,0,0,md)|0;c[(A&p)>>2]=C;if(!C){t=r;s=7;u=x;ie=1309;break c}b[(C&o)+4>>1]=H}if(!(a[(t&n)+56>>0]|0)){t=c[(t&p)+36>>2]|0;A=t;t=t+8|0}else{V=c[(t&p)+20>>2]|0;t=c[((c[(V&p)+8>>2]|0)&p)+4>>2]|0;V=c[(V&p)+12>>2]|0;A=V+(t*56|0)+20|0;t=c[(V+(t*56|0)&p)+32>>2]|0}Gm(J,c[(A&p)>>2]|0,t,C);y:do if((H|0)>0){t=c[(C&p)+8>>2]|0;v=0;while(1){if(b[(t+(v*40|0)&o)+8>>1]&1)break y;v=v+1|0;if((v|0)>=(H|0)){ie=682;break}}}else ie=682;while(0);if((ie|0)==682){ie=0;if(!(Km(c[(z+(I*40|0)&p)+12>>2]|0,c[(z+(I*40|0)&p)+16>>2]|0,C,0)|0)){S=z;T=s;U=W;V=X;break}}S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0;break}case 700:{ie=0;b[(u&o)+8>>1]=1;S=z;T=s;U=W;V=X;break}case 708:{ie=0;b[(u&o)+8>>1]=1;S=z;T=s;U=W;V=X;break}case 711:{ie=0;t=c[((c[(Ib&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<2)&p)>>2]|0;a[(t&n)+25>>0]=1;c[(t&p)+60>>2]=0;t=c[(t&p)>>2]|0;if(!t){S=z;T=s;U=W;V=X}else{S=t+56|0;Wc(c[(S&p)>>2]|0);c[(S&p)>>2]=0;a[(t&n)+73>>0]=0;S=z;T=s;U=W;V=X}break}case 801:{ie=0;t=c[((c[(Ib&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<2)&p)>>2]|0;u=c[(t&p)>>2]|0;K=L+8|0;b[(K&o)>>1]=1;if((a[(u&n)+73>>0]|0)!=1?(Vd=jm(t)|0,(Vd|0)!=0):0){t=r;u=Vd;ie=1318;break c}if(!(a[(t&n)+25>>0]|0)){V=Sd;c[(V&p)>>2]=0;c[(V&p)+4>>2]=0;km(u,Sd);b[(qc&o)>>1]=0;c[(sc&p)>>2]=le;c[(uc&p)>>2]=0;u=nm(u,0,c[(Sd&p)>>2]|0,1,$c)|0;do if(!u){t=c[(vc&p)>>2]|0;u=a[(t&n)>>0]|0;if(u<<24>>24>-1){C=u&255;c[(qd&p)>>2]=C}else{mm(t,qd)|0;C=c[(qd&p)>>2]|0}if(!(C>>>0<3?1:(C|0)>(c[(wc&p)>>2]|0))){t=(c[(vc&p)>>2]|0)+(C+-1)|0;u=a[(t&n)>>0]|0;if(u<<24>>24>-1){u=u&255;c[(Nd&p)>>2]=u}else{mm(t,Nd)|0;u=c[(Nd&p)>>2]|0}if(!((u+-1|0)>>>0>8|(u|0)==7)){if(u>>>0>11)t=(u+-12|0)>>>1;else t=d[(u&n)+34336>>0]|0;v=c[(wc&p)>>2]|0;if(v>>>0>=(t+C|0)>>>0){om((c[(vc&p)>>2]|0)+(v-t)|0,u,Qd)|0;v=Qd;t=c[(v&p)>>2]|0;v=c[(v&p)+4>>2]|0;if((b[(qc&o)>>1]&9312)==0&(c[(uc&p)>>2]|0)==0){u=0;break}Qg($c);u=0;break}}}if(!((b[(qc&o)>>1]&9312)==0&(c[(uc&p)>>2]|0)==0))Qg($c);c[(ke&p)>>2]=68698;c[(ke&p)+4>>2]=10788;bd(11,13600,ke);u=11;t=0;v=0}else{t=0;v=0}while(0);if(u){t=r;ie=1318;break c}S=L;c[(S&p)>>2]=t;c[(S&p)+4>>2]=v;b[(K&o)>>1]=4;S=z;T=s;U=W;V=X;u=L}else{S=z;T=s;U=W;V=X;u=L}break}case 865:{ie=0;w=c[(C&p)>>2]|0;C=c[((c[(Xd&p)>>2]|0)+(K<<4)&p)+12>>2]|0;t=c[(C&p)+16>>2]|0;if(t)do{v=(c[(t&p)+8>>2]|0)+32|0;if((c[(v&p)>>2]|0)==(A|0))c[(v&p)>>2]=w;t=c[(t&p)>>2]|0}while((t|0)!=0);t=c[(C&p)+32>>2]|0;if(t)do{v=(c[(t&p)+8>>2]|0)+40|0;if((c[(v&p)>>2]|0)==(A|0))c[(v&p)>>2]=w;t=c[(t&p)>>2]|0}while((t|0)!=0);S=z;T=s;U=W;V=X;x=K+1&255;break}case 878:{ie=0;_m(le,u);S=z;T=s;U=W;V=X;u=J;break}case 881:{ie=0;V=c[(s+(r*20|0)&p)+4>>2]|0;c[(Zc&p)>>2]=le;c[(ia&p)>>2]=V;c[(ja&p)>>2]=je;u=c[(s+(r*20|0)&p)+16>>2]|0;c[(ke&p)>>2]=c[((c[(Xd&p)>>2]|0)+(V<<4)&p)>>2];c[(ke&p)+4>>2]=(V|0)==1?13184:13208;c[(ke&p)+8>>2]=u;u=uh(le,42048,ke)|0;if(!u){t=r;u=x;ie=882;break c}a[(ka&n)>>0]=1;c[(la&p)>>2]=0;t=Qe(le,u,22,Zc,0)|0;t=(t|0)==0?c[(la&p)>>2]|0:t;mg(le,u);a[(ka&n)>>0]=0;if(!t){S=z;T=s;U=W;V=X;u=J}else{s=t;t=r;u=x;ie=884;break c}break}case 886:{ie=0;kg(le,Ik((c[((c[(Xd&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<4)&p)+12>>2]|0)+8|0,c[(s+(r*20|0)&p)+16>>2]|0,0)|0);c[(Tb&p)>>2]=c[(Tb&p)>>2]|2;S=z;T=s;U=W;V=X;break}case 887:{ie=0;C=Ik((c[((c[(Xd&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<4)&p)+12>>2]|0)+24|0,c[(s+(r*20|0)&p)+16>>2]|0,0)|0;if(C){t=(c[(C&p)+12>>2]|0)+8|0;u=c[(t&p)>>2]|0;z:do if((u|0)==(C|0))c[(t&p)>>2]=c[(C&p)+20>>2];else{do{if(!u)break z;t=u+20|0;u=c[(t&p)>>2]|0}while((u|0)!=(C|0));c[(t&p)>>2]=c[(C&p)+20>>2]}while(0);Jk(le,C)}c[(Tb&p)>>2]=c[(Tb&p)>>2]|2;S=z;T=s;U=W;V=X;u=J;break}case 895:{ie=0;C=Ik((c[((c[(Xd&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<4)&p)+12>>2]|0)+40|0,c[(s+(r*20|0)&p)+16>>2]|0,0)|0;if(!C){S=z;T=s;U=W;V=X}else{t=c[(C&p)+20>>2]|0;if((t|0)==(c[(C&p)+24>>2]|0)){t=bn(t+8|0,c[(C&p)+4>>2]|0,ke)|0;if(!t)t=0;else t=c[(t&p)+8>>2]|0;v=t+64|0;while(1){V=c[(v&p)>>2]|0;t=V+32|0;if((V|0)==(C|0))break;else v=t}c[(v&p)>>2]=c[(t&p)>>2]}jg(le,C);c[(Tb&p)>>2]=c[(Tb&p)>>2]|2;S=z;T=s;U=W;V=X}break}case 903:{ie=0;L=c[(s+(t*20|0)&p)+8>>2]|0;v=mh(le,(L<<2)+4|0,0)|0;if(!v){y=ge;z=je;r=m;m=x;ie=1317;break a}A=c[(s+(t*20|0)&p)+12>>2]|0;r=c[(s+(t*20|0)&p)+4>>2]|0;M=z+(r*40|0)|0;if((L|0)>0){C=0;do{V=Vg(z+((C+r|0)*40|0)|0)|0;c[(v+(C<<2)&p)>>2]=V;C=C+1|0}while((C|0)!=(L|0));C=L}else C=0;c[(v+(C<<2)&p)>>2]=0;I=c[((c[(Xd&p)>>2]|0)+(d[(s+(t*20|0)&n)+3>>0]<<4)&p)+4>>2]|0;P=z+(A*40|0)|0;V=c[(P&p)>>2]|0;O=c[(I&p)+4>>2]|0;c[(O&p)+4>>2]=c[(I&p)>>2];I=c[(O&p)>>2]|0;w=c[((c[(I&p)+204>>2]|0)&p)+12>>2]|0;c[(Sd&p)>>2]=O;c[(ma&p)>>2]=I;I=c[(O&p)+44>>2]|0;c[(na&p)>>2]=I;c[(oa&p)>>2]=V;c[(pa&p)>>2]=0;c[(pa&p)+4>>2]=0;c[(pa&p)+8>>2]=0;c[(pa&p)+12>>2]=0;c[(pa&p)+16>>2]=0;do if(!I){A=0;C=0}else{J=(I>>>3)+1|0;H=qg(J,0)|0;if(!H){c[(sa&p)>>2]=0;A=0;C=1;break}fw(H|0,0,J|0)|0;c[(sa&p)>>2]=H;N=O+32|0;J=(((c[2514]|0)>>>0)/((c[(N&p)>>2]|0)>>>0)|0)+1|0;if(J>>>0<=I>>>0){V=H+(J>>>3)|0;a[(V&n)>>0]=d[(V&n)>>0]|1<<(J&7)}c[(ua&p)>>2]=Nd;c[(va&p)>>2]=Nd;c[(ta&p)>>2]=0;c[(wa&p)>>2]=0;c[(xa&p)>>2]=100;c[(ya&p)>>2]=1e9;a[(Aa&n)>>0]=0;a[(za&n)>>0]=2;c[(ra&p)>>2]=43592;C=c[((c[(O&p)+12>>2]|0)&p)+56>>2]|0;cn(Sd,1,d[(C&n)+33>>0]<<16|d[(C&n)+32>>0]<<24|d[(C&n)+34>>0]<<8|d[(C&n)+35>>0],d[(C&n)+37>>0]<<16|d[(C&n)+36>>0]<<24|d[(C&n)+38>>0]<<8|d[(C&n)+39>>0]);c[(ra&p)>>2]=0;C=c[(oa&p)>>2]|0;if(!((L|0)<1|(C|0)==0)){F=O+17|0;H=0;do{I=v+(H<<2)|0;J=c[(I&p)>>2]|0;if(J){if((a[(F&n)>>0]|0)!=0&(J|0)>1){dn(Sd,J,1,0);J=c[(I&p)>>2]|0}c[(ra&p)>>2]=43608;en(Sd,J,0,0)|0;c[(ra&p)>>2]=0;C=c[(oa&p)>>2]|0}H=H+1|0}while(!((H|0)>=(L|0)|(C|0)==0))}if(!((c[(na&p)>>2]|0)==0|(C|0)==0)){E=O+17|0;C=O+36|0;L=1;do{H=L>>>3;J=a[((c[(sa&p)>>2]|0)+H&n)>>0]|0;F=1<<(L&7);do if(!(J&255&F)){if(L>>>0<2)I=0;else{I=L+-2|0;I=I-((I>>>0)%(((((c[(C&p)>>2]|0)>>>0)/5|0)+1|0)>>>0)|0)|0;I=((I+1|0)==(((c[2514]|0)>>>0)/((c[(N&p)>>2]|0)>>>0)|0|0)?3:2)+I|0}if((I|0)==(L|0)?(a[(E&n)>>0]|0)!=0:0)break;c[(ke&p)>>2]=L;fn(Sd,43632,ke);J=a[((c[(sa&p)>>2]|0)+H&n)>>0]|0}while(0);do if(J&255&F){if(L>>>0<2)J=0;else{J=L+-2|0;J=J-((J>>>0)%(((((c[(C&p)>>2]|0)>>>0)/5|0)+1|0)>>>0)|0)|0;J=((J+1|0)==(((c[2514]|0)>>>0)/((c[(N&p)>>2]|0)>>>0)|0|0)?3:2)+J|0}if((J|0)!=(L|0))break;if(!(a[(E&n)>>0]|0))break;c[(ke&p)>>2]=L;fn(Sd,43656,ke)}while(0);L=L+1|0}while(!((c[(oa&p)>>2]|0)==0?1:L>>>0>(c[(na&p)>>2]|0)>>>0))}C=c[((c[((c[(O&p)>>2]|0)&p)+204>>2]|0)&p)+12>>2]|0;if((w|0)!=(C|0)){c[(ke&p)>>2]=w;c[(ke&p)+4>>2]=C;fn(Sd,43696,ke)}Wc(c[(sa&p)>>2]|0);if(c[(qa&p)>>2]|0){gn(ta);A=0;C=(c[(pa&p)>>2]|0)+1|0;break}C=c[(pa&p)>>2]|0;if(!C)gn(ta);A=tg(ta)|0}while(0);mg(le,v);U=P;U=dw(c[(U&p)>>2]|0,c[(U&p)+4>>2]|0,C|0,((C|0)<0)<<31>>31|0)|0;V=P;c[(V&p)>>2]=U;c[(V&p)+4>>2]=G;r=z+(r*40|0)+8|0;if(!(b[(r&o)>>1]&9312))b[(r&o)>>1]=1;else vg(M);if(C){if(!A){y=ge;z=je;r=m;m=x;ie=1317;break a}Xg(M,A,-1,1,1)|0}Yl(M,xb)|0;S=z;T=s;U=W;V=X;r=t;break}case 947:{ie=0;v=c[(s+(t*20|0)&p)+4>>2]|0;r=z+(v*40|0)|0;u=c[(s+(t*20|0)&p)+8>>2]|0;v=z+(v*40|0)+8|0;if((b[(v&o)>>1]&32)==0?(hn(r),(b[(v&o)>>1]&32)==0):0){y=ge;z=je;r=m;m=x;ie=1317;break a}S=z+(u*40|0)|0;jn(c[(r&p)>>2]|0,c[(S&p)>>2]|0,c[(S&p)+4>>2]|0);S=z;T=s;U=W;V=X;u=J;r=t;break}case 966:{ie=0;r=c[(s+(t*20|0)&p)+4>>2]|0;P=z+(r*40|0)|0;O=z+((c[(s+(t*20|0)&p)+12>>2]|0)*40|0)|0;N=c[(s+(t*20|0)&p)+16>>2]|0;r=z+(r*40|0)+8|0;if((b[(r&o)>>1]&32)==0?(hn(P),(b[(r&o)>>1]&32)==0):0){y=ge;z=je;r=m;m=x;ie=1317;break a}if(N){L=c[(P&p)>>2]|0;v=O;M=c[(v&p)>>2]|0;v=c[(v&p)+4>>2]|0;K=L+28|0;if((c[(K&p)>>2]|0)!=(N|0)){C=L+8|0;J=c[(C&p)>>2]|0;if(J){I=L+20|0;A=L+26|0;if(!(b[(A&o)>>1]&1))J=kn(J)|0;H=c[(I&p)>>2]|0;A:do if(!H){ld=J;rd=I;ie=978}else{while(1){I=H+12|0;F=c[(I&p)>>2]|0;if(!F)break;E=H+8|0;ln(F,ke,Sd);c[(I&p)>>2]=0;J=mn(c[(ke&p)>>2]|0,J)|0;H=c[(E&p)>>2]|0;if(!H){ld=J;rd=E;ie=978;break A}}c[(I&p)>>2]=nn(J)|0}while(0);if((ie|0)==978?(ie=0,Kc=on(L)|0,c[(rd&p)>>2]=Kc,(Kc|0)!=0):0){V=Kc;c[(V&p)>>2]=0;c[(V&p)+4>>2]=0;c[(Kc&p)+8>>2]=0;c[(Kc&p)+12>>2]=nn(ld)|0}c[(C&p)>>2]=0;c[(L&p)+12>>2]=0;b[(A&o)>>1]=e[(A&o)>>1]|1}c[(K&p)>>2]=N}C=c[(L&p)+20>>2]|0;B:do if(C){C:while(1){A=c[(C&p)+12>>2]|0;if(A)do{r=A;E=c[(r&p)>>2]|0;r=c[(r&p)+4>>2]|0;if((r|0)<(v|0)|(r|0)==(v|0)&E>>>0>>0)A=A+8|0;else{if(!((r|0)>(v|0)|(r|0)==(v|0)&E>>>0>M>>>0))break C;A=A+12|0}A=c[(A&p)>>2]|0}while((A|0)!=0);C=c[(C&p)+8>>2]|0;if(!C)break B}S=z;T=s;U=W;V=X;r=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;break q}while(0);if((N|0)>-1)C=O;else{S=z;T=s;U=W;V=X;r=t;break}}else C=O;S=C;jn(c[(P&p)>>2]|0,c[(S&p)>>2]|0,c[(S&p)+4>>2]|0);S=z;T=s;U=W;V=X;r=t;break}case 993:{ie=0;K=c[(s+(r*20|0)&p)+16>>2]|0;I=c[(s+(r*20|0)&p)+12>>2]|0;L=z+(I*40|0)|0;if((a[(s+(r*20|0)&n)+3>>0]|0)!=0?(Lc=c[(K&p)+20>>2]|0,nd=c[(sb&p)>>2]|0,(nd|0)!=0):0){t=nd;while(1){if((c[(t&p)+28>>2]|0)==(Lc|0)){S=z;T=s;U=W;V=X;break q}t=c[(t&p)+4>>2]|0;if(!t){t=r;break}}}else t=r;r=c[(tb&p)>>2]|0;if((r|0)>=(c[(Ba&p)>>2]|0)){u=x;ie=998;break c}E=z+(I*40|0)+8|0;if(!(b[(E&o)>>1]&64)){C=K+12|0;A=c[(C&p)>>2]|0;r=A+(c[(K&p)+8>>2]|0)|0;s=K+16|0;A=(A<<2)+80+(c[(s&p)>>2]|0)+(r*40|0)|0;J=mh(le,A,((A|0)<0)<<31>>31)|0;if(!J){y=ge;z=je;r=m;m=x;ie=1317;break a}fw(J|0,0,A|0)|0;if(!((b[(E&o)>>1]&9312)==0?(c[(z+(I*40|0)&p)+24>>2]|0)==0:0))Qg(L);b[(E&o)>>1]=64;c[(L&p)>>2]=J;c[(J&p)>>2]=f;c[(J&p)+60>>2]=r;c[(J&p)+64>>2]=c[(C&p)>>2];c[(J&p)+44>>2]=t;c[(J&p)+16>>2]=c[(Nc&p)>>2];c[(J&p)+52>>2]=c[(Ca&p)>>2];c[(J&p)+24>>2]=c[(Ib&p)>>2];c[(J&p)+40>>2]=c[(Da&p)>>2];c[(J&p)+8>>2]=c[(zc&p)>>2];c[(J&p)+48>>2]=c[(Ea&p)>>2];c[(J&p)+28>>2]=c[(K&p)+20>>2];c[(J&p)+20>>2]=c[(Hb&p)>>2];c[(J&p)+56>>2]=c[(Fa&p)>>2];z=J+80|0;r=z+(r*40|0)|0;if((z|0)!=(r|0))do{b[(z&o)+8>>1]=128;c[(z&p)+32>>2]=le;z=z+40|0}while((z|0)!=(r|0));r=c[(tb&p)>>2]|0;z=J}else{s=K+16|0;z=c[(L&p)>>2]|0}c[(tb&p)>>2]=r+1;c[(z&p)+4>>2]=c[(sb&p)>>2];S=z+32|0;c[(S&p)>>2]=m;c[(S&p)+4>>2]=l;c[(z&p)+68>>2]=c[(ub&p)>>2];c[(z&p)+72>>2]=c[((c[(f&p)>>2]|0)&p)+80>>2];c[(ub&p)>>2]=0;c[(sb&p)>>2]=z;S=z+40|0;c[(Nc&p)>>2]=S;U=c[(z&p)+60>>2]|0;c[(Ca&p)>>2]=U;V=c[(z&p)+64>>2]&65535;c[(Da&p)>>2]=V;U=S+((U+1|0)*40|0)|0;c[(Ib&p)>>2]=U;T=c[(K&p)>>2]|0;c[(zc&p)>>2]=T;c[(Ea&p)>>2]=c[(K&p)+4>>2];V=U+(V<<2)|0;c[(Hb&p)>>2]=V;U=c[(s&p)>>2]|0;c[(Fa&p)>>2]=U;fw(V|0,0,U|0)|0;U=W;V=X;r=-1;break}case 1009:{ie=0;S=c[(sb&p)>>2]|0;Zl(u,(c[(S&p)+16>>2]|0)+(((c[((c[(S&p)+8>>2]|0)+((c[(S&p)+44>>2]|0)*20|0)&p)+4>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]|0)|0)*40|0)|0,4096);S=z;T=s;U=W;V=X;break}case 1010:{ie=0;if(c[(Tb&p)>>2]&16777216){T=c[(s+(r*20|0)&p)+8>>2]|0;S=Rb;T=jw(c[(S&p)>>2]|0,c[(S&p)+4>>2]|0,T|0,((T|0)<0)<<31>>31|0)|0;S=Rb;c[(S&p)>>2]=T;c[(S&p)+4>>2]=G;S=z;T=s;U=W;V=X;u=J;break}t=c[(s+(r*20|0)&p)+8>>2]|0;u=((t|0)<0)<<31>>31;if(!(c[(s+(r*20|0)&p)+4>>2]|0)){T=_d;T=jw(c[(T&p)>>2]|0,c[(T&p)+4>>2]|0,t|0,u|0)|0;S=_d;c[(S&p)>>2]=T;c[(S&p)+4>>2]=G;S=z;T=s;U=W;V=X;u=J;break}else{T=Qb;T=jw(c[(T&p)>>2]|0,c[(T&p)+4>>2]|0,t|0,u|0)|0;S=Qb;c[(S&p)>>2]=T;c[(S&p)+4>>2]=G;S=z;T=s;U=W;V=X;u=J;break}}case 1015:{ie=0;if(!(c[(s+(r*20|0)&p)+4>>2]|0)){V=_d;if(!((c[(V&p)>>2]|0)==0&(c[(V&p)+4>>2]|0)==0)){S=z;T=s;U=W;V=X;break}V=Rb;if(!((c[(V&p)>>2]|0)==0&(c[(V&p)+4>>2]|0)==0)){S=z;T=s;U=W;V=X;break}S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0;break}else{V=Qb;if(!((c[(V&p)>>2]|0)==0&(c[(V&p)+4>>2]|0)==0)){S=z;T=s;U=W;V=X;break}V=Rb;if(!((c[(V&p)>>2]|0)==0&(c[(V&p)+4>>2]|0)==0)){S=z;T=s;U=W;V=X;break}S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0;break}}case 1022:{ie=0;t=c[(sb&p)>>2]|0;if(!t)v=z+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)|0;else{while(1){u=c[(t&p)+4>>2]|0;if(!u)break;else t=u}v=(c[(t&p)+16>>2]|0)+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)|0}U=Vg(v)|0;V=v;c[(V&p)>>2]=U;c[(V&p)+4>>2]=G;V=v+8|0;b[(V&o)>>1]=e[(V&o)>>1]&48640|4;V=c[(s+(r*20|0)&p)+8>>2]|0;U=z+(V*40|0)|0;t=Vg(U)|0;u=G;c[(U&p)>>2]=t;c[(U&p)+4>>2]=u;V=z+(V*40|0)+8|0;b[(V&o)>>1]=e[(V&o)>>1]&48640|4;V=v;U=c[(V&p)+4>>2]|0;if((U|0)<(u|0)|((U|0)==(u|0)?(c[(V&p)>>2]|0)>>>0>>0:0)){S=v;c[(S&p)>>2]=t;c[(S&p)+4>>2]=u;S=z;T=s;U=W;V=X;u=L}else{S=z;T=s;U=W;V=X;u=L}break}case 1028:{ie=0;V=z+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)|0;U=c[(V&p)+4>>2]|0;if((U|0)>0|(U|0)==0&(c[(V&p)>>2]|0)>>>0>0){S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0}else{S=z;T=s;U=W;V=X}break}case 1030:{ie=0;T=c[(s+(r*20|0)&p)+12>>2]|0;U=z+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)|0;V=U;T=jw(c[(V&p)>>2]|0,c[(V&p)+4>>2]|0,T|0,((T|0)<0)<<31>>31|0)|0;V=G;c[(U&p)>>2]=T;c[(U&p)+4>>2]=V;if((V|0)<0){S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0}else{S=z;T=s;U=W;V=X}break}case 1032:{ie=0;t=z+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)|0;v=t;u=c[(v&p)>>2]|0;v=c[(v&p)+4>>2]|0;if((u|0)==0&(v|0)==0){S=z;T=s;U=W;V=X;u=J}else{T=c[(s+(r*20|0)&p)+12>>2]|0;T=jw(T|0,((T|0)<0)<<31>>31|0,u|0,v|0)|0;S=t;c[(S&p)>>2]=T;c[(S&p)+4>>2]=G;S=z;T=s;U=W;V=X;u=J;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0}break}case 1034:{ie=0;T=z+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)|0;U=T;U=jw(c[(U&p)>>2]|0,c[(U&p)+4>>2]|0,-1,-1)|0;V=G;c[(T&p)>>2]=U;c[(T&p)+4>>2]=V;if((U|0)==0&(V|0)==0){S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0}else{S=z;T=s;U=W;V=X}break}case 1036:{ie=0;T=z+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)|0;V=T;U=c[(V&p)>>2]|0;V=c[(V&p)+4>>2]|0;S=jw(U|0,V|0,1,0)|0;c[(T&p)>>2]=S;c[(T&p)+4>>2]=G;if((U|0)==0&(V|0)==0){S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0}else{S=z;T=s;U=W;V=X}break}case 1157:{ie=0;S=z;T=s;U=W;V=X;r=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;break}case 1158:{ie=0;if(c[(s+(r*20|0)&p)+4>>2]|0){b[(Yd&o)>>1]=b[(Yd&o)>>1]|8;S=z;T=s;U=W;V=X;break}t=c[(Vb&p)>>2]|0;if(!t){S=z;T=s;U=W;V=X}else{do{V=t+88|0;b[(V&o)>>1]=b[(V&o)>>1]|8;t=c[(t&p)+52>>2]|0}while((t|0)!=0);S=z;T=s;U=W;V=X}break}case 1166:{ie=0;J=(c[(w&p)>>2]|0)+72|0;t=c[(J&p)>>2]|0;D:do if(t){while(1){if((c[(t&p)+4>>2]|0)==(A|0)?(c[(t&p)>>2]|0)==(C|0):0)break;t=c[(t&p)+12>>2]|0;if(!t){ie=1171;break D}}if(!t)ie=1171}else ie=1171;while(0);if((ie|0)==1171){ie=0;t=qg(16,0)|0;if(!t){t=r;s=7;u=x;ie=1309;break c}U=t+0|0;V=U+12|0;do{a[(U&n)>>0]=0;U=U+1|0}while((U|0)<(V|0));c[(t&p)+4>>2]=A;c[(t&p)>>2]=C;c[(t&p)+12>>2]=c[(J&p)>>2];c[(J&p)>>2]=t}t=t+8|0;if((d[(t&n)>>0]|0)<(v&255)){a[(t&n)>>0]=v;S=z;T=s;U=W;V=X}else{S=z;T=s;U=W;V=X}break}case 1213:{ie=0;c[(sd&p)>>2]=0;v=c[((c[(s+(r*20|0)&p)+16>>2]|0)&p)+8>>2]|0;if(!v){t=r;s=6;u=x;ie=1309;break c}w=c[(v&p)>>2]|0;if(!w){t=r;s=6;u=x;ie=1309;break c}C=rc[c[(w&p)+24>>2]&127](v,sd)|0;Mm(f,v);if(C){t=r;s=C;u=x;ie=1309;break c}c[(c[(sd&p)>>2]&p)>>2]=v;t=xm(f,c[(s+(r*20|0)&p)+4>>2]|0,0,-1,0)|0;if(!t){a[(ge&n)>>0]=1;lc[c[(w&p)+28>>2]&127](c[(sd&p)>>2]|0)|0;S=z;T=s;U=W;V=X;break}else{c[(t&p)+32>>2]=c[(sd&p)>>2];S=v+4|0;c[(S&p)>>2]=(c[(S&p)>>2]|0)+1;S=z;T=s;U=W;V=X;break}}case 1226:{ie=0;t=z+(C*40|0)+8|0;if(!(b[(t&o)>>1]&9312)){b[(t&o)>>1]=1;S=z;T=s;U=W;V=X;break}else{vg(A);S=z;T=s;U=W;V=X;break}}case 1257:{ie=0;S=u;c[(S&p)>>2]=c[((c[((c[((c[(Xd&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<4)&p)+4>>2]|0)&p)+4>>2]|0)&p)+44>>2];c[(S&p)+4>>2]=0;S=z;T=s;U=W;V=X;break}case 1258:{ie=0;v=c[((c[(Xd&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<4)&p)+4>>2]|0;t=c[(s+(r*20|0)&p)+12>>2]|0;u=c[(v&p)+4>>2]|0;if(!t)t=0;else{V=c[(u&p)+44>>2]|0;t=V>>>0>>0?t:V}c[(u&p)+4>>2]=c[(v&p)>>2];u=(c[(u&p)>>2]|0)+156|0;if((t|0)>0)c[(u&p)>>2]=t;else t=c[(u&p)>>2]|0;S=J;c[(S&p)>>2]=t;c[(S&p)+4>>2]=((t|0)<0)<<31>>31;S=z;T=s;U=W;V=X;u=J;break}case 1264:{ie=0;r=c[(s+(t*20|0)&p)+8>>2]|0;r=(r|0)==0?t:r+-1|0;if((c[(Sa&p)>>2]|0)!=0?(b[(Yd&o)>>1]&512)==0:0){t=c[(s+(t*20|0)&p)+16>>2]|0;if(!t){t=c[(ce&p)>>2]|0;if(!t){S=z;T=s;U=W;V=X;u=L;break}}c[(Sd&p)>>2]=0;F=c[(f&p)>>2]|0;v=c[(F&p)+88>>2]|0;c[(fb&p)>>2]=Nd;c[(gb&p)>>2]=Nd;c[(hb&p)>>2]=0;c[(ib&p)>>2]=100;c[(jb&p)>>2]=v;a[(kb&n)>>0]=1;a[(lb&n)>>0]=0;c[(qd&p)>>2]=F;v=a[(t&n)>>0]|0;u=v<<24>>24==0;E:do if((c[(F&p)+160>>2]|0)>1){if(!u)while(1){u=t;do{u=u+1|0;if(v<<24>>24==10)break;v=a[(u&n)>>0]|0}while(v<<24>>24!=0);Sk(qd,42288,3);Sk(qd,t,u-t|0);v=a[(u&n)>>0]|0;if(!(v<<24>>24))break;else t=u}}else if(!u){H=F+62|0;K=1;do{F:do if(!(v<<24>>24)){A=0;u=0}else{C=t;u=0;while(1){A=Cn(C,ke)|0;if((c[(ke&p)>>2]|0)==135)break F;u=A+u|0;C=C+A|0;if(!(a[(C&n)>>0]|0)){A=0;break}}}while(0);Sk(qd,t,u);C=t+u|0;if(!A)break E;do if((a[(C&n)>>0]|0)==63)if((A|0)>1){Dn(t+(u+1)|0,Sd)|0;C=c[(Sd&p)>>2]|0;break}else{c[(Sd&p)>>2]=K;C=K;break}else{C=qh(f,C,A)|0;c[(Sd&p)>>2]=C}while(0);t=t+(u+A)|0;K=C+1|0;J=C+-1|0;I=c[(Ab&p)>>2]|0;C=I+(J*40|0)|0;A=e[(I+(J*40|0)&o)+8>>1]|0;do if(!(A&1)){if(A&4){T=C;U=c[(T&p)+4>>2]|0;V=ke;c[(V&p)>>2]=c[(T&p)>>2];c[(V&p)+4>>2]=U;En(qd,0,19920,ke);break}if(A&8){h[(k&q)>>3]=+h[(C&q)>>3];c[(ke&p)>>2]=c[(k&p)>>2];c[(ke&p)+4>>2]=c[(k&p)+4>>2];En(qd,0,20272,ke);break}if(!(A&2)){if(A&16384){c[(ke&p)>>2]=c[(C&p)>>2];En(qd,0,42304,ke);break}Sk(qd,42320,2);E=c[(I+(J*40|0)&p)+12>>2]|0;if((E|0)>0){C=I+(J*40|0)+16|0;A=0;do{c[(ke&p)>>2]=d[((c[(C&p)>>2]|0)+A&n)>>0];En(qd,0,42328,ke);A=A+1|0}while((A|0)!=(E|0))}Sk(qd,42336,1);break}else{E=a[(H&n)>>0]|0;if(E<<24>>24==1){V=c[(I+(J*40|0)&p)+16>>2]|0;c[(ke&p)>>2]=c[(I+(J*40|0)&p)+12>>2];c[(ke&p)+4>>2]=V;En(qd,0,42296,ke);break}U=Od+0|0;V=U+40|0;do{c[(U&p)>>2]=0;U=U+4|0}while((U|0)<(V|0));c[(nb&p)>>2]=F;Xg(Od,c[(I+(J*40|0)&p)+16>>2]|0,c[(I+(J*40|0)&p)+12>>2]|0,E,0)|0;V=c[(ob&p)>>2]|0;if(!((V&2|0)==0|(V&16711680|0)==65536))Bn(Od,1)|0;V=c[(qb&p)>>2]|0;c[(ke&p)>>2]=c[(pb&p)>>2];c[(ke&p)+4>>2]=V;En(qd,0,42296,ke);if((b[(ob&o)>>1]&9312)==0&(c[(rb&p)>>2]|0)==0)break;Qg(Od);break}}else Sk(qd,20304,4);while(0);v=a[(t&n)>>0]|0}while(v<<24>>24!=0)}while(0);S=tg(qd)|0;jc[c[(Sa&p)>>2]&15](c[(mb&p)>>2]|0,S);mg(le,S);S=z;T=s;U=W;V=X;u=L}else{S=z;T=s;U=W;V=X;u=L}break}}if((ie|0)==28){ie=0;z=s+(r*20|0)+4|0;t=c[(z&p)>>2]|0;if(t){y=z;ie=34;break}z=c[(sb&p)>>2]|0;if(!z){ie=30;break}c[(sb&p)>>2]=c[(z&p)+4>>2];c[(tb&p)>>2]=(c[(tb&p)>>2]|0)+-1;l=c[(ub&p)>>2]|0;c[(vb&p)>>2]=l;c[(wb&p)>>2]=(c[(wb&p)>>2]|0)+l;z=Xl(z)|0;l=ne;t=c[(zc&p)>>2]|0;if((c[(s+(r*20|0)&p)+8>>2]|0)==4)r=(c[(t+(z*20|0)&p)+8>>2]|0)+-1|0;else r=z;m=c[(l&p)>>2]|0;l=c[(l&p)+4>>2]|0;S=c[(Nc&p)>>2]|0;T=t;U=W;V=X}else if((ie|0)==488){ie=0;u=sm(le,C,A)|0;if(!u){S=z;T=s;U=W;V=X;u=E}else{t=r;ie=1318;break}}z=S;s=T;W=U;X=V;t=r+1|0}switch(ie|0){case 30:{c[(me&p)>>2]=t;a[(fe&n)>>0]=c[(s+(r*20|0)&p)+8>>2];c[(he&p)>>2]=r;ie=41;break}case 34:{c[(me&p)>>2]=t;a[(fe&n)>>0]=c[(s+(r*20|0)&p)+8>>2];c[(he&p)>>2]=r;t=a[(s+(r*20|0)&n)+3>>0]|0;if(!(t<<24>>24)){s=c[(s+(r*20|0)&p)+16>>2]|0;if(!s){s=0;ie=39}else{c[(ke&p)>>2]=s;dh(je,le,10344,ke)}}else{u=c[((t&255)+-1<<2&p)+41536>>2]|0;t=c[(s+(r*20|0)&p)+16>>2]|0;if(!t){s=u;ie=39}else{c[(ke&p)>>2]=u;c[(ke&p)+4>>2]=t;dh(je,le,41624,ke)}}if((ie|0)==39){c[(ke&p)>>2]=s;dh(je,le,41656,ke)}ie=c[(y&p)>>2]|0;qd=c[(ce&p)>>2]|0;rd=c[(je&p)>>2]|0;c[(ke&p)>>2]=r;c[(ke&p)+4>>2]=qd;c[(ke&p)+8>>2]=rd;bd(ie,41600,ke);ie=41;break}case 80:{x=c[(be&p)>>2]|0;if(!((x|0)==0|g>>>0>>0)?(lc[x&127](c[(Zd&p)>>2]|0)|0)!=0:0){r=m;s=9;m=u;ie=1311;break a}rd=_d;qd=c[(rd&p)+4>>2]|0;if((qd|0)>0|(qd|0)==0&(c[(rd&p)>>2]|0)>>>0>0){s=c[(f&p)>>2]|0;c[(me&p)>>2]=787;a[(fe&n)>>0]=2;dh(je,s,34376,ke);s=1;ie=1309;break}x=$l(f,1)|0;if(!x){c[($d&p)>>2]=(c[($d&p)>>2]|0)+2|1;y=c[(s+(t*20|0)&p)+4>>2]|0;c[(de&p)>>2]=z+(y*40|0);r=s+(t*20|0)+8|0;if((c[(r&p)>>2]|0)>0){x=0;do{v=x+y|0;w=z+(v*40|0)|0;v=z+(v*40|0)+8|0;s=b[(v&o)>>1]|0;if(s&4096){if(Vl(w)|0){y=ge;z=je;r=m;m=u;ie=1317;break a}s=b[(v&o)>>1]|0}if((s&514)==2)am(w)|0;x=x+1|0}while((x|0)<(c[(r&p)>>2]|0))}if(a[(ge&n)>>0]|0){y=ge;z=je;r=m;m=u;ie=1317;break a}c[(he&p)>>2]=t+1;r=m;m=g;g=100;break a}else{s=x;ie=1309}break}case 313:{c[(ke&p)>>2]=73058;c[(ke&p)+4>>2]=10788;bd(11,13600,ke);s=11;ie=1309;break}case 343:{c[(ke&p)>>2]=73142;c[(ke&p)+4>>2]=10788;bd(11,13600,ke);s=11;ie=1309;break}case 447:{dh(je,le,41712,ke);t=r;s=5;ie=1309;break}case 460:{c[(ke&p)>>2]=s;dh(je,le,41768,ke);s=1;ie=1309;break}case 462:{dh(je,le,41792,ke);s=5;ie=1309;break}case 467:{c[(he&p)>>2]=g;a[(ee&n)>>0]=0;c[(me&p)>>2]=5;g=5;break a}case 489:{v=c[(s+(t*20|0)&p)+4>>2]|0;s=c[(s+(t*20|0)&p)+8>>2]|0;g=(v|0)!=0;if(g){s=(s|0)!=0;if(!(s|(a[(ee&n)>>0]|0)!=0))if((c[(ae&p)>>2]|0)>0){dh(je,le,41848,ke);g=m;m=r;s=5;ie=1309;break}else s=0}else s=(s|0)!=0;if((v|0)==(d[(ee&n)>>0]|0)){if(g)g=s?41952:42e3;else g=41904;dh(je,le,g,ke);g=m;m=r;s=1;ie=1309;break}if(!s){g=tm(f,1)|0;if(g)break a;a[(ee&n)>>0]=v;if((Rl(f)|0)==5){c[(he&p)>>2]=t;a[(ee&n)>>0]=1-v;c[(me&p)>>2]=5;g=5;break a}}else{Kl(le,516);a[(ee&n)>>0]=1}Ll(le);g=(c[(me&p)>>2]|0)==0?101:1;break a}case 508:{c[(he&p)>>2]=g;c[(me&p)>>2]=5;g=5;break a}case 522:{mg(le,c[(je&p)>>2]|0);c[(je&p)>>2]=kh(le,16040)|0;s=c[(s&p)>>2]|0;if((c[(c[((c[(Xd&p)>>2]|0)+(s<<4)&p)+12>>2]&p)>>2]|0)!=(v|0))vm(le,s);b[(Yd&o)>>1]=b[(Yd&o)>>1]|8;s=17;ie=1309;break}case 542:{c[(ke&p)>>2]=73997;c[(ke&p)+4>>2]=10788;bd(11,13600,ke);u=11;x=s;ie=1318;break}case 560:{c[(s&p)+56>>2]=0;s=7;ie=1309;break}case 832:{a[(fe&n)>>0]=2;s=6;ie=1309;break}case 882:{Eg(le);y=ge;z=je;r=m;m=u;ie=1317;break a}case 884:{Eg(le);if((s|0)==7){y=ge;z=je;r=m;m=u;ie=1317;break a}else ie=1309;break}case 998:{dh(je,le,42112,ke);s=1;ie=1309;break}case 1080:{c[(ke&p)>>2]=s?42208:42216;dh(je,le,42152,ke);s=1;ie=1309;break}case 1101:{dh(je,le,42344,ke);s=1;ie=1309;break}case 1103:{dh(je,le,42384,ke);s=1;ie=1309;break}case 1145:{c[(ke&p)>>2]=56343;c[(ke&p)+4>>2]=10788;bd(11,13600,ke);s=11;ie=1309;break}case 1316:{dh(je,le,10096,ke);r=m;s=18;m=u;ie=1311;break a}}if((ie|0)==41)if((Rl(f)|0)==5){c[(me&p)>>2]=5;r=m;m=g;g=5;break a}else{r=m;m=g;g=(c[(me&p)>>2]|0)!=0?1:101;break a}else if((ie|0)==1309){r=m;t=t+1|0;m=u;ie=1311;break a}else if((ie|0)==1318){u=(a[(ge&n)>>0]|0)==0?u:7;if((u|0)==3082){r=m;s=3082;m=x;ie=1311;break a}else if((u|0)!=516){r=u&255;if(r>>>0>26|(r|0)==2)s=16328;else s=c[(r<<2&p)+15488>>2]|0}else s=16344;c[(ke&p)>>2]=s;dh(je,le,10344,ke);r=m;s=u;m=x;ie=1311;break a}}else{u=f+44|0;r=m;g=0;t=0;m=0}while(0);c[(me&p)>>2]=9;c[(ke&p)>>2]=15832;dh(u,le,10344,ke);s=9;ie=1311}while(0);if((ie|0)==1317){a[(y&n)>>0]=1;dh(z,le,15776,ke);s=7;ie=1311}if((ie|0)==1311){c[(me&p)>>2]=s;qd=c[(f&p)+168>>2]|0;rd=c[(f&p)+44>>2]|0;c[(ke&p)>>2]=t;c[(ke&p)+4>>2]=qd;c[(ke&p)+8>>2]=rd;bd(s,42256,ke);Rl(f)|0;if((s|0)==3082)a[(le&n)+65>>0]=1;if(!(m<<24>>24)){m=g;g=1}else{vm(le,(m&255)+-1|0);m=g;g=1}}rd=ne;c[(rd&p)>>2]=r;c[(rd&p)+4>>2]=l;rd=f+124|0;c[(rd&p)>>2]=(c[(rd&p)>>2]|0)+m;i=oe;return g|0} function Ev(e){e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=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=e+20|0;u=e+14|0;f=a[(u&n)>>0]|0;z=e+13|0;g=a[(z&n)>>0]|0;a:do if((f&255)>(g&255))f=0;else{B=e+4|0;C=e+16|0;v=e+8|0;w=e+12|0;x=e+24|0;y=e+28|0;i=f&255;j=c[(B&p)>>2]|0;h=c[(D&p)>>2]|0;b:while(1){t=c[(e+(i+-2<<2)&p)+24>>2]|0;s=c[(e+(i+-1<<2)&p)+24>>2]|0;if(j){while(1){r=j+12|0;if((h|0)<(c[(r&p)>>2]|0)){g=h;f=(c[(j&p)+20>>2]|0)+(h*48|0)|0;while(1){do if((c[(f&p)+8>>2]|0)==(t|0)?(c[(f&p)+12>>2]|0)==(s|0):0){if((d[(u&n)>>0]|0)>=3?(c[((c[(f&p)>>2]|0)&p)+4>>2]&1|0)!=0:0)break;q=f+18|0;h=b[(q&o)>>1]|0;if((h&1024)!=0?(A=a[(z&n)>>0]|0,(A&255)<22):0){i=c[((c[(f&p)>>2]|0)&p)+16>>2]|0;c:do if(!i)i=0;else while(1){k=c[(i&p)+4>>2]|0;if(!(k&4096))break c;if(!(k&262144))i=i+12|0;else i=c[((c[(i&p)+20>>2]|0)&p)+4>>2]|0;i=c[(i&p)>>2]|0;if(!i){i=0;break}}while(0);d:do if(!(A<<24>>24)){m=0;k=0}else{l=c[(i&p)+28>>2]|0;m=i+32|0;k=0;while(1){if((c[(e+(k<<2)&p)+24>>2]|0)==(l|0)?(c[(e+((k|1)<<2)&p)+24>>2]|0)==(b[(m&o)>>1]|0):0){m=A;break d}k=k+2|0;if((k|0)>=(A&255|0)){m=A;break}}}while(0);if((k|0)==(m&255|0)){c[(e+(k<<2)&p)+24>>2]=c[(i&p)+28>>2];c[(e+((k|1)<<2)&p)+24>>2]=b[(i&o)+32>>1];a[(z&n)>>0]=(d[(z&n)>>0]|0)+2}}i=h&65535;if(i&c[(C&p)>>2]){if((c[(v&p)>>2]|0)!=0&(i&128|0)==0){l=c[(c[(j&p)>>2]&p)>>2]|0;k=c[(f&p)>>2]|0;i=a[(w&n)>>0]|0;h=(nv(k)|0)<<24>>24;if((h|0)==66){if(i<<24>>24!=66)break}else if((h|0)!=65?i<<24>>24<=66:0)break;h=Ou(l,c[(k&p)+12>>2]|0,c[(k&p)+16>>2]|0)|0;if(!h)h=c[((c[(l&p)>>2]|0)&p)+8>>2]|0;if(dd(c[(h&p)>>2]|0,c[(v&p)>>2]|0)|0)break;h=b[(q&o)>>1]|0}if(!(h&2))break b;h=c[((c[(f&p)>>2]|0)&p)+16>>2]|0;if((a[(h&n)>>0]|0)!=-102)break b;if((c[(h&p)+28>>2]|0)!=(c[(x&p)>>2]|0))break b;if((b[(h&o)+32>>1]|0)!=(c[(y&p)>>2]|0))break b}}while(0);g=g+1|0;if((g|0)>=(c[(r&p)>>2]|0))break;else f=f+48|0}g=c[(B&p)>>2]|0}else g=j;j=c[(g&p)+4>>2]|0;c[(B&p)>>2]=j;if(!j)break;else h=0}f=a[(u&n)>>0]|0;g=a[(z&n)>>0]|0}j=c[(e&p)>>2]|0;c[(B&p)>>2]=j;h=(f&255)+2|0;f=h&255;a[(u&n)>>0]=f;if((f&255)>(g&255)){f=0;break a}else{i=h&255;h=0}}c[(D&p)>>2]=g+1}while(0);return f|0}function Fv(d,f){d=d|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0,m=0,q=0;g=c[(d&p)>>2]|0;l=c[(c[(g&p)>>2]&p)>>2]|0;d=c[(d&p)+16>>2]|0;a:do if(!d){g=g+16|0;i=c[(g&p)>>2]|0;k=f+36|0;if((c[(k&p)>>2]&512|0)!=0&(i|0)!=0){d=f+20|0;j=f+22|0;h=a[(f&n)+16>>0]|0;do{do if((a[(i&n)+16>>0]|0)==h<<24>>24?(c[(i&p)+36>>2]&512|0)!=0:0){if(Tv(i,f)|0){b[(d&o)>>1]=b[(i&o)+20>>1]|0;b[(j&o)>>1]=(e[(i&o)+22>>1]|0)+65535;break}if(Tv(f,i)|0){b[(d&o)>>1]=b[(i&o)+20>>1]|0;b[(j&o)>>1]=(e[(i&o)+22>>1]|0)+1}}while(0);i=c[(i&p)+52>>2]|0}while((i|0)!=0)}d=Uv(g,f)|0;if(d){g=c[(d&p)>>2]|0;b:do if(g){d=g+52|0;if(c[(d&p)>>2]|0)do{d=Uv(d,f)|0;if(!d)break b;h=c[(d&p)>>2]|0;if(!h)break b;c[(d&p)>>2]=c[(h&p)+52>>2];Ju(l,h);mg(l,h)}while((c[(d&p)>>2]|0)!=0)}else{g=mh(l,72,0)|0;c[(d&p)>>2]=g;if(!g){d=7;break a}c[(g&p)+48>>2]=g+56;b[(g&o)+40>>1]=0;b[(g&o)+44>>1]=3;c[(g&p)+36>>2]=0;c[(g&p)+52>>2]=0}while(0);Lv(l,g);do if(!(Nu(l,g,e[(f&o)+40>>1]|0)|0)){h=g+0|0;d=f+0|0;i=h+44|0;do{c[(h&p)>>2]=c[(d&p)>>2];h=h+4|0;d=d+4|0}while((h|0)<(i|0));kw(c[(g&p)+48>>2]|0,c[(f&p)+48>>2]|0,e[(g&o)+40>>1]<<2|0)|0;d=c[(k&p)>>2]|0;if(d&1024){a[(f&n)+28>>0]=0;break}if(d&16384)c[(f&p)+28>>2]=0}else{d=g+24|0;c[(d&p)>>2]=0;c[(d&p)+4>>2]=0;c[(d&p)+8>>2]=0}while(0);if(((c[(g&p)+36>>2]&1024|0)==0?(m=g+28|0,q=c[(m&p)>>2]|0,(q|0)!=0):0)?(c[(q&p)+40>>2]|0)==0:0){c[(m&p)>>2]=0;d=0}else d=0}else d=0}else{g=f;Kv(d,c[(g&p)>>2]|0,c[(g&p)+4>>2]|0,b[(f&o)+20>>1]|0,b[(f&o)+22>>1]|0);d=0}while(0);return d|0}function Gv(a,b){a=a|0;b=b|0;var c=0,e=0;c=a<<16>>16;e=b<<16>>16;do if(a<<16>>16>16)if((e|0)<=(c+49|0))if((e|0)>(c+31|0)){a=e+1&65535;break}else{a=(d[(e-c&n)+34032>>0]|0)+e&65535;break}else a=b;else if((c|0)<=(e+49|0))if((c|0)>(e+31|0)){a=c+1&65535;break}else{a=(d[(c-e&n)+34032>>0]|0)+c&65535;break}while(0);return a|0}function Hv(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0;do if(!(Cu(b,d,e)|0))f=1;else{f=a[(d&n)>>0]|0;if(f<<24>>24==71){if(Hv(b,c[(d&p)+12>>2]|0,e)|0){f=1;break}if(Hv(b,c[(d&p)+16>>2]|0,e)|0){f=1;break}if(f<<24>>24==77)g=6}else if(f<<24>>24==77)g=6;if(((g|0)==6?(Cu(c[(b&p)+12>>2]|0,c[(d&p)+12>>2]|0,e)|0)==0:0)?(f=a[(b&n)>>0]|0,!(f<<24>>24==73|f<<24>>24==76)):0){f=1;break}f=0}while(0);return f|0}function Iv(a,d,f){a=a|0;d=d|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0;x=i;i=i+16|0;if((i|0)>=(j|0))fa();w=x;u=d;v=d+8|0;g=v;t=~(c[(g&p)>>2]|c[(u&p)>>2]);u=~(c[(g&p)+4>>2]|c[(u&p)+4>>2]);g=c[(a&p)+12>>2]|0;r=a+20|0;a:do if((g|0)>0){s=d+40|0;a=d+22|0;q=d+48|0;d=0;n=c[(r&p)>>2]|0;while(1){if(b[(n&o)+20>>1]&2)break a;m=n+40|0;l=c[(m&p)>>2]|0;m=c[(m&p)+4>>2]|0;k=v;b:do if(((c[(k&p)>>2]&l|0)!=0?1:(c[(k&p)+4>>2]&m|0)!=0)&((l&t|0)==0&(m&u|0)==0)){h=b[(s&o)>>1]|0;c:do if(h<<16>>16){m=c[(q&p)>>2]|0;l=h&65535;while(1){h=l;l=l+-1|0;k=c[(m+(l<<2)&p)>>2]|0;if(k){if((k|0)==(n|0))break;k=c[(k&p)+4>>2]|0;if((k|0)>-1?((c[(r&p)>>2]|0)+(k*48|0)|0)==(n|0):0)break}if((l|0)<=0)break c}if((h|0)>=1)break b}while(0);h=b[(n&o)+16>>1]|0;if(h<<16>>16<1){b[(a&o)>>1]=(e[(a&o)>>1]|0)+(h&65535);break}b[(a&o)>>1]=(b[(a&o)>>1]|0)+-1<<16>>16;if(b[(n&o)+18>>1]&2){l=(Ms(c[((c[(n&p)>>2]|0)&p)+16>>2]|0,w)|0)!=0;m=c[(w&p)>>2]|0;m=l&(m|0)>-2&(m|0)<2?10:20;c[(w&p)>>2]=m;d=(d<<16>>16|0)<(m|0)?m&65535:d}}while(0);g=g+-1|0;if((g|0)<=0)break;else n=n+48|0}}else{a=d+22|0;d=0}while(0);d=(f<<16>>16)-(d<<16>>16)|0;if((b[(a&o)>>1]|0)>(d|0))b[(a&o)>>1]=d;i=x;return}function Jv(d,f,g,h){d=d|0;f=f|0;g=g|0;h=h|0;var k=0,l=0,m=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,ga=0,ha=0;ha=i;i=i+112|0;if((i|0)>=(j|0))fa();R=ha;V=c[(c[(c[(d&p)>>2]&p)>>2]&p)>>2]|0;ea=c[(d&p)+12>>2]|0;if(!(a[(V&n)+65>>0]|0)){ga=ea+36|0;if(!(c[(ga&p)>>2]&32))if((c[(g&p)+40>>2]|0)<1)k=63;else k=(a[(f&n)+36>>0]&8)<<4^191;else k=24;W=g+51|0;ca=ea+24|0;l=b[((c[(g&p)+4>>2]|0)+(e[(ca&o)>>1]<<1)&o)>>1]|0;N=l<<16>>16;O=d+4|0;k=Dv(R,c[(O&p)>>2]|0,c[(f&p)+40>>2]|0,N,(a[(W&n)>>0]&4)==0?k:k&131,g)|0;X=b[(ca&o)>>1]|0;Y=ea+42|0;T=b[(Y&o)>>1]|0;Z=ea+40|0;U=b[(Z&o)>>1]|0;_=c[(ga&p)>>2]|0;Q=ea;P=c[(Q&p)>>2]|0;Q=c[(Q&p)+4>>2]|0;$=ea+22|0;aa=b[($&o)>>1]|0;b[(ea&o)+18>>1]=0;ba=g+8|0;D=b[(c[(ba&p)>>2]&o)>>1]|0;if(D<<16>>16<11)C=0;else{C=D<<16>>16;C=((fs(C,((C|0)<0)<<31>>31)|0)&65535)+65503&65535}a:do if(!k)k=0;else{E=l<<16>>16<0;F=f+16|0;G=ea+8|0;H=(U&65535)+1|0;I=ea+48|0;J=h<<16>>16==0;K=g+46|0;w=l<<16>>16>-1;x=g+50|0;y=g+44|0;z=ea+20|0;A=h<<16>>16;B=g+48|0;r=0;u=k;s=0;while(1){l=b[(u&o)+18>>1]|0;t=l&65535;if(l<<16>>16==128)if(!E?(a[((c[((c[(F&p)>>2]|0)&p)+4>>2]|0)+(N*24|0)&n)+20>>0]|0)==0:0)S=12;else{m=r;l=s;k=0}else S=12;if((S|0)==12){S=0;m=u+32|0;v=m;q=G;if(((c[(q&p)>>2]&c[(v&p)>>2]|0)==0?(c[(q&p)+4>>2]&c[(v&p)+4>>2]|0)==0:0)?(L=u+20|0,!((b[(L&o)>>1]&256)!=0&l<<16>>16==16)):0){c[(ga&p)>>2]=_;b[(ca&o)>>1]=X;b[(Z&o)>>1]=U;if(Nu(V,ea,H)|0){k=0;break a}k=b[(Z&o)>>1]|0;q=k+1<<16>>16;b[(Z&o)>>1]=q;c[((c[(I&p)>>2]|0)+((k&65535)<<2)&p)>>2]=u;k=m;l=G;m=(c[(k&p)+4>>2]|Q)&~c[(l&p)+4>>2];v=ea;c[(v&p)>>2]=(c[(k&p)>>2]|P)&~c[(l&p)>>2];c[(v&p)+4>>2]=m;b:do if(!(t&1)){if(t&2){k=c[(ga&p)>>2]|0;l=k|1;c[(ga&p)>>2]=l;do if(!E){if(!J){v=0;break b}if((e[(ca&o)>>1]|0)!=((e[(K&o)>>1]|0)+-1|0)){v=0;break b}if(!w)break;if(a[(x&n)>>0]|0)break;l=k|65537;c[(ga&p)>>2]=l;v=0;break b}while(0);l=k|4097;c[(ga&p)>>2]=l;v=0;break}if(t&128){l=c[(ga&p)>>2]|8;c[(ga&p)>>2]=l;v=0;break}k=c[(ga&p)>>2]|0;if(!(t&36)){l=k|18;c[(ga&p)>>2]=l;if(!(k&32)){v=0;r=0;s=u;break}v=0;r=c[((c[(I&p)>>2]|0)+((q&65535)+-2<<2)&p)>>2]|0;s=u;break}l=k|34;c[(ga&p)>>2]=l;if(!(b[(L&o)>>1]&256)){v=0;r=u;s=0}else{k=u+48|0;if(Nu(V,ea,(q&65535)+1|0)|0){k=0;break a}l=b[(Z&o)>>1]|0;b[(Z&o)>>1]=l+1<<16>>16;c[((c[(I&p)>>2]|0)+((l&65535)<<2)&p)>>2]=k;l=c[(ga&p)>>2]|16;c[(ga&p)>>2]=l;v=0;r=u;s=k}}else{k=c[(u&p)>>2]|0;l=c[(ga&p)>>2]|4;c[(ga&p)>>2]=l;if(!(c[(k&p)+4>>2]&2048)){k=c[(k&p)+20>>2]|0;if((k|0)!=0?(M=c[(k&p)>>2]|0,(M|0)!=0):0)v=(fs(M,((M|0)<0)<<31>>31)|0)<<16>>16;else v=0}else v=46}while(0);do if(!(l&2)){k=(b[(ca&o)>>1]|0)+1<<16>>16;b[(ca&o)>>1]=k;k=k&65535;m=b[(u&o)+16>>1]|0;if(m<<16>>16<1&w){q=(m&65535)-v+(e[($&o)>>1]|0)&65535;b[($&o)>>1]=q;break}m=c[(ba&p)>>2]|0;m=(e[($&o)>>1]|0)+((e[(m+(k<<1)&o)>>1]|0)-(e[(m+(k+-1<<1)&o)>>1]|0))|0;k=m&65535;b[($&o)>>1]=k;if(!(t&128))q=k;else{q=m+10&65535;b[($&o)>>1]=q}}else{k=b[($&o)>>1]|0;q=k<<16>>16;do if(r){m=b[(r&o)+16>>1]|0;if(m<<16>>16<1){k=(m&65535)+(k&65535)&65535;break}else{k=(k&65535)+65516&65535;break}}while(0);do if(s){m=b[(s&o)+16>>1]|0;if(m<<16>>16<1){k=(m&65535)+(k&65535)&65535;break}else{k=(k&65535)+65516&65535;break}}while(0);m=(r|0)!=0;do if(m?(b[(r&o)+16>>1]|0)>0&(s|0)!=0:0){if((b[(s&o)+16>>1]|0)<=0)break;k=(k&65535)+65516&65535}while(0);q=(((s|0)!=0)<<31>>31)+(m<<31>>31)+q|0;u=k<<16>>16<10?10:k<<16>>16;q=((u|0)<(q|0)?u:q)&65535;b[($&o)>>1]=q}while(0);k=q&65535;m=Gv(C,k+1+(((b[(y&o)>>1]|0)*15|0)/(b[((c[(F&p)>>2]|0)&o)+42>>1]|0)|0)&65535)|0;if(!(l&320))m=Gv(m,k+16&65535)|0;l=v+A|0;b[(z&o)>>1]=(m&65535)+l;b[($&o)>>1]=k+l;Iv(c[(O&p)>>2]|0,ea,D);k=Fv(d,ea)|0;v=c[(ga&p)>>2]|0;b[($&o)>>1]=(v&2|0)==0?q:aa;if((v&16|0)==0?(e[(ca&o)>>1]|0)<(e[(B&o)>>1]|0):0)Jv(d,f,g,l&65535)|0;b[($&o)>>1]=aa;m=r;l=s}else{m=r;l=s;k=0}}u=Ev(R)|0;if(!((k|0)==0&(u|0)!=0))break;else{r=m;s=l}}}while(0);l=ea;c[(l&p)>>2]=P;c[(l&p)+4>>2]=Q;b[(ca&o)>>1]=X;b[(Y&o)>>1]=T;c[(ga&p)>>2]=_;b[($&o)>>1]=aa;b[(Z&o)>>1]=U;l=X&65535;if(((X<<16>>16==T<<16>>16?(da=l+1|0,da>>>0<(e[(g&o)+46>>1]|0)>>>0):0)?(a[(W&n)>>0]&64)==0:0)?(b[((c[(ba&p)>>2]|0)+(da<<1)&o)>>1]|0)>41:0){k=Nu(V,ea,(U&65535)+1|0)|0;if(!k){b[(ca&o)>>1]=(b[(ca&o)>>1]|0)+1<<16>>16;b[(Y&o)>>1]=(b[(Y&o)>>1]|0)+1<<16>>16;k=b[(Z&o)>>1]|0;b[(Z&o)>>1]=k+1<<16>>16;c[((c[(ea&p)+48>>2]|0)+((k&65535)<<2)&p)>>2]=0;c[(ga&p)>>2]=c[(ga&p)>>2]|32768;k=c[(ba&p)>>2]|0;k=(e[(k+(l<<1)&o)>>1]|0)-(e[(k+(da<<1)&o)>>1]|0)|0;b[($&o)>>1]=(e[($&o)>>1]|0)-k;Jv(d,f,g,(((k<<16)+327680|0)>>>16)+(h&65535)&65535)|0;b[($&o)>>1]=aa;b[(ca&o)>>1]=X;b[(Y&o)>>1]=X;c[(ga&p)>>2]=_;k=0}}}else k=7;i=ha;return k|0}function Kv(a,d,e,f,g){a=a|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,i=0,j=0,k=0,l=0,m=0,n=0,q=0,r=0;l=b[(a&o)>>1]|0;h=a+8|0;a:do if(l<<16>>16){j=l;k=h;while(1){i=b[(k&o)+8>>1]|0;if(i<<16>>16>=f<<16>>16?(r=k,(c[(r&p)>>2]&d|0)==(d|0)?(c[(r&p)+4>>2]&e|0)==(e|0):0):0){n=k;q=14;break a}if(i<<16>>16<=f<<16>>16?(i=k,r=c[(i&p)>>2]|0,i=c[(i&p)+4>>2]|0,(r&d|0)==(r|0)&(i&e|0)==(i|0)):0)break a;j=j+-1<<16>>16;if(!(j<<16>>16))break;else k=k+16|0}if((l&65535)>=3){i=b[(a&o)+16>>1]|0;k=1;do{if(i<<16>>16>(b[(a+(k<<4)&o)+16>>1]|0))h=a+(k<<4)+8|0;k=k+1|0;i=b[(h&o)+8>>1]|0}while((k&65535)<(l&65535));if(i<<16>>16>f<<16>>16){n=h;q=14}}else q=9}else q=9;while(0);if((q|0)==9){n=l&65535;b[(a&o)>>1]=l+1<<16>>16;b[(a+(n<<4)&o)+18>>1]=g;n=a+(n<<4)+8|0;q=14}if((q|0)==14?(m=n,c[(m&p)>>2]=d,c[(m&p)+4>>2]=e,b[(n&o)+8>>1]=f,m=n+10|0,(b[(m&o)>>1]|0)>g<<16>>16):0)b[(m&o)>>1]=g;return}function Lv(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0;e=c[(d&p)+36>>2]|0;do if(e&17408){if((e&1024|0)!=0?(h=d+28|0,(a[(h&n)>>0]|0)!=0):0){e=d+32|0;Wc(c[(e&p)>>2]|0);a[(h&n)>>0]=0;c[(e&p)>>2]=0;break}if((e&16384|0)!=0?(f=d+28|0,g=c[(f&p)>>2]|0,(g|0)!=0):0){mg(b,c[(g&p)+16>>2]|0);mg(b,c[(f&p)>>2]|0);c[(f&p)>>2]=0}}while(0);return}function Mv(f,g,h,k,l,m,q){f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;m=m|0;q=q|0;var 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,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,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;ta=i;i=i+32|0;if((i|0)>=(j|0))fa();oa=ta;s=c[(c[(f&p)>>2]&p)>>2]|0;na=l&65535;if(l<<16>>16!=0?(b[(s&o)+60>>1]&128)!=0:0)r=0;else pa=3;a:do if((pa|0)==3){sa=c[(g&p)>>2]|0;r=sa&65535;if(r>>>0<=63){qa=iw(1,0,r|0)|0;qa=jw(qa|0,G|0,-1,-1)|0;ra=G;b:do if((qa|0)==0&(ra|0)==0){g=0;h=0;s=1}else{ha=h+24|0;ia=f+4|0;ja=(r|0)==0;ea=g+4|0;ga=(k&768)==0;da=s+8|0;W=(k&256)==0;X=f+68|0;Y=oa+20|0;Z=oa+4|0;aa=oa+24|0;ba=f+328|0;_=0;$=0;g=0;h=0;k=0;t=0;ca=0;s=1;l=0;while(1){if((ca|0)>0){U=l+8|0;V=c[(U&p)>>2]|k;t=c[(U&p)+4>>2]|t}else V=k;if((ca|0)<(na|0))l=c[((c[(ha&p)>>2]|0)+(ca<<2)&p)>>2]|0;else l=m;B=l+36|0;k=c[(B&p)>>2]|0;if(k&1024)break;U=c[((c[(ia&p)>>2]|0)+((d[(l&n)+16>>0]|0)*72|0)&p)+48>>2]|0;if(!ja){k=~V;v=~t;y=0;do{A=iw(1,0,y|0)|0;z=G;c:do if((A&g|0)==0&(z&h|0)==0){u=c[((c[(ea&p)>>2]|0)+(y*20|0)&p)>>2]|0;x=c[(u&p)+4>>2]|0;if(x&4096)do{if(!(x&262144))u=u+12|0;else u=c[((c[(u&p)+20>>2]|0)&p)+4>>2]|0;u=c[(u&p)>>2]|0;x=c[(u&p)+4>>2]|0}while((x&4096|0)!=0);if(((a[(u&n)>>0]|0)==-102?(c[(u&p)+28>>2]|0)==(U|0):0)?(ka=u+32|0,la=Fu(ba,U,b[(ka&o)>>1]|0,k,v,130,0)|0,(la|0)!=0):0){do if(b[(la&o)+18>>1]&2){if((b[(ka&o)>>1]|0)<=-1)break;u=cu(c[(f&p)>>2]|0,c[((c[(ea&p)>>2]|0)+(y*20|0)&p)>>2]|0)|0;if(!u)u=c[(da&p)>>2]|0;x=c[(u&p)>>2]|0;w=cu(c[(f&p)>>2]|0,c[(la&p)>>2]|0)|0;if(!w)w=c[(da&p)>>2]|0;if(dd(x,c[(w&p)>>2]|0)|0)break c}while(0);g=A|g;h=z|h}}while(0);y=y+1|0}while((y|0)<(r|0));k=c[(B&p)>>2]|0}do if(!(k&4096)){if(!(k&256)){u=c[(l&p)+28>>2]|0;if(!u){r=0;break a}if(a[(u&n)+51>>0]&4){r=0;break a}k=b[(u&o)+48>>1]|0;s=(a[(u&n)+50>>0]|0)!=0&1;if(!(k<<16>>16)){pa=71;break}else{S=k&65535;T=b[(u&o)+46>>1]|0}}else{S=1;T=0;u=0}J=l+24|0;K=l+42|0;L=l+48|0;M=(u|0)==0;N=u+32|0;O=iw(1,0,ca|0)|0;P=G;Q=u+4|0;R=u+28|0;I=u+12|0;k=0;u=0;A=0;H=0;d:while(1){z=(u|0)<(e[(J&o)>>1]|0);if((z?(b[(K&o)>>1]|0)==0:0)?(ma=e[((c[((c[(L&p)>>2]|0)+(u<<2)&p)>>2]|0)&o)+18>>1]|0,(ma&130|0)!=0):0){s=(ma&128|0)==0?s:0;z=H}else{if(!M){x=b[((c[(Q&p)>>2]|0)+(u<<1)&o)>>1]|0;w=a[((c[(R&p)>>2]|0)+u&n)>>0]|0;v=c[(I&p)>>2]|0;x=x<<16>>16==(b[(v&o)+36>>1]|0)?-1:x<<16>>16;y=(x|0)>-1;if(s<<24>>24!=0&y)if(z){y=1;F=x}else{y=1;F=x;s=(a[((c[(v&p)+4>>2]|0)+(x*24|0)&n)+20>>0]|0)==0?0:s}else F=x}else{y=0;F=-1;w=0}if(ja){pa=68;break}else{z=1;E=0}e:while(1){C=iw(1,0,E|0)|0;D=G;do if((C&g|0)==0&(D&h|0)==0){v=c[((c[(ea&p)>>2]|0)+(E*20|0)&p)>>2]|0;x=c[(v&p)+4>>2]|0;if(!(x&4096))B=v;else{B=v;do{if(!(x&262144))x=B+12|0;else x=c[((c[(B&p)+20>>2]|0)&p)+4>>2]|0;B=c[(x&p)>>2]|0;x=c[(B&p)+4>>2]|0}while((x&4096|0)!=0)}z=ga?0:z;if((a[(B&n)>>0]|0)!=-102)break;if((c[(B&p)+28>>2]|0)!=(U|0))break;if((b[(B&o)+32>>1]|0)!=(F|0))break;if(!y){B=C;y=D;z=E;break e}x=cu(c[(f&p)>>2]|0,v)|0;if(!x)x=c[(da&p)>>2]|0;if(!(dd(c[(x&p)>>2]|0,c[((c[(N&p)>>2]|0)+(u<<2)&p)>>2]|0)|0)){B=C;y=D;z=E;break e}}while(0);E=E+1|0;if(!(z<<24>>24!=0&(E|0)<(r|0))){pa=68;break d}}do if(W){if(H<<24>>24)if((w^A)<<24>>24==(a[((c[(ea&p)>>2]|0)+(z*20|0)&n)+12>>0]|0)){z=H;break}else{pa=68;break d}v=a[((c[(ea&p)>>2]|0)+(z*20|0)&n)+12>>0]|0;A=v^w;if(w<<24>>24==v<<24>>24){z=1;break}v=q;w=c[(v&p)+4>>2]|P;z=q;c[(z&p)>>2]=c[(v&p)>>2]|O;c[(z&p)+4>>2]=w;z=1}else z=H;while(0);g=B|g;h=y|h;k=(F|0)<0?1:k}u=u+1|0;if((u|0)>=(S|0))break;else H=z}if((pa|0)==68){pa=0;s=(u|0)==0|(u|0)<(T&65535|0)?0:s}if(!(k<<24>>24))pa=71;else s=1}else pa=71;while(0);if((pa|0)==71){pa=0;if(!(s<<24>>24)){s=0;break b}}U=l+8|0;_=c[(U&p)>>2]|_;$=c[(U&p)+4>>2]|$;if(!ja){z=~_;A=~$;y=0;do{u=iw(1,0,y|0)|0;x=G;do if((u&g|0)==0&(x&h|0)==0){k=c[((c[(ea&p)>>2]|0)+(y*20|0)&p)>>2]|0;v=Av(X,k)|0;w=G;if((v|0)==0&(w|0)==0?(c[(oa&p)>>2]=0,c[(oa&p)+4>>2]=0,c[(oa&p)+8>>2]=0,c[(oa&p)+12>>2]=0,c[(oa&p)+16>>2]=0,c[(oa&p)+20>>2]=0,a[(Y&n)>>0]=1,c[(oa&p)>>2]=78,c[(Z&p)>>2]=79,c[(aa&p)>>2]=0,rs(oa,k)|0,(a[(Y&n)>>0]|0)==0):0)break;U=(v&z|0)==0&(w&A|0)==0;g=(U?u:0)|g;h=(U?x:0)|h}while(0);y=y+1|0}while((y|0)<(r|0))}if(h>>>0>ra>>>0|(h|0)==(ra|0)&g>>>0>=qa>>>0|s<<24>>24==0|(ca|0)>=(na|0))break b;else{k=V;ca=ca+1|0}}ga=(a[(l&n)+29>>0]|0)==0;g=ga?g:qa;h=ga?h:ra}while(0);if((g|0)==(qa|0)&(h|0)==(ra|0)){r=sa&255;break}if(!(s<<24>>24)){do{r=r+-1|0;if((r|0)<=0){r=0;break a}ea=iw(1,0,r|0)|0;ea=jw(ea|0,G|0,-1,-1)|0;ga=G}while(!((ea&g|0)==(ea|0)&(ga&h|0)==(ga|0)));r=r&255}else r=-1}else r=0}while(0);i=ta;return r|0}function Nv(b,c,d,e){b=b|0;c=c|0;d=d|0;e=e|0;if(c)Sk(b,33920,5);if(!d)c=0;else{c=d;while(1)if(!(a[(c&n)>>0]|0))break;else c=c+1|0;c=c-d&1073741823}Sk(b,d,c);Sk(b,e,1);Sk(b,13552,1);return}function Ov(a){a=a|0;var d=0,e=0,f=0,g=0,h=0,i=0;i=c[(c[(c[(a&p)>>2]&p)>>2]&p)>>2]|0;d=c[(a&p)+12>>2]|0;g=a+20|0;if((d|0)>0){h=c[(g&p)>>2]|0;while(1){d=d+-1|0;f=h+20|0;e=b[(f&o)>>1]|0;if(e&1){Gk(i,c[(h&p)>>2]|0);e=b[(f&o)>>1]|0}e=e&65535;if(!(e&16)){if(e&32){e=c[(h&p)+12>>2]|0;Ov(e);mg(i,e)}}else{e=c[(h&p)+12>>2]|0;Ov(e);mg(i,e)}if((d|0)<=0)break;else h=h+48|0}}d=c[(g&p)>>2]|0;if((d|0)!=(a+24|0))mg(i,d);return}function Pv(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,o=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0;u=i;i=i+32|0;if((i|0)>=(j|0))fa();t=u;h=c[(b&p)+8>>2]|0;k=c[(b&p)>>2]|0;if(e){l=(f|0)==10;m=b+437|0;o=t+4|0;q=t+1|0;r=t+8|0;s=t+12|0;g=f&255;do{if(l)f=a[(e&n)+1>>0]|0;else f=g;a[(m&n)>>0]=f;f=d[(e&n)>>0]|0;if((f|0)==108){w=Vv(b,e)|0;v=gr(k,c[(e&p)+8>>2]|0,0)|0;f=Nr(k,c[(e&p)+28>>2]|0)|0;tr(b,w,v,f,d[(m&n)>>0]|0)}else if((f|0)==109){f=Vv(b,e)|0;rr(b,f,Mr(k,c[(e&p)+20>>2]|0,0,0)|0)}else if((f|0)==110){w=Vv(b,e)|0;v=Pr(k,c[(e&p)+24>>2]|0,0)|0;f=Mr(k,c[(e&p)+20>>2]|0,0,0)|0;sr(b,w,v,f,d[(m&n)>>0]|0)}else{f=gr(k,c[(e&p)+8>>2]|0,0)|0;a[(t&n)>>0]=4;c[(o&p)>>2]=0;a[(q&n)>>0]=0;c[(r&p)>>2]=0;c[(s&p)>>2]=0;ir(b,f,t)|0;Mk(k,f,1)}if((a[(e&n)>>0]|0)!=119)wh(h,98,0,0,0)|0;e=c[(e&p)+32>>2]|0}while((e|0)!=0)}i=u;return}function Qv(d,e,f,g){d=d|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0;m=i;i=i+16|0;if((i|0)>=(j|0))fa();h=m;l=c[(d&p)>>2]|0;c[(h&p)>>2]=0;c[(h&p)+4>>2]=0;h=nr(l,159,h,0)|0;do if(!h)h=0;else{k=g<<16>>16;if(g<<16>>16>-1?(b[(e&o)+36>>1]|0)!=g<<16>>16:0){g=c[(e&p)+4>>2]|0;c[(h&p)+28>>2]=f+1+k;a[(h&n)+1>>0]=a[(g+(k*24|0)&n)+21>>0]|0;k=c[(g+(k*24|0)&p)+16>>2]|0;if(!k)k=c[(c[(l&p)+8>>2]&p)>>2]|0;h=xv(d,h,k)|0;break}c[(h&p)+28>>2]=f;a[(h&n)+1>>0]=68}while(0);i=m;return h|0}function Rv(d,e,f,g){d=d|0;e=e|0;f=f|0;g=g|0;var h=0,i=0,j=0;d=mh(d,48,0)|0;if(d){h=d+0|0;i=h+44|0;do{a[(h&n)>>0]=0;h=h+1|0}while((h|0)<(i|0));a[(d&n)>>0]=-102;b[(d&o)+34>>1]=-1;c[(d&p)+24>>2]=1;h=c[(e+(f*72|0)&p)+24>>2]|0;c[(d&p)+44>>2]=h;c[(d&p)+28>>2]=c[(e+(f*72|0)&p)+48>>2];if((b[(h&o)+36>>1]|0)==(g|0))b[(d&o)+32>>1]=-1;else{b[(d&o)+32>>1]=g;j=(g|0)>63;g=iw(1,0,g|0)|0;h=e+(f*72|0)+64|0;f=h;i=c[(f&p)+4>>2]|(j?-2147483648:G);c[(h&p)>>2]=c[(f&p)>>2]|(j?0:g);c[(h&p)+4>>2]=i}h=d+4|0;c[(h&p)>>2]=c[(h&p)>>2]|4}return d|0}function Sv(b,e){b=b|0;e=e|0;if((a[(e&n)>>0]|0)==-101){e=e+38|0;a[(e&n)>>0]=(d[(e&n)>>0]|0)+(c[(b&p)+24>>2]|0)}return 0}function Tv(a,d){a=a|0;d=d|0;var f=0,g=0,h=0,i=0,j=0,k=0;f=b[(a&o)+40>>1]|0;i=f&65535;h=b[(a&o)+42>>1]|0;k=e[(d&o)+40>>1]|0;g=b[(d&o)+42>>1]|0;a:do if(!((g&65535)>(h&65535)?1:(i-(h&65535)|0)>=(k-(g&65535)|0))){g=b[(a&o)+20>>1]|0;h=b[(d&o)+20>>1]|0;if(g<<16>>16>=h<<16>>16){if(g<<16>>16>h<<16>>16){f=0;break}if((b[(a&o)+22>>1]|0)>(b[(d&o)+22>>1]|0)){f=0;break}}if(!(f<<16>>16))f=1;else{j=c[(a&p)+48>>2]|0;d=d+48|0;a=i;while(1){a=a+-1|0;h=c[(j+(a<<2)&p)>>2]|0;if(h){f=k;while(1){g=f+-1|0;if((f|0)<=0){f=0;break a}if((c[((c[(d&p)>>2]|0)+(g<<2)&p)>>2]|0)==(h|0))break;else f=g}if((f|0)<1){f=0;break a}}if((a|0)<=0){f=1;break}}}}else f=0;while(0);return f|0}function Uv(d,e){d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0,v=0;f=c[(d&p)>>2]|0;a:do if(f){k=a[(e&n)+16>>0]|0;l=e+17|0;m=e+18|0;q=e+20|0;r=e+22|0;s=e+42|0;t=e+36|0;do{if((a[(f&n)+16>>0]|0)==k<<24>>24?(a[(f&n)+17>>0]|0)==(a[(l&n)>>0]|0):0){if((((c[(f&p)+36>>2]&16384|0)!=0?(b[(s&o)>>1]|0)==0:0)?(c[(t&p)>>2]&513|0)==513:0)?(i=f,j=e,h=c[(j&p)>>2]|0,j=c[(j&p)+4>>2]|0,(h&c[(i&p)>>2]|0)==(h|0)?(j&c[(i&p)+4>>2]|0)==(j|0):0):0)break a;u=f;v=c[(u&p)>>2]|0;u=c[(u&p)+4>>2]|0;h=e;g=c[(h&p)>>2]|0;h=c[(h&p)+4>>2]|0;i=g&v;j=h&u;if((((i|0)==(v|0)&(j|0)==(u|0)?(b[(f&o)+18>>1]|0)<=(b[(m&o)>>1]|0):0)?(b[(f&o)+20>>1]|0)<=(b[(q&o)>>1]|0):0)?(b[(f&o)+22>>1]|0)<=(b[(r&o)>>1]|0):0){d=0;break a}if(((i|0)==(g|0)&(j|0)==(h|0)?(b[(f&o)+20>>1]|0)>=(b[(q&o)>>1]|0):0)?(b[(f&o)+22>>1]|0)>=(b[(r&o)>>1]|0):0)break a}d=f+52|0;f=c[(d&p)>>2]|0}while((f|0)!=0)}while(0);return d|0}function Vv(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;h=pr(c[(a&p)>>2]|0,0,b+12|0,0)|0;do if(h){g=c[(a&p)>>2]|0;f=c[((c[(b&p)+4>>2]|0)&p)+20>>2]|0;a:do if(f){e=c[(g&p)+20>>2]|0;if((e|0)>0){b=c[(g&p)+16>>2]|0;d=0;while(1){a=d+1|0;if((c[(b+(d<<4)&p)+12>>2]|0)==(f|0)){a=d;d=7;break a}if((a|0)<(e|0))d=a;else{d=7;break}}}else a=0}else{a=-1e6;d=7}while(0);if((d|0)==7)if(!((a|0)==0|(a|0)>1))break;a=kh(g,c[((c[(g&p)+16>>2]|0)+(a<<4)&p)>>2]|0)|0;c[(h+(((c[(h&p)>>2]|0)+-1|0)*72|0)&p)+12>>2]=a}while(0);return h|0}function Wv(a){a=a|0;var b=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,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;do if(a>>>0<245){if(a>>>0<11)q=16;else q=a+11&-8;a=q>>>3;l=c[12266]|0;i=l>>>a;if(i&3){e=(i&1^1)+a|0;f=e<<1;b=49104+(f<<2)|0;f=49104+(f+2<<2)|0;g=c[(f&p)>>2]|0;h=g+8|0;i=c[(h&p)>>2]|0;do if((b|0)!=(i|0)){if(i>>>0<(c[12270]|0)>>>0)Ob();d=i+12|0;if((c[(d&p)>>2]|0)==(g|0)){c[(d&p)>>2]=b;c[(f&p)>>2]=i;break}else Ob()}else c[12266]=l&~(1<>2]=x|3;x=g+(x|4)|0;c[(x&p)>>2]=c[(x&p)>>2]|1;x=h;return x|0}k=c[12268]|0;if(q>>>0>k>>>0){if(i){f=2<>>12&16;f=f>>>a;e=f>>>5&8;f=f>>>e;d=f>>>2&4;f=f>>>d;g=f>>>1&2;f=f>>>g;h=f>>>1&1;h=(e|a|d|g|h)+(f>>>h)|0;f=h<<1;g=49104+(f<<2)|0;f=49104+(f+2<<2)|0;d=c[(f&p)>>2]|0;a=d+8|0;e=c[(a&p)>>2]|0;do if((g|0)!=(e|0)){if(e>>>0<(c[12270]|0)>>>0)Ob();i=e+12|0;if((c[(i&p)>>2]|0)==(d|0)){c[(i&p)>>2]=g;c[(f&p)>>2]=e;m=c[12268]|0;break}else Ob()}else{c[12266]=l&~(1<>2]=q|3;j=d+q|0;c[(d+(q|4)&p)>>2]=b|1;c[(d+x&p)>>2]=b;if(m){e=c[12271]|0;g=m>>>3;i=g<<1;f=49104+(i<<2)|0;h=c[12266]|0;g=1<>2]|0;if(i>>>0<(c[12270]|0)>>>0)Ob();else{n=h;o=i}}else{c[12266]=h|g;n=49104+(i+2<<2)|0;o=f}c[(n&p)>>2]=e;c[(o&p)+12>>2]=e;c[(e&p)+8>>2]=o;c[(e&p)+12>>2]=f}c[12268]=b;c[12271]=j;x=a;return x|0}a=c[12267]|0;if(a){h=(a&0-a)+-1|0;w=h>>>12&16;h=h>>>w;v=h>>>5&8;h=h>>>v;x=h>>>2&4;h=h>>>x;i=h>>>1&2;h=h>>>i;g=h>>>1&1;g=c[((v|w|x|i|g)+(h>>>g)<<2&p)+49368>>2]|0;h=(c[(g&p)+4>>2]&-8)-q|0;i=g;while(1){d=c[(i&p)+16>>2]|0;if(!d){d=c[(i&p)+20>>2]|0;if(!d){l=h;k=g;break}}i=(c[(d&p)+4>>2]&-8)-q|0;x=i>>>0>>0;h=x?i:h;i=d;g=x?d:g}a=c[12270]|0;if(k>>>0>>0)Ob();b=k+q|0;if(k>>>0>=b>>>0)Ob();j=c[(k&p)+24>>2]|0;g=c[(k&p)+12>>2]|0;do if((g|0)==(k|0)){h=k+20|0;i=c[(h&p)>>2]|0;if(!i){h=k+16|0;i=c[(h&p)>>2]|0;if(!i){e=0;break}}while(1){g=i+20|0;f=c[(g&p)>>2]|0;if(f){i=f;h=g;continue}g=i+16|0;f=c[(g&p)>>2]|0;if(!f)break;else{i=f;h=g}}if(h>>>0>>0)Ob();else{c[(h&p)>>2]=0;e=i;break}}else{f=c[(k&p)+8>>2]|0;if(f>>>0>>0)Ob();i=f+12|0;if((c[(i&p)>>2]|0)!=(k|0))Ob();h=g+8|0;if((c[(h&p)>>2]|0)==(k|0)){c[(i&p)>>2]=g;c[(h&p)>>2]=f;e=g;break}else Ob()}while(0);do if(j){i=c[(k&p)+28>>2]|0;h=49368+(i<<2)|0;if((k|0)==(c[(h&p)>>2]|0)){c[(h&p)>>2]=e;if(!e){c[12267]=c[12267]&~(1<>>0<(c[12270]|0)>>>0)Ob();i=j+16|0;if((c[(i&p)>>2]|0)==(k|0))c[(i&p)>>2]=e;else c[(j&p)+20>>2]=e;if(!e)break}h=c[12270]|0;if(e>>>0>>0)Ob();c[(e&p)+24>>2]=j;i=c[(k&p)+16>>2]|0;do if(i)if(i>>>0>>0)Ob();else{c[(e&p)+16>>2]=i;c[(i&p)+24>>2]=e;break}while(0);i=c[(k&p)+20>>2]|0;if(i)if(i>>>0<(c[12270]|0)>>>0)Ob();else{c[(e&p)+20>>2]=i;c[(i&p)+24>>2]=e;break}}while(0);if(l>>>0<16){x=l+q|0;c[(k&p)+4>>2]=x|3;x=k+(x+4)|0;c[(x&p)>>2]=c[(x&p)>>2]|1}else{c[(k&p)+4>>2]=q|3;c[(k+(q|4)&p)>>2]=l|1;c[(k+l+q&p)>>2]=l;d=c[12268]|0;if(d){e=c[12271]|0;g=d>>>3;i=g<<1;f=49104+(i<<2)|0;h=c[12266]|0;g=1<>2]|0;if(h>>>0<(c[12270]|0)>>>0)Ob();else{r=i;s=h}}else{c[12266]=h|g;r=49104+(i+2<<2)|0;s=f}c[(r&p)>>2]=e;c[(s&p)+12>>2]=e;c[(e&p)+8>>2]=s;c[(e&p)+12>>2]=f}c[12268]=l;c[12271]=b}x=k+8|0;return x|0}else s=q}else s=q}else if(a>>>0<=4294967231){a=a+11|0;s=a&-8;k=c[12267]|0;if(k){h=0-s|0;a=a>>>8;if(a)if(s>>>0>16777215)d=31;else{q=(a+1048320|0)>>>16&8;r=a<>>16&4;r=r<>>16&2;d=14-(o|q|d)+(r<>>15)|0;d=s>>>(d+7|0)&1|d<<1}else d=0;f=c[(d<<2&p)+49368>>2]|0;a:do if(!f){a=0;i=0}else{if((d|0)==31)i=0;else i=25-(d>>>1)|0;l=h;a=0;b=s<>2]&-8;h=e-s|0;if(h>>>0>>0)if((e|0)==(s|0)){a=f;i=f;break a}else i=f;else h=l;r=c[(f&p)+20>>2]|0;f=c[(f+(b>>>31<<2)&p)+16>>2]|0;a=(r|0)==0|(r|0)==(f|0)?a:r;if(!f)break;else{l=h;b=b<<1}}}while(0);if((a|0)==0&(i|0)==0){a=2<>>12&16;r=r>>>n;m=r>>>5&8;r=r>>>m;o=r>>>2&4;r=r>>>o;q=r>>>1&2;r=r>>>q;a=r>>>1&1;a=c[((m|n|o|q|a)+(r>>>a)<<2&p)+49368>>2]|0}if(!a){o=h;q=i}else while(1){r=(c[(a&p)+4>>2]&-8)-s|0;f=r>>>0>>0;h=f?r:h;i=f?a:i;f=c[(a&p)+16>>2]|0;if(f){a=f;continue}a=c[(a&p)+20>>2]|0;if(!a){o=h;q=i;break}}if((q|0)!=0?o>>>0<((c[12268]|0)-s|0)>>>0:0){a=c[12270]|0;if(q>>>0>>0)Ob();m=q+s|0;if(q>>>0>=m>>>0)Ob();j=c[(q&p)+24>>2]|0;g=c[(q&p)+12>>2]|0;do if((g|0)==(q|0)){h=q+20|0;i=c[(h&p)>>2]|0;if(!i){h=q+16|0;i=c[(h&p)>>2]|0;if(!i){u=0;break}}while(1){g=i+20|0;f=c[(g&p)>>2]|0;if(f){i=f;h=g;continue}g=i+16|0;f=c[(g&p)>>2]|0;if(!f)break;else{i=f;h=g}}if(h>>>0>>0)Ob();else{c[(h&p)>>2]=0;u=i;break}}else{f=c[(q&p)+8>>2]|0;if(f>>>0>>0)Ob();i=f+12|0;if((c[(i&p)>>2]|0)!=(q|0))Ob();h=g+8|0;if((c[(h&p)>>2]|0)==(q|0)){c[(i&p)>>2]=g;c[(h&p)>>2]=f;u=g;break}else Ob()}while(0);do if(j){i=c[(q&p)+28>>2]|0;h=49368+(i<<2)|0;if((q|0)==(c[(h&p)>>2]|0)){c[(h&p)>>2]=u;if(!u){c[12267]=c[12267]&~(1<>>0<(c[12270]|0)>>>0)Ob();i=j+16|0;if((c[(i&p)>>2]|0)==(q|0))c[(i&p)>>2]=u;else c[(j&p)+20>>2]=u;if(!u)break}h=c[12270]|0;if(u>>>0>>0)Ob();c[(u&p)+24>>2]=j;i=c[(q&p)+16>>2]|0;do if(i)if(i>>>0>>0)Ob();else{c[(u&p)+16>>2]=i;c[(i&p)+24>>2]=u;break}while(0);i=c[(q&p)+20>>2]|0;if(i)if(i>>>0<(c[12270]|0)>>>0)Ob();else{c[(u&p)+20>>2]=i;c[(i&p)+24>>2]=u;break}}while(0);b:do if(o>>>0>=16){c[(q&p)+4>>2]=s|3;c[(q+(s|4)&p)>>2]=o|1;c[(q+o+s&p)>>2]=o;i=o>>>3;if(o>>>0<256){h=i<<1;f=49104+(h<<2)|0;g=c[12266]|0;i=1<>2]|0;if(h>>>0>=(c[12270]|0)>>>0){v=i;w=h;break}Ob()}while(0);c[(v&p)>>2]=m;c[(w&p)+12>>2]=m;c[(q+s&p)+8>>2]=w;c[(q+s&p)+12>>2]=f;break}d=o>>>8;if(d)if(o>>>0>16777215)f=31;else{w=(d+1048320|0)>>>16&8;x=d<>>16&4;x=x<>>16&2;f=14-(v|w|f)+(x<>>15)|0;f=o>>>(f+7|0)&1|f<<1}else f=0;i=49368+(f<<2)|0;c[(q+s&p)+28>>2]=f;c[(q+s&p)+20>>2]=0;c[(q+s&p)+16>>2]=0;h=c[12267]|0;g=1<>2]=m;c[(q+s&p)+24>>2]=i;c[(q+s&p)+12>>2]=m;c[(q+s&p)+8>>2]=m;break}d=c[(i&p)>>2]|0;if((f|0)==31)b=0;else b=25-(f>>>1)|0;c:do if((c[(d&p)+4>>2]&-8|0)!=(o|0)){h=o<>>31<<2)+16|0;i=c[(b&p)>>2]|0;if(!i)break;if((c[(i&p)+4>>2]&-8|0)==(o|0)){C=i;break c}else{h=h<<1;d=i}}if(b>>>0<(c[12270]|0)>>>0)Ob();else{c[(b&p)>>2]=m;c[(q+s&p)+24>>2]=d;c[(q+s&p)+12>>2]=m;c[(q+s&p)+8>>2]=m;break b}}else C=d;while(0);d=C+8|0;b=c[(d&p)>>2]|0;x=c[12270]|0;if(C>>>0>=x>>>0&b>>>0>=x>>>0){c[(b&p)+12>>2]=m;c[(d&p)>>2]=m;c[(q+s&p)+8>>2]=b;c[(q+s&p)+12>>2]=C;c[(q+s&p)+24>>2]=0;break}else Ob()}else{x=o+s|0;c[(q&p)+4>>2]=x|3;x=q+(x+4)|0;c[(x&p)>>2]=c[(x&p)>>2]|1}while(0);x=q+8|0;return x|0}}}else s=-1;while(0);a=c[12268]|0;if(a>>>0>=s>>>0){b=a-s|0;d=c[12271]|0;if(b>>>0>15){c[12271]=d+s;c[12268]=b;c[(d+s&p)+4>>2]=b|1;c[(d+a&p)>>2]=b;c[(d&p)+4>>2]=s|3}else{c[12268]=0;c[12271]=0;c[(d&p)+4>>2]=a|3;x=d+(a+4)|0;c[(x&p)>>2]=c[(x&p)>>2]|1}x=d+8|0;return x|0}a=c[12269]|0;if(a>>>0>s>>>0){w=a-s|0;c[12269]=w;x=c[12272]|0;c[12272]=x+s;c[(x+s&p)+4>>2]=w|1;c[(x&p)+4>>2]=s|3;x=x+8|0;return x|0}do if(!(c[12384]|0)){a=wb(30)|0;if(!(a+-1&a)){c[12386]=a;c[12385]=a;c[12387]=-1;c[12388]=-1;c[12389]=0;c[12377]=0;c[12384]=(Pb(0)|0)&-16^1431655768;break}else Ob()}while(0);l=s+48|0;b=c[12386]|0;k=s+47|0;d=b+k|0;b=0-b|0;m=d&b;if(m>>>0<=s>>>0){x=0;return x|0}a=c[12376]|0;if((a|0)!=0?(v=c[12374]|0,w=v+m|0,w>>>0<=v>>>0|w>>>0>a>>>0):0){x=0;return x|0}d:do if(!(c[12377]&4)){a=c[12272]|0;e:do if(a){f=49512|0;while(1){i=c[(f&p)>>2]|0;if(i>>>0<=a>>>0?(t=f+4|0,(i+(c[(t&p)>>2]|0)|0)>>>0>a>>>0):0){e=f;h=t;a=f;break}f=c[(f&p)+8>>2]|0;if(!f){H=181;break e}}if(a){a=d-(c[12269]|0)&b;if(a>>>0<2147483647){i=sb(a|0)|0;if((i|0)==((c[(e&p)>>2]|0)+(c[(h&p)>>2]|0)|0))H=190;else H=191}else a=0}else H=181}else H=181;while(0);do if((H|0)==181){i=sb(0)|0;if((i|0)!=(-1|0)){a=i;h=c[12385]|0;f=h+-1|0;if(!(f&a))a=m;else a=m-a+(f+a&0-h)|0;h=c[12374]|0;f=h+a|0;if(a>>>0>s>>>0&a>>>0<2147483647){w=c[12376]|0;if((w|0)!=0?f>>>0<=h>>>0|f>>>0>w>>>0:0){a=0;break}h=sb(a|0)|0;if((h|0)==(i|0))H=190;else{i=h;H=191}}else a=0}else a=0}while(0);f:do if((H|0)==190){if((i|0)!=(-1|0)){y=i;H=201;break d}}else if((H|0)==191){h=0-a|0;do if((i|0)!=(-1|0)&a>>>0<2147483647&l>>>0>a>>>0?(x=c[12386]|0,x=k-a+x&0-x,x>>>0<2147483647):0)if((sb(x|0)|0)==(-1|0)){sb(h|0)|0;a=0;break f}else{a=x+a|0;break}while(0);if((i|0)==(-1|0))a=0;else{y=i;H=201;break d}}while(0);c[12377]=c[12377]|4;H=198}else{a=0;H=198}while(0);if((((H|0)==198?m>>>0<2147483647:0)?(y=sb(m|0)|0,z=sb(0)|0,(y|0)!=(-1|0)&(z|0)!=(-1|0)&y>>>0>>0):0)?(A=z-y|0,B=A>>>0>(s+40|0)>>>0,B):0){a=B?A:a;H=201}if((H|0)==201){i=(c[12374]|0)+a|0;c[12374]=i;if(i>>>0>(c[12375]|0)>>>0)c[12375]=i;l=c[12272]|0;g:do if(l){e=49512|0;do{i=c[(e&p)>>2]|0;h=e+4|0;f=c[(h&p)>>2]|0;if((y|0)==(i+f|0)){D=i;E=h;F=f;G=e;H=213;break}e=c[(e&p)+8>>2]|0}while((e|0)!=0);if(((H|0)==213?(c[(G&p)+12>>2]&8|0)==0:0)?l>>>0>=D>>>0&l>>>0>>0:0){c[(E&p)>>2]=F+a;b=(c[12269]|0)+a|0;d=l+8|0;if(!(d&7))d=0;else d=0-d&7;x=b-d|0;c[12272]=l+d;c[12269]=x;c[(l+d&p)+4>>2]=x|1;c[(l+b&p)+4>>2]=40;c[12273]=c[12388];break}i=c[12270]|0;if(y>>>0>>0){c[12270]=y;k=y}else k=i;i=y+a|0;h=49512|0;do{if((c[(h&p)>>2]|0)==(i|0)){I=h;J=h;H=223;break}h=c[(h&p)+8>>2]|0}while((h|0)!=0);if((H|0)==223?(c[(J&p)+12>>2]&8|0)==0:0){c[(I&p)>>2]=y;i=J+4|0;c[(i&p)>>2]=(c[(i&p)>>2]|0)+a;i=y+8|0;if(!(i&7))q=0;else q=0-i&7;i=y+(a+8)|0;if(!(i&7))d=0;else d=0-i&7;i=y+(d+a)|0;o=q+s|0;n=y+o|0;m=i-(y+q)-s|0;c[(y+q&p)+4>>2]=s|3;h:do if((i|0)!=(l|0)){if((i|0)==(c[12271]|0)){x=(c[12268]|0)+m|0;c[12268]=x;c[12271]=n;c[(y+o&p)+4>>2]=x|1;c[(y+x+o&p)>>2]=x;break}l=a+4|0;j=c[(y+l+d&p)>>2]|0;if((j&3|0)==1){b=j&-8;f=j>>>3;i:do if(j>>>0>=256){e=c[(y+(d|24)+a&p)>>2]|0;g=c[(y+a+d&p)+12>>2]|0;do if((g|0)==(i|0)){g=d|16;h=y+(l+g)|0;j=c[(h&p)>>2]|0;if(!j){h=y+(g+a)|0;j=c[(h&p)>>2]|0;if(!j){O=0;break}}while(1){g=j+20|0;f=c[(g&p)>>2]|0;if(f){j=f;h=g;continue}g=j+16|0;f=c[(g&p)>>2]|0;if(!f)break;else{j=f;h=g}}if(h>>>0>>0)Ob();else{c[(h&p)>>2]=0;O=j;break}}else{f=c[(y+(d|8)+a&p)>>2]|0;if(f>>>0>>0)Ob();j=f+12|0;if((c[(j&p)>>2]|0)!=(i|0))Ob();h=g+8|0;if((c[(h&p)>>2]|0)==(i|0)){c[(j&p)>>2]=g;c[(h&p)>>2]=f;O=g;break}else Ob()}while(0);if(!e)break;j=c[(y+a+d&p)+28>>2]|0;h=49368+(j<<2)|0;do if((i|0)!=(c[(h&p)>>2]|0)){if(e>>>0<(c[12270]|0)>>>0)Ob();j=e+16|0;if((c[(j&p)>>2]|0)==(i|0))c[(j&p)>>2]=O;else c[(e&p)+20>>2]=O;if(!O)break i}else{c[(h&p)>>2]=O;if(O)break;c[12267]=c[12267]&~(1<
>0]=d[(S&n)>>0]|1;if(a[(K&n)>>0]&16){x=c[(e&p)+8>>2]|0;y=c[(e&p)>>2]|0;m=c[(ka&p)+60>>2]|0;g:do if(!m)m=0;else while(1){if((c[(m&p)>>2]|0)==(y|0))break g;m=c[(m&p)+24>>2]|0;if(!m){m=0;break}}while(0);q=lr(e,0,tt(y,27,34536)|0)|0;w=(R|0)!=0;if(w)q=lr(e,q,Mr(y,R,0,0)|0)|0;if((b[(ja&o)>>1]|0)>0){r=g+4|0;t=ka+4|0;u=0;do{s=c[(l+(u<<2)&p)>>2]|0;if((s|0)>-1)s=Mr(y,c[((c[(r&p)>>2]|0)+(s*20|0)&p)>>2]|0,0,0)|0;else s=tt(y,27,c[((c[(t&p)>>2]|0)+(u*24|0)&p)>>2]|0)|0;q=lr(e,q,s)|0;u=u+1|0}while((u|0)<(b[(ja&o)>>1]|0))}t=kr(e,q,f,h,0,0,0,0,0,0)|0;v=c[(_&p)>>2]|0;c[(_&p)>>2]=v+1;f=w&1;wh(x,57,v,(b[(ja&o)>>1]|0)+(w?2:1)|0,0)|0;u=x+4|0;h=c[(u&p)>>2]|0;if(h)a[(h+(((c[(x&p)+32>>2]|0)+-1|0)*20|0)&n)+3>>0]=8;a[(T&n)>>0]=14;c[(T&p)+4>>2]=v;a[(T&n)+1>>0]=0;c[(T&p)+8>>2]=0;c[(T&p)+12>>2]=0;ir(e,t,T)|0;h=e+72|0;s=c[(h&p)>>2]|0;q=s+1|0;da=s+2|0;c[(h&p)>>2]=(b[(ja&o)>>1]|0)+da;h=wh(x,108,v,0,0)|0;wh(x,47,v,0,q)|0;wh(x,47,v,f,da)|0;if((b[(ja&o)>>1]|0)>0){s=s+3|0;r=0;do{da=r;r=r+1|0;wh(x,47,v,r+f|0,s+da|0)|0}while((r|0)<(b[(ja&o)>>1]|0))}qt(e,ka);xh(x,wh(x,15,0,(b[(ja&o)>>1]|0)+2|0,q)|0,m,-10);m=c[(u&p)>>2]|0;if(!m)m=x+32|0;else{da=x+32|0;a[(m+(((c[(da&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=(k|0)==10?2:k&255;m=da}da=c[(H&p)>>2]|0;a[(((da|0)==0?e:da)&n)+21>>0]=1;wh(x,9,v,h+1|0,0)|0;m=c[(m&p)>>2]|0;if(m>>>0>h>>>0)c[((c[(u&p)>>2]|0)+(h*20|0)&p)+8>>2]=m;c[((c[(x&p)+24>>2]|0)&p)+88>>2]=m+-1;wh(x,61,v,0,0)|0;Mk(y,t,1);h=0;f=0;break}H=e+72|0;m=c[(H&p)>>2]|0;G=m+1|0;Q=m+2|0;c[(H&p)>>2]=Q;I=y<<24>>24!=0;J=(ga|0)!=0;P=(C|0)!=0;if(I|J|P){q=(b[(ja&o)>>1]|0)+Q|0;c[(H&p)>>2]=q;L=m+3|0}else{q=Q;L=0}N=(X|0)!=0;if(N|J|P){O=q+1|0;c[(H&p)>>2]=O;q=O}else O=Q;M=q+1|0;c[(H&p)>>2]=(b[(ja&o)>>1]|0)+q;if(ca){S=e+492|0;T=c[(S&p)>>2]|0;c[(S&p)>>2]=c[(ka&p)>>2];lt(e,ka,h,t);S=e}else{S=0;T=0}do if(!(ls(Y,h)|0)){if(!(a[(K&n)>>0]&32)){wh(V,28,0,G,Q)|0;y=Vs(e,f,h,0,0,4,ia)|0;if(!y)break;A=y+60|0;m=c[(A&p)>>2]|0;A=c[(A&p)+4>>2]|0;B=a[(y&n)+38>>0]|0;wh(V,103,t,Q,0)|0;if(!(B<<24>>24))wh(V,128,G,Q,0)|0;Xs(y);D=0;C=0;z=B&255;E=0}else{B=b[(s&o)+46>>1]|0;y=c[(H&p)>>2]|0;u=y+1|0;C=B<<16>>16;y=C+1+y|0;c[(H&p)>>2]=y;D=c[(_&p)>>2]|0;c[(_&p)>>2]=D+1;wh(V,28,0,u,0)|0;q=wh(V,57,D,C,0)|0;v=c[(e&p)+8>>2]|0;xh(v,-1,hs(e,s)|0,-6);v=Vs(e,f,h,0,0,4,ia)|0;if(!v)break;A=v+60|0;m=c[(A&p)>>2]|0;A=c[(A&p)+4>>2]|0;r=a[(v&n)+38>>0]|0;E=r&255;if(B<<16>>16>0){B=s+4|0;z=0;do{nt(V,ka,t,b[((c[(B&p)>>2]|0)+(z<<1)&o)>>1]|0,z+u|0);z=z+1|0}while((z|0)!=(C|0))}if(!(r<<24>>24)){B=ot(V,s)|0;xh(V,wh(V,49,u,C,y)|0,B,C);wh(V,110,D,y,0)|0;B=0}else{zh(V,q);B=C;y=u}Xs(v);C=B;z=E;E=y}K=la+24|0;do if(!(c[(K&p)>>2]&128))v=0;else{if(c[(e&p)+412>>2]|0){v=0;break}v=(c[(H&p)>>2]|0)+1|0;c[(H&p)>>2]=v;wh(V,25,0,v,0)|0}while(0);u=xs(V)|0;if(!ca){h:do if((k|0)==5)fw(da|0,1,Z|0)|0;else{B=c[(w&p)>>2]|0;if(!B)break;while(1){if((a[(B&n)+50>>0]|0)==5)break;B=c[(B&p)+20>>2]|0;if(!B)break h}fw(da|0,1,Z|0)|0}while(0);do if(z){if((m|0)>-1)a[(da+(m-$)&n)>>0]=0;if((A|0)<=-1)break;a[(da+(A-$)&n)>>0]=0}while(0);pt(e,ka,55,$,da,0,0)|0}H=(z|0)!=0;do if(!H)if(!s){G=wh(V,129,G,u,Q)|0;wh(V,70,t,G,Q)|0;F=0;break}else{G=xs(V)|0;wh(V,108,D,u,0)|0;F=wh(V,101,D,E,0)|0;xh(V,wh(V,68,t,G,E)|0,0,-14);break}else{if(!((a[(da+(t-$)&n)>>0]|0)==0|ca))xh(V,wh(V,68,t,u,E)|0,C,-14);wh(V,76,(s|0)!=0?E:Q,u,0)|0;F=0;G=u}while(0);x=x<<24>>24==0;if(!x){Rq(e,R,O);wh(V,38,O,0,0)|0}do if(I|P|J){if(P)y=ut(e,ka)|0;else y=0;B=vt(e,ga,g,0,3,ka,k)|0|y;if((b[(ja&o)>>1]|0)>0){A=(B|0)==-1;z=ka+4|0;y=0;do{do if(A)ba=138;else{if((y|0)<32?(1<>2]|0)+(y*24|0)&n)+23>>0]&1){ba=138;break}wh(V,28,0,y+L|0,0)|0}while(0);if((ba|0)==138){ba=0;nt(V,ka,t,y,y+L|0)}y=y+1|0}while((y|0)<(b[(ja&o)>>1]|0))}if(!(x&(s|0)==0))break;wh(V,33,Q,O,0)|0}while(0);y=vt(e,ga,g,1,1,ka,k)|0;if((b[(ja&o)>>1]|0)>0){x=ka+36|0;m=g+4|0;r=0;do{i:do if((r|0)==(b[(x&o)>>1]|0))wh(V,28,0,r+M|0,0)|0;else{q=c[(l+(r<<2)&p)>>2]|0;if((q|0)>-1){Rq(e,c[((c[(m&p)>>2]|0)+(q*20|0)&p)>>2]|0,r+M|0);break}do if(!((c[(ea&p)>>2]&1|0)==0|(r|0)>31)){if(1<>1]|0))}do if(c[(ea&p)>>2]&1){wt(V,ka,M);xt(e,ga,110,g,1,ka,Q,k,G);if(!s)wh(V,70,t,G,Q)|0;else xh(V,wh(V,68,t,G,E)|0,C,-14);m=b[(ja&o)>>1]|0;if(m<<16>>16<=0)break;x=ka+36|0;y=0;do{do if((c[(l+(y<<2)&p)>>2]|0)<0){if((y|0)==(b[(x&o)>>1]|0))break;nt(V,ka,t,y,y+M|0);m=b[(ja&o)>>1]|0}while(0);y=y+1|0}while((y|0)<(m<<16>>16|0))}while(0);do if(!ca){c[(ha&p)>>2]=0;yt(e,ka,aa,t,ia,O,Q,U,k&255,G,ha);if(P)zt(e,ka,Q,0,l,X);m=(c[(ha&p)>>2]|X|0)==0;do if(!m)if(!s){q=wh(V,70,t,0,Q)|0;break}else{q=wh(V,68,t,0,E)|0;xh(V,q,C,-14);break}else q=0;while(0);At(e,ka,t,ia,aa);if(P|(N|(s|0)!=0))wh(V,95,t,0,0)|0;if(!m){m=c[(V&p)+32>>2]|0;if(m>>>0>q>>>0)c[((c[(V&p)+4>>2]|0)+(q*20|0)&p)+8>>2]=m;c[((c[(V&p)+24>>2]|0)&p)+88>>2]=m+-1}if(P){zt(e,ka,0,O,l,X);Bt(e,ka,t,ia,O,aa,1,0,0);Ct(e,ka,g,Q,l,X);break}else{Bt(e,ka,t,ia,O,aa,1,0,0);break}}while(0);do if(c[(K&p)>>2]&128){if(c[(e&p)+412>>2]|0)break;wh(V,37,v,1,0)|0}while(0);xt(e,ga,110,g,2,ka,Q,k,G);do if(!H){if(!s){wh(V,16,0,G,0)|0;break}r=c[(V&p)+24>>2]|0;q=~G;do if((G|0)<0){s=c[(r&p)+112>>2]|0;if(!s)break;c[(s+(q<<2)&p)>>2]=c[(V&p)+32>>2]}while(0);c[(r&p)+88>>2]=(c[(V&p)+32>>2]|0)+-1;wh(V,9,D,F,0)|0}while(0);r=c[(V&p)+24>>2]|0;q=~u;do if((u|0)<0){s=c[(r&p)+112>>2]|0;if(!s)break;c[(s+(q<<2)&p)>>2]=c[(V&p)+32>>2]}while(0);c[(r&p)+88>>2]=(c[(V&p)+32>>2]|0)+-1;q=c[(w&p)>>2]|0;if(q){r=0;do{s=r;r=r+1|0;if(a[(da+r&n)>>0]|0)wh(V,61,s+ia|0,0,0)|0;q=c[(q&p)+20>>2]|0}while((q|0)!=0)}if((t|0)<(ia|0))wh(V,61,t,0,0)|0;do if(!(a[(W&n)>>0]|0)){if(c[(e&p)+412>>2]|0)break;st(e)}while(0);if(!(c[(K&p)>>2]&128))break;if(c[(e&p)+412>>2]|0)break;if(a[(W&n)>>0]|0)break;wh(V,35,v,1,0)|0;iq(V,1);if(a[((c[(V&p)>>2]|0)&n)+65>>0]|0)break;Xg(c[(V&p)+16>>2]|0,34520,-1,1,0)|0}while(0);if(S)c[(S&p)+492>>2]=T}}}else l=0}else l=0;while(0);mg(la,l);Do(la,f);Nk(la,g);Gk(la,h);i=ma;return}function tr(e,f,g,h,k){e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;var l=0,m=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,ga=0,ha=0,ia=0,ja=0,ka=0,la=0,ma=0,na=0,oa=0;oa=i;i=i+96|0;if((i|0)>=(j|0))fa();ca=oa;ja=oa+92|0;la=oa+88|0;L=oa+68|0;Y=oa+64|0;O=oa+32|0;ba=oa+28|0;c[(ja&p)>>2]=0;c[(la&p)>>2]=0;na=c[(e&p)>>2]|0;c[(L&p)>>2]=0;c[(L&p)+4>>2]=0;c[(L&p)+8>>2]=0;c[(L&p)+12>>2]=0;c[(L&p)+16>>2]=0;a:do if((c[(e&p)+64>>2]|0)==0?(N=na+65|0,(a[(N&n)>>0]|0)==0):0){if(g)if((b[(g&o)+6>>1]&128)!=0?(c[(g&p)+52>>2]|0)==0:0){l=c[(g&p)>>2]|0;c[(g&p)>>2]=0;Mk(na,g,1);g=0}else l=0;else{g=0;l=0}if((c[(f&p)+16>>2]|0)!=0?(ka=Jr(e,f)|0,(ka|0)!=0):0){u=c[(ka&p)+68>>2]|0;b:do if(u){t=c[(na&p)+20>>2]|0;if((t|0)>0){s=c[(na&p)+16>>2]|0;q=0;while(1){r=q+1|0;if((c[(s+(q<<4)&p)+12>>2]|0)==(u|0)){r=q;break b}if((r|0)<(t|0))q=r;else break}}else r=0}else r=-1e6;while(0);if((((Sq(e,18,c[(ka&p)>>2]|0,0,c[((c[(na&p)+16>>2]|0)+(r<<4)&p)>>2]|0)|0)==0?(ga=ka+44|0,Z=(d[(ga&n)>>0]|0)>>>5&1,ea=jt(e,ka,108,0,Y)|0,ha=(c[(ka&p)+12>>2]|0)!=0,(hr(e,ka)|0)==0):0)?(kt(e,ka,c[(Y&p)>>2]|0)|0)==0:0)?(ma=Oq(e)|0,(ma|0)!=0):0){ia=e+18|0;if(!(a[(ia&n)>>0]|0)){da=ma+88|0;b[(da&o)>>1]=b[(da&o)>>1]|4}da=(g|0)!=0;aa=e+408|0;$=c[(aa&p)>>2]|0;$=($|0)==0?e:$;Ar(e,r);X=$+328|0;c[(X&p)>>2]=c[(X&p)>>2]|1<>0]=d[($&n)>>0]|(da|(ea|0)!=0)&1;$=(h|0)==0;c:do if((((!((g|0)==0|$^1)?(c[(e&p)+532>>2]|0)==0:0)?(c[(g&p)+68>>2]|0)==0:0)?(As(e,ka)|0)==0:0)?(a[(ga&n)>>0]&16)==0:0){if((k|0)==10){if((b[(ka&o)+36>>1]|0)>-1)u=d[(ka&n)+45>>0]|0;else u=10;y=(u|0)==10?2:u}else y=k;t=c[(g&p)+32>>2]|0;if((c[(t&p)>>2]|0)==1){if(c[(t&p)+28>>2]|0){_=117;break}if(c[(g&p)+36>>2]|0){_=117;break}if(c[(g&p)+48>>2]|0){_=117;break}if(c[(g&p)+40>>2]|0){_=117;break}if(c[(g&p)+60>>2]|0){_=117;break}if(c[(g&p)+52>>2]|0){_=117;break}if(b[(g&o)+6>>1]&1){_=117;break}u=c[(g&p)>>2]|0;if((c[(u&p)>>2]|0)!=1){_=117;break}if((a[(c[(c[(u&p)+4>>2]&p)>>2]&n)>>0]|0)!=116){_=117;break}x=Ur(e,0,t+8|0)|0;if((x|0)==0|(x|0)==(ka|0)){_=117;break}B=x+44|0;X=d[(B&n)>>0]|0;if(!((X&16|0)==0?(((d[(ga&n)>>0]|0)>>>5&1^1)&255|0)==(X>>>5&1^1|0):0)){_=117;break}if(c[(x&p)+12>>2]|0){_=117;break}v=b[(ka&o)+38>>1]|0;if(v<<16>>16!=(b[(x&o)+38>>1]|0)){_=117;break}A=ka+36|0;if((b[(A&o)>>1]|0)!=(b[(x&o)+36>>1]|0)){_=117;break}if(v<<16>>16>0){q=c[(ka&p)+4>>2]|0;m=c[(x&p)+4>>2]|0;w=0;do{if((a[(q+(w*24|0)&n)+21>>0]|0)!=(a[(m+(w*24|0)&n)+21>>0]|0)){_=117;break c}u=c[(q+(w*24|0)&p)+16>>2]|0;t=c[(m+(w*24|0)&p)+16>>2]|0;s=(t|0)==0;if(!u){if(!s){_=117;break c}}else{if(s){_=117;break c}if(dd(u,t)|0){_=117;break c}}if((a[(q+(w*24|0)&n)+20>>0]|0)!=0?(a[(m+(w*24|0)&n)+20>>0]|0)==0:0){_=117;break c}do if((w|0)>0){u=c[(q+(w*24|0)&p)+8>>2]|0;t=(u|0)==0;s=c[(m+(w*24|0)&p)+8>>2]|0;if(t^(s|0)==0){_=117;break c}if(t)break;if(_v(u,s)|0){_=117;break c}}while(0);w=w+1|0}while((w|0)<(v<<16>>16|0))}E=ka+8|0;u=c[(E&p)>>2]|0;if(!u)t=0;else{v=c[(x&p)+8>>2]|0;if(!v){_=117;break}else t=0;do{t=(a[(u&n)+50>>0]|0)==0?t:1;s=v;while(1){if(Dt(u,s)|0)break;s=c[(s&p)+20>>2]|0;if(!s){_=117;break c}}if(!s){_=117;break c}u=c[(u&p)+20>>2]|0}while((u|0)!=0)}u=c[(ka&p)+24>>2]|0;if((u|0)!=0?(Ts(c[(x&p)+24>>2]|0,u,-1)|0)!=0:0){_=117;break}s=c[(e&p)>>2]|0;u=c[(s&p)+24>>2]|0;if(!(u&524288)){if(u&128){_=117;break}}else if(!((c[(ka&p)+16>>2]|0)==0&(u&128|0)==0)){_=117;break}m=c[(x&p)+68>>2]|0;d:do if(!m)s=-1e6;else{v=c[(s&p)+20>>2]|0;if((v|0)<=0){s=0;break}u=c[(s&p)+16>>2]|0;q=0;while(1){s=q+1|0;if((c[(u+(q<<4)&p)+12>>2]|0)==(m|0)){s=q;break d}if((s|0)<(v|0))q=s;else break}}while(0);D=Oq(e)|0;Ar(e,s);z=e+68|0;F=c[(z&p)>>2]|0;C=F+1|0;c[(z&p)>>2]=F+2;z=Et(e,r,ka)|0;v=e+19|0;q=a[(v&n)>>0]|0;do if(!(q<<24>>24)){_=e+72|0;u=(c[(_&p)>>2]|0)+1|0;c[(_&p)>>2]=u;_=78}else{X=q+-1<<24>>24;a[(v&n)>>0]=X;u=c[(e+((X&255)<<2)&p)+24>>2]|0;if(!(X<<24>>24)){_=78;break}G=q+-2<<24>>24;a[(v&n)>>0]=G;H=u;G=c[(e+((G&255)<<2)&p)+24>>2]|0}while(0);if((_|0)==78){H=e+72|0;G=(c[(H&p)>>2]|0)+1|0;c[(H&p)>>2]=G;H=u}Qq(e,C,r,ka,55);if((b[(A&o)>>1]|0)<0)if((c[(E&p)>>2]|0)!=0|(t|0)!=0|(y+-1|0)>>>0>1)_=83;else I=0;else if((t|0)!=0|(y+-1|0)>>>0>1)_=83;else I=0;if((_|0)==83){w=wh(D,108,C,0,0)|0;v=wh(D,16,0,0,0)|0;u=c[(D&p)+32>>2]|0;if(u>>>0>w>>>0)c[((c[(D&p)+4>>2]|0)+(w*20|0)&p)+8>>2]=u;c[((c[(D&p)+24>>2]|0)&p)+88>>2]=u+-1;I=v}if(!(a[(B&n)>>0]&32)){Qq(e,F,s,x,54);t=wh(D,108,F,0,0)|0;do if((b[(A&o)>>1]|0)<=-1)if(!(c[(E&p)>>2]|0)){u=wh(D,74,C,G,0)|0;break}else{u=wh(D,103,F,G,0)|0;break}else{u=wh(D,103,F,G,0)|0;w=wh(D,70,C,0,G)|0;Ft(e,y,ka);v=c[(D&p)+32>>2]|0;if(v>>>0>w>>>0)c[((c[(D&p)+4>>2]|0)+(w*20|0)&p)+8>>2]=v;c[((c[(D&p)+24>>2]|0)&p)+88>>2]=v+-1;if((z|0)<=0)break;wh(c[(e&p)+8>>2]|0,136,z,G,0)|0}while(0);wh(D,102,F,H,0)|0;wh(D,75,C,H,G)|0;v=c[(D&p)+4>>2]|0;if(v)a[(v+(((c[(D&p)+32>>2]|0)+-1|0)*20|0)&n)+3>>0]=11;xh(D,-1,c[(ka&p)>>2]|0,0);wh(D,9,F,u,0)|0;wh(D,61,F,0,0)|0;wh(D,61,C,0,0)|0}else{gs(e,r,c[(ka&p)+32>>2]|0,1,c[(ka&p)>>2]|0);gs(e,s,c[(x&p)+32>>2]|0,0,c[(x&p)>>2]|0);t=0}w=c[(E&p)>>2]|0;if(w){q=x+8|0;m=e+8|0;x=D+4|0;y=D+32|0;z=D+24|0;u=w;do{w=q;while(1){w=c[(w&p)>>2]|0;if(Dt(u,w)|0)break;w=w+20|0}wh(D,54,F,c[(w&p)+40>>2]|0,s)|0;X=c[(m&p)>>2]|0;xh(X,-1,hs(e,w)|0,-6);wh(D,55,C,c[(u&p)+40>>2]|0,r)|0;w=c[(m&p)>>2]|0;xh(w,-1,hs(e,u)|0,-6);w=c[(x&p)>>2]|0;if(w)a[(w+(((c[(y&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=1;w=wh(D,108,F,0,0)|0;wh(D,101,F,H,0)|0;wh(D,110,C,H,1)|0;wh(D,9,F,w+1|0,0)|0;v=c[(y&p)>>2]|0;if(v>>>0>w>>>0)c[((c[(x&p)>>2]|0)+(w*20|0)&p)+8>>2]=v;c[((c[(z&p)>>2]|0)&p)+88>>2]=v+-1;wh(D,61,F,0,0)|0;wh(D,61,C,0,0)|0;u=c[(u&p)+20>>2]|0}while((u|0)!=0)}if(t){u=c[(D&p)+32>>2]|0;if(u>>>0>t>>>0)c[((c[(D&p)+4>>2]|0)+(t*20|0)&p)+8>>2]=u;c[((c[(D&p)+24>>2]|0)&p)+88>>2]=u+-1}_r(e,G);_r(e,H);if(!I){m=0;q=0;break}wh(D,24,0,0,0)|0;u=c[(D&p)+32>>2]|0;if(u>>>0>I>>>0)c[((c[(D&p)+4>>2]|0)+(I*20|0)&p)+8>>2]=u;c[((c[(D&p)+24>>2]|0)&p)+88>>2]=u+-1;wh(D,61,C,0,0)|0;_=117}else _=117}else _=117;while(0);do if((_|0)==117){S=Et(e,r,ka)|0;R=e+72|0;t=c[(R&p)>>2]|0;W=t+1|0;X=ka+38|0;I=b[(X&o)>>1]|0;H=I<<16>>16;u=W+H|0;c[(R&p)>>2]=u;if(!(a[(ga&n)>>0]&16))V=W;else{u=u+1|0;c[(R&p)>>2]=u;V=t+2|0}T=V+1|0;U=(h|0)!=0;e:do if(U?(P=c[(h&p)+4>>2]|0,Q=(P|0)>0,Q):0){v=c[(h&p)>>2]|0;t=0;do{c[(v+(t<<3)&p)+4>>2]=-1;t=t+1|0}while((t|0)<(P|0));if(Q){D=Z<<24>>24!=0;C=ka+4|0;B=ka+36|0;t=1;A=0;v=-1;while(1){f:do if(I<<16>>16>0){z=c[(h&p)>>2]|0;s=c[(z+(A<<3)&p)>>2]|0;q=c[(C&p)>>2]|0;m=0;while(1){w=m+1|0;if(!(dd(s,c[(q+(m*24|0)&p)>>2]|0)|0)){w=m;break}if((w|0)<(H|0))m=w;else break f}c[(z+(A<<3)&p)+4>>2]=w;t=(A|0)==(w|0)?t:0;v=(w|0)==(b[(B&o)>>1]|0)?A:v}else w=0;while(0);if((w|0)>=(H|0)){m=c[((c[(h&p)>>2]|0)+(A<<3)&p)>>2]|0;if(($h(m)|0)==0|D)break;else{t=0;w=A}}else w=v;A=A+1|0;if((A|0)>=(P|0)){E=w;break e}else v=w}c[(ca&p)>>2]=f;c[(ca&p)+4>>2]=0;c[(ca&p)+8>>2]=m;th(e,33368,ca);a[(e&n)+17>>0]=1;m=0;break a}else{t=1;E=-1}}else{t=1;E=-1}while(0);g:do if(!da){c[(O&p)>>2]=0;c[(O&p)+4>>2]=0;c[(O&p)+8>>2]=0;c[(O&p)+12>>2]=0;c[(O&p)+16>>2]=0;c[(O&p)+20>>2]=0;c[(O&p)+24>>2]=0;c[(O&p)+28>>2]=0;c[(O&p)>>2]=e;if(l){s=c[(l&p)>>2]|0;if((s|0)>0){u=l+4|0;t=0;while(1){if(ls(O,c[((c[(u&p)>>2]|0)+(t*20|0)&p)>>2]|0)|0){g=0;m=0;break a}t=t+1|0;if((t|0)>=(s|0)){u=0;t=-1;r=0;_=169;break}}}else{P=E;O=0;Q=-1;z=0}}else{P=E;s=0;O=0;Q=-1;z=0}}else{u=u+1|0;c[(R&p)>>2]=u;G=ma+32|0;v=c[(G&p)>>2]|0;wh(ma,20,u,0,v+1|0)|0;a[(L&n)>>0]=13;H=L+4|0;c[(H&p)>>2]=u;a[(L&n)+1>>0]=0;F=L+8|0;c[(F&p)>>2]=t<<24>>24!=0?T:0;c[(L&p)+12>>2]=b[(X&o)>>1];Q=ir(e,g,L)|0;F=c[(F&p)>>2]|0;if(Q){m=0;break a}if(a[(N&n)>>0]|0){m=0;break a}wh(ma,21,u,0,0)|0;u=c[(G&p)>>2]|0;if(u>>>0>v>>>0)c[((c[(ma&p)+4>>2]|0)+(v*20|0)&p)+8>>2]=u;I=ma+24|0;c[((c[(I&p)>>2]|0)&p)+88>>2]=u+-1;s=c[(c[(g&p)>>2]&p)>>2]|0;h:do if(!ea){w=Oq(e)|0;t=c[(w&p)+32>>2]|0;i:do if(!(a[(ga&n)>>0]&16))v=0;else{u=c[(e&p)>>2]|0;v=c[(ka&p)+60>>2]|0;if(!v){v=0;break}while(1){if((c[(v&p)>>2]|0)==(u|0))break i;v=c[(v&p)+24>>2]|0;if(!v){v=0;break}}}while(0);if((t|0)<=1){u=F;t=0;r=0;_=169;break g}q=(a[((c[(w&p)>>2]|0)&n)+65>>0]|0)==0;z=w+4|0;y=ka+32|0;x=ka+8|0;m=1;while(1){if(q)w=(c[(z&p)>>2]|0)+(m*20|0)|0;else w=29120;u=a[(w&n)>>0]|0;do if(u<<24>>24==54){if((c[(w&p)+12>>2]|0)!=(r|0))break;u=c[(w&p)+8>>2]|0;if((u|0)==(c[(y&p)>>2]|0))break h;w=c[(x&p)>>2]|0;if(!w)break;do{if((u|0)==(c[(w&p)+40>>2]|0))break h;w=c[(w&p)+20>>2]|0}while((w|0)!=0)}else if(u<<24>>24==-107?(c[(w&p)+16>>2]|0)==(v|0):0)break h;while(0);m=m+1|0;if((m|0)>=(t|0)){u=F;t=0;r=0;_=169;break g}}}while(0);v=e+68|0;w=c[(v&p)>>2]|0;c[(v&p)>>2]=w+1;v=e+19|0;t=a[(v&n)>>0]|0;do if(!(t<<24>>24)){u=(c[(R&p)>>2]|0)+1|0;c[(R&p)>>2]=u;_=159}else{Q=t+-1<<24>>24;a[(v&n)>>0]=Q;u=c[(e+((Q&255)<<2)&p)+24>>2]|0;if(!(Q<<24>>24)){_=159;break}Q=t+-2<<24>>24;a[(v&n)>>0]=Q;v=c[(e+((Q&255)<<2)&p)+24>>2]|0}while(0);if((_|0)==159){v=(c[(R&p)>>2]|0)+1|0;c[(R&p)>>2]=v}wh(ma,57,w,s,0)|0;r=wh(ma,22,c[(H&p)>>2]|0,0,0)|0;wh(ma,49,F,s,u)|0;wh(ma,74,w,v,0)|0;wh(ma,75,w,u,v)|0;wh(ma,16,0,r,0)|0;t=c[(G&p)>>2]|0;if(t>>>0>r>>>0)c[((c[(ma&p)+4>>2]|0)+(r*20|0)&p)+8>>2]=t;c[((c[(I&p)>>2]|0)&p)+88>>2]=t+-1;_r(e,u);_r(e,v);u=F;t=w;r=1;_=169}while(0);if((_|0)==169)if($&(s|0)>0){P=b[(ka&o)+36>>1]|0;O=u;Q=t;z=r}else{P=E;O=u;Q=t;z=r}if((a[(ga&n)>>0]&16)!=0?(M=b[(X&o)>>1]|0,M<<16>>16>0):0){v=c[(ka&p)+4>>2]|0;t=M<<16>>16;r=0;u=0;do{u=((d[(v+(r*24|0)&n)+23>>0]|0)>>>1&1)+u|0;r=r+1|0}while((r|0)<(t|0))}else u=0;do if($&(s|0)!=0){u=(b[(X&o)>>1]|0)-u|0;if((s|0)==(u|0))break;c[(ca&p)>>2]=f;c[(ca&p)+4>>2]=0;c[(ca&p)+8>>2]=u;c[(ca&p)+12>>2]=s;th(e,33400,ca);m=0;break a}while(0);do if(U){u=c[(h&p)+4>>2]|0;if((s|0)==(u|0))break;c[(ca&p)>>2]=s;c[(ca&p)+4>>2]=u;th(e,33456,ca);m=0;break a}while(0);K=na+24|0;if(!(c[(K&p)>>2]&128))q=0;else{q=(c[(R&p)>>2]|0)+1|0;c[(R&p)>>2]=q;wh(ma,25,0,q,0)|0}do if(ha)m=0;else{u=pt(e,ka,55,-1,0,ja,la)|0;m=mh(na,(u<<2)+4|0,0)|0;if(!m)break a;if((u|0)>0)t=0;else break;do{N=(c[(R&p)>>2]|0)+1|0;c[(R&p)>>2]=N;c[(m+(t<<2)&p)>>2]=N;t=t+1|0}while((t|0)!=(u|0))}while(0);M=z<<24>>24!=0;do if(M){N=wh(ma,108,Q,0,0)|0;L=c[(ma&p)+32>>2]|0}else{if(!da){L=0;N=0;break}N=wh(ma,22,c[(L&p)+4>>2]|0,0,0)|0;L=N}while(0);J=xs(ma)|0;do if(c[(Y&p)>>2]&1){w=(b[(X&o)>>1]|0)+1|0;H=e+60|0;v=c[(H&p)>>2]|0;G=e+56|0;u=c[(G&p)>>2]|0;if((u|0)<(w|0)){I=c[(R&p)>>2]|0;c[(R&p)>>2]=I+w;I=I+1|0}else{c[(H&p)>>2]=w+v;c[(G&p)>>2]=u-w;I=v}if((P|0)<0)wh(ma,25,-1,I,0)|0;else{if(M)wh(ma,47,Q,P,I)|0;else Rq(e,c[((c[(l&p)+4>>2]|0)+(P*20|0)&p)>>2]|0,I);w=wh(ma,77,I,0,0)|0;wh(ma,25,-1,I,0)|0;v=c[(ma&p)+32>>2]|0;if(v>>>0>w>>>0)c[((c[(ma&p)+4>>2]|0)+(w*20|0)&p)+8>>2]=v;c[((c[(ma&p)+24>>2]|0)&p)+88>>2]=v+-1;wh(ma,38,I,0,0)|0}v=b[(X&o)>>1]|0;if(v<<16>>16>0){D=M|(l|0)!=0;t=h+4|0;u=I+1|0;w=l+4|0;A=e+8|0;B=ka+4|0;C=0;do{j:do if($)z=C;else{y=c[(t&p)>>2]|0;if((y|0)<=0){z=0;break}x=c[(h&p)>>2]|0;r=0;while(1){z=r+1|0;if((c[(x+(r<<3)&p)+4>>2]|0)==(C|0)){z=r;break j}if((z|0)<(y|0))r=z;else break}}while(0);do if(D){if(U?(z|0)>=(c[(t&p)>>2]|0):0){_=213;break}if(M){wh(ma,47,Q,z,u+C|0)|0;break}else{Y=c[((c[(w&p)>>2]|0)+(z*20|0)&p)>>2]|0;r=u+C|0;x=c[(A&p)>>2]|0;Rq(e,Y,r);v=(c[(R&p)>>2]|0)+1|0;c[(R&p)>>2]=v;wh(x,33,r,v,0)|0;a[(Y&n)+38>>0]=a[(Y&n)>>0]|0;a[(Y&n)>>0]=-97;c[(Y&p)+28>>2]=v;Y=Y+4|0;c[(Y&p)>>2]=c[(Y&p)>>2]&-4097;break}}else _=213;while(0);if((_|0)==213){_=0;Rq(e,c[((c[(B&p)>>2]|0)+(C*24|0)&p)+4>>2]|0,u+C|0)}C=C+1|0;v=b[(X&o)>>1]|0}while((C|0)<(v<<16>>16|0))}if(!ha){wt(ma,ka,I+1|0);v=b[(X&o)>>1]|0}xt(e,ea,108,0,1,ka,I+-1-(v<<16>>16)|0,k,J);v=(b[(X&o)>>1]|0)+1|0;dt(e,I,v);if((c[(G&p)>>2]|0)>=(v|0))break;c[(G&p)>>2]=v;c[(H&p)>>2]=I}while(0);do if(!ha){if(a[(ga&n)>>0]&16)wh(ma,28,0,W,0)|0;k:do if((P|0)<=-1)if(!((a[(ga&n)>>0]&16|Z)<<24>>24)){wh(ma,74,c[(ja&p)>>2]|0,V,S)|0;I=1;break}else{wh(ma,28,0,V,0)|0;I=0;break}else{do if(M)wh(ma,47,Q,P,V)|0;else{if(da){wh(ma,33,P+O|0,V,0)|0;break}Rq(e,c[((c[(l&p)+4>>2]|0)+(P*20|0)&p)>>2]|0,V);if(!(a[((c[(ma&p)>>2]|0)&n)+65>>0]|0)){u=(c[(ma&p)+4>>2]|0)+(((c[(ma&p)+32>>2]|0)+-1|0)*20|0)|0;if(!u)break}else u=29120;if((a[(u&n)>>0]|0)!=28)break;if(a[(ga&n)>>0]&16)break;a[(u&n)>>0]=74;c[(u&p)+4>>2]=c[(ja&p)>>2];c[(u&p)+8>>2]=V;c[(u&p)+12>>2]=S;I=1;break k}while(0);if(!(a[(ga&n)>>0]&16)){u=wh(ma,77,V,0,0)|0;wh(ma,74,c[(ja&p)>>2]|0,V,S)|0;t=c[(ma&p)+32>>2]|0;if(t>>>0>u>>>0)c[((c[(ma&p)+4>>2]|0)+(u*20|0)&p)+8>>2]=t;c[((c[(ma&p)+24>>2]|0)&p)+88>>2]=t+-1}else wh(ma,76,V,(c[(ma&p)+32>>2]|0)+2|0,0)|0;wh(ma,38,V,0,0)|0;I=0}while(0);if((S|0)>0)wh(c[(e&p)+8>>2]|0,136,S,V,0)|0;if((b[(X&o)>>1]|0)>0){G=ka+36|0;H=ka+4|0;C=(s|0)==0;B=h+4|0;A=(O|0)==(T|0);s=l+4|0;t=e+23|0;u=ca+20|0;v=ca+4|0;E=ca+24|0;F=0;w=0;do{D=F+T|0;l:do if((F|0)==(b[(G&o)>>1]|0))wh(ma,29,D,0,0)|0;else{m:do if($)if(!(a[((c[(H&p)>>2]|0)+(F*24|0)&n)+23>>0]&2)){z=F-w|0;_=258;break}else{w=w+1|0;break}else{y=c[(B&p)>>2]|0;if((y|0)<=0){z=0;_=258;break}x=c[(h&p)>>2]|0;r=0;while(1){z=r+1|0;if((c[(x+(r<<3)&p)+4>>2]|0)==(F|0)){z=r;_=258;break m}if((z|0)<(y|0))r=z;else{_=258;break}}}while(0);do if((_|0)==258){_=0;if((z|0)<0|C)break;if(U?(z|0)>=(c[(B&p)>>2]|0):0)break;if(M){wh(ma,47,Q,z,D)|0;break l}if(!da){Rq(e,c[((c[(s&p)>>2]|0)+(z*20|0)&p)>>2]|0,D);break l}if(A)break l;wh(ma,34,z+O|0,D,0)|0;break l}while(0);z=c[((c[(H&p)>>2]|0)+(F*24|0)&p)+4>>2]|0;do if(a[(t&n)>>0]|0){c[(ca&p)>>2]=0;c[(ca&p)+4>>2]=0;c[(ca&p)+8>>2]=0;c[(ca&p)+12>>2]=0;c[(ca&p)+16>>2]=0;c[(ca&p)+20>>2]=0;a[(u&n)>>0]=1;c[(ca&p)>>2]=78;c[(v&p)>>2]=79;c[(E&p)>>2]=0;rs(ca,z)|0;if(!(a[(u&n)>>0]|0))break;Gt(e,z,D,0);break l}while(0);Rq(e,z,D)}while(0);F=F+1|0}while((F|0)<(b[(X&o)>>1]|0))}if(!(a[(ga&n)>>0]&16)){yt(e,ka,m,c[(ja&p)>>2]|0,c[(la&p)>>2]|0,W,0,P>>>31&255^1,k&255,J,ba);zt(e,ka,0,W,0,0);Bt(e,ka,c[(ja&p)>>2]|0,c[(la&p)>>2]|0,W,m,0,I,(c[(ba&p)>>2]|0)==0&1);break}u=c[(ka&p)+60>>2]|0;n:do if(!u)u=0;else while(1){if((c[(u&p)>>2]|0)==(na|0))break n;u=c[(u&p)+24>>2]|0;if(!u){u=0;break}}while(0);qt(e,ka);xh(ma,wh(ma,15,1,(b[(X&o)>>1]|0)+2|0,W)|0,u,-10);t=c[(ma&p)+4>>2]|0;if(t)a[(t+(((c[(ma&p)+32>>2]|0)+-1|0)*20|0)&n)+3>>0]=(k|0)==10?2:k&255;ca=c[(aa&p)>>2]|0;a[(((ca|0)==0?e:ca)&n)+21>>0]=1}while(0);if(c[(K&p)>>2]&128)wh(ma,37,q,1,0)|0;if(ea)xt(e,ea,108,0,2,ka,V+-1-(b[(X&o)>>1]|0)|0,k,J);u=ma+24|0;t=c[(u&p)>>2]|0;r=~J;do if((J|0)<0){s=c[(t&p)+112>>2]|0;if(!s)break;c[(s+(r<<2)&p)>>2]=c[(ma&p)+32>>2]}while(0);s=ma+32|0;c[(t&p)+88>>2]=(c[(s&p)>>2]|0)+-1;do if(M){wh(ma,9,Q,L,0)|0;s=c[(s&p)>>2]|0;if(s>>>0>N>>>0)c[((c[(ma&p)+4>>2]|0)+(N*20|0)&p)+8>>2]=s;c[((c[(u&p)>>2]|0)&p)+88>>2]=s+-1;wh(ma,61,Q,0,0)|0}else{if(!da)break;wh(ma,16,0,L,0)|0;s=c[(s&p)>>2]|0;if(s>>>0>N>>>0)c[((c[(ma&p)+4>>2]|0)+(N*20|0)&p)+8>>2]=s;c[((c[(u&p)>>2]|0)&p)+88>>2]=s+-1}while(0);if((a[(ga&n)>>0]&16)!=0|ha)break;r=c[(ja&p)>>2]|0;if((r|0)<(c[(la&p)>>2]|0))wh(ma,61,r,0,0)|0;r=c[(ka&p)+8>>2]|0;if(!r)break;else s=0;while(1){wh(ma,61,(c[(la&p)>>2]|0)+s|0,0,0)|0;r=c[(r&p)+20>>2]|0;if(!r)break;else s=s+1|0}}while(0);if((a[(ia&n)>>0]|0)==0?(c[(e&p)+412>>2]|0)==0:0)st(e);if((((c[(na&p)+24>>2]&128|0)!=0?(a[(ia&n)>>0]|0)==0:0)?(c[(e&p)+412>>2]|0)==0:0)?(wh(ma,35,q,1,0)|0,iq(ma,1),(a[((c[(ma&p)>>2]|0)&n)+65>>0]|0)==0):0)Xg(c[(ma&p)+16>>2]|0,33488,-1,1,0)|0}else m=0}else m=0}else{m=0;l=0}while(0);Do(na,f);Nk(na,l);Mk(na,g,1);Hk(na,h);mg(na,m);i=oa;return}function ur(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0;h=i;i=i+16|0;if((i|0)>=(j|0))fa();f=h;if(!d){d=mh(b,8,0)|0;if(!d)d=0;else{g=d;k=g;a[(k&n)>>0]=0;a[(k&n)+1>>0]=0;a[(k&n)+2>>0]=0;a[(k&n)+3>>0]=0;g=g+4|0;a[(g&n)>>0]=0;a[(g&n)+1>>0]=0;a[(g&n)+2>>0]=0;a[(g&n)+3>>0]=0;g=4}}else g=4;do if((g|0)==4){c[(d&p)>>2]=Ht(b,c[(d&p)>>2]|0,8,d+4|0,f)|0;f=c[(f&p)>>2]|0;if((f|0)<0){Hk(b,d);d=0;break}else{b=Wq(b,e)|0;c[((c[(d&p)>>2]|0)+(f<<3)&p)>>2]=b;break}}while(0);i=h;return d|0}function vr(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0;if((c[(d&p)+4>>2]|0)!=0?(f=nr(c[(a&p)>>2]|0,95,d,e)|0,(f|0)!=0):0){c[(f&p)+12>>2]=b;b=f+4|0;c[(b&p)>>2]=c[(b&p)>>2]|4352;b=f}return b|0}function wr(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;e=c[(a&p)>>2]|0;d=nr(e,153,d,1)|0;if(!d){Nk(e,b);d=0}else{c[(d&p)+20>>2]=b;yr(a,d)}return d|0}function xr(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;b=c[(b&p)>>2]|0;if((d|0)!=0&(e|0)!=0?(a[(d&n)>>0]|0)==101:0){a[(e&n)>>0]=f;f=e+16|0;Gk(b,c[(f&p)>>2]|0);c[(f&p)>>2]=0}return}function yr(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;f=i;i=i+16|0;if((i|0)>=(j|0))fa();e=f;if((c[(a&p)+64>>2]|0)==0?(It(b),d=c[((c[(a&p)>>2]|0)&p)+100>>2]|0,(d|0)<(c[(b&p)+24>>2]|0)):0){c[(e&p)>>2]=d;th(a,27152,e)}i=f;return}function zr(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,i=0;d=c[(a&p)>>2]|0;i=d+20|0;e=c[(i&p)>>2]|0;if((e|0)>0){g=d+16|0;h=(b|0)==0;d=e;f=0;do{e=c[(g&p)>>2]|0;do if(c[(e+(f<<4)&p)+4>>2]|0){if(!h?(dd(b,c[(e+(f<<4)&p)>>2]|0)|0)!=0:0)break;Ar(a,f);d=c[(i&p)>>2]|0}while(0);f=f+1|0}while((f|0)<(d|0))}return}function Ar(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;f=c[(a&p)+408>>2]|0;f=(f|0)==0?a:f;a=f+332|0;d=c[(a&p)>>2]|0;e=1<>2]|0,c[(a&p)>>2]=d|e,c[(f+(b<<2)&p)+336>>2]=c[(c[((c[(g&p)+16>>2]|0)+(b<<4)&p)+12>>2]&p)>>2],(b|0)==1):0)_k(f)|0;return}function Br(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,o=0,q=0;q=i;i=i+128|0;if((i|0)>=(j|0))fa();f=q+8|0;o=q;m=q+24|0;c[(o&p)>>2]=0;k=c[(b&p)>>2]|0;if((c[(b&p)+64>>2]|0)==0?(c[(f&p)>>2]=e,l=Wk(k,d,f)|0,(l|0)!=0):0){d=b+18|0;a[(d&n)>>0]=(a[(d&n)>>0]|0)+1<<24>>24;e=b+440|0;f=m+0|0;g=e+0|0;h=f+96|0;do{a[(f&n)>>0]=a[(g&n)>>0]|0;f=f+1|0;g=g+1|0}while((f|0)<(h|0));f=e+0|0;h=f+96|0;do{c[(f&p)>>2]=0;f=f+4|0}while((f|0)<(h|0));Lh(b,l,o)|0;mg(k,c[(o&p)>>2]|0);mg(k,l);f=e+0|0;g=m+0|0;h=f+96|0;do{a[(f&n)>>0]=a[(g&n)>>0]|0;f=f+1|0;g=g+1|0}while((f|0)<(h|0));a[(d&n)>>0]=(a[(d&n)>>0]|0)+-1<<24>>24}i=q;return}function Cr(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0;k=i;i=i+48|0;if((i|0)>=(j|0))fa();g=k;h=k+16|0;b=c[((c[((c[(a&p)>>2]|0)&p)+16>>2]|0)+(b<<4)&p)>>2]|0;f=1;do{c[(g&p)>>2]=f;ad(24,h,33272,g)|0;if(_h(c[(a&p)>>2]|0,h,b)|0){c[(g&p)>>2]=b;c[(g&p)+4>>2]=h;c[(g&p)+8>>2]=d;c[(g&p)+12>>2]=e;Br(a,28840,g)}f=f+1|0}while((f|0)!=5);i=k;return}function Dr(b,d){b=b|0;d=d|0;var e=0,f=0;e=b+19|0;f=a[(e&n)>>0]|0;if(!(f<<24>>24)){f=b+72|0;e=(c[(f&p)>>2]|0)+1|0;c[(f&p)>>2]=e}else{f=f+-1<<24>>24;a[(e&n)>>0]=f;e=c[(b+((f&255)<<2)&p)+24>>2]|0}f=c[(b&p)+8>>2]|0;wh(f,25,(c[(c[((c[((c[(b&p)>>2]|0)&p)+16>>2]|0)+(d<<4)&p)+12>>2]&p)>>2]|0)+1|0,e,0)|0;wh(f,52,d,1,e)|0;_r(b,e);return}function Er(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0;l=i;i=i+32|0;if((i|0)>=(j|0))fa();k=l;h=Oq(b)|0;f=b+19|0;g=a[(f&n)>>0]|0;if(!(g<<24>>24)){g=b+72|0;f=(c[(g&p)>>2]|0)+1|0;c[(g&p)>>2]=f}else{g=g+-1<<24>>24;a[(f&n)>>0]=g;f=c[(b+((g&255)<<2)&p)+24>>2]|0}wh(h,117,d,f,e)|0;g=c[(b&p)+408>>2]|0;a[(((g|0)==0?b:g)&n)+21>>0]=1;c[(k&p)>>2]=c[((c[((c[(b&p)>>2]|0)&p)+16>>2]|0)+(e<<4)&p)>>2];c[(k&p)+4>>2]=(e|0)==1?13184:13208;c[(k&p)+8>>2]=d;c[(k&p)+12>>2]=f;c[(k&p)+16>>2]=f;Br(b,33216,k);_r(b,f);i=l;return}function Fr(f,g,h,k,l){f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;var m=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;X=i;i=i+96|0;if((i|0)>=(j|0))fa();G=X+24|0;w=X+80|0;q=X+64|0;A=X+16|0;t=X+60|0;u=X+56|0;O=X+52|0;N=X+48|0;z=X+44|0;D=X+40|0;E=X+36|0;F=X+32|0;x=X+8|0;s=X;W=c[(f&p)>>2]|0;T=Oq(f)|0;do if((T|0)!=0?(S=T+88|0,b[(S&o)>>1]=b[(S&o)>>1]|16,S=f+72|0,c[(S&p)>>2]=2,Q=er(f,g,h,w)|0,(Q|0)>=0):0){R=W+16|0;C=c[(R&p)>>2]|0;if((Q|0)==1?(_k(f)|0)!=0:0)break;V=Wq(W,c[(w&p)>>2]|0)|0;if(V){if(!l)U=Wq(W,k)|0;else{c[(G&p)>>2]=k;U=uh(W,30104,G)|0}B=h+4|0;if(!(c[(B&p)>>2]|0))L=0;else L=c[(C+(Q<<4)&p)>>2]|0;a:do if(!(Sq(f,19,V,U,L)|0)){c[(q&p)>>2]=0;c[(q&p)+4>>2]=V;c[(q&p)+8>>2]=U;c[(q&p)+12>>2]=0;r=W+452|0;c[(r&p)>>2]=0;g=cg(W,L,14,q)|0;if(!g){k=c[(q&p)>>2]|0;if(!k)break;m=(c[(S&p)>>2]|0)+1|0;c[(S&p)>>2]=m;xh(T,wh(T,97,0,m,0)|0,k,0);iq(T,1);if(!(a[((c[(T&p)>>2]|0)&n)+65>>0]|0))Xg(c[(T&p)+16>>2]|0,30112,-1,1,0)|0;wh(T,35,m,1,0)|0;Wc(c[(q&p)>>2]|0);break}else if((g|0)==12){w=0;q=56;b:while(1){while(1){l=(w+q|0)/2|0;g=c[((l*12|0)&p)+30120>>2]|0;k=dd(V,g)|0;if(!k){w=l;break b}if((k|0)<0){g=l;break}if((l|0)<(q|0))w=l+1|0;else break a}g=g+-1|0;if((w|0)>(g|0))break a;else q=g}if((a[((w*12|0)&n)+30125>>0]&1)!=0?(Gn(f)|0)!=0:0)break;do switch(d[((w*12|0)&n)+30124>>0]|0){case 10:{q=1<>2]=c[(F&p)>>2]|q;if(U){c[(G&p)>>2]=0;Dn(U,G)|0;k=c[(G&p)>>2]|0;if((k|0)<=-1)k=(k|0)==-2147483648?2147483647:0-k|0;G=c[(f&p)+408>>2]|0;Ar(f,Q);G=((G|0)==0?f:G)+328|0;c[(G&p)>>2]=c[(G&p)>>2]|q;wh(T,25,k,1,0)|0;wh(T,52,Q,3,1)|0;c[((c[(C+(Q<<4)&p)+12>>2]|0)&p)+80>>2]=k;pq(c[(C+(Q<<4)&p)+4>>2]|0,k);break a}iq(T,1);if(!(a[((c[(T&p)>>2]|0)&n)+65>>0]|0))Xg(c[(T&p)+16>>2]|0,30848,-1,1,0)|0;c[(S&p)>>2]=(c[(S&p)>>2]|0)+2;k=yh(T,9,30808)|0;l=c[(T&p)+32>>2]|0;if(l>>>0>k>>>0)c[((c[(T&p)+4>>2]|0)+(k*20|0)&p)+4>>2]=Q;m=k+1|0;if(l>>>0>m>>>0)c[((c[(T&p)+4>>2]|0)+(m*20|0)&p)+4>>2]=Q;m=k+6|0;if(l>>>0<=m>>>0)break a;c[((c[(T&p)+4>>2]|0)+(m*20|0)&p)+4>>2]=2e3;break a}case 19:{k=c[(c[((c[(C+(Q<<4)&p)+4>>2]|0)&p)+4>>2]&p)>>2]|0;G=A;c[(G&p)>>2]=-2;c[(G&p)+4>>2]=-1;if(U){ji(U,A)|0;m=A;l=c[(m&p)>>2]|0;m=c[(m&p)+4>>2]|0;if((m|0)<-1|(m|0)==-1&l>>>0<4294967295){l=A;c[(l&p)>>2]=-1;c[(l&p)+4>>2]=-1;l=-1;m=-1}G=k+160|0;c[(G&p)>>2]=l;c[(G&p)+4>>2]=m;k=c[(k&p)+208>>2]|0;if(k){G=k+16|0;c[(G&p)>>2]=l;c[(G&p)+4>>2]=m}}else{m=k+160|0;l=c[(m&p)>>2]|0;m=c[(m&p)+4>>2]|0}G=A;c[(G&p)>>2]=l;c[(G&p)+4>>2]=m;Jt(f,30952,l,m);break a}case 28:{q=Oq(f)|0;iq(q,4);c[(S&p)>>2]=4;Ar(f,Q);if((((a[((c[(q&p)>>2]|0)&n)+65>>0]|0)==0?(Xg(c[(q&p)+16>>2]|0,31232,-1,1,0)|0,(a[((c[(q&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(q&p)+16>>2]|0)+40|0,20632,-1,1,0)|0,(a[((c[(q&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(q&p)+16>>2]|0)+80|0,31240,-1,1,0)|0,(a[((c[(q&p)>>2]|0)&n)+65>>0]|0)==0):0)Xg((c[(q&p)+16>>2]|0)+120|0,31248,-1,1,0)|0;l=c[((c[(C+(Q<<4)&p)+12>>2]|0)&p)+16>>2]|0;if(!l)break a;do{m=c[(l&p)+8>>2]|0;G=c[(m&p)>>2]|0;xh(q,wh(q,97,0,1,0)|0,G,0);wh(q,28,0,2,0)|0;G=Ws(b[(m&o)+42>>1]|0)|0;wh(q,25,G,3,0)|0;G=Ws(b[(m&o)+28>>1]|0)|0;wh(q,25,G,4,0)|0;wh(q,35,1,4,0)|0;m=c[(m&p)+8>>2]|0;if(m)do{G=c[(m&p)>>2]|0;xh(q,wh(q,97,0,2,0)|0,G,0);G=Ws(b[(m&o)+44>>1]|0)|0;wh(q,25,G,3,0)|0;G=Ws(b[(c[(m&p)+8>>2]&o)>>1]|0)|0;wh(q,25,G,4,0)|0;wh(q,35,1,4,0)|0;m=c[(m&p)+20>>2]|0}while((m|0)!=0);l=c[(l&p)>>2]|0}while((l|0)!=0);break}case 15:{if(!U)break a;s=bq(W,U,L)|0;if(!s)break a;w=(c[((w*12|0)&p)+30128>>2]|0)==0;t=s+46|0;G=w?3:6;r=b[((w?t:s+48|0)&o)>>1]|0;u=r&65535;c[(S&p)>>2]=G;q=c[(s&p)+12>>2]|0;iq(T,G);Ar(f,Q);if(((a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0?(Xg(c[(T&p)+16>>2]|0,31256,-1,1,0)|0,(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(T&p)+16>>2]|0)+40|0,31176,-1,1,0)|0,(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0):0)Xg((c[(T&p)+16>>2]|0)+80|0,31184,-1,1,0)|0;if(((!w?(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0:0)?(Xg((c[(T&p)+16>>2]|0)+120|0,31264,-1,1,0)|0,(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(T&p)+16>>2]|0)+160|0,31272,-1,1,0)|0,(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0):0)Xg((c[(T&p)+16>>2]|0)+200|0,31280,-1,1,0)|0;if(!(r<<16>>16))break a;m=s+4|0;l=s+28|0;k=s+32|0;s=q+4|0;q=0;do{G=b[((c[(m&p)>>2]|0)+(q<<1)&o)>>1]|0;wh(T,25,q,1,0)|0;r=G<<16>>16;wh(T,25,r,2,0)|0;if(G<<16>>16<0)wh(T,28,0,3,0)|0;else{G=c[((c[(s&p)>>2]|0)+(r*24|0)&p)>>2]|0;xh(T,wh(T,97,0,3,0)|0,G,0)}if(!w){wh(T,25,d[((c[(l&p)>>2]|0)+q&n)>>0]|0,4,0)|0;G=c[((c[(k&p)>>2]|0)+(q<<2)&p)>>2]|0;xh(T,wh(T,97,0,5,0)|0,G,0);wh(T,25,(q|0)<(e[(t&o)>>1]|0)&1,6,0)|0}wh(T,35,1,c[(S&p)>>2]|0,0)|0;q=q+1|0}while((q|0)<(u|0));break}case 22:{Ar(f,Q);k=(c[(S&p)>>2]|0)+1|0;c[(S&p)>>2]=k;if((a[(V&n)>>0]&-33)<<24>>24==80)wh(T,153,Q,k,0)|0;else{c[(G&p)>>2]=0;if(U){Dn(U,G)|0;m=c[(G&p)>>2]|0;if((m|0)<=-1)m=(m|0)==-2147483648?2147483647:0-m|0}else m=0;wh(T,154,Q,k,m)|0}wh(T,35,k,1,0)|0;iq(T,1);if(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)break a;Xg(c[(T&p)+16>>2]|0,V,-1,1,-1)|0;break a}case 24:{l=c[(C+(Q<<4)&p)+4>>2]|0;if(U){c[(G&p)>>2]=0;Dn(U,G)|0;G=c[(G&p)>>2]|0;c[(W&p)+72>>2]=G;if((xg(l,G,-1,0)|0)!=7)break a;a[(W&n)+65>>0]=1;break a}if(!l){l=0;m=0}else{m=c[((c[(l&p)+4>>2]|0)&p)+32>>2]|0;l=m;m=((m|0)<0)<<31>>31}Jt(f,30864,l,m);break a}case 25:{l=c[(C+(Q<<4)&p)+4>>2]|0;if(U){m=(ii(U,1,0)|0)<<24>>24!=0&1;if((c[(B&p)>>2]|0)==0?(y=W+20|0,(c[(y&p)>>2]|0)>0):0){k=0;do{so(c[((c[(R&p)>>2]|0)+(k<<4)&p)+4>>2]|0,m)|0;k=k+1|0}while((k|0)<(c[(y&p)>>2]|0))}}else m=-1;G=so(l,m)|0;Jt(f,30880,G,((G|0)<0)<<31>>31);break a}case 18:{iq(T,1);if(!(a[((c[(T&p)>>2]|0)&n)+65>>0]|0))Xg(c[(T&p)+16>>2]|0,30936,-1,1,0)|0;c:do if(U){k=U;while(1)if(!(a[(k&n)>>0]|0))break;else k=k+1|0;m=k-U&1073741823;k=0;while(1){if(!(Fc(U,c[(k<<2&p)+32216>>2]|0,m)|0))break;k=k+1|0;if((k|0)==6){P=91;break c}}if((k|0)!=-1)q=Q;else P=91}else P=91;while(0);if((P|0)==91)if(!(c[(B&p)>>2]|0)){c[(B&p)>>2]=1;k=-1;q=0}else{k=-1;q=Q}m=c[(W&p)+20>>2]|0;if((m|0)>0){l=T+96|0;do{m=m+-1|0;do if(c[((c[(R&p)>>2]|0)+(m<<4)&p)+4>>2]|0){if((m|0)!=(q|0)?(c[(B&p)>>2]|0)!=0:0)break;c[(l&p)>>2]=c[(l&p)>>2]|1<0)}wh(T,35,1,1,0)|0;break a}case 32:{if(!U){if(!(c[2708]|0))break a;iq(T,1);if(!(a[((c[(T&p)>>2]|0)&n)+65>>0]|0))Xg(c[(T&p)+16>>2]|0,31048,-1,1,0)|0;G=c[2708]|0;xh(T,wh(T,97,0,1,0)|0,G,0);wh(T,35,1,1,0)|0;break a}if((a[(U&n)>>0]|0)!=0?(F=c[(W&p)>>2]|0,F=(pc[c[(F&p)+32>>2]&31](F,U,1,u)|0)!=0,F|(c[(u&p)>>2]|0)==0):0){th(f,31072,G);break a}if((d[(W&n)+64>>0]|0)<2)Kt(f)|0;Wc(c[2708]|0);if(!(a[(U&n)>>0]|0)){c[2708]=0;break a}else{c[(G&p)>>2]=U;c[2708]=_c(10344,G)|0;break a}}case 14:{if(!((U|0)!=0?(G=(Dn(U,t)|0)==0,m=c[(t&p)>>2]|0,!(G|(m|0)<1)):0)){c[(t&p)>>2]=2147483647;m=2147483647}l=c[(f&p)+408>>2]|0;Ar(f,Q);l=((l|0)==0?f:l)+328|0;c[(l&p)>>2]=c[(l&p)>>2]|1<>2]|0;if(l>>>0>m>>>0)c[((c[(T&p)+4>>2]|0)+(m*20|0)&p)+8>>2]=l;c[((c[(T&p)+24>>2]|0)&p)+88>>2]=l+-1;break a}case 30:{if(!U)break a;h=_h(W,U,L)|0;if(!h)break a;k=c[(h&p)+8>>2]|0;d:do if(!k)k=0;else while(1){if((a[(k&n)+51>>0]&3)==2)break d;k=c[(k&p)+20>>2]|0;if(!k){k=0;break}}while(0);iq(T,6);c[(S&p)>>2]=6;Ar(f,Q);do if((((a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0?(Xg(c[(T&p)+16>>2]|0,31176,-1,1,0)|0,(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(T&p)+16>>2]|0)+40|0,31184,-1,1,0)|0,(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(T&p)+16>>2]|0)+80|0,31192,-1,1,0)|0,(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0):0){Xg((c[(T&p)+16>>2]|0)+120|0,31200,-1,1,0)|0;if(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)break;Xg((c[(T&p)+16>>2]|0)+160|0,31208,-1,1,0)|0;if(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)break;Xg((c[(T&p)+16>>2]|0)+200|0,31224,-1,1,0)|0}while(0);hr(f,h)|0;t=h+38|0;m=b[(t&o)>>1]|0;if(m<<16>>16<=0)break a;u=(k|0)==0;l=k+4|0;w=0;r=0;g=c[(h&p)+4>>2]|0;while(1){s=g+23|0;if(!(a[(s&n)>>0]&2)){wh(T,25,w-r|0,1,0)|0;q=c[(g&p)>>2]|0;xh(T,wh(T,97,0,2,0)|0,q,0);q=c[(g&p)+12>>2]|0;xh(T,wh(T,97,0,3,0)|0,(q|0)==0?10360:q,0);wh(T,25,(a[(g&n)+20>>0]|0)!=0&1,4,0)|0;q=c[(g&p)+8>>2]|0;if(!q)wh(T,28,0,5,0)|0;else xh(T,wh(T,97,0,5,0)|0,q,0);k=a[(s&n)>>0]&1;e:do if(k<<24>>24==0|u)q=(k^1)&255^1;else{q=b[(t&o)>>1]|0;if(q<<16>>16<1){q=1;break}m=c[(l&p)>>2]|0;s=q<<16>>16;k=1;while(1){q=k+1|0;if((b[(m+(k+-1<<1)&o)>>1]|0)==(w|0)){q=k;break e}if((k|0)<(s|0))k=q;else break}}while(0);wh(T,25,q,6,0)|0;wh(T,35,1,6,0)|0;m=b[(t&o)>>1]|0}else r=r+1|0;w=w+1|0;if((w|0)>=(m<<16>>16|0))break;else g=g+24|0}break}case 2:{if(!U){Jt(f,g,(c[((w*12|0)&p)+30128>>2]&c[(W&p)+24>>2]|0)!=0&1,0);break a}l=c[((w*12|0)&p)+30128>>2]|0;l=(a[(W&n)+63>>0]|0)==0?l&-524289:l;if(!((ii(U,1,0)|0)<<24>>24)){G=W+24|0;c[(G&p)>>2]=c[(G&p)>>2]&~l;if((l|0)==16777216){G=W+512|0;c[(G&p)>>2]=0;c[(G&p)+4>>2]=0}}else{G=W+24|0;c[(G&p)>>2]=c[(G&p)>>2]|l}wh(T,144,0,0,0)|0;Lt(W);break a}case 5:{if(!U)break a;G=(ii(U,1,0)|0)<<24>>24!=0;F=G?32e3:19240;Qh(W,19248,2,1,F,40,0,0,0)|0;Qh(W,19248,3,1,F,40,0,0,0)|0;Qh(W,19232,2,1,10352,40,0,0,0)|0;Ot(W,19232,12);Ot(W,19248,G?12:4);break a}case 17:{g=a[(V&n)>>0]|0;A=(c[(h&p)>>2]|0)==0?-1:Q;c[(S&p)>>2]=6;iq(T,1);if(!(a[((c[(T&p)>>2]|0)&n)+65>>0]|0))Xg(c[(T&p)+16>>2]|0,31464,-1,1,0)|0;c[(z&p)>>2]=100;if(U){Dn(U,z)|0;s=c[(z&p)>>2]|0;if((s|0)<1){c[(z&p)>>2]=100;s=100}}else s=100;wh(T,25,s,1,0)|0;M=W+20|0;w=c[(M&p)>>2]|0;if((w|0)>0){L=(A|0)<0;m=T+32|0;I=T+4|0;H=T+24|0;N=(g&-33)<<24>>24==81;O=0;do{if(L|(O|0)==(A|0)){Ar(f,O);w=wh(T,137,1,0,0)|0;wh(T,24,0,0,0)|0;l=c[(m&p)>>2]|0;if(l>>>0>w>>>0)c[((c[(I&p)>>2]|0)+(w*20|0)&p)+8>>2]=l;c[((c[(H&p)>>2]|0)&p)+88>>2]=l+-1;k=(c[((c[(R&p)>>2]|0)+(O<<4)&p)+12>>2]|0)+16|0;w=c[(k&p)>>2]|0;if(!w)g=0;else{g=0;do{l=c[(w&p)+8>>2]|0;if(!(a[(l&n)+44>>0]&32)){wh(T,25,c[(l&p)+32>>2]|0,g+2|0,0)|0;g=g+1|0}l=c[(l&p)+8>>2]|0;if(l)do{wh(T,25,c[(l&p)+40>>2]|0,g+2|0,0)|0;g=g+1|0;l=c[(l&p)+20>>2]|0}while((l|0)!=0);w=c[(w&p)>>2]|0}while((w|0)!=0)}C=c[(S&p)>>2]|0;w=g+8|0;c[(S&p)>>2]=(C|0)>(w|0)?C:w;wh(T,127,2,g,1)|0;w=c[(I&p)>>2]|0;if(w)a[(w+(((c[(m&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=O;g=wh(T,76,2,0,0)|0;c[(G&p)>>2]=c[((c[(R&p)>>2]|0)+(O<<4)&p)>>2];w=uh(W,31480,G)|0;xh(T,wh(T,97,0,3,0)|0,w,-1);wh(T,32,2,4,1)|0;wh(T,94,4,3,2)|0;wh(T,35,2,1,0)|0;w=c[(m&p)>>2]|0;if(w>>>0>g>>>0)c[((c[(I&p)>>2]|0)+(g*20|0)&p)+8>>2]=w;c[((c[(H&p)>>2]|0)&p)+88>>2]=w+-1;w=c[(k&p)>>2]|0;if(!((w|0)==0|N))do{x=c[(w&p)+8>>2]|0;J=x+8|0;g=c[(J&p)>>2]|0;do if(g){f:do if(!(a[(x&n)+44>>0]&32))g=0;else while(1){if((a[(g&n)+51>>0]&3)==2)break f;g=c[(g&p)+20>>2]|0;if(!g){g=0;break}}while(0);l=wh(T,137,1,0,0)|0;wh(T,24,0,0,0)|0;k=c[(m&p)>>2]|0;if(k>>>0>l>>>0)c[((c[(I&p)>>2]|0)+(l*20|0)&p)+8>>2]=k;c[((c[(H&p)>>2]|0)&p)+88>>2]=k+-1;at(f);pt(f,x,54,1,0,D,E)|0;wh(T,25,0,7,0)|0;k=c[(J&p)>>2]|0;if(!k)l=8;else{l=0;while(1){wh(T,25,0,l+8|0,0)|0;k=c[(k&p)+20>>2]|0;if(!k)break;else l=l+1|0}l=l+9|0}K=c[(S&p)>>2]|0;c[(S&p)>>2]=(K|0)>(l|0)?K:l;wh(T,108,c[(D&p)>>2]|0,0,0)|0;K=wh(T,37,7,1,0)|0;u=x+38|0;l=b[(u&o)>>1]|0;if(l<<16>>16>0){h=x+36|0;v=x+4|0;t=0;do{do if((t|0)!=(b[(h&o)>>1]|0)){if(!(a[((c[(v&p)>>2]|0)+(t*24|0)&n)+20>>0]|0))break;nt(T,x,c[(D&p)>>2]|0,t,3);l=c[(I&p)>>2]|0;if(l)a[(l+(((c[(m&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=-128;l=wh(T,77,3,0,0)|0;wh(T,37,1,-1,0)|0;q=c[((c[(v&p)>>2]|0)+(t*24|0)&p)>>2]|0;c[(G&p)>>2]=c[(x&p)>>2];c[(G&p)+4>>2]=q;q=uh(W,31504,G)|0;xh(T,wh(T,97,0,3,0)|0,q,-1);wh(T,35,3,1,0)|0;q=wh(T,137,1,0,0)|0;wh(T,24,0,0,0)|0;r=c[(m&p)>>2]|0;if(r>>>0>l>>>0)c[((c[(I&p)>>2]|0)+(l*20|0)&p)+8>>2]=r;l=r+-1|0;k=(c[(H&p)>>2]|0)+88|0;c[(k&p)>>2]=l;if(r>>>0>q>>>0)c[((c[(I&p)>>2]|0)+(q*20|0)&p)+8>>2]=r;c[(k&p)>>2]=l;l=b[(u&o)>>1]|0}while(0);t=t+1|0}while((t|0)<(l<<16>>16|0))}l=c[(J&p)>>2]|0;if(l){z=x+4|0;y=0;r=0;k=-1;while(1){q=xs(T)|0;if((g|0)!=(l|0)){k=Pt(f,l,c[(D&p)>>2]|0,0,0,F,r,k)|0;wh(T,37,y+8|0,1,0)|0;x=e[(l&o)+48>>1]|0;q=wh(T,69,(c[(E&p)>>2]|0)+y|0,q,k)|0;xh(T,q,x,-14);wh(T,37,1,-1,0)|0;xh(T,wh(T,97,0,3,0)|0,31528,-2);wh(T,94,7,3,3)|0;xh(T,wh(T,97,0,4,0)|0,31536,-2);wh(T,94,4,3,3)|0;x=c[(l&p)>>2]|0;v=wh(T,97,0,4,0)|0;xh(T,v,x,0);wh(T,94,4,3,3)|0;wh(T,35,3,1,0)|0;x=wh(T,137,1,0,0)|0;wh(T,24,0,0,0)|0;r=c[(m&p)>>2]|0;if(r>>>0>q>>>0)c[((c[(I&p)>>2]|0)+(q*20|0)&p)+8>>2]=r;q=c[(H&p)>>2]|0;c[(q&p)+88>>2]=r+-1;if(a[(l&n)+50>>0]|0){h=xs(T)|0;u=l+46|0;q=b[(u&o)>>1]|0;if(q<<16>>16){t=l+4|0;r=0;do{if(!(a[((c[(z&p)>>2]|0)+((b[((c[(t&p)>>2]|0)+(r<<1)&o)>>1]|0)*24|0)&n)+20>>0]|0)){wh(T,76,r+k|0,h,0)|0;q=b[(u&o)>>1]|0}r=r+1|0}while((r|0)<(q&65535|0))}q=wh(T,9,(c[(E&p)>>2]|0)+y|0,0,0)|0;wh(T,16,0,h,0)|0;r=c[(m&p)>>2]|0;if(r>>>0>q>>>0)c[((c[(I&p)>>2]|0)+(q*20|0)&p)+8>>2]=r;c[((c[(H&p)>>2]|0)&p)+88>>2]=r+-1;q=e[(u&o)>>1]|0;xh(T,wh(T,114,(c[(E&p)>>2]|0)+y|0,h,k)|0,q,-14);wh(T,37,1,-1,0)|0;xh(T,wh(T,97,0,3,0)|0,31560,-2);wh(T,16,0,v,0)|0;q=c[(H&p)>>2]|0;t=~h;do if((h|0)<0){r=c[(q&p)+112>>2]|0;if(!r)break;c[(r+(t<<2)&p)>>2]=c[(m&p)>>2]}while(0);r=c[(m&p)>>2]|0;c[(q&p)+88>>2]=r+-1}if(r>>>0>x>>>0)c[((c[(I&p)>>2]|0)+(x*20|0)&p)+8>>2]=r;c[(q&p)+88>>2]=r+-1;Qt(f,c[(F&p)>>2]|0);r=l}l=c[(l&p)+20>>2]|0;if(!l)break;else y=y+1|0}}wh(T,9,c[(D&p)>>2]|0,K,0)|0;l=K+-1|0;k=c[(m&p)>>2]|0;if(k>>>0>l>>>0)c[((c[(I&p)>>2]|0)+(l*20|0)&p)+8>>2]=k;c[((c[(H&p)>>2]|0)&p)+88>>2]=k+-1;xh(T,wh(T,97,0,2,0)|0,31592,-2);l=c[(J&p)>>2]|0;if(!l)break;else q=0;while(1){if((g|0)!=(l|0)){k=c[(m&p)>>2]|0;wh(T,137,1,k+2|0,0)|0;wh(T,24,0,0,0)|0;wh(T,50,(c[(E&p)>>2]|0)+q|0,3,0)|0;wh(T,79,q+8|0,k+8|0,3)|0;k=c[(I&p)>>2]|0;if(k)a[(k+(((c[(m&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=-112;wh(T,37,1,-1,0)|0;C=c[(l&p)>>2]|0;xh(T,wh(T,97,0,3,0)|0,C,0);wh(T,94,3,2,7)|0;wh(T,35,7,1,0)|0}l=c[(l&p)+20>>2]|0;if(!l)break;else q=q+1|0}}while(0);w=c[(w&p)>>2]|0}while((w|0)!=0);w=c[(M&p)>>2]|0}O=O+1|0}while((O|0)<(w|0))}else m=T+32|0;l=yh(T,3,31448)|0;m=c[(m&p)>>2]|0;if(m>>>0>l>>>0){c[((c[(T&p)+4>>2]|0)+(l*20|0)&p)+12>>2]=0-s;c[((c[(T&p)+4>>2]|0)+(l*20|0)&p)+8>>2]=m}c[((c[(T&p)+24>>2]|0)&p)+88>>2]=m+-1;xh(T,l+1|0,31624,-2);break a}case 21:{do if(U){if(dd(U,30904)|0)if(!(dd(U,30896)|0))k=0;else{P=66;break}else k=1;if(!(c[(B&p)>>2]|0)){s=c[(W&p)+20>>2]|0;if((s|0)>2){q=c[(R&p)>>2]|0;m=k&255;r=2;do{l=c[(c[((c[(q+(r<<4)&p)+4>>2]|0)&p)+4>>2]&p)>>2]|0;do if(!(a[(l&n)+12>>0]|0)){G=c[(l&p)+208>>2]|0;if((G|0)!=0?(a[(G&n)+43>>0]|0)==2:0)break;a[(l&n)+4>>0]=m}while(0);r=r+1|0}while((r|0)<(s|0))}else m=k&255;a[(W&n)+66>>0]=m;P=74}else P=74}else P=66;while(0);if((P|0)==66)if(!(c[(B&p)>>2]|0))l=W+66|0;else{k=-1;P=74}if((P|0)==74){m=c[(c[((c[(C+(Q<<4)&p)+4>>2]|0)&p)+4>>2]&p)>>2]|0;do if((k|0)>-1?(a[(m&n)+12>>0]|0)==0:0){G=c[(m&p)+208>>2]|0;if((G|0)!=0?(a[(G&n)+43>>0]|0)==2:0)break;a[(m&n)+4>>0]=k}while(0);l=m+4|0}l=(a[(l&n)>>0]|0)==1?30904:30896;iq(T,1);if(!(a[((c[(T&p)>>2]|0)&n)+65>>0]|0))Xg(c[(T&p)+16>>2]|0,30920,-1,1,0)|0;xh(T,wh(T,97,0,1,0)|0,l,0);wh(T,35,1,1,0)|0;break a}case 16:{if(!U)break a;k=_h(W,U,L)|0;if(!k)break a;q=Oq(f)|0;iq(q,5);c[(S&p)>>2]=5;Ar(f,Q);if(((((a[((c[(q&p)>>2]|0)&n)+65>>0]|0)==0?(Xg(c[(q&p)+16>>2]|0,31288,-1,1,0)|0,(a[((c[(q&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(q&p)+16>>2]|0)+40|0,31184,-1,1,0)|0,(a[((c[(q&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(q&p)+16>>2]|0)+80|0,31296,-1,1,0)|0,(a[((c[(q&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(q&p)+16>>2]|0)+120|0,31304,-1,1,0)|0,(a[((c[(q&p)>>2]|0)&n)+65>>0]|0)==0):0)Xg((c[(q&p)+16>>2]|0)+160|0,31312,-1,1,0)|0;m=c[(k&p)+8>>2]|0;if(!m)break a;else l=0;while(1){wh(q,25,l,1,0)|0;G=c[(m&p)>>2]|0;xh(q,wh(q,97,0,2,0)|0,G,0);wh(q,25,(a[(m&n)+50>>0]|0)!=0&1,3,0)|0;G=c[((a[(m&n)+51>>0]&3)<<2&p)+31336>>2]|0;xh(q,wh(q,97,0,4,0)|0,G,0);wh(q,25,(c[(m&p)+36>>2]|0)!=0&1,5,0)|0;wh(q,35,1,5,0)|0;m=c[(m&p)+20>>2]|0;if(!m)break;else l=l+1|0}break}case 1:{k=c[(C+(Q<<4)&p)+4>>2]|0;if(!U){m=c[(k&p)+4>>2]|0;c[(m&p)+4>>2]=c[(k&p)>>2];if(!(a[(m&n)+17>>0]|0)){m=0;l=0}else{l=(a[(m&n)+18>>0]|0)==0;m=l?1:2;l=l?0:0}Jt(f,30976,m,l);break a}if(dd(U,32192)|0)if(dd(U,31880)|0)if(!(dd(U,32200)|0))m=2;else{c[(G&p)>>2]=0;Dn(U,G)|0;m=c[(G&p)>>2]|0;m=m>>>0<3?m&255:0}else m=1;else m=0;a[(W&n)+67>>0]=m;r=m+-1|0;if(!((vn(k,m)|0)==0&r>>>0<2))break a;l=yh(T,6,30992)|0;q=c[(T&p)+32>>2]|0;if(q>>>0>l>>>0)c[((c[(T&p)+4>>2]|0)+(l*20|0)&p)+4>>2]=Q;k=l+1|0;if(q>>>0>k>>>0)c[((c[(T&p)+4>>2]|0)+(k*20|0)&p)+4>>2]=Q;k=l+2|0;m=l+4|0;if(q>>>0>k>>>0)c[((c[(T&p)+4>>2]|0)+(k*20|0)&p)+8>>2]=m;if(q>>>0>m>>>0)c[((c[(T&p)+4>>2]|0)+(m*20|0)&p)+4>>2]=r;m=l+5|0;if(q>>>0>m>>>0)c[((c[(T&p)+4>>2]|0)+(m*20|0)&p)+4>>2]=Q;G=T+96|0;c[(G&p)>>2]=c[(G&p)>>2]|1<>2]=3;if(((a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0?(Xg(c[(T&p)+16>>2]|0,31288,-1,1,0)|0,(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(T&p)+16>>2]|0)+40|0,31184,-1,1,0)|0,(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0):0)Xg((c[(T&p)+16>>2]|0)+80|0,31352,-1,1,0)|0;l=W+20|0;m=c[(l&p)>>2]|0;if((m|0)>0)q=0;else break a;do{if(c[((c[(R&p)>>2]|0)+(q<<4)&p)+4>>2]|0){wh(T,25,q,1,0)|0;k=c[((c[(R&p)>>2]|0)+(q<<4)&p)>>2]|0;xh(T,wh(T,97,0,2,0)|0,k,0);k=c[(c[((c[((c[(R&p)>>2]|0)+(q<<4)&p)+4>>2]|0)&p)+4>>2]&p)>>2]|0;if(!(a[(k&n)+15>>0]|0))k=c[(k&p)+168>>2]|0;else k=10360;xh(T,wh(T,97,0,3,0)|0,k,0);wh(T,35,1,3,0)|0;m=c[(l&p)>>2]|0}q=q+1|0}while((q|0)<(m|0));break}case 6:{iq(T,2);c[(S&p)>>2]=2;if((a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0?(Xg(c[(T&p)+16>>2]|0,31288,-1,1,0)|0,(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0):0)Xg((c[(T&p)+16>>2]|0)+40|0,31184,-1,1,0)|0;m=c[(W&p)+436>>2]|0;if(!m)break a;else l=0;while(1){G=c[(m&p)+8>>2]|0;wh(T,25,l,1,0)|0;G=c[(G&p)>>2]|0;xh(T,wh(T,97,0,2,0)|0,G,0);wh(T,35,1,2,0)|0;m=c[(m&p)>>2]|0;if(!m)break;else l=l+1|0}break}case 13:{if(!U)break a;k=_h(W,U,L)|0;if(!k)break a;g=Oq(f)|0;q=c[(k&p)+16>>2]|0;if(!q)break a;iq(g,8);c[(S&p)>>2]=8;Ar(f,Q);do if((((a[((c[(g&p)>>2]|0)&n)+65>>0]|0)==0?(Xg(c[(g&p)+16>>2]|0,31360,-1,1,0)|0,(a[((c[(g&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(g&p)+16>>2]|0)+40|0,31288,-1,1,0)|0,(a[((c[(g&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(g&p)+16>>2]|0)+80|0,31232,-1,1,0)|0,(a[((c[(g&p)>>2]|0)&n)+65>>0]|0)==0):0){Xg((c[(g&p)+16>>2]|0)+120|0,31368,-1,1,0)|0;if(a[((c[(g&p)>>2]|0)&n)+65>>0]|0)break;Xg((c[(g&p)+16>>2]|0)+160|0,31376,-1,1,0)|0;if(a[((c[(g&p)>>2]|0)&n)+65>>0]|0)break;Xg((c[(g&p)+16>>2]|0)+200|0,31384,-1,1,0)|0;if(a[((c[(g&p)>>2]|0)&n)+65>>0]|0)break;Xg((c[(g&p)+16>>2]|0)+240|0,31400,-1,1,0)|0;if(a[((c[(g&p)>>2]|0)&n)+65>>0]|0)break;Xg((c[(g&p)+16>>2]|0)+280|0,31416,-1,1,0)|0}while(0);v=k+4|0;w=0;while(1){k=q+20|0;if((c[(k&p)>>2]|0)>0){m=q+25|0;l=q+26|0;t=q+8|0;h=0;do{u=c[(q+(h<<3)&p)+40>>2]|0;s=d[(m&n)>>0]|0;if((s|0)==8)r=32072;else if((s|0)==9)r=32088;else if((s|0)==6)r=32096;else if((s|0)==7)r=32056;else r=32112;s=d[(l&n)>>0]|0;if((s|0)==8)s=32072;else if((s|0)==9)s=32088;else if((s|0)==6)s=32096;else if((s|0)==7)s=32056;else s=32112;wh(g,25,w,1,0)|0;wh(g,25,h,2,0)|0;G=c[(t&p)>>2]|0;xh(g,wh(g,97,0,3,0)|0,G,0);G=c[((c[(v&p)>>2]|0)+((c[(q+(h<<3)&p)+36>>2]|0)*24|0)&p)>>2]|0;xh(g,wh(g,97,0,4,0)|0,G,0);xh(g,wh(g,(u|0)!=0?97:28,0,5,0)|0,u,0);xh(g,wh(g,97,0,6,0)|0,s,0);xh(g,wh(g,97,0,7,0)|0,r,0);xh(g,wh(g,97,0,8,0)|0,31424,0);wh(g,35,1,8,0)|0;h=h+1|0}while((h|0)<(c[(k&p)>>2]|0))}q=c[(q&p)+4>>2]|0;if(!q)break;else w=w+1|0}break}case 11:{if(!U){if(Gn(f)|0)break a;iq(T,1);if(!(a[((c[(T&p)>>2]|0)&n)+65>>0]|0))Xg(c[(T&p)+16>>2]|0,31784,-1,1,0)|0;wh(T,97,0,1,0)|0;xh(T,-1,c[(d[((c[(f&p)>>2]|0)&n)+62>>0]<<3&p)+31632>>2]|0,-2);wh(T,35,1,1,0)|0;break a}k=c[((c[(R&p)>>2]|0)&p)+12>>2]|0;if((b[(k&o)+78>>1]&5)==1)break a;else{m=31632;l=31704}do{if(!(dd(U,l)|0)){v=m;P=415;break}m=m+8|0;l=c[(m&p)>>2]|0}while((l|0)!=0);if((P|0)==415?(F=a[(v&n)+4>>0]|0,F=F<<24>>24==0?2:F,a[(W&n)+62>>0]=F,a[(k&n)+77>>0]=F,(c[(v&p)>>2]|0)!=0):0)break a;c[(G&p)>>2]=U;th(f,31800,G);break a}case 0:{s=c[((w*12|0)&p)+30128>>2]|0;F=T+96|0;c[(F&p)>>2]=c[(F&p)>>2]|1<>2]|0)>>>0>m>>>0)c[((c[(T&p)+4>>2]|0)+(m*20|0)&p)+4>>2]=Q;l=m+1|0;c[(G&p)>>2]=0;Dn(U,G)|0;k=c[(k&p)>>2]|0;if(k>>>0>l>>>0)c[((c[(T&p)+4>>2]|0)+(l*20|0)&p)+4>>2]=c[(G&p)>>2];m=m+2|0;if(k>>>0<=m>>>0)break a;c[((c[(T&p)+4>>2]|0)+(m*20|0)&p)+4>>2]=Q;c[((c[(T&p)+4>>2]|0)+(m*20|0)&p)+8>>2]=s;break a}m=yh(T,3,31848)|0;k=c[(T&p)+32>>2]|0;if(k>>>0>m>>>0)c[((c[(T&p)+4>>2]|0)+(m*20|0)&p)+4>>2]=Q;m=m+1|0;if(k>>>0>m>>>0){c[((c[(T&p)+4>>2]|0)+(m*20|0)&p)+4>>2]=Q;c[((c[(T&p)+4>>2]|0)+(m*20|0)&p)+12>>2]=s}iq(T,1);if(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)break a;Xg(c[(T&p)+16>>2]|0,V,-1,1,-1)|0;break a}case 7:{iq(T,1);c[(S&p)>>2]=1;if(!(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)){Xg(c[(T&p)+16>>2]|0,31864,-1,1,0)|0;l=0}else l=0;do{G=c[(l<<2&p)+8648>>2]|0;l=l+1|0;xh(T,wh(T,97,0,1,0)|0,G,0);wh(T,35,1,1,0)|0}while((l|0)!=4);break}case 35:{m=(c[(h&p)>>2]|0)!=0?Q:10;if(U)if(dd(U,31880)|0)if(!(dd(U,31888)|0))l=2;else{l=(dd(U,31896)|0)==0;l=l?3:0}else l=1;else l=0;iq(T,3);c[(S&p)>>2]=3;if(((a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0?(Xg(c[(T&p)+16>>2]|0,31912,-1,1,0)|0,(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(T&p)+16>>2]|0)+40|0,31920,-1,1,0)|0,(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0):0)Xg((c[(T&p)+16>>2]|0)+80|0,31928,-1,1,0)|0;wh(T,11,m,l,1)|0;wh(T,35,1,3,0)|0;break a}case 26:{of(W)|0;break a}case 34:{if(!U)l=c[(W&p)+216>>2]|0;else{c[(G&p)>>2]=0;Dn(U,G)|0;l=c[(G&p)>>2]|0;if((l|0)>0)m=21;else{l=0;m=0}c[(W&p)+216>>2]=m;c[(W&p)+220>>2]=l;l=m}if((l|0)==21){l=c[(W&p)+220>>2]|0;m=l;l=((l|0)<0)<<31>>31}else{m=0;l=0}Jt(f,31944,m,l);break a}case 27:{if((U|0)!=0?(ji(U,x)|0)==0:0){G=x;Pc(c[(G&p)>>2]|0,c[(G&p)+4>>2]|0)|0}F=(Lc()|0)==0;G=9032;Jt(f,31976,F?c[(G&p)>>2]|0:-1,F?c[(G&p)+4>>2]|0:-1);break a}case 33:{if((U|0)!=0?(E=(ji(U,s)|0)==0,G=s,F=c[(G&p)+4>>2]|0,E&((F|0)>-1|(F|0)==-1&(c[(G&p)>>2]|0)>>>0>4294967295)):0)c[(W&p)+132>>2]=0;G=c[(W&p)+132>>2]|0;Jt(f,31992,G,((G|0)<0)<<31>>31);break a}case 12:{g=c[(S&p)>>2]|0;H=g+1|0;I=g+5|0;J=g+6|0;c[(S&p)>>2]=J;K=Oq(f)|0;iq(K,4);if((((a[((c[(K&p)>>2]|0)&n)+65>>0]|0)==0?(Xg(c[(K&p)+16>>2]|0,31232,-1,1,0)|0,(a[((c[(K&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(K&p)+16>>2]|0)+40|0,20456,-1,1,0)|0,(a[((c[(K&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(K&p)+16>>2]|0)+80|0,31432,-1,1,0)|0,(a[((c[(K&p)>>2]|0)&n)+65>>0]|0)==0):0)Xg((c[(K&p)+16>>2]|0)+120|0,31440,-1,1,0)|0;Ar(f,Q);w=c[((c[((c[(R&p)>>2]|0)+(Q<<4)&p)+12>>2]|0)&p)+16>>2]|0;if(!w)break a;u=(U|0)==0;h=f+68|0;v=K+32|0;D=K+4|0;E=K+24|0;F=g+2|0;G=g+3|0;A=g+4|0;t=f+8|0;while(1){if(u){B=c[(w&p)>>2]|0;C=c[(w&p)+8>>2]|0}else{B=0;C=sh(f,0,U,L)|0}if((C|0)!=0?(M=C+16|0,(c[(M&p)>>2]|0)!=0):0){gs(f,Q,c[(C&p)+32>>2]|0,0,c[(C&p)>>2]|0);g=(b[(C&o)+38>>1]|0)+J|0;if((g|0)>(c[(S&p)>>2]|0))c[(S&p)>>2]=g;Qq(f,0,Q,C,54);w=c[(C&p)>>2]|0;xh(K,wh(K,97,0,H,0)|0,w,0);w=c[(M&p)>>2]|0;if(!w)g=1;else{g=1;do{l=_h(W,c[(w&p)+8>>2]|0,L)|0;do if(l){c[(O&p)>>2]=0;gs(f,Q,c[(l&p)+32>>2]|0,0,c[(l&p)>>2]|0);if(Mt(f,l,w,O,0)|0)break a;m=c[(O&p)>>2]|0;if(!m){Qq(f,g,Q,l,54);break}else{wh(K,54,g,c[(m&p)+40>>2]|0,Q)|0;z=c[(t&p)>>2]|0;xh(z,-1,hs(f,m)|0,-6);break}}while(0);g=g+1|0;w=c[(w&p)+4>>2]|0}while((w|0)!=0)}if((c[(h&p)>>2]|0)<(g|0))c[(h&p)>>2]=g;s=wh(K,108,0,0,0)|0;g=c[(M&p)>>2]|0;if(g){z=C+36|0;y=1;while(1){x=g+8|0;w=_h(W,c[(x&p)>>2]|0,L)|0;c[(O&p)>>2]=0;c[(N&p)>>2]=0;r=(w|0)!=0;do if(r){Mt(f,w,g,O,N)|0;l=c[(O&p)>>2]|0;m=xs(K)|0;if(!(r&(l|0)==0)){w=m;P=306;break}w=c[(g&p)+36>>2]|0;if((w|0)==(b[(z&o)>>1]|0))wh(K,103,0,J,0)|0;else{wh(K,47,0,w,J)|0;Nt(K,C,w,J);wh(K,76,J,m,0)|0;wh(K,38,J,(c[(v&p)>>2]|0)+3|0,0)|0}wh(K,70,y,0,J)|0;wh(K,16,0,m,0)|0;w=c[(v&p)>>2]|0;if(w>>>0>1)c[((c[(D&p)>>2]|0)+((w+-2|0)*20|0)&p)+8>>2]=w;c[((c[(E&p)>>2]|0)&p)+88>>2]=w+-1;w=m}else{w=xs(K)|0;l=0;P=306}while(0);do if((P|0)==306){P=0;q=g+20|0;m=c[(q&p)>>2]|0;if((m|0)>0){k=0;do{m=c[(N&p)>>2]|0;if(!m)m=g+(k<<3)+36|0;else m=m+(k<<2)|0;R=k+J|0;nt(K,C,0,c[(m&p)>>2]|0,R);wh(K,76,R,w,0)|0;k=k+1|0;m=c[(q&p)>>2]|0}while((k|0)<(m|0))}if(!r)break;k=ot(K,l)|0;l=c[(q&p)>>2]|0;xh(K,wh(K,49,J,m,I)|0,k,l);xh(K,wh(K,69,y,w,I)|0,0,-14)}while(0);wh(K,103,0,F,0)|0;l=c[(x&p)>>2]|0;xh(K,wh(K,97,0,G,0)|0,l,0);wh(K,25,y+-1|0,A,0)|0;wh(K,35,H,4,0)|0;l=c[(E&p)>>2]|0;m=~w;do if((w|0)<0){w=c[(l&p)+112>>2]|0;if(!w)break;c[(w+(m<<2)&p)>>2]=c[(v&p)>>2]}while(0);c[(l&p)+88>>2]=(c[(v&p)>>2]|0)+-1;mg(W,c[(N&p)>>2]|0);g=c[(g&p)+4>>2]|0;if(!g)break;else y=y+1|0}}wh(K,9,0,s+1|0,0)|0;g=c[(v&p)>>2]|0;if(g>>>0>s>>>0)c[((c[(D&p)>>2]|0)+(s*20|0)&p)+8>>2]=g;c[((c[(E&p)>>2]|0)&p)+88>>2]=g+-1}if(!B)break;else w=B}break}case 23:{Jt(f,31016,0,0);break a}case 31:{if(!U){Jt(f,31032,d[(W&n)+64>>0]|0,0);break a}l=a[(U&n)>>0]|0;if((l+-48&255)>=3)if(!(dd(U,31352)|0))l=1;else{l=(dd(U,15168)|0)==0;l=l?2:0}else l=(l<<24>>24)+-48|0;m=(c[(f&p)>>2]|0)+64|0;if((d[(m&n)>>0]|0)==(l|0))break a;if(Kt(f)|0)break a;a[(m&n)>>0]=l;break a}case 29:{if(!U){G=(d[(C+(Q<<4)&n)+8>>0]|0)+-1|0;Jt(f,31104,G,((G|0)<0)<<31>>31);break a}if(!(a[(W&n)+63>>0]|0)){th(f,31120,G);break a}else{a[(C+(Q<<4)&n)+8>>0]=((ii(U,0,1)|0)&255)+1;Lt(W);break a}}case 4:if(!U){G=c[((c[(C+(Q<<4)&p)+12>>2]|0)&p)+80>>2]|0;Jt(f,30848,G,((G|0)<0)<<31>>31);break a}else{c[(G&p)>>2]=0;Dn(U,G)|0;G=c[(G&p)>>2]|0;c[((c[(C+(Q<<4)&p)+12>>2]|0)&p)+80>>2]=G;pq(c[(C+(Q<<4)&p)+4>>2]|0,G);break a}default:{if(!U)l=c[(W&p)+492>>2]|0;else{c[(G&p)>>2]=0;Dn(U,G)|0;l=c[(G&p)>>2]|0;G=(l|0)>0;l=G?l:0;c[(W&p)+444>>2]=G?74:0;c[(W&p)+448>>2]=G?W:0;c[(r&p)>>2]=0;c[(W&p)+492>>2]=l}Jt(f,31968,l,((l|0)<0)<<31>>31);break a}}while(0)}else{k=c[(q&p)>>2]|0;if(k){c[(G&p)>>2]=k;th(f,10344,G);Wc(c[(q&p)>>2]|0)}G=f+64|0;c[(G&p)>>2]=(c[(G&p)>>2]|0)+1;c[(f&p)+12>>2]=g;break}}while(0);mg(W,V);mg(W,U)}}while(0);i=X;return}function Gr(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0;h=i;i=i+16|0;if((i|0)>=(j|0))fa();g=h;a:do if(!d)d=0;else{f=d;while(1){if((a[(f&n)>>0]|0)==-121){d=c[(b&p)>>2]|0;if(!(a[((c[(d&p)>>2]|0)&n)+145>>0]|0))break;a[(f&n)>>0]=101}d=c[(f&p)+4>>2]|0;if(d&16384){d=0;break a}e=f+20|0;if(!(d&2048)){if(Hr(b,c[(e&p)>>2]|0)|0){d=1;break a}}else if(fr(b,c[(e&p)>>2]|0)|0){d=1;break a}if(Gr(b,c[(f&p)+16>>2]|0)|0){d=1;break a}f=c[(f&p)+12>>2]|0;if(!f){d=0;break a}}c[(g&p)>>2]=c[(b&p)+16>>2];th(d,29984,g);d=1}while(0);i=h;return d|0}function Hr(a,b){a=a|0;b=b|0;var d=0,e=0;a:do if((b|0)!=0?(c[(b&p)>>2]|0)>0:0){d=0;e=c[(b&p)+4>>2]|0;while(1){if(Gr(a,c[(e&p)>>2]|0)|0){d=1;break a}d=d+1|0;if((d|0)>=(c[(b&p)>>2]|0)){d=0;break}else e=e+20|0}}else d=0;while(0);return d|0}function Ir(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;xh(a,wh(a,122,b,0,0)|0,d,-1);d=c[((c[(a&p)>>2]|0)&p)+20>>2]|0;if((d|0)>0){e=a+96|0;b=c[(e&p)>>2]|0;a=0;do{b=b|1<>2]=b}return}function Jr(a,d){a=a|0;d=d|0;var e=0,f=0;e=d+8|0;f=Ur(a,0,e)|0;d=d+24|0;kg(c[(a&p)>>2]|0,c[(d&p)>>2]|0);c[(d&p)>>2]=f;if(f){d=f+40|0;b[(d&o)>>1]=(b[(d&o)>>1]|0)+1<<16>>16}e=(Rt(a,e)|0)==0;return (e?f:0)|0}function Kr(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0;n=i;i=i+16|0;if((i|0)>=(j|0))fa();m=n;a:do if((b|0)!=0?(f=c[(a&p)+12>>2]|0,(c[(b&p)>>2]|0)>0):0){g=a+8|0;h=a+4|0;k=0;l=b+8|0;while(1){if(!(c[(g&p)>>2]|0)){e=l+4|0;d=c[(e&p)>>2]|0;if((d|0)!=0?(dd(d,f)|0)!=0:0)break;mg(c[(c[(a&p)>>2]&p)>>2]|0,d);c[(e&p)>>2]=0;c[(l&p)>>2]=c[(h&p)>>2]}if(fr(a,c[(l&p)+20>>2]|0)|0){d=1;break a}if(Gr(a,c[(l&p)+44>>2]|0)|0){d=1;break a}k=k+1|0;if((k|0)>=(c[(b&p)>>2]|0)){d=0;break a}else l=l+72|0}b=c[(a&p)>>2]|0;l=c[(a&p)+20>>2]|0;c[(m&p)>>2]=c[(a&p)+16>>2];c[(m&p)+4>>2]=l;c[(m&p)+8>>2]=d;th(b,29936,m);d=1}else d=0;while(0);i=n;return d|0}function Lr(b,d){b=b|0;d=d|0;var e=0,f=0,g=0;f=i;i=i+16|0;if((i|0)>=(j|0))fa();e=f;g=c[(b&p)>>2]|0;if((((a[(g&n)+145>>0]|0)==0?(a[(b&n)+18>>0]|0)==0:0)?(c[(g&p)+24>>2]&2048|0)==0:0)?(Fc(d,25568,7)|0)==0:0){c[(e&p)>>2]=d;th(b,28440,e);b=1}else b=0;i=f;return b|0}function Mr(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,o=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0;x=i;i=i+16|0;if((i|0)>=(j|0))fa();w=x;do if(d){t=e&1;v=(f|0)!=0;if(v){g=c[(f&p)>>2]|0;r=32768}else{g=St(d,e)|0;g=mh(b,g,((g|0)<0)<<31>>31)|0;r=0}c[(w&p)>>2]=g;if(g){l=(t|0)==0;if(!l)if(!(c[(d&p)+12>>2]|0))q=(c[(d&p)+20>>2]|0)==0?16396:8220;else q=8220;else q=48;s=q&60;u=d+4|0;m=c[(u&p)>>2]|0;if((m&1024|0)==0?(h=c[(d&p)+8>>2]|0,(h|0)!=0):0){k=h;while(1)if(!(a[(k&n)>>0]|0))break;else k=k+1|0;o=(k-h&1073741823)+1|0}else o=0;if(l){if(!(m&16384))k=(m&8192|0)==0?48:28;else k=12;kw(g|0,d|0,k|0)|0;fw(g+k|0,0,48-k|0)|0}else kw(g|0,d|0,s|0)|0;m=g+4|0;h=q&24576|r|c[(m&p)>>2]&-122881;c[(m&p)>>2]=h;if(o){h=g+s|0;c[(g&p)+8>>2]=h;kw(h|0,c[(d&p)+8>>2]|0,o|0)|0;h=c[(m&p)>>2]|0}k=c[(u&p)>>2]|0;do if(!((h|k)&16384)){h=d+20|0;if(!(k&2048)){c[(g&p)+20>>2]=Pr(b,c[(h&p)>>2]|0,t)|0;break}else{c[(g&p)+20>>2]=gr(b,c[(h&p)>>2]|0,t)|0;break}}while(0);h=c[(m&p)>>2]|0;if(!(h&24576)){if(c[(u&p)>>2]&16384)break;c[(g&p)+12>>2]=Mr(b,c[(d&p)+12>>2]|0,0,0)|0;c[(g&p)+16>>2]=Mr(b,c[(d&p)+16>>2]|0,0,0)|0;break}t=Tt(d,e)|0;c[(w&p)>>2]=(c[(w&p)>>2]|0)+t;if(h&8192){c[(g&p)+12>>2]=Mr(b,c[(d&p)+12>>2]|0,1,w)|0;c[(g&p)+16>>2]=Mr(b,c[(d&p)+16>>2]|0,1,w)|0}if(v)c[(f&p)>>2]=c[(w&p)>>2]}}else g=0;while(0);i=x;return g|0}function Nr(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;a:do if((b|0)!=0?(d=mh(a,8,0)|0,(d|0)!=0):0){g=b+4|0;c[(d&p)+4>>2]=c[(g&p)>>2];e=mh(a,c[(g&p)>>2]<<3,0)|0;c[(d&p)>>2]=e;if(!e){mg(a,d);d=0;break}if((c[(g&p)>>2]|0)>0){f=0;while(1){h=c[(b&p)>>2]|0;c[(e+(f<<3)&p)>>2]=kh(a,c[(h+(f<<3)&p)>>2]|0)|0;c[(e+(f<<3)&p)+4>>2]=c[(h+(f<<3)&p)+4>>2];f=f+1|0;if((f|0)>=(c[(g&p)>>2]|0))break a;e=c[(d&p)>>2]|0}}}else d=0;while(0);return d|0}function Or(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0;f=e+4|0;g=(c[(f&p)>>2]|0)+40|0;b=mh(b,g,0)|0;if(b){fw(b|0,0,g|0)|0;g=b+40|0;kw(g|0,c[(e&p)>>2]|0,c[(f&p)>>2]|0)|0;c[(b&p)+12>>2]=g;c[(b&p)+16>>2]=c[(f&p)>>2];a[(b&n)>>0]=d}return b|0}function Pr(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0;do if((d|0)!=0?(f=mh(b,8,0)|0,(f|0)!=0):0){g=c[(d&p)>>2]|0;c[(f&p)>>2]=g;if(!(e&1)){h=c[(d&p)>>2]|0;g=1;while(1)if((g|0)<(h|0))g=g<<1;else break}g=mh(b,g*20|0,0)|0;c[(f&p)+4>>2]=g;if(!g){mg(b,f);f=0;break}if((c[(d&p)>>2]|0)>0){i=0;h=c[(d&p)+4>>2]|0;while(1){c[(g&p)>>2]=Mr(b,c[(h&p)>>2]|0,e,0)|0;c[(g&p)+4>>2]=kh(b,c[(h&p)+4>>2]|0)|0;c[(g&p)+8>>2]=kh(b,c[(h&p)+8>>2]|0)|0;a[(g&n)+12>>0]=a[(h&n)+12>>0]|0;j=g+13|0;k=a[(j&n)>>0]|0;a[(j&n)>>0]=k&-2;a[(j&n)>>0]=a[(h&n)+13>>0]&2|k&-4;c[(g&p)+16>>2]=c[(h&p)+16>>2];i=i+1|0;if((i|0)>=(c[(d&p)>>2]|0))break;else{g=g+20|0;h=h+20|0}}}}else f=0;while(0);return f|0}function Qr(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0;o=i;i=i+16|0;if((i|0)>=(j|0))fa();k=o;l=c[(a&p)>>2]|0;f=c[(b&p)+20>>2]|0;a:do if(f){e=c[(l&p)+20>>2]|0;if((e|0)>0){d=c[(l&p)+16>>2]|0;h=0;while(1){g=h+1|0;if((c[(d+(h<<4)&p)+12>>2]|0)==(f|0)){g=h;break a}if((g|0)<(e|0))h=g;else break}}else g=0}else g=-1e6;while(0);d=bn((c[(b&p)+24>>2]|0)+8|0,c[(b&p)+4>>2]|0,k)|0;if(!d)f=0;else f=c[(d&p)+8>>2]|0;d=c[((c[(l&p)+16>>2]|0)+(g<<4)&p)>>2]|0;e=(g|0)==1;if((((Sq(a,e?14:16,c[(b&p)>>2]|0,c[(f&p)>>2]|0,d)|0)==0?(Sq(a,9,e?13184:13208,0,d)|0)==0:0)?(m=Oq(a)|0,(m|0)!=0):0)?(n=c[(a&p)+408>>2]|0,Ar(a,g),n=((n|0)==0?a:n)+328|0,c[(n&p)>>2]=c[(n&p)>>2]|1<>2]|0,0),xh(m,n+4|0,10720,-2),Dr(a,g),wh(m,61,0,0,0)|0,n=c[(b&p)>>2]|0,xh(m,wh(m,126,g,0,0)|0,n,0),n=a+72|0,(c[(n&p)>>2]|0)<3):0)c[(n&p)>>2]=3;i=o;return}function Rr(d,e,f,g,h,k,l){d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;var m=0,q=0,r=0,s=0,t=0,u=0,v=0;v=i;i=i+32|0;if((i|0)>=(j|0))fa();m=v;t=c[(d&p)>>2]|0;c[(m&p)>>2]=0;c[(m&p)+4>>2]=0;c[(m&p)+8>>2]=0;c[(m&p)+12>>2]=0;c[(m&p)+16>>2]=0;c[(m&p)+20>>2]=0;c[(m&p)+24>>2]=0;c[(m&p)+28>>2]=0;c[(m&p)>>2]=d;do if(h)if((a[(h&n)>>0]|0)!=27)if(!(ls(m,h)|0)){u=5;break}else{u=13;break}else{a[(h&n)>>0]=97;u=5;break}else u=5;while(0);a:do if((u|0)==5){do if(k)if((a[(k&n)>>0]|0)!=27)if(!(ls(m,k)|0))break;else{u=13;break a}else{a[(k&n)>>0]=97;break}while(0);do if(l)if((a[(l&n)>>0]|0)!=27)if(!(ls(m,l)|0))break;else{u=13;break a}else{a[(l&n)>>0]=97;break}while(0);if(g){if((a[(g&n)>>0]|0)==97)g=c[(g&p)+8>>2]|0;else g=0;if(Sq(d,e,g,0,0)|0)break}s=Oq(d)|0;m=d+60|0;g=c[(m&p)>>2]|0;q=d+56|0;r=c[(q&p)>>2]|0;if((r|0)<4){r=d+72|0;g=c[(r&p)>>2]|0;c[(r&p)>>2]=g+4;g=g+1|0}else{c[(m&p)>>2]=g+4;c[(q&p)>>2]=r+-4}Rq(d,h,g);Rq(d,k,g+1|0);Rq(d,l,g+2|0);if(s){g=g+3|0;wh(s,1,0,g-(b[(f&o)>>1]|0)|0,g)|0;g=c[(s&p)+4>>2]|0;if(g)a[(g+(((c[(s&p)+32>>2]|0)+-1|0)*20|0)&n)+3>>0]=b[(f&o)>>1];xh(s,-1,f,-5);wh(s,144,(e|0)==24&1,0,0)|0}}while(0);if((u|0)==13){f=d+64|0;c[(f&p)>>2]=(c[(f&p)>>2]|0)+1}Gk(t,h);Gk(t,k);Gk(t,l);i=v;return}function Sr(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0;m=i;i=i+16|0;if((i|0)>=(j|0))fa();l=m;g=m+4|0;h=c[(b&p)>>2]|0;a:do if(!(Gn(b)|0)){if(!d){Ut(b,0);break}if(!((e|0)!=0?(c[(e&p)>>2]|0)!=0:0))f=6;do if((f|0)==6){f=Wq(c[(b&p)>>2]|0,d)|0;if(!f)break a;if(!(Yn(h,a[(h&n)+62>>0]|0,f,0)|0)){mg(h,f);break}else{Ut(b,f);mg(h,f);break a}}while(0);d=er(b,d,e,g)|0;if((d|0)>=0?(k=Wq(h,c[(g&p)>>2]|0)|0,(k|0)!=0):0){e=c[((c[(h&p)+16>>2]|0)+(d<<4)&p)>>2]|0;f=_h(h,k,e)|0;if(f){Vt(b,f,0);mg(h,k);break}e=bq(h,k,e)|0;mg(h,k);if(!e){th(b,28872,l);break}else{f=c[(b&p)+408>>2]|0;Ar(b,d);f=((f|0)==0?b:f)+328|0;c[(f&p)>>2]=c[(f&p)>>2]|1<=(j|0))fa();f=h;g=c[(a&p)>>2]|0;if(!(Gn(a)|0)){do if(!b){b=g+20|0;e=c[(b&p)>>2]|0;if((e|0)>0){d=0;do{if((d|0)!=1){Wt(a,d);e=c[(b&p)>>2]|0}d=d+1|0}while((d|0)<(e|0))}}else{if(c[(d&p)+4>>2]|0){e=er(a,b,d,f)|0;if((e|0)<=-1)break;e=c[((c[(g&p)+16>>2]|0)+(e<<4)&p)>>2]|0;b=Wq(g,c[(f&p)>>2]|0)|0;if(!b)break;d=bq(g,b,e)|0;if(!d){e=sh(a,0,b,e)|0;if(e)Xt(a,e,0)}else Xt(a,c[(d&p)+12>>2]|0,d);mg(g,b);break}d=Wq(g,b)|0;e=Vh(g,d)|0;mg(g,d);if((e|0)>-1){Wt(a,e);break}d=Wq(g,b)|0;if(d){e=bq(g,d,0)|0;if(!e){e=sh(a,0,d,0)|0;if(e)Xt(a,e,0)}else Xt(a,c[(e&p)+12>>2]|0,e);mg(g,d)}}while(0);e=Oq(a)|0;if(e)wh(e,144,0,0,0)|0}i=h;return}function Ur(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,i=0;f=c[(d&p)>>2]|0;if(!f)e=d+4|0;else{i=c[(a&p)>>2]|0;g=c[(i&p)+20>>2]|0;i=c[(i&p)+16>>2]|0;a:do if((g|0)>0){h=0;while(1){e=h+1|0;if((c[(i+(h<<4)&p)+12>>2]|0)==(f|0)){e=h;break a}if((e|0)<(g|0))h=e;else break}}else e=0;while(0);e=i+(e<<4)|0}return sh(a,b,c[(d&p)+8>>2]|0,c[(e&p)>>2]|0)|0}function Vr(b,d){b=b|0;d=d|0;var e=0,f=0,g=0;g=i;i=i+16|0;if((i|0)>=(j|0))fa();f=g;if(d){e=d;while(1)if(!(a[(e&n)>>0]|0))break;else e=e+1|0;if((e-d&1073741823)>>>0>6?(Fc(d,25568,7)|0)==0:0){c[(f&p)>>2]=d;th(b,25576,f);e=1}else e=0}else e=0;i=g;return e|0}function Wr(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;f=i;i=i+16|0;if((i|0)>=(j|0))fa();e=f;if(!b){c[(e&p)>>2]=d;a=uh(a,25992,e)|0}else{c[(e&p)>>2]=b;c[(e&p)+4>>2]=d;e=uh(a,26e3,e)|0;mg(a,b);a=e}i=f;return a|0}function Xr(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;h=i;i=i+16|0;if((i|0)>=(j|0))fa();g=h;e=c[(a&p)>>2]|0;f=c[((c[(e&p)+16>>2]|0)&p)+28>>2]|0;if((c[(b&p)+68>>2]|0)!=(f|0)?(d=As(a,b)|0,(d|0)!=0):0){b=d;d=0;do{if((c[(b&p)+20>>2]|0)==(f|0))d=Wr(e,d,c[(b&p)>>2]|0)|0;b=c[(b&p)+32>>2]|0}while((b|0)!=0);if(d){b=c[(a&p)>>2]|0;c[(g&p)>>2]=d;b=uh(b,25968,g)|0;mg(c[(a&p)>>2]|0,d);d=b}else d=0}else d=0;i=h;return d|0}function Yr(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,q=0,r=0;r=i;i=i+16|0;if((i|0)>=(j|0))fa();n=r;o=Oq(a)|0;if(o){e=c[(a&p)>>2]|0;h=c[(b&p)+68>>2]|0;a:do if(h){k=c[(e&p)+20>>2]|0;if((k|0)>0){f=c[(e&p)+16>>2]|0;g=0;while(1){e=g+1|0;if((c[(f+(g<<4)&p)+12>>2]|0)==(h|0))break a;if((e|0)<(k|0))g=e;else{g=e;break}}}else g=0}else g=-1e6;while(0);e=As(a,b)|0;if(e)do{f=c[(a&p)>>2]|0;l=c[(e&p)+20>>2]|0;b:do if(l){m=c[(f&p)+20>>2]|0;if((m|0)>0){k=c[(f&p)+16>>2]|0;h=0;while(1){f=h+1|0;if((c[(k+(h<<4)&p)+12>>2]|0)==(l|0)){f=h;break b}if((f|0)<(m|0))h=f;else break}}else f=0}else f=-1e6;while(0);m=c[(e&p)>>2]|0;xh(o,wh(o,126,f,0,0)|0,m,0);e=c[(e&p)+32>>2]|0}while((e|0)!=0);e=c[(b&p)>>2]|0;xh(o,wh(o,124,g,0,0)|0,e,0);e=c[(a&p)>>2]|0;c[(n&p)>>2]=d;e=uh(e,25952,n)|0;if((e|0)!=0?(Ir(o,g,e),q=Xr(a,b)|0,(q|0)!=0):0)Ir(o,1,q)}i=r;return} function gh(f){f=f|0;var g=0,l=0,m=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,E=0,F=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ea=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,cc=0,dc=0,ec=0,fc=0,gc=0,hc=0,ic=0,kc=0,nc=0,oc=0,qc=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,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,Xc=0,Yc=0,Zc=0,_c=0,$c=0,ad=0,ed=0,fd=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,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,ee=0,fe=0,ge=0,he=0,ie=0,je=0,ke=0,le=0,me=0,ne=0,oe=0,pe=0,qe=0;oe=i;i=i+1040|0;if((i|0)>=(j|0))fa();ke=oe+400|0;Tc=oe+792|0;id=oe+392|0;ad=oe+788|0;Sd=oe+320|0;md=oe+784|0;pd=oe+780|0;qd=oe+280|0;Nd=oe+680|0;$c=oe+240|0;Qd=oe+200|0;_c=oe+676|0;Xc=oe+672|0;Od=oe+160|0;Uc=oe+644|0;td=oe+152|0;Jd=oe+112|0;kd=oe+640|0;Ld=oe+636|0;Yc=oe+632|0;ud=oe+628|0;Ad=oe+624|0;wd=oe+604|0;Bd=oe+600|0;od=oe+596|0;xd=oe+576|0;Sc=oe+840|0;Cd=oe+572|0;Pd=oe+104|0;Dd=oe+568|0;ed=oe+564|0;fd=oe+96|0;Rd=oe+88|0;Ed=oe+560|0;Fd=oe+556|0;Gd=oe+552|0;yd=oe+532|0;zd=oe+512|0;jd=oe+508|0;vd=oe+504|0;Zc=oe+488|0;Md=oe+48|0;Vc=oe+456|0;Rc=oe+444|0;Kd=oe+8|0;sd=oe+440|0;Id=oe+412|0;Hd=oe;zc=f+4|0;s=c[(zc&p)>>2]|0;le=c[(f&p)>>2]|0;Jc=a[(le&n)+62>>0]|0;Nc=f+8|0;z=c[(Nc&p)>>2]|0;ne=le+32|0;l=ne;m=c[(l&p)>>2]|0;l=c[(l&p)+4>>2]|0;me=f+80|0;a:do if((c[(me&p)>>2]|0)==7){y=le+65|0;z=f+44|0;r=m;g=0;t=0;m=0;ie=1317}else{c[(me&p)>>2]=0;de=f+136|0;c[(de&p)>>2]=0;c[(de&p)+4>>2]=0;de=f+20|0;c[(de&p)>>2]=0;c[(le&p)+452>>2]=0;Cc=le+240|0;b:do if(!(c[(Cc&p)>>2]|0)){be=le+292|0;if(c[(be&p)>>2]|0){r=c[(f&p)+124>>2]|0;g=le+300|0;y=c[(g&p)>>2]|0;if(!r)yc=g;else{yc=g;y=(r>>>0)%(y>>>0)|0}}else{yc=le+300|0;y=0}he=f+76|0;ge=le+65|0;Zd=le+296|0;sb=f+176|0;tb=f+184|0;ub=f+92|0;vb=le+80|0;wb=le+84|0;xb=Jc&255;yb=Jc<<24>>24==1;zb=le+88|0;Ab=f+60|0;_d=f+144|0;fe=f+86|0;je=f+44|0;Bb=f+12|0;Cb=Uc+4|0;Db=Uc+16|0;Eb=Uc+12|0;Fb=Uc+25|0;Gb=Uc+20|0;Hb=f+200|0;Ib=f+56|0;$d=f+72|0;Jb=Jd+16|0;Kb=Jd+8|0;Lb=Jd+24|0;Mb=f+87|0;ae=le+156|0;Nb=le+500|0;Ob=le+496|0;ee=le+63|0;Pb=le+488|0;Qb=le+504|0;Rb=le+512|0;Sb=le+70|0;Tb=le+24|0;Ub=le+20|0;Xd=le+16|0;Vb=le+4|0;Yd=f+88|0;Wb=f+104|0;Xb=f+152|0;Yb=f+160|0;Zb=le+152|0;_b=le+64|0;$b=wd+4|0;cc=wd+6|0;dc=wd+8|0;ec=xd+4|0;fc=xd+8|0;gc=le+212|0;hc=le+208|0;ic=f+116|0;kc=yd+4|0;nc=yd+6|0;oc=yd+8|0;qc=$c+8|0;sc=$c+32|0;uc=$c+24|0;vc=$c+16|0;wc=$c+12|0;xc=zd+4|0;Y=zd+6|0;Z=zd+8|0;_=qd+8|0;$=qd+32|0;aa=qd+24|0;ea=qd+12|0;ga=qd+16|0;ha=le+164|0;ia=Zc+8|0;ja=Zc+4|0;ka=le+145|0;la=Zc+12|0;ma=Sd+4|0;na=Sd+12|0;oa=Sd+16|0;pa=Sd+20|0;qa=Sd+24|0;ra=Sd+28|0;sa=Sd+8|0;ta=Sd+40|0;ua=Sd+44|0;va=Sd+48|0;wa=Sd+52|0;xa=Sd+56|0;ya=Sd+60|0;za=Sd+64|0;Aa=Sd+65|0;Ba=le+128|0;Ca=f+28|0;Da=f+36|0;Ea=f+32|0;Fa=f+196|0;Ga=Vc+4|0;Ha=Vc+8|0;Ia=Md+8|0;Ja=Md+32|0;Ka=Md+24|0;La=Vc+20|0;Ma=Vc+12|0;Na=Vc+16|0;Oa=Vc+24|0;Pa=Rc+8|0;Qa=Rc+4|0;Ra=le+148|0;Sa=le+176|0;Ta=le+72|0;Ua=le+67|0;Va=Tc+20|0;Wa=Tc+24|0;Xa=Tc+4|0;Ya=Tc+16|0;Za=le+304|0;_a=le+328|0;$a=Kd+32|0;ab=Kd+8|0;bb=Kd+24|0;cb=le+308|0;db=Id+20|0;eb=le+69|0;ce=f+168|0;fb=qd+4|0;gb=qd+8|0;hb=qd+12|0;ib=qd+16|0;jb=qd+20|0;kb=qd+24|0;lb=qd+25|0;mb=le+180|0;nb=Od+32|0;ob=Od+8|0;pb=Od+12|0;qb=Od+16|0;rb=Od+24|0;W=0;X=0;g=0;u=0;t=c[(he&p)>>2]|0;x=0;c:while(1){r=m;d:while(1){if(a[(ge&n)>>0]|0){y=ge;z=je;m=x;ie=1317;break a}m=g+1|0;if(!(a[(s+(t*20|0)&n)+2>>0]&2))L=u;else{u=c[(s+(t*20|0)&p)+8>>2]|0;g=z+(u*40|0)|0;u=z+(u*40|0)+8|0;if(b[(u&o)>>1]&9312)vg(g);b[(u&o)>>1]=4;L=g}C=s+(t*20|0)|0;J=a[(C&n)>>0]|0;u=J&255;e:do switch(u|0){case 17:{g=m;m=r;u=L;ie=22;break d}case 18:{g=m;m=r;u=L;ie=23;break d}case 20:{g=m;m=r;ie=24;break d}case 21:{g=m;m=r;u=L;ie=25;break d}case 22:{g=m;m=r;u=L;ie=26;break d}case 23:{g=m;m=r;u=L;r=t;ie=27;break d}case 29:{g=m;m=r;r=t;ie=65;break d}case 30:{g=m;m=r;u=L;r=t;ie=66;break d}case 28:{g=m;m=r;u=L;r=t;ie=60;break d}case 32:{g=m;m=r;r=t;ie=72;break d}case 24:{g=m;m=r;u=L;r=t;ie=28;break d}case 25:{g=m;m=r;u=L;r=t;ie=44;break d}case 26:{g=m;m=r;u=L;r=t;ie=45;break d}case 133:{g=m;m=r;u=L;r=t;ie=46;break d}case 97:{a[(C&n)>>0]=27;C=s+(t*20|0)+16|0;v=c[(C&p)>>2]|0;if(!v)g=0;else{g=v;while(1)if(!(a[(g&n)>>0]|0))break;else g=g+1|0;g=g-v&1073741823}w=s+(t*20|0)+4|0;c[(w&p)>>2]=g;if(yb)u=0;else{u=Xg(L,v,-1,1,0)|0;if((u|0)==18){g=m;m=r;u=x;ie=1316;break c}if(Yl(L,xb)|0){y=ge;z=je;g=m;m=x;ie=1317;break a}c[(L&p)+24>>2]=0;g=L+8|0;b[(g&o)>>1]=e[(g&o)>>1]|2048;g=s+(t*20|0)+1|0;if((a[(g&n)>>0]|0)==-1)mg(le,c[(C&p)>>2]|0);a[(g&n)>>0]=-1;v=c[(L&p)+16>>2]|0;c[(C&p)>>2]=v;g=c[(L&p)+12>>2]|0;c[(w&p)>>2]=g}if((g|0)>(c[(zb&p)>>2]|0)){g=m;m=r;u=x;ie=1316;break c}else ie=57;break}case 31:{g=m;m=r;u=L;r=t;ie=67;break d}case 34:{g=m;m=r;r=t;ie=79;break d}case 35:{g=m;m=r;u=x;ie=80;break c}case 33:{g=m;m=r;ie=74;break d}case 94:{g=m;m=r;ie=94;break d}case 93:case 92:case 91:case 90:case 89:{g=m;P=C;m=r;r=t;ie=112;break d}case 27:{v=c[(s+(t*20|0)&p)+16>>2]|0;g=c[(s+(t*20|0)&p)+4>>2]|0;u=0;ie=57;break}case 16:{t=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;u=0;ie=19;break}case 36:{g=m;m=r;J=L;r=t;ie=166;break d}case 1:{V=a[(s+(t*20|0)&n)+3>>0]|0;C=V&255;A=c[(Bb&p)>>2]|0;g=z+((c[(s+(t*20|0)&p)+12>>2]|0)*40|0)|0;c[(Uc&p)>>2]=g;if(V<<24>>24){g=0;u=z+((c[(s+(t*20|0)&p)+8>>2]|0)*40|0)|0;while(1){c[(A+(g<<2)&p)>>2]=u;if((b[(u&o)+8>>1]&4096)!=0?(Vl(u)|0)!=0:0){y=ge;z=je;g=m;m=x;ie=1317;break a}g=g+1|0;if((g|0)>=(C|0))break;else u=u+40|0}g=c[(Uc&p)>>2]|0}V=c[(s+(t*20|0)&p)+16>>2]|0;c[(Cb&p)>>2]=V;c[(Db&p)>>2]=t;c[(Eb&p)>>2]=f;U=g+8|0;b[(U&o)>>1]=e[(U&o)>>1]&48640|1;a[(Fb&n)>>0]=0;U=ne;c[(U&p)>>2]=r;c[(U&p)+4>>2]=l;mc[c[(V&p)+12>>2]&63](Uc,C,A);l=ne;r=c[(l&p)>>2]|0;l=c[(l&p)+4>>2]|0;if(!(a[(Fb&n)>>0]|0))g=0;else{if(!(c[(Gb&p)>>2]|0))g=0;else{c[(ke&p)>>2]=Sg(c[(Uc&p)>>2]|0,1)|0;dh(je,le,10344,ke);g=c[(Gb&p)>>2]|0}em(f,t,c[(s+(t*20|0)&p)+4>>2]|0)}Yl(c[(Uc&p)>>2]|0,xb)|0;w=c[(Uc&p)>>2]|0;v=e[(w&o)+8>>1]|0;if(v&18){u=c[(w&p)+12>>2]|0;if(v&16384)u=(c[(w&p)>>2]|0)+u|0;if((u|0)>(c[((c[(w&p)+32>>2]|0)&p)+88>>2]|0)){g=m;m=r;u=x;ie=1316;break c}else{C=L;T=t;u=g}}else{C=L;T=t;u=g}break}case 88:case 87:case 86:case 85:{g=m;H=C;m=r;r=t;ie=184;break d}case 39:{g=m;m=r;J=L;r=t;ie=208;break d}case 37:{g=m;m=r;u=L;r=t;ie=202;break d}case 38:{g=m;m=r;J=L;r=t;ie=203;break d}case 83:case 80:case 81:case 82:case 78:case 79:{g=m;I=J;m=r;u=L;ie=213;break d}case 40:{V=c[(s+(t*20|0)&p)+4>>2]|0;g=z+(V*40|0)|0;if(!(b[(z+(V*40|0)&o)+8>>1]&16384))u=0;else u=Rg(g)|0;gm(g,c[(s+(t*20|0)&p)+8>>2]&255,Jc);C=L;T=t;break}case 41:{g=m;m=r;u=L;r=t;ie=248;break d}case 42:{g=m;m=r;u=L;r=t;ie=249;break d}case 43:{g=m;m=r;u=L;ie=256;break d}case 71:case 72:{g=m;m=r;r=t;ie=261;break d}case 76:{g=m;m=r;u=L;r=t;ie=286;break d}case 19:{g=m;m=r;r=t;ie=268;break d}case 96:{g=m;m=r;r=t;ie=273;break d}case 44:{g=m;m=r;u=L;r=t;ie=278;break d}case 46:case 45:{g=m;m=r;u=L;r=t;ie=281;break d}case 77:{g=m;m=r;u=L;r=t;ie=288;break d}case 47:{g=m;m=r;u=L;ie=290;break d}case 48:{g=m;m=r;u=L;r=t;ie=368;break d}case 49:{g=m;m=r;ie=371;break d}case 50:{E=c[(c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]&p)>>2]|0;f:do if(c[(E&p)+60>>2]|0){g=qm(E)|0;if(!g){K=E+76|0;H=E+44|0;F=E+72|0;v=0;u=0;g:while(1){C=b[(K&o)>>1]|0;J=c[(E+(C<<16>>16<<2)&p)+120>>2]|0;if(!(a[(J&n)+5>>0]|0)){if(!(a[(J&n)+2>>0]|0)){v=jw(e[(J&o)+18>>1]|0,0,v|0,u|0)|0;u=G}}else{v=jw(e[(J&o)+18>>1]|0,0,v|0,u|0)|0;u=G;while(1){if(!(C<<16>>16))break g;if(J){Bg(c[(J&p)+68>>2]|0);C=b[(K&o)>>1]|0}C=C+-1<<16>>16;b[(K&o)>>1]=C;b[(H&o)>>1]=0;a[(F&n)>>0]=d[(F&n)>>0]&249;J=C<<16>>16;A=E+(J<<1)+78|0;I=b[(A&o)>>1]|0;J=c[(E+(J<<2)&p)+120>>2]|0;if((I&65535)<(e[(J&o)+18>>1]|0)){C=I;break}}b[(A&o)>>1]=C+1<<16>>16;J=b[(K&o)>>1]|0;C=J;J=c[(E+(J<<16>>16<<2)&p)+120>>2]|0}C=b[(E+(C<<16>>16<<1)&o)+78>>1]|0;A=c[(J&p)+56>>2]|0;if(C<<16>>16==(b[(J&o)+18>>1]|0)){g=d[(J&n)+6>>0]|0;g=rm(E,d[(A+g&n)+9>>0]<<16|d[(A+g&n)+8>>0]<<24|d[(A+g&n)+10>>0]<<8|d[(A+g&n)+11>>0])|0}else{g=(C&65535)<<1;V=c[(J&p)+64>>2]|0;g=(d[(V+g&n)>>0]<<8|d[(V+(g|1)&n)>>0])&e[(J&o)+20>>1];g=rm(E,d[(A+g&n)+1>>0]<<16|d[(A+g&n)>>0]<<24|d[(A+g&n)+2>>0]<<8|d[(A+g&n)+3>>0])|0}if(g){v=0;u=0;break f}}g=qm(E)|0}else{v=0;u=0}}else{g=0;v=0;u=0}while(0);C=L;c[(C&p)>>2]=v;c[(C&p)+4>>2]=u;C=L;T=t;u=g;break}case 2:{O=c[(s+(t*20|0)&p)+4>>2]|0;v=c[(s+(t*20|0)&p)+16>>2]|0;if(!O){g=m;m=r;r=t;ie=446;break d}g=c[(Pb&p)>>2]|0;if(!g){s=v;g=m;m=r;u=x;ie=460;break c}else u=0;while(1){if(!(dd(c[(g&p)>>2]|0,v)|0)){M=g;break}g=c[(g&p)+24>>2]|0;if(!g){s=v;g=m;m=r;u=x;ie=460;break c}else u=u+1|0}H=(O|0)==1;if((c[(ae&p)>>2]|0)>0&H){g=m;m=r;u=x;ie=462;break c}F=M+24|0;if(!(c[(F&p)>>2]|0)){A=(a[(Sb&n)>>0]|0)!=0;if(A&H){g=tm(f,1)|0;if(g)break a;a[(ee&n)>>0]=1;if((Rl(f)|0)==5){g=t;ie=467;break c}a[(Sb&n)>>0]=0;A=1;K=u;u=c[(me&p)>>2]|0}else ie=469}else{A=0;ie=469}if((ie|0)==469){ie=0;K=(c[(Ob&p)>>2]|0)-u+-1|0;if((O|0)==2){C=(c[(Tb&p)>>2]|0)>>>1&1;if((c[(Ub&p)>>2]|0)>0){J=C^1;I=0;while(1){u=Il(c[((c[(Xd&p)>>2]|0)+(I<<4)&p)+4>>2]|0,516,J)|0;I=I+1|0;if(u){g=m;m=r;ie=1318;break c}g=c[(Ub&p)>>2]|0;if((I|0)>=(g|0)){ie=475;break}}}}else{g=c[(Ub&p)>>2]|0;C=0;ie=475}if((ie|0)==475){ie=0;if((g|0)>0){E=0;do{u=um(c[((c[(Xd&p)>>2]|0)+(E<<4)&p)+4>>2]|0,O,K)|0;E=E+1|0;if(u){g=m;m=r;ie=1318;break c}}while((E|0)<(c[(Ub&p)>>2]|0))}}if(!C)u=0;else{C=c[(Vb&p)>>2]|0;if(C)do{V=C+88|0;b[(V&o)>>1]=b[(V&o)>>1]|8;C=c[(C&p)+52>>2]|0}while((C|0)!=0);Eg(le);c[(Tb&p)>>2]=c[(Tb&p)>>2]|2;u=0}}C=c[(Pb&p)>>2]|0;if((C|0)!=(M|0))do{c[(Pb&p)>>2]=c[(C&p)+24>>2];mg(le,C);c[(Ob&p)>>2]=(c[(Ob&p)>>2]|0)+-1;C=c[(Pb&p)>>2]|0}while((C|0)!=(M|0));if(H){c[(Pb&p)>>2]=c[(F&p)>>2];mg(le,M);if(A){C=L;T=t;break e}else{g=m;C=O;m=r;A=K;E=L;r=t;ie=486;break d}}else{V=M+8|0;U=c[(V&p)+4>>2]|0;T=Qb;c[(T&p)>>2]=c[(V&p)>>2];c[(T&p)+4>>2]=U;T=M+16|0;U=c[(T&p)+4>>2]|0;V=Rb;c[(V&p)>>2]=c[(T&p)>>2];c[(V&p)+4>>2]=U;if(A){C=L;T=t;break e}else{C=O;g=m;m=r;A=K;E=L;r=t;ie=488;break d}}}case 3:{u=x;ie=489;break c}case 4:{v=s+(t*20|0)+8|0;g=c[(v&p)>>2]|0;if((g|0)!=0?(c[(Tb&p)>>2]&33554432|0)!=0:0){g=m;m=r;u=8;ie=1318;break c}I=s+(t*20|0)+4|0;J=c[((c[(Xd&p)>>2]|0)+(c[(I&p)>>2]<<4)&p)+4>>2]|0;if(!J){v=0;u=0;g=0}else{u=yg(J,g)|0;if((u|0)==5){g=t;ie=508;break c}else if(u){g=m;m=r;ie=1318;break c}do if((c[(v&p)>>2]|0)!=0?(b[(Yd&o)>>1]&32)!=0:0){if((a[(ee&n)>>0]|0)!=0?(c[(Zb&p)>>2]|0)<=1:0){g=0;break}g=c[(Wb&p)>>2]|0;if(!g){g=(c[(Nb&p)>>2]|0)+1|0;c[(Nb&p)>>2]=g;g=(c[(Ob&p)>>2]|0)+g|0;c[(Wb&p)>>2]=g}g=sm(le,0,g+-1|0)|0;if(!g){g=c[(Wb&p)>>2]|0;V=c[(J&p)+4>>2]|0;c[(V&p)+4>>2]=c[(J&p)>>2];g=hl(c[(V&p)>>2]|0,g)|0}V=Qb;U=c[(V&p)+4>>2]|0;T=Xb;c[(T&p)>>2]=c[(V&p)>>2];c[(T&p)+4>>2]=U;T=Rb;U=c[(T&p)+4>>2]|0;V=Yb;c[(V&p)>>2]=c[(T&p)>>2];c[(V&p)+4>>2]=U}else g=0;while(0);v=c[(J&p)+4>>2]|0;c[(v&p)+4>>2]=c[(J&p)>>2];v=c[((c[(v&p)+12>>2]|0)&p)+56>>2]|0;v=d[(v&n)+41>>0]<<16|d[(v&n)+40>>0]<<24|d[(v&n)+42>>0]<<8|d[(v&n)+43>>0];u=c[((c[((c[(Xd&p)>>2]|0)+(c[(I&p)>>2]<<4)&p)+12>>2]|0)&p)+4>>2]|0}if(a[(s+(t*20|0)&n)+3>>0]|0){if((v|0)!=(c[(s+(t*20|0)&p)+12>>2]|0)){g=m;s=I;m=r;u=x;ie=522;break c}if((u|0)!=(c[(s+(t*20|0)&p)+16>>2]|0)){g=m;s=I;m=r;u=x;ie=522;break c}else{C=L;T=t;u=g}}else{C=L;T=t;u=g}break}case 53:{g=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;if((g|0)!=0?(c[(g&p)+28>>2]|0)==(c[(s+(t*20|0)&p)+8>>2]|0):0){v=s+(t*20|0)+3|0;u=0;ie=548}else ie=536;break}case 51:{g=m;m=r;u=L;r=t;ie=525;break d}case 52:{A=s+(t*20|0)+4|0;g=c[(A&p)>>2]|0;v=c[(Xd&p)>>2]|0;C=c[(s+(t*20|0)&p)+12>>2]|0;w=z+(C*40|0)|0;u=Vg(w)|0;V=w;c[(V&p)>>2]=u;c[(V&p)+4>>2]=G;C=z+(C*40|0)+8|0;b[(C&o)>>1]=e[(C&o)>>1]&48640|4;C=s+(t*20|0)+8|0;u=Dg(c[(v+(g<<4)&p)+4>>2]|0,c[(C&p)>>2]|0,u)|0;C=c[(C&p)>>2]|0;if((C|0)==1){c[(c[(v+(g<<4)&p)+12>>2]&p)>>2]=c[(w&p)>>2];c[(Tb&p)>>2]=c[(Tb&p)>>2]|2}else if((C|0)==2)a[((c[(v+(g<<4)&p)+12>>2]|0)&n)+76>>0]=c[(w&p)>>2];if((c[(A&p)>>2]|0)==1){g=c[(Vb&p)>>2]|0;if(g)do{V=g+88|0;b[(V&o)>>1]=b[(V&o)>>1]|8;g=c[(g&p)+52>>2]|0}while((g|0)!=0);b[(Yd&o)>>1]=b[(Yd&o)>>1]&-9;C=L;T=t}else{C=L;T=t}break}case 55:case 54:{ie=536;break}case 57:case 56:{g=xm(f,c[(s+(t*20|0)&p)+4>>2]|0,c[(s+(t*20|0)&p)+8>>2]|0,-1,1)|0;if(!g){y=ge;z=je;g=m;m=x;ie=1317;break a}a[(g&n)+25>>0]=1;J=g+27|0;a[(J&n)>>0]=a[(J&n)>>0]|1;v=g+4|0;I=s+(t*20|0)+3|0;u=zm(c[(le&p)>>2]|0,0,le,v,d[(I&n)>>0]|5,1054)|0;do if(!u){u=yg(c[(v&p)>>2]|0,1)|0;if(!u){A=c[(s+(t*20|0)&p)+16>>2]|0;C=c[(v&p)>>2]|0;if(!A){u=ym(C,1,1,0,c[(g&p)>>2]|0)|0;a[(J&n)>>0]=a[(J&n)>>0]|4;break}u=Am(C,ud,d[(I&n)>>0]|2)|0;if(!u){c[(g&p)+8>>2]=A;u=ym(c[(v&p)>>2]|0,c[(ud&p)>>2]|0,1,A,c[(g&p)>>2]|0)|0}a[(J&n)>>0]=a[(J&n)>>0]&-5}}while(0);a[(J&n)>>0]=((a[(I&n)>>0]|0)!=8&1)<<3&255|a[(J&n)>>0]&-9;C=L;T=t;break}case 58:{g=m;m=r;ie=558;break d}case 60:{g=m;m=r;u=L;ie=568;break d}case 61:{g=m;m=r;u=L;r=t;ie=570;break d}case 59:{g=m;m=r;u=L;r=t;ie=566;break d}case 65:case 64:case 63:case 62:{g=m;K=u;m=r;r=t;ie=571;break d}case 66:{g=m;m=r;u=L;r=t;ie=596;break d}case 69:case 68:case 67:{g=m;H=C;m=r;u=L;ie=597;break d}case 73:{g=m;m=r;u=L;r=t;ie=624;break d}case 70:{V=c[(s+(t*20|0)&p)+12>>2]|0;g=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;u=c[(g&p)>>2]|0;c[(Cd&p)>>2]=0;V=z+(V*40|0)|0;U=c[(V&p)>>2]|0;V=c[(V&p)+4>>2]|0;u=Cm(u,0,U,V,0,Cd)|0;v=g+48|0;c[(v&p)>>2]=U;c[(v&p)+4>>2]=V;a[(g&n)+25>>0]=0;c[(g&p)+60>>2]=0;a[(g&n)+26>>0]=0;v=c[(Cd&p)>>2]|0;if(v)t=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;c[(g&p)+12>>2]=v;C=L;T=t;break}case 74:{H=Pd;c[(H&p)>>2]=0;c[(H&p)+4>>2]=0;c[(Dd&p)>>2]=0;H=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;g=c[(H&p)>>2]|0;if(!g){u=0;v=0;g=0}else{K=H+27|0;do if(!(a[(K&n)>>0]&2)){u=Hm(g,Dd)|0;if(u){g=m;m=r;ie=1318;break c}if(c[(Dd&p)>>2]|0){V=Pd;c[(V&p)>>2]=1;c[(V&p)+4>>2]=0;break}km(c[(H&p)>>2]|0,Pd);u=Pd;g=c[(u&p)>>2]|0;u=c[(u&p)+4>>2]|0;if((g|0)==-1&(u|0)==2147483647){a[(K&n)>>0]=a[(K&n)>>0]|2;break}else{U=jw(g|0,u|0,1,0)|0;V=Pd;c[(V&p)>>2]=U;c[(V&p)+4>>2]=G;break}}while(0);J=c[(s+(t*20|0)&p)+12>>2]|0;if(J){g=c[(sb&p)>>2]|0;if(!g)C=z;else{while(1){u=c[(g&p)+4>>2]|0;if(!u)break;else g=u}C=c[(g&p)+16>>2]|0}I=C+(J*40|0)|0;A=Vg(I)|0;g=G;V=I;c[(V&p)>>2]=A;c[(V&p)+4>>2]=g;V=C+(J*40|0)+8|0;b[(V&o)>>1]=e[(V&o)>>1]&48640|4;if((A|0)==-1&(g|0)==2147483647){g=m;m=r;u=13;ie=1318;break c}if(a[(K&n)>>0]&2){g=m;m=r;u=13;ie=1318;break c}J=Pd;u=c[(J&p)>>2]|0;J=c[(J&p)+4>>2]|0;C=jw(A|0,g|0,1,0)|0;g=G;if((J|0)<(g|0)|(J|0)==(g|0)&u>>>0>>0){V=Pd;c[(V&p)>>2]=C;c[(V&p)+4>>2]=g}else{C=u;g=J}V=I;c[(V&p)>>2]=C;c[(V&p)+4>>2]=g}h:do if(!(a[(K&n)>>0]&2))g=0;else{u=0;while(1){cd(8,Pd);V=Pd;V=jw(c[(V&p)>>2]|0,c[(V&p)+4>>2]&1073741823|0,1,0)|0;g=G;U=Pd;c[(U&p)>>2]=V;c[(U&p)+4>>2]=g;g=Cm(c[(H&p)>>2]|0,0,V,g,0,Dd)|0;if(c[(Dd&p)>>2]|g)break h;u=u+1|0;if((u|0)>=100){g=m;m=r;u=13;ie=1318;break c}}}while(0);a[(H&n)+26>>0]=0;c[(H&p)+60>>2]=0;v=Pd;u=c[(v&p)>>2]|0;v=c[(v&p)+4>>2]|0}C=L;c[(C&p)>>2]=u;c[(C&p)+4>>2]=v;C=L;T=t;u=g;break}case 84:case 75:{g=m;C=J;m=r;u=L;r=t;ie=647;break d}case 95:{g=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;u=Jm(c[(g&p)>>2]|0)|0;c[(g&p)+60>>2]=0;if((((u|0)==0?(Gc=c[(gc&p)>>2]|0,(Gc|0)!=0):0)?(Hc=c[(s+(t*20|0)&p)+16>>2]|0,(Hc|0)!=0):0)?(a[(g&n)+27>>0]&4)!=0:0){V=g+48|0;bc[Gc&1](c[(hc&p)>>2]|0,9,c[((c[(Xd&p)>>2]|0)+(a[(g&n)+24>>0]<<4)&p)>>2]|0,Hc,c[(V&p)>>2]|0,c[(V&p)+4>>2]|0)}if(!(c[(s+(t*20|0)&p)+8>>2]&1)){C=L;T=t}else{c[(ub&p)>>2]=(c[(ub&p)>>2]|0)+1;C=L;T=t}break}case 98:{g=m;m=r;u=L;r=t;ie=671;break d}case 99:{g=m;m=r;u=L;r=t;ie=672;break d}case 100:{v=c[(s+(t*20|0)&p)+8>>2]|0;C=z+(v*40|0)|0;g=c[((c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0)&p)+56>>2]|0;if(!(a[(g&n)+56>>0]|0)){u=c[(g&p)+36>>2]|0;g=u;u=u+8|0}else{V=c[(g&p)+20>>2]|0;u=c[((c[(V&p)+8>>2]|0)&p)+4>>2]|0;V=c[(V&p)+12>>2]|0;g=V+(u*56|0)+20|0;u=c[(V+(u*56|0)&p)+32>>2]|0}g=c[(g&p)>>2]|0;if(!(fh(C,g)|0)){c[(z+(v*40|0)&p)+12>>2]=g;V=z+(v*40|0)+8|0;b[(V&o)>>1]=e[(V&o)>>1]&48640|16;kw(c[(z+(v*40|0)&p)+16>>2]|0,u|0,g|0)|0;u=0}else u=7;c[((c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+12>>2]<<2)&p)>>2]|0)&p)+60>>2]=0;T=t;break}case 102:case 101:{v=c[(s+(t*20|0)&p)+8>>2]|0;J=z+(v*40|0)|0;A=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;C=c[(A&p)>>2]|0;A=A+27|0;if(a[(A&n)>>0]&4){lm(C,ed);g=c[(ed&p)>>2]|0;if(g>>>0>(c[(zb&p)>>2]|0)>>>0){g=m;m=r;u=x;ie=1316;break c}}else{km(C,fd);T=fd;g=c[(T&p)>>2]|0;T=c[(T&p)+4>>2]|0;V=c[(zb&p)>>2]|0;U=((V|0)<0)<<31>>31;if((T|0)>(U|0)|(T|0)==(U|0)&g>>>0>V>>>0){g=m;m=r;u=x;ie=1316;break c}c[(ed&p)>>2]=g}if(fh(J,g>>>0>32?g:32)|0){y=ge;z=je;g=m;m=x;ie=1317;break a}c[(z+(v*40|0)&p)+12>>2]=g;g=z+(v*40|0)+8|0;b[(g&o)>>1]=e[(g&o)>>1]&48640|16;g=c[(ed&p)>>2]|0;u=c[(z+(v*40|0)&p)+16>>2]|0;if(!(a[(A&n)>>0]&4))u=Lm(C,0,g,u,0)|0;else u=Dh(C,0,g,u)|0;a[(z+(v*40|0)&n)+10>>0]=1;C=J;T=t;break}case 103:{v=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;w=v+25|0;if(a[(w&n)>>0]|0){g=m;m=r;u=L;r=t;ie=700;break d}do if(!(a[(v&n)+26>>0]|0)){g=c[(v&p)+32>>2]|0;if(g){V=c[(g&p)>>2]|0;u=rc[c[((c[(V&p)>>2]|0)&p)+48>>2]&127](g,Rd)|0;Mm(f,V);break}if((a[((c[(v&p)>>2]|0)&n)+73>>0]|0)!=1){u=jm(v)|0;if(u){g=m;m=r;ie=1318;break c}if(a[(w&n)>>0]|0){g=m;m=r;u=L;r=t;ie=708;break d}}km(c[(v&p)>>2]|0,Rd);u=0}else{U=v+48|0;V=c[(U&p)+4>>2]|0;u=Rd;c[(u&p)>>2]=c[(U&p)>>2];c[(u&p)+4>>2]=V;u=0}while(0);V=Rd;T=c[(V&p)+4>>2]|0;C=L;c[(C&p)>>2]=c[(V&p)>>2];c[(C&p)+4>>2]=T;C=L;T=t;break}case 108:{ie=715;break}case 104:{g=m;m=r;u=L;r=t;ie=711;break d}case 107:case 106:{c[(ic&p)>>2]=(c[(ic&p)>>2]|0)+1;ie=715;break}case 105:{T=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;u=c[(T&p)>>2]|0;c[(Ed&p)>>2]=0;u=Hm(u,Ed)|0;V=c[(Ed&p)>>2]|0;a[(T&n)+25>>0]=V;a[(T&n)+26>>0]=0;c[(T&p)+60>>2]=0;T=c[(s+(t*20|0)&p)+8>>2]|0;C=L;T=(T|0)>0&(V|0)!=0?T+-1|0:t;break}case 7:case 6:{if(!(c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0)){g=m;m=r;S=z;T=s;U=W;V=X;u=L;r=t;break d}else ie=765;break}case 5:{g=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;c[(Fd&p)>>2]=0;w=c[(g&p)+56>>2]|0;if(a[(w&n)+56>>0]|0){u=Wm(c[(w&p)+20>>2]|0,Fd)|0;ie=766;break e}u=w+36|0;v=c[(u&p)>>2]|0;V=v+4|0;c[(u&p)>>2]=c[(V&p)>>2];c[(V&p)>>2]=0;if(!((c[(w&p)+40>>2]|0)!=0|(v|0)==0))mg(le,v);c[(Fd&p)>>2]=(c[(u&p)>>2]|0)==0&1;u=0;ie=766;break}case 9:case 8:{ie=765;break}case 110:case 109:{A=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;S=c[(s+(t*20|0)&p)+8>>2]|0;u=c[(A&p)>>2]|0;C=s+(t*20|0)+3|0;if(a[(C&n)>>0]&1)c[(ub&p)>>2]=(c[(ub&p)>>2]|0)+1;if((b[(z+(S*40|0)&o)+8>>1]&16384)!=0?(Ud=Rg(z+(S*40|0)|0)|0,(Ud|0)!=0):0){g=m;m=r;s=Ud;u=x;ie=1309;break c}H=c[(A&p)+56>>2]|0;T=z+(S*40|0)+12|0;P=c[(T&p)>>2]|0;if(!H){if(!(a[(C&n)>>0]&16))g=0;else g=c[(A&p)+12>>2]|0;u=Im(u,c[(z+(S*40|0)&p)+16>>2]|0,P,((P|0)<0)<<31>>31,10360,0,0,c[(s+(t*20|0)&p)+12>>2]|0,g)|0;c[(A&p)+60>>2]=0;C=L;T=t;break e}C=P;g=((P|0)<0)<<31>>31;A=0;do{A=A+1|0;C=mw(C|0,g|0,7)|0;g=G}while(((C|0)!=0|(g|0)!=0)&(A|0)<9);K=P+8|0;I=A+P|0;M=H+4|0;A=c[(M&p)>>2]|0;do if(!A)u=0;else{if(!(c[(H&p)+40>>2]|0)){C=H+44|0;V=c[(C&p)>>2]|0;if((V|0)<=(A|0)?!((c[2265]|0)!=0?(V|0)>(c[(H&p)>>2]|0):0):0){u=0;break}}else{V=c[(H&p)+48>>2]|0;if(!((V|0)!=0&(V+K|0)>(A|0))){u=0;break}C=H+44|0}u=Om(H)|0;c[(C&p)>>2]=0;c[(H&p)+48>>2]=0}while(0);C=H+36|0;J=H+44|0;c[(J&p)>>2]=(c[(J&p)>>2]|0)+I;J=H+8|0;if((I|0)>(c[(J&p)>>2]|0))c[(J&p)>>2]=I;E=H+40|0;J=c[(E&p)>>2]|0;if(!J){g=qg(K,((K|0)<0)<<31>>31)|0;if(!g){g=m;m=r;s=7;u=x;ie=1309;break c}c[(g&p)+4>>2]=c[(C&p)>>2]}else{g=H+48|0;I=c[(g&p)>>2]|0;K=I+K|0;F=H+52|0;H=c[(F&p)>>2]|0;if((K|0)>(H|0)){I=H;do I=I<<1;while((I|0)<(K|0));V=c[(M&p)>>2]|0;I=(I|0)>(V|0)?V:I;I=(I|0)<(K|0)?K:I;J=rg(J,I,((I|0)<0)<<31>>31)|0;if(!J){g=m;m=r;s=7;u=x;ie=1309;break c}A=J+((c[(C&p)>>2]|0)-(c[(E&p)>>2]|0))|0;c[(C&p)>>2]=A;c[(E&p)>>2]=J;c[(F&p)>>2]=I;I=c[(g&p)>>2]|0}else A=c[(C&p)>>2]|0;c[(g&p)>>2]=I+(P+15&-8);c[(J+I&p)+4>>2]=A-J;g=J+I|0}kw(g+8|0,c[(z+(S*40|0)&p)+16>>2]|0,c[(T&p)>>2]|0)|0;c[(g&p)>>2]=c[(T&p)>>2];c[(C&p)>>2]=g;C=L;T=t;break}case 112:{g=m;m=r;r=t;ie=801;break d}case 111:{v=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;g=c[(v&p)>>2]|0;c[(yd&p)>>2]=c[(v&p)+8>>2];b[(kc&o)>>1]=c[(s+(t*20|0)&p)+12>>2];a[(nc&n)>>0]=0;c[(oc&p)>>2]=z+((c[(s+(t*20|0)&p)+8>>2]|0)*40|0);u=Cm(g,yd,0,0,0,Gd)|0;if(!(c[(Gd&p)>>2]|u))u=Jm(g)|0;c[(v&p)+60>>2]=0;C=L;T=t;break}case 116:case 115:case 114:case 113:{u=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;c[(zd&p)>>2]=c[(u&p)+8>>2];b[(xc&o)>>1]=c[(s+(t*20|0)&p)+16>>2];a[(Y&n)>>0]=((J&255)<115)<<31>>31;c[(Z&p)>>2]=z+((c[(s+(t*20|0)&p)+12>>2]|0)*40|0);V=Sd;c[(V&p)>>2]=0;c[(V&p)+4>>2]=0;km(c[(u&p)>>2]|0,Sd);V=Sd;g=c[(V&p)>>2]|0;V=jw(g|0,c[(V&p)+4>>2]|0,-1,-1)|0;U=G;if(!(U>>>0>0|(U|0)==0&V>>>0>2147483646)){b[(_&o)>>1]=0;c[($&p)>>2]=le;c[(aa&p)>>2]=0;g=nm(c[(u&p)>>2]|0,0,g,1,qd)|0;if(!g){u=Km(c[(ea&p)>>2]|0,c[(ga&p)>>2]|0,zd,0)|0;if((b[(_&o)>>1]&9312)==0&(c[(aa&p)>>2]|0)==0)g=0;else{Qg(qd);g=0}}else u=0}else{c[(ke&p)>>2]=68730;c[(ke&p)+4>>2]=10788;bd(11,13600,ke);g=11;u=0}if((((a[(C&n)>>0]&1)==0?u+1|0:0-u|0)|0)>0){C=L;T=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;u=g}else{C=L;T=t;u=g}break}case 117:{O=L+8|0;b[(O&o)>>1]=1;if((c[(Zb&p)>>2]|0)>((c[(ha&p)>>2]|0)+1|0)){g=m;m=r;u=x;ie=832;break c}N=c[(s+(t*20|0)&p)+12>>2]|0;M=c[((c[(Xd&p)>>2]|0)+(N<<4)&p)+4>>2]|0;P=s+(t*20|0)+4|0;I=c[(P&p)>>2]|0;C=M+4|0;K=c[(C&p)>>2]|0;c[(K&p)+4>>2]=c[(M&p)>>2];c[(ke&p)>>2]=0;do if(!(c[(K&p)+8>>2]|0)){u=dl(K,I,ke,0)|0;if(!u){u=Xm(M,I,0)|0;if(u){g=c[(ke&p)>>2]|0;if(!g){A=0;break}Bg(c[(g&p)+68>>2]|0);A=0;break}if(I>>>0<=1){g=c[(ke&p)>>2]|0;pl(g,9);if(!g){u=0;A=0;break}Bg(c[(g&p)+68>>2]|0);u=0;A=0;break}if(!(a[(K&n)+17>>0]|0)){g=c[(ke&p)>>2]|0;u=Ym(c[(g&p)+52>>2]|0,g,c[(g&p)+72>>2]|0)|0;if(!g){A=0;break}Bg(c[(g&p)+68>>2]|0);A=0;break}J=c[(C&p)>>2]|0;c[(J&p)+4>>2]=c[(M&p)>>2];J=c[((c[(J&p)+12>>2]|0)&p)+56>>2]|0;J=d[(J&n)+53>>0]<<16|d[(J&n)+52>>0]<<24|d[(J&n)+54>>0]<<8|d[(J&n)+55>>0];C=c[(ke&p)>>2]|0;if((J|0)==(I|0)){u=Ym(c[(C&p)+52>>2]|0,C,c[(C&p)+72>>2]|0)|0;if(C)Bg(c[(C&p)+68>>2]|0);if(!u)A=0;else{A=0;break}}else{if(C)Bg(c[(C&p)+68>>2]|0);u=dl(K,J,Sd,0)|0;if(u){A=0;break}C=c[(Sd&p)>>2]|0;u=Zm(K,C,1,0,I,0)|0;if(C)Bg(c[(C&p)+68>>2]|0);if(u){A=0;break}c[(Sd&p)>>2]=0;u=dl(K,J,Sd,0)|0;C=c[(Sd&p)>>2]|0;if(u){if(!C){A=0;break}}else u=Ym(c[(C&p)+52>>2]|0,C,c[(C&p)+72>>2]|0)|0;Bg(c[(C&p)+68>>2]|0);if(!u)A=J;else{A=0;break}}H=((c[2514]|0)>>>0)/((c[(K&p)+32>>2]|0)>>>0)|0;F=H+1|0;I=K+36|0;while(1){C=J+-1|0;if((C|0)==(F|0)){J=C;continue}if(C>>>0<2)E=0;else{E=J+-3|0;E=E-((E>>>0)%(((((c[(I&p)>>2]|0)>>>0)/5|0)+1|0)>>>0)|0)|0;E=((E+1|0)==(H|0)?3:2)+E|0}if((E|0)==(C|0))J=C;else break}u=Dg(M,4,C)|0}else A=0}else{u=262;A=0}while(0);b[(O&o)>>1]=4;V=L;c[(V&p)>>2]=A;c[(V&p)+4>>2]=((A|0)<0)<<31>>31;if((u|0)==0&(A|0)!=0){g=m;K=N;C=P;m=r;u=L;r=t;ie=865;break d}else{C=L;T=t}break}case 118:{c[(jd&p)>>2]=0;g=s+(t*20|0)+12|0;u=Xm(c[((c[(Xd&p)>>2]|0)+(c[(s+(t*20|0)&p)+8>>2]<<4)&p)+4>>2]|0,c[(s+(t*20|0)&p)+4>>2]|0,(c[(g&p)>>2]|0)!=0?jd:0)|0;g=c[(g&p)>>2]|0;if((g|0)!=0?(Ic=c[(jd&p)>>2]|0,c[(ub&p)>>2]=(c[(ub&p)>>2]|0)+Ic,(g|0)>0):0){C=z+(g*40|0)|0;T=C;T=jw(c[(T&p)>>2]|0,c[(T&p)+4>>2]|0,Ic|0,((Ic|0)<0)<<31>>31|0)|0;c[(C&p)>>2]=T;c[(C&p)+4>>2]=G;C=L;T=t}else{C=L;T=t}break}case 121:case 120:{c[(vd&p)>>2]=0;u=Am(c[((c[(Xd&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<4)&p)+4>>2]|0,vd,J<<24>>24==121?1:2)|0;T=c[(vd&p)>>2]|0;C=L;c[(C&p)>>2]=T;c[(C&p)+4>>2]=((T|0)<0)<<31>>31;C=L;T=t;break}case 119:{g=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;u=c[(g&p)+56>>2]|0;if(u){g=m;m=r;J=L;r=t;ie=878;break d}u=c[(g&p)>>2]|0;C=L;T=t;u=Xm(c[(u&p)>>2]|0,c[(u&p)+60>>2]|0,0)|0;break}case 123:{C=L;T=t;u=an(le,c[(s+(t*20|0)&p)+4>>2]|0)|0;break}case 124:{g=m;m=r;u=L;r=t;ie=886;break d}case 122:{g=m;m=r;J=L;r=t;ie=881;break d}case 126:{g=m;m=r;u=L;r=t;ie=895;break d}case 125:{g=m;m=r;J=L;r=t;ie=887;break d}case 127:{g=m;m=r;u=L;ie=903;break d}case 128:{g=m;m=r;J=L;ie=947;break d}case 129:{w=c[(s+(t*20|0)&p)+4>>2]|0;v=z+(w*40|0)|0;w=z+(w*40|0)+8|0;g=b[(w&o)>>1]|0;do if(g&32){E=c[(v&p)>>2]|0;u=E+26|0;g=b[(u&o)>>1]|0;if(!(g&2)){if(!(g&1)){g=E+8|0;c[(g&p)>>2]=kn(c[(g&p)>>2]|0)|0;g=b[(u&o)>>1]|0}b[(u&o)>>1]=g&65535|2}C=E+8|0;A=c[(C&p)>>2]|0;if(!A){g=b[(w&o)>>1]|0;break}w=A;v=c[(w&p)>>2]|0;w=c[(w&p)+4>>2]|0;V=c[(A&p)+8>>2]|0;c[(C&p)>>2]=V;if(!V)Zk(E);u=c[(s+(t*20|0)&p)+12>>2]|0;g=z+(u*40|0)|0;u=z+(u*40|0)+8|0;if(!(b[(u&o)>>1]&9312)){ie=g;c[(ie&p)>>2]=v;c[(ie&p)+4>>2]=w;b[(u&o)>>1]=4;u=0;ie=19;break e}else{Zg(g,v,w);u=0;ie=19;break e}}while(0);if(!(g&9312))b[(w&o)>>1]=1;else vg(v);t=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;u=0;ie=19;break}case 130:{g=m;m=r;u=L;ie=966;break d}case 131:{g=m;m=r;u=L;r=t;ie=993;break d}case 132:{g=m;m=r;u=L;r=t;ie=1009;break d}case 134:{g=m;m=r;J=L;r=t;ie=1010;break d}case 135:{g=m;m=r;u=L;r=t;ie=1015;break d}case 136:{g=m;m=r;r=t;ie=1022;break d}case 137:{g=m;m=r;u=L;r=t;ie=1028;break d}case 138:{g=m;m=r;u=L;r=t;ie=1030;break d}case 139:{g=m;m=r;J=L;r=t;ie=1032;break d}case 140:{g=m;m=r;u=L;r=t;ie=1034;break d}case 141:{g=m;m=r;u=L;r=t;ie=1036;break d}case 10:{V=a[(s+(t*20|0)&n)+3>>0]|0;g=V&255;u=c[(Bb&p)>>2]|0;if(V<<24>>24){v=0;w=z+((c[(s+(t*20|0)&p)+8>>2]|0)*40|0)|0;while(1){c[(u+(v<<2)&p)>>2]=w;v=v+1|0;if((v|0)>=(g|0))break;else w=w+40|0}}V=c[(s+(t*20|0)&p)+16>>2]|0;c[(Ga&p)>>2]=V;U=c[(s+(t*20|0)&p)+12>>2]|0;c[(Ha&p)>>2]=z+(U*40|0);U=z+(U*40|0)+12|0;c[(U&p)>>2]=(c[(U&p)>>2]|0)+1;b[(Ia&o)>>1]=1;c[(Ja&p)>>2]=le;c[(Ka&p)>>2]=0;c[(Vc&p)>>2]=Md;c[(La&p)>>2]=0;c[(Ma&p)>>2]=f;c[(Na&p)>>2]=t;a[(Oa&n)>>0]=0;mc[c[(V&p)+16>>2]&63](Vc,g,u);if(!(c[(La&p)>>2]|0))u=0;else{c[(ke&p)>>2]=Sg(Md,1)|0;dh(je,le,10344,ke);u=c[(La&p)>>2]|0}do if((a[(Oa&n)>>0]|0)!=0?(Mc=c[(s+((t+-1|0)*20|0)&p)+4>>2]|0,(Mc|0)!=0):0){g=z+(Mc*40|0)|0;v=z+(Mc*40|0)+8|0;if(!(b[(v&o)>>1]&9312)){V=g;c[(V&p)>>2]=1;c[(V&p)+4>>2]=0;b[(v&o)>>1]=4;break}else{Zg(g,1,0);break}}while(0);if((b[(Ia&o)>>1]&9312)==0&(c[(Ka&p)>>2]|0)==0){C=L;T=t}else{Qg(Md);C=L;T=t}break}case 11:{c[(Rc&p)>>2]=0;c[(Pa&p)>>2]=-1;c[(Qa&p)>>2]=-1;g=Wh(le,c[(s+(t*20|0)&p)+4>>2]|0,c[(s+(t*20|0)&p)+8>>2]|0,Qa,Pa)|0;if((g|0)==5){c[(Rc&p)>>2]=1;g=0}v=0;w=z+((c[(s+(t*20|0)&p)+12>>2]|0)*40|0)|0;while(1){C=c[(Rc+(v<<2)&p)>>2]|0;A=((C|0)<0)<<31>>31;u=w+8|0;if(!(b[(u&o)>>1]&9312)){V=w;c[(V&p)>>2]=C;c[(V&p)+4>>2]=A;b[(u&o)>>1]=4}else Zg(w,C,A);v=v+1|0;if((v|0)==3){C=L;T=t;u=g;break}else w=w+40|0}break}case 142:{C=c[(s+(t*20|0)&p)+4>>2]|0;v=z+(C*40|0)|0;u=Yk(v,c[(s+(t*20|0)&p)+16>>2]|0)|0;if(u){c[(ke&p)>>2]=Sg(v,1)|0;dh(je,le,10344,ke)}Yl(v,xb)|0;w=e[(z+(C*40|0)&o)+8>>1]|0;if(w&18){g=c[(z+(C*40|0)&p)+12>>2]|0;if(w&16384)g=(c[(v&p)>>2]|0)+g|0;if((g|0)>(c[((c[(z+(C*40|0)&p)+32>>2]|0)&p)+88>>2]|0)){g=m;m=r;u=x;ie=1316;break c}else{C=L;T=t}}else{C=L;T=t}break}case 12:{g=c[(s+(t*20|0)&p)+12>>2]|0;L=c[((c[(Xd&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<4)&p)+4>>2]|0;I=c[(c[(L&p)+4>>2]&p)>>2]|0;J=a[(I&n)+5>>0]|0;H=J&255;g=(g|0)==-1?H:g;do if((d[(I&n)+16>>0]|0)>2)g=H;else if((c[(c[(I&p)+64>>2]&p)>>2]|0)!=0?(V=I+72|0,U=c[(V&p)+4>>2]|0,(U|0)>0|(U|0)==0&(c[(V&p)>>2]|0)>>>0>0):0){g=H;break}while(0);if(!(a[(I&n)+15>>0]|0))A=c[(I&p)+168>>2]|0;else A=10360;K=(g|0)==5;if(K)if(A){C=A;while(1)if(!(a[(C&n)>>0]|0))break;else C=C+1|0;if(C-A&1073741823){C=c[(c[(I&p)+60>>2]&p)>>2]|0;if(!(a[(I&n)+4>>0]|0))if((c[(C&p)>>2]|0)>1?!((c[(C&p)+52>>2]|0)==0|(g|0)==(H|0)):0)ie=1077;else{g=H;u=0}else ie=1076}else{g=H;u=0}}else{g=H;u=0}else ie=1076;if((ie|0)==1076){ie=0;if((g|0)==(H|0)){g=H;u=0}else ie=1077}do if((ie|0)==1077){ie=0;C=J<<24>>24==5;if(C|K){if(!(a[(ee&n)>>0]|0)){g=m;s=K;m=r;u=x;ie=1080;break c}if((c[(Zb&p)>>2]|0)>1){g=m;s=K;m=r;u=x;ie=1080;break c}if(!C){if(J<<24>>24==4)sn(I,2)|0}else{J=I+208|0;if(!(c[(J&p)>>2]|0)){c[(_c&p)>>2]=0;u=fl(I,1)|0;if(u)break;u=c[(I&p)>>2]|0;u=pc[c[(u&p)+32>>2]&31](u,c[(I&p)+212>>2]|0,0,_c)|0;if((u|0)==0&(c[(_c&p)>>2]|0)!=0)u=pn(I)|0;if(u)break;if(c[(J&p)>>2]|0)ie=1088}else ie=1088;if((ie|0)==1088){ie=0;u=qn(I)|0;if(u)break;u=rn(c[(J&p)>>2]|0,d[(I&n)+9>>0]|0,c[(I&p)+152>>2]|0,c[(I&p)+200>>2]|0)|0;c[(J&p)>>2]=0;if(u)break}sn(I,g)|0}u=Fg(L,K?2:1)|0}else u=0}while(0);g=sn(I,(u|0)==0?g:H)|0;C=c[(s+(t*20|0)&p)+8>>2]|0;J=z+(C*40|0)|0;b[(z+(C*40|0)&o)+8>>1]=2562;if((g|0)==6){c[(z+(C*40|0)&p)+16>>2]=0;g=0}else{v=c[(g<<2&p)+32216>>2]|0;c[(z+(C*40|0)&p)+16>>2]=v;g=v;while(1)if(!(a[(g&n)>>0]|0))break;else g=g+1|0;g=g-v&1073741823}c[(z+(C*40|0)&p)+12>>2]=g;a[(z+(C*40|0)&n)+10>>0]=1;Yl(J,xb)|0;C=J;T=t;break}case 13:{if(!(a[(ee&n)>>0]|0)){g=m;m=r;u=x;ie=1101;break c}if((c[(Ra&p)>>2]|0)>1){g=m;m=r;u=x;ie=1103;break c}S=c[(Tb&p)>>2]|0;N=c[(vb&p)>>2]|0;w=c[(wb&p)>>2]|0;v=c[(Sa&p)>>2]|0;c[(Tb&p)>>2]=S&-2762753|2107392;c[(Sa&p)>>2]=0;g=c[((c[(Xd&p)>>2]|0)&p)+4>>2]|0;P=g+4|0;I=a[((c[(c[(P&p)>>2]&p)>>2]|0)&n)+15>>0]|0;V=c[(Ub&p)>>2]|0;u=tn(le,je,(a[(_b&n)>>0]|0)==2?42432:42464)|0;J=c[(Ub&p)>>2]|0;if((J|0)>(V|0))M=(c[(Xd&p)>>2]|0)+(J+-1<<4)|0;else M=0;i:do if(!u){O=c[((c[(Xd&p)>>2]|0)+(J+-1<<4)&p)+4>>2]|0;un(O)|0;T=c[(P&p)>>2]|0;c[(T&p)+4>>2]=c[(g&p)>>2];T=(c[(T&p)+32>>2]|0)-(c[(T&p)+36>>2]|0)|0;u=tn(le,je,42488)|0;if(!u){u=tn(le,je,42528)|0;if(!u){u=yg(g,2)|0;if(!u){J=c[(P&p)>>2]|0;if((a[((c[(J&p)>>2]|0)&n)+5>>0]|0)==5)c[(Ta&p)>>2]=0;if(!(xg(O,c[(J&p)+32>>2]|0,T,0)|0)){if(I<<24>>24==0?(xg(O,c[(Ta&p)>>2]|0,T,0)|0)!=0:0){u=7;break}if(a[(ge&n)>>0]|0){u=7;break}J=a[(Ua&n)>>0]|0;do if(J<<24>>24>-1)J=J<<24>>24;else{J=c[(P&p)>>2]|0;c[(J&p)+4>>2]=c[(g&p)>>2];if(!(a[(J&n)+17>>0]|0)){J=0;break}J=(a[(J&n)+18>>0]|0)==0?1:2}while(0);vn(O,J)|0;u=wn(le,je,42536)|0;if(u)break;u=wn(le,je,42688)|0;if(u)break;u=wn(le,je,42792)|0;if(u)break;u=wn(le,je,42912)|0;if(u)break;u=wn(le,je,43112)|0;if(u)break;u=wn(le,je,43232)|0;if(u)break;u=tn(le,je,43392)|0;if(!u)J=0;else break;do{u=d[(J&n)+43576>>0]|0;wm(g,u,ad);u=Dg(O,u,(d[((J|1)&n)+43576>>0]|0)+(c[(ad&p)>>2]|0)|0)|0;J=J+2|0;if(u)break i}while((J|0)<10);H=c[(P&p)>>2]|0;c[(H&p)+4>>2]=c[(g&p)>>2];J=c[(O&p)>>2]|0;K=O+4|0;I=c[(K&p)>>2]|0;c[(I&p)+4>>2]=J;H=c[((c[(H&p)>>2]|0)&p)+60>>2]|0;F=c[(H&p)>>2]|0;if(F){V=c[(I&p)+32>>2]|0;V=sw(c[(I&p)+44>>2]|0,0,V|0,((V|0)<0)<<31>>31|0)|0;u=id;c[(u&p)>>2]=V;c[(u&p)+4>>2]=G;u=ac[c[(F&p)+40>>2]&63](H,11,id)|0;u=(u|0)==12?0:u;if(u)break;J=c[(O&p)>>2]|0}U=Tc+0|0;V=U+48|0;do{c[(U&p)>>2]=0;U=U+4|0}while((U|0)<(V|0));c[(Va&p)>>2]=J;c[(Wa&p)>>2]=O;c[(Xa&p)>>2]=g;c[(Ya&p)>>2]=1;gd(Tc,2147483647)|0;u=hd(Tc)|0;if(u){C=c[(c[((c[(Xa&p)>>2]|0)&p)+4>>2]&p)>>2]|0;if(a[(C&n)+15>>0]|0)break;if(a[(C&n)+12>>0]|0)break;xn(C);break}u=(c[(P&p)>>2]|0)+22|0;b[(u&o)>>1]=e[(u&o)>>1]&65533;u=un(O)|0;if(u)break;J=c[(K&p)>>2]|0;c[(J&p)+4>>2]=c[(O&p)>>2];if(!(a[(J&n)+17>>0]|0))E=0;else E=(a[(J&n)+18>>0]|0)==0?1:2;vn(g,E)|0;u=xg(g,c[((c[(K&p)>>2]|0)&p)+32>>2]|0,T,1)|0}else u=7}}}}while(0);c[(Tb&p)>>2]=S;c[(vb&p)>>2]=N;c[(wb&p)>>2]=w;c[(Sa&p)>>2]=v;xg(g,-1,-1,1)|0;a[(ee&n)>>0]=1;if(M){V=M+4|0;Ml(c[(V&p)>>2]|0);c[(V&p)>>2]=0;c[(M&p)+12>>2]=0}Eg(le);C=L;T=t;break}case 143:{V=c[((c[(Xd&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<4)&p)+4>>2]|0;I=c[(V&p)+4>>2]|0;c[(I&p)+4>>2]=c[(V&p)>>2];if(!(a[(I&n)+17>>0]|0)){g=m;m=r;u=L;ie=1157;break d}E=I+44|0;H=c[(E&p)>>2]|0;A=I+12|0;C=c[((c[(A&p)>>2]|0)&p)+56>>2]|0;C=d[(C&n)+37>>0]<<16|d[(C&n)+36>>0]<<24|d[(C&n)+38>>0]<<8|d[(C&n)+39>>0];F=El(I,H,C)|0;if(H>>>0>>0){g=m;m=r;u=x;ie=1145;break c}if(!C){g=m;m=r;u=L;ie=1157;break d}J=I+8|0;g=c[(J&p)>>2]|0;do if(g){C=g;do{if(C){ie=1150;break}C=c[2]|0}while((C|0)!=0);if((ie|0)==1150){ie=0;u=Fl(C,0,0)|0;if(u)break;g=c[(J&p)>>2]|0}if(g){do{V=g+72|0;a[(V&n)>>0]=d[(V&n)>>0]&251;g=c[(g&p)+8>>2]|0}while((g|0)!=0);ie=1154}else ie=1154}else ie=1154;while(0);if((ie|0)==1154){ie=0;u=Gl(I,F,H,0)|0;if(!u){u=Gg(c[((c[(A&p)>>2]|0)&p)+68>>2]|0)|0;V=c[((c[(A&p)>>2]|0)&p)+56>>2]|0;U=c[(E&p)>>2]|0;a[(V&n)+28>>0]=U>>>24;a[(V&n)+29>>0]=U>>>16;a[(V&n)+30>>0]=U>>>8;a[(V&n)+31>>0]=U}}if((u|0)==101){g=m;m=r;u=L;ie=1157;break d}else{C=L;T=t}break}case 145:{g=c[(s+(t*20|0)&p)+12>>2]|0;if((g&255|0)==0?(c[(Tb&p)>>2]&16384|0)!=0:0){g=m;m=r;S=z;T=s;U=W;V=X;u=L;r=t;break d}C=c[((c[(Xd&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<4)&p)+4>>2]|0;A=c[(s+(t*20|0)&p)+8>>2]|0;if(!(a[(C&n)+9>>0]|0)){g=m;m=r;S=z;T=s;U=W;V=X;u=L;r=t;break d}v=g+1&255;w=C+4|0;c[((c[(w&p)>>2]|0)&p)+4>>2]=c[(C&p)>>2];u=bl(C,A,v)|0;if(!u){g=m;m=r;u=L;r=t;ie=1166;break d}if((u&255|0)!=6){g=m;m=r;s=u;u=x;ie=1309;break c}c[(ke&p)>>2]=c[(s+(t*20|0)&p)+16>>2];dh(je,le,42224,ke);C=L;T=t;break}case 144:{g=m;m=r;u=L;r=t;ie=1158;break d}case 146:{J=c[(s+(t*20|0)&p)+16>>2]|0;v=c[(Za&p)>>2]|0;u=(v|0)>0;if(u?(c[(_a&p)>>2]|0)==0:0){u=6;ie=1188}else ie=1179;j:do if((ie|0)==1179){ie=0;if(!J){g=m;m=r;S=z;T=s;U=W;V=X;u=L;r=t;break d}g=J+8|0;w=(c[(c[(g&p)>>2]&p)>>2]|0)+56|0;if(c[(w&p)>>2]|0){if(u){C=c[(_a&p)>>2]|0;A=0;do{if((c[(C+(A<<2)&p)>>2]|0)==(J|0)){u=0;ie=1188;break j}A=A+1|0}while((A|0)<(v|0))}u=yn(le)|0;if(!u){u=lc[c[(w&p)>>2]&127](c[(g&p)>>2]|0)|0;if(!u){u=c[(Za&p)>>2]|0;c[(Za&p)>>2]=u+1;c[((c[(_a&p)>>2]|0)+(u<<2)&p)>>2]=J;u=J+12|0;c[(u&p)>>2]=(c[(u&p)>>2]|0)+1;u=0}}else ie=1188}else u=0}while(0);if((ie|0)==1188){ie=0;if(!J){C=L;T=t;break e}g=J+8|0}Mm(f,c[(g&p)>>2]|0);C=L;T=t;break}case 147:{U=Kd+0|0;V=U+40|0;do{c[(U&p)>>2]=0;U=U+4|0}while((U|0)<(V|0));c[($a&p)>>2]=le;g=_g(Kd,z+((c[(s+(t*20|0)&p)+8>>2]|0)*40|0)|0)|0;u=Sg(Kd,1)|0;k:do if(u){v=_h(le,u,c[((c[(Xd&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<4)&p)>>2]|0)|0;g=c[(c[(v&p)+56>>2]&p)>>2]|0;u=bn(cb,g,Xc)|0;if((u|0)!=0?(Oc=c[(u&p)+8>>2]|0,(Oc|0)!=0):0){g=zn(le,v,Oc,c[((c[(Oc&p)>>2]|0)&p)+4>>2]|0,je)|0;if(g)break;u=v+60|0;g=c[(u&p)>>2]|0;if(!g){g=0;break}while(1){if((c[(g&p)>>2]|0)==(le|0))break;g=c[(g&p)+24>>2]|0;if(!g){g=0;break k}}g=yn(le)|0;if(g)break;g=c[(u&p)>>2]|0;l:do if(!g)g=0;else while(1){if((c[(g&p)>>2]|0)==(le|0))break l;g=c[(g&p)+24>>2]|0;if(!g){g=0;break}}while(0);V=c[(Za&p)>>2]|0;c[(Za&p)>>2]=V+1;c[((c[(_a&p)>>2]|0)+(V<<2)&p)>>2]=g;g=g+12|0;c[(g&p)>>2]=(c[(g&p)>>2]|0)+1;g=0;break}c[(ke&p)>>2]=g;c[(je&p)>>2]=uh(le,28320,ke)|0;g=1}while(0);if((b[(ab&o)>>1]&9312)==0&(c[(bb&p)>>2]|0)==0){C=L;T=t;u=g}else{Qg(Kd);C=L;T=t;u=g}break}case 148:{c[(ha&p)>>2]=(c[(ha&p)>>2]|0)+1;g=_h(le,c[(s+(t*20|0)&p)+16>>2]|0,c[((c[(Xd&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<4)&p)>>2]|0)|0;m:do if((g|0)!=0?(Pc=g+60|0,Qc=c[(Pc&p)>>2]|0,(Qc|0)!=0):0){u=Qc;do{if((c[((c[(u&p)+8>>2]|0)&p)+4>>2]|0)>0){u=6;break m}u=c[(u&p)+24>>2]|0}while((u|0)!=0);g=Ok(le,g)|0;v=g+8|0;u=lc[c[((c[(c[(g&p)+4>>2]&p)>>2]|0)&p)+20>>2]&127](c[(v&p)>>2]|0)|0;if(!u){c[(v&p)>>2]=0;c[(Pc&p)>>2]=0;An(g);u=0}}else u=0;while(0);c[(ha&p)>>2]=(c[(ha&p)>>2]|0)+-1;C=L;T=t;break}case 149:{g=m;m=r;u=L;r=t;ie=1213;break d}case 150:{g=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;C=c[(s+(t*20|0)&p)+12>>2]|0;A=z+(C*40|0)|0;if(a[(g&n)+25>>0]|0){g=m;m=r;u=L;r=t;ie=1226;break d}V=g+32|0;u=c[(c[(V&p)>>2]&p)>>2]|0;U=c[(u&p)>>2]|0;c[(Id&p)>>2]=0;c[(Id&p)+4>>2]=0;c[(Id&p)+8>>2]=0;c[(Id&p)+12>>2]=0;c[(Id&p)+16>>2]=0;c[(Id&p)+20>>2]=0;c[(Id&p)+24>>2]=0;c[(Id&p)>>2]=A;v=z+(C*40|0)+8|0;b[(v&o)>>1]=e[(v&o)>>1]&48640|1;V=ac[c[(U&p)+44>>2]&63](c[(V&p)>>2]|0,Id,c[(s+(t*20|0)&p)+8>>2]|0)|0;Mm(f,u);u=c[(db&p)>>2]|0;u=(u|0)==0?V:u;Yl(A,xb)|0;v=e[(v&o)>>1]|0;if(v&18){g=c[(z+(C*40|0)&p)+12>>2]|0;if(v&16384)g=(c[(A&p)>>2]|0)+g|0;if((g|0)>(c[((c[(z+(C*40|0)&p)+32>>2]|0)&p)+88>>2]|0)){g=m;m=r;u=x;ie=1316;break c}else{C=L;T=t}}else{C=L;T=t}break}case 14:{A=c[(s+(t*20|0)&p)+12>>2]|0;C=A+1|0;F=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;J=c[(F&p)+32>>2]|0;I=c[(J&p)>>2]|0;H=c[(I&p)>>2]|0;E=c[(z+(C*40|0)&p)>>2]|0;A=c[(z+(A*40|0)&p)>>2]|0;g=c[(Bb&p)>>2]|0;if((E|0)>0){u=0;do{V=u;u=u+1|0;c[(g+(V<<2)&p)>>2]=z+((u+C|0)*40|0)}while((u|0)!=(E|0))}u=tc[c[(H&p)+32>>2]&31](J,A,c[(s+(t*20|0)&p)+16>>2]|0,E,g)|0;Mm(f,I);if((u|0)==0?(lc[c[(H&p)+40>>2]&127](J)|0)!=0:0)t=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;a[(F&n)+25>>0]=0;C=L;T=t;break}case 151:{g=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;if(a[(g&n)+25>>0]|0){g=m;m=r;S=z;T=s;U=W;V=X;u=L;r=t;break d}g=g+32|0;v=c[(g&p)>>2]|0;V=c[(v&p)>>2]|0;u=c[(V&p)>>2]|0;v=lc[c[(u&p)+36>>2]&127](v)|0;Mm(f,V);if((v|0)==0?(lc[c[(u&p)+40>>2]&127](c[(g&p)>>2]|0)|0)!=0:0){u=0;ie=19;break e}t=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;u=v;ie=19;break}case 15:{F=s+(t*20|0)+16|0;v=c[((c[(F&p)>>2]|0)&p)+8>>2]|0;if(!v){g=m;m=r;s=6;u=x;ie=1309;break c}g=c[(v&p)>>2]|0;if(!g){g=m;m=r;s=6;u=x;ie=1309;break c}I=c[(s+(t*20|0)&p)+8>>2]|0;E=g+52|0;C=c[(E&p)>>2]|0;if(!C){g=m;m=r;S=z;T=s;U=W;V=X;u=L;r=t;break d}H=a[(eb&n)>>0]|0;J=c[(Bb&p)>>2]|0;if((I|0)>0){C=0;A=z+((c[(s+(t*20|0)&p)+12>>2]|0)*40|0)|0;while(1){c[(J+(C<<2)&p)>>2]=A;C=C+1|0;if((C|0)==(I|0))break;else A=A+40|0}C=c[(E&p)>>2]|0}A=s+(t*20|0)+3|0;a[(eb&n)>>0]=a[(A&n)>>0]|0;u=pc[C&31](v,I,J,Hd)|0;a[(eb&n)>>0]=H;Mm(f,v);if(!u){if(c[(s+(t*20|0)&p)+4>>2]|0){l=Hd;r=c[(l&p)>>2]|0;l=c[(l&p)+4>>2]|0;V=ne;c[(V&p)>>2]=r;c[(V&p)+4>>2]=l}}else if((u&255|0)==19?(a[((c[(F&p)>>2]|0)&n)+16>>0]|0)!=0:0){g=a[(A&n)>>0]|0;if(g<<24>>24==5)g=2;else if(g<<24>>24==4){g=m;m=r;S=z;T=s;U=W;V=X;u=L;r=t;break d}a[(fe&n)>>0]=g;C=L;T=t;break e}c[(ub&p)>>2]=(c[(ub&p)>>2]|0)+1;C=L;T=t;break}case 152:{g=c[((c[(s+(t*20|0)&p)+16>>2]|0)&p)+8>>2]|0;u=c[(s+(t*20|0)&p)+4>>2]|0;v=z+(u*40|0)|0;if(((b[(z+(u*40|0)&o)+8>>1]&2)!=0?(a[(z+(u*40|0)&n)+10>>0]|0)!=1:0)?(Wd=Bn(v,1)|0,(Wd|0)!=0):0){g=m;m=r;s=Wd;u=x;ie=1309;break c}u=rc[c[((c[(g&p)>>2]|0)&p)+76>>2]&127](g,c[(z+(u*40|0)&p)+16>>2]|0)|0;Mm(f,g);b[(Yd&o)>>1]=b[(Yd&o)>>1]&-9;C=L;T=t;break}case 153:{g=m;m=r;u=L;r=t;ie=1257;break d}case 155:{g=m;m=r;ie=1264;break d}case 154:{g=m;m=r;J=L;r=t;ie=1258;break d}default:{g=m;m=r;S=z;T=s;U=W;V=X;u=L;r=t;break d}}while(0);n:do if((ie|0)==57){ie=0;w=L+8|0;b[(w&o)>>1]=2562;c[(L&p)+16>>2]=v;c[(L&p)+12>>2]=g;a[(L&n)+10>>0]=Jc;if((a[(s+(t*20|0)&n)+3>>0]|0)!=0?(V=z+((c[(s+(t*20|0)&p)+12>>2]|0)*40|0)|0,!((c[(V&p)>>2]|0)==0&(c[(V&p)+4>>2]|0)==0)):0){b[(w&o)>>1]=2576;C=L;T=t}else{C=L;T=t}}else if((ie|0)==536){if(b[(Yd&o)>>1]&8){g=m;m=r;s=516;u=x;ie=1309;break c}C=c[(s+(t*20|0)&p)+8>>2]|0;I=c[(s+(t*20|0)&p)+12>>2]|0;g=c[(Xd&p)>>2]|0;H=c[(g+(I<<4)&p)+4>>2]|0;if(J<<24>>24==55){g=a[((c[(g+(I<<4)&p)+12>>2]|0)&n)+76>>0]|0;if((g&255)<(d[(Mb&n)>>0]|0)){a[(Mb&n)>>0]=g;J=1}else J=1}else J=0;v=s+(t*20|0)+3|0;if(a[(v&n)>>0]&4){V=z+(C*40|0)|0;g=Vg(V)|0;c[(V&p)>>2]=g;c[(V&p)+4>>2]=G;V=z+(C*40|0)+8|0;b[(V&o)>>1]=e[(V&o)>>1]&48640|4;if((g|0)<2){g=m;m=r;s=x;ie=542;break c}else E=g}else E=C;u=s+(t*20|0)+1|0;C=a[(u&n)>>0]|0;if(C<<24>>24==-6){A=c[(s+(t*20|0)&p)+16>>2]|0;C=(e[(A&o)+8>>1]|0)+(e[(A&o)+6>>1]|0)|0}else if(C<<24>>24==-14){C=c[(s+(t*20|0)&p)+16>>2]|0;A=0}else{C=0;A=0}g=xm(f,c[(s+(t*20|0)&p)+4>>2]|0,C,I,1)|0;if(!g){y=ge;z=je;g=m;m=x;ie=1317;break a}a[(g&n)+25>>0]=1;V=g+27|0;a[(V&n)>>0]=a[(V&n)>>0]|8;c[(g&p)+28>>2]=E;ie=ym(H,E,J,A,c[(g&p)>>2]|0)|0;c[(g&p)+8>>2]=A;a[(V&n)>>0]=((a[(u&n)>>0]|0)!=-6&1)<<2&255|a[(V&n)>>0]&-5;u=ie;ie=548}else if((ie|0)==715){ie=0;M=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;V=c[(M&p)+56>>2]|0;do if(!V){u=c[(M&p)>>2]|0;g=qm(u)|0;if(!g)if(!(a[(u&n)+73>>0]|0)){v=1;g=0}else{v=0;g=Vm(u)|0}else v=1;a[(M&n)+26>>0]=0;c[(M&p)+60>>2]=0;a[(M&n)+25>>0]=v;if(!v){C=L;T=t;u=g;break n}}else{do if(!(a[(V&n)+56>>0]|0)){g=V+36|0;if(!(c[(g&p)>>2]|0)){g=0;ie=756}else{g=Nm(V+64|0,g)|0;ie=755}}else{g=Om(V)|0;if(!g){U=V+59|0;o:do if(!(a[(U&n)>>0]|0)){u=0;g=0}else{w=0;v=0;p:while(1){T=V+(w<<6)+64|0;c[(ke&p)>>2]=0;S=V+(w<<6)+92|0;C=c[(S&p)>>2]|0;J=((C|0)<0)<<31>>31;do if((C|0)>16){I=16;H=0;E=0;while(1){I=iw(I|0,H|0,4)|0;H=G;F=E+1|0;if(!((H|0)<(J|0)|(H|0)==(J|0)&I>>>0>>0)){H=E;break}else E=F}P=Sd;c[(P&p)>>2]=0;c[(P&p)+4>>2]=0;if((C|0)<17){ie=726;break}u=Qm(16)|0;c[(ke&p)>>2]=u;J=(u|0)==0;I=c[(S&p)>>2]|0;if(!((I|0)>0&(J^1))){g=J?7:0;break}N=(H|0)>0;P=0;O=0;do{c[(qd&p)>>2]=0;g=I-P|0;g=Pm(T,(g|0)<16?g:16,Sd,qd)|0;if(g){ie=747;break p}g=Rm(T,c[(qd&p)>>2]|0,pd)|0;do if(N){I=1;J=1;do{J=J<<4;I=I+1|0}while((I|0)!=(F|0));if(!g){H=1;I=u}else{J=c[(pd&p)>>2]|0;ie=743;break}while(1){K=(c[(I&p)+12>>2]|0)+((((O|0)/(J|0)|0|0)%16|0)*56|0)+48|0;I=c[(K&p)>>2]|0;if(!I){I=Qm(16)|0;if(!I){g=7;ie=738;break}g=Rm(T,I,K)|0;if(g){ie=738;break}I=c[(K&p)>>2]|0}I=c[(I&p)+4>>2]|0;H=H+1|0;if((H|0)>=(F|0)){ie=740;break}else J=(J|0)/16|0}if((ie|0)==738){J=c[(pd&p)>>2]|0;ie=743;break}else if((ie|0)==740){J=c[(pd&p)>>2]|0;ie=742;break}}else{J=c[(pd&p)>>2]|0;if(!g){I=u;ie=742}else ie=743}while(0);if((ie|0)==742){ie=0;c[((c[(I&p)+12>>2]|0)+(((O|0)%16|0)*56|0)&p)+48>>2]=J;g=0}else if((ie|0)==743){ie=0;Sm(J)}O=O+1|0;P=P+16|0;I=c[(S&p)>>2]|0}while((P|0)<(I|0)&(g|0)==0)}else{ie=Sd;c[(ie&p)>>2]=0;c[(ie&p)+4>>2]=0;ie=726}while(0);if((ie|0)==726){ie=0;g=Pm(T,C,Sd,ke)|0;u=c[(ke&p)>>2]|0}w=w+1|0;if(g){ie=746;break}if((w|0)>=(d[(U&n)>>0]|0)){g=0;break o}else v=u}if((ie|0)==746)Tm(u);else if((ie|0)==747)Tm(u);Tm(v);u=0}while(0);if(!g){g=Um(V+64|0,u)|0;c[(V&p)+20>>2]=u;if(!g){g=0;ie=755;break}else u=0}Tm(u);ie=755}else ie=756}while(0);if((ie|0)==755){ie=0;a[(M&n)+25>>0]=0;C=L;T=t;u=g;break n}else if((ie|0)==756){ie=0;a[(M&n)+25>>0]=1;break}}while(0);C=L;T=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;u=g}else if((ie|0)==765){u=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;c[(Fd&p)>>2]=c[(s+(t*20|0)&p)+12>>2];g=u;u=rc[c[(s+(t*20|0)&p)+16>>2]&127](c[(u&p)>>2]|0,Fd)|0;ie=766}while(0);do if((ie|0)==548){ie=0;a[((c[(g&p)>>2]|0)&n)+74>>0]=d[(v&n)>>0]&3;C=L;T=t}else if((ie|0)==766){c[(g&p)+60>>2]=0;g=g+25|0;if(!(c[(Fd&p)>>2]|0)){a[(g&n)>>0]=0;ie=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;t=f+(d[(s+(t*20|0)&n)+3>>0]<<2)+108|0;c[(t&p)>>2]=(c[(t&p)>>2]|0)+1;t=ie;ie=19;break}else{a[(g&n)>>0]=1;ie=19;break}}while(0);if((ie|0)==19){ie=0;if(c[(Cc&p)>>2]|0){u=je;g=m;m=x;break b}g=c[(be&p)>>2]|0;if(!((g|0)==0|m>>>0>>0)){y=c[(yc&p)>>2]|0;if(!(lc[g&127](c[(Zd&p)>>2]|0)|0)){y=y+m-((m>>>0)%(y>>>0)|0)|0;C=L;T=t}else{g=m;s=9;m=x;ie=1311;break a}}else{C=L;T=t}}t=T+1|0;if(!u){g=m;u=C}else{g=m;s=u;m=x;ie=1311;break a}}q:switch(ie|0){case 22:{ie=0;S=c[(s+(t*20|0)&p)+4>>2]|0;b[(z+(S*40|0)&o)+8>>1]=4;S=z+(S*40|0)|0;c[(S&p)>>2]=t;c[(S&p)+4>>2]=((t|0)<0)<<31>>31;S=z;T=s;U=W;V=X;r=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;break}case 23:{ie=0;S=c[(s+(t*20|0)&p)+4>>2]|0;r=c[(z+(S*40|0)&p)>>2]|0;b[(z+(S*40|0)&o)+8>>1]=128;S=z;T=s;U=W;V=X;break}case 24:{ie=0;r=c[(s+(t*20|0)&p)+4>>2]|0;u=z+(r*40|0)|0;T=(c[(s+(t*20|0)&p)+12>>2]|0)+-1|0;S=u;c[(S&p)>>2]=T;c[(S&p)+4>>2]=((T|0)<0)<<31>>31;b[(z+(r*40|0)&o)+8>>1]=4;r=c[(s+(t*20|0)&p)+8>>2]|0;S=z;T=s;U=W;V=X;r=(r|0)==0?t:r+-1|0;break}case 25:{ie=0;S=c[(s+(t*20|0)&p)+4>>2]|0;r=(c[(s+((c[(z+(S*40|0)&p)>>2]|0)*20|0)&p)+8>>2]|0)+-1|0;b[(z+(S*40|0)&o)+8>>1]=128;S=z;T=s;U=W;V=X;break}case 26:{ie=0;S=c[(s+(t*20|0)&p)+4>>2]|0;b[(z+(S*40|0)&o)+8>>1]=4;S=z+(S*40|0)|0;r=c[(S&p)>>2]|0;c[(S&p)>>2]=t;c[(S&p)+4>>2]=((t|0)<0)<<31>>31;S=z;T=s;U=W;V=X;break}case 27:{ie=0;if(!(b[(z+((c[(s+(r*20|0)&p)+12>>2]|0)*40|0)&o)+8>>1]&1)){S=z;T=s;U=W;V=X}else ie=28;break}case 44:{ie=0;T=c[(s+(r*20|0)&p)+4>>2]|0;S=u;c[(S&p)>>2]=T;c[(S&p)+4>>2]=((T|0)<0)<<31>>31;S=z;T=s;U=W;V=X;break}case 45:{ie=0;U=c[(s+(r*20|0)&p)+16>>2]|0;T=c[(U&p)+4>>2]|0;S=u;c[(S&p)>>2]=c[(U&p)>>2];c[(S&p)+4>>2]=T;S=z;T=s;U=W;V=X;break}case 46:{ie=0;b[(u&o)+8>>1]=8;h[(u&q)>>3]=+h[(c[(s+(r*20|0)&p)+16>>2]&q)>>3];S=z;T=s;U=W;V=X;break}case 60:{ie=0;J=(c[(s+(r*20|0)&p)+12>>2]|0)-(c[(s+(r*20|0)&p)+8>>2]|0)|0;t=(c[(s+(r*20|0)&p)+4>>2]|0)!=0?257:1;b[(u&o)+8>>1]=t;if((J|0)>0){w=J;A=u;do{v=A+48|0;A=A+40|0;if(!(b[(v&o)>>1]&9312))b[(v&o)>>1]=1;else vg(A);b[(v&o)>>1]=t;w=w+-1|0}while((w|0)>0);S=z;T=s;U=W;V=X;u=u+(J*40|0)|0}else{S=z;T=s;U=W;V=X}break}case 65:{ie=0;u=c[(s+(r*20|0)&p)+4>>2]|0;S=z+(u*40|0)+8|0;b[(S&o)>>1]=e[(S&o)>>1]&65406|1;S=z;T=s;U=W;V=X;u=z+(u*40|0)|0;break}case 66:{ie=0;Xg(u,c[(s+(r*20|0)&p)+16>>2]|0,c[(s+(r*20|0)&p)+4>>2]|0,0,0)|0;a[(u&n)+10>>0]=Jc;S=z;T=s;U=W;V=X;break}case 67:{ie=0;C=(c[(s+(r*20|0)&p)+4>>2]|0)+-1|0;A=c[(Ab&p)>>2]|0;w=A+(C*40|0)|0;v=e[(A+(C*40|0)&o)+8>>1]|0;if(v&18){t=c[(A+(C*40|0)&p)+12>>2]|0;if(v&16384)t=(c[(w&p)>>2]|0)+t|0;if((t|0)>(c[((c[(A+(C*40|0)&p)+32>>2]|0)&p)+88>>2]|0)){t=r;u=x;ie=1316;break c}}Zl(u,w,2048);S=z;T=s;U=W;V=X;break}case 72:{ie=0;t=c[(s+(r*20|0)&p)+12>>2]|0;v=c[(s+(r*20|0)&p)+8>>2]|0;J=t+v|0;u=z+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)|0;v=z+(v*40|0)|0;while(1){_l(v,u);t=t+-1|0;if(!t)break;else{u=u+40|0;v=v+40|0}}S=z;T=s;U=W;V=X;u=z+(J*40|0)|0;break}case 74:{ie=0;r=c[(s+(t*20|0)&p)+12>>2]|0;u=z+((c[(s+(t*20|0)&p)+4>>2]|0)*40|0)|0;J=z+((c[(s+(t*20|0)&p)+8>>2]|0)*40|0)|0;while(1){Zl(J,u,4096);if((b[(J&o)+8>>1]&4096)!=0?(Vl(J)|0)!=0:0){y=ge;z=je;r=m;m=x;ie=1317;break a}if(!r){S=z;T=s;U=W;V=X;u=J;r=t;break q}r=r+-1|0;u=u+40|0;J=J+40|0}}case 79:{ie=0;u=z+((c[(s+(r*20|0)&p)+8>>2]|0)*40|0)|0;Zl(u,z+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)|0,4096);S=z;T=s;U=W;V=X;break}case 94:{ie=0;K=c[(s+(t*20|0)&p)+4>>2]|0;J=z+(K*40|0)|0;L=c[(s+(t*20|0)&p)+8>>2]|0;I=z+(L*40|0)|0;M=c[(s+(t*20|0)&p)+12>>2]|0;u=z+(M*40|0)|0;H=z+(K*40|0)+8|0;E=b[(H&o)>>1]|0;F=z+(L*40|0)+8|0;C=b[(F&o)>>1]|0;if((C|E)&1){r=z+(M*40|0)+8|0;if(!(b[(r&o)>>1]&9312)){b[(r&o)>>1]=1;S=z;T=s;U=W;V=X;r=t;break}else{vg(u);S=z;T=s;U=W;V=X;r=t;break}}if(E&16384){if(Rg(J)|0){y=ge;z=je;r=m;m=x;ie=1317;break a}C=b[(F&o)>>1]|0}if((C&16384)!=0?(Rg(I)|0)!=0:0){y=ge;z=je;r=m;m=x;ie=1317;break a}if((b[(H&o)>>1]&18)==0?(bm(J,Jc,0)|0)!=0:0){y=ge;z=je;r=m;m=x;ie=1317;break a}if((b[(F&o)>>1]&18)==0?(bm(I,Jc,0)|0)!=0:0){y=ge;z=je;r=m;m=x;ie=1317;break a}E=z+(K*40|0)+12|0;A=z+(L*40|0)+12|0;r=(c[(A&p)>>2]|0)+(c[(E&p)>>2]|0)|0;if((r|0)>(c[(zb&p)>>2]|0)){u=x;ie=1316;break c}v=(M|0)==(L|0);if(eh(u,r+2|0,v&1)|0){y=ge;z=je;r=m;m=x;ie=1317;break a}w=z+(M*40|0)+8|0;b[(w&o)>>1]=e[(w&o)>>1]&48640|2;C=z+(M*40|0)+16|0;if(!v)kw(c[(C&p)>>2]|0,c[(z+(L*40|0)&p)+16>>2]|0,c[(A&p)>>2]|0)|0;kw((c[(C&p)>>2]|0)+(c[(A&p)>>2]|0)|0,c[(z+(K*40|0)&p)+16>>2]|0,c[(E&p)>>2]|0)|0;a[((c[(C&p)>>2]|0)+r&n)>>0]=0;a[((c[(C&p)>>2]|0)+r&n)+1>>0]=0;b[(w&o)>>1]=e[(w&o)>>1]|512;c[(z+(M*40|0)&p)+12>>2]=r;a[(z+(M*40|0)&n)+10>>0]=Jc;S=z;T=s;U=W;V=X;r=t;break}case 112:{ie=0;V=c[(s+(r*20|0)&p)+4>>2]|0;N=z+(V*40|0)|0;S=cm(N)|0;w=c[(s+(r*20|0)&p)+8>>2]|0;O=z+(w*40|0)|0;T=cm(O)|0;U=c[(s+(r*20|0)&p)+12>>2]|0;u=z+(U*40|0)|0;r:do if(!((b[(z+(w*40|0)&o)+8>>1]|b[(z+(V*40|0)&o)+8>>1])&1)){s:do if(!((S&4&T)<<16>>16))L=0;else{t=N;C=c[(t&p)>>2]|0;t=c[(t&p)+4>>2]|0;F=O;v=c[(F&p)>>2]|0;F=c[(F&p)+4>>2]|0;J=d[(P&n)>>0]|0;t:do if((J|0)==89){if((t|0)>-1|(t|0)==-1&C>>>0>4294967295){V=dw(-1,2147483647,v|0,F|0)|0;w=G;if(((F|0)>0|(F|0)==0&v>>>0>0)&((w|0)<(t|0)|(w|0)==(t|0)&V>>>0>>0)){L=1;break s}}else if((F|0)<0?(w=dw(1,-2147483648,v|0,F|0)|0,A=G,V=jw(C|0,t|0,1,0)|0,M=G,(A|0)>(M|0)|(A|0)==(M|0)&w>>>0>V>>>0):0){L=1;break s}v=jw(v|0,F|0,C|0,t|0)|0;t=G}else if((J|0)==91){L=qw(v|0,F|0,0,1)|0;K=G;E=rw(v|0,F|0,0,1)|0;A=G;J=qw(C|0,t|0,0,1)|0;I=G;M=rw(C|0,t|0,0,1)|0;w=G;V=jw(v|0,F|0,-1,0)|0;pe=G;H=jw(C|0,t|0,-1,0)|0;qe=G;H=qe>>>0<1|(qe|0)==1&H>>>0<4294967295;do if(pe>>>0<1|(pe|0)==1&V>>>0<4294967295)if(H){v=sw(v|0,F|0,C|0,t|0)|0;t=G;break t}else{H=sw(J|0,I|0,E|0,A|0)|0;F=G;break}else{if(!H){L=1;break s}H=sw(M|0,w|0,L|0,K|0)|0;F=G}while(0);V=jw(H|0,F|0,-2147483648,0)|0;v=G;if(v>>>0>0|(v|0)==0&V>>>0>4294967295){L=1;break s}J=sw(M|0,w|0,E|0,A|0)|0;I=G;if((I|0)>-1|(I|0)==-1&J>>>0>4294967295){V=dw(-1,2147483647,0,H|0)|0;w=G;if(((F|0)>0|(F|0)==0&H>>>0>0)&((w|0)<(I|0)|(w|0)==(I|0)&V>>>0>>0)){L=1;break s}}else if((F|0)<0?(w=dw(1,-2147483648,0,H|0)|0,t=G,V=jw(J|0,I|0,1,0)|0,v=G,(t|0)>(v|0)|(t|0)==(v|0)&w>>>0>V>>>0):0){L=1;break s}v=jw(0,H|0,J|0,I|0)|0;t=G}else if((J|0)==90){if((C|0)==0&(t|0)==-2147483648){if((F|0)>-1|(F|0)==-1&v>>>0>4294967295){L=1;break s}t=F^-2147483648;break}if((t|0)<0|(t|0)==0&C>>>0<1){V=dw(0,0,C|0,t|0)|0;M=G;w=dw(-1,2147483647,v|0,F|0)|0;A=G;if(((F|0)>0|(F|0)==0&v>>>0>0)&((A|0)<(M|0)|(A|0)==(M|0)&w>>>0>>0)){L=1;break s}}else if((F|0)<0?(w=dw(1,-2147483648,v|0,F|0)|0,A=G,V=dw(1,0,C|0,t|0)|0,M=G,(A|0)>(M|0)|(A|0)==(M|0)&w>>>0>V>>>0):0){L=1;break s}v=dw(v|0,F|0,C|0,t|0)|0;t=G}else if((J|0)==92){if((C|0)==0&(t|0)==0)break r;if((C|0)==-1&(t|0)==-1&((v|0)==0&(F|0)==-2147483648)){L=1;break s}v=qw(v|0,F|0,C|0,t|0)|0;t=G}else{if((C|0)==-1){if((t|0)==-1){C=1;t=0}}else if((C|0)==0?(t|0)==0:0)break r;v=rw(v|0,F|0,C|0,t|0)|0;t=G}while(0);S=u;c[(S&p)>>2]=v;c[(S&p)+4>>2]=t;S=z+(U*40|0)+8|0;b[(S&o)>>1]=e[(S&o)>>1]&48640|4;S=z;T=s;U=W;V=X;break q}while(0);D=+Ug(N);B=+Ug(O);C=d[(P&n)>>0]|0;if((C|0)==89)B=D+B;else if((C|0)==90)B=B-D;else if((C|0)==91)B=D*B;else if((C|0)==92){if(D==0.0)break;B=B/D}else{E=~~D>>>0;C=+R(D)>=1.0?(D>0.0?~~+da(+Q(D/4294967296.0),4294967295.0)>>>0:~~+ba((D-+(~~D>>>0))/4294967296.0)>>>0):0;I=~~B>>>0;J=+R(B)>=1.0?(B>0.0?~~+da(+Q(B/4294967296.0),4294967295.0)>>>0:~~+ba((B-+(~~B>>>0))/4294967296.0)>>>0):0;if(!E){if(!C)break}else if((E|0)==-1?(C|0)==-1:0){E=1;C=0}V=rw(I|0,J|0,E|0,C|0)|0;B=+(V>>>0)+4294967296.0*+(G|0)}h[(ke&q)>>3]=B;h[(Sd&q)>>3]=+h[(ke&q)>>3];if(!(+h[(ke&q)>>3]!=+h[(Sd&q)>>3])){h[(u&q)>>3]=B;V=z+(U*40|0)+8|0;b[(V&o)>>1]=e[(V&o)>>1]&48640|8;if(((T|S)&8)!=0|L<<24>>24!=0){S=z;T=s;U=W;V=X;break q}dm(u);S=z;T=s;U=W;V=X;break q}}while(0);t=z+(U*40|0)+8|0;if(!(b[(t&o)>>1]&9312)){b[(t&o)>>1]=1;S=z;T=s;U=W;V=X;break}else{vg(u);S=z;T=s;U=W;V=X;break}}case 166:{ie=0;t=c[(s+(r*20|0)&p)+4>>2]|0;if(t){u=z+(t*40|0)|0;t=z+(t*40|0)+8|0;if(!(b[(t&o)>>1]&9312)){S=u;c[(S&p)>>2]=0;c[(S&p)+4>>2]=0;b[(t&o)>>1]=4;S=z;T=s;U=W;V=X;u=J;break}else{Zg(u,0,0);S=z;T=s;U=W;V=X;u=J;break}}else{S=z;T=s;U=W;V=X;u=J}break}case 184:{ie=0;C=c[(s+(r*20|0)&p)+4>>2]|0;t=c[(s+(r*20|0)&p)+8>>2]|0;K=c[(s+(r*20|0)&p)+12>>2]|0;u=z+(K*40|0)|0;if((b[(z+(t*40|0)&o)+8>>1]|b[(z+(C*40|0)&o)+8>>1])&1){t=z+(K*40|0)+8|0;if(!(b[(t&o)>>1]&9312)){b[(t&o)>>1]=1;S=z;T=s;U=W;V=X;break}else{vg(u);S=z;T=s;U=W;V=X;break}}A=Vg(z+(t*40|0)|0)|0;L=G;J=Vg(z+(C*40|0)|0)|0;I=G;t=a[(H&n)>>0]|0;C=t&255;do if(t<<24>>24==86){A=J|A;t=I|L}else if(t<<24>>24!=85)if(!((J|0)==0&(I|0)==0)){if((I|0)<0){t=175-C&255;C=dw(0,0,J|0,I|0)|0;if((I|0)>-1|(I|0)==-1&J>>>0>4294967232){I=G;ie=194}}else{C=J;ie=194}if((ie|0)==194){ie=0;if(!((I|0)>0|(I|0)==0&C>>>0>63)){if(t<<24>>24==87){A=iw(A|0,L|0,C|0)|0;t=G;break}A=mw(A|0,L|0,C|0)|0;t=G;if((L|0)>=0)break;V=dw(64,0,C|0,I|0)|0;V=iw(-1,-1,V|0)|0;A=V|A;t=G|t;break}}if((L|0)>-1|(L|0)==-1&A>>>0>4294967295){A=0;t=0}else{t=(t<<24>>24!=87)<<31>>31;A=t;t=((t|0)<0)<<31>>31}}else t=L;else{A=J&A;t=I&L}while(0);S=u;c[(S&p)>>2]=A;c[(S&p)+4>>2]=t;S=z+(K*40|0)+8|0;b[(S&o)>>1]=e[(S&o)>>1]&48640|4;S=z;T=s;U=W;V=X;break}case 202:{ie=0;T=c[(s+(r*20|0)&p)+4>>2]|0;S=z+(T*40|0)|0;U=Vg(S)|0;T=z+(T*40|0)+8|0;b[(T&o)>>1]=e[(T&o)>>1]&48640|4;T=c[(s+(r*20|0)&p)+8>>2]|0;T=jw(U|0,G|0,T|0,((T|0)<0)<<31>>31|0)|0;c[(S&p)>>2]=T;c[(S&p)+4>>2]=G;S=z;T=s;U=W;V=X;break}case 203:{ie=0;u=c[(s+(r*20|0)&p)+4>>2]|0;v=z+(u*40|0)+8|0;t=b[(v&o)>>1]|0;if(!(t&4)){fm(z+(u*40|0)|0,67,Jc);t=b[(v&o)>>1]|0;if(!(t&4)){E=c[(s+(r*20|0)&p)+8>>2]|0;if(!E){t=r;u=20;ie=1318;break c}S=z;T=s;U=W;V=X;u=J;r=E+-1|0;break}}b[(v&o)>>1]=t&48640|4;S=z;T=s;U=W;V=X;u=J;break}case 208:{ie=0;t=c[(s+(r*20|0)&p)+4>>2]|0;u=z+(t*40|0)+8|0;if(!(b[(u&o)>>1]&4)){S=z;T=s;U=W;V=X;u=J}else{S=z+(t*40|0)|0;h[(S&q)>>3]=+Ug(S);b[(u&o)>>1]=e[(u&o)>>1]&48640|8;S=z;T=s;U=W;V=X;u=J}break}case 213:{ie=0;N=c[(s+(t*20|0)&p)+4>>2]|0;L=z+(N*40|0)|0;w=c[(s+(t*20|0)&p)+12>>2]|0;K=z+(w*40|0)|0;N=z+(N*40|0)+8|0;F=b[(N&o)>>1]|0;w=z+(w*40|0)+8|0;M=b[(w&o)>>1]|0;H=F&65535;A=M&65535;v=s+(t*20|0)+3|0;J=d[(v&n)>>0]|0;do if(!((M|F)&1)){J=J&71;if(J>>>0>66){if((H&14|0)==2){rh(L,0);A=b[(w&o)>>1]|0}else A=M;if((A&14)==2){rh(K,0);J=F;E=M}else{J=F;E=M}}else if((J|0)==66){if((H&2|0)!=0|(H&12|0)==0){I=M;J=F}else{bm(L,Jc,1)|0;I=b[(w&o)>>1]|0;J=(e[(N&o)>>1]&65024|H&511)&65535}V=I&65535;if((V&2|0)!=0|(V&12|0)==0)E=M;else{bm(K,Jc,1)|0;E=(e[(w&o)>>1]&65024|A&511)&65535}}else{J=F;E=M}if(b[(N&o)>>1]&16384){Rg(L)|0;J=J&49151}if(b[(w&o)>>1]&16384){Rg(K)|0;E=E&49151}if(a[(ge&n)>>0]|0){y=ge;z=je;r=m;m=x;ie=1317;break a}V=hm(K,L,c[(s+(t*20|0)&p)+16>>2]|0)|0;I=a[(C&n)>>0]|0;r=t;C=V}else{if(J&128){J=F;E=M;r=t;C=(F&1&M)<<16>>16!=0&(A&256|0)==0&1^1;break}if(J&32){u=c[(s+(t*20|0)&p)+8>>2]|0;S=z+(u*40|0)+8|0;b[(S&o)>>1]=e[(S&o)>>1]&48640|1;S=z;T=s;U=W;V=X;u=z+(u*40|0)|0;r=t;break q}if(!(J&16)){S=z;T=s;U=W;V=X;r=t;break q}S=z;T=s;U=W;V=X;r=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;break q}while(0);switch(I&255|0){case 79:{C=(C|0)==0&1;break}case 78:{C=(C|0)!=0&1;break}case 82:{C=C>>>31;break}case 81:{C=(C|0)<1&1;break}case 80:{C=(C|0)>0&1;break}default:C=C>>>31^1}if(!(a[(v&n)>>0]&32)){if(C)r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0}else{V=c[(s+(r*20|0)&p)+8>>2]|0;u=z+(V*40|0)|0;V=z+(V*40|0)+8|0;b[(V&o)>>1]=e[(V&o)>>1]&48640|4;V=u;c[(V&p)>>2]=C;c[(V&p)+4>>2]=0}b[(N&o)>>1]=J;b[(w&o)>>1]=E;S=z;T=s;U=W;V=X;break}case 248:{ie=0;S=z;T=s;U=c[(s+(r*20|0)&p)+16>>2]|0;V=X;break}case 249:{ie=0;w=(a[(s+(r*20|0)&n)+3>>0]&1)==0?0:W;F=c[(s+(r*20|0)&p)+12>>2]|0;H=c[(s+(r*20|0)&p)+16>>2]|0;I=c[(s+(r*20|0)&p)+4>>2]|0;J=c[(s+(r*20|0)&p)+8>>2]|0;if((F|0)>0){t=(w|0)==0;v=H+16|0;E=0;while(1){if(t)A=E;else A=c[(w+(E<<2)&p)>>2]|0;C=a[((c[(v&p)>>2]|0)+E&n)>>0]|0;A=hm(z+((A+I|0)*40|0)|0,z+((A+J|0)*40|0)|0,c[(H+(E<<2)&p)+20>>2]|0)|0;E=E+1|0;if(A)break;if((E|0)>=(F|0)){S=z;T=s;U=0;V=0;break q}}S=z;T=s;U=0;V=C<<24>>24==0?A:0-A|0}else{S=z;T=s;U=0;V=X}break}case 256:{ie=0;if((X|0)<0){S=z;T=s;U=W;V=X;r=(c[(s+(t*20|0)&p)+4>>2]|0)+-1|0;break}if(!X){S=z;T=s;U=W;V=0;r=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;break}else{S=z;T=s;U=W;V=X;r=(c[(s+(t*20|0)&p)+12>>2]|0)+-1|0;break}}case 261:{ie=0;t=c[(s+(r*20|0)&p)+4>>2]|0;if(!(b[(z+(t*40|0)&o)+8>>1]&1)){u=Vg(z+(t*40|0)|0)|0;u=(u|0)!=0|(G|0)!=0?3:0}else u=6;t=c[(s+(r*20|0)&p)+8>>2]|0;if(!(b[(z+(t*40|0)&o)+8>>1]&1)){t=Vg(z+(t*40|0)|0)|0;t=((t|0)!=0|(G|0)!=0)&1}else t=2;t=a[(((a[(C&n)>>0]|0)==72?41680:41696)+t+u&n)>>0]|0;u=c[(s+(r*20|0)&p)+12>>2]|0;J=z+(u*40|0)|0;if(t<<24>>24==2){S=z+(u*40|0)+8|0;b[(S&o)>>1]=e[(S&o)>>1]&48640|1;S=z;T=s;U=W;V=X;u=J;break}else{S=J;c[(S&p)>>2]=t&255;c[(S&p)+4>>2]=0;S=z+(u*40|0)+8|0;b[(S&o)>>1]=e[(S&o)>>1]&48640|4;S=z;T=s;U=W;V=X;u=J;break}}case 268:{ie=0;t=c[(s+(r*20|0)&p)+4>>2]|0;u=c[(s+(r*20|0)&p)+8>>2]|0;J=z+(u*40|0)|0;u=z+(u*40|0)+8|0;if(!(b[(u&o)>>1]&9312))b[(u&o)>>1]=1;else vg(J);if(!(b[(z+(t*40|0)&o)+8>>1]&1)){b[(u&o)>>1]=4;T=Vg(z+(t*40|0)|0)|0;S=J;c[(S&p)>>2]=(T|0)==0&(G|0)==0&1;c[(S&p)+4>>2]=0;S=z;T=s;U=W;V=X;u=J}else{S=z;T=s;U=W;V=X;u=J}break}case 273:{ie=0;t=c[(s+(r*20|0)&p)+4>>2]|0;u=c[(s+(r*20|0)&p)+8>>2]|0;J=z+(u*40|0)|0;u=z+(u*40|0)+8|0;if(!(b[(u&o)>>1]&9312))b[(u&o)>>1]=1;else vg(J);if(!(b[(z+(t*40|0)&o)+8>>1]&1)){b[(u&o)>>1]=4;T=Vg(z+(t*40|0)|0)|0;S=J;c[(S&p)>>2]=~T;c[(S&p)+4>>2]=~G;S=z;T=s;U=W;V=X;u=J}else{S=z;T=s;U=W;V=X;u=J}break}case 278:{ie=0;t=(c[(Hb&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]|0)|0;if(!(a[(t&n)>>0]|0)){a[(t&n)>>0]=1;S=z;T=s;U=W;V=X;break}else{S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0;break}}case 281:{ie=0;t=c[(s+(r*20|0)&p)+4>>2]|0;if(!(b[(z+(t*40|0)&o)+8>>1]&1)){t=+Ug(z+(t*40|0)|0)!=0.0;t=(t^(a[(C&n)>>0]|0)==46)&1}else t=c[(s+(r*20|0)&p)+12>>2]|0;if(!t){S=z;T=s;U=W;V=X}else{S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0}break}case 286:{ie=0;if(!(b[(z+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)&o)+8>>1]&1)){S=z;T=s;U=W;V=X}else{S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0}break}case 288:{ie=0;if(!(b[(z+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)&o)+8>>1]&1)){S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0}else{S=z;T=s;U=W;V=X}break}case 290:{ie=0;T=c[(s+(t*20|0)&p)+8>>2]|0;M=c[(s+(t*20|0)&p)+12>>2]|0;A=z+(M*40|0)|0;S=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;w=c[(S&p)+80>>2]|0;v=c[(S&p)>>2]|0;if(!(a[(S&n)+26>>0]|0)){if((v|0)!=0?(a[(v&n)+73>>0]|0)!=1:0){Td=jm(S)|0;ie=295}}else{Td=im(S)|0;ie=295}if((ie|0)==295?(ie=0,(Td|0)!=0):0){u=Td;ie=1318;break c}L=S+60|0;C=c[($d&p)>>2]|0;u:do if((c[(L&p)>>2]|0)==(C|0)){C=b[(S&o)+22>>1]|0;if((C&65535|0)>(T|0))ie=350;else{I=S+72|0;ie=318}}else{do if(a[(S&n)+25>>0]|0){if(!v){J=c[(S&p)+16>>2]|0;F=c[(z+(J*40|0)&p)+12>>2]|0;c[(S&p)+68>>2]=F;c[(S&p)+64>>2]=F;J=c[(z+(J*40|0)&p)+16>>2]|0;K=S+76|0;c[(K&p)>>2]=J;break}r=z+(M*40|0)+8|0;if(!(b[(r&o)>>1]&9312)){b[(r&o)>>1]=1;break u}else{vg(A);break u}}else{if(!(a[(S&n)+27>>0]&4)){km(v,td);I=e[(v&o)+40>>1]|0;J=c[(v&p)+32>>2]|0;c[(S&p)+76>>2]=J;C=c[(td&p)>>2]|0;c[(S&p)+64>>2]=C}else{C=S+64|0;lm(v,C);I=e[(v&o)+40>>1]|0;J=c[(v&p)+32>>2]|0;c[(S&p)+76>>2]=J;C=c[(C&p)>>2]|0}c[(S&p)+68>>2]=C>>>0>I>>>0?I:C;if(C>>>0>(c[(zb&p)>>2]|0)>>>0){u=x;ie=1316;break c}K=S+76|0;C=c[($d&p)>>2]|0;F=I}while(0);c[(L&p)>>2]=C;C=a[(J&n)>>0]|0;if(C<<24>>24>-1){H=C&255;c[(kd&p)>>2]=H;J=1}else{J=mm(J,kd)|0;H=c[(kd&p)>>2]|0}I=S+72|0;c[(I&p)>>2]=J&255;b[(S&o)+22>>1]=0;c[(w&p)>>2]=H;if(H>>>0>98307){u=x;ie=313;break c}if(H>>>0>(c[(S&p)+64>>2]|0)>>>0){u=x;ie=313;break c}if(F>>>0>>0){c[(K&p)>>2]=0;c[(S&p)+68>>2]=0;C=0;ie=318}else{C=0;ie=318}}while(0);do if((ie|0)==318){ie=0;J=c[(I&p)>>2]|0;H=c[(w&p)>>2]|0;if(J>>>0>>0){P=S+76|0;F=c[(P&p)>>2]|0;if(!F){U=Jd+0|0;V=U+40|0;do{c[(U&p)>>2]=0;U=U+4|0}while((U|0)<(V|0));J=nm(v,0,c[(w&p)>>2]|0,((d[(S&n)+27>>0]|0)>>>2&1^1)&255,Jd)|0;if(J){s=J;u=x;ie=1309;break c}C=S+22|0;O=C;C=b[(C&o)>>1]|0;J=c[(I&p)>>2]|0;H=c[(w&p)>>2]|0;N=c[(Jb&p)>>2]|0}else{O=S+22|0;N=F}E=C&65535;K=c[(w+(E<<2)&p)>>2]|0;c[(kd&p)>>2]=K;C=N+H|0;J=N+J|0;while(1){F=a[(J&n)>>0]|0;if(F<<24>>24>-1){L=F&255;c[(Ld&p)>>2]=L;J=J+1|0}else{J=J+((mm(J,Ld)|0)&255)|0;L=c[(Ld&p)>>2]|0}c[(S+(E<<2)&p)+84>>2]=L;if(L>>>0>11)F=(L+-12|0)>>>1;else F=d[(L&n)+34336>>0]|0;L=K+F|0;c[(kd&p)>>2]=L;if(L>>>0>>0){J=L;F=E;ie=331;break}F=E+1|0;c[(w+(F<<2)&p)>>2]=L;if((E|0)<(T|0)&J>>>0>>0){K=L;E=F}else break}if((ie|0)==331){ie=0;L=J;J=N+(H+1)|0}b[(O&o)>>1]=F;c[(I&p)>>2]=J-N;if(!(c[(P&p)>>2]|0)){if(!((b[(Kb&o)>>1]&9312)==0&(c[(Lb&p)>>2]|0)==0))Qg(Jd);b[(Kb&o)>>1]=1}if(J>>>0>=C>>>0){if(J>>>0>C>>>0){u=x;ie=343;break c}if((L|0)==(c[(S&p)+64>>2]|0))C=L;else{u=x;ie=343;break c}}else C=c[(S&p)+64>>2]|0;if(L>>>0>C>>>0){u=x;ie=343;break c}C=b[(O&o)>>1]|0}if((C&65535|0)<=(T|0)){if((a[(s+(t*20|0)&n)+1>>0]|0)==-8){Zl(A,c[(s+(t*20|0)&p)+16>>2]|0,2048);r=z+(M*40|0)+8|0;break}r=z+(M*40|0)+8|0;if(!(b[(r&o)>>1]&9312)){b[(r&o)>>1]=1;break}else{vg(A);break}}else ie=350}while(0);if((ie|0)==350){ie=0;r=z+(M*40|0)+8|0;if(b[(r&o)>>1]&9312)vg(A);J=c[(S+(T<<2)&p)+84>>2]|0;c[(Ld&p)>>2]=J;do if((c[(S&p)+68>>2]|0)>>>0<(c[(w+(T+1<<2)&p)>>2]|0)>>>0){V=a[(s+(t*20|0)&n)+3>>0]|0;if(!((V&255)>63?J>>>0>11&(J&1|0)==0|V<<24>>24<0:0)){if(J>>>0>11)C=(J+-12|0)>>>1;else C=d[(J&n)+34336>>0]|0;if(C){C=nm(v,c[(w+(T<<2)&p)>>2]|0,C,((d[(S&n)+27>>0]|0)>>>2&1^1)&255,A)|0;if(C){s=C;u=x;ie=1309;break c}om(c[(z+(M*40|0)&p)+16>>2]|0,J,A)|0;b[(r&o)>>1]=e[(r&o)>>1]&61439;break}}om(J>>>0<14?td:0,J,A)|0}else om((c[(S&p)+76>>2]|0)+(c[(w+(T<<2)&p)>>2]|0)|0,J,A)|0;while(0);a[(z+(M*40|0)&n)+10>>0]=Jc}w=e[(r&o)>>1]|0;if((w&4096|0)!=0?(Ac=z+(M*40|0)+16|0,Bc=c[(Ac&p)>>2]|0,(Bc|0)!=0):0){v=c[(z+(M*40|0)&p)+12>>2]|0;if(fh(A,v+2|0)|0){y=ge;z=je;r=m;m=x;ie=1317;break a}kw(c[(Ac&p)>>2]|0,Bc|0,v|0)|0;a[((c[(Ac&p)>>2]|0)+v&n)>>0]=0;a[((c[(Ac&p)>>2]|0)+v&n)+1>>0]=0;b[(r&o)>>1]=w&18|512;S=z;T=s;U=W;V=X;r=t}else{S=z;T=s;U=W;V=X;r=t}break}case 368:{ie=0;v=c[(s+(r*20|0)&p)+16>>2]|0;t=a[(v&n)>>0]|0;if(!(t<<24>>24)){S=z;T=s;U=W;V=X}else{w=z+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)|0;while(1){v=v+1|0;fm(w,t,Jc);t=a[(v&n)>>0]|0;if(!(t<<24>>24)){S=z;T=s;U=W;V=X;break}else w=w+40|0}}break}case 371:{ie=0;U=c[(s+(t*20|0)&p)+4>>2]|0;C=c[(s+(t*20|0)&p)+16>>2]|0;V=z+(U*40|0)|0;U=z+((U+-1+(c[(s+(t*20|0)&p)+8>>2]|0)|0)*40|0)|0;A=a[(Mb&n)>>0]|0;T=c[(s+(t*20|0)&p)+12>>2]|0;u=z+(T*40|0)|0;if(C){r=a[(C&n)>>0]|0;v=V;while(1){C=C+1|0;fm(v,r,Jc);r=a[(C&n)>>0]|0;if(!(r<<24>>24))break;else v=v+40|0}}N=(A&255)>3;L=0;K=0;O=0;C=0;w=U;while(1){E=b[(w&o)+8>>1]|0;I=E&65535;v:do if(!(I&1)){do if(!(I&4)){if(I&8){J=7;ie=388;break v}J=c[(w&p)+12>>2]|0;if(I&16384)J=(c[(w&p)>>2]|0)+J|0;J=(J<<1)+12|I>>>1&1}else{I=w;J=c[(I&p)>>2]|0;I=c[(I&p)+4>>2]|0;H=ew(J|0,I|0,63)|0;H=H^J;F=G^I;if(F>>>0<0|(F|0)==0&H>>>0<128){if(!((J&1|0)==(J|0)&0==(I|0)&N)){J=1;ie=388;break v}J=H+8|0;break}if(F>>>0<0|(F|0)==0&H>>>0<32768){J=2;ie=388;break v}if(F>>>0<0|(F|0)==0&H>>>0<8388608){J=3;ie=388;break v}if(F>>>0<0|(F|0)==0&H>>>0<2147483648){J=4;ie=388;break v}J=F>>>0<32768|(F|0)==32768&H>>>0<0?5:6;ie=388;break v}while(0);c[(w&p)+28>>2]=J;if(J>>>0>11){I=J;J=(J+-12|0)>>>1}else ie=391}else{J=0;ie=388}while(0);if((ie|0)==388){c[(w&p)+28>>2]=J;ie=391}if((ie|0)==391){ie=0;I=J;J=d[(J&n)+34336>>0]|0}do if(E&16384)if((L|0)==0&(K|0)==0){E=c[(w&p)>>2]|0;J=J-E|0;E=E+C|0;break}else{Rg(w)|0;E=C;break}else E=C;while(0);L=jw(J|0,((J|0)<0)<<31>>31|0,L|0,K|0)|0;K=G;if(I>>>0<128)J=1;else{H=0;J=0;do{J=J+1|0;I=mw(I|0,H|0,7)|0;H=G}while(((I|0)!=0|(H|0)!=0)&(J|0)<9)}J=J+O|0;w=w+-40|0;if(w>>>0>>0){F=J;P=E;break}else{O=J;C=E}}if((F|0)<127)I=F+1|0;else{I=F;H=((F|0)<0)<<31>>31;J=0;do{J=J+1|0;I=mw(I|0,H|0,7)|0;H=G}while(((I|0)!=0|(H|0)!=0)&(J|0)<9);F=J+F|0;I=F;H=((F|0)<0)<<31>>31;C=0;do{C=C+1|0;I=mw(I|0,H|0,7)|0;H=G}while(((I|0)!=0|(H|0)!=0)&(C|0)<9);I=((J|0)<(C|0)&1)+F|0}J=((I|0)<0)<<31>>31;E=jw(I|0,J|0,L|0,K|0)|0;N=G;S=c[(zb&p)>>2]|0;O=((S|0)<0)<<31>>31;if((N|0)>(O|0)|(N|0)==(O|0)&E>>>0>S>>>0){u=x;ie=1316;break c}if(fh(u,E)|0){y=ge;z=je;r=m;m=x;ie=1317;break a}A=c[(z+(T*40|0)&p)+16>>2]|0;if(I>>>0<128){a[(A&n)>>0]=I;K=1;L=V}else{K=(pm(A,I,J)|0)&255;L=V}while(1){H=c[(L&p)+28>>2]|0;if(H>>>0<128){a[(A+K&n)>>0]=H;J=1}else J=(pm(A+K|0,H,0)|0)&255;K=J+K|0;J=A+I|0;if(!(H>>>0<8&(H|0)!=0))if(H>>>0>11){C=c[(L&p)+12>>2]|0;kw(J|0,c[(L&p)+16>>2]|0,C|0)|0}else C=0;else{J=L;if(H>>>0>11)C=(H+-12|0)>>>1;else C=d[(H&n)+34336>>0]|0;F=c[(J&p)>>2]|0;J=c[(J&p)+4>>2]|0;H=C;while(1){H=H+-1|0;a[(A+H+I&n)>>0]=F;F=mw(F|0,J|0,8)|0;if(!H)break;else J=G}}L=L+40|0;if(L>>>0>U>>>0)break;else I=C+I|0}c[(z+(T*40|0)&p)+12>>2]=E;r=z+(T*40|0)+8|0;b[(r&o)>>1]=16;if(P){c[(u&p)>>2]=P;b[(r&o)>>1]=16400}a[(z+(T*40|0)&n)+10>>0]=1;S=z;T=s;U=W;V=X;r=t;break}case 446:{ie=0;if((c[(ae&p)>>2]|0)>0){u=x;ie=447;break c}if(!v)w=0;else{t=v;while(1)if(!(a[(t&n)>>0]|0))break;else t=t+1|0;w=t-v&1073741823}u=sm(le,0,(c[(Ob&p)>>2]|0)+(c[(Nb&p)>>2]|0)|0)|0;if(u){t=r;ie=1318;break c}t=mh(le,w+33|0,0)|0;if(!t){S=z;T=s;U=W;V=X;u=L}else{V=t+32|0;c[(t&p)>>2]=V;kw(V|0,v|0,w+1|0)|0;if(!(a[(ee&n)>>0]|0))c[(Ob&p)>>2]=(c[(Ob&p)>>2]|0)+1;else{a[(ee&n)>>0]=0;a[(Sb&n)>>0]=1}c[(t&p)+24>>2]=c[(Pb&p)>>2];c[(Pb&p)>>2]=t;S=Qb;T=c[(S&p)+4>>2]|0;U=t+8|0;c[(U&p)>>2]=c[(S&p)>>2];c[(U&p)+4>>2]=T;U=Rb;T=c[(U&p)+4>>2]|0;S=t+16|0;c[(S&p)>>2]=c[(U&p)>>2];c[(S&p)+4>>2]=T;S=z;T=s;U=W;V=X;u=L}break}case 486:{c[(Ob&p)>>2]=(c[(Ob&p)>>2]|0)+-1;ie=488;break}case 525:{ie=0;wm(c[((c[(Xd&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<4)&p)+4>>2]|0,c[(s+(r*20|0)&p)+12>>2]|0,Yc);T=c[(Yc&p)>>2]|0;S=u;c[(S&p)>>2]=T;c[(S&p)+4>>2]=((T|0)<0)<<31>>31;S=z;T=s;U=W;V=X;break}case 558:{ie=0;v=xm(f,c[(s+(t*20|0)&p)+4>>2]|0,c[(s+(t*20|0)&p)+8>>2]|0,-1,1)|0;if(!v){y=ge;z=je;r=m;m=x;ie=1317;break a}r=c[(s+(t*20|0)&p)+16>>2]|0;C=v+8|0;c[(C&p)>>2]=r;A=c[(s+(t*20|0)&p)+12>>2]|0;r=e[(r&o)+6>>1]<<2;u=r+148|0;w=mh(le,u,0)|0;if(!w){s=v;u=x;ie=560;break c}fw(w|0,0,u|0)|0;c[(v&p)+56>>2]=w;V=w+128|0;c[(w&p)+28>>2]=V;kw(V|0,c[(C&p)>>2]|0,r+20|0)|0;c[(w&p)+140>>2]=0;if(A)b[(w&o)+134>>1]=A;r=c[(Xd&p)>>2]|0;u=c[((c[((c[(r&p)+4>>2]|0)&p)+4>>2]|0)&p)+32>>2]|0;c[(w&p)+12>>2]=u;a[(w&n)+59>>0]=1;a[(w&n)+57>>0]=0;c[(w&p)+24>>2]=le;c[(w&p)+72>>2]=w;if(((a[(_b&n)>>0]|0)!=2?(Dc=c[2242]|0,c[(w&p)>>2]=ca(Dc,u)|0,V=c[((c[(r&p)+12>>2]|0)&p)+80>>2]|0,V=(V|0)<(Dc|0)?Dc:V,Dc=((u|0)<0)<<31>>31,V=sw(V|0,((V|0)<0)<<31>>31|0,u|0,Dc|0)|0,U=G,c[(w&p)+4>>2]=(U|0)<0|(U|0)==0&V>>>0<536870912?V:536870912,(c[2234]|0)==0):0)?(c[(w&p)+52>>2]=u,V=qg(u,Dc)|0,c[(w&p)+40>>2]=V,(V|0)==0):0){s=7;u=x;ie=1309;break c}else{S=z;T=s;U=W;V=X;u=L;r=t}break}case 566:{ie=0;T=(c[((c[(Ib&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<2)&p)>>2]|0)+40|0;V=T;U=c[(V&p)>>2]|0;V=c[(V&p)+4>>2]|0;S=jw(U|0,V|0,1,0)|0;c[(T&p)>>2]=S;c[(T&p)+4>>2]=G;if((U|0)==0&(V|0)==0){S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0}else{S=z;T=s;U=W;V=X}break}case 568:{ie=0;r=xm(f,c[(s+(t*20|0)&p)+4>>2]|0,c[(s+(t*20|0)&p)+12>>2]|0,-1,0)|0;if(!r){y=ge;z=je;r=m;m=x;ie=1317;break a}a[(r&n)+25>>0]=1;c[(r&p)+16>>2]=c[(s+(t*20|0)&p)+8>>2];S=r+27|0;a[(S&n)>>0]=a[(S&n)>>0]|4;S=z;T=s;U=W;V=X;r=t;break}case 570:{ie=0;S=s+(r*20|0)+4|0;Bm(f,c[((c[(Ib&p)>>2]|0)+(c[(S&p)>>2]<<2)&p)>>2]|0);c[((c[(Ib&p)>>2]|0)+(c[(S&p)>>2]<<2)&p)>>2]=0;S=z;T=s;U=W;V=X;break}case 571:{ie=0;H=c[((c[(Ib&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<2)&p)>>2]|0;a[(H&n)+25>>0]=0;if(!(a[(H&n)+27>>0]&4)){V=c[(s+(r*20|0)&p)+16>>2]|0;c[(wd&p)>>2]=c[(H&p)+8>>2];b[($b&o)>>1]=V;a[(cc&n)>>0]=(K<<1&2^2)+255;V=c[(s+(r*20|0)&p)+12>>2]|0;t=z+(V*40|0)|0;c[(dc&p)>>2]=t;if(b[(z+(V*40|0)&o)+8>>1]&16384)Rg(t)|0;u=Cm(c[(H&p)>>2]|0,wd,0,0,0,Ad)|0;if(!u){u=K;J=L}else{t=r;ie=1318;break c}}else{C=c[(s+(r*20|0)&p)+12>>2]|0;A=z+(C*40|0)|0;C=z+(C*40|0)+8|0;if((b[(C&o)>>1]&14)==2)rh(A,0);J=Vg(A)|0;I=G;C=e[(C&o)>>1]|0;do if(!(C&4)){if(!(C&8)){S=z;T=s;U=W;V=X;u=L;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0;break q}B=+h[(A&q)>>3];D=+(J>>>0)+4294967296.0*+(I|0);if(B>31)+K|0;break}else{C=(B>D&(K&1|0)==0&1)+K|0;break}}else C=K;while(0);u=Cm(c[(H&p)>>2]|0,0,J,I,0,Ad)|0;V=H+48|0;c[(V&p)>>2]=J;c[(V&p)+4>>2]=I;if(!u){u=C;J=L}else{t=r;ie=1318;break c}}a[(H&n)+26>>0]=0;c[(H&p)+60>>2]=0;t=c[(Ad&p)>>2]|0;do if((u|0)>63){if((t|0)>=0?!((t|0)==0&(u|0)==65):0){c[(Ad&p)>>2]=0;S=z;T=s;U=W;V=X;u=J;break q}c[(Ad&p)>>2]=0;u=Dm(c[(H&p)>>2]|0,Ad)|0;if(!u)ie=593;else{t=r;ie=1318;break c}}else{if((t|0)<=0?!((t|0)==0&(u|0)==62):0){t=(a[((c[(H&p)>>2]|0)&n)+73>>0]|0)!=1&1;c[(Ad&p)>>2]=t;break}c[(Ad&p)>>2]=0;u=Em(c[(H&p)>>2]|0,Ad)|0;if(!u)ie=593;else{t=r;ie=1318;break c}}while(0);if((ie|0)==593){ie=0;t=c[(Ad&p)>>2]|0}if(!t){S=z;T=s;U=W;V=X;u=J}else{S=z;T=s;U=W;V=X;u=J;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0}break}case 596:{ie=0;S=c[((c[(Ib&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<2)&p)>>2]|0;a[(S&n)+25>>0]=0;U=Vg(z+((c[(s+(r*20|0)&p)+8>>2]|0)*40|0)|0)|0;T=S+48|0;c[(T&p)>>2]=U;c[(T&p)+4>>2]=G;a[(S&n)+26>>0]=1;S=z;T=s;U=W;V=X;break}case 597:{ie=0;I=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;r=c[(s+(t*20|0)&p)+12>>2]|0;J=z+(r*40|0)|0;c[(od&p)>>2]=0;K=s+(t*20|0)+16|0;C=c[(K&p)>>2]|0;v=I+8|0;A=c[(v&p)>>2]|0;w:do if((C|0)>0){c[(xd&p)>>2]=A;C=C&65535;b[(ec&o)>>1]=C;c[(fc&p)>>2]=J;if(!(C<<16>>16))v=xd;else{r=J;A=0;while(1){if(b[(r+(A*40|0)&o)+8>>1]&16384){Rg(r+(A*40|0)|0)|0;C=b[(ec&o)>>1]|0}A=A+1|0;if((A|0)>=(C&65535|0)){v=xd;break w}r=c[(fc&p)>>2]|0}}}else{C=Fm(A,Sc,191,od)|0;if(!C){y=ge;z=je;r=m;m=x;ie=1317;break a}if(b[(z+(r*40|0)&o)+8>>1]&16384)Rg(J)|0;Gm(c[(v&p)>>2]|0,c[(z+(r*40|0)&p)+12>>2]|0,c[(z+(r*40|0)&p)+16>>2]|0,C);v=C}while(0);a[(v&n)+6>>0]=0;x:do if((a[(H&n)>>0]|0)==67?(Ec=b[(v&o)+4>>1]|0,Ec<<16>>16!=0):0){C=c[(v&p)+8>>2]|0;A=0;while(1){if(b[(C+(A*40|0)&o)+8>>1]&1)break;A=A+1|0;if((A|0)>=(Ec&65535|0)){L=t;r=t;break x}}L=t;r=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0}else{L=t;r=t}while(0);C=Cm(c[(I&p)>>2]|0,v,0,0,0,Bd)|0;if(!(c[(K&p)>>2]|0))mg(le,c[(od&p)>>2]|0);if(C){t=r;s=C;u=x;ie=1309;break c}t=c[(Bd&p)>>2]|0;c[(I&p)+12>>2]=t;t=(t|0)==0;a[(I&n)+25>>0]=t&1^1;a[(I&n)+26>>0]=0;c[(I&p)+60>>2]=0;if((a[(H&n)>>0]|0)==69){if(!t){S=z;T=s;U=W;V=X;break}S=z;T=s;U=W;V=X;r=(c[(s+(L*20|0)&p)+8>>2]|0)+-1|0;break}else{if(t){S=z;T=s;U=W;V=X;break}S=z;T=s;U=W;V=X;r=(c[(s+(L*20|0)&p)+8>>2]|0)+-1|0;break}}case 624:{ie=0;S=(c[((c[(Ib&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<2)&p)>>2]|0)+40|0;T=S;U=c[(T&p)>>2]|0;T=c[(T&p)+4>>2]|0;V=jw(U|0,T|0,1,0)|0;c[(S&p)>>2]=V;c[(S&p)+4>>2]=G;S=u;c[(S&p)>>2]=U;c[(S&p)+4>>2]=T;S=z;T=s;U=W;V=X;break}case 647:{ie=0;I=c[(s+(r*20|0)&p)+8>>2]|0;v=c[((c[(Ib&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<2)&p)>>2]|0;t=c[(s+(r*20|0)&p)+12>>2]|0;if(C<<24>>24==75){F=z+(t*40|0)|0;E=c[(F&p)>>2]|0;F=c[(F&p)+4>>2]|0}else{E=t;F=((t|0)<0)<<31>>31}H=s+(r*20|0)+3|0;J=a[(H&n)>>0]|0;if(J&1)c[(ub&p)>>2]=(c[(ub&p)>>2]|0)+1;if(J&2){m=ne;c[(m&p)>>2]=E;c[(m&p)+4>>2]=F;m=E;l=F}C=b[(z+(I*40|0)&o)+8>>1]|0;if(C&1){c[(z+(I*40|0)&p)+16>>2]=0;c[(z+(I*40|0)&p)+12>>2]=0}if(!(J&16))A=0;else A=c[(v&p)+12>>2]|0;if(!(C&16384))C=0;else C=c[(z+(I*40|0)&p)>>2]|0;C=Im(c[(v&p)>>2]|0,0,E,F,c[(z+(I*40|0)&p)+16>>2]|0,c[(z+(I*40|0)&p)+12>>2]|0,C,(J&255)>>>3&1,A)|0;a[(v&n)+26>>0]=0;c[(v&p)+60>>2]=0;if(C){t=r;s=C;u=x;ie=1309;break c}t=c[(gc&p)>>2]|0;if((t|0)!=0?(Fc=c[(s+(r*20|0)&p)+16>>2]|0,(Fc|0)!=0):0){bc[t&1](c[(hc&p)>>2]|0,(a[(H&n)>>0]&4)!=0?23:18,c[((c[(Xd&p)>>2]|0)+(a[(v&n)+24>>0]<<4)&p)>>2]|0,Fc,E,F);S=z;T=s;U=W;V=X}else{S=z;T=s;U=W;V=X}break}case 671:{ie=0;S=c[(ub&p)>>2]|0;c[(vb&p)>>2]=S;c[(wb&p)>>2]=(c[(wb&p)>>2]|0)+S;c[(ub&p)>>2]=0;S=z;T=s;U=W;V=X;break}case 672:{ie=0;J=c[((c[(Ib&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<2)&p)>>2]|0;I=c[(s+(r*20|0)&p)+12>>2]|0;H=c[(s+(r*20|0)&p)+16>>2]|0;t=c[(J&p)+56>>2]|0;A=t+32|0;C=c[(A&p)>>2]|0;J=c[(J&p)+8>>2]|0;if(!C){C=Fm(J,0,0,md)|0;c[(A&p)>>2]=C;if(!C){t=r;s=7;u=x;ie=1309;break c}b[(C&o)+4>>1]=H}if(!(a[(t&n)+56>>0]|0)){t=c[(t&p)+36>>2]|0;A=t;t=t+8|0}else{V=c[(t&p)+20>>2]|0;t=c[((c[(V&p)+8>>2]|0)&p)+4>>2]|0;V=c[(V&p)+12>>2]|0;A=V+(t*56|0)+20|0;t=c[(V+(t*56|0)&p)+32>>2]|0}Gm(J,c[(A&p)>>2]|0,t,C);y:do if((H|0)>0){t=c[(C&p)+8>>2]|0;v=0;while(1){if(b[(t+(v*40|0)&o)+8>>1]&1)break y;v=v+1|0;if((v|0)>=(H|0)){ie=682;break}}}else ie=682;while(0);if((ie|0)==682){ie=0;if(!(Km(c[(z+(I*40|0)&p)+12>>2]|0,c[(z+(I*40|0)&p)+16>>2]|0,C,0)|0)){S=z;T=s;U=W;V=X;break}}S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0;break}case 700:{ie=0;b[(u&o)+8>>1]=1;S=z;T=s;U=W;V=X;break}case 708:{ie=0;b[(u&o)+8>>1]=1;S=z;T=s;U=W;V=X;break}case 711:{ie=0;t=c[((c[(Ib&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<2)&p)>>2]|0;a[(t&n)+25>>0]=1;c[(t&p)+60>>2]=0;t=c[(t&p)>>2]|0;if(!t){S=z;T=s;U=W;V=X}else{S=t+56|0;Wc(c[(S&p)>>2]|0);c[(S&p)>>2]=0;a[(t&n)+73>>0]=0;S=z;T=s;U=W;V=X}break}case 801:{ie=0;t=c[((c[(Ib&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<2)&p)>>2]|0;u=c[(t&p)>>2]|0;K=L+8|0;b[(K&o)>>1]=1;if((a[(u&n)+73>>0]|0)!=1?(Vd=jm(t)|0,(Vd|0)!=0):0){t=r;u=Vd;ie=1318;break c}if(!(a[(t&n)+25>>0]|0)){V=Sd;c[(V&p)>>2]=0;c[(V&p)+4>>2]=0;km(u,Sd);b[(qc&o)>>1]=0;c[(sc&p)>>2]=le;c[(uc&p)>>2]=0;u=nm(u,0,c[(Sd&p)>>2]|0,1,$c)|0;do if(!u){t=c[(vc&p)>>2]|0;u=a[(t&n)>>0]|0;if(u<<24>>24>-1){C=u&255;c[(qd&p)>>2]=C}else{mm(t,qd)|0;C=c[(qd&p)>>2]|0}if(!(C>>>0<3?1:(C|0)>(c[(wc&p)>>2]|0))){t=(c[(vc&p)>>2]|0)+(C+-1)|0;u=a[(t&n)>>0]|0;if(u<<24>>24>-1){u=u&255;c[(Nd&p)>>2]=u}else{mm(t,Nd)|0;u=c[(Nd&p)>>2]|0}if(!((u+-1|0)>>>0>8|(u|0)==7)){if(u>>>0>11)t=(u+-12|0)>>>1;else t=d[(u&n)+34336>>0]|0;v=c[(wc&p)>>2]|0;if(v>>>0>=(t+C|0)>>>0){om((c[(vc&p)>>2]|0)+(v-t)|0,u,Qd)|0;v=Qd;t=c[(v&p)>>2]|0;v=c[(v&p)+4>>2]|0;if((b[(qc&o)>>1]&9312)==0&(c[(uc&p)>>2]|0)==0){u=0;break}Qg($c);u=0;break}}}if(!((b[(qc&o)>>1]&9312)==0&(c[(uc&p)>>2]|0)==0))Qg($c);c[(ke&p)>>2]=68698;c[(ke&p)+4>>2]=10788;bd(11,13600,ke);u=11;t=0;v=0}else{t=0;v=0}while(0);if(u){t=r;ie=1318;break c}S=L;c[(S&p)>>2]=t;c[(S&p)+4>>2]=v;b[(K&o)>>1]=4;S=z;T=s;U=W;V=X;u=L}else{S=z;T=s;U=W;V=X;u=L}break}case 865:{ie=0;w=c[(C&p)>>2]|0;C=c[((c[(Xd&p)>>2]|0)+(K<<4)&p)+12>>2]|0;t=c[(C&p)+16>>2]|0;if(t)do{v=(c[(t&p)+8>>2]|0)+32|0;if((c[(v&p)>>2]|0)==(A|0))c[(v&p)>>2]=w;t=c[(t&p)>>2]|0}while((t|0)!=0);t=c[(C&p)+32>>2]|0;if(t)do{v=(c[(t&p)+8>>2]|0)+40|0;if((c[(v&p)>>2]|0)==(A|0))c[(v&p)>>2]=w;t=c[(t&p)>>2]|0}while((t|0)!=0);S=z;T=s;U=W;V=X;x=K+1&255;break}case 878:{ie=0;_m(le,u);S=z;T=s;U=W;V=X;u=J;break}case 881:{ie=0;V=c[(s+(r*20|0)&p)+4>>2]|0;c[(Zc&p)>>2]=le;c[(ia&p)>>2]=V;c[(ja&p)>>2]=je;u=c[(s+(r*20|0)&p)+16>>2]|0;c[(ke&p)>>2]=c[((c[(Xd&p)>>2]|0)+(V<<4)&p)>>2];c[(ke&p)+4>>2]=(V|0)==1?13184:13208;c[(ke&p)+8>>2]=u;u=uh(le,42048,ke)|0;if(!u){t=r;u=x;ie=882;break c}a[(ka&n)>>0]=1;c[(la&p)>>2]=0;t=Qe(le,u,22,Zc,0)|0;t=(t|0)==0?c[(la&p)>>2]|0:t;mg(le,u);a[(ka&n)>>0]=0;if(!t){S=z;T=s;U=W;V=X;u=J}else{s=t;t=r;u=x;ie=884;break c}break}case 886:{ie=0;kg(le,Ik((c[((c[(Xd&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<4)&p)+12>>2]|0)+8|0,c[(s+(r*20|0)&p)+16>>2]|0,0)|0);c[(Tb&p)>>2]=c[(Tb&p)>>2]|2;S=z;T=s;U=W;V=X;break}case 887:{ie=0;C=Ik((c[((c[(Xd&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<4)&p)+12>>2]|0)+24|0,c[(s+(r*20|0)&p)+16>>2]|0,0)|0;if(C){t=(c[(C&p)+12>>2]|0)+8|0;u=c[(t&p)>>2]|0;z:do if((u|0)==(C|0))c[(t&p)>>2]=c[(C&p)+20>>2];else{do{if(!u)break z;t=u+20|0;u=c[(t&p)>>2]|0}while((u|0)!=(C|0));c[(t&p)>>2]=c[(C&p)+20>>2]}while(0);Jk(le,C)}c[(Tb&p)>>2]=c[(Tb&p)>>2]|2;S=z;T=s;U=W;V=X;u=J;break}case 895:{ie=0;C=Ik((c[((c[(Xd&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<4)&p)+12>>2]|0)+40|0,c[(s+(r*20|0)&p)+16>>2]|0,0)|0;if(!C){S=z;T=s;U=W;V=X}else{t=c[(C&p)+20>>2]|0;if((t|0)==(c[(C&p)+24>>2]|0)){t=bn(t+8|0,c[(C&p)+4>>2]|0,ke)|0;if(!t)t=0;else t=c[(t&p)+8>>2]|0;v=t+64|0;while(1){V=c[(v&p)>>2]|0;t=V+32|0;if((V|0)==(C|0))break;else v=t}c[(v&p)>>2]=c[(t&p)>>2]}jg(le,C);c[(Tb&p)>>2]=c[(Tb&p)>>2]|2;S=z;T=s;U=W;V=X}break}case 903:{ie=0;L=c[(s+(t*20|0)&p)+8>>2]|0;v=mh(le,(L<<2)+4|0,0)|0;if(!v){y=ge;z=je;r=m;m=x;ie=1317;break a}A=c[(s+(t*20|0)&p)+12>>2]|0;r=c[(s+(t*20|0)&p)+4>>2]|0;M=z+(r*40|0)|0;if((L|0)>0){C=0;do{V=Vg(z+((C+r|0)*40|0)|0)|0;c[(v+(C<<2)&p)>>2]=V;C=C+1|0}while((C|0)!=(L|0));C=L}else C=0;c[(v+(C<<2)&p)>>2]=0;I=c[((c[(Xd&p)>>2]|0)+(d[(s+(t*20|0)&n)+3>>0]<<4)&p)+4>>2]|0;P=z+(A*40|0)|0;V=c[(P&p)>>2]|0;O=c[(I&p)+4>>2]|0;c[(O&p)+4>>2]=c[(I&p)>>2];I=c[(O&p)>>2]|0;w=c[((c[(I&p)+204>>2]|0)&p)+12>>2]|0;c[(Sd&p)>>2]=O;c[(ma&p)>>2]=I;I=c[(O&p)+44>>2]|0;c[(na&p)>>2]=I;c[(oa&p)>>2]=V;c[(pa&p)>>2]=0;c[(pa&p)+4>>2]=0;c[(pa&p)+8>>2]=0;c[(pa&p)+12>>2]=0;c[(pa&p)+16>>2]=0;do if(!I){A=0;C=0}else{J=(I>>>3)+1|0;H=qg(J,0)|0;if(!H){c[(sa&p)>>2]=0;A=0;C=1;break}fw(H|0,0,J|0)|0;c[(sa&p)>>2]=H;N=O+32|0;J=(((c[2514]|0)>>>0)/((c[(N&p)>>2]|0)>>>0)|0)+1|0;if(J>>>0<=I>>>0){V=H+(J>>>3)|0;a[(V&n)>>0]=d[(V&n)>>0]|1<<(J&7)}c[(ua&p)>>2]=Nd;c[(va&p)>>2]=Nd;c[(ta&p)>>2]=0;c[(wa&p)>>2]=0;c[(xa&p)>>2]=100;c[(ya&p)>>2]=1e9;a[(Aa&n)>>0]=0;a[(za&n)>>0]=2;c[(ra&p)>>2]=43592;C=c[((c[(O&p)+12>>2]|0)&p)+56>>2]|0;cn(Sd,1,d[(C&n)+33>>0]<<16|d[(C&n)+32>>0]<<24|d[(C&n)+34>>0]<<8|d[(C&n)+35>>0],d[(C&n)+37>>0]<<16|d[(C&n)+36>>0]<<24|d[(C&n)+38>>0]<<8|d[(C&n)+39>>0]);c[(ra&p)>>2]=0;C=c[(oa&p)>>2]|0;if(!((L|0)<1|(C|0)==0)){F=O+17|0;H=0;do{I=v+(H<<2)|0;J=c[(I&p)>>2]|0;if(J){if((a[(F&n)>>0]|0)!=0&(J|0)>1){dn(Sd,J,1,0);J=c[(I&p)>>2]|0}c[(ra&p)>>2]=43608;en(Sd,J,0,0)|0;c[(ra&p)>>2]=0;C=c[(oa&p)>>2]|0}H=H+1|0}while(!((H|0)>=(L|0)|(C|0)==0))}if(!((c[(na&p)>>2]|0)==0|(C|0)==0)){E=O+17|0;C=O+36|0;L=1;do{H=L>>>3;J=a[((c[(sa&p)>>2]|0)+H&n)>>0]|0;F=1<<(L&7);do if(!(J&255&F)){if(L>>>0<2)I=0;else{I=L+-2|0;I=I-((I>>>0)%(((((c[(C&p)>>2]|0)>>>0)/5|0)+1|0)>>>0)|0)|0;I=((I+1|0)==(((c[2514]|0)>>>0)/((c[(N&p)>>2]|0)>>>0)|0|0)?3:2)+I|0}if((I|0)==(L|0)?(a[(E&n)>>0]|0)!=0:0)break;c[(ke&p)>>2]=L;fn(Sd,43632,ke);J=a[((c[(sa&p)>>2]|0)+H&n)>>0]|0}while(0);do if(J&255&F){if(L>>>0<2)J=0;else{J=L+-2|0;J=J-((J>>>0)%(((((c[(C&p)>>2]|0)>>>0)/5|0)+1|0)>>>0)|0)|0;J=((J+1|0)==(((c[2514]|0)>>>0)/((c[(N&p)>>2]|0)>>>0)|0|0)?3:2)+J|0}if((J|0)!=(L|0))break;if(!(a[(E&n)>>0]|0))break;c[(ke&p)>>2]=L;fn(Sd,43656,ke)}while(0);L=L+1|0}while(!((c[(oa&p)>>2]|0)==0?1:L>>>0>(c[(na&p)>>2]|0)>>>0))}C=c[((c[((c[(O&p)>>2]|0)&p)+204>>2]|0)&p)+12>>2]|0;if((w|0)!=(C|0)){c[(ke&p)>>2]=w;c[(ke&p)+4>>2]=C;fn(Sd,43696,ke)}Wc(c[(sa&p)>>2]|0);if(c[(qa&p)>>2]|0){gn(ta);A=0;C=(c[(pa&p)>>2]|0)+1|0;break}C=c[(pa&p)>>2]|0;if(!C)gn(ta);A=tg(ta)|0}while(0);mg(le,v);U=P;U=dw(c[(U&p)>>2]|0,c[(U&p)+4>>2]|0,C|0,((C|0)<0)<<31>>31|0)|0;V=P;c[(V&p)>>2]=U;c[(V&p)+4>>2]=G;r=z+(r*40|0)+8|0;if(!(b[(r&o)>>1]&9312))b[(r&o)>>1]=1;else vg(M);if(C){if(!A){y=ge;z=je;r=m;m=x;ie=1317;break a}Xg(M,A,-1,1,1)|0}Yl(M,xb)|0;S=z;T=s;U=W;V=X;r=t;break}case 947:{ie=0;v=c[(s+(t*20|0)&p)+4>>2]|0;r=z+(v*40|0)|0;u=c[(s+(t*20|0)&p)+8>>2]|0;v=z+(v*40|0)+8|0;if((b[(v&o)>>1]&32)==0?(hn(r),(b[(v&o)>>1]&32)==0):0){y=ge;z=je;r=m;m=x;ie=1317;break a}S=z+(u*40|0)|0;jn(c[(r&p)>>2]|0,c[(S&p)>>2]|0,c[(S&p)+4>>2]|0);S=z;T=s;U=W;V=X;u=J;r=t;break}case 966:{ie=0;r=c[(s+(t*20|0)&p)+4>>2]|0;P=z+(r*40|0)|0;O=z+((c[(s+(t*20|0)&p)+12>>2]|0)*40|0)|0;N=c[(s+(t*20|0)&p)+16>>2]|0;r=z+(r*40|0)+8|0;if((b[(r&o)>>1]&32)==0?(hn(P),(b[(r&o)>>1]&32)==0):0){y=ge;z=je;r=m;m=x;ie=1317;break a}if(N){L=c[(P&p)>>2]|0;v=O;M=c[(v&p)>>2]|0;v=c[(v&p)+4>>2]|0;K=L+28|0;if((c[(K&p)>>2]|0)!=(N|0)){C=L+8|0;J=c[(C&p)>>2]|0;if(J){I=L+20|0;A=L+26|0;if(!(b[(A&o)>>1]&1))J=kn(J)|0;H=c[(I&p)>>2]|0;A:do if(!H){ld=J;rd=I;ie=978}else{while(1){I=H+12|0;F=c[(I&p)>>2]|0;if(!F)break;E=H+8|0;ln(F,ke,Sd);c[(I&p)>>2]=0;J=mn(c[(ke&p)>>2]|0,J)|0;H=c[(E&p)>>2]|0;if(!H){ld=J;rd=E;ie=978;break A}}c[(I&p)>>2]=nn(J)|0}while(0);if((ie|0)==978?(ie=0,Kc=on(L)|0,c[(rd&p)>>2]=Kc,(Kc|0)!=0):0){V=Kc;c[(V&p)>>2]=0;c[(V&p)+4>>2]=0;c[(Kc&p)+8>>2]=0;c[(Kc&p)+12>>2]=nn(ld)|0}c[(C&p)>>2]=0;c[(L&p)+12>>2]=0;b[(A&o)>>1]=e[(A&o)>>1]|1}c[(K&p)>>2]=N}C=c[(L&p)+20>>2]|0;B:do if(C){C:while(1){A=c[(C&p)+12>>2]|0;if(A)do{r=A;E=c[(r&p)>>2]|0;r=c[(r&p)+4>>2]|0;if((r|0)<(v|0)|(r|0)==(v|0)&E>>>0>>0)A=A+8|0;else{if(!((r|0)>(v|0)|(r|0)==(v|0)&E>>>0>M>>>0))break C;A=A+12|0}A=c[(A&p)>>2]|0}while((A|0)!=0);C=c[(C&p)+8>>2]|0;if(!C)break B}S=z;T=s;U=W;V=X;r=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;break q}while(0);if((N|0)>-1)C=O;else{S=z;T=s;U=W;V=X;r=t;break}}else C=O;S=C;jn(c[(P&p)>>2]|0,c[(S&p)>>2]|0,c[(S&p)+4>>2]|0);S=z;T=s;U=W;V=X;r=t;break}case 993:{ie=0;K=c[(s+(r*20|0)&p)+16>>2]|0;I=c[(s+(r*20|0)&p)+12>>2]|0;L=z+(I*40|0)|0;if((a[(s+(r*20|0)&n)+3>>0]|0)!=0?(Lc=c[(K&p)+20>>2]|0,nd=c[(sb&p)>>2]|0,(nd|0)!=0):0){t=nd;while(1){if((c[(t&p)+28>>2]|0)==(Lc|0)){S=z;T=s;U=W;V=X;break q}t=c[(t&p)+4>>2]|0;if(!t){t=r;break}}}else t=r;r=c[(tb&p)>>2]|0;if((r|0)>=(c[(Ba&p)>>2]|0)){u=x;ie=998;break c}E=z+(I*40|0)+8|0;if(!(b[(E&o)>>1]&64)){C=K+12|0;A=c[(C&p)>>2]|0;r=A+(c[(K&p)+8>>2]|0)|0;s=K+16|0;A=(A<<2)+80+(c[(s&p)>>2]|0)+(r*40|0)|0;J=mh(le,A,((A|0)<0)<<31>>31)|0;if(!J){y=ge;z=je;r=m;m=x;ie=1317;break a}fw(J|0,0,A|0)|0;if(!((b[(E&o)>>1]&9312)==0?(c[(z+(I*40|0)&p)+24>>2]|0)==0:0))Qg(L);b[(E&o)>>1]=64;c[(L&p)>>2]=J;c[(J&p)>>2]=f;c[(J&p)+60>>2]=r;c[(J&p)+64>>2]=c[(C&p)>>2];c[(J&p)+44>>2]=t;c[(J&p)+16>>2]=c[(Nc&p)>>2];c[(J&p)+52>>2]=c[(Ca&p)>>2];c[(J&p)+24>>2]=c[(Ib&p)>>2];c[(J&p)+40>>2]=c[(Da&p)>>2];c[(J&p)+8>>2]=c[(zc&p)>>2];c[(J&p)+48>>2]=c[(Ea&p)>>2];c[(J&p)+28>>2]=c[(K&p)+20>>2];c[(J&p)+20>>2]=c[(Hb&p)>>2];c[(J&p)+56>>2]=c[(Fa&p)>>2];z=J+80|0;r=z+(r*40|0)|0;if((z|0)!=(r|0))do{b[(z&o)+8>>1]=128;c[(z&p)+32>>2]=le;z=z+40|0}while((z|0)!=(r|0));r=c[(tb&p)>>2]|0;z=J}else{s=K+16|0;z=c[(L&p)>>2]|0}c[(tb&p)>>2]=r+1;c[(z&p)+4>>2]=c[(sb&p)>>2];S=z+32|0;c[(S&p)>>2]=m;c[(S&p)+4>>2]=l;c[(z&p)+68>>2]=c[(ub&p)>>2];c[(z&p)+72>>2]=c[((c[(f&p)>>2]|0)&p)+80>>2];c[(ub&p)>>2]=0;c[(sb&p)>>2]=z;S=z+40|0;c[(Nc&p)>>2]=S;U=c[(z&p)+60>>2]|0;c[(Ca&p)>>2]=U;V=c[(z&p)+64>>2]&65535;c[(Da&p)>>2]=V;U=S+((U+1|0)*40|0)|0;c[(Ib&p)>>2]=U;T=c[(K&p)>>2]|0;c[(zc&p)>>2]=T;c[(Ea&p)>>2]=c[(K&p)+4>>2];V=U+(V<<2)|0;c[(Hb&p)>>2]=V;U=c[(s&p)>>2]|0;c[(Fa&p)>>2]=U;fw(V|0,0,U|0)|0;U=W;V=X;r=-1;break}case 1009:{ie=0;S=c[(sb&p)>>2]|0;Zl(u,(c[(S&p)+16>>2]|0)+(((c[((c[(S&p)+8>>2]|0)+((c[(S&p)+44>>2]|0)*20|0)&p)+4>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]|0)|0)*40|0)|0,4096);S=z;T=s;U=W;V=X;break}case 1010:{ie=0;if(c[(Tb&p)>>2]&16777216){T=c[(s+(r*20|0)&p)+8>>2]|0;S=Rb;T=jw(c[(S&p)>>2]|0,c[(S&p)+4>>2]|0,T|0,((T|0)<0)<<31>>31|0)|0;S=Rb;c[(S&p)>>2]=T;c[(S&p)+4>>2]=G;S=z;T=s;U=W;V=X;u=J;break}t=c[(s+(r*20|0)&p)+8>>2]|0;u=((t|0)<0)<<31>>31;if(!(c[(s+(r*20|0)&p)+4>>2]|0)){T=_d;T=jw(c[(T&p)>>2]|0,c[(T&p)+4>>2]|0,t|0,u|0)|0;S=_d;c[(S&p)>>2]=T;c[(S&p)+4>>2]=G;S=z;T=s;U=W;V=X;u=J;break}else{T=Qb;T=jw(c[(T&p)>>2]|0,c[(T&p)+4>>2]|0,t|0,u|0)|0;S=Qb;c[(S&p)>>2]=T;c[(S&p)+4>>2]=G;S=z;T=s;U=W;V=X;u=J;break}}case 1015:{ie=0;if(!(c[(s+(r*20|0)&p)+4>>2]|0)){V=_d;if(!((c[(V&p)>>2]|0)==0&(c[(V&p)+4>>2]|0)==0)){S=z;T=s;U=W;V=X;break}V=Rb;if(!((c[(V&p)>>2]|0)==0&(c[(V&p)+4>>2]|0)==0)){S=z;T=s;U=W;V=X;break}S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0;break}else{V=Qb;if(!((c[(V&p)>>2]|0)==0&(c[(V&p)+4>>2]|0)==0)){S=z;T=s;U=W;V=X;break}V=Rb;if(!((c[(V&p)>>2]|0)==0&(c[(V&p)+4>>2]|0)==0)){S=z;T=s;U=W;V=X;break}S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0;break}}case 1022:{ie=0;t=c[(sb&p)>>2]|0;if(!t)v=z+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)|0;else{while(1){u=c[(t&p)+4>>2]|0;if(!u)break;else t=u}v=(c[(t&p)+16>>2]|0)+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)|0}U=Vg(v)|0;V=v;c[(V&p)>>2]=U;c[(V&p)+4>>2]=G;V=v+8|0;b[(V&o)>>1]=e[(V&o)>>1]&48640|4;V=c[(s+(r*20|0)&p)+8>>2]|0;U=z+(V*40|0)|0;t=Vg(U)|0;u=G;c[(U&p)>>2]=t;c[(U&p)+4>>2]=u;V=z+(V*40|0)+8|0;b[(V&o)>>1]=e[(V&o)>>1]&48640|4;V=v;U=c[(V&p)+4>>2]|0;if((U|0)<(u|0)|((U|0)==(u|0)?(c[(V&p)>>2]|0)>>>0>>0:0)){S=v;c[(S&p)>>2]=t;c[(S&p)+4>>2]=u;S=z;T=s;U=W;V=X;u=L}else{S=z;T=s;U=W;V=X;u=L}break}case 1028:{ie=0;V=z+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)|0;U=c[(V&p)+4>>2]|0;if((U|0)>0|(U|0)==0&(c[(V&p)>>2]|0)>>>0>0){S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0}else{S=z;T=s;U=W;V=X}break}case 1030:{ie=0;T=c[(s+(r*20|0)&p)+12>>2]|0;U=z+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)|0;V=U;T=jw(c[(V&p)>>2]|0,c[(V&p)+4>>2]|0,T|0,((T|0)<0)<<31>>31|0)|0;V=G;c[(U&p)>>2]=T;c[(U&p)+4>>2]=V;if((V|0)<0){S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0}else{S=z;T=s;U=W;V=X}break}case 1032:{ie=0;t=z+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)|0;v=t;u=c[(v&p)>>2]|0;v=c[(v&p)+4>>2]|0;if((u|0)==0&(v|0)==0){S=z;T=s;U=W;V=X;u=J}else{T=c[(s+(r*20|0)&p)+12>>2]|0;T=jw(T|0,((T|0)<0)<<31>>31|0,u|0,v|0)|0;S=t;c[(S&p)>>2]=T;c[(S&p)+4>>2]=G;S=z;T=s;U=W;V=X;u=J;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0}break}case 1034:{ie=0;T=z+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)|0;U=T;U=jw(c[(U&p)>>2]|0,c[(U&p)+4>>2]|0,-1,-1)|0;V=G;c[(T&p)>>2]=U;c[(T&p)+4>>2]=V;if((U|0)==0&(V|0)==0){S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0}else{S=z;T=s;U=W;V=X}break}case 1036:{ie=0;T=z+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)|0;V=T;U=c[(V&p)>>2]|0;V=c[(V&p)+4>>2]|0;S=jw(U|0,V|0,1,0)|0;c[(T&p)>>2]=S;c[(T&p)+4>>2]=G;if((U|0)==0&(V|0)==0){S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0}else{S=z;T=s;U=W;V=X}break}case 1157:{ie=0;S=z;T=s;U=W;V=X;r=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;break}case 1158:{ie=0;if(c[(s+(r*20|0)&p)+4>>2]|0){b[(Yd&o)>>1]=b[(Yd&o)>>1]|8;S=z;T=s;U=W;V=X;break}t=c[(Vb&p)>>2]|0;if(!t){S=z;T=s;U=W;V=X}else{do{V=t+88|0;b[(V&o)>>1]=b[(V&o)>>1]|8;t=c[(t&p)+52>>2]|0}while((t|0)!=0);S=z;T=s;U=W;V=X}break}case 1166:{ie=0;J=(c[(w&p)>>2]|0)+72|0;t=c[(J&p)>>2]|0;D:do if(t){while(1){if((c[(t&p)+4>>2]|0)==(A|0)?(c[(t&p)>>2]|0)==(C|0):0)break;t=c[(t&p)+12>>2]|0;if(!t){ie=1171;break D}}if(!t)ie=1171}else ie=1171;while(0);if((ie|0)==1171){ie=0;t=qg(16,0)|0;if(!t){t=r;s=7;u=x;ie=1309;break c}U=t+0|0;V=U+12|0;do{a[(U&n)>>0]=0;U=U+1|0}while((U|0)<(V|0));c[(t&p)+4>>2]=A;c[(t&p)>>2]=C;c[(t&p)+12>>2]=c[(J&p)>>2];c[(J&p)>>2]=t}t=t+8|0;if((d[(t&n)>>0]|0)<(v&255)){a[(t&n)>>0]=v;S=z;T=s;U=W;V=X}else{S=z;T=s;U=W;V=X}break}case 1213:{ie=0;c[(sd&p)>>2]=0;v=c[((c[(s+(r*20|0)&p)+16>>2]|0)&p)+8>>2]|0;if(!v){t=r;s=6;u=x;ie=1309;break c}w=c[(v&p)>>2]|0;if(!w){t=r;s=6;u=x;ie=1309;break c}C=rc[c[(w&p)+24>>2]&127](v,sd)|0;Mm(f,v);if(C){t=r;s=C;u=x;ie=1309;break c}c[(c[(sd&p)>>2]&p)>>2]=v;t=xm(f,c[(s+(r*20|0)&p)+4>>2]|0,0,-1,0)|0;if(!t){a[(ge&n)>>0]=1;lc[c[(w&p)+28>>2]&127](c[(sd&p)>>2]|0)|0;S=z;T=s;U=W;V=X;break}else{c[(t&p)+32>>2]=c[(sd&p)>>2];S=v+4|0;c[(S&p)>>2]=(c[(S&p)>>2]|0)+1;S=z;T=s;U=W;V=X;break}}case 1226:{ie=0;t=z+(C*40|0)+8|0;if(!(b[(t&o)>>1]&9312)){b[(t&o)>>1]=1;S=z;T=s;U=W;V=X;break}else{vg(A);S=z;T=s;U=W;V=X;break}}case 1257:{ie=0;S=u;c[(S&p)>>2]=c[((c[((c[((c[(Xd&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<4)&p)+4>>2]|0)&p)+4>>2]|0)&p)+44>>2];c[(S&p)+4>>2]=0;S=z;T=s;U=W;V=X;break}case 1258:{ie=0;v=c[((c[(Xd&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<4)&p)+4>>2]|0;t=c[(s+(r*20|0)&p)+12>>2]|0;u=c[(v&p)+4>>2]|0;if(!t)t=0;else{V=c[(u&p)+44>>2]|0;t=V>>>0>>0?t:V}c[(u&p)+4>>2]=c[(v&p)>>2];u=(c[(u&p)>>2]|0)+156|0;if((t|0)>0)c[(u&p)>>2]=t;else t=c[(u&p)>>2]|0;S=J;c[(S&p)>>2]=t;c[(S&p)+4>>2]=((t|0)<0)<<31>>31;S=z;T=s;U=W;V=X;u=J;break}case 1264:{ie=0;r=c[(s+(t*20|0)&p)+8>>2]|0;r=(r|0)==0?t:r+-1|0;if((c[(Sa&p)>>2]|0)!=0?(b[(Yd&o)>>1]&512)==0:0){t=c[(s+(t*20|0)&p)+16>>2]|0;if(!t){t=c[(ce&p)>>2]|0;if(!t){S=z;T=s;U=W;V=X;u=L;break}}c[(Sd&p)>>2]=0;F=c[(f&p)>>2]|0;v=c[(F&p)+88>>2]|0;c[(fb&p)>>2]=Nd;c[(gb&p)>>2]=Nd;c[(hb&p)>>2]=0;c[(ib&p)>>2]=100;c[(jb&p)>>2]=v;a[(kb&n)>>0]=1;a[(lb&n)>>0]=0;c[(qd&p)>>2]=F;v=a[(t&n)>>0]|0;u=v<<24>>24==0;E:do if((c[(F&p)+160>>2]|0)>1){if(!u)while(1){u=t;do{u=u+1|0;if(v<<24>>24==10)break;v=a[(u&n)>>0]|0}while(v<<24>>24!=0);Sk(qd,42288,3);Sk(qd,t,u-t|0);v=a[(u&n)>>0]|0;if(!(v<<24>>24))break;else t=u}}else if(!u){H=F+62|0;K=1;do{F:do if(!(v<<24>>24)){A=0;u=0}else{C=t;u=0;while(1){A=Cn(C,ke)|0;if((c[(ke&p)>>2]|0)==135)break F;u=A+u|0;C=C+A|0;if(!(a[(C&n)>>0]|0)){A=0;break}}}while(0);Sk(qd,t,u);C=t+u|0;if(!A)break E;do if((a[(C&n)>>0]|0)==63)if((A|0)>1){Dn(t+(u+1)|0,Sd)|0;C=c[(Sd&p)>>2]|0;break}else{c[(Sd&p)>>2]=K;C=K;break}else{C=qh(f,C,A)|0;c[(Sd&p)>>2]=C}while(0);t=t+(u+A)|0;K=C+1|0;J=C+-1|0;I=c[(Ab&p)>>2]|0;C=I+(J*40|0)|0;A=e[(I+(J*40|0)&o)+8>>1]|0;do if(!(A&1)){if(A&4){T=C;U=c[(T&p)+4>>2]|0;V=ke;c[(V&p)>>2]=c[(T&p)>>2];c[(V&p)+4>>2]=U;En(qd,0,19920,ke);break}if(A&8){h[(k&q)>>3]=+h[(C&q)>>3];c[(ke&p)>>2]=c[(k&p)>>2];c[(ke&p)+4>>2]=c[(k&p)+4>>2];En(qd,0,20272,ke);break}if(!(A&2)){if(A&16384){c[(ke&p)>>2]=c[(C&p)>>2];En(qd,0,42304,ke);break}Sk(qd,42320,2);E=c[(I+(J*40|0)&p)+12>>2]|0;if((E|0)>0){C=I+(J*40|0)+16|0;A=0;do{c[(ke&p)>>2]=d[((c[(C&p)>>2]|0)+A&n)>>0];En(qd,0,42328,ke);A=A+1|0}while((A|0)!=(E|0))}Sk(qd,42336,1);break}else{E=a[(H&n)>>0]|0;if(E<<24>>24==1){V=c[(I+(J*40|0)&p)+16>>2]|0;c[(ke&p)>>2]=c[(I+(J*40|0)&p)+12>>2];c[(ke&p)+4>>2]=V;En(qd,0,42296,ke);break}U=Od+0|0;V=U+40|0;do{c[(U&p)>>2]=0;U=U+4|0}while((U|0)<(V|0));c[(nb&p)>>2]=F;Xg(Od,c[(I+(J*40|0)&p)+16>>2]|0,c[(I+(J*40|0)&p)+12>>2]|0,E,0)|0;V=c[(ob&p)>>2]|0;if(!((V&2|0)==0|(V&16711680|0)==65536))Bn(Od,1)|0;V=c[(qb&p)>>2]|0;c[(ke&p)>>2]=c[(pb&p)>>2];c[(ke&p)+4>>2]=V;En(qd,0,42296,ke);if((b[(ob&o)>>1]&9312)==0&(c[(rb&p)>>2]|0)==0)break;Qg(Od);break}}else Sk(qd,20304,4);while(0);v=a[(t&n)>>0]|0}while(v<<24>>24!=0)}while(0);S=tg(qd)|0;jc[c[(Sa&p)>>2]&15](c[(mb&p)>>2]|0,S);mg(le,S);S=z;T=s;U=W;V=X;u=L}else{S=z;T=s;U=W;V=X;u=L}break}}if((ie|0)==28){ie=0;z=s+(r*20|0)+4|0;t=c[(z&p)>>2]|0;if(t){y=z;ie=34;break}z=c[(sb&p)>>2]|0;if(!z){ie=30;break}c[(sb&p)>>2]=c[(z&p)+4>>2];c[(tb&p)>>2]=(c[(tb&p)>>2]|0)+-1;l=c[(ub&p)>>2]|0;c[(vb&p)>>2]=l;c[(wb&p)>>2]=(c[(wb&p)>>2]|0)+l;z=Xl(z)|0;l=ne;t=c[(zc&p)>>2]|0;if((c[(s+(r*20|0)&p)+8>>2]|0)==4)r=(c[(t+(z*20|0)&p)+8>>2]|0)+-1|0;else r=z;m=c[(l&p)>>2]|0;l=c[(l&p)+4>>2]|0;S=c[(Nc&p)>>2]|0;T=t;U=W;V=X}else if((ie|0)==488){ie=0;u=sm(le,C,A)|0;if(!u){S=z;T=s;U=W;V=X;u=E}else{t=r;ie=1318;break}}z=S;s=T;W=U;X=V;t=r+1|0}switch(ie|0){case 30:{c[(me&p)>>2]=t;a[(fe&n)>>0]=c[(s+(r*20|0)&p)+8>>2];c[(he&p)>>2]=r;ie=41;break}case 34:{c[(me&p)>>2]=t;a[(fe&n)>>0]=c[(s+(r*20|0)&p)+8>>2];c[(he&p)>>2]=r;t=a[(s+(r*20|0)&n)+3>>0]|0;if(!(t<<24>>24)){s=c[(s+(r*20|0)&p)+16>>2]|0;if(!s){s=0;ie=39}else{c[(ke&p)>>2]=s;dh(je,le,10344,ke)}}else{u=c[((t&255)+-1<<2&p)+41536>>2]|0;t=c[(s+(r*20|0)&p)+16>>2]|0;if(!t){s=u;ie=39}else{c[(ke&p)>>2]=u;c[(ke&p)+4>>2]=t;dh(je,le,41624,ke)}}if((ie|0)==39){c[(ke&p)>>2]=s;dh(je,le,41656,ke)}ie=c[(y&p)>>2]|0;qd=c[(ce&p)>>2]|0;rd=c[(je&p)>>2]|0;c[(ke&p)>>2]=r;c[(ke&p)+4>>2]=qd;c[(ke&p)+8>>2]=rd;bd(ie,41600,ke);ie=41;break}case 80:{x=c[(be&p)>>2]|0;if(!((x|0)==0|g>>>0>>0)?(lc[x&127](c[(Zd&p)>>2]|0)|0)!=0:0){r=m;s=9;m=u;ie=1311;break a}rd=_d;qd=c[(rd&p)+4>>2]|0;if((qd|0)>0|(qd|0)==0&(c[(rd&p)>>2]|0)>>>0>0){s=c[(f&p)>>2]|0;c[(me&p)>>2]=787;a[(fe&n)>>0]=2;dh(je,s,34376,ke);s=1;ie=1309;break}x=$l(f,1)|0;if(!x){c[($d&p)>>2]=(c[($d&p)>>2]|0)+2|1;y=c[(s+(t*20|0)&p)+4>>2]|0;c[(de&p)>>2]=z+(y*40|0);r=s+(t*20|0)+8|0;if((c[(r&p)>>2]|0)>0){x=0;do{v=x+y|0;w=z+(v*40|0)|0;v=z+(v*40|0)+8|0;s=b[(v&o)>>1]|0;if(s&4096){if(Vl(w)|0){y=ge;z=je;r=m;m=u;ie=1317;break a}s=b[(v&o)>>1]|0}if((s&514)==2)am(w)|0;x=x+1|0}while((x|0)<(c[(r&p)>>2]|0))}if(a[(ge&n)>>0]|0){y=ge;z=je;r=m;m=u;ie=1317;break a}c[(he&p)>>2]=t+1;r=m;m=g;g=100;break a}else{s=x;ie=1309}break}case 313:{c[(ke&p)>>2]=73058;c[(ke&p)+4>>2]=10788;bd(11,13600,ke);s=11;ie=1309;break}case 343:{c[(ke&p)>>2]=73142;c[(ke&p)+4>>2]=10788;bd(11,13600,ke);s=11;ie=1309;break}case 447:{dh(je,le,41712,ke);t=r;s=5;ie=1309;break}case 460:{c[(ke&p)>>2]=s;dh(je,le,41768,ke);s=1;ie=1309;break}case 462:{dh(je,le,41792,ke);s=5;ie=1309;break}case 467:{c[(he&p)>>2]=g;a[(ee&n)>>0]=0;c[(me&p)>>2]=5;g=5;break a}case 489:{v=c[(s+(t*20|0)&p)+4>>2]|0;s=c[(s+(t*20|0)&p)+8>>2]|0;g=(v|0)!=0;if(g){s=(s|0)!=0;if(!(s|(a[(ee&n)>>0]|0)!=0))if((c[(ae&p)>>2]|0)>0){dh(je,le,41848,ke);g=m;m=r;s=5;ie=1309;break}else s=0}else s=(s|0)!=0;if((v|0)==(d[(ee&n)>>0]|0)){if(g)g=s?41952:42e3;else g=41904;dh(je,le,g,ke);g=m;m=r;s=1;ie=1309;break}if(!s){g=tm(f,1)|0;if(g)break a;a[(ee&n)>>0]=v;if((Rl(f)|0)==5){c[(he&p)>>2]=t;a[(ee&n)>>0]=1-v;c[(me&p)>>2]=5;g=5;break a}}else{Kl(le,516);a[(ee&n)>>0]=1}Ll(le);g=(c[(me&p)>>2]|0)==0?101:1;break a}case 508:{c[(he&p)>>2]=g;c[(me&p)>>2]=5;g=5;break a}case 522:{mg(le,c[(je&p)>>2]|0);c[(je&p)>>2]=kh(le,16040)|0;s=c[(s&p)>>2]|0;if((c[(c[((c[(Xd&p)>>2]|0)+(s<<4)&p)+12>>2]&p)>>2]|0)!=(v|0))vm(le,s);b[(Yd&o)>>1]=b[(Yd&o)>>1]|8;s=17;ie=1309;break}case 542:{c[(ke&p)>>2]=73997;c[(ke&p)+4>>2]=10788;bd(11,13600,ke);u=11;x=s;ie=1318;break}case 560:{c[(s&p)+56>>2]=0;s=7;ie=1309;break}case 832:{a[(fe&n)>>0]=2;s=6;ie=1309;break}case 882:{Eg(le);y=ge;z=je;r=m;m=u;ie=1317;break a}case 884:{Eg(le);if((s|0)==7){y=ge;z=je;r=m;m=u;ie=1317;break a}else ie=1309;break}case 998:{dh(je,le,42112,ke);s=1;ie=1309;break}case 1080:{c[(ke&p)>>2]=s?42208:42216;dh(je,le,42152,ke);s=1;ie=1309;break}case 1101:{dh(je,le,42344,ke);s=1;ie=1309;break}case 1103:{dh(je,le,42384,ke);s=1;ie=1309;break}case 1145:{c[(ke&p)>>2]=56343;c[(ke&p)+4>>2]=10788;bd(11,13600,ke);s=11;ie=1309;break}case 1316:{dh(je,le,10096,ke);r=m;s=18;m=u;ie=1311;break a}}if((ie|0)==41)if((Rl(f)|0)==5){c[(me&p)>>2]=5;r=m;m=g;g=5;break a}else{r=m;m=g;g=(c[(me&p)>>2]|0)!=0?1:101;break a}else if((ie|0)==1309){r=m;t=t+1|0;m=u;ie=1311;break a}else if((ie|0)==1318){u=(a[(ge&n)>>0]|0)==0?u:7;if((u|0)==3082){r=m;s=3082;m=x;ie=1311;break a}else if((u|0)!=516){r=u&255;if(r>>>0>26|(r|0)==2)s=16328;else s=c[(r<<2&p)+15488>>2]|0}else s=16344;c[(ke&p)>>2]=s;dh(je,le,10344,ke);r=m;s=u;m=x;ie=1311;break a}}else{u=f+44|0;r=m;g=0;t=0;m=0}while(0);c[(me&p)>>2]=9;c[(ke&p)>>2]=15832;dh(u,le,10344,ke);s=9;ie=1311}while(0);if((ie|0)==1317){a[(y&n)>>0]=1;dh(z,le,15776,ke);s=7;ie=1311}if((ie|0)==1311){c[(me&p)>>2]=s;qd=c[(f&p)+168>>2]|0;rd=c[(f&p)+44>>2]|0;c[(ke&p)>>2]=t;c[(ke&p)+4>>2]=qd;c[(ke&p)+8>>2]=rd;bd(s,42256,ke);Rl(f)|0;if((s|0)==3082)a[(le&n)+65>>0]=1;if(!(m<<24>>24)){m=g;g=1}else{vm(le,(m&255)+-1|0);m=g;g=1}}rd=ne;c[(rd&p)>>2]=r;c[(rd&p)+4>>2]=l;rd=f+124|0;c[(rd&p)>>2]=(c[(rd&p)>>2]|0)+m;i=oe;return g|0} function Ev(e){e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=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=e+20|0;u=e+14|0;f=a[(u&n)>>0]|0;z=e+13|0;g=a[(z&n)>>0]|0;a:do if((f&255)>(g&255))f=0;else{B=e+4|0;C=e+16|0;v=e+8|0;w=e+12|0;x=e+24|0;y=e+28|0;i=f&255;j=c[(B&p)>>2]|0;h=c[(D&p)>>2]|0;b:while(1){t=c[(e+(i+-2<<2)&p)+24>>2]|0;s=c[(e+(i+-1<<2)&p)+24>>2]|0;if(j){while(1){r=j+12|0;if((h|0)<(c[(r&p)>>2]|0)){g=h;f=(c[(j&p)+20>>2]|0)+(h*48|0)|0;while(1){do if((c[(f&p)+8>>2]|0)==(t|0)?(c[(f&p)+12>>2]|0)==(s|0):0){if((d[(u&n)>>0]|0)>=3?(c[((c[(f&p)>>2]|0)&p)+4>>2]&1|0)!=0:0)break;q=f+18|0;h=b[(q&o)>>1]|0;if((h&1024)!=0?(A=a[(z&n)>>0]|0,(A&255)<22):0){i=c[((c[(f&p)>>2]|0)&p)+16>>2]|0;c:do if(!i)i=0;else while(1){k=c[(i&p)+4>>2]|0;if(!(k&4096))break c;if(!(k&262144))i=i+12|0;else i=c[((c[(i&p)+20>>2]|0)&p)+4>>2]|0;i=c[(i&p)>>2]|0;if(!i){i=0;break}}while(0);d:do if(!(A<<24>>24)){m=0;k=0}else{l=c[(i&p)+28>>2]|0;m=i+32|0;k=0;while(1){if((c[(e+(k<<2)&p)+24>>2]|0)==(l|0)?(c[(e+((k|1)<<2)&p)+24>>2]|0)==(b[(m&o)>>1]|0):0){m=A;break d}k=k+2|0;if((k|0)>=(A&255|0)){m=A;break}}}while(0);if((k|0)==(m&255|0)){c[(e+(k<<2)&p)+24>>2]=c[(i&p)+28>>2];c[(e+((k|1)<<2)&p)+24>>2]=b[(i&o)+32>>1];a[(z&n)>>0]=(d[(z&n)>>0]|0)+2}}i=h&65535;if(i&c[(C&p)>>2]){if((c[(v&p)>>2]|0)!=0&(i&128|0)==0){l=c[(c[(j&p)>>2]&p)>>2]|0;k=c[(f&p)>>2]|0;i=a[(w&n)>>0]|0;h=(nv(k)|0)<<24>>24;if((h|0)==66){if(i<<24>>24!=66)break}else if((h|0)!=65?i<<24>>24<=66:0)break;h=Ou(l,c[(k&p)+12>>2]|0,c[(k&p)+16>>2]|0)|0;if(!h)h=c[((c[(l&p)>>2]|0)&p)+8>>2]|0;if(dd(c[(h&p)>>2]|0,c[(v&p)>>2]|0)|0)break;h=b[(q&o)>>1]|0}if(!(h&2))break b;h=c[((c[(f&p)>>2]|0)&p)+16>>2]|0;if((a[(h&n)>>0]|0)!=-102)break b;if((c[(h&p)+28>>2]|0)!=(c[(x&p)>>2]|0))break b;if((b[(h&o)+32>>1]|0)!=(c[(y&p)>>2]|0))break b}}while(0);g=g+1|0;if((g|0)>=(c[(r&p)>>2]|0))break;else f=f+48|0}g=c[(B&p)>>2]|0}else g=j;j=c[(g&p)+4>>2]|0;c[(B&p)>>2]=j;if(!j)break;else h=0}f=a[(u&n)>>0]|0;g=a[(z&n)>>0]|0}j=c[(e&p)>>2]|0;c[(B&p)>>2]=j;h=(f&255)+2|0;f=h&255;a[(u&n)>>0]=f;if((f&255)>(g&255)){f=0;break a}else{i=h&255;h=0}}c[(D&p)>>2]=g+1}while(0);return f|0}function Fv(d,f){d=d|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0,m=0,q=0;g=c[(d&p)>>2]|0;l=c[(c[(g&p)>>2]&p)>>2]|0;d=c[(d&p)+16>>2]|0;a:do if(!d){g=g+16|0;i=c[(g&p)>>2]|0;k=f+36|0;if((c[(k&p)>>2]&512|0)!=0&(i|0)!=0){d=f+20|0;j=f+22|0;h=a[(f&n)+16>>0]|0;do{do if((a[(i&n)+16>>0]|0)==h<<24>>24?(c[(i&p)+36>>2]&512|0)!=0:0){if(Tv(i,f)|0){b[(d&o)>>1]=b[(i&o)+20>>1]|0;b[(j&o)>>1]=(e[(i&o)+22>>1]|0)+65535;break}if(Tv(f,i)|0){b[(d&o)>>1]=b[(i&o)+20>>1]|0;b[(j&o)>>1]=(e[(i&o)+22>>1]|0)+1}}while(0);i=c[(i&p)+52>>2]|0}while((i|0)!=0)}d=Uv(g,f)|0;if(d){g=c[(d&p)>>2]|0;b:do if(g){d=g+52|0;if(c[(d&p)>>2]|0)do{d=Uv(d,f)|0;if(!d)break b;h=c[(d&p)>>2]|0;if(!h)break b;c[(d&p)>>2]=c[(h&p)+52>>2];Ju(l,h);mg(l,h)}while((c[(d&p)>>2]|0)!=0)}else{g=mh(l,72,0)|0;c[(d&p)>>2]=g;if(!g){d=7;break a}c[(g&p)+48>>2]=g+56;b[(g&o)+40>>1]=0;b[(g&o)+44>>1]=3;c[(g&p)+36>>2]=0;c[(g&p)+52>>2]=0}while(0);Lv(l,g);do if(!(Nu(l,g,e[(f&o)+40>>1]|0)|0)){h=g+0|0;d=f+0|0;i=h+44|0;do{c[(h&p)>>2]=c[(d&p)>>2];h=h+4|0;d=d+4|0}while((h|0)<(i|0));kw(c[(g&p)+48>>2]|0,c[(f&p)+48>>2]|0,e[(g&o)+40>>1]<<2|0)|0;d=c[(k&p)>>2]|0;if(d&1024){a[(f&n)+28>>0]=0;break}if(d&16384)c[(f&p)+28>>2]=0}else{d=g+24|0;c[(d&p)>>2]=0;c[(d&p)+4>>2]=0;c[(d&p)+8>>2]=0}while(0);if(((c[(g&p)+36>>2]&1024|0)==0?(m=g+28|0,q=c[(m&p)>>2]|0,(q|0)!=0):0)?(c[(q&p)+40>>2]|0)==0:0){c[(m&p)>>2]=0;d=0}else d=0}else d=0}else{g=f;Kv(d,c[(g&p)>>2]|0,c[(g&p)+4>>2]|0,b[(f&o)+20>>1]|0,b[(f&o)+22>>1]|0);d=0}while(0);return d|0}function Gv(a,b){a=a|0;b=b|0;var c=0,e=0;c=a<<16>>16;e=b<<16>>16;do if(a<<16>>16>16)if((e|0)<=(c+49|0))if((e|0)>(c+31|0)){a=e+1&65535;break}else{a=(d[(e-c&n)+34032>>0]|0)+e&65535;break}else a=b;else if((c|0)<=(e+49|0))if((c|0)>(e+31|0)){a=c+1&65535;break}else{a=(d[(c-e&n)+34032>>0]|0)+c&65535;break}while(0);return a|0}function Hv(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0;do if(!(Cu(b,d,e)|0))f=1;else{f=a[(d&n)>>0]|0;if(f<<24>>24==71){if(Hv(b,c[(d&p)+12>>2]|0,e)|0){f=1;break}if(Hv(b,c[(d&p)+16>>2]|0,e)|0){f=1;break}if(f<<24>>24==77)g=6}else if(f<<24>>24==77)g=6;if(((g|0)==6?(Cu(c[(b&p)+12>>2]|0,c[(d&p)+12>>2]|0,e)|0)==0:0)?(f=a[(b&n)>>0]|0,!(f<<24>>24==73|f<<24>>24==76)):0){f=1;break}f=0}while(0);return f|0}function Iv(a,d,f){a=a|0;d=d|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0;x=i;i=i+16|0;if((i|0)>=(j|0))fa();w=x;u=d;v=d+8|0;g=v;t=~(c[(g&p)>>2]|c[(u&p)>>2]);u=~(c[(g&p)+4>>2]|c[(u&p)+4>>2]);g=c[(a&p)+12>>2]|0;r=a+20|0;a:do if((g|0)>0){s=d+40|0;a=d+22|0;q=d+48|0;d=0;n=c[(r&p)>>2]|0;while(1){if(b[(n&o)+20>>1]&2)break a;m=n+40|0;l=c[(m&p)>>2]|0;m=c[(m&p)+4>>2]|0;k=v;b:do if(((c[(k&p)>>2]&l|0)!=0?1:(c[(k&p)+4>>2]&m|0)!=0)&((l&t|0)==0&(m&u|0)==0)){h=b[(s&o)>>1]|0;c:do if(h<<16>>16){m=c[(q&p)>>2]|0;l=h&65535;while(1){h=l;l=l+-1|0;k=c[(m+(l<<2)&p)>>2]|0;if(k){if((k|0)==(n|0))break;k=c[(k&p)+4>>2]|0;if((k|0)>-1?((c[(r&p)>>2]|0)+(k*48|0)|0)==(n|0):0)break}if((l|0)<=0)break c}if((h|0)>=1)break b}while(0);h=b[(n&o)+16>>1]|0;if(h<<16>>16<1){b[(a&o)>>1]=(e[(a&o)>>1]|0)+(h&65535);break}b[(a&o)>>1]=(b[(a&o)>>1]|0)+-1<<16>>16;if(b[(n&o)+18>>1]&2){l=(Ms(c[((c[(n&p)>>2]|0)&p)+16>>2]|0,w)|0)!=0;m=c[(w&p)>>2]|0;m=l&(m|0)>-2&(m|0)<2?10:20;c[(w&p)>>2]=m;d=(d<<16>>16|0)<(m|0)?m&65535:d}}while(0);g=g+-1|0;if((g|0)<=0)break;else n=n+48|0}}else{a=d+22|0;d=0}while(0);d=(f<<16>>16)-(d<<16>>16)|0;if((b[(a&o)>>1]|0)>(d|0))b[(a&o)>>1]=d;i=x;return}function Jv(d,f,g,h){d=d|0;f=f|0;g=g|0;h=h|0;var k=0,l=0,m=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,ga=0,ha=0;ha=i;i=i+112|0;if((i|0)>=(j|0))fa();R=ha;V=c[(c[(c[(d&p)>>2]&p)>>2]&p)>>2]|0;ea=c[(d&p)+12>>2]|0;if(!(a[(V&n)+65>>0]|0)){ga=ea+36|0;if(!(c[(ga&p)>>2]&32))if((c[(g&p)+40>>2]|0)<1)k=63;else k=(a[(f&n)+36>>0]&8)<<4^191;else k=24;W=g+51|0;ca=ea+24|0;l=b[((c[(g&p)+4>>2]|0)+(e[(ca&o)>>1]<<1)&o)>>1]|0;N=l<<16>>16;O=d+4|0;k=Dv(R,c[(O&p)>>2]|0,c[(f&p)+40>>2]|0,N,(a[(W&n)>>0]&4)==0?k:k&131,g)|0;X=b[(ca&o)>>1]|0;Y=ea+42|0;T=b[(Y&o)>>1]|0;Z=ea+40|0;U=b[(Z&o)>>1]|0;_=c[(ga&p)>>2]|0;Q=ea;P=c[(Q&p)>>2]|0;Q=c[(Q&p)+4>>2]|0;$=ea+22|0;aa=b[($&o)>>1]|0;b[(ea&o)+18>>1]=0;ba=g+8|0;D=b[(c[(ba&p)>>2]&o)>>1]|0;if(D<<16>>16<11)C=0;else{C=D<<16>>16;C=((fs(C,((C|0)<0)<<31>>31)|0)&65535)+65503&65535}a:do if(!k)k=0;else{E=l<<16>>16<0;F=f+16|0;G=ea+8|0;H=(U&65535)+1|0;I=ea+48|0;J=h<<16>>16==0;K=g+46|0;w=l<<16>>16>-1;x=g+50|0;y=g+44|0;z=ea+20|0;A=h<<16>>16;B=g+48|0;r=0;u=k;s=0;while(1){l=b[(u&o)+18>>1]|0;t=l&65535;if(l<<16>>16==128)if(!E?(a[((c[((c[(F&p)>>2]|0)&p)+4>>2]|0)+(N*24|0)&n)+20>>0]|0)==0:0)S=12;else{m=r;l=s;k=0}else S=12;if((S|0)==12){S=0;m=u+32|0;v=m;q=G;if(((c[(q&p)>>2]&c[(v&p)>>2]|0)==0?(c[(q&p)+4>>2]&c[(v&p)+4>>2]|0)==0:0)?(L=u+20|0,!((b[(L&o)>>1]&256)!=0&l<<16>>16==16)):0){c[(ga&p)>>2]=_;b[(ca&o)>>1]=X;b[(Z&o)>>1]=U;if(Nu(V,ea,H)|0){k=0;break a}k=b[(Z&o)>>1]|0;q=k+1<<16>>16;b[(Z&o)>>1]=q;c[((c[(I&p)>>2]|0)+((k&65535)<<2)&p)>>2]=u;k=m;l=G;m=(c[(k&p)+4>>2]|Q)&~c[(l&p)+4>>2];v=ea;c[(v&p)>>2]=(c[(k&p)>>2]|P)&~c[(l&p)>>2];c[(v&p)+4>>2]=m;b:do if(!(t&1)){if(t&2){k=c[(ga&p)>>2]|0;l=k|1;c[(ga&p)>>2]=l;do if(!E){if(!J){v=0;break b}if((e[(ca&o)>>1]|0)!=((e[(K&o)>>1]|0)+-1|0)){v=0;break b}if(!w)break;if(a[(x&n)>>0]|0)break;l=k|65537;c[(ga&p)>>2]=l;v=0;break b}while(0);l=k|4097;c[(ga&p)>>2]=l;v=0;break}if(t&128){l=c[(ga&p)>>2]|8;c[(ga&p)>>2]=l;v=0;break}k=c[(ga&p)>>2]|0;if(!(t&36)){l=k|18;c[(ga&p)>>2]=l;if(!(k&32)){v=0;r=0;s=u;break}v=0;r=c[((c[(I&p)>>2]|0)+((q&65535)+-2<<2)&p)>>2]|0;s=u;break}l=k|34;c[(ga&p)>>2]=l;if(!(b[(L&o)>>1]&256)){v=0;r=u;s=0}else{k=u+48|0;if(Nu(V,ea,(q&65535)+1|0)|0){k=0;break a}l=b[(Z&o)>>1]|0;b[(Z&o)>>1]=l+1<<16>>16;c[((c[(I&p)>>2]|0)+((l&65535)<<2)&p)>>2]=k;l=c[(ga&p)>>2]|16;c[(ga&p)>>2]=l;v=0;r=u;s=k}}else{k=c[(u&p)>>2]|0;l=c[(ga&p)>>2]|4;c[(ga&p)>>2]=l;if(!(c[(k&p)+4>>2]&2048)){k=c[(k&p)+20>>2]|0;if((k|0)!=0?(M=c[(k&p)>>2]|0,(M|0)!=0):0)v=(fs(M,((M|0)<0)<<31>>31)|0)<<16>>16;else v=0}else v=46}while(0);do if(!(l&2)){k=(b[(ca&o)>>1]|0)+1<<16>>16;b[(ca&o)>>1]=k;k=k&65535;m=b[(u&o)+16>>1]|0;if(m<<16>>16<1&w){q=(m&65535)-v+(e[($&o)>>1]|0)&65535;b[($&o)>>1]=q;break}m=c[(ba&p)>>2]|0;m=(e[($&o)>>1]|0)+((e[(m+(k<<1)&o)>>1]|0)-(e[(m+(k+-1<<1)&o)>>1]|0))|0;k=m&65535;b[($&o)>>1]=k;if(!(t&128))q=k;else{q=m+10&65535;b[($&o)>>1]=q}}else{k=b[($&o)>>1]|0;q=k<<16>>16;do if(r){m=b[(r&o)+16>>1]|0;if(m<<16>>16<1){k=(m&65535)+(k&65535)&65535;break}else{k=(k&65535)+65516&65535;break}}while(0);do if(s){m=b[(s&o)+16>>1]|0;if(m<<16>>16<1){k=(m&65535)+(k&65535)&65535;break}else{k=(k&65535)+65516&65535;break}}while(0);m=(r|0)!=0;do if(m?(b[(r&o)+16>>1]|0)>0&(s|0)!=0:0){if((b[(s&o)+16>>1]|0)<=0)break;k=(k&65535)+65516&65535}while(0);q=(((s|0)!=0)<<31>>31)+(m<<31>>31)+q|0;u=k<<16>>16<10?10:k<<16>>16;q=((u|0)<(q|0)?u:q)&65535;b[($&o)>>1]=q}while(0);k=q&65535;m=Gv(C,k+1+(((b[(y&o)>>1]|0)*15|0)/(b[((c[(F&p)>>2]|0)&o)+42>>1]|0)|0)&65535)|0;if(!(l&320))m=Gv(m,k+16&65535)|0;l=v+A|0;b[(z&o)>>1]=(m&65535)+l;b[($&o)>>1]=k+l;Iv(c[(O&p)>>2]|0,ea,D);k=Fv(d,ea)|0;v=c[(ga&p)>>2]|0;b[($&o)>>1]=(v&2|0)==0?q:aa;if((v&16|0)==0?(e[(ca&o)>>1]|0)<(e[(B&o)>>1]|0):0)Jv(d,f,g,l&65535)|0;b[($&o)>>1]=aa;m=r;l=s}else{m=r;l=s;k=0}}u=Ev(R)|0;if(!((k|0)==0&(u|0)!=0))break;else{r=m;s=l}}}while(0);l=ea;c[(l&p)>>2]=P;c[(l&p)+4>>2]=Q;b[(ca&o)>>1]=X;b[(Y&o)>>1]=T;c[(ga&p)>>2]=_;b[($&o)>>1]=aa;b[(Z&o)>>1]=U;l=X&65535;if(((X<<16>>16==T<<16>>16?(da=l+1|0,da>>>0<(e[(g&o)+46>>1]|0)>>>0):0)?(a[(W&n)>>0]&64)==0:0)?(b[((c[(ba&p)>>2]|0)+(da<<1)&o)>>1]|0)>41:0){k=Nu(V,ea,(U&65535)+1|0)|0;if(!k){b[(ca&o)>>1]=(b[(ca&o)>>1]|0)+1<<16>>16;b[(Y&o)>>1]=(b[(Y&o)>>1]|0)+1<<16>>16;k=b[(Z&o)>>1]|0;b[(Z&o)>>1]=k+1<<16>>16;c[((c[(ea&p)+48>>2]|0)+((k&65535)<<2)&p)>>2]=0;c[(ga&p)>>2]=c[(ga&p)>>2]|32768;k=c[(ba&p)>>2]|0;k=(e[(k+(l<<1)&o)>>1]|0)-(e[(k+(da<<1)&o)>>1]|0)|0;b[($&o)>>1]=(e[($&o)>>1]|0)-k;Jv(d,f,g,(((k<<16)+327680|0)>>>16)+(h&65535)&65535)|0;b[($&o)>>1]=aa;b[(ca&o)>>1]=X;b[(Y&o)>>1]=X;c[(ga&p)>>2]=_;k=0}}}else k=7;i=ha;return k|0}function Kv(a,d,e,f,g){a=a|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,i=0,j=0,k=0,l=0,m=0,n=0,q=0,r=0;l=b[(a&o)>>1]|0;h=a+8|0;a:do if(l<<16>>16){j=l;k=h;while(1){i=b[(k&o)+8>>1]|0;if(i<<16>>16>=f<<16>>16?(r=k,(c[(r&p)>>2]&d|0)==(d|0)?(c[(r&p)+4>>2]&e|0)==(e|0):0):0){n=k;q=14;break a}if(i<<16>>16<=f<<16>>16?(i=k,r=c[(i&p)>>2]|0,i=c[(i&p)+4>>2]|0,(r&d|0)==(r|0)&(i&e|0)==(i|0)):0)break a;j=j+-1<<16>>16;if(!(j<<16>>16))break;else k=k+16|0}if((l&65535)>=3){i=b[(a&o)+16>>1]|0;k=1;do{if(i<<16>>16>(b[(a+(k<<4)&o)+16>>1]|0))h=a+(k<<4)+8|0;k=k+1|0;i=b[(h&o)+8>>1]|0}while((k&65535)<(l&65535));if(i<<16>>16>f<<16>>16){n=h;q=14}}else q=9}else q=9;while(0);if((q|0)==9){n=l&65535;b[(a&o)>>1]=l+1<<16>>16;b[(a+(n<<4)&o)+18>>1]=g;n=a+(n<<4)+8|0;q=14}if((q|0)==14?(m=n,c[(m&p)>>2]=d,c[(m&p)+4>>2]=e,b[(n&o)+8>>1]=f,m=n+10|0,(b[(m&o)>>1]|0)>g<<16>>16):0)b[(m&o)>>1]=g;return}function Lv(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0;e=c[(d&p)+36>>2]|0;do if(e&17408){if((e&1024|0)!=0?(h=d+28|0,(a[(h&n)>>0]|0)!=0):0){e=d+32|0;Wc(c[(e&p)>>2]|0);a[(h&n)>>0]=0;c[(e&p)>>2]=0;break}if((e&16384|0)!=0?(f=d+28|0,g=c[(f&p)>>2]|0,(g|0)!=0):0){mg(b,c[(g&p)+16>>2]|0);mg(b,c[(f&p)>>2]|0);c[(f&p)>>2]=0}}while(0);return}function Mv(f,g,h,k,l,m,q){f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;m=m|0;q=q|0;var 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,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,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;ta=i;i=i+32|0;if((i|0)>=(j|0))fa();oa=ta;s=c[(c[(f&p)>>2]&p)>>2]|0;na=l&65535;if(l<<16>>16!=0?(b[(s&o)+60>>1]&128)!=0:0)r=0;else pa=3;a:do if((pa|0)==3){sa=c[(g&p)>>2]|0;r=sa&65535;if(r>>>0<=63){qa=iw(1,0,r|0)|0;qa=jw(qa|0,G|0,-1,-1)|0;ra=G;b:do if((qa|0)==0&(ra|0)==0){g=0;h=0;s=1}else{ha=h+24|0;ia=f+4|0;ja=(r|0)==0;ea=g+4|0;ga=(k&768)==0;da=s+8|0;W=(k&256)==0;X=f+68|0;Y=oa+20|0;Z=oa+4|0;aa=oa+24|0;ba=f+328|0;_=0;$=0;g=0;h=0;k=0;t=0;ca=0;s=1;l=0;while(1){if((ca|0)>0){U=l+8|0;V=c[(U&p)>>2]|k;t=c[(U&p)+4>>2]|t}else V=k;if((ca|0)<(na|0))l=c[((c[(ha&p)>>2]|0)+(ca<<2)&p)>>2]|0;else l=m;B=l+36|0;k=c[(B&p)>>2]|0;if(k&1024)break;U=c[((c[(ia&p)>>2]|0)+((d[(l&n)+16>>0]|0)*72|0)&p)+48>>2]|0;if(!ja){k=~V;v=~t;y=0;do{A=iw(1,0,y|0)|0;z=G;c:do if((A&g|0)==0&(z&h|0)==0){u=c[((c[(ea&p)>>2]|0)+(y*20|0)&p)>>2]|0;x=c[(u&p)+4>>2]|0;if(x&4096)do{if(!(x&262144))u=u+12|0;else u=c[((c[(u&p)+20>>2]|0)&p)+4>>2]|0;u=c[(u&p)>>2]|0;x=c[(u&p)+4>>2]|0}while((x&4096|0)!=0);if(((a[(u&n)>>0]|0)==-102?(c[(u&p)+28>>2]|0)==(U|0):0)?(ka=u+32|0,la=Fu(ba,U,b[(ka&o)>>1]|0,k,v,130,0)|0,(la|0)!=0):0){do if(b[(la&o)+18>>1]&2){if((b[(ka&o)>>1]|0)<=-1)break;u=cu(c[(f&p)>>2]|0,c[((c[(ea&p)>>2]|0)+(y*20|0)&p)>>2]|0)|0;if(!u)u=c[(da&p)>>2]|0;x=c[(u&p)>>2]|0;w=cu(c[(f&p)>>2]|0,c[(la&p)>>2]|0)|0;if(!w)w=c[(da&p)>>2]|0;if(dd(x,c[(w&p)>>2]|0)|0)break c}while(0);g=A|g;h=z|h}}while(0);y=y+1|0}while((y|0)<(r|0));k=c[(B&p)>>2]|0}do if(!(k&4096)){if(!(k&256)){u=c[(l&p)+28>>2]|0;if(!u){r=0;break a}if(a[(u&n)+51>>0]&4){r=0;break a}k=b[(u&o)+48>>1]|0;s=(a[(u&n)+50>>0]|0)!=0&1;if(!(k<<16>>16)){pa=71;break}else{S=k&65535;T=b[(u&o)+46>>1]|0}}else{S=1;T=0;u=0}J=l+24|0;K=l+42|0;L=l+48|0;M=(u|0)==0;N=u+32|0;O=iw(1,0,ca|0)|0;P=G;Q=u+4|0;R=u+28|0;I=u+12|0;k=0;u=0;A=0;H=0;d:while(1){z=(u|0)<(e[(J&o)>>1]|0);if((z?(b[(K&o)>>1]|0)==0:0)?(ma=e[((c[((c[(L&p)>>2]|0)+(u<<2)&p)>>2]|0)&o)+18>>1]|0,(ma&130|0)!=0):0){s=(ma&128|0)==0?s:0;z=H}else{if(!M){x=b[((c[(Q&p)>>2]|0)+(u<<1)&o)>>1]|0;w=a[((c[(R&p)>>2]|0)+u&n)>>0]|0;v=c[(I&p)>>2]|0;x=x<<16>>16==(b[(v&o)+36>>1]|0)?-1:x<<16>>16;y=(x|0)>-1;if(s<<24>>24!=0&y)if(z){y=1;F=x}else{y=1;F=x;s=(a[((c[(v&p)+4>>2]|0)+(x*24|0)&n)+20>>0]|0)==0?0:s}else F=x}else{y=0;F=-1;w=0}if(ja){pa=68;break}else{z=1;E=0}e:while(1){C=iw(1,0,E|0)|0;D=G;do if((C&g|0)==0&(D&h|0)==0){v=c[((c[(ea&p)>>2]|0)+(E*20|0)&p)>>2]|0;x=c[(v&p)+4>>2]|0;if(!(x&4096))B=v;else{B=v;do{if(!(x&262144))x=B+12|0;else x=c[((c[(B&p)+20>>2]|0)&p)+4>>2]|0;B=c[(x&p)>>2]|0;x=c[(B&p)+4>>2]|0}while((x&4096|0)!=0)}z=ga?0:z;if((a[(B&n)>>0]|0)!=-102)break;if((c[(B&p)+28>>2]|0)!=(U|0))break;if((b[(B&o)+32>>1]|0)!=(F|0))break;if(!y){B=C;y=D;z=E;break e}x=cu(c[(f&p)>>2]|0,v)|0;if(!x)x=c[(da&p)>>2]|0;if(!(dd(c[(x&p)>>2]|0,c[((c[(N&p)>>2]|0)+(u<<2)&p)>>2]|0)|0)){B=C;y=D;z=E;break e}}while(0);E=E+1|0;if(!(z<<24>>24!=0&(E|0)<(r|0))){pa=68;break d}}do if(W){if(H<<24>>24)if((w^A)<<24>>24==(a[((c[(ea&p)>>2]|0)+(z*20|0)&n)+12>>0]|0)){z=H;break}else{pa=68;break d}v=a[((c[(ea&p)>>2]|0)+(z*20|0)&n)+12>>0]|0;A=v^w;if(w<<24>>24==v<<24>>24){z=1;break}v=q;w=c[(v&p)+4>>2]|P;z=q;c[(z&p)>>2]=c[(v&p)>>2]|O;c[(z&p)+4>>2]=w;z=1}else z=H;while(0);g=B|g;h=y|h;k=(F|0)<0?1:k}u=u+1|0;if((u|0)>=(S|0))break;else H=z}if((pa|0)==68){pa=0;s=(u|0)==0|(u|0)<(T&65535|0)?0:s}if(!(k<<24>>24))pa=71;else s=1}else pa=71;while(0);if((pa|0)==71){pa=0;if(!(s<<24>>24)){s=0;break b}}U=l+8|0;_=c[(U&p)>>2]|_;$=c[(U&p)+4>>2]|$;if(!ja){z=~_;A=~$;y=0;do{u=iw(1,0,y|0)|0;x=G;do if((u&g|0)==0&(x&h|0)==0){k=c[((c[(ea&p)>>2]|0)+(y*20|0)&p)>>2]|0;v=Av(X,k)|0;w=G;if((v|0)==0&(w|0)==0?(c[(oa&p)>>2]=0,c[(oa&p)+4>>2]=0,c[(oa&p)+8>>2]=0,c[(oa&p)+12>>2]=0,c[(oa&p)+16>>2]=0,c[(oa&p)+20>>2]=0,a[(Y&n)>>0]=1,c[(oa&p)>>2]=78,c[(Z&p)>>2]=79,c[(aa&p)>>2]=0,rs(oa,k)|0,(a[(Y&n)>>0]|0)==0):0)break;U=(v&z|0)==0&(w&A|0)==0;g=(U?u:0)|g;h=(U?x:0)|h}while(0);y=y+1|0}while((y|0)<(r|0))}if(h>>>0>ra>>>0|(h|0)==(ra|0)&g>>>0>=qa>>>0|s<<24>>24==0|(ca|0)>=(na|0))break b;else{k=V;ca=ca+1|0}}ga=(a[(l&n)+29>>0]|0)==0;g=ga?g:qa;h=ga?h:ra}while(0);if((g|0)==(qa|0)&(h|0)==(ra|0)){r=sa&255;break}if(!(s<<24>>24)){do{r=r+-1|0;if((r|0)<=0){r=0;break a}ea=iw(1,0,r|0)|0;ea=jw(ea|0,G|0,-1,-1)|0;ga=G}while(!((ea&g|0)==(ea|0)&(ga&h|0)==(ga|0)));r=r&255}else r=-1}else r=0}while(0);i=ta;return r|0}function Nv(b,c,d,e){b=b|0;c=c|0;d=d|0;e=e|0;if(c)Sk(b,33920,5);if(!d)c=0;else{c=d;while(1)if(!(a[(c&n)>>0]|0))break;else c=c+1|0;c=c-d&1073741823}Sk(b,d,c);Sk(b,e,1);Sk(b,13552,1);return}function Ov(a){a=a|0;var d=0,e=0,f=0,g=0,h=0,i=0;i=c[(c[(c[(a&p)>>2]&p)>>2]&p)>>2]|0;d=c[(a&p)+12>>2]|0;g=a+20|0;if((d|0)>0){h=c[(g&p)>>2]|0;while(1){d=d+-1|0;f=h+20|0;e=b[(f&o)>>1]|0;if(e&1){Gk(i,c[(h&p)>>2]|0);e=b[(f&o)>>1]|0}e=e&65535;if(!(e&16)){if(e&32){e=c[(h&p)+12>>2]|0;Ov(e);mg(i,e)}}else{e=c[(h&p)+12>>2]|0;Ov(e);mg(i,e)}if((d|0)<=0)break;else h=h+48|0}}d=c[(g&p)>>2]|0;if((d|0)!=(a+24|0))mg(i,d);return}function Pv(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,o=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0;u=i;i=i+32|0;if((i|0)>=(j|0))fa();t=u;h=c[(b&p)+8>>2]|0;k=c[(b&p)>>2]|0;if(e){l=(f|0)==10;m=b+437|0;o=t+4|0;q=t+1|0;r=t+8|0;s=t+12|0;g=f&255;do{if(l)f=a[(e&n)+1>>0]|0;else f=g;a[(m&n)>>0]=f;f=d[(e&n)>>0]|0;if((f|0)==108){w=Vv(b,e)|0;v=gr(k,c[(e&p)+8>>2]|0,0)|0;f=Nr(k,c[(e&p)+28>>2]|0)|0;tr(b,w,v,f,d[(m&n)>>0]|0)}else if((f|0)==109){f=Vv(b,e)|0;rr(b,f,Mr(k,c[(e&p)+20>>2]|0,0,0)|0)}else if((f|0)==110){w=Vv(b,e)|0;v=Pr(k,c[(e&p)+24>>2]|0,0)|0;f=Mr(k,c[(e&p)+20>>2]|0,0,0)|0;sr(b,w,v,f,d[(m&n)>>0]|0)}else{f=gr(k,c[(e&p)+8>>2]|0,0)|0;a[(t&n)>>0]=4;c[(o&p)>>2]=0;a[(q&n)>>0]=0;c[(r&p)>>2]=0;c[(s&p)>>2]=0;ir(b,f,t)|0;Mk(k,f,1)}if((a[(e&n)>>0]|0)!=119)wh(h,98,0,0,0)|0;e=c[(e&p)+32>>2]|0}while((e|0)!=0)}i=u;return}function Qv(d,e,f,g){d=d|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0;m=i;i=i+16|0;if((i|0)>=(j|0))fa();h=m;l=c[(d&p)>>2]|0;c[(h&p)>>2]=0;c[(h&p)+4>>2]=0;h=nr(l,159,h,0)|0;do if(!h)h=0;else{k=g<<16>>16;if(g<<16>>16>-1?(b[(e&o)+36>>1]|0)!=g<<16>>16:0){g=c[(e&p)+4>>2]|0;c[(h&p)+28>>2]=f+1+k;a[(h&n)+1>>0]=a[(g+(k*24|0)&n)+21>>0]|0;k=c[(g+(k*24|0)&p)+16>>2]|0;if(!k)k=c[(c[(l&p)+8>>2]&p)>>2]|0;h=xv(d,h,k)|0;break}c[(h&p)+28>>2]=f;a[(h&n)+1>>0]=68}while(0);i=m;return h|0}function Rv(d,e,f,g){d=d|0;e=e|0;f=f|0;g=g|0;var h=0,i=0,j=0;d=mh(d,48,0)|0;if(d){h=d+0|0;i=h+44|0;do{a[(h&n)>>0]=0;h=h+1|0}while((h|0)<(i|0));a[(d&n)>>0]=-102;b[(d&o)+34>>1]=-1;c[(d&p)+24>>2]=1;h=c[(e+(f*72|0)&p)+24>>2]|0;c[(d&p)+44>>2]=h;c[(d&p)+28>>2]=c[(e+(f*72|0)&p)+48>>2];if((b[(h&o)+36>>1]|0)==(g|0))b[(d&o)+32>>1]=-1;else{b[(d&o)+32>>1]=g;j=(g|0)>63;g=iw(1,0,g|0)|0;h=e+(f*72|0)+64|0;f=h;i=c[(f&p)+4>>2]|(j?-2147483648:G);c[(h&p)>>2]=c[(f&p)>>2]|(j?0:g);c[(h&p)+4>>2]=i}h=d+4|0;c[(h&p)>>2]=c[(h&p)>>2]|4}return d|0}function Sv(b,e){b=b|0;e=e|0;if((a[(e&n)>>0]|0)==-101){e=e+38|0;a[(e&n)>>0]=(d[(e&n)>>0]|0)+(c[(b&p)+24>>2]|0)}return 0}function Tv(a,d){a=a|0;d=d|0;var f=0,g=0,h=0,i=0,j=0,k=0;f=b[(a&o)+40>>1]|0;i=f&65535;h=b[(a&o)+42>>1]|0;k=e[(d&o)+40>>1]|0;g=b[(d&o)+42>>1]|0;a:do if(!((g&65535)>(h&65535)?1:(i-(h&65535)|0)>=(k-(g&65535)|0))){g=b[(a&o)+20>>1]|0;h=b[(d&o)+20>>1]|0;if(g<<16>>16>=h<<16>>16){if(g<<16>>16>h<<16>>16){f=0;break}if((b[(a&o)+22>>1]|0)>(b[(d&o)+22>>1]|0)){f=0;break}}if(!(f<<16>>16))f=1;else{j=c[(a&p)+48>>2]|0;d=d+48|0;a=i;while(1){a=a+-1|0;h=c[(j+(a<<2)&p)>>2]|0;if(h){f=k;while(1){g=f+-1|0;if((f|0)<=0){f=0;break a}if((c[((c[(d&p)>>2]|0)+(g<<2)&p)>>2]|0)==(h|0))break;else f=g}if((f|0)<1){f=0;break a}}if((a|0)<=0){f=1;break}}}}else f=0;while(0);return f|0}function Uv(d,e){d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0,v=0;f=c[(d&p)>>2]|0;a:do if(f){k=a[(e&n)+16>>0]|0;l=e+17|0;m=e+18|0;q=e+20|0;r=e+22|0;s=e+42|0;t=e+36|0;do{if((a[(f&n)+16>>0]|0)==k<<24>>24?(a[(f&n)+17>>0]|0)==(a[(l&n)>>0]|0):0){if((((c[(f&p)+36>>2]&16384|0)!=0?(b[(s&o)>>1]|0)==0:0)?(c[(t&p)>>2]&513|0)==513:0)?(i=f,j=e,h=c[(j&p)>>2]|0,j=c[(j&p)+4>>2]|0,(h&c[(i&p)>>2]|0)==(h|0)?(j&c[(i&p)+4>>2]|0)==(j|0):0):0)break a;u=f;v=c[(u&p)>>2]|0;u=c[(u&p)+4>>2]|0;h=e;g=c[(h&p)>>2]|0;h=c[(h&p)+4>>2]|0;i=g&v;j=h&u;if((((i|0)==(v|0)&(j|0)==(u|0)?(b[(f&o)+18>>1]|0)<=(b[(m&o)>>1]|0):0)?(b[(f&o)+20>>1]|0)<=(b[(q&o)>>1]|0):0)?(b[(f&o)+22>>1]|0)<=(b[(r&o)>>1]|0):0){d=0;break a}if(((i|0)==(g|0)&(j|0)==(h|0)?(b[(f&o)+20>>1]|0)>=(b[(q&o)>>1]|0):0)?(b[(f&o)+22>>1]|0)>=(b[(r&o)>>1]|0):0)break a}d=f+52|0;f=c[(d&p)>>2]|0}while((f|0)!=0)}while(0);return d|0}function Vv(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;h=pr(c[(a&p)>>2]|0,0,b+12|0,0)|0;do if(h){g=c[(a&p)>>2]|0;f=c[((c[(b&p)+4>>2]|0)&p)+20>>2]|0;a:do if(f){e=c[(g&p)+20>>2]|0;if((e|0)>0){b=c[(g&p)+16>>2]|0;d=0;while(1){a=d+1|0;if((c[(b+(d<<4)&p)+12>>2]|0)==(f|0)){a=d;d=7;break a}if((a|0)<(e|0))d=a;else{d=7;break}}}else a=0}else{a=-1e6;d=7}while(0);if((d|0)==7)if(!((a|0)==0|(a|0)>1))break;a=kh(g,c[((c[(g&p)+16>>2]|0)+(a<<4)&p)>>2]|0)|0;c[(h+(((c[(h&p)>>2]|0)+-1|0)*72|0)&p)+12>>2]=a}while(0);return h|0}function Wv(a){a=a|0;var b=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,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;do if(a>>>0<245){if(a>>>0<11)q=16;else q=a+11&-8;a=q>>>3;l=c[12266]|0;i=l>>>a;if(i&3){e=(i&1^1)+a|0;f=e<<1;b=49104+(f<<2)|0;f=49104+(f+2<<2)|0;g=c[(f&p)>>2]|0;h=g+8|0;i=c[(h&p)>>2]|0;do if((b|0)!=(i|0)){if(i>>>0<(c[12270]|0)>>>0)Ob();d=i+12|0;if((c[(d&p)>>2]|0)==(g|0)){c[(d&p)>>2]=b;c[(f&p)>>2]=i;break}else Ob()}else c[12266]=l&~(1<>2]=x|3;x=g+(x|4)|0;c[(x&p)>>2]=c[(x&p)>>2]|1;x=h;return x|0}k=c[12268]|0;if(q>>>0>k>>>0){if(i){f=2<>>12&16;f=f>>>a;e=f>>>5&8;f=f>>>e;d=f>>>2&4;f=f>>>d;g=f>>>1&2;f=f>>>g;h=f>>>1&1;h=(e|a|d|g|h)+(f>>>h)|0;f=h<<1;g=49104+(f<<2)|0;f=49104+(f+2<<2)|0;d=c[(f&p)>>2]|0;a=d+8|0;e=c[(a&p)>>2]|0;do if((g|0)!=(e|0)){if(e>>>0<(c[12270]|0)>>>0)Ob();i=e+12|0;if((c[(i&p)>>2]|0)==(d|0)){c[(i&p)>>2]=g;c[(f&p)>>2]=e;m=c[12268]|0;break}else Ob()}else{c[12266]=l&~(1<>2]=q|3;j=d+q|0;c[(d+(q|4)&p)>>2]=b|1;c[(d+x&p)>>2]=b;if(m){e=c[12271]|0;g=m>>>3;i=g<<1;f=49104+(i<<2)|0;h=c[12266]|0;g=1<>2]|0;if(i>>>0<(c[12270]|0)>>>0)Ob();else{n=h;o=i}}else{c[12266]=h|g;n=49104+(i+2<<2)|0;o=f}c[(n&p)>>2]=e;c[(o&p)+12>>2]=e;c[(e&p)+8>>2]=o;c[(e&p)+12>>2]=f}c[12268]=b;c[12271]=j;x=a;return x|0}a=c[12267]|0;if(a){h=(a&0-a)+-1|0;w=h>>>12&16;h=h>>>w;v=h>>>5&8;h=h>>>v;x=h>>>2&4;h=h>>>x;i=h>>>1&2;h=h>>>i;g=h>>>1&1;g=c[((v|w|x|i|g)+(h>>>g)<<2&p)+49368>>2]|0;h=(c[(g&p)+4>>2]&-8)-q|0;i=g;while(1){d=c[(i&p)+16>>2]|0;if(!d){d=c[(i&p)+20>>2]|0;if(!d){l=h;k=g;break}}i=(c[(d&p)+4>>2]&-8)-q|0;x=i>>>0>>0;h=x?i:h;i=d;g=x?d:g}a=c[12270]|0;if(k>>>0>>0)Ob();b=k+q|0;if(k>>>0>=b>>>0)Ob();j=c[(k&p)+24>>2]|0;g=c[(k&p)+12>>2]|0;do if((g|0)==(k|0)){h=k+20|0;i=c[(h&p)>>2]|0;if(!i){h=k+16|0;i=c[(h&p)>>2]|0;if(!i){e=0;break}}while(1){g=i+20|0;f=c[(g&p)>>2]|0;if(f){i=f;h=g;continue}g=i+16|0;f=c[(g&p)>>2]|0;if(!f)break;else{i=f;h=g}}if(h>>>0>>0)Ob();else{c[(h&p)>>2]=0;e=i;break}}else{f=c[(k&p)+8>>2]|0;if(f>>>0>>0)Ob();i=f+12|0;if((c[(i&p)>>2]|0)!=(k|0))Ob();h=g+8|0;if((c[(h&p)>>2]|0)==(k|0)){c[(i&p)>>2]=g;c[(h&p)>>2]=f;e=g;break}else Ob()}while(0);do if(j){i=c[(k&p)+28>>2]|0;h=49368+(i<<2)|0;if((k|0)==(c[(h&p)>>2]|0)){c[(h&p)>>2]=e;if(!e){c[12267]=c[12267]&~(1<>>0<(c[12270]|0)>>>0)Ob();i=j+16|0;if((c[(i&p)>>2]|0)==(k|0))c[(i&p)>>2]=e;else c[(j&p)+20>>2]=e;if(!e)break}h=c[12270]|0;if(e>>>0>>0)Ob();c[(e&p)+24>>2]=j;i=c[(k&p)+16>>2]|0;do if(i)if(i>>>0>>0)Ob();else{c[(e&p)+16>>2]=i;c[(i&p)+24>>2]=e;break}while(0);i=c[(k&p)+20>>2]|0;if(i)if(i>>>0<(c[12270]|0)>>>0)Ob();else{c[(e&p)+20>>2]=i;c[(i&p)+24>>2]=e;break}}while(0);if(l>>>0<16){x=l+q|0;c[(k&p)+4>>2]=x|3;x=k+(x+4)|0;c[(x&p)>>2]=c[(x&p)>>2]|1}else{c[(k&p)+4>>2]=q|3;c[(k+(q|4)&p)>>2]=l|1;c[(k+l+q&p)>>2]=l;d=c[12268]|0;if(d){e=c[12271]|0;g=d>>>3;i=g<<1;f=49104+(i<<2)|0;h=c[12266]|0;g=1<>2]|0;if(h>>>0<(c[12270]|0)>>>0)Ob();else{r=i;s=h}}else{c[12266]=h|g;r=49104+(i+2<<2)|0;s=f}c[(r&p)>>2]=e;c[(s&p)+12>>2]=e;c[(e&p)+8>>2]=s;c[(e&p)+12>>2]=f}c[12268]=l;c[12271]=b}x=k+8|0;return x|0}else s=q}else s=q}else if(a>>>0<=4294967231){a=a+11|0;s=a&-8;k=c[12267]|0;if(k){h=0-s|0;a=a>>>8;if(a)if(s>>>0>16777215)d=31;else{q=(a+1048320|0)>>>16&8;r=a<>>16&4;r=r<>>16&2;d=14-(o|q|d)+(r<>>15)|0;d=s>>>(d+7|0)&1|d<<1}else d=0;f=c[(d<<2&p)+49368>>2]|0;a:do if(!f){a=0;i=0}else{if((d|0)==31)i=0;else i=25-(d>>>1)|0;l=h;a=0;b=s<>2]&-8;h=e-s|0;if(h>>>0>>0)if((e|0)==(s|0)){a=f;i=f;break a}else i=f;else h=l;r=c[(f&p)+20>>2]|0;f=c[(f+(b>>>31<<2)&p)+16>>2]|0;a=(r|0)==0|(r|0)==(f|0)?a:r;if(!f)break;else{l=h;b=b<<1}}}while(0);if((a|0)==0&(i|0)==0){a=2<>>12&16;r=r>>>n;m=r>>>5&8;r=r>>>m;o=r>>>2&4;r=r>>>o;q=r>>>1&2;r=r>>>q;a=r>>>1&1;a=c[((m|n|o|q|a)+(r>>>a)<<2&p)+49368>>2]|0}if(!a){o=h;q=i}else while(1){r=(c[(a&p)+4>>2]&-8)-s|0;f=r>>>0>>0;h=f?r:h;i=f?a:i;f=c[(a&p)+16>>2]|0;if(f){a=f;continue}a=c[(a&p)+20>>2]|0;if(!a){o=h;q=i;break}}if((q|0)!=0?o>>>0<((c[12268]|0)-s|0)>>>0:0){a=c[12270]|0;if(q>>>0>>0)Ob();m=q+s|0;if(q>>>0>=m>>>0)Ob();j=c[(q&p)+24>>2]|0;g=c[(q&p)+12>>2]|0;do if((g|0)==(q|0)){h=q+20|0;i=c[(h&p)>>2]|0;if(!i){h=q+16|0;i=c[(h&p)>>2]|0;if(!i){u=0;break}}while(1){g=i+20|0;f=c[(g&p)>>2]|0;if(f){i=f;h=g;continue}g=i+16|0;f=c[(g&p)>>2]|0;if(!f)break;else{i=f;h=g}}if(h>>>0>>0)Ob();else{c[(h&p)>>2]=0;u=i;break}}else{f=c[(q&p)+8>>2]|0;if(f>>>0>>0)Ob();i=f+12|0;if((c[(i&p)>>2]|0)!=(q|0))Ob();h=g+8|0;if((c[(h&p)>>2]|0)==(q|0)){c[(i&p)>>2]=g;c[(h&p)>>2]=f;u=g;break}else Ob()}while(0);do if(j){i=c[(q&p)+28>>2]|0;h=49368+(i<<2)|0;if((q|0)==(c[(h&p)>>2]|0)){c[(h&p)>>2]=u;if(!u){c[12267]=c[12267]&~(1<>>0<(c[12270]|0)>>>0)Ob();i=j+16|0;if((c[(i&p)>>2]|0)==(q|0))c[(i&p)>>2]=u;else c[(j&p)+20>>2]=u;if(!u)break}h=c[12270]|0;if(u>>>0>>0)Ob();c[(u&p)+24>>2]=j;i=c[(q&p)+16>>2]|0;do if(i)if(i>>>0>>0)Ob();else{c[(u&p)+16>>2]=i;c[(i&p)+24>>2]=u;break}while(0);i=c[(q&p)+20>>2]|0;if(i)if(i>>>0<(c[12270]|0)>>>0)Ob();else{c[(u&p)+20>>2]=i;c[(i&p)+24>>2]=u;break}}while(0);b:do if(o>>>0>=16){c[(q&p)+4>>2]=s|3;c[(q+(s|4)&p)>>2]=o|1;c[(q+o+s&p)>>2]=o;i=o>>>3;if(o>>>0<256){h=i<<1;f=49104+(h<<2)|0;g=c[12266]|0;i=1<>2]|0;if(h>>>0>=(c[12270]|0)>>>0){v=i;w=h;break}Ob()}while(0);c[(v&p)>>2]=m;c[(w&p)+12>>2]=m;c[(q+s&p)+8>>2]=w;c[(q+s&p)+12>>2]=f;break}d=o>>>8;if(d)if(o>>>0>16777215)f=31;else{w=(d+1048320|0)>>>16&8;x=d<>>16&4;x=x<>>16&2;f=14-(v|w|f)+(x<>>15)|0;f=o>>>(f+7|0)&1|f<<1}else f=0;i=49368+(f<<2)|0;c[(q+s&p)+28>>2]=f;c[(q+s&p)+20>>2]=0;c[(q+s&p)+16>>2]=0;h=c[12267]|0;g=1<>2]=m;c[(q+s&p)+24>>2]=i;c[(q+s&p)+12>>2]=m;c[(q+s&p)+8>>2]=m;break}d=c[(i&p)>>2]|0;if((f|0)==31)b=0;else b=25-(f>>>1)|0;c:do if((c[(d&p)+4>>2]&-8|0)!=(o|0)){h=o<>>31<<2)+16|0;i=c[(b&p)>>2]|0;if(!i)break;if((c[(i&p)+4>>2]&-8|0)==(o|0)){C=i;break c}else{h=h<<1;d=i}}if(b>>>0<(c[12270]|0)>>>0)Ob();else{c[(b&p)>>2]=m;c[(q+s&p)+24>>2]=d;c[(q+s&p)+12>>2]=m;c[(q+s&p)+8>>2]=m;break b}}else C=d;while(0);d=C+8|0;b=c[(d&p)>>2]|0;x=c[12270]|0;if(C>>>0>=x>>>0&b>>>0>=x>>>0){c[(b&p)+12>>2]=m;c[(d&p)>>2]=m;c[(q+s&p)+8>>2]=b;c[(q+s&p)+12>>2]=C;c[(q+s&p)+24>>2]=0;break}else Ob()}else{x=o+s|0;c[(q&p)+4>>2]=x|3;x=q+(x+4)|0;c[(x&p)>>2]=c[(x&p)>>2]|1}while(0);x=q+8|0;return x|0}}}else s=-1;while(0);a=c[12268]|0;if(a>>>0>=s>>>0){b=a-s|0;d=c[12271]|0;if(b>>>0>15){c[12271]=d+s;c[12268]=b;c[(d+s&p)+4>>2]=b|1;c[(d+a&p)>>2]=b;c[(d&p)+4>>2]=s|3}else{c[12268]=0;c[12271]=0;c[(d&p)+4>>2]=a|3;x=d+(a+4)|0;c[(x&p)>>2]=c[(x&p)>>2]|1}x=d+8|0;return x|0}a=c[12269]|0;if(a>>>0>s>>>0){w=a-s|0;c[12269]=w;x=c[12272]|0;c[12272]=x+s;c[(x+s&p)+4>>2]=w|1;c[(x&p)+4>>2]=s|3;x=x+8|0;return x|0}do if(!(c[12384]|0)){a=wb(30)|0;if(!(a+-1&a)){c[12386]=a;c[12385]=a;c[12387]=-1;c[12388]=-1;c[12389]=0;c[12377]=0;c[12384]=(Pb(0)|0)&-16^1431655768;break}else Ob()}while(0);l=s+48|0;b=c[12386]|0;k=s+47|0;d=b+k|0;b=0-b|0;m=d&b;if(m>>>0<=s>>>0){x=0;return x|0}a=c[12376]|0;if((a|0)!=0?(v=c[12374]|0,w=v+m|0,w>>>0<=v>>>0|w>>>0>a>>>0):0){x=0;return x|0}d:do if(!(c[12377]&4)){a=c[12272]|0;e:do if(a){f=49512|0;while(1){i=c[(f&p)>>2]|0;if(i>>>0<=a>>>0?(t=f+4|0,(i+(c[(t&p)>>2]|0)|0)>>>0>a>>>0):0){e=f;h=t;a=f;break}f=c[(f&p)+8>>2]|0;if(!f){H=181;break e}}if(a){a=d-(c[12269]|0)&b;if(a>>>0<2147483647){i=sb(a|0)|0;if((i|0)==((c[(e&p)>>2]|0)+(c[(h&p)>>2]|0)|0))H=190;else H=191}else a=0}else H=181}else H=181;while(0);do if((H|0)==181){i=sb(0)|0;if((i|0)!=(-1|0)){a=i;h=c[12385]|0;f=h+-1|0;if(!(f&a))a=m;else a=m-a+(f+a&0-h)|0;h=c[12374]|0;f=h+a|0;if(a>>>0>s>>>0&a>>>0<2147483647){w=c[12376]|0;if((w|0)!=0?f>>>0<=h>>>0|f>>>0>w>>>0:0){a=0;break}h=sb(a|0)|0;if((h|0)==(i|0))H=190;else{i=h;H=191}}else a=0}else a=0}while(0);f:do if((H|0)==190){if((i|0)!=(-1|0)){y=i;H=201;break d}}else if((H|0)==191){h=0-a|0;do if((i|0)!=(-1|0)&a>>>0<2147483647&l>>>0>a>>>0?(x=c[12386]|0,x=k-a+x&0-x,x>>>0<2147483647):0)if((sb(x|0)|0)==(-1|0)){sb(h|0)|0;a=0;break f}else{a=x+a|0;break}while(0);if((i|0)==(-1|0))a=0;else{y=i;H=201;break d}}while(0);c[12377]=c[12377]|4;H=198}else{a=0;H=198}while(0);if((((H|0)==198?m>>>0<2147483647:0)?(y=sb(m|0)|0,z=sb(0)|0,(y|0)!=(-1|0)&(z|0)!=(-1|0)&y>>>0>>0):0)?(A=z-y|0,B=A>>>0>(s+40|0)>>>0,B):0){a=B?A:a;H=201}if((H|0)==201){i=(c[12374]|0)+a|0;c[12374]=i;if(i>>>0>(c[12375]|0)>>>0)c[12375]=i;l=c[12272]|0;g:do if(l){e=49512|0;do{i=c[(e&p)>>2]|0;h=e+4|0;f=c[(h&p)>>2]|0;if((y|0)==(i+f|0)){D=i;E=h;F=f;G=e;H=213;break}e=c[(e&p)+8>>2]|0}while((e|0)!=0);if(((H|0)==213?(c[(G&p)+12>>2]&8|0)==0:0)?l>>>0>=D>>>0&l>>>0>>0:0){c[(E&p)>>2]=F+a;b=(c[12269]|0)+a|0;d=l+8|0;if(!(d&7))d=0;else d=0-d&7;x=b-d|0;c[12272]=l+d;c[12269]=x;c[(l+d&p)+4>>2]=x|1;c[(l+b&p)+4>>2]=40;c[12273]=c[12388];break}i=c[12270]|0;if(y>>>0>>0){c[12270]=y;k=y}else k=i;i=y+a|0;h=49512|0;do{if((c[(h&p)>>2]|0)==(i|0)){I=h;J=h;H=223;break}h=c[(h&p)+8>>2]|0}while((h|0)!=0);if((H|0)==223?(c[(J&p)+12>>2]&8|0)==0:0){c[(I&p)>>2]=y;i=J+4|0;c[(i&p)>>2]=(c[(i&p)>>2]|0)+a;i=y+8|0;if(!(i&7))q=0;else q=0-i&7;i=y+(a+8)|0;if(!(i&7))d=0;else d=0-i&7;i=y+(d+a)|0;o=q+s|0;n=y+o|0;m=i-(y+q)-s|0;c[(y+q&p)+4>>2]=s|3;h:do if((i|0)!=(l|0)){if((i|0)==(c[12271]|0)){x=(c[12268]|0)+m|0;c[12268]=x;c[12271]=n;c[(y+o&p)+4>>2]=x|1;c[(y+x+o&p)>>2]=x;break}l=a+4|0;j=c[(y+l+d&p)>>2]|0;if((j&3|0)==1){b=j&-8;f=j>>>3;i:do if(j>>>0>=256){e=c[(y+(d|24)+a&p)>>2]|0;g=c[(y+a+d&p)+12>>2]|0;do if((g|0)==(i|0)){g=d|16;h=y+(l+g)|0;j=c[(h&p)>>2]|0;if(!j){h=y+(g+a)|0;j=c[(h&p)>>2]|0;if(!j){O=0;break}}while(1){g=j+20|0;f=c[(g&p)>>2]|0;if(f){j=f;h=g;continue}g=j+16|0;f=c[(g&p)>>2]|0;if(!f)break;else{j=f;h=g}}if(h>>>0>>0)Ob();else{c[(h&p)>>2]=0;O=j;break}}else{f=c[(y+(d|8)+a&p)>>2]|0;if(f>>>0>>0)Ob();j=f+12|0;if((c[(j&p)>>2]|0)!=(i|0))Ob();h=g+8|0;if((c[(h&p)>>2]|0)==(i|0)){c[(j&p)>>2]=g;c[(h&p)>>2]=f;O=g;break}else Ob()}while(0);if(!e)break;j=c[(y+a+d&p)+28>>2]|0;h=49368+(j<<2)|0;do if((i|0)!=(c[(h&p)>>2]|0)){if(e>>>0<(c[12270]|0)>>>0)Ob();j=e+16|0;if((c[(j&p)>>2]|0)==(i|0))c[(j&p)>>2]=O;else c[(e&p)+20>>2]=O;if(!O)break i}else{c[(h&p)>>2]=O;if(O)break;c[12267]=c[12267]&~(1<
>2]=c[(F&p)>>2]|q;if(U){c[(G&p)>>2]=0;Dn(U,G)|0;k=c[(G&p)>>2]|0;if((k|0)<=-1)k=(k|0)==-2147483648?2147483647:0-k|0;G=c[(f&p)+408>>2]|0;Ar(f,Q);G=((G|0)==0?f:G)+328|0;c[(G&p)>>2]=c[(G&p)>>2]|q;wh(T,25,k,1,0)|0;wh(T,52,Q,3,1)|0;c[((c[(C+(Q<<4)&p)+12>>2]|0)&p)+80>>2]=k;pq(c[(C+(Q<<4)&p)+4>>2]|0,k);break a}iq(T,1);if(!(a[((c[(T&p)>>2]|0)&n)+65>>0]|0))Xg(c[(T&p)+16>>2]|0,30848,-1,1,0)|0;c[(S&p)>>2]=(c[(S&p)>>2]|0)+2;k=yh(T,9,30808)|0;l=c[(T&p)+32>>2]|0;if(l>>>0>k>>>0)c[((c[(T&p)+4>>2]|0)+(k*20|0)&p)+4>>2]=Q;m=k+1|0;if(l>>>0>m>>>0)c[((c[(T&p)+4>>2]|0)+(m*20|0)&p)+4>>2]=Q;m=k+6|0;if(l>>>0<=m>>>0)break a;c[((c[(T&p)+4>>2]|0)+(m*20|0)&p)+4>>2]=2e3;break a}case 19:{k=c[(c[((c[(C+(Q<<4)&p)+4>>2]|0)&p)+4>>2]&p)>>2]|0;G=A;c[(G&p)>>2]=-2;c[(G&p)+4>>2]=-1;if(U){ji(U,A)|0;m=A;l=c[(m&p)>>2]|0;m=c[(m&p)+4>>2]|0;if((m|0)<-1|(m|0)==-1&l>>>0<4294967295){l=A;c[(l&p)>>2]=-1;c[(l&p)+4>>2]=-1;l=-1;m=-1}G=k+160|0;c[(G&p)>>2]=l;c[(G&p)+4>>2]=m;k=c[(k&p)+208>>2]|0;if(k){G=k+16|0;c[(G&p)>>2]=l;c[(G&p)+4>>2]=m}}else{m=k+160|0;l=c[(m&p)>>2]|0;m=c[(m&p)+4>>2]|0}G=A;c[(G&p)>>2]=l;c[(G&p)+4>>2]=m;Jt(f,30952,l,m);break a}case 28:{q=Oq(f)|0;iq(q,4);c[(S&p)>>2]=4;Ar(f,Q);if((((a[((c[(q&p)>>2]|0)&n)+65>>0]|0)==0?(Xg(c[(q&p)+16>>2]|0,31232,-1,1,0)|0,(a[((c[(q&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(q&p)+16>>2]|0)+40|0,20632,-1,1,0)|0,(a[((c[(q&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(q&p)+16>>2]|0)+80|0,31240,-1,1,0)|0,(a[((c[(q&p)>>2]|0)&n)+65>>0]|0)==0):0)Xg((c[(q&p)+16>>2]|0)+120|0,31248,-1,1,0)|0;l=c[((c[(C+(Q<<4)&p)+12>>2]|0)&p)+16>>2]|0;if(!l)break a;do{m=c[(l&p)+8>>2]|0;G=c[(m&p)>>2]|0;xh(q,wh(q,97,0,1,0)|0,G,0);wh(q,28,0,2,0)|0;G=Ws(b[(m&o)+42>>1]|0)|0;wh(q,25,G,3,0)|0;G=Ws(b[(m&o)+28>>1]|0)|0;wh(q,25,G,4,0)|0;wh(q,35,1,4,0)|0;m=c[(m&p)+8>>2]|0;if(m)do{G=c[(m&p)>>2]|0;xh(q,wh(q,97,0,2,0)|0,G,0);G=Ws(b[(m&o)+44>>1]|0)|0;wh(q,25,G,3,0)|0;G=Ws(b[(c[(m&p)+8>>2]&o)>>1]|0)|0;wh(q,25,G,4,0)|0;wh(q,35,1,4,0)|0;m=c[(m&p)+20>>2]|0}while((m|0)!=0);l=c[(l&p)>>2]|0}while((l|0)!=0);break}case 15:{if(!U)break a;s=bq(W,U,L)|0;if(!s)break a;w=(c[((w*12|0)&p)+30128>>2]|0)==0;t=s+46|0;G=w?3:6;r=b[((w?t:s+48|0)&o)>>1]|0;u=r&65535;c[(S&p)>>2]=G;q=c[(s&p)+12>>2]|0;iq(T,G);Ar(f,Q);if(((a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0?(Xg(c[(T&p)+16>>2]|0,31256,-1,1,0)|0,(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(T&p)+16>>2]|0)+40|0,31176,-1,1,0)|0,(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0):0)Xg((c[(T&p)+16>>2]|0)+80|0,31184,-1,1,0)|0;if(((!w?(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0:0)?(Xg((c[(T&p)+16>>2]|0)+120|0,31264,-1,1,0)|0,(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(T&p)+16>>2]|0)+160|0,31272,-1,1,0)|0,(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0):0)Xg((c[(T&p)+16>>2]|0)+200|0,31280,-1,1,0)|0;if(!(r<<16>>16))break a;m=s+4|0;l=s+28|0;k=s+32|0;s=q+4|0;q=0;do{G=b[((c[(m&p)>>2]|0)+(q<<1)&o)>>1]|0;wh(T,25,q,1,0)|0;r=G<<16>>16;wh(T,25,r,2,0)|0;if(G<<16>>16<0)wh(T,28,0,3,0)|0;else{G=c[((c[(s&p)>>2]|0)+(r*24|0)&p)>>2]|0;xh(T,wh(T,97,0,3,0)|0,G,0)}if(!w){wh(T,25,d[((c[(l&p)>>2]|0)+q&n)>>0]|0,4,0)|0;G=c[((c[(k&p)>>2]|0)+(q<<2)&p)>>2]|0;xh(T,wh(T,97,0,5,0)|0,G,0);wh(T,25,(q|0)<(e[(t&o)>>1]|0)&1,6,0)|0}wh(T,35,1,c[(S&p)>>2]|0,0)|0;q=q+1|0}while((q|0)<(u|0));break}case 22:{Ar(f,Q);k=(c[(S&p)>>2]|0)+1|0;c[(S&p)>>2]=k;if((a[(V&n)>>0]&-33)<<24>>24==80)wh(T,153,Q,k,0)|0;else{c[(G&p)>>2]=0;if(U){Dn(U,G)|0;m=c[(G&p)>>2]|0;if((m|0)<=-1)m=(m|0)==-2147483648?2147483647:0-m|0}else m=0;wh(T,154,Q,k,m)|0}wh(T,35,k,1,0)|0;iq(T,1);if(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)break a;Xg(c[(T&p)+16>>2]|0,V,-1,1,-1)|0;break a}case 24:{l=c[(C+(Q<<4)&p)+4>>2]|0;if(U){c[(G&p)>>2]=0;Dn(U,G)|0;G=c[(G&p)>>2]|0;c[(W&p)+72>>2]=G;if((xg(l,G,-1,0)|0)!=7)break a;a[(W&n)+65>>0]=1;break a}if(!l){l=0;m=0}else{m=c[((c[(l&p)+4>>2]|0)&p)+32>>2]|0;l=m;m=((m|0)<0)<<31>>31}Jt(f,30864,l,m);break a}case 25:{l=c[(C+(Q<<4)&p)+4>>2]|0;if(U){m=(ii(U,1,0)|0)<<24>>24!=0&1;if((c[(B&p)>>2]|0)==0?(y=W+20|0,(c[(y&p)>>2]|0)>0):0){k=0;do{so(c[((c[(R&p)>>2]|0)+(k<<4)&p)+4>>2]|0,m)|0;k=k+1|0}while((k|0)<(c[(y&p)>>2]|0))}}else m=-1;G=so(l,m)|0;Jt(f,30880,G,((G|0)<0)<<31>>31);break a}case 18:{iq(T,1);if(!(a[((c[(T&p)>>2]|0)&n)+65>>0]|0))Xg(c[(T&p)+16>>2]|0,30936,-1,1,0)|0;c:do if(U){k=U;while(1)if(!(a[(k&n)>>0]|0))break;else k=k+1|0;m=k-U&1073741823;k=0;while(1){if(!(Fc(U,c[(k<<2&p)+32216>>2]|0,m)|0))break;k=k+1|0;if((k|0)==6){P=91;break c}}if((k|0)!=-1)q=Q;else P=91}else P=91;while(0);if((P|0)==91)if(!(c[(B&p)>>2]|0)){c[(B&p)>>2]=1;k=-1;q=0}else{k=-1;q=Q}m=c[(W&p)+20>>2]|0;if((m|0)>0){l=T+96|0;do{m=m+-1|0;do if(c[((c[(R&p)>>2]|0)+(m<<4)&p)+4>>2]|0){if((m|0)!=(q|0)?(c[(B&p)>>2]|0)!=0:0)break;c[(l&p)>>2]=c[(l&p)>>2]|1<0)}wh(T,35,1,1,0)|0;break a}case 32:{if(!U){if(!(c[2708]|0))break a;iq(T,1);if(!(a[((c[(T&p)>>2]|0)&n)+65>>0]|0))Xg(c[(T&p)+16>>2]|0,31048,-1,1,0)|0;G=c[2708]|0;xh(T,wh(T,97,0,1,0)|0,G,0);wh(T,35,1,1,0)|0;break a}if((a[(U&n)>>0]|0)!=0?(F=c[(W&p)>>2]|0,F=(pc[c[(F&p)+32>>2]&31](F,U,1,u)|0)!=0,F|(c[(u&p)>>2]|0)==0):0){th(f,31072,G);break a}if((d[(W&n)+64>>0]|0)<2)Kt(f)|0;Wc(c[2708]|0);if(!(a[(U&n)>>0]|0)){c[2708]=0;break a}else{c[(G&p)>>2]=U;c[2708]=_c(10344,G)|0;break a}}case 14:{if(!((U|0)!=0?(G=(Dn(U,t)|0)==0,m=c[(t&p)>>2]|0,!(G|(m|0)<1)):0)){c[(t&p)>>2]=2147483647;m=2147483647}l=c[(f&p)+408>>2]|0;Ar(f,Q);l=((l|0)==0?f:l)+328|0;c[(l&p)>>2]=c[(l&p)>>2]|1<>2]|0;if(l>>>0>m>>>0)c[((c[(T&p)+4>>2]|0)+(m*20|0)&p)+8>>2]=l;c[((c[(T&p)+24>>2]|0)&p)+88>>2]=l+-1;break a}case 30:{if(!U)break a;h=_h(W,U,L)|0;if(!h)break a;k=c[(h&p)+8>>2]|0;d:do if(!k)k=0;else while(1){if((a[(k&n)+51>>0]&3)==2)break d;k=c[(k&p)+20>>2]|0;if(!k){k=0;break}}while(0);iq(T,6);c[(S&p)>>2]=6;Ar(f,Q);do if((((a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0?(Xg(c[(T&p)+16>>2]|0,31176,-1,1,0)|0,(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(T&p)+16>>2]|0)+40|0,31184,-1,1,0)|0,(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(T&p)+16>>2]|0)+80|0,31192,-1,1,0)|0,(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0):0){Xg((c[(T&p)+16>>2]|0)+120|0,31200,-1,1,0)|0;if(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)break;Xg((c[(T&p)+16>>2]|0)+160|0,31208,-1,1,0)|0;if(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)break;Xg((c[(T&p)+16>>2]|0)+200|0,31224,-1,1,0)|0}while(0);hr(f,h)|0;t=h+38|0;m=b[(t&o)>>1]|0;if(m<<16>>16<=0)break a;u=(k|0)==0;l=k+4|0;w=0;r=0;g=c[(h&p)+4>>2]|0;while(1){s=g+23|0;if(!(a[(s&n)>>0]&2)){wh(T,25,w-r|0,1,0)|0;q=c[(g&p)>>2]|0;xh(T,wh(T,97,0,2,0)|0,q,0);q=c[(g&p)+12>>2]|0;xh(T,wh(T,97,0,3,0)|0,(q|0)==0?10360:q,0);wh(T,25,(a[(g&n)+20>>0]|0)!=0&1,4,0)|0;q=c[(g&p)+8>>2]|0;if(!q)wh(T,28,0,5,0)|0;else xh(T,wh(T,97,0,5,0)|0,q,0);k=a[(s&n)>>0]&1;e:do if(k<<24>>24==0|u)q=(k^1)&255^1;else{q=b[(t&o)>>1]|0;if(q<<16>>16<1){q=1;break}m=c[(l&p)>>2]|0;s=q<<16>>16;k=1;while(1){q=k+1|0;if((b[(m+(k+-1<<1)&o)>>1]|0)==(w|0)){q=k;break e}if((k|0)<(s|0))k=q;else break}}while(0);wh(T,25,q,6,0)|0;wh(T,35,1,6,0)|0;m=b[(t&o)>>1]|0}else r=r+1|0;w=w+1|0;if((w|0)>=(m<<16>>16|0))break;else g=g+24|0}break}case 2:{if(!U){Jt(f,g,(c[((w*12|0)&p)+30128>>2]&c[(W&p)+24>>2]|0)!=0&1,0);break a}l=c[((w*12|0)&p)+30128>>2]|0;l=(a[(W&n)+63>>0]|0)==0?l&-524289:l;if(!((ii(U,1,0)|0)<<24>>24)){G=W+24|0;c[(G&p)>>2]=c[(G&p)>>2]&~l;if((l|0)==16777216){G=W+512|0;c[(G&p)>>2]=0;c[(G&p)+4>>2]=0}}else{G=W+24|0;c[(G&p)>>2]=c[(G&p)>>2]|l}wh(T,144,0,0,0)|0;Lt(W);break a}case 5:{if(!U)break a;G=(ii(U,1,0)|0)<<24>>24!=0;F=G?32e3:19240;Qh(W,19248,2,1,F,40,0,0,0)|0;Qh(W,19248,3,1,F,40,0,0,0)|0;Qh(W,19232,2,1,10352,40,0,0,0)|0;Ot(W,19232,12);Ot(W,19248,G?12:4);break a}case 17:{g=a[(V&n)>>0]|0;A=(c[(h&p)>>2]|0)==0?-1:Q;c[(S&p)>>2]=6;iq(T,1);if(!(a[((c[(T&p)>>2]|0)&n)+65>>0]|0))Xg(c[(T&p)+16>>2]|0,31464,-1,1,0)|0;c[(z&p)>>2]=100;if(U){Dn(U,z)|0;s=c[(z&p)>>2]|0;if((s|0)<1){c[(z&p)>>2]=100;s=100}}else s=100;wh(T,25,s,1,0)|0;M=W+20|0;w=c[(M&p)>>2]|0;if((w|0)>0){L=(A|0)<0;m=T+32|0;I=T+4|0;H=T+24|0;N=(g&-33)<<24>>24==81;O=0;do{if(L|(O|0)==(A|0)){Ar(f,O);w=wh(T,137,1,0,0)|0;wh(T,24,0,0,0)|0;l=c[(m&p)>>2]|0;if(l>>>0>w>>>0)c[((c[(I&p)>>2]|0)+(w*20|0)&p)+8>>2]=l;c[((c[(H&p)>>2]|0)&p)+88>>2]=l+-1;k=(c[((c[(R&p)>>2]|0)+(O<<4)&p)+12>>2]|0)+16|0;w=c[(k&p)>>2]|0;if(!w)g=0;else{g=0;do{l=c[(w&p)+8>>2]|0;if(!(a[(l&n)+44>>0]&32)){wh(T,25,c[(l&p)+32>>2]|0,g+2|0,0)|0;g=g+1|0}l=c[(l&p)+8>>2]|0;if(l)do{wh(T,25,c[(l&p)+40>>2]|0,g+2|0,0)|0;g=g+1|0;l=c[(l&p)+20>>2]|0}while((l|0)!=0);w=c[(w&p)>>2]|0}while((w|0)!=0)}C=c[(S&p)>>2]|0;w=g+8|0;c[(S&p)>>2]=(C|0)>(w|0)?C:w;wh(T,127,2,g,1)|0;w=c[(I&p)>>2]|0;if(w)a[(w+(((c[(m&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=O;g=wh(T,76,2,0,0)|0;c[(G&p)>>2]=c[((c[(R&p)>>2]|0)+(O<<4)&p)>>2];w=uh(W,31480,G)|0;xh(T,wh(T,97,0,3,0)|0,w,-1);wh(T,32,2,4,1)|0;wh(T,94,4,3,2)|0;wh(T,35,2,1,0)|0;w=c[(m&p)>>2]|0;if(w>>>0>g>>>0)c[((c[(I&p)>>2]|0)+(g*20|0)&p)+8>>2]=w;c[((c[(H&p)>>2]|0)&p)+88>>2]=w+-1;w=c[(k&p)>>2]|0;if(!((w|0)==0|N))do{x=c[(w&p)+8>>2]|0;J=x+8|0;g=c[(J&p)>>2]|0;do if(g){f:do if(!(a[(x&n)+44>>0]&32))g=0;else while(1){if((a[(g&n)+51>>0]&3)==2)break f;g=c[(g&p)+20>>2]|0;if(!g){g=0;break}}while(0);l=wh(T,137,1,0,0)|0;wh(T,24,0,0,0)|0;k=c[(m&p)>>2]|0;if(k>>>0>l>>>0)c[((c[(I&p)>>2]|0)+(l*20|0)&p)+8>>2]=k;c[((c[(H&p)>>2]|0)&p)+88>>2]=k+-1;at(f);pt(f,x,54,1,0,D,E)|0;wh(T,25,0,7,0)|0;k=c[(J&p)>>2]|0;if(!k)l=8;else{l=0;while(1){wh(T,25,0,l+8|0,0)|0;k=c[(k&p)+20>>2]|0;if(!k)break;else l=l+1|0}l=l+9|0}K=c[(S&p)>>2]|0;c[(S&p)>>2]=(K|0)>(l|0)?K:l;wh(T,108,c[(D&p)>>2]|0,0,0)|0;K=wh(T,37,7,1,0)|0;u=x+38|0;l=b[(u&o)>>1]|0;if(l<<16>>16>0){h=x+36|0;v=x+4|0;t=0;do{do if((t|0)!=(b[(h&o)>>1]|0)){if(!(a[((c[(v&p)>>2]|0)+(t*24|0)&n)+20>>0]|0))break;nt(T,x,c[(D&p)>>2]|0,t,3);l=c[(I&p)>>2]|0;if(l)a[(l+(((c[(m&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=-128;l=wh(T,77,3,0,0)|0;wh(T,37,1,-1,0)|0;q=c[((c[(v&p)>>2]|0)+(t*24|0)&p)>>2]|0;c[(G&p)>>2]=c[(x&p)>>2];c[(G&p)+4>>2]=q;q=uh(W,31504,G)|0;xh(T,wh(T,97,0,3,0)|0,q,-1);wh(T,35,3,1,0)|0;q=wh(T,137,1,0,0)|0;wh(T,24,0,0,0)|0;r=c[(m&p)>>2]|0;if(r>>>0>l>>>0)c[((c[(I&p)>>2]|0)+(l*20|0)&p)+8>>2]=r;l=r+-1|0;k=(c[(H&p)>>2]|0)+88|0;c[(k&p)>>2]=l;if(r>>>0>q>>>0)c[((c[(I&p)>>2]|0)+(q*20|0)&p)+8>>2]=r;c[(k&p)>>2]=l;l=b[(u&o)>>1]|0}while(0);t=t+1|0}while((t|0)<(l<<16>>16|0))}l=c[(J&p)>>2]|0;if(l){z=x+4|0;y=0;r=0;k=-1;while(1){q=xs(T)|0;if((g|0)!=(l|0)){k=Pt(f,l,c[(D&p)>>2]|0,0,0,F,r,k)|0;wh(T,37,y+8|0,1,0)|0;x=e[(l&o)+48>>1]|0;q=wh(T,69,(c[(E&p)>>2]|0)+y|0,q,k)|0;xh(T,q,x,-14);wh(T,37,1,-1,0)|0;xh(T,wh(T,97,0,3,0)|0,31528,-2);wh(T,94,7,3,3)|0;xh(T,wh(T,97,0,4,0)|0,31536,-2);wh(T,94,4,3,3)|0;x=c[(l&p)>>2]|0;v=wh(T,97,0,4,0)|0;xh(T,v,x,0);wh(T,94,4,3,3)|0;wh(T,35,3,1,0)|0;x=wh(T,137,1,0,0)|0;wh(T,24,0,0,0)|0;r=c[(m&p)>>2]|0;if(r>>>0>q>>>0)c[((c[(I&p)>>2]|0)+(q*20|0)&p)+8>>2]=r;q=c[(H&p)>>2]|0;c[(q&p)+88>>2]=r+-1;if(a[(l&n)+50>>0]|0){h=xs(T)|0;u=l+46|0;q=b[(u&o)>>1]|0;if(q<<16>>16){t=l+4|0;r=0;do{if(!(a[((c[(z&p)>>2]|0)+((b[((c[(t&p)>>2]|0)+(r<<1)&o)>>1]|0)*24|0)&n)+20>>0]|0)){wh(T,76,r+k|0,h,0)|0;q=b[(u&o)>>1]|0}r=r+1|0}while((r|0)<(q&65535|0))}q=wh(T,9,(c[(E&p)>>2]|0)+y|0,0,0)|0;wh(T,16,0,h,0)|0;r=c[(m&p)>>2]|0;if(r>>>0>q>>>0)c[((c[(I&p)>>2]|0)+(q*20|0)&p)+8>>2]=r;c[((c[(H&p)>>2]|0)&p)+88>>2]=r+-1;q=e[(u&o)>>1]|0;xh(T,wh(T,114,(c[(E&p)>>2]|0)+y|0,h,k)|0,q,-14);wh(T,37,1,-1,0)|0;xh(T,wh(T,97,0,3,0)|0,31560,-2);wh(T,16,0,v,0)|0;q=c[(H&p)>>2]|0;t=~h;do if((h|0)<0){r=c[(q&p)+112>>2]|0;if(!r)break;c[(r+(t<<2)&p)>>2]=c[(m&p)>>2]}while(0);r=c[(m&p)>>2]|0;c[(q&p)+88>>2]=r+-1}if(r>>>0>x>>>0)c[((c[(I&p)>>2]|0)+(x*20|0)&p)+8>>2]=r;c[(q&p)+88>>2]=r+-1;Qt(f,c[(F&p)>>2]|0);r=l}l=c[(l&p)+20>>2]|0;if(!l)break;else y=y+1|0}}wh(T,9,c[(D&p)>>2]|0,K,0)|0;l=K+-1|0;k=c[(m&p)>>2]|0;if(k>>>0>l>>>0)c[((c[(I&p)>>2]|0)+(l*20|0)&p)+8>>2]=k;c[((c[(H&p)>>2]|0)&p)+88>>2]=k+-1;xh(T,wh(T,97,0,2,0)|0,31592,-2);l=c[(J&p)>>2]|0;if(!l)break;else q=0;while(1){if((g|0)!=(l|0)){k=c[(m&p)>>2]|0;wh(T,137,1,k+2|0,0)|0;wh(T,24,0,0,0)|0;wh(T,50,(c[(E&p)>>2]|0)+q|0,3,0)|0;wh(T,79,q+8|0,k+8|0,3)|0;k=c[(I&p)>>2]|0;if(k)a[(k+(((c[(m&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=-112;wh(T,37,1,-1,0)|0;C=c[(l&p)>>2]|0;xh(T,wh(T,97,0,3,0)|0,C,0);wh(T,94,3,2,7)|0;wh(T,35,7,1,0)|0}l=c[(l&p)+20>>2]|0;if(!l)break;else q=q+1|0}}while(0);w=c[(w&p)>>2]|0}while((w|0)!=0);w=c[(M&p)>>2]|0}O=O+1|0}while((O|0)<(w|0))}else m=T+32|0;l=yh(T,3,31448)|0;m=c[(m&p)>>2]|0;if(m>>>0>l>>>0){c[((c[(T&p)+4>>2]|0)+(l*20|0)&p)+12>>2]=0-s;c[((c[(T&p)+4>>2]|0)+(l*20|0)&p)+8>>2]=m}c[((c[(T&p)+24>>2]|0)&p)+88>>2]=m+-1;xh(T,l+1|0,31624,-2);break a}case 21:{do if(U){if(dd(U,30904)|0)if(!(dd(U,30896)|0))k=0;else{P=66;break}else k=1;if(!(c[(B&p)>>2]|0)){s=c[(W&p)+20>>2]|0;if((s|0)>2){q=c[(R&p)>>2]|0;m=k&255;r=2;do{l=c[(c[((c[(q+(r<<4)&p)+4>>2]|0)&p)+4>>2]&p)>>2]|0;do if(!(a[(l&n)+12>>0]|0)){G=c[(l&p)+208>>2]|0;if((G|0)!=0?(a[(G&n)+43>>0]|0)==2:0)break;a[(l&n)+4>>0]=m}while(0);r=r+1|0}while((r|0)<(s|0))}else m=k&255;a[(W&n)+66>>0]=m;P=74}else P=74}else P=66;while(0);if((P|0)==66)if(!(c[(B&p)>>2]|0))l=W+66|0;else{k=-1;P=74}if((P|0)==74){m=c[(c[((c[(C+(Q<<4)&p)+4>>2]|0)&p)+4>>2]&p)>>2]|0;do if((k|0)>-1?(a[(m&n)+12>>0]|0)==0:0){G=c[(m&p)+208>>2]|0;if((G|0)!=0?(a[(G&n)+43>>0]|0)==2:0)break;a[(m&n)+4>>0]=k}while(0);l=m+4|0}l=(a[(l&n)>>0]|0)==1?30904:30896;iq(T,1);if(!(a[((c[(T&p)>>2]|0)&n)+65>>0]|0))Xg(c[(T&p)+16>>2]|0,30920,-1,1,0)|0;xh(T,wh(T,97,0,1,0)|0,l,0);wh(T,35,1,1,0)|0;break a}case 16:{if(!U)break a;k=_h(W,U,L)|0;if(!k)break a;q=Oq(f)|0;iq(q,5);c[(S&p)>>2]=5;Ar(f,Q);if(((((a[((c[(q&p)>>2]|0)&n)+65>>0]|0)==0?(Xg(c[(q&p)+16>>2]|0,31288,-1,1,0)|0,(a[((c[(q&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(q&p)+16>>2]|0)+40|0,31184,-1,1,0)|0,(a[((c[(q&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(q&p)+16>>2]|0)+80|0,31296,-1,1,0)|0,(a[((c[(q&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(q&p)+16>>2]|0)+120|0,31304,-1,1,0)|0,(a[((c[(q&p)>>2]|0)&n)+65>>0]|0)==0):0)Xg((c[(q&p)+16>>2]|0)+160|0,31312,-1,1,0)|0;m=c[(k&p)+8>>2]|0;if(!m)break a;else l=0;while(1){wh(q,25,l,1,0)|0;G=c[(m&p)>>2]|0;xh(q,wh(q,97,0,2,0)|0,G,0);wh(q,25,(a[(m&n)+50>>0]|0)!=0&1,3,0)|0;G=c[((a[(m&n)+51>>0]&3)<<2&p)+31336>>2]|0;xh(q,wh(q,97,0,4,0)|0,G,0);wh(q,25,(c[(m&p)+36>>2]|0)!=0&1,5,0)|0;wh(q,35,1,5,0)|0;m=c[(m&p)+20>>2]|0;if(!m)break;else l=l+1|0}break}case 1:{k=c[(C+(Q<<4)&p)+4>>2]|0;if(!U){m=c[(k&p)+4>>2]|0;c[(m&p)+4>>2]=c[(k&p)>>2];if(!(a[(m&n)+17>>0]|0)){m=0;l=0}else{l=(a[(m&n)+18>>0]|0)==0;m=l?1:2;l=l?0:0}Jt(f,30976,m,l);break a}if(dd(U,32192)|0)if(dd(U,31880)|0)if(!(dd(U,32200)|0))m=2;else{c[(G&p)>>2]=0;Dn(U,G)|0;m=c[(G&p)>>2]|0;m=m>>>0<3?m&255:0}else m=1;else m=0;a[(W&n)+67>>0]=m;r=m+-1|0;if(!((vn(k,m)|0)==0&r>>>0<2))break a;l=yh(T,6,30992)|0;q=c[(T&p)+32>>2]|0;if(q>>>0>l>>>0)c[((c[(T&p)+4>>2]|0)+(l*20|0)&p)+4>>2]=Q;k=l+1|0;if(q>>>0>k>>>0)c[((c[(T&p)+4>>2]|0)+(k*20|0)&p)+4>>2]=Q;k=l+2|0;m=l+4|0;if(q>>>0>k>>>0)c[((c[(T&p)+4>>2]|0)+(k*20|0)&p)+8>>2]=m;if(q>>>0>m>>>0)c[((c[(T&p)+4>>2]|0)+(m*20|0)&p)+4>>2]=r;m=l+5|0;if(q>>>0>m>>>0)c[((c[(T&p)+4>>2]|0)+(m*20|0)&p)+4>>2]=Q;G=T+96|0;c[(G&p)>>2]=c[(G&p)>>2]|1<>2]=3;if(((a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0?(Xg(c[(T&p)+16>>2]|0,31288,-1,1,0)|0,(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(T&p)+16>>2]|0)+40|0,31184,-1,1,0)|0,(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0):0)Xg((c[(T&p)+16>>2]|0)+80|0,31352,-1,1,0)|0;l=W+20|0;m=c[(l&p)>>2]|0;if((m|0)>0)q=0;else break a;do{if(c[((c[(R&p)>>2]|0)+(q<<4)&p)+4>>2]|0){wh(T,25,q,1,0)|0;k=c[((c[(R&p)>>2]|0)+(q<<4)&p)>>2]|0;xh(T,wh(T,97,0,2,0)|0,k,0);k=c[(c[((c[((c[(R&p)>>2]|0)+(q<<4)&p)+4>>2]|0)&p)+4>>2]&p)>>2]|0;if(!(a[(k&n)+15>>0]|0))k=c[(k&p)+168>>2]|0;else k=10360;xh(T,wh(T,97,0,3,0)|0,k,0);wh(T,35,1,3,0)|0;m=c[(l&p)>>2]|0}q=q+1|0}while((q|0)<(m|0));break}case 6:{iq(T,2);c[(S&p)>>2]=2;if((a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0?(Xg(c[(T&p)+16>>2]|0,31288,-1,1,0)|0,(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0):0)Xg((c[(T&p)+16>>2]|0)+40|0,31184,-1,1,0)|0;m=c[(W&p)+436>>2]|0;if(!m)break a;else l=0;while(1){G=c[(m&p)+8>>2]|0;wh(T,25,l,1,0)|0;G=c[(G&p)>>2]|0;xh(T,wh(T,97,0,2,0)|0,G,0);wh(T,35,1,2,0)|0;m=c[(m&p)>>2]|0;if(!m)break;else l=l+1|0}break}case 13:{if(!U)break a;k=_h(W,U,L)|0;if(!k)break a;g=Oq(f)|0;q=c[(k&p)+16>>2]|0;if(!q)break a;iq(g,8);c[(S&p)>>2]=8;Ar(f,Q);do if((((a[((c[(g&p)>>2]|0)&n)+65>>0]|0)==0?(Xg(c[(g&p)+16>>2]|0,31360,-1,1,0)|0,(a[((c[(g&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(g&p)+16>>2]|0)+40|0,31288,-1,1,0)|0,(a[((c[(g&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(g&p)+16>>2]|0)+80|0,31232,-1,1,0)|0,(a[((c[(g&p)>>2]|0)&n)+65>>0]|0)==0):0){Xg((c[(g&p)+16>>2]|0)+120|0,31368,-1,1,0)|0;if(a[((c[(g&p)>>2]|0)&n)+65>>0]|0)break;Xg((c[(g&p)+16>>2]|0)+160|0,31376,-1,1,0)|0;if(a[((c[(g&p)>>2]|0)&n)+65>>0]|0)break;Xg((c[(g&p)+16>>2]|0)+200|0,31384,-1,1,0)|0;if(a[((c[(g&p)>>2]|0)&n)+65>>0]|0)break;Xg((c[(g&p)+16>>2]|0)+240|0,31400,-1,1,0)|0;if(a[((c[(g&p)>>2]|0)&n)+65>>0]|0)break;Xg((c[(g&p)+16>>2]|0)+280|0,31416,-1,1,0)|0}while(0);v=k+4|0;w=0;while(1){k=q+20|0;if((c[(k&p)>>2]|0)>0){m=q+25|0;l=q+26|0;t=q+8|0;h=0;do{u=c[(q+(h<<3)&p)+40>>2]|0;s=d[(m&n)>>0]|0;if((s|0)==8)r=32072;else if((s|0)==9)r=32088;else if((s|0)==6)r=32096;else if((s|0)==7)r=32056;else r=32112;s=d[(l&n)>>0]|0;if((s|0)==8)s=32072;else if((s|0)==9)s=32088;else if((s|0)==6)s=32096;else if((s|0)==7)s=32056;else s=32112;wh(g,25,w,1,0)|0;wh(g,25,h,2,0)|0;G=c[(t&p)>>2]|0;xh(g,wh(g,97,0,3,0)|0,G,0);G=c[((c[(v&p)>>2]|0)+((c[(q+(h<<3)&p)+36>>2]|0)*24|0)&p)>>2]|0;xh(g,wh(g,97,0,4,0)|0,G,0);xh(g,wh(g,(u|0)!=0?97:28,0,5,0)|0,u,0);xh(g,wh(g,97,0,6,0)|0,s,0);xh(g,wh(g,97,0,7,0)|0,r,0);xh(g,wh(g,97,0,8,0)|0,31424,0);wh(g,35,1,8,0)|0;h=h+1|0}while((h|0)<(c[(k&p)>>2]|0))}q=c[(q&p)+4>>2]|0;if(!q)break;else w=w+1|0}break}case 11:{if(!U){if(Gn(f)|0)break a;iq(T,1);if(!(a[((c[(T&p)>>2]|0)&n)+65>>0]|0))Xg(c[(T&p)+16>>2]|0,31784,-1,1,0)|0;wh(T,97,0,1,0)|0;xh(T,-1,c[(d[((c[(f&p)>>2]|0)&n)+62>>0]<<3&p)+31632>>2]|0,-2);wh(T,35,1,1,0)|0;break a}k=c[((c[(R&p)>>2]|0)&p)+12>>2]|0;if((b[(k&o)+78>>1]&5)==1)break a;else{m=31632;l=31704}do{if(!(dd(U,l)|0)){v=m;P=415;break}m=m+8|0;l=c[(m&p)>>2]|0}while((l|0)!=0);if((P|0)==415?(F=a[(v&n)+4>>0]|0,F=F<<24>>24==0?2:F,a[(W&n)+62>>0]=F,a[(k&n)+77>>0]=F,(c[(v&p)>>2]|0)!=0):0)break a;c[(G&p)>>2]=U;th(f,31800,G);break a}case 0:{s=c[((w*12|0)&p)+30128>>2]|0;F=T+96|0;c[(F&p)>>2]=c[(F&p)>>2]|1<>2]|0)>>>0>m>>>0)c[((c[(T&p)+4>>2]|0)+(m*20|0)&p)+4>>2]=Q;l=m+1|0;c[(G&p)>>2]=0;Dn(U,G)|0;k=c[(k&p)>>2]|0;if(k>>>0>l>>>0)c[((c[(T&p)+4>>2]|0)+(l*20|0)&p)+4>>2]=c[(G&p)>>2];m=m+2|0;if(k>>>0<=m>>>0)break a;c[((c[(T&p)+4>>2]|0)+(m*20|0)&p)+4>>2]=Q;c[((c[(T&p)+4>>2]|0)+(m*20|0)&p)+8>>2]=s;break a}m=yh(T,3,31848)|0;k=c[(T&p)+32>>2]|0;if(k>>>0>m>>>0)c[((c[(T&p)+4>>2]|0)+(m*20|0)&p)+4>>2]=Q;m=m+1|0;if(k>>>0>m>>>0){c[((c[(T&p)+4>>2]|0)+(m*20|0)&p)+4>>2]=Q;c[((c[(T&p)+4>>2]|0)+(m*20|0)&p)+12>>2]=s}iq(T,1);if(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)break a;Xg(c[(T&p)+16>>2]|0,V,-1,1,-1)|0;break a}case 7:{iq(T,1);c[(S&p)>>2]=1;if(!(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)){Xg(c[(T&p)+16>>2]|0,31864,-1,1,0)|0;l=0}else l=0;do{G=c[(l<<2&p)+8648>>2]|0;l=l+1|0;xh(T,wh(T,97,0,1,0)|0,G,0);wh(T,35,1,1,0)|0}while((l|0)!=4);break}case 35:{m=(c[(h&p)>>2]|0)!=0?Q:10;if(U)if(dd(U,31880)|0)if(!(dd(U,31888)|0))l=2;else{l=(dd(U,31896)|0)==0;l=l?3:0}else l=1;else l=0;iq(T,3);c[(S&p)>>2]=3;if(((a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0?(Xg(c[(T&p)+16>>2]|0,31912,-1,1,0)|0,(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(T&p)+16>>2]|0)+40|0,31920,-1,1,0)|0,(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0):0)Xg((c[(T&p)+16>>2]|0)+80|0,31928,-1,1,0)|0;wh(T,11,m,l,1)|0;wh(T,35,1,3,0)|0;break a}case 26:{of(W)|0;break a}case 34:{if(!U)l=c[(W&p)+216>>2]|0;else{c[(G&p)>>2]=0;Dn(U,G)|0;l=c[(G&p)>>2]|0;if((l|0)>0)m=21;else{l=0;m=0}c[(W&p)+216>>2]=m;c[(W&p)+220>>2]=l;l=m}if((l|0)==21){l=c[(W&p)+220>>2]|0;m=l;l=((l|0)<0)<<31>>31}else{m=0;l=0}Jt(f,31944,m,l);break a}case 27:{if((U|0)!=0?(ji(U,x)|0)==0:0){G=x;Pc(c[(G&p)>>2]|0,c[(G&p)+4>>2]|0)|0}F=(Lc()|0)==0;G=9032;Jt(f,31976,F?c[(G&p)>>2]|0:-1,F?c[(G&p)+4>>2]|0:-1);break a}case 33:{if((U|0)!=0?(E=(ji(U,s)|0)==0,G=s,F=c[(G&p)+4>>2]|0,E&((F|0)>-1|(F|0)==-1&(c[(G&p)>>2]|0)>>>0>4294967295)):0)c[(W&p)+132>>2]=0;G=c[(W&p)+132>>2]|0;Jt(f,31992,G,((G|0)<0)<<31>>31);break a}case 12:{g=c[(S&p)>>2]|0;H=g+1|0;I=g+5|0;J=g+6|0;c[(S&p)>>2]=J;K=Oq(f)|0;iq(K,4);if((((a[((c[(K&p)>>2]|0)&n)+65>>0]|0)==0?(Xg(c[(K&p)+16>>2]|0,31232,-1,1,0)|0,(a[((c[(K&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(K&p)+16>>2]|0)+40|0,20456,-1,1,0)|0,(a[((c[(K&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(K&p)+16>>2]|0)+80|0,31432,-1,1,0)|0,(a[((c[(K&p)>>2]|0)&n)+65>>0]|0)==0):0)Xg((c[(K&p)+16>>2]|0)+120|0,31440,-1,1,0)|0;Ar(f,Q);w=c[((c[((c[(R&p)>>2]|0)+(Q<<4)&p)+12>>2]|0)&p)+16>>2]|0;if(!w)break a;u=(U|0)==0;h=f+68|0;v=K+32|0;D=K+4|0;E=K+24|0;F=g+2|0;G=g+3|0;A=g+4|0;t=f+8|0;while(1){if(u){B=c[(w&p)>>2]|0;C=c[(w&p)+8>>2]|0}else{B=0;C=sh(f,0,U,L)|0}if((C|0)!=0?(M=C+16|0,(c[(M&p)>>2]|0)!=0):0){gs(f,Q,c[(C&p)+32>>2]|0,0,c[(C&p)>>2]|0);g=(b[(C&o)+38>>1]|0)+J|0;if((g|0)>(c[(S&p)>>2]|0))c[(S&p)>>2]=g;Qq(f,0,Q,C,54);w=c[(C&p)>>2]|0;xh(K,wh(K,97,0,H,0)|0,w,0);w=c[(M&p)>>2]|0;if(!w)g=1;else{g=1;do{l=_h(W,c[(w&p)+8>>2]|0,L)|0;do if(l){c[(O&p)>>2]=0;gs(f,Q,c[(l&p)+32>>2]|0,0,c[(l&p)>>2]|0);if(Mt(f,l,w,O,0)|0)break a;m=c[(O&p)>>2]|0;if(!m){Qq(f,g,Q,l,54);break}else{wh(K,54,g,c[(m&p)+40>>2]|0,Q)|0;z=c[(t&p)>>2]|0;xh(z,-1,hs(f,m)|0,-6);break}}while(0);g=g+1|0;w=c[(w&p)+4>>2]|0}while((w|0)!=0)}if((c[(h&p)>>2]|0)<(g|0))c[(h&p)>>2]=g;s=wh(K,108,0,0,0)|0;g=c[(M&p)>>2]|0;if(g){z=C+36|0;y=1;while(1){x=g+8|0;w=_h(W,c[(x&p)>>2]|0,L)|0;c[(O&p)>>2]=0;c[(N&p)>>2]=0;r=(w|0)!=0;do if(r){Mt(f,w,g,O,N)|0;l=c[(O&p)>>2]|0;m=xs(K)|0;if(!(r&(l|0)==0)){w=m;P=306;break}w=c[(g&p)+36>>2]|0;if((w|0)==(b[(z&o)>>1]|0))wh(K,103,0,J,0)|0;else{wh(K,47,0,w,J)|0;Nt(K,C,w,J);wh(K,76,J,m,0)|0;wh(K,38,J,(c[(v&p)>>2]|0)+3|0,0)|0}wh(K,70,y,0,J)|0;wh(K,16,0,m,0)|0;w=c[(v&p)>>2]|0;if(w>>>0>1)c[((c[(D&p)>>2]|0)+((w+-2|0)*20|0)&p)+8>>2]=w;c[((c[(E&p)>>2]|0)&p)+88>>2]=w+-1;w=m}else{w=xs(K)|0;l=0;P=306}while(0);do if((P|0)==306){P=0;q=g+20|0;m=c[(q&p)>>2]|0;if((m|0)>0){k=0;do{m=c[(N&p)>>2]|0;if(!m)m=g+(k<<3)+36|0;else m=m+(k<<2)|0;R=k+J|0;nt(K,C,0,c[(m&p)>>2]|0,R);wh(K,76,R,w,0)|0;k=k+1|0;m=c[(q&p)>>2]|0}while((k|0)<(m|0))}if(!r)break;k=ot(K,l)|0;l=c[(q&p)>>2]|0;xh(K,wh(K,49,J,m,I)|0,k,l);xh(K,wh(K,69,y,w,I)|0,0,-14)}while(0);wh(K,103,0,F,0)|0;l=c[(x&p)>>2]|0;xh(K,wh(K,97,0,G,0)|0,l,0);wh(K,25,y+-1|0,A,0)|0;wh(K,35,H,4,0)|0;l=c[(E&p)>>2]|0;m=~w;do if((w|0)<0){w=c[(l&p)+112>>2]|0;if(!w)break;c[(w+(m<<2)&p)>>2]=c[(v&p)>>2]}while(0);c[(l&p)+88>>2]=(c[(v&p)>>2]|0)+-1;mg(W,c[(N&p)>>2]|0);g=c[(g&p)+4>>2]|0;if(!g)break;else y=y+1|0}}wh(K,9,0,s+1|0,0)|0;g=c[(v&p)>>2]|0;if(g>>>0>s>>>0)c[((c[(D&p)>>2]|0)+(s*20|0)&p)+8>>2]=g;c[((c[(E&p)>>2]|0)&p)+88>>2]=g+-1}if(!B)break;else w=B}break}case 23:{Jt(f,31016,0,0);break a}case 31:{if(!U){Jt(f,31032,d[(W&n)+64>>0]|0,0);break a}l=a[(U&n)>>0]|0;if((l+-48&255)>=3)if(!(dd(U,31352)|0))l=1;else{l=(dd(U,15168)|0)==0;l=l?2:0}else l=(l<<24>>24)+-48|0;m=(c[(f&p)>>2]|0)+64|0;if((d[(m&n)>>0]|0)==(l|0))break a;if(Kt(f)|0)break a;a[(m&n)>>0]=l;break a}case 29:{if(!U){G=(d[(C+(Q<<4)&n)+8>>0]|0)+-1|0;Jt(f,31104,G,((G|0)<0)<<31>>31);break a}if(!(a[(W&n)+63>>0]|0)){th(f,31120,G);break a}else{a[(C+(Q<<4)&n)+8>>0]=((ii(U,0,1)|0)&255)+1;Lt(W);break a}}case 4:if(!U){G=c[((c[(C+(Q<<4)&p)+12>>2]|0)&p)+80>>2]|0;Jt(f,30848,G,((G|0)<0)<<31>>31);break a}else{c[(G&p)>>2]=0;Dn(U,G)|0;G=c[(G&p)>>2]|0;c[((c[(C+(Q<<4)&p)+12>>2]|0)&p)+80>>2]=G;pq(c[(C+(Q<<4)&p)+4>>2]|0,G);break a}default:{if(!U)l=c[(W&p)+492>>2]|0;else{c[(G&p)>>2]=0;Dn(U,G)|0;l=c[(G&p)>>2]|0;G=(l|0)>0;l=G?l:0;c[(W&p)+444>>2]=G?74:0;c[(W&p)+448>>2]=G?W:0;c[(r&p)>>2]=0;c[(W&p)+492>>2]=l}Jt(f,31968,l,((l|0)<0)<<31>>31);break a}}while(0)}else{k=c[(q&p)>>2]|0;if(k){c[(G&p)>>2]=k;th(f,10344,G);Wc(c[(q&p)>>2]|0)}G=f+64|0;c[(G&p)>>2]=(c[(G&p)>>2]|0)+1;c[(f&p)+12>>2]=g;break}}while(0);mg(W,V);mg(W,U)}}while(0);i=X;return}function Gr(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0;h=i;i=i+16|0;if((i|0)>=(j|0))fa();g=h;a:do if(!d)d=0;else{f=d;while(1){if((a[(f&n)>>0]|0)==-121){d=c[(b&p)>>2]|0;if(!(a[((c[(d&p)>>2]|0)&n)+145>>0]|0))break;a[(f&n)>>0]=101}d=c[(f&p)+4>>2]|0;if(d&16384){d=0;break a}e=f+20|0;if(!(d&2048)){if(Hr(b,c[(e&p)>>2]|0)|0){d=1;break a}}else if(fr(b,c[(e&p)>>2]|0)|0){d=1;break a}if(Gr(b,c[(f&p)+16>>2]|0)|0){d=1;break a}f=c[(f&p)+12>>2]|0;if(!f){d=0;break a}}c[(g&p)>>2]=c[(b&p)+16>>2];th(d,29984,g);d=1}while(0);i=h;return d|0}function Hr(a,b){a=a|0;b=b|0;var d=0,e=0;a:do if((b|0)!=0?(c[(b&p)>>2]|0)>0:0){d=0;e=c[(b&p)+4>>2]|0;while(1){if(Gr(a,c[(e&p)>>2]|0)|0){d=1;break a}d=d+1|0;if((d|0)>=(c[(b&p)>>2]|0)){d=0;break}else e=e+20|0}}else d=0;while(0);return d|0}function Ir(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;xh(a,wh(a,122,b,0,0)|0,d,-1);d=c[((c[(a&p)>>2]|0)&p)+20>>2]|0;if((d|0)>0){e=a+96|0;b=c[(e&p)>>2]|0;a=0;do{b=b|1<>2]=b}return}function Jr(a,d){a=a|0;d=d|0;var e=0,f=0;e=d+8|0;f=Ur(a,0,e)|0;d=d+24|0;kg(c[(a&p)>>2]|0,c[(d&p)>>2]|0);c[(d&p)>>2]=f;if(f){d=f+40|0;b[(d&o)>>1]=(b[(d&o)>>1]|0)+1<<16>>16}e=(Rt(a,e)|0)==0;return (e?f:0)|0}function Kr(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0;n=i;i=i+16|0;if((i|0)>=(j|0))fa();m=n;a:do if((b|0)!=0?(f=c[(a&p)+12>>2]|0,(c[(b&p)>>2]|0)>0):0){g=a+8|0;h=a+4|0;k=0;l=b+8|0;while(1){if(!(c[(g&p)>>2]|0)){e=l+4|0;d=c[(e&p)>>2]|0;if((d|0)!=0?(dd(d,f)|0)!=0:0)break;mg(c[(c[(a&p)>>2]&p)>>2]|0,d);c[(e&p)>>2]=0;c[(l&p)>>2]=c[(h&p)>>2]}if(fr(a,c[(l&p)+20>>2]|0)|0){d=1;break a}if(Gr(a,c[(l&p)+44>>2]|0)|0){d=1;break a}k=k+1|0;if((k|0)>=(c[(b&p)>>2]|0)){d=0;break a}else l=l+72|0}b=c[(a&p)>>2]|0;l=c[(a&p)+20>>2]|0;c[(m&p)>>2]=c[(a&p)+16>>2];c[(m&p)+4>>2]=l;c[(m&p)+8>>2]=d;th(b,29936,m);d=1}else d=0;while(0);i=n;return d|0}function Lr(b,d){b=b|0;d=d|0;var e=0,f=0,g=0;f=i;i=i+16|0;if((i|0)>=(j|0))fa();e=f;g=c[(b&p)>>2]|0;if((((a[(g&n)+145>>0]|0)==0?(a[(b&n)+18>>0]|0)==0:0)?(c[(g&p)+24>>2]&2048|0)==0:0)?(Fc(d,25568,7)|0)==0:0){c[(e&p)>>2]=d;th(b,28440,e);b=1}else b=0;i=f;return b|0}function Mr(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,o=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0;x=i;i=i+16|0;if((i|0)>=(j|0))fa();w=x;do if(d){t=e&1;v=(f|0)!=0;if(v){g=c[(f&p)>>2]|0;r=32768}else{g=St(d,e)|0;g=mh(b,g,((g|0)<0)<<31>>31)|0;r=0}c[(w&p)>>2]=g;if(g){l=(t|0)==0;if(!l)if(!(c[(d&p)+12>>2]|0))q=(c[(d&p)+20>>2]|0)==0?16396:8220;else q=8220;else q=48;s=q&60;u=d+4|0;m=c[(u&p)>>2]|0;if((m&1024|0)==0?(h=c[(d&p)+8>>2]|0,(h|0)!=0):0){k=h;while(1)if(!(a[(k&n)>>0]|0))break;else k=k+1|0;o=(k-h&1073741823)+1|0}else o=0;if(l){if(!(m&16384))k=(m&8192|0)==0?48:28;else k=12;kw(g|0,d|0,k|0)|0;fw(g+k|0,0,48-k|0)|0}else kw(g|0,d|0,s|0)|0;m=g+4|0;h=q&24576|r|c[(m&p)>>2]&-122881;c[(m&p)>>2]=h;if(o){h=g+s|0;c[(g&p)+8>>2]=h;kw(h|0,c[(d&p)+8>>2]|0,o|0)|0;h=c[(m&p)>>2]|0}k=c[(u&p)>>2]|0;do if(!((h|k)&16384)){h=d+20|0;if(!(k&2048)){c[(g&p)+20>>2]=Pr(b,c[(h&p)>>2]|0,t)|0;break}else{c[(g&p)+20>>2]=gr(b,c[(h&p)>>2]|0,t)|0;break}}while(0);h=c[(m&p)>>2]|0;if(!(h&24576)){if(c[(u&p)>>2]&16384)break;c[(g&p)+12>>2]=Mr(b,c[(d&p)+12>>2]|0,0,0)|0;c[(g&p)+16>>2]=Mr(b,c[(d&p)+16>>2]|0,0,0)|0;break}t=Tt(d,e)|0;c[(w&p)>>2]=(c[(w&p)>>2]|0)+t;if(h&8192){c[(g&p)+12>>2]=Mr(b,c[(d&p)+12>>2]|0,1,w)|0;c[(g&p)+16>>2]=Mr(b,c[(d&p)+16>>2]|0,1,w)|0}if(v)c[(f&p)>>2]=c[(w&p)>>2]}}else g=0;while(0);i=x;return g|0}function Nr(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;a:do if((b|0)!=0?(d=mh(a,8,0)|0,(d|0)!=0):0){g=b+4|0;c[(d&p)+4>>2]=c[(g&p)>>2];e=mh(a,c[(g&p)>>2]<<3,0)|0;c[(d&p)>>2]=e;if(!e){mg(a,d);d=0;break}if((c[(g&p)>>2]|0)>0){f=0;while(1){h=c[(b&p)>>2]|0;c[(e+(f<<3)&p)>>2]=kh(a,c[(h+(f<<3)&p)>>2]|0)|0;c[(e+(f<<3)&p)+4>>2]=c[(h+(f<<3)&p)+4>>2];f=f+1|0;if((f|0)>=(c[(g&p)>>2]|0))break a;e=c[(d&p)>>2]|0}}}else d=0;while(0);return d|0}function Or(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0;f=e+4|0;g=(c[(f&p)>>2]|0)+40|0;b=mh(b,g,0)|0;if(b){fw(b|0,0,g|0)|0;g=b+40|0;kw(g|0,c[(e&p)>>2]|0,c[(f&p)>>2]|0)|0;c[(b&p)+12>>2]=g;c[(b&p)+16>>2]=c[(f&p)>>2];a[(b&n)>>0]=d}return b|0}function Pr(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0;do if((d|0)!=0?(f=mh(b,8,0)|0,(f|0)!=0):0){g=c[(d&p)>>2]|0;c[(f&p)>>2]=g;if(!(e&1)){h=c[(d&p)>>2]|0;g=1;while(1)if((g|0)<(h|0))g=g<<1;else break}g=mh(b,g*20|0,0)|0;c[(f&p)+4>>2]=g;if(!g){mg(b,f);f=0;break}if((c[(d&p)>>2]|0)>0){i=0;h=c[(d&p)+4>>2]|0;while(1){c[(g&p)>>2]=Mr(b,c[(h&p)>>2]|0,e,0)|0;c[(g&p)+4>>2]=kh(b,c[(h&p)+4>>2]|0)|0;c[(g&p)+8>>2]=kh(b,c[(h&p)+8>>2]|0)|0;a[(g&n)+12>>0]=a[(h&n)+12>>0]|0;j=g+13|0;k=a[(j&n)>>0]|0;a[(j&n)>>0]=k&-2;a[(j&n)>>0]=a[(h&n)+13>>0]&2|k&-4;c[(g&p)+16>>2]=c[(h&p)+16>>2];i=i+1|0;if((i|0)>=(c[(d&p)>>2]|0))break;else{g=g+20|0;h=h+20|0}}}}else f=0;while(0);return f|0}function Qr(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0;o=i;i=i+16|0;if((i|0)>=(j|0))fa();k=o;l=c[(a&p)>>2]|0;f=c[(b&p)+20>>2]|0;a:do if(f){e=c[(l&p)+20>>2]|0;if((e|0)>0){d=c[(l&p)+16>>2]|0;h=0;while(1){g=h+1|0;if((c[(d+(h<<4)&p)+12>>2]|0)==(f|0)){g=h;break a}if((g|0)<(e|0))h=g;else break}}else g=0}else g=-1e6;while(0);d=bn((c[(b&p)+24>>2]|0)+8|0,c[(b&p)+4>>2]|0,k)|0;if(!d)f=0;else f=c[(d&p)+8>>2]|0;d=c[((c[(l&p)+16>>2]|0)+(g<<4)&p)>>2]|0;e=(g|0)==1;if((((Sq(a,e?14:16,c[(b&p)>>2]|0,c[(f&p)>>2]|0,d)|0)==0?(Sq(a,9,e?13184:13208,0,d)|0)==0:0)?(m=Oq(a)|0,(m|0)!=0):0)?(n=c[(a&p)+408>>2]|0,Ar(a,g),n=((n|0)==0?a:n)+328|0,c[(n&p)>>2]=c[(n&p)>>2]|1<>2]|0,0),xh(m,n+4|0,10720,-2),Dr(a,g),wh(m,61,0,0,0)|0,n=c[(b&p)>>2]|0,xh(m,wh(m,126,g,0,0)|0,n,0),n=a+72|0,(c[(n&p)>>2]|0)<3):0)c[(n&p)>>2]=3;i=o;return}function Rr(d,e,f,g,h,k,l){d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;var m=0,q=0,r=0,s=0,t=0,u=0,v=0;v=i;i=i+32|0;if((i|0)>=(j|0))fa();m=v;t=c[(d&p)>>2]|0;c[(m&p)>>2]=0;c[(m&p)+4>>2]=0;c[(m&p)+8>>2]=0;c[(m&p)+12>>2]=0;c[(m&p)+16>>2]=0;c[(m&p)+20>>2]=0;c[(m&p)+24>>2]=0;c[(m&p)+28>>2]=0;c[(m&p)>>2]=d;do if(h)if((a[(h&n)>>0]|0)!=27)if(!(ls(m,h)|0)){u=5;break}else{u=13;break}else{a[(h&n)>>0]=97;u=5;break}else u=5;while(0);a:do if((u|0)==5){do if(k)if((a[(k&n)>>0]|0)!=27)if(!(ls(m,k)|0))break;else{u=13;break a}else{a[(k&n)>>0]=97;break}while(0);do if(l)if((a[(l&n)>>0]|0)!=27)if(!(ls(m,l)|0))break;else{u=13;break a}else{a[(l&n)>>0]=97;break}while(0);if(g){if((a[(g&n)>>0]|0)==97)g=c[(g&p)+8>>2]|0;else g=0;if(Sq(d,e,g,0,0)|0)break}s=Oq(d)|0;m=d+60|0;g=c[(m&p)>>2]|0;q=d+56|0;r=c[(q&p)>>2]|0;if((r|0)<4){r=d+72|0;g=c[(r&p)>>2]|0;c[(r&p)>>2]=g+4;g=g+1|0}else{c[(m&p)>>2]=g+4;c[(q&p)>>2]=r+-4}Rq(d,h,g);Rq(d,k,g+1|0);Rq(d,l,g+2|0);if(s){g=g+3|0;wh(s,1,0,g-(b[(f&o)>>1]|0)|0,g)|0;g=c[(s&p)+4>>2]|0;if(g)a[(g+(((c[(s&p)+32>>2]|0)+-1|0)*20|0)&n)+3>>0]=b[(f&o)>>1];xh(s,-1,f,-5);wh(s,144,(e|0)==24&1,0,0)|0}}while(0);if((u|0)==13){f=d+64|0;c[(f&p)>>2]=(c[(f&p)>>2]|0)+1}Gk(t,h);Gk(t,k);Gk(t,l);i=v;return}function Sr(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0;m=i;i=i+16|0;if((i|0)>=(j|0))fa();l=m;g=m+4|0;h=c[(b&p)>>2]|0;a:do if(!(Gn(b)|0)){if(!d){Ut(b,0);break}if(!((e|0)!=0?(c[(e&p)>>2]|0)!=0:0))f=6;do if((f|0)==6){f=Wq(c[(b&p)>>2]|0,d)|0;if(!f)break a;if(!(Yn(h,a[(h&n)+62>>0]|0,f,0)|0)){mg(h,f);break}else{Ut(b,f);mg(h,f);break a}}while(0);d=er(b,d,e,g)|0;if((d|0)>=0?(k=Wq(h,c[(g&p)>>2]|0)|0,(k|0)!=0):0){e=c[((c[(h&p)+16>>2]|0)+(d<<4)&p)>>2]|0;f=_h(h,k,e)|0;if(f){Vt(b,f,0);mg(h,k);break}e=bq(h,k,e)|0;mg(h,k);if(!e){th(b,28872,l);break}else{f=c[(b&p)+408>>2]|0;Ar(b,d);f=((f|0)==0?b:f)+328|0;c[(f&p)>>2]=c[(f&p)>>2]|1<=(j|0))fa();f=h;g=c[(a&p)>>2]|0;if(!(Gn(a)|0)){do if(!b){b=g+20|0;e=c[(b&p)>>2]|0;if((e|0)>0){d=0;do{if((d|0)!=1){Wt(a,d);e=c[(b&p)>>2]|0}d=d+1|0}while((d|0)<(e|0))}}else{if(c[(d&p)+4>>2]|0){e=er(a,b,d,f)|0;if((e|0)<=-1)break;e=c[((c[(g&p)+16>>2]|0)+(e<<4)&p)>>2]|0;b=Wq(g,c[(f&p)>>2]|0)|0;if(!b)break;d=bq(g,b,e)|0;if(!d){e=sh(a,0,b,e)|0;if(e)Xt(a,e,0)}else Xt(a,c[(d&p)+12>>2]|0,d);mg(g,b);break}d=Wq(g,b)|0;e=Vh(g,d)|0;mg(g,d);if((e|0)>-1){Wt(a,e);break}d=Wq(g,b)|0;if(d){e=bq(g,d,0)|0;if(!e){e=sh(a,0,d,0)|0;if(e)Xt(a,e,0)}else Xt(a,c[(e&p)+12>>2]|0,e);mg(g,d)}}while(0);e=Oq(a)|0;if(e)wh(e,144,0,0,0)|0}i=h;return}function Ur(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,i=0;f=c[(d&p)>>2]|0;if(!f)e=d+4|0;else{i=c[(a&p)>>2]|0;g=c[(i&p)+20>>2]|0;i=c[(i&p)+16>>2]|0;a:do if((g|0)>0){h=0;while(1){e=h+1|0;if((c[(i+(h<<4)&p)+12>>2]|0)==(f|0)){e=h;break a}if((e|0)<(g|0))h=e;else break}}else e=0;while(0);e=i+(e<<4)|0}return sh(a,b,c[(d&p)+8>>2]|0,c[(e&p)>>2]|0)|0}function Vr(b,d){b=b|0;d=d|0;var e=0,f=0,g=0;g=i;i=i+16|0;if((i|0)>=(j|0))fa();f=g;if(d){e=d;while(1)if(!(a[(e&n)>>0]|0))break;else e=e+1|0;if((e-d&1073741823)>>>0>6?(Fc(d,25568,7)|0)==0:0){c[(f&p)>>2]=d;th(b,25576,f);e=1}else e=0}else e=0;i=g;return e|0}function Wr(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;f=i;i=i+16|0;if((i|0)>=(j|0))fa();e=f;if(!b){c[(e&p)>>2]=d;a=uh(a,25992,e)|0}else{c[(e&p)>>2]=b;c[(e&p)+4>>2]=d;e=uh(a,26e3,e)|0;mg(a,b);a=e}i=f;return a|0}function Xr(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;h=i;i=i+16|0;if((i|0)>=(j|0))fa();g=h;e=c[(a&p)>>2]|0;f=c[((c[(e&p)+16>>2]|0)&p)+28>>2]|0;if((c[(b&p)+68>>2]|0)!=(f|0)?(d=As(a,b)|0,(d|0)!=0):0){b=d;d=0;do{if((c[(b&p)+20>>2]|0)==(f|0))d=Wr(e,d,c[(b&p)>>2]|0)|0;b=c[(b&p)+32>>2]|0}while((b|0)!=0);if(d){b=c[(a&p)>>2]|0;c[(g&p)>>2]=d;b=uh(b,25968,g)|0;mg(c[(a&p)>>2]|0,d);d=b}else d=0}else d=0;i=h;return d|0}function Yr(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,q=0,r=0;r=i;i=i+16|0;if((i|0)>=(j|0))fa();n=r;o=Oq(a)|0;if(o){e=c[(a&p)>>2]|0;h=c[(b&p)+68>>2]|0;a:do if(h){k=c[(e&p)+20>>2]|0;if((k|0)>0){f=c[(e&p)+16>>2]|0;g=0;while(1){e=g+1|0;if((c[(f+(g<<4)&p)+12>>2]|0)==(h|0))break a;if((e|0)<(k|0))g=e;else{g=e;break}}}else g=0}else g=-1e6;while(0);e=As(a,b)|0;if(e)do{f=c[(a&p)>>2]|0;l=c[(e&p)+20>>2]|0;b:do if(l){m=c[(f&p)+20>>2]|0;if((m|0)>0){k=c[(f&p)+16>>2]|0;h=0;while(1){f=h+1|0;if((c[(k+(h<<4)&p)+12>>2]|0)==(l|0)){f=h;break b}if((f|0)<(m|0))h=f;else break}}else f=0}else f=-1e6;while(0);m=c[(e&p)>>2]|0;xh(o,wh(o,126,f,0,0)|0,m,0);e=c[(e&p)+32>>2]|0}while((e|0)!=0);e=c[(b&p)>>2]|0;xh(o,wh(o,124,g,0,0)|0,e,0);e=c[(a&p)>>2]|0;c[(n&p)>>2]=d;e=uh(e,25952,n)|0;if((e|0)!=0?(Ir(o,g,e),q=Xr(a,b)|0,(q|0)!=0):0)Ir(o,1,q)}i=r;return} function gh(f){f=f|0;var g=0,l=0,m=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,E=0,F=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ea=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,cc=0,dc=0,ec=0,fc=0,gc=0,hc=0,ic=0,kc=0,nc=0,oc=0,qc=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,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,Xc=0,Yc=0,Zc=0,_c=0,$c=0,ad=0,ed=0,fd=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,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,ee=0,fe=0,ge=0,he=0,ie=0,je=0,ke=0,le=0,me=0,ne=0,oe=0,pe=0,qe=0;oe=i;i=i+1040|0;if((i|0)>=(j|0))fa();ke=oe+400|0;Tc=oe+792|0;id=oe+392|0;ad=oe+788|0;Sd=oe+320|0;md=oe+784|0;pd=oe+780|0;qd=oe+280|0;Nd=oe+680|0;$c=oe+240|0;Qd=oe+200|0;_c=oe+676|0;Xc=oe+672|0;Od=oe+160|0;Uc=oe+644|0;td=oe+152|0;Jd=oe+112|0;kd=oe+640|0;Ld=oe+636|0;Yc=oe+632|0;ud=oe+628|0;Ad=oe+624|0;wd=oe+604|0;Bd=oe+600|0;od=oe+596|0;xd=oe+576|0;Sc=oe+840|0;Cd=oe+572|0;Pd=oe+104|0;Dd=oe+568|0;ed=oe+564|0;fd=oe+96|0;Rd=oe+88|0;Ed=oe+560|0;Fd=oe+556|0;Gd=oe+552|0;yd=oe+532|0;zd=oe+512|0;jd=oe+508|0;vd=oe+504|0;Zc=oe+488|0;Md=oe+48|0;Vc=oe+456|0;Rc=oe+444|0;Kd=oe+8|0;sd=oe+440|0;Id=oe+412|0;Hd=oe;zc=f+4|0;s=c[(zc&p)>>2]|0;le=c[(f&p)>>2]|0;Jc=a[(le&n)+62>>0]|0;Nc=f+8|0;z=c[(Nc&p)>>2]|0;ne=le+32|0;l=ne;m=c[(l&p)>>2]|0;l=c[(l&p)+4>>2]|0;me=f+80|0;a:do if((c[(me&p)>>2]|0)==7){y=le+65|0;z=f+44|0;r=m;g=0;t=0;m=0;ie=1317}else{c[(me&p)>>2]=0;de=f+136|0;c[(de&p)>>2]=0;c[(de&p)+4>>2]=0;de=f+20|0;c[(de&p)>>2]=0;c[(le&p)+452>>2]=0;Cc=le+240|0;b:do if(!(c[(Cc&p)>>2]|0)){be=le+292|0;if(c[(be&p)>>2]|0){r=c[(f&p)+124>>2]|0;g=le+300|0;y=c[(g&p)>>2]|0;if(!r)yc=g;else{yc=g;y=(r>>>0)%(y>>>0)|0}}else{yc=le+300|0;y=0}he=f+76|0;ge=le+65|0;Zd=le+296|0;sb=f+176|0;tb=f+184|0;ub=f+92|0;vb=le+80|0;wb=le+84|0;xb=Jc&255;yb=Jc<<24>>24==1;zb=le+88|0;Ab=f+60|0;_d=f+144|0;fe=f+86|0;je=f+44|0;Bb=f+12|0;Cb=Uc+4|0;Db=Uc+16|0;Eb=Uc+12|0;Fb=Uc+25|0;Gb=Uc+20|0;Hb=f+200|0;Ib=f+56|0;$d=f+72|0;Jb=Jd+16|0;Kb=Jd+8|0;Lb=Jd+24|0;Mb=f+87|0;ae=le+156|0;Nb=le+500|0;Ob=le+496|0;ee=le+63|0;Pb=le+488|0;Qb=le+504|0;Rb=le+512|0;Sb=le+70|0;Tb=le+24|0;Ub=le+20|0;Xd=le+16|0;Vb=le+4|0;Yd=f+88|0;Wb=f+104|0;Xb=f+152|0;Yb=f+160|0;Zb=le+152|0;_b=le+64|0;$b=wd+4|0;cc=wd+6|0;dc=wd+8|0;ec=xd+4|0;fc=xd+8|0;gc=le+212|0;hc=le+208|0;ic=f+116|0;kc=yd+4|0;nc=yd+6|0;oc=yd+8|0;qc=$c+8|0;sc=$c+32|0;uc=$c+24|0;vc=$c+16|0;wc=$c+12|0;xc=zd+4|0;Y=zd+6|0;Z=zd+8|0;_=qd+8|0;$=qd+32|0;aa=qd+24|0;ea=qd+12|0;ga=qd+16|0;ha=le+164|0;ia=Zc+8|0;ja=Zc+4|0;ka=le+145|0;la=Zc+12|0;ma=Sd+4|0;na=Sd+12|0;oa=Sd+16|0;pa=Sd+20|0;qa=Sd+24|0;ra=Sd+28|0;sa=Sd+8|0;ta=Sd+40|0;ua=Sd+44|0;va=Sd+48|0;wa=Sd+52|0;xa=Sd+56|0;ya=Sd+60|0;za=Sd+64|0;Aa=Sd+65|0;Ba=le+128|0;Ca=f+28|0;Da=f+36|0;Ea=f+32|0;Fa=f+196|0;Ga=Vc+4|0;Ha=Vc+8|0;Ia=Md+8|0;Ja=Md+32|0;Ka=Md+24|0;La=Vc+20|0;Ma=Vc+12|0;Na=Vc+16|0;Oa=Vc+24|0;Pa=Rc+8|0;Qa=Rc+4|0;Ra=le+148|0;Sa=le+176|0;Ta=le+72|0;Ua=le+67|0;Va=Tc+20|0;Wa=Tc+24|0;Xa=Tc+4|0;Ya=Tc+16|0;Za=le+304|0;_a=le+328|0;$a=Kd+32|0;ab=Kd+8|0;bb=Kd+24|0;cb=le+308|0;db=Id+20|0;eb=le+69|0;ce=f+168|0;fb=qd+4|0;gb=qd+8|0;hb=qd+12|0;ib=qd+16|0;jb=qd+20|0;kb=qd+24|0;lb=qd+25|0;mb=le+180|0;nb=Od+32|0;ob=Od+8|0;pb=Od+12|0;qb=Od+16|0;rb=Od+24|0;W=0;X=0;g=0;u=0;t=c[(he&p)>>2]|0;x=0;c:while(1){r=m;d:while(1){if(a[(ge&n)>>0]|0){y=ge;z=je;m=x;ie=1317;break a}m=g+1|0;if(!(a[(s+(t*20|0)&n)+2>>0]&2))L=u;else{u=c[(s+(t*20|0)&p)+8>>2]|0;g=z+(u*40|0)|0;u=z+(u*40|0)+8|0;if(b[(u&o)>>1]&9312)vg(g);b[(u&o)>>1]=4;L=g}C=s+(t*20|0)|0;J=a[(C&n)>>0]|0;u=J&255;e:do switch(u|0){case 17:{g=m;m=r;u=L;ie=22;break d}case 18:{g=m;m=r;u=L;ie=23;break d}case 20:{g=m;m=r;ie=24;break d}case 21:{g=m;m=r;u=L;ie=25;break d}case 22:{g=m;m=r;u=L;ie=26;break d}case 23:{g=m;m=r;u=L;r=t;ie=27;break d}case 29:{g=m;m=r;r=t;ie=65;break d}case 30:{g=m;m=r;u=L;r=t;ie=66;break d}case 28:{g=m;m=r;u=L;r=t;ie=60;break d}case 32:{g=m;m=r;r=t;ie=72;break d}case 24:{g=m;m=r;u=L;r=t;ie=28;break d}case 25:{g=m;m=r;u=L;r=t;ie=44;break d}case 26:{g=m;m=r;u=L;r=t;ie=45;break d}case 133:{g=m;m=r;u=L;r=t;ie=46;break d}case 97:{a[(C&n)>>0]=27;C=s+(t*20|0)+16|0;v=c[(C&p)>>2]|0;if(!v)g=0;else{g=v;while(1)if(!(a[(g&n)>>0]|0))break;else g=g+1|0;g=g-v&1073741823}w=s+(t*20|0)+4|0;c[(w&p)>>2]=g;if(yb)u=0;else{u=Xg(L,v,-1,1,0)|0;if((u|0)==18){g=m;m=r;u=x;ie=1316;break c}if(Yl(L,xb)|0){y=ge;z=je;g=m;m=x;ie=1317;break a}c[(L&p)+24>>2]=0;g=L+8|0;b[(g&o)>>1]=e[(g&o)>>1]|2048;g=s+(t*20|0)+1|0;if((a[(g&n)>>0]|0)==-1)mg(le,c[(C&p)>>2]|0);a[(g&n)>>0]=-1;v=c[(L&p)+16>>2]|0;c[(C&p)>>2]=v;g=c[(L&p)+12>>2]|0;c[(w&p)>>2]=g}if((g|0)>(c[(zb&p)>>2]|0)){g=m;m=r;u=x;ie=1316;break c}else ie=57;break}case 31:{g=m;m=r;u=L;r=t;ie=67;break d}case 34:{g=m;m=r;r=t;ie=79;break d}case 35:{g=m;m=r;u=x;ie=80;break c}case 33:{g=m;m=r;ie=74;break d}case 94:{g=m;m=r;ie=94;break d}case 93:case 92:case 91:case 90:case 89:{g=m;P=C;m=r;r=t;ie=112;break d}case 27:{v=c[(s+(t*20|0)&p)+16>>2]|0;g=c[(s+(t*20|0)&p)+4>>2]|0;u=0;ie=57;break}case 16:{t=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;u=0;ie=19;break}case 36:{g=m;m=r;J=L;r=t;ie=166;break d}case 1:{V=a[(s+(t*20|0)&n)+3>>0]|0;C=V&255;A=c[(Bb&p)>>2]|0;g=z+((c[(s+(t*20|0)&p)+12>>2]|0)*40|0)|0;c[(Uc&p)>>2]=g;if(V<<24>>24){g=0;u=z+((c[(s+(t*20|0)&p)+8>>2]|0)*40|0)|0;while(1){c[(A+(g<<2)&p)>>2]=u;if((b[(u&o)+8>>1]&4096)!=0?(Vl(u)|0)!=0:0){y=ge;z=je;g=m;m=x;ie=1317;break a}g=g+1|0;if((g|0)>=(C|0))break;else u=u+40|0}g=c[(Uc&p)>>2]|0}V=c[(s+(t*20|0)&p)+16>>2]|0;c[(Cb&p)>>2]=V;c[(Db&p)>>2]=t;c[(Eb&p)>>2]=f;U=g+8|0;b[(U&o)>>1]=e[(U&o)>>1]&48640|1;a[(Fb&n)>>0]=0;U=ne;c[(U&p)>>2]=r;c[(U&p)+4>>2]=l;mc[c[(V&p)+12>>2]&63](Uc,C,A);l=ne;r=c[(l&p)>>2]|0;l=c[(l&p)+4>>2]|0;if(!(a[(Fb&n)>>0]|0))g=0;else{if(!(c[(Gb&p)>>2]|0))g=0;else{c[(ke&p)>>2]=Sg(c[(Uc&p)>>2]|0,1)|0;dh(je,le,10344,ke);g=c[(Gb&p)>>2]|0}em(f,t,c[(s+(t*20|0)&p)+4>>2]|0)}Yl(c[(Uc&p)>>2]|0,xb)|0;w=c[(Uc&p)>>2]|0;v=e[(w&o)+8>>1]|0;if(v&18){u=c[(w&p)+12>>2]|0;if(v&16384)u=(c[(w&p)>>2]|0)+u|0;if((u|0)>(c[((c[(w&p)+32>>2]|0)&p)+88>>2]|0)){g=m;m=r;u=x;ie=1316;break c}else{C=L;T=t;u=g}}else{C=L;T=t;u=g}break}case 88:case 87:case 86:case 85:{g=m;H=C;m=r;r=t;ie=184;break d}case 39:{g=m;m=r;J=L;r=t;ie=208;break d}case 37:{g=m;m=r;u=L;r=t;ie=202;break d}case 38:{g=m;m=r;J=L;r=t;ie=203;break d}case 83:case 80:case 81:case 82:case 78:case 79:{g=m;I=J;m=r;u=L;ie=213;break d}case 40:{V=c[(s+(t*20|0)&p)+4>>2]|0;g=z+(V*40|0)|0;if(!(b[(z+(V*40|0)&o)+8>>1]&16384))u=0;else u=Rg(g)|0;gm(g,c[(s+(t*20|0)&p)+8>>2]&255,Jc);C=L;T=t;break}case 41:{g=m;m=r;u=L;r=t;ie=248;break d}case 42:{g=m;m=r;u=L;r=t;ie=249;break d}case 43:{g=m;m=r;u=L;ie=256;break d}case 71:case 72:{g=m;m=r;r=t;ie=261;break d}case 76:{g=m;m=r;u=L;r=t;ie=286;break d}case 19:{g=m;m=r;r=t;ie=268;break d}case 96:{g=m;m=r;r=t;ie=273;break d}case 44:{g=m;m=r;u=L;r=t;ie=278;break d}case 46:case 45:{g=m;m=r;u=L;r=t;ie=281;break d}case 77:{g=m;m=r;u=L;r=t;ie=288;break d}case 47:{g=m;m=r;u=L;ie=290;break d}case 48:{g=m;m=r;u=L;r=t;ie=368;break d}case 49:{g=m;m=r;ie=371;break d}case 50:{E=c[(c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]&p)>>2]|0;f:do if(c[(E&p)+60>>2]|0){g=qm(E)|0;if(!g){K=E+76|0;H=E+44|0;F=E+72|0;v=0;u=0;g:while(1){C=b[(K&o)>>1]|0;J=c[(E+(C<<16>>16<<2)&p)+120>>2]|0;if(!(a[(J&n)+5>>0]|0)){if(!(a[(J&n)+2>>0]|0)){v=jw(e[(J&o)+18>>1]|0,0,v|0,u|0)|0;u=G}}else{v=jw(e[(J&o)+18>>1]|0,0,v|0,u|0)|0;u=G;while(1){if(!(C<<16>>16))break g;if(J){Bg(c[(J&p)+68>>2]|0);C=b[(K&o)>>1]|0}C=C+-1<<16>>16;b[(K&o)>>1]=C;b[(H&o)>>1]=0;a[(F&n)>>0]=d[(F&n)>>0]&249;J=C<<16>>16;A=E+(J<<1)+78|0;I=b[(A&o)>>1]|0;J=c[(E+(J<<2)&p)+120>>2]|0;if((I&65535)<(e[(J&o)+18>>1]|0)){C=I;break}}b[(A&o)>>1]=C+1<<16>>16;J=b[(K&o)>>1]|0;C=J;J=c[(E+(J<<16>>16<<2)&p)+120>>2]|0}C=b[(E+(C<<16>>16<<1)&o)+78>>1]|0;A=c[(J&p)+56>>2]|0;if(C<<16>>16==(b[(J&o)+18>>1]|0)){g=d[(J&n)+6>>0]|0;g=rm(E,d[(A+g&n)+9>>0]<<16|d[(A+g&n)+8>>0]<<24|d[(A+g&n)+10>>0]<<8|d[(A+g&n)+11>>0])|0}else{g=(C&65535)<<1;V=c[(J&p)+64>>2]|0;g=(d[(V+g&n)>>0]<<8|d[(V+(g|1)&n)>>0])&e[(J&o)+20>>1];g=rm(E,d[(A+g&n)+1>>0]<<16|d[(A+g&n)>>0]<<24|d[(A+g&n)+2>>0]<<8|d[(A+g&n)+3>>0])|0}if(g){v=0;u=0;break f}}g=qm(E)|0}else{v=0;u=0}}else{g=0;v=0;u=0}while(0);C=L;c[(C&p)>>2]=v;c[(C&p)+4>>2]=u;C=L;T=t;u=g;break}case 2:{O=c[(s+(t*20|0)&p)+4>>2]|0;v=c[(s+(t*20|0)&p)+16>>2]|0;if(!O){g=m;m=r;r=t;ie=446;break d}g=c[(Pb&p)>>2]|0;if(!g){s=v;g=m;m=r;u=x;ie=460;break c}else u=0;while(1){if(!(dd(c[(g&p)>>2]|0,v)|0)){M=g;break}g=c[(g&p)+24>>2]|0;if(!g){s=v;g=m;m=r;u=x;ie=460;break c}else u=u+1|0}H=(O|0)==1;if((c[(ae&p)>>2]|0)>0&H){g=m;m=r;u=x;ie=462;break c}F=M+24|0;if(!(c[(F&p)>>2]|0)){A=(a[(Sb&n)>>0]|0)!=0;if(A&H){g=tm(f,1)|0;if(g)break a;a[(ee&n)>>0]=1;if((Rl(f)|0)==5){g=t;ie=467;break c}a[(Sb&n)>>0]=0;A=1;K=u;u=c[(me&p)>>2]|0}else ie=469}else{A=0;ie=469}if((ie|0)==469){ie=0;K=(c[(Ob&p)>>2]|0)-u+-1|0;if((O|0)==2){C=(c[(Tb&p)>>2]|0)>>>1&1;if((c[(Ub&p)>>2]|0)>0){J=C^1;I=0;while(1){u=Il(c[((c[(Xd&p)>>2]|0)+(I<<4)&p)+4>>2]|0,516,J)|0;I=I+1|0;if(u){g=m;m=r;ie=1318;break c}g=c[(Ub&p)>>2]|0;if((I|0)>=(g|0)){ie=475;break}}}}else{g=c[(Ub&p)>>2]|0;C=0;ie=475}if((ie|0)==475){ie=0;if((g|0)>0){E=0;do{u=um(c[((c[(Xd&p)>>2]|0)+(E<<4)&p)+4>>2]|0,O,K)|0;E=E+1|0;if(u){g=m;m=r;ie=1318;break c}}while((E|0)<(c[(Ub&p)>>2]|0))}}if(!C)u=0;else{C=c[(Vb&p)>>2]|0;if(C)do{V=C+88|0;b[(V&o)>>1]=b[(V&o)>>1]|8;C=c[(C&p)+52>>2]|0}while((C|0)!=0);Eg(le);c[(Tb&p)>>2]=c[(Tb&p)>>2]|2;u=0}}C=c[(Pb&p)>>2]|0;if((C|0)!=(M|0))do{c[(Pb&p)>>2]=c[(C&p)+24>>2];mg(le,C);c[(Ob&p)>>2]=(c[(Ob&p)>>2]|0)+-1;C=c[(Pb&p)>>2]|0}while((C|0)!=(M|0));if(H){c[(Pb&p)>>2]=c[(F&p)>>2];mg(le,M);if(A){C=L;T=t;break e}else{g=m;C=O;m=r;A=K;E=L;r=t;ie=486;break d}}else{V=M+8|0;U=c[(V&p)+4>>2]|0;T=Qb;c[(T&p)>>2]=c[(V&p)>>2];c[(T&p)+4>>2]=U;T=M+16|0;U=c[(T&p)+4>>2]|0;V=Rb;c[(V&p)>>2]=c[(T&p)>>2];c[(V&p)+4>>2]=U;if(A){C=L;T=t;break e}else{C=O;g=m;m=r;A=K;E=L;r=t;ie=488;break d}}}case 3:{u=x;ie=489;break c}case 4:{v=s+(t*20|0)+8|0;g=c[(v&p)>>2]|0;if((g|0)!=0?(c[(Tb&p)>>2]&33554432|0)!=0:0){g=m;m=r;u=8;ie=1318;break c}I=s+(t*20|0)+4|0;J=c[((c[(Xd&p)>>2]|0)+(c[(I&p)>>2]<<4)&p)+4>>2]|0;if(!J){v=0;u=0;g=0}else{u=yg(J,g)|0;if((u|0)==5){g=t;ie=508;break c}else if(u){g=m;m=r;ie=1318;break c}do if((c[(v&p)>>2]|0)!=0?(b[(Yd&o)>>1]&32)!=0:0){if((a[(ee&n)>>0]|0)!=0?(c[(Zb&p)>>2]|0)<=1:0){g=0;break}g=c[(Wb&p)>>2]|0;if(!g){g=(c[(Nb&p)>>2]|0)+1|0;c[(Nb&p)>>2]=g;g=(c[(Ob&p)>>2]|0)+g|0;c[(Wb&p)>>2]=g}g=sm(le,0,g+-1|0)|0;if(!g){g=c[(Wb&p)>>2]|0;V=c[(J&p)+4>>2]|0;c[(V&p)+4>>2]=c[(J&p)>>2];g=hl(c[(V&p)>>2]|0,g)|0}V=Qb;U=c[(V&p)+4>>2]|0;T=Xb;c[(T&p)>>2]=c[(V&p)>>2];c[(T&p)+4>>2]=U;T=Rb;U=c[(T&p)+4>>2]|0;V=Yb;c[(V&p)>>2]=c[(T&p)>>2];c[(V&p)+4>>2]=U}else g=0;while(0);v=c[(J&p)+4>>2]|0;c[(v&p)+4>>2]=c[(J&p)>>2];v=c[((c[(v&p)+12>>2]|0)&p)+56>>2]|0;v=d[(v&n)+41>>0]<<16|d[(v&n)+40>>0]<<24|d[(v&n)+42>>0]<<8|d[(v&n)+43>>0];u=c[((c[((c[(Xd&p)>>2]|0)+(c[(I&p)>>2]<<4)&p)+12>>2]|0)&p)+4>>2]|0}if(a[(s+(t*20|0)&n)+3>>0]|0){if((v|0)!=(c[(s+(t*20|0)&p)+12>>2]|0)){g=m;s=I;m=r;u=x;ie=522;break c}if((u|0)!=(c[(s+(t*20|0)&p)+16>>2]|0)){g=m;s=I;m=r;u=x;ie=522;break c}else{C=L;T=t;u=g}}else{C=L;T=t;u=g}break}case 53:{g=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;if((g|0)!=0?(c[(g&p)+28>>2]|0)==(c[(s+(t*20|0)&p)+8>>2]|0):0){v=s+(t*20|0)+3|0;u=0;ie=548}else ie=536;break}case 51:{g=m;m=r;u=L;r=t;ie=525;break d}case 52:{A=s+(t*20|0)+4|0;g=c[(A&p)>>2]|0;v=c[(Xd&p)>>2]|0;C=c[(s+(t*20|0)&p)+12>>2]|0;w=z+(C*40|0)|0;u=Vg(w)|0;V=w;c[(V&p)>>2]=u;c[(V&p)+4>>2]=G;C=z+(C*40|0)+8|0;b[(C&o)>>1]=e[(C&o)>>1]&48640|4;C=s+(t*20|0)+8|0;u=Dg(c[(v+(g<<4)&p)+4>>2]|0,c[(C&p)>>2]|0,u)|0;C=c[(C&p)>>2]|0;if((C|0)==1){c[(c[(v+(g<<4)&p)+12>>2]&p)>>2]=c[(w&p)>>2];c[(Tb&p)>>2]=c[(Tb&p)>>2]|2}else if((C|0)==2)a[((c[(v+(g<<4)&p)+12>>2]|0)&n)+76>>0]=c[(w&p)>>2];if((c[(A&p)>>2]|0)==1){g=c[(Vb&p)>>2]|0;if(g)do{V=g+88|0;b[(V&o)>>1]=b[(V&o)>>1]|8;g=c[(g&p)+52>>2]|0}while((g|0)!=0);b[(Yd&o)>>1]=b[(Yd&o)>>1]&-9;C=L;T=t}else{C=L;T=t}break}case 55:case 54:{ie=536;break}case 57:case 56:{g=xm(f,c[(s+(t*20|0)&p)+4>>2]|0,c[(s+(t*20|0)&p)+8>>2]|0,-1,1)|0;if(!g){y=ge;z=je;g=m;m=x;ie=1317;break a}a[(g&n)+25>>0]=1;J=g+27|0;a[(J&n)>>0]=a[(J&n)>>0]|1;v=g+4|0;I=s+(t*20|0)+3|0;u=zm(c[(le&p)>>2]|0,0,le,v,d[(I&n)>>0]|5,1054)|0;do if(!u){u=yg(c[(v&p)>>2]|0,1)|0;if(!u){A=c[(s+(t*20|0)&p)+16>>2]|0;C=c[(v&p)>>2]|0;if(!A){u=ym(C,1,1,0,c[(g&p)>>2]|0)|0;a[(J&n)>>0]=a[(J&n)>>0]|4;break}u=Am(C,ud,d[(I&n)>>0]|2)|0;if(!u){c[(g&p)+8>>2]=A;u=ym(c[(v&p)>>2]|0,c[(ud&p)>>2]|0,1,A,c[(g&p)>>2]|0)|0}a[(J&n)>>0]=a[(J&n)>>0]&-5}}while(0);a[(J&n)>>0]=((a[(I&n)>>0]|0)!=8&1)<<3&255|a[(J&n)>>0]&-9;C=L;T=t;break}case 58:{g=m;m=r;ie=558;break d}case 60:{g=m;m=r;u=L;ie=568;break d}case 61:{g=m;m=r;u=L;r=t;ie=570;break d}case 59:{g=m;m=r;u=L;r=t;ie=566;break d}case 65:case 64:case 63:case 62:{g=m;K=u;m=r;r=t;ie=571;break d}case 66:{g=m;m=r;u=L;r=t;ie=596;break d}case 69:case 68:case 67:{g=m;H=C;m=r;u=L;ie=597;break d}case 73:{g=m;m=r;u=L;r=t;ie=624;break d}case 70:{V=c[(s+(t*20|0)&p)+12>>2]|0;g=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;u=c[(g&p)>>2]|0;c[(Cd&p)>>2]=0;V=z+(V*40|0)|0;U=c[(V&p)>>2]|0;V=c[(V&p)+4>>2]|0;u=Cm(u,0,U,V,0,Cd)|0;v=g+48|0;c[(v&p)>>2]=U;c[(v&p)+4>>2]=V;a[(g&n)+25>>0]=0;c[(g&p)+60>>2]=0;a[(g&n)+26>>0]=0;v=c[(Cd&p)>>2]|0;if(v)t=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;c[(g&p)+12>>2]=v;C=L;T=t;break}case 74:{H=Pd;c[(H&p)>>2]=0;c[(H&p)+4>>2]=0;c[(Dd&p)>>2]=0;H=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;g=c[(H&p)>>2]|0;if(!g){u=0;v=0;g=0}else{K=H+27|0;do if(!(a[(K&n)>>0]&2)){u=Hm(g,Dd)|0;if(u){g=m;m=r;ie=1318;break c}if(c[(Dd&p)>>2]|0){V=Pd;c[(V&p)>>2]=1;c[(V&p)+4>>2]=0;break}km(c[(H&p)>>2]|0,Pd);u=Pd;g=c[(u&p)>>2]|0;u=c[(u&p)+4>>2]|0;if((g|0)==-1&(u|0)==2147483647){a[(K&n)>>0]=a[(K&n)>>0]|2;break}else{U=jw(g|0,u|0,1,0)|0;V=Pd;c[(V&p)>>2]=U;c[(V&p)+4>>2]=G;break}}while(0);J=c[(s+(t*20|0)&p)+12>>2]|0;if(J){g=c[(sb&p)>>2]|0;if(!g)C=z;else{while(1){u=c[(g&p)+4>>2]|0;if(!u)break;else g=u}C=c[(g&p)+16>>2]|0}I=C+(J*40|0)|0;A=Vg(I)|0;g=G;V=I;c[(V&p)>>2]=A;c[(V&p)+4>>2]=g;V=C+(J*40|0)+8|0;b[(V&o)>>1]=e[(V&o)>>1]&48640|4;if((A|0)==-1&(g|0)==2147483647){g=m;m=r;u=13;ie=1318;break c}if(a[(K&n)>>0]&2){g=m;m=r;u=13;ie=1318;break c}J=Pd;u=c[(J&p)>>2]|0;J=c[(J&p)+4>>2]|0;C=jw(A|0,g|0,1,0)|0;g=G;if((J|0)<(g|0)|(J|0)==(g|0)&u>>>0>>0){V=Pd;c[(V&p)>>2]=C;c[(V&p)+4>>2]=g}else{C=u;g=J}V=I;c[(V&p)>>2]=C;c[(V&p)+4>>2]=g}h:do if(!(a[(K&n)>>0]&2))g=0;else{u=0;while(1){cd(8,Pd);V=Pd;V=jw(c[(V&p)>>2]|0,c[(V&p)+4>>2]&1073741823|0,1,0)|0;g=G;U=Pd;c[(U&p)>>2]=V;c[(U&p)+4>>2]=g;g=Cm(c[(H&p)>>2]|0,0,V,g,0,Dd)|0;if(c[(Dd&p)>>2]|g)break h;u=u+1|0;if((u|0)>=100){g=m;m=r;u=13;ie=1318;break c}}}while(0);a[(H&n)+26>>0]=0;c[(H&p)+60>>2]=0;v=Pd;u=c[(v&p)>>2]|0;v=c[(v&p)+4>>2]|0}C=L;c[(C&p)>>2]=u;c[(C&p)+4>>2]=v;C=L;T=t;u=g;break}case 84:case 75:{g=m;C=J;m=r;u=L;r=t;ie=647;break d}case 95:{g=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;u=Jm(c[(g&p)>>2]|0)|0;c[(g&p)+60>>2]=0;if((((u|0)==0?(Gc=c[(gc&p)>>2]|0,(Gc|0)!=0):0)?(Hc=c[(s+(t*20|0)&p)+16>>2]|0,(Hc|0)!=0):0)?(a[(g&n)+27>>0]&4)!=0:0){V=g+48|0;bc[Gc&1](c[(hc&p)>>2]|0,9,c[((c[(Xd&p)>>2]|0)+(a[(g&n)+24>>0]<<4)&p)>>2]|0,Hc,c[(V&p)>>2]|0,c[(V&p)+4>>2]|0)}if(!(c[(s+(t*20|0)&p)+8>>2]&1)){C=L;T=t}else{c[(ub&p)>>2]=(c[(ub&p)>>2]|0)+1;C=L;T=t}break}case 98:{g=m;m=r;u=L;r=t;ie=671;break d}case 99:{g=m;m=r;u=L;r=t;ie=672;break d}case 100:{v=c[(s+(t*20|0)&p)+8>>2]|0;C=z+(v*40|0)|0;g=c[((c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0)&p)+56>>2]|0;if(!(a[(g&n)+56>>0]|0)){u=c[(g&p)+36>>2]|0;g=u;u=u+8|0}else{V=c[(g&p)+20>>2]|0;u=c[((c[(V&p)+8>>2]|0)&p)+4>>2]|0;V=c[(V&p)+12>>2]|0;g=V+(u*56|0)+20|0;u=c[(V+(u*56|0)&p)+32>>2]|0}g=c[(g&p)>>2]|0;if(!(fh(C,g)|0)){c[(z+(v*40|0)&p)+12>>2]=g;V=z+(v*40|0)+8|0;b[(V&o)>>1]=e[(V&o)>>1]&48640|16;kw(c[(z+(v*40|0)&p)+16>>2]|0,u|0,g|0)|0;u=0}else u=7;c[((c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+12>>2]<<2)&p)>>2]|0)&p)+60>>2]=0;T=t;break}case 102:case 101:{v=c[(s+(t*20|0)&p)+8>>2]|0;J=z+(v*40|0)|0;A=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;C=c[(A&p)>>2]|0;A=A+27|0;if(a[(A&n)>>0]&4){lm(C,ed);g=c[(ed&p)>>2]|0;if(g>>>0>(c[(zb&p)>>2]|0)>>>0){g=m;m=r;u=x;ie=1316;break c}}else{km(C,fd);T=fd;g=c[(T&p)>>2]|0;T=c[(T&p)+4>>2]|0;V=c[(zb&p)>>2]|0;U=((V|0)<0)<<31>>31;if((T|0)>(U|0)|(T|0)==(U|0)&g>>>0>V>>>0){g=m;m=r;u=x;ie=1316;break c}c[(ed&p)>>2]=g}if(fh(J,g>>>0>32?g:32)|0){y=ge;z=je;g=m;m=x;ie=1317;break a}c[(z+(v*40|0)&p)+12>>2]=g;g=z+(v*40|0)+8|0;b[(g&o)>>1]=e[(g&o)>>1]&48640|16;g=c[(ed&p)>>2]|0;u=c[(z+(v*40|0)&p)+16>>2]|0;if(!(a[(A&n)>>0]&4))u=Lm(C,0,g,u,0)|0;else u=Dh(C,0,g,u)|0;a[(z+(v*40|0)&n)+10>>0]=1;C=J;T=t;break}case 103:{v=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;w=v+25|0;if(a[(w&n)>>0]|0){g=m;m=r;u=L;r=t;ie=700;break d}do if(!(a[(v&n)+26>>0]|0)){g=c[(v&p)+32>>2]|0;if(g){V=c[(g&p)>>2]|0;u=rc[c[((c[(V&p)>>2]|0)&p)+48>>2]&127](g,Rd)|0;Mm(f,V);break}if((a[((c[(v&p)>>2]|0)&n)+73>>0]|0)!=1){u=jm(v)|0;if(u){g=m;m=r;ie=1318;break c}if(a[(w&n)>>0]|0){g=m;m=r;u=L;r=t;ie=708;break d}}km(c[(v&p)>>2]|0,Rd);u=0}else{U=v+48|0;V=c[(U&p)+4>>2]|0;u=Rd;c[(u&p)>>2]=c[(U&p)>>2];c[(u&p)+4>>2]=V;u=0}while(0);V=Rd;T=c[(V&p)+4>>2]|0;C=L;c[(C&p)>>2]=c[(V&p)>>2];c[(C&p)+4>>2]=T;C=L;T=t;break}case 108:{ie=715;break}case 104:{g=m;m=r;u=L;r=t;ie=711;break d}case 107:case 106:{c[(ic&p)>>2]=(c[(ic&p)>>2]|0)+1;ie=715;break}case 105:{T=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;u=c[(T&p)>>2]|0;c[(Ed&p)>>2]=0;u=Hm(u,Ed)|0;V=c[(Ed&p)>>2]|0;a[(T&n)+25>>0]=V;a[(T&n)+26>>0]=0;c[(T&p)+60>>2]=0;T=c[(s+(t*20|0)&p)+8>>2]|0;C=L;T=(T|0)>0&(V|0)!=0?T+-1|0:t;break}case 7:case 6:{if(!(c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0)){g=m;m=r;S=z;T=s;U=W;V=X;u=L;r=t;break d}else ie=765;break}case 5:{g=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;c[(Fd&p)>>2]=0;w=c[(g&p)+56>>2]|0;if(a[(w&n)+56>>0]|0){u=Wm(c[(w&p)+20>>2]|0,Fd)|0;ie=766;break e}u=w+36|0;v=c[(u&p)>>2]|0;V=v+4|0;c[(u&p)>>2]=c[(V&p)>>2];c[(V&p)>>2]=0;if(!((c[(w&p)+40>>2]|0)!=0|(v|0)==0))mg(le,v);c[(Fd&p)>>2]=(c[(u&p)>>2]|0)==0&1;u=0;ie=766;break}case 9:case 8:{ie=765;break}case 110:case 109:{A=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;S=c[(s+(t*20|0)&p)+8>>2]|0;u=c[(A&p)>>2]|0;C=s+(t*20|0)+3|0;if(a[(C&n)>>0]&1)c[(ub&p)>>2]=(c[(ub&p)>>2]|0)+1;if((b[(z+(S*40|0)&o)+8>>1]&16384)!=0?(Ud=Rg(z+(S*40|0)|0)|0,(Ud|0)!=0):0){g=m;m=r;s=Ud;u=x;ie=1309;break c}H=c[(A&p)+56>>2]|0;T=z+(S*40|0)+12|0;P=c[(T&p)>>2]|0;if(!H){if(!(a[(C&n)>>0]&16))g=0;else g=c[(A&p)+12>>2]|0;u=Im(u,c[(z+(S*40|0)&p)+16>>2]|0,P,((P|0)<0)<<31>>31,10360,0,0,c[(s+(t*20|0)&p)+12>>2]|0,g)|0;c[(A&p)+60>>2]=0;C=L;T=t;break e}C=P;g=((P|0)<0)<<31>>31;A=0;do{A=A+1|0;C=mw(C|0,g|0,7)|0;g=G}while(((C|0)!=0|(g|0)!=0)&(A|0)<9);K=P+8|0;I=A+P|0;M=H+4|0;A=c[(M&p)>>2]|0;do if(!A)u=0;else{if(!(c[(H&p)+40>>2]|0)){C=H+44|0;V=c[(C&p)>>2]|0;if((V|0)<=(A|0)?!((c[2265]|0)!=0?(V|0)>(c[(H&p)>>2]|0):0):0){u=0;break}}else{V=c[(H&p)+48>>2]|0;if(!((V|0)!=0&(V+K|0)>(A|0))){u=0;break}C=H+44|0}u=Om(H)|0;c[(C&p)>>2]=0;c[(H&p)+48>>2]=0}while(0);C=H+36|0;J=H+44|0;c[(J&p)>>2]=(c[(J&p)>>2]|0)+I;J=H+8|0;if((I|0)>(c[(J&p)>>2]|0))c[(J&p)>>2]=I;E=H+40|0;J=c[(E&p)>>2]|0;if(!J){g=qg(K,((K|0)<0)<<31>>31)|0;if(!g){g=m;m=r;s=7;u=x;ie=1309;break c}c[(g&p)+4>>2]=c[(C&p)>>2]}else{g=H+48|0;I=c[(g&p)>>2]|0;K=I+K|0;F=H+52|0;H=c[(F&p)>>2]|0;if((K|0)>(H|0)){I=H;do I=I<<1;while((I|0)<(K|0));V=c[(M&p)>>2]|0;I=(I|0)>(V|0)?V:I;I=(I|0)<(K|0)?K:I;J=rg(J,I,((I|0)<0)<<31>>31)|0;if(!J){g=m;m=r;s=7;u=x;ie=1309;break c}A=J+((c[(C&p)>>2]|0)-(c[(E&p)>>2]|0))|0;c[(C&p)>>2]=A;c[(E&p)>>2]=J;c[(F&p)>>2]=I;I=c[(g&p)>>2]|0}else A=c[(C&p)>>2]|0;c[(g&p)>>2]=I+(P+15&-8);c[(J+I&p)+4>>2]=A-J;g=J+I|0}kw(g+8|0,c[(z+(S*40|0)&p)+16>>2]|0,c[(T&p)>>2]|0)|0;c[(g&p)>>2]=c[(T&p)>>2];c[(C&p)>>2]=g;C=L;T=t;break}case 112:{g=m;m=r;r=t;ie=801;break d}case 111:{v=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;g=c[(v&p)>>2]|0;c[(yd&p)>>2]=c[(v&p)+8>>2];b[(kc&o)>>1]=c[(s+(t*20|0)&p)+12>>2];a[(nc&n)>>0]=0;c[(oc&p)>>2]=z+((c[(s+(t*20|0)&p)+8>>2]|0)*40|0);u=Cm(g,yd,0,0,0,Gd)|0;if(!(c[(Gd&p)>>2]|u))u=Jm(g)|0;c[(v&p)+60>>2]=0;C=L;T=t;break}case 116:case 115:case 114:case 113:{u=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;c[(zd&p)>>2]=c[(u&p)+8>>2];b[(xc&o)>>1]=c[(s+(t*20|0)&p)+16>>2];a[(Y&n)>>0]=((J&255)<115)<<31>>31;c[(Z&p)>>2]=z+((c[(s+(t*20|0)&p)+12>>2]|0)*40|0);V=Sd;c[(V&p)>>2]=0;c[(V&p)+4>>2]=0;km(c[(u&p)>>2]|0,Sd);V=Sd;g=c[(V&p)>>2]|0;V=jw(g|0,c[(V&p)+4>>2]|0,-1,-1)|0;U=G;if(!(U>>>0>0|(U|0)==0&V>>>0>2147483646)){b[(_&o)>>1]=0;c[($&p)>>2]=le;c[(aa&p)>>2]=0;g=nm(c[(u&p)>>2]|0,0,g,1,qd)|0;if(!g){u=Km(c[(ea&p)>>2]|0,c[(ga&p)>>2]|0,zd,0)|0;if((b[(_&o)>>1]&9312)==0&(c[(aa&p)>>2]|0)==0)g=0;else{Qg(qd);g=0}}else u=0}else{c[(ke&p)>>2]=68730;c[(ke&p)+4>>2]=10788;bd(11,13600,ke);g=11;u=0}if((((a[(C&n)>>0]&1)==0?u+1|0:0-u|0)|0)>0){C=L;T=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;u=g}else{C=L;T=t;u=g}break}case 117:{O=L+8|0;b[(O&o)>>1]=1;if((c[(Zb&p)>>2]|0)>((c[(ha&p)>>2]|0)+1|0)){g=m;m=r;u=x;ie=832;break c}N=c[(s+(t*20|0)&p)+12>>2]|0;M=c[((c[(Xd&p)>>2]|0)+(N<<4)&p)+4>>2]|0;P=s+(t*20|0)+4|0;I=c[(P&p)>>2]|0;C=M+4|0;K=c[(C&p)>>2]|0;c[(K&p)+4>>2]=c[(M&p)>>2];c[(ke&p)>>2]=0;do if(!(c[(K&p)+8>>2]|0)){u=dl(K,I,ke,0)|0;if(!u){u=Xm(M,I,0)|0;if(u){g=c[(ke&p)>>2]|0;if(!g){A=0;break}Bg(c[(g&p)+68>>2]|0);A=0;break}if(I>>>0<=1){g=c[(ke&p)>>2]|0;pl(g,9);if(!g){u=0;A=0;break}Bg(c[(g&p)+68>>2]|0);u=0;A=0;break}if(!(a[(K&n)+17>>0]|0)){g=c[(ke&p)>>2]|0;u=Ym(c[(g&p)+52>>2]|0,g,c[(g&p)+72>>2]|0)|0;if(!g){A=0;break}Bg(c[(g&p)+68>>2]|0);A=0;break}J=c[(C&p)>>2]|0;c[(J&p)+4>>2]=c[(M&p)>>2];J=c[((c[(J&p)+12>>2]|0)&p)+56>>2]|0;J=d[(J&n)+53>>0]<<16|d[(J&n)+52>>0]<<24|d[(J&n)+54>>0]<<8|d[(J&n)+55>>0];C=c[(ke&p)>>2]|0;if((J|0)==(I|0)){u=Ym(c[(C&p)+52>>2]|0,C,c[(C&p)+72>>2]|0)|0;if(C)Bg(c[(C&p)+68>>2]|0);if(!u)A=0;else{A=0;break}}else{if(C)Bg(c[(C&p)+68>>2]|0);u=dl(K,J,Sd,0)|0;if(u){A=0;break}C=c[(Sd&p)>>2]|0;u=Zm(K,C,1,0,I,0)|0;if(C)Bg(c[(C&p)+68>>2]|0);if(u){A=0;break}c[(Sd&p)>>2]=0;u=dl(K,J,Sd,0)|0;C=c[(Sd&p)>>2]|0;if(u){if(!C){A=0;break}}else u=Ym(c[(C&p)+52>>2]|0,C,c[(C&p)+72>>2]|0)|0;Bg(c[(C&p)+68>>2]|0);if(!u)A=J;else{A=0;break}}H=((c[2514]|0)>>>0)/((c[(K&p)+32>>2]|0)>>>0)|0;F=H+1|0;I=K+36|0;while(1){C=J+-1|0;if((C|0)==(F|0)){J=C;continue}if(C>>>0<2)E=0;else{E=J+-3|0;E=E-((E>>>0)%(((((c[(I&p)>>2]|0)>>>0)/5|0)+1|0)>>>0)|0)|0;E=((E+1|0)==(H|0)?3:2)+E|0}if((E|0)==(C|0))J=C;else break}u=Dg(M,4,C)|0}else A=0}else{u=262;A=0}while(0);b[(O&o)>>1]=4;V=L;c[(V&p)>>2]=A;c[(V&p)+4>>2]=((A|0)<0)<<31>>31;if((u|0)==0&(A|0)!=0){g=m;K=N;C=P;m=r;u=L;r=t;ie=865;break d}else{C=L;T=t}break}case 118:{c[(jd&p)>>2]=0;g=s+(t*20|0)+12|0;u=Xm(c[((c[(Xd&p)>>2]|0)+(c[(s+(t*20|0)&p)+8>>2]<<4)&p)+4>>2]|0,c[(s+(t*20|0)&p)+4>>2]|0,(c[(g&p)>>2]|0)!=0?jd:0)|0;g=c[(g&p)>>2]|0;if((g|0)!=0?(Ic=c[(jd&p)>>2]|0,c[(ub&p)>>2]=(c[(ub&p)>>2]|0)+Ic,(g|0)>0):0){C=z+(g*40|0)|0;T=C;T=jw(c[(T&p)>>2]|0,c[(T&p)+4>>2]|0,Ic|0,((Ic|0)<0)<<31>>31|0)|0;c[(C&p)>>2]=T;c[(C&p)+4>>2]=G;C=L;T=t}else{C=L;T=t}break}case 121:case 120:{c[(vd&p)>>2]=0;u=Am(c[((c[(Xd&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<4)&p)+4>>2]|0,vd,J<<24>>24==121?1:2)|0;T=c[(vd&p)>>2]|0;C=L;c[(C&p)>>2]=T;c[(C&p)+4>>2]=((T|0)<0)<<31>>31;C=L;T=t;break}case 119:{g=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;u=c[(g&p)+56>>2]|0;if(u){g=m;m=r;J=L;r=t;ie=878;break d}u=c[(g&p)>>2]|0;C=L;T=t;u=Xm(c[(u&p)>>2]|0,c[(u&p)+60>>2]|0,0)|0;break}case 123:{C=L;T=t;u=an(le,c[(s+(t*20|0)&p)+4>>2]|0)|0;break}case 124:{g=m;m=r;u=L;r=t;ie=886;break d}case 122:{g=m;m=r;J=L;r=t;ie=881;break d}case 126:{g=m;m=r;u=L;r=t;ie=895;break d}case 125:{g=m;m=r;J=L;r=t;ie=887;break d}case 127:{g=m;m=r;u=L;ie=903;break d}case 128:{g=m;m=r;J=L;ie=947;break d}case 129:{w=c[(s+(t*20|0)&p)+4>>2]|0;v=z+(w*40|0)|0;w=z+(w*40|0)+8|0;g=b[(w&o)>>1]|0;do if(g&32){E=c[(v&p)>>2]|0;u=E+26|0;g=b[(u&o)>>1]|0;if(!(g&2)){if(!(g&1)){g=E+8|0;c[(g&p)>>2]=kn(c[(g&p)>>2]|0)|0;g=b[(u&o)>>1]|0}b[(u&o)>>1]=g&65535|2}C=E+8|0;A=c[(C&p)>>2]|0;if(!A){g=b[(w&o)>>1]|0;break}w=A;v=c[(w&p)>>2]|0;w=c[(w&p)+4>>2]|0;V=c[(A&p)+8>>2]|0;c[(C&p)>>2]=V;if(!V)Zk(E);u=c[(s+(t*20|0)&p)+12>>2]|0;g=z+(u*40|0)|0;u=z+(u*40|0)+8|0;if(!(b[(u&o)>>1]&9312)){ie=g;c[(ie&p)>>2]=v;c[(ie&p)+4>>2]=w;b[(u&o)>>1]=4;u=0;ie=19;break e}else{Zg(g,v,w);u=0;ie=19;break e}}while(0);if(!(g&9312))b[(w&o)>>1]=1;else vg(v);t=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;u=0;ie=19;break}case 130:{g=m;m=r;u=L;ie=966;break d}case 131:{g=m;m=r;u=L;r=t;ie=993;break d}case 132:{g=m;m=r;u=L;r=t;ie=1009;break d}case 134:{g=m;m=r;J=L;r=t;ie=1010;break d}case 135:{g=m;m=r;u=L;r=t;ie=1015;break d}case 136:{g=m;m=r;r=t;ie=1022;break d}case 137:{g=m;m=r;u=L;r=t;ie=1028;break d}case 138:{g=m;m=r;u=L;r=t;ie=1030;break d}case 139:{g=m;m=r;J=L;r=t;ie=1032;break d}case 140:{g=m;m=r;u=L;r=t;ie=1034;break d}case 141:{g=m;m=r;u=L;r=t;ie=1036;break d}case 10:{V=a[(s+(t*20|0)&n)+3>>0]|0;g=V&255;u=c[(Bb&p)>>2]|0;if(V<<24>>24){v=0;w=z+((c[(s+(t*20|0)&p)+8>>2]|0)*40|0)|0;while(1){c[(u+(v<<2)&p)>>2]=w;v=v+1|0;if((v|0)>=(g|0))break;else w=w+40|0}}V=c[(s+(t*20|0)&p)+16>>2]|0;c[(Ga&p)>>2]=V;U=c[(s+(t*20|0)&p)+12>>2]|0;c[(Ha&p)>>2]=z+(U*40|0);U=z+(U*40|0)+12|0;c[(U&p)>>2]=(c[(U&p)>>2]|0)+1;b[(Ia&o)>>1]=1;c[(Ja&p)>>2]=le;c[(Ka&p)>>2]=0;c[(Vc&p)>>2]=Md;c[(La&p)>>2]=0;c[(Ma&p)>>2]=f;c[(Na&p)>>2]=t;a[(Oa&n)>>0]=0;mc[c[(V&p)+16>>2]&63](Vc,g,u);if(!(c[(La&p)>>2]|0))u=0;else{c[(ke&p)>>2]=Sg(Md,1)|0;dh(je,le,10344,ke);u=c[(La&p)>>2]|0}do if((a[(Oa&n)>>0]|0)!=0?(Mc=c[(s+((t+-1|0)*20|0)&p)+4>>2]|0,(Mc|0)!=0):0){g=z+(Mc*40|0)|0;v=z+(Mc*40|0)+8|0;if(!(b[(v&o)>>1]&9312)){V=g;c[(V&p)>>2]=1;c[(V&p)+4>>2]=0;b[(v&o)>>1]=4;break}else{Zg(g,1,0);break}}while(0);if((b[(Ia&o)>>1]&9312)==0&(c[(Ka&p)>>2]|0)==0){C=L;T=t}else{Qg(Md);C=L;T=t}break}case 11:{c[(Rc&p)>>2]=0;c[(Pa&p)>>2]=-1;c[(Qa&p)>>2]=-1;g=Wh(le,c[(s+(t*20|0)&p)+4>>2]|0,c[(s+(t*20|0)&p)+8>>2]|0,Qa,Pa)|0;if((g|0)==5){c[(Rc&p)>>2]=1;g=0}v=0;w=z+((c[(s+(t*20|0)&p)+12>>2]|0)*40|0)|0;while(1){C=c[(Rc+(v<<2)&p)>>2]|0;A=((C|0)<0)<<31>>31;u=w+8|0;if(!(b[(u&o)>>1]&9312)){V=w;c[(V&p)>>2]=C;c[(V&p)+4>>2]=A;b[(u&o)>>1]=4}else Zg(w,C,A);v=v+1|0;if((v|0)==3){C=L;T=t;u=g;break}else w=w+40|0}break}case 142:{C=c[(s+(t*20|0)&p)+4>>2]|0;v=z+(C*40|0)|0;u=Yk(v,c[(s+(t*20|0)&p)+16>>2]|0)|0;if(u){c[(ke&p)>>2]=Sg(v,1)|0;dh(je,le,10344,ke)}Yl(v,xb)|0;w=e[(z+(C*40|0)&o)+8>>1]|0;if(w&18){g=c[(z+(C*40|0)&p)+12>>2]|0;if(w&16384)g=(c[(v&p)>>2]|0)+g|0;if((g|0)>(c[((c[(z+(C*40|0)&p)+32>>2]|0)&p)+88>>2]|0)){g=m;m=r;u=x;ie=1316;break c}else{C=L;T=t}}else{C=L;T=t}break}case 12:{g=c[(s+(t*20|0)&p)+12>>2]|0;L=c[((c[(Xd&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<4)&p)+4>>2]|0;I=c[(c[(L&p)+4>>2]&p)>>2]|0;J=a[(I&n)+5>>0]|0;H=J&255;g=(g|0)==-1?H:g;do if((d[(I&n)+16>>0]|0)>2)g=H;else if((c[(c[(I&p)+64>>2]&p)>>2]|0)!=0?(V=I+72|0,U=c[(V&p)+4>>2]|0,(U|0)>0|(U|0)==0&(c[(V&p)>>2]|0)>>>0>0):0){g=H;break}while(0);if(!(a[(I&n)+15>>0]|0))A=c[(I&p)+168>>2]|0;else A=10360;K=(g|0)==5;if(K)if(A){C=A;while(1)if(!(a[(C&n)>>0]|0))break;else C=C+1|0;if(C-A&1073741823){C=c[(c[(I&p)+60>>2]&p)>>2]|0;if(!(a[(I&n)+4>>0]|0))if((c[(C&p)>>2]|0)>1?!((c[(C&p)+52>>2]|0)==0|(g|0)==(H|0)):0)ie=1077;else{g=H;u=0}else ie=1076}else{g=H;u=0}}else{g=H;u=0}else ie=1076;if((ie|0)==1076){ie=0;if((g|0)==(H|0)){g=H;u=0}else ie=1077}do if((ie|0)==1077){ie=0;C=J<<24>>24==5;if(C|K){if(!(a[(ee&n)>>0]|0)){g=m;s=K;m=r;u=x;ie=1080;break c}if((c[(Zb&p)>>2]|0)>1){g=m;s=K;m=r;u=x;ie=1080;break c}if(!C){if(J<<24>>24==4)sn(I,2)|0}else{J=I+208|0;if(!(c[(J&p)>>2]|0)){c[(_c&p)>>2]=0;u=fl(I,1)|0;if(u)break;u=c[(I&p)>>2]|0;u=pc[c[(u&p)+32>>2]&31](u,c[(I&p)+212>>2]|0,0,_c)|0;if((u|0)==0&(c[(_c&p)>>2]|0)!=0)u=pn(I)|0;if(u)break;if(c[(J&p)>>2]|0)ie=1088}else ie=1088;if((ie|0)==1088){ie=0;u=qn(I)|0;if(u)break;u=rn(c[(J&p)>>2]|0,d[(I&n)+9>>0]|0,c[(I&p)+152>>2]|0,c[(I&p)+200>>2]|0)|0;c[(J&p)>>2]=0;if(u)break}sn(I,g)|0}u=Fg(L,K?2:1)|0}else u=0}while(0);g=sn(I,(u|0)==0?g:H)|0;C=c[(s+(t*20|0)&p)+8>>2]|0;J=z+(C*40|0)|0;b[(z+(C*40|0)&o)+8>>1]=2562;if((g|0)==6){c[(z+(C*40|0)&p)+16>>2]=0;g=0}else{v=c[(g<<2&p)+32216>>2]|0;c[(z+(C*40|0)&p)+16>>2]=v;g=v;while(1)if(!(a[(g&n)>>0]|0))break;else g=g+1|0;g=g-v&1073741823}c[(z+(C*40|0)&p)+12>>2]=g;a[(z+(C*40|0)&n)+10>>0]=1;Yl(J,xb)|0;C=J;T=t;break}case 13:{if(!(a[(ee&n)>>0]|0)){g=m;m=r;u=x;ie=1101;break c}if((c[(Ra&p)>>2]|0)>1){g=m;m=r;u=x;ie=1103;break c}S=c[(Tb&p)>>2]|0;N=c[(vb&p)>>2]|0;w=c[(wb&p)>>2]|0;v=c[(Sa&p)>>2]|0;c[(Tb&p)>>2]=S&-2762753|2107392;c[(Sa&p)>>2]=0;g=c[((c[(Xd&p)>>2]|0)&p)+4>>2]|0;P=g+4|0;I=a[((c[(c[(P&p)>>2]&p)>>2]|0)&n)+15>>0]|0;V=c[(Ub&p)>>2]|0;u=tn(le,je,(a[(_b&n)>>0]|0)==2?42432:42464)|0;J=c[(Ub&p)>>2]|0;if((J|0)>(V|0))M=(c[(Xd&p)>>2]|0)+(J+-1<<4)|0;else M=0;i:do if(!u){O=c[((c[(Xd&p)>>2]|0)+(J+-1<<4)&p)+4>>2]|0;un(O)|0;T=c[(P&p)>>2]|0;c[(T&p)+4>>2]=c[(g&p)>>2];T=(c[(T&p)+32>>2]|0)-(c[(T&p)+36>>2]|0)|0;u=tn(le,je,42488)|0;if(!u){u=tn(le,je,42528)|0;if(!u){u=yg(g,2)|0;if(!u){J=c[(P&p)>>2]|0;if((a[((c[(J&p)>>2]|0)&n)+5>>0]|0)==5)c[(Ta&p)>>2]=0;if(!(xg(O,c[(J&p)+32>>2]|0,T,0)|0)){if(I<<24>>24==0?(xg(O,c[(Ta&p)>>2]|0,T,0)|0)!=0:0){u=7;break}if(a[(ge&n)>>0]|0){u=7;break}J=a[(Ua&n)>>0]|0;do if(J<<24>>24>-1)J=J<<24>>24;else{J=c[(P&p)>>2]|0;c[(J&p)+4>>2]=c[(g&p)>>2];if(!(a[(J&n)+17>>0]|0)){J=0;break}J=(a[(J&n)+18>>0]|0)==0?1:2}while(0);vn(O,J)|0;u=wn(le,je,42536)|0;if(u)break;u=wn(le,je,42688)|0;if(u)break;u=wn(le,je,42792)|0;if(u)break;u=wn(le,je,42912)|0;if(u)break;u=wn(le,je,43112)|0;if(u)break;u=wn(le,je,43232)|0;if(u)break;u=tn(le,je,43392)|0;if(!u)J=0;else break;do{u=d[(J&n)+43576>>0]|0;wm(g,u,ad);u=Dg(O,u,(d[((J|1)&n)+43576>>0]|0)+(c[(ad&p)>>2]|0)|0)|0;J=J+2|0;if(u)break i}while((J|0)<10);H=c[(P&p)>>2]|0;c[(H&p)+4>>2]=c[(g&p)>>2];J=c[(O&p)>>2]|0;K=O+4|0;I=c[(K&p)>>2]|0;c[(I&p)+4>>2]=J;H=c[((c[(H&p)>>2]|0)&p)+60>>2]|0;F=c[(H&p)>>2]|0;if(F){V=c[(I&p)+32>>2]|0;V=sw(c[(I&p)+44>>2]|0,0,V|0,((V|0)<0)<<31>>31|0)|0;u=id;c[(u&p)>>2]=V;c[(u&p)+4>>2]=G;u=ac[c[(F&p)+40>>2]&63](H,11,id)|0;u=(u|0)==12?0:u;if(u)break;J=c[(O&p)>>2]|0}U=Tc+0|0;V=U+48|0;do{c[(U&p)>>2]=0;U=U+4|0}while((U|0)<(V|0));c[(Va&p)>>2]=J;c[(Wa&p)>>2]=O;c[(Xa&p)>>2]=g;c[(Ya&p)>>2]=1;gd(Tc,2147483647)|0;u=hd(Tc)|0;if(u){C=c[(c[((c[(Xa&p)>>2]|0)&p)+4>>2]&p)>>2]|0;if(a[(C&n)+15>>0]|0)break;if(a[(C&n)+12>>0]|0)break;xn(C);break}u=(c[(P&p)>>2]|0)+22|0;b[(u&o)>>1]=e[(u&o)>>1]&65533;u=un(O)|0;if(u)break;J=c[(K&p)>>2]|0;c[(J&p)+4>>2]=c[(O&p)>>2];if(!(a[(J&n)+17>>0]|0))E=0;else E=(a[(J&n)+18>>0]|0)==0?1:2;vn(g,E)|0;u=xg(g,c[((c[(K&p)>>2]|0)&p)+32>>2]|0,T,1)|0}else u=7}}}}while(0);c[(Tb&p)>>2]=S;c[(vb&p)>>2]=N;c[(wb&p)>>2]=w;c[(Sa&p)>>2]=v;xg(g,-1,-1,1)|0;a[(ee&n)>>0]=1;if(M){V=M+4|0;Ml(c[(V&p)>>2]|0);c[(V&p)>>2]=0;c[(M&p)+12>>2]=0}Eg(le);C=L;T=t;break}case 143:{V=c[((c[(Xd&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<4)&p)+4>>2]|0;I=c[(V&p)+4>>2]|0;c[(I&p)+4>>2]=c[(V&p)>>2];if(!(a[(I&n)+17>>0]|0)){g=m;m=r;u=L;ie=1157;break d}E=I+44|0;H=c[(E&p)>>2]|0;A=I+12|0;C=c[((c[(A&p)>>2]|0)&p)+56>>2]|0;C=d[(C&n)+37>>0]<<16|d[(C&n)+36>>0]<<24|d[(C&n)+38>>0]<<8|d[(C&n)+39>>0];F=El(I,H,C)|0;if(H>>>0>>0){g=m;m=r;u=x;ie=1145;break c}if(!C){g=m;m=r;u=L;ie=1157;break d}J=I+8|0;g=c[(J&p)>>2]|0;do if(g){C=g;do{if(C){ie=1150;break}C=c[2]|0}while((C|0)!=0);if((ie|0)==1150){ie=0;u=Fl(C,0,0)|0;if(u)break;g=c[(J&p)>>2]|0}if(g){do{V=g+72|0;a[(V&n)>>0]=d[(V&n)>>0]&251;g=c[(g&p)+8>>2]|0}while((g|0)!=0);ie=1154}else ie=1154}else ie=1154;while(0);if((ie|0)==1154){ie=0;u=Gl(I,F,H,0)|0;if(!u){u=Gg(c[((c[(A&p)>>2]|0)&p)+68>>2]|0)|0;V=c[((c[(A&p)>>2]|0)&p)+56>>2]|0;U=c[(E&p)>>2]|0;a[(V&n)+28>>0]=U>>>24;a[(V&n)+29>>0]=U>>>16;a[(V&n)+30>>0]=U>>>8;a[(V&n)+31>>0]=U}}if((u|0)==101){g=m;m=r;u=L;ie=1157;break d}else{C=L;T=t}break}case 145:{g=c[(s+(t*20|0)&p)+12>>2]|0;if((g&255|0)==0?(c[(Tb&p)>>2]&16384|0)!=0:0){g=m;m=r;S=z;T=s;U=W;V=X;u=L;r=t;break d}C=c[((c[(Xd&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<4)&p)+4>>2]|0;A=c[(s+(t*20|0)&p)+8>>2]|0;if(!(a[(C&n)+9>>0]|0)){g=m;m=r;S=z;T=s;U=W;V=X;u=L;r=t;break d}v=g+1&255;w=C+4|0;c[((c[(w&p)>>2]|0)&p)+4>>2]=c[(C&p)>>2];u=bl(C,A,v)|0;if(!u){g=m;m=r;u=L;r=t;ie=1166;break d}if((u&255|0)!=6){g=m;m=r;s=u;u=x;ie=1309;break c}c[(ke&p)>>2]=c[(s+(t*20|0)&p)+16>>2];dh(je,le,42224,ke);C=L;T=t;break}case 144:{g=m;m=r;u=L;r=t;ie=1158;break d}case 146:{J=c[(s+(t*20|0)&p)+16>>2]|0;v=c[(Za&p)>>2]|0;u=(v|0)>0;if(u?(c[(_a&p)>>2]|0)==0:0){u=6;ie=1188}else ie=1179;j:do if((ie|0)==1179){ie=0;if(!J){g=m;m=r;S=z;T=s;U=W;V=X;u=L;r=t;break d}g=J+8|0;w=(c[(c[(g&p)>>2]&p)>>2]|0)+56|0;if(c[(w&p)>>2]|0){if(u){C=c[(_a&p)>>2]|0;A=0;do{if((c[(C+(A<<2)&p)>>2]|0)==(J|0)){u=0;ie=1188;break j}A=A+1|0}while((A|0)<(v|0))}u=yn(le)|0;if(!u){u=lc[c[(w&p)>>2]&127](c[(g&p)>>2]|0)|0;if(!u){u=c[(Za&p)>>2]|0;c[(Za&p)>>2]=u+1;c[((c[(_a&p)>>2]|0)+(u<<2)&p)>>2]=J;u=J+12|0;c[(u&p)>>2]=(c[(u&p)>>2]|0)+1;u=0}}else ie=1188}else u=0}while(0);if((ie|0)==1188){ie=0;if(!J){C=L;T=t;break e}g=J+8|0}Mm(f,c[(g&p)>>2]|0);C=L;T=t;break}case 147:{U=Kd+0|0;V=U+40|0;do{c[(U&p)>>2]=0;U=U+4|0}while((U|0)<(V|0));c[($a&p)>>2]=le;g=_g(Kd,z+((c[(s+(t*20|0)&p)+8>>2]|0)*40|0)|0)|0;u=Sg(Kd,1)|0;k:do if(u){v=_h(le,u,c[((c[(Xd&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<4)&p)>>2]|0)|0;g=c[(c[(v&p)+56>>2]&p)>>2]|0;u=bn(cb,g,Xc)|0;if((u|0)!=0?(Oc=c[(u&p)+8>>2]|0,(Oc|0)!=0):0){g=zn(le,v,Oc,c[((c[(Oc&p)>>2]|0)&p)+4>>2]|0,je)|0;if(g)break;u=v+60|0;g=c[(u&p)>>2]|0;if(!g){g=0;break}while(1){if((c[(g&p)>>2]|0)==(le|0))break;g=c[(g&p)+24>>2]|0;if(!g){g=0;break k}}g=yn(le)|0;if(g)break;g=c[(u&p)>>2]|0;l:do if(!g)g=0;else while(1){if((c[(g&p)>>2]|0)==(le|0))break l;g=c[(g&p)+24>>2]|0;if(!g){g=0;break}}while(0);V=c[(Za&p)>>2]|0;c[(Za&p)>>2]=V+1;c[((c[(_a&p)>>2]|0)+(V<<2)&p)>>2]=g;g=g+12|0;c[(g&p)>>2]=(c[(g&p)>>2]|0)+1;g=0;break}c[(ke&p)>>2]=g;c[(je&p)>>2]=uh(le,28320,ke)|0;g=1}while(0);if((b[(ab&o)>>1]&9312)==0&(c[(bb&p)>>2]|0)==0){C=L;T=t;u=g}else{Qg(Kd);C=L;T=t;u=g}break}case 148:{c[(ha&p)>>2]=(c[(ha&p)>>2]|0)+1;g=_h(le,c[(s+(t*20|0)&p)+16>>2]|0,c[((c[(Xd&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<4)&p)>>2]|0)|0;m:do if((g|0)!=0?(Pc=g+60|0,Qc=c[(Pc&p)>>2]|0,(Qc|0)!=0):0){u=Qc;do{if((c[((c[(u&p)+8>>2]|0)&p)+4>>2]|0)>0){u=6;break m}u=c[(u&p)+24>>2]|0}while((u|0)!=0);g=Ok(le,g)|0;v=g+8|0;u=lc[c[((c[(c[(g&p)+4>>2]&p)>>2]|0)&p)+20>>2]&127](c[(v&p)>>2]|0)|0;if(!u){c[(v&p)>>2]=0;c[(Pc&p)>>2]=0;An(g);u=0}}else u=0;while(0);c[(ha&p)>>2]=(c[(ha&p)>>2]|0)+-1;C=L;T=t;break}case 149:{g=m;m=r;u=L;r=t;ie=1213;break d}case 150:{g=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;C=c[(s+(t*20|0)&p)+12>>2]|0;A=z+(C*40|0)|0;if(a[(g&n)+25>>0]|0){g=m;m=r;u=L;r=t;ie=1226;break d}V=g+32|0;u=c[(c[(V&p)>>2]&p)>>2]|0;U=c[(u&p)>>2]|0;c[(Id&p)>>2]=0;c[(Id&p)+4>>2]=0;c[(Id&p)+8>>2]=0;c[(Id&p)+12>>2]=0;c[(Id&p)+16>>2]=0;c[(Id&p)+20>>2]=0;c[(Id&p)+24>>2]=0;c[(Id&p)>>2]=A;v=z+(C*40|0)+8|0;b[(v&o)>>1]=e[(v&o)>>1]&48640|1;V=ac[c[(U&p)+44>>2]&63](c[(V&p)>>2]|0,Id,c[(s+(t*20|0)&p)+8>>2]|0)|0;Mm(f,u);u=c[(db&p)>>2]|0;u=(u|0)==0?V:u;Yl(A,xb)|0;v=e[(v&o)>>1]|0;if(v&18){g=c[(z+(C*40|0)&p)+12>>2]|0;if(v&16384)g=(c[(A&p)>>2]|0)+g|0;if((g|0)>(c[((c[(z+(C*40|0)&p)+32>>2]|0)&p)+88>>2]|0)){g=m;m=r;u=x;ie=1316;break c}else{C=L;T=t}}else{C=L;T=t}break}case 14:{A=c[(s+(t*20|0)&p)+12>>2]|0;C=A+1|0;F=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;J=c[(F&p)+32>>2]|0;I=c[(J&p)>>2]|0;H=c[(I&p)>>2]|0;E=c[(z+(C*40|0)&p)>>2]|0;A=c[(z+(A*40|0)&p)>>2]|0;g=c[(Bb&p)>>2]|0;if((E|0)>0){u=0;do{V=u;u=u+1|0;c[(g+(V<<2)&p)>>2]=z+((u+C|0)*40|0)}while((u|0)!=(E|0))}u=tc[c[(H&p)+32>>2]&31](J,A,c[(s+(t*20|0)&p)+16>>2]|0,E,g)|0;Mm(f,I);if((u|0)==0?(lc[c[(H&p)+40>>2]&127](J)|0)!=0:0)t=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;a[(F&n)+25>>0]=0;C=L;T=t;break}case 151:{g=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;if(a[(g&n)+25>>0]|0){g=m;m=r;S=z;T=s;U=W;V=X;u=L;r=t;break d}g=g+32|0;v=c[(g&p)>>2]|0;V=c[(v&p)>>2]|0;u=c[(V&p)>>2]|0;v=lc[c[(u&p)+36>>2]&127](v)|0;Mm(f,V);if((v|0)==0?(lc[c[(u&p)+40>>2]&127](c[(g&p)>>2]|0)|0)!=0:0){u=0;ie=19;break e}t=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;u=v;ie=19;break}case 15:{F=s+(t*20|0)+16|0;v=c[((c[(F&p)>>2]|0)&p)+8>>2]|0;if(!v){g=m;m=r;s=6;u=x;ie=1309;break c}g=c[(v&p)>>2]|0;if(!g){g=m;m=r;s=6;u=x;ie=1309;break c}I=c[(s+(t*20|0)&p)+8>>2]|0;E=g+52|0;C=c[(E&p)>>2]|0;if(!C){g=m;m=r;S=z;T=s;U=W;V=X;u=L;r=t;break d}H=a[(eb&n)>>0]|0;J=c[(Bb&p)>>2]|0;if((I|0)>0){C=0;A=z+((c[(s+(t*20|0)&p)+12>>2]|0)*40|0)|0;while(1){c[(J+(C<<2)&p)>>2]=A;C=C+1|0;if((C|0)==(I|0))break;else A=A+40|0}C=c[(E&p)>>2]|0}A=s+(t*20|0)+3|0;a[(eb&n)>>0]=a[(A&n)>>0]|0;u=pc[C&31](v,I,J,Hd)|0;a[(eb&n)>>0]=H;Mm(f,v);if(!u){if(c[(s+(t*20|0)&p)+4>>2]|0){l=Hd;r=c[(l&p)>>2]|0;l=c[(l&p)+4>>2]|0;V=ne;c[(V&p)>>2]=r;c[(V&p)+4>>2]=l}}else if((u&255|0)==19?(a[((c[(F&p)>>2]|0)&n)+16>>0]|0)!=0:0){g=a[(A&n)>>0]|0;if(g<<24>>24==5)g=2;else if(g<<24>>24==4){g=m;m=r;S=z;T=s;U=W;V=X;u=L;r=t;break d}a[(fe&n)>>0]=g;C=L;T=t;break e}c[(ub&p)>>2]=(c[(ub&p)>>2]|0)+1;C=L;T=t;break}case 152:{g=c[((c[(s+(t*20|0)&p)+16>>2]|0)&p)+8>>2]|0;u=c[(s+(t*20|0)&p)+4>>2]|0;v=z+(u*40|0)|0;if(((b[(z+(u*40|0)&o)+8>>1]&2)!=0?(a[(z+(u*40|0)&n)+10>>0]|0)!=1:0)?(Wd=Bn(v,1)|0,(Wd|0)!=0):0){g=m;m=r;s=Wd;u=x;ie=1309;break c}u=rc[c[((c[(g&p)>>2]|0)&p)+76>>2]&127](g,c[(z+(u*40|0)&p)+16>>2]|0)|0;Mm(f,g);b[(Yd&o)>>1]=b[(Yd&o)>>1]&-9;C=L;T=t;break}case 153:{g=m;m=r;u=L;r=t;ie=1257;break d}case 155:{g=m;m=r;ie=1264;break d}case 154:{g=m;m=r;J=L;r=t;ie=1258;break d}default:{g=m;m=r;S=z;T=s;U=W;V=X;u=L;r=t;break d}}while(0);n:do if((ie|0)==57){ie=0;w=L+8|0;b[(w&o)>>1]=2562;c[(L&p)+16>>2]=v;c[(L&p)+12>>2]=g;a[(L&n)+10>>0]=Jc;if((a[(s+(t*20|0)&n)+3>>0]|0)!=0?(V=z+((c[(s+(t*20|0)&p)+12>>2]|0)*40|0)|0,!((c[(V&p)>>2]|0)==0&(c[(V&p)+4>>2]|0)==0)):0){b[(w&o)>>1]=2576;C=L;T=t}else{C=L;T=t}}else if((ie|0)==536){if(b[(Yd&o)>>1]&8){g=m;m=r;s=516;u=x;ie=1309;break c}C=c[(s+(t*20|0)&p)+8>>2]|0;I=c[(s+(t*20|0)&p)+12>>2]|0;g=c[(Xd&p)>>2]|0;H=c[(g+(I<<4)&p)+4>>2]|0;if(J<<24>>24==55){g=a[((c[(g+(I<<4)&p)+12>>2]|0)&n)+76>>0]|0;if((g&255)<(d[(Mb&n)>>0]|0)){a[(Mb&n)>>0]=g;J=1}else J=1}else J=0;v=s+(t*20|0)+3|0;if(a[(v&n)>>0]&4){V=z+(C*40|0)|0;g=Vg(V)|0;c[(V&p)>>2]=g;c[(V&p)+4>>2]=G;V=z+(C*40|0)+8|0;b[(V&o)>>1]=e[(V&o)>>1]&48640|4;if((g|0)<2){g=m;m=r;s=x;ie=542;break c}else E=g}else E=C;u=s+(t*20|0)+1|0;C=a[(u&n)>>0]|0;if(C<<24>>24==-6){A=c[(s+(t*20|0)&p)+16>>2]|0;C=(e[(A&o)+8>>1]|0)+(e[(A&o)+6>>1]|0)|0}else if(C<<24>>24==-14){C=c[(s+(t*20|0)&p)+16>>2]|0;A=0}else{C=0;A=0}g=xm(f,c[(s+(t*20|0)&p)+4>>2]|0,C,I,1)|0;if(!g){y=ge;z=je;g=m;m=x;ie=1317;break a}a[(g&n)+25>>0]=1;V=g+27|0;a[(V&n)>>0]=a[(V&n)>>0]|8;c[(g&p)+28>>2]=E;ie=ym(H,E,J,A,c[(g&p)>>2]|0)|0;c[(g&p)+8>>2]=A;a[(V&n)>>0]=((a[(u&n)>>0]|0)!=-6&1)<<2&255|a[(V&n)>>0]&-5;u=ie;ie=548}else if((ie|0)==715){ie=0;M=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;V=c[(M&p)+56>>2]|0;do if(!V){u=c[(M&p)>>2]|0;g=qm(u)|0;if(!g)if(!(a[(u&n)+73>>0]|0)){v=1;g=0}else{v=0;g=Vm(u)|0}else v=1;a[(M&n)+26>>0]=0;c[(M&p)+60>>2]=0;a[(M&n)+25>>0]=v;if(!v){C=L;T=t;u=g;break n}}else{do if(!(a[(V&n)+56>>0]|0)){g=V+36|0;if(!(c[(g&p)>>2]|0)){g=0;ie=756}else{g=Nm(V+64|0,g)|0;ie=755}}else{g=Om(V)|0;if(!g){U=V+59|0;o:do if(!(a[(U&n)>>0]|0)){u=0;g=0}else{w=0;v=0;p:while(1){T=V+(w<<6)+64|0;c[(ke&p)>>2]=0;S=V+(w<<6)+92|0;C=c[(S&p)>>2]|0;J=((C|0)<0)<<31>>31;do if((C|0)>16){I=16;H=0;E=0;while(1){I=iw(I|0,H|0,4)|0;H=G;F=E+1|0;if(!((H|0)<(J|0)|(H|0)==(J|0)&I>>>0>>0)){H=E;break}else E=F}P=Sd;c[(P&p)>>2]=0;c[(P&p)+4>>2]=0;if((C|0)<17){ie=726;break}u=Qm(16)|0;c[(ke&p)>>2]=u;J=(u|0)==0;I=c[(S&p)>>2]|0;if(!((I|0)>0&(J^1))){g=J?7:0;break}N=(H|0)>0;P=0;O=0;do{c[(qd&p)>>2]=0;g=I-P|0;g=Pm(T,(g|0)<16?g:16,Sd,qd)|0;if(g){ie=747;break p}g=Rm(T,c[(qd&p)>>2]|0,pd)|0;do if(N){I=1;J=1;do{J=J<<4;I=I+1|0}while((I|0)!=(F|0));if(!g){H=1;I=u}else{J=c[(pd&p)>>2]|0;ie=743;break}while(1){K=(c[(I&p)+12>>2]|0)+((((O|0)/(J|0)|0|0)%16|0)*56|0)+48|0;I=c[(K&p)>>2]|0;if(!I){I=Qm(16)|0;if(!I){g=7;ie=738;break}g=Rm(T,I,K)|0;if(g){ie=738;break}I=c[(K&p)>>2]|0}I=c[(I&p)+4>>2]|0;H=H+1|0;if((H|0)>=(F|0)){ie=740;break}else J=(J|0)/16|0}if((ie|0)==738){J=c[(pd&p)>>2]|0;ie=743;break}else if((ie|0)==740){J=c[(pd&p)>>2]|0;ie=742;break}}else{J=c[(pd&p)>>2]|0;if(!g){I=u;ie=742}else ie=743}while(0);if((ie|0)==742){ie=0;c[((c[(I&p)+12>>2]|0)+(((O|0)%16|0)*56|0)&p)+48>>2]=J;g=0}else if((ie|0)==743){ie=0;Sm(J)}O=O+1|0;P=P+16|0;I=c[(S&p)>>2]|0}while((P|0)<(I|0)&(g|0)==0)}else{ie=Sd;c[(ie&p)>>2]=0;c[(ie&p)+4>>2]=0;ie=726}while(0);if((ie|0)==726){ie=0;g=Pm(T,C,Sd,ke)|0;u=c[(ke&p)>>2]|0}w=w+1|0;if(g){ie=746;break}if((w|0)>=(d[(U&n)>>0]|0)){g=0;break o}else v=u}if((ie|0)==746)Tm(u);else if((ie|0)==747)Tm(u);Tm(v);u=0}while(0);if(!g){g=Um(V+64|0,u)|0;c[(V&p)+20>>2]=u;if(!g){g=0;ie=755;break}else u=0}Tm(u);ie=755}else ie=756}while(0);if((ie|0)==755){ie=0;a[(M&n)+25>>0]=0;C=L;T=t;u=g;break n}else if((ie|0)==756){ie=0;a[(M&n)+25>>0]=1;break}}while(0);C=L;T=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;u=g}else if((ie|0)==765){u=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;c[(Fd&p)>>2]=c[(s+(t*20|0)&p)+12>>2];g=u;u=rc[c[(s+(t*20|0)&p)+16>>2]&127](c[(u&p)>>2]|0,Fd)|0;ie=766}while(0);do if((ie|0)==548){ie=0;a[((c[(g&p)>>2]|0)&n)+74>>0]=d[(v&n)>>0]&3;C=L;T=t}else if((ie|0)==766){c[(g&p)+60>>2]=0;g=g+25|0;if(!(c[(Fd&p)>>2]|0)){a[(g&n)>>0]=0;ie=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;t=f+(d[(s+(t*20|0)&n)+3>>0]<<2)+108|0;c[(t&p)>>2]=(c[(t&p)>>2]|0)+1;t=ie;ie=19;break}else{a[(g&n)>>0]=1;ie=19;break}}while(0);if((ie|0)==19){ie=0;if(c[(Cc&p)>>2]|0){u=je;g=m;m=x;break b}g=c[(be&p)>>2]|0;if(!((g|0)==0|m>>>0>>0)){y=c[(yc&p)>>2]|0;if(!(lc[g&127](c[(Zd&p)>>2]|0)|0)){y=y+m-((m>>>0)%(y>>>0)|0)|0;C=L;T=t}else{g=m;s=9;m=x;ie=1311;break a}}else{C=L;T=t}}t=T+1|0;if(!u){g=m;u=C}else{g=m;s=u;m=x;ie=1311;break a}}q:switch(ie|0){case 22:{ie=0;S=c[(s+(t*20|0)&p)+4>>2]|0;b[(z+(S*40|0)&o)+8>>1]=4;S=z+(S*40|0)|0;c[(S&p)>>2]=t;c[(S&p)+4>>2]=((t|0)<0)<<31>>31;S=z;T=s;U=W;V=X;r=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;break}case 23:{ie=0;S=c[(s+(t*20|0)&p)+4>>2]|0;r=c[(z+(S*40|0)&p)>>2]|0;b[(z+(S*40|0)&o)+8>>1]=128;S=z;T=s;U=W;V=X;break}case 24:{ie=0;r=c[(s+(t*20|0)&p)+4>>2]|0;u=z+(r*40|0)|0;T=(c[(s+(t*20|0)&p)+12>>2]|0)+-1|0;S=u;c[(S&p)>>2]=T;c[(S&p)+4>>2]=((T|0)<0)<<31>>31;b[(z+(r*40|0)&o)+8>>1]=4;r=c[(s+(t*20|0)&p)+8>>2]|0;S=z;T=s;U=W;V=X;r=(r|0)==0?t:r+-1|0;break}case 25:{ie=0;S=c[(s+(t*20|0)&p)+4>>2]|0;r=(c[(s+((c[(z+(S*40|0)&p)>>2]|0)*20|0)&p)+8>>2]|0)+-1|0;b[(z+(S*40|0)&o)+8>>1]=128;S=z;T=s;U=W;V=X;break}case 26:{ie=0;S=c[(s+(t*20|0)&p)+4>>2]|0;b[(z+(S*40|0)&o)+8>>1]=4;S=z+(S*40|0)|0;r=c[(S&p)>>2]|0;c[(S&p)>>2]=t;c[(S&p)+4>>2]=((t|0)<0)<<31>>31;S=z;T=s;U=W;V=X;break}case 27:{ie=0;if(!(b[(z+((c[(s+(r*20|0)&p)+12>>2]|0)*40|0)&o)+8>>1]&1)){S=z;T=s;U=W;V=X}else ie=28;break}case 44:{ie=0;T=c[(s+(r*20|0)&p)+4>>2]|0;S=u;c[(S&p)>>2]=T;c[(S&p)+4>>2]=((T|0)<0)<<31>>31;S=z;T=s;U=W;V=X;break}case 45:{ie=0;U=c[(s+(r*20|0)&p)+16>>2]|0;T=c[(U&p)+4>>2]|0;S=u;c[(S&p)>>2]=c[(U&p)>>2];c[(S&p)+4>>2]=T;S=z;T=s;U=W;V=X;break}case 46:{ie=0;b[(u&o)+8>>1]=8;h[(u&q)>>3]=+h[(c[(s+(r*20|0)&p)+16>>2]&q)>>3];S=z;T=s;U=W;V=X;break}case 60:{ie=0;J=(c[(s+(r*20|0)&p)+12>>2]|0)-(c[(s+(r*20|0)&p)+8>>2]|0)|0;t=(c[(s+(r*20|0)&p)+4>>2]|0)!=0?257:1;b[(u&o)+8>>1]=t;if((J|0)>0){w=J;A=u;do{v=A+48|0;A=A+40|0;if(!(b[(v&o)>>1]&9312))b[(v&o)>>1]=1;else vg(A);b[(v&o)>>1]=t;w=w+-1|0}while((w|0)>0);S=z;T=s;U=W;V=X;u=u+(J*40|0)|0}else{S=z;T=s;U=W;V=X}break}case 65:{ie=0;u=c[(s+(r*20|0)&p)+4>>2]|0;S=z+(u*40|0)+8|0;b[(S&o)>>1]=e[(S&o)>>1]&65406|1;S=z;T=s;U=W;V=X;u=z+(u*40|0)|0;break}case 66:{ie=0;Xg(u,c[(s+(r*20|0)&p)+16>>2]|0,c[(s+(r*20|0)&p)+4>>2]|0,0,0)|0;a[(u&n)+10>>0]=Jc;S=z;T=s;U=W;V=X;break}case 67:{ie=0;C=(c[(s+(r*20|0)&p)+4>>2]|0)+-1|0;A=c[(Ab&p)>>2]|0;w=A+(C*40|0)|0;v=e[(A+(C*40|0)&o)+8>>1]|0;if(v&18){t=c[(A+(C*40|0)&p)+12>>2]|0;if(v&16384)t=(c[(w&p)>>2]|0)+t|0;if((t|0)>(c[((c[(A+(C*40|0)&p)+32>>2]|0)&p)+88>>2]|0)){t=r;u=x;ie=1316;break c}}Zl(u,w,2048);S=z;T=s;U=W;V=X;break}case 72:{ie=0;t=c[(s+(r*20|0)&p)+12>>2]|0;v=c[(s+(r*20|0)&p)+8>>2]|0;J=t+v|0;u=z+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)|0;v=z+(v*40|0)|0;while(1){_l(v,u);t=t+-1|0;if(!t)break;else{u=u+40|0;v=v+40|0}}S=z;T=s;U=W;V=X;u=z+(J*40|0)|0;break}case 74:{ie=0;r=c[(s+(t*20|0)&p)+12>>2]|0;u=z+((c[(s+(t*20|0)&p)+4>>2]|0)*40|0)|0;J=z+((c[(s+(t*20|0)&p)+8>>2]|0)*40|0)|0;while(1){Zl(J,u,4096);if((b[(J&o)+8>>1]&4096)!=0?(Vl(J)|0)!=0:0){y=ge;z=je;r=m;m=x;ie=1317;break a}if(!r){S=z;T=s;U=W;V=X;u=J;r=t;break q}r=r+-1|0;u=u+40|0;J=J+40|0}}case 79:{ie=0;u=z+((c[(s+(r*20|0)&p)+8>>2]|0)*40|0)|0;Zl(u,z+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)|0,4096);S=z;T=s;U=W;V=X;break}case 94:{ie=0;K=c[(s+(t*20|0)&p)+4>>2]|0;J=z+(K*40|0)|0;L=c[(s+(t*20|0)&p)+8>>2]|0;I=z+(L*40|0)|0;M=c[(s+(t*20|0)&p)+12>>2]|0;u=z+(M*40|0)|0;H=z+(K*40|0)+8|0;E=b[(H&o)>>1]|0;F=z+(L*40|0)+8|0;C=b[(F&o)>>1]|0;if((C|E)&1){r=z+(M*40|0)+8|0;if(!(b[(r&o)>>1]&9312)){b[(r&o)>>1]=1;S=z;T=s;U=W;V=X;r=t;break}else{vg(u);S=z;T=s;U=W;V=X;r=t;break}}if(E&16384){if(Rg(J)|0){y=ge;z=je;r=m;m=x;ie=1317;break a}C=b[(F&o)>>1]|0}if((C&16384)!=0?(Rg(I)|0)!=0:0){y=ge;z=je;r=m;m=x;ie=1317;break a}if((b[(H&o)>>1]&18)==0?(bm(J,Jc,0)|0)!=0:0){y=ge;z=je;r=m;m=x;ie=1317;break a}if((b[(F&o)>>1]&18)==0?(bm(I,Jc,0)|0)!=0:0){y=ge;z=je;r=m;m=x;ie=1317;break a}E=z+(K*40|0)+12|0;A=z+(L*40|0)+12|0;r=(c[(A&p)>>2]|0)+(c[(E&p)>>2]|0)|0;if((r|0)>(c[(zb&p)>>2]|0)){u=x;ie=1316;break c}v=(M|0)==(L|0);if(eh(u,r+2|0,v&1)|0){y=ge;z=je;r=m;m=x;ie=1317;break a}w=z+(M*40|0)+8|0;b[(w&o)>>1]=e[(w&o)>>1]&48640|2;C=z+(M*40|0)+16|0;if(!v)kw(c[(C&p)>>2]|0,c[(z+(L*40|0)&p)+16>>2]|0,c[(A&p)>>2]|0)|0;kw((c[(C&p)>>2]|0)+(c[(A&p)>>2]|0)|0,c[(z+(K*40|0)&p)+16>>2]|0,c[(E&p)>>2]|0)|0;a[((c[(C&p)>>2]|0)+r&n)>>0]=0;a[((c[(C&p)>>2]|0)+r&n)+1>>0]=0;b[(w&o)>>1]=e[(w&o)>>1]|512;c[(z+(M*40|0)&p)+12>>2]=r;a[(z+(M*40|0)&n)+10>>0]=Jc;S=z;T=s;U=W;V=X;r=t;break}case 112:{ie=0;V=c[(s+(r*20|0)&p)+4>>2]|0;N=z+(V*40|0)|0;S=cm(N)|0;w=c[(s+(r*20|0)&p)+8>>2]|0;O=z+(w*40|0)|0;T=cm(O)|0;U=c[(s+(r*20|0)&p)+12>>2]|0;u=z+(U*40|0)|0;r:do if(!((b[(z+(w*40|0)&o)+8>>1]|b[(z+(V*40|0)&o)+8>>1])&1)){s:do if(!((S&4&T)<<16>>16))L=0;else{t=N;C=c[(t&p)>>2]|0;t=c[(t&p)+4>>2]|0;F=O;v=c[(F&p)>>2]|0;F=c[(F&p)+4>>2]|0;J=d[(P&n)>>0]|0;t:do if((J|0)==89){if((t|0)>-1|(t|0)==-1&C>>>0>4294967295){V=dw(-1,2147483647,v|0,F|0)|0;w=G;if(((F|0)>0|(F|0)==0&v>>>0>0)&((w|0)<(t|0)|(w|0)==(t|0)&V>>>0>>0)){L=1;break s}}else if((F|0)<0?(w=dw(1,-2147483648,v|0,F|0)|0,A=G,V=jw(C|0,t|0,1,0)|0,M=G,(A|0)>(M|0)|(A|0)==(M|0)&w>>>0>V>>>0):0){L=1;break s}v=jw(v|0,F|0,C|0,t|0)|0;t=G}else if((J|0)==91){L=qw(v|0,F|0,0,1)|0;K=G;E=rw(v|0,F|0,0,1)|0;A=G;J=qw(C|0,t|0,0,1)|0;I=G;M=rw(C|0,t|0,0,1)|0;w=G;V=jw(v|0,F|0,-1,0)|0;pe=G;H=jw(C|0,t|0,-1,0)|0;qe=G;H=qe>>>0<1|(qe|0)==1&H>>>0<4294967295;do if(pe>>>0<1|(pe|0)==1&V>>>0<4294967295)if(H){v=sw(v|0,F|0,C|0,t|0)|0;t=G;break t}else{H=sw(J|0,I|0,E|0,A|0)|0;F=G;break}else{if(!H){L=1;break s}H=sw(M|0,w|0,L|0,K|0)|0;F=G}while(0);V=jw(H|0,F|0,-2147483648,0)|0;v=G;if(v>>>0>0|(v|0)==0&V>>>0>4294967295){L=1;break s}J=sw(M|0,w|0,E|0,A|0)|0;I=G;if((I|0)>-1|(I|0)==-1&J>>>0>4294967295){V=dw(-1,2147483647,0,H|0)|0;w=G;if(((F|0)>0|(F|0)==0&H>>>0>0)&((w|0)<(I|0)|(w|0)==(I|0)&V>>>0>>0)){L=1;break s}}else if((F|0)<0?(w=dw(1,-2147483648,0,H|0)|0,t=G,V=jw(J|0,I|0,1,0)|0,v=G,(t|0)>(v|0)|(t|0)==(v|0)&w>>>0>V>>>0):0){L=1;break s}v=jw(0,H|0,J|0,I|0)|0;t=G}else if((J|0)==90){if((C|0)==0&(t|0)==-2147483648){if((F|0)>-1|(F|0)==-1&v>>>0>4294967295){L=1;break s}t=F^-2147483648;break}if((t|0)<0|(t|0)==0&C>>>0<1){V=dw(0,0,C|0,t|0)|0;M=G;w=dw(-1,2147483647,v|0,F|0)|0;A=G;if(((F|0)>0|(F|0)==0&v>>>0>0)&((A|0)<(M|0)|(A|0)==(M|0)&w>>>0>>0)){L=1;break s}}else if((F|0)<0?(w=dw(1,-2147483648,v|0,F|0)|0,A=G,V=dw(1,0,C|0,t|0)|0,M=G,(A|0)>(M|0)|(A|0)==(M|0)&w>>>0>V>>>0):0){L=1;break s}v=dw(v|0,F|0,C|0,t|0)|0;t=G}else if((J|0)==92){if((C|0)==0&(t|0)==0)break r;if((C|0)==-1&(t|0)==-1&((v|0)==0&(F|0)==-2147483648)){L=1;break s}v=qw(v|0,F|0,C|0,t|0)|0;t=G}else{if((C|0)==-1){if((t|0)==-1){C=1;t=0}}else if((C|0)==0?(t|0)==0:0)break r;v=rw(v|0,F|0,C|0,t|0)|0;t=G}while(0);S=u;c[(S&p)>>2]=v;c[(S&p)+4>>2]=t;S=z+(U*40|0)+8|0;b[(S&o)>>1]=e[(S&o)>>1]&48640|4;S=z;T=s;U=W;V=X;break q}while(0);D=+Ug(N);B=+Ug(O);C=d[(P&n)>>0]|0;if((C|0)==89)B=D+B;else if((C|0)==90)B=B-D;else if((C|0)==91)B=D*B;else if((C|0)==92){if(D==0.0)break;B=B/D}else{E=~~D>>>0;C=+R(D)>=1.0?(D>0.0?~~+da(+Q(D/4294967296.0),4294967295.0)>>>0:~~+ba((D-+(~~D>>>0))/4294967296.0)>>>0):0;I=~~B>>>0;J=+R(B)>=1.0?(B>0.0?~~+da(+Q(B/4294967296.0),4294967295.0)>>>0:~~+ba((B-+(~~B>>>0))/4294967296.0)>>>0):0;if(!E){if(!C)break}else if((E|0)==-1?(C|0)==-1:0){E=1;C=0}V=rw(I|0,J|0,E|0,C|0)|0;B=+(V>>>0)+4294967296.0*+(G|0)}h[(ke&q)>>3]=B;h[(Sd&q)>>3]=+h[(ke&q)>>3];if(!(+h[(ke&q)>>3]!=+h[(Sd&q)>>3])){h[(u&q)>>3]=B;V=z+(U*40|0)+8|0;b[(V&o)>>1]=e[(V&o)>>1]&48640|8;if(((T|S)&8)!=0|L<<24>>24!=0){S=z;T=s;U=W;V=X;break q}dm(u);S=z;T=s;U=W;V=X;break q}}while(0);t=z+(U*40|0)+8|0;if(!(b[(t&o)>>1]&9312)){b[(t&o)>>1]=1;S=z;T=s;U=W;V=X;break}else{vg(u);S=z;T=s;U=W;V=X;break}}case 166:{ie=0;t=c[(s+(r*20|0)&p)+4>>2]|0;if(t){u=z+(t*40|0)|0;t=z+(t*40|0)+8|0;if(!(b[(t&o)>>1]&9312)){S=u;c[(S&p)>>2]=0;c[(S&p)+4>>2]=0;b[(t&o)>>1]=4;S=z;T=s;U=W;V=X;u=J;break}else{Zg(u,0,0);S=z;T=s;U=W;V=X;u=J;break}}else{S=z;T=s;U=W;V=X;u=J}break}case 184:{ie=0;C=c[(s+(r*20|0)&p)+4>>2]|0;t=c[(s+(r*20|0)&p)+8>>2]|0;K=c[(s+(r*20|0)&p)+12>>2]|0;u=z+(K*40|0)|0;if((b[(z+(t*40|0)&o)+8>>1]|b[(z+(C*40|0)&o)+8>>1])&1){t=z+(K*40|0)+8|0;if(!(b[(t&o)>>1]&9312)){b[(t&o)>>1]=1;S=z;T=s;U=W;V=X;break}else{vg(u);S=z;T=s;U=W;V=X;break}}A=Vg(z+(t*40|0)|0)|0;L=G;J=Vg(z+(C*40|0)|0)|0;I=G;t=a[(H&n)>>0]|0;C=t&255;do if(t<<24>>24==86){A=J|A;t=I|L}else if(t<<24>>24!=85)if(!((J|0)==0&(I|0)==0)){if((I|0)<0){t=175-C&255;C=dw(0,0,J|0,I|0)|0;if((I|0)>-1|(I|0)==-1&J>>>0>4294967232){I=G;ie=194}}else{C=J;ie=194}if((ie|0)==194){ie=0;if(!((I|0)>0|(I|0)==0&C>>>0>63)){if(t<<24>>24==87){A=iw(A|0,L|0,C|0)|0;t=G;break}A=mw(A|0,L|0,C|0)|0;t=G;if((L|0)>=0)break;V=dw(64,0,C|0,I|0)|0;V=iw(-1,-1,V|0)|0;A=V|A;t=G|t;break}}if((L|0)>-1|(L|0)==-1&A>>>0>4294967295){A=0;t=0}else{t=(t<<24>>24!=87)<<31>>31;A=t;t=((t|0)<0)<<31>>31}}else t=L;else{A=J&A;t=I&L}while(0);S=u;c[(S&p)>>2]=A;c[(S&p)+4>>2]=t;S=z+(K*40|0)+8|0;b[(S&o)>>1]=e[(S&o)>>1]&48640|4;S=z;T=s;U=W;V=X;break}case 202:{ie=0;T=c[(s+(r*20|0)&p)+4>>2]|0;S=z+(T*40|0)|0;U=Vg(S)|0;T=z+(T*40|0)+8|0;b[(T&o)>>1]=e[(T&o)>>1]&48640|4;T=c[(s+(r*20|0)&p)+8>>2]|0;T=jw(U|0,G|0,T|0,((T|0)<0)<<31>>31|0)|0;c[(S&p)>>2]=T;c[(S&p)+4>>2]=G;S=z;T=s;U=W;V=X;break}case 203:{ie=0;u=c[(s+(r*20|0)&p)+4>>2]|0;v=z+(u*40|0)+8|0;t=b[(v&o)>>1]|0;if(!(t&4)){fm(z+(u*40|0)|0,67,Jc);t=b[(v&o)>>1]|0;if(!(t&4)){E=c[(s+(r*20|0)&p)+8>>2]|0;if(!E){t=r;u=20;ie=1318;break c}S=z;T=s;U=W;V=X;u=J;r=E+-1|0;break}}b[(v&o)>>1]=t&48640|4;S=z;T=s;U=W;V=X;u=J;break}case 208:{ie=0;t=c[(s+(r*20|0)&p)+4>>2]|0;u=z+(t*40|0)+8|0;if(!(b[(u&o)>>1]&4)){S=z;T=s;U=W;V=X;u=J}else{S=z+(t*40|0)|0;h[(S&q)>>3]=+Ug(S);b[(u&o)>>1]=e[(u&o)>>1]&48640|8;S=z;T=s;U=W;V=X;u=J}break}case 213:{ie=0;N=c[(s+(t*20|0)&p)+4>>2]|0;L=z+(N*40|0)|0;w=c[(s+(t*20|0)&p)+12>>2]|0;K=z+(w*40|0)|0;N=z+(N*40|0)+8|0;F=b[(N&o)>>1]|0;w=z+(w*40|0)+8|0;M=b[(w&o)>>1]|0;H=F&65535;A=M&65535;v=s+(t*20|0)+3|0;J=d[(v&n)>>0]|0;do if(!((M|F)&1)){J=J&71;if(J>>>0>66){if((H&14|0)==2){rh(L,0);A=b[(w&o)>>1]|0}else A=M;if((A&14)==2){rh(K,0);J=F;E=M}else{J=F;E=M}}else if((J|0)==66){if((H&2|0)!=0|(H&12|0)==0){I=M;J=F}else{bm(L,Jc,1)|0;I=b[(w&o)>>1]|0;J=(e[(N&o)>>1]&65024|H&511)&65535}V=I&65535;if((V&2|0)!=0|(V&12|0)==0)E=M;else{bm(K,Jc,1)|0;E=(e[(w&o)>>1]&65024|A&511)&65535}}else{J=F;E=M}if(b[(N&o)>>1]&16384){Rg(L)|0;J=J&49151}if(b[(w&o)>>1]&16384){Rg(K)|0;E=E&49151}if(a[(ge&n)>>0]|0){y=ge;z=je;r=m;m=x;ie=1317;break a}V=hm(K,L,c[(s+(t*20|0)&p)+16>>2]|0)|0;I=a[(C&n)>>0]|0;r=t;C=V}else{if(J&128){J=F;E=M;r=t;C=(F&1&M)<<16>>16!=0&(A&256|0)==0&1^1;break}if(J&32){u=c[(s+(t*20|0)&p)+8>>2]|0;S=z+(u*40|0)+8|0;b[(S&o)>>1]=e[(S&o)>>1]&48640|1;S=z;T=s;U=W;V=X;u=z+(u*40|0)|0;r=t;break q}if(!(J&16)){S=z;T=s;U=W;V=X;r=t;break q}S=z;T=s;U=W;V=X;r=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;break q}while(0);switch(I&255|0){case 79:{C=(C|0)==0&1;break}case 78:{C=(C|0)!=0&1;break}case 82:{C=C>>>31;break}case 81:{C=(C|0)<1&1;break}case 80:{C=(C|0)>0&1;break}default:C=C>>>31^1}if(!(a[(v&n)>>0]&32)){if(C)r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0}else{V=c[(s+(r*20|0)&p)+8>>2]|0;u=z+(V*40|0)|0;V=z+(V*40|0)+8|0;b[(V&o)>>1]=e[(V&o)>>1]&48640|4;V=u;c[(V&p)>>2]=C;c[(V&p)+4>>2]=0}b[(N&o)>>1]=J;b[(w&o)>>1]=E;S=z;T=s;U=W;V=X;break}case 248:{ie=0;S=z;T=s;U=c[(s+(r*20|0)&p)+16>>2]|0;V=X;break}case 249:{ie=0;w=(a[(s+(r*20|0)&n)+3>>0]&1)==0?0:W;F=c[(s+(r*20|0)&p)+12>>2]|0;H=c[(s+(r*20|0)&p)+16>>2]|0;I=c[(s+(r*20|0)&p)+4>>2]|0;J=c[(s+(r*20|0)&p)+8>>2]|0;if((F|0)>0){t=(w|0)==0;v=H+16|0;E=0;while(1){if(t)A=E;else A=c[(w+(E<<2)&p)>>2]|0;C=a[((c[(v&p)>>2]|0)+E&n)>>0]|0;A=hm(z+((A+I|0)*40|0)|0,z+((A+J|0)*40|0)|0,c[(H+(E<<2)&p)+20>>2]|0)|0;E=E+1|0;if(A)break;if((E|0)>=(F|0)){S=z;T=s;U=0;V=0;break q}}S=z;T=s;U=0;V=C<<24>>24==0?A:0-A|0}else{S=z;T=s;U=0;V=X}break}case 256:{ie=0;if((X|0)<0){S=z;T=s;U=W;V=X;r=(c[(s+(t*20|0)&p)+4>>2]|0)+-1|0;break}if(!X){S=z;T=s;U=W;V=0;r=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;break}else{S=z;T=s;U=W;V=X;r=(c[(s+(t*20|0)&p)+12>>2]|0)+-1|0;break}}case 261:{ie=0;t=c[(s+(r*20|0)&p)+4>>2]|0;if(!(b[(z+(t*40|0)&o)+8>>1]&1)){u=Vg(z+(t*40|0)|0)|0;u=(u|0)!=0|(G|0)!=0?3:0}else u=6;t=c[(s+(r*20|0)&p)+8>>2]|0;if(!(b[(z+(t*40|0)&o)+8>>1]&1)){t=Vg(z+(t*40|0)|0)|0;t=((t|0)!=0|(G|0)!=0)&1}else t=2;t=a[(((a[(C&n)>>0]|0)==72?41680:41696)+t+u&n)>>0]|0;u=c[(s+(r*20|0)&p)+12>>2]|0;J=z+(u*40|0)|0;if(t<<24>>24==2){S=z+(u*40|0)+8|0;b[(S&o)>>1]=e[(S&o)>>1]&48640|1;S=z;T=s;U=W;V=X;u=J;break}else{S=J;c[(S&p)>>2]=t&255;c[(S&p)+4>>2]=0;S=z+(u*40|0)+8|0;b[(S&o)>>1]=e[(S&o)>>1]&48640|4;S=z;T=s;U=W;V=X;u=J;break}}case 268:{ie=0;t=c[(s+(r*20|0)&p)+4>>2]|0;u=c[(s+(r*20|0)&p)+8>>2]|0;J=z+(u*40|0)|0;u=z+(u*40|0)+8|0;if(!(b[(u&o)>>1]&9312))b[(u&o)>>1]=1;else vg(J);if(!(b[(z+(t*40|0)&o)+8>>1]&1)){b[(u&o)>>1]=4;T=Vg(z+(t*40|0)|0)|0;S=J;c[(S&p)>>2]=(T|0)==0&(G|0)==0&1;c[(S&p)+4>>2]=0;S=z;T=s;U=W;V=X;u=J}else{S=z;T=s;U=W;V=X;u=J}break}case 273:{ie=0;t=c[(s+(r*20|0)&p)+4>>2]|0;u=c[(s+(r*20|0)&p)+8>>2]|0;J=z+(u*40|0)|0;u=z+(u*40|0)+8|0;if(!(b[(u&o)>>1]&9312))b[(u&o)>>1]=1;else vg(J);if(!(b[(z+(t*40|0)&o)+8>>1]&1)){b[(u&o)>>1]=4;T=Vg(z+(t*40|0)|0)|0;S=J;c[(S&p)>>2]=~T;c[(S&p)+4>>2]=~G;S=z;T=s;U=W;V=X;u=J}else{S=z;T=s;U=W;V=X;u=J}break}case 278:{ie=0;t=(c[(Hb&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]|0)|0;if(!(a[(t&n)>>0]|0)){a[(t&n)>>0]=1;S=z;T=s;U=W;V=X;break}else{S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0;break}}case 281:{ie=0;t=c[(s+(r*20|0)&p)+4>>2]|0;if(!(b[(z+(t*40|0)&o)+8>>1]&1)){t=+Ug(z+(t*40|0)|0)!=0.0;t=(t^(a[(C&n)>>0]|0)==46)&1}else t=c[(s+(r*20|0)&p)+12>>2]|0;if(!t){S=z;T=s;U=W;V=X}else{S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0}break}case 286:{ie=0;if(!(b[(z+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)&o)+8>>1]&1)){S=z;T=s;U=W;V=X}else{S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0}break}case 288:{ie=0;if(!(b[(z+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)&o)+8>>1]&1)){S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0}else{S=z;T=s;U=W;V=X}break}case 290:{ie=0;T=c[(s+(t*20|0)&p)+8>>2]|0;M=c[(s+(t*20|0)&p)+12>>2]|0;A=z+(M*40|0)|0;S=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;w=c[(S&p)+80>>2]|0;v=c[(S&p)>>2]|0;if(!(a[(S&n)+26>>0]|0)){if((v|0)!=0?(a[(v&n)+73>>0]|0)!=1:0){Td=jm(S)|0;ie=295}}else{Td=im(S)|0;ie=295}if((ie|0)==295?(ie=0,(Td|0)!=0):0){u=Td;ie=1318;break c}L=S+60|0;C=c[($d&p)>>2]|0;u:do if((c[(L&p)>>2]|0)==(C|0)){C=b[(S&o)+22>>1]|0;if((C&65535|0)>(T|0))ie=350;else{I=S+72|0;ie=318}}else{do if(a[(S&n)+25>>0]|0){if(!v){J=c[(S&p)+16>>2]|0;F=c[(z+(J*40|0)&p)+12>>2]|0;c[(S&p)+68>>2]=F;c[(S&p)+64>>2]=F;J=c[(z+(J*40|0)&p)+16>>2]|0;K=S+76|0;c[(K&p)>>2]=J;break}r=z+(M*40|0)+8|0;if(!(b[(r&o)>>1]&9312)){b[(r&o)>>1]=1;break u}else{vg(A);break u}}else{if(!(a[(S&n)+27>>0]&4)){km(v,td);I=e[(v&o)+40>>1]|0;J=c[(v&p)+32>>2]|0;c[(S&p)+76>>2]=J;C=c[(td&p)>>2]|0;c[(S&p)+64>>2]=C}else{C=S+64|0;lm(v,C);I=e[(v&o)+40>>1]|0;J=c[(v&p)+32>>2]|0;c[(S&p)+76>>2]=J;C=c[(C&p)>>2]|0}c[(S&p)+68>>2]=C>>>0>I>>>0?I:C;if(C>>>0>(c[(zb&p)>>2]|0)>>>0){u=x;ie=1316;break c}K=S+76|0;C=c[($d&p)>>2]|0;F=I}while(0);c[(L&p)>>2]=C;C=a[(J&n)>>0]|0;if(C<<24>>24>-1){H=C&255;c[(kd&p)>>2]=H;J=1}else{J=mm(J,kd)|0;H=c[(kd&p)>>2]|0}I=S+72|0;c[(I&p)>>2]=J&255;b[(S&o)+22>>1]=0;c[(w&p)>>2]=H;if(H>>>0>98307){u=x;ie=313;break c}if(H>>>0>(c[(S&p)+64>>2]|0)>>>0){u=x;ie=313;break c}if(F>>>0>>0){c[(K&p)>>2]=0;c[(S&p)+68>>2]=0;C=0;ie=318}else{C=0;ie=318}}while(0);do if((ie|0)==318){ie=0;J=c[(I&p)>>2]|0;H=c[(w&p)>>2]|0;if(J>>>0>>0){P=S+76|0;F=c[(P&p)>>2]|0;if(!F){U=Jd+0|0;V=U+40|0;do{c[(U&p)>>2]=0;U=U+4|0}while((U|0)<(V|0));J=nm(v,0,c[(w&p)>>2]|0,((d[(S&n)+27>>0]|0)>>>2&1^1)&255,Jd)|0;if(J){s=J;u=x;ie=1309;break c}C=S+22|0;O=C;C=b[(C&o)>>1]|0;J=c[(I&p)>>2]|0;H=c[(w&p)>>2]|0;N=c[(Jb&p)>>2]|0}else{O=S+22|0;N=F}E=C&65535;K=c[(w+(E<<2)&p)>>2]|0;c[(kd&p)>>2]=K;C=N+H|0;J=N+J|0;while(1){F=a[(J&n)>>0]|0;if(F<<24>>24>-1){L=F&255;c[(Ld&p)>>2]=L;J=J+1|0}else{J=J+((mm(J,Ld)|0)&255)|0;L=c[(Ld&p)>>2]|0}c[(S+(E<<2)&p)+84>>2]=L;if(L>>>0>11)F=(L+-12|0)>>>1;else F=d[(L&n)+34336>>0]|0;L=K+F|0;c[(kd&p)>>2]=L;if(L>>>0>>0){J=L;F=E;ie=331;break}F=E+1|0;c[(w+(F<<2)&p)>>2]=L;if((E|0)<(T|0)&J>>>0>>0){K=L;E=F}else break}if((ie|0)==331){ie=0;L=J;J=N+(H+1)|0}b[(O&o)>>1]=F;c[(I&p)>>2]=J-N;if(!(c[(P&p)>>2]|0)){if(!((b[(Kb&o)>>1]&9312)==0&(c[(Lb&p)>>2]|0)==0))Qg(Jd);b[(Kb&o)>>1]=1}if(J>>>0>=C>>>0){if(J>>>0>C>>>0){u=x;ie=343;break c}if((L|0)==(c[(S&p)+64>>2]|0))C=L;else{u=x;ie=343;break c}}else C=c[(S&p)+64>>2]|0;if(L>>>0>C>>>0){u=x;ie=343;break c}C=b[(O&o)>>1]|0}if((C&65535|0)<=(T|0)){if((a[(s+(t*20|0)&n)+1>>0]|0)==-8){Zl(A,c[(s+(t*20|0)&p)+16>>2]|0,2048);r=z+(M*40|0)+8|0;break}r=z+(M*40|0)+8|0;if(!(b[(r&o)>>1]&9312)){b[(r&o)>>1]=1;break}else{vg(A);break}}else ie=350}while(0);if((ie|0)==350){ie=0;r=z+(M*40|0)+8|0;if(b[(r&o)>>1]&9312)vg(A);J=c[(S+(T<<2)&p)+84>>2]|0;c[(Ld&p)>>2]=J;do if((c[(S&p)+68>>2]|0)>>>0<(c[(w+(T+1<<2)&p)>>2]|0)>>>0){V=a[(s+(t*20|0)&n)+3>>0]|0;if(!((V&255)>63?J>>>0>11&(J&1|0)==0|V<<24>>24<0:0)){if(J>>>0>11)C=(J+-12|0)>>>1;else C=d[(J&n)+34336>>0]|0;if(C){C=nm(v,c[(w+(T<<2)&p)>>2]|0,C,((d[(S&n)+27>>0]|0)>>>2&1^1)&255,A)|0;if(C){s=C;u=x;ie=1309;break c}om(c[(z+(M*40|0)&p)+16>>2]|0,J,A)|0;b[(r&o)>>1]=e[(r&o)>>1]&61439;break}}om(J>>>0<14?td:0,J,A)|0}else om((c[(S&p)+76>>2]|0)+(c[(w+(T<<2)&p)>>2]|0)|0,J,A)|0;while(0);a[(z+(M*40|0)&n)+10>>0]=Jc}w=e[(r&o)>>1]|0;if((w&4096|0)!=0?(Ac=z+(M*40|0)+16|0,Bc=c[(Ac&p)>>2]|0,(Bc|0)!=0):0){v=c[(z+(M*40|0)&p)+12>>2]|0;if(fh(A,v+2|0)|0){y=ge;z=je;r=m;m=x;ie=1317;break a}kw(c[(Ac&p)>>2]|0,Bc|0,v|0)|0;a[((c[(Ac&p)>>2]|0)+v&n)>>0]=0;a[((c[(Ac&p)>>2]|0)+v&n)+1>>0]=0;b[(r&o)>>1]=w&18|512;S=z;T=s;U=W;V=X;r=t}else{S=z;T=s;U=W;V=X;r=t}break}case 368:{ie=0;v=c[(s+(r*20|0)&p)+16>>2]|0;t=a[(v&n)>>0]|0;if(!(t<<24>>24)){S=z;T=s;U=W;V=X}else{w=z+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)|0;while(1){v=v+1|0;fm(w,t,Jc);t=a[(v&n)>>0]|0;if(!(t<<24>>24)){S=z;T=s;U=W;V=X;break}else w=w+40|0}}break}case 371:{ie=0;U=c[(s+(t*20|0)&p)+4>>2]|0;C=c[(s+(t*20|0)&p)+16>>2]|0;V=z+(U*40|0)|0;U=z+((U+-1+(c[(s+(t*20|0)&p)+8>>2]|0)|0)*40|0)|0;A=a[(Mb&n)>>0]|0;T=c[(s+(t*20|0)&p)+12>>2]|0;u=z+(T*40|0)|0;if(C){r=a[(C&n)>>0]|0;v=V;while(1){C=C+1|0;fm(v,r,Jc);r=a[(C&n)>>0]|0;if(!(r<<24>>24))break;else v=v+40|0}}N=(A&255)>3;L=0;K=0;O=0;C=0;w=U;while(1){E=b[(w&o)+8>>1]|0;I=E&65535;v:do if(!(I&1)){do if(!(I&4)){if(I&8){J=7;ie=388;break v}J=c[(w&p)+12>>2]|0;if(I&16384)J=(c[(w&p)>>2]|0)+J|0;J=(J<<1)+12|I>>>1&1}else{I=w;J=c[(I&p)>>2]|0;I=c[(I&p)+4>>2]|0;H=ew(J|0,I|0,63)|0;H=H^J;F=G^I;if(F>>>0<0|(F|0)==0&H>>>0<128){if(!((J&1|0)==(J|0)&0==(I|0)&N)){J=1;ie=388;break v}J=H+8|0;break}if(F>>>0<0|(F|0)==0&H>>>0<32768){J=2;ie=388;break v}if(F>>>0<0|(F|0)==0&H>>>0<8388608){J=3;ie=388;break v}if(F>>>0<0|(F|0)==0&H>>>0<2147483648){J=4;ie=388;break v}J=F>>>0<32768|(F|0)==32768&H>>>0<0?5:6;ie=388;break v}while(0);c[(w&p)+28>>2]=J;if(J>>>0>11){I=J;J=(J+-12|0)>>>1}else ie=391}else{J=0;ie=388}while(0);if((ie|0)==388){c[(w&p)+28>>2]=J;ie=391}if((ie|0)==391){ie=0;I=J;J=d[(J&n)+34336>>0]|0}do if(E&16384)if((L|0)==0&(K|0)==0){E=c[(w&p)>>2]|0;J=J-E|0;E=E+C|0;break}else{Rg(w)|0;E=C;break}else E=C;while(0);L=jw(J|0,((J|0)<0)<<31>>31|0,L|0,K|0)|0;K=G;if(I>>>0<128)J=1;else{H=0;J=0;do{J=J+1|0;I=mw(I|0,H|0,7)|0;H=G}while(((I|0)!=0|(H|0)!=0)&(J|0)<9)}J=J+O|0;w=w+-40|0;if(w>>>0>>0){F=J;P=E;break}else{O=J;C=E}}if((F|0)<127)I=F+1|0;else{I=F;H=((F|0)<0)<<31>>31;J=0;do{J=J+1|0;I=mw(I|0,H|0,7)|0;H=G}while(((I|0)!=0|(H|0)!=0)&(J|0)<9);F=J+F|0;I=F;H=((F|0)<0)<<31>>31;C=0;do{C=C+1|0;I=mw(I|0,H|0,7)|0;H=G}while(((I|0)!=0|(H|0)!=0)&(C|0)<9);I=((J|0)<(C|0)&1)+F|0}J=((I|0)<0)<<31>>31;E=jw(I|0,J|0,L|0,K|0)|0;N=G;S=c[(zb&p)>>2]|0;O=((S|0)<0)<<31>>31;if((N|0)>(O|0)|(N|0)==(O|0)&E>>>0>S>>>0){u=x;ie=1316;break c}if(fh(u,E)|0){y=ge;z=je;r=m;m=x;ie=1317;break a}A=c[(z+(T*40|0)&p)+16>>2]|0;if(I>>>0<128){a[(A&n)>>0]=I;K=1;L=V}else{K=(pm(A,I,J)|0)&255;L=V}while(1){H=c[(L&p)+28>>2]|0;if(H>>>0<128){a[(A+K&n)>>0]=H;J=1}else J=(pm(A+K|0,H,0)|0)&255;K=J+K|0;J=A+I|0;if(!(H>>>0<8&(H|0)!=0))if(H>>>0>11){C=c[(L&p)+12>>2]|0;kw(J|0,c[(L&p)+16>>2]|0,C|0)|0}else C=0;else{J=L;if(H>>>0>11)C=(H+-12|0)>>>1;else C=d[(H&n)+34336>>0]|0;F=c[(J&p)>>2]|0;J=c[(J&p)+4>>2]|0;H=C;while(1){H=H+-1|0;a[(A+H+I&n)>>0]=F;F=mw(F|0,J|0,8)|0;if(!H)break;else J=G}}L=L+40|0;if(L>>>0>U>>>0)break;else I=C+I|0}c[(z+(T*40|0)&p)+12>>2]=E;r=z+(T*40|0)+8|0;b[(r&o)>>1]=16;if(P){c[(u&p)>>2]=P;b[(r&o)>>1]=16400}a[(z+(T*40|0)&n)+10>>0]=1;S=z;T=s;U=W;V=X;r=t;break}case 446:{ie=0;if((c[(ae&p)>>2]|0)>0){u=x;ie=447;break c}if(!v)w=0;else{t=v;while(1)if(!(a[(t&n)>>0]|0))break;else t=t+1|0;w=t-v&1073741823}u=sm(le,0,(c[(Ob&p)>>2]|0)+(c[(Nb&p)>>2]|0)|0)|0;if(u){t=r;ie=1318;break c}t=mh(le,w+33|0,0)|0;if(!t){S=z;T=s;U=W;V=X;u=L}else{V=t+32|0;c[(t&p)>>2]=V;kw(V|0,v|0,w+1|0)|0;if(!(a[(ee&n)>>0]|0))c[(Ob&p)>>2]=(c[(Ob&p)>>2]|0)+1;else{a[(ee&n)>>0]=0;a[(Sb&n)>>0]=1}c[(t&p)+24>>2]=c[(Pb&p)>>2];c[(Pb&p)>>2]=t;S=Qb;T=c[(S&p)+4>>2]|0;U=t+8|0;c[(U&p)>>2]=c[(S&p)>>2];c[(U&p)+4>>2]=T;U=Rb;T=c[(U&p)+4>>2]|0;S=t+16|0;c[(S&p)>>2]=c[(U&p)>>2];c[(S&p)+4>>2]=T;S=z;T=s;U=W;V=X;u=L}break}case 486:{c[(Ob&p)>>2]=(c[(Ob&p)>>2]|0)+-1;ie=488;break}case 525:{ie=0;wm(c[((c[(Xd&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<4)&p)+4>>2]|0,c[(s+(r*20|0)&p)+12>>2]|0,Yc);T=c[(Yc&p)>>2]|0;S=u;c[(S&p)>>2]=T;c[(S&p)+4>>2]=((T|0)<0)<<31>>31;S=z;T=s;U=W;V=X;break}case 558:{ie=0;v=xm(f,c[(s+(t*20|0)&p)+4>>2]|0,c[(s+(t*20|0)&p)+8>>2]|0,-1,1)|0;if(!v){y=ge;z=je;r=m;m=x;ie=1317;break a}r=c[(s+(t*20|0)&p)+16>>2]|0;C=v+8|0;c[(C&p)>>2]=r;A=c[(s+(t*20|0)&p)+12>>2]|0;r=e[(r&o)+6>>1]<<2;u=r+148|0;w=mh(le,u,0)|0;if(!w){s=v;u=x;ie=560;break c}fw(w|0,0,u|0)|0;c[(v&p)+56>>2]=w;V=w+128|0;c[(w&p)+28>>2]=V;kw(V|0,c[(C&p)>>2]|0,r+20|0)|0;c[(w&p)+140>>2]=0;if(A)b[(w&o)+134>>1]=A;r=c[(Xd&p)>>2]|0;u=c[((c[((c[(r&p)+4>>2]|0)&p)+4>>2]|0)&p)+32>>2]|0;c[(w&p)+12>>2]=u;a[(w&n)+59>>0]=1;a[(w&n)+57>>0]=0;c[(w&p)+24>>2]=le;c[(w&p)+72>>2]=w;if(((a[(_b&n)>>0]|0)!=2?(Dc=c[2242]|0,c[(w&p)>>2]=ca(Dc,u)|0,V=c[((c[(r&p)+12>>2]|0)&p)+80>>2]|0,V=(V|0)<(Dc|0)?Dc:V,Dc=((u|0)<0)<<31>>31,V=sw(V|0,((V|0)<0)<<31>>31|0,u|0,Dc|0)|0,U=G,c[(w&p)+4>>2]=(U|0)<0|(U|0)==0&V>>>0<536870912?V:536870912,(c[2234]|0)==0):0)?(c[(w&p)+52>>2]=u,V=qg(u,Dc)|0,c[(w&p)+40>>2]=V,(V|0)==0):0){s=7;u=x;ie=1309;break c}else{S=z;T=s;U=W;V=X;u=L;r=t}break}case 566:{ie=0;T=(c[((c[(Ib&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<2)&p)>>2]|0)+40|0;V=T;U=c[(V&p)>>2]|0;V=c[(V&p)+4>>2]|0;S=jw(U|0,V|0,1,0)|0;c[(T&p)>>2]=S;c[(T&p)+4>>2]=G;if((U|0)==0&(V|0)==0){S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0}else{S=z;T=s;U=W;V=X}break}case 568:{ie=0;r=xm(f,c[(s+(t*20|0)&p)+4>>2]|0,c[(s+(t*20|0)&p)+12>>2]|0,-1,0)|0;if(!r){y=ge;z=je;r=m;m=x;ie=1317;break a}a[(r&n)+25>>0]=1;c[(r&p)+16>>2]=c[(s+(t*20|0)&p)+8>>2];S=r+27|0;a[(S&n)>>0]=a[(S&n)>>0]|4;S=z;T=s;U=W;V=X;r=t;break}case 570:{ie=0;S=s+(r*20|0)+4|0;Bm(f,c[((c[(Ib&p)>>2]|0)+(c[(S&p)>>2]<<2)&p)>>2]|0);c[((c[(Ib&p)>>2]|0)+(c[(S&p)>>2]<<2)&p)>>2]=0;S=z;T=s;U=W;V=X;break}case 571:{ie=0;H=c[((c[(Ib&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<2)&p)>>2]|0;a[(H&n)+25>>0]=0;if(!(a[(H&n)+27>>0]&4)){V=c[(s+(r*20|0)&p)+16>>2]|0;c[(wd&p)>>2]=c[(H&p)+8>>2];b[($b&o)>>1]=V;a[(cc&n)>>0]=(K<<1&2^2)+255;V=c[(s+(r*20|0)&p)+12>>2]|0;t=z+(V*40|0)|0;c[(dc&p)>>2]=t;if(b[(z+(V*40|0)&o)+8>>1]&16384)Rg(t)|0;u=Cm(c[(H&p)>>2]|0,wd,0,0,0,Ad)|0;if(!u){u=K;J=L}else{t=r;ie=1318;break c}}else{C=c[(s+(r*20|0)&p)+12>>2]|0;A=z+(C*40|0)|0;C=z+(C*40|0)+8|0;if((b[(C&o)>>1]&14)==2)rh(A,0);J=Vg(A)|0;I=G;C=e[(C&o)>>1]|0;do if(!(C&4)){if(!(C&8)){S=z;T=s;U=W;V=X;u=L;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0;break q}B=+h[(A&q)>>3];D=+(J>>>0)+4294967296.0*+(I|0);if(B>31)+K|0;break}else{C=(B>D&(K&1|0)==0&1)+K|0;break}}else C=K;while(0);u=Cm(c[(H&p)>>2]|0,0,J,I,0,Ad)|0;V=H+48|0;c[(V&p)>>2]=J;c[(V&p)+4>>2]=I;if(!u){u=C;J=L}else{t=r;ie=1318;break c}}a[(H&n)+26>>0]=0;c[(H&p)+60>>2]=0;t=c[(Ad&p)>>2]|0;do if((u|0)>63){if((t|0)>=0?!((t|0)==0&(u|0)==65):0){c[(Ad&p)>>2]=0;S=z;T=s;U=W;V=X;u=J;break q}c[(Ad&p)>>2]=0;u=Dm(c[(H&p)>>2]|0,Ad)|0;if(!u)ie=593;else{t=r;ie=1318;break c}}else{if((t|0)<=0?!((t|0)==0&(u|0)==62):0){t=(a[((c[(H&p)>>2]|0)&n)+73>>0]|0)!=1&1;c[(Ad&p)>>2]=t;break}c[(Ad&p)>>2]=0;u=Em(c[(H&p)>>2]|0,Ad)|0;if(!u)ie=593;else{t=r;ie=1318;break c}}while(0);if((ie|0)==593){ie=0;t=c[(Ad&p)>>2]|0}if(!t){S=z;T=s;U=W;V=X;u=J}else{S=z;T=s;U=W;V=X;u=J;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0}break}case 596:{ie=0;S=c[((c[(Ib&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<2)&p)>>2]|0;a[(S&n)+25>>0]=0;U=Vg(z+((c[(s+(r*20|0)&p)+8>>2]|0)*40|0)|0)|0;T=S+48|0;c[(T&p)>>2]=U;c[(T&p)+4>>2]=G;a[(S&n)+26>>0]=1;S=z;T=s;U=W;V=X;break}case 597:{ie=0;I=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;r=c[(s+(t*20|0)&p)+12>>2]|0;J=z+(r*40|0)|0;c[(od&p)>>2]=0;K=s+(t*20|0)+16|0;C=c[(K&p)>>2]|0;v=I+8|0;A=c[(v&p)>>2]|0;w:do if((C|0)>0){c[(xd&p)>>2]=A;C=C&65535;b[(ec&o)>>1]=C;c[(fc&p)>>2]=J;if(!(C<<16>>16))v=xd;else{r=J;A=0;while(1){if(b[(r+(A*40|0)&o)+8>>1]&16384){Rg(r+(A*40|0)|0)|0;C=b[(ec&o)>>1]|0}A=A+1|0;if((A|0)>=(C&65535|0)){v=xd;break w}r=c[(fc&p)>>2]|0}}}else{C=Fm(A,Sc,191,od)|0;if(!C){y=ge;z=je;r=m;m=x;ie=1317;break a}if(b[(z+(r*40|0)&o)+8>>1]&16384)Rg(J)|0;Gm(c[(v&p)>>2]|0,c[(z+(r*40|0)&p)+12>>2]|0,c[(z+(r*40|0)&p)+16>>2]|0,C);v=C}while(0);a[(v&n)+6>>0]=0;x:do if((a[(H&n)>>0]|0)==67?(Ec=b[(v&o)+4>>1]|0,Ec<<16>>16!=0):0){C=c[(v&p)+8>>2]|0;A=0;while(1){if(b[(C+(A*40|0)&o)+8>>1]&1)break;A=A+1|0;if((A|0)>=(Ec&65535|0)){L=t;r=t;break x}}L=t;r=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0}else{L=t;r=t}while(0);C=Cm(c[(I&p)>>2]|0,v,0,0,0,Bd)|0;if(!(c[(K&p)>>2]|0))mg(le,c[(od&p)>>2]|0);if(C){t=r;s=C;u=x;ie=1309;break c}t=c[(Bd&p)>>2]|0;c[(I&p)+12>>2]=t;t=(t|0)==0;a[(I&n)+25>>0]=t&1^1;a[(I&n)+26>>0]=0;c[(I&p)+60>>2]=0;if((a[(H&n)>>0]|0)==69){if(!t){S=z;T=s;U=W;V=X;break}S=z;T=s;U=W;V=X;r=(c[(s+(L*20|0)&p)+8>>2]|0)+-1|0;break}else{if(t){S=z;T=s;U=W;V=X;break}S=z;T=s;U=W;V=X;r=(c[(s+(L*20|0)&p)+8>>2]|0)+-1|0;break}}case 624:{ie=0;S=(c[((c[(Ib&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<2)&p)>>2]|0)+40|0;T=S;U=c[(T&p)>>2]|0;T=c[(T&p)+4>>2]|0;V=jw(U|0,T|0,1,0)|0;c[(S&p)>>2]=V;c[(S&p)+4>>2]=G;S=u;c[(S&p)>>2]=U;c[(S&p)+4>>2]=T;S=z;T=s;U=W;V=X;break}case 647:{ie=0;I=c[(s+(r*20|0)&p)+8>>2]|0;v=c[((c[(Ib&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<2)&p)>>2]|0;t=c[(s+(r*20|0)&p)+12>>2]|0;if(C<<24>>24==75){F=z+(t*40|0)|0;E=c[(F&p)>>2]|0;F=c[(F&p)+4>>2]|0}else{E=t;F=((t|0)<0)<<31>>31}H=s+(r*20|0)+3|0;J=a[(H&n)>>0]|0;if(J&1)c[(ub&p)>>2]=(c[(ub&p)>>2]|0)+1;if(J&2){m=ne;c[(m&p)>>2]=E;c[(m&p)+4>>2]=F;m=E;l=F}C=b[(z+(I*40|0)&o)+8>>1]|0;if(C&1){c[(z+(I*40|0)&p)+16>>2]=0;c[(z+(I*40|0)&p)+12>>2]=0}if(!(J&16))A=0;else A=c[(v&p)+12>>2]|0;if(!(C&16384))C=0;else C=c[(z+(I*40|0)&p)>>2]|0;C=Im(c[(v&p)>>2]|0,0,E,F,c[(z+(I*40|0)&p)+16>>2]|0,c[(z+(I*40|0)&p)+12>>2]|0,C,(J&255)>>>3&1,A)|0;a[(v&n)+26>>0]=0;c[(v&p)+60>>2]=0;if(C){t=r;s=C;u=x;ie=1309;break c}t=c[(gc&p)>>2]|0;if((t|0)!=0?(Fc=c[(s+(r*20|0)&p)+16>>2]|0,(Fc|0)!=0):0){bc[t&1](c[(hc&p)>>2]|0,(a[(H&n)>>0]&4)!=0?23:18,c[((c[(Xd&p)>>2]|0)+(a[(v&n)+24>>0]<<4)&p)>>2]|0,Fc,E,F);S=z;T=s;U=W;V=X}else{S=z;T=s;U=W;V=X}break}case 671:{ie=0;S=c[(ub&p)>>2]|0;c[(vb&p)>>2]=S;c[(wb&p)>>2]=(c[(wb&p)>>2]|0)+S;c[(ub&p)>>2]=0;S=z;T=s;U=W;V=X;break}case 672:{ie=0;J=c[((c[(Ib&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<2)&p)>>2]|0;I=c[(s+(r*20|0)&p)+12>>2]|0;H=c[(s+(r*20|0)&p)+16>>2]|0;t=c[(J&p)+56>>2]|0;A=t+32|0;C=c[(A&p)>>2]|0;J=c[(J&p)+8>>2]|0;if(!C){C=Fm(J,0,0,md)|0;c[(A&p)>>2]=C;if(!C){t=r;s=7;u=x;ie=1309;break c}b[(C&o)+4>>1]=H}if(!(a[(t&n)+56>>0]|0)){t=c[(t&p)+36>>2]|0;A=t;t=t+8|0}else{V=c[(t&p)+20>>2]|0;t=c[((c[(V&p)+8>>2]|0)&p)+4>>2]|0;V=c[(V&p)+12>>2]|0;A=V+(t*56|0)+20|0;t=c[(V+(t*56|0)&p)+32>>2]|0}Gm(J,c[(A&p)>>2]|0,t,C);y:do if((H|0)>0){t=c[(C&p)+8>>2]|0;v=0;while(1){if(b[(t+(v*40|0)&o)+8>>1]&1)break y;v=v+1|0;if((v|0)>=(H|0)){ie=682;break}}}else ie=682;while(0);if((ie|0)==682){ie=0;if(!(Km(c[(z+(I*40|0)&p)+12>>2]|0,c[(z+(I*40|0)&p)+16>>2]|0,C,0)|0)){S=z;T=s;U=W;V=X;break}}S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0;break}case 700:{ie=0;b[(u&o)+8>>1]=1;S=z;T=s;U=W;V=X;break}case 708:{ie=0;b[(u&o)+8>>1]=1;S=z;T=s;U=W;V=X;break}case 711:{ie=0;t=c[((c[(Ib&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<2)&p)>>2]|0;a[(t&n)+25>>0]=1;c[(t&p)+60>>2]=0;t=c[(t&p)>>2]|0;if(!t){S=z;T=s;U=W;V=X}else{S=t+56|0;Wc(c[(S&p)>>2]|0);c[(S&p)>>2]=0;a[(t&n)+73>>0]=0;S=z;T=s;U=W;V=X}break}case 801:{ie=0;t=c[((c[(Ib&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<2)&p)>>2]|0;u=c[(t&p)>>2]|0;K=L+8|0;b[(K&o)>>1]=1;if((a[(u&n)+73>>0]|0)!=1?(Vd=jm(t)|0,(Vd|0)!=0):0){t=r;u=Vd;ie=1318;break c}if(!(a[(t&n)+25>>0]|0)){V=Sd;c[(V&p)>>2]=0;c[(V&p)+4>>2]=0;km(u,Sd);b[(qc&o)>>1]=0;c[(sc&p)>>2]=le;c[(uc&p)>>2]=0;u=nm(u,0,c[(Sd&p)>>2]|0,1,$c)|0;do if(!u){t=c[(vc&p)>>2]|0;u=a[(t&n)>>0]|0;if(u<<24>>24>-1){C=u&255;c[(qd&p)>>2]=C}else{mm(t,qd)|0;C=c[(qd&p)>>2]|0}if(!(C>>>0<3?1:(C|0)>(c[(wc&p)>>2]|0))){t=(c[(vc&p)>>2]|0)+(C+-1)|0;u=a[(t&n)>>0]|0;if(u<<24>>24>-1){u=u&255;c[(Nd&p)>>2]=u}else{mm(t,Nd)|0;u=c[(Nd&p)>>2]|0}if(!((u+-1|0)>>>0>8|(u|0)==7)){if(u>>>0>11)t=(u+-12|0)>>>1;else t=d[(u&n)+34336>>0]|0;v=c[(wc&p)>>2]|0;if(v>>>0>=(t+C|0)>>>0){om((c[(vc&p)>>2]|0)+(v-t)|0,u,Qd)|0;v=Qd;t=c[(v&p)>>2]|0;v=c[(v&p)+4>>2]|0;if((b[(qc&o)>>1]&9312)==0&(c[(uc&p)>>2]|0)==0){u=0;break}Qg($c);u=0;break}}}if(!((b[(qc&o)>>1]&9312)==0&(c[(uc&p)>>2]|0)==0))Qg($c);c[(ke&p)>>2]=68698;c[(ke&p)+4>>2]=10788;bd(11,13600,ke);u=11;t=0;v=0}else{t=0;v=0}while(0);if(u){t=r;ie=1318;break c}S=L;c[(S&p)>>2]=t;c[(S&p)+4>>2]=v;b[(K&o)>>1]=4;S=z;T=s;U=W;V=X;u=L}else{S=z;T=s;U=W;V=X;u=L}break}case 865:{ie=0;w=c[(C&p)>>2]|0;C=c[((c[(Xd&p)>>2]|0)+(K<<4)&p)+12>>2]|0;t=c[(C&p)+16>>2]|0;if(t)do{v=(c[(t&p)+8>>2]|0)+32|0;if((c[(v&p)>>2]|0)==(A|0))c[(v&p)>>2]=w;t=c[(t&p)>>2]|0}while((t|0)!=0);t=c[(C&p)+32>>2]|0;if(t)do{v=(c[(t&p)+8>>2]|0)+40|0;if((c[(v&p)>>2]|0)==(A|0))c[(v&p)>>2]=w;t=c[(t&p)>>2]|0}while((t|0)!=0);S=z;T=s;U=W;V=X;x=K+1&255;break}case 878:{ie=0;_m(le,u);S=z;T=s;U=W;V=X;u=J;break}case 881:{ie=0;V=c[(s+(r*20|0)&p)+4>>2]|0;c[(Zc&p)>>2]=le;c[(ia&p)>>2]=V;c[(ja&p)>>2]=je;u=c[(s+(r*20|0)&p)+16>>2]|0;c[(ke&p)>>2]=c[((c[(Xd&p)>>2]|0)+(V<<4)&p)>>2];c[(ke&p)+4>>2]=(V|0)==1?13184:13208;c[(ke&p)+8>>2]=u;u=uh(le,42048,ke)|0;if(!u){t=r;u=x;ie=882;break c}a[(ka&n)>>0]=1;c[(la&p)>>2]=0;t=Qe(le,u,22,Zc,0)|0;t=(t|0)==0?c[(la&p)>>2]|0:t;mg(le,u);a[(ka&n)>>0]=0;if(!t){S=z;T=s;U=W;V=X;u=J}else{s=t;t=r;u=x;ie=884;break c}break}case 886:{ie=0;kg(le,Ik((c[((c[(Xd&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<4)&p)+12>>2]|0)+8|0,c[(s+(r*20|0)&p)+16>>2]|0,0)|0);c[(Tb&p)>>2]=c[(Tb&p)>>2]|2;S=z;T=s;U=W;V=X;break}case 887:{ie=0;C=Ik((c[((c[(Xd&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<4)&p)+12>>2]|0)+24|0,c[(s+(r*20|0)&p)+16>>2]|0,0)|0;if(C){t=(c[(C&p)+12>>2]|0)+8|0;u=c[(t&p)>>2]|0;z:do if((u|0)==(C|0))c[(t&p)>>2]=c[(C&p)+20>>2];else{do{if(!u)break z;t=u+20|0;u=c[(t&p)>>2]|0}while((u|0)!=(C|0));c[(t&p)>>2]=c[(C&p)+20>>2]}while(0);Jk(le,C)}c[(Tb&p)>>2]=c[(Tb&p)>>2]|2;S=z;T=s;U=W;V=X;u=J;break}case 895:{ie=0;C=Ik((c[((c[(Xd&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<4)&p)+12>>2]|0)+40|0,c[(s+(r*20|0)&p)+16>>2]|0,0)|0;if(!C){S=z;T=s;U=W;V=X}else{t=c[(C&p)+20>>2]|0;if((t|0)==(c[(C&p)+24>>2]|0)){t=bn(t+8|0,c[(C&p)+4>>2]|0,ke)|0;if(!t)t=0;else t=c[(t&p)+8>>2]|0;v=t+64|0;while(1){V=c[(v&p)>>2]|0;t=V+32|0;if((V|0)==(C|0))break;else v=t}c[(v&p)>>2]=c[(t&p)>>2]}jg(le,C);c[(Tb&p)>>2]=c[(Tb&p)>>2]|2;S=z;T=s;U=W;V=X}break}case 903:{ie=0;L=c[(s+(t*20|0)&p)+8>>2]|0;v=mh(le,(L<<2)+4|0,0)|0;if(!v){y=ge;z=je;r=m;m=x;ie=1317;break a}A=c[(s+(t*20|0)&p)+12>>2]|0;r=c[(s+(t*20|0)&p)+4>>2]|0;M=z+(r*40|0)|0;if((L|0)>0){C=0;do{V=Vg(z+((C+r|0)*40|0)|0)|0;c[(v+(C<<2)&p)>>2]=V;C=C+1|0}while((C|0)!=(L|0));C=L}else C=0;c[(v+(C<<2)&p)>>2]=0;I=c[((c[(Xd&p)>>2]|0)+(d[(s+(t*20|0)&n)+3>>0]<<4)&p)+4>>2]|0;P=z+(A*40|0)|0;V=c[(P&p)>>2]|0;O=c[(I&p)+4>>2]|0;c[(O&p)+4>>2]=c[(I&p)>>2];I=c[(O&p)>>2]|0;w=c[((c[(I&p)+204>>2]|0)&p)+12>>2]|0;c[(Sd&p)>>2]=O;c[(ma&p)>>2]=I;I=c[(O&p)+44>>2]|0;c[(na&p)>>2]=I;c[(oa&p)>>2]=V;c[(pa&p)>>2]=0;c[(pa&p)+4>>2]=0;c[(pa&p)+8>>2]=0;c[(pa&p)+12>>2]=0;c[(pa&p)+16>>2]=0;do if(!I){A=0;C=0}else{J=(I>>>3)+1|0;H=qg(J,0)|0;if(!H){c[(sa&p)>>2]=0;A=0;C=1;break}fw(H|0,0,J|0)|0;c[(sa&p)>>2]=H;N=O+32|0;J=(((c[2514]|0)>>>0)/((c[(N&p)>>2]|0)>>>0)|0)+1|0;if(J>>>0<=I>>>0){V=H+(J>>>3)|0;a[(V&n)>>0]=d[(V&n)>>0]|1<<(J&7)}c[(ua&p)>>2]=Nd;c[(va&p)>>2]=Nd;c[(ta&p)>>2]=0;c[(wa&p)>>2]=0;c[(xa&p)>>2]=100;c[(ya&p)>>2]=1e9;a[(Aa&n)>>0]=0;a[(za&n)>>0]=2;c[(ra&p)>>2]=43592;C=c[((c[(O&p)+12>>2]|0)&p)+56>>2]|0;cn(Sd,1,d[(C&n)+33>>0]<<16|d[(C&n)+32>>0]<<24|d[(C&n)+34>>0]<<8|d[(C&n)+35>>0],d[(C&n)+37>>0]<<16|d[(C&n)+36>>0]<<24|d[(C&n)+38>>0]<<8|d[(C&n)+39>>0]);c[(ra&p)>>2]=0;C=c[(oa&p)>>2]|0;if(!((L|0)<1|(C|0)==0)){F=O+17|0;H=0;do{I=v+(H<<2)|0;J=c[(I&p)>>2]|0;if(J){if((a[(F&n)>>0]|0)!=0&(J|0)>1){dn(Sd,J,1,0);J=c[(I&p)>>2]|0}c[(ra&p)>>2]=43608;en(Sd,J,0,0)|0;c[(ra&p)>>2]=0;C=c[(oa&p)>>2]|0}H=H+1|0}while(!((H|0)>=(L|0)|(C|0)==0))}if(!((c[(na&p)>>2]|0)==0|(C|0)==0)){E=O+17|0;C=O+36|0;L=1;do{H=L>>>3;J=a[((c[(sa&p)>>2]|0)+H&n)>>0]|0;F=1<<(L&7);do if(!(J&255&F)){if(L>>>0<2)I=0;else{I=L+-2|0;I=I-((I>>>0)%(((((c[(C&p)>>2]|0)>>>0)/5|0)+1|0)>>>0)|0)|0;I=((I+1|0)==(((c[2514]|0)>>>0)/((c[(N&p)>>2]|0)>>>0)|0|0)?3:2)+I|0}if((I|0)==(L|0)?(a[(E&n)>>0]|0)!=0:0)break;c[(ke&p)>>2]=L;fn(Sd,43632,ke);J=a[((c[(sa&p)>>2]|0)+H&n)>>0]|0}while(0);do if(J&255&F){if(L>>>0<2)J=0;else{J=L+-2|0;J=J-((J>>>0)%(((((c[(C&p)>>2]|0)>>>0)/5|0)+1|0)>>>0)|0)|0;J=((J+1|0)==(((c[2514]|0)>>>0)/((c[(N&p)>>2]|0)>>>0)|0|0)?3:2)+J|0}if((J|0)!=(L|0))break;if(!(a[(E&n)>>0]|0))break;c[(ke&p)>>2]=L;fn(Sd,43656,ke)}while(0);L=L+1|0}while(!((c[(oa&p)>>2]|0)==0?1:L>>>0>(c[(na&p)>>2]|0)>>>0))}C=c[((c[((c[(O&p)>>2]|0)&p)+204>>2]|0)&p)+12>>2]|0;if((w|0)!=(C|0)){c[(ke&p)>>2]=w;c[(ke&p)+4>>2]=C;fn(Sd,43696,ke)}Wc(c[(sa&p)>>2]|0);if(c[(qa&p)>>2]|0){gn(ta);A=0;C=(c[(pa&p)>>2]|0)+1|0;break}C=c[(pa&p)>>2]|0;if(!C)gn(ta);A=tg(ta)|0}while(0);mg(le,v);U=P;U=dw(c[(U&p)>>2]|0,c[(U&p)+4>>2]|0,C|0,((C|0)<0)<<31>>31|0)|0;V=P;c[(V&p)>>2]=U;c[(V&p)+4>>2]=G;r=z+(r*40|0)+8|0;if(!(b[(r&o)>>1]&9312))b[(r&o)>>1]=1;else vg(M);if(C){if(!A){y=ge;z=je;r=m;m=x;ie=1317;break a}Xg(M,A,-1,1,1)|0}Yl(M,xb)|0;S=z;T=s;U=W;V=X;r=t;break}case 947:{ie=0;v=c[(s+(t*20|0)&p)+4>>2]|0;r=z+(v*40|0)|0;u=c[(s+(t*20|0)&p)+8>>2]|0;v=z+(v*40|0)+8|0;if((b[(v&o)>>1]&32)==0?(hn(r),(b[(v&o)>>1]&32)==0):0){y=ge;z=je;r=m;m=x;ie=1317;break a}S=z+(u*40|0)|0;jn(c[(r&p)>>2]|0,c[(S&p)>>2]|0,c[(S&p)+4>>2]|0);S=z;T=s;U=W;V=X;u=J;r=t;break}case 966:{ie=0;r=c[(s+(t*20|0)&p)+4>>2]|0;P=z+(r*40|0)|0;O=z+((c[(s+(t*20|0)&p)+12>>2]|0)*40|0)|0;N=c[(s+(t*20|0)&p)+16>>2]|0;r=z+(r*40|0)+8|0;if((b[(r&o)>>1]&32)==0?(hn(P),(b[(r&o)>>1]&32)==0):0){y=ge;z=je;r=m;m=x;ie=1317;break a}if(N){L=c[(P&p)>>2]|0;v=O;M=c[(v&p)>>2]|0;v=c[(v&p)+4>>2]|0;K=L+28|0;if((c[(K&p)>>2]|0)!=(N|0)){C=L+8|0;J=c[(C&p)>>2]|0;if(J){I=L+20|0;A=L+26|0;if(!(b[(A&o)>>1]&1))J=kn(J)|0;H=c[(I&p)>>2]|0;A:do if(!H){ld=J;rd=I;ie=978}else{while(1){I=H+12|0;F=c[(I&p)>>2]|0;if(!F)break;E=H+8|0;ln(F,ke,Sd);c[(I&p)>>2]=0;J=mn(c[(ke&p)>>2]|0,J)|0;H=c[(E&p)>>2]|0;if(!H){ld=J;rd=E;ie=978;break A}}c[(I&p)>>2]=nn(J)|0}while(0);if((ie|0)==978?(ie=0,Kc=on(L)|0,c[(rd&p)>>2]=Kc,(Kc|0)!=0):0){V=Kc;c[(V&p)>>2]=0;c[(V&p)+4>>2]=0;c[(Kc&p)+8>>2]=0;c[(Kc&p)+12>>2]=nn(ld)|0}c[(C&p)>>2]=0;c[(L&p)+12>>2]=0;b[(A&o)>>1]=e[(A&o)>>1]|1}c[(K&p)>>2]=N}C=c[(L&p)+20>>2]|0;B:do if(C){C:while(1){A=c[(C&p)+12>>2]|0;if(A)do{r=A;E=c[(r&p)>>2]|0;r=c[(r&p)+4>>2]|0;if((r|0)<(v|0)|(r|0)==(v|0)&E>>>0>>0)A=A+8|0;else{if(!((r|0)>(v|0)|(r|0)==(v|0)&E>>>0>M>>>0))break C;A=A+12|0}A=c[(A&p)>>2]|0}while((A|0)!=0);C=c[(C&p)+8>>2]|0;if(!C)break B}S=z;T=s;U=W;V=X;r=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;break q}while(0);if((N|0)>-1)C=O;else{S=z;T=s;U=W;V=X;r=t;break}}else C=O;S=C;jn(c[(P&p)>>2]|0,c[(S&p)>>2]|0,c[(S&p)+4>>2]|0);S=z;T=s;U=W;V=X;r=t;break}case 993:{ie=0;K=c[(s+(r*20|0)&p)+16>>2]|0;I=c[(s+(r*20|0)&p)+12>>2]|0;L=z+(I*40|0)|0;if((a[(s+(r*20|0)&n)+3>>0]|0)!=0?(Lc=c[(K&p)+20>>2]|0,nd=c[(sb&p)>>2]|0,(nd|0)!=0):0){t=nd;while(1){if((c[(t&p)+28>>2]|0)==(Lc|0)){S=z;T=s;U=W;V=X;break q}t=c[(t&p)+4>>2]|0;if(!t){t=r;break}}}else t=r;r=c[(tb&p)>>2]|0;if((r|0)>=(c[(Ba&p)>>2]|0)){u=x;ie=998;break c}E=z+(I*40|0)+8|0;if(!(b[(E&o)>>1]&64)){C=K+12|0;A=c[(C&p)>>2]|0;r=A+(c[(K&p)+8>>2]|0)|0;s=K+16|0;A=(A<<2)+80+(c[(s&p)>>2]|0)+(r*40|0)|0;J=mh(le,A,((A|0)<0)<<31>>31)|0;if(!J){y=ge;z=je;r=m;m=x;ie=1317;break a}fw(J|0,0,A|0)|0;if(!((b[(E&o)>>1]&9312)==0?(c[(z+(I*40|0)&p)+24>>2]|0)==0:0))Qg(L);b[(E&o)>>1]=64;c[(L&p)>>2]=J;c[(J&p)>>2]=f;c[(J&p)+60>>2]=r;c[(J&p)+64>>2]=c[(C&p)>>2];c[(J&p)+44>>2]=t;c[(J&p)+16>>2]=c[(Nc&p)>>2];c[(J&p)+52>>2]=c[(Ca&p)>>2];c[(J&p)+24>>2]=c[(Ib&p)>>2];c[(J&p)+40>>2]=c[(Da&p)>>2];c[(J&p)+8>>2]=c[(zc&p)>>2];c[(J&p)+48>>2]=c[(Ea&p)>>2];c[(J&p)+28>>2]=c[(K&p)+20>>2];c[(J&p)+20>>2]=c[(Hb&p)>>2];c[(J&p)+56>>2]=c[(Fa&p)>>2];z=J+80|0;r=z+(r*40|0)|0;if((z|0)!=(r|0))do{b[(z&o)+8>>1]=128;c[(z&p)+32>>2]=le;z=z+40|0}while((z|0)!=(r|0));r=c[(tb&p)>>2]|0;z=J}else{s=K+16|0;z=c[(L&p)>>2]|0}c[(tb&p)>>2]=r+1;c[(z&p)+4>>2]=c[(sb&p)>>2];S=z+32|0;c[(S&p)>>2]=m;c[(S&p)+4>>2]=l;c[(z&p)+68>>2]=c[(ub&p)>>2];c[(z&p)+72>>2]=c[((c[(f&p)>>2]|0)&p)+80>>2];c[(ub&p)>>2]=0;c[(sb&p)>>2]=z;S=z+40|0;c[(Nc&p)>>2]=S;U=c[(z&p)+60>>2]|0;c[(Ca&p)>>2]=U;V=c[(z&p)+64>>2]&65535;c[(Da&p)>>2]=V;U=S+((U+1|0)*40|0)|0;c[(Ib&p)>>2]=U;T=c[(K&p)>>2]|0;c[(zc&p)>>2]=T;c[(Ea&p)>>2]=c[(K&p)+4>>2];V=U+(V<<2)|0;c[(Hb&p)>>2]=V;U=c[(s&p)>>2]|0;c[(Fa&p)>>2]=U;fw(V|0,0,U|0)|0;U=W;V=X;r=-1;break}case 1009:{ie=0;S=c[(sb&p)>>2]|0;Zl(u,(c[(S&p)+16>>2]|0)+(((c[((c[(S&p)+8>>2]|0)+((c[(S&p)+44>>2]|0)*20|0)&p)+4>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]|0)|0)*40|0)|0,4096);S=z;T=s;U=W;V=X;break}case 1010:{ie=0;if(c[(Tb&p)>>2]&16777216){T=c[(s+(r*20|0)&p)+8>>2]|0;S=Rb;T=jw(c[(S&p)>>2]|0,c[(S&p)+4>>2]|0,T|0,((T|0)<0)<<31>>31|0)|0;S=Rb;c[(S&p)>>2]=T;c[(S&p)+4>>2]=G;S=z;T=s;U=W;V=X;u=J;break}t=c[(s+(r*20|0)&p)+8>>2]|0;u=((t|0)<0)<<31>>31;if(!(c[(s+(r*20|0)&p)+4>>2]|0)){T=_d;T=jw(c[(T&p)>>2]|0,c[(T&p)+4>>2]|0,t|0,u|0)|0;S=_d;c[(S&p)>>2]=T;c[(S&p)+4>>2]=G;S=z;T=s;U=W;V=X;u=J;break}else{T=Qb;T=jw(c[(T&p)>>2]|0,c[(T&p)+4>>2]|0,t|0,u|0)|0;S=Qb;c[(S&p)>>2]=T;c[(S&p)+4>>2]=G;S=z;T=s;U=W;V=X;u=J;break}}case 1015:{ie=0;if(!(c[(s+(r*20|0)&p)+4>>2]|0)){V=_d;if(!((c[(V&p)>>2]|0)==0&(c[(V&p)+4>>2]|0)==0)){S=z;T=s;U=W;V=X;break}V=Rb;if(!((c[(V&p)>>2]|0)==0&(c[(V&p)+4>>2]|0)==0)){S=z;T=s;U=W;V=X;break}S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0;break}else{V=Qb;if(!((c[(V&p)>>2]|0)==0&(c[(V&p)+4>>2]|0)==0)){S=z;T=s;U=W;V=X;break}V=Rb;if(!((c[(V&p)>>2]|0)==0&(c[(V&p)+4>>2]|0)==0)){S=z;T=s;U=W;V=X;break}S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0;break}}case 1022:{ie=0;t=c[(sb&p)>>2]|0;if(!t)v=z+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)|0;else{while(1){u=c[(t&p)+4>>2]|0;if(!u)break;else t=u}v=(c[(t&p)+16>>2]|0)+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)|0}U=Vg(v)|0;V=v;c[(V&p)>>2]=U;c[(V&p)+4>>2]=G;V=v+8|0;b[(V&o)>>1]=e[(V&o)>>1]&48640|4;V=c[(s+(r*20|0)&p)+8>>2]|0;U=z+(V*40|0)|0;t=Vg(U)|0;u=G;c[(U&p)>>2]=t;c[(U&p)+4>>2]=u;V=z+(V*40|0)+8|0;b[(V&o)>>1]=e[(V&o)>>1]&48640|4;V=v;U=c[(V&p)+4>>2]|0;if((U|0)<(u|0)|((U|0)==(u|0)?(c[(V&p)>>2]|0)>>>0>>0:0)){S=v;c[(S&p)>>2]=t;c[(S&p)+4>>2]=u;S=z;T=s;U=W;V=X;u=L}else{S=z;T=s;U=W;V=X;u=L}break}case 1028:{ie=0;V=z+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)|0;U=c[(V&p)+4>>2]|0;if((U|0)>0|(U|0)==0&(c[(V&p)>>2]|0)>>>0>0){S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0}else{S=z;T=s;U=W;V=X}break}case 1030:{ie=0;T=c[(s+(r*20|0)&p)+12>>2]|0;U=z+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)|0;V=U;T=jw(c[(V&p)>>2]|0,c[(V&p)+4>>2]|0,T|0,((T|0)<0)<<31>>31|0)|0;V=G;c[(U&p)>>2]=T;c[(U&p)+4>>2]=V;if((V|0)<0){S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0}else{S=z;T=s;U=W;V=X}break}case 1032:{ie=0;t=z+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)|0;v=t;u=c[(v&p)>>2]|0;v=c[(v&p)+4>>2]|0;if((u|0)==0&(v|0)==0){S=z;T=s;U=W;V=X;u=J}else{T=c[(s+(r*20|0)&p)+12>>2]|0;T=jw(T|0,((T|0)<0)<<31>>31|0,u|0,v|0)|0;S=t;c[(S&p)>>2]=T;c[(S&p)+4>>2]=G;S=z;T=s;U=W;V=X;u=J;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0}break}case 1034:{ie=0;T=z+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)|0;U=T;U=jw(c[(U&p)>>2]|0,c[(U&p)+4>>2]|0,-1,-1)|0;V=G;c[(T&p)>>2]=U;c[(T&p)+4>>2]=V;if((U|0)==0&(V|0)==0){S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0}else{S=z;T=s;U=W;V=X}break}case 1036:{ie=0;T=z+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)|0;V=T;U=c[(V&p)>>2]|0;V=c[(V&p)+4>>2]|0;S=jw(U|0,V|0,1,0)|0;c[(T&p)>>2]=S;c[(T&p)+4>>2]=G;if((U|0)==0&(V|0)==0){S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0}else{S=z;T=s;U=W;V=X}break}case 1157:{ie=0;S=z;T=s;U=W;V=X;r=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;break}case 1158:{ie=0;if(c[(s+(r*20|0)&p)+4>>2]|0){b[(Yd&o)>>1]=b[(Yd&o)>>1]|8;S=z;T=s;U=W;V=X;break}t=c[(Vb&p)>>2]|0;if(!t){S=z;T=s;U=W;V=X}else{do{V=t+88|0;b[(V&o)>>1]=b[(V&o)>>1]|8;t=c[(t&p)+52>>2]|0}while((t|0)!=0);S=z;T=s;U=W;V=X}break}case 1166:{ie=0;J=(c[(w&p)>>2]|0)+72|0;t=c[(J&p)>>2]|0;D:do if(t){while(1){if((c[(t&p)+4>>2]|0)==(A|0)?(c[(t&p)>>2]|0)==(C|0):0)break;t=c[(t&p)+12>>2]|0;if(!t){ie=1171;break D}}if(!t)ie=1171}else ie=1171;while(0);if((ie|0)==1171){ie=0;t=qg(16,0)|0;if(!t){t=r;s=7;u=x;ie=1309;break c}U=t+0|0;V=U+12|0;do{a[(U&n)>>0]=0;U=U+1|0}while((U|0)<(V|0));c[(t&p)+4>>2]=A;c[(t&p)>>2]=C;c[(t&p)+12>>2]=c[(J&p)>>2];c[(J&p)>>2]=t}t=t+8|0;if((d[(t&n)>>0]|0)<(v&255)){a[(t&n)>>0]=v;S=z;T=s;U=W;V=X}else{S=z;T=s;U=W;V=X}break}case 1213:{ie=0;c[(sd&p)>>2]=0;v=c[((c[(s+(r*20|0)&p)+16>>2]|0)&p)+8>>2]|0;if(!v){t=r;s=6;u=x;ie=1309;break c}w=c[(v&p)>>2]|0;if(!w){t=r;s=6;u=x;ie=1309;break c}C=rc[c[(w&p)+24>>2]&127](v,sd)|0;Mm(f,v);if(C){t=r;s=C;u=x;ie=1309;break c}c[(c[(sd&p)>>2]&p)>>2]=v;t=xm(f,c[(s+(r*20|0)&p)+4>>2]|0,0,-1,0)|0;if(!t){a[(ge&n)>>0]=1;lc[c[(w&p)+28>>2]&127](c[(sd&p)>>2]|0)|0;S=z;T=s;U=W;V=X;break}else{c[(t&p)+32>>2]=c[(sd&p)>>2];S=v+4|0;c[(S&p)>>2]=(c[(S&p)>>2]|0)+1;S=z;T=s;U=W;V=X;break}}case 1226:{ie=0;t=z+(C*40|0)+8|0;if(!(b[(t&o)>>1]&9312)){b[(t&o)>>1]=1;S=z;T=s;U=W;V=X;break}else{vg(A);S=z;T=s;U=W;V=X;break}}case 1257:{ie=0;S=u;c[(S&p)>>2]=c[((c[((c[((c[(Xd&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<4)&p)+4>>2]|0)&p)+4>>2]|0)&p)+44>>2];c[(S&p)+4>>2]=0;S=z;T=s;U=W;V=X;break}case 1258:{ie=0;v=c[((c[(Xd&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<4)&p)+4>>2]|0;t=c[(s+(r*20|0)&p)+12>>2]|0;u=c[(v&p)+4>>2]|0;if(!t)t=0;else{V=c[(u&p)+44>>2]|0;t=V>>>0>>0?t:V}c[(u&p)+4>>2]=c[(v&p)>>2];u=(c[(u&p)>>2]|0)+156|0;if((t|0)>0)c[(u&p)>>2]=t;else t=c[(u&p)>>2]|0;S=J;c[(S&p)>>2]=t;c[(S&p)+4>>2]=((t|0)<0)<<31>>31;S=z;T=s;U=W;V=X;u=J;break}case 1264:{ie=0;r=c[(s+(t*20|0)&p)+8>>2]|0;r=(r|0)==0?t:r+-1|0;if((c[(Sa&p)>>2]|0)!=0?(b[(Yd&o)>>1]&512)==0:0){t=c[(s+(t*20|0)&p)+16>>2]|0;if(!t){t=c[(ce&p)>>2]|0;if(!t){S=z;T=s;U=W;V=X;u=L;break}}c[(Sd&p)>>2]=0;F=c[(f&p)>>2]|0;v=c[(F&p)+88>>2]|0;c[(fb&p)>>2]=Nd;c[(gb&p)>>2]=Nd;c[(hb&p)>>2]=0;c[(ib&p)>>2]=100;c[(jb&p)>>2]=v;a[(kb&n)>>0]=1;a[(lb&n)>>0]=0;c[(qd&p)>>2]=F;v=a[(t&n)>>0]|0;u=v<<24>>24==0;E:do if((c[(F&p)+160>>2]|0)>1){if(!u)while(1){u=t;do{u=u+1|0;if(v<<24>>24==10)break;v=a[(u&n)>>0]|0}while(v<<24>>24!=0);Sk(qd,42288,3);Sk(qd,t,u-t|0);v=a[(u&n)>>0]|0;if(!(v<<24>>24))break;else t=u}}else if(!u){H=F+62|0;K=1;do{F:do if(!(v<<24>>24)){A=0;u=0}else{C=t;u=0;while(1){A=Cn(C,ke)|0;if((c[(ke&p)>>2]|0)==135)break F;u=A+u|0;C=C+A|0;if(!(a[(C&n)>>0]|0)){A=0;break}}}while(0);Sk(qd,t,u);C=t+u|0;if(!A)break E;do if((a[(C&n)>>0]|0)==63)if((A|0)>1){Dn(t+(u+1)|0,Sd)|0;C=c[(Sd&p)>>2]|0;break}else{c[(Sd&p)>>2]=K;C=K;break}else{C=qh(f,C,A)|0;c[(Sd&p)>>2]=C}while(0);t=t+(u+A)|0;K=C+1|0;J=C+-1|0;I=c[(Ab&p)>>2]|0;C=I+(J*40|0)|0;A=e[(I+(J*40|0)&o)+8>>1]|0;do if(!(A&1)){if(A&4){T=C;U=c[(T&p)+4>>2]|0;V=ke;c[(V&p)>>2]=c[(T&p)>>2];c[(V&p)+4>>2]=U;En(qd,0,19920,ke);break}if(A&8){h[(k&q)>>3]=+h[(C&q)>>3];c[(ke&p)>>2]=c[(k&p)>>2];c[(ke&p)+4>>2]=c[(k&p)+4>>2];En(qd,0,20272,ke);break}if(!(A&2)){if(A&16384){c[(ke&p)>>2]=c[(C&p)>>2];En(qd,0,42304,ke);break}Sk(qd,42320,2);E=c[(I+(J*40|0)&p)+12>>2]|0;if((E|0)>0){C=I+(J*40|0)+16|0;A=0;do{c[(ke&p)>>2]=d[((c[(C&p)>>2]|0)+A&n)>>0];En(qd,0,42328,ke);A=A+1|0}while((A|0)!=(E|0))}Sk(qd,42336,1);break}else{E=a[(H&n)>>0]|0;if(E<<24>>24==1){V=c[(I+(J*40|0)&p)+16>>2]|0;c[(ke&p)>>2]=c[(I+(J*40|0)&p)+12>>2];c[(ke&p)+4>>2]=V;En(qd,0,42296,ke);break}U=Od+0|0;V=U+40|0;do{c[(U&p)>>2]=0;U=U+4|0}while((U|0)<(V|0));c[(nb&p)>>2]=F;Xg(Od,c[(I+(J*40|0)&p)+16>>2]|0,c[(I+(J*40|0)&p)+12>>2]|0,E,0)|0;V=c[(ob&p)>>2]|0;if(!((V&2|0)==0|(V&16711680|0)==65536))Bn(Od,1)|0;V=c[(qb&p)>>2]|0;c[(ke&p)>>2]=c[(pb&p)>>2];c[(ke&p)+4>>2]=V;En(qd,0,42296,ke);if((b[(ob&o)>>1]&9312)==0&(c[(rb&p)>>2]|0)==0)break;Qg(Od);break}}else Sk(qd,20304,4);while(0);v=a[(t&n)>>0]|0}while(v<<24>>24!=0)}while(0);S=tg(qd)|0;jc[c[(Sa&p)>>2]&15](c[(mb&p)>>2]|0,S);mg(le,S);S=z;T=s;U=W;V=X;u=L}else{S=z;T=s;U=W;V=X;u=L}break}}if((ie|0)==28){ie=0;z=s+(r*20|0)+4|0;t=c[(z&p)>>2]|0;if(t){y=z;ie=34;break}z=c[(sb&p)>>2]|0;if(!z){ie=30;break}c[(sb&p)>>2]=c[(z&p)+4>>2];c[(tb&p)>>2]=(c[(tb&p)>>2]|0)+-1;l=c[(ub&p)>>2]|0;c[(vb&p)>>2]=l;c[(wb&p)>>2]=(c[(wb&p)>>2]|0)+l;z=Xl(z)|0;l=ne;t=c[(zc&p)>>2]|0;if((c[(s+(r*20|0)&p)+8>>2]|0)==4)r=(c[(t+(z*20|0)&p)+8>>2]|0)+-1|0;else r=z;m=c[(l&p)>>2]|0;l=c[(l&p)+4>>2]|0;S=c[(Nc&p)>>2]|0;T=t;U=W;V=X}else if((ie|0)==488){ie=0;u=sm(le,C,A)|0;if(!u){S=z;T=s;U=W;V=X;u=E}else{t=r;ie=1318;break}}z=S;s=T;W=U;X=V;t=r+1|0}switch(ie|0){case 30:{c[(me&p)>>2]=t;a[(fe&n)>>0]=c[(s+(r*20|0)&p)+8>>2];c[(he&p)>>2]=r;ie=41;break}case 34:{c[(me&p)>>2]=t;a[(fe&n)>>0]=c[(s+(r*20|0)&p)+8>>2];c[(he&p)>>2]=r;t=a[(s+(r*20|0)&n)+3>>0]|0;if(!(t<<24>>24)){s=c[(s+(r*20|0)&p)+16>>2]|0;if(!s){s=0;ie=39}else{c[(ke&p)>>2]=s;dh(je,le,10344,ke)}}else{u=c[((t&255)+-1<<2&p)+41536>>2]|0;t=c[(s+(r*20|0)&p)+16>>2]|0;if(!t){s=u;ie=39}else{c[(ke&p)>>2]=u;c[(ke&p)+4>>2]=t;dh(je,le,41624,ke)}}if((ie|0)==39){c[(ke&p)>>2]=s;dh(je,le,41656,ke)}ie=c[(y&p)>>2]|0;qd=c[(ce&p)>>2]|0;rd=c[(je&p)>>2]|0;c[(ke&p)>>2]=r;c[(ke&p)+4>>2]=qd;c[(ke&p)+8>>2]=rd;bd(ie,41600,ke);ie=41;break}case 80:{x=c[(be&p)>>2]|0;if(!((x|0)==0|g>>>0>>0)?(lc[x&127](c[(Zd&p)>>2]|0)|0)!=0:0){r=m;s=9;m=u;ie=1311;break a}rd=_d;qd=c[(rd&p)+4>>2]|0;if((qd|0)>0|(qd|0)==0&(c[(rd&p)>>2]|0)>>>0>0){s=c[(f&p)>>2]|0;c[(me&p)>>2]=787;a[(fe&n)>>0]=2;dh(je,s,34376,ke);s=1;ie=1309;break}x=$l(f,1)|0;if(!x){c[($d&p)>>2]=(c[($d&p)>>2]|0)+2|1;y=c[(s+(t*20|0)&p)+4>>2]|0;c[(de&p)>>2]=z+(y*40|0);r=s+(t*20|0)+8|0;if((c[(r&p)>>2]|0)>0){x=0;do{v=x+y|0;w=z+(v*40|0)|0;v=z+(v*40|0)+8|0;s=b[(v&o)>>1]|0;if(s&4096){if(Vl(w)|0){y=ge;z=je;r=m;m=u;ie=1317;break a}s=b[(v&o)>>1]|0}if((s&514)==2)am(w)|0;x=x+1|0}while((x|0)<(c[(r&p)>>2]|0))}if(a[(ge&n)>>0]|0){y=ge;z=je;r=m;m=u;ie=1317;break a}c[(he&p)>>2]=t+1;r=m;m=g;g=100;break a}else{s=x;ie=1309}break}case 313:{c[(ke&p)>>2]=73058;c[(ke&p)+4>>2]=10788;bd(11,13600,ke);s=11;ie=1309;break}case 343:{c[(ke&p)>>2]=73142;c[(ke&p)+4>>2]=10788;bd(11,13600,ke);s=11;ie=1309;break}case 447:{dh(je,le,41712,ke);t=r;s=5;ie=1309;break}case 460:{c[(ke&p)>>2]=s;dh(je,le,41768,ke);s=1;ie=1309;break}case 462:{dh(je,le,41792,ke);s=5;ie=1309;break}case 467:{c[(he&p)>>2]=g;a[(ee&n)>>0]=0;c[(me&p)>>2]=5;g=5;break a}case 489:{v=c[(s+(t*20|0)&p)+4>>2]|0;s=c[(s+(t*20|0)&p)+8>>2]|0;g=(v|0)!=0;if(g){s=(s|0)!=0;if(!(s|(a[(ee&n)>>0]|0)!=0))if((c[(ae&p)>>2]|0)>0){dh(je,le,41848,ke);g=m;m=r;s=5;ie=1309;break}else s=0}else s=(s|0)!=0;if((v|0)==(d[(ee&n)>>0]|0)){if(g)g=s?41952:42e3;else g=41904;dh(je,le,g,ke);g=m;m=r;s=1;ie=1309;break}if(!s){g=tm(f,1)|0;if(g)break a;a[(ee&n)>>0]=v;if((Rl(f)|0)==5){c[(he&p)>>2]=t;a[(ee&n)>>0]=1-v;c[(me&p)>>2]=5;g=5;break a}}else{Kl(le,516);a[(ee&n)>>0]=1}Ll(le);g=(c[(me&p)>>2]|0)==0?101:1;break a}case 508:{c[(he&p)>>2]=g;c[(me&p)>>2]=5;g=5;break a}case 522:{mg(le,c[(je&p)>>2]|0);c[(je&p)>>2]=kh(le,16040)|0;s=c[(s&p)>>2]|0;if((c[(c[((c[(Xd&p)>>2]|0)+(s<<4)&p)+12>>2]&p)>>2]|0)!=(v|0))vm(le,s);b[(Yd&o)>>1]=b[(Yd&o)>>1]|8;s=17;ie=1309;break}case 542:{c[(ke&p)>>2]=73997;c[(ke&p)+4>>2]=10788;bd(11,13600,ke);u=11;x=s;ie=1318;break}case 560:{c[(s&p)+56>>2]=0;s=7;ie=1309;break}case 832:{a[(fe&n)>>0]=2;s=6;ie=1309;break}case 882:{Eg(le);y=ge;z=je;r=m;m=u;ie=1317;break a}case 884:{Eg(le);if((s|0)==7){y=ge;z=je;r=m;m=u;ie=1317;break a}else ie=1309;break}case 998:{dh(je,le,42112,ke);s=1;ie=1309;break}case 1080:{c[(ke&p)>>2]=s?42208:42216;dh(je,le,42152,ke);s=1;ie=1309;break}case 1101:{dh(je,le,42344,ke);s=1;ie=1309;break}case 1103:{dh(je,le,42384,ke);s=1;ie=1309;break}case 1145:{c[(ke&p)>>2]=56343;c[(ke&p)+4>>2]=10788;bd(11,13600,ke);s=11;ie=1309;break}case 1316:{dh(je,le,10096,ke);r=m;s=18;m=u;ie=1311;break a}}if((ie|0)==41)if((Rl(f)|0)==5){c[(me&p)>>2]=5;r=m;m=g;g=5;break a}else{r=m;m=g;g=(c[(me&p)>>2]|0)!=0?1:101;break a}else if((ie|0)==1309){r=m;t=t+1|0;m=u;ie=1311;break a}else if((ie|0)==1318){u=(a[(ge&n)>>0]|0)==0?u:7;if((u|0)==3082){r=m;s=3082;m=x;ie=1311;break a}else if((u|0)!=516){r=u&255;if(r>>>0>26|(r|0)==2)s=16328;else s=c[(r<<2&p)+15488>>2]|0}else s=16344;c[(ke&p)>>2]=s;dh(je,le,10344,ke);r=m;s=u;m=x;ie=1311;break a}}else{u=f+44|0;r=m;g=0;t=0;m=0}while(0);c[(me&p)>>2]=9;c[(ke&p)>>2]=15832;dh(u,le,10344,ke);s=9;ie=1311}while(0);if((ie|0)==1317){a[(y&n)>>0]=1;dh(z,le,15776,ke);s=7;ie=1311}if((ie|0)==1311){c[(me&p)>>2]=s;qd=c[(f&p)+168>>2]|0;rd=c[(f&p)+44>>2]|0;c[(ke&p)>>2]=t;c[(ke&p)+4>>2]=qd;c[(ke&p)+8>>2]=rd;bd(s,42256,ke);Rl(f)|0;if((s|0)==3082)a[(le&n)+65>>0]=1;if(!(m<<24>>24)){m=g;g=1}else{vm(le,(m&255)+-1|0);m=g;g=1}}rd=ne;c[(rd&p)>>2]=r;c[(rd&p)+4>>2]=l;rd=f+124|0;c[(rd&p)>>2]=(c[(rd&p)>>2]|0)+m;i=oe;return g|0} function Ev(e){e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=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=e+20|0;u=e+14|0;f=a[(u&n)>>0]|0;z=e+13|0;g=a[(z&n)>>0]|0;a:do if((f&255)>(g&255))f=0;else{B=e+4|0;C=e+16|0;v=e+8|0;w=e+12|0;x=e+24|0;y=e+28|0;i=f&255;j=c[(B&p)>>2]|0;h=c[(D&p)>>2]|0;b:while(1){t=c[(e+(i+-2<<2)&p)+24>>2]|0;s=c[(e+(i+-1<<2)&p)+24>>2]|0;if(j){while(1){r=j+12|0;if((h|0)<(c[(r&p)>>2]|0)){g=h;f=(c[(j&p)+20>>2]|0)+(h*48|0)|0;while(1){do if((c[(f&p)+8>>2]|0)==(t|0)?(c[(f&p)+12>>2]|0)==(s|0):0){if((d[(u&n)>>0]|0)>=3?(c[((c[(f&p)>>2]|0)&p)+4>>2]&1|0)!=0:0)break;q=f+18|0;h=b[(q&o)>>1]|0;if((h&1024)!=0?(A=a[(z&n)>>0]|0,(A&255)<22):0){i=c[((c[(f&p)>>2]|0)&p)+16>>2]|0;c:do if(!i)i=0;else while(1){k=c[(i&p)+4>>2]|0;if(!(k&4096))break c;if(!(k&262144))i=i+12|0;else i=c[((c[(i&p)+20>>2]|0)&p)+4>>2]|0;i=c[(i&p)>>2]|0;if(!i){i=0;break}}while(0);d:do if(!(A<<24>>24)){m=0;k=0}else{l=c[(i&p)+28>>2]|0;m=i+32|0;k=0;while(1){if((c[(e+(k<<2)&p)+24>>2]|0)==(l|0)?(c[(e+((k|1)<<2)&p)+24>>2]|0)==(b[(m&o)>>1]|0):0){m=A;break d}k=k+2|0;if((k|0)>=(A&255|0)){m=A;break}}}while(0);if((k|0)==(m&255|0)){c[(e+(k<<2)&p)+24>>2]=c[(i&p)+28>>2];c[(e+((k|1)<<2)&p)+24>>2]=b[(i&o)+32>>1];a[(z&n)>>0]=(d[(z&n)>>0]|0)+2}}i=h&65535;if(i&c[(C&p)>>2]){if((c[(v&p)>>2]|0)!=0&(i&128|0)==0){l=c[(c[(j&p)>>2]&p)>>2]|0;k=c[(f&p)>>2]|0;i=a[(w&n)>>0]|0;h=(nv(k)|0)<<24>>24;if((h|0)==66){if(i<<24>>24!=66)break}else if((h|0)!=65?i<<24>>24<=66:0)break;h=Ou(l,c[(k&p)+12>>2]|0,c[(k&p)+16>>2]|0)|0;if(!h)h=c[((c[(l&p)>>2]|0)&p)+8>>2]|0;if(dd(c[(h&p)>>2]|0,c[(v&p)>>2]|0)|0)break;h=b[(q&o)>>1]|0}if(!(h&2))break b;h=c[((c[(f&p)>>2]|0)&p)+16>>2]|0;if((a[(h&n)>>0]|0)!=-102)break b;if((c[(h&p)+28>>2]|0)!=(c[(x&p)>>2]|0))break b;if((b[(h&o)+32>>1]|0)!=(c[(y&p)>>2]|0))break b}}while(0);g=g+1|0;if((g|0)>=(c[(r&p)>>2]|0))break;else f=f+48|0}g=c[(B&p)>>2]|0}else g=j;j=c[(g&p)+4>>2]|0;c[(B&p)>>2]=j;if(!j)break;else h=0}f=a[(u&n)>>0]|0;g=a[(z&n)>>0]|0}j=c[(e&p)>>2]|0;c[(B&p)>>2]=j;h=(f&255)+2|0;f=h&255;a[(u&n)>>0]=f;if((f&255)>(g&255)){f=0;break a}else{i=h&255;h=0}}c[(D&p)>>2]=g+1}while(0);return f|0}function Fv(d,f){d=d|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0,m=0,q=0;g=c[(d&p)>>2]|0;l=c[(c[(g&p)>>2]&p)>>2]|0;d=c[(d&p)+16>>2]|0;a:do if(!d){g=g+16|0;i=c[(g&p)>>2]|0;k=f+36|0;if((c[(k&p)>>2]&512|0)!=0&(i|0)!=0){d=f+20|0;j=f+22|0;h=a[(f&n)+16>>0]|0;do{do if((a[(i&n)+16>>0]|0)==h<<24>>24?(c[(i&p)+36>>2]&512|0)!=0:0){if(Tv(i,f)|0){b[(d&o)>>1]=b[(i&o)+20>>1]|0;b[(j&o)>>1]=(e[(i&o)+22>>1]|0)+65535;break}if(Tv(f,i)|0){b[(d&o)>>1]=b[(i&o)+20>>1]|0;b[(j&o)>>1]=(e[(i&o)+22>>1]|0)+1}}while(0);i=c[(i&p)+52>>2]|0}while((i|0)!=0)}d=Uv(g,f)|0;if(d){g=c[(d&p)>>2]|0;b:do if(g){d=g+52|0;if(c[(d&p)>>2]|0)do{d=Uv(d,f)|0;if(!d)break b;h=c[(d&p)>>2]|0;if(!h)break b;c[(d&p)>>2]=c[(h&p)+52>>2];Ju(l,h);mg(l,h)}while((c[(d&p)>>2]|0)!=0)}else{g=mh(l,72,0)|0;c[(d&p)>>2]=g;if(!g){d=7;break a}c[(g&p)+48>>2]=g+56;b[(g&o)+40>>1]=0;b[(g&o)+44>>1]=3;c[(g&p)+36>>2]=0;c[(g&p)+52>>2]=0}while(0);Lv(l,g);do if(!(Nu(l,g,e[(f&o)+40>>1]|0)|0)){h=g+0|0;d=f+0|0;i=h+44|0;do{c[(h&p)>>2]=c[(d&p)>>2];h=h+4|0;d=d+4|0}while((h|0)<(i|0));kw(c[(g&p)+48>>2]|0,c[(f&p)+48>>2]|0,e[(g&o)+40>>1]<<2|0)|0;d=c[(k&p)>>2]|0;if(d&1024){a[(f&n)+28>>0]=0;break}if(d&16384)c[(f&p)+28>>2]=0}else{d=g+24|0;c[(d&p)>>2]=0;c[(d&p)+4>>2]=0;c[(d&p)+8>>2]=0}while(0);if(((c[(g&p)+36>>2]&1024|0)==0?(m=g+28|0,q=c[(m&p)>>2]|0,(q|0)!=0):0)?(c[(q&p)+40>>2]|0)==0:0){c[(m&p)>>2]=0;d=0}else d=0}else d=0}else{g=f;Kv(d,c[(g&p)>>2]|0,c[(g&p)+4>>2]|0,b[(f&o)+20>>1]|0,b[(f&o)+22>>1]|0);d=0}while(0);return d|0}function Gv(a,b){a=a|0;b=b|0;var c=0,e=0;c=a<<16>>16;e=b<<16>>16;do if(a<<16>>16>16)if((e|0)<=(c+49|0))if((e|0)>(c+31|0)){a=e+1&65535;break}else{a=(d[(e-c&n)+34032>>0]|0)+e&65535;break}else a=b;else if((c|0)<=(e+49|0))if((c|0)>(e+31|0)){a=c+1&65535;break}else{a=(d[(c-e&n)+34032>>0]|0)+c&65535;break}while(0);return a|0}function Hv(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0;do if(!(Cu(b,d,e)|0))f=1;else{f=a[(d&n)>>0]|0;if(f<<24>>24==71){if(Hv(b,c[(d&p)+12>>2]|0,e)|0){f=1;break}if(Hv(b,c[(d&p)+16>>2]|0,e)|0){f=1;break}if(f<<24>>24==77)g=6}else if(f<<24>>24==77)g=6;if(((g|0)==6?(Cu(c[(b&p)+12>>2]|0,c[(d&p)+12>>2]|0,e)|0)==0:0)?(f=a[(b&n)>>0]|0,!(f<<24>>24==73|f<<24>>24==76)):0){f=1;break}f=0}while(0);return f|0}function Iv(a,d,f){a=a|0;d=d|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0;x=i;i=i+16|0;if((i|0)>=(j|0))fa();w=x;u=d;v=d+8|0;g=v;t=~(c[(g&p)>>2]|c[(u&p)>>2]);u=~(c[(g&p)+4>>2]|c[(u&p)+4>>2]);g=c[(a&p)+12>>2]|0;r=a+20|0;a:do if((g|0)>0){s=d+40|0;a=d+22|0;q=d+48|0;d=0;n=c[(r&p)>>2]|0;while(1){if(b[(n&o)+20>>1]&2)break a;m=n+40|0;l=c[(m&p)>>2]|0;m=c[(m&p)+4>>2]|0;k=v;b:do if(((c[(k&p)>>2]&l|0)!=0?1:(c[(k&p)+4>>2]&m|0)!=0)&((l&t|0)==0&(m&u|0)==0)){h=b[(s&o)>>1]|0;c:do if(h<<16>>16){m=c[(q&p)>>2]|0;l=h&65535;while(1){h=l;l=l+-1|0;k=c[(m+(l<<2)&p)>>2]|0;if(k){if((k|0)==(n|0))break;k=c[(k&p)+4>>2]|0;if((k|0)>-1?((c[(r&p)>>2]|0)+(k*48|0)|0)==(n|0):0)break}if((l|0)<=0)break c}if((h|0)>=1)break b}while(0);h=b[(n&o)+16>>1]|0;if(h<<16>>16<1){b[(a&o)>>1]=(e[(a&o)>>1]|0)+(h&65535);break}b[(a&o)>>1]=(b[(a&o)>>1]|0)+-1<<16>>16;if(b[(n&o)+18>>1]&2){l=(Ms(c[((c[(n&p)>>2]|0)&p)+16>>2]|0,w)|0)!=0;m=c[(w&p)>>2]|0;m=l&(m|0)>-2&(m|0)<2?10:20;c[(w&p)>>2]=m;d=(d<<16>>16|0)<(m|0)?m&65535:d}}while(0);g=g+-1|0;if((g|0)<=0)break;else n=n+48|0}}else{a=d+22|0;d=0}while(0);d=(f<<16>>16)-(d<<16>>16)|0;if((b[(a&o)>>1]|0)>(d|0))b[(a&o)>>1]=d;i=x;return}function Jv(d,f,g,h){d=d|0;f=f|0;g=g|0;h=h|0;var k=0,l=0,m=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,ga=0,ha=0;ha=i;i=i+112|0;if((i|0)>=(j|0))fa();R=ha;V=c[(c[(c[(d&p)>>2]&p)>>2]&p)>>2]|0;ea=c[(d&p)+12>>2]|0;if(!(a[(V&n)+65>>0]|0)){ga=ea+36|0;if(!(c[(ga&p)>>2]&32))if((c[(g&p)+40>>2]|0)<1)k=63;else k=(a[(f&n)+36>>0]&8)<<4^191;else k=24;W=g+51|0;ca=ea+24|0;l=b[((c[(g&p)+4>>2]|0)+(e[(ca&o)>>1]<<1)&o)>>1]|0;N=l<<16>>16;O=d+4|0;k=Dv(R,c[(O&p)>>2]|0,c[(f&p)+40>>2]|0,N,(a[(W&n)>>0]&4)==0?k:k&131,g)|0;X=b[(ca&o)>>1]|0;Y=ea+42|0;T=b[(Y&o)>>1]|0;Z=ea+40|0;U=b[(Z&o)>>1]|0;_=c[(ga&p)>>2]|0;Q=ea;P=c[(Q&p)>>2]|0;Q=c[(Q&p)+4>>2]|0;$=ea+22|0;aa=b[($&o)>>1]|0;b[(ea&o)+18>>1]=0;ba=g+8|0;D=b[(c[(ba&p)>>2]&o)>>1]|0;if(D<<16>>16<11)C=0;else{C=D<<16>>16;C=((fs(C,((C|0)<0)<<31>>31)|0)&65535)+65503&65535}a:do if(!k)k=0;else{E=l<<16>>16<0;F=f+16|0;G=ea+8|0;H=(U&65535)+1|0;I=ea+48|0;J=h<<16>>16==0;K=g+46|0;w=l<<16>>16>-1;x=g+50|0;y=g+44|0;z=ea+20|0;A=h<<16>>16;B=g+48|0;r=0;u=k;s=0;while(1){l=b[(u&o)+18>>1]|0;t=l&65535;if(l<<16>>16==128)if(!E?(a[((c[((c[(F&p)>>2]|0)&p)+4>>2]|0)+(N*24|0)&n)+20>>0]|0)==0:0)S=12;else{m=r;l=s;k=0}else S=12;if((S|0)==12){S=0;m=u+32|0;v=m;q=G;if(((c[(q&p)>>2]&c[(v&p)>>2]|0)==0?(c[(q&p)+4>>2]&c[(v&p)+4>>2]|0)==0:0)?(L=u+20|0,!((b[(L&o)>>1]&256)!=0&l<<16>>16==16)):0){c[(ga&p)>>2]=_;b[(ca&o)>>1]=X;b[(Z&o)>>1]=U;if(Nu(V,ea,H)|0){k=0;break a}k=b[(Z&o)>>1]|0;q=k+1<<16>>16;b[(Z&o)>>1]=q;c[((c[(I&p)>>2]|0)+((k&65535)<<2)&p)>>2]=u;k=m;l=G;m=(c[(k&p)+4>>2]|Q)&~c[(l&p)+4>>2];v=ea;c[(v&p)>>2]=(c[(k&p)>>2]|P)&~c[(l&p)>>2];c[(v&p)+4>>2]=m;b:do if(!(t&1)){if(t&2){k=c[(ga&p)>>2]|0;l=k|1;c[(ga&p)>>2]=l;do if(!E){if(!J){v=0;break b}if((e[(ca&o)>>1]|0)!=((e[(K&o)>>1]|0)+-1|0)){v=0;break b}if(!w)break;if(a[(x&n)>>0]|0)break;l=k|65537;c[(ga&p)>>2]=l;v=0;break b}while(0);l=k|4097;c[(ga&p)>>2]=l;v=0;break}if(t&128){l=c[(ga&p)>>2]|8;c[(ga&p)>>2]=l;v=0;break}k=c[(ga&p)>>2]|0;if(!(t&36)){l=k|18;c[(ga&p)>>2]=l;if(!(k&32)){v=0;r=0;s=u;break}v=0;r=c[((c[(I&p)>>2]|0)+((q&65535)+-2<<2)&p)>>2]|0;s=u;break}l=k|34;c[(ga&p)>>2]=l;if(!(b[(L&o)>>1]&256)){v=0;r=u;s=0}else{k=u+48|0;if(Nu(V,ea,(q&65535)+1|0)|0){k=0;break a}l=b[(Z&o)>>1]|0;b[(Z&o)>>1]=l+1<<16>>16;c[((c[(I&p)>>2]|0)+((l&65535)<<2)&p)>>2]=k;l=c[(ga&p)>>2]|16;c[(ga&p)>>2]=l;v=0;r=u;s=k}}else{k=c[(u&p)>>2]|0;l=c[(ga&p)>>2]|4;c[(ga&p)>>2]=l;if(!(c[(k&p)+4>>2]&2048)){k=c[(k&p)+20>>2]|0;if((k|0)!=0?(M=c[(k&p)>>2]|0,(M|0)!=0):0)v=(fs(M,((M|0)<0)<<31>>31)|0)<<16>>16;else v=0}else v=46}while(0);do if(!(l&2)){k=(b[(ca&o)>>1]|0)+1<<16>>16;b[(ca&o)>>1]=k;k=k&65535;m=b[(u&o)+16>>1]|0;if(m<<16>>16<1&w){q=(m&65535)-v+(e[($&o)>>1]|0)&65535;b[($&o)>>1]=q;break}m=c[(ba&p)>>2]|0;m=(e[($&o)>>1]|0)+((e[(m+(k<<1)&o)>>1]|0)-(e[(m+(k+-1<<1)&o)>>1]|0))|0;k=m&65535;b[($&o)>>1]=k;if(!(t&128))q=k;else{q=m+10&65535;b[($&o)>>1]=q}}else{k=b[($&o)>>1]|0;q=k<<16>>16;do if(r){m=b[(r&o)+16>>1]|0;if(m<<16>>16<1){k=(m&65535)+(k&65535)&65535;break}else{k=(k&65535)+65516&65535;break}}while(0);do if(s){m=b[(s&o)+16>>1]|0;if(m<<16>>16<1){k=(m&65535)+(k&65535)&65535;break}else{k=(k&65535)+65516&65535;break}}while(0);m=(r|0)!=0;do if(m?(b[(r&o)+16>>1]|0)>0&(s|0)!=0:0){if((b[(s&o)+16>>1]|0)<=0)break;k=(k&65535)+65516&65535}while(0);q=(((s|0)!=0)<<31>>31)+(m<<31>>31)+q|0;u=k<<16>>16<10?10:k<<16>>16;q=((u|0)<(q|0)?u:q)&65535;b[($&o)>>1]=q}while(0);k=q&65535;m=Gv(C,k+1+(((b[(y&o)>>1]|0)*15|0)/(b[((c[(F&p)>>2]|0)&o)+42>>1]|0)|0)&65535)|0;if(!(l&320))m=Gv(m,k+16&65535)|0;l=v+A|0;b[(z&o)>>1]=(m&65535)+l;b[($&o)>>1]=k+l;Iv(c[(O&p)>>2]|0,ea,D);k=Fv(d,ea)|0;v=c[(ga&p)>>2]|0;b[($&o)>>1]=(v&2|0)==0?q:aa;if((v&16|0)==0?(e[(ca&o)>>1]|0)<(e[(B&o)>>1]|0):0)Jv(d,f,g,l&65535)|0;b[($&o)>>1]=aa;m=r;l=s}else{m=r;l=s;k=0}}u=Ev(R)|0;if(!((k|0)==0&(u|0)!=0))break;else{r=m;s=l}}}while(0);l=ea;c[(l&p)>>2]=P;c[(l&p)+4>>2]=Q;b[(ca&o)>>1]=X;b[(Y&o)>>1]=T;c[(ga&p)>>2]=_;b[($&o)>>1]=aa;b[(Z&o)>>1]=U;l=X&65535;if(((X<<16>>16==T<<16>>16?(da=l+1|0,da>>>0<(e[(g&o)+46>>1]|0)>>>0):0)?(a[(W&n)>>0]&64)==0:0)?(b[((c[(ba&p)>>2]|0)+(da<<1)&o)>>1]|0)>41:0){k=Nu(V,ea,(U&65535)+1|0)|0;if(!k){b[(ca&o)>>1]=(b[(ca&o)>>1]|0)+1<<16>>16;b[(Y&o)>>1]=(b[(Y&o)>>1]|0)+1<<16>>16;k=b[(Z&o)>>1]|0;b[(Z&o)>>1]=k+1<<16>>16;c[((c[(ea&p)+48>>2]|0)+((k&65535)<<2)&p)>>2]=0;c[(ga&p)>>2]=c[(ga&p)>>2]|32768;k=c[(ba&p)>>2]|0;k=(e[(k+(l<<1)&o)>>1]|0)-(e[(k+(da<<1)&o)>>1]|0)|0;b[($&o)>>1]=(e[($&o)>>1]|0)-k;Jv(d,f,g,(((k<<16)+327680|0)>>>16)+(h&65535)&65535)|0;b[($&o)>>1]=aa;b[(ca&o)>>1]=X;b[(Y&o)>>1]=X;c[(ga&p)>>2]=_;k=0}}}else k=7;i=ha;return k|0}function Kv(a,d,e,f,g){a=a|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,i=0,j=0,k=0,l=0,m=0,n=0,q=0,r=0;l=b[(a&o)>>1]|0;h=a+8|0;a:do if(l<<16>>16){j=l;k=h;while(1){i=b[(k&o)+8>>1]|0;if(i<<16>>16>=f<<16>>16?(r=k,(c[(r&p)>>2]&d|0)==(d|0)?(c[(r&p)+4>>2]&e|0)==(e|0):0):0){n=k;q=14;break a}if(i<<16>>16<=f<<16>>16?(i=k,r=c[(i&p)>>2]|0,i=c[(i&p)+4>>2]|0,(r&d|0)==(r|0)&(i&e|0)==(i|0)):0)break a;j=j+-1<<16>>16;if(!(j<<16>>16))break;else k=k+16|0}if((l&65535)>=3){i=b[(a&o)+16>>1]|0;k=1;do{if(i<<16>>16>(b[(a+(k<<4)&o)+16>>1]|0))h=a+(k<<4)+8|0;k=k+1|0;i=b[(h&o)+8>>1]|0}while((k&65535)<(l&65535));if(i<<16>>16>f<<16>>16){n=h;q=14}}else q=9}else q=9;while(0);if((q|0)==9){n=l&65535;b[(a&o)>>1]=l+1<<16>>16;b[(a+(n<<4)&o)+18>>1]=g;n=a+(n<<4)+8|0;q=14}if((q|0)==14?(m=n,c[(m&p)>>2]=d,c[(m&p)+4>>2]=e,b[(n&o)+8>>1]=f,m=n+10|0,(b[(m&o)>>1]|0)>g<<16>>16):0)b[(m&o)>>1]=g;return}function Lv(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0;e=c[(d&p)+36>>2]|0;do if(e&17408){if((e&1024|0)!=0?(h=d+28|0,(a[(h&n)>>0]|0)!=0):0){e=d+32|0;Wc(c[(e&p)>>2]|0);a[(h&n)>>0]=0;c[(e&p)>>2]=0;break}if((e&16384|0)!=0?(f=d+28|0,g=c[(f&p)>>2]|0,(g|0)!=0):0){mg(b,c[(g&p)+16>>2]|0);mg(b,c[(f&p)>>2]|0);c[(f&p)>>2]=0}}while(0);return}function Mv(f,g,h,k,l,m,q){f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;m=m|0;q=q|0;var 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,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,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;ta=i;i=i+32|0;if((i|0)>=(j|0))fa();oa=ta;s=c[(c[(f&p)>>2]&p)>>2]|0;na=l&65535;if(l<<16>>16!=0?(b[(s&o)+60>>1]&128)!=0:0)r=0;else pa=3;a:do if((pa|0)==3){sa=c[(g&p)>>2]|0;r=sa&65535;if(r>>>0<=63){qa=iw(1,0,r|0)|0;qa=jw(qa|0,G|0,-1,-1)|0;ra=G;b:do if((qa|0)==0&(ra|0)==0){g=0;h=0;s=1}else{ha=h+24|0;ia=f+4|0;ja=(r|0)==0;ea=g+4|0;ga=(k&768)==0;da=s+8|0;W=(k&256)==0;X=f+68|0;Y=oa+20|0;Z=oa+4|0;aa=oa+24|0;ba=f+328|0;_=0;$=0;g=0;h=0;k=0;t=0;ca=0;s=1;l=0;while(1){if((ca|0)>0){U=l+8|0;V=c[(U&p)>>2]|k;t=c[(U&p)+4>>2]|t}else V=k;if((ca|0)<(na|0))l=c[((c[(ha&p)>>2]|0)+(ca<<2)&p)>>2]|0;else l=m;B=l+36|0;k=c[(B&p)>>2]|0;if(k&1024)break;U=c[((c[(ia&p)>>2]|0)+((d[(l&n)+16>>0]|0)*72|0)&p)+48>>2]|0;if(!ja){k=~V;v=~t;y=0;do{A=iw(1,0,y|0)|0;z=G;c:do if((A&g|0)==0&(z&h|0)==0){u=c[((c[(ea&p)>>2]|0)+(y*20|0)&p)>>2]|0;x=c[(u&p)+4>>2]|0;if(x&4096)do{if(!(x&262144))u=u+12|0;else u=c[((c[(u&p)+20>>2]|0)&p)+4>>2]|0;u=c[(u&p)>>2]|0;x=c[(u&p)+4>>2]|0}while((x&4096|0)!=0);if(((a[(u&n)>>0]|0)==-102?(c[(u&p)+28>>2]|0)==(U|0):0)?(ka=u+32|0,la=Fu(ba,U,b[(ka&o)>>1]|0,k,v,130,0)|0,(la|0)!=0):0){do if(b[(la&o)+18>>1]&2){if((b[(ka&o)>>1]|0)<=-1)break;u=cu(c[(f&p)>>2]|0,c[((c[(ea&p)>>2]|0)+(y*20|0)&p)>>2]|0)|0;if(!u)u=c[(da&p)>>2]|0;x=c[(u&p)>>2]|0;w=cu(c[(f&p)>>2]|0,c[(la&p)>>2]|0)|0;if(!w)w=c[(da&p)>>2]|0;if(dd(x,c[(w&p)>>2]|0)|0)break c}while(0);g=A|g;h=z|h}}while(0);y=y+1|0}while((y|0)<(r|0));k=c[(B&p)>>2]|0}do if(!(k&4096)){if(!(k&256)){u=c[(l&p)+28>>2]|0;if(!u){r=0;break a}if(a[(u&n)+51>>0]&4){r=0;break a}k=b[(u&o)+48>>1]|0;s=(a[(u&n)+50>>0]|0)!=0&1;if(!(k<<16>>16)){pa=71;break}else{S=k&65535;T=b[(u&o)+46>>1]|0}}else{S=1;T=0;u=0}J=l+24|0;K=l+42|0;L=l+48|0;M=(u|0)==0;N=u+32|0;O=iw(1,0,ca|0)|0;P=G;Q=u+4|0;R=u+28|0;I=u+12|0;k=0;u=0;A=0;H=0;d:while(1){z=(u|0)<(e[(J&o)>>1]|0);if((z?(b[(K&o)>>1]|0)==0:0)?(ma=e[((c[((c[(L&p)>>2]|0)+(u<<2)&p)>>2]|0)&o)+18>>1]|0,(ma&130|0)!=0):0){s=(ma&128|0)==0?s:0;z=H}else{if(!M){x=b[((c[(Q&p)>>2]|0)+(u<<1)&o)>>1]|0;w=a[((c[(R&p)>>2]|0)+u&n)>>0]|0;v=c[(I&p)>>2]|0;x=x<<16>>16==(b[(v&o)+36>>1]|0)?-1:x<<16>>16;y=(x|0)>-1;if(s<<24>>24!=0&y)if(z){y=1;F=x}else{y=1;F=x;s=(a[((c[(v&p)+4>>2]|0)+(x*24|0)&n)+20>>0]|0)==0?0:s}else F=x}else{y=0;F=-1;w=0}if(ja){pa=68;break}else{z=1;E=0}e:while(1){C=iw(1,0,E|0)|0;D=G;do if((C&g|0)==0&(D&h|0)==0){v=c[((c[(ea&p)>>2]|0)+(E*20|0)&p)>>2]|0;x=c[(v&p)+4>>2]|0;if(!(x&4096))B=v;else{B=v;do{if(!(x&262144))x=B+12|0;else x=c[((c[(B&p)+20>>2]|0)&p)+4>>2]|0;B=c[(x&p)>>2]|0;x=c[(B&p)+4>>2]|0}while((x&4096|0)!=0)}z=ga?0:z;if((a[(B&n)>>0]|0)!=-102)break;if((c[(B&p)+28>>2]|0)!=(U|0))break;if((b[(B&o)+32>>1]|0)!=(F|0))break;if(!y){B=C;y=D;z=E;break e}x=cu(c[(f&p)>>2]|0,v)|0;if(!x)x=c[(da&p)>>2]|0;if(!(dd(c[(x&p)>>2]|0,c[((c[(N&p)>>2]|0)+(u<<2)&p)>>2]|0)|0)){B=C;y=D;z=E;break e}}while(0);E=E+1|0;if(!(z<<24>>24!=0&(E|0)<(r|0))){pa=68;break d}}do if(W){if(H<<24>>24)if((w^A)<<24>>24==(a[((c[(ea&p)>>2]|0)+(z*20|0)&n)+12>>0]|0)){z=H;break}else{pa=68;break d}v=a[((c[(ea&p)>>2]|0)+(z*20|0)&n)+12>>0]|0;A=v^w;if(w<<24>>24==v<<24>>24){z=1;break}v=q;w=c[(v&p)+4>>2]|P;z=q;c[(z&p)>>2]=c[(v&p)>>2]|O;c[(z&p)+4>>2]=w;z=1}else z=H;while(0);g=B|g;h=y|h;k=(F|0)<0?1:k}u=u+1|0;if((u|0)>=(S|0))break;else H=z}if((pa|0)==68){pa=0;s=(u|0)==0|(u|0)<(T&65535|0)?0:s}if(!(k<<24>>24))pa=71;else s=1}else pa=71;while(0);if((pa|0)==71){pa=0;if(!(s<<24>>24)){s=0;break b}}U=l+8|0;_=c[(U&p)>>2]|_;$=c[(U&p)+4>>2]|$;if(!ja){z=~_;A=~$;y=0;do{u=iw(1,0,y|0)|0;x=G;do if((u&g|0)==0&(x&h|0)==0){k=c[((c[(ea&p)>>2]|0)+(y*20|0)&p)>>2]|0;v=Av(X,k)|0;w=G;if((v|0)==0&(w|0)==0?(c[(oa&p)>>2]=0,c[(oa&p)+4>>2]=0,c[(oa&p)+8>>2]=0,c[(oa&p)+12>>2]=0,c[(oa&p)+16>>2]=0,c[(oa&p)+20>>2]=0,a[(Y&n)>>0]=1,c[(oa&p)>>2]=78,c[(Z&p)>>2]=79,c[(aa&p)>>2]=0,rs(oa,k)|0,(a[(Y&n)>>0]|0)==0):0)break;U=(v&z|0)==0&(w&A|0)==0;g=(U?u:0)|g;h=(U?x:0)|h}while(0);y=y+1|0}while((y|0)<(r|0))}if(h>>>0>ra>>>0|(h|0)==(ra|0)&g>>>0>=qa>>>0|s<<24>>24==0|(ca|0)>=(na|0))break b;else{k=V;ca=ca+1|0}}ga=(a[(l&n)+29>>0]|0)==0;g=ga?g:qa;h=ga?h:ra}while(0);if((g|0)==(qa|0)&(h|0)==(ra|0)){r=sa&255;break}if(!(s<<24>>24)){do{r=r+-1|0;if((r|0)<=0){r=0;break a}ea=iw(1,0,r|0)|0;ea=jw(ea|0,G|0,-1,-1)|0;ga=G}while(!((ea&g|0)==(ea|0)&(ga&h|0)==(ga|0)));r=r&255}else r=-1}else r=0}while(0);i=ta;return r|0}function Nv(b,c,d,e){b=b|0;c=c|0;d=d|0;e=e|0;if(c)Sk(b,33920,5);if(!d)c=0;else{c=d;while(1)if(!(a[(c&n)>>0]|0))break;else c=c+1|0;c=c-d&1073741823}Sk(b,d,c);Sk(b,e,1);Sk(b,13552,1);return}function Ov(a){a=a|0;var d=0,e=0,f=0,g=0,h=0,i=0;i=c[(c[(c[(a&p)>>2]&p)>>2]&p)>>2]|0;d=c[(a&p)+12>>2]|0;g=a+20|0;if((d|0)>0){h=c[(g&p)>>2]|0;while(1){d=d+-1|0;f=h+20|0;e=b[(f&o)>>1]|0;if(e&1){Gk(i,c[(h&p)>>2]|0);e=b[(f&o)>>1]|0}e=e&65535;if(!(e&16)){if(e&32){e=c[(h&p)+12>>2]|0;Ov(e);mg(i,e)}}else{e=c[(h&p)+12>>2]|0;Ov(e);mg(i,e)}if((d|0)<=0)break;else h=h+48|0}}d=c[(g&p)>>2]|0;if((d|0)!=(a+24|0))mg(i,d);return}function Pv(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,o=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0;u=i;i=i+32|0;if((i|0)>=(j|0))fa();t=u;h=c[(b&p)+8>>2]|0;k=c[(b&p)>>2]|0;if(e){l=(f|0)==10;m=b+437|0;o=t+4|0;q=t+1|0;r=t+8|0;s=t+12|0;g=f&255;do{if(l)f=a[(e&n)+1>>0]|0;else f=g;a[(m&n)>>0]=f;f=d[(e&n)>>0]|0;if((f|0)==108){w=Vv(b,e)|0;v=gr(k,c[(e&p)+8>>2]|0,0)|0;f=Nr(k,c[(e&p)+28>>2]|0)|0;tr(b,w,v,f,d[(m&n)>>0]|0)}else if((f|0)==109){f=Vv(b,e)|0;rr(b,f,Mr(k,c[(e&p)+20>>2]|0,0,0)|0)}else if((f|0)==110){w=Vv(b,e)|0;v=Pr(k,c[(e&p)+24>>2]|0,0)|0;f=Mr(k,c[(e&p)+20>>2]|0,0,0)|0;sr(b,w,v,f,d[(m&n)>>0]|0)}else{f=gr(k,c[(e&p)+8>>2]|0,0)|0;a[(t&n)>>0]=4;c[(o&p)>>2]=0;a[(q&n)>>0]=0;c[(r&p)>>2]=0;c[(s&p)>>2]=0;ir(b,f,t)|0;Mk(k,f,1)}if((a[(e&n)>>0]|0)!=119)wh(h,98,0,0,0)|0;e=c[(e&p)+32>>2]|0}while((e|0)!=0)}i=u;return}function Qv(d,e,f,g){d=d|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0;m=i;i=i+16|0;if((i|0)>=(j|0))fa();h=m;l=c[(d&p)>>2]|0;c[(h&p)>>2]=0;c[(h&p)+4>>2]=0;h=nr(l,159,h,0)|0;do if(!h)h=0;else{k=g<<16>>16;if(g<<16>>16>-1?(b[(e&o)+36>>1]|0)!=g<<16>>16:0){g=c[(e&p)+4>>2]|0;c[(h&p)+28>>2]=f+1+k;a[(h&n)+1>>0]=a[(g+(k*24|0)&n)+21>>0]|0;k=c[(g+(k*24|0)&p)+16>>2]|0;if(!k)k=c[(c[(l&p)+8>>2]&p)>>2]|0;h=xv(d,h,k)|0;break}c[(h&p)+28>>2]=f;a[(h&n)+1>>0]=68}while(0);i=m;return h|0}function Rv(d,e,f,g){d=d|0;e=e|0;f=f|0;g=g|0;var h=0,i=0,j=0;d=mh(d,48,0)|0;if(d){h=d+0|0;i=h+44|0;do{a[(h&n)>>0]=0;h=h+1|0}while((h|0)<(i|0));a[(d&n)>>0]=-102;b[(d&o)+34>>1]=-1;c[(d&p)+24>>2]=1;h=c[(e+(f*72|0)&p)+24>>2]|0;c[(d&p)+44>>2]=h;c[(d&p)+28>>2]=c[(e+(f*72|0)&p)+48>>2];if((b[(h&o)+36>>1]|0)==(g|0))b[(d&o)+32>>1]=-1;else{b[(d&o)+32>>1]=g;j=(g|0)>63;g=iw(1,0,g|0)|0;h=e+(f*72|0)+64|0;f=h;i=c[(f&p)+4>>2]|(j?-2147483648:G);c[(h&p)>>2]=c[(f&p)>>2]|(j?0:g);c[(h&p)+4>>2]=i}h=d+4|0;c[(h&p)>>2]=c[(h&p)>>2]|4}return d|0}function Sv(b,e){b=b|0;e=e|0;if((a[(e&n)>>0]|0)==-101){e=e+38|0;a[(e&n)>>0]=(d[(e&n)>>0]|0)+(c[(b&p)+24>>2]|0)}return 0}function Tv(a,d){a=a|0;d=d|0;var f=0,g=0,h=0,i=0,j=0,k=0;f=b[(a&o)+40>>1]|0;i=f&65535;h=b[(a&o)+42>>1]|0;k=e[(d&o)+40>>1]|0;g=b[(d&o)+42>>1]|0;a:do if(!((g&65535)>(h&65535)?1:(i-(h&65535)|0)>=(k-(g&65535)|0))){g=b[(a&o)+20>>1]|0;h=b[(d&o)+20>>1]|0;if(g<<16>>16>=h<<16>>16){if(g<<16>>16>h<<16>>16){f=0;break}if((b[(a&o)+22>>1]|0)>(b[(d&o)+22>>1]|0)){f=0;break}}if(!(f<<16>>16))f=1;else{j=c[(a&p)+48>>2]|0;d=d+48|0;a=i;while(1){a=a+-1|0;h=c[(j+(a<<2)&p)>>2]|0;if(h){f=k;while(1){g=f+-1|0;if((f|0)<=0){f=0;break a}if((c[((c[(d&p)>>2]|0)+(g<<2)&p)>>2]|0)==(h|0))break;else f=g}if((f|0)<1){f=0;break a}}if((a|0)<=0){f=1;break}}}}else f=0;while(0);return f|0}function Uv(d,e){d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0,v=0;f=c[(d&p)>>2]|0;a:do if(f){k=a[(e&n)+16>>0]|0;l=e+17|0;m=e+18|0;q=e+20|0;r=e+22|0;s=e+42|0;t=e+36|0;do{if((a[(f&n)+16>>0]|0)==k<<24>>24?(a[(f&n)+17>>0]|0)==(a[(l&n)>>0]|0):0){if((((c[(f&p)+36>>2]&16384|0)!=0?(b[(s&o)>>1]|0)==0:0)?(c[(t&p)>>2]&513|0)==513:0)?(i=f,j=e,h=c[(j&p)>>2]|0,j=c[(j&p)+4>>2]|0,(h&c[(i&p)>>2]|0)==(h|0)?(j&c[(i&p)+4>>2]|0)==(j|0):0):0)break a;u=f;v=c[(u&p)>>2]|0;u=c[(u&p)+4>>2]|0;h=e;g=c[(h&p)>>2]|0;h=c[(h&p)+4>>2]|0;i=g&v;j=h&u;if((((i|0)==(v|0)&(j|0)==(u|0)?(b[(f&o)+18>>1]|0)<=(b[(m&o)>>1]|0):0)?(b[(f&o)+20>>1]|0)<=(b[(q&o)>>1]|0):0)?(b[(f&o)+22>>1]|0)<=(b[(r&o)>>1]|0):0){d=0;break a}if(((i|0)==(g|0)&(j|0)==(h|0)?(b[(f&o)+20>>1]|0)>=(b[(q&o)>>1]|0):0)?(b[(f&o)+22>>1]|0)>=(b[(r&o)>>1]|0):0)break a}d=f+52|0;f=c[(d&p)>>2]|0}while((f|0)!=0)}while(0);return d|0}function Vv(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;h=pr(c[(a&p)>>2]|0,0,b+12|0,0)|0;do if(h){g=c[(a&p)>>2]|0;f=c[((c[(b&p)+4>>2]|0)&p)+20>>2]|0;a:do if(f){e=c[(g&p)+20>>2]|0;if((e|0)>0){b=c[(g&p)+16>>2]|0;d=0;while(1){a=d+1|0;if((c[(b+(d<<4)&p)+12>>2]|0)==(f|0)){a=d;d=7;break a}if((a|0)<(e|0))d=a;else{d=7;break}}}else a=0}else{a=-1e6;d=7}while(0);if((d|0)==7)if(!((a|0)==0|(a|0)>1))break;a=kh(g,c[((c[(g&p)+16>>2]|0)+(a<<4)&p)>>2]|0)|0;c[(h+(((c[(h&p)>>2]|0)+-1|0)*72|0)&p)+12>>2]=a}while(0);return h|0}function Wv(a){a=a|0;var b=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,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;do if(a>>>0<245){if(a>>>0<11)q=16;else q=a+11&-8;a=q>>>3;l=c[12266]|0;i=l>>>a;if(i&3){e=(i&1^1)+a|0;f=e<<1;b=49104+(f<<2)|0;f=49104+(f+2<<2)|0;g=c[(f&p)>>2]|0;h=g+8|0;i=c[(h&p)>>2]|0;do if((b|0)!=(i|0)){if(i>>>0<(c[12270]|0)>>>0)Ob();d=i+12|0;if((c[(d&p)>>2]|0)==(g|0)){c[(d&p)>>2]=b;c[(f&p)>>2]=i;break}else Ob()}else c[12266]=l&~(1<>2]=x|3;x=g+(x|4)|0;c[(x&p)>>2]=c[(x&p)>>2]|1;x=h;return x|0}k=c[12268]|0;if(q>>>0>k>>>0){if(i){f=2<>>12&16;f=f>>>a;e=f>>>5&8;f=f>>>e;d=f>>>2&4;f=f>>>d;g=f>>>1&2;f=f>>>g;h=f>>>1&1;h=(e|a|d|g|h)+(f>>>h)|0;f=h<<1;g=49104+(f<<2)|0;f=49104+(f+2<<2)|0;d=c[(f&p)>>2]|0;a=d+8|0;e=c[(a&p)>>2]|0;do if((g|0)!=(e|0)){if(e>>>0<(c[12270]|0)>>>0)Ob();i=e+12|0;if((c[(i&p)>>2]|0)==(d|0)){c[(i&p)>>2]=g;c[(f&p)>>2]=e;m=c[12268]|0;break}else Ob()}else{c[12266]=l&~(1<>2]=q|3;j=d+q|0;c[(d+(q|4)&p)>>2]=b|1;c[(d+x&p)>>2]=b;if(m){e=c[12271]|0;g=m>>>3;i=g<<1;f=49104+(i<<2)|0;h=c[12266]|0;g=1<>2]|0;if(i>>>0<(c[12270]|0)>>>0)Ob();else{n=h;o=i}}else{c[12266]=h|g;n=49104+(i+2<<2)|0;o=f}c[(n&p)>>2]=e;c[(o&p)+12>>2]=e;c[(e&p)+8>>2]=o;c[(e&p)+12>>2]=f}c[12268]=b;c[12271]=j;x=a;return x|0}a=c[12267]|0;if(a){h=(a&0-a)+-1|0;w=h>>>12&16;h=h>>>w;v=h>>>5&8;h=h>>>v;x=h>>>2&4;h=h>>>x;i=h>>>1&2;h=h>>>i;g=h>>>1&1;g=c[((v|w|x|i|g)+(h>>>g)<<2&p)+49368>>2]|0;h=(c[(g&p)+4>>2]&-8)-q|0;i=g;while(1){d=c[(i&p)+16>>2]|0;if(!d){d=c[(i&p)+20>>2]|0;if(!d){l=h;k=g;break}}i=(c[(d&p)+4>>2]&-8)-q|0;x=i>>>0>>0;h=x?i:h;i=d;g=x?d:g}a=c[12270]|0;if(k>>>0>>0)Ob();b=k+q|0;if(k>>>0>=b>>>0)Ob();j=c[(k&p)+24>>2]|0;g=c[(k&p)+12>>2]|0;do if((g|0)==(k|0)){h=k+20|0;i=c[(h&p)>>2]|0;if(!i){h=k+16|0;i=c[(h&p)>>2]|0;if(!i){e=0;break}}while(1){g=i+20|0;f=c[(g&p)>>2]|0;if(f){i=f;h=g;continue}g=i+16|0;f=c[(g&p)>>2]|0;if(!f)break;else{i=f;h=g}}if(h>>>0>>0)Ob();else{c[(h&p)>>2]=0;e=i;break}}else{f=c[(k&p)+8>>2]|0;if(f>>>0>>0)Ob();i=f+12|0;if((c[(i&p)>>2]|0)!=(k|0))Ob();h=g+8|0;if((c[(h&p)>>2]|0)==(k|0)){c[(i&p)>>2]=g;c[(h&p)>>2]=f;e=g;break}else Ob()}while(0);do if(j){i=c[(k&p)+28>>2]|0;h=49368+(i<<2)|0;if((k|0)==(c[(h&p)>>2]|0)){c[(h&p)>>2]=e;if(!e){c[12267]=c[12267]&~(1<>>0<(c[12270]|0)>>>0)Ob();i=j+16|0;if((c[(i&p)>>2]|0)==(k|0))c[(i&p)>>2]=e;else c[(j&p)+20>>2]=e;if(!e)break}h=c[12270]|0;if(e>>>0>>0)Ob();c[(e&p)+24>>2]=j;i=c[(k&p)+16>>2]|0;do if(i)if(i>>>0>>0)Ob();else{c[(e&p)+16>>2]=i;c[(i&p)+24>>2]=e;break}while(0);i=c[(k&p)+20>>2]|0;if(i)if(i>>>0<(c[12270]|0)>>>0)Ob();else{c[(e&p)+20>>2]=i;c[(i&p)+24>>2]=e;break}}while(0);if(l>>>0<16){x=l+q|0;c[(k&p)+4>>2]=x|3;x=k+(x+4)|0;c[(x&p)>>2]=c[(x&p)>>2]|1}else{c[(k&p)+4>>2]=q|3;c[(k+(q|4)&p)>>2]=l|1;c[(k+l+q&p)>>2]=l;d=c[12268]|0;if(d){e=c[12271]|0;g=d>>>3;i=g<<1;f=49104+(i<<2)|0;h=c[12266]|0;g=1<>2]|0;if(h>>>0<(c[12270]|0)>>>0)Ob();else{r=i;s=h}}else{c[12266]=h|g;r=49104+(i+2<<2)|0;s=f}c[(r&p)>>2]=e;c[(s&p)+12>>2]=e;c[(e&p)+8>>2]=s;c[(e&p)+12>>2]=f}c[12268]=l;c[12271]=b}x=k+8|0;return x|0}else s=q}else s=q}else if(a>>>0<=4294967231){a=a+11|0;s=a&-8;k=c[12267]|0;if(k){h=0-s|0;a=a>>>8;if(a)if(s>>>0>16777215)d=31;else{q=(a+1048320|0)>>>16&8;r=a<>>16&4;r=r<>>16&2;d=14-(o|q|d)+(r<>>15)|0;d=s>>>(d+7|0)&1|d<<1}else d=0;f=c[(d<<2&p)+49368>>2]|0;a:do if(!f){a=0;i=0}else{if((d|0)==31)i=0;else i=25-(d>>>1)|0;l=h;a=0;b=s<>2]&-8;h=e-s|0;if(h>>>0>>0)if((e|0)==(s|0)){a=f;i=f;break a}else i=f;else h=l;r=c[(f&p)+20>>2]|0;f=c[(f+(b>>>31<<2)&p)+16>>2]|0;a=(r|0)==0|(r|0)==(f|0)?a:r;if(!f)break;else{l=h;b=b<<1}}}while(0);if((a|0)==0&(i|0)==0){a=2<>>12&16;r=r>>>n;m=r>>>5&8;r=r>>>m;o=r>>>2&4;r=r>>>o;q=r>>>1&2;r=r>>>q;a=r>>>1&1;a=c[((m|n|o|q|a)+(r>>>a)<<2&p)+49368>>2]|0}if(!a){o=h;q=i}else while(1){r=(c[(a&p)+4>>2]&-8)-s|0;f=r>>>0>>0;h=f?r:h;i=f?a:i;f=c[(a&p)+16>>2]|0;if(f){a=f;continue}a=c[(a&p)+20>>2]|0;if(!a){o=h;q=i;break}}if((q|0)!=0?o>>>0<((c[12268]|0)-s|0)>>>0:0){a=c[12270]|0;if(q>>>0>>0)Ob();m=q+s|0;if(q>>>0>=m>>>0)Ob();j=c[(q&p)+24>>2]|0;g=c[(q&p)+12>>2]|0;do if((g|0)==(q|0)){h=q+20|0;i=c[(h&p)>>2]|0;if(!i){h=q+16|0;i=c[(h&p)>>2]|0;if(!i){u=0;break}}while(1){g=i+20|0;f=c[(g&p)>>2]|0;if(f){i=f;h=g;continue}g=i+16|0;f=c[(g&p)>>2]|0;if(!f)break;else{i=f;h=g}}if(h>>>0>>0)Ob();else{c[(h&p)>>2]=0;u=i;break}}else{f=c[(q&p)+8>>2]|0;if(f>>>0>>0)Ob();i=f+12|0;if((c[(i&p)>>2]|0)!=(q|0))Ob();h=g+8|0;if((c[(h&p)>>2]|0)==(q|0)){c[(i&p)>>2]=g;c[(h&p)>>2]=f;u=g;break}else Ob()}while(0);do if(j){i=c[(q&p)+28>>2]|0;h=49368+(i<<2)|0;if((q|0)==(c[(h&p)>>2]|0)){c[(h&p)>>2]=u;if(!u){c[12267]=c[12267]&~(1<>>0<(c[12270]|0)>>>0)Ob();i=j+16|0;if((c[(i&p)>>2]|0)==(q|0))c[(i&p)>>2]=u;else c[(j&p)+20>>2]=u;if(!u)break}h=c[12270]|0;if(u>>>0>>0)Ob();c[(u&p)+24>>2]=j;i=c[(q&p)+16>>2]|0;do if(i)if(i>>>0>>0)Ob();else{c[(u&p)+16>>2]=i;c[(i&p)+24>>2]=u;break}while(0);i=c[(q&p)+20>>2]|0;if(i)if(i>>>0<(c[12270]|0)>>>0)Ob();else{c[(u&p)+20>>2]=i;c[(i&p)+24>>2]=u;break}}while(0);b:do if(o>>>0>=16){c[(q&p)+4>>2]=s|3;c[(q+(s|4)&p)>>2]=o|1;c[(q+o+s&p)>>2]=o;i=o>>>3;if(o>>>0<256){h=i<<1;f=49104+(h<<2)|0;g=c[12266]|0;i=1<>2]|0;if(h>>>0>=(c[12270]|0)>>>0){v=i;w=h;break}Ob()}while(0);c[(v&p)>>2]=m;c[(w&p)+12>>2]=m;c[(q+s&p)+8>>2]=w;c[(q+s&p)+12>>2]=f;break}d=o>>>8;if(d)if(o>>>0>16777215)f=31;else{w=(d+1048320|0)>>>16&8;x=d<>>16&4;x=x<>>16&2;f=14-(v|w|f)+(x<>>15)|0;f=o>>>(f+7|0)&1|f<<1}else f=0;i=49368+(f<<2)|0;c[(q+s&p)+28>>2]=f;c[(q+s&p)+20>>2]=0;c[(q+s&p)+16>>2]=0;h=c[12267]|0;g=1<>2]=m;c[(q+s&p)+24>>2]=i;c[(q+s&p)+12>>2]=m;c[(q+s&p)+8>>2]=m;break}d=c[(i&p)>>2]|0;if((f|0)==31)b=0;else b=25-(f>>>1)|0;c:do if((c[(d&p)+4>>2]&-8|0)!=(o|0)){h=o<>>31<<2)+16|0;i=c[(b&p)>>2]|0;if(!i)break;if((c[(i&p)+4>>2]&-8|0)==(o|0)){C=i;break c}else{h=h<<1;d=i}}if(b>>>0<(c[12270]|0)>>>0)Ob();else{c[(b&p)>>2]=m;c[(q+s&p)+24>>2]=d;c[(q+s&p)+12>>2]=m;c[(q+s&p)+8>>2]=m;break b}}else C=d;while(0);d=C+8|0;b=c[(d&p)>>2]|0;x=c[12270]|0;if(C>>>0>=x>>>0&b>>>0>=x>>>0){c[(b&p)+12>>2]=m;c[(d&p)>>2]=m;c[(q+s&p)+8>>2]=b;c[(q+s&p)+12>>2]=C;c[(q+s&p)+24>>2]=0;break}else Ob()}else{x=o+s|0;c[(q&p)+4>>2]=x|3;x=q+(x+4)|0;c[(x&p)>>2]=c[(x&p)>>2]|1}while(0);x=q+8|0;return x|0}}}else s=-1;while(0);a=c[12268]|0;if(a>>>0>=s>>>0){b=a-s|0;d=c[12271]|0;if(b>>>0>15){c[12271]=d+s;c[12268]=b;c[(d+s&p)+4>>2]=b|1;c[(d+a&p)>>2]=b;c[(d&p)+4>>2]=s|3}else{c[12268]=0;c[12271]=0;c[(d&p)+4>>2]=a|3;x=d+(a+4)|0;c[(x&p)>>2]=c[(x&p)>>2]|1}x=d+8|0;return x|0}a=c[12269]|0;if(a>>>0>s>>>0){w=a-s|0;c[12269]=w;x=c[12272]|0;c[12272]=x+s;c[(x+s&p)+4>>2]=w|1;c[(x&p)+4>>2]=s|3;x=x+8|0;return x|0}do if(!(c[12384]|0)){a=wb(30)|0;if(!(a+-1&a)){c[12386]=a;c[12385]=a;c[12387]=-1;c[12388]=-1;c[12389]=0;c[12377]=0;c[12384]=(Pb(0)|0)&-16^1431655768;break}else Ob()}while(0);l=s+48|0;b=c[12386]|0;k=s+47|0;d=b+k|0;b=0-b|0;m=d&b;if(m>>>0<=s>>>0){x=0;return x|0}a=c[12376]|0;if((a|0)!=0?(v=c[12374]|0,w=v+m|0,w>>>0<=v>>>0|w>>>0>a>>>0):0){x=0;return x|0}d:do if(!(c[12377]&4)){a=c[12272]|0;e:do if(a){f=49512|0;while(1){i=c[(f&p)>>2]|0;if(i>>>0<=a>>>0?(t=f+4|0,(i+(c[(t&p)>>2]|0)|0)>>>0>a>>>0):0){e=f;h=t;a=f;break}f=c[(f&p)+8>>2]|0;if(!f){H=181;break e}}if(a){a=d-(c[12269]|0)&b;if(a>>>0<2147483647){i=sb(a|0)|0;if((i|0)==((c[(e&p)>>2]|0)+(c[(h&p)>>2]|0)|0))H=190;else H=191}else a=0}else H=181}else H=181;while(0);do if((H|0)==181){i=sb(0)|0;if((i|0)!=(-1|0)){a=i;h=c[12385]|0;f=h+-1|0;if(!(f&a))a=m;else a=m-a+(f+a&0-h)|0;h=c[12374]|0;f=h+a|0;if(a>>>0>s>>>0&a>>>0<2147483647){w=c[12376]|0;if((w|0)!=0?f>>>0<=h>>>0|f>>>0>w>>>0:0){a=0;break}h=sb(a|0)|0;if((h|0)==(i|0))H=190;else{i=h;H=191}}else a=0}else a=0}while(0);f:do if((H|0)==190){if((i|0)!=(-1|0)){y=i;H=201;break d}}else if((H|0)==191){h=0-a|0;do if((i|0)!=(-1|0)&a>>>0<2147483647&l>>>0>a>>>0?(x=c[12386]|0,x=k-a+x&0-x,x>>>0<2147483647):0)if((sb(x|0)|0)==(-1|0)){sb(h|0)|0;a=0;break f}else{a=x+a|0;break}while(0);if((i|0)==(-1|0))a=0;else{y=i;H=201;break d}}while(0);c[12377]=c[12377]|4;H=198}else{a=0;H=198}while(0);if((((H|0)==198?m>>>0<2147483647:0)?(y=sb(m|0)|0,z=sb(0)|0,(y|0)!=(-1|0)&(z|0)!=(-1|0)&y>>>0>>0):0)?(A=z-y|0,B=A>>>0>(s+40|0)>>>0,B):0){a=B?A:a;H=201}if((H|0)==201){i=(c[12374]|0)+a|0;c[12374]=i;if(i>>>0>(c[12375]|0)>>>0)c[12375]=i;l=c[12272]|0;g:do if(l){e=49512|0;do{i=c[(e&p)>>2]|0;h=e+4|0;f=c[(h&p)>>2]|0;if((y|0)==(i+f|0)){D=i;E=h;F=f;G=e;H=213;break}e=c[(e&p)+8>>2]|0}while((e|0)!=0);if(((H|0)==213?(c[(G&p)+12>>2]&8|0)==0:0)?l>>>0>=D>>>0&l>>>0>>0:0){c[(E&p)>>2]=F+a;b=(c[12269]|0)+a|0;d=l+8|0;if(!(d&7))d=0;else d=0-d&7;x=b-d|0;c[12272]=l+d;c[12269]=x;c[(l+d&p)+4>>2]=x|1;c[(l+b&p)+4>>2]=40;c[12273]=c[12388];break}i=c[12270]|0;if(y>>>0>>0){c[12270]=y;k=y}else k=i;i=y+a|0;h=49512|0;do{if((c[(h&p)>>2]|0)==(i|0)){I=h;J=h;H=223;break}h=c[(h&p)+8>>2]|0}while((h|0)!=0);if((H|0)==223?(c[(J&p)+12>>2]&8|0)==0:0){c[(I&p)>>2]=y;i=J+4|0;c[(i&p)>>2]=(c[(i&p)>>2]|0)+a;i=y+8|0;if(!(i&7))q=0;else q=0-i&7;i=y+(a+8)|0;if(!(i&7))d=0;else d=0-i&7;i=y+(d+a)|0;o=q+s|0;n=y+o|0;m=i-(y+q)-s|0;c[(y+q&p)+4>>2]=s|3;h:do if((i|0)!=(l|0)){if((i|0)==(c[12271]|0)){x=(c[12268]|0)+m|0;c[12268]=x;c[12271]=n;c[(y+o&p)+4>>2]=x|1;c[(y+x+o&p)>>2]=x;break}l=a+4|0;j=c[(y+l+d&p)>>2]|0;if((j&3|0)==1){b=j&-8;f=j>>>3;i:do if(j>>>0>=256){e=c[(y+(d|24)+a&p)>>2]|0;g=c[(y+a+d&p)+12>>2]|0;do if((g|0)==(i|0)){g=d|16;h=y+(l+g)|0;j=c[(h&p)>>2]|0;if(!j){h=y+(g+a)|0;j=c[(h&p)>>2]|0;if(!j){O=0;break}}while(1){g=j+20|0;f=c[(g&p)>>2]|0;if(f){j=f;h=g;continue}g=j+16|0;f=c[(g&p)>>2]|0;if(!f)break;else{j=f;h=g}}if(h>>>0>>0)Ob();else{c[(h&p)>>2]=0;O=j;break}}else{f=c[(y+(d|8)+a&p)>>2]|0;if(f>>>0>>0)Ob();j=f+12|0;if((c[(j&p)>>2]|0)!=(i|0))Ob();h=g+8|0;if((c[(h&p)>>2]|0)==(i|0)){c[(j&p)>>2]=g;c[(h&p)>>2]=f;O=g;break}else Ob()}while(0);if(!e)break;j=c[(y+a+d&p)+28>>2]|0;h=49368+(j<<2)|0;do if((i|0)!=(c[(h&p)>>2]|0)){if(e>>>0<(c[12270]|0)>>>0)Ob();j=e+16|0;if((c[(j&p)>>2]|0)==(i|0))c[(j&p)>>2]=O;else c[(e&p)+20>>2]=O;if(!O)break i}else{c[(h&p)>>2]=O;if(O)break;c[12267]=c[12267]&~(1<
>2]|0;if(l>>>0>m>>>0)c[((c[(T&p)+4>>2]|0)+(m*20|0)&p)+8>>2]=l;c[((c[(T&p)+24>>2]|0)&p)+88>>2]=l+-1;break a}case 30:{if(!U)break a;h=_h(W,U,L)|0;if(!h)break a;k=c[(h&p)+8>>2]|0;d:do if(!k)k=0;else while(1){if((a[(k&n)+51>>0]&3)==2)break d;k=c[(k&p)+20>>2]|0;if(!k){k=0;break}}while(0);iq(T,6);c[(S&p)>>2]=6;Ar(f,Q);do if((((a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0?(Xg(c[(T&p)+16>>2]|0,31176,-1,1,0)|0,(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(T&p)+16>>2]|0)+40|0,31184,-1,1,0)|0,(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(T&p)+16>>2]|0)+80|0,31192,-1,1,0)|0,(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0):0){Xg((c[(T&p)+16>>2]|0)+120|0,31200,-1,1,0)|0;if(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)break;Xg((c[(T&p)+16>>2]|0)+160|0,31208,-1,1,0)|0;if(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)break;Xg((c[(T&p)+16>>2]|0)+200|0,31224,-1,1,0)|0}while(0);hr(f,h)|0;t=h+38|0;m=b[(t&o)>>1]|0;if(m<<16>>16<=0)break a;u=(k|0)==0;l=k+4|0;w=0;r=0;g=c[(h&p)+4>>2]|0;while(1){s=g+23|0;if(!(a[(s&n)>>0]&2)){wh(T,25,w-r|0,1,0)|0;q=c[(g&p)>>2]|0;xh(T,wh(T,97,0,2,0)|0,q,0);q=c[(g&p)+12>>2]|0;xh(T,wh(T,97,0,3,0)|0,(q|0)==0?10360:q,0);wh(T,25,(a[(g&n)+20>>0]|0)!=0&1,4,0)|0;q=c[(g&p)+8>>2]|0;if(!q)wh(T,28,0,5,0)|0;else xh(T,wh(T,97,0,5,0)|0,q,0);k=a[(s&n)>>0]&1;e:do if(k<<24>>24==0|u)q=(k^1)&255^1;else{q=b[(t&o)>>1]|0;if(q<<16>>16<1){q=1;break}m=c[(l&p)>>2]|0;s=q<<16>>16;k=1;while(1){q=k+1|0;if((b[(m+(k+-1<<1)&o)>>1]|0)==(w|0)){q=k;break e}if((k|0)<(s|0))k=q;else break}}while(0);wh(T,25,q,6,0)|0;wh(T,35,1,6,0)|0;m=b[(t&o)>>1]|0}else r=r+1|0;w=w+1|0;if((w|0)>=(m<<16>>16|0))break;else g=g+24|0}break}case 2:{if(!U){Jt(f,g,(c[((w*12|0)&p)+30128>>2]&c[(W&p)+24>>2]|0)!=0&1,0);break a}l=c[((w*12|0)&p)+30128>>2]|0;l=(a[(W&n)+63>>0]|0)==0?l&-524289:l;if(!((ii(U,1,0)|0)<<24>>24)){G=W+24|0;c[(G&p)>>2]=c[(G&p)>>2]&~l;if((l|0)==16777216){G=W+512|0;c[(G&p)>>2]=0;c[(G&p)+4>>2]=0}}else{G=W+24|0;c[(G&p)>>2]=c[(G&p)>>2]|l}wh(T,144,0,0,0)|0;Lt(W);break a}case 5:{if(!U)break a;G=(ii(U,1,0)|0)<<24>>24!=0;F=G?32e3:19240;Qh(W,19248,2,1,F,40,0,0,0)|0;Qh(W,19248,3,1,F,40,0,0,0)|0;Qh(W,19232,2,1,10352,40,0,0,0)|0;Ot(W,19232,12);Ot(W,19248,G?12:4);break a}case 17:{g=a[(V&n)>>0]|0;A=(c[(h&p)>>2]|0)==0?-1:Q;c[(S&p)>>2]=6;iq(T,1);if(!(a[((c[(T&p)>>2]|0)&n)+65>>0]|0))Xg(c[(T&p)+16>>2]|0,31464,-1,1,0)|0;c[(z&p)>>2]=100;if(U){Dn(U,z)|0;s=c[(z&p)>>2]|0;if((s|0)<1){c[(z&p)>>2]=100;s=100}}else s=100;wh(T,25,s,1,0)|0;M=W+20|0;w=c[(M&p)>>2]|0;if((w|0)>0){L=(A|0)<0;m=T+32|0;I=T+4|0;H=T+24|0;N=(g&-33)<<24>>24==81;O=0;do{if(L|(O|0)==(A|0)){Ar(f,O);w=wh(T,137,1,0,0)|0;wh(T,24,0,0,0)|0;l=c[(m&p)>>2]|0;if(l>>>0>w>>>0)c[((c[(I&p)>>2]|0)+(w*20|0)&p)+8>>2]=l;c[((c[(H&p)>>2]|0)&p)+88>>2]=l+-1;k=(c[((c[(R&p)>>2]|0)+(O<<4)&p)+12>>2]|0)+16|0;w=c[(k&p)>>2]|0;if(!w)g=0;else{g=0;do{l=c[(w&p)+8>>2]|0;if(!(a[(l&n)+44>>0]&32)){wh(T,25,c[(l&p)+32>>2]|0,g+2|0,0)|0;g=g+1|0}l=c[(l&p)+8>>2]|0;if(l)do{wh(T,25,c[(l&p)+40>>2]|0,g+2|0,0)|0;g=g+1|0;l=c[(l&p)+20>>2]|0}while((l|0)!=0);w=c[(w&p)>>2]|0}while((w|0)!=0)}C=c[(S&p)>>2]|0;w=g+8|0;c[(S&p)>>2]=(C|0)>(w|0)?C:w;wh(T,127,2,g,1)|0;w=c[(I&p)>>2]|0;if(w)a[(w+(((c[(m&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=O;g=wh(T,76,2,0,0)|0;c[(G&p)>>2]=c[((c[(R&p)>>2]|0)+(O<<4)&p)>>2];w=uh(W,31480,G)|0;xh(T,wh(T,97,0,3,0)|0,w,-1);wh(T,32,2,4,1)|0;wh(T,94,4,3,2)|0;wh(T,35,2,1,0)|0;w=c[(m&p)>>2]|0;if(w>>>0>g>>>0)c[((c[(I&p)>>2]|0)+(g*20|0)&p)+8>>2]=w;c[((c[(H&p)>>2]|0)&p)+88>>2]=w+-1;w=c[(k&p)>>2]|0;if(!((w|0)==0|N))do{x=c[(w&p)+8>>2]|0;J=x+8|0;g=c[(J&p)>>2]|0;do if(g){f:do if(!(a[(x&n)+44>>0]&32))g=0;else while(1){if((a[(g&n)+51>>0]&3)==2)break f;g=c[(g&p)+20>>2]|0;if(!g){g=0;break}}while(0);l=wh(T,137,1,0,0)|0;wh(T,24,0,0,0)|0;k=c[(m&p)>>2]|0;if(k>>>0>l>>>0)c[((c[(I&p)>>2]|0)+(l*20|0)&p)+8>>2]=k;c[((c[(H&p)>>2]|0)&p)+88>>2]=k+-1;at(f);pt(f,x,54,1,0,D,E)|0;wh(T,25,0,7,0)|0;k=c[(J&p)>>2]|0;if(!k)l=8;else{l=0;while(1){wh(T,25,0,l+8|0,0)|0;k=c[(k&p)+20>>2]|0;if(!k)break;else l=l+1|0}l=l+9|0}K=c[(S&p)>>2]|0;c[(S&p)>>2]=(K|0)>(l|0)?K:l;wh(T,108,c[(D&p)>>2]|0,0,0)|0;K=wh(T,37,7,1,0)|0;u=x+38|0;l=b[(u&o)>>1]|0;if(l<<16>>16>0){h=x+36|0;v=x+4|0;t=0;do{do if((t|0)!=(b[(h&o)>>1]|0)){if(!(a[((c[(v&p)>>2]|0)+(t*24|0)&n)+20>>0]|0))break;nt(T,x,c[(D&p)>>2]|0,t,3);l=c[(I&p)>>2]|0;if(l)a[(l+(((c[(m&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=-128;l=wh(T,77,3,0,0)|0;wh(T,37,1,-1,0)|0;q=c[((c[(v&p)>>2]|0)+(t*24|0)&p)>>2]|0;c[(G&p)>>2]=c[(x&p)>>2];c[(G&p)+4>>2]=q;q=uh(W,31504,G)|0;xh(T,wh(T,97,0,3,0)|0,q,-1);wh(T,35,3,1,0)|0;q=wh(T,137,1,0,0)|0;wh(T,24,0,0,0)|0;r=c[(m&p)>>2]|0;if(r>>>0>l>>>0)c[((c[(I&p)>>2]|0)+(l*20|0)&p)+8>>2]=r;l=r+-1|0;k=(c[(H&p)>>2]|0)+88|0;c[(k&p)>>2]=l;if(r>>>0>q>>>0)c[((c[(I&p)>>2]|0)+(q*20|0)&p)+8>>2]=r;c[(k&p)>>2]=l;l=b[(u&o)>>1]|0}while(0);t=t+1|0}while((t|0)<(l<<16>>16|0))}l=c[(J&p)>>2]|0;if(l){z=x+4|0;y=0;r=0;k=-1;while(1){q=xs(T)|0;if((g|0)!=(l|0)){k=Pt(f,l,c[(D&p)>>2]|0,0,0,F,r,k)|0;wh(T,37,y+8|0,1,0)|0;x=e[(l&o)+48>>1]|0;q=wh(T,69,(c[(E&p)>>2]|0)+y|0,q,k)|0;xh(T,q,x,-14);wh(T,37,1,-1,0)|0;xh(T,wh(T,97,0,3,0)|0,31528,-2);wh(T,94,7,3,3)|0;xh(T,wh(T,97,0,4,0)|0,31536,-2);wh(T,94,4,3,3)|0;x=c[(l&p)>>2]|0;v=wh(T,97,0,4,0)|0;xh(T,v,x,0);wh(T,94,4,3,3)|0;wh(T,35,3,1,0)|0;x=wh(T,137,1,0,0)|0;wh(T,24,0,0,0)|0;r=c[(m&p)>>2]|0;if(r>>>0>q>>>0)c[((c[(I&p)>>2]|0)+(q*20|0)&p)+8>>2]=r;q=c[(H&p)>>2]|0;c[(q&p)+88>>2]=r+-1;if(a[(l&n)+50>>0]|0){h=xs(T)|0;u=l+46|0;q=b[(u&o)>>1]|0;if(q<<16>>16){t=l+4|0;r=0;do{if(!(a[((c[(z&p)>>2]|0)+((b[((c[(t&p)>>2]|0)+(r<<1)&o)>>1]|0)*24|0)&n)+20>>0]|0)){wh(T,76,r+k|0,h,0)|0;q=b[(u&o)>>1]|0}r=r+1|0}while((r|0)<(q&65535|0))}q=wh(T,9,(c[(E&p)>>2]|0)+y|0,0,0)|0;wh(T,16,0,h,0)|0;r=c[(m&p)>>2]|0;if(r>>>0>q>>>0)c[((c[(I&p)>>2]|0)+(q*20|0)&p)+8>>2]=r;c[((c[(H&p)>>2]|0)&p)+88>>2]=r+-1;q=e[(u&o)>>1]|0;xh(T,wh(T,114,(c[(E&p)>>2]|0)+y|0,h,k)|0,q,-14);wh(T,37,1,-1,0)|0;xh(T,wh(T,97,0,3,0)|0,31560,-2);wh(T,16,0,v,0)|0;q=c[(H&p)>>2]|0;t=~h;do if((h|0)<0){r=c[(q&p)+112>>2]|0;if(!r)break;c[(r+(t<<2)&p)>>2]=c[(m&p)>>2]}while(0);r=c[(m&p)>>2]|0;c[(q&p)+88>>2]=r+-1}if(r>>>0>x>>>0)c[((c[(I&p)>>2]|0)+(x*20|0)&p)+8>>2]=r;c[(q&p)+88>>2]=r+-1;Qt(f,c[(F&p)>>2]|0);r=l}l=c[(l&p)+20>>2]|0;if(!l)break;else y=y+1|0}}wh(T,9,c[(D&p)>>2]|0,K,0)|0;l=K+-1|0;k=c[(m&p)>>2]|0;if(k>>>0>l>>>0)c[((c[(I&p)>>2]|0)+(l*20|0)&p)+8>>2]=k;c[((c[(H&p)>>2]|0)&p)+88>>2]=k+-1;xh(T,wh(T,97,0,2,0)|0,31592,-2);l=c[(J&p)>>2]|0;if(!l)break;else q=0;while(1){if((g|0)!=(l|0)){k=c[(m&p)>>2]|0;wh(T,137,1,k+2|0,0)|0;wh(T,24,0,0,0)|0;wh(T,50,(c[(E&p)>>2]|0)+q|0,3,0)|0;wh(T,79,q+8|0,k+8|0,3)|0;k=c[(I&p)>>2]|0;if(k)a[(k+(((c[(m&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=-112;wh(T,37,1,-1,0)|0;C=c[(l&p)>>2]|0;xh(T,wh(T,97,0,3,0)|0,C,0);wh(T,94,3,2,7)|0;wh(T,35,7,1,0)|0}l=c[(l&p)+20>>2]|0;if(!l)break;else q=q+1|0}}while(0);w=c[(w&p)>>2]|0}while((w|0)!=0);w=c[(M&p)>>2]|0}O=O+1|0}while((O|0)<(w|0))}else m=T+32|0;l=yh(T,3,31448)|0;m=c[(m&p)>>2]|0;if(m>>>0>l>>>0){c[((c[(T&p)+4>>2]|0)+(l*20|0)&p)+12>>2]=0-s;c[((c[(T&p)+4>>2]|0)+(l*20|0)&p)+8>>2]=m}c[((c[(T&p)+24>>2]|0)&p)+88>>2]=m+-1;xh(T,l+1|0,31624,-2);break a}case 21:{do if(U){if(dd(U,30904)|0)if(!(dd(U,30896)|0))k=0;else{P=66;break}else k=1;if(!(c[(B&p)>>2]|0)){s=c[(W&p)+20>>2]|0;if((s|0)>2){q=c[(R&p)>>2]|0;m=k&255;r=2;do{l=c[(c[((c[(q+(r<<4)&p)+4>>2]|0)&p)+4>>2]&p)>>2]|0;do if(!(a[(l&n)+12>>0]|0)){G=c[(l&p)+208>>2]|0;if((G|0)!=0?(a[(G&n)+43>>0]|0)==2:0)break;a[(l&n)+4>>0]=m}while(0);r=r+1|0}while((r|0)<(s|0))}else m=k&255;a[(W&n)+66>>0]=m;P=74}else P=74}else P=66;while(0);if((P|0)==66)if(!(c[(B&p)>>2]|0))l=W+66|0;else{k=-1;P=74}if((P|0)==74){m=c[(c[((c[(C+(Q<<4)&p)+4>>2]|0)&p)+4>>2]&p)>>2]|0;do if((k|0)>-1?(a[(m&n)+12>>0]|0)==0:0){G=c[(m&p)+208>>2]|0;if((G|0)!=0?(a[(G&n)+43>>0]|0)==2:0)break;a[(m&n)+4>>0]=k}while(0);l=m+4|0}l=(a[(l&n)>>0]|0)==1?30904:30896;iq(T,1);if(!(a[((c[(T&p)>>2]|0)&n)+65>>0]|0))Xg(c[(T&p)+16>>2]|0,30920,-1,1,0)|0;xh(T,wh(T,97,0,1,0)|0,l,0);wh(T,35,1,1,0)|0;break a}case 16:{if(!U)break a;k=_h(W,U,L)|0;if(!k)break a;q=Oq(f)|0;iq(q,5);c[(S&p)>>2]=5;Ar(f,Q);if(((((a[((c[(q&p)>>2]|0)&n)+65>>0]|0)==0?(Xg(c[(q&p)+16>>2]|0,31288,-1,1,0)|0,(a[((c[(q&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(q&p)+16>>2]|0)+40|0,31184,-1,1,0)|0,(a[((c[(q&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(q&p)+16>>2]|0)+80|0,31296,-1,1,0)|0,(a[((c[(q&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(q&p)+16>>2]|0)+120|0,31304,-1,1,0)|0,(a[((c[(q&p)>>2]|0)&n)+65>>0]|0)==0):0)Xg((c[(q&p)+16>>2]|0)+160|0,31312,-1,1,0)|0;m=c[(k&p)+8>>2]|0;if(!m)break a;else l=0;while(1){wh(q,25,l,1,0)|0;G=c[(m&p)>>2]|0;xh(q,wh(q,97,0,2,0)|0,G,0);wh(q,25,(a[(m&n)+50>>0]|0)!=0&1,3,0)|0;G=c[((a[(m&n)+51>>0]&3)<<2&p)+31336>>2]|0;xh(q,wh(q,97,0,4,0)|0,G,0);wh(q,25,(c[(m&p)+36>>2]|0)!=0&1,5,0)|0;wh(q,35,1,5,0)|0;m=c[(m&p)+20>>2]|0;if(!m)break;else l=l+1|0}break}case 1:{k=c[(C+(Q<<4)&p)+4>>2]|0;if(!U){m=c[(k&p)+4>>2]|0;c[(m&p)+4>>2]=c[(k&p)>>2];if(!(a[(m&n)+17>>0]|0)){m=0;l=0}else{l=(a[(m&n)+18>>0]|0)==0;m=l?1:2;l=l?0:0}Jt(f,30976,m,l);break a}if(dd(U,32192)|0)if(dd(U,31880)|0)if(!(dd(U,32200)|0))m=2;else{c[(G&p)>>2]=0;Dn(U,G)|0;m=c[(G&p)>>2]|0;m=m>>>0<3?m&255:0}else m=1;else m=0;a[(W&n)+67>>0]=m;r=m+-1|0;if(!((vn(k,m)|0)==0&r>>>0<2))break a;l=yh(T,6,30992)|0;q=c[(T&p)+32>>2]|0;if(q>>>0>l>>>0)c[((c[(T&p)+4>>2]|0)+(l*20|0)&p)+4>>2]=Q;k=l+1|0;if(q>>>0>k>>>0)c[((c[(T&p)+4>>2]|0)+(k*20|0)&p)+4>>2]=Q;k=l+2|0;m=l+4|0;if(q>>>0>k>>>0)c[((c[(T&p)+4>>2]|0)+(k*20|0)&p)+8>>2]=m;if(q>>>0>m>>>0)c[((c[(T&p)+4>>2]|0)+(m*20|0)&p)+4>>2]=r;m=l+5|0;if(q>>>0>m>>>0)c[((c[(T&p)+4>>2]|0)+(m*20|0)&p)+4>>2]=Q;G=T+96|0;c[(G&p)>>2]=c[(G&p)>>2]|1<>2]=3;if(((a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0?(Xg(c[(T&p)+16>>2]|0,31288,-1,1,0)|0,(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(T&p)+16>>2]|0)+40|0,31184,-1,1,0)|0,(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0):0)Xg((c[(T&p)+16>>2]|0)+80|0,31352,-1,1,0)|0;l=W+20|0;m=c[(l&p)>>2]|0;if((m|0)>0)q=0;else break a;do{if(c[((c[(R&p)>>2]|0)+(q<<4)&p)+4>>2]|0){wh(T,25,q,1,0)|0;k=c[((c[(R&p)>>2]|0)+(q<<4)&p)>>2]|0;xh(T,wh(T,97,0,2,0)|0,k,0);k=c[(c[((c[((c[(R&p)>>2]|0)+(q<<4)&p)+4>>2]|0)&p)+4>>2]&p)>>2]|0;if(!(a[(k&n)+15>>0]|0))k=c[(k&p)+168>>2]|0;else k=10360;xh(T,wh(T,97,0,3,0)|0,k,0);wh(T,35,1,3,0)|0;m=c[(l&p)>>2]|0}q=q+1|0}while((q|0)<(m|0));break}case 6:{iq(T,2);c[(S&p)>>2]=2;if((a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0?(Xg(c[(T&p)+16>>2]|0,31288,-1,1,0)|0,(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0):0)Xg((c[(T&p)+16>>2]|0)+40|0,31184,-1,1,0)|0;m=c[(W&p)+436>>2]|0;if(!m)break a;else l=0;while(1){G=c[(m&p)+8>>2]|0;wh(T,25,l,1,0)|0;G=c[(G&p)>>2]|0;xh(T,wh(T,97,0,2,0)|0,G,0);wh(T,35,1,2,0)|0;m=c[(m&p)>>2]|0;if(!m)break;else l=l+1|0}break}case 13:{if(!U)break a;k=_h(W,U,L)|0;if(!k)break a;g=Oq(f)|0;q=c[(k&p)+16>>2]|0;if(!q)break a;iq(g,8);c[(S&p)>>2]=8;Ar(f,Q);do if((((a[((c[(g&p)>>2]|0)&n)+65>>0]|0)==0?(Xg(c[(g&p)+16>>2]|0,31360,-1,1,0)|0,(a[((c[(g&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(g&p)+16>>2]|0)+40|0,31288,-1,1,0)|0,(a[((c[(g&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(g&p)+16>>2]|0)+80|0,31232,-1,1,0)|0,(a[((c[(g&p)>>2]|0)&n)+65>>0]|0)==0):0){Xg((c[(g&p)+16>>2]|0)+120|0,31368,-1,1,0)|0;if(a[((c[(g&p)>>2]|0)&n)+65>>0]|0)break;Xg((c[(g&p)+16>>2]|0)+160|0,31376,-1,1,0)|0;if(a[((c[(g&p)>>2]|0)&n)+65>>0]|0)break;Xg((c[(g&p)+16>>2]|0)+200|0,31384,-1,1,0)|0;if(a[((c[(g&p)>>2]|0)&n)+65>>0]|0)break;Xg((c[(g&p)+16>>2]|0)+240|0,31400,-1,1,0)|0;if(a[((c[(g&p)>>2]|0)&n)+65>>0]|0)break;Xg((c[(g&p)+16>>2]|0)+280|0,31416,-1,1,0)|0}while(0);v=k+4|0;w=0;while(1){k=q+20|0;if((c[(k&p)>>2]|0)>0){m=q+25|0;l=q+26|0;t=q+8|0;h=0;do{u=c[(q+(h<<3)&p)+40>>2]|0;s=d[(m&n)>>0]|0;if((s|0)==8)r=32072;else if((s|0)==9)r=32088;else if((s|0)==6)r=32096;else if((s|0)==7)r=32056;else r=32112;s=d[(l&n)>>0]|0;if((s|0)==8)s=32072;else if((s|0)==9)s=32088;else if((s|0)==6)s=32096;else if((s|0)==7)s=32056;else s=32112;wh(g,25,w,1,0)|0;wh(g,25,h,2,0)|0;G=c[(t&p)>>2]|0;xh(g,wh(g,97,0,3,0)|0,G,0);G=c[((c[(v&p)>>2]|0)+((c[(q+(h<<3)&p)+36>>2]|0)*24|0)&p)>>2]|0;xh(g,wh(g,97,0,4,0)|0,G,0);xh(g,wh(g,(u|0)!=0?97:28,0,5,0)|0,u,0);xh(g,wh(g,97,0,6,0)|0,s,0);xh(g,wh(g,97,0,7,0)|0,r,0);xh(g,wh(g,97,0,8,0)|0,31424,0);wh(g,35,1,8,0)|0;h=h+1|0}while((h|0)<(c[(k&p)>>2]|0))}q=c[(q&p)+4>>2]|0;if(!q)break;else w=w+1|0}break}case 11:{if(!U){if(Gn(f)|0)break a;iq(T,1);if(!(a[((c[(T&p)>>2]|0)&n)+65>>0]|0))Xg(c[(T&p)+16>>2]|0,31784,-1,1,0)|0;wh(T,97,0,1,0)|0;xh(T,-1,c[(d[((c[(f&p)>>2]|0)&n)+62>>0]<<3&p)+31632>>2]|0,-2);wh(T,35,1,1,0)|0;break a}k=c[((c[(R&p)>>2]|0)&p)+12>>2]|0;if((b[(k&o)+78>>1]&5)==1)break a;else{m=31632;l=31704}do{if(!(dd(U,l)|0)){v=m;P=415;break}m=m+8|0;l=c[(m&p)>>2]|0}while((l|0)!=0);if((P|0)==415?(F=a[(v&n)+4>>0]|0,F=F<<24>>24==0?2:F,a[(W&n)+62>>0]=F,a[(k&n)+77>>0]=F,(c[(v&p)>>2]|0)!=0):0)break a;c[(G&p)>>2]=U;th(f,31800,G);break a}case 0:{s=c[((w*12|0)&p)+30128>>2]|0;F=T+96|0;c[(F&p)>>2]=c[(F&p)>>2]|1<>2]|0)>>>0>m>>>0)c[((c[(T&p)+4>>2]|0)+(m*20|0)&p)+4>>2]=Q;l=m+1|0;c[(G&p)>>2]=0;Dn(U,G)|0;k=c[(k&p)>>2]|0;if(k>>>0>l>>>0)c[((c[(T&p)+4>>2]|0)+(l*20|0)&p)+4>>2]=c[(G&p)>>2];m=m+2|0;if(k>>>0<=m>>>0)break a;c[((c[(T&p)+4>>2]|0)+(m*20|0)&p)+4>>2]=Q;c[((c[(T&p)+4>>2]|0)+(m*20|0)&p)+8>>2]=s;break a}m=yh(T,3,31848)|0;k=c[(T&p)+32>>2]|0;if(k>>>0>m>>>0)c[((c[(T&p)+4>>2]|0)+(m*20|0)&p)+4>>2]=Q;m=m+1|0;if(k>>>0>m>>>0){c[((c[(T&p)+4>>2]|0)+(m*20|0)&p)+4>>2]=Q;c[((c[(T&p)+4>>2]|0)+(m*20|0)&p)+12>>2]=s}iq(T,1);if(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)break a;Xg(c[(T&p)+16>>2]|0,V,-1,1,-1)|0;break a}case 7:{iq(T,1);c[(S&p)>>2]=1;if(!(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)){Xg(c[(T&p)+16>>2]|0,31864,-1,1,0)|0;l=0}else l=0;do{G=c[(l<<2&p)+8648>>2]|0;l=l+1|0;xh(T,wh(T,97,0,1,0)|0,G,0);wh(T,35,1,1,0)|0}while((l|0)!=4);break}case 35:{m=(c[(h&p)>>2]|0)!=0?Q:10;if(U)if(dd(U,31880)|0)if(!(dd(U,31888)|0))l=2;else{l=(dd(U,31896)|0)==0;l=l?3:0}else l=1;else l=0;iq(T,3);c[(S&p)>>2]=3;if(((a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0?(Xg(c[(T&p)+16>>2]|0,31912,-1,1,0)|0,(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(T&p)+16>>2]|0)+40|0,31920,-1,1,0)|0,(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0):0)Xg((c[(T&p)+16>>2]|0)+80|0,31928,-1,1,0)|0;wh(T,11,m,l,1)|0;wh(T,35,1,3,0)|0;break a}case 26:{of(W)|0;break a}case 34:{if(!U)l=c[(W&p)+216>>2]|0;else{c[(G&p)>>2]=0;Dn(U,G)|0;l=c[(G&p)>>2]|0;if((l|0)>0)m=21;else{l=0;m=0}c[(W&p)+216>>2]=m;c[(W&p)+220>>2]=l;l=m}if((l|0)==21){l=c[(W&p)+220>>2]|0;m=l;l=((l|0)<0)<<31>>31}else{m=0;l=0}Jt(f,31944,m,l);break a}case 27:{if((U|0)!=0?(ji(U,x)|0)==0:0){G=x;Pc(c[(G&p)>>2]|0,c[(G&p)+4>>2]|0)|0}F=(Lc()|0)==0;G=9032;Jt(f,31976,F?c[(G&p)>>2]|0:-1,F?c[(G&p)+4>>2]|0:-1);break a}case 33:{if((U|0)!=0?(E=(ji(U,s)|0)==0,G=s,F=c[(G&p)+4>>2]|0,E&((F|0)>-1|(F|0)==-1&(c[(G&p)>>2]|0)>>>0>4294967295)):0)c[(W&p)+132>>2]=0;G=c[(W&p)+132>>2]|0;Jt(f,31992,G,((G|0)<0)<<31>>31);break a}case 12:{g=c[(S&p)>>2]|0;H=g+1|0;I=g+5|0;J=g+6|0;c[(S&p)>>2]=J;K=Oq(f)|0;iq(K,4);if((((a[((c[(K&p)>>2]|0)&n)+65>>0]|0)==0?(Xg(c[(K&p)+16>>2]|0,31232,-1,1,0)|0,(a[((c[(K&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(K&p)+16>>2]|0)+40|0,20456,-1,1,0)|0,(a[((c[(K&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(K&p)+16>>2]|0)+80|0,31432,-1,1,0)|0,(a[((c[(K&p)>>2]|0)&n)+65>>0]|0)==0):0)Xg((c[(K&p)+16>>2]|0)+120|0,31440,-1,1,0)|0;Ar(f,Q);w=c[((c[((c[(R&p)>>2]|0)+(Q<<4)&p)+12>>2]|0)&p)+16>>2]|0;if(!w)break a;u=(U|0)==0;h=f+68|0;v=K+32|0;D=K+4|0;E=K+24|0;F=g+2|0;G=g+3|0;A=g+4|0;t=f+8|0;while(1){if(u){B=c[(w&p)>>2]|0;C=c[(w&p)+8>>2]|0}else{B=0;C=sh(f,0,U,L)|0}if((C|0)!=0?(M=C+16|0,(c[(M&p)>>2]|0)!=0):0){gs(f,Q,c[(C&p)+32>>2]|0,0,c[(C&p)>>2]|0);g=(b[(C&o)+38>>1]|0)+J|0;if((g|0)>(c[(S&p)>>2]|0))c[(S&p)>>2]=g;Qq(f,0,Q,C,54);w=c[(C&p)>>2]|0;xh(K,wh(K,97,0,H,0)|0,w,0);w=c[(M&p)>>2]|0;if(!w)g=1;else{g=1;do{l=_h(W,c[(w&p)+8>>2]|0,L)|0;do if(l){c[(O&p)>>2]=0;gs(f,Q,c[(l&p)+32>>2]|0,0,c[(l&p)>>2]|0);if(Mt(f,l,w,O,0)|0)break a;m=c[(O&p)>>2]|0;if(!m){Qq(f,g,Q,l,54);break}else{wh(K,54,g,c[(m&p)+40>>2]|0,Q)|0;z=c[(t&p)>>2]|0;xh(z,-1,hs(f,m)|0,-6);break}}while(0);g=g+1|0;w=c[(w&p)+4>>2]|0}while((w|0)!=0)}if((c[(h&p)>>2]|0)<(g|0))c[(h&p)>>2]=g;s=wh(K,108,0,0,0)|0;g=c[(M&p)>>2]|0;if(g){z=C+36|0;y=1;while(1){x=g+8|0;w=_h(W,c[(x&p)>>2]|0,L)|0;c[(O&p)>>2]=0;c[(N&p)>>2]=0;r=(w|0)!=0;do if(r){Mt(f,w,g,O,N)|0;l=c[(O&p)>>2]|0;m=xs(K)|0;if(!(r&(l|0)==0)){w=m;P=306;break}w=c[(g&p)+36>>2]|0;if((w|0)==(b[(z&o)>>1]|0))wh(K,103,0,J,0)|0;else{wh(K,47,0,w,J)|0;Nt(K,C,w,J);wh(K,76,J,m,0)|0;wh(K,38,J,(c[(v&p)>>2]|0)+3|0,0)|0}wh(K,70,y,0,J)|0;wh(K,16,0,m,0)|0;w=c[(v&p)>>2]|0;if(w>>>0>1)c[((c[(D&p)>>2]|0)+((w+-2|0)*20|0)&p)+8>>2]=w;c[((c[(E&p)>>2]|0)&p)+88>>2]=w+-1;w=m}else{w=xs(K)|0;l=0;P=306}while(0);do if((P|0)==306){P=0;q=g+20|0;m=c[(q&p)>>2]|0;if((m|0)>0){k=0;do{m=c[(N&p)>>2]|0;if(!m)m=g+(k<<3)+36|0;else m=m+(k<<2)|0;R=k+J|0;nt(K,C,0,c[(m&p)>>2]|0,R);wh(K,76,R,w,0)|0;k=k+1|0;m=c[(q&p)>>2]|0}while((k|0)<(m|0))}if(!r)break;k=ot(K,l)|0;l=c[(q&p)>>2]|0;xh(K,wh(K,49,J,m,I)|0,k,l);xh(K,wh(K,69,y,w,I)|0,0,-14)}while(0);wh(K,103,0,F,0)|0;l=c[(x&p)>>2]|0;xh(K,wh(K,97,0,G,0)|0,l,0);wh(K,25,y+-1|0,A,0)|0;wh(K,35,H,4,0)|0;l=c[(E&p)>>2]|0;m=~w;do if((w|0)<0){w=c[(l&p)+112>>2]|0;if(!w)break;c[(w+(m<<2)&p)>>2]=c[(v&p)>>2]}while(0);c[(l&p)+88>>2]=(c[(v&p)>>2]|0)+-1;mg(W,c[(N&p)>>2]|0);g=c[(g&p)+4>>2]|0;if(!g)break;else y=y+1|0}}wh(K,9,0,s+1|0,0)|0;g=c[(v&p)>>2]|0;if(g>>>0>s>>>0)c[((c[(D&p)>>2]|0)+(s*20|0)&p)+8>>2]=g;c[((c[(E&p)>>2]|0)&p)+88>>2]=g+-1}if(!B)break;else w=B}break}case 23:{Jt(f,31016,0,0);break a}case 31:{if(!U){Jt(f,31032,d[(W&n)+64>>0]|0,0);break a}l=a[(U&n)>>0]|0;if((l+-48&255)>=3)if(!(dd(U,31352)|0))l=1;else{l=(dd(U,15168)|0)==0;l=l?2:0}else l=(l<<24>>24)+-48|0;m=(c[(f&p)>>2]|0)+64|0;if((d[(m&n)>>0]|0)==(l|0))break a;if(Kt(f)|0)break a;a[(m&n)>>0]=l;break a}case 29:{if(!U){G=(d[(C+(Q<<4)&n)+8>>0]|0)+-1|0;Jt(f,31104,G,((G|0)<0)<<31>>31);break a}if(!(a[(W&n)+63>>0]|0)){th(f,31120,G);break a}else{a[(C+(Q<<4)&n)+8>>0]=((ii(U,0,1)|0)&255)+1;Lt(W);break a}}case 4:if(!U){G=c[((c[(C+(Q<<4)&p)+12>>2]|0)&p)+80>>2]|0;Jt(f,30848,G,((G|0)<0)<<31>>31);break a}else{c[(G&p)>>2]=0;Dn(U,G)|0;G=c[(G&p)>>2]|0;c[((c[(C+(Q<<4)&p)+12>>2]|0)&p)+80>>2]=G;pq(c[(C+(Q<<4)&p)+4>>2]|0,G);break a}default:{if(!U)l=c[(W&p)+492>>2]|0;else{c[(G&p)>>2]=0;Dn(U,G)|0;l=c[(G&p)>>2]|0;G=(l|0)>0;l=G?l:0;c[(W&p)+444>>2]=G?74:0;c[(W&p)+448>>2]=G?W:0;c[(r&p)>>2]=0;c[(W&p)+492>>2]=l}Jt(f,31968,l,((l|0)<0)<<31>>31);break a}}while(0)}else{k=c[(q&p)>>2]|0;if(k){c[(G&p)>>2]=k;th(f,10344,G);Wc(c[(q&p)>>2]|0)}G=f+64|0;c[(G&p)>>2]=(c[(G&p)>>2]|0)+1;c[(f&p)+12>>2]=g;break}}while(0);mg(W,V);mg(W,U)}}while(0);i=X;return}function Gr(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0;h=i;i=i+16|0;if((i|0)>=(j|0))fa();g=h;a:do if(!d)d=0;else{f=d;while(1){if((a[(f&n)>>0]|0)==-121){d=c[(b&p)>>2]|0;if(!(a[((c[(d&p)>>2]|0)&n)+145>>0]|0))break;a[(f&n)>>0]=101}d=c[(f&p)+4>>2]|0;if(d&16384){d=0;break a}e=f+20|0;if(!(d&2048)){if(Hr(b,c[(e&p)>>2]|0)|0){d=1;break a}}else if(fr(b,c[(e&p)>>2]|0)|0){d=1;break a}if(Gr(b,c[(f&p)+16>>2]|0)|0){d=1;break a}f=c[(f&p)+12>>2]|0;if(!f){d=0;break a}}c[(g&p)>>2]=c[(b&p)+16>>2];th(d,29984,g);d=1}while(0);i=h;return d|0}function Hr(a,b){a=a|0;b=b|0;var d=0,e=0;a:do if((b|0)!=0?(c[(b&p)>>2]|0)>0:0){d=0;e=c[(b&p)+4>>2]|0;while(1){if(Gr(a,c[(e&p)>>2]|0)|0){d=1;break a}d=d+1|0;if((d|0)>=(c[(b&p)>>2]|0)){d=0;break}else e=e+20|0}}else d=0;while(0);return d|0}function Ir(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;xh(a,wh(a,122,b,0,0)|0,d,-1);d=c[((c[(a&p)>>2]|0)&p)+20>>2]|0;if((d|0)>0){e=a+96|0;b=c[(e&p)>>2]|0;a=0;do{b=b|1<>2]=b}return}function Jr(a,d){a=a|0;d=d|0;var e=0,f=0;e=d+8|0;f=Ur(a,0,e)|0;d=d+24|0;kg(c[(a&p)>>2]|0,c[(d&p)>>2]|0);c[(d&p)>>2]=f;if(f){d=f+40|0;b[(d&o)>>1]=(b[(d&o)>>1]|0)+1<<16>>16}e=(Rt(a,e)|0)==0;return (e?f:0)|0}function Kr(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0;n=i;i=i+16|0;if((i|0)>=(j|0))fa();m=n;a:do if((b|0)!=0?(f=c[(a&p)+12>>2]|0,(c[(b&p)>>2]|0)>0):0){g=a+8|0;h=a+4|0;k=0;l=b+8|0;while(1){if(!(c[(g&p)>>2]|0)){e=l+4|0;d=c[(e&p)>>2]|0;if((d|0)!=0?(dd(d,f)|0)!=0:0)break;mg(c[(c[(a&p)>>2]&p)>>2]|0,d);c[(e&p)>>2]=0;c[(l&p)>>2]=c[(h&p)>>2]}if(fr(a,c[(l&p)+20>>2]|0)|0){d=1;break a}if(Gr(a,c[(l&p)+44>>2]|0)|0){d=1;break a}k=k+1|0;if((k|0)>=(c[(b&p)>>2]|0)){d=0;break a}else l=l+72|0}b=c[(a&p)>>2]|0;l=c[(a&p)+20>>2]|0;c[(m&p)>>2]=c[(a&p)+16>>2];c[(m&p)+4>>2]=l;c[(m&p)+8>>2]=d;th(b,29936,m);d=1}else d=0;while(0);i=n;return d|0}function Lr(b,d){b=b|0;d=d|0;var e=0,f=0,g=0;f=i;i=i+16|0;if((i|0)>=(j|0))fa();e=f;g=c[(b&p)>>2]|0;if((((a[(g&n)+145>>0]|0)==0?(a[(b&n)+18>>0]|0)==0:0)?(c[(g&p)+24>>2]&2048|0)==0:0)?(Fc(d,25568,7)|0)==0:0){c[(e&p)>>2]=d;th(b,28440,e);b=1}else b=0;i=f;return b|0}function Mr(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,o=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0;x=i;i=i+16|0;if((i|0)>=(j|0))fa();w=x;do if(d){t=e&1;v=(f|0)!=0;if(v){g=c[(f&p)>>2]|0;r=32768}else{g=St(d,e)|0;g=mh(b,g,((g|0)<0)<<31>>31)|0;r=0}c[(w&p)>>2]=g;if(g){l=(t|0)==0;if(!l)if(!(c[(d&p)+12>>2]|0))q=(c[(d&p)+20>>2]|0)==0?16396:8220;else q=8220;else q=48;s=q&60;u=d+4|0;m=c[(u&p)>>2]|0;if((m&1024|0)==0?(h=c[(d&p)+8>>2]|0,(h|0)!=0):0){k=h;while(1)if(!(a[(k&n)>>0]|0))break;else k=k+1|0;o=(k-h&1073741823)+1|0}else o=0;if(l){if(!(m&16384))k=(m&8192|0)==0?48:28;else k=12;kw(g|0,d|0,k|0)|0;fw(g+k|0,0,48-k|0)|0}else kw(g|0,d|0,s|0)|0;m=g+4|0;h=q&24576|r|c[(m&p)>>2]&-122881;c[(m&p)>>2]=h;if(o){h=g+s|0;c[(g&p)+8>>2]=h;kw(h|0,c[(d&p)+8>>2]|0,o|0)|0;h=c[(m&p)>>2]|0}k=c[(u&p)>>2]|0;do if(!((h|k)&16384)){h=d+20|0;if(!(k&2048)){c[(g&p)+20>>2]=Pr(b,c[(h&p)>>2]|0,t)|0;break}else{c[(g&p)+20>>2]=gr(b,c[(h&p)>>2]|0,t)|0;break}}while(0);h=c[(m&p)>>2]|0;if(!(h&24576)){if(c[(u&p)>>2]&16384)break;c[(g&p)+12>>2]=Mr(b,c[(d&p)+12>>2]|0,0,0)|0;c[(g&p)+16>>2]=Mr(b,c[(d&p)+16>>2]|0,0,0)|0;break}t=Tt(d,e)|0;c[(w&p)>>2]=(c[(w&p)>>2]|0)+t;if(h&8192){c[(g&p)+12>>2]=Mr(b,c[(d&p)+12>>2]|0,1,w)|0;c[(g&p)+16>>2]=Mr(b,c[(d&p)+16>>2]|0,1,w)|0}if(v)c[(f&p)>>2]=c[(w&p)>>2]}}else g=0;while(0);i=x;return g|0}function Nr(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;a:do if((b|0)!=0?(d=mh(a,8,0)|0,(d|0)!=0):0){g=b+4|0;c[(d&p)+4>>2]=c[(g&p)>>2];e=mh(a,c[(g&p)>>2]<<3,0)|0;c[(d&p)>>2]=e;if(!e){mg(a,d);d=0;break}if((c[(g&p)>>2]|0)>0){f=0;while(1){h=c[(b&p)>>2]|0;c[(e+(f<<3)&p)>>2]=kh(a,c[(h+(f<<3)&p)>>2]|0)|0;c[(e+(f<<3)&p)+4>>2]=c[(h+(f<<3)&p)+4>>2];f=f+1|0;if((f|0)>=(c[(g&p)>>2]|0))break a;e=c[(d&p)>>2]|0}}}else d=0;while(0);return d|0}function Or(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0;f=e+4|0;g=(c[(f&p)>>2]|0)+40|0;b=mh(b,g,0)|0;if(b){fw(b|0,0,g|0)|0;g=b+40|0;kw(g|0,c[(e&p)>>2]|0,c[(f&p)>>2]|0)|0;c[(b&p)+12>>2]=g;c[(b&p)+16>>2]=c[(f&p)>>2];a[(b&n)>>0]=d}return b|0}function Pr(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0;do if((d|0)!=0?(f=mh(b,8,0)|0,(f|0)!=0):0){g=c[(d&p)>>2]|0;c[(f&p)>>2]=g;if(!(e&1)){h=c[(d&p)>>2]|0;g=1;while(1)if((g|0)<(h|0))g=g<<1;else break}g=mh(b,g*20|0,0)|0;c[(f&p)+4>>2]=g;if(!g){mg(b,f);f=0;break}if((c[(d&p)>>2]|0)>0){i=0;h=c[(d&p)+4>>2]|0;while(1){c[(g&p)>>2]=Mr(b,c[(h&p)>>2]|0,e,0)|0;c[(g&p)+4>>2]=kh(b,c[(h&p)+4>>2]|0)|0;c[(g&p)+8>>2]=kh(b,c[(h&p)+8>>2]|0)|0;a[(g&n)+12>>0]=a[(h&n)+12>>0]|0;j=g+13|0;k=a[(j&n)>>0]|0;a[(j&n)>>0]=k&-2;a[(j&n)>>0]=a[(h&n)+13>>0]&2|k&-4;c[(g&p)+16>>2]=c[(h&p)+16>>2];i=i+1|0;if((i|0)>=(c[(d&p)>>2]|0))break;else{g=g+20|0;h=h+20|0}}}}else f=0;while(0);return f|0}function Qr(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0;o=i;i=i+16|0;if((i|0)>=(j|0))fa();k=o;l=c[(a&p)>>2]|0;f=c[(b&p)+20>>2]|0;a:do if(f){e=c[(l&p)+20>>2]|0;if((e|0)>0){d=c[(l&p)+16>>2]|0;h=0;while(1){g=h+1|0;if((c[(d+(h<<4)&p)+12>>2]|0)==(f|0)){g=h;break a}if((g|0)<(e|0))h=g;else break}}else g=0}else g=-1e6;while(0);d=bn((c[(b&p)+24>>2]|0)+8|0,c[(b&p)+4>>2]|0,k)|0;if(!d)f=0;else f=c[(d&p)+8>>2]|0;d=c[((c[(l&p)+16>>2]|0)+(g<<4)&p)>>2]|0;e=(g|0)==1;if((((Sq(a,e?14:16,c[(b&p)>>2]|0,c[(f&p)>>2]|0,d)|0)==0?(Sq(a,9,e?13184:13208,0,d)|0)==0:0)?(m=Oq(a)|0,(m|0)!=0):0)?(n=c[(a&p)+408>>2]|0,Ar(a,g),n=((n|0)==0?a:n)+328|0,c[(n&p)>>2]=c[(n&p)>>2]|1<>2]|0,0),xh(m,n+4|0,10720,-2),Dr(a,g),wh(m,61,0,0,0)|0,n=c[(b&p)>>2]|0,xh(m,wh(m,126,g,0,0)|0,n,0),n=a+72|0,(c[(n&p)>>2]|0)<3):0)c[(n&p)>>2]=3;i=o;return}function Rr(d,e,f,g,h,k,l){d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;var m=0,q=0,r=0,s=0,t=0,u=0,v=0;v=i;i=i+32|0;if((i|0)>=(j|0))fa();m=v;t=c[(d&p)>>2]|0;c[(m&p)>>2]=0;c[(m&p)+4>>2]=0;c[(m&p)+8>>2]=0;c[(m&p)+12>>2]=0;c[(m&p)+16>>2]=0;c[(m&p)+20>>2]=0;c[(m&p)+24>>2]=0;c[(m&p)+28>>2]=0;c[(m&p)>>2]=d;do if(h)if((a[(h&n)>>0]|0)!=27)if(!(ls(m,h)|0)){u=5;break}else{u=13;break}else{a[(h&n)>>0]=97;u=5;break}else u=5;while(0);a:do if((u|0)==5){do if(k)if((a[(k&n)>>0]|0)!=27)if(!(ls(m,k)|0))break;else{u=13;break a}else{a[(k&n)>>0]=97;break}while(0);do if(l)if((a[(l&n)>>0]|0)!=27)if(!(ls(m,l)|0))break;else{u=13;break a}else{a[(l&n)>>0]=97;break}while(0);if(g){if((a[(g&n)>>0]|0)==97)g=c[(g&p)+8>>2]|0;else g=0;if(Sq(d,e,g,0,0)|0)break}s=Oq(d)|0;m=d+60|0;g=c[(m&p)>>2]|0;q=d+56|0;r=c[(q&p)>>2]|0;if((r|0)<4){r=d+72|0;g=c[(r&p)>>2]|0;c[(r&p)>>2]=g+4;g=g+1|0}else{c[(m&p)>>2]=g+4;c[(q&p)>>2]=r+-4}Rq(d,h,g);Rq(d,k,g+1|0);Rq(d,l,g+2|0);if(s){g=g+3|0;wh(s,1,0,g-(b[(f&o)>>1]|0)|0,g)|0;g=c[(s&p)+4>>2]|0;if(g)a[(g+(((c[(s&p)+32>>2]|0)+-1|0)*20|0)&n)+3>>0]=b[(f&o)>>1];xh(s,-1,f,-5);wh(s,144,(e|0)==24&1,0,0)|0}}while(0);if((u|0)==13){f=d+64|0;c[(f&p)>>2]=(c[(f&p)>>2]|0)+1}Gk(t,h);Gk(t,k);Gk(t,l);i=v;return}function Sr(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0;m=i;i=i+16|0;if((i|0)>=(j|0))fa();l=m;g=m+4|0;h=c[(b&p)>>2]|0;a:do if(!(Gn(b)|0)){if(!d){Ut(b,0);break}if(!((e|0)!=0?(c[(e&p)>>2]|0)!=0:0))f=6;do if((f|0)==6){f=Wq(c[(b&p)>>2]|0,d)|0;if(!f)break a;if(!(Yn(h,a[(h&n)+62>>0]|0,f,0)|0)){mg(h,f);break}else{Ut(b,f);mg(h,f);break a}}while(0);d=er(b,d,e,g)|0;if((d|0)>=0?(k=Wq(h,c[(g&p)>>2]|0)|0,(k|0)!=0):0){e=c[((c[(h&p)+16>>2]|0)+(d<<4)&p)>>2]|0;f=_h(h,k,e)|0;if(f){Vt(b,f,0);mg(h,k);break}e=bq(h,k,e)|0;mg(h,k);if(!e){th(b,28872,l);break}else{f=c[(b&p)+408>>2]|0;Ar(b,d);f=((f|0)==0?b:f)+328|0;c[(f&p)>>2]=c[(f&p)>>2]|1<=(j|0))fa();f=h;g=c[(a&p)>>2]|0;if(!(Gn(a)|0)){do if(!b){b=g+20|0;e=c[(b&p)>>2]|0;if((e|0)>0){d=0;do{if((d|0)!=1){Wt(a,d);e=c[(b&p)>>2]|0}d=d+1|0}while((d|0)<(e|0))}}else{if(c[(d&p)+4>>2]|0){e=er(a,b,d,f)|0;if((e|0)<=-1)break;e=c[((c[(g&p)+16>>2]|0)+(e<<4)&p)>>2]|0;b=Wq(g,c[(f&p)>>2]|0)|0;if(!b)break;d=bq(g,b,e)|0;if(!d){e=sh(a,0,b,e)|0;if(e)Xt(a,e,0)}else Xt(a,c[(d&p)+12>>2]|0,d);mg(g,b);break}d=Wq(g,b)|0;e=Vh(g,d)|0;mg(g,d);if((e|0)>-1){Wt(a,e);break}d=Wq(g,b)|0;if(d){e=bq(g,d,0)|0;if(!e){e=sh(a,0,d,0)|0;if(e)Xt(a,e,0)}else Xt(a,c[(e&p)+12>>2]|0,e);mg(g,d)}}while(0);e=Oq(a)|0;if(e)wh(e,144,0,0,0)|0}i=h;return}function Ur(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,i=0;f=c[(d&p)>>2]|0;if(!f)e=d+4|0;else{i=c[(a&p)>>2]|0;g=c[(i&p)+20>>2]|0;i=c[(i&p)+16>>2]|0;a:do if((g|0)>0){h=0;while(1){e=h+1|0;if((c[(i+(h<<4)&p)+12>>2]|0)==(f|0)){e=h;break a}if((e|0)<(g|0))h=e;else break}}else e=0;while(0);e=i+(e<<4)|0}return sh(a,b,c[(d&p)+8>>2]|0,c[(e&p)>>2]|0)|0}function Vr(b,d){b=b|0;d=d|0;var e=0,f=0,g=0;g=i;i=i+16|0;if((i|0)>=(j|0))fa();f=g;if(d){e=d;while(1)if(!(a[(e&n)>>0]|0))break;else e=e+1|0;if((e-d&1073741823)>>>0>6?(Fc(d,25568,7)|0)==0:0){c[(f&p)>>2]=d;th(b,25576,f);e=1}else e=0}else e=0;i=g;return e|0}function Wr(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;f=i;i=i+16|0;if((i|0)>=(j|0))fa();e=f;if(!b){c[(e&p)>>2]=d;a=uh(a,25992,e)|0}else{c[(e&p)>>2]=b;c[(e&p)+4>>2]=d;e=uh(a,26e3,e)|0;mg(a,b);a=e}i=f;return a|0}function Xr(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;h=i;i=i+16|0;if((i|0)>=(j|0))fa();g=h;e=c[(a&p)>>2]|0;f=c[((c[(e&p)+16>>2]|0)&p)+28>>2]|0;if((c[(b&p)+68>>2]|0)!=(f|0)?(d=As(a,b)|0,(d|0)!=0):0){b=d;d=0;do{if((c[(b&p)+20>>2]|0)==(f|0))d=Wr(e,d,c[(b&p)>>2]|0)|0;b=c[(b&p)+32>>2]|0}while((b|0)!=0);if(d){b=c[(a&p)>>2]|0;c[(g&p)>>2]=d;b=uh(b,25968,g)|0;mg(c[(a&p)>>2]|0,d);d=b}else d=0}else d=0;i=h;return d|0}function Yr(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,q=0,r=0;r=i;i=i+16|0;if((i|0)>=(j|0))fa();n=r;o=Oq(a)|0;if(o){e=c[(a&p)>>2]|0;h=c[(b&p)+68>>2]|0;a:do if(h){k=c[(e&p)+20>>2]|0;if((k|0)>0){f=c[(e&p)+16>>2]|0;g=0;while(1){e=g+1|0;if((c[(f+(g<<4)&p)+12>>2]|0)==(h|0))break a;if((e|0)<(k|0))g=e;else{g=e;break}}}else g=0}else g=-1e6;while(0);e=As(a,b)|0;if(e)do{f=c[(a&p)>>2]|0;l=c[(e&p)+20>>2]|0;b:do if(l){m=c[(f&p)+20>>2]|0;if((m|0)>0){k=c[(f&p)+16>>2]|0;h=0;while(1){f=h+1|0;if((c[(k+(h<<4)&p)+12>>2]|0)==(l|0)){f=h;break b}if((f|0)<(m|0))h=f;else break}}else f=0}else f=-1e6;while(0);m=c[(e&p)>>2]|0;xh(o,wh(o,126,f,0,0)|0,m,0);e=c[(e&p)+32>>2]|0}while((e|0)!=0);e=c[(b&p)>>2]|0;xh(o,wh(o,124,g,0,0)|0,e,0);e=c[(a&p)>>2]|0;c[(n&p)>>2]=d;e=uh(e,25952,n)|0;if((e|0)!=0?(Ir(o,g,e),q=Xr(a,b)|0,(q|0)!=0):0)Ir(o,1,q)}i=r;return} function gh(f){f=f|0;var g=0,l=0,m=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,E=0,F=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ea=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,cc=0,dc=0,ec=0,fc=0,gc=0,hc=0,ic=0,kc=0,nc=0,oc=0,qc=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,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,Xc=0,Yc=0,Zc=0,_c=0,$c=0,ad=0,ed=0,fd=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,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,ee=0,fe=0,ge=0,he=0,ie=0,je=0,ke=0,le=0,me=0,ne=0,oe=0,pe=0,qe=0;oe=i;i=i+1040|0;if((i|0)>=(j|0))fa();ke=oe+400|0;Tc=oe+792|0;id=oe+392|0;ad=oe+788|0;Sd=oe+320|0;md=oe+784|0;pd=oe+780|0;qd=oe+280|0;Nd=oe+680|0;$c=oe+240|0;Qd=oe+200|0;_c=oe+676|0;Xc=oe+672|0;Od=oe+160|0;Uc=oe+644|0;td=oe+152|0;Jd=oe+112|0;kd=oe+640|0;Ld=oe+636|0;Yc=oe+632|0;ud=oe+628|0;Ad=oe+624|0;wd=oe+604|0;Bd=oe+600|0;od=oe+596|0;xd=oe+576|0;Sc=oe+840|0;Cd=oe+572|0;Pd=oe+104|0;Dd=oe+568|0;ed=oe+564|0;fd=oe+96|0;Rd=oe+88|0;Ed=oe+560|0;Fd=oe+556|0;Gd=oe+552|0;yd=oe+532|0;zd=oe+512|0;jd=oe+508|0;vd=oe+504|0;Zc=oe+488|0;Md=oe+48|0;Vc=oe+456|0;Rc=oe+444|0;Kd=oe+8|0;sd=oe+440|0;Id=oe+412|0;Hd=oe;zc=f+4|0;s=c[(zc&p)>>2]|0;le=c[(f&p)>>2]|0;Jc=a[(le&n)+62>>0]|0;Nc=f+8|0;z=c[(Nc&p)>>2]|0;ne=le+32|0;l=ne;m=c[(l&p)>>2]|0;l=c[(l&p)+4>>2]|0;me=f+80|0;a:do if((c[(me&p)>>2]|0)==7){y=le+65|0;z=f+44|0;r=m;g=0;t=0;m=0;ie=1317}else{c[(me&p)>>2]=0;de=f+136|0;c[(de&p)>>2]=0;c[(de&p)+4>>2]=0;de=f+20|0;c[(de&p)>>2]=0;c[(le&p)+452>>2]=0;Cc=le+240|0;b:do if(!(c[(Cc&p)>>2]|0)){be=le+292|0;if(c[(be&p)>>2]|0){r=c[(f&p)+124>>2]|0;g=le+300|0;y=c[(g&p)>>2]|0;if(!r)yc=g;else{yc=g;y=(r>>>0)%(y>>>0)|0}}else{yc=le+300|0;y=0}he=f+76|0;ge=le+65|0;Zd=le+296|0;sb=f+176|0;tb=f+184|0;ub=f+92|0;vb=le+80|0;wb=le+84|0;xb=Jc&255;yb=Jc<<24>>24==1;zb=le+88|0;Ab=f+60|0;_d=f+144|0;fe=f+86|0;je=f+44|0;Bb=f+12|0;Cb=Uc+4|0;Db=Uc+16|0;Eb=Uc+12|0;Fb=Uc+25|0;Gb=Uc+20|0;Hb=f+200|0;Ib=f+56|0;$d=f+72|0;Jb=Jd+16|0;Kb=Jd+8|0;Lb=Jd+24|0;Mb=f+87|0;ae=le+156|0;Nb=le+500|0;Ob=le+496|0;ee=le+63|0;Pb=le+488|0;Qb=le+504|0;Rb=le+512|0;Sb=le+70|0;Tb=le+24|0;Ub=le+20|0;Xd=le+16|0;Vb=le+4|0;Yd=f+88|0;Wb=f+104|0;Xb=f+152|0;Yb=f+160|0;Zb=le+152|0;_b=le+64|0;$b=wd+4|0;cc=wd+6|0;dc=wd+8|0;ec=xd+4|0;fc=xd+8|0;gc=le+212|0;hc=le+208|0;ic=f+116|0;kc=yd+4|0;nc=yd+6|0;oc=yd+8|0;qc=$c+8|0;sc=$c+32|0;uc=$c+24|0;vc=$c+16|0;wc=$c+12|0;xc=zd+4|0;Y=zd+6|0;Z=zd+8|0;_=qd+8|0;$=qd+32|0;aa=qd+24|0;ea=qd+12|0;ga=qd+16|0;ha=le+164|0;ia=Zc+8|0;ja=Zc+4|0;ka=le+145|0;la=Zc+12|0;ma=Sd+4|0;na=Sd+12|0;oa=Sd+16|0;pa=Sd+20|0;qa=Sd+24|0;ra=Sd+28|0;sa=Sd+8|0;ta=Sd+40|0;ua=Sd+44|0;va=Sd+48|0;wa=Sd+52|0;xa=Sd+56|0;ya=Sd+60|0;za=Sd+64|0;Aa=Sd+65|0;Ba=le+128|0;Ca=f+28|0;Da=f+36|0;Ea=f+32|0;Fa=f+196|0;Ga=Vc+4|0;Ha=Vc+8|0;Ia=Md+8|0;Ja=Md+32|0;Ka=Md+24|0;La=Vc+20|0;Ma=Vc+12|0;Na=Vc+16|0;Oa=Vc+24|0;Pa=Rc+8|0;Qa=Rc+4|0;Ra=le+148|0;Sa=le+176|0;Ta=le+72|0;Ua=le+67|0;Va=Tc+20|0;Wa=Tc+24|0;Xa=Tc+4|0;Ya=Tc+16|0;Za=le+304|0;_a=le+328|0;$a=Kd+32|0;ab=Kd+8|0;bb=Kd+24|0;cb=le+308|0;db=Id+20|0;eb=le+69|0;ce=f+168|0;fb=qd+4|0;gb=qd+8|0;hb=qd+12|0;ib=qd+16|0;jb=qd+20|0;kb=qd+24|0;lb=qd+25|0;mb=le+180|0;nb=Od+32|0;ob=Od+8|0;pb=Od+12|0;qb=Od+16|0;rb=Od+24|0;W=0;X=0;g=0;u=0;t=c[(he&p)>>2]|0;x=0;c:while(1){r=m;d:while(1){if(a[(ge&n)>>0]|0){y=ge;z=je;m=x;ie=1317;break a}m=g+1|0;if(!(a[(s+(t*20|0)&n)+2>>0]&2))L=u;else{u=c[(s+(t*20|0)&p)+8>>2]|0;g=z+(u*40|0)|0;u=z+(u*40|0)+8|0;if(b[(u&o)>>1]&9312)vg(g);b[(u&o)>>1]=4;L=g}C=s+(t*20|0)|0;J=a[(C&n)>>0]|0;u=J&255;e:do switch(u|0){case 17:{g=m;m=r;u=L;ie=22;break d}case 18:{g=m;m=r;u=L;ie=23;break d}case 20:{g=m;m=r;ie=24;break d}case 21:{g=m;m=r;u=L;ie=25;break d}case 22:{g=m;m=r;u=L;ie=26;break d}case 23:{g=m;m=r;u=L;r=t;ie=27;break d}case 29:{g=m;m=r;r=t;ie=65;break d}case 30:{g=m;m=r;u=L;r=t;ie=66;break d}case 28:{g=m;m=r;u=L;r=t;ie=60;break d}case 32:{g=m;m=r;r=t;ie=72;break d}case 24:{g=m;m=r;u=L;r=t;ie=28;break d}case 25:{g=m;m=r;u=L;r=t;ie=44;break d}case 26:{g=m;m=r;u=L;r=t;ie=45;break d}case 133:{g=m;m=r;u=L;r=t;ie=46;break d}case 97:{a[(C&n)>>0]=27;C=s+(t*20|0)+16|0;v=c[(C&p)>>2]|0;if(!v)g=0;else{g=v;while(1)if(!(a[(g&n)>>0]|0))break;else g=g+1|0;g=g-v&1073741823}w=s+(t*20|0)+4|0;c[(w&p)>>2]=g;if(yb)u=0;else{u=Xg(L,v,-1,1,0)|0;if((u|0)==18){g=m;m=r;u=x;ie=1316;break c}if(Yl(L,xb)|0){y=ge;z=je;g=m;m=x;ie=1317;break a}c[(L&p)+24>>2]=0;g=L+8|0;b[(g&o)>>1]=e[(g&o)>>1]|2048;g=s+(t*20|0)+1|0;if((a[(g&n)>>0]|0)==-1)mg(le,c[(C&p)>>2]|0);a[(g&n)>>0]=-1;v=c[(L&p)+16>>2]|0;c[(C&p)>>2]=v;g=c[(L&p)+12>>2]|0;c[(w&p)>>2]=g}if((g|0)>(c[(zb&p)>>2]|0)){g=m;m=r;u=x;ie=1316;break c}else ie=57;break}case 31:{g=m;m=r;u=L;r=t;ie=67;break d}case 34:{g=m;m=r;r=t;ie=79;break d}case 35:{g=m;m=r;u=x;ie=80;break c}case 33:{g=m;m=r;ie=74;break d}case 94:{g=m;m=r;ie=94;break d}case 93:case 92:case 91:case 90:case 89:{g=m;P=C;m=r;r=t;ie=112;break d}case 27:{v=c[(s+(t*20|0)&p)+16>>2]|0;g=c[(s+(t*20|0)&p)+4>>2]|0;u=0;ie=57;break}case 16:{t=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;u=0;ie=19;break}case 36:{g=m;m=r;J=L;r=t;ie=166;break d}case 1:{V=a[(s+(t*20|0)&n)+3>>0]|0;C=V&255;A=c[(Bb&p)>>2]|0;g=z+((c[(s+(t*20|0)&p)+12>>2]|0)*40|0)|0;c[(Uc&p)>>2]=g;if(V<<24>>24){g=0;u=z+((c[(s+(t*20|0)&p)+8>>2]|0)*40|0)|0;while(1){c[(A+(g<<2)&p)>>2]=u;if((b[(u&o)+8>>1]&4096)!=0?(Vl(u)|0)!=0:0){y=ge;z=je;g=m;m=x;ie=1317;break a}g=g+1|0;if((g|0)>=(C|0))break;else u=u+40|0}g=c[(Uc&p)>>2]|0}V=c[(s+(t*20|0)&p)+16>>2]|0;c[(Cb&p)>>2]=V;c[(Db&p)>>2]=t;c[(Eb&p)>>2]=f;U=g+8|0;b[(U&o)>>1]=e[(U&o)>>1]&48640|1;a[(Fb&n)>>0]=0;U=ne;c[(U&p)>>2]=r;c[(U&p)+4>>2]=l;mc[c[(V&p)+12>>2]&63](Uc,C,A);l=ne;r=c[(l&p)>>2]|0;l=c[(l&p)+4>>2]|0;if(!(a[(Fb&n)>>0]|0))g=0;else{if(!(c[(Gb&p)>>2]|0))g=0;else{c[(ke&p)>>2]=Sg(c[(Uc&p)>>2]|0,1)|0;dh(je,le,10344,ke);g=c[(Gb&p)>>2]|0}em(f,t,c[(s+(t*20|0)&p)+4>>2]|0)}Yl(c[(Uc&p)>>2]|0,xb)|0;w=c[(Uc&p)>>2]|0;v=e[(w&o)+8>>1]|0;if(v&18){u=c[(w&p)+12>>2]|0;if(v&16384)u=(c[(w&p)>>2]|0)+u|0;if((u|0)>(c[((c[(w&p)+32>>2]|0)&p)+88>>2]|0)){g=m;m=r;u=x;ie=1316;break c}else{C=L;T=t;u=g}}else{C=L;T=t;u=g}break}case 88:case 87:case 86:case 85:{g=m;H=C;m=r;r=t;ie=184;break d}case 39:{g=m;m=r;J=L;r=t;ie=208;break d}case 37:{g=m;m=r;u=L;r=t;ie=202;break d}case 38:{g=m;m=r;J=L;r=t;ie=203;break d}case 83:case 80:case 81:case 82:case 78:case 79:{g=m;I=J;m=r;u=L;ie=213;break d}case 40:{V=c[(s+(t*20|0)&p)+4>>2]|0;g=z+(V*40|0)|0;if(!(b[(z+(V*40|0)&o)+8>>1]&16384))u=0;else u=Rg(g)|0;gm(g,c[(s+(t*20|0)&p)+8>>2]&255,Jc);C=L;T=t;break}case 41:{g=m;m=r;u=L;r=t;ie=248;break d}case 42:{g=m;m=r;u=L;r=t;ie=249;break d}case 43:{g=m;m=r;u=L;ie=256;break d}case 71:case 72:{g=m;m=r;r=t;ie=261;break d}case 76:{g=m;m=r;u=L;r=t;ie=286;break d}case 19:{g=m;m=r;r=t;ie=268;break d}case 96:{g=m;m=r;r=t;ie=273;break d}case 44:{g=m;m=r;u=L;r=t;ie=278;break d}case 46:case 45:{g=m;m=r;u=L;r=t;ie=281;break d}case 77:{g=m;m=r;u=L;r=t;ie=288;break d}case 47:{g=m;m=r;u=L;ie=290;break d}case 48:{g=m;m=r;u=L;r=t;ie=368;break d}case 49:{g=m;m=r;ie=371;break d}case 50:{E=c[(c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]&p)>>2]|0;f:do if(c[(E&p)+60>>2]|0){g=qm(E)|0;if(!g){K=E+76|0;H=E+44|0;F=E+72|0;v=0;u=0;g:while(1){C=b[(K&o)>>1]|0;J=c[(E+(C<<16>>16<<2)&p)+120>>2]|0;if(!(a[(J&n)+5>>0]|0)){if(!(a[(J&n)+2>>0]|0)){v=jw(e[(J&o)+18>>1]|0,0,v|0,u|0)|0;u=G}}else{v=jw(e[(J&o)+18>>1]|0,0,v|0,u|0)|0;u=G;while(1){if(!(C<<16>>16))break g;if(J){Bg(c[(J&p)+68>>2]|0);C=b[(K&o)>>1]|0}C=C+-1<<16>>16;b[(K&o)>>1]=C;b[(H&o)>>1]=0;a[(F&n)>>0]=d[(F&n)>>0]&249;J=C<<16>>16;A=E+(J<<1)+78|0;I=b[(A&o)>>1]|0;J=c[(E+(J<<2)&p)+120>>2]|0;if((I&65535)<(e[(J&o)+18>>1]|0)){C=I;break}}b[(A&o)>>1]=C+1<<16>>16;J=b[(K&o)>>1]|0;C=J;J=c[(E+(J<<16>>16<<2)&p)+120>>2]|0}C=b[(E+(C<<16>>16<<1)&o)+78>>1]|0;A=c[(J&p)+56>>2]|0;if(C<<16>>16==(b[(J&o)+18>>1]|0)){g=d[(J&n)+6>>0]|0;g=rm(E,d[(A+g&n)+9>>0]<<16|d[(A+g&n)+8>>0]<<24|d[(A+g&n)+10>>0]<<8|d[(A+g&n)+11>>0])|0}else{g=(C&65535)<<1;V=c[(J&p)+64>>2]|0;g=(d[(V+g&n)>>0]<<8|d[(V+(g|1)&n)>>0])&e[(J&o)+20>>1];g=rm(E,d[(A+g&n)+1>>0]<<16|d[(A+g&n)>>0]<<24|d[(A+g&n)+2>>0]<<8|d[(A+g&n)+3>>0])|0}if(g){v=0;u=0;break f}}g=qm(E)|0}else{v=0;u=0}}else{g=0;v=0;u=0}while(0);C=L;c[(C&p)>>2]=v;c[(C&p)+4>>2]=u;C=L;T=t;u=g;break}case 2:{O=c[(s+(t*20|0)&p)+4>>2]|0;v=c[(s+(t*20|0)&p)+16>>2]|0;if(!O){g=m;m=r;r=t;ie=446;break d}g=c[(Pb&p)>>2]|0;if(!g){s=v;g=m;m=r;u=x;ie=460;break c}else u=0;while(1){if(!(dd(c[(g&p)>>2]|0,v)|0)){M=g;break}g=c[(g&p)+24>>2]|0;if(!g){s=v;g=m;m=r;u=x;ie=460;break c}else u=u+1|0}H=(O|0)==1;if((c[(ae&p)>>2]|0)>0&H){g=m;m=r;u=x;ie=462;break c}F=M+24|0;if(!(c[(F&p)>>2]|0)){A=(a[(Sb&n)>>0]|0)!=0;if(A&H){g=tm(f,1)|0;if(g)break a;a[(ee&n)>>0]=1;if((Rl(f)|0)==5){g=t;ie=467;break c}a[(Sb&n)>>0]=0;A=1;K=u;u=c[(me&p)>>2]|0}else ie=469}else{A=0;ie=469}if((ie|0)==469){ie=0;K=(c[(Ob&p)>>2]|0)-u+-1|0;if((O|0)==2){C=(c[(Tb&p)>>2]|0)>>>1&1;if((c[(Ub&p)>>2]|0)>0){J=C^1;I=0;while(1){u=Il(c[((c[(Xd&p)>>2]|0)+(I<<4)&p)+4>>2]|0,516,J)|0;I=I+1|0;if(u){g=m;m=r;ie=1318;break c}g=c[(Ub&p)>>2]|0;if((I|0)>=(g|0)){ie=475;break}}}}else{g=c[(Ub&p)>>2]|0;C=0;ie=475}if((ie|0)==475){ie=0;if((g|0)>0){E=0;do{u=um(c[((c[(Xd&p)>>2]|0)+(E<<4)&p)+4>>2]|0,O,K)|0;E=E+1|0;if(u){g=m;m=r;ie=1318;break c}}while((E|0)<(c[(Ub&p)>>2]|0))}}if(!C)u=0;else{C=c[(Vb&p)>>2]|0;if(C)do{V=C+88|0;b[(V&o)>>1]=b[(V&o)>>1]|8;C=c[(C&p)+52>>2]|0}while((C|0)!=0);Eg(le);c[(Tb&p)>>2]=c[(Tb&p)>>2]|2;u=0}}C=c[(Pb&p)>>2]|0;if((C|0)!=(M|0))do{c[(Pb&p)>>2]=c[(C&p)+24>>2];mg(le,C);c[(Ob&p)>>2]=(c[(Ob&p)>>2]|0)+-1;C=c[(Pb&p)>>2]|0}while((C|0)!=(M|0));if(H){c[(Pb&p)>>2]=c[(F&p)>>2];mg(le,M);if(A){C=L;T=t;break e}else{g=m;C=O;m=r;A=K;E=L;r=t;ie=486;break d}}else{V=M+8|0;U=c[(V&p)+4>>2]|0;T=Qb;c[(T&p)>>2]=c[(V&p)>>2];c[(T&p)+4>>2]=U;T=M+16|0;U=c[(T&p)+4>>2]|0;V=Rb;c[(V&p)>>2]=c[(T&p)>>2];c[(V&p)+4>>2]=U;if(A){C=L;T=t;break e}else{C=O;g=m;m=r;A=K;E=L;r=t;ie=488;break d}}}case 3:{u=x;ie=489;break c}case 4:{v=s+(t*20|0)+8|0;g=c[(v&p)>>2]|0;if((g|0)!=0?(c[(Tb&p)>>2]&33554432|0)!=0:0){g=m;m=r;u=8;ie=1318;break c}I=s+(t*20|0)+4|0;J=c[((c[(Xd&p)>>2]|0)+(c[(I&p)>>2]<<4)&p)+4>>2]|0;if(!J){v=0;u=0;g=0}else{u=yg(J,g)|0;if((u|0)==5){g=t;ie=508;break c}else if(u){g=m;m=r;ie=1318;break c}do if((c[(v&p)>>2]|0)!=0?(b[(Yd&o)>>1]&32)!=0:0){if((a[(ee&n)>>0]|0)!=0?(c[(Zb&p)>>2]|0)<=1:0){g=0;break}g=c[(Wb&p)>>2]|0;if(!g){g=(c[(Nb&p)>>2]|0)+1|0;c[(Nb&p)>>2]=g;g=(c[(Ob&p)>>2]|0)+g|0;c[(Wb&p)>>2]=g}g=sm(le,0,g+-1|0)|0;if(!g){g=c[(Wb&p)>>2]|0;V=c[(J&p)+4>>2]|0;c[(V&p)+4>>2]=c[(J&p)>>2];g=hl(c[(V&p)>>2]|0,g)|0}V=Qb;U=c[(V&p)+4>>2]|0;T=Xb;c[(T&p)>>2]=c[(V&p)>>2];c[(T&p)+4>>2]=U;T=Rb;U=c[(T&p)+4>>2]|0;V=Yb;c[(V&p)>>2]=c[(T&p)>>2];c[(V&p)+4>>2]=U}else g=0;while(0);v=c[(J&p)+4>>2]|0;c[(v&p)+4>>2]=c[(J&p)>>2];v=c[((c[(v&p)+12>>2]|0)&p)+56>>2]|0;v=d[(v&n)+41>>0]<<16|d[(v&n)+40>>0]<<24|d[(v&n)+42>>0]<<8|d[(v&n)+43>>0];u=c[((c[((c[(Xd&p)>>2]|0)+(c[(I&p)>>2]<<4)&p)+12>>2]|0)&p)+4>>2]|0}if(a[(s+(t*20|0)&n)+3>>0]|0){if((v|0)!=(c[(s+(t*20|0)&p)+12>>2]|0)){g=m;s=I;m=r;u=x;ie=522;break c}if((u|0)!=(c[(s+(t*20|0)&p)+16>>2]|0)){g=m;s=I;m=r;u=x;ie=522;break c}else{C=L;T=t;u=g}}else{C=L;T=t;u=g}break}case 53:{g=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;if((g|0)!=0?(c[(g&p)+28>>2]|0)==(c[(s+(t*20|0)&p)+8>>2]|0):0){v=s+(t*20|0)+3|0;u=0;ie=548}else ie=536;break}case 51:{g=m;m=r;u=L;r=t;ie=525;break d}case 52:{A=s+(t*20|0)+4|0;g=c[(A&p)>>2]|0;v=c[(Xd&p)>>2]|0;C=c[(s+(t*20|0)&p)+12>>2]|0;w=z+(C*40|0)|0;u=Vg(w)|0;V=w;c[(V&p)>>2]=u;c[(V&p)+4>>2]=G;C=z+(C*40|0)+8|0;b[(C&o)>>1]=e[(C&o)>>1]&48640|4;C=s+(t*20|0)+8|0;u=Dg(c[(v+(g<<4)&p)+4>>2]|0,c[(C&p)>>2]|0,u)|0;C=c[(C&p)>>2]|0;if((C|0)==1){c[(c[(v+(g<<4)&p)+12>>2]&p)>>2]=c[(w&p)>>2];c[(Tb&p)>>2]=c[(Tb&p)>>2]|2}else if((C|0)==2)a[((c[(v+(g<<4)&p)+12>>2]|0)&n)+76>>0]=c[(w&p)>>2];if((c[(A&p)>>2]|0)==1){g=c[(Vb&p)>>2]|0;if(g)do{V=g+88|0;b[(V&o)>>1]=b[(V&o)>>1]|8;g=c[(g&p)+52>>2]|0}while((g|0)!=0);b[(Yd&o)>>1]=b[(Yd&o)>>1]&-9;C=L;T=t}else{C=L;T=t}break}case 55:case 54:{ie=536;break}case 57:case 56:{g=xm(f,c[(s+(t*20|0)&p)+4>>2]|0,c[(s+(t*20|0)&p)+8>>2]|0,-1,1)|0;if(!g){y=ge;z=je;g=m;m=x;ie=1317;break a}a[(g&n)+25>>0]=1;J=g+27|0;a[(J&n)>>0]=a[(J&n)>>0]|1;v=g+4|0;I=s+(t*20|0)+3|0;u=zm(c[(le&p)>>2]|0,0,le,v,d[(I&n)>>0]|5,1054)|0;do if(!u){u=yg(c[(v&p)>>2]|0,1)|0;if(!u){A=c[(s+(t*20|0)&p)+16>>2]|0;C=c[(v&p)>>2]|0;if(!A){u=ym(C,1,1,0,c[(g&p)>>2]|0)|0;a[(J&n)>>0]=a[(J&n)>>0]|4;break}u=Am(C,ud,d[(I&n)>>0]|2)|0;if(!u){c[(g&p)+8>>2]=A;u=ym(c[(v&p)>>2]|0,c[(ud&p)>>2]|0,1,A,c[(g&p)>>2]|0)|0}a[(J&n)>>0]=a[(J&n)>>0]&-5}}while(0);a[(J&n)>>0]=((a[(I&n)>>0]|0)!=8&1)<<3&255|a[(J&n)>>0]&-9;C=L;T=t;break}case 58:{g=m;m=r;ie=558;break d}case 60:{g=m;m=r;u=L;ie=568;break d}case 61:{g=m;m=r;u=L;r=t;ie=570;break d}case 59:{g=m;m=r;u=L;r=t;ie=566;break d}case 65:case 64:case 63:case 62:{g=m;K=u;m=r;r=t;ie=571;break d}case 66:{g=m;m=r;u=L;r=t;ie=596;break d}case 69:case 68:case 67:{g=m;H=C;m=r;u=L;ie=597;break d}case 73:{g=m;m=r;u=L;r=t;ie=624;break d}case 70:{V=c[(s+(t*20|0)&p)+12>>2]|0;g=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;u=c[(g&p)>>2]|0;c[(Cd&p)>>2]=0;V=z+(V*40|0)|0;U=c[(V&p)>>2]|0;V=c[(V&p)+4>>2]|0;u=Cm(u,0,U,V,0,Cd)|0;v=g+48|0;c[(v&p)>>2]=U;c[(v&p)+4>>2]=V;a[(g&n)+25>>0]=0;c[(g&p)+60>>2]=0;a[(g&n)+26>>0]=0;v=c[(Cd&p)>>2]|0;if(v)t=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;c[(g&p)+12>>2]=v;C=L;T=t;break}case 74:{H=Pd;c[(H&p)>>2]=0;c[(H&p)+4>>2]=0;c[(Dd&p)>>2]=0;H=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;g=c[(H&p)>>2]|0;if(!g){u=0;v=0;g=0}else{K=H+27|0;do if(!(a[(K&n)>>0]&2)){u=Hm(g,Dd)|0;if(u){g=m;m=r;ie=1318;break c}if(c[(Dd&p)>>2]|0){V=Pd;c[(V&p)>>2]=1;c[(V&p)+4>>2]=0;break}km(c[(H&p)>>2]|0,Pd);u=Pd;g=c[(u&p)>>2]|0;u=c[(u&p)+4>>2]|0;if((g|0)==-1&(u|0)==2147483647){a[(K&n)>>0]=a[(K&n)>>0]|2;break}else{U=jw(g|0,u|0,1,0)|0;V=Pd;c[(V&p)>>2]=U;c[(V&p)+4>>2]=G;break}}while(0);J=c[(s+(t*20|0)&p)+12>>2]|0;if(J){g=c[(sb&p)>>2]|0;if(!g)C=z;else{while(1){u=c[(g&p)+4>>2]|0;if(!u)break;else g=u}C=c[(g&p)+16>>2]|0}I=C+(J*40|0)|0;A=Vg(I)|0;g=G;V=I;c[(V&p)>>2]=A;c[(V&p)+4>>2]=g;V=C+(J*40|0)+8|0;b[(V&o)>>1]=e[(V&o)>>1]&48640|4;if((A|0)==-1&(g|0)==2147483647){g=m;m=r;u=13;ie=1318;break c}if(a[(K&n)>>0]&2){g=m;m=r;u=13;ie=1318;break c}J=Pd;u=c[(J&p)>>2]|0;J=c[(J&p)+4>>2]|0;C=jw(A|0,g|0,1,0)|0;g=G;if((J|0)<(g|0)|(J|0)==(g|0)&u>>>0>>0){V=Pd;c[(V&p)>>2]=C;c[(V&p)+4>>2]=g}else{C=u;g=J}V=I;c[(V&p)>>2]=C;c[(V&p)+4>>2]=g}h:do if(!(a[(K&n)>>0]&2))g=0;else{u=0;while(1){cd(8,Pd);V=Pd;V=jw(c[(V&p)>>2]|0,c[(V&p)+4>>2]&1073741823|0,1,0)|0;g=G;U=Pd;c[(U&p)>>2]=V;c[(U&p)+4>>2]=g;g=Cm(c[(H&p)>>2]|0,0,V,g,0,Dd)|0;if(c[(Dd&p)>>2]|g)break h;u=u+1|0;if((u|0)>=100){g=m;m=r;u=13;ie=1318;break c}}}while(0);a[(H&n)+26>>0]=0;c[(H&p)+60>>2]=0;v=Pd;u=c[(v&p)>>2]|0;v=c[(v&p)+4>>2]|0}C=L;c[(C&p)>>2]=u;c[(C&p)+4>>2]=v;C=L;T=t;u=g;break}case 84:case 75:{g=m;C=J;m=r;u=L;r=t;ie=647;break d}case 95:{g=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;u=Jm(c[(g&p)>>2]|0)|0;c[(g&p)+60>>2]=0;if((((u|0)==0?(Gc=c[(gc&p)>>2]|0,(Gc|0)!=0):0)?(Hc=c[(s+(t*20|0)&p)+16>>2]|0,(Hc|0)!=0):0)?(a[(g&n)+27>>0]&4)!=0:0){V=g+48|0;bc[Gc&1](c[(hc&p)>>2]|0,9,c[((c[(Xd&p)>>2]|0)+(a[(g&n)+24>>0]<<4)&p)>>2]|0,Hc,c[(V&p)>>2]|0,c[(V&p)+4>>2]|0)}if(!(c[(s+(t*20|0)&p)+8>>2]&1)){C=L;T=t}else{c[(ub&p)>>2]=(c[(ub&p)>>2]|0)+1;C=L;T=t}break}case 98:{g=m;m=r;u=L;r=t;ie=671;break d}case 99:{g=m;m=r;u=L;r=t;ie=672;break d}case 100:{v=c[(s+(t*20|0)&p)+8>>2]|0;C=z+(v*40|0)|0;g=c[((c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0)&p)+56>>2]|0;if(!(a[(g&n)+56>>0]|0)){u=c[(g&p)+36>>2]|0;g=u;u=u+8|0}else{V=c[(g&p)+20>>2]|0;u=c[((c[(V&p)+8>>2]|0)&p)+4>>2]|0;V=c[(V&p)+12>>2]|0;g=V+(u*56|0)+20|0;u=c[(V+(u*56|0)&p)+32>>2]|0}g=c[(g&p)>>2]|0;if(!(fh(C,g)|0)){c[(z+(v*40|0)&p)+12>>2]=g;V=z+(v*40|0)+8|0;b[(V&o)>>1]=e[(V&o)>>1]&48640|16;kw(c[(z+(v*40|0)&p)+16>>2]|0,u|0,g|0)|0;u=0}else u=7;c[((c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+12>>2]<<2)&p)>>2]|0)&p)+60>>2]=0;T=t;break}case 102:case 101:{v=c[(s+(t*20|0)&p)+8>>2]|0;J=z+(v*40|0)|0;A=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;C=c[(A&p)>>2]|0;A=A+27|0;if(a[(A&n)>>0]&4){lm(C,ed);g=c[(ed&p)>>2]|0;if(g>>>0>(c[(zb&p)>>2]|0)>>>0){g=m;m=r;u=x;ie=1316;break c}}else{km(C,fd);T=fd;g=c[(T&p)>>2]|0;T=c[(T&p)+4>>2]|0;V=c[(zb&p)>>2]|0;U=((V|0)<0)<<31>>31;if((T|0)>(U|0)|(T|0)==(U|0)&g>>>0>V>>>0){g=m;m=r;u=x;ie=1316;break c}c[(ed&p)>>2]=g}if(fh(J,g>>>0>32?g:32)|0){y=ge;z=je;g=m;m=x;ie=1317;break a}c[(z+(v*40|0)&p)+12>>2]=g;g=z+(v*40|0)+8|0;b[(g&o)>>1]=e[(g&o)>>1]&48640|16;g=c[(ed&p)>>2]|0;u=c[(z+(v*40|0)&p)+16>>2]|0;if(!(a[(A&n)>>0]&4))u=Lm(C,0,g,u,0)|0;else u=Dh(C,0,g,u)|0;a[(z+(v*40|0)&n)+10>>0]=1;C=J;T=t;break}case 103:{v=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;w=v+25|0;if(a[(w&n)>>0]|0){g=m;m=r;u=L;r=t;ie=700;break d}do if(!(a[(v&n)+26>>0]|0)){g=c[(v&p)+32>>2]|0;if(g){V=c[(g&p)>>2]|0;u=rc[c[((c[(V&p)>>2]|0)&p)+48>>2]&127](g,Rd)|0;Mm(f,V);break}if((a[((c[(v&p)>>2]|0)&n)+73>>0]|0)!=1){u=jm(v)|0;if(u){g=m;m=r;ie=1318;break c}if(a[(w&n)>>0]|0){g=m;m=r;u=L;r=t;ie=708;break d}}km(c[(v&p)>>2]|0,Rd);u=0}else{U=v+48|0;V=c[(U&p)+4>>2]|0;u=Rd;c[(u&p)>>2]=c[(U&p)>>2];c[(u&p)+4>>2]=V;u=0}while(0);V=Rd;T=c[(V&p)+4>>2]|0;C=L;c[(C&p)>>2]=c[(V&p)>>2];c[(C&p)+4>>2]=T;C=L;T=t;break}case 108:{ie=715;break}case 104:{g=m;m=r;u=L;r=t;ie=711;break d}case 107:case 106:{c[(ic&p)>>2]=(c[(ic&p)>>2]|0)+1;ie=715;break}case 105:{T=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;u=c[(T&p)>>2]|0;c[(Ed&p)>>2]=0;u=Hm(u,Ed)|0;V=c[(Ed&p)>>2]|0;a[(T&n)+25>>0]=V;a[(T&n)+26>>0]=0;c[(T&p)+60>>2]=0;T=c[(s+(t*20|0)&p)+8>>2]|0;C=L;T=(T|0)>0&(V|0)!=0?T+-1|0:t;break}case 7:case 6:{if(!(c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0)){g=m;m=r;S=z;T=s;U=W;V=X;u=L;r=t;break d}else ie=765;break}case 5:{g=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;c[(Fd&p)>>2]=0;w=c[(g&p)+56>>2]|0;if(a[(w&n)+56>>0]|0){u=Wm(c[(w&p)+20>>2]|0,Fd)|0;ie=766;break e}u=w+36|0;v=c[(u&p)>>2]|0;V=v+4|0;c[(u&p)>>2]=c[(V&p)>>2];c[(V&p)>>2]=0;if(!((c[(w&p)+40>>2]|0)!=0|(v|0)==0))mg(le,v);c[(Fd&p)>>2]=(c[(u&p)>>2]|0)==0&1;u=0;ie=766;break}case 9:case 8:{ie=765;break}case 110:case 109:{A=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;S=c[(s+(t*20|0)&p)+8>>2]|0;u=c[(A&p)>>2]|0;C=s+(t*20|0)+3|0;if(a[(C&n)>>0]&1)c[(ub&p)>>2]=(c[(ub&p)>>2]|0)+1;if((b[(z+(S*40|0)&o)+8>>1]&16384)!=0?(Ud=Rg(z+(S*40|0)|0)|0,(Ud|0)!=0):0){g=m;m=r;s=Ud;u=x;ie=1309;break c}H=c[(A&p)+56>>2]|0;T=z+(S*40|0)+12|0;P=c[(T&p)>>2]|0;if(!H){if(!(a[(C&n)>>0]&16))g=0;else g=c[(A&p)+12>>2]|0;u=Im(u,c[(z+(S*40|0)&p)+16>>2]|0,P,((P|0)<0)<<31>>31,10360,0,0,c[(s+(t*20|0)&p)+12>>2]|0,g)|0;c[(A&p)+60>>2]=0;C=L;T=t;break e}C=P;g=((P|0)<0)<<31>>31;A=0;do{A=A+1|0;C=mw(C|0,g|0,7)|0;g=G}while(((C|0)!=0|(g|0)!=0)&(A|0)<9);K=P+8|0;I=A+P|0;M=H+4|0;A=c[(M&p)>>2]|0;do if(!A)u=0;else{if(!(c[(H&p)+40>>2]|0)){C=H+44|0;V=c[(C&p)>>2]|0;if((V|0)<=(A|0)?!((c[2265]|0)!=0?(V|0)>(c[(H&p)>>2]|0):0):0){u=0;break}}else{V=c[(H&p)+48>>2]|0;if(!((V|0)!=0&(V+K|0)>(A|0))){u=0;break}C=H+44|0}u=Om(H)|0;c[(C&p)>>2]=0;c[(H&p)+48>>2]=0}while(0);C=H+36|0;J=H+44|0;c[(J&p)>>2]=(c[(J&p)>>2]|0)+I;J=H+8|0;if((I|0)>(c[(J&p)>>2]|0))c[(J&p)>>2]=I;E=H+40|0;J=c[(E&p)>>2]|0;if(!J){g=qg(K,((K|0)<0)<<31>>31)|0;if(!g){g=m;m=r;s=7;u=x;ie=1309;break c}c[(g&p)+4>>2]=c[(C&p)>>2]}else{g=H+48|0;I=c[(g&p)>>2]|0;K=I+K|0;F=H+52|0;H=c[(F&p)>>2]|0;if((K|0)>(H|0)){I=H;do I=I<<1;while((I|0)<(K|0));V=c[(M&p)>>2]|0;I=(I|0)>(V|0)?V:I;I=(I|0)<(K|0)?K:I;J=rg(J,I,((I|0)<0)<<31>>31)|0;if(!J){g=m;m=r;s=7;u=x;ie=1309;break c}A=J+((c[(C&p)>>2]|0)-(c[(E&p)>>2]|0))|0;c[(C&p)>>2]=A;c[(E&p)>>2]=J;c[(F&p)>>2]=I;I=c[(g&p)>>2]|0}else A=c[(C&p)>>2]|0;c[(g&p)>>2]=I+(P+15&-8);c[(J+I&p)+4>>2]=A-J;g=J+I|0}kw(g+8|0,c[(z+(S*40|0)&p)+16>>2]|0,c[(T&p)>>2]|0)|0;c[(g&p)>>2]=c[(T&p)>>2];c[(C&p)>>2]=g;C=L;T=t;break}case 112:{g=m;m=r;r=t;ie=801;break d}case 111:{v=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;g=c[(v&p)>>2]|0;c[(yd&p)>>2]=c[(v&p)+8>>2];b[(kc&o)>>1]=c[(s+(t*20|0)&p)+12>>2];a[(nc&n)>>0]=0;c[(oc&p)>>2]=z+((c[(s+(t*20|0)&p)+8>>2]|0)*40|0);u=Cm(g,yd,0,0,0,Gd)|0;if(!(c[(Gd&p)>>2]|u))u=Jm(g)|0;c[(v&p)+60>>2]=0;C=L;T=t;break}case 116:case 115:case 114:case 113:{u=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;c[(zd&p)>>2]=c[(u&p)+8>>2];b[(xc&o)>>1]=c[(s+(t*20|0)&p)+16>>2];a[(Y&n)>>0]=((J&255)<115)<<31>>31;c[(Z&p)>>2]=z+((c[(s+(t*20|0)&p)+12>>2]|0)*40|0);V=Sd;c[(V&p)>>2]=0;c[(V&p)+4>>2]=0;km(c[(u&p)>>2]|0,Sd);V=Sd;g=c[(V&p)>>2]|0;V=jw(g|0,c[(V&p)+4>>2]|0,-1,-1)|0;U=G;if(!(U>>>0>0|(U|0)==0&V>>>0>2147483646)){b[(_&o)>>1]=0;c[($&p)>>2]=le;c[(aa&p)>>2]=0;g=nm(c[(u&p)>>2]|0,0,g,1,qd)|0;if(!g){u=Km(c[(ea&p)>>2]|0,c[(ga&p)>>2]|0,zd,0)|0;if((b[(_&o)>>1]&9312)==0&(c[(aa&p)>>2]|0)==0)g=0;else{Qg(qd);g=0}}else u=0}else{c[(ke&p)>>2]=68730;c[(ke&p)+4>>2]=10788;bd(11,13600,ke);g=11;u=0}if((((a[(C&n)>>0]&1)==0?u+1|0:0-u|0)|0)>0){C=L;T=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;u=g}else{C=L;T=t;u=g}break}case 117:{O=L+8|0;b[(O&o)>>1]=1;if((c[(Zb&p)>>2]|0)>((c[(ha&p)>>2]|0)+1|0)){g=m;m=r;u=x;ie=832;break c}N=c[(s+(t*20|0)&p)+12>>2]|0;M=c[((c[(Xd&p)>>2]|0)+(N<<4)&p)+4>>2]|0;P=s+(t*20|0)+4|0;I=c[(P&p)>>2]|0;C=M+4|0;K=c[(C&p)>>2]|0;c[(K&p)+4>>2]=c[(M&p)>>2];c[(ke&p)>>2]=0;do if(!(c[(K&p)+8>>2]|0)){u=dl(K,I,ke,0)|0;if(!u){u=Xm(M,I,0)|0;if(u){g=c[(ke&p)>>2]|0;if(!g){A=0;break}Bg(c[(g&p)+68>>2]|0);A=0;break}if(I>>>0<=1){g=c[(ke&p)>>2]|0;pl(g,9);if(!g){u=0;A=0;break}Bg(c[(g&p)+68>>2]|0);u=0;A=0;break}if(!(a[(K&n)+17>>0]|0)){g=c[(ke&p)>>2]|0;u=Ym(c[(g&p)+52>>2]|0,g,c[(g&p)+72>>2]|0)|0;if(!g){A=0;break}Bg(c[(g&p)+68>>2]|0);A=0;break}J=c[(C&p)>>2]|0;c[(J&p)+4>>2]=c[(M&p)>>2];J=c[((c[(J&p)+12>>2]|0)&p)+56>>2]|0;J=d[(J&n)+53>>0]<<16|d[(J&n)+52>>0]<<24|d[(J&n)+54>>0]<<8|d[(J&n)+55>>0];C=c[(ke&p)>>2]|0;if((J|0)==(I|0)){u=Ym(c[(C&p)+52>>2]|0,C,c[(C&p)+72>>2]|0)|0;if(C)Bg(c[(C&p)+68>>2]|0);if(!u)A=0;else{A=0;break}}else{if(C)Bg(c[(C&p)+68>>2]|0);u=dl(K,J,Sd,0)|0;if(u){A=0;break}C=c[(Sd&p)>>2]|0;u=Zm(K,C,1,0,I,0)|0;if(C)Bg(c[(C&p)+68>>2]|0);if(u){A=0;break}c[(Sd&p)>>2]=0;u=dl(K,J,Sd,0)|0;C=c[(Sd&p)>>2]|0;if(u){if(!C){A=0;break}}else u=Ym(c[(C&p)+52>>2]|0,C,c[(C&p)+72>>2]|0)|0;Bg(c[(C&p)+68>>2]|0);if(!u)A=J;else{A=0;break}}H=((c[2514]|0)>>>0)/((c[(K&p)+32>>2]|0)>>>0)|0;F=H+1|0;I=K+36|0;while(1){C=J+-1|0;if((C|0)==(F|0)){J=C;continue}if(C>>>0<2)E=0;else{E=J+-3|0;E=E-((E>>>0)%(((((c[(I&p)>>2]|0)>>>0)/5|0)+1|0)>>>0)|0)|0;E=((E+1|0)==(H|0)?3:2)+E|0}if((E|0)==(C|0))J=C;else break}u=Dg(M,4,C)|0}else A=0}else{u=262;A=0}while(0);b[(O&o)>>1]=4;V=L;c[(V&p)>>2]=A;c[(V&p)+4>>2]=((A|0)<0)<<31>>31;if((u|0)==0&(A|0)!=0){g=m;K=N;C=P;m=r;u=L;r=t;ie=865;break d}else{C=L;T=t}break}case 118:{c[(jd&p)>>2]=0;g=s+(t*20|0)+12|0;u=Xm(c[((c[(Xd&p)>>2]|0)+(c[(s+(t*20|0)&p)+8>>2]<<4)&p)+4>>2]|0,c[(s+(t*20|0)&p)+4>>2]|0,(c[(g&p)>>2]|0)!=0?jd:0)|0;g=c[(g&p)>>2]|0;if((g|0)!=0?(Ic=c[(jd&p)>>2]|0,c[(ub&p)>>2]=(c[(ub&p)>>2]|0)+Ic,(g|0)>0):0){C=z+(g*40|0)|0;T=C;T=jw(c[(T&p)>>2]|0,c[(T&p)+4>>2]|0,Ic|0,((Ic|0)<0)<<31>>31|0)|0;c[(C&p)>>2]=T;c[(C&p)+4>>2]=G;C=L;T=t}else{C=L;T=t}break}case 121:case 120:{c[(vd&p)>>2]=0;u=Am(c[((c[(Xd&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<4)&p)+4>>2]|0,vd,J<<24>>24==121?1:2)|0;T=c[(vd&p)>>2]|0;C=L;c[(C&p)>>2]=T;c[(C&p)+4>>2]=((T|0)<0)<<31>>31;C=L;T=t;break}case 119:{g=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;u=c[(g&p)+56>>2]|0;if(u){g=m;m=r;J=L;r=t;ie=878;break d}u=c[(g&p)>>2]|0;C=L;T=t;u=Xm(c[(u&p)>>2]|0,c[(u&p)+60>>2]|0,0)|0;break}case 123:{C=L;T=t;u=an(le,c[(s+(t*20|0)&p)+4>>2]|0)|0;break}case 124:{g=m;m=r;u=L;r=t;ie=886;break d}case 122:{g=m;m=r;J=L;r=t;ie=881;break d}case 126:{g=m;m=r;u=L;r=t;ie=895;break d}case 125:{g=m;m=r;J=L;r=t;ie=887;break d}case 127:{g=m;m=r;u=L;ie=903;break d}case 128:{g=m;m=r;J=L;ie=947;break d}case 129:{w=c[(s+(t*20|0)&p)+4>>2]|0;v=z+(w*40|0)|0;w=z+(w*40|0)+8|0;g=b[(w&o)>>1]|0;do if(g&32){E=c[(v&p)>>2]|0;u=E+26|0;g=b[(u&o)>>1]|0;if(!(g&2)){if(!(g&1)){g=E+8|0;c[(g&p)>>2]=kn(c[(g&p)>>2]|0)|0;g=b[(u&o)>>1]|0}b[(u&o)>>1]=g&65535|2}C=E+8|0;A=c[(C&p)>>2]|0;if(!A){g=b[(w&o)>>1]|0;break}w=A;v=c[(w&p)>>2]|0;w=c[(w&p)+4>>2]|0;V=c[(A&p)+8>>2]|0;c[(C&p)>>2]=V;if(!V)Zk(E);u=c[(s+(t*20|0)&p)+12>>2]|0;g=z+(u*40|0)|0;u=z+(u*40|0)+8|0;if(!(b[(u&o)>>1]&9312)){ie=g;c[(ie&p)>>2]=v;c[(ie&p)+4>>2]=w;b[(u&o)>>1]=4;u=0;ie=19;break e}else{Zg(g,v,w);u=0;ie=19;break e}}while(0);if(!(g&9312))b[(w&o)>>1]=1;else vg(v);t=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;u=0;ie=19;break}case 130:{g=m;m=r;u=L;ie=966;break d}case 131:{g=m;m=r;u=L;r=t;ie=993;break d}case 132:{g=m;m=r;u=L;r=t;ie=1009;break d}case 134:{g=m;m=r;J=L;r=t;ie=1010;break d}case 135:{g=m;m=r;u=L;r=t;ie=1015;break d}case 136:{g=m;m=r;r=t;ie=1022;break d}case 137:{g=m;m=r;u=L;r=t;ie=1028;break d}case 138:{g=m;m=r;u=L;r=t;ie=1030;break d}case 139:{g=m;m=r;J=L;r=t;ie=1032;break d}case 140:{g=m;m=r;u=L;r=t;ie=1034;break d}case 141:{g=m;m=r;u=L;r=t;ie=1036;break d}case 10:{V=a[(s+(t*20|0)&n)+3>>0]|0;g=V&255;u=c[(Bb&p)>>2]|0;if(V<<24>>24){v=0;w=z+((c[(s+(t*20|0)&p)+8>>2]|0)*40|0)|0;while(1){c[(u+(v<<2)&p)>>2]=w;v=v+1|0;if((v|0)>=(g|0))break;else w=w+40|0}}V=c[(s+(t*20|0)&p)+16>>2]|0;c[(Ga&p)>>2]=V;U=c[(s+(t*20|0)&p)+12>>2]|0;c[(Ha&p)>>2]=z+(U*40|0);U=z+(U*40|0)+12|0;c[(U&p)>>2]=(c[(U&p)>>2]|0)+1;b[(Ia&o)>>1]=1;c[(Ja&p)>>2]=le;c[(Ka&p)>>2]=0;c[(Vc&p)>>2]=Md;c[(La&p)>>2]=0;c[(Ma&p)>>2]=f;c[(Na&p)>>2]=t;a[(Oa&n)>>0]=0;mc[c[(V&p)+16>>2]&63](Vc,g,u);if(!(c[(La&p)>>2]|0))u=0;else{c[(ke&p)>>2]=Sg(Md,1)|0;dh(je,le,10344,ke);u=c[(La&p)>>2]|0}do if((a[(Oa&n)>>0]|0)!=0?(Mc=c[(s+((t+-1|0)*20|0)&p)+4>>2]|0,(Mc|0)!=0):0){g=z+(Mc*40|0)|0;v=z+(Mc*40|0)+8|0;if(!(b[(v&o)>>1]&9312)){V=g;c[(V&p)>>2]=1;c[(V&p)+4>>2]=0;b[(v&o)>>1]=4;break}else{Zg(g,1,0);break}}while(0);if((b[(Ia&o)>>1]&9312)==0&(c[(Ka&p)>>2]|0)==0){C=L;T=t}else{Qg(Md);C=L;T=t}break}case 11:{c[(Rc&p)>>2]=0;c[(Pa&p)>>2]=-1;c[(Qa&p)>>2]=-1;g=Wh(le,c[(s+(t*20|0)&p)+4>>2]|0,c[(s+(t*20|0)&p)+8>>2]|0,Qa,Pa)|0;if((g|0)==5){c[(Rc&p)>>2]=1;g=0}v=0;w=z+((c[(s+(t*20|0)&p)+12>>2]|0)*40|0)|0;while(1){C=c[(Rc+(v<<2)&p)>>2]|0;A=((C|0)<0)<<31>>31;u=w+8|0;if(!(b[(u&o)>>1]&9312)){V=w;c[(V&p)>>2]=C;c[(V&p)+4>>2]=A;b[(u&o)>>1]=4}else Zg(w,C,A);v=v+1|0;if((v|0)==3){C=L;T=t;u=g;break}else w=w+40|0}break}case 142:{C=c[(s+(t*20|0)&p)+4>>2]|0;v=z+(C*40|0)|0;u=Yk(v,c[(s+(t*20|0)&p)+16>>2]|0)|0;if(u){c[(ke&p)>>2]=Sg(v,1)|0;dh(je,le,10344,ke)}Yl(v,xb)|0;w=e[(z+(C*40|0)&o)+8>>1]|0;if(w&18){g=c[(z+(C*40|0)&p)+12>>2]|0;if(w&16384)g=(c[(v&p)>>2]|0)+g|0;if((g|0)>(c[((c[(z+(C*40|0)&p)+32>>2]|0)&p)+88>>2]|0)){g=m;m=r;u=x;ie=1316;break c}else{C=L;T=t}}else{C=L;T=t}break}case 12:{g=c[(s+(t*20|0)&p)+12>>2]|0;L=c[((c[(Xd&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<4)&p)+4>>2]|0;I=c[(c[(L&p)+4>>2]&p)>>2]|0;J=a[(I&n)+5>>0]|0;H=J&255;g=(g|0)==-1?H:g;do if((d[(I&n)+16>>0]|0)>2)g=H;else if((c[(c[(I&p)+64>>2]&p)>>2]|0)!=0?(V=I+72|0,U=c[(V&p)+4>>2]|0,(U|0)>0|(U|0)==0&(c[(V&p)>>2]|0)>>>0>0):0){g=H;break}while(0);if(!(a[(I&n)+15>>0]|0))A=c[(I&p)+168>>2]|0;else A=10360;K=(g|0)==5;if(K)if(A){C=A;while(1)if(!(a[(C&n)>>0]|0))break;else C=C+1|0;if(C-A&1073741823){C=c[(c[(I&p)+60>>2]&p)>>2]|0;if(!(a[(I&n)+4>>0]|0))if((c[(C&p)>>2]|0)>1?!((c[(C&p)+52>>2]|0)==0|(g|0)==(H|0)):0)ie=1077;else{g=H;u=0}else ie=1076}else{g=H;u=0}}else{g=H;u=0}else ie=1076;if((ie|0)==1076){ie=0;if((g|0)==(H|0)){g=H;u=0}else ie=1077}do if((ie|0)==1077){ie=0;C=J<<24>>24==5;if(C|K){if(!(a[(ee&n)>>0]|0)){g=m;s=K;m=r;u=x;ie=1080;break c}if((c[(Zb&p)>>2]|0)>1){g=m;s=K;m=r;u=x;ie=1080;break c}if(!C){if(J<<24>>24==4)sn(I,2)|0}else{J=I+208|0;if(!(c[(J&p)>>2]|0)){c[(_c&p)>>2]=0;u=fl(I,1)|0;if(u)break;u=c[(I&p)>>2]|0;u=pc[c[(u&p)+32>>2]&31](u,c[(I&p)+212>>2]|0,0,_c)|0;if((u|0)==0&(c[(_c&p)>>2]|0)!=0)u=pn(I)|0;if(u)break;if(c[(J&p)>>2]|0)ie=1088}else ie=1088;if((ie|0)==1088){ie=0;u=qn(I)|0;if(u)break;u=rn(c[(J&p)>>2]|0,d[(I&n)+9>>0]|0,c[(I&p)+152>>2]|0,c[(I&p)+200>>2]|0)|0;c[(J&p)>>2]=0;if(u)break}sn(I,g)|0}u=Fg(L,K?2:1)|0}else u=0}while(0);g=sn(I,(u|0)==0?g:H)|0;C=c[(s+(t*20|0)&p)+8>>2]|0;J=z+(C*40|0)|0;b[(z+(C*40|0)&o)+8>>1]=2562;if((g|0)==6){c[(z+(C*40|0)&p)+16>>2]=0;g=0}else{v=c[(g<<2&p)+32216>>2]|0;c[(z+(C*40|0)&p)+16>>2]=v;g=v;while(1)if(!(a[(g&n)>>0]|0))break;else g=g+1|0;g=g-v&1073741823}c[(z+(C*40|0)&p)+12>>2]=g;a[(z+(C*40|0)&n)+10>>0]=1;Yl(J,xb)|0;C=J;T=t;break}case 13:{if(!(a[(ee&n)>>0]|0)){g=m;m=r;u=x;ie=1101;break c}if((c[(Ra&p)>>2]|0)>1){g=m;m=r;u=x;ie=1103;break c}S=c[(Tb&p)>>2]|0;N=c[(vb&p)>>2]|0;w=c[(wb&p)>>2]|0;v=c[(Sa&p)>>2]|0;c[(Tb&p)>>2]=S&-2762753|2107392;c[(Sa&p)>>2]=0;g=c[((c[(Xd&p)>>2]|0)&p)+4>>2]|0;P=g+4|0;I=a[((c[(c[(P&p)>>2]&p)>>2]|0)&n)+15>>0]|0;V=c[(Ub&p)>>2]|0;u=tn(le,je,(a[(_b&n)>>0]|0)==2?42432:42464)|0;J=c[(Ub&p)>>2]|0;if((J|0)>(V|0))M=(c[(Xd&p)>>2]|0)+(J+-1<<4)|0;else M=0;i:do if(!u){O=c[((c[(Xd&p)>>2]|0)+(J+-1<<4)&p)+4>>2]|0;un(O)|0;T=c[(P&p)>>2]|0;c[(T&p)+4>>2]=c[(g&p)>>2];T=(c[(T&p)+32>>2]|0)-(c[(T&p)+36>>2]|0)|0;u=tn(le,je,42488)|0;if(!u){u=tn(le,je,42528)|0;if(!u){u=yg(g,2)|0;if(!u){J=c[(P&p)>>2]|0;if((a[((c[(J&p)>>2]|0)&n)+5>>0]|0)==5)c[(Ta&p)>>2]=0;if(!(xg(O,c[(J&p)+32>>2]|0,T,0)|0)){if(I<<24>>24==0?(xg(O,c[(Ta&p)>>2]|0,T,0)|0)!=0:0){u=7;break}if(a[(ge&n)>>0]|0){u=7;break}J=a[(Ua&n)>>0]|0;do if(J<<24>>24>-1)J=J<<24>>24;else{J=c[(P&p)>>2]|0;c[(J&p)+4>>2]=c[(g&p)>>2];if(!(a[(J&n)+17>>0]|0)){J=0;break}J=(a[(J&n)+18>>0]|0)==0?1:2}while(0);vn(O,J)|0;u=wn(le,je,42536)|0;if(u)break;u=wn(le,je,42688)|0;if(u)break;u=wn(le,je,42792)|0;if(u)break;u=wn(le,je,42912)|0;if(u)break;u=wn(le,je,43112)|0;if(u)break;u=wn(le,je,43232)|0;if(u)break;u=tn(le,je,43392)|0;if(!u)J=0;else break;do{u=d[(J&n)+43576>>0]|0;wm(g,u,ad);u=Dg(O,u,(d[((J|1)&n)+43576>>0]|0)+(c[(ad&p)>>2]|0)|0)|0;J=J+2|0;if(u)break i}while((J|0)<10);H=c[(P&p)>>2]|0;c[(H&p)+4>>2]=c[(g&p)>>2];J=c[(O&p)>>2]|0;K=O+4|0;I=c[(K&p)>>2]|0;c[(I&p)+4>>2]=J;H=c[((c[(H&p)>>2]|0)&p)+60>>2]|0;F=c[(H&p)>>2]|0;if(F){V=c[(I&p)+32>>2]|0;V=sw(c[(I&p)+44>>2]|0,0,V|0,((V|0)<0)<<31>>31|0)|0;u=id;c[(u&p)>>2]=V;c[(u&p)+4>>2]=G;u=ac[c[(F&p)+40>>2]&63](H,11,id)|0;u=(u|0)==12?0:u;if(u)break;J=c[(O&p)>>2]|0}U=Tc+0|0;V=U+48|0;do{c[(U&p)>>2]=0;U=U+4|0}while((U|0)<(V|0));c[(Va&p)>>2]=J;c[(Wa&p)>>2]=O;c[(Xa&p)>>2]=g;c[(Ya&p)>>2]=1;gd(Tc,2147483647)|0;u=hd(Tc)|0;if(u){C=c[(c[((c[(Xa&p)>>2]|0)&p)+4>>2]&p)>>2]|0;if(a[(C&n)+15>>0]|0)break;if(a[(C&n)+12>>0]|0)break;xn(C);break}u=(c[(P&p)>>2]|0)+22|0;b[(u&o)>>1]=e[(u&o)>>1]&65533;u=un(O)|0;if(u)break;J=c[(K&p)>>2]|0;c[(J&p)+4>>2]=c[(O&p)>>2];if(!(a[(J&n)+17>>0]|0))E=0;else E=(a[(J&n)+18>>0]|0)==0?1:2;vn(g,E)|0;u=xg(g,c[((c[(K&p)>>2]|0)&p)+32>>2]|0,T,1)|0}else u=7}}}}while(0);c[(Tb&p)>>2]=S;c[(vb&p)>>2]=N;c[(wb&p)>>2]=w;c[(Sa&p)>>2]=v;xg(g,-1,-1,1)|0;a[(ee&n)>>0]=1;if(M){V=M+4|0;Ml(c[(V&p)>>2]|0);c[(V&p)>>2]=0;c[(M&p)+12>>2]=0}Eg(le);C=L;T=t;break}case 143:{V=c[((c[(Xd&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<4)&p)+4>>2]|0;I=c[(V&p)+4>>2]|0;c[(I&p)+4>>2]=c[(V&p)>>2];if(!(a[(I&n)+17>>0]|0)){g=m;m=r;u=L;ie=1157;break d}E=I+44|0;H=c[(E&p)>>2]|0;A=I+12|0;C=c[((c[(A&p)>>2]|0)&p)+56>>2]|0;C=d[(C&n)+37>>0]<<16|d[(C&n)+36>>0]<<24|d[(C&n)+38>>0]<<8|d[(C&n)+39>>0];F=El(I,H,C)|0;if(H>>>0>>0){g=m;m=r;u=x;ie=1145;break c}if(!C){g=m;m=r;u=L;ie=1157;break d}J=I+8|0;g=c[(J&p)>>2]|0;do if(g){C=g;do{if(C){ie=1150;break}C=c[2]|0}while((C|0)!=0);if((ie|0)==1150){ie=0;u=Fl(C,0,0)|0;if(u)break;g=c[(J&p)>>2]|0}if(g){do{V=g+72|0;a[(V&n)>>0]=d[(V&n)>>0]&251;g=c[(g&p)+8>>2]|0}while((g|0)!=0);ie=1154}else ie=1154}else ie=1154;while(0);if((ie|0)==1154){ie=0;u=Gl(I,F,H,0)|0;if(!u){u=Gg(c[((c[(A&p)>>2]|0)&p)+68>>2]|0)|0;V=c[((c[(A&p)>>2]|0)&p)+56>>2]|0;U=c[(E&p)>>2]|0;a[(V&n)+28>>0]=U>>>24;a[(V&n)+29>>0]=U>>>16;a[(V&n)+30>>0]=U>>>8;a[(V&n)+31>>0]=U}}if((u|0)==101){g=m;m=r;u=L;ie=1157;break d}else{C=L;T=t}break}case 145:{g=c[(s+(t*20|0)&p)+12>>2]|0;if((g&255|0)==0?(c[(Tb&p)>>2]&16384|0)!=0:0){g=m;m=r;S=z;T=s;U=W;V=X;u=L;r=t;break d}C=c[((c[(Xd&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<4)&p)+4>>2]|0;A=c[(s+(t*20|0)&p)+8>>2]|0;if(!(a[(C&n)+9>>0]|0)){g=m;m=r;S=z;T=s;U=W;V=X;u=L;r=t;break d}v=g+1&255;w=C+4|0;c[((c[(w&p)>>2]|0)&p)+4>>2]=c[(C&p)>>2];u=bl(C,A,v)|0;if(!u){g=m;m=r;u=L;r=t;ie=1166;break d}if((u&255|0)!=6){g=m;m=r;s=u;u=x;ie=1309;break c}c[(ke&p)>>2]=c[(s+(t*20|0)&p)+16>>2];dh(je,le,42224,ke);C=L;T=t;break}case 144:{g=m;m=r;u=L;r=t;ie=1158;break d}case 146:{J=c[(s+(t*20|0)&p)+16>>2]|0;v=c[(Za&p)>>2]|0;u=(v|0)>0;if(u?(c[(_a&p)>>2]|0)==0:0){u=6;ie=1188}else ie=1179;j:do if((ie|0)==1179){ie=0;if(!J){g=m;m=r;S=z;T=s;U=W;V=X;u=L;r=t;break d}g=J+8|0;w=(c[(c[(g&p)>>2]&p)>>2]|0)+56|0;if(c[(w&p)>>2]|0){if(u){C=c[(_a&p)>>2]|0;A=0;do{if((c[(C+(A<<2)&p)>>2]|0)==(J|0)){u=0;ie=1188;break j}A=A+1|0}while((A|0)<(v|0))}u=yn(le)|0;if(!u){u=lc[c[(w&p)>>2]&127](c[(g&p)>>2]|0)|0;if(!u){u=c[(Za&p)>>2]|0;c[(Za&p)>>2]=u+1;c[((c[(_a&p)>>2]|0)+(u<<2)&p)>>2]=J;u=J+12|0;c[(u&p)>>2]=(c[(u&p)>>2]|0)+1;u=0}}else ie=1188}else u=0}while(0);if((ie|0)==1188){ie=0;if(!J){C=L;T=t;break e}g=J+8|0}Mm(f,c[(g&p)>>2]|0);C=L;T=t;break}case 147:{U=Kd+0|0;V=U+40|0;do{c[(U&p)>>2]=0;U=U+4|0}while((U|0)<(V|0));c[($a&p)>>2]=le;g=_g(Kd,z+((c[(s+(t*20|0)&p)+8>>2]|0)*40|0)|0)|0;u=Sg(Kd,1)|0;k:do if(u){v=_h(le,u,c[((c[(Xd&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<4)&p)>>2]|0)|0;g=c[(c[(v&p)+56>>2]&p)>>2]|0;u=bn(cb,g,Xc)|0;if((u|0)!=0?(Oc=c[(u&p)+8>>2]|0,(Oc|0)!=0):0){g=zn(le,v,Oc,c[((c[(Oc&p)>>2]|0)&p)+4>>2]|0,je)|0;if(g)break;u=v+60|0;g=c[(u&p)>>2]|0;if(!g){g=0;break}while(1){if((c[(g&p)>>2]|0)==(le|0))break;g=c[(g&p)+24>>2]|0;if(!g){g=0;break k}}g=yn(le)|0;if(g)break;g=c[(u&p)>>2]|0;l:do if(!g)g=0;else while(1){if((c[(g&p)>>2]|0)==(le|0))break l;g=c[(g&p)+24>>2]|0;if(!g){g=0;break}}while(0);V=c[(Za&p)>>2]|0;c[(Za&p)>>2]=V+1;c[((c[(_a&p)>>2]|0)+(V<<2)&p)>>2]=g;g=g+12|0;c[(g&p)>>2]=(c[(g&p)>>2]|0)+1;g=0;break}c[(ke&p)>>2]=g;c[(je&p)>>2]=uh(le,28320,ke)|0;g=1}while(0);if((b[(ab&o)>>1]&9312)==0&(c[(bb&p)>>2]|0)==0){C=L;T=t;u=g}else{Qg(Kd);C=L;T=t;u=g}break}case 148:{c[(ha&p)>>2]=(c[(ha&p)>>2]|0)+1;g=_h(le,c[(s+(t*20|0)&p)+16>>2]|0,c[((c[(Xd&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<4)&p)>>2]|0)|0;m:do if((g|0)!=0?(Pc=g+60|0,Qc=c[(Pc&p)>>2]|0,(Qc|0)!=0):0){u=Qc;do{if((c[((c[(u&p)+8>>2]|0)&p)+4>>2]|0)>0){u=6;break m}u=c[(u&p)+24>>2]|0}while((u|0)!=0);g=Ok(le,g)|0;v=g+8|0;u=lc[c[((c[(c[(g&p)+4>>2]&p)>>2]|0)&p)+20>>2]&127](c[(v&p)>>2]|0)|0;if(!u){c[(v&p)>>2]=0;c[(Pc&p)>>2]=0;An(g);u=0}}else u=0;while(0);c[(ha&p)>>2]=(c[(ha&p)>>2]|0)+-1;C=L;T=t;break}case 149:{g=m;m=r;u=L;r=t;ie=1213;break d}case 150:{g=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;C=c[(s+(t*20|0)&p)+12>>2]|0;A=z+(C*40|0)|0;if(a[(g&n)+25>>0]|0){g=m;m=r;u=L;r=t;ie=1226;break d}V=g+32|0;u=c[(c[(V&p)>>2]&p)>>2]|0;U=c[(u&p)>>2]|0;c[(Id&p)>>2]=0;c[(Id&p)+4>>2]=0;c[(Id&p)+8>>2]=0;c[(Id&p)+12>>2]=0;c[(Id&p)+16>>2]=0;c[(Id&p)+20>>2]=0;c[(Id&p)+24>>2]=0;c[(Id&p)>>2]=A;v=z+(C*40|0)+8|0;b[(v&o)>>1]=e[(v&o)>>1]&48640|1;V=ac[c[(U&p)+44>>2]&63](c[(V&p)>>2]|0,Id,c[(s+(t*20|0)&p)+8>>2]|0)|0;Mm(f,u);u=c[(db&p)>>2]|0;u=(u|0)==0?V:u;Yl(A,xb)|0;v=e[(v&o)>>1]|0;if(v&18){g=c[(z+(C*40|0)&p)+12>>2]|0;if(v&16384)g=(c[(A&p)>>2]|0)+g|0;if((g|0)>(c[((c[(z+(C*40|0)&p)+32>>2]|0)&p)+88>>2]|0)){g=m;m=r;u=x;ie=1316;break c}else{C=L;T=t}}else{C=L;T=t}break}case 14:{A=c[(s+(t*20|0)&p)+12>>2]|0;C=A+1|0;F=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;J=c[(F&p)+32>>2]|0;I=c[(J&p)>>2]|0;H=c[(I&p)>>2]|0;E=c[(z+(C*40|0)&p)>>2]|0;A=c[(z+(A*40|0)&p)>>2]|0;g=c[(Bb&p)>>2]|0;if((E|0)>0){u=0;do{V=u;u=u+1|0;c[(g+(V<<2)&p)>>2]=z+((u+C|0)*40|0)}while((u|0)!=(E|0))}u=tc[c[(H&p)+32>>2]&31](J,A,c[(s+(t*20|0)&p)+16>>2]|0,E,g)|0;Mm(f,I);if((u|0)==0?(lc[c[(H&p)+40>>2]&127](J)|0)!=0:0)t=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;a[(F&n)+25>>0]=0;C=L;T=t;break}case 151:{g=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;if(a[(g&n)+25>>0]|0){g=m;m=r;S=z;T=s;U=W;V=X;u=L;r=t;break d}g=g+32|0;v=c[(g&p)>>2]|0;V=c[(v&p)>>2]|0;u=c[(V&p)>>2]|0;v=lc[c[(u&p)+36>>2]&127](v)|0;Mm(f,V);if((v|0)==0?(lc[c[(u&p)+40>>2]&127](c[(g&p)>>2]|0)|0)!=0:0){u=0;ie=19;break e}t=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;u=v;ie=19;break}case 15:{F=s+(t*20|0)+16|0;v=c[((c[(F&p)>>2]|0)&p)+8>>2]|0;if(!v){g=m;m=r;s=6;u=x;ie=1309;break c}g=c[(v&p)>>2]|0;if(!g){g=m;m=r;s=6;u=x;ie=1309;break c}I=c[(s+(t*20|0)&p)+8>>2]|0;E=g+52|0;C=c[(E&p)>>2]|0;if(!C){g=m;m=r;S=z;T=s;U=W;V=X;u=L;r=t;break d}H=a[(eb&n)>>0]|0;J=c[(Bb&p)>>2]|0;if((I|0)>0){C=0;A=z+((c[(s+(t*20|0)&p)+12>>2]|0)*40|0)|0;while(1){c[(J+(C<<2)&p)>>2]=A;C=C+1|0;if((C|0)==(I|0))break;else A=A+40|0}C=c[(E&p)>>2]|0}A=s+(t*20|0)+3|0;a[(eb&n)>>0]=a[(A&n)>>0]|0;u=pc[C&31](v,I,J,Hd)|0;a[(eb&n)>>0]=H;Mm(f,v);if(!u){if(c[(s+(t*20|0)&p)+4>>2]|0){l=Hd;r=c[(l&p)>>2]|0;l=c[(l&p)+4>>2]|0;V=ne;c[(V&p)>>2]=r;c[(V&p)+4>>2]=l}}else if((u&255|0)==19?(a[((c[(F&p)>>2]|0)&n)+16>>0]|0)!=0:0){g=a[(A&n)>>0]|0;if(g<<24>>24==5)g=2;else if(g<<24>>24==4){g=m;m=r;S=z;T=s;U=W;V=X;u=L;r=t;break d}a[(fe&n)>>0]=g;C=L;T=t;break e}c[(ub&p)>>2]=(c[(ub&p)>>2]|0)+1;C=L;T=t;break}case 152:{g=c[((c[(s+(t*20|0)&p)+16>>2]|0)&p)+8>>2]|0;u=c[(s+(t*20|0)&p)+4>>2]|0;v=z+(u*40|0)|0;if(((b[(z+(u*40|0)&o)+8>>1]&2)!=0?(a[(z+(u*40|0)&n)+10>>0]|0)!=1:0)?(Wd=Bn(v,1)|0,(Wd|0)!=0):0){g=m;m=r;s=Wd;u=x;ie=1309;break c}u=rc[c[((c[(g&p)>>2]|0)&p)+76>>2]&127](g,c[(z+(u*40|0)&p)+16>>2]|0)|0;Mm(f,g);b[(Yd&o)>>1]=b[(Yd&o)>>1]&-9;C=L;T=t;break}case 153:{g=m;m=r;u=L;r=t;ie=1257;break d}case 155:{g=m;m=r;ie=1264;break d}case 154:{g=m;m=r;J=L;r=t;ie=1258;break d}default:{g=m;m=r;S=z;T=s;U=W;V=X;u=L;r=t;break d}}while(0);n:do if((ie|0)==57){ie=0;w=L+8|0;b[(w&o)>>1]=2562;c[(L&p)+16>>2]=v;c[(L&p)+12>>2]=g;a[(L&n)+10>>0]=Jc;if((a[(s+(t*20|0)&n)+3>>0]|0)!=0?(V=z+((c[(s+(t*20|0)&p)+12>>2]|0)*40|0)|0,!((c[(V&p)>>2]|0)==0&(c[(V&p)+4>>2]|0)==0)):0){b[(w&o)>>1]=2576;C=L;T=t}else{C=L;T=t}}else if((ie|0)==536){if(b[(Yd&o)>>1]&8){g=m;m=r;s=516;u=x;ie=1309;break c}C=c[(s+(t*20|0)&p)+8>>2]|0;I=c[(s+(t*20|0)&p)+12>>2]|0;g=c[(Xd&p)>>2]|0;H=c[(g+(I<<4)&p)+4>>2]|0;if(J<<24>>24==55){g=a[((c[(g+(I<<4)&p)+12>>2]|0)&n)+76>>0]|0;if((g&255)<(d[(Mb&n)>>0]|0)){a[(Mb&n)>>0]=g;J=1}else J=1}else J=0;v=s+(t*20|0)+3|0;if(a[(v&n)>>0]&4){V=z+(C*40|0)|0;g=Vg(V)|0;c[(V&p)>>2]=g;c[(V&p)+4>>2]=G;V=z+(C*40|0)+8|0;b[(V&o)>>1]=e[(V&o)>>1]&48640|4;if((g|0)<2){g=m;m=r;s=x;ie=542;break c}else E=g}else E=C;u=s+(t*20|0)+1|0;C=a[(u&n)>>0]|0;if(C<<24>>24==-6){A=c[(s+(t*20|0)&p)+16>>2]|0;C=(e[(A&o)+8>>1]|0)+(e[(A&o)+6>>1]|0)|0}else if(C<<24>>24==-14){C=c[(s+(t*20|0)&p)+16>>2]|0;A=0}else{C=0;A=0}g=xm(f,c[(s+(t*20|0)&p)+4>>2]|0,C,I,1)|0;if(!g){y=ge;z=je;g=m;m=x;ie=1317;break a}a[(g&n)+25>>0]=1;V=g+27|0;a[(V&n)>>0]=a[(V&n)>>0]|8;c[(g&p)+28>>2]=E;ie=ym(H,E,J,A,c[(g&p)>>2]|0)|0;c[(g&p)+8>>2]=A;a[(V&n)>>0]=((a[(u&n)>>0]|0)!=-6&1)<<2&255|a[(V&n)>>0]&-5;u=ie;ie=548}else if((ie|0)==715){ie=0;M=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;V=c[(M&p)+56>>2]|0;do if(!V){u=c[(M&p)>>2]|0;g=qm(u)|0;if(!g)if(!(a[(u&n)+73>>0]|0)){v=1;g=0}else{v=0;g=Vm(u)|0}else v=1;a[(M&n)+26>>0]=0;c[(M&p)+60>>2]=0;a[(M&n)+25>>0]=v;if(!v){C=L;T=t;u=g;break n}}else{do if(!(a[(V&n)+56>>0]|0)){g=V+36|0;if(!(c[(g&p)>>2]|0)){g=0;ie=756}else{g=Nm(V+64|0,g)|0;ie=755}}else{g=Om(V)|0;if(!g){U=V+59|0;o:do if(!(a[(U&n)>>0]|0)){u=0;g=0}else{w=0;v=0;p:while(1){T=V+(w<<6)+64|0;c[(ke&p)>>2]=0;S=V+(w<<6)+92|0;C=c[(S&p)>>2]|0;J=((C|0)<0)<<31>>31;do if((C|0)>16){I=16;H=0;E=0;while(1){I=iw(I|0,H|0,4)|0;H=G;F=E+1|0;if(!((H|0)<(J|0)|(H|0)==(J|0)&I>>>0>>0)){H=E;break}else E=F}P=Sd;c[(P&p)>>2]=0;c[(P&p)+4>>2]=0;if((C|0)<17){ie=726;break}u=Qm(16)|0;c[(ke&p)>>2]=u;J=(u|0)==0;I=c[(S&p)>>2]|0;if(!((I|0)>0&(J^1))){g=J?7:0;break}N=(H|0)>0;P=0;O=0;do{c[(qd&p)>>2]=0;g=I-P|0;g=Pm(T,(g|0)<16?g:16,Sd,qd)|0;if(g){ie=747;break p}g=Rm(T,c[(qd&p)>>2]|0,pd)|0;do if(N){I=1;J=1;do{J=J<<4;I=I+1|0}while((I|0)!=(F|0));if(!g){H=1;I=u}else{J=c[(pd&p)>>2]|0;ie=743;break}while(1){K=(c[(I&p)+12>>2]|0)+((((O|0)/(J|0)|0|0)%16|0)*56|0)+48|0;I=c[(K&p)>>2]|0;if(!I){I=Qm(16)|0;if(!I){g=7;ie=738;break}g=Rm(T,I,K)|0;if(g){ie=738;break}I=c[(K&p)>>2]|0}I=c[(I&p)+4>>2]|0;H=H+1|0;if((H|0)>=(F|0)){ie=740;break}else J=(J|0)/16|0}if((ie|0)==738){J=c[(pd&p)>>2]|0;ie=743;break}else if((ie|0)==740){J=c[(pd&p)>>2]|0;ie=742;break}}else{J=c[(pd&p)>>2]|0;if(!g){I=u;ie=742}else ie=743}while(0);if((ie|0)==742){ie=0;c[((c[(I&p)+12>>2]|0)+(((O|0)%16|0)*56|0)&p)+48>>2]=J;g=0}else if((ie|0)==743){ie=0;Sm(J)}O=O+1|0;P=P+16|0;I=c[(S&p)>>2]|0}while((P|0)<(I|0)&(g|0)==0)}else{ie=Sd;c[(ie&p)>>2]=0;c[(ie&p)+4>>2]=0;ie=726}while(0);if((ie|0)==726){ie=0;g=Pm(T,C,Sd,ke)|0;u=c[(ke&p)>>2]|0}w=w+1|0;if(g){ie=746;break}if((w|0)>=(d[(U&n)>>0]|0)){g=0;break o}else v=u}if((ie|0)==746)Tm(u);else if((ie|0)==747)Tm(u);Tm(v);u=0}while(0);if(!g){g=Um(V+64|0,u)|0;c[(V&p)+20>>2]=u;if(!g){g=0;ie=755;break}else u=0}Tm(u);ie=755}else ie=756}while(0);if((ie|0)==755){ie=0;a[(M&n)+25>>0]=0;C=L;T=t;u=g;break n}else if((ie|0)==756){ie=0;a[(M&n)+25>>0]=1;break}}while(0);C=L;T=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;u=g}else if((ie|0)==765){u=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;c[(Fd&p)>>2]=c[(s+(t*20|0)&p)+12>>2];g=u;u=rc[c[(s+(t*20|0)&p)+16>>2]&127](c[(u&p)>>2]|0,Fd)|0;ie=766}while(0);do if((ie|0)==548){ie=0;a[((c[(g&p)>>2]|0)&n)+74>>0]=d[(v&n)>>0]&3;C=L;T=t}else if((ie|0)==766){c[(g&p)+60>>2]=0;g=g+25|0;if(!(c[(Fd&p)>>2]|0)){a[(g&n)>>0]=0;ie=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;t=f+(d[(s+(t*20|0)&n)+3>>0]<<2)+108|0;c[(t&p)>>2]=(c[(t&p)>>2]|0)+1;t=ie;ie=19;break}else{a[(g&n)>>0]=1;ie=19;break}}while(0);if((ie|0)==19){ie=0;if(c[(Cc&p)>>2]|0){u=je;g=m;m=x;break b}g=c[(be&p)>>2]|0;if(!((g|0)==0|m>>>0>>0)){y=c[(yc&p)>>2]|0;if(!(lc[g&127](c[(Zd&p)>>2]|0)|0)){y=y+m-((m>>>0)%(y>>>0)|0)|0;C=L;T=t}else{g=m;s=9;m=x;ie=1311;break a}}else{C=L;T=t}}t=T+1|0;if(!u){g=m;u=C}else{g=m;s=u;m=x;ie=1311;break a}}q:switch(ie|0){case 22:{ie=0;S=c[(s+(t*20|0)&p)+4>>2]|0;b[(z+(S*40|0)&o)+8>>1]=4;S=z+(S*40|0)|0;c[(S&p)>>2]=t;c[(S&p)+4>>2]=((t|0)<0)<<31>>31;S=z;T=s;U=W;V=X;r=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;break}case 23:{ie=0;S=c[(s+(t*20|0)&p)+4>>2]|0;r=c[(z+(S*40|0)&p)>>2]|0;b[(z+(S*40|0)&o)+8>>1]=128;S=z;T=s;U=W;V=X;break}case 24:{ie=0;r=c[(s+(t*20|0)&p)+4>>2]|0;u=z+(r*40|0)|0;T=(c[(s+(t*20|0)&p)+12>>2]|0)+-1|0;S=u;c[(S&p)>>2]=T;c[(S&p)+4>>2]=((T|0)<0)<<31>>31;b[(z+(r*40|0)&o)+8>>1]=4;r=c[(s+(t*20|0)&p)+8>>2]|0;S=z;T=s;U=W;V=X;r=(r|0)==0?t:r+-1|0;break}case 25:{ie=0;S=c[(s+(t*20|0)&p)+4>>2]|0;r=(c[(s+((c[(z+(S*40|0)&p)>>2]|0)*20|0)&p)+8>>2]|0)+-1|0;b[(z+(S*40|0)&o)+8>>1]=128;S=z;T=s;U=W;V=X;break}case 26:{ie=0;S=c[(s+(t*20|0)&p)+4>>2]|0;b[(z+(S*40|0)&o)+8>>1]=4;S=z+(S*40|0)|0;r=c[(S&p)>>2]|0;c[(S&p)>>2]=t;c[(S&p)+4>>2]=((t|0)<0)<<31>>31;S=z;T=s;U=W;V=X;break}case 27:{ie=0;if(!(b[(z+((c[(s+(r*20|0)&p)+12>>2]|0)*40|0)&o)+8>>1]&1)){S=z;T=s;U=W;V=X}else ie=28;break}case 44:{ie=0;T=c[(s+(r*20|0)&p)+4>>2]|0;S=u;c[(S&p)>>2]=T;c[(S&p)+4>>2]=((T|0)<0)<<31>>31;S=z;T=s;U=W;V=X;break}case 45:{ie=0;U=c[(s+(r*20|0)&p)+16>>2]|0;T=c[(U&p)+4>>2]|0;S=u;c[(S&p)>>2]=c[(U&p)>>2];c[(S&p)+4>>2]=T;S=z;T=s;U=W;V=X;break}case 46:{ie=0;b[(u&o)+8>>1]=8;h[(u&q)>>3]=+h[(c[(s+(r*20|0)&p)+16>>2]&q)>>3];S=z;T=s;U=W;V=X;break}case 60:{ie=0;J=(c[(s+(r*20|0)&p)+12>>2]|0)-(c[(s+(r*20|0)&p)+8>>2]|0)|0;t=(c[(s+(r*20|0)&p)+4>>2]|0)!=0?257:1;b[(u&o)+8>>1]=t;if((J|0)>0){w=J;A=u;do{v=A+48|0;A=A+40|0;if(!(b[(v&o)>>1]&9312))b[(v&o)>>1]=1;else vg(A);b[(v&o)>>1]=t;w=w+-1|0}while((w|0)>0);S=z;T=s;U=W;V=X;u=u+(J*40|0)|0}else{S=z;T=s;U=W;V=X}break}case 65:{ie=0;u=c[(s+(r*20|0)&p)+4>>2]|0;S=z+(u*40|0)+8|0;b[(S&o)>>1]=e[(S&o)>>1]&65406|1;S=z;T=s;U=W;V=X;u=z+(u*40|0)|0;break}case 66:{ie=0;Xg(u,c[(s+(r*20|0)&p)+16>>2]|0,c[(s+(r*20|0)&p)+4>>2]|0,0,0)|0;a[(u&n)+10>>0]=Jc;S=z;T=s;U=W;V=X;break}case 67:{ie=0;C=(c[(s+(r*20|0)&p)+4>>2]|0)+-1|0;A=c[(Ab&p)>>2]|0;w=A+(C*40|0)|0;v=e[(A+(C*40|0)&o)+8>>1]|0;if(v&18){t=c[(A+(C*40|0)&p)+12>>2]|0;if(v&16384)t=(c[(w&p)>>2]|0)+t|0;if((t|0)>(c[((c[(A+(C*40|0)&p)+32>>2]|0)&p)+88>>2]|0)){t=r;u=x;ie=1316;break c}}Zl(u,w,2048);S=z;T=s;U=W;V=X;break}case 72:{ie=0;t=c[(s+(r*20|0)&p)+12>>2]|0;v=c[(s+(r*20|0)&p)+8>>2]|0;J=t+v|0;u=z+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)|0;v=z+(v*40|0)|0;while(1){_l(v,u);t=t+-1|0;if(!t)break;else{u=u+40|0;v=v+40|0}}S=z;T=s;U=W;V=X;u=z+(J*40|0)|0;break}case 74:{ie=0;r=c[(s+(t*20|0)&p)+12>>2]|0;u=z+((c[(s+(t*20|0)&p)+4>>2]|0)*40|0)|0;J=z+((c[(s+(t*20|0)&p)+8>>2]|0)*40|0)|0;while(1){Zl(J,u,4096);if((b[(J&o)+8>>1]&4096)!=0?(Vl(J)|0)!=0:0){y=ge;z=je;r=m;m=x;ie=1317;break a}if(!r){S=z;T=s;U=W;V=X;u=J;r=t;break q}r=r+-1|0;u=u+40|0;J=J+40|0}}case 79:{ie=0;u=z+((c[(s+(r*20|0)&p)+8>>2]|0)*40|0)|0;Zl(u,z+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)|0,4096);S=z;T=s;U=W;V=X;break}case 94:{ie=0;K=c[(s+(t*20|0)&p)+4>>2]|0;J=z+(K*40|0)|0;L=c[(s+(t*20|0)&p)+8>>2]|0;I=z+(L*40|0)|0;M=c[(s+(t*20|0)&p)+12>>2]|0;u=z+(M*40|0)|0;H=z+(K*40|0)+8|0;E=b[(H&o)>>1]|0;F=z+(L*40|0)+8|0;C=b[(F&o)>>1]|0;if((C|E)&1){r=z+(M*40|0)+8|0;if(!(b[(r&o)>>1]&9312)){b[(r&o)>>1]=1;S=z;T=s;U=W;V=X;r=t;break}else{vg(u);S=z;T=s;U=W;V=X;r=t;break}}if(E&16384){if(Rg(J)|0){y=ge;z=je;r=m;m=x;ie=1317;break a}C=b[(F&o)>>1]|0}if((C&16384)!=0?(Rg(I)|0)!=0:0){y=ge;z=je;r=m;m=x;ie=1317;break a}if((b[(H&o)>>1]&18)==0?(bm(J,Jc,0)|0)!=0:0){y=ge;z=je;r=m;m=x;ie=1317;break a}if((b[(F&o)>>1]&18)==0?(bm(I,Jc,0)|0)!=0:0){y=ge;z=je;r=m;m=x;ie=1317;break a}E=z+(K*40|0)+12|0;A=z+(L*40|0)+12|0;r=(c[(A&p)>>2]|0)+(c[(E&p)>>2]|0)|0;if((r|0)>(c[(zb&p)>>2]|0)){u=x;ie=1316;break c}v=(M|0)==(L|0);if(eh(u,r+2|0,v&1)|0){y=ge;z=je;r=m;m=x;ie=1317;break a}w=z+(M*40|0)+8|0;b[(w&o)>>1]=e[(w&o)>>1]&48640|2;C=z+(M*40|0)+16|0;if(!v)kw(c[(C&p)>>2]|0,c[(z+(L*40|0)&p)+16>>2]|0,c[(A&p)>>2]|0)|0;kw((c[(C&p)>>2]|0)+(c[(A&p)>>2]|0)|0,c[(z+(K*40|0)&p)+16>>2]|0,c[(E&p)>>2]|0)|0;a[((c[(C&p)>>2]|0)+r&n)>>0]=0;a[((c[(C&p)>>2]|0)+r&n)+1>>0]=0;b[(w&o)>>1]=e[(w&o)>>1]|512;c[(z+(M*40|0)&p)+12>>2]=r;a[(z+(M*40|0)&n)+10>>0]=Jc;S=z;T=s;U=W;V=X;r=t;break}case 112:{ie=0;V=c[(s+(r*20|0)&p)+4>>2]|0;N=z+(V*40|0)|0;S=cm(N)|0;w=c[(s+(r*20|0)&p)+8>>2]|0;O=z+(w*40|0)|0;T=cm(O)|0;U=c[(s+(r*20|0)&p)+12>>2]|0;u=z+(U*40|0)|0;r:do if(!((b[(z+(w*40|0)&o)+8>>1]|b[(z+(V*40|0)&o)+8>>1])&1)){s:do if(!((S&4&T)<<16>>16))L=0;else{t=N;C=c[(t&p)>>2]|0;t=c[(t&p)+4>>2]|0;F=O;v=c[(F&p)>>2]|0;F=c[(F&p)+4>>2]|0;J=d[(P&n)>>0]|0;t:do if((J|0)==89){if((t|0)>-1|(t|0)==-1&C>>>0>4294967295){V=dw(-1,2147483647,v|0,F|0)|0;w=G;if(((F|0)>0|(F|0)==0&v>>>0>0)&((w|0)<(t|0)|(w|0)==(t|0)&V>>>0>>0)){L=1;break s}}else if((F|0)<0?(w=dw(1,-2147483648,v|0,F|0)|0,A=G,V=jw(C|0,t|0,1,0)|0,M=G,(A|0)>(M|0)|(A|0)==(M|0)&w>>>0>V>>>0):0){L=1;break s}v=jw(v|0,F|0,C|0,t|0)|0;t=G}else if((J|0)==91){L=qw(v|0,F|0,0,1)|0;K=G;E=rw(v|0,F|0,0,1)|0;A=G;J=qw(C|0,t|0,0,1)|0;I=G;M=rw(C|0,t|0,0,1)|0;w=G;V=jw(v|0,F|0,-1,0)|0;pe=G;H=jw(C|0,t|0,-1,0)|0;qe=G;H=qe>>>0<1|(qe|0)==1&H>>>0<4294967295;do if(pe>>>0<1|(pe|0)==1&V>>>0<4294967295)if(H){v=sw(v|0,F|0,C|0,t|0)|0;t=G;break t}else{H=sw(J|0,I|0,E|0,A|0)|0;F=G;break}else{if(!H){L=1;break s}H=sw(M|0,w|0,L|0,K|0)|0;F=G}while(0);V=jw(H|0,F|0,-2147483648,0)|0;v=G;if(v>>>0>0|(v|0)==0&V>>>0>4294967295){L=1;break s}J=sw(M|0,w|0,E|0,A|0)|0;I=G;if((I|0)>-1|(I|0)==-1&J>>>0>4294967295){V=dw(-1,2147483647,0,H|0)|0;w=G;if(((F|0)>0|(F|0)==0&H>>>0>0)&((w|0)<(I|0)|(w|0)==(I|0)&V>>>0>>0)){L=1;break s}}else if((F|0)<0?(w=dw(1,-2147483648,0,H|0)|0,t=G,V=jw(J|0,I|0,1,0)|0,v=G,(t|0)>(v|0)|(t|0)==(v|0)&w>>>0>V>>>0):0){L=1;break s}v=jw(0,H|0,J|0,I|0)|0;t=G}else if((J|0)==90){if((C|0)==0&(t|0)==-2147483648){if((F|0)>-1|(F|0)==-1&v>>>0>4294967295){L=1;break s}t=F^-2147483648;break}if((t|0)<0|(t|0)==0&C>>>0<1){V=dw(0,0,C|0,t|0)|0;M=G;w=dw(-1,2147483647,v|0,F|0)|0;A=G;if(((F|0)>0|(F|0)==0&v>>>0>0)&((A|0)<(M|0)|(A|0)==(M|0)&w>>>0>>0)){L=1;break s}}else if((F|0)<0?(w=dw(1,-2147483648,v|0,F|0)|0,A=G,V=dw(1,0,C|0,t|0)|0,M=G,(A|0)>(M|0)|(A|0)==(M|0)&w>>>0>V>>>0):0){L=1;break s}v=dw(v|0,F|0,C|0,t|0)|0;t=G}else if((J|0)==92){if((C|0)==0&(t|0)==0)break r;if((C|0)==-1&(t|0)==-1&((v|0)==0&(F|0)==-2147483648)){L=1;break s}v=qw(v|0,F|0,C|0,t|0)|0;t=G}else{if((C|0)==-1){if((t|0)==-1){C=1;t=0}}else if((C|0)==0?(t|0)==0:0)break r;v=rw(v|0,F|0,C|0,t|0)|0;t=G}while(0);S=u;c[(S&p)>>2]=v;c[(S&p)+4>>2]=t;S=z+(U*40|0)+8|0;b[(S&o)>>1]=e[(S&o)>>1]&48640|4;S=z;T=s;U=W;V=X;break q}while(0);D=+Ug(N);B=+Ug(O);C=d[(P&n)>>0]|0;if((C|0)==89)B=D+B;else if((C|0)==90)B=B-D;else if((C|0)==91)B=D*B;else if((C|0)==92){if(D==0.0)break;B=B/D}else{E=~~D>>>0;C=+R(D)>=1.0?(D>0.0?~~+da(+Q(D/4294967296.0),4294967295.0)>>>0:~~+ba((D-+(~~D>>>0))/4294967296.0)>>>0):0;I=~~B>>>0;J=+R(B)>=1.0?(B>0.0?~~+da(+Q(B/4294967296.0),4294967295.0)>>>0:~~+ba((B-+(~~B>>>0))/4294967296.0)>>>0):0;if(!E){if(!C)break}else if((E|0)==-1?(C|0)==-1:0){E=1;C=0}V=rw(I|0,J|0,E|0,C|0)|0;B=+(V>>>0)+4294967296.0*+(G|0)}h[(ke&q)>>3]=B;h[(Sd&q)>>3]=+h[(ke&q)>>3];if(!(+h[(ke&q)>>3]!=+h[(Sd&q)>>3])){h[(u&q)>>3]=B;V=z+(U*40|0)+8|0;b[(V&o)>>1]=e[(V&o)>>1]&48640|8;if(((T|S)&8)!=0|L<<24>>24!=0){S=z;T=s;U=W;V=X;break q}dm(u);S=z;T=s;U=W;V=X;break q}}while(0);t=z+(U*40|0)+8|0;if(!(b[(t&o)>>1]&9312)){b[(t&o)>>1]=1;S=z;T=s;U=W;V=X;break}else{vg(u);S=z;T=s;U=W;V=X;break}}case 166:{ie=0;t=c[(s+(r*20|0)&p)+4>>2]|0;if(t){u=z+(t*40|0)|0;t=z+(t*40|0)+8|0;if(!(b[(t&o)>>1]&9312)){S=u;c[(S&p)>>2]=0;c[(S&p)+4>>2]=0;b[(t&o)>>1]=4;S=z;T=s;U=W;V=X;u=J;break}else{Zg(u,0,0);S=z;T=s;U=W;V=X;u=J;break}}else{S=z;T=s;U=W;V=X;u=J}break}case 184:{ie=0;C=c[(s+(r*20|0)&p)+4>>2]|0;t=c[(s+(r*20|0)&p)+8>>2]|0;K=c[(s+(r*20|0)&p)+12>>2]|0;u=z+(K*40|0)|0;if((b[(z+(t*40|0)&o)+8>>1]|b[(z+(C*40|0)&o)+8>>1])&1){t=z+(K*40|0)+8|0;if(!(b[(t&o)>>1]&9312)){b[(t&o)>>1]=1;S=z;T=s;U=W;V=X;break}else{vg(u);S=z;T=s;U=W;V=X;break}}A=Vg(z+(t*40|0)|0)|0;L=G;J=Vg(z+(C*40|0)|0)|0;I=G;t=a[(H&n)>>0]|0;C=t&255;do if(t<<24>>24==86){A=J|A;t=I|L}else if(t<<24>>24!=85)if(!((J|0)==0&(I|0)==0)){if((I|0)<0){t=175-C&255;C=dw(0,0,J|0,I|0)|0;if((I|0)>-1|(I|0)==-1&J>>>0>4294967232){I=G;ie=194}}else{C=J;ie=194}if((ie|0)==194){ie=0;if(!((I|0)>0|(I|0)==0&C>>>0>63)){if(t<<24>>24==87){A=iw(A|0,L|0,C|0)|0;t=G;break}A=mw(A|0,L|0,C|0)|0;t=G;if((L|0)>=0)break;V=dw(64,0,C|0,I|0)|0;V=iw(-1,-1,V|0)|0;A=V|A;t=G|t;break}}if((L|0)>-1|(L|0)==-1&A>>>0>4294967295){A=0;t=0}else{t=(t<<24>>24!=87)<<31>>31;A=t;t=((t|0)<0)<<31>>31}}else t=L;else{A=J&A;t=I&L}while(0);S=u;c[(S&p)>>2]=A;c[(S&p)+4>>2]=t;S=z+(K*40|0)+8|0;b[(S&o)>>1]=e[(S&o)>>1]&48640|4;S=z;T=s;U=W;V=X;break}case 202:{ie=0;T=c[(s+(r*20|0)&p)+4>>2]|0;S=z+(T*40|0)|0;U=Vg(S)|0;T=z+(T*40|0)+8|0;b[(T&o)>>1]=e[(T&o)>>1]&48640|4;T=c[(s+(r*20|0)&p)+8>>2]|0;T=jw(U|0,G|0,T|0,((T|0)<0)<<31>>31|0)|0;c[(S&p)>>2]=T;c[(S&p)+4>>2]=G;S=z;T=s;U=W;V=X;break}case 203:{ie=0;u=c[(s+(r*20|0)&p)+4>>2]|0;v=z+(u*40|0)+8|0;t=b[(v&o)>>1]|0;if(!(t&4)){fm(z+(u*40|0)|0,67,Jc);t=b[(v&o)>>1]|0;if(!(t&4)){E=c[(s+(r*20|0)&p)+8>>2]|0;if(!E){t=r;u=20;ie=1318;break c}S=z;T=s;U=W;V=X;u=J;r=E+-1|0;break}}b[(v&o)>>1]=t&48640|4;S=z;T=s;U=W;V=X;u=J;break}case 208:{ie=0;t=c[(s+(r*20|0)&p)+4>>2]|0;u=z+(t*40|0)+8|0;if(!(b[(u&o)>>1]&4)){S=z;T=s;U=W;V=X;u=J}else{S=z+(t*40|0)|0;h[(S&q)>>3]=+Ug(S);b[(u&o)>>1]=e[(u&o)>>1]&48640|8;S=z;T=s;U=W;V=X;u=J}break}case 213:{ie=0;N=c[(s+(t*20|0)&p)+4>>2]|0;L=z+(N*40|0)|0;w=c[(s+(t*20|0)&p)+12>>2]|0;K=z+(w*40|0)|0;N=z+(N*40|0)+8|0;F=b[(N&o)>>1]|0;w=z+(w*40|0)+8|0;M=b[(w&o)>>1]|0;H=F&65535;A=M&65535;v=s+(t*20|0)+3|0;J=d[(v&n)>>0]|0;do if(!((M|F)&1)){J=J&71;if(J>>>0>66){if((H&14|0)==2){rh(L,0);A=b[(w&o)>>1]|0}else A=M;if((A&14)==2){rh(K,0);J=F;E=M}else{J=F;E=M}}else if((J|0)==66){if((H&2|0)!=0|(H&12|0)==0){I=M;J=F}else{bm(L,Jc,1)|0;I=b[(w&o)>>1]|0;J=(e[(N&o)>>1]&65024|H&511)&65535}V=I&65535;if((V&2|0)!=0|(V&12|0)==0)E=M;else{bm(K,Jc,1)|0;E=(e[(w&o)>>1]&65024|A&511)&65535}}else{J=F;E=M}if(b[(N&o)>>1]&16384){Rg(L)|0;J=J&49151}if(b[(w&o)>>1]&16384){Rg(K)|0;E=E&49151}if(a[(ge&n)>>0]|0){y=ge;z=je;r=m;m=x;ie=1317;break a}V=hm(K,L,c[(s+(t*20|0)&p)+16>>2]|0)|0;I=a[(C&n)>>0]|0;r=t;C=V}else{if(J&128){J=F;E=M;r=t;C=(F&1&M)<<16>>16!=0&(A&256|0)==0&1^1;break}if(J&32){u=c[(s+(t*20|0)&p)+8>>2]|0;S=z+(u*40|0)+8|0;b[(S&o)>>1]=e[(S&o)>>1]&48640|1;S=z;T=s;U=W;V=X;u=z+(u*40|0)|0;r=t;break q}if(!(J&16)){S=z;T=s;U=W;V=X;r=t;break q}S=z;T=s;U=W;V=X;r=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;break q}while(0);switch(I&255|0){case 79:{C=(C|0)==0&1;break}case 78:{C=(C|0)!=0&1;break}case 82:{C=C>>>31;break}case 81:{C=(C|0)<1&1;break}case 80:{C=(C|0)>0&1;break}default:C=C>>>31^1}if(!(a[(v&n)>>0]&32)){if(C)r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0}else{V=c[(s+(r*20|0)&p)+8>>2]|0;u=z+(V*40|0)|0;V=z+(V*40|0)+8|0;b[(V&o)>>1]=e[(V&o)>>1]&48640|4;V=u;c[(V&p)>>2]=C;c[(V&p)+4>>2]=0}b[(N&o)>>1]=J;b[(w&o)>>1]=E;S=z;T=s;U=W;V=X;break}case 248:{ie=0;S=z;T=s;U=c[(s+(r*20|0)&p)+16>>2]|0;V=X;break}case 249:{ie=0;w=(a[(s+(r*20|0)&n)+3>>0]&1)==0?0:W;F=c[(s+(r*20|0)&p)+12>>2]|0;H=c[(s+(r*20|0)&p)+16>>2]|0;I=c[(s+(r*20|0)&p)+4>>2]|0;J=c[(s+(r*20|0)&p)+8>>2]|0;if((F|0)>0){t=(w|0)==0;v=H+16|0;E=0;while(1){if(t)A=E;else A=c[(w+(E<<2)&p)>>2]|0;C=a[((c[(v&p)>>2]|0)+E&n)>>0]|0;A=hm(z+((A+I|0)*40|0)|0,z+((A+J|0)*40|0)|0,c[(H+(E<<2)&p)+20>>2]|0)|0;E=E+1|0;if(A)break;if((E|0)>=(F|0)){S=z;T=s;U=0;V=0;break q}}S=z;T=s;U=0;V=C<<24>>24==0?A:0-A|0}else{S=z;T=s;U=0;V=X}break}case 256:{ie=0;if((X|0)<0){S=z;T=s;U=W;V=X;r=(c[(s+(t*20|0)&p)+4>>2]|0)+-1|0;break}if(!X){S=z;T=s;U=W;V=0;r=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;break}else{S=z;T=s;U=W;V=X;r=(c[(s+(t*20|0)&p)+12>>2]|0)+-1|0;break}}case 261:{ie=0;t=c[(s+(r*20|0)&p)+4>>2]|0;if(!(b[(z+(t*40|0)&o)+8>>1]&1)){u=Vg(z+(t*40|0)|0)|0;u=(u|0)!=0|(G|0)!=0?3:0}else u=6;t=c[(s+(r*20|0)&p)+8>>2]|0;if(!(b[(z+(t*40|0)&o)+8>>1]&1)){t=Vg(z+(t*40|0)|0)|0;t=((t|0)!=0|(G|0)!=0)&1}else t=2;t=a[(((a[(C&n)>>0]|0)==72?41680:41696)+t+u&n)>>0]|0;u=c[(s+(r*20|0)&p)+12>>2]|0;J=z+(u*40|0)|0;if(t<<24>>24==2){S=z+(u*40|0)+8|0;b[(S&o)>>1]=e[(S&o)>>1]&48640|1;S=z;T=s;U=W;V=X;u=J;break}else{S=J;c[(S&p)>>2]=t&255;c[(S&p)+4>>2]=0;S=z+(u*40|0)+8|0;b[(S&o)>>1]=e[(S&o)>>1]&48640|4;S=z;T=s;U=W;V=X;u=J;break}}case 268:{ie=0;t=c[(s+(r*20|0)&p)+4>>2]|0;u=c[(s+(r*20|0)&p)+8>>2]|0;J=z+(u*40|0)|0;u=z+(u*40|0)+8|0;if(!(b[(u&o)>>1]&9312))b[(u&o)>>1]=1;else vg(J);if(!(b[(z+(t*40|0)&o)+8>>1]&1)){b[(u&o)>>1]=4;T=Vg(z+(t*40|0)|0)|0;S=J;c[(S&p)>>2]=(T|0)==0&(G|0)==0&1;c[(S&p)+4>>2]=0;S=z;T=s;U=W;V=X;u=J}else{S=z;T=s;U=W;V=X;u=J}break}case 273:{ie=0;t=c[(s+(r*20|0)&p)+4>>2]|0;u=c[(s+(r*20|0)&p)+8>>2]|0;J=z+(u*40|0)|0;u=z+(u*40|0)+8|0;if(!(b[(u&o)>>1]&9312))b[(u&o)>>1]=1;else vg(J);if(!(b[(z+(t*40|0)&o)+8>>1]&1)){b[(u&o)>>1]=4;T=Vg(z+(t*40|0)|0)|0;S=J;c[(S&p)>>2]=~T;c[(S&p)+4>>2]=~G;S=z;T=s;U=W;V=X;u=J}else{S=z;T=s;U=W;V=X;u=J}break}case 278:{ie=0;t=(c[(Hb&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]|0)|0;if(!(a[(t&n)>>0]|0)){a[(t&n)>>0]=1;S=z;T=s;U=W;V=X;break}else{S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0;break}}case 281:{ie=0;t=c[(s+(r*20|0)&p)+4>>2]|0;if(!(b[(z+(t*40|0)&o)+8>>1]&1)){t=+Ug(z+(t*40|0)|0)!=0.0;t=(t^(a[(C&n)>>0]|0)==46)&1}else t=c[(s+(r*20|0)&p)+12>>2]|0;if(!t){S=z;T=s;U=W;V=X}else{S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0}break}case 286:{ie=0;if(!(b[(z+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)&o)+8>>1]&1)){S=z;T=s;U=W;V=X}else{S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0}break}case 288:{ie=0;if(!(b[(z+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)&o)+8>>1]&1)){S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0}else{S=z;T=s;U=W;V=X}break}case 290:{ie=0;T=c[(s+(t*20|0)&p)+8>>2]|0;M=c[(s+(t*20|0)&p)+12>>2]|0;A=z+(M*40|0)|0;S=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;w=c[(S&p)+80>>2]|0;v=c[(S&p)>>2]|0;if(!(a[(S&n)+26>>0]|0)){if((v|0)!=0?(a[(v&n)+73>>0]|0)!=1:0){Td=jm(S)|0;ie=295}}else{Td=im(S)|0;ie=295}if((ie|0)==295?(ie=0,(Td|0)!=0):0){u=Td;ie=1318;break c}L=S+60|0;C=c[($d&p)>>2]|0;u:do if((c[(L&p)>>2]|0)==(C|0)){C=b[(S&o)+22>>1]|0;if((C&65535|0)>(T|0))ie=350;else{I=S+72|0;ie=318}}else{do if(a[(S&n)+25>>0]|0){if(!v){J=c[(S&p)+16>>2]|0;F=c[(z+(J*40|0)&p)+12>>2]|0;c[(S&p)+68>>2]=F;c[(S&p)+64>>2]=F;J=c[(z+(J*40|0)&p)+16>>2]|0;K=S+76|0;c[(K&p)>>2]=J;break}r=z+(M*40|0)+8|0;if(!(b[(r&o)>>1]&9312)){b[(r&o)>>1]=1;break u}else{vg(A);break u}}else{if(!(a[(S&n)+27>>0]&4)){km(v,td);I=e[(v&o)+40>>1]|0;J=c[(v&p)+32>>2]|0;c[(S&p)+76>>2]=J;C=c[(td&p)>>2]|0;c[(S&p)+64>>2]=C}else{C=S+64|0;lm(v,C);I=e[(v&o)+40>>1]|0;J=c[(v&p)+32>>2]|0;c[(S&p)+76>>2]=J;C=c[(C&p)>>2]|0}c[(S&p)+68>>2]=C>>>0>I>>>0?I:C;if(C>>>0>(c[(zb&p)>>2]|0)>>>0){u=x;ie=1316;break c}K=S+76|0;C=c[($d&p)>>2]|0;F=I}while(0);c[(L&p)>>2]=C;C=a[(J&n)>>0]|0;if(C<<24>>24>-1){H=C&255;c[(kd&p)>>2]=H;J=1}else{J=mm(J,kd)|0;H=c[(kd&p)>>2]|0}I=S+72|0;c[(I&p)>>2]=J&255;b[(S&o)+22>>1]=0;c[(w&p)>>2]=H;if(H>>>0>98307){u=x;ie=313;break c}if(H>>>0>(c[(S&p)+64>>2]|0)>>>0){u=x;ie=313;break c}if(F>>>0>>0){c[(K&p)>>2]=0;c[(S&p)+68>>2]=0;C=0;ie=318}else{C=0;ie=318}}while(0);do if((ie|0)==318){ie=0;J=c[(I&p)>>2]|0;H=c[(w&p)>>2]|0;if(J>>>0>>0){P=S+76|0;F=c[(P&p)>>2]|0;if(!F){U=Jd+0|0;V=U+40|0;do{c[(U&p)>>2]=0;U=U+4|0}while((U|0)<(V|0));J=nm(v,0,c[(w&p)>>2]|0,((d[(S&n)+27>>0]|0)>>>2&1^1)&255,Jd)|0;if(J){s=J;u=x;ie=1309;break c}C=S+22|0;O=C;C=b[(C&o)>>1]|0;J=c[(I&p)>>2]|0;H=c[(w&p)>>2]|0;N=c[(Jb&p)>>2]|0}else{O=S+22|0;N=F}E=C&65535;K=c[(w+(E<<2)&p)>>2]|0;c[(kd&p)>>2]=K;C=N+H|0;J=N+J|0;while(1){F=a[(J&n)>>0]|0;if(F<<24>>24>-1){L=F&255;c[(Ld&p)>>2]=L;J=J+1|0}else{J=J+((mm(J,Ld)|0)&255)|0;L=c[(Ld&p)>>2]|0}c[(S+(E<<2)&p)+84>>2]=L;if(L>>>0>11)F=(L+-12|0)>>>1;else F=d[(L&n)+34336>>0]|0;L=K+F|0;c[(kd&p)>>2]=L;if(L>>>0>>0){J=L;F=E;ie=331;break}F=E+1|0;c[(w+(F<<2)&p)>>2]=L;if((E|0)<(T|0)&J>>>0>>0){K=L;E=F}else break}if((ie|0)==331){ie=0;L=J;J=N+(H+1)|0}b[(O&o)>>1]=F;c[(I&p)>>2]=J-N;if(!(c[(P&p)>>2]|0)){if(!((b[(Kb&o)>>1]&9312)==0&(c[(Lb&p)>>2]|0)==0))Qg(Jd);b[(Kb&o)>>1]=1}if(J>>>0>=C>>>0){if(J>>>0>C>>>0){u=x;ie=343;break c}if((L|0)==(c[(S&p)+64>>2]|0))C=L;else{u=x;ie=343;break c}}else C=c[(S&p)+64>>2]|0;if(L>>>0>C>>>0){u=x;ie=343;break c}C=b[(O&o)>>1]|0}if((C&65535|0)<=(T|0)){if((a[(s+(t*20|0)&n)+1>>0]|0)==-8){Zl(A,c[(s+(t*20|0)&p)+16>>2]|0,2048);r=z+(M*40|0)+8|0;break}r=z+(M*40|0)+8|0;if(!(b[(r&o)>>1]&9312)){b[(r&o)>>1]=1;break}else{vg(A);break}}else ie=350}while(0);if((ie|0)==350){ie=0;r=z+(M*40|0)+8|0;if(b[(r&o)>>1]&9312)vg(A);J=c[(S+(T<<2)&p)+84>>2]|0;c[(Ld&p)>>2]=J;do if((c[(S&p)+68>>2]|0)>>>0<(c[(w+(T+1<<2)&p)>>2]|0)>>>0){V=a[(s+(t*20|0)&n)+3>>0]|0;if(!((V&255)>63?J>>>0>11&(J&1|0)==0|V<<24>>24<0:0)){if(J>>>0>11)C=(J+-12|0)>>>1;else C=d[(J&n)+34336>>0]|0;if(C){C=nm(v,c[(w+(T<<2)&p)>>2]|0,C,((d[(S&n)+27>>0]|0)>>>2&1^1)&255,A)|0;if(C){s=C;u=x;ie=1309;break c}om(c[(z+(M*40|0)&p)+16>>2]|0,J,A)|0;b[(r&o)>>1]=e[(r&o)>>1]&61439;break}}om(J>>>0<14?td:0,J,A)|0}else om((c[(S&p)+76>>2]|0)+(c[(w+(T<<2)&p)>>2]|0)|0,J,A)|0;while(0);a[(z+(M*40|0)&n)+10>>0]=Jc}w=e[(r&o)>>1]|0;if((w&4096|0)!=0?(Ac=z+(M*40|0)+16|0,Bc=c[(Ac&p)>>2]|0,(Bc|0)!=0):0){v=c[(z+(M*40|0)&p)+12>>2]|0;if(fh(A,v+2|0)|0){y=ge;z=je;r=m;m=x;ie=1317;break a}kw(c[(Ac&p)>>2]|0,Bc|0,v|0)|0;a[((c[(Ac&p)>>2]|0)+v&n)>>0]=0;a[((c[(Ac&p)>>2]|0)+v&n)+1>>0]=0;b[(r&o)>>1]=w&18|512;S=z;T=s;U=W;V=X;r=t}else{S=z;T=s;U=W;V=X;r=t}break}case 368:{ie=0;v=c[(s+(r*20|0)&p)+16>>2]|0;t=a[(v&n)>>0]|0;if(!(t<<24>>24)){S=z;T=s;U=W;V=X}else{w=z+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)|0;while(1){v=v+1|0;fm(w,t,Jc);t=a[(v&n)>>0]|0;if(!(t<<24>>24)){S=z;T=s;U=W;V=X;break}else w=w+40|0}}break}case 371:{ie=0;U=c[(s+(t*20|0)&p)+4>>2]|0;C=c[(s+(t*20|0)&p)+16>>2]|0;V=z+(U*40|0)|0;U=z+((U+-1+(c[(s+(t*20|0)&p)+8>>2]|0)|0)*40|0)|0;A=a[(Mb&n)>>0]|0;T=c[(s+(t*20|0)&p)+12>>2]|0;u=z+(T*40|0)|0;if(C){r=a[(C&n)>>0]|0;v=V;while(1){C=C+1|0;fm(v,r,Jc);r=a[(C&n)>>0]|0;if(!(r<<24>>24))break;else v=v+40|0}}N=(A&255)>3;L=0;K=0;O=0;C=0;w=U;while(1){E=b[(w&o)+8>>1]|0;I=E&65535;v:do if(!(I&1)){do if(!(I&4)){if(I&8){J=7;ie=388;break v}J=c[(w&p)+12>>2]|0;if(I&16384)J=(c[(w&p)>>2]|0)+J|0;J=(J<<1)+12|I>>>1&1}else{I=w;J=c[(I&p)>>2]|0;I=c[(I&p)+4>>2]|0;H=ew(J|0,I|0,63)|0;H=H^J;F=G^I;if(F>>>0<0|(F|0)==0&H>>>0<128){if(!((J&1|0)==(J|0)&0==(I|0)&N)){J=1;ie=388;break v}J=H+8|0;break}if(F>>>0<0|(F|0)==0&H>>>0<32768){J=2;ie=388;break v}if(F>>>0<0|(F|0)==0&H>>>0<8388608){J=3;ie=388;break v}if(F>>>0<0|(F|0)==0&H>>>0<2147483648){J=4;ie=388;break v}J=F>>>0<32768|(F|0)==32768&H>>>0<0?5:6;ie=388;break v}while(0);c[(w&p)+28>>2]=J;if(J>>>0>11){I=J;J=(J+-12|0)>>>1}else ie=391}else{J=0;ie=388}while(0);if((ie|0)==388){c[(w&p)+28>>2]=J;ie=391}if((ie|0)==391){ie=0;I=J;J=d[(J&n)+34336>>0]|0}do if(E&16384)if((L|0)==0&(K|0)==0){E=c[(w&p)>>2]|0;J=J-E|0;E=E+C|0;break}else{Rg(w)|0;E=C;break}else E=C;while(0);L=jw(J|0,((J|0)<0)<<31>>31|0,L|0,K|0)|0;K=G;if(I>>>0<128)J=1;else{H=0;J=0;do{J=J+1|0;I=mw(I|0,H|0,7)|0;H=G}while(((I|0)!=0|(H|0)!=0)&(J|0)<9)}J=J+O|0;w=w+-40|0;if(w>>>0>>0){F=J;P=E;break}else{O=J;C=E}}if((F|0)<127)I=F+1|0;else{I=F;H=((F|0)<0)<<31>>31;J=0;do{J=J+1|0;I=mw(I|0,H|0,7)|0;H=G}while(((I|0)!=0|(H|0)!=0)&(J|0)<9);F=J+F|0;I=F;H=((F|0)<0)<<31>>31;C=0;do{C=C+1|0;I=mw(I|0,H|0,7)|0;H=G}while(((I|0)!=0|(H|0)!=0)&(C|0)<9);I=((J|0)<(C|0)&1)+F|0}J=((I|0)<0)<<31>>31;E=jw(I|0,J|0,L|0,K|0)|0;N=G;S=c[(zb&p)>>2]|0;O=((S|0)<0)<<31>>31;if((N|0)>(O|0)|(N|0)==(O|0)&E>>>0>S>>>0){u=x;ie=1316;break c}if(fh(u,E)|0){y=ge;z=je;r=m;m=x;ie=1317;break a}A=c[(z+(T*40|0)&p)+16>>2]|0;if(I>>>0<128){a[(A&n)>>0]=I;K=1;L=V}else{K=(pm(A,I,J)|0)&255;L=V}while(1){H=c[(L&p)+28>>2]|0;if(H>>>0<128){a[(A+K&n)>>0]=H;J=1}else J=(pm(A+K|0,H,0)|0)&255;K=J+K|0;J=A+I|0;if(!(H>>>0<8&(H|0)!=0))if(H>>>0>11){C=c[(L&p)+12>>2]|0;kw(J|0,c[(L&p)+16>>2]|0,C|0)|0}else C=0;else{J=L;if(H>>>0>11)C=(H+-12|0)>>>1;else C=d[(H&n)+34336>>0]|0;F=c[(J&p)>>2]|0;J=c[(J&p)+4>>2]|0;H=C;while(1){H=H+-1|0;a[(A+H+I&n)>>0]=F;F=mw(F|0,J|0,8)|0;if(!H)break;else J=G}}L=L+40|0;if(L>>>0>U>>>0)break;else I=C+I|0}c[(z+(T*40|0)&p)+12>>2]=E;r=z+(T*40|0)+8|0;b[(r&o)>>1]=16;if(P){c[(u&p)>>2]=P;b[(r&o)>>1]=16400}a[(z+(T*40|0)&n)+10>>0]=1;S=z;T=s;U=W;V=X;r=t;break}case 446:{ie=0;if((c[(ae&p)>>2]|0)>0){u=x;ie=447;break c}if(!v)w=0;else{t=v;while(1)if(!(a[(t&n)>>0]|0))break;else t=t+1|0;w=t-v&1073741823}u=sm(le,0,(c[(Ob&p)>>2]|0)+(c[(Nb&p)>>2]|0)|0)|0;if(u){t=r;ie=1318;break c}t=mh(le,w+33|0,0)|0;if(!t){S=z;T=s;U=W;V=X;u=L}else{V=t+32|0;c[(t&p)>>2]=V;kw(V|0,v|0,w+1|0)|0;if(!(a[(ee&n)>>0]|0))c[(Ob&p)>>2]=(c[(Ob&p)>>2]|0)+1;else{a[(ee&n)>>0]=0;a[(Sb&n)>>0]=1}c[(t&p)+24>>2]=c[(Pb&p)>>2];c[(Pb&p)>>2]=t;S=Qb;T=c[(S&p)+4>>2]|0;U=t+8|0;c[(U&p)>>2]=c[(S&p)>>2];c[(U&p)+4>>2]=T;U=Rb;T=c[(U&p)+4>>2]|0;S=t+16|0;c[(S&p)>>2]=c[(U&p)>>2];c[(S&p)+4>>2]=T;S=z;T=s;U=W;V=X;u=L}break}case 486:{c[(Ob&p)>>2]=(c[(Ob&p)>>2]|0)+-1;ie=488;break}case 525:{ie=0;wm(c[((c[(Xd&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<4)&p)+4>>2]|0,c[(s+(r*20|0)&p)+12>>2]|0,Yc);T=c[(Yc&p)>>2]|0;S=u;c[(S&p)>>2]=T;c[(S&p)+4>>2]=((T|0)<0)<<31>>31;S=z;T=s;U=W;V=X;break}case 558:{ie=0;v=xm(f,c[(s+(t*20|0)&p)+4>>2]|0,c[(s+(t*20|0)&p)+8>>2]|0,-1,1)|0;if(!v){y=ge;z=je;r=m;m=x;ie=1317;break a}r=c[(s+(t*20|0)&p)+16>>2]|0;C=v+8|0;c[(C&p)>>2]=r;A=c[(s+(t*20|0)&p)+12>>2]|0;r=e[(r&o)+6>>1]<<2;u=r+148|0;w=mh(le,u,0)|0;if(!w){s=v;u=x;ie=560;break c}fw(w|0,0,u|0)|0;c[(v&p)+56>>2]=w;V=w+128|0;c[(w&p)+28>>2]=V;kw(V|0,c[(C&p)>>2]|0,r+20|0)|0;c[(w&p)+140>>2]=0;if(A)b[(w&o)+134>>1]=A;r=c[(Xd&p)>>2]|0;u=c[((c[((c[(r&p)+4>>2]|0)&p)+4>>2]|0)&p)+32>>2]|0;c[(w&p)+12>>2]=u;a[(w&n)+59>>0]=1;a[(w&n)+57>>0]=0;c[(w&p)+24>>2]=le;c[(w&p)+72>>2]=w;if(((a[(_b&n)>>0]|0)!=2?(Dc=c[2242]|0,c[(w&p)>>2]=ca(Dc,u)|0,V=c[((c[(r&p)+12>>2]|0)&p)+80>>2]|0,V=(V|0)<(Dc|0)?Dc:V,Dc=((u|0)<0)<<31>>31,V=sw(V|0,((V|0)<0)<<31>>31|0,u|0,Dc|0)|0,U=G,c[(w&p)+4>>2]=(U|0)<0|(U|0)==0&V>>>0<536870912?V:536870912,(c[2234]|0)==0):0)?(c[(w&p)+52>>2]=u,V=qg(u,Dc)|0,c[(w&p)+40>>2]=V,(V|0)==0):0){s=7;u=x;ie=1309;break c}else{S=z;T=s;U=W;V=X;u=L;r=t}break}case 566:{ie=0;T=(c[((c[(Ib&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<2)&p)>>2]|0)+40|0;V=T;U=c[(V&p)>>2]|0;V=c[(V&p)+4>>2]|0;S=jw(U|0,V|0,1,0)|0;c[(T&p)>>2]=S;c[(T&p)+4>>2]=G;if((U|0)==0&(V|0)==0){S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0}else{S=z;T=s;U=W;V=X}break}case 568:{ie=0;r=xm(f,c[(s+(t*20|0)&p)+4>>2]|0,c[(s+(t*20|0)&p)+12>>2]|0,-1,0)|0;if(!r){y=ge;z=je;r=m;m=x;ie=1317;break a}a[(r&n)+25>>0]=1;c[(r&p)+16>>2]=c[(s+(t*20|0)&p)+8>>2];S=r+27|0;a[(S&n)>>0]=a[(S&n)>>0]|4;S=z;T=s;U=W;V=X;r=t;break}case 570:{ie=0;S=s+(r*20|0)+4|0;Bm(f,c[((c[(Ib&p)>>2]|0)+(c[(S&p)>>2]<<2)&p)>>2]|0);c[((c[(Ib&p)>>2]|0)+(c[(S&p)>>2]<<2)&p)>>2]=0;S=z;T=s;U=W;V=X;break}case 571:{ie=0;H=c[((c[(Ib&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<2)&p)>>2]|0;a[(H&n)+25>>0]=0;if(!(a[(H&n)+27>>0]&4)){V=c[(s+(r*20|0)&p)+16>>2]|0;c[(wd&p)>>2]=c[(H&p)+8>>2];b[($b&o)>>1]=V;a[(cc&n)>>0]=(K<<1&2^2)+255;V=c[(s+(r*20|0)&p)+12>>2]|0;t=z+(V*40|0)|0;c[(dc&p)>>2]=t;if(b[(z+(V*40|0)&o)+8>>1]&16384)Rg(t)|0;u=Cm(c[(H&p)>>2]|0,wd,0,0,0,Ad)|0;if(!u){u=K;J=L}else{t=r;ie=1318;break c}}else{C=c[(s+(r*20|0)&p)+12>>2]|0;A=z+(C*40|0)|0;C=z+(C*40|0)+8|0;if((b[(C&o)>>1]&14)==2)rh(A,0);J=Vg(A)|0;I=G;C=e[(C&o)>>1]|0;do if(!(C&4)){if(!(C&8)){S=z;T=s;U=W;V=X;u=L;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0;break q}B=+h[(A&q)>>3];D=+(J>>>0)+4294967296.0*+(I|0);if(B>31)+K|0;break}else{C=(B>D&(K&1|0)==0&1)+K|0;break}}else C=K;while(0);u=Cm(c[(H&p)>>2]|0,0,J,I,0,Ad)|0;V=H+48|0;c[(V&p)>>2]=J;c[(V&p)+4>>2]=I;if(!u){u=C;J=L}else{t=r;ie=1318;break c}}a[(H&n)+26>>0]=0;c[(H&p)+60>>2]=0;t=c[(Ad&p)>>2]|0;do if((u|0)>63){if((t|0)>=0?!((t|0)==0&(u|0)==65):0){c[(Ad&p)>>2]=0;S=z;T=s;U=W;V=X;u=J;break q}c[(Ad&p)>>2]=0;u=Dm(c[(H&p)>>2]|0,Ad)|0;if(!u)ie=593;else{t=r;ie=1318;break c}}else{if((t|0)<=0?!((t|0)==0&(u|0)==62):0){t=(a[((c[(H&p)>>2]|0)&n)+73>>0]|0)!=1&1;c[(Ad&p)>>2]=t;break}c[(Ad&p)>>2]=0;u=Em(c[(H&p)>>2]|0,Ad)|0;if(!u)ie=593;else{t=r;ie=1318;break c}}while(0);if((ie|0)==593){ie=0;t=c[(Ad&p)>>2]|0}if(!t){S=z;T=s;U=W;V=X;u=J}else{S=z;T=s;U=W;V=X;u=J;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0}break}case 596:{ie=0;S=c[((c[(Ib&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<2)&p)>>2]|0;a[(S&n)+25>>0]=0;U=Vg(z+((c[(s+(r*20|0)&p)+8>>2]|0)*40|0)|0)|0;T=S+48|0;c[(T&p)>>2]=U;c[(T&p)+4>>2]=G;a[(S&n)+26>>0]=1;S=z;T=s;U=W;V=X;break}case 597:{ie=0;I=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;r=c[(s+(t*20|0)&p)+12>>2]|0;J=z+(r*40|0)|0;c[(od&p)>>2]=0;K=s+(t*20|0)+16|0;C=c[(K&p)>>2]|0;v=I+8|0;A=c[(v&p)>>2]|0;w:do if((C|0)>0){c[(xd&p)>>2]=A;C=C&65535;b[(ec&o)>>1]=C;c[(fc&p)>>2]=J;if(!(C<<16>>16))v=xd;else{r=J;A=0;while(1){if(b[(r+(A*40|0)&o)+8>>1]&16384){Rg(r+(A*40|0)|0)|0;C=b[(ec&o)>>1]|0}A=A+1|0;if((A|0)>=(C&65535|0)){v=xd;break w}r=c[(fc&p)>>2]|0}}}else{C=Fm(A,Sc,191,od)|0;if(!C){y=ge;z=je;r=m;m=x;ie=1317;break a}if(b[(z+(r*40|0)&o)+8>>1]&16384)Rg(J)|0;Gm(c[(v&p)>>2]|0,c[(z+(r*40|0)&p)+12>>2]|0,c[(z+(r*40|0)&p)+16>>2]|0,C);v=C}while(0);a[(v&n)+6>>0]=0;x:do if((a[(H&n)>>0]|0)==67?(Ec=b[(v&o)+4>>1]|0,Ec<<16>>16!=0):0){C=c[(v&p)+8>>2]|0;A=0;while(1){if(b[(C+(A*40|0)&o)+8>>1]&1)break;A=A+1|0;if((A|0)>=(Ec&65535|0)){L=t;r=t;break x}}L=t;r=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0}else{L=t;r=t}while(0);C=Cm(c[(I&p)>>2]|0,v,0,0,0,Bd)|0;if(!(c[(K&p)>>2]|0))mg(le,c[(od&p)>>2]|0);if(C){t=r;s=C;u=x;ie=1309;break c}t=c[(Bd&p)>>2]|0;c[(I&p)+12>>2]=t;t=(t|0)==0;a[(I&n)+25>>0]=t&1^1;a[(I&n)+26>>0]=0;c[(I&p)+60>>2]=0;if((a[(H&n)>>0]|0)==69){if(!t){S=z;T=s;U=W;V=X;break}S=z;T=s;U=W;V=X;r=(c[(s+(L*20|0)&p)+8>>2]|0)+-1|0;break}else{if(t){S=z;T=s;U=W;V=X;break}S=z;T=s;U=W;V=X;r=(c[(s+(L*20|0)&p)+8>>2]|0)+-1|0;break}}case 624:{ie=0;S=(c[((c[(Ib&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<2)&p)>>2]|0)+40|0;T=S;U=c[(T&p)>>2]|0;T=c[(T&p)+4>>2]|0;V=jw(U|0,T|0,1,0)|0;c[(S&p)>>2]=V;c[(S&p)+4>>2]=G;S=u;c[(S&p)>>2]=U;c[(S&p)+4>>2]=T;S=z;T=s;U=W;V=X;break}case 647:{ie=0;I=c[(s+(r*20|0)&p)+8>>2]|0;v=c[((c[(Ib&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<2)&p)>>2]|0;t=c[(s+(r*20|0)&p)+12>>2]|0;if(C<<24>>24==75){F=z+(t*40|0)|0;E=c[(F&p)>>2]|0;F=c[(F&p)+4>>2]|0}else{E=t;F=((t|0)<0)<<31>>31}H=s+(r*20|0)+3|0;J=a[(H&n)>>0]|0;if(J&1)c[(ub&p)>>2]=(c[(ub&p)>>2]|0)+1;if(J&2){m=ne;c[(m&p)>>2]=E;c[(m&p)+4>>2]=F;m=E;l=F}C=b[(z+(I*40|0)&o)+8>>1]|0;if(C&1){c[(z+(I*40|0)&p)+16>>2]=0;c[(z+(I*40|0)&p)+12>>2]=0}if(!(J&16))A=0;else A=c[(v&p)+12>>2]|0;if(!(C&16384))C=0;else C=c[(z+(I*40|0)&p)>>2]|0;C=Im(c[(v&p)>>2]|0,0,E,F,c[(z+(I*40|0)&p)+16>>2]|0,c[(z+(I*40|0)&p)+12>>2]|0,C,(J&255)>>>3&1,A)|0;a[(v&n)+26>>0]=0;c[(v&p)+60>>2]=0;if(C){t=r;s=C;u=x;ie=1309;break c}t=c[(gc&p)>>2]|0;if((t|0)!=0?(Fc=c[(s+(r*20|0)&p)+16>>2]|0,(Fc|0)!=0):0){bc[t&1](c[(hc&p)>>2]|0,(a[(H&n)>>0]&4)!=0?23:18,c[((c[(Xd&p)>>2]|0)+(a[(v&n)+24>>0]<<4)&p)>>2]|0,Fc,E,F);S=z;T=s;U=W;V=X}else{S=z;T=s;U=W;V=X}break}case 671:{ie=0;S=c[(ub&p)>>2]|0;c[(vb&p)>>2]=S;c[(wb&p)>>2]=(c[(wb&p)>>2]|0)+S;c[(ub&p)>>2]=0;S=z;T=s;U=W;V=X;break}case 672:{ie=0;J=c[((c[(Ib&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<2)&p)>>2]|0;I=c[(s+(r*20|0)&p)+12>>2]|0;H=c[(s+(r*20|0)&p)+16>>2]|0;t=c[(J&p)+56>>2]|0;A=t+32|0;C=c[(A&p)>>2]|0;J=c[(J&p)+8>>2]|0;if(!C){C=Fm(J,0,0,md)|0;c[(A&p)>>2]=C;if(!C){t=r;s=7;u=x;ie=1309;break c}b[(C&o)+4>>1]=H}if(!(a[(t&n)+56>>0]|0)){t=c[(t&p)+36>>2]|0;A=t;t=t+8|0}else{V=c[(t&p)+20>>2]|0;t=c[((c[(V&p)+8>>2]|0)&p)+4>>2]|0;V=c[(V&p)+12>>2]|0;A=V+(t*56|0)+20|0;t=c[(V+(t*56|0)&p)+32>>2]|0}Gm(J,c[(A&p)>>2]|0,t,C);y:do if((H|0)>0){t=c[(C&p)+8>>2]|0;v=0;while(1){if(b[(t+(v*40|0)&o)+8>>1]&1)break y;v=v+1|0;if((v|0)>=(H|0)){ie=682;break}}}else ie=682;while(0);if((ie|0)==682){ie=0;if(!(Km(c[(z+(I*40|0)&p)+12>>2]|0,c[(z+(I*40|0)&p)+16>>2]|0,C,0)|0)){S=z;T=s;U=W;V=X;break}}S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0;break}case 700:{ie=0;b[(u&o)+8>>1]=1;S=z;T=s;U=W;V=X;break}case 708:{ie=0;b[(u&o)+8>>1]=1;S=z;T=s;U=W;V=X;break}case 711:{ie=0;t=c[((c[(Ib&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<2)&p)>>2]|0;a[(t&n)+25>>0]=1;c[(t&p)+60>>2]=0;t=c[(t&p)>>2]|0;if(!t){S=z;T=s;U=W;V=X}else{S=t+56|0;Wc(c[(S&p)>>2]|0);c[(S&p)>>2]=0;a[(t&n)+73>>0]=0;S=z;T=s;U=W;V=X}break}case 801:{ie=0;t=c[((c[(Ib&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<2)&p)>>2]|0;u=c[(t&p)>>2]|0;K=L+8|0;b[(K&o)>>1]=1;if((a[(u&n)+73>>0]|0)!=1?(Vd=jm(t)|0,(Vd|0)!=0):0){t=r;u=Vd;ie=1318;break c}if(!(a[(t&n)+25>>0]|0)){V=Sd;c[(V&p)>>2]=0;c[(V&p)+4>>2]=0;km(u,Sd);b[(qc&o)>>1]=0;c[(sc&p)>>2]=le;c[(uc&p)>>2]=0;u=nm(u,0,c[(Sd&p)>>2]|0,1,$c)|0;do if(!u){t=c[(vc&p)>>2]|0;u=a[(t&n)>>0]|0;if(u<<24>>24>-1){C=u&255;c[(qd&p)>>2]=C}else{mm(t,qd)|0;C=c[(qd&p)>>2]|0}if(!(C>>>0<3?1:(C|0)>(c[(wc&p)>>2]|0))){t=(c[(vc&p)>>2]|0)+(C+-1)|0;u=a[(t&n)>>0]|0;if(u<<24>>24>-1){u=u&255;c[(Nd&p)>>2]=u}else{mm(t,Nd)|0;u=c[(Nd&p)>>2]|0}if(!((u+-1|0)>>>0>8|(u|0)==7)){if(u>>>0>11)t=(u+-12|0)>>>1;else t=d[(u&n)+34336>>0]|0;v=c[(wc&p)>>2]|0;if(v>>>0>=(t+C|0)>>>0){om((c[(vc&p)>>2]|0)+(v-t)|0,u,Qd)|0;v=Qd;t=c[(v&p)>>2]|0;v=c[(v&p)+4>>2]|0;if((b[(qc&o)>>1]&9312)==0&(c[(uc&p)>>2]|0)==0){u=0;break}Qg($c);u=0;break}}}if(!((b[(qc&o)>>1]&9312)==0&(c[(uc&p)>>2]|0)==0))Qg($c);c[(ke&p)>>2]=68698;c[(ke&p)+4>>2]=10788;bd(11,13600,ke);u=11;t=0;v=0}else{t=0;v=0}while(0);if(u){t=r;ie=1318;break c}S=L;c[(S&p)>>2]=t;c[(S&p)+4>>2]=v;b[(K&o)>>1]=4;S=z;T=s;U=W;V=X;u=L}else{S=z;T=s;U=W;V=X;u=L}break}case 865:{ie=0;w=c[(C&p)>>2]|0;C=c[((c[(Xd&p)>>2]|0)+(K<<4)&p)+12>>2]|0;t=c[(C&p)+16>>2]|0;if(t)do{v=(c[(t&p)+8>>2]|0)+32|0;if((c[(v&p)>>2]|0)==(A|0))c[(v&p)>>2]=w;t=c[(t&p)>>2]|0}while((t|0)!=0);t=c[(C&p)+32>>2]|0;if(t)do{v=(c[(t&p)+8>>2]|0)+40|0;if((c[(v&p)>>2]|0)==(A|0))c[(v&p)>>2]=w;t=c[(t&p)>>2]|0}while((t|0)!=0);S=z;T=s;U=W;V=X;x=K+1&255;break}case 878:{ie=0;_m(le,u);S=z;T=s;U=W;V=X;u=J;break}case 881:{ie=0;V=c[(s+(r*20|0)&p)+4>>2]|0;c[(Zc&p)>>2]=le;c[(ia&p)>>2]=V;c[(ja&p)>>2]=je;u=c[(s+(r*20|0)&p)+16>>2]|0;c[(ke&p)>>2]=c[((c[(Xd&p)>>2]|0)+(V<<4)&p)>>2];c[(ke&p)+4>>2]=(V|0)==1?13184:13208;c[(ke&p)+8>>2]=u;u=uh(le,42048,ke)|0;if(!u){t=r;u=x;ie=882;break c}a[(ka&n)>>0]=1;c[(la&p)>>2]=0;t=Qe(le,u,22,Zc,0)|0;t=(t|0)==0?c[(la&p)>>2]|0:t;mg(le,u);a[(ka&n)>>0]=0;if(!t){S=z;T=s;U=W;V=X;u=J}else{s=t;t=r;u=x;ie=884;break c}break}case 886:{ie=0;kg(le,Ik((c[((c[(Xd&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<4)&p)+12>>2]|0)+8|0,c[(s+(r*20|0)&p)+16>>2]|0,0)|0);c[(Tb&p)>>2]=c[(Tb&p)>>2]|2;S=z;T=s;U=W;V=X;break}case 887:{ie=0;C=Ik((c[((c[(Xd&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<4)&p)+12>>2]|0)+24|0,c[(s+(r*20|0)&p)+16>>2]|0,0)|0;if(C){t=(c[(C&p)+12>>2]|0)+8|0;u=c[(t&p)>>2]|0;z:do if((u|0)==(C|0))c[(t&p)>>2]=c[(C&p)+20>>2];else{do{if(!u)break z;t=u+20|0;u=c[(t&p)>>2]|0}while((u|0)!=(C|0));c[(t&p)>>2]=c[(C&p)+20>>2]}while(0);Jk(le,C)}c[(Tb&p)>>2]=c[(Tb&p)>>2]|2;S=z;T=s;U=W;V=X;u=J;break}case 895:{ie=0;C=Ik((c[((c[(Xd&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<4)&p)+12>>2]|0)+40|0,c[(s+(r*20|0)&p)+16>>2]|0,0)|0;if(!C){S=z;T=s;U=W;V=X}else{t=c[(C&p)+20>>2]|0;if((t|0)==(c[(C&p)+24>>2]|0)){t=bn(t+8|0,c[(C&p)+4>>2]|0,ke)|0;if(!t)t=0;else t=c[(t&p)+8>>2]|0;v=t+64|0;while(1){V=c[(v&p)>>2]|0;t=V+32|0;if((V|0)==(C|0))break;else v=t}c[(v&p)>>2]=c[(t&p)>>2]}jg(le,C);c[(Tb&p)>>2]=c[(Tb&p)>>2]|2;S=z;T=s;U=W;V=X}break}case 903:{ie=0;L=c[(s+(t*20|0)&p)+8>>2]|0;v=mh(le,(L<<2)+4|0,0)|0;if(!v){y=ge;z=je;r=m;m=x;ie=1317;break a}A=c[(s+(t*20|0)&p)+12>>2]|0;r=c[(s+(t*20|0)&p)+4>>2]|0;M=z+(r*40|0)|0;if((L|0)>0){C=0;do{V=Vg(z+((C+r|0)*40|0)|0)|0;c[(v+(C<<2)&p)>>2]=V;C=C+1|0}while((C|0)!=(L|0));C=L}else C=0;c[(v+(C<<2)&p)>>2]=0;I=c[((c[(Xd&p)>>2]|0)+(d[(s+(t*20|0)&n)+3>>0]<<4)&p)+4>>2]|0;P=z+(A*40|0)|0;V=c[(P&p)>>2]|0;O=c[(I&p)+4>>2]|0;c[(O&p)+4>>2]=c[(I&p)>>2];I=c[(O&p)>>2]|0;w=c[((c[(I&p)+204>>2]|0)&p)+12>>2]|0;c[(Sd&p)>>2]=O;c[(ma&p)>>2]=I;I=c[(O&p)+44>>2]|0;c[(na&p)>>2]=I;c[(oa&p)>>2]=V;c[(pa&p)>>2]=0;c[(pa&p)+4>>2]=0;c[(pa&p)+8>>2]=0;c[(pa&p)+12>>2]=0;c[(pa&p)+16>>2]=0;do if(!I){A=0;C=0}else{J=(I>>>3)+1|0;H=qg(J,0)|0;if(!H){c[(sa&p)>>2]=0;A=0;C=1;break}fw(H|0,0,J|0)|0;c[(sa&p)>>2]=H;N=O+32|0;J=(((c[2514]|0)>>>0)/((c[(N&p)>>2]|0)>>>0)|0)+1|0;if(J>>>0<=I>>>0){V=H+(J>>>3)|0;a[(V&n)>>0]=d[(V&n)>>0]|1<<(J&7)}c[(ua&p)>>2]=Nd;c[(va&p)>>2]=Nd;c[(ta&p)>>2]=0;c[(wa&p)>>2]=0;c[(xa&p)>>2]=100;c[(ya&p)>>2]=1e9;a[(Aa&n)>>0]=0;a[(za&n)>>0]=2;c[(ra&p)>>2]=43592;C=c[((c[(O&p)+12>>2]|0)&p)+56>>2]|0;cn(Sd,1,d[(C&n)+33>>0]<<16|d[(C&n)+32>>0]<<24|d[(C&n)+34>>0]<<8|d[(C&n)+35>>0],d[(C&n)+37>>0]<<16|d[(C&n)+36>>0]<<24|d[(C&n)+38>>0]<<8|d[(C&n)+39>>0]);c[(ra&p)>>2]=0;C=c[(oa&p)>>2]|0;if(!((L|0)<1|(C|0)==0)){F=O+17|0;H=0;do{I=v+(H<<2)|0;J=c[(I&p)>>2]|0;if(J){if((a[(F&n)>>0]|0)!=0&(J|0)>1){dn(Sd,J,1,0);J=c[(I&p)>>2]|0}c[(ra&p)>>2]=43608;en(Sd,J,0,0)|0;c[(ra&p)>>2]=0;C=c[(oa&p)>>2]|0}H=H+1|0}while(!((H|0)>=(L|0)|(C|0)==0))}if(!((c[(na&p)>>2]|0)==0|(C|0)==0)){E=O+17|0;C=O+36|0;L=1;do{H=L>>>3;J=a[((c[(sa&p)>>2]|0)+H&n)>>0]|0;F=1<<(L&7);do if(!(J&255&F)){if(L>>>0<2)I=0;else{I=L+-2|0;I=I-((I>>>0)%(((((c[(C&p)>>2]|0)>>>0)/5|0)+1|0)>>>0)|0)|0;I=((I+1|0)==(((c[2514]|0)>>>0)/((c[(N&p)>>2]|0)>>>0)|0|0)?3:2)+I|0}if((I|0)==(L|0)?(a[(E&n)>>0]|0)!=0:0)break;c[(ke&p)>>2]=L;fn(Sd,43632,ke);J=a[((c[(sa&p)>>2]|0)+H&n)>>0]|0}while(0);do if(J&255&F){if(L>>>0<2)J=0;else{J=L+-2|0;J=J-((J>>>0)%(((((c[(C&p)>>2]|0)>>>0)/5|0)+1|0)>>>0)|0)|0;J=((J+1|0)==(((c[2514]|0)>>>0)/((c[(N&p)>>2]|0)>>>0)|0|0)?3:2)+J|0}if((J|0)!=(L|0))break;if(!(a[(E&n)>>0]|0))break;c[(ke&p)>>2]=L;fn(Sd,43656,ke)}while(0);L=L+1|0}while(!((c[(oa&p)>>2]|0)==0?1:L>>>0>(c[(na&p)>>2]|0)>>>0))}C=c[((c[((c[(O&p)>>2]|0)&p)+204>>2]|0)&p)+12>>2]|0;if((w|0)!=(C|0)){c[(ke&p)>>2]=w;c[(ke&p)+4>>2]=C;fn(Sd,43696,ke)}Wc(c[(sa&p)>>2]|0);if(c[(qa&p)>>2]|0){gn(ta);A=0;C=(c[(pa&p)>>2]|0)+1|0;break}C=c[(pa&p)>>2]|0;if(!C)gn(ta);A=tg(ta)|0}while(0);mg(le,v);U=P;U=dw(c[(U&p)>>2]|0,c[(U&p)+4>>2]|0,C|0,((C|0)<0)<<31>>31|0)|0;V=P;c[(V&p)>>2]=U;c[(V&p)+4>>2]=G;r=z+(r*40|0)+8|0;if(!(b[(r&o)>>1]&9312))b[(r&o)>>1]=1;else vg(M);if(C){if(!A){y=ge;z=je;r=m;m=x;ie=1317;break a}Xg(M,A,-1,1,1)|0}Yl(M,xb)|0;S=z;T=s;U=W;V=X;r=t;break}case 947:{ie=0;v=c[(s+(t*20|0)&p)+4>>2]|0;r=z+(v*40|0)|0;u=c[(s+(t*20|0)&p)+8>>2]|0;v=z+(v*40|0)+8|0;if((b[(v&o)>>1]&32)==0?(hn(r),(b[(v&o)>>1]&32)==0):0){y=ge;z=je;r=m;m=x;ie=1317;break a}S=z+(u*40|0)|0;jn(c[(r&p)>>2]|0,c[(S&p)>>2]|0,c[(S&p)+4>>2]|0);S=z;T=s;U=W;V=X;u=J;r=t;break}case 966:{ie=0;r=c[(s+(t*20|0)&p)+4>>2]|0;P=z+(r*40|0)|0;O=z+((c[(s+(t*20|0)&p)+12>>2]|0)*40|0)|0;N=c[(s+(t*20|0)&p)+16>>2]|0;r=z+(r*40|0)+8|0;if((b[(r&o)>>1]&32)==0?(hn(P),(b[(r&o)>>1]&32)==0):0){y=ge;z=je;r=m;m=x;ie=1317;break a}if(N){L=c[(P&p)>>2]|0;v=O;M=c[(v&p)>>2]|0;v=c[(v&p)+4>>2]|0;K=L+28|0;if((c[(K&p)>>2]|0)!=(N|0)){C=L+8|0;J=c[(C&p)>>2]|0;if(J){I=L+20|0;A=L+26|0;if(!(b[(A&o)>>1]&1))J=kn(J)|0;H=c[(I&p)>>2]|0;A:do if(!H){ld=J;rd=I;ie=978}else{while(1){I=H+12|0;F=c[(I&p)>>2]|0;if(!F)break;E=H+8|0;ln(F,ke,Sd);c[(I&p)>>2]=0;J=mn(c[(ke&p)>>2]|0,J)|0;H=c[(E&p)>>2]|0;if(!H){ld=J;rd=E;ie=978;break A}}c[(I&p)>>2]=nn(J)|0}while(0);if((ie|0)==978?(ie=0,Kc=on(L)|0,c[(rd&p)>>2]=Kc,(Kc|0)!=0):0){V=Kc;c[(V&p)>>2]=0;c[(V&p)+4>>2]=0;c[(Kc&p)+8>>2]=0;c[(Kc&p)+12>>2]=nn(ld)|0}c[(C&p)>>2]=0;c[(L&p)+12>>2]=0;b[(A&o)>>1]=e[(A&o)>>1]|1}c[(K&p)>>2]=N}C=c[(L&p)+20>>2]|0;B:do if(C){C:while(1){A=c[(C&p)+12>>2]|0;if(A)do{r=A;E=c[(r&p)>>2]|0;r=c[(r&p)+4>>2]|0;if((r|0)<(v|0)|(r|0)==(v|0)&E>>>0>>0)A=A+8|0;else{if(!((r|0)>(v|0)|(r|0)==(v|0)&E>>>0>M>>>0))break C;A=A+12|0}A=c[(A&p)>>2]|0}while((A|0)!=0);C=c[(C&p)+8>>2]|0;if(!C)break B}S=z;T=s;U=W;V=X;r=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;break q}while(0);if((N|0)>-1)C=O;else{S=z;T=s;U=W;V=X;r=t;break}}else C=O;S=C;jn(c[(P&p)>>2]|0,c[(S&p)>>2]|0,c[(S&p)+4>>2]|0);S=z;T=s;U=W;V=X;r=t;break}case 993:{ie=0;K=c[(s+(r*20|0)&p)+16>>2]|0;I=c[(s+(r*20|0)&p)+12>>2]|0;L=z+(I*40|0)|0;if((a[(s+(r*20|0)&n)+3>>0]|0)!=0?(Lc=c[(K&p)+20>>2]|0,nd=c[(sb&p)>>2]|0,(nd|0)!=0):0){t=nd;while(1){if((c[(t&p)+28>>2]|0)==(Lc|0)){S=z;T=s;U=W;V=X;break q}t=c[(t&p)+4>>2]|0;if(!t){t=r;break}}}else t=r;r=c[(tb&p)>>2]|0;if((r|0)>=(c[(Ba&p)>>2]|0)){u=x;ie=998;break c}E=z+(I*40|0)+8|0;if(!(b[(E&o)>>1]&64)){C=K+12|0;A=c[(C&p)>>2]|0;r=A+(c[(K&p)+8>>2]|0)|0;s=K+16|0;A=(A<<2)+80+(c[(s&p)>>2]|0)+(r*40|0)|0;J=mh(le,A,((A|0)<0)<<31>>31)|0;if(!J){y=ge;z=je;r=m;m=x;ie=1317;break a}fw(J|0,0,A|0)|0;if(!((b[(E&o)>>1]&9312)==0?(c[(z+(I*40|0)&p)+24>>2]|0)==0:0))Qg(L);b[(E&o)>>1]=64;c[(L&p)>>2]=J;c[(J&p)>>2]=f;c[(J&p)+60>>2]=r;c[(J&p)+64>>2]=c[(C&p)>>2];c[(J&p)+44>>2]=t;c[(J&p)+16>>2]=c[(Nc&p)>>2];c[(J&p)+52>>2]=c[(Ca&p)>>2];c[(J&p)+24>>2]=c[(Ib&p)>>2];c[(J&p)+40>>2]=c[(Da&p)>>2];c[(J&p)+8>>2]=c[(zc&p)>>2];c[(J&p)+48>>2]=c[(Ea&p)>>2];c[(J&p)+28>>2]=c[(K&p)+20>>2];c[(J&p)+20>>2]=c[(Hb&p)>>2];c[(J&p)+56>>2]=c[(Fa&p)>>2];z=J+80|0;r=z+(r*40|0)|0;if((z|0)!=(r|0))do{b[(z&o)+8>>1]=128;c[(z&p)+32>>2]=le;z=z+40|0}while((z|0)!=(r|0));r=c[(tb&p)>>2]|0;z=J}else{s=K+16|0;z=c[(L&p)>>2]|0}c[(tb&p)>>2]=r+1;c[(z&p)+4>>2]=c[(sb&p)>>2];S=z+32|0;c[(S&p)>>2]=m;c[(S&p)+4>>2]=l;c[(z&p)+68>>2]=c[(ub&p)>>2];c[(z&p)+72>>2]=c[((c[(f&p)>>2]|0)&p)+80>>2];c[(ub&p)>>2]=0;c[(sb&p)>>2]=z;S=z+40|0;c[(Nc&p)>>2]=S;U=c[(z&p)+60>>2]|0;c[(Ca&p)>>2]=U;V=c[(z&p)+64>>2]&65535;c[(Da&p)>>2]=V;U=S+((U+1|0)*40|0)|0;c[(Ib&p)>>2]=U;T=c[(K&p)>>2]|0;c[(zc&p)>>2]=T;c[(Ea&p)>>2]=c[(K&p)+4>>2];V=U+(V<<2)|0;c[(Hb&p)>>2]=V;U=c[(s&p)>>2]|0;c[(Fa&p)>>2]=U;fw(V|0,0,U|0)|0;U=W;V=X;r=-1;break}case 1009:{ie=0;S=c[(sb&p)>>2]|0;Zl(u,(c[(S&p)+16>>2]|0)+(((c[((c[(S&p)+8>>2]|0)+((c[(S&p)+44>>2]|0)*20|0)&p)+4>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]|0)|0)*40|0)|0,4096);S=z;T=s;U=W;V=X;break}case 1010:{ie=0;if(c[(Tb&p)>>2]&16777216){T=c[(s+(r*20|0)&p)+8>>2]|0;S=Rb;T=jw(c[(S&p)>>2]|0,c[(S&p)+4>>2]|0,T|0,((T|0)<0)<<31>>31|0)|0;S=Rb;c[(S&p)>>2]=T;c[(S&p)+4>>2]=G;S=z;T=s;U=W;V=X;u=J;break}t=c[(s+(r*20|0)&p)+8>>2]|0;u=((t|0)<0)<<31>>31;if(!(c[(s+(r*20|0)&p)+4>>2]|0)){T=_d;T=jw(c[(T&p)>>2]|0,c[(T&p)+4>>2]|0,t|0,u|0)|0;S=_d;c[(S&p)>>2]=T;c[(S&p)+4>>2]=G;S=z;T=s;U=W;V=X;u=J;break}else{T=Qb;T=jw(c[(T&p)>>2]|0,c[(T&p)+4>>2]|0,t|0,u|0)|0;S=Qb;c[(S&p)>>2]=T;c[(S&p)+4>>2]=G;S=z;T=s;U=W;V=X;u=J;break}}case 1015:{ie=0;if(!(c[(s+(r*20|0)&p)+4>>2]|0)){V=_d;if(!((c[(V&p)>>2]|0)==0&(c[(V&p)+4>>2]|0)==0)){S=z;T=s;U=W;V=X;break}V=Rb;if(!((c[(V&p)>>2]|0)==0&(c[(V&p)+4>>2]|0)==0)){S=z;T=s;U=W;V=X;break}S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0;break}else{V=Qb;if(!((c[(V&p)>>2]|0)==0&(c[(V&p)+4>>2]|0)==0)){S=z;T=s;U=W;V=X;break}V=Rb;if(!((c[(V&p)>>2]|0)==0&(c[(V&p)+4>>2]|0)==0)){S=z;T=s;U=W;V=X;break}S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0;break}}case 1022:{ie=0;t=c[(sb&p)>>2]|0;if(!t)v=z+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)|0;else{while(1){u=c[(t&p)+4>>2]|0;if(!u)break;else t=u}v=(c[(t&p)+16>>2]|0)+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)|0}U=Vg(v)|0;V=v;c[(V&p)>>2]=U;c[(V&p)+4>>2]=G;V=v+8|0;b[(V&o)>>1]=e[(V&o)>>1]&48640|4;V=c[(s+(r*20|0)&p)+8>>2]|0;U=z+(V*40|0)|0;t=Vg(U)|0;u=G;c[(U&p)>>2]=t;c[(U&p)+4>>2]=u;V=z+(V*40|0)+8|0;b[(V&o)>>1]=e[(V&o)>>1]&48640|4;V=v;U=c[(V&p)+4>>2]|0;if((U|0)<(u|0)|((U|0)==(u|0)?(c[(V&p)>>2]|0)>>>0>>0:0)){S=v;c[(S&p)>>2]=t;c[(S&p)+4>>2]=u;S=z;T=s;U=W;V=X;u=L}else{S=z;T=s;U=W;V=X;u=L}break}case 1028:{ie=0;V=z+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)|0;U=c[(V&p)+4>>2]|0;if((U|0)>0|(U|0)==0&(c[(V&p)>>2]|0)>>>0>0){S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0}else{S=z;T=s;U=W;V=X}break}case 1030:{ie=0;T=c[(s+(r*20|0)&p)+12>>2]|0;U=z+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)|0;V=U;T=jw(c[(V&p)>>2]|0,c[(V&p)+4>>2]|0,T|0,((T|0)<0)<<31>>31|0)|0;V=G;c[(U&p)>>2]=T;c[(U&p)+4>>2]=V;if((V|0)<0){S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0}else{S=z;T=s;U=W;V=X}break}case 1032:{ie=0;t=z+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)|0;v=t;u=c[(v&p)>>2]|0;v=c[(v&p)+4>>2]|0;if((u|0)==0&(v|0)==0){S=z;T=s;U=W;V=X;u=J}else{T=c[(s+(r*20|0)&p)+12>>2]|0;T=jw(T|0,((T|0)<0)<<31>>31|0,u|0,v|0)|0;S=t;c[(S&p)>>2]=T;c[(S&p)+4>>2]=G;S=z;T=s;U=W;V=X;u=J;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0}break}case 1034:{ie=0;T=z+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)|0;U=T;U=jw(c[(U&p)>>2]|0,c[(U&p)+4>>2]|0,-1,-1)|0;V=G;c[(T&p)>>2]=U;c[(T&p)+4>>2]=V;if((U|0)==0&(V|0)==0){S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0}else{S=z;T=s;U=W;V=X}break}case 1036:{ie=0;T=z+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)|0;V=T;U=c[(V&p)>>2]|0;V=c[(V&p)+4>>2]|0;S=jw(U|0,V|0,1,0)|0;c[(T&p)>>2]=S;c[(T&p)+4>>2]=G;if((U|0)==0&(V|0)==0){S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0}else{S=z;T=s;U=W;V=X}break}case 1157:{ie=0;S=z;T=s;U=W;V=X;r=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;break}case 1158:{ie=0;if(c[(s+(r*20|0)&p)+4>>2]|0){b[(Yd&o)>>1]=b[(Yd&o)>>1]|8;S=z;T=s;U=W;V=X;break}t=c[(Vb&p)>>2]|0;if(!t){S=z;T=s;U=W;V=X}else{do{V=t+88|0;b[(V&o)>>1]=b[(V&o)>>1]|8;t=c[(t&p)+52>>2]|0}while((t|0)!=0);S=z;T=s;U=W;V=X}break}case 1166:{ie=0;J=(c[(w&p)>>2]|0)+72|0;t=c[(J&p)>>2]|0;D:do if(t){while(1){if((c[(t&p)+4>>2]|0)==(A|0)?(c[(t&p)>>2]|0)==(C|0):0)break;t=c[(t&p)+12>>2]|0;if(!t){ie=1171;break D}}if(!t)ie=1171}else ie=1171;while(0);if((ie|0)==1171){ie=0;t=qg(16,0)|0;if(!t){t=r;s=7;u=x;ie=1309;break c}U=t+0|0;V=U+12|0;do{a[(U&n)>>0]=0;U=U+1|0}while((U|0)<(V|0));c[(t&p)+4>>2]=A;c[(t&p)>>2]=C;c[(t&p)+12>>2]=c[(J&p)>>2];c[(J&p)>>2]=t}t=t+8|0;if((d[(t&n)>>0]|0)<(v&255)){a[(t&n)>>0]=v;S=z;T=s;U=W;V=X}else{S=z;T=s;U=W;V=X}break}case 1213:{ie=0;c[(sd&p)>>2]=0;v=c[((c[(s+(r*20|0)&p)+16>>2]|0)&p)+8>>2]|0;if(!v){t=r;s=6;u=x;ie=1309;break c}w=c[(v&p)>>2]|0;if(!w){t=r;s=6;u=x;ie=1309;break c}C=rc[c[(w&p)+24>>2]&127](v,sd)|0;Mm(f,v);if(C){t=r;s=C;u=x;ie=1309;break c}c[(c[(sd&p)>>2]&p)>>2]=v;t=xm(f,c[(s+(r*20|0)&p)+4>>2]|0,0,-1,0)|0;if(!t){a[(ge&n)>>0]=1;lc[c[(w&p)+28>>2]&127](c[(sd&p)>>2]|0)|0;S=z;T=s;U=W;V=X;break}else{c[(t&p)+32>>2]=c[(sd&p)>>2];S=v+4|0;c[(S&p)>>2]=(c[(S&p)>>2]|0)+1;S=z;T=s;U=W;V=X;break}}case 1226:{ie=0;t=z+(C*40|0)+8|0;if(!(b[(t&o)>>1]&9312)){b[(t&o)>>1]=1;S=z;T=s;U=W;V=X;break}else{vg(A);S=z;T=s;U=W;V=X;break}}case 1257:{ie=0;S=u;c[(S&p)>>2]=c[((c[((c[((c[(Xd&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<4)&p)+4>>2]|0)&p)+4>>2]|0)&p)+44>>2];c[(S&p)+4>>2]=0;S=z;T=s;U=W;V=X;break}case 1258:{ie=0;v=c[((c[(Xd&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<4)&p)+4>>2]|0;t=c[(s+(r*20|0)&p)+12>>2]|0;u=c[(v&p)+4>>2]|0;if(!t)t=0;else{V=c[(u&p)+44>>2]|0;t=V>>>0>>0?t:V}c[(u&p)+4>>2]=c[(v&p)>>2];u=(c[(u&p)>>2]|0)+156|0;if((t|0)>0)c[(u&p)>>2]=t;else t=c[(u&p)>>2]|0;S=J;c[(S&p)>>2]=t;c[(S&p)+4>>2]=((t|0)<0)<<31>>31;S=z;T=s;U=W;V=X;u=J;break}case 1264:{ie=0;r=c[(s+(t*20|0)&p)+8>>2]|0;r=(r|0)==0?t:r+-1|0;if((c[(Sa&p)>>2]|0)!=0?(b[(Yd&o)>>1]&512)==0:0){t=c[(s+(t*20|0)&p)+16>>2]|0;if(!t){t=c[(ce&p)>>2]|0;if(!t){S=z;T=s;U=W;V=X;u=L;break}}c[(Sd&p)>>2]=0;F=c[(f&p)>>2]|0;v=c[(F&p)+88>>2]|0;c[(fb&p)>>2]=Nd;c[(gb&p)>>2]=Nd;c[(hb&p)>>2]=0;c[(ib&p)>>2]=100;c[(jb&p)>>2]=v;a[(kb&n)>>0]=1;a[(lb&n)>>0]=0;c[(qd&p)>>2]=F;v=a[(t&n)>>0]|0;u=v<<24>>24==0;E:do if((c[(F&p)+160>>2]|0)>1){if(!u)while(1){u=t;do{u=u+1|0;if(v<<24>>24==10)break;v=a[(u&n)>>0]|0}while(v<<24>>24!=0);Sk(qd,42288,3);Sk(qd,t,u-t|0);v=a[(u&n)>>0]|0;if(!(v<<24>>24))break;else t=u}}else if(!u){H=F+62|0;K=1;do{F:do if(!(v<<24>>24)){A=0;u=0}else{C=t;u=0;while(1){A=Cn(C,ke)|0;if((c[(ke&p)>>2]|0)==135)break F;u=A+u|0;C=C+A|0;if(!(a[(C&n)>>0]|0)){A=0;break}}}while(0);Sk(qd,t,u);C=t+u|0;if(!A)break E;do if((a[(C&n)>>0]|0)==63)if((A|0)>1){Dn(t+(u+1)|0,Sd)|0;C=c[(Sd&p)>>2]|0;break}else{c[(Sd&p)>>2]=K;C=K;break}else{C=qh(f,C,A)|0;c[(Sd&p)>>2]=C}while(0);t=t+(u+A)|0;K=C+1|0;J=C+-1|0;I=c[(Ab&p)>>2]|0;C=I+(J*40|0)|0;A=e[(I+(J*40|0)&o)+8>>1]|0;do if(!(A&1)){if(A&4){T=C;U=c[(T&p)+4>>2]|0;V=ke;c[(V&p)>>2]=c[(T&p)>>2];c[(V&p)+4>>2]=U;En(qd,0,19920,ke);break}if(A&8){h[(k&q)>>3]=+h[(C&q)>>3];c[(ke&p)>>2]=c[(k&p)>>2];c[(ke&p)+4>>2]=c[(k&p)+4>>2];En(qd,0,20272,ke);break}if(!(A&2)){if(A&16384){c[(ke&p)>>2]=c[(C&p)>>2];En(qd,0,42304,ke);break}Sk(qd,42320,2);E=c[(I+(J*40|0)&p)+12>>2]|0;if((E|0)>0){C=I+(J*40|0)+16|0;A=0;do{c[(ke&p)>>2]=d[((c[(C&p)>>2]|0)+A&n)>>0];En(qd,0,42328,ke);A=A+1|0}while((A|0)!=(E|0))}Sk(qd,42336,1);break}else{E=a[(H&n)>>0]|0;if(E<<24>>24==1){V=c[(I+(J*40|0)&p)+16>>2]|0;c[(ke&p)>>2]=c[(I+(J*40|0)&p)+12>>2];c[(ke&p)+4>>2]=V;En(qd,0,42296,ke);break}U=Od+0|0;V=U+40|0;do{c[(U&p)>>2]=0;U=U+4|0}while((U|0)<(V|0));c[(nb&p)>>2]=F;Xg(Od,c[(I+(J*40|0)&p)+16>>2]|0,c[(I+(J*40|0)&p)+12>>2]|0,E,0)|0;V=c[(ob&p)>>2]|0;if(!((V&2|0)==0|(V&16711680|0)==65536))Bn(Od,1)|0;V=c[(qb&p)>>2]|0;c[(ke&p)>>2]=c[(pb&p)>>2];c[(ke&p)+4>>2]=V;En(qd,0,42296,ke);if((b[(ob&o)>>1]&9312)==0&(c[(rb&p)>>2]|0)==0)break;Qg(Od);break}}else Sk(qd,20304,4);while(0);v=a[(t&n)>>0]|0}while(v<<24>>24!=0)}while(0);S=tg(qd)|0;jc[c[(Sa&p)>>2]&15](c[(mb&p)>>2]|0,S);mg(le,S);S=z;T=s;U=W;V=X;u=L}else{S=z;T=s;U=W;V=X;u=L}break}}if((ie|0)==28){ie=0;z=s+(r*20|0)+4|0;t=c[(z&p)>>2]|0;if(t){y=z;ie=34;break}z=c[(sb&p)>>2]|0;if(!z){ie=30;break}c[(sb&p)>>2]=c[(z&p)+4>>2];c[(tb&p)>>2]=(c[(tb&p)>>2]|0)+-1;l=c[(ub&p)>>2]|0;c[(vb&p)>>2]=l;c[(wb&p)>>2]=(c[(wb&p)>>2]|0)+l;z=Xl(z)|0;l=ne;t=c[(zc&p)>>2]|0;if((c[(s+(r*20|0)&p)+8>>2]|0)==4)r=(c[(t+(z*20|0)&p)+8>>2]|0)+-1|0;else r=z;m=c[(l&p)>>2]|0;l=c[(l&p)+4>>2]|0;S=c[(Nc&p)>>2]|0;T=t;U=W;V=X}else if((ie|0)==488){ie=0;u=sm(le,C,A)|0;if(!u){S=z;T=s;U=W;V=X;u=E}else{t=r;ie=1318;break}}z=S;s=T;W=U;X=V;t=r+1|0}switch(ie|0){case 30:{c[(me&p)>>2]=t;a[(fe&n)>>0]=c[(s+(r*20|0)&p)+8>>2];c[(he&p)>>2]=r;ie=41;break}case 34:{c[(me&p)>>2]=t;a[(fe&n)>>0]=c[(s+(r*20|0)&p)+8>>2];c[(he&p)>>2]=r;t=a[(s+(r*20|0)&n)+3>>0]|0;if(!(t<<24>>24)){s=c[(s+(r*20|0)&p)+16>>2]|0;if(!s){s=0;ie=39}else{c[(ke&p)>>2]=s;dh(je,le,10344,ke)}}else{u=c[((t&255)+-1<<2&p)+41536>>2]|0;t=c[(s+(r*20|0)&p)+16>>2]|0;if(!t){s=u;ie=39}else{c[(ke&p)>>2]=u;c[(ke&p)+4>>2]=t;dh(je,le,41624,ke)}}if((ie|0)==39){c[(ke&p)>>2]=s;dh(je,le,41656,ke)}ie=c[(y&p)>>2]|0;qd=c[(ce&p)>>2]|0;rd=c[(je&p)>>2]|0;c[(ke&p)>>2]=r;c[(ke&p)+4>>2]=qd;c[(ke&p)+8>>2]=rd;bd(ie,41600,ke);ie=41;break}case 80:{x=c[(be&p)>>2]|0;if(!((x|0)==0|g>>>0>>0)?(lc[x&127](c[(Zd&p)>>2]|0)|0)!=0:0){r=m;s=9;m=u;ie=1311;break a}rd=_d;qd=c[(rd&p)+4>>2]|0;if((qd|0)>0|(qd|0)==0&(c[(rd&p)>>2]|0)>>>0>0){s=c[(f&p)>>2]|0;c[(me&p)>>2]=787;a[(fe&n)>>0]=2;dh(je,s,34376,ke);s=1;ie=1309;break}x=$l(f,1)|0;if(!x){c[($d&p)>>2]=(c[($d&p)>>2]|0)+2|1;y=c[(s+(t*20|0)&p)+4>>2]|0;c[(de&p)>>2]=z+(y*40|0);r=s+(t*20|0)+8|0;if((c[(r&p)>>2]|0)>0){x=0;do{v=x+y|0;w=z+(v*40|0)|0;v=z+(v*40|0)+8|0;s=b[(v&o)>>1]|0;if(s&4096){if(Vl(w)|0){y=ge;z=je;r=m;m=u;ie=1317;break a}s=b[(v&o)>>1]|0}if((s&514)==2)am(w)|0;x=x+1|0}while((x|0)<(c[(r&p)>>2]|0))}if(a[(ge&n)>>0]|0){y=ge;z=je;r=m;m=u;ie=1317;break a}c[(he&p)>>2]=t+1;r=m;m=g;g=100;break a}else{s=x;ie=1309}break}case 313:{c[(ke&p)>>2]=73058;c[(ke&p)+4>>2]=10788;bd(11,13600,ke);s=11;ie=1309;break}case 343:{c[(ke&p)>>2]=73142;c[(ke&p)+4>>2]=10788;bd(11,13600,ke);s=11;ie=1309;break}case 447:{dh(je,le,41712,ke);t=r;s=5;ie=1309;break}case 460:{c[(ke&p)>>2]=s;dh(je,le,41768,ke);s=1;ie=1309;break}case 462:{dh(je,le,41792,ke);s=5;ie=1309;break}case 467:{c[(he&p)>>2]=g;a[(ee&n)>>0]=0;c[(me&p)>>2]=5;g=5;break a}case 489:{v=c[(s+(t*20|0)&p)+4>>2]|0;s=c[(s+(t*20|0)&p)+8>>2]|0;g=(v|0)!=0;if(g){s=(s|0)!=0;if(!(s|(a[(ee&n)>>0]|0)!=0))if((c[(ae&p)>>2]|0)>0){dh(je,le,41848,ke);g=m;m=r;s=5;ie=1309;break}else s=0}else s=(s|0)!=0;if((v|0)==(d[(ee&n)>>0]|0)){if(g)g=s?41952:42e3;else g=41904;dh(je,le,g,ke);g=m;m=r;s=1;ie=1309;break}if(!s){g=tm(f,1)|0;if(g)break a;a[(ee&n)>>0]=v;if((Rl(f)|0)==5){c[(he&p)>>2]=t;a[(ee&n)>>0]=1-v;c[(me&p)>>2]=5;g=5;break a}}else{Kl(le,516);a[(ee&n)>>0]=1}Ll(le);g=(c[(me&p)>>2]|0)==0?101:1;break a}case 508:{c[(he&p)>>2]=g;c[(me&p)>>2]=5;g=5;break a}case 522:{mg(le,c[(je&p)>>2]|0);c[(je&p)>>2]=kh(le,16040)|0;s=c[(s&p)>>2]|0;if((c[(c[((c[(Xd&p)>>2]|0)+(s<<4)&p)+12>>2]&p)>>2]|0)!=(v|0))vm(le,s);b[(Yd&o)>>1]=b[(Yd&o)>>1]|8;s=17;ie=1309;break}case 542:{c[(ke&p)>>2]=73997;c[(ke&p)+4>>2]=10788;bd(11,13600,ke);u=11;x=s;ie=1318;break}case 560:{c[(s&p)+56>>2]=0;s=7;ie=1309;break}case 832:{a[(fe&n)>>0]=2;s=6;ie=1309;break}case 882:{Eg(le);y=ge;z=je;r=m;m=u;ie=1317;break a}case 884:{Eg(le);if((s|0)==7){y=ge;z=je;r=m;m=u;ie=1317;break a}else ie=1309;break}case 998:{dh(je,le,42112,ke);s=1;ie=1309;break}case 1080:{c[(ke&p)>>2]=s?42208:42216;dh(je,le,42152,ke);s=1;ie=1309;break}case 1101:{dh(je,le,42344,ke);s=1;ie=1309;break}case 1103:{dh(je,le,42384,ke);s=1;ie=1309;break}case 1145:{c[(ke&p)>>2]=56343;c[(ke&p)+4>>2]=10788;bd(11,13600,ke);s=11;ie=1309;break}case 1316:{dh(je,le,10096,ke);r=m;s=18;m=u;ie=1311;break a}}if((ie|0)==41)if((Rl(f)|0)==5){c[(me&p)>>2]=5;r=m;m=g;g=5;break a}else{r=m;m=g;g=(c[(me&p)>>2]|0)!=0?1:101;break a}else if((ie|0)==1309){r=m;t=t+1|0;m=u;ie=1311;break a}else if((ie|0)==1318){u=(a[(ge&n)>>0]|0)==0?u:7;if((u|0)==3082){r=m;s=3082;m=x;ie=1311;break a}else if((u|0)!=516){r=u&255;if(r>>>0>26|(r|0)==2)s=16328;else s=c[(r<<2&p)+15488>>2]|0}else s=16344;c[(ke&p)>>2]=s;dh(je,le,10344,ke);r=m;s=u;m=x;ie=1311;break a}}else{u=f+44|0;r=m;g=0;t=0;m=0}while(0);c[(me&p)>>2]=9;c[(ke&p)>>2]=15832;dh(u,le,10344,ke);s=9;ie=1311}while(0);if((ie|0)==1317){a[(y&n)>>0]=1;dh(z,le,15776,ke);s=7;ie=1311}if((ie|0)==1311){c[(me&p)>>2]=s;qd=c[(f&p)+168>>2]|0;rd=c[(f&p)+44>>2]|0;c[(ke&p)>>2]=t;c[(ke&p)+4>>2]=qd;c[(ke&p)+8>>2]=rd;bd(s,42256,ke);Rl(f)|0;if((s|0)==3082)a[(le&n)+65>>0]=1;if(!(m<<24>>24)){m=g;g=1}else{vm(le,(m&255)+-1|0);m=g;g=1}}rd=ne;c[(rd&p)>>2]=r;c[(rd&p)+4>>2]=l;rd=f+124|0;c[(rd&p)>>2]=(c[(rd&p)>>2]|0)+m;i=oe;return g|0} function Ev(e){e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=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=e+20|0;u=e+14|0;f=a[(u&n)>>0]|0;z=e+13|0;g=a[(z&n)>>0]|0;a:do if((f&255)>(g&255))f=0;else{B=e+4|0;C=e+16|0;v=e+8|0;w=e+12|0;x=e+24|0;y=e+28|0;i=f&255;j=c[(B&p)>>2]|0;h=c[(D&p)>>2]|0;b:while(1){t=c[(e+(i+-2<<2)&p)+24>>2]|0;s=c[(e+(i+-1<<2)&p)+24>>2]|0;if(j){while(1){r=j+12|0;if((h|0)<(c[(r&p)>>2]|0)){g=h;f=(c[(j&p)+20>>2]|0)+(h*48|0)|0;while(1){do if((c[(f&p)+8>>2]|0)==(t|0)?(c[(f&p)+12>>2]|0)==(s|0):0){if((d[(u&n)>>0]|0)>=3?(c[((c[(f&p)>>2]|0)&p)+4>>2]&1|0)!=0:0)break;q=f+18|0;h=b[(q&o)>>1]|0;if((h&1024)!=0?(A=a[(z&n)>>0]|0,(A&255)<22):0){i=c[((c[(f&p)>>2]|0)&p)+16>>2]|0;c:do if(!i)i=0;else while(1){k=c[(i&p)+4>>2]|0;if(!(k&4096))break c;if(!(k&262144))i=i+12|0;else i=c[((c[(i&p)+20>>2]|0)&p)+4>>2]|0;i=c[(i&p)>>2]|0;if(!i){i=0;break}}while(0);d:do if(!(A<<24>>24)){m=0;k=0}else{l=c[(i&p)+28>>2]|0;m=i+32|0;k=0;while(1){if((c[(e+(k<<2)&p)+24>>2]|0)==(l|0)?(c[(e+((k|1)<<2)&p)+24>>2]|0)==(b[(m&o)>>1]|0):0){m=A;break d}k=k+2|0;if((k|0)>=(A&255|0)){m=A;break}}}while(0);if((k|0)==(m&255|0)){c[(e+(k<<2)&p)+24>>2]=c[(i&p)+28>>2];c[(e+((k|1)<<2)&p)+24>>2]=b[(i&o)+32>>1];a[(z&n)>>0]=(d[(z&n)>>0]|0)+2}}i=h&65535;if(i&c[(C&p)>>2]){if((c[(v&p)>>2]|0)!=0&(i&128|0)==0){l=c[(c[(j&p)>>2]&p)>>2]|0;k=c[(f&p)>>2]|0;i=a[(w&n)>>0]|0;h=(nv(k)|0)<<24>>24;if((h|0)==66){if(i<<24>>24!=66)break}else if((h|0)!=65?i<<24>>24<=66:0)break;h=Ou(l,c[(k&p)+12>>2]|0,c[(k&p)+16>>2]|0)|0;if(!h)h=c[((c[(l&p)>>2]|0)&p)+8>>2]|0;if(dd(c[(h&p)>>2]|0,c[(v&p)>>2]|0)|0)break;h=b[(q&o)>>1]|0}if(!(h&2))break b;h=c[((c[(f&p)>>2]|0)&p)+16>>2]|0;if((a[(h&n)>>0]|0)!=-102)break b;if((c[(h&p)+28>>2]|0)!=(c[(x&p)>>2]|0))break b;if((b[(h&o)+32>>1]|0)!=(c[(y&p)>>2]|0))break b}}while(0);g=g+1|0;if((g|0)>=(c[(r&p)>>2]|0))break;else f=f+48|0}g=c[(B&p)>>2]|0}else g=j;j=c[(g&p)+4>>2]|0;c[(B&p)>>2]=j;if(!j)break;else h=0}f=a[(u&n)>>0]|0;g=a[(z&n)>>0]|0}j=c[(e&p)>>2]|0;c[(B&p)>>2]=j;h=(f&255)+2|0;f=h&255;a[(u&n)>>0]=f;if((f&255)>(g&255)){f=0;break a}else{i=h&255;h=0}}c[(D&p)>>2]=g+1}while(0);return f|0}function Fv(d,f){d=d|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0,m=0,q=0;g=c[(d&p)>>2]|0;l=c[(c[(g&p)>>2]&p)>>2]|0;d=c[(d&p)+16>>2]|0;a:do if(!d){g=g+16|0;i=c[(g&p)>>2]|0;k=f+36|0;if((c[(k&p)>>2]&512|0)!=0&(i|0)!=0){d=f+20|0;j=f+22|0;h=a[(f&n)+16>>0]|0;do{do if((a[(i&n)+16>>0]|0)==h<<24>>24?(c[(i&p)+36>>2]&512|0)!=0:0){if(Tv(i,f)|0){b[(d&o)>>1]=b[(i&o)+20>>1]|0;b[(j&o)>>1]=(e[(i&o)+22>>1]|0)+65535;break}if(Tv(f,i)|0){b[(d&o)>>1]=b[(i&o)+20>>1]|0;b[(j&o)>>1]=(e[(i&o)+22>>1]|0)+1}}while(0);i=c[(i&p)+52>>2]|0}while((i|0)!=0)}d=Uv(g,f)|0;if(d){g=c[(d&p)>>2]|0;b:do if(g){d=g+52|0;if(c[(d&p)>>2]|0)do{d=Uv(d,f)|0;if(!d)break b;h=c[(d&p)>>2]|0;if(!h)break b;c[(d&p)>>2]=c[(h&p)+52>>2];Ju(l,h);mg(l,h)}while((c[(d&p)>>2]|0)!=0)}else{g=mh(l,72,0)|0;c[(d&p)>>2]=g;if(!g){d=7;break a}c[(g&p)+48>>2]=g+56;b[(g&o)+40>>1]=0;b[(g&o)+44>>1]=3;c[(g&p)+36>>2]=0;c[(g&p)+52>>2]=0}while(0);Lv(l,g);do if(!(Nu(l,g,e[(f&o)+40>>1]|0)|0)){h=g+0|0;d=f+0|0;i=h+44|0;do{c[(h&p)>>2]=c[(d&p)>>2];h=h+4|0;d=d+4|0}while((h|0)<(i|0));kw(c[(g&p)+48>>2]|0,c[(f&p)+48>>2]|0,e[(g&o)+40>>1]<<2|0)|0;d=c[(k&p)>>2]|0;if(d&1024){a[(f&n)+28>>0]=0;break}if(d&16384)c[(f&p)+28>>2]=0}else{d=g+24|0;c[(d&p)>>2]=0;c[(d&p)+4>>2]=0;c[(d&p)+8>>2]=0}while(0);if(((c[(g&p)+36>>2]&1024|0)==0?(m=g+28|0,q=c[(m&p)>>2]|0,(q|0)!=0):0)?(c[(q&p)+40>>2]|0)==0:0){c[(m&p)>>2]=0;d=0}else d=0}else d=0}else{g=f;Kv(d,c[(g&p)>>2]|0,c[(g&p)+4>>2]|0,b[(f&o)+20>>1]|0,b[(f&o)+22>>1]|0);d=0}while(0);return d|0}function Gv(a,b){a=a|0;b=b|0;var c=0,e=0;c=a<<16>>16;e=b<<16>>16;do if(a<<16>>16>16)if((e|0)<=(c+49|0))if((e|0)>(c+31|0)){a=e+1&65535;break}else{a=(d[(e-c&n)+34032>>0]|0)+e&65535;break}else a=b;else if((c|0)<=(e+49|0))if((c|0)>(e+31|0)){a=c+1&65535;break}else{a=(d[(c-e&n)+34032>>0]|0)+c&65535;break}while(0);return a|0}function Hv(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0;do if(!(Cu(b,d,e)|0))f=1;else{f=a[(d&n)>>0]|0;if(f<<24>>24==71){if(Hv(b,c[(d&p)+12>>2]|0,e)|0){f=1;break}if(Hv(b,c[(d&p)+16>>2]|0,e)|0){f=1;break}if(f<<24>>24==77)g=6}else if(f<<24>>24==77)g=6;if(((g|0)==6?(Cu(c[(b&p)+12>>2]|0,c[(d&p)+12>>2]|0,e)|0)==0:0)?(f=a[(b&n)>>0]|0,!(f<<24>>24==73|f<<24>>24==76)):0){f=1;break}f=0}while(0);return f|0}function Iv(a,d,f){a=a|0;d=d|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0;x=i;i=i+16|0;if((i|0)>=(j|0))fa();w=x;u=d;v=d+8|0;g=v;t=~(c[(g&p)>>2]|c[(u&p)>>2]);u=~(c[(g&p)+4>>2]|c[(u&p)+4>>2]);g=c[(a&p)+12>>2]|0;r=a+20|0;a:do if((g|0)>0){s=d+40|0;a=d+22|0;q=d+48|0;d=0;n=c[(r&p)>>2]|0;while(1){if(b[(n&o)+20>>1]&2)break a;m=n+40|0;l=c[(m&p)>>2]|0;m=c[(m&p)+4>>2]|0;k=v;b:do if(((c[(k&p)>>2]&l|0)!=0?1:(c[(k&p)+4>>2]&m|0)!=0)&((l&t|0)==0&(m&u|0)==0)){h=b[(s&o)>>1]|0;c:do if(h<<16>>16){m=c[(q&p)>>2]|0;l=h&65535;while(1){h=l;l=l+-1|0;k=c[(m+(l<<2)&p)>>2]|0;if(k){if((k|0)==(n|0))break;k=c[(k&p)+4>>2]|0;if((k|0)>-1?((c[(r&p)>>2]|0)+(k*48|0)|0)==(n|0):0)break}if((l|0)<=0)break c}if((h|0)>=1)break b}while(0);h=b[(n&o)+16>>1]|0;if(h<<16>>16<1){b[(a&o)>>1]=(e[(a&o)>>1]|0)+(h&65535);break}b[(a&o)>>1]=(b[(a&o)>>1]|0)+-1<<16>>16;if(b[(n&o)+18>>1]&2){l=(Ms(c[((c[(n&p)>>2]|0)&p)+16>>2]|0,w)|0)!=0;m=c[(w&p)>>2]|0;m=l&(m|0)>-2&(m|0)<2?10:20;c[(w&p)>>2]=m;d=(d<<16>>16|0)<(m|0)?m&65535:d}}while(0);g=g+-1|0;if((g|0)<=0)break;else n=n+48|0}}else{a=d+22|0;d=0}while(0);d=(f<<16>>16)-(d<<16>>16)|0;if((b[(a&o)>>1]|0)>(d|0))b[(a&o)>>1]=d;i=x;return}function Jv(d,f,g,h){d=d|0;f=f|0;g=g|0;h=h|0;var k=0,l=0,m=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,ga=0,ha=0;ha=i;i=i+112|0;if((i|0)>=(j|0))fa();R=ha;V=c[(c[(c[(d&p)>>2]&p)>>2]&p)>>2]|0;ea=c[(d&p)+12>>2]|0;if(!(a[(V&n)+65>>0]|0)){ga=ea+36|0;if(!(c[(ga&p)>>2]&32))if((c[(g&p)+40>>2]|0)<1)k=63;else k=(a[(f&n)+36>>0]&8)<<4^191;else k=24;W=g+51|0;ca=ea+24|0;l=b[((c[(g&p)+4>>2]|0)+(e[(ca&o)>>1]<<1)&o)>>1]|0;N=l<<16>>16;O=d+4|0;k=Dv(R,c[(O&p)>>2]|0,c[(f&p)+40>>2]|0,N,(a[(W&n)>>0]&4)==0?k:k&131,g)|0;X=b[(ca&o)>>1]|0;Y=ea+42|0;T=b[(Y&o)>>1]|0;Z=ea+40|0;U=b[(Z&o)>>1]|0;_=c[(ga&p)>>2]|0;Q=ea;P=c[(Q&p)>>2]|0;Q=c[(Q&p)+4>>2]|0;$=ea+22|0;aa=b[($&o)>>1]|0;b[(ea&o)+18>>1]=0;ba=g+8|0;D=b[(c[(ba&p)>>2]&o)>>1]|0;if(D<<16>>16<11)C=0;else{C=D<<16>>16;C=((fs(C,((C|0)<0)<<31>>31)|0)&65535)+65503&65535}a:do if(!k)k=0;else{E=l<<16>>16<0;F=f+16|0;G=ea+8|0;H=(U&65535)+1|0;I=ea+48|0;J=h<<16>>16==0;K=g+46|0;w=l<<16>>16>-1;x=g+50|0;y=g+44|0;z=ea+20|0;A=h<<16>>16;B=g+48|0;r=0;u=k;s=0;while(1){l=b[(u&o)+18>>1]|0;t=l&65535;if(l<<16>>16==128)if(!E?(a[((c[((c[(F&p)>>2]|0)&p)+4>>2]|0)+(N*24|0)&n)+20>>0]|0)==0:0)S=12;else{m=r;l=s;k=0}else S=12;if((S|0)==12){S=0;m=u+32|0;v=m;q=G;if(((c[(q&p)>>2]&c[(v&p)>>2]|0)==0?(c[(q&p)+4>>2]&c[(v&p)+4>>2]|0)==0:0)?(L=u+20|0,!((b[(L&o)>>1]&256)!=0&l<<16>>16==16)):0){c[(ga&p)>>2]=_;b[(ca&o)>>1]=X;b[(Z&o)>>1]=U;if(Nu(V,ea,H)|0){k=0;break a}k=b[(Z&o)>>1]|0;q=k+1<<16>>16;b[(Z&o)>>1]=q;c[((c[(I&p)>>2]|0)+((k&65535)<<2)&p)>>2]=u;k=m;l=G;m=(c[(k&p)+4>>2]|Q)&~c[(l&p)+4>>2];v=ea;c[(v&p)>>2]=(c[(k&p)>>2]|P)&~c[(l&p)>>2];c[(v&p)+4>>2]=m;b:do if(!(t&1)){if(t&2){k=c[(ga&p)>>2]|0;l=k|1;c[(ga&p)>>2]=l;do if(!E){if(!J){v=0;break b}if((e[(ca&o)>>1]|0)!=((e[(K&o)>>1]|0)+-1|0)){v=0;break b}if(!w)break;if(a[(x&n)>>0]|0)break;l=k|65537;c[(ga&p)>>2]=l;v=0;break b}while(0);l=k|4097;c[(ga&p)>>2]=l;v=0;break}if(t&128){l=c[(ga&p)>>2]|8;c[(ga&p)>>2]=l;v=0;break}k=c[(ga&p)>>2]|0;if(!(t&36)){l=k|18;c[(ga&p)>>2]=l;if(!(k&32)){v=0;r=0;s=u;break}v=0;r=c[((c[(I&p)>>2]|0)+((q&65535)+-2<<2)&p)>>2]|0;s=u;break}l=k|34;c[(ga&p)>>2]=l;if(!(b[(L&o)>>1]&256)){v=0;r=u;s=0}else{k=u+48|0;if(Nu(V,ea,(q&65535)+1|0)|0){k=0;break a}l=b[(Z&o)>>1]|0;b[(Z&o)>>1]=l+1<<16>>16;c[((c[(I&p)>>2]|0)+((l&65535)<<2)&p)>>2]=k;l=c[(ga&p)>>2]|16;c[(ga&p)>>2]=l;v=0;r=u;s=k}}else{k=c[(u&p)>>2]|0;l=c[(ga&p)>>2]|4;c[(ga&p)>>2]=l;if(!(c[(k&p)+4>>2]&2048)){k=c[(k&p)+20>>2]|0;if((k|0)!=0?(M=c[(k&p)>>2]|0,(M|0)!=0):0)v=(fs(M,((M|0)<0)<<31>>31)|0)<<16>>16;else v=0}else v=46}while(0);do if(!(l&2)){k=(b[(ca&o)>>1]|0)+1<<16>>16;b[(ca&o)>>1]=k;k=k&65535;m=b[(u&o)+16>>1]|0;if(m<<16>>16<1&w){q=(m&65535)-v+(e[($&o)>>1]|0)&65535;b[($&o)>>1]=q;break}m=c[(ba&p)>>2]|0;m=(e[($&o)>>1]|0)+((e[(m+(k<<1)&o)>>1]|0)-(e[(m+(k+-1<<1)&o)>>1]|0))|0;k=m&65535;b[($&o)>>1]=k;if(!(t&128))q=k;else{q=m+10&65535;b[($&o)>>1]=q}}else{k=b[($&o)>>1]|0;q=k<<16>>16;do if(r){m=b[(r&o)+16>>1]|0;if(m<<16>>16<1){k=(m&65535)+(k&65535)&65535;break}else{k=(k&65535)+65516&65535;break}}while(0);do if(s){m=b[(s&o)+16>>1]|0;if(m<<16>>16<1){k=(m&65535)+(k&65535)&65535;break}else{k=(k&65535)+65516&65535;break}}while(0);m=(r|0)!=0;do if(m?(b[(r&o)+16>>1]|0)>0&(s|0)!=0:0){if((b[(s&o)+16>>1]|0)<=0)break;k=(k&65535)+65516&65535}while(0);q=(((s|0)!=0)<<31>>31)+(m<<31>>31)+q|0;u=k<<16>>16<10?10:k<<16>>16;q=((u|0)<(q|0)?u:q)&65535;b[($&o)>>1]=q}while(0);k=q&65535;m=Gv(C,k+1+(((b[(y&o)>>1]|0)*15|0)/(b[((c[(F&p)>>2]|0)&o)+42>>1]|0)|0)&65535)|0;if(!(l&320))m=Gv(m,k+16&65535)|0;l=v+A|0;b[(z&o)>>1]=(m&65535)+l;b[($&o)>>1]=k+l;Iv(c[(O&p)>>2]|0,ea,D);k=Fv(d,ea)|0;v=c[(ga&p)>>2]|0;b[($&o)>>1]=(v&2|0)==0?q:aa;if((v&16|0)==0?(e[(ca&o)>>1]|0)<(e[(B&o)>>1]|0):0)Jv(d,f,g,l&65535)|0;b[($&o)>>1]=aa;m=r;l=s}else{m=r;l=s;k=0}}u=Ev(R)|0;if(!((k|0)==0&(u|0)!=0))break;else{r=m;s=l}}}while(0);l=ea;c[(l&p)>>2]=P;c[(l&p)+4>>2]=Q;b[(ca&o)>>1]=X;b[(Y&o)>>1]=T;c[(ga&p)>>2]=_;b[($&o)>>1]=aa;b[(Z&o)>>1]=U;l=X&65535;if(((X<<16>>16==T<<16>>16?(da=l+1|0,da>>>0<(e[(g&o)+46>>1]|0)>>>0):0)?(a[(W&n)>>0]&64)==0:0)?(b[((c[(ba&p)>>2]|0)+(da<<1)&o)>>1]|0)>41:0){k=Nu(V,ea,(U&65535)+1|0)|0;if(!k){b[(ca&o)>>1]=(b[(ca&o)>>1]|0)+1<<16>>16;b[(Y&o)>>1]=(b[(Y&o)>>1]|0)+1<<16>>16;k=b[(Z&o)>>1]|0;b[(Z&o)>>1]=k+1<<16>>16;c[((c[(ea&p)+48>>2]|0)+((k&65535)<<2)&p)>>2]=0;c[(ga&p)>>2]=c[(ga&p)>>2]|32768;k=c[(ba&p)>>2]|0;k=(e[(k+(l<<1)&o)>>1]|0)-(e[(k+(da<<1)&o)>>1]|0)|0;b[($&o)>>1]=(e[($&o)>>1]|0)-k;Jv(d,f,g,(((k<<16)+327680|0)>>>16)+(h&65535)&65535)|0;b[($&o)>>1]=aa;b[(ca&o)>>1]=X;b[(Y&o)>>1]=X;c[(ga&p)>>2]=_;k=0}}}else k=7;i=ha;return k|0}function Kv(a,d,e,f,g){a=a|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,i=0,j=0,k=0,l=0,m=0,n=0,q=0,r=0;l=b[(a&o)>>1]|0;h=a+8|0;a:do if(l<<16>>16){j=l;k=h;while(1){i=b[(k&o)+8>>1]|0;if(i<<16>>16>=f<<16>>16?(r=k,(c[(r&p)>>2]&d|0)==(d|0)?(c[(r&p)+4>>2]&e|0)==(e|0):0):0){n=k;q=14;break a}if(i<<16>>16<=f<<16>>16?(i=k,r=c[(i&p)>>2]|0,i=c[(i&p)+4>>2]|0,(r&d|0)==(r|0)&(i&e|0)==(i|0)):0)break a;j=j+-1<<16>>16;if(!(j<<16>>16))break;else k=k+16|0}if((l&65535)>=3){i=b[(a&o)+16>>1]|0;k=1;do{if(i<<16>>16>(b[(a+(k<<4)&o)+16>>1]|0))h=a+(k<<4)+8|0;k=k+1|0;i=b[(h&o)+8>>1]|0}while((k&65535)<(l&65535));if(i<<16>>16>f<<16>>16){n=h;q=14}}else q=9}else q=9;while(0);if((q|0)==9){n=l&65535;b[(a&o)>>1]=l+1<<16>>16;b[(a+(n<<4)&o)+18>>1]=g;n=a+(n<<4)+8|0;q=14}if((q|0)==14?(m=n,c[(m&p)>>2]=d,c[(m&p)+4>>2]=e,b[(n&o)+8>>1]=f,m=n+10|0,(b[(m&o)>>1]|0)>g<<16>>16):0)b[(m&o)>>1]=g;return}function Lv(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0;e=c[(d&p)+36>>2]|0;do if(e&17408){if((e&1024|0)!=0?(h=d+28|0,(a[(h&n)>>0]|0)!=0):0){e=d+32|0;Wc(c[(e&p)>>2]|0);a[(h&n)>>0]=0;c[(e&p)>>2]=0;break}if((e&16384|0)!=0?(f=d+28|0,g=c[(f&p)>>2]|0,(g|0)!=0):0){mg(b,c[(g&p)+16>>2]|0);mg(b,c[(f&p)>>2]|0);c[(f&p)>>2]=0}}while(0);return}function Mv(f,g,h,k,l,m,q){f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;m=m|0;q=q|0;var 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,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,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;ta=i;i=i+32|0;if((i|0)>=(j|0))fa();oa=ta;s=c[(c[(f&p)>>2]&p)>>2]|0;na=l&65535;if(l<<16>>16!=0?(b[(s&o)+60>>1]&128)!=0:0)r=0;else pa=3;a:do if((pa|0)==3){sa=c[(g&p)>>2]|0;r=sa&65535;if(r>>>0<=63){qa=iw(1,0,r|0)|0;qa=jw(qa|0,G|0,-1,-1)|0;ra=G;b:do if((qa|0)==0&(ra|0)==0){g=0;h=0;s=1}else{ha=h+24|0;ia=f+4|0;ja=(r|0)==0;ea=g+4|0;ga=(k&768)==0;da=s+8|0;W=(k&256)==0;X=f+68|0;Y=oa+20|0;Z=oa+4|0;aa=oa+24|0;ba=f+328|0;_=0;$=0;g=0;h=0;k=0;t=0;ca=0;s=1;l=0;while(1){if((ca|0)>0){U=l+8|0;V=c[(U&p)>>2]|k;t=c[(U&p)+4>>2]|t}else V=k;if((ca|0)<(na|0))l=c[((c[(ha&p)>>2]|0)+(ca<<2)&p)>>2]|0;else l=m;B=l+36|0;k=c[(B&p)>>2]|0;if(k&1024)break;U=c[((c[(ia&p)>>2]|0)+((d[(l&n)+16>>0]|0)*72|0)&p)+48>>2]|0;if(!ja){k=~V;v=~t;y=0;do{A=iw(1,0,y|0)|0;z=G;c:do if((A&g|0)==0&(z&h|0)==0){u=c[((c[(ea&p)>>2]|0)+(y*20|0)&p)>>2]|0;x=c[(u&p)+4>>2]|0;if(x&4096)do{if(!(x&262144))u=u+12|0;else u=c[((c[(u&p)+20>>2]|0)&p)+4>>2]|0;u=c[(u&p)>>2]|0;x=c[(u&p)+4>>2]|0}while((x&4096|0)!=0);if(((a[(u&n)>>0]|0)==-102?(c[(u&p)+28>>2]|0)==(U|0):0)?(ka=u+32|0,la=Fu(ba,U,b[(ka&o)>>1]|0,k,v,130,0)|0,(la|0)!=0):0){do if(b[(la&o)+18>>1]&2){if((b[(ka&o)>>1]|0)<=-1)break;u=cu(c[(f&p)>>2]|0,c[((c[(ea&p)>>2]|0)+(y*20|0)&p)>>2]|0)|0;if(!u)u=c[(da&p)>>2]|0;x=c[(u&p)>>2]|0;w=cu(c[(f&p)>>2]|0,c[(la&p)>>2]|0)|0;if(!w)w=c[(da&p)>>2]|0;if(dd(x,c[(w&p)>>2]|0)|0)break c}while(0);g=A|g;h=z|h}}while(0);y=y+1|0}while((y|0)<(r|0));k=c[(B&p)>>2]|0}do if(!(k&4096)){if(!(k&256)){u=c[(l&p)+28>>2]|0;if(!u){r=0;break a}if(a[(u&n)+51>>0]&4){r=0;break a}k=b[(u&o)+48>>1]|0;s=(a[(u&n)+50>>0]|0)!=0&1;if(!(k<<16>>16)){pa=71;break}else{S=k&65535;T=b[(u&o)+46>>1]|0}}else{S=1;T=0;u=0}J=l+24|0;K=l+42|0;L=l+48|0;M=(u|0)==0;N=u+32|0;O=iw(1,0,ca|0)|0;P=G;Q=u+4|0;R=u+28|0;I=u+12|0;k=0;u=0;A=0;H=0;d:while(1){z=(u|0)<(e[(J&o)>>1]|0);if((z?(b[(K&o)>>1]|0)==0:0)?(ma=e[((c[((c[(L&p)>>2]|0)+(u<<2)&p)>>2]|0)&o)+18>>1]|0,(ma&130|0)!=0):0){s=(ma&128|0)==0?s:0;z=H}else{if(!M){x=b[((c[(Q&p)>>2]|0)+(u<<1)&o)>>1]|0;w=a[((c[(R&p)>>2]|0)+u&n)>>0]|0;v=c[(I&p)>>2]|0;x=x<<16>>16==(b[(v&o)+36>>1]|0)?-1:x<<16>>16;y=(x|0)>-1;if(s<<24>>24!=0&y)if(z){y=1;F=x}else{y=1;F=x;s=(a[((c[(v&p)+4>>2]|0)+(x*24|0)&n)+20>>0]|0)==0?0:s}else F=x}else{y=0;F=-1;w=0}if(ja){pa=68;break}else{z=1;E=0}e:while(1){C=iw(1,0,E|0)|0;D=G;do if((C&g|0)==0&(D&h|0)==0){v=c[((c[(ea&p)>>2]|0)+(E*20|0)&p)>>2]|0;x=c[(v&p)+4>>2]|0;if(!(x&4096))B=v;else{B=v;do{if(!(x&262144))x=B+12|0;else x=c[((c[(B&p)+20>>2]|0)&p)+4>>2]|0;B=c[(x&p)>>2]|0;x=c[(B&p)+4>>2]|0}while((x&4096|0)!=0)}z=ga?0:z;if((a[(B&n)>>0]|0)!=-102)break;if((c[(B&p)+28>>2]|0)!=(U|0))break;if((b[(B&o)+32>>1]|0)!=(F|0))break;if(!y){B=C;y=D;z=E;break e}x=cu(c[(f&p)>>2]|0,v)|0;if(!x)x=c[(da&p)>>2]|0;if(!(dd(c[(x&p)>>2]|0,c[((c[(N&p)>>2]|0)+(u<<2)&p)>>2]|0)|0)){B=C;y=D;z=E;break e}}while(0);E=E+1|0;if(!(z<<24>>24!=0&(E|0)<(r|0))){pa=68;break d}}do if(W){if(H<<24>>24)if((w^A)<<24>>24==(a[((c[(ea&p)>>2]|0)+(z*20|0)&n)+12>>0]|0)){z=H;break}else{pa=68;break d}v=a[((c[(ea&p)>>2]|0)+(z*20|0)&n)+12>>0]|0;A=v^w;if(w<<24>>24==v<<24>>24){z=1;break}v=q;w=c[(v&p)+4>>2]|P;z=q;c[(z&p)>>2]=c[(v&p)>>2]|O;c[(z&p)+4>>2]=w;z=1}else z=H;while(0);g=B|g;h=y|h;k=(F|0)<0?1:k}u=u+1|0;if((u|0)>=(S|0))break;else H=z}if((pa|0)==68){pa=0;s=(u|0)==0|(u|0)<(T&65535|0)?0:s}if(!(k<<24>>24))pa=71;else s=1}else pa=71;while(0);if((pa|0)==71){pa=0;if(!(s<<24>>24)){s=0;break b}}U=l+8|0;_=c[(U&p)>>2]|_;$=c[(U&p)+4>>2]|$;if(!ja){z=~_;A=~$;y=0;do{u=iw(1,0,y|0)|0;x=G;do if((u&g|0)==0&(x&h|0)==0){k=c[((c[(ea&p)>>2]|0)+(y*20|0)&p)>>2]|0;v=Av(X,k)|0;w=G;if((v|0)==0&(w|0)==0?(c[(oa&p)>>2]=0,c[(oa&p)+4>>2]=0,c[(oa&p)+8>>2]=0,c[(oa&p)+12>>2]=0,c[(oa&p)+16>>2]=0,c[(oa&p)+20>>2]=0,a[(Y&n)>>0]=1,c[(oa&p)>>2]=78,c[(Z&p)>>2]=79,c[(aa&p)>>2]=0,rs(oa,k)|0,(a[(Y&n)>>0]|0)==0):0)break;U=(v&z|0)==0&(w&A|0)==0;g=(U?u:0)|g;h=(U?x:0)|h}while(0);y=y+1|0}while((y|0)<(r|0))}if(h>>>0>ra>>>0|(h|0)==(ra|0)&g>>>0>=qa>>>0|s<<24>>24==0|(ca|0)>=(na|0))break b;else{k=V;ca=ca+1|0}}ga=(a[(l&n)+29>>0]|0)==0;g=ga?g:qa;h=ga?h:ra}while(0);if((g|0)==(qa|0)&(h|0)==(ra|0)){r=sa&255;break}if(!(s<<24>>24)){do{r=r+-1|0;if((r|0)<=0){r=0;break a}ea=iw(1,0,r|0)|0;ea=jw(ea|0,G|0,-1,-1)|0;ga=G}while(!((ea&g|0)==(ea|0)&(ga&h|0)==(ga|0)));r=r&255}else r=-1}else r=0}while(0);i=ta;return r|0}function Nv(b,c,d,e){b=b|0;c=c|0;d=d|0;e=e|0;if(c)Sk(b,33920,5);if(!d)c=0;else{c=d;while(1)if(!(a[(c&n)>>0]|0))break;else c=c+1|0;c=c-d&1073741823}Sk(b,d,c);Sk(b,e,1);Sk(b,13552,1);return}function Ov(a){a=a|0;var d=0,e=0,f=0,g=0,h=0,i=0;i=c[(c[(c[(a&p)>>2]&p)>>2]&p)>>2]|0;d=c[(a&p)+12>>2]|0;g=a+20|0;if((d|0)>0){h=c[(g&p)>>2]|0;while(1){d=d+-1|0;f=h+20|0;e=b[(f&o)>>1]|0;if(e&1){Gk(i,c[(h&p)>>2]|0);e=b[(f&o)>>1]|0}e=e&65535;if(!(e&16)){if(e&32){e=c[(h&p)+12>>2]|0;Ov(e);mg(i,e)}}else{e=c[(h&p)+12>>2]|0;Ov(e);mg(i,e)}if((d|0)<=0)break;else h=h+48|0}}d=c[(g&p)>>2]|0;if((d|0)!=(a+24|0))mg(i,d);return}function Pv(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,o=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0;u=i;i=i+32|0;if((i|0)>=(j|0))fa();t=u;h=c[(b&p)+8>>2]|0;k=c[(b&p)>>2]|0;if(e){l=(f|0)==10;m=b+437|0;o=t+4|0;q=t+1|0;r=t+8|0;s=t+12|0;g=f&255;do{if(l)f=a[(e&n)+1>>0]|0;else f=g;a[(m&n)>>0]=f;f=d[(e&n)>>0]|0;if((f|0)==108){w=Vv(b,e)|0;v=gr(k,c[(e&p)+8>>2]|0,0)|0;f=Nr(k,c[(e&p)+28>>2]|0)|0;tr(b,w,v,f,d[(m&n)>>0]|0)}else if((f|0)==109){f=Vv(b,e)|0;rr(b,f,Mr(k,c[(e&p)+20>>2]|0,0,0)|0)}else if((f|0)==110){w=Vv(b,e)|0;v=Pr(k,c[(e&p)+24>>2]|0,0)|0;f=Mr(k,c[(e&p)+20>>2]|0,0,0)|0;sr(b,w,v,f,d[(m&n)>>0]|0)}else{f=gr(k,c[(e&p)+8>>2]|0,0)|0;a[(t&n)>>0]=4;c[(o&p)>>2]=0;a[(q&n)>>0]=0;c[(r&p)>>2]=0;c[(s&p)>>2]=0;ir(b,f,t)|0;Mk(k,f,1)}if((a[(e&n)>>0]|0)!=119)wh(h,98,0,0,0)|0;e=c[(e&p)+32>>2]|0}while((e|0)!=0)}i=u;return}function Qv(d,e,f,g){d=d|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0;m=i;i=i+16|0;if((i|0)>=(j|0))fa();h=m;l=c[(d&p)>>2]|0;c[(h&p)>>2]=0;c[(h&p)+4>>2]=0;h=nr(l,159,h,0)|0;do if(!h)h=0;else{k=g<<16>>16;if(g<<16>>16>-1?(b[(e&o)+36>>1]|0)!=g<<16>>16:0){g=c[(e&p)+4>>2]|0;c[(h&p)+28>>2]=f+1+k;a[(h&n)+1>>0]=a[(g+(k*24|0)&n)+21>>0]|0;k=c[(g+(k*24|0)&p)+16>>2]|0;if(!k)k=c[(c[(l&p)+8>>2]&p)>>2]|0;h=xv(d,h,k)|0;break}c[(h&p)+28>>2]=f;a[(h&n)+1>>0]=68}while(0);i=m;return h|0}function Rv(d,e,f,g){d=d|0;e=e|0;f=f|0;g=g|0;var h=0,i=0,j=0;d=mh(d,48,0)|0;if(d){h=d+0|0;i=h+44|0;do{a[(h&n)>>0]=0;h=h+1|0}while((h|0)<(i|0));a[(d&n)>>0]=-102;b[(d&o)+34>>1]=-1;c[(d&p)+24>>2]=1;h=c[(e+(f*72|0)&p)+24>>2]|0;c[(d&p)+44>>2]=h;c[(d&p)+28>>2]=c[(e+(f*72|0)&p)+48>>2];if((b[(h&o)+36>>1]|0)==(g|0))b[(d&o)+32>>1]=-1;else{b[(d&o)+32>>1]=g;j=(g|0)>63;g=iw(1,0,g|0)|0;h=e+(f*72|0)+64|0;f=h;i=c[(f&p)+4>>2]|(j?-2147483648:G);c[(h&p)>>2]=c[(f&p)>>2]|(j?0:g);c[(h&p)+4>>2]=i}h=d+4|0;c[(h&p)>>2]=c[(h&p)>>2]|4}return d|0}function Sv(b,e){b=b|0;e=e|0;if((a[(e&n)>>0]|0)==-101){e=e+38|0;a[(e&n)>>0]=(d[(e&n)>>0]|0)+(c[(b&p)+24>>2]|0)}return 0}function Tv(a,d){a=a|0;d=d|0;var f=0,g=0,h=0,i=0,j=0,k=0;f=b[(a&o)+40>>1]|0;i=f&65535;h=b[(a&o)+42>>1]|0;k=e[(d&o)+40>>1]|0;g=b[(d&o)+42>>1]|0;a:do if(!((g&65535)>(h&65535)?1:(i-(h&65535)|0)>=(k-(g&65535)|0))){g=b[(a&o)+20>>1]|0;h=b[(d&o)+20>>1]|0;if(g<<16>>16>=h<<16>>16){if(g<<16>>16>h<<16>>16){f=0;break}if((b[(a&o)+22>>1]|0)>(b[(d&o)+22>>1]|0)){f=0;break}}if(!(f<<16>>16))f=1;else{j=c[(a&p)+48>>2]|0;d=d+48|0;a=i;while(1){a=a+-1|0;h=c[(j+(a<<2)&p)>>2]|0;if(h){f=k;while(1){g=f+-1|0;if((f|0)<=0){f=0;break a}if((c[((c[(d&p)>>2]|0)+(g<<2)&p)>>2]|0)==(h|0))break;else f=g}if((f|0)<1){f=0;break a}}if((a|0)<=0){f=1;break}}}}else f=0;while(0);return f|0}function Uv(d,e){d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0,v=0;f=c[(d&p)>>2]|0;a:do if(f){k=a[(e&n)+16>>0]|0;l=e+17|0;m=e+18|0;q=e+20|0;r=e+22|0;s=e+42|0;t=e+36|0;do{if((a[(f&n)+16>>0]|0)==k<<24>>24?(a[(f&n)+17>>0]|0)==(a[(l&n)>>0]|0):0){if((((c[(f&p)+36>>2]&16384|0)!=0?(b[(s&o)>>1]|0)==0:0)?(c[(t&p)>>2]&513|0)==513:0)?(i=f,j=e,h=c[(j&p)>>2]|0,j=c[(j&p)+4>>2]|0,(h&c[(i&p)>>2]|0)==(h|0)?(j&c[(i&p)+4>>2]|0)==(j|0):0):0)break a;u=f;v=c[(u&p)>>2]|0;u=c[(u&p)+4>>2]|0;h=e;g=c[(h&p)>>2]|0;h=c[(h&p)+4>>2]|0;i=g&v;j=h&u;if((((i|0)==(v|0)&(j|0)==(u|0)?(b[(f&o)+18>>1]|0)<=(b[(m&o)>>1]|0):0)?(b[(f&o)+20>>1]|0)<=(b[(q&o)>>1]|0):0)?(b[(f&o)+22>>1]|0)<=(b[(r&o)>>1]|0):0){d=0;break a}if(((i|0)==(g|0)&(j|0)==(h|0)?(b[(f&o)+20>>1]|0)>=(b[(q&o)>>1]|0):0)?(b[(f&o)+22>>1]|0)>=(b[(r&o)>>1]|0):0)break a}d=f+52|0;f=c[(d&p)>>2]|0}while((f|0)!=0)}while(0);return d|0}function Vv(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;h=pr(c[(a&p)>>2]|0,0,b+12|0,0)|0;do if(h){g=c[(a&p)>>2]|0;f=c[((c[(b&p)+4>>2]|0)&p)+20>>2]|0;a:do if(f){e=c[(g&p)+20>>2]|0;if((e|0)>0){b=c[(g&p)+16>>2]|0;d=0;while(1){a=d+1|0;if((c[(b+(d<<4)&p)+12>>2]|0)==(f|0)){a=d;d=7;break a}if((a|0)<(e|0))d=a;else{d=7;break}}}else a=0}else{a=-1e6;d=7}while(0);if((d|0)==7)if(!((a|0)==0|(a|0)>1))break;a=kh(g,c[((c[(g&p)+16>>2]|0)+(a<<4)&p)>>2]|0)|0;c[(h+(((c[(h&p)>>2]|0)+-1|0)*72|0)&p)+12>>2]=a}while(0);return h|0}function Wv(a){a=a|0;var b=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,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;do if(a>>>0<245){if(a>>>0<11)q=16;else q=a+11&-8;a=q>>>3;l=c[12266]|0;i=l>>>a;if(i&3){e=(i&1^1)+a|0;f=e<<1;b=49104+(f<<2)|0;f=49104+(f+2<<2)|0;g=c[(f&p)>>2]|0;h=g+8|0;i=c[(h&p)>>2]|0;do if((b|0)!=(i|0)){if(i>>>0<(c[12270]|0)>>>0)Ob();d=i+12|0;if((c[(d&p)>>2]|0)==(g|0)){c[(d&p)>>2]=b;c[(f&p)>>2]=i;break}else Ob()}else c[12266]=l&~(1<>2]=x|3;x=g+(x|4)|0;c[(x&p)>>2]=c[(x&p)>>2]|1;x=h;return x|0}k=c[12268]|0;if(q>>>0>k>>>0){if(i){f=2<>>12&16;f=f>>>a;e=f>>>5&8;f=f>>>e;d=f>>>2&4;f=f>>>d;g=f>>>1&2;f=f>>>g;h=f>>>1&1;h=(e|a|d|g|h)+(f>>>h)|0;f=h<<1;g=49104+(f<<2)|0;f=49104+(f+2<<2)|0;d=c[(f&p)>>2]|0;a=d+8|0;e=c[(a&p)>>2]|0;do if((g|0)!=(e|0)){if(e>>>0<(c[12270]|0)>>>0)Ob();i=e+12|0;if((c[(i&p)>>2]|0)==(d|0)){c[(i&p)>>2]=g;c[(f&p)>>2]=e;m=c[12268]|0;break}else Ob()}else{c[12266]=l&~(1<>2]=q|3;j=d+q|0;c[(d+(q|4)&p)>>2]=b|1;c[(d+x&p)>>2]=b;if(m){e=c[12271]|0;g=m>>>3;i=g<<1;f=49104+(i<<2)|0;h=c[12266]|0;g=1<>2]|0;if(i>>>0<(c[12270]|0)>>>0)Ob();else{n=h;o=i}}else{c[12266]=h|g;n=49104+(i+2<<2)|0;o=f}c[(n&p)>>2]=e;c[(o&p)+12>>2]=e;c[(e&p)+8>>2]=o;c[(e&p)+12>>2]=f}c[12268]=b;c[12271]=j;x=a;return x|0}a=c[12267]|0;if(a){h=(a&0-a)+-1|0;w=h>>>12&16;h=h>>>w;v=h>>>5&8;h=h>>>v;x=h>>>2&4;h=h>>>x;i=h>>>1&2;h=h>>>i;g=h>>>1&1;g=c[((v|w|x|i|g)+(h>>>g)<<2&p)+49368>>2]|0;h=(c[(g&p)+4>>2]&-8)-q|0;i=g;while(1){d=c[(i&p)+16>>2]|0;if(!d){d=c[(i&p)+20>>2]|0;if(!d){l=h;k=g;break}}i=(c[(d&p)+4>>2]&-8)-q|0;x=i>>>0>>0;h=x?i:h;i=d;g=x?d:g}a=c[12270]|0;if(k>>>0>>0)Ob();b=k+q|0;if(k>>>0>=b>>>0)Ob();j=c[(k&p)+24>>2]|0;g=c[(k&p)+12>>2]|0;do if((g|0)==(k|0)){h=k+20|0;i=c[(h&p)>>2]|0;if(!i){h=k+16|0;i=c[(h&p)>>2]|0;if(!i){e=0;break}}while(1){g=i+20|0;f=c[(g&p)>>2]|0;if(f){i=f;h=g;continue}g=i+16|0;f=c[(g&p)>>2]|0;if(!f)break;else{i=f;h=g}}if(h>>>0>>0)Ob();else{c[(h&p)>>2]=0;e=i;break}}else{f=c[(k&p)+8>>2]|0;if(f>>>0>>0)Ob();i=f+12|0;if((c[(i&p)>>2]|0)!=(k|0))Ob();h=g+8|0;if((c[(h&p)>>2]|0)==(k|0)){c[(i&p)>>2]=g;c[(h&p)>>2]=f;e=g;break}else Ob()}while(0);do if(j){i=c[(k&p)+28>>2]|0;h=49368+(i<<2)|0;if((k|0)==(c[(h&p)>>2]|0)){c[(h&p)>>2]=e;if(!e){c[12267]=c[12267]&~(1<>>0<(c[12270]|0)>>>0)Ob();i=j+16|0;if((c[(i&p)>>2]|0)==(k|0))c[(i&p)>>2]=e;else c[(j&p)+20>>2]=e;if(!e)break}h=c[12270]|0;if(e>>>0>>0)Ob();c[(e&p)+24>>2]=j;i=c[(k&p)+16>>2]|0;do if(i)if(i>>>0>>0)Ob();else{c[(e&p)+16>>2]=i;c[(i&p)+24>>2]=e;break}while(0);i=c[(k&p)+20>>2]|0;if(i)if(i>>>0<(c[12270]|0)>>>0)Ob();else{c[(e&p)+20>>2]=i;c[(i&p)+24>>2]=e;break}}while(0);if(l>>>0<16){x=l+q|0;c[(k&p)+4>>2]=x|3;x=k+(x+4)|0;c[(x&p)>>2]=c[(x&p)>>2]|1}else{c[(k&p)+4>>2]=q|3;c[(k+(q|4)&p)>>2]=l|1;c[(k+l+q&p)>>2]=l;d=c[12268]|0;if(d){e=c[12271]|0;g=d>>>3;i=g<<1;f=49104+(i<<2)|0;h=c[12266]|0;g=1<>2]|0;if(h>>>0<(c[12270]|0)>>>0)Ob();else{r=i;s=h}}else{c[12266]=h|g;r=49104+(i+2<<2)|0;s=f}c[(r&p)>>2]=e;c[(s&p)+12>>2]=e;c[(e&p)+8>>2]=s;c[(e&p)+12>>2]=f}c[12268]=l;c[12271]=b}x=k+8|0;return x|0}else s=q}else s=q}else if(a>>>0<=4294967231){a=a+11|0;s=a&-8;k=c[12267]|0;if(k){h=0-s|0;a=a>>>8;if(a)if(s>>>0>16777215)d=31;else{q=(a+1048320|0)>>>16&8;r=a<>>16&4;r=r<>>16&2;d=14-(o|q|d)+(r<>>15)|0;d=s>>>(d+7|0)&1|d<<1}else d=0;f=c[(d<<2&p)+49368>>2]|0;a:do if(!f){a=0;i=0}else{if((d|0)==31)i=0;else i=25-(d>>>1)|0;l=h;a=0;b=s<>2]&-8;h=e-s|0;if(h>>>0>>0)if((e|0)==(s|0)){a=f;i=f;break a}else i=f;else h=l;r=c[(f&p)+20>>2]|0;f=c[(f+(b>>>31<<2)&p)+16>>2]|0;a=(r|0)==0|(r|0)==(f|0)?a:r;if(!f)break;else{l=h;b=b<<1}}}while(0);if((a|0)==0&(i|0)==0){a=2<>>12&16;r=r>>>n;m=r>>>5&8;r=r>>>m;o=r>>>2&4;r=r>>>o;q=r>>>1&2;r=r>>>q;a=r>>>1&1;a=c[((m|n|o|q|a)+(r>>>a)<<2&p)+49368>>2]|0}if(!a){o=h;q=i}else while(1){r=(c[(a&p)+4>>2]&-8)-s|0;f=r>>>0>>0;h=f?r:h;i=f?a:i;f=c[(a&p)+16>>2]|0;if(f){a=f;continue}a=c[(a&p)+20>>2]|0;if(!a){o=h;q=i;break}}if((q|0)!=0?o>>>0<((c[12268]|0)-s|0)>>>0:0){a=c[12270]|0;if(q>>>0>>0)Ob();m=q+s|0;if(q>>>0>=m>>>0)Ob();j=c[(q&p)+24>>2]|0;g=c[(q&p)+12>>2]|0;do if((g|0)==(q|0)){h=q+20|0;i=c[(h&p)>>2]|0;if(!i){h=q+16|0;i=c[(h&p)>>2]|0;if(!i){u=0;break}}while(1){g=i+20|0;f=c[(g&p)>>2]|0;if(f){i=f;h=g;continue}g=i+16|0;f=c[(g&p)>>2]|0;if(!f)break;else{i=f;h=g}}if(h>>>0>>0)Ob();else{c[(h&p)>>2]=0;u=i;break}}else{f=c[(q&p)+8>>2]|0;if(f>>>0>>0)Ob();i=f+12|0;if((c[(i&p)>>2]|0)!=(q|0))Ob();h=g+8|0;if((c[(h&p)>>2]|0)==(q|0)){c[(i&p)>>2]=g;c[(h&p)>>2]=f;u=g;break}else Ob()}while(0);do if(j){i=c[(q&p)+28>>2]|0;h=49368+(i<<2)|0;if((q|0)==(c[(h&p)>>2]|0)){c[(h&p)>>2]=u;if(!u){c[12267]=c[12267]&~(1<>>0<(c[12270]|0)>>>0)Ob();i=j+16|0;if((c[(i&p)>>2]|0)==(q|0))c[(i&p)>>2]=u;else c[(j&p)+20>>2]=u;if(!u)break}h=c[12270]|0;if(u>>>0>>0)Ob();c[(u&p)+24>>2]=j;i=c[(q&p)+16>>2]|0;do if(i)if(i>>>0>>0)Ob();else{c[(u&p)+16>>2]=i;c[(i&p)+24>>2]=u;break}while(0);i=c[(q&p)+20>>2]|0;if(i)if(i>>>0<(c[12270]|0)>>>0)Ob();else{c[(u&p)+20>>2]=i;c[(i&p)+24>>2]=u;break}}while(0);b:do if(o>>>0>=16){c[(q&p)+4>>2]=s|3;c[(q+(s|4)&p)>>2]=o|1;c[(q+o+s&p)>>2]=o;i=o>>>3;if(o>>>0<256){h=i<<1;f=49104+(h<<2)|0;g=c[12266]|0;i=1<>2]|0;if(h>>>0>=(c[12270]|0)>>>0){v=i;w=h;break}Ob()}while(0);c[(v&p)>>2]=m;c[(w&p)+12>>2]=m;c[(q+s&p)+8>>2]=w;c[(q+s&p)+12>>2]=f;break}d=o>>>8;if(d)if(o>>>0>16777215)f=31;else{w=(d+1048320|0)>>>16&8;x=d<>>16&4;x=x<>>16&2;f=14-(v|w|f)+(x<>>15)|0;f=o>>>(f+7|0)&1|f<<1}else f=0;i=49368+(f<<2)|0;c[(q+s&p)+28>>2]=f;c[(q+s&p)+20>>2]=0;c[(q+s&p)+16>>2]=0;h=c[12267]|0;g=1<>2]=m;c[(q+s&p)+24>>2]=i;c[(q+s&p)+12>>2]=m;c[(q+s&p)+8>>2]=m;break}d=c[(i&p)>>2]|0;if((f|0)==31)b=0;else b=25-(f>>>1)|0;c:do if((c[(d&p)+4>>2]&-8|0)!=(o|0)){h=o<>>31<<2)+16|0;i=c[(b&p)>>2]|0;if(!i)break;if((c[(i&p)+4>>2]&-8|0)==(o|0)){C=i;break c}else{h=h<<1;d=i}}if(b>>>0<(c[12270]|0)>>>0)Ob();else{c[(b&p)>>2]=m;c[(q+s&p)+24>>2]=d;c[(q+s&p)+12>>2]=m;c[(q+s&p)+8>>2]=m;break b}}else C=d;while(0);d=C+8|0;b=c[(d&p)>>2]|0;x=c[12270]|0;if(C>>>0>=x>>>0&b>>>0>=x>>>0){c[(b&p)+12>>2]=m;c[(d&p)>>2]=m;c[(q+s&p)+8>>2]=b;c[(q+s&p)+12>>2]=C;c[(q+s&p)+24>>2]=0;break}else Ob()}else{x=o+s|0;c[(q&p)+4>>2]=x|3;x=q+(x+4)|0;c[(x&p)>>2]=c[(x&p)>>2]|1}while(0);x=q+8|0;return x|0}}}else s=-1;while(0);a=c[12268]|0;if(a>>>0>=s>>>0){b=a-s|0;d=c[12271]|0;if(b>>>0>15){c[12271]=d+s;c[12268]=b;c[(d+s&p)+4>>2]=b|1;c[(d+a&p)>>2]=b;c[(d&p)+4>>2]=s|3}else{c[12268]=0;c[12271]=0;c[(d&p)+4>>2]=a|3;x=d+(a+4)|0;c[(x&p)>>2]=c[(x&p)>>2]|1}x=d+8|0;return x|0}a=c[12269]|0;if(a>>>0>s>>>0){w=a-s|0;c[12269]=w;x=c[12272]|0;c[12272]=x+s;c[(x+s&p)+4>>2]=w|1;c[(x&p)+4>>2]=s|3;x=x+8|0;return x|0}do if(!(c[12384]|0)){a=wb(30)|0;if(!(a+-1&a)){c[12386]=a;c[12385]=a;c[12387]=-1;c[12388]=-1;c[12389]=0;c[12377]=0;c[12384]=(Pb(0)|0)&-16^1431655768;break}else Ob()}while(0);l=s+48|0;b=c[12386]|0;k=s+47|0;d=b+k|0;b=0-b|0;m=d&b;if(m>>>0<=s>>>0){x=0;return x|0}a=c[12376]|0;if((a|0)!=0?(v=c[12374]|0,w=v+m|0,w>>>0<=v>>>0|w>>>0>a>>>0):0){x=0;return x|0}d:do if(!(c[12377]&4)){a=c[12272]|0;e:do if(a){f=49512|0;while(1){i=c[(f&p)>>2]|0;if(i>>>0<=a>>>0?(t=f+4|0,(i+(c[(t&p)>>2]|0)|0)>>>0>a>>>0):0){e=f;h=t;a=f;break}f=c[(f&p)+8>>2]|0;if(!f){H=181;break e}}if(a){a=d-(c[12269]|0)&b;if(a>>>0<2147483647){i=sb(a|0)|0;if((i|0)==((c[(e&p)>>2]|0)+(c[(h&p)>>2]|0)|0))H=190;else H=191}else a=0}else H=181}else H=181;while(0);do if((H|0)==181){i=sb(0)|0;if((i|0)!=(-1|0)){a=i;h=c[12385]|0;f=h+-1|0;if(!(f&a))a=m;else a=m-a+(f+a&0-h)|0;h=c[12374]|0;f=h+a|0;if(a>>>0>s>>>0&a>>>0<2147483647){w=c[12376]|0;if((w|0)!=0?f>>>0<=h>>>0|f>>>0>w>>>0:0){a=0;break}h=sb(a|0)|0;if((h|0)==(i|0))H=190;else{i=h;H=191}}else a=0}else a=0}while(0);f:do if((H|0)==190){if((i|0)!=(-1|0)){y=i;H=201;break d}}else if((H|0)==191){h=0-a|0;do if((i|0)!=(-1|0)&a>>>0<2147483647&l>>>0>a>>>0?(x=c[12386]|0,x=k-a+x&0-x,x>>>0<2147483647):0)if((sb(x|0)|0)==(-1|0)){sb(h|0)|0;a=0;break f}else{a=x+a|0;break}while(0);if((i|0)==(-1|0))a=0;else{y=i;H=201;break d}}while(0);c[12377]=c[12377]|4;H=198}else{a=0;H=198}while(0);if((((H|0)==198?m>>>0<2147483647:0)?(y=sb(m|0)|0,z=sb(0)|0,(y|0)!=(-1|0)&(z|0)!=(-1|0)&y>>>0>>0):0)?(A=z-y|0,B=A>>>0>(s+40|0)>>>0,B):0){a=B?A:a;H=201}if((H|0)==201){i=(c[12374]|0)+a|0;c[12374]=i;if(i>>>0>(c[12375]|0)>>>0)c[12375]=i;l=c[12272]|0;g:do if(l){e=49512|0;do{i=c[(e&p)>>2]|0;h=e+4|0;f=c[(h&p)>>2]|0;if((y|0)==(i+f|0)){D=i;E=h;F=f;G=e;H=213;break}e=c[(e&p)+8>>2]|0}while((e|0)!=0);if(((H|0)==213?(c[(G&p)+12>>2]&8|0)==0:0)?l>>>0>=D>>>0&l>>>0>>0:0){c[(E&p)>>2]=F+a;b=(c[12269]|0)+a|0;d=l+8|0;if(!(d&7))d=0;else d=0-d&7;x=b-d|0;c[12272]=l+d;c[12269]=x;c[(l+d&p)+4>>2]=x|1;c[(l+b&p)+4>>2]=40;c[12273]=c[12388];break}i=c[12270]|0;if(y>>>0>>0){c[12270]=y;k=y}else k=i;i=y+a|0;h=49512|0;do{if((c[(h&p)>>2]|0)==(i|0)){I=h;J=h;H=223;break}h=c[(h&p)+8>>2]|0}while((h|0)!=0);if((H|0)==223?(c[(J&p)+12>>2]&8|0)==0:0){c[(I&p)>>2]=y;i=J+4|0;c[(i&p)>>2]=(c[(i&p)>>2]|0)+a;i=y+8|0;if(!(i&7))q=0;else q=0-i&7;i=y+(a+8)|0;if(!(i&7))d=0;else d=0-i&7;i=y+(d+a)|0;o=q+s|0;n=y+o|0;m=i-(y+q)-s|0;c[(y+q&p)+4>>2]=s|3;h:do if((i|0)!=(l|0)){if((i|0)==(c[12271]|0)){x=(c[12268]|0)+m|0;c[12268]=x;c[12271]=n;c[(y+o&p)+4>>2]=x|1;c[(y+x+o&p)>>2]=x;break}l=a+4|0;j=c[(y+l+d&p)>>2]|0;if((j&3|0)==1){b=j&-8;f=j>>>3;i:do if(j>>>0>=256){e=c[(y+(d|24)+a&p)>>2]|0;g=c[(y+a+d&p)+12>>2]|0;do if((g|0)==(i|0)){g=d|16;h=y+(l+g)|0;j=c[(h&p)>>2]|0;if(!j){h=y+(g+a)|0;j=c[(h&p)>>2]|0;if(!j){O=0;break}}while(1){g=j+20|0;f=c[(g&p)>>2]|0;if(f){j=f;h=g;continue}g=j+16|0;f=c[(g&p)>>2]|0;if(!f)break;else{j=f;h=g}}if(h>>>0>>0)Ob();else{c[(h&p)>>2]=0;O=j;break}}else{f=c[(y+(d|8)+a&p)>>2]|0;if(f>>>0>>0)Ob();j=f+12|0;if((c[(j&p)>>2]|0)!=(i|0))Ob();h=g+8|0;if((c[(h&p)>>2]|0)==(i|0)){c[(j&p)>>2]=g;c[(h&p)>>2]=f;O=g;break}else Ob()}while(0);if(!e)break;j=c[(y+a+d&p)+28>>2]|0;h=49368+(j<<2)|0;do if((i|0)!=(c[(h&p)>>2]|0)){if(e>>>0<(c[12270]|0)>>>0)Ob();j=e+16|0;if((c[(j&p)>>2]|0)==(i|0))c[(j&p)>>2]=O;else c[(e&p)+20>>2]=O;if(!O)break i}else{c[(h&p)>>2]=O;if(O)break;c[12267]=c[12267]&~(1<
>2]=3;if(((a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0?(Xg(c[(T&p)+16>>2]|0,31288,-1,1,0)|0,(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(T&p)+16>>2]|0)+40|0,31184,-1,1,0)|0,(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0):0)Xg((c[(T&p)+16>>2]|0)+80|0,31352,-1,1,0)|0;l=W+20|0;m=c[(l&p)>>2]|0;if((m|0)>0)q=0;else break a;do{if(c[((c[(R&p)>>2]|0)+(q<<4)&p)+4>>2]|0){wh(T,25,q,1,0)|0;k=c[((c[(R&p)>>2]|0)+(q<<4)&p)>>2]|0;xh(T,wh(T,97,0,2,0)|0,k,0);k=c[(c[((c[((c[(R&p)>>2]|0)+(q<<4)&p)+4>>2]|0)&p)+4>>2]&p)>>2]|0;if(!(a[(k&n)+15>>0]|0))k=c[(k&p)+168>>2]|0;else k=10360;xh(T,wh(T,97,0,3,0)|0,k,0);wh(T,35,1,3,0)|0;m=c[(l&p)>>2]|0}q=q+1|0}while((q|0)<(m|0));break}case 6:{iq(T,2);c[(S&p)>>2]=2;if((a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0?(Xg(c[(T&p)+16>>2]|0,31288,-1,1,0)|0,(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0):0)Xg((c[(T&p)+16>>2]|0)+40|0,31184,-1,1,0)|0;m=c[(W&p)+436>>2]|0;if(!m)break a;else l=0;while(1){G=c[(m&p)+8>>2]|0;wh(T,25,l,1,0)|0;G=c[(G&p)>>2]|0;xh(T,wh(T,97,0,2,0)|0,G,0);wh(T,35,1,2,0)|0;m=c[(m&p)>>2]|0;if(!m)break;else l=l+1|0}break}case 13:{if(!U)break a;k=_h(W,U,L)|0;if(!k)break a;g=Oq(f)|0;q=c[(k&p)+16>>2]|0;if(!q)break a;iq(g,8);c[(S&p)>>2]=8;Ar(f,Q);do if((((a[((c[(g&p)>>2]|0)&n)+65>>0]|0)==0?(Xg(c[(g&p)+16>>2]|0,31360,-1,1,0)|0,(a[((c[(g&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(g&p)+16>>2]|0)+40|0,31288,-1,1,0)|0,(a[((c[(g&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(g&p)+16>>2]|0)+80|0,31232,-1,1,0)|0,(a[((c[(g&p)>>2]|0)&n)+65>>0]|0)==0):0){Xg((c[(g&p)+16>>2]|0)+120|0,31368,-1,1,0)|0;if(a[((c[(g&p)>>2]|0)&n)+65>>0]|0)break;Xg((c[(g&p)+16>>2]|0)+160|0,31376,-1,1,0)|0;if(a[((c[(g&p)>>2]|0)&n)+65>>0]|0)break;Xg((c[(g&p)+16>>2]|0)+200|0,31384,-1,1,0)|0;if(a[((c[(g&p)>>2]|0)&n)+65>>0]|0)break;Xg((c[(g&p)+16>>2]|0)+240|0,31400,-1,1,0)|0;if(a[((c[(g&p)>>2]|0)&n)+65>>0]|0)break;Xg((c[(g&p)+16>>2]|0)+280|0,31416,-1,1,0)|0}while(0);v=k+4|0;w=0;while(1){k=q+20|0;if((c[(k&p)>>2]|0)>0){m=q+25|0;l=q+26|0;t=q+8|0;h=0;do{u=c[(q+(h<<3)&p)+40>>2]|0;s=d[(m&n)>>0]|0;if((s|0)==8)r=32072;else if((s|0)==9)r=32088;else if((s|0)==6)r=32096;else if((s|0)==7)r=32056;else r=32112;s=d[(l&n)>>0]|0;if((s|0)==8)s=32072;else if((s|0)==9)s=32088;else if((s|0)==6)s=32096;else if((s|0)==7)s=32056;else s=32112;wh(g,25,w,1,0)|0;wh(g,25,h,2,0)|0;G=c[(t&p)>>2]|0;xh(g,wh(g,97,0,3,0)|0,G,0);G=c[((c[(v&p)>>2]|0)+((c[(q+(h<<3)&p)+36>>2]|0)*24|0)&p)>>2]|0;xh(g,wh(g,97,0,4,0)|0,G,0);xh(g,wh(g,(u|0)!=0?97:28,0,5,0)|0,u,0);xh(g,wh(g,97,0,6,0)|0,s,0);xh(g,wh(g,97,0,7,0)|0,r,0);xh(g,wh(g,97,0,8,0)|0,31424,0);wh(g,35,1,8,0)|0;h=h+1|0}while((h|0)<(c[(k&p)>>2]|0))}q=c[(q&p)+4>>2]|0;if(!q)break;else w=w+1|0}break}case 11:{if(!U){if(Gn(f)|0)break a;iq(T,1);if(!(a[((c[(T&p)>>2]|0)&n)+65>>0]|0))Xg(c[(T&p)+16>>2]|0,31784,-1,1,0)|0;wh(T,97,0,1,0)|0;xh(T,-1,c[(d[((c[(f&p)>>2]|0)&n)+62>>0]<<3&p)+31632>>2]|0,-2);wh(T,35,1,1,0)|0;break a}k=c[((c[(R&p)>>2]|0)&p)+12>>2]|0;if((b[(k&o)+78>>1]&5)==1)break a;else{m=31632;l=31704}do{if(!(dd(U,l)|0)){v=m;P=415;break}m=m+8|0;l=c[(m&p)>>2]|0}while((l|0)!=0);if((P|0)==415?(F=a[(v&n)+4>>0]|0,F=F<<24>>24==0?2:F,a[(W&n)+62>>0]=F,a[(k&n)+77>>0]=F,(c[(v&p)>>2]|0)!=0):0)break a;c[(G&p)>>2]=U;th(f,31800,G);break a}case 0:{s=c[((w*12|0)&p)+30128>>2]|0;F=T+96|0;c[(F&p)>>2]=c[(F&p)>>2]|1<>2]|0)>>>0>m>>>0)c[((c[(T&p)+4>>2]|0)+(m*20|0)&p)+4>>2]=Q;l=m+1|0;c[(G&p)>>2]=0;Dn(U,G)|0;k=c[(k&p)>>2]|0;if(k>>>0>l>>>0)c[((c[(T&p)+4>>2]|0)+(l*20|0)&p)+4>>2]=c[(G&p)>>2];m=m+2|0;if(k>>>0<=m>>>0)break a;c[((c[(T&p)+4>>2]|0)+(m*20|0)&p)+4>>2]=Q;c[((c[(T&p)+4>>2]|0)+(m*20|0)&p)+8>>2]=s;break a}m=yh(T,3,31848)|0;k=c[(T&p)+32>>2]|0;if(k>>>0>m>>>0)c[((c[(T&p)+4>>2]|0)+(m*20|0)&p)+4>>2]=Q;m=m+1|0;if(k>>>0>m>>>0){c[((c[(T&p)+4>>2]|0)+(m*20|0)&p)+4>>2]=Q;c[((c[(T&p)+4>>2]|0)+(m*20|0)&p)+12>>2]=s}iq(T,1);if(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)break a;Xg(c[(T&p)+16>>2]|0,V,-1,1,-1)|0;break a}case 7:{iq(T,1);c[(S&p)>>2]=1;if(!(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)){Xg(c[(T&p)+16>>2]|0,31864,-1,1,0)|0;l=0}else l=0;do{G=c[(l<<2&p)+8648>>2]|0;l=l+1|0;xh(T,wh(T,97,0,1,0)|0,G,0);wh(T,35,1,1,0)|0}while((l|0)!=4);break}case 35:{m=(c[(h&p)>>2]|0)!=0?Q:10;if(U)if(dd(U,31880)|0)if(!(dd(U,31888)|0))l=2;else{l=(dd(U,31896)|0)==0;l=l?3:0}else l=1;else l=0;iq(T,3);c[(S&p)>>2]=3;if(((a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0?(Xg(c[(T&p)+16>>2]|0,31912,-1,1,0)|0,(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(T&p)+16>>2]|0)+40|0,31920,-1,1,0)|0,(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0):0)Xg((c[(T&p)+16>>2]|0)+80|0,31928,-1,1,0)|0;wh(T,11,m,l,1)|0;wh(T,35,1,3,0)|0;break a}case 26:{of(W)|0;break a}case 34:{if(!U)l=c[(W&p)+216>>2]|0;else{c[(G&p)>>2]=0;Dn(U,G)|0;l=c[(G&p)>>2]|0;if((l|0)>0)m=21;else{l=0;m=0}c[(W&p)+216>>2]=m;c[(W&p)+220>>2]=l;l=m}if((l|0)==21){l=c[(W&p)+220>>2]|0;m=l;l=((l|0)<0)<<31>>31}else{m=0;l=0}Jt(f,31944,m,l);break a}case 27:{if((U|0)!=0?(ji(U,x)|0)==0:0){G=x;Pc(c[(G&p)>>2]|0,c[(G&p)+4>>2]|0)|0}F=(Lc()|0)==0;G=9032;Jt(f,31976,F?c[(G&p)>>2]|0:-1,F?c[(G&p)+4>>2]|0:-1);break a}case 33:{if((U|0)!=0?(E=(ji(U,s)|0)==0,G=s,F=c[(G&p)+4>>2]|0,E&((F|0)>-1|(F|0)==-1&(c[(G&p)>>2]|0)>>>0>4294967295)):0)c[(W&p)+132>>2]=0;G=c[(W&p)+132>>2]|0;Jt(f,31992,G,((G|0)<0)<<31>>31);break a}case 12:{g=c[(S&p)>>2]|0;H=g+1|0;I=g+5|0;J=g+6|0;c[(S&p)>>2]=J;K=Oq(f)|0;iq(K,4);if((((a[((c[(K&p)>>2]|0)&n)+65>>0]|0)==0?(Xg(c[(K&p)+16>>2]|0,31232,-1,1,0)|0,(a[((c[(K&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(K&p)+16>>2]|0)+40|0,20456,-1,1,0)|0,(a[((c[(K&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(K&p)+16>>2]|0)+80|0,31432,-1,1,0)|0,(a[((c[(K&p)>>2]|0)&n)+65>>0]|0)==0):0)Xg((c[(K&p)+16>>2]|0)+120|0,31440,-1,1,0)|0;Ar(f,Q);w=c[((c[((c[(R&p)>>2]|0)+(Q<<4)&p)+12>>2]|0)&p)+16>>2]|0;if(!w)break a;u=(U|0)==0;h=f+68|0;v=K+32|0;D=K+4|0;E=K+24|0;F=g+2|0;G=g+3|0;A=g+4|0;t=f+8|0;while(1){if(u){B=c[(w&p)>>2]|0;C=c[(w&p)+8>>2]|0}else{B=0;C=sh(f,0,U,L)|0}if((C|0)!=0?(M=C+16|0,(c[(M&p)>>2]|0)!=0):0){gs(f,Q,c[(C&p)+32>>2]|0,0,c[(C&p)>>2]|0);g=(b[(C&o)+38>>1]|0)+J|0;if((g|0)>(c[(S&p)>>2]|0))c[(S&p)>>2]=g;Qq(f,0,Q,C,54);w=c[(C&p)>>2]|0;xh(K,wh(K,97,0,H,0)|0,w,0);w=c[(M&p)>>2]|0;if(!w)g=1;else{g=1;do{l=_h(W,c[(w&p)+8>>2]|0,L)|0;do if(l){c[(O&p)>>2]=0;gs(f,Q,c[(l&p)+32>>2]|0,0,c[(l&p)>>2]|0);if(Mt(f,l,w,O,0)|0)break a;m=c[(O&p)>>2]|0;if(!m){Qq(f,g,Q,l,54);break}else{wh(K,54,g,c[(m&p)+40>>2]|0,Q)|0;z=c[(t&p)>>2]|0;xh(z,-1,hs(f,m)|0,-6);break}}while(0);g=g+1|0;w=c[(w&p)+4>>2]|0}while((w|0)!=0)}if((c[(h&p)>>2]|0)<(g|0))c[(h&p)>>2]=g;s=wh(K,108,0,0,0)|0;g=c[(M&p)>>2]|0;if(g){z=C+36|0;y=1;while(1){x=g+8|0;w=_h(W,c[(x&p)>>2]|0,L)|0;c[(O&p)>>2]=0;c[(N&p)>>2]=0;r=(w|0)!=0;do if(r){Mt(f,w,g,O,N)|0;l=c[(O&p)>>2]|0;m=xs(K)|0;if(!(r&(l|0)==0)){w=m;P=306;break}w=c[(g&p)+36>>2]|0;if((w|0)==(b[(z&o)>>1]|0))wh(K,103,0,J,0)|0;else{wh(K,47,0,w,J)|0;Nt(K,C,w,J);wh(K,76,J,m,0)|0;wh(K,38,J,(c[(v&p)>>2]|0)+3|0,0)|0}wh(K,70,y,0,J)|0;wh(K,16,0,m,0)|0;w=c[(v&p)>>2]|0;if(w>>>0>1)c[((c[(D&p)>>2]|0)+((w+-2|0)*20|0)&p)+8>>2]=w;c[((c[(E&p)>>2]|0)&p)+88>>2]=w+-1;w=m}else{w=xs(K)|0;l=0;P=306}while(0);do if((P|0)==306){P=0;q=g+20|0;m=c[(q&p)>>2]|0;if((m|0)>0){k=0;do{m=c[(N&p)>>2]|0;if(!m)m=g+(k<<3)+36|0;else m=m+(k<<2)|0;R=k+J|0;nt(K,C,0,c[(m&p)>>2]|0,R);wh(K,76,R,w,0)|0;k=k+1|0;m=c[(q&p)>>2]|0}while((k|0)<(m|0))}if(!r)break;k=ot(K,l)|0;l=c[(q&p)>>2]|0;xh(K,wh(K,49,J,m,I)|0,k,l);xh(K,wh(K,69,y,w,I)|0,0,-14)}while(0);wh(K,103,0,F,0)|0;l=c[(x&p)>>2]|0;xh(K,wh(K,97,0,G,0)|0,l,0);wh(K,25,y+-1|0,A,0)|0;wh(K,35,H,4,0)|0;l=c[(E&p)>>2]|0;m=~w;do if((w|0)<0){w=c[(l&p)+112>>2]|0;if(!w)break;c[(w+(m<<2)&p)>>2]=c[(v&p)>>2]}while(0);c[(l&p)+88>>2]=(c[(v&p)>>2]|0)+-1;mg(W,c[(N&p)>>2]|0);g=c[(g&p)+4>>2]|0;if(!g)break;else y=y+1|0}}wh(K,9,0,s+1|0,0)|0;g=c[(v&p)>>2]|0;if(g>>>0>s>>>0)c[((c[(D&p)>>2]|0)+(s*20|0)&p)+8>>2]=g;c[((c[(E&p)>>2]|0)&p)+88>>2]=g+-1}if(!B)break;else w=B}break}case 23:{Jt(f,31016,0,0);break a}case 31:{if(!U){Jt(f,31032,d[(W&n)+64>>0]|0,0);break a}l=a[(U&n)>>0]|0;if((l+-48&255)>=3)if(!(dd(U,31352)|0))l=1;else{l=(dd(U,15168)|0)==0;l=l?2:0}else l=(l<<24>>24)+-48|0;m=(c[(f&p)>>2]|0)+64|0;if((d[(m&n)>>0]|0)==(l|0))break a;if(Kt(f)|0)break a;a[(m&n)>>0]=l;break a}case 29:{if(!U){G=(d[(C+(Q<<4)&n)+8>>0]|0)+-1|0;Jt(f,31104,G,((G|0)<0)<<31>>31);break a}if(!(a[(W&n)+63>>0]|0)){th(f,31120,G);break a}else{a[(C+(Q<<4)&n)+8>>0]=((ii(U,0,1)|0)&255)+1;Lt(W);break a}}case 4:if(!U){G=c[((c[(C+(Q<<4)&p)+12>>2]|0)&p)+80>>2]|0;Jt(f,30848,G,((G|0)<0)<<31>>31);break a}else{c[(G&p)>>2]=0;Dn(U,G)|0;G=c[(G&p)>>2]|0;c[((c[(C+(Q<<4)&p)+12>>2]|0)&p)+80>>2]=G;pq(c[(C+(Q<<4)&p)+4>>2]|0,G);break a}default:{if(!U)l=c[(W&p)+492>>2]|0;else{c[(G&p)>>2]=0;Dn(U,G)|0;l=c[(G&p)>>2]|0;G=(l|0)>0;l=G?l:0;c[(W&p)+444>>2]=G?74:0;c[(W&p)+448>>2]=G?W:0;c[(r&p)>>2]=0;c[(W&p)+492>>2]=l}Jt(f,31968,l,((l|0)<0)<<31>>31);break a}}while(0)}else{k=c[(q&p)>>2]|0;if(k){c[(G&p)>>2]=k;th(f,10344,G);Wc(c[(q&p)>>2]|0)}G=f+64|0;c[(G&p)>>2]=(c[(G&p)>>2]|0)+1;c[(f&p)+12>>2]=g;break}}while(0);mg(W,V);mg(W,U)}}while(0);i=X;return}function Gr(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0;h=i;i=i+16|0;if((i|0)>=(j|0))fa();g=h;a:do if(!d)d=0;else{f=d;while(1){if((a[(f&n)>>0]|0)==-121){d=c[(b&p)>>2]|0;if(!(a[((c[(d&p)>>2]|0)&n)+145>>0]|0))break;a[(f&n)>>0]=101}d=c[(f&p)+4>>2]|0;if(d&16384){d=0;break a}e=f+20|0;if(!(d&2048)){if(Hr(b,c[(e&p)>>2]|0)|0){d=1;break a}}else if(fr(b,c[(e&p)>>2]|0)|0){d=1;break a}if(Gr(b,c[(f&p)+16>>2]|0)|0){d=1;break a}f=c[(f&p)+12>>2]|0;if(!f){d=0;break a}}c[(g&p)>>2]=c[(b&p)+16>>2];th(d,29984,g);d=1}while(0);i=h;return d|0}function Hr(a,b){a=a|0;b=b|0;var d=0,e=0;a:do if((b|0)!=0?(c[(b&p)>>2]|0)>0:0){d=0;e=c[(b&p)+4>>2]|0;while(1){if(Gr(a,c[(e&p)>>2]|0)|0){d=1;break a}d=d+1|0;if((d|0)>=(c[(b&p)>>2]|0)){d=0;break}else e=e+20|0}}else d=0;while(0);return d|0}function Ir(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;xh(a,wh(a,122,b,0,0)|0,d,-1);d=c[((c[(a&p)>>2]|0)&p)+20>>2]|0;if((d|0)>0){e=a+96|0;b=c[(e&p)>>2]|0;a=0;do{b=b|1<>2]=b}return}function Jr(a,d){a=a|0;d=d|0;var e=0,f=0;e=d+8|0;f=Ur(a,0,e)|0;d=d+24|0;kg(c[(a&p)>>2]|0,c[(d&p)>>2]|0);c[(d&p)>>2]=f;if(f){d=f+40|0;b[(d&o)>>1]=(b[(d&o)>>1]|0)+1<<16>>16}e=(Rt(a,e)|0)==0;return (e?f:0)|0}function Kr(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0;n=i;i=i+16|0;if((i|0)>=(j|0))fa();m=n;a:do if((b|0)!=0?(f=c[(a&p)+12>>2]|0,(c[(b&p)>>2]|0)>0):0){g=a+8|0;h=a+4|0;k=0;l=b+8|0;while(1){if(!(c[(g&p)>>2]|0)){e=l+4|0;d=c[(e&p)>>2]|0;if((d|0)!=0?(dd(d,f)|0)!=0:0)break;mg(c[(c[(a&p)>>2]&p)>>2]|0,d);c[(e&p)>>2]=0;c[(l&p)>>2]=c[(h&p)>>2]}if(fr(a,c[(l&p)+20>>2]|0)|0){d=1;break a}if(Gr(a,c[(l&p)+44>>2]|0)|0){d=1;break a}k=k+1|0;if((k|0)>=(c[(b&p)>>2]|0)){d=0;break a}else l=l+72|0}b=c[(a&p)>>2]|0;l=c[(a&p)+20>>2]|0;c[(m&p)>>2]=c[(a&p)+16>>2];c[(m&p)+4>>2]=l;c[(m&p)+8>>2]=d;th(b,29936,m);d=1}else d=0;while(0);i=n;return d|0}function Lr(b,d){b=b|0;d=d|0;var e=0,f=0,g=0;f=i;i=i+16|0;if((i|0)>=(j|0))fa();e=f;g=c[(b&p)>>2]|0;if((((a[(g&n)+145>>0]|0)==0?(a[(b&n)+18>>0]|0)==0:0)?(c[(g&p)+24>>2]&2048|0)==0:0)?(Fc(d,25568,7)|0)==0:0){c[(e&p)>>2]=d;th(b,28440,e);b=1}else b=0;i=f;return b|0}function Mr(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,o=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0;x=i;i=i+16|0;if((i|0)>=(j|0))fa();w=x;do if(d){t=e&1;v=(f|0)!=0;if(v){g=c[(f&p)>>2]|0;r=32768}else{g=St(d,e)|0;g=mh(b,g,((g|0)<0)<<31>>31)|0;r=0}c[(w&p)>>2]=g;if(g){l=(t|0)==0;if(!l)if(!(c[(d&p)+12>>2]|0))q=(c[(d&p)+20>>2]|0)==0?16396:8220;else q=8220;else q=48;s=q&60;u=d+4|0;m=c[(u&p)>>2]|0;if((m&1024|0)==0?(h=c[(d&p)+8>>2]|0,(h|0)!=0):0){k=h;while(1)if(!(a[(k&n)>>0]|0))break;else k=k+1|0;o=(k-h&1073741823)+1|0}else o=0;if(l){if(!(m&16384))k=(m&8192|0)==0?48:28;else k=12;kw(g|0,d|0,k|0)|0;fw(g+k|0,0,48-k|0)|0}else kw(g|0,d|0,s|0)|0;m=g+4|0;h=q&24576|r|c[(m&p)>>2]&-122881;c[(m&p)>>2]=h;if(o){h=g+s|0;c[(g&p)+8>>2]=h;kw(h|0,c[(d&p)+8>>2]|0,o|0)|0;h=c[(m&p)>>2]|0}k=c[(u&p)>>2]|0;do if(!((h|k)&16384)){h=d+20|0;if(!(k&2048)){c[(g&p)+20>>2]=Pr(b,c[(h&p)>>2]|0,t)|0;break}else{c[(g&p)+20>>2]=gr(b,c[(h&p)>>2]|0,t)|0;break}}while(0);h=c[(m&p)>>2]|0;if(!(h&24576)){if(c[(u&p)>>2]&16384)break;c[(g&p)+12>>2]=Mr(b,c[(d&p)+12>>2]|0,0,0)|0;c[(g&p)+16>>2]=Mr(b,c[(d&p)+16>>2]|0,0,0)|0;break}t=Tt(d,e)|0;c[(w&p)>>2]=(c[(w&p)>>2]|0)+t;if(h&8192){c[(g&p)+12>>2]=Mr(b,c[(d&p)+12>>2]|0,1,w)|0;c[(g&p)+16>>2]=Mr(b,c[(d&p)+16>>2]|0,1,w)|0}if(v)c[(f&p)>>2]=c[(w&p)>>2]}}else g=0;while(0);i=x;return g|0}function Nr(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;a:do if((b|0)!=0?(d=mh(a,8,0)|0,(d|0)!=0):0){g=b+4|0;c[(d&p)+4>>2]=c[(g&p)>>2];e=mh(a,c[(g&p)>>2]<<3,0)|0;c[(d&p)>>2]=e;if(!e){mg(a,d);d=0;break}if((c[(g&p)>>2]|0)>0){f=0;while(1){h=c[(b&p)>>2]|0;c[(e+(f<<3)&p)>>2]=kh(a,c[(h+(f<<3)&p)>>2]|0)|0;c[(e+(f<<3)&p)+4>>2]=c[(h+(f<<3)&p)+4>>2];f=f+1|0;if((f|0)>=(c[(g&p)>>2]|0))break a;e=c[(d&p)>>2]|0}}}else d=0;while(0);return d|0}function Or(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0;f=e+4|0;g=(c[(f&p)>>2]|0)+40|0;b=mh(b,g,0)|0;if(b){fw(b|0,0,g|0)|0;g=b+40|0;kw(g|0,c[(e&p)>>2]|0,c[(f&p)>>2]|0)|0;c[(b&p)+12>>2]=g;c[(b&p)+16>>2]=c[(f&p)>>2];a[(b&n)>>0]=d}return b|0}function Pr(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0;do if((d|0)!=0?(f=mh(b,8,0)|0,(f|0)!=0):0){g=c[(d&p)>>2]|0;c[(f&p)>>2]=g;if(!(e&1)){h=c[(d&p)>>2]|0;g=1;while(1)if((g|0)<(h|0))g=g<<1;else break}g=mh(b,g*20|0,0)|0;c[(f&p)+4>>2]=g;if(!g){mg(b,f);f=0;break}if((c[(d&p)>>2]|0)>0){i=0;h=c[(d&p)+4>>2]|0;while(1){c[(g&p)>>2]=Mr(b,c[(h&p)>>2]|0,e,0)|0;c[(g&p)+4>>2]=kh(b,c[(h&p)+4>>2]|0)|0;c[(g&p)+8>>2]=kh(b,c[(h&p)+8>>2]|0)|0;a[(g&n)+12>>0]=a[(h&n)+12>>0]|0;j=g+13|0;k=a[(j&n)>>0]|0;a[(j&n)>>0]=k&-2;a[(j&n)>>0]=a[(h&n)+13>>0]&2|k&-4;c[(g&p)+16>>2]=c[(h&p)+16>>2];i=i+1|0;if((i|0)>=(c[(d&p)>>2]|0))break;else{g=g+20|0;h=h+20|0}}}}else f=0;while(0);return f|0}function Qr(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0;o=i;i=i+16|0;if((i|0)>=(j|0))fa();k=o;l=c[(a&p)>>2]|0;f=c[(b&p)+20>>2]|0;a:do if(f){e=c[(l&p)+20>>2]|0;if((e|0)>0){d=c[(l&p)+16>>2]|0;h=0;while(1){g=h+1|0;if((c[(d+(h<<4)&p)+12>>2]|0)==(f|0)){g=h;break a}if((g|0)<(e|0))h=g;else break}}else g=0}else g=-1e6;while(0);d=bn((c[(b&p)+24>>2]|0)+8|0,c[(b&p)+4>>2]|0,k)|0;if(!d)f=0;else f=c[(d&p)+8>>2]|0;d=c[((c[(l&p)+16>>2]|0)+(g<<4)&p)>>2]|0;e=(g|0)==1;if((((Sq(a,e?14:16,c[(b&p)>>2]|0,c[(f&p)>>2]|0,d)|0)==0?(Sq(a,9,e?13184:13208,0,d)|0)==0:0)?(m=Oq(a)|0,(m|0)!=0):0)?(n=c[(a&p)+408>>2]|0,Ar(a,g),n=((n|0)==0?a:n)+328|0,c[(n&p)>>2]=c[(n&p)>>2]|1<>2]|0,0),xh(m,n+4|0,10720,-2),Dr(a,g),wh(m,61,0,0,0)|0,n=c[(b&p)>>2]|0,xh(m,wh(m,126,g,0,0)|0,n,0),n=a+72|0,(c[(n&p)>>2]|0)<3):0)c[(n&p)>>2]=3;i=o;return}function Rr(d,e,f,g,h,k,l){d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;var m=0,q=0,r=0,s=0,t=0,u=0,v=0;v=i;i=i+32|0;if((i|0)>=(j|0))fa();m=v;t=c[(d&p)>>2]|0;c[(m&p)>>2]=0;c[(m&p)+4>>2]=0;c[(m&p)+8>>2]=0;c[(m&p)+12>>2]=0;c[(m&p)+16>>2]=0;c[(m&p)+20>>2]=0;c[(m&p)+24>>2]=0;c[(m&p)+28>>2]=0;c[(m&p)>>2]=d;do if(h)if((a[(h&n)>>0]|0)!=27)if(!(ls(m,h)|0)){u=5;break}else{u=13;break}else{a[(h&n)>>0]=97;u=5;break}else u=5;while(0);a:do if((u|0)==5){do if(k)if((a[(k&n)>>0]|0)!=27)if(!(ls(m,k)|0))break;else{u=13;break a}else{a[(k&n)>>0]=97;break}while(0);do if(l)if((a[(l&n)>>0]|0)!=27)if(!(ls(m,l)|0))break;else{u=13;break a}else{a[(l&n)>>0]=97;break}while(0);if(g){if((a[(g&n)>>0]|0)==97)g=c[(g&p)+8>>2]|0;else g=0;if(Sq(d,e,g,0,0)|0)break}s=Oq(d)|0;m=d+60|0;g=c[(m&p)>>2]|0;q=d+56|0;r=c[(q&p)>>2]|0;if((r|0)<4){r=d+72|0;g=c[(r&p)>>2]|0;c[(r&p)>>2]=g+4;g=g+1|0}else{c[(m&p)>>2]=g+4;c[(q&p)>>2]=r+-4}Rq(d,h,g);Rq(d,k,g+1|0);Rq(d,l,g+2|0);if(s){g=g+3|0;wh(s,1,0,g-(b[(f&o)>>1]|0)|0,g)|0;g=c[(s&p)+4>>2]|0;if(g)a[(g+(((c[(s&p)+32>>2]|0)+-1|0)*20|0)&n)+3>>0]=b[(f&o)>>1];xh(s,-1,f,-5);wh(s,144,(e|0)==24&1,0,0)|0}}while(0);if((u|0)==13){f=d+64|0;c[(f&p)>>2]=(c[(f&p)>>2]|0)+1}Gk(t,h);Gk(t,k);Gk(t,l);i=v;return}function Sr(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0;m=i;i=i+16|0;if((i|0)>=(j|0))fa();l=m;g=m+4|0;h=c[(b&p)>>2]|0;a:do if(!(Gn(b)|0)){if(!d){Ut(b,0);break}if(!((e|0)!=0?(c[(e&p)>>2]|0)!=0:0))f=6;do if((f|0)==6){f=Wq(c[(b&p)>>2]|0,d)|0;if(!f)break a;if(!(Yn(h,a[(h&n)+62>>0]|0,f,0)|0)){mg(h,f);break}else{Ut(b,f);mg(h,f);break a}}while(0);d=er(b,d,e,g)|0;if((d|0)>=0?(k=Wq(h,c[(g&p)>>2]|0)|0,(k|0)!=0):0){e=c[((c[(h&p)+16>>2]|0)+(d<<4)&p)>>2]|0;f=_h(h,k,e)|0;if(f){Vt(b,f,0);mg(h,k);break}e=bq(h,k,e)|0;mg(h,k);if(!e){th(b,28872,l);break}else{f=c[(b&p)+408>>2]|0;Ar(b,d);f=((f|0)==0?b:f)+328|0;c[(f&p)>>2]=c[(f&p)>>2]|1<=(j|0))fa();f=h;g=c[(a&p)>>2]|0;if(!(Gn(a)|0)){do if(!b){b=g+20|0;e=c[(b&p)>>2]|0;if((e|0)>0){d=0;do{if((d|0)!=1){Wt(a,d);e=c[(b&p)>>2]|0}d=d+1|0}while((d|0)<(e|0))}}else{if(c[(d&p)+4>>2]|0){e=er(a,b,d,f)|0;if((e|0)<=-1)break;e=c[((c[(g&p)+16>>2]|0)+(e<<4)&p)>>2]|0;b=Wq(g,c[(f&p)>>2]|0)|0;if(!b)break;d=bq(g,b,e)|0;if(!d){e=sh(a,0,b,e)|0;if(e)Xt(a,e,0)}else Xt(a,c[(d&p)+12>>2]|0,d);mg(g,b);break}d=Wq(g,b)|0;e=Vh(g,d)|0;mg(g,d);if((e|0)>-1){Wt(a,e);break}d=Wq(g,b)|0;if(d){e=bq(g,d,0)|0;if(!e){e=sh(a,0,d,0)|0;if(e)Xt(a,e,0)}else Xt(a,c[(e&p)+12>>2]|0,e);mg(g,d)}}while(0);e=Oq(a)|0;if(e)wh(e,144,0,0,0)|0}i=h;return}function Ur(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,i=0;f=c[(d&p)>>2]|0;if(!f)e=d+4|0;else{i=c[(a&p)>>2]|0;g=c[(i&p)+20>>2]|0;i=c[(i&p)+16>>2]|0;a:do if((g|0)>0){h=0;while(1){e=h+1|0;if((c[(i+(h<<4)&p)+12>>2]|0)==(f|0)){e=h;break a}if((e|0)<(g|0))h=e;else break}}else e=0;while(0);e=i+(e<<4)|0}return sh(a,b,c[(d&p)+8>>2]|0,c[(e&p)>>2]|0)|0}function Vr(b,d){b=b|0;d=d|0;var e=0,f=0,g=0;g=i;i=i+16|0;if((i|0)>=(j|0))fa();f=g;if(d){e=d;while(1)if(!(a[(e&n)>>0]|0))break;else e=e+1|0;if((e-d&1073741823)>>>0>6?(Fc(d,25568,7)|0)==0:0){c[(f&p)>>2]=d;th(b,25576,f);e=1}else e=0}else e=0;i=g;return e|0}function Wr(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;f=i;i=i+16|0;if((i|0)>=(j|0))fa();e=f;if(!b){c[(e&p)>>2]=d;a=uh(a,25992,e)|0}else{c[(e&p)>>2]=b;c[(e&p)+4>>2]=d;e=uh(a,26e3,e)|0;mg(a,b);a=e}i=f;return a|0}function Xr(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;h=i;i=i+16|0;if((i|0)>=(j|0))fa();g=h;e=c[(a&p)>>2]|0;f=c[((c[(e&p)+16>>2]|0)&p)+28>>2]|0;if((c[(b&p)+68>>2]|0)!=(f|0)?(d=As(a,b)|0,(d|0)!=0):0){b=d;d=0;do{if((c[(b&p)+20>>2]|0)==(f|0))d=Wr(e,d,c[(b&p)>>2]|0)|0;b=c[(b&p)+32>>2]|0}while((b|0)!=0);if(d){b=c[(a&p)>>2]|0;c[(g&p)>>2]=d;b=uh(b,25968,g)|0;mg(c[(a&p)>>2]|0,d);d=b}else d=0}else d=0;i=h;return d|0}function Yr(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,q=0,r=0;r=i;i=i+16|0;if((i|0)>=(j|0))fa();n=r;o=Oq(a)|0;if(o){e=c[(a&p)>>2]|0;h=c[(b&p)+68>>2]|0;a:do if(h){k=c[(e&p)+20>>2]|0;if((k|0)>0){f=c[(e&p)+16>>2]|0;g=0;while(1){e=g+1|0;if((c[(f+(g<<4)&p)+12>>2]|0)==(h|0))break a;if((e|0)<(k|0))g=e;else{g=e;break}}}else g=0}else g=-1e6;while(0);e=As(a,b)|0;if(e)do{f=c[(a&p)>>2]|0;l=c[(e&p)+20>>2]|0;b:do if(l){m=c[(f&p)+20>>2]|0;if((m|0)>0){k=c[(f&p)+16>>2]|0;h=0;while(1){f=h+1|0;if((c[(k+(h<<4)&p)+12>>2]|0)==(l|0)){f=h;break b}if((f|0)<(m|0))h=f;else break}}else f=0}else f=-1e6;while(0);m=c[(e&p)>>2]|0;xh(o,wh(o,126,f,0,0)|0,m,0);e=c[(e&p)+32>>2]|0}while((e|0)!=0);e=c[(b&p)>>2]|0;xh(o,wh(o,124,g,0,0)|0,e,0);e=c[(a&p)>>2]|0;c[(n&p)>>2]=d;e=uh(e,25952,n)|0;if((e|0)!=0?(Ir(o,g,e),q=Xr(a,b)|0,(q|0)!=0):0)Ir(o,1,q)}i=r;return} function gh(f){f=f|0;var g=0,l=0,m=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,E=0,F=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ea=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,cc=0,dc=0,ec=0,fc=0,gc=0,hc=0,ic=0,kc=0,nc=0,oc=0,qc=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,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,Xc=0,Yc=0,Zc=0,_c=0,$c=0,ad=0,ed=0,fd=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,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,ee=0,fe=0,ge=0,he=0,ie=0,je=0,ke=0,le=0,me=0,ne=0,oe=0,pe=0,qe=0;oe=i;i=i+1040|0;if((i|0)>=(j|0))fa();ke=oe+400|0;Tc=oe+792|0;id=oe+392|0;ad=oe+788|0;Sd=oe+320|0;md=oe+784|0;pd=oe+780|0;qd=oe+280|0;Nd=oe+680|0;$c=oe+240|0;Qd=oe+200|0;_c=oe+676|0;Xc=oe+672|0;Od=oe+160|0;Uc=oe+644|0;td=oe+152|0;Jd=oe+112|0;kd=oe+640|0;Ld=oe+636|0;Yc=oe+632|0;ud=oe+628|0;Ad=oe+624|0;wd=oe+604|0;Bd=oe+600|0;od=oe+596|0;xd=oe+576|0;Sc=oe+840|0;Cd=oe+572|0;Pd=oe+104|0;Dd=oe+568|0;ed=oe+564|0;fd=oe+96|0;Rd=oe+88|0;Ed=oe+560|0;Fd=oe+556|0;Gd=oe+552|0;yd=oe+532|0;zd=oe+512|0;jd=oe+508|0;vd=oe+504|0;Zc=oe+488|0;Md=oe+48|0;Vc=oe+456|0;Rc=oe+444|0;Kd=oe+8|0;sd=oe+440|0;Id=oe+412|0;Hd=oe;zc=f+4|0;s=c[(zc&p)>>2]|0;le=c[(f&p)>>2]|0;Jc=a[(le&n)+62>>0]|0;Nc=f+8|0;z=c[(Nc&p)>>2]|0;ne=le+32|0;l=ne;m=c[(l&p)>>2]|0;l=c[(l&p)+4>>2]|0;me=f+80|0;a:do if((c[(me&p)>>2]|0)==7){y=le+65|0;z=f+44|0;r=m;g=0;t=0;m=0;ie=1317}else{c[(me&p)>>2]=0;de=f+136|0;c[(de&p)>>2]=0;c[(de&p)+4>>2]=0;de=f+20|0;c[(de&p)>>2]=0;c[(le&p)+452>>2]=0;Cc=le+240|0;b:do if(!(c[(Cc&p)>>2]|0)){be=le+292|0;if(c[(be&p)>>2]|0){r=c[(f&p)+124>>2]|0;g=le+300|0;y=c[(g&p)>>2]|0;if(!r)yc=g;else{yc=g;y=(r>>>0)%(y>>>0)|0}}else{yc=le+300|0;y=0}he=f+76|0;ge=le+65|0;Zd=le+296|0;sb=f+176|0;tb=f+184|0;ub=f+92|0;vb=le+80|0;wb=le+84|0;xb=Jc&255;yb=Jc<<24>>24==1;zb=le+88|0;Ab=f+60|0;_d=f+144|0;fe=f+86|0;je=f+44|0;Bb=f+12|0;Cb=Uc+4|0;Db=Uc+16|0;Eb=Uc+12|0;Fb=Uc+25|0;Gb=Uc+20|0;Hb=f+200|0;Ib=f+56|0;$d=f+72|0;Jb=Jd+16|0;Kb=Jd+8|0;Lb=Jd+24|0;Mb=f+87|0;ae=le+156|0;Nb=le+500|0;Ob=le+496|0;ee=le+63|0;Pb=le+488|0;Qb=le+504|0;Rb=le+512|0;Sb=le+70|0;Tb=le+24|0;Ub=le+20|0;Xd=le+16|0;Vb=le+4|0;Yd=f+88|0;Wb=f+104|0;Xb=f+152|0;Yb=f+160|0;Zb=le+152|0;_b=le+64|0;$b=wd+4|0;cc=wd+6|0;dc=wd+8|0;ec=xd+4|0;fc=xd+8|0;gc=le+212|0;hc=le+208|0;ic=f+116|0;kc=yd+4|0;nc=yd+6|0;oc=yd+8|0;qc=$c+8|0;sc=$c+32|0;uc=$c+24|0;vc=$c+16|0;wc=$c+12|0;xc=zd+4|0;Y=zd+6|0;Z=zd+8|0;_=qd+8|0;$=qd+32|0;aa=qd+24|0;ea=qd+12|0;ga=qd+16|0;ha=le+164|0;ia=Zc+8|0;ja=Zc+4|0;ka=le+145|0;la=Zc+12|0;ma=Sd+4|0;na=Sd+12|0;oa=Sd+16|0;pa=Sd+20|0;qa=Sd+24|0;ra=Sd+28|0;sa=Sd+8|0;ta=Sd+40|0;ua=Sd+44|0;va=Sd+48|0;wa=Sd+52|0;xa=Sd+56|0;ya=Sd+60|0;za=Sd+64|0;Aa=Sd+65|0;Ba=le+128|0;Ca=f+28|0;Da=f+36|0;Ea=f+32|0;Fa=f+196|0;Ga=Vc+4|0;Ha=Vc+8|0;Ia=Md+8|0;Ja=Md+32|0;Ka=Md+24|0;La=Vc+20|0;Ma=Vc+12|0;Na=Vc+16|0;Oa=Vc+24|0;Pa=Rc+8|0;Qa=Rc+4|0;Ra=le+148|0;Sa=le+176|0;Ta=le+72|0;Ua=le+67|0;Va=Tc+20|0;Wa=Tc+24|0;Xa=Tc+4|0;Ya=Tc+16|0;Za=le+304|0;_a=le+328|0;$a=Kd+32|0;ab=Kd+8|0;bb=Kd+24|0;cb=le+308|0;db=Id+20|0;eb=le+69|0;ce=f+168|0;fb=qd+4|0;gb=qd+8|0;hb=qd+12|0;ib=qd+16|0;jb=qd+20|0;kb=qd+24|0;lb=qd+25|0;mb=le+180|0;nb=Od+32|0;ob=Od+8|0;pb=Od+12|0;qb=Od+16|0;rb=Od+24|0;W=0;X=0;g=0;u=0;t=c[(he&p)>>2]|0;x=0;c:while(1){r=m;d:while(1){if(a[(ge&n)>>0]|0){y=ge;z=je;m=x;ie=1317;break a}m=g+1|0;if(!(a[(s+(t*20|0)&n)+2>>0]&2))L=u;else{u=c[(s+(t*20|0)&p)+8>>2]|0;g=z+(u*40|0)|0;u=z+(u*40|0)+8|0;if(b[(u&o)>>1]&9312)vg(g);b[(u&o)>>1]=4;L=g}C=s+(t*20|0)|0;J=a[(C&n)>>0]|0;u=J&255;e:do switch(u|0){case 17:{g=m;m=r;u=L;ie=22;break d}case 18:{g=m;m=r;u=L;ie=23;break d}case 20:{g=m;m=r;ie=24;break d}case 21:{g=m;m=r;u=L;ie=25;break d}case 22:{g=m;m=r;u=L;ie=26;break d}case 23:{g=m;m=r;u=L;r=t;ie=27;break d}case 29:{g=m;m=r;r=t;ie=65;break d}case 30:{g=m;m=r;u=L;r=t;ie=66;break d}case 28:{g=m;m=r;u=L;r=t;ie=60;break d}case 32:{g=m;m=r;r=t;ie=72;break d}case 24:{g=m;m=r;u=L;r=t;ie=28;break d}case 25:{g=m;m=r;u=L;r=t;ie=44;break d}case 26:{g=m;m=r;u=L;r=t;ie=45;break d}case 133:{g=m;m=r;u=L;r=t;ie=46;break d}case 97:{a[(C&n)>>0]=27;C=s+(t*20|0)+16|0;v=c[(C&p)>>2]|0;if(!v)g=0;else{g=v;while(1)if(!(a[(g&n)>>0]|0))break;else g=g+1|0;g=g-v&1073741823}w=s+(t*20|0)+4|0;c[(w&p)>>2]=g;if(yb)u=0;else{u=Xg(L,v,-1,1,0)|0;if((u|0)==18){g=m;m=r;u=x;ie=1316;break c}if(Yl(L,xb)|0){y=ge;z=je;g=m;m=x;ie=1317;break a}c[(L&p)+24>>2]=0;g=L+8|0;b[(g&o)>>1]=e[(g&o)>>1]|2048;g=s+(t*20|0)+1|0;if((a[(g&n)>>0]|0)==-1)mg(le,c[(C&p)>>2]|0);a[(g&n)>>0]=-1;v=c[(L&p)+16>>2]|0;c[(C&p)>>2]=v;g=c[(L&p)+12>>2]|0;c[(w&p)>>2]=g}if((g|0)>(c[(zb&p)>>2]|0)){g=m;m=r;u=x;ie=1316;break c}else ie=57;break}case 31:{g=m;m=r;u=L;r=t;ie=67;break d}case 34:{g=m;m=r;r=t;ie=79;break d}case 35:{g=m;m=r;u=x;ie=80;break c}case 33:{g=m;m=r;ie=74;break d}case 94:{g=m;m=r;ie=94;break d}case 93:case 92:case 91:case 90:case 89:{g=m;P=C;m=r;r=t;ie=112;break d}case 27:{v=c[(s+(t*20|0)&p)+16>>2]|0;g=c[(s+(t*20|0)&p)+4>>2]|0;u=0;ie=57;break}case 16:{t=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;u=0;ie=19;break}case 36:{g=m;m=r;J=L;r=t;ie=166;break d}case 1:{V=a[(s+(t*20|0)&n)+3>>0]|0;C=V&255;A=c[(Bb&p)>>2]|0;g=z+((c[(s+(t*20|0)&p)+12>>2]|0)*40|0)|0;c[(Uc&p)>>2]=g;if(V<<24>>24){g=0;u=z+((c[(s+(t*20|0)&p)+8>>2]|0)*40|0)|0;while(1){c[(A+(g<<2)&p)>>2]=u;if((b[(u&o)+8>>1]&4096)!=0?(Vl(u)|0)!=0:0){y=ge;z=je;g=m;m=x;ie=1317;break a}g=g+1|0;if((g|0)>=(C|0))break;else u=u+40|0}g=c[(Uc&p)>>2]|0}V=c[(s+(t*20|0)&p)+16>>2]|0;c[(Cb&p)>>2]=V;c[(Db&p)>>2]=t;c[(Eb&p)>>2]=f;U=g+8|0;b[(U&o)>>1]=e[(U&o)>>1]&48640|1;a[(Fb&n)>>0]=0;U=ne;c[(U&p)>>2]=r;c[(U&p)+4>>2]=l;mc[c[(V&p)+12>>2]&63](Uc,C,A);l=ne;r=c[(l&p)>>2]|0;l=c[(l&p)+4>>2]|0;if(!(a[(Fb&n)>>0]|0))g=0;else{if(!(c[(Gb&p)>>2]|0))g=0;else{c[(ke&p)>>2]=Sg(c[(Uc&p)>>2]|0,1)|0;dh(je,le,10344,ke);g=c[(Gb&p)>>2]|0}em(f,t,c[(s+(t*20|0)&p)+4>>2]|0)}Yl(c[(Uc&p)>>2]|0,xb)|0;w=c[(Uc&p)>>2]|0;v=e[(w&o)+8>>1]|0;if(v&18){u=c[(w&p)+12>>2]|0;if(v&16384)u=(c[(w&p)>>2]|0)+u|0;if((u|0)>(c[((c[(w&p)+32>>2]|0)&p)+88>>2]|0)){g=m;m=r;u=x;ie=1316;break c}else{C=L;T=t;u=g}}else{C=L;T=t;u=g}break}case 88:case 87:case 86:case 85:{g=m;H=C;m=r;r=t;ie=184;break d}case 39:{g=m;m=r;J=L;r=t;ie=208;break d}case 37:{g=m;m=r;u=L;r=t;ie=202;break d}case 38:{g=m;m=r;J=L;r=t;ie=203;break d}case 83:case 80:case 81:case 82:case 78:case 79:{g=m;I=J;m=r;u=L;ie=213;break d}case 40:{V=c[(s+(t*20|0)&p)+4>>2]|0;g=z+(V*40|0)|0;if(!(b[(z+(V*40|0)&o)+8>>1]&16384))u=0;else u=Rg(g)|0;gm(g,c[(s+(t*20|0)&p)+8>>2]&255,Jc);C=L;T=t;break}case 41:{g=m;m=r;u=L;r=t;ie=248;break d}case 42:{g=m;m=r;u=L;r=t;ie=249;break d}case 43:{g=m;m=r;u=L;ie=256;break d}case 71:case 72:{g=m;m=r;r=t;ie=261;break d}case 76:{g=m;m=r;u=L;r=t;ie=286;break d}case 19:{g=m;m=r;r=t;ie=268;break d}case 96:{g=m;m=r;r=t;ie=273;break d}case 44:{g=m;m=r;u=L;r=t;ie=278;break d}case 46:case 45:{g=m;m=r;u=L;r=t;ie=281;break d}case 77:{g=m;m=r;u=L;r=t;ie=288;break d}case 47:{g=m;m=r;u=L;ie=290;break d}case 48:{g=m;m=r;u=L;r=t;ie=368;break d}case 49:{g=m;m=r;ie=371;break d}case 50:{E=c[(c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]&p)>>2]|0;f:do if(c[(E&p)+60>>2]|0){g=qm(E)|0;if(!g){K=E+76|0;H=E+44|0;F=E+72|0;v=0;u=0;g:while(1){C=b[(K&o)>>1]|0;J=c[(E+(C<<16>>16<<2)&p)+120>>2]|0;if(!(a[(J&n)+5>>0]|0)){if(!(a[(J&n)+2>>0]|0)){v=jw(e[(J&o)+18>>1]|0,0,v|0,u|0)|0;u=G}}else{v=jw(e[(J&o)+18>>1]|0,0,v|0,u|0)|0;u=G;while(1){if(!(C<<16>>16))break g;if(J){Bg(c[(J&p)+68>>2]|0);C=b[(K&o)>>1]|0}C=C+-1<<16>>16;b[(K&o)>>1]=C;b[(H&o)>>1]=0;a[(F&n)>>0]=d[(F&n)>>0]&249;J=C<<16>>16;A=E+(J<<1)+78|0;I=b[(A&o)>>1]|0;J=c[(E+(J<<2)&p)+120>>2]|0;if((I&65535)<(e[(J&o)+18>>1]|0)){C=I;break}}b[(A&o)>>1]=C+1<<16>>16;J=b[(K&o)>>1]|0;C=J;J=c[(E+(J<<16>>16<<2)&p)+120>>2]|0}C=b[(E+(C<<16>>16<<1)&o)+78>>1]|0;A=c[(J&p)+56>>2]|0;if(C<<16>>16==(b[(J&o)+18>>1]|0)){g=d[(J&n)+6>>0]|0;g=rm(E,d[(A+g&n)+9>>0]<<16|d[(A+g&n)+8>>0]<<24|d[(A+g&n)+10>>0]<<8|d[(A+g&n)+11>>0])|0}else{g=(C&65535)<<1;V=c[(J&p)+64>>2]|0;g=(d[(V+g&n)>>0]<<8|d[(V+(g|1)&n)>>0])&e[(J&o)+20>>1];g=rm(E,d[(A+g&n)+1>>0]<<16|d[(A+g&n)>>0]<<24|d[(A+g&n)+2>>0]<<8|d[(A+g&n)+3>>0])|0}if(g){v=0;u=0;break f}}g=qm(E)|0}else{v=0;u=0}}else{g=0;v=0;u=0}while(0);C=L;c[(C&p)>>2]=v;c[(C&p)+4>>2]=u;C=L;T=t;u=g;break}case 2:{O=c[(s+(t*20|0)&p)+4>>2]|0;v=c[(s+(t*20|0)&p)+16>>2]|0;if(!O){g=m;m=r;r=t;ie=446;break d}g=c[(Pb&p)>>2]|0;if(!g){s=v;g=m;m=r;u=x;ie=460;break c}else u=0;while(1){if(!(dd(c[(g&p)>>2]|0,v)|0)){M=g;break}g=c[(g&p)+24>>2]|0;if(!g){s=v;g=m;m=r;u=x;ie=460;break c}else u=u+1|0}H=(O|0)==1;if((c[(ae&p)>>2]|0)>0&H){g=m;m=r;u=x;ie=462;break c}F=M+24|0;if(!(c[(F&p)>>2]|0)){A=(a[(Sb&n)>>0]|0)!=0;if(A&H){g=tm(f,1)|0;if(g)break a;a[(ee&n)>>0]=1;if((Rl(f)|0)==5){g=t;ie=467;break c}a[(Sb&n)>>0]=0;A=1;K=u;u=c[(me&p)>>2]|0}else ie=469}else{A=0;ie=469}if((ie|0)==469){ie=0;K=(c[(Ob&p)>>2]|0)-u+-1|0;if((O|0)==2){C=(c[(Tb&p)>>2]|0)>>>1&1;if((c[(Ub&p)>>2]|0)>0){J=C^1;I=0;while(1){u=Il(c[((c[(Xd&p)>>2]|0)+(I<<4)&p)+4>>2]|0,516,J)|0;I=I+1|0;if(u){g=m;m=r;ie=1318;break c}g=c[(Ub&p)>>2]|0;if((I|0)>=(g|0)){ie=475;break}}}}else{g=c[(Ub&p)>>2]|0;C=0;ie=475}if((ie|0)==475){ie=0;if((g|0)>0){E=0;do{u=um(c[((c[(Xd&p)>>2]|0)+(E<<4)&p)+4>>2]|0,O,K)|0;E=E+1|0;if(u){g=m;m=r;ie=1318;break c}}while((E|0)<(c[(Ub&p)>>2]|0))}}if(!C)u=0;else{C=c[(Vb&p)>>2]|0;if(C)do{V=C+88|0;b[(V&o)>>1]=b[(V&o)>>1]|8;C=c[(C&p)+52>>2]|0}while((C|0)!=0);Eg(le);c[(Tb&p)>>2]=c[(Tb&p)>>2]|2;u=0}}C=c[(Pb&p)>>2]|0;if((C|0)!=(M|0))do{c[(Pb&p)>>2]=c[(C&p)+24>>2];mg(le,C);c[(Ob&p)>>2]=(c[(Ob&p)>>2]|0)+-1;C=c[(Pb&p)>>2]|0}while((C|0)!=(M|0));if(H){c[(Pb&p)>>2]=c[(F&p)>>2];mg(le,M);if(A){C=L;T=t;break e}else{g=m;C=O;m=r;A=K;E=L;r=t;ie=486;break d}}else{V=M+8|0;U=c[(V&p)+4>>2]|0;T=Qb;c[(T&p)>>2]=c[(V&p)>>2];c[(T&p)+4>>2]=U;T=M+16|0;U=c[(T&p)+4>>2]|0;V=Rb;c[(V&p)>>2]=c[(T&p)>>2];c[(V&p)+4>>2]=U;if(A){C=L;T=t;break e}else{C=O;g=m;m=r;A=K;E=L;r=t;ie=488;break d}}}case 3:{u=x;ie=489;break c}case 4:{v=s+(t*20|0)+8|0;g=c[(v&p)>>2]|0;if((g|0)!=0?(c[(Tb&p)>>2]&33554432|0)!=0:0){g=m;m=r;u=8;ie=1318;break c}I=s+(t*20|0)+4|0;J=c[((c[(Xd&p)>>2]|0)+(c[(I&p)>>2]<<4)&p)+4>>2]|0;if(!J){v=0;u=0;g=0}else{u=yg(J,g)|0;if((u|0)==5){g=t;ie=508;break c}else if(u){g=m;m=r;ie=1318;break c}do if((c[(v&p)>>2]|0)!=0?(b[(Yd&o)>>1]&32)!=0:0){if((a[(ee&n)>>0]|0)!=0?(c[(Zb&p)>>2]|0)<=1:0){g=0;break}g=c[(Wb&p)>>2]|0;if(!g){g=(c[(Nb&p)>>2]|0)+1|0;c[(Nb&p)>>2]=g;g=(c[(Ob&p)>>2]|0)+g|0;c[(Wb&p)>>2]=g}g=sm(le,0,g+-1|0)|0;if(!g){g=c[(Wb&p)>>2]|0;V=c[(J&p)+4>>2]|0;c[(V&p)+4>>2]=c[(J&p)>>2];g=hl(c[(V&p)>>2]|0,g)|0}V=Qb;U=c[(V&p)+4>>2]|0;T=Xb;c[(T&p)>>2]=c[(V&p)>>2];c[(T&p)+4>>2]=U;T=Rb;U=c[(T&p)+4>>2]|0;V=Yb;c[(V&p)>>2]=c[(T&p)>>2];c[(V&p)+4>>2]=U}else g=0;while(0);v=c[(J&p)+4>>2]|0;c[(v&p)+4>>2]=c[(J&p)>>2];v=c[((c[(v&p)+12>>2]|0)&p)+56>>2]|0;v=d[(v&n)+41>>0]<<16|d[(v&n)+40>>0]<<24|d[(v&n)+42>>0]<<8|d[(v&n)+43>>0];u=c[((c[((c[(Xd&p)>>2]|0)+(c[(I&p)>>2]<<4)&p)+12>>2]|0)&p)+4>>2]|0}if(a[(s+(t*20|0)&n)+3>>0]|0){if((v|0)!=(c[(s+(t*20|0)&p)+12>>2]|0)){g=m;s=I;m=r;u=x;ie=522;break c}if((u|0)!=(c[(s+(t*20|0)&p)+16>>2]|0)){g=m;s=I;m=r;u=x;ie=522;break c}else{C=L;T=t;u=g}}else{C=L;T=t;u=g}break}case 53:{g=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;if((g|0)!=0?(c[(g&p)+28>>2]|0)==(c[(s+(t*20|0)&p)+8>>2]|0):0){v=s+(t*20|0)+3|0;u=0;ie=548}else ie=536;break}case 51:{g=m;m=r;u=L;r=t;ie=525;break d}case 52:{A=s+(t*20|0)+4|0;g=c[(A&p)>>2]|0;v=c[(Xd&p)>>2]|0;C=c[(s+(t*20|0)&p)+12>>2]|0;w=z+(C*40|0)|0;u=Vg(w)|0;V=w;c[(V&p)>>2]=u;c[(V&p)+4>>2]=G;C=z+(C*40|0)+8|0;b[(C&o)>>1]=e[(C&o)>>1]&48640|4;C=s+(t*20|0)+8|0;u=Dg(c[(v+(g<<4)&p)+4>>2]|0,c[(C&p)>>2]|0,u)|0;C=c[(C&p)>>2]|0;if((C|0)==1){c[(c[(v+(g<<4)&p)+12>>2]&p)>>2]=c[(w&p)>>2];c[(Tb&p)>>2]=c[(Tb&p)>>2]|2}else if((C|0)==2)a[((c[(v+(g<<4)&p)+12>>2]|0)&n)+76>>0]=c[(w&p)>>2];if((c[(A&p)>>2]|0)==1){g=c[(Vb&p)>>2]|0;if(g)do{V=g+88|0;b[(V&o)>>1]=b[(V&o)>>1]|8;g=c[(g&p)+52>>2]|0}while((g|0)!=0);b[(Yd&o)>>1]=b[(Yd&o)>>1]&-9;C=L;T=t}else{C=L;T=t}break}case 55:case 54:{ie=536;break}case 57:case 56:{g=xm(f,c[(s+(t*20|0)&p)+4>>2]|0,c[(s+(t*20|0)&p)+8>>2]|0,-1,1)|0;if(!g){y=ge;z=je;g=m;m=x;ie=1317;break a}a[(g&n)+25>>0]=1;J=g+27|0;a[(J&n)>>0]=a[(J&n)>>0]|1;v=g+4|0;I=s+(t*20|0)+3|0;u=zm(c[(le&p)>>2]|0,0,le,v,d[(I&n)>>0]|5,1054)|0;do if(!u){u=yg(c[(v&p)>>2]|0,1)|0;if(!u){A=c[(s+(t*20|0)&p)+16>>2]|0;C=c[(v&p)>>2]|0;if(!A){u=ym(C,1,1,0,c[(g&p)>>2]|0)|0;a[(J&n)>>0]=a[(J&n)>>0]|4;break}u=Am(C,ud,d[(I&n)>>0]|2)|0;if(!u){c[(g&p)+8>>2]=A;u=ym(c[(v&p)>>2]|0,c[(ud&p)>>2]|0,1,A,c[(g&p)>>2]|0)|0}a[(J&n)>>0]=a[(J&n)>>0]&-5}}while(0);a[(J&n)>>0]=((a[(I&n)>>0]|0)!=8&1)<<3&255|a[(J&n)>>0]&-9;C=L;T=t;break}case 58:{g=m;m=r;ie=558;break d}case 60:{g=m;m=r;u=L;ie=568;break d}case 61:{g=m;m=r;u=L;r=t;ie=570;break d}case 59:{g=m;m=r;u=L;r=t;ie=566;break d}case 65:case 64:case 63:case 62:{g=m;K=u;m=r;r=t;ie=571;break d}case 66:{g=m;m=r;u=L;r=t;ie=596;break d}case 69:case 68:case 67:{g=m;H=C;m=r;u=L;ie=597;break d}case 73:{g=m;m=r;u=L;r=t;ie=624;break d}case 70:{V=c[(s+(t*20|0)&p)+12>>2]|0;g=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;u=c[(g&p)>>2]|0;c[(Cd&p)>>2]=0;V=z+(V*40|0)|0;U=c[(V&p)>>2]|0;V=c[(V&p)+4>>2]|0;u=Cm(u,0,U,V,0,Cd)|0;v=g+48|0;c[(v&p)>>2]=U;c[(v&p)+4>>2]=V;a[(g&n)+25>>0]=0;c[(g&p)+60>>2]=0;a[(g&n)+26>>0]=0;v=c[(Cd&p)>>2]|0;if(v)t=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;c[(g&p)+12>>2]=v;C=L;T=t;break}case 74:{H=Pd;c[(H&p)>>2]=0;c[(H&p)+4>>2]=0;c[(Dd&p)>>2]=0;H=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;g=c[(H&p)>>2]|0;if(!g){u=0;v=0;g=0}else{K=H+27|0;do if(!(a[(K&n)>>0]&2)){u=Hm(g,Dd)|0;if(u){g=m;m=r;ie=1318;break c}if(c[(Dd&p)>>2]|0){V=Pd;c[(V&p)>>2]=1;c[(V&p)+4>>2]=0;break}km(c[(H&p)>>2]|0,Pd);u=Pd;g=c[(u&p)>>2]|0;u=c[(u&p)+4>>2]|0;if((g|0)==-1&(u|0)==2147483647){a[(K&n)>>0]=a[(K&n)>>0]|2;break}else{U=jw(g|0,u|0,1,0)|0;V=Pd;c[(V&p)>>2]=U;c[(V&p)+4>>2]=G;break}}while(0);J=c[(s+(t*20|0)&p)+12>>2]|0;if(J){g=c[(sb&p)>>2]|0;if(!g)C=z;else{while(1){u=c[(g&p)+4>>2]|0;if(!u)break;else g=u}C=c[(g&p)+16>>2]|0}I=C+(J*40|0)|0;A=Vg(I)|0;g=G;V=I;c[(V&p)>>2]=A;c[(V&p)+4>>2]=g;V=C+(J*40|0)+8|0;b[(V&o)>>1]=e[(V&o)>>1]&48640|4;if((A|0)==-1&(g|0)==2147483647){g=m;m=r;u=13;ie=1318;break c}if(a[(K&n)>>0]&2){g=m;m=r;u=13;ie=1318;break c}J=Pd;u=c[(J&p)>>2]|0;J=c[(J&p)+4>>2]|0;C=jw(A|0,g|0,1,0)|0;g=G;if((J|0)<(g|0)|(J|0)==(g|0)&u>>>0>>0){V=Pd;c[(V&p)>>2]=C;c[(V&p)+4>>2]=g}else{C=u;g=J}V=I;c[(V&p)>>2]=C;c[(V&p)+4>>2]=g}h:do if(!(a[(K&n)>>0]&2))g=0;else{u=0;while(1){cd(8,Pd);V=Pd;V=jw(c[(V&p)>>2]|0,c[(V&p)+4>>2]&1073741823|0,1,0)|0;g=G;U=Pd;c[(U&p)>>2]=V;c[(U&p)+4>>2]=g;g=Cm(c[(H&p)>>2]|0,0,V,g,0,Dd)|0;if(c[(Dd&p)>>2]|g)break h;u=u+1|0;if((u|0)>=100){g=m;m=r;u=13;ie=1318;break c}}}while(0);a[(H&n)+26>>0]=0;c[(H&p)+60>>2]=0;v=Pd;u=c[(v&p)>>2]|0;v=c[(v&p)+4>>2]|0}C=L;c[(C&p)>>2]=u;c[(C&p)+4>>2]=v;C=L;T=t;u=g;break}case 84:case 75:{g=m;C=J;m=r;u=L;r=t;ie=647;break d}case 95:{g=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;u=Jm(c[(g&p)>>2]|0)|0;c[(g&p)+60>>2]=0;if((((u|0)==0?(Gc=c[(gc&p)>>2]|0,(Gc|0)!=0):0)?(Hc=c[(s+(t*20|0)&p)+16>>2]|0,(Hc|0)!=0):0)?(a[(g&n)+27>>0]&4)!=0:0){V=g+48|0;bc[Gc&1](c[(hc&p)>>2]|0,9,c[((c[(Xd&p)>>2]|0)+(a[(g&n)+24>>0]<<4)&p)>>2]|0,Hc,c[(V&p)>>2]|0,c[(V&p)+4>>2]|0)}if(!(c[(s+(t*20|0)&p)+8>>2]&1)){C=L;T=t}else{c[(ub&p)>>2]=(c[(ub&p)>>2]|0)+1;C=L;T=t}break}case 98:{g=m;m=r;u=L;r=t;ie=671;break d}case 99:{g=m;m=r;u=L;r=t;ie=672;break d}case 100:{v=c[(s+(t*20|0)&p)+8>>2]|0;C=z+(v*40|0)|0;g=c[((c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0)&p)+56>>2]|0;if(!(a[(g&n)+56>>0]|0)){u=c[(g&p)+36>>2]|0;g=u;u=u+8|0}else{V=c[(g&p)+20>>2]|0;u=c[((c[(V&p)+8>>2]|0)&p)+4>>2]|0;V=c[(V&p)+12>>2]|0;g=V+(u*56|0)+20|0;u=c[(V+(u*56|0)&p)+32>>2]|0}g=c[(g&p)>>2]|0;if(!(fh(C,g)|0)){c[(z+(v*40|0)&p)+12>>2]=g;V=z+(v*40|0)+8|0;b[(V&o)>>1]=e[(V&o)>>1]&48640|16;kw(c[(z+(v*40|0)&p)+16>>2]|0,u|0,g|0)|0;u=0}else u=7;c[((c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+12>>2]<<2)&p)>>2]|0)&p)+60>>2]=0;T=t;break}case 102:case 101:{v=c[(s+(t*20|0)&p)+8>>2]|0;J=z+(v*40|0)|0;A=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;C=c[(A&p)>>2]|0;A=A+27|0;if(a[(A&n)>>0]&4){lm(C,ed);g=c[(ed&p)>>2]|0;if(g>>>0>(c[(zb&p)>>2]|0)>>>0){g=m;m=r;u=x;ie=1316;break c}}else{km(C,fd);T=fd;g=c[(T&p)>>2]|0;T=c[(T&p)+4>>2]|0;V=c[(zb&p)>>2]|0;U=((V|0)<0)<<31>>31;if((T|0)>(U|0)|(T|0)==(U|0)&g>>>0>V>>>0){g=m;m=r;u=x;ie=1316;break c}c[(ed&p)>>2]=g}if(fh(J,g>>>0>32?g:32)|0){y=ge;z=je;g=m;m=x;ie=1317;break a}c[(z+(v*40|0)&p)+12>>2]=g;g=z+(v*40|0)+8|0;b[(g&o)>>1]=e[(g&o)>>1]&48640|16;g=c[(ed&p)>>2]|0;u=c[(z+(v*40|0)&p)+16>>2]|0;if(!(a[(A&n)>>0]&4))u=Lm(C,0,g,u,0)|0;else u=Dh(C,0,g,u)|0;a[(z+(v*40|0)&n)+10>>0]=1;C=J;T=t;break}case 103:{v=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;w=v+25|0;if(a[(w&n)>>0]|0){g=m;m=r;u=L;r=t;ie=700;break d}do if(!(a[(v&n)+26>>0]|0)){g=c[(v&p)+32>>2]|0;if(g){V=c[(g&p)>>2]|0;u=rc[c[((c[(V&p)>>2]|0)&p)+48>>2]&127](g,Rd)|0;Mm(f,V);break}if((a[((c[(v&p)>>2]|0)&n)+73>>0]|0)!=1){u=jm(v)|0;if(u){g=m;m=r;ie=1318;break c}if(a[(w&n)>>0]|0){g=m;m=r;u=L;r=t;ie=708;break d}}km(c[(v&p)>>2]|0,Rd);u=0}else{U=v+48|0;V=c[(U&p)+4>>2]|0;u=Rd;c[(u&p)>>2]=c[(U&p)>>2];c[(u&p)+4>>2]=V;u=0}while(0);V=Rd;T=c[(V&p)+4>>2]|0;C=L;c[(C&p)>>2]=c[(V&p)>>2];c[(C&p)+4>>2]=T;C=L;T=t;break}case 108:{ie=715;break}case 104:{g=m;m=r;u=L;r=t;ie=711;break d}case 107:case 106:{c[(ic&p)>>2]=(c[(ic&p)>>2]|0)+1;ie=715;break}case 105:{T=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;u=c[(T&p)>>2]|0;c[(Ed&p)>>2]=0;u=Hm(u,Ed)|0;V=c[(Ed&p)>>2]|0;a[(T&n)+25>>0]=V;a[(T&n)+26>>0]=0;c[(T&p)+60>>2]=0;T=c[(s+(t*20|0)&p)+8>>2]|0;C=L;T=(T|0)>0&(V|0)!=0?T+-1|0:t;break}case 7:case 6:{if(!(c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0)){g=m;m=r;S=z;T=s;U=W;V=X;u=L;r=t;break d}else ie=765;break}case 5:{g=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;c[(Fd&p)>>2]=0;w=c[(g&p)+56>>2]|0;if(a[(w&n)+56>>0]|0){u=Wm(c[(w&p)+20>>2]|0,Fd)|0;ie=766;break e}u=w+36|0;v=c[(u&p)>>2]|0;V=v+4|0;c[(u&p)>>2]=c[(V&p)>>2];c[(V&p)>>2]=0;if(!((c[(w&p)+40>>2]|0)!=0|(v|0)==0))mg(le,v);c[(Fd&p)>>2]=(c[(u&p)>>2]|0)==0&1;u=0;ie=766;break}case 9:case 8:{ie=765;break}case 110:case 109:{A=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;S=c[(s+(t*20|0)&p)+8>>2]|0;u=c[(A&p)>>2]|0;C=s+(t*20|0)+3|0;if(a[(C&n)>>0]&1)c[(ub&p)>>2]=(c[(ub&p)>>2]|0)+1;if((b[(z+(S*40|0)&o)+8>>1]&16384)!=0?(Ud=Rg(z+(S*40|0)|0)|0,(Ud|0)!=0):0){g=m;m=r;s=Ud;u=x;ie=1309;break c}H=c[(A&p)+56>>2]|0;T=z+(S*40|0)+12|0;P=c[(T&p)>>2]|0;if(!H){if(!(a[(C&n)>>0]&16))g=0;else g=c[(A&p)+12>>2]|0;u=Im(u,c[(z+(S*40|0)&p)+16>>2]|0,P,((P|0)<0)<<31>>31,10360,0,0,c[(s+(t*20|0)&p)+12>>2]|0,g)|0;c[(A&p)+60>>2]=0;C=L;T=t;break e}C=P;g=((P|0)<0)<<31>>31;A=0;do{A=A+1|0;C=mw(C|0,g|0,7)|0;g=G}while(((C|0)!=0|(g|0)!=0)&(A|0)<9);K=P+8|0;I=A+P|0;M=H+4|0;A=c[(M&p)>>2]|0;do if(!A)u=0;else{if(!(c[(H&p)+40>>2]|0)){C=H+44|0;V=c[(C&p)>>2]|0;if((V|0)<=(A|0)?!((c[2265]|0)!=0?(V|0)>(c[(H&p)>>2]|0):0):0){u=0;break}}else{V=c[(H&p)+48>>2]|0;if(!((V|0)!=0&(V+K|0)>(A|0))){u=0;break}C=H+44|0}u=Om(H)|0;c[(C&p)>>2]=0;c[(H&p)+48>>2]=0}while(0);C=H+36|0;J=H+44|0;c[(J&p)>>2]=(c[(J&p)>>2]|0)+I;J=H+8|0;if((I|0)>(c[(J&p)>>2]|0))c[(J&p)>>2]=I;E=H+40|0;J=c[(E&p)>>2]|0;if(!J){g=qg(K,((K|0)<0)<<31>>31)|0;if(!g){g=m;m=r;s=7;u=x;ie=1309;break c}c[(g&p)+4>>2]=c[(C&p)>>2]}else{g=H+48|0;I=c[(g&p)>>2]|0;K=I+K|0;F=H+52|0;H=c[(F&p)>>2]|0;if((K|0)>(H|0)){I=H;do I=I<<1;while((I|0)<(K|0));V=c[(M&p)>>2]|0;I=(I|0)>(V|0)?V:I;I=(I|0)<(K|0)?K:I;J=rg(J,I,((I|0)<0)<<31>>31)|0;if(!J){g=m;m=r;s=7;u=x;ie=1309;break c}A=J+((c[(C&p)>>2]|0)-(c[(E&p)>>2]|0))|0;c[(C&p)>>2]=A;c[(E&p)>>2]=J;c[(F&p)>>2]=I;I=c[(g&p)>>2]|0}else A=c[(C&p)>>2]|0;c[(g&p)>>2]=I+(P+15&-8);c[(J+I&p)+4>>2]=A-J;g=J+I|0}kw(g+8|0,c[(z+(S*40|0)&p)+16>>2]|0,c[(T&p)>>2]|0)|0;c[(g&p)>>2]=c[(T&p)>>2];c[(C&p)>>2]=g;C=L;T=t;break}case 112:{g=m;m=r;r=t;ie=801;break d}case 111:{v=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;g=c[(v&p)>>2]|0;c[(yd&p)>>2]=c[(v&p)+8>>2];b[(kc&o)>>1]=c[(s+(t*20|0)&p)+12>>2];a[(nc&n)>>0]=0;c[(oc&p)>>2]=z+((c[(s+(t*20|0)&p)+8>>2]|0)*40|0);u=Cm(g,yd,0,0,0,Gd)|0;if(!(c[(Gd&p)>>2]|u))u=Jm(g)|0;c[(v&p)+60>>2]=0;C=L;T=t;break}case 116:case 115:case 114:case 113:{u=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;c[(zd&p)>>2]=c[(u&p)+8>>2];b[(xc&o)>>1]=c[(s+(t*20|0)&p)+16>>2];a[(Y&n)>>0]=((J&255)<115)<<31>>31;c[(Z&p)>>2]=z+((c[(s+(t*20|0)&p)+12>>2]|0)*40|0);V=Sd;c[(V&p)>>2]=0;c[(V&p)+4>>2]=0;km(c[(u&p)>>2]|0,Sd);V=Sd;g=c[(V&p)>>2]|0;V=jw(g|0,c[(V&p)+4>>2]|0,-1,-1)|0;U=G;if(!(U>>>0>0|(U|0)==0&V>>>0>2147483646)){b[(_&o)>>1]=0;c[($&p)>>2]=le;c[(aa&p)>>2]=0;g=nm(c[(u&p)>>2]|0,0,g,1,qd)|0;if(!g){u=Km(c[(ea&p)>>2]|0,c[(ga&p)>>2]|0,zd,0)|0;if((b[(_&o)>>1]&9312)==0&(c[(aa&p)>>2]|0)==0)g=0;else{Qg(qd);g=0}}else u=0}else{c[(ke&p)>>2]=68730;c[(ke&p)+4>>2]=10788;bd(11,13600,ke);g=11;u=0}if((((a[(C&n)>>0]&1)==0?u+1|0:0-u|0)|0)>0){C=L;T=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;u=g}else{C=L;T=t;u=g}break}case 117:{O=L+8|0;b[(O&o)>>1]=1;if((c[(Zb&p)>>2]|0)>((c[(ha&p)>>2]|0)+1|0)){g=m;m=r;u=x;ie=832;break c}N=c[(s+(t*20|0)&p)+12>>2]|0;M=c[((c[(Xd&p)>>2]|0)+(N<<4)&p)+4>>2]|0;P=s+(t*20|0)+4|0;I=c[(P&p)>>2]|0;C=M+4|0;K=c[(C&p)>>2]|0;c[(K&p)+4>>2]=c[(M&p)>>2];c[(ke&p)>>2]=0;do if(!(c[(K&p)+8>>2]|0)){u=dl(K,I,ke,0)|0;if(!u){u=Xm(M,I,0)|0;if(u){g=c[(ke&p)>>2]|0;if(!g){A=0;break}Bg(c[(g&p)+68>>2]|0);A=0;break}if(I>>>0<=1){g=c[(ke&p)>>2]|0;pl(g,9);if(!g){u=0;A=0;break}Bg(c[(g&p)+68>>2]|0);u=0;A=0;break}if(!(a[(K&n)+17>>0]|0)){g=c[(ke&p)>>2]|0;u=Ym(c[(g&p)+52>>2]|0,g,c[(g&p)+72>>2]|0)|0;if(!g){A=0;break}Bg(c[(g&p)+68>>2]|0);A=0;break}J=c[(C&p)>>2]|0;c[(J&p)+4>>2]=c[(M&p)>>2];J=c[((c[(J&p)+12>>2]|0)&p)+56>>2]|0;J=d[(J&n)+53>>0]<<16|d[(J&n)+52>>0]<<24|d[(J&n)+54>>0]<<8|d[(J&n)+55>>0];C=c[(ke&p)>>2]|0;if((J|0)==(I|0)){u=Ym(c[(C&p)+52>>2]|0,C,c[(C&p)+72>>2]|0)|0;if(C)Bg(c[(C&p)+68>>2]|0);if(!u)A=0;else{A=0;break}}else{if(C)Bg(c[(C&p)+68>>2]|0);u=dl(K,J,Sd,0)|0;if(u){A=0;break}C=c[(Sd&p)>>2]|0;u=Zm(K,C,1,0,I,0)|0;if(C)Bg(c[(C&p)+68>>2]|0);if(u){A=0;break}c[(Sd&p)>>2]=0;u=dl(K,J,Sd,0)|0;C=c[(Sd&p)>>2]|0;if(u){if(!C){A=0;break}}else u=Ym(c[(C&p)+52>>2]|0,C,c[(C&p)+72>>2]|0)|0;Bg(c[(C&p)+68>>2]|0);if(!u)A=J;else{A=0;break}}H=((c[2514]|0)>>>0)/((c[(K&p)+32>>2]|0)>>>0)|0;F=H+1|0;I=K+36|0;while(1){C=J+-1|0;if((C|0)==(F|0)){J=C;continue}if(C>>>0<2)E=0;else{E=J+-3|0;E=E-((E>>>0)%(((((c[(I&p)>>2]|0)>>>0)/5|0)+1|0)>>>0)|0)|0;E=((E+1|0)==(H|0)?3:2)+E|0}if((E|0)==(C|0))J=C;else break}u=Dg(M,4,C)|0}else A=0}else{u=262;A=0}while(0);b[(O&o)>>1]=4;V=L;c[(V&p)>>2]=A;c[(V&p)+4>>2]=((A|0)<0)<<31>>31;if((u|0)==0&(A|0)!=0){g=m;K=N;C=P;m=r;u=L;r=t;ie=865;break d}else{C=L;T=t}break}case 118:{c[(jd&p)>>2]=0;g=s+(t*20|0)+12|0;u=Xm(c[((c[(Xd&p)>>2]|0)+(c[(s+(t*20|0)&p)+8>>2]<<4)&p)+4>>2]|0,c[(s+(t*20|0)&p)+4>>2]|0,(c[(g&p)>>2]|0)!=0?jd:0)|0;g=c[(g&p)>>2]|0;if((g|0)!=0?(Ic=c[(jd&p)>>2]|0,c[(ub&p)>>2]=(c[(ub&p)>>2]|0)+Ic,(g|0)>0):0){C=z+(g*40|0)|0;T=C;T=jw(c[(T&p)>>2]|0,c[(T&p)+4>>2]|0,Ic|0,((Ic|0)<0)<<31>>31|0)|0;c[(C&p)>>2]=T;c[(C&p)+4>>2]=G;C=L;T=t}else{C=L;T=t}break}case 121:case 120:{c[(vd&p)>>2]=0;u=Am(c[((c[(Xd&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<4)&p)+4>>2]|0,vd,J<<24>>24==121?1:2)|0;T=c[(vd&p)>>2]|0;C=L;c[(C&p)>>2]=T;c[(C&p)+4>>2]=((T|0)<0)<<31>>31;C=L;T=t;break}case 119:{g=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;u=c[(g&p)+56>>2]|0;if(u){g=m;m=r;J=L;r=t;ie=878;break d}u=c[(g&p)>>2]|0;C=L;T=t;u=Xm(c[(u&p)>>2]|0,c[(u&p)+60>>2]|0,0)|0;break}case 123:{C=L;T=t;u=an(le,c[(s+(t*20|0)&p)+4>>2]|0)|0;break}case 124:{g=m;m=r;u=L;r=t;ie=886;break d}case 122:{g=m;m=r;J=L;r=t;ie=881;break d}case 126:{g=m;m=r;u=L;r=t;ie=895;break d}case 125:{g=m;m=r;J=L;r=t;ie=887;break d}case 127:{g=m;m=r;u=L;ie=903;break d}case 128:{g=m;m=r;J=L;ie=947;break d}case 129:{w=c[(s+(t*20|0)&p)+4>>2]|0;v=z+(w*40|0)|0;w=z+(w*40|0)+8|0;g=b[(w&o)>>1]|0;do if(g&32){E=c[(v&p)>>2]|0;u=E+26|0;g=b[(u&o)>>1]|0;if(!(g&2)){if(!(g&1)){g=E+8|0;c[(g&p)>>2]=kn(c[(g&p)>>2]|0)|0;g=b[(u&o)>>1]|0}b[(u&o)>>1]=g&65535|2}C=E+8|0;A=c[(C&p)>>2]|0;if(!A){g=b[(w&o)>>1]|0;break}w=A;v=c[(w&p)>>2]|0;w=c[(w&p)+4>>2]|0;V=c[(A&p)+8>>2]|0;c[(C&p)>>2]=V;if(!V)Zk(E);u=c[(s+(t*20|0)&p)+12>>2]|0;g=z+(u*40|0)|0;u=z+(u*40|0)+8|0;if(!(b[(u&o)>>1]&9312)){ie=g;c[(ie&p)>>2]=v;c[(ie&p)+4>>2]=w;b[(u&o)>>1]=4;u=0;ie=19;break e}else{Zg(g,v,w);u=0;ie=19;break e}}while(0);if(!(g&9312))b[(w&o)>>1]=1;else vg(v);t=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;u=0;ie=19;break}case 130:{g=m;m=r;u=L;ie=966;break d}case 131:{g=m;m=r;u=L;r=t;ie=993;break d}case 132:{g=m;m=r;u=L;r=t;ie=1009;break d}case 134:{g=m;m=r;J=L;r=t;ie=1010;break d}case 135:{g=m;m=r;u=L;r=t;ie=1015;break d}case 136:{g=m;m=r;r=t;ie=1022;break d}case 137:{g=m;m=r;u=L;r=t;ie=1028;break d}case 138:{g=m;m=r;u=L;r=t;ie=1030;break d}case 139:{g=m;m=r;J=L;r=t;ie=1032;break d}case 140:{g=m;m=r;u=L;r=t;ie=1034;break d}case 141:{g=m;m=r;u=L;r=t;ie=1036;break d}case 10:{V=a[(s+(t*20|0)&n)+3>>0]|0;g=V&255;u=c[(Bb&p)>>2]|0;if(V<<24>>24){v=0;w=z+((c[(s+(t*20|0)&p)+8>>2]|0)*40|0)|0;while(1){c[(u+(v<<2)&p)>>2]=w;v=v+1|0;if((v|0)>=(g|0))break;else w=w+40|0}}V=c[(s+(t*20|0)&p)+16>>2]|0;c[(Ga&p)>>2]=V;U=c[(s+(t*20|0)&p)+12>>2]|0;c[(Ha&p)>>2]=z+(U*40|0);U=z+(U*40|0)+12|0;c[(U&p)>>2]=(c[(U&p)>>2]|0)+1;b[(Ia&o)>>1]=1;c[(Ja&p)>>2]=le;c[(Ka&p)>>2]=0;c[(Vc&p)>>2]=Md;c[(La&p)>>2]=0;c[(Ma&p)>>2]=f;c[(Na&p)>>2]=t;a[(Oa&n)>>0]=0;mc[c[(V&p)+16>>2]&63](Vc,g,u);if(!(c[(La&p)>>2]|0))u=0;else{c[(ke&p)>>2]=Sg(Md,1)|0;dh(je,le,10344,ke);u=c[(La&p)>>2]|0}do if((a[(Oa&n)>>0]|0)!=0?(Mc=c[(s+((t+-1|0)*20|0)&p)+4>>2]|0,(Mc|0)!=0):0){g=z+(Mc*40|0)|0;v=z+(Mc*40|0)+8|0;if(!(b[(v&o)>>1]&9312)){V=g;c[(V&p)>>2]=1;c[(V&p)+4>>2]=0;b[(v&o)>>1]=4;break}else{Zg(g,1,0);break}}while(0);if((b[(Ia&o)>>1]&9312)==0&(c[(Ka&p)>>2]|0)==0){C=L;T=t}else{Qg(Md);C=L;T=t}break}case 11:{c[(Rc&p)>>2]=0;c[(Pa&p)>>2]=-1;c[(Qa&p)>>2]=-1;g=Wh(le,c[(s+(t*20|0)&p)+4>>2]|0,c[(s+(t*20|0)&p)+8>>2]|0,Qa,Pa)|0;if((g|0)==5){c[(Rc&p)>>2]=1;g=0}v=0;w=z+((c[(s+(t*20|0)&p)+12>>2]|0)*40|0)|0;while(1){C=c[(Rc+(v<<2)&p)>>2]|0;A=((C|0)<0)<<31>>31;u=w+8|0;if(!(b[(u&o)>>1]&9312)){V=w;c[(V&p)>>2]=C;c[(V&p)+4>>2]=A;b[(u&o)>>1]=4}else Zg(w,C,A);v=v+1|0;if((v|0)==3){C=L;T=t;u=g;break}else w=w+40|0}break}case 142:{C=c[(s+(t*20|0)&p)+4>>2]|0;v=z+(C*40|0)|0;u=Yk(v,c[(s+(t*20|0)&p)+16>>2]|0)|0;if(u){c[(ke&p)>>2]=Sg(v,1)|0;dh(je,le,10344,ke)}Yl(v,xb)|0;w=e[(z+(C*40|0)&o)+8>>1]|0;if(w&18){g=c[(z+(C*40|0)&p)+12>>2]|0;if(w&16384)g=(c[(v&p)>>2]|0)+g|0;if((g|0)>(c[((c[(z+(C*40|0)&p)+32>>2]|0)&p)+88>>2]|0)){g=m;m=r;u=x;ie=1316;break c}else{C=L;T=t}}else{C=L;T=t}break}case 12:{g=c[(s+(t*20|0)&p)+12>>2]|0;L=c[((c[(Xd&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<4)&p)+4>>2]|0;I=c[(c[(L&p)+4>>2]&p)>>2]|0;J=a[(I&n)+5>>0]|0;H=J&255;g=(g|0)==-1?H:g;do if((d[(I&n)+16>>0]|0)>2)g=H;else if((c[(c[(I&p)+64>>2]&p)>>2]|0)!=0?(V=I+72|0,U=c[(V&p)+4>>2]|0,(U|0)>0|(U|0)==0&(c[(V&p)>>2]|0)>>>0>0):0){g=H;break}while(0);if(!(a[(I&n)+15>>0]|0))A=c[(I&p)+168>>2]|0;else A=10360;K=(g|0)==5;if(K)if(A){C=A;while(1)if(!(a[(C&n)>>0]|0))break;else C=C+1|0;if(C-A&1073741823){C=c[(c[(I&p)+60>>2]&p)>>2]|0;if(!(a[(I&n)+4>>0]|0))if((c[(C&p)>>2]|0)>1?!((c[(C&p)+52>>2]|0)==0|(g|0)==(H|0)):0)ie=1077;else{g=H;u=0}else ie=1076}else{g=H;u=0}}else{g=H;u=0}else ie=1076;if((ie|0)==1076){ie=0;if((g|0)==(H|0)){g=H;u=0}else ie=1077}do if((ie|0)==1077){ie=0;C=J<<24>>24==5;if(C|K){if(!(a[(ee&n)>>0]|0)){g=m;s=K;m=r;u=x;ie=1080;break c}if((c[(Zb&p)>>2]|0)>1){g=m;s=K;m=r;u=x;ie=1080;break c}if(!C){if(J<<24>>24==4)sn(I,2)|0}else{J=I+208|0;if(!(c[(J&p)>>2]|0)){c[(_c&p)>>2]=0;u=fl(I,1)|0;if(u)break;u=c[(I&p)>>2]|0;u=pc[c[(u&p)+32>>2]&31](u,c[(I&p)+212>>2]|0,0,_c)|0;if((u|0)==0&(c[(_c&p)>>2]|0)!=0)u=pn(I)|0;if(u)break;if(c[(J&p)>>2]|0)ie=1088}else ie=1088;if((ie|0)==1088){ie=0;u=qn(I)|0;if(u)break;u=rn(c[(J&p)>>2]|0,d[(I&n)+9>>0]|0,c[(I&p)+152>>2]|0,c[(I&p)+200>>2]|0)|0;c[(J&p)>>2]=0;if(u)break}sn(I,g)|0}u=Fg(L,K?2:1)|0}else u=0}while(0);g=sn(I,(u|0)==0?g:H)|0;C=c[(s+(t*20|0)&p)+8>>2]|0;J=z+(C*40|0)|0;b[(z+(C*40|0)&o)+8>>1]=2562;if((g|0)==6){c[(z+(C*40|0)&p)+16>>2]=0;g=0}else{v=c[(g<<2&p)+32216>>2]|0;c[(z+(C*40|0)&p)+16>>2]=v;g=v;while(1)if(!(a[(g&n)>>0]|0))break;else g=g+1|0;g=g-v&1073741823}c[(z+(C*40|0)&p)+12>>2]=g;a[(z+(C*40|0)&n)+10>>0]=1;Yl(J,xb)|0;C=J;T=t;break}case 13:{if(!(a[(ee&n)>>0]|0)){g=m;m=r;u=x;ie=1101;break c}if((c[(Ra&p)>>2]|0)>1){g=m;m=r;u=x;ie=1103;break c}S=c[(Tb&p)>>2]|0;N=c[(vb&p)>>2]|0;w=c[(wb&p)>>2]|0;v=c[(Sa&p)>>2]|0;c[(Tb&p)>>2]=S&-2762753|2107392;c[(Sa&p)>>2]=0;g=c[((c[(Xd&p)>>2]|0)&p)+4>>2]|0;P=g+4|0;I=a[((c[(c[(P&p)>>2]&p)>>2]|0)&n)+15>>0]|0;V=c[(Ub&p)>>2]|0;u=tn(le,je,(a[(_b&n)>>0]|0)==2?42432:42464)|0;J=c[(Ub&p)>>2]|0;if((J|0)>(V|0))M=(c[(Xd&p)>>2]|0)+(J+-1<<4)|0;else M=0;i:do if(!u){O=c[((c[(Xd&p)>>2]|0)+(J+-1<<4)&p)+4>>2]|0;un(O)|0;T=c[(P&p)>>2]|0;c[(T&p)+4>>2]=c[(g&p)>>2];T=(c[(T&p)+32>>2]|0)-(c[(T&p)+36>>2]|0)|0;u=tn(le,je,42488)|0;if(!u){u=tn(le,je,42528)|0;if(!u){u=yg(g,2)|0;if(!u){J=c[(P&p)>>2]|0;if((a[((c[(J&p)>>2]|0)&n)+5>>0]|0)==5)c[(Ta&p)>>2]=0;if(!(xg(O,c[(J&p)+32>>2]|0,T,0)|0)){if(I<<24>>24==0?(xg(O,c[(Ta&p)>>2]|0,T,0)|0)!=0:0){u=7;break}if(a[(ge&n)>>0]|0){u=7;break}J=a[(Ua&n)>>0]|0;do if(J<<24>>24>-1)J=J<<24>>24;else{J=c[(P&p)>>2]|0;c[(J&p)+4>>2]=c[(g&p)>>2];if(!(a[(J&n)+17>>0]|0)){J=0;break}J=(a[(J&n)+18>>0]|0)==0?1:2}while(0);vn(O,J)|0;u=wn(le,je,42536)|0;if(u)break;u=wn(le,je,42688)|0;if(u)break;u=wn(le,je,42792)|0;if(u)break;u=wn(le,je,42912)|0;if(u)break;u=wn(le,je,43112)|0;if(u)break;u=wn(le,je,43232)|0;if(u)break;u=tn(le,je,43392)|0;if(!u)J=0;else break;do{u=d[(J&n)+43576>>0]|0;wm(g,u,ad);u=Dg(O,u,(d[((J|1)&n)+43576>>0]|0)+(c[(ad&p)>>2]|0)|0)|0;J=J+2|0;if(u)break i}while((J|0)<10);H=c[(P&p)>>2]|0;c[(H&p)+4>>2]=c[(g&p)>>2];J=c[(O&p)>>2]|0;K=O+4|0;I=c[(K&p)>>2]|0;c[(I&p)+4>>2]=J;H=c[((c[(H&p)>>2]|0)&p)+60>>2]|0;F=c[(H&p)>>2]|0;if(F){V=c[(I&p)+32>>2]|0;V=sw(c[(I&p)+44>>2]|0,0,V|0,((V|0)<0)<<31>>31|0)|0;u=id;c[(u&p)>>2]=V;c[(u&p)+4>>2]=G;u=ac[c[(F&p)+40>>2]&63](H,11,id)|0;u=(u|0)==12?0:u;if(u)break;J=c[(O&p)>>2]|0}U=Tc+0|0;V=U+48|0;do{c[(U&p)>>2]=0;U=U+4|0}while((U|0)<(V|0));c[(Va&p)>>2]=J;c[(Wa&p)>>2]=O;c[(Xa&p)>>2]=g;c[(Ya&p)>>2]=1;gd(Tc,2147483647)|0;u=hd(Tc)|0;if(u){C=c[(c[((c[(Xa&p)>>2]|0)&p)+4>>2]&p)>>2]|0;if(a[(C&n)+15>>0]|0)break;if(a[(C&n)+12>>0]|0)break;xn(C);break}u=(c[(P&p)>>2]|0)+22|0;b[(u&o)>>1]=e[(u&o)>>1]&65533;u=un(O)|0;if(u)break;J=c[(K&p)>>2]|0;c[(J&p)+4>>2]=c[(O&p)>>2];if(!(a[(J&n)+17>>0]|0))E=0;else E=(a[(J&n)+18>>0]|0)==0?1:2;vn(g,E)|0;u=xg(g,c[((c[(K&p)>>2]|0)&p)+32>>2]|0,T,1)|0}else u=7}}}}while(0);c[(Tb&p)>>2]=S;c[(vb&p)>>2]=N;c[(wb&p)>>2]=w;c[(Sa&p)>>2]=v;xg(g,-1,-1,1)|0;a[(ee&n)>>0]=1;if(M){V=M+4|0;Ml(c[(V&p)>>2]|0);c[(V&p)>>2]=0;c[(M&p)+12>>2]=0}Eg(le);C=L;T=t;break}case 143:{V=c[((c[(Xd&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<4)&p)+4>>2]|0;I=c[(V&p)+4>>2]|0;c[(I&p)+4>>2]=c[(V&p)>>2];if(!(a[(I&n)+17>>0]|0)){g=m;m=r;u=L;ie=1157;break d}E=I+44|0;H=c[(E&p)>>2]|0;A=I+12|0;C=c[((c[(A&p)>>2]|0)&p)+56>>2]|0;C=d[(C&n)+37>>0]<<16|d[(C&n)+36>>0]<<24|d[(C&n)+38>>0]<<8|d[(C&n)+39>>0];F=El(I,H,C)|0;if(H>>>0>>0){g=m;m=r;u=x;ie=1145;break c}if(!C){g=m;m=r;u=L;ie=1157;break d}J=I+8|0;g=c[(J&p)>>2]|0;do if(g){C=g;do{if(C){ie=1150;break}C=c[2]|0}while((C|0)!=0);if((ie|0)==1150){ie=0;u=Fl(C,0,0)|0;if(u)break;g=c[(J&p)>>2]|0}if(g){do{V=g+72|0;a[(V&n)>>0]=d[(V&n)>>0]&251;g=c[(g&p)+8>>2]|0}while((g|0)!=0);ie=1154}else ie=1154}else ie=1154;while(0);if((ie|0)==1154){ie=0;u=Gl(I,F,H,0)|0;if(!u){u=Gg(c[((c[(A&p)>>2]|0)&p)+68>>2]|0)|0;V=c[((c[(A&p)>>2]|0)&p)+56>>2]|0;U=c[(E&p)>>2]|0;a[(V&n)+28>>0]=U>>>24;a[(V&n)+29>>0]=U>>>16;a[(V&n)+30>>0]=U>>>8;a[(V&n)+31>>0]=U}}if((u|0)==101){g=m;m=r;u=L;ie=1157;break d}else{C=L;T=t}break}case 145:{g=c[(s+(t*20|0)&p)+12>>2]|0;if((g&255|0)==0?(c[(Tb&p)>>2]&16384|0)!=0:0){g=m;m=r;S=z;T=s;U=W;V=X;u=L;r=t;break d}C=c[((c[(Xd&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<4)&p)+4>>2]|0;A=c[(s+(t*20|0)&p)+8>>2]|0;if(!(a[(C&n)+9>>0]|0)){g=m;m=r;S=z;T=s;U=W;V=X;u=L;r=t;break d}v=g+1&255;w=C+4|0;c[((c[(w&p)>>2]|0)&p)+4>>2]=c[(C&p)>>2];u=bl(C,A,v)|0;if(!u){g=m;m=r;u=L;r=t;ie=1166;break d}if((u&255|0)!=6){g=m;m=r;s=u;u=x;ie=1309;break c}c[(ke&p)>>2]=c[(s+(t*20|0)&p)+16>>2];dh(je,le,42224,ke);C=L;T=t;break}case 144:{g=m;m=r;u=L;r=t;ie=1158;break d}case 146:{J=c[(s+(t*20|0)&p)+16>>2]|0;v=c[(Za&p)>>2]|0;u=(v|0)>0;if(u?(c[(_a&p)>>2]|0)==0:0){u=6;ie=1188}else ie=1179;j:do if((ie|0)==1179){ie=0;if(!J){g=m;m=r;S=z;T=s;U=W;V=X;u=L;r=t;break d}g=J+8|0;w=(c[(c[(g&p)>>2]&p)>>2]|0)+56|0;if(c[(w&p)>>2]|0){if(u){C=c[(_a&p)>>2]|0;A=0;do{if((c[(C+(A<<2)&p)>>2]|0)==(J|0)){u=0;ie=1188;break j}A=A+1|0}while((A|0)<(v|0))}u=yn(le)|0;if(!u){u=lc[c[(w&p)>>2]&127](c[(g&p)>>2]|0)|0;if(!u){u=c[(Za&p)>>2]|0;c[(Za&p)>>2]=u+1;c[((c[(_a&p)>>2]|0)+(u<<2)&p)>>2]=J;u=J+12|0;c[(u&p)>>2]=(c[(u&p)>>2]|0)+1;u=0}}else ie=1188}else u=0}while(0);if((ie|0)==1188){ie=0;if(!J){C=L;T=t;break e}g=J+8|0}Mm(f,c[(g&p)>>2]|0);C=L;T=t;break}case 147:{U=Kd+0|0;V=U+40|0;do{c[(U&p)>>2]=0;U=U+4|0}while((U|0)<(V|0));c[($a&p)>>2]=le;g=_g(Kd,z+((c[(s+(t*20|0)&p)+8>>2]|0)*40|0)|0)|0;u=Sg(Kd,1)|0;k:do if(u){v=_h(le,u,c[((c[(Xd&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<4)&p)>>2]|0)|0;g=c[(c[(v&p)+56>>2]&p)>>2]|0;u=bn(cb,g,Xc)|0;if((u|0)!=0?(Oc=c[(u&p)+8>>2]|0,(Oc|0)!=0):0){g=zn(le,v,Oc,c[((c[(Oc&p)>>2]|0)&p)+4>>2]|0,je)|0;if(g)break;u=v+60|0;g=c[(u&p)>>2]|0;if(!g){g=0;break}while(1){if((c[(g&p)>>2]|0)==(le|0))break;g=c[(g&p)+24>>2]|0;if(!g){g=0;break k}}g=yn(le)|0;if(g)break;g=c[(u&p)>>2]|0;l:do if(!g)g=0;else while(1){if((c[(g&p)>>2]|0)==(le|0))break l;g=c[(g&p)+24>>2]|0;if(!g){g=0;break}}while(0);V=c[(Za&p)>>2]|0;c[(Za&p)>>2]=V+1;c[((c[(_a&p)>>2]|0)+(V<<2)&p)>>2]=g;g=g+12|0;c[(g&p)>>2]=(c[(g&p)>>2]|0)+1;g=0;break}c[(ke&p)>>2]=g;c[(je&p)>>2]=uh(le,28320,ke)|0;g=1}while(0);if((b[(ab&o)>>1]&9312)==0&(c[(bb&p)>>2]|0)==0){C=L;T=t;u=g}else{Qg(Kd);C=L;T=t;u=g}break}case 148:{c[(ha&p)>>2]=(c[(ha&p)>>2]|0)+1;g=_h(le,c[(s+(t*20|0)&p)+16>>2]|0,c[((c[(Xd&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<4)&p)>>2]|0)|0;m:do if((g|0)!=0?(Pc=g+60|0,Qc=c[(Pc&p)>>2]|0,(Qc|0)!=0):0){u=Qc;do{if((c[((c[(u&p)+8>>2]|0)&p)+4>>2]|0)>0){u=6;break m}u=c[(u&p)+24>>2]|0}while((u|0)!=0);g=Ok(le,g)|0;v=g+8|0;u=lc[c[((c[(c[(g&p)+4>>2]&p)>>2]|0)&p)+20>>2]&127](c[(v&p)>>2]|0)|0;if(!u){c[(v&p)>>2]=0;c[(Pc&p)>>2]=0;An(g);u=0}}else u=0;while(0);c[(ha&p)>>2]=(c[(ha&p)>>2]|0)+-1;C=L;T=t;break}case 149:{g=m;m=r;u=L;r=t;ie=1213;break d}case 150:{g=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;C=c[(s+(t*20|0)&p)+12>>2]|0;A=z+(C*40|0)|0;if(a[(g&n)+25>>0]|0){g=m;m=r;u=L;r=t;ie=1226;break d}V=g+32|0;u=c[(c[(V&p)>>2]&p)>>2]|0;U=c[(u&p)>>2]|0;c[(Id&p)>>2]=0;c[(Id&p)+4>>2]=0;c[(Id&p)+8>>2]=0;c[(Id&p)+12>>2]=0;c[(Id&p)+16>>2]=0;c[(Id&p)+20>>2]=0;c[(Id&p)+24>>2]=0;c[(Id&p)>>2]=A;v=z+(C*40|0)+8|0;b[(v&o)>>1]=e[(v&o)>>1]&48640|1;V=ac[c[(U&p)+44>>2]&63](c[(V&p)>>2]|0,Id,c[(s+(t*20|0)&p)+8>>2]|0)|0;Mm(f,u);u=c[(db&p)>>2]|0;u=(u|0)==0?V:u;Yl(A,xb)|0;v=e[(v&o)>>1]|0;if(v&18){g=c[(z+(C*40|0)&p)+12>>2]|0;if(v&16384)g=(c[(A&p)>>2]|0)+g|0;if((g|0)>(c[((c[(z+(C*40|0)&p)+32>>2]|0)&p)+88>>2]|0)){g=m;m=r;u=x;ie=1316;break c}else{C=L;T=t}}else{C=L;T=t}break}case 14:{A=c[(s+(t*20|0)&p)+12>>2]|0;C=A+1|0;F=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;J=c[(F&p)+32>>2]|0;I=c[(J&p)>>2]|0;H=c[(I&p)>>2]|0;E=c[(z+(C*40|0)&p)>>2]|0;A=c[(z+(A*40|0)&p)>>2]|0;g=c[(Bb&p)>>2]|0;if((E|0)>0){u=0;do{V=u;u=u+1|0;c[(g+(V<<2)&p)>>2]=z+((u+C|0)*40|0)}while((u|0)!=(E|0))}u=tc[c[(H&p)+32>>2]&31](J,A,c[(s+(t*20|0)&p)+16>>2]|0,E,g)|0;Mm(f,I);if((u|0)==0?(lc[c[(H&p)+40>>2]&127](J)|0)!=0:0)t=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;a[(F&n)+25>>0]=0;C=L;T=t;break}case 151:{g=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;if(a[(g&n)+25>>0]|0){g=m;m=r;S=z;T=s;U=W;V=X;u=L;r=t;break d}g=g+32|0;v=c[(g&p)>>2]|0;V=c[(v&p)>>2]|0;u=c[(V&p)>>2]|0;v=lc[c[(u&p)+36>>2]&127](v)|0;Mm(f,V);if((v|0)==0?(lc[c[(u&p)+40>>2]&127](c[(g&p)>>2]|0)|0)!=0:0){u=0;ie=19;break e}t=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;u=v;ie=19;break}case 15:{F=s+(t*20|0)+16|0;v=c[((c[(F&p)>>2]|0)&p)+8>>2]|0;if(!v){g=m;m=r;s=6;u=x;ie=1309;break c}g=c[(v&p)>>2]|0;if(!g){g=m;m=r;s=6;u=x;ie=1309;break c}I=c[(s+(t*20|0)&p)+8>>2]|0;E=g+52|0;C=c[(E&p)>>2]|0;if(!C){g=m;m=r;S=z;T=s;U=W;V=X;u=L;r=t;break d}H=a[(eb&n)>>0]|0;J=c[(Bb&p)>>2]|0;if((I|0)>0){C=0;A=z+((c[(s+(t*20|0)&p)+12>>2]|0)*40|0)|0;while(1){c[(J+(C<<2)&p)>>2]=A;C=C+1|0;if((C|0)==(I|0))break;else A=A+40|0}C=c[(E&p)>>2]|0}A=s+(t*20|0)+3|0;a[(eb&n)>>0]=a[(A&n)>>0]|0;u=pc[C&31](v,I,J,Hd)|0;a[(eb&n)>>0]=H;Mm(f,v);if(!u){if(c[(s+(t*20|0)&p)+4>>2]|0){l=Hd;r=c[(l&p)>>2]|0;l=c[(l&p)+4>>2]|0;V=ne;c[(V&p)>>2]=r;c[(V&p)+4>>2]=l}}else if((u&255|0)==19?(a[((c[(F&p)>>2]|0)&n)+16>>0]|0)!=0:0){g=a[(A&n)>>0]|0;if(g<<24>>24==5)g=2;else if(g<<24>>24==4){g=m;m=r;S=z;T=s;U=W;V=X;u=L;r=t;break d}a[(fe&n)>>0]=g;C=L;T=t;break e}c[(ub&p)>>2]=(c[(ub&p)>>2]|0)+1;C=L;T=t;break}case 152:{g=c[((c[(s+(t*20|0)&p)+16>>2]|0)&p)+8>>2]|0;u=c[(s+(t*20|0)&p)+4>>2]|0;v=z+(u*40|0)|0;if(((b[(z+(u*40|0)&o)+8>>1]&2)!=0?(a[(z+(u*40|0)&n)+10>>0]|0)!=1:0)?(Wd=Bn(v,1)|0,(Wd|0)!=0):0){g=m;m=r;s=Wd;u=x;ie=1309;break c}u=rc[c[((c[(g&p)>>2]|0)&p)+76>>2]&127](g,c[(z+(u*40|0)&p)+16>>2]|0)|0;Mm(f,g);b[(Yd&o)>>1]=b[(Yd&o)>>1]&-9;C=L;T=t;break}case 153:{g=m;m=r;u=L;r=t;ie=1257;break d}case 155:{g=m;m=r;ie=1264;break d}case 154:{g=m;m=r;J=L;r=t;ie=1258;break d}default:{g=m;m=r;S=z;T=s;U=W;V=X;u=L;r=t;break d}}while(0);n:do if((ie|0)==57){ie=0;w=L+8|0;b[(w&o)>>1]=2562;c[(L&p)+16>>2]=v;c[(L&p)+12>>2]=g;a[(L&n)+10>>0]=Jc;if((a[(s+(t*20|0)&n)+3>>0]|0)!=0?(V=z+((c[(s+(t*20|0)&p)+12>>2]|0)*40|0)|0,!((c[(V&p)>>2]|0)==0&(c[(V&p)+4>>2]|0)==0)):0){b[(w&o)>>1]=2576;C=L;T=t}else{C=L;T=t}}else if((ie|0)==536){if(b[(Yd&o)>>1]&8){g=m;m=r;s=516;u=x;ie=1309;break c}C=c[(s+(t*20|0)&p)+8>>2]|0;I=c[(s+(t*20|0)&p)+12>>2]|0;g=c[(Xd&p)>>2]|0;H=c[(g+(I<<4)&p)+4>>2]|0;if(J<<24>>24==55){g=a[((c[(g+(I<<4)&p)+12>>2]|0)&n)+76>>0]|0;if((g&255)<(d[(Mb&n)>>0]|0)){a[(Mb&n)>>0]=g;J=1}else J=1}else J=0;v=s+(t*20|0)+3|0;if(a[(v&n)>>0]&4){V=z+(C*40|0)|0;g=Vg(V)|0;c[(V&p)>>2]=g;c[(V&p)+4>>2]=G;V=z+(C*40|0)+8|0;b[(V&o)>>1]=e[(V&o)>>1]&48640|4;if((g|0)<2){g=m;m=r;s=x;ie=542;break c}else E=g}else E=C;u=s+(t*20|0)+1|0;C=a[(u&n)>>0]|0;if(C<<24>>24==-6){A=c[(s+(t*20|0)&p)+16>>2]|0;C=(e[(A&o)+8>>1]|0)+(e[(A&o)+6>>1]|0)|0}else if(C<<24>>24==-14){C=c[(s+(t*20|0)&p)+16>>2]|0;A=0}else{C=0;A=0}g=xm(f,c[(s+(t*20|0)&p)+4>>2]|0,C,I,1)|0;if(!g){y=ge;z=je;g=m;m=x;ie=1317;break a}a[(g&n)+25>>0]=1;V=g+27|0;a[(V&n)>>0]=a[(V&n)>>0]|8;c[(g&p)+28>>2]=E;ie=ym(H,E,J,A,c[(g&p)>>2]|0)|0;c[(g&p)+8>>2]=A;a[(V&n)>>0]=((a[(u&n)>>0]|0)!=-6&1)<<2&255|a[(V&n)>>0]&-5;u=ie;ie=548}else if((ie|0)==715){ie=0;M=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;V=c[(M&p)+56>>2]|0;do if(!V){u=c[(M&p)>>2]|0;g=qm(u)|0;if(!g)if(!(a[(u&n)+73>>0]|0)){v=1;g=0}else{v=0;g=Vm(u)|0}else v=1;a[(M&n)+26>>0]=0;c[(M&p)+60>>2]=0;a[(M&n)+25>>0]=v;if(!v){C=L;T=t;u=g;break n}}else{do if(!(a[(V&n)+56>>0]|0)){g=V+36|0;if(!(c[(g&p)>>2]|0)){g=0;ie=756}else{g=Nm(V+64|0,g)|0;ie=755}}else{g=Om(V)|0;if(!g){U=V+59|0;o:do if(!(a[(U&n)>>0]|0)){u=0;g=0}else{w=0;v=0;p:while(1){T=V+(w<<6)+64|0;c[(ke&p)>>2]=0;S=V+(w<<6)+92|0;C=c[(S&p)>>2]|0;J=((C|0)<0)<<31>>31;do if((C|0)>16){I=16;H=0;E=0;while(1){I=iw(I|0,H|0,4)|0;H=G;F=E+1|0;if(!((H|0)<(J|0)|(H|0)==(J|0)&I>>>0>>0)){H=E;break}else E=F}P=Sd;c[(P&p)>>2]=0;c[(P&p)+4>>2]=0;if((C|0)<17){ie=726;break}u=Qm(16)|0;c[(ke&p)>>2]=u;J=(u|0)==0;I=c[(S&p)>>2]|0;if(!((I|0)>0&(J^1))){g=J?7:0;break}N=(H|0)>0;P=0;O=0;do{c[(qd&p)>>2]=0;g=I-P|0;g=Pm(T,(g|0)<16?g:16,Sd,qd)|0;if(g){ie=747;break p}g=Rm(T,c[(qd&p)>>2]|0,pd)|0;do if(N){I=1;J=1;do{J=J<<4;I=I+1|0}while((I|0)!=(F|0));if(!g){H=1;I=u}else{J=c[(pd&p)>>2]|0;ie=743;break}while(1){K=(c[(I&p)+12>>2]|0)+((((O|0)/(J|0)|0|0)%16|0)*56|0)+48|0;I=c[(K&p)>>2]|0;if(!I){I=Qm(16)|0;if(!I){g=7;ie=738;break}g=Rm(T,I,K)|0;if(g){ie=738;break}I=c[(K&p)>>2]|0}I=c[(I&p)+4>>2]|0;H=H+1|0;if((H|0)>=(F|0)){ie=740;break}else J=(J|0)/16|0}if((ie|0)==738){J=c[(pd&p)>>2]|0;ie=743;break}else if((ie|0)==740){J=c[(pd&p)>>2]|0;ie=742;break}}else{J=c[(pd&p)>>2]|0;if(!g){I=u;ie=742}else ie=743}while(0);if((ie|0)==742){ie=0;c[((c[(I&p)+12>>2]|0)+(((O|0)%16|0)*56|0)&p)+48>>2]=J;g=0}else if((ie|0)==743){ie=0;Sm(J)}O=O+1|0;P=P+16|0;I=c[(S&p)>>2]|0}while((P|0)<(I|0)&(g|0)==0)}else{ie=Sd;c[(ie&p)>>2]=0;c[(ie&p)+4>>2]=0;ie=726}while(0);if((ie|0)==726){ie=0;g=Pm(T,C,Sd,ke)|0;u=c[(ke&p)>>2]|0}w=w+1|0;if(g){ie=746;break}if((w|0)>=(d[(U&n)>>0]|0)){g=0;break o}else v=u}if((ie|0)==746)Tm(u);else if((ie|0)==747)Tm(u);Tm(v);u=0}while(0);if(!g){g=Um(V+64|0,u)|0;c[(V&p)+20>>2]=u;if(!g){g=0;ie=755;break}else u=0}Tm(u);ie=755}else ie=756}while(0);if((ie|0)==755){ie=0;a[(M&n)+25>>0]=0;C=L;T=t;u=g;break n}else if((ie|0)==756){ie=0;a[(M&n)+25>>0]=1;break}}while(0);C=L;T=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;u=g}else if((ie|0)==765){u=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;c[(Fd&p)>>2]=c[(s+(t*20|0)&p)+12>>2];g=u;u=rc[c[(s+(t*20|0)&p)+16>>2]&127](c[(u&p)>>2]|0,Fd)|0;ie=766}while(0);do if((ie|0)==548){ie=0;a[((c[(g&p)>>2]|0)&n)+74>>0]=d[(v&n)>>0]&3;C=L;T=t}else if((ie|0)==766){c[(g&p)+60>>2]=0;g=g+25|0;if(!(c[(Fd&p)>>2]|0)){a[(g&n)>>0]=0;ie=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;t=f+(d[(s+(t*20|0)&n)+3>>0]<<2)+108|0;c[(t&p)>>2]=(c[(t&p)>>2]|0)+1;t=ie;ie=19;break}else{a[(g&n)>>0]=1;ie=19;break}}while(0);if((ie|0)==19){ie=0;if(c[(Cc&p)>>2]|0){u=je;g=m;m=x;break b}g=c[(be&p)>>2]|0;if(!((g|0)==0|m>>>0>>0)){y=c[(yc&p)>>2]|0;if(!(lc[g&127](c[(Zd&p)>>2]|0)|0)){y=y+m-((m>>>0)%(y>>>0)|0)|0;C=L;T=t}else{g=m;s=9;m=x;ie=1311;break a}}else{C=L;T=t}}t=T+1|0;if(!u){g=m;u=C}else{g=m;s=u;m=x;ie=1311;break a}}q:switch(ie|0){case 22:{ie=0;S=c[(s+(t*20|0)&p)+4>>2]|0;b[(z+(S*40|0)&o)+8>>1]=4;S=z+(S*40|0)|0;c[(S&p)>>2]=t;c[(S&p)+4>>2]=((t|0)<0)<<31>>31;S=z;T=s;U=W;V=X;r=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;break}case 23:{ie=0;S=c[(s+(t*20|0)&p)+4>>2]|0;r=c[(z+(S*40|0)&p)>>2]|0;b[(z+(S*40|0)&o)+8>>1]=128;S=z;T=s;U=W;V=X;break}case 24:{ie=0;r=c[(s+(t*20|0)&p)+4>>2]|0;u=z+(r*40|0)|0;T=(c[(s+(t*20|0)&p)+12>>2]|0)+-1|0;S=u;c[(S&p)>>2]=T;c[(S&p)+4>>2]=((T|0)<0)<<31>>31;b[(z+(r*40|0)&o)+8>>1]=4;r=c[(s+(t*20|0)&p)+8>>2]|0;S=z;T=s;U=W;V=X;r=(r|0)==0?t:r+-1|0;break}case 25:{ie=0;S=c[(s+(t*20|0)&p)+4>>2]|0;r=(c[(s+((c[(z+(S*40|0)&p)>>2]|0)*20|0)&p)+8>>2]|0)+-1|0;b[(z+(S*40|0)&o)+8>>1]=128;S=z;T=s;U=W;V=X;break}case 26:{ie=0;S=c[(s+(t*20|0)&p)+4>>2]|0;b[(z+(S*40|0)&o)+8>>1]=4;S=z+(S*40|0)|0;r=c[(S&p)>>2]|0;c[(S&p)>>2]=t;c[(S&p)+4>>2]=((t|0)<0)<<31>>31;S=z;T=s;U=W;V=X;break}case 27:{ie=0;if(!(b[(z+((c[(s+(r*20|0)&p)+12>>2]|0)*40|0)&o)+8>>1]&1)){S=z;T=s;U=W;V=X}else ie=28;break}case 44:{ie=0;T=c[(s+(r*20|0)&p)+4>>2]|0;S=u;c[(S&p)>>2]=T;c[(S&p)+4>>2]=((T|0)<0)<<31>>31;S=z;T=s;U=W;V=X;break}case 45:{ie=0;U=c[(s+(r*20|0)&p)+16>>2]|0;T=c[(U&p)+4>>2]|0;S=u;c[(S&p)>>2]=c[(U&p)>>2];c[(S&p)+4>>2]=T;S=z;T=s;U=W;V=X;break}case 46:{ie=0;b[(u&o)+8>>1]=8;h[(u&q)>>3]=+h[(c[(s+(r*20|0)&p)+16>>2]&q)>>3];S=z;T=s;U=W;V=X;break}case 60:{ie=0;J=(c[(s+(r*20|0)&p)+12>>2]|0)-(c[(s+(r*20|0)&p)+8>>2]|0)|0;t=(c[(s+(r*20|0)&p)+4>>2]|0)!=0?257:1;b[(u&o)+8>>1]=t;if((J|0)>0){w=J;A=u;do{v=A+48|0;A=A+40|0;if(!(b[(v&o)>>1]&9312))b[(v&o)>>1]=1;else vg(A);b[(v&o)>>1]=t;w=w+-1|0}while((w|0)>0);S=z;T=s;U=W;V=X;u=u+(J*40|0)|0}else{S=z;T=s;U=W;V=X}break}case 65:{ie=0;u=c[(s+(r*20|0)&p)+4>>2]|0;S=z+(u*40|0)+8|0;b[(S&o)>>1]=e[(S&o)>>1]&65406|1;S=z;T=s;U=W;V=X;u=z+(u*40|0)|0;break}case 66:{ie=0;Xg(u,c[(s+(r*20|0)&p)+16>>2]|0,c[(s+(r*20|0)&p)+4>>2]|0,0,0)|0;a[(u&n)+10>>0]=Jc;S=z;T=s;U=W;V=X;break}case 67:{ie=0;C=(c[(s+(r*20|0)&p)+4>>2]|0)+-1|0;A=c[(Ab&p)>>2]|0;w=A+(C*40|0)|0;v=e[(A+(C*40|0)&o)+8>>1]|0;if(v&18){t=c[(A+(C*40|0)&p)+12>>2]|0;if(v&16384)t=(c[(w&p)>>2]|0)+t|0;if((t|0)>(c[((c[(A+(C*40|0)&p)+32>>2]|0)&p)+88>>2]|0)){t=r;u=x;ie=1316;break c}}Zl(u,w,2048);S=z;T=s;U=W;V=X;break}case 72:{ie=0;t=c[(s+(r*20|0)&p)+12>>2]|0;v=c[(s+(r*20|0)&p)+8>>2]|0;J=t+v|0;u=z+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)|0;v=z+(v*40|0)|0;while(1){_l(v,u);t=t+-1|0;if(!t)break;else{u=u+40|0;v=v+40|0}}S=z;T=s;U=W;V=X;u=z+(J*40|0)|0;break}case 74:{ie=0;r=c[(s+(t*20|0)&p)+12>>2]|0;u=z+((c[(s+(t*20|0)&p)+4>>2]|0)*40|0)|0;J=z+((c[(s+(t*20|0)&p)+8>>2]|0)*40|0)|0;while(1){Zl(J,u,4096);if((b[(J&o)+8>>1]&4096)!=0?(Vl(J)|0)!=0:0){y=ge;z=je;r=m;m=x;ie=1317;break a}if(!r){S=z;T=s;U=W;V=X;u=J;r=t;break q}r=r+-1|0;u=u+40|0;J=J+40|0}}case 79:{ie=0;u=z+((c[(s+(r*20|0)&p)+8>>2]|0)*40|0)|0;Zl(u,z+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)|0,4096);S=z;T=s;U=W;V=X;break}case 94:{ie=0;K=c[(s+(t*20|0)&p)+4>>2]|0;J=z+(K*40|0)|0;L=c[(s+(t*20|0)&p)+8>>2]|0;I=z+(L*40|0)|0;M=c[(s+(t*20|0)&p)+12>>2]|0;u=z+(M*40|0)|0;H=z+(K*40|0)+8|0;E=b[(H&o)>>1]|0;F=z+(L*40|0)+8|0;C=b[(F&o)>>1]|0;if((C|E)&1){r=z+(M*40|0)+8|0;if(!(b[(r&o)>>1]&9312)){b[(r&o)>>1]=1;S=z;T=s;U=W;V=X;r=t;break}else{vg(u);S=z;T=s;U=W;V=X;r=t;break}}if(E&16384){if(Rg(J)|0){y=ge;z=je;r=m;m=x;ie=1317;break a}C=b[(F&o)>>1]|0}if((C&16384)!=0?(Rg(I)|0)!=0:0){y=ge;z=je;r=m;m=x;ie=1317;break a}if((b[(H&o)>>1]&18)==0?(bm(J,Jc,0)|0)!=0:0){y=ge;z=je;r=m;m=x;ie=1317;break a}if((b[(F&o)>>1]&18)==0?(bm(I,Jc,0)|0)!=0:0){y=ge;z=je;r=m;m=x;ie=1317;break a}E=z+(K*40|0)+12|0;A=z+(L*40|0)+12|0;r=(c[(A&p)>>2]|0)+(c[(E&p)>>2]|0)|0;if((r|0)>(c[(zb&p)>>2]|0)){u=x;ie=1316;break c}v=(M|0)==(L|0);if(eh(u,r+2|0,v&1)|0){y=ge;z=je;r=m;m=x;ie=1317;break a}w=z+(M*40|0)+8|0;b[(w&o)>>1]=e[(w&o)>>1]&48640|2;C=z+(M*40|0)+16|0;if(!v)kw(c[(C&p)>>2]|0,c[(z+(L*40|0)&p)+16>>2]|0,c[(A&p)>>2]|0)|0;kw((c[(C&p)>>2]|0)+(c[(A&p)>>2]|0)|0,c[(z+(K*40|0)&p)+16>>2]|0,c[(E&p)>>2]|0)|0;a[((c[(C&p)>>2]|0)+r&n)>>0]=0;a[((c[(C&p)>>2]|0)+r&n)+1>>0]=0;b[(w&o)>>1]=e[(w&o)>>1]|512;c[(z+(M*40|0)&p)+12>>2]=r;a[(z+(M*40|0)&n)+10>>0]=Jc;S=z;T=s;U=W;V=X;r=t;break}case 112:{ie=0;V=c[(s+(r*20|0)&p)+4>>2]|0;N=z+(V*40|0)|0;S=cm(N)|0;w=c[(s+(r*20|0)&p)+8>>2]|0;O=z+(w*40|0)|0;T=cm(O)|0;U=c[(s+(r*20|0)&p)+12>>2]|0;u=z+(U*40|0)|0;r:do if(!((b[(z+(w*40|0)&o)+8>>1]|b[(z+(V*40|0)&o)+8>>1])&1)){s:do if(!((S&4&T)<<16>>16))L=0;else{t=N;C=c[(t&p)>>2]|0;t=c[(t&p)+4>>2]|0;F=O;v=c[(F&p)>>2]|0;F=c[(F&p)+4>>2]|0;J=d[(P&n)>>0]|0;t:do if((J|0)==89){if((t|0)>-1|(t|0)==-1&C>>>0>4294967295){V=dw(-1,2147483647,v|0,F|0)|0;w=G;if(((F|0)>0|(F|0)==0&v>>>0>0)&((w|0)<(t|0)|(w|0)==(t|0)&V>>>0>>0)){L=1;break s}}else if((F|0)<0?(w=dw(1,-2147483648,v|0,F|0)|0,A=G,V=jw(C|0,t|0,1,0)|0,M=G,(A|0)>(M|0)|(A|0)==(M|0)&w>>>0>V>>>0):0){L=1;break s}v=jw(v|0,F|0,C|0,t|0)|0;t=G}else if((J|0)==91){L=qw(v|0,F|0,0,1)|0;K=G;E=rw(v|0,F|0,0,1)|0;A=G;J=qw(C|0,t|0,0,1)|0;I=G;M=rw(C|0,t|0,0,1)|0;w=G;V=jw(v|0,F|0,-1,0)|0;pe=G;H=jw(C|0,t|0,-1,0)|0;qe=G;H=qe>>>0<1|(qe|0)==1&H>>>0<4294967295;do if(pe>>>0<1|(pe|0)==1&V>>>0<4294967295)if(H){v=sw(v|0,F|0,C|0,t|0)|0;t=G;break t}else{H=sw(J|0,I|0,E|0,A|0)|0;F=G;break}else{if(!H){L=1;break s}H=sw(M|0,w|0,L|0,K|0)|0;F=G}while(0);V=jw(H|0,F|0,-2147483648,0)|0;v=G;if(v>>>0>0|(v|0)==0&V>>>0>4294967295){L=1;break s}J=sw(M|0,w|0,E|0,A|0)|0;I=G;if((I|0)>-1|(I|0)==-1&J>>>0>4294967295){V=dw(-1,2147483647,0,H|0)|0;w=G;if(((F|0)>0|(F|0)==0&H>>>0>0)&((w|0)<(I|0)|(w|0)==(I|0)&V>>>0>>0)){L=1;break s}}else if((F|0)<0?(w=dw(1,-2147483648,0,H|0)|0,t=G,V=jw(J|0,I|0,1,0)|0,v=G,(t|0)>(v|0)|(t|0)==(v|0)&w>>>0>V>>>0):0){L=1;break s}v=jw(0,H|0,J|0,I|0)|0;t=G}else if((J|0)==90){if((C|0)==0&(t|0)==-2147483648){if((F|0)>-1|(F|0)==-1&v>>>0>4294967295){L=1;break s}t=F^-2147483648;break}if((t|0)<0|(t|0)==0&C>>>0<1){V=dw(0,0,C|0,t|0)|0;M=G;w=dw(-1,2147483647,v|0,F|0)|0;A=G;if(((F|0)>0|(F|0)==0&v>>>0>0)&((A|0)<(M|0)|(A|0)==(M|0)&w>>>0>>0)){L=1;break s}}else if((F|0)<0?(w=dw(1,-2147483648,v|0,F|0)|0,A=G,V=dw(1,0,C|0,t|0)|0,M=G,(A|0)>(M|0)|(A|0)==(M|0)&w>>>0>V>>>0):0){L=1;break s}v=dw(v|0,F|0,C|0,t|0)|0;t=G}else if((J|0)==92){if((C|0)==0&(t|0)==0)break r;if((C|0)==-1&(t|0)==-1&((v|0)==0&(F|0)==-2147483648)){L=1;break s}v=qw(v|0,F|0,C|0,t|0)|0;t=G}else{if((C|0)==-1){if((t|0)==-1){C=1;t=0}}else if((C|0)==0?(t|0)==0:0)break r;v=rw(v|0,F|0,C|0,t|0)|0;t=G}while(0);S=u;c[(S&p)>>2]=v;c[(S&p)+4>>2]=t;S=z+(U*40|0)+8|0;b[(S&o)>>1]=e[(S&o)>>1]&48640|4;S=z;T=s;U=W;V=X;break q}while(0);D=+Ug(N);B=+Ug(O);C=d[(P&n)>>0]|0;if((C|0)==89)B=D+B;else if((C|0)==90)B=B-D;else if((C|0)==91)B=D*B;else if((C|0)==92){if(D==0.0)break;B=B/D}else{E=~~D>>>0;C=+R(D)>=1.0?(D>0.0?~~+da(+Q(D/4294967296.0),4294967295.0)>>>0:~~+ba((D-+(~~D>>>0))/4294967296.0)>>>0):0;I=~~B>>>0;J=+R(B)>=1.0?(B>0.0?~~+da(+Q(B/4294967296.0),4294967295.0)>>>0:~~+ba((B-+(~~B>>>0))/4294967296.0)>>>0):0;if(!E){if(!C)break}else if((E|0)==-1?(C|0)==-1:0){E=1;C=0}V=rw(I|0,J|0,E|0,C|0)|0;B=+(V>>>0)+4294967296.0*+(G|0)}h[(ke&q)>>3]=B;h[(Sd&q)>>3]=+h[(ke&q)>>3];if(!(+h[(ke&q)>>3]!=+h[(Sd&q)>>3])){h[(u&q)>>3]=B;V=z+(U*40|0)+8|0;b[(V&o)>>1]=e[(V&o)>>1]&48640|8;if(((T|S)&8)!=0|L<<24>>24!=0){S=z;T=s;U=W;V=X;break q}dm(u);S=z;T=s;U=W;V=X;break q}}while(0);t=z+(U*40|0)+8|0;if(!(b[(t&o)>>1]&9312)){b[(t&o)>>1]=1;S=z;T=s;U=W;V=X;break}else{vg(u);S=z;T=s;U=W;V=X;break}}case 166:{ie=0;t=c[(s+(r*20|0)&p)+4>>2]|0;if(t){u=z+(t*40|0)|0;t=z+(t*40|0)+8|0;if(!(b[(t&o)>>1]&9312)){S=u;c[(S&p)>>2]=0;c[(S&p)+4>>2]=0;b[(t&o)>>1]=4;S=z;T=s;U=W;V=X;u=J;break}else{Zg(u,0,0);S=z;T=s;U=W;V=X;u=J;break}}else{S=z;T=s;U=W;V=X;u=J}break}case 184:{ie=0;C=c[(s+(r*20|0)&p)+4>>2]|0;t=c[(s+(r*20|0)&p)+8>>2]|0;K=c[(s+(r*20|0)&p)+12>>2]|0;u=z+(K*40|0)|0;if((b[(z+(t*40|0)&o)+8>>1]|b[(z+(C*40|0)&o)+8>>1])&1){t=z+(K*40|0)+8|0;if(!(b[(t&o)>>1]&9312)){b[(t&o)>>1]=1;S=z;T=s;U=W;V=X;break}else{vg(u);S=z;T=s;U=W;V=X;break}}A=Vg(z+(t*40|0)|0)|0;L=G;J=Vg(z+(C*40|0)|0)|0;I=G;t=a[(H&n)>>0]|0;C=t&255;do if(t<<24>>24==86){A=J|A;t=I|L}else if(t<<24>>24!=85)if(!((J|0)==0&(I|0)==0)){if((I|0)<0){t=175-C&255;C=dw(0,0,J|0,I|0)|0;if((I|0)>-1|(I|0)==-1&J>>>0>4294967232){I=G;ie=194}}else{C=J;ie=194}if((ie|0)==194){ie=0;if(!((I|0)>0|(I|0)==0&C>>>0>63)){if(t<<24>>24==87){A=iw(A|0,L|0,C|0)|0;t=G;break}A=mw(A|0,L|0,C|0)|0;t=G;if((L|0)>=0)break;V=dw(64,0,C|0,I|0)|0;V=iw(-1,-1,V|0)|0;A=V|A;t=G|t;break}}if((L|0)>-1|(L|0)==-1&A>>>0>4294967295){A=0;t=0}else{t=(t<<24>>24!=87)<<31>>31;A=t;t=((t|0)<0)<<31>>31}}else t=L;else{A=J&A;t=I&L}while(0);S=u;c[(S&p)>>2]=A;c[(S&p)+4>>2]=t;S=z+(K*40|0)+8|0;b[(S&o)>>1]=e[(S&o)>>1]&48640|4;S=z;T=s;U=W;V=X;break}case 202:{ie=0;T=c[(s+(r*20|0)&p)+4>>2]|0;S=z+(T*40|0)|0;U=Vg(S)|0;T=z+(T*40|0)+8|0;b[(T&o)>>1]=e[(T&o)>>1]&48640|4;T=c[(s+(r*20|0)&p)+8>>2]|0;T=jw(U|0,G|0,T|0,((T|0)<0)<<31>>31|0)|0;c[(S&p)>>2]=T;c[(S&p)+4>>2]=G;S=z;T=s;U=W;V=X;break}case 203:{ie=0;u=c[(s+(r*20|0)&p)+4>>2]|0;v=z+(u*40|0)+8|0;t=b[(v&o)>>1]|0;if(!(t&4)){fm(z+(u*40|0)|0,67,Jc);t=b[(v&o)>>1]|0;if(!(t&4)){E=c[(s+(r*20|0)&p)+8>>2]|0;if(!E){t=r;u=20;ie=1318;break c}S=z;T=s;U=W;V=X;u=J;r=E+-1|0;break}}b[(v&o)>>1]=t&48640|4;S=z;T=s;U=W;V=X;u=J;break}case 208:{ie=0;t=c[(s+(r*20|0)&p)+4>>2]|0;u=z+(t*40|0)+8|0;if(!(b[(u&o)>>1]&4)){S=z;T=s;U=W;V=X;u=J}else{S=z+(t*40|0)|0;h[(S&q)>>3]=+Ug(S);b[(u&o)>>1]=e[(u&o)>>1]&48640|8;S=z;T=s;U=W;V=X;u=J}break}case 213:{ie=0;N=c[(s+(t*20|0)&p)+4>>2]|0;L=z+(N*40|0)|0;w=c[(s+(t*20|0)&p)+12>>2]|0;K=z+(w*40|0)|0;N=z+(N*40|0)+8|0;F=b[(N&o)>>1]|0;w=z+(w*40|0)+8|0;M=b[(w&o)>>1]|0;H=F&65535;A=M&65535;v=s+(t*20|0)+3|0;J=d[(v&n)>>0]|0;do if(!((M|F)&1)){J=J&71;if(J>>>0>66){if((H&14|0)==2){rh(L,0);A=b[(w&o)>>1]|0}else A=M;if((A&14)==2){rh(K,0);J=F;E=M}else{J=F;E=M}}else if((J|0)==66){if((H&2|0)!=0|(H&12|0)==0){I=M;J=F}else{bm(L,Jc,1)|0;I=b[(w&o)>>1]|0;J=(e[(N&o)>>1]&65024|H&511)&65535}V=I&65535;if((V&2|0)!=0|(V&12|0)==0)E=M;else{bm(K,Jc,1)|0;E=(e[(w&o)>>1]&65024|A&511)&65535}}else{J=F;E=M}if(b[(N&o)>>1]&16384){Rg(L)|0;J=J&49151}if(b[(w&o)>>1]&16384){Rg(K)|0;E=E&49151}if(a[(ge&n)>>0]|0){y=ge;z=je;r=m;m=x;ie=1317;break a}V=hm(K,L,c[(s+(t*20|0)&p)+16>>2]|0)|0;I=a[(C&n)>>0]|0;r=t;C=V}else{if(J&128){J=F;E=M;r=t;C=(F&1&M)<<16>>16!=0&(A&256|0)==0&1^1;break}if(J&32){u=c[(s+(t*20|0)&p)+8>>2]|0;S=z+(u*40|0)+8|0;b[(S&o)>>1]=e[(S&o)>>1]&48640|1;S=z;T=s;U=W;V=X;u=z+(u*40|0)|0;r=t;break q}if(!(J&16)){S=z;T=s;U=W;V=X;r=t;break q}S=z;T=s;U=W;V=X;r=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;break q}while(0);switch(I&255|0){case 79:{C=(C|0)==0&1;break}case 78:{C=(C|0)!=0&1;break}case 82:{C=C>>>31;break}case 81:{C=(C|0)<1&1;break}case 80:{C=(C|0)>0&1;break}default:C=C>>>31^1}if(!(a[(v&n)>>0]&32)){if(C)r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0}else{V=c[(s+(r*20|0)&p)+8>>2]|0;u=z+(V*40|0)|0;V=z+(V*40|0)+8|0;b[(V&o)>>1]=e[(V&o)>>1]&48640|4;V=u;c[(V&p)>>2]=C;c[(V&p)+4>>2]=0}b[(N&o)>>1]=J;b[(w&o)>>1]=E;S=z;T=s;U=W;V=X;break}case 248:{ie=0;S=z;T=s;U=c[(s+(r*20|0)&p)+16>>2]|0;V=X;break}case 249:{ie=0;w=(a[(s+(r*20|0)&n)+3>>0]&1)==0?0:W;F=c[(s+(r*20|0)&p)+12>>2]|0;H=c[(s+(r*20|0)&p)+16>>2]|0;I=c[(s+(r*20|0)&p)+4>>2]|0;J=c[(s+(r*20|0)&p)+8>>2]|0;if((F|0)>0){t=(w|0)==0;v=H+16|0;E=0;while(1){if(t)A=E;else A=c[(w+(E<<2)&p)>>2]|0;C=a[((c[(v&p)>>2]|0)+E&n)>>0]|0;A=hm(z+((A+I|0)*40|0)|0,z+((A+J|0)*40|0)|0,c[(H+(E<<2)&p)+20>>2]|0)|0;E=E+1|0;if(A)break;if((E|0)>=(F|0)){S=z;T=s;U=0;V=0;break q}}S=z;T=s;U=0;V=C<<24>>24==0?A:0-A|0}else{S=z;T=s;U=0;V=X}break}case 256:{ie=0;if((X|0)<0){S=z;T=s;U=W;V=X;r=(c[(s+(t*20|0)&p)+4>>2]|0)+-1|0;break}if(!X){S=z;T=s;U=W;V=0;r=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;break}else{S=z;T=s;U=W;V=X;r=(c[(s+(t*20|0)&p)+12>>2]|0)+-1|0;break}}case 261:{ie=0;t=c[(s+(r*20|0)&p)+4>>2]|0;if(!(b[(z+(t*40|0)&o)+8>>1]&1)){u=Vg(z+(t*40|0)|0)|0;u=(u|0)!=0|(G|0)!=0?3:0}else u=6;t=c[(s+(r*20|0)&p)+8>>2]|0;if(!(b[(z+(t*40|0)&o)+8>>1]&1)){t=Vg(z+(t*40|0)|0)|0;t=((t|0)!=0|(G|0)!=0)&1}else t=2;t=a[(((a[(C&n)>>0]|0)==72?41680:41696)+t+u&n)>>0]|0;u=c[(s+(r*20|0)&p)+12>>2]|0;J=z+(u*40|0)|0;if(t<<24>>24==2){S=z+(u*40|0)+8|0;b[(S&o)>>1]=e[(S&o)>>1]&48640|1;S=z;T=s;U=W;V=X;u=J;break}else{S=J;c[(S&p)>>2]=t&255;c[(S&p)+4>>2]=0;S=z+(u*40|0)+8|0;b[(S&o)>>1]=e[(S&o)>>1]&48640|4;S=z;T=s;U=W;V=X;u=J;break}}case 268:{ie=0;t=c[(s+(r*20|0)&p)+4>>2]|0;u=c[(s+(r*20|0)&p)+8>>2]|0;J=z+(u*40|0)|0;u=z+(u*40|0)+8|0;if(!(b[(u&o)>>1]&9312))b[(u&o)>>1]=1;else vg(J);if(!(b[(z+(t*40|0)&o)+8>>1]&1)){b[(u&o)>>1]=4;T=Vg(z+(t*40|0)|0)|0;S=J;c[(S&p)>>2]=(T|0)==0&(G|0)==0&1;c[(S&p)+4>>2]=0;S=z;T=s;U=W;V=X;u=J}else{S=z;T=s;U=W;V=X;u=J}break}case 273:{ie=0;t=c[(s+(r*20|0)&p)+4>>2]|0;u=c[(s+(r*20|0)&p)+8>>2]|0;J=z+(u*40|0)|0;u=z+(u*40|0)+8|0;if(!(b[(u&o)>>1]&9312))b[(u&o)>>1]=1;else vg(J);if(!(b[(z+(t*40|0)&o)+8>>1]&1)){b[(u&o)>>1]=4;T=Vg(z+(t*40|0)|0)|0;S=J;c[(S&p)>>2]=~T;c[(S&p)+4>>2]=~G;S=z;T=s;U=W;V=X;u=J}else{S=z;T=s;U=W;V=X;u=J}break}case 278:{ie=0;t=(c[(Hb&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]|0)|0;if(!(a[(t&n)>>0]|0)){a[(t&n)>>0]=1;S=z;T=s;U=W;V=X;break}else{S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0;break}}case 281:{ie=0;t=c[(s+(r*20|0)&p)+4>>2]|0;if(!(b[(z+(t*40|0)&o)+8>>1]&1)){t=+Ug(z+(t*40|0)|0)!=0.0;t=(t^(a[(C&n)>>0]|0)==46)&1}else t=c[(s+(r*20|0)&p)+12>>2]|0;if(!t){S=z;T=s;U=W;V=X}else{S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0}break}case 286:{ie=0;if(!(b[(z+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)&o)+8>>1]&1)){S=z;T=s;U=W;V=X}else{S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0}break}case 288:{ie=0;if(!(b[(z+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)&o)+8>>1]&1)){S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0}else{S=z;T=s;U=W;V=X}break}case 290:{ie=0;T=c[(s+(t*20|0)&p)+8>>2]|0;M=c[(s+(t*20|0)&p)+12>>2]|0;A=z+(M*40|0)|0;S=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;w=c[(S&p)+80>>2]|0;v=c[(S&p)>>2]|0;if(!(a[(S&n)+26>>0]|0)){if((v|0)!=0?(a[(v&n)+73>>0]|0)!=1:0){Td=jm(S)|0;ie=295}}else{Td=im(S)|0;ie=295}if((ie|0)==295?(ie=0,(Td|0)!=0):0){u=Td;ie=1318;break c}L=S+60|0;C=c[($d&p)>>2]|0;u:do if((c[(L&p)>>2]|0)==(C|0)){C=b[(S&o)+22>>1]|0;if((C&65535|0)>(T|0))ie=350;else{I=S+72|0;ie=318}}else{do if(a[(S&n)+25>>0]|0){if(!v){J=c[(S&p)+16>>2]|0;F=c[(z+(J*40|0)&p)+12>>2]|0;c[(S&p)+68>>2]=F;c[(S&p)+64>>2]=F;J=c[(z+(J*40|0)&p)+16>>2]|0;K=S+76|0;c[(K&p)>>2]=J;break}r=z+(M*40|0)+8|0;if(!(b[(r&o)>>1]&9312)){b[(r&o)>>1]=1;break u}else{vg(A);break u}}else{if(!(a[(S&n)+27>>0]&4)){km(v,td);I=e[(v&o)+40>>1]|0;J=c[(v&p)+32>>2]|0;c[(S&p)+76>>2]=J;C=c[(td&p)>>2]|0;c[(S&p)+64>>2]=C}else{C=S+64|0;lm(v,C);I=e[(v&o)+40>>1]|0;J=c[(v&p)+32>>2]|0;c[(S&p)+76>>2]=J;C=c[(C&p)>>2]|0}c[(S&p)+68>>2]=C>>>0>I>>>0?I:C;if(C>>>0>(c[(zb&p)>>2]|0)>>>0){u=x;ie=1316;break c}K=S+76|0;C=c[($d&p)>>2]|0;F=I}while(0);c[(L&p)>>2]=C;C=a[(J&n)>>0]|0;if(C<<24>>24>-1){H=C&255;c[(kd&p)>>2]=H;J=1}else{J=mm(J,kd)|0;H=c[(kd&p)>>2]|0}I=S+72|0;c[(I&p)>>2]=J&255;b[(S&o)+22>>1]=0;c[(w&p)>>2]=H;if(H>>>0>98307){u=x;ie=313;break c}if(H>>>0>(c[(S&p)+64>>2]|0)>>>0){u=x;ie=313;break c}if(F>>>0>>0){c[(K&p)>>2]=0;c[(S&p)+68>>2]=0;C=0;ie=318}else{C=0;ie=318}}while(0);do if((ie|0)==318){ie=0;J=c[(I&p)>>2]|0;H=c[(w&p)>>2]|0;if(J>>>0>>0){P=S+76|0;F=c[(P&p)>>2]|0;if(!F){U=Jd+0|0;V=U+40|0;do{c[(U&p)>>2]=0;U=U+4|0}while((U|0)<(V|0));J=nm(v,0,c[(w&p)>>2]|0,((d[(S&n)+27>>0]|0)>>>2&1^1)&255,Jd)|0;if(J){s=J;u=x;ie=1309;break c}C=S+22|0;O=C;C=b[(C&o)>>1]|0;J=c[(I&p)>>2]|0;H=c[(w&p)>>2]|0;N=c[(Jb&p)>>2]|0}else{O=S+22|0;N=F}E=C&65535;K=c[(w+(E<<2)&p)>>2]|0;c[(kd&p)>>2]=K;C=N+H|0;J=N+J|0;while(1){F=a[(J&n)>>0]|0;if(F<<24>>24>-1){L=F&255;c[(Ld&p)>>2]=L;J=J+1|0}else{J=J+((mm(J,Ld)|0)&255)|0;L=c[(Ld&p)>>2]|0}c[(S+(E<<2)&p)+84>>2]=L;if(L>>>0>11)F=(L+-12|0)>>>1;else F=d[(L&n)+34336>>0]|0;L=K+F|0;c[(kd&p)>>2]=L;if(L>>>0>>0){J=L;F=E;ie=331;break}F=E+1|0;c[(w+(F<<2)&p)>>2]=L;if((E|0)<(T|0)&J>>>0>>0){K=L;E=F}else break}if((ie|0)==331){ie=0;L=J;J=N+(H+1)|0}b[(O&o)>>1]=F;c[(I&p)>>2]=J-N;if(!(c[(P&p)>>2]|0)){if(!((b[(Kb&o)>>1]&9312)==0&(c[(Lb&p)>>2]|0)==0))Qg(Jd);b[(Kb&o)>>1]=1}if(J>>>0>=C>>>0){if(J>>>0>C>>>0){u=x;ie=343;break c}if((L|0)==(c[(S&p)+64>>2]|0))C=L;else{u=x;ie=343;break c}}else C=c[(S&p)+64>>2]|0;if(L>>>0>C>>>0){u=x;ie=343;break c}C=b[(O&o)>>1]|0}if((C&65535|0)<=(T|0)){if((a[(s+(t*20|0)&n)+1>>0]|0)==-8){Zl(A,c[(s+(t*20|0)&p)+16>>2]|0,2048);r=z+(M*40|0)+8|0;break}r=z+(M*40|0)+8|0;if(!(b[(r&o)>>1]&9312)){b[(r&o)>>1]=1;break}else{vg(A);break}}else ie=350}while(0);if((ie|0)==350){ie=0;r=z+(M*40|0)+8|0;if(b[(r&o)>>1]&9312)vg(A);J=c[(S+(T<<2)&p)+84>>2]|0;c[(Ld&p)>>2]=J;do if((c[(S&p)+68>>2]|0)>>>0<(c[(w+(T+1<<2)&p)>>2]|0)>>>0){V=a[(s+(t*20|0)&n)+3>>0]|0;if(!((V&255)>63?J>>>0>11&(J&1|0)==0|V<<24>>24<0:0)){if(J>>>0>11)C=(J+-12|0)>>>1;else C=d[(J&n)+34336>>0]|0;if(C){C=nm(v,c[(w+(T<<2)&p)>>2]|0,C,((d[(S&n)+27>>0]|0)>>>2&1^1)&255,A)|0;if(C){s=C;u=x;ie=1309;break c}om(c[(z+(M*40|0)&p)+16>>2]|0,J,A)|0;b[(r&o)>>1]=e[(r&o)>>1]&61439;break}}om(J>>>0<14?td:0,J,A)|0}else om((c[(S&p)+76>>2]|0)+(c[(w+(T<<2)&p)>>2]|0)|0,J,A)|0;while(0);a[(z+(M*40|0)&n)+10>>0]=Jc}w=e[(r&o)>>1]|0;if((w&4096|0)!=0?(Ac=z+(M*40|0)+16|0,Bc=c[(Ac&p)>>2]|0,(Bc|0)!=0):0){v=c[(z+(M*40|0)&p)+12>>2]|0;if(fh(A,v+2|0)|0){y=ge;z=je;r=m;m=x;ie=1317;break a}kw(c[(Ac&p)>>2]|0,Bc|0,v|0)|0;a[((c[(Ac&p)>>2]|0)+v&n)>>0]=0;a[((c[(Ac&p)>>2]|0)+v&n)+1>>0]=0;b[(r&o)>>1]=w&18|512;S=z;T=s;U=W;V=X;r=t}else{S=z;T=s;U=W;V=X;r=t}break}case 368:{ie=0;v=c[(s+(r*20|0)&p)+16>>2]|0;t=a[(v&n)>>0]|0;if(!(t<<24>>24)){S=z;T=s;U=W;V=X}else{w=z+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)|0;while(1){v=v+1|0;fm(w,t,Jc);t=a[(v&n)>>0]|0;if(!(t<<24>>24)){S=z;T=s;U=W;V=X;break}else w=w+40|0}}break}case 371:{ie=0;U=c[(s+(t*20|0)&p)+4>>2]|0;C=c[(s+(t*20|0)&p)+16>>2]|0;V=z+(U*40|0)|0;U=z+((U+-1+(c[(s+(t*20|0)&p)+8>>2]|0)|0)*40|0)|0;A=a[(Mb&n)>>0]|0;T=c[(s+(t*20|0)&p)+12>>2]|0;u=z+(T*40|0)|0;if(C){r=a[(C&n)>>0]|0;v=V;while(1){C=C+1|0;fm(v,r,Jc);r=a[(C&n)>>0]|0;if(!(r<<24>>24))break;else v=v+40|0}}N=(A&255)>3;L=0;K=0;O=0;C=0;w=U;while(1){E=b[(w&o)+8>>1]|0;I=E&65535;v:do if(!(I&1)){do if(!(I&4)){if(I&8){J=7;ie=388;break v}J=c[(w&p)+12>>2]|0;if(I&16384)J=(c[(w&p)>>2]|0)+J|0;J=(J<<1)+12|I>>>1&1}else{I=w;J=c[(I&p)>>2]|0;I=c[(I&p)+4>>2]|0;H=ew(J|0,I|0,63)|0;H=H^J;F=G^I;if(F>>>0<0|(F|0)==0&H>>>0<128){if(!((J&1|0)==(J|0)&0==(I|0)&N)){J=1;ie=388;break v}J=H+8|0;break}if(F>>>0<0|(F|0)==0&H>>>0<32768){J=2;ie=388;break v}if(F>>>0<0|(F|0)==0&H>>>0<8388608){J=3;ie=388;break v}if(F>>>0<0|(F|0)==0&H>>>0<2147483648){J=4;ie=388;break v}J=F>>>0<32768|(F|0)==32768&H>>>0<0?5:6;ie=388;break v}while(0);c[(w&p)+28>>2]=J;if(J>>>0>11){I=J;J=(J+-12|0)>>>1}else ie=391}else{J=0;ie=388}while(0);if((ie|0)==388){c[(w&p)+28>>2]=J;ie=391}if((ie|0)==391){ie=0;I=J;J=d[(J&n)+34336>>0]|0}do if(E&16384)if((L|0)==0&(K|0)==0){E=c[(w&p)>>2]|0;J=J-E|0;E=E+C|0;break}else{Rg(w)|0;E=C;break}else E=C;while(0);L=jw(J|0,((J|0)<0)<<31>>31|0,L|0,K|0)|0;K=G;if(I>>>0<128)J=1;else{H=0;J=0;do{J=J+1|0;I=mw(I|0,H|0,7)|0;H=G}while(((I|0)!=0|(H|0)!=0)&(J|0)<9)}J=J+O|0;w=w+-40|0;if(w>>>0>>0){F=J;P=E;break}else{O=J;C=E}}if((F|0)<127)I=F+1|0;else{I=F;H=((F|0)<0)<<31>>31;J=0;do{J=J+1|0;I=mw(I|0,H|0,7)|0;H=G}while(((I|0)!=0|(H|0)!=0)&(J|0)<9);F=J+F|0;I=F;H=((F|0)<0)<<31>>31;C=0;do{C=C+1|0;I=mw(I|0,H|0,7)|0;H=G}while(((I|0)!=0|(H|0)!=0)&(C|0)<9);I=((J|0)<(C|0)&1)+F|0}J=((I|0)<0)<<31>>31;E=jw(I|0,J|0,L|0,K|0)|0;N=G;S=c[(zb&p)>>2]|0;O=((S|0)<0)<<31>>31;if((N|0)>(O|0)|(N|0)==(O|0)&E>>>0>S>>>0){u=x;ie=1316;break c}if(fh(u,E)|0){y=ge;z=je;r=m;m=x;ie=1317;break a}A=c[(z+(T*40|0)&p)+16>>2]|0;if(I>>>0<128){a[(A&n)>>0]=I;K=1;L=V}else{K=(pm(A,I,J)|0)&255;L=V}while(1){H=c[(L&p)+28>>2]|0;if(H>>>0<128){a[(A+K&n)>>0]=H;J=1}else J=(pm(A+K|0,H,0)|0)&255;K=J+K|0;J=A+I|0;if(!(H>>>0<8&(H|0)!=0))if(H>>>0>11){C=c[(L&p)+12>>2]|0;kw(J|0,c[(L&p)+16>>2]|0,C|0)|0}else C=0;else{J=L;if(H>>>0>11)C=(H+-12|0)>>>1;else C=d[(H&n)+34336>>0]|0;F=c[(J&p)>>2]|0;J=c[(J&p)+4>>2]|0;H=C;while(1){H=H+-1|0;a[(A+H+I&n)>>0]=F;F=mw(F|0,J|0,8)|0;if(!H)break;else J=G}}L=L+40|0;if(L>>>0>U>>>0)break;else I=C+I|0}c[(z+(T*40|0)&p)+12>>2]=E;r=z+(T*40|0)+8|0;b[(r&o)>>1]=16;if(P){c[(u&p)>>2]=P;b[(r&o)>>1]=16400}a[(z+(T*40|0)&n)+10>>0]=1;S=z;T=s;U=W;V=X;r=t;break}case 446:{ie=0;if((c[(ae&p)>>2]|0)>0){u=x;ie=447;break c}if(!v)w=0;else{t=v;while(1)if(!(a[(t&n)>>0]|0))break;else t=t+1|0;w=t-v&1073741823}u=sm(le,0,(c[(Ob&p)>>2]|0)+(c[(Nb&p)>>2]|0)|0)|0;if(u){t=r;ie=1318;break c}t=mh(le,w+33|0,0)|0;if(!t){S=z;T=s;U=W;V=X;u=L}else{V=t+32|0;c[(t&p)>>2]=V;kw(V|0,v|0,w+1|0)|0;if(!(a[(ee&n)>>0]|0))c[(Ob&p)>>2]=(c[(Ob&p)>>2]|0)+1;else{a[(ee&n)>>0]=0;a[(Sb&n)>>0]=1}c[(t&p)+24>>2]=c[(Pb&p)>>2];c[(Pb&p)>>2]=t;S=Qb;T=c[(S&p)+4>>2]|0;U=t+8|0;c[(U&p)>>2]=c[(S&p)>>2];c[(U&p)+4>>2]=T;U=Rb;T=c[(U&p)+4>>2]|0;S=t+16|0;c[(S&p)>>2]=c[(U&p)>>2];c[(S&p)+4>>2]=T;S=z;T=s;U=W;V=X;u=L}break}case 486:{c[(Ob&p)>>2]=(c[(Ob&p)>>2]|0)+-1;ie=488;break}case 525:{ie=0;wm(c[((c[(Xd&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<4)&p)+4>>2]|0,c[(s+(r*20|0)&p)+12>>2]|0,Yc);T=c[(Yc&p)>>2]|0;S=u;c[(S&p)>>2]=T;c[(S&p)+4>>2]=((T|0)<0)<<31>>31;S=z;T=s;U=W;V=X;break}case 558:{ie=0;v=xm(f,c[(s+(t*20|0)&p)+4>>2]|0,c[(s+(t*20|0)&p)+8>>2]|0,-1,1)|0;if(!v){y=ge;z=je;r=m;m=x;ie=1317;break a}r=c[(s+(t*20|0)&p)+16>>2]|0;C=v+8|0;c[(C&p)>>2]=r;A=c[(s+(t*20|0)&p)+12>>2]|0;r=e[(r&o)+6>>1]<<2;u=r+148|0;w=mh(le,u,0)|0;if(!w){s=v;u=x;ie=560;break c}fw(w|0,0,u|0)|0;c[(v&p)+56>>2]=w;V=w+128|0;c[(w&p)+28>>2]=V;kw(V|0,c[(C&p)>>2]|0,r+20|0)|0;c[(w&p)+140>>2]=0;if(A)b[(w&o)+134>>1]=A;r=c[(Xd&p)>>2]|0;u=c[((c[((c[(r&p)+4>>2]|0)&p)+4>>2]|0)&p)+32>>2]|0;c[(w&p)+12>>2]=u;a[(w&n)+59>>0]=1;a[(w&n)+57>>0]=0;c[(w&p)+24>>2]=le;c[(w&p)+72>>2]=w;if(((a[(_b&n)>>0]|0)!=2?(Dc=c[2242]|0,c[(w&p)>>2]=ca(Dc,u)|0,V=c[((c[(r&p)+12>>2]|0)&p)+80>>2]|0,V=(V|0)<(Dc|0)?Dc:V,Dc=((u|0)<0)<<31>>31,V=sw(V|0,((V|0)<0)<<31>>31|0,u|0,Dc|0)|0,U=G,c[(w&p)+4>>2]=(U|0)<0|(U|0)==0&V>>>0<536870912?V:536870912,(c[2234]|0)==0):0)?(c[(w&p)+52>>2]=u,V=qg(u,Dc)|0,c[(w&p)+40>>2]=V,(V|0)==0):0){s=7;u=x;ie=1309;break c}else{S=z;T=s;U=W;V=X;u=L;r=t}break}case 566:{ie=0;T=(c[((c[(Ib&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<2)&p)>>2]|0)+40|0;V=T;U=c[(V&p)>>2]|0;V=c[(V&p)+4>>2]|0;S=jw(U|0,V|0,1,0)|0;c[(T&p)>>2]=S;c[(T&p)+4>>2]=G;if((U|0)==0&(V|0)==0){S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0}else{S=z;T=s;U=W;V=X}break}case 568:{ie=0;r=xm(f,c[(s+(t*20|0)&p)+4>>2]|0,c[(s+(t*20|0)&p)+12>>2]|0,-1,0)|0;if(!r){y=ge;z=je;r=m;m=x;ie=1317;break a}a[(r&n)+25>>0]=1;c[(r&p)+16>>2]=c[(s+(t*20|0)&p)+8>>2];S=r+27|0;a[(S&n)>>0]=a[(S&n)>>0]|4;S=z;T=s;U=W;V=X;r=t;break}case 570:{ie=0;S=s+(r*20|0)+4|0;Bm(f,c[((c[(Ib&p)>>2]|0)+(c[(S&p)>>2]<<2)&p)>>2]|0);c[((c[(Ib&p)>>2]|0)+(c[(S&p)>>2]<<2)&p)>>2]=0;S=z;T=s;U=W;V=X;break}case 571:{ie=0;H=c[((c[(Ib&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<2)&p)>>2]|0;a[(H&n)+25>>0]=0;if(!(a[(H&n)+27>>0]&4)){V=c[(s+(r*20|0)&p)+16>>2]|0;c[(wd&p)>>2]=c[(H&p)+8>>2];b[($b&o)>>1]=V;a[(cc&n)>>0]=(K<<1&2^2)+255;V=c[(s+(r*20|0)&p)+12>>2]|0;t=z+(V*40|0)|0;c[(dc&p)>>2]=t;if(b[(z+(V*40|0)&o)+8>>1]&16384)Rg(t)|0;u=Cm(c[(H&p)>>2]|0,wd,0,0,0,Ad)|0;if(!u){u=K;J=L}else{t=r;ie=1318;break c}}else{C=c[(s+(r*20|0)&p)+12>>2]|0;A=z+(C*40|0)|0;C=z+(C*40|0)+8|0;if((b[(C&o)>>1]&14)==2)rh(A,0);J=Vg(A)|0;I=G;C=e[(C&o)>>1]|0;do if(!(C&4)){if(!(C&8)){S=z;T=s;U=W;V=X;u=L;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0;break q}B=+h[(A&q)>>3];D=+(J>>>0)+4294967296.0*+(I|0);if(B>31)+K|0;break}else{C=(B>D&(K&1|0)==0&1)+K|0;break}}else C=K;while(0);u=Cm(c[(H&p)>>2]|0,0,J,I,0,Ad)|0;V=H+48|0;c[(V&p)>>2]=J;c[(V&p)+4>>2]=I;if(!u){u=C;J=L}else{t=r;ie=1318;break c}}a[(H&n)+26>>0]=0;c[(H&p)+60>>2]=0;t=c[(Ad&p)>>2]|0;do if((u|0)>63){if((t|0)>=0?!((t|0)==0&(u|0)==65):0){c[(Ad&p)>>2]=0;S=z;T=s;U=W;V=X;u=J;break q}c[(Ad&p)>>2]=0;u=Dm(c[(H&p)>>2]|0,Ad)|0;if(!u)ie=593;else{t=r;ie=1318;break c}}else{if((t|0)<=0?!((t|0)==0&(u|0)==62):0){t=(a[((c[(H&p)>>2]|0)&n)+73>>0]|0)!=1&1;c[(Ad&p)>>2]=t;break}c[(Ad&p)>>2]=0;u=Em(c[(H&p)>>2]|0,Ad)|0;if(!u)ie=593;else{t=r;ie=1318;break c}}while(0);if((ie|0)==593){ie=0;t=c[(Ad&p)>>2]|0}if(!t){S=z;T=s;U=W;V=X;u=J}else{S=z;T=s;U=W;V=X;u=J;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0}break}case 596:{ie=0;S=c[((c[(Ib&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<2)&p)>>2]|0;a[(S&n)+25>>0]=0;U=Vg(z+((c[(s+(r*20|0)&p)+8>>2]|0)*40|0)|0)|0;T=S+48|0;c[(T&p)>>2]=U;c[(T&p)+4>>2]=G;a[(S&n)+26>>0]=1;S=z;T=s;U=W;V=X;break}case 597:{ie=0;I=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;r=c[(s+(t*20|0)&p)+12>>2]|0;J=z+(r*40|0)|0;c[(od&p)>>2]=0;K=s+(t*20|0)+16|0;C=c[(K&p)>>2]|0;v=I+8|0;A=c[(v&p)>>2]|0;w:do if((C|0)>0){c[(xd&p)>>2]=A;C=C&65535;b[(ec&o)>>1]=C;c[(fc&p)>>2]=J;if(!(C<<16>>16))v=xd;else{r=J;A=0;while(1){if(b[(r+(A*40|0)&o)+8>>1]&16384){Rg(r+(A*40|0)|0)|0;C=b[(ec&o)>>1]|0}A=A+1|0;if((A|0)>=(C&65535|0)){v=xd;break w}r=c[(fc&p)>>2]|0}}}else{C=Fm(A,Sc,191,od)|0;if(!C){y=ge;z=je;r=m;m=x;ie=1317;break a}if(b[(z+(r*40|0)&o)+8>>1]&16384)Rg(J)|0;Gm(c[(v&p)>>2]|0,c[(z+(r*40|0)&p)+12>>2]|0,c[(z+(r*40|0)&p)+16>>2]|0,C);v=C}while(0);a[(v&n)+6>>0]=0;x:do if((a[(H&n)>>0]|0)==67?(Ec=b[(v&o)+4>>1]|0,Ec<<16>>16!=0):0){C=c[(v&p)+8>>2]|0;A=0;while(1){if(b[(C+(A*40|0)&o)+8>>1]&1)break;A=A+1|0;if((A|0)>=(Ec&65535|0)){L=t;r=t;break x}}L=t;r=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0}else{L=t;r=t}while(0);C=Cm(c[(I&p)>>2]|0,v,0,0,0,Bd)|0;if(!(c[(K&p)>>2]|0))mg(le,c[(od&p)>>2]|0);if(C){t=r;s=C;u=x;ie=1309;break c}t=c[(Bd&p)>>2]|0;c[(I&p)+12>>2]=t;t=(t|0)==0;a[(I&n)+25>>0]=t&1^1;a[(I&n)+26>>0]=0;c[(I&p)+60>>2]=0;if((a[(H&n)>>0]|0)==69){if(!t){S=z;T=s;U=W;V=X;break}S=z;T=s;U=W;V=X;r=(c[(s+(L*20|0)&p)+8>>2]|0)+-1|0;break}else{if(t){S=z;T=s;U=W;V=X;break}S=z;T=s;U=W;V=X;r=(c[(s+(L*20|0)&p)+8>>2]|0)+-1|0;break}}case 624:{ie=0;S=(c[((c[(Ib&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<2)&p)>>2]|0)+40|0;T=S;U=c[(T&p)>>2]|0;T=c[(T&p)+4>>2]|0;V=jw(U|0,T|0,1,0)|0;c[(S&p)>>2]=V;c[(S&p)+4>>2]=G;S=u;c[(S&p)>>2]=U;c[(S&p)+4>>2]=T;S=z;T=s;U=W;V=X;break}case 647:{ie=0;I=c[(s+(r*20|0)&p)+8>>2]|0;v=c[((c[(Ib&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<2)&p)>>2]|0;t=c[(s+(r*20|0)&p)+12>>2]|0;if(C<<24>>24==75){F=z+(t*40|0)|0;E=c[(F&p)>>2]|0;F=c[(F&p)+4>>2]|0}else{E=t;F=((t|0)<0)<<31>>31}H=s+(r*20|0)+3|0;J=a[(H&n)>>0]|0;if(J&1)c[(ub&p)>>2]=(c[(ub&p)>>2]|0)+1;if(J&2){m=ne;c[(m&p)>>2]=E;c[(m&p)+4>>2]=F;m=E;l=F}C=b[(z+(I*40|0)&o)+8>>1]|0;if(C&1){c[(z+(I*40|0)&p)+16>>2]=0;c[(z+(I*40|0)&p)+12>>2]=0}if(!(J&16))A=0;else A=c[(v&p)+12>>2]|0;if(!(C&16384))C=0;else C=c[(z+(I*40|0)&p)>>2]|0;C=Im(c[(v&p)>>2]|0,0,E,F,c[(z+(I*40|0)&p)+16>>2]|0,c[(z+(I*40|0)&p)+12>>2]|0,C,(J&255)>>>3&1,A)|0;a[(v&n)+26>>0]=0;c[(v&p)+60>>2]=0;if(C){t=r;s=C;u=x;ie=1309;break c}t=c[(gc&p)>>2]|0;if((t|0)!=0?(Fc=c[(s+(r*20|0)&p)+16>>2]|0,(Fc|0)!=0):0){bc[t&1](c[(hc&p)>>2]|0,(a[(H&n)>>0]&4)!=0?23:18,c[((c[(Xd&p)>>2]|0)+(a[(v&n)+24>>0]<<4)&p)>>2]|0,Fc,E,F);S=z;T=s;U=W;V=X}else{S=z;T=s;U=W;V=X}break}case 671:{ie=0;S=c[(ub&p)>>2]|0;c[(vb&p)>>2]=S;c[(wb&p)>>2]=(c[(wb&p)>>2]|0)+S;c[(ub&p)>>2]=0;S=z;T=s;U=W;V=X;break}case 672:{ie=0;J=c[((c[(Ib&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<2)&p)>>2]|0;I=c[(s+(r*20|0)&p)+12>>2]|0;H=c[(s+(r*20|0)&p)+16>>2]|0;t=c[(J&p)+56>>2]|0;A=t+32|0;C=c[(A&p)>>2]|0;J=c[(J&p)+8>>2]|0;if(!C){C=Fm(J,0,0,md)|0;c[(A&p)>>2]=C;if(!C){t=r;s=7;u=x;ie=1309;break c}b[(C&o)+4>>1]=H}if(!(a[(t&n)+56>>0]|0)){t=c[(t&p)+36>>2]|0;A=t;t=t+8|0}else{V=c[(t&p)+20>>2]|0;t=c[((c[(V&p)+8>>2]|0)&p)+4>>2]|0;V=c[(V&p)+12>>2]|0;A=V+(t*56|0)+20|0;t=c[(V+(t*56|0)&p)+32>>2]|0}Gm(J,c[(A&p)>>2]|0,t,C);y:do if((H|0)>0){t=c[(C&p)+8>>2]|0;v=0;while(1){if(b[(t+(v*40|0)&o)+8>>1]&1)break y;v=v+1|0;if((v|0)>=(H|0)){ie=682;break}}}else ie=682;while(0);if((ie|0)==682){ie=0;if(!(Km(c[(z+(I*40|0)&p)+12>>2]|0,c[(z+(I*40|0)&p)+16>>2]|0,C,0)|0)){S=z;T=s;U=W;V=X;break}}S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0;break}case 700:{ie=0;b[(u&o)+8>>1]=1;S=z;T=s;U=W;V=X;break}case 708:{ie=0;b[(u&o)+8>>1]=1;S=z;T=s;U=W;V=X;break}case 711:{ie=0;t=c[((c[(Ib&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<2)&p)>>2]|0;a[(t&n)+25>>0]=1;c[(t&p)+60>>2]=0;t=c[(t&p)>>2]|0;if(!t){S=z;T=s;U=W;V=X}else{S=t+56|0;Wc(c[(S&p)>>2]|0);c[(S&p)>>2]=0;a[(t&n)+73>>0]=0;S=z;T=s;U=W;V=X}break}case 801:{ie=0;t=c[((c[(Ib&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<2)&p)>>2]|0;u=c[(t&p)>>2]|0;K=L+8|0;b[(K&o)>>1]=1;if((a[(u&n)+73>>0]|0)!=1?(Vd=jm(t)|0,(Vd|0)!=0):0){t=r;u=Vd;ie=1318;break c}if(!(a[(t&n)+25>>0]|0)){V=Sd;c[(V&p)>>2]=0;c[(V&p)+4>>2]=0;km(u,Sd);b[(qc&o)>>1]=0;c[(sc&p)>>2]=le;c[(uc&p)>>2]=0;u=nm(u,0,c[(Sd&p)>>2]|0,1,$c)|0;do if(!u){t=c[(vc&p)>>2]|0;u=a[(t&n)>>0]|0;if(u<<24>>24>-1){C=u&255;c[(qd&p)>>2]=C}else{mm(t,qd)|0;C=c[(qd&p)>>2]|0}if(!(C>>>0<3?1:(C|0)>(c[(wc&p)>>2]|0))){t=(c[(vc&p)>>2]|0)+(C+-1)|0;u=a[(t&n)>>0]|0;if(u<<24>>24>-1){u=u&255;c[(Nd&p)>>2]=u}else{mm(t,Nd)|0;u=c[(Nd&p)>>2]|0}if(!((u+-1|0)>>>0>8|(u|0)==7)){if(u>>>0>11)t=(u+-12|0)>>>1;else t=d[(u&n)+34336>>0]|0;v=c[(wc&p)>>2]|0;if(v>>>0>=(t+C|0)>>>0){om((c[(vc&p)>>2]|0)+(v-t)|0,u,Qd)|0;v=Qd;t=c[(v&p)>>2]|0;v=c[(v&p)+4>>2]|0;if((b[(qc&o)>>1]&9312)==0&(c[(uc&p)>>2]|0)==0){u=0;break}Qg($c);u=0;break}}}if(!((b[(qc&o)>>1]&9312)==0&(c[(uc&p)>>2]|0)==0))Qg($c);c[(ke&p)>>2]=68698;c[(ke&p)+4>>2]=10788;bd(11,13600,ke);u=11;t=0;v=0}else{t=0;v=0}while(0);if(u){t=r;ie=1318;break c}S=L;c[(S&p)>>2]=t;c[(S&p)+4>>2]=v;b[(K&o)>>1]=4;S=z;T=s;U=W;V=X;u=L}else{S=z;T=s;U=W;V=X;u=L}break}case 865:{ie=0;w=c[(C&p)>>2]|0;C=c[((c[(Xd&p)>>2]|0)+(K<<4)&p)+12>>2]|0;t=c[(C&p)+16>>2]|0;if(t)do{v=(c[(t&p)+8>>2]|0)+32|0;if((c[(v&p)>>2]|0)==(A|0))c[(v&p)>>2]=w;t=c[(t&p)>>2]|0}while((t|0)!=0);t=c[(C&p)+32>>2]|0;if(t)do{v=(c[(t&p)+8>>2]|0)+40|0;if((c[(v&p)>>2]|0)==(A|0))c[(v&p)>>2]=w;t=c[(t&p)>>2]|0}while((t|0)!=0);S=z;T=s;U=W;V=X;x=K+1&255;break}case 878:{ie=0;_m(le,u);S=z;T=s;U=W;V=X;u=J;break}case 881:{ie=0;V=c[(s+(r*20|0)&p)+4>>2]|0;c[(Zc&p)>>2]=le;c[(ia&p)>>2]=V;c[(ja&p)>>2]=je;u=c[(s+(r*20|0)&p)+16>>2]|0;c[(ke&p)>>2]=c[((c[(Xd&p)>>2]|0)+(V<<4)&p)>>2];c[(ke&p)+4>>2]=(V|0)==1?13184:13208;c[(ke&p)+8>>2]=u;u=uh(le,42048,ke)|0;if(!u){t=r;u=x;ie=882;break c}a[(ka&n)>>0]=1;c[(la&p)>>2]=0;t=Qe(le,u,22,Zc,0)|0;t=(t|0)==0?c[(la&p)>>2]|0:t;mg(le,u);a[(ka&n)>>0]=0;if(!t){S=z;T=s;U=W;V=X;u=J}else{s=t;t=r;u=x;ie=884;break c}break}case 886:{ie=0;kg(le,Ik((c[((c[(Xd&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<4)&p)+12>>2]|0)+8|0,c[(s+(r*20|0)&p)+16>>2]|0,0)|0);c[(Tb&p)>>2]=c[(Tb&p)>>2]|2;S=z;T=s;U=W;V=X;break}case 887:{ie=0;C=Ik((c[((c[(Xd&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<4)&p)+12>>2]|0)+24|0,c[(s+(r*20|0)&p)+16>>2]|0,0)|0;if(C){t=(c[(C&p)+12>>2]|0)+8|0;u=c[(t&p)>>2]|0;z:do if((u|0)==(C|0))c[(t&p)>>2]=c[(C&p)+20>>2];else{do{if(!u)break z;t=u+20|0;u=c[(t&p)>>2]|0}while((u|0)!=(C|0));c[(t&p)>>2]=c[(C&p)+20>>2]}while(0);Jk(le,C)}c[(Tb&p)>>2]=c[(Tb&p)>>2]|2;S=z;T=s;U=W;V=X;u=J;break}case 895:{ie=0;C=Ik((c[((c[(Xd&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<4)&p)+12>>2]|0)+40|0,c[(s+(r*20|0)&p)+16>>2]|0,0)|0;if(!C){S=z;T=s;U=W;V=X}else{t=c[(C&p)+20>>2]|0;if((t|0)==(c[(C&p)+24>>2]|0)){t=bn(t+8|0,c[(C&p)+4>>2]|0,ke)|0;if(!t)t=0;else t=c[(t&p)+8>>2]|0;v=t+64|0;while(1){V=c[(v&p)>>2]|0;t=V+32|0;if((V|0)==(C|0))break;else v=t}c[(v&p)>>2]=c[(t&p)>>2]}jg(le,C);c[(Tb&p)>>2]=c[(Tb&p)>>2]|2;S=z;T=s;U=W;V=X}break}case 903:{ie=0;L=c[(s+(t*20|0)&p)+8>>2]|0;v=mh(le,(L<<2)+4|0,0)|0;if(!v){y=ge;z=je;r=m;m=x;ie=1317;break a}A=c[(s+(t*20|0)&p)+12>>2]|0;r=c[(s+(t*20|0)&p)+4>>2]|0;M=z+(r*40|0)|0;if((L|0)>0){C=0;do{V=Vg(z+((C+r|0)*40|0)|0)|0;c[(v+(C<<2)&p)>>2]=V;C=C+1|0}while((C|0)!=(L|0));C=L}else C=0;c[(v+(C<<2)&p)>>2]=0;I=c[((c[(Xd&p)>>2]|0)+(d[(s+(t*20|0)&n)+3>>0]<<4)&p)+4>>2]|0;P=z+(A*40|0)|0;V=c[(P&p)>>2]|0;O=c[(I&p)+4>>2]|0;c[(O&p)+4>>2]=c[(I&p)>>2];I=c[(O&p)>>2]|0;w=c[((c[(I&p)+204>>2]|0)&p)+12>>2]|0;c[(Sd&p)>>2]=O;c[(ma&p)>>2]=I;I=c[(O&p)+44>>2]|0;c[(na&p)>>2]=I;c[(oa&p)>>2]=V;c[(pa&p)>>2]=0;c[(pa&p)+4>>2]=0;c[(pa&p)+8>>2]=0;c[(pa&p)+12>>2]=0;c[(pa&p)+16>>2]=0;do if(!I){A=0;C=0}else{J=(I>>>3)+1|0;H=qg(J,0)|0;if(!H){c[(sa&p)>>2]=0;A=0;C=1;break}fw(H|0,0,J|0)|0;c[(sa&p)>>2]=H;N=O+32|0;J=(((c[2514]|0)>>>0)/((c[(N&p)>>2]|0)>>>0)|0)+1|0;if(J>>>0<=I>>>0){V=H+(J>>>3)|0;a[(V&n)>>0]=d[(V&n)>>0]|1<<(J&7)}c[(ua&p)>>2]=Nd;c[(va&p)>>2]=Nd;c[(ta&p)>>2]=0;c[(wa&p)>>2]=0;c[(xa&p)>>2]=100;c[(ya&p)>>2]=1e9;a[(Aa&n)>>0]=0;a[(za&n)>>0]=2;c[(ra&p)>>2]=43592;C=c[((c[(O&p)+12>>2]|0)&p)+56>>2]|0;cn(Sd,1,d[(C&n)+33>>0]<<16|d[(C&n)+32>>0]<<24|d[(C&n)+34>>0]<<8|d[(C&n)+35>>0],d[(C&n)+37>>0]<<16|d[(C&n)+36>>0]<<24|d[(C&n)+38>>0]<<8|d[(C&n)+39>>0]);c[(ra&p)>>2]=0;C=c[(oa&p)>>2]|0;if(!((L|0)<1|(C|0)==0)){F=O+17|0;H=0;do{I=v+(H<<2)|0;J=c[(I&p)>>2]|0;if(J){if((a[(F&n)>>0]|0)!=0&(J|0)>1){dn(Sd,J,1,0);J=c[(I&p)>>2]|0}c[(ra&p)>>2]=43608;en(Sd,J,0,0)|0;c[(ra&p)>>2]=0;C=c[(oa&p)>>2]|0}H=H+1|0}while(!((H|0)>=(L|0)|(C|0)==0))}if(!((c[(na&p)>>2]|0)==0|(C|0)==0)){E=O+17|0;C=O+36|0;L=1;do{H=L>>>3;J=a[((c[(sa&p)>>2]|0)+H&n)>>0]|0;F=1<<(L&7);do if(!(J&255&F)){if(L>>>0<2)I=0;else{I=L+-2|0;I=I-((I>>>0)%(((((c[(C&p)>>2]|0)>>>0)/5|0)+1|0)>>>0)|0)|0;I=((I+1|0)==(((c[2514]|0)>>>0)/((c[(N&p)>>2]|0)>>>0)|0|0)?3:2)+I|0}if((I|0)==(L|0)?(a[(E&n)>>0]|0)!=0:0)break;c[(ke&p)>>2]=L;fn(Sd,43632,ke);J=a[((c[(sa&p)>>2]|0)+H&n)>>0]|0}while(0);do if(J&255&F){if(L>>>0<2)J=0;else{J=L+-2|0;J=J-((J>>>0)%(((((c[(C&p)>>2]|0)>>>0)/5|0)+1|0)>>>0)|0)|0;J=((J+1|0)==(((c[2514]|0)>>>0)/((c[(N&p)>>2]|0)>>>0)|0|0)?3:2)+J|0}if((J|0)!=(L|0))break;if(!(a[(E&n)>>0]|0))break;c[(ke&p)>>2]=L;fn(Sd,43656,ke)}while(0);L=L+1|0}while(!((c[(oa&p)>>2]|0)==0?1:L>>>0>(c[(na&p)>>2]|0)>>>0))}C=c[((c[((c[(O&p)>>2]|0)&p)+204>>2]|0)&p)+12>>2]|0;if((w|0)!=(C|0)){c[(ke&p)>>2]=w;c[(ke&p)+4>>2]=C;fn(Sd,43696,ke)}Wc(c[(sa&p)>>2]|0);if(c[(qa&p)>>2]|0){gn(ta);A=0;C=(c[(pa&p)>>2]|0)+1|0;break}C=c[(pa&p)>>2]|0;if(!C)gn(ta);A=tg(ta)|0}while(0);mg(le,v);U=P;U=dw(c[(U&p)>>2]|0,c[(U&p)+4>>2]|0,C|0,((C|0)<0)<<31>>31|0)|0;V=P;c[(V&p)>>2]=U;c[(V&p)+4>>2]=G;r=z+(r*40|0)+8|0;if(!(b[(r&o)>>1]&9312))b[(r&o)>>1]=1;else vg(M);if(C){if(!A){y=ge;z=je;r=m;m=x;ie=1317;break a}Xg(M,A,-1,1,1)|0}Yl(M,xb)|0;S=z;T=s;U=W;V=X;r=t;break}case 947:{ie=0;v=c[(s+(t*20|0)&p)+4>>2]|0;r=z+(v*40|0)|0;u=c[(s+(t*20|0)&p)+8>>2]|0;v=z+(v*40|0)+8|0;if((b[(v&o)>>1]&32)==0?(hn(r),(b[(v&o)>>1]&32)==0):0){y=ge;z=je;r=m;m=x;ie=1317;break a}S=z+(u*40|0)|0;jn(c[(r&p)>>2]|0,c[(S&p)>>2]|0,c[(S&p)+4>>2]|0);S=z;T=s;U=W;V=X;u=J;r=t;break}case 966:{ie=0;r=c[(s+(t*20|0)&p)+4>>2]|0;P=z+(r*40|0)|0;O=z+((c[(s+(t*20|0)&p)+12>>2]|0)*40|0)|0;N=c[(s+(t*20|0)&p)+16>>2]|0;r=z+(r*40|0)+8|0;if((b[(r&o)>>1]&32)==0?(hn(P),(b[(r&o)>>1]&32)==0):0){y=ge;z=je;r=m;m=x;ie=1317;break a}if(N){L=c[(P&p)>>2]|0;v=O;M=c[(v&p)>>2]|0;v=c[(v&p)+4>>2]|0;K=L+28|0;if((c[(K&p)>>2]|0)!=(N|0)){C=L+8|0;J=c[(C&p)>>2]|0;if(J){I=L+20|0;A=L+26|0;if(!(b[(A&o)>>1]&1))J=kn(J)|0;H=c[(I&p)>>2]|0;A:do if(!H){ld=J;rd=I;ie=978}else{while(1){I=H+12|0;F=c[(I&p)>>2]|0;if(!F)break;E=H+8|0;ln(F,ke,Sd);c[(I&p)>>2]=0;J=mn(c[(ke&p)>>2]|0,J)|0;H=c[(E&p)>>2]|0;if(!H){ld=J;rd=E;ie=978;break A}}c[(I&p)>>2]=nn(J)|0}while(0);if((ie|0)==978?(ie=0,Kc=on(L)|0,c[(rd&p)>>2]=Kc,(Kc|0)!=0):0){V=Kc;c[(V&p)>>2]=0;c[(V&p)+4>>2]=0;c[(Kc&p)+8>>2]=0;c[(Kc&p)+12>>2]=nn(ld)|0}c[(C&p)>>2]=0;c[(L&p)+12>>2]=0;b[(A&o)>>1]=e[(A&o)>>1]|1}c[(K&p)>>2]=N}C=c[(L&p)+20>>2]|0;B:do if(C){C:while(1){A=c[(C&p)+12>>2]|0;if(A)do{r=A;E=c[(r&p)>>2]|0;r=c[(r&p)+4>>2]|0;if((r|0)<(v|0)|(r|0)==(v|0)&E>>>0>>0)A=A+8|0;else{if(!((r|0)>(v|0)|(r|0)==(v|0)&E>>>0>M>>>0))break C;A=A+12|0}A=c[(A&p)>>2]|0}while((A|0)!=0);C=c[(C&p)+8>>2]|0;if(!C)break B}S=z;T=s;U=W;V=X;r=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;break q}while(0);if((N|0)>-1)C=O;else{S=z;T=s;U=W;V=X;r=t;break}}else C=O;S=C;jn(c[(P&p)>>2]|0,c[(S&p)>>2]|0,c[(S&p)+4>>2]|0);S=z;T=s;U=W;V=X;r=t;break}case 993:{ie=0;K=c[(s+(r*20|0)&p)+16>>2]|0;I=c[(s+(r*20|0)&p)+12>>2]|0;L=z+(I*40|0)|0;if((a[(s+(r*20|0)&n)+3>>0]|0)!=0?(Lc=c[(K&p)+20>>2]|0,nd=c[(sb&p)>>2]|0,(nd|0)!=0):0){t=nd;while(1){if((c[(t&p)+28>>2]|0)==(Lc|0)){S=z;T=s;U=W;V=X;break q}t=c[(t&p)+4>>2]|0;if(!t){t=r;break}}}else t=r;r=c[(tb&p)>>2]|0;if((r|0)>=(c[(Ba&p)>>2]|0)){u=x;ie=998;break c}E=z+(I*40|0)+8|0;if(!(b[(E&o)>>1]&64)){C=K+12|0;A=c[(C&p)>>2]|0;r=A+(c[(K&p)+8>>2]|0)|0;s=K+16|0;A=(A<<2)+80+(c[(s&p)>>2]|0)+(r*40|0)|0;J=mh(le,A,((A|0)<0)<<31>>31)|0;if(!J){y=ge;z=je;r=m;m=x;ie=1317;break a}fw(J|0,0,A|0)|0;if(!((b[(E&o)>>1]&9312)==0?(c[(z+(I*40|0)&p)+24>>2]|0)==0:0))Qg(L);b[(E&o)>>1]=64;c[(L&p)>>2]=J;c[(J&p)>>2]=f;c[(J&p)+60>>2]=r;c[(J&p)+64>>2]=c[(C&p)>>2];c[(J&p)+44>>2]=t;c[(J&p)+16>>2]=c[(Nc&p)>>2];c[(J&p)+52>>2]=c[(Ca&p)>>2];c[(J&p)+24>>2]=c[(Ib&p)>>2];c[(J&p)+40>>2]=c[(Da&p)>>2];c[(J&p)+8>>2]=c[(zc&p)>>2];c[(J&p)+48>>2]=c[(Ea&p)>>2];c[(J&p)+28>>2]=c[(K&p)+20>>2];c[(J&p)+20>>2]=c[(Hb&p)>>2];c[(J&p)+56>>2]=c[(Fa&p)>>2];z=J+80|0;r=z+(r*40|0)|0;if((z|0)!=(r|0))do{b[(z&o)+8>>1]=128;c[(z&p)+32>>2]=le;z=z+40|0}while((z|0)!=(r|0));r=c[(tb&p)>>2]|0;z=J}else{s=K+16|0;z=c[(L&p)>>2]|0}c[(tb&p)>>2]=r+1;c[(z&p)+4>>2]=c[(sb&p)>>2];S=z+32|0;c[(S&p)>>2]=m;c[(S&p)+4>>2]=l;c[(z&p)+68>>2]=c[(ub&p)>>2];c[(z&p)+72>>2]=c[((c[(f&p)>>2]|0)&p)+80>>2];c[(ub&p)>>2]=0;c[(sb&p)>>2]=z;S=z+40|0;c[(Nc&p)>>2]=S;U=c[(z&p)+60>>2]|0;c[(Ca&p)>>2]=U;V=c[(z&p)+64>>2]&65535;c[(Da&p)>>2]=V;U=S+((U+1|0)*40|0)|0;c[(Ib&p)>>2]=U;T=c[(K&p)>>2]|0;c[(zc&p)>>2]=T;c[(Ea&p)>>2]=c[(K&p)+4>>2];V=U+(V<<2)|0;c[(Hb&p)>>2]=V;U=c[(s&p)>>2]|0;c[(Fa&p)>>2]=U;fw(V|0,0,U|0)|0;U=W;V=X;r=-1;break}case 1009:{ie=0;S=c[(sb&p)>>2]|0;Zl(u,(c[(S&p)+16>>2]|0)+(((c[((c[(S&p)+8>>2]|0)+((c[(S&p)+44>>2]|0)*20|0)&p)+4>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]|0)|0)*40|0)|0,4096);S=z;T=s;U=W;V=X;break}case 1010:{ie=0;if(c[(Tb&p)>>2]&16777216){T=c[(s+(r*20|0)&p)+8>>2]|0;S=Rb;T=jw(c[(S&p)>>2]|0,c[(S&p)+4>>2]|0,T|0,((T|0)<0)<<31>>31|0)|0;S=Rb;c[(S&p)>>2]=T;c[(S&p)+4>>2]=G;S=z;T=s;U=W;V=X;u=J;break}t=c[(s+(r*20|0)&p)+8>>2]|0;u=((t|0)<0)<<31>>31;if(!(c[(s+(r*20|0)&p)+4>>2]|0)){T=_d;T=jw(c[(T&p)>>2]|0,c[(T&p)+4>>2]|0,t|0,u|0)|0;S=_d;c[(S&p)>>2]=T;c[(S&p)+4>>2]=G;S=z;T=s;U=W;V=X;u=J;break}else{T=Qb;T=jw(c[(T&p)>>2]|0,c[(T&p)+4>>2]|0,t|0,u|0)|0;S=Qb;c[(S&p)>>2]=T;c[(S&p)+4>>2]=G;S=z;T=s;U=W;V=X;u=J;break}}case 1015:{ie=0;if(!(c[(s+(r*20|0)&p)+4>>2]|0)){V=_d;if(!((c[(V&p)>>2]|0)==0&(c[(V&p)+4>>2]|0)==0)){S=z;T=s;U=W;V=X;break}V=Rb;if(!((c[(V&p)>>2]|0)==0&(c[(V&p)+4>>2]|0)==0)){S=z;T=s;U=W;V=X;break}S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0;break}else{V=Qb;if(!((c[(V&p)>>2]|0)==0&(c[(V&p)+4>>2]|0)==0)){S=z;T=s;U=W;V=X;break}V=Rb;if(!((c[(V&p)>>2]|0)==0&(c[(V&p)+4>>2]|0)==0)){S=z;T=s;U=W;V=X;break}S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0;break}}case 1022:{ie=0;t=c[(sb&p)>>2]|0;if(!t)v=z+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)|0;else{while(1){u=c[(t&p)+4>>2]|0;if(!u)break;else t=u}v=(c[(t&p)+16>>2]|0)+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)|0}U=Vg(v)|0;V=v;c[(V&p)>>2]=U;c[(V&p)+4>>2]=G;V=v+8|0;b[(V&o)>>1]=e[(V&o)>>1]&48640|4;V=c[(s+(r*20|0)&p)+8>>2]|0;U=z+(V*40|0)|0;t=Vg(U)|0;u=G;c[(U&p)>>2]=t;c[(U&p)+4>>2]=u;V=z+(V*40|0)+8|0;b[(V&o)>>1]=e[(V&o)>>1]&48640|4;V=v;U=c[(V&p)+4>>2]|0;if((U|0)<(u|0)|((U|0)==(u|0)?(c[(V&p)>>2]|0)>>>0>>0:0)){S=v;c[(S&p)>>2]=t;c[(S&p)+4>>2]=u;S=z;T=s;U=W;V=X;u=L}else{S=z;T=s;U=W;V=X;u=L}break}case 1028:{ie=0;V=z+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)|0;U=c[(V&p)+4>>2]|0;if((U|0)>0|(U|0)==0&(c[(V&p)>>2]|0)>>>0>0){S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0}else{S=z;T=s;U=W;V=X}break}case 1030:{ie=0;T=c[(s+(r*20|0)&p)+12>>2]|0;U=z+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)|0;V=U;T=jw(c[(V&p)>>2]|0,c[(V&p)+4>>2]|0,T|0,((T|0)<0)<<31>>31|0)|0;V=G;c[(U&p)>>2]=T;c[(U&p)+4>>2]=V;if((V|0)<0){S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0}else{S=z;T=s;U=W;V=X}break}case 1032:{ie=0;t=z+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)|0;v=t;u=c[(v&p)>>2]|0;v=c[(v&p)+4>>2]|0;if((u|0)==0&(v|0)==0){S=z;T=s;U=W;V=X;u=J}else{T=c[(s+(r*20|0)&p)+12>>2]|0;T=jw(T|0,((T|0)<0)<<31>>31|0,u|0,v|0)|0;S=t;c[(S&p)>>2]=T;c[(S&p)+4>>2]=G;S=z;T=s;U=W;V=X;u=J;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0}break}case 1034:{ie=0;T=z+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)|0;U=T;U=jw(c[(U&p)>>2]|0,c[(U&p)+4>>2]|0,-1,-1)|0;V=G;c[(T&p)>>2]=U;c[(T&p)+4>>2]=V;if((U|0)==0&(V|0)==0){S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0}else{S=z;T=s;U=W;V=X}break}case 1036:{ie=0;T=z+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)|0;V=T;U=c[(V&p)>>2]|0;V=c[(V&p)+4>>2]|0;S=jw(U|0,V|0,1,0)|0;c[(T&p)>>2]=S;c[(T&p)+4>>2]=G;if((U|0)==0&(V|0)==0){S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0}else{S=z;T=s;U=W;V=X}break}case 1157:{ie=0;S=z;T=s;U=W;V=X;r=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;break}case 1158:{ie=0;if(c[(s+(r*20|0)&p)+4>>2]|0){b[(Yd&o)>>1]=b[(Yd&o)>>1]|8;S=z;T=s;U=W;V=X;break}t=c[(Vb&p)>>2]|0;if(!t){S=z;T=s;U=W;V=X}else{do{V=t+88|0;b[(V&o)>>1]=b[(V&o)>>1]|8;t=c[(t&p)+52>>2]|0}while((t|0)!=0);S=z;T=s;U=W;V=X}break}case 1166:{ie=0;J=(c[(w&p)>>2]|0)+72|0;t=c[(J&p)>>2]|0;D:do if(t){while(1){if((c[(t&p)+4>>2]|0)==(A|0)?(c[(t&p)>>2]|0)==(C|0):0)break;t=c[(t&p)+12>>2]|0;if(!t){ie=1171;break D}}if(!t)ie=1171}else ie=1171;while(0);if((ie|0)==1171){ie=0;t=qg(16,0)|0;if(!t){t=r;s=7;u=x;ie=1309;break c}U=t+0|0;V=U+12|0;do{a[(U&n)>>0]=0;U=U+1|0}while((U|0)<(V|0));c[(t&p)+4>>2]=A;c[(t&p)>>2]=C;c[(t&p)+12>>2]=c[(J&p)>>2];c[(J&p)>>2]=t}t=t+8|0;if((d[(t&n)>>0]|0)<(v&255)){a[(t&n)>>0]=v;S=z;T=s;U=W;V=X}else{S=z;T=s;U=W;V=X}break}case 1213:{ie=0;c[(sd&p)>>2]=0;v=c[((c[(s+(r*20|0)&p)+16>>2]|0)&p)+8>>2]|0;if(!v){t=r;s=6;u=x;ie=1309;break c}w=c[(v&p)>>2]|0;if(!w){t=r;s=6;u=x;ie=1309;break c}C=rc[c[(w&p)+24>>2]&127](v,sd)|0;Mm(f,v);if(C){t=r;s=C;u=x;ie=1309;break c}c[(c[(sd&p)>>2]&p)>>2]=v;t=xm(f,c[(s+(r*20|0)&p)+4>>2]|0,0,-1,0)|0;if(!t){a[(ge&n)>>0]=1;lc[c[(w&p)+28>>2]&127](c[(sd&p)>>2]|0)|0;S=z;T=s;U=W;V=X;break}else{c[(t&p)+32>>2]=c[(sd&p)>>2];S=v+4|0;c[(S&p)>>2]=(c[(S&p)>>2]|0)+1;S=z;T=s;U=W;V=X;break}}case 1226:{ie=0;t=z+(C*40|0)+8|0;if(!(b[(t&o)>>1]&9312)){b[(t&o)>>1]=1;S=z;T=s;U=W;V=X;break}else{vg(A);S=z;T=s;U=W;V=X;break}}case 1257:{ie=0;S=u;c[(S&p)>>2]=c[((c[((c[((c[(Xd&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<4)&p)+4>>2]|0)&p)+4>>2]|0)&p)+44>>2];c[(S&p)+4>>2]=0;S=z;T=s;U=W;V=X;break}case 1258:{ie=0;v=c[((c[(Xd&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<4)&p)+4>>2]|0;t=c[(s+(r*20|0)&p)+12>>2]|0;u=c[(v&p)+4>>2]|0;if(!t)t=0;else{V=c[(u&p)+44>>2]|0;t=V>>>0>>0?t:V}c[(u&p)+4>>2]=c[(v&p)>>2];u=(c[(u&p)>>2]|0)+156|0;if((t|0)>0)c[(u&p)>>2]=t;else t=c[(u&p)>>2]|0;S=J;c[(S&p)>>2]=t;c[(S&p)+4>>2]=((t|0)<0)<<31>>31;S=z;T=s;U=W;V=X;u=J;break}case 1264:{ie=0;r=c[(s+(t*20|0)&p)+8>>2]|0;r=(r|0)==0?t:r+-1|0;if((c[(Sa&p)>>2]|0)!=0?(b[(Yd&o)>>1]&512)==0:0){t=c[(s+(t*20|0)&p)+16>>2]|0;if(!t){t=c[(ce&p)>>2]|0;if(!t){S=z;T=s;U=W;V=X;u=L;break}}c[(Sd&p)>>2]=0;F=c[(f&p)>>2]|0;v=c[(F&p)+88>>2]|0;c[(fb&p)>>2]=Nd;c[(gb&p)>>2]=Nd;c[(hb&p)>>2]=0;c[(ib&p)>>2]=100;c[(jb&p)>>2]=v;a[(kb&n)>>0]=1;a[(lb&n)>>0]=0;c[(qd&p)>>2]=F;v=a[(t&n)>>0]|0;u=v<<24>>24==0;E:do if((c[(F&p)+160>>2]|0)>1){if(!u)while(1){u=t;do{u=u+1|0;if(v<<24>>24==10)break;v=a[(u&n)>>0]|0}while(v<<24>>24!=0);Sk(qd,42288,3);Sk(qd,t,u-t|0);v=a[(u&n)>>0]|0;if(!(v<<24>>24))break;else t=u}}else if(!u){H=F+62|0;K=1;do{F:do if(!(v<<24>>24)){A=0;u=0}else{C=t;u=0;while(1){A=Cn(C,ke)|0;if((c[(ke&p)>>2]|0)==135)break F;u=A+u|0;C=C+A|0;if(!(a[(C&n)>>0]|0)){A=0;break}}}while(0);Sk(qd,t,u);C=t+u|0;if(!A)break E;do if((a[(C&n)>>0]|0)==63)if((A|0)>1){Dn(t+(u+1)|0,Sd)|0;C=c[(Sd&p)>>2]|0;break}else{c[(Sd&p)>>2]=K;C=K;break}else{C=qh(f,C,A)|0;c[(Sd&p)>>2]=C}while(0);t=t+(u+A)|0;K=C+1|0;J=C+-1|0;I=c[(Ab&p)>>2]|0;C=I+(J*40|0)|0;A=e[(I+(J*40|0)&o)+8>>1]|0;do if(!(A&1)){if(A&4){T=C;U=c[(T&p)+4>>2]|0;V=ke;c[(V&p)>>2]=c[(T&p)>>2];c[(V&p)+4>>2]=U;En(qd,0,19920,ke);break}if(A&8){h[(k&q)>>3]=+h[(C&q)>>3];c[(ke&p)>>2]=c[(k&p)>>2];c[(ke&p)+4>>2]=c[(k&p)+4>>2];En(qd,0,20272,ke);break}if(!(A&2)){if(A&16384){c[(ke&p)>>2]=c[(C&p)>>2];En(qd,0,42304,ke);break}Sk(qd,42320,2);E=c[(I+(J*40|0)&p)+12>>2]|0;if((E|0)>0){C=I+(J*40|0)+16|0;A=0;do{c[(ke&p)>>2]=d[((c[(C&p)>>2]|0)+A&n)>>0];En(qd,0,42328,ke);A=A+1|0}while((A|0)!=(E|0))}Sk(qd,42336,1);break}else{E=a[(H&n)>>0]|0;if(E<<24>>24==1){V=c[(I+(J*40|0)&p)+16>>2]|0;c[(ke&p)>>2]=c[(I+(J*40|0)&p)+12>>2];c[(ke&p)+4>>2]=V;En(qd,0,42296,ke);break}U=Od+0|0;V=U+40|0;do{c[(U&p)>>2]=0;U=U+4|0}while((U|0)<(V|0));c[(nb&p)>>2]=F;Xg(Od,c[(I+(J*40|0)&p)+16>>2]|0,c[(I+(J*40|0)&p)+12>>2]|0,E,0)|0;V=c[(ob&p)>>2]|0;if(!((V&2|0)==0|(V&16711680|0)==65536))Bn(Od,1)|0;V=c[(qb&p)>>2]|0;c[(ke&p)>>2]=c[(pb&p)>>2];c[(ke&p)+4>>2]=V;En(qd,0,42296,ke);if((b[(ob&o)>>1]&9312)==0&(c[(rb&p)>>2]|0)==0)break;Qg(Od);break}}else Sk(qd,20304,4);while(0);v=a[(t&n)>>0]|0}while(v<<24>>24!=0)}while(0);S=tg(qd)|0;jc[c[(Sa&p)>>2]&15](c[(mb&p)>>2]|0,S);mg(le,S);S=z;T=s;U=W;V=X;u=L}else{S=z;T=s;U=W;V=X;u=L}break}}if((ie|0)==28){ie=0;z=s+(r*20|0)+4|0;t=c[(z&p)>>2]|0;if(t){y=z;ie=34;break}z=c[(sb&p)>>2]|0;if(!z){ie=30;break}c[(sb&p)>>2]=c[(z&p)+4>>2];c[(tb&p)>>2]=(c[(tb&p)>>2]|0)+-1;l=c[(ub&p)>>2]|0;c[(vb&p)>>2]=l;c[(wb&p)>>2]=(c[(wb&p)>>2]|0)+l;z=Xl(z)|0;l=ne;t=c[(zc&p)>>2]|0;if((c[(s+(r*20|0)&p)+8>>2]|0)==4)r=(c[(t+(z*20|0)&p)+8>>2]|0)+-1|0;else r=z;m=c[(l&p)>>2]|0;l=c[(l&p)+4>>2]|0;S=c[(Nc&p)>>2]|0;T=t;U=W;V=X}else if((ie|0)==488){ie=0;u=sm(le,C,A)|0;if(!u){S=z;T=s;U=W;V=X;u=E}else{t=r;ie=1318;break}}z=S;s=T;W=U;X=V;t=r+1|0}switch(ie|0){case 30:{c[(me&p)>>2]=t;a[(fe&n)>>0]=c[(s+(r*20|0)&p)+8>>2];c[(he&p)>>2]=r;ie=41;break}case 34:{c[(me&p)>>2]=t;a[(fe&n)>>0]=c[(s+(r*20|0)&p)+8>>2];c[(he&p)>>2]=r;t=a[(s+(r*20|0)&n)+3>>0]|0;if(!(t<<24>>24)){s=c[(s+(r*20|0)&p)+16>>2]|0;if(!s){s=0;ie=39}else{c[(ke&p)>>2]=s;dh(je,le,10344,ke)}}else{u=c[((t&255)+-1<<2&p)+41536>>2]|0;t=c[(s+(r*20|0)&p)+16>>2]|0;if(!t){s=u;ie=39}else{c[(ke&p)>>2]=u;c[(ke&p)+4>>2]=t;dh(je,le,41624,ke)}}if((ie|0)==39){c[(ke&p)>>2]=s;dh(je,le,41656,ke)}ie=c[(y&p)>>2]|0;qd=c[(ce&p)>>2]|0;rd=c[(je&p)>>2]|0;c[(ke&p)>>2]=r;c[(ke&p)+4>>2]=qd;c[(ke&p)+8>>2]=rd;bd(ie,41600,ke);ie=41;break}case 80:{x=c[(be&p)>>2]|0;if(!((x|0)==0|g>>>0>>0)?(lc[x&127](c[(Zd&p)>>2]|0)|0)!=0:0){r=m;s=9;m=u;ie=1311;break a}rd=_d;qd=c[(rd&p)+4>>2]|0;if((qd|0)>0|(qd|0)==0&(c[(rd&p)>>2]|0)>>>0>0){s=c[(f&p)>>2]|0;c[(me&p)>>2]=787;a[(fe&n)>>0]=2;dh(je,s,34376,ke);s=1;ie=1309;break}x=$l(f,1)|0;if(!x){c[($d&p)>>2]=(c[($d&p)>>2]|0)+2|1;y=c[(s+(t*20|0)&p)+4>>2]|0;c[(de&p)>>2]=z+(y*40|0);r=s+(t*20|0)+8|0;if((c[(r&p)>>2]|0)>0){x=0;do{v=x+y|0;w=z+(v*40|0)|0;v=z+(v*40|0)+8|0;s=b[(v&o)>>1]|0;if(s&4096){if(Vl(w)|0){y=ge;z=je;r=m;m=u;ie=1317;break a}s=b[(v&o)>>1]|0}if((s&514)==2)am(w)|0;x=x+1|0}while((x|0)<(c[(r&p)>>2]|0))}if(a[(ge&n)>>0]|0){y=ge;z=je;r=m;m=u;ie=1317;break a}c[(he&p)>>2]=t+1;r=m;m=g;g=100;break a}else{s=x;ie=1309}break}case 313:{c[(ke&p)>>2]=73058;c[(ke&p)+4>>2]=10788;bd(11,13600,ke);s=11;ie=1309;break}case 343:{c[(ke&p)>>2]=73142;c[(ke&p)+4>>2]=10788;bd(11,13600,ke);s=11;ie=1309;break}case 447:{dh(je,le,41712,ke);t=r;s=5;ie=1309;break}case 460:{c[(ke&p)>>2]=s;dh(je,le,41768,ke);s=1;ie=1309;break}case 462:{dh(je,le,41792,ke);s=5;ie=1309;break}case 467:{c[(he&p)>>2]=g;a[(ee&n)>>0]=0;c[(me&p)>>2]=5;g=5;break a}case 489:{v=c[(s+(t*20|0)&p)+4>>2]|0;s=c[(s+(t*20|0)&p)+8>>2]|0;g=(v|0)!=0;if(g){s=(s|0)!=0;if(!(s|(a[(ee&n)>>0]|0)!=0))if((c[(ae&p)>>2]|0)>0){dh(je,le,41848,ke);g=m;m=r;s=5;ie=1309;break}else s=0}else s=(s|0)!=0;if((v|0)==(d[(ee&n)>>0]|0)){if(g)g=s?41952:42e3;else g=41904;dh(je,le,g,ke);g=m;m=r;s=1;ie=1309;break}if(!s){g=tm(f,1)|0;if(g)break a;a[(ee&n)>>0]=v;if((Rl(f)|0)==5){c[(he&p)>>2]=t;a[(ee&n)>>0]=1-v;c[(me&p)>>2]=5;g=5;break a}}else{Kl(le,516);a[(ee&n)>>0]=1}Ll(le);g=(c[(me&p)>>2]|0)==0?101:1;break a}case 508:{c[(he&p)>>2]=g;c[(me&p)>>2]=5;g=5;break a}case 522:{mg(le,c[(je&p)>>2]|0);c[(je&p)>>2]=kh(le,16040)|0;s=c[(s&p)>>2]|0;if((c[(c[((c[(Xd&p)>>2]|0)+(s<<4)&p)+12>>2]&p)>>2]|0)!=(v|0))vm(le,s);b[(Yd&o)>>1]=b[(Yd&o)>>1]|8;s=17;ie=1309;break}case 542:{c[(ke&p)>>2]=73997;c[(ke&p)+4>>2]=10788;bd(11,13600,ke);u=11;x=s;ie=1318;break}case 560:{c[(s&p)+56>>2]=0;s=7;ie=1309;break}case 832:{a[(fe&n)>>0]=2;s=6;ie=1309;break}case 882:{Eg(le);y=ge;z=je;r=m;m=u;ie=1317;break a}case 884:{Eg(le);if((s|0)==7){y=ge;z=je;r=m;m=u;ie=1317;break a}else ie=1309;break}case 998:{dh(je,le,42112,ke);s=1;ie=1309;break}case 1080:{c[(ke&p)>>2]=s?42208:42216;dh(je,le,42152,ke);s=1;ie=1309;break}case 1101:{dh(je,le,42344,ke);s=1;ie=1309;break}case 1103:{dh(je,le,42384,ke);s=1;ie=1309;break}case 1145:{c[(ke&p)>>2]=56343;c[(ke&p)+4>>2]=10788;bd(11,13600,ke);s=11;ie=1309;break}case 1316:{dh(je,le,10096,ke);r=m;s=18;m=u;ie=1311;break a}}if((ie|0)==41)if((Rl(f)|0)==5){c[(me&p)>>2]=5;r=m;m=g;g=5;break a}else{r=m;m=g;g=(c[(me&p)>>2]|0)!=0?1:101;break a}else if((ie|0)==1309){r=m;t=t+1|0;m=u;ie=1311;break a}else if((ie|0)==1318){u=(a[(ge&n)>>0]|0)==0?u:7;if((u|0)==3082){r=m;s=3082;m=x;ie=1311;break a}else if((u|0)!=516){r=u&255;if(r>>>0>26|(r|0)==2)s=16328;else s=c[(r<<2&p)+15488>>2]|0}else s=16344;c[(ke&p)>>2]=s;dh(je,le,10344,ke);r=m;s=u;m=x;ie=1311;break a}}else{u=f+44|0;r=m;g=0;t=0;m=0}while(0);c[(me&p)>>2]=9;c[(ke&p)>>2]=15832;dh(u,le,10344,ke);s=9;ie=1311}while(0);if((ie|0)==1317){a[(y&n)>>0]=1;dh(z,le,15776,ke);s=7;ie=1311}if((ie|0)==1311){c[(me&p)>>2]=s;qd=c[(f&p)+168>>2]|0;rd=c[(f&p)+44>>2]|0;c[(ke&p)>>2]=t;c[(ke&p)+4>>2]=qd;c[(ke&p)+8>>2]=rd;bd(s,42256,ke);Rl(f)|0;if((s|0)==3082)a[(le&n)+65>>0]=1;if(!(m<<24>>24)){m=g;g=1}else{vm(le,(m&255)+-1|0);m=g;g=1}}rd=ne;c[(rd&p)>>2]=r;c[(rd&p)+4>>2]=l;rd=f+124|0;c[(rd&p)>>2]=(c[(rd&p)>>2]|0)+m;i=oe;return g|0} function Ev(e){e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=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=e+20|0;u=e+14|0;f=a[(u&n)>>0]|0;z=e+13|0;g=a[(z&n)>>0]|0;a:do if((f&255)>(g&255))f=0;else{B=e+4|0;C=e+16|0;v=e+8|0;w=e+12|0;x=e+24|0;y=e+28|0;i=f&255;j=c[(B&p)>>2]|0;h=c[(D&p)>>2]|0;b:while(1){t=c[(e+(i+-2<<2)&p)+24>>2]|0;s=c[(e+(i+-1<<2)&p)+24>>2]|0;if(j){while(1){r=j+12|0;if((h|0)<(c[(r&p)>>2]|0)){g=h;f=(c[(j&p)+20>>2]|0)+(h*48|0)|0;while(1){do if((c[(f&p)+8>>2]|0)==(t|0)?(c[(f&p)+12>>2]|0)==(s|0):0){if((d[(u&n)>>0]|0)>=3?(c[((c[(f&p)>>2]|0)&p)+4>>2]&1|0)!=0:0)break;q=f+18|0;h=b[(q&o)>>1]|0;if((h&1024)!=0?(A=a[(z&n)>>0]|0,(A&255)<22):0){i=c[((c[(f&p)>>2]|0)&p)+16>>2]|0;c:do if(!i)i=0;else while(1){k=c[(i&p)+4>>2]|0;if(!(k&4096))break c;if(!(k&262144))i=i+12|0;else i=c[((c[(i&p)+20>>2]|0)&p)+4>>2]|0;i=c[(i&p)>>2]|0;if(!i){i=0;break}}while(0);d:do if(!(A<<24>>24)){m=0;k=0}else{l=c[(i&p)+28>>2]|0;m=i+32|0;k=0;while(1){if((c[(e+(k<<2)&p)+24>>2]|0)==(l|0)?(c[(e+((k|1)<<2)&p)+24>>2]|0)==(b[(m&o)>>1]|0):0){m=A;break d}k=k+2|0;if((k|0)>=(A&255|0)){m=A;break}}}while(0);if((k|0)==(m&255|0)){c[(e+(k<<2)&p)+24>>2]=c[(i&p)+28>>2];c[(e+((k|1)<<2)&p)+24>>2]=b[(i&o)+32>>1];a[(z&n)>>0]=(d[(z&n)>>0]|0)+2}}i=h&65535;if(i&c[(C&p)>>2]){if((c[(v&p)>>2]|0)!=0&(i&128|0)==0){l=c[(c[(j&p)>>2]&p)>>2]|0;k=c[(f&p)>>2]|0;i=a[(w&n)>>0]|0;h=(nv(k)|0)<<24>>24;if((h|0)==66){if(i<<24>>24!=66)break}else if((h|0)!=65?i<<24>>24<=66:0)break;h=Ou(l,c[(k&p)+12>>2]|0,c[(k&p)+16>>2]|0)|0;if(!h)h=c[((c[(l&p)>>2]|0)&p)+8>>2]|0;if(dd(c[(h&p)>>2]|0,c[(v&p)>>2]|0)|0)break;h=b[(q&o)>>1]|0}if(!(h&2))break b;h=c[((c[(f&p)>>2]|0)&p)+16>>2]|0;if((a[(h&n)>>0]|0)!=-102)break b;if((c[(h&p)+28>>2]|0)!=(c[(x&p)>>2]|0))break b;if((b[(h&o)+32>>1]|0)!=(c[(y&p)>>2]|0))break b}}while(0);g=g+1|0;if((g|0)>=(c[(r&p)>>2]|0))break;else f=f+48|0}g=c[(B&p)>>2]|0}else g=j;j=c[(g&p)+4>>2]|0;c[(B&p)>>2]=j;if(!j)break;else h=0}f=a[(u&n)>>0]|0;g=a[(z&n)>>0]|0}j=c[(e&p)>>2]|0;c[(B&p)>>2]=j;h=(f&255)+2|0;f=h&255;a[(u&n)>>0]=f;if((f&255)>(g&255)){f=0;break a}else{i=h&255;h=0}}c[(D&p)>>2]=g+1}while(0);return f|0}function Fv(d,f){d=d|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0,m=0,q=0;g=c[(d&p)>>2]|0;l=c[(c[(g&p)>>2]&p)>>2]|0;d=c[(d&p)+16>>2]|0;a:do if(!d){g=g+16|0;i=c[(g&p)>>2]|0;k=f+36|0;if((c[(k&p)>>2]&512|0)!=0&(i|0)!=0){d=f+20|0;j=f+22|0;h=a[(f&n)+16>>0]|0;do{do if((a[(i&n)+16>>0]|0)==h<<24>>24?(c[(i&p)+36>>2]&512|0)!=0:0){if(Tv(i,f)|0){b[(d&o)>>1]=b[(i&o)+20>>1]|0;b[(j&o)>>1]=(e[(i&o)+22>>1]|0)+65535;break}if(Tv(f,i)|0){b[(d&o)>>1]=b[(i&o)+20>>1]|0;b[(j&o)>>1]=(e[(i&o)+22>>1]|0)+1}}while(0);i=c[(i&p)+52>>2]|0}while((i|0)!=0)}d=Uv(g,f)|0;if(d){g=c[(d&p)>>2]|0;b:do if(g){d=g+52|0;if(c[(d&p)>>2]|0)do{d=Uv(d,f)|0;if(!d)break b;h=c[(d&p)>>2]|0;if(!h)break b;c[(d&p)>>2]=c[(h&p)+52>>2];Ju(l,h);mg(l,h)}while((c[(d&p)>>2]|0)!=0)}else{g=mh(l,72,0)|0;c[(d&p)>>2]=g;if(!g){d=7;break a}c[(g&p)+48>>2]=g+56;b[(g&o)+40>>1]=0;b[(g&o)+44>>1]=3;c[(g&p)+36>>2]=0;c[(g&p)+52>>2]=0}while(0);Lv(l,g);do if(!(Nu(l,g,e[(f&o)+40>>1]|0)|0)){h=g+0|0;d=f+0|0;i=h+44|0;do{c[(h&p)>>2]=c[(d&p)>>2];h=h+4|0;d=d+4|0}while((h|0)<(i|0));kw(c[(g&p)+48>>2]|0,c[(f&p)+48>>2]|0,e[(g&o)+40>>1]<<2|0)|0;d=c[(k&p)>>2]|0;if(d&1024){a[(f&n)+28>>0]=0;break}if(d&16384)c[(f&p)+28>>2]=0}else{d=g+24|0;c[(d&p)>>2]=0;c[(d&p)+4>>2]=0;c[(d&p)+8>>2]=0}while(0);if(((c[(g&p)+36>>2]&1024|0)==0?(m=g+28|0,q=c[(m&p)>>2]|0,(q|0)!=0):0)?(c[(q&p)+40>>2]|0)==0:0){c[(m&p)>>2]=0;d=0}else d=0}else d=0}else{g=f;Kv(d,c[(g&p)>>2]|0,c[(g&p)+4>>2]|0,b[(f&o)+20>>1]|0,b[(f&o)+22>>1]|0);d=0}while(0);return d|0}function Gv(a,b){a=a|0;b=b|0;var c=0,e=0;c=a<<16>>16;e=b<<16>>16;do if(a<<16>>16>16)if((e|0)<=(c+49|0))if((e|0)>(c+31|0)){a=e+1&65535;break}else{a=(d[(e-c&n)+34032>>0]|0)+e&65535;break}else a=b;else if((c|0)<=(e+49|0))if((c|0)>(e+31|0)){a=c+1&65535;break}else{a=(d[(c-e&n)+34032>>0]|0)+c&65535;break}while(0);return a|0}function Hv(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0;do if(!(Cu(b,d,e)|0))f=1;else{f=a[(d&n)>>0]|0;if(f<<24>>24==71){if(Hv(b,c[(d&p)+12>>2]|0,e)|0){f=1;break}if(Hv(b,c[(d&p)+16>>2]|0,e)|0){f=1;break}if(f<<24>>24==77)g=6}else if(f<<24>>24==77)g=6;if(((g|0)==6?(Cu(c[(b&p)+12>>2]|0,c[(d&p)+12>>2]|0,e)|0)==0:0)?(f=a[(b&n)>>0]|0,!(f<<24>>24==73|f<<24>>24==76)):0){f=1;break}f=0}while(0);return f|0}function Iv(a,d,f){a=a|0;d=d|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0;x=i;i=i+16|0;if((i|0)>=(j|0))fa();w=x;u=d;v=d+8|0;g=v;t=~(c[(g&p)>>2]|c[(u&p)>>2]);u=~(c[(g&p)+4>>2]|c[(u&p)+4>>2]);g=c[(a&p)+12>>2]|0;r=a+20|0;a:do if((g|0)>0){s=d+40|0;a=d+22|0;q=d+48|0;d=0;n=c[(r&p)>>2]|0;while(1){if(b[(n&o)+20>>1]&2)break a;m=n+40|0;l=c[(m&p)>>2]|0;m=c[(m&p)+4>>2]|0;k=v;b:do if(((c[(k&p)>>2]&l|0)!=0?1:(c[(k&p)+4>>2]&m|0)!=0)&((l&t|0)==0&(m&u|0)==0)){h=b[(s&o)>>1]|0;c:do if(h<<16>>16){m=c[(q&p)>>2]|0;l=h&65535;while(1){h=l;l=l+-1|0;k=c[(m+(l<<2)&p)>>2]|0;if(k){if((k|0)==(n|0))break;k=c[(k&p)+4>>2]|0;if((k|0)>-1?((c[(r&p)>>2]|0)+(k*48|0)|0)==(n|0):0)break}if((l|0)<=0)break c}if((h|0)>=1)break b}while(0);h=b[(n&o)+16>>1]|0;if(h<<16>>16<1){b[(a&o)>>1]=(e[(a&o)>>1]|0)+(h&65535);break}b[(a&o)>>1]=(b[(a&o)>>1]|0)+-1<<16>>16;if(b[(n&o)+18>>1]&2){l=(Ms(c[((c[(n&p)>>2]|0)&p)+16>>2]|0,w)|0)!=0;m=c[(w&p)>>2]|0;m=l&(m|0)>-2&(m|0)<2?10:20;c[(w&p)>>2]=m;d=(d<<16>>16|0)<(m|0)?m&65535:d}}while(0);g=g+-1|0;if((g|0)<=0)break;else n=n+48|0}}else{a=d+22|0;d=0}while(0);d=(f<<16>>16)-(d<<16>>16)|0;if((b[(a&o)>>1]|0)>(d|0))b[(a&o)>>1]=d;i=x;return}function Jv(d,f,g,h){d=d|0;f=f|0;g=g|0;h=h|0;var k=0,l=0,m=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,ga=0,ha=0;ha=i;i=i+112|0;if((i|0)>=(j|0))fa();R=ha;V=c[(c[(c[(d&p)>>2]&p)>>2]&p)>>2]|0;ea=c[(d&p)+12>>2]|0;if(!(a[(V&n)+65>>0]|0)){ga=ea+36|0;if(!(c[(ga&p)>>2]&32))if((c[(g&p)+40>>2]|0)<1)k=63;else k=(a[(f&n)+36>>0]&8)<<4^191;else k=24;W=g+51|0;ca=ea+24|0;l=b[((c[(g&p)+4>>2]|0)+(e[(ca&o)>>1]<<1)&o)>>1]|0;N=l<<16>>16;O=d+4|0;k=Dv(R,c[(O&p)>>2]|0,c[(f&p)+40>>2]|0,N,(a[(W&n)>>0]&4)==0?k:k&131,g)|0;X=b[(ca&o)>>1]|0;Y=ea+42|0;T=b[(Y&o)>>1]|0;Z=ea+40|0;U=b[(Z&o)>>1]|0;_=c[(ga&p)>>2]|0;Q=ea;P=c[(Q&p)>>2]|0;Q=c[(Q&p)+4>>2]|0;$=ea+22|0;aa=b[($&o)>>1]|0;b[(ea&o)+18>>1]=0;ba=g+8|0;D=b[(c[(ba&p)>>2]&o)>>1]|0;if(D<<16>>16<11)C=0;else{C=D<<16>>16;C=((fs(C,((C|0)<0)<<31>>31)|0)&65535)+65503&65535}a:do if(!k)k=0;else{E=l<<16>>16<0;F=f+16|0;G=ea+8|0;H=(U&65535)+1|0;I=ea+48|0;J=h<<16>>16==0;K=g+46|0;w=l<<16>>16>-1;x=g+50|0;y=g+44|0;z=ea+20|0;A=h<<16>>16;B=g+48|0;r=0;u=k;s=0;while(1){l=b[(u&o)+18>>1]|0;t=l&65535;if(l<<16>>16==128)if(!E?(a[((c[((c[(F&p)>>2]|0)&p)+4>>2]|0)+(N*24|0)&n)+20>>0]|0)==0:0)S=12;else{m=r;l=s;k=0}else S=12;if((S|0)==12){S=0;m=u+32|0;v=m;q=G;if(((c[(q&p)>>2]&c[(v&p)>>2]|0)==0?(c[(q&p)+4>>2]&c[(v&p)+4>>2]|0)==0:0)?(L=u+20|0,!((b[(L&o)>>1]&256)!=0&l<<16>>16==16)):0){c[(ga&p)>>2]=_;b[(ca&o)>>1]=X;b[(Z&o)>>1]=U;if(Nu(V,ea,H)|0){k=0;break a}k=b[(Z&o)>>1]|0;q=k+1<<16>>16;b[(Z&o)>>1]=q;c[((c[(I&p)>>2]|0)+((k&65535)<<2)&p)>>2]=u;k=m;l=G;m=(c[(k&p)+4>>2]|Q)&~c[(l&p)+4>>2];v=ea;c[(v&p)>>2]=(c[(k&p)>>2]|P)&~c[(l&p)>>2];c[(v&p)+4>>2]=m;b:do if(!(t&1)){if(t&2){k=c[(ga&p)>>2]|0;l=k|1;c[(ga&p)>>2]=l;do if(!E){if(!J){v=0;break b}if((e[(ca&o)>>1]|0)!=((e[(K&o)>>1]|0)+-1|0)){v=0;break b}if(!w)break;if(a[(x&n)>>0]|0)break;l=k|65537;c[(ga&p)>>2]=l;v=0;break b}while(0);l=k|4097;c[(ga&p)>>2]=l;v=0;break}if(t&128){l=c[(ga&p)>>2]|8;c[(ga&p)>>2]=l;v=0;break}k=c[(ga&p)>>2]|0;if(!(t&36)){l=k|18;c[(ga&p)>>2]=l;if(!(k&32)){v=0;r=0;s=u;break}v=0;r=c[((c[(I&p)>>2]|0)+((q&65535)+-2<<2)&p)>>2]|0;s=u;break}l=k|34;c[(ga&p)>>2]=l;if(!(b[(L&o)>>1]&256)){v=0;r=u;s=0}else{k=u+48|0;if(Nu(V,ea,(q&65535)+1|0)|0){k=0;break a}l=b[(Z&o)>>1]|0;b[(Z&o)>>1]=l+1<<16>>16;c[((c[(I&p)>>2]|0)+((l&65535)<<2)&p)>>2]=k;l=c[(ga&p)>>2]|16;c[(ga&p)>>2]=l;v=0;r=u;s=k}}else{k=c[(u&p)>>2]|0;l=c[(ga&p)>>2]|4;c[(ga&p)>>2]=l;if(!(c[(k&p)+4>>2]&2048)){k=c[(k&p)+20>>2]|0;if((k|0)!=0?(M=c[(k&p)>>2]|0,(M|0)!=0):0)v=(fs(M,((M|0)<0)<<31>>31)|0)<<16>>16;else v=0}else v=46}while(0);do if(!(l&2)){k=(b[(ca&o)>>1]|0)+1<<16>>16;b[(ca&o)>>1]=k;k=k&65535;m=b[(u&o)+16>>1]|0;if(m<<16>>16<1&w){q=(m&65535)-v+(e[($&o)>>1]|0)&65535;b[($&o)>>1]=q;break}m=c[(ba&p)>>2]|0;m=(e[($&o)>>1]|0)+((e[(m+(k<<1)&o)>>1]|0)-(e[(m+(k+-1<<1)&o)>>1]|0))|0;k=m&65535;b[($&o)>>1]=k;if(!(t&128))q=k;else{q=m+10&65535;b[($&o)>>1]=q}}else{k=b[($&o)>>1]|0;q=k<<16>>16;do if(r){m=b[(r&o)+16>>1]|0;if(m<<16>>16<1){k=(m&65535)+(k&65535)&65535;break}else{k=(k&65535)+65516&65535;break}}while(0);do if(s){m=b[(s&o)+16>>1]|0;if(m<<16>>16<1){k=(m&65535)+(k&65535)&65535;break}else{k=(k&65535)+65516&65535;break}}while(0);m=(r|0)!=0;do if(m?(b[(r&o)+16>>1]|0)>0&(s|0)!=0:0){if((b[(s&o)+16>>1]|0)<=0)break;k=(k&65535)+65516&65535}while(0);q=(((s|0)!=0)<<31>>31)+(m<<31>>31)+q|0;u=k<<16>>16<10?10:k<<16>>16;q=((u|0)<(q|0)?u:q)&65535;b[($&o)>>1]=q}while(0);k=q&65535;m=Gv(C,k+1+(((b[(y&o)>>1]|0)*15|0)/(b[((c[(F&p)>>2]|0)&o)+42>>1]|0)|0)&65535)|0;if(!(l&320))m=Gv(m,k+16&65535)|0;l=v+A|0;b[(z&o)>>1]=(m&65535)+l;b[($&o)>>1]=k+l;Iv(c[(O&p)>>2]|0,ea,D);k=Fv(d,ea)|0;v=c[(ga&p)>>2]|0;b[($&o)>>1]=(v&2|0)==0?q:aa;if((v&16|0)==0?(e[(ca&o)>>1]|0)<(e[(B&o)>>1]|0):0)Jv(d,f,g,l&65535)|0;b[($&o)>>1]=aa;m=r;l=s}else{m=r;l=s;k=0}}u=Ev(R)|0;if(!((k|0)==0&(u|0)!=0))break;else{r=m;s=l}}}while(0);l=ea;c[(l&p)>>2]=P;c[(l&p)+4>>2]=Q;b[(ca&o)>>1]=X;b[(Y&o)>>1]=T;c[(ga&p)>>2]=_;b[($&o)>>1]=aa;b[(Z&o)>>1]=U;l=X&65535;if(((X<<16>>16==T<<16>>16?(da=l+1|0,da>>>0<(e[(g&o)+46>>1]|0)>>>0):0)?(a[(W&n)>>0]&64)==0:0)?(b[((c[(ba&p)>>2]|0)+(da<<1)&o)>>1]|0)>41:0){k=Nu(V,ea,(U&65535)+1|0)|0;if(!k){b[(ca&o)>>1]=(b[(ca&o)>>1]|0)+1<<16>>16;b[(Y&o)>>1]=(b[(Y&o)>>1]|0)+1<<16>>16;k=b[(Z&o)>>1]|0;b[(Z&o)>>1]=k+1<<16>>16;c[((c[(ea&p)+48>>2]|0)+((k&65535)<<2)&p)>>2]=0;c[(ga&p)>>2]=c[(ga&p)>>2]|32768;k=c[(ba&p)>>2]|0;k=(e[(k+(l<<1)&o)>>1]|0)-(e[(k+(da<<1)&o)>>1]|0)|0;b[($&o)>>1]=(e[($&o)>>1]|0)-k;Jv(d,f,g,(((k<<16)+327680|0)>>>16)+(h&65535)&65535)|0;b[($&o)>>1]=aa;b[(ca&o)>>1]=X;b[(Y&o)>>1]=X;c[(ga&p)>>2]=_;k=0}}}else k=7;i=ha;return k|0}function Kv(a,d,e,f,g){a=a|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,i=0,j=0,k=0,l=0,m=0,n=0,q=0,r=0;l=b[(a&o)>>1]|0;h=a+8|0;a:do if(l<<16>>16){j=l;k=h;while(1){i=b[(k&o)+8>>1]|0;if(i<<16>>16>=f<<16>>16?(r=k,(c[(r&p)>>2]&d|0)==(d|0)?(c[(r&p)+4>>2]&e|0)==(e|0):0):0){n=k;q=14;break a}if(i<<16>>16<=f<<16>>16?(i=k,r=c[(i&p)>>2]|0,i=c[(i&p)+4>>2]|0,(r&d|0)==(r|0)&(i&e|0)==(i|0)):0)break a;j=j+-1<<16>>16;if(!(j<<16>>16))break;else k=k+16|0}if((l&65535)>=3){i=b[(a&o)+16>>1]|0;k=1;do{if(i<<16>>16>(b[(a+(k<<4)&o)+16>>1]|0))h=a+(k<<4)+8|0;k=k+1|0;i=b[(h&o)+8>>1]|0}while((k&65535)<(l&65535));if(i<<16>>16>f<<16>>16){n=h;q=14}}else q=9}else q=9;while(0);if((q|0)==9){n=l&65535;b[(a&o)>>1]=l+1<<16>>16;b[(a+(n<<4)&o)+18>>1]=g;n=a+(n<<4)+8|0;q=14}if((q|0)==14?(m=n,c[(m&p)>>2]=d,c[(m&p)+4>>2]=e,b[(n&o)+8>>1]=f,m=n+10|0,(b[(m&o)>>1]|0)>g<<16>>16):0)b[(m&o)>>1]=g;return}function Lv(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0;e=c[(d&p)+36>>2]|0;do if(e&17408){if((e&1024|0)!=0?(h=d+28|0,(a[(h&n)>>0]|0)!=0):0){e=d+32|0;Wc(c[(e&p)>>2]|0);a[(h&n)>>0]=0;c[(e&p)>>2]=0;break}if((e&16384|0)!=0?(f=d+28|0,g=c[(f&p)>>2]|0,(g|0)!=0):0){mg(b,c[(g&p)+16>>2]|0);mg(b,c[(f&p)>>2]|0);c[(f&p)>>2]=0}}while(0);return}function Mv(f,g,h,k,l,m,q){f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;m=m|0;q=q|0;var 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,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,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;ta=i;i=i+32|0;if((i|0)>=(j|0))fa();oa=ta;s=c[(c[(f&p)>>2]&p)>>2]|0;na=l&65535;if(l<<16>>16!=0?(b[(s&o)+60>>1]&128)!=0:0)r=0;else pa=3;a:do if((pa|0)==3){sa=c[(g&p)>>2]|0;r=sa&65535;if(r>>>0<=63){qa=iw(1,0,r|0)|0;qa=jw(qa|0,G|0,-1,-1)|0;ra=G;b:do if((qa|0)==0&(ra|0)==0){g=0;h=0;s=1}else{ha=h+24|0;ia=f+4|0;ja=(r|0)==0;ea=g+4|0;ga=(k&768)==0;da=s+8|0;W=(k&256)==0;X=f+68|0;Y=oa+20|0;Z=oa+4|0;aa=oa+24|0;ba=f+328|0;_=0;$=0;g=0;h=0;k=0;t=0;ca=0;s=1;l=0;while(1){if((ca|0)>0){U=l+8|0;V=c[(U&p)>>2]|k;t=c[(U&p)+4>>2]|t}else V=k;if((ca|0)<(na|0))l=c[((c[(ha&p)>>2]|0)+(ca<<2)&p)>>2]|0;else l=m;B=l+36|0;k=c[(B&p)>>2]|0;if(k&1024)break;U=c[((c[(ia&p)>>2]|0)+((d[(l&n)+16>>0]|0)*72|0)&p)+48>>2]|0;if(!ja){k=~V;v=~t;y=0;do{A=iw(1,0,y|0)|0;z=G;c:do if((A&g|0)==0&(z&h|0)==0){u=c[((c[(ea&p)>>2]|0)+(y*20|0)&p)>>2]|0;x=c[(u&p)+4>>2]|0;if(x&4096)do{if(!(x&262144))u=u+12|0;else u=c[((c[(u&p)+20>>2]|0)&p)+4>>2]|0;u=c[(u&p)>>2]|0;x=c[(u&p)+4>>2]|0}while((x&4096|0)!=0);if(((a[(u&n)>>0]|0)==-102?(c[(u&p)+28>>2]|0)==(U|0):0)?(ka=u+32|0,la=Fu(ba,U,b[(ka&o)>>1]|0,k,v,130,0)|0,(la|0)!=0):0){do if(b[(la&o)+18>>1]&2){if((b[(ka&o)>>1]|0)<=-1)break;u=cu(c[(f&p)>>2]|0,c[((c[(ea&p)>>2]|0)+(y*20|0)&p)>>2]|0)|0;if(!u)u=c[(da&p)>>2]|0;x=c[(u&p)>>2]|0;w=cu(c[(f&p)>>2]|0,c[(la&p)>>2]|0)|0;if(!w)w=c[(da&p)>>2]|0;if(dd(x,c[(w&p)>>2]|0)|0)break c}while(0);g=A|g;h=z|h}}while(0);y=y+1|0}while((y|0)<(r|0));k=c[(B&p)>>2]|0}do if(!(k&4096)){if(!(k&256)){u=c[(l&p)+28>>2]|0;if(!u){r=0;break a}if(a[(u&n)+51>>0]&4){r=0;break a}k=b[(u&o)+48>>1]|0;s=(a[(u&n)+50>>0]|0)!=0&1;if(!(k<<16>>16)){pa=71;break}else{S=k&65535;T=b[(u&o)+46>>1]|0}}else{S=1;T=0;u=0}J=l+24|0;K=l+42|0;L=l+48|0;M=(u|0)==0;N=u+32|0;O=iw(1,0,ca|0)|0;P=G;Q=u+4|0;R=u+28|0;I=u+12|0;k=0;u=0;A=0;H=0;d:while(1){z=(u|0)<(e[(J&o)>>1]|0);if((z?(b[(K&o)>>1]|0)==0:0)?(ma=e[((c[((c[(L&p)>>2]|0)+(u<<2)&p)>>2]|0)&o)+18>>1]|0,(ma&130|0)!=0):0){s=(ma&128|0)==0?s:0;z=H}else{if(!M){x=b[((c[(Q&p)>>2]|0)+(u<<1)&o)>>1]|0;w=a[((c[(R&p)>>2]|0)+u&n)>>0]|0;v=c[(I&p)>>2]|0;x=x<<16>>16==(b[(v&o)+36>>1]|0)?-1:x<<16>>16;y=(x|0)>-1;if(s<<24>>24!=0&y)if(z){y=1;F=x}else{y=1;F=x;s=(a[((c[(v&p)+4>>2]|0)+(x*24|0)&n)+20>>0]|0)==0?0:s}else F=x}else{y=0;F=-1;w=0}if(ja){pa=68;break}else{z=1;E=0}e:while(1){C=iw(1,0,E|0)|0;D=G;do if((C&g|0)==0&(D&h|0)==0){v=c[((c[(ea&p)>>2]|0)+(E*20|0)&p)>>2]|0;x=c[(v&p)+4>>2]|0;if(!(x&4096))B=v;else{B=v;do{if(!(x&262144))x=B+12|0;else x=c[((c[(B&p)+20>>2]|0)&p)+4>>2]|0;B=c[(x&p)>>2]|0;x=c[(B&p)+4>>2]|0}while((x&4096|0)!=0)}z=ga?0:z;if((a[(B&n)>>0]|0)!=-102)break;if((c[(B&p)+28>>2]|0)!=(U|0))break;if((b[(B&o)+32>>1]|0)!=(F|0))break;if(!y){B=C;y=D;z=E;break e}x=cu(c[(f&p)>>2]|0,v)|0;if(!x)x=c[(da&p)>>2]|0;if(!(dd(c[(x&p)>>2]|0,c[((c[(N&p)>>2]|0)+(u<<2)&p)>>2]|0)|0)){B=C;y=D;z=E;break e}}while(0);E=E+1|0;if(!(z<<24>>24!=0&(E|0)<(r|0))){pa=68;break d}}do if(W){if(H<<24>>24)if((w^A)<<24>>24==(a[((c[(ea&p)>>2]|0)+(z*20|0)&n)+12>>0]|0)){z=H;break}else{pa=68;break d}v=a[((c[(ea&p)>>2]|0)+(z*20|0)&n)+12>>0]|0;A=v^w;if(w<<24>>24==v<<24>>24){z=1;break}v=q;w=c[(v&p)+4>>2]|P;z=q;c[(z&p)>>2]=c[(v&p)>>2]|O;c[(z&p)+4>>2]=w;z=1}else z=H;while(0);g=B|g;h=y|h;k=(F|0)<0?1:k}u=u+1|0;if((u|0)>=(S|0))break;else H=z}if((pa|0)==68){pa=0;s=(u|0)==0|(u|0)<(T&65535|0)?0:s}if(!(k<<24>>24))pa=71;else s=1}else pa=71;while(0);if((pa|0)==71){pa=0;if(!(s<<24>>24)){s=0;break b}}U=l+8|0;_=c[(U&p)>>2]|_;$=c[(U&p)+4>>2]|$;if(!ja){z=~_;A=~$;y=0;do{u=iw(1,0,y|0)|0;x=G;do if((u&g|0)==0&(x&h|0)==0){k=c[((c[(ea&p)>>2]|0)+(y*20|0)&p)>>2]|0;v=Av(X,k)|0;w=G;if((v|0)==0&(w|0)==0?(c[(oa&p)>>2]=0,c[(oa&p)+4>>2]=0,c[(oa&p)+8>>2]=0,c[(oa&p)+12>>2]=0,c[(oa&p)+16>>2]=0,c[(oa&p)+20>>2]=0,a[(Y&n)>>0]=1,c[(oa&p)>>2]=78,c[(Z&p)>>2]=79,c[(aa&p)>>2]=0,rs(oa,k)|0,(a[(Y&n)>>0]|0)==0):0)break;U=(v&z|0)==0&(w&A|0)==0;g=(U?u:0)|g;h=(U?x:0)|h}while(0);y=y+1|0}while((y|0)<(r|0))}if(h>>>0>ra>>>0|(h|0)==(ra|0)&g>>>0>=qa>>>0|s<<24>>24==0|(ca|0)>=(na|0))break b;else{k=V;ca=ca+1|0}}ga=(a[(l&n)+29>>0]|0)==0;g=ga?g:qa;h=ga?h:ra}while(0);if((g|0)==(qa|0)&(h|0)==(ra|0)){r=sa&255;break}if(!(s<<24>>24)){do{r=r+-1|0;if((r|0)<=0){r=0;break a}ea=iw(1,0,r|0)|0;ea=jw(ea|0,G|0,-1,-1)|0;ga=G}while(!((ea&g|0)==(ea|0)&(ga&h|0)==(ga|0)));r=r&255}else r=-1}else r=0}while(0);i=ta;return r|0}function Nv(b,c,d,e){b=b|0;c=c|0;d=d|0;e=e|0;if(c)Sk(b,33920,5);if(!d)c=0;else{c=d;while(1)if(!(a[(c&n)>>0]|0))break;else c=c+1|0;c=c-d&1073741823}Sk(b,d,c);Sk(b,e,1);Sk(b,13552,1);return}function Ov(a){a=a|0;var d=0,e=0,f=0,g=0,h=0,i=0;i=c[(c[(c[(a&p)>>2]&p)>>2]&p)>>2]|0;d=c[(a&p)+12>>2]|0;g=a+20|0;if((d|0)>0){h=c[(g&p)>>2]|0;while(1){d=d+-1|0;f=h+20|0;e=b[(f&o)>>1]|0;if(e&1){Gk(i,c[(h&p)>>2]|0);e=b[(f&o)>>1]|0}e=e&65535;if(!(e&16)){if(e&32){e=c[(h&p)+12>>2]|0;Ov(e);mg(i,e)}}else{e=c[(h&p)+12>>2]|0;Ov(e);mg(i,e)}if((d|0)<=0)break;else h=h+48|0}}d=c[(g&p)>>2]|0;if((d|0)!=(a+24|0))mg(i,d);return}function Pv(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,o=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0;u=i;i=i+32|0;if((i|0)>=(j|0))fa();t=u;h=c[(b&p)+8>>2]|0;k=c[(b&p)>>2]|0;if(e){l=(f|0)==10;m=b+437|0;o=t+4|0;q=t+1|0;r=t+8|0;s=t+12|0;g=f&255;do{if(l)f=a[(e&n)+1>>0]|0;else f=g;a[(m&n)>>0]=f;f=d[(e&n)>>0]|0;if((f|0)==108){w=Vv(b,e)|0;v=gr(k,c[(e&p)+8>>2]|0,0)|0;f=Nr(k,c[(e&p)+28>>2]|0)|0;tr(b,w,v,f,d[(m&n)>>0]|0)}else if((f|0)==109){f=Vv(b,e)|0;rr(b,f,Mr(k,c[(e&p)+20>>2]|0,0,0)|0)}else if((f|0)==110){w=Vv(b,e)|0;v=Pr(k,c[(e&p)+24>>2]|0,0)|0;f=Mr(k,c[(e&p)+20>>2]|0,0,0)|0;sr(b,w,v,f,d[(m&n)>>0]|0)}else{f=gr(k,c[(e&p)+8>>2]|0,0)|0;a[(t&n)>>0]=4;c[(o&p)>>2]=0;a[(q&n)>>0]=0;c[(r&p)>>2]=0;c[(s&p)>>2]=0;ir(b,f,t)|0;Mk(k,f,1)}if((a[(e&n)>>0]|0)!=119)wh(h,98,0,0,0)|0;e=c[(e&p)+32>>2]|0}while((e|0)!=0)}i=u;return}function Qv(d,e,f,g){d=d|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0;m=i;i=i+16|0;if((i|0)>=(j|0))fa();h=m;l=c[(d&p)>>2]|0;c[(h&p)>>2]=0;c[(h&p)+4>>2]=0;h=nr(l,159,h,0)|0;do if(!h)h=0;else{k=g<<16>>16;if(g<<16>>16>-1?(b[(e&o)+36>>1]|0)!=g<<16>>16:0){g=c[(e&p)+4>>2]|0;c[(h&p)+28>>2]=f+1+k;a[(h&n)+1>>0]=a[(g+(k*24|0)&n)+21>>0]|0;k=c[(g+(k*24|0)&p)+16>>2]|0;if(!k)k=c[(c[(l&p)+8>>2]&p)>>2]|0;h=xv(d,h,k)|0;break}c[(h&p)+28>>2]=f;a[(h&n)+1>>0]=68}while(0);i=m;return h|0}function Rv(d,e,f,g){d=d|0;e=e|0;f=f|0;g=g|0;var h=0,i=0,j=0;d=mh(d,48,0)|0;if(d){h=d+0|0;i=h+44|0;do{a[(h&n)>>0]=0;h=h+1|0}while((h|0)<(i|0));a[(d&n)>>0]=-102;b[(d&o)+34>>1]=-1;c[(d&p)+24>>2]=1;h=c[(e+(f*72|0)&p)+24>>2]|0;c[(d&p)+44>>2]=h;c[(d&p)+28>>2]=c[(e+(f*72|0)&p)+48>>2];if((b[(h&o)+36>>1]|0)==(g|0))b[(d&o)+32>>1]=-1;else{b[(d&o)+32>>1]=g;j=(g|0)>63;g=iw(1,0,g|0)|0;h=e+(f*72|0)+64|0;f=h;i=c[(f&p)+4>>2]|(j?-2147483648:G);c[(h&p)>>2]=c[(f&p)>>2]|(j?0:g);c[(h&p)+4>>2]=i}h=d+4|0;c[(h&p)>>2]=c[(h&p)>>2]|4}return d|0}function Sv(b,e){b=b|0;e=e|0;if((a[(e&n)>>0]|0)==-101){e=e+38|0;a[(e&n)>>0]=(d[(e&n)>>0]|0)+(c[(b&p)+24>>2]|0)}return 0}function Tv(a,d){a=a|0;d=d|0;var f=0,g=0,h=0,i=0,j=0,k=0;f=b[(a&o)+40>>1]|0;i=f&65535;h=b[(a&o)+42>>1]|0;k=e[(d&o)+40>>1]|0;g=b[(d&o)+42>>1]|0;a:do if(!((g&65535)>(h&65535)?1:(i-(h&65535)|0)>=(k-(g&65535)|0))){g=b[(a&o)+20>>1]|0;h=b[(d&o)+20>>1]|0;if(g<<16>>16>=h<<16>>16){if(g<<16>>16>h<<16>>16){f=0;break}if((b[(a&o)+22>>1]|0)>(b[(d&o)+22>>1]|0)){f=0;break}}if(!(f<<16>>16))f=1;else{j=c[(a&p)+48>>2]|0;d=d+48|0;a=i;while(1){a=a+-1|0;h=c[(j+(a<<2)&p)>>2]|0;if(h){f=k;while(1){g=f+-1|0;if((f|0)<=0){f=0;break a}if((c[((c[(d&p)>>2]|0)+(g<<2)&p)>>2]|0)==(h|0))break;else f=g}if((f|0)<1){f=0;break a}}if((a|0)<=0){f=1;break}}}}else f=0;while(0);return f|0}function Uv(d,e){d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0,v=0;f=c[(d&p)>>2]|0;a:do if(f){k=a[(e&n)+16>>0]|0;l=e+17|0;m=e+18|0;q=e+20|0;r=e+22|0;s=e+42|0;t=e+36|0;do{if((a[(f&n)+16>>0]|0)==k<<24>>24?(a[(f&n)+17>>0]|0)==(a[(l&n)>>0]|0):0){if((((c[(f&p)+36>>2]&16384|0)!=0?(b[(s&o)>>1]|0)==0:0)?(c[(t&p)>>2]&513|0)==513:0)?(i=f,j=e,h=c[(j&p)>>2]|0,j=c[(j&p)+4>>2]|0,(h&c[(i&p)>>2]|0)==(h|0)?(j&c[(i&p)+4>>2]|0)==(j|0):0):0)break a;u=f;v=c[(u&p)>>2]|0;u=c[(u&p)+4>>2]|0;h=e;g=c[(h&p)>>2]|0;h=c[(h&p)+4>>2]|0;i=g&v;j=h&u;if((((i|0)==(v|0)&(j|0)==(u|0)?(b[(f&o)+18>>1]|0)<=(b[(m&o)>>1]|0):0)?(b[(f&o)+20>>1]|0)<=(b[(q&o)>>1]|0):0)?(b[(f&o)+22>>1]|0)<=(b[(r&o)>>1]|0):0){d=0;break a}if(((i|0)==(g|0)&(j|0)==(h|0)?(b[(f&o)+20>>1]|0)>=(b[(q&o)>>1]|0):0)?(b[(f&o)+22>>1]|0)>=(b[(r&o)>>1]|0):0)break a}d=f+52|0;f=c[(d&p)>>2]|0}while((f|0)!=0)}while(0);return d|0}function Vv(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;h=pr(c[(a&p)>>2]|0,0,b+12|0,0)|0;do if(h){g=c[(a&p)>>2]|0;f=c[((c[(b&p)+4>>2]|0)&p)+20>>2]|0;a:do if(f){e=c[(g&p)+20>>2]|0;if((e|0)>0){b=c[(g&p)+16>>2]|0;d=0;while(1){a=d+1|0;if((c[(b+(d<<4)&p)+12>>2]|0)==(f|0)){a=d;d=7;break a}if((a|0)<(e|0))d=a;else{d=7;break}}}else a=0}else{a=-1e6;d=7}while(0);if((d|0)==7)if(!((a|0)==0|(a|0)>1))break;a=kh(g,c[((c[(g&p)+16>>2]|0)+(a<<4)&p)>>2]|0)|0;c[(h+(((c[(h&p)>>2]|0)+-1|0)*72|0)&p)+12>>2]=a}while(0);return h|0}function Wv(a){a=a|0;var b=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,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;do if(a>>>0<245){if(a>>>0<11)q=16;else q=a+11&-8;a=q>>>3;l=c[12266]|0;i=l>>>a;if(i&3){e=(i&1^1)+a|0;f=e<<1;b=49104+(f<<2)|0;f=49104+(f+2<<2)|0;g=c[(f&p)>>2]|0;h=g+8|0;i=c[(h&p)>>2]|0;do if((b|0)!=(i|0)){if(i>>>0<(c[12270]|0)>>>0)Ob();d=i+12|0;if((c[(d&p)>>2]|0)==(g|0)){c[(d&p)>>2]=b;c[(f&p)>>2]=i;break}else Ob()}else c[12266]=l&~(1<>2]=x|3;x=g+(x|4)|0;c[(x&p)>>2]=c[(x&p)>>2]|1;x=h;return x|0}k=c[12268]|0;if(q>>>0>k>>>0){if(i){f=2<>>12&16;f=f>>>a;e=f>>>5&8;f=f>>>e;d=f>>>2&4;f=f>>>d;g=f>>>1&2;f=f>>>g;h=f>>>1&1;h=(e|a|d|g|h)+(f>>>h)|0;f=h<<1;g=49104+(f<<2)|0;f=49104+(f+2<<2)|0;d=c[(f&p)>>2]|0;a=d+8|0;e=c[(a&p)>>2]|0;do if((g|0)!=(e|0)){if(e>>>0<(c[12270]|0)>>>0)Ob();i=e+12|0;if((c[(i&p)>>2]|0)==(d|0)){c[(i&p)>>2]=g;c[(f&p)>>2]=e;m=c[12268]|0;break}else Ob()}else{c[12266]=l&~(1<>2]=q|3;j=d+q|0;c[(d+(q|4)&p)>>2]=b|1;c[(d+x&p)>>2]=b;if(m){e=c[12271]|0;g=m>>>3;i=g<<1;f=49104+(i<<2)|0;h=c[12266]|0;g=1<>2]|0;if(i>>>0<(c[12270]|0)>>>0)Ob();else{n=h;o=i}}else{c[12266]=h|g;n=49104+(i+2<<2)|0;o=f}c[(n&p)>>2]=e;c[(o&p)+12>>2]=e;c[(e&p)+8>>2]=o;c[(e&p)+12>>2]=f}c[12268]=b;c[12271]=j;x=a;return x|0}a=c[12267]|0;if(a){h=(a&0-a)+-1|0;w=h>>>12&16;h=h>>>w;v=h>>>5&8;h=h>>>v;x=h>>>2&4;h=h>>>x;i=h>>>1&2;h=h>>>i;g=h>>>1&1;g=c[((v|w|x|i|g)+(h>>>g)<<2&p)+49368>>2]|0;h=(c[(g&p)+4>>2]&-8)-q|0;i=g;while(1){d=c[(i&p)+16>>2]|0;if(!d){d=c[(i&p)+20>>2]|0;if(!d){l=h;k=g;break}}i=(c[(d&p)+4>>2]&-8)-q|0;x=i>>>0>>0;h=x?i:h;i=d;g=x?d:g}a=c[12270]|0;if(k>>>0>>0)Ob();b=k+q|0;if(k>>>0>=b>>>0)Ob();j=c[(k&p)+24>>2]|0;g=c[(k&p)+12>>2]|0;do if((g|0)==(k|0)){h=k+20|0;i=c[(h&p)>>2]|0;if(!i){h=k+16|0;i=c[(h&p)>>2]|0;if(!i){e=0;break}}while(1){g=i+20|0;f=c[(g&p)>>2]|0;if(f){i=f;h=g;continue}g=i+16|0;f=c[(g&p)>>2]|0;if(!f)break;else{i=f;h=g}}if(h>>>0>>0)Ob();else{c[(h&p)>>2]=0;e=i;break}}else{f=c[(k&p)+8>>2]|0;if(f>>>0>>0)Ob();i=f+12|0;if((c[(i&p)>>2]|0)!=(k|0))Ob();h=g+8|0;if((c[(h&p)>>2]|0)==(k|0)){c[(i&p)>>2]=g;c[(h&p)>>2]=f;e=g;break}else Ob()}while(0);do if(j){i=c[(k&p)+28>>2]|0;h=49368+(i<<2)|0;if((k|0)==(c[(h&p)>>2]|0)){c[(h&p)>>2]=e;if(!e){c[12267]=c[12267]&~(1<>>0<(c[12270]|0)>>>0)Ob();i=j+16|0;if((c[(i&p)>>2]|0)==(k|0))c[(i&p)>>2]=e;else c[(j&p)+20>>2]=e;if(!e)break}h=c[12270]|0;if(e>>>0>>0)Ob();c[(e&p)+24>>2]=j;i=c[(k&p)+16>>2]|0;do if(i)if(i>>>0>>0)Ob();else{c[(e&p)+16>>2]=i;c[(i&p)+24>>2]=e;break}while(0);i=c[(k&p)+20>>2]|0;if(i)if(i>>>0<(c[12270]|0)>>>0)Ob();else{c[(e&p)+20>>2]=i;c[(i&p)+24>>2]=e;break}}while(0);if(l>>>0<16){x=l+q|0;c[(k&p)+4>>2]=x|3;x=k+(x+4)|0;c[(x&p)>>2]=c[(x&p)>>2]|1}else{c[(k&p)+4>>2]=q|3;c[(k+(q|4)&p)>>2]=l|1;c[(k+l+q&p)>>2]=l;d=c[12268]|0;if(d){e=c[12271]|0;g=d>>>3;i=g<<1;f=49104+(i<<2)|0;h=c[12266]|0;g=1<>2]|0;if(h>>>0<(c[12270]|0)>>>0)Ob();else{r=i;s=h}}else{c[12266]=h|g;r=49104+(i+2<<2)|0;s=f}c[(r&p)>>2]=e;c[(s&p)+12>>2]=e;c[(e&p)+8>>2]=s;c[(e&p)+12>>2]=f}c[12268]=l;c[12271]=b}x=k+8|0;return x|0}else s=q}else s=q}else if(a>>>0<=4294967231){a=a+11|0;s=a&-8;k=c[12267]|0;if(k){h=0-s|0;a=a>>>8;if(a)if(s>>>0>16777215)d=31;else{q=(a+1048320|0)>>>16&8;r=a<>>16&4;r=r<>>16&2;d=14-(o|q|d)+(r<>>15)|0;d=s>>>(d+7|0)&1|d<<1}else d=0;f=c[(d<<2&p)+49368>>2]|0;a:do if(!f){a=0;i=0}else{if((d|0)==31)i=0;else i=25-(d>>>1)|0;l=h;a=0;b=s<>2]&-8;h=e-s|0;if(h>>>0>>0)if((e|0)==(s|0)){a=f;i=f;break a}else i=f;else h=l;r=c[(f&p)+20>>2]|0;f=c[(f+(b>>>31<<2)&p)+16>>2]|0;a=(r|0)==0|(r|0)==(f|0)?a:r;if(!f)break;else{l=h;b=b<<1}}}while(0);if((a|0)==0&(i|0)==0){a=2<>>12&16;r=r>>>n;m=r>>>5&8;r=r>>>m;o=r>>>2&4;r=r>>>o;q=r>>>1&2;r=r>>>q;a=r>>>1&1;a=c[((m|n|o|q|a)+(r>>>a)<<2&p)+49368>>2]|0}if(!a){o=h;q=i}else while(1){r=(c[(a&p)+4>>2]&-8)-s|0;f=r>>>0>>0;h=f?r:h;i=f?a:i;f=c[(a&p)+16>>2]|0;if(f){a=f;continue}a=c[(a&p)+20>>2]|0;if(!a){o=h;q=i;break}}if((q|0)!=0?o>>>0<((c[12268]|0)-s|0)>>>0:0){a=c[12270]|0;if(q>>>0>>0)Ob();m=q+s|0;if(q>>>0>=m>>>0)Ob();j=c[(q&p)+24>>2]|0;g=c[(q&p)+12>>2]|0;do if((g|0)==(q|0)){h=q+20|0;i=c[(h&p)>>2]|0;if(!i){h=q+16|0;i=c[(h&p)>>2]|0;if(!i){u=0;break}}while(1){g=i+20|0;f=c[(g&p)>>2]|0;if(f){i=f;h=g;continue}g=i+16|0;f=c[(g&p)>>2]|0;if(!f)break;else{i=f;h=g}}if(h>>>0>>0)Ob();else{c[(h&p)>>2]=0;u=i;break}}else{f=c[(q&p)+8>>2]|0;if(f>>>0>>0)Ob();i=f+12|0;if((c[(i&p)>>2]|0)!=(q|0))Ob();h=g+8|0;if((c[(h&p)>>2]|0)==(q|0)){c[(i&p)>>2]=g;c[(h&p)>>2]=f;u=g;break}else Ob()}while(0);do if(j){i=c[(q&p)+28>>2]|0;h=49368+(i<<2)|0;if((q|0)==(c[(h&p)>>2]|0)){c[(h&p)>>2]=u;if(!u){c[12267]=c[12267]&~(1<>>0<(c[12270]|0)>>>0)Ob();i=j+16|0;if((c[(i&p)>>2]|0)==(q|0))c[(i&p)>>2]=u;else c[(j&p)+20>>2]=u;if(!u)break}h=c[12270]|0;if(u>>>0>>0)Ob();c[(u&p)+24>>2]=j;i=c[(q&p)+16>>2]|0;do if(i)if(i>>>0>>0)Ob();else{c[(u&p)+16>>2]=i;c[(i&p)+24>>2]=u;break}while(0);i=c[(q&p)+20>>2]|0;if(i)if(i>>>0<(c[12270]|0)>>>0)Ob();else{c[(u&p)+20>>2]=i;c[(i&p)+24>>2]=u;break}}while(0);b:do if(o>>>0>=16){c[(q&p)+4>>2]=s|3;c[(q+(s|4)&p)>>2]=o|1;c[(q+o+s&p)>>2]=o;i=o>>>3;if(o>>>0<256){h=i<<1;f=49104+(h<<2)|0;g=c[12266]|0;i=1<>2]|0;if(h>>>0>=(c[12270]|0)>>>0){v=i;w=h;break}Ob()}while(0);c[(v&p)>>2]=m;c[(w&p)+12>>2]=m;c[(q+s&p)+8>>2]=w;c[(q+s&p)+12>>2]=f;break}d=o>>>8;if(d)if(o>>>0>16777215)f=31;else{w=(d+1048320|0)>>>16&8;x=d<>>16&4;x=x<>>16&2;f=14-(v|w|f)+(x<>>15)|0;f=o>>>(f+7|0)&1|f<<1}else f=0;i=49368+(f<<2)|0;c[(q+s&p)+28>>2]=f;c[(q+s&p)+20>>2]=0;c[(q+s&p)+16>>2]=0;h=c[12267]|0;g=1<>2]=m;c[(q+s&p)+24>>2]=i;c[(q+s&p)+12>>2]=m;c[(q+s&p)+8>>2]=m;break}d=c[(i&p)>>2]|0;if((f|0)==31)b=0;else b=25-(f>>>1)|0;c:do if((c[(d&p)+4>>2]&-8|0)!=(o|0)){h=o<>>31<<2)+16|0;i=c[(b&p)>>2]|0;if(!i)break;if((c[(i&p)+4>>2]&-8|0)==(o|0)){C=i;break c}else{h=h<<1;d=i}}if(b>>>0<(c[12270]|0)>>>0)Ob();else{c[(b&p)>>2]=m;c[(q+s&p)+24>>2]=d;c[(q+s&p)+12>>2]=m;c[(q+s&p)+8>>2]=m;break b}}else C=d;while(0);d=C+8|0;b=c[(d&p)>>2]|0;x=c[12270]|0;if(C>>>0>=x>>>0&b>>>0>=x>>>0){c[(b&p)+12>>2]=m;c[(d&p)>>2]=m;c[(q+s&p)+8>>2]=b;c[(q+s&p)+12>>2]=C;c[(q+s&p)+24>>2]=0;break}else Ob()}else{x=o+s|0;c[(q&p)+4>>2]=x|3;x=q+(x+4)|0;c[(x&p)>>2]=c[(x&p)>>2]|1}while(0);x=q+8|0;return x|0}}}else s=-1;while(0);a=c[12268]|0;if(a>>>0>=s>>>0){b=a-s|0;d=c[12271]|0;if(b>>>0>15){c[12271]=d+s;c[12268]=b;c[(d+s&p)+4>>2]=b|1;c[(d+a&p)>>2]=b;c[(d&p)+4>>2]=s|3}else{c[12268]=0;c[12271]=0;c[(d&p)+4>>2]=a|3;x=d+(a+4)|0;c[(x&p)>>2]=c[(x&p)>>2]|1}x=d+8|0;return x|0}a=c[12269]|0;if(a>>>0>s>>>0){w=a-s|0;c[12269]=w;x=c[12272]|0;c[12272]=x+s;c[(x+s&p)+4>>2]=w|1;c[(x&p)+4>>2]=s|3;x=x+8|0;return x|0}do if(!(c[12384]|0)){a=wb(30)|0;if(!(a+-1&a)){c[12386]=a;c[12385]=a;c[12387]=-1;c[12388]=-1;c[12389]=0;c[12377]=0;c[12384]=(Pb(0)|0)&-16^1431655768;break}else Ob()}while(0);l=s+48|0;b=c[12386]|0;k=s+47|0;d=b+k|0;b=0-b|0;m=d&b;if(m>>>0<=s>>>0){x=0;return x|0}a=c[12376]|0;if((a|0)!=0?(v=c[12374]|0,w=v+m|0,w>>>0<=v>>>0|w>>>0>a>>>0):0){x=0;return x|0}d:do if(!(c[12377]&4)){a=c[12272]|0;e:do if(a){f=49512|0;while(1){i=c[(f&p)>>2]|0;if(i>>>0<=a>>>0?(t=f+4|0,(i+(c[(t&p)>>2]|0)|0)>>>0>a>>>0):0){e=f;h=t;a=f;break}f=c[(f&p)+8>>2]|0;if(!f){H=181;break e}}if(a){a=d-(c[12269]|0)&b;if(a>>>0<2147483647){i=sb(a|0)|0;if((i|0)==((c[(e&p)>>2]|0)+(c[(h&p)>>2]|0)|0))H=190;else H=191}else a=0}else H=181}else H=181;while(0);do if((H|0)==181){i=sb(0)|0;if((i|0)!=(-1|0)){a=i;h=c[12385]|0;f=h+-1|0;if(!(f&a))a=m;else a=m-a+(f+a&0-h)|0;h=c[12374]|0;f=h+a|0;if(a>>>0>s>>>0&a>>>0<2147483647){w=c[12376]|0;if((w|0)!=0?f>>>0<=h>>>0|f>>>0>w>>>0:0){a=0;break}h=sb(a|0)|0;if((h|0)==(i|0))H=190;else{i=h;H=191}}else a=0}else a=0}while(0);f:do if((H|0)==190){if((i|0)!=(-1|0)){y=i;H=201;break d}}else if((H|0)==191){h=0-a|0;do if((i|0)!=(-1|0)&a>>>0<2147483647&l>>>0>a>>>0?(x=c[12386]|0,x=k-a+x&0-x,x>>>0<2147483647):0)if((sb(x|0)|0)==(-1|0)){sb(h|0)|0;a=0;break f}else{a=x+a|0;break}while(0);if((i|0)==(-1|0))a=0;else{y=i;H=201;break d}}while(0);c[12377]=c[12377]|4;H=198}else{a=0;H=198}while(0);if((((H|0)==198?m>>>0<2147483647:0)?(y=sb(m|0)|0,z=sb(0)|0,(y|0)!=(-1|0)&(z|0)!=(-1|0)&y>>>0>>0):0)?(A=z-y|0,B=A>>>0>(s+40|0)>>>0,B):0){a=B?A:a;H=201}if((H|0)==201){i=(c[12374]|0)+a|0;c[12374]=i;if(i>>>0>(c[12375]|0)>>>0)c[12375]=i;l=c[12272]|0;g:do if(l){e=49512|0;do{i=c[(e&p)>>2]|0;h=e+4|0;f=c[(h&p)>>2]|0;if((y|0)==(i+f|0)){D=i;E=h;F=f;G=e;H=213;break}e=c[(e&p)+8>>2]|0}while((e|0)!=0);if(((H|0)==213?(c[(G&p)+12>>2]&8|0)==0:0)?l>>>0>=D>>>0&l>>>0>>0:0){c[(E&p)>>2]=F+a;b=(c[12269]|0)+a|0;d=l+8|0;if(!(d&7))d=0;else d=0-d&7;x=b-d|0;c[12272]=l+d;c[12269]=x;c[(l+d&p)+4>>2]=x|1;c[(l+b&p)+4>>2]=40;c[12273]=c[12388];break}i=c[12270]|0;if(y>>>0>>0){c[12270]=y;k=y}else k=i;i=y+a|0;h=49512|0;do{if((c[(h&p)>>2]|0)==(i|0)){I=h;J=h;H=223;break}h=c[(h&p)+8>>2]|0}while((h|0)!=0);if((H|0)==223?(c[(J&p)+12>>2]&8|0)==0:0){c[(I&p)>>2]=y;i=J+4|0;c[(i&p)>>2]=(c[(i&p)>>2]|0)+a;i=y+8|0;if(!(i&7))q=0;else q=0-i&7;i=y+(a+8)|0;if(!(i&7))d=0;else d=0-i&7;i=y+(d+a)|0;o=q+s|0;n=y+o|0;m=i-(y+q)-s|0;c[(y+q&p)+4>>2]=s|3;h:do if((i|0)!=(l|0)){if((i|0)==(c[12271]|0)){x=(c[12268]|0)+m|0;c[12268]=x;c[12271]=n;c[(y+o&p)+4>>2]=x|1;c[(y+x+o&p)>>2]=x;break}l=a+4|0;j=c[(y+l+d&p)>>2]|0;if((j&3|0)==1){b=j&-8;f=j>>>3;i:do if(j>>>0>=256){e=c[(y+(d|24)+a&p)>>2]|0;g=c[(y+a+d&p)+12>>2]|0;do if((g|0)==(i|0)){g=d|16;h=y+(l+g)|0;j=c[(h&p)>>2]|0;if(!j){h=y+(g+a)|0;j=c[(h&p)>>2]|0;if(!j){O=0;break}}while(1){g=j+20|0;f=c[(g&p)>>2]|0;if(f){j=f;h=g;continue}g=j+16|0;f=c[(g&p)>>2]|0;if(!f)break;else{j=f;h=g}}if(h>>>0>>0)Ob();else{c[(h&p)>>2]=0;O=j;break}}else{f=c[(y+(d|8)+a&p)>>2]|0;if(f>>>0>>0)Ob();j=f+12|0;if((c[(j&p)>>2]|0)!=(i|0))Ob();h=g+8|0;if((c[(h&p)>>2]|0)==(i|0)){c[(j&p)>>2]=g;c[(h&p)>>2]=f;O=g;break}else Ob()}while(0);if(!e)break;j=c[(y+a+d&p)+28>>2]|0;h=49368+(j<<2)|0;do if((i|0)!=(c[(h&p)>>2]|0)){if(e>>>0<(c[12270]|0)>>>0)Ob();j=e+16|0;if((c[(j&p)>>2]|0)==(i|0))c[(j&p)>>2]=O;else c[(e&p)+20>>2]=O;if(!O)break i}else{c[(h&p)>>2]=O;if(O)break;c[12267]=c[12267]&~(1<
>2]|0)>>>0>m>>>0)c[((c[(T&p)+4>>2]|0)+(m*20|0)&p)+4>>2]=Q;l=m+1|0;c[(G&p)>>2]=0;Dn(U,G)|0;k=c[(k&p)>>2]|0;if(k>>>0>l>>>0)c[((c[(T&p)+4>>2]|0)+(l*20|0)&p)+4>>2]=c[(G&p)>>2];m=m+2|0;if(k>>>0<=m>>>0)break a;c[((c[(T&p)+4>>2]|0)+(m*20|0)&p)+4>>2]=Q;c[((c[(T&p)+4>>2]|0)+(m*20|0)&p)+8>>2]=s;break a}m=yh(T,3,31848)|0;k=c[(T&p)+32>>2]|0;if(k>>>0>m>>>0)c[((c[(T&p)+4>>2]|0)+(m*20|0)&p)+4>>2]=Q;m=m+1|0;if(k>>>0>m>>>0){c[((c[(T&p)+4>>2]|0)+(m*20|0)&p)+4>>2]=Q;c[((c[(T&p)+4>>2]|0)+(m*20|0)&p)+12>>2]=s}iq(T,1);if(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)break a;Xg(c[(T&p)+16>>2]|0,V,-1,1,-1)|0;break a}case 7:{iq(T,1);c[(S&p)>>2]=1;if(!(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)){Xg(c[(T&p)+16>>2]|0,31864,-1,1,0)|0;l=0}else l=0;do{G=c[(l<<2&p)+8648>>2]|0;l=l+1|0;xh(T,wh(T,97,0,1,0)|0,G,0);wh(T,35,1,1,0)|0}while((l|0)!=4);break}case 35:{m=(c[(h&p)>>2]|0)!=0?Q:10;if(U)if(dd(U,31880)|0)if(!(dd(U,31888)|0))l=2;else{l=(dd(U,31896)|0)==0;l=l?3:0}else l=1;else l=0;iq(T,3);c[(S&p)>>2]=3;if(((a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0?(Xg(c[(T&p)+16>>2]|0,31912,-1,1,0)|0,(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(T&p)+16>>2]|0)+40|0,31920,-1,1,0)|0,(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0):0)Xg((c[(T&p)+16>>2]|0)+80|0,31928,-1,1,0)|0;wh(T,11,m,l,1)|0;wh(T,35,1,3,0)|0;break a}case 26:{of(W)|0;break a}case 34:{if(!U)l=c[(W&p)+216>>2]|0;else{c[(G&p)>>2]=0;Dn(U,G)|0;l=c[(G&p)>>2]|0;if((l|0)>0)m=21;else{l=0;m=0}c[(W&p)+216>>2]=m;c[(W&p)+220>>2]=l;l=m}if((l|0)==21){l=c[(W&p)+220>>2]|0;m=l;l=((l|0)<0)<<31>>31}else{m=0;l=0}Jt(f,31944,m,l);break a}case 27:{if((U|0)!=0?(ji(U,x)|0)==0:0){G=x;Pc(c[(G&p)>>2]|0,c[(G&p)+4>>2]|0)|0}F=(Lc()|0)==0;G=9032;Jt(f,31976,F?c[(G&p)>>2]|0:-1,F?c[(G&p)+4>>2]|0:-1);break a}case 33:{if((U|0)!=0?(E=(ji(U,s)|0)==0,G=s,F=c[(G&p)+4>>2]|0,E&((F|0)>-1|(F|0)==-1&(c[(G&p)>>2]|0)>>>0>4294967295)):0)c[(W&p)+132>>2]=0;G=c[(W&p)+132>>2]|0;Jt(f,31992,G,((G|0)<0)<<31>>31);break a}case 12:{g=c[(S&p)>>2]|0;H=g+1|0;I=g+5|0;J=g+6|0;c[(S&p)>>2]=J;K=Oq(f)|0;iq(K,4);if((((a[((c[(K&p)>>2]|0)&n)+65>>0]|0)==0?(Xg(c[(K&p)+16>>2]|0,31232,-1,1,0)|0,(a[((c[(K&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(K&p)+16>>2]|0)+40|0,20456,-1,1,0)|0,(a[((c[(K&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(K&p)+16>>2]|0)+80|0,31432,-1,1,0)|0,(a[((c[(K&p)>>2]|0)&n)+65>>0]|0)==0):0)Xg((c[(K&p)+16>>2]|0)+120|0,31440,-1,1,0)|0;Ar(f,Q);w=c[((c[((c[(R&p)>>2]|0)+(Q<<4)&p)+12>>2]|0)&p)+16>>2]|0;if(!w)break a;u=(U|0)==0;h=f+68|0;v=K+32|0;D=K+4|0;E=K+24|0;F=g+2|0;G=g+3|0;A=g+4|0;t=f+8|0;while(1){if(u){B=c[(w&p)>>2]|0;C=c[(w&p)+8>>2]|0}else{B=0;C=sh(f,0,U,L)|0}if((C|0)!=0?(M=C+16|0,(c[(M&p)>>2]|0)!=0):0){gs(f,Q,c[(C&p)+32>>2]|0,0,c[(C&p)>>2]|0);g=(b[(C&o)+38>>1]|0)+J|0;if((g|0)>(c[(S&p)>>2]|0))c[(S&p)>>2]=g;Qq(f,0,Q,C,54);w=c[(C&p)>>2]|0;xh(K,wh(K,97,0,H,0)|0,w,0);w=c[(M&p)>>2]|0;if(!w)g=1;else{g=1;do{l=_h(W,c[(w&p)+8>>2]|0,L)|0;do if(l){c[(O&p)>>2]=0;gs(f,Q,c[(l&p)+32>>2]|0,0,c[(l&p)>>2]|0);if(Mt(f,l,w,O,0)|0)break a;m=c[(O&p)>>2]|0;if(!m){Qq(f,g,Q,l,54);break}else{wh(K,54,g,c[(m&p)+40>>2]|0,Q)|0;z=c[(t&p)>>2]|0;xh(z,-1,hs(f,m)|0,-6);break}}while(0);g=g+1|0;w=c[(w&p)+4>>2]|0}while((w|0)!=0)}if((c[(h&p)>>2]|0)<(g|0))c[(h&p)>>2]=g;s=wh(K,108,0,0,0)|0;g=c[(M&p)>>2]|0;if(g){z=C+36|0;y=1;while(1){x=g+8|0;w=_h(W,c[(x&p)>>2]|0,L)|0;c[(O&p)>>2]=0;c[(N&p)>>2]=0;r=(w|0)!=0;do if(r){Mt(f,w,g,O,N)|0;l=c[(O&p)>>2]|0;m=xs(K)|0;if(!(r&(l|0)==0)){w=m;P=306;break}w=c[(g&p)+36>>2]|0;if((w|0)==(b[(z&o)>>1]|0))wh(K,103,0,J,0)|0;else{wh(K,47,0,w,J)|0;Nt(K,C,w,J);wh(K,76,J,m,0)|0;wh(K,38,J,(c[(v&p)>>2]|0)+3|0,0)|0}wh(K,70,y,0,J)|0;wh(K,16,0,m,0)|0;w=c[(v&p)>>2]|0;if(w>>>0>1)c[((c[(D&p)>>2]|0)+((w+-2|0)*20|0)&p)+8>>2]=w;c[((c[(E&p)>>2]|0)&p)+88>>2]=w+-1;w=m}else{w=xs(K)|0;l=0;P=306}while(0);do if((P|0)==306){P=0;q=g+20|0;m=c[(q&p)>>2]|0;if((m|0)>0){k=0;do{m=c[(N&p)>>2]|0;if(!m)m=g+(k<<3)+36|0;else m=m+(k<<2)|0;R=k+J|0;nt(K,C,0,c[(m&p)>>2]|0,R);wh(K,76,R,w,0)|0;k=k+1|0;m=c[(q&p)>>2]|0}while((k|0)<(m|0))}if(!r)break;k=ot(K,l)|0;l=c[(q&p)>>2]|0;xh(K,wh(K,49,J,m,I)|0,k,l);xh(K,wh(K,69,y,w,I)|0,0,-14)}while(0);wh(K,103,0,F,0)|0;l=c[(x&p)>>2]|0;xh(K,wh(K,97,0,G,0)|0,l,0);wh(K,25,y+-1|0,A,0)|0;wh(K,35,H,4,0)|0;l=c[(E&p)>>2]|0;m=~w;do if((w|0)<0){w=c[(l&p)+112>>2]|0;if(!w)break;c[(w+(m<<2)&p)>>2]=c[(v&p)>>2]}while(0);c[(l&p)+88>>2]=(c[(v&p)>>2]|0)+-1;mg(W,c[(N&p)>>2]|0);g=c[(g&p)+4>>2]|0;if(!g)break;else y=y+1|0}}wh(K,9,0,s+1|0,0)|0;g=c[(v&p)>>2]|0;if(g>>>0>s>>>0)c[((c[(D&p)>>2]|0)+(s*20|0)&p)+8>>2]=g;c[((c[(E&p)>>2]|0)&p)+88>>2]=g+-1}if(!B)break;else w=B}break}case 23:{Jt(f,31016,0,0);break a}case 31:{if(!U){Jt(f,31032,d[(W&n)+64>>0]|0,0);break a}l=a[(U&n)>>0]|0;if((l+-48&255)>=3)if(!(dd(U,31352)|0))l=1;else{l=(dd(U,15168)|0)==0;l=l?2:0}else l=(l<<24>>24)+-48|0;m=(c[(f&p)>>2]|0)+64|0;if((d[(m&n)>>0]|0)==(l|0))break a;if(Kt(f)|0)break a;a[(m&n)>>0]=l;break a}case 29:{if(!U){G=(d[(C+(Q<<4)&n)+8>>0]|0)+-1|0;Jt(f,31104,G,((G|0)<0)<<31>>31);break a}if(!(a[(W&n)+63>>0]|0)){th(f,31120,G);break a}else{a[(C+(Q<<4)&n)+8>>0]=((ii(U,0,1)|0)&255)+1;Lt(W);break a}}case 4:if(!U){G=c[((c[(C+(Q<<4)&p)+12>>2]|0)&p)+80>>2]|0;Jt(f,30848,G,((G|0)<0)<<31>>31);break a}else{c[(G&p)>>2]=0;Dn(U,G)|0;G=c[(G&p)>>2]|0;c[((c[(C+(Q<<4)&p)+12>>2]|0)&p)+80>>2]=G;pq(c[(C+(Q<<4)&p)+4>>2]|0,G);break a}default:{if(!U)l=c[(W&p)+492>>2]|0;else{c[(G&p)>>2]=0;Dn(U,G)|0;l=c[(G&p)>>2]|0;G=(l|0)>0;l=G?l:0;c[(W&p)+444>>2]=G?74:0;c[(W&p)+448>>2]=G?W:0;c[(r&p)>>2]=0;c[(W&p)+492>>2]=l}Jt(f,31968,l,((l|0)<0)<<31>>31);break a}}while(0)}else{k=c[(q&p)>>2]|0;if(k){c[(G&p)>>2]=k;th(f,10344,G);Wc(c[(q&p)>>2]|0)}G=f+64|0;c[(G&p)>>2]=(c[(G&p)>>2]|0)+1;c[(f&p)+12>>2]=g;break}}while(0);mg(W,V);mg(W,U)}}while(0);i=X;return}function Gr(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0;h=i;i=i+16|0;if((i|0)>=(j|0))fa();g=h;a:do if(!d)d=0;else{f=d;while(1){if((a[(f&n)>>0]|0)==-121){d=c[(b&p)>>2]|0;if(!(a[((c[(d&p)>>2]|0)&n)+145>>0]|0))break;a[(f&n)>>0]=101}d=c[(f&p)+4>>2]|0;if(d&16384){d=0;break a}e=f+20|0;if(!(d&2048)){if(Hr(b,c[(e&p)>>2]|0)|0){d=1;break a}}else if(fr(b,c[(e&p)>>2]|0)|0){d=1;break a}if(Gr(b,c[(f&p)+16>>2]|0)|0){d=1;break a}f=c[(f&p)+12>>2]|0;if(!f){d=0;break a}}c[(g&p)>>2]=c[(b&p)+16>>2];th(d,29984,g);d=1}while(0);i=h;return d|0}function Hr(a,b){a=a|0;b=b|0;var d=0,e=0;a:do if((b|0)!=0?(c[(b&p)>>2]|0)>0:0){d=0;e=c[(b&p)+4>>2]|0;while(1){if(Gr(a,c[(e&p)>>2]|0)|0){d=1;break a}d=d+1|0;if((d|0)>=(c[(b&p)>>2]|0)){d=0;break}else e=e+20|0}}else d=0;while(0);return d|0}function Ir(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;xh(a,wh(a,122,b,0,0)|0,d,-1);d=c[((c[(a&p)>>2]|0)&p)+20>>2]|0;if((d|0)>0){e=a+96|0;b=c[(e&p)>>2]|0;a=0;do{b=b|1<>2]=b}return}function Jr(a,d){a=a|0;d=d|0;var e=0,f=0;e=d+8|0;f=Ur(a,0,e)|0;d=d+24|0;kg(c[(a&p)>>2]|0,c[(d&p)>>2]|0);c[(d&p)>>2]=f;if(f){d=f+40|0;b[(d&o)>>1]=(b[(d&o)>>1]|0)+1<<16>>16}e=(Rt(a,e)|0)==0;return (e?f:0)|0}function Kr(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0;n=i;i=i+16|0;if((i|0)>=(j|0))fa();m=n;a:do if((b|0)!=0?(f=c[(a&p)+12>>2]|0,(c[(b&p)>>2]|0)>0):0){g=a+8|0;h=a+4|0;k=0;l=b+8|0;while(1){if(!(c[(g&p)>>2]|0)){e=l+4|0;d=c[(e&p)>>2]|0;if((d|0)!=0?(dd(d,f)|0)!=0:0)break;mg(c[(c[(a&p)>>2]&p)>>2]|0,d);c[(e&p)>>2]=0;c[(l&p)>>2]=c[(h&p)>>2]}if(fr(a,c[(l&p)+20>>2]|0)|0){d=1;break a}if(Gr(a,c[(l&p)+44>>2]|0)|0){d=1;break a}k=k+1|0;if((k|0)>=(c[(b&p)>>2]|0)){d=0;break a}else l=l+72|0}b=c[(a&p)>>2]|0;l=c[(a&p)+20>>2]|0;c[(m&p)>>2]=c[(a&p)+16>>2];c[(m&p)+4>>2]=l;c[(m&p)+8>>2]=d;th(b,29936,m);d=1}else d=0;while(0);i=n;return d|0}function Lr(b,d){b=b|0;d=d|0;var e=0,f=0,g=0;f=i;i=i+16|0;if((i|0)>=(j|0))fa();e=f;g=c[(b&p)>>2]|0;if((((a[(g&n)+145>>0]|0)==0?(a[(b&n)+18>>0]|0)==0:0)?(c[(g&p)+24>>2]&2048|0)==0:0)?(Fc(d,25568,7)|0)==0:0){c[(e&p)>>2]=d;th(b,28440,e);b=1}else b=0;i=f;return b|0}function Mr(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,o=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0;x=i;i=i+16|0;if((i|0)>=(j|0))fa();w=x;do if(d){t=e&1;v=(f|0)!=0;if(v){g=c[(f&p)>>2]|0;r=32768}else{g=St(d,e)|0;g=mh(b,g,((g|0)<0)<<31>>31)|0;r=0}c[(w&p)>>2]=g;if(g){l=(t|0)==0;if(!l)if(!(c[(d&p)+12>>2]|0))q=(c[(d&p)+20>>2]|0)==0?16396:8220;else q=8220;else q=48;s=q&60;u=d+4|0;m=c[(u&p)>>2]|0;if((m&1024|0)==0?(h=c[(d&p)+8>>2]|0,(h|0)!=0):0){k=h;while(1)if(!(a[(k&n)>>0]|0))break;else k=k+1|0;o=(k-h&1073741823)+1|0}else o=0;if(l){if(!(m&16384))k=(m&8192|0)==0?48:28;else k=12;kw(g|0,d|0,k|0)|0;fw(g+k|0,0,48-k|0)|0}else kw(g|0,d|0,s|0)|0;m=g+4|0;h=q&24576|r|c[(m&p)>>2]&-122881;c[(m&p)>>2]=h;if(o){h=g+s|0;c[(g&p)+8>>2]=h;kw(h|0,c[(d&p)+8>>2]|0,o|0)|0;h=c[(m&p)>>2]|0}k=c[(u&p)>>2]|0;do if(!((h|k)&16384)){h=d+20|0;if(!(k&2048)){c[(g&p)+20>>2]=Pr(b,c[(h&p)>>2]|0,t)|0;break}else{c[(g&p)+20>>2]=gr(b,c[(h&p)>>2]|0,t)|0;break}}while(0);h=c[(m&p)>>2]|0;if(!(h&24576)){if(c[(u&p)>>2]&16384)break;c[(g&p)+12>>2]=Mr(b,c[(d&p)+12>>2]|0,0,0)|0;c[(g&p)+16>>2]=Mr(b,c[(d&p)+16>>2]|0,0,0)|0;break}t=Tt(d,e)|0;c[(w&p)>>2]=(c[(w&p)>>2]|0)+t;if(h&8192){c[(g&p)+12>>2]=Mr(b,c[(d&p)+12>>2]|0,1,w)|0;c[(g&p)+16>>2]=Mr(b,c[(d&p)+16>>2]|0,1,w)|0}if(v)c[(f&p)>>2]=c[(w&p)>>2]}}else g=0;while(0);i=x;return g|0}function Nr(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;a:do if((b|0)!=0?(d=mh(a,8,0)|0,(d|0)!=0):0){g=b+4|0;c[(d&p)+4>>2]=c[(g&p)>>2];e=mh(a,c[(g&p)>>2]<<3,0)|0;c[(d&p)>>2]=e;if(!e){mg(a,d);d=0;break}if((c[(g&p)>>2]|0)>0){f=0;while(1){h=c[(b&p)>>2]|0;c[(e+(f<<3)&p)>>2]=kh(a,c[(h+(f<<3)&p)>>2]|0)|0;c[(e+(f<<3)&p)+4>>2]=c[(h+(f<<3)&p)+4>>2];f=f+1|0;if((f|0)>=(c[(g&p)>>2]|0))break a;e=c[(d&p)>>2]|0}}}else d=0;while(0);return d|0}function Or(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0;f=e+4|0;g=(c[(f&p)>>2]|0)+40|0;b=mh(b,g,0)|0;if(b){fw(b|0,0,g|0)|0;g=b+40|0;kw(g|0,c[(e&p)>>2]|0,c[(f&p)>>2]|0)|0;c[(b&p)+12>>2]=g;c[(b&p)+16>>2]=c[(f&p)>>2];a[(b&n)>>0]=d}return b|0}function Pr(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0;do if((d|0)!=0?(f=mh(b,8,0)|0,(f|0)!=0):0){g=c[(d&p)>>2]|0;c[(f&p)>>2]=g;if(!(e&1)){h=c[(d&p)>>2]|0;g=1;while(1)if((g|0)<(h|0))g=g<<1;else break}g=mh(b,g*20|0,0)|0;c[(f&p)+4>>2]=g;if(!g){mg(b,f);f=0;break}if((c[(d&p)>>2]|0)>0){i=0;h=c[(d&p)+4>>2]|0;while(1){c[(g&p)>>2]=Mr(b,c[(h&p)>>2]|0,e,0)|0;c[(g&p)+4>>2]=kh(b,c[(h&p)+4>>2]|0)|0;c[(g&p)+8>>2]=kh(b,c[(h&p)+8>>2]|0)|0;a[(g&n)+12>>0]=a[(h&n)+12>>0]|0;j=g+13|0;k=a[(j&n)>>0]|0;a[(j&n)>>0]=k&-2;a[(j&n)>>0]=a[(h&n)+13>>0]&2|k&-4;c[(g&p)+16>>2]=c[(h&p)+16>>2];i=i+1|0;if((i|0)>=(c[(d&p)>>2]|0))break;else{g=g+20|0;h=h+20|0}}}}else f=0;while(0);return f|0}function Qr(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0;o=i;i=i+16|0;if((i|0)>=(j|0))fa();k=o;l=c[(a&p)>>2]|0;f=c[(b&p)+20>>2]|0;a:do if(f){e=c[(l&p)+20>>2]|0;if((e|0)>0){d=c[(l&p)+16>>2]|0;h=0;while(1){g=h+1|0;if((c[(d+(h<<4)&p)+12>>2]|0)==(f|0)){g=h;break a}if((g|0)<(e|0))h=g;else break}}else g=0}else g=-1e6;while(0);d=bn((c[(b&p)+24>>2]|0)+8|0,c[(b&p)+4>>2]|0,k)|0;if(!d)f=0;else f=c[(d&p)+8>>2]|0;d=c[((c[(l&p)+16>>2]|0)+(g<<4)&p)>>2]|0;e=(g|0)==1;if((((Sq(a,e?14:16,c[(b&p)>>2]|0,c[(f&p)>>2]|0,d)|0)==0?(Sq(a,9,e?13184:13208,0,d)|0)==0:0)?(m=Oq(a)|0,(m|0)!=0):0)?(n=c[(a&p)+408>>2]|0,Ar(a,g),n=((n|0)==0?a:n)+328|0,c[(n&p)>>2]=c[(n&p)>>2]|1<>2]|0,0),xh(m,n+4|0,10720,-2),Dr(a,g),wh(m,61,0,0,0)|0,n=c[(b&p)>>2]|0,xh(m,wh(m,126,g,0,0)|0,n,0),n=a+72|0,(c[(n&p)>>2]|0)<3):0)c[(n&p)>>2]=3;i=o;return}function Rr(d,e,f,g,h,k,l){d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;var m=0,q=0,r=0,s=0,t=0,u=0,v=0;v=i;i=i+32|0;if((i|0)>=(j|0))fa();m=v;t=c[(d&p)>>2]|0;c[(m&p)>>2]=0;c[(m&p)+4>>2]=0;c[(m&p)+8>>2]=0;c[(m&p)+12>>2]=0;c[(m&p)+16>>2]=0;c[(m&p)+20>>2]=0;c[(m&p)+24>>2]=0;c[(m&p)+28>>2]=0;c[(m&p)>>2]=d;do if(h)if((a[(h&n)>>0]|0)!=27)if(!(ls(m,h)|0)){u=5;break}else{u=13;break}else{a[(h&n)>>0]=97;u=5;break}else u=5;while(0);a:do if((u|0)==5){do if(k)if((a[(k&n)>>0]|0)!=27)if(!(ls(m,k)|0))break;else{u=13;break a}else{a[(k&n)>>0]=97;break}while(0);do if(l)if((a[(l&n)>>0]|0)!=27)if(!(ls(m,l)|0))break;else{u=13;break a}else{a[(l&n)>>0]=97;break}while(0);if(g){if((a[(g&n)>>0]|0)==97)g=c[(g&p)+8>>2]|0;else g=0;if(Sq(d,e,g,0,0)|0)break}s=Oq(d)|0;m=d+60|0;g=c[(m&p)>>2]|0;q=d+56|0;r=c[(q&p)>>2]|0;if((r|0)<4){r=d+72|0;g=c[(r&p)>>2]|0;c[(r&p)>>2]=g+4;g=g+1|0}else{c[(m&p)>>2]=g+4;c[(q&p)>>2]=r+-4}Rq(d,h,g);Rq(d,k,g+1|0);Rq(d,l,g+2|0);if(s){g=g+3|0;wh(s,1,0,g-(b[(f&o)>>1]|0)|0,g)|0;g=c[(s&p)+4>>2]|0;if(g)a[(g+(((c[(s&p)+32>>2]|0)+-1|0)*20|0)&n)+3>>0]=b[(f&o)>>1];xh(s,-1,f,-5);wh(s,144,(e|0)==24&1,0,0)|0}}while(0);if((u|0)==13){f=d+64|0;c[(f&p)>>2]=(c[(f&p)>>2]|0)+1}Gk(t,h);Gk(t,k);Gk(t,l);i=v;return}function Sr(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0;m=i;i=i+16|0;if((i|0)>=(j|0))fa();l=m;g=m+4|0;h=c[(b&p)>>2]|0;a:do if(!(Gn(b)|0)){if(!d){Ut(b,0);break}if(!((e|0)!=0?(c[(e&p)>>2]|0)!=0:0))f=6;do if((f|0)==6){f=Wq(c[(b&p)>>2]|0,d)|0;if(!f)break a;if(!(Yn(h,a[(h&n)+62>>0]|0,f,0)|0)){mg(h,f);break}else{Ut(b,f);mg(h,f);break a}}while(0);d=er(b,d,e,g)|0;if((d|0)>=0?(k=Wq(h,c[(g&p)>>2]|0)|0,(k|0)!=0):0){e=c[((c[(h&p)+16>>2]|0)+(d<<4)&p)>>2]|0;f=_h(h,k,e)|0;if(f){Vt(b,f,0);mg(h,k);break}e=bq(h,k,e)|0;mg(h,k);if(!e){th(b,28872,l);break}else{f=c[(b&p)+408>>2]|0;Ar(b,d);f=((f|0)==0?b:f)+328|0;c[(f&p)>>2]=c[(f&p)>>2]|1<=(j|0))fa();f=h;g=c[(a&p)>>2]|0;if(!(Gn(a)|0)){do if(!b){b=g+20|0;e=c[(b&p)>>2]|0;if((e|0)>0){d=0;do{if((d|0)!=1){Wt(a,d);e=c[(b&p)>>2]|0}d=d+1|0}while((d|0)<(e|0))}}else{if(c[(d&p)+4>>2]|0){e=er(a,b,d,f)|0;if((e|0)<=-1)break;e=c[((c[(g&p)+16>>2]|0)+(e<<4)&p)>>2]|0;b=Wq(g,c[(f&p)>>2]|0)|0;if(!b)break;d=bq(g,b,e)|0;if(!d){e=sh(a,0,b,e)|0;if(e)Xt(a,e,0)}else Xt(a,c[(d&p)+12>>2]|0,d);mg(g,b);break}d=Wq(g,b)|0;e=Vh(g,d)|0;mg(g,d);if((e|0)>-1){Wt(a,e);break}d=Wq(g,b)|0;if(d){e=bq(g,d,0)|0;if(!e){e=sh(a,0,d,0)|0;if(e)Xt(a,e,0)}else Xt(a,c[(e&p)+12>>2]|0,e);mg(g,d)}}while(0);e=Oq(a)|0;if(e)wh(e,144,0,0,0)|0}i=h;return}function Ur(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,i=0;f=c[(d&p)>>2]|0;if(!f)e=d+4|0;else{i=c[(a&p)>>2]|0;g=c[(i&p)+20>>2]|0;i=c[(i&p)+16>>2]|0;a:do if((g|0)>0){h=0;while(1){e=h+1|0;if((c[(i+(h<<4)&p)+12>>2]|0)==(f|0)){e=h;break a}if((e|0)<(g|0))h=e;else break}}else e=0;while(0);e=i+(e<<4)|0}return sh(a,b,c[(d&p)+8>>2]|0,c[(e&p)>>2]|0)|0}function Vr(b,d){b=b|0;d=d|0;var e=0,f=0,g=0;g=i;i=i+16|0;if((i|0)>=(j|0))fa();f=g;if(d){e=d;while(1)if(!(a[(e&n)>>0]|0))break;else e=e+1|0;if((e-d&1073741823)>>>0>6?(Fc(d,25568,7)|0)==0:0){c[(f&p)>>2]=d;th(b,25576,f);e=1}else e=0}else e=0;i=g;return e|0}function Wr(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;f=i;i=i+16|0;if((i|0)>=(j|0))fa();e=f;if(!b){c[(e&p)>>2]=d;a=uh(a,25992,e)|0}else{c[(e&p)>>2]=b;c[(e&p)+4>>2]=d;e=uh(a,26e3,e)|0;mg(a,b);a=e}i=f;return a|0}function Xr(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;h=i;i=i+16|0;if((i|0)>=(j|0))fa();g=h;e=c[(a&p)>>2]|0;f=c[((c[(e&p)+16>>2]|0)&p)+28>>2]|0;if((c[(b&p)+68>>2]|0)!=(f|0)?(d=As(a,b)|0,(d|0)!=0):0){b=d;d=0;do{if((c[(b&p)+20>>2]|0)==(f|0))d=Wr(e,d,c[(b&p)>>2]|0)|0;b=c[(b&p)+32>>2]|0}while((b|0)!=0);if(d){b=c[(a&p)>>2]|0;c[(g&p)>>2]=d;b=uh(b,25968,g)|0;mg(c[(a&p)>>2]|0,d);d=b}else d=0}else d=0;i=h;return d|0}function Yr(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,q=0,r=0;r=i;i=i+16|0;if((i|0)>=(j|0))fa();n=r;o=Oq(a)|0;if(o){e=c[(a&p)>>2]|0;h=c[(b&p)+68>>2]|0;a:do if(h){k=c[(e&p)+20>>2]|0;if((k|0)>0){f=c[(e&p)+16>>2]|0;g=0;while(1){e=g+1|0;if((c[(f+(g<<4)&p)+12>>2]|0)==(h|0))break a;if((e|0)<(k|0))g=e;else{g=e;break}}}else g=0}else g=-1e6;while(0);e=As(a,b)|0;if(e)do{f=c[(a&p)>>2]|0;l=c[(e&p)+20>>2]|0;b:do if(l){m=c[(f&p)+20>>2]|0;if((m|0)>0){k=c[(f&p)+16>>2]|0;h=0;while(1){f=h+1|0;if((c[(k+(h<<4)&p)+12>>2]|0)==(l|0)){f=h;break b}if((f|0)<(m|0))h=f;else break}}else f=0}else f=-1e6;while(0);m=c[(e&p)>>2]|0;xh(o,wh(o,126,f,0,0)|0,m,0);e=c[(e&p)+32>>2]|0}while((e|0)!=0);e=c[(b&p)>>2]|0;xh(o,wh(o,124,g,0,0)|0,e,0);e=c[(a&p)>>2]|0;c[(n&p)>>2]=d;e=uh(e,25952,n)|0;if((e|0)!=0?(Ir(o,g,e),q=Xr(a,b)|0,(q|0)!=0):0)Ir(o,1,q)}i=r;return} function gh(f){f=f|0;var g=0,l=0,m=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,E=0,F=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ea=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,cc=0,dc=0,ec=0,fc=0,gc=0,hc=0,ic=0,kc=0,nc=0,oc=0,qc=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,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,Xc=0,Yc=0,Zc=0,_c=0,$c=0,ad=0,ed=0,fd=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,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,ee=0,fe=0,ge=0,he=0,ie=0,je=0,ke=0,le=0,me=0,ne=0,oe=0,pe=0,qe=0;oe=i;i=i+1040|0;if((i|0)>=(j|0))fa();ke=oe+400|0;Tc=oe+792|0;id=oe+392|0;ad=oe+788|0;Sd=oe+320|0;md=oe+784|0;pd=oe+780|0;qd=oe+280|0;Nd=oe+680|0;$c=oe+240|0;Qd=oe+200|0;_c=oe+676|0;Xc=oe+672|0;Od=oe+160|0;Uc=oe+644|0;td=oe+152|0;Jd=oe+112|0;kd=oe+640|0;Ld=oe+636|0;Yc=oe+632|0;ud=oe+628|0;Ad=oe+624|0;wd=oe+604|0;Bd=oe+600|0;od=oe+596|0;xd=oe+576|0;Sc=oe+840|0;Cd=oe+572|0;Pd=oe+104|0;Dd=oe+568|0;ed=oe+564|0;fd=oe+96|0;Rd=oe+88|0;Ed=oe+560|0;Fd=oe+556|0;Gd=oe+552|0;yd=oe+532|0;zd=oe+512|0;jd=oe+508|0;vd=oe+504|0;Zc=oe+488|0;Md=oe+48|0;Vc=oe+456|0;Rc=oe+444|0;Kd=oe+8|0;sd=oe+440|0;Id=oe+412|0;Hd=oe;zc=f+4|0;s=c[(zc&p)>>2]|0;le=c[(f&p)>>2]|0;Jc=a[(le&n)+62>>0]|0;Nc=f+8|0;z=c[(Nc&p)>>2]|0;ne=le+32|0;l=ne;m=c[(l&p)>>2]|0;l=c[(l&p)+4>>2]|0;me=f+80|0;a:do if((c[(me&p)>>2]|0)==7){y=le+65|0;z=f+44|0;r=m;g=0;t=0;m=0;ie=1317}else{c[(me&p)>>2]=0;de=f+136|0;c[(de&p)>>2]=0;c[(de&p)+4>>2]=0;de=f+20|0;c[(de&p)>>2]=0;c[(le&p)+452>>2]=0;Cc=le+240|0;b:do if(!(c[(Cc&p)>>2]|0)){be=le+292|0;if(c[(be&p)>>2]|0){r=c[(f&p)+124>>2]|0;g=le+300|0;y=c[(g&p)>>2]|0;if(!r)yc=g;else{yc=g;y=(r>>>0)%(y>>>0)|0}}else{yc=le+300|0;y=0}he=f+76|0;ge=le+65|0;Zd=le+296|0;sb=f+176|0;tb=f+184|0;ub=f+92|0;vb=le+80|0;wb=le+84|0;xb=Jc&255;yb=Jc<<24>>24==1;zb=le+88|0;Ab=f+60|0;_d=f+144|0;fe=f+86|0;je=f+44|0;Bb=f+12|0;Cb=Uc+4|0;Db=Uc+16|0;Eb=Uc+12|0;Fb=Uc+25|0;Gb=Uc+20|0;Hb=f+200|0;Ib=f+56|0;$d=f+72|0;Jb=Jd+16|0;Kb=Jd+8|0;Lb=Jd+24|0;Mb=f+87|0;ae=le+156|0;Nb=le+500|0;Ob=le+496|0;ee=le+63|0;Pb=le+488|0;Qb=le+504|0;Rb=le+512|0;Sb=le+70|0;Tb=le+24|0;Ub=le+20|0;Xd=le+16|0;Vb=le+4|0;Yd=f+88|0;Wb=f+104|0;Xb=f+152|0;Yb=f+160|0;Zb=le+152|0;_b=le+64|0;$b=wd+4|0;cc=wd+6|0;dc=wd+8|0;ec=xd+4|0;fc=xd+8|0;gc=le+212|0;hc=le+208|0;ic=f+116|0;kc=yd+4|0;nc=yd+6|0;oc=yd+8|0;qc=$c+8|0;sc=$c+32|0;uc=$c+24|0;vc=$c+16|0;wc=$c+12|0;xc=zd+4|0;Y=zd+6|0;Z=zd+8|0;_=qd+8|0;$=qd+32|0;aa=qd+24|0;ea=qd+12|0;ga=qd+16|0;ha=le+164|0;ia=Zc+8|0;ja=Zc+4|0;ka=le+145|0;la=Zc+12|0;ma=Sd+4|0;na=Sd+12|0;oa=Sd+16|0;pa=Sd+20|0;qa=Sd+24|0;ra=Sd+28|0;sa=Sd+8|0;ta=Sd+40|0;ua=Sd+44|0;va=Sd+48|0;wa=Sd+52|0;xa=Sd+56|0;ya=Sd+60|0;za=Sd+64|0;Aa=Sd+65|0;Ba=le+128|0;Ca=f+28|0;Da=f+36|0;Ea=f+32|0;Fa=f+196|0;Ga=Vc+4|0;Ha=Vc+8|0;Ia=Md+8|0;Ja=Md+32|0;Ka=Md+24|0;La=Vc+20|0;Ma=Vc+12|0;Na=Vc+16|0;Oa=Vc+24|0;Pa=Rc+8|0;Qa=Rc+4|0;Ra=le+148|0;Sa=le+176|0;Ta=le+72|0;Ua=le+67|0;Va=Tc+20|0;Wa=Tc+24|0;Xa=Tc+4|0;Ya=Tc+16|0;Za=le+304|0;_a=le+328|0;$a=Kd+32|0;ab=Kd+8|0;bb=Kd+24|0;cb=le+308|0;db=Id+20|0;eb=le+69|0;ce=f+168|0;fb=qd+4|0;gb=qd+8|0;hb=qd+12|0;ib=qd+16|0;jb=qd+20|0;kb=qd+24|0;lb=qd+25|0;mb=le+180|0;nb=Od+32|0;ob=Od+8|0;pb=Od+12|0;qb=Od+16|0;rb=Od+24|0;W=0;X=0;g=0;u=0;t=c[(he&p)>>2]|0;x=0;c:while(1){r=m;d:while(1){if(a[(ge&n)>>0]|0){y=ge;z=je;m=x;ie=1317;break a}m=g+1|0;if(!(a[(s+(t*20|0)&n)+2>>0]&2))L=u;else{u=c[(s+(t*20|0)&p)+8>>2]|0;g=z+(u*40|0)|0;u=z+(u*40|0)+8|0;if(b[(u&o)>>1]&9312)vg(g);b[(u&o)>>1]=4;L=g}C=s+(t*20|0)|0;J=a[(C&n)>>0]|0;u=J&255;e:do switch(u|0){case 17:{g=m;m=r;u=L;ie=22;break d}case 18:{g=m;m=r;u=L;ie=23;break d}case 20:{g=m;m=r;ie=24;break d}case 21:{g=m;m=r;u=L;ie=25;break d}case 22:{g=m;m=r;u=L;ie=26;break d}case 23:{g=m;m=r;u=L;r=t;ie=27;break d}case 29:{g=m;m=r;r=t;ie=65;break d}case 30:{g=m;m=r;u=L;r=t;ie=66;break d}case 28:{g=m;m=r;u=L;r=t;ie=60;break d}case 32:{g=m;m=r;r=t;ie=72;break d}case 24:{g=m;m=r;u=L;r=t;ie=28;break d}case 25:{g=m;m=r;u=L;r=t;ie=44;break d}case 26:{g=m;m=r;u=L;r=t;ie=45;break d}case 133:{g=m;m=r;u=L;r=t;ie=46;break d}case 97:{a[(C&n)>>0]=27;C=s+(t*20|0)+16|0;v=c[(C&p)>>2]|0;if(!v)g=0;else{g=v;while(1)if(!(a[(g&n)>>0]|0))break;else g=g+1|0;g=g-v&1073741823}w=s+(t*20|0)+4|0;c[(w&p)>>2]=g;if(yb)u=0;else{u=Xg(L,v,-1,1,0)|0;if((u|0)==18){g=m;m=r;u=x;ie=1316;break c}if(Yl(L,xb)|0){y=ge;z=je;g=m;m=x;ie=1317;break a}c[(L&p)+24>>2]=0;g=L+8|0;b[(g&o)>>1]=e[(g&o)>>1]|2048;g=s+(t*20|0)+1|0;if((a[(g&n)>>0]|0)==-1)mg(le,c[(C&p)>>2]|0);a[(g&n)>>0]=-1;v=c[(L&p)+16>>2]|0;c[(C&p)>>2]=v;g=c[(L&p)+12>>2]|0;c[(w&p)>>2]=g}if((g|0)>(c[(zb&p)>>2]|0)){g=m;m=r;u=x;ie=1316;break c}else ie=57;break}case 31:{g=m;m=r;u=L;r=t;ie=67;break d}case 34:{g=m;m=r;r=t;ie=79;break d}case 35:{g=m;m=r;u=x;ie=80;break c}case 33:{g=m;m=r;ie=74;break d}case 94:{g=m;m=r;ie=94;break d}case 93:case 92:case 91:case 90:case 89:{g=m;P=C;m=r;r=t;ie=112;break d}case 27:{v=c[(s+(t*20|0)&p)+16>>2]|0;g=c[(s+(t*20|0)&p)+4>>2]|0;u=0;ie=57;break}case 16:{t=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;u=0;ie=19;break}case 36:{g=m;m=r;J=L;r=t;ie=166;break d}case 1:{V=a[(s+(t*20|0)&n)+3>>0]|0;C=V&255;A=c[(Bb&p)>>2]|0;g=z+((c[(s+(t*20|0)&p)+12>>2]|0)*40|0)|0;c[(Uc&p)>>2]=g;if(V<<24>>24){g=0;u=z+((c[(s+(t*20|0)&p)+8>>2]|0)*40|0)|0;while(1){c[(A+(g<<2)&p)>>2]=u;if((b[(u&o)+8>>1]&4096)!=0?(Vl(u)|0)!=0:0){y=ge;z=je;g=m;m=x;ie=1317;break a}g=g+1|0;if((g|0)>=(C|0))break;else u=u+40|0}g=c[(Uc&p)>>2]|0}V=c[(s+(t*20|0)&p)+16>>2]|0;c[(Cb&p)>>2]=V;c[(Db&p)>>2]=t;c[(Eb&p)>>2]=f;U=g+8|0;b[(U&o)>>1]=e[(U&o)>>1]&48640|1;a[(Fb&n)>>0]=0;U=ne;c[(U&p)>>2]=r;c[(U&p)+4>>2]=l;mc[c[(V&p)+12>>2]&63](Uc,C,A);l=ne;r=c[(l&p)>>2]|0;l=c[(l&p)+4>>2]|0;if(!(a[(Fb&n)>>0]|0))g=0;else{if(!(c[(Gb&p)>>2]|0))g=0;else{c[(ke&p)>>2]=Sg(c[(Uc&p)>>2]|0,1)|0;dh(je,le,10344,ke);g=c[(Gb&p)>>2]|0}em(f,t,c[(s+(t*20|0)&p)+4>>2]|0)}Yl(c[(Uc&p)>>2]|0,xb)|0;w=c[(Uc&p)>>2]|0;v=e[(w&o)+8>>1]|0;if(v&18){u=c[(w&p)+12>>2]|0;if(v&16384)u=(c[(w&p)>>2]|0)+u|0;if((u|0)>(c[((c[(w&p)+32>>2]|0)&p)+88>>2]|0)){g=m;m=r;u=x;ie=1316;break c}else{C=L;T=t;u=g}}else{C=L;T=t;u=g}break}case 88:case 87:case 86:case 85:{g=m;H=C;m=r;r=t;ie=184;break d}case 39:{g=m;m=r;J=L;r=t;ie=208;break d}case 37:{g=m;m=r;u=L;r=t;ie=202;break d}case 38:{g=m;m=r;J=L;r=t;ie=203;break d}case 83:case 80:case 81:case 82:case 78:case 79:{g=m;I=J;m=r;u=L;ie=213;break d}case 40:{V=c[(s+(t*20|0)&p)+4>>2]|0;g=z+(V*40|0)|0;if(!(b[(z+(V*40|0)&o)+8>>1]&16384))u=0;else u=Rg(g)|0;gm(g,c[(s+(t*20|0)&p)+8>>2]&255,Jc);C=L;T=t;break}case 41:{g=m;m=r;u=L;r=t;ie=248;break d}case 42:{g=m;m=r;u=L;r=t;ie=249;break d}case 43:{g=m;m=r;u=L;ie=256;break d}case 71:case 72:{g=m;m=r;r=t;ie=261;break d}case 76:{g=m;m=r;u=L;r=t;ie=286;break d}case 19:{g=m;m=r;r=t;ie=268;break d}case 96:{g=m;m=r;r=t;ie=273;break d}case 44:{g=m;m=r;u=L;r=t;ie=278;break d}case 46:case 45:{g=m;m=r;u=L;r=t;ie=281;break d}case 77:{g=m;m=r;u=L;r=t;ie=288;break d}case 47:{g=m;m=r;u=L;ie=290;break d}case 48:{g=m;m=r;u=L;r=t;ie=368;break d}case 49:{g=m;m=r;ie=371;break d}case 50:{E=c[(c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]&p)>>2]|0;f:do if(c[(E&p)+60>>2]|0){g=qm(E)|0;if(!g){K=E+76|0;H=E+44|0;F=E+72|0;v=0;u=0;g:while(1){C=b[(K&o)>>1]|0;J=c[(E+(C<<16>>16<<2)&p)+120>>2]|0;if(!(a[(J&n)+5>>0]|0)){if(!(a[(J&n)+2>>0]|0)){v=jw(e[(J&o)+18>>1]|0,0,v|0,u|0)|0;u=G}}else{v=jw(e[(J&o)+18>>1]|0,0,v|0,u|0)|0;u=G;while(1){if(!(C<<16>>16))break g;if(J){Bg(c[(J&p)+68>>2]|0);C=b[(K&o)>>1]|0}C=C+-1<<16>>16;b[(K&o)>>1]=C;b[(H&o)>>1]=0;a[(F&n)>>0]=d[(F&n)>>0]&249;J=C<<16>>16;A=E+(J<<1)+78|0;I=b[(A&o)>>1]|0;J=c[(E+(J<<2)&p)+120>>2]|0;if((I&65535)<(e[(J&o)+18>>1]|0)){C=I;break}}b[(A&o)>>1]=C+1<<16>>16;J=b[(K&o)>>1]|0;C=J;J=c[(E+(J<<16>>16<<2)&p)+120>>2]|0}C=b[(E+(C<<16>>16<<1)&o)+78>>1]|0;A=c[(J&p)+56>>2]|0;if(C<<16>>16==(b[(J&o)+18>>1]|0)){g=d[(J&n)+6>>0]|0;g=rm(E,d[(A+g&n)+9>>0]<<16|d[(A+g&n)+8>>0]<<24|d[(A+g&n)+10>>0]<<8|d[(A+g&n)+11>>0])|0}else{g=(C&65535)<<1;V=c[(J&p)+64>>2]|0;g=(d[(V+g&n)>>0]<<8|d[(V+(g|1)&n)>>0])&e[(J&o)+20>>1];g=rm(E,d[(A+g&n)+1>>0]<<16|d[(A+g&n)>>0]<<24|d[(A+g&n)+2>>0]<<8|d[(A+g&n)+3>>0])|0}if(g){v=0;u=0;break f}}g=qm(E)|0}else{v=0;u=0}}else{g=0;v=0;u=0}while(0);C=L;c[(C&p)>>2]=v;c[(C&p)+4>>2]=u;C=L;T=t;u=g;break}case 2:{O=c[(s+(t*20|0)&p)+4>>2]|0;v=c[(s+(t*20|0)&p)+16>>2]|0;if(!O){g=m;m=r;r=t;ie=446;break d}g=c[(Pb&p)>>2]|0;if(!g){s=v;g=m;m=r;u=x;ie=460;break c}else u=0;while(1){if(!(dd(c[(g&p)>>2]|0,v)|0)){M=g;break}g=c[(g&p)+24>>2]|0;if(!g){s=v;g=m;m=r;u=x;ie=460;break c}else u=u+1|0}H=(O|0)==1;if((c[(ae&p)>>2]|0)>0&H){g=m;m=r;u=x;ie=462;break c}F=M+24|0;if(!(c[(F&p)>>2]|0)){A=(a[(Sb&n)>>0]|0)!=0;if(A&H){g=tm(f,1)|0;if(g)break a;a[(ee&n)>>0]=1;if((Rl(f)|0)==5){g=t;ie=467;break c}a[(Sb&n)>>0]=0;A=1;K=u;u=c[(me&p)>>2]|0}else ie=469}else{A=0;ie=469}if((ie|0)==469){ie=0;K=(c[(Ob&p)>>2]|0)-u+-1|0;if((O|0)==2){C=(c[(Tb&p)>>2]|0)>>>1&1;if((c[(Ub&p)>>2]|0)>0){J=C^1;I=0;while(1){u=Il(c[((c[(Xd&p)>>2]|0)+(I<<4)&p)+4>>2]|0,516,J)|0;I=I+1|0;if(u){g=m;m=r;ie=1318;break c}g=c[(Ub&p)>>2]|0;if((I|0)>=(g|0)){ie=475;break}}}}else{g=c[(Ub&p)>>2]|0;C=0;ie=475}if((ie|0)==475){ie=0;if((g|0)>0){E=0;do{u=um(c[((c[(Xd&p)>>2]|0)+(E<<4)&p)+4>>2]|0,O,K)|0;E=E+1|0;if(u){g=m;m=r;ie=1318;break c}}while((E|0)<(c[(Ub&p)>>2]|0))}}if(!C)u=0;else{C=c[(Vb&p)>>2]|0;if(C)do{V=C+88|0;b[(V&o)>>1]=b[(V&o)>>1]|8;C=c[(C&p)+52>>2]|0}while((C|0)!=0);Eg(le);c[(Tb&p)>>2]=c[(Tb&p)>>2]|2;u=0}}C=c[(Pb&p)>>2]|0;if((C|0)!=(M|0))do{c[(Pb&p)>>2]=c[(C&p)+24>>2];mg(le,C);c[(Ob&p)>>2]=(c[(Ob&p)>>2]|0)+-1;C=c[(Pb&p)>>2]|0}while((C|0)!=(M|0));if(H){c[(Pb&p)>>2]=c[(F&p)>>2];mg(le,M);if(A){C=L;T=t;break e}else{g=m;C=O;m=r;A=K;E=L;r=t;ie=486;break d}}else{V=M+8|0;U=c[(V&p)+4>>2]|0;T=Qb;c[(T&p)>>2]=c[(V&p)>>2];c[(T&p)+4>>2]=U;T=M+16|0;U=c[(T&p)+4>>2]|0;V=Rb;c[(V&p)>>2]=c[(T&p)>>2];c[(V&p)+4>>2]=U;if(A){C=L;T=t;break e}else{C=O;g=m;m=r;A=K;E=L;r=t;ie=488;break d}}}case 3:{u=x;ie=489;break c}case 4:{v=s+(t*20|0)+8|0;g=c[(v&p)>>2]|0;if((g|0)!=0?(c[(Tb&p)>>2]&33554432|0)!=0:0){g=m;m=r;u=8;ie=1318;break c}I=s+(t*20|0)+4|0;J=c[((c[(Xd&p)>>2]|0)+(c[(I&p)>>2]<<4)&p)+4>>2]|0;if(!J){v=0;u=0;g=0}else{u=yg(J,g)|0;if((u|0)==5){g=t;ie=508;break c}else if(u){g=m;m=r;ie=1318;break c}do if((c[(v&p)>>2]|0)!=0?(b[(Yd&o)>>1]&32)!=0:0){if((a[(ee&n)>>0]|0)!=0?(c[(Zb&p)>>2]|0)<=1:0){g=0;break}g=c[(Wb&p)>>2]|0;if(!g){g=(c[(Nb&p)>>2]|0)+1|0;c[(Nb&p)>>2]=g;g=(c[(Ob&p)>>2]|0)+g|0;c[(Wb&p)>>2]=g}g=sm(le,0,g+-1|0)|0;if(!g){g=c[(Wb&p)>>2]|0;V=c[(J&p)+4>>2]|0;c[(V&p)+4>>2]=c[(J&p)>>2];g=hl(c[(V&p)>>2]|0,g)|0}V=Qb;U=c[(V&p)+4>>2]|0;T=Xb;c[(T&p)>>2]=c[(V&p)>>2];c[(T&p)+4>>2]=U;T=Rb;U=c[(T&p)+4>>2]|0;V=Yb;c[(V&p)>>2]=c[(T&p)>>2];c[(V&p)+4>>2]=U}else g=0;while(0);v=c[(J&p)+4>>2]|0;c[(v&p)+4>>2]=c[(J&p)>>2];v=c[((c[(v&p)+12>>2]|0)&p)+56>>2]|0;v=d[(v&n)+41>>0]<<16|d[(v&n)+40>>0]<<24|d[(v&n)+42>>0]<<8|d[(v&n)+43>>0];u=c[((c[((c[(Xd&p)>>2]|0)+(c[(I&p)>>2]<<4)&p)+12>>2]|0)&p)+4>>2]|0}if(a[(s+(t*20|0)&n)+3>>0]|0){if((v|0)!=(c[(s+(t*20|0)&p)+12>>2]|0)){g=m;s=I;m=r;u=x;ie=522;break c}if((u|0)!=(c[(s+(t*20|0)&p)+16>>2]|0)){g=m;s=I;m=r;u=x;ie=522;break c}else{C=L;T=t;u=g}}else{C=L;T=t;u=g}break}case 53:{g=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;if((g|0)!=0?(c[(g&p)+28>>2]|0)==(c[(s+(t*20|0)&p)+8>>2]|0):0){v=s+(t*20|0)+3|0;u=0;ie=548}else ie=536;break}case 51:{g=m;m=r;u=L;r=t;ie=525;break d}case 52:{A=s+(t*20|0)+4|0;g=c[(A&p)>>2]|0;v=c[(Xd&p)>>2]|0;C=c[(s+(t*20|0)&p)+12>>2]|0;w=z+(C*40|0)|0;u=Vg(w)|0;V=w;c[(V&p)>>2]=u;c[(V&p)+4>>2]=G;C=z+(C*40|0)+8|0;b[(C&o)>>1]=e[(C&o)>>1]&48640|4;C=s+(t*20|0)+8|0;u=Dg(c[(v+(g<<4)&p)+4>>2]|0,c[(C&p)>>2]|0,u)|0;C=c[(C&p)>>2]|0;if((C|0)==1){c[(c[(v+(g<<4)&p)+12>>2]&p)>>2]=c[(w&p)>>2];c[(Tb&p)>>2]=c[(Tb&p)>>2]|2}else if((C|0)==2)a[((c[(v+(g<<4)&p)+12>>2]|0)&n)+76>>0]=c[(w&p)>>2];if((c[(A&p)>>2]|0)==1){g=c[(Vb&p)>>2]|0;if(g)do{V=g+88|0;b[(V&o)>>1]=b[(V&o)>>1]|8;g=c[(g&p)+52>>2]|0}while((g|0)!=0);b[(Yd&o)>>1]=b[(Yd&o)>>1]&-9;C=L;T=t}else{C=L;T=t}break}case 55:case 54:{ie=536;break}case 57:case 56:{g=xm(f,c[(s+(t*20|0)&p)+4>>2]|0,c[(s+(t*20|0)&p)+8>>2]|0,-1,1)|0;if(!g){y=ge;z=je;g=m;m=x;ie=1317;break a}a[(g&n)+25>>0]=1;J=g+27|0;a[(J&n)>>0]=a[(J&n)>>0]|1;v=g+4|0;I=s+(t*20|0)+3|0;u=zm(c[(le&p)>>2]|0,0,le,v,d[(I&n)>>0]|5,1054)|0;do if(!u){u=yg(c[(v&p)>>2]|0,1)|0;if(!u){A=c[(s+(t*20|0)&p)+16>>2]|0;C=c[(v&p)>>2]|0;if(!A){u=ym(C,1,1,0,c[(g&p)>>2]|0)|0;a[(J&n)>>0]=a[(J&n)>>0]|4;break}u=Am(C,ud,d[(I&n)>>0]|2)|0;if(!u){c[(g&p)+8>>2]=A;u=ym(c[(v&p)>>2]|0,c[(ud&p)>>2]|0,1,A,c[(g&p)>>2]|0)|0}a[(J&n)>>0]=a[(J&n)>>0]&-5}}while(0);a[(J&n)>>0]=((a[(I&n)>>0]|0)!=8&1)<<3&255|a[(J&n)>>0]&-9;C=L;T=t;break}case 58:{g=m;m=r;ie=558;break d}case 60:{g=m;m=r;u=L;ie=568;break d}case 61:{g=m;m=r;u=L;r=t;ie=570;break d}case 59:{g=m;m=r;u=L;r=t;ie=566;break d}case 65:case 64:case 63:case 62:{g=m;K=u;m=r;r=t;ie=571;break d}case 66:{g=m;m=r;u=L;r=t;ie=596;break d}case 69:case 68:case 67:{g=m;H=C;m=r;u=L;ie=597;break d}case 73:{g=m;m=r;u=L;r=t;ie=624;break d}case 70:{V=c[(s+(t*20|0)&p)+12>>2]|0;g=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;u=c[(g&p)>>2]|0;c[(Cd&p)>>2]=0;V=z+(V*40|0)|0;U=c[(V&p)>>2]|0;V=c[(V&p)+4>>2]|0;u=Cm(u,0,U,V,0,Cd)|0;v=g+48|0;c[(v&p)>>2]=U;c[(v&p)+4>>2]=V;a[(g&n)+25>>0]=0;c[(g&p)+60>>2]=0;a[(g&n)+26>>0]=0;v=c[(Cd&p)>>2]|0;if(v)t=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;c[(g&p)+12>>2]=v;C=L;T=t;break}case 74:{H=Pd;c[(H&p)>>2]=0;c[(H&p)+4>>2]=0;c[(Dd&p)>>2]=0;H=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;g=c[(H&p)>>2]|0;if(!g){u=0;v=0;g=0}else{K=H+27|0;do if(!(a[(K&n)>>0]&2)){u=Hm(g,Dd)|0;if(u){g=m;m=r;ie=1318;break c}if(c[(Dd&p)>>2]|0){V=Pd;c[(V&p)>>2]=1;c[(V&p)+4>>2]=0;break}km(c[(H&p)>>2]|0,Pd);u=Pd;g=c[(u&p)>>2]|0;u=c[(u&p)+4>>2]|0;if((g|0)==-1&(u|0)==2147483647){a[(K&n)>>0]=a[(K&n)>>0]|2;break}else{U=jw(g|0,u|0,1,0)|0;V=Pd;c[(V&p)>>2]=U;c[(V&p)+4>>2]=G;break}}while(0);J=c[(s+(t*20|0)&p)+12>>2]|0;if(J){g=c[(sb&p)>>2]|0;if(!g)C=z;else{while(1){u=c[(g&p)+4>>2]|0;if(!u)break;else g=u}C=c[(g&p)+16>>2]|0}I=C+(J*40|0)|0;A=Vg(I)|0;g=G;V=I;c[(V&p)>>2]=A;c[(V&p)+4>>2]=g;V=C+(J*40|0)+8|0;b[(V&o)>>1]=e[(V&o)>>1]&48640|4;if((A|0)==-1&(g|0)==2147483647){g=m;m=r;u=13;ie=1318;break c}if(a[(K&n)>>0]&2){g=m;m=r;u=13;ie=1318;break c}J=Pd;u=c[(J&p)>>2]|0;J=c[(J&p)+4>>2]|0;C=jw(A|0,g|0,1,0)|0;g=G;if((J|0)<(g|0)|(J|0)==(g|0)&u>>>0>>0){V=Pd;c[(V&p)>>2]=C;c[(V&p)+4>>2]=g}else{C=u;g=J}V=I;c[(V&p)>>2]=C;c[(V&p)+4>>2]=g}h:do if(!(a[(K&n)>>0]&2))g=0;else{u=0;while(1){cd(8,Pd);V=Pd;V=jw(c[(V&p)>>2]|0,c[(V&p)+4>>2]&1073741823|0,1,0)|0;g=G;U=Pd;c[(U&p)>>2]=V;c[(U&p)+4>>2]=g;g=Cm(c[(H&p)>>2]|0,0,V,g,0,Dd)|0;if(c[(Dd&p)>>2]|g)break h;u=u+1|0;if((u|0)>=100){g=m;m=r;u=13;ie=1318;break c}}}while(0);a[(H&n)+26>>0]=0;c[(H&p)+60>>2]=0;v=Pd;u=c[(v&p)>>2]|0;v=c[(v&p)+4>>2]|0}C=L;c[(C&p)>>2]=u;c[(C&p)+4>>2]=v;C=L;T=t;u=g;break}case 84:case 75:{g=m;C=J;m=r;u=L;r=t;ie=647;break d}case 95:{g=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;u=Jm(c[(g&p)>>2]|0)|0;c[(g&p)+60>>2]=0;if((((u|0)==0?(Gc=c[(gc&p)>>2]|0,(Gc|0)!=0):0)?(Hc=c[(s+(t*20|0)&p)+16>>2]|0,(Hc|0)!=0):0)?(a[(g&n)+27>>0]&4)!=0:0){V=g+48|0;bc[Gc&1](c[(hc&p)>>2]|0,9,c[((c[(Xd&p)>>2]|0)+(a[(g&n)+24>>0]<<4)&p)>>2]|0,Hc,c[(V&p)>>2]|0,c[(V&p)+4>>2]|0)}if(!(c[(s+(t*20|0)&p)+8>>2]&1)){C=L;T=t}else{c[(ub&p)>>2]=(c[(ub&p)>>2]|0)+1;C=L;T=t}break}case 98:{g=m;m=r;u=L;r=t;ie=671;break d}case 99:{g=m;m=r;u=L;r=t;ie=672;break d}case 100:{v=c[(s+(t*20|0)&p)+8>>2]|0;C=z+(v*40|0)|0;g=c[((c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0)&p)+56>>2]|0;if(!(a[(g&n)+56>>0]|0)){u=c[(g&p)+36>>2]|0;g=u;u=u+8|0}else{V=c[(g&p)+20>>2]|0;u=c[((c[(V&p)+8>>2]|0)&p)+4>>2]|0;V=c[(V&p)+12>>2]|0;g=V+(u*56|0)+20|0;u=c[(V+(u*56|0)&p)+32>>2]|0}g=c[(g&p)>>2]|0;if(!(fh(C,g)|0)){c[(z+(v*40|0)&p)+12>>2]=g;V=z+(v*40|0)+8|0;b[(V&o)>>1]=e[(V&o)>>1]&48640|16;kw(c[(z+(v*40|0)&p)+16>>2]|0,u|0,g|0)|0;u=0}else u=7;c[((c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+12>>2]<<2)&p)>>2]|0)&p)+60>>2]=0;T=t;break}case 102:case 101:{v=c[(s+(t*20|0)&p)+8>>2]|0;J=z+(v*40|0)|0;A=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;C=c[(A&p)>>2]|0;A=A+27|0;if(a[(A&n)>>0]&4){lm(C,ed);g=c[(ed&p)>>2]|0;if(g>>>0>(c[(zb&p)>>2]|0)>>>0){g=m;m=r;u=x;ie=1316;break c}}else{km(C,fd);T=fd;g=c[(T&p)>>2]|0;T=c[(T&p)+4>>2]|0;V=c[(zb&p)>>2]|0;U=((V|0)<0)<<31>>31;if((T|0)>(U|0)|(T|0)==(U|0)&g>>>0>V>>>0){g=m;m=r;u=x;ie=1316;break c}c[(ed&p)>>2]=g}if(fh(J,g>>>0>32?g:32)|0){y=ge;z=je;g=m;m=x;ie=1317;break a}c[(z+(v*40|0)&p)+12>>2]=g;g=z+(v*40|0)+8|0;b[(g&o)>>1]=e[(g&o)>>1]&48640|16;g=c[(ed&p)>>2]|0;u=c[(z+(v*40|0)&p)+16>>2]|0;if(!(a[(A&n)>>0]&4))u=Lm(C,0,g,u,0)|0;else u=Dh(C,0,g,u)|0;a[(z+(v*40|0)&n)+10>>0]=1;C=J;T=t;break}case 103:{v=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;w=v+25|0;if(a[(w&n)>>0]|0){g=m;m=r;u=L;r=t;ie=700;break d}do if(!(a[(v&n)+26>>0]|0)){g=c[(v&p)+32>>2]|0;if(g){V=c[(g&p)>>2]|0;u=rc[c[((c[(V&p)>>2]|0)&p)+48>>2]&127](g,Rd)|0;Mm(f,V);break}if((a[((c[(v&p)>>2]|0)&n)+73>>0]|0)!=1){u=jm(v)|0;if(u){g=m;m=r;ie=1318;break c}if(a[(w&n)>>0]|0){g=m;m=r;u=L;r=t;ie=708;break d}}km(c[(v&p)>>2]|0,Rd);u=0}else{U=v+48|0;V=c[(U&p)+4>>2]|0;u=Rd;c[(u&p)>>2]=c[(U&p)>>2];c[(u&p)+4>>2]=V;u=0}while(0);V=Rd;T=c[(V&p)+4>>2]|0;C=L;c[(C&p)>>2]=c[(V&p)>>2];c[(C&p)+4>>2]=T;C=L;T=t;break}case 108:{ie=715;break}case 104:{g=m;m=r;u=L;r=t;ie=711;break d}case 107:case 106:{c[(ic&p)>>2]=(c[(ic&p)>>2]|0)+1;ie=715;break}case 105:{T=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;u=c[(T&p)>>2]|0;c[(Ed&p)>>2]=0;u=Hm(u,Ed)|0;V=c[(Ed&p)>>2]|0;a[(T&n)+25>>0]=V;a[(T&n)+26>>0]=0;c[(T&p)+60>>2]=0;T=c[(s+(t*20|0)&p)+8>>2]|0;C=L;T=(T|0)>0&(V|0)!=0?T+-1|0:t;break}case 7:case 6:{if(!(c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0)){g=m;m=r;S=z;T=s;U=W;V=X;u=L;r=t;break d}else ie=765;break}case 5:{g=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;c[(Fd&p)>>2]=0;w=c[(g&p)+56>>2]|0;if(a[(w&n)+56>>0]|0){u=Wm(c[(w&p)+20>>2]|0,Fd)|0;ie=766;break e}u=w+36|0;v=c[(u&p)>>2]|0;V=v+4|0;c[(u&p)>>2]=c[(V&p)>>2];c[(V&p)>>2]=0;if(!((c[(w&p)+40>>2]|0)!=0|(v|0)==0))mg(le,v);c[(Fd&p)>>2]=(c[(u&p)>>2]|0)==0&1;u=0;ie=766;break}case 9:case 8:{ie=765;break}case 110:case 109:{A=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;S=c[(s+(t*20|0)&p)+8>>2]|0;u=c[(A&p)>>2]|0;C=s+(t*20|0)+3|0;if(a[(C&n)>>0]&1)c[(ub&p)>>2]=(c[(ub&p)>>2]|0)+1;if((b[(z+(S*40|0)&o)+8>>1]&16384)!=0?(Ud=Rg(z+(S*40|0)|0)|0,(Ud|0)!=0):0){g=m;m=r;s=Ud;u=x;ie=1309;break c}H=c[(A&p)+56>>2]|0;T=z+(S*40|0)+12|0;P=c[(T&p)>>2]|0;if(!H){if(!(a[(C&n)>>0]&16))g=0;else g=c[(A&p)+12>>2]|0;u=Im(u,c[(z+(S*40|0)&p)+16>>2]|0,P,((P|0)<0)<<31>>31,10360,0,0,c[(s+(t*20|0)&p)+12>>2]|0,g)|0;c[(A&p)+60>>2]=0;C=L;T=t;break e}C=P;g=((P|0)<0)<<31>>31;A=0;do{A=A+1|0;C=mw(C|0,g|0,7)|0;g=G}while(((C|0)!=0|(g|0)!=0)&(A|0)<9);K=P+8|0;I=A+P|0;M=H+4|0;A=c[(M&p)>>2]|0;do if(!A)u=0;else{if(!(c[(H&p)+40>>2]|0)){C=H+44|0;V=c[(C&p)>>2]|0;if((V|0)<=(A|0)?!((c[2265]|0)!=0?(V|0)>(c[(H&p)>>2]|0):0):0){u=0;break}}else{V=c[(H&p)+48>>2]|0;if(!((V|0)!=0&(V+K|0)>(A|0))){u=0;break}C=H+44|0}u=Om(H)|0;c[(C&p)>>2]=0;c[(H&p)+48>>2]=0}while(0);C=H+36|0;J=H+44|0;c[(J&p)>>2]=(c[(J&p)>>2]|0)+I;J=H+8|0;if((I|0)>(c[(J&p)>>2]|0))c[(J&p)>>2]=I;E=H+40|0;J=c[(E&p)>>2]|0;if(!J){g=qg(K,((K|0)<0)<<31>>31)|0;if(!g){g=m;m=r;s=7;u=x;ie=1309;break c}c[(g&p)+4>>2]=c[(C&p)>>2]}else{g=H+48|0;I=c[(g&p)>>2]|0;K=I+K|0;F=H+52|0;H=c[(F&p)>>2]|0;if((K|0)>(H|0)){I=H;do I=I<<1;while((I|0)<(K|0));V=c[(M&p)>>2]|0;I=(I|0)>(V|0)?V:I;I=(I|0)<(K|0)?K:I;J=rg(J,I,((I|0)<0)<<31>>31)|0;if(!J){g=m;m=r;s=7;u=x;ie=1309;break c}A=J+((c[(C&p)>>2]|0)-(c[(E&p)>>2]|0))|0;c[(C&p)>>2]=A;c[(E&p)>>2]=J;c[(F&p)>>2]=I;I=c[(g&p)>>2]|0}else A=c[(C&p)>>2]|0;c[(g&p)>>2]=I+(P+15&-8);c[(J+I&p)+4>>2]=A-J;g=J+I|0}kw(g+8|0,c[(z+(S*40|0)&p)+16>>2]|0,c[(T&p)>>2]|0)|0;c[(g&p)>>2]=c[(T&p)>>2];c[(C&p)>>2]=g;C=L;T=t;break}case 112:{g=m;m=r;r=t;ie=801;break d}case 111:{v=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;g=c[(v&p)>>2]|0;c[(yd&p)>>2]=c[(v&p)+8>>2];b[(kc&o)>>1]=c[(s+(t*20|0)&p)+12>>2];a[(nc&n)>>0]=0;c[(oc&p)>>2]=z+((c[(s+(t*20|0)&p)+8>>2]|0)*40|0);u=Cm(g,yd,0,0,0,Gd)|0;if(!(c[(Gd&p)>>2]|u))u=Jm(g)|0;c[(v&p)+60>>2]=0;C=L;T=t;break}case 116:case 115:case 114:case 113:{u=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;c[(zd&p)>>2]=c[(u&p)+8>>2];b[(xc&o)>>1]=c[(s+(t*20|0)&p)+16>>2];a[(Y&n)>>0]=((J&255)<115)<<31>>31;c[(Z&p)>>2]=z+((c[(s+(t*20|0)&p)+12>>2]|0)*40|0);V=Sd;c[(V&p)>>2]=0;c[(V&p)+4>>2]=0;km(c[(u&p)>>2]|0,Sd);V=Sd;g=c[(V&p)>>2]|0;V=jw(g|0,c[(V&p)+4>>2]|0,-1,-1)|0;U=G;if(!(U>>>0>0|(U|0)==0&V>>>0>2147483646)){b[(_&o)>>1]=0;c[($&p)>>2]=le;c[(aa&p)>>2]=0;g=nm(c[(u&p)>>2]|0,0,g,1,qd)|0;if(!g){u=Km(c[(ea&p)>>2]|0,c[(ga&p)>>2]|0,zd,0)|0;if((b[(_&o)>>1]&9312)==0&(c[(aa&p)>>2]|0)==0)g=0;else{Qg(qd);g=0}}else u=0}else{c[(ke&p)>>2]=68730;c[(ke&p)+4>>2]=10788;bd(11,13600,ke);g=11;u=0}if((((a[(C&n)>>0]&1)==0?u+1|0:0-u|0)|0)>0){C=L;T=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;u=g}else{C=L;T=t;u=g}break}case 117:{O=L+8|0;b[(O&o)>>1]=1;if((c[(Zb&p)>>2]|0)>((c[(ha&p)>>2]|0)+1|0)){g=m;m=r;u=x;ie=832;break c}N=c[(s+(t*20|0)&p)+12>>2]|0;M=c[((c[(Xd&p)>>2]|0)+(N<<4)&p)+4>>2]|0;P=s+(t*20|0)+4|0;I=c[(P&p)>>2]|0;C=M+4|0;K=c[(C&p)>>2]|0;c[(K&p)+4>>2]=c[(M&p)>>2];c[(ke&p)>>2]=0;do if(!(c[(K&p)+8>>2]|0)){u=dl(K,I,ke,0)|0;if(!u){u=Xm(M,I,0)|0;if(u){g=c[(ke&p)>>2]|0;if(!g){A=0;break}Bg(c[(g&p)+68>>2]|0);A=0;break}if(I>>>0<=1){g=c[(ke&p)>>2]|0;pl(g,9);if(!g){u=0;A=0;break}Bg(c[(g&p)+68>>2]|0);u=0;A=0;break}if(!(a[(K&n)+17>>0]|0)){g=c[(ke&p)>>2]|0;u=Ym(c[(g&p)+52>>2]|0,g,c[(g&p)+72>>2]|0)|0;if(!g){A=0;break}Bg(c[(g&p)+68>>2]|0);A=0;break}J=c[(C&p)>>2]|0;c[(J&p)+4>>2]=c[(M&p)>>2];J=c[((c[(J&p)+12>>2]|0)&p)+56>>2]|0;J=d[(J&n)+53>>0]<<16|d[(J&n)+52>>0]<<24|d[(J&n)+54>>0]<<8|d[(J&n)+55>>0];C=c[(ke&p)>>2]|0;if((J|0)==(I|0)){u=Ym(c[(C&p)+52>>2]|0,C,c[(C&p)+72>>2]|0)|0;if(C)Bg(c[(C&p)+68>>2]|0);if(!u)A=0;else{A=0;break}}else{if(C)Bg(c[(C&p)+68>>2]|0);u=dl(K,J,Sd,0)|0;if(u){A=0;break}C=c[(Sd&p)>>2]|0;u=Zm(K,C,1,0,I,0)|0;if(C)Bg(c[(C&p)+68>>2]|0);if(u){A=0;break}c[(Sd&p)>>2]=0;u=dl(K,J,Sd,0)|0;C=c[(Sd&p)>>2]|0;if(u){if(!C){A=0;break}}else u=Ym(c[(C&p)+52>>2]|0,C,c[(C&p)+72>>2]|0)|0;Bg(c[(C&p)+68>>2]|0);if(!u)A=J;else{A=0;break}}H=((c[2514]|0)>>>0)/((c[(K&p)+32>>2]|0)>>>0)|0;F=H+1|0;I=K+36|0;while(1){C=J+-1|0;if((C|0)==(F|0)){J=C;continue}if(C>>>0<2)E=0;else{E=J+-3|0;E=E-((E>>>0)%(((((c[(I&p)>>2]|0)>>>0)/5|0)+1|0)>>>0)|0)|0;E=((E+1|0)==(H|0)?3:2)+E|0}if((E|0)==(C|0))J=C;else break}u=Dg(M,4,C)|0}else A=0}else{u=262;A=0}while(0);b[(O&o)>>1]=4;V=L;c[(V&p)>>2]=A;c[(V&p)+4>>2]=((A|0)<0)<<31>>31;if((u|0)==0&(A|0)!=0){g=m;K=N;C=P;m=r;u=L;r=t;ie=865;break d}else{C=L;T=t}break}case 118:{c[(jd&p)>>2]=0;g=s+(t*20|0)+12|0;u=Xm(c[((c[(Xd&p)>>2]|0)+(c[(s+(t*20|0)&p)+8>>2]<<4)&p)+4>>2]|0,c[(s+(t*20|0)&p)+4>>2]|0,(c[(g&p)>>2]|0)!=0?jd:0)|0;g=c[(g&p)>>2]|0;if((g|0)!=0?(Ic=c[(jd&p)>>2]|0,c[(ub&p)>>2]=(c[(ub&p)>>2]|0)+Ic,(g|0)>0):0){C=z+(g*40|0)|0;T=C;T=jw(c[(T&p)>>2]|0,c[(T&p)+4>>2]|0,Ic|0,((Ic|0)<0)<<31>>31|0)|0;c[(C&p)>>2]=T;c[(C&p)+4>>2]=G;C=L;T=t}else{C=L;T=t}break}case 121:case 120:{c[(vd&p)>>2]=0;u=Am(c[((c[(Xd&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<4)&p)+4>>2]|0,vd,J<<24>>24==121?1:2)|0;T=c[(vd&p)>>2]|0;C=L;c[(C&p)>>2]=T;c[(C&p)+4>>2]=((T|0)<0)<<31>>31;C=L;T=t;break}case 119:{g=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;u=c[(g&p)+56>>2]|0;if(u){g=m;m=r;J=L;r=t;ie=878;break d}u=c[(g&p)>>2]|0;C=L;T=t;u=Xm(c[(u&p)>>2]|0,c[(u&p)+60>>2]|0,0)|0;break}case 123:{C=L;T=t;u=an(le,c[(s+(t*20|0)&p)+4>>2]|0)|0;break}case 124:{g=m;m=r;u=L;r=t;ie=886;break d}case 122:{g=m;m=r;J=L;r=t;ie=881;break d}case 126:{g=m;m=r;u=L;r=t;ie=895;break d}case 125:{g=m;m=r;J=L;r=t;ie=887;break d}case 127:{g=m;m=r;u=L;ie=903;break d}case 128:{g=m;m=r;J=L;ie=947;break d}case 129:{w=c[(s+(t*20|0)&p)+4>>2]|0;v=z+(w*40|0)|0;w=z+(w*40|0)+8|0;g=b[(w&o)>>1]|0;do if(g&32){E=c[(v&p)>>2]|0;u=E+26|0;g=b[(u&o)>>1]|0;if(!(g&2)){if(!(g&1)){g=E+8|0;c[(g&p)>>2]=kn(c[(g&p)>>2]|0)|0;g=b[(u&o)>>1]|0}b[(u&o)>>1]=g&65535|2}C=E+8|0;A=c[(C&p)>>2]|0;if(!A){g=b[(w&o)>>1]|0;break}w=A;v=c[(w&p)>>2]|0;w=c[(w&p)+4>>2]|0;V=c[(A&p)+8>>2]|0;c[(C&p)>>2]=V;if(!V)Zk(E);u=c[(s+(t*20|0)&p)+12>>2]|0;g=z+(u*40|0)|0;u=z+(u*40|0)+8|0;if(!(b[(u&o)>>1]&9312)){ie=g;c[(ie&p)>>2]=v;c[(ie&p)+4>>2]=w;b[(u&o)>>1]=4;u=0;ie=19;break e}else{Zg(g,v,w);u=0;ie=19;break e}}while(0);if(!(g&9312))b[(w&o)>>1]=1;else vg(v);t=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;u=0;ie=19;break}case 130:{g=m;m=r;u=L;ie=966;break d}case 131:{g=m;m=r;u=L;r=t;ie=993;break d}case 132:{g=m;m=r;u=L;r=t;ie=1009;break d}case 134:{g=m;m=r;J=L;r=t;ie=1010;break d}case 135:{g=m;m=r;u=L;r=t;ie=1015;break d}case 136:{g=m;m=r;r=t;ie=1022;break d}case 137:{g=m;m=r;u=L;r=t;ie=1028;break d}case 138:{g=m;m=r;u=L;r=t;ie=1030;break d}case 139:{g=m;m=r;J=L;r=t;ie=1032;break d}case 140:{g=m;m=r;u=L;r=t;ie=1034;break d}case 141:{g=m;m=r;u=L;r=t;ie=1036;break d}case 10:{V=a[(s+(t*20|0)&n)+3>>0]|0;g=V&255;u=c[(Bb&p)>>2]|0;if(V<<24>>24){v=0;w=z+((c[(s+(t*20|0)&p)+8>>2]|0)*40|0)|0;while(1){c[(u+(v<<2)&p)>>2]=w;v=v+1|0;if((v|0)>=(g|0))break;else w=w+40|0}}V=c[(s+(t*20|0)&p)+16>>2]|0;c[(Ga&p)>>2]=V;U=c[(s+(t*20|0)&p)+12>>2]|0;c[(Ha&p)>>2]=z+(U*40|0);U=z+(U*40|0)+12|0;c[(U&p)>>2]=(c[(U&p)>>2]|0)+1;b[(Ia&o)>>1]=1;c[(Ja&p)>>2]=le;c[(Ka&p)>>2]=0;c[(Vc&p)>>2]=Md;c[(La&p)>>2]=0;c[(Ma&p)>>2]=f;c[(Na&p)>>2]=t;a[(Oa&n)>>0]=0;mc[c[(V&p)+16>>2]&63](Vc,g,u);if(!(c[(La&p)>>2]|0))u=0;else{c[(ke&p)>>2]=Sg(Md,1)|0;dh(je,le,10344,ke);u=c[(La&p)>>2]|0}do if((a[(Oa&n)>>0]|0)!=0?(Mc=c[(s+((t+-1|0)*20|0)&p)+4>>2]|0,(Mc|0)!=0):0){g=z+(Mc*40|0)|0;v=z+(Mc*40|0)+8|0;if(!(b[(v&o)>>1]&9312)){V=g;c[(V&p)>>2]=1;c[(V&p)+4>>2]=0;b[(v&o)>>1]=4;break}else{Zg(g,1,0);break}}while(0);if((b[(Ia&o)>>1]&9312)==0&(c[(Ka&p)>>2]|0)==0){C=L;T=t}else{Qg(Md);C=L;T=t}break}case 11:{c[(Rc&p)>>2]=0;c[(Pa&p)>>2]=-1;c[(Qa&p)>>2]=-1;g=Wh(le,c[(s+(t*20|0)&p)+4>>2]|0,c[(s+(t*20|0)&p)+8>>2]|0,Qa,Pa)|0;if((g|0)==5){c[(Rc&p)>>2]=1;g=0}v=0;w=z+((c[(s+(t*20|0)&p)+12>>2]|0)*40|0)|0;while(1){C=c[(Rc+(v<<2)&p)>>2]|0;A=((C|0)<0)<<31>>31;u=w+8|0;if(!(b[(u&o)>>1]&9312)){V=w;c[(V&p)>>2]=C;c[(V&p)+4>>2]=A;b[(u&o)>>1]=4}else Zg(w,C,A);v=v+1|0;if((v|0)==3){C=L;T=t;u=g;break}else w=w+40|0}break}case 142:{C=c[(s+(t*20|0)&p)+4>>2]|0;v=z+(C*40|0)|0;u=Yk(v,c[(s+(t*20|0)&p)+16>>2]|0)|0;if(u){c[(ke&p)>>2]=Sg(v,1)|0;dh(je,le,10344,ke)}Yl(v,xb)|0;w=e[(z+(C*40|0)&o)+8>>1]|0;if(w&18){g=c[(z+(C*40|0)&p)+12>>2]|0;if(w&16384)g=(c[(v&p)>>2]|0)+g|0;if((g|0)>(c[((c[(z+(C*40|0)&p)+32>>2]|0)&p)+88>>2]|0)){g=m;m=r;u=x;ie=1316;break c}else{C=L;T=t}}else{C=L;T=t}break}case 12:{g=c[(s+(t*20|0)&p)+12>>2]|0;L=c[((c[(Xd&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<4)&p)+4>>2]|0;I=c[(c[(L&p)+4>>2]&p)>>2]|0;J=a[(I&n)+5>>0]|0;H=J&255;g=(g|0)==-1?H:g;do if((d[(I&n)+16>>0]|0)>2)g=H;else if((c[(c[(I&p)+64>>2]&p)>>2]|0)!=0?(V=I+72|0,U=c[(V&p)+4>>2]|0,(U|0)>0|(U|0)==0&(c[(V&p)>>2]|0)>>>0>0):0){g=H;break}while(0);if(!(a[(I&n)+15>>0]|0))A=c[(I&p)+168>>2]|0;else A=10360;K=(g|0)==5;if(K)if(A){C=A;while(1)if(!(a[(C&n)>>0]|0))break;else C=C+1|0;if(C-A&1073741823){C=c[(c[(I&p)+60>>2]&p)>>2]|0;if(!(a[(I&n)+4>>0]|0))if((c[(C&p)>>2]|0)>1?!((c[(C&p)+52>>2]|0)==0|(g|0)==(H|0)):0)ie=1077;else{g=H;u=0}else ie=1076}else{g=H;u=0}}else{g=H;u=0}else ie=1076;if((ie|0)==1076){ie=0;if((g|0)==(H|0)){g=H;u=0}else ie=1077}do if((ie|0)==1077){ie=0;C=J<<24>>24==5;if(C|K){if(!(a[(ee&n)>>0]|0)){g=m;s=K;m=r;u=x;ie=1080;break c}if((c[(Zb&p)>>2]|0)>1){g=m;s=K;m=r;u=x;ie=1080;break c}if(!C){if(J<<24>>24==4)sn(I,2)|0}else{J=I+208|0;if(!(c[(J&p)>>2]|0)){c[(_c&p)>>2]=0;u=fl(I,1)|0;if(u)break;u=c[(I&p)>>2]|0;u=pc[c[(u&p)+32>>2]&31](u,c[(I&p)+212>>2]|0,0,_c)|0;if((u|0)==0&(c[(_c&p)>>2]|0)!=0)u=pn(I)|0;if(u)break;if(c[(J&p)>>2]|0)ie=1088}else ie=1088;if((ie|0)==1088){ie=0;u=qn(I)|0;if(u)break;u=rn(c[(J&p)>>2]|0,d[(I&n)+9>>0]|0,c[(I&p)+152>>2]|0,c[(I&p)+200>>2]|0)|0;c[(J&p)>>2]=0;if(u)break}sn(I,g)|0}u=Fg(L,K?2:1)|0}else u=0}while(0);g=sn(I,(u|0)==0?g:H)|0;C=c[(s+(t*20|0)&p)+8>>2]|0;J=z+(C*40|0)|0;b[(z+(C*40|0)&o)+8>>1]=2562;if((g|0)==6){c[(z+(C*40|0)&p)+16>>2]=0;g=0}else{v=c[(g<<2&p)+32216>>2]|0;c[(z+(C*40|0)&p)+16>>2]=v;g=v;while(1)if(!(a[(g&n)>>0]|0))break;else g=g+1|0;g=g-v&1073741823}c[(z+(C*40|0)&p)+12>>2]=g;a[(z+(C*40|0)&n)+10>>0]=1;Yl(J,xb)|0;C=J;T=t;break}case 13:{if(!(a[(ee&n)>>0]|0)){g=m;m=r;u=x;ie=1101;break c}if((c[(Ra&p)>>2]|0)>1){g=m;m=r;u=x;ie=1103;break c}S=c[(Tb&p)>>2]|0;N=c[(vb&p)>>2]|0;w=c[(wb&p)>>2]|0;v=c[(Sa&p)>>2]|0;c[(Tb&p)>>2]=S&-2762753|2107392;c[(Sa&p)>>2]=0;g=c[((c[(Xd&p)>>2]|0)&p)+4>>2]|0;P=g+4|0;I=a[((c[(c[(P&p)>>2]&p)>>2]|0)&n)+15>>0]|0;V=c[(Ub&p)>>2]|0;u=tn(le,je,(a[(_b&n)>>0]|0)==2?42432:42464)|0;J=c[(Ub&p)>>2]|0;if((J|0)>(V|0))M=(c[(Xd&p)>>2]|0)+(J+-1<<4)|0;else M=0;i:do if(!u){O=c[((c[(Xd&p)>>2]|0)+(J+-1<<4)&p)+4>>2]|0;un(O)|0;T=c[(P&p)>>2]|0;c[(T&p)+4>>2]=c[(g&p)>>2];T=(c[(T&p)+32>>2]|0)-(c[(T&p)+36>>2]|0)|0;u=tn(le,je,42488)|0;if(!u){u=tn(le,je,42528)|0;if(!u){u=yg(g,2)|0;if(!u){J=c[(P&p)>>2]|0;if((a[((c[(J&p)>>2]|0)&n)+5>>0]|0)==5)c[(Ta&p)>>2]=0;if(!(xg(O,c[(J&p)+32>>2]|0,T,0)|0)){if(I<<24>>24==0?(xg(O,c[(Ta&p)>>2]|0,T,0)|0)!=0:0){u=7;break}if(a[(ge&n)>>0]|0){u=7;break}J=a[(Ua&n)>>0]|0;do if(J<<24>>24>-1)J=J<<24>>24;else{J=c[(P&p)>>2]|0;c[(J&p)+4>>2]=c[(g&p)>>2];if(!(a[(J&n)+17>>0]|0)){J=0;break}J=(a[(J&n)+18>>0]|0)==0?1:2}while(0);vn(O,J)|0;u=wn(le,je,42536)|0;if(u)break;u=wn(le,je,42688)|0;if(u)break;u=wn(le,je,42792)|0;if(u)break;u=wn(le,je,42912)|0;if(u)break;u=wn(le,je,43112)|0;if(u)break;u=wn(le,je,43232)|0;if(u)break;u=tn(le,je,43392)|0;if(!u)J=0;else break;do{u=d[(J&n)+43576>>0]|0;wm(g,u,ad);u=Dg(O,u,(d[((J|1)&n)+43576>>0]|0)+(c[(ad&p)>>2]|0)|0)|0;J=J+2|0;if(u)break i}while((J|0)<10);H=c[(P&p)>>2]|0;c[(H&p)+4>>2]=c[(g&p)>>2];J=c[(O&p)>>2]|0;K=O+4|0;I=c[(K&p)>>2]|0;c[(I&p)+4>>2]=J;H=c[((c[(H&p)>>2]|0)&p)+60>>2]|0;F=c[(H&p)>>2]|0;if(F){V=c[(I&p)+32>>2]|0;V=sw(c[(I&p)+44>>2]|0,0,V|0,((V|0)<0)<<31>>31|0)|0;u=id;c[(u&p)>>2]=V;c[(u&p)+4>>2]=G;u=ac[c[(F&p)+40>>2]&63](H,11,id)|0;u=(u|0)==12?0:u;if(u)break;J=c[(O&p)>>2]|0}U=Tc+0|0;V=U+48|0;do{c[(U&p)>>2]=0;U=U+4|0}while((U|0)<(V|0));c[(Va&p)>>2]=J;c[(Wa&p)>>2]=O;c[(Xa&p)>>2]=g;c[(Ya&p)>>2]=1;gd(Tc,2147483647)|0;u=hd(Tc)|0;if(u){C=c[(c[((c[(Xa&p)>>2]|0)&p)+4>>2]&p)>>2]|0;if(a[(C&n)+15>>0]|0)break;if(a[(C&n)+12>>0]|0)break;xn(C);break}u=(c[(P&p)>>2]|0)+22|0;b[(u&o)>>1]=e[(u&o)>>1]&65533;u=un(O)|0;if(u)break;J=c[(K&p)>>2]|0;c[(J&p)+4>>2]=c[(O&p)>>2];if(!(a[(J&n)+17>>0]|0))E=0;else E=(a[(J&n)+18>>0]|0)==0?1:2;vn(g,E)|0;u=xg(g,c[((c[(K&p)>>2]|0)&p)+32>>2]|0,T,1)|0}else u=7}}}}while(0);c[(Tb&p)>>2]=S;c[(vb&p)>>2]=N;c[(wb&p)>>2]=w;c[(Sa&p)>>2]=v;xg(g,-1,-1,1)|0;a[(ee&n)>>0]=1;if(M){V=M+4|0;Ml(c[(V&p)>>2]|0);c[(V&p)>>2]=0;c[(M&p)+12>>2]=0}Eg(le);C=L;T=t;break}case 143:{V=c[((c[(Xd&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<4)&p)+4>>2]|0;I=c[(V&p)+4>>2]|0;c[(I&p)+4>>2]=c[(V&p)>>2];if(!(a[(I&n)+17>>0]|0)){g=m;m=r;u=L;ie=1157;break d}E=I+44|0;H=c[(E&p)>>2]|0;A=I+12|0;C=c[((c[(A&p)>>2]|0)&p)+56>>2]|0;C=d[(C&n)+37>>0]<<16|d[(C&n)+36>>0]<<24|d[(C&n)+38>>0]<<8|d[(C&n)+39>>0];F=El(I,H,C)|0;if(H>>>0>>0){g=m;m=r;u=x;ie=1145;break c}if(!C){g=m;m=r;u=L;ie=1157;break d}J=I+8|0;g=c[(J&p)>>2]|0;do if(g){C=g;do{if(C){ie=1150;break}C=c[2]|0}while((C|0)!=0);if((ie|0)==1150){ie=0;u=Fl(C,0,0)|0;if(u)break;g=c[(J&p)>>2]|0}if(g){do{V=g+72|0;a[(V&n)>>0]=d[(V&n)>>0]&251;g=c[(g&p)+8>>2]|0}while((g|0)!=0);ie=1154}else ie=1154}else ie=1154;while(0);if((ie|0)==1154){ie=0;u=Gl(I,F,H,0)|0;if(!u){u=Gg(c[((c[(A&p)>>2]|0)&p)+68>>2]|0)|0;V=c[((c[(A&p)>>2]|0)&p)+56>>2]|0;U=c[(E&p)>>2]|0;a[(V&n)+28>>0]=U>>>24;a[(V&n)+29>>0]=U>>>16;a[(V&n)+30>>0]=U>>>8;a[(V&n)+31>>0]=U}}if((u|0)==101){g=m;m=r;u=L;ie=1157;break d}else{C=L;T=t}break}case 145:{g=c[(s+(t*20|0)&p)+12>>2]|0;if((g&255|0)==0?(c[(Tb&p)>>2]&16384|0)!=0:0){g=m;m=r;S=z;T=s;U=W;V=X;u=L;r=t;break d}C=c[((c[(Xd&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<4)&p)+4>>2]|0;A=c[(s+(t*20|0)&p)+8>>2]|0;if(!(a[(C&n)+9>>0]|0)){g=m;m=r;S=z;T=s;U=W;V=X;u=L;r=t;break d}v=g+1&255;w=C+4|0;c[((c[(w&p)>>2]|0)&p)+4>>2]=c[(C&p)>>2];u=bl(C,A,v)|0;if(!u){g=m;m=r;u=L;r=t;ie=1166;break d}if((u&255|0)!=6){g=m;m=r;s=u;u=x;ie=1309;break c}c[(ke&p)>>2]=c[(s+(t*20|0)&p)+16>>2];dh(je,le,42224,ke);C=L;T=t;break}case 144:{g=m;m=r;u=L;r=t;ie=1158;break d}case 146:{J=c[(s+(t*20|0)&p)+16>>2]|0;v=c[(Za&p)>>2]|0;u=(v|0)>0;if(u?(c[(_a&p)>>2]|0)==0:0){u=6;ie=1188}else ie=1179;j:do if((ie|0)==1179){ie=0;if(!J){g=m;m=r;S=z;T=s;U=W;V=X;u=L;r=t;break d}g=J+8|0;w=(c[(c[(g&p)>>2]&p)>>2]|0)+56|0;if(c[(w&p)>>2]|0){if(u){C=c[(_a&p)>>2]|0;A=0;do{if((c[(C+(A<<2)&p)>>2]|0)==(J|0)){u=0;ie=1188;break j}A=A+1|0}while((A|0)<(v|0))}u=yn(le)|0;if(!u){u=lc[c[(w&p)>>2]&127](c[(g&p)>>2]|0)|0;if(!u){u=c[(Za&p)>>2]|0;c[(Za&p)>>2]=u+1;c[((c[(_a&p)>>2]|0)+(u<<2)&p)>>2]=J;u=J+12|0;c[(u&p)>>2]=(c[(u&p)>>2]|0)+1;u=0}}else ie=1188}else u=0}while(0);if((ie|0)==1188){ie=0;if(!J){C=L;T=t;break e}g=J+8|0}Mm(f,c[(g&p)>>2]|0);C=L;T=t;break}case 147:{U=Kd+0|0;V=U+40|0;do{c[(U&p)>>2]=0;U=U+4|0}while((U|0)<(V|0));c[($a&p)>>2]=le;g=_g(Kd,z+((c[(s+(t*20|0)&p)+8>>2]|0)*40|0)|0)|0;u=Sg(Kd,1)|0;k:do if(u){v=_h(le,u,c[((c[(Xd&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<4)&p)>>2]|0)|0;g=c[(c[(v&p)+56>>2]&p)>>2]|0;u=bn(cb,g,Xc)|0;if((u|0)!=0?(Oc=c[(u&p)+8>>2]|0,(Oc|0)!=0):0){g=zn(le,v,Oc,c[((c[(Oc&p)>>2]|0)&p)+4>>2]|0,je)|0;if(g)break;u=v+60|0;g=c[(u&p)>>2]|0;if(!g){g=0;break}while(1){if((c[(g&p)>>2]|0)==(le|0))break;g=c[(g&p)+24>>2]|0;if(!g){g=0;break k}}g=yn(le)|0;if(g)break;g=c[(u&p)>>2]|0;l:do if(!g)g=0;else while(1){if((c[(g&p)>>2]|0)==(le|0))break l;g=c[(g&p)+24>>2]|0;if(!g){g=0;break}}while(0);V=c[(Za&p)>>2]|0;c[(Za&p)>>2]=V+1;c[((c[(_a&p)>>2]|0)+(V<<2)&p)>>2]=g;g=g+12|0;c[(g&p)>>2]=(c[(g&p)>>2]|0)+1;g=0;break}c[(ke&p)>>2]=g;c[(je&p)>>2]=uh(le,28320,ke)|0;g=1}while(0);if((b[(ab&o)>>1]&9312)==0&(c[(bb&p)>>2]|0)==0){C=L;T=t;u=g}else{Qg(Kd);C=L;T=t;u=g}break}case 148:{c[(ha&p)>>2]=(c[(ha&p)>>2]|0)+1;g=_h(le,c[(s+(t*20|0)&p)+16>>2]|0,c[((c[(Xd&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<4)&p)>>2]|0)|0;m:do if((g|0)!=0?(Pc=g+60|0,Qc=c[(Pc&p)>>2]|0,(Qc|0)!=0):0){u=Qc;do{if((c[((c[(u&p)+8>>2]|0)&p)+4>>2]|0)>0){u=6;break m}u=c[(u&p)+24>>2]|0}while((u|0)!=0);g=Ok(le,g)|0;v=g+8|0;u=lc[c[((c[(c[(g&p)+4>>2]&p)>>2]|0)&p)+20>>2]&127](c[(v&p)>>2]|0)|0;if(!u){c[(v&p)>>2]=0;c[(Pc&p)>>2]=0;An(g);u=0}}else u=0;while(0);c[(ha&p)>>2]=(c[(ha&p)>>2]|0)+-1;C=L;T=t;break}case 149:{g=m;m=r;u=L;r=t;ie=1213;break d}case 150:{g=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;C=c[(s+(t*20|0)&p)+12>>2]|0;A=z+(C*40|0)|0;if(a[(g&n)+25>>0]|0){g=m;m=r;u=L;r=t;ie=1226;break d}V=g+32|0;u=c[(c[(V&p)>>2]&p)>>2]|0;U=c[(u&p)>>2]|0;c[(Id&p)>>2]=0;c[(Id&p)+4>>2]=0;c[(Id&p)+8>>2]=0;c[(Id&p)+12>>2]=0;c[(Id&p)+16>>2]=0;c[(Id&p)+20>>2]=0;c[(Id&p)+24>>2]=0;c[(Id&p)>>2]=A;v=z+(C*40|0)+8|0;b[(v&o)>>1]=e[(v&o)>>1]&48640|1;V=ac[c[(U&p)+44>>2]&63](c[(V&p)>>2]|0,Id,c[(s+(t*20|0)&p)+8>>2]|0)|0;Mm(f,u);u=c[(db&p)>>2]|0;u=(u|0)==0?V:u;Yl(A,xb)|0;v=e[(v&o)>>1]|0;if(v&18){g=c[(z+(C*40|0)&p)+12>>2]|0;if(v&16384)g=(c[(A&p)>>2]|0)+g|0;if((g|0)>(c[((c[(z+(C*40|0)&p)+32>>2]|0)&p)+88>>2]|0)){g=m;m=r;u=x;ie=1316;break c}else{C=L;T=t}}else{C=L;T=t}break}case 14:{A=c[(s+(t*20|0)&p)+12>>2]|0;C=A+1|0;F=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;J=c[(F&p)+32>>2]|0;I=c[(J&p)>>2]|0;H=c[(I&p)>>2]|0;E=c[(z+(C*40|0)&p)>>2]|0;A=c[(z+(A*40|0)&p)>>2]|0;g=c[(Bb&p)>>2]|0;if((E|0)>0){u=0;do{V=u;u=u+1|0;c[(g+(V<<2)&p)>>2]=z+((u+C|0)*40|0)}while((u|0)!=(E|0))}u=tc[c[(H&p)+32>>2]&31](J,A,c[(s+(t*20|0)&p)+16>>2]|0,E,g)|0;Mm(f,I);if((u|0)==0?(lc[c[(H&p)+40>>2]&127](J)|0)!=0:0)t=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;a[(F&n)+25>>0]=0;C=L;T=t;break}case 151:{g=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;if(a[(g&n)+25>>0]|0){g=m;m=r;S=z;T=s;U=W;V=X;u=L;r=t;break d}g=g+32|0;v=c[(g&p)>>2]|0;V=c[(v&p)>>2]|0;u=c[(V&p)>>2]|0;v=lc[c[(u&p)+36>>2]&127](v)|0;Mm(f,V);if((v|0)==0?(lc[c[(u&p)+40>>2]&127](c[(g&p)>>2]|0)|0)!=0:0){u=0;ie=19;break e}t=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;u=v;ie=19;break}case 15:{F=s+(t*20|0)+16|0;v=c[((c[(F&p)>>2]|0)&p)+8>>2]|0;if(!v){g=m;m=r;s=6;u=x;ie=1309;break c}g=c[(v&p)>>2]|0;if(!g){g=m;m=r;s=6;u=x;ie=1309;break c}I=c[(s+(t*20|0)&p)+8>>2]|0;E=g+52|0;C=c[(E&p)>>2]|0;if(!C){g=m;m=r;S=z;T=s;U=W;V=X;u=L;r=t;break d}H=a[(eb&n)>>0]|0;J=c[(Bb&p)>>2]|0;if((I|0)>0){C=0;A=z+((c[(s+(t*20|0)&p)+12>>2]|0)*40|0)|0;while(1){c[(J+(C<<2)&p)>>2]=A;C=C+1|0;if((C|0)==(I|0))break;else A=A+40|0}C=c[(E&p)>>2]|0}A=s+(t*20|0)+3|0;a[(eb&n)>>0]=a[(A&n)>>0]|0;u=pc[C&31](v,I,J,Hd)|0;a[(eb&n)>>0]=H;Mm(f,v);if(!u){if(c[(s+(t*20|0)&p)+4>>2]|0){l=Hd;r=c[(l&p)>>2]|0;l=c[(l&p)+4>>2]|0;V=ne;c[(V&p)>>2]=r;c[(V&p)+4>>2]=l}}else if((u&255|0)==19?(a[((c[(F&p)>>2]|0)&n)+16>>0]|0)!=0:0){g=a[(A&n)>>0]|0;if(g<<24>>24==5)g=2;else if(g<<24>>24==4){g=m;m=r;S=z;T=s;U=W;V=X;u=L;r=t;break d}a[(fe&n)>>0]=g;C=L;T=t;break e}c[(ub&p)>>2]=(c[(ub&p)>>2]|0)+1;C=L;T=t;break}case 152:{g=c[((c[(s+(t*20|0)&p)+16>>2]|0)&p)+8>>2]|0;u=c[(s+(t*20|0)&p)+4>>2]|0;v=z+(u*40|0)|0;if(((b[(z+(u*40|0)&o)+8>>1]&2)!=0?(a[(z+(u*40|0)&n)+10>>0]|0)!=1:0)?(Wd=Bn(v,1)|0,(Wd|0)!=0):0){g=m;m=r;s=Wd;u=x;ie=1309;break c}u=rc[c[((c[(g&p)>>2]|0)&p)+76>>2]&127](g,c[(z+(u*40|0)&p)+16>>2]|0)|0;Mm(f,g);b[(Yd&o)>>1]=b[(Yd&o)>>1]&-9;C=L;T=t;break}case 153:{g=m;m=r;u=L;r=t;ie=1257;break d}case 155:{g=m;m=r;ie=1264;break d}case 154:{g=m;m=r;J=L;r=t;ie=1258;break d}default:{g=m;m=r;S=z;T=s;U=W;V=X;u=L;r=t;break d}}while(0);n:do if((ie|0)==57){ie=0;w=L+8|0;b[(w&o)>>1]=2562;c[(L&p)+16>>2]=v;c[(L&p)+12>>2]=g;a[(L&n)+10>>0]=Jc;if((a[(s+(t*20|0)&n)+3>>0]|0)!=0?(V=z+((c[(s+(t*20|0)&p)+12>>2]|0)*40|0)|0,!((c[(V&p)>>2]|0)==0&(c[(V&p)+4>>2]|0)==0)):0){b[(w&o)>>1]=2576;C=L;T=t}else{C=L;T=t}}else if((ie|0)==536){if(b[(Yd&o)>>1]&8){g=m;m=r;s=516;u=x;ie=1309;break c}C=c[(s+(t*20|0)&p)+8>>2]|0;I=c[(s+(t*20|0)&p)+12>>2]|0;g=c[(Xd&p)>>2]|0;H=c[(g+(I<<4)&p)+4>>2]|0;if(J<<24>>24==55){g=a[((c[(g+(I<<4)&p)+12>>2]|0)&n)+76>>0]|0;if((g&255)<(d[(Mb&n)>>0]|0)){a[(Mb&n)>>0]=g;J=1}else J=1}else J=0;v=s+(t*20|0)+3|0;if(a[(v&n)>>0]&4){V=z+(C*40|0)|0;g=Vg(V)|0;c[(V&p)>>2]=g;c[(V&p)+4>>2]=G;V=z+(C*40|0)+8|0;b[(V&o)>>1]=e[(V&o)>>1]&48640|4;if((g|0)<2){g=m;m=r;s=x;ie=542;break c}else E=g}else E=C;u=s+(t*20|0)+1|0;C=a[(u&n)>>0]|0;if(C<<24>>24==-6){A=c[(s+(t*20|0)&p)+16>>2]|0;C=(e[(A&o)+8>>1]|0)+(e[(A&o)+6>>1]|0)|0}else if(C<<24>>24==-14){C=c[(s+(t*20|0)&p)+16>>2]|0;A=0}else{C=0;A=0}g=xm(f,c[(s+(t*20|0)&p)+4>>2]|0,C,I,1)|0;if(!g){y=ge;z=je;g=m;m=x;ie=1317;break a}a[(g&n)+25>>0]=1;V=g+27|0;a[(V&n)>>0]=a[(V&n)>>0]|8;c[(g&p)+28>>2]=E;ie=ym(H,E,J,A,c[(g&p)>>2]|0)|0;c[(g&p)+8>>2]=A;a[(V&n)>>0]=((a[(u&n)>>0]|0)!=-6&1)<<2&255|a[(V&n)>>0]&-5;u=ie;ie=548}else if((ie|0)==715){ie=0;M=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;V=c[(M&p)+56>>2]|0;do if(!V){u=c[(M&p)>>2]|0;g=qm(u)|0;if(!g)if(!(a[(u&n)+73>>0]|0)){v=1;g=0}else{v=0;g=Vm(u)|0}else v=1;a[(M&n)+26>>0]=0;c[(M&p)+60>>2]=0;a[(M&n)+25>>0]=v;if(!v){C=L;T=t;u=g;break n}}else{do if(!(a[(V&n)+56>>0]|0)){g=V+36|0;if(!(c[(g&p)>>2]|0)){g=0;ie=756}else{g=Nm(V+64|0,g)|0;ie=755}}else{g=Om(V)|0;if(!g){U=V+59|0;o:do if(!(a[(U&n)>>0]|0)){u=0;g=0}else{w=0;v=0;p:while(1){T=V+(w<<6)+64|0;c[(ke&p)>>2]=0;S=V+(w<<6)+92|0;C=c[(S&p)>>2]|0;J=((C|0)<0)<<31>>31;do if((C|0)>16){I=16;H=0;E=0;while(1){I=iw(I|0,H|0,4)|0;H=G;F=E+1|0;if(!((H|0)<(J|0)|(H|0)==(J|0)&I>>>0>>0)){H=E;break}else E=F}P=Sd;c[(P&p)>>2]=0;c[(P&p)+4>>2]=0;if((C|0)<17){ie=726;break}u=Qm(16)|0;c[(ke&p)>>2]=u;J=(u|0)==0;I=c[(S&p)>>2]|0;if(!((I|0)>0&(J^1))){g=J?7:0;break}N=(H|0)>0;P=0;O=0;do{c[(qd&p)>>2]=0;g=I-P|0;g=Pm(T,(g|0)<16?g:16,Sd,qd)|0;if(g){ie=747;break p}g=Rm(T,c[(qd&p)>>2]|0,pd)|0;do if(N){I=1;J=1;do{J=J<<4;I=I+1|0}while((I|0)!=(F|0));if(!g){H=1;I=u}else{J=c[(pd&p)>>2]|0;ie=743;break}while(1){K=(c[(I&p)+12>>2]|0)+((((O|0)/(J|0)|0|0)%16|0)*56|0)+48|0;I=c[(K&p)>>2]|0;if(!I){I=Qm(16)|0;if(!I){g=7;ie=738;break}g=Rm(T,I,K)|0;if(g){ie=738;break}I=c[(K&p)>>2]|0}I=c[(I&p)+4>>2]|0;H=H+1|0;if((H|0)>=(F|0)){ie=740;break}else J=(J|0)/16|0}if((ie|0)==738){J=c[(pd&p)>>2]|0;ie=743;break}else if((ie|0)==740){J=c[(pd&p)>>2]|0;ie=742;break}}else{J=c[(pd&p)>>2]|0;if(!g){I=u;ie=742}else ie=743}while(0);if((ie|0)==742){ie=0;c[((c[(I&p)+12>>2]|0)+(((O|0)%16|0)*56|0)&p)+48>>2]=J;g=0}else if((ie|0)==743){ie=0;Sm(J)}O=O+1|0;P=P+16|0;I=c[(S&p)>>2]|0}while((P|0)<(I|0)&(g|0)==0)}else{ie=Sd;c[(ie&p)>>2]=0;c[(ie&p)+4>>2]=0;ie=726}while(0);if((ie|0)==726){ie=0;g=Pm(T,C,Sd,ke)|0;u=c[(ke&p)>>2]|0}w=w+1|0;if(g){ie=746;break}if((w|0)>=(d[(U&n)>>0]|0)){g=0;break o}else v=u}if((ie|0)==746)Tm(u);else if((ie|0)==747)Tm(u);Tm(v);u=0}while(0);if(!g){g=Um(V+64|0,u)|0;c[(V&p)+20>>2]=u;if(!g){g=0;ie=755;break}else u=0}Tm(u);ie=755}else ie=756}while(0);if((ie|0)==755){ie=0;a[(M&n)+25>>0]=0;C=L;T=t;u=g;break n}else if((ie|0)==756){ie=0;a[(M&n)+25>>0]=1;break}}while(0);C=L;T=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;u=g}else if((ie|0)==765){u=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;c[(Fd&p)>>2]=c[(s+(t*20|0)&p)+12>>2];g=u;u=rc[c[(s+(t*20|0)&p)+16>>2]&127](c[(u&p)>>2]|0,Fd)|0;ie=766}while(0);do if((ie|0)==548){ie=0;a[((c[(g&p)>>2]|0)&n)+74>>0]=d[(v&n)>>0]&3;C=L;T=t}else if((ie|0)==766){c[(g&p)+60>>2]=0;g=g+25|0;if(!(c[(Fd&p)>>2]|0)){a[(g&n)>>0]=0;ie=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;t=f+(d[(s+(t*20|0)&n)+3>>0]<<2)+108|0;c[(t&p)>>2]=(c[(t&p)>>2]|0)+1;t=ie;ie=19;break}else{a[(g&n)>>0]=1;ie=19;break}}while(0);if((ie|0)==19){ie=0;if(c[(Cc&p)>>2]|0){u=je;g=m;m=x;break b}g=c[(be&p)>>2]|0;if(!((g|0)==0|m>>>0>>0)){y=c[(yc&p)>>2]|0;if(!(lc[g&127](c[(Zd&p)>>2]|0)|0)){y=y+m-((m>>>0)%(y>>>0)|0)|0;C=L;T=t}else{g=m;s=9;m=x;ie=1311;break a}}else{C=L;T=t}}t=T+1|0;if(!u){g=m;u=C}else{g=m;s=u;m=x;ie=1311;break a}}q:switch(ie|0){case 22:{ie=0;S=c[(s+(t*20|0)&p)+4>>2]|0;b[(z+(S*40|0)&o)+8>>1]=4;S=z+(S*40|0)|0;c[(S&p)>>2]=t;c[(S&p)+4>>2]=((t|0)<0)<<31>>31;S=z;T=s;U=W;V=X;r=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;break}case 23:{ie=0;S=c[(s+(t*20|0)&p)+4>>2]|0;r=c[(z+(S*40|0)&p)>>2]|0;b[(z+(S*40|0)&o)+8>>1]=128;S=z;T=s;U=W;V=X;break}case 24:{ie=0;r=c[(s+(t*20|0)&p)+4>>2]|0;u=z+(r*40|0)|0;T=(c[(s+(t*20|0)&p)+12>>2]|0)+-1|0;S=u;c[(S&p)>>2]=T;c[(S&p)+4>>2]=((T|0)<0)<<31>>31;b[(z+(r*40|0)&o)+8>>1]=4;r=c[(s+(t*20|0)&p)+8>>2]|0;S=z;T=s;U=W;V=X;r=(r|0)==0?t:r+-1|0;break}case 25:{ie=0;S=c[(s+(t*20|0)&p)+4>>2]|0;r=(c[(s+((c[(z+(S*40|0)&p)>>2]|0)*20|0)&p)+8>>2]|0)+-1|0;b[(z+(S*40|0)&o)+8>>1]=128;S=z;T=s;U=W;V=X;break}case 26:{ie=0;S=c[(s+(t*20|0)&p)+4>>2]|0;b[(z+(S*40|0)&o)+8>>1]=4;S=z+(S*40|0)|0;r=c[(S&p)>>2]|0;c[(S&p)>>2]=t;c[(S&p)+4>>2]=((t|0)<0)<<31>>31;S=z;T=s;U=W;V=X;break}case 27:{ie=0;if(!(b[(z+((c[(s+(r*20|0)&p)+12>>2]|0)*40|0)&o)+8>>1]&1)){S=z;T=s;U=W;V=X}else ie=28;break}case 44:{ie=0;T=c[(s+(r*20|0)&p)+4>>2]|0;S=u;c[(S&p)>>2]=T;c[(S&p)+4>>2]=((T|0)<0)<<31>>31;S=z;T=s;U=W;V=X;break}case 45:{ie=0;U=c[(s+(r*20|0)&p)+16>>2]|0;T=c[(U&p)+4>>2]|0;S=u;c[(S&p)>>2]=c[(U&p)>>2];c[(S&p)+4>>2]=T;S=z;T=s;U=W;V=X;break}case 46:{ie=0;b[(u&o)+8>>1]=8;h[(u&q)>>3]=+h[(c[(s+(r*20|0)&p)+16>>2]&q)>>3];S=z;T=s;U=W;V=X;break}case 60:{ie=0;J=(c[(s+(r*20|0)&p)+12>>2]|0)-(c[(s+(r*20|0)&p)+8>>2]|0)|0;t=(c[(s+(r*20|0)&p)+4>>2]|0)!=0?257:1;b[(u&o)+8>>1]=t;if((J|0)>0){w=J;A=u;do{v=A+48|0;A=A+40|0;if(!(b[(v&o)>>1]&9312))b[(v&o)>>1]=1;else vg(A);b[(v&o)>>1]=t;w=w+-1|0}while((w|0)>0);S=z;T=s;U=W;V=X;u=u+(J*40|0)|0}else{S=z;T=s;U=W;V=X}break}case 65:{ie=0;u=c[(s+(r*20|0)&p)+4>>2]|0;S=z+(u*40|0)+8|0;b[(S&o)>>1]=e[(S&o)>>1]&65406|1;S=z;T=s;U=W;V=X;u=z+(u*40|0)|0;break}case 66:{ie=0;Xg(u,c[(s+(r*20|0)&p)+16>>2]|0,c[(s+(r*20|0)&p)+4>>2]|0,0,0)|0;a[(u&n)+10>>0]=Jc;S=z;T=s;U=W;V=X;break}case 67:{ie=0;C=(c[(s+(r*20|0)&p)+4>>2]|0)+-1|0;A=c[(Ab&p)>>2]|0;w=A+(C*40|0)|0;v=e[(A+(C*40|0)&o)+8>>1]|0;if(v&18){t=c[(A+(C*40|0)&p)+12>>2]|0;if(v&16384)t=(c[(w&p)>>2]|0)+t|0;if((t|0)>(c[((c[(A+(C*40|0)&p)+32>>2]|0)&p)+88>>2]|0)){t=r;u=x;ie=1316;break c}}Zl(u,w,2048);S=z;T=s;U=W;V=X;break}case 72:{ie=0;t=c[(s+(r*20|0)&p)+12>>2]|0;v=c[(s+(r*20|0)&p)+8>>2]|0;J=t+v|0;u=z+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)|0;v=z+(v*40|0)|0;while(1){_l(v,u);t=t+-1|0;if(!t)break;else{u=u+40|0;v=v+40|0}}S=z;T=s;U=W;V=X;u=z+(J*40|0)|0;break}case 74:{ie=0;r=c[(s+(t*20|0)&p)+12>>2]|0;u=z+((c[(s+(t*20|0)&p)+4>>2]|0)*40|0)|0;J=z+((c[(s+(t*20|0)&p)+8>>2]|0)*40|0)|0;while(1){Zl(J,u,4096);if((b[(J&o)+8>>1]&4096)!=0?(Vl(J)|0)!=0:0){y=ge;z=je;r=m;m=x;ie=1317;break a}if(!r){S=z;T=s;U=W;V=X;u=J;r=t;break q}r=r+-1|0;u=u+40|0;J=J+40|0}}case 79:{ie=0;u=z+((c[(s+(r*20|0)&p)+8>>2]|0)*40|0)|0;Zl(u,z+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)|0,4096);S=z;T=s;U=W;V=X;break}case 94:{ie=0;K=c[(s+(t*20|0)&p)+4>>2]|0;J=z+(K*40|0)|0;L=c[(s+(t*20|0)&p)+8>>2]|0;I=z+(L*40|0)|0;M=c[(s+(t*20|0)&p)+12>>2]|0;u=z+(M*40|0)|0;H=z+(K*40|0)+8|0;E=b[(H&o)>>1]|0;F=z+(L*40|0)+8|0;C=b[(F&o)>>1]|0;if((C|E)&1){r=z+(M*40|0)+8|0;if(!(b[(r&o)>>1]&9312)){b[(r&o)>>1]=1;S=z;T=s;U=W;V=X;r=t;break}else{vg(u);S=z;T=s;U=W;V=X;r=t;break}}if(E&16384){if(Rg(J)|0){y=ge;z=je;r=m;m=x;ie=1317;break a}C=b[(F&o)>>1]|0}if((C&16384)!=0?(Rg(I)|0)!=0:0){y=ge;z=je;r=m;m=x;ie=1317;break a}if((b[(H&o)>>1]&18)==0?(bm(J,Jc,0)|0)!=0:0){y=ge;z=je;r=m;m=x;ie=1317;break a}if((b[(F&o)>>1]&18)==0?(bm(I,Jc,0)|0)!=0:0){y=ge;z=je;r=m;m=x;ie=1317;break a}E=z+(K*40|0)+12|0;A=z+(L*40|0)+12|0;r=(c[(A&p)>>2]|0)+(c[(E&p)>>2]|0)|0;if((r|0)>(c[(zb&p)>>2]|0)){u=x;ie=1316;break c}v=(M|0)==(L|0);if(eh(u,r+2|0,v&1)|0){y=ge;z=je;r=m;m=x;ie=1317;break a}w=z+(M*40|0)+8|0;b[(w&o)>>1]=e[(w&o)>>1]&48640|2;C=z+(M*40|0)+16|0;if(!v)kw(c[(C&p)>>2]|0,c[(z+(L*40|0)&p)+16>>2]|0,c[(A&p)>>2]|0)|0;kw((c[(C&p)>>2]|0)+(c[(A&p)>>2]|0)|0,c[(z+(K*40|0)&p)+16>>2]|0,c[(E&p)>>2]|0)|0;a[((c[(C&p)>>2]|0)+r&n)>>0]=0;a[((c[(C&p)>>2]|0)+r&n)+1>>0]=0;b[(w&o)>>1]=e[(w&o)>>1]|512;c[(z+(M*40|0)&p)+12>>2]=r;a[(z+(M*40|0)&n)+10>>0]=Jc;S=z;T=s;U=W;V=X;r=t;break}case 112:{ie=0;V=c[(s+(r*20|0)&p)+4>>2]|0;N=z+(V*40|0)|0;S=cm(N)|0;w=c[(s+(r*20|0)&p)+8>>2]|0;O=z+(w*40|0)|0;T=cm(O)|0;U=c[(s+(r*20|0)&p)+12>>2]|0;u=z+(U*40|0)|0;r:do if(!((b[(z+(w*40|0)&o)+8>>1]|b[(z+(V*40|0)&o)+8>>1])&1)){s:do if(!((S&4&T)<<16>>16))L=0;else{t=N;C=c[(t&p)>>2]|0;t=c[(t&p)+4>>2]|0;F=O;v=c[(F&p)>>2]|0;F=c[(F&p)+4>>2]|0;J=d[(P&n)>>0]|0;t:do if((J|0)==89){if((t|0)>-1|(t|0)==-1&C>>>0>4294967295){V=dw(-1,2147483647,v|0,F|0)|0;w=G;if(((F|0)>0|(F|0)==0&v>>>0>0)&((w|0)<(t|0)|(w|0)==(t|0)&V>>>0>>0)){L=1;break s}}else if((F|0)<0?(w=dw(1,-2147483648,v|0,F|0)|0,A=G,V=jw(C|0,t|0,1,0)|0,M=G,(A|0)>(M|0)|(A|0)==(M|0)&w>>>0>V>>>0):0){L=1;break s}v=jw(v|0,F|0,C|0,t|0)|0;t=G}else if((J|0)==91){L=qw(v|0,F|0,0,1)|0;K=G;E=rw(v|0,F|0,0,1)|0;A=G;J=qw(C|0,t|0,0,1)|0;I=G;M=rw(C|0,t|0,0,1)|0;w=G;V=jw(v|0,F|0,-1,0)|0;pe=G;H=jw(C|0,t|0,-1,0)|0;qe=G;H=qe>>>0<1|(qe|0)==1&H>>>0<4294967295;do if(pe>>>0<1|(pe|0)==1&V>>>0<4294967295)if(H){v=sw(v|0,F|0,C|0,t|0)|0;t=G;break t}else{H=sw(J|0,I|0,E|0,A|0)|0;F=G;break}else{if(!H){L=1;break s}H=sw(M|0,w|0,L|0,K|0)|0;F=G}while(0);V=jw(H|0,F|0,-2147483648,0)|0;v=G;if(v>>>0>0|(v|0)==0&V>>>0>4294967295){L=1;break s}J=sw(M|0,w|0,E|0,A|0)|0;I=G;if((I|0)>-1|(I|0)==-1&J>>>0>4294967295){V=dw(-1,2147483647,0,H|0)|0;w=G;if(((F|0)>0|(F|0)==0&H>>>0>0)&((w|0)<(I|0)|(w|0)==(I|0)&V>>>0>>0)){L=1;break s}}else if((F|0)<0?(w=dw(1,-2147483648,0,H|0)|0,t=G,V=jw(J|0,I|0,1,0)|0,v=G,(t|0)>(v|0)|(t|0)==(v|0)&w>>>0>V>>>0):0){L=1;break s}v=jw(0,H|0,J|0,I|0)|0;t=G}else if((J|0)==90){if((C|0)==0&(t|0)==-2147483648){if((F|0)>-1|(F|0)==-1&v>>>0>4294967295){L=1;break s}t=F^-2147483648;break}if((t|0)<0|(t|0)==0&C>>>0<1){V=dw(0,0,C|0,t|0)|0;M=G;w=dw(-1,2147483647,v|0,F|0)|0;A=G;if(((F|0)>0|(F|0)==0&v>>>0>0)&((A|0)<(M|0)|(A|0)==(M|0)&w>>>0>>0)){L=1;break s}}else if((F|0)<0?(w=dw(1,-2147483648,v|0,F|0)|0,A=G,V=dw(1,0,C|0,t|0)|0,M=G,(A|0)>(M|0)|(A|0)==(M|0)&w>>>0>V>>>0):0){L=1;break s}v=dw(v|0,F|0,C|0,t|0)|0;t=G}else if((J|0)==92){if((C|0)==0&(t|0)==0)break r;if((C|0)==-1&(t|0)==-1&((v|0)==0&(F|0)==-2147483648)){L=1;break s}v=qw(v|0,F|0,C|0,t|0)|0;t=G}else{if((C|0)==-1){if((t|0)==-1){C=1;t=0}}else if((C|0)==0?(t|0)==0:0)break r;v=rw(v|0,F|0,C|0,t|0)|0;t=G}while(0);S=u;c[(S&p)>>2]=v;c[(S&p)+4>>2]=t;S=z+(U*40|0)+8|0;b[(S&o)>>1]=e[(S&o)>>1]&48640|4;S=z;T=s;U=W;V=X;break q}while(0);D=+Ug(N);B=+Ug(O);C=d[(P&n)>>0]|0;if((C|0)==89)B=D+B;else if((C|0)==90)B=B-D;else if((C|0)==91)B=D*B;else if((C|0)==92){if(D==0.0)break;B=B/D}else{E=~~D>>>0;C=+R(D)>=1.0?(D>0.0?~~+da(+Q(D/4294967296.0),4294967295.0)>>>0:~~+ba((D-+(~~D>>>0))/4294967296.0)>>>0):0;I=~~B>>>0;J=+R(B)>=1.0?(B>0.0?~~+da(+Q(B/4294967296.0),4294967295.0)>>>0:~~+ba((B-+(~~B>>>0))/4294967296.0)>>>0):0;if(!E){if(!C)break}else if((E|0)==-1?(C|0)==-1:0){E=1;C=0}V=rw(I|0,J|0,E|0,C|0)|0;B=+(V>>>0)+4294967296.0*+(G|0)}h[(ke&q)>>3]=B;h[(Sd&q)>>3]=+h[(ke&q)>>3];if(!(+h[(ke&q)>>3]!=+h[(Sd&q)>>3])){h[(u&q)>>3]=B;V=z+(U*40|0)+8|0;b[(V&o)>>1]=e[(V&o)>>1]&48640|8;if(((T|S)&8)!=0|L<<24>>24!=0){S=z;T=s;U=W;V=X;break q}dm(u);S=z;T=s;U=W;V=X;break q}}while(0);t=z+(U*40|0)+8|0;if(!(b[(t&o)>>1]&9312)){b[(t&o)>>1]=1;S=z;T=s;U=W;V=X;break}else{vg(u);S=z;T=s;U=W;V=X;break}}case 166:{ie=0;t=c[(s+(r*20|0)&p)+4>>2]|0;if(t){u=z+(t*40|0)|0;t=z+(t*40|0)+8|0;if(!(b[(t&o)>>1]&9312)){S=u;c[(S&p)>>2]=0;c[(S&p)+4>>2]=0;b[(t&o)>>1]=4;S=z;T=s;U=W;V=X;u=J;break}else{Zg(u,0,0);S=z;T=s;U=W;V=X;u=J;break}}else{S=z;T=s;U=W;V=X;u=J}break}case 184:{ie=0;C=c[(s+(r*20|0)&p)+4>>2]|0;t=c[(s+(r*20|0)&p)+8>>2]|0;K=c[(s+(r*20|0)&p)+12>>2]|0;u=z+(K*40|0)|0;if((b[(z+(t*40|0)&o)+8>>1]|b[(z+(C*40|0)&o)+8>>1])&1){t=z+(K*40|0)+8|0;if(!(b[(t&o)>>1]&9312)){b[(t&o)>>1]=1;S=z;T=s;U=W;V=X;break}else{vg(u);S=z;T=s;U=W;V=X;break}}A=Vg(z+(t*40|0)|0)|0;L=G;J=Vg(z+(C*40|0)|0)|0;I=G;t=a[(H&n)>>0]|0;C=t&255;do if(t<<24>>24==86){A=J|A;t=I|L}else if(t<<24>>24!=85)if(!((J|0)==0&(I|0)==0)){if((I|0)<0){t=175-C&255;C=dw(0,0,J|0,I|0)|0;if((I|0)>-1|(I|0)==-1&J>>>0>4294967232){I=G;ie=194}}else{C=J;ie=194}if((ie|0)==194){ie=0;if(!((I|0)>0|(I|0)==0&C>>>0>63)){if(t<<24>>24==87){A=iw(A|0,L|0,C|0)|0;t=G;break}A=mw(A|0,L|0,C|0)|0;t=G;if((L|0)>=0)break;V=dw(64,0,C|0,I|0)|0;V=iw(-1,-1,V|0)|0;A=V|A;t=G|t;break}}if((L|0)>-1|(L|0)==-1&A>>>0>4294967295){A=0;t=0}else{t=(t<<24>>24!=87)<<31>>31;A=t;t=((t|0)<0)<<31>>31}}else t=L;else{A=J&A;t=I&L}while(0);S=u;c[(S&p)>>2]=A;c[(S&p)+4>>2]=t;S=z+(K*40|0)+8|0;b[(S&o)>>1]=e[(S&o)>>1]&48640|4;S=z;T=s;U=W;V=X;break}case 202:{ie=0;T=c[(s+(r*20|0)&p)+4>>2]|0;S=z+(T*40|0)|0;U=Vg(S)|0;T=z+(T*40|0)+8|0;b[(T&o)>>1]=e[(T&o)>>1]&48640|4;T=c[(s+(r*20|0)&p)+8>>2]|0;T=jw(U|0,G|0,T|0,((T|0)<0)<<31>>31|0)|0;c[(S&p)>>2]=T;c[(S&p)+4>>2]=G;S=z;T=s;U=W;V=X;break}case 203:{ie=0;u=c[(s+(r*20|0)&p)+4>>2]|0;v=z+(u*40|0)+8|0;t=b[(v&o)>>1]|0;if(!(t&4)){fm(z+(u*40|0)|0,67,Jc);t=b[(v&o)>>1]|0;if(!(t&4)){E=c[(s+(r*20|0)&p)+8>>2]|0;if(!E){t=r;u=20;ie=1318;break c}S=z;T=s;U=W;V=X;u=J;r=E+-1|0;break}}b[(v&o)>>1]=t&48640|4;S=z;T=s;U=W;V=X;u=J;break}case 208:{ie=0;t=c[(s+(r*20|0)&p)+4>>2]|0;u=z+(t*40|0)+8|0;if(!(b[(u&o)>>1]&4)){S=z;T=s;U=W;V=X;u=J}else{S=z+(t*40|0)|0;h[(S&q)>>3]=+Ug(S);b[(u&o)>>1]=e[(u&o)>>1]&48640|8;S=z;T=s;U=W;V=X;u=J}break}case 213:{ie=0;N=c[(s+(t*20|0)&p)+4>>2]|0;L=z+(N*40|0)|0;w=c[(s+(t*20|0)&p)+12>>2]|0;K=z+(w*40|0)|0;N=z+(N*40|0)+8|0;F=b[(N&o)>>1]|0;w=z+(w*40|0)+8|0;M=b[(w&o)>>1]|0;H=F&65535;A=M&65535;v=s+(t*20|0)+3|0;J=d[(v&n)>>0]|0;do if(!((M|F)&1)){J=J&71;if(J>>>0>66){if((H&14|0)==2){rh(L,0);A=b[(w&o)>>1]|0}else A=M;if((A&14)==2){rh(K,0);J=F;E=M}else{J=F;E=M}}else if((J|0)==66){if((H&2|0)!=0|(H&12|0)==0){I=M;J=F}else{bm(L,Jc,1)|0;I=b[(w&o)>>1]|0;J=(e[(N&o)>>1]&65024|H&511)&65535}V=I&65535;if((V&2|0)!=0|(V&12|0)==0)E=M;else{bm(K,Jc,1)|0;E=(e[(w&o)>>1]&65024|A&511)&65535}}else{J=F;E=M}if(b[(N&o)>>1]&16384){Rg(L)|0;J=J&49151}if(b[(w&o)>>1]&16384){Rg(K)|0;E=E&49151}if(a[(ge&n)>>0]|0){y=ge;z=je;r=m;m=x;ie=1317;break a}V=hm(K,L,c[(s+(t*20|0)&p)+16>>2]|0)|0;I=a[(C&n)>>0]|0;r=t;C=V}else{if(J&128){J=F;E=M;r=t;C=(F&1&M)<<16>>16!=0&(A&256|0)==0&1^1;break}if(J&32){u=c[(s+(t*20|0)&p)+8>>2]|0;S=z+(u*40|0)+8|0;b[(S&o)>>1]=e[(S&o)>>1]&48640|1;S=z;T=s;U=W;V=X;u=z+(u*40|0)|0;r=t;break q}if(!(J&16)){S=z;T=s;U=W;V=X;r=t;break q}S=z;T=s;U=W;V=X;r=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;break q}while(0);switch(I&255|0){case 79:{C=(C|0)==0&1;break}case 78:{C=(C|0)!=0&1;break}case 82:{C=C>>>31;break}case 81:{C=(C|0)<1&1;break}case 80:{C=(C|0)>0&1;break}default:C=C>>>31^1}if(!(a[(v&n)>>0]&32)){if(C)r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0}else{V=c[(s+(r*20|0)&p)+8>>2]|0;u=z+(V*40|0)|0;V=z+(V*40|0)+8|0;b[(V&o)>>1]=e[(V&o)>>1]&48640|4;V=u;c[(V&p)>>2]=C;c[(V&p)+4>>2]=0}b[(N&o)>>1]=J;b[(w&o)>>1]=E;S=z;T=s;U=W;V=X;break}case 248:{ie=0;S=z;T=s;U=c[(s+(r*20|0)&p)+16>>2]|0;V=X;break}case 249:{ie=0;w=(a[(s+(r*20|0)&n)+3>>0]&1)==0?0:W;F=c[(s+(r*20|0)&p)+12>>2]|0;H=c[(s+(r*20|0)&p)+16>>2]|0;I=c[(s+(r*20|0)&p)+4>>2]|0;J=c[(s+(r*20|0)&p)+8>>2]|0;if((F|0)>0){t=(w|0)==0;v=H+16|0;E=0;while(1){if(t)A=E;else A=c[(w+(E<<2)&p)>>2]|0;C=a[((c[(v&p)>>2]|0)+E&n)>>0]|0;A=hm(z+((A+I|0)*40|0)|0,z+((A+J|0)*40|0)|0,c[(H+(E<<2)&p)+20>>2]|0)|0;E=E+1|0;if(A)break;if((E|0)>=(F|0)){S=z;T=s;U=0;V=0;break q}}S=z;T=s;U=0;V=C<<24>>24==0?A:0-A|0}else{S=z;T=s;U=0;V=X}break}case 256:{ie=0;if((X|0)<0){S=z;T=s;U=W;V=X;r=(c[(s+(t*20|0)&p)+4>>2]|0)+-1|0;break}if(!X){S=z;T=s;U=W;V=0;r=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;break}else{S=z;T=s;U=W;V=X;r=(c[(s+(t*20|0)&p)+12>>2]|0)+-1|0;break}}case 261:{ie=0;t=c[(s+(r*20|0)&p)+4>>2]|0;if(!(b[(z+(t*40|0)&o)+8>>1]&1)){u=Vg(z+(t*40|0)|0)|0;u=(u|0)!=0|(G|0)!=0?3:0}else u=6;t=c[(s+(r*20|0)&p)+8>>2]|0;if(!(b[(z+(t*40|0)&o)+8>>1]&1)){t=Vg(z+(t*40|0)|0)|0;t=((t|0)!=0|(G|0)!=0)&1}else t=2;t=a[(((a[(C&n)>>0]|0)==72?41680:41696)+t+u&n)>>0]|0;u=c[(s+(r*20|0)&p)+12>>2]|0;J=z+(u*40|0)|0;if(t<<24>>24==2){S=z+(u*40|0)+8|0;b[(S&o)>>1]=e[(S&o)>>1]&48640|1;S=z;T=s;U=W;V=X;u=J;break}else{S=J;c[(S&p)>>2]=t&255;c[(S&p)+4>>2]=0;S=z+(u*40|0)+8|0;b[(S&o)>>1]=e[(S&o)>>1]&48640|4;S=z;T=s;U=W;V=X;u=J;break}}case 268:{ie=0;t=c[(s+(r*20|0)&p)+4>>2]|0;u=c[(s+(r*20|0)&p)+8>>2]|0;J=z+(u*40|0)|0;u=z+(u*40|0)+8|0;if(!(b[(u&o)>>1]&9312))b[(u&o)>>1]=1;else vg(J);if(!(b[(z+(t*40|0)&o)+8>>1]&1)){b[(u&o)>>1]=4;T=Vg(z+(t*40|0)|0)|0;S=J;c[(S&p)>>2]=(T|0)==0&(G|0)==0&1;c[(S&p)+4>>2]=0;S=z;T=s;U=W;V=X;u=J}else{S=z;T=s;U=W;V=X;u=J}break}case 273:{ie=0;t=c[(s+(r*20|0)&p)+4>>2]|0;u=c[(s+(r*20|0)&p)+8>>2]|0;J=z+(u*40|0)|0;u=z+(u*40|0)+8|0;if(!(b[(u&o)>>1]&9312))b[(u&o)>>1]=1;else vg(J);if(!(b[(z+(t*40|0)&o)+8>>1]&1)){b[(u&o)>>1]=4;T=Vg(z+(t*40|0)|0)|0;S=J;c[(S&p)>>2]=~T;c[(S&p)+4>>2]=~G;S=z;T=s;U=W;V=X;u=J}else{S=z;T=s;U=W;V=X;u=J}break}case 278:{ie=0;t=(c[(Hb&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]|0)|0;if(!(a[(t&n)>>0]|0)){a[(t&n)>>0]=1;S=z;T=s;U=W;V=X;break}else{S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0;break}}case 281:{ie=0;t=c[(s+(r*20|0)&p)+4>>2]|0;if(!(b[(z+(t*40|0)&o)+8>>1]&1)){t=+Ug(z+(t*40|0)|0)!=0.0;t=(t^(a[(C&n)>>0]|0)==46)&1}else t=c[(s+(r*20|0)&p)+12>>2]|0;if(!t){S=z;T=s;U=W;V=X}else{S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0}break}case 286:{ie=0;if(!(b[(z+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)&o)+8>>1]&1)){S=z;T=s;U=W;V=X}else{S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0}break}case 288:{ie=0;if(!(b[(z+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)&o)+8>>1]&1)){S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0}else{S=z;T=s;U=W;V=X}break}case 290:{ie=0;T=c[(s+(t*20|0)&p)+8>>2]|0;M=c[(s+(t*20|0)&p)+12>>2]|0;A=z+(M*40|0)|0;S=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;w=c[(S&p)+80>>2]|0;v=c[(S&p)>>2]|0;if(!(a[(S&n)+26>>0]|0)){if((v|0)!=0?(a[(v&n)+73>>0]|0)!=1:0){Td=jm(S)|0;ie=295}}else{Td=im(S)|0;ie=295}if((ie|0)==295?(ie=0,(Td|0)!=0):0){u=Td;ie=1318;break c}L=S+60|0;C=c[($d&p)>>2]|0;u:do if((c[(L&p)>>2]|0)==(C|0)){C=b[(S&o)+22>>1]|0;if((C&65535|0)>(T|0))ie=350;else{I=S+72|0;ie=318}}else{do if(a[(S&n)+25>>0]|0){if(!v){J=c[(S&p)+16>>2]|0;F=c[(z+(J*40|0)&p)+12>>2]|0;c[(S&p)+68>>2]=F;c[(S&p)+64>>2]=F;J=c[(z+(J*40|0)&p)+16>>2]|0;K=S+76|0;c[(K&p)>>2]=J;break}r=z+(M*40|0)+8|0;if(!(b[(r&o)>>1]&9312)){b[(r&o)>>1]=1;break u}else{vg(A);break u}}else{if(!(a[(S&n)+27>>0]&4)){km(v,td);I=e[(v&o)+40>>1]|0;J=c[(v&p)+32>>2]|0;c[(S&p)+76>>2]=J;C=c[(td&p)>>2]|0;c[(S&p)+64>>2]=C}else{C=S+64|0;lm(v,C);I=e[(v&o)+40>>1]|0;J=c[(v&p)+32>>2]|0;c[(S&p)+76>>2]=J;C=c[(C&p)>>2]|0}c[(S&p)+68>>2]=C>>>0>I>>>0?I:C;if(C>>>0>(c[(zb&p)>>2]|0)>>>0){u=x;ie=1316;break c}K=S+76|0;C=c[($d&p)>>2]|0;F=I}while(0);c[(L&p)>>2]=C;C=a[(J&n)>>0]|0;if(C<<24>>24>-1){H=C&255;c[(kd&p)>>2]=H;J=1}else{J=mm(J,kd)|0;H=c[(kd&p)>>2]|0}I=S+72|0;c[(I&p)>>2]=J&255;b[(S&o)+22>>1]=0;c[(w&p)>>2]=H;if(H>>>0>98307){u=x;ie=313;break c}if(H>>>0>(c[(S&p)+64>>2]|0)>>>0){u=x;ie=313;break c}if(F>>>0>>0){c[(K&p)>>2]=0;c[(S&p)+68>>2]=0;C=0;ie=318}else{C=0;ie=318}}while(0);do if((ie|0)==318){ie=0;J=c[(I&p)>>2]|0;H=c[(w&p)>>2]|0;if(J>>>0>>0){P=S+76|0;F=c[(P&p)>>2]|0;if(!F){U=Jd+0|0;V=U+40|0;do{c[(U&p)>>2]=0;U=U+4|0}while((U|0)<(V|0));J=nm(v,0,c[(w&p)>>2]|0,((d[(S&n)+27>>0]|0)>>>2&1^1)&255,Jd)|0;if(J){s=J;u=x;ie=1309;break c}C=S+22|0;O=C;C=b[(C&o)>>1]|0;J=c[(I&p)>>2]|0;H=c[(w&p)>>2]|0;N=c[(Jb&p)>>2]|0}else{O=S+22|0;N=F}E=C&65535;K=c[(w+(E<<2)&p)>>2]|0;c[(kd&p)>>2]=K;C=N+H|0;J=N+J|0;while(1){F=a[(J&n)>>0]|0;if(F<<24>>24>-1){L=F&255;c[(Ld&p)>>2]=L;J=J+1|0}else{J=J+((mm(J,Ld)|0)&255)|0;L=c[(Ld&p)>>2]|0}c[(S+(E<<2)&p)+84>>2]=L;if(L>>>0>11)F=(L+-12|0)>>>1;else F=d[(L&n)+34336>>0]|0;L=K+F|0;c[(kd&p)>>2]=L;if(L>>>0>>0){J=L;F=E;ie=331;break}F=E+1|0;c[(w+(F<<2)&p)>>2]=L;if((E|0)<(T|0)&J>>>0>>0){K=L;E=F}else break}if((ie|0)==331){ie=0;L=J;J=N+(H+1)|0}b[(O&o)>>1]=F;c[(I&p)>>2]=J-N;if(!(c[(P&p)>>2]|0)){if(!((b[(Kb&o)>>1]&9312)==0&(c[(Lb&p)>>2]|0)==0))Qg(Jd);b[(Kb&o)>>1]=1}if(J>>>0>=C>>>0){if(J>>>0>C>>>0){u=x;ie=343;break c}if((L|0)==(c[(S&p)+64>>2]|0))C=L;else{u=x;ie=343;break c}}else C=c[(S&p)+64>>2]|0;if(L>>>0>C>>>0){u=x;ie=343;break c}C=b[(O&o)>>1]|0}if((C&65535|0)<=(T|0)){if((a[(s+(t*20|0)&n)+1>>0]|0)==-8){Zl(A,c[(s+(t*20|0)&p)+16>>2]|0,2048);r=z+(M*40|0)+8|0;break}r=z+(M*40|0)+8|0;if(!(b[(r&o)>>1]&9312)){b[(r&o)>>1]=1;break}else{vg(A);break}}else ie=350}while(0);if((ie|0)==350){ie=0;r=z+(M*40|0)+8|0;if(b[(r&o)>>1]&9312)vg(A);J=c[(S+(T<<2)&p)+84>>2]|0;c[(Ld&p)>>2]=J;do if((c[(S&p)+68>>2]|0)>>>0<(c[(w+(T+1<<2)&p)>>2]|0)>>>0){V=a[(s+(t*20|0)&n)+3>>0]|0;if(!((V&255)>63?J>>>0>11&(J&1|0)==0|V<<24>>24<0:0)){if(J>>>0>11)C=(J+-12|0)>>>1;else C=d[(J&n)+34336>>0]|0;if(C){C=nm(v,c[(w+(T<<2)&p)>>2]|0,C,((d[(S&n)+27>>0]|0)>>>2&1^1)&255,A)|0;if(C){s=C;u=x;ie=1309;break c}om(c[(z+(M*40|0)&p)+16>>2]|0,J,A)|0;b[(r&o)>>1]=e[(r&o)>>1]&61439;break}}om(J>>>0<14?td:0,J,A)|0}else om((c[(S&p)+76>>2]|0)+(c[(w+(T<<2)&p)>>2]|0)|0,J,A)|0;while(0);a[(z+(M*40|0)&n)+10>>0]=Jc}w=e[(r&o)>>1]|0;if((w&4096|0)!=0?(Ac=z+(M*40|0)+16|0,Bc=c[(Ac&p)>>2]|0,(Bc|0)!=0):0){v=c[(z+(M*40|0)&p)+12>>2]|0;if(fh(A,v+2|0)|0){y=ge;z=je;r=m;m=x;ie=1317;break a}kw(c[(Ac&p)>>2]|0,Bc|0,v|0)|0;a[((c[(Ac&p)>>2]|0)+v&n)>>0]=0;a[((c[(Ac&p)>>2]|0)+v&n)+1>>0]=0;b[(r&o)>>1]=w&18|512;S=z;T=s;U=W;V=X;r=t}else{S=z;T=s;U=W;V=X;r=t}break}case 368:{ie=0;v=c[(s+(r*20|0)&p)+16>>2]|0;t=a[(v&n)>>0]|0;if(!(t<<24>>24)){S=z;T=s;U=W;V=X}else{w=z+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)|0;while(1){v=v+1|0;fm(w,t,Jc);t=a[(v&n)>>0]|0;if(!(t<<24>>24)){S=z;T=s;U=W;V=X;break}else w=w+40|0}}break}case 371:{ie=0;U=c[(s+(t*20|0)&p)+4>>2]|0;C=c[(s+(t*20|0)&p)+16>>2]|0;V=z+(U*40|0)|0;U=z+((U+-1+(c[(s+(t*20|0)&p)+8>>2]|0)|0)*40|0)|0;A=a[(Mb&n)>>0]|0;T=c[(s+(t*20|0)&p)+12>>2]|0;u=z+(T*40|0)|0;if(C){r=a[(C&n)>>0]|0;v=V;while(1){C=C+1|0;fm(v,r,Jc);r=a[(C&n)>>0]|0;if(!(r<<24>>24))break;else v=v+40|0}}N=(A&255)>3;L=0;K=0;O=0;C=0;w=U;while(1){E=b[(w&o)+8>>1]|0;I=E&65535;v:do if(!(I&1)){do if(!(I&4)){if(I&8){J=7;ie=388;break v}J=c[(w&p)+12>>2]|0;if(I&16384)J=(c[(w&p)>>2]|0)+J|0;J=(J<<1)+12|I>>>1&1}else{I=w;J=c[(I&p)>>2]|0;I=c[(I&p)+4>>2]|0;H=ew(J|0,I|0,63)|0;H=H^J;F=G^I;if(F>>>0<0|(F|0)==0&H>>>0<128){if(!((J&1|0)==(J|0)&0==(I|0)&N)){J=1;ie=388;break v}J=H+8|0;break}if(F>>>0<0|(F|0)==0&H>>>0<32768){J=2;ie=388;break v}if(F>>>0<0|(F|0)==0&H>>>0<8388608){J=3;ie=388;break v}if(F>>>0<0|(F|0)==0&H>>>0<2147483648){J=4;ie=388;break v}J=F>>>0<32768|(F|0)==32768&H>>>0<0?5:6;ie=388;break v}while(0);c[(w&p)+28>>2]=J;if(J>>>0>11){I=J;J=(J+-12|0)>>>1}else ie=391}else{J=0;ie=388}while(0);if((ie|0)==388){c[(w&p)+28>>2]=J;ie=391}if((ie|0)==391){ie=0;I=J;J=d[(J&n)+34336>>0]|0}do if(E&16384)if((L|0)==0&(K|0)==0){E=c[(w&p)>>2]|0;J=J-E|0;E=E+C|0;break}else{Rg(w)|0;E=C;break}else E=C;while(0);L=jw(J|0,((J|0)<0)<<31>>31|0,L|0,K|0)|0;K=G;if(I>>>0<128)J=1;else{H=0;J=0;do{J=J+1|0;I=mw(I|0,H|0,7)|0;H=G}while(((I|0)!=0|(H|0)!=0)&(J|0)<9)}J=J+O|0;w=w+-40|0;if(w>>>0>>0){F=J;P=E;break}else{O=J;C=E}}if((F|0)<127)I=F+1|0;else{I=F;H=((F|0)<0)<<31>>31;J=0;do{J=J+1|0;I=mw(I|0,H|0,7)|0;H=G}while(((I|0)!=0|(H|0)!=0)&(J|0)<9);F=J+F|0;I=F;H=((F|0)<0)<<31>>31;C=0;do{C=C+1|0;I=mw(I|0,H|0,7)|0;H=G}while(((I|0)!=0|(H|0)!=0)&(C|0)<9);I=((J|0)<(C|0)&1)+F|0}J=((I|0)<0)<<31>>31;E=jw(I|0,J|0,L|0,K|0)|0;N=G;S=c[(zb&p)>>2]|0;O=((S|0)<0)<<31>>31;if((N|0)>(O|0)|(N|0)==(O|0)&E>>>0>S>>>0){u=x;ie=1316;break c}if(fh(u,E)|0){y=ge;z=je;r=m;m=x;ie=1317;break a}A=c[(z+(T*40|0)&p)+16>>2]|0;if(I>>>0<128){a[(A&n)>>0]=I;K=1;L=V}else{K=(pm(A,I,J)|0)&255;L=V}while(1){H=c[(L&p)+28>>2]|0;if(H>>>0<128){a[(A+K&n)>>0]=H;J=1}else J=(pm(A+K|0,H,0)|0)&255;K=J+K|0;J=A+I|0;if(!(H>>>0<8&(H|0)!=0))if(H>>>0>11){C=c[(L&p)+12>>2]|0;kw(J|0,c[(L&p)+16>>2]|0,C|0)|0}else C=0;else{J=L;if(H>>>0>11)C=(H+-12|0)>>>1;else C=d[(H&n)+34336>>0]|0;F=c[(J&p)>>2]|0;J=c[(J&p)+4>>2]|0;H=C;while(1){H=H+-1|0;a[(A+H+I&n)>>0]=F;F=mw(F|0,J|0,8)|0;if(!H)break;else J=G}}L=L+40|0;if(L>>>0>U>>>0)break;else I=C+I|0}c[(z+(T*40|0)&p)+12>>2]=E;r=z+(T*40|0)+8|0;b[(r&o)>>1]=16;if(P){c[(u&p)>>2]=P;b[(r&o)>>1]=16400}a[(z+(T*40|0)&n)+10>>0]=1;S=z;T=s;U=W;V=X;r=t;break}case 446:{ie=0;if((c[(ae&p)>>2]|0)>0){u=x;ie=447;break c}if(!v)w=0;else{t=v;while(1)if(!(a[(t&n)>>0]|0))break;else t=t+1|0;w=t-v&1073741823}u=sm(le,0,(c[(Ob&p)>>2]|0)+(c[(Nb&p)>>2]|0)|0)|0;if(u){t=r;ie=1318;break c}t=mh(le,w+33|0,0)|0;if(!t){S=z;T=s;U=W;V=X;u=L}else{V=t+32|0;c[(t&p)>>2]=V;kw(V|0,v|0,w+1|0)|0;if(!(a[(ee&n)>>0]|0))c[(Ob&p)>>2]=(c[(Ob&p)>>2]|0)+1;else{a[(ee&n)>>0]=0;a[(Sb&n)>>0]=1}c[(t&p)+24>>2]=c[(Pb&p)>>2];c[(Pb&p)>>2]=t;S=Qb;T=c[(S&p)+4>>2]|0;U=t+8|0;c[(U&p)>>2]=c[(S&p)>>2];c[(U&p)+4>>2]=T;U=Rb;T=c[(U&p)+4>>2]|0;S=t+16|0;c[(S&p)>>2]=c[(U&p)>>2];c[(S&p)+4>>2]=T;S=z;T=s;U=W;V=X;u=L}break}case 486:{c[(Ob&p)>>2]=(c[(Ob&p)>>2]|0)+-1;ie=488;break}case 525:{ie=0;wm(c[((c[(Xd&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<4)&p)+4>>2]|0,c[(s+(r*20|0)&p)+12>>2]|0,Yc);T=c[(Yc&p)>>2]|0;S=u;c[(S&p)>>2]=T;c[(S&p)+4>>2]=((T|0)<0)<<31>>31;S=z;T=s;U=W;V=X;break}case 558:{ie=0;v=xm(f,c[(s+(t*20|0)&p)+4>>2]|0,c[(s+(t*20|0)&p)+8>>2]|0,-1,1)|0;if(!v){y=ge;z=je;r=m;m=x;ie=1317;break a}r=c[(s+(t*20|0)&p)+16>>2]|0;C=v+8|0;c[(C&p)>>2]=r;A=c[(s+(t*20|0)&p)+12>>2]|0;r=e[(r&o)+6>>1]<<2;u=r+148|0;w=mh(le,u,0)|0;if(!w){s=v;u=x;ie=560;break c}fw(w|0,0,u|0)|0;c[(v&p)+56>>2]=w;V=w+128|0;c[(w&p)+28>>2]=V;kw(V|0,c[(C&p)>>2]|0,r+20|0)|0;c[(w&p)+140>>2]=0;if(A)b[(w&o)+134>>1]=A;r=c[(Xd&p)>>2]|0;u=c[((c[((c[(r&p)+4>>2]|0)&p)+4>>2]|0)&p)+32>>2]|0;c[(w&p)+12>>2]=u;a[(w&n)+59>>0]=1;a[(w&n)+57>>0]=0;c[(w&p)+24>>2]=le;c[(w&p)+72>>2]=w;if(((a[(_b&n)>>0]|0)!=2?(Dc=c[2242]|0,c[(w&p)>>2]=ca(Dc,u)|0,V=c[((c[(r&p)+12>>2]|0)&p)+80>>2]|0,V=(V|0)<(Dc|0)?Dc:V,Dc=((u|0)<0)<<31>>31,V=sw(V|0,((V|0)<0)<<31>>31|0,u|0,Dc|0)|0,U=G,c[(w&p)+4>>2]=(U|0)<0|(U|0)==0&V>>>0<536870912?V:536870912,(c[2234]|0)==0):0)?(c[(w&p)+52>>2]=u,V=qg(u,Dc)|0,c[(w&p)+40>>2]=V,(V|0)==0):0){s=7;u=x;ie=1309;break c}else{S=z;T=s;U=W;V=X;u=L;r=t}break}case 566:{ie=0;T=(c[((c[(Ib&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<2)&p)>>2]|0)+40|0;V=T;U=c[(V&p)>>2]|0;V=c[(V&p)+4>>2]|0;S=jw(U|0,V|0,1,0)|0;c[(T&p)>>2]=S;c[(T&p)+4>>2]=G;if((U|0)==0&(V|0)==0){S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0}else{S=z;T=s;U=W;V=X}break}case 568:{ie=0;r=xm(f,c[(s+(t*20|0)&p)+4>>2]|0,c[(s+(t*20|0)&p)+12>>2]|0,-1,0)|0;if(!r){y=ge;z=je;r=m;m=x;ie=1317;break a}a[(r&n)+25>>0]=1;c[(r&p)+16>>2]=c[(s+(t*20|0)&p)+8>>2];S=r+27|0;a[(S&n)>>0]=a[(S&n)>>0]|4;S=z;T=s;U=W;V=X;r=t;break}case 570:{ie=0;S=s+(r*20|0)+4|0;Bm(f,c[((c[(Ib&p)>>2]|0)+(c[(S&p)>>2]<<2)&p)>>2]|0);c[((c[(Ib&p)>>2]|0)+(c[(S&p)>>2]<<2)&p)>>2]=0;S=z;T=s;U=W;V=X;break}case 571:{ie=0;H=c[((c[(Ib&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<2)&p)>>2]|0;a[(H&n)+25>>0]=0;if(!(a[(H&n)+27>>0]&4)){V=c[(s+(r*20|0)&p)+16>>2]|0;c[(wd&p)>>2]=c[(H&p)+8>>2];b[($b&o)>>1]=V;a[(cc&n)>>0]=(K<<1&2^2)+255;V=c[(s+(r*20|0)&p)+12>>2]|0;t=z+(V*40|0)|0;c[(dc&p)>>2]=t;if(b[(z+(V*40|0)&o)+8>>1]&16384)Rg(t)|0;u=Cm(c[(H&p)>>2]|0,wd,0,0,0,Ad)|0;if(!u){u=K;J=L}else{t=r;ie=1318;break c}}else{C=c[(s+(r*20|0)&p)+12>>2]|0;A=z+(C*40|0)|0;C=z+(C*40|0)+8|0;if((b[(C&o)>>1]&14)==2)rh(A,0);J=Vg(A)|0;I=G;C=e[(C&o)>>1]|0;do if(!(C&4)){if(!(C&8)){S=z;T=s;U=W;V=X;u=L;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0;break q}B=+h[(A&q)>>3];D=+(J>>>0)+4294967296.0*+(I|0);if(B>31)+K|0;break}else{C=(B>D&(K&1|0)==0&1)+K|0;break}}else C=K;while(0);u=Cm(c[(H&p)>>2]|0,0,J,I,0,Ad)|0;V=H+48|0;c[(V&p)>>2]=J;c[(V&p)+4>>2]=I;if(!u){u=C;J=L}else{t=r;ie=1318;break c}}a[(H&n)+26>>0]=0;c[(H&p)+60>>2]=0;t=c[(Ad&p)>>2]|0;do if((u|0)>63){if((t|0)>=0?!((t|0)==0&(u|0)==65):0){c[(Ad&p)>>2]=0;S=z;T=s;U=W;V=X;u=J;break q}c[(Ad&p)>>2]=0;u=Dm(c[(H&p)>>2]|0,Ad)|0;if(!u)ie=593;else{t=r;ie=1318;break c}}else{if((t|0)<=0?!((t|0)==0&(u|0)==62):0){t=(a[((c[(H&p)>>2]|0)&n)+73>>0]|0)!=1&1;c[(Ad&p)>>2]=t;break}c[(Ad&p)>>2]=0;u=Em(c[(H&p)>>2]|0,Ad)|0;if(!u)ie=593;else{t=r;ie=1318;break c}}while(0);if((ie|0)==593){ie=0;t=c[(Ad&p)>>2]|0}if(!t){S=z;T=s;U=W;V=X;u=J}else{S=z;T=s;U=W;V=X;u=J;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0}break}case 596:{ie=0;S=c[((c[(Ib&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<2)&p)>>2]|0;a[(S&n)+25>>0]=0;U=Vg(z+((c[(s+(r*20|0)&p)+8>>2]|0)*40|0)|0)|0;T=S+48|0;c[(T&p)>>2]=U;c[(T&p)+4>>2]=G;a[(S&n)+26>>0]=1;S=z;T=s;U=W;V=X;break}case 597:{ie=0;I=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;r=c[(s+(t*20|0)&p)+12>>2]|0;J=z+(r*40|0)|0;c[(od&p)>>2]=0;K=s+(t*20|0)+16|0;C=c[(K&p)>>2]|0;v=I+8|0;A=c[(v&p)>>2]|0;w:do if((C|0)>0){c[(xd&p)>>2]=A;C=C&65535;b[(ec&o)>>1]=C;c[(fc&p)>>2]=J;if(!(C<<16>>16))v=xd;else{r=J;A=0;while(1){if(b[(r+(A*40|0)&o)+8>>1]&16384){Rg(r+(A*40|0)|0)|0;C=b[(ec&o)>>1]|0}A=A+1|0;if((A|0)>=(C&65535|0)){v=xd;break w}r=c[(fc&p)>>2]|0}}}else{C=Fm(A,Sc,191,od)|0;if(!C){y=ge;z=je;r=m;m=x;ie=1317;break a}if(b[(z+(r*40|0)&o)+8>>1]&16384)Rg(J)|0;Gm(c[(v&p)>>2]|0,c[(z+(r*40|0)&p)+12>>2]|0,c[(z+(r*40|0)&p)+16>>2]|0,C);v=C}while(0);a[(v&n)+6>>0]=0;x:do if((a[(H&n)>>0]|0)==67?(Ec=b[(v&o)+4>>1]|0,Ec<<16>>16!=0):0){C=c[(v&p)+8>>2]|0;A=0;while(1){if(b[(C+(A*40|0)&o)+8>>1]&1)break;A=A+1|0;if((A|0)>=(Ec&65535|0)){L=t;r=t;break x}}L=t;r=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0}else{L=t;r=t}while(0);C=Cm(c[(I&p)>>2]|0,v,0,0,0,Bd)|0;if(!(c[(K&p)>>2]|0))mg(le,c[(od&p)>>2]|0);if(C){t=r;s=C;u=x;ie=1309;break c}t=c[(Bd&p)>>2]|0;c[(I&p)+12>>2]=t;t=(t|0)==0;a[(I&n)+25>>0]=t&1^1;a[(I&n)+26>>0]=0;c[(I&p)+60>>2]=0;if((a[(H&n)>>0]|0)==69){if(!t){S=z;T=s;U=W;V=X;break}S=z;T=s;U=W;V=X;r=(c[(s+(L*20|0)&p)+8>>2]|0)+-1|0;break}else{if(t){S=z;T=s;U=W;V=X;break}S=z;T=s;U=W;V=X;r=(c[(s+(L*20|0)&p)+8>>2]|0)+-1|0;break}}case 624:{ie=0;S=(c[((c[(Ib&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<2)&p)>>2]|0)+40|0;T=S;U=c[(T&p)>>2]|0;T=c[(T&p)+4>>2]|0;V=jw(U|0,T|0,1,0)|0;c[(S&p)>>2]=V;c[(S&p)+4>>2]=G;S=u;c[(S&p)>>2]=U;c[(S&p)+4>>2]=T;S=z;T=s;U=W;V=X;break}case 647:{ie=0;I=c[(s+(r*20|0)&p)+8>>2]|0;v=c[((c[(Ib&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<2)&p)>>2]|0;t=c[(s+(r*20|0)&p)+12>>2]|0;if(C<<24>>24==75){F=z+(t*40|0)|0;E=c[(F&p)>>2]|0;F=c[(F&p)+4>>2]|0}else{E=t;F=((t|0)<0)<<31>>31}H=s+(r*20|0)+3|0;J=a[(H&n)>>0]|0;if(J&1)c[(ub&p)>>2]=(c[(ub&p)>>2]|0)+1;if(J&2){m=ne;c[(m&p)>>2]=E;c[(m&p)+4>>2]=F;m=E;l=F}C=b[(z+(I*40|0)&o)+8>>1]|0;if(C&1){c[(z+(I*40|0)&p)+16>>2]=0;c[(z+(I*40|0)&p)+12>>2]=0}if(!(J&16))A=0;else A=c[(v&p)+12>>2]|0;if(!(C&16384))C=0;else C=c[(z+(I*40|0)&p)>>2]|0;C=Im(c[(v&p)>>2]|0,0,E,F,c[(z+(I*40|0)&p)+16>>2]|0,c[(z+(I*40|0)&p)+12>>2]|0,C,(J&255)>>>3&1,A)|0;a[(v&n)+26>>0]=0;c[(v&p)+60>>2]=0;if(C){t=r;s=C;u=x;ie=1309;break c}t=c[(gc&p)>>2]|0;if((t|0)!=0?(Fc=c[(s+(r*20|0)&p)+16>>2]|0,(Fc|0)!=0):0){bc[t&1](c[(hc&p)>>2]|0,(a[(H&n)>>0]&4)!=0?23:18,c[((c[(Xd&p)>>2]|0)+(a[(v&n)+24>>0]<<4)&p)>>2]|0,Fc,E,F);S=z;T=s;U=W;V=X}else{S=z;T=s;U=W;V=X}break}case 671:{ie=0;S=c[(ub&p)>>2]|0;c[(vb&p)>>2]=S;c[(wb&p)>>2]=(c[(wb&p)>>2]|0)+S;c[(ub&p)>>2]=0;S=z;T=s;U=W;V=X;break}case 672:{ie=0;J=c[((c[(Ib&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<2)&p)>>2]|0;I=c[(s+(r*20|0)&p)+12>>2]|0;H=c[(s+(r*20|0)&p)+16>>2]|0;t=c[(J&p)+56>>2]|0;A=t+32|0;C=c[(A&p)>>2]|0;J=c[(J&p)+8>>2]|0;if(!C){C=Fm(J,0,0,md)|0;c[(A&p)>>2]=C;if(!C){t=r;s=7;u=x;ie=1309;break c}b[(C&o)+4>>1]=H}if(!(a[(t&n)+56>>0]|0)){t=c[(t&p)+36>>2]|0;A=t;t=t+8|0}else{V=c[(t&p)+20>>2]|0;t=c[((c[(V&p)+8>>2]|0)&p)+4>>2]|0;V=c[(V&p)+12>>2]|0;A=V+(t*56|0)+20|0;t=c[(V+(t*56|0)&p)+32>>2]|0}Gm(J,c[(A&p)>>2]|0,t,C);y:do if((H|0)>0){t=c[(C&p)+8>>2]|0;v=0;while(1){if(b[(t+(v*40|0)&o)+8>>1]&1)break y;v=v+1|0;if((v|0)>=(H|0)){ie=682;break}}}else ie=682;while(0);if((ie|0)==682){ie=0;if(!(Km(c[(z+(I*40|0)&p)+12>>2]|0,c[(z+(I*40|0)&p)+16>>2]|0,C,0)|0)){S=z;T=s;U=W;V=X;break}}S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0;break}case 700:{ie=0;b[(u&o)+8>>1]=1;S=z;T=s;U=W;V=X;break}case 708:{ie=0;b[(u&o)+8>>1]=1;S=z;T=s;U=W;V=X;break}case 711:{ie=0;t=c[((c[(Ib&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<2)&p)>>2]|0;a[(t&n)+25>>0]=1;c[(t&p)+60>>2]=0;t=c[(t&p)>>2]|0;if(!t){S=z;T=s;U=W;V=X}else{S=t+56|0;Wc(c[(S&p)>>2]|0);c[(S&p)>>2]=0;a[(t&n)+73>>0]=0;S=z;T=s;U=W;V=X}break}case 801:{ie=0;t=c[((c[(Ib&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<2)&p)>>2]|0;u=c[(t&p)>>2]|0;K=L+8|0;b[(K&o)>>1]=1;if((a[(u&n)+73>>0]|0)!=1?(Vd=jm(t)|0,(Vd|0)!=0):0){t=r;u=Vd;ie=1318;break c}if(!(a[(t&n)+25>>0]|0)){V=Sd;c[(V&p)>>2]=0;c[(V&p)+4>>2]=0;km(u,Sd);b[(qc&o)>>1]=0;c[(sc&p)>>2]=le;c[(uc&p)>>2]=0;u=nm(u,0,c[(Sd&p)>>2]|0,1,$c)|0;do if(!u){t=c[(vc&p)>>2]|0;u=a[(t&n)>>0]|0;if(u<<24>>24>-1){C=u&255;c[(qd&p)>>2]=C}else{mm(t,qd)|0;C=c[(qd&p)>>2]|0}if(!(C>>>0<3?1:(C|0)>(c[(wc&p)>>2]|0))){t=(c[(vc&p)>>2]|0)+(C+-1)|0;u=a[(t&n)>>0]|0;if(u<<24>>24>-1){u=u&255;c[(Nd&p)>>2]=u}else{mm(t,Nd)|0;u=c[(Nd&p)>>2]|0}if(!((u+-1|0)>>>0>8|(u|0)==7)){if(u>>>0>11)t=(u+-12|0)>>>1;else t=d[(u&n)+34336>>0]|0;v=c[(wc&p)>>2]|0;if(v>>>0>=(t+C|0)>>>0){om((c[(vc&p)>>2]|0)+(v-t)|0,u,Qd)|0;v=Qd;t=c[(v&p)>>2]|0;v=c[(v&p)+4>>2]|0;if((b[(qc&o)>>1]&9312)==0&(c[(uc&p)>>2]|0)==0){u=0;break}Qg($c);u=0;break}}}if(!((b[(qc&o)>>1]&9312)==0&(c[(uc&p)>>2]|0)==0))Qg($c);c[(ke&p)>>2]=68698;c[(ke&p)+4>>2]=10788;bd(11,13600,ke);u=11;t=0;v=0}else{t=0;v=0}while(0);if(u){t=r;ie=1318;break c}S=L;c[(S&p)>>2]=t;c[(S&p)+4>>2]=v;b[(K&o)>>1]=4;S=z;T=s;U=W;V=X;u=L}else{S=z;T=s;U=W;V=X;u=L}break}case 865:{ie=0;w=c[(C&p)>>2]|0;C=c[((c[(Xd&p)>>2]|0)+(K<<4)&p)+12>>2]|0;t=c[(C&p)+16>>2]|0;if(t)do{v=(c[(t&p)+8>>2]|0)+32|0;if((c[(v&p)>>2]|0)==(A|0))c[(v&p)>>2]=w;t=c[(t&p)>>2]|0}while((t|0)!=0);t=c[(C&p)+32>>2]|0;if(t)do{v=(c[(t&p)+8>>2]|0)+40|0;if((c[(v&p)>>2]|0)==(A|0))c[(v&p)>>2]=w;t=c[(t&p)>>2]|0}while((t|0)!=0);S=z;T=s;U=W;V=X;x=K+1&255;break}case 878:{ie=0;_m(le,u);S=z;T=s;U=W;V=X;u=J;break}case 881:{ie=0;V=c[(s+(r*20|0)&p)+4>>2]|0;c[(Zc&p)>>2]=le;c[(ia&p)>>2]=V;c[(ja&p)>>2]=je;u=c[(s+(r*20|0)&p)+16>>2]|0;c[(ke&p)>>2]=c[((c[(Xd&p)>>2]|0)+(V<<4)&p)>>2];c[(ke&p)+4>>2]=(V|0)==1?13184:13208;c[(ke&p)+8>>2]=u;u=uh(le,42048,ke)|0;if(!u){t=r;u=x;ie=882;break c}a[(ka&n)>>0]=1;c[(la&p)>>2]=0;t=Qe(le,u,22,Zc,0)|0;t=(t|0)==0?c[(la&p)>>2]|0:t;mg(le,u);a[(ka&n)>>0]=0;if(!t){S=z;T=s;U=W;V=X;u=J}else{s=t;t=r;u=x;ie=884;break c}break}case 886:{ie=0;kg(le,Ik((c[((c[(Xd&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<4)&p)+12>>2]|0)+8|0,c[(s+(r*20|0)&p)+16>>2]|0,0)|0);c[(Tb&p)>>2]=c[(Tb&p)>>2]|2;S=z;T=s;U=W;V=X;break}case 887:{ie=0;C=Ik((c[((c[(Xd&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<4)&p)+12>>2]|0)+24|0,c[(s+(r*20|0)&p)+16>>2]|0,0)|0;if(C){t=(c[(C&p)+12>>2]|0)+8|0;u=c[(t&p)>>2]|0;z:do if((u|0)==(C|0))c[(t&p)>>2]=c[(C&p)+20>>2];else{do{if(!u)break z;t=u+20|0;u=c[(t&p)>>2]|0}while((u|0)!=(C|0));c[(t&p)>>2]=c[(C&p)+20>>2]}while(0);Jk(le,C)}c[(Tb&p)>>2]=c[(Tb&p)>>2]|2;S=z;T=s;U=W;V=X;u=J;break}case 895:{ie=0;C=Ik((c[((c[(Xd&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<4)&p)+12>>2]|0)+40|0,c[(s+(r*20|0)&p)+16>>2]|0,0)|0;if(!C){S=z;T=s;U=W;V=X}else{t=c[(C&p)+20>>2]|0;if((t|0)==(c[(C&p)+24>>2]|0)){t=bn(t+8|0,c[(C&p)+4>>2]|0,ke)|0;if(!t)t=0;else t=c[(t&p)+8>>2]|0;v=t+64|0;while(1){V=c[(v&p)>>2]|0;t=V+32|0;if((V|0)==(C|0))break;else v=t}c[(v&p)>>2]=c[(t&p)>>2]}jg(le,C);c[(Tb&p)>>2]=c[(Tb&p)>>2]|2;S=z;T=s;U=W;V=X}break}case 903:{ie=0;L=c[(s+(t*20|0)&p)+8>>2]|0;v=mh(le,(L<<2)+4|0,0)|0;if(!v){y=ge;z=je;r=m;m=x;ie=1317;break a}A=c[(s+(t*20|0)&p)+12>>2]|0;r=c[(s+(t*20|0)&p)+4>>2]|0;M=z+(r*40|0)|0;if((L|0)>0){C=0;do{V=Vg(z+((C+r|0)*40|0)|0)|0;c[(v+(C<<2)&p)>>2]=V;C=C+1|0}while((C|0)!=(L|0));C=L}else C=0;c[(v+(C<<2)&p)>>2]=0;I=c[((c[(Xd&p)>>2]|0)+(d[(s+(t*20|0)&n)+3>>0]<<4)&p)+4>>2]|0;P=z+(A*40|0)|0;V=c[(P&p)>>2]|0;O=c[(I&p)+4>>2]|0;c[(O&p)+4>>2]=c[(I&p)>>2];I=c[(O&p)>>2]|0;w=c[((c[(I&p)+204>>2]|0)&p)+12>>2]|0;c[(Sd&p)>>2]=O;c[(ma&p)>>2]=I;I=c[(O&p)+44>>2]|0;c[(na&p)>>2]=I;c[(oa&p)>>2]=V;c[(pa&p)>>2]=0;c[(pa&p)+4>>2]=0;c[(pa&p)+8>>2]=0;c[(pa&p)+12>>2]=0;c[(pa&p)+16>>2]=0;do if(!I){A=0;C=0}else{J=(I>>>3)+1|0;H=qg(J,0)|0;if(!H){c[(sa&p)>>2]=0;A=0;C=1;break}fw(H|0,0,J|0)|0;c[(sa&p)>>2]=H;N=O+32|0;J=(((c[2514]|0)>>>0)/((c[(N&p)>>2]|0)>>>0)|0)+1|0;if(J>>>0<=I>>>0){V=H+(J>>>3)|0;a[(V&n)>>0]=d[(V&n)>>0]|1<<(J&7)}c[(ua&p)>>2]=Nd;c[(va&p)>>2]=Nd;c[(ta&p)>>2]=0;c[(wa&p)>>2]=0;c[(xa&p)>>2]=100;c[(ya&p)>>2]=1e9;a[(Aa&n)>>0]=0;a[(za&n)>>0]=2;c[(ra&p)>>2]=43592;C=c[((c[(O&p)+12>>2]|0)&p)+56>>2]|0;cn(Sd,1,d[(C&n)+33>>0]<<16|d[(C&n)+32>>0]<<24|d[(C&n)+34>>0]<<8|d[(C&n)+35>>0],d[(C&n)+37>>0]<<16|d[(C&n)+36>>0]<<24|d[(C&n)+38>>0]<<8|d[(C&n)+39>>0]);c[(ra&p)>>2]=0;C=c[(oa&p)>>2]|0;if(!((L|0)<1|(C|0)==0)){F=O+17|0;H=0;do{I=v+(H<<2)|0;J=c[(I&p)>>2]|0;if(J){if((a[(F&n)>>0]|0)!=0&(J|0)>1){dn(Sd,J,1,0);J=c[(I&p)>>2]|0}c[(ra&p)>>2]=43608;en(Sd,J,0,0)|0;c[(ra&p)>>2]=0;C=c[(oa&p)>>2]|0}H=H+1|0}while(!((H|0)>=(L|0)|(C|0)==0))}if(!((c[(na&p)>>2]|0)==0|(C|0)==0)){E=O+17|0;C=O+36|0;L=1;do{H=L>>>3;J=a[((c[(sa&p)>>2]|0)+H&n)>>0]|0;F=1<<(L&7);do if(!(J&255&F)){if(L>>>0<2)I=0;else{I=L+-2|0;I=I-((I>>>0)%(((((c[(C&p)>>2]|0)>>>0)/5|0)+1|0)>>>0)|0)|0;I=((I+1|0)==(((c[2514]|0)>>>0)/((c[(N&p)>>2]|0)>>>0)|0|0)?3:2)+I|0}if((I|0)==(L|0)?(a[(E&n)>>0]|0)!=0:0)break;c[(ke&p)>>2]=L;fn(Sd,43632,ke);J=a[((c[(sa&p)>>2]|0)+H&n)>>0]|0}while(0);do if(J&255&F){if(L>>>0<2)J=0;else{J=L+-2|0;J=J-((J>>>0)%(((((c[(C&p)>>2]|0)>>>0)/5|0)+1|0)>>>0)|0)|0;J=((J+1|0)==(((c[2514]|0)>>>0)/((c[(N&p)>>2]|0)>>>0)|0|0)?3:2)+J|0}if((J|0)!=(L|0))break;if(!(a[(E&n)>>0]|0))break;c[(ke&p)>>2]=L;fn(Sd,43656,ke)}while(0);L=L+1|0}while(!((c[(oa&p)>>2]|0)==0?1:L>>>0>(c[(na&p)>>2]|0)>>>0))}C=c[((c[((c[(O&p)>>2]|0)&p)+204>>2]|0)&p)+12>>2]|0;if((w|0)!=(C|0)){c[(ke&p)>>2]=w;c[(ke&p)+4>>2]=C;fn(Sd,43696,ke)}Wc(c[(sa&p)>>2]|0);if(c[(qa&p)>>2]|0){gn(ta);A=0;C=(c[(pa&p)>>2]|0)+1|0;break}C=c[(pa&p)>>2]|0;if(!C)gn(ta);A=tg(ta)|0}while(0);mg(le,v);U=P;U=dw(c[(U&p)>>2]|0,c[(U&p)+4>>2]|0,C|0,((C|0)<0)<<31>>31|0)|0;V=P;c[(V&p)>>2]=U;c[(V&p)+4>>2]=G;r=z+(r*40|0)+8|0;if(!(b[(r&o)>>1]&9312))b[(r&o)>>1]=1;else vg(M);if(C){if(!A){y=ge;z=je;r=m;m=x;ie=1317;break a}Xg(M,A,-1,1,1)|0}Yl(M,xb)|0;S=z;T=s;U=W;V=X;r=t;break}case 947:{ie=0;v=c[(s+(t*20|0)&p)+4>>2]|0;r=z+(v*40|0)|0;u=c[(s+(t*20|0)&p)+8>>2]|0;v=z+(v*40|0)+8|0;if((b[(v&o)>>1]&32)==0?(hn(r),(b[(v&o)>>1]&32)==0):0){y=ge;z=je;r=m;m=x;ie=1317;break a}S=z+(u*40|0)|0;jn(c[(r&p)>>2]|0,c[(S&p)>>2]|0,c[(S&p)+4>>2]|0);S=z;T=s;U=W;V=X;u=J;r=t;break}case 966:{ie=0;r=c[(s+(t*20|0)&p)+4>>2]|0;P=z+(r*40|0)|0;O=z+((c[(s+(t*20|0)&p)+12>>2]|0)*40|0)|0;N=c[(s+(t*20|0)&p)+16>>2]|0;r=z+(r*40|0)+8|0;if((b[(r&o)>>1]&32)==0?(hn(P),(b[(r&o)>>1]&32)==0):0){y=ge;z=je;r=m;m=x;ie=1317;break a}if(N){L=c[(P&p)>>2]|0;v=O;M=c[(v&p)>>2]|0;v=c[(v&p)+4>>2]|0;K=L+28|0;if((c[(K&p)>>2]|0)!=(N|0)){C=L+8|0;J=c[(C&p)>>2]|0;if(J){I=L+20|0;A=L+26|0;if(!(b[(A&o)>>1]&1))J=kn(J)|0;H=c[(I&p)>>2]|0;A:do if(!H){ld=J;rd=I;ie=978}else{while(1){I=H+12|0;F=c[(I&p)>>2]|0;if(!F)break;E=H+8|0;ln(F,ke,Sd);c[(I&p)>>2]=0;J=mn(c[(ke&p)>>2]|0,J)|0;H=c[(E&p)>>2]|0;if(!H){ld=J;rd=E;ie=978;break A}}c[(I&p)>>2]=nn(J)|0}while(0);if((ie|0)==978?(ie=0,Kc=on(L)|0,c[(rd&p)>>2]=Kc,(Kc|0)!=0):0){V=Kc;c[(V&p)>>2]=0;c[(V&p)+4>>2]=0;c[(Kc&p)+8>>2]=0;c[(Kc&p)+12>>2]=nn(ld)|0}c[(C&p)>>2]=0;c[(L&p)+12>>2]=0;b[(A&o)>>1]=e[(A&o)>>1]|1}c[(K&p)>>2]=N}C=c[(L&p)+20>>2]|0;B:do if(C){C:while(1){A=c[(C&p)+12>>2]|0;if(A)do{r=A;E=c[(r&p)>>2]|0;r=c[(r&p)+4>>2]|0;if((r|0)<(v|0)|(r|0)==(v|0)&E>>>0>>0)A=A+8|0;else{if(!((r|0)>(v|0)|(r|0)==(v|0)&E>>>0>M>>>0))break C;A=A+12|0}A=c[(A&p)>>2]|0}while((A|0)!=0);C=c[(C&p)+8>>2]|0;if(!C)break B}S=z;T=s;U=W;V=X;r=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;break q}while(0);if((N|0)>-1)C=O;else{S=z;T=s;U=W;V=X;r=t;break}}else C=O;S=C;jn(c[(P&p)>>2]|0,c[(S&p)>>2]|0,c[(S&p)+4>>2]|0);S=z;T=s;U=W;V=X;r=t;break}case 993:{ie=0;K=c[(s+(r*20|0)&p)+16>>2]|0;I=c[(s+(r*20|0)&p)+12>>2]|0;L=z+(I*40|0)|0;if((a[(s+(r*20|0)&n)+3>>0]|0)!=0?(Lc=c[(K&p)+20>>2]|0,nd=c[(sb&p)>>2]|0,(nd|0)!=0):0){t=nd;while(1){if((c[(t&p)+28>>2]|0)==(Lc|0)){S=z;T=s;U=W;V=X;break q}t=c[(t&p)+4>>2]|0;if(!t){t=r;break}}}else t=r;r=c[(tb&p)>>2]|0;if((r|0)>=(c[(Ba&p)>>2]|0)){u=x;ie=998;break c}E=z+(I*40|0)+8|0;if(!(b[(E&o)>>1]&64)){C=K+12|0;A=c[(C&p)>>2]|0;r=A+(c[(K&p)+8>>2]|0)|0;s=K+16|0;A=(A<<2)+80+(c[(s&p)>>2]|0)+(r*40|0)|0;J=mh(le,A,((A|0)<0)<<31>>31)|0;if(!J){y=ge;z=je;r=m;m=x;ie=1317;break a}fw(J|0,0,A|0)|0;if(!((b[(E&o)>>1]&9312)==0?(c[(z+(I*40|0)&p)+24>>2]|0)==0:0))Qg(L);b[(E&o)>>1]=64;c[(L&p)>>2]=J;c[(J&p)>>2]=f;c[(J&p)+60>>2]=r;c[(J&p)+64>>2]=c[(C&p)>>2];c[(J&p)+44>>2]=t;c[(J&p)+16>>2]=c[(Nc&p)>>2];c[(J&p)+52>>2]=c[(Ca&p)>>2];c[(J&p)+24>>2]=c[(Ib&p)>>2];c[(J&p)+40>>2]=c[(Da&p)>>2];c[(J&p)+8>>2]=c[(zc&p)>>2];c[(J&p)+48>>2]=c[(Ea&p)>>2];c[(J&p)+28>>2]=c[(K&p)+20>>2];c[(J&p)+20>>2]=c[(Hb&p)>>2];c[(J&p)+56>>2]=c[(Fa&p)>>2];z=J+80|0;r=z+(r*40|0)|0;if((z|0)!=(r|0))do{b[(z&o)+8>>1]=128;c[(z&p)+32>>2]=le;z=z+40|0}while((z|0)!=(r|0));r=c[(tb&p)>>2]|0;z=J}else{s=K+16|0;z=c[(L&p)>>2]|0}c[(tb&p)>>2]=r+1;c[(z&p)+4>>2]=c[(sb&p)>>2];S=z+32|0;c[(S&p)>>2]=m;c[(S&p)+4>>2]=l;c[(z&p)+68>>2]=c[(ub&p)>>2];c[(z&p)+72>>2]=c[((c[(f&p)>>2]|0)&p)+80>>2];c[(ub&p)>>2]=0;c[(sb&p)>>2]=z;S=z+40|0;c[(Nc&p)>>2]=S;U=c[(z&p)+60>>2]|0;c[(Ca&p)>>2]=U;V=c[(z&p)+64>>2]&65535;c[(Da&p)>>2]=V;U=S+((U+1|0)*40|0)|0;c[(Ib&p)>>2]=U;T=c[(K&p)>>2]|0;c[(zc&p)>>2]=T;c[(Ea&p)>>2]=c[(K&p)+4>>2];V=U+(V<<2)|0;c[(Hb&p)>>2]=V;U=c[(s&p)>>2]|0;c[(Fa&p)>>2]=U;fw(V|0,0,U|0)|0;U=W;V=X;r=-1;break}case 1009:{ie=0;S=c[(sb&p)>>2]|0;Zl(u,(c[(S&p)+16>>2]|0)+(((c[((c[(S&p)+8>>2]|0)+((c[(S&p)+44>>2]|0)*20|0)&p)+4>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]|0)|0)*40|0)|0,4096);S=z;T=s;U=W;V=X;break}case 1010:{ie=0;if(c[(Tb&p)>>2]&16777216){T=c[(s+(r*20|0)&p)+8>>2]|0;S=Rb;T=jw(c[(S&p)>>2]|0,c[(S&p)+4>>2]|0,T|0,((T|0)<0)<<31>>31|0)|0;S=Rb;c[(S&p)>>2]=T;c[(S&p)+4>>2]=G;S=z;T=s;U=W;V=X;u=J;break}t=c[(s+(r*20|0)&p)+8>>2]|0;u=((t|0)<0)<<31>>31;if(!(c[(s+(r*20|0)&p)+4>>2]|0)){T=_d;T=jw(c[(T&p)>>2]|0,c[(T&p)+4>>2]|0,t|0,u|0)|0;S=_d;c[(S&p)>>2]=T;c[(S&p)+4>>2]=G;S=z;T=s;U=W;V=X;u=J;break}else{T=Qb;T=jw(c[(T&p)>>2]|0,c[(T&p)+4>>2]|0,t|0,u|0)|0;S=Qb;c[(S&p)>>2]=T;c[(S&p)+4>>2]=G;S=z;T=s;U=W;V=X;u=J;break}}case 1015:{ie=0;if(!(c[(s+(r*20|0)&p)+4>>2]|0)){V=_d;if(!((c[(V&p)>>2]|0)==0&(c[(V&p)+4>>2]|0)==0)){S=z;T=s;U=W;V=X;break}V=Rb;if(!((c[(V&p)>>2]|0)==0&(c[(V&p)+4>>2]|0)==0)){S=z;T=s;U=W;V=X;break}S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0;break}else{V=Qb;if(!((c[(V&p)>>2]|0)==0&(c[(V&p)+4>>2]|0)==0)){S=z;T=s;U=W;V=X;break}V=Rb;if(!((c[(V&p)>>2]|0)==0&(c[(V&p)+4>>2]|0)==0)){S=z;T=s;U=W;V=X;break}S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0;break}}case 1022:{ie=0;t=c[(sb&p)>>2]|0;if(!t)v=z+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)|0;else{while(1){u=c[(t&p)+4>>2]|0;if(!u)break;else t=u}v=(c[(t&p)+16>>2]|0)+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)|0}U=Vg(v)|0;V=v;c[(V&p)>>2]=U;c[(V&p)+4>>2]=G;V=v+8|0;b[(V&o)>>1]=e[(V&o)>>1]&48640|4;V=c[(s+(r*20|0)&p)+8>>2]|0;U=z+(V*40|0)|0;t=Vg(U)|0;u=G;c[(U&p)>>2]=t;c[(U&p)+4>>2]=u;V=z+(V*40|0)+8|0;b[(V&o)>>1]=e[(V&o)>>1]&48640|4;V=v;U=c[(V&p)+4>>2]|0;if((U|0)<(u|0)|((U|0)==(u|0)?(c[(V&p)>>2]|0)>>>0>>0:0)){S=v;c[(S&p)>>2]=t;c[(S&p)+4>>2]=u;S=z;T=s;U=W;V=X;u=L}else{S=z;T=s;U=W;V=X;u=L}break}case 1028:{ie=0;V=z+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)|0;U=c[(V&p)+4>>2]|0;if((U|0)>0|(U|0)==0&(c[(V&p)>>2]|0)>>>0>0){S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0}else{S=z;T=s;U=W;V=X}break}case 1030:{ie=0;T=c[(s+(r*20|0)&p)+12>>2]|0;U=z+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)|0;V=U;T=jw(c[(V&p)>>2]|0,c[(V&p)+4>>2]|0,T|0,((T|0)<0)<<31>>31|0)|0;V=G;c[(U&p)>>2]=T;c[(U&p)+4>>2]=V;if((V|0)<0){S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0}else{S=z;T=s;U=W;V=X}break}case 1032:{ie=0;t=z+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)|0;v=t;u=c[(v&p)>>2]|0;v=c[(v&p)+4>>2]|0;if((u|0)==0&(v|0)==0){S=z;T=s;U=W;V=X;u=J}else{T=c[(s+(r*20|0)&p)+12>>2]|0;T=jw(T|0,((T|0)<0)<<31>>31|0,u|0,v|0)|0;S=t;c[(S&p)>>2]=T;c[(S&p)+4>>2]=G;S=z;T=s;U=W;V=X;u=J;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0}break}case 1034:{ie=0;T=z+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)|0;U=T;U=jw(c[(U&p)>>2]|0,c[(U&p)+4>>2]|0,-1,-1)|0;V=G;c[(T&p)>>2]=U;c[(T&p)+4>>2]=V;if((U|0)==0&(V|0)==0){S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0}else{S=z;T=s;U=W;V=X}break}case 1036:{ie=0;T=z+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)|0;V=T;U=c[(V&p)>>2]|0;V=c[(V&p)+4>>2]|0;S=jw(U|0,V|0,1,0)|0;c[(T&p)>>2]=S;c[(T&p)+4>>2]=G;if((U|0)==0&(V|0)==0){S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0}else{S=z;T=s;U=W;V=X}break}case 1157:{ie=0;S=z;T=s;U=W;V=X;r=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;break}case 1158:{ie=0;if(c[(s+(r*20|0)&p)+4>>2]|0){b[(Yd&o)>>1]=b[(Yd&o)>>1]|8;S=z;T=s;U=W;V=X;break}t=c[(Vb&p)>>2]|0;if(!t){S=z;T=s;U=W;V=X}else{do{V=t+88|0;b[(V&o)>>1]=b[(V&o)>>1]|8;t=c[(t&p)+52>>2]|0}while((t|0)!=0);S=z;T=s;U=W;V=X}break}case 1166:{ie=0;J=(c[(w&p)>>2]|0)+72|0;t=c[(J&p)>>2]|0;D:do if(t){while(1){if((c[(t&p)+4>>2]|0)==(A|0)?(c[(t&p)>>2]|0)==(C|0):0)break;t=c[(t&p)+12>>2]|0;if(!t){ie=1171;break D}}if(!t)ie=1171}else ie=1171;while(0);if((ie|0)==1171){ie=0;t=qg(16,0)|0;if(!t){t=r;s=7;u=x;ie=1309;break c}U=t+0|0;V=U+12|0;do{a[(U&n)>>0]=0;U=U+1|0}while((U|0)<(V|0));c[(t&p)+4>>2]=A;c[(t&p)>>2]=C;c[(t&p)+12>>2]=c[(J&p)>>2];c[(J&p)>>2]=t}t=t+8|0;if((d[(t&n)>>0]|0)<(v&255)){a[(t&n)>>0]=v;S=z;T=s;U=W;V=X}else{S=z;T=s;U=W;V=X}break}case 1213:{ie=0;c[(sd&p)>>2]=0;v=c[((c[(s+(r*20|0)&p)+16>>2]|0)&p)+8>>2]|0;if(!v){t=r;s=6;u=x;ie=1309;break c}w=c[(v&p)>>2]|0;if(!w){t=r;s=6;u=x;ie=1309;break c}C=rc[c[(w&p)+24>>2]&127](v,sd)|0;Mm(f,v);if(C){t=r;s=C;u=x;ie=1309;break c}c[(c[(sd&p)>>2]&p)>>2]=v;t=xm(f,c[(s+(r*20|0)&p)+4>>2]|0,0,-1,0)|0;if(!t){a[(ge&n)>>0]=1;lc[c[(w&p)+28>>2]&127](c[(sd&p)>>2]|0)|0;S=z;T=s;U=W;V=X;break}else{c[(t&p)+32>>2]=c[(sd&p)>>2];S=v+4|0;c[(S&p)>>2]=(c[(S&p)>>2]|0)+1;S=z;T=s;U=W;V=X;break}}case 1226:{ie=0;t=z+(C*40|0)+8|0;if(!(b[(t&o)>>1]&9312)){b[(t&o)>>1]=1;S=z;T=s;U=W;V=X;break}else{vg(A);S=z;T=s;U=W;V=X;break}}case 1257:{ie=0;S=u;c[(S&p)>>2]=c[((c[((c[((c[(Xd&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<4)&p)+4>>2]|0)&p)+4>>2]|0)&p)+44>>2];c[(S&p)+4>>2]=0;S=z;T=s;U=W;V=X;break}case 1258:{ie=0;v=c[((c[(Xd&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<4)&p)+4>>2]|0;t=c[(s+(r*20|0)&p)+12>>2]|0;u=c[(v&p)+4>>2]|0;if(!t)t=0;else{V=c[(u&p)+44>>2]|0;t=V>>>0>>0?t:V}c[(u&p)+4>>2]=c[(v&p)>>2];u=(c[(u&p)>>2]|0)+156|0;if((t|0)>0)c[(u&p)>>2]=t;else t=c[(u&p)>>2]|0;S=J;c[(S&p)>>2]=t;c[(S&p)+4>>2]=((t|0)<0)<<31>>31;S=z;T=s;U=W;V=X;u=J;break}case 1264:{ie=0;r=c[(s+(t*20|0)&p)+8>>2]|0;r=(r|0)==0?t:r+-1|0;if((c[(Sa&p)>>2]|0)!=0?(b[(Yd&o)>>1]&512)==0:0){t=c[(s+(t*20|0)&p)+16>>2]|0;if(!t){t=c[(ce&p)>>2]|0;if(!t){S=z;T=s;U=W;V=X;u=L;break}}c[(Sd&p)>>2]=0;F=c[(f&p)>>2]|0;v=c[(F&p)+88>>2]|0;c[(fb&p)>>2]=Nd;c[(gb&p)>>2]=Nd;c[(hb&p)>>2]=0;c[(ib&p)>>2]=100;c[(jb&p)>>2]=v;a[(kb&n)>>0]=1;a[(lb&n)>>0]=0;c[(qd&p)>>2]=F;v=a[(t&n)>>0]|0;u=v<<24>>24==0;E:do if((c[(F&p)+160>>2]|0)>1){if(!u)while(1){u=t;do{u=u+1|0;if(v<<24>>24==10)break;v=a[(u&n)>>0]|0}while(v<<24>>24!=0);Sk(qd,42288,3);Sk(qd,t,u-t|0);v=a[(u&n)>>0]|0;if(!(v<<24>>24))break;else t=u}}else if(!u){H=F+62|0;K=1;do{F:do if(!(v<<24>>24)){A=0;u=0}else{C=t;u=0;while(1){A=Cn(C,ke)|0;if((c[(ke&p)>>2]|0)==135)break F;u=A+u|0;C=C+A|0;if(!(a[(C&n)>>0]|0)){A=0;break}}}while(0);Sk(qd,t,u);C=t+u|0;if(!A)break E;do if((a[(C&n)>>0]|0)==63)if((A|0)>1){Dn(t+(u+1)|0,Sd)|0;C=c[(Sd&p)>>2]|0;break}else{c[(Sd&p)>>2]=K;C=K;break}else{C=qh(f,C,A)|0;c[(Sd&p)>>2]=C}while(0);t=t+(u+A)|0;K=C+1|0;J=C+-1|0;I=c[(Ab&p)>>2]|0;C=I+(J*40|0)|0;A=e[(I+(J*40|0)&o)+8>>1]|0;do if(!(A&1)){if(A&4){T=C;U=c[(T&p)+4>>2]|0;V=ke;c[(V&p)>>2]=c[(T&p)>>2];c[(V&p)+4>>2]=U;En(qd,0,19920,ke);break}if(A&8){h[(k&q)>>3]=+h[(C&q)>>3];c[(ke&p)>>2]=c[(k&p)>>2];c[(ke&p)+4>>2]=c[(k&p)+4>>2];En(qd,0,20272,ke);break}if(!(A&2)){if(A&16384){c[(ke&p)>>2]=c[(C&p)>>2];En(qd,0,42304,ke);break}Sk(qd,42320,2);E=c[(I+(J*40|0)&p)+12>>2]|0;if((E|0)>0){C=I+(J*40|0)+16|0;A=0;do{c[(ke&p)>>2]=d[((c[(C&p)>>2]|0)+A&n)>>0];En(qd,0,42328,ke);A=A+1|0}while((A|0)!=(E|0))}Sk(qd,42336,1);break}else{E=a[(H&n)>>0]|0;if(E<<24>>24==1){V=c[(I+(J*40|0)&p)+16>>2]|0;c[(ke&p)>>2]=c[(I+(J*40|0)&p)+12>>2];c[(ke&p)+4>>2]=V;En(qd,0,42296,ke);break}U=Od+0|0;V=U+40|0;do{c[(U&p)>>2]=0;U=U+4|0}while((U|0)<(V|0));c[(nb&p)>>2]=F;Xg(Od,c[(I+(J*40|0)&p)+16>>2]|0,c[(I+(J*40|0)&p)+12>>2]|0,E,0)|0;V=c[(ob&p)>>2]|0;if(!((V&2|0)==0|(V&16711680|0)==65536))Bn(Od,1)|0;V=c[(qb&p)>>2]|0;c[(ke&p)>>2]=c[(pb&p)>>2];c[(ke&p)+4>>2]=V;En(qd,0,42296,ke);if((b[(ob&o)>>1]&9312)==0&(c[(rb&p)>>2]|0)==0)break;Qg(Od);break}}else Sk(qd,20304,4);while(0);v=a[(t&n)>>0]|0}while(v<<24>>24!=0)}while(0);S=tg(qd)|0;jc[c[(Sa&p)>>2]&15](c[(mb&p)>>2]|0,S);mg(le,S);S=z;T=s;U=W;V=X;u=L}else{S=z;T=s;U=W;V=X;u=L}break}}if((ie|0)==28){ie=0;z=s+(r*20|0)+4|0;t=c[(z&p)>>2]|0;if(t){y=z;ie=34;break}z=c[(sb&p)>>2]|0;if(!z){ie=30;break}c[(sb&p)>>2]=c[(z&p)+4>>2];c[(tb&p)>>2]=(c[(tb&p)>>2]|0)+-1;l=c[(ub&p)>>2]|0;c[(vb&p)>>2]=l;c[(wb&p)>>2]=(c[(wb&p)>>2]|0)+l;z=Xl(z)|0;l=ne;t=c[(zc&p)>>2]|0;if((c[(s+(r*20|0)&p)+8>>2]|0)==4)r=(c[(t+(z*20|0)&p)+8>>2]|0)+-1|0;else r=z;m=c[(l&p)>>2]|0;l=c[(l&p)+4>>2]|0;S=c[(Nc&p)>>2]|0;T=t;U=W;V=X}else if((ie|0)==488){ie=0;u=sm(le,C,A)|0;if(!u){S=z;T=s;U=W;V=X;u=E}else{t=r;ie=1318;break}}z=S;s=T;W=U;X=V;t=r+1|0}switch(ie|0){case 30:{c[(me&p)>>2]=t;a[(fe&n)>>0]=c[(s+(r*20|0)&p)+8>>2];c[(he&p)>>2]=r;ie=41;break}case 34:{c[(me&p)>>2]=t;a[(fe&n)>>0]=c[(s+(r*20|0)&p)+8>>2];c[(he&p)>>2]=r;t=a[(s+(r*20|0)&n)+3>>0]|0;if(!(t<<24>>24)){s=c[(s+(r*20|0)&p)+16>>2]|0;if(!s){s=0;ie=39}else{c[(ke&p)>>2]=s;dh(je,le,10344,ke)}}else{u=c[((t&255)+-1<<2&p)+41536>>2]|0;t=c[(s+(r*20|0)&p)+16>>2]|0;if(!t){s=u;ie=39}else{c[(ke&p)>>2]=u;c[(ke&p)+4>>2]=t;dh(je,le,41624,ke)}}if((ie|0)==39){c[(ke&p)>>2]=s;dh(je,le,41656,ke)}ie=c[(y&p)>>2]|0;qd=c[(ce&p)>>2]|0;rd=c[(je&p)>>2]|0;c[(ke&p)>>2]=r;c[(ke&p)+4>>2]=qd;c[(ke&p)+8>>2]=rd;bd(ie,41600,ke);ie=41;break}case 80:{x=c[(be&p)>>2]|0;if(!((x|0)==0|g>>>0>>0)?(lc[x&127](c[(Zd&p)>>2]|0)|0)!=0:0){r=m;s=9;m=u;ie=1311;break a}rd=_d;qd=c[(rd&p)+4>>2]|0;if((qd|0)>0|(qd|0)==0&(c[(rd&p)>>2]|0)>>>0>0){s=c[(f&p)>>2]|0;c[(me&p)>>2]=787;a[(fe&n)>>0]=2;dh(je,s,34376,ke);s=1;ie=1309;break}x=$l(f,1)|0;if(!x){c[($d&p)>>2]=(c[($d&p)>>2]|0)+2|1;y=c[(s+(t*20|0)&p)+4>>2]|0;c[(de&p)>>2]=z+(y*40|0);r=s+(t*20|0)+8|0;if((c[(r&p)>>2]|0)>0){x=0;do{v=x+y|0;w=z+(v*40|0)|0;v=z+(v*40|0)+8|0;s=b[(v&o)>>1]|0;if(s&4096){if(Vl(w)|0){y=ge;z=je;r=m;m=u;ie=1317;break a}s=b[(v&o)>>1]|0}if((s&514)==2)am(w)|0;x=x+1|0}while((x|0)<(c[(r&p)>>2]|0))}if(a[(ge&n)>>0]|0){y=ge;z=je;r=m;m=u;ie=1317;break a}c[(he&p)>>2]=t+1;r=m;m=g;g=100;break a}else{s=x;ie=1309}break}case 313:{c[(ke&p)>>2]=73058;c[(ke&p)+4>>2]=10788;bd(11,13600,ke);s=11;ie=1309;break}case 343:{c[(ke&p)>>2]=73142;c[(ke&p)+4>>2]=10788;bd(11,13600,ke);s=11;ie=1309;break}case 447:{dh(je,le,41712,ke);t=r;s=5;ie=1309;break}case 460:{c[(ke&p)>>2]=s;dh(je,le,41768,ke);s=1;ie=1309;break}case 462:{dh(je,le,41792,ke);s=5;ie=1309;break}case 467:{c[(he&p)>>2]=g;a[(ee&n)>>0]=0;c[(me&p)>>2]=5;g=5;break a}case 489:{v=c[(s+(t*20|0)&p)+4>>2]|0;s=c[(s+(t*20|0)&p)+8>>2]|0;g=(v|0)!=0;if(g){s=(s|0)!=0;if(!(s|(a[(ee&n)>>0]|0)!=0))if((c[(ae&p)>>2]|0)>0){dh(je,le,41848,ke);g=m;m=r;s=5;ie=1309;break}else s=0}else s=(s|0)!=0;if((v|0)==(d[(ee&n)>>0]|0)){if(g)g=s?41952:42e3;else g=41904;dh(je,le,g,ke);g=m;m=r;s=1;ie=1309;break}if(!s){g=tm(f,1)|0;if(g)break a;a[(ee&n)>>0]=v;if((Rl(f)|0)==5){c[(he&p)>>2]=t;a[(ee&n)>>0]=1-v;c[(me&p)>>2]=5;g=5;break a}}else{Kl(le,516);a[(ee&n)>>0]=1}Ll(le);g=(c[(me&p)>>2]|0)==0?101:1;break a}case 508:{c[(he&p)>>2]=g;c[(me&p)>>2]=5;g=5;break a}case 522:{mg(le,c[(je&p)>>2]|0);c[(je&p)>>2]=kh(le,16040)|0;s=c[(s&p)>>2]|0;if((c[(c[((c[(Xd&p)>>2]|0)+(s<<4)&p)+12>>2]&p)>>2]|0)!=(v|0))vm(le,s);b[(Yd&o)>>1]=b[(Yd&o)>>1]|8;s=17;ie=1309;break}case 542:{c[(ke&p)>>2]=73997;c[(ke&p)+4>>2]=10788;bd(11,13600,ke);u=11;x=s;ie=1318;break}case 560:{c[(s&p)+56>>2]=0;s=7;ie=1309;break}case 832:{a[(fe&n)>>0]=2;s=6;ie=1309;break}case 882:{Eg(le);y=ge;z=je;r=m;m=u;ie=1317;break a}case 884:{Eg(le);if((s|0)==7){y=ge;z=je;r=m;m=u;ie=1317;break a}else ie=1309;break}case 998:{dh(je,le,42112,ke);s=1;ie=1309;break}case 1080:{c[(ke&p)>>2]=s?42208:42216;dh(je,le,42152,ke);s=1;ie=1309;break}case 1101:{dh(je,le,42344,ke);s=1;ie=1309;break}case 1103:{dh(je,le,42384,ke);s=1;ie=1309;break}case 1145:{c[(ke&p)>>2]=56343;c[(ke&p)+4>>2]=10788;bd(11,13600,ke);s=11;ie=1309;break}case 1316:{dh(je,le,10096,ke);r=m;s=18;m=u;ie=1311;break a}}if((ie|0)==41)if((Rl(f)|0)==5){c[(me&p)>>2]=5;r=m;m=g;g=5;break a}else{r=m;m=g;g=(c[(me&p)>>2]|0)!=0?1:101;break a}else if((ie|0)==1309){r=m;t=t+1|0;m=u;ie=1311;break a}else if((ie|0)==1318){u=(a[(ge&n)>>0]|0)==0?u:7;if((u|0)==3082){r=m;s=3082;m=x;ie=1311;break a}else if((u|0)!=516){r=u&255;if(r>>>0>26|(r|0)==2)s=16328;else s=c[(r<<2&p)+15488>>2]|0}else s=16344;c[(ke&p)>>2]=s;dh(je,le,10344,ke);r=m;s=u;m=x;ie=1311;break a}}else{u=f+44|0;r=m;g=0;t=0;m=0}while(0);c[(me&p)>>2]=9;c[(ke&p)>>2]=15832;dh(u,le,10344,ke);s=9;ie=1311}while(0);if((ie|0)==1317){a[(y&n)>>0]=1;dh(z,le,15776,ke);s=7;ie=1311}if((ie|0)==1311){c[(me&p)>>2]=s;qd=c[(f&p)+168>>2]|0;rd=c[(f&p)+44>>2]|0;c[(ke&p)>>2]=t;c[(ke&p)+4>>2]=qd;c[(ke&p)+8>>2]=rd;bd(s,42256,ke);Rl(f)|0;if((s|0)==3082)a[(le&n)+65>>0]=1;if(!(m<<24>>24)){m=g;g=1}else{vm(le,(m&255)+-1|0);m=g;g=1}}rd=ne;c[(rd&p)>>2]=r;c[(rd&p)+4>>2]=l;rd=f+124|0;c[(rd&p)>>2]=(c[(rd&p)>>2]|0)+m;i=oe;return g|0} function Ev(e){e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=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=e+20|0;u=e+14|0;f=a[(u&n)>>0]|0;z=e+13|0;g=a[(z&n)>>0]|0;a:do if((f&255)>(g&255))f=0;else{B=e+4|0;C=e+16|0;v=e+8|0;w=e+12|0;x=e+24|0;y=e+28|0;i=f&255;j=c[(B&p)>>2]|0;h=c[(D&p)>>2]|0;b:while(1){t=c[(e+(i+-2<<2)&p)+24>>2]|0;s=c[(e+(i+-1<<2)&p)+24>>2]|0;if(j){while(1){r=j+12|0;if((h|0)<(c[(r&p)>>2]|0)){g=h;f=(c[(j&p)+20>>2]|0)+(h*48|0)|0;while(1){do if((c[(f&p)+8>>2]|0)==(t|0)?(c[(f&p)+12>>2]|0)==(s|0):0){if((d[(u&n)>>0]|0)>=3?(c[((c[(f&p)>>2]|0)&p)+4>>2]&1|0)!=0:0)break;q=f+18|0;h=b[(q&o)>>1]|0;if((h&1024)!=0?(A=a[(z&n)>>0]|0,(A&255)<22):0){i=c[((c[(f&p)>>2]|0)&p)+16>>2]|0;c:do if(!i)i=0;else while(1){k=c[(i&p)+4>>2]|0;if(!(k&4096))break c;if(!(k&262144))i=i+12|0;else i=c[((c[(i&p)+20>>2]|0)&p)+4>>2]|0;i=c[(i&p)>>2]|0;if(!i){i=0;break}}while(0);d:do if(!(A<<24>>24)){m=0;k=0}else{l=c[(i&p)+28>>2]|0;m=i+32|0;k=0;while(1){if((c[(e+(k<<2)&p)+24>>2]|0)==(l|0)?(c[(e+((k|1)<<2)&p)+24>>2]|0)==(b[(m&o)>>1]|0):0){m=A;break d}k=k+2|0;if((k|0)>=(A&255|0)){m=A;break}}}while(0);if((k|0)==(m&255|0)){c[(e+(k<<2)&p)+24>>2]=c[(i&p)+28>>2];c[(e+((k|1)<<2)&p)+24>>2]=b[(i&o)+32>>1];a[(z&n)>>0]=(d[(z&n)>>0]|0)+2}}i=h&65535;if(i&c[(C&p)>>2]){if((c[(v&p)>>2]|0)!=0&(i&128|0)==0){l=c[(c[(j&p)>>2]&p)>>2]|0;k=c[(f&p)>>2]|0;i=a[(w&n)>>0]|0;h=(nv(k)|0)<<24>>24;if((h|0)==66){if(i<<24>>24!=66)break}else if((h|0)!=65?i<<24>>24<=66:0)break;h=Ou(l,c[(k&p)+12>>2]|0,c[(k&p)+16>>2]|0)|0;if(!h)h=c[((c[(l&p)>>2]|0)&p)+8>>2]|0;if(dd(c[(h&p)>>2]|0,c[(v&p)>>2]|0)|0)break;h=b[(q&o)>>1]|0}if(!(h&2))break b;h=c[((c[(f&p)>>2]|0)&p)+16>>2]|0;if((a[(h&n)>>0]|0)!=-102)break b;if((c[(h&p)+28>>2]|0)!=(c[(x&p)>>2]|0))break b;if((b[(h&o)+32>>1]|0)!=(c[(y&p)>>2]|0))break b}}while(0);g=g+1|0;if((g|0)>=(c[(r&p)>>2]|0))break;else f=f+48|0}g=c[(B&p)>>2]|0}else g=j;j=c[(g&p)+4>>2]|0;c[(B&p)>>2]=j;if(!j)break;else h=0}f=a[(u&n)>>0]|0;g=a[(z&n)>>0]|0}j=c[(e&p)>>2]|0;c[(B&p)>>2]=j;h=(f&255)+2|0;f=h&255;a[(u&n)>>0]=f;if((f&255)>(g&255)){f=0;break a}else{i=h&255;h=0}}c[(D&p)>>2]=g+1}while(0);return f|0}function Fv(d,f){d=d|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0,m=0,q=0;g=c[(d&p)>>2]|0;l=c[(c[(g&p)>>2]&p)>>2]|0;d=c[(d&p)+16>>2]|0;a:do if(!d){g=g+16|0;i=c[(g&p)>>2]|0;k=f+36|0;if((c[(k&p)>>2]&512|0)!=0&(i|0)!=0){d=f+20|0;j=f+22|0;h=a[(f&n)+16>>0]|0;do{do if((a[(i&n)+16>>0]|0)==h<<24>>24?(c[(i&p)+36>>2]&512|0)!=0:0){if(Tv(i,f)|0){b[(d&o)>>1]=b[(i&o)+20>>1]|0;b[(j&o)>>1]=(e[(i&o)+22>>1]|0)+65535;break}if(Tv(f,i)|0){b[(d&o)>>1]=b[(i&o)+20>>1]|0;b[(j&o)>>1]=(e[(i&o)+22>>1]|0)+1}}while(0);i=c[(i&p)+52>>2]|0}while((i|0)!=0)}d=Uv(g,f)|0;if(d){g=c[(d&p)>>2]|0;b:do if(g){d=g+52|0;if(c[(d&p)>>2]|0)do{d=Uv(d,f)|0;if(!d)break b;h=c[(d&p)>>2]|0;if(!h)break b;c[(d&p)>>2]=c[(h&p)+52>>2];Ju(l,h);mg(l,h)}while((c[(d&p)>>2]|0)!=0)}else{g=mh(l,72,0)|0;c[(d&p)>>2]=g;if(!g){d=7;break a}c[(g&p)+48>>2]=g+56;b[(g&o)+40>>1]=0;b[(g&o)+44>>1]=3;c[(g&p)+36>>2]=0;c[(g&p)+52>>2]=0}while(0);Lv(l,g);do if(!(Nu(l,g,e[(f&o)+40>>1]|0)|0)){h=g+0|0;d=f+0|0;i=h+44|0;do{c[(h&p)>>2]=c[(d&p)>>2];h=h+4|0;d=d+4|0}while((h|0)<(i|0));kw(c[(g&p)+48>>2]|0,c[(f&p)+48>>2]|0,e[(g&o)+40>>1]<<2|0)|0;d=c[(k&p)>>2]|0;if(d&1024){a[(f&n)+28>>0]=0;break}if(d&16384)c[(f&p)+28>>2]=0}else{d=g+24|0;c[(d&p)>>2]=0;c[(d&p)+4>>2]=0;c[(d&p)+8>>2]=0}while(0);if(((c[(g&p)+36>>2]&1024|0)==0?(m=g+28|0,q=c[(m&p)>>2]|0,(q|0)!=0):0)?(c[(q&p)+40>>2]|0)==0:0){c[(m&p)>>2]=0;d=0}else d=0}else d=0}else{g=f;Kv(d,c[(g&p)>>2]|0,c[(g&p)+4>>2]|0,b[(f&o)+20>>1]|0,b[(f&o)+22>>1]|0);d=0}while(0);return d|0}function Gv(a,b){a=a|0;b=b|0;var c=0,e=0;c=a<<16>>16;e=b<<16>>16;do if(a<<16>>16>16)if((e|0)<=(c+49|0))if((e|0)>(c+31|0)){a=e+1&65535;break}else{a=(d[(e-c&n)+34032>>0]|0)+e&65535;break}else a=b;else if((c|0)<=(e+49|0))if((c|0)>(e+31|0)){a=c+1&65535;break}else{a=(d[(c-e&n)+34032>>0]|0)+c&65535;break}while(0);return a|0}function Hv(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0;do if(!(Cu(b,d,e)|0))f=1;else{f=a[(d&n)>>0]|0;if(f<<24>>24==71){if(Hv(b,c[(d&p)+12>>2]|0,e)|0){f=1;break}if(Hv(b,c[(d&p)+16>>2]|0,e)|0){f=1;break}if(f<<24>>24==77)g=6}else if(f<<24>>24==77)g=6;if(((g|0)==6?(Cu(c[(b&p)+12>>2]|0,c[(d&p)+12>>2]|0,e)|0)==0:0)?(f=a[(b&n)>>0]|0,!(f<<24>>24==73|f<<24>>24==76)):0){f=1;break}f=0}while(0);return f|0}function Iv(a,d,f){a=a|0;d=d|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0;x=i;i=i+16|0;if((i|0)>=(j|0))fa();w=x;u=d;v=d+8|0;g=v;t=~(c[(g&p)>>2]|c[(u&p)>>2]);u=~(c[(g&p)+4>>2]|c[(u&p)+4>>2]);g=c[(a&p)+12>>2]|0;r=a+20|0;a:do if((g|0)>0){s=d+40|0;a=d+22|0;q=d+48|0;d=0;n=c[(r&p)>>2]|0;while(1){if(b[(n&o)+20>>1]&2)break a;m=n+40|0;l=c[(m&p)>>2]|0;m=c[(m&p)+4>>2]|0;k=v;b:do if(((c[(k&p)>>2]&l|0)!=0?1:(c[(k&p)+4>>2]&m|0)!=0)&((l&t|0)==0&(m&u|0)==0)){h=b[(s&o)>>1]|0;c:do if(h<<16>>16){m=c[(q&p)>>2]|0;l=h&65535;while(1){h=l;l=l+-1|0;k=c[(m+(l<<2)&p)>>2]|0;if(k){if((k|0)==(n|0))break;k=c[(k&p)+4>>2]|0;if((k|0)>-1?((c[(r&p)>>2]|0)+(k*48|0)|0)==(n|0):0)break}if((l|0)<=0)break c}if((h|0)>=1)break b}while(0);h=b[(n&o)+16>>1]|0;if(h<<16>>16<1){b[(a&o)>>1]=(e[(a&o)>>1]|0)+(h&65535);break}b[(a&o)>>1]=(b[(a&o)>>1]|0)+-1<<16>>16;if(b[(n&o)+18>>1]&2){l=(Ms(c[((c[(n&p)>>2]|0)&p)+16>>2]|0,w)|0)!=0;m=c[(w&p)>>2]|0;m=l&(m|0)>-2&(m|0)<2?10:20;c[(w&p)>>2]=m;d=(d<<16>>16|0)<(m|0)?m&65535:d}}while(0);g=g+-1|0;if((g|0)<=0)break;else n=n+48|0}}else{a=d+22|0;d=0}while(0);d=(f<<16>>16)-(d<<16>>16)|0;if((b[(a&o)>>1]|0)>(d|0))b[(a&o)>>1]=d;i=x;return}function Jv(d,f,g,h){d=d|0;f=f|0;g=g|0;h=h|0;var k=0,l=0,m=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,ga=0,ha=0;ha=i;i=i+112|0;if((i|0)>=(j|0))fa();R=ha;V=c[(c[(c[(d&p)>>2]&p)>>2]&p)>>2]|0;ea=c[(d&p)+12>>2]|0;if(!(a[(V&n)+65>>0]|0)){ga=ea+36|0;if(!(c[(ga&p)>>2]&32))if((c[(g&p)+40>>2]|0)<1)k=63;else k=(a[(f&n)+36>>0]&8)<<4^191;else k=24;W=g+51|0;ca=ea+24|0;l=b[((c[(g&p)+4>>2]|0)+(e[(ca&o)>>1]<<1)&o)>>1]|0;N=l<<16>>16;O=d+4|0;k=Dv(R,c[(O&p)>>2]|0,c[(f&p)+40>>2]|0,N,(a[(W&n)>>0]&4)==0?k:k&131,g)|0;X=b[(ca&o)>>1]|0;Y=ea+42|0;T=b[(Y&o)>>1]|0;Z=ea+40|0;U=b[(Z&o)>>1]|0;_=c[(ga&p)>>2]|0;Q=ea;P=c[(Q&p)>>2]|0;Q=c[(Q&p)+4>>2]|0;$=ea+22|0;aa=b[($&o)>>1]|0;b[(ea&o)+18>>1]=0;ba=g+8|0;D=b[(c[(ba&p)>>2]&o)>>1]|0;if(D<<16>>16<11)C=0;else{C=D<<16>>16;C=((fs(C,((C|0)<0)<<31>>31)|0)&65535)+65503&65535}a:do if(!k)k=0;else{E=l<<16>>16<0;F=f+16|0;G=ea+8|0;H=(U&65535)+1|0;I=ea+48|0;J=h<<16>>16==0;K=g+46|0;w=l<<16>>16>-1;x=g+50|0;y=g+44|0;z=ea+20|0;A=h<<16>>16;B=g+48|0;r=0;u=k;s=0;while(1){l=b[(u&o)+18>>1]|0;t=l&65535;if(l<<16>>16==128)if(!E?(a[((c[((c[(F&p)>>2]|0)&p)+4>>2]|0)+(N*24|0)&n)+20>>0]|0)==0:0)S=12;else{m=r;l=s;k=0}else S=12;if((S|0)==12){S=0;m=u+32|0;v=m;q=G;if(((c[(q&p)>>2]&c[(v&p)>>2]|0)==0?(c[(q&p)+4>>2]&c[(v&p)+4>>2]|0)==0:0)?(L=u+20|0,!((b[(L&o)>>1]&256)!=0&l<<16>>16==16)):0){c[(ga&p)>>2]=_;b[(ca&o)>>1]=X;b[(Z&o)>>1]=U;if(Nu(V,ea,H)|0){k=0;break a}k=b[(Z&o)>>1]|0;q=k+1<<16>>16;b[(Z&o)>>1]=q;c[((c[(I&p)>>2]|0)+((k&65535)<<2)&p)>>2]=u;k=m;l=G;m=(c[(k&p)+4>>2]|Q)&~c[(l&p)+4>>2];v=ea;c[(v&p)>>2]=(c[(k&p)>>2]|P)&~c[(l&p)>>2];c[(v&p)+4>>2]=m;b:do if(!(t&1)){if(t&2){k=c[(ga&p)>>2]|0;l=k|1;c[(ga&p)>>2]=l;do if(!E){if(!J){v=0;break b}if((e[(ca&o)>>1]|0)!=((e[(K&o)>>1]|0)+-1|0)){v=0;break b}if(!w)break;if(a[(x&n)>>0]|0)break;l=k|65537;c[(ga&p)>>2]=l;v=0;break b}while(0);l=k|4097;c[(ga&p)>>2]=l;v=0;break}if(t&128){l=c[(ga&p)>>2]|8;c[(ga&p)>>2]=l;v=0;break}k=c[(ga&p)>>2]|0;if(!(t&36)){l=k|18;c[(ga&p)>>2]=l;if(!(k&32)){v=0;r=0;s=u;break}v=0;r=c[((c[(I&p)>>2]|0)+((q&65535)+-2<<2)&p)>>2]|0;s=u;break}l=k|34;c[(ga&p)>>2]=l;if(!(b[(L&o)>>1]&256)){v=0;r=u;s=0}else{k=u+48|0;if(Nu(V,ea,(q&65535)+1|0)|0){k=0;break a}l=b[(Z&o)>>1]|0;b[(Z&o)>>1]=l+1<<16>>16;c[((c[(I&p)>>2]|0)+((l&65535)<<2)&p)>>2]=k;l=c[(ga&p)>>2]|16;c[(ga&p)>>2]=l;v=0;r=u;s=k}}else{k=c[(u&p)>>2]|0;l=c[(ga&p)>>2]|4;c[(ga&p)>>2]=l;if(!(c[(k&p)+4>>2]&2048)){k=c[(k&p)+20>>2]|0;if((k|0)!=0?(M=c[(k&p)>>2]|0,(M|0)!=0):0)v=(fs(M,((M|0)<0)<<31>>31)|0)<<16>>16;else v=0}else v=46}while(0);do if(!(l&2)){k=(b[(ca&o)>>1]|0)+1<<16>>16;b[(ca&o)>>1]=k;k=k&65535;m=b[(u&o)+16>>1]|0;if(m<<16>>16<1&w){q=(m&65535)-v+(e[($&o)>>1]|0)&65535;b[($&o)>>1]=q;break}m=c[(ba&p)>>2]|0;m=(e[($&o)>>1]|0)+((e[(m+(k<<1)&o)>>1]|0)-(e[(m+(k+-1<<1)&o)>>1]|0))|0;k=m&65535;b[($&o)>>1]=k;if(!(t&128))q=k;else{q=m+10&65535;b[($&o)>>1]=q}}else{k=b[($&o)>>1]|0;q=k<<16>>16;do if(r){m=b[(r&o)+16>>1]|0;if(m<<16>>16<1){k=(m&65535)+(k&65535)&65535;break}else{k=(k&65535)+65516&65535;break}}while(0);do if(s){m=b[(s&o)+16>>1]|0;if(m<<16>>16<1){k=(m&65535)+(k&65535)&65535;break}else{k=(k&65535)+65516&65535;break}}while(0);m=(r|0)!=0;do if(m?(b[(r&o)+16>>1]|0)>0&(s|0)!=0:0){if((b[(s&o)+16>>1]|0)<=0)break;k=(k&65535)+65516&65535}while(0);q=(((s|0)!=0)<<31>>31)+(m<<31>>31)+q|0;u=k<<16>>16<10?10:k<<16>>16;q=((u|0)<(q|0)?u:q)&65535;b[($&o)>>1]=q}while(0);k=q&65535;m=Gv(C,k+1+(((b[(y&o)>>1]|0)*15|0)/(b[((c[(F&p)>>2]|0)&o)+42>>1]|0)|0)&65535)|0;if(!(l&320))m=Gv(m,k+16&65535)|0;l=v+A|0;b[(z&o)>>1]=(m&65535)+l;b[($&o)>>1]=k+l;Iv(c[(O&p)>>2]|0,ea,D);k=Fv(d,ea)|0;v=c[(ga&p)>>2]|0;b[($&o)>>1]=(v&2|0)==0?q:aa;if((v&16|0)==0?(e[(ca&o)>>1]|0)<(e[(B&o)>>1]|0):0)Jv(d,f,g,l&65535)|0;b[($&o)>>1]=aa;m=r;l=s}else{m=r;l=s;k=0}}u=Ev(R)|0;if(!((k|0)==0&(u|0)!=0))break;else{r=m;s=l}}}while(0);l=ea;c[(l&p)>>2]=P;c[(l&p)+4>>2]=Q;b[(ca&o)>>1]=X;b[(Y&o)>>1]=T;c[(ga&p)>>2]=_;b[($&o)>>1]=aa;b[(Z&o)>>1]=U;l=X&65535;if(((X<<16>>16==T<<16>>16?(da=l+1|0,da>>>0<(e[(g&o)+46>>1]|0)>>>0):0)?(a[(W&n)>>0]&64)==0:0)?(b[((c[(ba&p)>>2]|0)+(da<<1)&o)>>1]|0)>41:0){k=Nu(V,ea,(U&65535)+1|0)|0;if(!k){b[(ca&o)>>1]=(b[(ca&o)>>1]|0)+1<<16>>16;b[(Y&o)>>1]=(b[(Y&o)>>1]|0)+1<<16>>16;k=b[(Z&o)>>1]|0;b[(Z&o)>>1]=k+1<<16>>16;c[((c[(ea&p)+48>>2]|0)+((k&65535)<<2)&p)>>2]=0;c[(ga&p)>>2]=c[(ga&p)>>2]|32768;k=c[(ba&p)>>2]|0;k=(e[(k+(l<<1)&o)>>1]|0)-(e[(k+(da<<1)&o)>>1]|0)|0;b[($&o)>>1]=(e[($&o)>>1]|0)-k;Jv(d,f,g,(((k<<16)+327680|0)>>>16)+(h&65535)&65535)|0;b[($&o)>>1]=aa;b[(ca&o)>>1]=X;b[(Y&o)>>1]=X;c[(ga&p)>>2]=_;k=0}}}else k=7;i=ha;return k|0}function Kv(a,d,e,f,g){a=a|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,i=0,j=0,k=0,l=0,m=0,n=0,q=0,r=0;l=b[(a&o)>>1]|0;h=a+8|0;a:do if(l<<16>>16){j=l;k=h;while(1){i=b[(k&o)+8>>1]|0;if(i<<16>>16>=f<<16>>16?(r=k,(c[(r&p)>>2]&d|0)==(d|0)?(c[(r&p)+4>>2]&e|0)==(e|0):0):0){n=k;q=14;break a}if(i<<16>>16<=f<<16>>16?(i=k,r=c[(i&p)>>2]|0,i=c[(i&p)+4>>2]|0,(r&d|0)==(r|0)&(i&e|0)==(i|0)):0)break a;j=j+-1<<16>>16;if(!(j<<16>>16))break;else k=k+16|0}if((l&65535)>=3){i=b[(a&o)+16>>1]|0;k=1;do{if(i<<16>>16>(b[(a+(k<<4)&o)+16>>1]|0))h=a+(k<<4)+8|0;k=k+1|0;i=b[(h&o)+8>>1]|0}while((k&65535)<(l&65535));if(i<<16>>16>f<<16>>16){n=h;q=14}}else q=9}else q=9;while(0);if((q|0)==9){n=l&65535;b[(a&o)>>1]=l+1<<16>>16;b[(a+(n<<4)&o)+18>>1]=g;n=a+(n<<4)+8|0;q=14}if((q|0)==14?(m=n,c[(m&p)>>2]=d,c[(m&p)+4>>2]=e,b[(n&o)+8>>1]=f,m=n+10|0,(b[(m&o)>>1]|0)>g<<16>>16):0)b[(m&o)>>1]=g;return}function Lv(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0;e=c[(d&p)+36>>2]|0;do if(e&17408){if((e&1024|0)!=0?(h=d+28|0,(a[(h&n)>>0]|0)!=0):0){e=d+32|0;Wc(c[(e&p)>>2]|0);a[(h&n)>>0]=0;c[(e&p)>>2]=0;break}if((e&16384|0)!=0?(f=d+28|0,g=c[(f&p)>>2]|0,(g|0)!=0):0){mg(b,c[(g&p)+16>>2]|0);mg(b,c[(f&p)>>2]|0);c[(f&p)>>2]=0}}while(0);return}function Mv(f,g,h,k,l,m,q){f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;m=m|0;q=q|0;var 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,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,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;ta=i;i=i+32|0;if((i|0)>=(j|0))fa();oa=ta;s=c[(c[(f&p)>>2]&p)>>2]|0;na=l&65535;if(l<<16>>16!=0?(b[(s&o)+60>>1]&128)!=0:0)r=0;else pa=3;a:do if((pa|0)==3){sa=c[(g&p)>>2]|0;r=sa&65535;if(r>>>0<=63){qa=iw(1,0,r|0)|0;qa=jw(qa|0,G|0,-1,-1)|0;ra=G;b:do if((qa|0)==0&(ra|0)==0){g=0;h=0;s=1}else{ha=h+24|0;ia=f+4|0;ja=(r|0)==0;ea=g+4|0;ga=(k&768)==0;da=s+8|0;W=(k&256)==0;X=f+68|0;Y=oa+20|0;Z=oa+4|0;aa=oa+24|0;ba=f+328|0;_=0;$=0;g=0;h=0;k=0;t=0;ca=0;s=1;l=0;while(1){if((ca|0)>0){U=l+8|0;V=c[(U&p)>>2]|k;t=c[(U&p)+4>>2]|t}else V=k;if((ca|0)<(na|0))l=c[((c[(ha&p)>>2]|0)+(ca<<2)&p)>>2]|0;else l=m;B=l+36|0;k=c[(B&p)>>2]|0;if(k&1024)break;U=c[((c[(ia&p)>>2]|0)+((d[(l&n)+16>>0]|0)*72|0)&p)+48>>2]|0;if(!ja){k=~V;v=~t;y=0;do{A=iw(1,0,y|0)|0;z=G;c:do if((A&g|0)==0&(z&h|0)==0){u=c[((c[(ea&p)>>2]|0)+(y*20|0)&p)>>2]|0;x=c[(u&p)+4>>2]|0;if(x&4096)do{if(!(x&262144))u=u+12|0;else u=c[((c[(u&p)+20>>2]|0)&p)+4>>2]|0;u=c[(u&p)>>2]|0;x=c[(u&p)+4>>2]|0}while((x&4096|0)!=0);if(((a[(u&n)>>0]|0)==-102?(c[(u&p)+28>>2]|0)==(U|0):0)?(ka=u+32|0,la=Fu(ba,U,b[(ka&o)>>1]|0,k,v,130,0)|0,(la|0)!=0):0){do if(b[(la&o)+18>>1]&2){if((b[(ka&o)>>1]|0)<=-1)break;u=cu(c[(f&p)>>2]|0,c[((c[(ea&p)>>2]|0)+(y*20|0)&p)>>2]|0)|0;if(!u)u=c[(da&p)>>2]|0;x=c[(u&p)>>2]|0;w=cu(c[(f&p)>>2]|0,c[(la&p)>>2]|0)|0;if(!w)w=c[(da&p)>>2]|0;if(dd(x,c[(w&p)>>2]|0)|0)break c}while(0);g=A|g;h=z|h}}while(0);y=y+1|0}while((y|0)<(r|0));k=c[(B&p)>>2]|0}do if(!(k&4096)){if(!(k&256)){u=c[(l&p)+28>>2]|0;if(!u){r=0;break a}if(a[(u&n)+51>>0]&4){r=0;break a}k=b[(u&o)+48>>1]|0;s=(a[(u&n)+50>>0]|0)!=0&1;if(!(k<<16>>16)){pa=71;break}else{S=k&65535;T=b[(u&o)+46>>1]|0}}else{S=1;T=0;u=0}J=l+24|0;K=l+42|0;L=l+48|0;M=(u|0)==0;N=u+32|0;O=iw(1,0,ca|0)|0;P=G;Q=u+4|0;R=u+28|0;I=u+12|0;k=0;u=0;A=0;H=0;d:while(1){z=(u|0)<(e[(J&o)>>1]|0);if((z?(b[(K&o)>>1]|0)==0:0)?(ma=e[((c[((c[(L&p)>>2]|0)+(u<<2)&p)>>2]|0)&o)+18>>1]|0,(ma&130|0)!=0):0){s=(ma&128|0)==0?s:0;z=H}else{if(!M){x=b[((c[(Q&p)>>2]|0)+(u<<1)&o)>>1]|0;w=a[((c[(R&p)>>2]|0)+u&n)>>0]|0;v=c[(I&p)>>2]|0;x=x<<16>>16==(b[(v&o)+36>>1]|0)?-1:x<<16>>16;y=(x|0)>-1;if(s<<24>>24!=0&y)if(z){y=1;F=x}else{y=1;F=x;s=(a[((c[(v&p)+4>>2]|0)+(x*24|0)&n)+20>>0]|0)==0?0:s}else F=x}else{y=0;F=-1;w=0}if(ja){pa=68;break}else{z=1;E=0}e:while(1){C=iw(1,0,E|0)|0;D=G;do if((C&g|0)==0&(D&h|0)==0){v=c[((c[(ea&p)>>2]|0)+(E*20|0)&p)>>2]|0;x=c[(v&p)+4>>2]|0;if(!(x&4096))B=v;else{B=v;do{if(!(x&262144))x=B+12|0;else x=c[((c[(B&p)+20>>2]|0)&p)+4>>2]|0;B=c[(x&p)>>2]|0;x=c[(B&p)+4>>2]|0}while((x&4096|0)!=0)}z=ga?0:z;if((a[(B&n)>>0]|0)!=-102)break;if((c[(B&p)+28>>2]|0)!=(U|0))break;if((b[(B&o)+32>>1]|0)!=(F|0))break;if(!y){B=C;y=D;z=E;break e}x=cu(c[(f&p)>>2]|0,v)|0;if(!x)x=c[(da&p)>>2]|0;if(!(dd(c[(x&p)>>2]|0,c[((c[(N&p)>>2]|0)+(u<<2)&p)>>2]|0)|0)){B=C;y=D;z=E;break e}}while(0);E=E+1|0;if(!(z<<24>>24!=0&(E|0)<(r|0))){pa=68;break d}}do if(W){if(H<<24>>24)if((w^A)<<24>>24==(a[((c[(ea&p)>>2]|0)+(z*20|0)&n)+12>>0]|0)){z=H;break}else{pa=68;break d}v=a[((c[(ea&p)>>2]|0)+(z*20|0)&n)+12>>0]|0;A=v^w;if(w<<24>>24==v<<24>>24){z=1;break}v=q;w=c[(v&p)+4>>2]|P;z=q;c[(z&p)>>2]=c[(v&p)>>2]|O;c[(z&p)+4>>2]=w;z=1}else z=H;while(0);g=B|g;h=y|h;k=(F|0)<0?1:k}u=u+1|0;if((u|0)>=(S|0))break;else H=z}if((pa|0)==68){pa=0;s=(u|0)==0|(u|0)<(T&65535|0)?0:s}if(!(k<<24>>24))pa=71;else s=1}else pa=71;while(0);if((pa|0)==71){pa=0;if(!(s<<24>>24)){s=0;break b}}U=l+8|0;_=c[(U&p)>>2]|_;$=c[(U&p)+4>>2]|$;if(!ja){z=~_;A=~$;y=0;do{u=iw(1,0,y|0)|0;x=G;do if((u&g|0)==0&(x&h|0)==0){k=c[((c[(ea&p)>>2]|0)+(y*20|0)&p)>>2]|0;v=Av(X,k)|0;w=G;if((v|0)==0&(w|0)==0?(c[(oa&p)>>2]=0,c[(oa&p)+4>>2]=0,c[(oa&p)+8>>2]=0,c[(oa&p)+12>>2]=0,c[(oa&p)+16>>2]=0,c[(oa&p)+20>>2]=0,a[(Y&n)>>0]=1,c[(oa&p)>>2]=78,c[(Z&p)>>2]=79,c[(aa&p)>>2]=0,rs(oa,k)|0,(a[(Y&n)>>0]|0)==0):0)break;U=(v&z|0)==0&(w&A|0)==0;g=(U?u:0)|g;h=(U?x:0)|h}while(0);y=y+1|0}while((y|0)<(r|0))}if(h>>>0>ra>>>0|(h|0)==(ra|0)&g>>>0>=qa>>>0|s<<24>>24==0|(ca|0)>=(na|0))break b;else{k=V;ca=ca+1|0}}ga=(a[(l&n)+29>>0]|0)==0;g=ga?g:qa;h=ga?h:ra}while(0);if((g|0)==(qa|0)&(h|0)==(ra|0)){r=sa&255;break}if(!(s<<24>>24)){do{r=r+-1|0;if((r|0)<=0){r=0;break a}ea=iw(1,0,r|0)|0;ea=jw(ea|0,G|0,-1,-1)|0;ga=G}while(!((ea&g|0)==(ea|0)&(ga&h|0)==(ga|0)));r=r&255}else r=-1}else r=0}while(0);i=ta;return r|0}function Nv(b,c,d,e){b=b|0;c=c|0;d=d|0;e=e|0;if(c)Sk(b,33920,5);if(!d)c=0;else{c=d;while(1)if(!(a[(c&n)>>0]|0))break;else c=c+1|0;c=c-d&1073741823}Sk(b,d,c);Sk(b,e,1);Sk(b,13552,1);return}function Ov(a){a=a|0;var d=0,e=0,f=0,g=0,h=0,i=0;i=c[(c[(c[(a&p)>>2]&p)>>2]&p)>>2]|0;d=c[(a&p)+12>>2]|0;g=a+20|0;if((d|0)>0){h=c[(g&p)>>2]|0;while(1){d=d+-1|0;f=h+20|0;e=b[(f&o)>>1]|0;if(e&1){Gk(i,c[(h&p)>>2]|0);e=b[(f&o)>>1]|0}e=e&65535;if(!(e&16)){if(e&32){e=c[(h&p)+12>>2]|0;Ov(e);mg(i,e)}}else{e=c[(h&p)+12>>2]|0;Ov(e);mg(i,e)}if((d|0)<=0)break;else h=h+48|0}}d=c[(g&p)>>2]|0;if((d|0)!=(a+24|0))mg(i,d);return}function Pv(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,o=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0;u=i;i=i+32|0;if((i|0)>=(j|0))fa();t=u;h=c[(b&p)+8>>2]|0;k=c[(b&p)>>2]|0;if(e){l=(f|0)==10;m=b+437|0;o=t+4|0;q=t+1|0;r=t+8|0;s=t+12|0;g=f&255;do{if(l)f=a[(e&n)+1>>0]|0;else f=g;a[(m&n)>>0]=f;f=d[(e&n)>>0]|0;if((f|0)==108){w=Vv(b,e)|0;v=gr(k,c[(e&p)+8>>2]|0,0)|0;f=Nr(k,c[(e&p)+28>>2]|0)|0;tr(b,w,v,f,d[(m&n)>>0]|0)}else if((f|0)==109){f=Vv(b,e)|0;rr(b,f,Mr(k,c[(e&p)+20>>2]|0,0,0)|0)}else if((f|0)==110){w=Vv(b,e)|0;v=Pr(k,c[(e&p)+24>>2]|0,0)|0;f=Mr(k,c[(e&p)+20>>2]|0,0,0)|0;sr(b,w,v,f,d[(m&n)>>0]|0)}else{f=gr(k,c[(e&p)+8>>2]|0,0)|0;a[(t&n)>>0]=4;c[(o&p)>>2]=0;a[(q&n)>>0]=0;c[(r&p)>>2]=0;c[(s&p)>>2]=0;ir(b,f,t)|0;Mk(k,f,1)}if((a[(e&n)>>0]|0)!=119)wh(h,98,0,0,0)|0;e=c[(e&p)+32>>2]|0}while((e|0)!=0)}i=u;return}function Qv(d,e,f,g){d=d|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0;m=i;i=i+16|0;if((i|0)>=(j|0))fa();h=m;l=c[(d&p)>>2]|0;c[(h&p)>>2]=0;c[(h&p)+4>>2]=0;h=nr(l,159,h,0)|0;do if(!h)h=0;else{k=g<<16>>16;if(g<<16>>16>-1?(b[(e&o)+36>>1]|0)!=g<<16>>16:0){g=c[(e&p)+4>>2]|0;c[(h&p)+28>>2]=f+1+k;a[(h&n)+1>>0]=a[(g+(k*24|0)&n)+21>>0]|0;k=c[(g+(k*24|0)&p)+16>>2]|0;if(!k)k=c[(c[(l&p)+8>>2]&p)>>2]|0;h=xv(d,h,k)|0;break}c[(h&p)+28>>2]=f;a[(h&n)+1>>0]=68}while(0);i=m;return h|0}function Rv(d,e,f,g){d=d|0;e=e|0;f=f|0;g=g|0;var h=0,i=0,j=0;d=mh(d,48,0)|0;if(d){h=d+0|0;i=h+44|0;do{a[(h&n)>>0]=0;h=h+1|0}while((h|0)<(i|0));a[(d&n)>>0]=-102;b[(d&o)+34>>1]=-1;c[(d&p)+24>>2]=1;h=c[(e+(f*72|0)&p)+24>>2]|0;c[(d&p)+44>>2]=h;c[(d&p)+28>>2]=c[(e+(f*72|0)&p)+48>>2];if((b[(h&o)+36>>1]|0)==(g|0))b[(d&o)+32>>1]=-1;else{b[(d&o)+32>>1]=g;j=(g|0)>63;g=iw(1,0,g|0)|0;h=e+(f*72|0)+64|0;f=h;i=c[(f&p)+4>>2]|(j?-2147483648:G);c[(h&p)>>2]=c[(f&p)>>2]|(j?0:g);c[(h&p)+4>>2]=i}h=d+4|0;c[(h&p)>>2]=c[(h&p)>>2]|4}return d|0}function Sv(b,e){b=b|0;e=e|0;if((a[(e&n)>>0]|0)==-101){e=e+38|0;a[(e&n)>>0]=(d[(e&n)>>0]|0)+(c[(b&p)+24>>2]|0)}return 0}function Tv(a,d){a=a|0;d=d|0;var f=0,g=0,h=0,i=0,j=0,k=0;f=b[(a&o)+40>>1]|0;i=f&65535;h=b[(a&o)+42>>1]|0;k=e[(d&o)+40>>1]|0;g=b[(d&o)+42>>1]|0;a:do if(!((g&65535)>(h&65535)?1:(i-(h&65535)|0)>=(k-(g&65535)|0))){g=b[(a&o)+20>>1]|0;h=b[(d&o)+20>>1]|0;if(g<<16>>16>=h<<16>>16){if(g<<16>>16>h<<16>>16){f=0;break}if((b[(a&o)+22>>1]|0)>(b[(d&o)+22>>1]|0)){f=0;break}}if(!(f<<16>>16))f=1;else{j=c[(a&p)+48>>2]|0;d=d+48|0;a=i;while(1){a=a+-1|0;h=c[(j+(a<<2)&p)>>2]|0;if(h){f=k;while(1){g=f+-1|0;if((f|0)<=0){f=0;break a}if((c[((c[(d&p)>>2]|0)+(g<<2)&p)>>2]|0)==(h|0))break;else f=g}if((f|0)<1){f=0;break a}}if((a|0)<=0){f=1;break}}}}else f=0;while(0);return f|0}function Uv(d,e){d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0,v=0;f=c[(d&p)>>2]|0;a:do if(f){k=a[(e&n)+16>>0]|0;l=e+17|0;m=e+18|0;q=e+20|0;r=e+22|0;s=e+42|0;t=e+36|0;do{if((a[(f&n)+16>>0]|0)==k<<24>>24?(a[(f&n)+17>>0]|0)==(a[(l&n)>>0]|0):0){if((((c[(f&p)+36>>2]&16384|0)!=0?(b[(s&o)>>1]|0)==0:0)?(c[(t&p)>>2]&513|0)==513:0)?(i=f,j=e,h=c[(j&p)>>2]|0,j=c[(j&p)+4>>2]|0,(h&c[(i&p)>>2]|0)==(h|0)?(j&c[(i&p)+4>>2]|0)==(j|0):0):0)break a;u=f;v=c[(u&p)>>2]|0;u=c[(u&p)+4>>2]|0;h=e;g=c[(h&p)>>2]|0;h=c[(h&p)+4>>2]|0;i=g&v;j=h&u;if((((i|0)==(v|0)&(j|0)==(u|0)?(b[(f&o)+18>>1]|0)<=(b[(m&o)>>1]|0):0)?(b[(f&o)+20>>1]|0)<=(b[(q&o)>>1]|0):0)?(b[(f&o)+22>>1]|0)<=(b[(r&o)>>1]|0):0){d=0;break a}if(((i|0)==(g|0)&(j|0)==(h|0)?(b[(f&o)+20>>1]|0)>=(b[(q&o)>>1]|0):0)?(b[(f&o)+22>>1]|0)>=(b[(r&o)>>1]|0):0)break a}d=f+52|0;f=c[(d&p)>>2]|0}while((f|0)!=0)}while(0);return d|0}function Vv(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;h=pr(c[(a&p)>>2]|0,0,b+12|0,0)|0;do if(h){g=c[(a&p)>>2]|0;f=c[((c[(b&p)+4>>2]|0)&p)+20>>2]|0;a:do if(f){e=c[(g&p)+20>>2]|0;if((e|0)>0){b=c[(g&p)+16>>2]|0;d=0;while(1){a=d+1|0;if((c[(b+(d<<4)&p)+12>>2]|0)==(f|0)){a=d;d=7;break a}if((a|0)<(e|0))d=a;else{d=7;break}}}else a=0}else{a=-1e6;d=7}while(0);if((d|0)==7)if(!((a|0)==0|(a|0)>1))break;a=kh(g,c[((c[(g&p)+16>>2]|0)+(a<<4)&p)>>2]|0)|0;c[(h+(((c[(h&p)>>2]|0)+-1|0)*72|0)&p)+12>>2]=a}while(0);return h|0}function Wv(a){a=a|0;var b=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,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;do if(a>>>0<245){if(a>>>0<11)q=16;else q=a+11&-8;a=q>>>3;l=c[12266]|0;i=l>>>a;if(i&3){e=(i&1^1)+a|0;f=e<<1;b=49104+(f<<2)|0;f=49104+(f+2<<2)|0;g=c[(f&p)>>2]|0;h=g+8|0;i=c[(h&p)>>2]|0;do if((b|0)!=(i|0)){if(i>>>0<(c[12270]|0)>>>0)Ob();d=i+12|0;if((c[(d&p)>>2]|0)==(g|0)){c[(d&p)>>2]=b;c[(f&p)>>2]=i;break}else Ob()}else c[12266]=l&~(1<>2]=x|3;x=g+(x|4)|0;c[(x&p)>>2]=c[(x&p)>>2]|1;x=h;return x|0}k=c[12268]|0;if(q>>>0>k>>>0){if(i){f=2<>>12&16;f=f>>>a;e=f>>>5&8;f=f>>>e;d=f>>>2&4;f=f>>>d;g=f>>>1&2;f=f>>>g;h=f>>>1&1;h=(e|a|d|g|h)+(f>>>h)|0;f=h<<1;g=49104+(f<<2)|0;f=49104+(f+2<<2)|0;d=c[(f&p)>>2]|0;a=d+8|0;e=c[(a&p)>>2]|0;do if((g|0)!=(e|0)){if(e>>>0<(c[12270]|0)>>>0)Ob();i=e+12|0;if((c[(i&p)>>2]|0)==(d|0)){c[(i&p)>>2]=g;c[(f&p)>>2]=e;m=c[12268]|0;break}else Ob()}else{c[12266]=l&~(1<>2]=q|3;j=d+q|0;c[(d+(q|4)&p)>>2]=b|1;c[(d+x&p)>>2]=b;if(m){e=c[12271]|0;g=m>>>3;i=g<<1;f=49104+(i<<2)|0;h=c[12266]|0;g=1<>2]|0;if(i>>>0<(c[12270]|0)>>>0)Ob();else{n=h;o=i}}else{c[12266]=h|g;n=49104+(i+2<<2)|0;o=f}c[(n&p)>>2]=e;c[(o&p)+12>>2]=e;c[(e&p)+8>>2]=o;c[(e&p)+12>>2]=f}c[12268]=b;c[12271]=j;x=a;return x|0}a=c[12267]|0;if(a){h=(a&0-a)+-1|0;w=h>>>12&16;h=h>>>w;v=h>>>5&8;h=h>>>v;x=h>>>2&4;h=h>>>x;i=h>>>1&2;h=h>>>i;g=h>>>1&1;g=c[((v|w|x|i|g)+(h>>>g)<<2&p)+49368>>2]|0;h=(c[(g&p)+4>>2]&-8)-q|0;i=g;while(1){d=c[(i&p)+16>>2]|0;if(!d){d=c[(i&p)+20>>2]|0;if(!d){l=h;k=g;break}}i=(c[(d&p)+4>>2]&-8)-q|0;x=i>>>0>>0;h=x?i:h;i=d;g=x?d:g}a=c[12270]|0;if(k>>>0>>0)Ob();b=k+q|0;if(k>>>0>=b>>>0)Ob();j=c[(k&p)+24>>2]|0;g=c[(k&p)+12>>2]|0;do if((g|0)==(k|0)){h=k+20|0;i=c[(h&p)>>2]|0;if(!i){h=k+16|0;i=c[(h&p)>>2]|0;if(!i){e=0;break}}while(1){g=i+20|0;f=c[(g&p)>>2]|0;if(f){i=f;h=g;continue}g=i+16|0;f=c[(g&p)>>2]|0;if(!f)break;else{i=f;h=g}}if(h>>>0>>0)Ob();else{c[(h&p)>>2]=0;e=i;break}}else{f=c[(k&p)+8>>2]|0;if(f>>>0>>0)Ob();i=f+12|0;if((c[(i&p)>>2]|0)!=(k|0))Ob();h=g+8|0;if((c[(h&p)>>2]|0)==(k|0)){c[(i&p)>>2]=g;c[(h&p)>>2]=f;e=g;break}else Ob()}while(0);do if(j){i=c[(k&p)+28>>2]|0;h=49368+(i<<2)|0;if((k|0)==(c[(h&p)>>2]|0)){c[(h&p)>>2]=e;if(!e){c[12267]=c[12267]&~(1<>>0<(c[12270]|0)>>>0)Ob();i=j+16|0;if((c[(i&p)>>2]|0)==(k|0))c[(i&p)>>2]=e;else c[(j&p)+20>>2]=e;if(!e)break}h=c[12270]|0;if(e>>>0>>0)Ob();c[(e&p)+24>>2]=j;i=c[(k&p)+16>>2]|0;do if(i)if(i>>>0>>0)Ob();else{c[(e&p)+16>>2]=i;c[(i&p)+24>>2]=e;break}while(0);i=c[(k&p)+20>>2]|0;if(i)if(i>>>0<(c[12270]|0)>>>0)Ob();else{c[(e&p)+20>>2]=i;c[(i&p)+24>>2]=e;break}}while(0);if(l>>>0<16){x=l+q|0;c[(k&p)+4>>2]=x|3;x=k+(x+4)|0;c[(x&p)>>2]=c[(x&p)>>2]|1}else{c[(k&p)+4>>2]=q|3;c[(k+(q|4)&p)>>2]=l|1;c[(k+l+q&p)>>2]=l;d=c[12268]|0;if(d){e=c[12271]|0;g=d>>>3;i=g<<1;f=49104+(i<<2)|0;h=c[12266]|0;g=1<>2]|0;if(h>>>0<(c[12270]|0)>>>0)Ob();else{r=i;s=h}}else{c[12266]=h|g;r=49104+(i+2<<2)|0;s=f}c[(r&p)>>2]=e;c[(s&p)+12>>2]=e;c[(e&p)+8>>2]=s;c[(e&p)+12>>2]=f}c[12268]=l;c[12271]=b}x=k+8|0;return x|0}else s=q}else s=q}else if(a>>>0<=4294967231){a=a+11|0;s=a&-8;k=c[12267]|0;if(k){h=0-s|0;a=a>>>8;if(a)if(s>>>0>16777215)d=31;else{q=(a+1048320|0)>>>16&8;r=a<>>16&4;r=r<>>16&2;d=14-(o|q|d)+(r<>>15)|0;d=s>>>(d+7|0)&1|d<<1}else d=0;f=c[(d<<2&p)+49368>>2]|0;a:do if(!f){a=0;i=0}else{if((d|0)==31)i=0;else i=25-(d>>>1)|0;l=h;a=0;b=s<>2]&-8;h=e-s|0;if(h>>>0>>0)if((e|0)==(s|0)){a=f;i=f;break a}else i=f;else h=l;r=c[(f&p)+20>>2]|0;f=c[(f+(b>>>31<<2)&p)+16>>2]|0;a=(r|0)==0|(r|0)==(f|0)?a:r;if(!f)break;else{l=h;b=b<<1}}}while(0);if((a|0)==0&(i|0)==0){a=2<>>12&16;r=r>>>n;m=r>>>5&8;r=r>>>m;o=r>>>2&4;r=r>>>o;q=r>>>1&2;r=r>>>q;a=r>>>1&1;a=c[((m|n|o|q|a)+(r>>>a)<<2&p)+49368>>2]|0}if(!a){o=h;q=i}else while(1){r=(c[(a&p)+4>>2]&-8)-s|0;f=r>>>0>>0;h=f?r:h;i=f?a:i;f=c[(a&p)+16>>2]|0;if(f){a=f;continue}a=c[(a&p)+20>>2]|0;if(!a){o=h;q=i;break}}if((q|0)!=0?o>>>0<((c[12268]|0)-s|0)>>>0:0){a=c[12270]|0;if(q>>>0>>0)Ob();m=q+s|0;if(q>>>0>=m>>>0)Ob();j=c[(q&p)+24>>2]|0;g=c[(q&p)+12>>2]|0;do if((g|0)==(q|0)){h=q+20|0;i=c[(h&p)>>2]|0;if(!i){h=q+16|0;i=c[(h&p)>>2]|0;if(!i){u=0;break}}while(1){g=i+20|0;f=c[(g&p)>>2]|0;if(f){i=f;h=g;continue}g=i+16|0;f=c[(g&p)>>2]|0;if(!f)break;else{i=f;h=g}}if(h>>>0>>0)Ob();else{c[(h&p)>>2]=0;u=i;break}}else{f=c[(q&p)+8>>2]|0;if(f>>>0>>0)Ob();i=f+12|0;if((c[(i&p)>>2]|0)!=(q|0))Ob();h=g+8|0;if((c[(h&p)>>2]|0)==(q|0)){c[(i&p)>>2]=g;c[(h&p)>>2]=f;u=g;break}else Ob()}while(0);do if(j){i=c[(q&p)+28>>2]|0;h=49368+(i<<2)|0;if((q|0)==(c[(h&p)>>2]|0)){c[(h&p)>>2]=u;if(!u){c[12267]=c[12267]&~(1<>>0<(c[12270]|0)>>>0)Ob();i=j+16|0;if((c[(i&p)>>2]|0)==(q|0))c[(i&p)>>2]=u;else c[(j&p)+20>>2]=u;if(!u)break}h=c[12270]|0;if(u>>>0>>0)Ob();c[(u&p)+24>>2]=j;i=c[(q&p)+16>>2]|0;do if(i)if(i>>>0>>0)Ob();else{c[(u&p)+16>>2]=i;c[(i&p)+24>>2]=u;break}while(0);i=c[(q&p)+20>>2]|0;if(i)if(i>>>0<(c[12270]|0)>>>0)Ob();else{c[(u&p)+20>>2]=i;c[(i&p)+24>>2]=u;break}}while(0);b:do if(o>>>0>=16){c[(q&p)+4>>2]=s|3;c[(q+(s|4)&p)>>2]=o|1;c[(q+o+s&p)>>2]=o;i=o>>>3;if(o>>>0<256){h=i<<1;f=49104+(h<<2)|0;g=c[12266]|0;i=1<>2]|0;if(h>>>0>=(c[12270]|0)>>>0){v=i;w=h;break}Ob()}while(0);c[(v&p)>>2]=m;c[(w&p)+12>>2]=m;c[(q+s&p)+8>>2]=w;c[(q+s&p)+12>>2]=f;break}d=o>>>8;if(d)if(o>>>0>16777215)f=31;else{w=(d+1048320|0)>>>16&8;x=d<>>16&4;x=x<>>16&2;f=14-(v|w|f)+(x<>>15)|0;f=o>>>(f+7|0)&1|f<<1}else f=0;i=49368+(f<<2)|0;c[(q+s&p)+28>>2]=f;c[(q+s&p)+20>>2]=0;c[(q+s&p)+16>>2]=0;h=c[12267]|0;g=1<>2]=m;c[(q+s&p)+24>>2]=i;c[(q+s&p)+12>>2]=m;c[(q+s&p)+8>>2]=m;break}d=c[(i&p)>>2]|0;if((f|0)==31)b=0;else b=25-(f>>>1)|0;c:do if((c[(d&p)+4>>2]&-8|0)!=(o|0)){h=o<>>31<<2)+16|0;i=c[(b&p)>>2]|0;if(!i)break;if((c[(i&p)+4>>2]&-8|0)==(o|0)){C=i;break c}else{h=h<<1;d=i}}if(b>>>0<(c[12270]|0)>>>0)Ob();else{c[(b&p)>>2]=m;c[(q+s&p)+24>>2]=d;c[(q+s&p)+12>>2]=m;c[(q+s&p)+8>>2]=m;break b}}else C=d;while(0);d=C+8|0;b=c[(d&p)>>2]|0;x=c[12270]|0;if(C>>>0>=x>>>0&b>>>0>=x>>>0){c[(b&p)+12>>2]=m;c[(d&p)>>2]=m;c[(q+s&p)+8>>2]=b;c[(q+s&p)+12>>2]=C;c[(q+s&p)+24>>2]=0;break}else Ob()}else{x=o+s|0;c[(q&p)+4>>2]=x|3;x=q+(x+4)|0;c[(x&p)>>2]=c[(x&p)>>2]|1}while(0);x=q+8|0;return x|0}}}else s=-1;while(0);a=c[12268]|0;if(a>>>0>=s>>>0){b=a-s|0;d=c[12271]|0;if(b>>>0>15){c[12271]=d+s;c[12268]=b;c[(d+s&p)+4>>2]=b|1;c[(d+a&p)>>2]=b;c[(d&p)+4>>2]=s|3}else{c[12268]=0;c[12271]=0;c[(d&p)+4>>2]=a|3;x=d+(a+4)|0;c[(x&p)>>2]=c[(x&p)>>2]|1}x=d+8|0;return x|0}a=c[12269]|0;if(a>>>0>s>>>0){w=a-s|0;c[12269]=w;x=c[12272]|0;c[12272]=x+s;c[(x+s&p)+4>>2]=w|1;c[(x&p)+4>>2]=s|3;x=x+8|0;return x|0}do if(!(c[12384]|0)){a=wb(30)|0;if(!(a+-1&a)){c[12386]=a;c[12385]=a;c[12387]=-1;c[12388]=-1;c[12389]=0;c[12377]=0;c[12384]=(Pb(0)|0)&-16^1431655768;break}else Ob()}while(0);l=s+48|0;b=c[12386]|0;k=s+47|0;d=b+k|0;b=0-b|0;m=d&b;if(m>>>0<=s>>>0){x=0;return x|0}a=c[12376]|0;if((a|0)!=0?(v=c[12374]|0,w=v+m|0,w>>>0<=v>>>0|w>>>0>a>>>0):0){x=0;return x|0}d:do if(!(c[12377]&4)){a=c[12272]|0;e:do if(a){f=49512|0;while(1){i=c[(f&p)>>2]|0;if(i>>>0<=a>>>0?(t=f+4|0,(i+(c[(t&p)>>2]|0)|0)>>>0>a>>>0):0){e=f;h=t;a=f;break}f=c[(f&p)+8>>2]|0;if(!f){H=181;break e}}if(a){a=d-(c[12269]|0)&b;if(a>>>0<2147483647){i=sb(a|0)|0;if((i|0)==((c[(e&p)>>2]|0)+(c[(h&p)>>2]|0)|0))H=190;else H=191}else a=0}else H=181}else H=181;while(0);do if((H|0)==181){i=sb(0)|0;if((i|0)!=(-1|0)){a=i;h=c[12385]|0;f=h+-1|0;if(!(f&a))a=m;else a=m-a+(f+a&0-h)|0;h=c[12374]|0;f=h+a|0;if(a>>>0>s>>>0&a>>>0<2147483647){w=c[12376]|0;if((w|0)!=0?f>>>0<=h>>>0|f>>>0>w>>>0:0){a=0;break}h=sb(a|0)|0;if((h|0)==(i|0))H=190;else{i=h;H=191}}else a=0}else a=0}while(0);f:do if((H|0)==190){if((i|0)!=(-1|0)){y=i;H=201;break d}}else if((H|0)==191){h=0-a|0;do if((i|0)!=(-1|0)&a>>>0<2147483647&l>>>0>a>>>0?(x=c[12386]|0,x=k-a+x&0-x,x>>>0<2147483647):0)if((sb(x|0)|0)==(-1|0)){sb(h|0)|0;a=0;break f}else{a=x+a|0;break}while(0);if((i|0)==(-1|0))a=0;else{y=i;H=201;break d}}while(0);c[12377]=c[12377]|4;H=198}else{a=0;H=198}while(0);if((((H|0)==198?m>>>0<2147483647:0)?(y=sb(m|0)|0,z=sb(0)|0,(y|0)!=(-1|0)&(z|0)!=(-1|0)&y>>>0>>0):0)?(A=z-y|0,B=A>>>0>(s+40|0)>>>0,B):0){a=B?A:a;H=201}if((H|0)==201){i=(c[12374]|0)+a|0;c[12374]=i;if(i>>>0>(c[12375]|0)>>>0)c[12375]=i;l=c[12272]|0;g:do if(l){e=49512|0;do{i=c[(e&p)>>2]|0;h=e+4|0;f=c[(h&p)>>2]|0;if((y|0)==(i+f|0)){D=i;E=h;F=f;G=e;H=213;break}e=c[(e&p)+8>>2]|0}while((e|0)!=0);if(((H|0)==213?(c[(G&p)+12>>2]&8|0)==0:0)?l>>>0>=D>>>0&l>>>0>>0:0){c[(E&p)>>2]=F+a;b=(c[12269]|0)+a|0;d=l+8|0;if(!(d&7))d=0;else d=0-d&7;x=b-d|0;c[12272]=l+d;c[12269]=x;c[(l+d&p)+4>>2]=x|1;c[(l+b&p)+4>>2]=40;c[12273]=c[12388];break}i=c[12270]|0;if(y>>>0>>0){c[12270]=y;k=y}else k=i;i=y+a|0;h=49512|0;do{if((c[(h&p)>>2]|0)==(i|0)){I=h;J=h;H=223;break}h=c[(h&p)+8>>2]|0}while((h|0)!=0);if((H|0)==223?(c[(J&p)+12>>2]&8|0)==0:0){c[(I&p)>>2]=y;i=J+4|0;c[(i&p)>>2]=(c[(i&p)>>2]|0)+a;i=y+8|0;if(!(i&7))q=0;else q=0-i&7;i=y+(a+8)|0;if(!(i&7))d=0;else d=0-i&7;i=y+(d+a)|0;o=q+s|0;n=y+o|0;m=i-(y+q)-s|0;c[(y+q&p)+4>>2]=s|3;h:do if((i|0)!=(l|0)){if((i|0)==(c[12271]|0)){x=(c[12268]|0)+m|0;c[12268]=x;c[12271]=n;c[(y+o&p)+4>>2]=x|1;c[(y+x+o&p)>>2]=x;break}l=a+4|0;j=c[(y+l+d&p)>>2]|0;if((j&3|0)==1){b=j&-8;f=j>>>3;i:do if(j>>>0>=256){e=c[(y+(d|24)+a&p)>>2]|0;g=c[(y+a+d&p)+12>>2]|0;do if((g|0)==(i|0)){g=d|16;h=y+(l+g)|0;j=c[(h&p)>>2]|0;if(!j){h=y+(g+a)|0;j=c[(h&p)>>2]|0;if(!j){O=0;break}}while(1){g=j+20|0;f=c[(g&p)>>2]|0;if(f){j=f;h=g;continue}g=j+16|0;f=c[(g&p)>>2]|0;if(!f)break;else{j=f;h=g}}if(h>>>0>>0)Ob();else{c[(h&p)>>2]=0;O=j;break}}else{f=c[(y+(d|8)+a&p)>>2]|0;if(f>>>0>>0)Ob();j=f+12|0;if((c[(j&p)>>2]|0)!=(i|0))Ob();h=g+8|0;if((c[(h&p)>>2]|0)==(i|0)){c[(j&p)>>2]=g;c[(h&p)>>2]=f;O=g;break}else Ob()}while(0);if(!e)break;j=c[(y+a+d&p)+28>>2]|0;h=49368+(j<<2)|0;do if((i|0)!=(c[(h&p)>>2]|0)){if(e>>>0<(c[12270]|0)>>>0)Ob();j=e+16|0;if((c[(j&p)>>2]|0)==(i|0))c[(j&p)>>2]=O;else c[(e&p)+20>>2]=O;if(!O)break i}else{c[(h&p)>>2]=O;if(O)break;c[12267]=c[12267]&~(1<
>>16&4;r=r<>>16&2;d=14-(o|q|d)+(r<>>15)|0;d=s>>>(d+7|0)&1|d<<1}else d=0;f=c[(d<<2&p)+49368>>2]|0;a:do if(!f){a=0;i=0}else{if((d|0)==31)i=0;else i=25-(d>>>1)|0;l=h;a=0;b=s<>2]&-8;h=e-s|0;if(h>>>0>>0)if((e|0)==(s|0)){a=f;i=f;break a}else i=f;else h=l;r=c[(f&p)+20>>2]|0;f=c[(f+(b>>>31<<2)&p)+16>>2]|0;a=(r|0)==0|(r|0)==(f|0)?a:r;if(!f)break;else{l=h;b=b<<1}}}while(0);if((a|0)==0&(i|0)==0){a=2<>>12&16;r=r>>>n;m=r>>>5&8;r=r>>>m;o=r>>>2&4;r=r>>>o;q=r>>>1&2;r=r>>>q;a=r>>>1&1;a=c[((m|n|o|q|a)+(r>>>a)<<2&p)+49368>>2]|0}if(!a){o=h;q=i}else while(1){r=(c[(a&p)+4>>2]&-8)-s|0;f=r>>>0>>0;h=f?r:h;i=f?a:i;f=c[(a&p)+16>>2]|0;if(f){a=f;continue}a=c[(a&p)+20>>2]|0;if(!a){o=h;q=i;break}}if((q|0)!=0?o>>>0<((c[12268]|0)-s|0)>>>0:0){a=c[12270]|0;if(q>>>0>>0)Ob();m=q+s|0;if(q>>>0>=m>>>0)Ob();j=c[(q&p)+24>>2]|0;g=c[(q&p)+12>>2]|0;do if((g|0)==(q|0)){h=q+20|0;i=c[(h&p)>>2]|0;if(!i){h=q+16|0;i=c[(h&p)>>2]|0;if(!i){u=0;break}}while(1){g=i+20|0;f=c[(g&p)>>2]|0;if(f){i=f;h=g;continue}g=i+16|0;f=c[(g&p)>>2]|0;if(!f)break;else{i=f;h=g}}if(h>>>0>>0)Ob();else{c[(h&p)>>2]=0;u=i;break}}else{f=c[(q&p)+8>>2]|0;if(f>>>0>>0)Ob();i=f+12|0;if((c[(i&p)>>2]|0)!=(q|0))Ob();h=g+8|0;if((c[(h&p)>>2]|0)==(q|0)){c[(i&p)>>2]=g;c[(h&p)>>2]=f;u=g;break}else Ob()}while(0);do if(j){i=c[(q&p)+28>>2]|0;h=49368+(i<<2)|0;if((q|0)==(c[(h&p)>>2]|0)){c[(h&p)>>2]=u;if(!u){c[12267]=c[12267]&~(1<>>0<(c[12270]|0)>>>0)Ob();i=j+16|0;if((c[(i&p)>>2]|0)==(q|0))c[(i&p)>>2]=u;else c[(j&p)+20>>2]=u;if(!u)break}h=c[12270]|0;if(u>>>0>>0)Ob();c[(u&p)+24>>2]=j;i=c[(q&p)+16>>2]|0;do if(i)if(i>>>0>>0)Ob();else{c[(u&p)+16>>2]=i;c[(i&p)+24>>2]=u;break}while(0);i=c[(q&p)+20>>2]|0;if(i)if(i>>>0<(c[12270]|0)>>>0)Ob();else{c[(u&p)+20>>2]=i;c[(i&p)+24>>2]=u;break}}while(0);b:do if(o>>>0>=16){c[(q&p)+4>>2]=s|3;c[(q+(s|4)&p)>>2]=o|1;c[(q+o+s&p)>>2]=o;i=o>>>3;if(o>>>0<256){h=i<<1;f=49104+(h<<2)|0;g=c[12266]|0;i=1<>2]|0;if(h>>>0>=(c[12270]|0)>>>0){v=i;w=h;break}Ob()}while(0);c[(v&p)>>2]=m;c[(w&p)+12>>2]=m;c[(q+s&p)+8>>2]=w;c[(q+s&p)+12>>2]=f;break}d=o>>>8;if(d)if(o>>>0>16777215)f=31;else{w=(d+1048320|0)>>>16&8;x=d<>>16&4;x=x<>>16&2;f=14-(v|w|f)+(x<>>15)|0;f=o>>>(f+7|0)&1|f<<1}else f=0;i=49368+(f<<2)|0;c[(q+s&p)+28>>2]=f;c[(q+s&p)+20>>2]=0;c[(q+s&p)+16>>2]=0;h=c[12267]|0;g=1<>2]=m;c[(q+s&p)+24>>2]=i;c[(q+s&p)+12>>2]=m;c[(q+s&p)+8>>2]=m;break}d=c[(i&p)>>2]|0;if((f|0)==31)b=0;else b=25-(f>>>1)|0;c:do if((c[(d&p)+4>>2]&-8|0)!=(o|0)){h=o<>>31<<2)+16|0;i=c[(b&p)>>2]|0;if(!i)break;if((c[(i&p)+4>>2]&-8|0)==(o|0)){C=i;break c}else{h=h<<1;d=i}}if(b>>>0<(c[12270]|0)>>>0)Ob();else{c[(b&p)>>2]=m;c[(q+s&p)+24>>2]=d;c[(q+s&p)+12>>2]=m;c[(q+s&p)+8>>2]=m;break b}}else C=d;while(0);d=C+8|0;b=c[(d&p)>>2]|0;x=c[12270]|0;if(C>>>0>=x>>>0&b>>>0>=x>>>0){c[(b&p)+12>>2]=m;c[(d&p)>>2]=m;c[(q+s&p)+8>>2]=b;c[(q+s&p)+12>>2]=C;c[(q+s&p)+24>>2]=0;break}else Ob()}else{x=o+s|0;c[(q&p)+4>>2]=x|3;x=q+(x+4)|0;c[(x&p)>>2]=c[(x&p)>>2]|1}while(0);x=q+8|0;return x|0}}}else s=-1;while(0);a=c[12268]|0;if(a>>>0>=s>>>0){b=a-s|0;d=c[12271]|0;if(b>>>0>15){c[12271]=d+s;c[12268]=b;c[(d+s&p)+4>>2]=b|1;c[(d+a&p)>>2]=b;c[(d&p)+4>>2]=s|3}else{c[12268]=0;c[12271]=0;c[(d&p)+4>>2]=a|3;x=d+(a+4)|0;c[(x&p)>>2]=c[(x&p)>>2]|1}x=d+8|0;return x|0}a=c[12269]|0;if(a>>>0>s>>>0){w=a-s|0;c[12269]=w;x=c[12272]|0;c[12272]=x+s;c[(x+s&p)+4>>2]=w|1;c[(x&p)+4>>2]=s|3;x=x+8|0;return x|0}do if(!(c[12384]|0)){a=wb(30)|0;if(!(a+-1&a)){c[12386]=a;c[12385]=a;c[12387]=-1;c[12388]=-1;c[12389]=0;c[12377]=0;c[12384]=(Pb(0)|0)&-16^1431655768;break}else Ob()}while(0);l=s+48|0;b=c[12386]|0;k=s+47|0;d=b+k|0;b=0-b|0;m=d&b;if(m>>>0<=s>>>0){x=0;return x|0}a=c[12376]|0;if((a|0)!=0?(v=c[12374]|0,w=v+m|0,w>>>0<=v>>>0|w>>>0>a>>>0):0){x=0;return x|0}d:do if(!(c[12377]&4)){a=c[12272]|0;e:do if(a){f=49512|0;while(1){i=c[(f&p)>>2]|0;if(i>>>0<=a>>>0?(t=f+4|0,(i+(c[(t&p)>>2]|0)|0)>>>0>a>>>0):0){e=f;h=t;a=f;break}f=c[(f&p)+8>>2]|0;if(!f){H=181;break e}}if(a){a=d-(c[12269]|0)&b;if(a>>>0<2147483647){i=sb(a|0)|0;if((i|0)==((c[(e&p)>>2]|0)+(c[(h&p)>>2]|0)|0))H=190;else H=191}else a=0}else H=181}else H=181;while(0);do if((H|0)==181){i=sb(0)|0;if((i|0)!=(-1|0)){a=i;h=c[12385]|0;f=h+-1|0;if(!(f&a))a=m;else a=m-a+(f+a&0-h)|0;h=c[12374]|0;f=h+a|0;if(a>>>0>s>>>0&a>>>0<2147483647){w=c[12376]|0;if((w|0)!=0?f>>>0<=h>>>0|f>>>0>w>>>0:0){a=0;break}h=sb(a|0)|0;if((h|0)==(i|0))H=190;else{i=h;H=191}}else a=0}else a=0}while(0);f:do if((H|0)==190){if((i|0)!=(-1|0)){y=i;H=201;break d}}else if((H|0)==191){h=0-a|0;do if((i|0)!=(-1|0)&a>>>0<2147483647&l>>>0>a>>>0?(x=c[12386]|0,x=k-a+x&0-x,x>>>0<2147483647):0)if((sb(x|0)|0)==(-1|0)){sb(h|0)|0;a=0;break f}else{a=x+a|0;break}while(0);if((i|0)==(-1|0))a=0;else{y=i;H=201;break d}}while(0);c[12377]=c[12377]|4;H=198}else{a=0;H=198}while(0);if((((H|0)==198?m>>>0<2147483647:0)?(y=sb(m|0)|0,z=sb(0)|0,(y|0)!=(-1|0)&(z|0)!=(-1|0)&y>>>0>>0):0)?(A=z-y|0,B=A>>>0>(s+40|0)>>>0,B):0){a=B?A:a;H=201}if((H|0)==201){i=(c[12374]|0)+a|0;c[12374]=i;if(i>>>0>(c[12375]|0)>>>0)c[12375]=i;l=c[12272]|0;g:do if(l){e=49512|0;do{i=c[(e&p)>>2]|0;h=e+4|0;f=c[(h&p)>>2]|0;if((y|0)==(i+f|0)){D=i;E=h;F=f;G=e;H=213;break}e=c[(e&p)+8>>2]|0}while((e|0)!=0);if(((H|0)==213?(c[(G&p)+12>>2]&8|0)==0:0)?l>>>0>=D>>>0&l>>>0>>0:0){c[(E&p)>>2]=F+a;b=(c[12269]|0)+a|0;d=l+8|0;if(!(d&7))d=0;else d=0-d&7;x=b-d|0;c[12272]=l+d;c[12269]=x;c[(l+d&p)+4>>2]=x|1;c[(l+b&p)+4>>2]=40;c[12273]=c[12388];break}i=c[12270]|0;if(y>>>0>>0){c[12270]=y;k=y}else k=i;i=y+a|0;h=49512|0;do{if((c[(h&p)>>2]|0)==(i|0)){I=h;J=h;H=223;break}h=c[(h&p)+8>>2]|0}while((h|0)!=0);if((H|0)==223?(c[(J&p)+12>>2]&8|0)==0:0){c[(I&p)>>2]=y;i=J+4|0;c[(i&p)>>2]=(c[(i&p)>>2]|0)+a;i=y+8|0;if(!(i&7))q=0;else q=0-i&7;i=y+(a+8)|0;if(!(i&7))d=0;else d=0-i&7;i=y+(d+a)|0;o=q+s|0;n=y+o|0;m=i-(y+q)-s|0;c[(y+q&p)+4>>2]=s|3;h:do if((i|0)!=(l|0)){if((i|0)==(c[12271]|0)){x=(c[12268]|0)+m|0;c[12268]=x;c[12271]=n;c[(y+o&p)+4>>2]=x|1;c[(y+x+o&p)>>2]=x;break}l=a+4|0;j=c[(y+l+d&p)>>2]|0;if((j&3|0)==1){b=j&-8;f=j>>>3;i:do if(j>>>0>=256){e=c[(y+(d|24)+a&p)>>2]|0;g=c[(y+a+d&p)+12>>2]|0;do if((g|0)==(i|0)){g=d|16;h=y+(l+g)|0;j=c[(h&p)>>2]|0;if(!j){h=y+(g+a)|0;j=c[(h&p)>>2]|0;if(!j){O=0;break}}while(1){g=j+20|0;f=c[(g&p)>>2]|0;if(f){j=f;h=g;continue}g=j+16|0;f=c[(g&p)>>2]|0;if(!f)break;else{j=f;h=g}}if(h>>>0>>0)Ob();else{c[(h&p)>>2]=0;O=j;break}}else{f=c[(y+(d|8)+a&p)>>2]|0;if(f>>>0>>0)Ob();j=f+12|0;if((c[(j&p)>>2]|0)!=(i|0))Ob();h=g+8|0;if((c[(h&p)>>2]|0)==(i|0)){c[(j&p)>>2]=g;c[(h&p)>>2]=f;O=g;break}else Ob()}while(0);if(!e)break;j=c[(y+a+d&p)+28>>2]|0;h=49368+(j<<2)|0;do if((i|0)!=(c[(h&p)>>2]|0)){if(e>>>0<(c[12270]|0)>>>0)Ob();j=e+16|0;if((c[(j&p)>>2]|0)==(i|0))c[(j&p)>>2]=O;else c[(e&p)+20>>2]=O;if(!O)break i}else{c[(h&p)>>2]=O;if(O)break;c[12267]=c[12267]&~(1<