Lines Matching refs:qn

9 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<b>>>0&e>>>0<a>>>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<t>>>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<t>>>0){g=0;do{if((a[(f&n)>>0]|0)!=48)break c;f=f+r|0;g=g+1|0}while(f>>>0<t>>>0)}else g=0;while(0);d:do if(f>>>0<t>>>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<t>>>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<t>>>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<t>>>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<t>>>0){f=o;o=e;m=b}else{f=o;o=l;m=b;break}}}else o=l;while(0);if(e>>>0<t>>>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<t>>>0){f=b;b=e}else break}}}else{e=f;o=l}while(0);if(e>>>0<t>>>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<t>>>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<t>>>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<t>>>0)do{if(!(a[((d[(f&n)>>0]|0)&n)+10368>>0]&1))break e;f=f+r|0}while(f>>>0<t>>>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<k>>>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<k>>>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<k>>>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<<g&d|0)!=0:0)break}g=c[(e&p)+12>>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<f>>>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(j<g)f=-1;else f=j>g&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<r>>>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<h>>>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<h>>>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(v<u){m=-1;s=62;break a}if(v>u){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(v<u){m=-1;s=62;break a}if(v>u){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<s>>>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<z>>>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<g>>>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<h>>>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<d>>>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<d>>>0){k=4;break}if(!((f|0)<(h|0)|(f|0)==(h|0)&d>>>0<g>>>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<q>>>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<q>>>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<q>>>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<q>>>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<q>>>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<q>>>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<i>>>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<g>>>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}
13 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<C>>>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<F>>>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<C>>>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<y>>>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<C>>>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<J>>>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<V>>>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<H>>>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<H>>>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<K>>>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<C>>>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<V>>>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<D){C=(K<<31>>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<M>>>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<t>>>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<t>>>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<y>>>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}